diff --git a/.vs/Paradox_AntiCheat/v16/.suo b/.vs/Paradox_AntiCheat/v16/.suo index 6c70694..12c066c 100644 Binary files a/.vs/Paradox_AntiCheat/v16/.suo and b/.vs/Paradox_AntiCheat/v16/.suo differ diff --git a/.vs/slnx.sqlite b/.vs/slnx.sqlite index 2454f29..12c7a85 100644 Binary files a/.vs/slnx.sqlite and b/.vs/slnx.sqlite differ diff --git a/CHANGELOG.md b/CHANGELOG.md index c66b92c..75841c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,26 +1,25 @@ # Changelog -## [v日本語版paradox v3.3.4] Paradox v3.3.4-Beta Js▶︎Ts -## [v日本語版paradox v3.3.4] Paradox v3.3.4-Beta Japanese version update!! +## [v3.3.6](https://github.com/Pete9xi/Paradox_AntiCheat/tree/v3.3.6) (2023-09-20) -## [v日本語版paradox v3.3.3] Paradox v3.3.4 Japanese version update!! +[Full Changelog](https://github.com/Pete9xi/Paradox_AntiCheat/compare/v3.3.5...v3.3.6) -## [v日本語版paradox v3.3.2] Paradox v3.3.3 Japanese version update!! +## [v3.3.5](https://github.com/Pete9xi/Paradox_AntiCheat/tree/v3.3.5) (2023-09-14) -## [v日本語版paradox v3.3.2] Paradox v3.3.3にアップデートしました!! +[Full Changelog](https://github.com/Pete9xi/Paradox_AntiCheat/compare/v3.3.4...v3.3.5) -## [Unreleased](https://github.com/Pete9xi/Paradox_AntiCheat/tree/HEAD) +## [v3.3.4](https://github.com/Pete9xi/Paradox_AntiCheat/tree/v3.3.4) (2023-08-30) -[Full Changelog](https://github.com/Pete9xi/Paradox_AntiCheat/compare/v3.3.3...HEAD) - -**Merged pull requests:** - -- Apply fixes from CodeFactor [\#29](https://github.com/Pete9xi/Paradox_AntiCheat/pull/29) ([Visual1mpact](https://github.com/Visual1mpact)) +[Full Changelog](https://github.com/Pete9xi/Paradox_AntiCheat/compare/v3.3.3...v3.3.4) ## [v3.3.3](https://github.com/Pete9xi/Paradox_AntiCheat/tree/v3.3.3) (2023-08-30) [Full Changelog](https://github.com/Pete9xi/Paradox_AntiCheat/compare/v3.3.2...v3.3.3) +**Merged pull requests:** + +- Apply fixes from CodeFactor [\#29](https://github.com/Pete9xi/Paradox_AntiCheat/pull/29) ([Visual1mpact](https://github.com/Visual1mpact)) + ## [v3.3.2](https://github.com/Pete9xi/Paradox_AntiCheat/tree/v3.3.2) (2023-08-18) [Full Changelog](https://github.com/Pete9xi/Paradox_AntiCheat/compare/v3.3.1...v3.3.2) diff --git a/README.md b/README.md index 9ac0c22..f88497c 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Paradox AntiCheat Logo

- Paradox japanese v.3.3.3 

originator => "https://github.com/Pete9xi/Paradox_AntiCheat/tree/main"

+ Updated for 1.20.30
Paradox AntiCheat is a fork of Scythe AntiCheat, which was released under the GPLv3 License. Paradox was created to fix some differences within Scythe and to provide a more reliable and effective anti-cheat solution for Minecraft Bedrock. All original commit history pertaining to Scythe still exists within this project and is free to review.
@@ -61,11 +61,12 @@
  • Edit the config.js file located at /scripts/data/config.js.
  • Scroll down to the encryption section.
  • Inside encryption, find password.
  • -
  • Enter your chosen password:
  • - -
    encryption: {
    +      
  • Enter your chosen password: +
    encryption: {
         password: "mypassword",
     }
    +
  • +
    1. Keep your password safe and confidential.
    @@ -78,7 +79,11 @@
  • Once granted, you'll have Paradox AntiCheat features.
  • To give Paradox-Op permissions to others, use <prefix>op <player>.
  • Learn more by entering <prefix>op help.
  • - +
  • For Bedrock Dedicated Server (BDS), add the following to the server.properties file: +
    op-permission-level=2
    +#min=2
    +#max=4
    +
  • Note: If you're using a password (Realm owners), use <prefix>op <password> for permission.

    @@ -200,4 +205,4 @@

    Please note that the project maintainers will review your pull request, and if they find it suitable, they will merge it into the main project. Keep an eye on your pull request for any feedback or updates from the maintainers.

    -

    Happy contributing to the Paradox AntiCheat project! If you have any further questions or need additional assistance, feel free to ask.

    \ No newline at end of file +

    Happy contributing to the Paradox AntiCheat project! If you have any further questions or need additional assistance, feel free to ask.

    diff --git a/entities/allay.json b/entities/allay.json index cca131a..d675841 100644 --- a/entities/allay.json +++ b/entities/allay.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:allay", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/armor_stand.json b/entities/armor_stand.json index def0beb..953a115 100644 --- a/entities/armor_stand.json +++ b/entities/armor_stand.json @@ -11,7 +11,7 @@ "description": { "identifier": "minecraft:armor_stand", "is_spawnable": false, - "is_summonable": false, + "is_summonable": true, "is_experimental": false }, "components": { diff --git a/entities/arrow.json b/entities/arrow.json index e9902dc..aa17fb8 100644 --- a/entities/arrow.json +++ b/entities/arrow.json @@ -4,7 +4,7 @@ "description": { "identifier": "minecraft:arrow", "is_spawnable": false, - "is_summonable": false, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/axolotl.json b/entities/axolotl.json index 58d9909..f7a2d8e 100644 --- a/entities/axolotl.json +++ b/entities/axolotl.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:axolotl", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/bat.json b/entities/bat.json index bfac9ee..d092859 100644 --- a/entities/bat.json +++ b/entities/bat.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:bat", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/bee.json b/entities/bee.json index b9b8e2f..6de171e 100644 --- a/entities/bee.json +++ b/entities/bee.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:bee", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false, "properties": { "minecraft:has_nectar": { diff --git a/entities/blaze.json b/entities/blaze.json index 266ebb7..44a44fb 100644 --- a/entities/blaze.json +++ b/entities/blaze.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:blaze", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/boat.json b/entities/boat.json index dd90cce..4d1ab2e 100644 --- a/entities/boat.json +++ b/entities/boat.json @@ -4,7 +4,7 @@ "description": { "identifier": "minecraft:boat", "is_spawnable": false, - "is_summonable": false, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/camel.json b/entities/camel.json index 476d0e5..c9d5681 100644 --- a/entities/camel.json +++ b/entities/camel.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:camel", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { @@ -178,6 +178,7 @@ "hard_distance": 6, "max_distance": 10 }, + "minecraft:balloonable": {}, "minecraft:type_family": { "family": ["camel", "mob"] }, diff --git a/entities/cat.json b/entities/cat.json index 6c0713d..781011c 100644 --- a/entities/cat.json +++ b/entities/cat.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:cat", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/cave_spider.json b/entities/cave_spider.json index 70732bd..4f149cd 100644 --- a/entities/cave_spider.json +++ b/entities/cave_spider.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:cave_spider", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/chest_boat.json b/entities/chest_boat.json index 527f201..b367d90 100644 --- a/entities/chest_boat.json +++ b/entities/chest_boat.json @@ -4,7 +4,7 @@ "description": { "identifier": "minecraft:chest_boat", "is_spawnable": false, - "is_summonable": false, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/chest_minecart.json b/entities/chest_minecart.json index b8981ae..7f5c632 100644 --- a/entities/chest_minecart.json +++ b/entities/chest_minecart.json @@ -18,7 +18,7 @@ "description": { "identifier": "minecraft:chest_minecart", "is_spawnable": false, - "is_summonable": false, + "is_summonable": true, "is_experimental": false }, "components": { diff --git a/entities/chicken.json b/entities/chicken.json index 180dbd2..61978b0 100644 --- a/entities/chicken.json +++ b/entities/chicken.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:chicken", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/command_block_minecart.json b/entities/command_block_minecart.json index 1778b66..fdad2ce 100644 --- a/entities/command_block_minecart.json +++ b/entities/command_block_minecart.json @@ -4,7 +4,7 @@ "description": { "identifier": "minecraft:command_block_minecart", "is_spawnable": false, - "is_summonable": false, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/cow.json b/entities/cow.json index c68b96b..c20b768 100644 --- a/entities/cow.json +++ b/entities/cow.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:cow", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/creeper.json b/entities/creeper.json index 4ff1a0a..80e281a 100644 --- a/entities/creeper.json +++ b/entities/creeper.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:creeper", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/dolphin.json b/entities/dolphin.json index bf8f7bd..7ec4ad1 100644 --- a/entities/dolphin.json +++ b/entities/dolphin.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:dolphin", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { @@ -331,7 +331,9 @@ "hard_distance": 6, "max_distance": 10 }, - "minecraft:balloonable": {}, + "minecraft:balloonable": { + "mass": 0.4 + }, "minecraft:conditional_bandwidth_optimization": {} }, "events": { diff --git a/entities/donkey.json b/entities/donkey.json index c477ba1..053cf7f 100644 --- a/entities/donkey.json +++ b/entities/donkey.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:donkey", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { @@ -185,7 +185,7 @@ "value": "player" }, { - "test": "is_sneaking", + "test": "is_sneak_held", "subject": "other", "value": false } @@ -235,11 +235,6 @@ } ], "breed_items": ["golden_carrot", "golden_apple", "appleEnchanted"] - }, - "minecraft:behavior.tempt": { - "priority": 5, - "speed_multiplier": 1.2, - "items": ["apple", "carrot", "golden_apple", "appleEnchanted", "golden_carrot", "carrotOnAStick", "hay_block", "sugar", "bread", "wheat"] } }, "minecraft:donkey_unchested": { @@ -269,7 +264,7 @@ "value": "player" }, { - "test": "is_sneaking", + "test": "is_sneak_held", "subject": "other", "value": false } @@ -460,6 +455,11 @@ "priority": 1, "speed_multiplier": 1.2 }, + "minecraft:behavior.tempt": { + "priority": 5, + "speed_multiplier": 1.2, + "items": ["golden_apple", "appleEnchanted", "golden_carrot"] + }, "minecraft:behavior.random_stroll": { "priority": 6, "speed_multiplier": 0.7 diff --git a/entities/drowned.json b/entities/drowned.json index ce7ff03..2163919 100644 --- a/entities/drowned.json +++ b/entities/drowned.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:drowned", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { @@ -47,7 +47,8 @@ }, "minecraft:ranged_mode": { "minecraft:shooter": { - "def": "minecraft:thrown_trident" + "def": "minecraft:thrown_trident", + "sound": "item.trident.throw" }, "minecraft:behavior.ranged_attack": { "priority": 3, @@ -73,6 +74,7 @@ "damage": 3 }, "minecraft:behavior.melee_attack": { + "can_spread_on_fire": true, "priority": 3, "speed_multiplier": 1, "track_target": false, @@ -124,7 +126,13 @@ "minecraft:type_family": { "family": ["drowned", "zombie", "undead", "monster", "mob"] }, - "minecraft:equip_item": {}, + "minecraft:equip_item": { + "excluded_items": [ + { + "item": "minecraft:banner:15" + } + ] + }, "minecraft:collision_box": { "width": 0.6, "height": 1.9 diff --git a/entities/egg.json b/entities/egg.json index 255ead2..e907f87 100644 --- a/entities/egg.json +++ b/entities/egg.json @@ -18,7 +18,7 @@ "description": { "identifier": "minecraft:egg", "is_spawnable": false, - "is_summonable": false, + "is_summonable": true, "is_experimental": false }, "components": { diff --git a/entities/elder_guardian.json b/entities/elder_guardian.json index 00233b2..eae8be7 100644 --- a/entities/elder_guardian.json +++ b/entities/elder_guardian.json @@ -17,8 +17,8 @@ }, "description": { "identifier": "minecraft:elder_guardian", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "components": { diff --git a/entities/ender_crystal.json b/entities/ender_crystal.json index a2a5d11..88cc93b 100644 --- a/entities/ender_crystal.json +++ b/entities/ender_crystal.json @@ -4,7 +4,7 @@ "description": { "identifier": "minecraft:ender_crystal", "is_spawnable": false, - "is_summonable": false, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/ender_dragon.json b/entities/ender_dragon.json index 53548a8..89bbf9f 100644 --- a/entities/ender_dragon.json +++ b/entities/ender_dragon.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:ender_dragon", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/enderman.json b/entities/enderman.json index 7ff527e..1ff5af9 100644 --- a/entities/enderman.json +++ b/entities/enderman.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:enderman", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/endermite.json b/entities/endermite.json index 443f457..2e94161 100644 --- a/entities/endermite.json +++ b/entities/endermite.json @@ -17,8 +17,8 @@ }, "description": { "identifier": "minecraft:endermite", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "components": { diff --git a/entities/evocation_illager.json b/entities/evocation_illager.json index c59fc53..8bb54b8 100644 --- a/entities/evocation_illager.json +++ b/entities/evocation_illager.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:evocation_illager", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { @@ -62,6 +62,17 @@ } }, "components": { + "minecraft:equip_item": {}, + "minecraft:shareables": { + "items": [ + { + "item": "minecraft:banner:15", + "want_amount": 1, + "surplus_amount": 1, + "priority": 0 + } + ] + }, "minecraft:is_hidden_when_invisible": {}, "minecraft:experience_reward": { "on_death": "10" @@ -312,6 +323,15 @@ "minecraft:behavior.hurt_by_target": { "priority": 1 }, + "minecraft:behavior.equip_item": { + "priority": 3 + }, + "minecraft:behavior.pickup_items": { + "priority": 7, + "max_dist": 3, + "goal_radius": 2, + "speed_multiplier": 1 + }, "minecraft:persistent": {}, "minecraft:physics": {}, "minecraft:pushable": { diff --git a/entities/fireworks_rocket.json b/entities/fireworks_rocket.json index b3345af..0cc6715 100644 --- a/entities/fireworks_rocket.json +++ b/entities/fireworks_rocket.json @@ -18,7 +18,7 @@ "description": { "identifier": "minecraft:fireworks_rocket", "is_spawnable": false, - "is_summonable": false, + "is_summonable": true, "is_experimental": false }, "components": { diff --git a/entities/fish.json b/entities/fish.json index d875701..41ffe1f 100644 --- a/entities/fish.json +++ b/entities/fish.json @@ -17,8 +17,8 @@ }, "description": { "identifier": "minecraft:cod", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "components": { diff --git a/entities/fox.json b/entities/fox.json index 2d0792e..5da5c7d 100644 --- a/entities/fox.json +++ b/entities/fox.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:fox", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/frog.json b/entities/frog.json index 2498bce..93e34b7 100644 --- a/entities/frog.json +++ b/entities/frog.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:frog", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/ghast.json b/entities/ghast.json index 00c4df9..a10daa3 100644 --- a/entities/ghast.json +++ b/entities/ghast.json @@ -17,8 +17,8 @@ }, "description": { "identifier": "minecraft:ghast", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "components": { diff --git a/entities/glow_squid.json b/entities/glow_squid.json index 974410e..f1fb547 100644 --- a/entities/glow_squid.json +++ b/entities/glow_squid.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:glow_squid", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/goat.json b/entities/goat.json index b1fe3f8..447c707 100644 --- a/entities/goat.json +++ b/entities/goat.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:goat", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/guardian.json b/entities/guardian.json index d074ac4..e593d40 100644 --- a/entities/guardian.json +++ b/entities/guardian.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:guardian", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/hoglin.json b/entities/hoglin.json index 55cda06..aa6b334 100644 --- a/entities/hoglin.json +++ b/entities/hoglin.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:hoglin", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { @@ -45,7 +45,7 @@ "become_zombie": { "minecraft:transformation": { "into": "minecraft:zoglin", - "transformation_sound": "converted_to_zombified", + "transformation_sound": "mob.hoglin.converted_to_zombified", "keep_level": true } }, diff --git a/entities/hopper_minecart.json b/entities/hopper_minecart.json index 291b21d..7d4b0ff 100644 --- a/entities/hopper_minecart.json +++ b/entities/hopper_minecart.json @@ -4,7 +4,7 @@ "description": { "identifier": "minecraft:hopper_minecart", "is_spawnable": false, - "is_summonable": false, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/horse.json b/entities/horse.json index 0c639cc..e1b76a5 100644 --- a/entities/horse.json +++ b/entities/horse.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:horse", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { @@ -222,7 +222,7 @@ "value": "player" }, { - "test": "is_sneaking", + "test": "is_sneak_held", "subject": "other", "value": false } @@ -257,7 +257,7 @@ "value": "player" }, { - "test": "is_sneaking", + "test": "is_sneak_held", "subject": "other", "value": false } @@ -304,11 +304,6 @@ "mutation_strategy": "random", "random_variant_mutation_interval": [0, 7], "random_extra_variant_mutation_interval": [0, 5] - }, - "minecraft:behavior.tempt": { - "priority": 5, - "speed_multiplier": 1.2, - "items": ["golden_apple", "appleEnchanted", "golden_carrot"] } }, "minecraft:horse_saddled": { @@ -504,6 +499,11 @@ "priority": 3, "speed_multiplier": 1.2 }, + "minecraft:behavior.tempt": { + "priority": 5, + "speed_multiplier": 1.2, + "items": ["golden_apple", "appleEnchanted", "golden_carrot"] + }, "minecraft:behavior.random_stroll": { "priority": 6, "speed_multiplier": 0.7 diff --git a/entities/husk.json b/entities/husk.json index 46b4c17..5b7384c 100644 --- a/entities/husk.json +++ b/entities/husk.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:husk", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { @@ -44,7 +44,7 @@ "minecraft:convert_to_zombie": { "minecraft:transformation": { "into": "minecraft:zombie", - "transformation_sound": "convert_to_drowned", + "transformation_sound": "mob.husk.convert_to_zombie", "drop_equipment": true, "delay": { "value": 15 @@ -55,7 +55,7 @@ "minecraft:convert_to_baby_zombie": { "minecraft:transformation": { "into": "minecraft:zombie", - "transformation_sound": "convert_to_drowned", + "transformation_sound": "mob.husk.convert_to_zombie", "drop_equipment": true, "delay": { "value": 15 @@ -119,7 +119,13 @@ "suffocate_time": 0, "breathes_water": true }, - "minecraft:equip_item": {}, + "minecraft:equip_item": { + "excluded_items": [ + { + "item": "minecraft:banner:15" + } + ] + }, "minecraft:collision_box": { "width": 0.6, "height": 1.9 @@ -399,6 +405,7 @@ "priority": 2 }, "minecraft:behavior.melee_attack": { + "can_spread_on_fire": true, "priority": 3 }, "minecraft:behavior.stomp_turtle_egg": { diff --git a/entities/iron_golem.json b/entities/iron_golem.json index 86fa79d..c559597 100644 --- a/entities/iron_golem.json +++ b/entities/iron_golem.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:iron_golem", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { @@ -198,7 +198,22 @@ "red_nether_brick", "end_bricks", "red_sandstone", - "stained_glass", + "white_stained_glass", + "orange_stained_glass", + "magenta_stained_glass", + "light_blue_stained_glass", + "yellow_stained_glass", + "lime_stained_glass", + "pink_stained_glass", + "gray_stained_glass", + "light_gray_stained_glass", + "cyan_stained_glass", + "purple_stained_glass", + "blue_stained_glass", + "brown_stained_glass", + "green_stained_glass", + "red_stained_glass", + "black_stained_glass", "glass", "glowstone", "prismarine", diff --git a/entities/lightning_bolt.json b/entities/lightning_bolt.json index 0a06acd..8d15d76 100644 --- a/entities/lightning_bolt.json +++ b/entities/lightning_bolt.json @@ -4,7 +4,7 @@ "description": { "identifier": "minecraft:lightning_bolt", "is_spawnable": false, - "is_summonable": false, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/llama.json b/entities/llama.json index 677518e..88f3d8c 100644 --- a/entities/llama.json +++ b/entities/llama.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:llama", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { @@ -420,6 +420,11 @@ "priority": 4, "speed_multiplier": 1.2 }, + "minecraft:behavior.tempt": { + "priority": 5, + "speed_multiplier": 1.2, + "items": ["hay_block"] + }, "minecraft:behavior.random_stroll": { "priority": 6, "speed_multiplier": 0.7 diff --git a/entities/magma_cube.json b/entities/magma_cube.json index 540b41c..a2233e0 100644 --- a/entities/magma_cube.json +++ b/entities/magma_cube.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:magma_cube", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/minecart.json b/entities/minecart.json index 9e4e774..380c507 100644 --- a/entities/minecart.json +++ b/entities/minecart.json @@ -18,7 +18,7 @@ "description": { "identifier": "minecraft:minecart", "is_spawnable": false, - "is_summonable": false, + "is_summonable": true, "is_experimental": false }, "components": { diff --git a/entities/mooshroom.json b/entities/mooshroom.json index 58bdc9e..496de3e 100644 --- a/entities/mooshroom.json +++ b/entities/mooshroom.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:mooshroom", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/mule.json b/entities/mule.json index eded6f1..a36db61 100644 --- a/entities/mule.json +++ b/entities/mule.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:mule", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { @@ -166,11 +166,6 @@ "minecraft:inventory": { "inventory_size": 16, "container_type": "horse" - }, - "minecraft:behavior.tempt": { - "priority": 5, - "speed_multiplier": 1.2, - "items": ["apple", "carrot", "golden_apple", "appleEnchanted", "golden_carrot", "carrotOnAStick", "hay_block", "sugar", "bread", "wheat"] } }, "minecraft:mule_unchested": { @@ -193,7 +188,7 @@ "value": "player" }, { - "test": "is_sneaking", + "test": "is_sneak_held", "subject": "other", "value": false } @@ -229,7 +224,7 @@ "value": "player" }, { - "test": "is_sneaking", + "test": "is_sneak_held", "subject": "other", "value": false } @@ -271,7 +266,7 @@ "value": "player" }, { - "test": "is_sneaking", + "test": "is_sneak_held", "subject": "other", "value": false } @@ -392,6 +387,11 @@ "priority": 1, "speed_multiplier": 1.2 }, + "minecraft:behavior.tempt": { + "priority": 5, + "speed_multiplier": 1.2, + "items": ["golden_apple", "appleEnchanted", "golden_carrot"] + }, "minecraft:behavior.random_stroll": { "priority": 6, "speed_multiplier": 0.7 diff --git a/entities/npc.json b/entities/npc.json index 13c27cc..4105e07 100644 --- a/entities/npc.json +++ b/entities/npc.json @@ -17,8 +17,8 @@ }, "description": { "identifier": "minecraft:npc", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "components": { diff --git a/entities/ocelot.json b/entities/ocelot.json index 63d4f95..2917467 100644 --- a/entities/ocelot.json +++ b/entities/ocelot.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:ocelot", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/panda.json b/entities/panda.json index 9ec5198..71007e1 100644 --- a/entities/panda.json +++ b/entities/panda.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:panda", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/parrot.json b/entities/parrot.json index edd53b6..bfd84e1 100644 --- a/entities/parrot.json +++ b/entities/parrot.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:parrot", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/phantom.json b/entities/phantom.json index 5ccc2a4..670a844 100644 --- a/entities/phantom.json +++ b/entities/phantom.json @@ -10,8 +10,8 @@ }, "description": { "identifier": "minecraft:phantom", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/pig.json b/entities/pig.json index 941cd6c..2948130 100644 --- a/entities/pig.json +++ b/entities/pig.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:pig", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { @@ -29,6 +29,7 @@ "minecraft:pig_transform": { "minecraft:transformation": { "into": "minecraft:pig_zombie", + "transformation_sound": "mob.pig.death", "delay": 0.5 } }, diff --git a/entities/piglin.json b/entities/piglin.json index 7e3d7fa..a5ba5cb 100644 --- a/entities/piglin.json +++ b/entities/piglin.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:piglin", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { @@ -401,7 +401,13 @@ }, "components": { "minecraft:is_hidden_when_invisible": {}, - "minecraft:equip_item": {}, + "minecraft:equip_item": { + "excluded_items": [ + { + "item": "minecraft:banner:15" + } + ] + }, "minecraft:admire_item": { "duration": 8, "cooldown_after_being_attacked": 20 @@ -579,6 +585,7 @@ "value": 64 }, "minecraft:shareables": { + "singular_pickup": true, "items": [ { "item": "minecraft:golden_sword", diff --git a/entities/piglin_brute.json b/entities/piglin_brute.json index dedb0ef..8a5230d 100644 --- a/entities/piglin_brute.json +++ b/entities/piglin_brute.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:piglin_brute", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/pillager.json b/entities/pillager.json index b859e42..ca1b68c 100644 --- a/entities/pillager.json +++ b/entities/pillager.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:pillager", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/polar_bear.json b/entities/polar_bear.json index 7410802..daf6b95 100644 --- a/entities/polar_bear.json +++ b/entities/polar_bear.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:polar_bear", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/pufferfish.json b/entities/pufferfish.json index 961f9c1..e16732d 100644 --- a/entities/pufferfish.json +++ b/entities/pufferfish.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:pufferfish", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/rabbit.json b/entities/rabbit.json index fbb69c3..2716c43 100644 --- a/entities/rabbit.json +++ b/entities/rabbit.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:rabbit", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/ravager.json b/entities/ravager.json index 1639d41..b0a0d19 100644 --- a/entities/ravager.json +++ b/entities/ravager.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:ravager", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/salmon.json b/entities/salmon.json index e880642..4a5c979 100644 --- a/entities/salmon.json +++ b/entities/salmon.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:salmon", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/sheep.json b/entities/sheep.json index 12ff397..e133043 100644 --- a/entities/sheep.json +++ b/entities/sheep.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:sheep", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/shulker.json b/entities/shulker.json index bbc5a78..30da6d5 100644 --- a/entities/shulker.json +++ b/entities/shulker.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:shulker", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/silverfish.json b/entities/silverfish.json index f351ce5..63d0e2b 100644 --- a/entities/silverfish.json +++ b/entities/silverfish.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:silverfish", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/skeleton.json b/entities/skeleton.json index 881b5b9..dc55fb2 100644 --- a/entities/skeleton.json +++ b/entities/skeleton.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:skeleton", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { @@ -103,7 +103,8 @@ "attack_radius": 15 }, "minecraft:shooter": { - "def": "minecraft:arrow" + "def": "minecraft:arrow", + "sound": "bow" }, "minecraft:environment_sensor": { "triggers": [ @@ -190,7 +191,13 @@ "minecraft:experience_reward": { "on_death": "query.last_hit_by_player ? 5 + (query.equipment_count * Math.Random(1,3)) : 0" }, - "minecraft:equip_item": {}, + "minecraft:equip_item": { + "excluded_items": [ + { + "item": "minecraft:banner:15" + } + ] + }, "minecraft:collision_box": { "width": 0.6, "height": 1.9 @@ -278,6 +285,7 @@ "despawn_from_distance": {} }, "minecraft:shareables": { + "singular_pickup": true, "items": [ { "item": "minecraft:netherite_sword", diff --git a/entities/skeleton_horse.json b/entities/skeleton_horse.json index 418c8f5..f53649e 100644 --- a/entities/skeleton_horse.json +++ b/entities/skeleton_horse.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:skeleton_horse", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/slime.json b/entities/slime.json index a206abe..b9c12c9 100644 --- a/entities/slime.json +++ b/entities/slime.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:slime", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/sniffer.json b/entities/sniffer.json index c2b9138..7b44596 100644 --- a/entities/sniffer.json +++ b/entities/sniffer.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:sniffer", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": true }, "component_groups": { @@ -195,6 +195,7 @@ "hard_distance": 6, "max_distance": 10 }, + "minecraft:balloonable": {}, "minecraft:type_family": { "family": ["sniffer", "mob"] }, diff --git a/entities/snow_golem.json b/entities/snow_golem.json index 9551c22..4f7fd0b 100644 --- a/entities/snow_golem.json +++ b/entities/snow_golem.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:snow_golem", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/snowball.json b/entities/snowball.json index 659f65e..0c39f0f 100644 --- a/entities/snowball.json +++ b/entities/snowball.json @@ -18,7 +18,7 @@ "description": { "identifier": "minecraft:snowball", "is_spawnable": false, - "is_summonable": false, + "is_summonable": true, "is_experimental": false }, "components": { diff --git a/entities/spider.json b/entities/spider.json index 9d19c62..1e4be6a 100644 --- a/entities/spider.json +++ b/entities/spider.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:spider", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/splash_potion.json b/entities/splash_potion.json index 797d543..fb31272 100644 --- a/entities/splash_potion.json +++ b/entities/splash_potion.json @@ -18,7 +18,7 @@ "description": { "identifier": "minecraft:splash_potion", "is_spawnable": false, - "is_summonable": false, + "is_summonable": true, "is_experimental": false }, "components": { diff --git a/entities/squid.json b/entities/squid.json index 8c8ffb4..c061ea2 100644 --- a/entities/squid.json +++ b/entities/squid.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:squid", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/stray.json b/entities/stray.json index d9c4abf..b33a3f1 100644 --- a/entities/stray.json +++ b/entities/stray.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:stray", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { @@ -23,6 +23,7 @@ }, "minecraft:shooter": { "def": "minecraft:arrow", + "sound": "bow", "aux_val": 19 }, "minecraft:environment_sensor": { @@ -99,7 +100,13 @@ "suffocate_time": 0, "breathes_water": true }, - "minecraft:equip_item": {}, + "minecraft:equip_item": { + "excluded_items": [ + { + "item": "minecraft:banner:15" + } + ] + }, "minecraft:collision_box": { "width": 0.6, "height": 1.9 @@ -171,6 +178,7 @@ "despawn_from_distance": {} }, "minecraft:shareables": { + "singular_pickup": true, "items": [ { "item": "minecraft:netherite_sword", diff --git a/entities/strider.json b/entities/strider.json index 3bdacff..6043542 100644 --- a/entities/strider.json +++ b/entities/strider.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:strider", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/tadpole.json b/entities/tadpole.json index 2c1e7fd..2496e30 100644 --- a/entities/tadpole.json +++ b/entities/tadpole.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:tadpole", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/tnt.json b/entities/tnt.json index 27b853b..4d739cd 100644 --- a/entities/tnt.json +++ b/entities/tnt.json @@ -4,7 +4,7 @@ "description": { "identifier": "minecraft:tnt", "is_spawnable": false, - "is_summonable": false, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/tnt_minecart.json b/entities/tnt_minecart.json index f3418d5..95e9670 100644 --- a/entities/tnt_minecart.json +++ b/entities/tnt_minecart.json @@ -4,7 +4,7 @@ "description": { "identifier": "minecraft:tnt_minecart", "is_spawnable": false, - "is_summonable": false, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/trader_llama.json b/entities/trader_llama.json index c64640f..2b2b5bf 100644 --- a/entities/trader_llama.json +++ b/entities/trader_llama.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:trader_llama", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { @@ -405,6 +405,11 @@ "priority": 4, "speed_multiplier": 1.2 }, + "minecraft:behavior.tempt": { + "priority": 5, + "speed_multiplier": 1.2, + "items": ["hay_block"] + }, "minecraft:behavior.random_stroll": { "priority": 6, "speed_multiplier": 0.7 diff --git a/entities/tropicalfish.json b/entities/tropicalfish.json index 589d759..c15c654 100644 --- a/entities/tropicalfish.json +++ b/entities/tropicalfish.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:tropicalfish", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/turtle.json b/entities/turtle.json index ef69adb..6f583e4 100644 --- a/entities/turtle.json +++ b/entities/turtle.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:turtle", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/vex.json b/entities/vex.json index 05be9ab..afc6015 100644 --- a/entities/vex.json +++ b/entities/vex.json @@ -17,8 +17,8 @@ }, "description": { "identifier": "minecraft:vex", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "components": { diff --git a/entities/villager.json b/entities/villager.json index 1f2f75a..3940590 100644 --- a/entities/villager.json +++ b/entities/villager.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:villager", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/villager_v2.json b/entities/villager_v2.json index 66d1caa..885c5e5 100644 --- a/entities/villager_v2.json +++ b/entities/villager_v2.json @@ -3,7 +3,7 @@ "minecraft:entity": { "description": { "identifier": "minecraft:villager_v2", - "is_spawnable": false, + "is_spawnable": true, "is_summonable": false, "is_experimental": false }, @@ -972,8 +972,8 @@ "table": "trading/economy_trades/farmer_trades.json", "new_screen": true, "persist_trades": true, - "cured_discount": [-100, -100], - "max_cured_discount": [-500, -500] + "cured_discount": [-25, -20], + "max_cured_discount": [-25, -20] }, "minecraft:dweller": { "dwelling_type": "village", @@ -1006,8 +1006,8 @@ "table": "trading/economy_trades/fisherman_trades.json", "new_screen": true, "persist_trades": true, - "cured_discount": [-100, -100], - "max_cured_discount": [-500, -500] + "cured_discount": [-25, -20], + "max_cured_discount": [-25, -20] }, "minecraft:dweller": { "dwelling_type": "village", @@ -1040,8 +1040,8 @@ "table": "trading/economy_trades/shepherd_trades.json", "new_screen": true, "persist_trades": true, - "cured_discount": [-100, -100], - "max_cured_discount": [-500, -500] + "cured_discount": [-25, -20], + "max_cured_discount": [-25, -20] }, "minecraft:dweller": { "dwelling_type": "village", @@ -1074,8 +1074,8 @@ "table": "trading/economy_trades/fletcher_trades.json", "new_screen": true, "persist_trades": true, - "cured_discount": [-100, -100], - "max_cured_discount": [-500, -500] + "cured_discount": [-25, -20], + "max_cured_discount": [-25, -20] }, "minecraft:dweller": { "dwelling_type": "village", @@ -1108,8 +1108,8 @@ "table": "trading/economy_trades/librarian_trades.json", "new_screen": true, "persist_trades": true, - "cured_discount": [-100, -100], - "max_cured_discount": [-500, -500] + "cured_discount": [-25, -20], + "max_cured_discount": [-25, -20] }, "minecraft:dweller": { "dwelling_type": "village", @@ -1142,8 +1142,8 @@ "table": "trading/economy_trades/cartographer_trades.json", "new_screen": true, "persist_trades": true, - "cured_discount": [-100, -100], - "max_cured_discount": [-500, -500] + "cured_discount": [-25, -20], + "max_cured_discount": [-25, -20] }, "minecraft:dweller": { "dwelling_type": "village", @@ -1176,8 +1176,8 @@ "table": "trading/economy_trades/cleric_trades.json", "new_screen": true, "persist_trades": true, - "cured_discount": [-100, -100], - "max_cured_discount": [-500, -500] + "cured_discount": [-25, -20], + "max_cured_discount": [-25, -20] }, "minecraft:dweller": { "dwelling_type": "village", @@ -1210,8 +1210,8 @@ "table": "trading/economy_trades/armorer_trades.json", "new_screen": true, "persist_trades": true, - "cured_discount": [-100, -100], - "max_cured_discount": [-500, -500] + "cured_discount": [-25, -20], + "max_cured_discount": [-25, -20] }, "minecraft:dweller": { "dwelling_type": "village", @@ -1244,8 +1244,8 @@ "table": "trading/economy_trades/weapon_smith_trades.json", "new_screen": true, "persist_trades": true, - "cured_discount": [-100, -100], - "max_cured_discount": [-500, -500] + "cured_discount": [-25, -20], + "max_cured_discount": [-25, -20] }, "minecraft:dweller": { "dwelling_type": "village", @@ -1278,8 +1278,8 @@ "table": "trading/economy_trades/tool_smith_trades.json", "new_screen": true, "persist_trades": true, - "cured_discount": [-100, -100], - "max_cured_discount": [-500, -500] + "cured_discount": [-25, -20], + "max_cured_discount": [-25, -20] }, "minecraft:dweller": { "dwelling_type": "village", @@ -1312,8 +1312,8 @@ "table": "trading/economy_trades/butcher_trades.json", "new_screen": true, "persist_trades": true, - "cured_discount": [-100, -100], - "max_cured_discount": [-500, -500] + "cured_discount": [-25, -20], + "max_cured_discount": [-25, -20] }, "minecraft:dweller": { "dwelling_type": "village", @@ -1346,8 +1346,8 @@ "table": "trading/economy_trades/leather_worker_trades.json", "new_screen": true, "persist_trades": true, - "cured_discount": [-100, -100], - "max_cured_discount": [-500, -500] + "cured_discount": [-25, -20], + "max_cured_discount": [-25, -20] }, "minecraft:dweller": { "dwelling_type": "village", @@ -1380,8 +1380,8 @@ "table": "trading/economy_trades/stone_mason_trades.json", "new_screen": true, "persist_trades": true, - "cured_discount": [-100, -100], - "max_cured_discount": [-500, -500] + "cured_discount": [-25, -20], + "max_cured_discount": [-25, -20] }, "minecraft:dweller": { "dwelling_type": "village", @@ -1458,7 +1458,22 @@ "red_nether_brick", "end_bricks", "red_sandstone", - "stained_glass", + "white_stained_glass", + "orange_stained_glass", + "magenta_stained_glass", + "light_blue_stained_glass", + "yellow_stained_glass", + "lime_stained_glass", + "pink_stained_glass", + "gray_stained_glass", + "light_gray_stained_glass", + "cyan_stained_glass", + "purple_stained_glass", + "blue_stained_glass", + "brown_stained_glass", + "green_stained_glass", + "red_stained_glass", + "black_stained_glass", "glass", "glowstone", "prismarine", @@ -1534,7 +1549,22 @@ "red_nether_brick", "end_bricks", "red_sandstone", - "stained_glass", + "white_stained_glass", + "orange_stained_glass", + "magenta_stained_glass", + "light_blue_stained_glass", + "yellow_stained_glass", + "lime_stained_glass", + "pink_stained_glass", + "gray_stained_glass", + "light_gray_stained_glass", + "cyan_stained_glass", + "purple_stained_glass", + "blue_stained_glass", + "brown_stained_glass", + "green_stained_glass", + "red_stained_glass", + "black_stained_glass", "glass", "glowstone", "prismarine", @@ -1635,6 +1665,14 @@ } }, "components": { + "minecraft:equipment": { + "slot_drop_chance": [ + { + "slot": "slot.weapon.mainhand", + "drop_chance": 0 + } + ] + }, "minecraft:is_hidden_when_invisible": {}, "minecraft:type_family": { "family": ["villager", "mob"] diff --git a/entities/vindicator.json b/entities/vindicator.json index 56c0720..9fb725f 100644 --- a/entities/vindicator.json +++ b/entities/vindicator.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:vindicator", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { @@ -249,6 +249,17 @@ } }, "components": { + "minecraft:equip_item": {}, + "minecraft:shareables": { + "items": [ + { + "item": "minecraft:banner:15", + "want_amount": 1, + "surplus_amount": 1, + "priority": 0 + } + ] + }, "minecraft:is_hidden_when_invisible": {}, "minecraft:experience_reward": { "on_death": "query.last_hit_by_player ? (query.is_baby ? 12 : 5) + (Math.die_roll(query.equipment_count,1,3)) : 0" @@ -339,6 +350,15 @@ "minecraft:behavior.hurt_by_target": { "priority": 1 }, + "minecraft:behavior.equip_item": { + "priority": 3 + }, + "minecraft:behavior.pickup_items": { + "priority": 7, + "max_dist": 3, + "goal_radius": 2, + "speed_multiplier": 1 + }, "minecraft:on_target_acquired": { "event": "minecraft:become_aggro", "target": "self" diff --git a/entities/wandering_trader.json b/entities/wandering_trader.json index 561d7ab..171c157 100644 --- a/entities/wandering_trader.json +++ b/entities/wandering_trader.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:wandering_trader", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/warden.json b/entities/warden.json index 4395407..3f55b1a 100644 --- a/entities/warden.json +++ b/entities/warden.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:warden", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/witch.json b/entities/witch.json index 67229b4..89ab870 100644 --- a/entities/witch.json +++ b/entities/witch.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:witch", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { @@ -118,6 +118,40 @@ "aux_val": 23, "sound": "throw", "projectiles": [ + { + "def": "minecraft:splash_potion", + "aux_val": 21, + "filters": { + "all_of": [ + { + "test": "is_raider", + "subject": "other", + "value": true + }, + { + "test": "actor_health", + "subject": "other", + "value": 4, + "operator": "<=" + } + ] + }, + "lose_target": true + }, + { + "def": "minecraft:splash_potion", + "aux_val": 28, + "filters": { + "all_of": [ + { + "test": "is_raider", + "subject": "other", + "value": true + } + ] + }, + "lose_target": true + }, { "def": "minecraft:splash_potion", "aux_val": 17, @@ -311,7 +345,7 @@ "minecraft:behavior.hurt_by_target": { "priority": 1 }, - "minecraft:behavior.nearest_attackable_target": { + "minecraft:behavior.nearest_prioritized_attackable_target": { "priority": 2, "entity_types": [ { @@ -334,6 +368,35 @@ } ] }, + "priority": 1, + "max_dist": 10 + }, + { + "filters": { + "all_of": [ + { + "test": "is_raider", + "subject": "other", + "value": true + }, + { + "test": "is_raider", + "subject": "self", + "value": true + }, + { + "none_of": [ + { + "test": "is_family", + "subject": "other", + "value": "witch" + } + ] + } + ] + }, + "priority": 2, + "cooldown": 10, "max_dist": 10 } ], diff --git a/entities/wither.json b/entities/wither.json index d4d490e..ebd3659 100644 --- a/entities/wither.json +++ b/entities/wither.json @@ -10,8 +10,8 @@ }, "description": { "identifier": "minecraft:wither", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "components": { diff --git a/entities/wither_skeleton.json b/entities/wither_skeleton.json index 0d4e60c..1e1b2c8 100644 --- a/entities/wither_skeleton.json +++ b/entities/wither_skeleton.json @@ -10,8 +10,8 @@ }, "description": { "identifier": "minecraft:wither_skeleton", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "components": { @@ -29,7 +29,13 @@ "value": 20, "max": 20 }, - "minecraft:equip_item": {}, + "minecraft:equip_item": { + "excluded_items": [ + { + "item": "minecraft:banner:15" + } + ] + }, "minecraft:collision_box": { "width": 0.72, "height": 2.01 @@ -57,6 +63,7 @@ "minecraft:jump.static": {}, "minecraft:can_climb": {}, "minecraft:shareables": { + "singular_pickup": true, "items": [ { "item": "minecraft:netherite_sword", diff --git a/entities/wolf.json b/entities/wolf.json index 917a4d9..35aa028 100644 --- a/entities/wolf.json +++ b/entities/wolf.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:wolf", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/xp_bottle.json b/entities/xp_bottle.json index 997f1d2..5ea07a8 100644 --- a/entities/xp_bottle.json +++ b/entities/xp_bottle.json @@ -18,7 +18,7 @@ "description": { "identifier": "minecraft:xp_bottle", "is_spawnable": false, - "is_summonable": false, + "is_summonable": true, "is_experimental": false }, "components": { diff --git a/entities/xp_orb.json b/entities/xp_orb.json index 9268a0a..d8bc704 100644 --- a/entities/xp_orb.json +++ b/entities/xp_orb.json @@ -18,7 +18,7 @@ "description": { "identifier": "minecraft:xp_orb", "is_spawnable": false, - "is_summonable": false, + "is_summonable": true, "is_experimental": false }, "components": { diff --git a/entities/zoglin.json b/entities/zoglin.json index fb0e9c6..851212d 100644 --- a/entities/zoglin.json +++ b/entities/zoglin.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:zoglin", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/zombie.json b/entities/zombie.json index 24ae3ff..fd3d295 100644 --- a/entities/zombie.json +++ b/entities/zombie.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:zombie", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { @@ -125,7 +125,13 @@ "minecraft:type_family": { "family": ["zombie", "undead", "monster", "mob"] }, - "minecraft:equip_item": {}, + "minecraft:equip_item": { + "excluded_items": [ + { + "item": "minecraft:banner:15" + } + ] + }, "minecraft:collision_box": { "width": 0.6, "height": 1.9 @@ -396,6 +402,7 @@ "priority": 2 }, "minecraft:behavior.melee_attack": { + "can_spread_on_fire": true, "priority": 3 }, "minecraft:behavior.stomp_turtle_egg": { diff --git a/entities/zombie_horse.json b/entities/zombie_horse.json index 240072e..9b81d46 100644 --- a/entities/zombie_horse.json +++ b/entities/zombie_horse.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:zombie_horse", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/zombie_pigman.json b/entities/zombie_pigman.json index 3ac712b..3ced3d5 100644 --- a/entities/zombie_pigman.json +++ b/entities/zombie_pigman.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:zombie_pigman", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { diff --git a/entities/zombie_villager.json b/entities/zombie_villager.json index 2bb007a..b21f076 100644 --- a/entities/zombie_villager.json +++ b/entities/zombie_villager.json @@ -3,8 +3,8 @@ "minecraft:entity": { "description": { "identifier": "minecraft:zombie_villager", - "is_spawnable": false, - "is_summonable": false, + "is_spawnable": true, + "is_summonable": true, "is_experimental": false }, "component_groups": { @@ -218,7 +218,13 @@ "minecraft:loot": { "table": "loot_tables/entities/zombie.json" }, - "minecraft:equip_item": {}, + "minecraft:equip_item": { + "excluded_items": [ + { + "item": "minecraft:banner:15" + } + ] + }, "minecraft:collision_box": { "width": 0.6, "height": 1.9 @@ -484,6 +490,7 @@ "despawn_from_distance": {} }, "minecraft:behavior.melee_attack": { + "can_spread_on_fire": true, "priority": 6 }, "minecraft:behavior.equip_item": { @@ -502,7 +509,7 @@ "max_dist": 3, "goal_radius": 2, "speed_multiplier": 1, - "pickup_based_on_chance": true, + "pickup_based_on_chance": false, "can_pickup_any_item": true, "excluded_items": ["minecraft:glow_ink_sac"] }, diff --git a/entities/zombie_villager_v2.json b/entities/zombie_villager_v2.json index 388b6c2..80b4ca6 100644 --- a/entities/zombie_villager_v2.json +++ b/entities/zombie_villager_v2.json @@ -3,7 +3,7 @@ "minecraft:entity": { "description": { "identifier": "minecraft:zombie_villager_v2", - "is_spawnable": false, + "is_spawnable": true, "is_summonable": false, "is_experimental": false }, @@ -101,20 +101,12 @@ "value": 0 } }, - "nitwit": { - "minecraft:type_family": { - "family": ["nitwit", "zombie", "zombie_villager", "undead", "monster", "mob"] - }, - "minecraft:variant": { - "value": 0 - } - }, "farmer": { "minecraft:type_family": { "family": ["farmer", "zombie", "zombie_villager", "undead", "monster", "mob"] }, "minecraft:variant": { - "value": 0 + "value": 1 } }, "fisherman": { @@ -122,7 +114,7 @@ "family": ["fisherman", "zombie_villager", "zombie", "undead", "monster", "mob"] }, "minecraft:variant": { - "value": 0 + "value": 2 } }, "shepherd": { @@ -130,7 +122,7 @@ "family": ["shepherd", "zombie_villager", "zombie", "undead", "monster", "mob"] }, "minecraft:variant": { - "value": 0 + "value": 3 } }, "fletcher": { @@ -138,7 +130,7 @@ "family": ["fletcher", "zombie_villager", "zombie", "undead", "monster", "mob"] }, "minecraft:variant": { - "value": 0 + "value": 4 } }, "librarian": { @@ -146,7 +138,7 @@ "family": ["librarian", "zombie_villager", "zombie", "undead", "monster", "mob"] }, "minecraft:variant": { - "value": 0 + "value": 5 } }, "cartographer": { @@ -154,7 +146,7 @@ "family": ["cartographer", "zombie_villager", "zombie", "undead", "monster", "mob"] }, "minecraft:variant": { - "value": 0 + "value": 6 } }, "cleric": { @@ -162,7 +154,7 @@ "family": ["cleric", "zombie_villager", "zombie", "undead", "monster", "mob"] }, "minecraft:variant": { - "value": 0 + "value": 7 } }, "armorer": { @@ -170,7 +162,7 @@ "family": ["armorer", "zombie_villager", "zombie", "undead", "monster", "mob"] }, "minecraft:variant": { - "value": 0 + "value": 8 } }, "weaponsmith": { @@ -178,7 +170,7 @@ "family": ["weaponsmith", "zombie_villager", "zombie", "undead", "monster", "mob"] }, "minecraft:variant": { - "value": 0 + "value": 9 } }, "toolsmith": { @@ -186,7 +178,7 @@ "family": ["toolsmith", "zombie_villager", "zombie", "undead", "monster", "mob"] }, "minecraft:variant": { - "value": 0 + "value": 10 } }, "butcher": { @@ -194,7 +186,7 @@ "family": ["butcher", "zombie_villager", "zombie", "undead", "monster", "mob"] }, "minecraft:variant": { - "value": 0 + "value": 11 } }, "leatherworker": { @@ -202,7 +194,7 @@ "family": ["leatherworker", "zombie_villager", "zombie", "undead", "monster", "mob"] }, "minecraft:variant": { - "value": 0 + "value": 12 } }, "mason": { @@ -210,7 +202,15 @@ "family": ["stone_mason", "zombie_villager", "zombie", "undead", "monster", "mob"] }, "minecraft:variant": { - "value": 0 + "value": 13 + } + }, + "nitwit": { + "minecraft:type_family": { + "family": ["nitwit", "zombie", "zombie_villager", "undead", "monster", "mob"] + }, + "minecraft:variant": { + "value": 14 } }, "desert_villager": { @@ -298,7 +298,13 @@ "minecraft:loot": { "table": "loot_tables/entities/zombie.json" }, - "minecraft:equip_item": {}, + "minecraft:equip_item": { + "excluded_items": [ + { + "item": "minecraft:banner:15" + } + ] + }, "minecraft:conditional_bandwidth_optimization": {}, "minecraft:collision_box": { "width": 0.6, @@ -565,6 +571,7 @@ "despawn_from_distance": {} }, "minecraft:behavior.melee_attack": { + "can_spread_on_fire": true, "priority": 6 }, "minecraft:behavior.equip_item": { diff --git a/manifest.json b/manifest.json index b9b4c6a..506d055 100644 --- a/manifest.json +++ b/manifest.json @@ -1,28 +1,28 @@ { "format_version": 2, "header": { - "name": "Paradox日本語版!! 【Beta2】", - "description": "Paradoxv3.3.4 日本語版です!!編集者:こう君", - "uuid": "88eedb1b-eb23-477b-8599-78d97cbe374e", - "version": [3, 3, 4], - "min_engine_version": [1, 20, 10] + "name": "Paradox AntiCheat", + "description": "A utility to fight against malicious hackers on Bedrock Edition ~ v3.3.6", + "uuid": "54edfea5-ab51-47ca-b992-724e255b5560", + "version": [3, 3, 6], + "min_engine_version": [1, 20, 30] }, "metadata": { - "authors": ["MrDiamond64, Visual1mpact, Koukunn_"], + "authors": ["MrDiamond64, Visual1mpact"], "license": "GPLv3", "url": "https://github.com/Visual1mpact/Paradox_AntiCheat" }, "modules": [ { "type": "data", - "uuid": "f312754d-6bed-493a-a391-4e99b4ccae01", + "uuid": "d8395127-6923-4fb7-93d2-977cecd463e0", "version": [1, 0, 0] }, { "description": "Paradox AntiCheat Gametest Features", "language": "javascript", "type": "script", - "uuid": "4ec6a34d-fa29-4477-9c88-7a44ed0163d8", + "uuid": "1326c87b-37f3-4543-9f0f-0d03893134e1", "version": [0, 0, 1], "entry": "scripts/paradox.js" } @@ -30,7 +30,7 @@ "dependencies": [ { "module_name": "@minecraft/server", - "version": "1.4.0-beta" + "version": "1.6.0-beta" }, { "module_name": "@minecraft/server-ui", diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json index 014e0f6..240eb83 100644 --- a/node_modules/.package-lock.json +++ b/node_modules/.package-lock.json @@ -1,57 +1,211 @@ { - "name": "paradox-anticheat", - "version": "3.3.4", - "lockfileVersion": 3, - "requires": true, - "packages": { - "node_modules/@minecraft/server": { - "version": "1.4.0-beta.1.20.10-stable", - "license": "MIT" - }, - "node_modules/@minecraft/server-ui": { - "version": "1.2.0-beta.1.20.10-stable", - "license": "MIT", - "dependencies": { - "@minecraft/server": "^1.4.0-beta.1.20.10-stable" - } - }, - "node_modules/7zip-bin": { - "version": "5.2.0", - "dev": true, - "license": "MIT" - }, - "node_modules/i": { - "version": "0.3.7", - "resolved": "https://registry.npmjs.org/i/-/i-0.3.7.tgz", - "integrity": "sha512-FYz4wlXgkQwIPqhzC5TdNMLSE5+GS1IIDJZY/1ZiEPCT2S3COUVZeT5OW4BmW4r5LHLQuOosSwsvnroG9GR59Q==", - "engines": { - "node": ">=0.4" - } - }, - "node_modules/prettier": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "bin": { - "prettier": "bin/prettier.cjs" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, - "node_modules/typescript": { - "version": "5.1.6", - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - } + "name": "paradox-anticheat", + "version": "3.3.6", + "lockfileVersion": 3, + "requires": true, + "packages": { + "node_modules/@minecraft/server": { + "version": "1.6.0-beta.1.20.30-stable", + "resolved": "https://registry.npmjs.org/@minecraft/server/-/server-1.6.0-beta.1.20.30-stable.tgz", + "integrity": "sha512-hvRjxbI7cl7LVAv+wmw253O6IHFUVBEMvTl+FJLnUaQv9f/JkGBaVDKgyH0yR7G1SMgVLRoQIA5CM8IZWYDHew==" + }, + "node_modules/@minecraft/server-ui": { + "version": "1.2.0-beta.1.20.30-stable", + "resolved": "https://registry.npmjs.org/@minecraft/server-ui/-/server-ui-1.2.0-beta.1.20.30-stable.tgz", + "integrity": "sha512-0Sk3qFwOmMpihk/q5LTlpi4TfsuM6I/3PbMz1ijM/3zFP49CgXu9ZyDAYT6gQAOtnBIaQBM0Y7BFVrwtxDoMYw==", + "dependencies": { + "@minecraft/server": "^1.6.0-beta.1.20.30-stable" + } + }, + "node_modules/7zip-bin": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/7zip-bin/-/7zip-bin-5.2.0.tgz", + "integrity": "sha512-ukTPVhqG4jNzMro2qA9HSCSSVJN3aN7tlb+hfqYCt3ER0yWroeA2VR38MNrOHLQ/cVj+DaIMad0kFCtWWowh/A==", + "dev": true + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/async": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", + "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==" + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + }, + "node_modules/ejs": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.9.tgz", + "integrity": "sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ==", + "dependencies": { + "jake": "^10.8.5" + }, + "bin": { + "ejs": "bin/cli.js" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/filelist": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", + "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", + "dependencies": { + "minimatch": "^5.0.1" + } + }, + "node_modules/filelist/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/filelist/node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/jake": { + "version": "10.8.7", + "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.7.tgz", + "integrity": "sha512-ZDi3aP+fG/LchyBzUM804VjddnwfSfsdeYkwt8NcbKRvo4rFkjhs456iLFn3k2ZUWvNe4i48WACDbza8fhq2+w==", + "dependencies": { + "async": "^3.2.3", + "chalk": "^4.0.2", + "filelist": "^1.0.4", + "minimatch": "^3.1.2" + }, + "bin": { + "jake": "bin/cli.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/prettier": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz", + "integrity": "sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==", + "dev": true, + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/typescript": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", + "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } } + } } diff --git a/node_modules/@minecraft/server-ui/README.md b/node_modules/@minecraft/server-ui/README.md index d327864..b7b054a 100644 --- a/node_modules/@minecraft/server-ui/README.md +++ b/node_modules/@minecraft/server-ui/README.md @@ -12,4 +12,4 @@ The `@minecraft/server-ui` module contains types for expressing simple dialog-ba See full documentation for this module here: -https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/@minecraft/server-ui/@minecraft/server-ui \ No newline at end of file +https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/minecraft/server-ui/minecraft-server-ui \ No newline at end of file diff --git a/node_modules/@minecraft/server-ui/package.json b/node_modules/@minecraft/server-ui/package.json index e9b5476..eb25242 100644 --- a/node_modules/@minecraft/server-ui/package.json +++ b/node_modules/@minecraft/server-ui/package.json @@ -1,6 +1,6 @@ { "name": "@minecraft/server-ui", - "version": "1.2.0-beta.1.20.10-stable", + "version": "1.2.0-beta.1.20.30-stable", "description": "", "contributors": [ { @@ -13,7 +13,7 @@ } ], "dependencies": { - "@minecraft/server": "^1.4.0-beta.1.20.10-stable" + "@minecraft/server": "^1.6.0-beta.1.20.30-stable" }, "license": "MIT" } \ No newline at end of file diff --git a/node_modules/@minecraft/server/README.md b/node_modules/@minecraft/server/README.md index bf8b4df..4dab112 100644 --- a/node_modules/@minecraft/server/README.md +++ b/node_modules/@minecraft/server/README.md @@ -4,4 +4,4 @@ Contains many types related to manipulating a Minecraft world, including entitie See full documentation for this module here: -https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/@minecraft/server/@minecraft/server \ No newline at end of file +https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/minecraft/server/minecraft-server \ No newline at end of file diff --git a/node_modules/@minecraft/server/index.d.ts b/node_modules/@minecraft/server/index.d.ts index 3935475..f271930 100644 --- a/node_modules/@minecraft/server/index.d.ts +++ b/node_modules/@minecraft/server/index.d.ts @@ -15,70 +15,128 @@ * ```json * { * "module_name": "@minecraft/server", - * "version": "1.3.0" + * "version": "1.5.0" * } * ``` * */ /** * @beta + * Description of the resulting intersection test on two + * BlockVolume objects */ export enum BlockVolumeIntersection { + /** + * @beta + * @remarks + * Volume B has no intersection points with Volume A + * + */ Disjoint = 0, + /** + * @beta + * @remarks + * Volume B resides completely inside Volume A + * + */ Contains = 1, + /** + * @beta + * @remarks + * Volume B partially intersects Volume A + * + */ Intersects = 2, } /** * @beta + * The Action enum determines how the CompoundBlockVolume + * considers the associated CompoundBlockVolumeItem when + * performing inside/outside calculations. */ export enum CompoundBlockVolumeAction { + /** + * @beta + * @remarks + * The associated BlockVolume is considered a positive space, + * and any intersection tests are considered hits + * + */ Add = 0, + /** + * @beta + * @remarks + * The associated BlockVolume is considered a negative or void + * space, and any intersection tests are considered misses. + * Using the Subtract action, it is possible to `punch holes` + * in block volumes so that any intersection tests may pass + * through such spaces + * + */ Subtract = 1, } /** * @beta + * An enum describing the relativity of the + * CompoundBlockVolumeItem, relative to the parent + * CompoundVolume. + */ +export enum CompoundBlockVolumePositionRelativity { + /** + * @beta + * @remarks + * The locations within the associated BlockVolume are relative + * to the CompoundBlockVolume to which they were added + * + */ + Relative = 0, + /** + * @beta + * @remarks + * The locations within the associated BlockVolume are in + * absolute world space + * + */ + Absolute = 1, +} + +/** * A general purpose relative direction enumeration. */ export enum Direction { /** - * @beta * @remarks * Returns the block beneath (y - 1) of this item. * */ Down = 'Down', /** - * @beta * @remarks * Returns the block to the east (x + 1) of this item. * */ East = 'East', /** - * @beta * @remarks * Returns the block to the east (z + 1) of this item. * */ North = 'North', /** - * @beta * @remarks * Returns the block to the south (z - 1) of this item. * */ South = 'South', /** - * @beta * @remarks * Returns the block above (y + 1) of this item. * */ Up = 'Up', /** - * @beta * @remarks * Returns the block to the west (x - 1) of this item. * @@ -87,36 +145,186 @@ export enum Direction { } /** - * @beta + * Specifies a mechanism for displaying scores on a scoreboard. */ export enum DisplaySlotId { + /** + * @remarks + * Displays the score below the player's name. + * + */ BelowName = 'BelowName', + /** + * @remarks + * Displays the score as a list on the pause screen. + * + */ List = 'List', + /** + * @remarks + * Displays the score on the side of the player's screen. + * + */ Sidebar = 'Sidebar', } /** * @beta + * Specifies different colors for use as dye. */ export enum DyeColor { + /** + * @beta + * @remarks + * Black dye color. + * + */ Black = 'Black', + /** + * @beta + * @remarks + * Blue dye color. + * + */ Blue = 'Blue', + /** + * @beta + * @remarks + * Brown dye color. + * + */ Brown = 'Brown', + /** + * @beta + * @remarks + * Cyan dye color. + * + */ Cyan = 'Cyan', + /** + * @beta + * @remarks + * Gray dye color. + * + */ Gray = 'Gray', + /** + * @beta + * @remarks + * Green dye color. + * + */ Green = 'Green', + /** + * @beta + * @remarks + * Light blue dye color. + * + */ LightBlue = 'LightBlue', + /** + * @beta + * @remarks + * Lime dye color. + * + */ Lime = 'Lime', + /** + * @beta + * @remarks + * Magenta dye color. + * + */ Magenta = 'Magenta', + /** + * @beta + * @remarks + * Orange dye color. + * + */ Orange = 'Orange', + /** + * @beta + * @remarks + * Pink dye color. + * + */ Pink = 'Pink', + /** + * @beta + * @remarks + * Purple dye color. + * + */ Purple = 'Purple', + /** + * @beta + * @remarks + * Red dye color. + * + */ Red = 'Red', + /** + * @beta + * @remarks + * Silver dye color. + * + */ Silver = 'Silver', + /** + * @beta + * @remarks + * White dye color. + * + */ White = 'White', + /** + * @beta + * @remarks + * Yellow dye color. + * + */ Yellow = 'Yellow', } +/** + * @beta + */ +export enum EasingType { + InBack = 'InBack', + InBounce = 'InBounce', + InCirc = 'InCirc', + InCubic = 'InCubic', + InElastic = 'InElastic', + InExpo = 'InExpo', + InOutBack = 'InOutBack', + InOutBounce = 'InOutBounce', + InOutCirc = 'InOutCirc', + InOutCubic = 'InOutCubic', + InOutElastic = 'InOutElastic', + InOutExpo = 'InOutExpo', + InOutQuad = 'InOutQuad', + InOutQuart = 'InOutQuart', + InOutQuint = 'InOutQuint', + InOutSine = 'InOutSine', + InQuad = 'InQuad', + InQuart = 'InQuart', + InQuint = 'InQuint', + InSine = 'InSine', + Linear = 'Linear', + OutBack = 'OutBack', + OutBounce = 'OutBounce', + OutCirc = 'OutCirc', + OutCubic = 'OutCubic', + OutElastic = 'OutElastic', + OutExpo = 'OutExpo', + OutQuad = 'OutQuad', + OutQuart = 'OutQuart', + OutQuint = 'OutQuint', + OutSine = 'OutSine', + Spring = 'Spring', +} + export enum EntityDamageCause { anvil = 'anvil', blockExplosion = 'blockExplosion', @@ -151,6 +359,45 @@ export enum EntityDamageCause { wither = 'wither', } +/** + * @beta + * An enumeration describing initialization cause of an entity. + */ +export enum EntityInitializationCause { + /** + * @beta + * @remarks + * Case when an entity is created as child of other entity or + * entities, e.g., cows making a cow or slimes making smaller + * slimes after dying. + * + */ + Born = 'Born', + /** + * @beta + * @remarks + * Case when an entity is created by an event, e.g., Wandering + * trader spawning llamas. + * + */ + Event = 'Event', + Loaded = 'Loaded', + /** + * @beta + * @remarks + * Case when an entity is naturally spawned in the world. + * + */ + Spawned = 'Spawned', + /** + * @beta + * @remarks + * Case when an entity is transformed into another entity. + * + */ + Transformed = 'Transformed', +} + /** * @beta * Describes the lifetime state of an Entity. For example, @@ -177,59 +424,52 @@ export enum EntityLifetimeState { } /** - * @beta * The equipment slot of the mob. This includes armor, offhand * and mainhand slots. */ export enum EquipmentSlot { /** - * @beta * @remarks * The chest slot. This slot is used to hold items such as * Chestplate or Elytra. * */ - chest = 'chest', + Chest = 'Chest', /** - * @beta * @remarks * The feet slot. This slot is used to hold items such as * Boots. * */ - feet = 'feet', + Feet = 'Feet', /** - * @beta * @remarks * The head slot. This slot is used to hold items such as * Helmets or Carved Pumpkins. * */ - head = 'head', + Head = 'Head', /** - * @beta * @remarks * The legs slot. This slot is used to hold items such as * Leggings. * */ - legs = 'legs', + Legs = 'Legs', /** - * @beta * @remarks * The mainhand slot. For players, the mainhand slot refers to * the currently active hotbar slot. * */ - mainhand = 'mainhand', + Mainhand = 'Mainhand', /** - * @beta * @remarks * The offhand slot. This slot is used to hold items such as * shields and maps. * */ - offhand = 'offhand', + Offhand = 'Offhand', } /** @@ -342,12 +582,27 @@ export enum ItemLockMode { /** * @beta + * Enum containing the different phases of the moon based on + * the current day. + * Obtain the current MoonPhase using world.getMoonPhase + */ +export enum MoonPhase { + FullMoon = 0, + WaningGibbous = 1, + FirstQuarter = 2, + WaningCrescent = 3, + NewMoon = 4, + WaxingCrescent = 5, + LastQuarter = 6, + WaxingGibbous = 7, +} + +/** * Used for specifying a sort order for how to display an * objective and its list of participants. */ export enum ObjectiveSortOrder { /** - * @beta * @remarks * Objective participant list is displayed in ascending (e.g., * A-Z) order. @@ -355,7 +610,6 @@ export enum ObjectiveSortOrder { */ Ascending = 0, /** - * @beta * @remarks * Objective participant list is displayed in descending (e.g., * Z-A) order. @@ -365,19 +619,16 @@ export enum ObjectiveSortOrder { } /** - * @beta * Contains objectives and participants for the scoreboard. */ export enum ScoreboardIdentityType { /** - * @beta * @remarks * This scoreboard participant is tied to an entity. * */ Entity = 'Entity', /** - * @beta * @remarks * This scoreboard participant is tied to a pseudo player * entity - typically this is used to store scores as data or @@ -386,7 +637,6 @@ export enum ScoreboardIdentityType { */ FakePlayer = 'FakePlayer', /** - * @beta * @remarks * This scoreboard participant is tied to a player. * @@ -395,12 +645,10 @@ export enum ScoreboardIdentityType { } /** - * @beta * Describes where the script event originated from. */ export enum ScriptEventSource { /** - * @beta * @remarks * The script event originated from a Block such as a Command * Block. @@ -408,7 +656,6 @@ export enum ScriptEventSource { */ Block = 'Block', /** - * @beta * @remarks * The script event originated from an Entity such as a Player, * Command Block Minecart or Animation Controller. @@ -416,14 +663,12 @@ export enum ScriptEventSource { */ Entity = 'Entity', /** - * @beta * @remarks * The script event originated from an NPC dialogue. * */ NPCDialogue = 'NPCDialogue', /** - * @beta * @remarks * The script event originated from the server, such as from a * runCommand API call or a dedicated server console. @@ -454,7 +699,6 @@ export enum SignSide { } /** - * @beta * Provides numeric values for common periods in the Minecraft * day. */ @@ -494,10 +738,30 @@ export enum WatchdogTerminateReason { /** * @beta + * Used to specify the type of weather condition within the + * world. */ export enum WeatherType { + /** + * @beta + * @remarks + * Specifies a clear weather condition. + * + */ Clear = 'Clear', + /** + * @beta + * @remarks + * Specifies a rain weather condition. + * + */ Rain = 'Rain', + /** + * @beta + * @remarks + * Specifies a rain and thunder weather condition. + * + */ Thunder = 'Thunder', } @@ -515,6 +779,48 @@ export class Block { * */ readonly dimension: Dimension; + /** + * @beta + * @remarks + * Returns true if this block is an air block (i.e., empty + * space). + * + * @throws This property can throw when used. + * + * {@link LocationInUnloadedChunkError} + * + * {@link LocationOutOfWorldBoundariesError} + */ + readonly isAir: boolean; + /** + * @beta + * @remarks + * Returns true if this block is a liquid block - (e.g., a + * water block and a lava block are liquid, while an air block + * and a stone block are not. Water logged blocks are not + * liquid blocks). + * + * @throws This property can throw when used. + * + * {@link LocationInUnloadedChunkError} + * + * {@link LocationOutOfWorldBoundariesError} + */ + readonly isLiquid: boolean; + /** + * @beta + * @remarks + * Returns true if this block is solid and impassible - (e.g., + * a cobblestone block and a diamond block are solid, while a + * ladder block and a fence block are not). + * + * @throws This property can throw when used. + * + * {@link LocationInUnloadedChunkError} + * + * {@link LocationOutOfWorldBoundariesError} + */ + readonly isSolid: boolean; /** * @beta * @remarks @@ -537,6 +843,10 @@ export class Block { * block. * * @throws This property can throw when used. + * + * {@link LocationInUnloadedChunkError} + * + * {@link LocationOutOfWorldBoundariesError} */ readonly permutation: BlockPermutation; /** @@ -545,6 +855,10 @@ export class Block { * Gets the type of block. * * @throws This property can throw when used. + * + * {@link LocationInUnloadedChunkError} + * + * {@link LocationOutOfWorldBoundariesError} */ readonly 'type': BlockType; /** @@ -553,6 +867,10 @@ export class Block { * Identifier of the type of block for this block. * * @throws This property can throw when used. + * + * {@link LocationInUnloadedChunkError} + * + * {@link LocationOutOfWorldBoundariesError} */ readonly typeId: string; /** @@ -589,8 +907,14 @@ export class Block { * Returns `true` if the block type or permutation can be * placed on this block, else `false`. * @throws This function can throw errors. + * + * {@link Error} + * + * {@link LocationInUnloadedChunkError} + * + * {@link LocationOutOfWorldBoundariesError} */ - canPlace(blockToPlace: BlockPermutation | BlockType, faceToPlaceOn?: Direction): boolean; + canPlace(blockToPlace: BlockPermutation | BlockType | string, faceToPlaceOn?: Direction): boolean; /** * @remarks * Gets additional configuration properties (a component) for @@ -604,6 +928,10 @@ export class Block { * Returns the component object if it is present on the * particular block. * @throws This function can throw errors. + * + * {@link LocationInUnloadedChunkError} + * + * {@link LocationOutOfWorldBoundariesError} */ getComponent(componentName: string): BlockComponent | undefined; /** @@ -619,6 +947,10 @@ export class Block { * Whether additional data facets of the item stack are * included. * @throws This function can throw errors. + * + * {@link LocationInUnloadedChunkError} + * + * {@link LocationOutOfWorldBoundariesError} */ getItemStack(amount?: number, withData?: boolean): ItemStack; /** @@ -630,6 +962,10 @@ export class Block { * Returns undefined if redstone power is not applicable to * this block. * @throws This function can throw errors. + * + * {@link LocationInUnloadedChunkError} + * + * {@link LocationOutOfWorldBoundariesError} */ getRedstonePower(): number | undefined; /** @@ -640,6 +976,10 @@ export class Block { * @returns * The list of tags that the block has. * @throws This function can throw errors. + * + * {@link LocationInUnloadedChunkError} + * + * {@link LocationOutOfWorldBoundariesError} */ getTags(): string[]; /** @@ -654,7 +994,11 @@ export class Block { * Returns `true` if the permutation of this block has the tag, * else `false`. * @throws This function can throw errors. - * @example check_block_tags.js + * + * {@link LocationInUnloadedChunkError} + * + * {@link LocationOutOfWorldBoundariesError} + * @example check_block_tags.js * ```typescript * import { world } from "@minecraft/server"; * @@ -668,36 +1012,6 @@ export class Block { */ hasTag(tag: string): boolean; /** - * @beta - * @remarks - * Returns true if this block is an air block (i.e., empty - * space). - * - * @throws This function can throw errors. - */ - isAir(): boolean; - /** - * @beta - * @remarks - * Returns true if this block is a liquid block - (e.g., a - * water block and a lava black are liquid, while an air block - * and a stone block are not). - * - * @throws This function can throw errors. - */ - isLiquid(): boolean; - /** - * @beta - * @remarks - * Returns true if this block is solid and impassible - (e.g., - * a cobblestone block and a diamond block are solid, while a - * ladder block and a fence block are not). - * - * @throws This function can throw errors. - */ - isSolid(): boolean; - /** - * @beta * @remarks * Returns true if this reference to a block is still valid * (for example, if the block is unloaded, references to that @@ -718,6 +1032,10 @@ export class Block { * Permutation that contains a set of property states for the * Block. * @throws This function can throw errors. + * + * {@link LocationInUnloadedChunkError} + * + * {@link LocationOutOfWorldBoundariesError} */ setPermutation(permutation: BlockPermutation): void; /** @@ -731,8 +1049,14 @@ export class Block { * Identifier of the type of block to apply - for example, * minecraft:powered_repeater. * @throws This function can throw errors. + * + * {@link Error} + * + * {@link LocationInUnloadedChunkError} + * + * {@link LocationOutOfWorldBoundariesError} */ - setType(blockType: BlockType): void; + setType(blockType: BlockType | string): void; /** * @beta * @remarks @@ -748,6 +1072,10 @@ export class Block { * Returns `true` if the block permutation data was * successfully set, else `false`. * @throws This function can throw errors. + * + * {@link LocationInUnloadedChunkError} + * + * {@link LocationOutOfWorldBoundariesError} */ trySetPermutation(permutation: BlockPermutation): boolean; } @@ -791,39 +1119,6 @@ export class BlockAreaSize { equals(other: BlockAreaSize): boolean; } -/** - * @beta - * Contains information regarding an event where a player - * breaks a block. - */ -// @ts-ignore Class inheritance allowed for native defined classes -export class BlockBreakAfterEvent extends BlockEvent { - private constructor(); - /** - * @remarks - * Returns permutation information about this block before it - * was broken. - * - */ - readonly brokenBlockPermutation: BlockPermutation; - /** - * @remarks - * Player that broke the block for this event. - * - */ - readonly player: Player; -} - -/** - * @beta - * Manages callbacks that are connected to when a block is - * broken. - */ -// @ts-ignore Class inheritance allowed for native defined classes -export class BlockBreakAfterEventSignal extends IBlockBreakAfterEventSignal { - private constructor(); -} - /** * Base type for components associated with blocks. */ @@ -886,9 +1181,27 @@ export class BlockExplodeAfterEvent extends BlockEvent { * Manages callbacks that are connected to when an explosion * occurs, as it impacts individual blocks. */ -// @ts-ignore Class inheritance allowed for native defined classes -export class BlockExplodeAfterEventSignal extends IBlockExplodeAfterEventSignal { +export class BlockExplodeAfterEventSignal { private constructor(); + /** + * @remarks + * Adds a callback that will be called when an explosion + * occurs, as it impacts individual blocks. + * + * This function can't be called in read-only mode. + * + */ + subscribe(callback: (arg: BlockExplodeAfterEvent) => void): (arg: BlockExplodeAfterEvent) => void; + /** + * @remarks + * Removes a callback from being called when an explosion + * occurs, as it impacts individual blocks. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + unsubscribe(callback: (arg: BlockExplodeAfterEvent) => void): void; } /** @@ -935,6 +1248,18 @@ export class BlockLiquidContainerComponent extends BlockComponent { * */ fillLevel: number; + /** + * @remarks + * Returns true if this reference to a liquid container is + * still valid and contains the liquid of the type you have a + * reference for (for example, if the block is unloaded, no + * longer a liquid container or contains lava when you have a + * potion container component, isValidLiquid will not be true.) + * + * @returns + * True if this liquid container still exists, is valid and + * contains the expected liquid type. + */ isValidLiquid(): boolean; } @@ -1190,32 +1515,6 @@ export class BlockPistonComponent extends BlockComponent { getAttachedBlocks(): Vector3[]; } -/** - * @beta - * Contains information regarding an event where a player - * places a block. - */ -// @ts-ignore Class inheritance allowed for native defined classes -export class BlockPlaceAfterEvent extends BlockEvent { - private constructor(); - /** - * @remarks - * Player that placed the block for this event. - * - */ - readonly player: Player; -} - -/** - * @beta - * Manages callbacks that are connected to when a block is - * placed. - */ -// @ts-ignore Class inheritance allowed for native defined classes -export class BlockPlaceAfterEventSignal extends IBlockPlaceAfterEventSignal { - private constructor(); -} - /** * @beta * Represents a fluid container block that currently contains a @@ -1270,7 +1569,7 @@ export class BlockRecordPlayerComponent extends BlockComponent { * * @throws This function can throw errors. */ - setRecord(recordItemType: ItemType): void; + setRecord(recordItemType: ItemType | string): void; } /** @@ -1417,6 +1716,9 @@ export class BlockStates { * @remarks * Retrieves a specific block state instance. * + * @returns + * Returns the block state instance if it is found. If the + * block state instance is not found returns undefined. */ static get(stateName: string): BlockStateType; /** @@ -1472,6 +1774,33 @@ export class BlockType { readonly id: string; } +/** + * @beta + * Contains a catalog of Minecraft Block Types that are + * available in this world. + */ +export class BlockTypes { + private constructor(); + /** + * @remarks + * Returns a BlockType object for the specified identifier. + * + * @param typeName + * Identifier of the block type. Should follow a namespace:id + * pattern, such as minecraft:dirt. + * @returns + * BlockType object, or undefined if the block type is not + * available within this world. + */ + static get(typeName: string): BlockType | undefined; + /** + * @remarks + * Returns a collection of all available block types. + * + */ + static getAll(): BlockType[]; +} + /** * @beta * Block Volume Utils is a utility class that provides a number @@ -1637,7 +1966,7 @@ export class BlockWaterContainerComponent extends BlockLiquidContainerComponent * Color that is used as the base color for sign text. * @throws This function can throw errors. */ - getCustomColor(): Color; + getCustomColor(): RGBA; /** * @remarks * Sets a custom base color used for the sign text. @@ -1646,7 +1975,7 @@ export class BlockWaterContainerComponent extends BlockLiquidContainerComponent * * @throws This function can throw errors. */ - setCustomColor(color: Color): void; + setCustomColor(color: RGBA): void; } /** @@ -1802,6 +2131,60 @@ export class ButtonPushAfterEventSignal extends IButtonPushAfterEventSignal { private constructor(); } +/** + * @beta + * Contains methods relating to the active camera for the + * specified player. + */ +export class Camera { + private constructor(); + /** + * @remarks + * Clears the active camera for the specified player. Causes + * the specified players to end any in-progress camera + * perspectives, including any eased camera motions, and return + * to their normal perspective. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + clear(): void; + /** + * @remarks + * Begins a camera fade transition. A fade transition is a + * full-screen color that fades-in, holds, and then fades-out. + * + * This function can't be called in read-only mode. + * + * @param fadeCameraOptions + * Additional options around camera fade operations. + * @throws This function can throw errors. + */ + fade(fadeCameraOptions?: CameraFadeOptions): void; + /** + * @remarks + * Sets the current active camera for the specified player. + * + * This function can't be called in read-only mode. + * + * @param cameraPreset + * Identifier of a camera preset file defined within JSON. + * @param setOptions + * Additional options for the camera. + * @throws This function can throw errors. + */ + setCamera( + cameraPreset: string, + setOptions?: + | ScriptCameraDefaultOptions + | ScriptCameraSetFacingOptions + | ScriptCameraSetLocationOptions + | ScriptCameraSetPosOptions + | ScriptCameraSetRotOptions, + ): void; +} + /** * @beta * An event that fires as players enter chat messages. @@ -1844,9 +2227,39 @@ export class ChatSendAfterEvent { * Manages callbacks that are connected to chat messages being * sent. */ -// @ts-ignore Class inheritance allowed for native defined classes -export class ChatSendAfterEventSignal extends IChatSendAfterEventSignal { +export class ChatSendAfterEventSignal { private constructor(); + /** + * @remarks + * Adds a callback that will be called when new chat messages + * are sent. + * + * This function can't be called in read-only mode. + * + * @example custom_command.js + * ```typescript + * const chatCallback = World.beforeEvents.chatSend.subscribe((eventData) => { + * if (eventData.message.includes("cancel")) { + * // Cancel event if the message contains "cancel" + * eventData.canceled = true; + * } else { + * // Modify chat message being sent + * eventData.message = `Modified '${eventData.message}'`; + * } + * }); + * ``` + */ + subscribe(callback: (arg: ChatSendAfterEvent) => void): (arg: ChatSendAfterEvent) => void; + /** + * @remarks + * Removes a callback from being called when new chat messages + * are sent. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + unsubscribe(callback: (arg: ChatSendAfterEvent) => void): void; } /** @@ -1879,9 +2292,27 @@ export class ChatSendBeforeEvent extends ChatSendAfterEvent { * Manages callbacks that are connected to an event that fires * before chat messages are sent. */ -// @ts-ignore Class inheritance allowed for native defined classes -export class ChatSendBeforeEventSignal extends IChatSendBeforeEventSignal { +export class ChatSendBeforeEventSignal { private constructor(); + /** + * @remarks + * Adds a callback that will be called before new chat messages + * are sent. + * + * This function can't be called in read-only mode. + * + */ + subscribe(callback: (arg: ChatSendBeforeEvent) => void): (arg: ChatSendBeforeEvent) => void; + /** + * @remarks + * Removes a callback from being called before new chat + * messages are sent. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + unsubscribe(callback: (arg: ChatSendBeforeEvent) => void): void; } /** @@ -1911,7 +2342,6 @@ export class Component { */ readonly typeId: string; /** - * @beta * @remarks * Returns whether the component is valid. A component is * considered valid if its owner is valid, in addition to any @@ -1941,7 +2371,13 @@ export class Component { * defining a further single 'void' cube inside the larger one. * Similarly, the Compound Block Volume can represent irregular * shaped volumes (e.g. a tree consists of a trunk and lots of - * leaf cubes which are not necessarily contiguously placed) + * leaf cubes which are not necessarily contiguously placed). + * Each of the volumes added to the CompoundBlockVolume are (by + * default) relative to the origin set (either at construction + * or via one of the set functions). + * However, it is also possible to push volumes to the compound + * collection which are absolute in nature and are not affected + * by origin changes. */ export class CompoundBlockVolume { /** @@ -1958,6 +2394,16 @@ export class CompoundBlockVolume { * */ readonly volumeCount: number; + /** + * @remarks + * Create a CompoundBlockVolume object + * + * @param origin + * An optional world space origin on which to center the + * compound volume. + * If not specified, the origin is set to (0,0,0) + */ + constructor(origin?: Vector3); /** * @remarks * Clear the contents of the volume stack @@ -1979,7 +2425,9 @@ export class CompoundBlockVolume { * subtractive volume to the same location, then the iterator * will step over the initial volume because it is considered * negative space) - * + * Note that the Block Locations returned by this iterator are + * in absolute world space (irrespective of whether the + * compound volume items pushed are absolute or relative) * * This function can't be called in read-only mode. * @@ -1989,6 +2437,9 @@ export class CompoundBlockVolume { * @remarks * Get the largest bounding box that represents a container for * all of the volumes on the stack + * Note that the bounding box returned is represented in + * absolute world space (irrespective of whether the compound + * volume items pushed are absolute or relative) * * This function can't be called in read-only mode. * @@ -1997,7 +2448,10 @@ export class CompoundBlockVolume { /** * @remarks * Get the max block location of the outermost bounding - * rectangle which represents the volumes on the stack + * rectangle which represents the volumes on the stack. + * Note that the max location returned is in absolute world + * space (irrespective of whether the compound volume items + * pushed are absolute or relative) * * This function can't be called in read-only mode. * @@ -2006,7 +2460,10 @@ export class CompoundBlockVolume { /** * @remarks * Get the min block location of the outermost bounding - * rectangle which represents the volumes on the stack + * rectangle which represents the volumes on the stack. + * Note that the min location returned is in absolute world + * space (irrespective of whether the compound volume items + * pushed are absolute or relative) * * This function can't be called in read-only mode. * @@ -2014,8 +2471,26 @@ export class CompoundBlockVolume { getMin(): Vector3; /** * @remarks - * Return a boolean representing whether or not a given block - * location is inside a positive block volume. + * Fetch the origin in world space of the compound volume + * + * This function can't be called in read-only mode. + * + */ + getOrigin(): Vector3; + /** + * @remarks + * Return a boolean which signals if there are any volume items + * pushed to the volume + * + * This function can't be called in read-only mode. + * + */ + isEmpty(): boolean; + /** + * @remarks + * Return a boolean representing whether or not a given + * absolute world space block location is inside a positive + * block volume. * E.g. if the stack contains a large cube followed by a * slightly smaller negative cube, and the test location is * within the negative cube - the function will return false @@ -2025,21 +2500,29 @@ export class CompoundBlockVolume { * * This function can't be called in read-only mode. * - * @param delta - * block location to test */ - isInside(delta: Vector3): boolean; + isInside(worldLocation: Vector3): boolean; /** * @remarks * Inspect the last entry pushed to the volume stack without - * affecting the stack contents + * affecting the stack contents. * * This function can't be called in read-only mode. * + * @param forceRelativity + * Determine whether the function returns a + * CompoundBlockVolumeItem which is forced into either relative + * or absolute coordinate system. + * `true` = force returned item to be relative to volume origin + * `false` = force returned item to be absolute world space + * location + * + * If no flag is specified, the item returned retains whatever + * relativity it had when it was pushed * @returns * Returns undefined if the stack is empty */ - peekLastVolume(): CompoundBlockVolumeItem | undefined; + peekLastVolume(forceRelativity?: CompoundBlockVolumePositionRelativity): CompoundBlockVolumeItem | undefined; /** * @remarks * Remove the last entry from the volume stack. This will @@ -2053,7 +2536,10 @@ export class CompoundBlockVolume { * @remarks * Push a volume item to the stack. The volume item contains * an 'action' parameter which determines whether this volume - * is a positive or negative space + * is a positive or negative space. + * The item also contains a `locationRelativity` which + * determines whether it is relative or absolute to the + * compound volume origin * * This function can't be called in read-only mode. * @@ -2076,16 +2562,47 @@ export class CompoundBlockVolume { replaceOrAddLastVolume(item: CompoundBlockVolumeItem): boolean; /** * @remarks - * Move the root block location of the volume by a given - * amount. This effectively adds the specified delta to the - * block location of all of the volumes in the stack + * Set the origin of the compound volume to an absolute world + * space location * * This function can't be called in read-only mode. * - * @param delta - * Amount to move + * @param preserveExistingVolumes + * This optional boolean flag determines whether the relative + * `CompoundBlockVolumeItem`'s are frozen in place, or are + * affected by the new origin. + * Imagine a scenario where you have a series of relative + * locations around an origin which make up a sphere; all of + * these locations are in the range of -2 to 2. + * Push each of these locations to the compound volume as + * relative items. + * Now, move the origin and all of the locations representing + * the sphere move accordingly. + * However, let's say you want to add a 2nd sphere next to the + * 1st. + * In this case, set the new origin a few locations over, but + * 'preserveExistingVolumes' = true. + * This will set a new origin, but the existing sphere + * locations will remain relative to the original origin. + * Now, you can push the relative sphere locations again (this + * time they will be relative to the new origin) - resulting in + * 2 spheres next to each other. + */ + setOrigin(position: Vector3, preserveExistingVolumes?: boolean): void; + /** + * @remarks + * Similar to {@link + * @minecraft-server/CompoundBlockVolume.setOrigin} - this + * function will translate the origin by a given delta to a new + * position + * + * This function can't be called in read-only mode. + * + * @param preserveExistingVolumes + * See the description for the arguments to {@link + * @minecraft-server/CompoundBlockVolume.setOrigin} */ - translate(delta: Vector3): void; + translateOrigin(delta: Vector3, preserveExistingVolumes?: boolean): void; } /** @@ -2174,7 +2691,6 @@ export class Container { */ getSlot(slot: number): ContainerSlot; /** - * @beta * @remarks * Returns whether a container object (or the entity or block * that this container is associated with) is still available @@ -2534,9 +3050,30 @@ export class DataDrivenEntityTriggerAfterEvent { * driven entity event - for example, the * minecraft:ageable_grow_up event on a chicken. */ -// @ts-ignore Class inheritance allowed for native defined classes -export class DataDrivenEntityTriggerAfterEventSignal extends IDataDrivenEntityTriggerAfterEventSignal { +export class DataDrivenEntityTriggerAfterEventSignal { private constructor(); + /** + * @remarks + * Adds a callback that will be called after a data driven + * entity event is triggered. + * + * This function can't be called in read-only mode. + * + */ + subscribe( + callback: (arg: DataDrivenEntityTriggerAfterEvent) => void, + options?: EntityDataDrivenTriggerEventOptions, + ): (arg: DataDrivenEntityTriggerAfterEvent) => void; + /** + * @remarks + * Removes a callback that will be called after a data driven + * entity event is triggered. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + unsubscribe(callback: (arg: DataDrivenEntityTriggerAfterEvent) => void): void; } /** @@ -2589,24 +3126,45 @@ export class DataDrivenEntityTriggerBeforeEvent { * entity event - for example, the minecraft:ageable_grow_up * event on a chicken. */ -// @ts-ignore Class inheritance allowed for native defined classes -export class DataDrivenEntityTriggerBeforeEventSignal extends IDataDrivenEntityTriggerBeforeEventSignal { +export class DataDrivenEntityTriggerBeforeEventSignal { private constructor(); -} - -/** - * @beta - * Contains a set of updates to the component definition state - * of an entity. - */ -export class DefinitionModifier { /** * @remarks - * Retrieves the list of component groups that will be added - * via this definition modification. + * Adds a callback that will be called before a data driven + * entity event is triggered. + * + * This function can't be called in read-only mode. * */ - getComponentGroupsToAdd(): string[]; + subscribe( + callback: (arg: DataDrivenEntityTriggerBeforeEvent) => void, + options?: EntityDataDrivenTriggerEventOptions, + ): (arg: DataDrivenEntityTriggerBeforeEvent) => void; + /** + * @remarks + * Removes a callback that will be called before a data driven + * entity event is triggered. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + unsubscribe(callback: (arg: DataDrivenEntityTriggerBeforeEvent) => void): void; +} + +/** + * @beta + * Contains a set of updates to the component definition state + * of an entity. + */ +export class DefinitionModifier { + /** + * @remarks + * Retrieves the list of component groups that will be added + * via this definition modification. + * + */ + getComponentGroupsToAdd(): string[]; /** * @remarks * Retrieves the list of component groups that will be removed @@ -2650,11 +3208,18 @@ export class DefinitionModifier { */ export class Dimension { private constructor(); + /** + * @beta + * @remarks + * Height range of the dimension. + * + * @throws This property can throw when used. + */ + readonly heightRange: NumberRange; /** * @remarks * Identifier of the dimension. * - * @throws This property can throw when used. */ readonly id: string; /** @@ -2671,6 +3236,10 @@ export class Dimension { * @param explosionOptions * Additional configurable options for the explosion. * @throws This function can throw errors. + * + * {@link LocationInUnloadedChunkError} + * + * {@link LocationOutOfWorldBoundariesError} * @example createExplosion.ts * ```typescript * const overworld = mc.world.getDimension("overworld"); @@ -2728,7 +3297,12 @@ export class Dimension { * Returns number of blocks placed. * @throws This function can throw errors. */ - fillBlocks(begin: Vector3, end: Vector3, block: BlockPermutation | BlockType, options?: BlockFillOptions): number; + fillBlocks( + begin: Vector3, + end: Vector3, + block: BlockPermutation | BlockType | string, + options?: BlockFillOptions, + ): number; /** * @remarks * Returns a block instance at the given location. @@ -2747,10 +3321,13 @@ export class Dimension { * trying to interact with a position outside of dimension * height range * + * + * {@link LocationInUnloadedChunkError} + * + * {@link LocationOutOfWorldBoundariesError} */ getBlock(location: Vector3): Block | undefined; /** - * @beta * @remarks * Gets the first block that intersects with a vector emanating * from a location. @@ -2842,7 +3419,6 @@ export class Dimension { */ getEntitiesAtBlockLocation(location: Vector3): Entity[]; /** - * @beta * @remarks * Gets entities that intersect with a specified vector * emanating from a location. @@ -2883,6 +3459,8 @@ export class Dimension { * command. Note that in many cases, if the command does not * operate (e.g., a target selector found no matches), this * method will not throw an exception. + * + * {@link CommandError} */ runCommand(commandString: string): CommandResult; /** @@ -2909,14 +3487,19 @@ export class Dimension { /** * @beta * @remarks - * Sets the current weather within the dimesion + * Sets the current weather within the dimension * * This function can't be called in read-only mode. * * @param weatherType - * Set of weather to apply. + * Set the type of weather to apply. + * @param duration + * Sets the duration of the weather (in ticks). If no duration + * is provided, the duration will be set to a random duration + * between 300 and 900 seconds. + * @throws This function can throw errors. */ - setWeather(weatherType: WeatherType): void; + setWeather(weatherType: WeatherType, duration?: number): void; /** * @remarks * Creates a new entity (e.g., a mob) at the specified @@ -2932,6 +3515,10 @@ export class Dimension { * @returns * Newly created entity at the specified location. * @throws This function can throw errors. + * + * {@link LocationInUnloadedChunkError} + * + * {@link LocationOutOfWorldBoundariesError} * @example createOldHorse.ts * ```typescript * const overworld = mc.world.getDimension("overworld"); @@ -2985,6 +3572,10 @@ export class Dimension { * @returns * Newly created item stack entity at the specified location. * @throws This function can throw errors. + * + * {@link LocationInUnloadedChunkError} + * + * {@link LocationOutOfWorldBoundariesError} * @example itemStacks.ts * ```typescript * const overworld = mc.world.getDimension('overworld'); @@ -3016,7 +3607,6 @@ export class Dimension { */ spawnItem(itemStack: ItemStack, location: Vector3): Entity; /** - * @beta * @remarks * Creates a new particle emitter at a specified location in * the world. @@ -3028,11 +3618,13 @@ export class Dimension { * @param location * The location at which to create the particle emitter. * @param molangVariables - * A set of additional, customizable variables that can be - * adjusted for this particle emitter. - * @returns - * Newly created entity at the specified location. + * A set of optional, customizable variables that can be + * adjusted for this particle. * @throws This function can throw errors. + * + * {@link LocationInUnloadedChunkError} + * + * {@link LocationOutOfWorldBoundariesError} * @example spawnParticle.ts * ```typescript * for (let i = 0; i < 100; i++) { @@ -3049,7 +3641,41 @@ export class Dimension { * } * ``` */ - spawnParticle(effectName: string, location: Vector3, molangVariables: MolangVariableMap): void; + spawnParticle(effectName: string, location: Vector3, molangVariables?: MolangVariableMap): void; +} + +/** + * @beta + * Represents a type of dimension. + */ +export class DimensionType { + private constructor(); + /** + * @remarks + * Identifier of the dimension type. + * + */ + readonly typeId: string; +} + +/** + * @beta + * Used for accessing all available dimension types. + */ +export class DimensionTypes { + private constructor(); + /** + * @remarks + * Retrieves a dimension type using a string-based identifier. + * + */ + static get(dimensionTypeId: string): DimensionType | undefined; + /** + * @remarks + * Retrieves an array of all dimension types. + * + */ + static getAll(): DimensionType[]; } /** @@ -3080,6 +3706,17 @@ export class DynamicPropertiesDefinition { * @throws This function can throw errors. */ defineString(identifier: string, maxLength: number, defaultValue?: string): DynamicPropertiesDefinition; + /** + * @remarks + * Defines a new Vector3-based dynamic property. + * + * @param identifier + * Identifier of the Vector3 property. + * @param defaultValue + * Optional default starting Vector for this property. + * @throws This function can throw errors. + */ + defineVector(identifier: string, defaultValue?: Vector3): DynamicPropertiesDefinition; } /** @@ -3168,9 +3805,30 @@ export class EffectAddAfterEvent { * Manages callbacks that are connected to when an effect is * added to an entity. */ -// @ts-ignore Class inheritance allowed for native defined classes -export class EffectAddAfterEventSignal extends IEffectAddAfterEventSignal { +export class EffectAddAfterEventSignal { private constructor(); + /** + * @remarks + * Adds a callback that will be called when an effect is added + * to an entity. + * + * This function can't be called in read-only mode. + * + */ + subscribe( + callback: (arg: EffectAddAfterEvent) => void, + options?: EntityEventOptions, + ): (arg: EffectAddAfterEvent) => void; + /** + * @remarks + * Removes a callback from being called when an effect is added + * to an entity. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + unsubscribe(callback: (arg: EffectAddAfterEvent) => void): void; } /** @@ -3435,7 +4093,6 @@ export class Entity { * property is accessible even if {@link Entity.isValid} is * false. * - * @throws This property can throw when used. */ readonly id: string; /** @@ -3473,6 +4130,14 @@ export class Entity { * @throws This property can throw when used. */ readonly isOnGround: boolean; + /** + * @beta + * @remarks + * If true, the entity is currently sleeping. + * + * @throws This property can throw when used. + */ + readonly isSleeping: boolean; /** * @beta * @remarks @@ -3528,11 +4193,10 @@ export class Entity { */ nameTag: string; /** - * @beta * @remarks * Returns a scoreboard identity that represents this entity. + * Will remain valid when the entity is killed. * - * @throws This property can throw when used. */ readonly scoreboardIdentity?: ScoreboardIdentity; /** @@ -3546,11 +4210,10 @@ export class Entity { readonly target: Entity; /** * @remarks - * Unique identifier of the type of the entity - for example, + * Identifier of the type of the entity - for example, * 'minecraft:skeleton'. This property is accessible even if * {@link Entity.isValid} is false. * - * @throws This property can throw when used. */ readonly typeId: string; /** @@ -3797,7 +4460,6 @@ export class Entity { */ extinguishFire(useEffects?: boolean): boolean; /** - * @beta * @remarks * Returns the first intersecting block from the direction that * this entity is looking at. @@ -3847,7 +4509,7 @@ export class Entity { * property has not been set. * @throws This function can throw errors. */ - getDynamicProperty(identifier: string): boolean | number | string | undefined; + getDynamicProperty(identifier: string): boolean | number | string | Vector3 | undefined; /** * @remarks * Returns the effect for the specified EffectType on the @@ -3873,7 +4535,6 @@ export class Entity { */ getEffects(): Effect[]; /** - * @beta * @remarks * Gets the entities that this entity is looking at by * performing a ray cast from the view of this entity. @@ -3900,10 +4561,29 @@ export class Entity { /** * @beta * @remarks - * Returns the current rotation component of this entity. + * Gets an entity Property value. If the property was set using + * the setProperty function within the same tick, the updated + * value will not be reflected until the subsequent tick. * + * @param identifier + * The entity Property identifier. * @returns + * Returns the current property value. For enum properties, a + * string is returned. For float and int properties, a number + * is returned. For undefined properties, undefined is + * returned. + * @throws + * Throws if the entity is invalid. + */ + getProperty(identifier: string): boolean | number | string | undefined; + /** + * @beta + * @remarks * Returns the current rotation component of this entity. + * + * @returns + * Returns a Vec2 containing the rotation of this entity (in + * degrees). * @throws This function can throw errors. */ getRotation(): Vector2; @@ -3970,7 +4650,6 @@ export class Entity { */ hasTag(tag: string): boolean; /** - * @beta * @remarks * Returns whether the entity can be manipulated by script. A * Player is considered valid when it's EntityLifetimeState is @@ -4026,6 +4705,18 @@ export class Entity { * @throws This function can throw errors. */ playAnimation(animationName: string, options?: PlayAnimationOptions): void; + /** + * @beta + * @remarks + * Immediately removes the entity from the world. The removed + * entity will not perform a death animation or drop loot upon + * removal. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + remove(): void; /** * @beta * @remarks @@ -4066,6 +4757,26 @@ export class Entity { * @throws This function can throw errors. */ removeTag(tag: string): boolean; + /** + * @beta + * @remarks + * Resets an Entity Property back to its default value, as + * specified in the Entity's definition. This property change + * is not applied until the next tick. + * + * This function can't be called in read-only mode. + * + * @param identifier + * The Entity Property identifier. + * @returns + * Returns the default property value. For enum properties, a + * string is returned. For float and int properties, a number + * is returned. For undefined properties, undefined is + * returned. + * @throws + * Throws if the entity is invalid. + */ + resetProperty(identifier: string): boolean | number | string; /** * @remarks * Runs a synchronous command on the entity. @@ -4079,6 +4790,10 @@ export class Entity { * A command result containing whether the command was * successful. * @throws This function can throw errors. + * + * {@link CommandError} + * + * {@link Error} */ runCommand(commandString: string): CommandResult; /** @@ -4107,7 +4822,7 @@ export class Entity { * Data value of the property to set. * @throws This function can throw errors. */ - setDynamicProperty(identifier: string, value: boolean | number | string): void; + setDynamicProperty(identifier: string, value: boolean | number | string | Vector3): void; /** * @beta * @remarks @@ -4157,6 +4872,30 @@ export class Entity { * ``` */ setOnFire(seconds: number, useEffects?: boolean): boolean; + /** + * @beta + * @remarks + * Sets an Entity Property to the provided value. This property + * change is not applied until the next tick. + * + * This function can't be called in read-only mode. + * + * @param identifier + * The Entity Property identifier. + * @param value + * The property value. The provided type must be compatible + * with the type specified in the entity's definition. + * @throws + * Throws if the entity is invalid. + * Throws if an invalid identifier is provided. + * Throws if the provided value type does not match the + * property type. + * Throws if the provided value is outside the expected range + * (int, float properties). + * Throws if the provided string value does not match the set + * of accepted enum values (enum properties + */ + setProperty(identifier: string, value: boolean | number | string): void; /** * @beta * @remarks @@ -4165,9 +4904,9 @@ export class Entity { * This function can't be called in read-only mode. * * @param rotation - * The x and y rotation of the entity. For most mobs, the x - * rotation controls the head tilt and the y rotation controls - * the body rotation. + * The x and y rotation of the entity (in degrees). For most + * mobs, the x rotation controls the head tilt and the y + * rotation controls the body rotation. * @throws This function can throw errors. */ setRotation(rotation: Vector2): void; @@ -4204,7 +4943,6 @@ export class Entity { */ teleport(location: Vector3, teleportOptions?: TeleportOptions): void; /** - * @beta * @remarks * Triggers an entity type event. For every entity, a number of * events are defined in an entities' definition for key entity @@ -4216,7 +4954,9 @@ export class Entity { * @param eventName * Name of the entity type event to trigger. If a namespace is * not specified, minecraft: is assumed. - * @throws This function can throw errors. + * @throws + * If the event is not defined in the definition of the entity, + * an error will be thrown. * @example triggerEvent.ts * ```typescript * const creeper = overworld.spawnEntity("minecraft:creeper", targetLocation); @@ -4401,6 +5141,12 @@ export class EntityAttributeComponent extends EntityComponent { // @ts-ignore Class inheritance allowed for native defined classes export class EntityBaseMovementComponent extends EntityComponent { private constructor(); + /** + * @remarks + * Maximum turn rate for this movement modality of the mob. + * + * @throws This property can throw when used. + */ readonly maxTurn: number; } @@ -4587,7 +5333,6 @@ export class EntityDefinitionFeedItem { } /** - * @beta * Contains data related to the death of an entity in the game. */ export class EntityDieAfterEvent { @@ -4608,22 +5353,50 @@ export class EntityDieAfterEvent { } /** - * @beta + * Supports registering for an event that fires after an entity + * has died. */ -// @ts-ignore Class inheritance allowed for native defined classes -export class EntityDieAfterEventSignal extends IEntityDieAfterEventSignal { +export class EntityDieAfterEventSignal { private constructor(); + /** + * @remarks + * Subscribes to an event that fires when an entity dies. + * + * This function can't be called in read-only mode. + * + * @param callback + * Function to call when an entity dies. + * @param options + * Additional filtering options for when the subscription + * fires. + * @returns + * Returns the closure that can be used in future downstream + * calls to unsubscribe. + */ + subscribe( + callback: (arg: EntityDieAfterEvent) => void, + options?: EntityEventOptions, + ): (arg: EntityDieAfterEvent) => void; + /** + * @remarks + * Stops this event from calling your function when an entity + * dies. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + unsubscribe(callback: (arg: EntityDieAfterEvent) => void): void; } /** - * @beta * Provides access to a mob's equipment slots. This component * exists for all mob entities. */ // @ts-ignore Class inheritance allowed for native defined classes -export class EntityEquipmentInventoryComponent extends EntityComponent { +export class EntityEquippableComponent extends EntityComponent { private constructor(); - static readonly componentId = 'minecraft:equipment_inventory'; + static readonly componentId = 'minecraft:equippable'; /** * @remarks * Gets the equipped item for the given EquipmentSlot. @@ -4639,6 +5412,7 @@ export class EntityEquipmentInventoryComponent extends EntityComponent { */ getEquipment(equipmentSlot: EquipmentSlot): ItemStack | undefined; /** + * @beta * @remarks * Gets the ContainerSlot corresponding to the given * EquipmentSlot. @@ -4665,7 +5439,7 @@ export class EntityEquipmentInventoryComponent extends EntityComponent { * The item to equip. If undefined, clears the slot. * @throws This function can throw errors. */ - setEquipment(equipmentSlot: EquipmentSlot, itemStack?: ItemStack): void; + setEquipment(equipmentSlot: EquipmentSlot, itemStack?: ItemStack): boolean; } /** @@ -4696,6 +5470,8 @@ export class EntityFlyingSpeedComponent extends EntityComponent { private constructor(); /** * @remarks + * Current value of the flying speed of the associated entity. + * * This property can't be edited in read-only mode. * */ @@ -4711,6 +5487,9 @@ export class EntityFrictionModifierComponent extends EntityComponent { private constructor(); /** * @remarks + * Current value of the friction modifier of the associated + * entity. + * * This property can't be edited in read-only mode. * */ @@ -4727,7 +5506,9 @@ export class EntityGroundOffsetComponent extends EntityComponent { private constructor(); /** * @remarks - * Value of this particular ground offset. + * Value of this particular ground offset. Note that this value + * is effectively read only; setting the ground offset value + * will not have an impact on the related entity. * * This property can't be edited in read-only mode. * @@ -4744,6 +5525,10 @@ export class EntityHealableComponent extends EntityComponent { private constructor(); /** * @beta + * @remarks + * A set of filters that healable items might be associated + * with. + * * @throws This property can throw when used. */ readonly filters: FilterGroup; @@ -4768,7 +5553,6 @@ export class EntityHealableComponent extends EntityComponent { } /** - * @beta * Contains information related to an entity when its health * changes. Warning: don't change the health of an entity in * this event, or it will cause an infinite loop! @@ -4796,13 +5580,33 @@ export class EntityHealthChangedAfterEvent { } /** - * @beta * Manages callbacks that are connected to when the health of * an entity changes. */ -// @ts-ignore Class inheritance allowed for native defined classes -export class EntityHealthChangedAfterEventSignal extends IEntityHealthChangedAfterEventSignal { +export class EntityHealthChangedAfterEventSignal { private constructor(); + /** + * @remarks + * Adds a callback that will be called when the health of an + * entity changes. + * + * This function can't be called in read-only mode. + * + */ + subscribe( + callback: (arg: EntityHealthChangedAfterEvent) => void, + options?: EntityEventOptions, + ): (arg: EntityHealthChangedAfterEvent) => void; + /** + * @remarks + * Removes a callback from being called when the health of an + * entity changes. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + unsubscribe(callback: (arg: EntityHealthChangedAfterEvent) => void): void; } /** @@ -4815,11 +5619,15 @@ export class EntityHealthComponent extends EntityAttributeComponent { } /** - * @beta * Contains information related to an entity hitting a block. */ export class EntityHitBlockAfterEvent { private constructor(); + /** + * @remarks + * Face of the block that was hit. + * + */ readonly blockFace: Direction; /** * @remarks @@ -4836,17 +5644,36 @@ export class EntityHitBlockAfterEvent { } /** - * @beta * Manages callbacks that are connected to when an entity hits * a block. */ -// @ts-ignore Class inheritance allowed for native defined classes -export class EntityHitBlockAfterEventSignal extends IEntityHitBlockAfterEventSignal { +export class EntityHitBlockAfterEventSignal { private constructor(); + /** + * @remarks + * Adds a callback that will be called when an entity hits a + * block. + * + * This function can't be called in read-only mode. + * + */ + subscribe( + callback: (arg: EntityHitBlockAfterEvent) => void, + options?: EntityEventOptions, + ): (arg: EntityHitBlockAfterEvent) => void; + /** + * @remarks + * Removes a callback from being called when an entity hits a + * block. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + unsubscribe(callback: (arg: EntityHitBlockAfterEvent) => void): void; } /** - * @beta * Contains information related to an entity hitting (melee * attacking) another entity. */ @@ -4867,27 +5694,46 @@ export class EntityHitEntityAfterEvent { } /** - * @beta * Manages callbacks that are connected to when an entity makes * a melee attack on another entity. */ -// @ts-ignore Class inheritance allowed for native defined classes -export class EntityHitEntityAfterEventSignal extends IEntityHitEntityAfterEventSignal { - private constructor(); -} - -/** - * @beta - * Contains information related to an entity getting hurt. - */ -export class EntityHurtAfterEvent { +export class EntityHitEntityAfterEventSignal { private constructor(); /** * @remarks - * Describes the amount of damage caused. + * Adds a callback that will be called when an entity hits + * another entity. + * + * This function can't be called in read-only mode. * */ - readonly damage: number; + subscribe( + callback: (arg: EntityHitEntityAfterEvent) => void, + options?: EntityEventOptions, + ): (arg: EntityHitEntityAfterEvent) => void; + /** + * @remarks + * Removes a callback from being called when an entity makes a + * melee attack on another entity. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + unsubscribe(callback: (arg: EntityHitEntityAfterEvent) => void): void; +} + +/** + * Contains information related to an entity getting hurt. + */ +export class EntityHurtAfterEvent { + private constructor(); + /** + * @remarks + * Describes the amount of damage caused. + * + */ + readonly damage: number; /** * @remarks * Source information on the entity that may have applied this @@ -4904,13 +5750,31 @@ export class EntityHurtAfterEvent { } /** - * @beta * Manages callbacks that are connected to when an entity is * hurt. */ -// @ts-ignore Class inheritance allowed for native defined classes -export class EntityHurtAfterEventSignal extends IEntityHurtAfterEventSignal { +export class EntityHurtAfterEventSignal { private constructor(); + /** + * @remarks + * Adds a callback that will be called when an entity is hurt. + * + * This function can't be called in read-only mode. + * + */ + subscribe( + callback: (arg: EntityHurtAfterEvent) => void, + options?: EntityEventOptions, + ): (arg: EntityHurtAfterEvent) => void; + /** + * @remarks + * Removes a callback from being called when an entity is hurt. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + unsubscribe(callback: (arg: EntityHurtAfterEvent) => void): void; } /** @@ -5199,6 +6063,57 @@ export class EntityLeashableComponent extends EntityComponent { unleash(): void; } +/** + * @beta + * Contains data related to an entity loaded within the world. + * This could happen when an unloaded chunk is reloaded, or + * when an entity changes dimensions. + */ +export class EntityLoadAfterEvent { + private constructor(); + /** + * @remarks + * Entity that was loaded. + * + * This property can't be edited in read-only mode. + * + */ + entity: Entity; +} + +/** + * @beta + * Registers a script-based event handler for handling what + * happens when an entity loads. + */ +export class EntityLoadAfterEventSignal { + private constructor(); + /** + * @remarks + * Method to register an event handler for what happens when an + * entity loads. + * + * This function can't be called in read-only mode. + * + * @param callback + * Function that handles the load event. + */ + subscribe(callback: (arg: EntityLoadAfterEvent) => void): (arg: EntityLoadAfterEvent) => void; + /** + * @remarks + * Unregisters a method that was previously subscribed to the + * subscription event. + * + * This function can't be called in read-only mode. + * + * @param callback + * Original function that was passed into the subscribe event, + * that is to be unregistered. + * @throws This function can throw errors. + */ + unsubscribe(callback: (arg: EntityLoadAfterEvent) => void): void; +} + /** * Additional variant value. Can be used to further * differentiate variants. @@ -5630,22 +6545,110 @@ export class EntityPushThroughComponent extends EntityComponent { * from the world (for example, the entity is unloaded because * it is not close to players.) */ -export class EntityRemovedAfterEvent { +export class EntityRemoveAfterEvent { private constructor(); /** * @remarks - * Reference to an entity that was removed. + * Id of the entity that was removed. * */ - readonly removedEntity: string; + readonly removedEntityId: string; + /** + * @remarks + * Identifier of the type of the entity removed - for example, + * 'minecraft:skeleton'. + * + */ + readonly typeId: string; } /** * @beta + * Allows registration for an event that fires when an entity + * is removed from the game (for example, unloaded, or a few + * seconds after they are dead.) */ -// @ts-ignore Class inheritance allowed for native defined classes -export class EntityRemovedAfterEventSignal extends IEntityRemovedAfterEventSignal { +export class EntityRemoveAfterEventSignal { + private constructor(); + /** + * @remarks + * Will call your function every time an entity is removed from + * the game. + * + * This function can't be called in read-only mode. + * + * @param callback + * Function to call. + * @param options + * Additional filtering options for this event. + * @returns + * Returns a closure that can be used in subsequent unsubscribe + * operations. + */ + subscribe( + callback: (arg: EntityRemoveAfterEvent) => void, + options?: EntityEventOptions, + ): (arg: EntityRemoveAfterEvent) => void; + /** + * @remarks + * Unsubscribes your function from subsequent calls when an + * entity is removed. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + unsubscribe(callback: (arg: EntityRemoveAfterEvent) => void): void; +} + +/** + * @beta + * Data for an event that happens when an entity is being + * removed from the world (for example, the entity is unloaded + * because it is not close to players.) + */ +export class EntityRemoveBeforeEvent { + private constructor(); + /** + * @remarks + * Reference to an entity that is being removed. + * + */ + readonly removedEntity: Entity; +} + +/** + * @beta + * Allows registration for an event that fires when an entity + * is being removed from the game (for example, unloaded, or a + * few seconds after they are dead.) + */ +export class EntityRemoveBeforeEventSignal { private constructor(); + /** + * @remarks + * Will call your function every time an entity is being + * removed from the game. + * + * This function can't be called in read-only mode. + * + * @param callback + * Function to call. + * @returns + * Returns a closure that can be used in subsequent unsubscribe + * operations. + */ + subscribe(callback: (arg: EntityRemoveBeforeEvent) => void): (arg: EntityRemoveBeforeEvent) => void; + /** + * @remarks + * Unsubscribes your function from subsequent calls when an + * entity is being removed. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + unsubscribe(callback: (arg: EntityRemoveBeforeEvent) => void): void; } /** @@ -5808,6 +6811,8 @@ export class EntitySkinIdComponent extends EntityComponent { private constructor(); /** * @remarks + * Returns the value of the skin Id identifier of the entity. + * * This property can't be edited in read-only mode. * */ @@ -5822,6 +6827,12 @@ export class EntitySkinIdComponent extends EntityComponent { */ export class EntitySpawnAfterEvent { private constructor(); + /** + * @remarks + * Initialization cause (Spawned, Born ...). + * + */ + readonly cause: EntityInitializationCause; /** * @remarks * Entity that was spawned. @@ -5837,9 +6848,47 @@ export class EntitySpawnAfterEvent { * Registers a script-based event handler for handling what * happens when an entity spawns. */ -// @ts-ignore Class inheritance allowed for native defined classes -export class EntitySpawnAfterEventSignal extends IEntitySpawnAfterEventSignal { +export class EntitySpawnAfterEventSignal { private constructor(); + /** + * @remarks + * Method to register an event handler for what happens when an + * entity spawns. + * + * This function can't be called in read-only mode. + * + * @param callback + * Function that handles the spawn event. + * @example runEntitySpawnEvent.ts + * ```typescript + * // register a new function that is called when a new entity is created. + * mc.world.afterEvents.entitySpawn.subscribe((entityEvent: mc.EntitySpawnAfterEvent) => { + * if (entityEvent && entityEvent.entity) { + * log(`New entity of type '${entityEvent.entity.typeId}' created!`, 1); + * } else { + * log(`The entity event didn't work as expected.`, -1); + * } + * }); + * + * mc.system.runTimeout(() => { + * createOldHorse(log, targetLocation); + * }, 20); + * ``` + */ + subscribe(callback: (arg: EntitySpawnAfterEvent) => void): (arg: EntitySpawnAfterEvent) => void; + /** + * @remarks + * Unregisters a method that was previously subscribed to the + * subscription event. + * + * This function can't be called in read-only mode. + * + * @param callback + * Original function that was passed into the subscribe event, + * that is to be unregistered. + * @throws This function can throw errors. + */ + unsubscribe(callback: (arg: EntitySpawnAfterEvent) => void): void; } /** @@ -6031,9 +7080,27 @@ export class ExplosionAfterEvent { * Manages callbacks that are connected to when an explosion * occurs. */ -// @ts-ignore Class inheritance allowed for native defined classes -export class ExplosionAfterEventSignal extends IExplosionAfterEventSignal { +export class ExplosionAfterEventSignal { private constructor(); + /** + * @remarks + * Adds a callback that will be called when an explosion + * occurs. + * + * This function can't be called in read-only mode. + * + */ + subscribe(callback: (arg: ExplosionAfterEvent) => void): (arg: ExplosionAfterEvent) => void; + /** + * @remarks + * Removes a callback from being called when an explosion + * occurs. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + unsubscribe(callback: (arg: ExplosionAfterEvent) => void): void; } /** @@ -6066,9 +7133,28 @@ export class ExplosionBeforeEvent extends ExplosionAfterEvent { * Manages callbacks that are connected to before an explosion * occurs. */ -// @ts-ignore Class inheritance allowed for native defined classes -export class ExplosionBeforeEventSignal extends IExplosionBeforeEventSignal { +export class ExplosionBeforeEventSignal { private constructor(); + /** + * @remarks + * Adds a callback that will be called when before an explosion + * occurs. The callback can optionally change or cancel + * explosion behavior. + * + * This function can't be called in read-only mode. + * + */ + subscribe(callback: (arg: ExplosionBeforeEvent) => void): (arg: ExplosionBeforeEvent) => void; + /** + * @remarks + * Removes a callback from being called from before when an + * explosion would occur. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + unsubscribe(callback: (arg: ExplosionBeforeEvent) => void): void; } /** @@ -6169,502 +7255,489 @@ export class FluidContainer { } /** - * @beta * Provides an adaptable interface for callers to subscribe to - * an event that fires when blocks are broken. + * an event that fires when a button is pushed. */ -export class IBlockBreakAfterEventSignal { +export class IButtonPushAfterEventSignal { private constructor(); /** * @remarks * This function can't be called in read-only mode. * */ - subscribe(callback: (arg: BlockBreakAfterEvent) => void): (arg: BlockBreakAfterEvent) => void; + subscribe(callback: (arg: ButtonPushAfterEvent) => void): (arg: ButtonPushAfterEvent) => void; /** * @remarks * This function can't be called in read-only mode. * * @throws This function can throw errors. */ - unsubscribe(callback: (arg: BlockBreakAfterEvent) => void): void; + unsubscribe(callback: (arg: ButtonPushAfterEvent) => void): void; } /** - * @beta * Provides an adaptable interface for callers to subscribe to - * an event that fires when an explosion occurs. + * an event that fires after a lever is used. */ -export class IBlockExplodeAfterEventSignal { +export class ILeverActionAfterEventSignal { private constructor(); /** * @remarks * This function can't be called in read-only mode. * */ - subscribe(callback: (arg: BlockExplodeAfterEvent) => void): (arg: BlockExplodeAfterEvent) => void; + subscribe(callback: (arg: LeverActionAfterEvent) => void): (arg: LeverActionAfterEvent) => void; /** * @remarks * This function can't be called in read-only mode. * * @throws This function can throw errors. */ - unsubscribe(callback: (arg: BlockExplodeAfterEvent) => void): void; + unsubscribe(callback: (arg: LeverActionAfterEvent) => void): void; } /** - * @beta * Provides an adaptable interface for callers to subscribe to - * an event that fires after a block is placed. + * an event that fires after a player joins a world. */ -export class IBlockPlaceAfterEventSignal { +export class IPlayerJoinAfterEventSignal { private constructor(); /** * @remarks * This function can't be called in read-only mode. * */ - subscribe(callback: (arg: BlockPlaceAfterEvent) => void): (arg: BlockPlaceAfterEvent) => void; + subscribe(callback: (arg: PlayerJoinAfterEvent) => void): (arg: PlayerJoinAfterEvent) => void; /** * @remarks * This function can't be called in read-only mode. * * @throws This function can throw errors. */ - unsubscribe(callback: (arg: BlockPlaceAfterEvent) => void): void; + unsubscribe(callback: (arg: PlayerJoinAfterEvent) => void): void; } /** * Provides an adaptable interface for callers to subscribe to - * an event that fires when a button is pushed. + * an event that fires after a player leaves a world. */ -export class IButtonPushAfterEventSignal { +export class IPlayerLeaveAfterEventSignal { private constructor(); /** * @remarks * This function can't be called in read-only mode. * */ - subscribe(callback: (arg: ButtonPushAfterEvent) => void): (arg: ButtonPushAfterEvent) => void; + subscribe(callback: (arg: PlayerLeaveAfterEvent) => void): (arg: PlayerLeaveAfterEvent) => void; /** * @remarks * This function can't be called in read-only mode. * * @throws This function can throw errors. */ - unsubscribe(callback: (arg: ButtonPushAfterEvent) => void): void; + unsubscribe(callback: (arg: PlayerLeaveAfterEvent) => void): void; } /** - * @beta * Provides an adaptable interface for callers to subscribe to - * an event that fires when a chat message is sent. + * an event that fires after a player spawns. */ -export class IChatSendAfterEventSignal { +export class IPlayerSpawnAfterEventSignal { private constructor(); /** * @remarks * This function can't be called in read-only mode. * */ - subscribe(callback: (arg: ChatSendAfterEvent) => void): (arg: ChatSendAfterEvent) => void; + subscribe(callback: (arg: PlayerSpawnAfterEvent) => void): (arg: PlayerSpawnAfterEvent) => void; /** * @remarks * This function can't be called in read-only mode. * * @throws This function can throw errors. */ - unsubscribe(callback: (arg: ChatSendAfterEvent) => void): void; + unsubscribe(callback: (arg: PlayerSpawnAfterEvent) => void): void; } /** - * @beta - * Provides an adaptable interface for callers to subscribe to - * an event that fires before a chat message is sent. + * Contains information related to a chargeable item completing + * being charged. */ -export class IChatSendBeforeEventSignal { +export class ItemCompleteUseAfterEvent { private constructor(); /** * @remarks - * This function can't be called in read-only mode. + * Returns the item stack that has completed charging. * */ - subscribe(callback: (arg: ChatSendBeforeEvent) => void): (arg: ChatSendBeforeEvent) => void; + readonly itemStack: ItemStack; /** * @remarks - * This function can't be called in read-only mode. + * Returns the source entity that triggered this item event. * - * @throws This function can throw errors. */ - unsubscribe(callback: (arg: ChatSendBeforeEvent) => void): void; -} - -/** - * @beta - * Provides an adaptable interface for callers to subscribe to - * an event that fires when an entities' definition is - * triggered to change. - */ -export class IDataDrivenEntityTriggerAfterEventSignal { - private constructor(); + readonly source: Player; /** * @remarks - * This function can't be called in read-only mode. + * Returns the time, in ticks, for the remaining duration left + * before the charge completes its cycle. * */ - subscribe( - callback: (arg: DataDrivenEntityTriggerAfterEvent) => void, - options?: EntityDataDrivenTriggerEventOptions, - ): (arg: DataDrivenEntityTriggerAfterEvent) => void; - /** - * @remarks - * This function can't be called in read-only mode. - * - * @throws This function can throw errors. - */ - unsubscribe(callback: (arg: DataDrivenEntityTriggerAfterEvent) => void): void; + readonly useDuration: number; } /** - * @beta - * Provides an adaptable interface for callers to subscribe to - * an event that fires before an entities' definition is - * scheduled to change via a triggered event. + * Manages callbacks that are connected to the completion of + * charging for a chargeable item. */ -export class IDataDrivenEntityTriggerBeforeEventSignal { +export class ItemCompleteUseAfterEventSignal { private constructor(); /** * @remarks + * Adds a callback that will be called when a chargeable item + * completes charging. + * * This function can't be called in read-only mode. * */ - subscribe( - callback: (arg: DataDrivenEntityTriggerBeforeEvent) => void, - options?: EntityDataDrivenTriggerEventOptions, - ): (arg: DataDrivenEntityTriggerBeforeEvent) => void; + subscribe(callback: (arg: ItemCompleteUseAfterEvent) => void): (arg: ItemCompleteUseAfterEvent) => void; /** * @remarks + * Removes a callback from being called when a chargeable item + * completes charging. + * * This function can't be called in read-only mode. * * @throws This function can throw errors. */ - unsubscribe(callback: (arg: DataDrivenEntityTriggerBeforeEvent) => void): void; + unsubscribe(callback: (arg: ItemCompleteUseAfterEvent) => void): void; +} + +/** + * Base class for item components. + */ +// @ts-ignore Class inheritance allowed for native defined classes +export class ItemComponent extends Component { + private constructor(); } /** * @beta - * Provides an adaptable interface for callers to subscribe to - * an event that fires when an effect is added to an entity. + * When present on an item, this item has a cooldown effect + * when used by entities. */ -export class IEffectAddAfterEventSignal { +// @ts-ignore Class inheritance allowed for native defined classes +export class ItemCooldownComponent extends ItemComponent { private constructor(); /** * @remarks - * This function can't be called in read-only mode. + * Represents the cooldown category that this item is + * associated with. * + * @throws This property can throw when used. */ - subscribe( - callback: (arg: EffectAddAfterEvent) => void, - options?: EntityEventOptions, - ): (arg: EffectAddAfterEvent) => void; + readonly cooldownCategory: string; + /** + * @remarks + * Amount of time, in ticks, that remain for this item + * cooldown. + * + * @throws This property can throw when used. + */ + readonly cooldownTicks: number; + static readonly componentId = 'minecraft:cooldown'; /** * @remarks + * Starts a new cooldown period for this item. + * * This function can't be called in read-only mode. * * @throws This function can throw errors. */ - unsubscribe(callback: (arg: EffectAddAfterEvent) => void): void; + startCooldown(player: Player): void; } /** * @beta - * Provides an adaptable interface for callers to subscribe to - * an event that fires when an entity dies. + * Manages callbacks that are connected to an item's definition + * and components changing. */ -export class IEntityDieAfterEventSignal { +export class ItemDefinitionAfterEventSignal { private constructor(); /** * @remarks + * Adds a callback that will be called when an item's + * definition and components change. + * * This function can't be called in read-only mode. * */ subscribe( - callback: (arg: EntityDieAfterEvent) => void, - options?: EntityEventOptions, - ): (arg: EntityDieAfterEvent) => void; + callback: (arg: ItemDefinitionTriggeredAfterEvent) => void, + ): (arg: ItemDefinitionTriggeredAfterEvent) => void; /** * @remarks + * Removes a callback from being called when an item's + * definition and components change. + * * This function can't be called in read-only mode. * * @throws This function can throw errors. */ - unsubscribe(callback: (arg: EntityDieAfterEvent) => void): void; + unsubscribe(callback: (arg: ItemDefinitionTriggeredAfterEvent) => void): void; } /** * @beta + * Manages callbacks that are connected to an item's definition + * and components changing. */ -export class IEntityHealthChangedAfterEventSignal { +export class ItemDefinitionBeforeEventSignal { private constructor(); /** * @remarks + * Adds a callback that will be called when an item's + * definition and components change. + * * This function can't be called in read-only mode. * */ subscribe( - callback: (arg: EntityHealthChangedAfterEvent) => void, - options?: EntityEventOptions, - ): (arg: EntityHealthChangedAfterEvent) => void; + callback: (arg: ItemDefinitionTriggeredBeforeEvent) => void, + ): (arg: ItemDefinitionTriggeredBeforeEvent) => void; /** * @remarks + * Removes a callback from being called when an item's + * definition and components change. + * * This function can't be called in read-only mode. * * @throws This function can throw errors. */ - unsubscribe(callback: (arg: EntityHealthChangedAfterEvent) => void): void; + unsubscribe(callback: (arg: ItemDefinitionTriggeredBeforeEvent) => void): void; } /** * @beta + * Contains information related to a custom item having a data + * definition change being triggered. */ -export class IEntityHitBlockAfterEventSignal { +export class ItemDefinitionTriggeredAfterEvent { private constructor(); /** * @remarks - * This function can't be called in read-only mode. + * Name of the data-driven item event that is triggering this + * change. * */ - subscribe( - callback: (arg: EntityHitBlockAfterEvent) => void, - options?: EntityEventOptions, - ): (arg: EntityHitBlockAfterEvent) => void; + readonly eventName: string; /** * @remarks - * This function can't be called in read-only mode. + * Related item stack that the definitional change has been + * triggered upon. * - * @throws This function can throw errors. */ - unsubscribe(callback: (arg: EntityHitBlockAfterEvent) => void): void; + itemStack: ItemStack; + /** + * @remarks + * Returns the source entity that triggered this item event. + * + */ + readonly source: Player; } /** * @beta + * Contains information related to a triggering of a custom + * item definition change. */ -export class IEntityHitEntityAfterEventSignal { +// @ts-ignore Class inheritance allowed for native defined classes +export class ItemDefinitionTriggeredBeforeEvent extends ItemDefinitionTriggeredAfterEvent { private constructor(); /** * @remarks - * This function can't be called in read-only mode. - * - */ - subscribe( - callback: (arg: EntityHitEntityAfterEvent) => void, - options?: EntityEventOptions, - ): (arg: EntityHitEntityAfterEvent) => void; - /** - * @remarks - * This function can't be called in read-only mode. + * If set to true, will cancel the application of this item + * definition change. * - * @throws This function can throw errors. */ - unsubscribe(callback: (arg: EntityHitEntityAfterEvent) => void): void; + cancel: boolean; } /** * @beta - * Provides an adaptable interface for callers to subscribe to - * an event that fires when an entity is hurt. + * When present on an item, this item can take damage in the + * process of being used. Note that this component only applies + * to data-driven items. */ -export class IEntityHurtAfterEventSignal { +// @ts-ignore Class inheritance allowed for native defined classes +export class ItemDurabilityComponent extends ItemComponent { private constructor(); /** * @remarks - * This function can't be called in read-only mode. + * Returns the current damage level of this particular item. + * + * This property can't be edited in read-only mode. * */ - subscribe( - callback: (arg: EntityHurtAfterEvent) => void, - options?: EntityEventOptions, - ): (arg: EntityHurtAfterEvent) => void; + damage: number; /** * @remarks - * This function can't be called in read-only mode. + * Represents the amount of damage that this item can take + * before breaking. * - * @throws This function can throw errors. + * @throws This property can throw when used. */ - unsubscribe(callback: (arg: EntityHurtAfterEvent) => void): void; -} - -/** - * @beta - */ -export class IEntityRemovedAfterEventSignal { - private constructor(); + readonly maxDurability: number; + static readonly componentId = 'minecraft:durability'; /** * @remarks + * Returns the maximum chance that this item would be damaged + * using the damageRange property, given an unbreaking level. + * * This function can't be called in read-only mode. * + * @param unbreaking + * Unbreaking factor to consider in factoring the damage + * chance. Incoming unbreaking parameter must be greater than + * 0. + * @throws This function can throw errors. */ - subscribe( - callback: (arg: EntityRemovedAfterEvent) => void, - options?: EntityEventOptions, - ): (arg: EntityRemovedAfterEvent) => void; + getDamageChance(unbreaking?: number): number; /** * @remarks + * A range of numbers that describes the chance of the item + * losing durability. + * * This function can't be called in read-only mode. * * @throws This function can throw errors. */ - unsubscribe(callback: (arg: EntityRemovedAfterEvent) => void): void; + getDamageRange(): NumberRange; } /** * @beta - * Provides an adaptable interface for callers to subscribe to - * an event that fires after an entity is spawned. + * When present on an item, this item has applied enchantment + * effects. Note that this component only applies to + * data-driven items. */ -export class IEntitySpawnAfterEventSignal { +// @ts-ignore Class inheritance allowed for native defined classes +export class ItemEnchantsComponent extends ItemComponent { private constructor(); /** * @remarks - * This function can't be called in read-only mode. + * Returns a collection of the enchantments applied to this + * item stack. + * + * This property can't be edited in read-only mode. * */ - subscribe(callback: (arg: EntitySpawnAfterEvent) => void): (arg: EntitySpawnAfterEvent) => void; + enchantments: EnchantmentList; + static readonly componentId = 'minecraft:enchantments'; /** * @remarks + * Removes all enchantments applied to this item stack. + * * This function can't be called in read-only mode. * * @throws This function can throw errors. */ - unsubscribe(callback: (arg: EntitySpawnAfterEvent) => void): void; + removeAllEnchantments(): void; } /** * @beta - * Provides an adaptable interface for callers to subscribe to - * an event that fires after an explosion occurs. + * When present on an item, this item is consumable by + * entities. Note that this component only applies to + * data-driven items. */ -export class IExplosionAfterEventSignal { +// @ts-ignore Class inheritance allowed for native defined classes +export class ItemFoodComponent extends ItemComponent { private constructor(); /** * @remarks - * This function can't be called in read-only mode. + * If true, the player can always eat this item (even when not + * hungry). * + * @throws This property can throw when used. */ - subscribe(callback: (arg: ExplosionAfterEvent) => void): (arg: ExplosionAfterEvent) => void; + readonly canAlwaysEat: boolean; /** * @remarks - * This function can't be called in read-only mode. + * Represents how much nutrition this food item will give an + * entity when eaten. * - * @throws This function can throw errors. + * @throws This property can throw when used. */ - unsubscribe(callback: (arg: ExplosionAfterEvent) => void): void; -} - -/** - * @beta - * Provides an adaptable interface for callers to subscribe to - * an event that fires before an explosion begins. - */ -export class IExplosionBeforeEventSignal { - private constructor(); + readonly nutrition: number; /** * @remarks - * This function can't be called in read-only mode. + * When an item is eaten, this value is used according to this + * formula (nutrition * saturation_modifier * 2) to apply a + * saturation buff. * + * @throws This property can throw when used. */ - subscribe(callback: (arg: ExplosionBeforeEvent) => void): (arg: ExplosionBeforeEvent) => void; + readonly saturationModifier: number; /** * @remarks - * This function can't be called in read-only mode. + * When specified, converts the active item to the one + * specified by this property. * - * @throws This function can throw errors. + * @throws This property can throw when used. */ - unsubscribe(callback: (arg: ExplosionBeforeEvent) => void): void; + readonly usingConvertsTo: string; + static readonly componentId = 'minecraft:food'; } /** - * @beta + * Contains information related to a chargeable item when the + * player has finished using the item and released the build + * action. */ -export class IItemCompleteUseAfterEventSignal { +export class ItemReleaseUseAfterEvent { private constructor(); /** * @remarks - * This function can't be called in read-only mode. + * Returns the item stack that triggered this item event. * */ - subscribe(callback: (arg: ItemCompleteUseAfterEvent) => void): (arg: ItemCompleteUseAfterEvent) => void; + readonly itemStack: ItemStack; /** * @remarks - * This function can't be called in read-only mode. + * Returns the source entity that triggered this item event. * - * @throws This function can throw errors. */ - unsubscribe(callback: (arg: ItemCompleteUseAfterEvent) => void): void; + readonly source: Player; + /** + * @remarks + * Returns the time, in ticks, for the remaining duration left + * before the charge completes its cycle. + * + */ + readonly useDuration: number; } /** - * @beta - * Provides an adaptable interface for callers to subscribe to - * an event that fires after an items' definition has changed. + * Manages callbacks that are connected to the releasing of + * charging for a chargeable item. */ -export class IItemDefinitionAfterEventSignal { +export class ItemReleaseUseAfterEventSignal { private constructor(); /** * @remarks + * Adds a callback that will be called when a chargeable item + * is released from charging. + * * This function can't be called in read-only mode. * */ - subscribe( - callback: (arg: ItemDefinitionTriggeredAfterEvent) => void, - ): (arg: ItemDefinitionTriggeredAfterEvent) => void; - /** - * @remarks - * This function can't be called in read-only mode. - * - * @throws This function can throw errors. - */ - unsubscribe(callback: (arg: ItemDefinitionTriggeredAfterEvent) => void): void; -} - -/** - * @beta - * Provides an adaptable interface for callers to subscribe to - * an event that fires before an items' definition changes. - */ -export class IItemDefinitionBeforeEventSignal { - private constructor(); - /** - * @remarks - * This function can't be called in read-only mode. - * - */ - subscribe( - callback: (arg: ItemDefinitionTriggeredBeforeEvent) => void, - ): (arg: ItemDefinitionTriggeredBeforeEvent) => void; - /** - * @remarks - * This function can't be called in read-only mode. - * - * @throws This function can throw errors. - */ - unsubscribe(callback: (arg: ItemDefinitionTriggeredBeforeEvent) => void): void; -} - -/** - * @beta - */ -export class IItemReleaseUseAfterEventSignal { - private constructor(); - /** - * @remarks - * This function can't be called in read-only mode. - * - */ - subscribe(callback: (arg: ItemReleaseUseAfterEvent) => void): (arg: ItemReleaseUseAfterEvent) => void; + subscribe(callback: (arg: ItemReleaseUseAfterEvent) => void): (arg: ItemReleaseUseAfterEvent) => void; /** * @remarks + * Removes a callback from being called when a chargeable item + * is released from charging. + * * This function can't be called in read-only mode. * * @throws This function can throw errors. @@ -6673,6044 +7746,827 @@ export class IItemReleaseUseAfterEventSignal { } /** - * @beta - */ -export class IItemStartUseAfterEventSignal { - private constructor(); - /** - * @remarks - * This function can't be called in read-only mode. - * - */ - subscribe(callback: (arg: ItemStartUseAfterEvent) => void): (arg: ItemStartUseAfterEvent) => void; - /** - * @remarks - * This function can't be called in read-only mode. - * - * @throws This function can throw errors. - */ - unsubscribe(callback: (arg: ItemStartUseAfterEvent) => void): void; -} - -/** - * @beta - * Provides an adaptable interface for callers to subscribe to - * an event that fires when an item item is starting to be used - * on a block. - */ -export class IItemStartUseOnAfterEventSignal { - private constructor(); - /** - * @remarks - * This function can't be called in read-only mode. - * - */ - subscribe(callback: (arg: ItemStartUseOnAfterEvent) => void): (arg: ItemStartUseOnAfterEvent) => void; - /** - * @remarks - * This function can't be called in read-only mode. - * - * @throws This function can throw errors. - */ - unsubscribe(callback: (arg: ItemStartUseOnAfterEvent) => void): void; -} - -/** - * @beta - */ -export class IItemStopUseAfterEventSignal { - private constructor(); - /** - * @remarks - * This function can't be called in read-only mode. - * - */ - subscribe(callback: (arg: ItemStopUseAfterEvent) => void): (arg: ItemStopUseAfterEvent) => void; - /** - * @remarks - * This function can't be called in read-only mode. - * - * @throws This function can throw errors. - */ - unsubscribe(callback: (arg: ItemStopUseAfterEvent) => void): void; -} - -/** - * @beta - * Provides an adaptable interface for callers to subscribe to - * an event that fires when an item has stopped being used on a - * block. - */ -export class IItemStopUseOnAfterEventSignal { - private constructor(); - /** - * @remarks - * This function can't be called in read-only mode. - * - */ - subscribe(callback: (arg: ItemStopUseOnAfterEvent) => void): (arg: ItemStopUseOnAfterEvent) => void; - /** - * @remarks - * This function can't be called in read-only mode. - * - * @throws This function can throw errors. - */ - unsubscribe(callback: (arg: ItemStopUseOnAfterEvent) => void): void; -} - -/** - * @beta - * Provides an adaptable interface for callers to subscribe to - * an event that fires after an item is used. - */ -export class IItemUseAfterEventSignal { - private constructor(); - /** - * @remarks - * This function can't be called in read-only mode. - * - */ - subscribe(callback: (arg: ItemUseAfterEvent) => void): (arg: ItemUseAfterEvent) => void; - /** - * @remarks - * This function can't be called in read-only mode. - * - * @throws This function can throw errors. - */ - unsubscribe(callback: (arg: ItemUseAfterEvent) => void): void; -} - -/** - * @beta - * Provides an adaptable interface for callers to subscribe to - * an event that fires before an item is used. - */ -export class IItemUseBeforeEventSignal { - private constructor(); - /** - * @remarks - * This function can't be called in read-only mode. - * - */ - subscribe(callback: (arg: ItemUseBeforeEvent) => void): (arg: ItemUseBeforeEvent) => void; - /** - * @remarks - * This function can't be called in read-only mode. - * - * @throws This function can throw errors. - */ - unsubscribe(callback: (arg: ItemUseBeforeEvent) => void): void; -} - -/** - * @beta - * Provides an adaptable interface for callers to subscribe to - * an event that fires after an item is used on a block. - */ -export class IItemUseOnAfterEventSignal { - private constructor(); - /** - * @remarks - * This function can't be called in read-only mode. - * - */ - subscribe(callback: (arg: ItemUseOnAfterEvent) => void): (arg: ItemUseOnAfterEvent) => void; - /** - * @remarks - * This function can't be called in read-only mode. - * - * @throws This function can throw errors. - */ - unsubscribe(callback: (arg: ItemUseOnAfterEvent) => void): void; -} - -/** - * @beta - * Provides an adaptable interface for callers to subscribe to - * an event that fires before an item is being used on a block. - */ -export class IItemUseOnBeforeEventSignal { - private constructor(); - /** - * @remarks - * This function can't be called in read-only mode. - * - */ - subscribe(callback: (arg: ItemUseOnBeforeEvent) => void): (arg: ItemUseOnBeforeEvent) => void; - /** - * @remarks - * This function can't be called in read-only mode. - * - * @throws This function can throw errors. - */ - unsubscribe(callback: (arg: ItemUseOnBeforeEvent) => void): void; -} - -/** - * Provides an adaptable interface for callers to subscribe to - * an event that fires after a lever is used. - */ -export class ILeverActionAfterEventSignal { - private constructor(); - /** - * @remarks - * This function can't be called in read-only mode. - * - */ - subscribe(callback: (arg: LeverActionAfterEvent) => void): (arg: LeverActionAfterEvent) => void; - /** - * @remarks - * This function can't be called in read-only mode. - * - * @throws This function can throw errors. - */ - unsubscribe(callback: (arg: LeverActionAfterEvent) => void): void; -} - -/** - * @beta - * Provides an adaptable interface for callers to subscribe to - * an event that fires after a piston is activated. - */ -export class IPistonActivateAfterEventSignal { - private constructor(); - /** - * @remarks - * This function can't be called in read-only mode. - * - */ - subscribe(callback: (arg: PistonActivateAfterEvent) => void): (arg: PistonActivateAfterEvent) => void; - /** - * @remarks - * This function can't be called in read-only mode. - * - * @throws This function can throw errors. - */ - unsubscribe(callback: (arg: PistonActivateAfterEvent) => void): void; -} - -/** - * @beta - * Provides an adaptable interface for callers to subscribe to - * an event that fires before a piston is activated. + * Defines a collection of items. */ -export class IPistonActivateBeforeEventSignal { - private constructor(); - /** - * @remarks - * This function can't be called in read-only mode. - * - */ - subscribe(callback: (arg: PistonActivateBeforeEvent) => void): (arg: PistonActivateBeforeEvent) => void; +export class ItemStack { /** + * @beta * @remarks - * This function can't be called in read-only mode. + * Number of the items in the stack. Valid values range between + * 1-255. The provided value will be clamped to the item's + * maximum stack size. * - * @throws This function can throw errors. - */ - unsubscribe(callback: (arg: PistonActivateBeforeEvent) => void): void; -} - -/** - * Provides an adaptable interface for callers to subscribe to - * an event that fires after a player joins a world. - */ -export class IPlayerJoinAfterEventSignal { - private constructor(); - /** - * @remarks - * This function can't be called in read-only mode. - * - */ - subscribe(callback: (arg: PlayerJoinAfterEvent) => void): (arg: PlayerJoinAfterEvent) => void; - /** - * @remarks - * This function can't be called in read-only mode. - * - * @throws This function can throw errors. - */ - unsubscribe(callback: (arg: PlayerJoinAfterEvent) => void): void; -} - -/** - * Provides an adaptable interface for callers to subscribe to - * an event that fires after a player leaves a world. - */ -export class IPlayerLeaveAfterEventSignal { - private constructor(); - /** - * @remarks - * This function can't be called in read-only mode. - * - */ - subscribe(callback: (arg: PlayerLeaveAfterEvent) => void): (arg: PlayerLeaveAfterEvent) => void; - /** - * @remarks - * This function can't be called in read-only mode. - * - * @throws This function can throw errors. - */ - unsubscribe(callback: (arg: PlayerLeaveAfterEvent) => void): void; -} - -/** - * Provides an adaptable interface for callers to subscribe to - * an event that fires after a player spawns. - */ -export class IPlayerSpawnAfterEventSignal { - private constructor(); - /** - * @remarks - * This function can't be called in read-only mode. - * - */ - subscribe(callback: (arg: PlayerSpawnAfterEvent) => void): (arg: PlayerSpawnAfterEvent) => void; - /** - * @remarks - * This function can't be called in read-only mode. - * - * @throws This function can throw errors. - */ - unsubscribe(callback: (arg: PlayerSpawnAfterEvent) => void): void; -} - -/** - * @beta - */ -export class IPressurePlatePopAfterEventSignal { - private constructor(); - /** - * @remarks - * This function can't be called in read-only mode. - * - */ - subscribe(callback: (arg: PressurePlatePopAfterEvent) => void): (arg: PressurePlatePopAfterEvent) => void; - /** - * @remarks - * This function can't be called in read-only mode. - * - * @throws This function can throw errors. - */ - unsubscribe(callback: (arg: PressurePlatePopAfterEvent) => void): void; -} - -/** - * @beta - */ -export class IPressurePlatePushAfterEventSignal { - private constructor(); - /** - * @remarks - * This function can't be called in read-only mode. - * - */ - subscribe(callback: (arg: PressurePlatePushAfterEvent) => void): (arg: PressurePlatePushAfterEvent) => void; - /** - * @remarks - * This function can't be called in read-only mode. - * - * @throws This function can throw errors. - */ - unsubscribe(callback: (arg: PressurePlatePushAfterEvent) => void): void; -} - -/** - * @beta - * Provides an adaptable interface for callers to subscribe to - * an event that fires after a projectile hits a target. - */ -export class IProjectileHitAfterEventSignal { - private constructor(); - /** - * @remarks - * This function can't be called in read-only mode. - * - */ - subscribe(callback: (arg: ProjectileHitAfterEvent) => void): (arg: ProjectileHitAfterEvent) => void; - /** - * @remarks - * This function can't be called in read-only mode. - * - * @throws This function can throw errors. - */ - unsubscribe(callback: (arg: ProjectileHitAfterEvent) => void): void; -} - -/** - * @beta - * Provides an adaptable interface for callers to subscribe to - * an event that fires when /script event command is called. - */ -export class IScriptEventCommandMessageAfterEventSignal { - private constructor(); - /** - * @remarks - * This function can't be called in read-only mode. - * - */ - subscribe( - callback: (arg: ScriptEventCommandMessageAfterEvent) => void, - options?: ScriptEventMessageFilterOptions, - ): (arg: ScriptEventCommandMessageAfterEvent) => void; - /** - * @remarks - * This function can't be called in read-only mode. - * - * @throws This function can throw errors. - */ - unsubscribe(callback: (arg: ScriptEventCommandMessageAfterEvent) => void): void; -} - -/** - * @beta - * Provides an adaptable interface for callers to subscribe to - * an event that fires after a server message is sent. Note - * that this event is for internal use only. - */ -export class IServerMessageAfterEventSignal { - private constructor(); - /** - * @remarks - * This function can't be called in read-only mode. - * - */ - subscribe(callback: (arg: MessageReceiveAfterEvent) => void): (arg: MessageReceiveAfterEvent) => void; - /** - * @remarks - * This function can't be called in read-only mode. - * - * @throws This function can throw errors. - */ - unsubscribe(callback: (arg: MessageReceiveAfterEvent) => void): void; -} - -/** - * @beta - */ -export class ITargetBlockHitAfterEventSignal { - private constructor(); - /** - * @remarks - * This function can't be called in read-only mode. - * - */ - subscribe(callback: (arg: TargetBlockHitAfterEvent) => void): (arg: TargetBlockHitAfterEvent) => void; - /** - * @remarks - * This function can't be called in read-only mode. - * - * @throws This function can throw errors. - */ - unsubscribe(callback: (arg: TargetBlockHitAfterEvent) => void): void; -} - -/** - * @beta - * Contains information related to a chargeable item completing - * being charged. - */ -export class ItemCompleteUseAfterEvent { - private constructor(); - /** - * @remarks - * Returns the item stack that has completed charging. - * - */ - readonly itemStack: ItemStack; - /** - * @remarks - * Returns the source entity that triggered this item event. - * - */ - readonly source: Entity; - /** - * @remarks - * Returns the time, in ticks, for the remaining duration left - * before the charge completes its cycle. - * - */ - readonly useDuration: number; -} - -/** - * @beta - * Manages callbacks that are connected to the completion of - * charging for a chargeable item. - */ -// @ts-ignore Class inheritance allowed for native defined classes -export class ItemCompleteUseAfterEventSignal extends IItemCompleteUseAfterEventSignal { - private constructor(); -} - -/** - * Base class for item components. - */ -// @ts-ignore Class inheritance allowed for native defined classes -export class ItemComponent extends Component { - private constructor(); -} - -/** - * @beta - * When present on an item, this item has a cooldown effect - * when used by entities. - */ -// @ts-ignore Class inheritance allowed for native defined classes -export class ItemCooldownComponent extends ItemComponent { - private constructor(); - /** - * @remarks - * Represents the cooldown category that this item is - * associated with. - * - * @throws This property can throw when used. - */ - readonly cooldownCategory: string; - /** - * @remarks - * Amount of time, in ticks, that remain for this item - * cooldown. - * - * @throws This property can throw when used. - */ - readonly cooldownTicks: number; - static readonly componentId = 'minecraft:cooldown'; - /** - * @remarks - * Starts a new cooldown period for this item. - * - * This function can't be called in read-only mode. - * - * @throws This function can throw errors. - */ - startCooldown(player: Player): void; -} - -/** - * @beta - * Manages callbacks that are connected to an item's definition - * and components changing. - */ -// @ts-ignore Class inheritance allowed for native defined classes -export class ItemDefinitionAfterEventSignal extends IItemDefinitionAfterEventSignal { - private constructor(); -} - -/** - * @beta - * Manages callbacks that are connected to an item's definition - * and components changing. - */ -// @ts-ignore Class inheritance allowed for native defined classes -export class ItemDefinitionBeforeEventSignal extends IItemDefinitionBeforeEventSignal { - private constructor(); -} - -/** - * @beta - * Contains information related to a custom item having a data - * definition change being triggered. - */ -export class ItemDefinitionTriggeredAfterEvent { - private constructor(); - /** - * @remarks - * Name of the data-driven item event that is triggering this - * change. - * - */ - readonly eventName: string; - itemStack: ItemStack; - /** - * @remarks - * Returns the source entity that triggered this item event. - * - */ - readonly source: Entity; -} - -/** - * @beta - * Contains information related to a triggering of a custom - * item definition change. - */ -// @ts-ignore Class inheritance allowed for native defined classes -export class ItemDefinitionTriggeredBeforeEvent extends ItemDefinitionTriggeredAfterEvent { - private constructor(); - /** - * @remarks - * If set to true, will cancel the application of this item - * definition change. - * - */ - cancel: boolean; -} - -/** - * @beta - * When present on an item, this item can take damage in the - * process of being used. Note that this component only applies - * to data-driven items. - */ -// @ts-ignore Class inheritance allowed for native defined classes -export class ItemDurabilityComponent extends ItemComponent { - private constructor(); - /** - * @remarks - * Returns the current damage level of this particular item. - * - * This property can't be edited in read-only mode. - * - */ - damage: number; - /** - * @remarks - * Represents the amount of damage that this item can take - * before breaking. - * - * @throws This property can throw when used. - */ - readonly maxDurability: number; - static readonly componentId = 'minecraft:durability'; - /** - * @remarks - * Returns the maximum chance that this item would be damaged - * using the damageRange property, given an unbreaking level. - * - * This function can't be called in read-only mode. - * - * @param unbreaking - * Unbreaking factor to consider in factoring the damage - * chance. Incoming unbreaking parameter must be greater than - * 0. - * @throws This function can throw errors. - */ - getDamageChance(unbreaking?: number): number; - /** - * @remarks - * A range of numbers that describes the chance of the item - * losing durability. - * - * This function can't be called in read-only mode. - * - * @throws This function can throw errors. - */ - getDamageRange(): NumberRange; -} - -/** - * @beta - * When present on an item, this item has applied enchantment - * effects. Note that this component only applies to - * data-driven items. - */ -// @ts-ignore Class inheritance allowed for native defined classes -export class ItemEnchantsComponent extends ItemComponent { - private constructor(); - /** - * @remarks - * Returns a collection of the enchantments applied to this - * item stack. - * - * This property can't be edited in read-only mode. - * - */ - enchantments: EnchantmentList; - static readonly componentId = 'minecraft:enchantments'; - /** - * @remarks - * Removes all enchantments applied to this item stack. - * - * This function can't be called in read-only mode. - * - * @throws This function can throw errors. - */ - removeAllEnchantments(): void; -} - -/** - * @beta - * When present on an item, this item is consumable by - * entities. Note that this component only applies to - * data-driven items. - */ -// @ts-ignore Class inheritance allowed for native defined classes -export class ItemFoodComponent extends ItemComponent { - private constructor(); - /** - * @remarks - * If true, the player can always eat this item (even when not - * hungry). - * - * @throws This property can throw when used. - */ - readonly canAlwaysEat: boolean; - /** - * @remarks - * Represents how much nutrition this food item will give an - * entity when eaten. - * - * @throws This property can throw when used. - */ - readonly nutrition: number; - /** - * @remarks - * When an item is eaten, this value is used according to this - * formula (nutrition * saturation_modifier * 2) to apply a - * saturation buff. - * - * @throws This property can throw when used. - */ - readonly saturationModifier: number; - /** - * @remarks - * When specified, converts the active item to the one - * specified by this property. - * - * @throws This property can throw when used. - */ - readonly usingConvertsTo: string; - static readonly componentId = 'minecraft:food'; -} - -/** - * @beta - * Contains information related to a chargeable item when the - * player has finished using the item and released the build - * action. - */ -export class ItemReleaseUseAfterEvent { - private constructor(); - /** - * @remarks - * Returns the item stack that triggered this item event. - * - */ - readonly itemStack: ItemStack; - /** - * @remarks - * Returns the source entity that triggered this item event. - * - */ - readonly source: Entity; - /** - * @remarks - * Returns the time, in ticks, for the remaining duration left - * before the charge completes its cycle. - * - */ - readonly useDuration: number; -} - -/** - * @beta - * Manages callbacks that are connected to the releasing of - * charging for a chargeable item. - */ -// @ts-ignore Class inheritance allowed for native defined classes -export class ItemReleaseUseAfterEventSignal extends IItemReleaseUseAfterEventSignal { - private constructor(); -} - -/** - * Defines a collection of items. - */ -export class ItemStack { - /** - * @remarks - * Number of the items in the stack. Valid values range between - * 1-255. The provided value will be clamped to the item's - * maximum stack size. - * - * This property can't be edited in read-only mode. - * - * @throws - * Throws if the value is outside the range of 1-255. - */ - amount: number; - /** - * @remarks - * Returns whether the item is stackable. An item is considered - * stackable if the item's maximum stack size is greater than 1 - * and the item does not contain any custom data or properties. - * - */ - readonly isStackable: boolean; - /** - * @remarks - * Gets or sets whether the item is kept on death. - * - * This property can't be edited in read-only mode. - * - */ - keepOnDeath: boolean; - /** - * @remarks - * Gets or sets the item's lock mode. The default value is - * `ItemLockMode.none`. - * - * This property can't be edited in read-only mode. - * - */ - lockMode: ItemLockMode; - /** - * @remarks - * The maximum stack size. This value varies depending on the - * type of item. For example, torches have a maximum stack size - * of 64, while eggs have a maximum stack size of 16. - * - */ - readonly maxAmount: number; - /** - * @remarks - * Given name of this stack of items. The name tag is displayed - * when hovering over the item. Setting the name tag to an - * empty string or `undefined` will remove the name tag. - * - * This property can't be edited in read-only mode. - * - * @throws - * Throws if the length exceeds 255 characters. - */ - nameTag?: string; - /** - * @remarks - * The type of the item. - * - */ - readonly 'type': ItemType; - /** - * @remarks - * Identifier of the type of items for the stack. If a - * namespace is not specified, 'minecraft:' is assumed. - * Examples include 'wheat' or 'apple'. - * - */ - readonly typeId: string; - /** - * @remarks - * Creates a new instance of a stack of items for use in the - * world. - * - * @param itemType - * Type of item to create. See the {@link - * @minecraft/vanilla-data.MinecraftItemTypes} enumeration for - * a list of standard item types in Minecraft experiences. - * @param amount - * Number of items to place in the stack, between 1-255. The - * provided value will be clamped to the item's maximum stack - * size. Note that certain items can only have one item in the - * stack. - * @throws - * Throws if `itemType` is invalid, or if `amount` is outside - * the range of 1-255. - */ - constructor(itemType: ItemType | string, amount?: number); - /** - * @beta - * @remarks - * Creates an exact copy of the item stack, including any - * custom data or properties. - * - * @returns - * Returns a copy of this item stack. - */ - clone(): ItemStack; - /** - * @remarks - * Gets a component (that represents additional capabilities) - * for an item stack. - * - * @param componentId - * The identifier of the component (e.g., 'minecraft:food') to - * retrieve. If no namespace prefix is specified, 'minecraft:' - * is assumed. If the component is not present on the item - * stack, undefined is returned. - * @example durability.ts - * ```typescript - * // Get the maximum durability of a custom sword item - * const itemStack = new ItemStack("custom:sword"); - * const durability = itemStack.getComponent("minecraft:durability") as ItemDurabilityComponent; - * const maxDurability = durability.maxDurability; - * ``` - */ - getComponent(componentId: string): ItemComponent | undefined; - /** - * @remarks - * Returns all components that are both present on this item - * stack and supported by the API. - * - */ - getComponents(): ItemComponent[]; - /** - * @beta - * @remarks - * Returns the lore value - a secondary display string - for an - * ItemStack. - * - * @returns - * An array of lore strings. If the item does not have lore, - * returns an empty array. - */ - getLore(): string[]; - /** - * @beta - * @remarks - * Returns a set of tags associated with this item stack. - * - */ - getTags(): string[]; - /** - * @remarks - * Returns true if the specified component is present on this - * item stack. - * - * @param componentId - * The identifier of the component (e.g., 'minecraft:food') to - * retrieve. If no namespace prefix is specified, 'minecraft:' - * is assumed. - */ - hasComponent(componentId: string): boolean; - /** - * @beta - * @remarks - * Checks whether this item stack has a particular tag - * associated with it. - * - * @param tag - * Tag to search for. - * @returns - * True if the Item Stack has the tag associated with it, else - * false. - */ - hasTag(tag: string): boolean; - /** - * @remarks - * Returns whether this item stack can be stacked with the - * given `itemStack`. This is determined by comparing the item - * type and any custom data and properties associated with the - * item stacks. The amount of each item stack is not taken into - * consideration. - * - */ - isStackableWith(itemStack: ItemStack): boolean; - /** - * @beta - * @remarks - * The list of block types this item can break in Adventure - * mode. The block names are displayed in the item's tooltip. - * Setting the value to undefined will clear the list. - * - * This function can't be called in read-only mode. - * - * @throws - * Throws if any of the provided block identifiers are invalid. - * @example example.ts - * ```typescript - * // Creates a diamond pickaxe that can destroy cobblestone and obsidian - * const specialPickaxe = new ItemStack("minecraft:diamond_pickaxe"); - * specialPickaxe.setCanDestroy(["minecraft:cobblestone", "minecraft:obsidian"]); - * ``` - */ - setCanDestroy(blockIdentifiers?: string[]): void; - /** - * @beta - * @remarks - * The list of block types this item can be placed on in - * Adventure mode. This is only applicable to block items. The - * block names are displayed in the item's tooltip. Setting the - * value to undefined will clear the list. - * - * This function can't be called in read-only mode. - * - * @throws - * Throws if any of the provided block identifiers are invalid. - * @example example.ts - * ```typescript - * // Creates a gold block that can be placed on grass and dirt - * const specialGoldBlock = new ItemStack("minecraft:gold_block"); - * specialPickaxe.setCanPlaceOn(["minecraft:grass", "minecraft:dirt"]); - * ``` - */ - setCanPlaceOn(blockIdentifiers?: string[]): void; - /** - * @beta - * @remarks - * Sets the lore value - a secondary display string - for an - * ItemStack. - * - * This function can't be called in read-only mode. - * - * @example diamondAwesomeSword.ts - * ```typescript - * const diamondAwesomeSword = new mc.ItemStack(mc.MinecraftItemTypes.diamondSword, 1); - * let players = mc.world.getAllPlayers(); - * - * diamondAwesomeSword.setLore(["§c§lDiamond Sword of Awesome§r", "+10 coolness", "§p+4 shiny§r"]); - * - * // hover over/select the item in your inventory to see the lore. - * const inventory = players[0].getComponent("inventory") as mc.EntityInventoryComponent; - * inventory.container.setItem(0, diamondAwesomeSword); - * - * let item = inventory.container.getItem(0); - * - * if (item) { - * let enchants = item.getComponent("minecraft:enchantments") as mc.ItemEnchantsComponent; - * let knockbackEnchant = new mc.Enchantment("knockback", 3); - * enchants.enchantments.addEnchantment(knockbackEnchant); - * } - * ``` - * @example multilineLore.ts - * ```typescript - * // Set the lore of an item to multiple lines of text - * const itemStack = new ItemStack("minecraft:diamond_sword"); - * itemStack.setLore(["Line 1", "Line 2", "Line 3"]); - * ``` - */ - setLore(loreList?: string[]): void; - /** - * @beta - * @remarks - * Triggers an item type event. For custom items, a number of - * events are defined in an items' definition for key item - * behaviors. - * - * This function can't be called in read-only mode. - * - * @param eventName - * Name of the item type event to trigger. If a namespace is - * not specified, minecraft: is assumed. - */ - triggerEvent(eventName: string): void; -} - -/** - * @beta - * Contains information related to a chargeable item starting - * to be charged. - */ -export class ItemStartUseAfterEvent { - private constructor(); - /** - * @remarks - * The impacted item stack that is starting to be charged. - * - */ - readonly itemStack: ItemStack; - /** - * @remarks - * Returns the source entity that triggered this item event. - * - */ - readonly source: Entity; - /** - * @remarks - * Returns the time, in ticks, for the remaining duration left - * before the charge completes its cycle. - * - */ - readonly useDuration: number; -} - -/** - * @beta - * Manages callbacks that are connected to the start of - * charging for a chargeable item. - */ -// @ts-ignore Class inheritance allowed for native defined classes -export class ItemStartUseAfterEventSignal extends IItemStartUseAfterEventSignal { - private constructor(); -} - -/** - * @beta - * Contains information related to an item being used on a - * block. This event fires when a player presses the the Use - * Item / Place Block button to successfully use an item or - * place a block. Fires for the first block that is interacted - * with when performing a build action. Note: This event cannot - * be used with Hoe or Axe items. - */ -export class ItemStartUseOnAfterEvent { - private constructor(); - /** - * @remarks - * The block that the item is used on. - * - */ - readonly block: Block; - /** - * @remarks - * The face of the block that an item is being used on. - * - */ - readonly blockFace: Direction; - /** - * @remarks - * The impacted item stack that is starting to be used. - * - */ - readonly itemStack: ItemStack; - /** - * @remarks - * Returns the source entity that triggered this item event. - * - */ - readonly source: Entity; -} - -/** - * @beta - * Manages callbacks that are connected to an item starting - * being used on a block event. - */ -// @ts-ignore Class inheritance allowed for native defined classes -export class ItemStartUseOnAfterEventSignal extends IItemStartUseOnAfterEventSignal { - private constructor(); -} - -/** - * @beta - * Contains information related to a chargeable item has - * finished an items use cycle, or when the player has released - * the use action with the item. - */ -export class ItemStopUseAfterEvent { - private constructor(); - /** - * @remarks - * The impacted item stack that is stopping being charged. - * - */ - readonly itemStack: ItemStack; - /** - * @remarks - * Returns the source entity that triggered this item event. - * - */ - readonly source: Entity; - /** - * @remarks - * Returns the time, in ticks, for the remaining duration left - * before the charge completes its cycle. - * - */ - readonly useDuration: number; -} - -/** - * @beta - * Manages callbacks that are connected to the stopping of - * charging for an item that has a registered - * minecraft:chargeable component. - */ -// @ts-ignore Class inheritance allowed for native defined classes -export class ItemStopUseAfterEventSignal extends IItemStopUseAfterEventSignal { - private constructor(); -} - -/** - * @beta - * Contains information related to an item that has stopped - * being used on a block. This event fires when a player - * successfully uses an item or places a block by pressing the - * Use Item / Place Block button. If multiple blocks are - * placed, this event will only occur once at the beginning of - * the block placement. Note: This event cannot be used with - * Hoe or Axe items. - */ -export class ItemStopUseOnAfterEvent { - private constructor(); - /** - * @remarks - * The block that the item is used on. - * - */ - readonly block: Block; - /** - * @remarks - * The impacted item stack that is being used on a block. - * - */ - readonly itemStack?: ItemStack; - /** - * @remarks - * Returns the source entity that triggered this item event. - * - */ - readonly source: Entity; -} - -/** - * @beta - * Manages callbacks that are connected to an item stops used - * on a block event. - */ -// @ts-ignore Class inheritance allowed for native defined classes -export class ItemStopUseOnAfterEventSignal extends IItemStopUseOnAfterEventSignal { - private constructor(); -} - -/** - * Represents the type of an item - for example, Wool. - */ -export class ItemType { - private constructor(); - /** - * @remarks - * Returns the identifier of the item type - for example, - * 'minecraft:apple'. - * - */ - readonly id: string; -} - -/** - * @beta - */ -export class ItemTypeIterator implements Iterable { - private constructor(); - /** - * @remarks - * This function can't be called in read-only mode. - * - */ - [Symbol.iterator](): Iterator; - /** - * @remarks - * This function can't be called in read-only mode. - * - */ - next(): IteratorResult; -} - -/** - * @beta - * Returns the set of item types registered within Minecraft. - */ -export class ItemTypes { - private constructor(); - /** - * @remarks - * Returns a specific item type, if available within Minecraft. - * - */ - static get(itemId: string): ItemType; - /** - * @remarks - * Retrieves all available item types registered within - * Minecraft. - * - */ - static getAll(): ItemTypeIterator; -} - -/** - * @beta - * Contains information related to an item being used. This - * event fires when an item is successfully used by a player. - */ -export class ItemUseAfterEvent { - private constructor(); - /** - * @remarks - * The impacted item stack that is being used. - * - */ - itemStack: ItemStack; - /** - * @remarks - * Returns the source entity that triggered this item event. - * - */ - readonly source: Entity; -} - -/** - * @beta - * Manages callbacks that are connected to an item use event. - */ -// @ts-ignore Class inheritance allowed for native defined classes -export class ItemUseAfterEventSignal extends IItemUseAfterEventSignal { - private constructor(); -} - -/** - * @beta - * Contains information related to an item being used. - */ -// @ts-ignore Class inheritance allowed for native defined classes -export class ItemUseBeforeEvent extends ItemUseAfterEvent { - private constructor(); - /** - * @remarks - * If set to true, this will cancel the item use behavior. - * - */ - cancel: boolean; -} - -/** - * @beta - * Manages callbacks that fire before an item is used. - */ -// @ts-ignore Class inheritance allowed for native defined classes -export class ItemUseBeforeEventSignal extends IItemUseBeforeEventSignal { - private constructor(); -} - -/** - * @beta - * Contains information related to an item being used on a - * block. This event fires when an item is successfully used on - * a block by a player. - */ -export class ItemUseOnAfterEvent { - private constructor(); - /** - * @remarks - * The block that the item is used on. - * - */ - readonly block: Block; - /** - * @remarks - * The face of the block that an item is being used on. - * - */ - readonly blockFace: Direction; - /** - * @remarks - * Location relative to the bottom north-west corner of the - * block where the item is placed. - * - */ - readonly faceLocation: Vector3; - /** - * @remarks - * The impacted item stack that is being used on a block. - * - */ - readonly itemStack: ItemStack; - /** - * @remarks - * Returns the source entity that triggered this item event. - * - */ - readonly source: Entity; -} - -/** - * @beta - * Manages callbacks that are connected to an item being used - * on a block event. - */ -// @ts-ignore Class inheritance allowed for native defined classes -export class ItemUseOnAfterEventSignal extends IItemUseOnAfterEventSignal { - private constructor(); -} - -/** - * @beta - * Contains information related to an item being used on a - * block. - */ -// @ts-ignore Class inheritance allowed for native defined classes -export class ItemUseOnBeforeEvent extends ItemUseOnAfterEvent { - private constructor(); - /** - * @remarks - * If set to true, this will cancel the item use behavior. - * - */ - cancel: boolean; -} - -/** - * @beta - * Manages callbacks that fire before an item being used on a - * block event. - */ -// @ts-ignore Class inheritance allowed for native defined classes -export class ItemUseOnBeforeEventSignal extends IItemUseOnBeforeEventSignal { - private constructor(); -} - -/** - * @beta - */ -export class ITripWireTripAfterEventSignal { - private constructor(); - /** - * @remarks - * This function can't be called in read-only mode. - * - */ - subscribe(callback: (arg: TripWireTripAfterEvent) => void): (arg: TripWireTripAfterEvent) => void; - /** - * @remarks - * This function can't be called in read-only mode. - * - * @throws This function can throw errors. - */ - unsubscribe(callback: (arg: TripWireTripAfterEvent) => void): void; -} - -/** - * @beta - * An event that fires before the watchdog is about to - * terminate a world because various performance metrics for - * scripting have exceeded a threshold. - */ -export class IWatchdogTerminateBeforeEventSignal { - private constructor(); - /** - * @remarks - * This function can't be called in read-only mode. - * - */ - subscribe(callback: (arg: WatchdogTerminateBeforeEvent) => void): (arg: WatchdogTerminateBeforeEvent) => void; - /** - * @remarks - * This function can't be called in read-only mode. - * - * @throws This function can throw errors. - */ - unsubscribe(callback: (arg: WatchdogTerminateBeforeEvent) => void): void; -} - -/** - * @beta - * An event that fires after the weather has changed. - */ -export class IWeatherChangeAfterEventSignal { - private constructor(); - /** - * @remarks - * This function can't be called in read-only mode. - * - */ - subscribe(callback: (arg: WeatherChangeAfterEvent) => void): (arg: WeatherChangeAfterEvent) => void; - /** - * @remarks - * This function can't be called in read-only mode. - * - * @throws This function can throw errors. - */ - unsubscribe(callback: (arg: WeatherChangeAfterEvent) => void): void; -} - -/** - * @beta - * An event that fires when a world is first initialized or - * loaded. - */ -export class IWorldInitializeAfterEventSignal { - private constructor(); - /** - * @remarks - * This function can't be called in read-only mode. - * - */ - subscribe(callback: (arg: WorldInitializeAfterEvent) => void): (arg: WorldInitializeAfterEvent) => void; - /** - * @remarks - * This function can't be called in read-only mode. - * - * @throws This function can throw errors. - */ - unsubscribe(callback: (arg: WorldInitializeAfterEvent) => void): void; -} - -/** - * Contains information related to changes to a lever - * activating or deactivating. - */ -// @ts-ignore Class inheritance allowed for native defined classes -export class LeverActionAfterEvent extends BlockEvent { - private constructor(); - /** - * @remarks - * True if the lever is activated (that is, transmitting - * power). - * - */ - readonly isPowered: boolean; - /** - * @remarks - * Optional player that triggered the lever activation. - * - */ - readonly player: Player; -} - -/** - * Manages callbacks that are connected to lever moves - * (activates or deactivates). - */ -// @ts-ignore Class inheritance allowed for native defined classes -export class LeverActionAfterEventSignal extends ILeverActionAfterEventSignal { - private constructor(); -} - -/** - * @beta - * A specific currently-internal event used for passing - * messages from client to server. - */ -export class MessageReceiveAfterEvent { - private constructor(); - /** - * @remarks - * The message identifier. - * - */ - readonly id: string; - /** - * @remarks - * The message. - * - */ - readonly message: string; - /** - * @remarks - * The player who sent the message. - * - */ - readonly player: Player; -} - -/** - * @beta - * Contains definitions of standard Minecraft and Minecraft - * Education Edition block types. - */ -export class MinecraftBlockTypes { - private constructor(); - /** - * @remarks - * Represents an acacia button within Minecraft. - * - */ - static readonly acaciaButton: BlockType; - /** - * @remarks - * Represents an acacia door within Minecraft. - * - */ - static readonly acaciaDoor: BlockType; - static readonly acaciaFence: BlockType; - /** - * @remarks - * Represents an acacia fence gate within Minecraft. - * - */ - static readonly acaciaFenceGate: BlockType; - static readonly acaciaHangingSign: BlockType; - static readonly acaciaLog: BlockType; - /** - * @remarks - * Represents an acacia pressure plate within Minecraft. - * - */ - static readonly acaciaPressurePlate: BlockType; - /** - * @remarks - * Represents a set of acacia stairs within Minecraft. - * - */ - static readonly acaciaStairs: BlockType; - /** - * @remarks - * Represents an acacia standing sign within Minecraft. - * - */ - static readonly acaciaStandingSign: BlockType; - /** - * @remarks - * Represents an acacia trapdoor within Minecraft. - * - */ - static readonly acaciaTrapdoor: BlockType; - /** - * @remarks - * Represents an acacia wall sign within Minecraft. - * - */ - static readonly acaciaWallSign: BlockType; - /** - * @remarks - * Represents an activator rail within Minecraft. - * - */ - static readonly activatorRail: BlockType; - /** - * @remarks - * Represents an empty space (air) within Minecraft. - * - */ - static readonly air: BlockType; - /** - * @remarks - * Represents an allow block within Minecraft. - * - */ - static readonly allow: BlockType; - /** - * @remarks - * Represents an amethyst block within Minecraft. - * - */ - static readonly amethystBlock: BlockType; - /** - * @remarks - * Represents a cluster of amethyst within Minecraft. - * - */ - static readonly amethystCluster: BlockType; - /** - * @remarks - * Represents ancient debris within Minecraft. - * - */ - static readonly ancientDebris: BlockType; - /** - * @remarks - * Represents andesite stairs within Minecraft. - * - */ - static readonly andesiteStairs: BlockType; - /** - * @remarks - * Represents an anvil within Minecraft. - * - */ - static readonly anvil: BlockType; - /** - * @remarks - * Represents an azalea flowering plant within Minecraft. - * - */ - static readonly azalea: BlockType; - /** - * @remarks - * Represents azalea leaves within Minecraft. - * - */ - static readonly azaleaLeaves: BlockType; - /** - * @remarks - * Represents flowered azalea leaves within Minecraft. - * - */ - static readonly azaleaLeavesFlowered: BlockType; - /** - * @remarks - * Represents a bamboo tree within Minecraft. - * - */ - static readonly bamboo: BlockType; - static readonly bambooBlock: BlockType; - static readonly bambooButton: BlockType; - static readonly bambooDoor: BlockType; - static readonly bambooDoubleSlab: BlockType; - static readonly bambooFence: BlockType; - static readonly bambooFenceGate: BlockType; - static readonly bambooHangingSign: BlockType; - static readonly bambooMosaic: BlockType; - static readonly bambooMosaicDoubleSlab: BlockType; - static readonly bambooMosaicSlab: BlockType; - static readonly bambooMosaicStairs: BlockType; - static readonly bambooPlanks: BlockType; - static readonly bambooPressurePlate: BlockType; - /** - * @remarks - * Represents a bamboo sapling within Minecraft. - * - */ - static readonly bambooSapling: BlockType; - static readonly bambooSlab: BlockType; - static readonly bambooStairs: BlockType; - static readonly bambooStandingSign: BlockType; - static readonly bambooTrapdoor: BlockType; - static readonly bambooWallSign: BlockType; - /** - * @remarks - * Represents a barrel within Minecraft. - * - */ - static readonly barrel: BlockType; - /** - * @remarks - * Represents an invisible but logical barrier within - * Minecraft. - * - */ - static readonly barrier: BlockType; - /** - * @remarks - * Represents a basalt block within Minecraft. - * - */ - static readonly basalt: BlockType; - /** - * @remarks - * Represents a beacon within Minecraft. - * - */ - static readonly beacon: BlockType; - /** - * @remarks - * Represents a bed within Minecraft. - * - */ - static readonly bed: BlockType; - /** - * @remarks - * Represents a bedrock block within Minecraft. - * - */ - static readonly bedrock: BlockType; - /** - * @remarks - * Represents a beehive within Minecraft. - * - */ - static readonly beehive: BlockType; - /** - * @remarks - * Represents a bee nest within Minecraft. - * - */ - static readonly beeNest: BlockType; - /** - * @remarks - * Represents a beetroot vegetable within Minecraft. - * - */ - static readonly beetroot: BlockType; - /** - * @remarks - * Represents a bell within Minecraft. - * - */ - static readonly bell: BlockType; - /** - * @remarks - * Represents a big dripleaf plant within Minecraft. - * - */ - static readonly bigDripleaf: BlockType; - /** - * @remarks - * Represents a birch button within Minecraft. - * - */ - static readonly birchButton: BlockType; - /** - * @remarks - * Represents a birch door within Minecraft. - * - */ - static readonly birchDoor: BlockType; - static readonly birchFence: BlockType; - /** - * @remarks - * Represents a birch fence gate within Minecraft. - * - */ - static readonly birchFenceGate: BlockType; - static readonly birchHangingSign: BlockType; - static readonly birchLog: BlockType; - /** - * @remarks - * Represents a birch pressure plate within Minecraft. - * - */ - static readonly birchPressurePlate: BlockType; - /** - * @remarks - * Represents a birch stairs block within Minecraft. - * - */ - static readonly birchStairs: BlockType; - /** - * @remarks - * Represents a birch standing sign within Minecraft. - * - */ - static readonly birchStandingSign: BlockType; - /** - * @remarks - * Represents a birch trapdoor within Minecraft. - * - */ - static readonly birchTrapdoor: BlockType; - /** - * @remarks - * Represents a birch wall sign within Minecraft. - * - */ - static readonly birchWallSign: BlockType; - /** - * @remarks - * Represents a black candle within Minecraft. - * - */ - static readonly blackCandle: BlockType; - /** - * @remarks - * Represents a black candle cake within Minecraft. - * - */ - static readonly blackCandleCake: BlockType; - static readonly blackCarpet: BlockType; - static readonly blackConcrete: BlockType; - /** - * @remarks - * Represents a black glazed terracotta block within Minecraft. - * - */ - static readonly blackGlazedTerracotta: BlockType; - static readonly blackShulkerBox: BlockType; - /** - * @remarks - * Represents a blackstone block within Minecraft. - * - */ - static readonly blackstone: BlockType; - /** - * @remarks - * Represents a blackstone double slab within Minecraft. - * - */ - static readonly blackstoneDoubleSlab: BlockType; - /** - * @remarks - * Represents a blackstone slab within Minecraft. - * - */ - static readonly blackstoneSlab: BlockType; - /** - * @remarks - * Represents blackstone stairs within Minecraft. - * - */ - static readonly blackstoneStairs: BlockType; - /** - * @remarks - * Represents a blackstone wall within Minecraft. - * - */ - static readonly blackstoneWall: BlockType; - static readonly blackWool: BlockType; - /** - * @remarks - * Represents a blast furnace within Minecraft. - * - */ - static readonly blastFurnace: BlockType; - /** - * @remarks - * Represents a blue candle within Minecraft. - * - */ - static readonly blueCandle: BlockType; - /** - * @remarks - * Represents a blue candle cake within Minecraft. - * - */ - static readonly blueCandleCake: BlockType; - static readonly blueCarpet: BlockType; - static readonly blueConcrete: BlockType; - /** - * @remarks - * Represents a blue glazed terracotta block within Minecraft. - * - */ - static readonly blueGlazedTerracotta: BlockType; - /** - * @remarks - * Represents a blue ice block within Minecraft. - * - */ - static readonly blueIce: BlockType; - static readonly blueShulkerBox: BlockType; - static readonly blueWool: BlockType; - /** - * @remarks - * Represents a bone block within Minecraft. - * - */ - static readonly boneBlock: BlockType; - /** - * @remarks - * Represents an unbreakable border block within Minecraft. - * - */ - static readonly bookshelf: BlockType; - /** - * @remarks - * Represents a border block within Minecraft. - * - */ - static readonly borderBlock: BlockType; - static readonly brainCoral: BlockType; - /** - * @remarks - * Represents a brewing stand within Minecraft. - * - */ - static readonly brewingStand: BlockType; - /** - * @remarks - * Represents a block of brick within Minecraft. - * - */ - static readonly brickBlock: BlockType; - /** - * @remarks - * Represents brick stairs within Minecraft. - * - */ - static readonly brickStairs: BlockType; - /** - * @remarks - * Represents a brown candle within Minecraft. - * - */ - static readonly brownCandle: BlockType; - /** - * @remarks - * Represents a brown candle cake within Minecraft. - * - */ - static readonly brownCandleCake: BlockType; - static readonly brownCarpet: BlockType; - static readonly brownConcrete: BlockType; - /** - * @remarks - * Represents a brown glazed terracotta block within Minecraft. - * - */ - static readonly brownGlazedTerracotta: BlockType; - /** - * @remarks - * Represents a brown mushroom within Minecraft. - * - */ - static readonly brownMushroom: BlockType; - /** - * @remarks - * Represents a block of brown mushroom within Minecraft. - * - */ - static readonly brownMushroomBlock: BlockType; - static readonly brownShulkerBox: BlockType; - static readonly brownWool: BlockType; - /** - * @remarks - * Represents a column of bubbles within Minecraft. - * - */ - static readonly bubbleColumn: BlockType; - static readonly bubbleCoral: BlockType; - /** - * @remarks - * Represents a block of budding amethyst within Minecraft. - * - */ - static readonly buddingAmethyst: BlockType; - /** - * @remarks - * Represents a cactus within Minecraft. - * - */ - static readonly cactus: BlockType; - /** - * @remarks - * Represents a cake within Minecraft. - * - */ - static readonly cake: BlockType; - /** - * @remarks - * Represents a calcite block within Minecraft. - * - */ - static readonly calcite: BlockType; - static readonly calibratedSculkSensor: BlockType; - /** - * @remarks - * Represents a camera within Minecraft Education Edition. It - * is not available in Minecraft Bedrock Edition. - * - */ - static readonly camera: BlockType; - /** - * @remarks - * Represents a campfire within Minecraft. - * - */ - static readonly campfire: BlockType; - /** - * @remarks - * Represents a candle within Minecraft. - * - */ - static readonly candle: BlockType; - /** - * @remarks - * Represents a cake with candles within Minecraft. - * - */ - static readonly candleCake: BlockType; - /** - * @remarks - * Represents carrots within Minecraft. - * - */ - static readonly carrots: BlockType; - /** - * @remarks - * Represents a cartography table block within Minecraft. - * - */ - static readonly cartographyTable: BlockType; - /** - * @remarks - * Represents a carved pumpkin within Minecraft. - * - */ - static readonly carvedPumpkin: BlockType; - /** - * @remarks - * Represents a cauldron within Minecraft. - * - */ - static readonly cauldron: BlockType; - /** - * @remarks - * Represents a set of cave vines within Minecraft. - * - */ - static readonly caveVines: BlockType; - /** - * @remarks - * Represents the body of a set of cave vines with berries - * within Minecraft. - * - */ - static readonly caveVinesBodyWithBerries: BlockType; - /** - * @remarks - * Represents the head of a set of cave vines with berries - * within Minecraft. - * - */ - static readonly caveVinesHeadWithBerries: BlockType; - /** - * @remarks - * Represents a metallic chain within Minecraft. - * - */ - static readonly chain: BlockType; - /** - * @remarks - * Represents a block that gives off heat but not light, within - * Minecraft Education Edition or Bedrock Edition with - * Education features. - * - */ - static readonly chainCommandBlock: BlockType; - /** - * @remarks - * Represents a chemical heat block within Minecraft. - * - */ - static readonly chemicalHeat: BlockType; - /** - * @remarks - * Represents a chemistry table within Minecraft Education - * experiences. - * - */ - static readonly chemistryTable: BlockType; - static readonly cherryButton: BlockType; - static readonly cherryDoor: BlockType; - static readonly cherryDoubleSlab: BlockType; - static readonly cherryFence: BlockType; - static readonly cherryFenceGate: BlockType; - static readonly cherryHangingSign: BlockType; - static readonly cherryLeaves: BlockType; - static readonly cherryLog: BlockType; - static readonly cherryPlanks: BlockType; - static readonly cherryPressurePlate: BlockType; - static readonly cherrySapling: BlockType; - static readonly cherrySlab: BlockType; - static readonly cherryStairs: BlockType; - static readonly cherryStandingSign: BlockType; - static readonly cherryTrapdoor: BlockType; - static readonly cherryWallSign: BlockType; - static readonly cherryWood: BlockType; - /** - * @remarks - * Represents a chest within Minecraft. - * - */ - static readonly chest: BlockType; - static readonly chiseledBookshelf: BlockType; - /** - * @remarks - * Represents a set of chiseled deepslate within Minecraft. - * - */ - static readonly chiseledDeepslate: BlockType; - /** - * @remarks - * Represents a block of chiseled nether bricks within - * Minecraft. - * - */ - static readonly chiseledNetherBricks: BlockType; - /** - * @remarks - * Represents a block of chiseled polished blackstone within - * Minecraft. - * - */ - static readonly chiseledPolishedBlackstone: BlockType; - /** - * @remarks - * Represents a chorus flower within Minecraft. - * - */ - static readonly chorusFlower: BlockType; - /** - * @remarks - * Represents a chorus plant within Minecraft. - * - */ - static readonly chorusPlant: BlockType; - /** - * @remarks - * Represents a block of clay within Minecraft. - * - */ - static readonly clay: BlockType; - static readonly clientRequestPlaceholderBlock: BlockType; - /** - * @remarks - * Represents a block of solid coal within Minecraft. - * - */ - static readonly coalBlock: BlockType; - /** - * @remarks - * Represents a block with embedded coal ore within Minecraft. - * - */ - static readonly coalOre: BlockType; - /** - * @remarks - * Represents a block of cobbled deepslate within Minecraft. - * - */ - static readonly cobbledDeepslate: BlockType; - /** - * @remarks - * Represents a double slab of cobbled deepslate within - * Minecraft. - * - */ - static readonly cobbledDeepslateDoubleSlab: BlockType; - /** - * @remarks - * Represents a slab of deepslate within Minecraft. - * - */ - static readonly cobbledDeepslateSlab: BlockType; - /** - * @remarks - * Represents cobbled deepslate stairs within Minecraft. - * - */ - static readonly cobbledDeepslateStairs: BlockType; - /** - * @remarks - * Represents a cobbled deepslate wall within Minecraft. - * - */ - static readonly cobbledDeepslateWall: BlockType; - /** - * @remarks - * Represents a block of cobblestone within Minecraft. - * - */ - static readonly cobblestone: BlockType; - /** - * @remarks - * Represents a wall of cobblestone within Minecraft. - * - */ - static readonly cobblestoneWall: BlockType; - /** - * @remarks - * Represents a set of cocoa beans (typically on a tree) within - * Minecraft. - * - */ - static readonly cocoa: BlockType; - /** - * @remarks - * Represents blue/purple torches within Minecraft. - * - */ - static readonly coloredTorchBp: BlockType; - /** - * @remarks - * Represents red/green torches within Minecraft. - * - */ - static readonly coloredTorchRg: BlockType; - /** - * @remarks - * Represents a block that can run commands within Minecraft. - * - */ - static readonly commandBlock: BlockType; - /** - * @remarks - * Represents a composter block within Minecraft. - * - */ - static readonly composter: BlockType; - /** - * @remarks - * Represents a block of concrete powder within Minecraft. - * - */ - static readonly concretePowder: BlockType; - /** - * @remarks - * Represents a conduit block within Minecraft. - * - */ - static readonly conduit: BlockType; - /** - * @remarks - * Represents a solid block of copper within Minecraft. - * - */ - static readonly copperBlock: BlockType; - /** - * @remarks - * Represents a block with embedded copper ore within - * Minecraft. - * - */ - static readonly copperOre: BlockType; - /** - * @remarks - * Represents a solid block of coral within Minecraft. - * - */ - static readonly coralBlock: BlockType; - /** - * @remarks - * Represents a fan formation of coral within Minecraft. - * - */ - static readonly coralFan: BlockType; - /** - * @remarks - * Represents a fan formation of dead coral within Minecraft. - * - */ - static readonly coralFanDead: BlockType; - /** - * @remarks - * Represents a hanging fan formation of coral within - * Minecraft. - * - */ - static readonly coralFanHang: BlockType; - /** - * @remarks - * Represents an alternate hanging fan formation of coral (#2) - * within Minecraft. - * - */ - static readonly coralFanHang2: BlockType; - /** - * @remarks - * Represents an alternate hanging fan formation of coral (#3) - * within Minecraft. - * - */ - static readonly coralFanHang3: BlockType; - /** - * @remarks - * Represents a block of cracked deepslate bricks within - * Minecraft. - * - */ - static readonly crackedDeepslateBricks: BlockType; - /** - * @remarks - * Represents tiles of cracked deepslate within Minecraft. - * - */ - static readonly crackedDeepslateTiles: BlockType; - /** - * @remarks - * Represents a block of cracked nether bricks within - * Minecraft. - * - */ - static readonly crackedNetherBricks: BlockType; - /** - * @remarks - * Represents a block of cracked and polished blackstone bricks - * within Minecraft. - * - */ - static readonly crackedPolishedBlackstoneBricks: BlockType; - /** - * @remarks - * Represents a crafting table within Minecraft. - * - */ - static readonly craftingTable: BlockType; - /** - * @remarks - * Represents a crimson button within Minecraft. - * - */ - static readonly crimsonButton: BlockType; - /** - * @remarks - * Represents a crimson door within Minecraft. - * - */ - static readonly crimsonDoor: BlockType; - /** - * @remarks - * Represents a crimson double slab within Minecraft. - * - */ - static readonly crimsonDoubleSlab: BlockType; - /** - * @remarks - * Represents a crimson fence within Minecraft. - * - */ - static readonly crimsonFence: BlockType; - /** - * @remarks - * Represents a crimson fence gate within Minecraft. - * - */ - static readonly crimsonFenceGate: BlockType; - /** - * @remarks - * Represents a crimson fungus within Minecraft. - * - */ - static readonly crimsonFungus: BlockType; - static readonly crimsonHangingSign: BlockType; - /** - * @remarks - * Represents crimson hyphae within Minecraft. - * - */ - static readonly crimsonHyphae: BlockType; - /** - * @remarks - * Represents crimson nylium within Minecraft. - * - */ - static readonly crimsonNylium: BlockType; - /** - * @remarks - * Represents a set of crimson planks within Minecraft. - * - */ - static readonly crimsonPlanks: BlockType; - /** - * @remarks - * Represents a crimson pressure plate within Minecraft. - * - */ - static readonly crimsonPressurePlate: BlockType; - /** - * @remarks - * Represents a set of crimson roots within Minecraft. - * - */ - static readonly crimsonRoots: BlockType; - /** - * @remarks - * Represents a crimson slab within Minecraft. - * - */ - static readonly crimsonSlab: BlockType; - /** - * @remarks - * Represents a set of crimson stairs within Minecraft. - * - */ - static readonly crimsonStairs: BlockType; - /** - * @remarks - * Represents a crimson standing sign within Minecraft. - * - */ - static readonly crimsonStandingSign: BlockType; - /** - * @remarks - * Represents a crimson stem within Minecraft. - * - */ - static readonly crimsonStem: BlockType; - /** - * @remarks - * Represents a crimson trapdoor within Minecraft. - * - */ - static readonly crimsonTrapdoor: BlockType; - /** - * @remarks - * Represents a crimson wall sign within Minecraft. - * - */ - static readonly crimsonWallSign: BlockType; - /** - * @remarks - * Represents crying obsidian within Minecraft. - * - */ - static readonly cryingObsidian: BlockType; - /** - * @remarks - * Represents a cut copper block within Minecraft. - * - */ - static readonly cutCopper: BlockType; - /** - * @remarks - * Represents a cut copper slab within Minecraft. - * - */ - static readonly cutCopperSlab: BlockType; - /** - * @remarks - * Represents a set of cut copper stairs within Minecraft. - * - */ - static readonly cutCopperStairs: BlockType; - /** - * @remarks - * Represents a cyan-colored candle within Minecraft. - * - */ - static readonly cyanCandle: BlockType; - /** - * @remarks - * Represents a cake with a cyan-colored candle within - * Minecraft. - * - */ - static readonly cyanCandleCake: BlockType; - static readonly cyanCarpet: BlockType; - static readonly cyanConcrete: BlockType; - /** - * @remarks - * Represents a block of cyan-colored glazed terracotta within - * Minecraft. - * - */ - static readonly cyanGlazedTerracotta: BlockType; - static readonly cyanShulkerBox: BlockType; - static readonly cyanWool: BlockType; - /** - * @remarks - * Represents a dark oak button within Minecraft. - * - */ - static readonly darkOakButton: BlockType; - /** - * @remarks - * Represents a dark oak door within Minecraft. - * - */ - static readonly darkOakDoor: BlockType; - static readonly darkOakFence: BlockType; - /** - * @remarks - * Represents a dark oak fence gate within Minecraft. - * - */ - static readonly darkOakFenceGate: BlockType; - static readonly darkOakHangingSign: BlockType; - static readonly darkOakLog: BlockType; - /** - * @remarks - * Represents a dark oak pressure plate within Minecraft. - * - */ - static readonly darkOakPressurePlate: BlockType; - /** - * @remarks - * Represents a set of dark oak stairs within Minecraft. - * - */ - static readonly darkOakStairs: BlockType; - /** - * @remarks - * Represents a dark oak standing sign within Minecraft. - * - */ - static readonly darkoakStandingSign: BlockType; - /** - * @remarks - * Represents a dark oak trapdoor within Minecraft. - * - */ - static readonly darkOakTrapdoor: BlockType; - /** - * @remarks - * Represents a dark oak wall sign within Minecraft. - * - */ - static readonly darkoakWallSign: BlockType; - /** - * @remarks - * Represents a set of dark prismarine stairs within Minecraft. - * - */ - static readonly darkPrismarineStairs: BlockType; - /** - * @remarks - * Represents a daylight detector within Minecraft. - * - */ - static readonly daylightDetector: BlockType; - /** - * @remarks - * Represents an inverted daylight detector within Minecraft. - * - */ - static readonly daylightDetectorInverted: BlockType; - static readonly deadBrainCoral: BlockType; - static readonly deadBubbleCoral: BlockType; - /** - * @remarks - * Represents a dead bush within Minecraft. - * - */ - static readonly deadbush: BlockType; - static readonly deadFireCoral: BlockType; - static readonly deadHornCoral: BlockType; - static readonly deadTubeCoral: BlockType; - static readonly decoratedPot: BlockType; - /** - * @remarks - * Represents a block of deepslate within Minecraft. - * - */ - static readonly deepslate: BlockType; - /** - * @remarks - * Represents a double slab of deepslate brick within - * Minecraft. - * - */ - static readonly deepslateBrickDoubleSlab: BlockType; - /** - * @remarks - * Represents a block of deepslate bricks within Minecraft. - * - */ - static readonly deepslateBricks: BlockType; - /** - * @remarks - * Represents a slab of deepslate brick within Minecraft. - * - */ - static readonly deepslateBrickSlab: BlockType; - /** - * @remarks - * Represents a set of deepslate brick stairs within Minecraft. - * - */ - static readonly deepslateBrickStairs: BlockType; - /** - * @remarks - * Represents a deepslate brick wall within Minecraft. - * - */ - static readonly deepslateBrickWall: BlockType; - /** - * @remarks - * Represents a block of deepslate with embedded coal ore - * within Minecraft. - * - */ - static readonly deepslateCoalOre: BlockType; - /** - * @remarks - * Represents a block of deepslate with embedded copper ore - * within Minecraft. - * - */ - static readonly deepslateCopperOre: BlockType; - /** - * @remarks - * Represents a block of deepslate with embedded diamond ore - * within Minecraft. - * - */ - static readonly deepslateDiamondOre: BlockType; - /** - * @remarks - * Represents a block of deepslate with embedded emerald ore - * within Minecraft. - * - */ - static readonly deepslateEmeraldOre: BlockType; - /** - * @remarks - * Represents a block of deepslate with embedded gold ore - * within Minecraft. - * - */ - static readonly deepslateGoldOre: BlockType; - /** - * @remarks - * Represents a block of deepslate with embedded iron ore - * within Minecraft. - * - */ - static readonly deepslateIronOre: BlockType; - /** - * @remarks - * Represents a block of deepslate with embedded lapis lazuli - * ore within Minecraft. - * - */ - static readonly deepslateLapisOre: BlockType; - /** - * @remarks - * Represents a block of deepslate with embedded redstone ore - * within Minecraft. - * - */ - static readonly deepslateRedstoneOre: BlockType; - /** - * @remarks - * Represents a double slab of tiled deepslate within - * Minecraft. - * - */ - static readonly deepslateTileDoubleSlab: BlockType; - /** - * @remarks - * Represents a set of deepslate tiles within Minecraft. - * - */ - static readonly deepslateTiles: BlockType; - /** - * @remarks - * Represents a slab of deepslate tiles within Minecraft. - * - */ - static readonly deepslateTileSlab: BlockType; - /** - * @remarks - * Represents a set of deepslate tile stairs within Minecraft. - * - */ - static readonly deepslateTileStairs: BlockType; - /** - * @remarks - * Represents a wall of deepslate tile within Minecraft. - * - */ - static readonly deepslateTileWall: BlockType; - /** - * @remarks - * Represents a logical but generally invisible Deny logic - * block within Minecraft. - * - */ - static readonly deny: BlockType; - /** - * @remarks - * Represents a detector rail within Minecraft. - * - */ - static readonly detectorRail: BlockType; - /** - * @remarks - * Represents a block of diamond within Minecraft. - * - */ - static readonly diamondBlock: BlockType; - /** - * @remarks - * Represents a block with embedded diamond ore within - * Minecraft. - * - */ - static readonly diamondOre: BlockType; - /** - * @remarks - * Represents a set of diorite stairs within Minecraft. - * - */ - static readonly dioriteStairs: BlockType; - /** - * @remarks - * Represents a block of dirt within Minecraft. - * - */ - static readonly dirt: BlockType; - /** - * @remarks - * Represents a block of dirt with roots within Minecraft. - * - */ - static readonly dirtWithRoots: BlockType; - /** - * @remarks - * Represents a dispenser within Minecraft. - * - */ - static readonly dispenser: BlockType; - /** - * @remarks - * Represents a slab of double cut copper within Minecraft. - * - */ - static readonly doubleCutCopperSlab: BlockType; - /** - * @remarks - * Represents a double plant within Minecraft. - * - */ - static readonly doublePlant: BlockType; - static readonly doubleStoneBlockSlab: BlockType; - static readonly doubleStoneBlockSlab2: BlockType; - static readonly doubleStoneBlockSlab3: BlockType; - static readonly doubleStoneBlockSlab4: BlockType; - /** - * @remarks - * Represents a double slab of stone within Minecraft. - * - */ - static readonly doubleStoneSlab: BlockType; - /** - * @remarks - * Represents an alternate double slab of stone (#2) within - * Minecraft. - * - */ - static readonly doubleStoneSlab2: BlockType; - /** - * @remarks - * Represents an alternate double slab of stone (#3) within - * Minecraft. - * - */ - static readonly doubleStoneSlab3: BlockType; - /** - * @remarks - * Represents an alternate double slab of stone (#4) within - * Minecraft. - * - */ - static readonly doubleStoneSlab4: BlockType; - /** - * @remarks - * Represents a double slab of wood within Minecraft. - * - */ - static readonly doubleWoodenSlab: BlockType; - /** - * @remarks - * Represents a dragon egg within Minecraft. - * - */ - static readonly dragonEgg: BlockType; - /** - * @remarks - * Represents a block of dried kelp within Minecraft. - * - */ - static readonly driedKelpBlock: BlockType; - /** - * @remarks - * Represents a block of dripstone within Minecraft. - * - */ - static readonly dripstoneBlock: BlockType; - /** - * @remarks - * Represents a dropper within Minecraft. - * - */ - static readonly dropper: BlockType; - /** - * @remarks - * Represents an element in Minecraft Education experiences. - * - */ - static readonly element0: BlockType; - /** - * @remarks - * Represents the hydrogen element in Minecraft Education - * experiences. - * - */ - static readonly element1: BlockType; - /** - * @remarks - * Represents the neon element in Minecraft Education - * experiences. - * - */ - static readonly element10: BlockType; - /** - * @remarks - * Represents the fermium element in Minecraft Education - * experiences. - * - */ - static readonly element100: BlockType; - /** - * @remarks - * Represents the mendelevium element in Minecraft Education - * experiences. - * - */ - static readonly element101: BlockType; - /** - * @remarks - * Represents the nobelium element in Minecraft Education - * experiences. - * - */ - static readonly element102: BlockType; - /** - * @remarks - * Represents the lawrencium element in Minecraft Education - * experiences. - * - */ - static readonly element103: BlockType; - /** - * @remarks - * Represents the rutherfordium element in Minecraft Education - * experiences. - * - */ - static readonly element104: BlockType; - /** - * @remarks - * Represents the dubnium element in Minecraft Education - * experiences. - * - */ - static readonly element105: BlockType; - /** - * @remarks - * Represents the seaborgium element in Minecraft Education - * experiences. - * - */ - static readonly element106: BlockType; - /** - * @remarks - * Represents the bohrium element in Minecraft Education - * experiences. - * - */ - static readonly element107: BlockType; - /** - * @remarks - * Represents the hassium element in Minecraft Education - * experiences. - * - */ - static readonly element108: BlockType; - /** - * @remarks - * Represents the meitnerium element in Minecraft Education - * experiences. - * - */ - static readonly element109: BlockType; - /** - * @remarks - * Represents the sodium element in Minecraft Education - * experiences. - * - */ - static readonly element11: BlockType; - /** - * @remarks - * Represents the darmstadtium element in Minecraft Education - * experiences. - * - */ - static readonly element110: BlockType; - /** - * @remarks - * Represents the roentgenium element in Minecraft Education - * experiences. - * - */ - static readonly element111: BlockType; - /** - * @remarks - * Represents the copernicium element in Minecraft Education - * experiences. - * - */ - static readonly element112: BlockType; - /** - * @remarks - * Represents the nihonium element in Minecraft Education - * experiences. - * - */ - static readonly element113: BlockType; - /** - * @remarks - * Represents the flerovium element in Minecraft Education - * experiences. - * - */ - static readonly element114: BlockType; - /** - * @remarks - * Represents the moscovium element in Minecraft Education - * experiences. - * - */ - static readonly element115: BlockType; - /** - * @remarks - * Represents the livermorium element in Minecraft Education - * experiences. - * - */ - static readonly element116: BlockType; - /** - * @remarks - * Represents the tennessine element in Minecraft Education - * experiences. - * - */ - static readonly element117: BlockType; - /** - * @remarks - * Represents the oganesson element in Minecraft Education - * experiences. - * - */ - static readonly element118: BlockType; - /** - * @remarks - * Represents the magnesium element in Minecraft Education - * experiences. - * - */ - static readonly element12: BlockType; - /** - * @remarks - * Represents the aluminum element in Minecraft Education - * experiences. - * - */ - static readonly element13: BlockType; - /** - * @remarks - * Represents the silicon element in Minecraft Education - * experiences. - * - */ - static readonly element14: BlockType; - /** - * @remarks - * Represents the phosphorus element in Minecraft Education - * experiences. - * - */ - static readonly element15: BlockType; - /** - * @remarks - * Represents the sulfur element in Minecraft Education - * experiences. - * - */ - static readonly element16: BlockType; - /** - * @remarks - * Represents the chlorine element in Minecraft Education - * experiences. - * - */ - static readonly element17: BlockType; - /** - * @remarks - * Represents the argon element in Minecraft Education - * experiences. - * - */ - static readonly element18: BlockType; - /** - * @remarks - * Represents the potassium element in Minecraft Education - * experiences. - * - */ - static readonly element19: BlockType; - /** - * @remarks - * Represents the helium element in Minecraft Education - * experiences. - * - */ - static readonly element2: BlockType; - /** - * @remarks - * Represents the calcium element in Minecraft Education - * experiences. - * - */ - static readonly element20: BlockType; - /** - * @remarks - * Represents the scandium element in Minecraft Education - * experiences. - * - */ - static readonly element21: BlockType; - /** - * @remarks - * Represents the titanium element in Minecraft Education - * experiences. - * - */ - static readonly element22: BlockType; - /** - * @remarks - * Represents the vanadium element in Minecraft Education - * experiences. - * - */ - static readonly element23: BlockType; - /** - * @remarks - * Represents the chromium element in Minecraft Education - * experiences. - * - */ - static readonly element24: BlockType; - /** - * @remarks - * Represents the manganese element in Minecraft Education - * experiences. - * - */ - static readonly element25: BlockType; - /** - * @remarks - * Represents the iron element in Minecraft Education - * experiences. - * - */ - static readonly element26: BlockType; - /** - * @remarks - * Represents the cobalt element in Minecraft Education - * experiences. - * - */ - static readonly element27: BlockType; - /** - * @remarks - * Represents the nickel element in Minecraft Education - * experiences. - * - */ - static readonly element28: BlockType; - /** - * @remarks - * Represents the copper element in Minecraft Education - * experiences. - * - */ - static readonly element29: BlockType; - /** - * @remarks - * Represents a lithium element in Minecraft Education - * experiences. - * - */ - static readonly element3: BlockType; - /** - * @remarks - * Represents the zinc element in Minecraft Education - * experiences. - * - */ - static readonly element30: BlockType; - /** - * @remarks - * Represents the gallium element in Minecraft Education - * experiences. - * - */ - static readonly element31: BlockType; - /** - * @remarks - * Represents a germanium element in Minecraft Education - * experiences. - * - */ - static readonly element32: BlockType; - /** - * @remarks - * Represents the arsenic element in Minecraft Education - * experiences. - * - */ - static readonly element33: BlockType; - /** - * @remarks - * Represents the selenium element in Minecraft Education - * experiences. - * - */ - static readonly element34: BlockType; - /** - * @remarks - * Represents the bromine element in Minecraft Education - * experiences. - * - */ - static readonly element35: BlockType; - /** - * @remarks - * Represents the krypton element in Minecraft Education - * experiences. - * - */ - static readonly element36: BlockType; - /** - * @remarks - * Represents the rubidium element in Minecraft Education - * experiences. - * - */ - static readonly element37: BlockType; - /** - * @remarks - * Represents the strontium element in Minecraft Education - * experiences. - * - */ - static readonly element38: BlockType; - /** - * @remarks - * Represents the yttrium element in Minecraft Education - * experiences. - * - */ - static readonly element39: BlockType; - /** - * @remarks - * Represents a beryllium element in Minecraft Education - * experiences. - * - */ - static readonly element4: BlockType; - /** - * @remarks - * Represents the zirconium element in Minecraft Education - * experiences. - * - */ - static readonly element40: BlockType; - /** - * @remarks - * Represents the niobium element in Minecraft Education - * experiences. - * - */ - static readonly element41: BlockType; - /** - * @remarks - * Represents the molybdenum element in Minecraft Education - * experiences. - * - */ - static readonly element42: BlockType; - /** - * @remarks - * Represents the technetium element in Minecraft Education - * experiences. - * - */ - static readonly element43: BlockType; - /** - * @remarks - * Represents the ruthenium element in Minecraft Education - * experiences. - * - */ - static readonly element44: BlockType; - /** - * @remarks - * Represents the rhodium element in Minecraft Education - * experiences. - * - */ - static readonly element45: BlockType; - /** - * @remarks - * Represents the palladium element in Minecraft Education - * experiences. - * - */ - static readonly element46: BlockType; - /** - * @remarks - * Represents the silver element in Minecraft Education - * experiences. - * - */ - static readonly element47: BlockType; - /** - * @remarks - * Represents the cadmium element in Minecraft Education - * experiences. - * - */ - static readonly element48: BlockType; - /** - * @remarks - * Represents the indium element in Minecraft Education - * experiences. - * - */ - static readonly element49: BlockType; - /** - * @remarks - * Represents the boron element in Minecraft Education - * experiences. - * - */ - static readonly element5: BlockType; - /** - * @remarks - * Represents the tin element in Minecraft Education - * experiences. - * - */ - static readonly element50: BlockType; - /** - * @remarks - * Represents the antimony element in Minecraft Education - * experiences. - * - */ - static readonly element51: BlockType; - /** - * @remarks - * Represents the tellurium element in Minecraft Education - * experiences. - * - */ - static readonly element52: BlockType; - /** - * @remarks - * Represents the iodine element in Minecraft Education - * experiences. - * - */ - static readonly element53: BlockType; - /** - * @remarks - * Represents the xenon element in Minecraft Education - * experiences. - * - */ - static readonly element54: BlockType; - /** - * @remarks - * Represents the cesium element in Minecraft Education - * experiences. - * - */ - static readonly element55: BlockType; - /** - * @remarks - * Represents the barium element in Minecraft Education - * experiences. - * - */ - static readonly element56: BlockType; - /** - * @remarks - * Represents the lanthanum element in Minecraft Education - * experiences. - * - */ - static readonly element57: BlockType; - /** - * @remarks - * Represents the cerium element in Minecraft Education - * experiences. - * - */ - static readonly element58: BlockType; - /** - * @remarks - * Represents the praseodymium element in Minecraft Education - * experiences. - * - */ - static readonly element59: BlockType; - /** - * @remarks - * Represents the carbon element in Minecraft Education - * experiences. - * - */ - static readonly element6: BlockType; - /** - * @remarks - * Represents the neodymium element in Minecraft Education - * experiences. - * - */ - static readonly element60: BlockType; - /** - * @remarks - * Represents the promethium element in Minecraft Education - * experiences. - * - */ - static readonly element61: BlockType; - /** - * @remarks - * Represents the samarium element in Minecraft Education - * experiences. - * - */ - static readonly element62: BlockType; - /** - * @remarks - * Represents the europium element in Minecraft Education - * experiences. - * - */ - static readonly element63: BlockType; - /** - * @remarks - * Represents the gadolinium element in Minecraft Education - * experiences. - * - */ - static readonly element64: BlockType; - /** - * @remarks - * Represents a terbium element in Minecraft Education - * experiences. - * - */ - static readonly element65: BlockType; - /** - * @remarks - * Represents the dysprosium element in Minecraft Education - * experiences. - * - */ - static readonly element66: BlockType; - /** - * @remarks - * Represents the holmium element in Minecraft Education - * experiences. - * - */ - static readonly element67: BlockType; - /** - * @remarks - * Represents the erbium element in Minecraft Education - * experiences. - * - */ - static readonly element68: BlockType; - /** - * @remarks - * Represents the thulium element in Minecraft Education - * experiences. - * - */ - static readonly element69: BlockType; - /** - * @remarks - * Represents the nitrogen element in Minecraft Education - * experiences. - * - */ - static readonly element7: BlockType; - /** - * @remarks - * Represents the ytterbium element in Minecraft Education - * experiences. - * - */ - static readonly element70: BlockType; - /** - * @remarks - * Represents the lutetium element in Minecraft Education - * experiences. - * - */ - static readonly element71: BlockType; - /** - * @remarks - * Represents a hafnium element in Minecraft Education - * experiences. - * - */ - static readonly element72: BlockType; - /** - * @remarks - * Represents the tantalum element in Minecraft Education - * experiences. - * - */ - static readonly element73: BlockType; - /** - * @remarks - * Represents the tungsten element in Minecraft Education - * experiences. - * - */ - static readonly element74: BlockType; - /** - * @remarks - * Represents the rhenium element in Minecraft Education - * experiences. - * - */ - static readonly element75: BlockType; - /** - * @remarks - * Represents the osmium element in Minecraft Education - * experiences. - * - */ - static readonly element76: BlockType; - /** - * @remarks - * Represents the iridium element in Minecraft Education - * experiences. - * - */ - static readonly element77: BlockType; - /** - * @remarks - * Represents the platinum element in Minecraft Education - * experiences. - * - */ - static readonly element78: BlockType; - /** - * @remarks - * Represents the gold element in Minecraft Education - * experiences. - * - */ - static readonly element79: BlockType; - /** - * @remarks - * Represents the oxygen element in Minecraft Education - * experiences. - * - */ - static readonly element8: BlockType; - /** - * @remarks - * Represents the mercury element in Minecraft Education - * experiences. - * - */ - static readonly element80: BlockType; - /** - * @remarks - * Represents the thallium element in Minecraft Education - * experiences. - * - */ - static readonly element81: BlockType; - /** - * @remarks - * Represents the lead element in Minecraft Education - * experiences. - * - */ - static readonly element82: BlockType; - /** - * @remarks - * Represents the bismuth element in Minecraft Education - * experiences. - * - */ - static readonly element83: BlockType; - /** - * @remarks - * Represents the polonium element in Minecraft Education - * experiences. - * - */ - static readonly element84: BlockType; - /** - * @remarks - * Represents the astatine element in Minecraft Education - * experiences. - * - */ - static readonly element85: BlockType; - /** - * @remarks - * Represents the radon element in Minecraft Education - * experiences. - * - */ - static readonly element86: BlockType; - /** - * @remarks - * Represents the francium element in Minecraft Education - * experiences. - * - */ - static readonly element87: BlockType; - /** - * @remarks - * Represents the radium element in Minecraft Education - * experiences. - * - */ - static readonly element88: BlockType; - /** - * @remarks - * Represents the actinium element in Minecraft Education - * experiences. - * - */ - static readonly element89: BlockType; - /** - * @remarks - * Represents the fluorine element in Minecraft Education - * experiences. - * - */ - static readonly element9: BlockType; - /** - * @remarks - * Represents the thorium element in Minecraft Education - * experiences. - * - */ - static readonly element90: BlockType; - /** - * @remarks - * Represents the protactinium element in Minecraft Education - * experiences. - * - */ - static readonly element91: BlockType; - /** - * @remarks - * Represents the uranium element in Minecraft Education - * experiences. - * - */ - static readonly element92: BlockType; - /** - * @remarks - * Represents the neptunium element in Minecraft Education - * experiences. - * - */ - static readonly element93: BlockType; - /** - * @remarks - * Represents the plutonium element in Minecraft Education - * experiences. - * - */ - static readonly element94: BlockType; - /** - * @remarks - * Represents the americium element in Minecraft Education - * experiences. - * - */ - static readonly element95: BlockType; - /** - * @remarks - * Represents the curium element in Minecraft Education - * experiences. - * - */ - static readonly element96: BlockType; - /** - * @remarks - * Represents the berkelium element in Minecraft Education - * experiences. - * - */ - static readonly element97: BlockType; - /** - * @remarks - * Represents the californium element in Minecraft Education - * experiences. - * - */ - static readonly element98: BlockType; - /** - * @remarks - * Represents the einsteinium element in Minecraft Education - * experiences. - * - */ - static readonly element99: BlockType; - /** - * @remarks - * Represents a block of emerald within Minecraft. - * - */ - static readonly emeraldBlock: BlockType; - /** - * @remarks - * Represents a block with embedded emerald ore within - * Minecraft. - * - */ - static readonly emeraldOre: BlockType; - /** - * @remarks - * Represents an enchanting table within Minecraft. - * - */ - static readonly enchantingTable: BlockType; - /** - * @remarks - * Represents an end bricks block within Minecraft. - * - */ - static readonly endBricks: BlockType; - /** - * @remarks - * Represents a set of end brick stairs within Minecraft. - * - */ - static readonly endBrickStairs: BlockType; - /** - * @remarks - * Represents an ender chest within Minecraft. - * - */ - static readonly enderChest: BlockType; - /** - * @remarks - * Represents an end gateway within Minecraft. - * - */ - static readonly endGateway: BlockType; - /** - * @remarks - * Represents an end portal block within Minecraft. - * - */ - static readonly endPortal: BlockType; - /** - * @remarks - * Represents an end portal frame within Minecraft. - * - */ - static readonly endPortalFrame: BlockType; - /** - * @remarks - * Represents an end rod within Minecraft. - * - */ - static readonly endRod: BlockType; - /** - * @remarks - * Represents an end stone block within Minecraft. - * - */ - static readonly endStone: BlockType; - /** - * @remarks - * Represents a block of exposed copper within Minecraft. - * - */ - static readonly exposedCopper: BlockType; - /** - * @remarks - * Represents a block of exposed cut copper within Minecraft. - * - */ - static readonly exposedCutCopper: BlockType; - /** - * @remarks - * Represents a slab of exposed cut copper within Minecraft. - * - */ - static readonly exposedCutCopperSlab: BlockType; - /** - * @remarks - * Represents a set of exposed cut copper stairs within - * Minecraft. - * - */ - static readonly exposedCutCopperStairs: BlockType; - /** - * @remarks - * Represents a double slab of exposed cut copper within - * Minecraft. - * - */ - static readonly exposedDoubleCutCopperSlab: BlockType; - /** - * @remarks - * Represents a farmland block within Minecraft. - * - */ - static readonly farmland: BlockType; - /** - * @remarks - * Represents a fence gate within Minecraft. - * - */ - static readonly fenceGate: BlockType; - /** - * @remarks - * Represents a fire within Minecraft. - * - */ - static readonly fire: BlockType; - static readonly fireCoral: BlockType; - /** - * @remarks - * Represents a fletching table within Minecraft. - * - */ - static readonly fletchingTable: BlockType; - /** - * @remarks - * Represents a flowering azalea plant within Minecraft. - * - */ - static readonly floweringAzalea: BlockType; - /** - * @remarks - * Represents a flower pot within Minecraft. - * - */ - static readonly flowerPot: BlockType; - /** - * @remarks - * Represents flowing lava within Minecraft. - * - */ - static readonly flowingLava: BlockType; - /** - * @remarks - * Represents flowing water within Minecraft. - * - */ - static readonly flowingWater: BlockType; - /** - * @remarks - * Represents a frame within Minecraft. - * - */ - static readonly frame: BlockType; - static readonly frogSpawn: BlockType; - /** - * @remarks - * Represents a frosted ice block within Minecraft. - * - */ - static readonly frostedIce: BlockType; - /** - * @remarks - * Represents a furnace within Minecraft. - * - */ - static readonly furnace: BlockType; - /** - * @remarks - * Represents a block of gilded blackstone within Minecraft. - * - */ - static readonly gildedBlackstone: BlockType; - /** - * @remarks - * Represents a glass block within Minecraft. - * - */ - static readonly glass: BlockType; - /** - * @remarks - * Represents a pane of glass within Minecraft. - * - */ - static readonly glassPane: BlockType; - /** - * @remarks - * Represents a glowing frame within Minecraft. - * - */ - static readonly glowFrame: BlockType; - /** - * @remarks - * Represents a glowing obsidian block within Minecraft. - * - */ - static readonly glowingobsidian: BlockType; - /** - * @remarks - * Represents glow lichen within Minecraft. - * - */ - static readonly glowLichen: BlockType; - /** - * @remarks - * Represents a block of glowstone within Minecraft. - * - */ - static readonly glowstone: BlockType; - /** - * @remarks - * Represents a gold block within Minecraft. - * - */ - static readonly goldBlock: BlockType; - /** - * @remarks - * Represents a golden rail element within Minecraft. - * - */ - static readonly goldenRail: BlockType; - /** - * @remarks - * Represents a block with embedded gold ore within Minecraft. - * - */ - static readonly goldOre: BlockType; - /** - * @remarks - * Represents a set of granite stairs within Minecraft. - * - */ - static readonly graniteStairs: BlockType; - /** - * @remarks - * Represents a block of dirt and grass within Minecraft. - * - */ - static readonly grass: BlockType; - /** - * @remarks - * Represents a block of dirt and grass with a path within - * Minecraft. - * - */ - static readonly grassPath: BlockType; - /** - * @remarks - * Represents a block of gravel within Minecraft. - * - */ - static readonly gravel: BlockType; - /** - * @remarks - * Represents a gray-colored candle within Minecraft. - * - */ - static readonly grayCandle: BlockType; - /** - * @remarks - * Represents a cake with gray-colored candle within Minecraft. - * - */ - static readonly grayCandleCake: BlockType; - static readonly grayCarpet: BlockType; - static readonly grayConcrete: BlockType; - /** - * @remarks - * Represents a gray-colored block of glazed terracotta within - * Minecraft. - * - */ - static readonly grayGlazedTerracotta: BlockType; - static readonly grayShulkerBox: BlockType; - static readonly grayWool: BlockType; - /** - * @remarks - * Represents a green-colored candle within Minecraft. - * - */ - static readonly greenCandle: BlockType; - /** - * @remarks - * Represents a green-colored candle cake within Minecraft. - * - */ - static readonly greenCandleCake: BlockType; - static readonly greenCarpet: BlockType; - static readonly greenConcrete: BlockType; - /** - * @remarks - * Represents a green block of glazed terracotta within - * Minecraft. - * - */ - static readonly greenGlazedTerracotta: BlockType; - static readonly greenShulkerBox: BlockType; - static readonly greenWool: BlockType; - /** - * @remarks - * Represents a grindstone within Minecraft. - * - */ - static readonly grindstone: BlockType; - /** - * @remarks - * Represents a set of hanging roots within Minecraft. - * - */ - static readonly hangingRoots: BlockType; - /** - * @remarks - * Represents a block of hardened clay within Minecraft. - * - */ - static readonly hardenedClay: BlockType; - /** - * @remarks - * Represents a block of hard glass within Minecraft. - * - */ - static readonly hardGlass: BlockType; - /** - * @remarks - * Represents a pane of hard glass within Minecraft. - * - */ - static readonly hardGlassPane: BlockType; - /** - * @remarks - * Represents a stained hard glass block within Minecraft. - * - */ - static readonly hardStainedGlass: BlockType; - /** - * @remarks - * Represents a stained pane of hard glass within Minecraft. - * - */ - static readonly hardStainedGlassPane: BlockType; - /** - * @remarks - * Represents a block of hay within Minecraft. - * - */ - static readonly hayBlock: BlockType; - /** - * @remarks - * Represents a heavy weighted pressure plate within Minecraft. - * - */ - static readonly heavyWeightedPressurePlate: BlockType; - /** - * @remarks - * Represents a block of honey within Minecraft. - * - */ - static readonly honeyBlock: BlockType; - /** - * @remarks - * Represents a honeycomb block within Minecraft. - * - */ - static readonly honeycombBlock: BlockType; - /** - * @remarks - * Represents a hopper within Minecraft. - * - */ - static readonly hopper: BlockType; - static readonly hornCoral: BlockType; - /** - * @remarks - * Represents a block of ice within Minecraft. - * - */ - static readonly ice: BlockType; - /** - * @remarks - * Represents an infested block of deepslate within Minecraft. - * - */ - static readonly infestedDeepslate: BlockType; - /** - * @remarks - * Represents an information update block within Minecraft. - * - */ - static readonly infoUpdate: BlockType; - /** - * @remarks - * Represents an information update block within Minecraft. - * - */ - static readonly infoUpdate2: BlockType; - /** - * @remarks - * Represents an invisible boundary bedrock block within - * Minecraft. - * - */ - static readonly invisibleBedrock: BlockType; - /** - * @remarks - * Represents iron bars within Minecraft. - * - */ - static readonly ironBars: BlockType; - /** - * @remarks - * Represents a block of iron within Minecraft. - * - */ - static readonly ironBlock: BlockType; - /** - * @remarks - * Represents an iron door within Minecraft. - * - */ - static readonly ironDoor: BlockType; - /** - * @remarks - * Represents a block with embedded iron ore within Minecraft. - * - */ - static readonly ironOre: BlockType; - /** - * @remarks - * Represents an iron trapdoor within Minecraft. - * - */ - static readonly ironTrapdoor: BlockType; - /** - * @remarks - * Represents a jigsaw within Minecraft. - * - */ - static readonly jigsaw: BlockType; - /** - * @remarks - * Represents a jukebox within Minecraft. - * - */ - static readonly jukebox: BlockType; - /** - * @remarks - * Represents jungle wood button within Minecraft. - * - */ - static readonly jungleButton: BlockType; - /** - * @remarks - * Represents a jungle wood door within Minecraft. - * - */ - static readonly jungleDoor: BlockType; - static readonly jungleFence: BlockType; - /** - * @remarks - * Represents a jungle wood fence gate within Minecraft. - * - */ - static readonly jungleFenceGate: BlockType; - static readonly jungleHangingSign: BlockType; - static readonly jungleLog: BlockType; - /** - * @remarks - * Represents a jungle wood pressure plate within Minecraft. - * - */ - static readonly junglePressurePlate: BlockType; - /** - * @remarks - * Represents a set of jungle wood stairs within Minecraft. - * - */ - static readonly jungleStairs: BlockType; - /** - * @remarks - * Represents a jungle wood standing sign within Minecraft. - * - */ - static readonly jungleStandingSign: BlockType; - /** - * @remarks - * Represents a jungle wood trapdoor within Minecraft. - * - */ - static readonly jungleTrapdoor: BlockType; - /** - * @remarks - * Represents a jungle wood wall sign within Minecraft. - * - */ - static readonly jungleWallSign: BlockType; - /** - * @remarks - * Represents a set of kelp within Minecraft. - * - */ - static readonly kelp: BlockType; - /** - * @remarks - * Represents a ladder within Minecraft. - * - */ - static readonly ladder: BlockType; - /** - * @remarks - * Represents a lantern within Minecraft. - * - */ - static readonly lantern: BlockType; - /** - * @remarks - * Represents a block of lapis lazuli within Minecraft. - * - */ - static readonly lapisBlock: BlockType; - /** - * @remarks - * Represents a block with embedded lapis lazuli within - * Minecraft. - * - */ - static readonly lapisOre: BlockType; - /** - * @remarks - * Represents a bud of large amethyst within Minecraft. - * - */ - static readonly largeAmethystBud: BlockType; - /** - * @remarks - * Represents lava within Minecraft. - * - */ - static readonly lava: BlockType; - /** - * @remarks - * Represents a set of leaves within Minecraft. - * - */ - static readonly leaves: BlockType; - /** - * @remarks - * Represents an updated set of leaves within Minecraft. - * - */ - static readonly leaves2: BlockType; - /** - * @remarks - * Represents a lectern within Minecraft. - * - */ - static readonly lectern: BlockType; - /** - * @remarks - * Represents a lever within Minecraft. - * - */ - static readonly lever: BlockType; - /** - * @remarks - * Represents a block of light within Minecraft. - * - */ - static readonly lightBlock: BlockType; - /** - * @remarks - * Represents a light blue candle within Minecraft. - * - */ - static readonly lightBlueCandle: BlockType; - /** - * @remarks - * Represents a light blue candle cake within Minecraft. - * - */ - static readonly lightBlueCandleCake: BlockType; - static readonly lightBlueCarpet: BlockType; - static readonly lightBlueConcrete: BlockType; - /** - * @remarks - * Represents a light blue block of glazed terracotta within - * Minecraft. - * - */ - static readonly lightBlueGlazedTerracotta: BlockType; - static readonly lightBlueShulkerBox: BlockType; - static readonly lightBlueWool: BlockType; - /** - * @remarks - * Represents a light gray candle within Minecraft. - * - */ - static readonly lightGrayCandle: BlockType; - /** - * @remarks - * Represents a light gray candle cake within Minecraft. - * - */ - static readonly lightGrayCandleCake: BlockType; - static readonly lightGrayCarpet: BlockType; - static readonly lightGrayConcrete: BlockType; - static readonly lightGrayShulkerBox: BlockType; - static readonly lightGrayWool: BlockType; - /** - * @remarks - * Represents a lightning rod within Minecraft. - * - */ - static readonly lightningRod: BlockType; - /** - * @remarks - * Represents a light weighted pressure plate within Minecraft. - * - */ - static readonly lightWeightedPressurePlate: BlockType; - /** - * @remarks - * Represents a lime candle within Minecraft. - * - */ - static readonly limeCandle: BlockType; - /** - * @remarks - * Represents a lime-colored candle cake within Minecraft. - * - */ - static readonly limeCandleCake: BlockType; - static readonly limeCarpet: BlockType; - static readonly limeConcrete: BlockType; - /** - * @remarks - * Represents a lime-colored block of glazed terracotta within - * Minecraft. - * - */ - static readonly limeGlazedTerracotta: BlockType; - static readonly limeShulkerBox: BlockType; - static readonly limeWool: BlockType; - /** - * @remarks - * Represents a lit blast furnace within Minecraft. - * - */ - static readonly litBlastFurnace: BlockType; - /** - * @remarks - * Represents lit deepslate redstone ore within Minecraft. - * - */ - static readonly litDeepslateRedstoneOre: BlockType; - /** - * @remarks - * Represents a lit furnace within Minecraft. - * - */ - static readonly litFurnace: BlockType; - /** - * @remarks - * Represents a lit pumpkin within Minecraft. - * - */ - static readonly litPumpkin: BlockType; - /** - * @remarks - * Represents a lit redstone lamp within Minecraft. - * - */ - static readonly litRedstoneLamp: BlockType; - /** - * @remarks - * Represents lit redstone ore within Minecraft. - * - */ - static readonly litRedstoneOre: BlockType; - /** - * @remarks - * Represents a lit smoker within Minecraft. - * - */ - static readonly litSmoker: BlockType; - /** - * @remarks - * Represents a lodestone within Minecraft. - * - */ - static readonly lodestone: BlockType; - /** - * @remarks - * Represents a loom within Minecraft. - * - */ - static readonly loom: BlockType; - /** - * @remarks - * Represents a magenta candle within Minecraft. - * - */ - static readonly magentaCandle: BlockType; - /** - * @remarks - * Represents a magenta candle cake within Minecraft. - * - */ - static readonly magentaCandleCake: BlockType; - static readonly magentaCarpet: BlockType; - static readonly magentaConcrete: BlockType; - /** - * @remarks - * Represents a block of magenta-colored glazed terracotta - * within Minecraft. - * - */ - static readonly magentaGlazedTerracotta: BlockType; - static readonly magentaShulkerBox: BlockType; - static readonly magentaWool: BlockType; - /** - * @remarks - * Represents magma within Minecraft. - * - */ - static readonly magma: BlockType; - static readonly mangroveButton: BlockType; - static readonly mangroveDoor: BlockType; - static readonly mangroveDoubleSlab: BlockType; - static readonly mangroveFence: BlockType; - static readonly mangroveFenceGate: BlockType; - static readonly mangroveHangingSign: BlockType; - static readonly mangroveLeaves: BlockType; - static readonly mangroveLog: BlockType; - static readonly mangrovePlanks: BlockType; - static readonly mangrovePressurePlate: BlockType; - static readonly mangrovePropagule: BlockType; - static readonly mangroveRoots: BlockType; - static readonly mangroveSlab: BlockType; - static readonly mangroveStairs: BlockType; - static readonly mangroveStandingSign: BlockType; - static readonly mangroveTrapdoor: BlockType; - static readonly mangroveWallSign: BlockType; - static readonly mangroveWood: BlockType; - /** - * @remarks - * Represents a medium-sized bud of amethyst within Minecraft. - * - */ - static readonly mediumAmethystBud: BlockType; - /** - * @remarks - * Represents a block of melon within Minecraft. - * - */ - static readonly melonBlock: BlockType; - /** - * @remarks - * Represents a stem of melon within Minecraft. - * - */ - static readonly melonStem: BlockType; - /** - * @remarks - * Represents a mob spawner within Minecraft. - * - */ - static readonly mobSpawner: BlockType; - /** - * @remarks - * Represents a monster egg within Minecraft. - * - */ - static readonly monsterEgg: BlockType; - /** - * @remarks - * Represents a block of moss within Minecraft. - * - */ - static readonly mossBlock: BlockType; - /** - * @remarks - * Represents a carpet of moss within Minecraft. - * - */ - static readonly mossCarpet: BlockType; - /** - * @remarks - * Represents a block of cobblestone with moss within - * Minecraft. - * - */ - static readonly mossyCobblestone: BlockType; - /** - * @remarks - * Represents a set of mossy cobblestone stairs within - * Minecraft. - * - */ - static readonly mossyCobblestoneStairs: BlockType; - /** - * @remarks - * Represents a set of mossy stone brick stairs within - * Minecraft. - * - */ - static readonly mossyStoneBrickStairs: BlockType; - static readonly movingBlock: BlockType; - static readonly mud: BlockType; - static readonly mudBrickDoubleSlab: BlockType; - static readonly mudBricks: BlockType; - static readonly mudBrickSlab: BlockType; - static readonly mudBrickStairs: BlockType; - static readonly mudBrickWall: BlockType; - static readonly muddyMangroveRoots: BlockType; - /** - * @remarks - * Represents a mycelium plant within Minecraft. - * - */ - static readonly mycelium: BlockType; - /** - * @remarks - * Represents a nether brick block within Minecraft. - * - */ - static readonly netherBrick: BlockType; - /** - * @remarks - * Represents a nether brick fence within Minecraft. - * - */ - static readonly netherBrickFence: BlockType; - /** - * @remarks - * Represents a set of nether brick stairs within Minecraft. - * - */ - static readonly netherBrickStairs: BlockType; - /** - * @remarks - * Represents a block of nether with embedded gold ore within - * Minecraft. - * - */ - static readonly netherGoldOre: BlockType; - /** - * @remarks - * Represents a block of netherite within Minecraft. - * - */ - static readonly netheriteBlock: BlockType; - /** - * @remarks - * Represents a block of netherrack within Minecraft. - * - */ - static readonly netherrack: BlockType; - /** - * @remarks - * Represents a nether rock within Minecraft. - * - */ - static readonly netherreactor: BlockType; - /** - * @remarks - * Represents nether sprouts within Minecraft. - * - */ - static readonly netherSprouts: BlockType; - /** - * @remarks - * Represents nether wart within Minecraft. - * - */ - static readonly netherWart: BlockType; - /** - * @remarks - * Represents a block of nether wart within Minecraft. - * - */ - static readonly netherWartBlock: BlockType; - /** - * @remarks - * Represents a standard set of stone stairs within Minecraft. - * - */ - static readonly normalStoneStairs: BlockType; - /** - * @remarks - * Represents a note block within Minecraft. - * - */ - static readonly noteblock: BlockType; - static readonly oakFence: BlockType; - static readonly oakHangingSign: BlockType; - static readonly oakLog: BlockType; - /** - * @remarks - * Represents a set of oak stairs within Minecraft. - * - */ - static readonly oakStairs: BlockType; - /** - * @remarks - * Represents an observer within Minecraft. - * - */ - static readonly observer: BlockType; - /** - * @remarks - * Represents an obsidian block within Minecraft. - * - */ - static readonly obsidian: BlockType; - static readonly ochreFroglight: BlockType; - /** - * @remarks - * Represents an orange candle within Minecraft. - * - */ - static readonly orangeCandle: BlockType; - /** - * @remarks - * Represents an orange candle cake within Minecraft. - * - */ - static readonly orangeCandleCake: BlockType; - static readonly orangeCarpet: BlockType; - static readonly orangeConcrete: BlockType; - /** - * @remarks - * Represents a block of orange-colored glazed terracotta - * within Minecraft. - * - */ - static readonly orangeGlazedTerracotta: BlockType; - static readonly orangeShulkerBox: BlockType; - static readonly orangeWool: BlockType; - /** - * @remarks - * Represents a block of oxidized copper within Minecraft. - * - */ - static readonly oxidizedCopper: BlockType; - /** - * @remarks - * Represents a block of oxidized cut copper within Minecraft. - * - */ - static readonly oxidizedCutCopper: BlockType; - /** - * @remarks - * Represents a slab of oxidized cut copper within Minecraft. - * - */ - static readonly oxidizedCutCopperSlab: BlockType; - /** - * @remarks - * Represents a set of oxidized cut copper stairs within - * Minecraft. - * - */ - static readonly oxidizedCutCopperStairs: BlockType; - /** - * @remarks - * Represents a double slab of oxidized cut copper within - * Minecraft. - * - */ - static readonly oxidizedDoubleCutCopperSlab: BlockType; - /** - * @remarks - * Represents a block of packed ice within Minecraft. - * - */ - static readonly packedIce: BlockType; - static readonly packedMud: BlockType; - static readonly pearlescentFroglight: BlockType; - /** - * @remarks - * Represents a pink candle within Minecraft. - * - */ - static readonly pinkCandle: BlockType; - /** - * @remarks - * Represents a pink candle cake within Minecraft. - * - */ - static readonly pinkCandleCake: BlockType; - static readonly pinkCarpet: BlockType; - static readonly pinkConcrete: BlockType; - /** - * @remarks - * Represents a pink-colored block of glazed terracotta within - * Minecraft. - * - */ - static readonly pinkGlazedTerracotta: BlockType; - static readonly pinkPetals: BlockType; - static readonly pinkShulkerBox: BlockType; - static readonly pinkWool: BlockType; - /** - * @remarks - * Represents a piston within Minecraft. - * - */ - static readonly piston: BlockType; - static readonly pistonArmCollision: BlockType; - static readonly pitcherCrop: BlockType; - static readonly pitcherPlant: BlockType; - /** - * @remarks - * Represents a set of planks within Minecraft. - * - */ - static readonly planks: BlockType; - /** - * @remarks - * Represents podzol within Minecraft. - * - */ - static readonly podzol: BlockType; - /** - * @remarks - * Represents pointed dripstone within Minecraft. - * - */ - static readonly pointedDripstone: BlockType; - /** - * @remarks - * Represents a set of polished andesite stairs within - * Minecraft. - * - */ - static readonly polishedAndesiteStairs: BlockType; - /** - * @remarks - * Represents a block of polished basalt within Minecraft. - * - */ - static readonly polishedBasalt: BlockType; - /** - * @remarks - * Represents a block of polished blackstone within Minecraft. - * - */ - static readonly polishedBlackstone: BlockType; - /** - * @remarks - * Represents a double slab of polished blackstone brick within - * Minecraft. - * - */ - static readonly polishedBlackstoneBrickDoubleSlab: BlockType; - /** - * @remarks - * Represents a block of polished blackstone bricks within - * Minecraft. - * - */ - static readonly polishedBlackstoneBricks: BlockType; - /** - * @remarks - * Represents a slab of polished blackstone within Minecraft. - * - */ - static readonly polishedBlackstoneBrickSlab: BlockType; - /** - * @remarks - * Represents a set of polished blackstone brick stairs within - * Minecraft. - * - */ - static readonly polishedBlackstoneBrickStairs: BlockType; - /** - * @remarks - * Represents a polished blackstone brick wall within - * Minecraft. - * - */ - static readonly polishedBlackstoneBrickWall: BlockType; - /** - * @remarks - * Represents a polished blackstone button within Minecraft. - * - */ - static readonly polishedBlackstoneButton: BlockType; - /** - * @remarks - * Represents a double slab of polished blackstone within - * Minecraft. - * - */ - static readonly polishedBlackstoneDoubleSlab: BlockType; - /** - * @remarks - * Represents a polished blackstone pressure plate within - * Minecraft. - * - */ - static readonly polishedBlackstonePressurePlate: BlockType; - /** - * @remarks - * Represents a slab of polished blackstone within Minecraft. - * - */ - static readonly polishedBlackstoneSlab: BlockType; - /** - * @remarks - * Represents a set of polished blackstone stairs within - * Minecraft. - * - */ - static readonly polishedBlackstoneStairs: BlockType; - /** - * @remarks - * Represents a polished blackstone wall within Minecraft. - * - */ - static readonly polishedBlackstoneWall: BlockType; - /** - * @remarks - * Represents a block of polished deepslate within Minecraft. - * - */ - static readonly polishedDeepslate: BlockType; - /** - * @remarks - * Represents a double slab of polished deepslate within - * Minecraft. - * - */ - static readonly polishedDeepslateDoubleSlab: BlockType; - /** - * @remarks - * Represents a slab of polished deepslate within Minecraft. - * - */ - static readonly polishedDeepslateSlab: BlockType; - /** - * @remarks - * Represents a set of polished deepslate stairs within - * Minecraft. - * - */ - static readonly polishedDeepslateStairs: BlockType; - /** - * @remarks - * Represents a wall of polished deepslate within Minecraft. - * - */ - static readonly polishedDeepslateWall: BlockType; - /** - * @remarks - * Represents a block of polished diorite within Minecraft. - * - */ - static readonly polishedDioriteStairs: BlockType; - /** - * @remarks - * Represents a set of polished granite stairs within - * Minecraft. - * - */ - static readonly polishedGraniteStairs: BlockType; - /** - * @remarks - * Represents a portal within Minecraft. - * - */ - static readonly portal: BlockType; - /** - * @remarks - * Represents a set of potatoes within Minecraft. - * - */ - static readonly potatoes: BlockType; - /** - * @remarks - * Represents a block of powder snow within Minecraft. - * - */ - static readonly powderSnow: BlockType; - /** - * @remarks - * Represents a powered comparator within Minecraft. - * - */ - static readonly poweredComparator: BlockType; - /** - * @remarks - * Represents a powered repeater within Minecraft. - * - */ - static readonly poweredRepeater: BlockType; - /** - * @remarks - * Represents a block of prismarine within Minecraft. - * - */ - static readonly prismarine: BlockType; - /** - * @remarks - * Represents a set of prismarine brick stairs within - * Minecraft. - * - */ - static readonly prismarineBricksStairs: BlockType; - /** - * @remarks - * Represents a set of prismarine stairs within Minecraft. - * - */ - static readonly prismarineStairs: BlockType; - /** - * @remarks - * Represents a pumpkin within Minecraft. - * - */ - static readonly pumpkin: BlockType; - /** - * @remarks - * Represents a pumpkin stem within Minecraft. - * - */ - static readonly pumpkinStem: BlockType; - /** - * @remarks - * Represents a purple candle within Minecraft. - * - */ - static readonly purpleCandle: BlockType; - /** - * @remarks - * Represents a purple colored candle cake within Minecraft. - * - */ - static readonly purpleCandleCake: BlockType; - static readonly purpleCarpet: BlockType; - static readonly purpleConcrete: BlockType; - /** - * @remarks - * Represents a purple-colored block of glazed terracotta - * within Minecraft. - * - */ - static readonly purpleGlazedTerracotta: BlockType; - static readonly purpleShulkerBox: BlockType; - static readonly purpleWool: BlockType; - /** - * @remarks - * Represents a purpur block within Minecraft. - * - */ - static readonly purpurBlock: BlockType; - /** - * @remarks - * Represents a set of purpur stairs within Minecraft. - * - */ - static readonly purpurStairs: BlockType; - /** - * @remarks - * Represents a block of solid quartz within Minecraft. - * - */ - static readonly quartzBlock: BlockType; - /** - * @remarks - * Represents a block of solid quartz bricks within Minecraft. - * - */ - static readonly quartzBricks: BlockType; - /** - * @remarks - * Represents a block with embedded quartz ore within - * Minecraft. - * - */ - static readonly quartzOre: BlockType; - /** - * @remarks - * Represents a set of quartz stairs within Minecraft. - * - */ - static readonly quartzStairs: BlockType; - /** - * @remarks - * Represents a set of rails within Minecraft. - * - */ - static readonly rail: BlockType; - /** - * @remarks - * Represents a block of raw copper within Minecraft. - * - */ - static readonly rawCopperBlock: BlockType; - /** - * @remarks - * Represents a block of raw gold within Minecraft. - * - */ - static readonly rawGoldBlock: BlockType; - /** - * @remarks - * Represents a block of raw iron within Minecraft. - * - */ - static readonly rawIronBlock: BlockType; - /** - * @remarks - * Represents a red candle within Minecraft. - * - */ - static readonly redCandle: BlockType; - /** - * @remarks - * Represents a red candle cake within Minecraft. - * - */ - static readonly redCandleCake: BlockType; - static readonly redCarpet: BlockType; - static readonly redConcrete: BlockType; - /** - * @remarks - * Represents a red flower within Minecraft. - * - */ - static readonly redFlower: BlockType; - /** - * @remarks - * Represents a red-colored block of glazed terracotta within - * Minecraft. - * - */ - static readonly redGlazedTerracotta: BlockType; - /** - * @remarks - * Represents a red mushroom within Minecraft. - * - */ - static readonly redMushroom: BlockType; - /** - * @remarks - * Represents a block of red mushroom within Minecraft. - * - */ - static readonly redMushroomBlock: BlockType; - /** - * @remarks - * Represents a block of red nether brick within Minecraft. - * - */ - static readonly redNetherBrick: BlockType; - /** - * @remarks - * Represents a set of red nether brick stairs within - * Minecraft. - * - */ - static readonly redNetherBrickStairs: BlockType; - /** - * @remarks - * Represents a block of red sandstone within Minecraft. - * - */ - static readonly redSandstone: BlockType; - /** - * @remarks - * Represents a set of red sandstone stairs within Minecraft. - * - */ - static readonly redSandstoneStairs: BlockType; - static readonly redShulkerBox: BlockType; - /** - * @remarks - * Represents a block of redstone within Minecraft. - * - */ - static readonly redstoneBlock: BlockType; - /** - * @remarks - * Represents a redstone lamp within Minecraft. - * - */ - static readonly redstoneLamp: BlockType; - /** - * @remarks - * Represents a block with embedded redstone ore within - * Minecraft. - * - */ - static readonly redstoneOre: BlockType; - /** - * @remarks - * Represents a redstone torch within Minecraft. - * - */ - static readonly redstoneTorch: BlockType; - /** - * @remarks - * Represents a redstone wire within Minecraft. - * - */ - static readonly redstoneWire: BlockType; - static readonly redWool: BlockType; - /** - * @remarks - * Represents reeds within Minecraft. - * - */ - static readonly reeds: BlockType; - static readonly reinforcedDeepslate: BlockType; - /** - * @remarks - * Represents a repeating command block within Minecraft. - * - */ - static readonly repeatingCommandBlock: BlockType; - /** - * @remarks - * Represents a reserved block within Minecraft. - * - */ - static readonly reserved6: BlockType; - /** - * @remarks - * Represents a respawn anchor within Minecraft. - * - */ - static readonly respawnAnchor: BlockType; - /** - * @remarks - * Represents a block of sand within Minecraft. - * - */ - static readonly sand: BlockType; - /** - * @remarks - * Represents a block of sandstone within Minecraft. - * - */ - static readonly sandstone: BlockType; - /** - * @remarks - * Represents a set of sandstone stairs within Minecraft. - * - */ - static readonly sandstoneStairs: BlockType; - /** - * @remarks - * Represents a sapling within Minecraft. - * - */ - static readonly sapling: BlockType; - /** - * @remarks - * Represents a set of scaffolding within Minecraft. - * - */ - static readonly scaffolding: BlockType; - static readonly sculk: BlockType; - static readonly sculkCatalyst: BlockType; - /** - * @remarks - * Represents a sculk sensor within Minecraft. - * - */ - static readonly sculkSensor: BlockType; - static readonly sculkShrieker: BlockType; - static readonly sculkVein: BlockType; - /** - * @remarks - * Represents seagrass within Minecraft. - * - */ - static readonly seagrass: BlockType; - /** - * @remarks - * Represents a sealantern within Minecraft. - * - */ - static readonly seaLantern: BlockType; - /** - * @remarks - * Represents a seapickle within Minecraft. - * - */ - static readonly seaPickle: BlockType; - /** - * @remarks - * Represents a shroom light within Minecraft. - * - */ - static readonly shroomlight: BlockType; - /** - * @remarks - * Represents a silver-colored block of glazed terracotta - * within Minecraft. - * - */ - static readonly silverGlazedTerracotta: BlockType; - /** - * @remarks - * Represents a skull within Minecraft. - * - */ - static readonly skull: BlockType; - /** - * @remarks - * Represents slime within Minecraft. - * - */ - static readonly slime: BlockType; - /** - * @remarks - * Represents a small bud of amethyst within Minecraft. - * - */ - static readonly smallAmethystBud: BlockType; - /** - * @remarks - * Represents a small dripleaf block within Minecraft. - * - */ - static readonly smallDripleafBlock: BlockType; - /** - * @remarks - * Represents a smithing table within Minecraft. - * - */ - static readonly smithingTable: BlockType; - /** - * @remarks - * Represents a smoker within Minecraft. - * - */ - static readonly smoker: BlockType; - /** - * @remarks - * Represents a block of smooth basalt within Minecraft. - * - */ - static readonly smoothBasalt: BlockType; - /** - * @remarks - * Represents a set of smooth quartz stairs within Minecraft. - * - */ - static readonly smoothQuartzStairs: BlockType; - /** - * @remarks - * Represents a set of smooth red sandstone stairs within - * Minecraft. - * - */ - static readonly smoothRedSandstoneStairs: BlockType; - /** - * @remarks - * Represents a set of smooth redstone stairs within Minecraft. - * - */ - static readonly smoothSandstoneStairs: BlockType; - /** - * @remarks - * Represents a smooth stone block within Minecraft. - * - */ - static readonly smoothStone: BlockType; - static readonly snifferEgg: BlockType; - /** - * @remarks - * Represents snow within Minecraft. - * - */ - static readonly snow: BlockType; - /** - * @remarks - * Represents a layer of snow within Minecraft. - * - */ - static readonly snowLayer: BlockType; - /** - * @remarks - * Represents a soul campfire within Minecraft. - * - */ - static readonly soulCampfire: BlockType; - /** - * @remarks - * Represents soul fire within Minecraft. - * - */ - static readonly soulFire: BlockType; - /** - * @remarks - * Represents a soul lantern within Minecraft. - * - */ - static readonly soulLantern: BlockType; - /** - * @remarks - * Represents a block of soul sand within Minecraft. - * - */ - static readonly soulSand: BlockType; - /** - * @remarks - * Represents soul soil within Minecraft. - * - */ - static readonly soulSoil: BlockType; - /** - * @remarks - * Represents a soul torch within Minecraft. - * - */ - static readonly soulTorch: BlockType; - /** - * @remarks - * Represents a sponge within Minecraft. - * - */ - static readonly sponge: BlockType; - /** - * @remarks - * Represents a spore blossom within Minecraft. - * - */ - static readonly sporeBlossom: BlockType; - /** - * @remarks - * Represents a spruce wood button within Minecraft. - * - */ - static readonly spruceButton: BlockType; - /** - * @remarks - * Represents a spruce wood door within Minecraft. - * - */ - static readonly spruceDoor: BlockType; - static readonly spruceFence: BlockType; - /** - * @remarks - * Represents a spruce wood fence gate within Minecraft. - * - */ - static readonly spruceFenceGate: BlockType; - static readonly spruceHangingSign: BlockType; - static readonly spruceLog: BlockType; - /** - * @remarks - * Represents a spruce wood pressure plate within Minecraft. - * - */ - static readonly sprucePressurePlate: BlockType; - /** - * @remarks - * Represents a set of spruce wood stairs within Minecraft. - * - */ - static readonly spruceStairs: BlockType; - /** - * @remarks - * Represents a spruce wood standing sign within Minecraft. - * - */ - static readonly spruceStandingSign: BlockType; - /** - * @remarks - * Represents a spruce wood trapdoor within Minecraft. - * - */ - static readonly spruceTrapdoor: BlockType; - /** - * @remarks - * Represents a spruce wood wall sign within Minecraft. - * - */ - static readonly spruceWallSign: BlockType; - /** - * @remarks - * Represents stained glass within Minecraft. - * - */ - static readonly stainedGlass: BlockType; - /** - * @remarks - * Represents a pane of stained glass within Minecraft. - * - */ - static readonly stainedGlassPane: BlockType; - /** - * @remarks - * Represents a block of stained hardened clay within - * Minecraft. - * - */ - static readonly stainedHardenedClay: BlockType; - /** - * @remarks - * Represents a standing banner within Minecraft. - * - */ - static readonly standingBanner: BlockType; - /** - * @remarks - * Represents a standing sign within Minecraft. - * - */ - static readonly standingSign: BlockType; - /** - * @remarks - * Represents a piston block with a sticky arm within - * Minecraft. - * - */ - static readonly stickyPiston: BlockType; - static readonly stickyPistonArmCollision: BlockType; - /** - * @remarks - * Represents a block of stone within Minecraft. - * - */ - static readonly stone: BlockType; - static readonly stoneBlockSlab: BlockType; - static readonly stoneBlockSlab2: BlockType; - static readonly stoneBlockSlab3: BlockType; - static readonly stoneBlockSlab4: BlockType; - /** - * @remarks - * Represents a block of stone brick within Minecraft. - * - */ - static readonly stonebrick: BlockType; - /** - * @remarks - * Represents a set of stone brick stairs within Minecraft. - * - */ - static readonly stoneBrickStairs: BlockType; - /** - * @remarks - * Represents a stone button within Minecraft. - * - */ - static readonly stoneButton: BlockType; - /** - * @remarks - * Represents a stonecutter within Minecraft. - * - */ - static readonly stonecutter: BlockType; - /** - * @remarks - * Represents a stonecutter block within Minecraft. - * - */ - static readonly stonecutterBlock: BlockType; - /** - * @remarks - * Represents a stone pressure plate within Minecraft. - * - */ - static readonly stonePressurePlate: BlockType; - /** - * @remarks - * Represents a slab of stone within Minecraft. - * - */ - static readonly stoneSlab: BlockType; - /** - * @remarks - * Represents a variant of a slab of stone (#2) within - * Minecraft. - * - */ - static readonly stoneSlab2: BlockType; - /** - * @remarks - * Represents a slab of stone (variant #3) within Minecraft. - * - */ - static readonly stoneSlab3: BlockType; - /** - * @remarks - * Represents a slab of stone (variant #4) within Minecraft. - * - */ - static readonly stoneSlab4: BlockType; - /** - * @remarks - * Represents a set of stone stairs within Minecraft. - * - */ - static readonly stoneStairs: BlockType; - /** - * @remarks - * Represents a stripped acacia log within Minecraft. - * - */ - static readonly strippedAcaciaLog: BlockType; - static readonly strippedBambooBlock: BlockType; - /** - * @remarks - * Represents a stripped birch log within Minecraft. - * - */ - static readonly strippedBirchLog: BlockType; - static readonly strippedCherryLog: BlockType; - static readonly strippedCherryWood: BlockType; - /** - * @remarks - * Represents stripped crimson hyphae within Minecraft. - * - */ - static readonly strippedCrimsonHyphae: BlockType; - /** - * @remarks - * Represents a stripped crimson stem within Minecraft. - * - */ - static readonly strippedCrimsonStem: BlockType; - /** - * @remarks - * Represents a stripped dark oak log within Minecraft. - * - */ - static readonly strippedDarkOakLog: BlockType; - /** - * @remarks - * Represents a stripped jungle log within Minecraft. - * - */ - static readonly strippedJungleLog: BlockType; - static readonly strippedMangroveLog: BlockType; - static readonly strippedMangroveWood: BlockType; - /** - * @remarks - * Represents a stripped oak log within Minecraft. - * - */ - static readonly strippedOakLog: BlockType; - /** - * @remarks - * Represents a stripped spruce log within Minecraft. - * - */ - static readonly strippedSpruceLog: BlockType; - /** - * @remarks - * Represents stripped warped hyphae within Minecraft. - * - */ - static readonly strippedWarpedHyphae: BlockType; - /** - * @remarks - * Represents stripped warped stem within Minecraft. - * - */ - static readonly strippedWarpedStem: BlockType; - /** - * @remarks - * Represents a structure block, which provides for the saving - * and loading of block structures, within Minecraft. + * This property can't be edited in read-only mode. * + * @throws + * Throws if the value is outside the range of 1-255. */ - static readonly structureBlock: BlockType; + amount: number; /** * @remarks - * Represents a structure void within Minecraft. + * Returns whether the item is stackable. An item is considered + * stackable if the item's maximum stack size is greater than 1 + * and the item does not contain any custom data or properties. * */ - static readonly structureVoid: BlockType; - static readonly suspiciousGravel: BlockType; - static readonly suspiciousSand: BlockType; + readonly isStackable: boolean; /** + * @beta * @remarks - * Represents a sweet berry bush within Minecraft. + * Gets or sets whether the item is kept on death. * - */ - static readonly sweetBerryBush: BlockType; - /** - * @remarks - * Represents tall grass within Minecraft. + * This property can't be edited in read-only mode. * */ - static readonly tallgrass: BlockType; + keepOnDeath: boolean; /** + * @beta * @remarks - * Represents a target within Minecraft. + * Gets or sets the item's lock mode. The default value is + * `ItemLockMode.none`. * - */ - static readonly target: BlockType; - /** - * @remarks - * Represents tinted glass within Minecraft. + * This property can't be edited in read-only mode. * */ - static readonly tintedGlass: BlockType; + lockMode: ItemLockMode; /** * @remarks - * Represents a block of TnT within Minecraft. + * The maximum stack size. This value varies depending on the + * type of item. For example, torches have a maximum stack size + * of 64, while eggs have a maximum stack size of 16. * */ - static readonly tnt: BlockType; + readonly maxAmount: number; /** + * @beta * @remarks - * Represents a torch within Minecraft. + * Given name of this stack of items. The name tag is displayed + * when hovering over the item. Setting the name tag to an + * empty string or `undefined` will remove the name tag. * - */ - static readonly torch: BlockType; - static readonly torchflower: BlockType; - static readonly torchflowerCrop: BlockType; - /** - * @remarks - * Represents a trapdoor within Minecraft. + * This property can't be edited in read-only mode. * + * @throws + * Throws if the length exceeds 255 characters. */ - static readonly trapdoor: BlockType; + nameTag?: string; /** * @remarks - * Represents a trapped chest within Minecraft. + * The type of the item. * */ - static readonly trappedChest: BlockType; - static readonly tripWire: BlockType; + readonly 'type': ItemType; /** * @remarks - * Represents a tripwire hook within Minecraft. + * Identifier of the type of items for the stack. If a + * namespace is not specified, 'minecraft:' is assumed. + * Examples include 'wheat' or 'apple'. * */ - static readonly tripwireHook: BlockType; - static readonly tubeCoral: BlockType; + readonly typeId: string; /** * @remarks - * Represents a block of tuff within Minecraft. + * Creates a new instance of a stack of items for use in the + * world. * + * @param itemType + * Type of item to create. See the {@link + * @minecraft/vanilla-data.MinecraftItemTypes} enumeration for + * a list of standard item types in Minecraft experiences. + * @param amount + * Number of items to place in the stack, between 1-255. The + * provided value will be clamped to the item's maximum stack + * size. Note that certain items can only have one item in the + * stack. + * @throws + * Throws if `itemType` is invalid, or if `amount` is outside + * the range of 1-255. */ - static readonly tuff: BlockType; + constructor(itemType: ItemType | string, amount?: number); /** + * @beta * @remarks - * Represents a turtle egg within Minecraft. + * Creates an exact copy of the item stack, including any + * custom data or properties. * + * @returns + * Returns a copy of this item stack. */ - static readonly turtleEgg: BlockType; + clone(): ItemStack; /** + * @beta * @remarks - * Represents a set of twisting vines within Minecraft. + * Get the list of block types this item can break in Adventure + * mode. * - */ - static readonly twistingVines: BlockType; - /** - * @remarks - * Represents an underwater torch within Minecraft. + * This function can't be called in read-only mode. * */ - static readonly underwaterTorch: BlockType; + getCanDestroy(): string[]; /** + * @beta * @remarks - * Represents an undyed shulker box within Minecraft. + * Get the list of block types this item can be placed on in + * Adventure mode. * - */ - static readonly undyedShulkerBox: BlockType; - /** - * @remarks - * Represents an unknown block within Minecraft. + * This function can't be called in read-only mode. * */ - static readonly unknown: BlockType; + getCanPlaceOn(): string[]; /** * @remarks - * Represents an unlit redstone torch within Minecraft. + * Gets a component (that represents additional capabilities) + * for an item stack. * + * @param componentId + * The identifier of the component (e.g., 'minecraft:food') to + * retrieve. If no namespace prefix is specified, 'minecraft:' + * is assumed. If the component is not present on the item + * stack or doesn't exist, undefined is returned. + * @example durability.ts + * ```typescript + * // Get the maximum durability of a custom sword item + * const itemStack = new ItemStack("custom:sword"); + * const durability = itemStack.getComponent("minecraft:durability") as ItemDurabilityComponent; + * const maxDurability = durability.maxDurability; + * ``` */ - static readonly unlitRedstoneTorch: BlockType; + getComponent(componentId: string): ItemComponent | undefined; /** * @remarks - * Represents an unpowered comparator within Minecraft. + * Returns all components that are both present on this item + * stack and supported by the API. * */ - static readonly unpoweredComparator: BlockType; + getComponents(): ItemComponent[]; /** * @remarks - * Represents an unpowered repeater within Minecraft. + * Returns the lore value - a secondary display string - for an + * ItemStack. * + * @returns + * An array of lore lines. If the item does not have lore, + * returns an empty array. */ - static readonly unpoweredRepeater: BlockType; - static readonly verdantFroglight: BlockType; + getLore(): string[]; /** + * @beta * @remarks - * Represents a set of vines within Minecraft. + * Returns a set of tags associated with this item stack. * */ - static readonly vine: BlockType; + getTags(): string[]; /** * @remarks - * Represents a wall banner within Minecraft. + * Returns true if the specified component is present on this + * item stack. * + * @param componentId + * The identifier of the component (e.g., 'minecraft:food') to + * retrieve. If no namespace prefix is specified, 'minecraft:' + * is assumed. */ - static readonly wallBanner: BlockType; + hasComponent(componentId: string): boolean; /** + * @beta * @remarks - * Represents a wall sign within Minecraft. + * Checks whether this item stack has a particular tag + * associated with it. * + * @param tag + * Tag to search for. + * @returns + * True if the Item Stack has the tag associated with it, else + * false. */ - static readonly wallSign: BlockType; + hasTag(tag: string): boolean; /** * @remarks - * Represents a warped button within Minecraft. + * Returns whether this item stack can be stacked with the + * given `itemStack`. This is determined by comparing the item + * type and any custom data and properties associated with the + * item stacks. The amount of each item stack is not taken into + * consideration. * + * @param itemStack + * ItemStack to check stacking compatability with. + * @returns + * True if the Item Stack is stackable with the itemStack + * passed in. */ - static readonly warpedButton: BlockType; + isStackableWith(itemStack: ItemStack): boolean; /** + * @beta * @remarks - * Represents a warped door within Minecraft. + * The list of block types this item can break in Adventure + * mode. The block names are displayed in the item's tooltip. + * Setting the value to undefined will clear the list. * - */ - static readonly warpedDoor: BlockType; - /** - * @remarks - * Represents a double slab of warped within Minecraft. + * This function can't be called in read-only mode. * + * @param blockIdentifiers + * String list of block types that the item can destroy. + * @throws + * Throws if any of the provided block identifiers are invalid. + * @example example.ts + * ```typescript + * // Creates a diamond pickaxe that can destroy cobblestone and obsidian + * const specialPickaxe = new ItemStack("minecraft:diamond_pickaxe"); + * specialPickaxe.setCanDestroy(["minecraft:cobblestone", "minecraft:obsidian"]); + * ``` */ - static readonly warpedDoubleSlab: BlockType; + setCanDestroy(blockIdentifiers?: string[]): void; /** + * @beta * @remarks - * Represents a warped fence within Minecraft. + * The list of block types this item can be placed on in + * Adventure mode. This is only applicable to block items. The + * block names are displayed in the item's tooltip. Setting the + * value to undefined will clear the list. * - */ - static readonly warpedFence: BlockType; - /** - * @remarks - * Represents a warped fence gate within Minecraft. + * This function can't be called in read-only mode. * + * @param blockIdentifiers + * String list of block types that the item can be placed on. + * @throws + * Throws if any of the provided block identifiers are invalid. + * @example example.ts + * ```typescript + * // Creates a gold block that can be placed on grass and dirt + * const specialGoldBlock = new ItemStack("minecraft:gold_block"); + * specialPickaxe.setCanPlaceOn(["minecraft:grass", "minecraft:dirt"]); + * ``` */ - static readonly warpedFenceGate: BlockType; + setCanPlaceOn(blockIdentifiers?: string[]): void; /** * @remarks - * Represents warped fungus within Minecraft. + * Sets the lore value - a secondary display string - for an + * ItemStack. The lore list is cleared if set to an empty + * string or undefined. * - */ - static readonly warpedFungus: BlockType; - static readonly warpedHangingSign: BlockType; - /** - * @remarks - * Represents warped hyphae within Minecraft. + * This function can't be called in read-only mode. * - */ - static readonly warpedHyphae: BlockType; - /** - * @remarks - * Represents warped nylium within Minecraft. + * @param loreList + * List of lore lines. Each element in the list represents a + * new line. The maximum lore line count is 20. The maximum + * lore line length is 50 characters. + * @throws This function can throw errors. + * @example diamondAwesomeSword.ts + * ```typescript + * const diamondAwesomeSword = new mc.ItemStack(mc.MinecraftItemTypes.diamondSword, 1); + * let players = mc.world.getAllPlayers(); * - */ - static readonly warpedNylium: BlockType; - /** - * @remarks - * Represents warped planks within Minecraft. + * diamondAwesomeSword.setLore(["§c§lDiamond Sword of Awesome§r", "+10 coolness", "§p+4 shiny§r"]); * - */ - static readonly warpedPlanks: BlockType; - /** - * @remarks - * Represents a warped pressure plate within Minecraft. + * // hover over/select the item in your inventory to see the lore. + * const inventory = players[0].getComponent("inventory") as mc.EntityInventoryComponent; + * inventory.container.setItem(0, diamondAwesomeSword); * - */ - static readonly warpedPressurePlate: BlockType; - /** - * @remarks - * Represents a set of warped roots within Minecraft. + * let item = inventory.container.getItem(0); * + * if (item) { + * let enchants = item.getComponent("minecraft:enchantments") as mc.ItemEnchantsComponent; + * let knockbackEnchant = new mc.Enchantment("knockback", 3); + * enchants.enchantments.addEnchantment(knockbackEnchant); + * } + * ``` + * @example multilineLore.ts + * ```typescript + * // Set the lore of an item to multiple lines of text + * const itemStack = new ItemStack("minecraft:diamond_sword"); + * itemStack.setLore(["Line 1", "Line 2", "Line 3"]); + * ``` */ - static readonly warpedRoots: BlockType; + setLore(loreList?: string[]): void; /** + * @beta * @remarks - * Represents a slab of warped material within Minecraft. + * Triggers an item type event. For custom items, a number of + * events are defined in an items' definition for key item + * behaviors. * - */ - static readonly warpedSlab: BlockType; - /** - * @remarks - * Represents a set of warped stairs within Minecraft. + * This function can't be called in read-only mode. * + * @param eventName + * Name of the item type event to trigger. If a namespace is + * not specified, minecraft: is assumed. */ - static readonly warpedStairs: BlockType; + triggerEvent(eventName: string): void; +} + +/** + * Contains information related to a chargeable item starting + * to be charged. + */ +export class ItemStartUseAfterEvent { + private constructor(); /** * @remarks - * Represents a warped standing sign within Minecraft. + * The impacted item stack that is starting to be charged. * */ - static readonly warpedStandingSign: BlockType; + readonly itemStack: ItemStack; /** * @remarks - * Represents a warped stem within Minecraft. + * Returns the source entity that triggered this item event. * */ - static readonly warpedStem: BlockType; + readonly source: Player; /** * @remarks - * Represents a warped trapdoor within Minecraft. + * Returns the time, in ticks, for the remaining duration left + * before the charge completes its cycle. * */ - static readonly warpedTrapdoor: BlockType; + readonly useDuration: number; +} + +/** + * Manages callbacks that are connected to the start of + * charging for a chargeable item. + */ +export class ItemStartUseAfterEventSignal { + private constructor(); /** * @remarks - * Represents a warped wall sign within Minecraft. + * Adds a callback that will be called when a chargeable item + * starts charging. * - */ - static readonly warpedWallSign: BlockType; - /** - * @remarks - * Represents a warped wart block within Minecraft. + * This function can't be called in read-only mode. * */ - static readonly warpedWartBlock: BlockType; + subscribe(callback: (arg: ItemStartUseAfterEvent) => void): (arg: ItemStartUseAfterEvent) => void; /** * @remarks - * Represents water within Minecraft. + * Removes a callback from being called when a chargeable item + * starts charging. * - */ - static readonly water: BlockType; - /** - * @remarks - * Represents a water lily within Minecraft. + * This function can't be called in read-only mode. * + * @throws This function can throw errors. */ - static readonly waterlily: BlockType; + unsubscribe(callback: (arg: ItemStartUseAfterEvent) => void): void; +} + +/** + * Contains information related to an item being used on a + * block. This event fires when a player presses the the Use + * Item / Place Block button to successfully use an item or + * place a block. Fires for the first block that is interacted + * with when performing a build action. Note: This event cannot + * be used with Hoe or Axe items. + */ +export class ItemStartUseOnAfterEvent { + private constructor(); /** * @remarks - * Represents a block of waxed copper within Minecraft. + * The block that the item is used on. * */ - static readonly waxedCopper: BlockType; + readonly block: Block; /** * @remarks - * Represents a block of waxed cut copper within Minecraft. + * The face of the block that an item is being used on. * */ - static readonly waxedCutCopper: BlockType; + readonly blockFace: Direction; /** * @remarks - * Represents a slab of waxed cut copper within Minecraft. + * The impacted item stack that is starting to be used. * */ - static readonly waxedCutCopperSlab: BlockType; + readonly itemStack: ItemStack; /** * @remarks - * Represents a set of waxed cut copper stairs within - * Minecraft. + * Returns the source entity that triggered this item event. * */ - static readonly waxedCutCopperStairs: BlockType; + readonly source: Player; +} + +/** + * Manages callbacks that are connected to an item starting + * being used on a block event. + */ +export class ItemStartUseOnAfterEventSignal { + private constructor(); /** * @remarks - * Represents a double slab of waxed cut copper within - * Minecraft. + * Adds a callback that will be called when an item is used on + * a block. + * + * This function can't be called in read-only mode. * */ - static readonly waxedDoubleCutCopperSlab: BlockType; + subscribe(callback: (arg: ItemStartUseOnAfterEvent) => void): (arg: ItemStartUseOnAfterEvent) => void; /** * @remarks - * Represents a block of waxed exposed copper within Minecraft. + * Removes a callback from being called when an item is used on + * a block. * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. */ - static readonly waxedExposedCopper: BlockType; + unsubscribe(callback: (arg: ItemStartUseOnAfterEvent) => void): void; +} + +/** + * Contains information related to a chargeable item has + * finished an items use cycle, or when the player has released + * the use action with the item. + */ +export class ItemStopUseAfterEvent { + private constructor(); /** * @remarks - * Represents a block of waxed exposed cut copper within - * Minecraft. + * The impacted item stack that is stopping being charged. * */ - static readonly waxedExposedCutCopper: BlockType; + readonly itemStack: ItemStack; /** * @remarks - * Represents a slab of waxed exposed cut copper within - * Minecraft. + * Returns the source entity that triggered this item event. * */ - static readonly waxedExposedCutCopperSlab: BlockType; + readonly source: Player; /** * @remarks - * Represents a set of waxed exposed cut copper stairs within - * Minecraft. + * Returns the time, in ticks, for the remaining duration left + * before the charge completes its cycle. * */ - static readonly waxedExposedCutCopperStairs: BlockType; + readonly useDuration: number; +} + +/** + * Manages callbacks that are connected to the stopping of + * charging for an item that has a registered + * minecraft:chargeable component. + */ +export class ItemStopUseAfterEventSignal { + private constructor(); /** * @remarks - * Represents a double slab of waxed exposed cut copper within - * Minecraft. + * Adds a callback that will be called when a chargeable item + * stops charging. + * + * This function can't be called in read-only mode. * */ - static readonly waxedExposedDoubleCutCopperSlab: BlockType; + subscribe(callback: (arg: ItemStopUseAfterEvent) => void): (arg: ItemStopUseAfterEvent) => void; /** * @remarks - * Represents a block of waxed oxidized copper within - * Minecraft. + * Removes a callback from being called when a chargeable item + * stops charging. + * + * This function can't be called in read-only mode. * + * @throws This function can throw errors. */ - static readonly waxedOxidizedCopper: BlockType; + unsubscribe(callback: (arg: ItemStopUseAfterEvent) => void): void; +} + +/** + * Contains information related to an item that has stopped + * being used on a block. This event fires when a player + * successfully uses an item or places a block by pressing the + * Use Item / Place Block button. If multiple blocks are + * placed, this event will only occur once at the beginning of + * the block placement. Note: This event cannot be used with + * Hoe or Axe items. + */ +export class ItemStopUseOnAfterEvent { + private constructor(); /** * @remarks - * Represents a block of waxed oxidized cut copper within - * Minecraft. + * The block that the item is used on. * */ - static readonly waxedOxidizedCutCopper: BlockType; + readonly block: Block; /** * @remarks - * Represents a slab of waxed oxidized cut copper within - * Minecraft. + * The impacted item stack that is being used on a block. * */ - static readonly waxedOxidizedCutCopperSlab: BlockType; + readonly itemStack?: ItemStack; /** * @remarks - * Represents a set of waxed oxidized cut copper stairs within - * Minecraft. + * Returns the source entity that triggered this item event. * */ - static readonly waxedOxidizedCutCopperStairs: BlockType; + readonly source: Player; +} + +/** + * Manages callbacks that are connected to an item stops used + * on a block event. + */ +export class ItemStopUseOnAfterEventSignal { + private constructor(); /** * @remarks - * Represents a double slab of waxed oxidized cut copper within - * Minecraft. + * Adds a callback that will be called when an item stops being + * used on a block. + * + * This function can't be called in read-only mode. * */ - static readonly waxedOxidizedDoubleCutCopperSlab: BlockType; + subscribe(callback: (arg: ItemStopUseOnAfterEvent) => void): (arg: ItemStopUseOnAfterEvent) => void; /** * @remarks - * Represents a block of waxed weathered copper within - * Minecraft. + * Removes a callback from being called when an item is used on + * a block. * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. */ - static readonly waxedWeatheredCopper: BlockType; + unsubscribe(callback: (arg: ItemStopUseOnAfterEvent) => void): void; +} + +/** + * Represents the type of an item - for example, Wool. + */ +export class ItemType { + private constructor(); /** * @remarks - * Represents a block of waxed weathered cut copper within - * Minecraft. + * Returns the identifier of the item type - for example, + * 'minecraft:apple'. * */ - static readonly waxedWeatheredCutCopper: BlockType; + readonly id: string; +} + +/** + * @beta + * Returns the set of item types registered within Minecraft. + */ +export class ItemTypes { + private constructor(); /** * @remarks - * Represents a slab of waxed weathered cut copper within - * Minecraft. + * Returns a specific item type, if available within Minecraft. * */ - static readonly waxedWeatheredCutCopperSlab: BlockType; + static get(itemId: string): ItemType; /** * @remarks - * Represents a set of waxed weathered cut copper stairs within + * Retrieves all available item types registered within * Minecraft. * */ - static readonly waxedWeatheredCutCopperStairs: BlockType; + static getAll(): ItemType[]; +} + +/** + * Contains information related to an item being used. This + * event fires when an item is successfully used by a player. + */ +export class ItemUseAfterEvent { + private constructor(); /** * @remarks - * Represents a double slab of waxed weathered cut copper - * within Minecraft. + * The impacted item stack that is being used. * */ - static readonly waxedWeatheredDoubleCutCopperSlab: BlockType; + itemStack: ItemStack; /** * @remarks - * Represents a block of weathered copper within Minecraft. + * Returns the source entity that triggered this item event. * */ - static readonly weatheredCopper: BlockType; + readonly source: Player; +} + +/** + * Manages callbacks that are connected to an item use event. + */ +export class ItemUseAfterEventSignal { + private constructor(); /** * @remarks - * Represents a block of weathered cut copper within Minecraft. + * Adds a callback that will be called when an item is used. * - */ - static readonly weatheredCutCopper: BlockType; - /** - * @remarks - * Represents a slab of weathered cut copper within Minecraft. + * This function can't be called in read-only mode. * */ - static readonly weatheredCutCopperSlab: BlockType; + subscribe(callback: (arg: ItemUseAfterEvent) => void): (arg: ItemUseAfterEvent) => void; /** * @remarks - * Represents a set of weathered cut copper stairs within - * Minecraft. + * Removes a callback from being called when an item is used. * - */ - static readonly weatheredCutCopperStairs: BlockType; - /** - * @remarks - * Represents a double slab of weathered cut copper within - * Minecraft. + * This function can't be called in read-only mode. * + * @throws This function can throw errors. */ - static readonly weatheredDoubleCutCopperSlab: BlockType; + unsubscribe(callback: (arg: ItemUseAfterEvent) => void): void; +} + +/** + * Contains information related to an item being used. + */ +// @ts-ignore Class inheritance allowed for native defined classes +export class ItemUseBeforeEvent extends ItemUseAfterEvent { + private constructor(); /** * @remarks - * Represents a web within Minecraft. + * If set to true, this will cancel the item use behavior. * */ - static readonly web: BlockType; + cancel: boolean; +} + +/** + * Manages callbacks that fire before an item is used. + */ +export class ItemUseBeforeEventSignal { + private constructor(); /** * @remarks - * Represents a set of weeping vines within Minecraft. + * Adds a callback that will be called before an item is used. + * + * This function can't be called in read-only mode. * */ - static readonly weepingVines: BlockType; + subscribe(callback: (arg: ItemUseBeforeEvent) => void): (arg: ItemUseBeforeEvent) => void; /** * @remarks - * Represents wheat within Minecraft. + * Removes a callback from being called before an item is used. * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. */ - static readonly wheat: BlockType; + unsubscribe(callback: (arg: ItemUseBeforeEvent) => void): void; +} + +/** + * Contains information related to an item being used on a + * block. This event fires when an item is successfully used on + * a block by a player. + */ +export class ItemUseOnAfterEvent { + private constructor(); /** * @remarks - * Represents a white candle within Minecraft. + * The block that the item is used on. * */ - static readonly whiteCandle: BlockType; + readonly block: Block; /** * @remarks - * Represents a white candle cake within Minecraft. + * The face of the block that an item is being used on. * */ - static readonly whiteCandleCake: BlockType; - static readonly whiteCarpet: BlockType; - static readonly whiteConcrete: BlockType; + readonly blockFace: Direction; /** * @remarks - * Represents a block of white glazed terracotta within - * Minecraft. + * Location relative to the bottom north-west corner of the + * block where the item is placed. * */ - static readonly whiteGlazedTerracotta: BlockType; - static readonly whiteShulkerBox: BlockType; - static readonly whiteWool: BlockType; + readonly faceLocation: Vector3; /** * @remarks - * Represents a wither rose within Minecraft. + * The impacted item stack that is being used on a block. * */ - static readonly witherRose: BlockType; + readonly itemStack: ItemStack; /** * @remarks - * Represents a block of wood within Minecraft. + * Returns the source entity that triggered this item event. * */ - static readonly wood: BlockType; + readonly source: Player; +} + +/** + * Manages callbacks that are connected to an item being used + * on a block event. + */ +export class ItemUseOnAfterEventSignal { + private constructor(); /** * @remarks - * Represents a wooden button within Minecraft. + * Adds a callback that will be called when an item is used on + * a block. + * + * This function can't be called in read-only mode. * */ - static readonly woodenButton: BlockType; + subscribe(callback: (arg: ItemUseOnAfterEvent) => void): (arg: ItemUseOnAfterEvent) => void; /** * @remarks - * Represents a wooden door within Minecraft. + * Removes a callback from being called when an item is used on + * a block. + * + * This function can't be called in read-only mode. * + * @throws This function can throw errors. */ - static readonly woodenDoor: BlockType; + unsubscribe(callback: (arg: ItemUseOnAfterEvent) => void): void; +} + +/** + * Contains information related to an item being used on a + * block. + */ +// @ts-ignore Class inheritance allowed for native defined classes +export class ItemUseOnBeforeEvent extends ItemUseOnAfterEvent { + private constructor(); /** * @remarks - * Represents a wooden pressure plate within Minecraft. + * If set to true, this will cancel the item use behavior. * */ - static readonly woodenPressurePlate: BlockType; + cancel: boolean; +} + +/** + * Manages callbacks that fire before an item being used on a + * block event. + */ +export class ItemUseOnBeforeEventSignal { + private constructor(); /** * @remarks - * Represents a wooden slab within Minecraft. + * Adds a callback that will be called before an item is used + * on a block. + * + * This function can't be called in read-only mode. * */ - static readonly woodenSlab: BlockType; + subscribe(callback: (arg: ItemUseOnBeforeEvent) => void): (arg: ItemUseOnBeforeEvent) => void; /** * @remarks - * Represents a yellow candle within Minecraft. + * Removes a callback from being called before an item is used + * on a block. + * + * This function can't be called in read-only mode. * + * @throws This function can throw errors. */ - static readonly yellowCandle: BlockType; + unsubscribe(callback: (arg: ItemUseOnBeforeEvent) => void): void; +} + +/** + * Contains information related to changes to a lever + * activating or deactivating. + */ +// @ts-ignore Class inheritance allowed for native defined classes +export class LeverActionAfterEvent extends BlockEvent { + private constructor(); /** * @remarks - * Represents a yellow candle cake within Minecraft. + * True if the lever is activated (that is, transmitting + * power). * */ - static readonly yellowCandleCake: BlockType; - static readonly yellowCarpet: BlockType; - static readonly yellowConcrete: BlockType; + readonly isPowered: boolean; /** * @remarks - * Represents a yellow flower within Minecraft. + * Optional player that triggered the lever activation. * */ - static readonly yellowFlower: BlockType; + readonly player: Player; +} + +/** + * Manages callbacks that are connected to lever moves + * (activates or deactivates). + */ +// @ts-ignore Class inheritance allowed for native defined classes +export class LeverActionAfterEventSignal extends ILeverActionAfterEventSignal { + private constructor(); +} + +/** + * @beta + * A specific currently-internal event used for passing + * messages from client to server. + */ +export class MessageReceiveAfterEvent { + private constructor(); /** * @remarks - * Represents a yellow block of glazed terracotta within - * Minecraft. + * The message identifier. * */ - static readonly yellowGlazedTerracotta: BlockType; - static readonly yellowShulkerBox: BlockType; - static readonly yellowWool: BlockType; + readonly id: string; /** * @remarks - * Returns a specific Minecraft block type given a type id. + * The message. * */ - static get(typeName: string): BlockType; + readonly message: string; /** * @remarks - * Returns an array of all block types within Minecraft. + * The player who sent the message. * */ - static getAllBlockTypes(): BlockType[]; + readonly player: Player; } /** @@ -12756,1175 +8612,6 @@ export class MinecraftDimensionTypes { } /** - * @beta - * Contains definitions of standard Minecraft and Minecraft - * Education Edition Entity types. - */ -export class MinecraftEntityTypes { - private constructor(); - static readonly agent: EntityType; - static readonly allay: EntityType; - static readonly areaEffectCloud: EntityType; - static readonly armorStand: EntityType; - static readonly arrow: EntityType; - static readonly axolotl: EntityType; - static readonly bat: EntityType; - static readonly bee: EntityType; - static readonly blaze: EntityType; - static readonly boat: EntityType; - static readonly camel: EntityType; - static readonly cat: EntityType; - static readonly caveSpider: EntityType; - static readonly chestBoat: EntityType; - static readonly chestMinecart: EntityType; - static readonly chicken: EntityType; - static readonly cod: EntityType; - static readonly commandBlockMinecart: EntityType; - static readonly cow: EntityType; - static readonly creeper: EntityType; - static readonly dolphin: EntityType; - static readonly donkey: EntityType; - static readonly dragonFireball: EntityType; - static readonly drowned: EntityType; - static readonly egg: EntityType; - static readonly elderGuardian: EntityType; - static readonly enderCrystal: EntityType; - static readonly enderDragon: EntityType; - static readonly enderman: EntityType; - static readonly endermite: EntityType; - static readonly enderPearl: EntityType; - static readonly evocationIllager: EntityType; - static readonly eyeOfEnderSignal: EntityType; - static readonly fireball: EntityType; - static readonly fireworksRocket: EntityType; - static readonly fishingHook: EntityType; - static readonly fox: EntityType; - static readonly frog: EntityType; - static readonly ghast: EntityType; - static readonly glowSquid: EntityType; - static readonly goat: EntityType; - static readonly guardian: EntityType; - static readonly hoglin: EntityType; - static readonly hopperMinecart: EntityType; - static readonly horse: EntityType; - static readonly husk: EntityType; - static readonly ironGolem: EntityType; - static readonly lightningBolt: EntityType; - static readonly lingeringPotion: EntityType; - static readonly llama: EntityType; - static readonly llamaSpit: EntityType; - static readonly magmaCube: EntityType; - static readonly minecart: EntityType; - static readonly mooshroom: EntityType; - static readonly mule: EntityType; - static readonly npc: EntityType; - static readonly ocelot: EntityType; - static readonly panda: EntityType; - static readonly parrot: EntityType; - static readonly phantom: EntityType; - static readonly pig: EntityType; - static readonly piglin: EntityType; - static readonly piglinBrute: EntityType; - static readonly pillager: EntityType; - static readonly player: EntityType; - static readonly polarBear: EntityType; - static readonly pufferfish: EntityType; - static readonly rabbit: EntityType; - static readonly ravager: EntityType; - static readonly salmon: EntityType; - static readonly sheep: EntityType; - static readonly shulker: EntityType; - static readonly shulkerBullet: EntityType; - static readonly silverfish: EntityType; - static readonly skeleton: EntityType; - static readonly skeletonHorse: EntityType; - static readonly slime: EntityType; - static readonly smallFireball: EntityType; - static readonly sniffer: EntityType; - static readonly snowball: EntityType; - static readonly snowGolem: EntityType; - static readonly spider: EntityType; - static readonly splashPotion: EntityType; - static readonly squid: EntityType; - static readonly stray: EntityType; - static readonly strider: EntityType; - static readonly tadpole: EntityType; - static readonly thrownTrident: EntityType; - static readonly tnt: EntityType; - static readonly tntMinecart: EntityType; - static readonly traderLlama: EntityType; - static readonly tripodCamera: EntityType; - static readonly tropicalfish: EntityType; - static readonly turtle: EntityType; - static readonly vex: EntityType; - static readonly villager: EntityType; - static readonly villagerV2: EntityType; - static readonly vindicator: EntityType; - static readonly wanderingTrader: EntityType; - static readonly warden: EntityType; - static readonly witch: EntityType; - static readonly wither: EntityType; - static readonly witherSkeleton: EntityType; - static readonly witherSkull: EntityType; - static readonly witherSkullDangerous: EntityType; - static readonly wolf: EntityType; - static readonly xpBottle: EntityType; - static readonly xpOrb: EntityType; - static readonly zoglin: EntityType; - static readonly zombie: EntityType; - static readonly zombieHorse: EntityType; - static readonly zombiePigman: EntityType; - static readonly zombieVillager: EntityType; - static readonly zombieVillagerV2: EntityType; -} - -/** - * @beta - */ -export class MinecraftItemTypes { - private constructor(); - static readonly acaciaBoat: ItemType; - static readonly acaciaButton: ItemType; - static readonly acaciaChestBoat: ItemType; - static readonly acaciaDoor: ItemType; - static readonly acaciaFence: ItemType; - static readonly acaciaFenceGate: ItemType; - static readonly acaciaHangingSign: ItemType; - static readonly acaciaLog: ItemType; - static readonly acaciaPressurePlate: ItemType; - static readonly acaciaSign: ItemType; - static readonly acaciaStairs: ItemType; - static readonly acaciaTrapdoor: ItemType; - static readonly activatorRail: ItemType; - static readonly allaySpawnEgg: ItemType; - static readonly allow: ItemType; - static readonly amethystBlock: ItemType; - static readonly amethystCluster: ItemType; - static readonly amethystShard: ItemType; - static readonly ancientDebris: ItemType; - static readonly andesiteStairs: ItemType; - static readonly anglerPotterySherd: ItemType; - static readonly anvil: ItemType; - static readonly apple: ItemType; - static readonly archerPotterySherd: ItemType; - static readonly armorStand: ItemType; - static readonly armsUpPotterySherd: ItemType; - static readonly arrow: ItemType; - static readonly axolotlBucket: ItemType; - static readonly axolotlSpawnEgg: ItemType; - static readonly azalea: ItemType; - static readonly azaleaLeaves: ItemType; - static readonly azaleaLeavesFlowered: ItemType; - static readonly bakedPotato: ItemType; - static readonly bamboo: ItemType; - static readonly bambooBlock: ItemType; - static readonly bambooButton: ItemType; - static readonly bambooChestRaft: ItemType; - static readonly bambooDoor: ItemType; - static readonly bambooFence: ItemType; - static readonly bambooFenceGate: ItemType; - static readonly bambooHangingSign: ItemType; - static readonly bambooMosaic: ItemType; - static readonly bambooMosaicSlab: ItemType; - static readonly bambooMosaicStairs: ItemType; - static readonly bambooPlanks: ItemType; - static readonly bambooPressurePlate: ItemType; - static readonly bambooRaft: ItemType; - static readonly bambooSign: ItemType; - static readonly bambooSlab: ItemType; - static readonly bambooStairs: ItemType; - static readonly bambooTrapdoor: ItemType; - static readonly banner: ItemType; - static readonly bannerPattern: ItemType; - static readonly barrel: ItemType; - static readonly barrier: ItemType; - static readonly basalt: ItemType; - static readonly batSpawnEgg: ItemType; - static readonly beacon: ItemType; - static readonly bed: ItemType; - static readonly bedrock: ItemType; - static readonly beef: ItemType; - static readonly beehive: ItemType; - static readonly beeNest: ItemType; - static readonly beeSpawnEgg: ItemType; - static readonly beetroot: ItemType; - static readonly beetrootSeeds: ItemType; - static readonly beetrootSoup: ItemType; - static readonly bell: ItemType; - static readonly bigDripleaf: ItemType; - static readonly birchBoat: ItemType; - static readonly birchButton: ItemType; - static readonly birchChestBoat: ItemType; - static readonly birchDoor: ItemType; - static readonly birchFence: ItemType; - static readonly birchFenceGate: ItemType; - static readonly birchHangingSign: ItemType; - static readonly birchLog: ItemType; - static readonly birchPressurePlate: ItemType; - static readonly birchSign: ItemType; - static readonly birchStairs: ItemType; - static readonly birchTrapdoor: ItemType; - static readonly blackCandle: ItemType; - static readonly blackCarpet: ItemType; - static readonly blackConcrete: ItemType; - static readonly blackDye: ItemType; - static readonly blackGlazedTerracotta: ItemType; - static readonly blackShulkerBox: ItemType; - static readonly blackstone: ItemType; - static readonly blackstoneSlab: ItemType; - static readonly blackstoneStairs: ItemType; - static readonly blackstoneWall: ItemType; - static readonly blackWool: ItemType; - static readonly bladePotterySherd: ItemType; - static readonly blastFurnace: ItemType; - static readonly blazePowder: ItemType; - static readonly blazeRod: ItemType; - static readonly blazeSpawnEgg: ItemType; - static readonly blueCandle: ItemType; - static readonly blueCarpet: ItemType; - static readonly blueConcrete: ItemType; - static readonly blueDye: ItemType; - static readonly blueGlazedTerracotta: ItemType; - static readonly blueIce: ItemType; - static readonly blueShulkerBox: ItemType; - static readonly blueWool: ItemType; - static readonly boat: ItemType; - static readonly bone: ItemType; - static readonly boneBlock: ItemType; - static readonly boneMeal: ItemType; - static readonly book: ItemType; - static readonly bookshelf: ItemType; - static readonly borderBlock: ItemType; - static readonly bordureIndentedBannerPattern: ItemType; - static readonly bow: ItemType; - static readonly bowl: ItemType; - static readonly brainCoral: ItemType; - static readonly bread: ItemType; - static readonly brewerPotterySherd: ItemType; - static readonly brewingStand: ItemType; - static readonly brick: ItemType; - static readonly brickBlock: ItemType; - static readonly brickStairs: ItemType; - static readonly brownCandle: ItemType; - static readonly brownCarpet: ItemType; - static readonly brownConcrete: ItemType; - static readonly brownDye: ItemType; - static readonly brownGlazedTerracotta: ItemType; - static readonly brownMushroom: ItemType; - static readonly brownMushroomBlock: ItemType; - static readonly brownShulkerBox: ItemType; - static readonly brownWool: ItemType; - static readonly brush: ItemType; - static readonly bubbleCoral: ItemType; - static readonly bucket: ItemType; - static readonly buddingAmethyst: ItemType; - static readonly burnPotterySherd: ItemType; - static readonly cactus: ItemType; - static readonly cake: ItemType; - static readonly calcite: ItemType; - static readonly calibratedSculkSensor: ItemType; - static readonly camelSpawnEgg: ItemType; - static readonly campfire: ItemType; - static readonly candle: ItemType; - static readonly carpet: ItemType; - static readonly carrot: ItemType; - static readonly carrotOnAStick: ItemType; - static readonly cartographyTable: ItemType; - static readonly carvedPumpkin: ItemType; - static readonly catSpawnEgg: ItemType; - static readonly cauldron: ItemType; - static readonly caveSpiderSpawnEgg: ItemType; - static readonly chain: ItemType; - static readonly chainCommandBlock: ItemType; - static readonly chainmailBoots: ItemType; - static readonly chainmailChestplate: ItemType; - static readonly chainmailHelmet: ItemType; - static readonly chainmailLeggings: ItemType; - static readonly charcoal: ItemType; - static readonly cherryBoat: ItemType; - static readonly cherryButton: ItemType; - static readonly cherryChestBoat: ItemType; - static readonly cherryDoor: ItemType; - static readonly cherryFence: ItemType; - static readonly cherryFenceGate: ItemType; - static readonly cherryHangingSign: ItemType; - static readonly cherryLeaves: ItemType; - static readonly cherryLog: ItemType; - static readonly cherryPlanks: ItemType; - static readonly cherryPressurePlate: ItemType; - static readonly cherrySapling: ItemType; - static readonly cherrySign: ItemType; - static readonly cherrySlab: ItemType; - static readonly cherryStairs: ItemType; - static readonly cherryTrapdoor: ItemType; - static readonly cherryWood: ItemType; - static readonly chest: ItemType; - static readonly chestBoat: ItemType; - static readonly chestMinecart: ItemType; - static readonly chicken: ItemType; - static readonly chickenSpawnEgg: ItemType; - static readonly chiseledBookshelf: ItemType; - static readonly chiseledDeepslate: ItemType; - static readonly chiseledNetherBricks: ItemType; - static readonly chiseledPolishedBlackstone: ItemType; - static readonly chorusFlower: ItemType; - static readonly chorusFruit: ItemType; - static readonly chorusPlant: ItemType; - static readonly clay: ItemType; - static readonly clayBall: ItemType; - static readonly clock: ItemType; - static readonly coal: ItemType; - static readonly coalBlock: ItemType; - static readonly coalOre: ItemType; - static readonly coastArmorTrimSmithingTemplate: ItemType; - static readonly cobbledDeepslate: ItemType; - static readonly cobbledDeepslateSlab: ItemType; - static readonly cobbledDeepslateStairs: ItemType; - static readonly cobbledDeepslateWall: ItemType; - static readonly cobblestone: ItemType; - static readonly cobblestoneWall: ItemType; - static readonly cocoaBeans: ItemType; - static readonly cod: ItemType; - static readonly codBucket: ItemType; - static readonly codSpawnEgg: ItemType; - static readonly commandBlock: ItemType; - static readonly commandBlockMinecart: ItemType; - static readonly comparator: ItemType; - static readonly compass: ItemType; - static readonly composter: ItemType; - static readonly concrete: ItemType; - static readonly concretePowder: ItemType; - static readonly conduit: ItemType; - static readonly cookedBeef: ItemType; - static readonly cookedChicken: ItemType; - static readonly cookedCod: ItemType; - static readonly cookedMutton: ItemType; - static readonly cookedPorkchop: ItemType; - static readonly cookedRabbit: ItemType; - static readonly cookedSalmon: ItemType; - static readonly cookie: ItemType; - static readonly copperBlock: ItemType; - static readonly copperIngot: ItemType; - static readonly copperOre: ItemType; - static readonly coral: ItemType; - static readonly coralBlock: ItemType; - static readonly coralFan: ItemType; - static readonly coralFanDead: ItemType; - static readonly cowSpawnEgg: ItemType; - static readonly crackedDeepslateBricks: ItemType; - static readonly crackedDeepslateTiles: ItemType; - static readonly crackedNetherBricks: ItemType; - static readonly crackedPolishedBlackstoneBricks: ItemType; - static readonly craftingTable: ItemType; - static readonly creeperBannerPattern: ItemType; - static readonly creeperSpawnEgg: ItemType; - static readonly crimsonButton: ItemType; - static readonly crimsonDoor: ItemType; - static readonly crimsonFence: ItemType; - static readonly crimsonFenceGate: ItemType; - static readonly crimsonFungus: ItemType; - static readonly crimsonHangingSign: ItemType; - static readonly crimsonHyphae: ItemType; - static readonly crimsonNylium: ItemType; - static readonly crimsonPlanks: ItemType; - static readonly crimsonPressurePlate: ItemType; - static readonly crimsonRoots: ItemType; - static readonly crimsonSign: ItemType; - static readonly crimsonSlab: ItemType; - static readonly crimsonStairs: ItemType; - static readonly crimsonStem: ItemType; - static readonly crimsonTrapdoor: ItemType; - static readonly crossbow: ItemType; - static readonly cryingObsidian: ItemType; - static readonly cutCopper: ItemType; - static readonly cutCopperSlab: ItemType; - static readonly cutCopperStairs: ItemType; - static readonly cyanCandle: ItemType; - static readonly cyanCarpet: ItemType; - static readonly cyanConcrete: ItemType; - static readonly cyanDye: ItemType; - static readonly cyanGlazedTerracotta: ItemType; - static readonly cyanShulkerBox: ItemType; - static readonly cyanWool: ItemType; - static readonly dangerPotterySherd: ItemType; - static readonly darkOakBoat: ItemType; - static readonly darkOakButton: ItemType; - static readonly darkOakChestBoat: ItemType; - static readonly darkOakDoor: ItemType; - static readonly darkOakFence: ItemType; - static readonly darkOakFenceGate: ItemType; - static readonly darkOakHangingSign: ItemType; - static readonly darkOakLog: ItemType; - static readonly darkOakPressurePlate: ItemType; - static readonly darkOakSign: ItemType; - static readonly darkOakStairs: ItemType; - static readonly darkOakTrapdoor: ItemType; - static readonly darkPrismarineStairs: ItemType; - static readonly daylightDetector: ItemType; - static readonly deadBrainCoral: ItemType; - static readonly deadBubbleCoral: ItemType; - static readonly deadbush: ItemType; - static readonly deadFireCoral: ItemType; - static readonly deadHornCoral: ItemType; - static readonly deadTubeCoral: ItemType; - static readonly decoratedPot: ItemType; - static readonly deepslate: ItemType; - static readonly deepslateBricks: ItemType; - static readonly deepslateBrickSlab: ItemType; - static readonly deepslateBrickStairs: ItemType; - static readonly deepslateBrickWall: ItemType; - static readonly deepslateCoalOre: ItemType; - static readonly deepslateCopperOre: ItemType; - static readonly deepslateDiamondOre: ItemType; - static readonly deepslateEmeraldOre: ItemType; - static readonly deepslateGoldOre: ItemType; - static readonly deepslateIronOre: ItemType; - static readonly deepslateLapisOre: ItemType; - static readonly deepslateRedstoneOre: ItemType; - static readonly deepslateTiles: ItemType; - static readonly deepslateTileSlab: ItemType; - static readonly deepslateTileStairs: ItemType; - static readonly deepslateTileWall: ItemType; - static readonly deny: ItemType; - static readonly detectorRail: ItemType; - static readonly diamond: ItemType; - static readonly diamondAxe: ItemType; - static readonly diamondBlock: ItemType; - static readonly diamondBoots: ItemType; - static readonly diamondChestplate: ItemType; - static readonly diamondHelmet: ItemType; - static readonly diamondHoe: ItemType; - static readonly diamondHorseArmor: ItemType; - static readonly diamondLeggings: ItemType; - static readonly diamondOre: ItemType; - static readonly diamondPickaxe: ItemType; - static readonly diamondShovel: ItemType; - static readonly diamondSword: ItemType; - static readonly dioriteStairs: ItemType; - static readonly dirt: ItemType; - static readonly dirtWithRoots: ItemType; - static readonly discFragment5: ItemType; - static readonly dispenser: ItemType; - static readonly dolphinSpawnEgg: ItemType; - static readonly donkeySpawnEgg: ItemType; - static readonly doublePlant: ItemType; - static readonly dragonBreath: ItemType; - static readonly dragonEgg: ItemType; - static readonly driedKelp: ItemType; - static readonly driedKelpBlock: ItemType; - static readonly dripstoneBlock: ItemType; - static readonly dropper: ItemType; - static readonly drownedSpawnEgg: ItemType; - static readonly duneArmorTrimSmithingTemplate: ItemType; - static readonly dye: ItemType; - static readonly echoShard: ItemType; - static readonly egg: ItemType; - static readonly elderGuardianSpawnEgg: ItemType; - static readonly elytra: ItemType; - static readonly emerald: ItemType; - static readonly emeraldBlock: ItemType; - static readonly emeraldOre: ItemType; - static readonly emptyMap: ItemType; - static readonly enchantedBook: ItemType; - static readonly enchantedGoldenApple: ItemType; - static readonly enchantingTable: ItemType; - static readonly endBricks: ItemType; - static readonly endBrickStairs: ItemType; - static readonly endCrystal: ItemType; - static readonly enderChest: ItemType; - static readonly enderDragonSpawnEgg: ItemType; - static readonly enderEye: ItemType; - static readonly endermanSpawnEgg: ItemType; - static readonly endermiteSpawnEgg: ItemType; - static readonly enderPearl: ItemType; - static readonly endPortalFrame: ItemType; - static readonly endRod: ItemType; - static readonly endStone: ItemType; - static readonly evokerSpawnEgg: ItemType; - static readonly experienceBottle: ItemType; - static readonly explorerPotterySherd: ItemType; - static readonly exposedCopper: ItemType; - static readonly exposedCutCopper: ItemType; - static readonly exposedCutCopperSlab: ItemType; - static readonly exposedCutCopperStairs: ItemType; - static readonly eyeArmorTrimSmithingTemplate: ItemType; - static readonly farmland: ItemType; - static readonly feather: ItemType; - static readonly fence: ItemType; - static readonly fenceGate: ItemType; - static readonly fermentedSpiderEye: ItemType; - static readonly fieldMasonedBannerPattern: ItemType; - static readonly filledMap: ItemType; - static readonly fireCharge: ItemType; - static readonly fireCoral: ItemType; - static readonly fireworkRocket: ItemType; - static readonly fireworkStar: ItemType; - static readonly fishingRod: ItemType; - static readonly fletchingTable: ItemType; - static readonly flint: ItemType; - static readonly flintAndSteel: ItemType; - static readonly flowerBannerPattern: ItemType; - static readonly floweringAzalea: ItemType; - static readonly flowerPot: ItemType; - static readonly foxSpawnEgg: ItemType; - static readonly frame: ItemType; - static readonly friendPotterySherd: ItemType; - static readonly frogSpawn: ItemType; - static readonly frogSpawnEgg: ItemType; - static readonly frostedIce: ItemType; - static readonly furnace: ItemType; - static readonly ghastSpawnEgg: ItemType; - static readonly ghastTear: ItemType; - static readonly gildedBlackstone: ItemType; - static readonly glass: ItemType; - static readonly glassBottle: ItemType; - static readonly glassPane: ItemType; - static readonly glisteringMelonSlice: ItemType; - static readonly globeBannerPattern: ItemType; - static readonly glowBerries: ItemType; - static readonly glowFrame: ItemType; - static readonly glowInkSac: ItemType; - static readonly glowLichen: ItemType; - static readonly glowSquidSpawnEgg: ItemType; - static readonly glowstone: ItemType; - static readonly glowstoneDust: ItemType; - static readonly goatHorn: ItemType; - static readonly goatSpawnEgg: ItemType; - static readonly goldBlock: ItemType; - static readonly goldenApple: ItemType; - static readonly goldenAxe: ItemType; - static readonly goldenBoots: ItemType; - static readonly goldenCarrot: ItemType; - static readonly goldenChestplate: ItemType; - static readonly goldenHelmet: ItemType; - static readonly goldenHoe: ItemType; - static readonly goldenHorseArmor: ItemType; - static readonly goldenLeggings: ItemType; - static readonly goldenPickaxe: ItemType; - static readonly goldenRail: ItemType; - static readonly goldenShovel: ItemType; - static readonly goldenSword: ItemType; - static readonly goldIngot: ItemType; - static readonly goldNugget: ItemType; - static readonly goldOre: ItemType; - static readonly graniteStairs: ItemType; - static readonly grass: ItemType; - static readonly grassPath: ItemType; - static readonly gravel: ItemType; - static readonly grayCandle: ItemType; - static readonly grayCarpet: ItemType; - static readonly grayConcrete: ItemType; - static readonly grayDye: ItemType; - static readonly grayGlazedTerracotta: ItemType; - static readonly grayShulkerBox: ItemType; - static readonly grayWool: ItemType; - static readonly greenCandle: ItemType; - static readonly greenCarpet: ItemType; - static readonly greenConcrete: ItemType; - static readonly greenDye: ItemType; - static readonly greenGlazedTerracotta: ItemType; - static readonly greenShulkerBox: ItemType; - static readonly greenWool: ItemType; - static readonly grindstone: ItemType; - static readonly guardianSpawnEgg: ItemType; - static readonly gunpowder: ItemType; - static readonly hangingRoots: ItemType; - static readonly hardenedClay: ItemType; - static readonly hayBlock: ItemType; - static readonly heartbreakPotterySherd: ItemType; - static readonly heartOfTheSea: ItemType; - static readonly heartPotterySherd: ItemType; - static readonly heavyWeightedPressurePlate: ItemType; - static readonly hoglinSpawnEgg: ItemType; - static readonly honeyBlock: ItemType; - static readonly honeyBottle: ItemType; - static readonly honeycomb: ItemType; - static readonly honeycombBlock: ItemType; - static readonly hopper: ItemType; - static readonly hopperMinecart: ItemType; - static readonly hornCoral: ItemType; - static readonly horseSpawnEgg: ItemType; - static readonly hostArmorTrimSmithingTemplate: ItemType; - static readonly howlPotterySherd: ItemType; - static readonly huskSpawnEgg: ItemType; - static readonly ice: ItemType; - static readonly infestedDeepslate: ItemType; - static readonly inkSac: ItemType; - static readonly ironAxe: ItemType; - static readonly ironBars: ItemType; - static readonly ironBlock: ItemType; - static readonly ironBoots: ItemType; - static readonly ironChestplate: ItemType; - static readonly ironDoor: ItemType; - static readonly ironGolemSpawnEgg: ItemType; - static readonly ironHelmet: ItemType; - static readonly ironHoe: ItemType; - static readonly ironHorseArmor: ItemType; - static readonly ironIngot: ItemType; - static readonly ironLeggings: ItemType; - static readonly ironNugget: ItemType; - static readonly ironOre: ItemType; - static readonly ironPickaxe: ItemType; - static readonly ironShovel: ItemType; - static readonly ironSword: ItemType; - static readonly ironTrapdoor: ItemType; - static readonly jigsaw: ItemType; - static readonly jukebox: ItemType; - static readonly jungleBoat: ItemType; - static readonly jungleButton: ItemType; - static readonly jungleChestBoat: ItemType; - static readonly jungleDoor: ItemType; - static readonly jungleFence: ItemType; - static readonly jungleFenceGate: ItemType; - static readonly jungleHangingSign: ItemType; - static readonly jungleLog: ItemType; - static readonly junglePressurePlate: ItemType; - static readonly jungleSign: ItemType; - static readonly jungleStairs: ItemType; - static readonly jungleTrapdoor: ItemType; - static readonly kelp: ItemType; - static readonly ladder: ItemType; - static readonly lantern: ItemType; - static readonly lapisBlock: ItemType; - static readonly lapisLazuli: ItemType; - static readonly lapisOre: ItemType; - static readonly largeAmethystBud: ItemType; - static readonly lavaBucket: ItemType; - static readonly lead: ItemType; - static readonly leather: ItemType; - static readonly leatherBoots: ItemType; - static readonly leatherChestplate: ItemType; - static readonly leatherHelmet: ItemType; - static readonly leatherHorseArmor: ItemType; - static readonly leatherLeggings: ItemType; - static readonly leaves: ItemType; - static readonly leaves2: ItemType; - static readonly lectern: ItemType; - static readonly lever: ItemType; - static readonly lightBlock: ItemType; - static readonly lightBlueCandle: ItemType; - static readonly lightBlueCarpet: ItemType; - static readonly lightBlueConcrete: ItemType; - static readonly lightBlueDye: ItemType; - static readonly lightBlueGlazedTerracotta: ItemType; - static readonly lightBlueShulkerBox: ItemType; - static readonly lightBlueWool: ItemType; - static readonly lightGrayCandle: ItemType; - static readonly lightGrayCarpet: ItemType; - static readonly lightGrayConcrete: ItemType; - static readonly lightGrayDye: ItemType; - static readonly lightGrayShulkerBox: ItemType; - static readonly lightGrayWool: ItemType; - static readonly lightningRod: ItemType; - static readonly lightWeightedPressurePlate: ItemType; - static readonly limeCandle: ItemType; - static readonly limeCarpet: ItemType; - static readonly limeConcrete: ItemType; - static readonly limeDye: ItemType; - static readonly limeGlazedTerracotta: ItemType; - static readonly limeShulkerBox: ItemType; - static readonly limeWool: ItemType; - static readonly lingeringPotion: ItemType; - static readonly litPumpkin: ItemType; - static readonly llamaSpawnEgg: ItemType; - static readonly lodestone: ItemType; - static readonly lodestoneCompass: ItemType; - static readonly log: ItemType; - static readonly log2: ItemType; - static readonly loom: ItemType; - static readonly magentaCandle: ItemType; - static readonly magentaCarpet: ItemType; - static readonly magentaConcrete: ItemType; - static readonly magentaDye: ItemType; - static readonly magentaGlazedTerracotta: ItemType; - static readonly magentaShulkerBox: ItemType; - static readonly magentaWool: ItemType; - static readonly magma: ItemType; - static readonly magmaCream: ItemType; - static readonly magmaCubeSpawnEgg: ItemType; - static readonly mangroveBoat: ItemType; - static readonly mangroveButton: ItemType; - static readonly mangroveChestBoat: ItemType; - static readonly mangroveDoor: ItemType; - static readonly mangroveFence: ItemType; - static readonly mangroveFenceGate: ItemType; - static readonly mangroveHangingSign: ItemType; - static readonly mangroveLeaves: ItemType; - static readonly mangroveLog: ItemType; - static readonly mangrovePlanks: ItemType; - static readonly mangrovePressurePlate: ItemType; - static readonly mangrovePropagule: ItemType; - static readonly mangroveRoots: ItemType; - static readonly mangroveSign: ItemType; - static readonly mangroveSlab: ItemType; - static readonly mangroveStairs: ItemType; - static readonly mangroveTrapdoor: ItemType; - static readonly mangroveWood: ItemType; - static readonly mediumAmethystBud: ItemType; - static readonly melonBlock: ItemType; - static readonly melonSeeds: ItemType; - static readonly melonSlice: ItemType; - static readonly milkBucket: ItemType; - static readonly minecart: ItemType; - static readonly minerPotterySherd: ItemType; - static readonly mobSpawner: ItemType; - static readonly mojangBannerPattern: ItemType; - static readonly monsterEgg: ItemType; - static readonly mooshroomSpawnEgg: ItemType; - static readonly mossBlock: ItemType; - static readonly mossCarpet: ItemType; - static readonly mossyCobblestone: ItemType; - static readonly mossyCobblestoneStairs: ItemType; - static readonly mossyStoneBrickStairs: ItemType; - static readonly mournerPotterySherd: ItemType; - static readonly mud: ItemType; - static readonly mudBricks: ItemType; - static readonly mudBrickSlab: ItemType; - static readonly mudBrickStairs: ItemType; - static readonly mudBrickWall: ItemType; - static readonly muddyMangroveRoots: ItemType; - static readonly muleSpawnEgg: ItemType; - static readonly mushroomStew: ItemType; - static readonly musicDisc11: ItemType; - static readonly musicDisc13: ItemType; - static readonly musicDisc5: ItemType; - static readonly musicDiscBlocks: ItemType; - static readonly musicDiscCat: ItemType; - static readonly musicDiscChirp: ItemType; - static readonly musicDiscFar: ItemType; - static readonly musicDiscMall: ItemType; - static readonly musicDiscMellohi: ItemType; - static readonly musicDiscOtherside: ItemType; - static readonly musicDiscPigstep: ItemType; - static readonly musicDiscRelic: ItemType; - static readonly musicDiscStal: ItemType; - static readonly musicDiscStrad: ItemType; - static readonly musicDiscWait: ItemType; - static readonly musicDiscWard: ItemType; - static readonly mutton: ItemType; - static readonly mycelium: ItemType; - static readonly nameTag: ItemType; - static readonly nautilusShell: ItemType; - static readonly netherbrick: ItemType; - static readonly netherBrick: ItemType; - static readonly netherBrickFence: ItemType; - static readonly netherBrickStairs: ItemType; - static readonly netherGoldOre: ItemType; - static readonly netheriteAxe: ItemType; - static readonly netheriteBlock: ItemType; - static readonly netheriteBoots: ItemType; - static readonly netheriteChestplate: ItemType; - static readonly netheriteHelmet: ItemType; - static readonly netheriteHoe: ItemType; - static readonly netheriteIngot: ItemType; - static readonly netheriteLeggings: ItemType; - static readonly netheritePickaxe: ItemType; - static readonly netheriteScrap: ItemType; - static readonly netheriteShovel: ItemType; - static readonly netheriteSword: ItemType; - static readonly netheriteUpgradeSmithingTemplate: ItemType; - static readonly netherrack: ItemType; - static readonly netherSprouts: ItemType; - static readonly netherStar: ItemType; - static readonly netherWart: ItemType; - static readonly netherWartBlock: ItemType; - static readonly normalStoneStairs: ItemType; - static readonly noteblock: ItemType; - static readonly oakBoat: ItemType; - static readonly oakChestBoat: ItemType; - static readonly oakFence: ItemType; - static readonly oakHangingSign: ItemType; - static readonly oakLog: ItemType; - static readonly oakSign: ItemType; - static readonly oakStairs: ItemType; - static readonly observer: ItemType; - static readonly obsidian: ItemType; - static readonly ocelotSpawnEgg: ItemType; - static readonly ochreFroglight: ItemType; - static readonly orangeCandle: ItemType; - static readonly orangeCarpet: ItemType; - static readonly orangeConcrete: ItemType; - static readonly orangeDye: ItemType; - static readonly orangeGlazedTerracotta: ItemType; - static readonly orangeShulkerBox: ItemType; - static readonly orangeWool: ItemType; - static readonly oxidizedCopper: ItemType; - static readonly oxidizedCutCopper: ItemType; - static readonly oxidizedCutCopperSlab: ItemType; - static readonly oxidizedCutCopperStairs: ItemType; - static readonly packedIce: ItemType; - static readonly packedMud: ItemType; - static readonly painting: ItemType; - static readonly pandaSpawnEgg: ItemType; - static readonly paper: ItemType; - static readonly parrotSpawnEgg: ItemType; - static readonly pearlescentFroglight: ItemType; - static readonly phantomMembrane: ItemType; - static readonly phantomSpawnEgg: ItemType; - static readonly piglinBannerPattern: ItemType; - static readonly piglinBruteSpawnEgg: ItemType; - static readonly piglinSpawnEgg: ItemType; - static readonly pigSpawnEgg: ItemType; - static readonly pillagerSpawnEgg: ItemType; - static readonly pinkCandle: ItemType; - static readonly pinkCarpet: ItemType; - static readonly pinkConcrete: ItemType; - static readonly pinkDye: ItemType; - static readonly pinkGlazedTerracotta: ItemType; - static readonly pinkPetals: ItemType; - static readonly pinkShulkerBox: ItemType; - static readonly pinkWool: ItemType; - static readonly piston: ItemType; - static readonly pitcherPlant: ItemType; - static readonly pitcherPod: ItemType; - static readonly planks: ItemType; - static readonly plentyPotterySherd: ItemType; - static readonly podzol: ItemType; - static readonly pointedDripstone: ItemType; - static readonly poisonousPotato: ItemType; - static readonly polarBearSpawnEgg: ItemType; - static readonly polishedAndesiteStairs: ItemType; - static readonly polishedBasalt: ItemType; - static readonly polishedBlackstone: ItemType; - static readonly polishedBlackstoneBricks: ItemType; - static readonly polishedBlackstoneBrickSlab: ItemType; - static readonly polishedBlackstoneBrickStairs: ItemType; - static readonly polishedBlackstoneBrickWall: ItemType; - static readonly polishedBlackstoneButton: ItemType; - static readonly polishedBlackstonePressurePlate: ItemType; - static readonly polishedBlackstoneSlab: ItemType; - static readonly polishedBlackstoneStairs: ItemType; - static readonly polishedBlackstoneWall: ItemType; - static readonly polishedDeepslate: ItemType; - static readonly polishedDeepslateSlab: ItemType; - static readonly polishedDeepslateStairs: ItemType; - static readonly polishedDeepslateWall: ItemType; - static readonly polishedDioriteStairs: ItemType; - static readonly polishedGraniteStairs: ItemType; - static readonly poppedChorusFruit: ItemType; - static readonly porkchop: ItemType; - static readonly potato: ItemType; - static readonly potion: ItemType; - static readonly powderSnowBucket: ItemType; - static readonly prismarine: ItemType; - static readonly prismarineBricksStairs: ItemType; - static readonly prismarineCrystals: ItemType; - static readonly prismarineShard: ItemType; - static readonly prismarineStairs: ItemType; - static readonly prizePotterySherd: ItemType; - static readonly pufferfish: ItemType; - static readonly pufferfishBucket: ItemType; - static readonly pufferfishSpawnEgg: ItemType; - static readonly pumpkin: ItemType; - static readonly pumpkinPie: ItemType; - static readonly pumpkinSeeds: ItemType; - static readonly purpleCandle: ItemType; - static readonly purpleCarpet: ItemType; - static readonly purpleConcrete: ItemType; - static readonly purpleDye: ItemType; - static readonly purpleGlazedTerracotta: ItemType; - static readonly purpleShulkerBox: ItemType; - static readonly purpleWool: ItemType; - static readonly purpurBlock: ItemType; - static readonly purpurStairs: ItemType; - static readonly quartz: ItemType; - static readonly quartzBlock: ItemType; - static readonly quartzBricks: ItemType; - static readonly quartzOre: ItemType; - static readonly quartzStairs: ItemType; - static readonly rabbit: ItemType; - static readonly rabbitFoot: ItemType; - static readonly rabbitHide: ItemType; - static readonly rabbitSpawnEgg: ItemType; - static readonly rabbitStew: ItemType; - static readonly rail: ItemType; - static readonly raiserArmorTrimSmithingTemplate: ItemType; - static readonly ravagerSpawnEgg: ItemType; - static readonly rawCopper: ItemType; - static readonly rawCopperBlock: ItemType; - static readonly rawGold: ItemType; - static readonly rawGoldBlock: ItemType; - static readonly rawIron: ItemType; - static readonly rawIronBlock: ItemType; - static readonly recoveryCompass: ItemType; - static readonly redCandle: ItemType; - static readonly redCarpet: ItemType; - static readonly redConcrete: ItemType; - static readonly redDye: ItemType; - static readonly redFlower: ItemType; - static readonly redGlazedTerracotta: ItemType; - static readonly redMushroom: ItemType; - static readonly redMushroomBlock: ItemType; - static readonly redNetherBrick: ItemType; - static readonly redNetherBrickStairs: ItemType; - static readonly redSandstone: ItemType; - static readonly redSandstoneStairs: ItemType; - static readonly redShulkerBox: ItemType; - static readonly redstone: ItemType; - static readonly redstoneBlock: ItemType; - static readonly redstoneLamp: ItemType; - static readonly redstoneOre: ItemType; - static readonly redstoneTorch: ItemType; - static readonly redWool: ItemType; - static readonly reinforcedDeepslate: ItemType; - static readonly repeater: ItemType; - static readonly repeatingCommandBlock: ItemType; - static readonly respawnAnchor: ItemType; - static readonly ribArmorTrimSmithingTemplate: ItemType; - static readonly rottenFlesh: ItemType; - static readonly saddle: ItemType; - static readonly salmon: ItemType; - static readonly salmonBucket: ItemType; - static readonly salmonSpawnEgg: ItemType; - static readonly sand: ItemType; - static readonly sandstone: ItemType; - static readonly sandstoneStairs: ItemType; - static readonly sapling: ItemType; - static readonly scaffolding: ItemType; - static readonly sculk: ItemType; - static readonly sculkCatalyst: ItemType; - static readonly sculkSensor: ItemType; - static readonly sculkShrieker: ItemType; - static readonly sculkVein: ItemType; - static readonly scute: ItemType; - static readonly seagrass: ItemType; - static readonly seaLantern: ItemType; - static readonly seaPickle: ItemType; - static readonly sentryArmorTrimSmithingTemplate: ItemType; - static readonly shaperArmorTrimSmithingTemplate: ItemType; - static readonly sheafPotterySherd: ItemType; - static readonly shears: ItemType; - static readonly sheepSpawnEgg: ItemType; - static readonly shelterPotterySherd: ItemType; - static readonly shield: ItemType; - static readonly shroomlight: ItemType; - static readonly shulkerBox: ItemType; - static readonly shulkerShell: ItemType; - static readonly shulkerSpawnEgg: ItemType; - static readonly silenceArmorTrimSmithingTemplate: ItemType; - static readonly silverfishSpawnEgg: ItemType; - static readonly silverGlazedTerracotta: ItemType; - static readonly skeletonHorseSpawnEgg: ItemType; - static readonly skeletonSpawnEgg: ItemType; - static readonly skull: ItemType; - static readonly skullBannerPattern: ItemType; - static readonly skullPotterySherd: ItemType; - static readonly slime: ItemType; - static readonly slimeBall: ItemType; - static readonly slimeSpawnEgg: ItemType; - static readonly smallAmethystBud: ItemType; - static readonly smallDripleafBlock: ItemType; - static readonly smithingTable: ItemType; - static readonly smoker: ItemType; - static readonly smoothBasalt: ItemType; - static readonly smoothQuartzStairs: ItemType; - static readonly smoothRedSandstoneStairs: ItemType; - static readonly smoothSandstoneStairs: ItemType; - static readonly smoothStone: ItemType; - static readonly snifferEgg: ItemType; - static readonly snifferSpawnEgg: ItemType; - static readonly snortPotterySherd: ItemType; - static readonly snoutArmorTrimSmithingTemplate: ItemType; - static readonly snow: ItemType; - static readonly snowball: ItemType; - static readonly snowGolemSpawnEgg: ItemType; - static readonly snowLayer: ItemType; - static readonly soulCampfire: ItemType; - static readonly soulLantern: ItemType; - static readonly soulSand: ItemType; - static readonly soulSoil: ItemType; - static readonly soulTorch: ItemType; - static readonly spawnEgg: ItemType; - static readonly spiderEye: ItemType; - static readonly spiderSpawnEgg: ItemType; - static readonly spireArmorTrimSmithingTemplate: ItemType; - static readonly splashPotion: ItemType; - static readonly sponge: ItemType; - static readonly sporeBlossom: ItemType; - static readonly spruceBoat: ItemType; - static readonly spruceButton: ItemType; - static readonly spruceChestBoat: ItemType; - static readonly spruceDoor: ItemType; - static readonly spruceFence: ItemType; - static readonly spruceFenceGate: ItemType; - static readonly spruceHangingSign: ItemType; - static readonly spruceLog: ItemType; - static readonly sprucePressurePlate: ItemType; - static readonly spruceSign: ItemType; - static readonly spruceStairs: ItemType; - static readonly spruceTrapdoor: ItemType; - static readonly spyglass: ItemType; - static readonly squidSpawnEgg: ItemType; - static readonly stainedGlass: ItemType; - static readonly stainedGlassPane: ItemType; - static readonly stainedHardenedClay: ItemType; - static readonly stick: ItemType; - static readonly stickyPiston: ItemType; - static readonly stone: ItemType; - static readonly stoneAxe: ItemType; - static readonly stoneBlockSlab: ItemType; - static readonly stoneBlockSlab2: ItemType; - static readonly stoneBlockSlab3: ItemType; - static readonly stoneBlockSlab4: ItemType; - static readonly stonebrick: ItemType; - static readonly stoneBrickStairs: ItemType; - static readonly stoneButton: ItemType; - static readonly stonecutterBlock: ItemType; - static readonly stoneHoe: ItemType; - static readonly stonePickaxe: ItemType; - static readonly stonePressurePlate: ItemType; - static readonly stoneShovel: ItemType; - static readonly stoneStairs: ItemType; - static readonly stoneSword: ItemType; - static readonly straySpawnEgg: ItemType; - static readonly striderSpawnEgg: ItemType; - static readonly 'string': ItemType; - static readonly strippedAcaciaLog: ItemType; - static readonly strippedBambooBlock: ItemType; - static readonly strippedBirchLog: ItemType; - static readonly strippedCherryLog: ItemType; - static readonly strippedCherryWood: ItemType; - static readonly strippedCrimsonHyphae: ItemType; - static readonly strippedCrimsonStem: ItemType; - static readonly strippedDarkOakLog: ItemType; - static readonly strippedJungleLog: ItemType; - static readonly strippedMangroveLog: ItemType; - static readonly strippedMangroveWood: ItemType; - static readonly strippedOakLog: ItemType; - static readonly strippedSpruceLog: ItemType; - static readonly strippedWarpedHyphae: ItemType; - static readonly strippedWarpedStem: ItemType; - static readonly structureBlock: ItemType; - static readonly structureVoid: ItemType; - static readonly sugar: ItemType; - static readonly sugarCane: ItemType; - static readonly suspiciousGravel: ItemType; - static readonly suspiciousSand: ItemType; - static readonly suspiciousStew: ItemType; - static readonly sweetBerries: ItemType; - static readonly tadpoleBucket: ItemType; - static readonly tadpoleSpawnEgg: ItemType; - static readonly tallgrass: ItemType; - static readonly target: ItemType; - static readonly tideArmorTrimSmithingTemplate: ItemType; - static readonly tintedGlass: ItemType; - static readonly tnt: ItemType; - static readonly tntMinecart: ItemType; - static readonly torch: ItemType; - static readonly torchflower: ItemType; - static readonly torchflowerSeeds: ItemType; - static readonly totemOfUndying: ItemType; - static readonly traderLlamaSpawnEgg: ItemType; - static readonly trapdoor: ItemType; - static readonly trappedChest: ItemType; - static readonly trident: ItemType; - static readonly tripwireHook: ItemType; - static readonly tropicalFish: ItemType; - static readonly tropicalFishBucket: ItemType; - static readonly tropicalFishSpawnEgg: ItemType; - static readonly tubeCoral: ItemType; - static readonly tuff: ItemType; - static readonly turtleEgg: ItemType; - static readonly turtleHelmet: ItemType; - static readonly turtleSpawnEgg: ItemType; - static readonly twistingVines: ItemType; - static readonly undyedShulkerBox: ItemType; - static readonly verdantFroglight: ItemType; - static readonly vexArmorTrimSmithingTemplate: ItemType; - static readonly vexSpawnEgg: ItemType; - static readonly villagerSpawnEgg: ItemType; - static readonly vindicatorSpawnEgg: ItemType; - static readonly vine: ItemType; - static readonly wanderingTraderSpawnEgg: ItemType; - static readonly wardArmorTrimSmithingTemplate: ItemType; - static readonly wardenSpawnEgg: ItemType; - static readonly warpedButton: ItemType; - static readonly warpedDoor: ItemType; - static readonly warpedFence: ItemType; - static readonly warpedFenceGate: ItemType; - static readonly warpedFungus: ItemType; - static readonly warpedFungusOnAStick: ItemType; - static readonly warpedHangingSign: ItemType; - static readonly warpedHyphae: ItemType; - static readonly warpedNylium: ItemType; - static readonly warpedPlanks: ItemType; - static readonly warpedPressurePlate: ItemType; - static readonly warpedRoots: ItemType; - static readonly warpedSign: ItemType; - static readonly warpedSlab: ItemType; - static readonly warpedStairs: ItemType; - static readonly warpedStem: ItemType; - static readonly warpedTrapdoor: ItemType; - static readonly warpedWartBlock: ItemType; - static readonly waterBucket: ItemType; - static readonly waterlily: ItemType; - static readonly waxedCopper: ItemType; - static readonly waxedCutCopper: ItemType; - static readonly waxedCutCopperSlab: ItemType; - static readonly waxedCutCopperStairs: ItemType; - static readonly waxedExposedCopper: ItemType; - static readonly waxedExposedCutCopper: ItemType; - static readonly waxedExposedCutCopperSlab: ItemType; - static readonly waxedExposedCutCopperStairs: ItemType; - static readonly waxedOxidizedCopper: ItemType; - static readonly waxedOxidizedCutCopper: ItemType; - static readonly waxedOxidizedCutCopperSlab: ItemType; - static readonly waxedOxidizedCutCopperStairs: ItemType; - static readonly waxedWeatheredCopper: ItemType; - static readonly waxedWeatheredCutCopper: ItemType; - static readonly waxedWeatheredCutCopperSlab: ItemType; - static readonly waxedWeatheredCutCopperStairs: ItemType; - static readonly wayfinderArmorTrimSmithingTemplate: ItemType; - static readonly weatheredCopper: ItemType; - static readonly weatheredCutCopper: ItemType; - static readonly weatheredCutCopperSlab: ItemType; - static readonly weatheredCutCopperStairs: ItemType; - static readonly web: ItemType; - static readonly weepingVines: ItemType; - static readonly wheat: ItemType; - static readonly wheatSeeds: ItemType; - static readonly whiteCandle: ItemType; - static readonly whiteCarpet: ItemType; - static readonly whiteConcrete: ItemType; - static readonly whiteDye: ItemType; - static readonly whiteGlazedTerracotta: ItemType; - static readonly whiteShulkerBox: ItemType; - static readonly whiteWool: ItemType; - static readonly wildArmorTrimSmithingTemplate: ItemType; - static readonly witchSpawnEgg: ItemType; - static readonly witherRose: ItemType; - static readonly witherSkeletonSpawnEgg: ItemType; - static readonly witherSpawnEgg: ItemType; - static readonly wolfSpawnEgg: ItemType; - static readonly wood: ItemType; - static readonly woodenAxe: ItemType; - static readonly woodenButton: ItemType; - static readonly woodenDoor: ItemType; - static readonly woodenHoe: ItemType; - static readonly woodenPickaxe: ItemType; - static readonly woodenPressurePlate: ItemType; - static readonly woodenShovel: ItemType; - static readonly woodenSlab: ItemType; - static readonly woodenSword: ItemType; - static readonly wool: ItemType; - static readonly writableBook: ItemType; - static readonly yellowCandle: ItemType; - static readonly yellowCarpet: ItemType; - static readonly yellowConcrete: ItemType; - static readonly yellowDye: ItemType; - static readonly yellowFlower: ItemType; - static readonly yellowGlazedTerracotta: ItemType; - static readonly yellowShulkerBox: ItemType; - static readonly yellowWool: ItemType; - static readonly zoglinSpawnEgg: ItemType; - static readonly zombieHorseSpawnEgg: ItemType; - static readonly zombiePigmanSpawnEgg: ItemType; - static readonly zombieSpawnEgg: ItemType; - static readonly zombieVillagerSpawnEgg: ItemType; -} - -/** - * @beta * Contains a set of additional variable values for further * defining how rendering and animations function. */ @@ -13936,8 +8623,9 @@ export class MolangVariableMap { * - `.g` - Green color value [0-1] * - `.b` - Blue color value [0-1] * + * @throws This function can throw errors. */ - setColorRGB(variableName: string, color: Color): MolangVariableMap; + setColorRGB(variableName: string, color: RGB): void; /** * @remarks * Adds the following variables to Molang: @@ -13947,8 +8635,21 @@ export class MolangVariableMap { * - `.a` - Alpha (transparency) color value * [0-1] * + * @throws This function can throw errors. + */ + setColorRGBA(variableName: string, color: RGBA): void; + /** + * @remarks + * Sets a numeric (decimal) value within the Molang variable + * map. + * + * @param variableName + * Name of the float-based number to set. + * @param number + * Value for the Molang-based variable to set. + * @throws This function can throw errors. */ - setColorRGBA(variableName: string, color: Color): MolangVariableMap; + setFloat(variableName: string, number: number): void; /** * @remarks * Adds the following variables to Molang: @@ -13960,8 +8661,9 @@ export class MolangVariableMap { * - `.direction_z` - Z value from the {@link * Vector3} provided * + * @throws This function can throw errors. */ - setSpeedAndDirection(variableName: string, speed: number, direction: Vector3): MolangVariableMap; + setSpeedAndDirection(variableName: string, speed: number, direction: Vector3): void; /** * @remarks * Adds the following variables to Molang: @@ -13972,8 +8674,9 @@ export class MolangVariableMap { * - `.z` - Z value from the {@link Vector3} * provided * + * @throws This function can throw errors. */ - setVector3(variableName: string, vector: Vector3): MolangVariableMap; + setVector3(variableName: string, vector: Vector3): void; } /** @@ -14025,9 +8728,76 @@ export class PistonActivateAfterEvent extends BlockEvent { * @beta * Manages callbacks that are connected to piston activations. */ -// @ts-ignore Class inheritance allowed for native defined classes -export class PistonActivateAfterEventSignal extends IPistonActivateAfterEventSignal { +export class PistonActivateAfterEventSignal { private constructor(); + /** + * @remarks + * Adds a callback that will be called when a piston expands or + * retracts. + * + * This function can't be called in read-only mode. + * + * @example pistonAfterEvent.ts + * ```typescript + * // set up a couple of piston blocks + * let piston = overworld.getBlock(targetLocation); + * let button = overworld.getBlock({ x: targetLocation.x, y: targetLocation.y + 1, z: targetLocation.z }); + * + * if (piston === undefined || button === undefined) { + * log("Could not find block at location."); + * return -1; + * } + * + * piston.setPermutation(mc.BlockPermutation.resolve('piston').withState('facing_direction', 3)); + * button.setPermutation(mc.BlockPermutation.resolve('acacia_button').withState('facing_direction', 1)); + * + * mc.world.afterEvents.pistonActivate.subscribe((pistonEvent: mc.PistonActivateAfterEvent) => { + * let eventLoc = pistonEvent.piston.block.location; + * + * if (eventLoc.x === targetLocation.x && eventLoc.y === targetLocation.y && eventLoc.z === targetLocation.z) { + * log( + * "Piston event at " + + * mc.system.currentTick + + * (pistonEvent.piston.isMoving ? " Moving" : "") + + * (pistonEvent.piston.isExpanding ? " Expanding" : "") + + * (pistonEvent.piston.isExpanded ? " Expanded" : "") + + * (pistonEvent.piston.isRetracting ? " Retracting" : "") + + * (pistonEvent.piston.isRetracted ? " Retracted" : "") + * ); + * } + * }); + * ``` + * @example pistonEvent.ts + * ```typescript + * let canceled = false; + * + * const pistonLoc: mc.Vector3 = { + * x: Math.floor(targetLocation.x) + 1, + * y: Math.floor(targetLocation.y) + 2, + * z: Math.floor(targetLocation.z) + 1, + * }; + * + * const pistonCallback = mc.world.beforeEvents.pistonActivate.subscribe((pistonEvent: mc.PistonActivateBeforeEvent) => { + * if (pistonEvent.piston.location.equals(pistonLoc)) { + * log("Cancelling piston event"); + * pistonEvent.cancel = true; + * canceled = true; + * } + * }); + * + * ``` + */ + subscribe(callback: (arg: PistonActivateAfterEvent) => void): (arg: PistonActivateAfterEvent) => void; + /** + * @remarks + * Removes a callback from being called when a piston expands + * or retracts. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + unsubscribe(callback: (arg: PistonActivateAfterEvent) => void): void; } /** @@ -14064,9 +8834,71 @@ export class PistonActivateBeforeEvent extends BlockEvent { * Manages callbacks that are connected to an event that fires * before a piston is activated. */ -// @ts-ignore Class inheritance allowed for native defined classes -export class PistonActivateBeforeEventSignal extends IPistonActivateBeforeEventSignal { +export class PistonActivateBeforeEventSignal { private constructor(); + /** + * @remarks + * Adds a callback that will be called before a piston expands + * or retracts. + * + * This function can't be called in read-only mode. + * + * @example pistonBeforeEvent.ts + * ```typescript + * // set up a couple of piston blocks + * let piston = overworld.getBlock(targetLocation); + * let button = overworld.getBlock({ x: targetLocation.x, y: targetLocation.y + 1, z: targetLocation.z }); + * + * if (piston === undefined || button === undefined) { + * log("Could not find block at location."); + * return -1; + * } + * + * piston.setPermutation(mc.BlockPermutation.resolve('piston').withState('facing_direction', 3)); + * button.setPermutation(mc.BlockPermutation.resolve('acacia_button').withState('facing_direction', 1)); + * + * const uncanceledPistonLoc = { + * x: Math.floor(targetLocation.x) + 2, + * y: Math.floor(targetLocation.y), + * z: Math.floor(targetLocation.z) + 2, + * }; + * + * // this is our control. + * let uncanceledPiston = overworld.getBlock(uncanceledPistonLoc); + * let uncanceledButton = overworld.getBlock({ + * x: uncanceledPistonLoc.x, + * y: uncanceledPistonLoc.y + 1, + * z: uncanceledPistonLoc.z, + * }); + * + * if (uncanceledPiston === undefined || uncanceledButton === undefined) { + * log("Could not find block at location."); + * return -1; + * } + * + * uncanceledPiston.setPermutation(mc.BlockPermutation.resolve('piston').withState('facing_direction', 3)); + * uncanceledButton.setPermutation(mc.BlockPermutation.resolve('acacia_button').withState('facing_direction', 1)); + * + * mc.world.beforeEvents.pistonActivate.subscribe((pistonEvent: mc.PistonActivateBeforeEvent) => { + * let eventLoc = pistonEvent.piston.block.location; + * if (eventLoc.x === targetLocation.x && eventLoc.y === targetLocation.y && eventLoc.z === targetLocation.z) { + * log("Cancelling piston event"); + * pistonEvent.cancel = true; + * } + * }); + * ``` + */ + subscribe(callback: (arg: PistonActivateBeforeEvent) => void): (arg: PistonActivateBeforeEvent) => void; + /** + * @remarks + * Removes a callback from being called before a piston expands + * or retracts. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + unsubscribe(callback: (arg: PistonActivateBeforeEvent) => void): void; } /** @@ -14075,6 +8907,22 @@ export class PistonActivateBeforeEventSignal extends IPistonActivateBeforeEventS // @ts-ignore Class inheritance allowed for native defined classes export class Player extends Entity { private constructor(); + /** + * @beta + * @remarks + * The player's Camera. + * + * @throws This property can throw when used. + */ + readonly camera: Camera; + /** + * @beta + * @remarks + * If true, the player is currently emoting. + * + * @throws This property can throw when used. + */ + readonly isEmoting: boolean; /** * @beta * @remarks @@ -14118,7 +8966,6 @@ export class Player extends Entity { */ readonly name: string; /** - * @beta * @remarks * Contains methods for manipulating the on-screen display of a * Player. @@ -14162,6 +9009,7 @@ export class Player extends Entity { * * @param amount * Amount of experience to add. Note that this can be negative. + * Min/max bounds at -2^24 ~ 2^24 * @returns * Returns the current experience of the Player. * @throws This function can throw errors. @@ -14176,7 +9024,7 @@ export class Player extends Entity { * This function can't be called in read-only mode. * * @param amount - * Amount to add to the player. + * Amount to add to the player. Min/max bounds at -2^24 ~ 2^24 * @returns * Returns the current level of the Player. * @throws This function can throw errors. @@ -14195,7 +9043,6 @@ export class Player extends Entity { */ getItemCooldown(itemCategory: string): number; /** - * @beta * @remarks * Gets the current spawn point of the player. * @@ -14275,95 +9122,226 @@ export class Player extends Entity { * * @throws This function can throw errors. */ - resetLevel(): void; + resetLevel(): void; + /** + * @remarks + * Sends a message to the player. + * + * @param message + * The message to be displayed. + * @throws + * This method can throw if the provided {@link RawMessage} is + * in an invalid format. For example, if an empty `name` string + * is provided to `score`. + * @example nestedTranslation.ts + * ```typescript + * // Displays "Apple or Coal" + * let rawMessage = { + * translate: "accessibility.list.or.two", + * with: { rawtext: [{ translate: "item.apple.name" }, { translate: "item.coal.name" }] }, + * }; + * player.sendMessage(rawMessage); + * ``` + * @example scoreWildcard.ts + * ```typescript + * // Displays the player's score for objective "obj". Each player will see their own score. + * const rawMessage = { score: { name: "*", objective: "obj" } }; + * world.sendMessage(rawMessage); + * ``` + * @example sendBasicMessage.ts + * ```typescript + * let players = mc.world.getPlayers(); + * + * players[0].sendMessage("Hello World!"); + * ``` + * @example sendTranslatedMessage.ts + * ```typescript + * let players = mc.world.getPlayers(); + * + * players[0].sendMessage({ translate: "authentication.welcome", with: ["Amazing Player 1"] }); + * ``` + * @example simpleString.ts + * ```typescript + * // Displays "Hello, world!" + * world.sendMessage("Hello, world!"); + * ``` + * @example translation.ts + * ```typescript + * // Displays "First or Second" + * const rawMessage = { translate: "accessibility.list.or.two", with: ["First", "Second"] }; + * player.sendMessage(rawMessage); + * ``` + */ + sendMessage(message: (RawMessage | string)[] | RawMessage | string): void; + /** + * @beta + * @remarks + * Will change the specified players permissions, and whether + * they are operator or not. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + setOp(isOp: boolean): void; + /** + * @remarks + * Sets the current starting spawn point for this particular + * player. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + * + * {@link Error} + * + * {@link LocationOutOfWorldBoundariesError} + */ + setSpawnPoint(spawnPoint?: DimensionLocation): void; + /** + * @beta + * @remarks + * Sets the item cooldown time for a particular cooldown + * category. + * + * This function can't be called in read-only mode. + * + * @param itemCategory + * Specifies the cooldown category to retrieve the current + * cooldown for. + * @param tickDuration + * Duration in ticks of the item cooldown. + * @throws This function can throw errors. + */ + startItemCooldown(itemCategory: string, tickDuration: number): void; +} + +/** + * @beta + * Contains information regarding an event after a player + * breaks a block. + */ +// @ts-ignore Class inheritance allowed for native defined classes +export class PlayerBreakBlockAfterEvent extends BlockEvent { + private constructor(); + /** + * @remarks + * Returns permutation information about this block before it + * was broken. + * + */ + readonly brokenBlockPermutation: BlockPermutation; + /** + * @remarks + * The item stack that was used to break the block after the + * block was broken, or undefined if empty hand. + * + */ + readonly itemStackAfterBreak?: ItemStack; + /** + * @remarks + * The item stack that was used to break the block before the + * block was broken, or undefined if empty hand. + * + */ + readonly itemStackBeforeBreak?: ItemStack; + /** + * @remarks + * Player that broke the block for this event. + * + */ + readonly player: Player; +} + +/** + * @beta + * Manages callbacks that are connected to when a player breaks + * a block. + */ +export class PlayerBreakBlockAfterEventSignal { + private constructor(); + /** + * @remarks + * Adds a callback that will be called when a block is broken + * by a player. + * + * This function can't be called in read-only mode. + * + */ + subscribe( + callback: (arg: PlayerBreakBlockAfterEvent) => void, + options?: BlockEventOptions, + ): (arg: PlayerBreakBlockAfterEvent) => void; + /** + * @remarks + * Removes a callback from being called when a player breaks a + * block. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + unsubscribe(callback: (arg: PlayerBreakBlockAfterEvent) => void): void; +} + +/** + * @beta + * Contains information regarding an event before a player + * breaks a block. + */ +// @ts-ignore Class inheritance allowed for native defined classes +export class PlayerBreakBlockBeforeEvent extends BlockEvent { + private constructor(); /** * @remarks - * Sends a message to the player. - * - * @param message - * The message to be displayed. - * @throws - * This method can throw if the provided {@link RawMessage} is - * in an invalid format. For example, if an empty `name` string - * is provided to `score`. - * @example nestedTranslation.ts - * ```typescript - * // Displays "Apple or Coal" - * let rawMessage = { - * translate: "accessibility.list.or.two", - * with: { rawtext: [{ translate: "item.apple.name" }, { translate: "item.coal.name" }] }, - * }; - * player.sendMessage(rawMessage); - * ``` - * @example scoreWildcard.ts - * ```typescript - * // Displays the player's score for objective "obj". Each player will see their own score. - * const rawMessage = { score: { name: "*", objective: "obj" } }; - * world.sendMessage(rawMessage); - * ``` - * @example sendBasicMessage.ts - * ```typescript - * let players = mc.world.getPlayers(); - * - * players[0].sendMessage("Hello World!"); - * ``` - * @example sendTranslatedMessage.ts - * ```typescript - * let players = mc.world.getPlayers(); + * If set to true, cancels the block break event. * - * players[0].sendMessage({ translate: "authentication.welcome", with: ["Amazing Player 1"] }); - * ``` - * @example simpleString.ts - * ```typescript - * // Displays "Hello, world!" - * world.sendMessage("Hello, world!"); - * ``` - * @example translation.ts - * ```typescript - * // Displays "First or Second" - * const rawMessage = { translate: "accessibility.list.or.two", with: ["First", "Second"] }; - * player.sendMessage(rawMessage); - * ``` */ - sendMessage(message: (RawMessage | string)[] | RawMessage | string): void; + cancel: boolean; /** - * @beta * @remarks - * Will change the specified players permissions, and whether - * they are operator or not. + * The item stack that is being used to break the block, or + * undefined if empty hand. * - * This function can't be called in read-only mode. + */ + itemStack?: ItemStack; + /** + * @remarks + * Player breaking the block for this event. * - * @throws This function can throw errors. */ - setOp(isOp: boolean): void; + readonly player: Player; +} + +/** + * @beta + * Manages callbacks that are connected to before a player + * breaks a block. + */ +export class PlayerBreakBlockBeforeEventSignal { + private constructor(); /** - * @beta * @remarks - * Sets the current starting spawn point for this particular - * player. + * Adds a callback that will be called before a block is broken + * by a player. * * This function can't be called in read-only mode. * - * @throws This function can throw errors. */ - setSpawnPoint(spawnPoint?: DimensionLocation): void; + subscribe( + callback: (arg: PlayerBreakBlockBeforeEvent) => void, + options?: BlockEventOptions, + ): (arg: PlayerBreakBlockBeforeEvent) => void; /** - * @beta * @remarks - * Sets the item cooldown time for a particular cooldown - * category. + * Removes a callback from being called before a player breaks + * a block. * * This function can't be called in read-only mode. * - * @param itemCategory - * Specifies the cooldown category to retrieve the current - * cooldown for. - * @param tickDuration - * Duration in ticks of the item cooldown. * @throws This function can throw errors. */ - startItemCooldown(itemCategory: string, tickDuration: number): void; + unsubscribe(callback: (arg: PlayerBreakBlockBeforeEvent) => void): void; } /** @@ -14453,6 +9431,125 @@ export class PlayerLeaveAfterEventSignal extends IPlayerLeaveAfterEventSignal { private constructor(); } +/** + * @beta + * Contains information regarding an event where a player + * places a block. + */ +// @ts-ignore Class inheritance allowed for native defined classes +export class PlayerPlaceBlockAfterEvent extends BlockEvent { + private constructor(); + /** + * @remarks + * Player that placed the block for this event. + * + */ + readonly player: Player; +} + +/** + * @beta + * Manages callbacks that are connected to when a block is + * placed by a player. + */ +export class PlayerPlaceBlockAfterEventSignal { + private constructor(); + /** + * @remarks + * Adds a callback that will be called when a block is placed + * by a player. + * + * This function can't be called in read-only mode. + * + */ + subscribe( + callback: (arg: PlayerPlaceBlockAfterEvent) => void, + options?: BlockEventOptions, + ): (arg: PlayerPlaceBlockAfterEvent) => void; + /** + * @remarks + * Removes a callback from being called when an block is placed + * by a player. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + unsubscribe(callback: (arg: PlayerPlaceBlockAfterEvent) => void): void; +} + +/** + * @beta + * Contains information regarding an event before a player + * places a block. + */ +// @ts-ignore Class inheritance allowed for native defined classes +export class PlayerPlaceBlockBeforeEvent extends BlockEvent { + private constructor(); + /** + * @remarks + * If set to true, cancels the block place event. + * + */ + cancel: boolean; + /** + * @remarks + * The face of the block that the new block is being placed on. + * + */ + readonly face: Direction; + /** + * @remarks + * Location relative to the bottom north-west corner of the + * block where the new block is being placed onto. + * + */ + readonly faceLocation: Vector3; + /** + * @remarks + * The item being used to place the block. + * + */ + itemStack: ItemStack; + /** + * @remarks + * Player that is placing the block for this event. + * + */ + readonly player: Player; +} + +/** + * @beta + * Manages callbacks that are connected to before a block is + * placed by a player. + */ +export class PlayerPlaceBlockBeforeEventSignal { + private constructor(); + /** + * @remarks + * Adds a callback that will be called before a block is placed + * by a player. + * + * This function can't be called in read-only mode. + * + */ + subscribe( + callback: (arg: PlayerPlaceBlockBeforeEvent) => void, + options?: BlockEventOptions, + ): (arg: PlayerPlaceBlockBeforeEvent) => void; + /** + * @remarks + * Removes a callback from being called before an block is + * placed by a player. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + unsubscribe(callback: (arg: PlayerPlaceBlockBeforeEvent) => void): void; +} + /** * An event that contains more information about a player * spawning. @@ -14488,7 +9585,6 @@ export class PlayerSpawnAfterEventSignal extends IPlayerSpawnAfterEventSignal { } /** - * @beta * Contains information related to changes to a pressure plate * pop. */ @@ -14512,17 +9608,33 @@ export class PressurePlatePopAfterEvent extends BlockEvent { } /** - * @beta * Manages callbacks that are connected to when a pressure * plate is popped. */ -// @ts-ignore Class inheritance allowed for native defined classes -export class PressurePlatePopAfterEventSignal extends IPressurePlatePopAfterEventSignal { +export class PressurePlatePopAfterEventSignal { private constructor(); + /** + * @remarks + * Adds a callback that will be called when a pressure plate is + * popped. + * + * This function can't be called in read-only mode. + * + */ + subscribe(callback: (arg: PressurePlatePopAfterEvent) => void): (arg: PressurePlatePopAfterEvent) => void; + /** + * @remarks + * Removes a callback from being called when a pressure plate + * is popped. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + unsubscribe(callback: (arg: PressurePlatePopAfterEvent) => void): void; } /** - * @beta * Contains information related to changes to a pressure plate * push. */ @@ -14531,66 +9643,199 @@ export class PressurePlatePushAfterEvent extends BlockEvent { private constructor(); /** * @remarks - * The redstone power of the pressure plate before it was - * pushed. + * The redstone power of the pressure plate before it was + * pushed. + * + */ + readonly previousRedstonePower: number; + /** + * @remarks + * The redstone power of the pressure plate at the time of the + * push. + * + */ + readonly redstonePower: number; + /** + * @remarks + * Source that triggered the pressure plate push. + * + */ + readonly source: Entity; +} + +/** + * Manages callbacks that are connected to when a pressure + * plate is pushed. + */ +export class PressurePlatePushAfterEventSignal { + private constructor(); + /** + * @remarks + * Adds a callback that will be called when a pressure plate is + * pushed. + * + * This function can't be called in read-only mode. + * + */ + subscribe(callback: (arg: PressurePlatePushAfterEvent) => void): (arg: PressurePlatePushAfterEvent) => void; + /** + * @remarks + * Removes a callback from being called when a pressure plate + * is pushed. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + unsubscribe(callback: (arg: PressurePlatePushAfterEvent) => void): void; +} + +/** + * Contains information related to a projectile hitting a + * block. + */ +export class ProjectileHitBlockAfterEvent { + private constructor(); + /** + * @remarks + * Dimension where this projectile hit took place. + * + */ + readonly dimension: Dimension; + /** + * @remarks + * Direction vector of the projectile as it hit a block. + * + */ + readonly hitVector: Vector3; + /** + * @remarks + * Location where the projectile hit occurred. * */ - readonly previousRedstonePower: number; + readonly location: Vector3; /** * @remarks - * The redstone power of the pressure plate at the time of the - * push. + * Entity for the projectile that hit a block. * */ - readonly redstonePower: number; + readonly projectile: Entity; /** * @remarks - * Source that triggered the pressure plate push. + * Optional source entity that fired the projectile. * */ - readonly source: Entity; + readonly source?: Entity; + /** + * @remarks + * Contains additional information about the block that was hit + * by the projectile. + * + * This function can't be called in read-only mode. + * + */ + getBlockHit(): BlockHitInformation; } /** - * @beta - * Manages callbacks that are connected to when a pressure - * plate is pushed. + * Manages callbacks that are connected to when a projectile + * hits a block. */ -// @ts-ignore Class inheritance allowed for native defined classes -export class PressurePlatePushAfterEventSignal extends IPressurePlatePushAfterEventSignal { +export class ProjectileHitBlockAfterEventSignal { private constructor(); + /** + * @remarks + * Adds a callback that will be called when a projectile hits a + * block. + * + * This function can't be called in read-only mode. + * + */ + subscribe(callback: (arg: ProjectileHitBlockAfterEvent) => void): (arg: ProjectileHitBlockAfterEvent) => void; + /** + * @remarks + * Removes a callback from being called when a projectile hits + * a block. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + unsubscribe(callback: (arg: ProjectileHitBlockAfterEvent) => void): void; } /** - * @beta + * Contains information related to a projectile hitting an + * entity. */ -export class ProjectileHitAfterEvent { +export class ProjectileHitEntityAfterEvent { private constructor(); + /** + * @remarks + * Dimension where this projectile hit took place. + * + */ readonly dimension: Dimension; + /** + * @remarks + * Direction vector of the projectile as it hit an entity. + * + */ readonly hitVector: Vector3; + /** + * @remarks + * Location where the projectile hit occurred. + * + */ readonly location: Vector3; + /** + * @remarks + * Entity for the projectile that hit an entity. + * + */ readonly projectile: Entity; - readonly source: Entity; /** * @remarks - * This function can't be called in read-only mode. + * Optional source entity that fired the projectile. * */ - getBlockHit(): BlockHitInformation | undefined; + readonly source?: Entity; /** * @remarks + * Contains additional information about an entity that was + * hit. + * * This function can't be called in read-only mode. * */ - getEntityHit(): EntityHitInformation | undefined; + getEntityHit(): EntityHitInformation; } /** - * @beta + * Manages callbacks that are connected to when a projectile + * hits an entity. */ -// @ts-ignore Class inheritance allowed for native defined classes -export class ProjectileHitAfterEventSignal extends IProjectileHitAfterEventSignal { +export class ProjectileHitEntityAfterEventSignal { private constructor(); + /** + * @remarks + * Adds a callback that will be called when a projectile hits + * an entity. + * + * This function can't be called in read-only mode. + * + */ + subscribe(callback: (arg: ProjectileHitEntityAfterEvent) => void): (arg: ProjectileHitEntityAfterEvent) => void; + /** + * @remarks + * Removes a callback from being called when a projectile hits + * an entity. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + unsubscribe(callback: (arg: ProjectileHitEntityAfterEvent) => void): void; } /** @@ -14612,7 +9857,7 @@ export class PropertyRegistry { */ registerEntityTypeDynamicProperties( propertiesDefinition: DynamicPropertiesDefinition, - entityType: EntityType, + entityTypeOrId: EntityType | string, ): void; /** * @remarks @@ -14626,7 +9871,6 @@ export class PropertyRegistry { } /** - * @beta * Contains objectives and participants for the scoreboard. */ export class Scoreboard { @@ -14646,38 +9890,33 @@ export class Scoreboard { * * This function can't be called in read-only mode. * - * @throws This function can throw errors. */ - clearObjectiveAtDisplaySlot(displaySlotId: DisplaySlotId): ScoreboardObjective; + clearObjectiveAtDisplaySlot(displaySlotId: DisplaySlotId): ScoreboardObjective | undefined; /** * @remarks * Returns a specific objective (by id). * * @param objectiveId * Identifier of the objective. - * @throws This function can throw errors. */ - getObjective(objectiveId: string): ScoreboardObjective; + getObjective(objectiveId: string): ScoreboardObjective | undefined; /** * @remarks * Returns an objective that occupies the specified display * slot. * - * @throws This function can throw errors. */ - getObjectiveAtDisplaySlot(displaySlotId: DisplaySlotId): ScoreboardObjectiveDisplayOptions; + getObjectiveAtDisplaySlot(displaySlotId: DisplaySlotId): ScoreboardObjectiveDisplayOptions | undefined; /** * @remarks * Returns all defined objectives. * - * @throws This function can throw errors. */ getObjectives(): ScoreboardObjective[]; /** * @remarks * Returns all defined scoreboard identities. * - * @throws This function can throw errors. */ getParticipants(): ScoreboardIdentity[]; /** @@ -14696,16 +9935,19 @@ export class Scoreboard { * * This function can't be called in read-only mode. * + * @returns + * Returns the previous `ScoreboardObjective` set at the + * display slot, if no objective was previously set it returns + * `undefined`. * @throws This function can throw errors. */ setObjectiveAtDisplaySlot( displaySlotId: DisplaySlotId, objectiveDisplaySetting: ScoreboardObjectiveDisplayOptions, - ): ScoreboardObjective; + ): ScoreboardObjective | undefined; } /** - * @beta * Contains an identity of the scoreboard item. */ export class ScoreboardIdentity { @@ -14735,12 +9977,17 @@ export class ScoreboardIdentity { * * @throws This function can throw errors. */ - getEntity(): Entity; + getEntity(): Entity | undefined; + /** + * @remarks + * Returns true if the ScoreboardIdentity reference is still + * valid. + * + */ isValid(): boolean; } /** - * @beta * Contains objectives and participants for the scoreboard. */ export class ScoreboardObjective { @@ -14760,6 +10007,17 @@ export class ScoreboardObjective { * @throws This property can throw when used. */ readonly id: string; + /** + * @remarks + * Adds a score to the given participant and objective. + * + * This function can't be called in read-only mode. + * + * @param participant + * Participant to apply the scoreboard value addition to. + * @throws This function can throw errors. + */ + addScore(participant: Entity | ScoreboardIdentity | string, scoreToAdd: number): number; /** * @remarks * Returns all objective participant identities. @@ -14792,6 +10050,12 @@ export class ScoreboardObjective { * @throws This function can throw errors. */ hasParticipant(participant: Entity | ScoreboardIdentity | string): boolean; + /** + * @remarks + * Returns true if the ScoreboardObjective reference is still + * valid. + * + */ isValid(): boolean; /** * @remarks @@ -14821,7 +10085,6 @@ export class ScoreboardObjective { } /** - * @beta * Contains a pair of a scoreboard participant and its * respective score. */ @@ -14842,7 +10105,6 @@ export class ScoreboardScoreInfo { } /** - * @beta * Contains information about user interface elements that are * showing up on the screen. */ @@ -14931,7 +10193,6 @@ export class ScreenDisplay { } /** - * @beta * Returns additional data about a /scriptevent command * invocation. */ @@ -14949,7 +10210,7 @@ export class ScriptEventCommandMessageAfterEvent { * that initiated the NPC dialogue. * */ - readonly initiator: Entity; + readonly initiator?: Entity; /** * @remarks * Optional additional data passed in with the script event @@ -14963,14 +10224,14 @@ export class ScriptEventCommandMessageAfterEvent { * (e.g., a commandblock.) * */ - readonly sourceBlock: Block; + readonly sourceBlock?: Block; /** * @remarks * Source entity if this command was triggered by an entity * (e.g., a NPC). * */ - readonly sourceEntity: Entity; + readonly sourceEntity?: Entity; /** * @remarks * Returns the type of source that fired this command. @@ -14980,13 +10241,31 @@ export class ScriptEventCommandMessageAfterEvent { } /** - * @beta * Allows for registering an event handler that responds to * inbound /scriptevent commands. */ -// @ts-ignore Class inheritance allowed for native defined classes -export class ScriptEventCommandMessageAfterEventSignal extends IScriptEventCommandMessageAfterEventSignal { +export class ScriptEventCommandMessageAfterEventSignal { private constructor(); + /** + * @remarks + * Registers a new ScriptEvent handler. + * + * This function can't be called in read-only mode. + * + */ + subscribe( + callback: (arg: ScriptEventCommandMessageAfterEvent) => void, + options?: ScriptEventMessageFilterOptions, + ): (arg: ScriptEventCommandMessageAfterEvent) => void; + /** + * @remarks + * Unsubscribes a particular handler for a ScriptEvent event. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + unsubscribe(callback: (arg: ScriptEventCommandMessageAfterEvent) => void): void; } /** @@ -15031,9 +10310,27 @@ export class Seat { * event is not currently fully implemented, and should not be * used. */ -// @ts-ignore Class inheritance allowed for native defined classes -export class ServerMessageAfterEventSignal extends IServerMessageAfterEventSignal { +export class ServerMessageAfterEventSignal { private constructor(); + /** + * @remarks + * Adds a callback that will be called when an internal message + * is passed. + * + * This function can't be called in read-only mode. + * + */ + subscribe(callback: (arg: MessageReceiveAfterEvent) => void): (arg: MessageReceiveAfterEvent) => void; + /** + * @remarks + * Removes a callback from being called when an internal + * message is passed. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + unsubscribe(callback: (arg: MessageReceiveAfterEvent) => void): void; } /** @@ -15042,7 +10339,6 @@ export class ServerMessageAfterEventSignal extends IServerMessageAfterEventSigna export class System { private constructor(); /** - * @beta * @remarks * Returns a collection of after-events for system-level * operations. @@ -15138,7 +10434,6 @@ export class System { } /** - * @beta * Provides a set of events that fire within the broader * scripting system within Minecraft. */ @@ -15177,7 +10472,6 @@ export class SystemBeforeEvents { } /** - * @beta * Contains information related to changes to a target block * hit. */ @@ -15211,13 +10505,30 @@ export class TargetBlockHitAfterEvent extends BlockEvent { } /** - * @beta * Manages callbacks that are connected to when a target block * is hit. */ -// @ts-ignore Class inheritance allowed for native defined classes -export class TargetBlockHitAfterEventSignal extends ITargetBlockHitAfterEventSignal { +export class TargetBlockHitAfterEventSignal { private constructor(); + /** + * @remarks + * Adds a callback that will be called when a target block is + * hit. + * + * This function can't be called in read-only mode. + * + */ + subscribe(callback: (arg: TargetBlockHitAfterEvent) => void): (arg: TargetBlockHitAfterEvent) => void; + /** + * @remarks + * Removes a callback from being called when a target block is + * hit. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + unsubscribe(callback: (arg: TargetBlockHitAfterEvent) => void): void; } /** @@ -15240,7 +10551,6 @@ export class Trigger { } /** - * @beta * Contains information related to changes to a trip wire trip. */ // @ts-ignore Class inheritance allowed for native defined classes @@ -15261,13 +10571,30 @@ export class TripWireTripAfterEvent extends BlockEvent { } /** - * @beta * Manages callbacks that are connected to when a trip wire is * tripped. */ -// @ts-ignore Class inheritance allowed for native defined classes -export class TripWireTripAfterEventSignal extends ITripWireTripAfterEventSignal { +export class TripWireTripAfterEventSignal { private constructor(); + /** + * @remarks + * Adds a callback that will be called when a trip wire is + * tripped. + * + * This function can't be called in read-only mode. + * + */ + subscribe(callback: (arg: TripWireTripAfterEvent) => void): (arg: TripWireTripAfterEvent) => void; + /** + * @remarks + * Removes a callback from being called when a trip wire is + * tripped. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + unsubscribe(callback: (arg: TripWireTripAfterEvent) => void): void; } /** @@ -15479,9 +10806,29 @@ export class WatchdogTerminateBeforeEvent { * be called when a script runtime is being terminated due to a * violation of the performance watchdog system. */ -// @ts-ignore Class inheritance allowed for native defined classes -export class WatchdogTerminateBeforeEventSignal extends IWatchdogTerminateBeforeEventSignal { +export class WatchdogTerminateBeforeEventSignal { private constructor(); + /** + * @remarks + * Adds a callback that will be called when a script runtime is + * being terminated due to a violation of the performance + * watchdog system. + * + * This function can't be called in read-only mode. + * + */ + subscribe(callback: (arg: WatchdogTerminateBeforeEvent) => void): (arg: WatchdogTerminateBeforeEvent) => void; + /** + * @remarks + * Removes a callback from being called when a script runtime + * is being terminated due to a violation of the performance + * watchdog system. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + unsubscribe(callback: (arg: WatchdogTerminateBeforeEvent) => void): void; } /** @@ -15515,9 +10862,25 @@ export class WeatherChangeAfterEvent { * @beta * Manages callbacks that are connected to weather changing. */ -// @ts-ignore Class inheritance allowed for native defined classes -export class WeatherChangeAfterEventSignal extends IWeatherChangeAfterEventSignal { +export class WeatherChangeAfterEventSignal { private constructor(); + /** + * @remarks + * Adds a callback that will be called when weather changes. + * + * This function can't be called in read-only mode. + * + */ + subscribe(callback: (arg: WeatherChangeAfterEvent) => void): (arg: WeatherChangeAfterEvent) => void; + /** + * @remarks + * Removes a callback from being called when weather changes. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + unsubscribe(callback: (arg: WeatherChangeAfterEvent) => void): void; } /** @@ -15527,7 +10890,6 @@ export class WeatherChangeAfterEventSignal extends IWeatherChangeAfterEventSigna export class World { private constructor(); /** - * @beta * @remarks * Contains a set of events that are applicable to the entirety * of the world. Event callbacks are called in a deferred @@ -15536,7 +10898,6 @@ export class World { */ readonly afterEvents: WorldAfterEvents; /** - * @beta * @remarks * Contains a set of events that are applicable to the entirety * of the world. Event callbacks are called immediately. Event @@ -15545,7 +10906,6 @@ export class World { */ readonly beforeEvents: WorldBeforeEvents; /** - * @beta * @remarks * Returns the general global scoreboard that applies to the * world. @@ -15567,7 +10927,6 @@ export class World { */ broadcastClientMessage(id: string, value: string): void; /** - * @beta * @remarks * Returns the absolute time since the start of the world. * @@ -15581,7 +10940,6 @@ export class World { */ getAllPlayers(): Player[]; /** - * @beta * @remarks * Returns the current day. * @@ -15591,7 +10949,6 @@ export class World { */ getDay(): number; /** - * @beta * @remarks * Returns the default Overworld spawn location. * @@ -15680,7 +11037,7 @@ export class World { * mc.world.setDynamicProperty("samplelibrary:longerjson", paintStr); * ``` */ - getDynamicProperty(identifier: string): boolean | number | string | undefined; + getDynamicProperty(identifier: string): boolean | number | string | Vector3 | undefined; /** * @beta * @remarks @@ -15694,6 +11051,13 @@ export class World { * Throws if the given entity id is invalid. */ getEntity(id: string): Entity | undefined; + /** + * @beta + * @remarks + * Returns the MoonPhase for the current time. + * + */ + getMoonPhase(): MoonPhase; /** * @remarks * Returns a set of players based on a set of conditions @@ -15709,7 +11073,6 @@ export class World { */ getPlayers(options?: EntityQueryOptions): Player[]; /** - * @beta * @remarks * Returns the time of day. * @@ -15794,6 +11157,8 @@ export class World { * * This function can't be called in read-only mode. * + * @param musicOptions + * Additional options for the music track. * @throws * An error will be thrown if volume is less than 0.0. * An error will be thrown if fade is less than 0.0. @@ -15849,7 +11214,6 @@ export class World { */ sendMessage(message: (RawMessage | string)[] | RawMessage | string): void; /** - * @beta * @remarks * Sets the world time. * @@ -15860,7 +11224,6 @@ export class World { */ setAbsoluteTime(absoluteTime: number): void; /** - * @beta * @remarks * Sets a default spawn location for all players. * @@ -15871,6 +11234,10 @@ export class World { * within the overworld dimension. * @throws * Throws if the provided spawn location is out of bounds. + * + * {@link Error} + * + * {@link LocationOutOfWorldBoundariesError} */ setDefaultSpawnLocation(spawnLocation: Vector3): void; /** @@ -15940,9 +11307,8 @@ export class World { * mc.world.setDynamicProperty("samplelibrary:longerjson", paintStr); * ``` */ - setDynamicProperty(identifier: string, value: boolean | number | string): void; + setDynamicProperty(identifier: string, value: boolean | number | string | Vector3): void; /** - * @beta * @remarks * Sets the time of day. * @@ -15971,13 +11337,6 @@ export class World { */ export class WorldAfterEvents { private constructor(); - /** - * @beta - * @remarks - * This event fires for a block that is broken by a player. - * - */ - readonly blockBreak: BlockBreakAfterEventSignal; /** * @beta * @remarks @@ -15987,13 +11346,6 @@ export class WorldAfterEvents { * */ readonly blockExplode: BlockExplodeAfterEventSignal; - /** - * @beta - * @remarks - * This event fires for a block that is placed by a player. - * - */ - readonly blockPlace: BlockPlaceAfterEventSignal; /** * @remarks * This event fires when a button is pushed. @@ -16026,26 +11378,32 @@ export class WorldAfterEvents { */ readonly effectAdd: EffectAddAfterEventSignal; /** - * @beta * @remarks * This event fires when an entity dies. * */ readonly entityDie: EntityDieAfterEventSignal; /** - * @beta + * @remarks + * This event fires when entity health changes in any degree. + * */ readonly entityHealthChanged: EntityHealthChangedAfterEventSignal; /** - * @beta + * @remarks + * This event fires when an entity hits (that is, melee + * attacks) a block. + * */ readonly entityHitBlock: EntityHitBlockAfterEventSignal; /** - * @beta + * @remarks + * This event fires when an entity hits (that is, melee + * attacks) another entity. + * */ readonly entityHitEntity: EntityHitEntityAfterEventSignal; /** - * @beta * @remarks * This event fires when an entity is hurt (takes damage). * @@ -16053,8 +11411,19 @@ export class WorldAfterEvents { readonly entityHurt: EntityHurtAfterEventSignal; /** * @beta + * @remarks + * Fires when an entity is loaded. + * + */ + readonly entityLoad: EntityLoadAfterEventSignal; + /** + * @beta + * @remarks + * Fires when an entity is removed (for example, potentially + * unloaded, or removed after being killed). + * */ - readonly entityRemoved: EntityRemovedAfterEventSignal; + readonly entityRemove: EntityRemoveAfterEventSignal; /** * @beta * @remarks @@ -16070,7 +11439,9 @@ export class WorldAfterEvents { */ readonly explosion: ExplosionAfterEventSignal; /** - * @beta + * @remarks + * This event fires when a chargeable item completes charging. + * */ readonly itemCompleteUse: ItemCompleteUseAfterEventSignal; /** @@ -16084,15 +11455,19 @@ export class WorldAfterEvents { */ readonly itemDefinitionEvent: ItemDefinitionAfterEventSignal; /** - * @beta + * @remarks + * This event fires when a chargeable item is released from + * charging. + * */ readonly itemReleaseUse: ItemReleaseUseAfterEventSignal; /** - * @beta + * @remarks + * This event fires when a chargeable item starts charging. + * */ readonly itemStartUse: ItemStartUseAfterEventSignal; /** - * @beta * @remarks * This event fires when a player successfully uses an item or * places a block by pressing the Use Item / Place Block @@ -16103,11 +11478,12 @@ export class WorldAfterEvents { */ readonly itemStartUseOn: ItemStartUseOnAfterEventSignal; /** - * @beta + * @remarks + * This event fires when a chargeable item stops charging. + * */ readonly itemStopUse: ItemStopUseAfterEventSignal; /** - * @beta * @remarks * This event fires when a player releases the Use Item / Place * Block button after successfully using an item. Note: This @@ -16116,7 +11492,6 @@ export class WorldAfterEvents { */ readonly itemStopUseOn: ItemStopUseOnAfterEventSignal; /** - * @beta * @remarks * This event fires when an item is successfully used by a * player. @@ -16124,13 +11499,17 @@ export class WorldAfterEvents { */ readonly itemUse: ItemUseAfterEventSignal; /** - * @beta * @remarks * This event fires when an item is used on a block by a * player. * */ readonly itemUseOn: ItemUseOnAfterEventSignal; + /** + * @remarks + * A lever has been pulled. + * + */ readonly leverAction: LeverActionAfterEventSignal; /** * @beta @@ -16147,6 +11526,13 @@ export class WorldAfterEvents { * */ readonly pistonActivate: PistonActivateAfterEventSignal; + /** + * @beta + * @remarks + * This event fires for a block that is broken by a player. + * + */ + readonly playerBreakBlock: PlayerBreakBlockAfterEventSignal; /** * @remarks * This event fires when a player joins a world. See also @@ -16161,6 +11547,13 @@ export class WorldAfterEvents { * */ readonly playerLeave: PlayerLeaveAfterEventSignal; + /** + * @beta + * @remarks + * This event fires for a block that is placed by a player. + * + */ + readonly playerPlaceBlock: PlayerPlaceBlockAfterEventSignal; /** * @remarks * This event fires when a player spawns or respawns. Note that @@ -16170,23 +11563,41 @@ export class WorldAfterEvents { */ readonly playerSpawn: PlayerSpawnAfterEventSignal; /** - * @beta + * @remarks + * A pressure plate has popped back up (i.e., there are no + * entities on the pressure plate.) + * */ readonly pressurePlatePop: PressurePlatePopAfterEventSignal; /** - * @beta + * @remarks + * A pressure plate has pushed (at least one entity has moved + * onto a pressure plate.) + * */ readonly pressurePlatePush: PressurePlatePushAfterEventSignal; /** - * @beta + * @remarks + * This event fires when a projectile hits a block. + * */ - readonly projectileHit: ProjectileHitAfterEventSignal; + readonly projectileHitBlock: ProjectileHitBlockAfterEventSignal; /** - * @beta + * @remarks + * This event fires when a projectile hits an entity. + * + */ + readonly projectileHitEntity: ProjectileHitEntityAfterEventSignal; + /** + * @remarks + * A target block was hit. + * */ readonly targetBlockHit: TargetBlockHitAfterEventSignal; /** - * @beta + * @remarks + * A trip wire was tripped. + * */ readonly tripWireTrip: TripWireTripAfterEventSignal; /** @@ -16209,7 +11620,6 @@ export class WorldAfterEvents { } /** - * @beta * A set of events that fire before an actual action occurs. In * most cases, you can potentially cancel or modify the * impending event. Note that in before events any APIs that @@ -16219,6 +11629,7 @@ export class WorldAfterEvents { export class WorldBeforeEvents { private constructor(); /** + * @beta * @remarks * This event is triggered after a chat message has been * broadcast or sent to players. @@ -16226,6 +11637,7 @@ export class WorldBeforeEvents { */ readonly chatSend: ChatSendBeforeEventSignal; /** + * @beta * @remarks * This event is fired when an entity event has been triggered * that will update the component definition state of an @@ -16234,12 +11646,22 @@ export class WorldBeforeEvents { */ readonly dataDrivenEntityTriggerEvent: DataDrivenEntityTriggerBeforeEventSignal; /** + * @beta + * @remarks + * Fires before an entity is removed from the world (for + * example, unloaded or removed after being killed.) + * + */ + readonly entityRemove: EntityRemoveBeforeEventSignal; + /** + * @beta * @remarks * This event is fired after an explosion occurs. * */ readonly explosion: ExplosionBeforeEventSignal; /** + * @beta * @remarks * For custom items, this event is triggered when the * fundamental set of defined components for the item change. @@ -16263,11 +11685,26 @@ export class WorldBeforeEvents { */ readonly itemUseOn: ItemUseOnBeforeEventSignal; /** + * @beta * @remarks * This event fires when a piston expands or retracts. * */ readonly pistonActivate: PistonActivateBeforeEventSignal; + /** + * @beta + * @remarks + * This event fires before a block is broken by a player. + * + */ + readonly playerBreakBlock: PlayerBreakBlockBeforeEventSignal; + /** + * @beta + * @remarks + * This event fires before a block is placed by a player. + * + */ + readonly playerPlaceBlock: PlayerPlaceBlockBeforeEventSignal; } /** @@ -16311,9 +11748,48 @@ export class WorldInitializeAfterEvent { * may run multiple times within a session in the case that the * /reload command is used. */ -// @ts-ignore Class inheritance allowed for native defined classes -export class WorldInitializeAfterEventSignal extends IWorldInitializeAfterEventSignal { +export class WorldInitializeAfterEventSignal { private constructor(); + /** + * @remarks + * Adds a callback that will be called when the scripting + * environment is initialized for a World. + * + * This function can't be called in read-only mode. + * + */ + subscribe(callback: (arg: WorldInitializeAfterEvent) => void): (arg: WorldInitializeAfterEvent) => void; + /** + * @remarks + * Removes a callback from being called the scripting + * environment is initialized for a World. + * + * This function can't be called in read-only mode. + * + * @throws This function can throw errors. + */ + unsubscribe(callback: (arg: WorldInitializeAfterEvent) => void): void; +} + +/** + * @beta + * Contains optional parameters for registering a block event. + */ +export interface BlockEventOptions { + /** + * @remarks + * If this value is set, this event will only fire if the + * impacted block's type matches this parameter. + * + */ + blockTypes?: string[]; + /** + * @remarks + * If this value is set, this event will only fire if the + * impacted block's permutation matches this parameter. + * + */ + permutations?: BlockPermutation[]; } /** @@ -16331,7 +11807,6 @@ export interface BlockFillOptions { } /** - * @beta * Contains more information for events where a block is hit. */ export interface BlockHitInformation { @@ -16357,7 +11832,6 @@ export interface BlockHitInformation { } /** - * @beta * Contains information for block raycast hit results. */ export interface BlockRaycastHit { @@ -16383,7 +11857,6 @@ export interface BlockRaycastHit { } /** - * @beta * Contains additional options for configuring a block raycast * query. */ @@ -16494,12 +11967,65 @@ export interface BoundingBox { /** * @beta + * Contains options associated with a camera ease operation. */ -export interface Color { - alpha: number; - blue: number; - green: number; - red: number; +export interface CameraEaseOptions { + /** + * @remarks + * Time for the ease operation. + * + */ + easeTime?: number; + /** + * @remarks + * Type of ease operation to use. + * + */ + easeType?: EasingType; +} + +/** + * @beta + * Used to initiate a full-screen color fade. + */ +export interface CameraFadeOptions { + /** + * @remarks + * Fade color to use. + * + */ + fadeColor?: RGB; + /** + * @remarks + * Time in seconds for the fade-in, hold, and fade-out seconds. + * + */ + fadeTime?: CameraFadeTimeOptions; +} + +/** + * @beta + * Contains timings for a fade transition. + */ +export interface CameraFadeTimeOptions { + /** + * @remarks + * Time, in seconds, for a fade-in. + * + */ + fadeInTime: number; + /** + * @remarks + * Time, in seconds, for a fade-out. + * + */ + fadeOutTime: number; + /** + * @remarks + * Time, in seconds, to hold the full screen color. + * + */ + holdTime: number; } /** @@ -16519,7 +12045,15 @@ export interface CompoundBlockVolumeItem { * negative space in the overall compound block volume. * */ - action: CompoundBlockVolumeAction; + action?: CompoundBlockVolumeAction; + /** + * @remarks + * The relativity enumeration determines whether the + * BlockVolume specified is positioned relative to the parent + * compound block volume origin, or in absolute world space. + * + */ + locationRelativity?: CompoundBlockVolumePositionRelativity; /** * @remarks * The volume of space @@ -16529,32 +12063,31 @@ export interface CompoundBlockVolumeItem { } /** - * @beta * An exact coordinate within the world, including its * dimension and location. */ export interface DimensionLocation { /** * @remarks - * The dimension. + * Dimension that this coordinate is associated with. * */ dimension: Dimension; /** * @remarks - * The x coordinate. + * X component of this dimension-location. * */ x: number; /** * @remarks - * The y coordinate. + * Y component of this dimension-location. * */ y: number; /** * @remarks - * The z coordinate. + * Z component of this dimension-location. * */ z: number; @@ -16598,7 +12131,6 @@ export interface EntityApplyDamageOptions { } /** - * @beta * Provides information about how damage has been applied to an * entity. */ @@ -16672,7 +12204,6 @@ export interface EntityEffectOptions { } /** - * @beta * Contains optional parameters for registering an entity * event. */ @@ -16694,7 +12225,6 @@ export interface EntityEventOptions { } /** - * @beta * Contains additional information about an entity that was * hit. */ @@ -16912,7 +12442,6 @@ export interface EntityQueryScoreOptions { } /** - * @beta * Contains information for entity raycast hit results. */ export interface EntityRaycastHit { @@ -16931,7 +12460,6 @@ export interface EntityRaycastHit { } /** - * @beta * Contains additional options for an entity raycast operation. */ export interface EntityRaycastOptions { @@ -17081,9 +12609,14 @@ export interface PlayerSoundOptions { } /** - * Defines a JSON structure that is used for more flexible + * Defines a JSON structure that is used for more flexible. */ export interface RawMessage { + /** + * @remarks + * Provides a raw-text equivalent of the current message. + * + */ rawtext?: RawMessage[]; /** * @remarks @@ -17106,6 +12639,13 @@ export interface RawMessage { * */ translate?: string; + /** + * @remarks + * Arguments for the translation token. Can be either an array + * of strings or RawMessage containing an array of raw text + * objects. + * + */ with?: string[] | RawMessage; } @@ -17137,11 +12677,76 @@ export interface RawMessageScore { * `BlockSignComponent.getRawText` for examples. */ export interface RawText { + /** + * @remarks + * A serialization of the current value of an associated sign. + * + */ rawtext?: RawMessage[]; } /** - * @beta + * Represents a fully customizable color within Minecraft. + */ +export interface RGB { + /** + * @remarks + * Determines a color's blue component. Valid values are + * between 0 and 1.0. + * + */ + blue: number; + /** + * @remarks + * Determines a color's green component. Valid values are + * between 0 and 1.0. + * + */ + green: number; + /** + * @remarks + * Determines a color's red component. Valid values are between + * 0 and 1.0. + * + */ + red: number; +} + +/** + * Represents a fully customizable color within Minecraft. + */ +export interface RGBA { + /** + * @remarks + * Determines a color's alpha (opacity) component. Valid values + * are between 0 (transparent) and 1.0 (opaque). + * + */ + alpha: number; + /** + * @remarks + * Determines a color's blue component. Valid values are + * between 0 and 1.0. + * + */ + blue: number; + /** + * @remarks + * Determines a color's green component. Valid values are + * between 0 and 1.0. + * + */ + green: number; + /** + * @remarks + * Determines a color's red component. Valid values are between + * 0 and 1.0. + * + */ + red: number; +} + +/** * Contains additional options for how a scoreboard should be * displayed within its display slot. */ @@ -17162,6 +12767,47 @@ export interface ScoreboardObjectiveDisplayOptions { /** * @beta + */ +export interface ScriptCameraDefaultOptions { + easeOptions: CameraEaseOptions; +} + +/** + * @beta + */ +export interface ScriptCameraSetFacingOptions { + easeOptions?: CameraEaseOptions; + facingEntity: Entity; + location?: Vector3; +} + +/** + * @beta + */ +export interface ScriptCameraSetLocationOptions { + easeOptions?: CameraEaseOptions; + location: Vector3; +} + +/** + * @beta + */ +export interface ScriptCameraSetPosOptions { + easeOptions?: CameraEaseOptions; + facingLocation: Vector3; + location?: Vector3; +} + +/** + * @beta + */ +export interface ScriptCameraSetRotOptions { + easeOptions?: CameraEaseOptions; + location?: Vector3; + rotation: Vector2; +} + +/** * Contains additional options for registering a script event * event callback. */ @@ -17215,7 +12861,6 @@ export interface TeleportOptions { } /** - * @beta * Contains additional options for displaying a title and * optional subtitle. */ @@ -17314,30 +12959,28 @@ export interface WorldSoundOptions { volume?: number; } -/** - * @beta - */ // @ts-ignore Class inheritance allowed for native defined classes export class CommandError extends Error { private constructor(); } -/** - * @beta - */ // @ts-ignore Class inheritance allowed for native defined classes -export class PositionInUnloadedChunkError extends Error { +export class LocationInUnloadedChunkError extends Error { private constructor(); } -/** - * @beta - */ // @ts-ignore Class inheritance allowed for native defined classes -export class PositionOutOfWorldBoundariesError extends Error { +export class LocationOutOfWorldBoundariesError extends Error { private constructor(); } +/** + * @beta + * @remarks + * Holds the number of MoonPhases + * + */ +export const MoonPhaseCount = 8; /** * @beta */ diff --git a/node_modules/@minecraft/server/package.json b/node_modules/@minecraft/server/package.json index 7c56f10..df38cd4 100644 --- a/node_modules/@minecraft/server/package.json +++ b/node_modules/@minecraft/server/package.json @@ -1,6 +1,6 @@ { "name": "@minecraft/server", - "version": "1.4.0-beta.1.20.10-stable", + "version": "1.6.0-beta.1.20.30-stable", "description": "", "contributors": [ { diff --git a/node_modules/prettier/LICENSE b/node_modules/prettier/LICENSE index 2567663..229e375 100644 --- a/node_modules/prettier/LICENSE +++ b/node_modules/prettier/LICENSE @@ -13,11 +13,11 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI ## Licenses of bundled dependencies The published Prettier artifact additionally contains code with the following licenses: -MIT, ISC, BSD-2-Clause, BSD-3-Clause, 0BSD, Apache-2.0 +MIT, ISC, BSD-2-Clause, BSD-3-Clause, Apache-2.0 ## Bundled dependencies -### @angular/compiler@v16.1.3 +### @angular/compiler@v16.2.2 > Angular - the compiler library @@ -27,7 +27,7 @@ Author: angular ---------------------------------------- -### @babel/code-frame@v7.22.5 +### @babel/code-frame@v7.22.10 > Generate errors that contain a code frame that point to source locations. @@ -94,7 +94,7 @@ Author: The Babel Team (https://babel.dev/team) ---------------------------------------- -### @babel/highlight@v7.22.5 +### @babel/highlight@v7.22.10 > Syntax highlight JavaScript strings for output in terminals. @@ -128,7 +128,7 @@ Author: The Babel Team (https://babel.dev/team) ---------------------------------------- -### @babel/parser@v7.22.5 +### @babel/parser@v7.22.11 > A JavaScript parser @@ -366,7 +366,7 @@ License: MIT ---------------------------------------- -### @prettier/is-es5-identifier-name@v0.1.0 +### @prettier/is-es5-identifier-name@v0.2.0 > Check if provided string is an `IdentifierName` as specified in ECMA262 edition 5.1 section 7.6. @@ -397,7 +397,7 @@ Author: fisker Cheung ---------------------------------------- -### @prettier/parse-srcset@v3.0.0 +### @prettier/parse-srcset@v3.1.0 > A spec-conformant JavaScript parser for the HTML5 srcset attribute @@ -408,6 +408,7 @@ Author: Alex Bell > The MIT License (MIT) > > Copyright (c) 2014 Alex Bell +> Copyright (c) fisker Cheung > > Permission is hereby granted, free of charge, to any person obtaining a copy > of this software and associated documentation files (the "Software"), to deal @@ -429,7 +430,7 @@ Author: Alex Bell ---------------------------------------- -### @typescript-eslint/types@v5.60.1 +### @typescript-eslint/types@v6.5.0 > Types for the TypeScript-ESTree AST spec @@ -460,7 +461,7 @@ Repository: ---------------------------------------- -### @typescript-eslint/typescript-estree@v5.60.1 +### @typescript-eslint/typescript-estree@v6.5.0 > A parser that converts TypeScript source code into an ESTree compatible form @@ -496,7 +497,7 @@ Repository: ---------------------------------------- -### acorn@v8.9.0 +### acorn@v8.10.0 > ECMAScript parser @@ -798,7 +799,7 @@ Contributors: ---------------------------------------- -### camelcase@v7.0.1 +### camelcase@v8.0.0 > Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar` @@ -869,7 +870,7 @@ License: MIT ---------------------------------------- -### chalk@v5.2.0 +### chalk@v5.3.0 > Terminal string styling done right @@ -1519,7 +1520,7 @@ Author: Sindre Sorhus (https://sindresorhus.com) ---------------------------------------- -### espree@v9.6.0 +### espree@v9.6.1 > An Esprima-compatible JavaScript parser built on Acorn @@ -1590,7 +1591,7 @@ Contributors: ---------------------------------------- -### fast-glob@v3.2.12 +### fast-glob@v3.3.1 > It's a very fast and efficient glob library for Node.js @@ -1679,16 +1680,16 @@ Author: Matteo Collina ---------------------------------------- -### file-entry-cache@v6.0.1 +### file-entry-cache@v7.0.0 > Super simple cache for file metadata, useful for process that work o a given series of files and that only need to repeat the job on the changed ones since the previous run of the process License: MIT -Author: Roy Riojas (http://royriojas.com) +Author: Jared Wray (https://jaredwray.com) > The MIT License (MIT) > -> Copyright (c) 2015 Roy Riojas +> Copyright (c) Roy Riojas & Jared Wray > > Permission is hereby granted, free of charge, to any person obtaining a copy > of this software and associated documentation files (the "Software"), to deal @@ -1822,16 +1823,16 @@ Author: Sindre Sorhus (https://sindresorhus.com) ---------------------------------------- -### flat-cache@v3.0.4 +### flat-cache@v3.1.0 > A stupidly simple key/value storage using files to persist some data License: MIT -Author: Roy Riojas (http://royriojas.com) +Author: Jared Wray (https://jaredwray.com) > The MIT License (MIT) > -> Copyright (c) 2015 Roy Riojas +> Copyright (c) Roy Riojas and Jared Wray > > Permission is hereby granted, free of charge, to any person obtaining a copy > of this software and associated documentation files (the "Software"), to deal @@ -1915,7 +1916,7 @@ Contributors: ---------------------------------------- -### flow-parser@v0.211.0 +### flow-parser@v0.215.1 > JavaScript parser written in OCaml. Produces ESTree AST @@ -2059,7 +2060,7 @@ Contributors: ---------------------------------------- -### graphql@v16.7.1 +### graphql@v16.8.0 > A Query Language and Runtime which can target any service. @@ -2723,10 +2724,10 @@ Contributors: ---------------------------------------- -### jest-docblock@v29.4.3 +### jest-docblock@v29.6.3 License: MIT -Repository: +Repository: > MIT License > @@ -2818,6 +2819,40 @@ Contributors: ---------------------------------------- +### json-buffer@v3.0.1 + +> JSON parse & stringify that supports binary via bops & base64 + +License: MIT +Homepage: +Repository: +Author: Dominic Tarr (http://dominictarr.com) + +> Copyright (c) 2013 Dominic Tarr +> +> Permission is hereby granted, free of charge, +> to any person obtaining a copy of this software and +> associated documentation files (the "Software"), to +> deal in the Software without restriction, including +> without limitation the rights to use, copy, modify, +> merge, publish, distribute, sublicense, and/or sell +> copies of the Software, and to permit persons to whom +> the Software is furnished to do so, +> subject to the following conditions: +> +> The above copyright notice and this permission notice +> shall be included in all copies or substantial portions of the Software. +> +> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +> OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +> IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR +> ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +> TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +> SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +---------------------------------------- + ### json-parse-even-better-errors@v2.3.1 > JSON.parse with context information on error @@ -2892,34 +2927,14 @@ Contributors: ---------------------------------------- -### leven@v2.1.0 +### keyv@v4.5.3 -> Measure the difference between two strings using the fastest JS implementation of the Levenshtein distance algorithm +> Simple key-value storage with support for multiple backends License: MIT -Author: Sindre Sorhus (sindresorhus.com) - -> The MIT License (MIT) -> -> Copyright (c) Sindre Sorhus (sindresorhus.com) -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in -> all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -> THE SOFTWARE. +Homepage: +Repository: +Author: Jared Wray (http://jaredwray.com) ---------------------------------------- @@ -3687,7 +3702,7 @@ Author: typicode ---------------------------------------- -### postcss@v8.4.24 +### postcss@v8.4.28 > Tool for transforming styles with JS plugins @@ -3764,7 +3779,7 @@ Author: dryoma ---------------------------------------- -### postcss-scss@v4.0.6 +### postcss-scss@v4.0.7 > SCSS parser for PostCSS @@ -4144,7 +4159,7 @@ Author: Sindre Sorhus (https://sindresorhus.com) ---------------------------------------- -### semver@v7.5.3 +### semver@v7.5.4 > The semantic version parser used by npm. @@ -4461,63 +4476,38 @@ Contributors: ---------------------------------------- -### tslib@v1.14.1 +### ts-api-utils@v1.0.1 -> Runtime library for TypeScript helper functions - -License: 0BSD -Homepage: -Repository: -Author: Microsoft Corp. - -> Copyright (c) Microsoft Corporation. -> -> Permission to use, copy, modify, and/or distribute this software for any -> purpose with or without fee is hereby granted. -> -> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -> REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -> AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -> INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -> LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -> OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -> PERFORMANCE OF THIS SOFTWARE. - ----------------------------------------- - -### tsutils@v3.21.0 - -> utilities for working with typescript's AST +> Utility functions for working with TypeScript's API. Successor to the wonderful tsutils. License: MIT -Repository: -Author: Klaus Meinhardt +Repository: +Author: Josh Goldberg -> The MIT License (MIT) -> -> Copyright (c) 2017 Klaus Meinhardt -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all -> copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -> SOFTWARE. +> # MIT License +> +> Permission is hereby granted, free of charge, to any person obtaining +> a copy of this software and associated documentation files (the +> 'Software'), to deal in the Software without restriction, including +> without limitation the rights to use, copy, modify, merge, publish, +> distribute, sublicense, and/or sell copies of the Software, and to +> permit persons to whom the Software is furnished to do so, subject to +> the following conditions: +> +> The above copyright notice and this permission notice shall be +> included in all copies or substantial portions of the Software. +> +> THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +> IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +> CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +> TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +> SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ---------------------------------------- -### typescript@v5.1.5 +### typescript@v5.2.2 > TypeScript is a language for application scale JavaScript development @@ -4969,7 +4959,7 @@ Contributors: ---------------------------------------- -### vnopts@v1.0.2 +### vnopts@v2.0.0 > validate and normalize options diff --git a/node_modules/prettier/README.md b/node_modules/prettier/README.md index 4076b3a..6643fff 100644 --- a/node_modules/prettier/README.md +++ b/node_modules/prettier/README.md @@ -1,4 +1,4 @@ -![Prettier Banner](https://unpkg.com/prettier-logo@1.0.3/images/prettier-banner-light.svg) +[![Prettier Banner](https://unpkg.com/prettier-logo@1.0.3/images/prettier-banner-light.svg)](https://prettier.io)

    Opinionated Code Formatter

    @@ -76,7 +76,7 @@ foo( reallyLongArg(), omgSoManyParameters(), IShouldRefactorThis(), - isThereSeriouslyAnotherOne() + isThereSeriouslyAnotherOne(), ); ``` diff --git a/node_modules/prettier/doc.d.ts b/node_modules/prettier/doc.d.ts index 84aff54..c926511 100644 --- a/node_modules/prettier/doc.d.ts +++ b/node_modules/prettier/doc.d.ts @@ -38,6 +38,7 @@ export namespace builders { interface Group { type: "group"; + id?: symbol; contents: Doc; break: boolean; expandedStates: Doc[]; @@ -64,6 +65,8 @@ export namespace builders { interface Label { type: "label"; + label: any; + contents: Doc; } interface Line { @@ -137,7 +140,7 @@ export namespace builders { function ifBreak( ifBreak: Doc, noBreak?: Doc, - options?: { groupId?: symbol | undefined } + options?: { groupId?: symbol | undefined }, ): IfBreak; /** @see [indent](https://github.com/prettier/prettier/blob/main/commands.md#indent) */ @@ -146,7 +149,7 @@ export namespace builders { /** @see [indentIfBreak](https://github.com/prettier/prettier/blob/main/commands.md#indentifbreak) */ function indentIfBreak( doc: Doc, - opts: { groupId: symbol; negate?: boolean | undefined } + opts: { groupId: symbol; negate?: boolean | undefined }, ): IndentIfBreak; /** @see [join](https://github.com/prettier/prettier/blob/main/commands.md#join) */ @@ -186,7 +189,7 @@ export namespace builders { export namespace printer { function printDocToString( doc: builders.Doc, - options: Options + options: Options, ): { formatted: string; cursorNodeStart?: number | undefined; @@ -219,22 +222,22 @@ export namespace utils { doc: builders.Doc, onEnter?: (doc: builders.Doc) => void | boolean, onExit?: (doc: builders.Doc) => void, - shouldTraverseConditionalGroups?: boolean + shouldTraverseConditionalGroups?: boolean, ): void; function findInDoc( doc: builders.Doc, callback: (doc: builders.Doc) => T, - defaultValue: T + defaultValue: T, ): T; function mapDoc( doc: builders.Doc, - callback: (doc: builders.Doc) => T + callback: (doc: builders.Doc) => T, ): T; function removeLines(doc: builders.Doc): builders.Doc; function stripTrailingHardline(doc: builders.Doc): builders.Doc; function replaceEndOfLine( doc: builders.Doc, - replacement?: builders.Doc + replacement?: builders.Doc, ): builders.Doc; function canBreak(doc: builders.Doc): boolean; } diff --git a/node_modules/prettier/index.cjs b/node_modules/prettier/index.cjs index 053904e..b9c5388 100644 --- a/node_modules/prettier/index.cjs +++ b/node_modules/prettier/index.cjs @@ -592,7 +592,7 @@ var init_public = __esm({ // src/main/version.evaluate.cjs var require_version_evaluate = __commonJS({ "src/main/version.evaluate.cjs"(exports2, module2) { - module2.exports = "3.0.0"; + module2.exports = "3.0.3"; } }); diff --git a/node_modules/prettier/index.d.ts b/node_modules/prettier/index.d.ts index f2f5e91..35ddb95 100644 --- a/node_modules/prettier/index.d.ts +++ b/node_modules/prettier/index.d.ts @@ -33,7 +33,7 @@ type ArrayElement = T extends Array ? E : never; // A union of the properties of the given object that are arrays. type ArrayProperties = { - [K in keyof T]: NonNullable extends any[] ? K : never; + [K in keyof T]: NonNullable extends readonly any[] ? K : never; }[keyof T]; // A union of the properties of the given array T that can be used to index it. @@ -72,12 +72,12 @@ type CallCallback = (path: AstPath, index: number, value: any) => U; type EachCallback = ( path: AstPath>, index: number, - value: any + value: any, ) => void; type MapCallback = ( path: AstPath>, index: number, - value: any + value: any, ) => U; // https://github.com/prettier/prettier/blob/next/src/common/ast-path.js @@ -136,18 +136,18 @@ export class AstPath { call(callback: CallCallback): U; call>( callback: CallCallback, U>, - prop1: P1 + prop1: P1, ): U; call>( callback: CallCallback, P2>, U>, prop1: P1, - prop2: P2 + prop2: P2, ): U; call< U, P1 extends keyof T, P2 extends CallProperties, - P3 extends CallProperties> + P3 extends CallProperties>, >( callback: CallCallback< IndexValue, P2>, P3>, @@ -155,14 +155,14 @@ export class AstPath { >, prop1: P1, prop2: P2, - prop3: P3 + prop3: P3, ): U; call< U, P1 extends keyof T, P2 extends CallProperties, P3 extends CallProperties>, - P4 extends CallProperties, P3>> + P4 extends CallProperties, P3>>, >( callback: CallCallback< IndexValue, P2>, P3>, P4>, @@ -171,7 +171,7 @@ export class AstPath { prop1: P1, prop2: P2, prop3: P3, - prop4: P4 + prop4: P4, ): U; call( callback: CallCallback, @@ -185,28 +185,28 @@ export class AstPath { each(callback: EachCallback): void; each>( callback: EachCallback>, - prop1: P1 + prop1: P1, ): void; each>( callback: EachCallback, P2>>, prop1: P1, - prop2: P2 + prop2: P2, ): void; each< P1 extends keyof T, P2 extends IterProperties, - P3 extends IterProperties> + P3 extends IterProperties>, >( callback: EachCallback, P2>, P3>>, prop1: P1, prop2: P2, - prop3: P3 + prop3: P3, ): void; each< P1 extends keyof T, P2 extends IterProperties, P3 extends IterProperties>, - P4 extends IterProperties, P3>> + P4 extends IterProperties, P3>>, >( callback: EachCallback< IndexValue, P2>, P3>, P4> @@ -214,7 +214,7 @@ export class AstPath { prop1: P1, prop2: P2, prop3: P3, - prop4: P4 + prop4: P4, ): void; each( callback: EachCallback, @@ -228,30 +228,30 @@ export class AstPath { map(callback: MapCallback): U[]; map>( callback: MapCallback, U>, - prop1: P1 + prop1: P1, ): U[]; map>( callback: MapCallback, P2>, U>, prop1: P1, - prop2: P2 + prop2: P2, ): U[]; map< U, P1 extends keyof T, P2 extends IterProperties, - P3 extends IterProperties> + P3 extends IterProperties>, >( callback: MapCallback, P2>, P3>, U>, prop1: P1, prop2: P2, - prop3: P3 + prop3: P3, ): U[]; map< U, P1 extends keyof T, P2 extends IterProperties, P3 extends IterProperties>, - P4 extends IterProperties, P3>> + P4 extends IterProperties, P3>>, >( callback: MapCallback< IndexValue, P2>, P3>, P4>, @@ -260,7 +260,7 @@ export class AstPath { prop1: P1, prop2: P2, prop3: P3, - prop4: P4 + prop4: P4, ): U[]; map( callback: MapCallback, @@ -304,7 +304,7 @@ export type BuiltInParsers = Record; export type CustomParser = ( text: string, - options: Options + options: Options, ) => AST | Promise; /** @@ -467,24 +467,27 @@ export interface Printer { path: AstPath, options: ParserOptions, print: (path: AstPath) => Doc, - args?: unknown + args?: unknown, ): Doc; embed?: | (( path: AstPath, - options: Options + options: Options, ) => | (( textToDoc: (text: string, options: Options) => Promise, print: ( - selector?: string | number | Array | AstPath + selector?: string | number | Array | AstPath, ) => Doc, path: AstPath, - options: Options + options: Options, ) => Promise | Doc | undefined) | Doc | null) | undefined; + preprocess?: + | ((ast: T, options: ParserOptions) => T | Promise) + | undefined; insertPragma?: (text: string) => string; /** * @returns `null` if you want to remove this node @@ -517,7 +520,7 @@ export interface Printer { text: string, options: ParserOptions, ast: T, - isLastComment: boolean + isLastComment: boolean, ) => boolean) | undefined; endOfLine?: @@ -526,7 +529,7 @@ export interface Printer { text: string, options: ParserOptions, ast: T, - isLastComment: boolean + isLastComment: boolean, ) => boolean) | undefined; remaining?: @@ -535,11 +538,14 @@ export interface Printer { text: string, options: ParserOptions, ast: T, - isLastComment: boolean + isLastComment: boolean, ) => boolean) | undefined; } | undefined; + getVisitorKeys?: + | ((node: T, nonTraversableKeys: Set) => string[]) + | undefined; } export interface CursorOptions extends Options { @@ -575,7 +581,7 @@ export function check(source: string, options?: Options): Promise; */ export function formatWithCursor( source: string, - options: CursorOptions + options: CursorOptions, ): Promise; export function formatAST(ast: any, options?: Options): Promise; @@ -616,7 +622,7 @@ export interface ResolveConfigOptions { */ export function resolveConfig( filePath: string, - options?: ResolveConfigOptions + options?: ResolveConfigOptions, ): Promise; /** @@ -792,7 +798,7 @@ export interface FileInfoResult { export function getFileInfo( filePath: string, - options?: FileInfoOptions + options?: FileInfoOptions, ): Promise; /** @@ -820,7 +826,7 @@ export namespace util { function getAlignmentSize( text: string, tabWidth: number, - startIndex?: number | undefined + startIndex?: number | undefined, ): number; function getIndentSize(value: string, tabWidth: number): number; @@ -828,83 +834,92 @@ export namespace util { function skipNewline( text: string, startIndex: number | false, - options?: SkipOptions | undefined + options?: SkipOptions | undefined, ): number | false; function skipInlineComment( text: string, - startIndex: number | false + startIndex: number | false, ): number | false; function skipTrailingComment( text: string, - startIndex: number | false + startIndex: number | false, ): number | false; function skipTrailingComment( text: string, - startIndex: number | false + startIndex: number | false, ): number | false; function hasNewline( text: string, startIndex: number, - options?: SkipOptions | undefined + options?: SkipOptions | undefined, ): boolean; function hasNewlineInRange( text: string, startIndex: number, - endIndex: number + endIndex: number, ): boolean; function hasSpaces( text: string, startIndex: number, - options?: SkipOptions | undefined + options?: SkipOptions | undefined, ): boolean; + function getNextNonSpaceNonCommentCharacterIndex( + text: string, + startIndex: number, + ): number | false; + function getNextNonSpaceNonCommentCharacter( text: string, - startIndex: number + startIndex: number, ): string; + function isNextLineEmpty(text: string, startIndex: number): boolean; + + function isPreviousLineEmpty(text: string, startIndex: number): boolean; + function makeString( rawText: string, enclosingQuote: Quote, - unescapeUnnecessaryEscapes?: boolean | undefined + unescapeUnnecessaryEscapes?: boolean | undefined, ): string; function skip( - characters: string | RegExp + characters: string | RegExp, ): ( text: string, startIndex: number | false, - options?: SkipOptions + options?: SkipOptions, ) => number | false; const skipWhitespace: ( text: string, startIndex: number | false, - options?: SkipOptions + options?: SkipOptions, ) => number | false; const skipSpaces: ( text: string, startIndex: number | false, - options?: SkipOptions + options?: SkipOptions, ) => number | false; const skipToLineEnd: ( text: string, startIndex: number | false, - options?: SkipOptions + options?: SkipOptions, ) => number | false; const skipEverythingButNewLine: ( text: string, startIndex: number | false, - options?: SkipOptions + options?: SkipOptions, ) => number | false; function addLeadingComment(node: any, comment: any): void; diff --git a/node_modules/prettier/index.mjs b/node_modules/prettier/index.mjs index cf96231..ff50295 100644 --- a/node_modules/prettier/index.mjs +++ b/node_modules/prettier/index.mjs @@ -18,9 +18,6 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require return require.apply(this, arguments); throw Error('Dynamic require of "' + x + '" is not supported'); }); -var __esm = (fn, res) => function __init() { - return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res; -}; var __commonJS = (cb, mod) => function __require2() { return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; }; @@ -44,7 +41,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod )); -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var __accessCheck = (obj, member, msg) => { if (!member.has(obj)) throw TypeError("Cannot " + msg); @@ -59,4851 +55,2185 @@ var __privateMethod = (obj, member, method) => { return method; }; -// node_modules/vnopts/node_modules/tslib/tslib.es6.js -var tslib_es6_exports = {}; -__export(tslib_es6_exports, { - __assign: () => __assign, - __asyncDelegator: () => __asyncDelegator, - __asyncGenerator: () => __asyncGenerator, - __asyncValues: () => __asyncValues, - __await: () => __await, - __awaiter: () => __awaiter, - __classPrivateFieldGet: () => __classPrivateFieldGet, - __classPrivateFieldSet: () => __classPrivateFieldSet, - __createBinding: () => __createBinding, - __decorate: () => __decorate, - __exportStar: () => __exportStar, - __extends: () => __extends, - __generator: () => __generator, - __importDefault: () => __importDefault, - __importStar: () => __importStar, - __makeTemplateObject: () => __makeTemplateObject, - __metadata: () => __metadata, - __param: () => __param, - __read: () => __read, - __rest: () => __rest, - __spread: () => __spread, - __spreadArrays: () => __spreadArrays, - __values: () => __values -}); -function __extends(d, b) { - extendStatics(d, b); - function __() { - this.constructor = d; - } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); -} -function __rest(s, e) { - var t = {}; - for (var p in s) - if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -} -function __decorate(decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") - r = Reflect.decorate(decorators, target, key, desc); - else - for (var i = decorators.length - 1; i >= 0; i--) - if (d = decorators[i]) - r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -} -function __param(paramIndex, decorator) { - return function(target, key) { - decorator(target, key, paramIndex); - }; -} -function __metadata(metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") - return Reflect.metadata(metadataKey, metadataValue); -} -function __awaiter(thisArg, _arguments, P, generator) { - function adopt(value) { - return value instanceof P ? value : new P(function(resolve2) { - resolve2(value); - }); - } - return new (P || (P = Promise))(function(resolve2, reject) { - function fulfilled(value) { - try { - step(generator.next(value)); - } catch (e) { - reject(e); - } - } - function rejected(value) { - try { - step(generator["throw"](value)); - } catch (e) { - reject(e); - } - } - function step(result) { - result.done ? resolve2(result.value) : adopt(result.value).then(fulfilled, rejected); +// node_modules/fast-glob/out/utils/array.js +var require_array = __commonJS({ + "node_modules/fast-glob/out/utils/array.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.splitWhen = exports.flatten = void 0; + function flatten(items) { + return items.reduce((collection, item) => [].concat(collection, item), []); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -} -function __generator(thisArg, body) { - var _ = { label: 0, sent: function() { - if (t[0] & 1) - throw t[1]; - return t[1]; - }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { - return this; - }), g; - function verb(n) { - return function(v) { - return step([n, v]); - }; - } - function step(op) { - if (f) - throw new TypeError("Generator is already executing."); - while (_) - try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) - return t; - if (y = 0, t) - op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: - case 1: - t = op; - break; - case 4: - _.label++; - return { value: op[1], done: false }; - case 5: - _.label++; - y = op[1]; - op = [0]; - continue; - case 7: - op = _.ops.pop(); - _.trys.pop(); - continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { - _ = 0; - continue; - } - if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) { - _.label = op[1]; - break; - } - if (op[0] === 6 && _.label < t[1]) { - _.label = t[1]; - t = op; - break; - } - if (t && _.label < t[2]) { - _.label = t[2]; - _.ops.push(op); - break; - } - if (t[2]) - _.ops.pop(); - _.trys.pop(); - continue; + exports.flatten = flatten; + function splitWhen(items, predicate) { + const result = [[]]; + let groupIndex = 0; + for (const item of items) { + if (predicate(item)) { + groupIndex++; + result[groupIndex] = []; + } else { + result[groupIndex].push(item); } - op = body.call(thisArg, _); - } catch (e) { - op = [6, e]; - y = 0; - } finally { - f = t = 0; - } - if (op[0] & 5) - throw op[1]; - return { value: op[0] ? op[1] : void 0, done: true }; - } -} -function __createBinding(o, m, k, k2) { - if (k2 === void 0) - k2 = k; - o[k2] = m[k]; -} -function __exportStar(m, exports) { - for (var p in m) - if (p !== "default" && !exports.hasOwnProperty(p)) - exports[p] = m[p]; -} -function __values(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) - return m.call(o); - if (o && typeof o.length === "number") - return { - next: function() { - if (o && i >= o.length) - o = void 0; - return { value: o && o[i++], done: !o }; } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -} -function __read(o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) - return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) - ar.push(r.value); - } catch (error) { - e = { error }; - } finally { - try { - if (r && !r.done && (m = i["return"])) - m.call(i); - } finally { - if (e) - throw e.error; + return result; } + exports.splitWhen = splitWhen; } - return ar; -} -function __spread() { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read(arguments[i])); - return ar; -} -function __spreadArrays() { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) - s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; -} -function __await(v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); -} -function __asyncGenerator(thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) - throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { - return this; - }, i; - function verb(n) { - if (g[n]) - i[n] = function(v) { - return new Promise(function(a, b) { - q.push([n, v, a, b]) > 1 || resume(n, v); - }); - }; - } - function resume(n, v) { - try { - step(g[n](v)); - } catch (e) { - settle(q[0][3], e); +}); + +// node_modules/fast-glob/out/utils/errno.js +var require_errno = __commonJS({ + "node_modules/fast-glob/out/utils/errno.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.isEnoentCodeError = void 0; + function isEnoentCodeError(error) { + return error.code === "ENOENT"; } - } - function step(r) { - r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); - } - function fulfill(value) { - resume("next", value); - } - function reject(value) { - resume("throw", value); - } - function settle(f, v) { - if (f(v), q.shift(), q.length) - resume(q[0][0], q[0][1]); - } -} -function __asyncDelegator(o) { - var i, p; - return i = {}, verb("next"), verb("throw", function(e) { - throw e; - }), verb("return"), i[Symbol.iterator] = function() { - return this; - }, i; - function verb(n, f) { - i[n] = o[n] ? function(v) { - return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; - } : f; - } -} -function __asyncValues(o) { - if (!Symbol.asyncIterator) - throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { - return this; - }, i); - function verb(n) { - i[n] = o[n] && function(v) { - return new Promise(function(resolve2, reject) { - v = o[n](v), settle(resolve2, reject, v.done, v.value); - }); - }; - } - function settle(resolve2, reject, d, v) { - Promise.resolve(v).then(function(v2) { - resolve2({ value: v2, done: d }); - }, reject); - } -} -function __makeTemplateObject(cooked, raw) { - if (Object.defineProperty) { - Object.defineProperty(cooked, "raw", { value: raw }); - } else { - cooked.raw = raw; - } - return cooked; -} -function __importStar(mod) { - if (mod && mod.__esModule) - return mod; - var result = {}; - if (mod != null) { - for (var k in mod) - if (Object.hasOwnProperty.call(mod, k)) - result[k] = mod[k]; - } - result.default = mod; - return result; -} -function __importDefault(mod) { - return mod && mod.__esModule ? mod : { default: mod }; -} -function __classPrivateFieldGet(receiver, privateMap) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to get private field on non-instance"); - } - return privateMap.get(receiver); -} -function __classPrivateFieldSet(receiver, privateMap, value) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to set private field on non-instance"); - } - privateMap.set(receiver, value); - return value; -} -var extendStatics, __assign; -var init_tslib_es6 = __esm({ - "node_modules/vnopts/node_modules/tslib/tslib.es6.js"() { - extendStatics = function(d, b) { - extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) { - d2.__proto__ = b2; - } || function(d2, b2) { - for (var p in b2) - if (b2.hasOwnProperty(p)) - d2[p] = b2[p]; - }; - return extendStatics(d, b); - }; - __assign = function() { - __assign = Object.assign || function __assign2(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) - if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; - }; - return __assign.apply(this, arguments); - }; + exports.isEnoentCodeError = isEnoentCodeError; } }); -// node_modules/vnopts/lib/descriptors/api.js -var require_api = __commonJS({ - "node_modules/vnopts/lib/descriptors/api.js"(exports) { +// node_modules/fast-glob/out/utils/fs.js +var require_fs = __commonJS({ + "node_modules/fast-glob/out/utils/fs.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.apiDescriptor = { - key: (key) => /^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(key) ? key : JSON.stringify(key), - value(value) { - if (value === null || typeof value !== "object") { - return JSON.stringify(value); - } - if (Array.isArray(value)) { - return `[${value.map((subValue) => exports.apiDescriptor.value(subValue)).join(", ")}]`; - } - const keys = Object.keys(value); - return keys.length === 0 ? "{}" : `{ ${keys.map((key) => `${exports.apiDescriptor.key(key)}: ${exports.apiDescriptor.value(value[key])}`).join(", ")} }`; - }, - pair: ({ key, value }) => exports.apiDescriptor.value({ [key]: value }) + exports.createDirentFromStats = void 0; + var DirentFromStats = class { + constructor(name, stats) { + this.name = name; + this.isBlockDevice = stats.isBlockDevice.bind(stats); + this.isCharacterDevice = stats.isCharacterDevice.bind(stats); + this.isDirectory = stats.isDirectory.bind(stats); + this.isFIFO = stats.isFIFO.bind(stats); + this.isFile = stats.isFile.bind(stats); + this.isSocket = stats.isSocket.bind(stats); + this.isSymbolicLink = stats.isSymbolicLink.bind(stats); + } }; + function createDirentFromStats(name, stats) { + return new DirentFromStats(name, stats); + } + exports.createDirentFromStats = createDirentFromStats; } }); -// node_modules/vnopts/lib/descriptors/index.js -var require_descriptors = __commonJS({ - "node_modules/vnopts/lib/descriptors/index.js"(exports) { +// node_modules/fast-glob/out/utils/path.js +var require_path = __commonJS({ + "node_modules/fast-glob/out/utils/path.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_api(), exports); + exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0; + var os2 = __require("os"); + var path9 = __require("path"); + var IS_WINDOWS_PLATFORM = os2.platform() === "win32"; + var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2; + var POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g; + var WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([(){}]|^!|[!+@](?=\())/g; + var DOS_DEVICE_PATH_RE = /^\\\\([.?])/; + var WINDOWS_BACKSLASHES_RE = /\\(?![!()+@{}])/g; + function unixify(filepath) { + return filepath.replace(/\\/g, "/"); + } + exports.unixify = unixify; + function makeAbsolute(cwd, filepath) { + return path9.resolve(cwd, filepath); + } + exports.makeAbsolute = makeAbsolute; + function removeLeadingDotSegment(entry) { + if (entry.charAt(0) === ".") { + const secondCharactery = entry.charAt(1); + if (secondCharactery === "/" || secondCharactery === "\\") { + return entry.slice(LEADING_DOT_SEGMENT_CHARACTERS_COUNT); + } + } + return entry; + } + exports.removeLeadingDotSegment = removeLeadingDotSegment; + exports.escape = IS_WINDOWS_PLATFORM ? escapeWindowsPath : escapePosixPath; + function escapeWindowsPath(pattern) { + return pattern.replace(WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE, "\\$2"); + } + exports.escapeWindowsPath = escapeWindowsPath; + function escapePosixPath(pattern) { + return pattern.replace(POSIX_UNESCAPED_GLOB_SYMBOLS_RE, "\\$2"); + } + exports.escapePosixPath = escapePosixPath; + exports.convertPathToPattern = IS_WINDOWS_PLATFORM ? convertWindowsPathToPattern : convertPosixPathToPattern; + function convertWindowsPathToPattern(filepath) { + return escapeWindowsPath(filepath).replace(DOS_DEVICE_PATH_RE, "//$1").replace(WINDOWS_BACKSLASHES_RE, "/"); + } + exports.convertWindowsPathToPattern = convertWindowsPathToPattern; + function convertPosixPathToPattern(filepath) { + return escapePosixPath(filepath); + } + exports.convertPosixPathToPattern = convertPosixPathToPattern; } }); -// node_modules/vnopts/node_modules/escape-string-regexp/index.js -var require_escape_string_regexp = __commonJS({ - "node_modules/vnopts/node_modules/escape-string-regexp/index.js"(exports, module) { - "use strict"; - var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g; - module.exports = function(str) { - if (typeof str !== "string") { - throw new TypeError("Expected a string"); +// node_modules/is-extglob/index.js +var require_is_extglob = __commonJS({ + "node_modules/is-extglob/index.js"(exports, module) { + module.exports = function isExtglob(str) { + if (typeof str !== "string" || str === "") { + return false; } - return str.replace(matchOperatorsRe, "\\$&"); + var match; + while (match = /(\\).|([@?!+*]\(.*\))/g.exec(str)) { + if (match[2]) + return true; + str = str.slice(match.index + match[0].length); + } + return false; }; } }); -// node_modules/color-name/index.js -var require_color_name = __commonJS({ - "node_modules/color-name/index.js"(exports, module) { - "use strict"; - module.exports = { - "aliceblue": [240, 248, 255], - "antiquewhite": [250, 235, 215], - "aqua": [0, 255, 255], - "aquamarine": [127, 255, 212], - "azure": [240, 255, 255], - "beige": [245, 245, 220], - "bisque": [255, 228, 196], - "black": [0, 0, 0], - "blanchedalmond": [255, 235, 205], - "blue": [0, 0, 255], - "blueviolet": [138, 43, 226], - "brown": [165, 42, 42], - "burlywood": [222, 184, 135], - "cadetblue": [95, 158, 160], - "chartreuse": [127, 255, 0], - "chocolate": [210, 105, 30], - "coral": [255, 127, 80], - "cornflowerblue": [100, 149, 237], - "cornsilk": [255, 248, 220], - "crimson": [220, 20, 60], - "cyan": [0, 255, 255], - "darkblue": [0, 0, 139], - "darkcyan": [0, 139, 139], - "darkgoldenrod": [184, 134, 11], - "darkgray": [169, 169, 169], - "darkgreen": [0, 100, 0], - "darkgrey": [169, 169, 169], - "darkkhaki": [189, 183, 107], - "darkmagenta": [139, 0, 139], - "darkolivegreen": [85, 107, 47], - "darkorange": [255, 140, 0], - "darkorchid": [153, 50, 204], - "darkred": [139, 0, 0], - "darksalmon": [233, 150, 122], - "darkseagreen": [143, 188, 143], - "darkslateblue": [72, 61, 139], - "darkslategray": [47, 79, 79], - "darkslategrey": [47, 79, 79], - "darkturquoise": [0, 206, 209], - "darkviolet": [148, 0, 211], - "deeppink": [255, 20, 147], - "deepskyblue": [0, 191, 255], - "dimgray": [105, 105, 105], - "dimgrey": [105, 105, 105], - "dodgerblue": [30, 144, 255], - "firebrick": [178, 34, 34], - "floralwhite": [255, 250, 240], - "forestgreen": [34, 139, 34], - "fuchsia": [255, 0, 255], - "gainsboro": [220, 220, 220], - "ghostwhite": [248, 248, 255], - "gold": [255, 215, 0], - "goldenrod": [218, 165, 32], - "gray": [128, 128, 128], - "green": [0, 128, 0], - "greenyellow": [173, 255, 47], - "grey": [128, 128, 128], - "honeydew": [240, 255, 240], - "hotpink": [255, 105, 180], - "indianred": [205, 92, 92], - "indigo": [75, 0, 130], - "ivory": [255, 255, 240], - "khaki": [240, 230, 140], - "lavender": [230, 230, 250], - "lavenderblush": [255, 240, 245], - "lawngreen": [124, 252, 0], - "lemonchiffon": [255, 250, 205], - "lightblue": [173, 216, 230], - "lightcoral": [240, 128, 128], - "lightcyan": [224, 255, 255], - "lightgoldenrodyellow": [250, 250, 210], - "lightgray": [211, 211, 211], - "lightgreen": [144, 238, 144], - "lightgrey": [211, 211, 211], - "lightpink": [255, 182, 193], - "lightsalmon": [255, 160, 122], - "lightseagreen": [32, 178, 170], - "lightskyblue": [135, 206, 250], - "lightslategray": [119, 136, 153], - "lightslategrey": [119, 136, 153], - "lightsteelblue": [176, 196, 222], - "lightyellow": [255, 255, 224], - "lime": [0, 255, 0], - "limegreen": [50, 205, 50], - "linen": [250, 240, 230], - "magenta": [255, 0, 255], - "maroon": [128, 0, 0], - "mediumaquamarine": [102, 205, 170], - "mediumblue": [0, 0, 205], - "mediumorchid": [186, 85, 211], - "mediumpurple": [147, 112, 219], - "mediumseagreen": [60, 179, 113], - "mediumslateblue": [123, 104, 238], - "mediumspringgreen": [0, 250, 154], - "mediumturquoise": [72, 209, 204], - "mediumvioletred": [199, 21, 133], - "midnightblue": [25, 25, 112], - "mintcream": [245, 255, 250], - "mistyrose": [255, 228, 225], - "moccasin": [255, 228, 181], - "navajowhite": [255, 222, 173], - "navy": [0, 0, 128], - "oldlace": [253, 245, 230], - "olive": [128, 128, 0], - "olivedrab": [107, 142, 35], - "orange": [255, 165, 0], - "orangered": [255, 69, 0], - "orchid": [218, 112, 214], - "palegoldenrod": [238, 232, 170], - "palegreen": [152, 251, 152], - "paleturquoise": [175, 238, 238], - "palevioletred": [219, 112, 147], - "papayawhip": [255, 239, 213], - "peachpuff": [255, 218, 185], - "peru": [205, 133, 63], - "pink": [255, 192, 203], - "plum": [221, 160, 221], - "powderblue": [176, 224, 230], - "purple": [128, 0, 128], - "rebeccapurple": [102, 51, 153], - "red": [255, 0, 0], - "rosybrown": [188, 143, 143], - "royalblue": [65, 105, 225], - "saddlebrown": [139, 69, 19], - "salmon": [250, 128, 114], - "sandybrown": [244, 164, 96], - "seagreen": [46, 139, 87], - "seashell": [255, 245, 238], - "sienna": [160, 82, 45], - "silver": [192, 192, 192], - "skyblue": [135, 206, 235], - "slateblue": [106, 90, 205], - "slategray": [112, 128, 144], - "slategrey": [112, 128, 144], - "snow": [255, 250, 250], - "springgreen": [0, 255, 127], - "steelblue": [70, 130, 180], - "tan": [210, 180, 140], - "teal": [0, 128, 128], - "thistle": [216, 191, 216], - "tomato": [255, 99, 71], - "turquoise": [64, 224, 208], - "violet": [238, 130, 238], - "wheat": [245, 222, 179], - "white": [255, 255, 255], - "whitesmoke": [245, 245, 245], - "yellow": [255, 255, 0], - "yellowgreen": [154, 205, 50] - }; - } -}); - -// node_modules/color-convert/conversions.js -var require_conversions = __commonJS({ - "node_modules/color-convert/conversions.js"(exports, module) { - var cssKeywords = require_color_name(); - var reverseKeywords = {}; - for (key in cssKeywords) { - if (cssKeywords.hasOwnProperty(key)) { - reverseKeywords[cssKeywords[key]] = key; +// node_modules/is-glob/index.js +var require_is_glob = __commonJS({ + "node_modules/is-glob/index.js"(exports, module) { + var isExtglob = require_is_extglob(); + var chars = { "{": "}", "(": ")", "[": "]" }; + var strictCheck = function(str) { + if (str[0] === "!") { + return true; } - } - var key; - var convert = module.exports = { - rgb: { channels: 3, labels: "rgb" }, - hsl: { channels: 3, labels: "hsl" }, - hsv: { channels: 3, labels: "hsv" }, - hwb: { channels: 3, labels: "hwb" }, - cmyk: { channels: 4, labels: "cmyk" }, - xyz: { channels: 3, labels: "xyz" }, - lab: { channels: 3, labels: "lab" }, - lch: { channels: 3, labels: "lch" }, - hex: { channels: 1, labels: ["hex"] }, - keyword: { channels: 1, labels: ["keyword"] }, - ansi16: { channels: 1, labels: ["ansi16"] }, - ansi256: { channels: 1, labels: ["ansi256"] }, - hcg: { channels: 3, labels: ["h", "c", "g"] }, - apple: { channels: 3, labels: ["r16", "g16", "b16"] }, - gray: { channels: 1, labels: ["gray"] } - }; - for (model in convert) { - if (convert.hasOwnProperty(model)) { - if (!("channels" in convert[model])) { - throw new Error("missing channels property: " + model); + var index = 0; + var pipeIndex = -2; + var closeSquareIndex = -2; + var closeCurlyIndex = -2; + var closeParenIndex = -2; + var backSlashIndex = -2; + while (index < str.length) { + if (str[index] === "*") { + return true; } - if (!("labels" in convert[model])) { - throw new Error("missing channel labels property: " + model); + if (str[index + 1] === "?" && /[\].+)]/.test(str[index])) { + return true; } - if (convert[model].labels.length !== convert[model].channels) { - throw new Error("channel and label counts mismatch: " + model); + if (closeSquareIndex !== -1 && str[index] === "[" && str[index + 1] !== "]") { + if (closeSquareIndex < index) { + closeSquareIndex = str.indexOf("]", index); + } + if (closeSquareIndex > index) { + if (backSlashIndex === -1 || backSlashIndex > closeSquareIndex) { + return true; + } + backSlashIndex = str.indexOf("\\", index); + if (backSlashIndex === -1 || backSlashIndex > closeSquareIndex) { + return true; + } + } } - channels = convert[model].channels; - labels = convert[model].labels; - delete convert[model].channels; - delete convert[model].labels; - Object.defineProperty(convert[model], "channels", { value: channels }); - Object.defineProperty(convert[model], "labels", { value: labels }); - } - } - var channels; - var labels; - var model; - convert.rgb.hsl = function(rgb) { - var r = rgb[0] / 255; - var g = rgb[1] / 255; - var b = rgb[2] / 255; - var min = Math.min(r, g, b); - var max = Math.max(r, g, b); - var delta = max - min; - var h; - var s; - var l; - if (max === min) { - h = 0; - } else if (r === max) { - h = (g - b) / delta; - } else if (g === max) { - h = 2 + (b - r) / delta; - } else if (b === max) { - h = 4 + (r - g) / delta; - } - h = Math.min(h * 60, 360); - if (h < 0) { - h += 360; - } - l = (min + max) / 2; - if (max === min) { - s = 0; - } else if (l <= 0.5) { - s = delta / (max + min); - } else { - s = delta / (2 - max - min); - } - return [h, s * 100, l * 100]; - }; - convert.rgb.hsv = function(rgb) { - var rdif; - var gdif; - var bdif; - var h; - var s; - var r = rgb[0] / 255; - var g = rgb[1] / 255; - var b = rgb[2] / 255; - var v = Math.max(r, g, b); - var diff = v - Math.min(r, g, b); - var diffc = function(c) { - return (v - c) / 6 / diff + 1 / 2; - }; - if (diff === 0) { - h = s = 0; - } else { - s = diff / v; - rdif = diffc(r); - gdif = diffc(g); - bdif = diffc(b); - if (r === v) { - h = bdif - gdif; - } else if (g === v) { - h = 1 / 3 + rdif - bdif; - } else if (b === v) { - h = 2 / 3 + gdif - rdif; + if (closeCurlyIndex !== -1 && str[index] === "{" && str[index + 1] !== "}") { + closeCurlyIndex = str.indexOf("}", index); + if (closeCurlyIndex > index) { + backSlashIndex = str.indexOf("\\", index); + if (backSlashIndex === -1 || backSlashIndex > closeCurlyIndex) { + return true; + } + } } - if (h < 0) { - h += 1; - } else if (h > 1) { - h -= 1; + if (closeParenIndex !== -1 && str[index] === "(" && str[index + 1] === "?" && /[:!=]/.test(str[index + 2]) && str[index + 3] !== ")") { + closeParenIndex = str.indexOf(")", index); + if (closeParenIndex > index) { + backSlashIndex = str.indexOf("\\", index); + if (backSlashIndex === -1 || backSlashIndex > closeParenIndex) { + return true; + } + } } - } - return [ - h * 360, - s * 100, - v * 100 - ]; - }; - convert.rgb.hwb = function(rgb) { - var r = rgb[0]; - var g = rgb[1]; - var b = rgb[2]; - var h = convert.rgb.hsl(rgb)[0]; - var w = 1 / 255 * Math.min(r, Math.min(g, b)); - b = 1 - 1 / 255 * Math.max(r, Math.max(g, b)); - return [h, w * 100, b * 100]; - }; - convert.rgb.cmyk = function(rgb) { - var r = rgb[0] / 255; - var g = rgb[1] / 255; - var b = rgb[2] / 255; - var c; - var m; - var y; - var k; - k = Math.min(1 - r, 1 - g, 1 - b); - c = (1 - r - k) / (1 - k) || 0; - m = (1 - g - k) / (1 - k) || 0; - y = (1 - b - k) / (1 - k) || 0; - return [c * 100, m * 100, y * 100, k * 100]; + if (pipeIndex !== -1 && str[index] === "(" && str[index + 1] !== "|") { + if (pipeIndex < index) { + pipeIndex = str.indexOf("|", index); + } + if (pipeIndex !== -1 && str[pipeIndex + 1] !== ")") { + closeParenIndex = str.indexOf(")", pipeIndex); + if (closeParenIndex > pipeIndex) { + backSlashIndex = str.indexOf("\\", pipeIndex); + if (backSlashIndex === -1 || backSlashIndex > closeParenIndex) { + return true; + } + } + } + } + if (str[index] === "\\") { + var open = str[index + 1]; + index += 2; + var close = chars[open]; + if (close) { + var n = str.indexOf(close, index); + if (n !== -1) { + index = n + 1; + } + } + if (str[index] === "!") { + return true; + } + } else { + index++; + } + } + return false; }; - function comparativeDistance(x, y) { - return Math.pow(x[0] - y[0], 2) + Math.pow(x[1] - y[1], 2) + Math.pow(x[2] - y[2], 2); - } - convert.rgb.keyword = function(rgb) { - var reversed = reverseKeywords[rgb]; - if (reversed) { - return reversed; + var relaxedCheck = function(str) { + if (str[0] === "!") { + return true; } - var currentClosestDistance = Infinity; - var currentClosestKeyword; - for (var keyword in cssKeywords) { - if (cssKeywords.hasOwnProperty(keyword)) { - var value = cssKeywords[keyword]; - var distance = comparativeDistance(rgb, value); - if (distance < currentClosestDistance) { - currentClosestDistance = distance; - currentClosestKeyword = keyword; + var index = 0; + while (index < str.length) { + if (/[*?{}()[\]]/.test(str[index])) { + return true; + } + if (str[index] === "\\") { + var open = str[index + 1]; + index += 2; + var close = chars[open]; + if (close) { + var n = str.indexOf(close, index); + if (n !== -1) { + index = n + 1; + } + } + if (str[index] === "!") { + return true; } + } else { + index++; } } - return currentClosestKeyword; - }; - convert.keyword.rgb = function(keyword) { - return cssKeywords[keyword]; + return false; }; - convert.rgb.xyz = function(rgb) { - var r = rgb[0] / 255; - var g = rgb[1] / 255; - var b = rgb[2] / 255; - r = r > 0.04045 ? Math.pow((r + 0.055) / 1.055, 2.4) : r / 12.92; - g = g > 0.04045 ? Math.pow((g + 0.055) / 1.055, 2.4) : g / 12.92; - b = b > 0.04045 ? Math.pow((b + 0.055) / 1.055, 2.4) : b / 12.92; - var x = r * 0.4124 + g * 0.3576 + b * 0.1805; - var y = r * 0.2126 + g * 0.7152 + b * 0.0722; - var z = r * 0.0193 + g * 0.1192 + b * 0.9505; - return [x * 100, y * 100, z * 100]; + module.exports = function isGlob(str, options8) { + if (typeof str !== "string" || str === "") { + return false; + } + if (isExtglob(str)) { + return true; + } + var check2 = strictCheck; + if (options8 && options8.strict === false) { + check2 = relaxedCheck; + } + return check2(str); }; - convert.rgb.lab = function(rgb) { - var xyz = convert.rgb.xyz(rgb); - var x = xyz[0]; - var y = xyz[1]; - var z = xyz[2]; - var l; - var a; - var b; - x /= 95.047; - y /= 100; - z /= 108.883; - x = x > 8856e-6 ? Math.pow(x, 1 / 3) : 7.787 * x + 16 / 116; - y = y > 8856e-6 ? Math.pow(y, 1 / 3) : 7.787 * y + 16 / 116; - z = z > 8856e-6 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116; - l = 116 * y - 16; - a = 500 * (x - y); - b = 200 * (y - z); - return [l, a, b]; + } +}); + +// node_modules/glob-parent/index.js +var require_glob_parent = __commonJS({ + "node_modules/glob-parent/index.js"(exports, module) { + "use strict"; + var isGlob = require_is_glob(); + var pathPosixDirname = __require("path").posix.dirname; + var isWin32 = __require("os").platform() === "win32"; + var slash2 = "/"; + var backslash = /\\/g; + var enclosure = /[\{\[].*[\}\]]$/; + var globby = /(^|[^\\])([\{\[]|\([^\)]+$)/; + var escaped = /\\([\!\*\?\|\[\]\(\)\{\}])/g; + module.exports = function globParent(str, opts) { + var options8 = Object.assign({ flipBackslashes: true }, opts); + if (options8.flipBackslashes && isWin32 && str.indexOf(slash2) < 0) { + str = str.replace(backslash, slash2); + } + if (enclosure.test(str)) { + str += slash2; + } + str += "a"; + do { + str = pathPosixDirname(str); + } while (isGlob(str) || globby.test(str)); + return str.replace(escaped, "$1"); }; - convert.hsl.rgb = function(hsl) { - var h = hsl[0] / 360; - var s = hsl[1] / 100; - var l = hsl[2] / 100; - var t1; - var t2; - var t3; - var rgb; - var val; - if (s === 0) { - val = l * 255; - return [val, val, val]; + } +}); + +// node_modules/braces/lib/utils.js +var require_utils = __commonJS({ + "node_modules/braces/lib/utils.js"(exports) { + "use strict"; + exports.isInteger = (num) => { + if (typeof num === "number") { + return Number.isInteger(num); } - if (l < 0.5) { - t2 = l * (1 + s); - } else { - t2 = l + s - l * s; + if (typeof num === "string" && num.trim() !== "") { + return Number.isInteger(Number(num)); } - t1 = 2 * l - t2; - rgb = [0, 0, 0]; - for (var i = 0; i < 3; i++) { - t3 = h + 1 / 3 * -(i - 1); - if (t3 < 0) { - t3++; - } - if (t3 > 1) { - t3--; - } - if (6 * t3 < 1) { - val = t1 + (t2 - t1) * 6 * t3; - } else if (2 * t3 < 1) { - val = t2; - } else if (3 * t3 < 2) { - val = t1 + (t2 - t1) * (2 / 3 - t3) * 6; - } else { - val = t1; + return false; + }; + exports.find = (node, type) => node.nodes.find((node2) => node2.type === type); + exports.exceedsLimit = (min, max, step = 1, limit) => { + if (limit === false) + return false; + if (!exports.isInteger(min) || !exports.isInteger(max)) + return false; + return (Number(max) - Number(min)) / Number(step) >= limit; + }; + exports.escapeNode = (block, n = 0, type) => { + let node = block.nodes[n]; + if (!node) + return; + if (type && node.type === type || node.type === "open" || node.type === "close") { + if (node.escaped !== true) { + node.value = "\\" + node.value; + node.escaped = true; } - rgb[i] = val * 255; } - return rgb; }; - convert.hsl.hsv = function(hsl) { - var h = hsl[0]; - var s = hsl[1] / 100; - var l = hsl[2] / 100; - var smin = s; - var lmin = Math.max(l, 0.01); - var sv; - var v; - l *= 2; - s *= l <= 1 ? l : 2 - l; - smin *= lmin <= 1 ? lmin : 2 - lmin; - v = (l + s) / 2; - sv = l === 0 ? 2 * smin / (lmin + smin) : 2 * s / (l + s); - return [h, sv * 100, v * 100]; + exports.encloseBrace = (node) => { + if (node.type !== "brace") + return false; + if (node.commas >> 0 + node.ranges >> 0 === 0) { + node.invalid = true; + return true; + } + return false; }; - convert.hsv.rgb = function(hsv) { - var h = hsv[0] / 60; - var s = hsv[1] / 100; - var v = hsv[2] / 100; - var hi = Math.floor(h) % 6; - var f = h - Math.floor(h); - var p = 255 * v * (1 - s); - var q = 255 * v * (1 - s * f); - var t = 255 * v * (1 - s * (1 - f)); - v *= 255; - switch (hi) { - case 0: - return [v, t, p]; - case 1: - return [q, v, p]; - case 2: - return [p, v, t]; - case 3: - return [p, q, v]; - case 4: - return [t, p, v]; - case 5: - return [v, p, q]; - } - }; - convert.hsv.hsl = function(hsv) { - var h = hsv[0]; - var s = hsv[1] / 100; - var v = hsv[2] / 100; - var vmin = Math.max(v, 0.01); - var lmin; - var sl; - var l; - l = (2 - s) * v; - lmin = (2 - s) * vmin; - sl = s * vmin; - sl /= lmin <= 1 ? lmin : 2 - lmin; - sl = sl || 0; - l /= 2; - return [h, sl * 100, l * 100]; - }; - convert.hwb.rgb = function(hwb) { - var h = hwb[0] / 360; - var wh = hwb[1] / 100; - var bl = hwb[2] / 100; - var ratio = wh + bl; - var i; - var v; - var f; - var n; - if (ratio > 1) { - wh /= ratio; - bl /= ratio; - } - i = Math.floor(6 * h); - v = 1 - bl; - f = 6 * h - i; - if ((i & 1) !== 0) { - f = 1 - f; + exports.isInvalidBrace = (block) => { + if (block.type !== "brace") + return false; + if (block.invalid === true || block.dollar) + return true; + if (block.commas >> 0 + block.ranges >> 0 === 0) { + block.invalid = true; + return true; } - n = wh + f * (v - wh); - var r; - var g; - var b; - switch (i) { - default: - case 6: - case 0: - r = v; - g = n; - b = wh; - break; - case 1: - r = n; - g = v; - b = wh; - break; - case 2: - r = wh; - g = v; - b = n; - break; - case 3: - r = wh; - g = n; - b = v; - break; - case 4: - r = n; - g = wh; - b = v; - break; - case 5: - r = v; - g = wh; - b = n; - break; + if (block.open !== true || block.close !== true) { + block.invalid = true; + return true; } - return [r * 255, g * 255, b * 255]; - }; - convert.cmyk.rgb = function(cmyk) { - var c = cmyk[0] / 100; - var m = cmyk[1] / 100; - var y = cmyk[2] / 100; - var k = cmyk[3] / 100; - var r; - var g; - var b; - r = 1 - Math.min(1, c * (1 - k) + k); - g = 1 - Math.min(1, m * (1 - k) + k); - b = 1 - Math.min(1, y * (1 - k) + k); - return [r * 255, g * 255, b * 255]; + return false; }; - convert.xyz.rgb = function(xyz) { - var x = xyz[0] / 100; - var y = xyz[1] / 100; - var z = xyz[2] / 100; - var r; - var g; - var b; - r = x * 3.2406 + y * -1.5372 + z * -0.4986; - g = x * -0.9689 + y * 1.8758 + z * 0.0415; - b = x * 0.0557 + y * -0.204 + z * 1.057; - r = r > 31308e-7 ? 1.055 * Math.pow(r, 1 / 2.4) - 0.055 : r * 12.92; - g = g > 31308e-7 ? 1.055 * Math.pow(g, 1 / 2.4) - 0.055 : g * 12.92; - b = b > 31308e-7 ? 1.055 * Math.pow(b, 1 / 2.4) - 0.055 : b * 12.92; - r = Math.min(Math.max(0, r), 1); - g = Math.min(Math.max(0, g), 1); - b = Math.min(Math.max(0, b), 1); - return [r * 255, g * 255, b * 255]; + exports.isOpenOrClose = (node) => { + if (node.type === "open" || node.type === "close") { + return true; + } + return node.open === true || node.close === true; }; - convert.xyz.lab = function(xyz) { - var x = xyz[0]; - var y = xyz[1]; - var z = xyz[2]; - var l; - var a; - var b; - x /= 95.047; - y /= 100; - z /= 108.883; - x = x > 8856e-6 ? Math.pow(x, 1 / 3) : 7.787 * x + 16 / 116; - y = y > 8856e-6 ? Math.pow(y, 1 / 3) : 7.787 * y + 16 / 116; - z = z > 8856e-6 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116; - l = 116 * y - 16; - a = 500 * (x - y); - b = 200 * (y - z); - return [l, a, b]; + exports.reduce = (nodes) => nodes.reduce((acc, node) => { + if (node.type === "text") + acc.push(node.value); + if (node.type === "range") + node.type = "text"; + return acc; + }, []); + exports.flatten = (...args) => { + const result = []; + const flat = (arr) => { + for (let i = 0; i < arr.length; i++) { + let ele = arr[i]; + Array.isArray(ele) ? flat(ele, result) : ele !== void 0 && result.push(ele); + } + return result; + }; + flat(args); + return result; }; - convert.lab.xyz = function(lab) { - var l = lab[0]; - var a = lab[1]; - var b = lab[2]; - var x; - var y; - var z; - y = (l + 16) / 116; - x = a / 500 + y; - z = y - b / 200; - var y2 = Math.pow(y, 3); - var x2 = Math.pow(x, 3); - var z2 = Math.pow(z, 3); - y = y2 > 8856e-6 ? y2 : (y - 16 / 116) / 7.787; - x = x2 > 8856e-6 ? x2 : (x - 16 / 116) / 7.787; - z = z2 > 8856e-6 ? z2 : (z - 16 / 116) / 7.787; - x *= 95.047; - y *= 100; - z *= 108.883; - return [x, y, z]; + } +}); + +// node_modules/braces/lib/stringify.js +var require_stringify = __commonJS({ + "node_modules/braces/lib/stringify.js"(exports, module) { + "use strict"; + var utils = require_utils(); + module.exports = (ast, options8 = {}) => { + let stringify = (node, parent = {}) => { + let invalidBlock = options8.escapeInvalid && utils.isInvalidBrace(parent); + let invalidNode = node.invalid === true && options8.escapeInvalid === true; + let output = ""; + if (node.value) { + if ((invalidBlock || invalidNode) && utils.isOpenOrClose(node)) { + return "\\" + node.value; + } + return node.value; + } + if (node.value) { + return node.value; + } + if (node.nodes) { + for (let child of node.nodes) { + output += stringify(child); + } + } + return output; + }; + return stringify(ast); }; - convert.lab.lch = function(lab) { - var l = lab[0]; - var a = lab[1]; - var b = lab[2]; - var hr; - var h; - var c; - hr = Math.atan2(b, a); - h = hr * 360 / 2 / Math.PI; - if (h < 0) { - h += 360; + } +}); + +// node_modules/is-number/index.js +var require_is_number = __commonJS({ + "node_modules/is-number/index.js"(exports, module) { + "use strict"; + module.exports = function(num) { + if (typeof num === "number") { + return num - num === 0; } - c = Math.sqrt(a * a + b * b); - return [l, c, h]; + if (typeof num === "string" && num.trim() !== "") { + return Number.isFinite ? Number.isFinite(+num) : isFinite(+num); + } + return false; }; - convert.lch.lab = function(lch) { - var l = lch[0]; - var c = lch[1]; - var h = lch[2]; - var a; - var b; - var hr; - hr = h / 360 * 2 * Math.PI; - a = c * Math.cos(hr); - b = c * Math.sin(hr); - return [l, a, b]; - }; - convert.rgb.ansi16 = function(args) { - var r = args[0]; - var g = args[1]; - var b = args[2]; - var value = 1 in arguments ? arguments[1] : convert.rgb.hsv(args)[2]; - value = Math.round(value / 50); - if (value === 0) { - return 30; + } +}); + +// node_modules/to-regex-range/index.js +var require_to_regex_range = __commonJS({ + "node_modules/to-regex-range/index.js"(exports, module) { + "use strict"; + var isNumber = require_is_number(); + var toRegexRange = (min, max, options8) => { + if (isNumber(min) === false) { + throw new TypeError("toRegexRange: expected the first argument to be a number"); } - var ansi = 30 + (Math.round(b / 255) << 2 | Math.round(g / 255) << 1 | Math.round(r / 255)); - if (value === 2) { - ansi += 60; + if (max === void 0 || min === max) { + return String(min); } - return ansi; - }; - convert.hsv.ansi16 = function(args) { - return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]); - }; - convert.rgb.ansi256 = function(args) { - var r = args[0]; - var g = args[1]; - var b = args[2]; - if (r === g && g === b) { - if (r < 8) { - return 16; + if (isNumber(max) === false) { + throw new TypeError("toRegexRange: expected the second argument to be a number."); + } + let opts = { relaxZeros: true, ...options8 }; + if (typeof opts.strictZeros === "boolean") { + opts.relaxZeros = opts.strictZeros === false; + } + let relax = String(opts.relaxZeros); + let shorthand = String(opts.shorthand); + let capture = String(opts.capture); + let wrap = String(opts.wrap); + let cacheKey = min + ":" + max + "=" + relax + shorthand + capture + wrap; + if (toRegexRange.cache.hasOwnProperty(cacheKey)) { + return toRegexRange.cache[cacheKey].result; + } + let a = Math.min(min, max); + let b = Math.max(min, max); + if (Math.abs(a - b) === 1) { + let result = min + "|" + max; + if (opts.capture) { + return `(${result})`; } - if (r > 248) { - return 231; + if (opts.wrap === false) { + return result; } - return Math.round((r - 8) / 247 * 24) + 232; + return `(?:${result})`; } - var ansi = 16 + 36 * Math.round(r / 255 * 5) + 6 * Math.round(g / 255 * 5) + Math.round(b / 255 * 5); - return ansi; - }; - convert.ansi16.rgb = function(args) { - var color = args % 10; - if (color === 0 || color === 7) { - if (args > 50) { - color += 3.5; - } - color = color / 10.5 * 255; - return [color, color, color]; + let isPadded = hasPadding(min) || hasPadding(max); + let state = { min, max, a, b }; + let positives = []; + let negatives = []; + if (isPadded) { + state.isPadded = isPadded; + state.maxLen = String(state.max).length; } - var mult = (~~(args > 50) + 1) * 0.5; - var r = (color & 1) * mult * 255; - var g = (color >> 1 & 1) * mult * 255; - var b = (color >> 2 & 1) * mult * 255; - return [r, g, b]; - }; - convert.ansi256.rgb = function(args) { - if (args >= 232) { - var c = (args - 232) * 10 + 8; - return [c, c, c]; + if (a < 0) { + let newMin = b < 0 ? Math.abs(b) : 1; + negatives = splitToPatterns(newMin, Math.abs(a), state, opts); + a = state.a = 0; } - args -= 16; - var rem; - var r = Math.floor(args / 36) / 5 * 255; - var g = Math.floor((rem = args % 36) / 6) / 5 * 255; - var b = rem % 6 / 5 * 255; - return [r, g, b]; - }; - convert.rgb.hex = function(args) { - var integer = ((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255); - var string = integer.toString(16).toUpperCase(); - return "000000".substring(string.length) + string; - }; - convert.hex.rgb = function(args) { - var match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i); - if (!match) { - return [0, 0, 0]; + if (b >= 0) { + positives = splitToPatterns(a, b, state, opts); } - var colorString = match[0]; - if (match[0].length === 3) { - colorString = colorString.split("").map(function(char) { - return char + char; - }).join(""); + state.negatives = negatives; + state.positives = positives; + state.result = collatePatterns(negatives, positives, opts); + if (opts.capture === true) { + state.result = `(${state.result})`; + } else if (opts.wrap !== false && positives.length + negatives.length > 1) { + state.result = `(?:${state.result})`; } - var integer = parseInt(colorString, 16); - var r = integer >> 16 & 255; - var g = integer >> 8 & 255; - var b = integer & 255; - return [r, g, b]; + toRegexRange.cache[cacheKey] = state; + return state.result; }; - convert.rgb.hcg = function(rgb) { - var r = rgb[0] / 255; - var g = rgb[1] / 255; - var b = rgb[2] / 255; - var max = Math.max(Math.max(r, g), b); - var min = Math.min(Math.min(r, g), b); - var chroma = max - min; - var grayscale; - var hue; - if (chroma < 1) { - grayscale = min / (1 - chroma); - } else { - grayscale = 0; - } - if (chroma <= 0) { - hue = 0; - } else if (max === r) { - hue = (g - b) / chroma % 6; - } else if (max === g) { - hue = 2 + (b - r) / chroma; - } else { - hue = 4 + (r - g) / chroma + 4; + function collatePatterns(neg, pos, options8) { + let onlyNegative = filterPatterns(neg, pos, "-", false, options8) || []; + let onlyPositive = filterPatterns(pos, neg, "", false, options8) || []; + let intersected = filterPatterns(neg, pos, "-?", true, options8) || []; + let subpatterns = onlyNegative.concat(intersected).concat(onlyPositive); + return subpatterns.join("|"); + } + function splitToRanges(min, max) { + let nines = 1; + let zeros = 1; + let stop = countNines(min, nines); + let stops = /* @__PURE__ */ new Set([max]); + while (min <= stop && stop <= max) { + stops.add(stop); + nines += 1; + stop = countNines(min, nines); } - hue /= 6; - hue %= 1; - return [hue * 360, chroma * 100, grayscale * 100]; - }; - convert.hsl.hcg = function(hsl) { - var s = hsl[1] / 100; - var l = hsl[2] / 100; - var c = 1; - var f = 0; - if (l < 0.5) { - c = 2 * s * l; - } else { - c = 2 * s * (1 - l); + stop = countZeros(max + 1, zeros) - 1; + while (min < stop && stop <= max) { + stops.add(stop); + zeros += 1; + stop = countZeros(max + 1, zeros) - 1; } - if (c < 1) { - f = (l - 0.5 * c) / (1 - c); + stops = [...stops]; + stops.sort(compare); + return stops; + } + function rangeToPattern(start, stop, options8) { + if (start === stop) { + return { pattern: start, count: [], digits: 0 }; } - return [hsl[0], c * 100, f * 100]; - }; - convert.hsv.hcg = function(hsv) { - var s = hsv[1] / 100; - var v = hsv[2] / 100; - var c = s * v; - var f = 0; - if (c < 1) { - f = (v - c) / (1 - c); + let zipped = zip(start, stop); + let digits = zipped.length; + let pattern = ""; + let count = 0; + for (let i = 0; i < digits; i++) { + let [startDigit, stopDigit] = zipped[i]; + if (startDigit === stopDigit) { + pattern += startDigit; + } else if (startDigit !== "0" || stopDigit !== "9") { + pattern += toCharacterClass(startDigit, stopDigit, options8); + } else { + count++; + } } - return [hsv[0], c * 100, f * 100]; - }; - convert.hcg.rgb = function(hcg) { - var h = hcg[0] / 360; - var c = hcg[1] / 100; - var g = hcg[2] / 100; - if (c === 0) { - return [g * 255, g * 255, g * 255]; + if (count) { + pattern += options8.shorthand === true ? "\\d" : "[0-9]"; } - var pure = [0, 0, 0]; - var hi = h % 1 * 6; - var v = hi % 1; - var w = 1 - v; - var mg = 0; - switch (Math.floor(hi)) { - case 0: - pure[0] = 1; - pure[1] = v; - pure[2] = 0; - break; - case 1: - pure[0] = w; - pure[1] = 1; - pure[2] = 0; - break; - case 2: - pure[0] = 0; - pure[1] = 1; - pure[2] = v; - break; - case 3: - pure[0] = 0; - pure[1] = w; - pure[2] = 1; - break; - case 4: - pure[0] = v; - pure[1] = 0; - pure[2] = 1; - break; - default: - pure[0] = 1; - pure[1] = 0; - pure[2] = w; + return { pattern, count: [count], digits }; + } + function splitToPatterns(min, max, tok, options8) { + let ranges = splitToRanges(min, max); + let tokens = []; + let start = min; + let prev; + for (let i = 0; i < ranges.length; i++) { + let max2 = ranges[i]; + let obj = rangeToPattern(String(start), String(max2), options8); + let zeros = ""; + if (!tok.isPadded && prev && prev.pattern === obj.pattern) { + if (prev.count.length > 1) { + prev.count.pop(); + } + prev.count.push(obj.count[0]); + prev.string = prev.pattern + toQuantifier(prev.count); + start = max2 + 1; + continue; + } + if (tok.isPadded) { + zeros = padZeros(max2, tok, options8); + } + obj.string = zeros + obj.pattern + toQuantifier(obj.count); + tokens.push(obj); + start = max2 + 1; + prev = obj; } - mg = (1 - c) * g; - return [ - (c * pure[0] + mg) * 255, - (c * pure[1] + mg) * 255, - (c * pure[2] + mg) * 255 - ]; - }; - convert.hcg.hsv = function(hcg) { - var c = hcg[1] / 100; - var g = hcg[2] / 100; - var v = c + g * (1 - c); - var f = 0; - if (v > 0) { - f = c / v; + return tokens; + } + function filterPatterns(arr, comparison, prefix, intersection, options8) { + let result = []; + for (let ele of arr) { + let { string } = ele; + if (!intersection && !contains(comparison, "string", string)) { + result.push(prefix + string); + } + if (intersection && contains(comparison, "string", string)) { + result.push(prefix + string); + } } - return [hcg[0], f * 100, v * 100]; - }; - convert.hcg.hsl = function(hcg) { - var c = hcg[1] / 100; - var g = hcg[2] / 100; - var l = g * (1 - c) + 0.5 * c; - var s = 0; - if (l > 0 && l < 0.5) { - s = c / (2 * l); - } else if (l >= 0.5 && l < 1) { - s = c / (2 * (1 - l)); + return result; + } + function zip(a, b) { + let arr = []; + for (let i = 0; i < a.length; i++) + arr.push([a[i], b[i]]); + return arr; + } + function compare(a, b) { + return a > b ? 1 : b > a ? -1 : 0; + } + function contains(arr, key, val) { + return arr.some((ele) => ele[key] === val); + } + function countNines(min, len) { + return Number(String(min).slice(0, -len) + "9".repeat(len)); + } + function countZeros(integer, zeros) { + return integer - integer % Math.pow(10, zeros); + } + function toQuantifier(digits) { + let [start = 0, stop = ""] = digits; + if (stop || start > 1) { + return `{${start + (stop ? "," + stop : "")}}`; } - return [hcg[0], s * 100, l * 100]; + return ""; + } + function toCharacterClass(a, b, options8) { + return `[${a}${b - a === 1 ? "" : "-"}${b}]`; + } + function hasPadding(str) { + return /^-?(0+)\d/.test(str); + } + function padZeros(value, tok, options8) { + if (!tok.isPadded) { + return value; + } + let diff = Math.abs(tok.maxLen - String(value).length); + let relax = options8.relaxZeros !== false; + switch (diff) { + case 0: + return ""; + case 1: + return relax ? "0?" : "0"; + case 2: + return relax ? "0{0,2}" : "00"; + default: { + return relax ? `0{0,${diff}}` : `0{${diff}}`; + } + } + } + toRegexRange.cache = {}; + toRegexRange.clearCache = () => toRegexRange.cache = {}; + module.exports = toRegexRange; + } +}); + +// node_modules/fill-range/index.js +var require_fill_range = __commonJS({ + "node_modules/fill-range/index.js"(exports, module) { + "use strict"; + var util = __require("util"); + var toRegexRange = require_to_regex_range(); + var isObject2 = (val) => val !== null && typeof val === "object" && !Array.isArray(val); + var transform2 = (toNumber) => { + return (value) => toNumber === true ? Number(value) : String(value); }; - convert.hcg.hwb = function(hcg) { - var c = hcg[1] / 100; - var g = hcg[2] / 100; - var v = c + g * (1 - c); - return [hcg[0], (v - c) * 100, (1 - v) * 100]; + var isValidValue = (value) => { + return typeof value === "number" || typeof value === "string" && value !== ""; }; - convert.hwb.hcg = function(hwb) { - var w = hwb[1] / 100; - var b = hwb[2] / 100; - var v = 1 - b; - var c = v - w; - var g = 0; - if (c < 1) { - g = (v - c) / (1 - c); + var isNumber = (num) => Number.isInteger(+num); + var zeros = (input) => { + let value = `${input}`; + let index = -1; + if (value[0] === "-") + value = value.slice(1); + if (value === "0") + return false; + while (value[++index] === "0") + ; + return index > 0; + }; + var stringify = (start, end, options8) => { + if (typeof start === "string" || typeof end === "string") { + return true; } - return [hwb[0], c * 100, g * 100]; + return options8.stringify === true; }; - convert.apple.rgb = function(apple) { - return [apple[0] / 65535 * 255, apple[1] / 65535 * 255, apple[2] / 65535 * 255]; + var pad = (input, maxLength, toNumber) => { + if (maxLength > 0) { + let dash = input[0] === "-" ? "-" : ""; + if (dash) + input = input.slice(1); + input = dash + input.padStart(dash ? maxLength - 1 : maxLength, "0"); + } + if (toNumber === false) { + return String(input); + } + return input; }; - convert.rgb.apple = function(rgb) { - return [rgb[0] / 255 * 65535, rgb[1] / 255 * 65535, rgb[2] / 255 * 65535]; + var toMaxLen = (input, maxLength) => { + let negative = input[0] === "-" ? "-" : ""; + if (negative) { + input = input.slice(1); + maxLength--; + } + while (input.length < maxLength) + input = "0" + input; + return negative ? "-" + input : input; }; - convert.gray.rgb = function(args) { - return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255]; + var toSequence = (parts, options8) => { + parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0); + parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0); + let prefix = options8.capture ? "" : "?:"; + let positives = ""; + let negatives = ""; + let result; + if (parts.positives.length) { + positives = parts.positives.join("|"); + } + if (parts.negatives.length) { + negatives = `-(${prefix}${parts.negatives.join("|")})`; + } + if (positives && negatives) { + result = `${positives}|${negatives}`; + } else { + result = positives || negatives; + } + if (options8.wrap) { + return `(${prefix}${result})`; + } + return result; }; - convert.gray.hsl = convert.gray.hsv = function(args) { - return [0, 0, args[0]]; + var toRange = (a, b, isNumbers, options8) => { + if (isNumbers) { + return toRegexRange(a, b, { wrap: false, ...options8 }); + } + let start = String.fromCharCode(a); + if (a === b) + return start; + let stop = String.fromCharCode(b); + return `[${start}-${stop}]`; }; - convert.gray.hwb = function(gray) { - return [0, 100, gray[0]]; + var toRegex = (start, end, options8) => { + if (Array.isArray(start)) { + let wrap = options8.wrap === true; + let prefix = options8.capture ? "" : "?:"; + return wrap ? `(${prefix}${start.join("|")})` : start.join("|"); + } + return toRegexRange(start, end, options8); }; - convert.gray.cmyk = function(gray) { - return [0, 0, 0, gray[0]]; + var rangeError = (...args) => { + return new RangeError("Invalid range arguments: " + util.inspect(...args)); }; - convert.gray.lab = function(gray) { - return [gray[0], 0, 0]; + var invalidRange = (start, end, options8) => { + if (options8.strictRanges === true) + throw rangeError([start, end]); + return []; }; - convert.gray.hex = function(gray) { - var val = Math.round(gray[0] / 100 * 255) & 255; - var integer = (val << 16) + (val << 8) + val; - var string = integer.toString(16).toUpperCase(); - return "000000".substring(string.length) + string; - }; - convert.rgb.gray = function(rgb) { - var val = (rgb[0] + rgb[1] + rgb[2]) / 3; - return [val / 255 * 100]; + var invalidStep = (step, options8) => { + if (options8.strictRanges === true) { + throw new TypeError(`Expected step "${step}" to be a number`); + } + return []; }; - } -}); - -// node_modules/color-convert/route.js -var require_route = __commonJS({ - "node_modules/color-convert/route.js"(exports, module) { - var conversions = require_conversions(); - function buildGraph() { - var graph = {}; - var models = Object.keys(conversions); - for (var len = models.length, i = 0; i < len; i++) { - graph[models[i]] = { - // http://jsperf.com/1-vs-infinity - // micro-opt, but this is simple. - distance: -1, - parent: null - }; + var fillNumbers = (start, end, step = 1, options8 = {}) => { + let a = Number(start); + let b = Number(end); + if (!Number.isInteger(a) || !Number.isInteger(b)) { + if (options8.strictRanges === true) + throw rangeError([start, end]); + return []; } - return graph; - } - function deriveBFS(fromModel) { - var graph = buildGraph(); - var queue = [fromModel]; - graph[fromModel].distance = 0; - while (queue.length) { - var current = queue.pop(); - var adjacents = Object.keys(conversions[current]); - for (var len = adjacents.length, i = 0; i < len; i++) { - var adjacent = adjacents[i]; - var node = graph[adjacent]; - if (node.distance === -1) { - node.distance = graph[current].distance + 1; - node.parent = current; - queue.unshift(adjacent); - } + if (a === 0) + a = 0; + if (b === 0) + b = 0; + let descending = a > b; + let startString = String(start); + let endString = String(end); + let stepString = String(step); + step = Math.max(Math.abs(step), 1); + let padded = zeros(startString) || zeros(endString) || zeros(stepString); + let maxLen = padded ? Math.max(startString.length, endString.length, stepString.length) : 0; + let toNumber = padded === false && stringify(start, end, options8) === false; + let format3 = options8.transform || transform2(toNumber); + if (options8.toRegex && step === 1) { + return toRange(toMaxLen(start, maxLen), toMaxLen(end, maxLen), true, options8); + } + let parts = { negatives: [], positives: [] }; + let push = (num) => parts[num < 0 ? "negatives" : "positives"].push(Math.abs(num)); + let range = []; + let index = 0; + while (descending ? a >= b : a <= b) { + if (options8.toRegex === true && step > 1) { + push(a); + } else { + range.push(pad(format3(a, index), maxLen, toNumber)); } + a = descending ? a - step : a + step; + index++; } - return graph; - } - function link(from, to) { - return function(args) { - return to(from(args)); - }; - } - function wrapConversion(toModel, graph) { - var path9 = [graph[toModel].parent, toModel]; - var fn = conversions[graph[toModel].parent][toModel]; - var cur = graph[toModel].parent; - while (graph[cur].parent) { - path9.unshift(graph[cur].parent); - fn = link(conversions[graph[cur].parent][cur], fn); - cur = graph[cur].parent; + if (options8.toRegex === true) { + return step > 1 ? toSequence(parts, options8) : toRegex(range, null, { wrap: false, ...options8 }); } - fn.conversion = path9; - return fn; - } - module.exports = function(fromModel) { - var graph = deriveBFS(fromModel); - var conversion = {}; - var models = Object.keys(graph); - for (var len = models.length, i = 0; i < len; i++) { - var toModel = models[i]; - var node = graph[toModel]; - if (node.parent === null) { - continue; - } - conversion[toModel] = wrapConversion(toModel, graph); + return range; + }; + var fillLetters = (start, end, step = 1, options8 = {}) => { + if (!isNumber(start) && start.length > 1 || !isNumber(end) && end.length > 1) { + return invalidRange(start, end, options8); } - return conversion; + let format3 = options8.transform || ((val) => String.fromCharCode(val)); + let a = `${start}`.charCodeAt(0); + let b = `${end}`.charCodeAt(0); + let descending = a > b; + let min = Math.min(a, b); + let max = Math.max(a, b); + if (options8.toRegex && step === 1) { + return toRange(min, max, false, options8); + } + let range = []; + let index = 0; + while (descending ? a >= b : a <= b) { + range.push(format3(a, index)); + a = descending ? a - step : a + step; + index++; + } + if (options8.toRegex === true) { + return toRegex(range, null, { wrap: false, options: options8 }); + } + return range; + }; + var fill2 = (start, end, step, options8 = {}) => { + if (end == null && isValidValue(start)) { + return [start]; + } + if (!isValidValue(start) || !isValidValue(end)) { + return invalidRange(start, end, options8); + } + if (typeof step === "function") { + return fill2(start, end, 1, { transform: step }); + } + if (isObject2(step)) { + return fill2(start, end, 0, step); + } + let opts = { ...options8 }; + if (opts.capture === true) + opts.wrap = true; + step = step || opts.step || 1; + if (!isNumber(step)) { + if (step != null && !isObject2(step)) + return invalidStep(step, opts); + return fill2(start, end, 1, step); + } + if (isNumber(start) && isNumber(end)) { + return fillNumbers(start, end, step, opts); + } + return fillLetters(start, end, Math.max(Math.abs(step), 1), opts); }; + module.exports = fill2; } }); -// node_modules/color-convert/index.js -var require_color_convert = __commonJS({ - "node_modules/color-convert/index.js"(exports, module) { - var conversions = require_conversions(); - var route = require_route(); - var convert = {}; - var models = Object.keys(conversions); - function wrapRaw(fn) { - var wrappedFn = function(args) { - if (args === void 0 || args === null) { - return args; +// node_modules/braces/lib/compile.js +var require_compile = __commonJS({ + "node_modules/braces/lib/compile.js"(exports, module) { + "use strict"; + var fill2 = require_fill_range(); + var utils = require_utils(); + var compile = (ast, options8 = {}) => { + let walk = (node, parent = {}) => { + let invalidBlock = utils.isInvalidBrace(parent); + let invalidNode = node.invalid === true && options8.escapeInvalid === true; + let invalid = invalidBlock === true || invalidNode === true; + let prefix = options8.escapeInvalid === true ? "\\" : ""; + let output = ""; + if (node.isOpen === true) { + return prefix + node.value; } - if (arguments.length > 1) { - args = Array.prototype.slice.call(arguments); + if (node.isClose === true) { + return prefix + node.value; } - return fn(args); - }; - if ("conversion" in fn) { - wrappedFn.conversion = fn.conversion; - } - return wrappedFn; - } - function wrapRounded(fn) { - var wrappedFn = function(args) { - if (args === void 0 || args === null) { - return args; + if (node.type === "open") { + return invalid ? prefix + node.value : "("; } - if (arguments.length > 1) { - args = Array.prototype.slice.call(arguments); + if (node.type === "close") { + return invalid ? prefix + node.value : ")"; } - var result = fn(args); - if (typeof result === "object") { - for (var len = result.length, i = 0; i < len; i++) { - result[i] = Math.round(result[i]); + if (node.type === "comma") { + return node.prev.type === "comma" ? "" : invalid ? node.value : "|"; + } + if (node.value) { + return node.value; + } + if (node.nodes && node.ranges > 0) { + let args = utils.reduce(node.nodes); + let range = fill2(...args, { ...options8, wrap: false, toRegex: true }); + if (range.length !== 0) { + return args.length > 1 && range.length > 1 ? `(${range})` : range; } } - return result; + if (node.nodes) { + for (let child of node.nodes) { + output += walk(child, node); + } + } + return output; }; - if ("conversion" in fn) { - wrappedFn.conversion = fn.conversion; - } - return wrappedFn; - } - models.forEach(function(fromModel) { - convert[fromModel] = {}; - Object.defineProperty(convert[fromModel], "channels", { value: conversions[fromModel].channels }); - Object.defineProperty(convert[fromModel], "labels", { value: conversions[fromModel].labels }); - var routes = route(fromModel); - var routeModels = Object.keys(routes); - routeModels.forEach(function(toModel) { - var fn = routes[toModel]; - convert[fromModel][toModel] = wrapRounded(fn); - convert[fromModel][toModel].raw = wrapRaw(fn); - }); - }); - module.exports = convert; + return walk(ast); + }; + module.exports = compile; } }); -// node_modules/ansi-styles/index.js -var require_ansi_styles = __commonJS({ - "node_modules/ansi-styles/index.js"(exports, module) { - "use strict"; - var colorConvert = require_color_convert(); - var wrapAnsi16 = (fn, offset) => function() { - const code = fn.apply(colorConvert, arguments); - return `\x1B[${code + offset}m`; - }; - var wrapAnsi256 = (fn, offset) => function() { - const code = fn.apply(colorConvert, arguments); - return `\x1B[${38 + offset};5;${code}m`; - }; - var wrapAnsi16m = (fn, offset) => function() { - const rgb = fn.apply(colorConvert, arguments); - return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`; - }; - function assembleStyles() { - const codes2 = /* @__PURE__ */ new Map(); - const styles = { - modifier: { - reset: [0, 0], - // 21 isn't widely supported and 22 does the same thing - bold: [1, 22], - dim: [2, 22], - italic: [3, 23], - underline: [4, 24], - inverse: [7, 27], - hidden: [8, 28], - strikethrough: [9, 29] - }, - color: { - black: [30, 39], - red: [31, 39], - green: [32, 39], - yellow: [33, 39], - blue: [34, 39], - magenta: [35, 39], - cyan: [36, 39], - white: [37, 39], - gray: [90, 39], - // Bright color - redBright: [91, 39], - greenBright: [92, 39], - yellowBright: [93, 39], - blueBright: [94, 39], - magentaBright: [95, 39], - cyanBright: [96, 39], - whiteBright: [97, 39] - }, - bgColor: { - bgBlack: [40, 49], - bgRed: [41, 49], - bgGreen: [42, 49], - bgYellow: [43, 49], - bgBlue: [44, 49], - bgMagenta: [45, 49], - bgCyan: [46, 49], - bgWhite: [47, 49], - // Bright color - bgBlackBright: [100, 49], - bgRedBright: [101, 49], - bgGreenBright: [102, 49], - bgYellowBright: [103, 49], - bgBlueBright: [104, 49], - bgMagentaBright: [105, 49], - bgCyanBright: [106, 49], - bgWhiteBright: [107, 49] - } - }; - styles.color.grey = styles.color.gray; - for (const groupName of Object.keys(styles)) { - const group = styles[groupName]; - for (const styleName of Object.keys(group)) { - const style = group[styleName]; - styles[styleName] = { - open: `\x1B[${style[0]}m`, - close: `\x1B[${style[1]}m` - }; - group[styleName] = styles[styleName]; - codes2.set(style[0], style[1]); +// node_modules/braces/lib/expand.js +var require_expand = __commonJS({ + "node_modules/braces/lib/expand.js"(exports, module) { + "use strict"; + var fill2 = require_fill_range(); + var stringify = require_stringify(); + var utils = require_utils(); + var append = (queue = "", stash = "", enclose = false) => { + let result = []; + queue = [].concat(queue); + stash = [].concat(stash); + if (!stash.length) + return queue; + if (!queue.length) { + return enclose ? utils.flatten(stash).map((ele) => `{${ele}}`) : stash; + } + for (let item of queue) { + if (Array.isArray(item)) { + for (let value of item) { + result.push(append(value, stash, enclose)); + } + } else { + for (let ele of stash) { + if (enclose === true && typeof ele === "string") + ele = `{${ele}}`; + result.push(Array.isArray(ele) ? append(item, ele, enclose) : item + ele); + } } - Object.defineProperty(styles, groupName, { - value: group, - enumerable: false - }); - Object.defineProperty(styles, "codes", { - value: codes2, - enumerable: false - }); } - const ansi2ansi = (n) => n; - const rgb2rgb = (r, g, b) => [r, g, b]; - styles.color.close = "\x1B[39m"; - styles.bgColor.close = "\x1B[49m"; - styles.color.ansi = { - ansi: wrapAnsi16(ansi2ansi, 0) - }; - styles.color.ansi256 = { - ansi256: wrapAnsi256(ansi2ansi, 0) - }; - styles.color.ansi16m = { - rgb: wrapAnsi16m(rgb2rgb, 0) - }; - styles.bgColor.ansi = { - ansi: wrapAnsi16(ansi2ansi, 10) - }; - styles.bgColor.ansi256 = { - ansi256: wrapAnsi256(ansi2ansi, 10) - }; - styles.bgColor.ansi16m = { - rgb: wrapAnsi16m(rgb2rgb, 10) - }; - for (let key of Object.keys(colorConvert)) { - if (typeof colorConvert[key] !== "object") { - continue; + return utils.flatten(result); + }; + var expand = (ast, options8 = {}) => { + let rangeLimit = options8.rangeLimit === void 0 ? 1e3 : options8.rangeLimit; + let walk = (node, parent = {}) => { + node.queue = []; + let p = parent; + let q = parent.queue; + while (p.type !== "brace" && p.type !== "root" && p.parent) { + p = p.parent; + q = p.queue; } - const suite = colorConvert[key]; - if (key === "ansi16") { - key = "ansi"; + if (node.invalid || node.dollar) { + q.push(append(q.pop(), stringify(node, options8))); + return; } - if ("ansi16" in suite) { - styles.color.ansi[key] = wrapAnsi16(suite.ansi16, 0); - styles.bgColor.ansi[key] = wrapAnsi16(suite.ansi16, 10); + if (node.type === "brace" && node.invalid !== true && node.nodes.length === 2) { + q.push(append(q.pop(), ["{}"])); + return; } - if ("ansi256" in suite) { - styles.color.ansi256[key] = wrapAnsi256(suite.ansi256, 0); - styles.bgColor.ansi256[key] = wrapAnsi256(suite.ansi256, 10); + if (node.nodes && node.ranges > 0) { + let args = utils.reduce(node.nodes); + if (utils.exceedsLimit(...args, options8.step, rangeLimit)) { + throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit."); + } + let range = fill2(...args, options8); + if (range.length === 0) { + range = stringify(node, options8); + } + q.push(append(q.pop(), range)); + node.nodes = []; + return; } - if ("rgb" in suite) { - styles.color.ansi16m[key] = wrapAnsi16m(suite.rgb, 0); - styles.bgColor.ansi16m[key] = wrapAnsi16m(suite.rgb, 10); + let enclose = utils.encloseBrace(node); + let queue = node.queue; + let block = node; + while (block.type !== "brace" && block.type !== "root" && block.parent) { + block = block.parent; + queue = block.queue; } - } - return styles; - } - Object.defineProperty(module, "exports", { - enumerable: true, - get: assembleStyles - }); - } -}); - -// node_modules/vnopts/node_modules/has-flag/index.js -var require_has_flag = __commonJS({ - "node_modules/vnopts/node_modules/has-flag/index.js"(exports, module) { - "use strict"; - module.exports = (flag, argv) => { - argv = argv || process.argv; - const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--"; - const pos = argv.indexOf(prefix + flag); - const terminatorPos = argv.indexOf("--"); - return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos); + for (let i = 0; i < node.nodes.length; i++) { + let child = node.nodes[i]; + if (child.type === "comma" && node.type === "brace") { + if (i === 1) + queue.push(""); + queue.push(""); + continue; + } + if (child.type === "close") { + q.push(append(q.pop(), queue, enclose)); + continue; + } + if (child.value && child.type !== "open") { + queue.push(append(queue.pop(), child.value)); + continue; + } + if (child.nodes) { + walk(child, node); + } + } + return queue; + }; + return utils.flatten(walk(ast)); }; + module.exports = expand; } }); -// node_modules/vnopts/node_modules/supports-color/index.js -var require_supports_color = __commonJS({ - "node_modules/vnopts/node_modules/supports-color/index.js"(exports, module) { +// node_modules/braces/lib/constants.js +var require_constants = __commonJS({ + "node_modules/braces/lib/constants.js"(exports, module) { "use strict"; - var os = __require("os"); - var hasFlag = require_has_flag(); - var env = process.env; - var forceColor; - if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) { - forceColor = false; - } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) { - forceColor = true; - } - if ("FORCE_COLOR" in env) { - forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0; - } - function translateLevel(level) { - if (level === 0) { - return false; - } - return { - level, - hasBasic: true, - has256: level >= 2, - has16m: level >= 3 - }; - } - function supportsColor(stream) { - if (forceColor === false) { - return 0; - } - if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) { - return 3; - } - if (hasFlag("color=256")) { - return 2; - } - if (stream && !stream.isTTY && forceColor !== true) { - return 0; - } - const min = forceColor ? 1 : 0; - if (process.platform === "win32") { - const osRelease = os.release().split("."); - if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) { - return Number(osRelease[2]) >= 14931 ? 3 : 2; - } - return 1; - } - if ("CI" in env) { - if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env) || env.CI_NAME === "codeship") { - return 1; - } - return min; - } - if ("TEAMCITY_VERSION" in env) { - return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0; - } - if (env.COLORTERM === "truecolor") { - return 3; - } - if ("TERM_PROGRAM" in env) { - const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10); - switch (env.TERM_PROGRAM) { - case "iTerm.app": - return version >= 3 ? 3 : 2; - case "Apple_Terminal": - return 2; - } - } - if (/-256(color)?$/i.test(env.TERM)) { - return 2; - } - if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) { - return 1; - } - if ("COLORTERM" in env) { - return 1; - } - if (env.TERM === "dumb") { - return min; - } - return min; - } - function getSupportLevel(stream) { - const level = supportsColor(stream); - return translateLevel(level); - } module.exports = { - supportsColor: getSupportLevel, - stdout: getSupportLevel(process.stdout), - stderr: getSupportLevel(process.stderr) - }; + MAX_LENGTH: 1024 * 64, + // Digits + CHAR_0: "0", + /* 0 */ + CHAR_9: "9", + /* 9 */ + // Alphabet chars. + CHAR_UPPERCASE_A: "A", + /* A */ + CHAR_LOWERCASE_A: "a", + /* a */ + CHAR_UPPERCASE_Z: "Z", + /* Z */ + CHAR_LOWERCASE_Z: "z", + /* z */ + CHAR_LEFT_PARENTHESES: "(", + /* ( */ + CHAR_RIGHT_PARENTHESES: ")", + /* ) */ + CHAR_ASTERISK: "*", + /* * */ + // Non-alphabetic chars. + CHAR_AMPERSAND: "&", + /* & */ + CHAR_AT: "@", + /* @ */ + CHAR_BACKSLASH: "\\", + /* \ */ + CHAR_BACKTICK: "`", + /* ` */ + CHAR_CARRIAGE_RETURN: "\r", + /* \r */ + CHAR_CIRCUMFLEX_ACCENT: "^", + /* ^ */ + CHAR_COLON: ":", + /* : */ + CHAR_COMMA: ",", + /* , */ + CHAR_DOLLAR: "$", + /* . */ + CHAR_DOT: ".", + /* . */ + CHAR_DOUBLE_QUOTE: '"', + /* " */ + CHAR_EQUAL: "=", + /* = */ + CHAR_EXCLAMATION_MARK: "!", + /* ! */ + CHAR_FORM_FEED: "\f", + /* \f */ + CHAR_FORWARD_SLASH: "/", + /* / */ + CHAR_HASH: "#", + /* # */ + CHAR_HYPHEN_MINUS: "-", + /* - */ + CHAR_LEFT_ANGLE_BRACKET: "<", + /* < */ + CHAR_LEFT_CURLY_BRACE: "{", + /* { */ + CHAR_LEFT_SQUARE_BRACKET: "[", + /* [ */ + CHAR_LINE_FEED: "\n", + /* \n */ + CHAR_NO_BREAK_SPACE: "\xA0", + /* \u00A0 */ + CHAR_PERCENT: "%", + /* % */ + CHAR_PLUS: "+", + /* + */ + CHAR_QUESTION_MARK: "?", + /* ? */ + CHAR_RIGHT_ANGLE_BRACKET: ">", + /* > */ + CHAR_RIGHT_CURLY_BRACE: "}", + /* } */ + CHAR_RIGHT_SQUARE_BRACKET: "]", + /* ] */ + CHAR_SEMICOLON: ";", + /* ; */ + CHAR_SINGLE_QUOTE: "'", + /* ' */ + CHAR_SPACE: " ", + /* */ + CHAR_TAB: " ", + /* \t */ + CHAR_UNDERSCORE: "_", + /* _ */ + CHAR_VERTICAL_LINE: "|", + /* | */ + CHAR_ZERO_WIDTH_NOBREAK_SPACE: "\uFEFF" + /* \uFEFF */ + }; } }); -// node_modules/vnopts/node_modules/chalk/templates.js -var require_templates = __commonJS({ - "node_modules/vnopts/node_modules/chalk/templates.js"(exports, module) { +// node_modules/braces/lib/parse.js +var require_parse = __commonJS({ + "node_modules/braces/lib/parse.js"(exports, module) { "use strict"; - var TEMPLATE_REGEX = /(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi; - var STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g; - var STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/; - var ESCAPE_REGEX = /\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi; - var ESCAPES = /* @__PURE__ */ new Map([ - ["n", "\n"], - ["r", "\r"], - ["t", " "], - ["b", "\b"], - ["f", "\f"], - ["v", "\v"], - ["0", "\0"], - ["\\", "\\"], - ["e", "\x1B"], - ["a", "\x07"] - ]); - function unescape(c) { - if (c[0] === "u" && c.length === 5 || c[0] === "x" && c.length === 3) { - return String.fromCharCode(parseInt(c.slice(1), 16)); + var stringify = require_stringify(); + var { + MAX_LENGTH, + CHAR_BACKSLASH, + /* \ */ + CHAR_BACKTICK, + /* ` */ + CHAR_COMMA, + /* , */ + CHAR_DOT, + /* . */ + CHAR_LEFT_PARENTHESES, + /* ( */ + CHAR_RIGHT_PARENTHESES, + /* ) */ + CHAR_LEFT_CURLY_BRACE, + /* { */ + CHAR_RIGHT_CURLY_BRACE, + /* } */ + CHAR_LEFT_SQUARE_BRACKET, + /* [ */ + CHAR_RIGHT_SQUARE_BRACKET, + /* ] */ + CHAR_DOUBLE_QUOTE, + /* " */ + CHAR_SINGLE_QUOTE, + /* ' */ + CHAR_NO_BREAK_SPACE, + CHAR_ZERO_WIDTH_NOBREAK_SPACE + } = require_constants(); + var parse3 = (input, options8 = {}) => { + if (typeof input !== "string") { + throw new TypeError("Expected a string"); } - return ESCAPES.get(c) || c; - } - function parseArguments(name, args) { - const results = []; - const chunks = args.trim().split(/\s*,\s*/g); - let matches; - for (const chunk of chunks) { - if (!isNaN(chunk)) { - results.push(Number(chunk)); - } else if (matches = chunk.match(STRING_REGEX)) { - results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, chr) => escape ? unescape(escape) : chr)); - } else { - throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`); - } + let opts = options8 || {}; + let max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH; + if (input.length > max) { + throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`); } - return results; - } - function parseStyle(style) { - STYLE_REGEX.lastIndex = 0; - const results = []; - let matches; - while ((matches = STYLE_REGEX.exec(style)) !== null) { - const name = matches[1]; - if (matches[2]) { - const args = parseArguments(name, matches[2]); - results.push([name].concat(args)); - } else { - results.push([name]); + let ast = { type: "root", input, nodes: [] }; + let stack = [ast]; + let block = ast; + let prev = ast; + let brackets = 0; + let length = input.length; + let index = 0; + let depth = 0; + let value; + let memo = {}; + const advance = () => input[index++]; + const push = (node) => { + if (node.type === "text" && prev.type === "dot") { + prev.type = "text"; } - } - return results; - } - function buildStyle(chalk, styles) { - const enabled = {}; - for (const layer of styles) { - for (const style of layer.styles) { - enabled[style[0]] = layer.inverse ? null : style.slice(1); + if (prev && prev.type === "text" && node.type === "text") { + prev.value += node.value; + return; } - } - let current = chalk; - for (const styleName of Object.keys(enabled)) { - if (Array.isArray(enabled[styleName])) { - if (!(styleName in current)) { - throw new Error(`Unknown Chalk style: ${styleName}`); - } - if (enabled[styleName].length > 0) { - current = current[styleName].apply(current, enabled[styleName]); - } else { - current = current[styleName]; - } + block.nodes.push(node); + node.parent = block; + node.prev = prev; + prev = node; + return node; + }; + push({ type: "bos" }); + while (index < length) { + block = stack[stack.length - 1]; + value = advance(); + if (value === CHAR_ZERO_WIDTH_NOBREAK_SPACE || value === CHAR_NO_BREAK_SPACE) { + continue; } - } - return current; - } - module.exports = (chalk, tmp) => { - const styles = []; - const chunks = []; - let chunk = []; - tmp.replace(TEMPLATE_REGEX, (m, escapeChar, inverse, style, close, chr) => { - if (escapeChar) { - chunk.push(unescape(escapeChar)); - } else if (style) { - const str = chunk.join(""); - chunk = []; - chunks.push(styles.length === 0 ? str : buildStyle(chalk, styles)(str)); - styles.push({ inverse, styles: parseStyle(style) }); - } else if (close) { - if (styles.length === 0) { - throw new Error("Found extraneous } in Chalk template literal"); - } - chunks.push(buildStyle(chalk, styles)(chunk.join(""))); - chunk = []; - styles.pop(); - } else { - chunk.push(chr); + if (value === CHAR_BACKSLASH) { + push({ type: "text", value: (options8.keepEscaping ? value : "") + advance() }); + continue; } - }); - chunks.push(chunk.join("")); - if (styles.length > 0) { - const errMsg = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? "" : "s"} (\`}\`)`; - throw new Error(errMsg); - } - return chunks.join(""); - }; - } -}); - -// node_modules/vnopts/node_modules/chalk/index.js -var require_chalk = __commonJS({ - "node_modules/vnopts/node_modules/chalk/index.js"(exports, module) { - "use strict"; - var escapeStringRegexp2 = require_escape_string_regexp(); - var ansiStyles = require_ansi_styles(); - var stdoutColor = require_supports_color().stdout; - var template = require_templates(); - var isSimpleWindowsTerm = process.platform === "win32" && !(process.env.TERM || "").toLowerCase().startsWith("xterm"); - var levelMapping = ["ansi", "ansi", "ansi256", "ansi16m"]; - var skipModels = /* @__PURE__ */ new Set(["gray"]); - var styles = /* @__PURE__ */ Object.create(null); - function applyOptions(obj, options8) { - options8 = options8 || {}; - const scLevel = stdoutColor ? stdoutColor.level : 0; - obj.level = options8.level === void 0 ? scLevel : options8.level; - obj.enabled = "enabled" in options8 ? options8.enabled : obj.level > 0; - } - function Chalk(options8) { - if (!this || !(this instanceof Chalk) || this.template) { - const chalk = {}; - applyOptions(chalk, options8); - chalk.template = function() { - const args = [].slice.call(arguments); - return chalkTag.apply(null, [chalk.template].concat(args)); - }; - Object.setPrototypeOf(chalk, Chalk.prototype); - Object.setPrototypeOf(chalk.template, chalk); - chalk.template.constructor = Chalk; - return chalk.template; - } - applyOptions(this, options8); - } - if (isSimpleWindowsTerm) { - ansiStyles.blue.open = "\x1B[94m"; - } - for (const key of Object.keys(ansiStyles)) { - ansiStyles[key].closeRe = new RegExp(escapeStringRegexp2(ansiStyles[key].close), "g"); - styles[key] = { - get() { - const codes2 = ansiStyles[key]; - return build.call(this, this._styles ? this._styles.concat(codes2) : [codes2], this._empty, key); + if (value === CHAR_RIGHT_SQUARE_BRACKET) { + push({ type: "text", value: "\\" + value }); + continue; } - }; - } - styles.visible = { - get() { - return build.call(this, this._styles || [], true, "visible"); - } - }; - ansiStyles.color.closeRe = new RegExp(escapeStringRegexp2(ansiStyles.color.close), "g"); - for (const model of Object.keys(ansiStyles.color.ansi)) { - if (skipModels.has(model)) { - continue; - } - styles[model] = { - get() { - const level = this.level; - return function() { - const open = ansiStyles.color[levelMapping[level]][model].apply(null, arguments); - const codes2 = { - open, - close: ansiStyles.color.close, - closeRe: ansiStyles.color.closeRe - }; - return build.call(this, this._styles ? this._styles.concat(codes2) : [codes2], this._empty, model); - }; + if (value === CHAR_LEFT_SQUARE_BRACKET) { + brackets++; + let closed = true; + let next; + while (index < length && (next = advance())) { + value += next; + if (next === CHAR_LEFT_SQUARE_BRACKET) { + brackets++; + continue; + } + if (next === CHAR_BACKSLASH) { + value += advance(); + continue; + } + if (next === CHAR_RIGHT_SQUARE_BRACKET) { + brackets--; + if (brackets === 0) { + break; + } + } + } + push({ type: "text", value }); + continue; } - }; - } - ansiStyles.bgColor.closeRe = new RegExp(escapeStringRegexp2(ansiStyles.bgColor.close), "g"); - for (const model of Object.keys(ansiStyles.bgColor.ansi)) { - if (skipModels.has(model)) { - continue; - } - const bgModel = "bg" + model[0].toUpperCase() + model.slice(1); - styles[bgModel] = { - get() { - const level = this.level; - return function() { - const open = ansiStyles.bgColor[levelMapping[level]][model].apply(null, arguments); - const codes2 = { - open, - close: ansiStyles.bgColor.close, - closeRe: ansiStyles.bgColor.closeRe - }; - return build.call(this, this._styles ? this._styles.concat(codes2) : [codes2], this._empty, model); + if (value === CHAR_LEFT_PARENTHESES) { + block = push({ type: "paren", nodes: [] }); + stack.push(block); + push({ type: "text", value }); + continue; + } + if (value === CHAR_RIGHT_PARENTHESES) { + if (block.type !== "paren") { + push({ type: "text", value }); + continue; + } + block = stack.pop(); + push({ type: "text", value }); + block = stack[stack.length - 1]; + continue; + } + if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) { + let open = value; + let next; + if (options8.keepQuotes !== true) { + value = ""; + } + while (index < length && (next = advance())) { + if (next === CHAR_BACKSLASH) { + value += next + advance(); + continue; + } + if (next === open) { + if (options8.keepQuotes === true) + value += next; + break; + } + value += next; + } + push({ type: "text", value }); + continue; + } + if (value === CHAR_LEFT_CURLY_BRACE) { + depth++; + let dollar = prev.value && prev.value.slice(-1) === "$" || block.dollar === true; + let brace = { + type: "brace", + open: true, + close: false, + dollar, + depth, + commas: 0, + ranges: 0, + nodes: [] }; + block = push(brace); + stack.push(block); + push({ type: "open", value }); + continue; } - }; - } - var proto = Object.defineProperties(() => { - }, styles); - function build(_styles, _empty, key) { - const builder = function() { - return applyStyle.apply(builder, arguments); - }; - builder._styles = _styles; - builder._empty = _empty; - const self = this; - Object.defineProperty(builder, "level", { - enumerable: true, - get() { - return self.level; - }, - set(level) { - self.level = level; + if (value === CHAR_RIGHT_CURLY_BRACE) { + if (block.type !== "brace") { + push({ type: "text", value }); + continue; + } + let type = "close"; + block = stack.pop(); + block.close = true; + push({ type, value }); + depth--; + block = stack[stack.length - 1]; + continue; } - }); - Object.defineProperty(builder, "enabled", { - enumerable: true, - get() { - return self.enabled; - }, - set(enabled) { - self.enabled = enabled; + if (value === CHAR_COMMA && depth > 0) { + if (block.ranges > 0) { + block.ranges = 0; + let open = block.nodes.shift(); + block.nodes = [open, { type: "text", value: stringify(block) }]; + } + push({ type: "comma", value }); + block.commas++; + continue; } - }); - builder.hasGrey = this.hasGrey || key === "gray" || key === "grey"; - builder.__proto__ = proto; - return builder; - } - function applyStyle() { - const args = arguments; - const argsLen = args.length; - let str = String(arguments[0]); - if (argsLen === 0) { - return ""; - } - if (argsLen > 1) { - for (let a = 1; a < argsLen; a++) { - str += " " + args[a]; + if (value === CHAR_DOT && depth > 0 && block.commas === 0) { + let siblings = block.nodes; + if (depth === 0 || siblings.length === 0) { + push({ type: "text", value }); + continue; + } + if (prev.type === "dot") { + block.range = []; + prev.value += value; + prev.type = "range"; + if (block.nodes.length !== 3 && block.nodes.length !== 5) { + block.invalid = true; + block.ranges = 0; + prev.type = "text"; + continue; + } + block.ranges++; + block.args = []; + continue; + } + if (prev.type === "range") { + siblings.pop(); + let before = siblings[siblings.length - 1]; + before.value += prev.value + value; + prev = before; + block.ranges--; + continue; + } + push({ type: "dot", value }); + continue; } + push({ type: "text", value }); } - if (!this.enabled || this.level <= 0 || !str) { - return this._empty ? "" : str; - } - const originalDim = ansiStyles.dim.open; - if (isSimpleWindowsTerm && this.hasGrey) { - ansiStyles.dim.open = ""; - } - for (const code of this._styles.slice().reverse()) { - str = code.open + str.replace(code.closeRe, code.open) + code.close; - str = str.replace(/\r?\n/g, `${code.close}$&${code.open}`); - } - ansiStyles.dim.open = originalDim; - return str; - } - function chalkTag(chalk, strings) { - if (!Array.isArray(strings)) { - return [].slice.call(arguments, 1).join(" "); - } - const args = [].slice.call(arguments, 2); - const parts = [strings.raw[0]]; - for (let i = 1; i < strings.length; i++) { - parts.push(String(args[i - 1]).replace(/[{}\\]/g, "\\$&")); - parts.push(String(strings.raw[i])); - } - return template(chalk, parts.join("")); - } - Object.defineProperties(Chalk.prototype, styles); - module.exports = Chalk(); - module.exports.supportsColor = stdoutColor; - module.exports.default = module.exports; - } -}); - -// node_modules/vnopts/lib/handlers/deprecated/common.js -var require_common = __commonJS({ - "node_modules/vnopts/lib/handlers/deprecated/common.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var chalk_1 = require_chalk(); - exports.commonDeprecatedHandler = (keyOrPair, redirectTo, { descriptor }) => { - const messages2 = [ - `${chalk_1.default.yellow(typeof keyOrPair === "string" ? descriptor.key(keyOrPair) : descriptor.pair(keyOrPair))} is deprecated` - ]; - if (redirectTo) { - messages2.push(`we now treat it as ${chalk_1.default.blue(typeof redirectTo === "string" ? descriptor.key(redirectTo) : descriptor.pair(redirectTo))}`); - } - return messages2.join("; ") + "."; - }; - } -}); - -// node_modules/vnopts/lib/handlers/deprecated/index.js -var require_deprecated = __commonJS({ - "node_modules/vnopts/lib/handlers/deprecated/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_common(), exports); - } -}); - -// node_modules/vnopts/lib/handlers/invalid/common.js -var require_common2 = __commonJS({ - "node_modules/vnopts/lib/handlers/invalid/common.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var chalk_1 = require_chalk(); - exports.commonInvalidHandler = (key, value, utils) => [ - `Invalid ${chalk_1.default.red(utils.descriptor.key(key))} value.`, - `Expected ${chalk_1.default.blue(utils.schemas[key].expected(utils))},`, - `but received ${chalk_1.default.red(utils.descriptor.value(value))}.` - ].join(" "); - } -}); - -// node_modules/vnopts/lib/handlers/invalid/index.js -var require_invalid = __commonJS({ - "node_modules/vnopts/lib/handlers/invalid/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_common2(), exports); - } -}); - -// node_modules/vnopts/node_modules/leven/index.js -var require_leven = __commonJS({ - "node_modules/vnopts/node_modules/leven/index.js"(exports, module) { - "use strict"; - var arr = []; - var charCodeCache = []; - module.exports = function(a, b) { - if (a === b) { - return 0; - } - var swap = a; - if (a.length > b.length) { - a = b; - b = swap; - } - var aLen = a.length; - var bLen = b.length; - if (aLen === 0) { - return bLen; - } - if (bLen === 0) { - return aLen; - } - while (aLen > 0 && a.charCodeAt(~-aLen) === b.charCodeAt(~-bLen)) { - aLen--; - bLen--; - } - if (aLen === 0) { - return bLen; - } - var start = 0; - while (start < aLen && a.charCodeAt(start) === b.charCodeAt(start)) { - start++; - } - aLen -= start; - bLen -= start; - if (aLen === 0) { - return bLen; - } - var bCharCode; - var ret; - var tmp; - var tmp2; - var i = 0; - var j = 0; - while (i < aLen) { - charCodeCache[start + i] = a.charCodeAt(start + i); - arr[i] = ++i; - } - while (j < bLen) { - bCharCode = b.charCodeAt(start + j); - tmp = j++; - ret = j; - for (i = 0; i < aLen; i++) { - tmp2 = bCharCode === charCodeCache[start + i] ? tmp : tmp + 1; - tmp = arr[i]; - ret = arr[i] = tmp > ret ? tmp2 > ret ? ret + 1 : tmp2 : tmp2 > tmp ? tmp + 1 : tmp2; - } - } - return ret; - }; - } -}); - -// node_modules/vnopts/lib/handlers/unknown/leven.js -var require_leven2 = __commonJS({ - "node_modules/vnopts/lib/handlers/unknown/leven.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var chalk_1 = require_chalk(); - var leven = require_leven(); - exports.levenUnknownHandler = (key, value, { descriptor, logger, schemas }) => { - const messages2 = [ - `Ignored unknown option ${chalk_1.default.yellow(descriptor.pair({ key, value }))}.` - ]; - const suggestion = Object.keys(schemas).sort().find((knownKey) => leven(key, knownKey) < 3); - if (suggestion) { - messages2.push(`Did you mean ${chalk_1.default.blue(descriptor.key(suggestion))}?`); - } - logger.warn(messages2.join(" ")); - }; - } -}); - -// node_modules/vnopts/lib/handlers/unknown/index.js -var require_unknown = __commonJS({ - "node_modules/vnopts/lib/handlers/unknown/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_leven2(), exports); - } -}); - -// node_modules/vnopts/lib/handlers/index.js -var require_handlers = __commonJS({ - "node_modules/vnopts/lib/handlers/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_deprecated(), exports); - tslib_1.__exportStar(require_invalid(), exports); - tslib_1.__exportStar(require_unknown(), exports); - } -}); - -// node_modules/vnopts/lib/schema.js -var require_schema = __commonJS({ - "node_modules/vnopts/lib/schema.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var HANDLER_KEYS = [ - "default", - "expected", - "validate", - "deprecated", - "forward", - "redirect", - "overlap", - "preprocess", - "postprocess" - ]; - function createSchema(SchemaConstructor, parameters) { - const schema = new SchemaConstructor(parameters); - const subSchema = Object.create(schema); - for (const handlerKey of HANDLER_KEYS) { - if (handlerKey in parameters) { - subSchema[handlerKey] = normalizeHandler(parameters[handlerKey], schema, Schema.prototype[handlerKey].length); + do { + block = stack.pop(); + if (block.type !== "root") { + block.nodes.forEach((node) => { + if (!node.nodes) { + if (node.type === "open") + node.isOpen = true; + if (node.type === "close") + node.isClose = true; + if (!node.nodes) + node.type = "text"; + node.invalid = true; + } + }); + let parent = stack[stack.length - 1]; + let index2 = parent.nodes.indexOf(block); + parent.nodes.splice(index2, 1, ...block.nodes); } - } - return subSchema; - } - exports.createSchema = createSchema; - var Schema = class { - constructor(parameters) { - this.name = parameters.name; - } - static create(parameters) { - return createSchema(this, parameters); - } - default(_utils) { - return void 0; - } - // istanbul ignore next: this is actually an abstract method but we need a placeholder to get `function.length` - expected(_utils) { - return "nothing"; - } - // istanbul ignore next: this is actually an abstract method but we need a placeholder to get `function.length` - validate(_value, _utils) { - return false; - } - deprecated(_value, _utils) { - return false; - } - forward(_value, _utils) { - return void 0; - } - redirect(_value, _utils) { - return void 0; - } - overlap(currentValue, _newValue, _utils) { - return currentValue; - } - preprocess(value, _utils) { - return value; - } - postprocess(value, _utils) { - return value; - } - }; - exports.Schema = Schema; - function normalizeHandler(handler, superSchema, handlerArgumentsLength) { - return typeof handler === "function" ? (...args) => handler(...args.slice(0, handlerArgumentsLength - 1), superSchema, ...args.slice(handlerArgumentsLength - 1)) : () => handler; - } - } -}); - -// node_modules/vnopts/lib/schemas/alias.js -var require_alias = __commonJS({ - "node_modules/vnopts/lib/schemas/alias.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var schema_1 = require_schema(); - var AliasSchema = class extends schema_1.Schema { - constructor(parameters) { - super(parameters); - this._sourceName = parameters.sourceName; - } - expected(utils) { - return utils.schemas[this._sourceName].expected(utils); - } - validate(value, utils) { - return utils.schemas[this._sourceName].validate(value, utils); - } - redirect(_value, _utils) { - return this._sourceName; - } - }; - exports.AliasSchema = AliasSchema; - } -}); - -// node_modules/vnopts/lib/schemas/any.js -var require_any = __commonJS({ - "node_modules/vnopts/lib/schemas/any.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var schema_1 = require_schema(); - var AnySchema = class extends schema_1.Schema { - expected() { - return "anything"; - } - validate() { - return true; - } + } while (stack.length > 0); + push({ type: "eos" }); + return ast; }; - exports.AnySchema = AnySchema; + module.exports = parse3; } }); -// node_modules/vnopts/lib/schemas/array.js -var require_array = __commonJS({ - "node_modules/vnopts/lib/schemas/array.js"(exports) { +// node_modules/braces/index.js +var require_braces = __commonJS({ + "node_modules/braces/index.js"(exports, module) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - var schema_1 = require_schema(); - var ArraySchema = class extends schema_1.Schema { - constructor(_a) { - var { valueSchema, name = valueSchema.name } = _a, handlers = tslib_1.__rest(_a, ["valueSchema", "name"]); - super(Object.assign({}, handlers, { name })); - this._valueSchema = valueSchema; - } - expected(utils) { - return `an array of ${this._valueSchema.expected(utils)}`; - } - validate(value, utils) { - if (!Array.isArray(value)) { - return false; - } - const invalidValues = []; - for (const subValue of value) { - const subValidateResult = utils.normalizeValidateResult(this._valueSchema.validate(subValue, utils), subValue); - if (subValidateResult !== true) { - invalidValues.push(subValidateResult.value); - } - } - return invalidValues.length === 0 ? true : { value: invalidValues }; - } - deprecated(value, utils) { - const deprecatedResult = []; - for (const subValue of value) { - const subDeprecatedResult = utils.normalizeDeprecatedResult(this._valueSchema.deprecated(subValue, utils), subValue); - if (subDeprecatedResult !== false) { - deprecatedResult.push(...subDeprecatedResult.map(({ value: deprecatedValue }) => ({ - value: [deprecatedValue] - }))); - } - } - return deprecatedResult; - } - forward(value, utils) { - const forwardResult = []; - for (const subValue of value) { - const subForwardResult = utils.normalizeForwardResult(this._valueSchema.forward(subValue, utils), subValue); - forwardResult.push(...subForwardResult.map(wrapTransferResult)); - } - return forwardResult; - } - redirect(value, utils) { - const remain = []; - const redirect = []; - for (const subValue of value) { - const subRedirectResult = utils.normalizeRedirectResult(this._valueSchema.redirect(subValue, utils), subValue); - if ("remain" in subRedirectResult) { - remain.push(subRedirectResult.remain); + var stringify = require_stringify(); + var compile = require_compile(); + var expand = require_expand(); + var parse3 = require_parse(); + var braces = (input, options8 = {}) => { + let output = []; + if (Array.isArray(input)) { + for (let pattern of input) { + let result = braces.create(pattern, options8); + if (Array.isArray(result)) { + output.push(...result); + } else { + output.push(result); } - redirect.push(...subRedirectResult.redirect.map(wrapTransferResult)); } - return remain.length === 0 ? { redirect } : { redirect, remain }; + } else { + output = [].concat(braces.create(input, options8)); } - overlap(currentValue, newValue) { - return currentValue.concat(newValue); + if (options8 && options8.expand === true && options8.nodupes === true) { + output = [...new Set(output)]; } + return output; }; - exports.ArraySchema = ArraySchema; - function wrapTransferResult({ from, to }) { - return { from: [from], to }; - } - } -}); - -// node_modules/vnopts/lib/schemas/boolean.js -var require_boolean = __commonJS({ - "node_modules/vnopts/lib/schemas/boolean.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var schema_1 = require_schema(); - var BooleanSchema = class extends schema_1.Schema { - expected() { - return "true or false"; - } - validate(value) { - return typeof value === "boolean"; + braces.parse = (input, options8 = {}) => parse3(input, options8); + braces.stringify = (input, options8 = {}) => { + if (typeof input === "string") { + return stringify(braces.parse(input, options8), options8); } + return stringify(input, options8); }; - exports.BooleanSchema = BooleanSchema; - } -}); - -// node_modules/vnopts/lib/utils.js -var require_utils = __commonJS({ - "node_modules/vnopts/lib/utils.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - function recordFromArray(array, mainKey) { - const record = /* @__PURE__ */ Object.create(null); - for (const value of array) { - const key = value[mainKey]; - if (record[key]) { - throw new Error(`Duplicate ${mainKey} ${JSON.stringify(key)}`); - } - record[key] = value; - } - return record; - } - exports.recordFromArray = recordFromArray; - function mapFromArray(array, mainKey) { - const map = /* @__PURE__ */ new Map(); - for (const value of array) { - const key = value[mainKey]; - if (map.has(key)) { - throw new Error(`Duplicate ${mainKey} ${JSON.stringify(key)}`); - } - map.set(key, value); - } - return map; - } - exports.mapFromArray = mapFromArray; - function createAutoChecklist() { - const map = /* @__PURE__ */ Object.create(null); - return (id) => { - const idString = JSON.stringify(id); - if (map[idString]) { - return true; - } - map[idString] = true; - return false; - }; - } - exports.createAutoChecklist = createAutoChecklist; - function partition2(array, predicate) { - const trueArray = []; - const falseArray = []; - for (const value of array) { - if (predicate(value)) { - trueArray.push(value); - } else { - falseArray.push(value); - } - } - return [trueArray, falseArray]; - } - exports.partition = partition2; - function isInt(value) { - return value === Math.floor(value); - } - exports.isInt = isInt; - function comparePrimitive(a, b) { - if (a === b) { - return 0; - } - const typeofA = typeof a; - const typeofB = typeof b; - const orders = [ - "undefined", - "object", - "boolean", - "number", - "string" - ]; - if (typeofA !== typeofB) { - return orders.indexOf(typeofA) - orders.indexOf(typeofB); - } - if (typeofA !== "string") { - return Number(a) - Number(b); - } - return a.localeCompare(b); - } - exports.comparePrimitive = comparePrimitive; - function normalizeDefaultResult(result) { - return result === void 0 ? {} : result; - } - exports.normalizeDefaultResult = normalizeDefaultResult; - function normalizeValidateResult(result, value) { - return result === true ? true : result === false ? { value } : result; - } - exports.normalizeValidateResult = normalizeValidateResult; - function normalizeDeprecatedResult(result, value, doNotNormalizeTrue = false) { - return result === false ? false : result === true ? doNotNormalizeTrue ? true : [{ value }] : "value" in result ? [result] : result.length === 0 ? false : result; - } - exports.normalizeDeprecatedResult = normalizeDeprecatedResult; - function normalizeTransferResult(result, value) { - return typeof result === "string" || "key" in result ? { from: value, to: result } : "from" in result ? { from: result.from, to: result.to } : { from: value, to: result.to }; - } - exports.normalizeTransferResult = normalizeTransferResult; - function normalizeForwardResult(result, value) { - return result === void 0 ? [] : Array.isArray(result) ? result.map((transferResult) => normalizeTransferResult(transferResult, value)) : [normalizeTransferResult(result, value)]; - } - exports.normalizeForwardResult = normalizeForwardResult; - function normalizeRedirectResult(result, value) { - const redirect = normalizeForwardResult(typeof result === "object" && "redirect" in result ? result.redirect : result, value); - return redirect.length === 0 ? { remain: value, redirect } : typeof result === "object" && "remain" in result ? { remain: result.remain, redirect } : { redirect }; - } - exports.normalizeRedirectResult = normalizeRedirectResult; - } -}); - -// node_modules/vnopts/lib/schemas/choice.js -var require_choice = __commonJS({ - "node_modules/vnopts/lib/schemas/choice.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var schema_1 = require_schema(); - var utils_1 = require_utils(); - var ChoiceSchema = class extends schema_1.Schema { - constructor(parameters) { - super(parameters); - this._choices = utils_1.mapFromArray(parameters.choices.map((choice) => choice && typeof choice === "object" ? choice : { value: choice }), "value"); - } - expected({ descriptor }) { - const choiceValues = Array.from(this._choices.keys()).map((value) => this._choices.get(value)).filter((choiceInfo) => !choiceInfo.deprecated).map((choiceInfo) => choiceInfo.value).sort(utils_1.comparePrimitive).map(descriptor.value); - const head = choiceValues.slice(0, -2); - const tail = choiceValues.slice(-2); - return head.concat(tail.join(" or ")).join(", "); - } - validate(value) { - return this._choices.has(value); - } - deprecated(value) { - const choiceInfo = this._choices.get(value); - return choiceInfo && choiceInfo.deprecated ? { value } : false; - } - forward(value) { - const choiceInfo = this._choices.get(value); - return choiceInfo ? choiceInfo.forward : void 0; - } - redirect(value) { - const choiceInfo = this._choices.get(value); - return choiceInfo ? choiceInfo.redirect : void 0; + braces.compile = (input, options8 = {}) => { + if (typeof input === "string") { + input = braces.parse(input, options8); } + return compile(input, options8); }; - exports.ChoiceSchema = ChoiceSchema; - } -}); - -// node_modules/vnopts/lib/schemas/number.js -var require_number = __commonJS({ - "node_modules/vnopts/lib/schemas/number.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var schema_1 = require_schema(); - var NumberSchema = class extends schema_1.Schema { - expected() { - return "a number"; - } - validate(value, _utils) { - return typeof value === "number"; + braces.expand = (input, options8 = {}) => { + if (typeof input === "string") { + input = braces.parse(input, options8); } - }; - exports.NumberSchema = NumberSchema; - } -}); - -// node_modules/vnopts/lib/schemas/integer.js -var require_integer = __commonJS({ - "node_modules/vnopts/lib/schemas/integer.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var utils_1 = require_utils(); - var number_1 = require_number(); - var IntegerSchema = class extends number_1.NumberSchema { - expected() { - return "an integer"; + let result = expand(input, options8); + if (options8.noempty === true) { + result = result.filter(Boolean); } - validate(value, utils) { - return utils.normalizeValidateResult(super.validate(value, utils), value) === true && utils_1.isInt(value); + if (options8.nodupes === true) { + result = [...new Set(result)]; } + return result; }; - exports.IntegerSchema = IntegerSchema; - } -}); - -// node_modules/vnopts/lib/schemas/string.js -var require_string = __commonJS({ - "node_modules/vnopts/lib/schemas/string.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var schema_1 = require_schema(); - var StringSchema = class extends schema_1.Schema { - expected() { - return "a string"; - } - validate(value) { - return typeof value === "string"; + braces.create = (input, options8 = {}) => { + if (input === "" || input.length < 3) { + return [input]; } + return options8.expand !== true ? braces.compile(input, options8) : braces.expand(input, options8); }; - exports.StringSchema = StringSchema; - } -}); - -// node_modules/vnopts/lib/schemas/index.js -var require_schemas = __commonJS({ - "node_modules/vnopts/lib/schemas/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_alias(), exports); - tslib_1.__exportStar(require_any(), exports); - tslib_1.__exportStar(require_array(), exports); - tslib_1.__exportStar(require_boolean(), exports); - tslib_1.__exportStar(require_choice(), exports); - tslib_1.__exportStar(require_integer(), exports); - tslib_1.__exportStar(require_number(), exports); - tslib_1.__exportStar(require_string(), exports); - } -}); - -// node_modules/vnopts/lib/defaults.js -var require_defaults = __commonJS({ - "node_modules/vnopts/lib/defaults.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var api_1 = require_api(); - var common_1 = require_common(); - var invalid_1 = require_invalid(); - var leven_1 = require_leven2(); - exports.defaultDescriptor = api_1.apiDescriptor; - exports.defaultUnknownHandler = leven_1.levenUnknownHandler; - exports.defaultInvalidHandler = invalid_1.commonInvalidHandler; - exports.defaultDeprecatedHandler = common_1.commonDeprecatedHandler; + module.exports = braces; } }); -// node_modules/vnopts/lib/normalize.js -var require_normalize = __commonJS({ - "node_modules/vnopts/lib/normalize.js"(exports) { +// node_modules/picomatch/lib/constants.js +var require_constants2 = __commonJS({ + "node_modules/picomatch/lib/constants.js"(exports, module) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var defaults_1 = require_defaults(); - var utils_1 = require_utils(); - exports.normalize = (options8, schemas, opts) => new Normalizer(schemas, opts).normalize(options8); - var Normalizer = class { - constructor(schemas, opts) { - const { logger = console, descriptor = defaults_1.defaultDescriptor, unknown = defaults_1.defaultUnknownHandler, invalid = defaults_1.defaultInvalidHandler, deprecated = defaults_1.defaultDeprecatedHandler } = opts || {}; - this._utils = { - descriptor, - logger: ( - /* istanbul ignore next */ - logger || { warn: () => { - } } - ), - schemas: utils_1.recordFromArray(schemas, "name"), - normalizeDefaultResult: utils_1.normalizeDefaultResult, - normalizeDeprecatedResult: utils_1.normalizeDeprecatedResult, - normalizeForwardResult: utils_1.normalizeForwardResult, - normalizeRedirectResult: utils_1.normalizeRedirectResult, - normalizeValidateResult: utils_1.normalizeValidateResult - }; - this._unknownHandler = unknown; - this._invalidHandler = invalid; - this._deprecatedHandler = deprecated; - this.cleanHistory(); - } - cleanHistory() { - this._hasDeprecationWarned = utils_1.createAutoChecklist(); - } - normalize(options8) { - const normalized = {}; - const restOptionsArray = [options8]; - const applyNormalization = () => { - while (restOptionsArray.length !== 0) { - const currentOptions = restOptionsArray.shift(); - const transferredOptionsArray = this._applyNormalization(currentOptions, normalized); - restOptionsArray.push(...transferredOptionsArray); - } + var path9 = __require("path"); + var WIN_SLASH = "\\\\/"; + var WIN_NO_SLASH = `[^${WIN_SLASH}]`; + var DOT_LITERAL = "\\."; + var PLUS_LITERAL = "\\+"; + var QMARK_LITERAL = "\\?"; + var SLASH_LITERAL = "\\/"; + var ONE_CHAR = "(?=.)"; + var QMARK = "[^/]"; + var END_ANCHOR = `(?:${SLASH_LITERAL}|$)`; + var START_ANCHOR = `(?:^|${SLASH_LITERAL})`; + var DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`; + var NO_DOT = `(?!${DOT_LITERAL})`; + var NO_DOTS = `(?!${START_ANCHOR}${DOTS_SLASH})`; + var NO_DOT_SLASH = `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`; + var NO_DOTS_SLASH = `(?!${DOTS_SLASH})`; + var QMARK_NO_DOT = `[^.${SLASH_LITERAL}]`; + var STAR = `${QMARK}*?`; + var POSIX_CHARS = { + DOT_LITERAL, + PLUS_LITERAL, + QMARK_LITERAL, + SLASH_LITERAL, + ONE_CHAR, + QMARK, + END_ANCHOR, + DOTS_SLASH, + NO_DOT, + NO_DOTS, + NO_DOT_SLASH, + NO_DOTS_SLASH, + QMARK_NO_DOT, + STAR, + START_ANCHOR + }; + var WINDOWS_CHARS = { + ...POSIX_CHARS, + SLASH_LITERAL: `[${WIN_SLASH}]`, + QMARK: WIN_NO_SLASH, + STAR: `${WIN_NO_SLASH}*?`, + DOTS_SLASH: `${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$)`, + NO_DOT: `(?!${DOT_LITERAL})`, + NO_DOTS: `(?!(?:^|[${WIN_SLASH}])${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`, + NO_DOT_SLASH: `(?!${DOT_LITERAL}{0,1}(?:[${WIN_SLASH}]|$))`, + NO_DOTS_SLASH: `(?!${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`, + QMARK_NO_DOT: `[^.${WIN_SLASH}]`, + START_ANCHOR: `(?:^|[${WIN_SLASH}])`, + END_ANCHOR: `(?:[${WIN_SLASH}]|$)` + }; + var POSIX_REGEX_SOURCE = { + alnum: "a-zA-Z0-9", + alpha: "a-zA-Z", + ascii: "\\x00-\\x7F", + blank: " \\t", + cntrl: "\\x00-\\x1F\\x7F", + digit: "0-9", + graph: "\\x21-\\x7E", + lower: "a-z", + print: "\\x20-\\x7E ", + punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~", + space: " \\t\\r\\n\\v\\f", + upper: "A-Z", + word: "A-Za-z0-9_", + xdigit: "A-Fa-f0-9" + }; + module.exports = { + MAX_LENGTH: 1024 * 64, + POSIX_REGEX_SOURCE, + // regular expressions + REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g, + REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/, + REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/, + REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g, + REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g, + REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g, + // Replace globs with equivalent patterns to reduce parsing time. + REPLACEMENTS: { + "***": "*", + "**/**": "**", + "**/**/**": "**" + }, + // Digits + CHAR_0: 48, + /* 0 */ + CHAR_9: 57, + /* 9 */ + // Alphabet chars. + CHAR_UPPERCASE_A: 65, + /* A */ + CHAR_LOWERCASE_A: 97, + /* a */ + CHAR_UPPERCASE_Z: 90, + /* Z */ + CHAR_LOWERCASE_Z: 122, + /* z */ + CHAR_LEFT_PARENTHESES: 40, + /* ( */ + CHAR_RIGHT_PARENTHESES: 41, + /* ) */ + CHAR_ASTERISK: 42, + /* * */ + // Non-alphabetic chars. + CHAR_AMPERSAND: 38, + /* & */ + CHAR_AT: 64, + /* @ */ + CHAR_BACKWARD_SLASH: 92, + /* \ */ + CHAR_CARRIAGE_RETURN: 13, + /* \r */ + CHAR_CIRCUMFLEX_ACCENT: 94, + /* ^ */ + CHAR_COLON: 58, + /* : */ + CHAR_COMMA: 44, + /* , */ + CHAR_DOT: 46, + /* . */ + CHAR_DOUBLE_QUOTE: 34, + /* " */ + CHAR_EQUAL: 61, + /* = */ + CHAR_EXCLAMATION_MARK: 33, + /* ! */ + CHAR_FORM_FEED: 12, + /* \f */ + CHAR_FORWARD_SLASH: 47, + /* / */ + CHAR_GRAVE_ACCENT: 96, + /* ` */ + CHAR_HASH: 35, + /* # */ + CHAR_HYPHEN_MINUS: 45, + /* - */ + CHAR_LEFT_ANGLE_BRACKET: 60, + /* < */ + CHAR_LEFT_CURLY_BRACE: 123, + /* { */ + CHAR_LEFT_SQUARE_BRACKET: 91, + /* [ */ + CHAR_LINE_FEED: 10, + /* \n */ + CHAR_NO_BREAK_SPACE: 160, + /* \u00A0 */ + CHAR_PERCENT: 37, + /* % */ + CHAR_PLUS: 43, + /* + */ + CHAR_QUESTION_MARK: 63, + /* ? */ + CHAR_RIGHT_ANGLE_BRACKET: 62, + /* > */ + CHAR_RIGHT_CURLY_BRACE: 125, + /* } */ + CHAR_RIGHT_SQUARE_BRACKET: 93, + /* ] */ + CHAR_SEMICOLON: 59, + /* ; */ + CHAR_SINGLE_QUOTE: 39, + /* ' */ + CHAR_SPACE: 32, + /* */ + CHAR_TAB: 9, + /* \t */ + CHAR_UNDERSCORE: 95, + /* _ */ + CHAR_VERTICAL_LINE: 124, + /* | */ + CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279, + /* \uFEFF */ + SEP: path9.sep, + /** + * Create EXTGLOB_CHARS + */ + extglobChars(chars) { + return { + "!": { type: "negate", open: "(?:(?!(?:", close: `))${chars.STAR})` }, + "?": { type: "qmark", open: "(?:", close: ")?" }, + "+": { type: "plus", open: "(?:", close: ")+" }, + "*": { type: "star", open: "(?:", close: ")*" }, + "@": { type: "at", open: "(?:", close: ")" } }; - applyNormalization(); - for (const key of Object.keys(this._utils.schemas)) { - const schema = this._utils.schemas[key]; - if (!(key in normalized)) { - const defaultResult = utils_1.normalizeDefaultResult(schema.default(this._utils)); - if ("value" in defaultResult) { - restOptionsArray.push({ [key]: defaultResult.value }); - } - } - } - applyNormalization(); - for (const key of Object.keys(this._utils.schemas)) { - const schema = this._utils.schemas[key]; - if (key in normalized) { - normalized[key] = schema.postprocess(normalized[key], this._utils); - } - } - return normalized; - } - _applyNormalization(options8, normalized) { - const transferredOptionsArray = []; - const [knownOptionNames, unknownOptionNames] = utils_1.partition(Object.keys(options8), (key) => key in this._utils.schemas); - for (const key of knownOptionNames) { - const schema = this._utils.schemas[key]; - const value = schema.preprocess(options8[key], this._utils); - const validateResult = utils_1.normalizeValidateResult(schema.validate(value, this._utils), value); - if (validateResult !== true) { - const { value: invalidValue } = validateResult; - const errorMessageOrError = this._invalidHandler(key, invalidValue, this._utils); - throw typeof errorMessageOrError === "string" ? new Error(errorMessageOrError) : ( - /* istanbul ignore next*/ - errorMessageOrError - ); - } - const appendTransferredOptions = ({ from, to }) => { - transferredOptionsArray.push(typeof to === "string" ? { [to]: from } : { [to.key]: to.value }); - }; - const warnDeprecated = ({ value: currentValue, redirectTo }) => { - const deprecatedResult = utils_1.normalizeDeprecatedResult( - schema.deprecated(currentValue, this._utils), - value, - /* doNotNormalizeTrue */ - true - ); - if (deprecatedResult === false) { - return; - } - if (deprecatedResult === true) { - if (!this._hasDeprecationWarned(key)) { - this._utils.logger.warn(this._deprecatedHandler(key, redirectTo, this._utils)); - } - } else { - for (const { value: deprecatedValue } of deprecatedResult) { - const pair = { key, value: deprecatedValue }; - if (!this._hasDeprecationWarned(pair)) { - const redirectToPair = typeof redirectTo === "string" ? { key: redirectTo, value: deprecatedValue } : redirectTo; - this._utils.logger.warn(this._deprecatedHandler(pair, redirectToPair, this._utils)); - } - } - } - }; - const forwardResult = utils_1.normalizeForwardResult(schema.forward(value, this._utils), value); - forwardResult.forEach(appendTransferredOptions); - const redirectResult = utils_1.normalizeRedirectResult(schema.redirect(value, this._utils), value); - redirectResult.redirect.forEach(appendTransferredOptions); - if ("remain" in redirectResult) { - const remainingValue = redirectResult.remain; - normalized[key] = key in normalized ? schema.overlap(normalized[key], remainingValue, this._utils) : remainingValue; - warnDeprecated({ value: remainingValue }); - } - for (const { from, to } of redirectResult.redirect) { - warnDeprecated({ value: from, redirectTo: to }); - } - } - for (const key of unknownOptionNames) { - const value = options8[key]; - const unknownResult = this._unknownHandler(key, value, this._utils); - if (unknownResult) { - for (const unknownKey of Object.keys(unknownResult)) { - const unknownOption = { [unknownKey]: unknownResult[unknownKey] }; - if (unknownKey in this._utils.schemas) { - transferredOptionsArray.push(unknownOption); - } else { - Object.assign(normalized, unknownOption); - } - } - } - } - return transferredOptionsArray; + }, + /** + * Create GLOB_CHARS + */ + globChars(win32) { + return win32 === true ? WINDOWS_CHARS : POSIX_CHARS; } }; - exports.Normalizer = Normalizer; - } -}); - -// node_modules/vnopts/lib/index.js -var require_lib = __commonJS({ - "node_modules/vnopts/lib/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_descriptors(), exports); - tslib_1.__exportStar(require_handlers(), exports); - tslib_1.__exportStar(require_schemas(), exports); - tslib_1.__exportStar(require_normalize(), exports); - tslib_1.__exportStar(require_schema(), exports); - } -}); - -// node_modules/fast-glob/out/utils/array.js -var require_array2 = __commonJS({ - "node_modules/fast-glob/out/utils/array.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.splitWhen = exports.flatten = void 0; - function flatten(items) { - return items.reduce((collection, item) => [].concat(collection, item), []); - } - exports.flatten = flatten; - function splitWhen(items, predicate) { - const result = [[]]; - let groupIndex = 0; - for (const item of items) { - if (predicate(item)) { - groupIndex++; - result[groupIndex] = []; - } else { - result[groupIndex].push(item); - } - } - return result; - } - exports.splitWhen = splitWhen; } }); -// node_modules/fast-glob/out/utils/errno.js -var require_errno = __commonJS({ - "node_modules/fast-glob/out/utils/errno.js"(exports) { +// node_modules/picomatch/lib/utils.js +var require_utils2 = __commonJS({ + "node_modules/picomatch/lib/utils.js"(exports) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.isEnoentCodeError = void 0; - function isEnoentCodeError(error) { - return error.code === "ENOENT"; - } - exports.isEnoentCodeError = isEnoentCodeError; - } -}); - -// node_modules/fast-glob/out/utils/fs.js -var require_fs = __commonJS({ - "node_modules/fast-glob/out/utils/fs.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.createDirentFromStats = void 0; - var DirentFromStats = class { - constructor(name, stats) { - this.name = name; - this.isBlockDevice = stats.isBlockDevice.bind(stats); - this.isCharacterDevice = stats.isCharacterDevice.bind(stats); - this.isDirectory = stats.isDirectory.bind(stats); - this.isFIFO = stats.isFIFO.bind(stats); - this.isFile = stats.isFile.bind(stats); - this.isSocket = stats.isSocket.bind(stats); - this.isSymbolicLink = stats.isSymbolicLink.bind(stats); - } - }; - function createDirentFromStats(name, stats) { - return new DirentFromStats(name, stats); - } - exports.createDirentFromStats = createDirentFromStats; - } -}); - -// node_modules/fast-glob/out/utils/path.js -var require_path = __commonJS({ - "node_modules/fast-glob/out/utils/path.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.removeLeadingDotSegment = exports.escape = exports.makeAbsolute = exports.unixify = void 0; var path9 = __require("path"); - var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2; - var UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g; - function unixify(filepath) { - return filepath.replace(/\\/g, "/"); - } - exports.unixify = unixify; - function makeAbsolute(cwd, filepath) { - return path9.resolve(cwd, filepath); - } - exports.makeAbsolute = makeAbsolute; - function escape(pattern) { - return pattern.replace(UNESCAPED_GLOB_SYMBOLS_RE, "\\$2"); - } - exports.escape = escape; - function removeLeadingDotSegment(entry) { - if (entry.charAt(0) === ".") { - const secondCharactery = entry.charAt(1); - if (secondCharactery === "/" || secondCharactery === "\\") { - return entry.slice(LEADING_DOT_SEGMENT_CHARACTERS_COUNT); - } - } - return entry; - } - exports.removeLeadingDotSegment = removeLeadingDotSegment; - } -}); - -// node_modules/is-extglob/index.js -var require_is_extglob = __commonJS({ - "node_modules/is-extglob/index.js"(exports, module) { - module.exports = function isExtglob(str) { - if (typeof str !== "string" || str === "") { - return false; - } - var match; - while (match = /(\\).|([@?!+*]\(.*\))/g.exec(str)) { - if (match[2]) - return true; - str = str.slice(match.index + match[0].length); - } - return false; + var win32 = process.platform === "win32"; + var { + REGEX_BACKSLASH, + REGEX_REMOVE_BACKSLASH, + REGEX_SPECIAL_CHARS, + REGEX_SPECIAL_CHARS_GLOBAL + } = require_constants2(); + exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val); + exports.hasRegexChars = (str) => REGEX_SPECIAL_CHARS.test(str); + exports.isRegexChar = (str) => str.length === 1 && exports.hasRegexChars(str); + exports.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1"); + exports.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/"); + exports.removeBackslashes = (str) => { + return str.replace(REGEX_REMOVE_BACKSLASH, (match) => { + return match === "\\" ? "" : match; + }); }; - } -}); - -// node_modules/is-glob/index.js -var require_is_glob = __commonJS({ - "node_modules/is-glob/index.js"(exports, module) { - var isExtglob = require_is_extglob(); - var chars = { "{": "}", "(": ")", "[": "]" }; - var strictCheck = function(str) { - if (str[0] === "!") { + exports.supportsLookbehinds = () => { + const segs = process.version.slice(1).split(".").map(Number); + if (segs.length === 3 && segs[0] >= 9 || segs[0] === 8 && segs[1] >= 10) { return true; } - var index = 0; - var pipeIndex = -2; - var closeSquareIndex = -2; - var closeCurlyIndex = -2; - var closeParenIndex = -2; - var backSlashIndex = -2; - while (index < str.length) { - if (str[index] === "*") { - return true; - } - if (str[index + 1] === "?" && /[\].+)]/.test(str[index])) { - return true; - } - if (closeSquareIndex !== -1 && str[index] === "[" && str[index + 1] !== "]") { - if (closeSquareIndex < index) { - closeSquareIndex = str.indexOf("]", index); - } - if (closeSquareIndex > index) { - if (backSlashIndex === -1 || backSlashIndex > closeSquareIndex) { - return true; - } - backSlashIndex = str.indexOf("\\", index); - if (backSlashIndex === -1 || backSlashIndex > closeSquareIndex) { - return true; - } - } - } - if (closeCurlyIndex !== -1 && str[index] === "{" && str[index + 1] !== "}") { - closeCurlyIndex = str.indexOf("}", index); - if (closeCurlyIndex > index) { - backSlashIndex = str.indexOf("\\", index); - if (backSlashIndex === -1 || backSlashIndex > closeCurlyIndex) { - return true; - } - } - } - if (closeParenIndex !== -1 && str[index] === "(" && str[index + 1] === "?" && /[:!=]/.test(str[index + 2]) && str[index + 3] !== ")") { - closeParenIndex = str.indexOf(")", index); - if (closeParenIndex > index) { - backSlashIndex = str.indexOf("\\", index); - if (backSlashIndex === -1 || backSlashIndex > closeParenIndex) { - return true; - } - } - } - if (pipeIndex !== -1 && str[index] === "(" && str[index + 1] !== "|") { - if (pipeIndex < index) { - pipeIndex = str.indexOf("|", index); - } - if (pipeIndex !== -1 && str[pipeIndex + 1] !== ")") { - closeParenIndex = str.indexOf(")", pipeIndex); - if (closeParenIndex > pipeIndex) { - backSlashIndex = str.indexOf("\\", pipeIndex); - if (backSlashIndex === -1 || backSlashIndex > closeParenIndex) { - return true; - } - } - } - } - if (str[index] === "\\") { - var open = str[index + 1]; - index += 2; - var close = chars[open]; - if (close) { - var n = str.indexOf(close, index); - if (n !== -1) { - index = n + 1; - } - } - if (str[index] === "!") { - return true; - } - } else { - index++; - } - } return false; }; - var relaxedCheck = function(str) { - if (str[0] === "!") { - return true; - } - var index = 0; - while (index < str.length) { - if (/[*?{}()[\]]/.test(str[index])) { - return true; - } - if (str[index] === "\\") { - var open = str[index + 1]; - index += 2; - var close = chars[open]; - if (close) { - var n = str.indexOf(close, index); - if (n !== -1) { - index = n + 1; - } - } - if (str[index] === "!") { - return true; - } - } else { - index++; - } + exports.isWindows = (options8) => { + if (options8 && typeof options8.windows === "boolean") { + return options8.windows; } - return false; + return win32 === true || path9.sep === "\\"; }; - module.exports = function isGlob(str, options8) { - if (typeof str !== "string" || str === "") { - return false; - } - if (isExtglob(str)) { - return true; + exports.escapeLast = (input, char, lastIdx) => { + const idx = input.lastIndexOf(char, lastIdx); + if (idx === -1) + return input; + if (input[idx - 1] === "\\") + return exports.escapeLast(input, char, idx - 1); + return `${input.slice(0, idx)}\\${input.slice(idx)}`; + }; + exports.removePrefix = (input, state = {}) => { + let output = input; + if (output.startsWith("./")) { + output = output.slice(2); + state.prefix = "./"; } - var check2 = strictCheck; - if (options8 && options8.strict === false) { - check2 = relaxedCheck; + return output; + }; + exports.wrapOutput = (input, state = {}, options8 = {}) => { + const prepend = options8.contains ? "" : "^"; + const append = options8.contains ? "" : "$"; + let output = `${prepend}(?:${input})${append}`; + if (state.negated === true) { + output = `(?:^(?!${output}).*$)`; } - return check2(str); + return output; }; } }); -// node_modules/glob-parent/index.js -var require_glob_parent = __commonJS({ - "node_modules/glob-parent/index.js"(exports, module) { +// node_modules/picomatch/lib/scan.js +var require_scan = __commonJS({ + "node_modules/picomatch/lib/scan.js"(exports, module) { "use strict"; - var isGlob = require_is_glob(); - var pathPosixDirname = __require("path").posix.dirname; - var isWin32 = __require("os").platform() === "win32"; - var slash2 = "/"; - var backslash = /\\/g; - var enclosure = /[\{\[].*[\}\]]$/; - var globby = /(^|[^\\])([\{\[]|\([^\)]+$)/; - var escaped = /\\([\!\*\?\|\[\]\(\)\{\}])/g; - module.exports = function globParent(str, opts) { - var options8 = Object.assign({ flipBackslashes: true }, opts); - if (options8.flipBackslashes && isWin32 && str.indexOf(slash2) < 0) { - str = str.replace(backslash, slash2); - } - if (enclosure.test(str)) { - str += slash2; - } - str += "a"; - do { - str = pathPosixDirname(str); - } while (isGlob(str) || globby.test(str)); - return str.replace(escaped, "$1"); - }; - } -}); - -// node_modules/braces/lib/utils.js -var require_utils2 = __commonJS({ - "node_modules/braces/lib/utils.js"(exports) { - "use strict"; - exports.isInteger = (num) => { - if (typeof num === "number") { - return Number.isInteger(num); - } - if (typeof num === "string" && num.trim() !== "") { - return Number.isInteger(Number(num)); - } - return false; - }; - exports.find = (node, type) => node.nodes.find((node2) => node2.type === type); - exports.exceedsLimit = (min, max, step = 1, limit) => { - if (limit === false) - return false; - if (!exports.isInteger(min) || !exports.isInteger(max)) - return false; - return (Number(max) - Number(min)) / Number(step) >= limit; - }; - exports.escapeNode = (block, n = 0, type) => { - let node = block.nodes[n]; - if (!node) - return; - if (type && node.type === type || node.type === "open" || node.type === "close") { - if (node.escaped !== true) { - node.value = "\\" + node.value; - node.escaped = true; - } - } - }; - exports.encloseBrace = (node) => { - if (node.type !== "brace") - return false; - if (node.commas >> 0 + node.ranges >> 0 === 0) { - node.invalid = true; - return true; - } - return false; - }; - exports.isInvalidBrace = (block) => { - if (block.type !== "brace") - return false; - if (block.invalid === true || block.dollar) - return true; - if (block.commas >> 0 + block.ranges >> 0 === 0) { - block.invalid = true; - return true; - } - if (block.open !== true || block.close !== true) { - block.invalid = true; - return true; - } - return false; + var utils = require_utils2(); + var { + CHAR_ASTERISK, + /* * */ + CHAR_AT, + /* @ */ + CHAR_BACKWARD_SLASH, + /* \ */ + CHAR_COMMA, + /* , */ + CHAR_DOT, + /* . */ + CHAR_EXCLAMATION_MARK, + /* ! */ + CHAR_FORWARD_SLASH, + /* / */ + CHAR_LEFT_CURLY_BRACE, + /* { */ + CHAR_LEFT_PARENTHESES, + /* ( */ + CHAR_LEFT_SQUARE_BRACKET, + /* [ */ + CHAR_PLUS, + /* + */ + CHAR_QUESTION_MARK, + /* ? */ + CHAR_RIGHT_CURLY_BRACE, + /* } */ + CHAR_RIGHT_PARENTHESES, + /* ) */ + CHAR_RIGHT_SQUARE_BRACKET + /* ] */ + } = require_constants2(); + var isPathSeparator = (code) => { + return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH; }; - exports.isOpenOrClose = (node) => { - if (node.type === "open" || node.type === "close") { - return true; + var depth = (token) => { + if (token.isPrefix !== true) { + token.depth = token.isGlobstar ? Infinity : 1; } - return node.open === true || node.close === true; }; - exports.reduce = (nodes) => nodes.reduce((acc, node) => { - if (node.type === "text") - acc.push(node.value); - if (node.type === "range") - node.type = "text"; - return acc; - }, []); - exports.flatten = (...args) => { - const result = []; - const flat = (arr) => { - for (let i = 0; i < arr.length; i++) { - let ele = arr[i]; - Array.isArray(ele) ? flat(ele, result) : ele !== void 0 && result.push(ele); - } - return result; + var scan = (input, options8) => { + const opts = options8 || {}; + const length = input.length - 1; + const scanToEnd = opts.parts === true || opts.scanToEnd === true; + const slashes = []; + const tokens = []; + const parts = []; + let str = input; + let index = -1; + let start = 0; + let lastIndex = 0; + let isBrace = false; + let isBracket = false; + let isGlob = false; + let isExtglob = false; + let isGlobstar = false; + let braceEscaped = false; + let backslashes = false; + let negated = false; + let negatedExtglob = false; + let finished = false; + let braces = 0; + let prev; + let code; + let token = { value: "", depth: 0, isGlob: false }; + const eos = () => index >= length; + const peek = () => str.charCodeAt(index + 1); + const advance = () => { + prev = code; + return str.charCodeAt(++index); }; - flat(args); - return result; - }; - } -}); - -// node_modules/braces/lib/stringify.js -var require_stringify = __commonJS({ - "node_modules/braces/lib/stringify.js"(exports, module) { - "use strict"; - var utils = require_utils2(); - module.exports = (ast, options8 = {}) => { - let stringify = (node, parent = {}) => { - let invalidBlock = options8.escapeInvalid && utils.isInvalidBrace(parent); - let invalidNode = node.invalid === true && options8.escapeInvalid === true; - let output = ""; - if (node.value) { - if ((invalidBlock || invalidNode) && utils.isOpenOrClose(node)) { - return "\\" + node.value; + while (index < length) { + code = advance(); + let next; + if (code === CHAR_BACKWARD_SLASH) { + backslashes = token.backslashes = true; + code = advance(); + if (code === CHAR_LEFT_CURLY_BRACE) { + braceEscaped = true; } - return node.value; + continue; } - if (node.value) { - return node.value; + if (braceEscaped === true || code === CHAR_LEFT_CURLY_BRACE) { + braces++; + while (eos() !== true && (code = advance())) { + if (code === CHAR_BACKWARD_SLASH) { + backslashes = token.backslashes = true; + advance(); + continue; + } + if (code === CHAR_LEFT_CURLY_BRACE) { + braces++; + continue; + } + if (braceEscaped !== true && code === CHAR_DOT && (code = advance()) === CHAR_DOT) { + isBrace = token.isBrace = true; + isGlob = token.isGlob = true; + finished = true; + if (scanToEnd === true) { + continue; + } + break; + } + if (braceEscaped !== true && code === CHAR_COMMA) { + isBrace = token.isBrace = true; + isGlob = token.isGlob = true; + finished = true; + if (scanToEnd === true) { + continue; + } + break; + } + if (code === CHAR_RIGHT_CURLY_BRACE) { + braces--; + if (braces === 0) { + braceEscaped = false; + isBrace = token.isBrace = true; + finished = true; + break; + } + } + } + if (scanToEnd === true) { + continue; + } + break; } - if (node.nodes) { - for (let child of node.nodes) { - output += stringify(child); + if (code === CHAR_FORWARD_SLASH) { + slashes.push(index); + tokens.push(token); + token = { value: "", depth: 0, isGlob: false }; + if (finished === true) + continue; + if (prev === CHAR_DOT && index === start + 1) { + start += 2; + continue; } + lastIndex = index + 1; + continue; + } + if (opts.noext !== true) { + const isExtglobChar = code === CHAR_PLUS || code === CHAR_AT || code === CHAR_ASTERISK || code === CHAR_QUESTION_MARK || code === CHAR_EXCLAMATION_MARK; + if (isExtglobChar === true && peek() === CHAR_LEFT_PARENTHESES) { + isGlob = token.isGlob = true; + isExtglob = token.isExtglob = true; + finished = true; + if (code === CHAR_EXCLAMATION_MARK && index === start) { + negatedExtglob = true; + } + if (scanToEnd === true) { + while (eos() !== true && (code = advance())) { + if (code === CHAR_BACKWARD_SLASH) { + backslashes = token.backslashes = true; + code = advance(); + continue; + } + if (code === CHAR_RIGHT_PARENTHESES) { + isGlob = token.isGlob = true; + finished = true; + break; + } + } + continue; + } + break; + } + } + if (code === CHAR_ASTERISK) { + if (prev === CHAR_ASTERISK) + isGlobstar = token.isGlobstar = true; + isGlob = token.isGlob = true; + finished = true; + if (scanToEnd === true) { + continue; + } + break; + } + if (code === CHAR_QUESTION_MARK) { + isGlob = token.isGlob = true; + finished = true; + if (scanToEnd === true) { + continue; + } + break; + } + if (code === CHAR_LEFT_SQUARE_BRACKET) { + while (eos() !== true && (next = advance())) { + if (next === CHAR_BACKWARD_SLASH) { + backslashes = token.backslashes = true; + advance(); + continue; + } + if (next === CHAR_RIGHT_SQUARE_BRACKET) { + isBracket = token.isBracket = true; + isGlob = token.isGlob = true; + finished = true; + break; + } + } + if (scanToEnd === true) { + continue; + } + break; + } + if (opts.nonegate !== true && code === CHAR_EXCLAMATION_MARK && index === start) { + negated = token.negated = true; + start++; + continue; + } + if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES) { + isGlob = token.isGlob = true; + if (scanToEnd === true) { + while (eos() !== true && (code = advance())) { + if (code === CHAR_LEFT_PARENTHESES) { + backslashes = token.backslashes = true; + code = advance(); + continue; + } + if (code === CHAR_RIGHT_PARENTHESES) { + finished = true; + break; + } + } + continue; + } + break; + } + if (isGlob === true) { + finished = true; + if (scanToEnd === true) { + continue; + } + break; } - return output; - }; - return stringify(ast); - }; - } -}); - -// node_modules/is-number/index.js -var require_is_number = __commonJS({ - "node_modules/is-number/index.js"(exports, module) { - "use strict"; - module.exports = function(num) { - if (typeof num === "number") { - return num - num === 0; } - if (typeof num === "string" && num.trim() !== "") { - return Number.isFinite ? Number.isFinite(+num) : isFinite(+num); + if (opts.noext === true) { + isExtglob = false; + isGlob = false; } - return false; - }; - } -}); - -// node_modules/to-regex-range/index.js -var require_to_regex_range = __commonJS({ - "node_modules/to-regex-range/index.js"(exports, module) { - "use strict"; - var isNumber = require_is_number(); - var toRegexRange = (min, max, options8) => { - if (isNumber(min) === false) { - throw new TypeError("toRegexRange: expected the first argument to be a number"); + let base = str; + let prefix = ""; + let glob = ""; + if (start > 0) { + prefix = str.slice(0, start); + str = str.slice(start); + lastIndex -= start; } - if (max === void 0 || min === max) { - return String(min); + if (base && isGlob === true && lastIndex > 0) { + base = str.slice(0, lastIndex); + glob = str.slice(lastIndex); + } else if (isGlob === true) { + base = ""; + glob = str; + } else { + base = str; } - if (isNumber(max) === false) { - throw new TypeError("toRegexRange: expected the second argument to be a number."); + if (base && base !== "" && base !== "/" && base !== str) { + if (isPathSeparator(base.charCodeAt(base.length - 1))) { + base = base.slice(0, -1); + } } - let opts = { relaxZeros: true, ...options8 }; - if (typeof opts.strictZeros === "boolean") { - opts.relaxZeros = opts.strictZeros === false; + if (opts.unescape === true) { + if (glob) + glob = utils.removeBackslashes(glob); + if (base && backslashes === true) { + base = utils.removeBackslashes(base); + } } - let relax = String(opts.relaxZeros); - let shorthand = String(opts.shorthand); - let capture = String(opts.capture); - let wrap = String(opts.wrap); - let cacheKey = min + ":" + max + "=" + relax + shorthand + capture + wrap; - if (toRegexRange.cache.hasOwnProperty(cacheKey)) { - return toRegexRange.cache[cacheKey].result; + const state = { + prefix, + input, + start, + base, + glob, + isBrace, + isBracket, + isGlob, + isExtglob, + isGlobstar, + negated, + negatedExtglob + }; + if (opts.tokens === true) { + state.maxDepth = 0; + if (!isPathSeparator(code)) { + tokens.push(token); + } + state.tokens = tokens; } - let a = Math.min(min, max); - let b = Math.max(min, max); - if (Math.abs(a - b) === 1) { - let result = min + "|" + max; - if (opts.capture) { - return `(${result})`; + if (opts.parts === true || opts.tokens === true) { + let prevIndex; + for (let idx = 0; idx < slashes.length; idx++) { + const n = prevIndex ? prevIndex + 1 : start; + const i = slashes[idx]; + const value = input.slice(n, i); + if (opts.tokens) { + if (idx === 0 && start !== 0) { + tokens[idx].isPrefix = true; + tokens[idx].value = prefix; + } else { + tokens[idx].value = value; + } + depth(tokens[idx]); + state.maxDepth += tokens[idx].depth; + } + if (idx !== 0 || value !== "") { + parts.push(value); + } + prevIndex = i; } - if (opts.wrap === false) { - return result; + if (prevIndex && prevIndex + 1 < input.length) { + const value = input.slice(prevIndex + 1); + parts.push(value); + if (opts.tokens) { + tokens[tokens.length - 1].value = value; + depth(tokens[tokens.length - 1]); + state.maxDepth += tokens[tokens.length - 1].depth; + } } - return `(?:${result})`; - } - let isPadded = hasPadding(min) || hasPadding(max); - let state = { min, max, a, b }; - let positives = []; - let negatives = []; - if (isPadded) { - state.isPadded = isPadded; - state.maxLen = String(state.max).length; + state.slashes = slashes; + state.parts = parts; } - if (a < 0) { - let newMin = b < 0 ? Math.abs(b) : 1; - negatives = splitToPatterns(newMin, Math.abs(a), state, opts); - a = state.a = 0; + return state; + }; + module.exports = scan; + } +}); + +// node_modules/picomatch/lib/parse.js +var require_parse2 = __commonJS({ + "node_modules/picomatch/lib/parse.js"(exports, module) { + "use strict"; + var constants = require_constants2(); + var utils = require_utils2(); + var { + MAX_LENGTH, + POSIX_REGEX_SOURCE, + REGEX_NON_SPECIAL_CHARS, + REGEX_SPECIAL_CHARS_BACKREF, + REPLACEMENTS + } = constants; + var expandRange = (args, options8) => { + if (typeof options8.expandRange === "function") { + return options8.expandRange(...args, options8); } - if (b >= 0) { - positives = splitToPatterns(a, b, state, opts); + args.sort(); + const value = `[${args.join("-")}]`; + try { + new RegExp(value); + } catch (ex) { + return args.map((v) => utils.escapeRegex(v)).join(".."); } - state.negatives = negatives; - state.positives = positives; - state.result = collatePatterns(negatives, positives, opts); - if (opts.capture === true) { - state.result = `(${state.result})`; - } else if (opts.wrap !== false && positives.length + negatives.length > 1) { - state.result = `(?:${state.result})`; - } - toRegexRange.cache[cacheKey] = state; - return state.result; + return value; }; - function collatePatterns(neg, pos, options8) { - let onlyNegative = filterPatterns(neg, pos, "-", false, options8) || []; - let onlyPositive = filterPatterns(pos, neg, "", false, options8) || []; - let intersected = filterPatterns(neg, pos, "-?", true, options8) || []; - let subpatterns = onlyNegative.concat(intersected).concat(onlyPositive); - return subpatterns.join("|"); - } - function splitToRanges(min, max) { - let nines = 1; - let zeros = 1; - let stop = countNines(min, nines); - let stops = /* @__PURE__ */ new Set([max]); - while (min <= stop && stop <= max) { - stops.add(stop); - nines += 1; - stop = countNines(min, nines); + var syntaxError = (type, char) => { + return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`; + }; + var parse3 = (input, options8) => { + if (typeof input !== "string") { + throw new TypeError("Expected a string"); } - stop = countZeros(max + 1, zeros) - 1; - while (min < stop && stop <= max) { - stops.add(stop); - zeros += 1; - stop = countZeros(max + 1, zeros) - 1; + input = REPLACEMENTS[input] || input; + const opts = { ...options8 }; + const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH; + let len = input.length; + if (len > max) { + throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`); } - stops = [...stops]; - stops.sort(compare); - return stops; - } - function rangeToPattern(start, stop, options8) { - if (start === stop) { - return { pattern: start, count: [], digits: 0 }; + const bos = { type: "bos", value: "", output: opts.prepend || "" }; + const tokens = [bos]; + const capture = opts.capture ? "" : "?:"; + const win32 = utils.isWindows(options8); + const PLATFORM_CHARS = constants.globChars(win32); + const EXTGLOB_CHARS = constants.extglobChars(PLATFORM_CHARS); + const { + DOT_LITERAL, + PLUS_LITERAL, + SLASH_LITERAL, + ONE_CHAR, + DOTS_SLASH, + NO_DOT, + NO_DOT_SLASH, + NO_DOTS_SLASH, + QMARK, + QMARK_NO_DOT, + STAR, + START_ANCHOR + } = PLATFORM_CHARS; + const globstar = (opts2) => { + return `(${capture}(?:(?!${START_ANCHOR}${opts2.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`; + }; + const nodot = opts.dot ? "" : NO_DOT; + const qmarkNoDot = opts.dot ? QMARK : QMARK_NO_DOT; + let star = opts.bash === true ? globstar(opts) : STAR; + if (opts.capture) { + star = `(${star})`; } - let zipped = zip(start, stop); - let digits = zipped.length; - let pattern = ""; - let count = 0; - for (let i = 0; i < digits; i++) { - let [startDigit, stopDigit] = zipped[i]; - if (startDigit === stopDigit) { - pattern += startDigit; - } else if (startDigit !== "0" || stopDigit !== "9") { - pattern += toCharacterClass(startDigit, stopDigit, options8); - } else { + if (typeof opts.noext === "boolean") { + opts.noextglob = opts.noext; + } + const state = { + input, + index: -1, + start: 0, + dot: opts.dot === true, + consumed: "", + output: "", + prefix: "", + backtrack: false, + negated: false, + brackets: 0, + braces: 0, + parens: 0, + quotes: 0, + globstar: false, + tokens + }; + input = utils.removePrefix(input, state); + len = input.length; + const extglobs = []; + const braces = []; + const stack = []; + let prev = bos; + let value; + const eos = () => state.index === len - 1; + const peek = state.peek = (n = 1) => input[state.index + n]; + const advance = state.advance = () => input[++state.index] || ""; + const remaining = () => input.slice(state.index + 1); + const consume = (value2 = "", num = 0) => { + state.consumed += value2; + state.index += num; + }; + const append = (token) => { + state.output += token.output != null ? token.output : token.value; + consume(token.value); + }; + const negate = () => { + let count = 1; + while (peek() === "!" && (peek(2) !== "(" || peek(3) === "?")) { + advance(); + state.start++; count++; } - } - if (count) { - pattern += options8.shorthand === true ? "\\d" : "[0-9]"; - } - return { pattern, count: [count], digits }; - } - function splitToPatterns(min, max, tok, options8) { - let ranges = splitToRanges(min, max); - let tokens = []; - let start = min; - let prev; - for (let i = 0; i < ranges.length; i++) { - let max2 = ranges[i]; - let obj = rangeToPattern(String(start), String(max2), options8); - let zeros = ""; - if (!tok.isPadded && prev && prev.pattern === obj.pattern) { - if (prev.count.length > 1) { - prev.count.pop(); + if (count % 2 === 0) { + return false; + } + state.negated = true; + state.start++; + return true; + }; + const increment = (type) => { + state[type]++; + stack.push(type); + }; + const decrement = (type) => { + state[type]--; + stack.pop(); + }; + const push = (tok) => { + if (prev.type === "globstar") { + const isBrace = state.braces > 0 && (tok.type === "comma" || tok.type === "brace"); + const isExtglob = tok.extglob === true || extglobs.length && (tok.type === "pipe" || tok.type === "paren"); + if (tok.type !== "slash" && tok.type !== "paren" && !isBrace && !isExtglob) { + state.output = state.output.slice(0, -prev.output.length); + prev.type = "star"; + prev.value = "*"; + prev.output = star; + state.output += prev.output; } - prev.count.push(obj.count[0]); - prev.string = prev.pattern + toQuantifier(prev.count); - start = max2 + 1; - continue; } - if (tok.isPadded) { - zeros = padZeros(max2, tok, options8); + if (extglobs.length && tok.type !== "paren") { + extglobs[extglobs.length - 1].inner += tok.value; } - obj.string = zeros + obj.pattern + toQuantifier(obj.count); - tokens.push(obj); - start = max2 + 1; - prev = obj; - } - return tokens; - } - function filterPatterns(arr, comparison, prefix, intersection, options8) { - let result = []; - for (let ele of arr) { - let { string } = ele; - if (!intersection && !contains(comparison, "string", string)) { - result.push(prefix + string); + if (tok.value || tok.output) + append(tok); + if (prev && prev.type === "text" && tok.type === "text") { + prev.value += tok.value; + prev.output = (prev.output || "") + tok.value; + return; } - if (intersection && contains(comparison, "string", string)) { - result.push(prefix + string); - } - } - return result; - } - function zip(a, b) { - let arr = []; - for (let i = 0; i < a.length; i++) - arr.push([a[i], b[i]]); - return arr; - } - function compare(a, b) { - return a > b ? 1 : b > a ? -1 : 0; - } - function contains(arr, key, val) { - return arr.some((ele) => ele[key] === val); - } - function countNines(min, len) { - return Number(String(min).slice(0, -len) + "9".repeat(len)); - } - function countZeros(integer, zeros) { - return integer - integer % Math.pow(10, zeros); - } - function toQuantifier(digits) { - let [start = 0, stop = ""] = digits; - if (stop || start > 1) { - return `{${start + (stop ? "," + stop : "")}}`; - } - return ""; - } - function toCharacterClass(a, b, options8) { - return `[${a}${b - a === 1 ? "" : "-"}${b}]`; - } - function hasPadding(str) { - return /^-?(0+)\d/.test(str); - } - function padZeros(value, tok, options8) { - if (!tok.isPadded) { - return value; - } - let diff = Math.abs(tok.maxLen - String(value).length); - let relax = options8.relaxZeros !== false; - switch (diff) { - case 0: - return ""; - case 1: - return relax ? "0?" : "0"; - case 2: - return relax ? "0{0,2}" : "00"; - default: { - return relax ? `0{0,${diff}}` : `0{${diff}}`; - } - } - } - toRegexRange.cache = {}; - toRegexRange.clearCache = () => toRegexRange.cache = {}; - module.exports = toRegexRange; - } -}); - -// node_modules/fill-range/index.js -var require_fill_range = __commonJS({ - "node_modules/fill-range/index.js"(exports, module) { - "use strict"; - var util = __require("util"); - var toRegexRange = require_to_regex_range(); - var isObject2 = (val) => val !== null && typeof val === "object" && !Array.isArray(val); - var transform2 = (toNumber) => { - return (value) => toNumber === true ? Number(value) : String(value); - }; - var isValidValue = (value) => { - return typeof value === "number" || typeof value === "string" && value !== ""; - }; - var isNumber = (num) => Number.isInteger(+num); - var zeros = (input) => { - let value = `${input}`; - let index = -1; - if (value[0] === "-") - value = value.slice(1); - if (value === "0") - return false; - while (value[++index] === "0") - ; - return index > 0; - }; - var stringify = (start, end, options8) => { - if (typeof start === "string" || typeof end === "string") { - return true; - } - return options8.stringify === true; - }; - var pad = (input, maxLength, toNumber) => { - if (maxLength > 0) { - let dash = input[0] === "-" ? "-" : ""; - if (dash) - input = input.slice(1); - input = dash + input.padStart(dash ? maxLength - 1 : maxLength, "0"); - } - if (toNumber === false) { - return String(input); - } - return input; - }; - var toMaxLen = (input, maxLength) => { - let negative = input[0] === "-" ? "-" : ""; - if (negative) { - input = input.slice(1); - maxLength--; - } - while (input.length < maxLength) - input = "0" + input; - return negative ? "-" + input : input; - }; - var toSequence = (parts, options8) => { - parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0); - parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0); - let prefix = options8.capture ? "" : "?:"; - let positives = ""; - let negatives = ""; - let result; - if (parts.positives.length) { - positives = parts.positives.join("|"); - } - if (parts.negatives.length) { - negatives = `-(${prefix}${parts.negatives.join("|")})`; - } - if (positives && negatives) { - result = `${positives}|${negatives}`; - } else { - result = positives || negatives; - } - if (options8.wrap) { - return `(${prefix}${result})`; - } - return result; - }; - var toRange = (a, b, isNumbers, options8) => { - if (isNumbers) { - return toRegexRange(a, b, { wrap: false, ...options8 }); - } - let start = String.fromCharCode(a); - if (a === b) - return start; - let stop = String.fromCharCode(b); - return `[${start}-${stop}]`; - }; - var toRegex = (start, end, options8) => { - if (Array.isArray(start)) { - let wrap = options8.wrap === true; - let prefix = options8.capture ? "" : "?:"; - return wrap ? `(${prefix}${start.join("|")})` : start.join("|"); - } - return toRegexRange(start, end, options8); - }; - var rangeError = (...args) => { - return new RangeError("Invalid range arguments: " + util.inspect(...args)); - }; - var invalidRange = (start, end, options8) => { - if (options8.strictRanges === true) - throw rangeError([start, end]); - return []; - }; - var invalidStep = (step, options8) => { - if (options8.strictRanges === true) { - throw new TypeError(`Expected step "${step}" to be a number`); - } - return []; - }; - var fillNumbers = (start, end, step = 1, options8 = {}) => { - let a = Number(start); - let b = Number(end); - if (!Number.isInteger(a) || !Number.isInteger(b)) { - if (options8.strictRanges === true) - throw rangeError([start, end]); - return []; - } - if (a === 0) - a = 0; - if (b === 0) - b = 0; - let descending = a > b; - let startString = String(start); - let endString = String(end); - let stepString = String(step); - step = Math.max(Math.abs(step), 1); - let padded = zeros(startString) || zeros(endString) || zeros(stepString); - let maxLen = padded ? Math.max(startString.length, endString.length, stepString.length) : 0; - let toNumber = padded === false && stringify(start, end, options8) === false; - let format3 = options8.transform || transform2(toNumber); - if (options8.toRegex && step === 1) { - return toRange(toMaxLen(start, maxLen), toMaxLen(end, maxLen), true, options8); - } - let parts = { negatives: [], positives: [] }; - let push = (num) => parts[num < 0 ? "negatives" : "positives"].push(Math.abs(num)); - let range = []; - let index = 0; - while (descending ? a >= b : a <= b) { - if (options8.toRegex === true && step > 1) { - push(a); - } else { - range.push(pad(format3(a, index), maxLen, toNumber)); - } - a = descending ? a - step : a + step; - index++; - } - if (options8.toRegex === true) { - return step > 1 ? toSequence(parts, options8) : toRegex(range, null, { wrap: false, ...options8 }); - } - return range; - }; - var fillLetters = (start, end, step = 1, options8 = {}) => { - if (!isNumber(start) && start.length > 1 || !isNumber(end) && end.length > 1) { - return invalidRange(start, end, options8); - } - let format3 = options8.transform || ((val) => String.fromCharCode(val)); - let a = `${start}`.charCodeAt(0); - let b = `${end}`.charCodeAt(0); - let descending = a > b; - let min = Math.min(a, b); - let max = Math.max(a, b); - if (options8.toRegex && step === 1) { - return toRange(min, max, false, options8); - } - let range = []; - let index = 0; - while (descending ? a >= b : a <= b) { - range.push(format3(a, index)); - a = descending ? a - step : a + step; - index++; - } - if (options8.toRegex === true) { - return toRegex(range, null, { wrap: false, options: options8 }); - } - return range; - }; - var fill2 = (start, end, step, options8 = {}) => { - if (end == null && isValidValue(start)) { - return [start]; - } - if (!isValidValue(start) || !isValidValue(end)) { - return invalidRange(start, end, options8); - } - if (typeof step === "function") { - return fill2(start, end, 1, { transform: step }); - } - if (isObject2(step)) { - return fill2(start, end, 0, step); - } - let opts = { ...options8 }; - if (opts.capture === true) - opts.wrap = true; - step = step || opts.step || 1; - if (!isNumber(step)) { - if (step != null && !isObject2(step)) - return invalidStep(step, opts); - return fill2(start, end, 1, step); - } - if (isNumber(start) && isNumber(end)) { - return fillNumbers(start, end, step, opts); - } - return fillLetters(start, end, Math.max(Math.abs(step), 1), opts); - }; - module.exports = fill2; - } -}); - -// node_modules/braces/lib/compile.js -var require_compile = __commonJS({ - "node_modules/braces/lib/compile.js"(exports, module) { - "use strict"; - var fill2 = require_fill_range(); - var utils = require_utils2(); - var compile = (ast, options8 = {}) => { - let walk = (node, parent = {}) => { - let invalidBlock = utils.isInvalidBrace(parent); - let invalidNode = node.invalid === true && options8.escapeInvalid === true; - let invalid = invalidBlock === true || invalidNode === true; - let prefix = options8.escapeInvalid === true ? "\\" : ""; - let output = ""; - if (node.isOpen === true) { - return prefix + node.value; - } - if (node.isClose === true) { - return prefix + node.value; - } - if (node.type === "open") { - return invalid ? prefix + node.value : "("; - } - if (node.type === "close") { - return invalid ? prefix + node.value : ")"; - } - if (node.type === "comma") { - return node.prev.type === "comma" ? "" : invalid ? node.value : "|"; - } - if (node.value) { - return node.value; - } - if (node.nodes && node.ranges > 0) { - let args = utils.reduce(node.nodes); - let range = fill2(...args, { ...options8, wrap: false, toRegex: true }); - if (range.length !== 0) { - return args.length > 1 && range.length > 1 ? `(${range})` : range; - } - } - if (node.nodes) { - for (let child of node.nodes) { - output += walk(child, node); - } - } - return output; - }; - return walk(ast); - }; - module.exports = compile; - } -}); - -// node_modules/braces/lib/expand.js -var require_expand = __commonJS({ - "node_modules/braces/lib/expand.js"(exports, module) { - "use strict"; - var fill2 = require_fill_range(); - var stringify = require_stringify(); - var utils = require_utils2(); - var append = (queue = "", stash = "", enclose = false) => { - let result = []; - queue = [].concat(queue); - stash = [].concat(stash); - if (!stash.length) - return queue; - if (!queue.length) { - return enclose ? utils.flatten(stash).map((ele) => `{${ele}}`) : stash; - } - for (let item of queue) { - if (Array.isArray(item)) { - for (let value of item) { - result.push(append(value, stash, enclose)); - } - } else { - for (let ele of stash) { - if (enclose === true && typeof ele === "string") - ele = `{${ele}}`; - result.push(Array.isArray(ele) ? append(item, ele, enclose) : item + ele); - } - } - } - return utils.flatten(result); - }; - var expand = (ast, options8 = {}) => { - let rangeLimit = options8.rangeLimit === void 0 ? 1e3 : options8.rangeLimit; - let walk = (node, parent = {}) => { - node.queue = []; - let p = parent; - let q = parent.queue; - while (p.type !== "brace" && p.type !== "root" && p.parent) { - p = p.parent; - q = p.queue; - } - if (node.invalid || node.dollar) { - q.push(append(q.pop(), stringify(node, options8))); - return; - } - if (node.type === "brace" && node.invalid !== true && node.nodes.length === 2) { - q.push(append(q.pop(), ["{}"])); - return; - } - if (node.nodes && node.ranges > 0) { - let args = utils.reduce(node.nodes); - if (utils.exceedsLimit(...args, options8.step, rangeLimit)) { - throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit."); - } - let range = fill2(...args, options8); - if (range.length === 0) { - range = stringify(node, options8); - } - q.push(append(q.pop(), range)); - node.nodes = []; - return; - } - let enclose = utils.encloseBrace(node); - let queue = node.queue; - let block = node; - while (block.type !== "brace" && block.type !== "root" && block.parent) { - block = block.parent; - queue = block.queue; - } - for (let i = 0; i < node.nodes.length; i++) { - let child = node.nodes[i]; - if (child.type === "comma" && node.type === "brace") { - if (i === 1) - queue.push(""); - queue.push(""); - continue; - } - if (child.type === "close") { - q.push(append(q.pop(), queue, enclose)); - continue; - } - if (child.value && child.type !== "open") { - queue.push(append(queue.pop(), child.value)); - continue; - } - if (child.nodes) { - walk(child, node); - } - } - return queue; - }; - return utils.flatten(walk(ast)); - }; - module.exports = expand; - } -}); - -// node_modules/braces/lib/constants.js -var require_constants = __commonJS({ - "node_modules/braces/lib/constants.js"(exports, module) { - "use strict"; - module.exports = { - MAX_LENGTH: 1024 * 64, - // Digits - CHAR_0: "0", - /* 0 */ - CHAR_9: "9", - /* 9 */ - // Alphabet chars. - CHAR_UPPERCASE_A: "A", - /* A */ - CHAR_LOWERCASE_A: "a", - /* a */ - CHAR_UPPERCASE_Z: "Z", - /* Z */ - CHAR_LOWERCASE_Z: "z", - /* z */ - CHAR_LEFT_PARENTHESES: "(", - /* ( */ - CHAR_RIGHT_PARENTHESES: ")", - /* ) */ - CHAR_ASTERISK: "*", - /* * */ - // Non-alphabetic chars. - CHAR_AMPERSAND: "&", - /* & */ - CHAR_AT: "@", - /* @ */ - CHAR_BACKSLASH: "\\", - /* \ */ - CHAR_BACKTICK: "`", - /* ` */ - CHAR_CARRIAGE_RETURN: "\r", - /* \r */ - CHAR_CIRCUMFLEX_ACCENT: "^", - /* ^ */ - CHAR_COLON: ":", - /* : */ - CHAR_COMMA: ",", - /* , */ - CHAR_DOLLAR: "$", - /* . */ - CHAR_DOT: ".", - /* . */ - CHAR_DOUBLE_QUOTE: '"', - /* " */ - CHAR_EQUAL: "=", - /* = */ - CHAR_EXCLAMATION_MARK: "!", - /* ! */ - CHAR_FORM_FEED: "\f", - /* \f */ - CHAR_FORWARD_SLASH: "/", - /* / */ - CHAR_HASH: "#", - /* # */ - CHAR_HYPHEN_MINUS: "-", - /* - */ - CHAR_LEFT_ANGLE_BRACKET: "<", - /* < */ - CHAR_LEFT_CURLY_BRACE: "{", - /* { */ - CHAR_LEFT_SQUARE_BRACKET: "[", - /* [ */ - CHAR_LINE_FEED: "\n", - /* \n */ - CHAR_NO_BREAK_SPACE: "\xA0", - /* \u00A0 */ - CHAR_PERCENT: "%", - /* % */ - CHAR_PLUS: "+", - /* + */ - CHAR_QUESTION_MARK: "?", - /* ? */ - CHAR_RIGHT_ANGLE_BRACKET: ">", - /* > */ - CHAR_RIGHT_CURLY_BRACE: "}", - /* } */ - CHAR_RIGHT_SQUARE_BRACKET: "]", - /* ] */ - CHAR_SEMICOLON: ";", - /* ; */ - CHAR_SINGLE_QUOTE: "'", - /* ' */ - CHAR_SPACE: " ", - /* */ - CHAR_TAB: " ", - /* \t */ - CHAR_UNDERSCORE: "_", - /* _ */ - CHAR_VERTICAL_LINE: "|", - /* | */ - CHAR_ZERO_WIDTH_NOBREAK_SPACE: "\uFEFF" - /* \uFEFF */ - }; - } -}); - -// node_modules/braces/lib/parse.js -var require_parse = __commonJS({ - "node_modules/braces/lib/parse.js"(exports, module) { - "use strict"; - var stringify = require_stringify(); - var { - MAX_LENGTH, - CHAR_BACKSLASH, - /* \ */ - CHAR_BACKTICK, - /* ` */ - CHAR_COMMA, - /* , */ - CHAR_DOT, - /* . */ - CHAR_LEFT_PARENTHESES, - /* ( */ - CHAR_RIGHT_PARENTHESES, - /* ) */ - CHAR_LEFT_CURLY_BRACE, - /* { */ - CHAR_RIGHT_CURLY_BRACE, - /* } */ - CHAR_LEFT_SQUARE_BRACKET, - /* [ */ - CHAR_RIGHT_SQUARE_BRACKET, - /* ] */ - CHAR_DOUBLE_QUOTE, - /* " */ - CHAR_SINGLE_QUOTE, - /* ' */ - CHAR_NO_BREAK_SPACE, - CHAR_ZERO_WIDTH_NOBREAK_SPACE - } = require_constants(); - var parse3 = (input, options8 = {}) => { - if (typeof input !== "string") { - throw new TypeError("Expected a string"); - } - let opts = options8 || {}; - let max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH; - if (input.length > max) { - throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`); - } - let ast = { type: "root", input, nodes: [] }; - let stack = [ast]; - let block = ast; - let prev = ast; - let brackets = 0; - let length = input.length; - let index = 0; - let depth = 0; - let value; - let memo = {}; - const advance = () => input[index++]; - const push = (node) => { - if (node.type === "text" && prev.type === "dot") { - prev.type = "text"; - } - if (prev && prev.type === "text" && node.type === "text") { - prev.value += node.value; - return; - } - block.nodes.push(node); - node.parent = block; - node.prev = prev; - prev = node; - return node; - }; - push({ type: "bos" }); - while (index < length) { - block = stack[stack.length - 1]; - value = advance(); - if (value === CHAR_ZERO_WIDTH_NOBREAK_SPACE || value === CHAR_NO_BREAK_SPACE) { - continue; - } - if (value === CHAR_BACKSLASH) { - push({ type: "text", value: (options8.keepEscaping ? value : "") + advance() }); - continue; - } - if (value === CHAR_RIGHT_SQUARE_BRACKET) { - push({ type: "text", value: "\\" + value }); - continue; - } - if (value === CHAR_LEFT_SQUARE_BRACKET) { - brackets++; - let closed = true; - let next; - while (index < length && (next = advance())) { - value += next; - if (next === CHAR_LEFT_SQUARE_BRACKET) { - brackets++; - continue; - } - if (next === CHAR_BACKSLASH) { - value += advance(); - continue; - } - if (next === CHAR_RIGHT_SQUARE_BRACKET) { - brackets--; - if (brackets === 0) { - break; - } - } - } - push({ type: "text", value }); - continue; - } - if (value === CHAR_LEFT_PARENTHESES) { - block = push({ type: "paren", nodes: [] }); - stack.push(block); - push({ type: "text", value }); - continue; - } - if (value === CHAR_RIGHT_PARENTHESES) { - if (block.type !== "paren") { - push({ type: "text", value }); - continue; - } - block = stack.pop(); - push({ type: "text", value }); - block = stack[stack.length - 1]; - continue; - } - if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) { - let open = value; - let next; - if (options8.keepQuotes !== true) { - value = ""; - } - while (index < length && (next = advance())) { - if (next === CHAR_BACKSLASH) { - value += next + advance(); - continue; - } - if (next === open) { - if (options8.keepQuotes === true) - value += next; - break; - } - value += next; - } - push({ type: "text", value }); - continue; - } - if (value === CHAR_LEFT_CURLY_BRACE) { - depth++; - let dollar = prev.value && prev.value.slice(-1) === "$" || block.dollar === true; - let brace = { - type: "brace", - open: true, - close: false, - dollar, - depth, - commas: 0, - ranges: 0, - nodes: [] - }; - block = push(brace); - stack.push(block); - push({ type: "open", value }); - continue; - } - if (value === CHAR_RIGHT_CURLY_BRACE) { - if (block.type !== "brace") { - push({ type: "text", value }); - continue; - } - let type = "close"; - block = stack.pop(); - block.close = true; - push({ type, value }); - depth--; - block = stack[stack.length - 1]; - continue; - } - if (value === CHAR_COMMA && depth > 0) { - if (block.ranges > 0) { - block.ranges = 0; - let open = block.nodes.shift(); - block.nodes = [open, { type: "text", value: stringify(block) }]; - } - push({ type: "comma", value }); - block.commas++; - continue; - } - if (value === CHAR_DOT && depth > 0 && block.commas === 0) { - let siblings = block.nodes; - if (depth === 0 || siblings.length === 0) { - push({ type: "text", value }); - continue; - } - if (prev.type === "dot") { - block.range = []; - prev.value += value; - prev.type = "range"; - if (block.nodes.length !== 3 && block.nodes.length !== 5) { - block.invalid = true; - block.ranges = 0; - prev.type = "text"; - continue; - } - block.ranges++; - block.args = []; - continue; - } - if (prev.type === "range") { - siblings.pop(); - let before = siblings[siblings.length - 1]; - before.value += prev.value + value; - prev = before; - block.ranges--; - continue; - } - push({ type: "dot", value }); - continue; - } - push({ type: "text", value }); - } - do { - block = stack.pop(); - if (block.type !== "root") { - block.nodes.forEach((node) => { - if (!node.nodes) { - if (node.type === "open") - node.isOpen = true; - if (node.type === "close") - node.isClose = true; - if (!node.nodes) - node.type = "text"; - node.invalid = true; - } - }); - let parent = stack[stack.length - 1]; - let index2 = parent.nodes.indexOf(block); - parent.nodes.splice(index2, 1, ...block.nodes); - } - } while (stack.length > 0); - push({ type: "eos" }); - return ast; - }; - module.exports = parse3; - } -}); - -// node_modules/braces/index.js -var require_braces = __commonJS({ - "node_modules/braces/index.js"(exports, module) { - "use strict"; - var stringify = require_stringify(); - var compile = require_compile(); - var expand = require_expand(); - var parse3 = require_parse(); - var braces = (input, options8 = {}) => { - let output = []; - if (Array.isArray(input)) { - for (let pattern of input) { - let result = braces.create(pattern, options8); - if (Array.isArray(result)) { - output.push(...result); - } else { - output.push(result); - } - } - } else { - output = [].concat(braces.create(input, options8)); - } - if (options8 && options8.expand === true && options8.nodupes === true) { - output = [...new Set(output)]; - } - return output; - }; - braces.parse = (input, options8 = {}) => parse3(input, options8); - braces.stringify = (input, options8 = {}) => { - if (typeof input === "string") { - return stringify(braces.parse(input, options8), options8); - } - return stringify(input, options8); - }; - braces.compile = (input, options8 = {}) => { - if (typeof input === "string") { - input = braces.parse(input, options8); - } - return compile(input, options8); - }; - braces.expand = (input, options8 = {}) => { - if (typeof input === "string") { - input = braces.parse(input, options8); - } - let result = expand(input, options8); - if (options8.noempty === true) { - result = result.filter(Boolean); - } - if (options8.nodupes === true) { - result = [...new Set(result)]; - } - return result; - }; - braces.create = (input, options8 = {}) => { - if (input === "" || input.length < 3) { - return [input]; - } - return options8.expand !== true ? braces.compile(input, options8) : braces.expand(input, options8); - }; - module.exports = braces; - } -}); - -// node_modules/picomatch/lib/constants.js -var require_constants2 = __commonJS({ - "node_modules/picomatch/lib/constants.js"(exports, module) { - "use strict"; - var path9 = __require("path"); - var WIN_SLASH = "\\\\/"; - var WIN_NO_SLASH = `[^${WIN_SLASH}]`; - var DOT_LITERAL = "\\."; - var PLUS_LITERAL = "\\+"; - var QMARK_LITERAL = "\\?"; - var SLASH_LITERAL = "\\/"; - var ONE_CHAR = "(?=.)"; - var QMARK = "[^/]"; - var END_ANCHOR = `(?:${SLASH_LITERAL}|$)`; - var START_ANCHOR = `(?:^|${SLASH_LITERAL})`; - var DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`; - var NO_DOT = `(?!${DOT_LITERAL})`; - var NO_DOTS = `(?!${START_ANCHOR}${DOTS_SLASH})`; - var NO_DOT_SLASH = `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`; - var NO_DOTS_SLASH = `(?!${DOTS_SLASH})`; - var QMARK_NO_DOT = `[^.${SLASH_LITERAL}]`; - var STAR = `${QMARK}*?`; - var POSIX_CHARS = { - DOT_LITERAL, - PLUS_LITERAL, - QMARK_LITERAL, - SLASH_LITERAL, - ONE_CHAR, - QMARK, - END_ANCHOR, - DOTS_SLASH, - NO_DOT, - NO_DOTS, - NO_DOT_SLASH, - NO_DOTS_SLASH, - QMARK_NO_DOT, - STAR, - START_ANCHOR - }; - var WINDOWS_CHARS = { - ...POSIX_CHARS, - SLASH_LITERAL: `[${WIN_SLASH}]`, - QMARK: WIN_NO_SLASH, - STAR: `${WIN_NO_SLASH}*?`, - DOTS_SLASH: `${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$)`, - NO_DOT: `(?!${DOT_LITERAL})`, - NO_DOTS: `(?!(?:^|[${WIN_SLASH}])${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`, - NO_DOT_SLASH: `(?!${DOT_LITERAL}{0,1}(?:[${WIN_SLASH}]|$))`, - NO_DOTS_SLASH: `(?!${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`, - QMARK_NO_DOT: `[^.${WIN_SLASH}]`, - START_ANCHOR: `(?:^|[${WIN_SLASH}])`, - END_ANCHOR: `(?:[${WIN_SLASH}]|$)` - }; - var POSIX_REGEX_SOURCE = { - alnum: "a-zA-Z0-9", - alpha: "a-zA-Z", - ascii: "\\x00-\\x7F", - blank: " \\t", - cntrl: "\\x00-\\x1F\\x7F", - digit: "0-9", - graph: "\\x21-\\x7E", - lower: "a-z", - print: "\\x20-\\x7E ", - punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~", - space: " \\t\\r\\n\\v\\f", - upper: "A-Z", - word: "A-Za-z0-9_", - xdigit: "A-Fa-f0-9" - }; - module.exports = { - MAX_LENGTH: 1024 * 64, - POSIX_REGEX_SOURCE, - // regular expressions - REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g, - REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/, - REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/, - REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g, - REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g, - REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g, - // Replace globs with equivalent patterns to reduce parsing time. - REPLACEMENTS: { - "***": "*", - "**/**": "**", - "**/**/**": "**" - }, - // Digits - CHAR_0: 48, - /* 0 */ - CHAR_9: 57, - /* 9 */ - // Alphabet chars. - CHAR_UPPERCASE_A: 65, - /* A */ - CHAR_LOWERCASE_A: 97, - /* a */ - CHAR_UPPERCASE_Z: 90, - /* Z */ - CHAR_LOWERCASE_Z: 122, - /* z */ - CHAR_LEFT_PARENTHESES: 40, - /* ( */ - CHAR_RIGHT_PARENTHESES: 41, - /* ) */ - CHAR_ASTERISK: 42, - /* * */ - // Non-alphabetic chars. - CHAR_AMPERSAND: 38, - /* & */ - CHAR_AT: 64, - /* @ */ - CHAR_BACKWARD_SLASH: 92, - /* \ */ - CHAR_CARRIAGE_RETURN: 13, - /* \r */ - CHAR_CIRCUMFLEX_ACCENT: 94, - /* ^ */ - CHAR_COLON: 58, - /* : */ - CHAR_COMMA: 44, - /* , */ - CHAR_DOT: 46, - /* . */ - CHAR_DOUBLE_QUOTE: 34, - /* " */ - CHAR_EQUAL: 61, - /* = */ - CHAR_EXCLAMATION_MARK: 33, - /* ! */ - CHAR_FORM_FEED: 12, - /* \f */ - CHAR_FORWARD_SLASH: 47, - /* / */ - CHAR_GRAVE_ACCENT: 96, - /* ` */ - CHAR_HASH: 35, - /* # */ - CHAR_HYPHEN_MINUS: 45, - /* - */ - CHAR_LEFT_ANGLE_BRACKET: 60, - /* < */ - CHAR_LEFT_CURLY_BRACE: 123, - /* { */ - CHAR_LEFT_SQUARE_BRACKET: 91, - /* [ */ - CHAR_LINE_FEED: 10, - /* \n */ - CHAR_NO_BREAK_SPACE: 160, - /* \u00A0 */ - CHAR_PERCENT: 37, - /* % */ - CHAR_PLUS: 43, - /* + */ - CHAR_QUESTION_MARK: 63, - /* ? */ - CHAR_RIGHT_ANGLE_BRACKET: 62, - /* > */ - CHAR_RIGHT_CURLY_BRACE: 125, - /* } */ - CHAR_RIGHT_SQUARE_BRACKET: 93, - /* ] */ - CHAR_SEMICOLON: 59, - /* ; */ - CHAR_SINGLE_QUOTE: 39, - /* ' */ - CHAR_SPACE: 32, - /* */ - CHAR_TAB: 9, - /* \t */ - CHAR_UNDERSCORE: 95, - /* _ */ - CHAR_VERTICAL_LINE: 124, - /* | */ - CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279, - /* \uFEFF */ - SEP: path9.sep, - /** - * Create EXTGLOB_CHARS - */ - extglobChars(chars) { - return { - "!": { type: "negate", open: "(?:(?!(?:", close: `))${chars.STAR})` }, - "?": { type: "qmark", open: "(?:", close: ")?" }, - "+": { type: "plus", open: "(?:", close: ")+" }, - "*": { type: "star", open: "(?:", close: ")*" }, - "@": { type: "at", open: "(?:", close: ")" } - }; - }, - /** - * Create GLOB_CHARS - */ - globChars(win32) { - return win32 === true ? WINDOWS_CHARS : POSIX_CHARS; - } - }; - } -}); - -// node_modules/picomatch/lib/utils.js -var require_utils3 = __commonJS({ - "node_modules/picomatch/lib/utils.js"(exports) { - "use strict"; - var path9 = __require("path"); - var win32 = process.platform === "win32"; - var { - REGEX_BACKSLASH, - REGEX_REMOVE_BACKSLASH, - REGEX_SPECIAL_CHARS, - REGEX_SPECIAL_CHARS_GLOBAL - } = require_constants2(); - exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val); - exports.hasRegexChars = (str) => REGEX_SPECIAL_CHARS.test(str); - exports.isRegexChar = (str) => str.length === 1 && exports.hasRegexChars(str); - exports.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1"); - exports.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/"); - exports.removeBackslashes = (str) => { - return str.replace(REGEX_REMOVE_BACKSLASH, (match) => { - return match === "\\" ? "" : match; - }); - }; - exports.supportsLookbehinds = () => { - const segs = process.version.slice(1).split(".").map(Number); - if (segs.length === 3 && segs[0] >= 9 || segs[0] === 8 && segs[1] >= 10) { - return true; - } - return false; - }; - exports.isWindows = (options8) => { - if (options8 && typeof options8.windows === "boolean") { - return options8.windows; - } - return win32 === true || path9.sep === "\\"; - }; - exports.escapeLast = (input, char, lastIdx) => { - const idx = input.lastIndexOf(char, lastIdx); - if (idx === -1) - return input; - if (input[idx - 1] === "\\") - return exports.escapeLast(input, char, idx - 1); - return `${input.slice(0, idx)}\\${input.slice(idx)}`; - }; - exports.removePrefix = (input, state = {}) => { - let output = input; - if (output.startsWith("./")) { - output = output.slice(2); - state.prefix = "./"; - } - return output; - }; - exports.wrapOutput = (input, state = {}, options8 = {}) => { - const prepend = options8.contains ? "" : "^"; - const append = options8.contains ? "" : "$"; - let output = `${prepend}(?:${input})${append}`; - if (state.negated === true) { - output = `(?:^(?!${output}).*$)`; - } - return output; - }; - } -}); - -// node_modules/picomatch/lib/scan.js -var require_scan = __commonJS({ - "node_modules/picomatch/lib/scan.js"(exports, module) { - "use strict"; - var utils = require_utils3(); - var { - CHAR_ASTERISK, - /* * */ - CHAR_AT, - /* @ */ - CHAR_BACKWARD_SLASH, - /* \ */ - CHAR_COMMA, - /* , */ - CHAR_DOT, - /* . */ - CHAR_EXCLAMATION_MARK, - /* ! */ - CHAR_FORWARD_SLASH, - /* / */ - CHAR_LEFT_CURLY_BRACE, - /* { */ - CHAR_LEFT_PARENTHESES, - /* ( */ - CHAR_LEFT_SQUARE_BRACKET, - /* [ */ - CHAR_PLUS, - /* + */ - CHAR_QUESTION_MARK, - /* ? */ - CHAR_RIGHT_CURLY_BRACE, - /* } */ - CHAR_RIGHT_PARENTHESES, - /* ) */ - CHAR_RIGHT_SQUARE_BRACKET - /* ] */ - } = require_constants2(); - var isPathSeparator = (code) => { - return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH; - }; - var depth = (token) => { - if (token.isPrefix !== true) { - token.depth = token.isGlobstar ? Infinity : 1; - } - }; - var scan = (input, options8) => { - const opts = options8 || {}; - const length = input.length - 1; - const scanToEnd = opts.parts === true || opts.scanToEnd === true; - const slashes = []; - const tokens = []; - const parts = []; - let str = input; - let index = -1; - let start = 0; - let lastIndex = 0; - let isBrace = false; - let isBracket = false; - let isGlob = false; - let isExtglob = false; - let isGlobstar = false; - let braceEscaped = false; - let backslashes = false; - let negated = false; - let negatedExtglob = false; - let finished = false; - let braces = 0; - let prev; - let code; - let token = { value: "", depth: 0, isGlob: false }; - const eos = () => index >= length; - const peek = () => str.charCodeAt(index + 1); - const advance = () => { - prev = code; - return str.charCodeAt(++index); - }; - while (index < length) { - code = advance(); - let next; - if (code === CHAR_BACKWARD_SLASH) { - backslashes = token.backslashes = true; - code = advance(); - if (code === CHAR_LEFT_CURLY_BRACE) { - braceEscaped = true; - } - continue; - } - if (braceEscaped === true || code === CHAR_LEFT_CURLY_BRACE) { - braces++; - while (eos() !== true && (code = advance())) { - if (code === CHAR_BACKWARD_SLASH) { - backslashes = token.backslashes = true; - advance(); - continue; - } - if (code === CHAR_LEFT_CURLY_BRACE) { - braces++; - continue; - } - if (braceEscaped !== true && code === CHAR_DOT && (code = advance()) === CHAR_DOT) { - isBrace = token.isBrace = true; - isGlob = token.isGlob = true; - finished = true; - if (scanToEnd === true) { - continue; - } - break; - } - if (braceEscaped !== true && code === CHAR_COMMA) { - isBrace = token.isBrace = true; - isGlob = token.isGlob = true; - finished = true; - if (scanToEnd === true) { - continue; - } - break; - } - if (code === CHAR_RIGHT_CURLY_BRACE) { - braces--; - if (braces === 0) { - braceEscaped = false; - isBrace = token.isBrace = true; - finished = true; - break; - } - } - } - if (scanToEnd === true) { - continue; - } - break; - } - if (code === CHAR_FORWARD_SLASH) { - slashes.push(index); - tokens.push(token); - token = { value: "", depth: 0, isGlob: false }; - if (finished === true) - continue; - if (prev === CHAR_DOT && index === start + 1) { - start += 2; - continue; - } - lastIndex = index + 1; - continue; - } - if (opts.noext !== true) { - const isExtglobChar = code === CHAR_PLUS || code === CHAR_AT || code === CHAR_ASTERISK || code === CHAR_QUESTION_MARK || code === CHAR_EXCLAMATION_MARK; - if (isExtglobChar === true && peek() === CHAR_LEFT_PARENTHESES) { - isGlob = token.isGlob = true; - isExtglob = token.isExtglob = true; - finished = true; - if (code === CHAR_EXCLAMATION_MARK && index === start) { - negatedExtglob = true; - } - if (scanToEnd === true) { - while (eos() !== true && (code = advance())) { - if (code === CHAR_BACKWARD_SLASH) { - backslashes = token.backslashes = true; - code = advance(); - continue; - } - if (code === CHAR_RIGHT_PARENTHESES) { - isGlob = token.isGlob = true; - finished = true; - break; - } - } - continue; - } - break; - } - } - if (code === CHAR_ASTERISK) { - if (prev === CHAR_ASTERISK) - isGlobstar = token.isGlobstar = true; - isGlob = token.isGlob = true; - finished = true; - if (scanToEnd === true) { - continue; - } - break; - } - if (code === CHAR_QUESTION_MARK) { - isGlob = token.isGlob = true; - finished = true; - if (scanToEnd === true) { - continue; - } - break; - } - if (code === CHAR_LEFT_SQUARE_BRACKET) { - while (eos() !== true && (next = advance())) { - if (next === CHAR_BACKWARD_SLASH) { - backslashes = token.backslashes = true; - advance(); - continue; - } - if (next === CHAR_RIGHT_SQUARE_BRACKET) { - isBracket = token.isBracket = true; - isGlob = token.isGlob = true; - finished = true; - break; - } - } - if (scanToEnd === true) { - continue; - } - break; - } - if (opts.nonegate !== true && code === CHAR_EXCLAMATION_MARK && index === start) { - negated = token.negated = true; - start++; - continue; - } - if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES) { - isGlob = token.isGlob = true; - if (scanToEnd === true) { - while (eos() !== true && (code = advance())) { - if (code === CHAR_LEFT_PARENTHESES) { - backslashes = token.backslashes = true; - code = advance(); - continue; - } - if (code === CHAR_RIGHT_PARENTHESES) { - finished = true; - break; - } - } - continue; - } - break; - } - if (isGlob === true) { - finished = true; - if (scanToEnd === true) { - continue; - } - break; - } - } - if (opts.noext === true) { - isExtglob = false; - isGlob = false; - } - let base = str; - let prefix = ""; - let glob = ""; - if (start > 0) { - prefix = str.slice(0, start); - str = str.slice(start); - lastIndex -= start; - } - if (base && isGlob === true && lastIndex > 0) { - base = str.slice(0, lastIndex); - glob = str.slice(lastIndex); - } else if (isGlob === true) { - base = ""; - glob = str; - } else { - base = str; - } - if (base && base !== "" && base !== "/" && base !== str) { - if (isPathSeparator(base.charCodeAt(base.length - 1))) { - base = base.slice(0, -1); - } - } - if (opts.unescape === true) { - if (glob) - glob = utils.removeBackslashes(glob); - if (base && backslashes === true) { - base = utils.removeBackslashes(base); - } - } - const state = { - prefix, - input, - start, - base, - glob, - isBrace, - isBracket, - isGlob, - isExtglob, - isGlobstar, - negated, - negatedExtglob - }; - if (opts.tokens === true) { - state.maxDepth = 0; - if (!isPathSeparator(code)) { - tokens.push(token); - } - state.tokens = tokens; - } - if (opts.parts === true || opts.tokens === true) { - let prevIndex; - for (let idx = 0; idx < slashes.length; idx++) { - const n = prevIndex ? prevIndex + 1 : start; - const i = slashes[idx]; - const value = input.slice(n, i); - if (opts.tokens) { - if (idx === 0 && start !== 0) { - tokens[idx].isPrefix = true; - tokens[idx].value = prefix; - } else { - tokens[idx].value = value; - } - depth(tokens[idx]); - state.maxDepth += tokens[idx].depth; - } - if (idx !== 0 || value !== "") { - parts.push(value); - } - prevIndex = i; - } - if (prevIndex && prevIndex + 1 < input.length) { - const value = input.slice(prevIndex + 1); - parts.push(value); - if (opts.tokens) { - tokens[tokens.length - 1].value = value; - depth(tokens[tokens.length - 1]); - state.maxDepth += tokens[tokens.length - 1].depth; - } - } - state.slashes = slashes; - state.parts = parts; - } - return state; - }; - module.exports = scan; - } -}); - -// node_modules/picomatch/lib/parse.js -var require_parse2 = __commonJS({ - "node_modules/picomatch/lib/parse.js"(exports, module) { - "use strict"; - var constants = require_constants2(); - var utils = require_utils3(); - var { - MAX_LENGTH, - POSIX_REGEX_SOURCE, - REGEX_NON_SPECIAL_CHARS, - REGEX_SPECIAL_CHARS_BACKREF, - REPLACEMENTS - } = constants; - var expandRange = (args, options8) => { - if (typeof options8.expandRange === "function") { - return options8.expandRange(...args, options8); - } - args.sort(); - const value = `[${args.join("-")}]`; - try { - new RegExp(value); - } catch (ex) { - return args.map((v) => utils.escapeRegex(v)).join(".."); - } - return value; - }; - var syntaxError = (type, char) => { - return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`; - }; - var parse3 = (input, options8) => { - if (typeof input !== "string") { - throw new TypeError("Expected a string"); - } - input = REPLACEMENTS[input] || input; - const opts = { ...options8 }; - const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH; - let len = input.length; - if (len > max) { - throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`); - } - const bos = { type: "bos", value: "", output: opts.prepend || "" }; - const tokens = [bos]; - const capture = opts.capture ? "" : "?:"; - const win32 = utils.isWindows(options8); - const PLATFORM_CHARS = constants.globChars(win32); - const EXTGLOB_CHARS = constants.extglobChars(PLATFORM_CHARS); - const { - DOT_LITERAL, - PLUS_LITERAL, - SLASH_LITERAL, - ONE_CHAR, - DOTS_SLASH, - NO_DOT, - NO_DOT_SLASH, - NO_DOTS_SLASH, - QMARK, - QMARK_NO_DOT, - STAR, - START_ANCHOR - } = PLATFORM_CHARS; - const globstar = (opts2) => { - return `(${capture}(?:(?!${START_ANCHOR}${opts2.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`; - }; - const nodot = opts.dot ? "" : NO_DOT; - const qmarkNoDot = opts.dot ? QMARK : QMARK_NO_DOT; - let star = opts.bash === true ? globstar(opts) : STAR; - if (opts.capture) { - star = `(${star})`; - } - if (typeof opts.noext === "boolean") { - opts.noextglob = opts.noext; - } - const state = { - input, - index: -1, - start: 0, - dot: opts.dot === true, - consumed: "", - output: "", - prefix: "", - backtrack: false, - negated: false, - brackets: 0, - braces: 0, - parens: 0, - quotes: 0, - globstar: false, - tokens - }; - input = utils.removePrefix(input, state); - len = input.length; - const extglobs = []; - const braces = []; - const stack = []; - let prev = bos; - let value; - const eos = () => state.index === len - 1; - const peek = state.peek = (n = 1) => input[state.index + n]; - const advance = state.advance = () => input[++state.index] || ""; - const remaining = () => input.slice(state.index + 1); - const consume = (value2 = "", num = 0) => { - state.consumed += value2; - state.index += num; - }; - const append = (token) => { - state.output += token.output != null ? token.output : token.value; - consume(token.value); - }; - const negate = () => { - let count = 1; - while (peek() === "!" && (peek(2) !== "(" || peek(3) === "?")) { - advance(); - state.start++; - count++; - } - if (count % 2 === 0) { - return false; - } - state.negated = true; - state.start++; - return true; - }; - const increment = (type) => { - state[type]++; - stack.push(type); - }; - const decrement = (type) => { - state[type]--; - stack.pop(); - }; - const push = (tok) => { - if (prev.type === "globstar") { - const isBrace = state.braces > 0 && (tok.type === "comma" || tok.type === "brace"); - const isExtglob = tok.extglob === true || extglobs.length && (tok.type === "pipe" || tok.type === "paren"); - if (tok.type !== "slash" && tok.type !== "paren" && !isBrace && !isExtglob) { - state.output = state.output.slice(0, -prev.output.length); - prev.type = "star"; - prev.value = "*"; - prev.output = star; - state.output += prev.output; - } - } - if (extglobs.length && tok.type !== "paren") { - extglobs[extglobs.length - 1].inner += tok.value; - } - if (tok.value || tok.output) - append(tok); - if (prev && prev.type === "text" && tok.type === "text") { - prev.value += tok.value; - prev.output = (prev.output || "") + tok.value; - return; - } - tok.prev = prev; - tokens.push(tok); - prev = tok; - }; - const extglobOpen = (type, value2) => { - const token = { ...EXTGLOB_CHARS[value2], conditions: 1, inner: "" }; - token.prev = prev; - token.parens = state.parens; - token.output = state.output; - const output = (opts.capture ? "(" : "") + token.open; - increment("parens"); - push({ type, value: value2, output: state.output ? "" : ONE_CHAR }); - push({ type: "paren", extglob: true, value: advance(), output }); - extglobs.push(token); - }; - const extglobClose = (token) => { - let output = token.close + (opts.capture ? ")" : ""); - let rest; - if (token.type === "negate") { - let extglobStar = star; - if (token.inner && token.inner.length > 1 && token.inner.includes("/")) { - extglobStar = globstar(opts); - } - if (extglobStar !== star || eos() || /^\)+$/.test(remaining())) { - output = token.close = `)$))${extglobStar}`; - } - if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) { - const expression = parse3(rest, { ...options8, fastpaths: false }).output; - output = token.close = `)${expression})${extglobStar})`; - } - if (token.prev.type === "bos") { - state.negatedExtglob = true; - } + tok.prev = prev; + tokens.push(tok); + prev = tok; + }; + const extglobOpen = (type, value2) => { + const token = { ...EXTGLOB_CHARS[value2], conditions: 1, inner: "" }; + token.prev = prev; + token.parens = state.parens; + token.output = state.output; + const output = (opts.capture ? "(" : "") + token.open; + increment("parens"); + push({ type, value: value2, output: state.output ? "" : ONE_CHAR }); + push({ type: "paren", extglob: true, value: advance(), output }); + extglobs.push(token); + }; + const extglobClose = (token) => { + let output = token.close + (opts.capture ? ")" : ""); + let rest; + if (token.type === "negate") { + let extglobStar = star; + if (token.inner && token.inner.length > 1 && token.inner.includes("/")) { + extglobStar = globstar(opts); + } + if (extglobStar !== star || eos() || /^\)+$/.test(remaining())) { + output = token.close = `)$))${extglobStar}`; + } + if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) { + const expression = parse3(rest, { ...options8, fastpaths: false }).output; + output = token.close = `)${expression})${extglobStar})`; + } + if (token.prev.type === "bos") { + state.negatedExtglob = true; + } } push({ type: "paren", extglob: true, value, output }); decrement("parens"); @@ -5233,3547 +2563,4720 @@ var require_parse2 = __commonJS({ continue; } } - if (value === "+") { - if (opts.noextglob !== true && peek() === "(" && peek(2) !== "?") { - extglobOpen("plus", value); - continue; - } - if (prev && prev.value === "(" || opts.regex === false) { - push({ type: "plus", value, output: PLUS_LITERAL }); - continue; - } - if (prev && (prev.type === "bracket" || prev.type === "paren" || prev.type === "brace") || state.parens > 0) { - push({ type: "plus", value }); - continue; + if (value === "+") { + if (opts.noextglob !== true && peek() === "(" && peek(2) !== "?") { + extglobOpen("plus", value); + continue; + } + if (prev && prev.value === "(" || opts.regex === false) { + push({ type: "plus", value, output: PLUS_LITERAL }); + continue; + } + if (prev && (prev.type === "bracket" || prev.type === "paren" || prev.type === "brace") || state.parens > 0) { + push({ type: "plus", value }); + continue; + } + push({ type: "plus", value: PLUS_LITERAL }); + continue; + } + if (value === "@") { + if (opts.noextglob !== true && peek() === "(" && peek(2) !== "?") { + push({ type: "at", extglob: true, value, output: "" }); + continue; + } + push({ type: "text", value }); + continue; + } + if (value !== "*") { + if (value === "$" || value === "^") { + value = `\\${value}`; + } + const match = REGEX_NON_SPECIAL_CHARS.exec(remaining()); + if (match) { + value += match[0]; + state.index += match[0].length; + } + push({ type: "text", value }); + continue; + } + if (prev && (prev.type === "globstar" || prev.star === true)) { + prev.type = "star"; + prev.star = true; + prev.value += value; + prev.output = star; + state.backtrack = true; + state.globstar = true; + consume(value); + continue; + } + let rest = remaining(); + if (opts.noextglob !== true && /^\([^?]/.test(rest)) { + extglobOpen("star", value); + continue; + } + if (prev.type === "star") { + if (opts.noglobstar === true) { + consume(value); + continue; + } + const prior = prev.prev; + const before = prior.prev; + const isStart = prior.type === "slash" || prior.type === "bos"; + const afterStar = before && (before.type === "star" || before.type === "globstar"); + if (opts.bash === true && (!isStart || rest[0] && rest[0] !== "/")) { + push({ type: "star", value, output: "" }); + continue; + } + const isBrace = state.braces > 0 && (prior.type === "comma" || prior.type === "brace"); + const isExtglob = extglobs.length && (prior.type === "pipe" || prior.type === "paren"); + if (!isStart && prior.type !== "paren" && !isBrace && !isExtglob) { + push({ type: "star", value, output: "" }); + continue; + } + while (rest.slice(0, 3) === "/**") { + const after = input[state.index + 4]; + if (after && after !== "/") { + break; + } + rest = rest.slice(3); + consume("/**", 3); + } + if (prior.type === "bos" && eos()) { + prev.type = "globstar"; + prev.value += value; + prev.output = globstar(opts); + state.output = prev.output; + state.globstar = true; + consume(value); + continue; + } + if (prior.type === "slash" && prior.prev.type !== "bos" && !afterStar && eos()) { + state.output = state.output.slice(0, -(prior.output + prev.output).length); + prior.output = `(?:${prior.output}`; + prev.type = "globstar"; + prev.output = globstar(opts) + (opts.strictSlashes ? ")" : "|$)"); + prev.value += value; + state.globstar = true; + state.output += prior.output + prev.output; + consume(value); + continue; + } + if (prior.type === "slash" && prior.prev.type !== "bos" && rest[0] === "/") { + const end = rest[1] !== void 0 ? "|$" : ""; + state.output = state.output.slice(0, -(prior.output + prev.output).length); + prior.output = `(?:${prior.output}`; + prev.type = "globstar"; + prev.output = `${globstar(opts)}${SLASH_LITERAL}|${SLASH_LITERAL}${end})`; + prev.value += value; + state.output += prior.output + prev.output; + state.globstar = true; + consume(value + advance()); + push({ type: "slash", value: "/", output: "" }); + continue; + } + if (prior.type === "bos" && rest[0] === "/") { + prev.type = "globstar"; + prev.value += value; + prev.output = `(?:^|${SLASH_LITERAL}|${globstar(opts)}${SLASH_LITERAL})`; + state.output = prev.output; + state.globstar = true; + consume(value + advance()); + push({ type: "slash", value: "/", output: "" }); + continue; + } + state.output = state.output.slice(0, -prev.output.length); + prev.type = "globstar"; + prev.output = globstar(opts); + prev.value += value; + state.output += prev.output; + state.globstar = true; + consume(value); + continue; + } + const token = { type: "star", value, output: star }; + if (opts.bash === true) { + token.output = ".*?"; + if (prev.type === "bos" || prev.type === "slash") { + token.output = nodot + token.output; + } + push(token); + continue; + } + if (prev && (prev.type === "bracket" || prev.type === "paren") && opts.regex === true) { + token.output = value; + push(token); + continue; + } + if (state.index === state.start || prev.type === "slash" || prev.type === "dot") { + if (prev.type === "dot") { + state.output += NO_DOT_SLASH; + prev.output += NO_DOT_SLASH; + } else if (opts.dot === true) { + state.output += NO_DOTS_SLASH; + prev.output += NO_DOTS_SLASH; + } else { + state.output += nodot; + prev.output += nodot; + } + if (peek() !== "*") { + state.output += ONE_CHAR; + prev.output += ONE_CHAR; + } + } + push(token); + } + while (state.brackets > 0) { + if (opts.strictBrackets === true) + throw new SyntaxError(syntaxError("closing", "]")); + state.output = utils.escapeLast(state.output, "["); + decrement("brackets"); + } + while (state.parens > 0) { + if (opts.strictBrackets === true) + throw new SyntaxError(syntaxError("closing", ")")); + state.output = utils.escapeLast(state.output, "("); + decrement("parens"); + } + while (state.braces > 0) { + if (opts.strictBrackets === true) + throw new SyntaxError(syntaxError("closing", "}")); + state.output = utils.escapeLast(state.output, "{"); + decrement("braces"); + } + if (opts.strictSlashes !== true && (prev.type === "star" || prev.type === "bracket")) { + push({ type: "maybe_slash", value: "", output: `${SLASH_LITERAL}?` }); + } + if (state.backtrack === true) { + state.output = ""; + for (const token of state.tokens) { + state.output += token.output != null ? token.output : token.value; + if (token.suffix) { + state.output += token.suffix; + } + } + } + return state; + }; + parse3.fastpaths = (input, options8) => { + const opts = { ...options8 }; + const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH; + const len = input.length; + if (len > max) { + throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`); + } + input = REPLACEMENTS[input] || input; + const win32 = utils.isWindows(options8); + const { + DOT_LITERAL, + SLASH_LITERAL, + ONE_CHAR, + DOTS_SLASH, + NO_DOT, + NO_DOTS, + NO_DOTS_SLASH, + STAR, + START_ANCHOR + } = constants.globChars(win32); + const nodot = opts.dot ? NO_DOTS : NO_DOT; + const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT; + const capture = opts.capture ? "" : "?:"; + const state = { negated: false, prefix: "" }; + let star = opts.bash === true ? ".*?" : STAR; + if (opts.capture) { + star = `(${star})`; + } + const globstar = (opts2) => { + if (opts2.noglobstar === true) + return star; + return `(${capture}(?:(?!${START_ANCHOR}${opts2.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`; + }; + const create = (str) => { + switch (str) { + case "*": + return `${nodot}${ONE_CHAR}${star}`; + case ".*": + return `${DOT_LITERAL}${ONE_CHAR}${star}`; + case "*.*": + return `${nodot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`; + case "*/*": + return `${nodot}${star}${SLASH_LITERAL}${ONE_CHAR}${slashDot}${star}`; + case "**": + return nodot + globstar(opts); + case "**/*": + return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${ONE_CHAR}${star}`; + case "**/*.*": + return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`; + case "**/.*": + return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`; + default: { + const match = /^(.*?)\.(\w+)$/.exec(str); + if (!match) + return; + const source2 = create(match[1]); + if (!source2) + return; + return source2 + DOT_LITERAL + match[2]; } - push({ type: "plus", value: PLUS_LITERAL }); - continue; } - if (value === "@") { - if (opts.noextglob !== true && peek() === "(" && peek(2) !== "?") { - push({ type: "at", extglob: true, value, output: "" }); - continue; + }; + const output = utils.removePrefix(input, state); + let source = create(output); + if (source && opts.strictSlashes !== true) { + source += `${SLASH_LITERAL}?`; + } + return source; + }; + module.exports = parse3; + } +}); + +// node_modules/picomatch/lib/picomatch.js +var require_picomatch = __commonJS({ + "node_modules/picomatch/lib/picomatch.js"(exports, module) { + "use strict"; + var path9 = __require("path"); + var scan = require_scan(); + var parse3 = require_parse2(); + var utils = require_utils2(); + var constants = require_constants2(); + var isObject2 = (val) => val && typeof val === "object" && !Array.isArray(val); + var picomatch = (glob, options8, returnState = false) => { + if (Array.isArray(glob)) { + const fns = glob.map((input) => picomatch(input, options8, returnState)); + const arrayMatcher = (str) => { + for (const isMatch of fns) { + const state2 = isMatch(str); + if (state2) + return state2; } - push({ type: "text", value }); - continue; + return false; + }; + return arrayMatcher; + } + const isState = isObject2(glob) && glob.tokens && glob.input; + if (glob === "" || typeof glob !== "string" && !isState) { + throw new TypeError("Expected pattern to be a non-empty string"); + } + const opts = options8 || {}; + const posix = utils.isWindows(options8); + const regex = isState ? picomatch.compileRe(glob, options8) : picomatch.makeRe(glob, options8, false, true); + const state = regex.state; + delete regex.state; + let isIgnored2 = () => false; + if (opts.ignore) { + const ignoreOpts = { ...options8, ignore: null, onMatch: null, onResult: null }; + isIgnored2 = picomatch(opts.ignore, ignoreOpts, returnState); + } + const matcher = (input, returnObject = false) => { + const { isMatch, match, output } = picomatch.test(input, regex, options8, { glob, posix }); + const result = { glob, state, regex, posix, input, output, match, isMatch }; + if (typeof opts.onResult === "function") { + opts.onResult(result); } - if (value !== "*") { - if (value === "$" || value === "^") { - value = `\\${value}`; - } - const match = REGEX_NON_SPECIAL_CHARS.exec(remaining()); - if (match) { - value += match[0]; - state.index += match[0].length; + if (isMatch === false) { + result.isMatch = false; + return returnObject ? result : false; + } + if (isIgnored2(input)) { + if (typeof opts.onIgnore === "function") { + opts.onIgnore(result); } - push({ type: "text", value }); - continue; + result.isMatch = false; + return returnObject ? result : false; } - if (prev && (prev.type === "globstar" || prev.star === true)) { - prev.type = "star"; - prev.star = true; - prev.value += value; - prev.output = star; - state.backtrack = true; - state.globstar = true; - consume(value); - continue; + if (typeof opts.onMatch === "function") { + opts.onMatch(result); } - let rest = remaining(); - if (opts.noextglob !== true && /^\([^?]/.test(rest)) { - extglobOpen("star", value); - continue; + return returnObject ? result : true; + }; + if (returnState) { + matcher.state = state; + } + return matcher; + }; + picomatch.test = (input, regex, options8, { glob, posix } = {}) => { + if (typeof input !== "string") { + throw new TypeError("Expected input to be a string"); + } + if (input === "") { + return { isMatch: false, output: "" }; + } + const opts = options8 || {}; + const format3 = opts.format || (posix ? utils.toPosixSlashes : null); + let match = input === glob; + let output = match && format3 ? format3(input) : input; + if (match === false) { + output = format3 ? format3(input) : input; + match = output === glob; + } + if (match === false || opts.capture === true) { + if (opts.matchBase === true || opts.basename === true) { + match = picomatch.matchBase(input, regex, options8, posix); + } else { + match = regex.exec(output); + } + } + return { isMatch: Boolean(match), match, output }; + }; + picomatch.matchBase = (input, glob, options8, posix = utils.isWindows(options8)) => { + const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options8); + return regex.test(path9.basename(input)); + }; + picomatch.isMatch = (str, patterns, options8) => picomatch(patterns, options8)(str); + picomatch.parse = (pattern, options8) => { + if (Array.isArray(pattern)) + return pattern.map((p) => picomatch.parse(p, options8)); + return parse3(pattern, { ...options8, fastpaths: false }); + }; + picomatch.scan = (input, options8) => scan(input, options8); + picomatch.compileRe = (state, options8, returnOutput = false, returnState = false) => { + if (returnOutput === true) { + return state.output; + } + const opts = options8 || {}; + const prepend = opts.contains ? "" : "^"; + const append = opts.contains ? "" : "$"; + let source = `${prepend}(?:${state.output})${append}`; + if (state && state.negated === true) { + source = `^(?!${source}).*$`; + } + const regex = picomatch.toRegex(source, options8); + if (returnState === true) { + regex.state = state; + } + return regex; + }; + picomatch.makeRe = (input, options8 = {}, returnOutput = false, returnState = false) => { + if (!input || typeof input !== "string") { + throw new TypeError("Expected a non-empty string"); + } + let parsed = { negated: false, fastpaths: true }; + if (options8.fastpaths !== false && (input[0] === "." || input[0] === "*")) { + parsed.output = parse3.fastpaths(input, options8); + } + if (!parsed.output) { + parsed = parse3(input, options8); + } + return picomatch.compileRe(parsed, options8, returnOutput, returnState); + }; + picomatch.toRegex = (source, options8) => { + try { + const opts = options8 || {}; + return new RegExp(source, opts.flags || (opts.nocase ? "i" : "")); + } catch (err) { + if (options8 && options8.debug === true) + throw err; + return /$^/; + } + }; + picomatch.constants = constants; + module.exports = picomatch; + } +}); + +// node_modules/picomatch/index.js +var require_picomatch2 = __commonJS({ + "node_modules/picomatch/index.js"(exports, module) { + "use strict"; + module.exports = require_picomatch(); + } +}); + +// node_modules/micromatch/index.js +var require_micromatch = __commonJS({ + "node_modules/micromatch/index.js"(exports, module) { + "use strict"; + var util = __require("util"); + var braces = require_braces(); + var picomatch = require_picomatch2(); + var utils = require_utils2(); + var isEmptyString = (val) => val === "" || val === "./"; + var micromatch2 = (list, patterns, options8) => { + patterns = [].concat(patterns); + list = [].concat(list); + let omit2 = /* @__PURE__ */ new Set(); + let keep = /* @__PURE__ */ new Set(); + let items = /* @__PURE__ */ new Set(); + let negatives = 0; + let onResult = (state) => { + items.add(state.output); + if (options8 && options8.onResult) { + options8.onResult(state); } - if (prev.type === "star") { - if (opts.noglobstar === true) { - consume(value); - continue; - } - const prior = prev.prev; - const before = prior.prev; - const isStart = prior.type === "slash" || prior.type === "bos"; - const afterStar = before && (before.type === "star" || before.type === "globstar"); - if (opts.bash === true && (!isStart || rest[0] && rest[0] !== "/")) { - push({ type: "star", value, output: "" }); - continue; - } - const isBrace = state.braces > 0 && (prior.type === "comma" || prior.type === "brace"); - const isExtglob = extglobs.length && (prior.type === "pipe" || prior.type === "paren"); - if (!isStart && prior.type !== "paren" && !isBrace && !isExtglob) { - push({ type: "star", value, output: "" }); - continue; - } - while (rest.slice(0, 3) === "/**") { - const after = input[state.index + 4]; - if (after && after !== "/") { - break; - } - rest = rest.slice(3); - consume("/**", 3); - } - if (prior.type === "bos" && eos()) { - prev.type = "globstar"; - prev.value += value; - prev.output = globstar(opts); - state.output = prev.output; - state.globstar = true; - consume(value); - continue; - } - if (prior.type === "slash" && prior.prev.type !== "bos" && !afterStar && eos()) { - state.output = state.output.slice(0, -(prior.output + prev.output).length); - prior.output = `(?:${prior.output}`; - prev.type = "globstar"; - prev.output = globstar(opts) + (opts.strictSlashes ? ")" : "|$)"); - prev.value += value; - state.globstar = true; - state.output += prior.output + prev.output; - consume(value); - continue; - } - if (prior.type === "slash" && prior.prev.type !== "bos" && rest[0] === "/") { - const end = rest[1] !== void 0 ? "|$" : ""; - state.output = state.output.slice(0, -(prior.output + prev.output).length); - prior.output = `(?:${prior.output}`; - prev.type = "globstar"; - prev.output = `${globstar(opts)}${SLASH_LITERAL}|${SLASH_LITERAL}${end})`; - prev.value += value; - state.output += prior.output + prev.output; - state.globstar = true; - consume(value + advance()); - push({ type: "slash", value: "/", output: "" }); - continue; - } - if (prior.type === "bos" && rest[0] === "/") { - prev.type = "globstar"; - prev.value += value; - prev.output = `(?:^|${SLASH_LITERAL}|${globstar(opts)}${SLASH_LITERAL})`; - state.output = prev.output; - state.globstar = true; - consume(value + advance()); - push({ type: "slash", value: "/", output: "" }); + }; + for (let i = 0; i < patterns.length; i++) { + let isMatch = picomatch(String(patterns[i]), { ...options8, onResult }, true); + let negated = isMatch.state.negated || isMatch.state.negatedExtglob; + if (negated) + negatives++; + for (let item of list) { + let matched = isMatch(item, true); + let match = negated ? !matched.isMatch : matched.isMatch; + if (!match) continue; + if (negated) { + omit2.add(matched.output); + } else { + omit2.delete(matched.output); + keep.add(matched.output); } - state.output = state.output.slice(0, -prev.output.length); - prev.type = "globstar"; - prev.output = globstar(opts); - prev.value += value; - state.output += prev.output; - state.globstar = true; - consume(value); - continue; } - const token = { type: "star", value, output: star }; - if (opts.bash === true) { - token.output = ".*?"; - if (prev.type === "bos" || prev.type === "slash") { - token.output = nodot + token.output; - } - push(token); - continue; + } + let result = negatives === patterns.length ? [...items] : [...keep]; + let matches = result.filter((item) => !omit2.has(item)); + if (options8 && matches.length === 0) { + if (options8.failglob === true) { + throw new Error(`No matches found for "${patterns.join(", ")}"`); } - if (prev && (prev.type === "bracket" || prev.type === "paren") && opts.regex === true) { - token.output = value; - push(token); - continue; + if (options8.nonull === true || options8.nullglob === true) { + return options8.unescape ? patterns.map((p) => p.replace(/\\/g, "")) : patterns; } - if (state.index === state.start || prev.type === "slash" || prev.type === "dot") { - if (prev.type === "dot") { - state.output += NO_DOT_SLASH; - prev.output += NO_DOT_SLASH; - } else if (opts.dot === true) { - state.output += NO_DOTS_SLASH; - prev.output += NO_DOTS_SLASH; - } else { - state.output += nodot; - prev.output += nodot; - } - if (peek() !== "*") { - state.output += ONE_CHAR; - prev.output += ONE_CHAR; - } + } + return matches; + }; + micromatch2.match = micromatch2; + micromatch2.matcher = (pattern, options8) => picomatch(pattern, options8); + micromatch2.isMatch = (str, patterns, options8) => picomatch(patterns, options8)(str); + micromatch2.any = micromatch2.isMatch; + micromatch2.not = (list, patterns, options8 = {}) => { + patterns = [].concat(patterns).map(String); + let result = /* @__PURE__ */ new Set(); + let items = []; + let onResult = (state) => { + if (options8.onResult) + options8.onResult(state); + items.push(state.output); + }; + let matches = new Set(micromatch2(list, patterns, { ...options8, onResult })); + for (let item of items) { + if (!matches.has(item)) { + result.add(item); } - push(token); } - while (state.brackets > 0) { - if (opts.strictBrackets === true) - throw new SyntaxError(syntaxError("closing", "]")); - state.output = utils.escapeLast(state.output, "["); - decrement("brackets"); + return [...result]; + }; + micromatch2.contains = (str, pattern, options8) => { + if (typeof str !== "string") { + throw new TypeError(`Expected a string: "${util.inspect(str)}"`); } - while (state.parens > 0) { - if (opts.strictBrackets === true) - throw new SyntaxError(syntaxError("closing", ")")); - state.output = utils.escapeLast(state.output, "("); - decrement("parens"); + if (Array.isArray(pattern)) { + return pattern.some((p) => micromatch2.contains(str, p, options8)); } - while (state.braces > 0) { - if (opts.strictBrackets === true) - throw new SyntaxError(syntaxError("closing", "}")); - state.output = utils.escapeLast(state.output, "{"); - decrement("braces"); + if (typeof pattern === "string") { + if (isEmptyString(str) || isEmptyString(pattern)) { + return false; + } + if (str.includes(pattern) || str.startsWith("./") && str.slice(2).includes(pattern)) { + return true; + } } - if (opts.strictSlashes !== true && (prev.type === "star" || prev.type === "bracket")) { - push({ type: "maybe_slash", value: "", output: `${SLASH_LITERAL}?` }); + return micromatch2.isMatch(str, pattern, { ...options8, contains: true }); + }; + micromatch2.matchKeys = (obj, patterns, options8) => { + if (!utils.isObject(obj)) { + throw new TypeError("Expected the first argument to be an object"); } - if (state.backtrack === true) { - state.output = ""; - for (const token of state.tokens) { - state.output += token.output != null ? token.output : token.value; - if (token.suffix) { - state.output += token.suffix; - } + let keys = micromatch2(Object.keys(obj), patterns, options8); + let res = {}; + for (let key of keys) + res[key] = obj[key]; + return res; + }; + micromatch2.some = (list, patterns, options8) => { + let items = [].concat(list); + for (let pattern of [].concat(patterns)) { + let isMatch = picomatch(String(pattern), options8); + if (items.some((item) => isMatch(item))) { + return true; + } + } + return false; + }; + micromatch2.every = (list, patterns, options8) => { + let items = [].concat(list); + for (let pattern of [].concat(patterns)) { + let isMatch = picomatch(String(pattern), options8); + if (!items.every((item) => isMatch(item))) { + return false; } } - return state; + return true; + }; + micromatch2.all = (str, patterns, options8) => { + if (typeof str !== "string") { + throw new TypeError(`Expected a string: "${util.inspect(str)}"`); + } + return [].concat(patterns).every((p) => picomatch(p, options8)(str)); }; - parse3.fastpaths = (input, options8) => { - const opts = { ...options8 }; - const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH; - const len = input.length; - if (len > max) { - throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`); - } - input = REPLACEMENTS[input] || input; - const win32 = utils.isWindows(options8); - const { - DOT_LITERAL, - SLASH_LITERAL, - ONE_CHAR, - DOTS_SLASH, - NO_DOT, - NO_DOTS, - NO_DOTS_SLASH, - STAR, - START_ANCHOR - } = constants.globChars(win32); - const nodot = opts.dot ? NO_DOTS : NO_DOT; - const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT; - const capture = opts.capture ? "" : "?:"; - const state = { negated: false, prefix: "" }; - let star = opts.bash === true ? ".*?" : STAR; - if (opts.capture) { - star = `(${star})`; + micromatch2.capture = (glob, input, options8) => { + let posix = utils.isWindows(options8); + let regex = picomatch.makeRe(String(glob), { ...options8, capture: true }); + let match = regex.exec(posix ? utils.toPosixSlashes(input) : input); + if (match) { + return match.slice(1).map((v) => v === void 0 ? "" : v); } - const globstar = (opts2) => { - if (opts2.noglobstar === true) - return star; - return `(${capture}(?:(?!${START_ANCHOR}${opts2.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`; - }; - const create = (str) => { - switch (str) { - case "*": - return `${nodot}${ONE_CHAR}${star}`; - case ".*": - return `${DOT_LITERAL}${ONE_CHAR}${star}`; - case "*.*": - return `${nodot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`; - case "*/*": - return `${nodot}${star}${SLASH_LITERAL}${ONE_CHAR}${slashDot}${star}`; - case "**": - return nodot + globstar(opts); - case "**/*": - return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${ONE_CHAR}${star}`; - case "**/*.*": - return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`; - case "**/.*": - return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`; - default: { - const match = /^(.*?)\.(\w+)$/.exec(str); - if (!match) - return; - const source2 = create(match[1]); - if (!source2) - return; - return source2 + DOT_LITERAL + match[2]; - } + }; + micromatch2.makeRe = (...args) => picomatch.makeRe(...args); + micromatch2.scan = (...args) => picomatch.scan(...args); + micromatch2.parse = (patterns, options8) => { + let res = []; + for (let pattern of [].concat(patterns || [])) { + for (let str of braces(String(pattern), options8)) { + res.push(picomatch.parse(str, options8)); } - }; - const output = utils.removePrefix(input, state); - let source = create(output); - if (source && opts.strictSlashes !== true) { - source += `${SLASH_LITERAL}?`; } - return source; + return res; }; - module.exports = parse3; + micromatch2.braces = (pattern, options8) => { + if (typeof pattern !== "string") + throw new TypeError("Expected a string"); + if (options8 && options8.nobrace === true || !/\{.*\}/.test(pattern)) { + return [pattern]; + } + return braces(pattern, options8); + }; + micromatch2.braceExpand = (pattern, options8) => { + if (typeof pattern !== "string") + throw new TypeError("Expected a string"); + return micromatch2.braces(pattern, { ...options8, expand: true }); + }; + module.exports = micromatch2; } }); -// node_modules/picomatch/lib/picomatch.js -var require_picomatch = __commonJS({ - "node_modules/picomatch/lib/picomatch.js"(exports, module) { +// node_modules/fast-glob/out/utils/pattern.js +var require_pattern = __commonJS({ + "node_modules/fast-glob/out/utils/pattern.js"(exports) { "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0; var path9 = __require("path"); - var scan = require_scan(); - var parse3 = require_parse2(); - var utils = require_utils3(); - var constants = require_constants2(); - var isObject2 = (val) => val && typeof val === "object" && !Array.isArray(val); - var picomatch = (glob, options8, returnState = false) => { - if (Array.isArray(glob)) { - const fns = glob.map((input) => picomatch(input, options8, returnState)); - const arrayMatcher = (str) => { - for (const isMatch of fns) { - const state2 = isMatch(str); - if (state2) - return state2; - } - return false; - }; - return arrayMatcher; + var globParent = require_glob_parent(); + var micromatch2 = require_micromatch(); + var GLOBSTAR = "**"; + var ESCAPE_SYMBOL = "\\"; + var COMMON_GLOB_SYMBOLS_RE = /[*?]|^!/; + var REGEX_CHARACTER_CLASS_SYMBOLS_RE = /\[[^[]*]/; + var REGEX_GROUP_SYMBOLS_RE = /(?:^|[^!*+?@])\([^(]*\|[^|]*\)/; + var GLOB_EXTENSION_SYMBOLS_RE = /[!*+?@]\([^(]*\)/; + var BRACE_EXPANSION_SEPARATORS_RE = /,|\.\./; + var DOUBLE_SLASH_RE = /(?!^)\/{2,}/g; + function isStaticPattern(pattern, options8 = {}) { + return !isDynamicPattern(pattern, options8); + } + exports.isStaticPattern = isStaticPattern; + function isDynamicPattern(pattern, options8 = {}) { + if (pattern === "") { + return false; + } + if (options8.caseSensitiveMatch === false || pattern.includes(ESCAPE_SYMBOL)) { + return true; + } + if (COMMON_GLOB_SYMBOLS_RE.test(pattern) || REGEX_CHARACTER_CLASS_SYMBOLS_RE.test(pattern) || REGEX_GROUP_SYMBOLS_RE.test(pattern)) { + return true; + } + if (options8.extglob !== false && GLOB_EXTENSION_SYMBOLS_RE.test(pattern)) { + return true; + } + if (options8.braceExpansion !== false && hasBraceExpansion(pattern)) { + return true; + } + return false; + } + exports.isDynamicPattern = isDynamicPattern; + function hasBraceExpansion(pattern) { + const openingBraceIndex = pattern.indexOf("{"); + if (openingBraceIndex === -1) { + return false; + } + const closingBraceIndex = pattern.indexOf("}", openingBraceIndex + 1); + if (closingBraceIndex === -1) { + return false; + } + const braceContent = pattern.slice(openingBraceIndex, closingBraceIndex); + return BRACE_EXPANSION_SEPARATORS_RE.test(braceContent); + } + function convertToPositivePattern(pattern) { + return isNegativePattern(pattern) ? pattern.slice(1) : pattern; + } + exports.convertToPositivePattern = convertToPositivePattern; + function convertToNegativePattern(pattern) { + return "!" + pattern; + } + exports.convertToNegativePattern = convertToNegativePattern; + function isNegativePattern(pattern) { + return pattern.startsWith("!") && pattern[1] !== "("; + } + exports.isNegativePattern = isNegativePattern; + function isPositivePattern(pattern) { + return !isNegativePattern(pattern); + } + exports.isPositivePattern = isPositivePattern; + function getNegativePatterns(patterns) { + return patterns.filter(isNegativePattern); + } + exports.getNegativePatterns = getNegativePatterns; + function getPositivePatterns(patterns) { + return patterns.filter(isPositivePattern); + } + exports.getPositivePatterns = getPositivePatterns; + function getPatternsInsideCurrentDirectory(patterns) { + return patterns.filter((pattern) => !isPatternRelatedToParentDirectory(pattern)); + } + exports.getPatternsInsideCurrentDirectory = getPatternsInsideCurrentDirectory; + function getPatternsOutsideCurrentDirectory(patterns) { + return patterns.filter(isPatternRelatedToParentDirectory); + } + exports.getPatternsOutsideCurrentDirectory = getPatternsOutsideCurrentDirectory; + function isPatternRelatedToParentDirectory(pattern) { + return pattern.startsWith("..") || pattern.startsWith("./.."); + } + exports.isPatternRelatedToParentDirectory = isPatternRelatedToParentDirectory; + function getBaseDirectory(pattern) { + return globParent(pattern, { flipBackslashes: false }); + } + exports.getBaseDirectory = getBaseDirectory; + function hasGlobStar(pattern) { + return pattern.includes(GLOBSTAR); + } + exports.hasGlobStar = hasGlobStar; + function endsWithSlashGlobStar(pattern) { + return pattern.endsWith("/" + GLOBSTAR); + } + exports.endsWithSlashGlobStar = endsWithSlashGlobStar; + function isAffectDepthOfReadingPattern(pattern) { + const basename = path9.basename(pattern); + return endsWithSlashGlobStar(pattern) || isStaticPattern(basename); + } + exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern; + function expandPatternsWithBraceExpansion(patterns) { + return patterns.reduce((collection, pattern) => { + return collection.concat(expandBraceExpansion(pattern)); + }, []); + } + exports.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion; + function expandBraceExpansion(pattern) { + const patterns = micromatch2.braces(pattern, { expand: true, nodupes: true }); + patterns.sort((a, b) => a.length - b.length); + return patterns.filter((pattern2) => pattern2 !== ""); + } + exports.expandBraceExpansion = expandBraceExpansion; + function getPatternParts(pattern, options8) { + let { parts } = micromatch2.scan(pattern, Object.assign(Object.assign({}, options8), { parts: true })); + if (parts.length === 0) { + parts = [pattern]; + } + if (parts[0].startsWith("/")) { + parts[0] = parts[0].slice(1); + parts.unshift(""); + } + return parts; + } + exports.getPatternParts = getPatternParts; + function makeRe(pattern, options8) { + return micromatch2.makeRe(pattern, options8); + } + exports.makeRe = makeRe; + function convertPatternsToRe(patterns, options8) { + return patterns.map((pattern) => makeRe(pattern, options8)); + } + exports.convertPatternsToRe = convertPatternsToRe; + function matchAny(entry, patternsRe) { + return patternsRe.some((patternRe) => patternRe.test(entry)); + } + exports.matchAny = matchAny; + function removeDuplicateSlashes(pattern) { + return pattern.replace(DOUBLE_SLASH_RE, "/"); + } + exports.removeDuplicateSlashes = removeDuplicateSlashes; + } +}); + +// node_modules/merge2/index.js +var require_merge2 = __commonJS({ + "node_modules/merge2/index.js"(exports, module) { + "use strict"; + var Stream = __require("stream"); + var PassThrough = Stream.PassThrough; + var slice = Array.prototype.slice; + module.exports = merge2; + function merge2() { + const streamsQueue = []; + const args = slice.call(arguments); + let merging = false; + let options8 = args[args.length - 1]; + if (options8 && !Array.isArray(options8) && options8.pipe == null) { + args.pop(); + } else { + options8 = {}; } - const isState = isObject2(glob) && glob.tokens && glob.input; - if (glob === "" || typeof glob !== "string" && !isState) { - throw new TypeError("Expected pattern to be a non-empty string"); + const doEnd = options8.end !== false; + const doPipeError = options8.pipeError === true; + if (options8.objectMode == null) { + options8.objectMode = true; } - const opts = options8 || {}; - const posix = utils.isWindows(options8); - const regex = isState ? picomatch.compileRe(glob, options8) : picomatch.makeRe(glob, options8, false, true); - const state = regex.state; - delete regex.state; - let isIgnored2 = () => false; - if (opts.ignore) { - const ignoreOpts = { ...options8, ignore: null, onMatch: null, onResult: null }; - isIgnored2 = picomatch(opts.ignore, ignoreOpts, returnState); + if (options8.highWaterMark == null) { + options8.highWaterMark = 64 * 1024; } - const matcher = (input, returnObject = false) => { - const { isMatch, match, output } = picomatch.test(input, regex, options8, { glob, posix }); - const result = { glob, state, regex, posix, input, output, match, isMatch }; - if (typeof opts.onResult === "function") { - opts.onResult(result); + const mergedStream = PassThrough(options8); + function addStream() { + for (let i = 0, len = arguments.length; i < len; i++) { + streamsQueue.push(pauseStreams(arguments[i], options8)); } - if (isMatch === false) { - result.isMatch = false; - return returnObject ? result : false; + mergeStream(); + return this; + } + function mergeStream() { + if (merging) { + return; } - if (isIgnored2(input)) { - if (typeof opts.onIgnore === "function") { - opts.onIgnore(result); + merging = true; + let streams = streamsQueue.shift(); + if (!streams) { + process.nextTick(endStream); + return; + } + if (!Array.isArray(streams)) { + streams = [streams]; + } + let pipesCount = streams.length + 1; + function next() { + if (--pipesCount > 0) { + return; } - result.isMatch = false; - return returnObject ? result : false; + merging = false; + mergeStream(); } - if (typeof opts.onMatch === "function") { - opts.onMatch(result); + function pipe(stream) { + function onend() { + stream.removeListener("merge2UnpipeEnd", onend); + stream.removeListener("end", onend); + if (doPipeError) { + stream.removeListener("error", onerror); + } + next(); + } + function onerror(err) { + mergedStream.emit("error", err); + } + if (stream._readableState.endEmitted) { + return next(); + } + stream.on("merge2UnpipeEnd", onend); + stream.on("end", onend); + if (doPipeError) { + stream.on("error", onerror); + } + stream.pipe(mergedStream, { end: false }); + stream.resume(); } - return returnObject ? result : true; - }; - if (returnState) { - matcher.state = state; - } - return matcher; - }; - picomatch.test = (input, regex, options8, { glob, posix } = {}) => { - if (typeof input !== "string") { - throw new TypeError("Expected input to be a string"); - } - if (input === "") { - return { isMatch: false, output: "" }; - } - const opts = options8 || {}; - const format3 = opts.format || (posix ? utils.toPosixSlashes : null); - let match = input === glob; - let output = match && format3 ? format3(input) : input; - if (match === false) { - output = format3 ? format3(input) : input; - match = output === glob; - } - if (match === false || opts.capture === true) { - if (opts.matchBase === true || opts.basename === true) { - match = picomatch.matchBase(input, regex, options8, posix); - } else { - match = regex.exec(output); + for (let i = 0; i < streams.length; i++) { + pipe(streams[i]); } + next(); } - return { isMatch: Boolean(match), match, output }; - }; - picomatch.matchBase = (input, glob, options8, posix = utils.isWindows(options8)) => { - const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options8); - return regex.test(path9.basename(input)); - }; - picomatch.isMatch = (str, patterns, options8) => picomatch(patterns, options8)(str); - picomatch.parse = (pattern, options8) => { - if (Array.isArray(pattern)) - return pattern.map((p) => picomatch.parse(p, options8)); - return parse3(pattern, { ...options8, fastpaths: false }); - }; - picomatch.scan = (input, options8) => scan(input, options8); - picomatch.compileRe = (state, options8, returnOutput = false, returnState = false) => { - if (returnOutput === true) { - return state.output; - } - const opts = options8 || {}; - const prepend = opts.contains ? "" : "^"; - const append = opts.contains ? "" : "$"; - let source = `${prepend}(?:${state.output})${append}`; - if (state && state.negated === true) { - source = `^(?!${source}).*$`; - } - const regex = picomatch.toRegex(source, options8); - if (returnState === true) { - regex.state = state; - } - return regex; - }; - picomatch.makeRe = (input, options8 = {}, returnOutput = false, returnState = false) => { - if (!input || typeof input !== "string") { - throw new TypeError("Expected a non-empty string"); - } - let parsed = { negated: false, fastpaths: true }; - if (options8.fastpaths !== false && (input[0] === "." || input[0] === "*")) { - parsed.output = parse3.fastpaths(input, options8); + function endStream() { + merging = false; + mergedStream.emit("queueDrain"); + if (doEnd) { + mergedStream.end(); + } } - if (!parsed.output) { - parsed = parse3(input, options8); + mergedStream.setMaxListeners(0); + mergedStream.add = addStream; + mergedStream.on("unpipe", function(stream) { + stream.emit("merge2UnpipeEnd"); + }); + if (args.length) { + addStream.apply(null, args); } - return picomatch.compileRe(parsed, options8, returnOutput, returnState); - }; - picomatch.toRegex = (source, options8) => { - try { - const opts = options8 || {}; - return new RegExp(source, opts.flags || (opts.nocase ? "i" : "")); - } catch (err) { - if (options8 && options8.debug === true) - throw err; - return /$^/; + return mergedStream; + } + function pauseStreams(streams, options8) { + if (!Array.isArray(streams)) { + if (!streams._readableState && streams.pipe) { + streams = streams.pipe(PassThrough(options8)); + } + if (!streams._readableState || !streams.pause || !streams.pipe) { + throw new Error("Only readable stream can be merged."); + } + streams.pause(); + } else { + for (let i = 0, len = streams.length; i < len; i++) { + streams[i] = pauseStreams(streams[i], options8); + } } - }; - picomatch.constants = constants; - module.exports = picomatch; + return streams; + } } }); -// node_modules/picomatch/index.js -var require_picomatch2 = __commonJS({ - "node_modules/picomatch/index.js"(exports, module) { +// node_modules/fast-glob/out/utils/stream.js +var require_stream = __commonJS({ + "node_modules/fast-glob/out/utils/stream.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.merge = void 0; + var merge2 = require_merge2(); + function merge(streams) { + const mergedStream = merge2(streams); + streams.forEach((stream) => { + stream.once("error", (error) => mergedStream.emit("error", error)); + }); + mergedStream.once("close", () => propagateCloseEventToSources(streams)); + mergedStream.once("end", () => propagateCloseEventToSources(streams)); + return mergedStream; + } + exports.merge = merge; + function propagateCloseEventToSources(streams) { + streams.forEach((stream) => stream.emit("close")); + } + } +}); + +// node_modules/fast-glob/out/utils/string.js +var require_string = __commonJS({ + "node_modules/fast-glob/out/utils/string.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.isEmpty = exports.isString = void 0; + function isString(input) { + return typeof input === "string"; + } + exports.isString = isString; + function isEmpty(input) { + return input === ""; + } + exports.isEmpty = isEmpty; + } +}); + +// node_modules/fast-glob/out/utils/index.js +var require_utils3 = __commonJS({ + "node_modules/fast-glob/out/utils/index.js"(exports) { "use strict"; - module.exports = require_picomatch(); + Object.defineProperty(exports, "__esModule", { value: true }); + exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0; + var array2 = require_array(); + exports.array = array2; + var errno = require_errno(); + exports.errno = errno; + var fs5 = require_fs(); + exports.fs = fs5; + var path9 = require_path(); + exports.path = path9; + var pattern = require_pattern(); + exports.pattern = pattern; + var stream = require_stream(); + exports.stream = stream; + var string = require_string(); + exports.string = string; } }); -// node_modules/micromatch/index.js -var require_micromatch = __commonJS({ - "node_modules/micromatch/index.js"(exports, module) { +// node_modules/fast-glob/out/managers/tasks.js +var require_tasks = __commonJS({ + "node_modules/fast-glob/out/managers/tasks.js"(exports) { "use strict"; - var util = __require("util"); - var braces = require_braces(); - var picomatch = require_picomatch2(); + Object.defineProperty(exports, "__esModule", { value: true }); + exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0; var utils = require_utils3(); - var isEmptyString = (val) => val === "" || val === "./"; - var micromatch2 = (list, patterns, options8) => { - patterns = [].concat(patterns); - list = [].concat(list); - let omit2 = /* @__PURE__ */ new Set(); - let keep = /* @__PURE__ */ new Set(); - let items = /* @__PURE__ */ new Set(); - let negatives = 0; - let onResult = (state) => { - items.add(state.output); - if (options8 && options8.onResult) { - options8.onResult(state); - } - }; - for (let i = 0; i < patterns.length; i++) { - let isMatch = picomatch(String(patterns[i]), { ...options8, onResult }, true); - let negated = isMatch.state.negated || isMatch.state.negatedExtglob; - if (negated) - negatives++; - for (let item of list) { - let matched = isMatch(item, true); - let match = negated ? !matched.isMatch : matched.isMatch; - if (!match) - continue; - if (negated) { - omit2.add(matched.output); - } else { - omit2.delete(matched.output); - keep.add(matched.output); - } - } - } - let result = negatives === patterns.length ? [...items] : [...keep]; - let matches = result.filter((item) => !omit2.has(item)); - if (options8 && matches.length === 0) { - if (options8.failglob === true) { - throw new Error(`No matches found for "${patterns.join(", ")}"`); - } - if (options8.nonull === true || options8.nullglob === true) { - return options8.unescape ? patterns.map((p) => p.replace(/\\/g, "")) : patterns; - } - } - return matches; - }; - micromatch2.match = micromatch2; - micromatch2.matcher = (pattern, options8) => picomatch(pattern, options8); - micromatch2.isMatch = (str, patterns, options8) => picomatch(patterns, options8)(str); - micromatch2.any = micromatch2.isMatch; - micromatch2.not = (list, patterns, options8 = {}) => { - patterns = [].concat(patterns).map(String); - let result = /* @__PURE__ */ new Set(); - let items = []; - let onResult = (state) => { - if (options8.onResult) - options8.onResult(state); - items.push(state.output); - }; - let matches = new Set(micromatch2(list, patterns, { ...options8, onResult })); - for (let item of items) { - if (!matches.has(item)) { - result.add(item); - } + function generate(input, settings) { + const patterns = processPatterns(input, settings); + const ignore = processPatterns(settings.ignore, settings); + const positivePatterns = getPositivePatterns(patterns); + const negativePatterns = getNegativePatternsAsPositive(patterns, ignore); + const staticPatterns = positivePatterns.filter((pattern) => utils.pattern.isStaticPattern(pattern, settings)); + const dynamicPatterns = positivePatterns.filter((pattern) => utils.pattern.isDynamicPattern(pattern, settings)); + const staticTasks = convertPatternsToTasks( + staticPatterns, + negativePatterns, + /* dynamic */ + false + ); + const dynamicTasks = convertPatternsToTasks( + dynamicPatterns, + negativePatterns, + /* dynamic */ + true + ); + return staticTasks.concat(dynamicTasks); + } + exports.generate = generate; + function processPatterns(input, settings) { + let patterns = input; + if (settings.braceExpansion) { + patterns = utils.pattern.expandPatternsWithBraceExpansion(patterns); } - return [...result]; - }; - micromatch2.contains = (str, pattern, options8) => { - if (typeof str !== "string") { - throw new TypeError(`Expected a string: "${util.inspect(str)}"`); + if (settings.baseNameMatch) { + patterns = patterns.map((pattern) => pattern.includes("/") ? pattern : `**/${pattern}`); } - if (Array.isArray(pattern)) { - return pattern.some((p) => micromatch2.contains(str, p, options8)); + return patterns.map((pattern) => utils.pattern.removeDuplicateSlashes(pattern)); + } + function convertPatternsToTasks(positive, negative, dynamic) { + const tasks = []; + const patternsOutsideCurrentDirectory = utils.pattern.getPatternsOutsideCurrentDirectory(positive); + const patternsInsideCurrentDirectory = utils.pattern.getPatternsInsideCurrentDirectory(positive); + const outsideCurrentDirectoryGroup = groupPatternsByBaseDirectory(patternsOutsideCurrentDirectory); + const insideCurrentDirectoryGroup = groupPatternsByBaseDirectory(patternsInsideCurrentDirectory); + tasks.push(...convertPatternGroupsToTasks(outsideCurrentDirectoryGroup, negative, dynamic)); + if ("." in insideCurrentDirectoryGroup) { + tasks.push(convertPatternGroupToTask(".", patternsInsideCurrentDirectory, negative, dynamic)); + } else { + tasks.push(...convertPatternGroupsToTasks(insideCurrentDirectoryGroup, negative, dynamic)); } - if (typeof pattern === "string") { - if (isEmptyString(str) || isEmptyString(pattern)) { - return false; + return tasks; + } + exports.convertPatternsToTasks = convertPatternsToTasks; + function getPositivePatterns(patterns) { + return utils.pattern.getPositivePatterns(patterns); + } + exports.getPositivePatterns = getPositivePatterns; + function getNegativePatternsAsPositive(patterns, ignore) { + const negative = utils.pattern.getNegativePatterns(patterns).concat(ignore); + const positive = negative.map(utils.pattern.convertToPositivePattern); + return positive; + } + exports.getNegativePatternsAsPositive = getNegativePatternsAsPositive; + function groupPatternsByBaseDirectory(patterns) { + const group = {}; + return patterns.reduce((collection, pattern) => { + const base = utils.pattern.getBaseDirectory(pattern); + if (base in collection) { + collection[base].push(pattern); + } else { + collection[base] = [pattern]; } - if (str.includes(pattern) || str.startsWith("./") && str.slice(2).includes(pattern)) { - return true; + return collection; + }, group); + } + exports.groupPatternsByBaseDirectory = groupPatternsByBaseDirectory; + function convertPatternGroupsToTasks(positive, negative, dynamic) { + return Object.keys(positive).map((base) => { + return convertPatternGroupToTask(base, positive[base], negative, dynamic); + }); + } + exports.convertPatternGroupsToTasks = convertPatternGroupsToTasks; + function convertPatternGroupToTask(base, positive, negative, dynamic) { + return { + dynamic, + positive, + negative, + base, + patterns: [].concat(positive, negative.map(utils.pattern.convertToNegativePattern)) + }; + } + exports.convertPatternGroupToTask = convertPatternGroupToTask; + } +}); + +// node_modules/@nodelib/fs.stat/out/providers/async.js +var require_async = __commonJS({ + "node_modules/@nodelib/fs.stat/out/providers/async.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.read = void 0; + function read2(path9, settings, callback) { + settings.fs.lstat(path9, (lstatError, lstat) => { + if (lstatError !== null) { + callFailureCallback(callback, lstatError); + return; } - } - return micromatch2.isMatch(str, pattern, { ...options8, contains: true }); - }; - micromatch2.matchKeys = (obj, patterns, options8) => { - if (!utils.isObject(obj)) { - throw new TypeError("Expected the first argument to be an object"); - } - let keys = micromatch2(Object.keys(obj), patterns, options8); - let res = {}; - for (let key of keys) - res[key] = obj[key]; - return res; - }; - micromatch2.some = (list, patterns, options8) => { - let items = [].concat(list); - for (let pattern of [].concat(patterns)) { - let isMatch = picomatch(String(pattern), options8); - if (items.some((item) => isMatch(item))) { - return true; + if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) { + callSuccessCallback(callback, lstat); + return; } + settings.fs.stat(path9, (statError, stat) => { + if (statError !== null) { + if (settings.throwErrorOnBrokenSymbolicLink) { + callFailureCallback(callback, statError); + return; + } + callSuccessCallback(callback, lstat); + return; + } + if (settings.markSymbolicLink) { + stat.isSymbolicLink = () => true; + } + callSuccessCallback(callback, stat); + }); + }); + } + exports.read = read2; + function callFailureCallback(callback, error) { + callback(error); + } + function callSuccessCallback(callback, result) { + callback(null, result); + } + } +}); + +// node_modules/@nodelib/fs.stat/out/providers/sync.js +var require_sync = __commonJS({ + "node_modules/@nodelib/fs.stat/out/providers/sync.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.read = void 0; + function read2(path9, settings) { + const lstat = settings.fs.lstatSync(path9); + if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) { + return lstat; } - return false; - }; - micromatch2.every = (list, patterns, options8) => { - let items = [].concat(list); - for (let pattern of [].concat(patterns)) { - let isMatch = picomatch(String(pattern), options8); - if (!items.every((item) => isMatch(item))) { - return false; + try { + const stat = settings.fs.statSync(path9); + if (settings.markSymbolicLink) { + stat.isSymbolicLink = () => true; } + return stat; + } catch (error) { + if (!settings.throwErrorOnBrokenSymbolicLink) { + return lstat; + } + throw error; } - return true; - }; - micromatch2.all = (str, patterns, options8) => { - if (typeof str !== "string") { - throw new TypeError(`Expected a string: "${util.inspect(str)}"`); - } - return [].concat(patterns).every((p) => picomatch(p, options8)(str)); + } + exports.read = read2; + } +}); + +// node_modules/@nodelib/fs.stat/out/adapters/fs.js +var require_fs2 = __commonJS({ + "node_modules/@nodelib/fs.stat/out/adapters/fs.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0; + var fs5 = __require("fs"); + exports.FILE_SYSTEM_ADAPTER = { + lstat: fs5.lstat, + stat: fs5.stat, + lstatSync: fs5.lstatSync, + statSync: fs5.statSync }; - micromatch2.capture = (glob, input, options8) => { - let posix = utils.isWindows(options8); - let regex = picomatch.makeRe(String(glob), { ...options8, capture: true }); - let match = regex.exec(posix ? utils.toPosixSlashes(input) : input); - if (match) { - return match.slice(1).map((v) => v === void 0 ? "" : v); + function createFileSystemAdapter(fsMethods) { + if (fsMethods === void 0) { + return exports.FILE_SYSTEM_ADAPTER; } - }; - micromatch2.makeRe = (...args) => picomatch.makeRe(...args); - micromatch2.scan = (...args) => picomatch.scan(...args); - micromatch2.parse = (patterns, options8) => { - let res = []; - for (let pattern of [].concat(patterns || [])) { - for (let str of braces(String(pattern), options8)) { - res.push(picomatch.parse(str, options8)); - } + return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods); + } + exports.createFileSystemAdapter = createFileSystemAdapter; + } +}); + +// node_modules/@nodelib/fs.stat/out/settings.js +var require_settings = __commonJS({ + "node_modules/@nodelib/fs.stat/out/settings.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var fs5 = require_fs2(); + var Settings = class { + constructor(_options = {}) { + this._options = _options; + this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true); + this.fs = fs5.createFileSystemAdapter(this._options.fs); + this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, false); + this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true); } - return res; - }; - micromatch2.braces = (pattern, options8) => { - if (typeof pattern !== "string") - throw new TypeError("Expected a string"); - if (options8 && options8.nobrace === true || !/\{.*\}/.test(pattern)) { - return [pattern]; + _getValue(option, value) { + return option !== null && option !== void 0 ? option : value; } - return braces(pattern, options8); - }; - micromatch2.braceExpand = (pattern, options8) => { - if (typeof pattern !== "string") - throw new TypeError("Expected a string"); - return micromatch2.braces(pattern, { ...options8, expand: true }); }; - module.exports = micromatch2; + exports.default = Settings; } }); -// node_modules/fast-glob/out/utils/pattern.js -var require_pattern = __commonJS({ - "node_modules/fast-glob/out/utils/pattern.js"(exports) { +// node_modules/@nodelib/fs.stat/out/index.js +var require_out = __commonJS({ + "node_modules/@nodelib/fs.stat/out/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0; - var path9 = __require("path"); - var globParent = require_glob_parent(); - var micromatch2 = require_micromatch(); - var GLOBSTAR = "**"; - var ESCAPE_SYMBOL = "\\"; - var COMMON_GLOB_SYMBOLS_RE = /[*?]|^!/; - var REGEX_CHARACTER_CLASS_SYMBOLS_RE = /\[[^[]*]/; - var REGEX_GROUP_SYMBOLS_RE = /(?:^|[^!*+?@])\([^(]*\|[^|]*\)/; - var GLOB_EXTENSION_SYMBOLS_RE = /[!*+?@]\([^(]*\)/; - var BRACE_EXPANSION_SEPARATORS_RE = /,|\.\./; - function isStaticPattern(pattern, options8 = {}) { - return !isDynamicPattern(pattern, options8); + exports.statSync = exports.stat = exports.Settings = void 0; + var async = require_async(); + var sync = require_sync(); + var settings_1 = require_settings(); + exports.Settings = settings_1.default; + function stat(path9, optionsOrSettingsOrCallback, callback) { + if (typeof optionsOrSettingsOrCallback === "function") { + async.read(path9, getSettings(), optionsOrSettingsOrCallback); + return; + } + async.read(path9, getSettings(optionsOrSettingsOrCallback), callback); } - exports.isStaticPattern = isStaticPattern; - function isDynamicPattern(pattern, options8 = {}) { - if (pattern === "") { - return false; + exports.stat = stat; + function statSync2(path9, optionsOrSettings) { + const settings = getSettings(optionsOrSettings); + return sync.read(path9, settings); + } + exports.statSync = statSync2; + function getSettings(settingsOrOptions = {}) { + if (settingsOrOptions instanceof settings_1.default) { + return settingsOrOptions; } - if (options8.caseSensitiveMatch === false || pattern.includes(ESCAPE_SYMBOL)) { - return true; + return new settings_1.default(settingsOrOptions); + } + } +}); + +// node_modules/queue-microtask/index.js +var require_queue_microtask = __commonJS({ + "node_modules/queue-microtask/index.js"(exports, module) { + var promise; + module.exports = typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "undefined" ? window : global) : (cb) => (promise || (promise = Promise.resolve())).then(cb).catch((err) => setTimeout(() => { + throw err; + }, 0)); + } +}); + +// node_modules/run-parallel/index.js +var require_run_parallel = __commonJS({ + "node_modules/run-parallel/index.js"(exports, module) { + module.exports = runParallel; + var queueMicrotask2 = require_queue_microtask(); + function runParallel(tasks, cb) { + let results, pending, keys; + let isSync = true; + if (Array.isArray(tasks)) { + results = []; + pending = tasks.length; + } else { + keys = Object.keys(tasks); + results = {}; + pending = keys.length; } - if (COMMON_GLOB_SYMBOLS_RE.test(pattern) || REGEX_CHARACTER_CLASS_SYMBOLS_RE.test(pattern) || REGEX_GROUP_SYMBOLS_RE.test(pattern)) { - return true; + function done(err) { + function end() { + if (cb) + cb(err, results); + cb = null; + } + if (isSync) + queueMicrotask2(end); + else + end(); } - if (options8.extglob !== false && GLOB_EXTENSION_SYMBOLS_RE.test(pattern)) { - return true; + function each(i, err, result) { + results[i] = result; + if (--pending === 0 || err) { + done(err); + } } - if (options8.braceExpansion !== false && hasBraceExpansion(pattern)) { - return true; + if (!pending) { + done(null); + } else if (keys) { + keys.forEach(function(key) { + tasks[key](function(err, result) { + each(key, err, result); + }); + }); + } else { + tasks.forEach(function(task, i) { + task(function(err, result) { + each(i, err, result); + }); + }); + } + isSync = false; + } + } +}); + +// node_modules/@nodelib/fs.scandir/out/constants.js +var require_constants3 = __commonJS({ + "node_modules/@nodelib/fs.scandir/out/constants.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0; + var NODE_PROCESS_VERSION_PARTS = process.versions.node.split("."); + if (NODE_PROCESS_VERSION_PARTS[0] === void 0 || NODE_PROCESS_VERSION_PARTS[1] === void 0) { + throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`); + } + var MAJOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[0], 10); + var MINOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[1], 10); + var SUPPORTED_MAJOR_VERSION = 10; + var SUPPORTED_MINOR_VERSION = 10; + var IS_MATCHED_BY_MAJOR = MAJOR_VERSION > SUPPORTED_MAJOR_VERSION; + var IS_MATCHED_BY_MAJOR_AND_MINOR = MAJOR_VERSION === SUPPORTED_MAJOR_VERSION && MINOR_VERSION >= SUPPORTED_MINOR_VERSION; + exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = IS_MATCHED_BY_MAJOR || IS_MATCHED_BY_MAJOR_AND_MINOR; + } +}); + +// node_modules/@nodelib/fs.scandir/out/utils/fs.js +var require_fs3 = __commonJS({ + "node_modules/@nodelib/fs.scandir/out/utils/fs.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.createDirentFromStats = void 0; + var DirentFromStats = class { + constructor(name, stats) { + this.name = name; + this.isBlockDevice = stats.isBlockDevice.bind(stats); + this.isCharacterDevice = stats.isCharacterDevice.bind(stats); + this.isDirectory = stats.isDirectory.bind(stats); + this.isFIFO = stats.isFIFO.bind(stats); + this.isFile = stats.isFile.bind(stats); + this.isSocket = stats.isSocket.bind(stats); + this.isSymbolicLink = stats.isSymbolicLink.bind(stats); + } + }; + function createDirentFromStats(name, stats) { + return new DirentFromStats(name, stats); + } + exports.createDirentFromStats = createDirentFromStats; + } +}); + +// node_modules/@nodelib/fs.scandir/out/utils/index.js +var require_utils4 = __commonJS({ + "node_modules/@nodelib/fs.scandir/out/utils/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.fs = void 0; + var fs5 = require_fs3(); + exports.fs = fs5; + } +}); + +// node_modules/@nodelib/fs.scandir/out/providers/common.js +var require_common = __commonJS({ + "node_modules/@nodelib/fs.scandir/out/providers/common.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.joinPathSegments = void 0; + function joinPathSegments(a, b, separator) { + if (a.endsWith(separator)) { + return a + b; } - return false; + return a + separator + b; } - exports.isDynamicPattern = isDynamicPattern; - function hasBraceExpansion(pattern) { - const openingBraceIndex = pattern.indexOf("{"); - if (openingBraceIndex === -1) { - return false; - } - const closingBraceIndex = pattern.indexOf("}", openingBraceIndex + 1); - if (closingBraceIndex === -1) { - return false; + exports.joinPathSegments = joinPathSegments; + } +}); + +// node_modules/@nodelib/fs.scandir/out/providers/async.js +var require_async2 = __commonJS({ + "node_modules/@nodelib/fs.scandir/out/providers/async.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.readdir = exports.readdirWithFileTypes = exports.read = void 0; + var fsStat = require_out(); + var rpl = require_run_parallel(); + var constants_1 = require_constants3(); + var utils = require_utils4(); + var common = require_common(); + function read2(directory, settings, callback) { + if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) { + readdirWithFileTypes(directory, settings, callback); + return; } - const braceContent = pattern.slice(openingBraceIndex, closingBraceIndex); - return BRACE_EXPANSION_SEPARATORS_RE.test(braceContent); - } - function convertToPositivePattern(pattern) { - return isNegativePattern(pattern) ? pattern.slice(1) : pattern; - } - exports.convertToPositivePattern = convertToPositivePattern; - function convertToNegativePattern(pattern) { - return "!" + pattern; - } - exports.convertToNegativePattern = convertToNegativePattern; - function isNegativePattern(pattern) { - return pattern.startsWith("!") && pattern[1] !== "("; - } - exports.isNegativePattern = isNegativePattern; - function isPositivePattern(pattern) { - return !isNegativePattern(pattern); - } - exports.isPositivePattern = isPositivePattern; - function getNegativePatterns(patterns) { - return patterns.filter(isNegativePattern); - } - exports.getNegativePatterns = getNegativePatterns; - function getPositivePatterns(patterns) { - return patterns.filter(isPositivePattern); - } - exports.getPositivePatterns = getPositivePatterns; - function getPatternsInsideCurrentDirectory(patterns) { - return patterns.filter((pattern) => !isPatternRelatedToParentDirectory(pattern)); + readdir(directory, settings, callback); } - exports.getPatternsInsideCurrentDirectory = getPatternsInsideCurrentDirectory; - function getPatternsOutsideCurrentDirectory(patterns) { - return patterns.filter(isPatternRelatedToParentDirectory); + exports.read = read2; + function readdirWithFileTypes(directory, settings, callback) { + settings.fs.readdir(directory, { withFileTypes: true }, (readdirError, dirents) => { + if (readdirError !== null) { + callFailureCallback(callback, readdirError); + return; + } + const entries = dirents.map((dirent) => ({ + dirent, + name: dirent.name, + path: common.joinPathSegments(directory, dirent.name, settings.pathSegmentSeparator) + })); + if (!settings.followSymbolicLinks) { + callSuccessCallback(callback, entries); + return; + } + const tasks = entries.map((entry) => makeRplTaskEntry(entry, settings)); + rpl(tasks, (rplError, rplEntries) => { + if (rplError !== null) { + callFailureCallback(callback, rplError); + return; + } + callSuccessCallback(callback, rplEntries); + }); + }); } - exports.getPatternsOutsideCurrentDirectory = getPatternsOutsideCurrentDirectory; - function isPatternRelatedToParentDirectory(pattern) { - return pattern.startsWith("..") || pattern.startsWith("./.."); + exports.readdirWithFileTypes = readdirWithFileTypes; + function makeRplTaskEntry(entry, settings) { + return (done) => { + if (!entry.dirent.isSymbolicLink()) { + done(null, entry); + return; + } + settings.fs.stat(entry.path, (statError, stats) => { + if (statError !== null) { + if (settings.throwErrorOnBrokenSymbolicLink) { + done(statError); + return; + } + done(null, entry); + return; + } + entry.dirent = utils.fs.createDirentFromStats(entry.name, stats); + done(null, entry); + }); + }; } - exports.isPatternRelatedToParentDirectory = isPatternRelatedToParentDirectory; - function getBaseDirectory(pattern) { - return globParent(pattern, { flipBackslashes: false }); + function readdir(directory, settings, callback) { + settings.fs.readdir(directory, (readdirError, names) => { + if (readdirError !== null) { + callFailureCallback(callback, readdirError); + return; + } + const tasks = names.map((name) => { + const path9 = common.joinPathSegments(directory, name, settings.pathSegmentSeparator); + return (done) => { + fsStat.stat(path9, settings.fsStatSettings, (error, stats) => { + if (error !== null) { + done(error); + return; + } + const entry = { + name, + path: path9, + dirent: utils.fs.createDirentFromStats(name, stats) + }; + if (settings.stats) { + entry.stats = stats; + } + done(null, entry); + }); + }; + }); + rpl(tasks, (rplError, entries) => { + if (rplError !== null) { + callFailureCallback(callback, rplError); + return; + } + callSuccessCallback(callback, entries); + }); + }); } - exports.getBaseDirectory = getBaseDirectory; - function hasGlobStar(pattern) { - return pattern.includes(GLOBSTAR); + exports.readdir = readdir; + function callFailureCallback(callback, error) { + callback(error); } - exports.hasGlobStar = hasGlobStar; - function endsWithSlashGlobStar(pattern) { - return pattern.endsWith("/" + GLOBSTAR); + function callSuccessCallback(callback, result) { + callback(null, result); } - exports.endsWithSlashGlobStar = endsWithSlashGlobStar; - function isAffectDepthOfReadingPattern(pattern) { - const basename = path9.basename(pattern); - return endsWithSlashGlobStar(pattern) || isStaticPattern(basename); + } +}); + +// node_modules/@nodelib/fs.scandir/out/providers/sync.js +var require_sync2 = __commonJS({ + "node_modules/@nodelib/fs.scandir/out/providers/sync.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.readdir = exports.readdirWithFileTypes = exports.read = void 0; + var fsStat = require_out(); + var constants_1 = require_constants3(); + var utils = require_utils4(); + var common = require_common(); + function read2(directory, settings) { + if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) { + return readdirWithFileTypes(directory, settings); + } + return readdir(directory, settings); } - exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern; - function expandPatternsWithBraceExpansion(patterns) { - return patterns.reduce((collection, pattern) => { - return collection.concat(expandBraceExpansion(pattern)); - }, []); + exports.read = read2; + function readdirWithFileTypes(directory, settings) { + const dirents = settings.fs.readdirSync(directory, { withFileTypes: true }); + return dirents.map((dirent) => { + const entry = { + dirent, + name: dirent.name, + path: common.joinPathSegments(directory, dirent.name, settings.pathSegmentSeparator) + }; + if (entry.dirent.isSymbolicLink() && settings.followSymbolicLinks) { + try { + const stats = settings.fs.statSync(entry.path); + entry.dirent = utils.fs.createDirentFromStats(entry.name, stats); + } catch (error) { + if (settings.throwErrorOnBrokenSymbolicLink) { + throw error; + } + } + } + return entry; + }); } - exports.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion; - function expandBraceExpansion(pattern) { - return micromatch2.braces(pattern, { - expand: true, - nodupes: true + exports.readdirWithFileTypes = readdirWithFileTypes; + function readdir(directory, settings) { + const names = settings.fs.readdirSync(directory); + return names.map((name) => { + const entryPath = common.joinPathSegments(directory, name, settings.pathSegmentSeparator); + const stats = fsStat.statSync(entryPath, settings.fsStatSettings); + const entry = { + name, + path: entryPath, + dirent: utils.fs.createDirentFromStats(name, stats) + }; + if (settings.stats) { + entry.stats = stats; + } + return entry; }); } - exports.expandBraceExpansion = expandBraceExpansion; - function getPatternParts(pattern, options8) { - let { parts } = micromatch2.scan(pattern, Object.assign(Object.assign({}, options8), { parts: true })); - if (parts.length === 0) { - parts = [pattern]; + exports.readdir = readdir; + } +}); + +// node_modules/@nodelib/fs.scandir/out/adapters/fs.js +var require_fs4 = __commonJS({ + "node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0; + var fs5 = __require("fs"); + exports.FILE_SYSTEM_ADAPTER = { + lstat: fs5.lstat, + stat: fs5.stat, + lstatSync: fs5.lstatSync, + statSync: fs5.statSync, + readdir: fs5.readdir, + readdirSync: fs5.readdirSync + }; + function createFileSystemAdapter(fsMethods) { + if (fsMethods === void 0) { + return exports.FILE_SYSTEM_ADAPTER; + } + return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods); + } + exports.createFileSystemAdapter = createFileSystemAdapter; + } +}); + +// node_modules/@nodelib/fs.scandir/out/settings.js +var require_settings2 = __commonJS({ + "node_modules/@nodelib/fs.scandir/out/settings.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var path9 = __require("path"); + var fsStat = require_out(); + var fs5 = require_fs4(); + var Settings = class { + constructor(_options = {}) { + this._options = _options; + this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false); + this.fs = fs5.createFileSystemAdapter(this._options.fs); + this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path9.sep); + this.stats = this._getValue(this._options.stats, false); + this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true); + this.fsStatSettings = new fsStat.Settings({ + followSymbolicLink: this.followSymbolicLinks, + fs: this.fs, + throwErrorOnBrokenSymbolicLink: this.throwErrorOnBrokenSymbolicLink + }); } - if (parts[0].startsWith("/")) { - parts[0] = parts[0].slice(1); - parts.unshift(""); + _getValue(option, value) { + return option !== null && option !== void 0 ? option : value; } - return parts; + }; + exports.default = Settings; + } +}); + +// node_modules/@nodelib/fs.scandir/out/index.js +var require_out2 = __commonJS({ + "node_modules/@nodelib/fs.scandir/out/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.Settings = exports.scandirSync = exports.scandir = void 0; + var async = require_async2(); + var sync = require_sync2(); + var settings_1 = require_settings2(); + exports.Settings = settings_1.default; + function scandir(path9, optionsOrSettingsOrCallback, callback) { + if (typeof optionsOrSettingsOrCallback === "function") { + async.read(path9, getSettings(), optionsOrSettingsOrCallback); + return; + } + async.read(path9, getSettings(optionsOrSettingsOrCallback), callback); } - exports.getPatternParts = getPatternParts; - function makeRe(pattern, options8) { - return micromatch2.makeRe(pattern, options8); + exports.scandir = scandir; + function scandirSync(path9, optionsOrSettings) { + const settings = getSettings(optionsOrSettings); + return sync.read(path9, settings); } - exports.makeRe = makeRe; - function convertPatternsToRe(patterns, options8) { - return patterns.map((pattern) => makeRe(pattern, options8)); + exports.scandirSync = scandirSync; + function getSettings(settingsOrOptions = {}) { + if (settingsOrOptions instanceof settings_1.default) { + return settingsOrOptions; + } + return new settings_1.default(settingsOrOptions); } - exports.convertPatternsToRe = convertPatternsToRe; - function matchAny(entry, patternsRe) { - return patternsRe.some((patternRe) => patternRe.test(entry)); + } +}); + +// node_modules/reusify/reusify.js +var require_reusify = __commonJS({ + "node_modules/reusify/reusify.js"(exports, module) { + "use strict"; + function reusify(Constructor) { + var head = new Constructor(); + var tail = head; + function get() { + var current = head; + if (current.next) { + head = current.next; + } else { + head = new Constructor(); + tail = head; + } + current.next = null; + return current; + } + function release(obj) { + tail.next = obj; + tail = obj; + } + return { + get, + release + }; } - exports.matchAny = matchAny; + module.exports = reusify; } }); -// node_modules/merge2/index.js -var require_merge2 = __commonJS({ - "node_modules/merge2/index.js"(exports, module) { +// node_modules/fastq/queue.js +var require_queue = __commonJS({ + "node_modules/fastq/queue.js"(exports, module) { "use strict"; - var Stream = __require("stream"); - var PassThrough = Stream.PassThrough; - var slice = Array.prototype.slice; - module.exports = merge2; - function merge2() { - const streamsQueue = []; - const args = slice.call(arguments); - let merging = false; - let options8 = args[args.length - 1]; - if (options8 && !Array.isArray(options8) && options8.pipe == null) { - args.pop(); - } else { - options8 = {}; + var reusify = require_reusify(); + function fastqueue(context, worker, concurrency) { + if (typeof context === "function") { + concurrency = worker; + worker = context; + context = null; } - const doEnd = options8.end !== false; - const doPipeError = options8.pipeError === true; - if (options8.objectMode == null) { - options8.objectMode = true; + if (concurrency < 1) { + throw new Error("fastqueue concurrency must be greater than 1"); } - if (options8.highWaterMark == null) { - options8.highWaterMark = 64 * 1024; + var cache = reusify(Task); + var queueHead = null; + var queueTail = null; + var _running = 0; + var errorHandler = null; + var self = { + push, + drain: noop2, + saturated: noop2, + pause, + paused: false, + concurrency, + running, + resume, + idle, + length, + getQueue, + unshift, + empty: noop2, + kill, + killAndDrain, + error + }; + return self; + function running() { + return _running; } - const mergedStream = PassThrough(options8); - function addStream() { - for (let i = 0, len = arguments.length; i < len; i++) { - streamsQueue.push(pauseStreams(arguments[i], options8)); + function pause() { + self.paused = true; + } + function length() { + var current = queueHead; + var counter = 0; + while (current) { + current = current.next; + counter++; } - mergeStream(); - return this; + return counter; } - function mergeStream() { - if (merging) { - return; + function getQueue() { + var current = queueHead; + var tasks = []; + while (current) { + tasks.push(current.value); + current = current.next; } - merging = true; - let streams = streamsQueue.shift(); - if (!streams) { - process.nextTick(endStream); + return tasks; + } + function resume() { + if (!self.paused) return; + self.paused = false; + for (var i = 0; i < self.concurrency; i++) { + _running++; + release(); } - if (!Array.isArray(streams)) { - streams = [streams]; + } + function idle() { + return _running === 0 && self.length() === 0; + } + function push(value, done) { + var current = cache.get(); + current.context = context; + current.release = release; + current.value = value; + current.callback = done || noop2; + current.errorHandler = errorHandler; + if (_running === self.concurrency || self.paused) { + if (queueTail) { + queueTail.next = current; + queueTail = current; + } else { + queueHead = current; + queueTail = current; + self.saturated(); + } + } else { + _running++; + worker.call(context, current.value, current.worked); } - let pipesCount = streams.length + 1; - function next() { - if (--pipesCount > 0) { - return; + } + function unshift(value, done) { + var current = cache.get(); + current.context = context; + current.release = release; + current.value = value; + current.callback = done || noop2; + if (_running === self.concurrency || self.paused) { + if (queueHead) { + current.next = queueHead; + queueHead = current; + } else { + queueHead = current; + queueTail = current; + self.saturated(); } - merging = false; - mergeStream(); + } else { + _running++; + worker.call(context, current.value, current.worked); + } + } + function release(holder) { + if (holder) { + cache.release(holder); } - function pipe(stream) { - function onend() { - stream.removeListener("merge2UnpipeEnd", onend); - stream.removeListener("end", onend); - if (doPipeError) { - stream.removeListener("error", onerror); + var next = queueHead; + if (next) { + if (!self.paused) { + if (queueTail === queueHead) { + queueTail = null; } - next(); - } - function onerror(err) { - mergedStream.emit("error", err); - } - if (stream._readableState.endEmitted) { - return next(); - } - stream.on("merge2UnpipeEnd", onend); - stream.on("end", onend); - if (doPipeError) { - stream.on("error", onerror); + queueHead = next.next; + next.next = null; + worker.call(context, next.value, next.worked); + if (queueTail === null) { + self.empty(); + } + } else { + _running--; } - stream.pipe(mergedStream, { end: false }); - stream.resume(); - } - for (let i = 0; i < streams.length; i++) { - pipe(streams[i]); + } else if (--_running === 0) { + self.drain(); } - next(); } - function endStream() { - merging = false; - mergedStream.emit("queueDrain"); - if (doEnd) { - mergedStream.end(); - } + function kill() { + queueHead = null; + queueTail = null; + self.drain = noop2; } - mergedStream.setMaxListeners(0); - mergedStream.add = addStream; - mergedStream.on("unpipe", function(stream) { - stream.emit("merge2UnpipeEnd"); - }); - if (args.length) { - addStream.apply(null, args); + function killAndDrain() { + queueHead = null; + queueTail = null; + self.drain(); + self.drain = noop2; } - return mergedStream; - } - function pauseStreams(streams, options8) { - if (!Array.isArray(streams)) { - if (!streams._readableState && streams.pipe) { - streams = streams.pipe(PassThrough(options8)); - } - if (!streams._readableState || !streams.pause || !streams.pipe) { - throw new Error("Only readable stream can be merged."); - } - streams.pause(); - } else { - for (let i = 0, len = streams.length; i < len; i++) { - streams[i] = pauseStreams(streams[i], options8); - } + function error(handler) { + errorHandler = handler; } - return streams; - } - } -}); - -// node_modules/fast-glob/out/utils/stream.js -var require_stream = __commonJS({ - "node_modules/fast-glob/out/utils/stream.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.merge = void 0; - var merge2 = require_merge2(); - function merge(streams) { - const mergedStream = merge2(streams); - streams.forEach((stream) => { - stream.once("error", (error) => mergedStream.emit("error", error)); - }); - mergedStream.once("close", () => propagateCloseEventToSources(streams)); - mergedStream.once("end", () => propagateCloseEventToSources(streams)); - return mergedStream; - } - exports.merge = merge; - function propagateCloseEventToSources(streams) { - streams.forEach((stream) => stream.emit("close")); - } - } -}); - -// node_modules/fast-glob/out/utils/string.js -var require_string2 = __commonJS({ - "node_modules/fast-glob/out/utils/string.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.isEmpty = exports.isString = void 0; - function isString(input) { - return typeof input === "string"; } - exports.isString = isString; - function isEmpty(input) { - return input === ""; + function noop2() { } - exports.isEmpty = isEmpty; - } -}); - -// node_modules/fast-glob/out/utils/index.js -var require_utils4 = __commonJS({ - "node_modules/fast-glob/out/utils/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0; - var array = require_array2(); - exports.array = array; - var errno = require_errno(); - exports.errno = errno; - var fs5 = require_fs(); - exports.fs = fs5; - var path9 = require_path(); - exports.path = path9; - var pattern = require_pattern(); - exports.pattern = pattern; - var stream = require_stream(); - exports.stream = stream; - var string = require_string2(); - exports.string = string; - } -}); - -// node_modules/fast-glob/out/managers/tasks.js -var require_tasks = __commonJS({ - "node_modules/fast-glob/out/managers/tasks.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0; - var utils = require_utils4(); - function generate(patterns, settings) { - const positivePatterns = getPositivePatterns(patterns); - const negativePatterns = getNegativePatternsAsPositive(patterns, settings.ignore); - const staticPatterns = positivePatterns.filter((pattern) => utils.pattern.isStaticPattern(pattern, settings)); - const dynamicPatterns = positivePatterns.filter((pattern) => utils.pattern.isDynamicPattern(pattern, settings)); - const staticTasks = convertPatternsToTasks( - staticPatterns, - negativePatterns, - /* dynamic */ - false - ); - const dynamicTasks = convertPatternsToTasks( - dynamicPatterns, - negativePatterns, - /* dynamic */ - true - ); - return staticTasks.concat(dynamicTasks); + function Task() { + this.value = null; + this.callback = noop2; + this.next = null; + this.release = noop2; + this.context = null; + this.errorHandler = null; + var self = this; + this.worked = function worked(err, result) { + var callback = self.callback; + var errorHandler = self.errorHandler; + var val = self.value; + self.value = null; + self.callback = noop2; + if (self.errorHandler) { + errorHandler(err, val); + } + callback.call(self.context, err, result); + self.release(self); + }; } - exports.generate = generate; - function convertPatternsToTasks(positive, negative, dynamic) { - const tasks = []; - const patternsOutsideCurrentDirectory = utils.pattern.getPatternsOutsideCurrentDirectory(positive); - const patternsInsideCurrentDirectory = utils.pattern.getPatternsInsideCurrentDirectory(positive); - const outsideCurrentDirectoryGroup = groupPatternsByBaseDirectory(patternsOutsideCurrentDirectory); - const insideCurrentDirectoryGroup = groupPatternsByBaseDirectory(patternsInsideCurrentDirectory); - tasks.push(...convertPatternGroupsToTasks(outsideCurrentDirectoryGroup, negative, dynamic)); - if ("." in insideCurrentDirectoryGroup) { - tasks.push(convertPatternGroupToTask(".", patternsInsideCurrentDirectory, negative, dynamic)); - } else { - tasks.push(...convertPatternGroupsToTasks(insideCurrentDirectoryGroup, negative, dynamic)); + function queueAsPromised(context, worker, concurrency) { + if (typeof context === "function") { + concurrency = worker; + worker = context; + context = null; + } + function asyncWrapper(arg, cb) { + worker.call(this, arg).then(function(res) { + cb(null, res); + }, cb); + } + var queue = fastqueue(context, asyncWrapper, concurrency); + var pushCb = queue.push; + var unshiftCb = queue.unshift; + queue.push = push; + queue.unshift = unshift; + queue.drained = drained; + return queue; + function push(value) { + var p = new Promise(function(resolve2, reject) { + pushCb(value, function(err, result) { + if (err) { + reject(err); + return; + } + resolve2(result); + }); + }); + p.catch(noop2); + return p; + } + function unshift(value) { + var p = new Promise(function(resolve2, reject) { + unshiftCb(value, function(err, result) { + if (err) { + reject(err); + return; + } + resolve2(result); + }); + }); + p.catch(noop2); + return p; + } + function drained() { + if (queue.idle()) { + return new Promise(function(resolve2) { + resolve2(); + }); + } + var previousDrain = queue.drain; + var p = new Promise(function(resolve2) { + queue.drain = function() { + previousDrain(); + resolve2(); + }; + }); + return p; } - return tasks; - } - exports.convertPatternsToTasks = convertPatternsToTasks; - function getPositivePatterns(patterns) { - return utils.pattern.getPositivePatterns(patterns); } - exports.getPositivePatterns = getPositivePatterns; - function getNegativePatternsAsPositive(patterns, ignore) { - const negative = utils.pattern.getNegativePatterns(patterns).concat(ignore); - const positive = negative.map(utils.pattern.convertToPositivePattern); - return positive; + module.exports = fastqueue; + module.exports.promise = queueAsPromised; + } +}); + +// node_modules/@nodelib/fs.walk/out/readers/common.js +var require_common2 = __commonJS({ + "node_modules/@nodelib/fs.walk/out/readers/common.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0; + function isFatalError(settings, error) { + if (settings.errorFilter === null) { + return true; + } + return !settings.errorFilter(error); } - exports.getNegativePatternsAsPositive = getNegativePatternsAsPositive; - function groupPatternsByBaseDirectory(patterns) { - const group = {}; - return patterns.reduce((collection, pattern) => { - const base = utils.pattern.getBaseDirectory(pattern); - if (base in collection) { - collection[base].push(pattern); - } else { - collection[base] = [pattern]; - } - return collection; - }, group); + exports.isFatalError = isFatalError; + function isAppliedFilter(filter, value) { + return filter === null || filter(value); } - exports.groupPatternsByBaseDirectory = groupPatternsByBaseDirectory; - function convertPatternGroupsToTasks(positive, negative, dynamic) { - return Object.keys(positive).map((base) => { - return convertPatternGroupToTask(base, positive[base], negative, dynamic); - }); + exports.isAppliedFilter = isAppliedFilter; + function replacePathSegmentSeparator(filepath, separator) { + return filepath.split(/[/\\]/).join(separator); } - exports.convertPatternGroupsToTasks = convertPatternGroupsToTasks; - function convertPatternGroupToTask(base, positive, negative, dynamic) { - return { - dynamic, - positive, - negative, - base, - patterns: [].concat(positive, negative.map(utils.pattern.convertToNegativePattern)) - }; + exports.replacePathSegmentSeparator = replacePathSegmentSeparator; + function joinPathSegments(a, b, separator) { + if (a === "") { + return b; + } + if (a.endsWith(separator)) { + return a + b; + } + return a + separator + b; } - exports.convertPatternGroupToTask = convertPatternGroupToTask; + exports.joinPathSegments = joinPathSegments; } }); -// node_modules/fast-glob/out/managers/patterns.js -var require_patterns = __commonJS({ - "node_modules/fast-glob/out/managers/patterns.js"(exports) { +// node_modules/@nodelib/fs.walk/out/readers/reader.js +var require_reader = __commonJS({ + "node_modules/@nodelib/fs.walk/out/readers/reader.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.removeDuplicateSlashes = exports.transform = void 0; - var DOUBLE_SLASH_RE = /(?!^)\/{2,}/g; - function transform2(patterns) { - return patterns.map((pattern) => removeDuplicateSlashes(pattern)); - } - exports.transform = transform2; - function removeDuplicateSlashes(pattern) { - return pattern.replace(DOUBLE_SLASH_RE, "/"); - } - exports.removeDuplicateSlashes = removeDuplicateSlashes; + var common = require_common2(); + var Reader = class { + constructor(_root, _settings) { + this._root = _root; + this._settings = _settings; + this._root = common.replacePathSegmentSeparator(_root, _settings.pathSegmentSeparator); + } + }; + exports.default = Reader; } }); -// node_modules/@nodelib/fs.stat/out/providers/async.js -var require_async = __commonJS({ - "node_modules/@nodelib/fs.stat/out/providers/async.js"(exports) { +// node_modules/@nodelib/fs.walk/out/readers/async.js +var require_async3 = __commonJS({ + "node_modules/@nodelib/fs.walk/out/readers/async.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.read = void 0; - function read2(path9, settings, callback) { - settings.fs.lstat(path9, (lstatError, lstat) => { - if (lstatError !== null) { - callFailureCallback(callback, lstatError); - return; - } - if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) { - callSuccessCallback(callback, lstat); - return; + var events_1 = __require("events"); + var fsScandir = require_out2(); + var fastq = require_queue(); + var common = require_common2(); + var reader_1 = require_reader(); + var AsyncReader = class extends reader_1.default { + constructor(_root, _settings) { + super(_root, _settings); + this._settings = _settings; + this._scandir = fsScandir.scandir; + this._emitter = new events_1.EventEmitter(); + this._queue = fastq(this._worker.bind(this), this._settings.concurrency); + this._isFatalError = false; + this._isDestroyed = false; + this._queue.drain = () => { + if (!this._isFatalError) { + this._emitter.emit("end"); + } + }; + } + read() { + this._isFatalError = false; + this._isDestroyed = false; + setImmediate(() => { + this._pushToQueue(this._root, this._settings.basePath); + }); + return this._emitter; + } + get isDestroyed() { + return this._isDestroyed; + } + destroy() { + if (this._isDestroyed) { + throw new Error("The reader is already destroyed"); } - settings.fs.stat(path9, (statError, stat) => { - if (statError !== null) { - if (settings.throwErrorOnBrokenSymbolicLink) { - callFailureCallback(callback, statError); - return; - } - callSuccessCallback(callback, lstat); + this._isDestroyed = true; + this._queue.killAndDrain(); + } + onEntry(callback) { + this._emitter.on("entry", callback); + } + onError(callback) { + this._emitter.once("error", callback); + } + onEnd(callback) { + this._emitter.once("end", callback); + } + _pushToQueue(directory, base) { + const queueItem = { directory, base }; + this._queue.push(queueItem, (error) => { + if (error !== null) { + this._handleError(error); + } + }); + } + _worker(item, done) { + this._scandir(item.directory, this._settings.fsScandirSettings, (error, entries) => { + if (error !== null) { + done(error, void 0); return; } - if (settings.markSymbolicLink) { - stat.isSymbolicLink = () => true; + for (const entry of entries) { + this._handleEntry(entry, item.base); } - callSuccessCallback(callback, stat); + done(null, void 0); }); - }); - } - exports.read = read2; - function callFailureCallback(callback, error) { - callback(error); - } - function callSuccessCallback(callback, result) { - callback(null, result); - } - } -}); - -// node_modules/@nodelib/fs.stat/out/providers/sync.js -var require_sync = __commonJS({ - "node_modules/@nodelib/fs.stat/out/providers/sync.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.read = void 0; - function read2(path9, settings) { - const lstat = settings.fs.lstatSync(path9); - if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) { - return lstat; } - try { - const stat = settings.fs.statSync(path9); - if (settings.markSymbolicLink) { - stat.isSymbolicLink = () => true; + _handleError(error) { + if (this._isDestroyed || !common.isFatalError(this._settings, error)) { + return; } - return stat; - } catch (error) { - if (!settings.throwErrorOnBrokenSymbolicLink) { - return lstat; + this._isFatalError = true; + this._isDestroyed = true; + this._emitter.emit("error", error); + } + _handleEntry(entry, base) { + if (this._isDestroyed || this._isFatalError) { + return; + } + const fullpath = entry.path; + if (base !== void 0) { + entry.path = common.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator); + } + if (common.isAppliedFilter(this._settings.entryFilter, entry)) { + this._emitEntry(entry); + } + if (entry.dirent.isDirectory() && common.isAppliedFilter(this._settings.deepFilter, entry)) { + this._pushToQueue(fullpath, base === void 0 ? void 0 : entry.path); } - throw error; } - } - exports.read = read2; + _emitEntry(entry) { + this._emitter.emit("entry", entry); + } + }; + exports.default = AsyncReader; } }); -// node_modules/@nodelib/fs.stat/out/adapters/fs.js -var require_fs2 = __commonJS({ - "node_modules/@nodelib/fs.stat/out/adapters/fs.js"(exports) { +// node_modules/@nodelib/fs.walk/out/providers/async.js +var require_async4 = __commonJS({ + "node_modules/@nodelib/fs.walk/out/providers/async.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0; - var fs5 = __require("fs"); - exports.FILE_SYSTEM_ADAPTER = { - lstat: fs5.lstat, - stat: fs5.stat, - lstatSync: fs5.lstatSync, - statSync: fs5.statSync - }; - function createFileSystemAdapter(fsMethods) { - if (fsMethods === void 0) { - return exports.FILE_SYSTEM_ADAPTER; + var async_1 = require_async3(); + var AsyncProvider = class { + constructor(_root, _settings) { + this._root = _root; + this._settings = _settings; + this._reader = new async_1.default(this._root, this._settings); + this._storage = []; + } + read(callback) { + this._reader.onError((error) => { + callFailureCallback(callback, error); + }); + this._reader.onEntry((entry) => { + this._storage.push(entry); + }); + this._reader.onEnd(() => { + callSuccessCallback(callback, this._storage); + }); + this._reader.read(); } - return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods); + }; + exports.default = AsyncProvider; + function callFailureCallback(callback, error) { + callback(error); + } + function callSuccessCallback(callback, entries) { + callback(null, entries); } - exports.createFileSystemAdapter = createFileSystemAdapter; } }); -// node_modules/@nodelib/fs.stat/out/settings.js -var require_settings = __commonJS({ - "node_modules/@nodelib/fs.stat/out/settings.js"(exports) { +// node_modules/@nodelib/fs.walk/out/providers/stream.js +var require_stream2 = __commonJS({ + "node_modules/@nodelib/fs.walk/out/providers/stream.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var fs5 = require_fs2(); - var Settings = class { - constructor(_options = {}) { - this._options = _options; - this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true); - this.fs = fs5.createFileSystemAdapter(this._options.fs); - this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, false); - this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true); + var stream_1 = __require("stream"); + var async_1 = require_async3(); + var StreamProvider = class { + constructor(_root, _settings) { + this._root = _root; + this._settings = _settings; + this._reader = new async_1.default(this._root, this._settings); + this._stream = new stream_1.Readable({ + objectMode: true, + read: () => { + }, + destroy: () => { + if (!this._reader.isDestroyed) { + this._reader.destroy(); + } + } + }); } - _getValue(option, value) { - return option !== null && option !== void 0 ? option : value; + read() { + this._reader.onError((error) => { + this._stream.emit("error", error); + }); + this._reader.onEntry((entry) => { + this._stream.push(entry); + }); + this._reader.onEnd(() => { + this._stream.push(null); + }); + this._reader.read(); + return this._stream; } }; - exports.default = Settings; + exports.default = StreamProvider; } }); -// node_modules/@nodelib/fs.stat/out/index.js -var require_out = __commonJS({ - "node_modules/@nodelib/fs.stat/out/index.js"(exports) { +// node_modules/@nodelib/fs.walk/out/readers/sync.js +var require_sync3 = __commonJS({ + "node_modules/@nodelib/fs.walk/out/readers/sync.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.statSync = exports.stat = exports.Settings = void 0; - var async = require_async(); - var sync = require_sync(); - var settings_1 = require_settings(); - exports.Settings = settings_1.default; - function stat(path9, optionsOrSettingsOrCallback, callback) { - if (typeof optionsOrSettingsOrCallback === "function") { - async.read(path9, getSettings(), optionsOrSettingsOrCallback); - return; + var fsScandir = require_out2(); + var common = require_common2(); + var reader_1 = require_reader(); + var SyncReader = class extends reader_1.default { + constructor() { + super(...arguments); + this._scandir = fsScandir.scandirSync; + this._storage = []; + this._queue = /* @__PURE__ */ new Set(); } - async.read(path9, getSettings(optionsOrSettingsOrCallback), callback); - } - exports.stat = stat; - function statSync2(path9, optionsOrSettings) { - const settings = getSettings(optionsOrSettings); - return sync.read(path9, settings); - } - exports.statSync = statSync2; - function getSettings(settingsOrOptions = {}) { - if (settingsOrOptions instanceof settings_1.default) { - return settingsOrOptions; + read() { + this._pushToQueue(this._root, this._settings.basePath); + this._handleQueue(); + return this._storage; } - return new settings_1.default(settingsOrOptions); - } - } -}); - -// node_modules/queue-microtask/index.js -var require_queue_microtask = __commonJS({ - "node_modules/queue-microtask/index.js"(exports, module) { - var promise; - module.exports = typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "undefined" ? window : global) : (cb) => (promise || (promise = Promise.resolve())).then(cb).catch((err) => setTimeout(() => { - throw err; - }, 0)); - } -}); - -// node_modules/run-parallel/index.js -var require_run_parallel = __commonJS({ - "node_modules/run-parallel/index.js"(exports, module) { - module.exports = runParallel; - var queueMicrotask2 = require_queue_microtask(); - function runParallel(tasks, cb) { - let results, pending, keys; - let isSync = true; - if (Array.isArray(tasks)) { - results = []; - pending = tasks.length; - } else { - keys = Object.keys(tasks); - results = {}; - pending = keys.length; + _pushToQueue(directory, base) { + this._queue.add({ directory, base }); } - function done(err) { - function end() { - if (cb) - cb(err, results); - cb = null; + _handleQueue() { + for (const item of this._queue.values()) { + this._handleDirectory(item.directory, item.base); } - if (isSync) - queueMicrotask2(end); - else - end(); } - function each(i, err, result) { - results[i] = result; - if (--pending === 0 || err) { - done(err); + _handleDirectory(directory, base) { + try { + const entries = this._scandir(directory, this._settings.fsScandirSettings); + for (const entry of entries) { + this._handleEntry(entry, base); + } + } catch (error) { + this._handleError(error); } } - if (!pending) { - done(null); - } else if (keys) { - keys.forEach(function(key) { - tasks[key](function(err, result) { - each(key, err, result); - }); - }); - } else { - tasks.forEach(function(task, i) { - task(function(err, result) { - each(i, err, result); - }); - }); + _handleError(error) { + if (!common.isFatalError(this._settings, error)) { + return; + } + throw error; } - isSync = false; - } - } -}); - -// node_modules/@nodelib/fs.scandir/out/constants.js -var require_constants3 = __commonJS({ - "node_modules/@nodelib/fs.scandir/out/constants.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0; - var NODE_PROCESS_VERSION_PARTS = process.versions.node.split("."); - if (NODE_PROCESS_VERSION_PARTS[0] === void 0 || NODE_PROCESS_VERSION_PARTS[1] === void 0) { - throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`); - } - var MAJOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[0], 10); - var MINOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[1], 10); - var SUPPORTED_MAJOR_VERSION = 10; - var SUPPORTED_MINOR_VERSION = 10; - var IS_MATCHED_BY_MAJOR = MAJOR_VERSION > SUPPORTED_MAJOR_VERSION; - var IS_MATCHED_BY_MAJOR_AND_MINOR = MAJOR_VERSION === SUPPORTED_MAJOR_VERSION && MINOR_VERSION >= SUPPORTED_MINOR_VERSION; - exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = IS_MATCHED_BY_MAJOR || IS_MATCHED_BY_MAJOR_AND_MINOR; - } -}); - -// node_modules/@nodelib/fs.scandir/out/utils/fs.js -var require_fs3 = __commonJS({ - "node_modules/@nodelib/fs.scandir/out/utils/fs.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.createDirentFromStats = void 0; - var DirentFromStats = class { - constructor(name, stats) { - this.name = name; - this.isBlockDevice = stats.isBlockDevice.bind(stats); - this.isCharacterDevice = stats.isCharacterDevice.bind(stats); - this.isDirectory = stats.isDirectory.bind(stats); - this.isFIFO = stats.isFIFO.bind(stats); - this.isFile = stats.isFile.bind(stats); - this.isSocket = stats.isSocket.bind(stats); - this.isSymbolicLink = stats.isSymbolicLink.bind(stats); + _handleEntry(entry, base) { + const fullpath = entry.path; + if (base !== void 0) { + entry.path = common.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator); + } + if (common.isAppliedFilter(this._settings.entryFilter, entry)) { + this._pushToStorage(entry); + } + if (entry.dirent.isDirectory() && common.isAppliedFilter(this._settings.deepFilter, entry)) { + this._pushToQueue(fullpath, base === void 0 ? void 0 : entry.path); + } + } + _pushToStorage(entry) { + this._storage.push(entry); } }; - function createDirentFromStats(name, stats) { - return new DirentFromStats(name, stats); - } - exports.createDirentFromStats = createDirentFromStats; + exports.default = SyncReader; } }); -// node_modules/@nodelib/fs.scandir/out/utils/index.js -var require_utils5 = __commonJS({ - "node_modules/@nodelib/fs.scandir/out/utils/index.js"(exports) { +// node_modules/@nodelib/fs.walk/out/providers/sync.js +var require_sync4 = __commonJS({ + "node_modules/@nodelib/fs.walk/out/providers/sync.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.fs = void 0; - var fs5 = require_fs3(); - exports.fs = fs5; + var sync_1 = require_sync3(); + var SyncProvider = class { + constructor(_root, _settings) { + this._root = _root; + this._settings = _settings; + this._reader = new sync_1.default(this._root, this._settings); + } + read() { + return this._reader.read(); + } + }; + exports.default = SyncProvider; } }); -// node_modules/@nodelib/fs.scandir/out/providers/common.js -var require_common3 = __commonJS({ - "node_modules/@nodelib/fs.scandir/out/providers/common.js"(exports) { +// node_modules/@nodelib/fs.walk/out/settings.js +var require_settings3 = __commonJS({ + "node_modules/@nodelib/fs.walk/out/settings.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.joinPathSegments = void 0; - function joinPathSegments(a, b, separator) { - if (a.endsWith(separator)) { - return a + b; + var path9 = __require("path"); + var fsScandir = require_out2(); + var Settings = class { + constructor(_options = {}) { + this._options = _options; + this.basePath = this._getValue(this._options.basePath, void 0); + this.concurrency = this._getValue(this._options.concurrency, Number.POSITIVE_INFINITY); + this.deepFilter = this._getValue(this._options.deepFilter, null); + this.entryFilter = this._getValue(this._options.entryFilter, null); + this.errorFilter = this._getValue(this._options.errorFilter, null); + this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path9.sep); + this.fsScandirSettings = new fsScandir.Settings({ + followSymbolicLinks: this._options.followSymbolicLinks, + fs: this._options.fs, + pathSegmentSeparator: this._options.pathSegmentSeparator, + stats: this._options.stats, + throwErrorOnBrokenSymbolicLink: this._options.throwErrorOnBrokenSymbolicLink + }); } - return a + separator + b; - } - exports.joinPathSegments = joinPathSegments; + _getValue(option, value) { + return option !== null && option !== void 0 ? option : value; + } + }; + exports.default = Settings; } }); -// node_modules/@nodelib/fs.scandir/out/providers/async.js -var require_async2 = __commonJS({ - "node_modules/@nodelib/fs.scandir/out/providers/async.js"(exports) { +// node_modules/@nodelib/fs.walk/out/index.js +var require_out3 = __commonJS({ + "node_modules/@nodelib/fs.walk/out/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.readdir = exports.readdirWithFileTypes = exports.read = void 0; - var fsStat = require_out(); - var rpl = require_run_parallel(); - var constants_1 = require_constants3(); - var utils = require_utils5(); - var common = require_common3(); - function read2(directory, settings, callback) { - if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) { - readdirWithFileTypes(directory, settings, callback); + exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0; + var async_1 = require_async4(); + var stream_1 = require_stream2(); + var sync_1 = require_sync4(); + var settings_1 = require_settings3(); + exports.Settings = settings_1.default; + function walk(directory, optionsOrSettingsOrCallback, callback) { + if (typeof optionsOrSettingsOrCallback === "function") { + new async_1.default(directory, getSettings()).read(optionsOrSettingsOrCallback); return; } - readdir(directory, settings, callback); - } - exports.read = read2; - function readdirWithFileTypes(directory, settings, callback) { - settings.fs.readdir(directory, { withFileTypes: true }, (readdirError, dirents) => { - if (readdirError !== null) { - callFailureCallback(callback, readdirError); - return; - } - const entries = dirents.map((dirent) => ({ - dirent, - name: dirent.name, - path: common.joinPathSegments(directory, dirent.name, settings.pathSegmentSeparator) - })); - if (!settings.followSymbolicLinks) { - callSuccessCallback(callback, entries); - return; - } - const tasks = entries.map((entry) => makeRplTaskEntry(entry, settings)); - rpl(tasks, (rplError, rplEntries) => { - if (rplError !== null) { - callFailureCallback(callback, rplError); - return; - } - callSuccessCallback(callback, rplEntries); - }); - }); - } - exports.readdirWithFileTypes = readdirWithFileTypes; - function makeRplTaskEntry(entry, settings) { - return (done) => { - if (!entry.dirent.isSymbolicLink()) { - done(null, entry); - return; - } - settings.fs.stat(entry.path, (statError, stats) => { - if (statError !== null) { - if (settings.throwErrorOnBrokenSymbolicLink) { - done(statError); - return; - } - done(null, entry); - return; - } - entry.dirent = utils.fs.createDirentFromStats(entry.name, stats); - done(null, entry); - }); - }; + new async_1.default(directory, getSettings(optionsOrSettingsOrCallback)).read(callback); } - function readdir(directory, settings, callback) { - settings.fs.readdir(directory, (readdirError, names) => { - if (readdirError !== null) { - callFailureCallback(callback, readdirError); - return; - } - const tasks = names.map((name) => { - const path9 = common.joinPathSegments(directory, name, settings.pathSegmentSeparator); - return (done) => { - fsStat.stat(path9, settings.fsStatSettings, (error, stats) => { - if (error !== null) { - done(error); - return; - } - const entry = { - name, - path: path9, - dirent: utils.fs.createDirentFromStats(name, stats) - }; - if (settings.stats) { - entry.stats = stats; - } - done(null, entry); - }); - }; - }); - rpl(tasks, (rplError, entries) => { - if (rplError !== null) { - callFailureCallback(callback, rplError); - return; - } - callSuccessCallback(callback, entries); - }); - }); + exports.walk = walk; + function walkSync(directory, optionsOrSettings) { + const settings = getSettings(optionsOrSettings); + const provider = new sync_1.default(directory, settings); + return provider.read(); } - exports.readdir = readdir; - function callFailureCallback(callback, error) { - callback(error); + exports.walkSync = walkSync; + function walkStream(directory, optionsOrSettings) { + const settings = getSettings(optionsOrSettings); + const provider = new stream_1.default(directory, settings); + return provider.read(); } - function callSuccessCallback(callback, result) { - callback(null, result); + exports.walkStream = walkStream; + function getSettings(settingsOrOptions = {}) { + if (settingsOrOptions instanceof settings_1.default) { + return settingsOrOptions; + } + return new settings_1.default(settingsOrOptions); } } }); -// node_modules/@nodelib/fs.scandir/out/providers/sync.js -var require_sync2 = __commonJS({ - "node_modules/@nodelib/fs.scandir/out/providers/sync.js"(exports) { +// node_modules/fast-glob/out/readers/reader.js +var require_reader2 = __commonJS({ + "node_modules/fast-glob/out/readers/reader.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.readdir = exports.readdirWithFileTypes = exports.read = void 0; + var path9 = __require("path"); var fsStat = require_out(); - var constants_1 = require_constants3(); - var utils = require_utils5(); - var common = require_common3(); - function read2(directory, settings) { - if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) { - return readdirWithFileTypes(directory, settings); + var utils = require_utils3(); + var Reader = class { + constructor(_settings) { + this._settings = _settings; + this._fsStatSettings = new fsStat.Settings({ + followSymbolicLink: this._settings.followSymbolicLinks, + fs: this._settings.fs, + throwErrorOnBrokenSymbolicLink: this._settings.followSymbolicLinks + }); } - return readdir(directory, settings); - } - exports.read = read2; - function readdirWithFileTypes(directory, settings) { - const dirents = settings.fs.readdirSync(directory, { withFileTypes: true }); - return dirents.map((dirent) => { + _getFullEntryPath(filepath) { + return path9.resolve(this._settings.cwd, filepath); + } + _makeEntry(stats, pattern) { const entry = { - dirent, - name: dirent.name, - path: common.joinPathSegments(directory, dirent.name, settings.pathSegmentSeparator) + name: pattern, + path: pattern, + dirent: utils.fs.createDirentFromStats(pattern, stats) }; - if (entry.dirent.isSymbolicLink() && settings.followSymbolicLinks) { - try { - const stats = settings.fs.statSync(entry.path); - entry.dirent = utils.fs.createDirentFromStats(entry.name, stats); - } catch (error) { - if (settings.throwErrorOnBrokenSymbolicLink) { - throw error; - } - } + if (this._settings.stats) { + entry.stats = stats; } return entry; - }); - } - exports.readdirWithFileTypes = readdirWithFileTypes; - function readdir(directory, settings) { - const names = settings.fs.readdirSync(directory); - return names.map((name) => { - const entryPath = common.joinPathSegments(directory, name, settings.pathSegmentSeparator); - const stats = fsStat.statSync(entryPath, settings.fsStatSettings); - const entry = { - name, - path: entryPath, - dirent: utils.fs.createDirentFromStats(name, stats) + } + _isFatalError(error) { + return !utils.errno.isEnoentCodeError(error) && !this._settings.suppressErrors; + } + }; + exports.default = Reader; + } +}); + +// node_modules/fast-glob/out/readers/stream.js +var require_stream3 = __commonJS({ + "node_modules/fast-glob/out/readers/stream.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var stream_1 = __require("stream"); + var fsStat = require_out(); + var fsWalk = require_out3(); + var reader_1 = require_reader2(); + var ReaderStream = class extends reader_1.default { + constructor() { + super(...arguments); + this._walkStream = fsWalk.walkStream; + this._stat = fsStat.stat; + } + dynamic(root, options8) { + return this._walkStream(root, options8); + } + static(patterns, options8) { + const filepaths = patterns.map(this._getFullEntryPath, this); + const stream = new stream_1.PassThrough({ objectMode: true }); + stream._write = (index, _enc, done) => { + return this._getEntry(filepaths[index], patterns[index], options8).then((entry) => { + if (entry !== null && options8.entryFilter(entry)) { + stream.push(entry); + } + if (index === filepaths.length - 1) { + stream.end(); + } + done(); + }).catch(done); }; - if (settings.stats) { - entry.stats = stats; + for (let i = 0; i < filepaths.length; i++) { + stream.write(i); } - return entry; - }); - } - exports.readdir = readdir; - } -}); - -// node_modules/@nodelib/fs.scandir/out/adapters/fs.js -var require_fs4 = __commonJS({ - "node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0; - var fs5 = __require("fs"); - exports.FILE_SYSTEM_ADAPTER = { - lstat: fs5.lstat, - stat: fs5.stat, - lstatSync: fs5.lstatSync, - statSync: fs5.statSync, - readdir: fs5.readdir, - readdirSync: fs5.readdirSync - }; - function createFileSystemAdapter(fsMethods) { - if (fsMethods === void 0) { - return exports.FILE_SYSTEM_ADAPTER; + return stream; } - return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods); - } - exports.createFileSystemAdapter = createFileSystemAdapter; + _getEntry(filepath, pattern, options8) { + return this._getStat(filepath).then((stats) => this._makeEntry(stats, pattern)).catch((error) => { + if (options8.errorFilter(error)) { + return null; + } + throw error; + }); + } + _getStat(filepath) { + return new Promise((resolve2, reject) => { + this._stat(filepath, this._fsStatSettings, (error, stats) => { + return error === null ? resolve2(stats) : reject(error); + }); + }); + } + }; + exports.default = ReaderStream; } }); -// node_modules/@nodelib/fs.scandir/out/settings.js -var require_settings2 = __commonJS({ - "node_modules/@nodelib/fs.scandir/out/settings.js"(exports) { +// node_modules/fast-glob/out/readers/async.js +var require_async5 = __commonJS({ + "node_modules/fast-glob/out/readers/async.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var path9 = __require("path"); - var fsStat = require_out(); - var fs5 = require_fs4(); - var Settings = class { - constructor(_options = {}) { - this._options = _options; - this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false); - this.fs = fs5.createFileSystemAdapter(this._options.fs); - this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path9.sep); - this.stats = this._getValue(this._options.stats, false); - this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true); - this.fsStatSettings = new fsStat.Settings({ - followSymbolicLink: this.followSymbolicLinks, - fs: this.fs, - throwErrorOnBrokenSymbolicLink: this.throwErrorOnBrokenSymbolicLink + var fsWalk = require_out3(); + var reader_1 = require_reader2(); + var stream_1 = require_stream3(); + var ReaderAsync = class extends reader_1.default { + constructor() { + super(...arguments); + this._walkAsync = fsWalk.walk; + this._readerStream = new stream_1.default(this._settings); + } + dynamic(root, options8) { + return new Promise((resolve2, reject) => { + this._walkAsync(root, options8, (error, entries) => { + if (error === null) { + resolve2(entries); + } else { + reject(error); + } + }); }); } - _getValue(option, value) { - return option !== null && option !== void 0 ? option : value; + async static(patterns, options8) { + const entries = []; + const stream = this._readerStream.static(patterns, options8); + return new Promise((resolve2, reject) => { + stream.once("error", reject); + stream.on("data", (entry) => entries.push(entry)); + stream.once("end", () => resolve2(entries)); + }); } }; - exports.default = Settings; + exports.default = ReaderAsync; } }); -// node_modules/@nodelib/fs.scandir/out/index.js -var require_out2 = __commonJS({ - "node_modules/@nodelib/fs.scandir/out/index.js"(exports) { +// node_modules/fast-glob/out/providers/matchers/matcher.js +var require_matcher = __commonJS({ + "node_modules/fast-glob/out/providers/matchers/matcher.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.Settings = exports.scandirSync = exports.scandir = void 0; - var async = require_async2(); - var sync = require_sync2(); - var settings_1 = require_settings2(); - exports.Settings = settings_1.default; - function scandir(path9, optionsOrSettingsOrCallback, callback) { - if (typeof optionsOrSettingsOrCallback === "function") { - async.read(path9, getSettings(), optionsOrSettingsOrCallback); - return; + var utils = require_utils3(); + var Matcher = class { + constructor(_patterns, _settings, _micromatchOptions) { + this._patterns = _patterns; + this._settings = _settings; + this._micromatchOptions = _micromatchOptions; + this._storage = []; + this._fillStorage(); } - async.read(path9, getSettings(optionsOrSettingsOrCallback), callback); - } - exports.scandir = scandir; - function scandirSync(path9, optionsOrSettings) { - const settings = getSettings(optionsOrSettings); - return sync.read(path9, settings); - } - exports.scandirSync = scandirSync; - function getSettings(settingsOrOptions = {}) { - if (settingsOrOptions instanceof settings_1.default) { - return settingsOrOptions; + _fillStorage() { + for (const pattern of this._patterns) { + const segments = this._getPatternSegments(pattern); + const sections = this._splitSegmentsIntoSections(segments); + this._storage.push({ + complete: sections.length <= 1, + pattern, + segments, + sections + }); + } } - return new settings_1.default(settingsOrOptions); - } + _getPatternSegments(pattern) { + const parts = utils.pattern.getPatternParts(pattern, this._micromatchOptions); + return parts.map((part) => { + const dynamic = utils.pattern.isDynamicPattern(part, this._settings); + if (!dynamic) { + return { + dynamic: false, + pattern: part + }; + } + return { + dynamic: true, + pattern: part, + patternRe: utils.pattern.makeRe(part, this._micromatchOptions) + }; + }); + } + _splitSegmentsIntoSections(segments) { + return utils.array.splitWhen(segments, (segment) => segment.dynamic && utils.pattern.hasGlobStar(segment.pattern)); + } + }; + exports.default = Matcher; } }); -// node_modules/reusify/reusify.js -var require_reusify = __commonJS({ - "node_modules/reusify/reusify.js"(exports, module) { +// node_modules/fast-glob/out/providers/matchers/partial.js +var require_partial = __commonJS({ + "node_modules/fast-glob/out/providers/matchers/partial.js"(exports) { "use strict"; - function reusify(Constructor) { - var head = new Constructor(); - var tail = head; - function get() { - var current = head; - if (current.next) { - head = current.next; - } else { - head = new Constructor(); - tail = head; + Object.defineProperty(exports, "__esModule", { value: true }); + var matcher_1 = require_matcher(); + var PartialMatcher = class extends matcher_1.default { + match(filepath) { + const parts = filepath.split("/"); + const levels = parts.length; + const patterns = this._storage.filter((info) => !info.complete || info.segments.length > levels); + for (const pattern of patterns) { + const section = pattern.sections[0]; + if (!pattern.complete && levels > section.length) { + return true; + } + const match = parts.every((part, index) => { + const segment = pattern.segments[index]; + if (segment.dynamic && segment.patternRe.test(part)) { + return true; + } + if (!segment.dynamic && segment.pattern === part) { + return true; + } + return false; + }); + if (match) { + return true; + } } - current.next = null; - return current; - } - function release(obj) { - tail.next = obj; - tail = obj; + return false; } - return { - get, - release - }; - } - module.exports = reusify; + }; + exports.default = PartialMatcher; } }); -// node_modules/fastq/queue.js -var require_queue = __commonJS({ - "node_modules/fastq/queue.js"(exports, module) { +// node_modules/fast-glob/out/providers/filters/deep.js +var require_deep = __commonJS({ + "node_modules/fast-glob/out/providers/filters/deep.js"(exports) { "use strict"; - var reusify = require_reusify(); - function fastqueue(context, worker, concurrency) { - if (typeof context === "function") { - concurrency = worker; - worker = context; - context = null; + Object.defineProperty(exports, "__esModule", { value: true }); + var utils = require_utils3(); + var partial_1 = require_partial(); + var DeepFilter = class { + constructor(_settings, _micromatchOptions) { + this._settings = _settings; + this._micromatchOptions = _micromatchOptions; } - if (concurrency < 1) { - throw new Error("fastqueue concurrency must be greater than 1"); + getFilter(basePath, positive, negative) { + const matcher = this._getMatcher(positive); + const negativeRe = this._getNegativePatternsRe(negative); + return (entry) => this._filter(basePath, entry, matcher, negativeRe); } - var cache = reusify(Task); - var queueHead = null; - var queueTail = null; - var _running = 0; - var errorHandler = null; - var self = { - push, - drain: noop2, - saturated: noop2, - pause, - paused: false, - concurrency, - running, - resume, - idle, - length, - getQueue, - unshift, - empty: noop2, - kill, - killAndDrain, - error - }; - return self; - function running() { - return _running; + _getMatcher(patterns) { + return new partial_1.default(patterns, this._settings, this._micromatchOptions); } - function pause() { - self.paused = true; + _getNegativePatternsRe(patterns) { + const affectDepthOfReadingPatterns = patterns.filter(utils.pattern.isAffectDepthOfReadingPattern); + return utils.pattern.convertPatternsToRe(affectDepthOfReadingPatterns, this._micromatchOptions); } - function length() { - var current = queueHead; - var counter = 0; - while (current) { - current = current.next; - counter++; + _filter(basePath, entry, matcher, negativeRe) { + if (this._isSkippedByDeep(basePath, entry.path)) { + return false; } - return counter; - } - function getQueue() { - var current = queueHead; - var tasks = []; - while (current) { - tasks.push(current.value); - current = current.next; + if (this._isSkippedSymbolicLink(entry)) { + return false; } - return tasks; - } - function resume() { - if (!self.paused) - return; - self.paused = false; - for (var i = 0; i < self.concurrency; i++) { - _running++; - release(); + const filepath = utils.path.removeLeadingDotSegment(entry.path); + if (this._isSkippedByPositivePatterns(filepath, matcher)) { + return false; } + return this._isSkippedByNegativePatterns(filepath, negativeRe); } - function idle() { - return _running === 0 && self.length() === 0; - } - function push(value, done) { - var current = cache.get(); - current.context = context; - current.release = release; - current.value = value; - current.callback = done || noop2; - current.errorHandler = errorHandler; - if (_running === self.concurrency || self.paused) { - if (queueTail) { - queueTail.next = current; - queueTail = current; - } else { - queueHead = current; - queueTail = current; - self.saturated(); - } - } else { - _running++; - worker.call(context, current.value, current.worked); + _isSkippedByDeep(basePath, entryPath) { + if (this._settings.deep === Infinity) { + return false; } + return this._getEntryLevel(basePath, entryPath) >= this._settings.deep; } - function unshift(value, done) { - var current = cache.get(); - current.context = context; - current.release = release; - current.value = value; - current.callback = done || noop2; - if (_running === self.concurrency || self.paused) { - if (queueHead) { - current.next = queueHead; - queueHead = current; - } else { - queueHead = current; - queueTail = current; - self.saturated(); - } - } else { - _running++; - worker.call(context, current.value, current.worked); + _getEntryLevel(basePath, entryPath) { + const entryPathDepth = entryPath.split("/").length; + if (basePath === "") { + return entryPathDepth; } + const basePathDepth = basePath.split("/").length; + return entryPathDepth - basePathDepth; } - function release(holder) { - if (holder) { - cache.release(holder); - } - var next = queueHead; - if (next) { - if (!self.paused) { - if (queueTail === queueHead) { - queueTail = null; - } - queueHead = next.next; - next.next = null; - worker.call(context, next.value, next.worked); - if (queueTail === null) { - self.empty(); - } - } else { - _running--; - } - } else if (--_running === 0) { - self.drain(); - } + _isSkippedSymbolicLink(entry) { + return !this._settings.followSymbolicLinks && entry.dirent.isSymbolicLink(); } - function kill() { - queueHead = null; - queueTail = null; - self.drain = noop2; + _isSkippedByPositivePatterns(entryPath, matcher) { + return !this._settings.baseNameMatch && !matcher.match(entryPath); } - function killAndDrain() { - queueHead = null; - queueTail = null; - self.drain(); - self.drain = noop2; + _isSkippedByNegativePatterns(entryPath, patternsRe) { + return !utils.pattern.matchAny(entryPath, patternsRe); } - function error(handler) { - errorHandler = handler; + }; + exports.default = DeepFilter; + } +}); + +// node_modules/fast-glob/out/providers/filters/entry.js +var require_entry = __commonJS({ + "node_modules/fast-glob/out/providers/filters/entry.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var utils = require_utils3(); + var EntryFilter = class { + constructor(_settings, _micromatchOptions) { + this._settings = _settings; + this._micromatchOptions = _micromatchOptions; + this.index = /* @__PURE__ */ new Map(); } - } - function noop2() { - } - function Task() { - this.value = null; - this.callback = noop2; - this.next = null; - this.release = noop2; - this.context = null; - this.errorHandler = null; - var self = this; - this.worked = function worked(err, result) { - var callback = self.callback; - var errorHandler = self.errorHandler; - var val = self.value; - self.value = null; - self.callback = noop2; - if (self.errorHandler) { - errorHandler(err, val); + getFilter(positive, negative) { + const positiveRe = utils.pattern.convertPatternsToRe(positive, this._micromatchOptions); + const negativeRe = utils.pattern.convertPatternsToRe(negative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: true })); + return (entry) => this._filter(entry, positiveRe, negativeRe); + } + _filter(entry, positiveRe, negativeRe) { + const filepath = utils.path.removeLeadingDotSegment(entry.path); + if (this._settings.unique && this._isDuplicateEntry(filepath)) { + return false; } - callback.call(self.context, err, result); - self.release(self); - }; - } - function queueAsPromised(context, worker, concurrency) { - if (typeof context === "function") { - concurrency = worker; - worker = context; - context = null; + if (this._onlyFileFilter(entry) || this._onlyDirectoryFilter(entry)) { + return false; + } + if (this._isSkippedByAbsoluteNegativePatterns(filepath, negativeRe)) { + return false; + } + const isDirectory = entry.dirent.isDirectory(); + const isMatched = this._isMatchToPatterns(filepath, positiveRe, isDirectory) && !this._isMatchToPatterns(filepath, negativeRe, isDirectory); + if (this._settings.unique && isMatched) { + this._createIndexRecord(filepath); + } + return isMatched; } - function asyncWrapper(arg, cb) { - worker.call(this, arg).then(function(res) { - cb(null, res); - }, cb); + _isDuplicateEntry(filepath) { + return this.index.has(filepath); } - var queue = fastqueue(context, asyncWrapper, concurrency); - var pushCb = queue.push; - var unshiftCb = queue.unshift; - queue.push = push; - queue.unshift = unshift; - queue.drained = drained; - return queue; - function push(value) { - var p = new Promise(function(resolve2, reject) { - pushCb(value, function(err, result) { - if (err) { - reject(err); - return; - } - resolve2(result); - }); - }); - p.catch(noop2); - return p; + _createIndexRecord(filepath) { + this.index.set(filepath, void 0); } - function unshift(value) { - var p = new Promise(function(resolve2, reject) { - unshiftCb(value, function(err, result) { - if (err) { - reject(err); - return; - } - resolve2(result); - }); - }); - p.catch(noop2); - return p; + _onlyFileFilter(entry) { + return this._settings.onlyFiles && !entry.dirent.isFile(); + } + _onlyDirectoryFilter(entry) { + return this._settings.onlyDirectories && !entry.dirent.isDirectory(); + } + _isSkippedByAbsoluteNegativePatterns(entryPath, patternsRe) { + if (!this._settings.absolute) { + return false; + } + const fullpath = utils.path.makeAbsolute(this._settings.cwd, entryPath); + return utils.pattern.matchAny(fullpath, patternsRe); } - function drained() { - if (queue.idle()) { - return new Promise(function(resolve2) { - resolve2(); - }); + _isMatchToPatterns(filepath, patternsRe, isDirectory) { + const isMatched = utils.pattern.matchAny(filepath, patternsRe); + if (!isMatched && isDirectory) { + return utils.pattern.matchAny(filepath + "/", patternsRe); } - var previousDrain = queue.drain; - var p = new Promise(function(resolve2) { - queue.drain = function() { - previousDrain(); - resolve2(); - }; - }); - return p; + return isMatched; } - } - module.exports = fastqueue; - module.exports.promise = queueAsPromised; + }; + exports.default = EntryFilter; } }); -// node_modules/@nodelib/fs.walk/out/readers/common.js -var require_common4 = __commonJS({ - "node_modules/@nodelib/fs.walk/out/readers/common.js"(exports) { +// node_modules/fast-glob/out/providers/filters/error.js +var require_error = __commonJS({ + "node_modules/fast-glob/out/providers/filters/error.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0; - function isFatalError(settings, error) { - if (settings.errorFilter === null) { - return true; + var utils = require_utils3(); + var ErrorFilter = class { + constructor(_settings) { + this._settings = _settings; } - return !settings.errorFilter(error); - } - exports.isFatalError = isFatalError; - function isAppliedFilter(filter, value) { - return filter === null || filter(value); - } - exports.isAppliedFilter = isAppliedFilter; - function replacePathSegmentSeparator(filepath, separator) { - return filepath.split(/[/\\]/).join(separator); - } - exports.replacePathSegmentSeparator = replacePathSegmentSeparator; - function joinPathSegments(a, b, separator) { - if (a === "") { - return b; + getFilter() { + return (error) => this._isNonFatalError(error); } - if (a.endsWith(separator)) { - return a + b; + _isNonFatalError(error) { + return utils.errno.isEnoentCodeError(error) || this._settings.suppressErrors; } - return a + separator + b; - } - exports.joinPathSegments = joinPathSegments; + }; + exports.default = ErrorFilter; } }); -// node_modules/@nodelib/fs.walk/out/readers/reader.js -var require_reader = __commonJS({ - "node_modules/@nodelib/fs.walk/out/readers/reader.js"(exports) { +// node_modules/fast-glob/out/providers/transformers/entry.js +var require_entry2 = __commonJS({ + "node_modules/fast-glob/out/providers/transformers/entry.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var common = require_common4(); - var Reader = class { - constructor(_root, _settings) { - this._root = _root; + var utils = require_utils3(); + var EntryTransformer = class { + constructor(_settings) { this._settings = _settings; - this._root = common.replacePathSegmentSeparator(_root, _settings.pathSegmentSeparator); + } + getTransformer() { + return (entry) => this._transform(entry); + } + _transform(entry) { + let filepath = entry.path; + if (this._settings.absolute) { + filepath = utils.path.makeAbsolute(this._settings.cwd, filepath); + filepath = utils.path.unixify(filepath); + } + if (this._settings.markDirectories && entry.dirent.isDirectory()) { + filepath += "/"; + } + if (!this._settings.objectMode) { + return filepath; + } + return Object.assign(Object.assign({}, entry), { path: filepath }); } }; - exports.default = Reader; + exports.default = EntryTransformer; } }); -// node_modules/@nodelib/fs.walk/out/readers/async.js -var require_async3 = __commonJS({ - "node_modules/@nodelib/fs.walk/out/readers/async.js"(exports) { +// node_modules/fast-glob/out/providers/provider.js +var require_provider = __commonJS({ + "node_modules/fast-glob/out/providers/provider.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var events_1 = __require("events"); - var fsScandir = require_out2(); - var fastq = require_queue(); - var common = require_common4(); - var reader_1 = require_reader(); - var AsyncReader = class extends reader_1.default { - constructor(_root, _settings) { - super(_root, _settings); + var path9 = __require("path"); + var deep_1 = require_deep(); + var entry_1 = require_entry(); + var error_1 = require_error(); + var entry_2 = require_entry2(); + var Provider = class { + constructor(_settings) { this._settings = _settings; - this._scandir = fsScandir.scandir; - this._emitter = new events_1.EventEmitter(); - this._queue = fastq(this._worker.bind(this), this._settings.concurrency); - this._isFatalError = false; - this._isDestroyed = false; - this._queue.drain = () => { - if (!this._isFatalError) { - this._emitter.emit("end"); - } + this.errorFilter = new error_1.default(this._settings); + this.entryFilter = new entry_1.default(this._settings, this._getMicromatchOptions()); + this.deepFilter = new deep_1.default(this._settings, this._getMicromatchOptions()); + this.entryTransformer = new entry_2.default(this._settings); + } + _getRootDirectory(task) { + return path9.resolve(this._settings.cwd, task.base); + } + _getReaderOptions(task) { + const basePath = task.base === "." ? "" : task.base; + return { + basePath, + pathSegmentSeparator: "/", + concurrency: this._settings.concurrency, + deepFilter: this.deepFilter.getFilter(basePath, task.positive, task.negative), + entryFilter: this.entryFilter.getFilter(task.positive, task.negative), + errorFilter: this.errorFilter.getFilter(), + followSymbolicLinks: this._settings.followSymbolicLinks, + fs: this._settings.fs, + stats: this._settings.stats, + throwErrorOnBrokenSymbolicLink: this._settings.throwErrorOnBrokenSymbolicLink, + transform: this.entryTransformer.getTransformer() }; } - read() { - this._isFatalError = false; - this._isDestroyed = false; - setImmediate(() => { - this._pushToQueue(this._root, this._settings.basePath); - }); - return this._emitter; + _getMicromatchOptions() { + return { + dot: this._settings.dot, + matchBase: this._settings.baseNameMatch, + nobrace: !this._settings.braceExpansion, + nocase: !this._settings.caseSensitiveMatch, + noext: !this._settings.extglob, + noglobstar: !this._settings.globstar, + posix: true, + strictSlashes: false + }; } - get isDestroyed() { - return this._isDestroyed; + }; + exports.default = Provider; + } +}); + +// node_modules/fast-glob/out/providers/async.js +var require_async6 = __commonJS({ + "node_modules/fast-glob/out/providers/async.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var async_1 = require_async5(); + var provider_1 = require_provider(); + var ProviderAsync = class extends provider_1.default { + constructor() { + super(...arguments); + this._reader = new async_1.default(this._settings); } - destroy() { - if (this._isDestroyed) { - throw new Error("The reader is already destroyed"); + async read(task) { + const root = this._getRootDirectory(task); + const options8 = this._getReaderOptions(task); + const entries = await this.api(root, task, options8); + return entries.map((entry) => options8.transform(entry)); + } + api(root, task, options8) { + if (task.dynamic) { + return this._reader.dynamic(root, options8); } - this._isDestroyed = true; - this._queue.killAndDrain(); + return this._reader.static(task.patterns, options8); } - onEntry(callback) { - this._emitter.on("entry", callback); + }; + exports.default = ProviderAsync; + } +}); + +// node_modules/fast-glob/out/providers/stream.js +var require_stream4 = __commonJS({ + "node_modules/fast-glob/out/providers/stream.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var stream_1 = __require("stream"); + var stream_2 = require_stream3(); + var provider_1 = require_provider(); + var ProviderStream = class extends provider_1.default { + constructor() { + super(...arguments); + this._reader = new stream_2.default(this._settings); } - onError(callback) { - this._emitter.once("error", callback); + read(task) { + const root = this._getRootDirectory(task); + const options8 = this._getReaderOptions(task); + const source = this.api(root, task, options8); + const destination = new stream_1.Readable({ objectMode: true, read: () => { + } }); + source.once("error", (error) => destination.emit("error", error)).on("data", (entry) => destination.emit("data", options8.transform(entry))).once("end", () => destination.emit("end")); + destination.once("close", () => source.destroy()); + return destination; } - onEnd(callback) { - this._emitter.once("end", callback); + api(root, task, options8) { + if (task.dynamic) { + return this._reader.dynamic(root, options8); + } + return this._reader.static(task.patterns, options8); + } + }; + exports.default = ProviderStream; + } +}); + +// node_modules/fast-glob/out/readers/sync.js +var require_sync5 = __commonJS({ + "node_modules/fast-glob/out/readers/sync.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var fsStat = require_out(); + var fsWalk = require_out3(); + var reader_1 = require_reader2(); + var ReaderSync = class extends reader_1.default { + constructor() { + super(...arguments); + this._walkSync = fsWalk.walkSync; + this._statSync = fsStat.statSync; } - _pushToQueue(directory, base) { - const queueItem = { directory, base }; - this._queue.push(queueItem, (error) => { - if (error !== null) { - this._handleError(error); - } - }); + dynamic(root, options8) { + return this._walkSync(root, options8); } - _worker(item, done) { - this._scandir(item.directory, this._settings.fsScandirSettings, (error, entries) => { - if (error !== null) { - done(error, void 0); - return; - } - for (const entry of entries) { - this._handleEntry(entry, item.base); + static(patterns, options8) { + const entries = []; + for (const pattern of patterns) { + const filepath = this._getFullEntryPath(pattern); + const entry = this._getEntry(filepath, pattern, options8); + if (entry === null || !options8.entryFilter(entry)) { + continue; } - done(null, void 0); - }); - } - _handleError(error) { - if (this._isDestroyed || !common.isFatalError(this._settings, error)) { - return; + entries.push(entry); } - this._isFatalError = true; - this._isDestroyed = true; - this._emitter.emit("error", error); + return entries; } - _handleEntry(entry, base) { - if (this._isDestroyed || this._isFatalError) { - return; - } - const fullpath = entry.path; - if (base !== void 0) { - entry.path = common.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator); - } - if (common.isAppliedFilter(this._settings.entryFilter, entry)) { - this._emitEntry(entry); - } - if (entry.dirent.isDirectory() && common.isAppliedFilter(this._settings.deepFilter, entry)) { - this._pushToQueue(fullpath, base === void 0 ? void 0 : entry.path); + _getEntry(filepath, pattern, options8) { + try { + const stats = this._getStat(filepath); + return this._makeEntry(stats, pattern); + } catch (error) { + if (options8.errorFilter(error)) { + return null; + } + throw error; } } - _emitEntry(entry) { - this._emitter.emit("entry", entry); + _getStat(filepath) { + return this._statSync(filepath, this._fsStatSettings); } }; - exports.default = AsyncReader; + exports.default = ReaderSync; } }); -// node_modules/@nodelib/fs.walk/out/providers/async.js -var require_async4 = __commonJS({ - "node_modules/@nodelib/fs.walk/out/providers/async.js"(exports) { +// node_modules/fast-glob/out/providers/sync.js +var require_sync6 = __commonJS({ + "node_modules/fast-glob/out/providers/sync.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var async_1 = require_async3(); - var AsyncProvider = class { - constructor(_root, _settings) { - this._root = _root; - this._settings = _settings; - this._reader = new async_1.default(this._root, this._settings); - this._storage = []; + var sync_1 = require_sync5(); + var provider_1 = require_provider(); + var ProviderSync = class extends provider_1.default { + constructor() { + super(...arguments); + this._reader = new sync_1.default(this._settings); } - read(callback) { - this._reader.onError((error) => { - callFailureCallback(callback, error); - }); - this._reader.onEntry((entry) => { - this._storage.push(entry); - }); - this._reader.onEnd(() => { - callSuccessCallback(callback, this._storage); - }); - this._reader.read(); + read(task) { + const root = this._getRootDirectory(task); + const options8 = this._getReaderOptions(task); + const entries = this.api(root, task, options8); + return entries.map(options8.transform); + } + api(root, task, options8) { + if (task.dynamic) { + return this._reader.dynamic(root, options8); + } + return this._reader.static(task.patterns, options8); } }; - exports.default = AsyncProvider; - function callFailureCallback(callback, error) { - callback(error); - } - function callSuccessCallback(callback, entries) { - callback(null, entries); - } + exports.default = ProviderSync; } }); -// node_modules/@nodelib/fs.walk/out/providers/stream.js -var require_stream2 = __commonJS({ - "node_modules/@nodelib/fs.walk/out/providers/stream.js"(exports) { +// node_modules/fast-glob/out/settings.js +var require_settings4 = __commonJS({ + "node_modules/fast-glob/out/settings.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var stream_1 = __require("stream"); - var async_1 = require_async3(); - var StreamProvider = class { - constructor(_root, _settings) { - this._root = _root; - this._settings = _settings; - this._reader = new async_1.default(this._root, this._settings); - this._stream = new stream_1.Readable({ - objectMode: true, - read: () => { - }, - destroy: () => { - if (!this._reader.isDestroyed) { - this._reader.destroy(); - } - } - }); + exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0; + var fs5 = __require("fs"); + var os2 = __require("os"); + var CPU_COUNT = Math.max(os2.cpus().length, 1); + exports.DEFAULT_FILE_SYSTEM_ADAPTER = { + lstat: fs5.lstat, + lstatSync: fs5.lstatSync, + stat: fs5.stat, + statSync: fs5.statSync, + readdir: fs5.readdir, + readdirSync: fs5.readdirSync + }; + var Settings = class { + constructor(_options = {}) { + this._options = _options; + this.absolute = this._getValue(this._options.absolute, false); + this.baseNameMatch = this._getValue(this._options.baseNameMatch, false); + this.braceExpansion = this._getValue(this._options.braceExpansion, true); + this.caseSensitiveMatch = this._getValue(this._options.caseSensitiveMatch, true); + this.concurrency = this._getValue(this._options.concurrency, CPU_COUNT); + this.cwd = this._getValue(this._options.cwd, process.cwd()); + this.deep = this._getValue(this._options.deep, Infinity); + this.dot = this._getValue(this._options.dot, false); + this.extglob = this._getValue(this._options.extglob, true); + this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, true); + this.fs = this._getFileSystemMethods(this._options.fs); + this.globstar = this._getValue(this._options.globstar, true); + this.ignore = this._getValue(this._options.ignore, []); + this.markDirectories = this._getValue(this._options.markDirectories, false); + this.objectMode = this._getValue(this._options.objectMode, false); + this.onlyDirectories = this._getValue(this._options.onlyDirectories, false); + this.onlyFiles = this._getValue(this._options.onlyFiles, true); + this.stats = this._getValue(this._options.stats, false); + this.suppressErrors = this._getValue(this._options.suppressErrors, false); + this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, false); + this.unique = this._getValue(this._options.unique, true); + if (this.onlyDirectories) { + this.onlyFiles = false; + } + if (this.stats) { + this.objectMode = true; + } + this.ignore = [].concat(this.ignore); } - read() { - this._reader.onError((error) => { - this._stream.emit("error", error); - }); - this._reader.onEntry((entry) => { - this._stream.push(entry); - }); - this._reader.onEnd(() => { - this._stream.push(null); - }); - this._reader.read(); - return this._stream; + _getValue(option, value) { + return option === void 0 ? value : option; + } + _getFileSystemMethods(methods = {}) { + return Object.assign(Object.assign({}, exports.DEFAULT_FILE_SYSTEM_ADAPTER), methods); } }; - exports.default = StreamProvider; + exports.default = Settings; } }); -// node_modules/@nodelib/fs.walk/out/readers/sync.js -var require_sync3 = __commonJS({ - "node_modules/@nodelib/fs.walk/out/readers/sync.js"(exports) { +// node_modules/fast-glob/out/index.js +var require_out4 = __commonJS({ + "node_modules/fast-glob/out/index.js"(exports, module) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var fsScandir = require_out2(); - var common = require_common4(); - var reader_1 = require_reader(); - var SyncReader = class extends reader_1.default { - constructor() { - super(...arguments); - this._scandir = fsScandir.scandirSync; - this._storage = []; - this._queue = /* @__PURE__ */ new Set(); - } - read() { - this._pushToQueue(this._root, this._settings.basePath); - this._handleQueue(); - return this._storage; - } - _pushToQueue(directory, base) { - this._queue.add({ directory, base }); - } - _handleQueue() { - for (const item of this._queue.values()) { - this._handleDirectory(item.directory, item.base); - } - } - _handleDirectory(directory, base) { - try { - const entries = this._scandir(directory, this._settings.fsScandirSettings); - for (const entry of entries) { - this._handleEntry(entry, base); - } - } catch (error) { - this._handleError(error); - } + var taskManager = require_tasks(); + var async_1 = require_async6(); + var stream_1 = require_stream4(); + var sync_1 = require_sync6(); + var settings_1 = require_settings4(); + var utils = require_utils3(); + async function FastGlob(source, options8) { + assertPatternsInput(source); + const works = getWorks(source, async_1.default, options8); + const result = await Promise.all(works); + return utils.array.flatten(result); + } + (function(FastGlob2) { + FastGlob2.glob = FastGlob2; + FastGlob2.globSync = sync; + FastGlob2.globStream = stream; + FastGlob2.async = FastGlob2; + function sync(source, options8) { + assertPatternsInput(source); + const works = getWorks(source, sync_1.default, options8); + return utils.array.flatten(works); } - _handleError(error) { - if (!common.isFatalError(this._settings, error)) { - return; - } - throw error; + FastGlob2.sync = sync; + function stream(source, options8) { + assertPatternsInput(source); + const works = getWorks(source, stream_1.default, options8); + return utils.stream.merge(works); } - _handleEntry(entry, base) { - const fullpath = entry.path; - if (base !== void 0) { - entry.path = common.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator); - } - if (common.isAppliedFilter(this._settings.entryFilter, entry)) { - this._pushToStorage(entry); - } - if (entry.dirent.isDirectory() && common.isAppliedFilter(this._settings.deepFilter, entry)) { - this._pushToQueue(fullpath, base === void 0 ? void 0 : entry.path); - } + FastGlob2.stream = stream; + function generateTasks(source, options8) { + assertPatternsInput(source); + const patterns = [].concat(source); + const settings = new settings_1.default(options8); + return taskManager.generate(patterns, settings); } - _pushToStorage(entry) { - this._storage.push(entry); + FastGlob2.generateTasks = generateTasks; + function isDynamicPattern(source, options8) { + assertPatternsInput(source); + const settings = new settings_1.default(options8); + return utils.pattern.isDynamicPattern(source, settings); } - }; - exports.default = SyncReader; - } -}); - -// node_modules/@nodelib/fs.walk/out/providers/sync.js -var require_sync4 = __commonJS({ - "node_modules/@nodelib/fs.walk/out/providers/sync.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var sync_1 = require_sync3(); - var SyncProvider = class { - constructor(_root, _settings) { - this._root = _root; - this._settings = _settings; - this._reader = new sync_1.default(this._root, this._settings); + FastGlob2.isDynamicPattern = isDynamicPattern; + function escapePath(source) { + assertPatternsInput(source); + return utils.path.escape(source); } - read() { - return this._reader.read(); + FastGlob2.escapePath = escapePath; + function convertPathToPattern(source) { + assertPatternsInput(source); + return utils.path.convertPathToPattern(source); + } + FastGlob2.convertPathToPattern = convertPathToPattern; + let posix; + (function(posix2) { + function escapePath2(source) { + assertPatternsInput(source); + return utils.path.escapePosixPath(source); + } + posix2.escapePath = escapePath2; + function convertPathToPattern2(source) { + assertPatternsInput(source); + return utils.path.convertPosixPathToPattern(source); + } + posix2.convertPathToPattern = convertPathToPattern2; + })(posix = FastGlob2.posix || (FastGlob2.posix = {})); + let win32; + (function(win322) { + function escapePath2(source) { + assertPatternsInput(source); + return utils.path.escapeWindowsPath(source); + } + win322.escapePath = escapePath2; + function convertPathToPattern2(source) { + assertPatternsInput(source); + return utils.path.convertWindowsPathToPattern(source); + } + win322.convertPathToPattern = convertPathToPattern2; + })(win32 = FastGlob2.win32 || (FastGlob2.win32 = {})); + })(FastGlob || (FastGlob = {})); + function getWorks(source, _Provider, options8) { + const patterns = [].concat(source); + const settings = new settings_1.default(options8); + const tasks = taskManager.generate(patterns, settings); + const provider = new _Provider(settings); + return tasks.map(provider.read, provider); + } + function assertPatternsInput(input) { + const source = [].concat(input); + const isValidSource = source.every((item) => utils.string.isString(item) && !utils.string.isEmpty(item)); + if (!isValidSource) { + throw new TypeError("Patterns must be a string (non empty) or an array of strings"); } - }; - exports.default = SyncProvider; + } + module.exports = FastGlob; } }); -// node_modules/@nodelib/fs.walk/out/settings.js -var require_settings3 = __commonJS({ - "node_modules/@nodelib/fs.walk/out/settings.js"(exports) { +// node_modules/diff/lib/diff/base.js +var require_base = __commonJS({ + "node_modules/diff/lib/diff/base.js"(exports) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var path9 = __require("path"); - var fsScandir = require_out2(); - var Settings = class { - constructor(_options = {}) { - this._options = _options; - this.basePath = this._getValue(this._options.basePath, void 0); - this.concurrency = this._getValue(this._options.concurrency, Number.POSITIVE_INFINITY); - this.deepFilter = this._getValue(this._options.deepFilter, null); - this.entryFilter = this._getValue(this._options.entryFilter, null); - this.errorFilter = this._getValue(this._options.errorFilter, null); - this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path9.sep); - this.fsScandirSettings = new fsScandir.Settings({ - followSymbolicLinks: this._options.followSymbolicLinks, - fs: this._options.fs, - pathSegmentSeparator: this._options.pathSegmentSeparator, - stats: this._options.stats, - throwErrorOnBrokenSymbolicLink: this._options.throwErrorOnBrokenSymbolicLink - }); - } - _getValue(option, value) { - return option !== null && option !== void 0 ? option : value; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports["default"] = Diff; + function Diff() { + } + Diff.prototype = { + /*istanbul ignore start*/ + /*istanbul ignore end*/ + diff: function diff(oldString, newString) { + var options8 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + var callback = options8.callback; + if (typeof options8 === "function") { + callback = options8; + options8 = {}; + } + this.options = options8; + var self = this; + function done(value) { + if (callback) { + setTimeout(function() { + callback(void 0, value); + }, 0); + return true; + } else { + return value; + } + } + oldString = this.castInput(oldString); + newString = this.castInput(newString); + oldString = this.removeEmpty(this.tokenize(oldString)); + newString = this.removeEmpty(this.tokenize(newString)); + var newLen = newString.length, oldLen = oldString.length; + var editLength = 1; + var maxEditLength = newLen + oldLen; + if (options8.maxEditLength) { + maxEditLength = Math.min(maxEditLength, options8.maxEditLength); + } + var bestPath = [{ + newPos: -1, + components: [] + }]; + var oldPos = this.extractCommon(bestPath[0], newString, oldString, 0); + if (bestPath[0].newPos + 1 >= newLen && oldPos + 1 >= oldLen) { + return done([{ + value: this.join(newString), + count: newString.length + }]); + } + function execEditLength() { + for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) { + var basePath = ( + /*istanbul ignore start*/ + void 0 + ); + var addPath = bestPath[diagonalPath - 1], removePath = bestPath[diagonalPath + 1], _oldPos = (removePath ? removePath.newPos : 0) - diagonalPath; + if (addPath) { + bestPath[diagonalPath - 1] = void 0; + } + var canAdd = addPath && addPath.newPos + 1 < newLen, canRemove = removePath && 0 <= _oldPos && _oldPos < oldLen; + if (!canAdd && !canRemove) { + bestPath[diagonalPath] = void 0; + continue; + } + if (!canAdd || canRemove && addPath.newPos < removePath.newPos) { + basePath = clonePath(removePath); + self.pushComponent(basePath.components, void 0, true); + } else { + basePath = addPath; + basePath.newPos++; + self.pushComponent(basePath.components, true, void 0); + } + _oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath); + if (basePath.newPos + 1 >= newLen && _oldPos + 1 >= oldLen) { + return done(buildValues(self, basePath.components, newString, oldString, self.useLongestToken)); + } else { + bestPath[diagonalPath] = basePath; + } + } + editLength++; + } + if (callback) { + (function exec() { + setTimeout(function() { + if (editLength > maxEditLength) { + return callback(); + } + if (!execEditLength()) { + exec(); + } + }, 0); + })(); + } else { + while (editLength <= maxEditLength) { + var ret = execEditLength(); + if (ret) { + return ret; + } + } + } + }, + /*istanbul ignore start*/ + /*istanbul ignore end*/ + pushComponent: function pushComponent(components, added, removed) { + var last = components[components.length - 1]; + if (last && last.added === added && last.removed === removed) { + components[components.length - 1] = { + count: last.count + 1, + added, + removed + }; + } else { + components.push({ + count: 1, + added, + removed + }); + } + }, + /*istanbul ignore start*/ + /*istanbul ignore end*/ + extractCommon: function extractCommon(basePath, newString, oldString, diagonalPath) { + var newLen = newString.length, oldLen = oldString.length, newPos = basePath.newPos, oldPos = newPos - diagonalPath, commonCount = 0; + while (newPos + 1 < newLen && oldPos + 1 < oldLen && this.equals(newString[newPos + 1], oldString[oldPos + 1])) { + newPos++; + oldPos++; + commonCount++; + } + if (commonCount) { + basePath.components.push({ + count: commonCount + }); + } + basePath.newPos = newPos; + return oldPos; + }, + /*istanbul ignore start*/ + /*istanbul ignore end*/ + equals: function equals(left, right) { + if (this.options.comparator) { + return this.options.comparator(left, right); + } else { + return left === right || this.options.ignoreCase && left.toLowerCase() === right.toLowerCase(); + } + }, + /*istanbul ignore start*/ + /*istanbul ignore end*/ + removeEmpty: function removeEmpty(array2) { + var ret = []; + for (var i = 0; i < array2.length; i++) { + if (array2[i]) { + ret.push(array2[i]); + } + } + return ret; + }, + /*istanbul ignore start*/ + /*istanbul ignore end*/ + castInput: function castInput(value) { + return value; + }, + /*istanbul ignore start*/ + /*istanbul ignore end*/ + tokenize: function tokenize(value) { + return value.split(""); + }, + /*istanbul ignore start*/ + /*istanbul ignore end*/ + join: function join2(chars) { + return chars.join(""); } }; - exports.default = Settings; - } -}); - -// node_modules/@nodelib/fs.walk/out/index.js -var require_out3 = __commonJS({ - "node_modules/@nodelib/fs.walk/out/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0; - var async_1 = require_async4(); - var stream_1 = require_stream2(); - var sync_1 = require_sync4(); - var settings_1 = require_settings3(); - exports.Settings = settings_1.default; - function walk(directory, optionsOrSettingsOrCallback, callback) { - if (typeof optionsOrSettingsOrCallback === "function") { - new async_1.default(directory, getSettings()).read(optionsOrSettingsOrCallback); - return; + function buildValues(diff, components, newString, oldString, useLongestToken) { + var componentPos = 0, componentLen = components.length, newPos = 0, oldPos = 0; + for (; componentPos < componentLen; componentPos++) { + var component = components[componentPos]; + if (!component.removed) { + if (!component.added && useLongestToken) { + var value = newString.slice(newPos, newPos + component.count); + value = value.map(function(value2, i) { + var oldValue = oldString[oldPos + i]; + return oldValue.length > value2.length ? oldValue : value2; + }); + component.value = diff.join(value); + } else { + component.value = diff.join(newString.slice(newPos, newPos + component.count)); + } + newPos += component.count; + if (!component.added) { + oldPos += component.count; + } + } else { + component.value = diff.join(oldString.slice(oldPos, oldPos + component.count)); + oldPos += component.count; + if (componentPos && components[componentPos - 1].added) { + var tmp = components[componentPos - 1]; + components[componentPos - 1] = components[componentPos]; + components[componentPos] = tmp; + } + } } - new async_1.default(directory, getSettings(optionsOrSettingsOrCallback)).read(callback); - } - exports.walk = walk; - function walkSync(directory, optionsOrSettings) { - const settings = getSettings(optionsOrSettings); - const provider = new sync_1.default(directory, settings); - return provider.read(); - } - exports.walkSync = walkSync; - function walkStream(directory, optionsOrSettings) { - const settings = getSettings(optionsOrSettings); - const provider = new stream_1.default(directory, settings); - return provider.read(); - } - exports.walkStream = walkStream; - function getSettings(settingsOrOptions = {}) { - if (settingsOrOptions instanceof settings_1.default) { - return settingsOrOptions; + var lastComponent = components[componentLen - 1]; + if (componentLen > 1 && typeof lastComponent.value === "string" && (lastComponent.added || lastComponent.removed) && diff.equals("", lastComponent.value)) { + components[componentLen - 2].value += lastComponent.value; + components.pop(); } - return new settings_1.default(settingsOrOptions); + return components; + } + function clonePath(path9) { + return { + newPos: path9.newPos, + components: path9.components.slice(0) + }; } } }); -// node_modules/fast-glob/out/readers/reader.js -var require_reader2 = __commonJS({ - "node_modules/fast-glob/out/readers/reader.js"(exports) { +// node_modules/diff/lib/diff/array.js +var require_array2 = __commonJS({ + "node_modules/diff/lib/diff/array.js"(exports) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var path9 = __require("path"); - var fsStat = require_out(); - var utils = require_utils4(); - var Reader = class { - constructor(_settings) { - this._settings = _settings; - this._fsStatSettings = new fsStat.Settings({ - followSymbolicLink: this._settings.followSymbolicLinks, - fs: this._settings.fs, - throwErrorOnBrokenSymbolicLink: this._settings.followSymbolicLinks - }); - } - _getFullEntryPath(filepath) { - return path9.resolve(this._settings.cwd, filepath); - } - _makeEntry(stats, pattern) { - const entry = { - name: pattern, - path: pattern, - dirent: utils.fs.createDirentFromStats(pattern, stats) - }; - if (this._settings.stats) { - entry.stats = stats; - } - return entry; - } - _isFatalError(error) { - return !utils.errno.isEnoentCodeError(error) && !this._settings.suppressErrors; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.diffArrays = diffArrays2; + exports.arrayDiff = void 0; + var _base = _interopRequireDefault(require_base()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { "default": obj }; + } + var arrayDiff = new /*istanbul ignore start*/ + _base[ + /*istanbul ignore start*/ + "default" + /*istanbul ignore end*/ + ](); + exports.arrayDiff = arrayDiff; + arrayDiff.tokenize = function(value) { + return value.slice(); }; - exports.default = Reader; + arrayDiff.join = arrayDiff.removeEmpty = function(value) { + return value; + }; + function diffArrays2(oldArr, newArr, callback) { + return arrayDiff.diff(oldArr, newArr, callback); + } } }); -// node_modules/fast-glob/out/readers/stream.js -var require_stream3 = __commonJS({ - "node_modules/fast-glob/out/readers/stream.js"(exports) { +// node_modules/n-readlines/readlines.js +var require_readlines = __commonJS({ + "node_modules/n-readlines/readlines.js"(exports, module) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var stream_1 = __require("stream"); - var fsStat = require_out(); - var fsWalk = require_out3(); - var reader_1 = require_reader2(); - var ReaderStream = class extends reader_1.default { - constructor() { - super(...arguments); - this._walkStream = fsWalk.walkStream; - this._stat = fsStat.stat; - } - dynamic(root, options8) { - return this._walkStream(root, options8); - } - static(patterns, options8) { - const filepaths = patterns.map(this._getFullEntryPath, this); - const stream = new stream_1.PassThrough({ objectMode: true }); - stream._write = (index, _enc, done) => { - return this._getEntry(filepaths[index], patterns[index], options8).then((entry) => { - if (entry !== null && options8.entryFilter(entry)) { - stream.push(entry); - } - if (index === filepaths.length - 1) { - stream.end(); - } - done(); - }).catch(done); - }; - for (let i = 0; i < filepaths.length; i++) { - stream.write(i); + var fs5 = __require("fs"); + var LineByLine = class { + constructor(file, options8) { + options8 = options8 || {}; + if (!options8.readChunk) + options8.readChunk = 1024; + if (!options8.newLineCharacter) { + options8.newLineCharacter = 10; + } else { + options8.newLineCharacter = options8.newLineCharacter.charCodeAt(0); } - return stream; + if (typeof file === "number") { + this.fd = file; + } else { + this.fd = fs5.openSync(file, "r"); + } + this.options = options8; + this.newLineCharacter = options8.newLineCharacter; + this.reset(); } - _getEntry(filepath, pattern, options8) { - return this._getStat(filepath).then((stats) => this._makeEntry(stats, pattern)).catch((error) => { - if (options8.errorFilter(error)) { - return null; + _searchInBuffer(buffer, hexNeedle) { + let found = -1; + for (let i = 0; i <= buffer.length; i++) { + let b_byte = buffer[i]; + if (b_byte === hexNeedle) { + found = i; + break; } - throw error; - }); - } - _getStat(filepath) { - return new Promise((resolve2, reject) => { - this._stat(filepath, this._fsStatSettings, (error, stats) => { - return error === null ? resolve2(stats) : reject(error); - }); - }); - } - }; - exports.default = ReaderStream; - } -}); - -// node_modules/fast-glob/out/readers/async.js -var require_async5 = __commonJS({ - "node_modules/fast-glob/out/readers/async.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var fsWalk = require_out3(); - var reader_1 = require_reader2(); - var stream_1 = require_stream3(); - var ReaderAsync = class extends reader_1.default { - constructor() { - super(...arguments); - this._walkAsync = fsWalk.walk; - this._readerStream = new stream_1.default(this._settings); - } - dynamic(root, options8) { - return new Promise((resolve2, reject) => { - this._walkAsync(root, options8, (error, entries) => { - if (error === null) { - resolve2(entries); - } else { - reject(error); - } - }); - }); - } - async static(patterns, options8) { - const entries = []; - const stream = this._readerStream.static(patterns, options8); - return new Promise((resolve2, reject) => { - stream.once("error", reject); - stream.on("data", (entry) => entries.push(entry)); - stream.once("end", () => resolve2(entries)); - }); + } + return found; } - }; - exports.default = ReaderAsync; - } -}); - -// node_modules/fast-glob/out/providers/matchers/matcher.js -var require_matcher = __commonJS({ - "node_modules/fast-glob/out/providers/matchers/matcher.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var utils = require_utils4(); - var Matcher = class { - constructor(_patterns, _settings, _micromatchOptions) { - this._patterns = _patterns; - this._settings = _settings; - this._micromatchOptions = _micromatchOptions; - this._storage = []; - this._fillStorage(); + reset() { + this.eofReached = false; + this.linesCache = []; + this.fdPosition = 0; } - _fillStorage() { - const patterns = utils.pattern.expandPatternsWithBraceExpansion(this._patterns); - for (const pattern of patterns) { - const segments = this._getPatternSegments(pattern); - const sections = this._splitSegmentsIntoSections(segments); - this._storage.push({ - complete: sections.length <= 1, - pattern, - segments, - sections - }); + close() { + fs5.closeSync(this.fd); + this.fd = null; + } + _extractLines(buffer) { + let line2; + const lines = []; + let bufferPosition = 0; + let lastNewLineBufferPosition = 0; + while (true) { + let bufferPositionValue = buffer[bufferPosition++]; + if (bufferPositionValue === this.newLineCharacter) { + line2 = buffer.slice(lastNewLineBufferPosition, bufferPosition); + lines.push(line2); + lastNewLineBufferPosition = bufferPosition; + } else if (bufferPositionValue === void 0) { + break; + } + } + let leftovers = buffer.slice(lastNewLineBufferPosition, bufferPosition); + if (leftovers.length) { + lines.push(leftovers); } + return lines; } - _getPatternSegments(pattern) { - const parts = utils.pattern.getPatternParts(pattern, this._micromatchOptions); - return parts.map((part) => { - const dynamic = utils.pattern.isDynamicPattern(part, this._settings); - if (!dynamic) { - return { - dynamic: false, - pattern: part - }; + _readChunk(lineLeftovers) { + let totalBytesRead = 0; + let bytesRead; + const buffers = []; + do { + const readBuffer = Buffer.alloc(this.options.readChunk); + bytesRead = fs5.readSync(this.fd, readBuffer, 0, this.options.readChunk, this.fdPosition); + totalBytesRead = totalBytesRead + bytesRead; + this.fdPosition = this.fdPosition + bytesRead; + buffers.push(readBuffer); + } while (bytesRead && this._searchInBuffer(buffers[buffers.length - 1], this.options.newLineCharacter) === -1); + let bufferData = Buffer.concat(buffers); + if (bytesRead < this.options.readChunk) { + this.eofReached = true; + bufferData = bufferData.slice(0, totalBytesRead); + } + if (totalBytesRead) { + this.linesCache = this._extractLines(bufferData); + if (lineLeftovers) { + this.linesCache[0] = Buffer.concat([lineLeftovers, this.linesCache[0]]); } - return { - dynamic: true, - pattern: part, - patternRe: utils.pattern.makeRe(part, this._micromatchOptions) - }; - }); + } + return totalBytesRead; } - _splitSegmentsIntoSections(segments) { - return utils.array.splitWhen(segments, (segment) => segment.dynamic && utils.pattern.hasGlobStar(segment.pattern)); + next() { + if (!this.fd) + return false; + let line2 = false; + if (this.eofReached && this.linesCache.length === 0) { + return line2; + } + let bytesRead; + if (!this.linesCache.length) { + bytesRead = this._readChunk(); + } + if (this.linesCache.length) { + line2 = this.linesCache.shift(); + const lastLineCharacter = line2[line2.length - 1]; + if (lastLineCharacter !== this.newLineCharacter) { + bytesRead = this._readChunk(line2); + if (bytesRead) { + line2 = this.linesCache.shift(); + } + } + } + if (this.eofReached && this.linesCache.length === 0) { + this.close(); + } + if (line2 && line2[line2.length - 1] === this.newLineCharacter) { + line2 = line2.slice(0, line2.length - 1); + } + return line2; } }; - exports.default = Matcher; + module.exports = LineByLine; } }); -// node_modules/fast-glob/out/providers/matchers/partial.js -var require_partial = __commonJS({ - "node_modules/fast-glob/out/providers/matchers/partial.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var matcher_1 = require_matcher(); - var PartialMatcher = class extends matcher_1.default { - match(filepath) { - const parts = filepath.split("/"); - const levels = parts.length; - const patterns = this._storage.filter((info) => !info.complete || info.segments.length > levels); - for (const pattern of patterns) { - const section = pattern.sections[0]; - if (!pattern.complete && levels > section.length) { - return true; - } - const match = parts.every((part, index) => { - const segment = pattern.segments[index]; - if (segment.dynamic && segment.patternRe.test(part)) { - return true; - } - if (!segment.dynamic && segment.pattern === part) { - return true; - } - return false; - }); - if (match) { - return true; - } - } - return false; - } +// node_modules/js-tokens/index.js +var require_js_tokens = __commonJS({ + "node_modules/js-tokens/index.js"(exports) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = /((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g; + exports.matchToToken = function(match) { + var token = { type: "invalid", value: match[0], closed: void 0 }; + if (match[1]) + token.type = "string", token.closed = !!(match[3] || match[4]); + else if (match[5]) + token.type = "comment"; + else if (match[6]) + token.type = "comment", token.closed = !!match[7]; + else if (match[8]) + token.type = "regex"; + else if (match[9]) + token.type = "number"; + else if (match[10]) + token.type = "name"; + else if (match[11]) + token.type = "punctuator"; + else if (match[12]) + token.type = "whitespace"; + return token; }; - exports.default = PartialMatcher; } }); -// node_modules/fast-glob/out/providers/filters/deep.js -var require_deep = __commonJS({ - "node_modules/fast-glob/out/providers/filters/deep.js"(exports) { +// node_modules/@babel/helper-validator-identifier/lib/identifier.js +var require_identifier = __commonJS({ + "node_modules/@babel/helper-validator-identifier/lib/identifier.js"(exports) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var utils = require_utils4(); - var partial_1 = require_partial(); - var DeepFilter = class { - constructor(_settings, _micromatchOptions) { - this._settings = _settings; - this._micromatchOptions = _micromatchOptions; - } - getFilter(basePath, positive, negative) { - const matcher = this._getMatcher(positive); - const negativeRe = this._getNegativePatternsRe(negative); - return (entry) => this._filter(basePath, entry, matcher, negativeRe); + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.isIdentifierChar = isIdentifierChar; + exports.isIdentifierName = isIdentifierName; + exports.isIdentifierStart = isIdentifierStart; + var nonASCIIidentifierStartChars = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC"; + var nonASCIIidentifierChars = "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F"; + var nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]"); + var nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]"); + nonASCIIidentifierStartChars = nonASCIIidentifierChars = null; + var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 159, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 264, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 757, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 3104, 541, 1507, 4938, 6, 4191]; + var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 81, 2, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 406, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239]; + function isInAstralSet(code, set) { + let pos = 65536; + for (let i = 0, length = set.length; i < length; i += 2) { + pos += set[i]; + if (pos > code) + return false; + pos += set[i + 1]; + if (pos >= code) + return true; } - _getMatcher(patterns) { - return new partial_1.default(patterns, this._settings, this._micromatchOptions); + return false; + } + function isIdentifierStart(code) { + if (code < 65) + return code === 36; + if (code <= 90) + return true; + if (code < 97) + return code === 95; + if (code <= 122) + return true; + if (code <= 65535) { + return code >= 170 && nonASCIIidentifierStart.test(String.fromCharCode(code)); } - _getNegativePatternsRe(patterns) { - const affectDepthOfReadingPatterns = patterns.filter(utils.pattern.isAffectDepthOfReadingPattern); - return utils.pattern.convertPatternsToRe(affectDepthOfReadingPatterns, this._micromatchOptions); + return isInAstralSet(code, astralIdentifierStartCodes); + } + function isIdentifierChar(code) { + if (code < 48) + return code === 36; + if (code < 58) + return true; + if (code < 65) + return false; + if (code <= 90) + return true; + if (code < 97) + return code === 95; + if (code <= 122) + return true; + if (code <= 65535) { + return code >= 170 && nonASCIIidentifier.test(String.fromCharCode(code)); } - _filter(basePath, entry, matcher, negativeRe) { - if (this._isSkippedByDeep(basePath, entry.path)) { - return false; - } - if (this._isSkippedSymbolicLink(entry)) { - return false; - } - const filepath = utils.path.removeLeadingDotSegment(entry.path); - if (this._isSkippedByPositivePatterns(filepath, matcher)) { - return false; + return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes); + } + function isIdentifierName(name) { + let isFirst = true; + for (let i = 0; i < name.length; i++) { + let cp = name.charCodeAt(i); + if ((cp & 64512) === 55296 && i + 1 < name.length) { + const trail = name.charCodeAt(++i); + if ((trail & 64512) === 56320) { + cp = 65536 + ((cp & 1023) << 10) + (trail & 1023); + } } - return this._isSkippedByNegativePatterns(filepath, negativeRe); - } - _isSkippedByDeep(basePath, entryPath) { - if (this._settings.deep === Infinity) { + if (isFirst) { + isFirst = false; + if (!isIdentifierStart(cp)) { + return false; + } + } else if (!isIdentifierChar(cp)) { return false; } - return this._getEntryLevel(basePath, entryPath) >= this._settings.deep; - } - _getEntryLevel(basePath, entryPath) { - const entryPathDepth = entryPath.split("/").length; - if (basePath === "") { - return entryPathDepth; - } - const basePathDepth = basePath.split("/").length; - return entryPathDepth - basePathDepth; - } - _isSkippedSymbolicLink(entry) { - return !this._settings.followSymbolicLinks && entry.dirent.isSymbolicLink(); - } - _isSkippedByPositivePatterns(entryPath, matcher) { - return !this._settings.baseNameMatch && !matcher.match(entryPath); - } - _isSkippedByNegativePatterns(entryPath, patternsRe) { - return !utils.pattern.matchAny(entryPath, patternsRe); } + return !isFirst; + } + } +}); + +// node_modules/@babel/helper-validator-identifier/lib/keyword.js +var require_keyword = __commonJS({ + "node_modules/@babel/helper-validator-identifier/lib/keyword.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.isKeyword = isKeyword; + exports.isReservedWord = isReservedWord; + exports.isStrictBindOnlyReservedWord = isStrictBindOnlyReservedWord; + exports.isStrictBindReservedWord = isStrictBindReservedWord; + exports.isStrictReservedWord = isStrictReservedWord; + var reservedWords = { + keyword: ["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "switch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import", "null", "true", "false", "in", "instanceof", "typeof", "void", "delete"], + strict: ["implements", "interface", "let", "package", "private", "protected", "public", "static", "yield"], + strictBind: ["eval", "arguments"] }; - exports.default = DeepFilter; + var keywords = new Set(reservedWords.keyword); + var reservedWordsStrictSet = new Set(reservedWords.strict); + var reservedWordsStrictBindSet = new Set(reservedWords.strictBind); + function isReservedWord(word, inModule) { + return inModule && word === "await" || word === "enum"; + } + function isStrictReservedWord(word, inModule) { + return isReservedWord(word, inModule) || reservedWordsStrictSet.has(word); + } + function isStrictBindOnlyReservedWord(word) { + return reservedWordsStrictBindSet.has(word); + } + function isStrictBindReservedWord(word, inModule) { + return isStrictReservedWord(word, inModule) || isStrictBindOnlyReservedWord(word); + } + function isKeyword(word) { + return keywords.has(word); + } } }); -// node_modules/fast-glob/out/providers/filters/entry.js -var require_entry = __commonJS({ - "node_modules/fast-glob/out/providers/filters/entry.js"(exports) { +// node_modules/@babel/helper-validator-identifier/lib/index.js +var require_lib = __commonJS({ + "node_modules/@babel/helper-validator-identifier/lib/index.js"(exports) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var utils = require_utils4(); - var EntryFilter = class { - constructor(_settings, _micromatchOptions) { - this._settings = _settings; - this._micromatchOptions = _micromatchOptions; - this.index = /* @__PURE__ */ new Map(); + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.defineProperty(exports, "isIdentifierChar", { + enumerable: true, + get: function() { + return _identifier.isIdentifierChar; } - getFilter(positive, negative) { - const positiveRe = utils.pattern.convertPatternsToRe(positive, this._micromatchOptions); - const negativeRe = utils.pattern.convertPatternsToRe(negative, this._micromatchOptions); - return (entry) => this._filter(entry, positiveRe, negativeRe); + }); + Object.defineProperty(exports, "isIdentifierName", { + enumerable: true, + get: function() { + return _identifier.isIdentifierName; } - _filter(entry, positiveRe, negativeRe) { - if (this._settings.unique && this._isDuplicateEntry(entry)) { - return false; - } - if (this._onlyFileFilter(entry) || this._onlyDirectoryFilter(entry)) { - return false; - } - if (this._isSkippedByAbsoluteNegativePatterns(entry.path, negativeRe)) { - return false; - } - const filepath = this._settings.baseNameMatch ? entry.name : entry.path; - const isDirectory = entry.dirent.isDirectory(); - const isMatched = this._isMatchToPatterns(filepath, positiveRe, isDirectory) && !this._isMatchToPatterns(entry.path, negativeRe, isDirectory); - if (this._settings.unique && isMatched) { - this._createIndexRecord(entry); - } - return isMatched; + }); + Object.defineProperty(exports, "isIdentifierStart", { + enumerable: true, + get: function() { + return _identifier.isIdentifierStart; } - _isDuplicateEntry(entry) { - return this.index.has(entry.path); + }); + Object.defineProperty(exports, "isKeyword", { + enumerable: true, + get: function() { + return _keyword.isKeyword; } - _createIndexRecord(entry) { - this.index.set(entry.path, void 0); + }); + Object.defineProperty(exports, "isReservedWord", { + enumerable: true, + get: function() { + return _keyword.isReservedWord; } - _onlyFileFilter(entry) { - return this._settings.onlyFiles && !entry.dirent.isFile(); + }); + Object.defineProperty(exports, "isStrictBindOnlyReservedWord", { + enumerable: true, + get: function() { + return _keyword.isStrictBindOnlyReservedWord; } - _onlyDirectoryFilter(entry) { - return this._settings.onlyDirectories && !entry.dirent.isDirectory(); + }); + Object.defineProperty(exports, "isStrictBindReservedWord", { + enumerable: true, + get: function() { + return _keyword.isStrictBindReservedWord; } - _isSkippedByAbsoluteNegativePatterns(entryPath, patternsRe) { - if (!this._settings.absolute) { - return false; - } - const fullpath = utils.path.makeAbsolute(this._settings.cwd, entryPath); - return utils.pattern.matchAny(fullpath, patternsRe); + }); + Object.defineProperty(exports, "isStrictReservedWord", { + enumerable: true, + get: function() { + return _keyword.isStrictReservedWord; } - _isMatchToPatterns(entryPath, patternsRe, isDirectory) { - const filepath = utils.path.removeLeadingDotSegment(entryPath); - const isMatched = utils.pattern.matchAny(filepath, patternsRe); - if (!isMatched && isDirectory) { - return utils.pattern.matchAny(filepath + "/", patternsRe); - } - return isMatched; + }); + var _identifier = require_identifier(); + var _keyword = require_keyword(); + } +}); + +// node_modules/@babel/code-frame/node_modules/escape-string-regexp/index.js +var require_escape_string_regexp = __commonJS({ + "node_modules/@babel/code-frame/node_modules/escape-string-regexp/index.js"(exports, module) { + "use strict"; + var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g; + module.exports = function(str) { + if (typeof str !== "string") { + throw new TypeError("Expected a string"); } + return str.replace(matchOperatorsRe, "\\$&"); + }; + } +}); + +// node_modules/color-name/index.js +var require_color_name = __commonJS({ + "node_modules/color-name/index.js"(exports, module) { + "use strict"; + module.exports = { + "aliceblue": [240, 248, 255], + "antiquewhite": [250, 235, 215], + "aqua": [0, 255, 255], + "aquamarine": [127, 255, 212], + "azure": [240, 255, 255], + "beige": [245, 245, 220], + "bisque": [255, 228, 196], + "black": [0, 0, 0], + "blanchedalmond": [255, 235, 205], + "blue": [0, 0, 255], + "blueviolet": [138, 43, 226], + "brown": [165, 42, 42], + "burlywood": [222, 184, 135], + "cadetblue": [95, 158, 160], + "chartreuse": [127, 255, 0], + "chocolate": [210, 105, 30], + "coral": [255, 127, 80], + "cornflowerblue": [100, 149, 237], + "cornsilk": [255, 248, 220], + "crimson": [220, 20, 60], + "cyan": [0, 255, 255], + "darkblue": [0, 0, 139], + "darkcyan": [0, 139, 139], + "darkgoldenrod": [184, 134, 11], + "darkgray": [169, 169, 169], + "darkgreen": [0, 100, 0], + "darkgrey": [169, 169, 169], + "darkkhaki": [189, 183, 107], + "darkmagenta": [139, 0, 139], + "darkolivegreen": [85, 107, 47], + "darkorange": [255, 140, 0], + "darkorchid": [153, 50, 204], + "darkred": [139, 0, 0], + "darksalmon": [233, 150, 122], + "darkseagreen": [143, 188, 143], + "darkslateblue": [72, 61, 139], + "darkslategray": [47, 79, 79], + "darkslategrey": [47, 79, 79], + "darkturquoise": [0, 206, 209], + "darkviolet": [148, 0, 211], + "deeppink": [255, 20, 147], + "deepskyblue": [0, 191, 255], + "dimgray": [105, 105, 105], + "dimgrey": [105, 105, 105], + "dodgerblue": [30, 144, 255], + "firebrick": [178, 34, 34], + "floralwhite": [255, 250, 240], + "forestgreen": [34, 139, 34], + "fuchsia": [255, 0, 255], + "gainsboro": [220, 220, 220], + "ghostwhite": [248, 248, 255], + "gold": [255, 215, 0], + "goldenrod": [218, 165, 32], + "gray": [128, 128, 128], + "green": [0, 128, 0], + "greenyellow": [173, 255, 47], + "grey": [128, 128, 128], + "honeydew": [240, 255, 240], + "hotpink": [255, 105, 180], + "indianred": [205, 92, 92], + "indigo": [75, 0, 130], + "ivory": [255, 255, 240], + "khaki": [240, 230, 140], + "lavender": [230, 230, 250], + "lavenderblush": [255, 240, 245], + "lawngreen": [124, 252, 0], + "lemonchiffon": [255, 250, 205], + "lightblue": [173, 216, 230], + "lightcoral": [240, 128, 128], + "lightcyan": [224, 255, 255], + "lightgoldenrodyellow": [250, 250, 210], + "lightgray": [211, 211, 211], + "lightgreen": [144, 238, 144], + "lightgrey": [211, 211, 211], + "lightpink": [255, 182, 193], + "lightsalmon": [255, 160, 122], + "lightseagreen": [32, 178, 170], + "lightskyblue": [135, 206, 250], + "lightslategray": [119, 136, 153], + "lightslategrey": [119, 136, 153], + "lightsteelblue": [176, 196, 222], + "lightyellow": [255, 255, 224], + "lime": [0, 255, 0], + "limegreen": [50, 205, 50], + "linen": [250, 240, 230], + "magenta": [255, 0, 255], + "maroon": [128, 0, 0], + "mediumaquamarine": [102, 205, 170], + "mediumblue": [0, 0, 205], + "mediumorchid": [186, 85, 211], + "mediumpurple": [147, 112, 219], + "mediumseagreen": [60, 179, 113], + "mediumslateblue": [123, 104, 238], + "mediumspringgreen": [0, 250, 154], + "mediumturquoise": [72, 209, 204], + "mediumvioletred": [199, 21, 133], + "midnightblue": [25, 25, 112], + "mintcream": [245, 255, 250], + "mistyrose": [255, 228, 225], + "moccasin": [255, 228, 181], + "navajowhite": [255, 222, 173], + "navy": [0, 0, 128], + "oldlace": [253, 245, 230], + "olive": [128, 128, 0], + "olivedrab": [107, 142, 35], + "orange": [255, 165, 0], + "orangered": [255, 69, 0], + "orchid": [218, 112, 214], + "palegoldenrod": [238, 232, 170], + "palegreen": [152, 251, 152], + "paleturquoise": [175, 238, 238], + "palevioletred": [219, 112, 147], + "papayawhip": [255, 239, 213], + "peachpuff": [255, 218, 185], + "peru": [205, 133, 63], + "pink": [255, 192, 203], + "plum": [221, 160, 221], + "powderblue": [176, 224, 230], + "purple": [128, 0, 128], + "rebeccapurple": [102, 51, 153], + "red": [255, 0, 0], + "rosybrown": [188, 143, 143], + "royalblue": [65, 105, 225], + "saddlebrown": [139, 69, 19], + "salmon": [250, 128, 114], + "sandybrown": [244, 164, 96], + "seagreen": [46, 139, 87], + "seashell": [255, 245, 238], + "sienna": [160, 82, 45], + "silver": [192, 192, 192], + "skyblue": [135, 206, 235], + "slateblue": [106, 90, 205], + "slategray": [112, 128, 144], + "slategrey": [112, 128, 144], + "snow": [255, 250, 250], + "springgreen": [0, 255, 127], + "steelblue": [70, 130, 180], + "tan": [210, 180, 140], + "teal": [0, 128, 128], + "thistle": [216, 191, 216], + "tomato": [255, 99, 71], + "turquoise": [64, 224, 208], + "violet": [238, 130, 238], + "wheat": [245, 222, 179], + "white": [255, 255, 255], + "whitesmoke": [245, 245, 245], + "yellow": [255, 255, 0], + "yellowgreen": [154, 205, 50] }; - exports.default = EntryFilter; } }); -// node_modules/fast-glob/out/providers/filters/error.js -var require_error = __commonJS({ - "node_modules/fast-glob/out/providers/filters/error.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var utils = require_utils4(); - var ErrorFilter = class { - constructor(_settings) { - this._settings = _settings; - } - getFilter() { - return (error) => this._isNonFatalError(error); - } - _isNonFatalError(error) { - return utils.errno.isEnoentCodeError(error) || this._settings.suppressErrors; +// node_modules/color-convert/conversions.js +var require_conversions = __commonJS({ + "node_modules/color-convert/conversions.js"(exports, module) { + var cssKeywords = require_color_name(); + var reverseKeywords = {}; + for (key in cssKeywords) { + if (cssKeywords.hasOwnProperty(key)) { + reverseKeywords[cssKeywords[key]] = key; } + } + var key; + var convert = module.exports = { + rgb: { channels: 3, labels: "rgb" }, + hsl: { channels: 3, labels: "hsl" }, + hsv: { channels: 3, labels: "hsv" }, + hwb: { channels: 3, labels: "hwb" }, + cmyk: { channels: 4, labels: "cmyk" }, + xyz: { channels: 3, labels: "xyz" }, + lab: { channels: 3, labels: "lab" }, + lch: { channels: 3, labels: "lch" }, + hex: { channels: 1, labels: ["hex"] }, + keyword: { channels: 1, labels: ["keyword"] }, + ansi16: { channels: 1, labels: ["ansi16"] }, + ansi256: { channels: 1, labels: ["ansi256"] }, + hcg: { channels: 3, labels: ["h", "c", "g"] }, + apple: { channels: 3, labels: ["r16", "g16", "b16"] }, + gray: { channels: 1, labels: ["gray"] } }; - exports.default = ErrorFilter; - } -}); - -// node_modules/fast-glob/out/providers/transformers/entry.js -var require_entry2 = __commonJS({ - "node_modules/fast-glob/out/providers/transformers/entry.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var utils = require_utils4(); - var EntryTransformer = class { - constructor(_settings) { - this._settings = _settings; - } - getTransformer() { - return (entry) => this._transform(entry); - } - _transform(entry) { - let filepath = entry.path; - if (this._settings.absolute) { - filepath = utils.path.makeAbsolute(this._settings.cwd, filepath); - filepath = utils.path.unixify(filepath); + for (model in convert) { + if (convert.hasOwnProperty(model)) { + if (!("channels" in convert[model])) { + throw new Error("missing channels property: " + model); } - if (this._settings.markDirectories && entry.dirent.isDirectory()) { - filepath += "/"; + if (!("labels" in convert[model])) { + throw new Error("missing channel labels property: " + model); } - if (!this._settings.objectMode) { - return filepath; + if (convert[model].labels.length !== convert[model].channels) { + throw new Error("channel and label counts mismatch: " + model); } - return Object.assign(Object.assign({}, entry), { path: filepath }); - } - }; - exports.default = EntryTransformer; - } -}); - -// node_modules/fast-glob/out/providers/provider.js -var require_provider = __commonJS({ - "node_modules/fast-glob/out/providers/provider.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var path9 = __require("path"); - var deep_1 = require_deep(); - var entry_1 = require_entry(); - var error_1 = require_error(); - var entry_2 = require_entry2(); - var Provider = class { - constructor(_settings) { - this._settings = _settings; - this.errorFilter = new error_1.default(this._settings); - this.entryFilter = new entry_1.default(this._settings, this._getMicromatchOptions()); - this.deepFilter = new deep_1.default(this._settings, this._getMicromatchOptions()); - this.entryTransformer = new entry_2.default(this._settings); - } - _getRootDirectory(task) { - return path9.resolve(this._settings.cwd, task.base); - } - _getReaderOptions(task) { - const basePath = task.base === "." ? "" : task.base; - return { - basePath, - pathSegmentSeparator: "/", - concurrency: this._settings.concurrency, - deepFilter: this.deepFilter.getFilter(basePath, task.positive, task.negative), - entryFilter: this.entryFilter.getFilter(task.positive, task.negative), - errorFilter: this.errorFilter.getFilter(), - followSymbolicLinks: this._settings.followSymbolicLinks, - fs: this._settings.fs, - stats: this._settings.stats, - throwErrorOnBrokenSymbolicLink: this._settings.throwErrorOnBrokenSymbolicLink, - transform: this.entryTransformer.getTransformer() - }; - } - _getMicromatchOptions() { - return { - dot: this._settings.dot, - matchBase: this._settings.baseNameMatch, - nobrace: !this._settings.braceExpansion, - nocase: !this._settings.caseSensitiveMatch, - noext: !this._settings.extglob, - noglobstar: !this._settings.globstar, - posix: true, - strictSlashes: false - }; + channels = convert[model].channels; + labels = convert[model].labels; + delete convert[model].channels; + delete convert[model].labels; + Object.defineProperty(convert[model], "channels", { value: channels }); + Object.defineProperty(convert[model], "labels", { value: labels }); } - }; - exports.default = Provider; - } -}); - -// node_modules/fast-glob/out/providers/async.js -var require_async6 = __commonJS({ - "node_modules/fast-glob/out/providers/async.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var async_1 = require_async5(); - var provider_1 = require_provider(); - var ProviderAsync = class extends provider_1.default { - constructor() { - super(...arguments); - this._reader = new async_1.default(this._settings); + } + var channels; + var labels; + var model; + convert.rgb.hsl = function(rgb) { + var r = rgb[0] / 255; + var g = rgb[1] / 255; + var b = rgb[2] / 255; + var min = Math.min(r, g, b); + var max = Math.max(r, g, b); + var delta = max - min; + var h; + var s; + var l; + if (max === min) { + h = 0; + } else if (r === max) { + h = (g - b) / delta; + } else if (g === max) { + h = 2 + (b - r) / delta; + } else if (b === max) { + h = 4 + (r - g) / delta; } - async read(task) { - const root = this._getRootDirectory(task); - const options8 = this._getReaderOptions(task); - const entries = await this.api(root, task, options8); - return entries.map((entry) => options8.transform(entry)); + h = Math.min(h * 60, 360); + if (h < 0) { + h += 360; } - api(root, task, options8) { - if (task.dynamic) { - return this._reader.dynamic(root, options8); - } - return this._reader.static(task.patterns, options8); + l = (min + max) / 2; + if (max === min) { + s = 0; + } else if (l <= 0.5) { + s = delta / (max + min); + } else { + s = delta / (2 - max - min); } + return [h, s * 100, l * 100]; }; - exports.default = ProviderAsync; - } -}); - -// node_modules/fast-glob/out/providers/stream.js -var require_stream4 = __commonJS({ - "node_modules/fast-glob/out/providers/stream.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var stream_1 = __require("stream"); - var stream_2 = require_stream3(); - var provider_1 = require_provider(); - var ProviderStream = class extends provider_1.default { - constructor() { - super(...arguments); - this._reader = new stream_2.default(this._settings); + convert.rgb.hsv = function(rgb) { + var rdif; + var gdif; + var bdif; + var h; + var s; + var r = rgb[0] / 255; + var g = rgb[1] / 255; + var b = rgb[2] / 255; + var v = Math.max(r, g, b); + var diff = v - Math.min(r, g, b); + var diffc = function(c) { + return (v - c) / 6 / diff + 1 / 2; + }; + if (diff === 0) { + h = s = 0; + } else { + s = diff / v; + rdif = diffc(r); + gdif = diffc(g); + bdif = diffc(b); + if (r === v) { + h = bdif - gdif; + } else if (g === v) { + h = 1 / 3 + rdif - bdif; + } else if (b === v) { + h = 2 / 3 + gdif - rdif; + } + if (h < 0) { + h += 1; + } else if (h > 1) { + h -= 1; + } } - read(task) { - const root = this._getRootDirectory(task); - const options8 = this._getReaderOptions(task); - const source = this.api(root, task, options8); - const destination = new stream_1.Readable({ objectMode: true, read: () => { - } }); - source.once("error", (error) => destination.emit("error", error)).on("data", (entry) => destination.emit("data", options8.transform(entry))).once("end", () => destination.emit("end")); - destination.once("close", () => source.destroy()); - return destination; + return [ + h * 360, + s * 100, + v * 100 + ]; + }; + convert.rgb.hwb = function(rgb) { + var r = rgb[0]; + var g = rgb[1]; + var b = rgb[2]; + var h = convert.rgb.hsl(rgb)[0]; + var w = 1 / 255 * Math.min(r, Math.min(g, b)); + b = 1 - 1 / 255 * Math.max(r, Math.max(g, b)); + return [h, w * 100, b * 100]; + }; + convert.rgb.cmyk = function(rgb) { + var r = rgb[0] / 255; + var g = rgb[1] / 255; + var b = rgb[2] / 255; + var c; + var m; + var y; + var k; + k = Math.min(1 - r, 1 - g, 1 - b); + c = (1 - r - k) / (1 - k) || 0; + m = (1 - g - k) / (1 - k) || 0; + y = (1 - b - k) / (1 - k) || 0; + return [c * 100, m * 100, y * 100, k * 100]; + }; + function comparativeDistance(x, y) { + return Math.pow(x[0] - y[0], 2) + Math.pow(x[1] - y[1], 2) + Math.pow(x[2] - y[2], 2); + } + convert.rgb.keyword = function(rgb) { + var reversed = reverseKeywords[rgb]; + if (reversed) { + return reversed; } - api(root, task, options8) { - if (task.dynamic) { - return this._reader.dynamic(root, options8); + var currentClosestDistance = Infinity; + var currentClosestKeyword; + for (var keyword in cssKeywords) { + if (cssKeywords.hasOwnProperty(keyword)) { + var value = cssKeywords[keyword]; + var distance = comparativeDistance(rgb, value); + if (distance < currentClosestDistance) { + currentClosestDistance = distance; + currentClosestKeyword = keyword; + } } - return this._reader.static(task.patterns, options8); } + return currentClosestKeyword; }; - exports.default = ProviderStream; - } -}); - -// node_modules/fast-glob/out/readers/sync.js -var require_sync5 = __commonJS({ - "node_modules/fast-glob/out/readers/sync.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var fsStat = require_out(); - var fsWalk = require_out3(); - var reader_1 = require_reader2(); - var ReaderSync = class extends reader_1.default { - constructor() { - super(...arguments); - this._walkSync = fsWalk.walkSync; - this._statSync = fsStat.statSync; + convert.keyword.rgb = function(keyword) { + return cssKeywords[keyword]; + }; + convert.rgb.xyz = function(rgb) { + var r = rgb[0] / 255; + var g = rgb[1] / 255; + var b = rgb[2] / 255; + r = r > 0.04045 ? Math.pow((r + 0.055) / 1.055, 2.4) : r / 12.92; + g = g > 0.04045 ? Math.pow((g + 0.055) / 1.055, 2.4) : g / 12.92; + b = b > 0.04045 ? Math.pow((b + 0.055) / 1.055, 2.4) : b / 12.92; + var x = r * 0.4124 + g * 0.3576 + b * 0.1805; + var y = r * 0.2126 + g * 0.7152 + b * 0.0722; + var z = r * 0.0193 + g * 0.1192 + b * 0.9505; + return [x * 100, y * 100, z * 100]; + }; + convert.rgb.lab = function(rgb) { + var xyz = convert.rgb.xyz(rgb); + var x = xyz[0]; + var y = xyz[1]; + var z = xyz[2]; + var l; + var a; + var b; + x /= 95.047; + y /= 100; + z /= 108.883; + x = x > 8856e-6 ? Math.pow(x, 1 / 3) : 7.787 * x + 16 / 116; + y = y > 8856e-6 ? Math.pow(y, 1 / 3) : 7.787 * y + 16 / 116; + z = z > 8856e-6 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116; + l = 116 * y - 16; + a = 500 * (x - y); + b = 200 * (y - z); + return [l, a, b]; + }; + convert.hsl.rgb = function(hsl) { + var h = hsl[0] / 360; + var s = hsl[1] / 100; + var l = hsl[2] / 100; + var t1; + var t2; + var t3; + var rgb; + var val; + if (s === 0) { + val = l * 255; + return [val, val, val]; } - dynamic(root, options8) { - return this._walkSync(root, options8); + if (l < 0.5) { + t2 = l * (1 + s); + } else { + t2 = l + s - l * s; } - static(patterns, options8) { - const entries = []; - for (const pattern of patterns) { - const filepath = this._getFullEntryPath(pattern); - const entry = this._getEntry(filepath, pattern, options8); - if (entry === null || !options8.entryFilter(entry)) { - continue; - } - entries.push(entry); + t1 = 2 * l - t2; + rgb = [0, 0, 0]; + for (var i = 0; i < 3; i++) { + t3 = h + 1 / 3 * -(i - 1); + if (t3 < 0) { + t3++; } - return entries; - } - _getEntry(filepath, pattern, options8) { - try { - const stats = this._getStat(filepath); - return this._makeEntry(stats, pattern); - } catch (error) { - if (options8.errorFilter(error)) { - return null; - } - throw error; + if (t3 > 1) { + t3--; + } + if (6 * t3 < 1) { + val = t1 + (t2 - t1) * 6 * t3; + } else if (2 * t3 < 1) { + val = t2; + } else if (3 * t3 < 2) { + val = t1 + (t2 - t1) * (2 / 3 - t3) * 6; + } else { + val = t1; } + rgb[i] = val * 255; } - _getStat(filepath) { - return this._statSync(filepath, this._fsStatSettings); + return rgb; + }; + convert.hsl.hsv = function(hsl) { + var h = hsl[0]; + var s = hsl[1] / 100; + var l = hsl[2] / 100; + var smin = s; + var lmin = Math.max(l, 0.01); + var sv; + var v; + l *= 2; + s *= l <= 1 ? l : 2 - l; + smin *= lmin <= 1 ? lmin : 2 - lmin; + v = (l + s) / 2; + sv = l === 0 ? 2 * smin / (lmin + smin) : 2 * s / (l + s); + return [h, sv * 100, v * 100]; + }; + convert.hsv.rgb = function(hsv) { + var h = hsv[0] / 60; + var s = hsv[1] / 100; + var v = hsv[2] / 100; + var hi = Math.floor(h) % 6; + var f = h - Math.floor(h); + var p = 255 * v * (1 - s); + var q = 255 * v * (1 - s * f); + var t = 255 * v * (1 - s * (1 - f)); + v *= 255; + switch (hi) { + case 0: + return [v, t, p]; + case 1: + return [q, v, p]; + case 2: + return [p, v, t]; + case 3: + return [p, q, v]; + case 4: + return [t, p, v]; + case 5: + return [v, p, q]; } }; - exports.default = ReaderSync; - } -}); - -// node_modules/fast-glob/out/providers/sync.js -var require_sync6 = __commonJS({ - "node_modules/fast-glob/out/providers/sync.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var sync_1 = require_sync5(); - var provider_1 = require_provider(); - var ProviderSync = class extends provider_1.default { - constructor() { - super(...arguments); - this._reader = new sync_1.default(this._settings); + convert.hsv.hsl = function(hsv) { + var h = hsv[0]; + var s = hsv[1] / 100; + var v = hsv[2] / 100; + var vmin = Math.max(v, 0.01); + var lmin; + var sl; + var l; + l = (2 - s) * v; + lmin = (2 - s) * vmin; + sl = s * vmin; + sl /= lmin <= 1 ? lmin : 2 - lmin; + sl = sl || 0; + l /= 2; + return [h, sl * 100, l * 100]; + }; + convert.hwb.rgb = function(hwb) { + var h = hwb[0] / 360; + var wh = hwb[1] / 100; + var bl = hwb[2] / 100; + var ratio = wh + bl; + var i; + var v; + var f; + var n; + if (ratio > 1) { + wh /= ratio; + bl /= ratio; } - read(task) { - const root = this._getRootDirectory(task); - const options8 = this._getReaderOptions(task); - const entries = this.api(root, task, options8); - return entries.map(options8.transform); + i = Math.floor(6 * h); + v = 1 - bl; + f = 6 * h - i; + if ((i & 1) !== 0) { + f = 1 - f; } - api(root, task, options8) { - if (task.dynamic) { - return this._reader.dynamic(root, options8); - } - return this._reader.static(task.patterns, options8); + n = wh + f * (v - wh); + var r; + var g; + var b; + switch (i) { + default: + case 6: + case 0: + r = v; + g = n; + b = wh; + break; + case 1: + r = n; + g = v; + b = wh; + break; + case 2: + r = wh; + g = v; + b = n; + break; + case 3: + r = wh; + g = n; + b = v; + break; + case 4: + r = n; + g = wh; + b = v; + break; + case 5: + r = v; + g = wh; + b = n; + break; } + return [r * 255, g * 255, b * 255]; }; - exports.default = ProviderSync; - } -}); - -// node_modules/fast-glob/out/settings.js -var require_settings4 = __commonJS({ - "node_modules/fast-glob/out/settings.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0; - var fs5 = __require("fs"); - var os = __require("os"); - var CPU_COUNT = Math.max(os.cpus().length, 1); - exports.DEFAULT_FILE_SYSTEM_ADAPTER = { - lstat: fs5.lstat, - lstatSync: fs5.lstatSync, - stat: fs5.stat, - statSync: fs5.statSync, - readdir: fs5.readdir, - readdirSync: fs5.readdirSync + convert.cmyk.rgb = function(cmyk) { + var c = cmyk[0] / 100; + var m = cmyk[1] / 100; + var y = cmyk[2] / 100; + var k = cmyk[3] / 100; + var r; + var g; + var b; + r = 1 - Math.min(1, c * (1 - k) + k); + g = 1 - Math.min(1, m * (1 - k) + k); + b = 1 - Math.min(1, y * (1 - k) + k); + return [r * 255, g * 255, b * 255]; }; - var Settings = class { - constructor(_options = {}) { - this._options = _options; - this.absolute = this._getValue(this._options.absolute, false); - this.baseNameMatch = this._getValue(this._options.baseNameMatch, false); - this.braceExpansion = this._getValue(this._options.braceExpansion, true); - this.caseSensitiveMatch = this._getValue(this._options.caseSensitiveMatch, true); - this.concurrency = this._getValue(this._options.concurrency, CPU_COUNT); - this.cwd = this._getValue(this._options.cwd, process.cwd()); - this.deep = this._getValue(this._options.deep, Infinity); - this.dot = this._getValue(this._options.dot, false); - this.extglob = this._getValue(this._options.extglob, true); - this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, true); - this.fs = this._getFileSystemMethods(this._options.fs); - this.globstar = this._getValue(this._options.globstar, true); - this.ignore = this._getValue(this._options.ignore, []); - this.markDirectories = this._getValue(this._options.markDirectories, false); - this.objectMode = this._getValue(this._options.objectMode, false); - this.onlyDirectories = this._getValue(this._options.onlyDirectories, false); - this.onlyFiles = this._getValue(this._options.onlyFiles, true); - this.stats = this._getValue(this._options.stats, false); - this.suppressErrors = this._getValue(this._options.suppressErrors, false); - this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, false); - this.unique = this._getValue(this._options.unique, true); - if (this.onlyDirectories) { - this.onlyFiles = false; - } - if (this.stats) { - this.objectMode = true; - } - } - _getValue(option, value) { - return option === void 0 ? value : option; - } - _getFileSystemMethods(methods = {}) { - return Object.assign(Object.assign({}, exports.DEFAULT_FILE_SYSTEM_ADAPTER), methods); + convert.xyz.rgb = function(xyz) { + var x = xyz[0] / 100; + var y = xyz[1] / 100; + var z = xyz[2] / 100; + var r; + var g; + var b; + r = x * 3.2406 + y * -1.5372 + z * -0.4986; + g = x * -0.9689 + y * 1.8758 + z * 0.0415; + b = x * 0.0557 + y * -0.204 + z * 1.057; + r = r > 31308e-7 ? 1.055 * Math.pow(r, 1 / 2.4) - 0.055 : r * 12.92; + g = g > 31308e-7 ? 1.055 * Math.pow(g, 1 / 2.4) - 0.055 : g * 12.92; + b = b > 31308e-7 ? 1.055 * Math.pow(b, 1 / 2.4) - 0.055 : b * 12.92; + r = Math.min(Math.max(0, r), 1); + g = Math.min(Math.max(0, g), 1); + b = Math.min(Math.max(0, b), 1); + return [r * 255, g * 255, b * 255]; + }; + convert.xyz.lab = function(xyz) { + var x = xyz[0]; + var y = xyz[1]; + var z = xyz[2]; + var l; + var a; + var b; + x /= 95.047; + y /= 100; + z /= 108.883; + x = x > 8856e-6 ? Math.pow(x, 1 / 3) : 7.787 * x + 16 / 116; + y = y > 8856e-6 ? Math.pow(y, 1 / 3) : 7.787 * y + 16 / 116; + z = z > 8856e-6 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116; + l = 116 * y - 16; + a = 500 * (x - y); + b = 200 * (y - z); + return [l, a, b]; + }; + convert.lab.xyz = function(lab) { + var l = lab[0]; + var a = lab[1]; + var b = lab[2]; + var x; + var y; + var z; + y = (l + 16) / 116; + x = a / 500 + y; + z = y - b / 200; + var y2 = Math.pow(y, 3); + var x2 = Math.pow(x, 3); + var z2 = Math.pow(z, 3); + y = y2 > 8856e-6 ? y2 : (y - 16 / 116) / 7.787; + x = x2 > 8856e-6 ? x2 : (x - 16 / 116) / 7.787; + z = z2 > 8856e-6 ? z2 : (z - 16 / 116) / 7.787; + x *= 95.047; + y *= 100; + z *= 108.883; + return [x, y, z]; + }; + convert.lab.lch = function(lab) { + var l = lab[0]; + var a = lab[1]; + var b = lab[2]; + var hr; + var h; + var c; + hr = Math.atan2(b, a); + h = hr * 360 / 2 / Math.PI; + if (h < 0) { + h += 360; } + c = Math.sqrt(a * a + b * b); + return [l, c, h]; }; - exports.default = Settings; - } -}); - -// node_modules/fast-glob/out/index.js -var require_out4 = __commonJS({ - "node_modules/fast-glob/out/index.js"(exports, module) { - "use strict"; - var taskManager = require_tasks(); - var patternManager = require_patterns(); - var async_1 = require_async6(); - var stream_1 = require_stream4(); - var sync_1 = require_sync6(); - var settings_1 = require_settings4(); - var utils = require_utils4(); - async function FastGlob(source, options8) { - assertPatternsInput(source); - const works = getWorks(source, async_1.default, options8); - const result = await Promise.all(works); - return utils.array.flatten(result); - } - (function(FastGlob2) { - function sync(source, options8) { - assertPatternsInput(source); - const works = getWorks(source, sync_1.default, options8); - return utils.array.flatten(works); - } - FastGlob2.sync = sync; - function stream(source, options8) { - assertPatternsInput(source); - const works = getWorks(source, stream_1.default, options8); - return utils.stream.merge(works); - } - FastGlob2.stream = stream; - function generateTasks(source, options8) { - assertPatternsInput(source); - const patterns = patternManager.transform([].concat(source)); - const settings = new settings_1.default(options8); - return taskManager.generate(patterns, settings); - } - FastGlob2.generateTasks = generateTasks; - function isDynamicPattern(source, options8) { - assertPatternsInput(source); - const settings = new settings_1.default(options8); - return utils.pattern.isDynamicPattern(source, settings); - } - FastGlob2.isDynamicPattern = isDynamicPattern; - function escapePath(source) { - assertPatternsInput(source); - return utils.path.escape(source); + convert.lch.lab = function(lch) { + var l = lch[0]; + var c = lch[1]; + var h = lch[2]; + var a; + var b; + var hr; + hr = h / 360 * 2 * Math.PI; + a = c * Math.cos(hr); + b = c * Math.sin(hr); + return [l, a, b]; + }; + convert.rgb.ansi16 = function(args) { + var r = args[0]; + var g = args[1]; + var b = args[2]; + var value = 1 in arguments ? arguments[1] : convert.rgb.hsv(args)[2]; + value = Math.round(value / 50); + if (value === 0) { + return 30; } - FastGlob2.escapePath = escapePath; - })(FastGlob || (FastGlob = {})); - function getWorks(source, _Provider, options8) { - const patterns = patternManager.transform([].concat(source)); - const settings = new settings_1.default(options8); - const tasks = taskManager.generate(patterns, settings); - const provider = new _Provider(settings); - return tasks.map(provider.read, provider); - } - function assertPatternsInput(input) { - const source = [].concat(input); - const isValidSource = source.every((item) => utils.string.isString(item) && !utils.string.isEmpty(item)); - if (!isValidSource) { - throw new TypeError("Patterns must be a string (non empty) or an array of strings"); + var ansi = 30 + (Math.round(b / 255) << 2 | Math.round(g / 255) << 1 | Math.round(r / 255)); + if (value === 2) { + ansi += 60; } - } - module.exports = FastGlob; - } -}); - -// node_modules/diff/lib/diff/base.js -var require_base = __commonJS({ - "node_modules/diff/lib/diff/base.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports["default"] = Diff; - function Diff() { - } - Diff.prototype = { - /*istanbul ignore start*/ - /*istanbul ignore end*/ - diff: function diff(oldString, newString) { - var options8 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; - var callback = options8.callback; - if (typeof options8 === "function") { - callback = options8; - options8 = {}; - } - this.options = options8; - var self = this; - function done(value) { - if (callback) { - setTimeout(function() { - callback(void 0, value); - }, 0); - return true; - } else { - return value; - } - } - oldString = this.castInput(oldString); - newString = this.castInput(newString); - oldString = this.removeEmpty(this.tokenize(oldString)); - newString = this.removeEmpty(this.tokenize(newString)); - var newLen = newString.length, oldLen = oldString.length; - var editLength = 1; - var maxEditLength = newLen + oldLen; - if (options8.maxEditLength) { - maxEditLength = Math.min(maxEditLength, options8.maxEditLength); - } - var bestPath = [{ - newPos: -1, - components: [] - }]; - var oldPos = this.extractCommon(bestPath[0], newString, oldString, 0); - if (bestPath[0].newPos + 1 >= newLen && oldPos + 1 >= oldLen) { - return done([{ - value: this.join(newString), - count: newString.length - }]); - } - function execEditLength() { - for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) { - var basePath = ( - /*istanbul ignore start*/ - void 0 - ); - var addPath = bestPath[diagonalPath - 1], removePath = bestPath[diagonalPath + 1], _oldPos = (removePath ? removePath.newPos : 0) - diagonalPath; - if (addPath) { - bestPath[diagonalPath - 1] = void 0; - } - var canAdd = addPath && addPath.newPos + 1 < newLen, canRemove = removePath && 0 <= _oldPos && _oldPos < oldLen; - if (!canAdd && !canRemove) { - bestPath[diagonalPath] = void 0; - continue; - } - if (!canAdd || canRemove && addPath.newPos < removePath.newPos) { - basePath = clonePath(removePath); - self.pushComponent(basePath.components, void 0, true); - } else { - basePath = addPath; - basePath.newPos++; - self.pushComponent(basePath.components, true, void 0); - } - _oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath); - if (basePath.newPos + 1 >= newLen && _oldPos + 1 >= oldLen) { - return done(buildValues(self, basePath.components, newString, oldString, self.useLongestToken)); - } else { - bestPath[diagonalPath] = basePath; - } - } - editLength++; - } - if (callback) { - (function exec() { - setTimeout(function() { - if (editLength > maxEditLength) { - return callback(); - } - if (!execEditLength()) { - exec(); - } - }, 0); - })(); - } else { - while (editLength <= maxEditLength) { - var ret = execEditLength(); - if (ret) { - return ret; - } - } - } - }, - /*istanbul ignore start*/ - /*istanbul ignore end*/ - pushComponent: function pushComponent(components, added, removed) { - var last = components[components.length - 1]; - if (last && last.added === added && last.removed === removed) { - components[components.length - 1] = { - count: last.count + 1, - added, - removed - }; - } else { - components.push({ - count: 1, - added, - removed - }); - } - }, - /*istanbul ignore start*/ - /*istanbul ignore end*/ - extractCommon: function extractCommon(basePath, newString, oldString, diagonalPath) { - var newLen = newString.length, oldLen = oldString.length, newPos = basePath.newPos, oldPos = newPos - diagonalPath, commonCount = 0; - while (newPos + 1 < newLen && oldPos + 1 < oldLen && this.equals(newString[newPos + 1], oldString[oldPos + 1])) { - newPos++; - oldPos++; - commonCount++; - } - if (commonCount) { - basePath.components.push({ - count: commonCount - }); - } - basePath.newPos = newPos; - return oldPos; - }, - /*istanbul ignore start*/ - /*istanbul ignore end*/ - equals: function equals(left, right) { - if (this.options.comparator) { - return this.options.comparator(left, right); - } else { - return left === right || this.options.ignoreCase && left.toLowerCase() === right.toLowerCase(); + return ansi; + }; + convert.hsv.ansi16 = function(args) { + return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]); + }; + convert.rgb.ansi256 = function(args) { + var r = args[0]; + var g = args[1]; + var b = args[2]; + if (r === g && g === b) { + if (r < 8) { + return 16; } - }, - /*istanbul ignore start*/ - /*istanbul ignore end*/ - removeEmpty: function removeEmpty(array) { - var ret = []; - for (var i = 0; i < array.length; i++) { - if (array[i]) { - ret.push(array[i]); - } + if (r > 248) { + return 231; } - return ret; - }, - /*istanbul ignore start*/ - /*istanbul ignore end*/ - castInput: function castInput(value) { - return value; - }, - /*istanbul ignore start*/ - /*istanbul ignore end*/ - tokenize: function tokenize(value) { - return value.split(""); - }, - /*istanbul ignore start*/ - /*istanbul ignore end*/ - join: function join2(chars) { - return chars.join(""); + return Math.round((r - 8) / 247 * 24) + 232; } + var ansi = 16 + 36 * Math.round(r / 255 * 5) + 6 * Math.round(g / 255 * 5) + Math.round(b / 255 * 5); + return ansi; }; - function buildValues(diff, components, newString, oldString, useLongestToken) { - var componentPos = 0, componentLen = components.length, newPos = 0, oldPos = 0; - for (; componentPos < componentLen; componentPos++) { - var component = components[componentPos]; - if (!component.removed) { - if (!component.added && useLongestToken) { - var value = newString.slice(newPos, newPos + component.count); - value = value.map(function(value2, i) { - var oldValue = oldString[oldPos + i]; - return oldValue.length > value2.length ? oldValue : value2; - }); - component.value = diff.join(value); - } else { - component.value = diff.join(newString.slice(newPos, newPos + component.count)); - } - newPos += component.count; - if (!component.added) { - oldPos += component.count; - } - } else { - component.value = diff.join(oldString.slice(oldPos, oldPos + component.count)); - oldPos += component.count; - if (componentPos && components[componentPos - 1].added) { - var tmp = components[componentPos - 1]; - components[componentPos - 1] = components[componentPos]; - components[componentPos] = tmp; - } + convert.ansi16.rgb = function(args) { + var color = args % 10; + if (color === 0 || color === 7) { + if (args > 50) { + color += 3.5; } + color = color / 10.5 * 255; + return [color, color, color]; } - var lastComponent = components[componentLen - 1]; - if (componentLen > 1 && typeof lastComponent.value === "string" && (lastComponent.added || lastComponent.removed) && diff.equals("", lastComponent.value)) { - components[componentLen - 2].value += lastComponent.value; - components.pop(); + var mult = (~~(args > 50) + 1) * 0.5; + var r = (color & 1) * mult * 255; + var g = (color >> 1 & 1) * mult * 255; + var b = (color >> 2 & 1) * mult * 255; + return [r, g, b]; + }; + convert.ansi256.rgb = function(args) { + if (args >= 232) { + var c = (args - 232) * 10 + 8; + return [c, c, c]; } - return components; - } - function clonePath(path9) { - return { - newPos: path9.newPos, - components: path9.components.slice(0) - }; - } - } -}); - -// node_modules/diff/lib/diff/array.js -var require_array3 = __commonJS({ - "node_modules/diff/lib/diff/array.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.diffArrays = diffArrays2; - exports.arrayDiff = void 0; - var _base = _interopRequireDefault(require_base()); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - var arrayDiff = new /*istanbul ignore start*/ - _base[ - /*istanbul ignore start*/ - "default" - /*istanbul ignore end*/ - ](); - exports.arrayDiff = arrayDiff; - arrayDiff.tokenize = function(value) { - return value.slice(); + args -= 16; + var rem; + var r = Math.floor(args / 36) / 5 * 255; + var g = Math.floor((rem = args % 36) / 6) / 5 * 255; + var b = rem % 6 / 5 * 255; + return [r, g, b]; }; - arrayDiff.join = arrayDiff.removeEmpty = function(value) { - return value; + convert.rgb.hex = function(args) { + var integer = ((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255); + var string = integer.toString(16).toUpperCase(); + return "000000".substring(string.length) + string; }; - function diffArrays2(oldArr, newArr, callback) { - return arrayDiff.diff(oldArr, newArr, callback); - } - } -}); - -// node_modules/n-readlines/readlines.js -var require_readlines = __commonJS({ - "node_modules/n-readlines/readlines.js"(exports, module) { - "use strict"; - var fs5 = __require("fs"); - var LineByLine = class { - constructor(file, options8) { - options8 = options8 || {}; - if (!options8.readChunk) - options8.readChunk = 1024; - if (!options8.newLineCharacter) { - options8.newLineCharacter = 10; - } else { - options8.newLineCharacter = options8.newLineCharacter.charCodeAt(0); - } - if (typeof file === "number") { - this.fd = file; - } else { - this.fd = fs5.openSync(file, "r"); - } - this.options = options8; - this.newLineCharacter = options8.newLineCharacter; - this.reset(); + convert.hex.rgb = function(args) { + var match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i); + if (!match) { + return [0, 0, 0]; } - _searchInBuffer(buffer, hexNeedle) { - let found = -1; - for (let i = 0; i <= buffer.length; i++) { - let b_byte = buffer[i]; - if (b_byte === hexNeedle) { - found = i; - break; - } - } - return found; + var colorString = match[0]; + if (match[0].length === 3) { + colorString = colorString.split("").map(function(char) { + return char + char; + }).join(""); } - reset() { - this.eofReached = false; - this.linesCache = []; - this.fdPosition = 0; + var integer = parseInt(colorString, 16); + var r = integer >> 16 & 255; + var g = integer >> 8 & 255; + var b = integer & 255; + return [r, g, b]; + }; + convert.rgb.hcg = function(rgb) { + var r = rgb[0] / 255; + var g = rgb[1] / 255; + var b = rgb[2] / 255; + var max = Math.max(Math.max(r, g), b); + var min = Math.min(Math.min(r, g), b); + var chroma = max - min; + var grayscale; + var hue; + if (chroma < 1) { + grayscale = min / (1 - chroma); + } else { + grayscale = 0; } - close() { - fs5.closeSync(this.fd); - this.fd = null; + if (chroma <= 0) { + hue = 0; + } else if (max === r) { + hue = (g - b) / chroma % 6; + } else if (max === g) { + hue = 2 + (b - r) / chroma; + } else { + hue = 4 + (r - g) / chroma + 4; + } + hue /= 6; + hue %= 1; + return [hue * 360, chroma * 100, grayscale * 100]; + }; + convert.hsl.hcg = function(hsl) { + var s = hsl[1] / 100; + var l = hsl[2] / 100; + var c = 1; + var f = 0; + if (l < 0.5) { + c = 2 * s * l; + } else { + c = 2 * s * (1 - l); + } + if (c < 1) { + f = (l - 0.5 * c) / (1 - c); + } + return [hsl[0], c * 100, f * 100]; + }; + convert.hsv.hcg = function(hsv) { + var s = hsv[1] / 100; + var v = hsv[2] / 100; + var c = s * v; + var f = 0; + if (c < 1) { + f = (v - c) / (1 - c); + } + return [hsv[0], c * 100, f * 100]; + }; + convert.hcg.rgb = function(hcg) { + var h = hcg[0] / 360; + var c = hcg[1] / 100; + var g = hcg[2] / 100; + if (c === 0) { + return [g * 255, g * 255, g * 255]; + } + var pure = [0, 0, 0]; + var hi = h % 1 * 6; + var v = hi % 1; + var w = 1 - v; + var mg = 0; + switch (Math.floor(hi)) { + case 0: + pure[0] = 1; + pure[1] = v; + pure[2] = 0; + break; + case 1: + pure[0] = w; + pure[1] = 1; + pure[2] = 0; + break; + case 2: + pure[0] = 0; + pure[1] = 1; + pure[2] = v; + break; + case 3: + pure[0] = 0; + pure[1] = w; + pure[2] = 1; + break; + case 4: + pure[0] = v; + pure[1] = 0; + pure[2] = 1; + break; + default: + pure[0] = 1; + pure[1] = 0; + pure[2] = w; } - _extractLines(buffer) { - let line2; - const lines = []; - let bufferPosition = 0; - let lastNewLineBufferPosition = 0; - while (true) { - let bufferPositionValue = buffer[bufferPosition++]; - if (bufferPositionValue === this.newLineCharacter) { - line2 = buffer.slice(lastNewLineBufferPosition, bufferPosition); - lines.push(line2); - lastNewLineBufferPosition = bufferPosition; - } else if (bufferPositionValue === void 0) { - break; - } - } - let leftovers = buffer.slice(lastNewLineBufferPosition, bufferPosition); - if (leftovers.length) { - lines.push(leftovers); - } - return lines; + mg = (1 - c) * g; + return [ + (c * pure[0] + mg) * 255, + (c * pure[1] + mg) * 255, + (c * pure[2] + mg) * 255 + ]; + }; + convert.hcg.hsv = function(hcg) { + var c = hcg[1] / 100; + var g = hcg[2] / 100; + var v = c + g * (1 - c); + var f = 0; + if (v > 0) { + f = c / v; } - _readChunk(lineLeftovers) { - let totalBytesRead = 0; - let bytesRead; - const buffers = []; - do { - const readBuffer = Buffer.alloc(this.options.readChunk); - bytesRead = fs5.readSync(this.fd, readBuffer, 0, this.options.readChunk, this.fdPosition); - totalBytesRead = totalBytesRead + bytesRead; - this.fdPosition = this.fdPosition + bytesRead; - buffers.push(readBuffer); - } while (bytesRead && this._searchInBuffer(buffers[buffers.length - 1], this.options.newLineCharacter) === -1); - let bufferData = Buffer.concat(buffers); - if (bytesRead < this.options.readChunk) { - this.eofReached = true; - bufferData = bufferData.slice(0, totalBytesRead); - } - if (totalBytesRead) { - this.linesCache = this._extractLines(bufferData); - if (lineLeftovers) { - this.linesCache[0] = Buffer.concat([lineLeftovers, this.linesCache[0]]); - } - } - return totalBytesRead; + return [hcg[0], f * 100, v * 100]; + }; + convert.hcg.hsl = function(hcg) { + var c = hcg[1] / 100; + var g = hcg[2] / 100; + var l = g * (1 - c) + 0.5 * c; + var s = 0; + if (l > 0 && l < 0.5) { + s = c / (2 * l); + } else if (l >= 0.5 && l < 1) { + s = c / (2 * (1 - l)); } - next() { - if (!this.fd) - return false; - let line2 = false; - if (this.eofReached && this.linesCache.length === 0) { - return line2; - } - let bytesRead; - if (!this.linesCache.length) { - bytesRead = this._readChunk(); - } - if (this.linesCache.length) { - line2 = this.linesCache.shift(); - const lastLineCharacter = line2[line2.length - 1]; - if (lastLineCharacter !== this.newLineCharacter) { - bytesRead = this._readChunk(line2); - if (bytesRead) { - line2 = this.linesCache.shift(); - } - } - } - if (this.eofReached && this.linesCache.length === 0) { - this.close(); - } - if (line2 && line2[line2.length - 1] === this.newLineCharacter) { - line2 = line2.slice(0, line2.length - 1); - } - return line2; + return [hcg[0], s * 100, l * 100]; + }; + convert.hcg.hwb = function(hcg) { + var c = hcg[1] / 100; + var g = hcg[2] / 100; + var v = c + g * (1 - c); + return [hcg[0], (v - c) * 100, (1 - v) * 100]; + }; + convert.hwb.hcg = function(hwb) { + var w = hwb[1] / 100; + var b = hwb[2] / 100; + var v = 1 - b; + var c = v - w; + var g = 0; + if (c < 1) { + g = (v - c) / (1 - c); } + return [hwb[0], c * 100, g * 100]; }; - module.exports = LineByLine; - } -}); - -// node_modules/js-tokens/index.js -var require_js_tokens = __commonJS({ - "node_modules/js-tokens/index.js"(exports) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = /((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g; - exports.matchToToken = function(match) { - var token = { type: "invalid", value: match[0], closed: void 0 }; - if (match[1]) - token.type = "string", token.closed = !!(match[3] || match[4]); - else if (match[5]) - token.type = "comment"; - else if (match[6]) - token.type = "comment", token.closed = !!match[7]; - else if (match[8]) - token.type = "regex"; - else if (match[9]) - token.type = "number"; - else if (match[10]) - token.type = "name"; - else if (match[11]) - token.type = "punctuator"; - else if (match[12]) - token.type = "whitespace"; - return token; + convert.apple.rgb = function(apple) { + return [apple[0] / 65535 * 255, apple[1] / 65535 * 255, apple[2] / 65535 * 255]; + }; + convert.rgb.apple = function(rgb) { + return [rgb[0] / 255 * 65535, rgb[1] / 255 * 65535, rgb[2] / 255 * 65535]; + }; + convert.gray.rgb = function(args) { + return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255]; + }; + convert.gray.hsl = convert.gray.hsv = function(args) { + return [0, 0, args[0]]; + }; + convert.gray.hwb = function(gray) { + return [0, 100, gray[0]]; + }; + convert.gray.cmyk = function(gray) { + return [0, 0, 0, gray[0]]; + }; + convert.gray.lab = function(gray) { + return [gray[0], 0, 0]; + }; + convert.gray.hex = function(gray) { + var val = Math.round(gray[0] / 100 * 255) & 255; + var integer = (val << 16) + (val << 8) + val; + var string = integer.toString(16).toUpperCase(); + return "000000".substring(string.length) + string; + }; + convert.rgb.gray = function(rgb) { + var val = (rgb[0] + rgb[1] + rgb[2]) / 3; + return [val / 255 * 100]; }; } }); -// node_modules/@babel/helper-validator-identifier/lib/identifier.js -var require_identifier = __commonJS({ - "node_modules/@babel/helper-validator-identifier/lib/identifier.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.isIdentifierChar = isIdentifierChar; - exports.isIdentifierName = isIdentifierName; - exports.isIdentifierStart = isIdentifierStart; - var nonASCIIidentifierStartChars = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC"; - var nonASCIIidentifierChars = "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F"; - var nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]"); - var nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]"); - nonASCIIidentifierStartChars = nonASCIIidentifierChars = null; - var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 159, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 264, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 757, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 3104, 541, 1507, 4938, 6, 4191]; - var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 81, 2, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 406, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239]; - function isInAstralSet(code, set) { - let pos = 65536; - for (let i = 0, length = set.length; i < length; i += 2) { - pos += set[i]; - if (pos > code) - return false; - pos += set[i + 1]; - if (pos >= code) - return true; - } - return false; - } - function isIdentifierStart(code) { - if (code < 65) - return code === 36; - if (code <= 90) - return true; - if (code < 97) - return code === 95; - if (code <= 122) - return true; - if (code <= 65535) { - return code >= 170 && nonASCIIidentifierStart.test(String.fromCharCode(code)); - } - return isInAstralSet(code, astralIdentifierStartCodes); - } - function isIdentifierChar(code) { - if (code < 48) - return code === 36; - if (code < 58) - return true; - if (code < 65) - return false; - if (code <= 90) - return true; - if (code < 97) - return code === 95; - if (code <= 122) - return true; - if (code <= 65535) { - return code >= 170 && nonASCIIidentifier.test(String.fromCharCode(code)); +// node_modules/color-convert/route.js +var require_route = __commonJS({ + "node_modules/color-convert/route.js"(exports, module) { + var conversions = require_conversions(); + function buildGraph() { + var graph = {}; + var models = Object.keys(conversions); + for (var len = models.length, i = 0; i < len; i++) { + graph[models[i]] = { + // http://jsperf.com/1-vs-infinity + // micro-opt, but this is simple. + distance: -1, + parent: null + }; } - return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes); + return graph; } - function isIdentifierName(name) { - let isFirst = true; - for (let i = 0; i < name.length; i++) { - let cp = name.charCodeAt(i); - if ((cp & 64512) === 55296 && i + 1 < name.length) { - const trail = name.charCodeAt(++i); - if ((trail & 64512) === 56320) { - cp = 65536 + ((cp & 1023) << 10) + (trail & 1023); - } - } - if (isFirst) { - isFirst = false; - if (!isIdentifierStart(cp)) { - return false; + function deriveBFS(fromModel) { + var graph = buildGraph(); + var queue = [fromModel]; + graph[fromModel].distance = 0; + while (queue.length) { + var current = queue.pop(); + var adjacents = Object.keys(conversions[current]); + for (var len = adjacents.length, i = 0; i < len; i++) { + var adjacent = adjacents[i]; + var node = graph[adjacent]; + if (node.distance === -1) { + node.distance = graph[current].distance + 1; + node.parent = current; + queue.unshift(adjacent); } - } else if (!isIdentifierChar(cp)) { - return false; } } - return !isFirst; + return graph; + } + function link(from, to) { + return function(args) { + return to(from(args)); + }; + } + function wrapConversion(toModel, graph) { + var path9 = [graph[toModel].parent, toModel]; + var fn = conversions[graph[toModel].parent][toModel]; + var cur = graph[toModel].parent; + while (graph[cur].parent) { + path9.unshift(graph[cur].parent); + fn = link(conversions[graph[cur].parent][cur], fn); + cur = graph[cur].parent; + } + fn.conversion = path9; + return fn; } + module.exports = function(fromModel) { + var graph = deriveBFS(fromModel); + var conversion = {}; + var models = Object.keys(graph); + for (var len = models.length, i = 0; i < len; i++) { + var toModel = models[i]; + var node = graph[toModel]; + if (node.parent === null) { + continue; + } + conversion[toModel] = wrapConversion(toModel, graph); + } + return conversion; + }; } }); -// node_modules/@babel/helper-validator-identifier/lib/keyword.js -var require_keyword = __commonJS({ - "node_modules/@babel/helper-validator-identifier/lib/keyword.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.isKeyword = isKeyword; - exports.isReservedWord = isReservedWord; - exports.isStrictBindOnlyReservedWord = isStrictBindOnlyReservedWord; - exports.isStrictBindReservedWord = isStrictBindReservedWord; - exports.isStrictReservedWord = isStrictReservedWord; - var reservedWords = { - keyword: ["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "switch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import", "null", "true", "false", "in", "instanceof", "typeof", "void", "delete"], - strict: ["implements", "interface", "let", "package", "private", "protected", "public", "static", "yield"], - strictBind: ["eval", "arguments"] - }; - var keywords = new Set(reservedWords.keyword); - var reservedWordsStrictSet = new Set(reservedWords.strict); - var reservedWordsStrictBindSet = new Set(reservedWords.strictBind); - function isReservedWord(word, inModule) { - return inModule && word === "await" || word === "enum"; - } - function isStrictReservedWord(word, inModule) { - return isReservedWord(word, inModule) || reservedWordsStrictSet.has(word); - } - function isStrictBindOnlyReservedWord(word) { - return reservedWordsStrictBindSet.has(word); - } - function isStrictBindReservedWord(word, inModule) { - return isStrictReservedWord(word, inModule) || isStrictBindOnlyReservedWord(word); +// node_modules/color-convert/index.js +var require_color_convert = __commonJS({ + "node_modules/color-convert/index.js"(exports, module) { + var conversions = require_conversions(); + var route = require_route(); + var convert = {}; + var models = Object.keys(conversions); + function wrapRaw(fn) { + var wrappedFn = function(args) { + if (args === void 0 || args === null) { + return args; + } + if (arguments.length > 1) { + args = Array.prototype.slice.call(arguments); + } + return fn(args); + }; + if ("conversion" in fn) { + wrappedFn.conversion = fn.conversion; + } + return wrappedFn; } - function isKeyword(word) { - return keywords.has(word); + function wrapRounded(fn) { + var wrappedFn = function(args) { + if (args === void 0 || args === null) { + return args; + } + if (arguments.length > 1) { + args = Array.prototype.slice.call(arguments); + } + var result = fn(args); + if (typeof result === "object") { + for (var len = result.length, i = 0; i < len; i++) { + result[i] = Math.round(result[i]); + } + } + return result; + }; + if ("conversion" in fn) { + wrappedFn.conversion = fn.conversion; + } + return wrappedFn; } + models.forEach(function(fromModel) { + convert[fromModel] = {}; + Object.defineProperty(convert[fromModel], "channels", { value: conversions[fromModel].channels }); + Object.defineProperty(convert[fromModel], "labels", { value: conversions[fromModel].labels }); + var routes = route(fromModel); + var routeModels = Object.keys(routes); + routeModels.forEach(function(toModel) { + var fn = routes[toModel]; + convert[fromModel][toModel] = wrapRounded(fn); + convert[fromModel][toModel].raw = wrapRaw(fn); + }); + }); + module.exports = convert; } }); -// node_modules/@babel/helper-validator-identifier/lib/index.js -var require_lib2 = __commonJS({ - "node_modules/@babel/helper-validator-identifier/lib/index.js"(exports) { +// node_modules/ansi-styles/index.js +var require_ansi_styles = __commonJS({ + "node_modules/ansi-styles/index.js"(exports, module) { "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.defineProperty(exports, "isIdentifierChar", { - enumerable: true, - get: function() { - return _identifier.isIdentifierChar; - } - }); - Object.defineProperty(exports, "isIdentifierName", { - enumerable: true, - get: function() { - return _identifier.isIdentifierName; - } - }); - Object.defineProperty(exports, "isIdentifierStart", { - enumerable: true, - get: function() { - return _identifier.isIdentifierStart; - } - }); - Object.defineProperty(exports, "isKeyword", { - enumerable: true, - get: function() { - return _keyword.isKeyword; - } - }); - Object.defineProperty(exports, "isReservedWord", { - enumerable: true, - get: function() { - return _keyword.isReservedWord; - } - }); - Object.defineProperty(exports, "isStrictBindOnlyReservedWord", { - enumerable: true, - get: function() { - return _keyword.isStrictBindOnlyReservedWord; + var colorConvert = require_color_convert(); + var wrapAnsi162 = (fn, offset) => function() { + const code = fn.apply(colorConvert, arguments); + return `\x1B[${code + offset}m`; + }; + var wrapAnsi2562 = (fn, offset) => function() { + const code = fn.apply(colorConvert, arguments); + return `\x1B[${38 + offset};5;${code}m`; + }; + var wrapAnsi16m2 = (fn, offset) => function() { + const rgb = fn.apply(colorConvert, arguments); + return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`; + }; + function assembleStyles2() { + const codes2 = /* @__PURE__ */ new Map(); + const styles3 = { + modifier: { + reset: [0, 0], + // 21 isn't widely supported and 22 does the same thing + bold: [1, 22], + dim: [2, 22], + italic: [3, 23], + underline: [4, 24], + inverse: [7, 27], + hidden: [8, 28], + strikethrough: [9, 29] + }, + color: { + black: [30, 39], + red: [31, 39], + green: [32, 39], + yellow: [33, 39], + blue: [34, 39], + magenta: [35, 39], + cyan: [36, 39], + white: [37, 39], + gray: [90, 39], + // Bright color + redBright: [91, 39], + greenBright: [92, 39], + yellowBright: [93, 39], + blueBright: [94, 39], + magentaBright: [95, 39], + cyanBright: [96, 39], + whiteBright: [97, 39] + }, + bgColor: { + bgBlack: [40, 49], + bgRed: [41, 49], + bgGreen: [42, 49], + bgYellow: [43, 49], + bgBlue: [44, 49], + bgMagenta: [45, 49], + bgCyan: [46, 49], + bgWhite: [47, 49], + // Bright color + bgBlackBright: [100, 49], + bgRedBright: [101, 49], + bgGreenBright: [102, 49], + bgYellowBright: [103, 49], + bgBlueBright: [104, 49], + bgMagentaBright: [105, 49], + bgCyanBright: [106, 49], + bgWhiteBright: [107, 49] + } + }; + styles3.color.grey = styles3.color.gray; + for (const groupName of Object.keys(styles3)) { + const group = styles3[groupName]; + for (const styleName of Object.keys(group)) { + const style = group[styleName]; + styles3[styleName] = { + open: `\x1B[${style[0]}m`, + close: `\x1B[${style[1]}m` + }; + group[styleName] = styles3[styleName]; + codes2.set(style[0], style[1]); + } + Object.defineProperty(styles3, groupName, { + value: group, + enumerable: false + }); + Object.defineProperty(styles3, "codes", { + value: codes2, + enumerable: false + }); } - }); - Object.defineProperty(exports, "isStrictBindReservedWord", { - enumerable: true, - get: function() { - return _keyword.isStrictBindReservedWord; + const ansi2ansi = (n) => n; + const rgb2rgb = (r, g, b) => [r, g, b]; + styles3.color.close = "\x1B[39m"; + styles3.bgColor.close = "\x1B[49m"; + styles3.color.ansi = { + ansi: wrapAnsi162(ansi2ansi, 0) + }; + styles3.color.ansi256 = { + ansi256: wrapAnsi2562(ansi2ansi, 0) + }; + styles3.color.ansi16m = { + rgb: wrapAnsi16m2(rgb2rgb, 0) + }; + styles3.bgColor.ansi = { + ansi: wrapAnsi162(ansi2ansi, 10) + }; + styles3.bgColor.ansi256 = { + ansi256: wrapAnsi2562(ansi2ansi, 10) + }; + styles3.bgColor.ansi16m = { + rgb: wrapAnsi16m2(rgb2rgb, 10) + }; + for (let key of Object.keys(colorConvert)) { + if (typeof colorConvert[key] !== "object") { + continue; + } + const suite = colorConvert[key]; + if (key === "ansi16") { + key = "ansi"; + } + if ("ansi16" in suite) { + styles3.color.ansi[key] = wrapAnsi162(suite.ansi16, 0); + styles3.bgColor.ansi[key] = wrapAnsi162(suite.ansi16, 10); + } + if ("ansi256" in suite) { + styles3.color.ansi256[key] = wrapAnsi2562(suite.ansi256, 0); + styles3.bgColor.ansi256[key] = wrapAnsi2562(suite.ansi256, 10); + } + if ("rgb" in suite) { + styles3.color.ansi16m[key] = wrapAnsi16m2(suite.rgb, 0); + styles3.bgColor.ansi16m[key] = wrapAnsi16m2(suite.rgb, 10); + } } - }); - Object.defineProperty(exports, "isStrictReservedWord", { + return styles3; + } + Object.defineProperty(module, "exports", { enumerable: true, - get: function() { - return _keyword.isStrictReservedWord; - } + get: assembleStyles2 }); - var _identifier = require_identifier(); - var _keyword = require_keyword(); - } -}); - -// node_modules/@babel/highlight/node_modules/escape-string-regexp/index.js -var require_escape_string_regexp2 = __commonJS({ - "node_modules/@babel/highlight/node_modules/escape-string-regexp/index.js"(exports, module) { - "use strict"; - var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g; - module.exports = function(str) { - if (typeof str !== "string") { - throw new TypeError("Expected a string"); - } - return str.replace(matchOperatorsRe, "\\$&"); - }; } }); -// node_modules/@babel/highlight/node_modules/has-flag/index.js -var require_has_flag2 = __commonJS({ - "node_modules/@babel/highlight/node_modules/has-flag/index.js"(exports, module) { +// node_modules/@babel/code-frame/node_modules/has-flag/index.js +var require_has_flag = __commonJS({ + "node_modules/@babel/code-frame/node_modules/has-flag/index.js"(exports, module) { "use strict"; module.exports = (flag, argv) => { argv = argv || process.argv; @@ -8785,23 +7288,23 @@ var require_has_flag2 = __commonJS({ } }); -// node_modules/@babel/highlight/node_modules/supports-color/index.js -var require_supports_color2 = __commonJS({ - "node_modules/@babel/highlight/node_modules/supports-color/index.js"(exports, module) { +// node_modules/@babel/code-frame/node_modules/supports-color/index.js +var require_supports_color = __commonJS({ + "node_modules/@babel/code-frame/node_modules/supports-color/index.js"(exports, module) { "use strict"; - var os = __require("os"); - var hasFlag = require_has_flag2(); - var env = process.env; + var os2 = __require("os"); + var hasFlag2 = require_has_flag(); + var env2 = process.env; var forceColor; - if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) { + if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false")) { forceColor = false; - } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) { + } else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) { forceColor = true; } - if ("FORCE_COLOR" in env) { - forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0; + if ("FORCE_COLOR" in env2) { + forceColor = env2.FORCE_COLOR.length === 0 || parseInt(env2.FORCE_COLOR, 10) !== 0; } - function translateLevel(level) { + function translateLevel2(level) { if (level === 0) { return false; } @@ -8812,14 +7315,14 @@ var require_supports_color2 = __commonJS({ has16m: level >= 3 }; } - function supportsColor(stream) { + function supportsColor2(stream) { if (forceColor === false) { return 0; } - if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) { + if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) { return 3; } - if (hasFlag("color=256")) { + if (hasFlag2("color=256")) { return 2; } if (stream && !stream.isTTY && forceColor !== true) { @@ -8827,50 +7330,50 @@ var require_supports_color2 = __commonJS({ } const min = forceColor ? 1 : 0; if (process.platform === "win32") { - const osRelease = os.release().split("."); + const osRelease = os2.release().split("."); if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) { return Number(osRelease[2]) >= 14931 ? 3 : 2; } return 1; } - if ("CI" in env) { - if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env) || env.CI_NAME === "codeship") { + if ("CI" in env2) { + if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") { return 1; } return min; } - if ("TEAMCITY_VERSION" in env) { - return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0; + if ("TEAMCITY_VERSION" in env2) { + return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0; } - if (env.COLORTERM === "truecolor") { + if (env2.COLORTERM === "truecolor") { return 3; } - if ("TERM_PROGRAM" in env) { - const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10); - switch (env.TERM_PROGRAM) { + if ("TERM_PROGRAM" in env2) { + const version = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10); + switch (env2.TERM_PROGRAM) { case "iTerm.app": return version >= 3 ? 3 : 2; case "Apple_Terminal": return 2; } } - if (/-256(color)?$/i.test(env.TERM)) { + if (/-256(color)?$/i.test(env2.TERM)) { return 2; } - if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) { + if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) { return 1; } - if ("COLORTERM" in env) { + if ("COLORTERM" in env2) { return 1; } - if (env.TERM === "dumb") { + if (env2.TERM === "dumb") { return min; } return min; } function getSupportLevel(stream) { - const level = supportsColor(stream); - return translateLevel(level); + const level = supportsColor2(stream); + return translateLevel2(level); } module.exports = { supportsColor: getSupportLevel, @@ -8880,9 +7383,9 @@ var require_supports_color2 = __commonJS({ } }); -// node_modules/@babel/highlight/node_modules/chalk/templates.js -var require_templates2 = __commonJS({ - "node_modules/@babel/highlight/node_modules/chalk/templates.js"(exports, module) { +// node_modules/@babel/code-frame/node_modules/chalk/templates.js +var require_templates = __commonJS({ + "node_modules/@babel/code-frame/node_modules/chalk/templates.js"(exports, module) { "use strict"; var TEMPLATE_REGEX = /(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi; var STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g; @@ -8936,14 +7439,14 @@ var require_templates2 = __commonJS({ } return results; } - function buildStyle(chalk, styles) { + function buildStyle(chalk2, styles3) { const enabled = {}; - for (const layer of styles) { + for (const layer of styles3) { for (const style of layer.styles) { enabled[style[0]] = layer.inverse ? null : style.slice(1); } } - let current = chalk; + let current = chalk2; for (const styleName of Object.keys(enabled)) { if (Array.isArray(enabled[styleName])) { if (!(styleName in current)) { @@ -8958,8 +7461,8 @@ var require_templates2 = __commonJS({ } return current; } - module.exports = (chalk, tmp) => { - const styles = []; + module.exports = (chalk2, tmp) => { + const styles3 = []; const chunks = []; let chunk = []; tmp.replace(TEMPLATE_REGEX, (m, escapeChar, inverse, style, close, chr) => { @@ -8968,22 +7471,22 @@ var require_templates2 = __commonJS({ } else if (style) { const str = chunk.join(""); chunk = []; - chunks.push(styles.length === 0 ? str : buildStyle(chalk, styles)(str)); - styles.push({ inverse, styles: parseStyle(style) }); + chunks.push(styles3.length === 0 ? str : buildStyle(chalk2, styles3)(str)); + styles3.push({ inverse, styles: parseStyle(style) }); } else if (close) { - if (styles.length === 0) { + if (styles3.length === 0) { throw new Error("Found extraneous } in Chalk template literal"); } - chunks.push(buildStyle(chalk, styles)(chunk.join(""))); + chunks.push(buildStyle(chalk2, styles3)(chunk.join(""))); chunk = []; - styles.pop(); + styles3.pop(); } else { chunk.push(chr); } }); chunks.push(chunk.join("")); - if (styles.length > 0) { - const errMsg = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? "" : "s"} (\`}\`)`; + if (styles3.length > 0) { + const errMsg = `Chalk template literal is missing ${styles3.length} closing bracket${styles3.length === 1 ? "" : "s"} (\`}\`)`; throw new Error(errMsg); } return chunks.join(""); @@ -8991,102 +7494,102 @@ var require_templates2 = __commonJS({ } }); -// node_modules/@babel/highlight/node_modules/chalk/index.js -var require_chalk2 = __commonJS({ - "node_modules/@babel/highlight/node_modules/chalk/index.js"(exports, module) { +// node_modules/@babel/code-frame/node_modules/chalk/index.js +var require_chalk = __commonJS({ + "node_modules/@babel/code-frame/node_modules/chalk/index.js"(exports, module) { "use strict"; - var escapeStringRegexp2 = require_escape_string_regexp2(); - var ansiStyles = require_ansi_styles(); - var stdoutColor = require_supports_color2().stdout; - var template = require_templates2(); + var escapeStringRegexp2 = require_escape_string_regexp(); + var ansiStyles2 = require_ansi_styles(); + var stdoutColor2 = require_supports_color().stdout; + var template = require_templates(); var isSimpleWindowsTerm = process.platform === "win32" && !(process.env.TERM || "").toLowerCase().startsWith("xterm"); - var levelMapping = ["ansi", "ansi", "ansi256", "ansi16m"]; + var levelMapping2 = ["ansi", "ansi", "ansi256", "ansi16m"]; var skipModels = /* @__PURE__ */ new Set(["gray"]); - var styles = /* @__PURE__ */ Object.create(null); - function applyOptions(obj, options8) { + var styles3 = /* @__PURE__ */ Object.create(null); + function applyOptions2(obj, options8) { options8 = options8 || {}; - const scLevel = stdoutColor ? stdoutColor.level : 0; + const scLevel = stdoutColor2 ? stdoutColor2.level : 0; obj.level = options8.level === void 0 ? scLevel : options8.level; obj.enabled = "enabled" in options8 ? options8.enabled : obj.level > 0; } function Chalk(options8) { if (!this || !(this instanceof Chalk) || this.template) { - const chalk = {}; - applyOptions(chalk, options8); - chalk.template = function() { + const chalk2 = {}; + applyOptions2(chalk2, options8); + chalk2.template = function() { const args = [].slice.call(arguments); - return chalkTag.apply(null, [chalk.template].concat(args)); + return chalkTag.apply(null, [chalk2.template].concat(args)); }; - Object.setPrototypeOf(chalk, Chalk.prototype); - Object.setPrototypeOf(chalk.template, chalk); - chalk.template.constructor = Chalk; - return chalk.template; + Object.setPrototypeOf(chalk2, Chalk.prototype); + Object.setPrototypeOf(chalk2.template, chalk2); + chalk2.template.constructor = Chalk; + return chalk2.template; } - applyOptions(this, options8); + applyOptions2(this, options8); } if (isSimpleWindowsTerm) { - ansiStyles.blue.open = "\x1B[94m"; + ansiStyles2.blue.open = "\x1B[94m"; } - for (const key of Object.keys(ansiStyles)) { - ansiStyles[key].closeRe = new RegExp(escapeStringRegexp2(ansiStyles[key].close), "g"); - styles[key] = { + for (const key of Object.keys(ansiStyles2)) { + ansiStyles2[key].closeRe = new RegExp(escapeStringRegexp2(ansiStyles2[key].close), "g"); + styles3[key] = { get() { - const codes2 = ansiStyles[key]; + const codes2 = ansiStyles2[key]; return build.call(this, this._styles ? this._styles.concat(codes2) : [codes2], this._empty, key); } }; } - styles.visible = { + styles3.visible = { get() { return build.call(this, this._styles || [], true, "visible"); } }; - ansiStyles.color.closeRe = new RegExp(escapeStringRegexp2(ansiStyles.color.close), "g"); - for (const model of Object.keys(ansiStyles.color.ansi)) { + ansiStyles2.color.closeRe = new RegExp(escapeStringRegexp2(ansiStyles2.color.close), "g"); + for (const model of Object.keys(ansiStyles2.color.ansi)) { if (skipModels.has(model)) { continue; } - styles[model] = { + styles3[model] = { get() { const level = this.level; return function() { - const open = ansiStyles.color[levelMapping[level]][model].apply(null, arguments); + const open = ansiStyles2.color[levelMapping2[level]][model].apply(null, arguments); const codes2 = { open, - close: ansiStyles.color.close, - closeRe: ansiStyles.color.closeRe + close: ansiStyles2.color.close, + closeRe: ansiStyles2.color.closeRe }; return build.call(this, this._styles ? this._styles.concat(codes2) : [codes2], this._empty, model); }; } }; } - ansiStyles.bgColor.closeRe = new RegExp(escapeStringRegexp2(ansiStyles.bgColor.close), "g"); - for (const model of Object.keys(ansiStyles.bgColor.ansi)) { + ansiStyles2.bgColor.closeRe = new RegExp(escapeStringRegexp2(ansiStyles2.bgColor.close), "g"); + for (const model of Object.keys(ansiStyles2.bgColor.ansi)) { if (skipModels.has(model)) { continue; } const bgModel = "bg" + model[0].toUpperCase() + model.slice(1); - styles[bgModel] = { + styles3[bgModel] = { get() { const level = this.level; return function() { - const open = ansiStyles.bgColor[levelMapping[level]][model].apply(null, arguments); + const open = ansiStyles2.bgColor[levelMapping2[level]][model].apply(null, arguments); const codes2 = { open, - close: ansiStyles.bgColor.close, - closeRe: ansiStyles.bgColor.closeRe + close: ansiStyles2.bgColor.close, + closeRe: ansiStyles2.bgColor.closeRe }; return build.call(this, this._styles ? this._styles.concat(codes2) : [codes2], this._empty, model); }; } }; } - var proto = Object.defineProperties(() => { - }, styles); + var proto2 = Object.defineProperties(() => { + }, styles3); function build(_styles, _empty, key) { const builder = function() { - return applyStyle.apply(builder, arguments); + return applyStyle2.apply(builder, arguments); }; builder._styles = _styles; builder._empty = _empty; @@ -9110,10 +7613,10 @@ var require_chalk2 = __commonJS({ } }); builder.hasGrey = this.hasGrey || key === "gray" || key === "grey"; - builder.__proto__ = proto; + builder.__proto__ = proto2; return builder; } - function applyStyle() { + function applyStyle2() { const args = arguments; const argsLen = args.length; let str = String(arguments[0]); @@ -9128,18 +7631,18 @@ var require_chalk2 = __commonJS({ if (!this.enabled || this.level <= 0 || !str) { return this._empty ? "" : str; } - const originalDim = ansiStyles.dim.open; + const originalDim = ansiStyles2.dim.open; if (isSimpleWindowsTerm && this.hasGrey) { - ansiStyles.dim.open = ""; + ansiStyles2.dim.open = ""; } for (const code of this._styles.slice().reverse()) { str = code.open + str.replace(code.closeRe, code.open) + code.close; str = str.replace(/\r?\n/g, `${code.close}$&${code.open}`); } - ansiStyles.dim.open = originalDim; + ansiStyles2.dim.open = originalDim; return str; } - function chalkTag(chalk, strings) { + function chalkTag(chalk2, strings) { if (!Array.isArray(strings)) { return [].slice.call(arguments, 1).join(" "); } @@ -9149,40 +7652,40 @@ var require_chalk2 = __commonJS({ parts.push(String(args[i - 1]).replace(/[{}\\]/g, "\\$&")); parts.push(String(strings.raw[i])); } - return template(chalk, parts.join("")); + return template(chalk2, parts.join("")); } - Object.defineProperties(Chalk.prototype, styles); + Object.defineProperties(Chalk.prototype, styles3); module.exports = Chalk(); - module.exports.supportsColor = stdoutColor; + module.exports.supportsColor = stdoutColor2; module.exports.default = module.exports; } }); // node_modules/@babel/highlight/lib/index.js -var require_lib3 = __commonJS({ +var require_lib2 = __commonJS({ "node_modules/@babel/highlight/lib/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = highlight; - exports.getChalk = getChalk; exports.shouldHighlight = shouldHighlight; var _jsTokens = require_js_tokens(); - var _helperValidatorIdentifier = require_lib2(); - var _chalk = require_chalk2(); + var _helperValidatorIdentifier = require_lib(); + var _chalk2 = require_chalk(); + var chalk2 = _chalk2; var sometimesKeywords = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]); - function getDefs(chalk) { + function getDefs(chalk3) { return { - keyword: chalk.cyan, - capitalized: chalk.yellow, - jsxIdentifier: chalk.yellow, - punctuator: chalk.yellow, - number: chalk.magenta, - string: chalk.green, - regex: chalk.magenta, - comment: chalk.grey, - invalid: chalk.white.bgRed.bold + keyword: chalk3.cyan, + capitalized: chalk3.yellow, + jsxIdentifier: chalk3.yellow, + punctuator: chalk3.yellow, + number: chalk3.magenta, + string: chalk3.green, + regex: chalk3.magenta, + comment: chalk3.grey, + invalid: chalk3.white.bgRed.bold }; } var NEWLINE = /\r\n|[\n\r\u2028\u2029]/; @@ -9237,18 +7740,28 @@ var require_lib3 = __commonJS({ return highlighted; } function shouldHighlight(options8) { - return !!_chalk.supportsColor || options8.forceColor; + return !!chalk2.supportsColor || options8.forceColor; + } + var chalkWithForcedColor = void 0; + function getChalk(forceColor) { + if (forceColor) { + var _chalkWithForcedColor; + (_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new chalk2.constructor({ + enabled: true, + level: 1 + }); + return chalkWithForcedColor; + } + return chalk2; } - function getChalk(options8) { - return options8.forceColor ? new _chalk.constructor({ - enabled: true, - level: 1 - }) : _chalk; + { + { + exports.getChalk = (options8) => getChalk(options8.forceColor); + } } function highlight(code, options8 = {}) { if (code !== "" && shouldHighlight(options8)) { - const chalk = getChalk(options8); - const defs = getDefs(chalk); + const defs = getDefs(getChalk(options8.forceColor)); return highlightTokens(defs, code); } else { return code; @@ -9258,7 +7771,7 @@ var require_lib3 = __commonJS({ }); // node_modules/@babel/code-frame/lib/index.js -var require_lib4 = __commonJS({ +var require_lib3 = __commonJS({ "node_modules/@babel/code-frame/lib/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -9266,13 +7779,27 @@ var require_lib4 = __commonJS({ }); exports.codeFrameColumns = codeFrameColumns2; exports.default = _default; - var _highlight = require_lib3(); + var _highlight = require_lib2(); + var _chalk2 = require_chalk(); + var chalk2 = _chalk2; + var chalkWithForcedColor = void 0; + function getChalk(forceColor) { + if (forceColor) { + var _chalkWithForcedColor; + (_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new chalk2.constructor({ + enabled: true, + level: 1 + }); + return chalkWithForcedColor; + } + return chalk2; + } var deprecationWarningShown = false; - function getDefs(chalk) { + function getDefs(chalk3) { return { - gutter: chalk.grey, - marker: chalk.red.bold, - message: chalk.red.bold + gutter: chalk3.grey, + marker: chalk3.red.bold, + message: chalk3.red.bold }; } var NEWLINE = /\r\n|[\n\r\u2028\u2029]/; @@ -9334,8 +7861,8 @@ var require_lib4 = __commonJS({ } function codeFrameColumns2(rawLines, loc, opts = {}) { const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts); - const chalk = (0, _highlight.getChalk)(opts); - const defs = getDefs(chalk); + const chalk3 = getChalk(opts.forceColor); + const defs = getDefs(chalk3); const maybeHighlight = (chalkFn, string) => { return highlighted ? chalkFn(string) : string; }; @@ -9374,7 +7901,7 @@ var require_lib4 = __commonJS({ ${frame}`; } if (highlighted) { - return chalk.reset(frame); + return chalk3.reset(frame); } else { return frame; } @@ -9422,7 +7949,7 @@ var require_p_defer = __commonJS({ var require_dist = __commonJS({ "node_modules/map-age-cleaner/dist/index.js"(exports, module) { "use strict"; - var __awaiter2 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function(resolve2, reject) { function fulfilled(value) { try { @@ -9446,20 +7973,20 @@ var require_dist = __commonJS({ step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var __importDefault2 = exports && exports.__importDefault || function(mod) { + var __importDefault = exports && exports.__importDefault || function(mod) { return mod && mod.__esModule ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); - var p_defer_1 = __importDefault2(require_p_defer()); + var p_defer_1 = __importDefault(require_p_defer()); function mapAgeCleaner2(map, property = "maxAge") { let processingKey; let processingTimer; let processingDeferred; - const cleanup = () => __awaiter2(this, void 0, void 0, function* () { + const cleanup = () => __awaiter(this, void 0, void 0, function* () { if (processingKey !== void 0) { return; } - const setupTimer = (item) => __awaiter2(this, void 0, void 0, function* () { + const setupTimer = (item) => __awaiter(this, void 0, void 0, function* () { processingDeferred = p_defer_1.default(); const delay = item[1][property] - Date.now(); if (delay <= 0) { @@ -9562,7 +8089,11 @@ var require_constants4 = __commonJS({ // node_modules/semver/internal/re.js var require_re = __commonJS({ "node_modules/semver/internal/re.js"(exports, module) { - var { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH } = require_constants4(); + var { + MAX_SAFE_COMPONENT_LENGTH, + MAX_SAFE_BUILD_LENGTH, + MAX_LENGTH + } = require_constants4(); var debug = require_debug(); exports = module.exports = {}; var re = exports.re = []; @@ -9573,7 +8104,7 @@ var require_re = __commonJS({ var LETTERDASHNUMBER = "[a-zA-Z0-9-]"; var safeRegexReplacements = [ ["\\s", 1], - ["\\d", MAX_SAFE_COMPONENT_LENGTH], + ["\\d", MAX_LENGTH], [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH] ]; var makeSafeRegex = (value) => { @@ -11442,7 +9973,7 @@ var require_fnmatch = __commonJS({ var require_ini = __commonJS({ "node_modules/editorconfig/src/lib/ini.js"(exports) { "use strict"; - var __awaiter2 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function(resolve2, reject) { function fulfilled(value) { try { @@ -11466,7 +9997,7 @@ var require_ini = __commonJS({ step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var __generator2 = exports && exports.__generator || function(thisArg, body) { + var __generator = exports && exports.__generator || function(thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; @@ -11542,7 +10073,7 @@ var require_ini = __commonJS({ return { value: op[0] ? op[1] : void 0, done: true }; } }; - var __importStar2 = exports && exports.__importStar || function(mod) { + var __importStar = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; @@ -11555,15 +10086,15 @@ var require_ini = __commonJS({ return result; }; Object.defineProperty(exports, "__esModule", { value: true }); - var fs5 = __importStar2(__require("fs")); + var fs5 = __importStar(__require("fs")); var regex = { section: /^\s*\[(([^#;]|\\#|\\;)+)\]\s*([#;].*)?$/, param: /^\s*([\w\.\-\_]+)\s*[=:]\s*(.*?)\s*([#;].*)?$/, comment: /^\s*[#;].*$/ }; function parse3(file) { - return __awaiter2(this, void 0, void 0, function() { - return __generator2(this, function(_a) { + return __awaiter(this, void 0, void 0, function() { + return __generator(this, function(_a) { return [2, new Promise(function(resolve2, reject) { fs5.readFile(file, "utf8", function(err, data) { if (err) { @@ -11676,7 +10207,7 @@ var require_package = __commonJS({ var require_src = __commonJS({ "node_modules/editorconfig/src/index.js"(exports) { "use strict"; - var __awaiter2 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function(resolve2, reject) { function fulfilled(value) { try { @@ -11700,7 +10231,7 @@ var require_src = __commonJS({ step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var __generator2 = exports && exports.__generator || function(thisArg, body) { + var __generator = exports && exports.__generator || function(thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; @@ -11776,7 +10307,7 @@ var require_src = __commonJS({ return { value: op[0] ? op[1] : void 0, done: true }; } }; - var __importStar2 = exports && exports.__importStar || function(mod) { + var __importStar = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; @@ -11788,19 +10319,19 @@ var require_src = __commonJS({ result["default"] = mod; return result; }; - var __importDefault2 = exports && exports.__importDefault || function(mod) { + var __importDefault = exports && exports.__importDefault || function(mod) { return mod && mod.__esModule ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); - var fs5 = __importStar2(__require("fs")); - var path9 = __importStar2(__require("path")); + var fs5 = __importStar(__require("fs")); + var path9 = __importStar(__require("path")); var semver = { gte: require_gte() }; - var fnmatch_1 = __importDefault2(require_fnmatch()); + var fnmatch_1 = __importDefault(require_fnmatch()); var ini_1 = require_ini(); exports.parseString = ini_1.parseString; - var package_json_1 = __importDefault2(require_package()); + var package_json_1 = __importDefault(require_package()); var knownProps = { end_of_line: true, indent_style: true, @@ -11920,8 +10451,8 @@ var require_src = __commonJS({ return configs; } function readConfigFiles(filepaths) { - return __awaiter2(this, void 0, void 0, function() { - return __generator2(this, function(_a) { + return __awaiter(this, void 0, void 0, function() { + return __generator(this, function(_a) { return [2, Promise.all(filepaths.map(function(name) { return new Promise(function(resolve2) { fs5.readFile(name, "utf8", function(err, data) { @@ -11965,9 +10496,9 @@ var require_src = __commonJS({ if (options8 === void 0) { options8 = {}; } - return __awaiter2(this, void 0, void 0, function() { + return __awaiter(this, void 0, void 0, function() { var _a, resolvedFilePath, processedOptions; - return __generator2(this, function(_b) { + return __generator(this, function(_b) { _a = opts(filepath, options8), resolvedFilePath = _a[0], processedOptions = _a[1]; return [2, files.then(getConfigsForFiles).then(function(configs) { return parseFromConfigs(configs, resolvedFilePath, processedOptions); @@ -11988,9 +10519,9 @@ var require_src = __commonJS({ if (_options === void 0) { _options = {}; } - return __awaiter2(this, void 0, void 0, function() { + return __awaiter(this, void 0, void 0, function() { var _a, resolvedFilePath, processedOptions, filepaths; - return __generator2(this, function(_b) { + return __generator(this, function(_b) { _a = opts(_filepath, _options), resolvedFilePath = _a[0], processedOptions = _a[1]; filepaths = getConfigFileNames(resolvedFilePath, processedOptions); return [2, readConfigFiles(filepaths).then(getConfigsForFiles).then(function(configs) { @@ -14240,757 +12771,1933 @@ var require_parse3 = __commonJS({ case void 0: throw invalidChar(read2()); } - buffer += read2(); - }, + buffer += read2(); + }, + start() { + switch (c) { + case "{": + case "[": + return newToken("punctuator", read2()); + } + lexState = "value"; + }, + beforePropertyName() { + switch (c) { + case "$": + case "_": + buffer = read2(); + lexState = "identifierName"; + return; + case "\\": + read2(); + lexState = "identifierNameStartEscape"; + return; + case "}": + return newToken("punctuator", read2()); + case '"': + case "'": + doubleQuote = read2() === '"'; + lexState = "string"; + return; + } + if (util.isIdStartChar(c)) { + buffer += read2(); + lexState = "identifierName"; + return; + } + throw invalidChar(read2()); + }, + afterPropertyName() { + if (c === ":") { + return newToken("punctuator", read2()); + } + throw invalidChar(read2()); + }, + beforePropertyValue() { + lexState = "value"; + }, + afterPropertyValue() { + switch (c) { + case ",": + case "}": + return newToken("punctuator", read2()); + } + throw invalidChar(read2()); + }, + beforeArrayValue() { + if (c === "]") { + return newToken("punctuator", read2()); + } + lexState = "value"; + }, + afterArrayValue() { + switch (c) { + case ",": + case "]": + return newToken("punctuator", read2()); + } + throw invalidChar(read2()); + }, + end() { + throw invalidChar(read2()); + } + }; + function newToken(type, value) { + return { + type, + value, + line: line2, + column + }; + } + function literal(s) { + for (const c2 of s) { + const p = peek(); + if (p !== c2) { + throw invalidChar(read2()); + } + read2(); + } + } + function escape() { + const c2 = peek(); + switch (c2) { + case "b": + read2(); + return "\b"; + case "f": + read2(); + return "\f"; + case "n": + read2(); + return "\n"; + case "r": + read2(); + return "\r"; + case "t": + read2(); + return " "; + case "v": + read2(); + return "\v"; + case "0": + read2(); + if (util.isDigit(peek())) { + throw invalidChar(read2()); + } + return "\0"; + case "x": + read2(); + return hexEscape(); + case "u": + read2(); + return unicodeEscape(); + case "\n": + case "\u2028": + case "\u2029": + read2(); + return ""; + case "\r": + read2(); + if (peek() === "\n") { + read2(); + } + return ""; + case "1": + case "2": + case "3": + case "4": + case "5": + case "6": + case "7": + case "8": + case "9": + throw invalidChar(read2()); + case void 0: + throw invalidChar(read2()); + } + return read2(); + } + function hexEscape() { + let buffer2 = ""; + let c2 = peek(); + if (!util.isHexDigit(c2)) { + throw invalidChar(read2()); + } + buffer2 += read2(); + c2 = peek(); + if (!util.isHexDigit(c2)) { + throw invalidChar(read2()); + } + buffer2 += read2(); + return String.fromCodePoint(parseInt(buffer2, 16)); + } + function unicodeEscape() { + let buffer2 = ""; + let count = 4; + while (count-- > 0) { + const c2 = peek(); + if (!util.isHexDigit(c2)) { + throw invalidChar(read2()); + } + buffer2 += read2(); + } + return String.fromCodePoint(parseInt(buffer2, 16)); + } + var parseStates = { start() { - switch (c) { - case "{": - case "[": - return newToken("punctuator", read2()); + if (token.type === "eof") { + throw invalidEOF(); } - lexState = "value"; + push(); }, beforePropertyName() { - switch (c) { - case "$": - case "_": - buffer = read2(); - lexState = "identifierName"; - return; - case "\\": - read2(); - lexState = "identifierNameStartEscape"; + switch (token.type) { + case "identifier": + case "string": + key = token.value; + parseState = "afterPropertyName"; return; - case "}": - return newToken("punctuator", read2()); - case '"': - case "'": - doubleQuote = read2() === '"'; - lexState = "string"; + case "punctuator": + pop(); return; + case "eof": + throw invalidEOF(); } - if (util.isIdStartChar(c)) { - buffer += read2(); - lexState = "identifierName"; - return; - } - throw invalidChar(read2()); }, afterPropertyName() { - if (c === ":") { - return newToken("punctuator", read2()); + if (token.type === "eof") { + throw invalidEOF(); } - throw invalidChar(read2()); + parseState = "beforePropertyValue"; }, beforePropertyValue() { - lexState = "value"; + if (token.type === "eof") { + throw invalidEOF(); + } + push(); + }, + beforeArrayValue() { + if (token.type === "eof") { + throw invalidEOF(); + } + if (token.type === "punctuator" && token.value === "]") { + pop(); + return; + } + push(); }, afterPropertyValue() { - switch (c) { + if (token.type === "eof") { + throw invalidEOF(); + } + switch (token.value) { case ",": + parseState = "beforePropertyName"; + return; case "}": - return newToken("punctuator", read2()); + pop(); + } + }, + afterArrayValue() { + if (token.type === "eof") { + throw invalidEOF(); + } + switch (token.value) { + case ",": + parseState = "beforeArrayValue"; + return; + case "]": + pop(); + } + }, + end() { + } + }; + function push() { + let value; + switch (token.type) { + case "punctuator": + switch (token.value) { + case "{": + value = {}; + break; + case "[": + value = []; + break; + } + break; + case "null": + case "boolean": + case "numeric": + case "string": + value = token.value; + break; + } + if (root === void 0) { + root = value; + } else { + const parent = stack[stack.length - 1]; + if (Array.isArray(parent)) { + parent.push(value); + } else { + Object.defineProperty(parent, key, { + value, + writable: true, + enumerable: true, + configurable: true + }); + } + } + if (value !== null && typeof value === "object") { + stack.push(value); + if (Array.isArray(value)) { + parseState = "beforeArrayValue"; + } else { + parseState = "beforePropertyName"; + } + } else { + const current = stack[stack.length - 1]; + if (current == null) { + parseState = "end"; + } else if (Array.isArray(current)) { + parseState = "afterArrayValue"; + } else { + parseState = "afterPropertyValue"; + } + } + } + function pop() { + stack.pop(); + const current = stack[stack.length - 1]; + if (current == null) { + parseState = "end"; + } else if (Array.isArray(current)) { + parseState = "afterArrayValue"; + } else { + parseState = "afterPropertyValue"; + } + } + function invalidChar(c2) { + if (c2 === void 0) { + return syntaxError(`JSON5: invalid end of input at ${line2}:${column}`); + } + return syntaxError(`JSON5: invalid character '${formatChar(c2)}' at ${line2}:${column}`); + } + function invalidEOF() { + return syntaxError(`JSON5: invalid end of input at ${line2}:${column}`); + } + function invalidIdentifier() { + column -= 5; + return syntaxError(`JSON5: invalid identifier character at ${line2}:${column}`); + } + function separatorChar(c2) { + console.warn(`JSON5: '${formatChar(c2)}' in strings is not valid ECMAScript; consider escaping`); + } + function formatChar(c2) { + const replacements = { + "'": "\\'", + '"': '\\"', + "\\": "\\\\", + "\b": "\\b", + "\f": "\\f", + "\n": "\\n", + "\r": "\\r", + " ": "\\t", + "\v": "\\v", + "\0": "\\0", + "\u2028": "\\u2028", + "\u2029": "\\u2029" + }; + if (replacements[c2]) { + return replacements[c2]; + } + if (c2 < " ") { + const hexString = c2.charCodeAt(0).toString(16); + return "\\x" + ("00" + hexString).substring(hexString.length); + } + return c2; + } + function syntaxError(message) { + const err = new SyntaxError(message); + err.lineNumber = line2; + err.columnNumber = column; + return err; + } + } +}); + +// node_modules/ignore/index.js +var require_ignore = __commonJS({ + "node_modules/ignore/index.js"(exports, module) { + function makeArray(subject) { + return Array.isArray(subject) ? subject : [subject]; + } + var EMPTY = ""; + var SPACE = " "; + var ESCAPE = "\\"; + var REGEX_TEST_BLANK_LINE = /^\s+$/; + var REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\]|^)\\$/; + var REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/; + var REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/; + var REGEX_SPLITALL_CRLF = /\r?\n/g; + var REGEX_TEST_INVALID_PATH = /^\.*\/|^\.+$/; + var SLASH = "/"; + var TMP_KEY_IGNORE = "node-ignore"; + if (typeof Symbol !== "undefined") { + TMP_KEY_IGNORE = Symbol.for("node-ignore"); + } + var KEY_IGNORE = TMP_KEY_IGNORE; + var define = (object, key, value) => Object.defineProperty(object, key, { value }); + var REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g; + var RETURN_FALSE = () => false; + var sanitizeRange = (range) => range.replace( + REGEX_REGEXP_RANGE, + (match, from, to) => from.charCodeAt(0) <= to.charCodeAt(0) ? match : EMPTY + ); + var cleanRangeBackSlash = (slashes) => { + const { length } = slashes; + return slashes.slice(0, length - length % 2); + }; + var REPLACERS = [ + // > Trailing spaces are ignored unless they are quoted with backslash ("\") + [ + // (a\ ) -> (a ) + // (a ) -> (a) + // (a \ ) -> (a ) + /\\?\s+$/, + (match) => match.indexOf("\\") === 0 ? SPACE : EMPTY + ], + // replace (\ ) with ' ' + [ + /\\\s/g, + () => SPACE + ], + // Escape metacharacters + // which is written down by users but means special for regular expressions. + // > There are 12 characters with special meanings: + // > - the backslash \, + // > - the caret ^, + // > - the dollar sign $, + // > - the period or dot ., + // > - the vertical bar or pipe symbol |, + // > - the question mark ?, + // > - the asterisk or star *, + // > - the plus sign +, + // > - the opening parenthesis (, + // > - the closing parenthesis ), + // > - and the opening square bracket [, + // > - the opening curly brace {, + // > These special characters are often called "metacharacters". + [ + /[\\$.|*+(){^]/g, + (match) => `\\${match}` + ], + [ + // > a question mark (?) matches a single character + /(?!\\)\?/g, + () => "[^/]" + ], + // leading slash + [ + // > A leading slash matches the beginning of the pathname. + // > For example, "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c". + // A leading slash matches the beginning of the pathname + /^\//, + () => "^" + ], + // replace special metacharacter slash after the leading slash + [ + /\//g, + () => "\\/" + ], + [ + // > A leading "**" followed by a slash means match in all directories. + // > For example, "**/foo" matches file or directory "foo" anywhere, + // > the same as pattern "foo". + // > "**/foo/bar" matches file or directory "bar" anywhere that is directly + // > under directory "foo". + // Notice that the '*'s have been replaced as '\\*' + /^\^*\\\*\\\*\\\//, + // '**/foo' <-> 'foo' + () => "^(?:.*\\/)?" + ], + // starting + [ + // there will be no leading '/' + // (which has been replaced by section "leading slash") + // If starts with '**', adding a '^' to the regular expression also works + /^(?=[^^])/, + function startingReplacer() { + return !/\/(?!$)/.test(this) ? "(?:^|\\/)" : "^"; } - throw invalidChar(read2()); - }, - beforeArrayValue() { - if (c === "]") { - return newToken("punctuator", read2()); + ], + // two globstars + [ + // Use lookahead assertions so that we could match more than one `'/**'` + /\\\/\\\*\\\*(?=\\\/|$)/g, + // Zero, one or several directories + // should not use '*', or it will be replaced by the next replacer + // Check if it is not the last `'/**'` + (_, index, str) => index + 6 < str.length ? "(?:\\/[^\\/]+)*" : "\\/.+" + ], + // normal intermediate wildcards + [ + // Never replace escaped '*' + // ignore rule '\*' will match the path '*' + // 'abc.*/' -> go + // 'abc.*' -> skip this rule, + // coz trailing single wildcard will be handed by [trailing wildcard] + /(^|[^\\]+)(\\\*)+(?=.+)/g, + // '*.js' matches '.js' + // '*.js' doesn't match 'abc' + (_, p1, p2) => { + const unescaped = p2.replace(/\\\*/g, "[^\\/]*"); + return p1 + unescaped; } - lexState = "value"; - }, - afterArrayValue() { - switch (c) { - case ",": - case "]": - return newToken("punctuator", read2()); + ], + [ + // unescape, revert step 3 except for back slash + // For example, if a user escape a '\\*', + // after step 3, the result will be '\\\\\\*' + /\\\\\\(?=[$.|*+(){^])/g, + () => ESCAPE + ], + [ + // '\\\\' -> '\\' + /\\\\/g, + () => ESCAPE + ], + [ + // > The range notation, e.g. [a-zA-Z], + // > can be used to match one of the characters in a range. + // `\` is escaped by step 3 + /(\\)?\[([^\]/]*?)(\\*)($|\])/g, + (match, leadEscape, range, endEscape, close) => leadEscape === ESCAPE ? `\\[${range}${cleanRangeBackSlash(endEscape)}${close}` : close === "]" ? endEscape.length % 2 === 0 ? `[${sanitizeRange(range)}${endEscape}]` : "[]" : "[]" + ], + // ending + [ + // 'js' will not match 'js.' + // 'ab' will not match 'abc' + /(?:[^*])$/, + // WTF! + // https://git-scm.com/docs/gitignore + // changes in [2.22.1](https://git-scm.com/docs/gitignore/2.22.1) + // which re-fixes #24, #38 + // > If there is a separator at the end of the pattern then the pattern + // > will only match directories, otherwise the pattern can match both + // > files and directories. + // 'js*' will not match 'a.js' + // 'js/' will not match 'a.js' + // 'js' will match 'a.js' and 'a.js/' + (match) => /\/$/.test(match) ? `${match}$` : `${match}(?=$|\\/$)` + ], + // trailing wildcard + [ + /(\^|\\\/)?\\\*$/, + (_, p1) => { + const prefix = p1 ? `${p1}[^/]+` : "[^/]*"; + return `${prefix}(?=$|\\/$)`; } - throw invalidChar(read2()); - }, - end() { - throw invalidChar(read2()); + ] + ]; + var regexCache = /* @__PURE__ */ Object.create(null); + var makeRegex = (pattern, ignoreCase) => { + let source = regexCache[pattern]; + if (!source) { + source = REPLACERS.reduce( + (prev, current) => prev.replace(current[0], current[1].bind(pattern)), + pattern + ); + regexCache[pattern] = source; } + return ignoreCase ? new RegExp(source, "i") : new RegExp(source); }; - function newToken(type, value) { - return { - type, - value, - line: line2, - column - }; - } - function literal(s) { - for (const c2 of s) { - const p = peek(); - if (p !== c2) { - throw invalidChar(read2()); - } - read2(); + var isString = (subject) => typeof subject === "string"; + var checkPattern = (pattern) => pattern && isString(pattern) && !REGEX_TEST_BLANK_LINE.test(pattern) && !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern) && pattern.indexOf("#") !== 0; + var splitPattern = (pattern) => pattern.split(REGEX_SPLITALL_CRLF); + var IgnoreRule = class { + constructor(origin, pattern, negative, regex) { + this.origin = origin; + this.pattern = pattern; + this.negative = negative; + this.regex = regex; } - } - function escape() { - const c2 = peek(); - switch (c2) { - case "b": - read2(); - return "\b"; - case "f": - read2(); - return "\f"; - case "n": - read2(); - return "\n"; - case "r": - read2(); - return "\r"; - case "t": - read2(); - return " "; - case "v": - read2(); - return "\v"; - case "0": - read2(); - if (util.isDigit(peek())) { - throw invalidChar(read2()); - } - return "\0"; - case "x": - read2(); - return hexEscape(); - case "u": - read2(); - return unicodeEscape(); - case "\n": - case "\u2028": - case "\u2029": - read2(); - return ""; - case "\r": - read2(); - if (peek() === "\n") { - read2(); - } - return ""; - case "1": - case "2": - case "3": - case "4": - case "5": - case "6": - case "7": - case "8": - case "9": - throw invalidChar(read2()); - case void 0: - throw invalidChar(read2()); + }; + var createRule = (pattern, ignoreCase) => { + const origin = pattern; + let negative = false; + if (pattern.indexOf("!") === 0) { + negative = true; + pattern = pattern.substr(1); + } + pattern = pattern.replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, "!").replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, "#"); + const regex = makeRegex(pattern, ignoreCase); + return new IgnoreRule( + origin, + pattern, + negative, + regex + ); + }; + var throwError = (message, Ctor) => { + throw new Ctor(message); + }; + var checkPath = (path9, originalPath, doThrow) => { + if (!isString(path9)) { + return doThrow( + `path must be a string, but got \`${originalPath}\``, + TypeError + ); + } + if (!path9) { + return doThrow(`path must not be empty`, TypeError); } - return read2(); - } - function hexEscape() { - let buffer2 = ""; - let c2 = peek(); - if (!util.isHexDigit(c2)) { - throw invalidChar(read2()); + if (checkPath.isNotRelative(path9)) { + const r = "`path.relative()`d"; + return doThrow( + `path should be a ${r} string, but got "${originalPath}"`, + RangeError + ); } - buffer2 += read2(); - c2 = peek(); - if (!util.isHexDigit(c2)) { - throw invalidChar(read2()); + return true; + }; + var isNotRelative = (path9) => REGEX_TEST_INVALID_PATH.test(path9); + checkPath.isNotRelative = isNotRelative; + checkPath.convert = (p) => p; + var Ignore = class { + constructor({ + ignorecase = true, + ignoreCase = ignorecase, + allowRelativePaths = false + } = {}) { + define(this, KEY_IGNORE, true); + this._rules = []; + this._ignoreCase = ignoreCase; + this._allowRelativePaths = allowRelativePaths; + this._initCache(); } - buffer2 += read2(); - return String.fromCodePoint(parseInt(buffer2, 16)); - } - function unicodeEscape() { - let buffer2 = ""; - let count = 4; - while (count-- > 0) { - const c2 = peek(); - if (!util.isHexDigit(c2)) { - throw invalidChar(read2()); - } - buffer2 += read2(); + _initCache() { + this._ignoreCache = /* @__PURE__ */ Object.create(null); + this._testCache = /* @__PURE__ */ Object.create(null); } - return String.fromCodePoint(parseInt(buffer2, 16)); - } - var parseStates = { - start() { - if (token.type === "eof") { - throw invalidEOF(); - } - push(); - }, - beforePropertyName() { - switch (token.type) { - case "identifier": - case "string": - key = token.value; - parseState = "afterPropertyName"; - return; - case "punctuator": - pop(); - return; - case "eof": - throw invalidEOF(); - } - }, - afterPropertyName() { - if (token.type === "eof") { - throw invalidEOF(); - } - parseState = "beforePropertyValue"; - }, - beforePropertyValue() { - if (token.type === "eof") { - throw invalidEOF(); - } - push(); - }, - beforeArrayValue() { - if (token.type === "eof") { - throw invalidEOF(); - } - if (token.type === "punctuator" && token.value === "]") { - pop(); + _addPattern(pattern) { + if (pattern && pattern[KEY_IGNORE]) { + this._rules = this._rules.concat(pattern._rules); + this._added = true; return; } - push(); - }, - afterPropertyValue() { - if (token.type === "eof") { - throw invalidEOF(); + if (checkPattern(pattern)) { + const rule = createRule(pattern, this._ignoreCase); + this._added = true; + this._rules.push(rule); } - switch (token.value) { - case ",": - parseState = "beforePropertyName"; + } + // @param {Array | string | Ignore} pattern + add(pattern) { + this._added = false; + makeArray( + isString(pattern) ? splitPattern(pattern) : pattern + ).forEach(this._addPattern, this); + if (this._added) { + this._initCache(); + } + return this; + } + // legacy + addPattern(pattern) { + return this.add(pattern); + } + // | ignored : unignored + // negative | 0:0 | 0:1 | 1:0 | 1:1 + // -------- | ------- | ------- | ------- | -------- + // 0 | TEST | TEST | SKIP | X + // 1 | TESTIF | SKIP | TEST | X + // - SKIP: always skip + // - TEST: always test + // - TESTIF: only test if checkUnignored + // - X: that never happen + // @param {boolean} whether should check if the path is unignored, + // setting `checkUnignored` to `false` could reduce additional + // path matching. + // @returns {TestResult} true if a file is ignored + _testOne(path9, checkUnignored) { + let ignored = false; + let unignored = false; + this._rules.forEach((rule) => { + const { negative } = rule; + if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) { return; - case "}": - pop(); + } + const matched = rule.regex.test(path9); + if (matched) { + ignored = !negative; + unignored = negative; + } + }); + return { + ignored, + unignored + }; + } + // @returns {TestResult} + _test(originalPath, cache, checkUnignored, slices) { + const path9 = originalPath && checkPath.convert(originalPath); + checkPath( + path9, + originalPath, + this._allowRelativePaths ? RETURN_FALSE : throwError + ); + return this._t(path9, cache, checkUnignored, slices); + } + _t(path9, cache, checkUnignored, slices) { + if (path9 in cache) { + return cache[path9]; } - }, - afterArrayValue() { - if (token.type === "eof") { - throw invalidEOF(); + if (!slices) { + slices = path9.split(SLASH); } - switch (token.value) { - case ",": - parseState = "beforeArrayValue"; - return; - case "]": - pop(); + slices.pop(); + if (!slices.length) { + return cache[path9] = this._testOne(path9, checkUnignored); } + const parent = this._t( + slices.join(SLASH) + SLASH, + cache, + checkUnignored, + slices + ); + return cache[path9] = parent.ignored ? parent : this._testOne(path9, checkUnignored); + } + ignores(path9) { + return this._test(path9, this._ignoreCache, false).ignored; + } + createFilter() { + return (path9) => !this.ignores(path9); + } + filter(paths) { + return makeArray(paths).filter(this.createFilter()); + } + // @returns {TestResult} + test(path9) { + return this._test(path9, this._testCache, true); + } + }; + var factory = (options8) => new Ignore(options8); + var isPathValid = (path9) => checkPath(path9 && checkPath.convert(path9), path9, RETURN_FALSE); + factory.isPathValid = isPathValid; + factory.default = factory; + module.exports = factory; + if ( + // Detect `process` so that it can run in browsers. + typeof process !== "undefined" && (process.env && process.env.IGNORE_TEST_WIN32 || process.platform === "win32") + ) { + const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/"); + checkPath.convert = makePosix; + const REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i; + checkPath.isNotRelative = (path9) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path9) || isNotRelative(path9); + } + } +}); + +// src/index.js +var src_exports = {}; +__export(src_exports, { + __debug: () => debugApis, + __internal: () => sharedWithCli, + check: () => check, + clearConfigCache: () => clearCache3, + doc: () => doc, + format: () => format2, + formatWithCursor: () => formatWithCursor2, + getFileInfo: () => getFileInfo2, + getSupportInfo: () => getSupportInfo2, + resolveConfig: () => resolveConfig, + resolveConfigFile: () => resolveConfigFile, + util: () => public_exports, + version: () => version_evaluate_default +}); + +// node_modules/vnopts/lib/descriptors/api.js +var apiDescriptor = { + key: (key) => /^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(key) ? key : JSON.stringify(key), + value(value) { + if (value === null || typeof value !== "object") { + return JSON.stringify(value); + } + if (Array.isArray(value)) { + return `[${value.map((subValue) => apiDescriptor.value(subValue)).join(", ")}]`; + } + const keys = Object.keys(value); + return keys.length === 0 ? "{}" : `{ ${keys.map((key) => `${apiDescriptor.key(key)}: ${apiDescriptor.value(value[key])}`).join(", ")} }`; + }, + pair: ({ key, value }) => apiDescriptor.value({ [key]: value }) +}; + +// node_modules/chalk/source/vendor/ansi-styles/index.js +var ANSI_BACKGROUND_OFFSET = 10; +var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`; +var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`; +var wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`; +var styles = { + modifier: { + reset: [0, 0], + // 21 isn't widely supported and 22 does the same thing + bold: [1, 22], + dim: [2, 22], + italic: [3, 23], + underline: [4, 24], + overline: [53, 55], + inverse: [7, 27], + hidden: [8, 28], + strikethrough: [9, 29] + }, + color: { + black: [30, 39], + red: [31, 39], + green: [32, 39], + yellow: [33, 39], + blue: [34, 39], + magenta: [35, 39], + cyan: [36, 39], + white: [37, 39], + // Bright color + blackBright: [90, 39], + gray: [90, 39], + // Alias of `blackBright` + grey: [90, 39], + // Alias of `blackBright` + redBright: [91, 39], + greenBright: [92, 39], + yellowBright: [93, 39], + blueBright: [94, 39], + magentaBright: [95, 39], + cyanBright: [96, 39], + whiteBright: [97, 39] + }, + bgColor: { + bgBlack: [40, 49], + bgRed: [41, 49], + bgGreen: [42, 49], + bgYellow: [43, 49], + bgBlue: [44, 49], + bgMagenta: [45, 49], + bgCyan: [46, 49], + bgWhite: [47, 49], + // Bright color + bgBlackBright: [100, 49], + bgGray: [100, 49], + // Alias of `bgBlackBright` + bgGrey: [100, 49], + // Alias of `bgBlackBright` + bgRedBright: [101, 49], + bgGreenBright: [102, 49], + bgYellowBright: [103, 49], + bgBlueBright: [104, 49], + bgMagentaBright: [105, 49], + bgCyanBright: [106, 49], + bgWhiteBright: [107, 49] + } +}; +var modifierNames = Object.keys(styles.modifier); +var foregroundColorNames = Object.keys(styles.color); +var backgroundColorNames = Object.keys(styles.bgColor); +var colorNames = [...foregroundColorNames, ...backgroundColorNames]; +function assembleStyles() { + const codes2 = /* @__PURE__ */ new Map(); + for (const [groupName, group] of Object.entries(styles)) { + for (const [styleName, style] of Object.entries(group)) { + styles[styleName] = { + open: `\x1B[${style[0]}m`, + close: `\x1B[${style[1]}m` + }; + group[styleName] = styles[styleName]; + codes2.set(style[0], style[1]); + } + Object.defineProperty(styles, groupName, { + value: group, + enumerable: false + }); + } + Object.defineProperty(styles, "codes", { + value: codes2, + enumerable: false + }); + styles.color.close = "\x1B[39m"; + styles.bgColor.close = "\x1B[49m"; + styles.color.ansi = wrapAnsi16(); + styles.color.ansi256 = wrapAnsi256(); + styles.color.ansi16m = wrapAnsi16m(); + styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET); + styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET); + styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET); + Object.defineProperties(styles, { + rgbToAnsi256: { + value(red, green, blue) { + if (red === green && green === blue) { + if (red < 8) { + return 16; + } + if (red > 248) { + return 231; + } + return Math.round((red - 8) / 247 * 24) + 232; + } + return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5); + }, + enumerable: false + }, + hexToRgb: { + value(hex) { + const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16)); + if (!matches) { + return [0, 0, 0]; + } + let [colorString] = matches; + if (colorString.length === 3) { + colorString = [...colorString].map((character) => character + character).join(""); + } + const integer = Number.parseInt(colorString, 16); + return [ + /* eslint-disable no-bitwise */ + integer >> 16 & 255, + integer >> 8 & 255, + integer & 255 + /* eslint-enable no-bitwise */ + ]; }, - end() { - } - }; - function push() { - let value; - switch (token.type) { - case "punctuator": - switch (token.value) { - case "{": - value = {}; - break; - case "[": - value = []; - break; - } - break; - case "null": - case "boolean": - case "numeric": - case "string": - value = token.value; - break; - } - if (root === void 0) { - root = value; - } else { - const parent = stack[stack.length - 1]; - if (Array.isArray(parent)) { - parent.push(value); + enumerable: false + }, + hexToAnsi256: { + value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)), + enumerable: false + }, + ansi256ToAnsi: { + value(code) { + if (code < 8) { + return 30 + code; + } + if (code < 16) { + return 90 + (code - 8); + } + let red; + let green; + let blue; + if (code >= 232) { + red = ((code - 232) * 10 + 8) / 255; + green = red; + blue = red; } else { - Object.defineProperty(parent, key, { - value, - writable: true, - enumerable: true, - configurable: true - }); + code -= 16; + const remainder = code % 36; + red = Math.floor(code / 36) / 5; + green = Math.floor(remainder / 6) / 5; + blue = remainder % 6 / 5; } - } - if (value !== null && typeof value === "object") { - stack.push(value); - if (Array.isArray(value)) { - parseState = "beforeArrayValue"; - } else { - parseState = "beforePropertyName"; + const value = Math.max(red, green, blue) * 2; + if (value === 0) { + return 30; } - } else { - const current = stack[stack.length - 1]; - if (current == null) { - parseState = "end"; - } else if (Array.isArray(current)) { - parseState = "afterArrayValue"; - } else { - parseState = "afterPropertyValue"; + let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red)); + if (value === 2) { + result += 60; } - } + return result; + }, + enumerable: false + }, + rgbToAnsi: { + value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)), + enumerable: false + }, + hexToAnsi: { + value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)), + enumerable: false } - function pop() { - stack.pop(); - const current = stack[stack.length - 1]; - if (current == null) { - parseState = "end"; - } else if (Array.isArray(current)) { - parseState = "afterArrayValue"; - } else { - parseState = "afterPropertyValue"; - } + }); + return styles; +} +var ansiStyles = assembleStyles(); +var ansi_styles_default = ansiStyles; + +// node_modules/chalk/source/vendor/supports-color/index.js +import process2 from "process"; +import os from "os"; +import tty from "tty"; +function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process2.argv) { + const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--"; + const position = argv.indexOf(prefix + flag); + const terminatorPosition = argv.indexOf("--"); + return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition); +} +var { env } = process2; +var flagForceColor; +if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) { + flagForceColor = 0; +} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) { + flagForceColor = 1; +} +function envForceColor() { + if ("FORCE_COLOR" in env) { + if (env.FORCE_COLOR === "true") { + return 1; } - function invalidChar(c2) { - if (c2 === void 0) { - return syntaxError(`JSON5: invalid end of input at ${line2}:${column}`); + if (env.FORCE_COLOR === "false") { + return 0; + } + return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3); + } +} +function translateLevel(level) { + if (level === 0) { + return false; + } + return { + level, + hasBasic: true, + has256: level >= 2, + has16m: level >= 3 + }; +} +function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) { + const noFlagForceColor = envForceColor(); + if (noFlagForceColor !== void 0) { + flagForceColor = noFlagForceColor; + } + const forceColor = sniffFlags ? flagForceColor : noFlagForceColor; + if (forceColor === 0) { + return 0; + } + if (sniffFlags) { + if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) { + return 3; + } + if (hasFlag("color=256")) { + return 2; + } + } + if ("TF_BUILD" in env && "AGENT_NAME" in env) { + return 1; + } + if (haveStream && !streamIsTTY && forceColor === void 0) { + return 0; + } + const min = forceColor || 0; + if (env.TERM === "dumb") { + return min; + } + if (process2.platform === "win32") { + const osRelease = os.release().split("."); + if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) { + return Number(osRelease[2]) >= 14931 ? 3 : 2; + } + return 1; + } + if ("CI" in env) { + if ("GITHUB_ACTIONS" in env || "GITEA_ACTIONS" in env) { + return 3; + } + if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") { + return 1; + } + return min; + } + if ("TEAMCITY_VERSION" in env) { + return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0; + } + if (env.COLORTERM === "truecolor") { + return 3; + } + if (env.TERM === "xterm-kitty") { + return 3; + } + if ("TERM_PROGRAM" in env) { + const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10); + switch (env.TERM_PROGRAM) { + case "iTerm.app": { + return version >= 3 ? 3 : 2; + } + case "Apple_Terminal": { + return 2; } - return syntaxError(`JSON5: invalid character '${formatChar(c2)}' at ${line2}:${column}`); } - function invalidEOF() { - return syntaxError(`JSON5: invalid end of input at ${line2}:${column}`); + } + if (/-256(color)?$/i.test(env.TERM)) { + return 2; + } + if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) { + return 1; + } + if ("COLORTERM" in env) { + return 1; + } + return min; +} +function createSupportsColor(stream, options8 = {}) { + const level = _supportsColor(stream, { + streamIsTTY: stream && stream.isTTY, + ...options8 + }); + return translateLevel(level); +} +var supportsColor = { + stdout: createSupportsColor({ isTTY: tty.isatty(1) }), + stderr: createSupportsColor({ isTTY: tty.isatty(2) }) +}; +var supports_color_default = supportsColor; + +// node_modules/chalk/source/utilities.js +function stringReplaceAll(string, substring, replacer) { + let index = string.indexOf(substring); + if (index === -1) { + return string; + } + const substringLength = substring.length; + let endIndex = 0; + let returnValue = ""; + do { + returnValue += string.slice(endIndex, index) + substring + replacer; + endIndex = index + substringLength; + index = string.indexOf(substring, endIndex); + } while (index !== -1); + returnValue += string.slice(endIndex); + return returnValue; +} +function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) { + let endIndex = 0; + let returnValue = ""; + do { + const gotCR = string[index - 1] === "\r"; + returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix; + endIndex = index + 1; + index = string.indexOf("\n", endIndex); + } while (index !== -1); + returnValue += string.slice(endIndex); + return returnValue; +} + +// node_modules/chalk/source/index.js +var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default; +var GENERATOR = Symbol("GENERATOR"); +var STYLER = Symbol("STYLER"); +var IS_EMPTY = Symbol("IS_EMPTY"); +var levelMapping = [ + "ansi", + "ansi", + "ansi256", + "ansi16m" +]; +var styles2 = /* @__PURE__ */ Object.create(null); +var applyOptions = (object, options8 = {}) => { + if (options8.level && !(Number.isInteger(options8.level) && options8.level >= 0 && options8.level <= 3)) { + throw new Error("The `level` option should be an integer from 0 to 3"); + } + const colorLevel = stdoutColor ? stdoutColor.level : 0; + object.level = options8.level === void 0 ? colorLevel : options8.level; +}; +var chalkFactory = (options8) => { + const chalk2 = (...strings) => strings.join(" "); + applyOptions(chalk2, options8); + Object.setPrototypeOf(chalk2, createChalk.prototype); + return chalk2; +}; +function createChalk(options8) { + return chalkFactory(options8); +} +Object.setPrototypeOf(createChalk.prototype, Function.prototype); +for (const [styleName, style] of Object.entries(ansi_styles_default)) { + styles2[styleName] = { + get() { + const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]); + Object.defineProperty(this, styleName, { value: builder }); + return builder; } - function invalidIdentifier() { - column -= 5; - return syntaxError(`JSON5: invalid identifier character at ${line2}:${column}`); + }; +} +styles2.visible = { + get() { + const builder = createBuilder(this, this[STYLER], true); + Object.defineProperty(this, "visible", { value: builder }); + return builder; + } +}; +var getModelAnsi = (model, level, type, ...arguments_) => { + if (model === "rgb") { + if (level === "ansi16m") { + return ansi_styles_default[type].ansi16m(...arguments_); } - function separatorChar(c2) { - console.warn(`JSON5: '${formatChar(c2)}' in strings is not valid ECMAScript; consider escaping`); + if (level === "ansi256") { + return ansi_styles_default[type].ansi256(ansi_styles_default.rgbToAnsi256(...arguments_)); } - function formatChar(c2) { - const replacements = { - "'": "\\'", - '"': '\\"', - "\\": "\\\\", - "\b": "\\b", - "\f": "\\f", - "\n": "\\n", - "\r": "\\r", - " ": "\\t", - "\v": "\\v", - "\0": "\\0", - "\u2028": "\\u2028", - "\u2029": "\\u2029" + return ansi_styles_default[type].ansi(ansi_styles_default.rgbToAnsi(...arguments_)); + } + if (model === "hex") { + return getModelAnsi("rgb", level, type, ...ansi_styles_default.hexToRgb(...arguments_)); + } + return ansi_styles_default[type][model](...arguments_); +}; +var usedModels = ["rgb", "hex", "ansi256"]; +for (const model of usedModels) { + styles2[model] = { + get() { + const { level } = this; + return function(...arguments_) { + const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansi_styles_default.color.close, this[STYLER]); + return createBuilder(this, styler, this[IS_EMPTY]); }; - if (replacements[c2]) { - return replacements[c2]; + } + }; + const bgModel = "bg" + model[0].toUpperCase() + model.slice(1); + styles2[bgModel] = { + get() { + const { level } = this; + return function(...arguments_) { + const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansi_styles_default.bgColor.close, this[STYLER]); + return createBuilder(this, styler, this[IS_EMPTY]); + }; + } + }; +} +var proto = Object.defineProperties(() => { +}, { + ...styles2, + level: { + enumerable: true, + get() { + return this[GENERATOR].level; + }, + set(level) { + this[GENERATOR].level = level; + } + } +}); +var createStyler = (open, close, parent) => { + let openAll; + let closeAll; + if (parent === void 0) { + openAll = open; + closeAll = close; + } else { + openAll = parent.openAll + open; + closeAll = close + parent.closeAll; + } + return { + open, + close, + openAll, + closeAll, + parent + }; +}; +var createBuilder = (self, _styler, _isEmpty) => { + const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" ")); + Object.setPrototypeOf(builder, proto); + builder[GENERATOR] = self; + builder[STYLER] = _styler; + builder[IS_EMPTY] = _isEmpty; + return builder; +}; +var applyStyle = (self, string) => { + if (self.level <= 0 || !string) { + return self[IS_EMPTY] ? "" : string; + } + let styler = self[STYLER]; + if (styler === void 0) { + return string; + } + const { openAll, closeAll } = styler; + if (string.includes("\x1B")) { + while (styler !== void 0) { + string = stringReplaceAll(string, styler.close, styler.open); + styler = styler.parent; + } + } + const lfIndex = string.indexOf("\n"); + if (lfIndex !== -1) { + string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex); + } + return openAll + string + closeAll; +}; +Object.defineProperties(createChalk.prototype, styles2); +var chalk = createChalk(); +var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 }); +var source_default = chalk; + +// node_modules/vnopts/lib/handlers/deprecated/common.js +var commonDeprecatedHandler = (keyOrPair, redirectTo, { descriptor }) => { + const messages2 = [ + `${source_default.yellow(typeof keyOrPair === "string" ? descriptor.key(keyOrPair) : descriptor.pair(keyOrPair))} is deprecated` + ]; + if (redirectTo) { + messages2.push(`we now treat it as ${source_default.blue(typeof redirectTo === "string" ? descriptor.key(redirectTo) : descriptor.pair(redirectTo))}`); + } + return messages2.join("; ") + "."; +}; + +// node_modules/vnopts/lib/constants.js +var VALUE_NOT_EXIST = Symbol.for("vnopts.VALUE_NOT_EXIST"); +var VALUE_UNCHANGED = Symbol.for("vnopts.VALUE_UNCHANGED"); + +// node_modules/vnopts/lib/handlers/invalid/common.js +var INDENTATION = " ".repeat(2); +var commonInvalidHandler = (key, value, utils) => { + const { text, list } = utils.normalizeExpectedResult(utils.schemas[key].expected(utils)); + const descriptions = []; + if (text) { + descriptions.push(getDescription(key, value, text, utils.descriptor)); + } + if (list) { + descriptions.push([getDescription(key, value, list.title, utils.descriptor)].concat(list.values.map((valueDescription) => getListDescription(valueDescription, utils.loggerPrintWidth))).join("\n")); + } + return chooseDescription(descriptions, utils.loggerPrintWidth); +}; +function getDescription(key, value, expected, descriptor) { + return [ + `Invalid ${source_default.red(descriptor.key(key))} value.`, + `Expected ${source_default.blue(expected)},`, + `but received ${value === VALUE_NOT_EXIST ? source_default.gray("nothing") : source_default.red(descriptor.value(value))}.` + ].join(" "); +} +function getListDescription({ text, list }, printWidth) { + const descriptions = []; + if (text) { + descriptions.push(`- ${source_default.blue(text)}`); + } + if (list) { + descriptions.push([`- ${source_default.blue(list.title)}:`].concat(list.values.map((valueDescription) => getListDescription(valueDescription, printWidth - INDENTATION.length).replace(/^|\n/g, `$&${INDENTATION}`))).join("\n")); + } + return chooseDescription(descriptions, printWidth); +} +function chooseDescription(descriptions, printWidth) { + if (descriptions.length === 1) { + return descriptions[0]; + } + const [firstDescription, secondDescription] = descriptions; + const [firstWidth, secondWidth] = descriptions.map((description) => description.split("\n", 1)[0].length); + return firstWidth > printWidth && firstWidth > secondWidth ? secondDescription : firstDescription; +} + +// node_modules/leven/index.js +var array = []; +var characterCodeCache = []; +function leven(first, second) { + if (first === second) { + return 0; + } + const swap = first; + if (first.length > second.length) { + first = second; + second = swap; + } + let firstLength = first.length; + let secondLength = second.length; + while (firstLength > 0 && first.charCodeAt(~-firstLength) === second.charCodeAt(~-secondLength)) { + firstLength--; + secondLength--; + } + let start = 0; + while (start < firstLength && first.charCodeAt(start) === second.charCodeAt(start)) { + start++; + } + firstLength -= start; + secondLength -= start; + if (firstLength === 0) { + return secondLength; + } + let bCharacterCode; + let result; + let temporary; + let temporary2; + let index = 0; + let index2 = 0; + while (index < firstLength) { + characterCodeCache[index] = first.charCodeAt(start + index); + array[index] = ++index; + } + while (index2 < secondLength) { + bCharacterCode = second.charCodeAt(start + index2); + temporary = index2++; + result = index2; + for (index = 0; index < firstLength; index++) { + temporary2 = bCharacterCode === characterCodeCache[index] ? temporary : temporary + 1; + temporary = array[index]; + result = array[index] = temporary > result ? temporary2 > result ? result + 1 : temporary2 : temporary2 > temporary ? temporary + 1 : temporary2; + } + } + return result; +} + +// node_modules/vnopts/lib/handlers/unknown/leven.js +var levenUnknownHandler = (key, value, { descriptor, logger, schemas }) => { + const messages2 = [ + `Ignored unknown option ${source_default.yellow(descriptor.pair({ key, value }))}.` + ]; + const suggestion = Object.keys(schemas).sort().find((knownKey) => leven(key, knownKey) < 3); + if (suggestion) { + messages2.push(`Did you mean ${source_default.blue(descriptor.key(suggestion))}?`); + } + logger.warn(messages2.join(" ")); +}; + +// node_modules/vnopts/lib/schema.js +var HANDLER_KEYS = [ + "default", + "expected", + "validate", + "deprecated", + "forward", + "redirect", + "overlap", + "preprocess", + "postprocess" +]; +function createSchema(SchemaConstructor, parameters) { + const schema = new SchemaConstructor(parameters); + const subSchema = Object.create(schema); + for (const handlerKey of HANDLER_KEYS) { + if (handlerKey in parameters) { + subSchema[handlerKey] = normalizeHandler(parameters[handlerKey], schema, Schema.prototype[handlerKey].length); + } + } + return subSchema; +} +var Schema = class { + static create(parameters) { + return createSchema(this, parameters); + } + constructor(parameters) { + this.name = parameters.name; + } + default(_utils) { + return void 0; + } + // this is actually an abstract method but we need a placeholder to get `function.length` + /* c8 ignore start */ + expected(_utils) { + return "nothing"; + } + /* c8 ignore stop */ + // this is actually an abstract method but we need a placeholder to get `function.length` + /* c8 ignore start */ + validate(_value, _utils) { + return false; + } + /* c8 ignore stop */ + deprecated(_value, _utils) { + return false; + } + forward(_value, _utils) { + return void 0; + } + redirect(_value, _utils) { + return void 0; + } + overlap(currentValue, _newValue, _utils) { + return currentValue; + } + preprocess(value, _utils) { + return value; + } + postprocess(_value, _utils) { + return VALUE_UNCHANGED; + } +}; +function normalizeHandler(handler, superSchema, handlerArgumentsLength) { + return typeof handler === "function" ? (...args) => handler(...args.slice(0, handlerArgumentsLength - 1), superSchema, ...args.slice(handlerArgumentsLength - 1)) : () => handler; +} + +// node_modules/vnopts/lib/schemas/alias.js +var AliasSchema = class extends Schema { + constructor(parameters) { + super(parameters); + this._sourceName = parameters.sourceName; + } + expected(utils) { + return utils.schemas[this._sourceName].expected(utils); + } + validate(value, utils) { + return utils.schemas[this._sourceName].validate(value, utils); + } + redirect(_value, _utils) { + return this._sourceName; + } +}; + +// node_modules/vnopts/lib/schemas/any.js +var AnySchema = class extends Schema { + expected() { + return "anything"; + } + validate() { + return true; + } +}; + +// node_modules/vnopts/lib/schemas/array.js +var ArraySchema = class extends Schema { + constructor({ valueSchema, name = valueSchema.name, ...handlers }) { + super({ ...handlers, name }); + this._valueSchema = valueSchema; + } + expected(utils) { + const { text, list } = utils.normalizeExpectedResult(this._valueSchema.expected(utils)); + return { + text: text && `an array of ${text}`, + list: list && { + title: `an array of the following values`, + values: [{ list }] } - if (c2 < " ") { - const hexString = c2.charCodeAt(0).toString(16); - return "\\x" + ("00" + hexString).substring(hexString.length); + }; + } + validate(value, utils) { + if (!Array.isArray(value)) { + return false; + } + const invalidValues = []; + for (const subValue of value) { + const subValidateResult = utils.normalizeValidateResult(this._valueSchema.validate(subValue, utils), subValue); + if (subValidateResult !== true) { + invalidValues.push(subValidateResult.value); } - return c2; } - function syntaxError(message) { - const err = new SyntaxError(message); - err.lineNumber = line2; - err.columnNumber = column; - return err; + return invalidValues.length === 0 ? true : { value: invalidValues }; + } + deprecated(value, utils) { + const deprecatedResult = []; + for (const subValue of value) { + const subDeprecatedResult = utils.normalizeDeprecatedResult(this._valueSchema.deprecated(subValue, utils), subValue); + if (subDeprecatedResult !== false) { + deprecatedResult.push(...subDeprecatedResult.map(({ value: deprecatedValue }) => ({ + value: [deprecatedValue] + }))); + } } + return deprecatedResult; } -}); + forward(value, utils) { + const forwardResult = []; + for (const subValue of value) { + const subForwardResult = utils.normalizeForwardResult(this._valueSchema.forward(subValue, utils), subValue); + forwardResult.push(...subForwardResult.map(wrapTransferResult)); + } + return forwardResult; + } + redirect(value, utils) { + const remain = []; + const redirect = []; + for (const subValue of value) { + const subRedirectResult = utils.normalizeRedirectResult(this._valueSchema.redirect(subValue, utils), subValue); + if ("remain" in subRedirectResult) { + remain.push(subRedirectResult.remain); + } + redirect.push(...subRedirectResult.redirect.map(wrapTransferResult)); + } + return remain.length === 0 ? { redirect } : { redirect, remain }; + } + overlap(currentValue, newValue) { + return currentValue.concat(newValue); + } +}; +function wrapTransferResult({ from, to }) { + return { from: [from], to }; +} -// node_modules/ignore/index.js -var require_ignore = __commonJS({ - "node_modules/ignore/index.js"(exports, module) { - function makeArray(subject) { - return Array.isArray(subject) ? subject : [subject]; +// node_modules/vnopts/lib/schemas/boolean.js +var BooleanSchema = class extends Schema { + expected() { + return "true or false"; + } + validate(value) { + return typeof value === "boolean"; + } +}; + +// node_modules/vnopts/lib/utils.js +function recordFromArray(array2, mainKey) { + const record = /* @__PURE__ */ Object.create(null); + for (const value of array2) { + const key = value[mainKey]; + if (record[key]) { + throw new Error(`Duplicate ${mainKey} ${JSON.stringify(key)}`); } - var EMPTY = ""; - var SPACE = " "; - var ESCAPE = "\\"; - var REGEX_TEST_BLANK_LINE = /^\s+$/; - var REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\]|^)\\$/; - var REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/; - var REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/; - var REGEX_SPLITALL_CRLF = /\r?\n/g; - var REGEX_TEST_INVALID_PATH = /^\.*\/|^\.+$/; - var SLASH = "/"; - var TMP_KEY_IGNORE = "node-ignore"; - if (typeof Symbol !== "undefined") { - TMP_KEY_IGNORE = Symbol.for("node-ignore"); + record[key] = value; + } + return record; +} +function mapFromArray(array2, mainKey) { + const map = /* @__PURE__ */ new Map(); + for (const value of array2) { + const key = value[mainKey]; + if (map.has(key)) { + throw new Error(`Duplicate ${mainKey} ${JSON.stringify(key)}`); } - var KEY_IGNORE = TMP_KEY_IGNORE; - var define = (object, key, value) => Object.defineProperty(object, key, { value }); - var REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g; - var RETURN_FALSE = () => false; - var sanitizeRange = (range) => range.replace( - REGEX_REGEXP_RANGE, - (match, from, to) => from.charCodeAt(0) <= to.charCodeAt(0) ? match : EMPTY - ); - var cleanRangeBackSlash = (slashes) => { - const { length } = slashes; - return slashes.slice(0, length - length % 2); - }; - var REPLACERS = [ - // > Trailing spaces are ignored unless they are quoted with backslash ("\") - [ - // (a\ ) -> (a ) - // (a ) -> (a) - // (a \ ) -> (a ) - /\\?\s+$/, - (match) => match.indexOf("\\") === 0 ? SPACE : EMPTY - ], - // replace (\ ) with ' ' - [ - /\\\s/g, - () => SPACE - ], - // Escape metacharacters - // which is written down by users but means special for regular expressions. - // > There are 12 characters with special meanings: - // > - the backslash \, - // > - the caret ^, - // > - the dollar sign $, - // > - the period or dot ., - // > - the vertical bar or pipe symbol |, - // > - the question mark ?, - // > - the asterisk or star *, - // > - the plus sign +, - // > - the opening parenthesis (, - // > - the closing parenthesis ), - // > - and the opening square bracket [, - // > - the opening curly brace {, - // > These special characters are often called "metacharacters". - [ - /[\\$.|*+(){^]/g, - (match) => `\\${match}` - ], - [ - // > a question mark (?) matches a single character - /(?!\\)\?/g, - () => "[^/]" - ], - // leading slash - [ - // > A leading slash matches the beginning of the pathname. - // > For example, "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c". - // A leading slash matches the beginning of the pathname - /^\//, - () => "^" - ], - // replace special metacharacter slash after the leading slash - [ - /\//g, - () => "\\/" - ], - [ - // > A leading "**" followed by a slash means match in all directories. - // > For example, "**/foo" matches file or directory "foo" anywhere, - // > the same as pattern "foo". - // > "**/foo/bar" matches file or directory "bar" anywhere that is directly - // > under directory "foo". - // Notice that the '*'s have been replaced as '\\*' - /^\^*\\\*\\\*\\\//, - // '**/foo' <-> 'foo' - () => "^(?:.*\\/)?" - ], - // starting - [ - // there will be no leading '/' - // (which has been replaced by section "leading slash") - // If starts with '**', adding a '^' to the regular expression also works - /^(?=[^^])/, - function startingReplacer() { - return !/\/(?!$)/.test(this) ? "(?:^|\\/)" : "^"; - } - ], - // two globstars - [ - // Use lookahead assertions so that we could match more than one `'/**'` - /\\\/\\\*\\\*(?=\\\/|$)/g, - // Zero, one or several directories - // should not use '*', or it will be replaced by the next replacer - // Check if it is not the last `'/**'` - (_, index, str) => index + 6 < str.length ? "(?:\\/[^\\/]+)*" : "\\/.+" - ], - // normal intermediate wildcards - [ - // Never replace escaped '*' - // ignore rule '\*' will match the path '*' - // 'abc.*/' -> go - // 'abc.*' -> skip this rule, - // coz trailing single wildcard will be handed by [trailing wildcard] - /(^|[^\\]+)(\\\*)+(?=.+)/g, - // '*.js' matches '.js' - // '*.js' doesn't match 'abc' - (_, p1, p2) => { - const unescaped = p2.replace(/\\\*/g, "[^\\/]*"); - return p1 + unescaped; - } - ], - [ - // unescape, revert step 3 except for back slash - // For example, if a user escape a '\\*', - // after step 3, the result will be '\\\\\\*' - /\\\\\\(?=[$.|*+(){^])/g, - () => ESCAPE - ], - [ - // '\\\\' -> '\\' - /\\\\/g, - () => ESCAPE - ], - [ - // > The range notation, e.g. [a-zA-Z], - // > can be used to match one of the characters in a range. - // `\` is escaped by step 3 - /(\\)?\[([^\]/]*?)(\\*)($|\])/g, - (match, leadEscape, range, endEscape, close) => leadEscape === ESCAPE ? `\\[${range}${cleanRangeBackSlash(endEscape)}${close}` : close === "]" ? endEscape.length % 2 === 0 ? `[${sanitizeRange(range)}${endEscape}]` : "[]" : "[]" - ], - // ending - [ - // 'js' will not match 'js.' - // 'ab' will not match 'abc' - /(?:[^*])$/, - // WTF! - // https://git-scm.com/docs/gitignore - // changes in [2.22.1](https://git-scm.com/docs/gitignore/2.22.1) - // which re-fixes #24, #38 - // > If there is a separator at the end of the pattern then the pattern - // > will only match directories, otherwise the pattern can match both - // > files and directories. - // 'js*' will not match 'a.js' - // 'js/' will not match 'a.js' - // 'js' will match 'a.js' and 'a.js/' - (match) => /\/$/.test(match) ? `${match}$` : `${match}(?=$|\\/$)` - ], - // trailing wildcard - [ - /(\^|\\\/)?\\\*$/, - (_, p1) => { - const prefix = p1 ? `${p1}[^/]+` : "[^/]*"; - return `${prefix}(?=$|\\/$)`; - } - ] - ]; - var regexCache = /* @__PURE__ */ Object.create(null); - var makeRegex = (pattern, ignoreCase) => { - let source = regexCache[pattern]; - if (!source) { - source = REPLACERS.reduce( - (prev, current) => prev.replace(current[0], current[1].bind(pattern)), - pattern - ); - regexCache[pattern] = source; - } - return ignoreCase ? new RegExp(source, "i") : new RegExp(source); - }; - var isString = (subject) => typeof subject === "string"; - var checkPattern = (pattern) => pattern && isString(pattern) && !REGEX_TEST_BLANK_LINE.test(pattern) && !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern) && pattern.indexOf("#") !== 0; - var splitPattern = (pattern) => pattern.split(REGEX_SPLITALL_CRLF); - var IgnoreRule = class { - constructor(origin, pattern, negative, regex) { - this.origin = origin; - this.pattern = pattern; - this.negative = negative; - this.regex = regex; - } - }; - var createRule = (pattern, ignoreCase) => { - const origin = pattern; - let negative = false; - if (pattern.indexOf("!") === 0) { - negative = true; - pattern = pattern.substr(1); + map.set(key, value); + } + return map; +} +function createAutoChecklist() { + const map = /* @__PURE__ */ Object.create(null); + return (id) => { + const idString = JSON.stringify(id); + if (map[idString]) { + return true; + } + map[idString] = true; + return false; + }; +} +function partition(array2, predicate) { + const trueArray = []; + const falseArray = []; + for (const value of array2) { + if (predicate(value)) { + trueArray.push(value); + } else { + falseArray.push(value); + } + } + return [trueArray, falseArray]; +} +function isInt(value) { + return value === Math.floor(value); +} +function comparePrimitive(a, b) { + if (a === b) { + return 0; + } + const typeofA = typeof a; + const typeofB = typeof b; + const orders = [ + "undefined", + "object", + "boolean", + "number", + "string" + ]; + if (typeofA !== typeofB) { + return orders.indexOf(typeofA) - orders.indexOf(typeofB); + } + if (typeofA !== "string") { + return Number(a) - Number(b); + } + return a.localeCompare(b); +} +function normalizeInvalidHandler(invalidHandler) { + return (...args) => { + const errorMessageOrError = invalidHandler(...args); + return typeof errorMessageOrError === "string" ? new Error(errorMessageOrError) : errorMessageOrError; + }; +} +function normalizeDefaultResult(result) { + return result === void 0 ? {} : result; +} +function normalizeExpectedResult(result) { + if (typeof result === "string") { + return { text: result }; + } + const { text, list } = result; + assert((text || list) !== void 0, "Unexpected `expected` result, there should be at least one field."); + if (!list) { + return { text }; + } + return { + text, + list: { + title: list.title, + values: list.values.map(normalizeExpectedResult) + } + }; +} +function normalizeValidateResult(result, value) { + return result === true ? true : result === false ? { value } : result; +} +function normalizeDeprecatedResult(result, value, doNotNormalizeTrue = false) { + return result === false ? false : result === true ? doNotNormalizeTrue ? true : [{ value }] : "value" in result ? [result] : result.length === 0 ? false : result; +} +function normalizeTransferResult(result, value) { + return typeof result === "string" || "key" in result ? { from: value, to: result } : "from" in result ? { from: result.from, to: result.to } : { from: value, to: result.to }; +} +function normalizeForwardResult(result, value) { + return result === void 0 ? [] : Array.isArray(result) ? result.map((transferResult) => normalizeTransferResult(transferResult, value)) : [normalizeTransferResult(result, value)]; +} +function normalizeRedirectResult(result, value) { + const redirect = normalizeForwardResult(typeof result === "object" && "redirect" in result ? result.redirect : result, value); + return redirect.length === 0 ? { remain: value, redirect } : typeof result === "object" && "remain" in result ? { remain: result.remain, redirect } : { redirect }; +} +function assert(isValid, message) { + if (!isValid) { + throw new Error(message); + } +} + +// node_modules/vnopts/lib/schemas/choice.js +var ChoiceSchema = class extends Schema { + constructor(parameters) { + super(parameters); + this._choices = mapFromArray(parameters.choices.map((choice) => choice && typeof choice === "object" ? choice : { value: choice }), "value"); + } + expected({ descriptor }) { + const choiceDescriptions = Array.from(this._choices.keys()).map((value) => this._choices.get(value)).filter(({ hidden }) => !hidden).map((choiceInfo) => choiceInfo.value).sort(comparePrimitive).map(descriptor.value); + const head = choiceDescriptions.slice(0, -2); + const tail = choiceDescriptions.slice(-2); + const message = head.concat(tail.join(" or ")).join(", "); + return { + text: message, + list: { + title: "one of the following values", + values: choiceDescriptions } - pattern = pattern.replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, "!").replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, "#"); - const regex = makeRegex(pattern, ignoreCase); - return new IgnoreRule( - origin, - pattern, - negative, - regex - ); }; - var throwError = (message, Ctor) => { - throw new Ctor(message); - }; - var checkPath = (path9, originalPath, doThrow) => { - if (!isString(path9)) { - return doThrow( - `path must be a string, but got \`${originalPath}\``, - TypeError - ); + } + validate(value) { + return this._choices.has(value); + } + deprecated(value) { + const choiceInfo = this._choices.get(value); + return choiceInfo && choiceInfo.deprecated ? { value } : false; + } + forward(value) { + const choiceInfo = this._choices.get(value); + return choiceInfo ? choiceInfo.forward : void 0; + } + redirect(value) { + const choiceInfo = this._choices.get(value); + return choiceInfo ? choiceInfo.redirect : void 0; + } +}; + +// node_modules/vnopts/lib/schemas/number.js +var NumberSchema = class extends Schema { + expected() { + return "a number"; + } + validate(value, _utils) { + return typeof value === "number"; + } +}; + +// node_modules/vnopts/lib/schemas/integer.js +var IntegerSchema = class extends NumberSchema { + expected() { + return "an integer"; + } + validate(value, utils) { + return utils.normalizeValidateResult(super.validate(value, utils), value) === true && isInt(value); + } +}; + +// node_modules/vnopts/lib/schemas/string.js +var StringSchema = class extends Schema { + expected() { + return "a string"; + } + validate(value) { + return typeof value === "string"; + } +}; + +// node_modules/vnopts/lib/defaults.js +var defaultDescriptor = apiDescriptor; +var defaultUnknownHandler = levenUnknownHandler; +var defaultInvalidHandler = commonInvalidHandler; +var defaultDeprecatedHandler = commonDeprecatedHandler; + +// node_modules/vnopts/lib/normalize.js +var Normalizer = class { + constructor(schemas, opts) { + const { logger = console, loggerPrintWidth = 80, descriptor = defaultDescriptor, unknown = defaultUnknownHandler, invalid = defaultInvalidHandler, deprecated = defaultDeprecatedHandler, missing = () => false, required = () => false, preprocess = (x) => x, postprocess = () => VALUE_UNCHANGED } = opts || {}; + this._utils = { + descriptor, + logger: ( + /* c8 ignore next */ + logger || { warn: () => { + } } + ), + loggerPrintWidth, + schemas: recordFromArray(schemas, "name"), + normalizeDefaultResult, + normalizeExpectedResult, + normalizeDeprecatedResult, + normalizeForwardResult, + normalizeRedirectResult, + normalizeValidateResult + }; + this._unknownHandler = unknown; + this._invalidHandler = normalizeInvalidHandler(invalid); + this._deprecatedHandler = deprecated; + this._identifyMissing = (k, o) => !(k in o) || missing(k, o); + this._identifyRequired = required; + this._preprocess = preprocess; + this._postprocess = postprocess; + this.cleanHistory(); + } + cleanHistory() { + this._hasDeprecationWarned = createAutoChecklist(); + } + normalize(options8) { + const newOptions = {}; + const preprocessed = this._preprocess(options8, this._utils); + const restOptionsArray = [preprocessed]; + const applyNormalization = () => { + while (restOptionsArray.length !== 0) { + const currentOptions = restOptionsArray.shift(); + const transferredOptionsArray = this._applyNormalization(currentOptions, newOptions); + restOptionsArray.push(...transferredOptionsArray); + } + }; + applyNormalization(); + for (const key of Object.keys(this._utils.schemas)) { + const schema = this._utils.schemas[key]; + if (!(key in newOptions)) { + const defaultResult = normalizeDefaultResult(schema.default(this._utils)); + if ("value" in defaultResult) { + restOptionsArray.push({ [key]: defaultResult.value }); + } + } + } + applyNormalization(); + for (const key of Object.keys(this._utils.schemas)) { + if (!(key in newOptions)) { + continue; } - if (!path9) { - return doThrow(`path must not be empty`, TypeError); + const schema = this._utils.schemas[key]; + const value = newOptions[key]; + const newValue = schema.postprocess(value, this._utils); + if (newValue === VALUE_UNCHANGED) { + continue; } - if (checkPath.isNotRelative(path9)) { - const r = "`path.relative()`d"; - return doThrow( - `path should be a ${r} string, but got "${originalPath}"`, - RangeError + this._applyValidation(newValue, key, schema); + newOptions[key] = newValue; + } + this._applyPostprocess(newOptions); + this._applyRequiredCheck(newOptions); + return newOptions; + } + _applyNormalization(options8, newOptions) { + const transferredOptionsArray = []; + const { knownKeys, unknownKeys } = this._partitionOptionKeys(options8); + for (const key of knownKeys) { + const schema = this._utils.schemas[key]; + const value = schema.preprocess(options8[key], this._utils); + this._applyValidation(value, key, schema); + const appendTransferredOptions = ({ from, to }) => { + transferredOptionsArray.push(typeof to === "string" ? { [to]: from } : { [to.key]: to.value }); + }; + const warnDeprecated = ({ value: currentValue, redirectTo }) => { + const deprecatedResult = normalizeDeprecatedResult( + schema.deprecated(currentValue, this._utils), + value, + /* doNotNormalizeTrue */ + true ); - } - return true; - }; - var isNotRelative = (path9) => REGEX_TEST_INVALID_PATH.test(path9); - checkPath.isNotRelative = isNotRelative; - checkPath.convert = (p) => p; - var Ignore = class { - constructor({ - ignorecase = true, - ignoreCase = ignorecase, - allowRelativePaths = false - } = {}) { - define(this, KEY_IGNORE, true); - this._rules = []; - this._ignoreCase = ignoreCase; - this._allowRelativePaths = allowRelativePaths; - this._initCache(); - } - _initCache() { - this._ignoreCache = /* @__PURE__ */ Object.create(null); - this._testCache = /* @__PURE__ */ Object.create(null); - } - _addPattern(pattern) { - if (pattern && pattern[KEY_IGNORE]) { - this._rules = this._rules.concat(pattern._rules); - this._added = true; + if (deprecatedResult === false) { return; } - if (checkPattern(pattern)) { - const rule = createRule(pattern, this._ignoreCase); - this._added = true; - this._rules.push(rule); - } - } - // @param {Array | string | Ignore} pattern - add(pattern) { - this._added = false; - makeArray( - isString(pattern) ? splitPattern(pattern) : pattern - ).forEach(this._addPattern, this); - if (this._added) { - this._initCache(); - } - return this; - } - // legacy - addPattern(pattern) { - return this.add(pattern); - } - // | ignored : unignored - // negative | 0:0 | 0:1 | 1:0 | 1:1 - // -------- | ------- | ------- | ------- | -------- - // 0 | TEST | TEST | SKIP | X - // 1 | TESTIF | SKIP | TEST | X - // - SKIP: always skip - // - TEST: always test - // - TESTIF: only test if checkUnignored - // - X: that never happen - // @param {boolean} whether should check if the path is unignored, - // setting `checkUnignored` to `false` could reduce additional - // path matching. - // @returns {TestResult} true if a file is ignored - _testOne(path9, checkUnignored) { - let ignored = false; - let unignored = false; - this._rules.forEach((rule) => { - const { negative } = rule; - if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) { - return; + if (deprecatedResult === true) { + if (!this._hasDeprecationWarned(key)) { + this._utils.logger.warn(this._deprecatedHandler(key, redirectTo, this._utils)); } - const matched = rule.regex.test(path9); - if (matched) { - ignored = !negative; - unignored = negative; + } else { + for (const { value: deprecatedValue } of deprecatedResult) { + const pair = { key, value: deprecatedValue }; + if (!this._hasDeprecationWarned(pair)) { + const redirectToPair = typeof redirectTo === "string" ? { key: redirectTo, value: deprecatedValue } : redirectTo; + this._utils.logger.warn(this._deprecatedHandler(pair, redirectToPair, this._utils)); + } } - }); - return { - ignored, - unignored - }; - } - // @returns {TestResult} - _test(originalPath, cache, checkUnignored, slices) { - const path9 = originalPath && checkPath.convert(originalPath); - checkPath( - path9, - originalPath, - this._allowRelativePaths ? RETURN_FALSE : throwError - ); - return this._t(path9, cache, checkUnignored, slices); - } - _t(path9, cache, checkUnignored, slices) { - if (path9 in cache) { - return cache[path9]; - } - if (!slices) { - slices = path9.split(SLASH); } - slices.pop(); - if (!slices.length) { - return cache[path9] = this._testOne(path9, checkUnignored); + }; + const forwardResult = normalizeForwardResult(schema.forward(value, this._utils), value); + forwardResult.forEach(appendTransferredOptions); + const redirectResult = normalizeRedirectResult(schema.redirect(value, this._utils), value); + redirectResult.redirect.forEach(appendTransferredOptions); + if ("remain" in redirectResult) { + const remainingValue = redirectResult.remain; + newOptions[key] = key in newOptions ? schema.overlap(newOptions[key], remainingValue, this._utils) : remainingValue; + warnDeprecated({ value: remainingValue }); + } + for (const { from, to } of redirectResult.redirect) { + warnDeprecated({ value: from, redirectTo: to }); + } + } + for (const key of unknownKeys) { + const value = options8[key]; + this._applyUnknownHandler(key, value, newOptions, (knownResultKey, knownResultValue) => { + transferredOptionsArray.push({ [knownResultKey]: knownResultValue }); + }); + } + return transferredOptionsArray; + } + _applyRequiredCheck(options8) { + for (const key of Object.keys(this._utils.schemas)) { + if (this._identifyMissing(key, options8)) { + if (this._identifyRequired(key)) { + throw this._invalidHandler(key, VALUE_NOT_EXIST, this._utils); } - const parent = this._t( - slices.join(SLASH) + SLASH, - cache, - checkUnignored, - slices - ); - return cache[path9] = parent.ignored ? parent : this._testOne(path9, checkUnignored); } - ignores(path9) { - return this._test(path9, this._ignoreCache, false).ignored; + } + } + _partitionOptionKeys(options8) { + const [knownKeys, unknownKeys] = partition(Object.keys(options8).filter((key) => !this._identifyMissing(key, options8)), (key) => key in this._utils.schemas); + return { knownKeys, unknownKeys }; + } + _applyValidation(value, key, schema) { + const validateResult = normalizeValidateResult(schema.validate(value, this._utils), value); + if (validateResult !== true) { + throw this._invalidHandler(key, validateResult.value, this._utils); + } + } + _applyUnknownHandler(key, value, newOptions, knownResultHandler) { + const unknownResult = this._unknownHandler(key, value, this._utils); + if (!unknownResult) { + return; + } + for (const resultKey of Object.keys(unknownResult)) { + if (this._identifyMissing(resultKey, unknownResult)) { + continue; } - createFilter() { - return (path9) => !this.ignores(path9); + const resultValue = unknownResult[resultKey]; + if (resultKey in this._utils.schemas) { + knownResultHandler(resultKey, resultValue); + } else { + newOptions[resultKey] = resultValue; } - filter(paths) { - return makeArray(paths).filter(this.createFilter()); + } + } + _applyPostprocess(options8) { + const postprocessed = this._postprocess(options8, this._utils); + if (postprocessed === VALUE_UNCHANGED) { + return; + } + if (postprocessed.delete) { + for (const deleteKey of postprocessed.delete) { + delete options8[deleteKey]; } - // @returns {TestResult} - test(path9) { - return this._test(path9, this._testCache, true); + } + if (postprocessed.override) { + const { knownKeys, unknownKeys } = this._partitionOptionKeys(postprocessed.override); + for (const key of knownKeys) { + const value = postprocessed.override[key]; + this._applyValidation(value, key, this._utils.schemas[key]); + options8[key] = value; + } + for (const key of unknownKeys) { + const value = postprocessed.override[key]; + this._applyUnknownHandler(key, value, options8, (knownResultKey, knownResultValue) => { + const schema = this._utils.schemas[knownResultKey]; + this._applyValidation(knownResultValue, knownResultKey, schema); + options8[knownResultKey] = knownResultValue; + }); } - }; - var factory = (options8) => new Ignore(options8); - var isPathValid = (path9) => checkPath(path9 && checkPath.convert(path9), path9, RETURN_FALSE); - factory.isPathValid = isPathValid; - factory.default = factory; - module.exports = factory; - if ( - // Detect `process` so that it can run in browsers. - typeof process !== "undefined" && (process.env && process.env.IGNORE_TEST_WIN32 || process.platform === "win32") - ) { - const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/"); - checkPath.convert = makePosix; - const REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i; - checkPath.isNotRelative = (path9) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path9) || isNotRelative(path9); } } -}); +}; // src/index.js -var src_exports = {}; -__export(src_exports, { - __debug: () => debugApis, - __internal: () => sharedWithCli, - check: () => check, - clearConfigCache: () => clearCache3, - doc: () => doc, - format: () => format2, - formatWithCursor: () => formatWithCursor2, - getFileInfo: () => getFileInfo2, - getSupportInfo: () => getSupportInfo2, - resolveConfig: () => resolveConfig, - resolveConfigFile: () => resolveConfigFile, - util: () => public_exports, - version: () => version_evaluate_default -}); -var import_vnopts2 = __toESM(require_lib(), 1); var import_fast_glob = __toESM(require_out4(), 1); // scripts/build/shims/string-replace-all.js -var stringReplaceAll = (isOptionalObject, original, pattern, replacement) => { +var stringReplaceAll2 = (isOptionalObject, original, pattern, replacement) => { if (isOptionalObject && (original === void 0 || original === null)) { return; } @@ -15002,10 +14709,10 @@ var stringReplaceAll = (isOptionalObject, original, pattern, replacement) => { } return original.split(pattern).join(replacement); }; -var string_replace_all_default = stringReplaceAll; +var string_replace_all_default = stringReplaceAll2; // src/main/core.js -var import_diff = __toESM(require_array3(), 1); +var import_diff = __toESM(require_array2(), 1); // src/document/constants.js var DOC_TYPE_STRING = "string"; @@ -15340,11 +15047,11 @@ function mapDoc(doc2, cb) { if (mapped.has(doc3)) { return mapped.get(doc3); } - const result = process4(doc3); + const result = process5(doc3); mapped.set(doc3, result); return result; } - function process4(doc3) { + function process5(doc3) { switch (get_doc_type_default(doc3)) { case DOC_TYPE_ARRAY: return cb(doc3.map(rec)); @@ -16729,7 +16436,6 @@ function inferParser(options8, fileInfo) { var infer_parser_default = inferParser; // src/main/normalize-options.js -var import_vnopts = __toESM(require_lib(), 1); var hasDeprecationWarned; function normalizeOptions(options8, optionInfos, { logger = false, @@ -16746,14 +16452,14 @@ function normalizeOptions(options8, optionInfos, { throw new Error("'descriptor' option is required."); } } else { - descriptor = import_vnopts.default.apiDescriptor; + descriptor = apiDescriptor; } const unknown = !passThrough ? (key, value, options9) => { const { _, ...schemas2 } = options9.schemas; - return import_vnopts.default.levenUnknownHandler(key, value, { + return levenUnknownHandler(key, value, { ...options9, schemas: schemas2 }); @@ -16766,7 +16472,7 @@ function normalizeOptions(options8, optionInfos, { isCLI, FlagSchema }); - const normalizer = new import_vnopts.default.Normalizer(schemas, { + const normalizer = new Normalizer(schemas, { logger, unknown, descriptor @@ -16787,7 +16493,7 @@ function optionInfosToSchemas(optionInfos, { }) { const schemas = []; if (isCLI) { - schemas.push(import_vnopts.default.AnySchema.create({ + schemas.push(AnySchema.create({ name: "_" })); } @@ -16798,7 +16504,7 @@ function optionInfosToSchemas(optionInfos, { FlagSchema })); if (optionInfo.alias && isCLI) { - schemas.push(import_vnopts.default.AliasSchema.create({ + schemas.push(AliasSchema.create({ // @ts-expect-error name: optionInfo.alias, sourceName: optionInfo.name @@ -16822,16 +16528,16 @@ function optionInfoToSchema(optionInfo, { const handlers = {}; switch (optionInfo.type) { case "int": - SchemaConstructor = import_vnopts.default.IntegerSchema; + SchemaConstructor = IntegerSchema; if (isCLI) { parameters.preprocess = Number; } break; case "string": - SchemaConstructor = import_vnopts.default.StringSchema; + SchemaConstructor = StringSchema; break; case "choice": - SchemaConstructor = import_vnopts.default.ChoiceSchema; + SchemaConstructor = ChoiceSchema; parameters.choices = optionInfo.choices.map((choiceInfo) => (choiceInfo == null ? void 0 : choiceInfo.redirect) ? { ...choiceInfo, redirect: { @@ -16843,14 +16549,14 @@ function optionInfoToSchema(optionInfo, { } : choiceInfo); break; case "boolean": - SchemaConstructor = import_vnopts.default.BooleanSchema; + SchemaConstructor = BooleanSchema; break; case "flag": SchemaConstructor = FlagSchema; parameters.flags = optionInfos.flatMap((optionInfo2) => [optionInfo2.alias, optionInfo2.description && optionInfo2.name, optionInfo2.oppositeDescription && `no-${optionInfo2.name}`].filter(Boolean)); break; case "path": - SchemaConstructor = import_vnopts.default.StringSchema; + SchemaConstructor = StringSchema; break; default: throw new Error(`Unexpected type ${optionInfo.type}`); @@ -16880,7 +16586,7 @@ function optionInfoToSchema(optionInfo, { -1 ) : value), utils); } - return optionInfo.array ? import_vnopts.default.ArraySchema.create({ + return optionInfo.array ? ArraySchema.create({ ...isCLI ? { preprocess: (v) => Array.isArray(v) ? v : [v] } : {}, @@ -17070,7 +16776,7 @@ function massageAst(ast, options8) { var massage_ast_default = massageAst; // src/main/parse.js -var import_code_frame = __toESM(require_lib4(), 1); +var import_code_frame = __toESM(require_lib3(), 1); async function parse(originalText, options8) { const parser = await resolveParser(options8); const text = parser.preprocess ? parser.preprocess(originalText, options8) : originalText; @@ -17403,7 +17109,7 @@ getAncestors_fn = function* () { var ast_path_default = AstPath; // src/main/comments/attach.js -import assert from "assert"; +import assert2 from "assert"; // src/utils/skip.js function skip(characters) { @@ -17791,8 +17497,8 @@ function breakTies(tiesToBreak, options8) { precedingNode: currentCommentPrecedingNode, followingNode: currentCommentFollowingNode } = tiesToBreak[indexOfFirstLeadingComment - 1]; - assert.strictEqual(currentCommentPrecedingNode, precedingNode); - assert.strictEqual(currentCommentFollowingNode, followingNode); + assert2.strictEqual(currentCommentPrecedingNode, precedingNode); + assert2.strictEqual(currentCommentFollowingNode, followingNode); const gap = options8.originalText.slice(options8.locEnd(comment), gapEndPos); if (((_b = (_a = options8.printer).isGap) == null ? void 0 : _b.call(_a, gap, options8)) ?? /^[\s(]*$/.test(gap)) { gapEndPos = options8.locStart(comment); @@ -18139,12 +17845,12 @@ function callPluginPrintFunction(path9, options8, printPath, args, embeds) { } else { doc2 = printer.print(path9, options8, printPath, args); } - if (printer.printComment && (!printer.willPrintOwnComments || !printer.willPrintOwnComments(path9, options8))) { - doc2 = printComments(path9, doc2, options8); - } if (node === options8.cursorNode) { doc2 = inheritLabel(doc2, (doc3) => [cursor, doc3, cursor]); } + if (printer.printComment && (!printer.willPrintOwnComments || !printer.willPrintOwnComments(path9, options8))) { + doc2 = printComments(path9, doc2, options8); + } return doc2; } async function prepareToPrint(ast, options8) { @@ -18161,7 +17867,7 @@ async function prepareToPrint(ast, options8) { } // src/main/range-util.js -import assert2 from "assert"; +import assert3 from "assert"; var isJsonParser = ({ parser }) => parser === "json" || parser === "json5" || parser === "json-stringify"; function findCommonAncestor(startNodeAndParents, endNodeAndParents) { const startNodeAndAncestors = [ @@ -18308,7 +18014,7 @@ function isSourceElement(opts, node, parentNode) { } function calculateRange(text, opts, ast) { let { rangeStart: start, rangeEnd: end, locStart, locEnd } = opts; - assert2.ok(end > start); + assert3.ok(end > start); const firstNonWhitespaceCharacterIndex = text.slice(start, end).search(/\S/); const isAllWhitespace = firstNonWhitespaceCharacterIndex === -1; if (!isAllWhitespace) { @@ -18739,14 +18445,14 @@ function memClear(fn) { } // src/utils/partition.js -function partition(array, predicate) { +function partition2(array2, predicate) { const result = [[], []]; - for (const value of array) { + for (const value of array2) { result[predicate(value) ? 0 : 1].push(value); } return result; } -var partition_default = partition; +var partition_default = partition2; // src/config/resolve-editorconfig.js var import_editorconfig = __toESM(require_src(), 1); @@ -18800,9 +18506,9 @@ var require_from_file_default = requireFromFile; import { pathToFileURL as pathToFileURL2 } from "url"; // node_modules/import-meta-resolve/lib/resolve.js -import assert4 from "assert"; +import assert5 from "assert"; import { Stats, statSync, realpathSync } from "fs"; -import process3 from "process"; +import process4 from "process"; import { URL as URL3, fileURLToPath as fileURLToPath3, pathToFileURL } from "url"; import path4 from "path"; import { builtinModules } from "module"; @@ -18815,10 +18521,10 @@ import { URL, fileURLToPath } from "url"; // node_modules/import-meta-resolve/lib/errors.js import v8 from "v8"; -import process2 from "process"; -import assert3 from "assert"; +import process3 from "process"; +import assert4 from "assert"; import { format, inspect } from "util"; -var isWindows = process2.platform === "win32"; +var isWindows = process3.platform === "win32"; var own = {}.hasOwnProperty; var classRegExp = /^([A-Z][a-z\d]*)+$/; var kTypes = /* @__PURE__ */ new Set([ @@ -18834,8 +18540,8 @@ var kTypes = /* @__PURE__ */ new Set([ "symbol" ]); var codes = {}; -function formatList(array, type = "and") { - return array.length < 3 ? array.join(` ${type} `) : `${array.slice(0, -1).join(", ")}, ${type} ${array[array.length - 1]}`; +function formatList(array2, type = "and") { + return array2.length < 3 ? array2.join(` ${type} `) : `${array2.slice(0, -1).join(", ")}, ${type} ${array2[array2.length - 1]}`; } var messages = /* @__PURE__ */ new Map(); var nodeInternalPrefix = "__node_internal_"; @@ -18848,7 +18554,7 @@ codes.ERR_INVALID_ARG_TYPE = createError( * @param {unknown} actual */ (name, expected, actual) => { - assert3(typeof name === "string", "'name' must be a string"); + assert4(typeof name === "string", "'name' must be a string"); if (!Array.isArray(expected)) { expected = [expected]; } @@ -18864,14 +18570,14 @@ codes.ERR_INVALID_ARG_TYPE = createError( const instances = []; const other = []; for (const value of expected) { - assert3( + assert4( typeof value === "string", "All expected entries have to be of type string" ); if (kTypes.has(value)) { types.push(value.toLowerCase()); } else if (classRegExp.exec(value) === null) { - assert3( + assert4( value !== "object", 'The value "object" should be written as "Object"' ); @@ -18950,7 +18656,7 @@ codes.ERR_INVALID_PACKAGE_TARGET = createError( (pkgPath, key, target, isImport = false, base = void 0) => { const relError = typeof target === "string" && !isImport && target.length > 0 && !target.startsWith("./"); if (key === ".") { - assert3(isImport === false); + assert4(isImport === false); return `Invalid "exports" main target ${JSON.stringify(target)} defined in the package config ${pkgPath}package.json${base ? ` imported from ${base}` : ""}${relError ? '; targets must start with "./"' : ""}`; } return `Invalid "${isImport ? "imports" : "exports"}" target ${JSON.stringify( @@ -19131,9 +18837,9 @@ var captureLargerStackTrace = hideStackFrames( ); function getMessage(key, args, self) { const message = messages.get(key); - assert3(message !== void 0, "expected `message` to be found"); + assert4(message !== void 0, "expected `message` to be found"); if (typeof message === "function") { - assert3( + assert4( message.length <= args.length, // Default options do not count. `Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${message.length}).` @@ -19144,7 +18850,7 @@ function getMessage(key, args, self) { let expectedLength = 0; while (regex.exec(message) !== null) expectedLength++; - assert3( + assert4( expectedLength === args.length, `Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${expectedLength}).` ); @@ -19406,7 +19112,7 @@ var doubleSlashRegEx = /[/\\]{2}/; function emitInvalidSegmentDeprecation(target, request, match, packageJsonUrl, internal, base, isTarget) { const pjsonPath = fileURLToPath3(packageJsonUrl); const double = doubleSlashRegEx.exec(isTarget ? target : request) !== null; - process3.emitWarning( + process4.emitWarning( `Use of deprecated ${double ? "double slash" : "leading or trailing slash matching"} resolving "${target}" for module request "${request}" ${request === match ? "" : `matched to "${match}" `}in the "${internal ? "imports" : "exports"}" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${fileURLToPath3(base)}` : ""}.`, "DeprecationWarning", "DEP0166" @@ -19420,7 +19126,7 @@ function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) { const pkgPath = fileURLToPath3(new URL3(".", packageJsonUrl)); const basePath = fileURLToPath3(base); if (main) - process3.emitWarning( + process4.emitWarning( `Package ${pkgPath} has a "main" field set to ${JSON.stringify(main)}, excluding the full filename and extension to the resolved file at "${path9.slice( pkgPath.length )}", imported from ${basePath}. @@ -19429,7 +19135,7 @@ function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) { "DEP0151" ); else - process3.emitWarning( + process4.emitWarning( `No "main" or "exports" field defined in the package.json for ${pkgPath} resolving the main entry point "${path9.slice( pkgPath.length )}", imported from ${basePath}. @@ -19791,7 +19497,7 @@ function emitTrailingSlashPatternDeprecation(match, pjsonUrl, base) { if (emittedPackageWarnings.has(pjsonPath + "|" + match)) return; emittedPackageWarnings.add(pjsonPath + "|" + match); - process3.emitWarning( + process4.emitWarning( `Use of deprecated trailing slash pattern mapping "${match}" in the "exports" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${fileURLToPath3(base)}` : ""}. Mapping specifiers ending in "/" is no longer supported.`, "DeprecationWarning", "DEP0155" @@ -20069,7 +19775,7 @@ function moduleResolve(specifier, base, conditions, preserveSymlinks) { } } } - assert4(resolved !== void 0, "expected to be defined"); + assert5(resolved !== void 0, "expected to be defined"); if (resolved.protocol !== "file:") { return resolved; } @@ -20141,7 +19847,7 @@ function throwIfUnsupportedURLScheme(parsed, experimentalNetworkImports2) { } function defaultResolve(specifier, context = {}) { const { parentURL } = context; - assert4(parentURL !== void 0, "expected `parentURL` to be defined"); + assert5(parentURL !== void 0, "expected `parentURL` to be defined"); throwIfInvalidParentURL(parentURL); let parsedParentURL; if (parentURL) { @@ -20209,11 +19915,16 @@ function importFromFile(specifier, parent) { var import_from_file_default = importFromFile; // src/config/load-external-config.js +var requireErrorCodesShouldBeIgnored = /* @__PURE__ */ new Set([ + "MODULE_NOT_FOUND", + "ERR_REQUIRE_ESM", + "ERR_PACKAGE_PATH_NOT_EXPORTED" +]); async function loadExternalConfig(config, filepath) { try { return require_from_file_default(config, filepath); } catch (error) { - if ((error == null ? void 0 : error.code) !== "MODULE_NOT_FOUND" && (error == null ? void 0 : error.code) !== "ERR_REQUIRE_ESM") { + if (!requireErrorCodesShouldBeIgnored.has(error == null ? void 0 : error.code)) { throw error; } } @@ -21164,6 +20875,7 @@ var languages_evaluate_default6 = [ ".yyp" ], "filenames": [ + ".all-contributorsrc", ".arcconfig", ".auto-changelog", ".c8rc", @@ -21175,6 +20887,7 @@ var languages_evaluate_default6 = [ ".watchmanconfig", "Pipfile.lock", "composer.lock", + "flake.lock", "mcmod.info" ], "parsers": [ @@ -21221,14 +20934,14 @@ var languages_evaluate_default6 = [ ".jscsrc", ".jshintrc", ".jslintrc", + ".swcrc", "api-extractor.json", "devcontainer.json", "jsconfig.json", "language-configuration.json", "tsconfig.json", "tslint.json", - ".eslintrc", - ".swcrc" + ".eslintrc" ], "parsers": [ "json" @@ -21273,6 +20986,7 @@ var languages_evaluate_default7 = [ "type": "prose", "color": "#083fa1", "aliases": [ + "md", "pandoc" ], "aceMode": "markdown", @@ -21296,7 +21010,7 @@ var languages_evaluate_default7 = [ "contents.lr", "README" ], - "tmScope": "source.gfm", + "tmScope": "text.md", "parsers": [ "markdown" ], @@ -21310,6 +21024,7 @@ var languages_evaluate_default7 = [ "type": "prose", "color": "#083fa1", "aliases": [ + "md", "pandoc" ], "aceMode": "markdown", @@ -21320,7 +21035,7 @@ var languages_evaluate_default7 = [ ".mdx" ], "filenames": [], - "tmScope": "source.gfm", + "tmScope": "text.md", "parsers": [ "mdx" ], @@ -21766,7 +21481,7 @@ function isNextLineEmpty2(text, startIndex) { import * as doc from "./doc.mjs"; // src/main/version.evaluate.cjs -var version_evaluate_default = "3.0.0"; +var version_evaluate_default = "3.0.3"; // src/index.js function withPlugins(fn, optionsArgumentIndex = 1) { @@ -21809,7 +21524,10 @@ var sharedWithCli = { normalizeOptions: normalize_options_default, getSupportInfoWithoutPlugins: getSupportInfo, normalizeOptionSettings, - vnopts: import_vnopts2.default, + vnopts: { + ChoiceSchema, + apiDescriptor + }, fastGlob: import_fast_glob.default, utils: { isNonEmptyArray: is_non_empty_array_default, diff --git a/node_modules/prettier/internal/cli.mjs b/node_modules/prettier/internal/cli.mjs index a78a01a..d800213 100644 --- a/node_modules/prettier/internal/cli.mjs +++ b/node_modules/prettier/internal/cli.mjs @@ -1197,6 +1197,264 @@ var require_common_path_prefix = __commonJS({ } }); +// node_modules/json-buffer/index.js +var require_json_buffer = __commonJS({ + "node_modules/json-buffer/index.js"(exports) { + exports.stringify = function stringify4(o) { + if ("undefined" == typeof o) + return o; + if (o && Buffer.isBuffer(o)) + return JSON.stringify(":base64:" + o.toString("base64")); + if (o && o.toJSON) + o = o.toJSON(); + if (o && "object" === typeof o) { + var s = ""; + var array2 = Array.isArray(o); + s = array2 ? "[" : "{"; + var first = true; + for (var k in o) { + var ignore = "function" == typeof o[k] || !array2 && "undefined" === typeof o[k]; + if (Object.hasOwnProperty.call(o, k) && !ignore) { + if (!first) + s += ","; + first = false; + if (array2) { + if (o[k] == void 0) + s += "null"; + else + s += stringify4(o[k]); + } else if (o[k] !== void 0) { + s += stringify4(k) + ":" + stringify4(o[k]); + } + } + } + s += array2 ? "]" : "}"; + return s; + } else if ("string" === typeof o) { + return JSON.stringify(/^:/.test(o) ? ":" + o : o); + } else if ("undefined" === typeof o) { + return "null"; + } else + return JSON.stringify(o); + }; + exports.parse = function(s) { + return JSON.parse(s, function(key, value) { + if ("string" === typeof value) { + if (/^:base64:/.test(value)) + return Buffer.from(value.substring(8), "base64"); + else + return /^:/.test(value) ? value.substring(1) : value; + } + return value; + }); + }; + } +}); + +// node_modules/keyv/src/index.js +var require_src = __commonJS({ + "node_modules/keyv/src/index.js"(exports, module) { + "use strict"; + var EventEmitter = __require("events"); + var JSONB = require_json_buffer(); + var loadStore = (options) => { + const adapters = { + redis: "@keyv/redis", + rediss: "@keyv/redis", + mongodb: "@keyv/mongo", + mongo: "@keyv/mongo", + sqlite: "@keyv/sqlite", + postgresql: "@keyv/postgres", + postgres: "@keyv/postgres", + mysql: "@keyv/mysql", + etcd: "@keyv/etcd", + offline: "@keyv/offline", + tiered: "@keyv/tiered" + }; + if (options.adapter || options.uri) { + const adapter = options.adapter || /^[^:+]*/.exec(options.uri)[0]; + return new (__require(adapters[adapter]))(options); + } + return /* @__PURE__ */ new Map(); + }; + var iterableAdapters = [ + "sqlite", + "postgres", + "mysql", + "mongo", + "redis", + "tiered" + ]; + var Keyv = class extends EventEmitter { + constructor(uri, { emitErrors = true, ...options } = {}) { + super(); + this.opts = { + namespace: "keyv", + serialize: JSONB.stringify, + deserialize: JSONB.parse, + ...typeof uri === "string" ? { uri } : uri, + ...options + }; + if (!this.opts.store) { + const adapterOptions = { ...this.opts }; + this.opts.store = loadStore(adapterOptions); + } + if (this.opts.compression) { + const compression = this.opts.compression; + this.opts.serialize = compression.serialize.bind(compression); + this.opts.deserialize = compression.deserialize.bind(compression); + } + if (typeof this.opts.store.on === "function" && emitErrors) { + this.opts.store.on("error", (error) => this.emit("error", error)); + } + this.opts.store.namespace = this.opts.namespace; + const generateIterator = (iterator) => async function* () { + for await (const [key, raw] of typeof iterator === "function" ? iterator(this.opts.store.namespace) : iterator) { + const data = await this.opts.deserialize(raw); + if (this.opts.store.namespace && !key.includes(this.opts.store.namespace)) { + continue; + } + if (typeof data.expires === "number" && Date.now() > data.expires) { + this.delete(key); + continue; + } + yield [this._getKeyUnprefix(key), data.value]; + } + }; + if (typeof this.opts.store[Symbol.iterator] === "function" && this.opts.store instanceof Map) { + this.iterator = generateIterator(this.opts.store); + } else if (typeof this.opts.store.iterator === "function" && this.opts.store.opts && this._checkIterableAdaptar()) { + this.iterator = generateIterator(this.opts.store.iterator.bind(this.opts.store)); + } + } + _checkIterableAdaptar() { + return iterableAdapters.includes(this.opts.store.opts.dialect) || iterableAdapters.findIndex((element) => this.opts.store.opts.url.includes(element)) >= 0; + } + _getKeyPrefix(key) { + return `${this.opts.namespace}:${key}`; + } + _getKeyPrefixArray(keys) { + return keys.map((key) => `${this.opts.namespace}:${key}`); + } + _getKeyUnprefix(key) { + return key.split(":").splice(1).join(":"); + } + get(key, options) { + const { store } = this.opts; + const isArray = Array.isArray(key); + const keyPrefixed = isArray ? this._getKeyPrefixArray(key) : this._getKeyPrefix(key); + if (isArray && store.getMany === void 0) { + const promises = []; + for (const key2 of keyPrefixed) { + promises.push( + Promise.resolve().then(() => store.get(key2)).then((data) => typeof data === "string" ? this.opts.deserialize(data) : this.opts.compression ? this.opts.deserialize(data) : data).then((data) => { + if (data === void 0 || data === null) { + return void 0; + } + if (typeof data.expires === "number" && Date.now() > data.expires) { + return this.delete(key2).then(() => void 0); + } + return options && options.raw ? data : data.value; + }) + ); + } + return Promise.allSettled(promises).then((values) => { + const data = []; + for (const value of values) { + data.push(value.value); + } + return data; + }); + } + return Promise.resolve().then(() => isArray ? store.getMany(keyPrefixed) : store.get(keyPrefixed)).then((data) => typeof data === "string" ? this.opts.deserialize(data) : this.opts.compression ? this.opts.deserialize(data) : data).then((data) => { + if (data === void 0 || data === null) { + return void 0; + } + if (isArray) { + const result = []; + for (let row of data) { + if (typeof row === "string") { + row = this.opts.deserialize(row); + } + if (row === void 0 || row === null) { + result.push(void 0); + continue; + } + if (typeof row.expires === "number" && Date.now() > row.expires) { + this.delete(key).then(() => void 0); + result.push(void 0); + } else { + result.push(options && options.raw ? row : row.value); + } + } + return result; + } + if (typeof data.expires === "number" && Date.now() > data.expires) { + return this.delete(key).then(() => void 0); + } + return options && options.raw ? data : data.value; + }); + } + set(key, value, ttl) { + const keyPrefixed = this._getKeyPrefix(key); + if (typeof ttl === "undefined") { + ttl = this.opts.ttl; + } + if (ttl === 0) { + ttl = void 0; + } + const { store } = this.opts; + return Promise.resolve().then(() => { + const expires = typeof ttl === "number" ? Date.now() + ttl : null; + if (typeof value === "symbol") { + this.emit("error", "symbol cannot be serialized"); + } + value = { value, expires }; + return this.opts.serialize(value); + }).then((value2) => store.set(keyPrefixed, value2, ttl)).then(() => true); + } + delete(key) { + const { store } = this.opts; + if (Array.isArray(key)) { + const keyPrefixed2 = this._getKeyPrefixArray(key); + if (store.deleteMany === void 0) { + const promises = []; + for (const key2 of keyPrefixed2) { + promises.push(store.delete(key2)); + } + return Promise.allSettled(promises).then((values) => values.every((x) => x.value === true)); + } + return Promise.resolve().then(() => store.deleteMany(keyPrefixed2)); + } + const keyPrefixed = this._getKeyPrefix(key); + return Promise.resolve().then(() => store.delete(keyPrefixed)); + } + clear() { + const { store } = this.opts; + return Promise.resolve().then(() => store.clear()); + } + has(key) { + const keyPrefixed = this._getKeyPrefix(key); + const { store } = this.opts; + return Promise.resolve().then(async () => { + if (typeof store.has === "function") { + return store.has(keyPrefixed); + } + const value = await store.get(keyPrefixed); + return value !== void 0; + }); + } + disconnect() { + const { store } = this.opts; + if (typeof store.disconnect === "function") { + return store.disconnect(); + } + } + }; + module.exports = Keyv; + } +}); + // node_modules/flatted/cjs/index.js var require_cjs = __commonJS({ "node_modules/flatted/cjs/index.js"(exports) { @@ -4008,6 +4266,7 @@ var require_cache = __commonJS({ "node_modules/flat-cache/src/cache.js"(exports, module) { var path10 = __require("path"); var fs6 = __require("fs"); + var Keyv = require_src(); var utils = require_utils(); var del = require_del(); var writeJSON = utils.writeJSON; @@ -4023,13 +4282,28 @@ var require_cache = __commonJS({ */ load: function(docId, cacheDir) { var me = this; - me._visited = {}; - me._persisted = {}; + me.keyv = new Keyv(); + me.__visited = {}; + me.__persisted = {}; me._pathToFile = cacheDir ? path10.resolve(cacheDir, docId) : path10.resolve(__dirname, "../.cache/", docId); if (fs6.existsSync(me._pathToFile)) { me._persisted = utils.tryParse(me._pathToFile, {}); } }, + get _persisted() { + return this.__persisted; + }, + set _persisted(value) { + this.__persisted = value; + this.keyv.set("persisted", value); + }, + get _visited() { + return this.__visited; + }, + set _visited(value) { + this.__visited = value; + this.keyv.set("visited", value); + }, /** * Load the cache from the provided file * @method loadFile @@ -4777,7 +5051,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) { return 1; } if ("CI" in env) { - if ("GITHUB_ACTIONS" in env) { + if ("GITHUB_ACTIONS" in env || "GITEA_ACTIONS" in env) { return 3; } if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") { @@ -5006,7 +5280,7 @@ var chalk = createChalk(); var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 }); var source_default = chalk; -// node_modules/strip-ansi/node_modules/ansi-regex/index.js +// node_modules/ansi-regex/index.js function ansiRegex({ onlyFirst = false } = {}) { const pattern = [ "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", @@ -5404,12 +5678,30 @@ var preserveCamelCase = (string, toLowerCase, toUpperCase, preserveConsecutiveUp }; var preserveConsecutiveUppercase = (input, toLowerCase) => { LEADING_CAPITAL.lastIndex = 0; - return input.replace(LEADING_CAPITAL, (m1) => toLowerCase(m1)); + return string_replace_all_default( + /* isOptionalObject*/ + false, + input, + LEADING_CAPITAL, + (match) => toLowerCase(match) + ); }; var postProcess = (input, toUpperCase) => { SEPARATORS_AND_IDENTIFIER.lastIndex = 0; NUMBERS_AND_IDENTIFIER.lastIndex = 0; - return input.replace(SEPARATORS_AND_IDENTIFIER, (_, identifier) => toUpperCase(identifier)).replace(NUMBERS_AND_IDENTIFIER, (m) => toUpperCase(m)); + return string_replace_all_default( + /* isOptionalObject*/ + false, + string_replace_all_default( + /* isOptionalObject*/ + false, + input, + NUMBERS_AND_IDENTIFIER, + (match, pattern, offset) => ["_", "-"].includes(input.charAt(offset + match.length)) ? match : toUpperCase(match) + ), + SEPARATORS_AND_IDENTIFIER, + (_, identifier) => toUpperCase(identifier) + ); }; function camelCase(input, options) { if (!(typeof input === "string" || Array.isArray(input))) { @@ -5963,9 +6255,10 @@ async function* expandPatternsInternal(context) { }); } else if (stat.isDirectory()) { const relativePath = path2.relative(cwd2, absolutePath) || "."; + const prefix = escapePathForGlob(fixWindowsSlashes(relativePath)); entries.push({ type: "dir", - glob: escapePathForGlob(fixWindowsSlashes(relativePath)) + "/" + getSupportedFilesGlob(), + glob: getSupportedFilesGlob().map((pattern2) => `${prefix}/**/${pattern2}`), input: pattern }); } @@ -6007,13 +6300,20 @@ ${message}` } } function getSupportedFilesGlob() { - if (!supportedFilesGlob) { - const extensions = context.languages.flatMap((lang) => lang.extensions || []); - const filenames = context.languages.flatMap((lang) => lang.filenames || []); - supportedFilesGlob = `**/{${[...extensions.map((ext) => "*" + (ext[0] === "." ? ext : "." + ext)), ...filenames]}}`; - } + supportedFilesGlob ?? (supportedFilesGlob = [...getSupportedFilesGlobWithoutCache()]); return supportedFilesGlob; } + function* getSupportedFilesGlobWithoutCache() { + for (const { + extensions = [], + filenames = [] + } of context.languages) { + yield* filenames; + for (const extension of extensions) { + yield `*${extension.startsWith(".") ? extension : `.${extension}`}`; + } + } + } } var errorMessages = { globError: { @@ -6646,7 +6946,11 @@ async function format2(context, input, opt) { ms: averageMs }; context.logger.debug( - `'${performanceTestFlag.name}' measurements for formatWithCursor: ${JSON.stringify(results, null, 2)}` + `'${performanceTestFlag.name}' measurements for formatWithCursor: ${JSON.stringify( + results, + null, + 2 + )}` ); } return prettier.formatWithCursor(input, opt); diff --git a/node_modules/prettier/internal/internal.mjs b/node_modules/prettier/internal/internal.mjs index 21d430d..093f407 100644 --- a/node_modules/prettier/internal/internal.mjs +++ b/node_modules/prettier/internal/internal.mjs @@ -673,9 +673,9 @@ var require_lib = __commonJS({ } }); -// node_modules/@babel/highlight/node_modules/escape-string-regexp/index.js +// node_modules/@babel/code-frame/node_modules/escape-string-regexp/index.js var require_escape_string_regexp = __commonJS({ - "node_modules/@babel/highlight/node_modules/escape-string-regexp/index.js"(exports, module) { + "node_modules/@babel/code-frame/node_modules/escape-string-regexp/index.js"(exports, module) { "use strict"; var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g; module.exports = function(str) { @@ -1829,9 +1829,9 @@ var require_ansi_styles = __commonJS({ } }); -// node_modules/@babel/highlight/node_modules/has-flag/index.js +// node_modules/@babel/code-frame/node_modules/has-flag/index.js var require_has_flag = __commonJS({ - "node_modules/@babel/highlight/node_modules/has-flag/index.js"(exports, module) { + "node_modules/@babel/code-frame/node_modules/has-flag/index.js"(exports, module) { "use strict"; module.exports = (flag, argv) => { argv = argv || process.argv; @@ -1843,9 +1843,9 @@ var require_has_flag = __commonJS({ } }); -// node_modules/@babel/highlight/node_modules/supports-color/index.js +// node_modules/@babel/code-frame/node_modules/supports-color/index.js var require_supports_color = __commonJS({ - "node_modules/@babel/highlight/node_modules/supports-color/index.js"(exports, module) { + "node_modules/@babel/code-frame/node_modules/supports-color/index.js"(exports, module) { "use strict"; var os = __require("os"); var hasFlag = require_has_flag(); @@ -1938,9 +1938,9 @@ var require_supports_color = __commonJS({ } }); -// node_modules/@babel/highlight/node_modules/chalk/templates.js +// node_modules/@babel/code-frame/node_modules/chalk/templates.js var require_templates = __commonJS({ - "node_modules/@babel/highlight/node_modules/chalk/templates.js"(exports, module) { + "node_modules/@babel/code-frame/node_modules/chalk/templates.js"(exports, module) { "use strict"; var TEMPLATE_REGEX = /(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi; var STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g; @@ -2049,9 +2049,9 @@ var require_templates = __commonJS({ } }); -// node_modules/@babel/highlight/node_modules/chalk/index.js +// node_modules/@babel/code-frame/node_modules/chalk/index.js var require_chalk = __commonJS({ - "node_modules/@babel/highlight/node_modules/chalk/index.js"(exports, module) { + "node_modules/@babel/code-frame/node_modules/chalk/index.js"(exports, module) { "use strict"; var escapeStringRegexp = require_escape_string_regexp(); var ansiStyles = require_ansi_styles(); @@ -2224,23 +2224,23 @@ var require_lib2 = __commonJS({ value: true }); exports.default = highlight; - exports.getChalk = getChalk; exports.shouldHighlight = shouldHighlight; var _jsTokens = require_js_tokens(); var _helperValidatorIdentifier = require_lib(); - var _chalk = require_chalk(); + var _chalk2 = require_chalk(); + var chalk = _chalk2; var sometimesKeywords = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]); - function getDefs(chalk) { + function getDefs(chalk2) { return { - keyword: chalk.cyan, - capitalized: chalk.yellow, - jsxIdentifier: chalk.yellow, - punctuator: chalk.yellow, - number: chalk.magenta, - string: chalk.green, - regex: chalk.magenta, - comment: chalk.grey, - invalid: chalk.white.bgRed.bold + keyword: chalk2.cyan, + capitalized: chalk2.yellow, + jsxIdentifier: chalk2.yellow, + punctuator: chalk2.yellow, + number: chalk2.magenta, + string: chalk2.green, + regex: chalk2.magenta, + comment: chalk2.grey, + invalid: chalk2.white.bgRed.bold }; } var NEWLINE = /\r\n|[\n\r\u2028\u2029]/; @@ -2295,18 +2295,28 @@ var require_lib2 = __commonJS({ return highlighted; } function shouldHighlight(options) { - return !!_chalk.supportsColor || options.forceColor; + return !!chalk.supportsColor || options.forceColor; + } + var chalkWithForcedColor = void 0; + function getChalk(forceColor) { + if (forceColor) { + var _chalkWithForcedColor; + (_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new chalk.constructor({ + enabled: true, + level: 1 + }); + return chalkWithForcedColor; + } + return chalk; } - function getChalk(options) { - return options.forceColor ? new _chalk.constructor({ - enabled: true, - level: 1 - }) : _chalk; + { + { + exports.getChalk = (options) => getChalk(options.forceColor); + } } function highlight(code, options = {}) { if (code !== "" && shouldHighlight(options)) { - const chalk = getChalk(options); - const defs = getDefs(chalk); + const defs = getDefs(getChalk(options.forceColor)); return highlightTokens(defs, code); } else { return code; @@ -2325,12 +2335,26 @@ var require_lib3 = __commonJS({ exports.codeFrameColumns = codeFrameColumns; exports.default = _default; var _highlight = require_lib2(); + var _chalk2 = require_chalk(); + var chalk = _chalk2; + var chalkWithForcedColor = void 0; + function getChalk(forceColor) { + if (forceColor) { + var _chalkWithForcedColor; + (_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new chalk.constructor({ + enabled: true, + level: 1 + }); + return chalkWithForcedColor; + } + return chalk; + } var deprecationWarningShown = false; - function getDefs(chalk) { + function getDefs(chalk2) { return { - gutter: chalk.grey, - marker: chalk.red.bold, - message: chalk.red.bold + gutter: chalk2.grey, + marker: chalk2.red.bold, + message: chalk2.red.bold }; } var NEWLINE = /\r\n|[\n\r\u2028\u2029]/; @@ -2392,8 +2416,8 @@ var require_lib3 = __commonJS({ } function codeFrameColumns(rawLines, loc, opts = {}) { const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts); - const chalk = (0, _highlight.getChalk)(opts); - const defs = getDefs(chalk); + const chalk2 = getChalk(opts.forceColor); + const defs = getDefs(chalk2); const maybeHighlight = (chalkFn, string) => { return highlighted ? chalkFn(string) : string; }; @@ -2432,7 +2456,7 @@ var require_lib3 = __commonJS({ ${frame}`; } if (highlighted) { - return chalk.reset(frame); + return chalk2.reset(frame); } else { return frame; } diff --git a/node_modules/prettier/package.json b/node_modules/prettier/package.json index 21ed6b5..2f94d4c 100644 --- a/node_modules/prettier/package.json +++ b/node_modules/prettier/package.json @@ -1,6 +1,6 @@ { "name": "prettier", - "version": "3.0.0", + "version": "3.0.3", "description": "Prettier is an opinionated code formatter", "bin": "./bin/prettier.cjs", "repository": "prettier/prettier", @@ -190,5 +190,6 @@ "standalone.d.ts", "standalone.js", "standalone.mjs" - ] + ], + "preferUnplugged": true } \ No newline at end of file diff --git a/node_modules/prettier/plugins/acorn.js b/node_modules/prettier/plugins/acorn.js index 333221a..9ba5b0b 100644 --- a/node_modules/prettier/plugins/acorn.js +++ b/node_modules/prettier/plugins/acorn.js @@ -1,13 +1,13 @@ -(function(n){function e(){var i=n();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.acorn=e()}})(function(){"use strict";var Zi=Object.create;var Be=Object.defineProperty;var es=Object.getOwnPropertyDescriptor;var ts=Object.getOwnPropertyNames;var is=Object.getPrototypeOf,ss=Object.prototype.hasOwnProperty;var Se=(a,u)=>()=>(u||a((u={exports:{}}).exports,u),u.exports),rs=(a,u)=>{for(var c in u)Be(a,c,{get:u[c],enumerable:!0})},Qt=(a,u,c,h)=>{if(u&&typeof u=="object"||typeof u=="function")for(let l of ts(u))!ss.call(a,l)&&l!==c&&Be(a,l,{get:()=>u[l],enumerable:!(h=es(u,l))||h.enumerable});return a};var as=(a,u,c)=>(c=a!=null?Zi(is(a)):{},Qt(u||!a||!a.__esModule?Be(c,"default",{value:a,enumerable:!0}):c,a)),ns=a=>Qt(Be({},"__esModule",{value:!0}),a);var si=Se(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.extract=ds;se.parse=xs;se.parseWithComments=ii;se.print=ys;se.strip=ms;var hs=/\*\/$/,ps=/^\/\*\*?/,ei=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,cs=/(^|\s+)\/\/([^\r\n]*)/g,Yt=/^(\r?\n)+/,ls=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,$t=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,fs=/(\r?\n|^) *\* ?/g,ti=[];function ds(a){let u=a.match(ei);return u?u[0].trimLeft():""}function ms(a){let u=a.match(ei);return u&&u[0]?a.substring(u[0].length):a}function xs(a){return ii(a).pragmas}function ii(a){let u=` -`;a=a.replace(ps,"").replace(hs,"").replace(fs,"$1");let c="";for(;c!==a;)c=a,a=a.replace(ls,`${u}$1 $2${u}`);a=a.replace(Yt,"").trimRight();let h=Object.create(null),l=a.replace($t,"").replace(Yt,"").trimRight(),f;for(;f=$t.exec(a);){let m=f[2].replace(cs,"");typeof h[f[1]]=="string"||Array.isArray(h[f[1]])?h[f[1]]=ti.concat(h[f[1]],m):h[f[1]]=m}return{comments:l,pragmas:h}}function ys({comments:a="",pragmas:u={}}){let c=` -`,h="/**",l=" *",f=" */",m=Object.keys(u),_=m.map(P=>Zt(P,u[P])).reduce((P,D)=>P.concat(D),[]).map(P=>`${l} ${P}${c}`).join("");if(!a){if(m.length===0)return"";if(m.length===1&&!Array.isArray(u[m[0]])){let P=u[m[0]];return`${h} ${Zt(m[0],P)[0]}${f}`}}let L=a.split(c).map(P=>`${l} ${P}`).join(c)+c;return h+c+(a?L:"")+(a&&m.length?l+c:"")+_+f}function Zt(a,u){return ti.concat(u).map(c=>`@${a} ${c}`.trim())}});var Ee=Se((Ke,li)=>{(function(a,u){typeof Ke=="object"&&typeof li<"u"?u(Ke):typeof define=="function"&&define.amd?define(["exports"],u):(a=typeof globalThis<"u"?globalThis:a||self,u(a.acorn={}))})(Ke,function(a){"use strict";var u=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],c=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],h="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F",l="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",f={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",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},m="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",_={5:m,"5module":m+" export import",6:m+" const class extends export import super"},L=/^in(stanceof)?$/,P=new RegExp("["+l+"]"),D=new RegExp("["+l+h+"]");function G(e,t){for(var i=65536,s=0;se)return!1;if(i+=t[s+1],i>=e)return!0}return!1}function F(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&P.test(String.fromCharCode(e)):t===!1?!1:G(e,c)}function d(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&D.test(String.fromCharCode(e)):t===!1?!1:G(e,c)||G(e,u)}var y=function(t,i){i===void 0&&(i={}),this.label=t,this.keyword=i.keyword,this.beforeExpr=!!i.beforeExpr,this.startsExpr=!!i.startsExpr,this.isLoop=!!i.isLoop,this.isAssign=!!i.isAssign,this.prefix=!!i.prefix,this.postfix=!!i.postfix,this.binop=i.binop||null,this.updateContext=null};function b(e,t){return new y(e,{beforeExpr:!0,binop:t})}var k={beforeExpr:!0},N={startsExpr:!0},H={};function E(e,t){return t===void 0&&(t={}),t.keyword=e,H[e]=new y(e,t)}var r={num:new y("num",N),regexp:new y("regexp",N),string:new y("string",N),name:new y("name",N),privateId:new y("privateId",N),eof:new y("eof"),bracketL:new y("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new y("]"),braceL:new y("{",{beforeExpr:!0,startsExpr:!0}),braceR:new y("}"),parenL:new y("(",{beforeExpr:!0,startsExpr:!0}),parenR:new y(")"),comma:new y(",",k),semi:new y(";",k),colon:new y(":",k),dot:new y("."),question:new y("?",k),questionDot:new y("?."),arrow:new y("=>",k),template:new y("template"),invalidTemplate:new y("invalidTemplate"),ellipsis:new y("...",k),backQuote:new y("`",N),dollarBraceL:new y("${",{beforeExpr:!0,startsExpr:!0}),eq:new y("=",{beforeExpr:!0,isAssign:!0}),assign:new y("_=",{beforeExpr:!0,isAssign:!0}),incDec:new y("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new y("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:b("||",1),logicalAND:b("&&",2),bitwiseOR:b("|",3),bitwiseXOR:b("^",4),bitwiseAND:b("&",5),equality:b("==/!=/===/!==",6),relational:b("/<=/>=",7),bitShift:b("<>/>>>",8),plusMin:new y("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:b("%",10),star:b("*",10),slash:b("/",10),starstar:new y("**",{beforeExpr:!0}),coalesce:b("??",1),_break:E("break"),_case:E("case",k),_catch:E("catch"),_continue:E("continue"),_debugger:E("debugger"),_default:E("default",k),_do:E("do",{isLoop:!0,beforeExpr:!0}),_else:E("else",k),_finally:E("finally"),_for:E("for",{isLoop:!0}),_function:E("function",N),_if:E("if"),_return:E("return",k),_switch:E("switch"),_throw:E("throw",k),_try:E("try"),_var:E("var"),_const:E("const"),_while:E("while",{isLoop:!0}),_with:E("with"),_new:E("new",{beforeExpr:!0,startsExpr:!0}),_this:E("this",N),_super:E("super",N),_class:E("class",N),_extends:E("extends",k),_export:E("export"),_import:E("import",N),_null:E("null",N),_true:E("true",N),_false:E("false",N),_in:E("in",{beforeExpr:!0,binop:7}),_instanceof:E("instanceof",{beforeExpr:!0,binop:7}),_typeof:E("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:E("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:E("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},j=/\r\n?|\n|\u2028|\u2029/,lt=new RegExp(j.source,"g");function te(e){return e===10||e===13||e===8232||e===8233}function ft(e,t,i){i===void 0&&(i=e.length);for(var s=t;s>10)+55296,(e&1023)+56320))}var ki=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,ae=function(t,i){this.line=t,this.column=i};ae.prototype.offset=function(t){return new ae(this.line,this.column+t)};var de=function(t,i,s){this.start=i,this.end=s,t.sourceFile!==null&&(this.source=t.sourceFile)};function ze(e,t){for(var i=1,s=0;;){var n=ft(e,s,t);if(n<0)return new ae(i,t-s);++i,s=n}}var Ae={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},xt=!1;function Ti(e){var t={};for(var i in Ae)t[i]=e&&fe(e,i)?e[i]:Ae[i];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!xt&&typeof console=="object"&&console.warn&&(xt=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required. -Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),mt(t.onToken)){var s=t.onToken;t.onToken=function(n){return s.push(n)}}return mt(t.onComment)&&(t.onComment=Ei(t,t.onComment)),t}function Ei(e,t){return function(i,s,n,o,p,x){var g={type:i?"Block":"Line",value:s,start:n,end:o};e.locations&&(g.loc=new de(this,p,x)),e.ranges&&(g.range=[n,o]),t.push(g)}}var me=1,ne=2,We=4,yt=8,gt=16,vt=32,Xe=64,bt=128,xe=256,He=me|ne|xe;function Qe(e,t){return ne|(e?We:0)|(t?yt:0)}var Pe=0,Ye=1,Q=2,St=3,_t=4,Ct=5,V=function(t,i,s){this.options=t=Ti(t),this.sourceFile=t.sourceFile,this.keywords=$(_[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var n="";t.allowReserved!==!0&&(n=f[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(n+=" await")),this.reservedWords=$(n);var o=(n?n+" ":"")+f.strict;this.reservedWordsStrict=$(o),this.reservedWordsStrictBind=$(o+" "+f.strictBind),this.input=String(i),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf(` -`,s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(j).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=r.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(me),this.regexpState=null,this.privateNameStack=[]},z={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};V.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)},z.inFunction.get=function(){return(this.currentVarScope().flags&ne)>0},z.inGenerator.get=function(){return(this.currentVarScope().flags&yt)>0&&!this.currentVarScope().inClassFieldInit},z.inAsync.get=function(){return(this.currentVarScope().flags&We)>0&&!this.currentVarScope().inClassFieldInit},z.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&xe)return!1;if(t.flags&ne)return(t.flags&We)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},z.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&Xe)>0||i||this.options.allowSuperOutsideMethod},z.allowDirectSuper.get=function(){return(this.currentThisScope().flags&bt)>0},z.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},z.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&(ne|xe))>0||i},z.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&xe)>0},V.extend=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];for(var s=this,n=0;n=,?^&]/.test(n)||n==="!"&&this.input.charAt(s+1)==="=")}e+=t[0].length,U.lastIndex=e,e+=U.exec(this.input)[0].length,this.input[e]===";"&&e++}},O.eat=function(e){return this.type===e?(this.next(),!0):!1},O.isContextual=function(e){return this.type===r.name&&this.value===e&&!this.containsEsc},O.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},O.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},O.canInsertSemicolon=function(){return this.type===r.eof||this.type===r.braceR||j.test(this.input.slice(this.lastTokEnd,this.start))},O.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},O.semicolon=function(){!this.eat(r.semi)&&!this.insertSemicolon()&&this.unexpected()},O.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},O.expect=function(e){this.eat(e)||this.unexpected()},O.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var Ie=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};O.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var i=t?e.parenthesizedAssign:e.parenthesizedBind;i>-1&&this.raiseRecoverable(i,t?"Assigning to rvalue":"Parenthesized pattern")}},O.checkExpressionErrors=function(e,t){if(!e)return!1;var i=e.shorthandAssign,s=e.doubleProto;if(!t)return i>=0||s>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")},O.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&s<56320)return!0;if(F(s,!0)){for(var n=i+1;d(s=this.input.charCodeAt(n),!0);)++n;if(s===92||s>55295&&s<56320)return!0;var o=this.input.slice(i,n);if(!L.test(o))return!0}return!1},S.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;U.lastIndex=this.pos;var e=U.exec(this.input),t=this.pos+e[0].length,i;return!j.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(d(i=this.input.charCodeAt(t+8))||i>55295&&i<56320))},S.parseStatement=function(e,t,i){var s=this.type,n=this.startNode(),o;switch(this.isLet(e)&&(s=r._var,o="let"),s){case r._break:case r._continue:return this.parseBreakContinueStatement(n,s.keyword);case r._debugger:return this.parseDebuggerStatement(n);case r._do:return this.parseDoStatement(n);case r._for:return this.parseForStatement(n);case r._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(n,!1,!e);case r._class:return e&&this.unexpected(),this.parseClass(n,!0);case r._if:return this.parseIfStatement(n);case r._return:return this.parseReturnStatement(n);case r._switch:return this.parseSwitchStatement(n);case r._throw:return this.parseThrowStatement(n);case r._try:return this.parseTryStatement(n);case r._const:case r._var:return o=o||this.value,e&&o!=="var"&&this.unexpected(),this.parseVarStatement(n,o);case r._while:return this.parseWhileStatement(n);case r._with:return this.parseWithStatement(n);case r.braceL:return this.parseBlock(!0,n);case r.semi:return this.parseEmptyStatement(n);case r._export:case r._import:if(this.options.ecmaVersion>10&&s===r._import){U.lastIndex=this.pos;var p=U.exec(this.input),x=this.pos+p[0].length,g=this.input.charCodeAt(x);if(g===40||g===46)return this.parseExpressionStatement(n,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),s===r._import?this.parseImport(n):this.parseExport(n,i);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(n,!0,!e);var T=this.value,w=this.parseExpression();return s===r.name&&w.type==="Identifier"&&this.eat(r.colon)?this.parseLabeledStatement(n,T,w,e):this.parseExpressionStatement(n,w)}},S.parseBreakContinueStatement=function(e,t){var i=t==="break";this.next(),this.eat(r.semi)||this.insertSemicolon()?e.label=null:this.type!==r.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var s=0;s=6?this.eat(r.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},S.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push($e),this.enterScope(0),this.expect(r.parenL),this.type===r.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var i=this.isLet();if(this.type===r._var||this.type===r._const||i){var s=this.startNode(),n=i?"let":this.value;return this.next(),this.parseVar(s,!0,n),this.finishNode(s,"VariableDeclaration"),(this.type===r._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&s.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===r._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,s)):(t>-1&&this.unexpected(t),this.parseFor(e,s))}var o=this.isContextual("let"),p=!1,x=new Ie,g=this.parseExpression(t>-1?"await":!0,x);return this.type===r._in||(p=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===r._in?t>-1&&this.unexpected(t):e.await=t>-1),o&&p&&this.raise(g.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(g,!1,x),this.checkLValPattern(g),this.parseForIn(e,g)):(this.checkExpressionErrors(x,!0),t>-1&&this.unexpected(t),this.parseFor(e,g))},S.parseFunctionStatement=function(e,t,i){return this.next(),this.parseFunction(e,ye|(i?0:Ze),!1,t)},S.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(r._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},S.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(r.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},S.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(r.braceL),this.labels.push(Ai),this.enterScope(0);for(var t,i=!1;this.type!==r.braceR;)if(this.type===r._case||this.type===r._default){var s=this.type===r._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),s?t.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,t.test=null),this.expect(r.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},S.parseThrowStatement=function(e){return this.next(),j.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Pi=[];S.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?vt:0),this.checkLValPattern(e,t?_t:Q),this.expect(r.parenR),e},S.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===r._catch){var t=this.startNode();this.next(),this.eat(r.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(r._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},S.parseVarStatement=function(e,t,i){return this.next(),this.parseVar(e,!1,t,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")},S.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push($e),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},S.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},S.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},S.parseLabeledStatement=function(e,t,i,s){for(var n=0,o=this.labels;n=0;g--){var T=this.labels[g];if(T.statementStart===e.start)T.statementStart=this.start,T.kind=x;else break}return this.labels.push({name:t,kind:x,statementStart:this.start}),e.body=this.parseStatement(s?s.indexOf("label")===-1?s+"label":s:"label"),this.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")},S.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},S.parseBlock=function(e,t,i){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(r.braceL),e&&this.enterScope(0);this.type!==r.braceR;){var s=this.parseStatement(null);t.body.push(s)}return i&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},S.parseFor=function(e,t){return e.init=t,this.expect(r.semi),e.test=this.type===r.semi?null:this.parseExpression(),this.expect(r.semi),e.update=this.type===r.parenR?null:this.parseExpression(),this.expect(r.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},S.parseForIn=function(e,t){var i=this.type===r._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!i||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(r.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")},S.parseVar=function(e,t,i,s){for(e.declarations=[],e.kind=i;;){var n=this.startNode();if(this.parseVarId(n,i),this.eat(r.eq)?n.init=this.parseMaybeAssign(t):!s&&i==="const"&&!(this.type===r._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!s&&n.id.type!=="Identifier"&&!(t&&(this.type===r._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):n.init=null,e.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(r.comma))break}return e},S.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?Ye:Q,!1)};var ye=1,Ze=2,kt=4;S.parseFunction=function(e,t,i,s,n){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===r.star&&t&Ze&&this.unexpected(),e.generator=this.eat(r.star)),this.options.ecmaVersion>=8&&(e.async=!!s),t&ye&&(e.id=t&kt&&this.type!==r.name?null:this.parseIdent(),e.id&&!(t&Ze)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Ye:Q:St));var o=this.yieldPos,p=this.awaitPos,x=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Qe(e.async,e.generator)),t&ye||(e.id=this.type===r.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,i,!1,n),this.yieldPos=o,this.awaitPos=p,this.awaitIdentPos=x,this.finishNode(e,t&ye?"FunctionDeclaration":"FunctionExpression")},S.parseFunctionParams=function(e){this.expect(r.parenL),e.params=this.parseBindingList(r.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},S.parseClass=function(e,t){this.next();var i=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var s=this.enterClassBody(),n=this.startNode(),o=!1;for(n.body=[],this.expect(r.braceL);this.type!==r.braceR;){var p=this.parseClassElement(e.superClass!==null);p&&(n.body.push(p),p.type==="MethodDefinition"&&p.kind==="constructor"?(o&&this.raiseRecoverable(p.start,"Duplicate constructor in the same class"),o=!0):p.key&&p.key.type==="PrivateIdentifier"&&Ii(s,p)&&this.raiseRecoverable(p.key.start,"Identifier '#"+p.key.name+"' has already been declared"))}return this.strict=i,this.next(),e.body=this.finishNode(n,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},S.parseClassElement=function(e){if(this.eat(r.semi))return null;var t=this.options.ecmaVersion,i=this.startNode(),s="",n=!1,o=!1,p="method",x=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(r.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===r.star?x=!0:s="static"}if(i.static=x,!s&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===r.star)&&!this.canInsertSemicolon()?o=!0:s="async"),!s&&(t>=9||!o)&&this.eat(r.star)&&(n=!0),!s&&!o&&!n){var g=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?p=g:s=g)}if(s?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=s,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),t<13||this.type===r.parenL||p!=="method"||n||o){var T=!i.static&&Ne(i,"constructor"),w=T&&e;T&&p!=="method"&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=T?"constructor":p,this.parseClassMethod(i,n,o,w)}else this.parseClassField(i);return i},S.isClassElementNameStart=function(){return this.type===r.name||this.type===r.privateId||this.type===r.num||this.type===r.string||this.type===r.bracketL||this.type.keyword},S.parseClassElementName=function(e){this.type===r.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},S.parseClassMethod=function(e,t,i,s){var n=e.key;e.kind==="constructor"?(t&&this.raise(n.start,"Constructor can't be a generator"),i&&this.raise(n.start,"Constructor can't be an async method")):e.static&&Ne(e,"prototype")&&this.raise(n.start,"Classes may not have a static property named prototype");var o=e.value=this.parseMethod(t,i,s);return e.kind==="get"&&o.params.length!==0&&this.raiseRecoverable(o.start,"getter should have no params"),e.kind==="set"&&o.params.length!==1&&this.raiseRecoverable(o.start,"setter should have exactly one param"),e.kind==="set"&&o.params[0].type==="RestElement"&&this.raiseRecoverable(o.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},S.parseClassField=function(e){if(Ne(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Ne(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(r.eq)){var t=this.currentThisScope(),i=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=i}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},S.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(xe|Xe);this.type!==r.braceR;){var i=this.parseStatement(null);e.body.push(i)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},S.parseClassId=function(e,t){this.type===r.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,Q,!1)):(t===!0&&this.unexpected(),e.id=null)},S.parseClassSuper=function(e){e.superClass=this.eat(r._extends)?this.parseExprSubscripts(null,!1):null},S.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},S.exitClassBody=function(){for(var e=this.privateNameStack.pop(),t=e.declared,i=e.used,s=this.privateNameStack.length,n=s===0?null:this.privateNameStack[s-1],o=0;o=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==r.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},S.parseExport=function(e,t){if(this.next(),this.eat(r.star))return this.parseExportAllDeclaration(e,t);if(this.eat(r._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==r.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var i=0,s=e.specifiers;i=13&&this.type===r.string){var e=this.parseLiteral(this.value);return ki.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},S.adaptDirectivePrologue=function(e){for(var t=0;t=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var q=V.prototype;q.toAssignable=function(e,t,i){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var s=0,n=e.properties;s=8&&!x&&g.name==="async"&&!this.canInsertSemicolon()&&this.eat(r._function))return this.overrideContext(I.f_expr),this.parseFunction(this.startNodeAt(o,p),0,!1,!0,t);if(n&&!this.canInsertSemicolon()){if(this.eat(r.arrow))return this.parseArrowExpression(this.startNodeAt(o,p),[g],!1,t);if(this.options.ecmaVersion>=8&&g.name==="async"&&this.type===r.name&&!x&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return g=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(r.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(o,p),[g],!0,t)}return g;case r.regexp:var T=this.value;return s=this.parseLiteral(T.value),s.regex={pattern:T.pattern,flags:T.flags},s;case r.num:case r.string:return this.parseLiteral(this.value);case r._null:case r._true:case r._false:return s=this.startNode(),s.value=this.type===r._null?null:this.type===r._true,s.raw=this.type.keyword,this.next(),this.finishNode(s,"Literal");case r.parenL:var w=this.start,R=this.parseParenAndDistinguishExpression(n,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(R)&&(e.parenthesizedAssign=w),e.parenthesizedBind<0&&(e.parenthesizedBind=w)),R;case r.bracketL:return s=this.startNode(),this.next(),s.elements=this.parseExprList(r.bracketR,!0,!0,e),this.finishNode(s,"ArrayExpression");case r.braceL:return this.overrideContext(I.b_expr),this.parseObj(!1,e);case r._function:return s=this.startNode(),this.next(),this.parseFunction(s,0);case r._class:return this.parseClass(this.startNode(),!1);case r._new:return this.parseNew();case r.backQuote:return this.parseTemplate();case r._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}},C.parseExprAtomDefault=function(){this.unexpected()},C.parseExprImport=function(e){var t=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var i=this.parseIdent(!0);if(this.type===r.parenL&&!e)return this.parseDynamicImport(t);if(this.type===r.dot)return t.meta=i,this.parseImportMeta(t);this.unexpected()},C.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(r.parenR)){var t=this.start;this.eat(r.comma)&&this.eat(r.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},C.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},C.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},C.parseParenExpression=function(){this.expect(r.parenL);var e=this.parseExpression();return this.expect(r.parenR),e},C.shouldParseArrow=function(e){return!this.canInsertSemicolon()},C.parseParenAndDistinguishExpression=function(e,t){var i=this.start,s=this.startLoc,n,o=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var p=this.start,x=this.startLoc,g=[],T=!0,w=!1,R=new Ie,ie=this.yieldPos,be=this.awaitPos,ue;for(this.yieldPos=0,this.awaitPos=0;this.type!==r.parenR;)if(T?T=!1:this.expect(r.comma),o&&this.afterTrailingComma(r.parenR,!0)){w=!0;break}else if(this.type===r.ellipsis){ue=this.start,g.push(this.parseParenItem(this.parseRestBinding())),this.type===r.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else g.push(this.parseMaybeAssign(!1,R,this.parseParenItem));var Oe=this.lastTokEnd,he=this.lastTokEndLoc;if(this.expect(r.parenR),e&&this.shouldParseArrow(g)&&this.eat(r.arrow))return this.checkPatternErrors(R,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=ie,this.awaitPos=be,this.parseParenArrowList(i,s,g,t);(!g.length||w)&&this.unexpected(this.lastTokStart),ue&&this.unexpected(ue),this.checkExpressionErrors(R,!0),this.yieldPos=ie||this.yieldPos,this.awaitPos=be||this.awaitPos,g.length>1?(n=this.startNodeAt(p,x),n.expressions=g,this.finishNodeAt(n,"SequenceExpression",Oe,he)):n=g[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var pe=this.startNodeAt(i,s);return pe.expression=n,this.finishNode(pe,"ParenthesizedExpression")}else return n},C.parseParenItem=function(e){return e},C.parseParenArrowList=function(e,t,i,s){return this.parseArrowExpression(this.startNodeAt(e,t),i,!1,s)};var Ni=[];C.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(r.dot)){e.meta=t;var i=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var s=this.start,n=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),s,n,!0,!1),this.eat(r.parenL)?e.arguments=this.parseExprList(r.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Ni,this.finishNode(e,"NewExpression")},C.parseTemplateElement=function(e){var t=e.isTagged,i=this.startNode();return this.type===r.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value,cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,` -`),cooked:this.value},this.next(),i.tail=this.type===r.backQuote,this.finishNode(i,"TemplateElement")},C.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var i=this.startNode();this.next(),i.expressions=[];var s=this.parseTemplateElement({isTagged:t});for(i.quasis=[s];!s.tail;)this.type===r.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(r.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(r.braceR),i.quasis.push(s=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")},C.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===r.name||this.type===r.num||this.type===r.string||this.type===r.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===r.star)&&!j.test(this.input.slice(this.lastTokEnd,this.start))},C.parseObj=function(e,t){var i=this.startNode(),s=!0,n={};for(i.properties=[],this.next();!this.eat(r.braceR);){if(s)s=!1;else if(this.expect(r.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(r.braceR))break;var o=this.parseProperty(e,t);e||this.checkPropClash(o,n,t),i.properties.push(o)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")},C.parseProperty=function(e,t){var i=this.startNode(),s,n,o,p;if(this.options.ecmaVersion>=9&&this.eat(r.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===r.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(i.argument=this.parseMaybeAssign(!1,t),this.type===r.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(i,"SpreadElement"));this.options.ecmaVersion>=6&&(i.method=!1,i.shorthand=!1,(e||t)&&(o=this.start,p=this.startLoc),e||(s=this.eat(r.star)));var x=this.containsEsc;return this.parsePropertyName(i),!e&&!x&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(i)?(n=!0,s=this.options.ecmaVersion>=9&&this.eat(r.star),this.parsePropertyName(i)):n=!1,this.parsePropertyValue(i,e,s,n,o,p,t,x),this.finishNode(i,"Property")},C.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t=e.kind==="get"?0:1;if(e.value.params.length!==t){var i=e.value.start;e.kind==="get"?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},C.parsePropertyValue=function(e,t,i,s,n,o,p,x){(i||s)&&this.type===r.colon&&this.unexpected(),this.eat(r.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,p),e.kind="init"):this.options.ecmaVersion>=6&&this.type===r.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(i,s)):!t&&!x&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==r.comma&&this.type!==r.braceR&&this.type!==r.eq?((i||s)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((i||s)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=n),e.kind="init",t?e.value=this.parseMaybeDefault(n,o,this.copyNode(e.key)):this.type===r.eq&&p?(p.shorthandAssign<0&&(p.shorthandAssign=this.start),e.value=this.parseMaybeDefault(n,o,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()},C.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(r.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(r.bracketR),e.key;e.computed=!1}return e.key=this.type===r.num||this.type===r.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},C.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},C.parseMethod=function(e,t,i){var s=this.startNode(),n=this.yieldPos,o=this.awaitPos,p=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=e),this.options.ecmaVersion>=8&&(s.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Qe(t,s.generator)|Xe|(i?bt:0)),this.expect(r.parenL),s.params=this.parseBindingList(r.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=n,this.awaitPos=o,this.awaitIdentPos=p,this.finishNode(s,"FunctionExpression")},C.parseArrowExpression=function(e,t,i,s){var n=this.yieldPos,o=this.awaitPos,p=this.awaitIdentPos;return this.enterScope(Qe(i,!1)|gt),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,s),this.yieldPos=n,this.awaitPos=o,this.awaitIdentPos=p,this.finishNode(e,"ArrowFunctionExpression")},C.parseFunctionBody=function(e,t,i,s){var n=t&&this.type!==r.braceL,o=this.strict,p=!1;if(n)e.body=this.parseMaybeAssign(s),e.expression=!0,this.checkParams(e,!1);else{var x=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!o||x)&&(p=this.strictDirective(this.end),p&&x&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var g=this.labels;this.labels=[],p&&(this.strict=!0),this.checkParams(e,!o&&!p&&!t&&!i&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Ct),e.body=this.parseBlock(!1,void 0,p&&!o),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=g}this.exitScope()},C.isSimpleParamList=function(e){for(var t=0,i=e;t-1||n.functions.indexOf(e)>-1||n.var.indexOf(e)>-1,n.lexical.push(e),this.inModule&&n.flags&me&&delete this.undefinedExports[e]}else if(t===_t){var o=this.currentScope();o.lexical.push(e)}else if(t===St){var p=this.currentScope();this.treatFunctionsAsVar?s=p.lexical.indexOf(e)>-1:s=p.lexical.indexOf(e)>-1||p.var.indexOf(e)>-1,p.functions.push(e)}else for(var x=this.scopeStack.length-1;x>=0;--x){var g=this.scopeStack[x];if(g.lexical.indexOf(e)>-1&&!(g.flags&vt&&g.lexical[0]===e)||!this.treatFunctionsAsVarInScope(g)&&g.functions.indexOf(e)>-1){s=!0;break}if(g.var.push(e),this.inModule&&g.flags&me&&delete this.undefinedExports[e],g.flags&He)break}s&&this.raiseRecoverable(i,"Identifier '"+e+"' has already been declared")},ee.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},ee.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},ee.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&He)return t}},ee.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&He&&!(t.flags>))return t}};var ge=function(t,i,s){this.type="",this.start=i,this.end=0,t.options.locations&&(this.loc=new de(t,s)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[i,0])},ve=V.prototype;ve.startNode=function(){return new ge(this,this.start,this.startLoc)},ve.startNodeAt=function(e,t){return new ge(this,e,t)};function Et(e,t,i,s){return e.type=t,e.end=i,this.options.locations&&(e.loc.end=s),this.options.ranges&&(e.range[1]=i),e}ve.finishNode=function(e,t){return Et.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},ve.finishNodeAt=function(e,t,i,s){return Et.call(this,e,t,i,s)},ve.copyNode=function(e){var t=new ge(this,e.start,this.startLoc);for(var i in e)t[i]=e[i];return t};var wt="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",At=wt+" Extended_Pictographic",Pt=At,It=Pt+" EBase EComp EMod EPres ExtPict",Nt=It,Li=Nt,Ri={9:wt,10:At,11:Pt,12:It,13:Nt,14:Li},Oi="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Bi={9:"",10:"",11:"",12:"",13:"",14:Oi},Vt="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Lt="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Rt=Lt+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Ot=Rt+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Bt=Ot+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Dt=Bt+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Di=Dt+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",Fi={9:Lt,10:Rt,11:Ot,12:Bt,13:Dt,14:Di},Ft={};function ji(e){var t=Ft[e]={binary:$(Ri[e]+" "+Vt),binaryOfStrings:$(Bi[e]),nonBinary:{General_Category:$(Vt),Script:$(Fi[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var et=0,jt=[9,10,11,12,13,14];et=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Ft[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};W.prototype.reset=function(t,i,s){var n=s.indexOf("v")!==-1,o=s.indexOf("u")!==-1;this.start=t|0,this.source=i+"",this.flags=s,n&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=o&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=o&&this.parser.options.ecmaVersion>=9)},W.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},W.prototype.at=function(t,i){i===void 0&&(i=!1);var s=this.source,n=s.length;if(t>=n)return-1;var o=s.charCodeAt(t);if(!(i||this.switchU)||o<=55295||o>=57344||t+1>=n)return o;var p=s.charCodeAt(t+1);return p>=56320&&p<=57343?(o<<10)+p-56613888:o},W.prototype.nextIndex=function(t,i){i===void 0&&(i=!1);var s=this.source,n=s.length;if(t>=n)return n;var o=s.charCodeAt(t),p;return!(i||this.switchU)||o<=55295||o>=57344||t+1>=n||(p=s.charCodeAt(t+1))<56320||p>57343?t+1:t+2},W.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)},W.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)},W.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)},W.prototype.eat=function(t,i){return i===void 0&&(i=!1),this.current(i)===t?(this.advance(i),!0):!1},W.prototype.eatChars=function(t,i){i===void 0&&(i=!1);for(var s=this.pos,n=0,o=t;n-1&&this.raise(e.start,"Duplicate regular expression flag"),p==="u"&&(s=!0),p==="v"&&(n=!0)}this.options.ecmaVersion>=15&&s&&n&&this.raise(e.start,"Invalid regular expression flag")},v.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},v.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,i=e.backReferenceNames;t=9&&(i=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!i,!0}return e.pos=t,!1},v.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1},v.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},v.regexp_eatBracedQuantifier=function(e,t){var i=e.pos;if(e.eat(123)){var s=0,n=-1;if(this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue),e.eat(125)))return n!==-1&&n=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},v.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},v.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},v.regexp_eatSyntaxCharacter=function(e){var t=e.current();return Mt(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Mt(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}v.regexp_eatPatternCharacters=function(e){for(var t=e.pos,i=0;(i=e.current())!==-1&&!Mt(i);)e.advance();return e.pos!==t},v.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1},v.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise("Duplicate capture group name"),e.groupNames.push(e.lastStringValue);return}e.raise("Invalid group")}},v.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},v.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Z(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Z(e.lastIntValue);return!0}return!1},v.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,s=e.current(i);return e.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(s=e.lastIntValue),Ui(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)};function Ui(e){return F(e,!0)||e===36||e===95}v.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,s=e.current(i);return e.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(s=e.lastIntValue),qi(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)};function qi(e){return d(e,!0)||e===36||e===95||e===8204||e===8205}v.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},v.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var i=e.lastIntValue;if(e.switchU)return i>e.maxBackReference&&(e.maxBackReference=i),!0;if(i<=e.numCapturingParens)return!0;e.pos=t}return!1},v.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},v.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},v.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},v.regexp_eatZero=function(e){return e.current()===48&&!Le(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1},v.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1},v.regexp_eatControlLetter=function(e){var t=e.current();return Ut(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Ut(e){return e>=65&&e<=90||e>=97&&e<=122}v.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var i=e.pos,s=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var n=e.lastIntValue;if(s&&n>=55296&&n<=56319){var o=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var p=e.lastIntValue;if(p>=56320&&p<=57343)return e.lastIntValue=(n-55296)*1024+(p-56320)+65536,!0}e.pos=o,e.lastIntValue=n}return!0}if(s&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&Ki(e.lastIntValue))return!0;s&&e.raise("Invalid unicode escape"),e.pos=i}return!1};function Ki(e){return e>=0&&e<=1114111}v.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1},v.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var qt=0,Y=1,J=2;v.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(Ji(t))return e.lastIntValue=-1,e.advance(),Y;var i=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((i=t===80)||t===112)){e.lastIntValue=-1,e.advance();var s;if(e.eat(123)&&(s=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return i&&s===J&&e.raise("Invalid property name"),s;e.raise("Invalid property name")}return qt};function Ji(e){return e===100||e===68||e===115||e===83||e===119||e===87}v.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var i=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,i,s),Y}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,n)}return qt},v.regexp_validateUnicodePropertyNameAndValue=function(e,t,i){fe(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(i)||e.raise("Invalid property value")},v.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return Y;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return J;e.raise("Invalid property name")},v.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Kt(t=e.current());)e.lastStringValue+=Z(t),e.advance();return e.lastStringValue!==""};function Kt(e){return Ut(e)||e===95}v.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Gi(t=e.current());)e.lastStringValue+=Z(t),e.advance();return e.lastStringValue!==""};function Gi(e){return Kt(e)||Le(e)}v.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},v.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),i=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&i===J&&e.raise("Negated character class may contain strings"),!0}return!1},v.regexp_classContents=function(e){return e.current()===93?Y:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),Y)},v.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var i=e.lastIntValue;e.switchU&&(t===-1||i===-1)&&e.raise("Invalid character class"),t!==-1&&i!==-1&&t>i&&e.raise("Range out of order in character class")}}},v.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var i=e.current();(i===99||zt(i))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var s=e.current();return s!==93?(e.lastIntValue=s,e.advance(),!0):!1},v.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},v.regexp_classSetExpression=function(e){var t=Y,i;if(!this.regexp_eatClassSetRange(e))if(i=this.regexp_eatClassSetOperand(e)){i===J&&(t=J);for(var s=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(i=this.regexp_eatClassSetOperand(e))){i!==J&&(t=Y);continue}e.raise("Invalid character in character class")}if(s!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(s!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(i=this.regexp_eatClassSetOperand(e),!i)return t;i===J&&(t=J)}},v.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var s=e.lastIntValue;return i!==-1&&s!==-1&&i>s&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},v.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?Y:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},v.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var i=e.eat(94),s=this.regexp_classContents(e);if(e.eat(93))return i&&s===J&&e.raise("Negated character class may contain strings"),s;e.pos=t}if(e.eat(92)){var n=this.regexp_eatCharacterClassEscape(e);if(n)return n;e.pos=t}return null},v.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var i=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return i}else e.raise("Invalid escape");e.pos=t}return null},v.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===J&&(t=J);return t},v.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?Y:J},v.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var i=e.current();return i<0||i===e.lookahead()&&zi(i)||Wi(i)?!1:(e.advance(),e.lastIntValue=i,!0)};function zi(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function Wi(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}v.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return Xi(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Xi(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}v.regexp_eatClassControlLetter=function(e){var t=e.current();return Le(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1},v.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},v.regexp_eatDecimalDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;Le(i=e.current());)e.lastIntValue=10*e.lastIntValue+(i-48),e.advance();return e.pos!==t};function Le(e){return e>=48&&e<=57}v.regexp_eatHexDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;Jt(i=e.current());)e.lastIntValue=16*e.lastIntValue+Gt(i),e.advance();return e.pos!==t};function Jt(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Gt(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}v.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var i=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+i*8+e.lastIntValue:e.lastIntValue=t*8+i}else e.lastIntValue=t;return!0}return!1},v.regexp_eatOctalDigit=function(e){var t=e.current();return zt(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function zt(e){return e>=48&&e<=55}v.regexp_eatFixedHexDigits=function(e,t){var i=e.pos;e.lastIntValue=0;for(var s=0;s=this.input.length)return this.finishToken(r.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())},A.readToken=function(e){return F(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},A.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},A.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(i===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var s=void 0,n=t;(s=ft(this.input,n,this.pos))>-1;)++this.curLine,n=this.lineStart=s;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,i),t,this.pos,e,this.curPosition())},A.skipLineComment=function(e){for(var t=this.pos,i=this.options.onComment&&this.curPosition(),s=this.input.charCodeAt(this.pos+=e);this.pos8&&e<14||e>=5760&&Ge.test(String.fromCharCode(e)))++this.pos;else break e}}},A.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=e,this.value=t,this.updateContext(i)},A.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(r.ellipsis)):(++this.pos,this.finishToken(r.dot))},A.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(r.assign,2):this.finishOp(r.slash,1)},A.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),i=1,s=e===42?r.star:r.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++i,s=r.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(r.assign,i+1):this.finishOp(s,i)},A.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(r.assign,3)}return this.finishOp(e===124?r.logicalOR:r.logicalAND,2)}return t===61?this.finishOp(r.assign,2):this.finishOp(e===124?r.bitwiseOR:r.bitwiseAND,1)},A.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(r.assign,2):this.finishOp(r.bitwiseXOR,1)},A.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||j.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(r.incDec,2):t===61?this.finishOp(r.assign,2):this.finishOp(r.plusMin,1)},A.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),i=1;return t===e?(i=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+i)===61?this.finishOp(r.assign,i+1):this.finishOp(r.bitShift,i)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(i=2),this.finishOp(r.relational,i))},A.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(r.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(r.arrow)):this.finishOp(e===61?r.eq:r.prefix,1)},A.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(r.questionDot,2)}if(t===63){if(e>=12){var s=this.input.charCodeAt(this.pos+2);if(s===61)return this.finishOp(r.assign,3)}return this.finishOp(r.coalesce,2)}}return this.finishOp(r.question,1)},A.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),F(t,!0)||t===92))return this.finishToken(r.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Z(t)+"'")},A.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(r.parenL);case 41:return++this.pos,this.finishToken(r.parenR);case 59:return++this.pos,this.finishToken(r.semi);case 44:return++this.pos,this.finishToken(r.comma);case 91:return++this.pos,this.finishToken(r.bracketL);case 93:return++this.pos,this.finishToken(r.bracketR);case 123:return++this.pos,this.finishToken(r.braceL);case 125:return++this.pos,this.finishToken(r.braceR);case 58:return++this.pos,this.finishToken(r.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(r.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(r.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Z(e)+"'")},A.finishOp=function(e,t){var i=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,i)},A.readRegexp=function(){for(var e,t,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(j.test(s)&&this.raise(i,"Unterminated regular expression"),e)e=!1;else{if(s==="[")t=!0;else if(s==="]"&&t)t=!1;else if(s==="/"&&!t)break;e=s==="\\"}++this.pos}var n=this.input.slice(i,this.pos);++this.pos;var o=this.pos,p=this.readWord1();this.containsEsc&&this.unexpected(o);var x=this.regexpState||(this.regexpState=new W(this));x.reset(i,n,p),this.validateRegExpFlags(x),this.validateRegExpPattern(x);var g=null;try{g=new RegExp(n,p)}catch{}return this.finishToken(r.regexp,{pattern:n,flags:p,value:g})},A.readInt=function(e,t,i){for(var s=this.options.ecmaVersion>=12&&t===void 0,n=i&&this.input.charCodeAt(this.pos)===48,o=this.pos,p=0,x=0,g=0,T=t??1/0;g=97?R=w-97+10:w>=65?R=w-65+10:w>=48&&w<=57?R=w-48:R=1/0,R>=e)break;x=w,p=p*e+R}return s&&x===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===o||t!=null&&this.pos-o!==t?null:p};function Hi(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function Wt(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}A.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var i=this.readInt(e);return i==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(i=Wt(this.input.slice(t,this.pos)),++this.pos):F(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(r.num,i)},A.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var i=this.pos-t>=2&&this.input.charCodeAt(t)===48;i&&this.strict&&this.raise(t,"Invalid number");var s=this.input.charCodeAt(this.pos);if(!i&&!e&&this.options.ecmaVersion>=11&&s===110){var n=Wt(this.input.slice(t,this.pos));return++this.pos,F(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(r.num,n)}i&&/[89]/.test(this.input.slice(t,this.pos))&&(i=!1),s===46&&!i&&(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),(s===69||s===101)&&!i&&(s=this.input.charCodeAt(++this.pos),(s===43||s===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),F(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var o=Hi(this.input.slice(t,this.pos),i);return this.finishToken(r.num,o)},A.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var i=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(i,"Code point out of bounds")}else t=this.readHexChar(4);return t},A.readString=function(e){for(var t="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===e)break;s===92?(t+=this.input.slice(i,this.pos),t+=this.readEscapedChar(!1),i=this.pos):s===8232||s===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(te(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(i,this.pos++),this.finishToken(r.string,t)};var Xt={};A.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Xt)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},A.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Xt;this.raise(e,t)},A.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(i===96||i===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===r.template||this.type===r.invalidTemplate)?i===36?(this.pos+=2,this.finishToken(r.dollarBraceL)):(++this.pos,this.finishToken(r.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(r.template,e));if(i===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(te(i)){switch(e+=this.input.slice(t,this.pos),++this.pos,i){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=` +(function(n){function e(){var i=n();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.acorn=e()}})(function(){"use strict";var $i=Object.create;var Re=Object.defineProperty;var Zi=Object.getOwnPropertyDescriptor;var es=Object.getOwnPropertyNames;var ts=Object.getPrototypeOf,is=Object.prototype.hasOwnProperty;var be=(a,u)=>()=>(u||a((u={exports:{}}).exports,u),u.exports),ss=(a,u)=>{for(var c in u)Re(a,c,{get:u[c],enumerable:!0})},Ht=(a,u,c,h)=>{if(u&&typeof u=="object"||typeof u=="function")for(let l of es(u))!is.call(a,l)&&l!==c&&Re(a,l,{get:()=>u[l],enumerable:!(h=Zi(u,l))||h.enumerable});return a};var rs=(a,u,c)=>(c=a!=null?$i(ts(a)):{},Ht(u||!a||!a.__esModule?Re(c,"default",{value:a,enumerable:!0}):c,a)),as=a=>Ht(Re({},"__esModule",{value:!0}),a);var ii=be(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.extract=fs;se.parse=ms;se.parseWithComments=ti;se.print=xs;se.strip=ds;var us=/\*\/$/,hs=/^\/\*\*?/,Zt=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,ps=/(^|\s+)\/\/([^\r\n]*)/g,Qt=/^(\r?\n)+/,cs=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,Yt=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,ls=/(\r?\n|^) *\* ?/g,ei=[];function fs(a){let u=a.match(Zt);return u?u[0].trimLeft():""}function ds(a){let u=a.match(Zt);return u&&u[0]?a.substring(u[0].length):a}function ms(a){return ti(a).pragmas}function ti(a){let u=` +`;a=a.replace(hs,"").replace(us,"").replace(ls,"$1");let c="";for(;c!==a;)c=a,a=a.replace(cs,`${u}$1 $2${u}`);a=a.replace(Qt,"").trimRight();let h=Object.create(null),l=a.replace(Yt,"").replace(Qt,"").trimRight(),f;for(;f=Yt.exec(a);){let y=f[2].replace(ps,"");typeof h[f[1]]=="string"||Array.isArray(h[f[1]])?h[f[1]]=ei.concat(h[f[1]],y):h[f[1]]=y}return{comments:l,pragmas:h}}function xs({comments:a="",pragmas:u={}}){let c=` +`,h="/**",l=" *",f=" */",y=Object.keys(u),_=y.map(P=>$t(P,u[P])).reduce((P,D)=>P.concat(D),[]).map(P=>`${l} ${P}${c}`).join("");if(!a){if(y.length===0)return"";if(y.length===1&&!Array.isArray(u[y[0]])){let P=u[y[0]];return`${h} ${$t(y[0],P)[0]}${f}`}}let L=a.split(c).map(P=>`${l} ${P}`).join(c)+c;return h+c+(a?L:"")+(a&&y.length?l+c:"")+_+f}function $t(a,u){return ei.concat(u).map(c=>`@${a} ${c}`.trim())}});var ke=be((qe,ci)=>{(function(a,u){typeof qe=="object"&&typeof ci<"u"?u(qe):typeof define=="function"&&define.amd?define(["exports"],u):(a=typeof globalThis<"u"?globalThis:a||self,u(a.acorn={}))})(qe,function(a){"use strict";var u=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],c=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],h="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F",l="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",f={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",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},y="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",_={5:y,"5module":y+" export import",6:y+" const class extends export import super"},L=/^in(stanceof)?$/,P=new RegExp("["+l+"]"),D=new RegExp("["+l+h+"]");function G(e,t){for(var i=65536,s=0;se)return!1;if(i+=t[s+1],i>=e)return!0}return!1}function F(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&P.test(String.fromCharCode(e)):t===!1?!1:G(e,c)}function d(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&D.test(String.fromCharCode(e)):t===!1?!1:G(e,c)||G(e,u)}var x=function(t,i){i===void 0&&(i={}),this.label=t,this.keyword=i.keyword,this.beforeExpr=!!i.beforeExpr,this.startsExpr=!!i.startsExpr,this.isLoop=!!i.isLoop,this.isAssign=!!i.isAssign,this.prefix=!!i.prefix,this.postfix=!!i.postfix,this.binop=i.binop||null,this.updateContext=null};function b(e,t){return new x(e,{beforeExpr:!0,binop:t})}var k={beforeExpr:!0},N={startsExpr:!0},H={};function w(e,t){return t===void 0&&(t={}),t.keyword=e,H[e]=new x(e,t)}var r={num:new x("num",N),regexp:new x("regexp",N),string:new x("string",N),name:new x("name",N),privateId:new x("privateId",N),eof:new x("eof"),bracketL:new x("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new x("]"),braceL:new x("{",{beforeExpr:!0,startsExpr:!0}),braceR:new x("}"),parenL:new x("(",{beforeExpr:!0,startsExpr:!0}),parenR:new x(")"),comma:new x(",",k),semi:new x(";",k),colon:new x(":",k),dot:new x("."),question:new x("?",k),questionDot:new x("?."),arrow:new x("=>",k),template:new x("template"),invalidTemplate:new x("invalidTemplate"),ellipsis:new x("...",k),backQuote:new x("`",N),dollarBraceL:new x("${",{beforeExpr:!0,startsExpr:!0}),eq:new x("=",{beforeExpr:!0,isAssign:!0}),assign:new x("_=",{beforeExpr:!0,isAssign:!0}),incDec:new x("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new x("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:b("||",1),logicalAND:b("&&",2),bitwiseOR:b("|",3),bitwiseXOR:b("^",4),bitwiseAND:b("&",5),equality:b("==/!=/===/!==",6),relational:b("/<=/>=",7),bitShift:b("<>/>>>",8),plusMin:new x("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:b("%",10),star:b("*",10),slash:b("/",10),starstar:new x("**",{beforeExpr:!0}),coalesce:b("??",1),_break:w("break"),_case:w("case",k),_catch:w("catch"),_continue:w("continue"),_debugger:w("debugger"),_default:w("default",k),_do:w("do",{isLoop:!0,beforeExpr:!0}),_else:w("else",k),_finally:w("finally"),_for:w("for",{isLoop:!0}),_function:w("function",N),_if:w("if"),_return:w("return",k),_switch:w("switch"),_throw:w("throw",k),_try:w("try"),_var:w("var"),_const:w("const"),_while:w("while",{isLoop:!0}),_with:w("with"),_new:w("new",{beforeExpr:!0,startsExpr:!0}),_this:w("this",N),_super:w("super",N),_class:w("class",N),_extends:w("extends",k),_export:w("export"),_import:w("import",N),_null:w("null",N),_true:w("true",N),_false:w("false",N),_in:w("in",{beforeExpr:!0,binop:7}),_instanceof:w("instanceof",{beforeExpr:!0,binop:7}),_typeof:w("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:w("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:w("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},j=/\r\n?|\n|\u2028|\u2029/,ct=new RegExp(j.source,"g");function te(e){return e===10||e===13||e===8232||e===8233}function lt(e,t,i){i===void 0&&(i=e.length);for(var s=t;s>10)+55296,(e&1023)+56320))}var Ci=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,ae=function(t,i){this.line=t,this.column=i};ae.prototype.offset=function(t){return new ae(this.line,this.column+t)};var fe=function(t,i,s){this.start=i,this.end=s,t.sourceFile!==null&&(this.source=t.sourceFile)};function Ge(e,t){for(var i=1,s=0;;){var n=lt(e,s,t);if(n<0)return new ae(i,t-s);++i,s=n}}var we={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},mt=!1;function ki(e){var t={};for(var i in we)t[i]=e&&le(e,i)?e[i]:we[i];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!mt&&typeof console=="object"&&console.warn&&(mt=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required. +Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),dt(t.onToken)){var s=t.onToken;t.onToken=function(n){return s.push(n)}}return dt(t.onComment)&&(t.onComment=Ti(t,t.onComment)),t}function Ti(e,t){return function(i,s,n,o,p,m){var g={type:i?"Block":"Line",value:s,start:n,end:o};e.locations&&(g.loc=new fe(this,p,m)),e.ranges&&(g.range=[n,o]),t.push(g)}}var de=1,ne=2,We=4,xt=8,yt=16,gt=32,Xe=64,vt=128,me=256,ze=de|ne|me;function He(e,t){return ne|(e?We:0)|(t?xt:0)}var Ee=0,Qe=1,Q=2,bt=3,St=4,_t=5,V=function(t,i,s){this.options=t=ki(t),this.sourceFile=t.sourceFile,this.keywords=$(_[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var n="";t.allowReserved!==!0&&(n=f[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(n+=" await")),this.reservedWords=$(n);var o=(n?n+" ":"")+f.strict;this.reservedWordsStrict=$(o),this.reservedWordsStrictBind=$(o+" "+f.strictBind),this.input=String(i),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf(` +`,s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(j).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=r.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(de),this.regexpState=null,this.privateNameStack=[]},W={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};V.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)},W.inFunction.get=function(){return(this.currentVarScope().flags&ne)>0},W.inGenerator.get=function(){return(this.currentVarScope().flags&xt)>0&&!this.currentVarScope().inClassFieldInit},W.inAsync.get=function(){return(this.currentVarScope().flags&We)>0&&!this.currentVarScope().inClassFieldInit},W.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&me)return!1;if(t.flags&ne)return(t.flags&We)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},W.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&Xe)>0||i||this.options.allowSuperOutsideMethod},W.allowDirectSuper.get=function(){return(this.currentThisScope().flags&vt)>0},W.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},W.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&(ne|me))>0||i},W.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&me)>0},V.extend=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];for(var s=this,n=0;n=,?^&]/.test(n)||n==="!"&&this.input.charAt(s+1)==="=")}e+=t[0].length,U.lastIndex=e,e+=U.exec(this.input)[0].length,this.input[e]===";"&&e++}},O.eat=function(e){return this.type===e?(this.next(),!0):!1},O.isContextual=function(e){return this.type===r.name&&this.value===e&&!this.containsEsc},O.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},O.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},O.canInsertSemicolon=function(){return this.type===r.eof||this.type===r.braceR||j.test(this.input.slice(this.lastTokEnd,this.start))},O.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},O.semicolon=function(){!this.eat(r.semi)&&!this.insertSemicolon()&&this.unexpected()},O.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},O.expect=function(e){this.eat(e)||this.unexpected()},O.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var Ae=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};O.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var i=t?e.parenthesizedAssign:e.parenthesizedBind;i>-1&&this.raiseRecoverable(i,t?"Assigning to rvalue":"Parenthesized pattern")}},O.checkExpressionErrors=function(e,t){if(!e)return!1;var i=e.shorthandAssign,s=e.doubleProto;if(!t)return i>=0||s>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")},O.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&s<56320)return!0;if(F(s,!0)){for(var n=i+1;d(s=this.input.charCodeAt(n),!0);)++n;if(s===92||s>55295&&s<56320)return!0;var o=this.input.slice(i,n);if(!L.test(o))return!0}return!1},S.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;U.lastIndex=this.pos;var e=U.exec(this.input),t=this.pos+e[0].length,i;return!j.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(d(i=this.input.charCodeAt(t+8))||i>55295&&i<56320))},S.parseStatement=function(e,t,i){var s=this.type,n=this.startNode(),o;switch(this.isLet(e)&&(s=r._var,o="let"),s){case r._break:case r._continue:return this.parseBreakContinueStatement(n,s.keyword);case r._debugger:return this.parseDebuggerStatement(n);case r._do:return this.parseDoStatement(n);case r._for:return this.parseForStatement(n);case r._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(n,!1,!e);case r._class:return e&&this.unexpected(),this.parseClass(n,!0);case r._if:return this.parseIfStatement(n);case r._return:return this.parseReturnStatement(n);case r._switch:return this.parseSwitchStatement(n);case r._throw:return this.parseThrowStatement(n);case r._try:return this.parseTryStatement(n);case r._const:case r._var:return o=o||this.value,e&&o!=="var"&&this.unexpected(),this.parseVarStatement(n,o);case r._while:return this.parseWhileStatement(n);case r._with:return this.parseWithStatement(n);case r.braceL:return this.parseBlock(!0,n);case r.semi:return this.parseEmptyStatement(n);case r._export:case r._import:if(this.options.ecmaVersion>10&&s===r._import){U.lastIndex=this.pos;var p=U.exec(this.input),m=this.pos+p[0].length,g=this.input.charCodeAt(m);if(g===40||g===46)return this.parseExpressionStatement(n,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),s===r._import?this.parseImport(n):this.parseExport(n,i);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(n,!0,!e);var T=this.value,E=this.parseExpression();return s===r.name&&E.type==="Identifier"&&this.eat(r.colon)?this.parseLabeledStatement(n,T,E,e):this.parseExpressionStatement(n,E)}},S.parseBreakContinueStatement=function(e,t){var i=t==="break";this.next(),this.eat(r.semi)||this.insertSemicolon()?e.label=null:this.type!==r.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var s=0;s=6?this.eat(r.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},S.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Ye),this.enterScope(0),this.expect(r.parenL),this.type===r.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var i=this.isLet();if(this.type===r._var||this.type===r._const||i){var s=this.startNode(),n=i?"let":this.value;return this.next(),this.parseVar(s,!0,n),this.finishNode(s,"VariableDeclaration"),(this.type===r._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&s.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===r._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,s)):(t>-1&&this.unexpected(t),this.parseFor(e,s))}var o=this.isContextual("let"),p=!1,m=new Ae,g=this.parseExpression(t>-1?"await":!0,m);return this.type===r._in||(p=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===r._in?t>-1&&this.unexpected(t):e.await=t>-1),o&&p&&this.raise(g.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(g,!1,m),this.checkLValPattern(g),this.parseForIn(e,g)):(this.checkExpressionErrors(m,!0),t>-1&&this.unexpected(t),this.parseFor(e,g))},S.parseFunctionStatement=function(e,t,i){return this.next(),this.parseFunction(e,xe|(i?0:$e),!1,t)},S.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(r._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},S.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(r.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},S.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(r.braceL),this.labels.push(Ei),this.enterScope(0);for(var t,i=!1;this.type!==r.braceR;)if(this.type===r._case||this.type===r._default){var s=this.type===r._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),s?t.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,t.test=null),this.expect(r.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},S.parseThrowStatement=function(e){return this.next(),j.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Ai=[];S.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?gt:0),this.checkLValPattern(e,t?St:Q),this.expect(r.parenR),e},S.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===r._catch){var t=this.startNode();this.next(),this.eat(r.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(r._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},S.parseVarStatement=function(e,t,i){return this.next(),this.parseVar(e,!1,t,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")},S.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Ye),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},S.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},S.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},S.parseLabeledStatement=function(e,t,i,s){for(var n=0,o=this.labels;n=0;g--){var T=this.labels[g];if(T.statementStart===e.start)T.statementStart=this.start,T.kind=m;else break}return this.labels.push({name:t,kind:m,statementStart:this.start}),e.body=this.parseStatement(s?s.indexOf("label")===-1?s+"label":s:"label"),this.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")},S.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},S.parseBlock=function(e,t,i){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(r.braceL),e&&this.enterScope(0);this.type!==r.braceR;){var s=this.parseStatement(null);t.body.push(s)}return i&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},S.parseFor=function(e,t){return e.init=t,this.expect(r.semi),e.test=this.type===r.semi?null:this.parseExpression(),this.expect(r.semi),e.update=this.type===r.parenR?null:this.parseExpression(),this.expect(r.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},S.parseForIn=function(e,t){var i=this.type===r._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!i||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(r.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")},S.parseVar=function(e,t,i,s){for(e.declarations=[],e.kind=i;;){var n=this.startNode();if(this.parseVarId(n,i),this.eat(r.eq)?n.init=this.parseMaybeAssign(t):!s&&i==="const"&&!(this.type===r._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!s&&n.id.type!=="Identifier"&&!(t&&(this.type===r._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):n.init=null,e.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(r.comma))break}return e},S.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?Qe:Q,!1)};var xe=1,$e=2,Ct=4;S.parseFunction=function(e,t,i,s,n){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===r.star&&t&$e&&this.unexpected(),e.generator=this.eat(r.star)),this.options.ecmaVersion>=8&&(e.async=!!s),t&xe&&(e.id=t&Ct&&this.type!==r.name?null:this.parseIdent(),e.id&&!(t&$e)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Qe:Q:bt));var o=this.yieldPos,p=this.awaitPos,m=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(He(e.async,e.generator)),t&xe||(e.id=this.type===r.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,i,!1,n),this.yieldPos=o,this.awaitPos=p,this.awaitIdentPos=m,this.finishNode(e,t&xe?"FunctionDeclaration":"FunctionExpression")},S.parseFunctionParams=function(e){this.expect(r.parenL),e.params=this.parseBindingList(r.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},S.parseClass=function(e,t){this.next();var i=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var s=this.enterClassBody(),n=this.startNode(),o=!1;for(n.body=[],this.expect(r.braceL);this.type!==r.braceR;){var p=this.parseClassElement(e.superClass!==null);p&&(n.body.push(p),p.type==="MethodDefinition"&&p.kind==="constructor"?(o&&this.raiseRecoverable(p.start,"Duplicate constructor in the same class"),o=!0):p.key&&p.key.type==="PrivateIdentifier"&&Pi(s,p)&&this.raiseRecoverable(p.key.start,"Identifier '#"+p.key.name+"' has already been declared"))}return this.strict=i,this.next(),e.body=this.finishNode(n,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},S.parseClassElement=function(e){if(this.eat(r.semi))return null;var t=this.options.ecmaVersion,i=this.startNode(),s="",n=!1,o=!1,p="method",m=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(r.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===r.star?m=!0:s="static"}if(i.static=m,!s&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===r.star)&&!this.canInsertSemicolon()?o=!0:s="async"),!s&&(t>=9||!o)&&this.eat(r.star)&&(n=!0),!s&&!o&&!n){var g=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?p=g:s=g)}if(s?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=s,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),t<13||this.type===r.parenL||p!=="method"||n||o){var T=!i.static&&Pe(i,"constructor"),E=T&&e;T&&p!=="method"&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=T?"constructor":p,this.parseClassMethod(i,n,o,E)}else this.parseClassField(i);return i},S.isClassElementNameStart=function(){return this.type===r.name||this.type===r.privateId||this.type===r.num||this.type===r.string||this.type===r.bracketL||this.type.keyword},S.parseClassElementName=function(e){this.type===r.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},S.parseClassMethod=function(e,t,i,s){var n=e.key;e.kind==="constructor"?(t&&this.raise(n.start,"Constructor can't be a generator"),i&&this.raise(n.start,"Constructor can't be an async method")):e.static&&Pe(e,"prototype")&&this.raise(n.start,"Classes may not have a static property named prototype");var o=e.value=this.parseMethod(t,i,s);return e.kind==="get"&&o.params.length!==0&&this.raiseRecoverable(o.start,"getter should have no params"),e.kind==="set"&&o.params.length!==1&&this.raiseRecoverable(o.start,"setter should have exactly one param"),e.kind==="set"&&o.params[0].type==="RestElement"&&this.raiseRecoverable(o.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},S.parseClassField=function(e){if(Pe(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Pe(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(r.eq)){var t=this.currentThisScope(),i=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=i}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},S.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(me|Xe);this.type!==r.braceR;){var i=this.parseStatement(null);e.body.push(i)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},S.parseClassId=function(e,t){this.type===r.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,Q,!1)):(t===!0&&this.unexpected(),e.id=null)},S.parseClassSuper=function(e){e.superClass=this.eat(r._extends)?this.parseExprSubscripts(null,!1):null},S.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},S.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,i=e.used;if(this.options.checkPrivateFields)for(var s=this.privateNameStack.length,n=s===0?null:this.privateNameStack[s-1],o=0;o=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==r.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},S.parseExport=function(e,t){if(this.next(),this.eat(r.star))return this.parseExportAllDeclaration(e,t);if(this.eat(r._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==r.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var i=0,s=e.specifiers;i=13&&this.type===r.string){var e=this.parseLiteral(this.value);return Ci.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},S.adaptDirectivePrologue=function(e){for(var t=0;t=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var q=V.prototype;q.toAssignable=function(e,t,i){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var s=0,n=e.properties;s=8&&!m&&g.name==="async"&&!this.canInsertSemicolon()&&this.eat(r._function))return this.overrideContext(I.f_expr),this.parseFunction(this.startNodeAt(o,p),0,!1,!0,t);if(n&&!this.canInsertSemicolon()){if(this.eat(r.arrow))return this.parseArrowExpression(this.startNodeAt(o,p),[g],!1,t);if(this.options.ecmaVersion>=8&&g.name==="async"&&this.type===r.name&&!m&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return g=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(r.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(o,p),[g],!0,t)}return g;case r.regexp:var T=this.value;return s=this.parseLiteral(T.value),s.regex={pattern:T.pattern,flags:T.flags},s;case r.num:case r.string:return this.parseLiteral(this.value);case r._null:case r._true:case r._false:return s=this.startNode(),s.value=this.type===r._null?null:this.type===r._true,s.raw=this.type.keyword,this.next(),this.finishNode(s,"Literal");case r.parenL:var E=this.start,R=this.parseParenAndDistinguishExpression(n,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(R)&&(e.parenthesizedAssign=E),e.parenthesizedBind<0&&(e.parenthesizedBind=E)),R;case r.bracketL:return s=this.startNode(),this.next(),s.elements=this.parseExprList(r.bracketR,!0,!0,e),this.finishNode(s,"ArrayExpression");case r.braceL:return this.overrideContext(I.b_expr),this.parseObj(!1,e);case r._function:return s=this.startNode(),this.next(),this.parseFunction(s,0);case r._class:return this.parseClass(this.startNode(),!1);case r._new:return this.parseNew();case r.backQuote:return this.parseTemplate();case r._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}},C.parseExprAtomDefault=function(){this.unexpected()},C.parseExprImport=function(e){var t=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var i=this.parseIdent(!0);if(this.type===r.parenL&&!e)return this.parseDynamicImport(t);if(this.type===r.dot)return t.meta=i,this.parseImportMeta(t);this.unexpected()},C.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(r.parenR)){var t=this.start;this.eat(r.comma)&&this.eat(r.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},C.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},C.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},C.parseParenExpression=function(){this.expect(r.parenL);var e=this.parseExpression();return this.expect(r.parenR),e},C.shouldParseArrow=function(e){return!this.canInsertSemicolon()},C.parseParenAndDistinguishExpression=function(e,t){var i=this.start,s=this.startLoc,n,o=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var p=this.start,m=this.startLoc,g=[],T=!0,E=!1,R=new Ae,ie=this.yieldPos,ve=this.awaitPos,ue;for(this.yieldPos=0,this.awaitPos=0;this.type!==r.parenR;)if(T?T=!1:this.expect(r.comma),o&&this.afterTrailingComma(r.parenR,!0)){E=!0;break}else if(this.type===r.ellipsis){ue=this.start,g.push(this.parseParenItem(this.parseRestBinding())),this.type===r.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else g.push(this.parseMaybeAssign(!1,R,this.parseParenItem));var Le=this.lastTokEnd,he=this.lastTokEndLoc;if(this.expect(r.parenR),e&&this.shouldParseArrow(g)&&this.eat(r.arrow))return this.checkPatternErrors(R,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=ie,this.awaitPos=ve,this.parseParenArrowList(i,s,g,t);(!g.length||E)&&this.unexpected(this.lastTokStart),ue&&this.unexpected(ue),this.checkExpressionErrors(R,!0),this.yieldPos=ie||this.yieldPos,this.awaitPos=ve||this.awaitPos,g.length>1?(n=this.startNodeAt(p,m),n.expressions=g,this.finishNodeAt(n,"SequenceExpression",Le,he)):n=g[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var pe=this.startNodeAt(i,s);return pe.expression=n,this.finishNode(pe,"ParenthesizedExpression")}else return n},C.parseParenItem=function(e){return e},C.parseParenArrowList=function(e,t,i,s){return this.parseArrowExpression(this.startNodeAt(e,t),i,!1,s)};var Ii=[];C.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(r.dot)){e.meta=t;var i=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var s=this.start,n=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),s,n,!0,!1),this.eat(r.parenL)?e.arguments=this.parseExprList(r.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Ii,this.finishNode(e,"NewExpression")},C.parseTemplateElement=function(e){var t=e.isTagged,i=this.startNode();return this.type===r.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value,cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,` +`),cooked:this.value},this.next(),i.tail=this.type===r.backQuote,this.finishNode(i,"TemplateElement")},C.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var i=this.startNode();this.next(),i.expressions=[];var s=this.parseTemplateElement({isTagged:t});for(i.quasis=[s];!s.tail;)this.type===r.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(r.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(r.braceR),i.quasis.push(s=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")},C.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===r.name||this.type===r.num||this.type===r.string||this.type===r.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===r.star)&&!j.test(this.input.slice(this.lastTokEnd,this.start))},C.parseObj=function(e,t){var i=this.startNode(),s=!0,n={};for(i.properties=[],this.next();!this.eat(r.braceR);){if(s)s=!1;else if(this.expect(r.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(r.braceR))break;var o=this.parseProperty(e,t);e||this.checkPropClash(o,n,t),i.properties.push(o)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")},C.parseProperty=function(e,t){var i=this.startNode(),s,n,o,p;if(this.options.ecmaVersion>=9&&this.eat(r.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===r.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(i.argument=this.parseMaybeAssign(!1,t),this.type===r.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(i,"SpreadElement"));this.options.ecmaVersion>=6&&(i.method=!1,i.shorthand=!1,(e||t)&&(o=this.start,p=this.startLoc),e||(s=this.eat(r.star)));var m=this.containsEsc;return this.parsePropertyName(i),!e&&!m&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(i)?(n=!0,s=this.options.ecmaVersion>=9&&this.eat(r.star),this.parsePropertyName(i)):n=!1,this.parsePropertyValue(i,e,s,n,o,p,t,m),this.finishNode(i,"Property")},C.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t=e.kind==="get"?0:1;if(e.value.params.length!==t){var i=e.value.start;e.kind==="get"?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},C.parsePropertyValue=function(e,t,i,s,n,o,p,m){(i||s)&&this.type===r.colon&&this.unexpected(),this.eat(r.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,p),e.kind="init"):this.options.ecmaVersion>=6&&this.type===r.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(i,s)):!t&&!m&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==r.comma&&this.type!==r.braceR&&this.type!==r.eq?((i||s)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((i||s)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=n),e.kind="init",t?e.value=this.parseMaybeDefault(n,o,this.copyNode(e.key)):this.type===r.eq&&p?(p.shorthandAssign<0&&(p.shorthandAssign=this.start),e.value=this.parseMaybeDefault(n,o,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()},C.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(r.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(r.bracketR),e.key;e.computed=!1}return e.key=this.type===r.num||this.type===r.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},C.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},C.parseMethod=function(e,t,i){var s=this.startNode(),n=this.yieldPos,o=this.awaitPos,p=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=e),this.options.ecmaVersion>=8&&(s.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(He(t,s.generator)|Xe|(i?vt:0)),this.expect(r.parenL),s.params=this.parseBindingList(r.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=n,this.awaitPos=o,this.awaitIdentPos=p,this.finishNode(s,"FunctionExpression")},C.parseArrowExpression=function(e,t,i,s){var n=this.yieldPos,o=this.awaitPos,p=this.awaitIdentPos;return this.enterScope(He(i,!1)|yt),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,s),this.yieldPos=n,this.awaitPos=o,this.awaitIdentPos=p,this.finishNode(e,"ArrowFunctionExpression")},C.parseFunctionBody=function(e,t,i,s){var n=t&&this.type!==r.braceL,o=this.strict,p=!1;if(n)e.body=this.parseMaybeAssign(s),e.expression=!0,this.checkParams(e,!1);else{var m=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!o||m)&&(p=this.strictDirective(this.end),p&&m&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var g=this.labels;this.labels=[],p&&(this.strict=!0),this.checkParams(e,!o&&!p&&!t&&!i&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,_t),e.body=this.parseBlock(!1,void 0,p&&!o),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=g}this.exitScope()},C.isSimpleParamList=function(e){for(var t=0,i=e;t-1||n.functions.indexOf(e)>-1||n.var.indexOf(e)>-1,n.lexical.push(e),this.inModule&&n.flags&de&&delete this.undefinedExports[e]}else if(t===St){var o=this.currentScope();o.lexical.push(e)}else if(t===bt){var p=this.currentScope();this.treatFunctionsAsVar?s=p.lexical.indexOf(e)>-1:s=p.lexical.indexOf(e)>-1||p.var.indexOf(e)>-1,p.functions.push(e)}else for(var m=this.scopeStack.length-1;m>=0;--m){var g=this.scopeStack[m];if(g.lexical.indexOf(e)>-1&&!(g.flags>&&g.lexical[0]===e)||!this.treatFunctionsAsVarInScope(g)&&g.functions.indexOf(e)>-1){s=!0;break}if(g.var.push(e),this.inModule&&g.flags&de&&delete this.undefinedExports[e],g.flags&ze)break}s&&this.raiseRecoverable(i,"Identifier '"+e+"' has already been declared")},ee.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},ee.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},ee.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&ze)return t}},ee.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&ze&&!(t.flags&yt))return t}};var ye=function(t,i,s){this.type="",this.start=i,this.end=0,t.options.locations&&(this.loc=new fe(t,s)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[i,0])},ge=V.prototype;ge.startNode=function(){return new ye(this,this.start,this.startLoc)},ge.startNodeAt=function(e,t){return new ye(this,e,t)};function Tt(e,t,i,s){return e.type=t,e.end=i,this.options.locations&&(e.loc.end=s),this.options.ranges&&(e.range[1]=i),e}ge.finishNode=function(e,t){return Tt.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},ge.finishNodeAt=function(e,t,i,s){return Tt.call(this,e,t,i,s)},ge.copyNode=function(e){var t=new ye(this,e.start,this.startLoc);for(var i in e)t[i]=e[i];return t};var wt="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",Et=wt+" Extended_Pictographic",At=Et,Pt=At+" EBase EComp EMod EPres ExtPict",It=Pt,Vi=It,Li={9:wt,10:Et,11:At,12:Pt,13:It,14:Vi},Ri="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Oi={9:"",10:"",11:"",12:"",13:"",14:Ri},Nt="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Vt="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Lt=Vt+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Rt=Lt+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Ot=Rt+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Bt=Ot+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Bi=Bt+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",Di={9:Vt,10:Lt,11:Rt,12:Ot,13:Bt,14:Bi},Dt={};function Fi(e){var t=Dt[e]={binary:$(Li[e]+" "+Nt),binaryOfStrings:$(Oi[e]),nonBinary:{General_Category:$(Nt),Script:$(Di[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var Ze=0,Ft=[9,10,11,12,13,14];Ze=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Dt[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};X.prototype.reset=function(t,i,s){var n=s.indexOf("v")!==-1,o=s.indexOf("u")!==-1;this.start=t|0,this.source=i+"",this.flags=s,n&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=o&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=o&&this.parser.options.ecmaVersion>=9)},X.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},X.prototype.at=function(t,i){i===void 0&&(i=!1);var s=this.source,n=s.length;if(t>=n)return-1;var o=s.charCodeAt(t);if(!(i||this.switchU)||o<=55295||o>=57344||t+1>=n)return o;var p=s.charCodeAt(t+1);return p>=56320&&p<=57343?(o<<10)+p-56613888:o},X.prototype.nextIndex=function(t,i){i===void 0&&(i=!1);var s=this.source,n=s.length;if(t>=n)return n;var o=s.charCodeAt(t),p;return!(i||this.switchU)||o<=55295||o>=57344||t+1>=n||(p=s.charCodeAt(t+1))<56320||p>57343?t+1:t+2},X.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)},X.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)},X.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)},X.prototype.eat=function(t,i){return i===void 0&&(i=!1),this.current(i)===t?(this.advance(i),!0):!1},X.prototype.eatChars=function(t,i){i===void 0&&(i=!1);for(var s=this.pos,n=0,o=t;n-1&&this.raise(e.start,"Duplicate regular expression flag"),p==="u"&&(s=!0),p==="v"&&(n=!0)}this.options.ecmaVersion>=15&&s&&n&&this.raise(e.start,"Invalid regular expression flag")},v.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},v.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,i=e.backReferenceNames;t=9&&(i=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!i,!0}return e.pos=t,!1},v.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1},v.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},v.regexp_eatBracedQuantifier=function(e,t){var i=e.pos;if(e.eat(123)){var s=0,n=-1;if(this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue),e.eat(125)))return n!==-1&&n=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},v.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},v.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},v.regexp_eatSyntaxCharacter=function(e){var t=e.current();return jt(t)?(e.lastIntValue=t,e.advance(),!0):!1};function jt(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}v.regexp_eatPatternCharacters=function(e){for(var t=e.pos,i=0;(i=e.current())!==-1&&!jt(i);)e.advance();return e.pos!==t},v.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1},v.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise("Duplicate capture group name"),e.groupNames.push(e.lastStringValue);return}e.raise("Invalid group")}},v.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},v.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Z(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Z(e.lastIntValue);return!0}return!1},v.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,s=e.current(i);return e.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(s=e.lastIntValue),Mi(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)};function Mi(e){return F(e,!0)||e===36||e===95}v.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,s=e.current(i);return e.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(s=e.lastIntValue),Ui(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)};function Ui(e){return d(e,!0)||e===36||e===95||e===8204||e===8205}v.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},v.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var i=e.lastIntValue;if(e.switchU)return i>e.maxBackReference&&(e.maxBackReference=i),!0;if(i<=e.numCapturingParens)return!0;e.pos=t}return!1},v.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},v.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},v.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},v.regexp_eatZero=function(e){return e.current()===48&&!Ne(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1},v.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1},v.regexp_eatControlLetter=function(e){var t=e.current();return Mt(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Mt(e){return e>=65&&e<=90||e>=97&&e<=122}v.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var i=e.pos,s=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var n=e.lastIntValue;if(s&&n>=55296&&n<=56319){var o=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var p=e.lastIntValue;if(p>=56320&&p<=57343)return e.lastIntValue=(n-55296)*1024+(p-56320)+65536,!0}e.pos=o,e.lastIntValue=n}return!0}if(s&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&qi(e.lastIntValue))return!0;s&&e.raise("Invalid unicode escape"),e.pos=i}return!1};function qi(e){return e>=0&&e<=1114111}v.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1},v.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var Ut=0,Y=1,J=2;v.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(Ki(t))return e.lastIntValue=-1,e.advance(),Y;var i=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((i=t===80)||t===112)){e.lastIntValue=-1,e.advance();var s;if(e.eat(123)&&(s=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return i&&s===J&&e.raise("Invalid property name"),s;e.raise("Invalid property name")}return Ut};function Ki(e){return e===100||e===68||e===115||e===83||e===119||e===87}v.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var i=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,i,s),Y}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,n)}return Ut},v.regexp_validateUnicodePropertyNameAndValue=function(e,t,i){le(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(i)||e.raise("Invalid property value")},v.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return Y;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return J;e.raise("Invalid property name")},v.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";qt(t=e.current());)e.lastStringValue+=Z(t),e.advance();return e.lastStringValue!==""};function qt(e){return Mt(e)||e===95}v.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Ji(t=e.current());)e.lastStringValue+=Z(t),e.advance();return e.lastStringValue!==""};function Ji(e){return qt(e)||Ne(e)}v.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},v.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),i=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&i===J&&e.raise("Negated character class may contain strings"),!0}return!1},v.regexp_classContents=function(e){return e.current()===93?Y:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),Y)},v.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var i=e.lastIntValue;e.switchU&&(t===-1||i===-1)&&e.raise("Invalid character class"),t!==-1&&i!==-1&&t>i&&e.raise("Range out of order in character class")}}},v.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var i=e.current();(i===99||Gt(i))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var s=e.current();return s!==93?(e.lastIntValue=s,e.advance(),!0):!1},v.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},v.regexp_classSetExpression=function(e){var t=Y,i;if(!this.regexp_eatClassSetRange(e))if(i=this.regexp_eatClassSetOperand(e)){i===J&&(t=J);for(var s=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(i=this.regexp_eatClassSetOperand(e))){i!==J&&(t=Y);continue}e.raise("Invalid character in character class")}if(s!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(s!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(i=this.regexp_eatClassSetOperand(e),!i)return t;i===J&&(t=J)}},v.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var s=e.lastIntValue;return i!==-1&&s!==-1&&i>s&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},v.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?Y:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},v.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var i=e.eat(94),s=this.regexp_classContents(e);if(e.eat(93))return i&&s===J&&e.raise("Negated character class may contain strings"),s;e.pos=t}if(e.eat(92)){var n=this.regexp_eatCharacterClassEscape(e);if(n)return n;e.pos=t}return null},v.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var i=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return i}else e.raise("Invalid escape");e.pos=t}return null},v.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===J&&(t=J);return t},v.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?Y:J},v.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var i=e.current();return i<0||i===e.lookahead()&&Gi(i)||Wi(i)?!1:(e.advance(),e.lastIntValue=i,!0)};function Gi(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function Wi(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}v.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return Xi(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Xi(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}v.regexp_eatClassControlLetter=function(e){var t=e.current();return Ne(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1},v.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},v.regexp_eatDecimalDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;Ne(i=e.current());)e.lastIntValue=10*e.lastIntValue+(i-48),e.advance();return e.pos!==t};function Ne(e){return e>=48&&e<=57}v.regexp_eatHexDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;Kt(i=e.current());)e.lastIntValue=16*e.lastIntValue+Jt(i),e.advance();return e.pos!==t};function Kt(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Jt(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}v.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var i=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+i*8+e.lastIntValue:e.lastIntValue=t*8+i}else e.lastIntValue=t;return!0}return!1},v.regexp_eatOctalDigit=function(e){var t=e.current();return Gt(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Gt(e){return e>=48&&e<=55}v.regexp_eatFixedHexDigits=function(e,t){var i=e.pos;e.lastIntValue=0;for(var s=0;s=this.input.length)return this.finishToken(r.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())},A.readToken=function(e){return F(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},A.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},A.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(i===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var s=void 0,n=t;(s=lt(this.input,n,this.pos))>-1;)++this.curLine,n=this.lineStart=s;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,i),t,this.pos,e,this.curPosition())},A.skipLineComment=function(e){for(var t=this.pos,i=this.options.onComment&&this.curPosition(),s=this.input.charCodeAt(this.pos+=e);this.pos8&&e<14||e>=5760&&Je.test(String.fromCharCode(e)))++this.pos;else break e}}},A.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=e,this.value=t,this.updateContext(i)},A.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(r.ellipsis)):(++this.pos,this.finishToken(r.dot))},A.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(r.assign,2):this.finishOp(r.slash,1)},A.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),i=1,s=e===42?r.star:r.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++i,s=r.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(r.assign,i+1):this.finishOp(s,i)},A.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(r.assign,3)}return this.finishOp(e===124?r.logicalOR:r.logicalAND,2)}return t===61?this.finishOp(r.assign,2):this.finishOp(e===124?r.bitwiseOR:r.bitwiseAND,1)},A.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(r.assign,2):this.finishOp(r.bitwiseXOR,1)},A.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||j.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(r.incDec,2):t===61?this.finishOp(r.assign,2):this.finishOp(r.plusMin,1)},A.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),i=1;return t===e?(i=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+i)===61?this.finishOp(r.assign,i+1):this.finishOp(r.bitShift,i)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(i=2),this.finishOp(r.relational,i))},A.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(r.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(r.arrow)):this.finishOp(e===61?r.eq:r.prefix,1)},A.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(r.questionDot,2)}if(t===63){if(e>=12){var s=this.input.charCodeAt(this.pos+2);if(s===61)return this.finishOp(r.assign,3)}return this.finishOp(r.coalesce,2)}}return this.finishOp(r.question,1)},A.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),F(t,!0)||t===92))return this.finishToken(r.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Z(t)+"'")},A.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(r.parenL);case 41:return++this.pos,this.finishToken(r.parenR);case 59:return++this.pos,this.finishToken(r.semi);case 44:return++this.pos,this.finishToken(r.comma);case 91:return++this.pos,this.finishToken(r.bracketL);case 93:return++this.pos,this.finishToken(r.bracketR);case 123:return++this.pos,this.finishToken(r.braceL);case 125:return++this.pos,this.finishToken(r.braceR);case 58:return++this.pos,this.finishToken(r.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(r.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(r.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Z(e)+"'")},A.finishOp=function(e,t){var i=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,i)},A.readRegexp=function(){for(var e,t,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(j.test(s)&&this.raise(i,"Unterminated regular expression"),e)e=!1;else{if(s==="[")t=!0;else if(s==="]"&&t)t=!1;else if(s==="/"&&!t)break;e=s==="\\"}++this.pos}var n=this.input.slice(i,this.pos);++this.pos;var o=this.pos,p=this.readWord1();this.containsEsc&&this.unexpected(o);var m=this.regexpState||(this.regexpState=new X(this));m.reset(i,n,p),this.validateRegExpFlags(m),this.validateRegExpPattern(m);var g=null;try{g=new RegExp(n,p)}catch{}return this.finishToken(r.regexp,{pattern:n,flags:p,value:g})},A.readInt=function(e,t,i){for(var s=this.options.ecmaVersion>=12&&t===void 0,n=i&&this.input.charCodeAt(this.pos)===48,o=this.pos,p=0,m=0,g=0,T=t??1/0;g=97?R=E-97+10:E>=65?R=E-65+10:E>=48&&E<=57?R=E-48:R=1/0,R>=e)break;m=E,p=p*e+R}return s&&m===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===o||t!=null&&this.pos-o!==t?null:p};function zi(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function Wt(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}A.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var i=this.readInt(e);return i==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(i=Wt(this.input.slice(t,this.pos)),++this.pos):F(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(r.num,i)},A.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var i=this.pos-t>=2&&this.input.charCodeAt(t)===48;i&&this.strict&&this.raise(t,"Invalid number");var s=this.input.charCodeAt(this.pos);if(!i&&!e&&this.options.ecmaVersion>=11&&s===110){var n=Wt(this.input.slice(t,this.pos));return++this.pos,F(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(r.num,n)}i&&/[89]/.test(this.input.slice(t,this.pos))&&(i=!1),s===46&&!i&&(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),(s===69||s===101)&&!i&&(s=this.input.charCodeAt(++this.pos),(s===43||s===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),F(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var o=zi(this.input.slice(t,this.pos),i);return this.finishToken(r.num,o)},A.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var i=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(i,"Code point out of bounds")}else t=this.readHexChar(4);return t},A.readString=function(e){for(var t="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===e)break;s===92?(t+=this.input.slice(i,this.pos),t+=this.readEscapedChar(!1),i=this.pos):s===8232||s===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(te(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(i,this.pos++),this.finishToken(r.string,t)};var Xt={};A.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Xt)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},A.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Xt;this.raise(e,t)},A.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(i===96||i===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===r.template||this.type===r.invalidTemplate)?i===36?(this.pos+=2,this.finishToken(r.dollarBraceL)):(++this.pos,this.finishToken(r.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(r.template,e));if(i===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(te(i)){switch(e+=this.input.slice(t,this.pos),++this.pos,i){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=` `;break;default:e+=String.fromCharCode(i);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},A.readInvalidTemplateToken=function(){for(;this.pos=48&&t<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],n=parseInt(s,8);return n>255&&(s=s.slice(0,-1),n=parseInt(s,8)),this.pos+=s.length-1,t=this.input.charCodeAt(this.pos),(s!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-s.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(n)}return te(t)?"":String.fromCharCode(t)}},A.readHexChar=function(e){var t=this.pos,i=this.readInt(16,e);return i===null&&this.invalidStringToken(t,"Bad character escape sequence"),i},A.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,i=this.pos,s=this.options.ecmaVersion>=6;this.pos{fi.exports={}});var ot=Se((ta,nt)=>{"use strict";var Ls=di(),Rs=/^[\da-fA-F]+$/,Os=/^\d+$/,mi=new WeakMap;function xi(a){a=a.Parser.acorn||a;let u=mi.get(a);if(!u){let c=a.tokTypes,h=a.TokContext,l=a.TokenType,f=new h("...",!0,!0),L={tc_oTag:f,tc_cTag:m,tc_expr:_},P={jsxName:new l("jsxName"),jsxText:new l("jsxText",{beforeExpr:!0}),jsxTagStart:new l("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new l("jsxTagEnd")};P.jsxTagStart.updateContext=function(){this.context.push(_),this.context.push(f),this.exprAllowed=!1},P.jsxTagEnd.updateContext=function(D){let G=this.context.pop();G===f&&D===c.slash||G===m?(this.context.pop(),this.exprAllowed=this.curContext()===_):this.exprAllowed=!0},u={tokContexts:L,tokTypes:P},mi.set(a,u)}return u}function we(a){if(!a)return a;if(a.type==="JSXIdentifier")return a.name;if(a.type==="JSXNamespacedName")return a.namespace.name+":"+a.name.name;if(a.type==="JSXMemberExpression")return we(a.object)+"."+we(a.property)}nt.exports=function(a){return a=a||{},function(u){return Bs({allowNamespaces:a.allowNamespaces!==!1,allowNamespacedObjects:!!a.allowNamespacedObjects},u)}};Object.defineProperty(nt.exports,"tokTypes",{get:function(){return xi(Ee()).tokTypes},configurable:!0,enumerable:!0});function Bs(a,u){let c=u.acorn||Ee(),h=xi(c),l=c.tokTypes,f=h.tokTypes,m=c.tokContexts,_=h.tokContexts.tc_oTag,L=h.tokContexts.tc_cTag,P=h.tokContexts.tc_expr,D=c.isNewLine,G=c.isIdentifierStart,F=c.isIdentifierChar;return class extends u{static get acornJsx(){return h}jsx_readToken(){let d="",y=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let b=this.input.charCodeAt(this.pos);switch(b){case 60:case 123:return this.pos===this.start?b===60&&this.exprAllowed?(++this.pos,this.finishToken(f.jsxTagStart)):this.getTokenFromCode(b):(d+=this.input.slice(y,this.pos),this.finishToken(f.jsxText,d));case 38:d+=this.input.slice(y,this.pos),d+=this.jsx_readEntity(),y=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(b===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:D(b)?(d+=this.input.slice(y,this.pos),d+=this.jsx_readNewLine(!0),y=this.pos):++this.pos}}}jsx_readNewLine(d){let y=this.input.charCodeAt(this.pos),b;return++this.pos,y===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,b=d?` +`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Z(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var i=this.pos-1;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],n=parseInt(s,8);return n>255&&(s=s.slice(0,-1),n=parseInt(s,8)),this.pos+=s.length-1,t=this.input.charCodeAt(this.pos),(s!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-s.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(n)}return te(t)?"":String.fromCharCode(t)}},A.readHexChar=function(e){var t=this.pos,i=this.readInt(16,e);return i===null&&this.invalidStringToken(t,"Bad character escape sequence"),i},A.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,i=this.pos,s=this.options.ecmaVersion>=6;this.pos{li.exports={}});var nt=be((Qr,at)=>{"use strict";var Ns=fi(),Vs=/^[\da-fA-F]+$/,Ls=/^\d+$/,di=new WeakMap;function mi(a){a=a.Parser.acorn||a;let u=di.get(a);if(!u){let c=a.tokTypes,h=a.TokContext,l=a.TokenType,f=new h("...",!0,!0),L={tc_oTag:f,tc_cTag:y,tc_expr:_},P={jsxName:new l("jsxName"),jsxText:new l("jsxText",{beforeExpr:!0}),jsxTagStart:new l("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new l("jsxTagEnd")};P.jsxTagStart.updateContext=function(){this.context.push(_),this.context.push(f),this.exprAllowed=!1},P.jsxTagEnd.updateContext=function(D){let G=this.context.pop();G===f&&D===c.slash||G===y?(this.context.pop(),this.exprAllowed=this.curContext()===_):this.exprAllowed=!0},u={tokContexts:L,tokTypes:P},di.set(a,u)}return u}function Te(a){if(!a)return a;if(a.type==="JSXIdentifier")return a.name;if(a.type==="JSXNamespacedName")return a.namespace.name+":"+a.name.name;if(a.type==="JSXMemberExpression")return Te(a.object)+"."+Te(a.property)}at.exports=function(a){return a=a||{},function(u){return Rs({allowNamespaces:a.allowNamespaces!==!1,allowNamespacedObjects:!!a.allowNamespacedObjects},u)}};Object.defineProperty(at.exports,"tokTypes",{get:function(){return mi(ke()).tokTypes},configurable:!0,enumerable:!0});function Rs(a,u){let c=u.acorn||ke(),h=mi(c),l=c.tokTypes,f=h.tokTypes,y=c.tokContexts,_=h.tokContexts.tc_oTag,L=h.tokContexts.tc_cTag,P=h.tokContexts.tc_expr,D=c.isNewLine,G=c.isIdentifierStart,F=c.isIdentifierChar;return class extends u{static get acornJsx(){return h}jsx_readToken(){let d="",x=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let b=this.input.charCodeAt(this.pos);switch(b){case 60:case 123:return this.pos===this.start?b===60&&this.exprAllowed?(++this.pos,this.finishToken(f.jsxTagStart)):this.getTokenFromCode(b):(d+=this.input.slice(x,this.pos),this.finishToken(f.jsxText,d));case 38:d+=this.input.slice(x,this.pos),d+=this.jsx_readEntity(),x=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(b===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:D(b)?(d+=this.input.slice(x,this.pos),d+=this.jsx_readNewLine(!0),x=this.pos):++this.pos}}}jsx_readNewLine(d){let x=this.input.charCodeAt(this.pos),b;return++this.pos,x===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,b=d?` `:`\r -`):b=String.fromCharCode(y),this.options.locations&&(++this.curLine,this.lineStart=this.pos),b}jsx_readString(d){let y="",b=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let k=this.input.charCodeAt(this.pos);if(k===d)break;k===38?(y+=this.input.slice(b,this.pos),y+=this.jsx_readEntity(),b=this.pos):D(k)?(y+=this.input.slice(b,this.pos),y+=this.jsx_readNewLine(!1),b=this.pos):++this.pos}return y+=this.input.slice(b,this.pos++),this.finishToken(l.string,y)}jsx_readEntity(){let d="",y=0,b,k=this.input[this.pos];k!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let N=++this.pos;for(;this.pos")}let E=N.name?"Element":"Fragment";return b["opening"+E]=N,b["closing"+E]=H,b.children=k,this.type===l.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(b,"JSX"+E)}jsx_parseText(){let d=this.parseLiteral(this.value);return d.type="JSXText",d}jsx_parseElement(){let d=this.start,y=this.startLoc;return this.next(),this.jsx_parseElementAt(d,y)}parseExprAtom(d){return this.type===f.jsxText?this.jsx_parseText():this.type===f.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(d)}readToken(d){let y=this.curContext();if(y===P)return this.jsx_readToken();if(y===_||y===L){if(G(d))return this.jsx_readWord();if(d==62)return++this.pos,this.finishToken(f.jsxTagEnd);if((d===34||d===39)&&y==_)return this.jsx_readString(d)}return d===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(f.jsxTagStart)):super.readToken(d)}updateContext(d){if(this.type==l.braceL){var y=this.curContext();y==_?this.context.push(m.b_expr):y==P?this.context.push(m.b_tmpl):super.updateContext(d),this.exprAllowed=!0}else if(this.type===l.slash&&d===f.jsxTagStart)this.context.length-=2,this.context.push(L),this.exprAllowed=!1;else return super.updateContext(d)}}}});var bi=Se(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});var qs=Ee(),Ks=ot();function Js(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}function Gs(a){if(a&&a.__esModule)return a;var u=Object.create(null);return a&&Object.keys(a).forEach(function(c){if(c!=="default"){var h=Object.getOwnPropertyDescriptor(a,c);Object.defineProperty(u,c,h.get?h:{enumerable:!0,get:function(){return a[c]}})}}),u.default=a,Object.freeze(u)}var gi=Gs(qs),zs=Js(Ks),B={Boolean:"Boolean",EOF:"",Identifier:"Identifier",PrivateIdentifier:"PrivateIdentifier",Keyword:"Keyword",Null:"Null",Numeric:"Numeric",Punctuator:"Punctuator",String:"String",RegularExpression:"RegularExpression",Template:"Template",JSXIdentifier:"JSXIdentifier",JSXText:"JSXText"};function Ws(a,u){let c=a[0],h=a[a.length-1],l={type:B.Template,value:u.slice(c.start,h.end)};return c.loc&&(l.loc={start:c.loc.start,end:h.loc.end}),c.range&&(l.start=c.range[0],l.end=h.range[1],l.range=[l.start,l.end]),l}function pt(a,u){this._acornTokTypes=a,this._tokens=[],this._curlyBrace=null,this._code=u}pt.prototype={constructor:pt,translate(a,u){let c=a.type,h=this._acornTokTypes;if(c===h.name)a.type=B.Identifier,a.value==="static"&&(a.type=B.Keyword),u.ecmaVersion>5&&(a.value==="yield"||a.value==="let")&&(a.type=B.Keyword);else if(c===h.privateId)a.type=B.PrivateIdentifier;else if(c===h.semi||c===h.comma||c===h.parenL||c===h.parenR||c===h.braceL||c===h.braceR||c===h.dot||c===h.bracketL||c===h.colon||c===h.question||c===h.bracketR||c===h.ellipsis||c===h.arrow||c===h.jsxTagStart||c===h.incDec||c===h.starstar||c===h.jsxTagEnd||c===h.prefix||c===h.questionDot||c.binop&&!c.keyword||c.isAssign)a.type=B.Punctuator,a.value=this._code.slice(a.start,a.end);else if(c===h.jsxName)a.type=B.JSXIdentifier;else if(c.label==="jsxText"||c===h.jsxAttrValueToken)a.type=B.JSXText;else if(c.keyword)c.keyword==="true"||c.keyword==="false"?a.type=B.Boolean:c.keyword==="null"?a.type=B.Null:a.type=B.Keyword;else if(c===h.num)a.type=B.Numeric,a.value=this._code.slice(a.start,a.end);else if(c===h.string)u.jsxAttrValueToken?(u.jsxAttrValueToken=!1,a.type=B.JSXText):a.type=B.String,a.value=this._code.slice(a.start,a.end);else if(c===h.regexp){a.type=B.RegularExpression;let l=a.value;a.regex={flags:l.flags,pattern:l.pattern},a.value=`/${l.pattern}/${l.flags}`}return a},onToken(a,u){let c=this,h=this._acornTokTypes,l=u.tokens,f=this._tokens;function m(){l.push(Ws(c._tokens,c._code)),c._tokens=[]}if(a.type===h.eof){this._curlyBrace&&l.push(this.translate(this._curlyBrace,u));return}if(a.type===h.backQuote){this._curlyBrace&&(l.push(this.translate(this._curlyBrace,u)),this._curlyBrace=null),f.push(a),f.length>1&&m();return}if(a.type===h.dollarBraceL){f.push(a),m();return}if(a.type===h.braceR){this._curlyBrace&&l.push(this.translate(this._curlyBrace,u)),this._curlyBrace=a;return}if(a.type===h.template||a.type===h.invalidTemplate){this._curlyBrace&&(f.push(this._curlyBrace),this._curlyBrace=null),f.push(a);return}this._curlyBrace&&(l.push(this.translate(this._curlyBrace,u)),this._curlyBrace=null),l.push(this.translate(a,u))}};var ct=[3,5,6,7,8,9,10,11,12,13,14,15];function Xs(){return ct[ct.length-1]}function Hs(a=5){let u=a==="latest"?Xs():a;if(typeof u!="number")throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof a} instead.`);if(u>=2015&&(u-=2009),!ct.includes(u))throw new Error("Invalid ecmaVersion.");return u}function Qs(a="script"){if(a==="script"||a==="module")return a;if(a==="commonjs")return"script";throw new Error("Invalid sourceType.")}function Ys(a){let u=Hs(a.ecmaVersion),c=Qs(a.sourceType),h=a.range===!0,l=a.loc===!0;if(u!==3&&a.allowReserved)throw new Error("`allowReserved` is only supported when ecmaVersion is 3");if(typeof a.allowReserved<"u"&&typeof a.allowReserved!="boolean")throw new Error("`allowReserved`, when present, must be `true` or `false`");let f=u===3?a.allowReserved||"never":!1,m=a.ecmaFeatures||{},_=a.sourceType==="commonjs"||!!m.globalReturn;if(c==="module"&&u<6)throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},a,{ecmaVersion:u,sourceType:c,ranges:h,locations:l,allowReserved:f,allowReturnOutsideFunction:_})}var re=Symbol("espree's internal state"),ht=Symbol("espree's esprimaFinishNode");function $s(a,u,c,h,l,f,m){let _;a?_="Block":m.slice(c,c+2)==="#!"?_="Hashbang":_="Line";let L={type:_,value:u};return typeof c=="number"&&(L.start=c,L.end=h,L.range=[c,h]),typeof l=="object"&&(L.loc={start:l,end:f}),L}var vi=()=>a=>{let u=Object.assign({},a.acorn.tokTypes);return a.acornJsx&&Object.assign(u,a.acornJsx.tokTypes),class extends a{constructor(h,l){(typeof h!="object"||h===null)&&(h={}),typeof l!="string"&&!(l instanceof String)&&(l=String(l));let f=h.sourceType,m=Ys(h),_=m.ecmaFeatures||{},L=m.tokens===!0?new pt(u,l):null,P={originalSourceType:f||m.sourceType,tokens:L?[]:null,comments:m.comment===!0?[]:null,impliedStrict:_.impliedStrict===!0&&m.ecmaVersion>=5,ecmaVersion:m.ecmaVersion,jsxAttrValueToken:!1,lastToken:null,templateElements:[]};super({ecmaVersion:m.ecmaVersion,sourceType:m.sourceType,ranges:m.ranges,locations:m.locations,allowReserved:m.allowReserved,allowReturnOutsideFunction:m.allowReturnOutsideFunction,onToken:D=>{L&&L.onToken(D,P),D.type!==u.eof&&(P.lastToken=D)},onComment:(D,G,F,d,y,b)=>{if(P.comments){let k=$s(D,G,F,d,y,b,l);P.comments.push(k)}}},l),this[re]=P}tokenize(){do this.next();while(this.type!==u.eof);this.next();let h=this[re],l=h.tokens;return h.comments&&(l.comments=h.comments),l}finishNode(...h){let l=super.finishNode(...h);return this[ht](l)}finishNodeAt(...h){let l=super.finishNodeAt(...h);return this[ht](l)}parse(){let h=this[re],l=super.parse();if(l.sourceType=h.originalSourceType,h.comments&&(l.comments=h.comments),h.tokens&&(l.tokens=h.tokens),l.body.length){let[f]=l.body;l.range&&(l.range[0]=f.range[0]),l.loc&&(l.loc.start=f.loc.start),l.start=f.start}return h.lastToken&&(l.range&&(l.range[1]=h.lastToken.range[1]),l.loc&&(l.loc.end=h.lastToken.loc.end),l.end=h.lastToken.end),this[re].templateElements.forEach(f=>{let _=f.tail?1:2;f.start+=-1,f.end+=_,f.range&&(f.range[0]+=-1,f.range[1]+=_),f.loc&&(f.loc.start.column+=-1,f.loc.end.column+=_)}),l}parseTopLevel(h){return this[re].impliedStrict&&(this.strict=!0),super.parseTopLevel(h)}raise(h,l){let f=a.acorn.getLineInfo(this.input,h),m=new SyntaxError(l);throw m.index=h,m.lineNumber=f.line,m.column=f.column+1,m}raiseRecoverable(h,l){this.raise(h,l)}unexpected(h){let l="Unexpected token";if(h!=null){if(this.pos=h,this.options.locations)for(;this.posthis.start&&(l+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,l)}jsx_readString(h){let l=super.jsx_readString(h);return this.type===u.string&&(this[re].jsxAttrValueToken=!0),l}[ht](h){return h.type==="TemplateElement"&&this[re].templateElements.push(h),h.type.includes("Function")&&!h.generator&&(h.generator=!1),h}}},Zs={_regular:null,_jsx:null,get regular(){return this._regular===null&&(this._regular=gi.Parser.extend(vi())),this._regular},get jsx(){return this._jsx===null&&(this._jsx=gi.Parser.extend(zs.default(),vi())),this._jsx},get(a){return!!(a&&a.ecmaFeatures&&a.ecmaFeatures.jsx)?this.jsx:this.regular}};function er(a,u){let c=Zs.get(u);return new c(u,a).parse()}var tr="espree";Je.name=tr;Je.parse=er});var nr={};rs(nr,{parsers:()=>ar});function os(a,u){let c=new SyntaxError(a+" ("+u.loc.start.line+":"+u.loc.start.column+")");return Object.assign(c,u)}var ce=os;function us(a){let u=[];for(let c of a)try{return c()}catch(h){u.push(h)}throw Object.assign(new Error("All combinations failed"),{errors:u})}var De=us;var le=as(si(),1);function gs(a){if(!a.startsWith("#!"))return"";let u=a.indexOf(` -`);return u===-1?a:a.slice(0,u)}var ri=gs;function vs(a){let u=ri(a);u&&(a=a.slice(u.length+1));let c=(0,le.extract)(a),{pragmas:h,comments:l}=(0,le.parseWithComments)(c);return{shebang:u,text:a,pragmas:h,comments:l}}function ai(a){let{pragmas:u}=vs(a);return Object.prototype.hasOwnProperty.call(u,"prettier")||Object.prototype.hasOwnProperty.call(u,"format")}function bs(a){return Array.isArray(a)&&a.length>0}var _e=bs;function M(a){var h;let u=a.range?a.range[0]:a.start,c=((h=a.declaration)==null?void 0:h.decorators)??a.decorators;return _e(c)?Math.min(M(c[0]),u):u}function X(a){return a.range?a.range[1]:a.end}function Ss(a){return a=typeof a=="function"?{parse:a}:a,{astFormat:"estree",hasPragma:ai,locStart:M,locEnd:X,...a}}var Fe=Ss;var _s=(a,u,c)=>{if(!(a&&u==null))return Array.isArray(u)||typeof u=="string"?u[c<0?u.length+c:c]:u.at(c)},tt=_s;function Cs(a){return a=new Set(a),u=>a.has(u==null?void 0:u.type)}var ni=Cs;var ks=ni(["Block","CommentBlock","MultiLine"]),Ce=ks;function Ts(a){return Ce(a)&&a.value[0]==="*"&&/@(?:type|satisfies)\b/.test(a.value)}var oi=Ts;function Es(a){let u=`*${a.value}*`.split(` -`);return u.length>1&&u.every(c=>c.trimStart()[0]==="*")}var it=Es;var ke=null;function Te(a){if(ke!==null&&typeof ke.property){let u=ke;return ke=Te.prototype=null,u}return ke=Te.prototype=a??Object.create(null),new Te}var ws=10;for(let a=0;a<=ws;a++)Te();function st(a){return Te(a)}function As(a,u="type"){st(a);function c(h){let l=h[u],f=a[l];if(!Array.isArray(f))throw Object.assign(new Error(`Missing visitor keys for '${l}'.`),{node:h});return f}return c}var ui=As;var hi={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ExportAllDeclaration:["source","attributes","assertions","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes","assertions"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes","assertions"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","parameter"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ImportExpression:["source","attributes"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareEnum:["id","body"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]};var Ps=ui(hi),pi=Ps;function rt(a,u){if(!(a!==null&&typeof a=="object"))return a;if(Array.isArray(a)){for(let h=0;h{var _;(_=m.leadingComments)!=null&&_.some(oi)&&f.add(M(m))}),a=je(a,m=>{if(m.type==="ParenthesizedExpression"){let{expression:_}=m;if(_.type==="TypeCastExpression")return _.range=m.range,_;let L=M(m);if(!f.has(L))return _.extra={..._.extra,parenthesized:!0},_}})}if(a=je(a,f=>{switch(f.type){case"LogicalExpression":if(ci(f))return at(f);break;case"VariableDeclaration":{let m=tt(!1,f.declarations,-1);m!=null&&m.init&&l(f,m);break}case"TSParenthesizedType":return f.typeAnnotation;case"TSTypeParameter":if(typeof f.name=="string"){let m=M(f);f.name={type:"Identifier",name:f.name,range:[m,m+f.name.length]}}break;case"ObjectExpression":if(c==="typescript"){let m=f.properties.find(_=>_.type==="Property"&&_.value.type==="TSEmptyBodyFunctionExpression");m&&Me(m.value,"Unexpected token.")}break;case"TSInterfaceDeclaration":_e(f.implements)&&Me(f.implements[0],"Interface declaration cannot have 'implements' clause.");break;case"TSPropertySignature":f.initializer&&Me(f.initializer,"An interface property cannot have an initializer.");break;case"TopicReference":a.extra={...a.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":{let{exported:m}=f;if(c==="meriyah"&&(m==null?void 0:m.type)==="Identifier"){let _=h.slice(M(m),X(m));(_.startsWith('"')||_.startsWith("'"))&&(f.exported={...f.exported,type:"Literal",value:f.exported.name,raw:_})}break}case"TSUnionType":case"TSIntersectionType":if(f.types.length===1)return f.types[0];break}}),_e(a.comments)){let f=tt(!1,a.comments,-1);for(let m=a.comments.length-2;m>=0;m--){let _=a.comments[m];X(_)===M(f)&&Ce(_)&&Ce(f)&&it(_)&&it(f)&&(a.comments.splice(m+1,1),_.value+="*//*"+f.value,_.range=[M(_),X(f)]),f=_}}return a.type==="Program"&&(a.range=[0,h.length]),a;function l(f,m){h[X(m)]!==";"&&(f.range=[M(f),X(m)])}}function ci(a){return a.type==="LogicalExpression"&&a.right.type==="LogicalExpression"&&a.operator===a.right.operator}function at(a){return ci(a)?at({type:"LogicalExpression",operator:a.operator,left:at({type:"LogicalExpression",operator:a.operator,left:a.left,right:a.right.left,range:[M(a.left),X(a.right.left)]}),right:a.right.right,range:[M(a),X(a)]}):a}var Ue=Ns;function Vs(a){let{filepath:u}=a;if(u){if(u=u.toLowerCase(),u.endsWith(".cjs"))return"script";if(u.endsWith(".mjs"))return"module"}}var qe=Vs;var Ds={ecmaVersion:"latest",allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,locations:!0,ranges:!0};function Fs(a){let{message:u,loc:c}=a;if(!c)return a;let{line:h,column:l}=c;return ce(u.replace(/ \(\d+:\d+\)$/,""),{loc:{start:{line:h,column:l+1}},cause:a})}var ut,js=()=>{if(!ut){let{Parser:a}=Ee(),u=ot();ut=a.extend(u())}return ut};function Ms(a,u){let c=js(),h=[],l=[],f=c.parse(a,{...Ds,sourceType:u,allowImportExportEverywhere:u==="module",onComment:h,onToken:l});return f.comments=h,f.tokens=l,f}function Us(a,u={}){let c=qe(u),h=(c?[c]:["module","script"]).map(f=>()=>Ms(a,f)),l;try{l=De(h)}catch({errors:[f]}){throw Fs(f)}return Ue(l,{text:a})}var yi=Fe(Us);var ir={ecmaVersion:"latest",range:!0,loc:!0,comment:!0,tokens:!0,sourceType:"module",ecmaFeatures:{jsx:!0,globalReturn:!0,impliedStrict:!1}};function sr(a){let{message:u,lineNumber:c,column:h}=a;return typeof c!="number"?a:ce(u,{loc:{start:{line:c,column:h}},cause:a})}function rr(a,u={}){let{parse:c}=bi(),h=qe(u),l=(h?[h]:["module","script"]).map(m=>()=>c(a,{...ir,sourceType:m})),f;try{f=De(l)}catch({errors:[m]}){throw sr(m)}return Ue(f,{text:a})}var Si=Fe(rr);var ar={acorn:yi,espree:Si};return ns(nr);}); \ No newline at end of file +`):b=String.fromCharCode(x),this.options.locations&&(++this.curLine,this.lineStart=this.pos),b}jsx_readString(d){let x="",b=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let k=this.input.charCodeAt(this.pos);if(k===d)break;k===38?(x+=this.input.slice(b,this.pos),x+=this.jsx_readEntity(),b=this.pos):D(k)?(x+=this.input.slice(b,this.pos),x+=this.jsx_readNewLine(!1),b=this.pos):++this.pos}return x+=this.input.slice(b,this.pos++),this.finishToken(l.string,x)}jsx_readEntity(){let d="",x=0,b,k=this.input[this.pos];k!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let N=++this.pos;for(;this.pos")}let w=N.name?"Element":"Fragment";return b["opening"+w]=N,b["closing"+w]=H,b.children=k,this.type===l.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(b,"JSX"+w)}jsx_parseText(){let d=this.parseLiteral(this.value);return d.type="JSXText",d}jsx_parseElement(){let d=this.start,x=this.startLoc;return this.next(),this.jsx_parseElementAt(d,x)}parseExprAtom(d){return this.type===f.jsxText?this.jsx_parseText():this.type===f.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(d)}readToken(d){let x=this.curContext();if(x===P)return this.jsx_readToken();if(x===_||x===L){if(G(d))return this.jsx_readWord();if(d==62)return++this.pos,this.finishToken(f.jsxTagEnd);if((d===34||d===39)&&x==_)return this.jsx_readString(d)}return d===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(f.jsxTagStart)):super.readToken(d)}updateContext(d){if(this.type==l.braceL){var x=this.curContext();x==_?this.context.push(y.b_expr):x==P?this.context.push(y.b_tmpl):super.updateContext(d),this.exprAllowed=!0}else if(this.type===l.slash&&d===f.jsxTagStart)this.context.length-=2,this.context.push(L),this.exprAllowed=!1;else return super.updateContext(d)}}}});var vi=be(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});var Ms=ke(),Us=nt();function qs(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}function Ks(a){if(a&&a.__esModule)return a;var u=Object.create(null);return a&&Object.keys(a).forEach(function(c){if(c!=="default"){var h=Object.getOwnPropertyDescriptor(a,c);Object.defineProperty(u,c,h.get?h:{enumerable:!0,get:function(){return a[c]}})}}),u.default=a,Object.freeze(u)}var yi=Ks(Ms),Js=qs(Us),B={Boolean:"Boolean",EOF:"",Identifier:"Identifier",PrivateIdentifier:"PrivateIdentifier",Keyword:"Keyword",Null:"Null",Numeric:"Numeric",Punctuator:"Punctuator",String:"String",RegularExpression:"RegularExpression",Template:"Template",JSXIdentifier:"JSXIdentifier",JSXText:"JSXText"};function Gs(a,u){let c=a[0],h=a[a.length-1],l={type:B.Template,value:u.slice(c.start,h.end)};return c.loc&&(l.loc={start:c.loc.start,end:h.loc.end}),c.range&&(l.start=c.range[0],l.end=h.range[1],l.range=[l.start,l.end]),l}function ht(a,u){this._acornTokTypes=a,this._tokens=[],this._curlyBrace=null,this._code=u}ht.prototype={constructor:ht,translate(a,u){let c=a.type,h=this._acornTokTypes;if(c===h.name)a.type=B.Identifier,a.value==="static"&&(a.type=B.Keyword),u.ecmaVersion>5&&(a.value==="yield"||a.value==="let")&&(a.type=B.Keyword);else if(c===h.privateId)a.type=B.PrivateIdentifier;else if(c===h.semi||c===h.comma||c===h.parenL||c===h.parenR||c===h.braceL||c===h.braceR||c===h.dot||c===h.bracketL||c===h.colon||c===h.question||c===h.bracketR||c===h.ellipsis||c===h.arrow||c===h.jsxTagStart||c===h.incDec||c===h.starstar||c===h.jsxTagEnd||c===h.prefix||c===h.questionDot||c.binop&&!c.keyword||c.isAssign)a.type=B.Punctuator,a.value=this._code.slice(a.start,a.end);else if(c===h.jsxName)a.type=B.JSXIdentifier;else if(c.label==="jsxText"||c===h.jsxAttrValueToken)a.type=B.JSXText;else if(c.keyword)c.keyword==="true"||c.keyword==="false"?a.type=B.Boolean:c.keyword==="null"?a.type=B.Null:a.type=B.Keyword;else if(c===h.num)a.type=B.Numeric,a.value=this._code.slice(a.start,a.end);else if(c===h.string)u.jsxAttrValueToken?(u.jsxAttrValueToken=!1,a.type=B.JSXText):a.type=B.String,a.value=this._code.slice(a.start,a.end);else if(c===h.regexp){a.type=B.RegularExpression;let l=a.value;a.regex={flags:l.flags,pattern:l.pattern},a.value=`/${l.pattern}/${l.flags}`}return a},onToken(a,u){let c=this._acornTokTypes,h=u.tokens,l=this._tokens,f=()=>{h.push(Gs(this._tokens,this._code)),this._tokens=[]};if(a.type===c.eof){this._curlyBrace&&h.push(this.translate(this._curlyBrace,u));return}if(a.type===c.backQuote){this._curlyBrace&&(h.push(this.translate(this._curlyBrace,u)),this._curlyBrace=null),l.push(a),l.length>1&&f();return}if(a.type===c.dollarBraceL){l.push(a),f();return}if(a.type===c.braceR){this._curlyBrace&&h.push(this.translate(this._curlyBrace,u)),this._curlyBrace=a;return}if(a.type===c.template||a.type===c.invalidTemplate){this._curlyBrace&&(l.push(this._curlyBrace),this._curlyBrace=null),l.push(a);return}this._curlyBrace&&(h.push(this.translate(this._curlyBrace,u)),this._curlyBrace=null),h.push(this.translate(a,u))}};var pt=[3,5,6,7,8,9,10,11,12,13,14,15];function Ws(){return pt[pt.length-1]}function Xs(a=5){let u=a==="latest"?Ws():a;if(typeof u!="number")throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof a} instead.`);if(u>=2015&&(u-=2009),!pt.includes(u))throw new Error("Invalid ecmaVersion.");return u}function zs(a="script"){if(a==="script"||a==="module")return a;if(a==="commonjs")return"script";throw new Error("Invalid sourceType.")}function Hs(a){let u=Xs(a.ecmaVersion),c=zs(a.sourceType),h=a.range===!0,l=a.loc===!0;if(u!==3&&a.allowReserved)throw new Error("`allowReserved` is only supported when ecmaVersion is 3");if(typeof a.allowReserved<"u"&&typeof a.allowReserved!="boolean")throw new Error("`allowReserved`, when present, must be `true` or `false`");let f=u===3?a.allowReserved||"never":!1,y=a.ecmaFeatures||{},_=a.sourceType==="commonjs"||!!y.globalReturn;if(c==="module"&&u<6)throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},a,{ecmaVersion:u,sourceType:c,ranges:h,locations:l,allowReserved:f,allowReturnOutsideFunction:_})}var re=Symbol("espree's internal state"),ut=Symbol("espree's esprimaFinishNode");function Qs(a,u,c,h,l,f,y){let _;a?_="Block":y.slice(c,c+2)==="#!"?_="Hashbang":_="Line";let L={type:_,value:u};return typeof c=="number"&&(L.start=c,L.end=h,L.range=[c,h]),typeof l=="object"&&(L.loc={start:l,end:f}),L}var gi=()=>a=>{let u=Object.assign({},a.acorn.tokTypes);return a.acornJsx&&Object.assign(u,a.acornJsx.tokTypes),class extends a{constructor(h,l){(typeof h!="object"||h===null)&&(h={}),typeof l!="string"&&!(l instanceof String)&&(l=String(l));let f=h.sourceType,y=Hs(h),_=y.ecmaFeatures||{},L=y.tokens===!0?new ht(u,l):null,P={originalSourceType:f||y.sourceType,tokens:L?[]:null,comments:y.comment===!0?[]:null,impliedStrict:_.impliedStrict===!0&&y.ecmaVersion>=5,ecmaVersion:y.ecmaVersion,jsxAttrValueToken:!1,lastToken:null,templateElements:[]};super({ecmaVersion:y.ecmaVersion,sourceType:y.sourceType,ranges:y.ranges,locations:y.locations,allowReserved:y.allowReserved,allowReturnOutsideFunction:y.allowReturnOutsideFunction,onToken(D){L&&L.onToken(D,P),D.type!==u.eof&&(P.lastToken=D)},onComment(D,G,F,d,x,b){if(P.comments){let k=Qs(D,G,F,d,x,b,l);P.comments.push(k)}}},l),this[re]=P}tokenize(){do this.next();while(this.type!==u.eof);this.next();let h=this[re],l=h.tokens;return h.comments&&(l.comments=h.comments),l}finishNode(...h){let l=super.finishNode(...h);return this[ut](l)}finishNodeAt(...h){let l=super.finishNodeAt(...h);return this[ut](l)}parse(){let h=this[re],l=super.parse();if(l.sourceType=h.originalSourceType,h.comments&&(l.comments=h.comments),h.tokens&&(l.tokens=h.tokens),l.body.length){let[f]=l.body;l.range&&(l.range[0]=f.range[0]),l.loc&&(l.loc.start=f.loc.start),l.start=f.start}return h.lastToken&&(l.range&&(l.range[1]=h.lastToken.range[1]),l.loc&&(l.loc.end=h.lastToken.loc.end),l.end=h.lastToken.end),this[re].templateElements.forEach(f=>{let _=f.tail?1:2;f.start+=-1,f.end+=_,f.range&&(f.range[0]+=-1,f.range[1]+=_),f.loc&&(f.loc.start.column+=-1,f.loc.end.column+=_)}),l}parseTopLevel(h){return this[re].impliedStrict&&(this.strict=!0),super.parseTopLevel(h)}raise(h,l){let f=a.acorn.getLineInfo(this.input,h),y=new SyntaxError(l);throw y.index=h,y.lineNumber=f.line,y.column=f.column+1,y}raiseRecoverable(h,l){this.raise(h,l)}unexpected(h){let l="Unexpected token";if(h!=null){if(this.pos=h,this.options.locations)for(;this.posthis.start&&(l+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,l)}jsx_readString(h){let l=super.jsx_readString(h);return this.type===u.string&&(this[re].jsxAttrValueToken=!0),l}[ut](h){return h.type==="TemplateElement"&&this[re].templateElements.push(h),h.type.includes("Function")&&!h.generator&&(h.generator=!1),h}}},Ys={_regular:null,_jsx:null,get regular(){return this._regular===null&&(this._regular=yi.Parser.extend(gi())),this._regular},get jsx(){return this._jsx===null&&(this._jsx=yi.Parser.extend(Js.default(),gi())),this._jsx},get(a){return!!(a&&a.ecmaFeatures&&a.ecmaFeatures.jsx)?this.jsx:this.regular}};function $s(a,u){let c=Ys.get(u);return new c(u,a).parse()}var Zs="espree";Ke.name=Zs;Ke.parse=$s});var rr={};ss(rr,{parsers:()=>sr});function ns(a,u){let c=new SyntaxError(a+" ("+u.loc.start.line+":"+u.loc.start.column+")");return Object.assign(c,u)}var Oe=ns;function os(a){let u=[];for(let c of a)try{return c()}catch(h){u.push(h)}throw Object.assign(new Error("All combinations failed"),{errors:u})}var Be=os;var ce=rs(ii(),1);function ys(a){if(!a.startsWith("#!"))return"";let u=a.indexOf(` +`);return u===-1?a:a.slice(0,u)}var si=ys;function gs(a){let u=si(a);u&&(a=a.slice(u.length+1));let c=(0,ce.extract)(a),{pragmas:h,comments:l}=(0,ce.parseWithComments)(c);return{shebang:u,text:a,pragmas:h,comments:l}}function ri(a){let{pragmas:u}=gs(a);return Object.prototype.hasOwnProperty.call(u,"prettier")||Object.prototype.hasOwnProperty.call(u,"format")}function vs(a){return Array.isArray(a)&&a.length>0}var De=vs;function M(a){var h;let u=a.range?a.range[0]:a.start,c=((h=a.declaration)==null?void 0:h.decorators)??a.decorators;return De(c)?Math.min(M(c[0]),u):u}function z(a){return a.range?a.range[1]:a.end}function bs(a){return a=typeof a=="function"?{parse:a}:a,{astFormat:"estree",hasPragma:ri,locStart:M,locEnd:z,...a}}var Fe=bs;var Ss=(a,u,c)=>{if(!(a&&u==null))return Array.isArray(u)||typeof u=="string"?u[c<0?u.length+c:c]:u.at(c)},et=Ss;function _s(a){return a=new Set(a),u=>a.has(u==null?void 0:u.type)}var ai=_s;var Cs=ai(["Block","CommentBlock","MultiLine"]),Se=Cs;function ks(a){return Se(a)&&a.value[0]==="*"&&/@(?:type|satisfies)\b/.test(a.value)}var ni=ks;function Ts(a){let u=`*${a.value}*`.split(` +`);return u.length>1&&u.every(c=>c.trimStart()[0]==="*")}var tt=Ts;var _e=null;function Ce(a){if(_e!==null&&typeof _e.property){let u=_e;return _e=Ce.prototype=null,u}return _e=Ce.prototype=a??Object.create(null),new Ce}var ws=10;for(let a=0;a<=ws;a++)Ce();function it(a){return Ce(a)}function Es(a,u="type"){it(a);function c(h){let l=h[u],f=a[l];if(!Array.isArray(f))throw Object.assign(new Error(`Missing visitor keys for '${l}'.`),{node:h});return f}return c}var oi=Es;var ui={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","assertions","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes","assertions"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes","assertions"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ImportExpression:["source","attributes"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareEnum:["id","body"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]};var As=oi(ui),hi=As;function st(a,u){if(!(a!==null&&typeof a=="object"))return a;if(Array.isArray(a)){for(let h=0;h{var _;(_=y.leadingComments)!=null&&_.some(ni)&&f.add(M(y))}),a=je(a,y=>{if(y.type==="ParenthesizedExpression"){let{expression:_}=y;if(_.type==="TypeCastExpression")return _.range=y.range,_;let L=M(y);if(!f.has(L))return _.extra={..._.extra,parenthesized:!0},_}})}if(a=je(a,f=>{switch(f.type){case"LogicalExpression":if(pi(f))return rt(f);break;case"VariableDeclaration":{let y=et(!1,f.declarations,-1);y!=null&&y.init&&l(f,y);break}case"TSParenthesizedType":return f.typeAnnotation;case"TSTypeParameter":if(typeof f.name=="string"){let y=M(f);f.name={type:"Identifier",name:f.name,range:[y,y+f.name.length]}}break;case"TopicReference":a.extra={...a.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":{let{exported:y}=f;if(c==="meriyah"&&(y==null?void 0:y.type)==="Identifier"){let _=h.slice(M(y),z(y));(_.startsWith('"')||_.startsWith("'"))&&(f.exported={...f.exported,type:"Literal",value:f.exported.name,raw:_})}break}case"TSUnionType":case"TSIntersectionType":if(f.types.length===1)return f.types[0];break}}),De(a.comments)){let f=et(!1,a.comments,-1);for(let y=a.comments.length-2;y>=0;y--){let _=a.comments[y];z(_)===M(f)&&Se(_)&&Se(f)&&tt(_)&&tt(f)&&(a.comments.splice(y+1,1),_.value+="*//*"+f.value,_.range=[M(_),z(f)]),f=_}}return a.type==="Program"&&(a.range=[0,h.length]),a;function l(f,y){h[z(y)]!==";"&&(f.range=[M(f),z(y)])}}function pi(a){return a.type==="LogicalExpression"&&a.right.type==="LogicalExpression"&&a.operator===a.right.operator}function rt(a){return pi(a)?rt({type:"LogicalExpression",operator:a.operator,left:rt({type:"LogicalExpression",operator:a.operator,left:a.left,right:a.right.left,range:[M(a.left),z(a.right.left)]}),right:a.right.right,range:[M(a),z(a)]}):a}var Me=Ps;function Is(a){let{filepath:u}=a;if(u){if(u=u.toLowerCase(),u.endsWith(".cjs"))return"script";if(u.endsWith(".mjs"))return"module"}}var Ue=Is;var Os={ecmaVersion:"latest",allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,locations:!0,ranges:!0};function Bs(a){let{message:u,loc:c}=a;if(!c)return a;let{line:h,column:l}=c;return Oe(u.replace(/ \(\d+:\d+\)$/,""),{loc:{start:{line:h,column:l+1}},cause:a})}var ot,Ds=()=>{if(!ot){let{Parser:a}=ke(),u=nt();ot=a.extend(u())}return ot};function Fs(a,u){let c=Ds(),h=[],l=[],f=c.parse(a,{...Os,sourceType:u,allowImportExportEverywhere:u==="module",onComment:h,onToken:l});return f.comments=h,f.tokens=l,f}function js(a,u={}){let c=Ue(u),h=(c?[c]:["module","script"]).map(f=>()=>Fs(a,f)),l;try{l=Be(h)}catch({errors:[f]}){throw Bs(f)}return Me(l,{text:a})}var xi=Fe(js);var er={ecmaVersion:"latest",range:!0,loc:!0,comment:!0,tokens:!0,sourceType:"module",ecmaFeatures:{jsx:!0,globalReturn:!0,impliedStrict:!1}};function tr(a){let{message:u,lineNumber:c,column:h}=a;return typeof c!="number"?a:Oe(u,{loc:{start:{line:c,column:h}},cause:a})}function ir(a,u={}){let{parse:c}=vi(),h=Ue(u),l=(h?[h]:["module","script"]).map(y=>()=>c(a,{...er,sourceType:y})),f;try{f=Be(l)}catch({errors:[y]}){throw tr(y)}return Me(f,{text:a})}var bi=Fe(ir);var sr={acorn:xi,espree:bi};return as(rr);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/acorn.mjs b/node_modules/prettier/plugins/acorn.mjs index 56e4bcc..97b5192 100644 --- a/node_modules/prettier/plugins/acorn.mjs +++ b/node_modules/prettier/plugins/acorn.mjs @@ -1,13 +1,13 @@ -var Zi=Object.create;var et=Object.defineProperty;var es=Object.getOwnPropertyDescriptor;var ts=Object.getOwnPropertyNames;var is=Object.getPrototypeOf,ss=Object.prototype.hasOwnProperty;var Se=(a,u)=>()=>(u||a((u={exports:{}}).exports,u),u.exports),rs=(a,u)=>{for(var c in u)et(a,c,{get:u[c],enumerable:!0})},as=(a,u,c,h)=>{if(u&&typeof u=="object"||typeof u=="function")for(let l of ts(u))!ss.call(a,l)&&l!==c&&et(a,l,{get:()=>u[l],enumerable:!(h=es(u,l))||h.enumerable});return a};var ns=(a,u,c)=>(c=a!=null?Zi(is(a)):{},as(u||!a||!a.__esModule?et(c,"default",{value:a,enumerable:!0}):c,a));var si=Se(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.extract=ds;se.parse=xs;se.parseWithComments=ii;se.print=ys;se.strip=ms;var hs=/\*\/$/,ps=/^\/\*\*?/,ei=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,cs=/(^|\s+)\/\/([^\r\n]*)/g,Yt=/^(\r?\n)+/,ls=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,$t=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,fs=/(\r?\n|^) *\* ?/g,ti=[];function ds(a){let u=a.match(ei);return u?u[0].trimLeft():""}function ms(a){let u=a.match(ei);return u&&u[0]?a.substring(u[0].length):a}function xs(a){return ii(a).pragmas}function ii(a){let u=` -`;a=a.replace(ps,"").replace(hs,"").replace(fs,"$1");let c="";for(;c!==a;)c=a,a=a.replace(ls,`${u}$1 $2${u}`);a=a.replace(Yt,"").trimRight();let h=Object.create(null),l=a.replace($t,"").replace(Yt,"").trimRight(),f;for(;f=$t.exec(a);){let m=f[2].replace(cs,"");typeof h[f[1]]=="string"||Array.isArray(h[f[1]])?h[f[1]]=ti.concat(h[f[1]],m):h[f[1]]=m}return{comments:l,pragmas:h}}function ys({comments:a="",pragmas:u={}}){let c=` -`,h="/**",l=" *",f=" */",m=Object.keys(u),_=m.map(P=>Zt(P,u[P])).reduce((P,D)=>P.concat(D),[]).map(P=>`${l} ${P}${c}`).join("");if(!a){if(m.length===0)return"";if(m.length===1&&!Array.isArray(u[m[0]])){let P=u[m[0]];return`${h} ${Zt(m[0],P)[0]}${f}`}}let L=a.split(c).map(P=>`${l} ${P}`).join(c)+c;return h+c+(a?L:"")+(a&&m.length?l+c:"")+_+f}function Zt(a,u){return ti.concat(u).map(c=>`@${a} ${c}`.trim())}});var Ee=Se((qe,li)=>{(function(a,u){typeof qe=="object"&&typeof li<"u"?u(qe):typeof define=="function"&&define.amd?define(["exports"],u):(a=typeof globalThis<"u"?globalThis:a||self,u(a.acorn={}))})(qe,function(a){"use strict";var u=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],c=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],h="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F",l="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",f={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",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},m="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",_={5:m,"5module":m+" export import",6:m+" const class extends export import super"},L=/^in(stanceof)?$/,P=new RegExp("["+l+"]"),D=new RegExp("["+l+h+"]");function G(e,t){for(var i=65536,s=0;se)return!1;if(i+=t[s+1],i>=e)return!0}return!1}function F(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&P.test(String.fromCharCode(e)):t===!1?!1:G(e,c)}function d(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&D.test(String.fromCharCode(e)):t===!1?!1:G(e,c)||G(e,u)}var y=function(t,i){i===void 0&&(i={}),this.label=t,this.keyword=i.keyword,this.beforeExpr=!!i.beforeExpr,this.startsExpr=!!i.startsExpr,this.isLoop=!!i.isLoop,this.isAssign=!!i.isAssign,this.prefix=!!i.prefix,this.postfix=!!i.postfix,this.binop=i.binop||null,this.updateContext=null};function b(e,t){return new y(e,{beforeExpr:!0,binop:t})}var k={beforeExpr:!0},N={startsExpr:!0},H={};function E(e,t){return t===void 0&&(t={}),t.keyword=e,H[e]=new y(e,t)}var r={num:new y("num",N),regexp:new y("regexp",N),string:new y("string",N),name:new y("name",N),privateId:new y("privateId",N),eof:new y("eof"),bracketL:new y("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new y("]"),braceL:new y("{",{beforeExpr:!0,startsExpr:!0}),braceR:new y("}"),parenL:new y("(",{beforeExpr:!0,startsExpr:!0}),parenR:new y(")"),comma:new y(",",k),semi:new y(";",k),colon:new y(":",k),dot:new y("."),question:new y("?",k),questionDot:new y("?."),arrow:new y("=>",k),template:new y("template"),invalidTemplate:new y("invalidTemplate"),ellipsis:new y("...",k),backQuote:new y("`",N),dollarBraceL:new y("${",{beforeExpr:!0,startsExpr:!0}),eq:new y("=",{beforeExpr:!0,isAssign:!0}),assign:new y("_=",{beforeExpr:!0,isAssign:!0}),incDec:new y("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new y("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:b("||",1),logicalAND:b("&&",2),bitwiseOR:b("|",3),bitwiseXOR:b("^",4),bitwiseAND:b("&",5),equality:b("==/!=/===/!==",6),relational:b("/<=/>=",7),bitShift:b("<>/>>>",8),plusMin:new y("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:b("%",10),star:b("*",10),slash:b("/",10),starstar:new y("**",{beforeExpr:!0}),coalesce:b("??",1),_break:E("break"),_case:E("case",k),_catch:E("catch"),_continue:E("continue"),_debugger:E("debugger"),_default:E("default",k),_do:E("do",{isLoop:!0,beforeExpr:!0}),_else:E("else",k),_finally:E("finally"),_for:E("for",{isLoop:!0}),_function:E("function",N),_if:E("if"),_return:E("return",k),_switch:E("switch"),_throw:E("throw",k),_try:E("try"),_var:E("var"),_const:E("const"),_while:E("while",{isLoop:!0}),_with:E("with"),_new:E("new",{beforeExpr:!0,startsExpr:!0}),_this:E("this",N),_super:E("super",N),_class:E("class",N),_extends:E("extends",k),_export:E("export"),_import:E("import",N),_null:E("null",N),_true:E("true",N),_false:E("false",N),_in:E("in",{beforeExpr:!0,binop:7}),_instanceof:E("instanceof",{beforeExpr:!0,binop:7}),_typeof:E("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:E("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:E("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},j=/\r\n?|\n|\u2028|\u2029/,ft=new RegExp(j.source,"g");function te(e){return e===10||e===13||e===8232||e===8233}function dt(e,t,i){i===void 0&&(i=e.length);for(var s=t;s>10)+55296,(e&1023)+56320))}var ki=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,ae=function(t,i){this.line=t,this.column=i};ae.prototype.offset=function(t){return new ae(this.line,this.column+t)};var de=function(t,i,s){this.start=i,this.end=s,t.sourceFile!==null&&(this.source=t.sourceFile)};function Ge(e,t){for(var i=1,s=0;;){var n=dt(e,s,t);if(n<0)return new ae(i,t-s);++i,s=n}}var Ae={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},yt=!1;function Ti(e){var t={};for(var i in Ae)t[i]=e&&fe(e,i)?e[i]:Ae[i];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!yt&&typeof console=="object"&&console.warn&&(yt=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required. -Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),xt(t.onToken)){var s=t.onToken;t.onToken=function(n){return s.push(n)}}return xt(t.onComment)&&(t.onComment=Ei(t,t.onComment)),t}function Ei(e,t){return function(i,s,n,o,p,x){var g={type:i?"Block":"Line",value:s,start:n,end:o};e.locations&&(g.loc=new de(this,p,x)),e.ranges&&(g.range=[n,o]),t.push(g)}}var me=1,ne=2,ze=4,gt=8,vt=16,bt=32,We=64,St=128,xe=256,Xe=me|ne|xe;function He(e,t){return ne|(e?ze:0)|(t?gt:0)}var Pe=0,Qe=1,Q=2,_t=3,Ct=4,kt=5,V=function(t,i,s){this.options=t=Ti(t),this.sourceFile=t.sourceFile,this.keywords=$(_[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var n="";t.allowReserved!==!0&&(n=f[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(n+=" await")),this.reservedWords=$(n);var o=(n?n+" ":"")+f.strict;this.reservedWordsStrict=$(o),this.reservedWordsStrictBind=$(o+" "+f.strictBind),this.input=String(i),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf(` -`,s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(j).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=r.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(me),this.regexpState=null,this.privateNameStack=[]},z={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};V.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)},z.inFunction.get=function(){return(this.currentVarScope().flags&ne)>0},z.inGenerator.get=function(){return(this.currentVarScope().flags>)>0&&!this.currentVarScope().inClassFieldInit},z.inAsync.get=function(){return(this.currentVarScope().flags&ze)>0&&!this.currentVarScope().inClassFieldInit},z.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&xe)return!1;if(t.flags&ne)return(t.flags&ze)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},z.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&We)>0||i||this.options.allowSuperOutsideMethod},z.allowDirectSuper.get=function(){return(this.currentThisScope().flags&St)>0},z.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},z.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&(ne|xe))>0||i},z.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&xe)>0},V.extend=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];for(var s=this,n=0;n=,?^&]/.test(n)||n==="!"&&this.input.charAt(s+1)==="=")}e+=t[0].length,U.lastIndex=e,e+=U.exec(this.input)[0].length,this.input[e]===";"&&e++}},O.eat=function(e){return this.type===e?(this.next(),!0):!1},O.isContextual=function(e){return this.type===r.name&&this.value===e&&!this.containsEsc},O.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},O.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},O.canInsertSemicolon=function(){return this.type===r.eof||this.type===r.braceR||j.test(this.input.slice(this.lastTokEnd,this.start))},O.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},O.semicolon=function(){!this.eat(r.semi)&&!this.insertSemicolon()&&this.unexpected()},O.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},O.expect=function(e){this.eat(e)||this.unexpected()},O.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var Ie=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};O.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var i=t?e.parenthesizedAssign:e.parenthesizedBind;i>-1&&this.raiseRecoverable(i,t?"Assigning to rvalue":"Parenthesized pattern")}},O.checkExpressionErrors=function(e,t){if(!e)return!1;var i=e.shorthandAssign,s=e.doubleProto;if(!t)return i>=0||s>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")},O.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&s<56320)return!0;if(F(s,!0)){for(var n=i+1;d(s=this.input.charCodeAt(n),!0);)++n;if(s===92||s>55295&&s<56320)return!0;var o=this.input.slice(i,n);if(!L.test(o))return!0}return!1},S.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;U.lastIndex=this.pos;var e=U.exec(this.input),t=this.pos+e[0].length,i;return!j.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(d(i=this.input.charCodeAt(t+8))||i>55295&&i<56320))},S.parseStatement=function(e,t,i){var s=this.type,n=this.startNode(),o;switch(this.isLet(e)&&(s=r._var,o="let"),s){case r._break:case r._continue:return this.parseBreakContinueStatement(n,s.keyword);case r._debugger:return this.parseDebuggerStatement(n);case r._do:return this.parseDoStatement(n);case r._for:return this.parseForStatement(n);case r._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(n,!1,!e);case r._class:return e&&this.unexpected(),this.parseClass(n,!0);case r._if:return this.parseIfStatement(n);case r._return:return this.parseReturnStatement(n);case r._switch:return this.parseSwitchStatement(n);case r._throw:return this.parseThrowStatement(n);case r._try:return this.parseTryStatement(n);case r._const:case r._var:return o=o||this.value,e&&o!=="var"&&this.unexpected(),this.parseVarStatement(n,o);case r._while:return this.parseWhileStatement(n);case r._with:return this.parseWithStatement(n);case r.braceL:return this.parseBlock(!0,n);case r.semi:return this.parseEmptyStatement(n);case r._export:case r._import:if(this.options.ecmaVersion>10&&s===r._import){U.lastIndex=this.pos;var p=U.exec(this.input),x=this.pos+p[0].length,g=this.input.charCodeAt(x);if(g===40||g===46)return this.parseExpressionStatement(n,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),s===r._import?this.parseImport(n):this.parseExport(n,i);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(n,!0,!e);var T=this.value,w=this.parseExpression();return s===r.name&&w.type==="Identifier"&&this.eat(r.colon)?this.parseLabeledStatement(n,T,w,e):this.parseExpressionStatement(n,w)}},S.parseBreakContinueStatement=function(e,t){var i=t==="break";this.next(),this.eat(r.semi)||this.insertSemicolon()?e.label=null:this.type!==r.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var s=0;s=6?this.eat(r.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},S.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Ye),this.enterScope(0),this.expect(r.parenL),this.type===r.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var i=this.isLet();if(this.type===r._var||this.type===r._const||i){var s=this.startNode(),n=i?"let":this.value;return this.next(),this.parseVar(s,!0,n),this.finishNode(s,"VariableDeclaration"),(this.type===r._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&s.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===r._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,s)):(t>-1&&this.unexpected(t),this.parseFor(e,s))}var o=this.isContextual("let"),p=!1,x=new Ie,g=this.parseExpression(t>-1?"await":!0,x);return this.type===r._in||(p=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===r._in?t>-1&&this.unexpected(t):e.await=t>-1),o&&p&&this.raise(g.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(g,!1,x),this.checkLValPattern(g),this.parseForIn(e,g)):(this.checkExpressionErrors(x,!0),t>-1&&this.unexpected(t),this.parseFor(e,g))},S.parseFunctionStatement=function(e,t,i){return this.next(),this.parseFunction(e,ye|(i?0:$e),!1,t)},S.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(r._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},S.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(r.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},S.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(r.braceL),this.labels.push(Ai),this.enterScope(0);for(var t,i=!1;this.type!==r.braceR;)if(this.type===r._case||this.type===r._default){var s=this.type===r._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),s?t.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,t.test=null),this.expect(r.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},S.parseThrowStatement=function(e){return this.next(),j.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Pi=[];S.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?bt:0),this.checkLValPattern(e,t?Ct:Q),this.expect(r.parenR),e},S.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===r._catch){var t=this.startNode();this.next(),this.eat(r.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(r._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},S.parseVarStatement=function(e,t,i){return this.next(),this.parseVar(e,!1,t,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")},S.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Ye),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},S.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},S.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},S.parseLabeledStatement=function(e,t,i,s){for(var n=0,o=this.labels;n=0;g--){var T=this.labels[g];if(T.statementStart===e.start)T.statementStart=this.start,T.kind=x;else break}return this.labels.push({name:t,kind:x,statementStart:this.start}),e.body=this.parseStatement(s?s.indexOf("label")===-1?s+"label":s:"label"),this.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")},S.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},S.parseBlock=function(e,t,i){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(r.braceL),e&&this.enterScope(0);this.type!==r.braceR;){var s=this.parseStatement(null);t.body.push(s)}return i&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},S.parseFor=function(e,t){return e.init=t,this.expect(r.semi),e.test=this.type===r.semi?null:this.parseExpression(),this.expect(r.semi),e.update=this.type===r.parenR?null:this.parseExpression(),this.expect(r.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},S.parseForIn=function(e,t){var i=this.type===r._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!i||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(r.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")},S.parseVar=function(e,t,i,s){for(e.declarations=[],e.kind=i;;){var n=this.startNode();if(this.parseVarId(n,i),this.eat(r.eq)?n.init=this.parseMaybeAssign(t):!s&&i==="const"&&!(this.type===r._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!s&&n.id.type!=="Identifier"&&!(t&&(this.type===r._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):n.init=null,e.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(r.comma))break}return e},S.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?Qe:Q,!1)};var ye=1,$e=2,Tt=4;S.parseFunction=function(e,t,i,s,n){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===r.star&&t&$e&&this.unexpected(),e.generator=this.eat(r.star)),this.options.ecmaVersion>=8&&(e.async=!!s),t&ye&&(e.id=t&Tt&&this.type!==r.name?null:this.parseIdent(),e.id&&!(t&$e)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Qe:Q:_t));var o=this.yieldPos,p=this.awaitPos,x=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(He(e.async,e.generator)),t&ye||(e.id=this.type===r.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,i,!1,n),this.yieldPos=o,this.awaitPos=p,this.awaitIdentPos=x,this.finishNode(e,t&ye?"FunctionDeclaration":"FunctionExpression")},S.parseFunctionParams=function(e){this.expect(r.parenL),e.params=this.parseBindingList(r.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},S.parseClass=function(e,t){this.next();var i=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var s=this.enterClassBody(),n=this.startNode(),o=!1;for(n.body=[],this.expect(r.braceL);this.type!==r.braceR;){var p=this.parseClassElement(e.superClass!==null);p&&(n.body.push(p),p.type==="MethodDefinition"&&p.kind==="constructor"?(o&&this.raiseRecoverable(p.start,"Duplicate constructor in the same class"),o=!0):p.key&&p.key.type==="PrivateIdentifier"&&Ii(s,p)&&this.raiseRecoverable(p.key.start,"Identifier '#"+p.key.name+"' has already been declared"))}return this.strict=i,this.next(),e.body=this.finishNode(n,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},S.parseClassElement=function(e){if(this.eat(r.semi))return null;var t=this.options.ecmaVersion,i=this.startNode(),s="",n=!1,o=!1,p="method",x=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(r.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===r.star?x=!0:s="static"}if(i.static=x,!s&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===r.star)&&!this.canInsertSemicolon()?o=!0:s="async"),!s&&(t>=9||!o)&&this.eat(r.star)&&(n=!0),!s&&!o&&!n){var g=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?p=g:s=g)}if(s?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=s,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),t<13||this.type===r.parenL||p!=="method"||n||o){var T=!i.static&&Ne(i,"constructor"),w=T&&e;T&&p!=="method"&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=T?"constructor":p,this.parseClassMethod(i,n,o,w)}else this.parseClassField(i);return i},S.isClassElementNameStart=function(){return this.type===r.name||this.type===r.privateId||this.type===r.num||this.type===r.string||this.type===r.bracketL||this.type.keyword},S.parseClassElementName=function(e){this.type===r.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},S.parseClassMethod=function(e,t,i,s){var n=e.key;e.kind==="constructor"?(t&&this.raise(n.start,"Constructor can't be a generator"),i&&this.raise(n.start,"Constructor can't be an async method")):e.static&&Ne(e,"prototype")&&this.raise(n.start,"Classes may not have a static property named prototype");var o=e.value=this.parseMethod(t,i,s);return e.kind==="get"&&o.params.length!==0&&this.raiseRecoverable(o.start,"getter should have no params"),e.kind==="set"&&o.params.length!==1&&this.raiseRecoverable(o.start,"setter should have exactly one param"),e.kind==="set"&&o.params[0].type==="RestElement"&&this.raiseRecoverable(o.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},S.parseClassField=function(e){if(Ne(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Ne(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(r.eq)){var t=this.currentThisScope(),i=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=i}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},S.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(xe|We);this.type!==r.braceR;){var i=this.parseStatement(null);e.body.push(i)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},S.parseClassId=function(e,t){this.type===r.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,Q,!1)):(t===!0&&this.unexpected(),e.id=null)},S.parseClassSuper=function(e){e.superClass=this.eat(r._extends)?this.parseExprSubscripts(null,!1):null},S.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},S.exitClassBody=function(){for(var e=this.privateNameStack.pop(),t=e.declared,i=e.used,s=this.privateNameStack.length,n=s===0?null:this.privateNameStack[s-1],o=0;o=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==r.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},S.parseExport=function(e,t){if(this.next(),this.eat(r.star))return this.parseExportAllDeclaration(e,t);if(this.eat(r._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==r.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var i=0,s=e.specifiers;i=13&&this.type===r.string){var e=this.parseLiteral(this.value);return ki.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},S.adaptDirectivePrologue=function(e){for(var t=0;t=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var q=V.prototype;q.toAssignable=function(e,t,i){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var s=0,n=e.properties;s=8&&!x&&g.name==="async"&&!this.canInsertSemicolon()&&this.eat(r._function))return this.overrideContext(I.f_expr),this.parseFunction(this.startNodeAt(o,p),0,!1,!0,t);if(n&&!this.canInsertSemicolon()){if(this.eat(r.arrow))return this.parseArrowExpression(this.startNodeAt(o,p),[g],!1,t);if(this.options.ecmaVersion>=8&&g.name==="async"&&this.type===r.name&&!x&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return g=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(r.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(o,p),[g],!0,t)}return g;case r.regexp:var T=this.value;return s=this.parseLiteral(T.value),s.regex={pattern:T.pattern,flags:T.flags},s;case r.num:case r.string:return this.parseLiteral(this.value);case r._null:case r._true:case r._false:return s=this.startNode(),s.value=this.type===r._null?null:this.type===r._true,s.raw=this.type.keyword,this.next(),this.finishNode(s,"Literal");case r.parenL:var w=this.start,R=this.parseParenAndDistinguishExpression(n,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(R)&&(e.parenthesizedAssign=w),e.parenthesizedBind<0&&(e.parenthesizedBind=w)),R;case r.bracketL:return s=this.startNode(),this.next(),s.elements=this.parseExprList(r.bracketR,!0,!0,e),this.finishNode(s,"ArrayExpression");case r.braceL:return this.overrideContext(I.b_expr),this.parseObj(!1,e);case r._function:return s=this.startNode(),this.next(),this.parseFunction(s,0);case r._class:return this.parseClass(this.startNode(),!1);case r._new:return this.parseNew();case r.backQuote:return this.parseTemplate();case r._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}},C.parseExprAtomDefault=function(){this.unexpected()},C.parseExprImport=function(e){var t=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var i=this.parseIdent(!0);if(this.type===r.parenL&&!e)return this.parseDynamicImport(t);if(this.type===r.dot)return t.meta=i,this.parseImportMeta(t);this.unexpected()},C.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(r.parenR)){var t=this.start;this.eat(r.comma)&&this.eat(r.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},C.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},C.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},C.parseParenExpression=function(){this.expect(r.parenL);var e=this.parseExpression();return this.expect(r.parenR),e},C.shouldParseArrow=function(e){return!this.canInsertSemicolon()},C.parseParenAndDistinguishExpression=function(e,t){var i=this.start,s=this.startLoc,n,o=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var p=this.start,x=this.startLoc,g=[],T=!0,w=!1,R=new Ie,ie=this.yieldPos,be=this.awaitPos,ue;for(this.yieldPos=0,this.awaitPos=0;this.type!==r.parenR;)if(T?T=!1:this.expect(r.comma),o&&this.afterTrailingComma(r.parenR,!0)){w=!0;break}else if(this.type===r.ellipsis){ue=this.start,g.push(this.parseParenItem(this.parseRestBinding())),this.type===r.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else g.push(this.parseMaybeAssign(!1,R,this.parseParenItem));var Oe=this.lastTokEnd,he=this.lastTokEndLoc;if(this.expect(r.parenR),e&&this.shouldParseArrow(g)&&this.eat(r.arrow))return this.checkPatternErrors(R,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=ie,this.awaitPos=be,this.parseParenArrowList(i,s,g,t);(!g.length||w)&&this.unexpected(this.lastTokStart),ue&&this.unexpected(ue),this.checkExpressionErrors(R,!0),this.yieldPos=ie||this.yieldPos,this.awaitPos=be||this.awaitPos,g.length>1?(n=this.startNodeAt(p,x),n.expressions=g,this.finishNodeAt(n,"SequenceExpression",Oe,he)):n=g[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var pe=this.startNodeAt(i,s);return pe.expression=n,this.finishNode(pe,"ParenthesizedExpression")}else return n},C.parseParenItem=function(e){return e},C.parseParenArrowList=function(e,t,i,s){return this.parseArrowExpression(this.startNodeAt(e,t),i,!1,s)};var Ni=[];C.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(r.dot)){e.meta=t;var i=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var s=this.start,n=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),s,n,!0,!1),this.eat(r.parenL)?e.arguments=this.parseExprList(r.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Ni,this.finishNode(e,"NewExpression")},C.parseTemplateElement=function(e){var t=e.isTagged,i=this.startNode();return this.type===r.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value,cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,` -`),cooked:this.value},this.next(),i.tail=this.type===r.backQuote,this.finishNode(i,"TemplateElement")},C.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var i=this.startNode();this.next(),i.expressions=[];var s=this.parseTemplateElement({isTagged:t});for(i.quasis=[s];!s.tail;)this.type===r.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(r.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(r.braceR),i.quasis.push(s=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")},C.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===r.name||this.type===r.num||this.type===r.string||this.type===r.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===r.star)&&!j.test(this.input.slice(this.lastTokEnd,this.start))},C.parseObj=function(e,t){var i=this.startNode(),s=!0,n={};for(i.properties=[],this.next();!this.eat(r.braceR);){if(s)s=!1;else if(this.expect(r.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(r.braceR))break;var o=this.parseProperty(e,t);e||this.checkPropClash(o,n,t),i.properties.push(o)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")},C.parseProperty=function(e,t){var i=this.startNode(),s,n,o,p;if(this.options.ecmaVersion>=9&&this.eat(r.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===r.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(i.argument=this.parseMaybeAssign(!1,t),this.type===r.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(i,"SpreadElement"));this.options.ecmaVersion>=6&&(i.method=!1,i.shorthand=!1,(e||t)&&(o=this.start,p=this.startLoc),e||(s=this.eat(r.star)));var x=this.containsEsc;return this.parsePropertyName(i),!e&&!x&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(i)?(n=!0,s=this.options.ecmaVersion>=9&&this.eat(r.star),this.parsePropertyName(i)):n=!1,this.parsePropertyValue(i,e,s,n,o,p,t,x),this.finishNode(i,"Property")},C.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t=e.kind==="get"?0:1;if(e.value.params.length!==t){var i=e.value.start;e.kind==="get"?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},C.parsePropertyValue=function(e,t,i,s,n,o,p,x){(i||s)&&this.type===r.colon&&this.unexpected(),this.eat(r.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,p),e.kind="init"):this.options.ecmaVersion>=6&&this.type===r.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(i,s)):!t&&!x&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==r.comma&&this.type!==r.braceR&&this.type!==r.eq?((i||s)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((i||s)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=n),e.kind="init",t?e.value=this.parseMaybeDefault(n,o,this.copyNode(e.key)):this.type===r.eq&&p?(p.shorthandAssign<0&&(p.shorthandAssign=this.start),e.value=this.parseMaybeDefault(n,o,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()},C.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(r.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(r.bracketR),e.key;e.computed=!1}return e.key=this.type===r.num||this.type===r.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},C.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},C.parseMethod=function(e,t,i){var s=this.startNode(),n=this.yieldPos,o=this.awaitPos,p=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=e),this.options.ecmaVersion>=8&&(s.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(He(t,s.generator)|We|(i?St:0)),this.expect(r.parenL),s.params=this.parseBindingList(r.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=n,this.awaitPos=o,this.awaitIdentPos=p,this.finishNode(s,"FunctionExpression")},C.parseArrowExpression=function(e,t,i,s){var n=this.yieldPos,o=this.awaitPos,p=this.awaitIdentPos;return this.enterScope(He(i,!1)|vt),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,s),this.yieldPos=n,this.awaitPos=o,this.awaitIdentPos=p,this.finishNode(e,"ArrowFunctionExpression")},C.parseFunctionBody=function(e,t,i,s){var n=t&&this.type!==r.braceL,o=this.strict,p=!1;if(n)e.body=this.parseMaybeAssign(s),e.expression=!0,this.checkParams(e,!1);else{var x=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!o||x)&&(p=this.strictDirective(this.end),p&&x&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var g=this.labels;this.labels=[],p&&(this.strict=!0),this.checkParams(e,!o&&!p&&!t&&!i&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,kt),e.body=this.parseBlock(!1,void 0,p&&!o),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=g}this.exitScope()},C.isSimpleParamList=function(e){for(var t=0,i=e;t-1||n.functions.indexOf(e)>-1||n.var.indexOf(e)>-1,n.lexical.push(e),this.inModule&&n.flags&me&&delete this.undefinedExports[e]}else if(t===Ct){var o=this.currentScope();o.lexical.push(e)}else if(t===_t){var p=this.currentScope();this.treatFunctionsAsVar?s=p.lexical.indexOf(e)>-1:s=p.lexical.indexOf(e)>-1||p.var.indexOf(e)>-1,p.functions.push(e)}else for(var x=this.scopeStack.length-1;x>=0;--x){var g=this.scopeStack[x];if(g.lexical.indexOf(e)>-1&&!(g.flags&bt&&g.lexical[0]===e)||!this.treatFunctionsAsVarInScope(g)&&g.functions.indexOf(e)>-1){s=!0;break}if(g.var.push(e),this.inModule&&g.flags&me&&delete this.undefinedExports[e],g.flags&Xe)break}s&&this.raiseRecoverable(i,"Identifier '"+e+"' has already been declared")},ee.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},ee.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},ee.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Xe)return t}},ee.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Xe&&!(t.flags&vt))return t}};var ge=function(t,i,s){this.type="",this.start=i,this.end=0,t.options.locations&&(this.loc=new de(t,s)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[i,0])},ve=V.prototype;ve.startNode=function(){return new ge(this,this.start,this.startLoc)},ve.startNodeAt=function(e,t){return new ge(this,e,t)};function wt(e,t,i,s){return e.type=t,e.end=i,this.options.locations&&(e.loc.end=s),this.options.ranges&&(e.range[1]=i),e}ve.finishNode=function(e,t){return wt.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},ve.finishNodeAt=function(e,t,i,s){return wt.call(this,e,t,i,s)},ve.copyNode=function(e){var t=new ge(this,e.start,this.startLoc);for(var i in e)t[i]=e[i];return t};var At="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",Pt=At+" Extended_Pictographic",It=Pt,Nt=It+" EBase EComp EMod EPres ExtPict",Vt=Nt,Li=Vt,Ri={9:At,10:Pt,11:It,12:Nt,13:Vt,14:Li},Oi="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Bi={9:"",10:"",11:"",12:"",13:"",14:Oi},Lt="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Rt="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Ot=Rt+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Bt=Ot+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Dt=Bt+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Ft=Dt+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Di=Ft+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",Fi={9:Rt,10:Ot,11:Bt,12:Dt,13:Ft,14:Di},jt={};function ji(e){var t=jt[e]={binary:$(Ri[e]+" "+Lt),binaryOfStrings:$(Bi[e]),nonBinary:{General_Category:$(Lt),Script:$(Fi[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var Ze=0,Mt=[9,10,11,12,13,14];Ze=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=jt[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};W.prototype.reset=function(t,i,s){var n=s.indexOf("v")!==-1,o=s.indexOf("u")!==-1;this.start=t|0,this.source=i+"",this.flags=s,n&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=o&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=o&&this.parser.options.ecmaVersion>=9)},W.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},W.prototype.at=function(t,i){i===void 0&&(i=!1);var s=this.source,n=s.length;if(t>=n)return-1;var o=s.charCodeAt(t);if(!(i||this.switchU)||o<=55295||o>=57344||t+1>=n)return o;var p=s.charCodeAt(t+1);return p>=56320&&p<=57343?(o<<10)+p-56613888:o},W.prototype.nextIndex=function(t,i){i===void 0&&(i=!1);var s=this.source,n=s.length;if(t>=n)return n;var o=s.charCodeAt(t),p;return!(i||this.switchU)||o<=55295||o>=57344||t+1>=n||(p=s.charCodeAt(t+1))<56320||p>57343?t+1:t+2},W.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)},W.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)},W.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)},W.prototype.eat=function(t,i){return i===void 0&&(i=!1),this.current(i)===t?(this.advance(i),!0):!1},W.prototype.eatChars=function(t,i){i===void 0&&(i=!1);for(var s=this.pos,n=0,o=t;n-1&&this.raise(e.start,"Duplicate regular expression flag"),p==="u"&&(s=!0),p==="v"&&(n=!0)}this.options.ecmaVersion>=15&&s&&n&&this.raise(e.start,"Invalid regular expression flag")},v.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},v.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,i=e.backReferenceNames;t=9&&(i=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!i,!0}return e.pos=t,!1},v.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1},v.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},v.regexp_eatBracedQuantifier=function(e,t){var i=e.pos;if(e.eat(123)){var s=0,n=-1;if(this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue),e.eat(125)))return n!==-1&&n=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},v.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},v.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},v.regexp_eatSyntaxCharacter=function(e){var t=e.current();return Ut(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Ut(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}v.regexp_eatPatternCharacters=function(e){for(var t=e.pos,i=0;(i=e.current())!==-1&&!Ut(i);)e.advance();return e.pos!==t},v.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1},v.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise("Duplicate capture group name"),e.groupNames.push(e.lastStringValue);return}e.raise("Invalid group")}},v.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},v.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Z(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Z(e.lastIntValue);return!0}return!1},v.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,s=e.current(i);return e.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(s=e.lastIntValue),Ui(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)};function Ui(e){return F(e,!0)||e===36||e===95}v.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,s=e.current(i);return e.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(s=e.lastIntValue),qi(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)};function qi(e){return d(e,!0)||e===36||e===95||e===8204||e===8205}v.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},v.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var i=e.lastIntValue;if(e.switchU)return i>e.maxBackReference&&(e.maxBackReference=i),!0;if(i<=e.numCapturingParens)return!0;e.pos=t}return!1},v.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},v.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},v.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},v.regexp_eatZero=function(e){return e.current()===48&&!Le(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1},v.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1},v.regexp_eatControlLetter=function(e){var t=e.current();return qt(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function qt(e){return e>=65&&e<=90||e>=97&&e<=122}v.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var i=e.pos,s=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var n=e.lastIntValue;if(s&&n>=55296&&n<=56319){var o=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var p=e.lastIntValue;if(p>=56320&&p<=57343)return e.lastIntValue=(n-55296)*1024+(p-56320)+65536,!0}e.pos=o,e.lastIntValue=n}return!0}if(s&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&Ki(e.lastIntValue))return!0;s&&e.raise("Invalid unicode escape"),e.pos=i}return!1};function Ki(e){return e>=0&&e<=1114111}v.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1},v.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var Kt=0,Y=1,J=2;v.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(Ji(t))return e.lastIntValue=-1,e.advance(),Y;var i=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((i=t===80)||t===112)){e.lastIntValue=-1,e.advance();var s;if(e.eat(123)&&(s=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return i&&s===J&&e.raise("Invalid property name"),s;e.raise("Invalid property name")}return Kt};function Ji(e){return e===100||e===68||e===115||e===83||e===119||e===87}v.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var i=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,i,s),Y}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,n)}return Kt},v.regexp_validateUnicodePropertyNameAndValue=function(e,t,i){fe(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(i)||e.raise("Invalid property value")},v.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return Y;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return J;e.raise("Invalid property name")},v.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Jt(t=e.current());)e.lastStringValue+=Z(t),e.advance();return e.lastStringValue!==""};function Jt(e){return qt(e)||e===95}v.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Gi(t=e.current());)e.lastStringValue+=Z(t),e.advance();return e.lastStringValue!==""};function Gi(e){return Jt(e)||Le(e)}v.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},v.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),i=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&i===J&&e.raise("Negated character class may contain strings"),!0}return!1},v.regexp_classContents=function(e){return e.current()===93?Y:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),Y)},v.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var i=e.lastIntValue;e.switchU&&(t===-1||i===-1)&&e.raise("Invalid character class"),t!==-1&&i!==-1&&t>i&&e.raise("Range out of order in character class")}}},v.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var i=e.current();(i===99||Wt(i))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var s=e.current();return s!==93?(e.lastIntValue=s,e.advance(),!0):!1},v.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},v.regexp_classSetExpression=function(e){var t=Y,i;if(!this.regexp_eatClassSetRange(e))if(i=this.regexp_eatClassSetOperand(e)){i===J&&(t=J);for(var s=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(i=this.regexp_eatClassSetOperand(e))){i!==J&&(t=Y);continue}e.raise("Invalid character in character class")}if(s!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(s!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(i=this.regexp_eatClassSetOperand(e),!i)return t;i===J&&(t=J)}},v.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var s=e.lastIntValue;return i!==-1&&s!==-1&&i>s&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},v.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?Y:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},v.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var i=e.eat(94),s=this.regexp_classContents(e);if(e.eat(93))return i&&s===J&&e.raise("Negated character class may contain strings"),s;e.pos=t}if(e.eat(92)){var n=this.regexp_eatCharacterClassEscape(e);if(n)return n;e.pos=t}return null},v.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var i=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return i}else e.raise("Invalid escape");e.pos=t}return null},v.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===J&&(t=J);return t},v.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?Y:J},v.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var i=e.current();return i<0||i===e.lookahead()&&zi(i)||Wi(i)?!1:(e.advance(),e.lastIntValue=i,!0)};function zi(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function Wi(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}v.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return Xi(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Xi(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}v.regexp_eatClassControlLetter=function(e){var t=e.current();return Le(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1},v.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},v.regexp_eatDecimalDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;Le(i=e.current());)e.lastIntValue=10*e.lastIntValue+(i-48),e.advance();return e.pos!==t};function Le(e){return e>=48&&e<=57}v.regexp_eatHexDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;Gt(i=e.current());)e.lastIntValue=16*e.lastIntValue+zt(i),e.advance();return e.pos!==t};function Gt(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function zt(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}v.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var i=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+i*8+e.lastIntValue:e.lastIntValue=t*8+i}else e.lastIntValue=t;return!0}return!1},v.regexp_eatOctalDigit=function(e){var t=e.current();return Wt(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Wt(e){return e>=48&&e<=55}v.regexp_eatFixedHexDigits=function(e,t){var i=e.pos;e.lastIntValue=0;for(var s=0;s=this.input.length)return this.finishToken(r.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())},A.readToken=function(e){return F(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},A.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},A.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(i===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var s=void 0,n=t;(s=dt(this.input,n,this.pos))>-1;)++this.curLine,n=this.lineStart=s;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,i),t,this.pos,e,this.curPosition())},A.skipLineComment=function(e){for(var t=this.pos,i=this.options.onComment&&this.curPosition(),s=this.input.charCodeAt(this.pos+=e);this.pos8&&e<14||e>=5760&&Je.test(String.fromCharCode(e)))++this.pos;else break e}}},A.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=e,this.value=t,this.updateContext(i)},A.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(r.ellipsis)):(++this.pos,this.finishToken(r.dot))},A.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(r.assign,2):this.finishOp(r.slash,1)},A.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),i=1,s=e===42?r.star:r.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++i,s=r.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(r.assign,i+1):this.finishOp(s,i)},A.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(r.assign,3)}return this.finishOp(e===124?r.logicalOR:r.logicalAND,2)}return t===61?this.finishOp(r.assign,2):this.finishOp(e===124?r.bitwiseOR:r.bitwiseAND,1)},A.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(r.assign,2):this.finishOp(r.bitwiseXOR,1)},A.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||j.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(r.incDec,2):t===61?this.finishOp(r.assign,2):this.finishOp(r.plusMin,1)},A.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),i=1;return t===e?(i=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+i)===61?this.finishOp(r.assign,i+1):this.finishOp(r.bitShift,i)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(i=2),this.finishOp(r.relational,i))},A.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(r.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(r.arrow)):this.finishOp(e===61?r.eq:r.prefix,1)},A.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(r.questionDot,2)}if(t===63){if(e>=12){var s=this.input.charCodeAt(this.pos+2);if(s===61)return this.finishOp(r.assign,3)}return this.finishOp(r.coalesce,2)}}return this.finishOp(r.question,1)},A.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),F(t,!0)||t===92))return this.finishToken(r.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Z(t)+"'")},A.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(r.parenL);case 41:return++this.pos,this.finishToken(r.parenR);case 59:return++this.pos,this.finishToken(r.semi);case 44:return++this.pos,this.finishToken(r.comma);case 91:return++this.pos,this.finishToken(r.bracketL);case 93:return++this.pos,this.finishToken(r.bracketR);case 123:return++this.pos,this.finishToken(r.braceL);case 125:return++this.pos,this.finishToken(r.braceR);case 58:return++this.pos,this.finishToken(r.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(r.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(r.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Z(e)+"'")},A.finishOp=function(e,t){var i=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,i)},A.readRegexp=function(){for(var e,t,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(j.test(s)&&this.raise(i,"Unterminated regular expression"),e)e=!1;else{if(s==="[")t=!0;else if(s==="]"&&t)t=!1;else if(s==="/"&&!t)break;e=s==="\\"}++this.pos}var n=this.input.slice(i,this.pos);++this.pos;var o=this.pos,p=this.readWord1();this.containsEsc&&this.unexpected(o);var x=this.regexpState||(this.regexpState=new W(this));x.reset(i,n,p),this.validateRegExpFlags(x),this.validateRegExpPattern(x);var g=null;try{g=new RegExp(n,p)}catch{}return this.finishToken(r.regexp,{pattern:n,flags:p,value:g})},A.readInt=function(e,t,i){for(var s=this.options.ecmaVersion>=12&&t===void 0,n=i&&this.input.charCodeAt(this.pos)===48,o=this.pos,p=0,x=0,g=0,T=t??1/0;g=97?R=w-97+10:w>=65?R=w-65+10:w>=48&&w<=57?R=w-48:R=1/0,R>=e)break;x=w,p=p*e+R}return s&&x===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===o||t!=null&&this.pos-o!==t?null:p};function Hi(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function Xt(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}A.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var i=this.readInt(e);return i==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(i=Xt(this.input.slice(t,this.pos)),++this.pos):F(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(r.num,i)},A.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var i=this.pos-t>=2&&this.input.charCodeAt(t)===48;i&&this.strict&&this.raise(t,"Invalid number");var s=this.input.charCodeAt(this.pos);if(!i&&!e&&this.options.ecmaVersion>=11&&s===110){var n=Xt(this.input.slice(t,this.pos));return++this.pos,F(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(r.num,n)}i&&/[89]/.test(this.input.slice(t,this.pos))&&(i=!1),s===46&&!i&&(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),(s===69||s===101)&&!i&&(s=this.input.charCodeAt(++this.pos),(s===43||s===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),F(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var o=Hi(this.input.slice(t,this.pos),i);return this.finishToken(r.num,o)},A.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var i=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(i,"Code point out of bounds")}else t=this.readHexChar(4);return t},A.readString=function(e){for(var t="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===e)break;s===92?(t+=this.input.slice(i,this.pos),t+=this.readEscapedChar(!1),i=this.pos):s===8232||s===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(te(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(i,this.pos++),this.finishToken(r.string,t)};var Ht={};A.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Ht)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},A.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Ht;this.raise(e,t)},A.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(i===96||i===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===r.template||this.type===r.invalidTemplate)?i===36?(this.pos+=2,this.finishToken(r.dollarBraceL)):(++this.pos,this.finishToken(r.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(r.template,e));if(i===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(te(i)){switch(e+=this.input.slice(t,this.pos),++this.pos,i){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=` +var $i=Object.create;var Ze=Object.defineProperty;var Zi=Object.getOwnPropertyDescriptor;var es=Object.getOwnPropertyNames;var ts=Object.getPrototypeOf,is=Object.prototype.hasOwnProperty;var be=(a,u)=>()=>(u||a((u={exports:{}}).exports,u),u.exports),ss=(a,u)=>{for(var c in u)Ze(a,c,{get:u[c],enumerable:!0})},rs=(a,u,c,h)=>{if(u&&typeof u=="object"||typeof u=="function")for(let l of es(u))!is.call(a,l)&&l!==c&&Ze(a,l,{get:()=>u[l],enumerable:!(h=Zi(u,l))||h.enumerable});return a};var as=(a,u,c)=>(c=a!=null?$i(ts(a)):{},rs(u||!a||!a.__esModule?Ze(c,"default",{value:a,enumerable:!0}):c,a));var ii=be(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.extract=fs;se.parse=ms;se.parseWithComments=ti;se.print=xs;se.strip=ds;var us=/\*\/$/,hs=/^\/\*\*?/,Zt=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,ps=/(^|\s+)\/\/([^\r\n]*)/g,Qt=/^(\r?\n)+/,cs=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,Yt=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,ls=/(\r?\n|^) *\* ?/g,ei=[];function fs(a){let u=a.match(Zt);return u?u[0].trimLeft():""}function ds(a){let u=a.match(Zt);return u&&u[0]?a.substring(u[0].length):a}function ms(a){return ti(a).pragmas}function ti(a){let u=` +`;a=a.replace(hs,"").replace(us,"").replace(ls,"$1");let c="";for(;c!==a;)c=a,a=a.replace(cs,`${u}$1 $2${u}`);a=a.replace(Qt,"").trimRight();let h=Object.create(null),l=a.replace(Yt,"").replace(Qt,"").trimRight(),f;for(;f=Yt.exec(a);){let y=f[2].replace(ps,"");typeof h[f[1]]=="string"||Array.isArray(h[f[1]])?h[f[1]]=ei.concat(h[f[1]],y):h[f[1]]=y}return{comments:l,pragmas:h}}function xs({comments:a="",pragmas:u={}}){let c=` +`,h="/**",l=" *",f=" */",y=Object.keys(u),_=y.map(P=>$t(P,u[P])).reduce((P,D)=>P.concat(D),[]).map(P=>`${l} ${P}${c}`).join("");if(!a){if(y.length===0)return"";if(y.length===1&&!Array.isArray(u[y[0]])){let P=u[y[0]];return`${h} ${$t(y[0],P)[0]}${f}`}}let L=a.split(c).map(P=>`${l} ${P}`).join(c)+c;return h+c+(a?L:"")+(a&&y.length?l+c:"")+_+f}function $t(a,u){return ei.concat(u).map(c=>`@${a} ${c}`.trim())}});var ke=be((Ue,ci)=>{(function(a,u){typeof Ue=="object"&&typeof ci<"u"?u(Ue):typeof define=="function"&&define.amd?define(["exports"],u):(a=typeof globalThis<"u"?globalThis:a||self,u(a.acorn={}))})(Ue,function(a){"use strict";var u=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],c=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],h="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F",l="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",f={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",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},y="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",_={5:y,"5module":y+" export import",6:y+" const class extends export import super"},L=/^in(stanceof)?$/,P=new RegExp("["+l+"]"),D=new RegExp("["+l+h+"]");function G(e,t){for(var i=65536,s=0;se)return!1;if(i+=t[s+1],i>=e)return!0}return!1}function F(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&P.test(String.fromCharCode(e)):t===!1?!1:G(e,c)}function d(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&D.test(String.fromCharCode(e)):t===!1?!1:G(e,c)||G(e,u)}var x=function(t,i){i===void 0&&(i={}),this.label=t,this.keyword=i.keyword,this.beforeExpr=!!i.beforeExpr,this.startsExpr=!!i.startsExpr,this.isLoop=!!i.isLoop,this.isAssign=!!i.isAssign,this.prefix=!!i.prefix,this.postfix=!!i.postfix,this.binop=i.binop||null,this.updateContext=null};function b(e,t){return new x(e,{beforeExpr:!0,binop:t})}var k={beforeExpr:!0},N={startsExpr:!0},H={};function w(e,t){return t===void 0&&(t={}),t.keyword=e,H[e]=new x(e,t)}var r={num:new x("num",N),regexp:new x("regexp",N),string:new x("string",N),name:new x("name",N),privateId:new x("privateId",N),eof:new x("eof"),bracketL:new x("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new x("]"),braceL:new x("{",{beforeExpr:!0,startsExpr:!0}),braceR:new x("}"),parenL:new x("(",{beforeExpr:!0,startsExpr:!0}),parenR:new x(")"),comma:new x(",",k),semi:new x(";",k),colon:new x(":",k),dot:new x("."),question:new x("?",k),questionDot:new x("?."),arrow:new x("=>",k),template:new x("template"),invalidTemplate:new x("invalidTemplate"),ellipsis:new x("...",k),backQuote:new x("`",N),dollarBraceL:new x("${",{beforeExpr:!0,startsExpr:!0}),eq:new x("=",{beforeExpr:!0,isAssign:!0}),assign:new x("_=",{beforeExpr:!0,isAssign:!0}),incDec:new x("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new x("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:b("||",1),logicalAND:b("&&",2),bitwiseOR:b("|",3),bitwiseXOR:b("^",4),bitwiseAND:b("&",5),equality:b("==/!=/===/!==",6),relational:b("/<=/>=",7),bitShift:b("<>/>>>",8),plusMin:new x("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:b("%",10),star:b("*",10),slash:b("/",10),starstar:new x("**",{beforeExpr:!0}),coalesce:b("??",1),_break:w("break"),_case:w("case",k),_catch:w("catch"),_continue:w("continue"),_debugger:w("debugger"),_default:w("default",k),_do:w("do",{isLoop:!0,beforeExpr:!0}),_else:w("else",k),_finally:w("finally"),_for:w("for",{isLoop:!0}),_function:w("function",N),_if:w("if"),_return:w("return",k),_switch:w("switch"),_throw:w("throw",k),_try:w("try"),_var:w("var"),_const:w("const"),_while:w("while",{isLoop:!0}),_with:w("with"),_new:w("new",{beforeExpr:!0,startsExpr:!0}),_this:w("this",N),_super:w("super",N),_class:w("class",N),_extends:w("extends",k),_export:w("export"),_import:w("import",N),_null:w("null",N),_true:w("true",N),_false:w("false",N),_in:w("in",{beforeExpr:!0,binop:7}),_instanceof:w("instanceof",{beforeExpr:!0,binop:7}),_typeof:w("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:w("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:w("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},j=/\r\n?|\n|\u2028|\u2029/,lt=new RegExp(j.source,"g");function te(e){return e===10||e===13||e===8232||e===8233}function ft(e,t,i){i===void 0&&(i=e.length);for(var s=t;s>10)+55296,(e&1023)+56320))}var Ci=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,ae=function(t,i){this.line=t,this.column=i};ae.prototype.offset=function(t){return new ae(this.line,this.column+t)};var fe=function(t,i,s){this.start=i,this.end=s,t.sourceFile!==null&&(this.source=t.sourceFile)};function Je(e,t){for(var i=1,s=0;;){var n=ft(e,s,t);if(n<0)return new ae(i,t-s);++i,s=n}}var we={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},xt=!1;function ki(e){var t={};for(var i in we)t[i]=e&&le(e,i)?e[i]:we[i];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!xt&&typeof console=="object"&&console.warn&&(xt=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required. +Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),mt(t.onToken)){var s=t.onToken;t.onToken=function(n){return s.push(n)}}return mt(t.onComment)&&(t.onComment=Ti(t,t.onComment)),t}function Ti(e,t){return function(i,s,n,o,p,m){var g={type:i?"Block":"Line",value:s,start:n,end:o};e.locations&&(g.loc=new fe(this,p,m)),e.ranges&&(g.range=[n,o]),t.push(g)}}var de=1,ne=2,Ge=4,yt=8,gt=16,vt=32,We=64,bt=128,me=256,Xe=de|ne|me;function ze(e,t){return ne|(e?Ge:0)|(t?yt:0)}var Ee=0,He=1,Q=2,St=3,_t=4,Ct=5,V=function(t,i,s){this.options=t=ki(t),this.sourceFile=t.sourceFile,this.keywords=$(_[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var n="";t.allowReserved!==!0&&(n=f[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(n+=" await")),this.reservedWords=$(n);var o=(n?n+" ":"")+f.strict;this.reservedWordsStrict=$(o),this.reservedWordsStrictBind=$(o+" "+f.strictBind),this.input=String(i),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf(` +`,s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(j).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=r.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(de),this.regexpState=null,this.privateNameStack=[]},W={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};V.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)},W.inFunction.get=function(){return(this.currentVarScope().flags&ne)>0},W.inGenerator.get=function(){return(this.currentVarScope().flags&yt)>0&&!this.currentVarScope().inClassFieldInit},W.inAsync.get=function(){return(this.currentVarScope().flags&Ge)>0&&!this.currentVarScope().inClassFieldInit},W.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&me)return!1;if(t.flags&ne)return(t.flags&Ge)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},W.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&We)>0||i||this.options.allowSuperOutsideMethod},W.allowDirectSuper.get=function(){return(this.currentThisScope().flags&bt)>0},W.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},W.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&(ne|me))>0||i},W.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&me)>0},V.extend=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];for(var s=this,n=0;n=,?^&]/.test(n)||n==="!"&&this.input.charAt(s+1)==="=")}e+=t[0].length,U.lastIndex=e,e+=U.exec(this.input)[0].length,this.input[e]===";"&&e++}},O.eat=function(e){return this.type===e?(this.next(),!0):!1},O.isContextual=function(e){return this.type===r.name&&this.value===e&&!this.containsEsc},O.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},O.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},O.canInsertSemicolon=function(){return this.type===r.eof||this.type===r.braceR||j.test(this.input.slice(this.lastTokEnd,this.start))},O.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},O.semicolon=function(){!this.eat(r.semi)&&!this.insertSemicolon()&&this.unexpected()},O.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},O.expect=function(e){this.eat(e)||this.unexpected()},O.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var Ae=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};O.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var i=t?e.parenthesizedAssign:e.parenthesizedBind;i>-1&&this.raiseRecoverable(i,t?"Assigning to rvalue":"Parenthesized pattern")}},O.checkExpressionErrors=function(e,t){if(!e)return!1;var i=e.shorthandAssign,s=e.doubleProto;if(!t)return i>=0||s>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")},O.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&s<56320)return!0;if(F(s,!0)){for(var n=i+1;d(s=this.input.charCodeAt(n),!0);)++n;if(s===92||s>55295&&s<56320)return!0;var o=this.input.slice(i,n);if(!L.test(o))return!0}return!1},S.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;U.lastIndex=this.pos;var e=U.exec(this.input),t=this.pos+e[0].length,i;return!j.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(d(i=this.input.charCodeAt(t+8))||i>55295&&i<56320))},S.parseStatement=function(e,t,i){var s=this.type,n=this.startNode(),o;switch(this.isLet(e)&&(s=r._var,o="let"),s){case r._break:case r._continue:return this.parseBreakContinueStatement(n,s.keyword);case r._debugger:return this.parseDebuggerStatement(n);case r._do:return this.parseDoStatement(n);case r._for:return this.parseForStatement(n);case r._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(n,!1,!e);case r._class:return e&&this.unexpected(),this.parseClass(n,!0);case r._if:return this.parseIfStatement(n);case r._return:return this.parseReturnStatement(n);case r._switch:return this.parseSwitchStatement(n);case r._throw:return this.parseThrowStatement(n);case r._try:return this.parseTryStatement(n);case r._const:case r._var:return o=o||this.value,e&&o!=="var"&&this.unexpected(),this.parseVarStatement(n,o);case r._while:return this.parseWhileStatement(n);case r._with:return this.parseWithStatement(n);case r.braceL:return this.parseBlock(!0,n);case r.semi:return this.parseEmptyStatement(n);case r._export:case r._import:if(this.options.ecmaVersion>10&&s===r._import){U.lastIndex=this.pos;var p=U.exec(this.input),m=this.pos+p[0].length,g=this.input.charCodeAt(m);if(g===40||g===46)return this.parseExpressionStatement(n,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),s===r._import?this.parseImport(n):this.parseExport(n,i);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(n,!0,!e);var T=this.value,E=this.parseExpression();return s===r.name&&E.type==="Identifier"&&this.eat(r.colon)?this.parseLabeledStatement(n,T,E,e):this.parseExpressionStatement(n,E)}},S.parseBreakContinueStatement=function(e,t){var i=t==="break";this.next(),this.eat(r.semi)||this.insertSemicolon()?e.label=null:this.type!==r.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var s=0;s=6?this.eat(r.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},S.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Qe),this.enterScope(0),this.expect(r.parenL),this.type===r.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var i=this.isLet();if(this.type===r._var||this.type===r._const||i){var s=this.startNode(),n=i?"let":this.value;return this.next(),this.parseVar(s,!0,n),this.finishNode(s,"VariableDeclaration"),(this.type===r._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&s.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===r._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,s)):(t>-1&&this.unexpected(t),this.parseFor(e,s))}var o=this.isContextual("let"),p=!1,m=new Ae,g=this.parseExpression(t>-1?"await":!0,m);return this.type===r._in||(p=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===r._in?t>-1&&this.unexpected(t):e.await=t>-1),o&&p&&this.raise(g.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(g,!1,m),this.checkLValPattern(g),this.parseForIn(e,g)):(this.checkExpressionErrors(m,!0),t>-1&&this.unexpected(t),this.parseFor(e,g))},S.parseFunctionStatement=function(e,t,i){return this.next(),this.parseFunction(e,xe|(i?0:Ye),!1,t)},S.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(r._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},S.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(r.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},S.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(r.braceL),this.labels.push(Ei),this.enterScope(0);for(var t,i=!1;this.type!==r.braceR;)if(this.type===r._case||this.type===r._default){var s=this.type===r._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),s?t.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,t.test=null),this.expect(r.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},S.parseThrowStatement=function(e){return this.next(),j.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Ai=[];S.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?vt:0),this.checkLValPattern(e,t?_t:Q),this.expect(r.parenR),e},S.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===r._catch){var t=this.startNode();this.next(),this.eat(r.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(r._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},S.parseVarStatement=function(e,t,i){return this.next(),this.parseVar(e,!1,t,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")},S.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Qe),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},S.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},S.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},S.parseLabeledStatement=function(e,t,i,s){for(var n=0,o=this.labels;n=0;g--){var T=this.labels[g];if(T.statementStart===e.start)T.statementStart=this.start,T.kind=m;else break}return this.labels.push({name:t,kind:m,statementStart:this.start}),e.body=this.parseStatement(s?s.indexOf("label")===-1?s+"label":s:"label"),this.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")},S.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},S.parseBlock=function(e,t,i){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(r.braceL),e&&this.enterScope(0);this.type!==r.braceR;){var s=this.parseStatement(null);t.body.push(s)}return i&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},S.parseFor=function(e,t){return e.init=t,this.expect(r.semi),e.test=this.type===r.semi?null:this.parseExpression(),this.expect(r.semi),e.update=this.type===r.parenR?null:this.parseExpression(),this.expect(r.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},S.parseForIn=function(e,t){var i=this.type===r._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!i||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(r.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")},S.parseVar=function(e,t,i,s){for(e.declarations=[],e.kind=i;;){var n=this.startNode();if(this.parseVarId(n,i),this.eat(r.eq)?n.init=this.parseMaybeAssign(t):!s&&i==="const"&&!(this.type===r._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!s&&n.id.type!=="Identifier"&&!(t&&(this.type===r._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):n.init=null,e.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(r.comma))break}return e},S.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?He:Q,!1)};var xe=1,Ye=2,kt=4;S.parseFunction=function(e,t,i,s,n){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===r.star&&t&Ye&&this.unexpected(),e.generator=this.eat(r.star)),this.options.ecmaVersion>=8&&(e.async=!!s),t&xe&&(e.id=t&kt&&this.type!==r.name?null:this.parseIdent(),e.id&&!(t&Ye)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?He:Q:St));var o=this.yieldPos,p=this.awaitPos,m=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ze(e.async,e.generator)),t&xe||(e.id=this.type===r.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,i,!1,n),this.yieldPos=o,this.awaitPos=p,this.awaitIdentPos=m,this.finishNode(e,t&xe?"FunctionDeclaration":"FunctionExpression")},S.parseFunctionParams=function(e){this.expect(r.parenL),e.params=this.parseBindingList(r.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},S.parseClass=function(e,t){this.next();var i=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var s=this.enterClassBody(),n=this.startNode(),o=!1;for(n.body=[],this.expect(r.braceL);this.type!==r.braceR;){var p=this.parseClassElement(e.superClass!==null);p&&(n.body.push(p),p.type==="MethodDefinition"&&p.kind==="constructor"?(o&&this.raiseRecoverable(p.start,"Duplicate constructor in the same class"),o=!0):p.key&&p.key.type==="PrivateIdentifier"&&Pi(s,p)&&this.raiseRecoverable(p.key.start,"Identifier '#"+p.key.name+"' has already been declared"))}return this.strict=i,this.next(),e.body=this.finishNode(n,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},S.parseClassElement=function(e){if(this.eat(r.semi))return null;var t=this.options.ecmaVersion,i=this.startNode(),s="",n=!1,o=!1,p="method",m=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(r.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===r.star?m=!0:s="static"}if(i.static=m,!s&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===r.star)&&!this.canInsertSemicolon()?o=!0:s="async"),!s&&(t>=9||!o)&&this.eat(r.star)&&(n=!0),!s&&!o&&!n){var g=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?p=g:s=g)}if(s?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=s,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),t<13||this.type===r.parenL||p!=="method"||n||o){var T=!i.static&&Pe(i,"constructor"),E=T&&e;T&&p!=="method"&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=T?"constructor":p,this.parseClassMethod(i,n,o,E)}else this.parseClassField(i);return i},S.isClassElementNameStart=function(){return this.type===r.name||this.type===r.privateId||this.type===r.num||this.type===r.string||this.type===r.bracketL||this.type.keyword},S.parseClassElementName=function(e){this.type===r.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},S.parseClassMethod=function(e,t,i,s){var n=e.key;e.kind==="constructor"?(t&&this.raise(n.start,"Constructor can't be a generator"),i&&this.raise(n.start,"Constructor can't be an async method")):e.static&&Pe(e,"prototype")&&this.raise(n.start,"Classes may not have a static property named prototype");var o=e.value=this.parseMethod(t,i,s);return e.kind==="get"&&o.params.length!==0&&this.raiseRecoverable(o.start,"getter should have no params"),e.kind==="set"&&o.params.length!==1&&this.raiseRecoverable(o.start,"setter should have exactly one param"),e.kind==="set"&&o.params[0].type==="RestElement"&&this.raiseRecoverable(o.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},S.parseClassField=function(e){if(Pe(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Pe(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(r.eq)){var t=this.currentThisScope(),i=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=i}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},S.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(me|We);this.type!==r.braceR;){var i=this.parseStatement(null);e.body.push(i)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},S.parseClassId=function(e,t){this.type===r.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,Q,!1)):(t===!0&&this.unexpected(),e.id=null)},S.parseClassSuper=function(e){e.superClass=this.eat(r._extends)?this.parseExprSubscripts(null,!1):null},S.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},S.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,i=e.used;if(this.options.checkPrivateFields)for(var s=this.privateNameStack.length,n=s===0?null:this.privateNameStack[s-1],o=0;o=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==r.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},S.parseExport=function(e,t){if(this.next(),this.eat(r.star))return this.parseExportAllDeclaration(e,t);if(this.eat(r._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==r.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var i=0,s=e.specifiers;i=13&&this.type===r.string){var e=this.parseLiteral(this.value);return Ci.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},S.adaptDirectivePrologue=function(e){for(var t=0;t=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var q=V.prototype;q.toAssignable=function(e,t,i){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var s=0,n=e.properties;s=8&&!m&&g.name==="async"&&!this.canInsertSemicolon()&&this.eat(r._function))return this.overrideContext(I.f_expr),this.parseFunction(this.startNodeAt(o,p),0,!1,!0,t);if(n&&!this.canInsertSemicolon()){if(this.eat(r.arrow))return this.parseArrowExpression(this.startNodeAt(o,p),[g],!1,t);if(this.options.ecmaVersion>=8&&g.name==="async"&&this.type===r.name&&!m&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return g=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(r.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(o,p),[g],!0,t)}return g;case r.regexp:var T=this.value;return s=this.parseLiteral(T.value),s.regex={pattern:T.pattern,flags:T.flags},s;case r.num:case r.string:return this.parseLiteral(this.value);case r._null:case r._true:case r._false:return s=this.startNode(),s.value=this.type===r._null?null:this.type===r._true,s.raw=this.type.keyword,this.next(),this.finishNode(s,"Literal");case r.parenL:var E=this.start,R=this.parseParenAndDistinguishExpression(n,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(R)&&(e.parenthesizedAssign=E),e.parenthesizedBind<0&&(e.parenthesizedBind=E)),R;case r.bracketL:return s=this.startNode(),this.next(),s.elements=this.parseExprList(r.bracketR,!0,!0,e),this.finishNode(s,"ArrayExpression");case r.braceL:return this.overrideContext(I.b_expr),this.parseObj(!1,e);case r._function:return s=this.startNode(),this.next(),this.parseFunction(s,0);case r._class:return this.parseClass(this.startNode(),!1);case r._new:return this.parseNew();case r.backQuote:return this.parseTemplate();case r._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}},C.parseExprAtomDefault=function(){this.unexpected()},C.parseExprImport=function(e){var t=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var i=this.parseIdent(!0);if(this.type===r.parenL&&!e)return this.parseDynamicImport(t);if(this.type===r.dot)return t.meta=i,this.parseImportMeta(t);this.unexpected()},C.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(r.parenR)){var t=this.start;this.eat(r.comma)&&this.eat(r.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},C.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},C.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},C.parseParenExpression=function(){this.expect(r.parenL);var e=this.parseExpression();return this.expect(r.parenR),e},C.shouldParseArrow=function(e){return!this.canInsertSemicolon()},C.parseParenAndDistinguishExpression=function(e,t){var i=this.start,s=this.startLoc,n,o=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var p=this.start,m=this.startLoc,g=[],T=!0,E=!1,R=new Ae,ie=this.yieldPos,ve=this.awaitPos,ue;for(this.yieldPos=0,this.awaitPos=0;this.type!==r.parenR;)if(T?T=!1:this.expect(r.comma),o&&this.afterTrailingComma(r.parenR,!0)){E=!0;break}else if(this.type===r.ellipsis){ue=this.start,g.push(this.parseParenItem(this.parseRestBinding())),this.type===r.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else g.push(this.parseMaybeAssign(!1,R,this.parseParenItem));var Le=this.lastTokEnd,he=this.lastTokEndLoc;if(this.expect(r.parenR),e&&this.shouldParseArrow(g)&&this.eat(r.arrow))return this.checkPatternErrors(R,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=ie,this.awaitPos=ve,this.parseParenArrowList(i,s,g,t);(!g.length||E)&&this.unexpected(this.lastTokStart),ue&&this.unexpected(ue),this.checkExpressionErrors(R,!0),this.yieldPos=ie||this.yieldPos,this.awaitPos=ve||this.awaitPos,g.length>1?(n=this.startNodeAt(p,m),n.expressions=g,this.finishNodeAt(n,"SequenceExpression",Le,he)):n=g[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var pe=this.startNodeAt(i,s);return pe.expression=n,this.finishNode(pe,"ParenthesizedExpression")}else return n},C.parseParenItem=function(e){return e},C.parseParenArrowList=function(e,t,i,s){return this.parseArrowExpression(this.startNodeAt(e,t),i,!1,s)};var Ii=[];C.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(r.dot)){e.meta=t;var i=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var s=this.start,n=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),s,n,!0,!1),this.eat(r.parenL)?e.arguments=this.parseExprList(r.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Ii,this.finishNode(e,"NewExpression")},C.parseTemplateElement=function(e){var t=e.isTagged,i=this.startNode();return this.type===r.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value,cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,` +`),cooked:this.value},this.next(),i.tail=this.type===r.backQuote,this.finishNode(i,"TemplateElement")},C.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var i=this.startNode();this.next(),i.expressions=[];var s=this.parseTemplateElement({isTagged:t});for(i.quasis=[s];!s.tail;)this.type===r.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(r.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(r.braceR),i.quasis.push(s=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")},C.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===r.name||this.type===r.num||this.type===r.string||this.type===r.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===r.star)&&!j.test(this.input.slice(this.lastTokEnd,this.start))},C.parseObj=function(e,t){var i=this.startNode(),s=!0,n={};for(i.properties=[],this.next();!this.eat(r.braceR);){if(s)s=!1;else if(this.expect(r.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(r.braceR))break;var o=this.parseProperty(e,t);e||this.checkPropClash(o,n,t),i.properties.push(o)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")},C.parseProperty=function(e,t){var i=this.startNode(),s,n,o,p;if(this.options.ecmaVersion>=9&&this.eat(r.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===r.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(i.argument=this.parseMaybeAssign(!1,t),this.type===r.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(i,"SpreadElement"));this.options.ecmaVersion>=6&&(i.method=!1,i.shorthand=!1,(e||t)&&(o=this.start,p=this.startLoc),e||(s=this.eat(r.star)));var m=this.containsEsc;return this.parsePropertyName(i),!e&&!m&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(i)?(n=!0,s=this.options.ecmaVersion>=9&&this.eat(r.star),this.parsePropertyName(i)):n=!1,this.parsePropertyValue(i,e,s,n,o,p,t,m),this.finishNode(i,"Property")},C.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t=e.kind==="get"?0:1;if(e.value.params.length!==t){var i=e.value.start;e.kind==="get"?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},C.parsePropertyValue=function(e,t,i,s,n,o,p,m){(i||s)&&this.type===r.colon&&this.unexpected(),this.eat(r.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,p),e.kind="init"):this.options.ecmaVersion>=6&&this.type===r.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(i,s)):!t&&!m&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==r.comma&&this.type!==r.braceR&&this.type!==r.eq?((i||s)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((i||s)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=n),e.kind="init",t?e.value=this.parseMaybeDefault(n,o,this.copyNode(e.key)):this.type===r.eq&&p?(p.shorthandAssign<0&&(p.shorthandAssign=this.start),e.value=this.parseMaybeDefault(n,o,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()},C.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(r.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(r.bracketR),e.key;e.computed=!1}return e.key=this.type===r.num||this.type===r.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},C.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},C.parseMethod=function(e,t,i){var s=this.startNode(),n=this.yieldPos,o=this.awaitPos,p=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=e),this.options.ecmaVersion>=8&&(s.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ze(t,s.generator)|We|(i?bt:0)),this.expect(r.parenL),s.params=this.parseBindingList(r.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=n,this.awaitPos=o,this.awaitIdentPos=p,this.finishNode(s,"FunctionExpression")},C.parseArrowExpression=function(e,t,i,s){var n=this.yieldPos,o=this.awaitPos,p=this.awaitIdentPos;return this.enterScope(ze(i,!1)|gt),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,s),this.yieldPos=n,this.awaitPos=o,this.awaitIdentPos=p,this.finishNode(e,"ArrowFunctionExpression")},C.parseFunctionBody=function(e,t,i,s){var n=t&&this.type!==r.braceL,o=this.strict,p=!1;if(n)e.body=this.parseMaybeAssign(s),e.expression=!0,this.checkParams(e,!1);else{var m=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!o||m)&&(p=this.strictDirective(this.end),p&&m&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var g=this.labels;this.labels=[],p&&(this.strict=!0),this.checkParams(e,!o&&!p&&!t&&!i&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Ct),e.body=this.parseBlock(!1,void 0,p&&!o),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=g}this.exitScope()},C.isSimpleParamList=function(e){for(var t=0,i=e;t-1||n.functions.indexOf(e)>-1||n.var.indexOf(e)>-1,n.lexical.push(e),this.inModule&&n.flags&de&&delete this.undefinedExports[e]}else if(t===_t){var o=this.currentScope();o.lexical.push(e)}else if(t===St){var p=this.currentScope();this.treatFunctionsAsVar?s=p.lexical.indexOf(e)>-1:s=p.lexical.indexOf(e)>-1||p.var.indexOf(e)>-1,p.functions.push(e)}else for(var m=this.scopeStack.length-1;m>=0;--m){var g=this.scopeStack[m];if(g.lexical.indexOf(e)>-1&&!(g.flags&vt&&g.lexical[0]===e)||!this.treatFunctionsAsVarInScope(g)&&g.functions.indexOf(e)>-1){s=!0;break}if(g.var.push(e),this.inModule&&g.flags&de&&delete this.undefinedExports[e],g.flags&Xe)break}s&&this.raiseRecoverable(i,"Identifier '"+e+"' has already been declared")},ee.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},ee.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},ee.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Xe)return t}},ee.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Xe&&!(t.flags>))return t}};var ye=function(t,i,s){this.type="",this.start=i,this.end=0,t.options.locations&&(this.loc=new fe(t,s)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[i,0])},ge=V.prototype;ge.startNode=function(){return new ye(this,this.start,this.startLoc)},ge.startNodeAt=function(e,t){return new ye(this,e,t)};function wt(e,t,i,s){return e.type=t,e.end=i,this.options.locations&&(e.loc.end=s),this.options.ranges&&(e.range[1]=i),e}ge.finishNode=function(e,t){return wt.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},ge.finishNodeAt=function(e,t,i,s){return wt.call(this,e,t,i,s)},ge.copyNode=function(e){var t=new ye(this,e.start,this.startLoc);for(var i in e)t[i]=e[i];return t};var Et="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",At=Et+" Extended_Pictographic",Pt=At,It=Pt+" EBase EComp EMod EPres ExtPict",Nt=It,Vi=Nt,Li={9:Et,10:At,11:Pt,12:It,13:Nt,14:Vi},Ri="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Oi={9:"",10:"",11:"",12:"",13:"",14:Ri},Vt="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Lt="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Rt=Lt+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Ot=Rt+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Bt=Ot+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Dt=Bt+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Bi=Dt+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",Di={9:Lt,10:Rt,11:Ot,12:Bt,13:Dt,14:Bi},Ft={};function Fi(e){var t=Ft[e]={binary:$(Li[e]+" "+Vt),binaryOfStrings:$(Oi[e]),nonBinary:{General_Category:$(Vt),Script:$(Di[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var $e=0,jt=[9,10,11,12,13,14];$e=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Ft[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};X.prototype.reset=function(t,i,s){var n=s.indexOf("v")!==-1,o=s.indexOf("u")!==-1;this.start=t|0,this.source=i+"",this.flags=s,n&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=o&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=o&&this.parser.options.ecmaVersion>=9)},X.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},X.prototype.at=function(t,i){i===void 0&&(i=!1);var s=this.source,n=s.length;if(t>=n)return-1;var o=s.charCodeAt(t);if(!(i||this.switchU)||o<=55295||o>=57344||t+1>=n)return o;var p=s.charCodeAt(t+1);return p>=56320&&p<=57343?(o<<10)+p-56613888:o},X.prototype.nextIndex=function(t,i){i===void 0&&(i=!1);var s=this.source,n=s.length;if(t>=n)return n;var o=s.charCodeAt(t),p;return!(i||this.switchU)||o<=55295||o>=57344||t+1>=n||(p=s.charCodeAt(t+1))<56320||p>57343?t+1:t+2},X.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)},X.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)},X.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)},X.prototype.eat=function(t,i){return i===void 0&&(i=!1),this.current(i)===t?(this.advance(i),!0):!1},X.prototype.eatChars=function(t,i){i===void 0&&(i=!1);for(var s=this.pos,n=0,o=t;n-1&&this.raise(e.start,"Duplicate regular expression flag"),p==="u"&&(s=!0),p==="v"&&(n=!0)}this.options.ecmaVersion>=15&&s&&n&&this.raise(e.start,"Invalid regular expression flag")},v.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},v.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,i=e.backReferenceNames;t=9&&(i=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!i,!0}return e.pos=t,!1},v.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1},v.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},v.regexp_eatBracedQuantifier=function(e,t){var i=e.pos;if(e.eat(123)){var s=0,n=-1;if(this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue),e.eat(125)))return n!==-1&&n=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},v.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},v.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},v.regexp_eatSyntaxCharacter=function(e){var t=e.current();return Mt(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Mt(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}v.regexp_eatPatternCharacters=function(e){for(var t=e.pos,i=0;(i=e.current())!==-1&&!Mt(i);)e.advance();return e.pos!==t},v.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1},v.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise("Duplicate capture group name"),e.groupNames.push(e.lastStringValue);return}e.raise("Invalid group")}},v.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},v.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Z(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Z(e.lastIntValue);return!0}return!1},v.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,s=e.current(i);return e.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(s=e.lastIntValue),Mi(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)};function Mi(e){return F(e,!0)||e===36||e===95}v.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,s=e.current(i);return e.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(s=e.lastIntValue),Ui(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)};function Ui(e){return d(e,!0)||e===36||e===95||e===8204||e===8205}v.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},v.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var i=e.lastIntValue;if(e.switchU)return i>e.maxBackReference&&(e.maxBackReference=i),!0;if(i<=e.numCapturingParens)return!0;e.pos=t}return!1},v.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},v.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},v.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},v.regexp_eatZero=function(e){return e.current()===48&&!Ne(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1},v.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1},v.regexp_eatControlLetter=function(e){var t=e.current();return Ut(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Ut(e){return e>=65&&e<=90||e>=97&&e<=122}v.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var i=e.pos,s=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var n=e.lastIntValue;if(s&&n>=55296&&n<=56319){var o=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var p=e.lastIntValue;if(p>=56320&&p<=57343)return e.lastIntValue=(n-55296)*1024+(p-56320)+65536,!0}e.pos=o,e.lastIntValue=n}return!0}if(s&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&qi(e.lastIntValue))return!0;s&&e.raise("Invalid unicode escape"),e.pos=i}return!1};function qi(e){return e>=0&&e<=1114111}v.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1},v.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var qt=0,Y=1,J=2;v.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(Ki(t))return e.lastIntValue=-1,e.advance(),Y;var i=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((i=t===80)||t===112)){e.lastIntValue=-1,e.advance();var s;if(e.eat(123)&&(s=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return i&&s===J&&e.raise("Invalid property name"),s;e.raise("Invalid property name")}return qt};function Ki(e){return e===100||e===68||e===115||e===83||e===119||e===87}v.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var i=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,i,s),Y}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,n)}return qt},v.regexp_validateUnicodePropertyNameAndValue=function(e,t,i){le(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(i)||e.raise("Invalid property value")},v.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return Y;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return J;e.raise("Invalid property name")},v.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Kt(t=e.current());)e.lastStringValue+=Z(t),e.advance();return e.lastStringValue!==""};function Kt(e){return Ut(e)||e===95}v.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Ji(t=e.current());)e.lastStringValue+=Z(t),e.advance();return e.lastStringValue!==""};function Ji(e){return Kt(e)||Ne(e)}v.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},v.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),i=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&i===J&&e.raise("Negated character class may contain strings"),!0}return!1},v.regexp_classContents=function(e){return e.current()===93?Y:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),Y)},v.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var i=e.lastIntValue;e.switchU&&(t===-1||i===-1)&&e.raise("Invalid character class"),t!==-1&&i!==-1&&t>i&&e.raise("Range out of order in character class")}}},v.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var i=e.current();(i===99||Wt(i))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var s=e.current();return s!==93?(e.lastIntValue=s,e.advance(),!0):!1},v.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},v.regexp_classSetExpression=function(e){var t=Y,i;if(!this.regexp_eatClassSetRange(e))if(i=this.regexp_eatClassSetOperand(e)){i===J&&(t=J);for(var s=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(i=this.regexp_eatClassSetOperand(e))){i!==J&&(t=Y);continue}e.raise("Invalid character in character class")}if(s!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(s!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(i=this.regexp_eatClassSetOperand(e),!i)return t;i===J&&(t=J)}},v.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var s=e.lastIntValue;return i!==-1&&s!==-1&&i>s&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},v.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?Y:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},v.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var i=e.eat(94),s=this.regexp_classContents(e);if(e.eat(93))return i&&s===J&&e.raise("Negated character class may contain strings"),s;e.pos=t}if(e.eat(92)){var n=this.regexp_eatCharacterClassEscape(e);if(n)return n;e.pos=t}return null},v.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var i=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return i}else e.raise("Invalid escape");e.pos=t}return null},v.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===J&&(t=J);return t},v.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?Y:J},v.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var i=e.current();return i<0||i===e.lookahead()&&Gi(i)||Wi(i)?!1:(e.advance(),e.lastIntValue=i,!0)};function Gi(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function Wi(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}v.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return Xi(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Xi(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}v.regexp_eatClassControlLetter=function(e){var t=e.current();return Ne(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1},v.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},v.regexp_eatDecimalDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;Ne(i=e.current());)e.lastIntValue=10*e.lastIntValue+(i-48),e.advance();return e.pos!==t};function Ne(e){return e>=48&&e<=57}v.regexp_eatHexDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;Jt(i=e.current());)e.lastIntValue=16*e.lastIntValue+Gt(i),e.advance();return e.pos!==t};function Jt(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Gt(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}v.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var i=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+i*8+e.lastIntValue:e.lastIntValue=t*8+i}else e.lastIntValue=t;return!0}return!1},v.regexp_eatOctalDigit=function(e){var t=e.current();return Wt(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Wt(e){return e>=48&&e<=55}v.regexp_eatFixedHexDigits=function(e,t){var i=e.pos;e.lastIntValue=0;for(var s=0;s=this.input.length)return this.finishToken(r.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())},A.readToken=function(e){return F(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},A.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},A.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(i===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var s=void 0,n=t;(s=ft(this.input,n,this.pos))>-1;)++this.curLine,n=this.lineStart=s;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,i),t,this.pos,e,this.curPosition())},A.skipLineComment=function(e){for(var t=this.pos,i=this.options.onComment&&this.curPosition(),s=this.input.charCodeAt(this.pos+=e);this.pos8&&e<14||e>=5760&&Ke.test(String.fromCharCode(e)))++this.pos;else break e}}},A.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=e,this.value=t,this.updateContext(i)},A.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(r.ellipsis)):(++this.pos,this.finishToken(r.dot))},A.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(r.assign,2):this.finishOp(r.slash,1)},A.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),i=1,s=e===42?r.star:r.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++i,s=r.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(r.assign,i+1):this.finishOp(s,i)},A.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(r.assign,3)}return this.finishOp(e===124?r.logicalOR:r.logicalAND,2)}return t===61?this.finishOp(r.assign,2):this.finishOp(e===124?r.bitwiseOR:r.bitwiseAND,1)},A.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(r.assign,2):this.finishOp(r.bitwiseXOR,1)},A.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||j.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(r.incDec,2):t===61?this.finishOp(r.assign,2):this.finishOp(r.plusMin,1)},A.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),i=1;return t===e?(i=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+i)===61?this.finishOp(r.assign,i+1):this.finishOp(r.bitShift,i)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(i=2),this.finishOp(r.relational,i))},A.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(r.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(r.arrow)):this.finishOp(e===61?r.eq:r.prefix,1)},A.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(r.questionDot,2)}if(t===63){if(e>=12){var s=this.input.charCodeAt(this.pos+2);if(s===61)return this.finishOp(r.assign,3)}return this.finishOp(r.coalesce,2)}}return this.finishOp(r.question,1)},A.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),F(t,!0)||t===92))return this.finishToken(r.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Z(t)+"'")},A.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(r.parenL);case 41:return++this.pos,this.finishToken(r.parenR);case 59:return++this.pos,this.finishToken(r.semi);case 44:return++this.pos,this.finishToken(r.comma);case 91:return++this.pos,this.finishToken(r.bracketL);case 93:return++this.pos,this.finishToken(r.bracketR);case 123:return++this.pos,this.finishToken(r.braceL);case 125:return++this.pos,this.finishToken(r.braceR);case 58:return++this.pos,this.finishToken(r.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(r.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(r.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Z(e)+"'")},A.finishOp=function(e,t){var i=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,i)},A.readRegexp=function(){for(var e,t,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(j.test(s)&&this.raise(i,"Unterminated regular expression"),e)e=!1;else{if(s==="[")t=!0;else if(s==="]"&&t)t=!1;else if(s==="/"&&!t)break;e=s==="\\"}++this.pos}var n=this.input.slice(i,this.pos);++this.pos;var o=this.pos,p=this.readWord1();this.containsEsc&&this.unexpected(o);var m=this.regexpState||(this.regexpState=new X(this));m.reset(i,n,p),this.validateRegExpFlags(m),this.validateRegExpPattern(m);var g=null;try{g=new RegExp(n,p)}catch{}return this.finishToken(r.regexp,{pattern:n,flags:p,value:g})},A.readInt=function(e,t,i){for(var s=this.options.ecmaVersion>=12&&t===void 0,n=i&&this.input.charCodeAt(this.pos)===48,o=this.pos,p=0,m=0,g=0,T=t??1/0;g=97?R=E-97+10:E>=65?R=E-65+10:E>=48&&E<=57?R=E-48:R=1/0,R>=e)break;m=E,p=p*e+R}return s&&m===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===o||t!=null&&this.pos-o!==t?null:p};function zi(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function Xt(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}A.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var i=this.readInt(e);return i==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(i=Xt(this.input.slice(t,this.pos)),++this.pos):F(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(r.num,i)},A.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var i=this.pos-t>=2&&this.input.charCodeAt(t)===48;i&&this.strict&&this.raise(t,"Invalid number");var s=this.input.charCodeAt(this.pos);if(!i&&!e&&this.options.ecmaVersion>=11&&s===110){var n=Xt(this.input.slice(t,this.pos));return++this.pos,F(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(r.num,n)}i&&/[89]/.test(this.input.slice(t,this.pos))&&(i=!1),s===46&&!i&&(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),(s===69||s===101)&&!i&&(s=this.input.charCodeAt(++this.pos),(s===43||s===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),F(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var o=zi(this.input.slice(t,this.pos),i);return this.finishToken(r.num,o)},A.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var i=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(i,"Code point out of bounds")}else t=this.readHexChar(4);return t},A.readString=function(e){for(var t="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===e)break;s===92?(t+=this.input.slice(i,this.pos),t+=this.readEscapedChar(!1),i=this.pos):s===8232||s===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(te(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(i,this.pos++),this.finishToken(r.string,t)};var zt={};A.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===zt)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},A.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw zt;this.raise(e,t)},A.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(i===96||i===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===r.template||this.type===r.invalidTemplate)?i===36?(this.pos+=2,this.finishToken(r.dollarBraceL)):(++this.pos,this.finishToken(r.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(r.template,e));if(i===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(te(i)){switch(e+=this.input.slice(t,this.pos),++this.pos,i){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=` `;break;default:e+=String.fromCharCode(i);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},A.readInvalidTemplateToken=function(){for(;this.pos=48&&t<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],n=parseInt(s,8);return n>255&&(s=s.slice(0,-1),n=parseInt(s,8)),this.pos+=s.length-1,t=this.input.charCodeAt(this.pos),(s!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-s.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(n)}return te(t)?"":String.fromCharCode(t)}},A.readHexChar=function(e){var t=this.pos,i=this.readInt(16,e);return i===null&&this.invalidStringToken(t,"Bad character escape sequence"),i},A.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,i=this.pos,s=this.options.ecmaVersion>=6;this.pos{fi.exports={}});var ot=Se((ea,nt)=>{"use strict";var Ls=di(),Rs=/^[\da-fA-F]+$/,Os=/^\d+$/,mi=new WeakMap;function xi(a){a=a.Parser.acorn||a;let u=mi.get(a);if(!u){let c=a.tokTypes,h=a.TokContext,l=a.TokenType,f=new h("...",!0,!0),L={tc_oTag:f,tc_cTag:m,tc_expr:_},P={jsxName:new l("jsxName"),jsxText:new l("jsxText",{beforeExpr:!0}),jsxTagStart:new l("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new l("jsxTagEnd")};P.jsxTagStart.updateContext=function(){this.context.push(_),this.context.push(f),this.exprAllowed=!1},P.jsxTagEnd.updateContext=function(D){let G=this.context.pop();G===f&&D===c.slash||G===m?(this.context.pop(),this.exprAllowed=this.curContext()===_):this.exprAllowed=!0},u={tokContexts:L,tokTypes:P},mi.set(a,u)}return u}function we(a){if(!a)return a;if(a.type==="JSXIdentifier")return a.name;if(a.type==="JSXNamespacedName")return a.namespace.name+":"+a.name.name;if(a.type==="JSXMemberExpression")return we(a.object)+"."+we(a.property)}nt.exports=function(a){return a=a||{},function(u){return Bs({allowNamespaces:a.allowNamespaces!==!1,allowNamespacedObjects:!!a.allowNamespacedObjects},u)}};Object.defineProperty(nt.exports,"tokTypes",{get:function(){return xi(Ee()).tokTypes},configurable:!0,enumerable:!0});function Bs(a,u){let c=u.acorn||Ee(),h=xi(c),l=c.tokTypes,f=h.tokTypes,m=c.tokContexts,_=h.tokContexts.tc_oTag,L=h.tokContexts.tc_cTag,P=h.tokContexts.tc_expr,D=c.isNewLine,G=c.isIdentifierStart,F=c.isIdentifierChar;return class extends u{static get acornJsx(){return h}jsx_readToken(){let d="",y=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let b=this.input.charCodeAt(this.pos);switch(b){case 60:case 123:return this.pos===this.start?b===60&&this.exprAllowed?(++this.pos,this.finishToken(f.jsxTagStart)):this.getTokenFromCode(b):(d+=this.input.slice(y,this.pos),this.finishToken(f.jsxText,d));case 38:d+=this.input.slice(y,this.pos),d+=this.jsx_readEntity(),y=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(b===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:D(b)?(d+=this.input.slice(y,this.pos),d+=this.jsx_readNewLine(!0),y=this.pos):++this.pos}}}jsx_readNewLine(d){let y=this.input.charCodeAt(this.pos),b;return++this.pos,y===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,b=d?` +`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Z(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var i=this.pos-1;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],n=parseInt(s,8);return n>255&&(s=s.slice(0,-1),n=parseInt(s,8)),this.pos+=s.length-1,t=this.input.charCodeAt(this.pos),(s!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-s.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(n)}return te(t)?"":String.fromCharCode(t)}},A.readHexChar=function(e){var t=this.pos,i=this.readInt(16,e);return i===null&&this.invalidStringToken(t,"Bad character escape sequence"),i},A.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,i=this.pos,s=this.options.ecmaVersion>=6;this.pos{li.exports={}});var nt=be((Hr,at)=>{"use strict";var Ns=fi(),Vs=/^[\da-fA-F]+$/,Ls=/^\d+$/,di=new WeakMap;function mi(a){a=a.Parser.acorn||a;let u=di.get(a);if(!u){let c=a.tokTypes,h=a.TokContext,l=a.TokenType,f=new h("...",!0,!0),L={tc_oTag:f,tc_cTag:y,tc_expr:_},P={jsxName:new l("jsxName"),jsxText:new l("jsxText",{beforeExpr:!0}),jsxTagStart:new l("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new l("jsxTagEnd")};P.jsxTagStart.updateContext=function(){this.context.push(_),this.context.push(f),this.exprAllowed=!1},P.jsxTagEnd.updateContext=function(D){let G=this.context.pop();G===f&&D===c.slash||G===y?(this.context.pop(),this.exprAllowed=this.curContext()===_):this.exprAllowed=!0},u={tokContexts:L,tokTypes:P},di.set(a,u)}return u}function Te(a){if(!a)return a;if(a.type==="JSXIdentifier")return a.name;if(a.type==="JSXNamespacedName")return a.namespace.name+":"+a.name.name;if(a.type==="JSXMemberExpression")return Te(a.object)+"."+Te(a.property)}at.exports=function(a){return a=a||{},function(u){return Rs({allowNamespaces:a.allowNamespaces!==!1,allowNamespacedObjects:!!a.allowNamespacedObjects},u)}};Object.defineProperty(at.exports,"tokTypes",{get:function(){return mi(ke()).tokTypes},configurable:!0,enumerable:!0});function Rs(a,u){let c=u.acorn||ke(),h=mi(c),l=c.tokTypes,f=h.tokTypes,y=c.tokContexts,_=h.tokContexts.tc_oTag,L=h.tokContexts.tc_cTag,P=h.tokContexts.tc_expr,D=c.isNewLine,G=c.isIdentifierStart,F=c.isIdentifierChar;return class extends u{static get acornJsx(){return h}jsx_readToken(){let d="",x=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let b=this.input.charCodeAt(this.pos);switch(b){case 60:case 123:return this.pos===this.start?b===60&&this.exprAllowed?(++this.pos,this.finishToken(f.jsxTagStart)):this.getTokenFromCode(b):(d+=this.input.slice(x,this.pos),this.finishToken(f.jsxText,d));case 38:d+=this.input.slice(x,this.pos),d+=this.jsx_readEntity(),x=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(b===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:D(b)?(d+=this.input.slice(x,this.pos),d+=this.jsx_readNewLine(!0),x=this.pos):++this.pos}}}jsx_readNewLine(d){let x=this.input.charCodeAt(this.pos),b;return++this.pos,x===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,b=d?` `:`\r -`):b=String.fromCharCode(y),this.options.locations&&(++this.curLine,this.lineStart=this.pos),b}jsx_readString(d){let y="",b=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let k=this.input.charCodeAt(this.pos);if(k===d)break;k===38?(y+=this.input.slice(b,this.pos),y+=this.jsx_readEntity(),b=this.pos):D(k)?(y+=this.input.slice(b,this.pos),y+=this.jsx_readNewLine(!1),b=this.pos):++this.pos}return y+=this.input.slice(b,this.pos++),this.finishToken(l.string,y)}jsx_readEntity(){let d="",y=0,b,k=this.input[this.pos];k!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let N=++this.pos;for(;this.pos")}let E=N.name?"Element":"Fragment";return b["opening"+E]=N,b["closing"+E]=H,b.children=k,this.type===l.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(b,"JSX"+E)}jsx_parseText(){let d=this.parseLiteral(this.value);return d.type="JSXText",d}jsx_parseElement(){let d=this.start,y=this.startLoc;return this.next(),this.jsx_parseElementAt(d,y)}parseExprAtom(d){return this.type===f.jsxText?this.jsx_parseText():this.type===f.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(d)}readToken(d){let y=this.curContext();if(y===P)return this.jsx_readToken();if(y===_||y===L){if(G(d))return this.jsx_readWord();if(d==62)return++this.pos,this.finishToken(f.jsxTagEnd);if((d===34||d===39)&&y==_)return this.jsx_readString(d)}return d===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(f.jsxTagStart)):super.readToken(d)}updateContext(d){if(this.type==l.braceL){var y=this.curContext();y==_?this.context.push(m.b_expr):y==P?this.context.push(m.b_tmpl):super.updateContext(d),this.exprAllowed=!0}else if(this.type===l.slash&&d===f.jsxTagStart)this.context.length-=2,this.context.push(L),this.exprAllowed=!1;else return super.updateContext(d)}}}});var bi=Se(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});var qs=Ee(),Ks=ot();function Js(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}function Gs(a){if(a&&a.__esModule)return a;var u=Object.create(null);return a&&Object.keys(a).forEach(function(c){if(c!=="default"){var h=Object.getOwnPropertyDescriptor(a,c);Object.defineProperty(u,c,h.get?h:{enumerable:!0,get:function(){return a[c]}})}}),u.default=a,Object.freeze(u)}var gi=Gs(qs),zs=Js(Ks),B={Boolean:"Boolean",EOF:"",Identifier:"Identifier",PrivateIdentifier:"PrivateIdentifier",Keyword:"Keyword",Null:"Null",Numeric:"Numeric",Punctuator:"Punctuator",String:"String",RegularExpression:"RegularExpression",Template:"Template",JSXIdentifier:"JSXIdentifier",JSXText:"JSXText"};function Ws(a,u){let c=a[0],h=a[a.length-1],l={type:B.Template,value:u.slice(c.start,h.end)};return c.loc&&(l.loc={start:c.loc.start,end:h.loc.end}),c.range&&(l.start=c.range[0],l.end=h.range[1],l.range=[l.start,l.end]),l}function pt(a,u){this._acornTokTypes=a,this._tokens=[],this._curlyBrace=null,this._code=u}pt.prototype={constructor:pt,translate(a,u){let c=a.type,h=this._acornTokTypes;if(c===h.name)a.type=B.Identifier,a.value==="static"&&(a.type=B.Keyword),u.ecmaVersion>5&&(a.value==="yield"||a.value==="let")&&(a.type=B.Keyword);else if(c===h.privateId)a.type=B.PrivateIdentifier;else if(c===h.semi||c===h.comma||c===h.parenL||c===h.parenR||c===h.braceL||c===h.braceR||c===h.dot||c===h.bracketL||c===h.colon||c===h.question||c===h.bracketR||c===h.ellipsis||c===h.arrow||c===h.jsxTagStart||c===h.incDec||c===h.starstar||c===h.jsxTagEnd||c===h.prefix||c===h.questionDot||c.binop&&!c.keyword||c.isAssign)a.type=B.Punctuator,a.value=this._code.slice(a.start,a.end);else if(c===h.jsxName)a.type=B.JSXIdentifier;else if(c.label==="jsxText"||c===h.jsxAttrValueToken)a.type=B.JSXText;else if(c.keyword)c.keyword==="true"||c.keyword==="false"?a.type=B.Boolean:c.keyword==="null"?a.type=B.Null:a.type=B.Keyword;else if(c===h.num)a.type=B.Numeric,a.value=this._code.slice(a.start,a.end);else if(c===h.string)u.jsxAttrValueToken?(u.jsxAttrValueToken=!1,a.type=B.JSXText):a.type=B.String,a.value=this._code.slice(a.start,a.end);else if(c===h.regexp){a.type=B.RegularExpression;let l=a.value;a.regex={flags:l.flags,pattern:l.pattern},a.value=`/${l.pattern}/${l.flags}`}return a},onToken(a,u){let c=this,h=this._acornTokTypes,l=u.tokens,f=this._tokens;function m(){l.push(Ws(c._tokens,c._code)),c._tokens=[]}if(a.type===h.eof){this._curlyBrace&&l.push(this.translate(this._curlyBrace,u));return}if(a.type===h.backQuote){this._curlyBrace&&(l.push(this.translate(this._curlyBrace,u)),this._curlyBrace=null),f.push(a),f.length>1&&m();return}if(a.type===h.dollarBraceL){f.push(a),m();return}if(a.type===h.braceR){this._curlyBrace&&l.push(this.translate(this._curlyBrace,u)),this._curlyBrace=a;return}if(a.type===h.template||a.type===h.invalidTemplate){this._curlyBrace&&(f.push(this._curlyBrace),this._curlyBrace=null),f.push(a);return}this._curlyBrace&&(l.push(this.translate(this._curlyBrace,u)),this._curlyBrace=null),l.push(this.translate(a,u))}};var ct=[3,5,6,7,8,9,10,11,12,13,14,15];function Xs(){return ct[ct.length-1]}function Hs(a=5){let u=a==="latest"?Xs():a;if(typeof u!="number")throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof a} instead.`);if(u>=2015&&(u-=2009),!ct.includes(u))throw new Error("Invalid ecmaVersion.");return u}function Qs(a="script"){if(a==="script"||a==="module")return a;if(a==="commonjs")return"script";throw new Error("Invalid sourceType.")}function Ys(a){let u=Hs(a.ecmaVersion),c=Qs(a.sourceType),h=a.range===!0,l=a.loc===!0;if(u!==3&&a.allowReserved)throw new Error("`allowReserved` is only supported when ecmaVersion is 3");if(typeof a.allowReserved<"u"&&typeof a.allowReserved!="boolean")throw new Error("`allowReserved`, when present, must be `true` or `false`");let f=u===3?a.allowReserved||"never":!1,m=a.ecmaFeatures||{},_=a.sourceType==="commonjs"||!!m.globalReturn;if(c==="module"&&u<6)throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},a,{ecmaVersion:u,sourceType:c,ranges:h,locations:l,allowReserved:f,allowReturnOutsideFunction:_})}var re=Symbol("espree's internal state"),ht=Symbol("espree's esprimaFinishNode");function $s(a,u,c,h,l,f,m){let _;a?_="Block":m.slice(c,c+2)==="#!"?_="Hashbang":_="Line";let L={type:_,value:u};return typeof c=="number"&&(L.start=c,L.end=h,L.range=[c,h]),typeof l=="object"&&(L.loc={start:l,end:f}),L}var vi=()=>a=>{let u=Object.assign({},a.acorn.tokTypes);return a.acornJsx&&Object.assign(u,a.acornJsx.tokTypes),class extends a{constructor(h,l){(typeof h!="object"||h===null)&&(h={}),typeof l!="string"&&!(l instanceof String)&&(l=String(l));let f=h.sourceType,m=Ys(h),_=m.ecmaFeatures||{},L=m.tokens===!0?new pt(u,l):null,P={originalSourceType:f||m.sourceType,tokens:L?[]:null,comments:m.comment===!0?[]:null,impliedStrict:_.impliedStrict===!0&&m.ecmaVersion>=5,ecmaVersion:m.ecmaVersion,jsxAttrValueToken:!1,lastToken:null,templateElements:[]};super({ecmaVersion:m.ecmaVersion,sourceType:m.sourceType,ranges:m.ranges,locations:m.locations,allowReserved:m.allowReserved,allowReturnOutsideFunction:m.allowReturnOutsideFunction,onToken:D=>{L&&L.onToken(D,P),D.type!==u.eof&&(P.lastToken=D)},onComment:(D,G,F,d,y,b)=>{if(P.comments){let k=$s(D,G,F,d,y,b,l);P.comments.push(k)}}},l),this[re]=P}tokenize(){do this.next();while(this.type!==u.eof);this.next();let h=this[re],l=h.tokens;return h.comments&&(l.comments=h.comments),l}finishNode(...h){let l=super.finishNode(...h);return this[ht](l)}finishNodeAt(...h){let l=super.finishNodeAt(...h);return this[ht](l)}parse(){let h=this[re],l=super.parse();if(l.sourceType=h.originalSourceType,h.comments&&(l.comments=h.comments),h.tokens&&(l.tokens=h.tokens),l.body.length){let[f]=l.body;l.range&&(l.range[0]=f.range[0]),l.loc&&(l.loc.start=f.loc.start),l.start=f.start}return h.lastToken&&(l.range&&(l.range[1]=h.lastToken.range[1]),l.loc&&(l.loc.end=h.lastToken.loc.end),l.end=h.lastToken.end),this[re].templateElements.forEach(f=>{let _=f.tail?1:2;f.start+=-1,f.end+=_,f.range&&(f.range[0]+=-1,f.range[1]+=_),f.loc&&(f.loc.start.column+=-1,f.loc.end.column+=_)}),l}parseTopLevel(h){return this[re].impliedStrict&&(this.strict=!0),super.parseTopLevel(h)}raise(h,l){let f=a.acorn.getLineInfo(this.input,h),m=new SyntaxError(l);throw m.index=h,m.lineNumber=f.line,m.column=f.column+1,m}raiseRecoverable(h,l){this.raise(h,l)}unexpected(h){let l="Unexpected token";if(h!=null){if(this.pos=h,this.options.locations)for(;this.posthis.start&&(l+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,l)}jsx_readString(h){let l=super.jsx_readString(h);return this.type===u.string&&(this[re].jsxAttrValueToken=!0),l}[ht](h){return h.type==="TemplateElement"&&this[re].templateElements.push(h),h.type.includes("Function")&&!h.generator&&(h.generator=!1),h}}},Zs={_regular:null,_jsx:null,get regular(){return this._regular===null&&(this._regular=gi.Parser.extend(vi())),this._regular},get jsx(){return this._jsx===null&&(this._jsx=gi.Parser.extend(zs.default(),vi())),this._jsx},get(a){return!!(a&&a.ecmaFeatures&&a.ecmaFeatures.jsx)?this.jsx:this.regular}};function er(a,u){let c=Zs.get(u);return new c(u,a).parse()}var tr="espree";Ke.name=tr;Ke.parse=er});var lt={};rs(lt,{parsers:()=>ar});function os(a,u){let c=new SyntaxError(a+" ("+u.loc.start.line+":"+u.loc.start.column+")");return Object.assign(c,u)}var ce=os;function us(a){let u=[];for(let c of a)try{return c()}catch(h){u.push(h)}throw Object.assign(new Error("All combinations failed"),{errors:u})}var Be=us;var le=ns(si(),1);function gs(a){if(!a.startsWith("#!"))return"";let u=a.indexOf(` -`);return u===-1?a:a.slice(0,u)}var ri=gs;function vs(a){let u=ri(a);u&&(a=a.slice(u.length+1));let c=(0,le.extract)(a),{pragmas:h,comments:l}=(0,le.parseWithComments)(c);return{shebang:u,text:a,pragmas:h,comments:l}}function ai(a){let{pragmas:u}=vs(a);return Object.prototype.hasOwnProperty.call(u,"prettier")||Object.prototype.hasOwnProperty.call(u,"format")}function bs(a){return Array.isArray(a)&&a.length>0}var _e=bs;function M(a){var h;let u=a.range?a.range[0]:a.start,c=((h=a.declaration)==null?void 0:h.decorators)??a.decorators;return _e(c)?Math.min(M(c[0]),u):u}function X(a){return a.range?a.range[1]:a.end}function Ss(a){return a=typeof a=="function"?{parse:a}:a,{astFormat:"estree",hasPragma:ai,locStart:M,locEnd:X,...a}}var De=Ss;var _s=(a,u,c)=>{if(!(a&&u==null))return Array.isArray(u)||typeof u=="string"?u[c<0?u.length+c:c]:u.at(c)},tt=_s;function Cs(a){return a=new Set(a),u=>a.has(u==null?void 0:u.type)}var ni=Cs;var ks=ni(["Block","CommentBlock","MultiLine"]),Ce=ks;function Ts(a){return Ce(a)&&a.value[0]==="*"&&/@(?:type|satisfies)\b/.test(a.value)}var oi=Ts;function Es(a){let u=`*${a.value}*`.split(` -`);return u.length>1&&u.every(c=>c.trimStart()[0]==="*")}var it=Es;var ke=null;function Te(a){if(ke!==null&&typeof ke.property){let u=ke;return ke=Te.prototype=null,u}return ke=Te.prototype=a??Object.create(null),new Te}var ws=10;for(let a=0;a<=ws;a++)Te();function st(a){return Te(a)}function As(a,u="type"){st(a);function c(h){let l=h[u],f=a[l];if(!Array.isArray(f))throw Object.assign(new Error(`Missing visitor keys for '${l}'.`),{node:h});return f}return c}var ui=As;var hi={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ExportAllDeclaration:["source","attributes","assertions","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes","assertions"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes","assertions"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","parameter"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ImportExpression:["source","attributes"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareEnum:["id","body"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]};var Ps=ui(hi),pi=Ps;function rt(a,u){if(!(a!==null&&typeof a=="object"))return a;if(Array.isArray(a)){for(let h=0;h{var _;(_=m.leadingComments)!=null&&_.some(oi)&&f.add(M(m))}),a=Fe(a,m=>{if(m.type==="ParenthesizedExpression"){let{expression:_}=m;if(_.type==="TypeCastExpression")return _.range=m.range,_;let L=M(m);if(!f.has(L))return _.extra={..._.extra,parenthesized:!0},_}})}if(a=Fe(a,f=>{switch(f.type){case"LogicalExpression":if(ci(f))return at(f);break;case"VariableDeclaration":{let m=tt(!1,f.declarations,-1);m!=null&&m.init&&l(f,m);break}case"TSParenthesizedType":return f.typeAnnotation;case"TSTypeParameter":if(typeof f.name=="string"){let m=M(f);f.name={type:"Identifier",name:f.name,range:[m,m+f.name.length]}}break;case"ObjectExpression":if(c==="typescript"){let m=f.properties.find(_=>_.type==="Property"&&_.value.type==="TSEmptyBodyFunctionExpression");m&&je(m.value,"Unexpected token.")}break;case"TSInterfaceDeclaration":_e(f.implements)&&je(f.implements[0],"Interface declaration cannot have 'implements' clause.");break;case"TSPropertySignature":f.initializer&&je(f.initializer,"An interface property cannot have an initializer.");break;case"TopicReference":a.extra={...a.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":{let{exported:m}=f;if(c==="meriyah"&&(m==null?void 0:m.type)==="Identifier"){let _=h.slice(M(m),X(m));(_.startsWith('"')||_.startsWith("'"))&&(f.exported={...f.exported,type:"Literal",value:f.exported.name,raw:_})}break}case"TSUnionType":case"TSIntersectionType":if(f.types.length===1)return f.types[0];break}}),_e(a.comments)){let f=tt(!1,a.comments,-1);for(let m=a.comments.length-2;m>=0;m--){let _=a.comments[m];X(_)===M(f)&&Ce(_)&&Ce(f)&&it(_)&&it(f)&&(a.comments.splice(m+1,1),_.value+="*//*"+f.value,_.range=[M(_),X(f)]),f=_}}return a.type==="Program"&&(a.range=[0,h.length]),a;function l(f,m){h[X(m)]!==";"&&(f.range=[M(f),X(m)])}}function ci(a){return a.type==="LogicalExpression"&&a.right.type==="LogicalExpression"&&a.operator===a.right.operator}function at(a){return ci(a)?at({type:"LogicalExpression",operator:a.operator,left:at({type:"LogicalExpression",operator:a.operator,left:a.left,right:a.right.left,range:[M(a.left),X(a.right.left)]}),right:a.right.right,range:[M(a),X(a)]}):a}var Me=Ns;function Vs(a){let{filepath:u}=a;if(u){if(u=u.toLowerCase(),u.endsWith(".cjs"))return"script";if(u.endsWith(".mjs"))return"module"}}var Ue=Vs;var Ds={ecmaVersion:"latest",allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,locations:!0,ranges:!0};function Fs(a){let{message:u,loc:c}=a;if(!c)return a;let{line:h,column:l}=c;return ce(u.replace(/ \(\d+:\d+\)$/,""),{loc:{start:{line:h,column:l+1}},cause:a})}var ut,js=()=>{if(!ut){let{Parser:a}=Ee(),u=ot();ut=a.extend(u())}return ut};function Ms(a,u){let c=js(),h=[],l=[],f=c.parse(a,{...Ds,sourceType:u,allowImportExportEverywhere:u==="module",onComment:h,onToken:l});return f.comments=h,f.tokens=l,f}function Us(a,u={}){let c=Ue(u),h=(c?[c]:["module","script"]).map(f=>()=>Ms(a,f)),l;try{l=Be(h)}catch({errors:[f]}){throw Fs(f)}return Me(l,{text:a})}var yi=De(Us);var ir={ecmaVersion:"latest",range:!0,loc:!0,comment:!0,tokens:!0,sourceType:"module",ecmaFeatures:{jsx:!0,globalReturn:!0,impliedStrict:!1}};function sr(a){let{message:u,lineNumber:c,column:h}=a;return typeof c!="number"?a:ce(u,{loc:{start:{line:c,column:h}},cause:a})}function rr(a,u={}){let{parse:c}=bi(),h=Ue(u),l=(h?[h]:["module","script"]).map(m=>()=>c(a,{...ir,sourceType:m})),f;try{f=Be(l)}catch({errors:[m]}){throw sr(m)}return Me(f,{text:a})}var Si=De(rr);var ar={acorn:yi,espree:Si};var ga=lt;export{ga as default,ar as parsers}; +`):b=String.fromCharCode(x),this.options.locations&&(++this.curLine,this.lineStart=this.pos),b}jsx_readString(d){let x="",b=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let k=this.input.charCodeAt(this.pos);if(k===d)break;k===38?(x+=this.input.slice(b,this.pos),x+=this.jsx_readEntity(),b=this.pos):D(k)?(x+=this.input.slice(b,this.pos),x+=this.jsx_readNewLine(!1),b=this.pos):++this.pos}return x+=this.input.slice(b,this.pos++),this.finishToken(l.string,x)}jsx_readEntity(){let d="",x=0,b,k=this.input[this.pos];k!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let N=++this.pos;for(;this.pos")}let w=N.name?"Element":"Fragment";return b["opening"+w]=N,b["closing"+w]=H,b.children=k,this.type===l.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(b,"JSX"+w)}jsx_parseText(){let d=this.parseLiteral(this.value);return d.type="JSXText",d}jsx_parseElement(){let d=this.start,x=this.startLoc;return this.next(),this.jsx_parseElementAt(d,x)}parseExprAtom(d){return this.type===f.jsxText?this.jsx_parseText():this.type===f.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(d)}readToken(d){let x=this.curContext();if(x===P)return this.jsx_readToken();if(x===_||x===L){if(G(d))return this.jsx_readWord();if(d==62)return++this.pos,this.finishToken(f.jsxTagEnd);if((d===34||d===39)&&x==_)return this.jsx_readString(d)}return d===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(f.jsxTagStart)):super.readToken(d)}updateContext(d){if(this.type==l.braceL){var x=this.curContext();x==_?this.context.push(y.b_expr):x==P?this.context.push(y.b_tmpl):super.updateContext(d),this.exprAllowed=!0}else if(this.type===l.slash&&d===f.jsxTagStart)this.context.length-=2,this.context.push(L),this.exprAllowed=!1;else return super.updateContext(d)}}}});var vi=be(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});var Ms=ke(),Us=nt();function qs(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}function Ks(a){if(a&&a.__esModule)return a;var u=Object.create(null);return a&&Object.keys(a).forEach(function(c){if(c!=="default"){var h=Object.getOwnPropertyDescriptor(a,c);Object.defineProperty(u,c,h.get?h:{enumerable:!0,get:function(){return a[c]}})}}),u.default=a,Object.freeze(u)}var yi=Ks(Ms),Js=qs(Us),B={Boolean:"Boolean",EOF:"",Identifier:"Identifier",PrivateIdentifier:"PrivateIdentifier",Keyword:"Keyword",Null:"Null",Numeric:"Numeric",Punctuator:"Punctuator",String:"String",RegularExpression:"RegularExpression",Template:"Template",JSXIdentifier:"JSXIdentifier",JSXText:"JSXText"};function Gs(a,u){let c=a[0],h=a[a.length-1],l={type:B.Template,value:u.slice(c.start,h.end)};return c.loc&&(l.loc={start:c.loc.start,end:h.loc.end}),c.range&&(l.start=c.range[0],l.end=h.range[1],l.range=[l.start,l.end]),l}function ht(a,u){this._acornTokTypes=a,this._tokens=[],this._curlyBrace=null,this._code=u}ht.prototype={constructor:ht,translate(a,u){let c=a.type,h=this._acornTokTypes;if(c===h.name)a.type=B.Identifier,a.value==="static"&&(a.type=B.Keyword),u.ecmaVersion>5&&(a.value==="yield"||a.value==="let")&&(a.type=B.Keyword);else if(c===h.privateId)a.type=B.PrivateIdentifier;else if(c===h.semi||c===h.comma||c===h.parenL||c===h.parenR||c===h.braceL||c===h.braceR||c===h.dot||c===h.bracketL||c===h.colon||c===h.question||c===h.bracketR||c===h.ellipsis||c===h.arrow||c===h.jsxTagStart||c===h.incDec||c===h.starstar||c===h.jsxTagEnd||c===h.prefix||c===h.questionDot||c.binop&&!c.keyword||c.isAssign)a.type=B.Punctuator,a.value=this._code.slice(a.start,a.end);else if(c===h.jsxName)a.type=B.JSXIdentifier;else if(c.label==="jsxText"||c===h.jsxAttrValueToken)a.type=B.JSXText;else if(c.keyword)c.keyword==="true"||c.keyword==="false"?a.type=B.Boolean:c.keyword==="null"?a.type=B.Null:a.type=B.Keyword;else if(c===h.num)a.type=B.Numeric,a.value=this._code.slice(a.start,a.end);else if(c===h.string)u.jsxAttrValueToken?(u.jsxAttrValueToken=!1,a.type=B.JSXText):a.type=B.String,a.value=this._code.slice(a.start,a.end);else if(c===h.regexp){a.type=B.RegularExpression;let l=a.value;a.regex={flags:l.flags,pattern:l.pattern},a.value=`/${l.pattern}/${l.flags}`}return a},onToken(a,u){let c=this._acornTokTypes,h=u.tokens,l=this._tokens,f=()=>{h.push(Gs(this._tokens,this._code)),this._tokens=[]};if(a.type===c.eof){this._curlyBrace&&h.push(this.translate(this._curlyBrace,u));return}if(a.type===c.backQuote){this._curlyBrace&&(h.push(this.translate(this._curlyBrace,u)),this._curlyBrace=null),l.push(a),l.length>1&&f();return}if(a.type===c.dollarBraceL){l.push(a),f();return}if(a.type===c.braceR){this._curlyBrace&&h.push(this.translate(this._curlyBrace,u)),this._curlyBrace=a;return}if(a.type===c.template||a.type===c.invalidTemplate){this._curlyBrace&&(l.push(this._curlyBrace),this._curlyBrace=null),l.push(a);return}this._curlyBrace&&(h.push(this.translate(this._curlyBrace,u)),this._curlyBrace=null),h.push(this.translate(a,u))}};var pt=[3,5,6,7,8,9,10,11,12,13,14,15];function Ws(){return pt[pt.length-1]}function Xs(a=5){let u=a==="latest"?Ws():a;if(typeof u!="number")throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof a} instead.`);if(u>=2015&&(u-=2009),!pt.includes(u))throw new Error("Invalid ecmaVersion.");return u}function zs(a="script"){if(a==="script"||a==="module")return a;if(a==="commonjs")return"script";throw new Error("Invalid sourceType.")}function Hs(a){let u=Xs(a.ecmaVersion),c=zs(a.sourceType),h=a.range===!0,l=a.loc===!0;if(u!==3&&a.allowReserved)throw new Error("`allowReserved` is only supported when ecmaVersion is 3");if(typeof a.allowReserved<"u"&&typeof a.allowReserved!="boolean")throw new Error("`allowReserved`, when present, must be `true` or `false`");let f=u===3?a.allowReserved||"never":!1,y=a.ecmaFeatures||{},_=a.sourceType==="commonjs"||!!y.globalReturn;if(c==="module"&&u<6)throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},a,{ecmaVersion:u,sourceType:c,ranges:h,locations:l,allowReserved:f,allowReturnOutsideFunction:_})}var re=Symbol("espree's internal state"),ut=Symbol("espree's esprimaFinishNode");function Qs(a,u,c,h,l,f,y){let _;a?_="Block":y.slice(c,c+2)==="#!"?_="Hashbang":_="Line";let L={type:_,value:u};return typeof c=="number"&&(L.start=c,L.end=h,L.range=[c,h]),typeof l=="object"&&(L.loc={start:l,end:f}),L}var gi=()=>a=>{let u=Object.assign({},a.acorn.tokTypes);return a.acornJsx&&Object.assign(u,a.acornJsx.tokTypes),class extends a{constructor(h,l){(typeof h!="object"||h===null)&&(h={}),typeof l!="string"&&!(l instanceof String)&&(l=String(l));let f=h.sourceType,y=Hs(h),_=y.ecmaFeatures||{},L=y.tokens===!0?new ht(u,l):null,P={originalSourceType:f||y.sourceType,tokens:L?[]:null,comments:y.comment===!0?[]:null,impliedStrict:_.impliedStrict===!0&&y.ecmaVersion>=5,ecmaVersion:y.ecmaVersion,jsxAttrValueToken:!1,lastToken:null,templateElements:[]};super({ecmaVersion:y.ecmaVersion,sourceType:y.sourceType,ranges:y.ranges,locations:y.locations,allowReserved:y.allowReserved,allowReturnOutsideFunction:y.allowReturnOutsideFunction,onToken(D){L&&L.onToken(D,P),D.type!==u.eof&&(P.lastToken=D)},onComment(D,G,F,d,x,b){if(P.comments){let k=Qs(D,G,F,d,x,b,l);P.comments.push(k)}}},l),this[re]=P}tokenize(){do this.next();while(this.type!==u.eof);this.next();let h=this[re],l=h.tokens;return h.comments&&(l.comments=h.comments),l}finishNode(...h){let l=super.finishNode(...h);return this[ut](l)}finishNodeAt(...h){let l=super.finishNodeAt(...h);return this[ut](l)}parse(){let h=this[re],l=super.parse();if(l.sourceType=h.originalSourceType,h.comments&&(l.comments=h.comments),h.tokens&&(l.tokens=h.tokens),l.body.length){let[f]=l.body;l.range&&(l.range[0]=f.range[0]),l.loc&&(l.loc.start=f.loc.start),l.start=f.start}return h.lastToken&&(l.range&&(l.range[1]=h.lastToken.range[1]),l.loc&&(l.loc.end=h.lastToken.loc.end),l.end=h.lastToken.end),this[re].templateElements.forEach(f=>{let _=f.tail?1:2;f.start+=-1,f.end+=_,f.range&&(f.range[0]+=-1,f.range[1]+=_),f.loc&&(f.loc.start.column+=-1,f.loc.end.column+=_)}),l}parseTopLevel(h){return this[re].impliedStrict&&(this.strict=!0),super.parseTopLevel(h)}raise(h,l){let f=a.acorn.getLineInfo(this.input,h),y=new SyntaxError(l);throw y.index=h,y.lineNumber=f.line,y.column=f.column+1,y}raiseRecoverable(h,l){this.raise(h,l)}unexpected(h){let l="Unexpected token";if(h!=null){if(this.pos=h,this.options.locations)for(;this.posthis.start&&(l+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,l)}jsx_readString(h){let l=super.jsx_readString(h);return this.type===u.string&&(this[re].jsxAttrValueToken=!0),l}[ut](h){return h.type==="TemplateElement"&&this[re].templateElements.push(h),h.type.includes("Function")&&!h.generator&&(h.generator=!1),h}}},Ys={_regular:null,_jsx:null,get regular(){return this._regular===null&&(this._regular=yi.Parser.extend(gi())),this._regular},get jsx(){return this._jsx===null&&(this._jsx=yi.Parser.extend(Js.default(),gi())),this._jsx},get(a){return!!(a&&a.ecmaFeatures&&a.ecmaFeatures.jsx)?this.jsx:this.regular}};function $s(a,u){let c=Ys.get(u);return new c(u,a).parse()}var Zs="espree";qe.name=Zs;qe.parse=$s});var ct={};ss(ct,{parsers:()=>sr});function ns(a,u){let c=new SyntaxError(a+" ("+u.loc.start.line+":"+u.loc.start.column+")");return Object.assign(c,u)}var Re=ns;function os(a){let u=[];for(let c of a)try{return c()}catch(h){u.push(h)}throw Object.assign(new Error("All combinations failed"),{errors:u})}var Oe=os;var ce=as(ii(),1);function ys(a){if(!a.startsWith("#!"))return"";let u=a.indexOf(` +`);return u===-1?a:a.slice(0,u)}var si=ys;function gs(a){let u=si(a);u&&(a=a.slice(u.length+1));let c=(0,ce.extract)(a),{pragmas:h,comments:l}=(0,ce.parseWithComments)(c);return{shebang:u,text:a,pragmas:h,comments:l}}function ri(a){let{pragmas:u}=gs(a);return Object.prototype.hasOwnProperty.call(u,"prettier")||Object.prototype.hasOwnProperty.call(u,"format")}function vs(a){return Array.isArray(a)&&a.length>0}var Be=vs;function M(a){var h;let u=a.range?a.range[0]:a.start,c=((h=a.declaration)==null?void 0:h.decorators)??a.decorators;return Be(c)?Math.min(M(c[0]),u):u}function z(a){return a.range?a.range[1]:a.end}function bs(a){return a=typeof a=="function"?{parse:a}:a,{astFormat:"estree",hasPragma:ri,locStart:M,locEnd:z,...a}}var De=bs;var Ss=(a,u,c)=>{if(!(a&&u==null))return Array.isArray(u)||typeof u=="string"?u[c<0?u.length+c:c]:u.at(c)},et=Ss;function _s(a){return a=new Set(a),u=>a.has(u==null?void 0:u.type)}var ai=_s;var Cs=ai(["Block","CommentBlock","MultiLine"]),Se=Cs;function ks(a){return Se(a)&&a.value[0]==="*"&&/@(?:type|satisfies)\b/.test(a.value)}var ni=ks;function Ts(a){let u=`*${a.value}*`.split(` +`);return u.length>1&&u.every(c=>c.trimStart()[0]==="*")}var tt=Ts;var _e=null;function Ce(a){if(_e!==null&&typeof _e.property){let u=_e;return _e=Ce.prototype=null,u}return _e=Ce.prototype=a??Object.create(null),new Ce}var ws=10;for(let a=0;a<=ws;a++)Ce();function it(a){return Ce(a)}function Es(a,u="type"){it(a);function c(h){let l=h[u],f=a[l];if(!Array.isArray(f))throw Object.assign(new Error(`Missing visitor keys for '${l}'.`),{node:h});return f}return c}var oi=Es;var ui={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","assertions","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes","assertions"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes","assertions"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ImportExpression:["source","attributes"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareEnum:["id","body"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]};var As=oi(ui),hi=As;function st(a,u){if(!(a!==null&&typeof a=="object"))return a;if(Array.isArray(a)){for(let h=0;h{var _;(_=y.leadingComments)!=null&&_.some(ni)&&f.add(M(y))}),a=Fe(a,y=>{if(y.type==="ParenthesizedExpression"){let{expression:_}=y;if(_.type==="TypeCastExpression")return _.range=y.range,_;let L=M(y);if(!f.has(L))return _.extra={..._.extra,parenthesized:!0},_}})}if(a=Fe(a,f=>{switch(f.type){case"LogicalExpression":if(pi(f))return rt(f);break;case"VariableDeclaration":{let y=et(!1,f.declarations,-1);y!=null&&y.init&&l(f,y);break}case"TSParenthesizedType":return f.typeAnnotation;case"TSTypeParameter":if(typeof f.name=="string"){let y=M(f);f.name={type:"Identifier",name:f.name,range:[y,y+f.name.length]}}break;case"TopicReference":a.extra={...a.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":{let{exported:y}=f;if(c==="meriyah"&&(y==null?void 0:y.type)==="Identifier"){let _=h.slice(M(y),z(y));(_.startsWith('"')||_.startsWith("'"))&&(f.exported={...f.exported,type:"Literal",value:f.exported.name,raw:_})}break}case"TSUnionType":case"TSIntersectionType":if(f.types.length===1)return f.types[0];break}}),Be(a.comments)){let f=et(!1,a.comments,-1);for(let y=a.comments.length-2;y>=0;y--){let _=a.comments[y];z(_)===M(f)&&Se(_)&&Se(f)&&tt(_)&&tt(f)&&(a.comments.splice(y+1,1),_.value+="*//*"+f.value,_.range=[M(_),z(f)]),f=_}}return a.type==="Program"&&(a.range=[0,h.length]),a;function l(f,y){h[z(y)]!==";"&&(f.range=[M(f),z(y)])}}function pi(a){return a.type==="LogicalExpression"&&a.right.type==="LogicalExpression"&&a.operator===a.right.operator}function rt(a){return pi(a)?rt({type:"LogicalExpression",operator:a.operator,left:rt({type:"LogicalExpression",operator:a.operator,left:a.left,right:a.right.left,range:[M(a.left),z(a.right.left)]}),right:a.right.right,range:[M(a),z(a)]}):a}var je=Ps;function Is(a){let{filepath:u}=a;if(u){if(u=u.toLowerCase(),u.endsWith(".cjs"))return"script";if(u.endsWith(".mjs"))return"module"}}var Me=Is;var Os={ecmaVersion:"latest",allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,locations:!0,ranges:!0};function Bs(a){let{message:u,loc:c}=a;if(!c)return a;let{line:h,column:l}=c;return Re(u.replace(/ \(\d+:\d+\)$/,""),{loc:{start:{line:h,column:l+1}},cause:a})}var ot,Ds=()=>{if(!ot){let{Parser:a}=ke(),u=nt();ot=a.extend(u())}return ot};function Fs(a,u){let c=Ds(),h=[],l=[],f=c.parse(a,{...Os,sourceType:u,allowImportExportEverywhere:u==="module",onComment:h,onToken:l});return f.comments=h,f.tokens=l,f}function js(a,u={}){let c=Me(u),h=(c?[c]:["module","script"]).map(f=>()=>Fs(a,f)),l;try{l=Oe(h)}catch({errors:[f]}){throw Bs(f)}return je(l,{text:a})}var xi=De(js);var er={ecmaVersion:"latest",range:!0,loc:!0,comment:!0,tokens:!0,sourceType:"module",ecmaFeatures:{jsx:!0,globalReturn:!0,impliedStrict:!1}};function tr(a){let{message:u,lineNumber:c,column:h}=a;return typeof c!="number"?a:Re(u,{loc:{start:{line:c,column:h}},cause:a})}function ir(a,u={}){let{parse:c}=vi(),h=Me(u),l=(h?[h]:["module","script"]).map(y=>()=>c(a,{...er,sourceType:y})),f;try{f=Oe(l)}catch({errors:[y]}){throw tr(y)}return je(f,{text:a})}var bi=De(ir);var sr={acorn:xi,espree:bi};var fa=ct;export{fa as default,sr as parsers}; diff --git a/node_modules/prettier/plugins/angular.js b/node_modules/prettier/plugins/angular.js index 7f3b22f..5a681dc 100644 --- a/node_modules/prettier/plugins/angular.js +++ b/node_modules/prettier/plugins/angular.js @@ -1,2 +1,2 @@ -(function(n){function e(){var i=n();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.angular=e()}})(function(){"use strict";var Pe=Object.defineProperty;var Kt=Object.getOwnPropertyDescriptor;var Tt=Object.getOwnPropertyNames;var _t=Object.prototype.hasOwnProperty;var Ze=(r,e)=>{for(var t in e)Pe(r,t,{get:e[t],enumerable:!0})},Mt=(r,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Tt(e))!_t.call(r,n)&&n!==t&&Pe(r,n,{get:()=>e[n],enumerable:!(s=Kt(e,n))||s.enumerable});return r};var Ft=r=>Mt(Pe({},"__esModule",{value:!0}),r);var _r={};Ze(_r,{parsers:()=>Ie});var Ie={};Ze(Ie,{__ng_action:()=>br,__ng_binding:()=>Br,__ng_directive:()=>Tr,__ng_interpolation:()=>Kr});var me=` -`,Je="\r",Ye=function(){function r(e){this.length=e.length;for(var t=[0],s=0;sthis.length)return null;for(var t=0,s=this.offsets;s[t+1]<=e;)t++;var n=e-s[t];return{line:t,column:n}},r.prototype.indexForLocation=function(e){var t=e.line,s=e.column;return t<0||t>=this.offsets.length||s<0||s>this.lengthOfLine(t)?null:this.offsets[t]+s},r.prototype.lengthOfLine=function(e){var t=this.offsets[e],s=e===this.offsets.length-1?this.length:this.offsets[e+1];return s-t},r}();var le=class{text;locator;constructor(e){this.text=e,this.locator=new Le(this.text)}},Le=class{_linesAndColumns;constructor(e){this._linesAndColumns=new Ye(e)}locationForIndex(e){let{line:t,column:s}=this._linesAndColumns.locationForIndex(e);return{line:t+1,column:s,index:e}}};var G=class{constructor(e,t,s,n){this.input=t,this.errLocation=s,this.ctxLocation=n,this.message=`Parser Error: ${e} ${s} [${t}] in ${n}`}},P=class{constructor(e,t){this.start=e,this.end=t}toAbsolute(e){return new I(e+this.start,e+this.end)}},S=class{constructor(e,t){this.span=e,this.sourceSpan=t}toString(){return"AST"}},D=class extends S{constructor(e,t,s){super(e,t),this.nameSpan=s}},E=class extends S{visit(e,t=null){}},L=class extends S{visit(e,t=null){return e.visitImplicitReceiver(this,t)}},Se=class extends L{visit(e,t=null){var s;return(s=e.visitThisReceiver)==null?void 0:s.call(e,this,t)}},V=class extends S{constructor(e,t,s){super(e,t),this.expressions=s}visit(e,t=null){return e.visitChain(this,t)}},W=class extends S{constructor(e,t,s,n,i){super(e,t),this.condition=s,this.trueExp=n,this.falseExp=i}visit(e,t=null){return e.visitConditional(this,t)}},B=class extends D{constructor(e,t,s,n,i){super(e,t,s),this.receiver=n,this.name=i}visit(e,t=null){return e.visitPropertyRead(this,t)}},Q=class extends D{constructor(e,t,s,n,i,a){super(e,t,s),this.receiver=n,this.name=i,this.value=a}visit(e,t=null){return e.visitPropertyWrite(this,t)}},H=class extends D{constructor(e,t,s,n,i){super(e,t,s),this.receiver=n,this.name=i}visit(e,t=null){return e.visitSafePropertyRead(this,t)}},j=class extends S{constructor(e,t,s,n){super(e,t),this.receiver=s,this.key=n}visit(e,t=null){return e.visitKeyedRead(this,t)}},z=class extends S{constructor(e,t,s,n){super(e,t),this.receiver=s,this.key=n}visit(e,t=null){return e.visitSafeKeyedRead(this,t)}},q=class extends S{constructor(e,t,s,n,i){super(e,t),this.receiver=s,this.key=n,this.value=i}visit(e,t=null){return e.visitKeyedWrite(this,t)}},X=class extends D{constructor(e,t,s,n,i,a){super(e,t,a),this.exp=s,this.name=n,this.args=i}visit(e,t=null){return e.visitPipe(this,t)}},A=class extends S{constructor(e,t,s){super(e,t),this.value=s}visit(e,t=null){return e.visitLiteralPrimitive(this,t)}},Z=class extends S{constructor(e,t,s){super(e,t),this.expressions=s}visit(e,t=null){return e.visitLiteralArray(this,t)}},J=class extends S{constructor(e,t,s,n){super(e,t),this.keys=s,this.values=n}visit(e,t=null){return e.visitLiteralMap(this,t)}},we=class extends S{constructor(e,t,s,n){super(e,t),this.strings=s,this.expressions=n}visit(e,t=null){return e.visitInterpolation(this,t)}},$=class extends S{constructor(e,t,s,n,i){super(e,t),this.operation=s,this.left=n,this.right=i}visit(e,t=null){return e.visitBinary(this,t)}},K=class r extends ${static createMinus(e,t,s){return new r(e,t,"-",s,"-",new A(e,t,0),s)}static createPlus(e,t,s){return new r(e,t,"+",s,"-",s,new A(e,t,0))}constructor(e,t,s,n,i,a,h){super(e,t,i,a,h),this.operator=s,this.expr=n,this.left=null,this.right=null,this.operation=null}visit(e,t=null){return e.visitUnary!==void 0?e.visitUnary(this,t):e.visitBinary(this,t)}},Y=class extends S{constructor(e,t,s){super(e,t),this.expression=s}visit(e,t=null){return e.visitPrefixNot(this,t)}},ee=class extends S{constructor(e,t,s){super(e,t),this.expression=s}visit(e,t=null){return e.visitNonNullAssert(this,t)}},te=class extends S{constructor(e,t,s,n,i){super(e,t),this.receiver=s,this.args=n,this.argumentSpan=i}visit(e,t=null){return e.visitCall(this,t)}},re=class extends S{constructor(e,t,s,n,i){super(e,t),this.receiver=s,this.args=n,this.argumentSpan=i}visit(e,t=null){return e.visitSafeCall(this,t)}},I=class{constructor(e,t){this.start=e,this.end=t}},R=class extends S{constructor(e,t,s,n,i){super(new P(0,t===null?0:t.length),new I(n,t===null?n:n+t.length)),this.ast=e,this.source=t,this.location=s,this.errors=i}visit(e,t=null){return e.visitASTWithSource?e.visitASTWithSource(this,t):this.ast.visit(e,t)}toString(){return`${this.source} in ${this.location}`}},T=class{constructor(e,t,s){this.sourceSpan=e,this.key=t,this.value=s}},se=class{constructor(e,t,s){this.sourceSpan=e,this.key=t,this.value=s}},ye=class{visit(e,t){e.visit(this,t)}visitUnary(e,t){this.visit(e.expr,t)}visitBinary(e,t){this.visit(e.left,t),this.visit(e.right,t)}visitChain(e,t){this.visitAll(e.expressions,t)}visitConditional(e,t){this.visit(e.condition,t),this.visit(e.trueExp,t),this.visit(e.falseExp,t)}visitPipe(e,t){this.visit(e.exp,t),this.visitAll(e.args,t)}visitImplicitReceiver(e,t){}visitThisReceiver(e,t){}visitInterpolation(e,t){this.visitAll(e.expressions,t)}visitKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitKeyedWrite(e,t){this.visit(e.receiver,t),this.visit(e.key,t),this.visit(e.value,t)}visitLiteralArray(e,t){this.visitAll(e.expressions,t)}visitLiteralMap(e,t){this.visitAll(e.values,t)}visitLiteralPrimitive(e,t){}visitPrefixNot(e,t){this.visit(e.expression,t)}visitNonNullAssert(e,t){this.visit(e.expression,t)}visitPropertyRead(e,t){this.visit(e.receiver,t)}visitPropertyWrite(e,t){this.visit(e.receiver,t),this.visit(e.value,t)}visitSafePropertyRead(e,t){this.visit(e.receiver,t)}visitSafeKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitSafeCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitAll(e,t){for(let s of e)this.visit(s,t)}};var et;(function(r){r[r.DEFAULT=0]="DEFAULT",r[r.LITERAL_ATTR=1]="LITERAL_ATTR",r[r.ANIMATION=2]="ANIMATION"})(et||(et={}));function tt(r){return r>=9&&r<=32||r==160}function b(r){return 48<=r&&r<=57}function rt(r){return r>=97&&r<=122||r>=65&&r<=90}function be(r){return r===39||r===34||r===96}var d;(function(r){r[r.Character=0]="Character",r[r.Identifier=1]="Identifier",r[r.PrivateIdentifier=2]="PrivateIdentifier",r[r.Keyword=3]="Keyword",r[r.String=4]="String",r[r.Operator=5]="Operator",r[r.Number=6]="Number",r[r.Error=7]="Error"})(d||(d={}));var dr=["var","let","as","null","undefined","true","false","if","else","this"],xe=class{tokenize(e){let t=new Te(e),s=[],n=t.scanToken();for(;n!=null;)s.push(n),n=t.scanToken();return s}},N=class{constructor(e,t,s,n,i){this.index=e,this.end=t,this.type=s,this.numValue=n,this.strValue=i}isCharacter(e){return this.type==d.Character&&this.numValue==e}isNumber(){return this.type==d.Number}isString(){return this.type==d.String}isOperator(e){return this.type==d.Operator&&this.strValue==e}isIdentifier(){return this.type==d.Identifier}isPrivateIdentifier(){return this.type==d.PrivateIdentifier}isKeyword(){return this.type==d.Keyword}isKeywordLet(){return this.type==d.Keyword&&this.strValue=="let"}isKeywordAs(){return this.type==d.Keyword&&this.strValue=="as"}isKeywordNull(){return this.type==d.Keyword&&this.strValue=="null"}isKeywordUndefined(){return this.type==d.Keyword&&this.strValue=="undefined"}isKeywordTrue(){return this.type==d.Keyword&&this.strValue=="true"}isKeywordFalse(){return this.type==d.Keyword&&this.strValue=="false"}isKeywordThis(){return this.type==d.Keyword&&this.strValue=="this"}isError(){return this.type==d.Error}toNumber(){return this.type==d.Number?this.numValue:-1}toString(){switch(this.type){case d.Character:case d.Identifier:case d.Keyword:case d.Operator:case d.PrivateIdentifier:case d.String:case d.Error:return this.strValue;case d.Number:return this.numValue.toString();default:return null}}};function ot(r,e,t){return new N(r,e,d.Character,t,String.fromCharCode(t))}function vr(r,e,t){return new N(r,e,d.Identifier,0,t)}function gr(r,e,t){return new N(r,e,d.PrivateIdentifier,0,t)}function mr(r,e,t){return new N(r,e,d.Keyword,0,t)}function Ke(r,e,t){return new N(r,e,d.Operator,0,t)}function Sr(r,e,t){return new N(r,e,d.String,0,t)}function wr(r,e,t){return new N(r,e,d.Number,t,"")}function yr(r,e,t){return new N(r,e,d.Error,0,t)}var Ce=new N(-1,-1,d.Character,0,""),Te=class{constructor(e){this.input=e,this.peek=0,this.index=-1,this.length=e.length,this.advance()}advance(){this.peek=++this.index>=this.length?0:this.input.charCodeAt(this.index)}scanToken(){let e=this.input,t=this.length,s=this.peek,n=this.index;for(;s<=32;)if(++n>=t){s=0;break}else s=e.charCodeAt(n);if(this.peek=s,this.index=n,n>=t)return null;if(ct(s))return this.scanIdentifier();if(b(s))return this.scanNumber(n);let i=n;switch(s){case 46:return this.advance(),b(this.peek)?this.scanNumber(i):ot(i,this.index,46);case 40:case 41:case 123:case 125:case 91:case 93:case 44:case 58:case 59:return this.scanCharacter(i,s);case 39:case 34:return this.scanString();case 35:return this.scanPrivateIdentifier();case 43:case 45:case 42:case 47:case 37:case 94:return this.scanOperator(i,String.fromCharCode(s));case 63:return this.scanQuestion(i);case 60:case 62:return this.scanComplexOperator(i,String.fromCharCode(s),61,"=");case 33:case 61:return this.scanComplexOperator(i,String.fromCharCode(s),61,"=",61,"=");case 38:return this.scanComplexOperator(i,"&",38,"&");case 124:return this.scanComplexOperator(i,"|",124,"|");case 160:for(;tt(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(s)}]`,0)}scanCharacter(e,t){return this.advance(),ot(e,this.index,t)}scanOperator(e,t){return this.advance(),Ke(e,this.index,t)}scanComplexOperator(e,t,s,n,i,a){this.advance();let h=t;return this.peek==s&&(this.advance(),h+=n),i!=null&&this.peek==i&&(this.advance(),h+=a),Ke(e,this.index,h)}scanIdentifier(){let e=this.index;for(this.advance();ht(this.peek);)this.advance();let t=this.input.substring(e,this.index);return dr.indexOf(t)>-1?mr(e,this.index,t):vr(e,this.index,t)}scanPrivateIdentifier(){let e=this.index;if(this.advance(),!ct(this.peek))return this.error("Invalid character [#]",-1);for(;ht(this.peek);)this.advance();let t=this.input.substring(e,this.index);return gr(e,this.index,t)}scanNumber(e){let t=this.index===e,s=!1;for(this.advance();;){if(!b(this.peek))if(this.peek===95){if(!b(this.input.charCodeAt(this.index-1))||!b(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);s=!0}else if(this.peek===46)t=!1;else if(Er(this.peek)){if(this.advance(),Ar(this.peek)&&this.advance(),!b(this.peek))return this.error("Invalid exponent",-1);t=!1}else break;this.advance()}let n=this.input.substring(e,this.index);s&&(n=n.replace(/_/g,""));let i=t?Cr(n):parseFloat(n);return wr(e,this.index,i)}scanString(){let e=this.index,t=this.peek;this.advance();let s="",n=this.index,i=this.input;for(;this.peek!=t;)if(this.peek==92){s+=i.substring(n,this.index);let h;if(this.advance(),this.peek==117){let v=i.substring(this.index+1,this.index+5);if(/^[0-9a-f]+$/i.test(v))h=parseInt(v,16);else return this.error(`Invalid unicode escape [\\u${v}]`,0);for(let f=0;f<5;f++)this.advance()}else h=$r(this.peek),this.advance();s+=String.fromCharCode(h),n=this.index}else{if(this.peek==0)return this.error("Unterminated quote",0);this.advance()}let a=i.substring(n,this.index);return this.advance(),Sr(e,this.index,s+a)}scanQuestion(e){this.advance();let t="?";return(this.peek===63||this.peek===46)&&(t+=this.peek===46?".":"?",this.advance()),Ke(e,this.index,t)}error(e,t){let s=this.index+t;return yr(s,this.index,`Lexer Error: ${e} at column ${s} in expression [${this.input}]`)}};function ct(r){return 97<=r&&r<=122||65<=r&&r<=90||r==95||r==36}function ht(r){return rt(r)||b(r)||r==95||r==36}function Er(r){return r==101||r==69}function Ar(r){return r==45||r==43}function $r(r){switch(r){case 110:return 10;case 102:return 12;case 114:return 13;case 116:return 9;case 118:return 11;default:return r}}function Cr(r){let e=parseInt(r);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+r);return e}var Or=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function xt(r,e){if(e!=null&&!(Array.isArray(e)&&e.length==2))throw new Error(`Expected '${r}' to be an array, [start, end].`);if(e!=null){let t=e[0],s=e[1];Or.forEach(n=>{if(n.test(t)||n.test(s))throw new Error(`['${t}', '${s}'] contains unusable interpolation symbol.`)})}}var Me=class r{static fromArray(e){return e?(xt("interpolation",e),new r(e[0],e[1])):F}constructor(e,t){this.start=e,this.end=t}},F=new Me("{{","}}");var Fe=class{constructor(e,t,s){this.strings=e,this.expressions=t,this.offsets=s}},Ue=class{constructor(e,t,s){this.templateBindings=e,this.warnings=t,this.errors=s}},ve=class{constructor(e){this._lexer=e,this.errors=[]}parseAction(e,t,s,n,i=F){this._checkNoInterpolation(e,s,i);let a=this._stripComments(e),h=this._lexer.tokenize(a),v=1;t&&(v|=2);let f=new U(e,s,n,h,v,this.errors,0).parseChain();return new R(f,e,s,n,this.errors)}parseBinding(e,t,s,n=F){let i=this._parseBindingAst(e,t,s,n);return new R(i,e,t,s,this.errors)}checkSimpleExpression(e){let t=new Ge;return e.visit(t),t.errors}parseSimpleBinding(e,t,s,n=F){let i=this._parseBindingAst(e,t,s,n),a=this.checkSimpleExpression(i);return a.length>0&&this._reportError(`Host binding expression cannot contain ${a.join(" ")}`,e,t),new R(i,e,t,s,this.errors)}_reportError(e,t,s,n){this.errors.push(new G(e,t,s,n))}_parseBindingAst(e,t,s,n){this._checkNoInterpolation(e,t,n);let i=this._stripComments(e),a=this._lexer.tokenize(i);return new U(e,t,s,a,0,this.errors,0).parseChain()}parseTemplateBindings(e,t,s,n,i){let a=this._lexer.tokenize(t);return new U(t,s,i,a,0,this.errors,0).parseTemplateBindings({source:e,span:new I(n,n+e.length)})}parseInterpolation(e,t,s,n,i=F){let{strings:a,expressions:h,offsets:v}=this.splitInterpolation(e,t,n,i);if(h.length===0)return null;let f=[];for(let w=0;ww.text),f,e,t,s)}parseInterpolationExpression(e,t,s){let n=this._stripComments(e),i=this._lexer.tokenize(n),a=new U(e,t,s,i,0,this.errors,0).parseChain(),h=["",""];return this.createInterpolationAst(h,[a],e,t,s)}createInterpolationAst(e,t,s,n,i){let a=new P(0,s.length),h=new we(a,a.toAbsolute(i),e,t);return new R(h,s,n,i,this.errors)}splitInterpolation(e,t,s,n=F){let i=[],a=[],h=[],v=s?Nr(s):null,f=0,w=!1,k=!1,{start:C,end:y}=n;for(;f-1)break;i>-1&&a>-1&&this._reportError(`Got interpolation (${s}${n}) where expression was expected`,e,`at column ${i} in`,t)}_getInterpolationEndIndex(e,t,s){for(let n of this._forEachUnquotedChar(e,s)){if(e.startsWith(t,n))return n;if(e.startsWith("//",n))return e.indexOf(t,n)}return-1}*_forEachUnquotedChar(e,t){let s=null,n=0;for(let i=t;i=this.tokens.length}get inputIndex(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}get currentEndIndex(){return this.index>0?this.peek(-1).end+this.offset:this.tokens.length===0?this.input.length+this.offset:this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(e,t){let s=this.currentEndIndex;if(t!==void 0&&t>this.currentEndIndex&&(s=t),e>s){let n=s;s=e,e=n}return new P(e,s)}sourceSpan(e,t){let s=`${e}@${this.inputIndex}:${t}`;return this.sourceSpanCache.has(s)||this.sourceSpanCache.set(s,this.span(e,t).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(s)}advance(){this.index++}withContext(e,t){this.context|=e;let s=t();return this.context^=e,s}consumeOptionalCharacter(e){return this.next.isCharacter(e)?(this.advance(),!0):!1}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(e){this.consumeOptionalCharacter(e)||this.error(`Missing expected ${String.fromCharCode(e)}`)}consumeOptionalOperator(e){return this.next.isOperator(e)?(this.advance(),!0):!1}expectOperator(e){this.consumeOptionalOperator(e)||this.error(`Missing expected operator ${e}`)}prettyPrintToken(e){return e===Ce?"end of input":`token ${e}`}expectIdentifierOrKeyword(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier or keyword"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier or keyword`),null):(this.advance(),e.toString())}expectIdentifierOrKeywordOrString(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()&&!e.isString()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier, keyword or string"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier, keyword, or string`),""):(this.advance(),e.toString())}parseChain(){let e=[],t=this.inputIndex;for(;this.index":case"<=":case">=":this.advance();let n=this.parseAdditive();t=new $(this.span(e),this.sourceSpan(e),s,t,n);continue}break}return t}parseAdditive(){let e=this.inputIndex,t=this.parseMultiplicative();for(;this.next.type==d.Operator;){let s=this.next.strValue;switch(s){case"+":case"-":this.advance();let n=this.parseMultiplicative();t=new $(this.span(e),this.sourceSpan(e),s,t,n);continue}break}return t}parseMultiplicative(){let e=this.inputIndex,t=this.parsePrefix();for(;this.next.type==d.Operator;){let s=this.next.strValue;switch(s){case"*":case"%":case"/":this.advance();let n=this.parsePrefix();t=new $(this.span(e),this.sourceSpan(e),s,t,n);continue}break}return t}parsePrefix(){if(this.next.type==d.Operator){let e=this.inputIndex,t=this.next.strValue,s;switch(t){case"+":return this.advance(),s=this.parsePrefix(),K.createPlus(this.span(e),this.sourceSpan(e),s);case"-":return this.advance(),s=this.parsePrefix(),K.createMinus(this.span(e),this.sourceSpan(e),s);case"!":return this.advance(),s=this.parsePrefix(),new Y(this.span(e),this.sourceSpan(e),s)}}return this.parseCallChain()}parseCallChain(){let e=this.inputIndex,t=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(46))t=this.parseAccessMember(t,e,!1);else if(this.consumeOptionalOperator("?."))this.consumeOptionalCharacter(40)?t=this.parseCall(t,e,!0):t=this.consumeOptionalCharacter(91)?this.parseKeyedReadOrWrite(t,e,!0):this.parseAccessMember(t,e,!0);else if(this.consumeOptionalCharacter(91))t=this.parseKeyedReadOrWrite(t,e,!1);else if(this.consumeOptionalCharacter(40))t=this.parseCall(t,e,!1);else if(this.consumeOptionalOperator("!"))t=new ee(this.span(e),this.sourceSpan(e),t);else return t}parsePrimary(){let e=this.inputIndex;if(this.consumeOptionalCharacter(40)){this.rparensExpected++;let t=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),t}else{if(this.next.isKeywordNull())return this.advance(),new A(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new A(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new A(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new A(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new Se(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(91)){this.rbracketsExpected++;let t=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new Z(this.span(e),this.sourceSpan(e),t)}else{if(this.next.isCharacter(123))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new L(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){let t=this.next.toNumber();return this.advance(),new A(this.span(e),this.sourceSpan(e),t)}else if(this.next.isString()){let t=this.next.toString();return this.advance(),new A(this.span(e),this.sourceSpan(e),t)}else return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new E(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new E(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new E(this.span(e),this.sourceSpan(e)))}}}parseExpressionList(e){let t=[];do if(!this.next.isCharacter(e))t.push(this.parsePipe());else break;while(this.consumeOptionalCharacter(44));return t}parseLiteralMap(){let e=[],t=[],s=this.inputIndex;if(this.expectCharacter(123),!this.consumeOptionalCharacter(125)){this.rbracesExpected++;do{let n=this.inputIndex,i=this.next.isString(),a=this.expectIdentifierOrKeywordOrString();if(e.push({key:a,quoted:i}),i)this.expectCharacter(58),t.push(this.parsePipe());else if(this.consumeOptionalCharacter(58))t.push(this.parsePipe());else{let h=this.span(n),v=this.sourceSpan(n);t.push(new B(h,v,v,new L(h,v),a))}}while(this.consumeOptionalCharacter(44)&&!this.next.isCharacter(125));this.rbracesExpected--,this.expectCharacter(125)}return new J(this.span(s),this.sourceSpan(s),e,t)}parseAccessMember(e,t,s){let n=this.inputIndex,i=this.withContext(he.Writable,()=>{let v=this.expectIdentifierOrKeyword()??"";return v.length===0&&this.error("Expected identifier for property access",e.span.end),v}),a=this.sourceSpan(n),h;if(s)this.consumeOptionalAssignment()?(this.error("The '?.' operator cannot be used in the assignment"),h=new E(this.span(t),this.sourceSpan(t))):h=new H(this.span(t),this.sourceSpan(t),a,e,i);else if(this.consumeOptionalAssignment()){if(!(this.parseFlags&1))return this.error("Bindings cannot contain assignments"),new E(this.span(t),this.sourceSpan(t));let v=this.parseConditional();h=new Q(this.span(t),this.sourceSpan(t),a,e,i,v)}else h=new B(this.span(t),this.sourceSpan(t),a,e,i);return h}parseCall(e,t,s){let n=this.inputIndex;this.rparensExpected++;let i=this.parseCallArguments(),a=this.span(n,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(41),this.rparensExpected--;let h=this.span(t),v=this.sourceSpan(t);return s?new re(h,v,e,i,a):new te(h,v,e,i,a)}consumeOptionalAssignment(){return this.parseFlags&2&&this.next.isOperator("!")&&this.peek(1).isOperator("=")?(this.advance(),this.advance(),!0):this.consumeOptionalOperator("=")}parseCallArguments(){if(this.next.isCharacter(41))return[];let e=[];do e.push(this.parsePipe());while(this.consumeOptionalCharacter(44));return e}expectTemplateBindingKey(){let e="",t=!1,s=this.currentAbsoluteOffset;do e+=this.expectIdentifierOrKeywordOrString(),t=this.consumeOptionalOperator("-"),t&&(e+="-");while(t);return{source:e,span:new I(s,s+e.length)}}parseTemplateBindings(e){let t=[];for(t.push(...this.parseDirectiveKeywordBindings(e));this.index{this.rbracketsExpected++;let n=this.parsePipe();if(n instanceof E&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(93),this.consumeOptionalOperator("="))if(s)this.error("The '?.' operator cannot be used in the assignment");else{let i=this.parseConditional();return new q(this.span(t),this.sourceSpan(t),e,n,i)}else return s?new z(this.span(t),this.sourceSpan(t),e,n):new j(this.span(t),this.sourceSpan(t),e,n);return new E(this.span(t),this.sourceSpan(t))})}parseDirectiveKeywordBindings(e){let t=[];this.consumeOptionalCharacter(58);let s=this.getDirectiveBoundTarget(),n=this.currentAbsoluteOffset,i=this.parseAsBinding(e);i||(this.consumeStatementTerminator(),n=this.currentAbsoluteOffset);let a=new I(e.span.start,n);return t.push(new se(a,e,s)),i&&t.push(i),t}getDirectiveBoundTarget(){if(this.next===Ce||this.peekKeywordAs()||this.peekKeywordLet())return null;let e=this.parsePipe(),{start:t,end:s}=e.span,n=this.input.substring(t,s);return new R(e,n,this.location,this.absoluteOffset+t,this.errors)}parseAsBinding(e){if(!this.peekKeywordAs())return null;this.advance();let t=this.expectTemplateBindingKey();this.consumeStatementTerminator();let s=new I(e.span.start,this.currentAbsoluteOffset);return new T(s,t,e)}parseLetBinding(){if(!this.peekKeywordLet())return null;let e=this.currentAbsoluteOffset;this.advance();let t=this.expectTemplateBindingKey(),s=null;this.consumeOptionalOperator("=")&&(s=this.expectTemplateBindingKey()),this.consumeStatementTerminator();let n=new I(e,this.currentAbsoluteOffset);return new T(n,t,s)}consumeStatementTerminator(){this.consumeOptionalCharacter(59)||this.consumeOptionalCharacter(44)}error(e,t=null){this.errors.push(new G(e,this.input,this.locationText(t),this.location)),this.skip()}locationText(e=null){return e==null&&(e=this.index),eh+v.length,0);s+=a,t+=a}e.set(s,t),n++}return e}var dt="angular-estree-parser",Ve="NgEstreeParser",De=0,We=[dt,De];function vt(){return new ve(new xe)}function Qe(r,e){let t=vt(),{astInput:s,comments:n}=Ir(r,t),{ast:i,errors:a}=e(s,t);return yt(a),{ast:i,comments:n}}function gt(r){return Qe(r,(e,t)=>t.parseBinding(e,...We))}function mt(r){return Qe(r,(e,t)=>t.parseAction(e,!1,...We))}function St(r){return Qe(r,(e,t)=>{let s=t.parseInterpolationExpression(e,...We);return s.ast=s.ast.expressions[0],s})}function wt(r){let e=vt(),{templateBindings:t,errors:s}=e.parseTemplateBindings(Ve,r,dt,De,De);return yt(s),t}function yt(r){if(r.length!==0){let[{message:e}]=r;throw new SyntaxError(e.replace(/^Parser Error: | at column \d+ in [^]*$/g,""))}}function Ir(r,e){let t=e._commentStart(r);return t===null?{astInput:r,comments:[]}:{astInput:r.slice(0,t),comments:[{type:"Comment",value:r.slice(t+2),sourceSpan:{start:t,end:r.length}}]}}function Et(r){return r instanceof K?"Unary":r instanceof $?"Binary":r instanceof X?"BindingPipe":r instanceof te?"Call":r instanceof V?"Chain":r instanceof W?"Conditional":r instanceof E?"EmptyExpr":r instanceof L?"ImplicitReceiver":r instanceof j?"KeyedRead":r instanceof z?"SafeKeyedRead":r instanceof q?"KeyedWrite":r instanceof Z?"LiteralArray":r instanceof J?"LiteralMap":r instanceof A?"LiteralPrimitive":r instanceof ee?"NonNullAssert":r instanceof Y?"PrefixNot":r instanceof B?"PropertyRead":r instanceof Q?"PropertyWrite":r instanceof re?"SafeCall":r instanceof H?"SafePropertyRead":r.type}function ft({start:r,end:e},t){let s=r,n=e;for(;n!==s&&/\s/.test(t[n-1]);)n--;for(;s!==n&&/\s/.test(t[s]);)s++;return{start:s,end:n}}function Rr({start:r,end:e},t){let s=r,n=e;for(;n!==t.length&&/\s/.test(t[n]);)n++;for(;s!==0&&/\s/.test(t[s-1]);)s--;return{start:s,end:n}}function Pr(r,e){return e[r.start-1]==="("&&e[r.end]===")"?{start:r.start-1,end:r.end+1}:r}function At(r,e,t){let s=0,n={start:r.start,end:r.end};for(;;){let i=Rr(n,e),a=Pr(i,e);if(i.start===a.start&&i.end===a.end)break;n.start=a.start,n.end=a.end,s++}return{hasParens:(t?s-1:s)!==0,outerSpan:ft(t?{start:n.start+1,end:n.end-1}:n,e),innerSpan:ft(r,e)}}function $t(r,e,t){let s=e;for(;!r.test(t[s]);)if(--s<0)throw new Error(`Cannot find front char ${r} from index ${e} in ${JSON.stringify(t)}`);return s}function Oe(r,e,t){let s=e;for(;!r.test(t[s]);)if(++s>=t.length)throw new Error(`Cannot find back char ${r} from index ${e} in ${JSON.stringify(t)}`);return s}function Ct(r){return r.slice(0,1).toLowerCase()+r.slice(1)}function Ot(r){return r.length===0?void 0:r[r.length-1]}var pe=(r,e,t=!1)=>{let s=Et(r);switch(s){case"Unary":{let{operator:c,expr:o}=r,x=n(o);return a("UnaryExpression",{prefix:!0,argument:x,operator:c},r.sourceSpan,{hasParentParens:t})}case"Binary":{let{left:c,operation:o,right:x}=r,p=n(c),u=n(x);return a(o==="&&"||o==="||"||o==="??"?"LogicalExpression":"BinaryExpression",{left:p,right:u,operator:o},{start:y(p),end:m(u)},{hasParentParens:t})}case"BindingPipe":{let{exp:c,name:o,args:x}=r,p=n(c),u=f(/\S/,f(/\|/,m(p))+1),g=a("Identifier",{name:o},{start:u,end:u+o.length}),l=x.map(n);return a("NGPipeExpression",{left:p,right:g,arguments:l},{start:y(p),end:m(l.length===0?g:Ot(l))},{hasParentParens:t})}case"Chain":{let{expressions:c}=r;return a("NGChainedExpression",{expressions:c.map(n)},r.sourceSpan,{hasParentParens:t})}case"Comment":{let{value:c}=r;return a("CommentLine",{value:c},r.sourceSpan,{processSpan:!1})}case"Conditional":{let{condition:c,trueExp:o,falseExp:x}=r,p=n(c),u=n(o),g=n(x);return a("ConditionalExpression",{test:p,consequent:u,alternate:g},{start:y(p),end:m(g)},{hasParentParens:t})}case"EmptyExpr":return a("NGEmptyExpression",{},r.sourceSpan,{hasParentParens:t});case"ImplicitReceiver":return a("ThisExpression",{},r.sourceSpan,{hasParentParens:t});case"KeyedRead":case"SafeKeyedRead":{let c=s==="SafeKeyedRead",{key:o}=r,x=Object.prototype.hasOwnProperty.call(r,"receiver")?r.receiver:r.obj,p=n(o);return h(x,p,{computed:!0,optional:c},{end:r.sourceSpan.end,hasParentParens:t})}case"LiteralArray":{let{expressions:c}=r;return a("ArrayExpression",{elements:c.map(n)},r.sourceSpan,{hasParentParens:t})}case"LiteralMap":{let{keys:c,values:o}=r,x=o.map(u=>n(u)),p=c.map(({key:u,quoted:g},l)=>{let O=x[l],ue=y(O),qe=m(O),Re=f(/\S/,l===0?r.sourceSpan.start+1:f(/,/,m(x[l-1]))+1),bt=ue===Re?qe:v(/\S/,v(/:/,ue-1)-1)+1,Xe={start:Re,end:bt},ge=g?a("StringLiteral",{value:u},Xe):a("Identifier",{name:u},Xe),Bt=ge.end=c.sourceSpan.end||/^\s+$/.test(e.text.slice(c.sourceSpan.start,c.sourceSpan.end))}function k(c){return(c.type==="OptionalCallExpression"||c.type==="OptionalMemberExpression")&&!C(c)}function C(c){return c.extra&&c.extra.parenthesized}function y(c){return C(c)?c.extra.parenStart:c.start}function m(c){return C(c)?c.extra.parenEnd:c.end}};function Ne(r,e,t=!1,s=!1){if(!t){let{start:h,end:v}=r;return{start:h,end:v,loc:{start:e.locator.locationForIndex(h),end:e.locator.locationForIndex(v)}}}let{outerSpan:n,innerSpan:i,hasParens:a}=At(r,e.text,s);return{start:i.start,end:i.end,loc:{start:e.locator.locationForIndex(i.start),end:e.locator.locationForIndex(i.end)},...a&&{extra:{parenthesized:!0,parenStart:n.start,parenEnd:n.end}}}}function Nt(r,e){r.forEach(y);let[t]=r,{key:s}=t,n=e.text.slice(t.sourceSpan.start,t.sourceSpan.end).trim().length===0?r.slice(1):r,i=[],a=null;for(let o=0;o({...O,...Ne({start:O.start,end:ue},e)}),g=O=>({...u(O,p.end),alias:p}),l=i.pop();if(l.type==="NGMicrosyntaxExpression")i.push(g(l));else if(l.type==="NGMicrosyntaxKeyedExpression"){let O=g(l.expression);i.push(u({...l,expression:O},O.end))}else throw new Error(`Unexpected type ${l.type}`)}else i.push(h(x,o));a=x}return f("NGMicrosyntax",{body:i},i.length===0?r[0].sourceSpan:{start:i[0].start,end:i[i.length-1].end});function h(o,x){if(k(o)){let{key:p,value:u}=o;return u?x===0?f("NGMicrosyntaxExpression",{expression:v(u.ast),alias:null},u.sourceSpan):f("NGMicrosyntaxKeyedExpression",{key:f("NGMicrosyntaxKey",{name:w(p.source)},p.span),expression:f("NGMicrosyntaxExpression",{expression:v(u.ast),alias:null},u.sourceSpan)},{start:p.span.start,end:u.sourceSpan.end}):f("NGMicrosyntaxKey",{name:w(p.source)},p.span)}else{let{key:p,sourceSpan:u}=o;if(/^let\s$/.test(e.text.slice(u.start,u.start+4))){let{value:l}=o;return f("NGMicrosyntaxLet",{key:f("NGMicrosyntaxKey",{name:p.source},p.span),value:l?f("NGMicrosyntaxKey",{name:l.source},l.span):null},{start:u.start,end:l?l.span.end:p.span.end})}else{let l=c(o);return f("NGMicrosyntaxAs",{key:f("NGMicrosyntaxKey",{name:l.source},l.span),alias:f("NGMicrosyntaxKey",{name:p.source},p.span)},{start:l.span.start,end:p.span.end})}}}function v(o){return pe(o,e)}function f(o,x,p,u=!0){return{type:o,...Ne(p,e,u),...x}}function w(o){return Ct(o.slice(s.source.length))}function k(o){return o instanceof se}function C(o){return o instanceof T}function y(o){m(o.key.span),C(o)&&o.value&&m(o.value.span)}function m(o){if(e.text[o.start]!=='"'&&e.text[o.start]!=="'")return;let x=e.text[o.start],p=!1;for(let u=o.start+1;upe(h,n),a=i(t);return a.comments=s.map(h=>i(h)),a}function kt(r){return He(r,gt)}function It(r){return He(r,St)}function je(r){return He(r,mt)}function Rt(r){return Nt(wt(r),new le(r))}function Lr(r){return Array.isArray(r)&&r.length>0}var Pt=Lr;function ze(r){var s;let e=r.range?r.range[0]:r.start,t=((s=r.declaration)==null?void 0:s.decorators)??r.decorators;return Pt(t)?Math.min(ze(t[0]),e):e}function Lt(r){return r.range?r.range[1]:r.end}function ke(r){return{astFormat:"estree",parse(e){let t=r(e);return{type:"NGRoot",node:r===je&&t.type!=="NGChainedExpression"?{...t,type:"NGChainedExpression",expressions:[t]}:t}},locStart:ze,locEnd:Lt}}var br=ke(je),Br=ke(kt),Kr=ke(It),Tr=ke(Rt);return Ft(_r);}); \ No newline at end of file +(function(n){function e(){var i=n();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.angular=e()}})(function(){"use strict";var Re=Object.defineProperty;var Kt=Object.getOwnPropertyDescriptor;var Tt=Object.getOwnPropertyNames;var _t=Object.prototype.hasOwnProperty;var Ze=(r,e)=>{for(var t in e)Re(r,t,{get:e[t],enumerable:!0})},Mt=(r,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Tt(e))!_t.call(r,n)&&n!==t&&Re(r,n,{get:()=>e[n],enumerable:!(s=Kt(e,n))||s.enumerable});return r};var Ft=r=>Mt(Re({},"__esModule",{value:!0}),r);var _r={};Ze(_r,{parsers:()=>ze});var ze={};Ze(ze,{__ng_action:()=>br,__ng_binding:()=>Br,__ng_directive:()=>Tr,__ng_interpolation:()=>Kr});var me=` +`,Je="\r",Ye=function(){function r(e){this.length=e.length;for(var t=[0],s=0;sthis.length)return null;for(var t=0,s=this.offsets;s[t+1]<=e;)t++;var n=e-s[t];return{line:t,column:n}},r.prototype.indexForLocation=function(e){var t=e.line,s=e.column;return t<0||t>=this.offsets.length||s<0||s>this.lengthOfLine(t)?null:this.offsets[t]+s},r.prototype.lengthOfLine=function(e){var t=this.offsets[e],s=e===this.offsets.length-1?this.length:this.offsets[e+1];return s-t},r}();var le=class{text;locator;constructor(e){this.text=e,this.locator=new Pe(this.text)}},Pe=class{_linesAndColumns;constructor(e){this._linesAndColumns=new Ye(e)}locationForIndex(e){let{line:t,column:s}=this._linesAndColumns.locationForIndex(e);return{line:t+1,column:s,index:e}}};var G=class{constructor(e,t,s,n){this.input=t,this.errLocation=s,this.ctxLocation=n,this.message=`Parser Error: ${e} ${s} [${t}] in ${n}`}},P=class{constructor(e,t){this.start=e,this.end=t}toAbsolute(e){return new I(e+this.start,e+this.end)}},S=class{constructor(e,t){this.span=e,this.sourceSpan=t}toString(){return"AST"}},D=class extends S{constructor(e,t,s){super(e,t),this.nameSpan=s}},E=class extends S{visit(e,t=null){}},L=class extends S{visit(e,t=null){return e.visitImplicitReceiver(this,t)}},Se=class extends L{visit(e,t=null){var s;return(s=e.visitThisReceiver)==null?void 0:s.call(e,this,t)}},V=class extends S{constructor(e,t,s){super(e,t),this.expressions=s}visit(e,t=null){return e.visitChain(this,t)}},W=class extends S{constructor(e,t,s,n,i){super(e,t),this.condition=s,this.trueExp=n,this.falseExp=i}visit(e,t=null){return e.visitConditional(this,t)}},B=class extends D{constructor(e,t,s,n,i){super(e,t,s),this.receiver=n,this.name=i}visit(e,t=null){return e.visitPropertyRead(this,t)}},Q=class extends D{constructor(e,t,s,n,i,a){super(e,t,s),this.receiver=n,this.name=i,this.value=a}visit(e,t=null){return e.visitPropertyWrite(this,t)}},H=class extends D{constructor(e,t,s,n,i){super(e,t,s),this.receiver=n,this.name=i}visit(e,t=null){return e.visitSafePropertyRead(this,t)}},j=class extends S{constructor(e,t,s,n){super(e,t),this.receiver=s,this.key=n}visit(e,t=null){return e.visitKeyedRead(this,t)}},z=class extends S{constructor(e,t,s,n){super(e,t),this.receiver=s,this.key=n}visit(e,t=null){return e.visitSafeKeyedRead(this,t)}},q=class extends S{constructor(e,t,s,n,i){super(e,t),this.receiver=s,this.key=n,this.value=i}visit(e,t=null){return e.visitKeyedWrite(this,t)}},X=class extends D{constructor(e,t,s,n,i,a){super(e,t,a),this.exp=s,this.name=n,this.args=i}visit(e,t=null){return e.visitPipe(this,t)}},A=class extends S{constructor(e,t,s){super(e,t),this.value=s}visit(e,t=null){return e.visitLiteralPrimitive(this,t)}},Z=class extends S{constructor(e,t,s){super(e,t),this.expressions=s}visit(e,t=null){return e.visitLiteralArray(this,t)}},J=class extends S{constructor(e,t,s,n){super(e,t),this.keys=s,this.values=n}visit(e,t=null){return e.visitLiteralMap(this,t)}},we=class extends S{constructor(e,t,s,n){super(e,t),this.strings=s,this.expressions=n}visit(e,t=null){return e.visitInterpolation(this,t)}},$=class extends S{constructor(e,t,s,n,i){super(e,t),this.operation=s,this.left=n,this.right=i}visit(e,t=null){return e.visitBinary(this,t)}},K=class r extends ${static createMinus(e,t,s){return new r(e,t,"-",s,"-",new A(e,t,0),s)}static createPlus(e,t,s){return new r(e,t,"+",s,"-",s,new A(e,t,0))}constructor(e,t,s,n,i,a,h){super(e,t,i,a,h),this.operator=s,this.expr=n,this.left=null,this.right=null,this.operation=null}visit(e,t=null){return e.visitUnary!==void 0?e.visitUnary(this,t):e.visitBinary(this,t)}},Y=class extends S{constructor(e,t,s){super(e,t),this.expression=s}visit(e,t=null){return e.visitPrefixNot(this,t)}},ee=class extends S{constructor(e,t,s){super(e,t),this.expression=s}visit(e,t=null){return e.visitNonNullAssert(this,t)}},te=class extends S{constructor(e,t,s,n,i){super(e,t),this.receiver=s,this.args=n,this.argumentSpan=i}visit(e,t=null){return e.visitCall(this,t)}},re=class extends S{constructor(e,t,s,n,i){super(e,t),this.receiver=s,this.args=n,this.argumentSpan=i}visit(e,t=null){return e.visitSafeCall(this,t)}},I=class{constructor(e,t){this.start=e,this.end=t}},R=class extends S{constructor(e,t,s,n,i){super(new P(0,t===null?0:t.length),new I(n,t===null?n:n+t.length)),this.ast=e,this.source=t,this.location=s,this.errors=i}visit(e,t=null){return e.visitASTWithSource?e.visitASTWithSource(this,t):this.ast.visit(e,t)}toString(){return`${this.source} in ${this.location}`}},T=class{constructor(e,t,s){this.sourceSpan=e,this.key=t,this.value=s}},se=class{constructor(e,t,s){this.sourceSpan=e,this.key=t,this.value=s}},ye=class{visit(e,t){e.visit(this,t)}visitUnary(e,t){this.visit(e.expr,t)}visitBinary(e,t){this.visit(e.left,t),this.visit(e.right,t)}visitChain(e,t){this.visitAll(e.expressions,t)}visitConditional(e,t){this.visit(e.condition,t),this.visit(e.trueExp,t),this.visit(e.falseExp,t)}visitPipe(e,t){this.visit(e.exp,t),this.visitAll(e.args,t)}visitImplicitReceiver(e,t){}visitThisReceiver(e,t){}visitInterpolation(e,t){this.visitAll(e.expressions,t)}visitKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitKeyedWrite(e,t){this.visit(e.receiver,t),this.visit(e.key,t),this.visit(e.value,t)}visitLiteralArray(e,t){this.visitAll(e.expressions,t)}visitLiteralMap(e,t){this.visitAll(e.values,t)}visitLiteralPrimitive(e,t){}visitPrefixNot(e,t){this.visit(e.expression,t)}visitNonNullAssert(e,t){this.visit(e.expression,t)}visitPropertyRead(e,t){this.visit(e.receiver,t)}visitPropertyWrite(e,t){this.visit(e.receiver,t),this.visit(e.value,t)}visitSafePropertyRead(e,t){this.visit(e.receiver,t)}visitSafeKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitSafeCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitAll(e,t){for(let s of e)this.visit(s,t)}};var et;(function(r){r[r.DEFAULT=0]="DEFAULT",r[r.LITERAL_ATTR=1]="LITERAL_ATTR",r[r.ANIMATION=2]="ANIMATION"})(et||(et={}));function tt(r){return r>=9&&r<=32||r==160}function b(r){return 48<=r&&r<=57}function rt(r){return r>=97&&r<=122||r>=65&&r<=90}function Le(r){return r===39||r===34||r===96}var d;(function(r){r[r.Character=0]="Character",r[r.Identifier=1]="Identifier",r[r.PrivateIdentifier=2]="PrivateIdentifier",r[r.Keyword=3]="Keyword",r[r.String=4]="String",r[r.Operator=5]="Operator",r[r.Number=6]="Number",r[r.Error=7]="Error"})(d||(d={}));var dr=["var","let","as","null","undefined","true","false","if","else","this"],xe=class{tokenize(e){let t=new Ke(e),s=[],n=t.scanToken();for(;n!=null;)s.push(n),n=t.scanToken();return s}},N=class{constructor(e,t,s,n,i){this.index=e,this.end=t,this.type=s,this.numValue=n,this.strValue=i}isCharacter(e){return this.type==d.Character&&this.numValue==e}isNumber(){return this.type==d.Number}isString(){return this.type==d.String}isOperator(e){return this.type==d.Operator&&this.strValue==e}isIdentifier(){return this.type==d.Identifier}isPrivateIdentifier(){return this.type==d.PrivateIdentifier}isKeyword(){return this.type==d.Keyword}isKeywordLet(){return this.type==d.Keyword&&this.strValue=="let"}isKeywordAs(){return this.type==d.Keyword&&this.strValue=="as"}isKeywordNull(){return this.type==d.Keyword&&this.strValue=="null"}isKeywordUndefined(){return this.type==d.Keyword&&this.strValue=="undefined"}isKeywordTrue(){return this.type==d.Keyword&&this.strValue=="true"}isKeywordFalse(){return this.type==d.Keyword&&this.strValue=="false"}isKeywordThis(){return this.type==d.Keyword&&this.strValue=="this"}isError(){return this.type==d.Error}toNumber(){return this.type==d.Number?this.numValue:-1}toString(){switch(this.type){case d.Character:case d.Identifier:case d.Keyword:case d.Operator:case d.PrivateIdentifier:case d.String:case d.Error:return this.strValue;case d.Number:return this.numValue.toString();default:return null}}};function ot(r,e,t){return new N(r,e,d.Character,t,String.fromCharCode(t))}function vr(r,e,t){return new N(r,e,d.Identifier,0,t)}function gr(r,e,t){return new N(r,e,d.PrivateIdentifier,0,t)}function mr(r,e,t){return new N(r,e,d.Keyword,0,t)}function Be(r,e,t){return new N(r,e,d.Operator,0,t)}function Sr(r,e,t){return new N(r,e,d.String,0,t)}function wr(r,e,t){return new N(r,e,d.Number,t,"")}function yr(r,e,t){return new N(r,e,d.Error,0,t)}var Ce=new N(-1,-1,d.Character,0,""),Ke=class{constructor(e){this.input=e,this.peek=0,this.index=-1,this.length=e.length,this.advance()}advance(){this.peek=++this.index>=this.length?0:this.input.charCodeAt(this.index)}scanToken(){let e=this.input,t=this.length,s=this.peek,n=this.index;for(;s<=32;)if(++n>=t){s=0;break}else s=e.charCodeAt(n);if(this.peek=s,this.index=n,n>=t)return null;if(ct(s))return this.scanIdentifier();if(b(s))return this.scanNumber(n);let i=n;switch(s){case 46:return this.advance(),b(this.peek)?this.scanNumber(i):ot(i,this.index,46);case 40:case 41:case 123:case 125:case 91:case 93:case 44:case 58:case 59:return this.scanCharacter(i,s);case 39:case 34:return this.scanString();case 35:return this.scanPrivateIdentifier();case 43:case 45:case 42:case 47:case 37:case 94:return this.scanOperator(i,String.fromCharCode(s));case 63:return this.scanQuestion(i);case 60:case 62:return this.scanComplexOperator(i,String.fromCharCode(s),61,"=");case 33:case 61:return this.scanComplexOperator(i,String.fromCharCode(s),61,"=",61,"=");case 38:return this.scanComplexOperator(i,"&",38,"&");case 124:return this.scanComplexOperator(i,"|",124,"|");case 160:for(;tt(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(s)}]`,0)}scanCharacter(e,t){return this.advance(),ot(e,this.index,t)}scanOperator(e,t){return this.advance(),Be(e,this.index,t)}scanComplexOperator(e,t,s,n,i,a){this.advance();let h=t;return this.peek==s&&(this.advance(),h+=n),i!=null&&this.peek==i&&(this.advance(),h+=a),Be(e,this.index,h)}scanIdentifier(){let e=this.index;for(this.advance();ht(this.peek);)this.advance();let t=this.input.substring(e,this.index);return dr.indexOf(t)>-1?mr(e,this.index,t):vr(e,this.index,t)}scanPrivateIdentifier(){let e=this.index;if(this.advance(),!ct(this.peek))return this.error("Invalid character [#]",-1);for(;ht(this.peek);)this.advance();let t=this.input.substring(e,this.index);return gr(e,this.index,t)}scanNumber(e){let t=this.index===e,s=!1;for(this.advance();;){if(!b(this.peek))if(this.peek===95){if(!b(this.input.charCodeAt(this.index-1))||!b(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);s=!0}else if(this.peek===46)t=!1;else if(Er(this.peek)){if(this.advance(),Ar(this.peek)&&this.advance(),!b(this.peek))return this.error("Invalid exponent",-1);t=!1}else break;this.advance()}let n=this.input.substring(e,this.index);s&&(n=n.replace(/_/g,""));let i=t?Cr(n):parseFloat(n);return wr(e,this.index,i)}scanString(){let e=this.index,t=this.peek;this.advance();let s="",n=this.index,i=this.input;for(;this.peek!=t;)if(this.peek==92){s+=i.substring(n,this.index);let h;if(this.advance(),this.peek==117){let v=i.substring(this.index+1,this.index+5);if(/^[0-9a-f]+$/i.test(v))h=parseInt(v,16);else return this.error(`Invalid unicode escape [\\u${v}]`,0);for(let f=0;f<5;f++)this.advance()}else h=$r(this.peek),this.advance();s+=String.fromCharCode(h),n=this.index}else{if(this.peek==0)return this.error("Unterminated quote",0);this.advance()}let a=i.substring(n,this.index);return this.advance(),Sr(e,this.index,s+a)}scanQuestion(e){this.advance();let t="?";return(this.peek===63||this.peek===46)&&(t+=this.peek===46?".":"?",this.advance()),Be(e,this.index,t)}error(e,t){let s=this.index+t;return yr(s,this.index,`Lexer Error: ${e} at column ${s} in expression [${this.input}]`)}};function ct(r){return 97<=r&&r<=122||65<=r&&r<=90||r==95||r==36}function ht(r){return rt(r)||b(r)||r==95||r==36}function Er(r){return r==101||r==69}function Ar(r){return r==45||r==43}function $r(r){switch(r){case 110:return 10;case 102:return 12;case 114:return 13;case 116:return 9;case 118:return 11;default:return r}}function Cr(r){let e=parseInt(r);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+r);return e}var Or=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function xt(r,e){if(e!=null&&!(Array.isArray(e)&&e.length==2))throw new Error(`Expected '${r}' to be an array, [start, end].`);if(e!=null){let t=e[0],s=e[1];Or.forEach(n=>{if(n.test(t)||n.test(s))throw new Error(`['${t}', '${s}'] contains unusable interpolation symbol.`)})}}var _e=class r{static fromArray(e){return e?(xt("interpolation",e),new r(e[0],e[1])):F}constructor(e,t){this.start=e,this.end=t}},F=new _e("{{","}}");var Me=class{constructor(e,t,s){this.strings=e,this.expressions=t,this.offsets=s}},Fe=class{constructor(e,t,s){this.templateBindings=e,this.warnings=t,this.errors=s}},ve=class{constructor(e){this._lexer=e,this.errors=[]}parseAction(e,t,s,n,i=F){this._checkNoInterpolation(e,s,i);let a=this._stripComments(e),h=this._lexer.tokenize(a),v=1;t&&(v|=2);let f=new U(e,s,n,h,v,this.errors,0).parseChain();return new R(f,e,s,n,this.errors)}parseBinding(e,t,s,n=F){let i=this._parseBindingAst(e,t,s,n);return new R(i,e,t,s,this.errors)}checkSimpleExpression(e){let t=new Ue;return e.visit(t),t.errors}parseSimpleBinding(e,t,s,n=F){let i=this._parseBindingAst(e,t,s,n),a=this.checkSimpleExpression(i);return a.length>0&&this._reportError(`Host binding expression cannot contain ${a.join(" ")}`,e,t),new R(i,e,t,s,this.errors)}_reportError(e,t,s,n){this.errors.push(new G(e,t,s,n))}_parseBindingAst(e,t,s,n){this._checkNoInterpolation(e,t,n);let i=this._stripComments(e),a=this._lexer.tokenize(i);return new U(e,t,s,a,0,this.errors,0).parseChain()}parseTemplateBindings(e,t,s,n,i){let a=this._lexer.tokenize(t);return new U(t,s,i,a,0,this.errors,0).parseTemplateBindings({source:e,span:new I(n,n+e.length)})}parseInterpolation(e,t,s,n,i=F){let{strings:a,expressions:h,offsets:v}=this.splitInterpolation(e,t,n,i);if(h.length===0)return null;let f=[];for(let w=0;ww.text),f,e,t,s)}parseInterpolationExpression(e,t,s){let n=this._stripComments(e),i=this._lexer.tokenize(n),a=new U(e,t,s,i,0,this.errors,0).parseChain(),h=["",""];return this.createInterpolationAst(h,[a],e,t,s)}createInterpolationAst(e,t,s,n,i){let a=new P(0,s.length),h=new we(a,a.toAbsolute(i),e,t);return new R(h,s,n,i,this.errors)}splitInterpolation(e,t,s,n=F){let i=[],a=[],h=[],v=s?Nr(s):null,f=0,w=!1,k=!1,{start:C,end:y}=n;for(;f-1)break;i>-1&&a>-1&&this._reportError(`Got interpolation (${s}${n}) where expression was expected`,e,`at column ${i} in`,t)}_getInterpolationEndIndex(e,t,s){for(let n of this._forEachUnquotedChar(e,s)){if(e.startsWith(t,n))return n;if(e.startsWith("//",n))return e.indexOf(t,n)}return-1}*_forEachUnquotedChar(e,t){let s=null,n=0;for(let i=t;i=this.tokens.length}get inputIndex(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}get currentEndIndex(){return this.index>0?this.peek(-1).end+this.offset:this.tokens.length===0?this.input.length+this.offset:this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(e,t){let s=this.currentEndIndex;if(t!==void 0&&t>this.currentEndIndex&&(s=t),e>s){let n=s;s=e,e=n}return new P(e,s)}sourceSpan(e,t){let s=`${e}@${this.inputIndex}:${t}`;return this.sourceSpanCache.has(s)||this.sourceSpanCache.set(s,this.span(e,t).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(s)}advance(){this.index++}withContext(e,t){this.context|=e;let s=t();return this.context^=e,s}consumeOptionalCharacter(e){return this.next.isCharacter(e)?(this.advance(),!0):!1}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(e){this.consumeOptionalCharacter(e)||this.error(`Missing expected ${String.fromCharCode(e)}`)}consumeOptionalOperator(e){return this.next.isOperator(e)?(this.advance(),!0):!1}expectOperator(e){this.consumeOptionalOperator(e)||this.error(`Missing expected operator ${e}`)}prettyPrintToken(e){return e===Ce?"end of input":`token ${e}`}expectIdentifierOrKeyword(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier or keyword"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier or keyword`),null):(this.advance(),e.toString())}expectIdentifierOrKeywordOrString(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()&&!e.isString()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier, keyword or string"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier, keyword, or string`),""):(this.advance(),e.toString())}parseChain(){let e=[],t=this.inputIndex;for(;this.index":case"<=":case">=":this.advance();let n=this.parseAdditive();t=new $(this.span(e),this.sourceSpan(e),s,t,n);continue}break}return t}parseAdditive(){let e=this.inputIndex,t=this.parseMultiplicative();for(;this.next.type==d.Operator;){let s=this.next.strValue;switch(s){case"+":case"-":this.advance();let n=this.parseMultiplicative();t=new $(this.span(e),this.sourceSpan(e),s,t,n);continue}break}return t}parseMultiplicative(){let e=this.inputIndex,t=this.parsePrefix();for(;this.next.type==d.Operator;){let s=this.next.strValue;switch(s){case"*":case"%":case"/":this.advance();let n=this.parsePrefix();t=new $(this.span(e),this.sourceSpan(e),s,t,n);continue}break}return t}parsePrefix(){if(this.next.type==d.Operator){let e=this.inputIndex,t=this.next.strValue,s;switch(t){case"+":return this.advance(),s=this.parsePrefix(),K.createPlus(this.span(e),this.sourceSpan(e),s);case"-":return this.advance(),s=this.parsePrefix(),K.createMinus(this.span(e),this.sourceSpan(e),s);case"!":return this.advance(),s=this.parsePrefix(),new Y(this.span(e),this.sourceSpan(e),s)}}return this.parseCallChain()}parseCallChain(){let e=this.inputIndex,t=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(46))t=this.parseAccessMember(t,e,!1);else if(this.consumeOptionalOperator("?."))this.consumeOptionalCharacter(40)?t=this.parseCall(t,e,!0):t=this.consumeOptionalCharacter(91)?this.parseKeyedReadOrWrite(t,e,!0):this.parseAccessMember(t,e,!0);else if(this.consumeOptionalCharacter(91))t=this.parseKeyedReadOrWrite(t,e,!1);else if(this.consumeOptionalCharacter(40))t=this.parseCall(t,e,!1);else if(this.consumeOptionalOperator("!"))t=new ee(this.span(e),this.sourceSpan(e),t);else return t}parsePrimary(){let e=this.inputIndex;if(this.consumeOptionalCharacter(40)){this.rparensExpected++;let t=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),t}else{if(this.next.isKeywordNull())return this.advance(),new A(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new A(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new A(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new A(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new Se(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(91)){this.rbracketsExpected++;let t=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new Z(this.span(e),this.sourceSpan(e),t)}else{if(this.next.isCharacter(123))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new L(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){let t=this.next.toNumber();return this.advance(),new A(this.span(e),this.sourceSpan(e),t)}else if(this.next.isString()){let t=this.next.toString();return this.advance(),new A(this.span(e),this.sourceSpan(e),t)}else return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new E(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new E(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new E(this.span(e),this.sourceSpan(e)))}}}parseExpressionList(e){let t=[];do if(!this.next.isCharacter(e))t.push(this.parsePipe());else break;while(this.consumeOptionalCharacter(44));return t}parseLiteralMap(){let e=[],t=[],s=this.inputIndex;if(this.expectCharacter(123),!this.consumeOptionalCharacter(125)){this.rbracesExpected++;do{let n=this.inputIndex,i=this.next.isString(),a=this.expectIdentifierOrKeywordOrString();if(e.push({key:a,quoted:i}),i)this.expectCharacter(58),t.push(this.parsePipe());else if(this.consumeOptionalCharacter(58))t.push(this.parsePipe());else{let h=this.span(n),v=this.sourceSpan(n);t.push(new B(h,v,v,new L(h,v),a))}}while(this.consumeOptionalCharacter(44)&&!this.next.isCharacter(125));this.rbracesExpected--,this.expectCharacter(125)}return new J(this.span(s),this.sourceSpan(s),e,t)}parseAccessMember(e,t,s){let n=this.inputIndex,i=this.withContext(he.Writable,()=>{let v=this.expectIdentifierOrKeyword()??"";return v.length===0&&this.error("Expected identifier for property access",e.span.end),v}),a=this.sourceSpan(n),h;if(s)this.consumeOptionalAssignment()?(this.error("The '?.' operator cannot be used in the assignment"),h=new E(this.span(t),this.sourceSpan(t))):h=new H(this.span(t),this.sourceSpan(t),a,e,i);else if(this.consumeOptionalAssignment()){if(!(this.parseFlags&1))return this.error("Bindings cannot contain assignments"),new E(this.span(t),this.sourceSpan(t));let v=this.parseConditional();h=new Q(this.span(t),this.sourceSpan(t),a,e,i,v)}else h=new B(this.span(t),this.sourceSpan(t),a,e,i);return h}parseCall(e,t,s){let n=this.inputIndex;this.rparensExpected++;let i=this.parseCallArguments(),a=this.span(n,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(41),this.rparensExpected--;let h=this.span(t),v=this.sourceSpan(t);return s?new re(h,v,e,i,a):new te(h,v,e,i,a)}consumeOptionalAssignment(){return this.parseFlags&2&&this.next.isOperator("!")&&this.peek(1).isOperator("=")?(this.advance(),this.advance(),!0):this.consumeOptionalOperator("=")}parseCallArguments(){if(this.next.isCharacter(41))return[];let e=[];do e.push(this.parsePipe());while(this.consumeOptionalCharacter(44));return e}expectTemplateBindingKey(){let e="",t=!1,s=this.currentAbsoluteOffset;do e+=this.expectIdentifierOrKeywordOrString(),t=this.consumeOptionalOperator("-"),t&&(e+="-");while(t);return{source:e,span:new I(s,s+e.length)}}parseTemplateBindings(e){let t=[];for(t.push(...this.parseDirectiveKeywordBindings(e));this.index{this.rbracketsExpected++;let n=this.parsePipe();if(n instanceof E&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(93),this.consumeOptionalOperator("="))if(s)this.error("The '?.' operator cannot be used in the assignment");else{let i=this.parseConditional();return new q(this.span(t),this.sourceSpan(t),e,n,i)}else return s?new z(this.span(t),this.sourceSpan(t),e,n):new j(this.span(t),this.sourceSpan(t),e,n);return new E(this.span(t),this.sourceSpan(t))})}parseDirectiveKeywordBindings(e){let t=[];this.consumeOptionalCharacter(58);let s=this.getDirectiveBoundTarget(),n=this.currentAbsoluteOffset,i=this.parseAsBinding(e);i||(this.consumeStatementTerminator(),n=this.currentAbsoluteOffset);let a=new I(e.span.start,n);return t.push(new se(a,e,s)),i&&t.push(i),t}getDirectiveBoundTarget(){if(this.next===Ce||this.peekKeywordAs()||this.peekKeywordLet())return null;let e=this.parsePipe(),{start:t,end:s}=e.span,n=this.input.substring(t,s);return new R(e,n,this.location,this.absoluteOffset+t,this.errors)}parseAsBinding(e){if(!this.peekKeywordAs())return null;this.advance();let t=this.expectTemplateBindingKey();this.consumeStatementTerminator();let s=new I(e.span.start,this.currentAbsoluteOffset);return new T(s,t,e)}parseLetBinding(){if(!this.peekKeywordLet())return null;let e=this.currentAbsoluteOffset;this.advance();let t=this.expectTemplateBindingKey(),s=null;this.consumeOptionalOperator("=")&&(s=this.expectTemplateBindingKey()),this.consumeStatementTerminator();let n=new I(e,this.currentAbsoluteOffset);return new T(n,t,s)}consumeStatementTerminator(){this.consumeOptionalCharacter(59)||this.consumeOptionalCharacter(44)}error(e,t=null){this.errors.push(new G(e,this.input,this.locationText(t),this.location)),this.skip()}locationText(e=null){return e==null&&(e=this.index),eh+v.length,0);s+=a,t+=a}e.set(s,t),n++}return e}var dt="angular-estree-parser",De="NgEstreeParser",Ge=0,Ve=[dt,Ge];function vt(){return new ve(new xe)}function We(r,e){let t=vt(),{astInput:s,comments:n}=Ir(r,t),{ast:i,errors:a}=e(s,t);return yt(a),{ast:i,comments:n}}function gt(r){return We(r,(e,t)=>t.parseBinding(e,...Ve))}function mt(r){return We(r,(e,t)=>t.parseAction(e,!1,...Ve))}function St(r){return We(r,(e,t)=>{let s=t.parseInterpolationExpression(e,...Ve);return s.ast=s.ast.expressions[0],s})}function wt(r){let e=vt(),{templateBindings:t,errors:s}=e.parseTemplateBindings(De,r,dt,Ge,Ge);return yt(s),t}function yt(r){if(r.length!==0){let[{message:e}]=r;throw new SyntaxError(e.replace(/^Parser Error: | at column \d+ in [^]*$/g,""))}}function Ir(r,e){let t=e._commentStart(r);return t===null?{astInput:r,comments:[]}:{astInput:r.slice(0,t),comments:[{type:"Comment",value:r.slice(t+2),sourceSpan:{start:t,end:r.length}}]}}function Et(r){return r instanceof K?"Unary":r instanceof $?"Binary":r instanceof X?"BindingPipe":r instanceof te?"Call":r instanceof V?"Chain":r instanceof W?"Conditional":r instanceof E?"EmptyExpr":r instanceof L?"ImplicitReceiver":r instanceof j?"KeyedRead":r instanceof z?"SafeKeyedRead":r instanceof q?"KeyedWrite":r instanceof Z?"LiteralArray":r instanceof J?"LiteralMap":r instanceof A?"LiteralPrimitive":r instanceof ee?"NonNullAssert":r instanceof Y?"PrefixNot":r instanceof B?"PropertyRead":r instanceof Q?"PropertyWrite":r instanceof re?"SafeCall":r instanceof H?"SafePropertyRead":r.type}function ft({start:r,end:e},t){let s=r,n=e;for(;n!==s&&/\s/.test(t[n-1]);)n--;for(;s!==n&&/\s/.test(t[s]);)s++;return{start:s,end:n}}function Rr({start:r,end:e},t){let s=r,n=e;for(;n!==t.length&&/\s/.test(t[n]);)n++;for(;s!==0&&/\s/.test(t[s-1]);)s--;return{start:s,end:n}}function Pr(r,e){return e[r.start-1]==="("&&e[r.end]===")"?{start:r.start-1,end:r.end+1}:r}function At(r,e,t){let s=0,n={start:r.start,end:r.end};for(;;){let i=Rr(n,e),a=Pr(i,e);if(i.start===a.start&&i.end===a.end)break;n.start=a.start,n.end=a.end,s++}return{hasParens:(t?s-1:s)!==0,outerSpan:ft(t?{start:n.start+1,end:n.end-1}:n,e),innerSpan:ft(r,e)}}function $t(r,e,t){let s=e;for(;!r.test(t[s]);)if(--s<0)throw new Error(`Cannot find front char ${r} from index ${e} in ${JSON.stringify(t)}`);return s}function Oe(r,e,t){let s=e;for(;!r.test(t[s]);)if(++s>=t.length)throw new Error(`Cannot find back char ${r} from index ${e} in ${JSON.stringify(t)}`);return s}function Ct(r){return r.slice(0,1).toLowerCase()+r.slice(1)}function Ot(r){return r.length===0?void 0:r[r.length-1]}var pe=(r,e,t=!1)=>{let s=Et(r);switch(s){case"Unary":{let{operator:c,expr:o}=r,x=n(o);return a("UnaryExpression",{prefix:!0,argument:x,operator:c},r.sourceSpan,{hasParentParens:t})}case"Binary":{let{left:c,operation:o,right:x}=r,p=n(c),u=n(x);return a(o==="&&"||o==="||"||o==="??"?"LogicalExpression":"BinaryExpression",{left:p,right:u,operator:o},{start:y(p),end:m(u)},{hasParentParens:t})}case"BindingPipe":{let{exp:c,name:o,args:x}=r,p=n(c),u=f(/\S/,f(/\|/,m(p))+1),g=a("Identifier",{name:o},{start:u,end:u+o.length}),l=x.map(n);return a("NGPipeExpression",{left:p,right:g,arguments:l},{start:y(p),end:m(l.length===0?g:Ot(l))},{hasParentParens:t})}case"Chain":{let{expressions:c}=r;return a("NGChainedExpression",{expressions:c.map(n)},r.sourceSpan,{hasParentParens:t})}case"Comment":{let{value:c}=r;return a("CommentLine",{value:c},r.sourceSpan,{processSpan:!1})}case"Conditional":{let{condition:c,trueExp:o,falseExp:x}=r,p=n(c),u=n(o),g=n(x);return a("ConditionalExpression",{test:p,consequent:u,alternate:g},{start:y(p),end:m(g)},{hasParentParens:t})}case"EmptyExpr":return a("NGEmptyExpression",{},r.sourceSpan,{hasParentParens:t});case"ImplicitReceiver":return a("ThisExpression",{},r.sourceSpan,{hasParentParens:t});case"KeyedRead":case"SafeKeyedRead":{let c=s==="SafeKeyedRead",{key:o}=r,x=Object.prototype.hasOwnProperty.call(r,"receiver")?r.receiver:r.obj,p=n(o);return h(x,p,{computed:!0,optional:c},{end:r.sourceSpan.end,hasParentParens:t})}case"LiteralArray":{let{expressions:c}=r;return a("ArrayExpression",{elements:c.map(n)},r.sourceSpan,{hasParentParens:t})}case"LiteralMap":{let{keys:c,values:o}=r,x=o.map(u=>n(u)),p=c.map(({key:u,quoted:g},l)=>{let O=x[l],ue=y(O),qe=m(O),Ie=f(/\S/,l===0?r.sourceSpan.start+1:f(/,/,m(x[l-1]))+1),bt=ue===Ie?qe:v(/\S/,v(/:/,ue-1)-1)+1,Xe={start:Ie,end:bt},ge=g?a("StringLiteral",{value:u},Xe):a("Identifier",{name:u},Xe),Bt=ge.end=c.sourceSpan.end||/^\s+$/.test(e.text.slice(c.sourceSpan.start,c.sourceSpan.end))}function k(c){return(c.type==="OptionalCallExpression"||c.type==="OptionalMemberExpression")&&!C(c)}function C(c){return c.extra&&c.extra.parenthesized}function y(c){return C(c)?c.extra.parenStart:c.start}function m(c){return C(c)?c.extra.parenEnd:c.end}};function Ne(r,e,t=!1,s=!1){if(!t){let{start:h,end:v}=r;return{start:h,end:v,loc:{start:e.locator.locationForIndex(h),end:e.locator.locationForIndex(v)}}}let{outerSpan:n,innerSpan:i,hasParens:a}=At(r,e.text,s);return{start:i.start,end:i.end,loc:{start:e.locator.locationForIndex(i.start),end:e.locator.locationForIndex(i.end)},...a&&{extra:{parenthesized:!0,parenStart:n.start,parenEnd:n.end}}}}function Nt(r,e){r.forEach(y);let[t]=r,{key:s}=t,n=e.text.slice(t.sourceSpan.start,t.sourceSpan.end).trim().length===0?r.slice(1):r,i=[],a=null;for(let o=0;o({...O,...Ne({start:O.start,end:ue},e)}),g=O=>({...u(O,p.end),alias:p}),l=i.pop();if(l.type==="NGMicrosyntaxExpression")i.push(g(l));else if(l.type==="NGMicrosyntaxKeyedExpression"){let O=g(l.expression);i.push(u({...l,expression:O},O.end))}else throw new Error(`Unexpected type ${l.type}`)}else i.push(h(x,o));a=x}return f("NGMicrosyntax",{body:i},i.length===0?r[0].sourceSpan:{start:i[0].start,end:i[i.length-1].end});function h(o,x){if(k(o)){let{key:p,value:u}=o;return u?x===0?f("NGMicrosyntaxExpression",{expression:v(u.ast),alias:null},u.sourceSpan):f("NGMicrosyntaxKeyedExpression",{key:f("NGMicrosyntaxKey",{name:w(p.source)},p.span),expression:f("NGMicrosyntaxExpression",{expression:v(u.ast),alias:null},u.sourceSpan)},{start:p.span.start,end:u.sourceSpan.end}):f("NGMicrosyntaxKey",{name:w(p.source)},p.span)}else{let{key:p,sourceSpan:u}=o;if(/^let\s$/.test(e.text.slice(u.start,u.start+4))){let{value:l}=o;return f("NGMicrosyntaxLet",{key:f("NGMicrosyntaxKey",{name:p.source},p.span),value:l?f("NGMicrosyntaxKey",{name:l.source},l.span):null},{start:u.start,end:l?l.span.end:p.span.end})}else{let l=c(o);return f("NGMicrosyntaxAs",{key:f("NGMicrosyntaxKey",{name:l.source},l.span),alias:f("NGMicrosyntaxKey",{name:p.source},p.span)},{start:l.span.start,end:p.span.end})}}}function v(o){return pe(o,e)}function f(o,x,p,u=!0){return{type:o,...Ne(p,e,u),...x}}function w(o){return Ct(o.slice(s.source.length))}function k(o){return o instanceof se}function C(o){return o instanceof T}function y(o){m(o.key.span),C(o)&&o.value&&m(o.value.span)}function m(o){if(e.text[o.start]!=='"'&&e.text[o.start]!=="'")return;let x=e.text[o.start],p=!1;for(let u=o.start+1;upe(h,n),a=i(t);return a.comments=s.map(h=>i(h)),a}function kt(r){return Qe(r,gt)}function It(r){return Qe(r,St)}function He(r){return Qe(r,mt)}function Rt(r){return Nt(wt(r),new le(r))}function Lr(r){return Array.isArray(r)&&r.length>0}var Pt=Lr;function je(r){var s;let e=r.range?r.range[0]:r.start,t=((s=r.declaration)==null?void 0:s.decorators)??r.decorators;return Pt(t)?Math.min(je(t[0]),e):e}function Lt(r){return r.range?r.range[1]:r.end}function ke(r){return{astFormat:"estree",parse(e){let t=r(e);return{type:"NGRoot",node:r===He&&t.type!=="NGChainedExpression"?{...t,type:"NGChainedExpression",expressions:[t]}:t}},locStart:je,locEnd:Lt}}var br=ke(He),Br=ke(kt),Kr=ke(It),Tr=ke(Rt);return Ft(_r);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/angular.mjs b/node_modules/prettier/plugins/angular.mjs index 91fae53..8de7e17 100644 --- a/node_modules/prettier/plugins/angular.mjs +++ b/node_modules/prettier/plugins/angular.mjs @@ -1,2 +1,2 @@ -var Kt=Object.defineProperty;var Ze=(s,e)=>{for(var t in e)Kt(s,t,{get:e[t],enumerable:!0})};var ze={};Ze(ze,{parsers:()=>Ie});var Ie={};Ze(Ie,{__ng_action:()=>Ir,__ng_binding:()=>Rr,__ng_directive:()=>Lr,__ng_interpolation:()=>Pr});var me=` -`,Je="\r",Ye=function(){function s(e){this.length=e.length;for(var t=[0],r=0;rthis.length)return null;for(var t=0,r=this.offsets;r[t+1]<=e;)t++;var n=e-r[t];return{line:t,column:n}},s.prototype.indexForLocation=function(e){var t=e.line,r=e.column;return t<0||t>=this.offsets.length||r<0||r>this.lengthOfLine(t)?null:this.offsets[t]+r},s.prototype.lengthOfLine=function(e){var t=this.offsets[e],r=e===this.offsets.length-1?this.length:this.offsets[e+1];return r-t},s}();var le=class{text;locator;constructor(e){this.text=e,this.locator=new Pe(this.text)}},Pe=class{_linesAndColumns;constructor(e){this._linesAndColumns=new Ye(e)}locationForIndex(e){let{line:t,column:r}=this._linesAndColumns.locationForIndex(e);return{line:t+1,column:r,index:e}}};var G=class{constructor(e,t,r,n){this.input=t,this.errLocation=r,this.ctxLocation=n,this.message=`Parser Error: ${e} ${r} [${t}] in ${n}`}},P=class{constructor(e,t){this.start=e,this.end=t}toAbsolute(e){return new I(e+this.start,e+this.end)}},S=class{constructor(e,t){this.span=e,this.sourceSpan=t}toString(){return"AST"}},D=class extends S{constructor(e,t,r){super(e,t),this.nameSpan=r}},E=class extends S{visit(e,t=null){}},L=class extends S{visit(e,t=null){return e.visitImplicitReceiver(this,t)}},Se=class extends L{visit(e,t=null){var r;return(r=e.visitThisReceiver)==null?void 0:r.call(e,this,t)}},V=class extends S{constructor(e,t,r){super(e,t),this.expressions=r}visit(e,t=null){return e.visitChain(this,t)}},W=class extends S{constructor(e,t,r,n,i){super(e,t),this.condition=r,this.trueExp=n,this.falseExp=i}visit(e,t=null){return e.visitConditional(this,t)}},B=class extends D{constructor(e,t,r,n,i){super(e,t,r),this.receiver=n,this.name=i}visit(e,t=null){return e.visitPropertyRead(this,t)}},Q=class extends D{constructor(e,t,r,n,i,a){super(e,t,r),this.receiver=n,this.name=i,this.value=a}visit(e,t=null){return e.visitPropertyWrite(this,t)}},H=class extends D{constructor(e,t,r,n,i){super(e,t,r),this.receiver=n,this.name=i}visit(e,t=null){return e.visitSafePropertyRead(this,t)}},j=class extends S{constructor(e,t,r,n){super(e,t),this.receiver=r,this.key=n}visit(e,t=null){return e.visitKeyedRead(this,t)}},z=class extends S{constructor(e,t,r,n){super(e,t),this.receiver=r,this.key=n}visit(e,t=null){return e.visitSafeKeyedRead(this,t)}},q=class extends S{constructor(e,t,r,n,i){super(e,t),this.receiver=r,this.key=n,this.value=i}visit(e,t=null){return e.visitKeyedWrite(this,t)}},X=class extends D{constructor(e,t,r,n,i,a){super(e,t,a),this.exp=r,this.name=n,this.args=i}visit(e,t=null){return e.visitPipe(this,t)}},A=class extends S{constructor(e,t,r){super(e,t),this.value=r}visit(e,t=null){return e.visitLiteralPrimitive(this,t)}},Z=class extends S{constructor(e,t,r){super(e,t),this.expressions=r}visit(e,t=null){return e.visitLiteralArray(this,t)}},J=class extends S{constructor(e,t,r,n){super(e,t),this.keys=r,this.values=n}visit(e,t=null){return e.visitLiteralMap(this,t)}},we=class extends S{constructor(e,t,r,n){super(e,t),this.strings=r,this.expressions=n}visit(e,t=null){return e.visitInterpolation(this,t)}},$=class extends S{constructor(e,t,r,n,i){super(e,t),this.operation=r,this.left=n,this.right=i}visit(e,t=null){return e.visitBinary(this,t)}},K=class s extends ${static createMinus(e,t,r){return new s(e,t,"-",r,"-",new A(e,t,0),r)}static createPlus(e,t,r){return new s(e,t,"+",r,"-",r,new A(e,t,0))}constructor(e,t,r,n,i,a,h){super(e,t,i,a,h),this.operator=r,this.expr=n,this.left=null,this.right=null,this.operation=null}visit(e,t=null){return e.visitUnary!==void 0?e.visitUnary(this,t):e.visitBinary(this,t)}},Y=class extends S{constructor(e,t,r){super(e,t),this.expression=r}visit(e,t=null){return e.visitPrefixNot(this,t)}},ee=class extends S{constructor(e,t,r){super(e,t),this.expression=r}visit(e,t=null){return e.visitNonNullAssert(this,t)}},te=class extends S{constructor(e,t,r,n,i){super(e,t),this.receiver=r,this.args=n,this.argumentSpan=i}visit(e,t=null){return e.visitCall(this,t)}},re=class extends S{constructor(e,t,r,n,i){super(e,t),this.receiver=r,this.args=n,this.argumentSpan=i}visit(e,t=null){return e.visitSafeCall(this,t)}},I=class{constructor(e,t){this.start=e,this.end=t}},R=class extends S{constructor(e,t,r,n,i){super(new P(0,t===null?0:t.length),new I(n,t===null?n:n+t.length)),this.ast=e,this.source=t,this.location=r,this.errors=i}visit(e,t=null){return e.visitASTWithSource?e.visitASTWithSource(this,t):this.ast.visit(e,t)}toString(){return`${this.source} in ${this.location}`}},T=class{constructor(e,t,r){this.sourceSpan=e,this.key=t,this.value=r}},se=class{constructor(e,t,r){this.sourceSpan=e,this.key=t,this.value=r}},ye=class{visit(e,t){e.visit(this,t)}visitUnary(e,t){this.visit(e.expr,t)}visitBinary(e,t){this.visit(e.left,t),this.visit(e.right,t)}visitChain(e,t){this.visitAll(e.expressions,t)}visitConditional(e,t){this.visit(e.condition,t),this.visit(e.trueExp,t),this.visit(e.falseExp,t)}visitPipe(e,t){this.visit(e.exp,t),this.visitAll(e.args,t)}visitImplicitReceiver(e,t){}visitThisReceiver(e,t){}visitInterpolation(e,t){this.visitAll(e.expressions,t)}visitKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitKeyedWrite(e,t){this.visit(e.receiver,t),this.visit(e.key,t),this.visit(e.value,t)}visitLiteralArray(e,t){this.visitAll(e.expressions,t)}visitLiteralMap(e,t){this.visitAll(e.values,t)}visitLiteralPrimitive(e,t){}visitPrefixNot(e,t){this.visit(e.expression,t)}visitNonNullAssert(e,t){this.visit(e.expression,t)}visitPropertyRead(e,t){this.visit(e.receiver,t)}visitPropertyWrite(e,t){this.visit(e.receiver,t),this.visit(e.value,t)}visitSafePropertyRead(e,t){this.visit(e.receiver,t)}visitSafeKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitSafeCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitAll(e,t){for(let r of e)this.visit(r,t)}};var et;(function(s){s[s.DEFAULT=0]="DEFAULT",s[s.LITERAL_ATTR=1]="LITERAL_ATTR",s[s.ANIMATION=2]="ANIMATION"})(et||(et={}));function tt(s){return s>=9&&s<=32||s==160}function b(s){return 48<=s&&s<=57}function rt(s){return s>=97&&s<=122||s>=65&&s<=90}function Le(s){return s===39||s===34||s===96}var d;(function(s){s[s.Character=0]="Character",s[s.Identifier=1]="Identifier",s[s.PrivateIdentifier=2]="PrivateIdentifier",s[s.Keyword=3]="Keyword",s[s.String=4]="String",s[s.Operator=5]="Operator",s[s.Number=6]="Number",s[s.Error=7]="Error"})(d||(d={}));var ur=["var","let","as","null","undefined","true","false","if","else","this"],xe=class{tokenize(e){let t=new Ke(e),r=[],n=t.scanToken();for(;n!=null;)r.push(n),n=t.scanToken();return r}},N=class{constructor(e,t,r,n,i){this.index=e,this.end=t,this.type=r,this.numValue=n,this.strValue=i}isCharacter(e){return this.type==d.Character&&this.numValue==e}isNumber(){return this.type==d.Number}isString(){return this.type==d.String}isOperator(e){return this.type==d.Operator&&this.strValue==e}isIdentifier(){return this.type==d.Identifier}isPrivateIdentifier(){return this.type==d.PrivateIdentifier}isKeyword(){return this.type==d.Keyword}isKeywordLet(){return this.type==d.Keyword&&this.strValue=="let"}isKeywordAs(){return this.type==d.Keyword&&this.strValue=="as"}isKeywordNull(){return this.type==d.Keyword&&this.strValue=="null"}isKeywordUndefined(){return this.type==d.Keyword&&this.strValue=="undefined"}isKeywordTrue(){return this.type==d.Keyword&&this.strValue=="true"}isKeywordFalse(){return this.type==d.Keyword&&this.strValue=="false"}isKeywordThis(){return this.type==d.Keyword&&this.strValue=="this"}isError(){return this.type==d.Error}toNumber(){return this.type==d.Number?this.numValue:-1}toString(){switch(this.type){case d.Character:case d.Identifier:case d.Keyword:case d.Operator:case d.PrivateIdentifier:case d.String:case d.Error:return this.strValue;case d.Number:return this.numValue.toString();default:return null}}};function ot(s,e,t){return new N(s,e,d.Character,t,String.fromCharCode(t))}function lr(s,e,t){return new N(s,e,d.Identifier,0,t)}function xr(s,e,t){return new N(s,e,d.PrivateIdentifier,0,t)}function fr(s,e,t){return new N(s,e,d.Keyword,0,t)}function Be(s,e,t){return new N(s,e,d.Operator,0,t)}function dr(s,e,t){return new N(s,e,d.String,0,t)}function vr(s,e,t){return new N(s,e,d.Number,t,"")}function gr(s,e,t){return new N(s,e,d.Error,0,t)}var Ce=new N(-1,-1,d.Character,0,""),Ke=class{constructor(e){this.input=e,this.peek=0,this.index=-1,this.length=e.length,this.advance()}advance(){this.peek=++this.index>=this.length?0:this.input.charCodeAt(this.index)}scanToken(){let e=this.input,t=this.length,r=this.peek,n=this.index;for(;r<=32;)if(++n>=t){r=0;break}else r=e.charCodeAt(n);if(this.peek=r,this.index=n,n>=t)return null;if(ct(r))return this.scanIdentifier();if(b(r))return this.scanNumber(n);let i=n;switch(r){case 46:return this.advance(),b(this.peek)?this.scanNumber(i):ot(i,this.index,46);case 40:case 41:case 123:case 125:case 91:case 93:case 44:case 58:case 59:return this.scanCharacter(i,r);case 39:case 34:return this.scanString();case 35:return this.scanPrivateIdentifier();case 43:case 45:case 42:case 47:case 37:case 94:return this.scanOperator(i,String.fromCharCode(r));case 63:return this.scanQuestion(i);case 60:case 62:return this.scanComplexOperator(i,String.fromCharCode(r),61,"=");case 33:case 61:return this.scanComplexOperator(i,String.fromCharCode(r),61,"=",61,"=");case 38:return this.scanComplexOperator(i,"&",38,"&");case 124:return this.scanComplexOperator(i,"|",124,"|");case 160:for(;tt(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(r)}]`,0)}scanCharacter(e,t){return this.advance(),ot(e,this.index,t)}scanOperator(e,t){return this.advance(),Be(e,this.index,t)}scanComplexOperator(e,t,r,n,i,a){this.advance();let h=t;return this.peek==r&&(this.advance(),h+=n),i!=null&&this.peek==i&&(this.advance(),h+=a),Be(e,this.index,h)}scanIdentifier(){let e=this.index;for(this.advance();ht(this.peek);)this.advance();let t=this.input.substring(e,this.index);return ur.indexOf(t)>-1?fr(e,this.index,t):lr(e,this.index,t)}scanPrivateIdentifier(){let e=this.index;if(this.advance(),!ct(this.peek))return this.error("Invalid character [#]",-1);for(;ht(this.peek);)this.advance();let t=this.input.substring(e,this.index);return xr(e,this.index,t)}scanNumber(e){let t=this.index===e,r=!1;for(this.advance();;){if(!b(this.peek))if(this.peek===95){if(!b(this.input.charCodeAt(this.index-1))||!b(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);r=!0}else if(this.peek===46)t=!1;else if(mr(this.peek)){if(this.advance(),Sr(this.peek)&&this.advance(),!b(this.peek))return this.error("Invalid exponent",-1);t=!1}else break;this.advance()}let n=this.input.substring(e,this.index);r&&(n=n.replace(/_/g,""));let i=t?yr(n):parseFloat(n);return vr(e,this.index,i)}scanString(){let e=this.index,t=this.peek;this.advance();let r="",n=this.index,i=this.input;for(;this.peek!=t;)if(this.peek==92){r+=i.substring(n,this.index);let h;if(this.advance(),this.peek==117){let v=i.substring(this.index+1,this.index+5);if(/^[0-9a-f]+$/i.test(v))h=parseInt(v,16);else return this.error(`Invalid unicode escape [\\u${v}]`,0);for(let f=0;f<5;f++)this.advance()}else h=wr(this.peek),this.advance();r+=String.fromCharCode(h),n=this.index}else{if(this.peek==0)return this.error("Unterminated quote",0);this.advance()}let a=i.substring(n,this.index);return this.advance(),dr(e,this.index,r+a)}scanQuestion(e){this.advance();let t="?";return(this.peek===63||this.peek===46)&&(t+=this.peek===46?".":"?",this.advance()),Be(e,this.index,t)}error(e,t){let r=this.index+t;return gr(r,this.index,`Lexer Error: ${e} at column ${r} in expression [${this.input}]`)}};function ct(s){return 97<=s&&s<=122||65<=s&&s<=90||s==95||s==36}function ht(s){return rt(s)||b(s)||s==95||s==36}function mr(s){return s==101||s==69}function Sr(s){return s==45||s==43}function wr(s){switch(s){case 110:return 10;case 102:return 12;case 114:return 13;case 116:return 9;case 118:return 11;default:return s}}function yr(s){let e=parseInt(s);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+s);return e}var Er=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function xt(s,e){if(e!=null&&!(Array.isArray(e)&&e.length==2))throw new Error(`Expected '${s}' to be an array, [start, end].`);if(e!=null){let t=e[0],r=e[1];Er.forEach(n=>{if(n.test(t)||n.test(r))throw new Error(`['${t}', '${r}'] contains unusable interpolation symbol.`)})}}var _e=class s{static fromArray(e){return e?(xt("interpolation",e),new s(e[0],e[1])):F}constructor(e,t){this.start=e,this.end=t}},F=new _e("{{","}}");var Me=class{constructor(e,t,r){this.strings=e,this.expressions=t,this.offsets=r}},Fe=class{constructor(e,t,r){this.templateBindings=e,this.warnings=t,this.errors=r}},ve=class{constructor(e){this._lexer=e,this.errors=[]}parseAction(e,t,r,n,i=F){this._checkNoInterpolation(e,r,i);let a=this._stripComments(e),h=this._lexer.tokenize(a),v=1;t&&(v|=2);let f=new U(e,r,n,h,v,this.errors,0).parseChain();return new R(f,e,r,n,this.errors)}parseBinding(e,t,r,n=F){let i=this._parseBindingAst(e,t,r,n);return new R(i,e,t,r,this.errors)}checkSimpleExpression(e){let t=new Ue;return e.visit(t),t.errors}parseSimpleBinding(e,t,r,n=F){let i=this._parseBindingAst(e,t,r,n),a=this.checkSimpleExpression(i);return a.length>0&&this._reportError(`Host binding expression cannot contain ${a.join(" ")}`,e,t),new R(i,e,t,r,this.errors)}_reportError(e,t,r,n){this.errors.push(new G(e,t,r,n))}_parseBindingAst(e,t,r,n){this._checkNoInterpolation(e,t,n);let i=this._stripComments(e),a=this._lexer.tokenize(i);return new U(e,t,r,a,0,this.errors,0).parseChain()}parseTemplateBindings(e,t,r,n,i){let a=this._lexer.tokenize(t);return new U(t,r,i,a,0,this.errors,0).parseTemplateBindings({source:e,span:new I(n,n+e.length)})}parseInterpolation(e,t,r,n,i=F){let{strings:a,expressions:h,offsets:v}=this.splitInterpolation(e,t,n,i);if(h.length===0)return null;let f=[];for(let w=0;ww.text),f,e,t,r)}parseInterpolationExpression(e,t,r){let n=this._stripComments(e),i=this._lexer.tokenize(n),a=new U(e,t,r,i,0,this.errors,0).parseChain(),h=["",""];return this.createInterpolationAst(h,[a],e,t,r)}createInterpolationAst(e,t,r,n,i){let a=new P(0,r.length),h=new we(a,a.toAbsolute(i),e,t);return new R(h,r,n,i,this.errors)}splitInterpolation(e,t,r,n=F){let i=[],a=[],h=[],v=r?Ar(r):null,f=0,w=!1,k=!1,{start:C,end:y}=n;for(;f-1)break;i>-1&&a>-1&&this._reportError(`Got interpolation (${r}${n}) where expression was expected`,e,`at column ${i} in`,t)}_getInterpolationEndIndex(e,t,r){for(let n of this._forEachUnquotedChar(e,r)){if(e.startsWith(t,n))return n;if(e.startsWith("//",n))return e.indexOf(t,n)}return-1}*_forEachUnquotedChar(e,t){let r=null,n=0;for(let i=t;i=this.tokens.length}get inputIndex(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}get currentEndIndex(){return this.index>0?this.peek(-1).end+this.offset:this.tokens.length===0?this.input.length+this.offset:this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(e,t){let r=this.currentEndIndex;if(t!==void 0&&t>this.currentEndIndex&&(r=t),e>r){let n=r;r=e,e=n}return new P(e,r)}sourceSpan(e,t){let r=`${e}@${this.inputIndex}:${t}`;return this.sourceSpanCache.has(r)||this.sourceSpanCache.set(r,this.span(e,t).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(r)}advance(){this.index++}withContext(e,t){this.context|=e;let r=t();return this.context^=e,r}consumeOptionalCharacter(e){return this.next.isCharacter(e)?(this.advance(),!0):!1}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(e){this.consumeOptionalCharacter(e)||this.error(`Missing expected ${String.fromCharCode(e)}`)}consumeOptionalOperator(e){return this.next.isOperator(e)?(this.advance(),!0):!1}expectOperator(e){this.consumeOptionalOperator(e)||this.error(`Missing expected operator ${e}`)}prettyPrintToken(e){return e===Ce?"end of input":`token ${e}`}expectIdentifierOrKeyword(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier or keyword"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier or keyword`),null):(this.advance(),e.toString())}expectIdentifierOrKeywordOrString(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()&&!e.isString()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier, keyword or string"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier, keyword, or string`),""):(this.advance(),e.toString())}parseChain(){let e=[],t=this.inputIndex;for(;this.index":case"<=":case">=":this.advance();let n=this.parseAdditive();t=new $(this.span(e),this.sourceSpan(e),r,t,n);continue}break}return t}parseAdditive(){let e=this.inputIndex,t=this.parseMultiplicative();for(;this.next.type==d.Operator;){let r=this.next.strValue;switch(r){case"+":case"-":this.advance();let n=this.parseMultiplicative();t=new $(this.span(e),this.sourceSpan(e),r,t,n);continue}break}return t}parseMultiplicative(){let e=this.inputIndex,t=this.parsePrefix();for(;this.next.type==d.Operator;){let r=this.next.strValue;switch(r){case"*":case"%":case"/":this.advance();let n=this.parsePrefix();t=new $(this.span(e),this.sourceSpan(e),r,t,n);continue}break}return t}parsePrefix(){if(this.next.type==d.Operator){let e=this.inputIndex,t=this.next.strValue,r;switch(t){case"+":return this.advance(),r=this.parsePrefix(),K.createPlus(this.span(e),this.sourceSpan(e),r);case"-":return this.advance(),r=this.parsePrefix(),K.createMinus(this.span(e),this.sourceSpan(e),r);case"!":return this.advance(),r=this.parsePrefix(),new Y(this.span(e),this.sourceSpan(e),r)}}return this.parseCallChain()}parseCallChain(){let e=this.inputIndex,t=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(46))t=this.parseAccessMember(t,e,!1);else if(this.consumeOptionalOperator("?."))this.consumeOptionalCharacter(40)?t=this.parseCall(t,e,!0):t=this.consumeOptionalCharacter(91)?this.parseKeyedReadOrWrite(t,e,!0):this.parseAccessMember(t,e,!0);else if(this.consumeOptionalCharacter(91))t=this.parseKeyedReadOrWrite(t,e,!1);else if(this.consumeOptionalCharacter(40))t=this.parseCall(t,e,!1);else if(this.consumeOptionalOperator("!"))t=new ee(this.span(e),this.sourceSpan(e),t);else return t}parsePrimary(){let e=this.inputIndex;if(this.consumeOptionalCharacter(40)){this.rparensExpected++;let t=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),t}else{if(this.next.isKeywordNull())return this.advance(),new A(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new A(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new A(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new A(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new Se(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(91)){this.rbracketsExpected++;let t=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new Z(this.span(e),this.sourceSpan(e),t)}else{if(this.next.isCharacter(123))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new L(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){let t=this.next.toNumber();return this.advance(),new A(this.span(e),this.sourceSpan(e),t)}else if(this.next.isString()){let t=this.next.toString();return this.advance(),new A(this.span(e),this.sourceSpan(e),t)}else return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new E(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new E(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new E(this.span(e),this.sourceSpan(e)))}}}parseExpressionList(e){let t=[];do if(!this.next.isCharacter(e))t.push(this.parsePipe());else break;while(this.consumeOptionalCharacter(44));return t}parseLiteralMap(){let e=[],t=[],r=this.inputIndex;if(this.expectCharacter(123),!this.consumeOptionalCharacter(125)){this.rbracesExpected++;do{let n=this.inputIndex,i=this.next.isString(),a=this.expectIdentifierOrKeywordOrString();if(e.push({key:a,quoted:i}),i)this.expectCharacter(58),t.push(this.parsePipe());else if(this.consumeOptionalCharacter(58))t.push(this.parsePipe());else{let h=this.span(n),v=this.sourceSpan(n);t.push(new B(h,v,v,new L(h,v),a))}}while(this.consumeOptionalCharacter(44)&&!this.next.isCharacter(125));this.rbracesExpected--,this.expectCharacter(125)}return new J(this.span(r),this.sourceSpan(r),e,t)}parseAccessMember(e,t,r){let n=this.inputIndex,i=this.withContext(he.Writable,()=>{let v=this.expectIdentifierOrKeyword()??"";return v.length===0&&this.error("Expected identifier for property access",e.span.end),v}),a=this.sourceSpan(n),h;if(r)this.consumeOptionalAssignment()?(this.error("The '?.' operator cannot be used in the assignment"),h=new E(this.span(t),this.sourceSpan(t))):h=new H(this.span(t),this.sourceSpan(t),a,e,i);else if(this.consumeOptionalAssignment()){if(!(this.parseFlags&1))return this.error("Bindings cannot contain assignments"),new E(this.span(t),this.sourceSpan(t));let v=this.parseConditional();h=new Q(this.span(t),this.sourceSpan(t),a,e,i,v)}else h=new B(this.span(t),this.sourceSpan(t),a,e,i);return h}parseCall(e,t,r){let n=this.inputIndex;this.rparensExpected++;let i=this.parseCallArguments(),a=this.span(n,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(41),this.rparensExpected--;let h=this.span(t),v=this.sourceSpan(t);return r?new re(h,v,e,i,a):new te(h,v,e,i,a)}consumeOptionalAssignment(){return this.parseFlags&2&&this.next.isOperator("!")&&this.peek(1).isOperator("=")?(this.advance(),this.advance(),!0):this.consumeOptionalOperator("=")}parseCallArguments(){if(this.next.isCharacter(41))return[];let e=[];do e.push(this.parsePipe());while(this.consumeOptionalCharacter(44));return e}expectTemplateBindingKey(){let e="",t=!1,r=this.currentAbsoluteOffset;do e+=this.expectIdentifierOrKeywordOrString(),t=this.consumeOptionalOperator("-"),t&&(e+="-");while(t);return{source:e,span:new I(r,r+e.length)}}parseTemplateBindings(e){let t=[];for(t.push(...this.parseDirectiveKeywordBindings(e));this.index{this.rbracketsExpected++;let n=this.parsePipe();if(n instanceof E&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(93),this.consumeOptionalOperator("="))if(r)this.error("The '?.' operator cannot be used in the assignment");else{let i=this.parseConditional();return new q(this.span(t),this.sourceSpan(t),e,n,i)}else return r?new z(this.span(t),this.sourceSpan(t),e,n):new j(this.span(t),this.sourceSpan(t),e,n);return new E(this.span(t),this.sourceSpan(t))})}parseDirectiveKeywordBindings(e){let t=[];this.consumeOptionalCharacter(58);let r=this.getDirectiveBoundTarget(),n=this.currentAbsoluteOffset,i=this.parseAsBinding(e);i||(this.consumeStatementTerminator(),n=this.currentAbsoluteOffset);let a=new I(e.span.start,n);return t.push(new se(a,e,r)),i&&t.push(i),t}getDirectiveBoundTarget(){if(this.next===Ce||this.peekKeywordAs()||this.peekKeywordLet())return null;let e=this.parsePipe(),{start:t,end:r}=e.span,n=this.input.substring(t,r);return new R(e,n,this.location,this.absoluteOffset+t,this.errors)}parseAsBinding(e){if(!this.peekKeywordAs())return null;this.advance();let t=this.expectTemplateBindingKey();this.consumeStatementTerminator();let r=new I(e.span.start,this.currentAbsoluteOffset);return new T(r,t,e)}parseLetBinding(){if(!this.peekKeywordLet())return null;let e=this.currentAbsoluteOffset;this.advance();let t=this.expectTemplateBindingKey(),r=null;this.consumeOptionalOperator("=")&&(r=this.expectTemplateBindingKey()),this.consumeStatementTerminator();let n=new I(e,this.currentAbsoluteOffset);return new T(n,t,r)}consumeStatementTerminator(){this.consumeOptionalCharacter(59)||this.consumeOptionalCharacter(44)}error(e,t=null){this.errors.push(new G(e,this.input,this.locationText(t),this.location)),this.skip()}locationText(e=null){return e==null&&(e=this.index),eh+v.length,0);r+=a,t+=a}e.set(r,t),n++}return e}var dt="angular-estree-parser",De="NgEstreeParser",Ge=0,Ve=[dt,Ge];function vt(){return new ve(new xe)}function We(s,e){let t=vt(),{astInput:r,comments:n}=Cr(s,t),{ast:i,errors:a}=e(r,t);return yt(a),{ast:i,comments:n}}function gt(s){return We(s,(e,t)=>t.parseBinding(e,...Ve))}function mt(s){return We(s,(e,t)=>t.parseAction(e,!1,...Ve))}function St(s){return We(s,(e,t)=>{let r=t.parseInterpolationExpression(e,...Ve);return r.ast=r.ast.expressions[0],r})}function wt(s){let e=vt(),{templateBindings:t,errors:r}=e.parseTemplateBindings(De,s,dt,Ge,Ge);return yt(r),t}function yt(s){if(s.length!==0){let[{message:e}]=s;throw new SyntaxError(e.replace(/^Parser Error: | at column \d+ in [^]*$/g,""))}}function Cr(s,e){let t=e._commentStart(s);return t===null?{astInput:s,comments:[]}:{astInput:s.slice(0,t),comments:[{type:"Comment",value:s.slice(t+2),sourceSpan:{start:t,end:s.length}}]}}function Et(s){return s instanceof K?"Unary":s instanceof $?"Binary":s instanceof X?"BindingPipe":s instanceof te?"Call":s instanceof V?"Chain":s instanceof W?"Conditional":s instanceof E?"EmptyExpr":s instanceof L?"ImplicitReceiver":s instanceof j?"KeyedRead":s instanceof z?"SafeKeyedRead":s instanceof q?"KeyedWrite":s instanceof Z?"LiteralArray":s instanceof J?"LiteralMap":s instanceof A?"LiteralPrimitive":s instanceof ee?"NonNullAssert":s instanceof Y?"PrefixNot":s instanceof B?"PropertyRead":s instanceof Q?"PropertyWrite":s instanceof re?"SafeCall":s instanceof H?"SafePropertyRead":s.type}function ft({start:s,end:e},t){let r=s,n=e;for(;n!==r&&/\s/.test(t[n-1]);)n--;for(;r!==n&&/\s/.test(t[r]);)r++;return{start:r,end:n}}function Or({start:s,end:e},t){let r=s,n=e;for(;n!==t.length&&/\s/.test(t[n]);)n++;for(;r!==0&&/\s/.test(t[r-1]);)r--;return{start:r,end:n}}function Nr(s,e){return e[s.start-1]==="("&&e[s.end]===")"?{start:s.start-1,end:s.end+1}:s}function At(s,e,t){let r=0,n={start:s.start,end:s.end};for(;;){let i=Or(n,e),a=Nr(i,e);if(i.start===a.start&&i.end===a.end)break;n.start=a.start,n.end=a.end,r++}return{hasParens:(t?r-1:r)!==0,outerSpan:ft(t?{start:n.start+1,end:n.end-1}:n,e),innerSpan:ft(s,e)}}function $t(s,e,t){let r=e;for(;!s.test(t[r]);)if(--r<0)throw new Error(`Cannot find front char ${s} from index ${e} in ${JSON.stringify(t)}`);return r}function Oe(s,e,t){let r=e;for(;!s.test(t[r]);)if(++r>=t.length)throw new Error(`Cannot find back char ${s} from index ${e} in ${JSON.stringify(t)}`);return r}function Ct(s){return s.slice(0,1).toLowerCase()+s.slice(1)}function Ot(s){return s.length===0?void 0:s[s.length-1]}var pe=(s,e,t=!1)=>{let r=Et(s);switch(r){case"Unary":{let{operator:c,expr:o}=s,x=n(o);return a("UnaryExpression",{prefix:!0,argument:x,operator:c},s.sourceSpan,{hasParentParens:t})}case"Binary":{let{left:c,operation:o,right:x}=s,p=n(c),u=n(x);return a(o==="&&"||o==="||"||o==="??"?"LogicalExpression":"BinaryExpression",{left:p,right:u,operator:o},{start:y(p),end:m(u)},{hasParentParens:t})}case"BindingPipe":{let{exp:c,name:o,args:x}=s,p=n(c),u=f(/\S/,f(/\|/,m(p))+1),g=a("Identifier",{name:o},{start:u,end:u+o.length}),l=x.map(n);return a("NGPipeExpression",{left:p,right:g,arguments:l},{start:y(p),end:m(l.length===0?g:Ot(l))},{hasParentParens:t})}case"Chain":{let{expressions:c}=s;return a("NGChainedExpression",{expressions:c.map(n)},s.sourceSpan,{hasParentParens:t})}case"Comment":{let{value:c}=s;return a("CommentLine",{value:c},s.sourceSpan,{processSpan:!1})}case"Conditional":{let{condition:c,trueExp:o,falseExp:x}=s,p=n(c),u=n(o),g=n(x);return a("ConditionalExpression",{test:p,consequent:u,alternate:g},{start:y(p),end:m(g)},{hasParentParens:t})}case"EmptyExpr":return a("NGEmptyExpression",{},s.sourceSpan,{hasParentParens:t});case"ImplicitReceiver":return a("ThisExpression",{},s.sourceSpan,{hasParentParens:t});case"KeyedRead":case"SafeKeyedRead":{let c=r==="SafeKeyedRead",{key:o}=s,x=Object.prototype.hasOwnProperty.call(s,"receiver")?s.receiver:s.obj,p=n(o);return h(x,p,{computed:!0,optional:c},{end:s.sourceSpan.end,hasParentParens:t})}case"LiteralArray":{let{expressions:c}=s;return a("ArrayExpression",{elements:c.map(n)},s.sourceSpan,{hasParentParens:t})}case"LiteralMap":{let{keys:c,values:o}=s,x=o.map(u=>n(u)),p=c.map(({key:u,quoted:g},l)=>{let O=x[l],ue=y(O),qe=m(O),Re=f(/\S/,l===0?s.sourceSpan.start+1:f(/,/,m(x[l-1]))+1),bt=ue===Re?qe:v(/\S/,v(/:/,ue-1)-1)+1,Xe={start:Re,end:bt},ge=g?a("StringLiteral",{value:u},Xe):a("Identifier",{name:u},Xe),Bt=ge.end=c.sourceSpan.end||/^\s+$/.test(e.text.slice(c.sourceSpan.start,c.sourceSpan.end))}function k(c){return(c.type==="OptionalCallExpression"||c.type==="OptionalMemberExpression")&&!C(c)}function C(c){return c.extra&&c.extra.parenthesized}function y(c){return C(c)?c.extra.parenStart:c.start}function m(c){return C(c)?c.extra.parenEnd:c.end}};function Ne(s,e,t=!1,r=!1){if(!t){let{start:h,end:v}=s;return{start:h,end:v,loc:{start:e.locator.locationForIndex(h),end:e.locator.locationForIndex(v)}}}let{outerSpan:n,innerSpan:i,hasParens:a}=At(s,e.text,r);return{start:i.start,end:i.end,loc:{start:e.locator.locationForIndex(i.start),end:e.locator.locationForIndex(i.end)},...a&&{extra:{parenthesized:!0,parenStart:n.start,parenEnd:n.end}}}}function Nt(s,e){s.forEach(y);let[t]=s,{key:r}=t,n=e.text.slice(t.sourceSpan.start,t.sourceSpan.end).trim().length===0?s.slice(1):s,i=[],a=null;for(let o=0;o({...O,...Ne({start:O.start,end:ue},e)}),g=O=>({...u(O,p.end),alias:p}),l=i.pop();if(l.type==="NGMicrosyntaxExpression")i.push(g(l));else if(l.type==="NGMicrosyntaxKeyedExpression"){let O=g(l.expression);i.push(u({...l,expression:O},O.end))}else throw new Error(`Unexpected type ${l.type}`)}else i.push(h(x,o));a=x}return f("NGMicrosyntax",{body:i},i.length===0?s[0].sourceSpan:{start:i[0].start,end:i[i.length-1].end});function h(o,x){if(k(o)){let{key:p,value:u}=o;return u?x===0?f("NGMicrosyntaxExpression",{expression:v(u.ast),alias:null},u.sourceSpan):f("NGMicrosyntaxKeyedExpression",{key:f("NGMicrosyntaxKey",{name:w(p.source)},p.span),expression:f("NGMicrosyntaxExpression",{expression:v(u.ast),alias:null},u.sourceSpan)},{start:p.span.start,end:u.sourceSpan.end}):f("NGMicrosyntaxKey",{name:w(p.source)},p.span)}else{let{key:p,sourceSpan:u}=o;if(/^let\s$/.test(e.text.slice(u.start,u.start+4))){let{value:l}=o;return f("NGMicrosyntaxLet",{key:f("NGMicrosyntaxKey",{name:p.source},p.span),value:l?f("NGMicrosyntaxKey",{name:l.source},l.span):null},{start:u.start,end:l?l.span.end:p.span.end})}else{let l=c(o);return f("NGMicrosyntaxAs",{key:f("NGMicrosyntaxKey",{name:l.source},l.span),alias:f("NGMicrosyntaxKey",{name:p.source},p.span)},{start:l.span.start,end:p.span.end})}}}function v(o){return pe(o,e)}function f(o,x,p,u=!0){return{type:o,...Ne(p,e,u),...x}}function w(o){return Ct(o.slice(r.source.length))}function k(o){return o instanceof se}function C(o){return o instanceof T}function y(o){m(o.key.span),C(o)&&o.value&&m(o.value.span)}function m(o){if(e.text[o.start]!=='"'&&e.text[o.start]!=="'")return;let x=e.text[o.start],p=!1;for(let u=o.start+1;upe(h,n),a=i(t);return a.comments=r.map(h=>i(h)),a}function kt(s){return Qe(s,gt)}function It(s){return Qe(s,St)}function He(s){return Qe(s,mt)}function Rt(s){return Nt(wt(s),new le(s))}function kr(s){return Array.isArray(s)&&s.length>0}var Pt=kr;function je(s){var r;let e=s.range?s.range[0]:s.start,t=((r=s.declaration)==null?void 0:r.decorators)??s.decorators;return Pt(t)?Math.min(je(t[0]),e):e}function Lt(s){return s.range?s.range[1]:s.end}function ke(s){return{astFormat:"estree",parse(e){let t=s(e);return{type:"NGRoot",node:s===He&&t.type!=="NGChainedExpression"?{...t,type:"NGChainedExpression",expressions:[t]}:t}},locStart:je,locEnd:Lt}}var Ir=ke(He),Rr=ke(kt),Pr=ke(It),Lr=ke(Rt);var fs=ze;export{fs as default,Ie as parsers}; +var Kt=Object.defineProperty;var Ze=(s,e)=>{for(var t in e)Kt(s,t,{get:e[t],enumerable:!0})};var ze={};Ze(ze,{parsers:()=>je});var je={};Ze(je,{__ng_action:()=>Ir,__ng_binding:()=>Rr,__ng_directive:()=>Lr,__ng_interpolation:()=>Pr});var me=` +`,Je="\r",Ye=function(){function s(e){this.length=e.length;for(var t=[0],r=0;rthis.length)return null;for(var t=0,r=this.offsets;r[t+1]<=e;)t++;var n=e-r[t];return{line:t,column:n}},s.prototype.indexForLocation=function(e){var t=e.line,r=e.column;return t<0||t>=this.offsets.length||r<0||r>this.lengthOfLine(t)?null:this.offsets[t]+r},s.prototype.lengthOfLine=function(e){var t=this.offsets[e],r=e===this.offsets.length-1?this.length:this.offsets[e+1];return r-t},s}();var le=class{text;locator;constructor(e){this.text=e,this.locator=new Re(this.text)}},Re=class{_linesAndColumns;constructor(e){this._linesAndColumns=new Ye(e)}locationForIndex(e){let{line:t,column:r}=this._linesAndColumns.locationForIndex(e);return{line:t+1,column:r,index:e}}};var G=class{constructor(e,t,r,n){this.input=t,this.errLocation=r,this.ctxLocation=n,this.message=`Parser Error: ${e} ${r} [${t}] in ${n}`}},P=class{constructor(e,t){this.start=e,this.end=t}toAbsolute(e){return new I(e+this.start,e+this.end)}},S=class{constructor(e,t){this.span=e,this.sourceSpan=t}toString(){return"AST"}},D=class extends S{constructor(e,t,r){super(e,t),this.nameSpan=r}},E=class extends S{visit(e,t=null){}},L=class extends S{visit(e,t=null){return e.visitImplicitReceiver(this,t)}},Se=class extends L{visit(e,t=null){var r;return(r=e.visitThisReceiver)==null?void 0:r.call(e,this,t)}},V=class extends S{constructor(e,t,r){super(e,t),this.expressions=r}visit(e,t=null){return e.visitChain(this,t)}},W=class extends S{constructor(e,t,r,n,i){super(e,t),this.condition=r,this.trueExp=n,this.falseExp=i}visit(e,t=null){return e.visitConditional(this,t)}},B=class extends D{constructor(e,t,r,n,i){super(e,t,r),this.receiver=n,this.name=i}visit(e,t=null){return e.visitPropertyRead(this,t)}},Q=class extends D{constructor(e,t,r,n,i,a){super(e,t,r),this.receiver=n,this.name=i,this.value=a}visit(e,t=null){return e.visitPropertyWrite(this,t)}},H=class extends D{constructor(e,t,r,n,i){super(e,t,r),this.receiver=n,this.name=i}visit(e,t=null){return e.visitSafePropertyRead(this,t)}},j=class extends S{constructor(e,t,r,n){super(e,t),this.receiver=r,this.key=n}visit(e,t=null){return e.visitKeyedRead(this,t)}},z=class extends S{constructor(e,t,r,n){super(e,t),this.receiver=r,this.key=n}visit(e,t=null){return e.visitSafeKeyedRead(this,t)}},q=class extends S{constructor(e,t,r,n,i){super(e,t),this.receiver=r,this.key=n,this.value=i}visit(e,t=null){return e.visitKeyedWrite(this,t)}},X=class extends D{constructor(e,t,r,n,i,a){super(e,t,a),this.exp=r,this.name=n,this.args=i}visit(e,t=null){return e.visitPipe(this,t)}},A=class extends S{constructor(e,t,r){super(e,t),this.value=r}visit(e,t=null){return e.visitLiteralPrimitive(this,t)}},Z=class extends S{constructor(e,t,r){super(e,t),this.expressions=r}visit(e,t=null){return e.visitLiteralArray(this,t)}},J=class extends S{constructor(e,t,r,n){super(e,t),this.keys=r,this.values=n}visit(e,t=null){return e.visitLiteralMap(this,t)}},we=class extends S{constructor(e,t,r,n){super(e,t),this.strings=r,this.expressions=n}visit(e,t=null){return e.visitInterpolation(this,t)}},$=class extends S{constructor(e,t,r,n,i){super(e,t),this.operation=r,this.left=n,this.right=i}visit(e,t=null){return e.visitBinary(this,t)}},K=class s extends ${static createMinus(e,t,r){return new s(e,t,"-",r,"-",new A(e,t,0),r)}static createPlus(e,t,r){return new s(e,t,"+",r,"-",r,new A(e,t,0))}constructor(e,t,r,n,i,a,h){super(e,t,i,a,h),this.operator=r,this.expr=n,this.left=null,this.right=null,this.operation=null}visit(e,t=null){return e.visitUnary!==void 0?e.visitUnary(this,t):e.visitBinary(this,t)}},Y=class extends S{constructor(e,t,r){super(e,t),this.expression=r}visit(e,t=null){return e.visitPrefixNot(this,t)}},ee=class extends S{constructor(e,t,r){super(e,t),this.expression=r}visit(e,t=null){return e.visitNonNullAssert(this,t)}},te=class extends S{constructor(e,t,r,n,i){super(e,t),this.receiver=r,this.args=n,this.argumentSpan=i}visit(e,t=null){return e.visitCall(this,t)}},re=class extends S{constructor(e,t,r,n,i){super(e,t),this.receiver=r,this.args=n,this.argumentSpan=i}visit(e,t=null){return e.visitSafeCall(this,t)}},I=class{constructor(e,t){this.start=e,this.end=t}},R=class extends S{constructor(e,t,r,n,i){super(new P(0,t===null?0:t.length),new I(n,t===null?n:n+t.length)),this.ast=e,this.source=t,this.location=r,this.errors=i}visit(e,t=null){return e.visitASTWithSource?e.visitASTWithSource(this,t):this.ast.visit(e,t)}toString(){return`${this.source} in ${this.location}`}},T=class{constructor(e,t,r){this.sourceSpan=e,this.key=t,this.value=r}},se=class{constructor(e,t,r){this.sourceSpan=e,this.key=t,this.value=r}},ye=class{visit(e,t){e.visit(this,t)}visitUnary(e,t){this.visit(e.expr,t)}visitBinary(e,t){this.visit(e.left,t),this.visit(e.right,t)}visitChain(e,t){this.visitAll(e.expressions,t)}visitConditional(e,t){this.visit(e.condition,t),this.visit(e.trueExp,t),this.visit(e.falseExp,t)}visitPipe(e,t){this.visit(e.exp,t),this.visitAll(e.args,t)}visitImplicitReceiver(e,t){}visitThisReceiver(e,t){}visitInterpolation(e,t){this.visitAll(e.expressions,t)}visitKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitKeyedWrite(e,t){this.visit(e.receiver,t),this.visit(e.key,t),this.visit(e.value,t)}visitLiteralArray(e,t){this.visitAll(e.expressions,t)}visitLiteralMap(e,t){this.visitAll(e.values,t)}visitLiteralPrimitive(e,t){}visitPrefixNot(e,t){this.visit(e.expression,t)}visitNonNullAssert(e,t){this.visit(e.expression,t)}visitPropertyRead(e,t){this.visit(e.receiver,t)}visitPropertyWrite(e,t){this.visit(e.receiver,t),this.visit(e.value,t)}visitSafePropertyRead(e,t){this.visit(e.receiver,t)}visitSafeKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitSafeCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitAll(e,t){for(let r of e)this.visit(r,t)}};var et;(function(s){s[s.DEFAULT=0]="DEFAULT",s[s.LITERAL_ATTR=1]="LITERAL_ATTR",s[s.ANIMATION=2]="ANIMATION"})(et||(et={}));function tt(s){return s>=9&&s<=32||s==160}function b(s){return 48<=s&&s<=57}function rt(s){return s>=97&&s<=122||s>=65&&s<=90}function Pe(s){return s===39||s===34||s===96}var d;(function(s){s[s.Character=0]="Character",s[s.Identifier=1]="Identifier",s[s.PrivateIdentifier=2]="PrivateIdentifier",s[s.Keyword=3]="Keyword",s[s.String=4]="String",s[s.Operator=5]="Operator",s[s.Number=6]="Number",s[s.Error=7]="Error"})(d||(d={}));var ur=["var","let","as","null","undefined","true","false","if","else","this"],xe=class{tokenize(e){let t=new Be(e),r=[],n=t.scanToken();for(;n!=null;)r.push(n),n=t.scanToken();return r}},N=class{constructor(e,t,r,n,i){this.index=e,this.end=t,this.type=r,this.numValue=n,this.strValue=i}isCharacter(e){return this.type==d.Character&&this.numValue==e}isNumber(){return this.type==d.Number}isString(){return this.type==d.String}isOperator(e){return this.type==d.Operator&&this.strValue==e}isIdentifier(){return this.type==d.Identifier}isPrivateIdentifier(){return this.type==d.PrivateIdentifier}isKeyword(){return this.type==d.Keyword}isKeywordLet(){return this.type==d.Keyword&&this.strValue=="let"}isKeywordAs(){return this.type==d.Keyword&&this.strValue=="as"}isKeywordNull(){return this.type==d.Keyword&&this.strValue=="null"}isKeywordUndefined(){return this.type==d.Keyword&&this.strValue=="undefined"}isKeywordTrue(){return this.type==d.Keyword&&this.strValue=="true"}isKeywordFalse(){return this.type==d.Keyword&&this.strValue=="false"}isKeywordThis(){return this.type==d.Keyword&&this.strValue=="this"}isError(){return this.type==d.Error}toNumber(){return this.type==d.Number?this.numValue:-1}toString(){switch(this.type){case d.Character:case d.Identifier:case d.Keyword:case d.Operator:case d.PrivateIdentifier:case d.String:case d.Error:return this.strValue;case d.Number:return this.numValue.toString();default:return null}}};function ot(s,e,t){return new N(s,e,d.Character,t,String.fromCharCode(t))}function lr(s,e,t){return new N(s,e,d.Identifier,0,t)}function xr(s,e,t){return new N(s,e,d.PrivateIdentifier,0,t)}function fr(s,e,t){return new N(s,e,d.Keyword,0,t)}function be(s,e,t){return new N(s,e,d.Operator,0,t)}function dr(s,e,t){return new N(s,e,d.String,0,t)}function vr(s,e,t){return new N(s,e,d.Number,t,"")}function gr(s,e,t){return new N(s,e,d.Error,0,t)}var Ce=new N(-1,-1,d.Character,0,""),Be=class{constructor(e){this.input=e,this.peek=0,this.index=-1,this.length=e.length,this.advance()}advance(){this.peek=++this.index>=this.length?0:this.input.charCodeAt(this.index)}scanToken(){let e=this.input,t=this.length,r=this.peek,n=this.index;for(;r<=32;)if(++n>=t){r=0;break}else r=e.charCodeAt(n);if(this.peek=r,this.index=n,n>=t)return null;if(ct(r))return this.scanIdentifier();if(b(r))return this.scanNumber(n);let i=n;switch(r){case 46:return this.advance(),b(this.peek)?this.scanNumber(i):ot(i,this.index,46);case 40:case 41:case 123:case 125:case 91:case 93:case 44:case 58:case 59:return this.scanCharacter(i,r);case 39:case 34:return this.scanString();case 35:return this.scanPrivateIdentifier();case 43:case 45:case 42:case 47:case 37:case 94:return this.scanOperator(i,String.fromCharCode(r));case 63:return this.scanQuestion(i);case 60:case 62:return this.scanComplexOperator(i,String.fromCharCode(r),61,"=");case 33:case 61:return this.scanComplexOperator(i,String.fromCharCode(r),61,"=",61,"=");case 38:return this.scanComplexOperator(i,"&",38,"&");case 124:return this.scanComplexOperator(i,"|",124,"|");case 160:for(;tt(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(r)}]`,0)}scanCharacter(e,t){return this.advance(),ot(e,this.index,t)}scanOperator(e,t){return this.advance(),be(e,this.index,t)}scanComplexOperator(e,t,r,n,i,a){this.advance();let h=t;return this.peek==r&&(this.advance(),h+=n),i!=null&&this.peek==i&&(this.advance(),h+=a),be(e,this.index,h)}scanIdentifier(){let e=this.index;for(this.advance();ht(this.peek);)this.advance();let t=this.input.substring(e,this.index);return ur.indexOf(t)>-1?fr(e,this.index,t):lr(e,this.index,t)}scanPrivateIdentifier(){let e=this.index;if(this.advance(),!ct(this.peek))return this.error("Invalid character [#]",-1);for(;ht(this.peek);)this.advance();let t=this.input.substring(e,this.index);return xr(e,this.index,t)}scanNumber(e){let t=this.index===e,r=!1;for(this.advance();;){if(!b(this.peek))if(this.peek===95){if(!b(this.input.charCodeAt(this.index-1))||!b(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);r=!0}else if(this.peek===46)t=!1;else if(mr(this.peek)){if(this.advance(),Sr(this.peek)&&this.advance(),!b(this.peek))return this.error("Invalid exponent",-1);t=!1}else break;this.advance()}let n=this.input.substring(e,this.index);r&&(n=n.replace(/_/g,""));let i=t?yr(n):parseFloat(n);return vr(e,this.index,i)}scanString(){let e=this.index,t=this.peek;this.advance();let r="",n=this.index,i=this.input;for(;this.peek!=t;)if(this.peek==92){r+=i.substring(n,this.index);let h;if(this.advance(),this.peek==117){let v=i.substring(this.index+1,this.index+5);if(/^[0-9a-f]+$/i.test(v))h=parseInt(v,16);else return this.error(`Invalid unicode escape [\\u${v}]`,0);for(let f=0;f<5;f++)this.advance()}else h=wr(this.peek),this.advance();r+=String.fromCharCode(h),n=this.index}else{if(this.peek==0)return this.error("Unterminated quote",0);this.advance()}let a=i.substring(n,this.index);return this.advance(),dr(e,this.index,r+a)}scanQuestion(e){this.advance();let t="?";return(this.peek===63||this.peek===46)&&(t+=this.peek===46?".":"?",this.advance()),be(e,this.index,t)}error(e,t){let r=this.index+t;return gr(r,this.index,`Lexer Error: ${e} at column ${r} in expression [${this.input}]`)}};function ct(s){return 97<=s&&s<=122||65<=s&&s<=90||s==95||s==36}function ht(s){return rt(s)||b(s)||s==95||s==36}function mr(s){return s==101||s==69}function Sr(s){return s==45||s==43}function wr(s){switch(s){case 110:return 10;case 102:return 12;case 114:return 13;case 116:return 9;case 118:return 11;default:return s}}function yr(s){let e=parseInt(s);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+s);return e}var Er=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function xt(s,e){if(e!=null&&!(Array.isArray(e)&&e.length==2))throw new Error(`Expected '${s}' to be an array, [start, end].`);if(e!=null){let t=e[0],r=e[1];Er.forEach(n=>{if(n.test(t)||n.test(r))throw new Error(`['${t}', '${r}'] contains unusable interpolation symbol.`)})}}var Te=class s{static fromArray(e){return e?(xt("interpolation",e),new s(e[0],e[1])):F}constructor(e,t){this.start=e,this.end=t}},F=new Te("{{","}}");var _e=class{constructor(e,t,r){this.strings=e,this.expressions=t,this.offsets=r}},Me=class{constructor(e,t,r){this.templateBindings=e,this.warnings=t,this.errors=r}},ve=class{constructor(e){this._lexer=e,this.errors=[]}parseAction(e,t,r,n,i=F){this._checkNoInterpolation(e,r,i);let a=this._stripComments(e),h=this._lexer.tokenize(a),v=1;t&&(v|=2);let f=new U(e,r,n,h,v,this.errors,0).parseChain();return new R(f,e,r,n,this.errors)}parseBinding(e,t,r,n=F){let i=this._parseBindingAst(e,t,r,n);return new R(i,e,t,r,this.errors)}checkSimpleExpression(e){let t=new Fe;return e.visit(t),t.errors}parseSimpleBinding(e,t,r,n=F){let i=this._parseBindingAst(e,t,r,n),a=this.checkSimpleExpression(i);return a.length>0&&this._reportError(`Host binding expression cannot contain ${a.join(" ")}`,e,t),new R(i,e,t,r,this.errors)}_reportError(e,t,r,n){this.errors.push(new G(e,t,r,n))}_parseBindingAst(e,t,r,n){this._checkNoInterpolation(e,t,n);let i=this._stripComments(e),a=this._lexer.tokenize(i);return new U(e,t,r,a,0,this.errors,0).parseChain()}parseTemplateBindings(e,t,r,n,i){let a=this._lexer.tokenize(t);return new U(t,r,i,a,0,this.errors,0).parseTemplateBindings({source:e,span:new I(n,n+e.length)})}parseInterpolation(e,t,r,n,i=F){let{strings:a,expressions:h,offsets:v}=this.splitInterpolation(e,t,n,i);if(h.length===0)return null;let f=[];for(let w=0;ww.text),f,e,t,r)}parseInterpolationExpression(e,t,r){let n=this._stripComments(e),i=this._lexer.tokenize(n),a=new U(e,t,r,i,0,this.errors,0).parseChain(),h=["",""];return this.createInterpolationAst(h,[a],e,t,r)}createInterpolationAst(e,t,r,n,i){let a=new P(0,r.length),h=new we(a,a.toAbsolute(i),e,t);return new R(h,r,n,i,this.errors)}splitInterpolation(e,t,r,n=F){let i=[],a=[],h=[],v=r?Ar(r):null,f=0,w=!1,k=!1,{start:C,end:y}=n;for(;f-1)break;i>-1&&a>-1&&this._reportError(`Got interpolation (${r}${n}) where expression was expected`,e,`at column ${i} in`,t)}_getInterpolationEndIndex(e,t,r){for(let n of this._forEachUnquotedChar(e,r)){if(e.startsWith(t,n))return n;if(e.startsWith("//",n))return e.indexOf(t,n)}return-1}*_forEachUnquotedChar(e,t){let r=null,n=0;for(let i=t;i=this.tokens.length}get inputIndex(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}get currentEndIndex(){return this.index>0?this.peek(-1).end+this.offset:this.tokens.length===0?this.input.length+this.offset:this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(e,t){let r=this.currentEndIndex;if(t!==void 0&&t>this.currentEndIndex&&(r=t),e>r){let n=r;r=e,e=n}return new P(e,r)}sourceSpan(e,t){let r=`${e}@${this.inputIndex}:${t}`;return this.sourceSpanCache.has(r)||this.sourceSpanCache.set(r,this.span(e,t).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(r)}advance(){this.index++}withContext(e,t){this.context|=e;let r=t();return this.context^=e,r}consumeOptionalCharacter(e){return this.next.isCharacter(e)?(this.advance(),!0):!1}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(e){this.consumeOptionalCharacter(e)||this.error(`Missing expected ${String.fromCharCode(e)}`)}consumeOptionalOperator(e){return this.next.isOperator(e)?(this.advance(),!0):!1}expectOperator(e){this.consumeOptionalOperator(e)||this.error(`Missing expected operator ${e}`)}prettyPrintToken(e){return e===Ce?"end of input":`token ${e}`}expectIdentifierOrKeyword(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier or keyword"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier or keyword`),null):(this.advance(),e.toString())}expectIdentifierOrKeywordOrString(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()&&!e.isString()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier, keyword or string"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier, keyword, or string`),""):(this.advance(),e.toString())}parseChain(){let e=[],t=this.inputIndex;for(;this.index":case"<=":case">=":this.advance();let n=this.parseAdditive();t=new $(this.span(e),this.sourceSpan(e),r,t,n);continue}break}return t}parseAdditive(){let e=this.inputIndex,t=this.parseMultiplicative();for(;this.next.type==d.Operator;){let r=this.next.strValue;switch(r){case"+":case"-":this.advance();let n=this.parseMultiplicative();t=new $(this.span(e),this.sourceSpan(e),r,t,n);continue}break}return t}parseMultiplicative(){let e=this.inputIndex,t=this.parsePrefix();for(;this.next.type==d.Operator;){let r=this.next.strValue;switch(r){case"*":case"%":case"/":this.advance();let n=this.parsePrefix();t=new $(this.span(e),this.sourceSpan(e),r,t,n);continue}break}return t}parsePrefix(){if(this.next.type==d.Operator){let e=this.inputIndex,t=this.next.strValue,r;switch(t){case"+":return this.advance(),r=this.parsePrefix(),K.createPlus(this.span(e),this.sourceSpan(e),r);case"-":return this.advance(),r=this.parsePrefix(),K.createMinus(this.span(e),this.sourceSpan(e),r);case"!":return this.advance(),r=this.parsePrefix(),new Y(this.span(e),this.sourceSpan(e),r)}}return this.parseCallChain()}parseCallChain(){let e=this.inputIndex,t=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(46))t=this.parseAccessMember(t,e,!1);else if(this.consumeOptionalOperator("?."))this.consumeOptionalCharacter(40)?t=this.parseCall(t,e,!0):t=this.consumeOptionalCharacter(91)?this.parseKeyedReadOrWrite(t,e,!0):this.parseAccessMember(t,e,!0);else if(this.consumeOptionalCharacter(91))t=this.parseKeyedReadOrWrite(t,e,!1);else if(this.consumeOptionalCharacter(40))t=this.parseCall(t,e,!1);else if(this.consumeOptionalOperator("!"))t=new ee(this.span(e),this.sourceSpan(e),t);else return t}parsePrimary(){let e=this.inputIndex;if(this.consumeOptionalCharacter(40)){this.rparensExpected++;let t=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),t}else{if(this.next.isKeywordNull())return this.advance(),new A(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new A(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new A(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new A(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new Se(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(91)){this.rbracketsExpected++;let t=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new Z(this.span(e),this.sourceSpan(e),t)}else{if(this.next.isCharacter(123))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new L(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){let t=this.next.toNumber();return this.advance(),new A(this.span(e),this.sourceSpan(e),t)}else if(this.next.isString()){let t=this.next.toString();return this.advance(),new A(this.span(e),this.sourceSpan(e),t)}else return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new E(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new E(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new E(this.span(e),this.sourceSpan(e)))}}}parseExpressionList(e){let t=[];do if(!this.next.isCharacter(e))t.push(this.parsePipe());else break;while(this.consumeOptionalCharacter(44));return t}parseLiteralMap(){let e=[],t=[],r=this.inputIndex;if(this.expectCharacter(123),!this.consumeOptionalCharacter(125)){this.rbracesExpected++;do{let n=this.inputIndex,i=this.next.isString(),a=this.expectIdentifierOrKeywordOrString();if(e.push({key:a,quoted:i}),i)this.expectCharacter(58),t.push(this.parsePipe());else if(this.consumeOptionalCharacter(58))t.push(this.parsePipe());else{let h=this.span(n),v=this.sourceSpan(n);t.push(new B(h,v,v,new L(h,v),a))}}while(this.consumeOptionalCharacter(44)&&!this.next.isCharacter(125));this.rbracesExpected--,this.expectCharacter(125)}return new J(this.span(r),this.sourceSpan(r),e,t)}parseAccessMember(e,t,r){let n=this.inputIndex,i=this.withContext(he.Writable,()=>{let v=this.expectIdentifierOrKeyword()??"";return v.length===0&&this.error("Expected identifier for property access",e.span.end),v}),a=this.sourceSpan(n),h;if(r)this.consumeOptionalAssignment()?(this.error("The '?.' operator cannot be used in the assignment"),h=new E(this.span(t),this.sourceSpan(t))):h=new H(this.span(t),this.sourceSpan(t),a,e,i);else if(this.consumeOptionalAssignment()){if(!(this.parseFlags&1))return this.error("Bindings cannot contain assignments"),new E(this.span(t),this.sourceSpan(t));let v=this.parseConditional();h=new Q(this.span(t),this.sourceSpan(t),a,e,i,v)}else h=new B(this.span(t),this.sourceSpan(t),a,e,i);return h}parseCall(e,t,r){let n=this.inputIndex;this.rparensExpected++;let i=this.parseCallArguments(),a=this.span(n,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(41),this.rparensExpected--;let h=this.span(t),v=this.sourceSpan(t);return r?new re(h,v,e,i,a):new te(h,v,e,i,a)}consumeOptionalAssignment(){return this.parseFlags&2&&this.next.isOperator("!")&&this.peek(1).isOperator("=")?(this.advance(),this.advance(),!0):this.consumeOptionalOperator("=")}parseCallArguments(){if(this.next.isCharacter(41))return[];let e=[];do e.push(this.parsePipe());while(this.consumeOptionalCharacter(44));return e}expectTemplateBindingKey(){let e="",t=!1,r=this.currentAbsoluteOffset;do e+=this.expectIdentifierOrKeywordOrString(),t=this.consumeOptionalOperator("-"),t&&(e+="-");while(t);return{source:e,span:new I(r,r+e.length)}}parseTemplateBindings(e){let t=[];for(t.push(...this.parseDirectiveKeywordBindings(e));this.index{this.rbracketsExpected++;let n=this.parsePipe();if(n instanceof E&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(93),this.consumeOptionalOperator("="))if(r)this.error("The '?.' operator cannot be used in the assignment");else{let i=this.parseConditional();return new q(this.span(t),this.sourceSpan(t),e,n,i)}else return r?new z(this.span(t),this.sourceSpan(t),e,n):new j(this.span(t),this.sourceSpan(t),e,n);return new E(this.span(t),this.sourceSpan(t))})}parseDirectiveKeywordBindings(e){let t=[];this.consumeOptionalCharacter(58);let r=this.getDirectiveBoundTarget(),n=this.currentAbsoluteOffset,i=this.parseAsBinding(e);i||(this.consumeStatementTerminator(),n=this.currentAbsoluteOffset);let a=new I(e.span.start,n);return t.push(new se(a,e,r)),i&&t.push(i),t}getDirectiveBoundTarget(){if(this.next===Ce||this.peekKeywordAs()||this.peekKeywordLet())return null;let e=this.parsePipe(),{start:t,end:r}=e.span,n=this.input.substring(t,r);return new R(e,n,this.location,this.absoluteOffset+t,this.errors)}parseAsBinding(e){if(!this.peekKeywordAs())return null;this.advance();let t=this.expectTemplateBindingKey();this.consumeStatementTerminator();let r=new I(e.span.start,this.currentAbsoluteOffset);return new T(r,t,e)}parseLetBinding(){if(!this.peekKeywordLet())return null;let e=this.currentAbsoluteOffset;this.advance();let t=this.expectTemplateBindingKey(),r=null;this.consumeOptionalOperator("=")&&(r=this.expectTemplateBindingKey()),this.consumeStatementTerminator();let n=new I(e,this.currentAbsoluteOffset);return new T(n,t,r)}consumeStatementTerminator(){this.consumeOptionalCharacter(59)||this.consumeOptionalCharacter(44)}error(e,t=null){this.errors.push(new G(e,this.input,this.locationText(t),this.location)),this.skip()}locationText(e=null){return e==null&&(e=this.index),eh+v.length,0);r+=a,t+=a}e.set(r,t),n++}return e}var dt="angular-estree-parser",Ge="NgEstreeParser",Ue=0,De=[dt,Ue];function vt(){return new ve(new xe)}function Ve(s,e){let t=vt(),{astInput:r,comments:n}=Cr(s,t),{ast:i,errors:a}=e(r,t);return yt(a),{ast:i,comments:n}}function gt(s){return Ve(s,(e,t)=>t.parseBinding(e,...De))}function mt(s){return Ve(s,(e,t)=>t.parseAction(e,!1,...De))}function St(s){return Ve(s,(e,t)=>{let r=t.parseInterpolationExpression(e,...De);return r.ast=r.ast.expressions[0],r})}function wt(s){let e=vt(),{templateBindings:t,errors:r}=e.parseTemplateBindings(Ge,s,dt,Ue,Ue);return yt(r),t}function yt(s){if(s.length!==0){let[{message:e}]=s;throw new SyntaxError(e.replace(/^Parser Error: | at column \d+ in [^]*$/g,""))}}function Cr(s,e){let t=e._commentStart(s);return t===null?{astInput:s,comments:[]}:{astInput:s.slice(0,t),comments:[{type:"Comment",value:s.slice(t+2),sourceSpan:{start:t,end:s.length}}]}}function Et(s){return s instanceof K?"Unary":s instanceof $?"Binary":s instanceof X?"BindingPipe":s instanceof te?"Call":s instanceof V?"Chain":s instanceof W?"Conditional":s instanceof E?"EmptyExpr":s instanceof L?"ImplicitReceiver":s instanceof j?"KeyedRead":s instanceof z?"SafeKeyedRead":s instanceof q?"KeyedWrite":s instanceof Z?"LiteralArray":s instanceof J?"LiteralMap":s instanceof A?"LiteralPrimitive":s instanceof ee?"NonNullAssert":s instanceof Y?"PrefixNot":s instanceof B?"PropertyRead":s instanceof Q?"PropertyWrite":s instanceof re?"SafeCall":s instanceof H?"SafePropertyRead":s.type}function ft({start:s,end:e},t){let r=s,n=e;for(;n!==r&&/\s/.test(t[n-1]);)n--;for(;r!==n&&/\s/.test(t[r]);)r++;return{start:r,end:n}}function Or({start:s,end:e},t){let r=s,n=e;for(;n!==t.length&&/\s/.test(t[n]);)n++;for(;r!==0&&/\s/.test(t[r-1]);)r--;return{start:r,end:n}}function Nr(s,e){return e[s.start-1]==="("&&e[s.end]===")"?{start:s.start-1,end:s.end+1}:s}function At(s,e,t){let r=0,n={start:s.start,end:s.end};for(;;){let i=Or(n,e),a=Nr(i,e);if(i.start===a.start&&i.end===a.end)break;n.start=a.start,n.end=a.end,r++}return{hasParens:(t?r-1:r)!==0,outerSpan:ft(t?{start:n.start+1,end:n.end-1}:n,e),innerSpan:ft(s,e)}}function $t(s,e,t){let r=e;for(;!s.test(t[r]);)if(--r<0)throw new Error(`Cannot find front char ${s} from index ${e} in ${JSON.stringify(t)}`);return r}function Oe(s,e,t){let r=e;for(;!s.test(t[r]);)if(++r>=t.length)throw new Error(`Cannot find back char ${s} from index ${e} in ${JSON.stringify(t)}`);return r}function Ct(s){return s.slice(0,1).toLowerCase()+s.slice(1)}function Ot(s){return s.length===0?void 0:s[s.length-1]}var pe=(s,e,t=!1)=>{let r=Et(s);switch(r){case"Unary":{let{operator:c,expr:o}=s,x=n(o);return a("UnaryExpression",{prefix:!0,argument:x,operator:c},s.sourceSpan,{hasParentParens:t})}case"Binary":{let{left:c,operation:o,right:x}=s,p=n(c),u=n(x);return a(o==="&&"||o==="||"||o==="??"?"LogicalExpression":"BinaryExpression",{left:p,right:u,operator:o},{start:y(p),end:m(u)},{hasParentParens:t})}case"BindingPipe":{let{exp:c,name:o,args:x}=s,p=n(c),u=f(/\S/,f(/\|/,m(p))+1),g=a("Identifier",{name:o},{start:u,end:u+o.length}),l=x.map(n);return a("NGPipeExpression",{left:p,right:g,arguments:l},{start:y(p),end:m(l.length===0?g:Ot(l))},{hasParentParens:t})}case"Chain":{let{expressions:c}=s;return a("NGChainedExpression",{expressions:c.map(n)},s.sourceSpan,{hasParentParens:t})}case"Comment":{let{value:c}=s;return a("CommentLine",{value:c},s.sourceSpan,{processSpan:!1})}case"Conditional":{let{condition:c,trueExp:o,falseExp:x}=s,p=n(c),u=n(o),g=n(x);return a("ConditionalExpression",{test:p,consequent:u,alternate:g},{start:y(p),end:m(g)},{hasParentParens:t})}case"EmptyExpr":return a("NGEmptyExpression",{},s.sourceSpan,{hasParentParens:t});case"ImplicitReceiver":return a("ThisExpression",{},s.sourceSpan,{hasParentParens:t});case"KeyedRead":case"SafeKeyedRead":{let c=r==="SafeKeyedRead",{key:o}=s,x=Object.prototype.hasOwnProperty.call(s,"receiver")?s.receiver:s.obj,p=n(o);return h(x,p,{computed:!0,optional:c},{end:s.sourceSpan.end,hasParentParens:t})}case"LiteralArray":{let{expressions:c}=s;return a("ArrayExpression",{elements:c.map(n)},s.sourceSpan,{hasParentParens:t})}case"LiteralMap":{let{keys:c,values:o}=s,x=o.map(u=>n(u)),p=c.map(({key:u,quoted:g},l)=>{let O=x[l],ue=y(O),qe=m(O),Ie=f(/\S/,l===0?s.sourceSpan.start+1:f(/,/,m(x[l-1]))+1),bt=ue===Ie?qe:v(/\S/,v(/:/,ue-1)-1)+1,Xe={start:Ie,end:bt},ge=g?a("StringLiteral",{value:u},Xe):a("Identifier",{name:u},Xe),Bt=ge.end=c.sourceSpan.end||/^\s+$/.test(e.text.slice(c.sourceSpan.start,c.sourceSpan.end))}function k(c){return(c.type==="OptionalCallExpression"||c.type==="OptionalMemberExpression")&&!C(c)}function C(c){return c.extra&&c.extra.parenthesized}function y(c){return C(c)?c.extra.parenStart:c.start}function m(c){return C(c)?c.extra.parenEnd:c.end}};function Ne(s,e,t=!1,r=!1){if(!t){let{start:h,end:v}=s;return{start:h,end:v,loc:{start:e.locator.locationForIndex(h),end:e.locator.locationForIndex(v)}}}let{outerSpan:n,innerSpan:i,hasParens:a}=At(s,e.text,r);return{start:i.start,end:i.end,loc:{start:e.locator.locationForIndex(i.start),end:e.locator.locationForIndex(i.end)},...a&&{extra:{parenthesized:!0,parenStart:n.start,parenEnd:n.end}}}}function Nt(s,e){s.forEach(y);let[t]=s,{key:r}=t,n=e.text.slice(t.sourceSpan.start,t.sourceSpan.end).trim().length===0?s.slice(1):s,i=[],a=null;for(let o=0;o({...O,...Ne({start:O.start,end:ue},e)}),g=O=>({...u(O,p.end),alias:p}),l=i.pop();if(l.type==="NGMicrosyntaxExpression")i.push(g(l));else if(l.type==="NGMicrosyntaxKeyedExpression"){let O=g(l.expression);i.push(u({...l,expression:O},O.end))}else throw new Error(`Unexpected type ${l.type}`)}else i.push(h(x,o));a=x}return f("NGMicrosyntax",{body:i},i.length===0?s[0].sourceSpan:{start:i[0].start,end:i[i.length-1].end});function h(o,x){if(k(o)){let{key:p,value:u}=o;return u?x===0?f("NGMicrosyntaxExpression",{expression:v(u.ast),alias:null},u.sourceSpan):f("NGMicrosyntaxKeyedExpression",{key:f("NGMicrosyntaxKey",{name:w(p.source)},p.span),expression:f("NGMicrosyntaxExpression",{expression:v(u.ast),alias:null},u.sourceSpan)},{start:p.span.start,end:u.sourceSpan.end}):f("NGMicrosyntaxKey",{name:w(p.source)},p.span)}else{let{key:p,sourceSpan:u}=o;if(/^let\s$/.test(e.text.slice(u.start,u.start+4))){let{value:l}=o;return f("NGMicrosyntaxLet",{key:f("NGMicrosyntaxKey",{name:p.source},p.span),value:l?f("NGMicrosyntaxKey",{name:l.source},l.span):null},{start:u.start,end:l?l.span.end:p.span.end})}else{let l=c(o);return f("NGMicrosyntaxAs",{key:f("NGMicrosyntaxKey",{name:l.source},l.span),alias:f("NGMicrosyntaxKey",{name:p.source},p.span)},{start:l.span.start,end:p.span.end})}}}function v(o){return pe(o,e)}function f(o,x,p,u=!0){return{type:o,...Ne(p,e,u),...x}}function w(o){return Ct(o.slice(r.source.length))}function k(o){return o instanceof se}function C(o){return o instanceof T}function y(o){m(o.key.span),C(o)&&o.value&&m(o.value.span)}function m(o){if(e.text[o.start]!=='"'&&e.text[o.start]!=="'")return;let x=e.text[o.start],p=!1;for(let u=o.start+1;upe(h,n),a=i(t);return a.comments=r.map(h=>i(h)),a}function kt(s){return We(s,gt)}function It(s){return We(s,St)}function Qe(s){return We(s,mt)}function Rt(s){return Nt(wt(s),new le(s))}function kr(s){return Array.isArray(s)&&s.length>0}var Pt=kr;function He(s){var r;let e=s.range?s.range[0]:s.start,t=((r=s.declaration)==null?void 0:r.decorators)??s.decorators;return Pt(t)?Math.min(He(t[0]),e):e}function Lt(s){return s.range?s.range[1]:s.end}function ke(s){return{astFormat:"estree",parse(e){let t=s(e);return{type:"NGRoot",node:s===Qe&&t.type!=="NGChainedExpression"?{...t,type:"NGChainedExpression",expressions:[t]}:t}},locStart:He,locEnd:Lt}}var Ir=ke(Qe),Rr=ke(kt),Pr=ke(It),Lr=ke(Rt);var fs=ze;export{fs as default,je as parsers}; diff --git a/node_modules/prettier/plugins/babel.js b/node_modules/prettier/plugins/babel.js index faefe7f..859f2a4 100644 --- a/node_modules/prettier/plugins/babel.js +++ b/node_modules/prettier/plugins/babel.js @@ -1,16 +1,16 @@ -(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.babel=e()}})(function(){"use strict";var Ri=Object.create;var Ue=Object.defineProperty;var Ui=Object.getOwnPropertyDescriptor;var ji=Object.getOwnPropertyNames;var $i=Object.getPrototypeOf,Vi=Object.prototype.hasOwnProperty;var cs=(a,t)=>()=>(t||a((t={exports:{}}).exports,t),t.exports),zi=(a,t)=>{for(var e in t)Ue(a,e,{get:t[e],enumerable:!0})},ps=(a,t,e,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ji(t))!Vi.call(a,i)&&i!==e&&Ue(a,i,{get:()=>t[i],enumerable:!(s=Ui(t,i))||s.enumerable});return a};var pt=(a,t,e)=>(e=a!=null?Ri($i(a)):{},ps(t||!a||!a.__esModule?Ue(e,"default",{value:a,enumerable:!0}):e,a)),Ki=a=>ps(Ue({},"__esModule",{value:!0}),a);var rs=cs(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});function We(a,t){if(a==null)return{};var e={},s=Object.keys(a),i,r;for(r=0;r=0)&&(e[i]=a[i]);return e}var B=class{constructor(t,e,s){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=e,this.index=s}},fe=class{constructor(t,e){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=e}};function L(a,t){let{line:e,column:s,index:i}=a;return new B(e,s+t,i+t)}var Pt={SyntaxError:"BABEL_PARSER_SYNTAX_ERROR",SourceTypeModuleError:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"},qi=(a,t=a.length-1)=>({get(){return a.reduce((e,s)=>e[s],this)},set(e){a.reduce((s,i,r)=>r===t?s[i]=e:s[i],this)}}),Hi=(a,t,e)=>Object.keys(e).map(s=>[s,e[s]]).filter(([,s])=>!!s).map(([s,i])=>[s,typeof i=="function"?{value:i,enumerable:!1}:typeof i.reflect=="string"?Object.assign({},i,qi(i.reflect.split("."))):i]).reduce((s,[i,r])=>Object.defineProperty(s,i,Object.assign({configurable:!0},r)),Object.assign(new a,t)),Wi={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:Pt.SourceTypeModuleError},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:Pt.SourceTypeModuleError}},us={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},Tt=({type:a,prefix:t})=>a==="UpdateExpression"?us.UpdateExpression[String(t)]:us[a],Ji={AccessorIsGenerator:({kind:a})=>`A ${a}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:a})=>`Missing initializer in ${a} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:a})=>`\`${a}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:a,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`. +(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.babel=e()}})(function(){"use strict";var Ys=Object.create;var Ee=Object.defineProperty;var Qs=Object.getOwnPropertyDescriptor;var Zs=Object.getOwnPropertyNames;var ei=Object.getPrototypeOf,ti=Object.prototype.hasOwnProperty;var Ft=(a,t)=>()=>(t||a((t={exports:{}}).exports,t),t.exports),si=(a,t)=>{for(var e in t)Ee(a,e,{get:t[e],enumerable:!0})},Bt=(a,t,e,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Zs(t))!ti.call(a,i)&&i!==e&&Ee(a,i,{get:()=>t[i],enumerable:!(s=Qs(t,i))||s.enumerable});return a};var qe=(a,t,e)=>(e=a!=null?Ys(ei(a)):{},Bt(t||!a||!a.__esModule?Ee(e,"default",{value:a,enumerable:!0}):e,a)),ii=a=>Bt(Ee({},"__esModule",{value:!0}),a);var kt=Ft(_e=>{"use strict";function De(a,t){if(a==null)return{};var e={},s=Object.keys(a),i,r;for(r=0;r=0)&&(e[i]=a[i]);return e}var F=class{constructor(t,e,s){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=e,this.index=s}},ie=class{constructor(t,e){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=e}};function L(a,t){let{line:e,column:s,index:i}=a;return new F(e,s+t,i+t)}var Ye={SyntaxError:"BABEL_PARSER_SYNTAX_ERROR",SourceTypeModuleError:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"},ri=(a,t=a.length-1)=>({get(){return a.reduce((e,s)=>e[s],this)},set(e){a.reduce((s,i,r)=>r===t?s[i]=e:s[i],this)}}),ai=(a,t,e)=>Object.keys(e).map(s=>[s,e[s]]).filter(([,s])=>!!s).map(([s,i])=>[s,typeof i=="function"?{value:i,enumerable:!1}:typeof i.reflect=="string"?Object.assign({},i,ri(i.reflect.split("."))):i]).reduce((s,[i,r])=>Object.defineProperty(s,i,Object.assign({configurable:!0},r)),Object.assign(new a,t)),ni={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:Ye.SourceTypeModuleError},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:Ye.SourceTypeModuleError}},Rt={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},Qe=({type:a,prefix:t})=>a==="UpdateExpression"?Rt.UpdateExpression[String(t)]:Rt[a],oi={AccessorIsGenerator:({kind:a})=>`A ${a}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:a})=>`Missing initializer in ${a} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:a})=>`\`${a}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:a,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`. - Did you mean \`export { '${a}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:a})=>`'${a==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:a})=>`Unsyntactic ${a==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:({importName:a})=>`A string literal cannot be used as an imported binding. -- Did you mean \`import { "${a}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:a})=>`\`import()\` requires exactly ${a===1?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:a})=>`Expected number in radix ${a}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:a})=>`Escape sequence in keyword ${a}.`,InvalidIdentifier:({identifierName:a})=>`Invalid identifier ${a}.`,InvalidLhs:({ancestor:a})=>`Invalid left-hand side in ${Tt(a)}.`,InvalidLhsBinding:({ancestor:a})=>`Binding invalid left-hand side in ${Tt(a)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:a})=>`Unexpected character '${a}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:a})=>`Private name #${a} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:a})=>`Label '${a}' is already declared.`,LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:a})=>`This experimental syntax requires enabling the parser plugin: ${a.map(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:a})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${a.map(t=>JSON.stringify(t)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:a})=>`Duplicate key "${a}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:a})=>`An export name cannot include a lone surrogate, found '\\u${a.toString(16)}'.`,ModuleExportUndefined:({localName:a})=>`Export '${a}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:a})=>`Private names are only allowed in property accesses (\`obj.#${a}\`) or in \`in\` expressions (\`#${a} in obj\`).`,PrivateNameRedeclaration:({identifierName:a})=>`Duplicate private name #${a}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:a})=>`Unexpected keyword '${a}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:a})=>`Unexpected reserved word '${a}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:a,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${a?`, expected "${a}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:a,onlyValidPropertyName:t})=>`The only valid meta property for ${a} is ${a}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:a})=>`Identifier '${a}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},Xi={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:a})=>`Assigning to '${a}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:a})=>`Binding '${a}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},Gi=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),Yi={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:a})=>`Invalid topic token ${a}. In order to use ${a} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${a}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:a})=>`Hack-style pipe body cannot be an unparenthesized ${Tt({type:a})}; please wrap it in parentheses.`,PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},Qi=["toMessage"],Zi=["message"];function er(a){let{toMessage:t}=a,e=We(a,Qi);return function s({loc:i,details:r}){return Hi(SyntaxError,Object.assign({},e,{loc:i}),{clone(n={}){let o=n.loc||{};return s({loc:new B("line"in o?o.line:this.loc.line,"column"in o?o.column:this.loc.column,"index"in o?o.index:this.loc.index),details:Object.assign({},this.details,n.details)})},details:{value:r,enumerable:!1},message:{get(){return`${t(this.details)} (${this.loc.line}:${this.loc.column})`},set(n){Object.defineProperty(this,"message",{value:n})}},pos:{reflect:"loc.index",enumerable:!0},missingPlugin:"missingPlugin"in r&&{reflect:"details.missingPlugin",enumerable:!0}})}}function V(a,t){if(Array.isArray(a))return s=>V(s,a[0]);let e={};for(let s of Object.keys(a)){let i=a[s],r=typeof i=="string"?{message:()=>i}:typeof i=="function"?{message:i}:i,{message:n}=r,o=We(r,Zi),h=typeof n=="string"?()=>n:n;e[s]=er(Object.assign({code:Pt.SyntaxError,reasonCode:s,toMessage:h},t?{syntaxPlugin:t}:{},o))}return e}var p=Object.assign({},V(Wi),V(Ji),V(Xi),V`pipelineOperator`(Yi)),{defineProperty:tr}=Object,fs=(a,t)=>tr(a,t,{enumerable:!1,value:a[t]});function Ae(a){return a.loc.start&&fs(a.loc.start,"index"),a.loc.end&&fs(a.loc.end,"index"),a}var sr=a=>class extends a{parse(){let e=Ae(super.parse());return this.options.tokens&&(e.tokens=e.tokens.map(Ae)),e}parseRegExpLiteral({pattern:e,flags:s}){let i=null;try{i=new RegExp(e,s)}catch{}let r=this.estreeParseLiteral(i);return r.regex={pattern:e,flags:s},r}parseBigIntLiteral(e){let s;try{s=BigInt(e)}catch{s=null}let i=this.estreeParseLiteral(s);return i.bigint=String(i.value||e),i}parseDecimalLiteral(e){let i=this.estreeParseLiteral(null);return i.decimal=String(i.value||e),i}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}directiveToStmt(e){let s=e.value;delete e.value,s.type="Literal",s.raw=s.extra.raw,s.value=s.extra.expressionValue;let i=e;return i.type="ExpressionStatement",i.expression=s,i.directive=s.extra.rawValue,delete s.extra,i}initFunction(e,s){super.initFunction(e,s),e.expression=!1}checkDeclaration(e){e!=null&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var s;return e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&!((s=e.expression.extra)!=null&&s.parenthesized)}parseBlockBody(e,s,i,r,n){super.parseBlockBody(e,s,i,r,n);let o=e.directives.map(h=>this.directiveToStmt(h));e.body=o.concat(e.body),delete e.directives}pushClassMethod(e,s,i,r,n,o){this.parseMethod(s,i,r,n,o,"ClassMethod",!0),s.typeParameters&&(s.value.typeParameters=s.typeParameters,delete s.typeParameters),e.body.push(s)}parsePrivateName(){let e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){let s=super.getPrivateNameSV(e);return e=e,delete e.id,e.name=s,e.type="PrivateIdentifier",e}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?e.type==="PrivateIdentifier":super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,s){let i=super.parseLiteral(e,s);return i.raw=i.extra.raw,delete i.extra,i}parseFunctionBody(e,s,i=!1){super.parseFunctionBody(e,s,i),e.expression=e.body.type!=="BlockStatement"}parseMethod(e,s,i,r,n,o,h=!1){let l=this.startNode();return l.kind=e.kind,l=super.parseMethod(l,s,i,r,n,o,h),l.type="FunctionExpression",delete l.kind,e.value=l,o==="ClassPrivateMethod"&&(e.computed=!1),this.finishNode(e,"MethodDefinition")}parseClassProperty(...e){let s=super.parseClassProperty(...e);return this.getPluginOption("estree","classFeatures")&&(s.type="PropertyDefinition"),s}parseClassPrivateProperty(...e){let s=super.parseClassPrivateProperty(...e);return this.getPluginOption("estree","classFeatures")&&(s.type="PropertyDefinition",s.computed=!1),s}parseObjectMethod(e,s,i,r,n){let o=super.parseObjectMethod(e,s,i,r,n);return o&&(o.type="Property",o.kind==="method"&&(o.kind="init"),o.shorthand=!1),o}parseObjectProperty(e,s,i,r){let n=super.parseObjectProperty(e,s,i,r);return n&&(n.kind="init",n.type="Property"),n}isValidLVal(e,s,i){return e==="Property"?"value":super.isValidLVal(e,s,i)}isAssignable(e,s){return e!=null&&this.isObjectProperty(e)?this.isAssignable(e.value,s):super.isAssignable(e,s)}toAssignable(e,s=!1){if(e!=null&&this.isObjectProperty(e)){let{key:i,value:r}=e;this.isPrivateName(i)&&this.classScope.usePrivateName(this.getPrivateNameSV(i),i.loc.start),this.toAssignable(r,s)}else super.toAssignable(e,s)}toAssignableObjectExpressionProp(e,s,i){e.kind==="get"||e.kind==="set"?this.raise(p.PatternHasAccessor,{at:e.key}):e.method?this.raise(p.PatternHasMethod,{at:e.key}):super.toAssignableObjectExpressionProp(e,s,i)}finishCallExpression(e,s){let i=super.finishCallExpression(e,s);if(i.callee.type==="Import"){if(i.type="ImportExpression",i.source=i.arguments[0],this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")){var r;i.attributes=(r=i.arguments[1])!=null?r:null}delete i.arguments,delete i.callee}return i}toReferencedArguments(e){e.type!=="ImportExpression"&&super.toReferencedArguments(e)}parseExport(e,s){let i=this.state.lastTokStartLoc,r=super.parseExport(e,s);switch(r.type){case"ExportAllDeclaration":r.exported=null;break;case"ExportNamedDeclaration":r.specifiers.length===1&&r.specifiers[0].type==="ExportNamespaceSpecifier"&&(r.type="ExportAllDeclaration",r.exported=r.specifiers[0].exported,delete r.specifiers);case"ExportDefaultDeclaration":{var n;let{declaration:o}=r;(o==null?void 0:o.type)==="ClassDeclaration"&&((n=o.decorators)==null?void 0:n.length)>0&&o.start===r.start&&this.resetStartLocation(r,i)}break}return r}parseSubscript(e,s,i,r){let n=super.parseSubscript(e,s,i,r);if(r.optionalChainMember){if((n.type==="OptionalMemberExpression"||n.type==="OptionalCallExpression")&&(n.type=n.type.substring(8)),r.stop){let o=this.startNodeAtNode(n);return o.expression=n,this.finishNode(o,"ChainExpression")}}else(n.type==="MemberExpression"||n.type==="CallExpression")&&(n.optional=!1);return n}hasPropertyAsPrivateName(e){return e.type==="ChainExpression"&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return e.type==="Property"&&e.kind==="init"&&!e.method}isObjectMethod(e){return e.method||e.kind==="get"||e.kind==="set"}finishNodeAt(e,s,i){return Ae(super.finishNodeAt(e,s,i))}resetStartLocation(e,s){super.resetStartLocation(e,s),Ae(e)}resetEndLocation(e,s=this.state.lastTokEndLoc){super.resetEndLocation(e,s),Ae(e)}},Z=class{constructor(t,e){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!e}},E={brace:new Z("{"),j_oTag:new Z("...",!0)};E.template=new Z("`",!0);var g=!0,m=!0,ut=!0,Se=!0,q=!0,ir=!0,Je=class{constructor(t,e={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.rightAssociative=!!e.rightAssociative,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop!=null?e.binop:null,this.updateContext=null}},zt=new Map;function A(a,t={}){t.keyword=a;let e=P(a,t);return zt.set(a,e),e}function v(a,t){return P(a,{beforeExpr:g,binop:t})}var Ie=-1,j=[],Kt=[],qt=[],Ht=[],Wt=[],Jt=[];function P(a,t={}){var e,s,i,r;return++Ie,Kt.push(a),qt.push((e=t.binop)!=null?e:-1),Ht.push((s=t.beforeExpr)!=null?s:!1),Wt.push((i=t.startsExpr)!=null?i:!1),Jt.push((r=t.prefix)!=null?r:!1),j.push(new Je(a,t)),Ie}function b(a,t={}){var e,s,i,r;return++Ie,zt.set(a,Ie),Kt.push(a),qt.push((e=t.binop)!=null?e:-1),Ht.push((s=t.beforeExpr)!=null?s:!1),Wt.push((i=t.startsExpr)!=null?i:!1),Jt.push((r=t.prefix)!=null?r:!1),j.push(new Je("name",t)),Ie}var rr={bracketL:P("[",{beforeExpr:g,startsExpr:m}),bracketHashL:P("#[",{beforeExpr:g,startsExpr:m}),bracketBarL:P("[|",{beforeExpr:g,startsExpr:m}),bracketR:P("]"),bracketBarR:P("|]"),braceL:P("{",{beforeExpr:g,startsExpr:m}),braceBarL:P("{|",{beforeExpr:g,startsExpr:m}),braceHashL:P("#{",{beforeExpr:g,startsExpr:m}),braceR:P("}"),braceBarR:P("|}"),parenL:P("(",{beforeExpr:g,startsExpr:m}),parenR:P(")"),comma:P(",",{beforeExpr:g}),semi:P(";",{beforeExpr:g}),colon:P(":",{beforeExpr:g}),doubleColon:P("::",{beforeExpr:g}),dot:P("."),question:P("?",{beforeExpr:g}),questionDot:P("?."),arrow:P("=>",{beforeExpr:g}),template:P("template"),ellipsis:P("...",{beforeExpr:g}),backQuote:P("`",{startsExpr:m}),dollarBraceL:P("${",{beforeExpr:g,startsExpr:m}),templateTail:P("...`",{startsExpr:m}),templateNonTail:P("...${",{beforeExpr:g,startsExpr:m}),at:P("@"),hash:P("#",{startsExpr:m}),interpreterDirective:P("#!..."),eq:P("=",{beforeExpr:g,isAssign:Se}),assign:P("_=",{beforeExpr:g,isAssign:Se}),slashAssign:P("_=",{beforeExpr:g,isAssign:Se}),xorAssign:P("_=",{beforeExpr:g,isAssign:Se}),moduloAssign:P("_=",{beforeExpr:g,isAssign:Se}),incDec:P("++/--",{prefix:q,postfix:ir,startsExpr:m}),bang:P("!",{beforeExpr:g,prefix:q,startsExpr:m}),tilde:P("~",{beforeExpr:g,prefix:q,startsExpr:m}),doubleCaret:P("^^",{startsExpr:m}),doubleAt:P("@@",{startsExpr:m}),pipeline:v("|>",0),nullishCoalescing:v("??",1),logicalOR:v("||",1),logicalAND:v("&&",2),bitwiseOR:v("|",3),bitwiseXOR:v("^",4),bitwiseAND:v("&",5),equality:v("==/!=/===/!==",6),lt:v("/<=/>=",7),gt:v("/<=/>=",7),relational:v("/<=/>=",7),bitShift:v("<>/>>>",8),bitShiftL:v("<>/>>>",8),bitShiftR:v("<>/>>>",8),plusMin:P("+/-",{beforeExpr:g,binop:9,prefix:q,startsExpr:m}),modulo:P("%",{binop:10,startsExpr:m}),star:P("*",{binop:10}),slash:v("/",10),exponent:P("**",{beforeExpr:g,binop:11,rightAssociative:!0}),_in:A("in",{beforeExpr:g,binop:7}),_instanceof:A("instanceof",{beforeExpr:g,binop:7}),_break:A("break"),_case:A("case",{beforeExpr:g}),_catch:A("catch"),_continue:A("continue"),_debugger:A("debugger"),_default:A("default",{beforeExpr:g}),_else:A("else",{beforeExpr:g}),_finally:A("finally"),_function:A("function",{startsExpr:m}),_if:A("if"),_return:A("return",{beforeExpr:g}),_switch:A("switch"),_throw:A("throw",{beforeExpr:g,prefix:q,startsExpr:m}),_try:A("try"),_var:A("var"),_const:A("const"),_with:A("with"),_new:A("new",{beforeExpr:g,startsExpr:m}),_this:A("this",{startsExpr:m}),_super:A("super",{startsExpr:m}),_class:A("class",{startsExpr:m}),_extends:A("extends",{beforeExpr:g}),_export:A("export"),_import:A("import",{startsExpr:m}),_null:A("null",{startsExpr:m}),_true:A("true",{startsExpr:m}),_false:A("false",{startsExpr:m}),_typeof:A("typeof",{beforeExpr:g,prefix:q,startsExpr:m}),_void:A("void",{beforeExpr:g,prefix:q,startsExpr:m}),_delete:A("delete",{beforeExpr:g,prefix:q,startsExpr:m}),_do:A("do",{isLoop:ut,beforeExpr:g}),_for:A("for",{isLoop:ut}),_while:A("while",{isLoop:ut}),_as:b("as",{startsExpr:m}),_assert:b("assert",{startsExpr:m}),_async:b("async",{startsExpr:m}),_await:b("await",{startsExpr:m}),_from:b("from",{startsExpr:m}),_get:b("get",{startsExpr:m}),_let:b("let",{startsExpr:m}),_meta:b("meta",{startsExpr:m}),_of:b("of",{startsExpr:m}),_sent:b("sent",{startsExpr:m}),_set:b("set",{startsExpr:m}),_static:b("static",{startsExpr:m}),_using:b("using",{startsExpr:m}),_yield:b("yield",{startsExpr:m}),_asserts:b("asserts",{startsExpr:m}),_checks:b("checks",{startsExpr:m}),_exports:b("exports",{startsExpr:m}),_global:b("global",{startsExpr:m}),_implements:b("implements",{startsExpr:m}),_intrinsic:b("intrinsic",{startsExpr:m}),_infer:b("infer",{startsExpr:m}),_is:b("is",{startsExpr:m}),_mixins:b("mixins",{startsExpr:m}),_proto:b("proto",{startsExpr:m}),_require:b("require",{startsExpr:m}),_satisfies:b("satisfies",{startsExpr:m}),_keyof:b("keyof",{startsExpr:m}),_readonly:b("readonly",{startsExpr:m}),_unique:b("unique",{startsExpr:m}),_abstract:b("abstract",{startsExpr:m}),_declare:b("declare",{startsExpr:m}),_enum:b("enum",{startsExpr:m}),_module:b("module",{startsExpr:m}),_namespace:b("namespace",{startsExpr:m}),_interface:b("interface",{startsExpr:m}),_type:b("type",{startsExpr:m}),_opaque:b("opaque",{startsExpr:m}),name:P("name",{startsExpr:m}),string:P("string",{startsExpr:m}),num:P("num",{startsExpr:m}),bigint:P("bigint",{startsExpr:m}),decimal:P("decimal",{startsExpr:m}),regexp:P("regexp",{startsExpr:m}),privateName:P("#name",{startsExpr:m}),eof:P("eof"),jsxName:P("jsxName"),jsxText:P("jsxText",{beforeExpr:!0}),jsxTagStart:P("jsxTagStart",{startsExpr:!0}),jsxTagEnd:P("jsxTagEnd"),placeholder:P("%%",{startsExpr:!0})};function S(a){return a>=93&&a<=130}function ar(a){return a<=92}function M(a){return a>=58&&a<=130}function ks(a){return a>=58&&a<=134}function nr(a){return Ht[a]}function gt(a){return Wt[a]}function or(a){return a>=29&&a<=33}function ds(a){return a>=127&&a<=129}function hr(a){return a>=90&&a<=92}function Xt(a){return a>=58&&a<=92}function lr(a){return a>=39&&a<=59}function cr(a){return a===34}function pr(a){return Jt[a]}function ur(a){return a>=119&&a<=121}function fr(a){return a>=122&&a<=128}function J(a){return Kt[a]}function ze(a){return qt[a]}function dr(a){return a===57}function Xe(a){return a>=24&&a<=25}function U(a){return j[a]}j[8].updateContext=a=>{a.pop()},j[5].updateContext=j[7].updateContext=j[23].updateContext=a=>{a.push(E.brace)},j[22].updateContext=a=>{a[a.length-1]===E.template?a.pop():a.push(E.template)},j[140].updateContext=a=>{a.push(E.j_expr,E.j_oTag)};var Gt="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",vs="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F",mr=new RegExp("["+Gt+"]"),yr=new RegExp("["+Gt+vs+"]");Gt=vs=null;var Ls=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],xr=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function bt(a,t){let e=65536;for(let s=0,i=t.length;sa)return!1;if(e+=t[s+1],e>=a)return!0}return!1}function $(a){return a<65?a===36:a<=90?!0:a<97?a===95:a<=122?!0:a<=65535?a>=170&&mr.test(String.fromCharCode(a)):bt(a,Ls)}function he(a){return a<48?a===36:a<58?!0:a<65?!1:a<=90?!0:a<97?a===95:a<=122?!0:a<=65535?a>=170&&yr.test(String.fromCharCode(a)):bt(a,Ls)||bt(a,xr)}var Yt={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},Pr=new Set(Yt.keyword),Tr=new Set(Yt.strict),gr=new Set(Yt.strictBind);function Ds(a,t){return t&&a==="await"||a==="enum"}function Ms(a,t){return Ds(a,t)||Tr.has(a)}function Os(a){return gr.has(a)}function Bs(a,t){return Ms(a,t)||Os(a)}function br(a){return Pr.has(a)}function Ar(a,t,e){return a===64&&t===64&&$(e)}var Sr=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function Er(a){return Sr.has(a)}var ae=0,ne=1,z=2,Qt=4,Fs=8,Ge=16,_s=32,ee=64,Ye=128,le=256,je=ne|z|Ye|le,F=1,se=2,Rs=4,te=8,Ke=16,Us=64,Qe=128,At=256,St=512,Zt=1024,Et=2048,Ne=4096,it=8192,js=F|se|te|Qe|it,ce=F|0|te|it,Cr=F|0|te|0,Ze=F|0|Rs|0,$s=F|0|Ke|0,wr=0|se|0|Qe,Ir=0|se|0|0,Vs=F|se|te|At|it,ms=0|Zt,W=0|Us,Nr=F|0|0|Us,kr=Vs|St,vr=0|Zt,ys=0|se|0|Ne,Lr=Et,et=4,es=2,ts=1,ft=es|ts,Dr=es|et,Mr=ts|et,Or=es,Br=ts,dt=0,ve=class{constructor(t){this.var=new Set,this.lexical=new Set,this.functions=new Set,this.flags=t}},Le=class{constructor(t,e){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=e}get inTopLevel(){return(this.currentScope().flags&ne)>0}get inFunction(){return(this.currentVarScopeFlags()&z)>0}get allowSuper(){return(this.currentThisScopeFlags()&Ge)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&_s)>0}get inClass(){return(this.currentThisScopeFlags()&ee)>0}get inClassAndNotInNonArrowFunction(){let t=this.currentThisScopeFlags();return(t&ee)>0&&(t&z)===0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(e&Ye)return!0;if(e&(je|ee))return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&z)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new ve(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(t.flags&(z|Ye)||!this.parser.inModule&&t.flags&ne)}declareName(t,e,s){let i=this.currentScope();if(e&te||e&Ke)this.checkRedeclarationInScope(i,t,e,s),e&Ke?i.functions.add(t):i.lexical.add(t),e&te&&this.maybeExportDefined(i,t);else if(e&Rs)for(let r=this.scopeStack.length-1;r>=0&&(i=this.scopeStack[r],this.checkRedeclarationInScope(i,t,e,s),i.var.add(t),this.maybeExportDefined(i,t),!(i.flags&je));--r);this.parser.inModule&&i.flags&ne&&this.undefinedExports.delete(t)}maybeExportDefined(t,e){this.parser.inModule&&t.flags&ne&&this.undefinedExports.delete(e)}checkRedeclarationInScope(t,e,s,i){this.isRedeclaredInScope(t,e,s)&&this.parser.raise(p.VarRedeclaration,{at:i,identifierName:e})}isRedeclaredInScope(t,e,s){return s&F?s&te?t.lexical.has(e)||t.functions.has(e)||t.var.has(e):s&Ke?t.lexical.has(e)||!this.treatFunctionsAsVarInScope(t)&&t.var.has(e):t.lexical.has(e)&&!(t.flags&Fs&&t.lexical.values().next().value===e)||!this.treatFunctionsAsVarInScope(t)&&t.functions.has(e):!1}checkLocalExport(t){let{name:e}=t,s=this.scopeStack[0];!s.lexical.has(e)&&!s.var.has(e)&&!s.functions.has(e)&&this.undefinedExports.set(e,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(e&je)return e}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(e&(je|ee)&&!(e&Qt))return e}}},Ct=class extends ve{constructor(...t){super(...t),this.declareFunctions=new Set}},wt=class extends Le{createScope(t){return new Ct(t)}declareName(t,e,s){let i=this.currentScope();if(e&Et){this.checkRedeclarationInScope(i,t,e,s),this.maybeExportDefined(i,t),i.declareFunctions.add(t);return}super.declareName(t,e,s)}isRedeclaredInScope(t,e,s){return super.isRedeclaredInScope(t,e,s)?!0:s&Et?!t.declareFunctions.has(e)&&(t.lexical.has(e)||t.functions.has(e)):!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}},It=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(t){if(typeof t=="string")return this.plugins.has(t);{let[e,s]=t;if(!this.hasPlugin(e))return!1;let i=this.plugins.get(e);for(let r of Object.keys(s))if((i==null?void 0:i[r])!==s[r])return!1;return!0}}getPluginOption(t,e){var s;return(s=this.plugins.get(t))==null?void 0:s[e]}};function zs(a,t){a.trailingComments===void 0?a.trailingComments=t:a.trailingComments.unshift(...t)}function Fr(a,t){a.leadingComments===void 0?a.leadingComments=t:a.leadingComments.unshift(...t)}function De(a,t){a.innerComments===void 0?a.innerComments=t:a.innerComments.unshift(...t)}function Ee(a,t,e){let s=null,i=t.length;for(;s===null&&i>0;)s=t[--i];s===null||s.start>e.start?De(a,e.comments):zs(s,e.comments)}var Nt=class extends It{addComment(t){this.filename&&(t.loc.filename=this.filename),this.state.comments.push(t)}processComment(t){let{commentStack:e}=this.state,s=e.length;if(s===0)return;let i=s-1,r=e[i];r.start===t.end&&(r.leadingNode=t,i--);let{start:n}=t;for(;i>=0;i--){let o=e[i],h=o.end;if(h>n)o.containingNode=t,this.finalizeComment(o),e.splice(i,1);else{h===n&&(o.trailingNode=t);break}}}finalizeComment(t){let{comments:e}=t;if(t.leadingNode!==null||t.trailingNode!==null)t.leadingNode!==null&&zs(t.leadingNode,e),t.trailingNode!==null&&Fr(t.trailingNode,e);else{let{containingNode:s,start:i}=t;if(this.input.charCodeAt(i-1)===44)switch(s.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Ee(s,s.properties,t);break;case"CallExpression":case"OptionalCallExpression":Ee(s,s.arguments,t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Ee(s,s.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Ee(s,s.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":Ee(s,s.specifiers,t);break;default:De(s,e)}else De(s,e)}}finalizeRemainingComments(){let{commentStack:t}=this.state;for(let e=t.length-1;e>=0;e--)this.finalizeComment(t[e]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(t){let{commentStack:e}=this.state,{length:s}=e;if(s===0)return;let i=e[s-1];i.leadingNode===t&&(i.leadingNode=null)}resetPreviousIdentifierLeadingComments(t){let{commentStack:e}=this.state,{length:s}=e;s!==0&&(e[s-1].trailingNode===t?e[s-1].trailingNode=null:s>=2&&e[s-2].trailingNode===t&&(e[s-2].trailingNode=null))}takeSurroundingComments(t,e,s){let{commentStack:i}=this.state,r=i.length;if(r===0)return;let n=r-1;for(;n>=0;n--){let o=i[n],h=o.end;if(o.start===s)o.leadingNode=t;else if(h===e)o.trailingNode=t;else if(h=48&&t<=57},Ps={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Ve={bin:a=>a===48||a===49,oct:a=>a>=48&&a<=55,dec:a=>a>=48&&a<=57,hex:a=>a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102};function Ts(a,t,e,s,i,r){let n=e,o=s,h=i,l="",c=null,u=e,{length:d}=t;for(;;){if(e>=d){r.unterminated(n,o,h),l+=t.slice(u,e);break}let f=t.charCodeAt(e);if(Ur(a,f,t,e)){l+=t.slice(u,e);break}if(f===92){l+=t.slice(u,e);let x=jr(t,e,s,i,a==="template",r);x.ch===null&&!c?c={pos:e,lineStart:s,curLine:i}:l+=x.ch,{pos:e,lineStart:s,curLine:i}=x,u=e}else f===8232||f===8233?(++e,++i,s=e):f===10||f===13?a==="template"?(l+=t.slice(u,e)+` -`,++e,f===13&&t.charCodeAt(e)===10&&++e,++i,u=s=e):r.unterminated(n,o,h):++e}return{pos:e,str:l,firstInvalidLoc:c,lineStart:s,curLine:i,containsInvalid:!!c}}function Ur(a,t,e,s){return a==="template"?t===96||t===36&&e.charCodeAt(s+1)===123:t===(a==="double"?34:39)}function jr(a,t,e,s,i,r){let n=!i;t++;let o=l=>({pos:t,ch:l,lineStart:e,curLine:s}),h=a.charCodeAt(t++);switch(h){case 110:return o(` -`);case 114:return o("\r");case 120:{let l;return{code:l,pos:t}=vt(a,t,e,s,2,!1,n,r),o(l===null?null:String.fromCharCode(l))}case 117:{let l;return{code:l,pos:t}=Hs(a,t,e,s,n,r),o(l===null?null:String.fromCodePoint(l))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:a.charCodeAt(t)===10&&++t;case 10:e=t,++s;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);r.strictNumericEscape(t-1,e,s);default:if(h>=48&&h<=55){let l=t-1,u=a.slice(l,t+2).match(/^[0-7]+/)[0],d=parseInt(u,8);d>255&&(u=u.slice(0,-1),d=parseInt(u,8)),t+=u.length-1;let f=a.charCodeAt(t);if(u!=="0"||f===56||f===57){if(i)return o(null);r.strictNumericEscape(l,e,s)}return o(String.fromCharCode(d))}return o(String.fromCharCode(h))}}function vt(a,t,e,s,i,r,n,o){let h=t,l;return{n:l,pos:t}=qs(a,t,e,s,16,i,r,!1,o,!n),l===null&&(n?o.invalidEscapeSequence(h,e,s):t=h-1),{code:l,pos:t}}function qs(a,t,e,s,i,r,n,o,h,l){let c=t,u=i===16?Ps.hex:Ps.decBinOct,d=i===16?Ve.hex:i===10?Ve.dec:i===8?Ve.oct:Ve.bin,f=!1,x=0;for(let I=0,C=r??1/0;I=97?N=w-97+10:w>=65?N=w-65+10:Rr(w)?N=w-48:N=1/0,N>=i){if(N<=9&&l)return{n:null,pos:t};if(N<=9&&h.invalidDigit(t,e,s,i))N=0;else if(n)N=0,f=!0;else break}++t,x=x*i+N}return t===c||r!=null&&t-c!==r||f?{n:null,pos:t}:{n:x,pos:t}}function Hs(a,t,e,s,i,r){let n=a.charCodeAt(t),o;if(n===123){if(++t,{code:o,pos:t}=vt(a,t,e,s,a.indexOf("}",t)-t,!0,i,r),++t,o!==null&&o>1114111)if(i)r.invalidCodePoint(t,e,s);else return{code:null,pos:t}}else({code:o,pos:t}=vt(a,t,e,s,4,!1,i,r));return{code:o,pos:t}}var $r=["at"],Vr=["at"];function Ce(a,t,e){return new B(e,a-t,a)}var zr=new Set([103,109,115,105,121,117,100,118]),O=class{constructor(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new fe(t.startLoc,t.endLoc)}},Lt=class extends Nt{constructor(t,e){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(s,i,r,n)=>this.options.errorRecovery?(this.raise(p.InvalidDigit,{at:Ce(s,i,r),radix:n}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(p.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(p.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(p.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(p.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(s,i,r)=>{this.recordStrictModeErrors(p.StrictNumericEscape,{at:Ce(s,i,r)})},unterminated:(s,i,r)=>{throw this.raise(p.UnterminatedString,{at:Ce(s-1,i,r)})}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(p.StrictNumericEscape),unterminated:(s,i,r)=>{throw this.raise(p.UnterminatedTemplate,{at:Ce(s,i,r)})}}),this.state=new kt,this.state.init(t),this.input=e,this.length=e.length,this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new O(this.state)),this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return this.match(t)?(this.next(),!0):!1}match(t){return this.state.type===t}createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){let t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let e=this.state;return this.state=t,e}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return mt.lastIndex=t,mt.test(this.input)?mt.lastIndex:t}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(t){return qe.lastIndex=t,qe.test(this.input)?qe.lastIndex:t}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(t){let e=this.input.charCodeAt(t);if((e&64512)===55296&&++tthis.raise(e,{at:s})),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(137);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(t){let e;this.isLookahead||(e=this.state.curPosition());let s=this.state.pos,i=this.input.indexOf(t,s+2);if(i===-1)throw this.raise(p.UnterminatedComment,{at:this.state.curPosition()});for(this.state.pos=i+t.length,$e.lastIndex=s+2;$e.test(this.input)&&$e.lastIndex<=i;)++this.state.curLine,this.state.lineStart=$e.lastIndex;if(this.isLookahead)return;let r={type:"CommentBlock",value:this.input.slice(s+2,i),start:s,end:i+t.length,loc:new fe(e,this.state.curPosition())};return this.options.tokens&&this.pushToken(r),r}skipLineComment(t){let e=this.state.pos,s;this.isLookahead||(s=this.state.curPosition());let i=this.input.charCodeAt(this.state.pos+=t);if(this.state.post)){let r=this.skipLineComment(3);r!==void 0&&(this.addComment(r),this.options.attachComment&&e.push(r))}else break e}else if(s===60&&!this.inModule&&this.options.annexB){let i=this.state.pos;if(this.input.charCodeAt(i+1)===33&&this.input.charCodeAt(i+2)===45&&this.input.charCodeAt(i+3)===45){let r=this.skipLineComment(4);r!==void 0&&(this.addComment(r),this.options.attachComment&&e.push(r))}else break e}else break e}}if(e.length>0){let s=this.state.pos,i={start:t,end:s,comments:e,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(i)}}finishToken(t,e){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let s=this.state.type;this.state.type=t,this.state.value=e,this.isLookahead||this.updateContext(s)}replaceToken(t){this.state.type=t,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let t=this.state.pos+1,e=this.codePointAtPos(t);if(e>=48&&e<=57)throw this.raise(p.UnexpectedDigitAfterHash,{at:this.state.curPosition()});if(e===123||e===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(e===123?p.RecordExpressionHashIncorrectStartSyntaxType:p.TupleExpressionHashIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,e===123?this.finishToken(7):this.finishToken(1)}else $(e)?(++this.state.pos,this.finishToken(136,this.readWord1(e))):e===92?(++this.state.pos,this.finishToken(136,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let t=this.input.charCodeAt(this.state.pos+1);if(t>=48&&t<=57){this.readNumber(!0);return}t===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let t=this.input.charCodeAt(this.state.pos+1);if(t!==33)return!1;let e=this.state.pos;for(this.state.pos+=1;!ke(t)&&++this.state.pos=48&&e<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(t){switch(t){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(p.TupleExpressionBarIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(p.RecordExpressionBarIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let e=this.input.charCodeAt(this.state.pos+1);if(e===120||e===88){this.readRadixNumber(16);return}if(e===111||e===79){this.readRadixNumber(8);return}if(e===98||e===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(t);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(t);return;case 124:case 38:this.readToken_pipe_amp(t);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(t);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(t);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if($(t)){this.readWord(t);return}}throw this.raise(p.InvalidOrUnexpectedToken,{at:this.state.curPosition(),unexpected:String.fromCodePoint(t)})}finishOp(t,e){let s=this.input.slice(this.state.pos,this.state.pos+e);this.state.pos+=e,this.finishToken(t,s)}readRegexp(){let t=this.state.startLoc,e=this.state.start+1,s,i,{pos:r}=this.state;for(;;++r){if(r>=this.length)throw this.raise(p.UnterminatedRegExp,{at:L(t,1)});let l=this.input.charCodeAt(r);if(ke(l))throw this.raise(p.UnterminatedRegExp,{at:L(t,1)});if(s)s=!1;else{if(l===91)i=!0;else if(l===93&&i)i=!1;else if(l===47&&!i)break;s=l===92}}let n=this.input.slice(e,r);++r;let o="",h=()=>L(t,r+2-e);for(;r=2&&this.input.charCodeAt(e)===48;if(l){let f=this.input.slice(e,this.state.pos);if(this.recordStrictModeErrors(p.StrictOctalLiteral,{at:s}),!this.state.strict){let x=f.indexOf("_");x>0&&this.raise(p.ZeroDigitNumericSeparator,{at:L(s,x)})}h=l&&!/[89]/.test(f)}let c=this.input.charCodeAt(this.state.pos);if(c===46&&!h&&(++this.state.pos,this.readInt(10),i=!0,c=this.input.charCodeAt(this.state.pos)),(c===69||c===101)&&!h&&(c=this.input.charCodeAt(++this.state.pos),(c===43||c===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(p.InvalidOrMissingExponent,{at:s}),i=!0,o=!0,c=this.input.charCodeAt(this.state.pos)),c===110&&((i||l)&&this.raise(p.InvalidBigIntLiteral,{at:s}),++this.state.pos,r=!0),c===109&&(this.expectPlugin("decimal",this.state.curPosition()),(o||l)&&this.raise(p.InvalidDecimal,{at:s}),++this.state.pos,n=!0),$(this.codePointAtPos(this.state.pos)))throw this.raise(p.NumberIdentifier,{at:this.state.curPosition()});let u=this.input.slice(e,this.state.pos).replace(/[_mn]/g,"");if(r){this.finishToken(133,u);return}if(n){this.finishToken(134,u);return}let d=h?parseInt(u,8):parseFloat(u);this.finishToken(132,d)}readCodePoint(t){let{code:e,pos:s}=Hs(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,this.errorHandlers_readCodePoint);return this.state.pos=s,e}readString(t){let{str:e,pos:s,curLine:i,lineStart:r}=Ts(t===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=s+1,this.state.lineStart=r,this.state.curLine=i,this.finishToken(131,e)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let t=this.input[this.state.pos],{str:e,firstInvalidLoc:s,pos:i,curLine:r,lineStart:n}=Ts("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=i+1,this.state.lineStart=n,this.state.curLine=r,s&&(this.state.firstInvalidTemplateEscapePos=new B(s.curLine,s.pos-s.lineStart,s.pos)),this.input.codePointAt(i)===96?this.finishToken(24,s?null:t+e+"`"):(this.state.pos++,this.finishToken(25,s?null:t+e+"${"))}recordStrictModeErrors(t,{at:e}){let s=e.index;this.state.strict&&!this.state.strictErrors.has(s)?this.raise(t,{at:e}):this.state.strictErrors.set(s,[t,e])}readWord1(t){this.state.containsEsc=!1;let e="",s=this.state.pos,i=this.state.pos;for(t!==void 0&&(this.state.pos+=t<=65535?1:2);this.state.pos=0;h--){let l=o[h];if(l.loc.index===n)return o[h]=t({loc:r,details:i});if(l.loc.indexthis.hasPlugin(e)))throw this.raise(p.MissingOneOfPlugins,{at:this.state.startLoc,missingPlugin:t})}errorBuilder(t){return(e,s,i)=>{this.raise(t,{at:Ce(e,s,i)})}}},Dt=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},Mt=class{constructor(t){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Dt)}exit(){let t=this.stack.pop(),e=this.current();for(let[s,i]of Array.from(t.undefinedPrivateNames))e?e.undefinedPrivateNames.has(s)||e.undefinedPrivateNames.set(s,i):this.parser.raise(p.InvalidPrivateFieldResolution,{at:i,identifierName:s})}declarePrivateName(t,e,s){let{privateNames:i,loneAccessors:r,undefinedPrivateNames:n}=this.current(),o=i.has(t);if(e&ft){let h=o&&r.get(t);if(h){let l=h&et,c=e&et,u=h&ft,d=e&ft;o=u===d||l!==c,o||r.delete(t)}else o||r.set(t,e)}o&&this.parser.raise(p.PrivateNameRedeclaration,{at:s,identifierName:t}),i.add(t),n.delete(t)}usePrivateName(t,e){let s;for(s of this.stack)if(s.privateNames.has(t))return;s?s.undefinedPrivateNames.set(t,e):this.parser.raise(p.InvalidPrivateFieldResolution,{at:e,identifierName:t})}},Kr=0,Ws=1,ss=2,Js=3,de=class{constructor(t=Kr){this.type=void 0,this.type=t}canBeArrowParameterDeclaration(){return this.type===ss||this.type===Ws}isCertainlyParameterDeclaration(){return this.type===Js}},tt=class extends de{constructor(t){super(t),this.declarationErrors=new Map}recordDeclarationError(t,{at:e}){let s=e.index;this.declarationErrors.set(s,[t,e])}clearDeclarationError(t){this.declarationErrors.delete(t)}iterateErrors(t){this.declarationErrors.forEach(t)}},Ot=class{constructor(t){this.parser=void 0,this.stack=[new de],this.parser=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,{at:e}){let s={at:e.loc.start},{stack:i}=this,r=i.length-1,n=i[r];for(;!n.isCertainlyParameterDeclaration();){if(n.canBeArrowParameterDeclaration())n.recordDeclarationError(t,s);else return;n=i[--r]}this.parser.raise(t,s)}recordArrowParameterBindingError(t,{at:e}){let{stack:s}=this,i=s[s.length-1],r={at:e.loc.start};if(i.isCertainlyParameterDeclaration())this.parser.raise(t,r);else if(i.canBeArrowParameterDeclaration())i.recordDeclarationError(t,r);else return}recordAsyncArrowParametersError({at:t}){let{stack:e}=this,s=e.length-1,i=e[s];for(;i.canBeArrowParameterDeclaration();)i.type===ss&&i.recordDeclarationError(p.AwaitBindingIdentifier,{at:t}),i=e[--s]}validateAsPattern(){let{stack:t}=this,e=t[t.length-1];e.canBeArrowParameterDeclaration()&&e.iterateErrors(([s,i])=>{this.parser.raise(s,{at:i});let r=t.length-2,n=t[r];for(;n.canBeArrowParameterDeclaration();)n.clearDeclarationError(i.index),n=t[--r]})}};function qr(){return new de(Js)}function Hr(){return new tt(Ws)}function Wr(){return new tt(ss)}function Xs(){return new de}var pe=0,Gs=1,rt=2,Ys=4,re=8,Bt=class{constructor(){this.stacks=[]}enter(t){this.stacks.push(t)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&rt)>0}get hasYield(){return(this.currentFlags()&Gs)>0}get hasReturn(){return(this.currentFlags()&Ys)>0}get hasIn(){return(this.currentFlags()&re)>0}};function He(a,t){return(a?rt:0)|(t?Gs:0)}var Ft=class extends Lt{addExtra(t,e,s,i=!0){if(!t)return;let r=t.extra=t.extra||{};i?r[e]=s:Object.defineProperty(r,e,{enumerable:i,value:s})}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,e){let s=t+e.length;if(this.input.slice(t,s)===e){let i=this.input.charCodeAt(s);return!(he(i)||(i&64512)===55296)}return!1}isLookaheadContextual(t){let e=this.nextTokenStart();return this.isUnparsedContextual(e,t)}eatContextual(t){return this.isContextual(t)?(this.next(),!0):!1}expectContextual(t,e){if(!this.eatContextual(t)){if(e!=null)throw this.raise(e,{at:this.state.startLoc});this.unexpected(null,t)}}canInsertSemicolon(){return this.match(137)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Ks.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}hasFollowingLineBreak(){return xs.lastIndex=this.state.end,xs.test(this.input)}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise(p.MissingSemicolon,{at:this.state.lastTokEndLoc})}expect(t,e){this.eat(t)||this.unexpected(e,t)}tryParse(t,e=this.state.clone()){let s={node:null};try{let i=t((r=null)=>{throw s.node=r,s});if(this.state.errors.length>e.errors.length){let r=this.state;return this.state=e,this.state.tokensLength=r.tokensLength,{node:i,error:r.errors[e.errors.length],thrown:!1,aborted:!1,failState:r}}return{node:i,error:null,thrown:!1,aborted:!1,failState:null}}catch(i){let r=this.state;if(this.state=e,i instanceof SyntaxError)return{node:null,error:i,thrown:!0,aborted:!1,failState:r};if(i===s)return{node:s.node,error:null,thrown:!1,aborted:!0,failState:r};throw i}}checkExpressionErrors(t,e){if(!t)return!1;let{shorthandAssignLoc:s,doubleProtoLoc:i,privateKeyLoc:r,optionalParametersLoc:n}=t,o=!!s||!!i||!!n||!!r;if(!e)return o;s!=null&&this.raise(p.InvalidCoverInitializedName,{at:s}),i!=null&&this.raise(p.DuplicateProto,{at:i}),r!=null&&this.raise(p.UnexpectedPrivateField,{at:r}),n!=null&&this.unexpected(n)}isLiteralPropertyName(){return ks(this.state.type)}isPrivateName(t){return t.type==="PrivateName"}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return(t.type==="MemberExpression"||t.type==="OptionalMemberExpression")&&this.isPrivateName(t.property)}isObjectProperty(t){return t.type==="ObjectProperty"}isObjectMethod(t){return t.type==="ObjectMethod"}initializeScopes(t=this.options.sourceType==="module"){let e=this.state.labels;this.state.labels=[];let s=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let i=this.inModule;this.inModule=t;let r=this.scope,n=this.getScopeHandler();this.scope=new n(this,t);let o=this.prodParam;this.prodParam=new Bt;let h=this.classScope;this.classScope=new Mt(this);let l=this.expressionScope;return this.expressionScope=new Ot(this),()=>{this.state.labels=e,this.exportedIdentifiers=s,this.inModule=i,this.scope=r,this.prodParam=o,this.classScope=h,this.expressionScope=l}}enterInitialScopes(){let t=pe;this.inModule&&(t|=rt),this.scope.enter(ne),this.prodParam.enter(t)}checkDestructuringPrivate(t){let{privateKeyLoc:e}=t;e!==null&&this.expectPlugin("destructuringPrivate",e)}},ue=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}},me=class{constructor(t,e,s){this.type="",this.start=e,this.end=0,this.loc=new fe(s),t!=null&&t.options.ranges&&(this.range=[e,0]),t!=null&&t.filename&&(this.loc.filename=t.filename)}},is=me.prototype;is.__clone=function(){let a=new me(void 0,this.start,this.loc.start),t=Object.keys(this);for(let e=0,s=t.length;e`Cannot overwrite reserved type ${a}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:a,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${a} = true,\` or \`${a} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:a,enumName:t})=>`Enum member names need to be unique, but the name \`${a}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:a})=>`Enum \`${a}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:a,enumName:t})=>`Enum type \`${a}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:a})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${a}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:a,memberName:t,explicitType:e})=>`Enum \`${a}\` has type \`${e}\`, so the initializer of \`${t}\` needs to be a ${e} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:a,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${a}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:a,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${a}\`.`,EnumInvalidMemberName:({enumName:a,memberName:t,suggestion:e})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${e}\`, in enum \`${a}\`.`,EnumNumberMemberNotInitialized:({enumName:a,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${a}\`.`,EnumStringMemberInconsistentlyInitailized:({enumName:a})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${a}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:a})=>`Unexpected reserved type ${a}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of ` async () => {}`, use `async () => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:a,suggestion:t})=>`\`declare export ${a}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function Yr(a){return a.type==="DeclareExportAllDeclaration"||a.type==="DeclareExportDeclaration"&&(!a.declaration||a.declaration.type!=="TypeAlias"&&a.declaration.type!=="InterfaceDeclaration")}function gs(a){return a.importKind==="type"||a.importKind==="typeof"}var Qr={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function Zr(a,t){let e=[],s=[];for(let i=0;iclass extends a{constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return wt}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(e,s){e!==131&&e!==13&&e!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(e,s)}addComment(e){if(this.flowPragma===void 0){let s=ea.exec(e.value);if(s)if(s[1]==="flow")this.flowPragma="flow";else if(s[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(e)}flowParseTypeInitialiser(e){let s=this.state.inType;this.state.inType=!0,this.expect(e||14);let i=this.flowParseType();return this.state.inType=s,i}flowParsePredicate(){let e=this.startNode(),s=this.state.startLoc;return this.next(),this.expectContextual(108),this.state.lastTokStart>s.index+1&&this.raise(T.UnexpectedSpaceBetweenModuloChecks,{at:s}),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let e=this.state.inType;this.state.inType=!0,this.expect(14);let s=null,i=null;return this.match(54)?(this.state.inType=e,i=this.flowParsePredicate()):(s=this.flowParseType(),this.state.inType=e,this.match(54)&&(i=this.flowParsePredicate())),[s,i]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();let s=e.id=this.parseIdentifier(),i=this.startNode(),r=this.startNode();this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,this.expect(10);let n=this.flowParseFunctionTypeParams();return i.params=n.params,i.rest=n.rest,i.this=n._this,this.expect(11),[i.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.typeAnnotation=this.finishNode(i,"FunctionTypeAnnotation"),s.typeAnnotation=this.finishNode(r,"TypeAnnotation"),this.resetEndLocation(s),this.semicolon(),this.scope.declareName(e.id.name,Lr,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,s){if(this.match(80))return this.flowParseDeclareClass(e);if(this.match(68))return this.flowParseDeclareFunction(e);if(this.match(74))return this.flowParseDeclareVariable(e);if(this.eatContextual(125))return this.match(16)?this.flowParseDeclareModuleExports(e):(s&&this.raise(T.NestedDeclareModule,{at:this.state.lastTokStartLoc}),this.flowParseDeclareModule(e));if(this.isContextual(128))return this.flowParseDeclareTypeAlias(e);if(this.isContextual(129))return this.flowParseDeclareOpaqueType(e);if(this.isContextual(127))return this.flowParseDeclareInterface(e);if(this.match(82))return this.flowParseDeclareExportDeclaration(e,s);this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,Ze,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(ae),this.match(131)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();let s=e.body=this.startNode(),i=s.body=[];for(this.expect(5);!this.match(8);){let o=this.startNode();this.match(83)?(this.next(),!this.isContextual(128)&&!this.match(87)&&this.raise(T.InvalidNonTypeImportInDeclareModule,{at:this.state.lastTokStartLoc}),super.parseImport(o)):(this.expectContextual(123,T.UnsupportedStatementInDeclareModule),o=this.flowParseDeclare(o,!0)),i.push(o)}this.scope.exit(),this.expect(8),this.finishNode(s,"BlockStatement");let r=null,n=!1;return i.forEach(o=>{Yr(o)?(r==="CommonJS"&&this.raise(T.AmbiguousDeclareModuleKind,{at:o}),r="ES"):o.type==="DeclareModuleExports"&&(n&&this.raise(T.DuplicateDeclareModuleExports,{at:o}),r==="ES"&&this.raise(T.AmbiguousDeclareModuleKind,{at:o}),r="CommonJS",n=!0)}),e.kind=r||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,s){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(128)||this.isContextual(127))&&!s){let i=this.state.value;throw this.raise(T.UnsupportedDeclareExportKind,{at:this.state.startLoc,unsupportedExportKind:i,suggestion:Qr[i]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(129))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(127)||this.isContextual(128)||this.isContextual(129))return e=this.parseExport(e,null),e.type==="ExportNamedDeclaration"&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e;this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(109),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();let s=this.flowParseTypeAlias(e);return s.type="DeclareTypeAlias",s}flowParseDeclareOpaqueType(e){this.next();let s=this.flowParseOpaqueType(e,!0);return s.type="DeclareOpaqueType",s}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,s){if(e.id=this.flowParseRestrictedIdentifier(!s,!0),this.scope.declareName(e.id.name,s?$s:ce,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(!s&&this.eat(12));if(s){if(e.implements=[],e.mixins=[],this.eatContextual(115))do e.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(111))do e.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:s,allowExact:!1,allowSpread:!1,allowProto:s,allowInexact:!1})}flowParseInterfaceExtends(){let e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){e==="_"&&this.raise(T.UnexpectedReservedUnderscore,{at:this.state.startLoc})}checkReservedType(e,s,i){Gr.has(e)&&this.raise(i?T.AssignReservedType:T.UnexpectedReservedType,{at:s,reservedType:e})}flowParseRestrictedIdentifier(e,s){return this.checkReservedType(this.state.value,this.state.startLoc,s),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,ce,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,s){return this.expectContextual(128),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,ce,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,s||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=!1){let s=this.state.startLoc,i=this.startNode(),r=this.flowParseVariance(),n=this.flowParseTypeAnnotatableIdentifier();return i.name=n.name,i.variance=r,i.bound=n.typeAnnotation,this.match(29)?(this.eat(29),i.default=this.flowParseType()):e&&this.raise(T.MissingTypeParamDefault,{at:s}),this.finishNode(i,"TypeParameter")}flowParseTypeParameterDeclaration(){let e=this.state.inType,s=this.startNode();s.params=[],this.state.inType=!0,this.match(47)||this.match(140)?this.next():this.unexpected();let i=!1;do{let r=this.flowParseTypeParameter(i);s.params.push(r),r.default&&(i=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(s,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){let e=this.startNode(),s=this.state.inType;e.params=[],this.state.inType=!0,this.expect(47);let i=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=i,this.expect(48),this.state.inType=s,this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){let e=this.startNode(),s=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=s,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){let e=this.startNode();if(this.expectContextual(127),e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(132)||this.match(131)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,s,i){return e.static=s,this.lookahead().type===14?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=i,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,s){return e.static=s,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,s){let i=this.startNode();return e.static=s,e.value=this.flowParseObjectTypeMethodish(i),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:s,allowSpread:i,allowProto:r,allowInexact:n}){let o=this.state.inType;this.state.inType=!0;let h=this.startNode();h.callProperties=[],h.properties=[],h.indexers=[],h.internalSlots=[];let l,c,u=!1;for(s&&this.match(6)?(this.expect(6),l=9,c=!0):(this.expect(5),l=8,c=!1),h.exact=c;!this.match(l);){let f=!1,x=null,I=null,C=this.startNode();if(r&&this.isContextual(116)){let N=this.lookahead();N.type!==14&&N.type!==17&&(this.next(),x=this.state.startLoc,e=!1)}if(e&&this.isContextual(104)){let N=this.lookahead();N.type!==14&&N.type!==17&&(this.next(),f=!0)}let w=this.flowParseVariance();if(this.eat(0))x!=null&&this.unexpected(x),this.eat(0)?(w&&this.unexpected(w.loc.start),h.internalSlots.push(this.flowParseObjectTypeInternalSlot(C,f))):h.indexers.push(this.flowParseObjectTypeIndexer(C,f,w));else if(this.match(10)||this.match(47))x!=null&&this.unexpected(x),w&&this.unexpected(w.loc.start),h.callProperties.push(this.flowParseObjectTypeCallProperty(C,f));else{let N="init";if(this.isContextual(98)||this.isContextual(103)){let be=this.lookahead();ks(be.type)&&(N=this.state.value,this.next())}let Re=this.flowParseObjectTypeProperty(C,f,x,w,N,i,n??!c);Re===null?(u=!0,I=this.state.lastTokStartLoc):h.properties.push(Re)}this.flowObjectTypeSemicolon(),I&&!this.match(8)&&!this.match(9)&&this.raise(T.UnexpectedExplicitInexactInObject,{at:I})}this.expect(l),i&&(h.inexact=u);let d=this.finishNode(h,"ObjectTypeAnnotation");return this.state.inType=o,d}flowParseObjectTypeProperty(e,s,i,r,n,o,h){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?h||this.raise(T.InexactInsideExact,{at:this.state.lastTokStartLoc}):this.raise(T.InexactInsideNonObject,{at:this.state.lastTokStartLoc}),r&&this.raise(T.InexactVariance,{at:r}),null):(o||this.raise(T.UnexpectedSpreadType,{at:this.state.lastTokStartLoc}),i!=null&&this.unexpected(i),r&&this.raise(T.SpreadVariance,{at:r}),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=s,e.proto=i!=null,e.kind=n;let l=!1;return this.match(47)||this.match(10)?(e.method=!0,i!=null&&this.unexpected(i),r&&this.unexpected(r.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),(n==="get"||n==="set")&&this.flowCheckGetterSetterParams(e),!o&&e.key.name==="constructor"&&e.value.this&&this.raise(T.ThisParamBannedInConstructor,{at:e.value.this})):(n!=="init"&&this.unexpected(),e.method=!1,this.eat(17)&&(l=!0),e.value=this.flowParseTypeInitialiser(),e.variance=r),e.optional=l,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){let s=e.kind==="get"?0:1,i=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise(e.kind==="get"?T.GetterMayNotHaveThisParam:T.SetterMayNotHaveThisParam,{at:e.value.this}),i!==s&&this.raise(e.kind==="get"?p.BadGetterArity:p.BadSetterArity,{at:e}),e.kind==="set"&&e.value.rest&&this.raise(p.BadSetterRestParameter,{at:e})}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(e,s){var i;(i=e)!=null||(e=this.state.startLoc);let r=s||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let n=this.startNodeAt(e);n.qualification=r,n.id=this.flowParseRestrictedIdentifier(!0),r=this.finishNode(n,"QualifiedTypeIdentifier")}return r}flowParseGenericType(e,s){let i=this.startNodeAt(e);return i.typeParameters=null,i.id=this.flowParseQualifiedTypeIdentifier(e,s),this.match(47)&&(i.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(i,"GenericTypeAnnotation")}flowParseTypeofType(){let e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){let e=this.startNode();for(e.types=[],this.expect(0);this.state.possuper.parseFunctionBody(e,!0,i));return}super.parseFunctionBody(e,!1,i)}parseFunctionBodyAndFinish(e,s,i=!1){if(this.match(14)){let r=this.startNode();[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=r.typeAnnotation?this.finishNode(r,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,s,i)}parseStatementLike(e){if(this.state.strict&&this.isContextual(127)){let i=this.lookahead();if(M(i.type)){let r=this.startNode();return this.next(),this.flowParseInterface(r)}}else if(this.shouldParseEnums()&&this.isContextual(124)){let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}let s=super.parseStatementLike(e);return this.flowPragma===void 0&&!this.isValidDirective(s)&&(this.flowPragma=null),s}parseExpressionStatement(e,s,i){if(s.type==="Identifier"){if(s.name==="declare"){if(this.match(80)||S(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(S(this.state.type)){if(s.name==="interface")return this.flowParseInterface(e);if(s.name==="type")return this.flowParseTypeAlias(e);if(s.name==="opaque")return this.flowParseOpaqueType(e,!1)}}return super.parseExpressionStatement(e,s,i)}shouldParseExportDeclaration(){let{type:e}=this.state;return ds(e)||this.shouldParseEnums()&&e===124?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:e}=this.state;return ds(e)||this.shouldParseEnums()&&e===124?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(124)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,s,i){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let d=this.lookaheadCharCode();if(d===44||d===61||d===58||d===41)return this.setOptionalParametersError(i),e}this.expect(17);let r=this.state.clone(),n=this.state.noArrowAt,o=this.startNodeAt(s),{consequent:h,failed:l}=this.tryParseConditionalConsequent(),[c,u]=this.getArrowLikeExpressions(h);if(l||u.length>0){let d=[...n];if(u.length>0){this.state=r,this.state.noArrowAt=d;for(let f=0;f1&&this.raise(T.AmbiguousConditionalArrow,{at:r.startLoc}),l&&c.length===1&&(this.state=r,d.push(c[0].start),this.state.noArrowAt=d,{consequent:h,failed:l}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(h,!0),this.state.noArrowAt=n,this.expect(14),o.test=e,o.consequent=h,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let e=this.parseMaybeAssignAllowIn(),s=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:s}}getArrowLikeExpressions(e,s){let i=[e],r=[];for(;i.length!==0;){let n=i.pop();n.type==="ArrowFunctionExpression"?(n.typeParameters||!n.returnType?this.finishArrowValidation(n):r.push(n),i.push(n.body)):n.type==="ConditionalExpression"&&(i.push(n.consequent),i.push(n.alternate))}return s?(r.forEach(n=>this.finishArrowValidation(n)),[r,[]]):Zr(r,n=>n.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(e){var s;this.toAssignableList(e.params,(s=e.extra)==null?void 0:s.trailingCommaLoc,!1),this.scope.enter(z|Qt),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,s){let i;return this.state.noArrowParamsConversionAt.indexOf(e.start)!==-1?(this.state.noArrowParamsConversionAt.push(this.state.start),i=s(),this.state.noArrowParamsConversionAt.pop()):i=s(),i}parseParenItem(e,s){if(e=super.parseParenItem(e,s),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){let i=this.startNodeAt(s);return i.expression=e,i.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(i,"TypeCastExpression")}return e}assertModuleNodeAllowed(e){e.type==="ImportDeclaration"&&(e.importKind==="type"||e.importKind==="typeof")||e.type==="ExportNamedDeclaration"&&e.exportKind==="type"||e.type==="ExportAllDeclaration"&&e.exportKind==="type"||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(128)){e.exportKind="type";let s=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(s)}else if(this.isContextual(129)){e.exportKind="type";let s=this.startNode();return this.next(),this.flowParseOpaqueType(s,!1)}else if(this.isContextual(127)){e.exportKind="type";let s=this.startNode();return this.next(),this.flowParseInterface(s)}else if(this.shouldParseEnums()&&this.isContextual(124)){e.exportKind="value";let s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}else return super.parseExportDeclaration(e)}eatExportStar(e){return super.eatExportStar(e)?!0:this.isContextual(128)&&this.lookahead().type===55?(e.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(e){let{startLoc:s}=this.state,i=super.maybeParseExportNamespaceSpecifier(e);return i&&e.exportKind==="type"&&this.unexpected(s),i}parseClassId(e,s,i){super.parseClassId(e,s,i),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,s,i){let{startLoc:r}=this.state;if(this.isContextual(123)){if(super.parseClassMemberFromModifier(e,s))return;s.declare=!0}super.parseClassMember(e,s,i),s.declare&&(s.type!=="ClassProperty"&&s.type!=="ClassPrivateProperty"&&s.type!=="PropertyDefinition"?this.raise(T.DeclareClassElement,{at:r}):s.value&&this.raise(T.DeclareClassFieldInitializer,{at:s.value}))}isIterator(e){return e==="iterator"||e==="asyncIterator"}readIterator(){let e=super.readWord1(),s="@@"+e;(!this.isIterator(e)||!this.state.inType)&&this.raise(p.InvalidIdentifier,{at:this.state.curPosition(),identifierName:s}),this.finishToken(130,s)}getTokenFromCode(e){let s=this.input.charCodeAt(this.state.pos+1);e===123&&s===124?this.finishOp(6,2):this.state.inType&&(e===62||e===60)?this.finishOp(e===62?48:47,1):this.state.inType&&e===63?s===46?this.finishOp(18,2):this.finishOp(17,1):Ar(e,s,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e)}isAssignable(e,s){return e.type==="TypeCastExpression"?this.isAssignable(e.expression,s):super.isAssignable(e,s)}toAssignable(e,s=!1){!s&&e.type==="AssignmentExpression"&&e.left.type==="TypeCastExpression"&&(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,s)}toAssignableList(e,s,i){for(let r=0;r1||!s)&&this.raise(T.TypeCastInPattern,{at:n.typeAnnotation})}return e}parseArrayLike(e,s,i,r){let n=super.parseArrayLike(e,s,i,r);return s&&!this.state.maybeInArrowParameters&&this.toReferencedList(n.elements),n}isValidLVal(e,s,i){return e==="TypeCastExpression"||super.isValidLVal(e,s,i)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,s,i,r,n,o){if(s.variance&&this.unexpected(s.variance.loc.start),delete s.variance,this.match(47)&&(s.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,s,i,r,n,o),s.params&&n){let h=s.params;h.length>0&&this.isThisParam(h[0])&&this.raise(T.ThisParamBannedInConstructor,{at:s})}else if(s.type==="MethodDefinition"&&n&&s.value.params){let h=s.value.params;h.length>0&&this.isThisParam(h[0])&&this.raise(T.ThisParamBannedInConstructor,{at:s})}}pushClassPrivateMethod(e,s,i,r){s.variance&&this.unexpected(s.variance.loc.start),delete s.variance,this.match(47)&&(s.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,s,i,r)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&this.match(47)&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(111)){this.next();let s=e.implements=[];do{let i=this.startNode();i.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?i.typeParameters=this.flowParseTypeParameterInstantiation():i.typeParameters=null,s.push(this.finishNode(i,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);let s=this.getObjectOrClassMethodParams(e);if(s.length>0){let i=s[0];this.isThisParam(i)&&e.kind==="get"?this.raise(T.GetterMayNotHaveThisParam,{at:i}):this.isThisParam(i)&&this.raise(T.SetterMayNotHaveThisParam,{at:i})}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,s,i,r,n,o,h){e.variance&&this.unexpected(e.variance.loc.start),delete e.variance;let l;this.match(47)&&!o&&(l=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let c=super.parseObjPropValue(e,s,i,r,n,o,h);return l&&((c.value||c).typeParameters=l),c}parseAssignableListItemTypes(e){return this.eat(17)&&(e.type!=="Identifier"&&this.raise(T.PatternIsOptional,{at:e}),this.isThisParam(e)&&this.raise(T.ThisParamMayNotBeOptional,{at:e}),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(T.ThisParamAnnotationRequired,{at:e}),this.match(29)&&this.isThisParam(e)&&this.raise(T.ThisParamNoDefault,{at:e}),this.resetEndLocation(e),e}parseMaybeDefault(e,s){let i=super.parseMaybeDefault(e,s);return i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.startsuper.parseMaybeAssign(e,s),r),!n.error)return n.node;let{context:l}=this.state,c=l[l.length-1];(c===E.j_oTag||c===E.j_expr)&&l.pop()}if((i=n)!=null&&i.error||this.match(47)){var o,h;r=r||this.state.clone();let l,c=this.tryParse(d=>{var f;l=this.flowParseTypeParameterDeclaration();let x=this.forwardNoArrowParamsConversionAt(l,()=>{let C=super.parseMaybeAssign(e,s);return this.resetStartLocationFromNode(C,l),C});(f=x.extra)!=null&&f.parenthesized&&d();let I=this.maybeUnwrapTypeCastExpression(x);return I.type!=="ArrowFunctionExpression"&&d(),I.typeParameters=l,this.resetStartLocationFromNode(I,l),x},r),u=null;if(c.node&&this.maybeUnwrapTypeCastExpression(c.node).type==="ArrowFunctionExpression"){if(!c.error&&!c.aborted)return c.node.async&&this.raise(T.UnexpectedTypeParameterBeforeAsyncArrowFunction,{at:l}),c.node;u=c.node}if((o=n)!=null&&o.node)return this.state=n.failState,n.node;if(u)return this.state=c.failState,u;throw(h=n)!=null&&h.thrown?n.error:c.thrown?c.error:this.raise(T.UnexpectedTokenAfterTypeParameter,{at:l})}return super.parseMaybeAssign(e,s)}parseArrow(e){if(this.match(14)){let s=this.tryParse(()=>{let i=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let r=this.startNode();return[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=i,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),r});if(s.thrown)return null;s.error&&(this.state=s.failState),e.returnType=s.node.typeAnnotation?this.finishNode(s.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,s){this.state.noArrowParamsConversionAt.indexOf(e.start)!==-1?e.params=s:super.setArrowFunctionParameters(e,s)}checkParams(e,s,i,r=!0){if(!(i&&this.state.noArrowParamsConversionAt.indexOf(e.start)!==-1)){for(let n=0;n0&&this.raise(T.ThisParamMustBeFirst,{at:e.params[n]});super.checkParams(e,s,i,r)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&this.state.noArrowAt.indexOf(this.state.start)===-1)}parseSubscripts(e,s,i){if(e.type==="Identifier"&&e.name==="async"&&this.state.noArrowAt.indexOf(s.index)!==-1){this.next();let r=this.startNodeAt(s);r.callee=e,r.arguments=super.parseCallExpressionArguments(11,!1),e=this.finishNode(r,"CallExpression")}else if(e.type==="Identifier"&&e.name==="async"&&this.match(47)){let r=this.state.clone(),n=this.tryParse(h=>this.parseAsyncArrowWithTypeParameters(s)||h(),r);if(!n.error&&!n.aborted)return n.node;let o=this.tryParse(()=>super.parseSubscripts(e,s,i),r);if(o.node&&!o.error)return o.node;if(n.node)return this.state=n.failState,n.node;if(o.node)return this.state=o.failState,o.node;throw n.error||o.error}return super.parseSubscripts(e,s,i)}parseSubscript(e,s,i,r){if(this.match(18)&&this.isLookaheadToken_lt()){if(r.optionalChainMember=!0,i)return r.stop=!0,e;this.next();let n=this.startNodeAt(s);return n.callee=e,n.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),n.arguments=this.parseCallExpressionArguments(11,!1),n.optional=!0,this.finishCallExpression(n,!0)}else if(!i&&this.shouldParseTypes()&&this.match(47)){let n=this.startNodeAt(s);n.callee=e;let o=this.tryParse(()=>(n.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),n.arguments=super.parseCallExpressionArguments(11,!1),r.optionalChainMember&&(n.optional=!1),this.finishCallExpression(n,r.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(e,s,i,r)}parseNewCallee(e){super.parseNewCallee(e);let s=null;this.shouldParseTypes()&&this.match(47)&&(s=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),e.typeArguments=s}parseAsyncArrowWithTypeParameters(e){let s=this.startNodeAt(e);if(this.parseFunctionParams(s,!1),!!this.parseArrow(s))return super.parseArrowExpression(s,void 0,!0)}readToken_mult_modulo(e){let s=this.input.charCodeAt(this.state.pos+1);if(e===42&&s===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(e)}readToken_pipe_amp(e){let s=this.input.charCodeAt(this.state.pos+1);if(e===124&&s===125){this.finishOp(9,2);return}super.readToken_pipe_amp(e)}parseTopLevel(e,s){let i=super.parseTopLevel(e,s);return this.state.hasFlowComment&&this.raise(T.UnterminatedFlowComment,{at:this.state.curPosition()}),i}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(T.NestedFlowComment,{at:this.state.startLoc});this.hasFlowCommentCompletion();let e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:e}=this.state,s=2;for(;[32,9].includes(this.input.charCodeAt(e+s));)s++;let i=this.input.charCodeAt(s+e),r=this.input.charCodeAt(s+e+1);return i===58&&r===58?s+2:this.input.slice(s+e,s+e+12)==="flow-include"?s+12:i===58&&r!==58?s:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(p.UnterminatedComment,{at:this.state.curPosition()})}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:s,memberName:i}){this.raise(T.EnumBooleanMemberNotInitialized,{at:e,memberName:i,enumName:s})}flowEnumErrorInvalidMemberInitializer(e,s){return this.raise(s.explicitType?s.explicitType==="symbol"?T.EnumInvalidMemberInitializerSymbolType:T.EnumInvalidMemberInitializerPrimaryType:T.EnumInvalidMemberInitializerUnknownType,Object.assign({at:e},s))}flowEnumErrorNumberMemberNotInitialized(e,{enumName:s,memberName:i}){this.raise(T.EnumNumberMemberNotInitialized,{at:e,enumName:s,memberName:i})}flowEnumErrorStringMemberInconsistentlyInitailized(e,{enumName:s}){this.raise(T.EnumStringMemberInconsistentlyInitailized,{at:e,enumName:s})}flowEnumMemberInit(){let e=this.state.startLoc,s=()=>this.match(12)||this.match(8);switch(this.state.type){case 132:{let i=this.parseNumericLiteral(this.state.value);return s()?{type:"number",loc:i.loc.start,value:i}:{type:"invalid",loc:e}}case 131:{let i=this.parseStringLiteral(this.state.value);return s()?{type:"string",loc:i.loc.start,value:i}:{type:"invalid",loc:e}}case 85:case 86:{let i=this.parseBooleanLiteral(this.match(85));return s()?{type:"boolean",loc:i.loc.start,value:i}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){let e=this.state.startLoc,s=this.parseIdentifier(!0),i=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e};return{id:s,init:i}}flowEnumCheckExplicitTypeMismatch(e,s,i){let{explicitType:r}=s;r!==null&&r!==i&&this.flowEnumErrorInvalidMemberInitializer(e,s)}flowEnumMembers({enumName:e,explicitType:s}){let i=new Set,r={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},n=!1;for(;!this.match(8);){if(this.eat(21)){n=!0;break}let o=this.startNode(),{id:h,init:l}=this.flowEnumMemberRaw(),c=h.name;if(c==="")continue;/^[a-z]/.test(c)&&this.raise(T.EnumInvalidMemberName,{at:h,memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:e}),i.has(c)&&this.raise(T.EnumDuplicateMemberName,{at:h,memberName:c,enumName:e}),i.add(c);let u={enumName:e,explicitType:s,memberName:c};switch(o.id=h,l.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(l.loc,u,"boolean"),o.init=l.value,r.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(l.loc,u,"number"),o.init=l.value,r.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(l.loc,u,"string"),o.init=l.value,r.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(l.loc,u);case"none":switch(s){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(l.loc,u);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(l.loc,u);break;default:r.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:r,hasUnknownMembers:n}}flowEnumStringMembers(e,s,{enumName:i}){if(e.length===0)return s;if(s.length===0)return e;if(s.length>e.length){for(let r of e)this.flowEnumErrorStringMemberInconsistentlyInitailized(r,{enumName:i});return s}else{for(let r of s)this.flowEnumErrorStringMemberInconsistentlyInitailized(r,{enumName:i});return e}}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(101))return null;if(!S(this.state.type))throw this.raise(T.EnumInvalidExplicitTypeUnknownSupplied,{at:this.state.startLoc,enumName:e});let{value:s}=this.state;return this.next(),s!=="boolean"&&s!=="number"&&s!=="string"&&s!=="symbol"&&this.raise(T.EnumInvalidExplicitType,{at:this.state.startLoc,enumName:e,invalidEnumType:s}),s}flowEnumBody(e,s){let i=s.name,r=s.loc.start,n=this.flowEnumParseExplicitType({enumName:i});this.expect(5);let{members:o,hasUnknownMembers:h}=this.flowEnumMembers({enumName:i,explicitType:n});switch(e.hasUnknownMembers=h,n){case"boolean":return e.explicitType=!0,e.members=o.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=o.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=o.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{let l=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;let c=o.booleanMembers.length,u=o.numberMembers.length,d=o.stringMembers.length,f=o.defaultedMembers.length;if(!c&&!u&&!d&&!f)return l();if(!c&&!u)return e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(e,"EnumStringBody");if(!u&&!d&&c>=f){for(let x of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(x.loc.start,{enumName:i,memberName:x.id.name});return e.members=o.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}else if(!c&&!d&&u>=f){for(let x of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(x.loc.start,{enumName:i,memberName:x.id.name});return e.members=o.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}else return this.raise(T.EnumInconsistentMemberValues,{at:r,enumName:i}),l()}}}flowParseEnumDeclaration(e){let s=this.parseIdentifier();return e.id=s,e.body=this.flowEnumBody(this.startNode(),s),this.finishNode(e,"EnumDeclaration")}isLookaheadToken_lt(){let e=this.nextTokenStart();if(this.input.charCodeAt(e)===60){let s=this.input.charCodeAt(e+1);return s!==60&&s!==61}return!1}maybeUnwrapTypeCastExpression(e){return e.type==="TypeCastExpression"?e.expression:e}},Y=V`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:a})=>`Expected corresponding JSX closing tag for <${a}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:a,HTMLEntity:t})=>`Unexpected token \`${a}\`. Did you mean \`${t}\` or \`{'${a}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?"});function H(a){return a?a.type==="JSXOpeningFragment"||a.type==="JSXClosingFragment":!1}function oe(a){if(a.type==="JSXIdentifier")return a.name;if(a.type==="JSXNamespacedName")return a.namespace.name+":"+a.name.name;if(a.type==="JSXMemberExpression")return oe(a.object)+"."+oe(a.property);throw new Error("Node had unexpected type: "+a.type)}var sa=a=>class extends a{jsxReadToken(){let e="",s=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Y.UnterminatedJsxContent,{at:this.state.startLoc});let i=this.input.charCodeAt(this.state.pos);switch(i){case 60:case 123:if(this.state.pos===this.state.start){i===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(140)):super.getTokenFromCode(i);return}e+=this.input.slice(s,this.state.pos),this.finishToken(139,e);return;case 38:e+=this.input.slice(s,this.state.pos),e+=this.jsxReadEntity(),s=this.state.pos;break;case 62:case 125:default:ke(i)?(e+=this.input.slice(s,this.state.pos),e+=this.jsxReadNewLine(!0),s=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){let s=this.input.charCodeAt(this.state.pos),i;return++this.state.pos,s===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,i=e?` +- Did you mean \`import { "${a}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:a})=>`\`import()\` requires exactly ${a===1?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:a})=>`Expected number in radix ${a}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:a})=>`Escape sequence in keyword ${a}.`,InvalidIdentifier:({identifierName:a})=>`Invalid identifier ${a}.`,InvalidLhs:({ancestor:a})=>`Invalid left-hand side in ${Qe(a)}.`,InvalidLhsBinding:({ancestor:a})=>`Binding invalid left-hand side in ${Qe(a)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:a})=>`Unexpected character '${a}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:a})=>`Private name #${a} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:a})=>`Label '${a}' is already declared.`,LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:a})=>`This experimental syntax requires enabling the parser plugin: ${a.map(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:a})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${a.map(t=>JSON.stringify(t)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:a})=>`Duplicate key "${a}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:a})=>`An export name cannot include a lone surrogate, found '\\u${a.toString(16)}'.`,ModuleExportUndefined:({localName:a})=>`Export '${a}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:a})=>`Private names are only allowed in property accesses (\`obj.#${a}\`) or in \`in\` expressions (\`#${a} in obj\`).`,PrivateNameRedeclaration:({identifierName:a})=>`Duplicate private name #${a}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:a})=>`Unexpected keyword '${a}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:a})=>`Unexpected reserved word '${a}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:a,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${a?`, expected "${a}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:a,onlyValidPropertyName:t})=>`The only valid meta property for ${a} is ${a}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:a})=>`Identifier '${a}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},hi={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:a})=>`Assigning to '${a}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:a})=>`Binding '${a}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},li=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),ci={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:a})=>`Invalid topic token ${a}. In order to use ${a} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${a}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:a})=>`Hack-style pipe body cannot be an unparenthesized ${Qe({type:a})}; please wrap it in parentheses.`,PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},pi=["toMessage"],ui=["message"];function di(a){let{toMessage:t}=a,e=De(a,pi);return function s({loc:i,details:r}){return ai(SyntaxError,Object.assign({},e,{loc:i}),{clone(n={}){let o=n.loc||{};return s({loc:new F("line"in o?o.line:this.loc.line,"column"in o?o.column:this.loc.column,"index"in o?o.index:this.loc.index),details:Object.assign({},this.details,n.details)})},details:{value:r,enumerable:!1},message:{get(){return`${t(this.details)} (${this.loc.line}:${this.loc.column})`},set(n){Object.defineProperty(this,"message",{value:n})}},pos:{reflect:"loc.index",enumerable:!0},missingPlugin:"missingPlugin"in r&&{reflect:"details.missingPlugin",enumerable:!0}})}}function $(a,t){if(Array.isArray(a))return s=>$(s,a[0]);let e={};for(let s of Object.keys(a)){let i=a[s],r=typeof i=="string"?{message:()=>i}:typeof i=="function"?{message:i}:i,{message:n}=r,o=De(r,ui),h=typeof n=="string"?()=>n:n;e[s]=di(Object.assign({code:Ye.SyntaxError,reasonCode:s,toMessage:h},t?{syntaxPlugin:t}:{},o))}return e}var p=Object.assign({},$(ni),$(oi),$(hi),$`pipelineOperator`(ci)),{defineProperty:fi}=Object,_t=(a,t)=>fi(a,t,{enumerable:!1,value:a[t]});function pe(a){return a.loc.start&&_t(a.loc.start,"index"),a.loc.end&&_t(a.loc.end,"index"),a}var mi=a=>class extends a{parse(){let e=pe(super.parse());return this.options.tokens&&(e.tokens=e.tokens.map(pe)),e}parseRegExpLiteral({pattern:e,flags:s}){let i=null;try{i=new RegExp(e,s)}catch{}let r=this.estreeParseLiteral(i);return r.regex={pattern:e,flags:s},r}parseBigIntLiteral(e){let s;try{s=BigInt(e)}catch{s=null}let i=this.estreeParseLiteral(s);return i.bigint=String(i.value||e),i}parseDecimalLiteral(e){let i=this.estreeParseLiteral(null);return i.decimal=String(i.value||e),i}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}directiveToStmt(e){let s=e.value;delete e.value,s.type="Literal",s.raw=s.extra.raw,s.value=s.extra.expressionValue;let i=e;return i.type="ExpressionStatement",i.expression=s,i.directive=s.extra.rawValue,delete s.extra,i}initFunction(e,s){super.initFunction(e,s),e.expression=!1}checkDeclaration(e){e!=null&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var s;return e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&!((s=e.expression.extra)!=null&&s.parenthesized)}parseBlockBody(e,s,i,r,n){super.parseBlockBody(e,s,i,r,n);let o=e.directives.map(h=>this.directiveToStmt(h));e.body=o.concat(e.body),delete e.directives}pushClassMethod(e,s,i,r,n,o){this.parseMethod(s,i,r,n,o,"ClassMethod",!0),s.typeParameters&&(s.value.typeParameters=s.typeParameters,delete s.typeParameters),e.body.push(s)}parsePrivateName(){let e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){let s=super.getPrivateNameSV(e);return e=e,delete e.id,e.name=s,e.type="PrivateIdentifier",e}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?e.type==="PrivateIdentifier":super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,s){let i=super.parseLiteral(e,s);return i.raw=i.extra.raw,delete i.extra,i}parseFunctionBody(e,s,i=!1){super.parseFunctionBody(e,s,i),e.expression=e.body.type!=="BlockStatement"}parseMethod(e,s,i,r,n,o,h=!1){let l=this.startNode();return l.kind=e.kind,l=super.parseMethod(l,s,i,r,n,o,h),l.type="FunctionExpression",delete l.kind,e.value=l,o==="ClassPrivateMethod"&&(e.computed=!1),this.finishNode(e,"MethodDefinition")}parseClassProperty(...e){let s=super.parseClassProperty(...e);return this.getPluginOption("estree","classFeatures")&&(s.type="PropertyDefinition"),s}parseClassPrivateProperty(...e){let s=super.parseClassPrivateProperty(...e);return this.getPluginOption("estree","classFeatures")&&(s.type="PropertyDefinition",s.computed=!1),s}parseObjectMethod(e,s,i,r,n){let o=super.parseObjectMethod(e,s,i,r,n);return o&&(o.type="Property",o.kind==="method"&&(o.kind="init"),o.shorthand=!1),o}parseObjectProperty(e,s,i,r){let n=super.parseObjectProperty(e,s,i,r);return n&&(n.kind="init",n.type="Property"),n}isValidLVal(e,s,i){return e==="Property"?"value":super.isValidLVal(e,s,i)}isAssignable(e,s){return e!=null&&this.isObjectProperty(e)?this.isAssignable(e.value,s):super.isAssignable(e,s)}toAssignable(e,s=!1){if(e!=null&&this.isObjectProperty(e)){let{key:i,value:r}=e;this.isPrivateName(i)&&this.classScope.usePrivateName(this.getPrivateNameSV(i),i.loc.start),this.toAssignable(r,s)}else super.toAssignable(e,s)}toAssignableObjectExpressionProp(e,s,i){e.kind==="get"||e.kind==="set"?this.raise(p.PatternHasAccessor,{at:e.key}):e.method?this.raise(p.PatternHasMethod,{at:e.key}):super.toAssignableObjectExpressionProp(e,s,i)}finishCallExpression(e,s){let i=super.finishCallExpression(e,s);if(i.callee.type==="Import"){if(i.type="ImportExpression",i.source=i.arguments[0],this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")){var r;i.attributes=(r=i.arguments[1])!=null?r:null}delete i.arguments,delete i.callee}return i}toReferencedArguments(e){e.type!=="ImportExpression"&&super.toReferencedArguments(e)}parseExport(e,s){let i=this.state.lastTokStartLoc,r=super.parseExport(e,s);switch(r.type){case"ExportAllDeclaration":r.exported=null;break;case"ExportNamedDeclaration":r.specifiers.length===1&&r.specifiers[0].type==="ExportNamespaceSpecifier"&&(r.type="ExportAllDeclaration",r.exported=r.specifiers[0].exported,delete r.specifiers);case"ExportDefaultDeclaration":{var n;let{declaration:o}=r;(o==null?void 0:o.type)==="ClassDeclaration"&&((n=o.decorators)==null?void 0:n.length)>0&&o.start===r.start&&this.resetStartLocation(r,i)}break}return r}parseSubscript(e,s,i,r){let n=super.parseSubscript(e,s,i,r);if(r.optionalChainMember){if((n.type==="OptionalMemberExpression"||n.type==="OptionalCallExpression")&&(n.type=n.type.substring(8)),r.stop){let o=this.startNodeAtNode(n);return o.expression=n,this.finishNode(o,"ChainExpression")}}else(n.type==="MemberExpression"||n.type==="CallExpression")&&(n.optional=!1);return n}hasPropertyAsPrivateName(e){return e.type==="ChainExpression"&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return e.type==="Property"&&e.kind==="init"&&!e.method}isObjectMethod(e){return e.method||e.kind==="get"||e.kind==="set"}finishNodeAt(e,s,i){return pe(super.finishNodeAt(e,s,i))}resetStartLocation(e,s){super.resetStartLocation(e,s),pe(e)}resetEndLocation(e,s=this.state.lastTokEndLoc){super.resetEndLocation(e,s),pe(e)}},X=class{constructor(t,e){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!e}},w={brace:new X("{"),j_oTag:new X("...",!0)};w.template=new X("`",!0);var T=!0,m=!0,He=!0,ue=!0,z=!0,yi=!0,Me=class{constructor(t,e={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.rightAssociative=!!e.rightAssociative,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop!=null?e.binop:null,this.updateContext=null}},gt=new Map;function A(a,t={}){t.keyword=a;let e=P(a,t);return gt.set(a,e),e}function v(a,t){return P(a,{beforeExpr:T,binop:t})}var ye=-1,U=[],Tt=[],bt=[],At=[],St=[],wt=[];function P(a,t={}){var e,s,i,r;return++ye,Tt.push(a),bt.push((e=t.binop)!=null?e:-1),At.push((s=t.beforeExpr)!=null?s:!1),St.push((i=t.startsExpr)!=null?i:!1),wt.push((r=t.prefix)!=null?r:!1),U.push(new Me(a,t)),ye}function b(a,t={}){var e,s,i,r;return++ye,gt.set(a,ye),Tt.push(a),bt.push((e=t.binop)!=null?e:-1),At.push((s=t.beforeExpr)!=null?s:!1),St.push((i=t.startsExpr)!=null?i:!1),wt.push((r=t.prefix)!=null?r:!1),U.push(new Me("name",t)),ye}var xi={bracketL:P("[",{beforeExpr:T,startsExpr:m}),bracketHashL:P("#[",{beforeExpr:T,startsExpr:m}),bracketBarL:P("[|",{beforeExpr:T,startsExpr:m}),bracketR:P("]"),bracketBarR:P("|]"),braceL:P("{",{beforeExpr:T,startsExpr:m}),braceBarL:P("{|",{beforeExpr:T,startsExpr:m}),braceHashL:P("#{",{beforeExpr:T,startsExpr:m}),braceR:P("}"),braceBarR:P("|}"),parenL:P("(",{beforeExpr:T,startsExpr:m}),parenR:P(")"),comma:P(",",{beforeExpr:T}),semi:P(";",{beforeExpr:T}),colon:P(":",{beforeExpr:T}),doubleColon:P("::",{beforeExpr:T}),dot:P("."),question:P("?",{beforeExpr:T}),questionDot:P("?."),arrow:P("=>",{beforeExpr:T}),template:P("template"),ellipsis:P("...",{beforeExpr:T}),backQuote:P("`",{startsExpr:m}),dollarBraceL:P("${",{beforeExpr:T,startsExpr:m}),templateTail:P("...`",{startsExpr:m}),templateNonTail:P("...${",{beforeExpr:T,startsExpr:m}),at:P("@"),hash:P("#",{startsExpr:m}),interpreterDirective:P("#!..."),eq:P("=",{beforeExpr:T,isAssign:ue}),assign:P("_=",{beforeExpr:T,isAssign:ue}),slashAssign:P("_=",{beforeExpr:T,isAssign:ue}),xorAssign:P("_=",{beforeExpr:T,isAssign:ue}),moduloAssign:P("_=",{beforeExpr:T,isAssign:ue}),incDec:P("++/--",{prefix:z,postfix:yi,startsExpr:m}),bang:P("!",{beforeExpr:T,prefix:z,startsExpr:m}),tilde:P("~",{beforeExpr:T,prefix:z,startsExpr:m}),doubleCaret:P("^^",{startsExpr:m}),doubleAt:P("@@",{startsExpr:m}),pipeline:v("|>",0),nullishCoalescing:v("??",1),logicalOR:v("||",1),logicalAND:v("&&",2),bitwiseOR:v("|",3),bitwiseXOR:v("^",4),bitwiseAND:v("&",5),equality:v("==/!=/===/!==",6),lt:v("/<=/>=",7),gt:v("/<=/>=",7),relational:v("/<=/>=",7),bitShift:v("<>/>>>",8),bitShiftL:v("<>/>>>",8),bitShiftR:v("<>/>>>",8),plusMin:P("+/-",{beforeExpr:T,binop:9,prefix:z,startsExpr:m}),modulo:P("%",{binop:10,startsExpr:m}),star:P("*",{binop:10}),slash:v("/",10),exponent:P("**",{beforeExpr:T,binop:11,rightAssociative:!0}),_in:A("in",{beforeExpr:T,binop:7}),_instanceof:A("instanceof",{beforeExpr:T,binop:7}),_break:A("break"),_case:A("case",{beforeExpr:T}),_catch:A("catch"),_continue:A("continue"),_debugger:A("debugger"),_default:A("default",{beforeExpr:T}),_else:A("else",{beforeExpr:T}),_finally:A("finally"),_function:A("function",{startsExpr:m}),_if:A("if"),_return:A("return",{beforeExpr:T}),_switch:A("switch"),_throw:A("throw",{beforeExpr:T,prefix:z,startsExpr:m}),_try:A("try"),_var:A("var"),_const:A("const"),_with:A("with"),_new:A("new",{beforeExpr:T,startsExpr:m}),_this:A("this",{startsExpr:m}),_super:A("super",{startsExpr:m}),_class:A("class",{startsExpr:m}),_extends:A("extends",{beforeExpr:T}),_export:A("export"),_import:A("import",{startsExpr:m}),_null:A("null",{startsExpr:m}),_true:A("true",{startsExpr:m}),_false:A("false",{startsExpr:m}),_typeof:A("typeof",{beforeExpr:T,prefix:z,startsExpr:m}),_void:A("void",{beforeExpr:T,prefix:z,startsExpr:m}),_delete:A("delete",{beforeExpr:T,prefix:z,startsExpr:m}),_do:A("do",{isLoop:He,beforeExpr:T}),_for:A("for",{isLoop:He}),_while:A("while",{isLoop:He}),_as:b("as",{startsExpr:m}),_assert:b("assert",{startsExpr:m}),_async:b("async",{startsExpr:m}),_await:b("await",{startsExpr:m}),_from:b("from",{startsExpr:m}),_get:b("get",{startsExpr:m}),_let:b("let",{startsExpr:m}),_meta:b("meta",{startsExpr:m}),_of:b("of",{startsExpr:m}),_sent:b("sent",{startsExpr:m}),_set:b("set",{startsExpr:m}),_static:b("static",{startsExpr:m}),_using:b("using",{startsExpr:m}),_yield:b("yield",{startsExpr:m}),_asserts:b("asserts",{startsExpr:m}),_checks:b("checks",{startsExpr:m}),_exports:b("exports",{startsExpr:m}),_global:b("global",{startsExpr:m}),_implements:b("implements",{startsExpr:m}),_intrinsic:b("intrinsic",{startsExpr:m}),_infer:b("infer",{startsExpr:m}),_is:b("is",{startsExpr:m}),_mixins:b("mixins",{startsExpr:m}),_proto:b("proto",{startsExpr:m}),_require:b("require",{startsExpr:m}),_satisfies:b("satisfies",{startsExpr:m}),_keyof:b("keyof",{startsExpr:m}),_readonly:b("readonly",{startsExpr:m}),_unique:b("unique",{startsExpr:m}),_abstract:b("abstract",{startsExpr:m}),_declare:b("declare",{startsExpr:m}),_enum:b("enum",{startsExpr:m}),_module:b("module",{startsExpr:m}),_namespace:b("namespace",{startsExpr:m}),_interface:b("interface",{startsExpr:m}),_type:b("type",{startsExpr:m}),_opaque:b("opaque",{startsExpr:m}),name:P("name",{startsExpr:m}),string:P("string",{startsExpr:m}),num:P("num",{startsExpr:m}),bigint:P("bigint",{startsExpr:m}),decimal:P("decimal",{startsExpr:m}),regexp:P("regexp",{startsExpr:m}),privateName:P("#name",{startsExpr:m}),eof:P("eof"),jsxName:P("jsxName"),jsxText:P("jsxText",{beforeExpr:!0}),jsxTagStart:P("jsxTagStart",{startsExpr:!0}),jsxTagEnd:P("jsxTagEnd"),placeholder:P("%%",{startsExpr:!0})};function S(a){return a>=93&&a<=130}function Pi(a){return a<=92}function M(a){return a>=58&&a<=130}function Yt(a){return a>=58&&a<=134}function gi(a){return At[a]}function Ze(a){return St[a]}function Ti(a){return a>=29&&a<=33}function Ut(a){return a>=127&&a<=129}function bi(a){return a>=90&&a<=92}function Ct(a){return a>=58&&a<=92}function Ai(a){return a>=39&&a<=59}function Si(a){return a===34}function wi(a){return wt[a]}function Ci(a){return a>=119&&a<=121}function Ei(a){return a>=122&&a<=128}function q(a){return Tt[a]}function ke(a){return bt[a]}function Ii(a){return a===57}function Oe(a){return a>=24&&a<=25}function _(a){return U[a]}U[8].updateContext=a=>{a.pop()},U[5].updateContext=U[7].updateContext=U[23].updateContext=a=>{a.push(w.brace)},U[22].updateContext=a=>{a[a.length-1]===w.template?a.pop():a.push(w.template)},U[140].updateContext=a=>{a.push(w.j_expr,w.j_oTag)};var Et="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Qt="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F",Ni=new RegExp("["+Et+"]"),ki=new RegExp("["+Et+Qt+"]");Et=Qt=null;var Zt=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],vi=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function et(a,t){let e=65536;for(let s=0,i=t.length;sa)return!1;if(e+=t[s+1],e>=a)return!0}return!1}function j(a){return a<65?a===36:a<=90?!0:a<97?a===95:a<=122?!0:a<=65535?a>=170&&Ni.test(String.fromCharCode(a)):et(a,Zt)}function ee(a){return a<48?a===36:a<58?!0:a<65?!1:a<=90?!0:a<97?a===95:a<=122?!0:a<=65535?a>=170&&ki.test(String.fromCharCode(a)):et(a,Zt)||et(a,vi)}var It={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},Li=new Set(It.keyword),Di=new Set(It.strict),Mi=new Set(It.strictBind);function es(a,t){return t&&a==="await"||a==="enum"}function ts(a,t){return es(a,t)||Di.has(a)}function ss(a){return Mi.has(a)}function is(a,t){return ts(a,t)||ss(a)}function Oi(a){return Li.has(a)}function Fi(a,t,e){return a===64&&t===64&&j(e)}var Bi=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function Ri(a){return Bi.has(a)}var Pe=class{constructor(t){this.var=new Set,this.lexical=new Set,this.functions=new Set,this.flags=t}},ge=class{constructor(t,e){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=e}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let t=this.currentThisScopeFlags();return(t&64)>0&&(t&2)===0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(e&128)return!0;if(e&451)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new Pe(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(t.flags&130||!this.parser.inModule&&t.flags&1)}declareName(t,e,s){let i=this.currentScope();if(e&8||e&16)this.checkRedeclarationInScope(i,t,e,s),e&16?i.functions.add(t):i.lexical.add(t),e&8&&this.maybeExportDefined(i,t);else if(e&4)for(let r=this.scopeStack.length-1;r>=0&&(i=this.scopeStack[r],this.checkRedeclarationInScope(i,t,e,s),i.var.add(t),this.maybeExportDefined(i,t),!(i.flags&387));--r);this.parser.inModule&&i.flags&1&&this.undefinedExports.delete(t)}maybeExportDefined(t,e){this.parser.inModule&&t.flags&1&&this.undefinedExports.delete(e)}checkRedeclarationInScope(t,e,s,i){this.isRedeclaredInScope(t,e,s)&&this.parser.raise(p.VarRedeclaration,{at:i,identifierName:e})}isRedeclaredInScope(t,e,s){return s&1?s&8?t.lexical.has(e)||t.functions.has(e)||t.var.has(e):s&16?t.lexical.has(e)||!this.treatFunctionsAsVarInScope(t)&&t.var.has(e):t.lexical.has(e)&&!(t.flags&8&&t.lexical.values().next().value===e)||!this.treatFunctionsAsVarInScope(t)&&t.functions.has(e):!1}checkLocalExport(t){let{name:e}=t,s=this.scopeStack[0];!s.lexical.has(e)&&!s.var.has(e)&&!s.functions.has(e)&&this.undefinedExports.set(e,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(e&387)return e}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(e&451&&!(e&4))return e}}},tt=class extends Pe{constructor(...t){super(...t),this.declareFunctions=new Set}},st=class extends ge{createScope(t){return new tt(t)}declareName(t,e,s){let i=this.currentScope();if(e&2048){this.checkRedeclarationInScope(i,t,e,s),this.maybeExportDefined(i,t),i.declareFunctions.add(t);return}super.declareName(t,e,s)}isRedeclaredInScope(t,e,s){return super.isRedeclaredInScope(t,e,s)?!0:s&2048?!t.declareFunctions.has(e)&&(t.lexical.has(e)||t.functions.has(e)):!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}},it=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(t){if(typeof t=="string")return this.plugins.has(t);{let[e,s]=t;if(!this.hasPlugin(e))return!1;let i=this.plugins.get(e);for(let r of Object.keys(s))if((i==null?void 0:i[r])!==s[r])return!1;return!0}}getPluginOption(t,e){var s;return(s=this.plugins.get(t))==null?void 0:s[e]}};function rs(a,t){a.trailingComments===void 0?a.trailingComments=t:a.trailingComments.unshift(...t)}function _i(a,t){a.leadingComments===void 0?a.leadingComments=t:a.leadingComments.unshift(...t)}function Te(a,t){a.innerComments===void 0?a.innerComments=t:a.innerComments.unshift(...t)}function de(a,t,e){let s=null,i=t.length;for(;s===null&&i>0;)s=t[--i];s===null||s.start>e.start?Te(a,e.comments):rs(s,e.comments)}var rt=class extends it{addComment(t){this.filename&&(t.loc.filename=this.filename),this.state.comments.push(t)}processComment(t){let{commentStack:e}=this.state,s=e.length;if(s===0)return;let i=s-1,r=e[i];r.start===t.end&&(r.leadingNode=t,i--);let{start:n}=t;for(;i>=0;i--){let o=e[i],h=o.end;if(h>n)o.containingNode=t,this.finalizeComment(o),e.splice(i,1);else{h===n&&(o.trailingNode=t);break}}}finalizeComment(t){let{comments:e}=t;if(t.leadingNode!==null||t.trailingNode!==null)t.leadingNode!==null&&rs(t.leadingNode,e),t.trailingNode!==null&&_i(t.trailingNode,e);else{let{containingNode:s,start:i}=t;if(this.input.charCodeAt(i-1)===44)switch(s.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":de(s,s.properties,t);break;case"CallExpression":case"OptionalCallExpression":de(s,s.arguments,t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":de(s,s.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":de(s,s.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":de(s,s.specifiers,t);break;default:Te(s,e)}else Te(s,e)}}finalizeRemainingComments(){let{commentStack:t}=this.state;for(let e=t.length-1;e>=0;e--)this.finalizeComment(t[e]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(t){let{commentStack:e}=this.state,{length:s}=e;if(s===0)return;let i=e[s-1];i.leadingNode===t&&(i.leadingNode=null)}resetPreviousIdentifierLeadingComments(t){let{commentStack:e}=this.state,{length:s}=e;s!==0&&(e[s-1].trailingNode===t?e[s-1].trailingNode=null:s>=2&&e[s-2].trailingNode===t&&(e[s-2].trailingNode=null))}takeSurroundingComments(t,e,s){let{commentStack:i}=this.state,r=i.length;if(r===0)return;let n=r-1;for(;n>=0;n--){let o=i[n],h=o.end;if(o.start===s)o.leadingNode=t;else if(h===e)o.trailingNode=t;else if(h=48&&t<=57},$t={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Ne={bin:a=>a===48||a===49,oct:a=>a>=48&&a<=55,dec:a=>a>=48&&a<=57,hex:a=>a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102};function Vt(a,t,e,s,i,r){let n=e,o=s,h=i,l="",c=null,u=e,{length:f}=t;for(;;){if(e>=f){r.unterminated(n,o,h),l+=t.slice(u,e);break}let d=t.charCodeAt(e);if($i(a,d,t,e)){l+=t.slice(u,e);break}if(d===92){l+=t.slice(u,e);let x=Vi(t,e,s,i,a==="template",r);x.ch===null&&!c?c={pos:e,lineStart:s,curLine:i}:l+=x.ch,{pos:e,lineStart:s,curLine:i}=x,u=e}else d===8232||d===8233?(++e,++i,s=e):d===10||d===13?a==="template"?(l+=t.slice(u,e)+` +`,++e,d===13&&t.charCodeAt(e)===10&&++e,++i,u=s=e):r.unterminated(n,o,h):++e}return{pos:e,str:l,firstInvalidLoc:c,lineStart:s,curLine:i,containsInvalid:!!c}}function $i(a,t,e,s){return a==="template"?t===96||t===36&&e.charCodeAt(s+1)===123:t===(a==="double"?34:39)}function Vi(a,t,e,s,i,r){let n=!i;t++;let o=l=>({pos:t,ch:l,lineStart:e,curLine:s}),h=a.charCodeAt(t++);switch(h){case 110:return o(` +`);case 114:return o("\r");case 120:{let l;return{code:l,pos:t}=nt(a,t,e,s,2,!1,n,r),o(l===null?null:String.fromCharCode(l))}case 117:{let l;return{code:l,pos:t}=os(a,t,e,s,n,r),o(l===null?null:String.fromCodePoint(l))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:a.charCodeAt(t)===10&&++t;case 10:e=t,++s;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);r.strictNumericEscape(t-1,e,s);default:if(h>=48&&h<=55){let l=t-1,u=a.slice(l,t+2).match(/^[0-7]+/)[0],f=parseInt(u,8);f>255&&(u=u.slice(0,-1),f=parseInt(u,8)),t+=u.length-1;let d=a.charCodeAt(t);if(u!=="0"||d===56||d===57){if(i)return o(null);r.strictNumericEscape(l,e,s)}return o(String.fromCharCode(f))}return o(String.fromCharCode(h))}}function nt(a,t,e,s,i,r,n,o){let h=t,l;return{n:l,pos:t}=ns(a,t,e,s,16,i,r,!1,o,!n),l===null&&(n?o.invalidEscapeSequence(h,e,s):t=h-1),{code:l,pos:t}}function ns(a,t,e,s,i,r,n,o,h,l){let c=t,u=i===16?$t.hex:$t.decBinOct,f=i===16?Ne.hex:i===10?Ne.dec:i===8?Ne.oct:Ne.bin,d=!1,x=0;for(let I=0,C=r??1/0;I=97?N=E-97+10:E>=65?N=E-65+10:ji(E)?N=E-48:N=1/0,N>=i){if(N<=9&&l)return{n:null,pos:t};if(N<=9&&h.invalidDigit(t,e,s,i))N=0;else if(n)N=0,d=!0;else break}++t,x=x*i+N}return t===c||r!=null&&t-c!==r||d?{n:null,pos:t}:{n:x,pos:t}}function os(a,t,e,s,i,r){let n=a.charCodeAt(t),o;if(n===123){if(++t,{code:o,pos:t}=nt(a,t,e,s,a.indexOf("}",t)-t,!0,i,r),++t,o!==null&&o>1114111)if(i)r.invalidCodePoint(t,e,s);else return{code:null,pos:t}}else({code:o,pos:t}=nt(a,t,e,s,4,!1,i,r));return{code:o,pos:t}}var zi=["at"],Ki=["at"];function fe(a,t,e){return new F(e,a-t,a)}var qi=new Set([103,109,115,105,121,117,100,118]),O=class{constructor(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new ie(t.startLoc,t.endLoc)}},ot=class extends rt{constructor(t,e){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(s,i,r,n)=>this.options.errorRecovery?(this.raise(p.InvalidDigit,{at:fe(s,i,r),radix:n}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(p.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(p.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(p.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(p.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(s,i,r)=>{this.recordStrictModeErrors(p.StrictNumericEscape,{at:fe(s,i,r)})},unterminated:(s,i,r)=>{throw this.raise(p.UnterminatedString,{at:fe(s-1,i,r)})}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(p.StrictNumericEscape),unterminated:(s,i,r)=>{throw this.raise(p.UnterminatedTemplate,{at:fe(s,i,r)})}}),this.state=new at,this.state.init(t),this.input=e,this.length=e.length,this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new O(this.state)),this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return this.match(t)?(this.next(),!0):!1}match(t){return this.state.type===t}createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){let t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let e=this.state;return this.state=t,e}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return We.lastIndex=t,We.test(this.input)?We.lastIndex:t}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(t){return ve.lastIndex=t,ve.test(this.input)?ve.lastIndex:t}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(t){let e=this.input.charCodeAt(t);if((e&64512)===55296&&++tthis.raise(e,{at:s})),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(137);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(t){let e;this.isLookahead||(e=this.state.curPosition());let s=this.state.pos,i=this.input.indexOf(t,s+2);if(i===-1)throw this.raise(p.UnterminatedComment,{at:this.state.curPosition()});for(this.state.pos=i+t.length,Ie.lastIndex=s+2;Ie.test(this.input)&&Ie.lastIndex<=i;)++this.state.curLine,this.state.lineStart=Ie.lastIndex;if(this.isLookahead)return;let r={type:"CommentBlock",value:this.input.slice(s+2,i),start:s,end:i+t.length,loc:new ie(e,this.state.curPosition())};return this.options.tokens&&this.pushToken(r),r}skipLineComment(t){let e=this.state.pos,s;this.isLookahead||(s=this.state.curPosition());let i=this.input.charCodeAt(this.state.pos+=t);if(this.state.post)){let r=this.skipLineComment(3);r!==void 0&&(this.addComment(r),this.options.attachComment&&e.push(r))}else break e}else if(s===60&&!this.inModule&&this.options.annexB){let i=this.state.pos;if(this.input.charCodeAt(i+1)===33&&this.input.charCodeAt(i+2)===45&&this.input.charCodeAt(i+3)===45){let r=this.skipLineComment(4);r!==void 0&&(this.addComment(r),this.options.attachComment&&e.push(r))}else break e}else break e}}if(e.length>0){let s=this.state.pos,i={start:t,end:s,comments:e,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(i)}}finishToken(t,e){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let s=this.state.type;this.state.type=t,this.state.value=e,this.isLookahead||this.updateContext(s)}replaceToken(t){this.state.type=t,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let t=this.state.pos+1,e=this.codePointAtPos(t);if(e>=48&&e<=57)throw this.raise(p.UnexpectedDigitAfterHash,{at:this.state.curPosition()});if(e===123||e===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(e===123?p.RecordExpressionHashIncorrectStartSyntaxType:p.TupleExpressionHashIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,e===123?this.finishToken(7):this.finishToken(1)}else j(e)?(++this.state.pos,this.finishToken(136,this.readWord1(e))):e===92?(++this.state.pos,this.finishToken(136,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let t=this.input.charCodeAt(this.state.pos+1);if(t>=48&&t<=57){this.readNumber(!0);return}t===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let t=this.input.charCodeAt(this.state.pos+1);if(t!==33)return!1;let e=this.state.pos;for(this.state.pos+=1;!xe(t)&&++this.state.pos=48&&e<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(t){switch(t){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(p.TupleExpressionBarIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(p.RecordExpressionBarIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let e=this.input.charCodeAt(this.state.pos+1);if(e===120||e===88){this.readRadixNumber(16);return}if(e===111||e===79){this.readRadixNumber(8);return}if(e===98||e===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(t);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(t);return;case 124:case 38:this.readToken_pipe_amp(t);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(t);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(t);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(j(t)){this.readWord(t);return}}throw this.raise(p.InvalidOrUnexpectedToken,{at:this.state.curPosition(),unexpected:String.fromCodePoint(t)})}finishOp(t,e){let s=this.input.slice(this.state.pos,this.state.pos+e);this.state.pos+=e,this.finishToken(t,s)}readRegexp(){let t=this.state.startLoc,e=this.state.start+1,s,i,{pos:r}=this.state;for(;;++r){if(r>=this.length)throw this.raise(p.UnterminatedRegExp,{at:L(t,1)});let l=this.input.charCodeAt(r);if(xe(l))throw this.raise(p.UnterminatedRegExp,{at:L(t,1)});if(s)s=!1;else{if(l===91)i=!0;else if(l===93&&i)i=!1;else if(l===47&&!i)break;s=l===92}}let n=this.input.slice(e,r);++r;let o="",h=()=>L(t,r+2-e);for(;r=2&&this.input.charCodeAt(e)===48;if(l){let d=this.input.slice(e,this.state.pos);if(this.recordStrictModeErrors(p.StrictOctalLiteral,{at:s}),!this.state.strict){let x=d.indexOf("_");x>0&&this.raise(p.ZeroDigitNumericSeparator,{at:L(s,x)})}h=l&&!/[89]/.test(d)}let c=this.input.charCodeAt(this.state.pos);if(c===46&&!h&&(++this.state.pos,this.readInt(10),i=!0,c=this.input.charCodeAt(this.state.pos)),(c===69||c===101)&&!h&&(c=this.input.charCodeAt(++this.state.pos),(c===43||c===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(p.InvalidOrMissingExponent,{at:s}),i=!0,o=!0,c=this.input.charCodeAt(this.state.pos)),c===110&&((i||l)&&this.raise(p.InvalidBigIntLiteral,{at:s}),++this.state.pos,r=!0),c===109&&(this.expectPlugin("decimal",this.state.curPosition()),(o||l)&&this.raise(p.InvalidDecimal,{at:s}),++this.state.pos,n=!0),j(this.codePointAtPos(this.state.pos)))throw this.raise(p.NumberIdentifier,{at:this.state.curPosition()});let u=this.input.slice(e,this.state.pos).replace(/[_mn]/g,"");if(r){this.finishToken(133,u);return}if(n){this.finishToken(134,u);return}let f=h?parseInt(u,8):parseFloat(u);this.finishToken(132,f)}readCodePoint(t){let{code:e,pos:s}=os(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,this.errorHandlers_readCodePoint);return this.state.pos=s,e}readString(t){let{str:e,pos:s,curLine:i,lineStart:r}=Vt(t===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=s+1,this.state.lineStart=r,this.state.curLine=i,this.finishToken(131,e)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let t=this.input[this.state.pos],{str:e,firstInvalidLoc:s,pos:i,curLine:r,lineStart:n}=Vt("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=i+1,this.state.lineStart=n,this.state.curLine=r,s&&(this.state.firstInvalidTemplateEscapePos=new F(s.curLine,s.pos-s.lineStart,s.pos)),this.input.codePointAt(i)===96?this.finishToken(24,s?null:t+e+"`"):(this.state.pos++,this.finishToken(25,s?null:t+e+"${"))}recordStrictModeErrors(t,{at:e}){let s=e.index;this.state.strict&&!this.state.strictErrors.has(s)?this.raise(t,{at:e}):this.state.strictErrors.set(s,[t,e])}readWord1(t){this.state.containsEsc=!1;let e="",s=this.state.pos,i=this.state.pos;for(t!==void 0&&(this.state.pos+=t<=65535?1:2);this.state.pos=0;h--){let l=o[h];if(l.loc.index===n)return o[h]=t({loc:r,details:i});if(l.loc.indexthis.hasPlugin(e)))throw this.raise(p.MissingOneOfPlugins,{at:this.state.startLoc,missingPlugin:t})}errorBuilder(t){return(e,s,i)=>{this.raise(t,{at:fe(e,s,i)})}}},ht=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},lt=class{constructor(t){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new ht)}exit(){let t=this.stack.pop(),e=this.current();for(let[s,i]of Array.from(t.undefinedPrivateNames))e?e.undefinedPrivateNames.has(s)||e.undefinedPrivateNames.set(s,i):this.parser.raise(p.InvalidPrivateFieldResolution,{at:i,identifierName:s})}declarePrivateName(t,e,s){let{privateNames:i,loneAccessors:r,undefinedPrivateNames:n}=this.current(),o=i.has(t);if(e&3){let h=o&&r.get(t);if(h){let l=h&4,c=e&4,u=h&3,f=e&3;o=u===f||l!==c,o||r.delete(t)}else o||r.set(t,e)}o&&this.parser.raise(p.PrivateNameRedeclaration,{at:s,identifierName:t}),i.add(t),n.delete(t)}usePrivateName(t,e){let s;for(s of this.stack)if(s.privateNames.has(t))return;s?s.undefinedPrivateNames.set(t,e):this.parser.raise(p.InvalidPrivateFieldResolution,{at:e,identifierName:t})}},re=class{constructor(t=0){this.type=t}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},Fe=class extends re{constructor(t){super(t),this.declarationErrors=new Map}recordDeclarationError(t,{at:e}){let s=e.index;this.declarationErrors.set(s,[t,e])}clearDeclarationError(t){this.declarationErrors.delete(t)}iterateErrors(t){this.declarationErrors.forEach(t)}},ct=class{constructor(t){this.parser=void 0,this.stack=[new re],this.parser=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,{at:e}){let s={at:e.loc.start},{stack:i}=this,r=i.length-1,n=i[r];for(;!n.isCertainlyParameterDeclaration();){if(n.canBeArrowParameterDeclaration())n.recordDeclarationError(t,s);else return;n=i[--r]}this.parser.raise(t,s)}recordArrowParameterBindingError(t,{at:e}){let{stack:s}=this,i=s[s.length-1],r={at:e.loc.start};if(i.isCertainlyParameterDeclaration())this.parser.raise(t,r);else if(i.canBeArrowParameterDeclaration())i.recordDeclarationError(t,r);else return}recordAsyncArrowParametersError({at:t}){let{stack:e}=this,s=e.length-1,i=e[s];for(;i.canBeArrowParameterDeclaration();)i.type===2&&i.recordDeclarationError(p.AwaitBindingIdentifier,{at:t}),i=e[--s]}validateAsPattern(){let{stack:t}=this,e=t[t.length-1];e.canBeArrowParameterDeclaration()&&e.iterateErrors(([s,i])=>{this.parser.raise(s,{at:i});let r=t.length-2,n=t[r];for(;n.canBeArrowParameterDeclaration();)n.clearDeclarationError(i.index),n=t[--r]})}};function Hi(){return new re(3)}function Wi(){return new Fe(1)}function Ji(){return new Fe(2)}function hs(){return new re}var te=0,ls=1,Re=2,cs=4,Q=8,pt=class{constructor(){this.stacks=[]}enter(t){this.stacks.push(t)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&Re)>0}get hasYield(){return(this.currentFlags()&ls)>0}get hasReturn(){return(this.currentFlags()&cs)>0}get hasIn(){return(this.currentFlags()&Q)>0}};function Le(a,t){return(a?Re:0)|(t?ls:0)}var ut=class extends ot{addExtra(t,e,s,i=!0){if(!t)return;let r=t.extra=t.extra||{};i?r[e]=s:Object.defineProperty(r,e,{enumerable:i,value:s})}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,e){let s=t+e.length;if(this.input.slice(t,s)===e){let i=this.input.charCodeAt(s);return!(ee(i)||(i&64512)===55296)}return!1}isLookaheadContextual(t){let e=this.nextTokenStart();return this.isUnparsedContextual(e,t)}eatContextual(t){return this.isContextual(t)?(this.next(),!0):!1}expectContextual(t,e){if(!this.eatContextual(t)){if(e!=null)throw this.raise(e,{at:this.state.startLoc});this.unexpected(null,t)}}canInsertSemicolon(){return this.match(137)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return as.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}hasFollowingLineBreak(){return jt.lastIndex=this.state.end,jt.test(this.input)}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise(p.MissingSemicolon,{at:this.state.lastTokEndLoc})}expect(t,e){this.eat(t)||this.unexpected(e,t)}tryParse(t,e=this.state.clone()){let s={node:null};try{let i=t((r=null)=>{throw s.node=r,s});if(this.state.errors.length>e.errors.length){let r=this.state;return this.state=e,this.state.tokensLength=r.tokensLength,{node:i,error:r.errors[e.errors.length],thrown:!1,aborted:!1,failState:r}}return{node:i,error:null,thrown:!1,aborted:!1,failState:null}}catch(i){let r=this.state;if(this.state=e,i instanceof SyntaxError)return{node:null,error:i,thrown:!0,aborted:!1,failState:r};if(i===s)return{node:s.node,error:null,thrown:!1,aborted:!0,failState:r};throw i}}checkExpressionErrors(t,e){if(!t)return!1;let{shorthandAssignLoc:s,doubleProtoLoc:i,privateKeyLoc:r,optionalParametersLoc:n}=t,o=!!s||!!i||!!n||!!r;if(!e)return o;s!=null&&this.raise(p.InvalidCoverInitializedName,{at:s}),i!=null&&this.raise(p.DuplicateProto,{at:i}),r!=null&&this.raise(p.UnexpectedPrivateField,{at:r}),n!=null&&this.unexpected(n)}isLiteralPropertyName(){return Yt(this.state.type)}isPrivateName(t){return t.type==="PrivateName"}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return(t.type==="MemberExpression"||t.type==="OptionalMemberExpression")&&this.isPrivateName(t.property)}isObjectProperty(t){return t.type==="ObjectProperty"}isObjectMethod(t){return t.type==="ObjectMethod"}initializeScopes(t=this.options.sourceType==="module"){let e=this.state.labels;this.state.labels=[];let s=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let i=this.inModule;this.inModule=t;let r=this.scope,n=this.getScopeHandler();this.scope=new n(this,t);let o=this.prodParam;this.prodParam=new pt;let h=this.classScope;this.classScope=new lt(this);let l=this.expressionScope;return this.expressionScope=new ct(this),()=>{this.state.labels=e,this.exportedIdentifiers=s,this.inModule=i,this.scope=r,this.prodParam=o,this.classScope=h,this.expressionScope=l}}enterInitialScopes(){let t=te;this.inModule&&(t|=Re),this.scope.enter(1),this.prodParam.enter(t)}checkDestructuringPrivate(t){let{privateKeyLoc:e}=t;e!==null&&this.expectPlugin("destructuringPrivate",e)}},se=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}},ae=class{constructor(t,e,s){this.type="",this.start=e,this.end=0,this.loc=new ie(s),t!=null&&t.options.ranges&&(this.range=[e,0]),t!=null&&t.filename&&(this.loc.filename=t.filename)}},Nt=ae.prototype;Nt.__clone=function(){let a=new ae(void 0,this.start,this.loc.start),t=Object.keys(this);for(let e=0,s=t.length;e`Cannot overwrite reserved type ${a}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:a,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${a} = true,\` or \`${a} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:a,enumName:t})=>`Enum member names need to be unique, but the name \`${a}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:a})=>`Enum \`${a}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:a,enumName:t})=>`Enum type \`${a}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:a})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${a}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:a,memberName:t,explicitType:e})=>`Enum \`${a}\` has type \`${e}\`, so the initializer of \`${t}\` needs to be a ${e} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:a,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${a}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:a,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${a}\`.`,EnumInvalidMemberName:({enumName:a,memberName:t,suggestion:e})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${e}\`, in enum \`${a}\`.`,EnumNumberMemberNotInitialized:({enumName:a,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${a}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:a})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${a}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:a})=>`Unexpected reserved type ${a}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of ` async () => {}`, use `async () => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:a,suggestion:t})=>`\`declare export ${a}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function Qi(a){return a.type==="DeclareExportAllDeclaration"||a.type==="DeclareExportDeclaration"&&(!a.declaration||a.declaration.type!=="TypeAlias"&&a.declaration.type!=="InterfaceDeclaration")}function zt(a){return a.importKind==="type"||a.importKind==="typeof"}var Zi={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function er(a,t){let e=[],s=[];for(let i=0;iclass extends a{constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return st}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(e,s){e!==131&&e!==13&&e!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(e,s)}addComment(e){if(this.flowPragma===void 0){let s=tr.exec(e.value);if(s)if(s[1]==="flow")this.flowPragma="flow";else if(s[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(e)}flowParseTypeInitialiser(e){let s=this.state.inType;this.state.inType=!0,this.expect(e||14);let i=this.flowParseType();return this.state.inType=s,i}flowParsePredicate(){let e=this.startNode(),s=this.state.startLoc;return this.next(),this.expectContextual(108),this.state.lastTokStart>s.index+1&&this.raise(g.UnexpectedSpaceBetweenModuloChecks,{at:s}),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let e=this.state.inType;this.state.inType=!0,this.expect(14);let s=null,i=null;return this.match(54)?(this.state.inType=e,i=this.flowParsePredicate()):(s=this.flowParseType(),this.state.inType=e,this.match(54)&&(i=this.flowParsePredicate())),[s,i]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();let s=e.id=this.parseIdentifier(),i=this.startNode(),r=this.startNode();this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,this.expect(10);let n=this.flowParseFunctionTypeParams();return i.params=n.params,i.rest=n.rest,i.this=n._this,this.expect(11),[i.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.typeAnnotation=this.finishNode(i,"FunctionTypeAnnotation"),s.typeAnnotation=this.finishNode(r,"TypeAnnotation"),this.resetEndLocation(s),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,s){if(this.match(80))return this.flowParseDeclareClass(e);if(this.match(68))return this.flowParseDeclareFunction(e);if(this.match(74))return this.flowParseDeclareVariable(e);if(this.eatContextual(125))return this.match(16)?this.flowParseDeclareModuleExports(e):(s&&this.raise(g.NestedDeclareModule,{at:this.state.lastTokStartLoc}),this.flowParseDeclareModule(e));if(this.isContextual(128))return this.flowParseDeclareTypeAlias(e);if(this.isContextual(129))return this.flowParseDeclareOpaqueType(e);if(this.isContextual(127))return this.flowParseDeclareInterface(e);if(this.match(82))return this.flowParseDeclareExportDeclaration(e,s);this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(131)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();let s=e.body=this.startNode(),i=s.body=[];for(this.expect(5);!this.match(8);){let o=this.startNode();this.match(83)?(this.next(),!this.isContextual(128)&&!this.match(87)&&this.raise(g.InvalidNonTypeImportInDeclareModule,{at:this.state.lastTokStartLoc}),super.parseImport(o)):(this.expectContextual(123,g.UnsupportedStatementInDeclareModule),o=this.flowParseDeclare(o,!0)),i.push(o)}this.scope.exit(),this.expect(8),this.finishNode(s,"BlockStatement");let r=null,n=!1;return i.forEach(o=>{Qi(o)?(r==="CommonJS"&&this.raise(g.AmbiguousDeclareModuleKind,{at:o}),r="ES"):o.type==="DeclareModuleExports"&&(n&&this.raise(g.DuplicateDeclareModuleExports,{at:o}),r==="ES"&&this.raise(g.AmbiguousDeclareModuleKind,{at:o}),r="CommonJS",n=!0)}),e.kind=r||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,s){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(128)||this.isContextual(127))&&!s){let i=this.state.value;throw this.raise(g.UnsupportedDeclareExportKind,{at:this.state.startLoc,unsupportedExportKind:i,suggestion:Zi[i]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(129))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(127)||this.isContextual(128)||this.isContextual(129))return e=this.parseExport(e,null),e.type==="ExportNamedDeclaration"&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e;this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(109),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();let s=this.flowParseTypeAlias(e);return s.type="DeclareTypeAlias",s}flowParseDeclareOpaqueType(e){this.next();let s=this.flowParseOpaqueType(e,!0);return s.type="DeclareOpaqueType",s}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,s){if(e.id=this.flowParseRestrictedIdentifier(!s,!0),this.scope.declareName(e.id.name,s?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(!s&&this.eat(12));if(s){if(e.implements=[],e.mixins=[],this.eatContextual(115))do e.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(111))do e.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:s,allowExact:!1,allowSpread:!1,allowProto:s,allowInexact:!1})}flowParseInterfaceExtends(){let e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){e==="_"&&this.raise(g.UnexpectedReservedUnderscore,{at:this.state.startLoc})}checkReservedType(e,s,i){Yi.has(e)&&this.raise(i?g.AssignReservedType:g.UnexpectedReservedType,{at:s,reservedType:e})}flowParseRestrictedIdentifier(e,s){return this.checkReservedType(this.state.value,this.state.startLoc,s),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,s){return this.expectContextual(128),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,s||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=!1){let s=this.state.startLoc,i=this.startNode(),r=this.flowParseVariance(),n=this.flowParseTypeAnnotatableIdentifier();return i.name=n.name,i.variance=r,i.bound=n.typeAnnotation,this.match(29)?(this.eat(29),i.default=this.flowParseType()):e&&this.raise(g.MissingTypeParamDefault,{at:s}),this.finishNode(i,"TypeParameter")}flowParseTypeParameterDeclaration(){let e=this.state.inType,s=this.startNode();s.params=[],this.state.inType=!0,this.match(47)||this.match(140)?this.next():this.unexpected();let i=!1;do{let r=this.flowParseTypeParameter(i);s.params.push(r),r.default&&(i=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(s,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){let e=this.startNode(),s=this.state.inType;e.params=[],this.state.inType=!0,this.expect(47);let i=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=i,this.expect(48),this.state.inType=s,this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){let e=this.startNode(),s=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=s,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){let e=this.startNode();if(this.expectContextual(127),e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(132)||this.match(131)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,s,i){return e.static=s,this.lookahead().type===14?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=i,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,s){return e.static=s,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,s){let i=this.startNode();return e.static=s,e.value=this.flowParseObjectTypeMethodish(i),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:s,allowSpread:i,allowProto:r,allowInexact:n}){let o=this.state.inType;this.state.inType=!0;let h=this.startNode();h.callProperties=[],h.properties=[],h.indexers=[],h.internalSlots=[];let l,c,u=!1;for(s&&this.match(6)?(this.expect(6),l=9,c=!0):(this.expect(5),l=8,c=!1),h.exact=c;!this.match(l);){let d=!1,x=null,I=null,C=this.startNode();if(r&&this.isContextual(116)){let N=this.lookahead();N.type!==14&&N.type!==17&&(this.next(),x=this.state.startLoc,e=!1)}if(e&&this.isContextual(104)){let N=this.lookahead();N.type!==14&&N.type!==17&&(this.next(),d=!0)}let E=this.flowParseVariance();if(this.eat(0))x!=null&&this.unexpected(x),this.eat(0)?(E&&this.unexpected(E.loc.start),h.internalSlots.push(this.flowParseObjectTypeInternalSlot(C,d))):h.indexers.push(this.flowParseObjectTypeIndexer(C,d,E));else if(this.match(10)||this.match(47))x!=null&&this.unexpected(x),E&&this.unexpected(E.loc.start),h.callProperties.push(this.flowParseObjectTypeCallProperty(C,d));else{let N="init";if(this.isContextual(98)||this.isContextual(103)){let ce=this.lookahead();Yt(ce.type)&&(N=this.state.value,this.next())}let Ce=this.flowParseObjectTypeProperty(C,d,x,E,N,i,n??!c);Ce===null?(u=!0,I=this.state.lastTokStartLoc):h.properties.push(Ce)}this.flowObjectTypeSemicolon(),I&&!this.match(8)&&!this.match(9)&&this.raise(g.UnexpectedExplicitInexactInObject,{at:I})}this.expect(l),i&&(h.inexact=u);let f=this.finishNode(h,"ObjectTypeAnnotation");return this.state.inType=o,f}flowParseObjectTypeProperty(e,s,i,r,n,o,h){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?h||this.raise(g.InexactInsideExact,{at:this.state.lastTokStartLoc}):this.raise(g.InexactInsideNonObject,{at:this.state.lastTokStartLoc}),r&&this.raise(g.InexactVariance,{at:r}),null):(o||this.raise(g.UnexpectedSpreadType,{at:this.state.lastTokStartLoc}),i!=null&&this.unexpected(i),r&&this.raise(g.SpreadVariance,{at:r}),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=s,e.proto=i!=null,e.kind=n;let l=!1;return this.match(47)||this.match(10)?(e.method=!0,i!=null&&this.unexpected(i),r&&this.unexpected(r.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),(n==="get"||n==="set")&&this.flowCheckGetterSetterParams(e),!o&&e.key.name==="constructor"&&e.value.this&&this.raise(g.ThisParamBannedInConstructor,{at:e.value.this})):(n!=="init"&&this.unexpected(),e.method=!1,this.eat(17)&&(l=!0),e.value=this.flowParseTypeInitialiser(),e.variance=r),e.optional=l,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){let s=e.kind==="get"?0:1,i=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise(e.kind==="get"?g.GetterMayNotHaveThisParam:g.SetterMayNotHaveThisParam,{at:e.value.this}),i!==s&&this.raise(e.kind==="get"?p.BadGetterArity:p.BadSetterArity,{at:e}),e.kind==="set"&&e.value.rest&&this.raise(p.BadSetterRestParameter,{at:e})}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(e,s){var i;(i=e)!=null||(e=this.state.startLoc);let r=s||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let n=this.startNodeAt(e);n.qualification=r,n.id=this.flowParseRestrictedIdentifier(!0),r=this.finishNode(n,"QualifiedTypeIdentifier")}return r}flowParseGenericType(e,s){let i=this.startNodeAt(e);return i.typeParameters=null,i.id=this.flowParseQualifiedTypeIdentifier(e,s),this.match(47)&&(i.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(i,"GenericTypeAnnotation")}flowParseTypeofType(){let e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){let e=this.startNode();for(e.types=[],this.expect(0);this.state.possuper.parseFunctionBody(e,!0,i));return}super.parseFunctionBody(e,!1,i)}parseFunctionBodyAndFinish(e,s,i=!1){if(this.match(14)){let r=this.startNode();[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=r.typeAnnotation?this.finishNode(r,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,s,i)}parseStatementLike(e){if(this.state.strict&&this.isContextual(127)){let i=this.lookahead();if(M(i.type)){let r=this.startNode();return this.next(),this.flowParseInterface(r)}}else if(this.shouldParseEnums()&&this.isContextual(124)){let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}let s=super.parseStatementLike(e);return this.flowPragma===void 0&&!this.isValidDirective(s)&&(this.flowPragma=null),s}parseExpressionStatement(e,s,i){if(s.type==="Identifier"){if(s.name==="declare"){if(this.match(80)||S(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(S(this.state.type)){if(s.name==="interface")return this.flowParseInterface(e);if(s.name==="type")return this.flowParseTypeAlias(e);if(s.name==="opaque")return this.flowParseOpaqueType(e,!1)}}return super.parseExpressionStatement(e,s,i)}shouldParseExportDeclaration(){let{type:e}=this.state;return Ut(e)||this.shouldParseEnums()&&e===124?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:e}=this.state;return Ut(e)||this.shouldParseEnums()&&e===124?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(124)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,s,i){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let f=this.lookaheadCharCode();if(f===44||f===61||f===58||f===41)return this.setOptionalParametersError(i),e}this.expect(17);let r=this.state.clone(),n=this.state.noArrowAt,o=this.startNodeAt(s),{consequent:h,failed:l}=this.tryParseConditionalConsequent(),[c,u]=this.getArrowLikeExpressions(h);if(l||u.length>0){let f=[...n];if(u.length>0){this.state=r,this.state.noArrowAt=f;for(let d=0;d1&&this.raise(g.AmbiguousConditionalArrow,{at:r.startLoc}),l&&c.length===1&&(this.state=r,f.push(c[0].start),this.state.noArrowAt=f,{consequent:h,failed:l}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(h,!0),this.state.noArrowAt=n,this.expect(14),o.test=e,o.consequent=h,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let e=this.parseMaybeAssignAllowIn(),s=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:s}}getArrowLikeExpressions(e,s){let i=[e],r=[];for(;i.length!==0;){let n=i.pop();n.type==="ArrowFunctionExpression"?(n.typeParameters||!n.returnType?this.finishArrowValidation(n):r.push(n),i.push(n.body)):n.type==="ConditionalExpression"&&(i.push(n.consequent),i.push(n.alternate))}return s?(r.forEach(n=>this.finishArrowValidation(n)),[r,[]]):er(r,n=>n.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(e){var s;this.toAssignableList(e.params,(s=e.extra)==null?void 0:s.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,s){let i;return this.state.noArrowParamsConversionAt.indexOf(e.start)!==-1?(this.state.noArrowParamsConversionAt.push(this.state.start),i=s(),this.state.noArrowParamsConversionAt.pop()):i=s(),i}parseParenItem(e,s){if(e=super.parseParenItem(e,s),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){let i=this.startNodeAt(s);return i.expression=e,i.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(i,"TypeCastExpression")}return e}assertModuleNodeAllowed(e){e.type==="ImportDeclaration"&&(e.importKind==="type"||e.importKind==="typeof")||e.type==="ExportNamedDeclaration"&&e.exportKind==="type"||e.type==="ExportAllDeclaration"&&e.exportKind==="type"||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(128)){e.exportKind="type";let s=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(s)}else if(this.isContextual(129)){e.exportKind="type";let s=this.startNode();return this.next(),this.flowParseOpaqueType(s,!1)}else if(this.isContextual(127)){e.exportKind="type";let s=this.startNode();return this.next(),this.flowParseInterface(s)}else if(this.shouldParseEnums()&&this.isContextual(124)){e.exportKind="value";let s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}else return super.parseExportDeclaration(e)}eatExportStar(e){return super.eatExportStar(e)?!0:this.isContextual(128)&&this.lookahead().type===55?(e.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(e){let{startLoc:s}=this.state,i=super.maybeParseExportNamespaceSpecifier(e);return i&&e.exportKind==="type"&&this.unexpected(s),i}parseClassId(e,s,i){super.parseClassId(e,s,i),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,s,i){let{startLoc:r}=this.state;if(this.isContextual(123)){if(super.parseClassMemberFromModifier(e,s))return;s.declare=!0}super.parseClassMember(e,s,i),s.declare&&(s.type!=="ClassProperty"&&s.type!=="ClassPrivateProperty"&&s.type!=="PropertyDefinition"?this.raise(g.DeclareClassElement,{at:r}):s.value&&this.raise(g.DeclareClassFieldInitializer,{at:s.value}))}isIterator(e){return e==="iterator"||e==="asyncIterator"}readIterator(){let e=super.readWord1(),s="@@"+e;(!this.isIterator(e)||!this.state.inType)&&this.raise(p.InvalidIdentifier,{at:this.state.curPosition(),identifierName:s}),this.finishToken(130,s)}getTokenFromCode(e){let s=this.input.charCodeAt(this.state.pos+1);e===123&&s===124?this.finishOp(6,2):this.state.inType&&(e===62||e===60)?this.finishOp(e===62?48:47,1):this.state.inType&&e===63?s===46?this.finishOp(18,2):this.finishOp(17,1):Fi(e,s,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e)}isAssignable(e,s){return e.type==="TypeCastExpression"?this.isAssignable(e.expression,s):super.isAssignable(e,s)}toAssignable(e,s=!1){!s&&e.type==="AssignmentExpression"&&e.left.type==="TypeCastExpression"&&(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,s)}toAssignableList(e,s,i){for(let r=0;r1||!s)&&this.raise(g.TypeCastInPattern,{at:n.typeAnnotation})}return e}parseArrayLike(e,s,i,r){let n=super.parseArrayLike(e,s,i,r);return s&&!this.state.maybeInArrowParameters&&this.toReferencedList(n.elements),n}isValidLVal(e,s,i){return e==="TypeCastExpression"||super.isValidLVal(e,s,i)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,s,i,r,n,o){if(s.variance&&this.unexpected(s.variance.loc.start),delete s.variance,this.match(47)&&(s.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,s,i,r,n,o),s.params&&n){let h=s.params;h.length>0&&this.isThisParam(h[0])&&this.raise(g.ThisParamBannedInConstructor,{at:s})}else if(s.type==="MethodDefinition"&&n&&s.value.params){let h=s.value.params;h.length>0&&this.isThisParam(h[0])&&this.raise(g.ThisParamBannedInConstructor,{at:s})}}pushClassPrivateMethod(e,s,i,r){s.variance&&this.unexpected(s.variance.loc.start),delete s.variance,this.match(47)&&(s.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,s,i,r)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&this.match(47)&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(111)){this.next();let s=e.implements=[];do{let i=this.startNode();i.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?i.typeParameters=this.flowParseTypeParameterInstantiation():i.typeParameters=null,s.push(this.finishNode(i,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);let s=this.getObjectOrClassMethodParams(e);if(s.length>0){let i=s[0];this.isThisParam(i)&&e.kind==="get"?this.raise(g.GetterMayNotHaveThisParam,{at:i}):this.isThisParam(i)&&this.raise(g.SetterMayNotHaveThisParam,{at:i})}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,s,i,r,n,o,h){e.variance&&this.unexpected(e.variance.loc.start),delete e.variance;let l;this.match(47)&&!o&&(l=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let c=super.parseObjPropValue(e,s,i,r,n,o,h);return l&&((c.value||c).typeParameters=l),c}parseAssignableListItemTypes(e){return this.eat(17)&&(e.type!=="Identifier"&&this.raise(g.PatternIsOptional,{at:e}),this.isThisParam(e)&&this.raise(g.ThisParamMayNotBeOptional,{at:e}),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(g.ThisParamAnnotationRequired,{at:e}),this.match(29)&&this.isThisParam(e)&&this.raise(g.ThisParamNoDefault,{at:e}),this.resetEndLocation(e),e}parseMaybeDefault(e,s){let i=super.parseMaybeDefault(e,s);return i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.startsuper.parseMaybeAssign(e,s),r),!n.error)return n.node;let{context:l}=this.state,c=l[l.length-1];(c===w.j_oTag||c===w.j_expr)&&l.pop()}if((i=n)!=null&&i.error||this.match(47)){var o,h;r=r||this.state.clone();let l,c=this.tryParse(f=>{var d;l=this.flowParseTypeParameterDeclaration();let x=this.forwardNoArrowParamsConversionAt(l,()=>{let C=super.parseMaybeAssign(e,s);return this.resetStartLocationFromNode(C,l),C});(d=x.extra)!=null&&d.parenthesized&&f();let I=this.maybeUnwrapTypeCastExpression(x);return I.type!=="ArrowFunctionExpression"&&f(),I.typeParameters=l,this.resetStartLocationFromNode(I,l),x},r),u=null;if(c.node&&this.maybeUnwrapTypeCastExpression(c.node).type==="ArrowFunctionExpression"){if(!c.error&&!c.aborted)return c.node.async&&this.raise(g.UnexpectedTypeParameterBeforeAsyncArrowFunction,{at:l}),c.node;u=c.node}if((o=n)!=null&&o.node)return this.state=n.failState,n.node;if(u)return this.state=c.failState,u;throw(h=n)!=null&&h.thrown?n.error:c.thrown?c.error:this.raise(g.UnexpectedTokenAfterTypeParameter,{at:l})}return super.parseMaybeAssign(e,s)}parseArrow(e){if(this.match(14)){let s=this.tryParse(()=>{let i=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let r=this.startNode();return[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=i,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),r});if(s.thrown)return null;s.error&&(this.state=s.failState),e.returnType=s.node.typeAnnotation?this.finishNode(s.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,s){this.state.noArrowParamsConversionAt.indexOf(e.start)!==-1?e.params=s:super.setArrowFunctionParameters(e,s)}checkParams(e,s,i,r=!0){if(!(i&&this.state.noArrowParamsConversionAt.indexOf(e.start)!==-1)){for(let n=0;n0&&this.raise(g.ThisParamMustBeFirst,{at:e.params[n]});super.checkParams(e,s,i,r)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&this.state.noArrowAt.indexOf(this.state.start)===-1)}parseSubscripts(e,s,i){if(e.type==="Identifier"&&e.name==="async"&&this.state.noArrowAt.indexOf(s.index)!==-1){this.next();let r=this.startNodeAt(s);r.callee=e,r.arguments=super.parseCallExpressionArguments(11,!1),e=this.finishNode(r,"CallExpression")}else if(e.type==="Identifier"&&e.name==="async"&&this.match(47)){let r=this.state.clone(),n=this.tryParse(h=>this.parseAsyncArrowWithTypeParameters(s)||h(),r);if(!n.error&&!n.aborted)return n.node;let o=this.tryParse(()=>super.parseSubscripts(e,s,i),r);if(o.node&&!o.error)return o.node;if(n.node)return this.state=n.failState,n.node;if(o.node)return this.state=o.failState,o.node;throw n.error||o.error}return super.parseSubscripts(e,s,i)}parseSubscript(e,s,i,r){if(this.match(18)&&this.isLookaheadToken_lt()){if(r.optionalChainMember=!0,i)return r.stop=!0,e;this.next();let n=this.startNodeAt(s);return n.callee=e,n.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),n.arguments=this.parseCallExpressionArguments(11,!1),n.optional=!0,this.finishCallExpression(n,!0)}else if(!i&&this.shouldParseTypes()&&this.match(47)){let n=this.startNodeAt(s);n.callee=e;let o=this.tryParse(()=>(n.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),n.arguments=super.parseCallExpressionArguments(11,!1),r.optionalChainMember&&(n.optional=!1),this.finishCallExpression(n,r.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(e,s,i,r)}parseNewCallee(e){super.parseNewCallee(e);let s=null;this.shouldParseTypes()&&this.match(47)&&(s=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),e.typeArguments=s}parseAsyncArrowWithTypeParameters(e){let s=this.startNodeAt(e);if(this.parseFunctionParams(s,!1),!!this.parseArrow(s))return super.parseArrowExpression(s,void 0,!0)}readToken_mult_modulo(e){let s=this.input.charCodeAt(this.state.pos+1);if(e===42&&s===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(e)}readToken_pipe_amp(e){let s=this.input.charCodeAt(this.state.pos+1);if(e===124&&s===125){this.finishOp(9,2);return}super.readToken_pipe_amp(e)}parseTopLevel(e,s){let i=super.parseTopLevel(e,s);return this.state.hasFlowComment&&this.raise(g.UnterminatedFlowComment,{at:this.state.curPosition()}),i}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(g.NestedFlowComment,{at:this.state.startLoc});this.hasFlowCommentCompletion();let e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:e}=this.state,s=2;for(;[32,9].includes(this.input.charCodeAt(e+s));)s++;let i=this.input.charCodeAt(s+e),r=this.input.charCodeAt(s+e+1);return i===58&&r===58?s+2:this.input.slice(s+e,s+e+12)==="flow-include"?s+12:i===58&&r!==58?s:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(p.UnterminatedComment,{at:this.state.curPosition()})}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:s,memberName:i}){this.raise(g.EnumBooleanMemberNotInitialized,{at:e,memberName:i,enumName:s})}flowEnumErrorInvalidMemberInitializer(e,s){return this.raise(s.explicitType?s.explicitType==="symbol"?g.EnumInvalidMemberInitializerSymbolType:g.EnumInvalidMemberInitializerPrimaryType:g.EnumInvalidMemberInitializerUnknownType,Object.assign({at:e},s))}flowEnumErrorNumberMemberNotInitialized(e,{enumName:s,memberName:i}){this.raise(g.EnumNumberMemberNotInitialized,{at:e,enumName:s,memberName:i})}flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:s}){this.raise(g.EnumStringMemberInconsistentlyInitialized,{at:e,enumName:s})}flowEnumMemberInit(){let e=this.state.startLoc,s=()=>this.match(12)||this.match(8);switch(this.state.type){case 132:{let i=this.parseNumericLiteral(this.state.value);return s()?{type:"number",loc:i.loc.start,value:i}:{type:"invalid",loc:e}}case 131:{let i=this.parseStringLiteral(this.state.value);return s()?{type:"string",loc:i.loc.start,value:i}:{type:"invalid",loc:e}}case 85:case 86:{let i=this.parseBooleanLiteral(this.match(85));return s()?{type:"boolean",loc:i.loc.start,value:i}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){let e=this.state.startLoc,s=this.parseIdentifier(!0),i=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e};return{id:s,init:i}}flowEnumCheckExplicitTypeMismatch(e,s,i){let{explicitType:r}=s;r!==null&&r!==i&&this.flowEnumErrorInvalidMemberInitializer(e,s)}flowEnumMembers({enumName:e,explicitType:s}){let i=new Set,r={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},n=!1;for(;!this.match(8);){if(this.eat(21)){n=!0;break}let o=this.startNode(),{id:h,init:l}=this.flowEnumMemberRaw(),c=h.name;if(c==="")continue;/^[a-z]/.test(c)&&this.raise(g.EnumInvalidMemberName,{at:h,memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:e}),i.has(c)&&this.raise(g.EnumDuplicateMemberName,{at:h,memberName:c,enumName:e}),i.add(c);let u={enumName:e,explicitType:s,memberName:c};switch(o.id=h,l.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(l.loc,u,"boolean"),o.init=l.value,r.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(l.loc,u,"number"),o.init=l.value,r.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(l.loc,u,"string"),o.init=l.value,r.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(l.loc,u);case"none":switch(s){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(l.loc,u);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(l.loc,u);break;default:r.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:r,hasUnknownMembers:n}}flowEnumStringMembers(e,s,{enumName:i}){if(e.length===0)return s;if(s.length===0)return e;if(s.length>e.length){for(let r of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(r,{enumName:i});return s}else{for(let r of s)this.flowEnumErrorStringMemberInconsistentlyInitialized(r,{enumName:i});return e}}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(101))return null;if(!S(this.state.type))throw this.raise(g.EnumInvalidExplicitTypeUnknownSupplied,{at:this.state.startLoc,enumName:e});let{value:s}=this.state;return this.next(),s!=="boolean"&&s!=="number"&&s!=="string"&&s!=="symbol"&&this.raise(g.EnumInvalidExplicitType,{at:this.state.startLoc,enumName:e,invalidEnumType:s}),s}flowEnumBody(e,s){let i=s.name,r=s.loc.start,n=this.flowEnumParseExplicitType({enumName:i});this.expect(5);let{members:o,hasUnknownMembers:h}=this.flowEnumMembers({enumName:i,explicitType:n});switch(e.hasUnknownMembers=h,n){case"boolean":return e.explicitType=!0,e.members=o.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=o.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=o.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{let l=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;let c=o.booleanMembers.length,u=o.numberMembers.length,f=o.stringMembers.length,d=o.defaultedMembers.length;if(!c&&!u&&!f&&!d)return l();if(!c&&!u)return e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(e,"EnumStringBody");if(!u&&!f&&c>=d){for(let x of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(x.loc.start,{enumName:i,memberName:x.id.name});return e.members=o.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}else if(!c&&!f&&u>=d){for(let x of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(x.loc.start,{enumName:i,memberName:x.id.name});return e.members=o.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}else return this.raise(g.EnumInconsistentMemberValues,{at:r,enumName:i}),l()}}}flowParseEnumDeclaration(e){let s=this.parseIdentifier();return e.id=s,e.body=this.flowEnumBody(this.startNode(),s),this.finishNode(e,"EnumDeclaration")}isLookaheadToken_lt(){let e=this.nextTokenStart();if(this.input.charCodeAt(e)===60){let s=this.input.charCodeAt(e+1);return s!==60&&s!==61}return!1}maybeUnwrapTypeCastExpression(e){return e.type==="TypeCastExpression"?e.expression:e}},W=$`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:a})=>`Expected corresponding JSX closing tag for <${a}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:a,HTMLEntity:t})=>`Unexpected token \`${a}\`. Did you mean \`${t}\` or \`{'${a}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?"});function K(a){return a?a.type==="JSXOpeningFragment"||a.type==="JSXClosingFragment":!1}function Z(a){if(a.type==="JSXIdentifier")return a.name;if(a.type==="JSXNamespacedName")return a.namespace.name+":"+a.name.name;if(a.type==="JSXMemberExpression")return Z(a.object)+"."+Z(a.property);throw new Error("Node had unexpected type: "+a.type)}var ir=a=>class extends a{jsxReadToken(){let e="",s=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(W.UnterminatedJsxContent,{at:this.state.startLoc});let i=this.input.charCodeAt(this.state.pos);switch(i){case 60:case 123:if(this.state.pos===this.state.start){i===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(140)):super.getTokenFromCode(i);return}e+=this.input.slice(s,this.state.pos),this.finishToken(139,e);return;case 38:e+=this.input.slice(s,this.state.pos),e+=this.jsxReadEntity(),s=this.state.pos;break;case 62:case 125:default:xe(i)?(e+=this.input.slice(s,this.state.pos),e+=this.jsxReadNewLine(!0),s=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){let s=this.input.charCodeAt(this.state.pos),i;return++this.state.pos,s===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,i=e?` `:`\r -`):i=String.fromCharCode(s),++this.state.curLine,this.state.lineStart=this.state.pos,i}jsxReadString(e){let s="",i=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(p.UnterminatedString,{at:this.state.startLoc});let r=this.input.charCodeAt(this.state.pos);if(r===e)break;r===38?(s+=this.input.slice(i,this.state.pos),s+=this.jsxReadEntity(),i=this.state.pos):ke(r)?(s+=this.input.slice(i,this.state.pos),s+=this.jsxReadNewLine(!1),i=this.state.pos):++this.state.pos}s+=this.input.slice(i,this.state.pos++),this.finishToken(131,s)}jsxReadEntity(){let e=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let s=10;this.codePointAtPos(this.state.pos)===120&&(s=16,++this.state.pos);let i=this.readInt(s,void 0,!1,"bail");if(i!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(i)}else{let s=0,i=!1;for(;s++<10&&this.state.pos1){for(let i=0;i=0;i--){let r=this.scopeStack[i];if(r.types.has(e)||r.exportOnlyBindings.has(e))return}super.checkLocalExport(t)}},ia=(a,t)=>Object.hasOwnProperty.call(a,t)&&a[t],Qs=a=>a.type==="ParenthesizedExpression"?Qs(a.expression):a,jt=class extends _t{toAssignable(t,e=!1){var s,i;let r;switch((t.type==="ParenthesizedExpression"||(s=t.extra)!=null&&s.parenthesized)&&(r=Qs(t),e?r.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(p.InvalidParenthesizedAssignment,{at:t}):r.type!=="MemberExpression"&&this.raise(p.InvalidParenthesizedAssignment,{at:t}):this.raise(p.InvalidParenthesizedAssignment,{at:t})),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern";for(let o=0,h=t.properties.length,l=h-1;oi.type!=="ObjectMethod"&&(r===s||i.type!=="SpreadElement")&&this.isAssignable(i))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every(s=>s===null||this.isAssignable(s));case"AssignmentExpression":return t.operator==="=";case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!e;default:return!1}}toReferencedList(t,e){return t}toReferencedListDeep(t,e){this.toReferencedList(t,e);for(let s of t)(s==null?void 0:s.type)==="ArrayExpression"&&this.toReferencedListDeep(s.elements)}parseSpread(t){let e=this.startNode();return this.next(),e.argument=this.parseMaybeAssignAllowIn(t,void 0),this.finishNode(e,"SpreadElement")}parseRestBinding(){let t=this.startNode();return this.next(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,1),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(t,e,s){let i=s&1,r=[],n=!0;for(;!this.eat(t);)if(n?n=!1:this.expect(12),i&&this.match(12))r.push(null);else{if(this.eat(t))break;if(this.match(21)){if(r.push(this.parseAssignableListItemTypes(this.parseRestBinding(),s)),!this.checkCommaAfterRest(e)){this.expect(t);break}}else{let o=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(p.UnsupportedParameterDecorator,{at:this.state.startLoc});this.match(26);)o.push(this.parseDecorator());r.push(this.parseAssignableListItem(s,o))}}return r}parseBindingRestProperty(t){return this.next(),t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){let t=this.startNode(),{type:e,startLoc:s}=this.state;return e===21?this.parseBindingRestProperty(t):(e===136?(this.expectPlugin("destructuringPrivate",s),this.classScope.usePrivateName(this.state.value,s),t.key=this.parsePrivateName()):this.parsePropertyName(t),t.method=!1,this.parseObjPropValue(t,s,!1,!1,!0,!1))}parseAssignableListItem(t,e){let s=this.parseMaybeDefault();this.parseAssignableListItemTypes(s,t);let i=this.parseMaybeDefault(s.loc.start,s);return e.length&&(s.decorators=e),i}parseAssignableListItemTypes(t,e){return t}parseMaybeDefault(t,e){var s,i;if((s=t)!=null||(t=this.state.startLoc),e=(i=e)!=null?i:this.parseBindingAtom(),!this.eat(29))return e;let r=this.startNodeAt(t);return r.left=e,r.right=this.parseMaybeAssignAllowIn(),this.finishNode(r,"AssignmentPattern")}isValidLVal(t,e,s){return ia({AssignmentPattern:"left",RestElement:"argument",ObjectProperty:"value",ParenthesizedExpression:"expression",ArrayPattern:"elements",ObjectPattern:"properties"},t)}checkLVal(t,{in:e,binding:s=W,checkClashes:i=!1,strictModeChanged:r=!1,hasParenthesizedAncestor:n=!1}){var o;let h=t.type;if(this.isObjectMethod(t))return;if(h==="MemberExpression"){s!==W&&this.raise(p.InvalidPropertyBindingPattern,{at:t});return}if(h==="Identifier"){this.checkIdentifier(t,s,r);let{name:f}=t;i&&(i.has(f)?this.raise(p.ParamDupe,{at:t}):i.add(f));return}let l=this.isValidLVal(h,!(n||(o=t.extra)!=null&&o.parenthesized)&&e.type==="AssignmentExpression",s);if(l===!0)return;if(l===!1){let f=s===W?p.InvalidLhs:p.InvalidLhsBinding;this.raise(f,{at:t,ancestor:e});return}let[c,u]=Array.isArray(l)?l:[l,h==="ParenthesizedExpression"],d=h==="ArrayPattern"||h==="ObjectPattern"||h==="ParenthesizedExpression"?{type:h}:e;for(let f of[].concat(t[c]))f&&this.checkLVal(f,{in:d,binding:s,checkClashes:i,strictModeChanged:r,hasParenthesizedAncestor:u})}checkIdentifier(t,e,s=!1){this.state.strict&&(s?Bs(t.name,this.inModule):Os(t.name))&&(e===W?this.raise(p.StrictEvalArguments,{at:t,referenceName:t.name}):this.raise(p.StrictEvalArgumentsBinding,{at:t,bindingName:t.name})),e&it&&t.name==="let"&&this.raise(p.LetInLexicalBinding,{at:t}),e&W||this.declareNameFromIdentifier(t,e)}declareNameFromIdentifier(t,e){this.scope.declareName(t.name,e,t.loc.start)}checkToRestConversion(t,e){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,e);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(e)break;default:this.raise(p.InvalidRestAssignmentPattern,{at:t})}}checkCommaAfterRest(t){return this.match(12)?(this.raise(this.lookaheadCharCode()===t?p.RestTrailingComma:p.ElementAfterRest,{at:this.state.startLoc}),!0):!1}},ra=(a,t)=>Object.hasOwnProperty.call(a,t)&&a[t];function aa(a){if(a==null)throw new Error(`Unexpected ${a} value.`);return a}function bs(a){if(!a)throw new Error("Assert fail")}var y=V`typescript`({AbstractMethodHasImplementation:({methodName:a})=>`Method '${a}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:a})=>`Property '${a}' cannot have an initializer because it is marked abstract.`,AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:a})=>`'declare' is not allowed in ${a}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:a})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:a})=>`Duplicate modifier: '${a}'.`,EmptyHeritageClauseType:({token:a})=>`'${a}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:a})=>`'${a[0]}' modifier cannot be used with '${a[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:a})=>`Index signatures cannot have an accessibility modifier ('${a}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier:a})=>`'${a}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:a})=>`'${a}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:a})=>`'${a}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:a})=>`'${a[0]}' modifier must precede '${a[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:a})=>`Private elements cannot have an accessibility modifier ('${a}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:a})=>`Single type parameter ${a} should have a trailing comma. Example usage: <${a},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:a})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${a}.`});function na(a){switch(a){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function As(a){return a==="private"||a==="public"||a==="protected"}function oa(a){return a==="in"||a==="out"}var ha=a=>class extends a{constructor(...e){super(...e),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:y.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:y.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:y.InvalidModifierOnTypeParameter})}getScopeHandler(){return Ut}tsIsIdentifier(){return S(this.state.type)}tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(136)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(e,s){if(!S(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let i=this.state.value;if(e.indexOf(i)!==-1){if(s&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return i}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:s,stopOnStartOfClassStaticBlock:i,errorTemplate:r=y.InvalidModifierOnTypeMember},n){let o=(l,c,u,d)=>{c===u&&n[d]&&this.raise(y.InvalidModifiersOrder,{at:l,orderedModifiers:[u,d]})},h=(l,c,u,d)=>{(n[u]&&c===d||n[d]&&c===u)&&this.raise(y.IncompatibleModifiers,{at:l,modifiers:[u,d]})};for(;;){let{startLoc:l}=this.state,c=this.tsParseModifier(e.concat(s??[]),i);if(!c)break;As(c)?n.accessibility?this.raise(y.DuplicateAccessibilityModifier,{at:l,modifier:c}):(o(l,c,c,"override"),o(l,c,c,"static"),o(l,c,c,"readonly"),n.accessibility=c):oa(c)?(n[c]&&this.raise(y.DuplicateModifier,{at:l,modifier:c}),n[c]=!0,o(l,c,"in","out")):(Object.hasOwnProperty.call(n,c)?this.raise(y.DuplicateModifier,{at:l,modifier:c}):(o(l,c,"static","readonly"),o(l,c,"static","override"),o(l,c,"override","readonly"),o(l,c,"abstract","override"),h(l,c,"declare","override"),h(l,c,"static","abstract")),n[c]=!0),s!=null&&s.includes(c)&&this.raise(r,{at:l,modifier:c})}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(e,s){let i=[];for(;!this.tsIsListTerminator(e);)i.push(s());return i}tsParseDelimitedList(e,s,i){return aa(this.tsParseDelimitedListWorker(e,s,!0,i))}tsParseDelimitedListWorker(e,s,i,r){let n=[],o=-1;for(;!this.tsIsListTerminator(e);){o=-1;let h=s();if(h==null)return;if(n.push(h),this.eat(12)){o=this.state.lastTokStart;continue}if(this.tsIsListTerminator(e))break;i&&this.expect(12);return}return r&&(r.value=o),n}tsParseBracketedList(e,s,i,r,n){r||(i?this.expect(0):this.expect(47));let o=this.tsParseDelimitedList(e,s,n);return i?this.expect(3):this.expect(48),o}tsParseImportType(){let e=this.startNode();return this.expect(83),this.expect(10),this.match(131)||this.raise(y.UnsupportedImportTypeArgument,{at:this.state.startLoc}),e.argument=super.parseExprAtom(),this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName()),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseEntityName(e=!0){let s=this.parseIdentifier(e);for(;this.eat(16);){let i=this.startNodeAtNode(s);i.left=s,i.right=this.parseIdentifier(e),s=this.finishNode(i,"TSQualifiedName")}return s}tsParseTypeReference(){let e=this.startNode();return e.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();let s=this.startNodeAtNode(e);return s.parameterName=e,s.typeAnnotation=this.tsParseTypeAnnotation(!1),s.asserts=!1,this.finishNode(s,"TSTypePredicate")}tsParseThisTypeNode(){let e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){let e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){let s=this.startNode();return e(s),s.name=this.tsParseTypeParameterName(),s.constraint=this.tsEatThenParseType(81),s.default=this.tsEatThenParseType(29),this.finishNode(s,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){let s=this.startNode();this.match(47)||this.match(140)?this.next():this.unexpected();let i={value:-1};return s.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,i),s.params.length===0&&this.raise(y.EmptyTypeParameters,{at:s}),i.value!==-1&&this.addExtra(s,"trailingComma",i.value),this.finishNode(s,"TSTypeParameterDeclaration")}tsFillSignature(e,s){let i=e===19,r="parameters",n="typeAnnotation";s.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),s[r]=this.tsParseBindingListForSignature(),i?s[n]=this.tsParseTypeOrTypePredicateAnnotation(e):this.match(e)&&(s[n]=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){let e=super.parseBindingList(11,41,2);for(let s of e){let{type:i}=s;(i==="AssignmentPattern"||i==="TSParameterProperty")&&this.raise(y.UnsupportedSignatureParameterKind,{at:s,type:i})}return e}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(e,s){return this.tsFillSignature(14,s),this.tsParseTypeMemberSemicolon(),this.finishNode(s,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),S(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(e){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let s=this.parseIdentifier();s.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(s),this.expect(3),e.parameters=[s];let i=this.tsTryParseTypeAnnotation();return i&&(e.typeAnnotation=i),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,s){this.eat(17)&&(e.optional=!0);let i=e;if(this.match(10)||this.match(47)){s&&this.raise(y.ReadonlyForMethodSignature,{at:e});let r=i;r.kind&&this.match(47)&&this.raise(y.AccesorCannotHaveTypeParameters,{at:this.state.curPosition()}),this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon();let n="parameters",o="typeAnnotation";if(r.kind==="get")r[n].length>0&&(this.raise(p.BadGetterArity,{at:this.state.curPosition()}),this.isThisParam(r[n][0])&&this.raise(y.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}));else if(r.kind==="set"){if(r[n].length!==1)this.raise(p.BadSetterArity,{at:this.state.curPosition()});else{let h=r[n][0];this.isThisParam(h)&&this.raise(y.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}),h.type==="Identifier"&&h.optional&&this.raise(y.SetAccesorCannotHaveOptionalParameter,{at:this.state.curPosition()}),h.type==="RestElement"&&this.raise(y.SetAccesorCannotHaveRestParameter,{at:this.state.curPosition()})}r[o]&&this.raise(y.SetAccesorCannotHaveReturnType,{at:r[o]})}else r.kind="method";return this.finishNode(r,"TSMethodSignature")}else{let r=i;s&&(r.readonly=!0);let n=this.tsTryParseTypeAnnotation();return n&&(r.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSPropertySignature")}}tsParseTypeMember(){let e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){let i=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(i,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e);let s=this.tsTryParseIndexSignature(e);return s||(super.parsePropertyName(e),!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.tsTokenCanFollowModifier()&&(e.kind=e.key.name,super.parsePropertyName(e)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){let e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(120):(this.isContextual(120)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedTypeParameter(){let e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(58),this.finishNode(e,"TSTypeParameter")}tsParseMappedType(){let e=this.startNode();return this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(120)):this.eatContextual(120)&&(e.readonly=!0),this.expect(0),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}tsParseTupleType(){let e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let s=!1,i=null;return e.elementTypes.forEach(r=>{var n;let{type:o}=r;s&&o!=="TSRestType"&&o!=="TSOptionalType"&&!(o==="TSNamedTupleMember"&&r.optional)&&this.raise(y.OptionalTypeBeforeRequired,{at:r}),s||(s=o==="TSNamedTupleMember"&&r.optional||o==="TSOptionalType");let h=o;o==="TSRestType"&&(r=r.typeAnnotation,h=r.type);let l=h==="TSNamedTupleMember";(n=i)!=null||(i=l),i!==l&&this.raise(y.MixedLabeledAndUnlabeledElements,{at:r})}),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){let{startLoc:e}=this.state,s=this.eat(21),i,r,n,o,l=M(this.state.type)?this.lookaheadCharCode():null;if(l===58)i=!0,n=!1,r=this.parseIdentifier(!0),this.expect(14),o=this.tsParseType();else if(l===63){n=!0;let c=this.state.startLoc,u=this.state.value,d=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(i=!0,r=this.createIdentifier(this.startNodeAt(c),u),this.expect(17),this.expect(14),o=this.tsParseType()):(i=!1,o=d,this.expect(17))}else o=this.tsParseType(),n=this.eat(17),i=this.eat(14);if(i){let c;r?(c=this.startNodeAtNode(r),c.optional=n,c.label=r,c.elementType=o,this.eat(17)&&(c.optional=!0,this.raise(y.TupleOptionalAfterType,{at:this.state.lastTokStartLoc}))):(c=this.startNodeAtNode(o),c.optional=n,this.raise(y.InvalidTupleMemberLabel,{at:o}),c.label=o,c.elementType=this.tsParseType()),o=this.finishNode(c,"TSNamedTupleMember")}else if(n){let c=this.startNodeAtNode(o);c.typeAnnotation=o,o=this.finishNode(c,"TSOptionalType")}if(s){let c=this.startNodeAt(e);c.typeAnnotation=o,o=this.finishNode(c,"TSRestType")}return o}tsParseParenthesizedType(){let e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,s){let i=this.startNode();return e==="TSConstructorType"&&(i.abstract=!!s,s&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,i)),this.finishNode(i,e)}tsParseLiteralTypeNode(){let e=this.startNode();switch(this.state.type){case 132:case 133:case 131:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){let e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let e=this.tsParseThisTypeNode();return this.isContextual(114)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 131:case 132:case 133:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let e=this.startNode(),s=this.lookahead();return s.type!==132&&s.type!==133&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:e}=this.state;if(S(e)||e===88||e===84){let s=e===88?"TSVoidKeyword":e===84?"TSNullKeyword":na(this.state.value);if(s!==void 0&&this.lookaheadCharCode()!==46){let i=this.startNode();return this.next(),this.finishNode(i,s)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let s=this.startNodeAtNode(e);s.elementType=e,this.expect(3),e=this.finishNode(s,"TSArrayType")}else{let s=this.startNodeAtNode(e);s.objectType=e,s.indexType=this.tsParseType(),this.expect(3),e=this.finishNode(s,"TSIndexedAccessType")}return e}tsParseTypeOperator(){let e=this.startNode(),s=this.state.value;return this.next(),e.operator=s,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),s==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(y.UnexpectedReadonly,{at:e})}}tsParseInferType(){let e=this.startNode();this.expectContextual(113);let s=this.startNode();return s.name=this.tsParseTypeParameterName(),s.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),e.typeParameter=this.finishNode(s,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let e=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){return ur(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(113)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(e,s,i){let r=this.startNode(),n=this.eat(i),o=[];do o.push(s());while(this.eat(i));return o.length===1&&!n?o[0]:(r.types=o,this.finishNode(r,e))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(S(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:e}=this.state,s=e.length;try{return this.parseObjectLike(8,!0),e.length===s}catch{return!1}}if(this.match(0)){this.next();let{errors:e}=this.state,s=e.length;try{return super.parseBindingList(3,93,1),e.length===s}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{let s=this.startNode();this.expect(e);let i=this.startNode(),r=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(r&&this.match(78)){let h=this.tsParseThisTypeOrThisTypePredicate();return h.type==="TSThisType"?(i.parameterName=h,i.asserts=!0,i.typeAnnotation=null,h=this.finishNode(i,"TSTypePredicate")):(this.resetStartLocationFromNode(h,i),h.asserts=!0),s.typeAnnotation=h,this.finishNode(s,"TSTypeAnnotation")}let n=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!n)return r?(i.parameterName=this.parseIdentifier(),i.asserts=r,i.typeAnnotation=null,s.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(s,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,s);let o=this.tsParseTypeAnnotation(!1);return i.parameterName=n,i.typeAnnotation=o,i.asserts=r,s.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(s,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let e=this.parseIdentifier();if(this.isContextual(114)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(this.state.type!==107)return!1;let e=this.state.containsEsc;return this.next(),!S(this.state.type)&&!this.match(78)?!1:(e&&this.raise(p.InvalidEscapedReservedWord,{at:this.state.lastTokStartLoc,reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(e=!0,s=this.startNode()){return this.tsInType(()=>{e&&this.expect(14),s.typeAnnotation=this.tsParseType()}),this.finishNode(s,"TSTypeAnnotation")}tsParseType(){bs(this.state.inType);let e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;let s=this.startNodeAtNode(e);return s.checkType=e,s.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),s.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),s.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(s,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(122)&&this.lookahead().type===77}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(y.ReservedTypeAssertion,{at:this.state.startLoc});let e=this.startNode();return e.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){let s=this.state.startLoc,i=this.tsParseDelimitedList("HeritageClauseElement",()=>{let r=this.startNode();return r.expression=this.tsParseEntityName(),this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSExpressionWithTypeArguments")});return i.length||this.raise(y.EmptyHeritageClauseType,{at:s,token:e}),i}tsParseInterfaceDeclaration(e,s={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(127),s.declare&&(e.declare=!0),S(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,wr)):(e.id=null,this.raise(y.MissingInterfaceName,{at:this.state.startLoc})),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));let i=this.startNode();return i.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(i,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,Ir),e.typeAnnotation=this.tsInType(()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(112)&&this.lookahead().type!==16){let s=this.startNode();return this.next(),this.finishNode(s,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInNoContext(e){let s=this.state.context;this.state.context=[s[0]];try{return e()}finally{this.state.context=s}}tsInType(e){let s=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=s}}tsInDisallowConditionalTypesContext(e){let s=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=s}}tsInAllowConditionalTypesContext(e){let s=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=s}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType(()=>(this.expect(e),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let e=this.startNode();return e.id=this.match(131)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,s={}){return s.const&&(e.const=!0),s.declare&&(e.declare=!0),this.expectContextual(124),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?kr:Vs),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")}tsParseModuleBlock(){let e=this.startNode();return this.scope.enter(ae),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,s=!1){if(e.id=this.parseIdentifier(),s||this.checkIdentifier(e.id,vr),this.eat(16)){let i=this.startNode();this.tsParseModuleOrNamespaceDeclaration(i,!0),e.body=i}else this.scope.enter(le),this.prodParam.enter(pe),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(110)?(e.global=!0,e.id=this.parseIdentifier()):this.match(131)?e.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(le),this.prodParam.enter(pe),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,s,i){e.isExport=i||!1,e.id=s||this.parseIdentifier(),this.checkIdentifier(e.id,Ne),this.expect(29);let r=this.tsParseModuleReference();return e.importKind==="type"&&r.type!=="TSExternalModuleReference"&&this.raise(y.ImportAliasHasImportType,{at:r}),e.moduleReference=r,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(117)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){let e=this.startNode();return this.expectContextual(117),this.expect(10),this.match(131)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){let s=this.state.clone(),i=e();return this.state=s,i}tsTryParseAndCatch(e){let s=this.tryParse(i=>e()||i());if(!(s.aborted||!s.node))return s.error&&(this.state=s.failState),s.node}tsTryParse(e){let s=this.state.clone(),i=e();if(i!==void 0&&i!==!1)return i;this.state=s}tsTryParseDeclare(e){if(this.isLineTerminator())return;let s=this.state.type,i;return this.isContextual(99)&&(s=74,i="let"),this.tsInAmbientContext(()=>{switch(s){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 124:return this.tsParseEnumDeclaration(e,{declare:!0});case 110:return this.tsParseAmbientExternalModuleDeclaration(e);case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(e.declare=!0,this.parseVarStatement(e,i||this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0}));case 127:{let r=this.tsParseInterfaceDeclaration(e,{declare:!0});if(r)return r}default:if(S(s))return this.tsParseDeclaration(e,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(e,s,i){switch(s.name){case"declare":{let r=this.tsTryParseDeclare(e);return r&&(r.declare=!0),r}case"global":if(this.match(5)){this.scope.enter(le),this.prodParam.enter(pe);let r=e;return r.global=!0,r.id=s,r.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(r,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,s.name,!1,i)}}tsParseDeclaration(e,s,i,r){switch(s){case"abstract":if(this.tsCheckLineTerminator(i)&&(this.match(80)||S(this.state.type)))return this.tsParseAbstractDeclaration(e,r);break;case"module":if(this.tsCheckLineTerminator(i)){if(this.match(131))return this.tsParseAmbientExternalModuleDeclaration(e);if(S(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(i)&&S(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(i)&&S(this.state.type))return this.tsParseTypeAliasDeclaration(e);break}}tsCheckLineTerminator(e){return e?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;let s=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let i=this.tsTryParseAndCatch(()=>{let r=this.startNodeAt(e);return r.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(r),r.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),r});if(this.state.maybeInArrowParameters=s,!!i)return super.parseArrowExpression(i,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let e=this.startNode();return e.params=this.tsInType(()=>this.tsInNoContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),e.params.length===0?this.raise(y.EmptyTypeArguments,{at:e}):!this.state.inType&&this.curContext()===E.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return fr(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseAssignableListItem(e,s){let i=this.state.startLoc,r={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},r);let n=r.accessibility,o=r.override,h=r.readonly;!(e&4)&&(n||h||o)&&this.raise(y.UnexpectedParameterModifier,{at:i});let l=this.parseMaybeDefault();this.parseAssignableListItemTypes(l,e);let c=this.parseMaybeDefault(l.loc.start,l);if(n||h||o){let u=this.startNodeAt(i);return s.length&&(u.decorators=s),n&&(u.accessibility=n),h&&(u.readonly=h),o&&(u.override=o),c.type!=="Identifier"&&c.type!=="AssignmentPattern"&&this.raise(y.UnsupportedParameterPropertyKind,{at:u}),u.parameter=c,this.finishNode(u,"TSParameterProperty")}return s.length&&(l.decorators=s),c}isSimpleParameter(e){return e.type==="TSParameterProperty"&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(let s of e.params)s.type!=="Identifier"&&s.optional&&!this.state.isAmbientContext&&this.raise(y.PatternIsOptional,{at:s})}setArrowFunctionParameters(e,s,i){super.setArrowFunctionParameters(e,s,i),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,s,i=!1){this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let r=s==="FunctionDeclaration"?"TSDeclareFunction":s==="ClassMethod"||s==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return r&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,r):r==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(y.DeclareFunctionHasImplementation,{at:e}),e.declare)?super.parseFunctionBodyAndFinish(e,r,i):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,s,i))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,ms):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach(s=>{(s==null?void 0:s.type)==="TSTypeCastExpression"&&this.raise(y.UnexpectedTypeAnnotation,{at:s.typeAnnotation})})}toReferencedList(e,s){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,s,i,r){let n=super.parseArrayLike(e,s,i,r);return n.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(n.elements),n}parseSubscript(e,s,i,r){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let o=this.startNodeAt(s);return o.expression=e,this.finishNode(o,"TSNonNullExpression")}let n=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(i)return r.stop=!0,e;r.optionalChainMember=n=!0,this.next()}if(this.match(47)||this.match(51)){let o,h=this.tsTryParseAndCatch(()=>{if(!i&&this.atPossibleAsyncArrow(e)){let d=this.tsTryParseGenericAsyncArrowFunction(s);if(d)return d}let l=this.tsParseTypeArgumentsInExpression();if(!l)return;if(n&&!this.match(10)){o=this.state.curPosition();return}if(Xe(this.state.type)){let d=super.parseTaggedTemplateExpression(e,s,r);return d.typeParameters=l,d}if(!i&&this.eat(10)){let d=this.startNodeAt(s);return d.callee=e,d.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(d.arguments),d.typeParameters=l,r.optionalChainMember&&(d.optional=n),this.finishCallExpression(d,r.optionalChainMember)}let c=this.state.type;if(c===48||c===52||c!==10&>(c)&&!this.hasPrecedingLineBreak())return;let u=this.startNodeAt(s);return u.expression=e,u.typeParameters=l,this.finishNode(u,"TSInstantiationExpression")});if(o&&this.unexpected(o,10),h)return h.type==="TSInstantiationExpression"&&(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(y.InvalidPropertyAccessAfterInstantiationExpression,{at:this.state.startLoc}),h}return super.parseSubscript(e,s,i,r)}parseNewCallee(e){var s;super.parseNewCallee(e);let{callee:i}=e;i.type==="TSInstantiationExpression"&&!((s=i.extra)!=null&&s.parenthesized)&&(e.typeParameters=i.typeParameters,e.callee=i.expression)}parseExprOp(e,s,i){let r;if(ze(58)>i&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(r=this.isContextual(118)))){let n=this.startNodeAt(s);return n.expression=e,n.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(r&&this.raise(p.UnexpectedKeyword,{at:this.state.startLoc,keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(n,r?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(n,s,i)}return super.parseExprOp(e,s,i)}checkReservedWord(e,s,i,r){this.state.isAmbientContext||super.checkReservedWord(e,s,i,r)}checkImportReflection(e){super.checkImportReflection(e),e.module&&e.importKind!=="value"&&this.raise(y.ImportReflectionHasImportType,{at:e.specifiers[0].loc.start})}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(128)){let s=this.lookaheadCharCode();return e?s===123||s===42:s!==61}return!e&&this.isContextual(87)}applyImportPhase(e,s,i,r){super.applyImportPhase(e,s,i,r),s?e.exportKind=i==="type"?"type":"value":e.importKind=i==="type"||i==="typeof"?i:"value"}parseImport(e){if(this.match(131))return e.importKind="value",super.parseImport(e);let s;if(S(this.state.type)&&this.lookaheadCharCode()===61)return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(128)){let i=this.parseMaybeImportPhase(e,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(e,i);s=super.parseImportSpecifiersAndAfter(e,i)}else s=super.parseImport(e);return s.importKind==="type"&&s.specifiers.length>1&&s.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(y.TypeImportCannotSpecifyDefaultAndNamed,{at:s}),s}parseExport(e,s){if(this.match(83)){this.next();let i=null;return this.isContextual(128)&&this.isPotentialImportPhase(!1)?i=this.parseMaybeImportPhase(e,!1):e.importKind="value",this.tsParseImportEqualsDeclaration(e,i,!0)}else if(this.eat(29)){let i=e;return i.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(i,"TSExportAssignment")}else if(this.eatContextual(93)){let i=e;return this.expectContextual(126),i.id=this.parseIdentifier(),this.semicolon(),this.finishNode(i,"TSNamespaceExportDeclaration")}else return super.parseExport(e,s)}isAbstractClass(){return this.isContextual(122)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){let e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(127)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,s,i=!1){let{isAmbientContext:r}=this.state,n=super.parseVarStatement(e,s,i||r);if(!r)return n;for(let{id:o,init:h}of n.declarations)h&&(s!=="const"||o.typeAnnotation?this.raise(y.InitializerNotAllowedInAmbientContext,{at:h}):ca(h,this.hasPlugin("estree"))||this.raise(y.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,{at:h}));return n}parseStatementContent(e,s){if(this.match(75)&&this.isLookaheadContextual("enum")){let i=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(i,{const:!0})}if(this.isContextual(124))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(127)){let i=this.tsParseInterfaceDeclaration(this.startNode());if(i)return i}return super.parseStatementContent(e,s)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,s){return s.some(i=>As(i)?e.accessibility===i:!!e[i])}tsIsStartOfStaticBlocks(){return this.isContextual(104)&&this.lookaheadCharCode()===123}parseClassMember(e,s,i){let r=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:r,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:y.InvalidModifierOnTypeParameterPositions},s);let n=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(s,r)&&this.raise(y.StaticBlockCannotHaveModifier,{at:this.state.curPosition()}),super.parseClassStaticBlock(e,s)):this.parseClassMemberWithIsStatic(e,s,i,!!s.static)};s.declare?this.tsInAmbientContext(n):n()}parseClassMemberWithIsStatic(e,s,i,r){let n=this.tsTryParseIndexSignature(s);if(n){e.body.push(n),s.abstract&&this.raise(y.IndexSignatureHasAbstract,{at:s}),s.accessibility&&this.raise(y.IndexSignatureHasAccessibility,{at:s,modifier:s.accessibility}),s.declare&&this.raise(y.IndexSignatureHasDeclare,{at:s}),s.override&&this.raise(y.IndexSignatureHasOverride,{at:s});return}!this.state.inAbstractClass&&s.abstract&&this.raise(y.NonAbstractClassHasAbstractMethod,{at:s}),s.override&&(i.hadSuperClass||this.raise(y.OverrideNotInSubClass,{at:s})),super.parseClassMemberWithIsStatic(e,s,i,r)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(y.ClassMethodHasReadonly,{at:e}),e.declare&&this.match(10)&&this.raise(y.ClassMethodHasDeclare,{at:e})}parseExpressionStatement(e,s,i){return(s.type==="Identifier"?this.tsParseExpressionStatement(e,s,i):void 0)||super.parseExpressionStatement(e,s,i)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(e,s,i){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(e,s,i);let r=this.tryParse(()=>super.parseConditional(e,s));return r.node?(r.error&&(this.state=r.failState),r.node):(r.error&&super.setOptionalParametersError(i,r.error),e)}parseParenItem(e,s){if(e=super.parseParenItem(e,s),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){let i=this.startNodeAt(s);return i.expression=e,i.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(i,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(123))return this.tsInAmbientContext(()=>this.parseExportDeclaration(e));let s=this.state.startLoc,i=this.eatContextual(123);if(i&&(this.isContextual(123)||!this.shouldParseExportDeclaration()))throw this.raise(y.ExpectedAmbientAfterExportDeclare,{at:this.state.startLoc});let n=S(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return n?((n.type==="TSInterfaceDeclaration"||n.type==="TSTypeAliasDeclaration"||i)&&(e.exportKind="type"),i&&(this.resetStartLocation(n,s),n.declare=!0),n):null}parseClassId(e,s,i,r){if((!s||i)&&this.isContextual(111))return;super.parseClassId(e,s,i,e.declare?ms:js);let n=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);n&&(e.typeParameters=n)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));let s=this.tsTryParseTypeAnnotation();s&&(e.typeAnnotation=s)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&!(e.readonly&&!e.typeAnnotation)&&this.match(29)&&this.raise(y.DeclareClassFieldHasInitializer,{at:this.state.startLoc}),e.abstract&&this.match(29)){let{key:s}=e;this.raise(y.AbstractPropertyHasInitializer,{at:this.state.startLoc,propertyName:s.type==="Identifier"&&!e.computed?s.name:`[${this.input.slice(s.start,s.end)}]`})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(y.PrivateElementHasAbstract,{at:e}),e.accessibility&&this.raise(y.PrivateElementHasAccessibility,{at:e,modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(y.AccessorCannotBeOptional,{at:e}),super.parseClassAccessorProperty(e)}pushClassMethod(e,s,i,r,n,o){let h=this.tsTryParseTypeParameters(this.tsParseConstModifier);h&&n&&this.raise(y.ConstructorHasTypeParameters,{at:h});let{declare:l=!1,kind:c}=s;l&&(c==="get"||c==="set")&&this.raise(y.DeclareAccessor,{at:s,kind:c}),h&&(s.typeParameters=h),super.pushClassMethod(e,s,i,r,n,o)}pushClassPrivateMethod(e,s,i,r){let n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(s.typeParameters=n),super.pushClassPrivateMethod(e,s,i,r)}declareClassPrivateMethodInScope(e,s){e.type!=="TSDeclareMethod"&&(e.type==="MethodDefinition"&&!e.value.body||super.declareClassPrivateMethodInScope(e,s))}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(111)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,s,i,r,n,o,h){let l=this.tsTryParseTypeParameters(this.tsParseConstModifier);return l&&(e.typeParameters=l),super.parseObjPropValue(e,s,i,r,n,o,h)}parseFunctionParams(e,s){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(e.typeParameters=i),super.parseFunctionParams(e,s)}parseVarId(e,s){super.parseVarId(e,s),e.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);let i=this.tsTryParseTypeAnnotation();i&&(e.id.typeAnnotation=i,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,s){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,s)}parseMaybeAssign(e,s){var i,r,n,o,h;let l,c,u;if(this.hasPlugin("jsx")&&(this.match(140)||this.match(47))){if(l=this.state.clone(),c=this.tryParse(()=>super.parseMaybeAssign(e,s),l),!c.error)return c.node;let{context:x}=this.state,I=x[x.length-1];(I===E.j_oTag||I===E.j_expr)&&x.pop()}if(!((i=c)!=null&&i.error)&&!this.match(47))return super.parseMaybeAssign(e,s);(!l||l===this.state)&&(l=this.state.clone());let d,f=this.tryParse(x=>{var I,C;d=this.tsParseTypeParameters(this.tsParseConstModifier);let w=super.parseMaybeAssign(e,s);return(w.type!=="ArrowFunctionExpression"||(I=w.extra)!=null&&I.parenthesized)&&x(),((C=d)==null?void 0:C.params.length)!==0&&this.resetStartLocationFromNode(w,d),w.typeParameters=d,w},l);if(!f.error&&!f.aborted)return d&&this.reportReservedArrowTypeParam(d),f.node;if(!c&&(bs(!this.hasPlugin("jsx")),u=this.tryParse(()=>super.parseMaybeAssign(e,s),l),!u.error))return u.node;if((r=c)!=null&&r.node)return this.state=c.failState,c.node;if(f.node)return this.state=f.failState,d&&this.reportReservedArrowTypeParam(d),f.node;if((n=u)!=null&&n.node)return this.state=u.failState,u.node;throw((o=c)==null?void 0:o.error)||f.error||((h=u)==null?void 0:h.error)}reportReservedArrowTypeParam(e){var s;e.params.length===1&&!e.params[0].constraint&&!((s=e.extra)!=null&&s.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(y.ReservedArrowTypeParam,{at:e})}parseMaybeUnary(e,s){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,s)}parseArrow(e){if(this.match(14)){let s=this.tryParse(i=>{let r=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&i(),r});if(s.aborted)return;s.thrown||(s.error&&(this.state=s.failState),e.returnType=s.node)}return super.parseArrow(e)}parseAssignableListItemTypes(e,s){if(!(s&2))return e;this.eat(17)&&(e.optional=!0);let i=this.tsTryParseTypeAnnotation();return i&&(e.typeAnnotation=i),this.resetEndLocation(e),e}isAssignable(e,s){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,s);case"TSParameterProperty":return!0;default:return super.isAssignable(e,s)}}toAssignable(e,s=!1){switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,s);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":s?this.expressionScope.recordArrowParameterBindingError(y.UnexpectedTypeCastInParameter,{at:e}):this.raise(y.UnexpectedTypeCastInParameter,{at:e}),this.toAssignable(e.expression,s);break;case"AssignmentExpression":!s&&e.left.type==="TSTypeCastExpression"&&(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,s)}}toAssignableParenthesizedExpression(e,s){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,s);break;default:super.toAssignable(e,s)}}checkToRestConversion(e,s){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,s)}}isValidLVal(e,s,i){return ra({TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSAsExpression:(i!==W||!s)&&["expression",!0],TSSatisfiesExpression:(i!==W||!s)&&["expression",!0],TSTypeAssertion:(i!==W||!s)&&["expression",!0]},e)||super.isValidLVal(e,s,i)}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e){if(this.match(47)||this.match(51)){let s=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let i=super.parseMaybeDecoratorArguments(e);return i.typeParameters=s,i}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,s){let i=super.parseMaybeDefault(e,s);return i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.startthis.isAssignable(s,!0)):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){let s=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());s&&(e.typeParameters=s)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){let s=super.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e)[0];return r&&this.isThisParam(r)?s+1:s}parseCatchClauseParam(){let e=super.parseCatchClauseParam(),s=this.tsTryParseTypeAnnotation();return s&&(e.typeAnnotation=s,this.resetEndLocation(e)),e}tsInAmbientContext(e){let s=this.state.isAmbientContext;this.state.isAmbientContext=!0;try{return e()}finally{this.state.isAmbientContext=s}}parseClass(e,s,i){let r=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,s,i)}finally{this.state.inAbstractClass=r}}tsParseAbstractDeclaration(e,s){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(s,this.parseClass(e,!0,!1));if(this.isContextual(127)){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(y.NonClassMethodPropertyHasAbstractModifer,{at:e}),this.tsParseInterfaceDeclaration(e)}else this.unexpected(null,80)}parseMethod(e,s,i,r,n,o,h){let l=super.parseMethod(e,s,i,r,n,o,h);if(l.abstract&&(this.hasPlugin("estree")?!!l.value.body:!!l.body)){let{key:u}=l;this.raise(y.AbstractMethodHasImplementation,{at:l,methodName:u.type==="Identifier"&&!l.computed?u.name:`[${this.input.slice(u.start,u.end)}]`})}return l}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,s,i,r){return!s&&r?(this.parseTypeOnlyImportExportSpecifier(e,!1,i),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,s,i,r))}parseImportSpecifier(e,s,i,r,n){return!s&&r?(this.parseTypeOnlyImportExportSpecifier(e,!0,i),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,s,i,r,i?ys:Ne))}parseTypeOnlyImportExportSpecifier(e,s,i){let r=s?"imported":"local",n=s?"local":"exported",o=e[r],h,l=!1,c=!0,u=o.loc.start;if(this.isContextual(93)){let f=this.parseIdentifier();if(this.isContextual(93)){let x=this.parseIdentifier();M(this.state.type)?(l=!0,o=f,h=s?this.parseIdentifier():this.parseModuleExportName(),c=!1):(h=x,c=!1)}else M(this.state.type)?(c=!1,h=s?this.parseIdentifier():this.parseModuleExportName()):(l=!0,o=f)}else M(this.state.type)&&(l=!0,s?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());l&&i&&this.raise(s?y.TypeModifierIsUsedInTypeImports:y.TypeModifierIsUsedInTypeExports,{at:u}),e[r]=o,e[n]=h;let d=s?"importKind":"exportKind";e[d]=l?"type":"value",c&&this.eatContextual(93)&&(e[n]=s?this.parseIdentifier():this.parseModuleExportName()),e[n]||(e[n]=K(e[r])),s&&this.checkIdentifier(e[n],l?ys:Ne)}};function la(a){if(a.type!=="MemberExpression")return!1;let{computed:t,property:e}=a;return t&&e.type!=="StringLiteral"&&(e.type!=="TemplateLiteral"||e.expressions.length>0)?!1:ei(a.object)}function ca(a,t){var e;let{type:s}=a;if((e=a.extra)!=null&&e.parenthesized)return!1;if(t){if(s==="Literal"){let{value:i}=a;if(typeof i=="string"||typeof i=="boolean")return!0}}else if(s==="StringLiteral"||s==="BooleanLiteral")return!0;return!!(Zs(a,t)||pa(a,t)||s==="TemplateLiteral"&&a.expressions.length===0||la(a))}function Zs(a,t){return t?a.type==="Literal"&&(typeof a.value=="number"||"bigint"in a):a.type==="NumericLiteral"||a.type==="BigIntLiteral"}function pa(a,t){if(a.type==="UnaryExpression"){let{operator:e,argument:s}=a;if(e==="-"&&Zs(s,t))return!0}return!1}function ei(a){return a.type==="Identifier"?!0:a.type!=="MemberExpression"||a.computed?!1:ei(a.object)}var Ss=V`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),ua=a=>class extends a{parsePlaceholder(e){if(this.match(142)){let s=this.startNode();return this.next(),this.assertNoSpace(),s.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(142),this.finishPlaceholder(s,e)}}finishPlaceholder(e,s){let i=!!(e.expectedNode&&e.type==="Placeholder");return e.expectedNode=s,i?e:this.finishNode(e,"Placeholder")}getTokenFromCode(e){e===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(142,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,s,i,r){e!==void 0&&super.checkReservedWord(e,s,i,r)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,s,i){return e==="Placeholder"||super.isValidLVal(e,s,i)}toAssignable(e,s){e&&e.type==="Placeholder"&&e.expectedNode==="Expression"?e.expectedNode="Pattern":super.toAssignable(e,s)}chStartsBindingIdentifier(e,s){return!!(super.chStartsBindingIdentifier(e,s)||this.lookahead().type===142)}verifyBreakContinue(e,s){e.label&&e.label.type==="Placeholder"||super.verifyBreakContinue(e,s)}parseExpressionStatement(e,s){if(s.type!=="Placeholder"||s.extra&&s.extra.parenthesized)return super.parseExpressionStatement(e,s);if(this.match(14)){let i=e;return i.label=this.finishPlaceholder(s,"Identifier"),this.next(),i.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(i,"LabeledStatement")}return this.semicolon(),e.name=s.name,this.finishPlaceholder(e,"Statement")}parseBlock(e,s,i){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,s,i)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,s,i){let r=s?"ClassDeclaration":"ClassExpression";this.next();let n=this.state.strict,o=this.parsePlaceholder("Identifier");if(o)if(this.match(81)||this.match(142)||this.match(5))e.id=o;else{if(i||!s)return e.id=null,e.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(e,r);throw this.raise(Ss.ClassNameIsRequired,{at:this.state.startLoc})}else this.parseClassId(e,s,i);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,n),this.finishNode(e,r)}parseExport(e,s){let i=this.parsePlaceholder("Identifier");if(!i)return super.parseExport(e,s);if(!this.isContextual(97)&&!this.match(12))return e.specifiers=[],e.source=null,e.declaration=this.finishPlaceholder(i,"Declaration"),this.finishNode(e,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let r=this.startNode();return r.exported=i,e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],super.parseExport(e,s)}isExportDefaultSpecifier(){if(this.match(65)){let e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(J(142),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,s){var i;return(i=e.specifiers)!=null&&i.length?!0:super.maybeParseExportDefaultSpecifier(e,s)}checkExport(e){let{specifiers:s}=e;s!=null&&s.length&&(e.specifiers=s.filter(i=>i.exported.type==="Placeholder")),super.checkExport(e),e.specifiers=s}parseImport(e){let s=this.parsePlaceholder("Identifier");if(!s)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(97)&&!this.match(12))return e.source=this.finishPlaceholder(s,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");let i=this.startNodeAtNode(s);return i.local=s,e.specifiers.push(this.finishNode(i,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(97),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(Ss.UnexpectedSpace,{at:this.state.lastTokEndLoc})}},fa=a=>class extends a{parseV8Intrinsic(){if(this.match(54)){let e=this.state.startLoc,s=this.startNode();if(this.next(),S(this.state.type)){let i=this.parseIdentifierName(),r=this.createIdentifier(s,i);if(r.type="V8IntrinsicIdentifier",this.match(10))return r}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}};function k(a,t){let[e,s]=typeof t=="string"?[t,{}]:t,i=Object.keys(s),r=i.length===0;return a.some(n=>{if(typeof n=="string")return r&&n===e;{let[o,h]=n;if(o!==e)return!1;for(let l of i)if(h[l]!==s[l])return!1;return!0}})}function Q(a,t,e){let s=a.find(i=>Array.isArray(i)?i[0]===t:i===t);return s&&Array.isArray(s)&&s.length>1?s[1][e]:null}var Es=["minimal","fsharp","hack","smart"],Cs=["^^","@@","^","%","#"],ws=["hash","bar"];function da(a){if(k(a,"decorators")){if(k(a,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let t=Q(a,"decorators","decoratorsBeforeExport");if(t!=null&&typeof t!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let e=Q(a,"decorators","allowCallParenthesized");if(e!=null&&typeof e!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(k(a,"flow")&&k(a,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(k(a,"placeholders")&&k(a,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(k(a,"pipelineOperator")){let t=Q(a,"pipelineOperator","proposal");if(!Es.includes(t)){let s=Es.map(i=>`"${i}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${s}.`)}let e=k(a,["recordAndTuple",{syntaxType:"hash"}]);if(t==="hack"){if(k(a,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(k(a,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let s=Q(a,"pipelineOperator","topicToken");if(!Cs.includes(s)){let i=Cs.map(r=>`"${r}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${i}.`)}if(s==="#"&&e)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}else if(t==="smart"&&e)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}if(k(a,"moduleAttributes")){if(k(a,"importAssertions")||k(a,"importAttributes"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if(Q(a,"moduleAttributes","version")!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(k(a,"importAssertions")&&k(a,"importAttributes"))throw new Error("Cannot combine importAssertions and importAttributes plugins.");if(k(a,"recordAndTuple")&&Q(a,"recordAndTuple","syntaxType")!=null&&!ws.includes(Q(a,"recordAndTuple","syntaxType")))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+ws.map(t=>`'${t}'`).join(", "));if(k(a,"asyncDoExpressions")&&!k(a,"doExpressions")){let t=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw t.missingPlugins="doExpressions",t}}var ti={estree:sr,jsx:sa,flow:ta,typescript:ha,v8intrinsic:fa,placeholders:ua},ma=Object.keys(ti),Is={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};function ya(a){if(a&&a.annexB!=null&&a.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");let t={};for(let e of Object.keys(Is))t[e]=a&&a[e]!=null?a[e]:Is[e];return t}var $t=class extends jt{checkProto(t,e,s,i){if(t.type==="SpreadElement"||this.isObjectMethod(t)||t.computed||t.shorthand)return;let r=t.key;if((r.type==="Identifier"?r.name:r.value)==="__proto__"){if(e){this.raise(p.RecordNoProto,{at:r});return}s.used&&(i?i.doubleProtoLoc===null&&(i.doubleProtoLoc=r.loc.start):this.raise(p.DuplicateProto,{at:r})),s.used=!0}}shouldExitDescending(t,e){return t.type==="ArrowFunctionExpression"&&t.start===e}getExpression(){this.enterInitialScopes(),this.nextToken();let t=this.parseExpression();return this.match(137)||this.unexpected(),this.finalizeRemainingComments(),t.comments=this.state.comments,t.errors=this.state.errors,this.options.tokens&&(t.tokens=this.tokens),t}parseExpression(t,e){return t?this.disallowInAnd(()=>this.parseExpressionBase(e)):this.allowInAnd(()=>this.parseExpressionBase(e))}parseExpressionBase(t){let e=this.state.startLoc,s=this.parseMaybeAssign(t);if(this.match(12)){let i=this.startNodeAt(e);for(i.expressions=[s];this.eat(12);)i.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(i.expressions),this.finishNode(i,"SequenceExpression")}return s}parseMaybeAssignDisallowIn(t,e){return this.disallowInAnd(()=>this.parseMaybeAssign(t,e))}parseMaybeAssignAllowIn(t,e){return this.allowInAnd(()=>this.parseMaybeAssign(t,e))}setOptionalParametersError(t,e){var s;t.optionalParametersLoc=(s=e==null?void 0:e.loc)!=null?s:this.state.startLoc}parseMaybeAssign(t,e){let s=this.state.startLoc;if(this.isContextual(106)&&this.prodParam.hasYield){let o=this.parseYield();return e&&(o=e.call(this,o,s)),o}let i;t?i=!1:(t=new ue,i=!0);let{type:r}=this.state;(r===10||S(r))&&(this.state.potentialArrowAt=this.state.start);let n=this.parseMaybeConditional(t);if(e&&(n=e.call(this,n,s)),or(this.state.type)){let o=this.startNodeAt(s),h=this.state.value;if(o.operator=h,this.match(29)){this.toAssignable(n,!0),o.left=n;let l=s.index;t.doubleProtoLoc!=null&&t.doubleProtoLoc.index>=l&&(t.doubleProtoLoc=null),t.shorthandAssignLoc!=null&&t.shorthandAssignLoc.index>=l&&(t.shorthandAssignLoc=null),t.privateKeyLoc!=null&&t.privateKeyLoc.index>=l&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null)}else o.left=n;return this.next(),o.right=this.parseMaybeAssign(),this.checkLVal(n,{in:this.finishNode(o,"AssignmentExpression")}),o}else i&&this.checkExpressionErrors(t,!0);return n}parseMaybeConditional(t){let e=this.state.startLoc,s=this.state.potentialArrowAt,i=this.parseExprOps(t);return this.shouldExitDescending(i,s)?i:this.parseConditional(i,e,t)}parseConditional(t,e,s){if(this.eat(17)){let i=this.startNodeAt(e);return i.test=t,i.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),i.alternate=this.parseMaybeAssign(),this.finishNode(i,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(136)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){let e=this.state.startLoc,s=this.state.potentialArrowAt,i=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(i,s)?i:this.parseExprOp(i,e,-1)}parseExprOp(t,e,s){if(this.isPrivateName(t)){let r=this.getPrivateNameSV(t);(s>=ze(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(p.PrivateInExpectedIn,{at:t,identifierName:r}),this.classScope.usePrivateName(r,t.loc.start)}let i=this.state.type;if(lr(i)&&(this.prodParam.hasIn||!this.match(58))){let r=ze(i);if(r>s){if(i===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,e)}let n=this.startNodeAt(e);n.left=t,n.operator=this.state.value;let o=i===41||i===42,h=i===40;if(h&&(r=ze(42)),this.next(),i===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(p.UnexpectedAwaitAfterPipelineBody,{at:this.state.startLoc});n.right=this.parseExprOpRightExpr(i,r);let l=this.finishNode(n,o||h?"LogicalExpression":"BinaryExpression"),c=this.state.type;if(h&&(c===41||c===42)||o&&c===40)throw this.raise(p.MixingCoalesceWithLogical,{at:this.state.startLoc});return this.parseExprOp(l,e,s)}}return t}parseExprOpRightExpr(t,e){let s=this.state.startLoc;switch(t){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"smart":return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(106))throw this.raise(p.PipeBodyIsTighter,{at:this.state.startLoc});return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t,e),s)});case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(e))}default:return this.parseExprOpBaseRightExpr(t,e)}}parseExprOpBaseRightExpr(t,e){let s=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),s,dr(t)?e-1:e)}parseHackPipeBody(){var t;let{startLoc:e}=this.state,s=this.parseMaybeAssign();return Gi.has(s.type)&&!((t=s.extra)!=null&&t.parenthesized)&&this.raise(p.PipeUnparenthesizedBody,{at:e,type:s.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(p.PipeTopicUnused,{at:e}),s}checkExponentialAfterUnary(t){this.match(57)&&this.raise(p.UnexpectedTokenUnaryExponentiation,{at:t.argument})}parseMaybeUnary(t,e){let s=this.state.startLoc,i=this.isContextual(96);if(i&&this.isAwaitAllowed()){this.next();let h=this.parseAwait(s);return e||this.checkExponentialAfterUnary(h),h}let r=this.match(34),n=this.startNode();if(pr(this.state.type)){n.operator=this.state.value,n.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let h=this.match(89);if(this.next(),n.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&h){let l=n.argument;l.type==="Identifier"?this.raise(p.StrictDelete,{at:n}):this.hasPropertyAsPrivateName(l)&&this.raise(p.DeletePrivateField,{at:n})}if(!r)return e||this.checkExponentialAfterUnary(n),this.finishNode(n,"UnaryExpression")}let o=this.parseUpdate(n,r,t);if(i){let{type:h}=this.state;if((this.hasPlugin("v8intrinsic")?gt(h):gt(h)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(p.AwaitNotInAsyncContext,{at:s}),this.parseAwait(s)}return o}parseUpdate(t,e,s){if(e){let n=t;return this.checkLVal(n.argument,{in:this.finishNode(n,"UpdateExpression")}),t}let i=this.state.startLoc,r=this.parseExprSubscripts(s);if(this.checkExpressionErrors(s,!1))return r;for(;cr(this.state.type)&&!this.canInsertSemicolon();){let n=this.startNodeAt(i);n.operator=this.state.value,n.prefix=!1,n.argument=r,this.next(),this.checkLVal(r,{in:r=this.finishNode(n,"UpdateExpression")})}return r}parseExprSubscripts(t){let e=this.state.startLoc,s=this.state.potentialArrowAt,i=this.parseExprAtom(t);return this.shouldExitDescending(i,s)?i:this.parseSubscripts(i,e)}parseSubscripts(t,e,s){let i={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do t=this.parseSubscript(t,e,s,i),i.maybeAsyncArrow=!1;while(!i.stop);return t}parseSubscript(t,e,s,i){let{type:r}=this.state;if(!s&&r===15)return this.parseBind(t,e,s,i);if(Xe(r))return this.parseTaggedTemplateExpression(t,e,i);let n=!1;if(r===18){if(s&&(this.raise(p.OptionalChainingNoNew,{at:this.state.startLoc}),this.lookaheadCharCode()===40))return i.stop=!0,t;i.optionalChainMember=n=!0,this.next()}if(!s&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,e,i,n);{let o=this.eat(0);return o||n||this.eat(16)?this.parseMember(t,e,i,o,n):(i.stop=!0,t)}}parseMember(t,e,s,i,r){let n=this.startNodeAt(e);return n.object=t,n.computed=i,i?(n.property=this.parseExpression(),this.expect(3)):this.match(136)?(t.type==="Super"&&this.raise(p.SuperPrivateField,{at:e}),this.classScope.usePrivateName(this.state.value,this.state.startLoc),n.property=this.parsePrivateName()):n.property=this.parseIdentifier(!0),s.optionalChainMember?(n.optional=r,this.finishNode(n,"OptionalMemberExpression")):this.finishNode(n,"MemberExpression")}parseBind(t,e,s,i){let r=this.startNodeAt(e);return r.object=t,this.next(),r.callee=this.parseNoCallExpr(),i.stop=!0,this.parseSubscripts(this.finishNode(r,"BindExpression"),e,s)}parseCoverCallAndAsyncArrowHead(t,e,s,i){let r=this.state.maybeInArrowParameters,n=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(e);o.callee=t;let{maybeAsyncArrow:h,optionalChainMember:l}=s;h&&(this.expressionScope.enter(Wr()),n=new ue),l&&(o.optional=i),i?o.arguments=this.parseCallExpressionArguments(11):o.arguments=this.parseCallExpressionArguments(11,t.type==="Import",t.type!=="Super",o,n);let c=this.finishCallExpression(o,l);return h&&this.shouldParseAsyncArrow()&&!i?(s.stop=!0,this.checkDestructuringPrivate(n),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(e),c)):(h&&(this.checkExpressionErrors(n,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=r,c}toReferencedArguments(t,e){this.toReferencedListDeep(t.arguments,e)}parseTaggedTemplateExpression(t,e,s){let i=this.startNodeAt(e);return i.tag=t,i.quasi=this.parseTemplate(!0),s.optionalChainMember&&this.raise(p.OptionalChainingNoTemplate,{at:e}),this.finishNode(i,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return t.type==="Identifier"&&t.name==="async"&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&t.start===this.state.potentialArrowAt}expectImportAttributesPlugin(){this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes")}finishCallExpression(t,e){if(t.callee.type==="Import")if(t.arguments.length===2&&(this.hasPlugin("moduleAttributes")||this.expectImportAttributesPlugin()),t.arguments.length===0||t.arguments.length>2)this.raise(p.ImportCallArity,{at:t,maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(let s of t.arguments)s.type==="SpreadElement"&&this.raise(p.ImportCallSpreadArgument,{at:s});return this.finishNode(t,e?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,e,s,i,r){let n=[],o=!0,h=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){e&&!this.hasPlugin("importAttributes")&&!this.hasPlugin("importAssertions")&&!this.hasPlugin("moduleAttributes")&&this.raise(p.ImportCallArgumentTrailingComma,{at:this.state.lastTokStartLoc}),i&&this.addTrailingCommaExtraToNode(i),this.next();break}n.push(this.parseExprListItem(!1,r,s))}return this.state.inFSharpPipelineDirectBody=h,n}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,e){var s;return this.resetPreviousNodeTrailingComments(e),this.expect(19),this.parseArrowExpression(t,e.arguments,!0,(s=e.extra)==null?void 0:s.trailingCommaLoc),e.innerComments&&De(t,e.innerComments),e.callee.trailingComments&&De(t,e.callee.trailingComments),t}parseNoCallExpr(){let t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}parseExprAtom(t){let e,s=null,{type:i}=this.state;switch(i){case 79:return this.parseSuper();case 83:return e=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(e):(this.match(10)||this.raise(p.UnsupportedImport,{at:this.state.lastTokStartLoc}),this.finishNode(e,"Import"));case 78:return e=this.startNode(),this.next(),this.finishNode(e,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 132:return this.parseNumericLiteral(this.state.value);case 133:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseDecimalLiteral(this.state.value);case 131:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let r=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(r)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,t);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:s=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(s,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{e=this.startNode(),this.next(),e.object=null;let r=e.callee=this.parseNoCallExpr();if(r.type==="MemberExpression")return this.finishNode(e,"BindExpression");throw this.raise(p.UnsupportedBind,{at:r})}case 136:return this.raise(p.PrivateInExpectedIn,{at:this.state.startLoc,identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let r=this.getPluginOption("pipelineOperator","proposal");if(r)return this.parseTopicReference(r);this.unexpected();break}case 47:{let r=this.input.codePointAt(this.nextTokenStart());$(r)||r===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(S(i)){if(this.isContextual(125)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let r=this.state.potentialArrowAt===this.state.start,n=this.state.containsEsc,o=this.parseIdentifier();if(!n&&o.name==="async"&&!this.canInsertSemicolon()){let{type:h}=this.state;if(h===68)return this.resetPreviousNodeTrailingComments(o),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(o));if(S(h))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(o)):o;if(h===90)return this.resetPreviousNodeTrailingComments(o),this.parseDo(this.startNodeAtNode(o),!0)}return r&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(o),[o],!1)):o}else this.unexpected()}}parseTopicReferenceThenEqualsSign(t,e){let s=this.getPluginOption("pipelineOperator","proposal");if(s)return this.state.type=t,this.state.value=e,this.state.pos--,this.state.end--,this.state.endLoc=L(this.state.endLoc,-1),this.parseTopicReference(s);this.unexpected()}parseTopicReference(t){let e=this.startNode(),s=this.state.startLoc,i=this.state.type;return this.next(),this.finishTopicReference(e,s,t,i)}finishTopicReference(t,e,s,i){if(this.testTopicReferenceConfiguration(s,e,i)){let r=s==="smart"?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise(s==="smart"?p.PrimaryTopicNotAllowed:p.PipeTopicUnbound,{at:e}),this.registerTopicReference(),this.finishNode(t,r)}else throw this.raise(p.PipeTopicUnconfiguredToken,{at:e,token:J(i)})}testTopicReferenceConfiguration(t,e,s){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:J(s)}]);case"smart":return s===27;default:throw this.raise(p.PipeTopicRequiresHackPipes,{at:e})}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(He(!0,this.prodParam.hasYield));let e=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(p.LineTerminatorBeforeArrow,{at:this.state.curPosition()}),this.expect(19),this.parseArrowExpression(t,e,!0)}parseDo(t,e){this.expectPlugin("doExpressions"),e&&this.expectPlugin("asyncDoExpressions"),t.async=e,this.next();let s=this.state.labels;return this.state.labels=[],e?(this.prodParam.enter(rt),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=s,this.finishNode(t,"DoExpression")}parseSuper(){let t=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!this.options.allowSuperOutsideMethod?this.raise(p.SuperNotAllowed,{at:t}):!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod&&this.raise(p.UnexpectedSuper,{at:t}),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(p.UnsupportedSuper,{at:t}),this.finishNode(t,"Super")}parsePrivateName(){let t=this.startNode(),e=this.startNodeAt(L(this.state.startLoc,1)),s=this.state.value;return this.next(),t.id=this.createIdentifier(e,s),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){let t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let e=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(102)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,e,"sent")}return this.parseFunction(t)}parseMetaProperty(t,e,s){t.meta=e;let i=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==s||i)&&this.raise(p.UnsupportedMetaProperty,{at:t.property,target:e.name,onlyValidPropertyName:s}),this.finishNode(t,"MetaProperty")}parseImportMetaProperty(t){let e=this.createIdentifier(this.startNodeAtNode(t),"import");return this.next(),this.isContextual(100)&&(this.inModule||this.raise(p.ImportMetaOutsideModule,{at:e}),this.sawUnambiguousESM=!0),this.parseMetaProperty(t,e,"meta")}parseLiteralAtNode(t,e,s){return this.addExtra(s,"rawValue",t),this.addExtra(s,"raw",this.input.slice(s.start,this.state.end)),s.value=t,this.next(),this.finishNode(s,e)}parseLiteral(t,e){let s=this.startNode();return this.parseLiteralAtNode(t,e,s)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){return this.parseLiteral(t,"BigIntLiteral")}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){let e=this.parseLiteral(t.value,"RegExpLiteral");return e.pattern=t.pattern,e.flags=t.flags,e}parseBooleanLiteral(t){let e=this.startNode();return e.value=t,this.next(),this.finishNode(e,"BooleanLiteral")}parseNullLiteral(){let t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){let e=this.state.startLoc,s;this.next(),this.expressionScope.enter(Hr());let i=this.state.maybeInArrowParameters,r=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let n=this.state.startLoc,o=[],h=new ue,l=!0,c,u;for(;!this.match(11);){if(l)l=!1;else if(this.expect(12,h.optionalParametersLoc===null?null:h.optionalParametersLoc),this.match(11)){u=this.state.startLoc;break}if(this.match(21)){let x=this.state.startLoc;if(c=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),x)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowIn(h,this.parseParenItem))}let d=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=i,this.state.inFSharpPipelineDirectBody=r;let f=this.startNodeAt(e);return t&&this.shouldParseArrow(o)&&(f=this.parseArrow(f))?(this.checkDestructuringPrivate(h),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(f,o,!1),f):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),u&&this.unexpected(u),c&&this.unexpected(c),this.checkExpressionErrors(h,!0),this.toReferencedListDeep(o,!0),o.length>1?(s=this.startNodeAt(n),s.expressions=o,this.finishNode(s,"SequenceExpression"),this.resetEndLocation(s,d)):s=o[0],this.wrapParenthesis(e,s))}wrapParenthesis(t,e){if(!this.options.createParenthesizedExpressions)return this.addExtra(e,"parenthesized",!0),this.addExtra(e,"parenStart",t.index),this.takeSurroundingComments(e,t.index,this.state.lastTokEndLoc.index),e;let s=this.startNodeAt(t);return s.expression=e,this.finishNode(s,"ParenthesizedExpression")}shouldParseArrow(t){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,e){return t}parseNewOrNewTarget(){let t=this.startNode();if(this.next(),this.match(16)){let e=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();let s=this.parseMetaProperty(t,e,"target");return!this.scope.inNonArrowFunction&&!this.scope.inClass&&!this.options.allowNewTargetOutsideFunction&&this.raise(p.UnexpectedNewTarget,{at:s}),s}return this.parseNew(t)}parseNew(t){if(this.parseNewCallee(t),this.eat(10)){let e=this.parseExprList(11);this.toReferencedList(e),t.arguments=e}else t.arguments=[];return this.finishNode(t,"NewExpression")}parseNewCallee(t){t.callee=this.parseNoCallExpr(),t.callee.type==="Import"&&this.raise(p.ImportCallNotNewExpression,{at:t.callee})}parseTemplateElement(t){let{start:e,startLoc:s,end:i,value:r}=this.state,n=e+1,o=this.startNodeAt(L(s,1));r===null&&(t||this.raise(p.InvalidEscapeSequenceTemplate,{at:L(this.state.firstInvalidTemplateEscapePos,1)}));let h=this.match(24),l=h?-1:-2,c=i+l;o.value={raw:this.input.slice(n,c).replace(/\r\n?/g,` -`),cooked:r===null?null:r.slice(1,l)},o.tail=h,this.next();let u=this.finishNode(o,"TemplateElement");return this.resetEndLocation(u,L(this.state.lastTokEndLoc,l)),u}parseTemplate(t){let e=this.startNode();e.expressions=[];let s=this.parseTemplateElement(t);for(e.quasis=[s];!s.tail;)e.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),e.quasis.push(s=this.parseTemplateElement(t));return this.finishNode(e,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,e,s,i){s&&this.expectPlugin("recordAndTuple");let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=Object.create(null),o=!0,h=this.startNode();for(h.properties=[],this.next();!this.match(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(h);break}let c;e?c=this.parseBindingProperty():(c=this.parsePropertyDefinition(i),this.checkProto(c,s,n,i)),s&&!this.isObjectProperty(c)&&c.type!=="SpreadElement"&&this.raise(p.InvalidRecordProperty,{at:c}),c.shorthand&&this.addExtra(c,"shorthand",!0),h.properties.push(c)}this.next(),this.state.inFSharpPipelineDirectBody=r;let l="ObjectExpression";return e?l="ObjectPattern":s&&(l="RecordExpression"),this.finishNode(h,l)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStart),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let e=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(p.UnsupportedPropertyDecorator,{at:this.state.startLoc});this.match(26);)e.push(this.parseDecorator());let s=this.startNode(),i=!1,r=!1,n;if(this.match(21))return e.length&&this.unexpected(),this.parseSpread();e.length&&(s.decorators=e,e=[]),s.method=!1,t&&(n=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(s);let h=this.state.containsEsc,l=this.parsePropertyName(s,t);if(!o&&!h&&this.maybeAsyncOrAccessorProp(s)){let c=l.name;c==="async"&&!this.hasPrecedingLineBreak()&&(i=!0,this.resetPreviousNodeTrailingComments(l),o=this.eat(55),this.parsePropertyName(s)),(c==="get"||c==="set")&&(r=!0,this.resetPreviousNodeTrailingComments(l),s.kind=c,this.match(55)&&(o=!0,this.raise(p.AccessorIsGenerator,{at:this.state.curPosition(),kind:c}),this.next()),this.parsePropertyName(s))}return this.parseObjPropValue(s,n,o,i,!1,r,t)}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var e;let s=this.getGetterSetterExpectedParamCount(t),i=this.getObjectOrClassMethodParams(t);i.length!==s&&this.raise(t.kind==="get"?p.BadGetterArity:p.BadSetterArity,{at:t}),t.kind==="set"&&((e=i[i.length-1])==null?void 0:e.type)==="RestElement"&&this.raise(p.BadSetterRestParameter,{at:t})}parseObjectMethod(t,e,s,i,r){if(r){let n=this.parseMethod(t,e,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(n),n}if(s||e||this.match(10))return i&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,e,s,!1,!1,"ObjectMethod")}parseObjectProperty(t,e,s,i){if(t.shorthand=!1,this.eat(14))return t.value=s?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(i),this.finishNode(t,"ObjectProperty");if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),s)t.value=this.parseMaybeDefault(e,K(t.key));else if(this.match(29)){let r=this.state.startLoc;i!=null?i.shorthandAssignLoc===null&&(i.shorthandAssignLoc=r):this.raise(p.InvalidCoverInitializedName,{at:r}),t.value=this.parseMaybeDefault(e,K(t.key))}else t.value=K(t.key);return t.shorthand=!0,this.finishNode(t,"ObjectProperty")}}parseObjPropValue(t,e,s,i,r,n,o){let h=this.parseObjectMethod(t,s,i,r,n)||this.parseObjectProperty(t,e,r,o);return h||this.unexpected(),h}parsePropertyName(t,e){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:s,value:i}=this.state,r;if(M(s))r=this.parseIdentifier(!0);else switch(s){case 132:r=this.parseNumericLiteral(i);break;case 131:r=this.parseStringLiteral(i);break;case 133:r=this.parseBigIntLiteral(i);break;case 134:r=this.parseDecimalLiteral(i);break;case 136:{let n=this.state.startLoc;e!=null?e.privateKeyLoc===null&&(e.privateKeyLoc=n):this.raise(p.UnexpectedPrivateField,{at:n}),r=this.parsePrivateName();break}default:this.unexpected()}t.key=r,s!==136&&(t.computed=!1)}return t.key}initFunction(t,e){t.id=null,t.generator=!1,t.async=e}parseMethod(t,e,s,i,r,n,o=!1){this.initFunction(t,s),t.generator=e,this.scope.enter(z|Ge|(o?ee:0)|(r?_s:0)),this.prodParam.enter(He(s,t.generator)),this.parseFunctionParams(t,i);let h=this.parseFunctionBodyAndFinish(t,n,!0);return this.prodParam.exit(),this.scope.exit(),h}parseArrayLike(t,e,s,i){s&&this.expectPlugin("recordAndTuple");let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=this.startNode();return this.next(),n.elements=this.parseExprList(t,!s,i,n),this.state.inFSharpPipelineDirectBody=r,this.finishNode(n,s?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,e,s,i){this.scope.enter(z|Qt);let r=He(s,!1);!this.match(5)&&this.prodParam.hasIn&&(r|=re),this.prodParam.enter(r),this.initFunction(t,s);let n=this.state.maybeInArrowParameters;return e&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,e,i)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=n,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,e,s){this.toAssignableList(e,s,!1),t.params=e}parseFunctionBodyAndFinish(t,e,s=!1){return this.parseFunctionBody(t,!1,s),this.finishNode(t,e)}parseFunctionBody(t,e,s=!1){let i=e&&!this.match(5);if(this.expressionScope.enter(Xs()),i)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,e,!1);else{let r=this.state.strict,n=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|Ys),t.body=this.parseBlock(!0,!1,o=>{let h=!this.isSimpleParamList(t.params);o&&h&&this.raise(p.IllegalLanguageModeDirective,{at:(t.kind==="method"||t.kind==="constructor")&&t.key?t.key.loc.end:t});let l=!r&&this.state.strict;this.checkParams(t,!this.state.strict&&!e&&!s&&!h,e,l),this.state.strict&&t.id&&this.checkIdentifier(t.id,Nr,l)}),this.prodParam.exit(),this.state.labels=n}this.expressionScope.exit()}isSimpleParameter(t){return t.type==="Identifier"}isSimpleParamList(t){for(let e=0,s=t.length;e10||!Er(t))return;if(s&&br(t)){this.raise(p.UnexpectedKeyword,{at:e,keyword:t});return}if((this.state.strict?i?Bs:Ms:Ds)(t,this.inModule)){this.raise(p.UnexpectedReservedWord,{at:e,reservedWord:t});return}else if(t==="yield"){if(this.prodParam.hasYield){this.raise(p.YieldBindingIdentifier,{at:e});return}}else if(t==="await"){if(this.prodParam.hasAwait){this.raise(p.AwaitBindingIdentifier,{at:e});return}if(this.scope.inStaticBlock){this.raise(p.AwaitBindingIdentifierInStaticBlock,{at:e});return}this.expressionScope.recordAsyncArrowParametersError({at:e})}else if(t==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(p.ArgumentsInClass,{at:e});return}}isAwaitAllowed(){return!!(this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction)}parseAwait(t){let e=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(p.AwaitExpressionFormalParameter,{at:e}),this.eat(55)&&this.raise(p.ObsoleteAwaitStar,{at:e}),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(e.argument=this.parseMaybeUnary(null,!0)),this.finishNode(e,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;let{type:t}=this.state;return t===53||t===10||t===0||Xe(t)||t===101&&!this.state.containsEsc||t===135||t===56||this.hasPlugin("v8intrinsic")&&t===54}parseYield(){let t=this.startNode();this.expressionScope.recordParameterInitializerError(p.YieldInParameter,{at:t}),this.next();let e=!1,s=null;if(!this.hasPrecedingLineBreak())switch(e=this.eat(55),this.state.type){case 13:case 137:case 8:case 11:case 3:case 9:case 14:case 12:if(!e)break;default:s=this.parseMaybeAssign()}return t.delegate=e,t.argument=s,this.finishNode(t,"YieldExpression")}checkPipelineAtInfixOperator(t,e){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&t.type==="SequenceExpression"&&this.raise(p.PipelineHeadSequenceExpression,{at:e})}parseSmartPipelineBodyInStyle(t,e){if(this.isSimpleReference(t)){let s=this.startNodeAt(e);return s.callee=t,this.finishNode(s,"PipelineBareFunction")}else{let s=this.startNodeAt(e);return this.checkSmartPipeTopicBodyEarlyErrors(e),s.expression=t,this.finishNode(s,"PipelineTopicExpression")}}isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(p.PipelineBodyNoArrow,{at:this.state.startLoc});this.topicReferenceWasUsedInCurrentContext()||this.raise(p.PipelineTopicUnused,{at:t})}withTopicBindingContext(t){let e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}withSmartMixTopicForbiddingContext(t){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}else return t()}withSoloAwaitPermittingContext(t){let e=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=e}}allowInAnd(t){let e=this.prodParam.currentFlags();if(re&~e){this.prodParam.enter(e|re);try{return t()}finally{this.prodParam.exit()}}return t()}disallowInAnd(t){let e=this.prodParam.currentFlags();if(re&e){this.prodParam.enter(e&~re);try{return t()}finally{this.prodParam.exit()}}return t()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){let e=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let i=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),e,t);return this.state.inFSharpPipelineDirectBody=s,i}parseModuleExpression(){this.expectPlugin("moduleBlocks");let t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let e=this.startNodeAt(this.state.endLoc);this.next();let s=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(e,8,"module")}finally{s()}return this.finishNode(t,"ModuleExpression")}parsePropertyNamePrefixOperator(t){}},yt={kind:"loop"},xa={kind:"switch"},Pa=/[\uD800-\uDFFF]/u,xt=/in(?:stanceof)?/y;function Ta(a,t){for(let e=0;e0)for(let[r,n]of Array.from(this.scope.undefinedExports))this.raise(p.ModuleExportUndefined,{at:n,localName:r});let i;return e===137?i=this.finishNode(t,"Program"):i=this.finishNodeAt(t,"Program",L(this.state.startLoc,-1)),i}stmtToDirective(t){let e=t;e.type="Directive",e.value=e.expression,delete e.expression;let s=e.value,i=s.value,r=this.input.slice(s.start,s.end),n=s.value=r.slice(1,-1);return this.addExtra(s,"raw",r),this.addExtra(s,"rawValue",n),this.addExtra(s,"expressionValue",i),s.type="DirectiveLiteral",e}parseInterpreterDirective(){if(!this.match(28))return null;let t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(){return this.isContextual(99)?this.hasFollowingBindingAtom():!1}chStartsBindingIdentifier(t,e){if($(t)){if(xt.lastIndex=e,xt.test(this.input)){let s=this.codePointAtPos(xt.lastIndex);if(!he(s)&&s!==92)return!1}return!0}else return t===92}chStartsBindingPattern(t){return t===91||t===123}hasFollowingBindingAtom(){let t=this.nextTokenStart(),e=this.codePointAtPos(t);return this.chStartsBindingPattern(e)||this.chStartsBindingIdentifier(e,t)}hasInLineFollowingBindingIdentifier(){let t=this.nextTokenInLineStart(),e=this.codePointAtPos(t);return this.chStartsBindingIdentifier(e,t)}startsUsingForOf(){let{type:t,containsEsc:e}=this.lookahead();if(t===101&&!e)return!1;if(S(t)&&!this.hasFollowingLineBreak())return this.expectPlugin("explicitResourceManagement"),!0}startsAwaitUsing(){let t=this.nextTokenInLineStart();if(this.isUnparsedContextual(t,"using")){t=this.nextTokenInLineStartSince(t+5);let e=this.codePointAtPos(t);if(this.chStartsBindingIdentifier(e,t))return this.expectPlugin("explicitResourceManagement"),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(t=!1){let e=0;return this.options.annexB&&!this.state.strict&&(e|=4,t&&(e|=8)),this.parseStatementLike(e)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(t){let e=null;return this.match(26)&&(e=this.parseDecorators(!0)),this.parseStatementContent(t,e)}parseStatementContent(t,e){let s=this.state.type,i=this.startNode(),r=!!(t&2),n=!!(t&4),o=t&1;switch(s){case 60:return this.parseBreakContinueStatement(i,!0);case 63:return this.parseBreakContinueStatement(i,!1);case 64:return this.parseDebuggerStatement(i);case 90:return this.parseDoWhileStatement(i);case 91:return this.parseForStatement(i);case 68:if(this.lookaheadCharCode()===46)break;return n||this.raise(this.state.strict?p.StrictFunction:this.options.annexB?p.SloppyFunctionAnnexB:p.SloppyFunction,{at:this.state.startLoc}),this.parseFunctionStatement(i,!1,!r&&n);case 80:return r||this.unexpected(),this.parseClass(this.maybeTakeDecorators(e,i),!0);case 69:return this.parseIfStatement(i);case 70:return this.parseReturnStatement(i);case 71:return this.parseSwitchStatement(i);case 72:return this.parseThrowStatement(i);case 73:return this.parseTryStatement(i);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.isAwaitAllowed()?r||this.raise(p.UnexpectedLexicalDeclaration,{at:i}):this.raise(p.AwaitUsingNotInAsyncContext,{at:i}),this.next(),this.parseVarStatement(i,"await using");break;case 105:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifier())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(p.UnexpectedUsingDeclaration,{at:this.state.startLoc}):r||this.raise(p.UnexpectedLexicalDeclaration,{at:this.state.startLoc}),this.parseVarStatement(i,"using");case 99:{if(this.state.containsEsc)break;let c=this.nextTokenStart(),u=this.codePointAtPos(c);if(u!==91&&(!r&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(u,c)&&u!==123))break}case 75:r||this.raise(p.UnexpectedLexicalDeclaration,{at:this.state.startLoc});case 74:{let c=this.state.value;return this.parseVarStatement(i,c)}case 92:return this.parseWhileStatement(i);case 76:return this.parseWithStatement(i);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(i);case 83:{let c=this.lookaheadCharCode();if(c===40||c===46)break}case 82:{!this.options.allowImportExportEverywhere&&!o&&this.raise(p.UnexpectedImportExport,{at:this.state.startLoc}),this.next();let c;return s===83?(c=this.parseImport(i),c.type==="ImportDeclaration"&&(!c.importKind||c.importKind==="value")&&(this.sawUnambiguousESM=!0)):(c=this.parseExport(i,e),(c.type==="ExportNamedDeclaration"&&(!c.exportKind||c.exportKind==="value")||c.type==="ExportAllDeclaration"&&(!c.exportKind||c.exportKind==="value")||c.type==="ExportDefaultDeclaration")&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(c),c}default:if(this.isAsyncFunction())return r||this.raise(p.AsyncFunctionInSingleStatementContext,{at:this.state.startLoc}),this.next(),this.parseFunctionStatement(i,!0,!r&&n)}let h=this.state.value,l=this.parseExpression();return S(s)&&l.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(i,h,l,t):this.parseExpressionStatement(i,l,e)}assertModuleNodeAllowed(t){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(p.ImportOutsideModule,{at:t})}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(t,e,s){return t&&(e.decorators&&e.decorators.length>0?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(p.DecoratorsBeforeAfterExport,{at:e.decorators[0]}),e.decorators.unshift(...t)):e.decorators=t,this.resetStartLocationFromNode(e,t[0]),s&&this.resetStartLocationFromNode(s,e)),e}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){let e=[];do e.push(this.parseDecorator());while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(p.DecoratorExportClass,{at:this.state.startLoc});else if(!this.canHaveLeadingDecorator())throw this.raise(p.UnexpectedLeadingDecorator,{at:this.state.startLoc});return e}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let t=this.startNode();if(this.next(),this.hasPlugin("decorators")){let e=this.state.startLoc,s;if(this.match(10)){let i=this.state.startLoc;this.next(),s=this.parseExpression(),this.expect(11),s=this.wrapParenthesis(i,s);let r=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(s),this.getPluginOption("decorators","allowCallParenthesized")===!1&&t.expression!==s&&this.raise(p.DecoratorArgumentsOutsideParentheses,{at:r})}else{for(s=this.parseIdentifier(!1);this.eat(16);){let i=this.startNodeAt(e);i.object=s,this.match(136)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),i.property=this.parsePrivateName()):i.property=this.parseIdentifier(!0),i.computed=!1,s=this.finishNode(i,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(s)}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t){if(this.eat(10)){let e=this.startNodeAtNode(t);return e.callee=t,e.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(e.arguments),this.finishNode(e,"CallExpression")}return t}parseBreakContinueStatement(t,e){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,e),this.finishNode(t,e?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,e){let s;for(s=0;sthis.parseStatement()),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(yt);let e=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(e=this.state.lastTokStartLoc),this.scope.enter(ae),this.expect(10),this.match(13))return e!==null&&this.unexpected(e),this.parseFor(t,null);let s=this.isContextual(99);{let h=this.isContextual(96)&&this.startsAwaitUsing(),l=h||this.isContextual(105)&&this.startsUsingForOf(),c=s&&this.hasFollowingBindingAtom()||l;if(this.match(74)||this.match(75)||c){let u=this.startNode(),d;h?(d="await using",this.isAwaitAllowed()||this.raise(p.AwaitUsingNotInAsyncContext,{at:this.state.startLoc}),this.next()):d=this.state.value,this.next(),this.parseVar(u,!0,d);let f=this.finishNode(u,"VariableDeclaration"),x=this.match(58);return x&&l&&this.raise(p.ForInUsing,{at:f}),(x||this.isContextual(101))&&f.declarations.length===1?this.parseForIn(t,f,e):(e!==null&&this.unexpected(e),this.parseFor(t,f))}}let i=this.isContextual(95),r=new ue,n=this.parseExpression(!0,r),o=this.isContextual(101);if(o&&(s&&this.raise(p.ForOfLet,{at:n}),e===null&&i&&n.type==="Identifier"&&this.raise(p.ForOfAsync,{at:n})),o||this.match(58)){this.checkDestructuringPrivate(r),this.toAssignable(n,!0);let h=o?"ForOfStatement":"ForInStatement";return this.checkLVal(n,{in:{type:h}}),this.parseForIn(t,n,e)}else this.checkExpressionErrors(r,!0);return e!==null&&this.unexpected(e),this.parseFor(t,n)}parseFunctionStatement(t,e,s){return this.next(),this.parseFunction(t,1|(s?2:0)|(e?8:0))}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),t.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(p.IllegalReturn,{at:this.state.startLoc}),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();let e=t.cases=[];this.expect(5),this.state.labels.push(xa),this.scope.enter(ae);let s;for(let i;!this.match(8);)if(this.match(61)||this.match(65)){let r=this.match(61);s&&this.finishNode(s,"SwitchCase"),e.push(s=this.startNode()),s.consequent=[],this.next(),r?s.test=this.parseExpression():(i&&this.raise(p.MultipleDefaultsInSwitch,{at:this.state.lastTokStartLoc}),i=!0,s.test=null),this.expect(14)}else s?s.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),s&&this.finishNode(s,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(p.NewlineAfterThrow,{at:this.state.lastTokEndLoc}),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){let t=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&t.type==="Identifier"?Fs:0),this.checkLVal(t,{in:{type:"CatchClause"},binding:Cr}),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){let e=this.startNode();this.next(),this.match(10)?(this.expect(10),e.param=this.parseCatchClauseParam(),this.expect(11)):(e.param=null,this.scope.enter(ae)),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(67)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(p.NoCatchOrFinally,{at:t}),this.finishNode(t,"TryStatement")}parseVarStatement(t,e,s=!1){return this.next(),this.parseVar(t,!1,e,s),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(yt),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(p.StrictWith,{at:this.state.startLoc}),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,e,s,i){for(let n of this.state.labels)n.name===e&&this.raise(p.LabelRedeclaration,{at:s,labelName:e});let r=hr(this.state.type)?"loop":this.match(71)?"switch":null;for(let n=this.state.labels.length-1;n>=0;n--){let o=this.state.labels[n];if(o.statementStart===t.start)o.statementStart=this.state.start,o.kind=r;else break}return this.state.labels.push({name:e,kind:r,statementStart:this.state.start}),t.body=i&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=s,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,e,s){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,e=!0,s){let i=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),e&&this.scope.enter(ae),this.parseBlockBody(i,t,!1,8,s),e&&this.scope.exit(),this.finishNode(i,"BlockStatement")}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="StringLiteral"&&!t.expression.extra.parenthesized}parseBlockBody(t,e,s,i,r){let n=t.body=[],o=t.directives=[];this.parseBlockOrModuleBlockBody(n,e?o:void 0,s,i,r)}parseBlockOrModuleBlockBody(t,e,s,i,r){let n=this.state.strict,o=!1,h=!1;for(;!this.match(i);){let l=s?this.parseModuleItem():this.parseStatementListItem();if(e&&!h){if(this.isValidDirective(l)){let c=this.stmtToDirective(l);e.push(c),!o&&c.value.value==="use strict"&&(o=!0,this.setStrict(!0));continue}h=!0,this.state.strictErrors.clear()}t.push(l)}r&&r.call(this,o),n||this.setStrict(!1),this.next()}parseFor(t,e){return t.init=e,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,e,s){let i=this.match(58);return this.next(),i?s!==null&&this.unexpected(s):t.await=s!==null,e.type==="VariableDeclaration"&&e.declarations[0].init!=null&&(!i||!this.options.annexB||this.state.strict||e.kind!=="var"||e.declarations[0].id.type!=="Identifier")&&this.raise(p.ForInOfLoopInitializer,{at:e,type:i?"ForInStatement":"ForOfStatement"}),e.type==="AssignmentPattern"&&this.raise(p.InvalidLhs,{at:e,ancestor:{type:"ForStatement"}}),t.left=e,t.right=i?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")}parseVar(t,e,s,i=!1){let r=t.declarations=[];for(t.kind=s;;){let n=this.startNode();if(this.parseVarId(n,s),n.init=this.eat(29)?e?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,n.init===null&&!i&&(n.id.type!=="Identifier"&&!(e&&(this.match(58)||this.isContextual(101)))?this.raise(p.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"destructuring"}):s==="const"&&!(this.match(58)||this.isContextual(101))&&this.raise(p.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"const"})),r.push(this.finishNode(n,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,e){let s=this.parseBindingAtom();this.checkLVal(s,{in:{type:"VariableDeclarator"},binding:e==="var"?Ze:ce}),t.id=s}parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}parseFunction(t,e=0){let s=e&2,i=!!(e&1),r=i&&!(e&4),n=!!(e&8);this.initFunction(t,n),this.match(55)&&(s&&this.raise(p.GeneratorInSingleStatementContext,{at:this.state.startLoc}),this.next(),t.generator=!0),i&&(t.id=this.parseFunctionId(r));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(z),this.prodParam.enter(He(n,t.generator)),i||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(t,i?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),i&&!s&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=o,t}parseFunctionId(t){return t||S(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,e){this.expect(10),this.expressionScope.enter(qr()),t.params=this.parseBindingList(11,41,2|(e?4:0)),this.expressionScope.exit()}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?Ze:ce:$s,t.id.loc.start)}parseClass(t,e,s){this.next();let i=this.state.strict;return this.state.strict=!0,this.parseClassId(t,e,s),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,i),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}isNonstaticConstructor(t){return!t.computed&&!t.static&&(t.key.name==="constructor"||t.key.value==="constructor")}parseClassBody(t,e){this.classScope.enter();let s={hadConstructor:!1,hadSuperClass:t},i=[],r=this.startNode();if(r.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(i.length>0)throw this.raise(p.DecoratorSemicolon,{at:this.state.lastTokEndLoc});continue}if(this.match(26)){i.push(this.parseDecorator());continue}let n=this.startNode();i.length&&(n.decorators=i,this.resetStartLocationFromNode(n,i[0]),i=[]),this.parseClassMember(r,n,s),n.kind==="constructor"&&n.decorators&&n.decorators.length>0&&this.raise(p.DecoratorConstructor,{at:n})}}),this.state.strict=e,this.next(),i.length)throw this.raise(p.TrailingDecorator,{at:this.state.startLoc});return this.classScope.exit(),this.finishNode(r,"ClassBody")}parseClassMemberFromModifier(t,e){let s=this.parseIdentifier(!0);if(this.isClassMethod()){let i=e;return i.kind="method",i.computed=!1,i.key=s,i.static=!1,this.pushClassMethod(t,i,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let i=e;return i.computed=!1,i.key=s,i.static=!1,t.body.push(this.parseClassProperty(i)),!0}return this.resetPreviousNodeTrailingComments(s),!1}parseClassMember(t,e,s){let i=this.isContextual(104);if(i){if(this.parseClassMemberFromModifier(t,e))return;if(this.eat(5)){this.parseClassStaticBlock(t,e);return}}this.parseClassMemberWithIsStatic(t,e,s,i)}parseClassMemberWithIsStatic(t,e,s,i){let r=e,n=e,o=e,h=e,l=e,c=r,u=r;if(e.static=i,this.parsePropertyNamePrefixOperator(e),this.eat(55)){c.kind="method";let C=this.match(136);if(this.parseClassElementName(c),C){this.pushClassPrivateMethod(t,n,!0,!1);return}this.isNonstaticConstructor(r)&&this.raise(p.ConstructorIsGenerator,{at:r.key}),this.pushClassMethod(t,r,!0,!1,!1,!1);return}let d=S(this.state.type)&&!this.state.containsEsc,f=this.match(136),x=this.parseClassElementName(e),I=this.state.startLoc;if(this.parsePostMemberNameModifiers(u),this.isClassMethod()){if(c.kind="method",f){this.pushClassPrivateMethod(t,n,!1,!1);return}let C=this.isNonstaticConstructor(r),w=!1;C&&(r.kind="constructor",s.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(p.DuplicateConstructor,{at:x}),C&&this.hasPlugin("typescript")&&e.override&&this.raise(p.OverrideOnConstructor,{at:x}),s.hadConstructor=!0,w=s.hadSuperClass),this.pushClassMethod(t,r,!1,!1,C,w)}else if(this.isClassProperty())f?this.pushClassPrivateProperty(t,h):this.pushClassProperty(t,o);else if(d&&x.name==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(x);let C=this.eat(55);u.optional&&this.unexpected(I),c.kind="method";let w=this.match(136);this.parseClassElementName(c),this.parsePostMemberNameModifiers(u),w?this.pushClassPrivateMethod(t,n,C,!0):(this.isNonstaticConstructor(r)&&this.raise(p.ConstructorIsAsync,{at:r.key}),this.pushClassMethod(t,r,C,!0,!1,!1))}else if(d&&(x.name==="get"||x.name==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(x),c.kind=x.name;let C=this.match(136);this.parseClassElementName(r),C?this.pushClassPrivateMethod(t,n,!1,!1):(this.isNonstaticConstructor(r)&&this.raise(p.ConstructorIsAccessor,{at:r.key}),this.pushClassMethod(t,r,!1,!1,!1,!1)),this.checkGetterSetterParams(r)}else if(d&&x.name==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(x);let C=this.match(136);this.parseClassElementName(o),this.pushClassAccessorProperty(t,l,C)}else this.isLineTerminator()?f?this.pushClassPrivateProperty(t,h):this.pushClassProperty(t,o):this.unexpected()}parseClassElementName(t){let{type:e,value:s}=this.state;if((e===130||e===131)&&t.static&&s==="prototype"&&this.raise(p.StaticPrototype,{at:this.state.startLoc}),e===136){s==="constructor"&&this.raise(p.ConstructorClassPrivateField,{at:this.state.startLoc});let i=this.parsePrivateName();return t.key=i,i}return this.parsePropertyName(t)}parseClassStaticBlock(t,e){var s;this.scope.enter(ee|Ye|Ge);let i=this.state.labels;this.state.labels=[],this.prodParam.enter(pe);let r=e.body=[];this.parseBlockOrModuleBlockBody(r,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=i,t.body.push(this.finishNode(e,"StaticBlock")),(s=e.decorators)!=null&&s.length&&this.raise(p.DecoratorStaticBlock,{at:e})}pushClassProperty(t,e){!e.computed&&(e.key.name==="constructor"||e.key.value==="constructor")&&this.raise(p.ConstructorClassField,{at:e.key}),t.body.push(this.parseClassProperty(e))}pushClassPrivateProperty(t,e){let s=this.parseClassPrivateProperty(e);t.body.push(s),this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),dt,s.key.loc.start)}pushClassAccessorProperty(t,e,s){if(!s&&!e.computed){let r=e.key;(r.name==="constructor"||r.value==="constructor")&&this.raise(p.ConstructorClassField,{at:r})}let i=this.parseClassAccessorProperty(e);t.body.push(i),s&&this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),dt,i.key.loc.start)}pushClassMethod(t,e,s,i,r,n){t.body.push(this.parseMethod(e,s,i,r,n,"ClassMethod",!0))}pushClassPrivateMethod(t,e,s,i){let r=this.parseMethod(e,s,i,!1,!1,"ClassPrivateMethod",!0);t.body.push(r);let n=r.kind==="get"?r.static?Dr:Or:r.kind==="set"?r.static?Mr:Br:dt;this.declareClassPrivateMethodInScope(r,n)}declareClassPrivateMethodInScope(t,e){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),e,t.key.loc.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(ee|Ge),this.expressionScope.enter(Xs()),this.prodParam.enter(pe),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,e,s,i=js){if(S(this.state.type))t.id=this.parseIdentifier(),e&&this.declareNameFromIdentifier(t.id,i);else if(s||!e)t.id=null;else throw this.raise(p.MissingClassName,{at:this.state.startLoc})}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(t,e){let s=this.parseMaybeImportPhase(t,!0),i=this.maybeParseExportDefaultSpecifier(t,s),r=!i||this.eat(12),n=r&&this.eatExportStar(t),o=n&&this.maybeParseExportNamespaceSpecifier(t),h=r&&(!o||this.eat(12)),l=i||n;if(n&&!o){if(i&&this.unexpected(),e)throw this.raise(p.UnsupportedDecoratorExport,{at:t});return this.parseExportFrom(t,!0),this.finishNode(t,"ExportAllDeclaration")}let c=this.maybeParseExportNamedSpecifiers(t);i&&r&&!n&&!c&&this.unexpected(null,5),o&&h&&this.unexpected(null,97);let u;if(l||c){if(u=!1,e)throw this.raise(p.UnsupportedDecoratorExport,{at:t});this.parseExportFrom(t,l)}else u=this.maybeParseExportDeclaration(t);if(l||c||u){var d;let f=t;if(this.checkExport(f,!0,!1,!!f.source),((d=f.declaration)==null?void 0:d.type)==="ClassDeclaration")this.maybeTakeDecorators(e,f.declaration,f);else if(e)throw this.raise(p.UnsupportedDecoratorExport,{at:t});return this.finishNode(f,"ExportNamedDeclaration")}if(this.eat(65)){let f=t,x=this.parseExportDefaultExpression();if(f.declaration=x,x.type==="ClassDeclaration")this.maybeTakeDecorators(e,x,f);else if(e)throw this.raise(p.UnsupportedDecoratorExport,{at:t});return this.checkExport(f,!0,!0),this.finishNode(f,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t,e){if(e||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",e==null?void 0:e.loc.start);let s=e||this.parseIdentifier(!0),i=this.startNodeAtNode(s);return i.exported=s,t.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){t.specifiers||(t.specifiers=[]);let e=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),e.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(e,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){t.specifiers||(t.specifiers=[]);let e=t.exportKind==="type";return t.specifiers.push(...this.parseExportSpecifiers(e)),t.source=null,t.declaration=null,this.hasPlugin("importAssertions")&&(t.assertions=[]),!0}return!1}maybeParseExportDeclaration(t){return this.shouldParseExportDeclaration()?(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")&&(t.assertions=[]),t.declaration=this.parseExportDeclaration(t),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let t=this.nextTokenInLineStart();return this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){let t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(p.DecoratorBeforeExport,{at:this.state.startLoc}),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(p.UnsupportedDefaultExport,{at:this.state.startLoc});let e=this.parseMaybeAssignAllowIn();return this.semicolon(),e}parseExportDeclaration(t){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:t}=this.state;if(S(t)){if(t===95&&!this.state.containsEsc||t===99)return!1;if((t===128||t===127)&&!this.state.containsEsc){let{type:i}=this.lookahead();if(S(i)&&i!==97||i===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let e=this.nextTokenStart(),s=this.isUnparsedContextual(e,"from");if(this.input.charCodeAt(e)===44||S(this.state.type)&&s)return!0;if(this.match(65)&&s){let i=this.input.charCodeAt(this.nextTokenStartSince(e+4));return i===34||i===39}return!1}parseExportFrom(t,e){this.eatContextual(97)?(t.source=this.parseImportSource(),this.checkExport(t),this.maybeParseImportAttributes(t),this.checkJSONModuleImport(t)):e&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:t}=this.state;return t===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(p.DecoratorBeforeExport,{at:this.state.startLoc}),!0):t===74||t===75||t===68||t===80||this.isLet()||this.isAsyncFunction()}checkExport(t,e,s,i){if(e){if(s){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var r;let n=t.declaration;n.type==="Identifier"&&n.name==="from"&&n.end-n.start===4&&!((r=n.extra)!=null&&r.parenthesized)&&this.raise(p.ExportDefaultFromAsIdentifier,{at:n})}}else if(t.specifiers&&t.specifiers.length)for(let n of t.specifiers){let{exported:o}=n,h=o.type==="Identifier"?o.name:o.value;if(this.checkDuplicateExports(n,h),!i&&n.local){let{local:l}=n;l.type!=="Identifier"?this.raise(p.ExportBindingIsString,{at:n,localName:l.value,exportName:h}):(this.checkReservedWord(l.name,l.loc.start,!0,!1),this.scope.checkLocalExport(l))}}else if(t.declaration){if(t.declaration.type==="FunctionDeclaration"||t.declaration.type==="ClassDeclaration"){let n=t.declaration.id;if(!n)throw new Error("Assertion failure");this.checkDuplicateExports(t,n.name)}else if(t.declaration.type==="VariableDeclaration")for(let n of t.declaration.declarations)this.checkDeclaration(n.id)}}}checkDeclaration(t){if(t.type==="Identifier")this.checkDuplicateExports(t,t.name);else if(t.type==="ObjectPattern")for(let e of t.properties)this.checkDeclaration(e);else if(t.type==="ArrayPattern")for(let e of t.elements)e&&this.checkDeclaration(e);else t.type==="ObjectProperty"?this.checkDeclaration(t.value):t.type==="RestElement"?this.checkDeclaration(t.argument):t.type==="AssignmentPattern"&&this.checkDeclaration(t.left)}checkDuplicateExports(t,e){this.exportedIdentifiers.has(e)&&(e==="default"?this.raise(p.DuplicateDefaultExport,{at:t}):this.raise(p.DuplicateExport,{at:t,exportName:e})),this.exportedIdentifiers.add(e)}parseExportSpecifiers(t){let e=[],s=!0;for(this.expect(5);!this.eat(8);){if(s)s=!1;else if(this.expect(12),this.eat(8))break;let i=this.isContextual(128),r=this.match(131),n=this.startNode();n.local=this.parseModuleExportName(),e.push(this.parseExportSpecifier(n,r,t,i))}return e}parseExportSpecifier(t,e,s,i){return this.eatContextual(93)?t.exported=this.parseModuleExportName():e?t.exported=Xr(t.local):t.exported||(t.exported=K(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(131)){let t=this.parseStringLiteral(this.state.value),e=t.value.match(Pa);return e&&this.raise(p.ModuleExportNameHasLoneSurrogate,{at:t,surrogateCharCode:e[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}isJSONModuleImport(t){return t.assertions!=null?t.assertions.some(({key:e,value:s})=>s.value==="json"&&(e.type==="Identifier"?e.name==="type":e.value==="type")):!1}checkImportReflection(t){if(t.module){var e;(t.specifiers.length!==1||t.specifiers[0].type!=="ImportDefaultSpecifier")&&this.raise(p.ImportReflectionNotBinding,{at:t.specifiers[0].loc.start}),((e=t.assertions)==null?void 0:e.length)>0&&this.raise(p.ImportReflectionHasAssertion,{at:t.specifiers[0].loc.start})}}checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&t.type!=="ExportAllDeclaration"){let{specifiers:e}=t;if(e!=null){let s=e.find(i=>{let r;if(i.type==="ExportSpecifier"?r=i.local:i.type==="ImportSpecifier"&&(r=i.imported),r!==void 0)return r.type==="Identifier"?r.name!=="default":r.value!=="default"});s!==void 0&&this.raise(p.ImportJSONBindingNotDefault,{at:s.loc.start})}}}isPotentialImportPhase(t){return!t&&this.isContextual(125)}applyImportPhase(t,e,s,i){e||(s==="module"?(this.expectPlugin("importReflection",i),t.module=!0):this.hasPlugin("importReflection")&&(t.module=!1))}parseMaybeImportPhase(t,e){if(!this.isPotentialImportPhase(e))return this.applyImportPhase(t,e,null),null;let s=this.parseIdentifier(!0),{type:i}=this.state;return(M(i)?i!==97||this.lookaheadCharCode()===102:i!==12)?(this.resetPreviousIdentifierLeadingComments(s),this.applyImportPhase(t,e,s.name,s.loc.start),null):(this.applyImportPhase(t,e,null),s)}isPrecedingIdImportPhase(t){let{type:e}=this.state;return S(e)?e!==97||this.lookaheadCharCode()===102:e!==12}parseImport(t){return this.match(131)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,!1))}parseImportSpecifiersAndAfter(t,e){t.specifiers=[];let i=!this.maybeParseDefaultImportSpecifier(t,e)||this.eat(12),r=i&&this.maybeParseStarImportSpecifier(t);return i&&!r&&this.parseNamedImportSpecifiers(t),this.expectContextual(97),this.parseImportSourceAndAttributes(t)}parseImportSourceAndAttributes(t){var e;return(e=t.specifiers)!=null||(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(131)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(t,e,s){e.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(e,s))}finishImportSpecifier(t,e,s=ce){return this.checkLVal(t.local,{in:{type:e},binding:s}),this.finishNode(t,e)}parseImportAttributes(){this.expect(5);let t=[],e=new Set;do{if(this.match(8))break;let s=this.startNode(),i=this.state.value;if(e.has(i)&&this.raise(p.ModuleAttributesWithDuplicateKeys,{at:this.state.startLoc,key:i}),e.add(i),this.match(131)?s.key=this.parseStringLiteral(i):s.key=this.parseIdentifier(!0),this.expect(14),!this.match(131))throw this.raise(p.ModuleAttributeInvalidValue,{at:this.state.startLoc});s.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(s,"ImportAttribute"))}while(this.eat(12));return this.expect(8),t}parseModuleAttributes(){let t=[],e=new Set;do{let s=this.startNode();if(s.key=this.parseIdentifier(!0),s.key.name!=="type"&&this.raise(p.ModuleAttributeDifferentFromType,{at:s.key}),e.has(s.key.name)&&this.raise(p.ModuleAttributesWithDuplicateKeys,{at:s.key,key:s.key.name}),e.add(s.key.name),this.expect(14),!this.match(131))throw this.raise(p.ModuleAttributeInvalidValue,{at:this.state.startLoc});s.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(s,"ImportAttribute"))}while(this.eat(12));return t}maybeParseImportAttributes(t){let e,s=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?e=this.parseModuleAttributes():(this.expectImportAttributesPlugin(),e=this.parseImportAttributes()),s=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.hasPlugin("importAttributes")?(this.getPluginOption("importAttributes","deprecatedAssertSyntax")!==!0&&this.raise(p.ImportAttributesUseAssert,{at:this.state.startLoc}),this.addExtra(t,"deprecatedAssertSyntax",!0)):this.expectOnePlugin(["importAttributes","importAssertions"]),this.next(),e=this.parseImportAttributes();else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))e=[];else if(this.hasPlugin("moduleAttributes"))e=[];else return;!s&&this.hasPlugin("importAssertions")?t.assertions=e:t.attributes=e}maybeParseDefaultImportSpecifier(t,e){if(e){let s=this.startNodeAtNode(e);return s.local=e,t.specifiers.push(this.finishImportSpecifier(s,"ImportDefaultSpecifier")),!0}else if(M(this.state.type))return this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(t){if(this.match(55)){let e=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,e,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(t){let e=!0;for(this.expect(5);!this.eat(8);){if(e)e=!1;else{if(this.eat(14))throw this.raise(p.DestructureNamedImport,{at:this.state.startLoc});if(this.expect(12),this.eat(8))break}let s=this.startNode(),i=this.match(131),r=this.isContextual(128);s.imported=this.parseModuleExportName();let n=this.parseImportSpecifier(s,i,t.importKind==="type"||t.importKind==="typeof",r,void 0);t.specifiers.push(n)}}parseImportSpecifier(t,e,s,i,r){if(this.eatContextual(93))t.local=this.parseIdentifier();else{let{imported:n}=t;if(e)throw this.raise(p.ImportBindingIsString,{at:t,importName:n.value});this.checkReservedWord(n.name,t.loc.start,!0,!0),t.local||(t.local=K(n))}return this.finishImportSpecifier(t,"ImportSpecifier",r)}isThisParam(t){return t.type==="Identifier"&&t.name==="this"}},st=class extends Vt{constructor(t,e){t=ya(t),super(t,e),this.options=t,this.initializeScopes(),this.plugins=ga(this.options.plugins),this.filename=t.sourceFilename}getScopeHandler(){return Le}parse(){this.enterInitialScopes();let t=this.startNode(),e=this.startNode();return this.nextToken(),t.errors=null,this.parseTopLevel(t,e),t.errors=this.state.errors,t}};function ga(a){let t=new Map;for(let e of a){let[s,i]=Array.isArray(e)?e:[e,{}];t.has(s)||t.set(s,i||{})}return t}function ba(a,t){var e;if(((e=t)==null?void 0:e.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let s=we(t,a),i=s.parse();if(s.sawUnambiguousESM)return i;if(s.ambiguousScriptDifferentAst)try{return t.sourceType="script",we(t,a).parse()}catch{}else i.program.sourceType="script";return i}catch(s){try{return t.sourceType="script",we(t,a).parse()}catch{}throw s}}else return we(t,a).parse()}function Aa(a,t){let e=we(t,a);return e.options.strictMode&&(e.state.strict=!0),e.getExpression()}function Sa(a){let t={};for(let e of Object.keys(a))t[e]=U(a[e]);return t}var Ea=Sa(rr);function we(a,t){let e=st;return a!=null&&a.plugins&&(da(a.plugins),e=Ca(a.plugins)),new e(a,t)}var Ns={};function Ca(a){let t=ma.filter(i=>k(a,i)),e=t.join("/"),s=Ns[e];if(!s){s=st;for(let i of t)s=ti[i](s);Ns[e]=s}return s}Me.parse=ba;Me.parseExpression=Aa;Me.tokTypes=Ea});var mi=cs(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.extract=_a;ie.parse=Ua;ie.parseWithComments=di;ie.print=ja;ie.strip=Ra;var Da=/\*\/$/,Ma=/^\/\*\*?/,ui=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Oa=/(^|\s+)\/\/([^\r\n]*)/g,li=/^(\r?\n)+/,Ba=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,ci=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,Fa=/(\r?\n|^) *\* ?/g,fi=[];function _a(a){let t=a.match(ui);return t?t[0].trimLeft():""}function Ra(a){let t=a.match(ui);return t&&t[0]?a.substring(t[0].length):a}function Ua(a){return di(a).pragmas}function di(a){let t=` -`;a=a.replace(Ma,"").replace(Da,"").replace(Fa,"$1");let e="";for(;e!==a;)e=a,a=a.replace(Ba,`${t}$1 $2${t}`);a=a.replace(li,"").trimRight();let s=Object.create(null),i=a.replace(ci,"").replace(li,"").trimRight(),r;for(;r=ci.exec(a);){let n=r[2].replace(Oa,"");typeof s[r[1]]=="string"||Array.isArray(s[r[1]])?s[r[1]]=fi.concat(s[r[1]],n):s[r[1]]=n}return{comments:i,pragmas:s}}function ja({comments:a="",pragmas:t={}}){let e=` -`,s="/**",i=" *",r=" */",n=Object.keys(t),o=n.map(l=>pi(l,t[l])).reduce((l,c)=>l.concat(c),[]).map(l=>`${i} ${l}${e}`).join("");if(!a){if(n.length===0)return"";if(n.length===1&&!Array.isArray(t[n[0]])){let l=t[n[0]];return`${s} ${pi(n[0],l)[0]}${r}`}}let h=a.split(e).map(l=>`${i} ${l}`).join(e)+e;return s+e+(a?h:"")+(a&&n.length?i+e:"")+o+r}function pi(a,t){return fi.concat(t).map(e=>`@${a} ${e}`.trim())}});var mn={};zi(mn,{parsers:()=>dn});var ct=pt(rs(),1);function wa(a){let t=[];for(let e of a)try{return e()}catch(s){t.push(s)}throw Object.assign(new Error("All combinations failed"),{errors:t})}var si=wa;function Ia(a){if(!a.startsWith("#!"))return"";let t=a.indexOf(` -`);return t===-1?a:a.slice(0,t)}var at=Ia;function Na(a,t){if(t===!1)return!1;if(a.charAt(t)==="/"&&a.charAt(t+1)==="*"){for(let e=t+2;e=this.length)throw this.raise(p.UnterminatedString,{at:this.state.startLoc});let r=this.input.charCodeAt(this.state.pos);if(r===e)break;r===38?(s+=this.input.slice(i,this.state.pos),s+=this.jsxReadEntity(),i=this.state.pos):xe(r)?(s+=this.input.slice(i,this.state.pos),s+=this.jsxReadNewLine(!1),i=this.state.pos):++this.state.pos}s+=this.input.slice(i,this.state.pos++),this.finishToken(131,s)}jsxReadEntity(){let e=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let s=10;this.codePointAtPos(this.state.pos)===120&&(s=16,++this.state.pos);let i=this.readInt(s,void 0,!1,"bail");if(i!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(i)}else{let s=0,i=!1;for(;s++<10&&this.state.pos1){for(let i=0;i=0;i--){let r=this.scopeStack[i];if(r.types.has(e)||r.exportOnlyBindings.has(e))return}super.checkLocalExport(t)}},rr=(a,t)=>Object.hasOwnProperty.call(a,t)&&a[t],ps=a=>a.type==="ParenthesizedExpression"?ps(a.expression):a,yt=class extends dt{toAssignable(t,e=!1){var s,i;let r;switch((t.type==="ParenthesizedExpression"||(s=t.extra)!=null&&s.parenthesized)&&(r=ps(t),e?r.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(p.InvalidParenthesizedAssignment,{at:t}):r.type!=="MemberExpression"&&this.raise(p.InvalidParenthesizedAssignment,{at:t}):this.raise(p.InvalidParenthesizedAssignment,{at:t})),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern";for(let o=0,h=t.properties.length,l=h-1;oi.type!=="ObjectMethod"&&(r===s||i.type!=="SpreadElement")&&this.isAssignable(i))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every(s=>s===null||this.isAssignable(s));case"AssignmentExpression":return t.operator==="=";case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!e;default:return!1}}toReferencedList(t,e){return t}toReferencedListDeep(t,e){this.toReferencedList(t,e);for(let s of t)(s==null?void 0:s.type)==="ArrayExpression"&&this.toReferencedListDeep(s.elements)}parseSpread(t){let e=this.startNode();return this.next(),e.argument=this.parseMaybeAssignAllowIn(t,void 0),this.finishNode(e,"SpreadElement")}parseRestBinding(){let t=this.startNode();return this.next(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,1),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(t,e,s){let i=s&1,r=[],n=!0;for(;!this.eat(t);)if(n?n=!1:this.expect(12),i&&this.match(12))r.push(null);else{if(this.eat(t))break;if(this.match(21)){if(r.push(this.parseAssignableListItemTypes(this.parseRestBinding(),s)),!this.checkCommaAfterRest(e)){this.expect(t);break}}else{let o=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(p.UnsupportedParameterDecorator,{at:this.state.startLoc});this.match(26);)o.push(this.parseDecorator());r.push(this.parseAssignableListItem(s,o))}}return r}parseBindingRestProperty(t){return this.next(),t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){let t=this.startNode(),{type:e,startLoc:s}=this.state;return e===21?this.parseBindingRestProperty(t):(e===136?(this.expectPlugin("destructuringPrivate",s),this.classScope.usePrivateName(this.state.value,s),t.key=this.parsePrivateName()):this.parsePropertyName(t),t.method=!1,this.parseObjPropValue(t,s,!1,!1,!0,!1))}parseAssignableListItem(t,e){let s=this.parseMaybeDefault();this.parseAssignableListItemTypes(s,t);let i=this.parseMaybeDefault(s.loc.start,s);return e.length&&(s.decorators=e),i}parseAssignableListItemTypes(t,e){return t}parseMaybeDefault(t,e){var s,i;if((s=t)!=null||(t=this.state.startLoc),e=(i=e)!=null?i:this.parseBindingAtom(),!this.eat(29))return e;let r=this.startNodeAt(t);return r.left=e,r.right=this.parseMaybeAssignAllowIn(),this.finishNode(r,"AssignmentPattern")}isValidLVal(t,e,s){return rr({AssignmentPattern:"left",RestElement:"argument",ObjectProperty:"value",ParenthesizedExpression:"expression",ArrayPattern:"elements",ObjectPattern:"properties"},t)}checkLVal(t,{in:e,binding:s=64,checkClashes:i=!1,strictModeChanged:r=!1,hasParenthesizedAncestor:n=!1}){var o;let h=t.type;if(this.isObjectMethod(t))return;if(h==="MemberExpression"){s!==64&&this.raise(p.InvalidPropertyBindingPattern,{at:t});return}if(h==="Identifier"){this.checkIdentifier(t,s,r);let{name:d}=t;i&&(i.has(d)?this.raise(p.ParamDupe,{at:t}):i.add(d));return}let l=this.isValidLVal(h,!(n||(o=t.extra)!=null&&o.parenthesized)&&e.type==="AssignmentExpression",s);if(l===!0)return;if(l===!1){let d=s===64?p.InvalidLhs:p.InvalidLhsBinding;this.raise(d,{at:t,ancestor:e});return}let[c,u]=Array.isArray(l)?l:[l,h==="ParenthesizedExpression"],f=h==="ArrayPattern"||h==="ObjectPattern"||h==="ParenthesizedExpression"?{type:h}:e;for(let d of[].concat(t[c]))d&&this.checkLVal(d,{in:f,binding:s,checkClashes:i,strictModeChanged:r,hasParenthesizedAncestor:u})}checkIdentifier(t,e,s=!1){this.state.strict&&(s?is(t.name,this.inModule):ss(t.name))&&(e===64?this.raise(p.StrictEvalArguments,{at:t,referenceName:t.name}):this.raise(p.StrictEvalArgumentsBinding,{at:t,bindingName:t.name})),e&8192&&t.name==="let"&&this.raise(p.LetInLexicalBinding,{at:t}),e&64||this.declareNameFromIdentifier(t,e)}declareNameFromIdentifier(t,e){this.scope.declareName(t.name,e,t.loc.start)}checkToRestConversion(t,e){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,e);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(e)break;default:this.raise(p.InvalidRestAssignmentPattern,{at:t})}}checkCommaAfterRest(t){return this.match(12)?(this.raise(this.lookaheadCharCode()===t?p.RestTrailingComma:p.ElementAfterRest,{at:this.state.startLoc}),!0):!1}},ar=(a,t)=>Object.hasOwnProperty.call(a,t)&&a[t];function nr(a){if(a==null)throw new Error(`Unexpected ${a} value.`);return a}function Kt(a){if(!a)throw new Error("Assert fail")}var y=$`typescript`({AbstractMethodHasImplementation:({methodName:a})=>`Method '${a}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:a})=>`Property '${a}' cannot have an initializer because it is marked abstract.`,AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:a})=>`'declare' is not allowed in ${a}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:a})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:a})=>`Duplicate modifier: '${a}'.`,EmptyHeritageClauseType:({token:a})=>`'${a}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:a})=>`'${a[0]}' modifier cannot be used with '${a[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:a})=>`Index signatures cannot have an accessibility modifier ('${a}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier:a})=>`'${a}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:a})=>`'${a}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:a})=>`'${a}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:a})=>`'${a[0]}' modifier must precede '${a[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:a})=>`Private elements cannot have an accessibility modifier ('${a}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:a})=>`Single type parameter ${a} should have a trailing comma. Example usage: <${a},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:a})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${a}.`});function or(a){switch(a){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function qt(a){return a==="private"||a==="public"||a==="protected"}function hr(a){return a==="in"||a==="out"}var lr=a=>class extends a{constructor(...e){super(...e),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:y.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:y.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:y.InvalidModifierOnTypeParameter})}getScopeHandler(){return mt}tsIsIdentifier(){return S(this.state.type)}tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(136)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(e,s){if(!S(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let i=this.state.value;if(e.indexOf(i)!==-1){if(s&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return i}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:s,stopOnStartOfClassStaticBlock:i,errorTemplate:r=y.InvalidModifierOnTypeMember},n){let o=(l,c,u,f)=>{c===u&&n[f]&&this.raise(y.InvalidModifiersOrder,{at:l,orderedModifiers:[u,f]})},h=(l,c,u,f)=>{(n[u]&&c===f||n[f]&&c===u)&&this.raise(y.IncompatibleModifiers,{at:l,modifiers:[u,f]})};for(;;){let{startLoc:l}=this.state,c=this.tsParseModifier(e.concat(s??[]),i);if(!c)break;qt(c)?n.accessibility?this.raise(y.DuplicateAccessibilityModifier,{at:l,modifier:c}):(o(l,c,c,"override"),o(l,c,c,"static"),o(l,c,c,"readonly"),n.accessibility=c):hr(c)?(n[c]&&this.raise(y.DuplicateModifier,{at:l,modifier:c}),n[c]=!0,o(l,c,"in","out")):(Object.hasOwnProperty.call(n,c)?this.raise(y.DuplicateModifier,{at:l,modifier:c}):(o(l,c,"static","readonly"),o(l,c,"static","override"),o(l,c,"override","readonly"),o(l,c,"abstract","override"),h(l,c,"declare","override"),h(l,c,"static","abstract")),n[c]=!0),s!=null&&s.includes(c)&&this.raise(r,{at:l,modifier:c})}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(e,s){let i=[];for(;!this.tsIsListTerminator(e);)i.push(s());return i}tsParseDelimitedList(e,s,i){return nr(this.tsParseDelimitedListWorker(e,s,!0,i))}tsParseDelimitedListWorker(e,s,i,r){let n=[],o=-1;for(;!this.tsIsListTerminator(e);){o=-1;let h=s();if(h==null)return;if(n.push(h),this.eat(12)){o=this.state.lastTokStart;continue}if(this.tsIsListTerminator(e))break;i&&this.expect(12);return}return r&&(r.value=o),n}tsParseBracketedList(e,s,i,r,n){r||(i?this.expect(0):this.expect(47));let o=this.tsParseDelimitedList(e,s,n);return i?this.expect(3):this.expect(48),o}tsParseImportType(){let e=this.startNode();return this.expect(83),this.expect(10),this.match(131)||this.raise(y.UnsupportedImportTypeArgument,{at:this.state.startLoc}),e.argument=super.parseExprAtom(),this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName()),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseEntityName(e=!0){let s=this.parseIdentifier(e);for(;this.eat(16);){let i=this.startNodeAtNode(s);i.left=s,i.right=this.parseIdentifier(e),s=this.finishNode(i,"TSQualifiedName")}return s}tsParseTypeReference(){let e=this.startNode();return e.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();let s=this.startNodeAtNode(e);return s.parameterName=e,s.typeAnnotation=this.tsParseTypeAnnotation(!1),s.asserts=!1,this.finishNode(s,"TSTypePredicate")}tsParseThisTypeNode(){let e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){let e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){let s=this.startNode();return e(s),s.name=this.tsParseTypeParameterName(),s.constraint=this.tsEatThenParseType(81),s.default=this.tsEatThenParseType(29),this.finishNode(s,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){let s=this.startNode();this.match(47)||this.match(140)?this.next():this.unexpected();let i={value:-1};return s.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,i),s.params.length===0&&this.raise(y.EmptyTypeParameters,{at:s}),i.value!==-1&&this.addExtra(s,"trailingComma",i.value),this.finishNode(s,"TSTypeParameterDeclaration")}tsFillSignature(e,s){let i=e===19,r="parameters",n="typeAnnotation";s.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),s[r]=this.tsParseBindingListForSignature(),i?s[n]=this.tsParseTypeOrTypePredicateAnnotation(e):this.match(e)&&(s[n]=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){let e=super.parseBindingList(11,41,2);for(let s of e){let{type:i}=s;(i==="AssignmentPattern"||i==="TSParameterProperty")&&this.raise(y.UnsupportedSignatureParameterKind,{at:s,type:i})}return e}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(e,s){return this.tsFillSignature(14,s),this.tsParseTypeMemberSemicolon(),this.finishNode(s,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),S(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(e){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let s=this.parseIdentifier();s.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(s),this.expect(3),e.parameters=[s];let i=this.tsTryParseTypeAnnotation();return i&&(e.typeAnnotation=i),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,s){this.eat(17)&&(e.optional=!0);let i=e;if(this.match(10)||this.match(47)){s&&this.raise(y.ReadonlyForMethodSignature,{at:e});let r=i;r.kind&&this.match(47)&&this.raise(y.AccesorCannotHaveTypeParameters,{at:this.state.curPosition()}),this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon();let n="parameters",o="typeAnnotation";if(r.kind==="get")r[n].length>0&&(this.raise(p.BadGetterArity,{at:this.state.curPosition()}),this.isThisParam(r[n][0])&&this.raise(y.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}));else if(r.kind==="set"){if(r[n].length!==1)this.raise(p.BadSetterArity,{at:this.state.curPosition()});else{let h=r[n][0];this.isThisParam(h)&&this.raise(y.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}),h.type==="Identifier"&&h.optional&&this.raise(y.SetAccesorCannotHaveOptionalParameter,{at:this.state.curPosition()}),h.type==="RestElement"&&this.raise(y.SetAccesorCannotHaveRestParameter,{at:this.state.curPosition()})}r[o]&&this.raise(y.SetAccesorCannotHaveReturnType,{at:r[o]})}else r.kind="method";return this.finishNode(r,"TSMethodSignature")}else{let r=i;s&&(r.readonly=!0);let n=this.tsTryParseTypeAnnotation();return n&&(r.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSPropertySignature")}}tsParseTypeMember(){let e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){let i=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(i,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e);let s=this.tsTryParseIndexSignature(e);return s||(super.parsePropertyName(e),!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.tsTokenCanFollowModifier()&&(e.kind=e.key.name,super.parsePropertyName(e)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){let e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(120):(this.isContextual(120)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedTypeParameter(){let e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(58),this.finishNode(e,"TSTypeParameter")}tsParseMappedType(){let e=this.startNode();return this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(120)):this.eatContextual(120)&&(e.readonly=!0),this.expect(0),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}tsParseTupleType(){let e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let s=!1,i=null;return e.elementTypes.forEach(r=>{var n;let{type:o}=r;s&&o!=="TSRestType"&&o!=="TSOptionalType"&&!(o==="TSNamedTupleMember"&&r.optional)&&this.raise(y.OptionalTypeBeforeRequired,{at:r}),s||(s=o==="TSNamedTupleMember"&&r.optional||o==="TSOptionalType");let h=o;o==="TSRestType"&&(r=r.typeAnnotation,h=r.type);let l=h==="TSNamedTupleMember";(n=i)!=null||(i=l),i!==l&&this.raise(y.MixedLabeledAndUnlabeledElements,{at:r})}),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){let{startLoc:e}=this.state,s=this.eat(21),i,r,n,o,l=M(this.state.type)?this.lookaheadCharCode():null;if(l===58)i=!0,n=!1,r=this.parseIdentifier(!0),this.expect(14),o=this.tsParseType();else if(l===63){n=!0;let c=this.state.startLoc,u=this.state.value,f=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(i=!0,r=this.createIdentifier(this.startNodeAt(c),u),this.expect(17),this.expect(14),o=this.tsParseType()):(i=!1,o=f,this.expect(17))}else o=this.tsParseType(),n=this.eat(17),i=this.eat(14);if(i){let c;r?(c=this.startNodeAtNode(r),c.optional=n,c.label=r,c.elementType=o,this.eat(17)&&(c.optional=!0,this.raise(y.TupleOptionalAfterType,{at:this.state.lastTokStartLoc}))):(c=this.startNodeAtNode(o),c.optional=n,this.raise(y.InvalidTupleMemberLabel,{at:o}),c.label=o,c.elementType=this.tsParseType()),o=this.finishNode(c,"TSNamedTupleMember")}else if(n){let c=this.startNodeAtNode(o);c.typeAnnotation=o,o=this.finishNode(c,"TSOptionalType")}if(s){let c=this.startNodeAt(e);c.typeAnnotation=o,o=this.finishNode(c,"TSRestType")}return o}tsParseParenthesizedType(){let e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,s){let i=this.startNode();return e==="TSConstructorType"&&(i.abstract=!!s,s&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,i)),this.finishNode(i,e)}tsParseLiteralTypeNode(){let e=this.startNode();switch(this.state.type){case 132:case 133:case 131:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){let e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let e=this.tsParseThisTypeNode();return this.isContextual(114)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 131:case 132:case 133:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let e=this.startNode(),s=this.lookahead();return s.type!==132&&s.type!==133&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:e}=this.state;if(S(e)||e===88||e===84){let s=e===88?"TSVoidKeyword":e===84?"TSNullKeyword":or(this.state.value);if(s!==void 0&&this.lookaheadCharCode()!==46){let i=this.startNode();return this.next(),this.finishNode(i,s)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let s=this.startNodeAtNode(e);s.elementType=e,this.expect(3),e=this.finishNode(s,"TSArrayType")}else{let s=this.startNodeAtNode(e);s.objectType=e,s.indexType=this.tsParseType(),this.expect(3),e=this.finishNode(s,"TSIndexedAccessType")}return e}tsParseTypeOperator(){let e=this.startNode(),s=this.state.value;return this.next(),e.operator=s,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),s==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(y.UnexpectedReadonly,{at:e})}}tsParseInferType(){let e=this.startNode();this.expectContextual(113);let s=this.startNode();return s.name=this.tsParseTypeParameterName(),s.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),e.typeParameter=this.finishNode(s,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let e=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){return Ci(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(113)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(e,s,i){let r=this.startNode(),n=this.eat(i),o=[];do o.push(s());while(this.eat(i));return o.length===1&&!n?o[0]:(r.types=o,this.finishNode(r,e))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(S(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:e}=this.state,s=e.length;try{return this.parseObjectLike(8,!0),e.length===s}catch{return!1}}if(this.match(0)){this.next();let{errors:e}=this.state,s=e.length;try{return super.parseBindingList(3,93,1),e.length===s}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{let s=this.startNode();this.expect(e);let i=this.startNode(),r=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(r&&this.match(78)){let h=this.tsParseThisTypeOrThisTypePredicate();return h.type==="TSThisType"?(i.parameterName=h,i.asserts=!0,i.typeAnnotation=null,h=this.finishNode(i,"TSTypePredicate")):(this.resetStartLocationFromNode(h,i),h.asserts=!0),s.typeAnnotation=h,this.finishNode(s,"TSTypeAnnotation")}let n=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!n)return r?(i.parameterName=this.parseIdentifier(),i.asserts=r,i.typeAnnotation=null,s.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(s,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,s);let o=this.tsParseTypeAnnotation(!1);return i.parameterName=n,i.typeAnnotation=o,i.asserts=r,s.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(s,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let e=this.parseIdentifier();if(this.isContextual(114)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(this.state.type!==107)return!1;let e=this.state.containsEsc;return this.next(),!S(this.state.type)&&!this.match(78)?!1:(e&&this.raise(p.InvalidEscapedReservedWord,{at:this.state.lastTokStartLoc,reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(e=!0,s=this.startNode()){return this.tsInType(()=>{e&&this.expect(14),s.typeAnnotation=this.tsParseType()}),this.finishNode(s,"TSTypeAnnotation")}tsParseType(){Kt(this.state.inType);let e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;let s=this.startNodeAtNode(e);return s.checkType=e,s.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),s.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),s.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(s,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(122)&&this.lookahead().type===77}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(y.ReservedTypeAssertion,{at:this.state.startLoc});let e=this.startNode();return e.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){let s=this.state.startLoc,i=this.tsParseDelimitedList("HeritageClauseElement",()=>{let r=this.startNode();return r.expression=this.tsParseEntityName(),this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSExpressionWithTypeArguments")});return i.length||this.raise(y.EmptyHeritageClauseType,{at:s,token:e}),i}tsParseInterfaceDeclaration(e,s={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(127),s.declare&&(e.declare=!0),S(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(y.MissingInterfaceName,{at:this.state.startLoc})),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));let i=this.startNode();return i.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(i,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType(()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(112)&&this.lookahead().type!==16){let s=this.startNode();return this.next(),this.finishNode(s,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInNoContext(e){let s=this.state.context;this.state.context=[s[0]];try{return e()}finally{this.state.context=s}}tsInType(e){let s=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=s}}tsInDisallowConditionalTypesContext(e){let s=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=s}}tsInAllowConditionalTypesContext(e){let s=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=s}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType(()=>(this.expect(e),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let e=this.startNode();return e.id=this.match(131)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,s={}){return s.const&&(e.const=!0),s.declare&&(e.declare=!0),this.expectContextual(124),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")}tsParseModuleBlock(){let e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,s=!1){if(e.id=this.parseIdentifier(),s||this.checkIdentifier(e.id,1024),this.eat(16)){let i=this.startNode();this.tsParseModuleOrNamespaceDeclaration(i,!0),e.body=i}else this.scope.enter(256),this.prodParam.enter(te),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(110)?(e.global=!0,e.id=this.parseIdentifier()):this.match(131)?e.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(te),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,s,i){e.isExport=i||!1,e.id=s||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);let r=this.tsParseModuleReference();return e.importKind==="type"&&r.type!=="TSExternalModuleReference"&&this.raise(y.ImportAliasHasImportType,{at:r}),e.moduleReference=r,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(117)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){let e=this.startNode();return this.expectContextual(117),this.expect(10),this.match(131)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){let s=this.state.clone(),i=e();return this.state=s,i}tsTryParseAndCatch(e){let s=this.tryParse(i=>e()||i());if(!(s.aborted||!s.node))return s.error&&(this.state=s.failState),s.node}tsTryParse(e){let s=this.state.clone(),i=e();if(i!==void 0&&i!==!1)return i;this.state=s}tsTryParseDeclare(e){if(this.isLineTerminator())return;let s=this.state.type,i;return this.isContextual(99)&&(s=74,i="let"),this.tsInAmbientContext(()=>{switch(s){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 124:return this.tsParseEnumDeclaration(e,{declare:!0});case 110:return this.tsParseAmbientExternalModuleDeclaration(e);case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(e.declare=!0,this.parseVarStatement(e,i||this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0}));case 127:{let r=this.tsParseInterfaceDeclaration(e,{declare:!0});if(r)return r}default:if(S(s))return this.tsParseDeclaration(e,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(e,s,i){switch(s.name){case"declare":{let r=this.tsTryParseDeclare(e);return r&&(r.declare=!0),r}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(te);let r=e;return r.global=!0,r.id=s,r.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(r,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,s.name,!1,i)}}tsParseDeclaration(e,s,i,r){switch(s){case"abstract":if(this.tsCheckLineTerminator(i)&&(this.match(80)||S(this.state.type)))return this.tsParseAbstractDeclaration(e,r);break;case"module":if(this.tsCheckLineTerminator(i)){if(this.match(131))return this.tsParseAmbientExternalModuleDeclaration(e);if(S(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(i)&&S(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(i)&&S(this.state.type))return this.tsParseTypeAliasDeclaration(e);break}}tsCheckLineTerminator(e){return e?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;let s=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let i=this.tsTryParseAndCatch(()=>{let r=this.startNodeAt(e);return r.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(r),r.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),r});if(this.state.maybeInArrowParameters=s,!!i)return super.parseArrowExpression(i,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let e=this.startNode();return e.params=this.tsInType(()=>this.tsInNoContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),e.params.length===0?this.raise(y.EmptyTypeArguments,{at:e}):!this.state.inType&&this.curContext()===w.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return Ei(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseAssignableListItem(e,s){let i=this.state.startLoc,r={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},r);let n=r.accessibility,o=r.override,h=r.readonly;!(e&4)&&(n||h||o)&&this.raise(y.UnexpectedParameterModifier,{at:i});let l=this.parseMaybeDefault();this.parseAssignableListItemTypes(l,e);let c=this.parseMaybeDefault(l.loc.start,l);if(n||h||o){let u=this.startNodeAt(i);return s.length&&(u.decorators=s),n&&(u.accessibility=n),h&&(u.readonly=h),o&&(u.override=o),c.type!=="Identifier"&&c.type!=="AssignmentPattern"&&this.raise(y.UnsupportedParameterPropertyKind,{at:u}),u.parameter=c,this.finishNode(u,"TSParameterProperty")}return s.length&&(l.decorators=s),c}isSimpleParameter(e){return e.type==="TSParameterProperty"&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(let s of e.params)s.type!=="Identifier"&&s.optional&&!this.state.isAmbientContext&&this.raise(y.PatternIsOptional,{at:s})}setArrowFunctionParameters(e,s,i){super.setArrowFunctionParameters(e,s,i),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,s,i=!1){this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let r=s==="FunctionDeclaration"?"TSDeclareFunction":s==="ClassMethod"||s==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return r&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,r):r==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(y.DeclareFunctionHasImplementation,{at:e}),e.declare)?super.parseFunctionBodyAndFinish(e,r,i):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,s,i))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach(s=>{(s==null?void 0:s.type)==="TSTypeCastExpression"&&this.raise(y.UnexpectedTypeAnnotation,{at:s.typeAnnotation})})}toReferencedList(e,s){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,s,i,r){let n=super.parseArrayLike(e,s,i,r);return n.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(n.elements),n}parseSubscript(e,s,i,r){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let o=this.startNodeAt(s);return o.expression=e,this.finishNode(o,"TSNonNullExpression")}let n=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(i)return r.stop=!0,e;r.optionalChainMember=n=!0,this.next()}if(this.match(47)||this.match(51)){let o,h=this.tsTryParseAndCatch(()=>{if(!i&&this.atPossibleAsyncArrow(e)){let f=this.tsTryParseGenericAsyncArrowFunction(s);if(f)return f}let l=this.tsParseTypeArgumentsInExpression();if(!l)return;if(n&&!this.match(10)){o=this.state.curPosition();return}if(Oe(this.state.type)){let f=super.parseTaggedTemplateExpression(e,s,r);return f.typeParameters=l,f}if(!i&&this.eat(10)){let f=this.startNodeAt(s);return f.callee=e,f.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(f.arguments),f.typeParameters=l,r.optionalChainMember&&(f.optional=n),this.finishCallExpression(f,r.optionalChainMember)}let c=this.state.type;if(c===48||c===52||c!==10&&Ze(c)&&!this.hasPrecedingLineBreak())return;let u=this.startNodeAt(s);return u.expression=e,u.typeParameters=l,this.finishNode(u,"TSInstantiationExpression")});if(o&&this.unexpected(o,10),h)return h.type==="TSInstantiationExpression"&&(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(y.InvalidPropertyAccessAfterInstantiationExpression,{at:this.state.startLoc}),h}return super.parseSubscript(e,s,i,r)}parseNewCallee(e){var s;super.parseNewCallee(e);let{callee:i}=e;i.type==="TSInstantiationExpression"&&!((s=i.extra)!=null&&s.parenthesized)&&(e.typeParameters=i.typeParameters,e.callee=i.expression)}parseExprOp(e,s,i){let r;if(ke(58)>i&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(r=this.isContextual(118)))){let n=this.startNodeAt(s);return n.expression=e,n.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(r&&this.raise(p.UnexpectedKeyword,{at:this.state.startLoc,keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(n,r?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(n,s,i)}return super.parseExprOp(e,s,i)}checkReservedWord(e,s,i,r){this.state.isAmbientContext||super.checkReservedWord(e,s,i,r)}checkImportReflection(e){super.checkImportReflection(e),e.module&&e.importKind!=="value"&&this.raise(y.ImportReflectionHasImportType,{at:e.specifiers[0].loc.start})}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(128)){let s=this.lookaheadCharCode();return e?s===123||s===42:s!==61}return!e&&this.isContextual(87)}applyImportPhase(e,s,i,r){super.applyImportPhase(e,s,i,r),s?e.exportKind=i==="type"?"type":"value":e.importKind=i==="type"||i==="typeof"?i:"value"}parseImport(e){if(this.match(131))return e.importKind="value",super.parseImport(e);let s;if(S(this.state.type)&&this.lookaheadCharCode()===61)return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(128)){let i=this.parseMaybeImportPhase(e,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(e,i);s=super.parseImportSpecifiersAndAfter(e,i)}else s=super.parseImport(e);return s.importKind==="type"&&s.specifiers.length>1&&s.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(y.TypeImportCannotSpecifyDefaultAndNamed,{at:s}),s}parseExport(e,s){if(this.match(83)){this.next();let i=null;return this.isContextual(128)&&this.isPotentialImportPhase(!1)?i=this.parseMaybeImportPhase(e,!1):e.importKind="value",this.tsParseImportEqualsDeclaration(e,i,!0)}else if(this.eat(29)){let i=e;return i.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(i,"TSExportAssignment")}else if(this.eatContextual(93)){let i=e;return this.expectContextual(126),i.id=this.parseIdentifier(),this.semicolon(),this.finishNode(i,"TSNamespaceExportDeclaration")}else return super.parseExport(e,s)}isAbstractClass(){return this.isContextual(122)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){let e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(127)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,s,i=!1){let{isAmbientContext:r}=this.state,n=super.parseVarStatement(e,s,i||r);if(!r)return n;for(let{id:o,init:h}of n.declarations)h&&(s!=="const"||o.typeAnnotation?this.raise(y.InitializerNotAllowedInAmbientContext,{at:h}):pr(h,this.hasPlugin("estree"))||this.raise(y.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,{at:h}));return n}parseStatementContent(e,s){if(this.match(75)&&this.isLookaheadContextual("enum")){let i=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(i,{const:!0})}if(this.isContextual(124))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(127)){let i=this.tsParseInterfaceDeclaration(this.startNode());if(i)return i}return super.parseStatementContent(e,s)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,s){return s.some(i=>qt(i)?e.accessibility===i:!!e[i])}tsIsStartOfStaticBlocks(){return this.isContextual(104)&&this.lookaheadCharCode()===123}parseClassMember(e,s,i){let r=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:r,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:y.InvalidModifierOnTypeParameterPositions},s);let n=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(s,r)&&this.raise(y.StaticBlockCannotHaveModifier,{at:this.state.curPosition()}),super.parseClassStaticBlock(e,s)):this.parseClassMemberWithIsStatic(e,s,i,!!s.static)};s.declare?this.tsInAmbientContext(n):n()}parseClassMemberWithIsStatic(e,s,i,r){let n=this.tsTryParseIndexSignature(s);if(n){e.body.push(n),s.abstract&&this.raise(y.IndexSignatureHasAbstract,{at:s}),s.accessibility&&this.raise(y.IndexSignatureHasAccessibility,{at:s,modifier:s.accessibility}),s.declare&&this.raise(y.IndexSignatureHasDeclare,{at:s}),s.override&&this.raise(y.IndexSignatureHasOverride,{at:s});return}!this.state.inAbstractClass&&s.abstract&&this.raise(y.NonAbstractClassHasAbstractMethod,{at:s}),s.override&&(i.hadSuperClass||this.raise(y.OverrideNotInSubClass,{at:s})),super.parseClassMemberWithIsStatic(e,s,i,r)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(y.ClassMethodHasReadonly,{at:e}),e.declare&&this.match(10)&&this.raise(y.ClassMethodHasDeclare,{at:e})}parseExpressionStatement(e,s,i){return(s.type==="Identifier"?this.tsParseExpressionStatement(e,s,i):void 0)||super.parseExpressionStatement(e,s,i)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(e,s,i){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(e,s,i);let r=this.tryParse(()=>super.parseConditional(e,s));return r.node?(r.error&&(this.state=r.failState),r.node):(r.error&&super.setOptionalParametersError(i,r.error),e)}parseParenItem(e,s){if(e=super.parseParenItem(e,s),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){let i=this.startNodeAt(s);return i.expression=e,i.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(i,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(123))return this.tsInAmbientContext(()=>this.parseExportDeclaration(e));let s=this.state.startLoc,i=this.eatContextual(123);if(i&&(this.isContextual(123)||!this.shouldParseExportDeclaration()))throw this.raise(y.ExpectedAmbientAfterExportDeclare,{at:this.state.startLoc});let n=S(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return n?((n.type==="TSInterfaceDeclaration"||n.type==="TSTypeAliasDeclaration"||i)&&(e.exportKind="type"),i&&(this.resetStartLocation(n,s),n.declare=!0),n):null}parseClassId(e,s,i,r){if((!s||i)&&this.isContextual(111))return;super.parseClassId(e,s,i,e.declare?1024:8331);let n=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);n&&(e.typeParameters=n)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));let s=this.tsTryParseTypeAnnotation();s&&(e.typeAnnotation=s)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&!(e.readonly&&!e.typeAnnotation)&&this.match(29)&&this.raise(y.DeclareClassFieldHasInitializer,{at:this.state.startLoc}),e.abstract&&this.match(29)){let{key:s}=e;this.raise(y.AbstractPropertyHasInitializer,{at:this.state.startLoc,propertyName:s.type==="Identifier"&&!e.computed?s.name:`[${this.input.slice(s.start,s.end)}]`})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(y.PrivateElementHasAbstract,{at:e}),e.accessibility&&this.raise(y.PrivateElementHasAccessibility,{at:e,modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(y.AccessorCannotBeOptional,{at:e}),super.parseClassAccessorProperty(e)}pushClassMethod(e,s,i,r,n,o){let h=this.tsTryParseTypeParameters(this.tsParseConstModifier);h&&n&&this.raise(y.ConstructorHasTypeParameters,{at:h});let{declare:l=!1,kind:c}=s;l&&(c==="get"||c==="set")&&this.raise(y.DeclareAccessor,{at:s,kind:c}),h&&(s.typeParameters=h),super.pushClassMethod(e,s,i,r,n,o)}pushClassPrivateMethod(e,s,i,r){let n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(s.typeParameters=n),super.pushClassPrivateMethod(e,s,i,r)}declareClassPrivateMethodInScope(e,s){e.type!=="TSDeclareMethod"&&(e.type==="MethodDefinition"&&!e.value.body||super.declareClassPrivateMethodInScope(e,s))}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(111)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,s,i,r,n,o,h){let l=this.tsTryParseTypeParameters(this.tsParseConstModifier);return l&&(e.typeParameters=l),super.parseObjPropValue(e,s,i,r,n,o,h)}parseFunctionParams(e,s){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(e.typeParameters=i),super.parseFunctionParams(e,s)}parseVarId(e,s){super.parseVarId(e,s),e.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);let i=this.tsTryParseTypeAnnotation();i&&(e.id.typeAnnotation=i,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,s){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,s)}parseMaybeAssign(e,s){var i,r,n,o,h;let l,c,u;if(this.hasPlugin("jsx")&&(this.match(140)||this.match(47))){if(l=this.state.clone(),c=this.tryParse(()=>super.parseMaybeAssign(e,s),l),!c.error)return c.node;let{context:x}=this.state,I=x[x.length-1];(I===w.j_oTag||I===w.j_expr)&&x.pop()}if(!((i=c)!=null&&i.error)&&!this.match(47))return super.parseMaybeAssign(e,s);(!l||l===this.state)&&(l=this.state.clone());let f,d=this.tryParse(x=>{var I,C;f=this.tsParseTypeParameters(this.tsParseConstModifier);let E=super.parseMaybeAssign(e,s);return(E.type!=="ArrowFunctionExpression"||(I=E.extra)!=null&&I.parenthesized)&&x(),((C=f)==null?void 0:C.params.length)!==0&&this.resetStartLocationFromNode(E,f),E.typeParameters=f,E},l);if(!d.error&&!d.aborted)return f&&this.reportReservedArrowTypeParam(f),d.node;if(!c&&(Kt(!this.hasPlugin("jsx")),u=this.tryParse(()=>super.parseMaybeAssign(e,s),l),!u.error))return u.node;if((r=c)!=null&&r.node)return this.state=c.failState,c.node;if(d.node)return this.state=d.failState,f&&this.reportReservedArrowTypeParam(f),d.node;if((n=u)!=null&&n.node)return this.state=u.failState,u.node;throw((o=c)==null?void 0:o.error)||d.error||((h=u)==null?void 0:h.error)}reportReservedArrowTypeParam(e){var s;e.params.length===1&&!e.params[0].constraint&&!((s=e.extra)!=null&&s.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(y.ReservedArrowTypeParam,{at:e})}parseMaybeUnary(e,s){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,s)}parseArrow(e){if(this.match(14)){let s=this.tryParse(i=>{let r=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&i(),r});if(s.aborted)return;s.thrown||(s.error&&(this.state=s.failState),e.returnType=s.node)}return super.parseArrow(e)}parseAssignableListItemTypes(e,s){if(!(s&2))return e;this.eat(17)&&(e.optional=!0);let i=this.tsTryParseTypeAnnotation();return i&&(e.typeAnnotation=i),this.resetEndLocation(e),e}isAssignable(e,s){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,s);case"TSParameterProperty":return!0;default:return super.isAssignable(e,s)}}toAssignable(e,s=!1){switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,s);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":s?this.expressionScope.recordArrowParameterBindingError(y.UnexpectedTypeCastInParameter,{at:e}):this.raise(y.UnexpectedTypeCastInParameter,{at:e}),this.toAssignable(e.expression,s);break;case"AssignmentExpression":!s&&e.left.type==="TSTypeCastExpression"&&(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,s)}}toAssignableParenthesizedExpression(e,s){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,s);break;default:super.toAssignable(e,s)}}checkToRestConversion(e,s){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,s)}}isValidLVal(e,s,i){return ar({TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSAsExpression:(i!==64||!s)&&["expression",!0],TSSatisfiesExpression:(i!==64||!s)&&["expression",!0],TSTypeAssertion:(i!==64||!s)&&["expression",!0]},e)||super.isValidLVal(e,s,i)}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e){if(this.match(47)||this.match(51)){let s=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let i=super.parseMaybeDecoratorArguments(e);return i.typeParameters=s,i}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,s){let i=super.parseMaybeDefault(e,s);return i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.startthis.isAssignable(s,!0)):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){let s=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());s&&(e.typeParameters=s)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){let s=super.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e)[0];return r&&this.isThisParam(r)?s+1:s}parseCatchClauseParam(){let e=super.parseCatchClauseParam(),s=this.tsTryParseTypeAnnotation();return s&&(e.typeAnnotation=s,this.resetEndLocation(e)),e}tsInAmbientContext(e){let s=this.state.isAmbientContext;this.state.isAmbientContext=!0;try{return e()}finally{this.state.isAmbientContext=s}}parseClass(e,s,i){let r=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,s,i)}finally{this.state.inAbstractClass=r}}tsParseAbstractDeclaration(e,s){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(s,this.parseClass(e,!0,!1));if(this.isContextual(127)){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(y.NonClassMethodPropertyHasAbstractModifer,{at:e}),this.tsParseInterfaceDeclaration(e)}else this.unexpected(null,80)}parseMethod(e,s,i,r,n,o,h){let l=super.parseMethod(e,s,i,r,n,o,h);if(l.abstract&&(this.hasPlugin("estree")?!!l.value.body:!!l.body)){let{key:u}=l;this.raise(y.AbstractMethodHasImplementation,{at:l,methodName:u.type==="Identifier"&&!l.computed?u.name:`[${this.input.slice(u.start,u.end)}]`})}return l}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,s,i,r){return!s&&r?(this.parseTypeOnlyImportExportSpecifier(e,!1,i),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,s,i,r))}parseImportSpecifier(e,s,i,r,n){return!s&&r?(this.parseTypeOnlyImportExportSpecifier(e,!0,i),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,s,i,r,i?4098:4096))}parseTypeOnlyImportExportSpecifier(e,s,i){let r=s?"imported":"local",n=s?"local":"exported",o=e[r],h,l=!1,c=!0,u=o.loc.start;if(this.isContextual(93)){let d=this.parseIdentifier();if(this.isContextual(93)){let x=this.parseIdentifier();M(this.state.type)?(l=!0,o=d,h=s?this.parseIdentifier():this.parseModuleExportName(),c=!1):(h=x,c=!1)}else M(this.state.type)?(c=!1,h=s?this.parseIdentifier():this.parseModuleExportName()):(l=!0,o=d)}else M(this.state.type)&&(l=!0,s?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());l&&i&&this.raise(s?y.TypeModifierIsUsedInTypeImports:y.TypeModifierIsUsedInTypeExports,{at:u}),e[r]=o,e[n]=h;let f=s?"importKind":"exportKind";e[f]=l?"type":"value",c&&this.eatContextual(93)&&(e[n]=s?this.parseIdentifier():this.parseModuleExportName()),e[n]||(e[n]=V(e[r])),s&&this.checkIdentifier(e[n],l?4098:4096)}};function cr(a){if(a.type!=="MemberExpression")return!1;let{computed:t,property:e}=a;return t&&e.type!=="StringLiteral"&&(e.type!=="TemplateLiteral"||e.expressions.length>0)?!1:ds(a.object)}function pr(a,t){var e;let{type:s}=a;if((e=a.extra)!=null&&e.parenthesized)return!1;if(t){if(s==="Literal"){let{value:i}=a;if(typeof i=="string"||typeof i=="boolean")return!0}}else if(s==="StringLiteral"||s==="BooleanLiteral")return!0;return!!(us(a,t)||ur(a,t)||s==="TemplateLiteral"&&a.expressions.length===0||cr(a))}function us(a,t){return t?a.type==="Literal"&&(typeof a.value=="number"||"bigint"in a):a.type==="NumericLiteral"||a.type==="BigIntLiteral"}function ur(a,t){if(a.type==="UnaryExpression"){let{operator:e,argument:s}=a;if(e==="-"&&us(s,t))return!0}return!1}function ds(a){return a.type==="Identifier"?!0:a.type!=="MemberExpression"||a.computed?!1:ds(a.object)}var Ht=$`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),dr=a=>class extends a{parsePlaceholder(e){if(this.match(142)){let s=this.startNode();return this.next(),this.assertNoSpace(),s.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(142),this.finishPlaceholder(s,e)}}finishPlaceholder(e,s){let i=!!(e.expectedNode&&e.type==="Placeholder");return e.expectedNode=s,i?e:this.finishNode(e,"Placeholder")}getTokenFromCode(e){e===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(142,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,s,i,r){e!==void 0&&super.checkReservedWord(e,s,i,r)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,s,i){return e==="Placeholder"||super.isValidLVal(e,s,i)}toAssignable(e,s){e&&e.type==="Placeholder"&&e.expectedNode==="Expression"?e.expectedNode="Pattern":super.toAssignable(e,s)}chStartsBindingIdentifier(e,s){return!!(super.chStartsBindingIdentifier(e,s)||this.lookahead().type===142)}verifyBreakContinue(e,s){e.label&&e.label.type==="Placeholder"||super.verifyBreakContinue(e,s)}parseExpressionStatement(e,s){var i;if(s.type!=="Placeholder"||(i=s.extra)!=null&&i.parenthesized)return super.parseExpressionStatement(e,s);if(this.match(14)){let r=e;return r.label=this.finishPlaceholder(s,"Identifier"),this.next(),r.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(r,"LabeledStatement")}return this.semicolon(),e.name=s.name,this.finishPlaceholder(e,"Statement")}parseBlock(e,s,i){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,s,i)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,s,i){let r=s?"ClassDeclaration":"ClassExpression";this.next();let n=this.state.strict,o=this.parsePlaceholder("Identifier");if(o)if(this.match(81)||this.match(142)||this.match(5))e.id=o;else{if(i||!s)return e.id=null,e.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(e,r);throw this.raise(Ht.ClassNameIsRequired,{at:this.state.startLoc})}else this.parseClassId(e,s,i);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,n),this.finishNode(e,r)}parseExport(e,s){let i=this.parsePlaceholder("Identifier");if(!i)return super.parseExport(e,s);if(!this.isContextual(97)&&!this.match(12))return e.specifiers=[],e.source=null,e.declaration=this.finishPlaceholder(i,"Declaration"),this.finishNode(e,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let r=this.startNode();return r.exported=i,e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],super.parseExport(e,s)}isExportDefaultSpecifier(){if(this.match(65)){let e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(q(142),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,s){var i;return(i=e.specifiers)!=null&&i.length?!0:super.maybeParseExportDefaultSpecifier(e,s)}checkExport(e){let{specifiers:s}=e;s!=null&&s.length&&(e.specifiers=s.filter(i=>i.exported.type==="Placeholder")),super.checkExport(e),e.specifiers=s}parseImport(e){let s=this.parsePlaceholder("Identifier");if(!s)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(97)&&!this.match(12))return e.source=this.finishPlaceholder(s,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");let i=this.startNodeAtNode(s);return i.local=s,e.specifiers.push(this.finishNode(i,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(97),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(Ht.UnexpectedSpace,{at:this.state.lastTokEndLoc})}},fr=a=>class extends a{parseV8Intrinsic(){if(this.match(54)){let e=this.state.startLoc,s=this.startNode();if(this.next(),S(this.state.type)){let i=this.parseIdentifierName(),r=this.createIdentifier(s,i);if(r.type="V8IntrinsicIdentifier",this.match(10))return r}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}};function k(a,t){let[e,s]=typeof t=="string"?[t,{}]:t,i=Object.keys(s),r=i.length===0;return a.some(n=>{if(typeof n=="string")return r&&n===e;{let[o,h]=n;if(o!==e)return!1;for(let l of i)if(h[l]!==s[l])return!1;return!0}})}function J(a,t,e){let s=a.find(i=>Array.isArray(i)?i[0]===t:i===t);return s&&Array.isArray(s)&&s.length>1?s[1][e]:null}var Wt=["minimal","fsharp","hack","smart"],Jt=["^^","@@","^","%","#"],Xt=["hash","bar"];function mr(a){if(k(a,"decorators")){if(k(a,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let t=J(a,"decorators","decoratorsBeforeExport");if(t!=null&&typeof t!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let e=J(a,"decorators","allowCallParenthesized");if(e!=null&&typeof e!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(k(a,"flow")&&k(a,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(k(a,"placeholders")&&k(a,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(k(a,"pipelineOperator")){let t=J(a,"pipelineOperator","proposal");if(!Wt.includes(t)){let s=Wt.map(i=>`"${i}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${s}.`)}let e=k(a,["recordAndTuple",{syntaxType:"hash"}]);if(t==="hack"){if(k(a,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(k(a,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let s=J(a,"pipelineOperator","topicToken");if(!Jt.includes(s)){let i=Jt.map(r=>`"${r}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${i}.`)}if(s==="#"&&e)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}else if(t==="smart"&&e)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}if(k(a,"moduleAttributes")){if(k(a,"importAssertions")||k(a,"importAttributes"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if(J(a,"moduleAttributes","version")!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(k(a,"importAssertions")&&k(a,"importAttributes"))throw new Error("Cannot combine importAssertions and importAttributes plugins.");if(k(a,"recordAndTuple")&&J(a,"recordAndTuple","syntaxType")!=null&&!Xt.includes(J(a,"recordAndTuple","syntaxType")))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+Xt.map(t=>`'${t}'`).join(", "));if(k(a,"asyncDoExpressions")&&!k(a,"doExpressions")){let t=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw t.missingPlugins="doExpressions",t}}var fs={estree:mi,jsx:ir,flow:sr,typescript:lr,v8intrinsic:fr,placeholders:dr},yr=Object.keys(fs),Je={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};function xr(a){if(a==null)return Object.assign({},Je);if(a.annexB!=null&&a.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");let t={};for(let s of Object.keys(Je)){var e;t[s]=(e=a[s])!=null?e:Je[s]}return t}var xt=class extends yt{checkProto(t,e,s,i){if(t.type==="SpreadElement"||this.isObjectMethod(t)||t.computed||t.shorthand)return;let r=t.key;if((r.type==="Identifier"?r.name:r.value)==="__proto__"){if(e){this.raise(p.RecordNoProto,{at:r});return}s.used&&(i?i.doubleProtoLoc===null&&(i.doubleProtoLoc=r.loc.start):this.raise(p.DuplicateProto,{at:r})),s.used=!0}}shouldExitDescending(t,e){return t.type==="ArrowFunctionExpression"&&t.start===e}getExpression(){this.enterInitialScopes(),this.nextToken();let t=this.parseExpression();return this.match(137)||this.unexpected(),this.finalizeRemainingComments(),t.comments=this.state.comments,t.errors=this.state.errors,this.options.tokens&&(t.tokens=this.tokens),t}parseExpression(t,e){return t?this.disallowInAnd(()=>this.parseExpressionBase(e)):this.allowInAnd(()=>this.parseExpressionBase(e))}parseExpressionBase(t){let e=this.state.startLoc,s=this.parseMaybeAssign(t);if(this.match(12)){let i=this.startNodeAt(e);for(i.expressions=[s];this.eat(12);)i.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(i.expressions),this.finishNode(i,"SequenceExpression")}return s}parseMaybeAssignDisallowIn(t,e){return this.disallowInAnd(()=>this.parseMaybeAssign(t,e))}parseMaybeAssignAllowIn(t,e){return this.allowInAnd(()=>this.parseMaybeAssign(t,e))}setOptionalParametersError(t,e){var s;t.optionalParametersLoc=(s=e==null?void 0:e.loc)!=null?s:this.state.startLoc}parseMaybeAssign(t,e){let s=this.state.startLoc;if(this.isContextual(106)&&this.prodParam.hasYield){let o=this.parseYield();return e&&(o=e.call(this,o,s)),o}let i;t?i=!1:(t=new se,i=!0);let{type:r}=this.state;(r===10||S(r))&&(this.state.potentialArrowAt=this.state.start);let n=this.parseMaybeConditional(t);if(e&&(n=e.call(this,n,s)),Ti(this.state.type)){let o=this.startNodeAt(s),h=this.state.value;if(o.operator=h,this.match(29)){this.toAssignable(n,!0),o.left=n;let l=s.index;t.doubleProtoLoc!=null&&t.doubleProtoLoc.index>=l&&(t.doubleProtoLoc=null),t.shorthandAssignLoc!=null&&t.shorthandAssignLoc.index>=l&&(t.shorthandAssignLoc=null),t.privateKeyLoc!=null&&t.privateKeyLoc.index>=l&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null)}else o.left=n;return this.next(),o.right=this.parseMaybeAssign(),this.checkLVal(n,{in:this.finishNode(o,"AssignmentExpression")}),o}else i&&this.checkExpressionErrors(t,!0);return n}parseMaybeConditional(t){let e=this.state.startLoc,s=this.state.potentialArrowAt,i=this.parseExprOps(t);return this.shouldExitDescending(i,s)?i:this.parseConditional(i,e,t)}parseConditional(t,e,s){if(this.eat(17)){let i=this.startNodeAt(e);return i.test=t,i.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),i.alternate=this.parseMaybeAssign(),this.finishNode(i,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(136)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){let e=this.state.startLoc,s=this.state.potentialArrowAt,i=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(i,s)?i:this.parseExprOp(i,e,-1)}parseExprOp(t,e,s){if(this.isPrivateName(t)){let r=this.getPrivateNameSV(t);(s>=ke(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(p.PrivateInExpectedIn,{at:t,identifierName:r}),this.classScope.usePrivateName(r,t.loc.start)}let i=this.state.type;if(Ai(i)&&(this.prodParam.hasIn||!this.match(58))){let r=ke(i);if(r>s){if(i===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,e)}let n=this.startNodeAt(e);n.left=t,n.operator=this.state.value;let o=i===41||i===42,h=i===40;if(h&&(r=ke(42)),this.next(),i===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(p.UnexpectedAwaitAfterPipelineBody,{at:this.state.startLoc});n.right=this.parseExprOpRightExpr(i,r);let l=this.finishNode(n,o||h?"LogicalExpression":"BinaryExpression"),c=this.state.type;if(h&&(c===41||c===42)||o&&c===40)throw this.raise(p.MixingCoalesceWithLogical,{at:this.state.startLoc});return this.parseExprOp(l,e,s)}}return t}parseExprOpRightExpr(t,e){let s=this.state.startLoc;switch(t){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"smart":return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(106))throw this.raise(p.PipeBodyIsTighter,{at:this.state.startLoc});return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t,e),s)});case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(e))}default:return this.parseExprOpBaseRightExpr(t,e)}}parseExprOpBaseRightExpr(t,e){let s=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),s,Ii(t)?e-1:e)}parseHackPipeBody(){var t;let{startLoc:e}=this.state,s=this.parseMaybeAssign();return li.has(s.type)&&!((t=s.extra)!=null&&t.parenthesized)&&this.raise(p.PipeUnparenthesizedBody,{at:e,type:s.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(p.PipeTopicUnused,{at:e}),s}checkExponentialAfterUnary(t){this.match(57)&&this.raise(p.UnexpectedTokenUnaryExponentiation,{at:t.argument})}parseMaybeUnary(t,e){let s=this.state.startLoc,i=this.isContextual(96);if(i&&this.isAwaitAllowed()){this.next();let h=this.parseAwait(s);return e||this.checkExponentialAfterUnary(h),h}let r=this.match(34),n=this.startNode();if(wi(this.state.type)){n.operator=this.state.value,n.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let h=this.match(89);if(this.next(),n.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&h){let l=n.argument;l.type==="Identifier"?this.raise(p.StrictDelete,{at:n}):this.hasPropertyAsPrivateName(l)&&this.raise(p.DeletePrivateField,{at:n})}if(!r)return e||this.checkExponentialAfterUnary(n),this.finishNode(n,"UnaryExpression")}let o=this.parseUpdate(n,r,t);if(i){let{type:h}=this.state;if((this.hasPlugin("v8intrinsic")?Ze(h):Ze(h)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(p.AwaitNotInAsyncContext,{at:s}),this.parseAwait(s)}return o}parseUpdate(t,e,s){if(e){let n=t;return this.checkLVal(n.argument,{in:this.finishNode(n,"UpdateExpression")}),t}let i=this.state.startLoc,r=this.parseExprSubscripts(s);if(this.checkExpressionErrors(s,!1))return r;for(;Si(this.state.type)&&!this.canInsertSemicolon();){let n=this.startNodeAt(i);n.operator=this.state.value,n.prefix=!1,n.argument=r,this.next(),this.checkLVal(r,{in:r=this.finishNode(n,"UpdateExpression")})}return r}parseExprSubscripts(t){let e=this.state.startLoc,s=this.state.potentialArrowAt,i=this.parseExprAtom(t);return this.shouldExitDescending(i,s)?i:this.parseSubscripts(i,e)}parseSubscripts(t,e,s){let i={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do t=this.parseSubscript(t,e,s,i),i.maybeAsyncArrow=!1;while(!i.stop);return t}parseSubscript(t,e,s,i){let{type:r}=this.state;if(!s&&r===15)return this.parseBind(t,e,s,i);if(Oe(r))return this.parseTaggedTemplateExpression(t,e,i);let n=!1;if(r===18){if(s&&(this.raise(p.OptionalChainingNoNew,{at:this.state.startLoc}),this.lookaheadCharCode()===40))return i.stop=!0,t;i.optionalChainMember=n=!0,this.next()}if(!s&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,e,i,n);{let o=this.eat(0);return o||n||this.eat(16)?this.parseMember(t,e,i,o,n):(i.stop=!0,t)}}parseMember(t,e,s,i,r){let n=this.startNodeAt(e);return n.object=t,n.computed=i,i?(n.property=this.parseExpression(),this.expect(3)):this.match(136)?(t.type==="Super"&&this.raise(p.SuperPrivateField,{at:e}),this.classScope.usePrivateName(this.state.value,this.state.startLoc),n.property=this.parsePrivateName()):n.property=this.parseIdentifier(!0),s.optionalChainMember?(n.optional=r,this.finishNode(n,"OptionalMemberExpression")):this.finishNode(n,"MemberExpression")}parseBind(t,e,s,i){let r=this.startNodeAt(e);return r.object=t,this.next(),r.callee=this.parseNoCallExpr(),i.stop=!0,this.parseSubscripts(this.finishNode(r,"BindExpression"),e,s)}parseCoverCallAndAsyncArrowHead(t,e,s,i){let r=this.state.maybeInArrowParameters,n=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(e);o.callee=t;let{maybeAsyncArrow:h,optionalChainMember:l}=s;h&&(this.expressionScope.enter(Ji()),n=new se),l&&(o.optional=i),i?o.arguments=this.parseCallExpressionArguments(11):o.arguments=this.parseCallExpressionArguments(11,t.type==="Import",t.type!=="Super",h?o:null,n);let c=this.finishCallExpression(o,l);return h&&this.shouldParseAsyncArrow()&&!i?(s.stop=!0,this.checkDestructuringPrivate(n),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(e),c)):(h&&(this.checkExpressionErrors(n,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=r,c}toReferencedArguments(t,e){this.toReferencedListDeep(t.arguments,e)}parseTaggedTemplateExpression(t,e,s){let i=this.startNodeAt(e);return i.tag=t,i.quasi=this.parseTemplate(!0),s.optionalChainMember&&this.raise(p.OptionalChainingNoTemplate,{at:e}),this.finishNode(i,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return t.type==="Identifier"&&t.name==="async"&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&t.start===this.state.potentialArrowAt}expectImportAttributesPlugin(){this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes")}finishCallExpression(t,e){if(t.callee.type==="Import")if(t.arguments.length===2&&(this.hasPlugin("moduleAttributes")||this.expectImportAttributesPlugin()),t.arguments.length===0||t.arguments.length>2)this.raise(p.ImportCallArity,{at:t,maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(let s of t.arguments)s.type==="SpreadElement"&&this.raise(p.ImportCallSpreadArgument,{at:s});return this.finishNode(t,e?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,e,s,i,r){let n=[],o=!0,h=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){e&&!this.hasPlugin("importAttributes")&&!this.hasPlugin("importAssertions")&&!this.hasPlugin("moduleAttributes")&&this.raise(p.ImportCallArgumentTrailingComma,{at:this.state.lastTokStartLoc}),i&&this.addTrailingCommaExtraToNode(i),this.next();break}n.push(this.parseExprListItem(!1,r,s))}return this.state.inFSharpPipelineDirectBody=h,n}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,e){var s;return this.resetPreviousNodeTrailingComments(e),this.expect(19),this.parseArrowExpression(t,e.arguments,!0,(s=e.extra)==null?void 0:s.trailingCommaLoc),e.innerComments&&Te(t,e.innerComments),e.callee.trailingComments&&Te(t,e.callee.trailingComments),t}parseNoCallExpr(){let t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}parseExprAtom(t){let e,s=null,{type:i}=this.state;switch(i){case 79:return this.parseSuper();case 83:return e=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(e):(this.match(10)||this.raise(p.UnsupportedImport,{at:this.state.lastTokStartLoc}),this.finishNode(e,"Import"));case 78:return e=this.startNode(),this.next(),this.finishNode(e,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 132:return this.parseNumericLiteral(this.state.value);case 133:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseDecimalLiteral(this.state.value);case 131:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let r=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(r)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,t);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:s=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(s,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{e=this.startNode(),this.next(),e.object=null;let r=e.callee=this.parseNoCallExpr();if(r.type==="MemberExpression")return this.finishNode(e,"BindExpression");throw this.raise(p.UnsupportedBind,{at:r})}case 136:return this.raise(p.PrivateInExpectedIn,{at:this.state.startLoc,identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let r=this.getPluginOption("pipelineOperator","proposal");if(r)return this.parseTopicReference(r);this.unexpected();break}case 47:{let r=this.input.codePointAt(this.nextTokenStart());j(r)||r===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(S(i)){if(this.isContextual(125)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let r=this.state.potentialArrowAt===this.state.start,n=this.state.containsEsc,o=this.parseIdentifier();if(!n&&o.name==="async"&&!this.canInsertSemicolon()){let{type:h}=this.state;if(h===68)return this.resetPreviousNodeTrailingComments(o),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(o));if(S(h))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(o)):o;if(h===90)return this.resetPreviousNodeTrailingComments(o),this.parseDo(this.startNodeAtNode(o),!0)}return r&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(o),[o],!1)):o}else this.unexpected()}}parseTopicReferenceThenEqualsSign(t,e){let s=this.getPluginOption("pipelineOperator","proposal");if(s)return this.state.type=t,this.state.value=e,this.state.pos--,this.state.end--,this.state.endLoc=L(this.state.endLoc,-1),this.parseTopicReference(s);this.unexpected()}parseTopicReference(t){let e=this.startNode(),s=this.state.startLoc,i=this.state.type;return this.next(),this.finishTopicReference(e,s,t,i)}finishTopicReference(t,e,s,i){if(this.testTopicReferenceConfiguration(s,e,i)){let r=s==="smart"?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise(s==="smart"?p.PrimaryTopicNotAllowed:p.PipeTopicUnbound,{at:e}),this.registerTopicReference(),this.finishNode(t,r)}else throw this.raise(p.PipeTopicUnconfiguredToken,{at:e,token:q(i)})}testTopicReferenceConfiguration(t,e,s){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:q(s)}]);case"smart":return s===27;default:throw this.raise(p.PipeTopicRequiresHackPipes,{at:e})}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(Le(!0,this.prodParam.hasYield));let e=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(p.LineTerminatorBeforeArrow,{at:this.state.curPosition()}),this.expect(19),this.parseArrowExpression(t,e,!0)}parseDo(t,e){this.expectPlugin("doExpressions"),e&&this.expectPlugin("asyncDoExpressions"),t.async=e,this.next();let s=this.state.labels;return this.state.labels=[],e?(this.prodParam.enter(Re),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=s,this.finishNode(t,"DoExpression")}parseSuper(){let t=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!this.options.allowSuperOutsideMethod?this.raise(p.SuperNotAllowed,{at:t}):!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod&&this.raise(p.UnexpectedSuper,{at:t}),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(p.UnsupportedSuper,{at:t}),this.finishNode(t,"Super")}parsePrivateName(){let t=this.startNode(),e=this.startNodeAt(L(this.state.startLoc,1)),s=this.state.value;return this.next(),t.id=this.createIdentifier(e,s),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){let t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let e=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(102)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,e,"sent")}return this.parseFunction(t)}parseMetaProperty(t,e,s){t.meta=e;let i=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==s||i)&&this.raise(p.UnsupportedMetaProperty,{at:t.property,target:e.name,onlyValidPropertyName:s}),this.finishNode(t,"MetaProperty")}parseImportMetaProperty(t){let e=this.createIdentifier(this.startNodeAtNode(t),"import");return this.next(),this.isContextual(100)&&(this.inModule||this.raise(p.ImportMetaOutsideModule,{at:e}),this.sawUnambiguousESM=!0),this.parseMetaProperty(t,e,"meta")}parseLiteralAtNode(t,e,s){return this.addExtra(s,"rawValue",t),this.addExtra(s,"raw",this.input.slice(s.start,this.state.end)),s.value=t,this.next(),this.finishNode(s,e)}parseLiteral(t,e){let s=this.startNode();return this.parseLiteralAtNode(t,e,s)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){return this.parseLiteral(t,"BigIntLiteral")}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){let e=this.parseLiteral(t.value,"RegExpLiteral");return e.pattern=t.pattern,e.flags=t.flags,e}parseBooleanLiteral(t){let e=this.startNode();return e.value=t,this.next(),this.finishNode(e,"BooleanLiteral")}parseNullLiteral(){let t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){let e=this.state.startLoc,s;this.next(),this.expressionScope.enter(Wi());let i=this.state.maybeInArrowParameters,r=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let n=this.state.startLoc,o=[],h=new se,l=!0,c,u;for(;!this.match(11);){if(l)l=!1;else if(this.expect(12,h.optionalParametersLoc===null?null:h.optionalParametersLoc),this.match(11)){u=this.state.startLoc;break}if(this.match(21)){let x=this.state.startLoc;if(c=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),x)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowIn(h,this.parseParenItem))}let f=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=i,this.state.inFSharpPipelineDirectBody=r;let d=this.startNodeAt(e);return t&&this.shouldParseArrow(o)&&(d=this.parseArrow(d))?(this.checkDestructuringPrivate(h),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(d,o,!1),d):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),u&&this.unexpected(u),c&&this.unexpected(c),this.checkExpressionErrors(h,!0),this.toReferencedListDeep(o,!0),o.length>1?(s=this.startNodeAt(n),s.expressions=o,this.finishNode(s,"SequenceExpression"),this.resetEndLocation(s,f)):s=o[0],this.wrapParenthesis(e,s))}wrapParenthesis(t,e){if(!this.options.createParenthesizedExpressions)return this.addExtra(e,"parenthesized",!0),this.addExtra(e,"parenStart",t.index),this.takeSurroundingComments(e,t.index,this.state.lastTokEndLoc.index),e;let s=this.startNodeAt(t);return s.expression=e,this.finishNode(s,"ParenthesizedExpression")}shouldParseArrow(t){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,e){return t}parseNewOrNewTarget(){let t=this.startNode();if(this.next(),this.match(16)){let e=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();let s=this.parseMetaProperty(t,e,"target");return!this.scope.inNonArrowFunction&&!this.scope.inClass&&!this.options.allowNewTargetOutsideFunction&&this.raise(p.UnexpectedNewTarget,{at:s}),s}return this.parseNew(t)}parseNew(t){if(this.parseNewCallee(t),this.eat(10)){let e=this.parseExprList(11);this.toReferencedList(e),t.arguments=e}else t.arguments=[];return this.finishNode(t,"NewExpression")}parseNewCallee(t){t.callee=this.parseNoCallExpr(),t.callee.type==="Import"&&this.raise(p.ImportCallNotNewExpression,{at:t.callee})}parseTemplateElement(t){let{start:e,startLoc:s,end:i,value:r}=this.state,n=e+1,o=this.startNodeAt(L(s,1));r===null&&(t||this.raise(p.InvalidEscapeSequenceTemplate,{at:L(this.state.firstInvalidTemplateEscapePos,1)}));let h=this.match(24),l=h?-1:-2,c=i+l;o.value={raw:this.input.slice(n,c).replace(/\r\n?/g,` +`),cooked:r===null?null:r.slice(1,l)},o.tail=h,this.next();let u=this.finishNode(o,"TemplateElement");return this.resetEndLocation(u,L(this.state.lastTokEndLoc,l)),u}parseTemplate(t){let e=this.startNode();e.expressions=[];let s=this.parseTemplateElement(t);for(e.quasis=[s];!s.tail;)e.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),e.quasis.push(s=this.parseTemplateElement(t));return this.finishNode(e,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,e,s,i){s&&this.expectPlugin("recordAndTuple");let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=Object.create(null),o=!0,h=this.startNode();for(h.properties=[],this.next();!this.match(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(h);break}let c;e?c=this.parseBindingProperty():(c=this.parsePropertyDefinition(i),this.checkProto(c,s,n,i)),s&&!this.isObjectProperty(c)&&c.type!=="SpreadElement"&&this.raise(p.InvalidRecordProperty,{at:c}),c.shorthand&&this.addExtra(c,"shorthand",!0),h.properties.push(c)}this.next(),this.state.inFSharpPipelineDirectBody=r;let l="ObjectExpression";return e?l="ObjectPattern":s&&(l="RecordExpression"),this.finishNode(h,l)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStart),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let e=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(p.UnsupportedPropertyDecorator,{at:this.state.startLoc});this.match(26);)e.push(this.parseDecorator());let s=this.startNode(),i=!1,r=!1,n;if(this.match(21))return e.length&&this.unexpected(),this.parseSpread();e.length&&(s.decorators=e,e=[]),s.method=!1,t&&(n=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(s);let h=this.state.containsEsc,l=this.parsePropertyName(s,t);if(!o&&!h&&this.maybeAsyncOrAccessorProp(s)){let c=l.name;c==="async"&&!this.hasPrecedingLineBreak()&&(i=!0,this.resetPreviousNodeTrailingComments(l),o=this.eat(55),this.parsePropertyName(s)),(c==="get"||c==="set")&&(r=!0,this.resetPreviousNodeTrailingComments(l),s.kind=c,this.match(55)&&(o=!0,this.raise(p.AccessorIsGenerator,{at:this.state.curPosition(),kind:c}),this.next()),this.parsePropertyName(s))}return this.parseObjPropValue(s,n,o,i,!1,r,t)}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var e;let s=this.getGetterSetterExpectedParamCount(t),i=this.getObjectOrClassMethodParams(t);i.length!==s&&this.raise(t.kind==="get"?p.BadGetterArity:p.BadSetterArity,{at:t}),t.kind==="set"&&((e=i[i.length-1])==null?void 0:e.type)==="RestElement"&&this.raise(p.BadSetterRestParameter,{at:t})}parseObjectMethod(t,e,s,i,r){if(r){let n=this.parseMethod(t,e,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(n),n}if(s||e||this.match(10))return i&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,e,s,!1,!1,"ObjectMethod")}parseObjectProperty(t,e,s,i){if(t.shorthand=!1,this.eat(14))return t.value=s?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(i),this.finishNode(t,"ObjectProperty");if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),s)t.value=this.parseMaybeDefault(e,V(t.key));else if(this.match(29)){let r=this.state.startLoc;i!=null?i.shorthandAssignLoc===null&&(i.shorthandAssignLoc=r):this.raise(p.InvalidCoverInitializedName,{at:r}),t.value=this.parseMaybeDefault(e,V(t.key))}else t.value=V(t.key);return t.shorthand=!0,this.finishNode(t,"ObjectProperty")}}parseObjPropValue(t,e,s,i,r,n,o){let h=this.parseObjectMethod(t,s,i,r,n)||this.parseObjectProperty(t,e,r,o);return h||this.unexpected(),h}parsePropertyName(t,e){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:s,value:i}=this.state,r;if(M(s))r=this.parseIdentifier(!0);else switch(s){case 132:r=this.parseNumericLiteral(i);break;case 131:r=this.parseStringLiteral(i);break;case 133:r=this.parseBigIntLiteral(i);break;case 134:r=this.parseDecimalLiteral(i);break;case 136:{let n=this.state.startLoc;e!=null?e.privateKeyLoc===null&&(e.privateKeyLoc=n):this.raise(p.UnexpectedPrivateField,{at:n}),r=this.parsePrivateName();break}default:this.unexpected()}t.key=r,s!==136&&(t.computed=!1)}return t.key}initFunction(t,e){t.id=null,t.generator=!1,t.async=e}parseMethod(t,e,s,i,r,n,o=!1){this.initFunction(t,s),t.generator=e,this.scope.enter(18|(o?64:0)|(r?32:0)),this.prodParam.enter(Le(s,t.generator)),this.parseFunctionParams(t,i);let h=this.parseFunctionBodyAndFinish(t,n,!0);return this.prodParam.exit(),this.scope.exit(),h}parseArrayLike(t,e,s,i){s&&this.expectPlugin("recordAndTuple");let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=this.startNode();return this.next(),n.elements=this.parseExprList(t,!s,i,n),this.state.inFSharpPipelineDirectBody=r,this.finishNode(n,s?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,e,s,i){this.scope.enter(6);let r=Le(s,!1);!this.match(5)&&this.prodParam.hasIn&&(r|=Q),this.prodParam.enter(r),this.initFunction(t,s);let n=this.state.maybeInArrowParameters;return e&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,e,i)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=n,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,e,s){this.toAssignableList(e,s,!1),t.params=e}parseFunctionBodyAndFinish(t,e,s=!1){return this.parseFunctionBody(t,!1,s),this.finishNode(t,e)}parseFunctionBody(t,e,s=!1){let i=e&&!this.match(5);if(this.expressionScope.enter(hs()),i)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,e,!1);else{let r=this.state.strict,n=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|cs),t.body=this.parseBlock(!0,!1,o=>{let h=!this.isSimpleParamList(t.params);o&&h&&this.raise(p.IllegalLanguageModeDirective,{at:(t.kind==="method"||t.kind==="constructor")&&t.key?t.key.loc.end:t});let l=!r&&this.state.strict;this.checkParams(t,!this.state.strict&&!e&&!s&&!h,e,l),this.state.strict&&t.id&&this.checkIdentifier(t.id,65,l)}),this.prodParam.exit(),this.state.labels=n}this.expressionScope.exit()}isSimpleParameter(t){return t.type==="Identifier"}isSimpleParamList(t){for(let e=0,s=t.length;e10||!Ri(t))return;if(s&&Oi(t)){this.raise(p.UnexpectedKeyword,{at:e,keyword:t});return}if((this.state.strict?i?is:ts:es)(t,this.inModule)){this.raise(p.UnexpectedReservedWord,{at:e,reservedWord:t});return}else if(t==="yield"){if(this.prodParam.hasYield){this.raise(p.YieldBindingIdentifier,{at:e});return}}else if(t==="await"){if(this.prodParam.hasAwait){this.raise(p.AwaitBindingIdentifier,{at:e});return}if(this.scope.inStaticBlock){this.raise(p.AwaitBindingIdentifierInStaticBlock,{at:e});return}this.expressionScope.recordAsyncArrowParametersError({at:e})}else if(t==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(p.ArgumentsInClass,{at:e});return}}isAwaitAllowed(){return!!(this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction)}parseAwait(t){let e=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(p.AwaitExpressionFormalParameter,{at:e}),this.eat(55)&&this.raise(p.ObsoleteAwaitStar,{at:e}),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(e.argument=this.parseMaybeUnary(null,!0)),this.finishNode(e,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;let{type:t}=this.state;return t===53||t===10||t===0||Oe(t)||t===101&&!this.state.containsEsc||t===135||t===56||this.hasPlugin("v8intrinsic")&&t===54}parseYield(){let t=this.startNode();this.expressionScope.recordParameterInitializerError(p.YieldInParameter,{at:t}),this.next();let e=!1,s=null;if(!this.hasPrecedingLineBreak())switch(e=this.eat(55),this.state.type){case 13:case 137:case 8:case 11:case 3:case 9:case 14:case 12:if(!e)break;default:s=this.parseMaybeAssign()}return t.delegate=e,t.argument=s,this.finishNode(t,"YieldExpression")}checkPipelineAtInfixOperator(t,e){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&t.type==="SequenceExpression"&&this.raise(p.PipelineHeadSequenceExpression,{at:e})}parseSmartPipelineBodyInStyle(t,e){if(this.isSimpleReference(t)){let s=this.startNodeAt(e);return s.callee=t,this.finishNode(s,"PipelineBareFunction")}else{let s=this.startNodeAt(e);return this.checkSmartPipeTopicBodyEarlyErrors(e),s.expression=t,this.finishNode(s,"PipelineTopicExpression")}}isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(p.PipelineBodyNoArrow,{at:this.state.startLoc});this.topicReferenceWasUsedInCurrentContext()||this.raise(p.PipelineTopicUnused,{at:t})}withTopicBindingContext(t){let e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}withSmartMixTopicForbiddingContext(t){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}else return t()}withSoloAwaitPermittingContext(t){let e=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=e}}allowInAnd(t){let e=this.prodParam.currentFlags();if(Q&~e){this.prodParam.enter(e|Q);try{return t()}finally{this.prodParam.exit()}}return t()}disallowInAnd(t){let e=this.prodParam.currentFlags();if(Q&e){this.prodParam.enter(e&~Q);try{return t()}finally{this.prodParam.exit()}}return t()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){let e=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let i=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),e,t);return this.state.inFSharpPipelineDirectBody=s,i}parseModuleExpression(){this.expectPlugin("moduleBlocks");let t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let e=this.startNodeAt(this.state.endLoc);this.next();let s=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(e,8,"module")}finally{s()}return this.finishNode(t,"ModuleExpression")}parsePropertyNamePrefixOperator(t){}},Xe={kind:"loop"},Pr={kind:"switch"},gr=/[\uD800-\uDFFF]/u,Ge=/in(?:stanceof)?/y;function Tr(a,t){for(let e=0;e0)for(let[r,n]of Array.from(this.scope.undefinedExports))this.raise(p.ModuleExportUndefined,{at:n,localName:r});let i;return e===137?i=this.finishNode(t,"Program"):i=this.finishNodeAt(t,"Program",L(this.state.startLoc,-1)),i}stmtToDirective(t){let e=t;e.type="Directive",e.value=e.expression,delete e.expression;let s=e.value,i=s.value,r=this.input.slice(s.start,s.end),n=s.value=r.slice(1,-1);return this.addExtra(s,"raw",r),this.addExtra(s,"rawValue",n),this.addExtra(s,"expressionValue",i),s.type="DirectiveLiteral",e}parseInterpreterDirective(){if(!this.match(28))return null;let t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(){return this.isContextual(99)?this.hasFollowingBindingAtom():!1}chStartsBindingIdentifier(t,e){if(j(t)){if(Ge.lastIndex=e,Ge.test(this.input)){let s=this.codePointAtPos(Ge.lastIndex);if(!ee(s)&&s!==92)return!1}return!0}else return t===92}chStartsBindingPattern(t){return t===91||t===123}hasFollowingBindingAtom(){let t=this.nextTokenStart(),e=this.codePointAtPos(t);return this.chStartsBindingPattern(e)||this.chStartsBindingIdentifier(e,t)}hasInLineFollowingBindingIdentifier(){let t=this.nextTokenInLineStart(),e=this.codePointAtPos(t);return this.chStartsBindingIdentifier(e,t)}startsUsingForOf(){let{type:t,containsEsc:e}=this.lookahead();if(t===101&&!e)return!1;if(S(t)&&!this.hasFollowingLineBreak())return this.expectPlugin("explicitResourceManagement"),!0}startsAwaitUsing(){let t=this.nextTokenInLineStart();if(this.isUnparsedContextual(t,"using")){t=this.nextTokenInLineStartSince(t+5);let e=this.codePointAtPos(t);if(this.chStartsBindingIdentifier(e,t))return this.expectPlugin("explicitResourceManagement"),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(t=!1){let e=0;return this.options.annexB&&!this.state.strict&&(e|=4,t&&(e|=8)),this.parseStatementLike(e)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(t){let e=null;return this.match(26)&&(e=this.parseDecorators(!0)),this.parseStatementContent(t,e)}parseStatementContent(t,e){let s=this.state.type,i=this.startNode(),r=!!(t&2),n=!!(t&4),o=t&1;switch(s){case 60:return this.parseBreakContinueStatement(i,!0);case 63:return this.parseBreakContinueStatement(i,!1);case 64:return this.parseDebuggerStatement(i);case 90:return this.parseDoWhileStatement(i);case 91:return this.parseForStatement(i);case 68:if(this.lookaheadCharCode()===46)break;return n||this.raise(this.state.strict?p.StrictFunction:this.options.annexB?p.SloppyFunctionAnnexB:p.SloppyFunction,{at:this.state.startLoc}),this.parseFunctionStatement(i,!1,!r&&n);case 80:return r||this.unexpected(),this.parseClass(this.maybeTakeDecorators(e,i),!0);case 69:return this.parseIfStatement(i);case 70:return this.parseReturnStatement(i);case 71:return this.parseSwitchStatement(i);case 72:return this.parseThrowStatement(i);case 73:return this.parseTryStatement(i);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.isAwaitAllowed()?r||this.raise(p.UnexpectedLexicalDeclaration,{at:i}):this.raise(p.AwaitUsingNotInAsyncContext,{at:i}),this.next(),this.parseVarStatement(i,"await using");break;case 105:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifier())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(p.UnexpectedUsingDeclaration,{at:this.state.startLoc}):r||this.raise(p.UnexpectedLexicalDeclaration,{at:this.state.startLoc}),this.parseVarStatement(i,"using");case 99:{if(this.state.containsEsc)break;let c=this.nextTokenStart(),u=this.codePointAtPos(c);if(u!==91&&(!r&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(u,c)&&u!==123))break}case 75:r||this.raise(p.UnexpectedLexicalDeclaration,{at:this.state.startLoc});case 74:{let c=this.state.value;return this.parseVarStatement(i,c)}case 92:return this.parseWhileStatement(i);case 76:return this.parseWithStatement(i);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(i);case 83:{let c=this.lookaheadCharCode();if(c===40||c===46)break}case 82:{!this.options.allowImportExportEverywhere&&!o&&this.raise(p.UnexpectedImportExport,{at:this.state.startLoc}),this.next();let c;return s===83?(c=this.parseImport(i),c.type==="ImportDeclaration"&&(!c.importKind||c.importKind==="value")&&(this.sawUnambiguousESM=!0)):(c=this.parseExport(i,e),(c.type==="ExportNamedDeclaration"&&(!c.exportKind||c.exportKind==="value")||c.type==="ExportAllDeclaration"&&(!c.exportKind||c.exportKind==="value")||c.type==="ExportDefaultDeclaration")&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(c),c}default:if(this.isAsyncFunction())return r||this.raise(p.AsyncFunctionInSingleStatementContext,{at:this.state.startLoc}),this.next(),this.parseFunctionStatement(i,!0,!r&&n)}let h=this.state.value,l=this.parseExpression();return S(s)&&l.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(i,h,l,t):this.parseExpressionStatement(i,l,e)}assertModuleNodeAllowed(t){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(p.ImportOutsideModule,{at:t})}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(t,e,s){return t&&(e.decorators&&e.decorators.length>0?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(p.DecoratorsBeforeAfterExport,{at:e.decorators[0]}),e.decorators.unshift(...t)):e.decorators=t,this.resetStartLocationFromNode(e,t[0]),s&&this.resetStartLocationFromNode(s,e)),e}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){let e=[];do e.push(this.parseDecorator());while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(p.DecoratorExportClass,{at:this.state.startLoc});else if(!this.canHaveLeadingDecorator())throw this.raise(p.UnexpectedLeadingDecorator,{at:this.state.startLoc});return e}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let t=this.startNode();if(this.next(),this.hasPlugin("decorators")){let e=this.state.startLoc,s;if(this.match(10)){let i=this.state.startLoc;this.next(),s=this.parseExpression(),this.expect(11),s=this.wrapParenthesis(i,s);let r=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(s),this.getPluginOption("decorators","allowCallParenthesized")===!1&&t.expression!==s&&this.raise(p.DecoratorArgumentsOutsideParentheses,{at:r})}else{for(s=this.parseIdentifier(!1);this.eat(16);){let i=this.startNodeAt(e);i.object=s,this.match(136)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),i.property=this.parsePrivateName()):i.property=this.parseIdentifier(!0),i.computed=!1,s=this.finishNode(i,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(s)}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t){if(this.eat(10)){let e=this.startNodeAtNode(t);return e.callee=t,e.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(e.arguments),this.finishNode(e,"CallExpression")}return t}parseBreakContinueStatement(t,e){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,e),this.finishNode(t,e?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,e){let s;for(s=0;sthis.parseStatement()),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(Xe);let e=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(e=this.state.lastTokStartLoc),this.scope.enter(0),this.expect(10),this.match(13))return e!==null&&this.unexpected(e),this.parseFor(t,null);let s=this.isContextual(99);{let h=this.isContextual(96)&&this.startsAwaitUsing(),l=h||this.isContextual(105)&&this.startsUsingForOf(),c=s&&this.hasFollowingBindingAtom()||l;if(this.match(74)||this.match(75)||c){let u=this.startNode(),f;h?(f="await using",this.isAwaitAllowed()||this.raise(p.AwaitUsingNotInAsyncContext,{at:this.state.startLoc}),this.next()):f=this.state.value,this.next(),this.parseVar(u,!0,f);let d=this.finishNode(u,"VariableDeclaration"),x=this.match(58);return x&&l&&this.raise(p.ForInUsing,{at:d}),(x||this.isContextual(101))&&d.declarations.length===1?this.parseForIn(t,d,e):(e!==null&&this.unexpected(e),this.parseFor(t,d))}}let i=this.isContextual(95),r=new se,n=this.parseExpression(!0,r),o=this.isContextual(101);if(o&&(s&&this.raise(p.ForOfLet,{at:n}),e===null&&i&&n.type==="Identifier"&&this.raise(p.ForOfAsync,{at:n})),o||this.match(58)){this.checkDestructuringPrivate(r),this.toAssignable(n,!0);let h=o?"ForOfStatement":"ForInStatement";return this.checkLVal(n,{in:{type:h}}),this.parseForIn(t,n,e)}else this.checkExpressionErrors(r,!0);return e!==null&&this.unexpected(e),this.parseFor(t,n)}parseFunctionStatement(t,e,s){return this.next(),this.parseFunction(t,1|(s?2:0)|(e?8:0))}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),t.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(p.IllegalReturn,{at:this.state.startLoc}),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();let e=t.cases=[];this.expect(5),this.state.labels.push(Pr),this.scope.enter(0);let s;for(let i;!this.match(8);)if(this.match(61)||this.match(65)){let r=this.match(61);s&&this.finishNode(s,"SwitchCase"),e.push(s=this.startNode()),s.consequent=[],this.next(),r?s.test=this.parseExpression():(i&&this.raise(p.MultipleDefaultsInSwitch,{at:this.state.lastTokStartLoc}),i=!0,s.test=null),this.expect(14)}else s?s.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),s&&this.finishNode(s,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(p.NewlineAfterThrow,{at:this.state.lastTokEndLoc}),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){let t=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&t.type==="Identifier"?8:0),this.checkLVal(t,{in:{type:"CatchClause"},binding:9}),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){let e=this.startNode();this.next(),this.match(10)?(this.expect(10),e.param=this.parseCatchClauseParam(),this.expect(11)):(e.param=null,this.scope.enter(0)),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(67)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(p.NoCatchOrFinally,{at:t}),this.finishNode(t,"TryStatement")}parseVarStatement(t,e,s=!1){return this.next(),this.parseVar(t,!1,e,s),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(Xe),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(p.StrictWith,{at:this.state.startLoc}),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,e,s,i){for(let n of this.state.labels)n.name===e&&this.raise(p.LabelRedeclaration,{at:s,labelName:e});let r=bi(this.state.type)?"loop":this.match(71)?"switch":null;for(let n=this.state.labels.length-1;n>=0;n--){let o=this.state.labels[n];if(o.statementStart===t.start)o.statementStart=this.state.start,o.kind=r;else break}return this.state.labels.push({name:e,kind:r,statementStart:this.state.start}),t.body=i&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=s,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,e,s){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,e=!0,s){let i=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),e&&this.scope.enter(0),this.parseBlockBody(i,t,!1,8,s),e&&this.scope.exit(),this.finishNode(i,"BlockStatement")}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="StringLiteral"&&!t.expression.extra.parenthesized}parseBlockBody(t,e,s,i,r){let n=t.body=[],o=t.directives=[];this.parseBlockOrModuleBlockBody(n,e?o:void 0,s,i,r)}parseBlockOrModuleBlockBody(t,e,s,i,r){let n=this.state.strict,o=!1,h=!1;for(;!this.match(i);){let l=s?this.parseModuleItem():this.parseStatementListItem();if(e&&!h){if(this.isValidDirective(l)){let c=this.stmtToDirective(l);e.push(c),!o&&c.value.value==="use strict"&&(o=!0,this.setStrict(!0));continue}h=!0,this.state.strictErrors.clear()}t.push(l)}r==null||r.call(this,o),n||this.setStrict(!1),this.next()}parseFor(t,e){return t.init=e,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,e,s){let i=this.match(58);return this.next(),i?s!==null&&this.unexpected(s):t.await=s!==null,e.type==="VariableDeclaration"&&e.declarations[0].init!=null&&(!i||!this.options.annexB||this.state.strict||e.kind!=="var"||e.declarations[0].id.type!=="Identifier")&&this.raise(p.ForInOfLoopInitializer,{at:e,type:i?"ForInStatement":"ForOfStatement"}),e.type==="AssignmentPattern"&&this.raise(p.InvalidLhs,{at:e,ancestor:{type:"ForStatement"}}),t.left=e,t.right=i?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")}parseVar(t,e,s,i=!1){let r=t.declarations=[];for(t.kind=s;;){let n=this.startNode();if(this.parseVarId(n,s),n.init=this.eat(29)?e?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,n.init===null&&!i&&(n.id.type!=="Identifier"&&!(e&&(this.match(58)||this.isContextual(101)))?this.raise(p.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"destructuring"}):s==="const"&&!(this.match(58)||this.isContextual(101))&&this.raise(p.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"const"})),r.push(this.finishNode(n,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,e){let s=this.parseBindingAtom();this.checkLVal(s,{in:{type:"VariableDeclarator"},binding:e==="var"?5:8201}),t.id=s}parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}parseFunction(t,e=0){let s=e&2,i=!!(e&1),r=i&&!(e&4),n=!!(e&8);this.initFunction(t,n),this.match(55)&&(s&&this.raise(p.GeneratorInSingleStatementContext,{at:this.state.startLoc}),this.next(),t.generator=!0),i&&(t.id=this.parseFunctionId(r));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(Le(n,t.generator)),i||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(t,i?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),i&&!s&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=o,t}parseFunctionId(t){return t||S(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,e){this.expect(10),this.expressionScope.enter(Hi()),t.params=this.parseBindingList(11,41,2|(e?4:0)),this.expressionScope.exit()}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?5:8201:17,t.id.loc.start)}parseClass(t,e,s){this.next();let i=this.state.strict;return this.state.strict=!0,this.parseClassId(t,e,s),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,i),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}isNonstaticConstructor(t){return!t.computed&&!t.static&&(t.key.name==="constructor"||t.key.value==="constructor")}parseClassBody(t,e){this.classScope.enter();let s={hadConstructor:!1,hadSuperClass:t},i=[],r=this.startNode();if(r.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(i.length>0)throw this.raise(p.DecoratorSemicolon,{at:this.state.lastTokEndLoc});continue}if(this.match(26)){i.push(this.parseDecorator());continue}let n=this.startNode();i.length&&(n.decorators=i,this.resetStartLocationFromNode(n,i[0]),i=[]),this.parseClassMember(r,n,s),n.kind==="constructor"&&n.decorators&&n.decorators.length>0&&this.raise(p.DecoratorConstructor,{at:n})}}),this.state.strict=e,this.next(),i.length)throw this.raise(p.TrailingDecorator,{at:this.state.startLoc});return this.classScope.exit(),this.finishNode(r,"ClassBody")}parseClassMemberFromModifier(t,e){let s=this.parseIdentifier(!0);if(this.isClassMethod()){let i=e;return i.kind="method",i.computed=!1,i.key=s,i.static=!1,this.pushClassMethod(t,i,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let i=e;return i.computed=!1,i.key=s,i.static=!1,t.body.push(this.parseClassProperty(i)),!0}return this.resetPreviousNodeTrailingComments(s),!1}parseClassMember(t,e,s){let i=this.isContextual(104);if(i){if(this.parseClassMemberFromModifier(t,e))return;if(this.eat(5)){this.parseClassStaticBlock(t,e);return}}this.parseClassMemberWithIsStatic(t,e,s,i)}parseClassMemberWithIsStatic(t,e,s,i){let r=e,n=e,o=e,h=e,l=e,c=r,u=r;if(e.static=i,this.parsePropertyNamePrefixOperator(e),this.eat(55)){c.kind="method";let C=this.match(136);if(this.parseClassElementName(c),C){this.pushClassPrivateMethod(t,n,!0,!1);return}this.isNonstaticConstructor(r)&&this.raise(p.ConstructorIsGenerator,{at:r.key}),this.pushClassMethod(t,r,!0,!1,!1,!1);return}let f=S(this.state.type)&&!this.state.containsEsc,d=this.match(136),x=this.parseClassElementName(e),I=this.state.startLoc;if(this.parsePostMemberNameModifiers(u),this.isClassMethod()){if(c.kind="method",d){this.pushClassPrivateMethod(t,n,!1,!1);return}let C=this.isNonstaticConstructor(r),E=!1;C&&(r.kind="constructor",s.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(p.DuplicateConstructor,{at:x}),C&&this.hasPlugin("typescript")&&e.override&&this.raise(p.OverrideOnConstructor,{at:x}),s.hadConstructor=!0,E=s.hadSuperClass),this.pushClassMethod(t,r,!1,!1,C,E)}else if(this.isClassProperty())d?this.pushClassPrivateProperty(t,h):this.pushClassProperty(t,o);else if(f&&x.name==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(x);let C=this.eat(55);u.optional&&this.unexpected(I),c.kind="method";let E=this.match(136);this.parseClassElementName(c),this.parsePostMemberNameModifiers(u),E?this.pushClassPrivateMethod(t,n,C,!0):(this.isNonstaticConstructor(r)&&this.raise(p.ConstructorIsAsync,{at:r.key}),this.pushClassMethod(t,r,C,!0,!1,!1))}else if(f&&(x.name==="get"||x.name==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(x),c.kind=x.name;let C=this.match(136);this.parseClassElementName(r),C?this.pushClassPrivateMethod(t,n,!1,!1):(this.isNonstaticConstructor(r)&&this.raise(p.ConstructorIsAccessor,{at:r.key}),this.pushClassMethod(t,r,!1,!1,!1,!1)),this.checkGetterSetterParams(r)}else if(f&&x.name==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(x);let C=this.match(136);this.parseClassElementName(o),this.pushClassAccessorProperty(t,l,C)}else this.isLineTerminator()?d?this.pushClassPrivateProperty(t,h):this.pushClassProperty(t,o):this.unexpected()}parseClassElementName(t){let{type:e,value:s}=this.state;if((e===130||e===131)&&t.static&&s==="prototype"&&this.raise(p.StaticPrototype,{at:this.state.startLoc}),e===136){s==="constructor"&&this.raise(p.ConstructorClassPrivateField,{at:this.state.startLoc});let i=this.parsePrivateName();return t.key=i,i}return this.parsePropertyName(t)}parseClassStaticBlock(t,e){var s;this.scope.enter(208);let i=this.state.labels;this.state.labels=[],this.prodParam.enter(te);let r=e.body=[];this.parseBlockOrModuleBlockBody(r,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=i,t.body.push(this.finishNode(e,"StaticBlock")),(s=e.decorators)!=null&&s.length&&this.raise(p.DecoratorStaticBlock,{at:e})}pushClassProperty(t,e){!e.computed&&(e.key.name==="constructor"||e.key.value==="constructor")&&this.raise(p.ConstructorClassField,{at:e.key}),t.body.push(this.parseClassProperty(e))}pushClassPrivateProperty(t,e){let s=this.parseClassPrivateProperty(e);t.body.push(s),this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}pushClassAccessorProperty(t,e,s){if(!s&&!e.computed){let r=e.key;(r.name==="constructor"||r.value==="constructor")&&this.raise(p.ConstructorClassField,{at:r})}let i=this.parseClassAccessorProperty(e);t.body.push(i),s&&this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start)}pushClassMethod(t,e,s,i,r,n){t.body.push(this.parseMethod(e,s,i,r,n,"ClassMethod",!0))}pushClassPrivateMethod(t,e,s,i){let r=this.parseMethod(e,s,i,!1,!1,"ClassPrivateMethod",!0);t.body.push(r);let n=r.kind==="get"?r.static?6:2:r.kind==="set"?r.static?5:1:0;this.declareClassPrivateMethodInScope(r,n)}declareClassPrivateMethodInScope(t,e){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),e,t.key.loc.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(80),this.expressionScope.enter(hs()),this.prodParam.enter(te),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,e,s,i=8331){if(S(this.state.type))t.id=this.parseIdentifier(),e&&this.declareNameFromIdentifier(t.id,i);else if(s||!e)t.id=null;else throw this.raise(p.MissingClassName,{at:this.state.startLoc})}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(t,e){let s=this.parseMaybeImportPhase(t,!0),i=this.maybeParseExportDefaultSpecifier(t,s),r=!i||this.eat(12),n=r&&this.eatExportStar(t),o=n&&this.maybeParseExportNamespaceSpecifier(t),h=r&&(!o||this.eat(12)),l=i||n;if(n&&!o){if(i&&this.unexpected(),e)throw this.raise(p.UnsupportedDecoratorExport,{at:t});return this.parseExportFrom(t,!0),this.finishNode(t,"ExportAllDeclaration")}let c=this.maybeParseExportNamedSpecifiers(t);i&&r&&!n&&!c&&this.unexpected(null,5),o&&h&&this.unexpected(null,97);let u;if(l||c){if(u=!1,e)throw this.raise(p.UnsupportedDecoratorExport,{at:t});this.parseExportFrom(t,l)}else u=this.maybeParseExportDeclaration(t);if(l||c||u){var f;let d=t;if(this.checkExport(d,!0,!1,!!d.source),((f=d.declaration)==null?void 0:f.type)==="ClassDeclaration")this.maybeTakeDecorators(e,d.declaration,d);else if(e)throw this.raise(p.UnsupportedDecoratorExport,{at:t});return this.finishNode(d,"ExportNamedDeclaration")}if(this.eat(65)){let d=t,x=this.parseExportDefaultExpression();if(d.declaration=x,x.type==="ClassDeclaration")this.maybeTakeDecorators(e,x,d);else if(e)throw this.raise(p.UnsupportedDecoratorExport,{at:t});return this.checkExport(d,!0,!0),this.finishNode(d,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t,e){if(e||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",e==null?void 0:e.loc.start);let s=e||this.parseIdentifier(!0),i=this.startNodeAtNode(s);return i.exported=s,t.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){t.specifiers||(t.specifiers=[]);let e=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),e.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(e,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){t.specifiers||(t.specifiers=[]);let e=t.exportKind==="type";return t.specifiers.push(...this.parseExportSpecifiers(e)),t.source=null,t.declaration=null,this.hasPlugin("importAssertions")&&(t.assertions=[]),!0}return!1}maybeParseExportDeclaration(t){return this.shouldParseExportDeclaration()?(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")&&(t.assertions=[]),t.declaration=this.parseExportDeclaration(t),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let t=this.nextTokenInLineStart();return this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){let t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(p.DecoratorBeforeExport,{at:this.state.startLoc}),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(p.UnsupportedDefaultExport,{at:this.state.startLoc});let e=this.parseMaybeAssignAllowIn();return this.semicolon(),e}parseExportDeclaration(t){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:t}=this.state;if(S(t)){if(t===95&&!this.state.containsEsc||t===99)return!1;if((t===128||t===127)&&!this.state.containsEsc){let{type:i}=this.lookahead();if(S(i)&&i!==97||i===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let e=this.nextTokenStart(),s=this.isUnparsedContextual(e,"from");if(this.input.charCodeAt(e)===44||S(this.state.type)&&s)return!0;if(this.match(65)&&s){let i=this.input.charCodeAt(this.nextTokenStartSince(e+4));return i===34||i===39}return!1}parseExportFrom(t,e){this.eatContextual(97)?(t.source=this.parseImportSource(),this.checkExport(t),this.maybeParseImportAttributes(t),this.checkJSONModuleImport(t)):e&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:t}=this.state;return t===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(p.DecoratorBeforeExport,{at:this.state.startLoc}),!0):t===74||t===75||t===68||t===80||this.isLet()||this.isAsyncFunction()}checkExport(t,e,s,i){if(e){var r;if(s){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var n;let o=t.declaration;o.type==="Identifier"&&o.name==="from"&&o.end-o.start===4&&!((n=o.extra)!=null&&n.parenthesized)&&this.raise(p.ExportDefaultFromAsIdentifier,{at:o})}}else if((r=t.specifiers)!=null&&r.length)for(let o of t.specifiers){let{exported:h}=o,l=h.type==="Identifier"?h.name:h.value;if(this.checkDuplicateExports(o,l),!i&&o.local){let{local:c}=o;c.type!=="Identifier"?this.raise(p.ExportBindingIsString,{at:o,localName:c.value,exportName:l}):(this.checkReservedWord(c.name,c.loc.start,!0,!1),this.scope.checkLocalExport(c))}}else if(t.declaration){if(t.declaration.type==="FunctionDeclaration"||t.declaration.type==="ClassDeclaration"){let o=t.declaration.id;if(!o)throw new Error("Assertion failure");this.checkDuplicateExports(t,o.name)}else if(t.declaration.type==="VariableDeclaration")for(let o of t.declaration.declarations)this.checkDeclaration(o.id)}}}checkDeclaration(t){if(t.type==="Identifier")this.checkDuplicateExports(t,t.name);else if(t.type==="ObjectPattern")for(let e of t.properties)this.checkDeclaration(e);else if(t.type==="ArrayPattern")for(let e of t.elements)e&&this.checkDeclaration(e);else t.type==="ObjectProperty"?this.checkDeclaration(t.value):t.type==="RestElement"?this.checkDeclaration(t.argument):t.type==="AssignmentPattern"&&this.checkDeclaration(t.left)}checkDuplicateExports(t,e){this.exportedIdentifiers.has(e)&&(e==="default"?this.raise(p.DuplicateDefaultExport,{at:t}):this.raise(p.DuplicateExport,{at:t,exportName:e})),this.exportedIdentifiers.add(e)}parseExportSpecifiers(t){let e=[],s=!0;for(this.expect(5);!this.eat(8);){if(s)s=!1;else if(this.expect(12),this.eat(8))break;let i=this.isContextual(128),r=this.match(131),n=this.startNode();n.local=this.parseModuleExportName(),e.push(this.parseExportSpecifier(n,r,t,i))}return e}parseExportSpecifier(t,e,s,i){return this.eatContextual(93)?t.exported=this.parseModuleExportName():e?t.exported=Gi(t.local):t.exported||(t.exported=V(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(131)){let t=this.parseStringLiteral(this.state.value),e=t.value.match(gr);return e&&this.raise(p.ModuleExportNameHasLoneSurrogate,{at:t,surrogateCharCode:e[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}isJSONModuleImport(t){return t.assertions!=null?t.assertions.some(({key:e,value:s})=>s.value==="json"&&(e.type==="Identifier"?e.name==="type":e.value==="type")):!1}checkImportReflection(t){if(t.module){var e;(t.specifiers.length!==1||t.specifiers[0].type!=="ImportDefaultSpecifier")&&this.raise(p.ImportReflectionNotBinding,{at:t.specifiers[0].loc.start}),((e=t.assertions)==null?void 0:e.length)>0&&this.raise(p.ImportReflectionHasAssertion,{at:t.specifiers[0].loc.start})}}checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&t.type!=="ExportAllDeclaration"){let{specifiers:e}=t;if(e!=null){let s=e.find(i=>{let r;if(i.type==="ExportSpecifier"?r=i.local:i.type==="ImportSpecifier"&&(r=i.imported),r!==void 0)return r.type==="Identifier"?r.name!=="default":r.value!=="default"});s!==void 0&&this.raise(p.ImportJSONBindingNotDefault,{at:s.loc.start})}}}isPotentialImportPhase(t){return!t&&this.isContextual(125)}applyImportPhase(t,e,s,i){e||(s==="module"?(this.expectPlugin("importReflection",i),t.module=!0):this.hasPlugin("importReflection")&&(t.module=!1))}parseMaybeImportPhase(t,e){if(!this.isPotentialImportPhase(e))return this.applyImportPhase(t,e,null),null;let s=this.parseIdentifier(!0),{type:i}=this.state;return(M(i)?i!==97||this.lookaheadCharCode()===102:i!==12)?(this.resetPreviousIdentifierLeadingComments(s),this.applyImportPhase(t,e,s.name,s.loc.start),null):(this.applyImportPhase(t,e,null),s)}isPrecedingIdImportPhase(t){let{type:e}=this.state;return S(e)?e!==97||this.lookaheadCharCode()===102:e!==12}parseImport(t){return this.match(131)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,!1))}parseImportSpecifiersAndAfter(t,e){t.specifiers=[];let i=!this.maybeParseDefaultImportSpecifier(t,e)||this.eat(12),r=i&&this.maybeParseStarImportSpecifier(t);return i&&!r&&this.parseNamedImportSpecifiers(t),this.expectContextual(97),this.parseImportSourceAndAttributes(t)}parseImportSourceAndAttributes(t){var e;return(e=t.specifiers)!=null||(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(131)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(t,e,s){e.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(e,s))}finishImportSpecifier(t,e,s=8201){return this.checkLVal(t.local,{in:{type:e},binding:s}),this.finishNode(t,e)}parseImportAttributes(){this.expect(5);let t=[],e=new Set;do{if(this.match(8))break;let s=this.startNode(),i=this.state.value;if(e.has(i)&&this.raise(p.ModuleAttributesWithDuplicateKeys,{at:this.state.startLoc,key:i}),e.add(i),this.match(131)?s.key=this.parseStringLiteral(i):s.key=this.parseIdentifier(!0),this.expect(14),!this.match(131))throw this.raise(p.ModuleAttributeInvalidValue,{at:this.state.startLoc});s.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(s,"ImportAttribute"))}while(this.eat(12));return this.expect(8),t}parseModuleAttributes(){let t=[],e=new Set;do{let s=this.startNode();if(s.key=this.parseIdentifier(!0),s.key.name!=="type"&&this.raise(p.ModuleAttributeDifferentFromType,{at:s.key}),e.has(s.key.name)&&this.raise(p.ModuleAttributesWithDuplicateKeys,{at:s.key,key:s.key.name}),e.add(s.key.name),this.expect(14),!this.match(131))throw this.raise(p.ModuleAttributeInvalidValue,{at:this.state.startLoc});s.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(s,"ImportAttribute"))}while(this.eat(12));return t}maybeParseImportAttributes(t){let e,s=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?e=this.parseModuleAttributes():(this.expectImportAttributesPlugin(),e=this.parseImportAttributes()),s=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.hasPlugin("importAttributes")?(this.getPluginOption("importAttributes","deprecatedAssertSyntax")!==!0&&this.raise(p.ImportAttributesUseAssert,{at:this.state.startLoc}),this.addExtra(t,"deprecatedAssertSyntax",!0)):this.expectOnePlugin(["importAttributes","importAssertions"]),this.next(),e=this.parseImportAttributes();else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))e=[];else if(this.hasPlugin("moduleAttributes"))e=[];else return;!s&&this.hasPlugin("importAssertions")?t.assertions=e:t.attributes=e}maybeParseDefaultImportSpecifier(t,e){if(e){let s=this.startNodeAtNode(e);return s.local=e,t.specifiers.push(this.finishImportSpecifier(s,"ImportDefaultSpecifier")),!0}else if(M(this.state.type))return this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(t){if(this.match(55)){let e=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,e,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(t){let e=!0;for(this.expect(5);!this.eat(8);){if(e)e=!1;else{if(this.eat(14))throw this.raise(p.DestructureNamedImport,{at:this.state.startLoc});if(this.expect(12),this.eat(8))break}let s=this.startNode(),i=this.match(131),r=this.isContextual(128);s.imported=this.parseModuleExportName();let n=this.parseImportSpecifier(s,i,t.importKind==="type"||t.importKind==="typeof",r,void 0);t.specifiers.push(n)}}parseImportSpecifier(t,e,s,i,r){if(this.eatContextual(93))t.local=this.parseIdentifier();else{let{imported:n}=t;if(e)throw this.raise(p.ImportBindingIsString,{at:t,importName:n.value});this.checkReservedWord(n.name,t.loc.start,!0,!0),t.local||(t.local=V(n))}return this.finishImportSpecifier(t,"ImportSpecifier",r)}isThisParam(t){return t.type==="Identifier"&&t.name==="this"}},Be=class extends Pt{constructor(t,e){t=xr(t),super(t,e),this.options=t,this.initializeScopes(),this.plugins=br(this.options.plugins),this.filename=t.sourceFilename}getScopeHandler(){return ge}parse(){this.enterInitialScopes();let t=this.startNode(),e=this.startNode();return this.nextToken(),t.errors=null,this.parseTopLevel(t,e),t.errors=this.state.errors,t}};function br(a){let t=new Map;for(let e of a){let[s,i]=Array.isArray(e)?e:[e,{}];t.has(s)||t.set(s,i||{})}return t}function Ar(a,t){var e;if(((e=t)==null?void 0:e.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let s=me(t,a),i=s.parse();if(s.sawUnambiguousESM)return i;if(s.ambiguousScriptDifferentAst)try{return t.sourceType="script",me(t,a).parse()}catch{}else i.program.sourceType="script";return i}catch(s){try{return t.sourceType="script",me(t,a).parse()}catch{}throw s}}else return me(t,a).parse()}function Sr(a,t){let e=me(t,a);return e.options.strictMode&&(e.state.strict=!0),e.getExpression()}function wr(a){let t={};for(let e of Object.keys(a))t[e]=_(a[e]);return t}var Cr=wr(xi);function me(a,t){let e=Be;return a!=null&&a.plugins&&(mr(a.plugins),e=Er(a.plugins)),new e(a,t)}var Gt={};function Er(a){let t=yr.filter(i=>k(a,i)),e=t.join("/"),s=Gt[e];if(!s){s=Be;for(let i of t)s=fs[i](s);Gt[e]=s}return s}_e.parse=Ar;_e.parseExpression=Sr;_e.tokTypes=Cr});var Ns=Ft(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.extract=_r;G.parse=jr;G.parseWithComments=Is;G.print=$r;G.strip=Ur;var Mr=/\*\/$/,Or=/^\/\*\*?/,Cs=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Fr=/(^|\s+)\/\/([^\r\n]*)/g,As=/^(\r?\n)+/,Br=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,Ss=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,Rr=/(\r?\n|^) *\* ?/g,Es=[];function _r(a){let t=a.match(Cs);return t?t[0].trimLeft():""}function Ur(a){let t=a.match(Cs);return t&&t[0]?a.substring(t[0].length):a}function jr(a){return Is(a).pragmas}function Is(a){let t=` +`;a=a.replace(Or,"").replace(Mr,"").replace(Rr,"$1");let e="";for(;e!==a;)e=a,a=a.replace(Br,`${t}$1 $2${t}`);a=a.replace(As,"").trimRight();let s=Object.create(null),i=a.replace(Ss,"").replace(As,"").trimRight(),r;for(;r=Ss.exec(a);){let n=r[2].replace(Fr,"");typeof s[r[1]]=="string"||Array.isArray(s[r[1]])?s[r[1]]=Es.concat(s[r[1]],n):s[r[1]]=n}return{comments:i,pragmas:s}}function $r({comments:a="",pragmas:t={}}){let e=` +`,s="/**",i=" *",r=" */",n=Object.keys(t),o=n.map(l=>ws(l,t[l])).reduce((l,c)=>l.concat(c),[]).map(l=>`${i} ${l}${e}`).join("");if(!a){if(n.length===0)return"";if(n.length===1&&!Array.isArray(t[n[0]])){let l=t[n[0]];return`${s} ${ws(n[0],l)[0]}${r}`}}let h=a.split(e).map(l=>`${i} ${l}`).join(e)+e;return s+e+(a?h:"")+(a&&n.length?i+e:"")+o+r}function ws(a,t){return Es.concat(t).map(e=>`@${a} ${e}`.trim())}});var fa={};si(fa,{parsers:()=>da});var Ke=qe(kt(),1);function Ir(a){let t=[];for(let e of a)try{return e()}catch(s){t.push(s)}throw Object.assign(new Error("All combinations failed"),{errors:t})}var ms=Ir;function Nr(a){if(!a.startsWith("#!"))return"";let t=a.indexOf(` +`);return t===-1?a:a.slice(0,t)}var Ue=Nr;function kr(a,t){if(t===!1)return!1;if(a.charAt(t)==="/"&&a.charAt(t+1)==="*"){for(let e=t+2;e{let i=!!(s!=null&&s.backwards);if(e===!1)return!1;let{length:r}=t,n=e;for(;n>=0&&n0}var X=Va;function D(a){var s;let t=a.range?a.range[0]:a.start,e=((s=a.declaration)==null?void 0:s.decorators)??a.decorators;return X(e)?Math.min(D(e[0]),t):t}function _(a){return a.range?a.range[1]:a.end}function za(a){return a=typeof a=="function"?{parse:a}:a,{astFormat:"estree",hasPragma:yi,locStart:D,locEnd:_,...a}}var xe=za;function Ka(a,t){let e=new SyntaxError(a+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(e,t)}var Pe=Ka;function qa(a){let{message:t,loc:e}=a;return Pe(t.replace(/ \(.*\)$/,""),{loc:{start:{line:e?e.line:0,column:e?e.column+1:0}},cause:a})}var Oe=qa;var Ha=(a,t,e)=>{if(!(a&&t==null))return Array.isArray(t)||typeof t=="string"?t[e<0?t.length+e:e]:t.at(e)},as=Ha;function Wa(a){return a=new Set(a),t=>a.has(t==null?void 0:t.type)}var xi=Wa;var Ja=xi(["Block","CommentBlock","MultiLine"]),Be=Ja;function Xa(a){return Be(a)&&a.value[0]==="*"&&/@(?:type|satisfies)\b/.test(a.value)}var Pi=Xa;function Ga(a){let t=`*${a.value}*`.split(` -`);return t.length>1&&t.every(e=>e.trimStart()[0]==="*")}var ns=Ga;var Fe=null;function _e(a){if(Fe!==null&&typeof Fe.property){let t=Fe;return Fe=_e.prototype=null,t}return Fe=_e.prototype=a??Object.create(null),new _e}var Ya=10;for(let a=0;a<=Ya;a++)_e();function os(a){return _e(a)}function Qa(a,t="type"){os(a);function e(s){let i=s[t],r=a[i];if(!Array.isArray(r))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:s});return r}return e}var Ti=Qa;var gi={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ExportAllDeclaration:["source","attributes","assertions","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes","assertions"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes","assertions"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","parameter"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ImportExpression:["source","attributes"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareEnum:["id","body"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]};var Za=Ti(gi),bi=Za;function hs(a,t){if(!(a!==null&&typeof a=="object"))return a;if(Array.isArray(a)){for(let s=0;s{var o;(o=n.leadingComments)!=null&&o.some(Pi)&&r.add(D(n))}),a=ot(a,n=>{if(n.type==="ParenthesizedExpression"){let{expression:o}=n;if(o.type==="TypeCastExpression")return o.range=n.range,o;let h=D(n);if(!r.has(h))return o.extra={...o.extra,parenthesized:!0},o}})}if(a=ot(a,r=>{switch(r.type){case"LogicalExpression":if(Ai(r))return ls(r);break;case"VariableDeclaration":{let n=as(!1,r.declarations,-1);n!=null&&n.init&&i(r,n);break}case"TSParenthesizedType":return r.typeAnnotation;case"TSTypeParameter":if(typeof r.name=="string"){let n=D(r);r.name={type:"Identifier",name:r.name,range:[n,n+r.name.length]}}break;case"ObjectExpression":if(e==="typescript"){let n=r.properties.find(o=>o.type==="Property"&&o.value.type==="TSEmptyBodyFunctionExpression");n&&ht(n.value,"Unexpected token.")}break;case"TSInterfaceDeclaration":X(r.implements)&&ht(r.implements[0],"Interface declaration cannot have 'implements' clause.");break;case"TSPropertySignature":r.initializer&&ht(r.initializer,"An interface property cannot have an initializer.");break;case"TopicReference":a.extra={...a.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":{let{exported:n}=r;if(e==="meriyah"&&(n==null?void 0:n.type)==="Identifier"){let o=s.slice(D(n),_(n));(o.startsWith('"')||o.startsWith("'"))&&(r.exported={...r.exported,type:"Literal",value:r.exported.name,raw:o})}break}case"TSUnionType":case"TSIntersectionType":if(r.types.length===1)return r.types[0];break}}),X(a.comments)){let r=as(!1,a.comments,-1);for(let n=a.comments.length-2;n>=0;n--){let o=a.comments[n];_(o)===D(r)&&Be(o)&&Be(r)&&ns(o)&&ns(r)&&(a.comments.splice(n+1,1),o.value+="*//*"+r.value,o.range=[D(o),_(r)]),r=o}}return a.type==="Program"&&(a.range=[0,s.length]),a;function i(r,n){s[_(n)]!==";"&&(r.range=[D(r),_(n)])}}function Ai(a){return a.type==="LogicalExpression"&&a.right.type==="LogicalExpression"&&a.operator===a.right.operator}function ls(a){return Ai(a)?ls({type:"LogicalExpression",operator:a.operator,left:ls({type:"LogicalExpression",operator:a.operator,left:a.left,right:a.right.left,range:[D(a.left),_(a.right.left)]}),right:a.right.right,range:[D(a),_(a)]}):a}var Si=tn;function sn(a){let{filepath:t}=a;if(t){if(t=t.toLowerCase(),t.endsWith(".cjs"))return"script";if(t.endsWith(".mjs"))return"module"}}var Ei=sn;function rn(a,t){let{type:e="JsExpressionRoot",rootMarker:s,text:i}=t,{tokens:r,comments:n}=a;return delete a.tokens,delete a.comments,{tokens:r,comments:n,type:e,node:a,range:[0,i.length],rootMarker:s}}var lt=rn;var Te=a=>xe(cn(a)),an={sourceType:"module",allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","decimal","moduleBlocks","asyncDoExpressions","regexpUnicodeSets","destructuringPrivate","decoratorAutoAccessors","importReflection","explicitResourceManagement",["importAttributes",{deprecatedAssertSyntax:!0}]],tokens:!0,ranges:!0},nn=["recordAndTuple",{syntaxType:"hash"}],Ci="v8intrinsic",wi=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"minimal"}],["pipelineOperator",{proposal:"fsharp"}]],R=(a,t=an)=>({...t,plugins:[...t.plugins,...a]}),on=/@(?:no)?flow\b/;function hn(a,t){var i;if((i=t.filepath)!=null&&i.endsWith(".js.flow"))return!0;let e=at(a);e&&(a=a.slice(e.length));let s=hi(a,0);return s!==!1&&(a=a.slice(0,s)),on.test(a)}function ln(a,t,e){let s=a(t,e),i=s.errors.find(r=>!pn.has(r.reasonCode));if(i)throw i;return s}function cn({isExpression:a=!1,optionsCombinations:t}){return(e,s={})=>{if((s.parser==="babel"||s.parser==="__babel_estree")&&hn(e,s))return s.parser="babel-flow",Di.parse(e,s);let i=t;(s.__babelSourceType??Ei(s))==="script"&&(i=i.map(l=>({...l,sourceType:"script"}))),/#[[{]/.test(e)&&(i=i.map(l=>R([nn],l)));let n=/%[A-Z]/.test(e);e.includes("|>")?i=(n?[...wi,Ci]:wi).flatMap(c=>i.map(u=>R([c],u))):n&&(i=i.map(l=>R([Ci],l)));let o=a?ct.parseExpression:ct.parse,h;try{h=si(i.map(l=>()=>ln(o,e,l)))}catch({errors:[l]}){throw Oe(l)}return a&&(h=lt(h,{text:e,rootMarker:s.rootMarker})),Si(h,{parser:"babel",text:e})}}var pn=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","EmptyTypeArguments","EmptyTypeParameters","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","MixedLabeledAndUnlabeledElements","DuplicateAccessibilityModifier","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","LineTerminatorBeforeArrow","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","OptionalBindingPattern","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","DeclareFunctionHasImplementation","ConstructorClassField","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport"]),Li=[R(["jsx"])],Ii=Te({optionsCombinations:Li}),Ni=Te({optionsCombinations:[R(["jsx","typescript"]),R(["typescript"])]}),ki=Te({isExpression:!0,optionsCombinations:[R(["jsx"])]}),vi=Te({isExpression:!0,optionsCombinations:[R(["typescript"])]}),Di=Te({optionsCombinations:[R(["jsx",["flow",{all:!0,enums:!0}],"flowComments"])]}),un=Te({optionsCombinations:Li.map(a=>R(["estree"],a))}),Mi={babel:Ii,"babel-flow":Di,"babel-ts":Ni,__js_expression:ki,__ts_expression:vi,__vue_expression:ki,__vue_ts_expression:vi,__vue_event_binding:Ii,__vue_ts_event_binding:Ni,__babel_estree:un};var Bi=pt(rs(),1);function Fi(a={}){let{allowComments:t=!0}=a;return function(s){let i;try{i=(0,Bi.parseExpression)(s,{tokens:!0,ranges:!0})}catch(r){throw(r==null?void 0:r.reasonCode)==="MissingPlugin"||(r==null?void 0:r.reasonCode)==="MissingOneOfPlugins"?Oe({message:"Unexpected token",loc:r.loc}):Oe(r)}if(!t&&X(i.comments))throw G(i.comments[0],"Comment");return ge(i),lt(i,{type:"JsonRoot",text:s})}}function G(a,t){let[e,s]=[a.loc.start,a.loc.end].map(({line:i,column:r})=>({line:i,column:r+1}));return Pe(`${t} is not allowed in JSON.`,{loc:{start:e,end:s}})}function ge(a){switch(a.type){case"ArrayExpression":for(let t of a.elements)t!==null&&ge(t);return;case"ObjectExpression":for(let t of a.properties)ge(t);return;case"ObjectProperty":if(a.computed)throw G(a.key,"Computed key");if(a.shorthand)throw G(a.key,"Shorthand property");a.key.type!=="Identifier"&&ge(a.key),ge(a.value);return;case"UnaryExpression":{let{operator:t,argument:e}=a;if(t!=="+"&&t!=="-")throw G(a,`Operator '${a.operator}'`);if(e.type==="NumericLiteral"||e.type==="Identifier"&&(e.name==="Infinity"||e.name==="NaN"))return;throw G(e,`Operator '${t}' before '${e.type}'`)}case"Identifier":if(a.name!=="Infinity"&&a.name!=="NaN"&&a.name!=="undefined")throw G(a,`Identifier '${a.name}'`);return;case"TemplateLiteral":if(X(a.expressions))throw G(a.expressions[0],"'TemplateLiteral' with expression");for(let t of a.quasis)ge(t);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw G(a,`'${a.type}'`)}}var Oi=Fi(),fn={json:xe({parse:Oi,hasPragma(){return!0}}),json5:xe(Oi),"json-stringify":xe({parse:Fi({allowComments:!1}),astFormat:"estree-json"})},_i=fn;var dn={...Mi,..._i};return Ki(mn);}); \ No newline at end of file +`||i==="\r"||i==="\u2028"||i==="\u2029")return t+1}return t}var xs=vr;function je(a){return(t,e,s)=>{let i=!!(s!=null&&s.backwards);if(e===!1)return!1;let{length:r}=t,n=e;for(;n>=0&&n0}var Y=zr;function D(a){var s;let t=a.range?a.range[0]:a.start,e=((s=a.declaration)==null?void 0:s.decorators)??a.decorators;return Y(e)?Math.min(D(e[0]),t):t}function B(a){return a.range?a.range[1]:a.end}function Kr(a){return a=typeof a=="function"?{parse:a}:a,{astFormat:"estree",hasPragma:ks,locStart:D,locEnd:B,...a}}var oe=Kr;function qr(a,t){let e=new SyntaxError(a+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(e,t)}var $e=qr;function Hr(a){let{message:t,loc:e}=a;return $e(t.replace(/ \(.*\)$/,""),{loc:{start:{line:e?e.line:0,column:e?e.column+1:0}},cause:a})}var be=Hr;var Wr=(a,t,e)=>{if(!(a&&t==null))return Array.isArray(t)||typeof t=="string"?t[e<0?t.length+e:e]:t.at(e)},vt=Wr;function Jr(a){return a=new Set(a),t=>a.has(t==null?void 0:t.type)}var vs=Jr;var Xr=vs(["Block","CommentBlock","MultiLine"]),Ae=Xr;function Gr(a){return Ae(a)&&a.value[0]==="*"&&/@(?:type|satisfies)\b/.test(a.value)}var Ls=Gr;function Yr(a){let t=`*${a.value}*`.split(` +`);return t.length>1&&t.every(e=>e.trimStart()[0]==="*")}var Lt=Yr;var Se=null;function we(a){if(Se!==null&&typeof Se.property){let t=Se;return Se=we.prototype=null,t}return Se=we.prototype=a??Object.create(null),new we}var Qr=10;for(let a=0;a<=Qr;a++)we();function Dt(a){return we(a)}function Zr(a,t="type"){Dt(a);function e(s){let i=s[t],r=a[i];if(!Array.isArray(r))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:s});return r}return e}var Ds=Zr;var Ms={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","assertions","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes","assertions"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes","assertions"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ImportExpression:["source","attributes"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareEnum:["id","body"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]};var ea=Ds(Ms),Os=ea;function Mt(a,t){if(!(a!==null&&typeof a=="object"))return a;if(Array.isArray(a)){for(let s=0;s{var o;(o=n.leadingComments)!=null&&o.some(Ls)&&r.add(D(n))}),a=Ve(a,n=>{if(n.type==="ParenthesizedExpression"){let{expression:o}=n;if(o.type==="TypeCastExpression")return o.range=n.range,o;let h=D(n);if(!r.has(h))return o.extra={...o.extra,parenthesized:!0},o}})}if(a=Ve(a,r=>{switch(r.type){case"LogicalExpression":if(Fs(r))return Ot(r);break;case"VariableDeclaration":{let n=vt(!1,r.declarations,-1);n!=null&&n.init&&i(r,n);break}case"TSParenthesizedType":return r.typeAnnotation;case"TSTypeParameter":if(typeof r.name=="string"){let n=D(r);r.name={type:"Identifier",name:r.name,range:[n,n+r.name.length]}}break;case"TopicReference":a.extra={...a.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":{let{exported:n}=r;if(e==="meriyah"&&(n==null?void 0:n.type)==="Identifier"){let o=s.slice(D(n),B(n));(o.startsWith('"')||o.startsWith("'"))&&(r.exported={...r.exported,type:"Literal",value:r.exported.name,raw:o})}break}case"TSUnionType":case"TSIntersectionType":if(r.types.length===1)return r.types[0];break}}),Y(a.comments)){let r=vt(!1,a.comments,-1);for(let n=a.comments.length-2;n>=0;n--){let o=a.comments[n];B(o)===D(r)&&Ae(o)&&Ae(r)&&Lt(o)&&Lt(r)&&(a.comments.splice(n+1,1),o.value+="*//*"+r.value,o.range=[D(o),B(r)]),r=o}}return a.type==="Program"&&(a.range=[0,s.length]),a;function i(r,n){s[B(n)]!==";"&&(r.range=[D(r),B(n)])}}function Fs(a){return a.type==="LogicalExpression"&&a.right.type==="LogicalExpression"&&a.operator===a.right.operator}function Ot(a){return Fs(a)?Ot({type:"LogicalExpression",operator:a.operator,left:Ot({type:"LogicalExpression",operator:a.operator,left:a.left,right:a.right.left,range:[D(a.left),B(a.right.left)]}),right:a.right.right,range:[D(a),B(a)]}):a}var Bs=ta;function sa(a){let{filepath:t}=a;if(t){if(t=t.toLowerCase(),t.endsWith(".cjs"))return"script";if(t.endsWith(".mjs"))return"module"}}var Rs=sa;function ia(a,t){let{type:e="JsExpressionRoot",rootMarker:s,text:i}=t,{tokens:r,comments:n}=a;return delete a.tokens,delete a.comments,{tokens:r,comments:n,type:e,node:a,range:[0,i.length],rootMarker:s}}var ze=ia;var he=a=>oe(la(a)),ra={sourceType:"module",allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","decimal","moduleBlocks","asyncDoExpressions","regexpUnicodeSets","destructuringPrivate","decoratorAutoAccessors","importReflection","explicitResourceManagement",["importAttributes",{deprecatedAssertSyntax:!0}]],tokens:!0,ranges:!0},aa=["recordAndTuple",{syntaxType:"hash"}],_s="v8intrinsic",Us=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"minimal"}],["pipelineOperator",{proposal:"fsharp"}]],R=(a,t=ra)=>({...t,plugins:[...t.plugins,...a]}),na=/@(?:no)?flow\b/;function oa(a,t){var i;if((i=t.filepath)!=null&&i.endsWith(".js.flow"))return!0;let e=Ue(a);e&&(a=a.slice(e.length));let s=bs(a,0);return s!==!1&&(a=a.slice(0,s)),na.test(a)}function ha(a,t,e){let s=a(t,e),i=s.errors.find(r=>!ca.has(r.reasonCode));if(i)throw i;return s}function la({isExpression:a=!1,optionsCombinations:t}){return(e,s={})=>{if((s.parser==="babel"||s.parser==="__babel_estree")&&oa(e,s))return s.parser="babel-flow",qs.parse(e,s);let i=t;(s.__babelSourceType??Rs(s))==="script"&&(i=i.map(l=>({...l,sourceType:"script"}))),/#[[{]/.test(e)&&(i=i.map(l=>R([aa],l)));let n=/%[A-Z]/.test(e);e.includes("|>")?i=(n?[...Us,_s]:Us).flatMap(c=>i.map(u=>R([c],u))):n&&(i=i.map(l=>R([_s],l)));let o=a?Ke.parseExpression:Ke.parse,h;try{h=ms(i.map(l=>()=>ha(o,e,l)))}catch({errors:[l]}){throw be(l)}return a&&(h=ze(h,{text:e,rootMarker:s.rootMarker})),Bs(h,{parser:"babel",text:e})}}var ca=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","EmptyTypeArguments","EmptyTypeParameters","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","MixedLabeledAndUnlabeledElements","DuplicateAccessibilityModifier","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","LineTerminatorBeforeArrow","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","OptionalBindingPattern","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","DeclareFunctionHasImplementation","ConstructorClassField","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport"]),Ks=[R(["jsx"])],js=he({optionsCombinations:Ks}),$s=he({optionsCombinations:[R(["jsx","typescript"]),R(["typescript"])]}),Vs=he({isExpression:!0,optionsCombinations:[R(["jsx"])]}),zs=he({isExpression:!0,optionsCombinations:[R(["typescript"])]}),qs=he({optionsCombinations:[R(["jsx",["flow",{all:!0,enums:!0}],"flowComments"])]}),pa=he({optionsCombinations:Ks.map(a=>R(["estree"],a))}),Hs={babel:js,"babel-flow":qs,"babel-ts":$s,__js_expression:Vs,__ts_expression:zs,__vue_expression:Vs,__vue_ts_expression:zs,__vue_event_binding:js,__vue_ts_event_binding:$s,__babel_estree:pa};var Js=qe(kt(),1);function Xs(a={}){let{allowComments:t=!0}=a;return function(s){let i;try{i=(0,Js.parseExpression)(s,{tokens:!0,ranges:!0})}catch(r){throw(r==null?void 0:r.reasonCode)==="MissingPlugin"||(r==null?void 0:r.reasonCode)==="MissingOneOfPlugins"?be({message:"Unexpected token",loc:r.loc}):be(r)}if(!t&&Y(i.comments))throw H(i.comments[0],"Comment");return le(i),ze(i,{type:"JsonRoot",text:s})}}function H(a,t){let[e,s]=[a.loc.start,a.loc.end].map(({line:i,column:r})=>({line:i,column:r+1}));return $e(`${t} is not allowed in JSON.`,{loc:{start:e,end:s}})}function le(a){switch(a.type){case"ArrayExpression":for(let t of a.elements)t!==null&&le(t);return;case"ObjectExpression":for(let t of a.properties)le(t);return;case"ObjectProperty":if(a.computed)throw H(a.key,"Computed key");if(a.shorthand)throw H(a.key,"Shorthand property");a.key.type!=="Identifier"&&le(a.key),le(a.value);return;case"UnaryExpression":{let{operator:t,argument:e}=a;if(t!=="+"&&t!=="-")throw H(a,`Operator '${a.operator}'`);if(e.type==="NumericLiteral"||e.type==="Identifier"&&(e.name==="Infinity"||e.name==="NaN"))return;throw H(e,`Operator '${t}' before '${e.type}'`)}case"Identifier":if(a.name!=="Infinity"&&a.name!=="NaN"&&a.name!=="undefined")throw H(a,`Identifier '${a.name}'`);return;case"TemplateLiteral":if(Y(a.expressions))throw H(a.expressions[0],"'TemplateLiteral' with expression");for(let t of a.quasis)le(t);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw H(a,`'${a.type}'`)}}var Ws=Xs(),ua={json:oe({parse:Ws,hasPragma(){return!0}}),json5:oe(Ws),"json-stringify":oe({parse:Xs({allowComments:!1}),astFormat:"estree-json"})},Gs=ua;var da={...Hs,...Gs};return ii(fa);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/babel.mjs b/node_modules/prettier/plugins/babel.mjs index 4e3114c..9a01cf1 100644 --- a/node_modules/prettier/plugins/babel.mjs +++ b/node_modules/prettier/plugins/babel.mjs @@ -1,16 +1,16 @@ -var Ri=Object.create;var ct=Object.defineProperty;var Ui=Object.getOwnPropertyDescriptor;var ji=Object.getOwnPropertyNames;var $i=Object.getPrototypeOf,Vi=Object.prototype.hasOwnProperty;var ps=(a,t)=>()=>(t||a((t={exports:{}}).exports,t),t.exports),zi=(a,t)=>{for(var e in t)ct(a,e,{get:t[e],enumerable:!0})},Ki=(a,t,e,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ji(t))!Vi.call(a,i)&&i!==e&&ct(a,i,{get:()=>t[i],enumerable:!(s=Ui(t,i))||s.enumerable});return a};var pt=(a,t,e)=>(e=a!=null?Ri($i(a)):{},Ki(t||!a||!a.__esModule?ct(e,"default",{value:a,enumerable:!0}):e,a));var rs=ps(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});function He(a,t){if(a==null)return{};var e={},s=Object.keys(a),i,r;for(r=0;r=0)&&(e[i]=a[i]);return e}var B=class{constructor(t,e,s){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=e,this.index=s}},fe=class{constructor(t,e){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=e}};function L(a,t){let{line:e,column:s,index:i}=a;return new B(e,s+t,i+t)}var Pt={SyntaxError:"BABEL_PARSER_SYNTAX_ERROR",SourceTypeModuleError:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"},qi=(a,t=a.length-1)=>({get(){return a.reduce((e,s)=>e[s],this)},set(e){a.reduce((s,i,r)=>r===t?s[i]=e:s[i],this)}}),Hi=(a,t,e)=>Object.keys(e).map(s=>[s,e[s]]).filter(([,s])=>!!s).map(([s,i])=>[s,typeof i=="function"?{value:i,enumerable:!1}:typeof i.reflect=="string"?Object.assign({},i,qi(i.reflect.split("."))):i]).reduce((s,[i,r])=>Object.defineProperty(s,i,Object.assign({configurable:!0},r)),Object.assign(new a,t)),Wi={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:Pt.SourceTypeModuleError},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:Pt.SourceTypeModuleError}},us={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},Tt=({type:a,prefix:t})=>a==="UpdateExpression"?us.UpdateExpression[String(t)]:us[a],Ji={AccessorIsGenerator:({kind:a})=>`A ${a}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:a})=>`Missing initializer in ${a} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:a})=>`\`${a}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:a,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`. +var Ys=Object.create;var Ke=Object.defineProperty;var Qs=Object.getOwnPropertyDescriptor;var Zs=Object.getOwnPropertyNames;var ei=Object.getPrototypeOf,ti=Object.prototype.hasOwnProperty;var Bt=(a,t)=>()=>(t||a((t={exports:{}}).exports,t),t.exports),si=(a,t)=>{for(var e in t)Ke(a,e,{get:t[e],enumerable:!0})},ii=(a,t,e,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Zs(t))!ti.call(a,i)&&i!==e&&Ke(a,i,{get:()=>t[i],enumerable:!(s=Qs(t,i))||s.enumerable});return a};var qe=(a,t,e)=>(e=a!=null?Ys(ei(a)):{},ii(t||!a||!a.__esModule?Ke(e,"default",{value:a,enumerable:!0}):e,a));var kt=Bt(Re=>{"use strict";function Le(a,t){if(a==null)return{};var e={},s=Object.keys(a),i,r;for(r=0;r=0)&&(e[i]=a[i]);return e}var F=class{constructor(t,e,s){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=e,this.index=s}},ie=class{constructor(t,e){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=e}};function L(a,t){let{line:e,column:s,index:i}=a;return new F(e,s+t,i+t)}var Ye={SyntaxError:"BABEL_PARSER_SYNTAX_ERROR",SourceTypeModuleError:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"},ri=(a,t=a.length-1)=>({get(){return a.reduce((e,s)=>e[s],this)},set(e){a.reduce((s,i,r)=>r===t?s[i]=e:s[i],this)}}),ai=(a,t,e)=>Object.keys(e).map(s=>[s,e[s]]).filter(([,s])=>!!s).map(([s,i])=>[s,typeof i=="function"?{value:i,enumerable:!1}:typeof i.reflect=="string"?Object.assign({},i,ri(i.reflect.split("."))):i]).reduce((s,[i,r])=>Object.defineProperty(s,i,Object.assign({configurable:!0},r)),Object.assign(new a,t)),ni={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:Ye.SourceTypeModuleError},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:Ye.SourceTypeModuleError}},Rt={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},Qe=({type:a,prefix:t})=>a==="UpdateExpression"?Rt.UpdateExpression[String(t)]:Rt[a],oi={AccessorIsGenerator:({kind:a})=>`A ${a}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:a})=>`Missing initializer in ${a} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:a})=>`\`${a}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:a,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`. - Did you mean \`export { '${a}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:a})=>`'${a==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:a})=>`Unsyntactic ${a==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:({importName:a})=>`A string literal cannot be used as an imported binding. -- Did you mean \`import { "${a}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:a})=>`\`import()\` requires exactly ${a===1?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:a})=>`Expected number in radix ${a}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:a})=>`Escape sequence in keyword ${a}.`,InvalidIdentifier:({identifierName:a})=>`Invalid identifier ${a}.`,InvalidLhs:({ancestor:a})=>`Invalid left-hand side in ${Tt(a)}.`,InvalidLhsBinding:({ancestor:a})=>`Binding invalid left-hand side in ${Tt(a)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:a})=>`Unexpected character '${a}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:a})=>`Private name #${a} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:a})=>`Label '${a}' is already declared.`,LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:a})=>`This experimental syntax requires enabling the parser plugin: ${a.map(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:a})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${a.map(t=>JSON.stringify(t)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:a})=>`Duplicate key "${a}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:a})=>`An export name cannot include a lone surrogate, found '\\u${a.toString(16)}'.`,ModuleExportUndefined:({localName:a})=>`Export '${a}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:a})=>`Private names are only allowed in property accesses (\`obj.#${a}\`) or in \`in\` expressions (\`#${a} in obj\`).`,PrivateNameRedeclaration:({identifierName:a})=>`Duplicate private name #${a}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:a})=>`Unexpected keyword '${a}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:a})=>`Unexpected reserved word '${a}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:a,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${a?`, expected "${a}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:a,onlyValidPropertyName:t})=>`The only valid meta property for ${a} is ${a}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:a})=>`Identifier '${a}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},Xi={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:a})=>`Assigning to '${a}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:a})=>`Binding '${a}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},Gi=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),Yi={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:a})=>`Invalid topic token ${a}. In order to use ${a} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${a}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:a})=>`Hack-style pipe body cannot be an unparenthesized ${Tt({type:a})}; please wrap it in parentheses.`,PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},Qi=["toMessage"],Zi=["message"];function er(a){let{toMessage:t}=a,e=He(a,Qi);return function s({loc:i,details:r}){return Hi(SyntaxError,Object.assign({},e,{loc:i}),{clone(n={}){let o=n.loc||{};return s({loc:new B("line"in o?o.line:this.loc.line,"column"in o?o.column:this.loc.column,"index"in o?o.index:this.loc.index),details:Object.assign({},this.details,n.details)})},details:{value:r,enumerable:!1},message:{get(){return`${t(this.details)} (${this.loc.line}:${this.loc.column})`},set(n){Object.defineProperty(this,"message",{value:n})}},pos:{reflect:"loc.index",enumerable:!0},missingPlugin:"missingPlugin"in r&&{reflect:"details.missingPlugin",enumerable:!0}})}}function V(a,t){if(Array.isArray(a))return s=>V(s,a[0]);let e={};for(let s of Object.keys(a)){let i=a[s],r=typeof i=="string"?{message:()=>i}:typeof i=="function"?{message:i}:i,{message:n}=r,o=He(r,Zi),h=typeof n=="string"?()=>n:n;e[s]=er(Object.assign({code:Pt.SyntaxError,reasonCode:s,toMessage:h},t?{syntaxPlugin:t}:{},o))}return e}var p=Object.assign({},V(Wi),V(Ji),V(Xi),V`pipelineOperator`(Yi)),{defineProperty:tr}=Object,fs=(a,t)=>tr(a,t,{enumerable:!1,value:a[t]});function Ae(a){return a.loc.start&&fs(a.loc.start,"index"),a.loc.end&&fs(a.loc.end,"index"),a}var sr=a=>class extends a{parse(){let e=Ae(super.parse());return this.options.tokens&&(e.tokens=e.tokens.map(Ae)),e}parseRegExpLiteral({pattern:e,flags:s}){let i=null;try{i=new RegExp(e,s)}catch{}let r=this.estreeParseLiteral(i);return r.regex={pattern:e,flags:s},r}parseBigIntLiteral(e){let s;try{s=BigInt(e)}catch{s=null}let i=this.estreeParseLiteral(s);return i.bigint=String(i.value||e),i}parseDecimalLiteral(e){let i=this.estreeParseLiteral(null);return i.decimal=String(i.value||e),i}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}directiveToStmt(e){let s=e.value;delete e.value,s.type="Literal",s.raw=s.extra.raw,s.value=s.extra.expressionValue;let i=e;return i.type="ExpressionStatement",i.expression=s,i.directive=s.extra.rawValue,delete s.extra,i}initFunction(e,s){super.initFunction(e,s),e.expression=!1}checkDeclaration(e){e!=null&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var s;return e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&!((s=e.expression.extra)!=null&&s.parenthesized)}parseBlockBody(e,s,i,r,n){super.parseBlockBody(e,s,i,r,n);let o=e.directives.map(h=>this.directiveToStmt(h));e.body=o.concat(e.body),delete e.directives}pushClassMethod(e,s,i,r,n,o){this.parseMethod(s,i,r,n,o,"ClassMethod",!0),s.typeParameters&&(s.value.typeParameters=s.typeParameters,delete s.typeParameters),e.body.push(s)}parsePrivateName(){let e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){let s=super.getPrivateNameSV(e);return e=e,delete e.id,e.name=s,e.type="PrivateIdentifier",e}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?e.type==="PrivateIdentifier":super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,s){let i=super.parseLiteral(e,s);return i.raw=i.extra.raw,delete i.extra,i}parseFunctionBody(e,s,i=!1){super.parseFunctionBody(e,s,i),e.expression=e.body.type!=="BlockStatement"}parseMethod(e,s,i,r,n,o,h=!1){let l=this.startNode();return l.kind=e.kind,l=super.parseMethod(l,s,i,r,n,o,h),l.type="FunctionExpression",delete l.kind,e.value=l,o==="ClassPrivateMethod"&&(e.computed=!1),this.finishNode(e,"MethodDefinition")}parseClassProperty(...e){let s=super.parseClassProperty(...e);return this.getPluginOption("estree","classFeatures")&&(s.type="PropertyDefinition"),s}parseClassPrivateProperty(...e){let s=super.parseClassPrivateProperty(...e);return this.getPluginOption("estree","classFeatures")&&(s.type="PropertyDefinition",s.computed=!1),s}parseObjectMethod(e,s,i,r,n){let o=super.parseObjectMethod(e,s,i,r,n);return o&&(o.type="Property",o.kind==="method"&&(o.kind="init"),o.shorthand=!1),o}parseObjectProperty(e,s,i,r){let n=super.parseObjectProperty(e,s,i,r);return n&&(n.kind="init",n.type="Property"),n}isValidLVal(e,s,i){return e==="Property"?"value":super.isValidLVal(e,s,i)}isAssignable(e,s){return e!=null&&this.isObjectProperty(e)?this.isAssignable(e.value,s):super.isAssignable(e,s)}toAssignable(e,s=!1){if(e!=null&&this.isObjectProperty(e)){let{key:i,value:r}=e;this.isPrivateName(i)&&this.classScope.usePrivateName(this.getPrivateNameSV(i),i.loc.start),this.toAssignable(r,s)}else super.toAssignable(e,s)}toAssignableObjectExpressionProp(e,s,i){e.kind==="get"||e.kind==="set"?this.raise(p.PatternHasAccessor,{at:e.key}):e.method?this.raise(p.PatternHasMethod,{at:e.key}):super.toAssignableObjectExpressionProp(e,s,i)}finishCallExpression(e,s){let i=super.finishCallExpression(e,s);if(i.callee.type==="Import"){if(i.type="ImportExpression",i.source=i.arguments[0],this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")){var r;i.attributes=(r=i.arguments[1])!=null?r:null}delete i.arguments,delete i.callee}return i}toReferencedArguments(e){e.type!=="ImportExpression"&&super.toReferencedArguments(e)}parseExport(e,s){let i=this.state.lastTokStartLoc,r=super.parseExport(e,s);switch(r.type){case"ExportAllDeclaration":r.exported=null;break;case"ExportNamedDeclaration":r.specifiers.length===1&&r.specifiers[0].type==="ExportNamespaceSpecifier"&&(r.type="ExportAllDeclaration",r.exported=r.specifiers[0].exported,delete r.specifiers);case"ExportDefaultDeclaration":{var n;let{declaration:o}=r;(o==null?void 0:o.type)==="ClassDeclaration"&&((n=o.decorators)==null?void 0:n.length)>0&&o.start===r.start&&this.resetStartLocation(r,i)}break}return r}parseSubscript(e,s,i,r){let n=super.parseSubscript(e,s,i,r);if(r.optionalChainMember){if((n.type==="OptionalMemberExpression"||n.type==="OptionalCallExpression")&&(n.type=n.type.substring(8)),r.stop){let o=this.startNodeAtNode(n);return o.expression=n,this.finishNode(o,"ChainExpression")}}else(n.type==="MemberExpression"||n.type==="CallExpression")&&(n.optional=!1);return n}hasPropertyAsPrivateName(e){return e.type==="ChainExpression"&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return e.type==="Property"&&e.kind==="init"&&!e.method}isObjectMethod(e){return e.method||e.kind==="get"||e.kind==="set"}finishNodeAt(e,s,i){return Ae(super.finishNodeAt(e,s,i))}resetStartLocation(e,s){super.resetStartLocation(e,s),Ae(e)}resetEndLocation(e,s=this.state.lastTokEndLoc){super.resetEndLocation(e,s),Ae(e)}},Z=class{constructor(t,e){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!e}},E={brace:new Z("{"),j_oTag:new Z("...",!0)};E.template=new Z("`",!0);var g=!0,m=!0,ut=!0,Se=!0,q=!0,ir=!0,We=class{constructor(t,e={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.rightAssociative=!!e.rightAssociative,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop!=null?e.binop:null,this.updateContext=null}},zt=new Map;function A(a,t={}){t.keyword=a;let e=P(a,t);return zt.set(a,e),e}function v(a,t){return P(a,{beforeExpr:g,binop:t})}var Ie=-1,j=[],Kt=[],qt=[],Ht=[],Wt=[],Jt=[];function P(a,t={}){var e,s,i,r;return++Ie,Kt.push(a),qt.push((e=t.binop)!=null?e:-1),Ht.push((s=t.beforeExpr)!=null?s:!1),Wt.push((i=t.startsExpr)!=null?i:!1),Jt.push((r=t.prefix)!=null?r:!1),j.push(new We(a,t)),Ie}function b(a,t={}){var e,s,i,r;return++Ie,zt.set(a,Ie),Kt.push(a),qt.push((e=t.binop)!=null?e:-1),Ht.push((s=t.beforeExpr)!=null?s:!1),Wt.push((i=t.startsExpr)!=null?i:!1),Jt.push((r=t.prefix)!=null?r:!1),j.push(new We("name",t)),Ie}var rr={bracketL:P("[",{beforeExpr:g,startsExpr:m}),bracketHashL:P("#[",{beforeExpr:g,startsExpr:m}),bracketBarL:P("[|",{beforeExpr:g,startsExpr:m}),bracketR:P("]"),bracketBarR:P("|]"),braceL:P("{",{beforeExpr:g,startsExpr:m}),braceBarL:P("{|",{beforeExpr:g,startsExpr:m}),braceHashL:P("#{",{beforeExpr:g,startsExpr:m}),braceR:P("}"),braceBarR:P("|}"),parenL:P("(",{beforeExpr:g,startsExpr:m}),parenR:P(")"),comma:P(",",{beforeExpr:g}),semi:P(";",{beforeExpr:g}),colon:P(":",{beforeExpr:g}),doubleColon:P("::",{beforeExpr:g}),dot:P("."),question:P("?",{beforeExpr:g}),questionDot:P("?."),arrow:P("=>",{beforeExpr:g}),template:P("template"),ellipsis:P("...",{beforeExpr:g}),backQuote:P("`",{startsExpr:m}),dollarBraceL:P("${",{beforeExpr:g,startsExpr:m}),templateTail:P("...`",{startsExpr:m}),templateNonTail:P("...${",{beforeExpr:g,startsExpr:m}),at:P("@"),hash:P("#",{startsExpr:m}),interpreterDirective:P("#!..."),eq:P("=",{beforeExpr:g,isAssign:Se}),assign:P("_=",{beforeExpr:g,isAssign:Se}),slashAssign:P("_=",{beforeExpr:g,isAssign:Se}),xorAssign:P("_=",{beforeExpr:g,isAssign:Se}),moduloAssign:P("_=",{beforeExpr:g,isAssign:Se}),incDec:P("++/--",{prefix:q,postfix:ir,startsExpr:m}),bang:P("!",{beforeExpr:g,prefix:q,startsExpr:m}),tilde:P("~",{beforeExpr:g,prefix:q,startsExpr:m}),doubleCaret:P("^^",{startsExpr:m}),doubleAt:P("@@",{startsExpr:m}),pipeline:v("|>",0),nullishCoalescing:v("??",1),logicalOR:v("||",1),logicalAND:v("&&",2),bitwiseOR:v("|",3),bitwiseXOR:v("^",4),bitwiseAND:v("&",5),equality:v("==/!=/===/!==",6),lt:v("/<=/>=",7),gt:v("/<=/>=",7),relational:v("/<=/>=",7),bitShift:v("<>/>>>",8),bitShiftL:v("<>/>>>",8),bitShiftR:v("<>/>>>",8),plusMin:P("+/-",{beforeExpr:g,binop:9,prefix:q,startsExpr:m}),modulo:P("%",{binop:10,startsExpr:m}),star:P("*",{binop:10}),slash:v("/",10),exponent:P("**",{beforeExpr:g,binop:11,rightAssociative:!0}),_in:A("in",{beforeExpr:g,binop:7}),_instanceof:A("instanceof",{beforeExpr:g,binop:7}),_break:A("break"),_case:A("case",{beforeExpr:g}),_catch:A("catch"),_continue:A("continue"),_debugger:A("debugger"),_default:A("default",{beforeExpr:g}),_else:A("else",{beforeExpr:g}),_finally:A("finally"),_function:A("function",{startsExpr:m}),_if:A("if"),_return:A("return",{beforeExpr:g}),_switch:A("switch"),_throw:A("throw",{beforeExpr:g,prefix:q,startsExpr:m}),_try:A("try"),_var:A("var"),_const:A("const"),_with:A("with"),_new:A("new",{beforeExpr:g,startsExpr:m}),_this:A("this",{startsExpr:m}),_super:A("super",{startsExpr:m}),_class:A("class",{startsExpr:m}),_extends:A("extends",{beforeExpr:g}),_export:A("export"),_import:A("import",{startsExpr:m}),_null:A("null",{startsExpr:m}),_true:A("true",{startsExpr:m}),_false:A("false",{startsExpr:m}),_typeof:A("typeof",{beforeExpr:g,prefix:q,startsExpr:m}),_void:A("void",{beforeExpr:g,prefix:q,startsExpr:m}),_delete:A("delete",{beforeExpr:g,prefix:q,startsExpr:m}),_do:A("do",{isLoop:ut,beforeExpr:g}),_for:A("for",{isLoop:ut}),_while:A("while",{isLoop:ut}),_as:b("as",{startsExpr:m}),_assert:b("assert",{startsExpr:m}),_async:b("async",{startsExpr:m}),_await:b("await",{startsExpr:m}),_from:b("from",{startsExpr:m}),_get:b("get",{startsExpr:m}),_let:b("let",{startsExpr:m}),_meta:b("meta",{startsExpr:m}),_of:b("of",{startsExpr:m}),_sent:b("sent",{startsExpr:m}),_set:b("set",{startsExpr:m}),_static:b("static",{startsExpr:m}),_using:b("using",{startsExpr:m}),_yield:b("yield",{startsExpr:m}),_asserts:b("asserts",{startsExpr:m}),_checks:b("checks",{startsExpr:m}),_exports:b("exports",{startsExpr:m}),_global:b("global",{startsExpr:m}),_implements:b("implements",{startsExpr:m}),_intrinsic:b("intrinsic",{startsExpr:m}),_infer:b("infer",{startsExpr:m}),_is:b("is",{startsExpr:m}),_mixins:b("mixins",{startsExpr:m}),_proto:b("proto",{startsExpr:m}),_require:b("require",{startsExpr:m}),_satisfies:b("satisfies",{startsExpr:m}),_keyof:b("keyof",{startsExpr:m}),_readonly:b("readonly",{startsExpr:m}),_unique:b("unique",{startsExpr:m}),_abstract:b("abstract",{startsExpr:m}),_declare:b("declare",{startsExpr:m}),_enum:b("enum",{startsExpr:m}),_module:b("module",{startsExpr:m}),_namespace:b("namespace",{startsExpr:m}),_interface:b("interface",{startsExpr:m}),_type:b("type",{startsExpr:m}),_opaque:b("opaque",{startsExpr:m}),name:P("name",{startsExpr:m}),string:P("string",{startsExpr:m}),num:P("num",{startsExpr:m}),bigint:P("bigint",{startsExpr:m}),decimal:P("decimal",{startsExpr:m}),regexp:P("regexp",{startsExpr:m}),privateName:P("#name",{startsExpr:m}),eof:P("eof"),jsxName:P("jsxName"),jsxText:P("jsxText",{beforeExpr:!0}),jsxTagStart:P("jsxTagStart",{startsExpr:!0}),jsxTagEnd:P("jsxTagEnd"),placeholder:P("%%",{startsExpr:!0})};function S(a){return a>=93&&a<=130}function ar(a){return a<=92}function M(a){return a>=58&&a<=130}function ks(a){return a>=58&&a<=134}function nr(a){return Ht[a]}function gt(a){return Wt[a]}function or(a){return a>=29&&a<=33}function ds(a){return a>=127&&a<=129}function hr(a){return a>=90&&a<=92}function Xt(a){return a>=58&&a<=92}function lr(a){return a>=39&&a<=59}function cr(a){return a===34}function pr(a){return Jt[a]}function ur(a){return a>=119&&a<=121}function fr(a){return a>=122&&a<=128}function J(a){return Kt[a]}function Ve(a){return qt[a]}function dr(a){return a===57}function Je(a){return a>=24&&a<=25}function U(a){return j[a]}j[8].updateContext=a=>{a.pop()},j[5].updateContext=j[7].updateContext=j[23].updateContext=a=>{a.push(E.brace)},j[22].updateContext=a=>{a[a.length-1]===E.template?a.pop():a.push(E.template)},j[140].updateContext=a=>{a.push(E.j_expr,E.j_oTag)};var Gt="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",vs="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F",mr=new RegExp("["+Gt+"]"),yr=new RegExp("["+Gt+vs+"]");Gt=vs=null;var Ls=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],xr=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function bt(a,t){let e=65536;for(let s=0,i=t.length;sa)return!1;if(e+=t[s+1],e>=a)return!0}return!1}function $(a){return a<65?a===36:a<=90?!0:a<97?a===95:a<=122?!0:a<=65535?a>=170&&mr.test(String.fromCharCode(a)):bt(a,Ls)}function he(a){return a<48?a===36:a<58?!0:a<65?!1:a<=90?!0:a<97?a===95:a<=122?!0:a<=65535?a>=170&&yr.test(String.fromCharCode(a)):bt(a,Ls)||bt(a,xr)}var Yt={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},Pr=new Set(Yt.keyword),Tr=new Set(Yt.strict),gr=new Set(Yt.strictBind);function Ds(a,t){return t&&a==="await"||a==="enum"}function Ms(a,t){return Ds(a,t)||Tr.has(a)}function Os(a){return gr.has(a)}function Bs(a,t){return Ms(a,t)||Os(a)}function br(a){return Pr.has(a)}function Ar(a,t,e){return a===64&&t===64&&$(e)}var Sr=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function Er(a){return Sr.has(a)}var ae=0,ne=1,z=2,Qt=4,Fs=8,Xe=16,_s=32,ee=64,Ge=128,le=256,Ue=ne|z|Ge|le,F=1,se=2,Rs=4,te=8,ze=16,Us=64,Ye=128,At=256,St=512,Zt=1024,Et=2048,Ne=4096,st=8192,js=F|se|te|Ye|st,ce=F|0|te|st,Cr=F|0|te|0,Qe=F|0|Rs|0,$s=F|0|ze|0,wr=0|se|0|Ye,Ir=0|se|0|0,Vs=F|se|te|At|st,ms=0|Zt,W=0|Us,Nr=F|0|0|Us,kr=Vs|St,vr=0|Zt,ys=0|se|0|Ne,Lr=Et,Ze=4,es=2,ts=1,ft=es|ts,Dr=es|Ze,Mr=ts|Ze,Or=es,Br=ts,dt=0,ve=class{constructor(t){this.var=new Set,this.lexical=new Set,this.functions=new Set,this.flags=t}},Le=class{constructor(t,e){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=e}get inTopLevel(){return(this.currentScope().flags&ne)>0}get inFunction(){return(this.currentVarScopeFlags()&z)>0}get allowSuper(){return(this.currentThisScopeFlags()&Xe)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&_s)>0}get inClass(){return(this.currentThisScopeFlags()&ee)>0}get inClassAndNotInNonArrowFunction(){let t=this.currentThisScopeFlags();return(t&ee)>0&&(t&z)===0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(e&Ge)return!0;if(e&(Ue|ee))return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&z)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new ve(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(t.flags&(z|Ge)||!this.parser.inModule&&t.flags&ne)}declareName(t,e,s){let i=this.currentScope();if(e&te||e&ze)this.checkRedeclarationInScope(i,t,e,s),e&ze?i.functions.add(t):i.lexical.add(t),e&te&&this.maybeExportDefined(i,t);else if(e&Rs)for(let r=this.scopeStack.length-1;r>=0&&(i=this.scopeStack[r],this.checkRedeclarationInScope(i,t,e,s),i.var.add(t),this.maybeExportDefined(i,t),!(i.flags&Ue));--r);this.parser.inModule&&i.flags&ne&&this.undefinedExports.delete(t)}maybeExportDefined(t,e){this.parser.inModule&&t.flags&ne&&this.undefinedExports.delete(e)}checkRedeclarationInScope(t,e,s,i){this.isRedeclaredInScope(t,e,s)&&this.parser.raise(p.VarRedeclaration,{at:i,identifierName:e})}isRedeclaredInScope(t,e,s){return s&F?s&te?t.lexical.has(e)||t.functions.has(e)||t.var.has(e):s&ze?t.lexical.has(e)||!this.treatFunctionsAsVarInScope(t)&&t.var.has(e):t.lexical.has(e)&&!(t.flags&Fs&&t.lexical.values().next().value===e)||!this.treatFunctionsAsVarInScope(t)&&t.functions.has(e):!1}checkLocalExport(t){let{name:e}=t,s=this.scopeStack[0];!s.lexical.has(e)&&!s.var.has(e)&&!s.functions.has(e)&&this.undefinedExports.set(e,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(e&Ue)return e}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(e&(Ue|ee)&&!(e&Qt))return e}}},Ct=class extends ve{constructor(...t){super(...t),this.declareFunctions=new Set}},wt=class extends Le{createScope(t){return new Ct(t)}declareName(t,e,s){let i=this.currentScope();if(e&Et){this.checkRedeclarationInScope(i,t,e,s),this.maybeExportDefined(i,t),i.declareFunctions.add(t);return}super.declareName(t,e,s)}isRedeclaredInScope(t,e,s){return super.isRedeclaredInScope(t,e,s)?!0:s&Et?!t.declareFunctions.has(e)&&(t.lexical.has(e)||t.functions.has(e)):!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}},It=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(t){if(typeof t=="string")return this.plugins.has(t);{let[e,s]=t;if(!this.hasPlugin(e))return!1;let i=this.plugins.get(e);for(let r of Object.keys(s))if((i==null?void 0:i[r])!==s[r])return!1;return!0}}getPluginOption(t,e){var s;return(s=this.plugins.get(t))==null?void 0:s[e]}};function zs(a,t){a.trailingComments===void 0?a.trailingComments=t:a.trailingComments.unshift(...t)}function Fr(a,t){a.leadingComments===void 0?a.leadingComments=t:a.leadingComments.unshift(...t)}function De(a,t){a.innerComments===void 0?a.innerComments=t:a.innerComments.unshift(...t)}function Ee(a,t,e){let s=null,i=t.length;for(;s===null&&i>0;)s=t[--i];s===null||s.start>e.start?De(a,e.comments):zs(s,e.comments)}var Nt=class extends It{addComment(t){this.filename&&(t.loc.filename=this.filename),this.state.comments.push(t)}processComment(t){let{commentStack:e}=this.state,s=e.length;if(s===0)return;let i=s-1,r=e[i];r.start===t.end&&(r.leadingNode=t,i--);let{start:n}=t;for(;i>=0;i--){let o=e[i],h=o.end;if(h>n)o.containingNode=t,this.finalizeComment(o),e.splice(i,1);else{h===n&&(o.trailingNode=t);break}}}finalizeComment(t){let{comments:e}=t;if(t.leadingNode!==null||t.trailingNode!==null)t.leadingNode!==null&&zs(t.leadingNode,e),t.trailingNode!==null&&Fr(t.trailingNode,e);else{let{containingNode:s,start:i}=t;if(this.input.charCodeAt(i-1)===44)switch(s.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Ee(s,s.properties,t);break;case"CallExpression":case"OptionalCallExpression":Ee(s,s.arguments,t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Ee(s,s.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Ee(s,s.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":Ee(s,s.specifiers,t);break;default:De(s,e)}else De(s,e)}}finalizeRemainingComments(){let{commentStack:t}=this.state;for(let e=t.length-1;e>=0;e--)this.finalizeComment(t[e]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(t){let{commentStack:e}=this.state,{length:s}=e;if(s===0)return;let i=e[s-1];i.leadingNode===t&&(i.leadingNode=null)}resetPreviousIdentifierLeadingComments(t){let{commentStack:e}=this.state,{length:s}=e;s!==0&&(e[s-1].trailingNode===t?e[s-1].trailingNode=null:s>=2&&e[s-2].trailingNode===t&&(e[s-2].trailingNode=null))}takeSurroundingComments(t,e,s){let{commentStack:i}=this.state,r=i.length;if(r===0)return;let n=r-1;for(;n>=0;n--){let o=i[n],h=o.end;if(o.start===s)o.leadingNode=t;else if(h===e)o.trailingNode=t;else if(h=48&&t<=57},Ps={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},$e={bin:a=>a===48||a===49,oct:a=>a>=48&&a<=55,dec:a=>a>=48&&a<=57,hex:a=>a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102};function Ts(a,t,e,s,i,r){let n=e,o=s,h=i,l="",c=null,u=e,{length:d}=t;for(;;){if(e>=d){r.unterminated(n,o,h),l+=t.slice(u,e);break}let f=t.charCodeAt(e);if(Ur(a,f,t,e)){l+=t.slice(u,e);break}if(f===92){l+=t.slice(u,e);let x=jr(t,e,s,i,a==="template",r);x.ch===null&&!c?c={pos:e,lineStart:s,curLine:i}:l+=x.ch,{pos:e,lineStart:s,curLine:i}=x,u=e}else f===8232||f===8233?(++e,++i,s=e):f===10||f===13?a==="template"?(l+=t.slice(u,e)+` -`,++e,f===13&&t.charCodeAt(e)===10&&++e,++i,u=s=e):r.unterminated(n,o,h):++e}return{pos:e,str:l,firstInvalidLoc:c,lineStart:s,curLine:i,containsInvalid:!!c}}function Ur(a,t,e,s){return a==="template"?t===96||t===36&&e.charCodeAt(s+1)===123:t===(a==="double"?34:39)}function jr(a,t,e,s,i,r){let n=!i;t++;let o=l=>({pos:t,ch:l,lineStart:e,curLine:s}),h=a.charCodeAt(t++);switch(h){case 110:return o(` -`);case 114:return o("\r");case 120:{let l;return{code:l,pos:t}=vt(a,t,e,s,2,!1,n,r),o(l===null?null:String.fromCharCode(l))}case 117:{let l;return{code:l,pos:t}=Hs(a,t,e,s,n,r),o(l===null?null:String.fromCodePoint(l))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:a.charCodeAt(t)===10&&++t;case 10:e=t,++s;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);r.strictNumericEscape(t-1,e,s);default:if(h>=48&&h<=55){let l=t-1,u=a.slice(l,t+2).match(/^[0-7]+/)[0],d=parseInt(u,8);d>255&&(u=u.slice(0,-1),d=parseInt(u,8)),t+=u.length-1;let f=a.charCodeAt(t);if(u!=="0"||f===56||f===57){if(i)return o(null);r.strictNumericEscape(l,e,s)}return o(String.fromCharCode(d))}return o(String.fromCharCode(h))}}function vt(a,t,e,s,i,r,n,o){let h=t,l;return{n:l,pos:t}=qs(a,t,e,s,16,i,r,!1,o,!n),l===null&&(n?o.invalidEscapeSequence(h,e,s):t=h-1),{code:l,pos:t}}function qs(a,t,e,s,i,r,n,o,h,l){let c=t,u=i===16?Ps.hex:Ps.decBinOct,d=i===16?$e.hex:i===10?$e.dec:i===8?$e.oct:$e.bin,f=!1,x=0;for(let I=0,C=r??1/0;I=97?N=w-97+10:w>=65?N=w-65+10:Rr(w)?N=w-48:N=1/0,N>=i){if(N<=9&&l)return{n:null,pos:t};if(N<=9&&h.invalidDigit(t,e,s,i))N=0;else if(n)N=0,f=!0;else break}++t,x=x*i+N}return t===c||r!=null&&t-c!==r||f?{n:null,pos:t}:{n:x,pos:t}}function Hs(a,t,e,s,i,r){let n=a.charCodeAt(t),o;if(n===123){if(++t,{code:o,pos:t}=vt(a,t,e,s,a.indexOf("}",t)-t,!0,i,r),++t,o!==null&&o>1114111)if(i)r.invalidCodePoint(t,e,s);else return{code:null,pos:t}}else({code:o,pos:t}=vt(a,t,e,s,4,!1,i,r));return{code:o,pos:t}}var $r=["at"],Vr=["at"];function Ce(a,t,e){return new B(e,a-t,a)}var zr=new Set([103,109,115,105,121,117,100,118]),O=class{constructor(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new fe(t.startLoc,t.endLoc)}},Lt=class extends Nt{constructor(t,e){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(s,i,r,n)=>this.options.errorRecovery?(this.raise(p.InvalidDigit,{at:Ce(s,i,r),radix:n}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(p.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(p.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(p.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(p.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(s,i,r)=>{this.recordStrictModeErrors(p.StrictNumericEscape,{at:Ce(s,i,r)})},unterminated:(s,i,r)=>{throw this.raise(p.UnterminatedString,{at:Ce(s-1,i,r)})}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(p.StrictNumericEscape),unterminated:(s,i,r)=>{throw this.raise(p.UnterminatedTemplate,{at:Ce(s,i,r)})}}),this.state=new kt,this.state.init(t),this.input=e,this.length=e.length,this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new O(this.state)),this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return this.match(t)?(this.next(),!0):!1}match(t){return this.state.type===t}createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){let t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let e=this.state;return this.state=t,e}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return mt.lastIndex=t,mt.test(this.input)?mt.lastIndex:t}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(t){return Ke.lastIndex=t,Ke.test(this.input)?Ke.lastIndex:t}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(t){let e=this.input.charCodeAt(t);if((e&64512)===55296&&++tthis.raise(e,{at:s})),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(137);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(t){let e;this.isLookahead||(e=this.state.curPosition());let s=this.state.pos,i=this.input.indexOf(t,s+2);if(i===-1)throw this.raise(p.UnterminatedComment,{at:this.state.curPosition()});for(this.state.pos=i+t.length,je.lastIndex=s+2;je.test(this.input)&&je.lastIndex<=i;)++this.state.curLine,this.state.lineStart=je.lastIndex;if(this.isLookahead)return;let r={type:"CommentBlock",value:this.input.slice(s+2,i),start:s,end:i+t.length,loc:new fe(e,this.state.curPosition())};return this.options.tokens&&this.pushToken(r),r}skipLineComment(t){let e=this.state.pos,s;this.isLookahead||(s=this.state.curPosition());let i=this.input.charCodeAt(this.state.pos+=t);if(this.state.post)){let r=this.skipLineComment(3);r!==void 0&&(this.addComment(r),this.options.attachComment&&e.push(r))}else break e}else if(s===60&&!this.inModule&&this.options.annexB){let i=this.state.pos;if(this.input.charCodeAt(i+1)===33&&this.input.charCodeAt(i+2)===45&&this.input.charCodeAt(i+3)===45){let r=this.skipLineComment(4);r!==void 0&&(this.addComment(r),this.options.attachComment&&e.push(r))}else break e}else break e}}if(e.length>0){let s=this.state.pos,i={start:t,end:s,comments:e,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(i)}}finishToken(t,e){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let s=this.state.type;this.state.type=t,this.state.value=e,this.isLookahead||this.updateContext(s)}replaceToken(t){this.state.type=t,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let t=this.state.pos+1,e=this.codePointAtPos(t);if(e>=48&&e<=57)throw this.raise(p.UnexpectedDigitAfterHash,{at:this.state.curPosition()});if(e===123||e===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(e===123?p.RecordExpressionHashIncorrectStartSyntaxType:p.TupleExpressionHashIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,e===123?this.finishToken(7):this.finishToken(1)}else $(e)?(++this.state.pos,this.finishToken(136,this.readWord1(e))):e===92?(++this.state.pos,this.finishToken(136,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let t=this.input.charCodeAt(this.state.pos+1);if(t>=48&&t<=57){this.readNumber(!0);return}t===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let t=this.input.charCodeAt(this.state.pos+1);if(t!==33)return!1;let e=this.state.pos;for(this.state.pos+=1;!ke(t)&&++this.state.pos=48&&e<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(t){switch(t){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(p.TupleExpressionBarIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(p.RecordExpressionBarIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let e=this.input.charCodeAt(this.state.pos+1);if(e===120||e===88){this.readRadixNumber(16);return}if(e===111||e===79){this.readRadixNumber(8);return}if(e===98||e===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(t);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(t);return;case 124:case 38:this.readToken_pipe_amp(t);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(t);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(t);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if($(t)){this.readWord(t);return}}throw this.raise(p.InvalidOrUnexpectedToken,{at:this.state.curPosition(),unexpected:String.fromCodePoint(t)})}finishOp(t,e){let s=this.input.slice(this.state.pos,this.state.pos+e);this.state.pos+=e,this.finishToken(t,s)}readRegexp(){let t=this.state.startLoc,e=this.state.start+1,s,i,{pos:r}=this.state;for(;;++r){if(r>=this.length)throw this.raise(p.UnterminatedRegExp,{at:L(t,1)});let l=this.input.charCodeAt(r);if(ke(l))throw this.raise(p.UnterminatedRegExp,{at:L(t,1)});if(s)s=!1;else{if(l===91)i=!0;else if(l===93&&i)i=!1;else if(l===47&&!i)break;s=l===92}}let n=this.input.slice(e,r);++r;let o="",h=()=>L(t,r+2-e);for(;r=2&&this.input.charCodeAt(e)===48;if(l){let f=this.input.slice(e,this.state.pos);if(this.recordStrictModeErrors(p.StrictOctalLiteral,{at:s}),!this.state.strict){let x=f.indexOf("_");x>0&&this.raise(p.ZeroDigitNumericSeparator,{at:L(s,x)})}h=l&&!/[89]/.test(f)}let c=this.input.charCodeAt(this.state.pos);if(c===46&&!h&&(++this.state.pos,this.readInt(10),i=!0,c=this.input.charCodeAt(this.state.pos)),(c===69||c===101)&&!h&&(c=this.input.charCodeAt(++this.state.pos),(c===43||c===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(p.InvalidOrMissingExponent,{at:s}),i=!0,o=!0,c=this.input.charCodeAt(this.state.pos)),c===110&&((i||l)&&this.raise(p.InvalidBigIntLiteral,{at:s}),++this.state.pos,r=!0),c===109&&(this.expectPlugin("decimal",this.state.curPosition()),(o||l)&&this.raise(p.InvalidDecimal,{at:s}),++this.state.pos,n=!0),$(this.codePointAtPos(this.state.pos)))throw this.raise(p.NumberIdentifier,{at:this.state.curPosition()});let u=this.input.slice(e,this.state.pos).replace(/[_mn]/g,"");if(r){this.finishToken(133,u);return}if(n){this.finishToken(134,u);return}let d=h?parseInt(u,8):parseFloat(u);this.finishToken(132,d)}readCodePoint(t){let{code:e,pos:s}=Hs(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,this.errorHandlers_readCodePoint);return this.state.pos=s,e}readString(t){let{str:e,pos:s,curLine:i,lineStart:r}=Ts(t===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=s+1,this.state.lineStart=r,this.state.curLine=i,this.finishToken(131,e)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let t=this.input[this.state.pos],{str:e,firstInvalidLoc:s,pos:i,curLine:r,lineStart:n}=Ts("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=i+1,this.state.lineStart=n,this.state.curLine=r,s&&(this.state.firstInvalidTemplateEscapePos=new B(s.curLine,s.pos-s.lineStart,s.pos)),this.input.codePointAt(i)===96?this.finishToken(24,s?null:t+e+"`"):(this.state.pos++,this.finishToken(25,s?null:t+e+"${"))}recordStrictModeErrors(t,{at:e}){let s=e.index;this.state.strict&&!this.state.strictErrors.has(s)?this.raise(t,{at:e}):this.state.strictErrors.set(s,[t,e])}readWord1(t){this.state.containsEsc=!1;let e="",s=this.state.pos,i=this.state.pos;for(t!==void 0&&(this.state.pos+=t<=65535?1:2);this.state.pos=0;h--){let l=o[h];if(l.loc.index===n)return o[h]=t({loc:r,details:i});if(l.loc.indexthis.hasPlugin(e)))throw this.raise(p.MissingOneOfPlugins,{at:this.state.startLoc,missingPlugin:t})}errorBuilder(t){return(e,s,i)=>{this.raise(t,{at:Ce(e,s,i)})}}},Dt=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},Mt=class{constructor(t){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Dt)}exit(){let t=this.stack.pop(),e=this.current();for(let[s,i]of Array.from(t.undefinedPrivateNames))e?e.undefinedPrivateNames.has(s)||e.undefinedPrivateNames.set(s,i):this.parser.raise(p.InvalidPrivateFieldResolution,{at:i,identifierName:s})}declarePrivateName(t,e,s){let{privateNames:i,loneAccessors:r,undefinedPrivateNames:n}=this.current(),o=i.has(t);if(e&ft){let h=o&&r.get(t);if(h){let l=h&Ze,c=e&Ze,u=h&ft,d=e&ft;o=u===d||l!==c,o||r.delete(t)}else o||r.set(t,e)}o&&this.parser.raise(p.PrivateNameRedeclaration,{at:s,identifierName:t}),i.add(t),n.delete(t)}usePrivateName(t,e){let s;for(s of this.stack)if(s.privateNames.has(t))return;s?s.undefinedPrivateNames.set(t,e):this.parser.raise(p.InvalidPrivateFieldResolution,{at:e,identifierName:t})}},Kr=0,Ws=1,ss=2,Js=3,de=class{constructor(t=Kr){this.type=void 0,this.type=t}canBeArrowParameterDeclaration(){return this.type===ss||this.type===Ws}isCertainlyParameterDeclaration(){return this.type===Js}},et=class extends de{constructor(t){super(t),this.declarationErrors=new Map}recordDeclarationError(t,{at:e}){let s=e.index;this.declarationErrors.set(s,[t,e])}clearDeclarationError(t){this.declarationErrors.delete(t)}iterateErrors(t){this.declarationErrors.forEach(t)}},Ot=class{constructor(t){this.parser=void 0,this.stack=[new de],this.parser=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,{at:e}){let s={at:e.loc.start},{stack:i}=this,r=i.length-1,n=i[r];for(;!n.isCertainlyParameterDeclaration();){if(n.canBeArrowParameterDeclaration())n.recordDeclarationError(t,s);else return;n=i[--r]}this.parser.raise(t,s)}recordArrowParameterBindingError(t,{at:e}){let{stack:s}=this,i=s[s.length-1],r={at:e.loc.start};if(i.isCertainlyParameterDeclaration())this.parser.raise(t,r);else if(i.canBeArrowParameterDeclaration())i.recordDeclarationError(t,r);else return}recordAsyncArrowParametersError({at:t}){let{stack:e}=this,s=e.length-1,i=e[s];for(;i.canBeArrowParameterDeclaration();)i.type===ss&&i.recordDeclarationError(p.AwaitBindingIdentifier,{at:t}),i=e[--s]}validateAsPattern(){let{stack:t}=this,e=t[t.length-1];e.canBeArrowParameterDeclaration()&&e.iterateErrors(([s,i])=>{this.parser.raise(s,{at:i});let r=t.length-2,n=t[r];for(;n.canBeArrowParameterDeclaration();)n.clearDeclarationError(i.index),n=t[--r]})}};function qr(){return new de(Js)}function Hr(){return new et(Ws)}function Wr(){return new et(ss)}function Xs(){return new de}var pe=0,Gs=1,it=2,Ys=4,re=8,Bt=class{constructor(){this.stacks=[]}enter(t){this.stacks.push(t)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&it)>0}get hasYield(){return(this.currentFlags()&Gs)>0}get hasReturn(){return(this.currentFlags()&Ys)>0}get hasIn(){return(this.currentFlags()&re)>0}};function qe(a,t){return(a?it:0)|(t?Gs:0)}var Ft=class extends Lt{addExtra(t,e,s,i=!0){if(!t)return;let r=t.extra=t.extra||{};i?r[e]=s:Object.defineProperty(r,e,{enumerable:i,value:s})}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,e){let s=t+e.length;if(this.input.slice(t,s)===e){let i=this.input.charCodeAt(s);return!(he(i)||(i&64512)===55296)}return!1}isLookaheadContextual(t){let e=this.nextTokenStart();return this.isUnparsedContextual(e,t)}eatContextual(t){return this.isContextual(t)?(this.next(),!0):!1}expectContextual(t,e){if(!this.eatContextual(t)){if(e!=null)throw this.raise(e,{at:this.state.startLoc});this.unexpected(null,t)}}canInsertSemicolon(){return this.match(137)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Ks.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}hasFollowingLineBreak(){return xs.lastIndex=this.state.end,xs.test(this.input)}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise(p.MissingSemicolon,{at:this.state.lastTokEndLoc})}expect(t,e){this.eat(t)||this.unexpected(e,t)}tryParse(t,e=this.state.clone()){let s={node:null};try{let i=t((r=null)=>{throw s.node=r,s});if(this.state.errors.length>e.errors.length){let r=this.state;return this.state=e,this.state.tokensLength=r.tokensLength,{node:i,error:r.errors[e.errors.length],thrown:!1,aborted:!1,failState:r}}return{node:i,error:null,thrown:!1,aborted:!1,failState:null}}catch(i){let r=this.state;if(this.state=e,i instanceof SyntaxError)return{node:null,error:i,thrown:!0,aborted:!1,failState:r};if(i===s)return{node:s.node,error:null,thrown:!1,aborted:!0,failState:r};throw i}}checkExpressionErrors(t,e){if(!t)return!1;let{shorthandAssignLoc:s,doubleProtoLoc:i,privateKeyLoc:r,optionalParametersLoc:n}=t,o=!!s||!!i||!!n||!!r;if(!e)return o;s!=null&&this.raise(p.InvalidCoverInitializedName,{at:s}),i!=null&&this.raise(p.DuplicateProto,{at:i}),r!=null&&this.raise(p.UnexpectedPrivateField,{at:r}),n!=null&&this.unexpected(n)}isLiteralPropertyName(){return ks(this.state.type)}isPrivateName(t){return t.type==="PrivateName"}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return(t.type==="MemberExpression"||t.type==="OptionalMemberExpression")&&this.isPrivateName(t.property)}isObjectProperty(t){return t.type==="ObjectProperty"}isObjectMethod(t){return t.type==="ObjectMethod"}initializeScopes(t=this.options.sourceType==="module"){let e=this.state.labels;this.state.labels=[];let s=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let i=this.inModule;this.inModule=t;let r=this.scope,n=this.getScopeHandler();this.scope=new n(this,t);let o=this.prodParam;this.prodParam=new Bt;let h=this.classScope;this.classScope=new Mt(this);let l=this.expressionScope;return this.expressionScope=new Ot(this),()=>{this.state.labels=e,this.exportedIdentifiers=s,this.inModule=i,this.scope=r,this.prodParam=o,this.classScope=h,this.expressionScope=l}}enterInitialScopes(){let t=pe;this.inModule&&(t|=it),this.scope.enter(ne),this.prodParam.enter(t)}checkDestructuringPrivate(t){let{privateKeyLoc:e}=t;e!==null&&this.expectPlugin("destructuringPrivate",e)}},ue=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}},me=class{constructor(t,e,s){this.type="",this.start=e,this.end=0,this.loc=new fe(s),t!=null&&t.options.ranges&&(this.range=[e,0]),t!=null&&t.filename&&(this.loc.filename=t.filename)}},is=me.prototype;is.__clone=function(){let a=new me(void 0,this.start,this.loc.start),t=Object.keys(this);for(let e=0,s=t.length;e`Cannot overwrite reserved type ${a}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:a,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${a} = true,\` or \`${a} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:a,enumName:t})=>`Enum member names need to be unique, but the name \`${a}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:a})=>`Enum \`${a}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:a,enumName:t})=>`Enum type \`${a}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:a})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${a}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:a,memberName:t,explicitType:e})=>`Enum \`${a}\` has type \`${e}\`, so the initializer of \`${t}\` needs to be a ${e} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:a,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${a}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:a,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${a}\`.`,EnumInvalidMemberName:({enumName:a,memberName:t,suggestion:e})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${e}\`, in enum \`${a}\`.`,EnumNumberMemberNotInitialized:({enumName:a,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${a}\`.`,EnumStringMemberInconsistentlyInitailized:({enumName:a})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${a}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:a})=>`Unexpected reserved type ${a}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of ` async () => {}`, use `async () => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:a,suggestion:t})=>`\`declare export ${a}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function Yr(a){return a.type==="DeclareExportAllDeclaration"||a.type==="DeclareExportDeclaration"&&(!a.declaration||a.declaration.type!=="TypeAlias"&&a.declaration.type!=="InterfaceDeclaration")}function gs(a){return a.importKind==="type"||a.importKind==="typeof"}var Qr={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function Zr(a,t){let e=[],s=[];for(let i=0;iclass extends a{constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return wt}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(e,s){e!==131&&e!==13&&e!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(e,s)}addComment(e){if(this.flowPragma===void 0){let s=ea.exec(e.value);if(s)if(s[1]==="flow")this.flowPragma="flow";else if(s[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(e)}flowParseTypeInitialiser(e){let s=this.state.inType;this.state.inType=!0,this.expect(e||14);let i=this.flowParseType();return this.state.inType=s,i}flowParsePredicate(){let e=this.startNode(),s=this.state.startLoc;return this.next(),this.expectContextual(108),this.state.lastTokStart>s.index+1&&this.raise(T.UnexpectedSpaceBetweenModuloChecks,{at:s}),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let e=this.state.inType;this.state.inType=!0,this.expect(14);let s=null,i=null;return this.match(54)?(this.state.inType=e,i=this.flowParsePredicate()):(s=this.flowParseType(),this.state.inType=e,this.match(54)&&(i=this.flowParsePredicate())),[s,i]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();let s=e.id=this.parseIdentifier(),i=this.startNode(),r=this.startNode();this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,this.expect(10);let n=this.flowParseFunctionTypeParams();return i.params=n.params,i.rest=n.rest,i.this=n._this,this.expect(11),[i.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.typeAnnotation=this.finishNode(i,"FunctionTypeAnnotation"),s.typeAnnotation=this.finishNode(r,"TypeAnnotation"),this.resetEndLocation(s),this.semicolon(),this.scope.declareName(e.id.name,Lr,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,s){if(this.match(80))return this.flowParseDeclareClass(e);if(this.match(68))return this.flowParseDeclareFunction(e);if(this.match(74))return this.flowParseDeclareVariable(e);if(this.eatContextual(125))return this.match(16)?this.flowParseDeclareModuleExports(e):(s&&this.raise(T.NestedDeclareModule,{at:this.state.lastTokStartLoc}),this.flowParseDeclareModule(e));if(this.isContextual(128))return this.flowParseDeclareTypeAlias(e);if(this.isContextual(129))return this.flowParseDeclareOpaqueType(e);if(this.isContextual(127))return this.flowParseDeclareInterface(e);if(this.match(82))return this.flowParseDeclareExportDeclaration(e,s);this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,Qe,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(ae),this.match(131)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();let s=e.body=this.startNode(),i=s.body=[];for(this.expect(5);!this.match(8);){let o=this.startNode();this.match(83)?(this.next(),!this.isContextual(128)&&!this.match(87)&&this.raise(T.InvalidNonTypeImportInDeclareModule,{at:this.state.lastTokStartLoc}),super.parseImport(o)):(this.expectContextual(123,T.UnsupportedStatementInDeclareModule),o=this.flowParseDeclare(o,!0)),i.push(o)}this.scope.exit(),this.expect(8),this.finishNode(s,"BlockStatement");let r=null,n=!1;return i.forEach(o=>{Yr(o)?(r==="CommonJS"&&this.raise(T.AmbiguousDeclareModuleKind,{at:o}),r="ES"):o.type==="DeclareModuleExports"&&(n&&this.raise(T.DuplicateDeclareModuleExports,{at:o}),r==="ES"&&this.raise(T.AmbiguousDeclareModuleKind,{at:o}),r="CommonJS",n=!0)}),e.kind=r||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,s){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(128)||this.isContextual(127))&&!s){let i=this.state.value;throw this.raise(T.UnsupportedDeclareExportKind,{at:this.state.startLoc,unsupportedExportKind:i,suggestion:Qr[i]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(129))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(127)||this.isContextual(128)||this.isContextual(129))return e=this.parseExport(e,null),e.type==="ExportNamedDeclaration"&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e;this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(109),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();let s=this.flowParseTypeAlias(e);return s.type="DeclareTypeAlias",s}flowParseDeclareOpaqueType(e){this.next();let s=this.flowParseOpaqueType(e,!0);return s.type="DeclareOpaqueType",s}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,s){if(e.id=this.flowParseRestrictedIdentifier(!s,!0),this.scope.declareName(e.id.name,s?$s:ce,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(!s&&this.eat(12));if(s){if(e.implements=[],e.mixins=[],this.eatContextual(115))do e.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(111))do e.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:s,allowExact:!1,allowSpread:!1,allowProto:s,allowInexact:!1})}flowParseInterfaceExtends(){let e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){e==="_"&&this.raise(T.UnexpectedReservedUnderscore,{at:this.state.startLoc})}checkReservedType(e,s,i){Gr.has(e)&&this.raise(i?T.AssignReservedType:T.UnexpectedReservedType,{at:s,reservedType:e})}flowParseRestrictedIdentifier(e,s){return this.checkReservedType(this.state.value,this.state.startLoc,s),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,ce,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,s){return this.expectContextual(128),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,ce,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,s||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=!1){let s=this.state.startLoc,i=this.startNode(),r=this.flowParseVariance(),n=this.flowParseTypeAnnotatableIdentifier();return i.name=n.name,i.variance=r,i.bound=n.typeAnnotation,this.match(29)?(this.eat(29),i.default=this.flowParseType()):e&&this.raise(T.MissingTypeParamDefault,{at:s}),this.finishNode(i,"TypeParameter")}flowParseTypeParameterDeclaration(){let e=this.state.inType,s=this.startNode();s.params=[],this.state.inType=!0,this.match(47)||this.match(140)?this.next():this.unexpected();let i=!1;do{let r=this.flowParseTypeParameter(i);s.params.push(r),r.default&&(i=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(s,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){let e=this.startNode(),s=this.state.inType;e.params=[],this.state.inType=!0,this.expect(47);let i=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=i,this.expect(48),this.state.inType=s,this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){let e=this.startNode(),s=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=s,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){let e=this.startNode();if(this.expectContextual(127),e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(132)||this.match(131)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,s,i){return e.static=s,this.lookahead().type===14?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=i,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,s){return e.static=s,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,s){let i=this.startNode();return e.static=s,e.value=this.flowParseObjectTypeMethodish(i),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:s,allowSpread:i,allowProto:r,allowInexact:n}){let o=this.state.inType;this.state.inType=!0;let h=this.startNode();h.callProperties=[],h.properties=[],h.indexers=[],h.internalSlots=[];let l,c,u=!1;for(s&&this.match(6)?(this.expect(6),l=9,c=!0):(this.expect(5),l=8,c=!1),h.exact=c;!this.match(l);){let f=!1,x=null,I=null,C=this.startNode();if(r&&this.isContextual(116)){let N=this.lookahead();N.type!==14&&N.type!==17&&(this.next(),x=this.state.startLoc,e=!1)}if(e&&this.isContextual(104)){let N=this.lookahead();N.type!==14&&N.type!==17&&(this.next(),f=!0)}let w=this.flowParseVariance();if(this.eat(0))x!=null&&this.unexpected(x),this.eat(0)?(w&&this.unexpected(w.loc.start),h.internalSlots.push(this.flowParseObjectTypeInternalSlot(C,f))):h.indexers.push(this.flowParseObjectTypeIndexer(C,f,w));else if(this.match(10)||this.match(47))x!=null&&this.unexpected(x),w&&this.unexpected(w.loc.start),h.callProperties.push(this.flowParseObjectTypeCallProperty(C,f));else{let N="init";if(this.isContextual(98)||this.isContextual(103)){let be=this.lookahead();ks(be.type)&&(N=this.state.value,this.next())}let Re=this.flowParseObjectTypeProperty(C,f,x,w,N,i,n??!c);Re===null?(u=!0,I=this.state.lastTokStartLoc):h.properties.push(Re)}this.flowObjectTypeSemicolon(),I&&!this.match(8)&&!this.match(9)&&this.raise(T.UnexpectedExplicitInexactInObject,{at:I})}this.expect(l),i&&(h.inexact=u);let d=this.finishNode(h,"ObjectTypeAnnotation");return this.state.inType=o,d}flowParseObjectTypeProperty(e,s,i,r,n,o,h){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?h||this.raise(T.InexactInsideExact,{at:this.state.lastTokStartLoc}):this.raise(T.InexactInsideNonObject,{at:this.state.lastTokStartLoc}),r&&this.raise(T.InexactVariance,{at:r}),null):(o||this.raise(T.UnexpectedSpreadType,{at:this.state.lastTokStartLoc}),i!=null&&this.unexpected(i),r&&this.raise(T.SpreadVariance,{at:r}),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=s,e.proto=i!=null,e.kind=n;let l=!1;return this.match(47)||this.match(10)?(e.method=!0,i!=null&&this.unexpected(i),r&&this.unexpected(r.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),(n==="get"||n==="set")&&this.flowCheckGetterSetterParams(e),!o&&e.key.name==="constructor"&&e.value.this&&this.raise(T.ThisParamBannedInConstructor,{at:e.value.this})):(n!=="init"&&this.unexpected(),e.method=!1,this.eat(17)&&(l=!0),e.value=this.flowParseTypeInitialiser(),e.variance=r),e.optional=l,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){let s=e.kind==="get"?0:1,i=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise(e.kind==="get"?T.GetterMayNotHaveThisParam:T.SetterMayNotHaveThisParam,{at:e.value.this}),i!==s&&this.raise(e.kind==="get"?p.BadGetterArity:p.BadSetterArity,{at:e}),e.kind==="set"&&e.value.rest&&this.raise(p.BadSetterRestParameter,{at:e})}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(e,s){var i;(i=e)!=null||(e=this.state.startLoc);let r=s||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let n=this.startNodeAt(e);n.qualification=r,n.id=this.flowParseRestrictedIdentifier(!0),r=this.finishNode(n,"QualifiedTypeIdentifier")}return r}flowParseGenericType(e,s){let i=this.startNodeAt(e);return i.typeParameters=null,i.id=this.flowParseQualifiedTypeIdentifier(e,s),this.match(47)&&(i.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(i,"GenericTypeAnnotation")}flowParseTypeofType(){let e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){let e=this.startNode();for(e.types=[],this.expect(0);this.state.possuper.parseFunctionBody(e,!0,i));return}super.parseFunctionBody(e,!1,i)}parseFunctionBodyAndFinish(e,s,i=!1){if(this.match(14)){let r=this.startNode();[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=r.typeAnnotation?this.finishNode(r,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,s,i)}parseStatementLike(e){if(this.state.strict&&this.isContextual(127)){let i=this.lookahead();if(M(i.type)){let r=this.startNode();return this.next(),this.flowParseInterface(r)}}else if(this.shouldParseEnums()&&this.isContextual(124)){let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}let s=super.parseStatementLike(e);return this.flowPragma===void 0&&!this.isValidDirective(s)&&(this.flowPragma=null),s}parseExpressionStatement(e,s,i){if(s.type==="Identifier"){if(s.name==="declare"){if(this.match(80)||S(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(S(this.state.type)){if(s.name==="interface")return this.flowParseInterface(e);if(s.name==="type")return this.flowParseTypeAlias(e);if(s.name==="opaque")return this.flowParseOpaqueType(e,!1)}}return super.parseExpressionStatement(e,s,i)}shouldParseExportDeclaration(){let{type:e}=this.state;return ds(e)||this.shouldParseEnums()&&e===124?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:e}=this.state;return ds(e)||this.shouldParseEnums()&&e===124?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(124)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,s,i){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let d=this.lookaheadCharCode();if(d===44||d===61||d===58||d===41)return this.setOptionalParametersError(i),e}this.expect(17);let r=this.state.clone(),n=this.state.noArrowAt,o=this.startNodeAt(s),{consequent:h,failed:l}=this.tryParseConditionalConsequent(),[c,u]=this.getArrowLikeExpressions(h);if(l||u.length>0){let d=[...n];if(u.length>0){this.state=r,this.state.noArrowAt=d;for(let f=0;f1&&this.raise(T.AmbiguousConditionalArrow,{at:r.startLoc}),l&&c.length===1&&(this.state=r,d.push(c[0].start),this.state.noArrowAt=d,{consequent:h,failed:l}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(h,!0),this.state.noArrowAt=n,this.expect(14),o.test=e,o.consequent=h,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let e=this.parseMaybeAssignAllowIn(),s=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:s}}getArrowLikeExpressions(e,s){let i=[e],r=[];for(;i.length!==0;){let n=i.pop();n.type==="ArrowFunctionExpression"?(n.typeParameters||!n.returnType?this.finishArrowValidation(n):r.push(n),i.push(n.body)):n.type==="ConditionalExpression"&&(i.push(n.consequent),i.push(n.alternate))}return s?(r.forEach(n=>this.finishArrowValidation(n)),[r,[]]):Zr(r,n=>n.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(e){var s;this.toAssignableList(e.params,(s=e.extra)==null?void 0:s.trailingCommaLoc,!1),this.scope.enter(z|Qt),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,s){let i;return this.state.noArrowParamsConversionAt.indexOf(e.start)!==-1?(this.state.noArrowParamsConversionAt.push(this.state.start),i=s(),this.state.noArrowParamsConversionAt.pop()):i=s(),i}parseParenItem(e,s){if(e=super.parseParenItem(e,s),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){let i=this.startNodeAt(s);return i.expression=e,i.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(i,"TypeCastExpression")}return e}assertModuleNodeAllowed(e){e.type==="ImportDeclaration"&&(e.importKind==="type"||e.importKind==="typeof")||e.type==="ExportNamedDeclaration"&&e.exportKind==="type"||e.type==="ExportAllDeclaration"&&e.exportKind==="type"||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(128)){e.exportKind="type";let s=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(s)}else if(this.isContextual(129)){e.exportKind="type";let s=this.startNode();return this.next(),this.flowParseOpaqueType(s,!1)}else if(this.isContextual(127)){e.exportKind="type";let s=this.startNode();return this.next(),this.flowParseInterface(s)}else if(this.shouldParseEnums()&&this.isContextual(124)){e.exportKind="value";let s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}else return super.parseExportDeclaration(e)}eatExportStar(e){return super.eatExportStar(e)?!0:this.isContextual(128)&&this.lookahead().type===55?(e.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(e){let{startLoc:s}=this.state,i=super.maybeParseExportNamespaceSpecifier(e);return i&&e.exportKind==="type"&&this.unexpected(s),i}parseClassId(e,s,i){super.parseClassId(e,s,i),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,s,i){let{startLoc:r}=this.state;if(this.isContextual(123)){if(super.parseClassMemberFromModifier(e,s))return;s.declare=!0}super.parseClassMember(e,s,i),s.declare&&(s.type!=="ClassProperty"&&s.type!=="ClassPrivateProperty"&&s.type!=="PropertyDefinition"?this.raise(T.DeclareClassElement,{at:r}):s.value&&this.raise(T.DeclareClassFieldInitializer,{at:s.value}))}isIterator(e){return e==="iterator"||e==="asyncIterator"}readIterator(){let e=super.readWord1(),s="@@"+e;(!this.isIterator(e)||!this.state.inType)&&this.raise(p.InvalidIdentifier,{at:this.state.curPosition(),identifierName:s}),this.finishToken(130,s)}getTokenFromCode(e){let s=this.input.charCodeAt(this.state.pos+1);e===123&&s===124?this.finishOp(6,2):this.state.inType&&(e===62||e===60)?this.finishOp(e===62?48:47,1):this.state.inType&&e===63?s===46?this.finishOp(18,2):this.finishOp(17,1):Ar(e,s,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e)}isAssignable(e,s){return e.type==="TypeCastExpression"?this.isAssignable(e.expression,s):super.isAssignable(e,s)}toAssignable(e,s=!1){!s&&e.type==="AssignmentExpression"&&e.left.type==="TypeCastExpression"&&(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,s)}toAssignableList(e,s,i){for(let r=0;r1||!s)&&this.raise(T.TypeCastInPattern,{at:n.typeAnnotation})}return e}parseArrayLike(e,s,i,r){let n=super.parseArrayLike(e,s,i,r);return s&&!this.state.maybeInArrowParameters&&this.toReferencedList(n.elements),n}isValidLVal(e,s,i){return e==="TypeCastExpression"||super.isValidLVal(e,s,i)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,s,i,r,n,o){if(s.variance&&this.unexpected(s.variance.loc.start),delete s.variance,this.match(47)&&(s.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,s,i,r,n,o),s.params&&n){let h=s.params;h.length>0&&this.isThisParam(h[0])&&this.raise(T.ThisParamBannedInConstructor,{at:s})}else if(s.type==="MethodDefinition"&&n&&s.value.params){let h=s.value.params;h.length>0&&this.isThisParam(h[0])&&this.raise(T.ThisParamBannedInConstructor,{at:s})}}pushClassPrivateMethod(e,s,i,r){s.variance&&this.unexpected(s.variance.loc.start),delete s.variance,this.match(47)&&(s.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,s,i,r)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&this.match(47)&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(111)){this.next();let s=e.implements=[];do{let i=this.startNode();i.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?i.typeParameters=this.flowParseTypeParameterInstantiation():i.typeParameters=null,s.push(this.finishNode(i,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);let s=this.getObjectOrClassMethodParams(e);if(s.length>0){let i=s[0];this.isThisParam(i)&&e.kind==="get"?this.raise(T.GetterMayNotHaveThisParam,{at:i}):this.isThisParam(i)&&this.raise(T.SetterMayNotHaveThisParam,{at:i})}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,s,i,r,n,o,h){e.variance&&this.unexpected(e.variance.loc.start),delete e.variance;let l;this.match(47)&&!o&&(l=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let c=super.parseObjPropValue(e,s,i,r,n,o,h);return l&&((c.value||c).typeParameters=l),c}parseAssignableListItemTypes(e){return this.eat(17)&&(e.type!=="Identifier"&&this.raise(T.PatternIsOptional,{at:e}),this.isThisParam(e)&&this.raise(T.ThisParamMayNotBeOptional,{at:e}),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(T.ThisParamAnnotationRequired,{at:e}),this.match(29)&&this.isThisParam(e)&&this.raise(T.ThisParamNoDefault,{at:e}),this.resetEndLocation(e),e}parseMaybeDefault(e,s){let i=super.parseMaybeDefault(e,s);return i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.startsuper.parseMaybeAssign(e,s),r),!n.error)return n.node;let{context:l}=this.state,c=l[l.length-1];(c===E.j_oTag||c===E.j_expr)&&l.pop()}if((i=n)!=null&&i.error||this.match(47)){var o,h;r=r||this.state.clone();let l,c=this.tryParse(d=>{var f;l=this.flowParseTypeParameterDeclaration();let x=this.forwardNoArrowParamsConversionAt(l,()=>{let C=super.parseMaybeAssign(e,s);return this.resetStartLocationFromNode(C,l),C});(f=x.extra)!=null&&f.parenthesized&&d();let I=this.maybeUnwrapTypeCastExpression(x);return I.type!=="ArrowFunctionExpression"&&d(),I.typeParameters=l,this.resetStartLocationFromNode(I,l),x},r),u=null;if(c.node&&this.maybeUnwrapTypeCastExpression(c.node).type==="ArrowFunctionExpression"){if(!c.error&&!c.aborted)return c.node.async&&this.raise(T.UnexpectedTypeParameterBeforeAsyncArrowFunction,{at:l}),c.node;u=c.node}if((o=n)!=null&&o.node)return this.state=n.failState,n.node;if(u)return this.state=c.failState,u;throw(h=n)!=null&&h.thrown?n.error:c.thrown?c.error:this.raise(T.UnexpectedTokenAfterTypeParameter,{at:l})}return super.parseMaybeAssign(e,s)}parseArrow(e){if(this.match(14)){let s=this.tryParse(()=>{let i=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let r=this.startNode();return[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=i,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),r});if(s.thrown)return null;s.error&&(this.state=s.failState),e.returnType=s.node.typeAnnotation?this.finishNode(s.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,s){this.state.noArrowParamsConversionAt.indexOf(e.start)!==-1?e.params=s:super.setArrowFunctionParameters(e,s)}checkParams(e,s,i,r=!0){if(!(i&&this.state.noArrowParamsConversionAt.indexOf(e.start)!==-1)){for(let n=0;n0&&this.raise(T.ThisParamMustBeFirst,{at:e.params[n]});super.checkParams(e,s,i,r)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&this.state.noArrowAt.indexOf(this.state.start)===-1)}parseSubscripts(e,s,i){if(e.type==="Identifier"&&e.name==="async"&&this.state.noArrowAt.indexOf(s.index)!==-1){this.next();let r=this.startNodeAt(s);r.callee=e,r.arguments=super.parseCallExpressionArguments(11,!1),e=this.finishNode(r,"CallExpression")}else if(e.type==="Identifier"&&e.name==="async"&&this.match(47)){let r=this.state.clone(),n=this.tryParse(h=>this.parseAsyncArrowWithTypeParameters(s)||h(),r);if(!n.error&&!n.aborted)return n.node;let o=this.tryParse(()=>super.parseSubscripts(e,s,i),r);if(o.node&&!o.error)return o.node;if(n.node)return this.state=n.failState,n.node;if(o.node)return this.state=o.failState,o.node;throw n.error||o.error}return super.parseSubscripts(e,s,i)}parseSubscript(e,s,i,r){if(this.match(18)&&this.isLookaheadToken_lt()){if(r.optionalChainMember=!0,i)return r.stop=!0,e;this.next();let n=this.startNodeAt(s);return n.callee=e,n.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),n.arguments=this.parseCallExpressionArguments(11,!1),n.optional=!0,this.finishCallExpression(n,!0)}else if(!i&&this.shouldParseTypes()&&this.match(47)){let n=this.startNodeAt(s);n.callee=e;let o=this.tryParse(()=>(n.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),n.arguments=super.parseCallExpressionArguments(11,!1),r.optionalChainMember&&(n.optional=!1),this.finishCallExpression(n,r.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(e,s,i,r)}parseNewCallee(e){super.parseNewCallee(e);let s=null;this.shouldParseTypes()&&this.match(47)&&(s=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),e.typeArguments=s}parseAsyncArrowWithTypeParameters(e){let s=this.startNodeAt(e);if(this.parseFunctionParams(s,!1),!!this.parseArrow(s))return super.parseArrowExpression(s,void 0,!0)}readToken_mult_modulo(e){let s=this.input.charCodeAt(this.state.pos+1);if(e===42&&s===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(e)}readToken_pipe_amp(e){let s=this.input.charCodeAt(this.state.pos+1);if(e===124&&s===125){this.finishOp(9,2);return}super.readToken_pipe_amp(e)}parseTopLevel(e,s){let i=super.parseTopLevel(e,s);return this.state.hasFlowComment&&this.raise(T.UnterminatedFlowComment,{at:this.state.curPosition()}),i}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(T.NestedFlowComment,{at:this.state.startLoc});this.hasFlowCommentCompletion();let e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:e}=this.state,s=2;for(;[32,9].includes(this.input.charCodeAt(e+s));)s++;let i=this.input.charCodeAt(s+e),r=this.input.charCodeAt(s+e+1);return i===58&&r===58?s+2:this.input.slice(s+e,s+e+12)==="flow-include"?s+12:i===58&&r!==58?s:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(p.UnterminatedComment,{at:this.state.curPosition()})}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:s,memberName:i}){this.raise(T.EnumBooleanMemberNotInitialized,{at:e,memberName:i,enumName:s})}flowEnumErrorInvalidMemberInitializer(e,s){return this.raise(s.explicitType?s.explicitType==="symbol"?T.EnumInvalidMemberInitializerSymbolType:T.EnumInvalidMemberInitializerPrimaryType:T.EnumInvalidMemberInitializerUnknownType,Object.assign({at:e},s))}flowEnumErrorNumberMemberNotInitialized(e,{enumName:s,memberName:i}){this.raise(T.EnumNumberMemberNotInitialized,{at:e,enumName:s,memberName:i})}flowEnumErrorStringMemberInconsistentlyInitailized(e,{enumName:s}){this.raise(T.EnumStringMemberInconsistentlyInitailized,{at:e,enumName:s})}flowEnumMemberInit(){let e=this.state.startLoc,s=()=>this.match(12)||this.match(8);switch(this.state.type){case 132:{let i=this.parseNumericLiteral(this.state.value);return s()?{type:"number",loc:i.loc.start,value:i}:{type:"invalid",loc:e}}case 131:{let i=this.parseStringLiteral(this.state.value);return s()?{type:"string",loc:i.loc.start,value:i}:{type:"invalid",loc:e}}case 85:case 86:{let i=this.parseBooleanLiteral(this.match(85));return s()?{type:"boolean",loc:i.loc.start,value:i}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){let e=this.state.startLoc,s=this.parseIdentifier(!0),i=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e};return{id:s,init:i}}flowEnumCheckExplicitTypeMismatch(e,s,i){let{explicitType:r}=s;r!==null&&r!==i&&this.flowEnumErrorInvalidMemberInitializer(e,s)}flowEnumMembers({enumName:e,explicitType:s}){let i=new Set,r={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},n=!1;for(;!this.match(8);){if(this.eat(21)){n=!0;break}let o=this.startNode(),{id:h,init:l}=this.flowEnumMemberRaw(),c=h.name;if(c==="")continue;/^[a-z]/.test(c)&&this.raise(T.EnumInvalidMemberName,{at:h,memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:e}),i.has(c)&&this.raise(T.EnumDuplicateMemberName,{at:h,memberName:c,enumName:e}),i.add(c);let u={enumName:e,explicitType:s,memberName:c};switch(o.id=h,l.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(l.loc,u,"boolean"),o.init=l.value,r.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(l.loc,u,"number"),o.init=l.value,r.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(l.loc,u,"string"),o.init=l.value,r.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(l.loc,u);case"none":switch(s){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(l.loc,u);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(l.loc,u);break;default:r.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:r,hasUnknownMembers:n}}flowEnumStringMembers(e,s,{enumName:i}){if(e.length===0)return s;if(s.length===0)return e;if(s.length>e.length){for(let r of e)this.flowEnumErrorStringMemberInconsistentlyInitailized(r,{enumName:i});return s}else{for(let r of s)this.flowEnumErrorStringMemberInconsistentlyInitailized(r,{enumName:i});return e}}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(101))return null;if(!S(this.state.type))throw this.raise(T.EnumInvalidExplicitTypeUnknownSupplied,{at:this.state.startLoc,enumName:e});let{value:s}=this.state;return this.next(),s!=="boolean"&&s!=="number"&&s!=="string"&&s!=="symbol"&&this.raise(T.EnumInvalidExplicitType,{at:this.state.startLoc,enumName:e,invalidEnumType:s}),s}flowEnumBody(e,s){let i=s.name,r=s.loc.start,n=this.flowEnumParseExplicitType({enumName:i});this.expect(5);let{members:o,hasUnknownMembers:h}=this.flowEnumMembers({enumName:i,explicitType:n});switch(e.hasUnknownMembers=h,n){case"boolean":return e.explicitType=!0,e.members=o.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=o.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=o.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{let l=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;let c=o.booleanMembers.length,u=o.numberMembers.length,d=o.stringMembers.length,f=o.defaultedMembers.length;if(!c&&!u&&!d&&!f)return l();if(!c&&!u)return e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(e,"EnumStringBody");if(!u&&!d&&c>=f){for(let x of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(x.loc.start,{enumName:i,memberName:x.id.name});return e.members=o.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}else if(!c&&!d&&u>=f){for(let x of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(x.loc.start,{enumName:i,memberName:x.id.name});return e.members=o.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}else return this.raise(T.EnumInconsistentMemberValues,{at:r,enumName:i}),l()}}}flowParseEnumDeclaration(e){let s=this.parseIdentifier();return e.id=s,e.body=this.flowEnumBody(this.startNode(),s),this.finishNode(e,"EnumDeclaration")}isLookaheadToken_lt(){let e=this.nextTokenStart();if(this.input.charCodeAt(e)===60){let s=this.input.charCodeAt(e+1);return s!==60&&s!==61}return!1}maybeUnwrapTypeCastExpression(e){return e.type==="TypeCastExpression"?e.expression:e}},Y=V`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:a})=>`Expected corresponding JSX closing tag for <${a}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:a,HTMLEntity:t})=>`Unexpected token \`${a}\`. Did you mean \`${t}\` or \`{'${a}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?"});function H(a){return a?a.type==="JSXOpeningFragment"||a.type==="JSXClosingFragment":!1}function oe(a){if(a.type==="JSXIdentifier")return a.name;if(a.type==="JSXNamespacedName")return a.namespace.name+":"+a.name.name;if(a.type==="JSXMemberExpression")return oe(a.object)+"."+oe(a.property);throw new Error("Node had unexpected type: "+a.type)}var sa=a=>class extends a{jsxReadToken(){let e="",s=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Y.UnterminatedJsxContent,{at:this.state.startLoc});let i=this.input.charCodeAt(this.state.pos);switch(i){case 60:case 123:if(this.state.pos===this.state.start){i===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(140)):super.getTokenFromCode(i);return}e+=this.input.slice(s,this.state.pos),this.finishToken(139,e);return;case 38:e+=this.input.slice(s,this.state.pos),e+=this.jsxReadEntity(),s=this.state.pos;break;case 62:case 125:default:ke(i)?(e+=this.input.slice(s,this.state.pos),e+=this.jsxReadNewLine(!0),s=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){let s=this.input.charCodeAt(this.state.pos),i;return++this.state.pos,s===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,i=e?` +- Did you mean \`import { "${a}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:a})=>`\`import()\` requires exactly ${a===1?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:a})=>`Expected number in radix ${a}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:a})=>`Escape sequence in keyword ${a}.`,InvalidIdentifier:({identifierName:a})=>`Invalid identifier ${a}.`,InvalidLhs:({ancestor:a})=>`Invalid left-hand side in ${Qe(a)}.`,InvalidLhsBinding:({ancestor:a})=>`Binding invalid left-hand side in ${Qe(a)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:a})=>`Unexpected character '${a}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:a})=>`Private name #${a} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:a})=>`Label '${a}' is already declared.`,LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:a})=>`This experimental syntax requires enabling the parser plugin: ${a.map(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:a})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${a.map(t=>JSON.stringify(t)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:a})=>`Duplicate key "${a}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:a})=>`An export name cannot include a lone surrogate, found '\\u${a.toString(16)}'.`,ModuleExportUndefined:({localName:a})=>`Export '${a}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:a})=>`Private names are only allowed in property accesses (\`obj.#${a}\`) or in \`in\` expressions (\`#${a} in obj\`).`,PrivateNameRedeclaration:({identifierName:a})=>`Duplicate private name #${a}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:a})=>`Unexpected keyword '${a}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:a})=>`Unexpected reserved word '${a}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:a,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${a?`, expected "${a}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:a,onlyValidPropertyName:t})=>`The only valid meta property for ${a} is ${a}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:a})=>`Identifier '${a}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},hi={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:a})=>`Assigning to '${a}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:a})=>`Binding '${a}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},li=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),ci={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:a})=>`Invalid topic token ${a}. In order to use ${a} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${a}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:a})=>`Hack-style pipe body cannot be an unparenthesized ${Qe({type:a})}; please wrap it in parentheses.`,PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},pi=["toMessage"],ui=["message"];function di(a){let{toMessage:t}=a,e=Le(a,pi);return function s({loc:i,details:r}){return ai(SyntaxError,Object.assign({},e,{loc:i}),{clone(n={}){let o=n.loc||{};return s({loc:new F("line"in o?o.line:this.loc.line,"column"in o?o.column:this.loc.column,"index"in o?o.index:this.loc.index),details:Object.assign({},this.details,n.details)})},details:{value:r,enumerable:!1},message:{get(){return`${t(this.details)} (${this.loc.line}:${this.loc.column})`},set(n){Object.defineProperty(this,"message",{value:n})}},pos:{reflect:"loc.index",enumerable:!0},missingPlugin:"missingPlugin"in r&&{reflect:"details.missingPlugin",enumerable:!0}})}}function $(a,t){if(Array.isArray(a))return s=>$(s,a[0]);let e={};for(let s of Object.keys(a)){let i=a[s],r=typeof i=="string"?{message:()=>i}:typeof i=="function"?{message:i}:i,{message:n}=r,o=Le(r,ui),h=typeof n=="string"?()=>n:n;e[s]=di(Object.assign({code:Ye.SyntaxError,reasonCode:s,toMessage:h},t?{syntaxPlugin:t}:{},o))}return e}var p=Object.assign({},$(ni),$(oi),$(hi),$`pipelineOperator`(ci)),{defineProperty:fi}=Object,_t=(a,t)=>fi(a,t,{enumerable:!1,value:a[t]});function pe(a){return a.loc.start&&_t(a.loc.start,"index"),a.loc.end&&_t(a.loc.end,"index"),a}var mi=a=>class extends a{parse(){let e=pe(super.parse());return this.options.tokens&&(e.tokens=e.tokens.map(pe)),e}parseRegExpLiteral({pattern:e,flags:s}){let i=null;try{i=new RegExp(e,s)}catch{}let r=this.estreeParseLiteral(i);return r.regex={pattern:e,flags:s},r}parseBigIntLiteral(e){let s;try{s=BigInt(e)}catch{s=null}let i=this.estreeParseLiteral(s);return i.bigint=String(i.value||e),i}parseDecimalLiteral(e){let i=this.estreeParseLiteral(null);return i.decimal=String(i.value||e),i}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}directiveToStmt(e){let s=e.value;delete e.value,s.type="Literal",s.raw=s.extra.raw,s.value=s.extra.expressionValue;let i=e;return i.type="ExpressionStatement",i.expression=s,i.directive=s.extra.rawValue,delete s.extra,i}initFunction(e,s){super.initFunction(e,s),e.expression=!1}checkDeclaration(e){e!=null&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var s;return e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&!((s=e.expression.extra)!=null&&s.parenthesized)}parseBlockBody(e,s,i,r,n){super.parseBlockBody(e,s,i,r,n);let o=e.directives.map(h=>this.directiveToStmt(h));e.body=o.concat(e.body),delete e.directives}pushClassMethod(e,s,i,r,n,o){this.parseMethod(s,i,r,n,o,"ClassMethod",!0),s.typeParameters&&(s.value.typeParameters=s.typeParameters,delete s.typeParameters),e.body.push(s)}parsePrivateName(){let e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){let s=super.getPrivateNameSV(e);return e=e,delete e.id,e.name=s,e.type="PrivateIdentifier",e}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?e.type==="PrivateIdentifier":super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,s){let i=super.parseLiteral(e,s);return i.raw=i.extra.raw,delete i.extra,i}parseFunctionBody(e,s,i=!1){super.parseFunctionBody(e,s,i),e.expression=e.body.type!=="BlockStatement"}parseMethod(e,s,i,r,n,o,h=!1){let l=this.startNode();return l.kind=e.kind,l=super.parseMethod(l,s,i,r,n,o,h),l.type="FunctionExpression",delete l.kind,e.value=l,o==="ClassPrivateMethod"&&(e.computed=!1),this.finishNode(e,"MethodDefinition")}parseClassProperty(...e){let s=super.parseClassProperty(...e);return this.getPluginOption("estree","classFeatures")&&(s.type="PropertyDefinition"),s}parseClassPrivateProperty(...e){let s=super.parseClassPrivateProperty(...e);return this.getPluginOption("estree","classFeatures")&&(s.type="PropertyDefinition",s.computed=!1),s}parseObjectMethod(e,s,i,r,n){let o=super.parseObjectMethod(e,s,i,r,n);return o&&(o.type="Property",o.kind==="method"&&(o.kind="init"),o.shorthand=!1),o}parseObjectProperty(e,s,i,r){let n=super.parseObjectProperty(e,s,i,r);return n&&(n.kind="init",n.type="Property"),n}isValidLVal(e,s,i){return e==="Property"?"value":super.isValidLVal(e,s,i)}isAssignable(e,s){return e!=null&&this.isObjectProperty(e)?this.isAssignable(e.value,s):super.isAssignable(e,s)}toAssignable(e,s=!1){if(e!=null&&this.isObjectProperty(e)){let{key:i,value:r}=e;this.isPrivateName(i)&&this.classScope.usePrivateName(this.getPrivateNameSV(i),i.loc.start),this.toAssignable(r,s)}else super.toAssignable(e,s)}toAssignableObjectExpressionProp(e,s,i){e.kind==="get"||e.kind==="set"?this.raise(p.PatternHasAccessor,{at:e.key}):e.method?this.raise(p.PatternHasMethod,{at:e.key}):super.toAssignableObjectExpressionProp(e,s,i)}finishCallExpression(e,s){let i=super.finishCallExpression(e,s);if(i.callee.type==="Import"){if(i.type="ImportExpression",i.source=i.arguments[0],this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")){var r;i.attributes=(r=i.arguments[1])!=null?r:null}delete i.arguments,delete i.callee}return i}toReferencedArguments(e){e.type!=="ImportExpression"&&super.toReferencedArguments(e)}parseExport(e,s){let i=this.state.lastTokStartLoc,r=super.parseExport(e,s);switch(r.type){case"ExportAllDeclaration":r.exported=null;break;case"ExportNamedDeclaration":r.specifiers.length===1&&r.specifiers[0].type==="ExportNamespaceSpecifier"&&(r.type="ExportAllDeclaration",r.exported=r.specifiers[0].exported,delete r.specifiers);case"ExportDefaultDeclaration":{var n;let{declaration:o}=r;(o==null?void 0:o.type)==="ClassDeclaration"&&((n=o.decorators)==null?void 0:n.length)>0&&o.start===r.start&&this.resetStartLocation(r,i)}break}return r}parseSubscript(e,s,i,r){let n=super.parseSubscript(e,s,i,r);if(r.optionalChainMember){if((n.type==="OptionalMemberExpression"||n.type==="OptionalCallExpression")&&(n.type=n.type.substring(8)),r.stop){let o=this.startNodeAtNode(n);return o.expression=n,this.finishNode(o,"ChainExpression")}}else(n.type==="MemberExpression"||n.type==="CallExpression")&&(n.optional=!1);return n}hasPropertyAsPrivateName(e){return e.type==="ChainExpression"&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return e.type==="Property"&&e.kind==="init"&&!e.method}isObjectMethod(e){return e.method||e.kind==="get"||e.kind==="set"}finishNodeAt(e,s,i){return pe(super.finishNodeAt(e,s,i))}resetStartLocation(e,s){super.resetStartLocation(e,s),pe(e)}resetEndLocation(e,s=this.state.lastTokEndLoc){super.resetEndLocation(e,s),pe(e)}},X=class{constructor(t,e){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!e}},w={brace:new X("{"),j_oTag:new X("...",!0)};w.template=new X("`",!0);var T=!0,m=!0,He=!0,ue=!0,z=!0,yi=!0,De=class{constructor(t,e={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.rightAssociative=!!e.rightAssociative,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop!=null?e.binop:null,this.updateContext=null}},gt=new Map;function A(a,t={}){t.keyword=a;let e=P(a,t);return gt.set(a,e),e}function v(a,t){return P(a,{beforeExpr:T,binop:t})}var ye=-1,U=[],Tt=[],bt=[],At=[],St=[],wt=[];function P(a,t={}){var e,s,i,r;return++ye,Tt.push(a),bt.push((e=t.binop)!=null?e:-1),At.push((s=t.beforeExpr)!=null?s:!1),St.push((i=t.startsExpr)!=null?i:!1),wt.push((r=t.prefix)!=null?r:!1),U.push(new De(a,t)),ye}function b(a,t={}){var e,s,i,r;return++ye,gt.set(a,ye),Tt.push(a),bt.push((e=t.binop)!=null?e:-1),At.push((s=t.beforeExpr)!=null?s:!1),St.push((i=t.startsExpr)!=null?i:!1),wt.push((r=t.prefix)!=null?r:!1),U.push(new De("name",t)),ye}var xi={bracketL:P("[",{beforeExpr:T,startsExpr:m}),bracketHashL:P("#[",{beforeExpr:T,startsExpr:m}),bracketBarL:P("[|",{beforeExpr:T,startsExpr:m}),bracketR:P("]"),bracketBarR:P("|]"),braceL:P("{",{beforeExpr:T,startsExpr:m}),braceBarL:P("{|",{beforeExpr:T,startsExpr:m}),braceHashL:P("#{",{beforeExpr:T,startsExpr:m}),braceR:P("}"),braceBarR:P("|}"),parenL:P("(",{beforeExpr:T,startsExpr:m}),parenR:P(")"),comma:P(",",{beforeExpr:T}),semi:P(";",{beforeExpr:T}),colon:P(":",{beforeExpr:T}),doubleColon:P("::",{beforeExpr:T}),dot:P("."),question:P("?",{beforeExpr:T}),questionDot:P("?."),arrow:P("=>",{beforeExpr:T}),template:P("template"),ellipsis:P("...",{beforeExpr:T}),backQuote:P("`",{startsExpr:m}),dollarBraceL:P("${",{beforeExpr:T,startsExpr:m}),templateTail:P("...`",{startsExpr:m}),templateNonTail:P("...${",{beforeExpr:T,startsExpr:m}),at:P("@"),hash:P("#",{startsExpr:m}),interpreterDirective:P("#!..."),eq:P("=",{beforeExpr:T,isAssign:ue}),assign:P("_=",{beforeExpr:T,isAssign:ue}),slashAssign:P("_=",{beforeExpr:T,isAssign:ue}),xorAssign:P("_=",{beforeExpr:T,isAssign:ue}),moduloAssign:P("_=",{beforeExpr:T,isAssign:ue}),incDec:P("++/--",{prefix:z,postfix:yi,startsExpr:m}),bang:P("!",{beforeExpr:T,prefix:z,startsExpr:m}),tilde:P("~",{beforeExpr:T,prefix:z,startsExpr:m}),doubleCaret:P("^^",{startsExpr:m}),doubleAt:P("@@",{startsExpr:m}),pipeline:v("|>",0),nullishCoalescing:v("??",1),logicalOR:v("||",1),logicalAND:v("&&",2),bitwiseOR:v("|",3),bitwiseXOR:v("^",4),bitwiseAND:v("&",5),equality:v("==/!=/===/!==",6),lt:v("/<=/>=",7),gt:v("/<=/>=",7),relational:v("/<=/>=",7),bitShift:v("<>/>>>",8),bitShiftL:v("<>/>>>",8),bitShiftR:v("<>/>>>",8),plusMin:P("+/-",{beforeExpr:T,binop:9,prefix:z,startsExpr:m}),modulo:P("%",{binop:10,startsExpr:m}),star:P("*",{binop:10}),slash:v("/",10),exponent:P("**",{beforeExpr:T,binop:11,rightAssociative:!0}),_in:A("in",{beforeExpr:T,binop:7}),_instanceof:A("instanceof",{beforeExpr:T,binop:7}),_break:A("break"),_case:A("case",{beforeExpr:T}),_catch:A("catch"),_continue:A("continue"),_debugger:A("debugger"),_default:A("default",{beforeExpr:T}),_else:A("else",{beforeExpr:T}),_finally:A("finally"),_function:A("function",{startsExpr:m}),_if:A("if"),_return:A("return",{beforeExpr:T}),_switch:A("switch"),_throw:A("throw",{beforeExpr:T,prefix:z,startsExpr:m}),_try:A("try"),_var:A("var"),_const:A("const"),_with:A("with"),_new:A("new",{beforeExpr:T,startsExpr:m}),_this:A("this",{startsExpr:m}),_super:A("super",{startsExpr:m}),_class:A("class",{startsExpr:m}),_extends:A("extends",{beforeExpr:T}),_export:A("export"),_import:A("import",{startsExpr:m}),_null:A("null",{startsExpr:m}),_true:A("true",{startsExpr:m}),_false:A("false",{startsExpr:m}),_typeof:A("typeof",{beforeExpr:T,prefix:z,startsExpr:m}),_void:A("void",{beforeExpr:T,prefix:z,startsExpr:m}),_delete:A("delete",{beforeExpr:T,prefix:z,startsExpr:m}),_do:A("do",{isLoop:He,beforeExpr:T}),_for:A("for",{isLoop:He}),_while:A("while",{isLoop:He}),_as:b("as",{startsExpr:m}),_assert:b("assert",{startsExpr:m}),_async:b("async",{startsExpr:m}),_await:b("await",{startsExpr:m}),_from:b("from",{startsExpr:m}),_get:b("get",{startsExpr:m}),_let:b("let",{startsExpr:m}),_meta:b("meta",{startsExpr:m}),_of:b("of",{startsExpr:m}),_sent:b("sent",{startsExpr:m}),_set:b("set",{startsExpr:m}),_static:b("static",{startsExpr:m}),_using:b("using",{startsExpr:m}),_yield:b("yield",{startsExpr:m}),_asserts:b("asserts",{startsExpr:m}),_checks:b("checks",{startsExpr:m}),_exports:b("exports",{startsExpr:m}),_global:b("global",{startsExpr:m}),_implements:b("implements",{startsExpr:m}),_intrinsic:b("intrinsic",{startsExpr:m}),_infer:b("infer",{startsExpr:m}),_is:b("is",{startsExpr:m}),_mixins:b("mixins",{startsExpr:m}),_proto:b("proto",{startsExpr:m}),_require:b("require",{startsExpr:m}),_satisfies:b("satisfies",{startsExpr:m}),_keyof:b("keyof",{startsExpr:m}),_readonly:b("readonly",{startsExpr:m}),_unique:b("unique",{startsExpr:m}),_abstract:b("abstract",{startsExpr:m}),_declare:b("declare",{startsExpr:m}),_enum:b("enum",{startsExpr:m}),_module:b("module",{startsExpr:m}),_namespace:b("namespace",{startsExpr:m}),_interface:b("interface",{startsExpr:m}),_type:b("type",{startsExpr:m}),_opaque:b("opaque",{startsExpr:m}),name:P("name",{startsExpr:m}),string:P("string",{startsExpr:m}),num:P("num",{startsExpr:m}),bigint:P("bigint",{startsExpr:m}),decimal:P("decimal",{startsExpr:m}),regexp:P("regexp",{startsExpr:m}),privateName:P("#name",{startsExpr:m}),eof:P("eof"),jsxName:P("jsxName"),jsxText:P("jsxText",{beforeExpr:!0}),jsxTagStart:P("jsxTagStart",{startsExpr:!0}),jsxTagEnd:P("jsxTagEnd"),placeholder:P("%%",{startsExpr:!0})};function S(a){return a>=93&&a<=130}function Pi(a){return a<=92}function M(a){return a>=58&&a<=130}function Yt(a){return a>=58&&a<=134}function gi(a){return At[a]}function Ze(a){return St[a]}function Ti(a){return a>=29&&a<=33}function Ut(a){return a>=127&&a<=129}function bi(a){return a>=90&&a<=92}function Ct(a){return a>=58&&a<=92}function Ai(a){return a>=39&&a<=59}function Si(a){return a===34}function wi(a){return wt[a]}function Ci(a){return a>=119&&a<=121}function Ei(a){return a>=122&&a<=128}function q(a){return Tt[a]}function Ne(a){return bt[a]}function Ii(a){return a===57}function Me(a){return a>=24&&a<=25}function _(a){return U[a]}U[8].updateContext=a=>{a.pop()},U[5].updateContext=U[7].updateContext=U[23].updateContext=a=>{a.push(w.brace)},U[22].updateContext=a=>{a[a.length-1]===w.template?a.pop():a.push(w.template)},U[140].updateContext=a=>{a.push(w.j_expr,w.j_oTag)};var Et="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Qt="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F",Ni=new RegExp("["+Et+"]"),ki=new RegExp("["+Et+Qt+"]");Et=Qt=null;var Zt=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],vi=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function et(a,t){let e=65536;for(let s=0,i=t.length;sa)return!1;if(e+=t[s+1],e>=a)return!0}return!1}function j(a){return a<65?a===36:a<=90?!0:a<97?a===95:a<=122?!0:a<=65535?a>=170&&Ni.test(String.fromCharCode(a)):et(a,Zt)}function ee(a){return a<48?a===36:a<58?!0:a<65?!1:a<=90?!0:a<97?a===95:a<=122?!0:a<=65535?a>=170&&ki.test(String.fromCharCode(a)):et(a,Zt)||et(a,vi)}var It={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},Li=new Set(It.keyword),Di=new Set(It.strict),Mi=new Set(It.strictBind);function es(a,t){return t&&a==="await"||a==="enum"}function ts(a,t){return es(a,t)||Di.has(a)}function ss(a){return Mi.has(a)}function is(a,t){return ts(a,t)||ss(a)}function Oi(a){return Li.has(a)}function Fi(a,t,e){return a===64&&t===64&&j(e)}var Bi=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function Ri(a){return Bi.has(a)}var Pe=class{constructor(t){this.var=new Set,this.lexical=new Set,this.functions=new Set,this.flags=t}},ge=class{constructor(t,e){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=e}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let t=this.currentThisScopeFlags();return(t&64)>0&&(t&2)===0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(e&128)return!0;if(e&451)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new Pe(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(t.flags&130||!this.parser.inModule&&t.flags&1)}declareName(t,e,s){let i=this.currentScope();if(e&8||e&16)this.checkRedeclarationInScope(i,t,e,s),e&16?i.functions.add(t):i.lexical.add(t),e&8&&this.maybeExportDefined(i,t);else if(e&4)for(let r=this.scopeStack.length-1;r>=0&&(i=this.scopeStack[r],this.checkRedeclarationInScope(i,t,e,s),i.var.add(t),this.maybeExportDefined(i,t),!(i.flags&387));--r);this.parser.inModule&&i.flags&1&&this.undefinedExports.delete(t)}maybeExportDefined(t,e){this.parser.inModule&&t.flags&1&&this.undefinedExports.delete(e)}checkRedeclarationInScope(t,e,s,i){this.isRedeclaredInScope(t,e,s)&&this.parser.raise(p.VarRedeclaration,{at:i,identifierName:e})}isRedeclaredInScope(t,e,s){return s&1?s&8?t.lexical.has(e)||t.functions.has(e)||t.var.has(e):s&16?t.lexical.has(e)||!this.treatFunctionsAsVarInScope(t)&&t.var.has(e):t.lexical.has(e)&&!(t.flags&8&&t.lexical.values().next().value===e)||!this.treatFunctionsAsVarInScope(t)&&t.functions.has(e):!1}checkLocalExport(t){let{name:e}=t,s=this.scopeStack[0];!s.lexical.has(e)&&!s.var.has(e)&&!s.functions.has(e)&&this.undefinedExports.set(e,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(e&387)return e}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(e&451&&!(e&4))return e}}},tt=class extends Pe{constructor(...t){super(...t),this.declareFunctions=new Set}},st=class extends ge{createScope(t){return new tt(t)}declareName(t,e,s){let i=this.currentScope();if(e&2048){this.checkRedeclarationInScope(i,t,e,s),this.maybeExportDefined(i,t),i.declareFunctions.add(t);return}super.declareName(t,e,s)}isRedeclaredInScope(t,e,s){return super.isRedeclaredInScope(t,e,s)?!0:s&2048?!t.declareFunctions.has(e)&&(t.lexical.has(e)||t.functions.has(e)):!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}},it=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(t){if(typeof t=="string")return this.plugins.has(t);{let[e,s]=t;if(!this.hasPlugin(e))return!1;let i=this.plugins.get(e);for(let r of Object.keys(s))if((i==null?void 0:i[r])!==s[r])return!1;return!0}}getPluginOption(t,e){var s;return(s=this.plugins.get(t))==null?void 0:s[e]}};function rs(a,t){a.trailingComments===void 0?a.trailingComments=t:a.trailingComments.unshift(...t)}function _i(a,t){a.leadingComments===void 0?a.leadingComments=t:a.leadingComments.unshift(...t)}function Te(a,t){a.innerComments===void 0?a.innerComments=t:a.innerComments.unshift(...t)}function de(a,t,e){let s=null,i=t.length;for(;s===null&&i>0;)s=t[--i];s===null||s.start>e.start?Te(a,e.comments):rs(s,e.comments)}var rt=class extends it{addComment(t){this.filename&&(t.loc.filename=this.filename),this.state.comments.push(t)}processComment(t){let{commentStack:e}=this.state,s=e.length;if(s===0)return;let i=s-1,r=e[i];r.start===t.end&&(r.leadingNode=t,i--);let{start:n}=t;for(;i>=0;i--){let o=e[i],h=o.end;if(h>n)o.containingNode=t,this.finalizeComment(o),e.splice(i,1);else{h===n&&(o.trailingNode=t);break}}}finalizeComment(t){let{comments:e}=t;if(t.leadingNode!==null||t.trailingNode!==null)t.leadingNode!==null&&rs(t.leadingNode,e),t.trailingNode!==null&&_i(t.trailingNode,e);else{let{containingNode:s,start:i}=t;if(this.input.charCodeAt(i-1)===44)switch(s.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":de(s,s.properties,t);break;case"CallExpression":case"OptionalCallExpression":de(s,s.arguments,t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":de(s,s.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":de(s,s.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":de(s,s.specifiers,t);break;default:Te(s,e)}else Te(s,e)}}finalizeRemainingComments(){let{commentStack:t}=this.state;for(let e=t.length-1;e>=0;e--)this.finalizeComment(t[e]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(t){let{commentStack:e}=this.state,{length:s}=e;if(s===0)return;let i=e[s-1];i.leadingNode===t&&(i.leadingNode=null)}resetPreviousIdentifierLeadingComments(t){let{commentStack:e}=this.state,{length:s}=e;s!==0&&(e[s-1].trailingNode===t?e[s-1].trailingNode=null:s>=2&&e[s-2].trailingNode===t&&(e[s-2].trailingNode=null))}takeSurroundingComments(t,e,s){let{commentStack:i}=this.state,r=i.length;if(r===0)return;let n=r-1;for(;n>=0;n--){let o=i[n],h=o.end;if(o.start===s)o.leadingNode=t;else if(h===e)o.trailingNode=t;else if(h=48&&t<=57},$t={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Ie={bin:a=>a===48||a===49,oct:a=>a>=48&&a<=55,dec:a=>a>=48&&a<=57,hex:a=>a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102};function Vt(a,t,e,s,i,r){let n=e,o=s,h=i,l="",c=null,u=e,{length:f}=t;for(;;){if(e>=f){r.unterminated(n,o,h),l+=t.slice(u,e);break}let d=t.charCodeAt(e);if($i(a,d,t,e)){l+=t.slice(u,e);break}if(d===92){l+=t.slice(u,e);let x=Vi(t,e,s,i,a==="template",r);x.ch===null&&!c?c={pos:e,lineStart:s,curLine:i}:l+=x.ch,{pos:e,lineStart:s,curLine:i}=x,u=e}else d===8232||d===8233?(++e,++i,s=e):d===10||d===13?a==="template"?(l+=t.slice(u,e)+` +`,++e,d===13&&t.charCodeAt(e)===10&&++e,++i,u=s=e):r.unterminated(n,o,h):++e}return{pos:e,str:l,firstInvalidLoc:c,lineStart:s,curLine:i,containsInvalid:!!c}}function $i(a,t,e,s){return a==="template"?t===96||t===36&&e.charCodeAt(s+1)===123:t===(a==="double"?34:39)}function Vi(a,t,e,s,i,r){let n=!i;t++;let o=l=>({pos:t,ch:l,lineStart:e,curLine:s}),h=a.charCodeAt(t++);switch(h){case 110:return o(` +`);case 114:return o("\r");case 120:{let l;return{code:l,pos:t}=nt(a,t,e,s,2,!1,n,r),o(l===null?null:String.fromCharCode(l))}case 117:{let l;return{code:l,pos:t}=os(a,t,e,s,n,r),o(l===null?null:String.fromCodePoint(l))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:a.charCodeAt(t)===10&&++t;case 10:e=t,++s;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);r.strictNumericEscape(t-1,e,s);default:if(h>=48&&h<=55){let l=t-1,u=a.slice(l,t+2).match(/^[0-7]+/)[0],f=parseInt(u,8);f>255&&(u=u.slice(0,-1),f=parseInt(u,8)),t+=u.length-1;let d=a.charCodeAt(t);if(u!=="0"||d===56||d===57){if(i)return o(null);r.strictNumericEscape(l,e,s)}return o(String.fromCharCode(f))}return o(String.fromCharCode(h))}}function nt(a,t,e,s,i,r,n,o){let h=t,l;return{n:l,pos:t}=ns(a,t,e,s,16,i,r,!1,o,!n),l===null&&(n?o.invalidEscapeSequence(h,e,s):t=h-1),{code:l,pos:t}}function ns(a,t,e,s,i,r,n,o,h,l){let c=t,u=i===16?$t.hex:$t.decBinOct,f=i===16?Ie.hex:i===10?Ie.dec:i===8?Ie.oct:Ie.bin,d=!1,x=0;for(let I=0,C=r??1/0;I=97?N=E-97+10:E>=65?N=E-65+10:ji(E)?N=E-48:N=1/0,N>=i){if(N<=9&&l)return{n:null,pos:t};if(N<=9&&h.invalidDigit(t,e,s,i))N=0;else if(n)N=0,d=!0;else break}++t,x=x*i+N}return t===c||r!=null&&t-c!==r||d?{n:null,pos:t}:{n:x,pos:t}}function os(a,t,e,s,i,r){let n=a.charCodeAt(t),o;if(n===123){if(++t,{code:o,pos:t}=nt(a,t,e,s,a.indexOf("}",t)-t,!0,i,r),++t,o!==null&&o>1114111)if(i)r.invalidCodePoint(t,e,s);else return{code:null,pos:t}}else({code:o,pos:t}=nt(a,t,e,s,4,!1,i,r));return{code:o,pos:t}}var zi=["at"],Ki=["at"];function fe(a,t,e){return new F(e,a-t,a)}var qi=new Set([103,109,115,105,121,117,100,118]),O=class{constructor(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new ie(t.startLoc,t.endLoc)}},ot=class extends rt{constructor(t,e){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(s,i,r,n)=>this.options.errorRecovery?(this.raise(p.InvalidDigit,{at:fe(s,i,r),radix:n}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(p.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(p.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(p.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(p.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(s,i,r)=>{this.recordStrictModeErrors(p.StrictNumericEscape,{at:fe(s,i,r)})},unterminated:(s,i,r)=>{throw this.raise(p.UnterminatedString,{at:fe(s-1,i,r)})}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(p.StrictNumericEscape),unterminated:(s,i,r)=>{throw this.raise(p.UnterminatedTemplate,{at:fe(s,i,r)})}}),this.state=new at,this.state.init(t),this.input=e,this.length=e.length,this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new O(this.state)),this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return this.match(t)?(this.next(),!0):!1}match(t){return this.state.type===t}createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){let t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let e=this.state;return this.state=t,e}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return We.lastIndex=t,We.test(this.input)?We.lastIndex:t}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(t){return ke.lastIndex=t,ke.test(this.input)?ke.lastIndex:t}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(t){let e=this.input.charCodeAt(t);if((e&64512)===55296&&++tthis.raise(e,{at:s})),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(137);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(t){let e;this.isLookahead||(e=this.state.curPosition());let s=this.state.pos,i=this.input.indexOf(t,s+2);if(i===-1)throw this.raise(p.UnterminatedComment,{at:this.state.curPosition()});for(this.state.pos=i+t.length,Ee.lastIndex=s+2;Ee.test(this.input)&&Ee.lastIndex<=i;)++this.state.curLine,this.state.lineStart=Ee.lastIndex;if(this.isLookahead)return;let r={type:"CommentBlock",value:this.input.slice(s+2,i),start:s,end:i+t.length,loc:new ie(e,this.state.curPosition())};return this.options.tokens&&this.pushToken(r),r}skipLineComment(t){let e=this.state.pos,s;this.isLookahead||(s=this.state.curPosition());let i=this.input.charCodeAt(this.state.pos+=t);if(this.state.post)){let r=this.skipLineComment(3);r!==void 0&&(this.addComment(r),this.options.attachComment&&e.push(r))}else break e}else if(s===60&&!this.inModule&&this.options.annexB){let i=this.state.pos;if(this.input.charCodeAt(i+1)===33&&this.input.charCodeAt(i+2)===45&&this.input.charCodeAt(i+3)===45){let r=this.skipLineComment(4);r!==void 0&&(this.addComment(r),this.options.attachComment&&e.push(r))}else break e}else break e}}if(e.length>0){let s=this.state.pos,i={start:t,end:s,comments:e,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(i)}}finishToken(t,e){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let s=this.state.type;this.state.type=t,this.state.value=e,this.isLookahead||this.updateContext(s)}replaceToken(t){this.state.type=t,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let t=this.state.pos+1,e=this.codePointAtPos(t);if(e>=48&&e<=57)throw this.raise(p.UnexpectedDigitAfterHash,{at:this.state.curPosition()});if(e===123||e===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(e===123?p.RecordExpressionHashIncorrectStartSyntaxType:p.TupleExpressionHashIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,e===123?this.finishToken(7):this.finishToken(1)}else j(e)?(++this.state.pos,this.finishToken(136,this.readWord1(e))):e===92?(++this.state.pos,this.finishToken(136,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let t=this.input.charCodeAt(this.state.pos+1);if(t>=48&&t<=57){this.readNumber(!0);return}t===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let t=this.input.charCodeAt(this.state.pos+1);if(t!==33)return!1;let e=this.state.pos;for(this.state.pos+=1;!xe(t)&&++this.state.pos=48&&e<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(t){switch(t){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(p.TupleExpressionBarIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(p.RecordExpressionBarIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let e=this.input.charCodeAt(this.state.pos+1);if(e===120||e===88){this.readRadixNumber(16);return}if(e===111||e===79){this.readRadixNumber(8);return}if(e===98||e===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(t);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(t);return;case 124:case 38:this.readToken_pipe_amp(t);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(t);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(t);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(j(t)){this.readWord(t);return}}throw this.raise(p.InvalidOrUnexpectedToken,{at:this.state.curPosition(),unexpected:String.fromCodePoint(t)})}finishOp(t,e){let s=this.input.slice(this.state.pos,this.state.pos+e);this.state.pos+=e,this.finishToken(t,s)}readRegexp(){let t=this.state.startLoc,e=this.state.start+1,s,i,{pos:r}=this.state;for(;;++r){if(r>=this.length)throw this.raise(p.UnterminatedRegExp,{at:L(t,1)});let l=this.input.charCodeAt(r);if(xe(l))throw this.raise(p.UnterminatedRegExp,{at:L(t,1)});if(s)s=!1;else{if(l===91)i=!0;else if(l===93&&i)i=!1;else if(l===47&&!i)break;s=l===92}}let n=this.input.slice(e,r);++r;let o="",h=()=>L(t,r+2-e);for(;r=2&&this.input.charCodeAt(e)===48;if(l){let d=this.input.slice(e,this.state.pos);if(this.recordStrictModeErrors(p.StrictOctalLiteral,{at:s}),!this.state.strict){let x=d.indexOf("_");x>0&&this.raise(p.ZeroDigitNumericSeparator,{at:L(s,x)})}h=l&&!/[89]/.test(d)}let c=this.input.charCodeAt(this.state.pos);if(c===46&&!h&&(++this.state.pos,this.readInt(10),i=!0,c=this.input.charCodeAt(this.state.pos)),(c===69||c===101)&&!h&&(c=this.input.charCodeAt(++this.state.pos),(c===43||c===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(p.InvalidOrMissingExponent,{at:s}),i=!0,o=!0,c=this.input.charCodeAt(this.state.pos)),c===110&&((i||l)&&this.raise(p.InvalidBigIntLiteral,{at:s}),++this.state.pos,r=!0),c===109&&(this.expectPlugin("decimal",this.state.curPosition()),(o||l)&&this.raise(p.InvalidDecimal,{at:s}),++this.state.pos,n=!0),j(this.codePointAtPos(this.state.pos)))throw this.raise(p.NumberIdentifier,{at:this.state.curPosition()});let u=this.input.slice(e,this.state.pos).replace(/[_mn]/g,"");if(r){this.finishToken(133,u);return}if(n){this.finishToken(134,u);return}let f=h?parseInt(u,8):parseFloat(u);this.finishToken(132,f)}readCodePoint(t){let{code:e,pos:s}=os(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,this.errorHandlers_readCodePoint);return this.state.pos=s,e}readString(t){let{str:e,pos:s,curLine:i,lineStart:r}=Vt(t===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=s+1,this.state.lineStart=r,this.state.curLine=i,this.finishToken(131,e)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let t=this.input[this.state.pos],{str:e,firstInvalidLoc:s,pos:i,curLine:r,lineStart:n}=Vt("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=i+1,this.state.lineStart=n,this.state.curLine=r,s&&(this.state.firstInvalidTemplateEscapePos=new F(s.curLine,s.pos-s.lineStart,s.pos)),this.input.codePointAt(i)===96?this.finishToken(24,s?null:t+e+"`"):(this.state.pos++,this.finishToken(25,s?null:t+e+"${"))}recordStrictModeErrors(t,{at:e}){let s=e.index;this.state.strict&&!this.state.strictErrors.has(s)?this.raise(t,{at:e}):this.state.strictErrors.set(s,[t,e])}readWord1(t){this.state.containsEsc=!1;let e="",s=this.state.pos,i=this.state.pos;for(t!==void 0&&(this.state.pos+=t<=65535?1:2);this.state.pos=0;h--){let l=o[h];if(l.loc.index===n)return o[h]=t({loc:r,details:i});if(l.loc.indexthis.hasPlugin(e)))throw this.raise(p.MissingOneOfPlugins,{at:this.state.startLoc,missingPlugin:t})}errorBuilder(t){return(e,s,i)=>{this.raise(t,{at:fe(e,s,i)})}}},ht=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},lt=class{constructor(t){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new ht)}exit(){let t=this.stack.pop(),e=this.current();for(let[s,i]of Array.from(t.undefinedPrivateNames))e?e.undefinedPrivateNames.has(s)||e.undefinedPrivateNames.set(s,i):this.parser.raise(p.InvalidPrivateFieldResolution,{at:i,identifierName:s})}declarePrivateName(t,e,s){let{privateNames:i,loneAccessors:r,undefinedPrivateNames:n}=this.current(),o=i.has(t);if(e&3){let h=o&&r.get(t);if(h){let l=h&4,c=e&4,u=h&3,f=e&3;o=u===f||l!==c,o||r.delete(t)}else o||r.set(t,e)}o&&this.parser.raise(p.PrivateNameRedeclaration,{at:s,identifierName:t}),i.add(t),n.delete(t)}usePrivateName(t,e){let s;for(s of this.stack)if(s.privateNames.has(t))return;s?s.undefinedPrivateNames.set(t,e):this.parser.raise(p.InvalidPrivateFieldResolution,{at:e,identifierName:t})}},re=class{constructor(t=0){this.type=t}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},Oe=class extends re{constructor(t){super(t),this.declarationErrors=new Map}recordDeclarationError(t,{at:e}){let s=e.index;this.declarationErrors.set(s,[t,e])}clearDeclarationError(t){this.declarationErrors.delete(t)}iterateErrors(t){this.declarationErrors.forEach(t)}},ct=class{constructor(t){this.parser=void 0,this.stack=[new re],this.parser=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,{at:e}){let s={at:e.loc.start},{stack:i}=this,r=i.length-1,n=i[r];for(;!n.isCertainlyParameterDeclaration();){if(n.canBeArrowParameterDeclaration())n.recordDeclarationError(t,s);else return;n=i[--r]}this.parser.raise(t,s)}recordArrowParameterBindingError(t,{at:e}){let{stack:s}=this,i=s[s.length-1],r={at:e.loc.start};if(i.isCertainlyParameterDeclaration())this.parser.raise(t,r);else if(i.canBeArrowParameterDeclaration())i.recordDeclarationError(t,r);else return}recordAsyncArrowParametersError({at:t}){let{stack:e}=this,s=e.length-1,i=e[s];for(;i.canBeArrowParameterDeclaration();)i.type===2&&i.recordDeclarationError(p.AwaitBindingIdentifier,{at:t}),i=e[--s]}validateAsPattern(){let{stack:t}=this,e=t[t.length-1];e.canBeArrowParameterDeclaration()&&e.iterateErrors(([s,i])=>{this.parser.raise(s,{at:i});let r=t.length-2,n=t[r];for(;n.canBeArrowParameterDeclaration();)n.clearDeclarationError(i.index),n=t[--r]})}};function Hi(){return new re(3)}function Wi(){return new Oe(1)}function Ji(){return new Oe(2)}function hs(){return new re}var te=0,ls=1,Be=2,cs=4,Q=8,pt=class{constructor(){this.stacks=[]}enter(t){this.stacks.push(t)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&Be)>0}get hasYield(){return(this.currentFlags()&ls)>0}get hasReturn(){return(this.currentFlags()&cs)>0}get hasIn(){return(this.currentFlags()&Q)>0}};function ve(a,t){return(a?Be:0)|(t?ls:0)}var ut=class extends ot{addExtra(t,e,s,i=!0){if(!t)return;let r=t.extra=t.extra||{};i?r[e]=s:Object.defineProperty(r,e,{enumerable:i,value:s})}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,e){let s=t+e.length;if(this.input.slice(t,s)===e){let i=this.input.charCodeAt(s);return!(ee(i)||(i&64512)===55296)}return!1}isLookaheadContextual(t){let e=this.nextTokenStart();return this.isUnparsedContextual(e,t)}eatContextual(t){return this.isContextual(t)?(this.next(),!0):!1}expectContextual(t,e){if(!this.eatContextual(t)){if(e!=null)throw this.raise(e,{at:this.state.startLoc});this.unexpected(null,t)}}canInsertSemicolon(){return this.match(137)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return as.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}hasFollowingLineBreak(){return jt.lastIndex=this.state.end,jt.test(this.input)}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise(p.MissingSemicolon,{at:this.state.lastTokEndLoc})}expect(t,e){this.eat(t)||this.unexpected(e,t)}tryParse(t,e=this.state.clone()){let s={node:null};try{let i=t((r=null)=>{throw s.node=r,s});if(this.state.errors.length>e.errors.length){let r=this.state;return this.state=e,this.state.tokensLength=r.tokensLength,{node:i,error:r.errors[e.errors.length],thrown:!1,aborted:!1,failState:r}}return{node:i,error:null,thrown:!1,aborted:!1,failState:null}}catch(i){let r=this.state;if(this.state=e,i instanceof SyntaxError)return{node:null,error:i,thrown:!0,aborted:!1,failState:r};if(i===s)return{node:s.node,error:null,thrown:!1,aborted:!0,failState:r};throw i}}checkExpressionErrors(t,e){if(!t)return!1;let{shorthandAssignLoc:s,doubleProtoLoc:i,privateKeyLoc:r,optionalParametersLoc:n}=t,o=!!s||!!i||!!n||!!r;if(!e)return o;s!=null&&this.raise(p.InvalidCoverInitializedName,{at:s}),i!=null&&this.raise(p.DuplicateProto,{at:i}),r!=null&&this.raise(p.UnexpectedPrivateField,{at:r}),n!=null&&this.unexpected(n)}isLiteralPropertyName(){return Yt(this.state.type)}isPrivateName(t){return t.type==="PrivateName"}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return(t.type==="MemberExpression"||t.type==="OptionalMemberExpression")&&this.isPrivateName(t.property)}isObjectProperty(t){return t.type==="ObjectProperty"}isObjectMethod(t){return t.type==="ObjectMethod"}initializeScopes(t=this.options.sourceType==="module"){let e=this.state.labels;this.state.labels=[];let s=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let i=this.inModule;this.inModule=t;let r=this.scope,n=this.getScopeHandler();this.scope=new n(this,t);let o=this.prodParam;this.prodParam=new pt;let h=this.classScope;this.classScope=new lt(this);let l=this.expressionScope;return this.expressionScope=new ct(this),()=>{this.state.labels=e,this.exportedIdentifiers=s,this.inModule=i,this.scope=r,this.prodParam=o,this.classScope=h,this.expressionScope=l}}enterInitialScopes(){let t=te;this.inModule&&(t|=Be),this.scope.enter(1),this.prodParam.enter(t)}checkDestructuringPrivate(t){let{privateKeyLoc:e}=t;e!==null&&this.expectPlugin("destructuringPrivate",e)}},se=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}},ae=class{constructor(t,e,s){this.type="",this.start=e,this.end=0,this.loc=new ie(s),t!=null&&t.options.ranges&&(this.range=[e,0]),t!=null&&t.filename&&(this.loc.filename=t.filename)}},Nt=ae.prototype;Nt.__clone=function(){let a=new ae(void 0,this.start,this.loc.start),t=Object.keys(this);for(let e=0,s=t.length;e`Cannot overwrite reserved type ${a}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:a,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${a} = true,\` or \`${a} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:a,enumName:t})=>`Enum member names need to be unique, but the name \`${a}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:a})=>`Enum \`${a}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:a,enumName:t})=>`Enum type \`${a}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:a})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${a}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:a,memberName:t,explicitType:e})=>`Enum \`${a}\` has type \`${e}\`, so the initializer of \`${t}\` needs to be a ${e} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:a,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${a}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:a,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${a}\`.`,EnumInvalidMemberName:({enumName:a,memberName:t,suggestion:e})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${e}\`, in enum \`${a}\`.`,EnumNumberMemberNotInitialized:({enumName:a,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${a}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:a})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${a}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:a})=>`Unexpected reserved type ${a}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of ` async () => {}`, use `async () => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:a,suggestion:t})=>`\`declare export ${a}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function Qi(a){return a.type==="DeclareExportAllDeclaration"||a.type==="DeclareExportDeclaration"&&(!a.declaration||a.declaration.type!=="TypeAlias"&&a.declaration.type!=="InterfaceDeclaration")}function zt(a){return a.importKind==="type"||a.importKind==="typeof"}var Zi={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function er(a,t){let e=[],s=[];for(let i=0;iclass extends a{constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return st}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(e,s){e!==131&&e!==13&&e!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(e,s)}addComment(e){if(this.flowPragma===void 0){let s=tr.exec(e.value);if(s)if(s[1]==="flow")this.flowPragma="flow";else if(s[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(e)}flowParseTypeInitialiser(e){let s=this.state.inType;this.state.inType=!0,this.expect(e||14);let i=this.flowParseType();return this.state.inType=s,i}flowParsePredicate(){let e=this.startNode(),s=this.state.startLoc;return this.next(),this.expectContextual(108),this.state.lastTokStart>s.index+1&&this.raise(g.UnexpectedSpaceBetweenModuloChecks,{at:s}),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let e=this.state.inType;this.state.inType=!0,this.expect(14);let s=null,i=null;return this.match(54)?(this.state.inType=e,i=this.flowParsePredicate()):(s=this.flowParseType(),this.state.inType=e,this.match(54)&&(i=this.flowParsePredicate())),[s,i]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();let s=e.id=this.parseIdentifier(),i=this.startNode(),r=this.startNode();this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,this.expect(10);let n=this.flowParseFunctionTypeParams();return i.params=n.params,i.rest=n.rest,i.this=n._this,this.expect(11),[i.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.typeAnnotation=this.finishNode(i,"FunctionTypeAnnotation"),s.typeAnnotation=this.finishNode(r,"TypeAnnotation"),this.resetEndLocation(s),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,s){if(this.match(80))return this.flowParseDeclareClass(e);if(this.match(68))return this.flowParseDeclareFunction(e);if(this.match(74))return this.flowParseDeclareVariable(e);if(this.eatContextual(125))return this.match(16)?this.flowParseDeclareModuleExports(e):(s&&this.raise(g.NestedDeclareModule,{at:this.state.lastTokStartLoc}),this.flowParseDeclareModule(e));if(this.isContextual(128))return this.flowParseDeclareTypeAlias(e);if(this.isContextual(129))return this.flowParseDeclareOpaqueType(e);if(this.isContextual(127))return this.flowParseDeclareInterface(e);if(this.match(82))return this.flowParseDeclareExportDeclaration(e,s);this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(131)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();let s=e.body=this.startNode(),i=s.body=[];for(this.expect(5);!this.match(8);){let o=this.startNode();this.match(83)?(this.next(),!this.isContextual(128)&&!this.match(87)&&this.raise(g.InvalidNonTypeImportInDeclareModule,{at:this.state.lastTokStartLoc}),super.parseImport(o)):(this.expectContextual(123,g.UnsupportedStatementInDeclareModule),o=this.flowParseDeclare(o,!0)),i.push(o)}this.scope.exit(),this.expect(8),this.finishNode(s,"BlockStatement");let r=null,n=!1;return i.forEach(o=>{Qi(o)?(r==="CommonJS"&&this.raise(g.AmbiguousDeclareModuleKind,{at:o}),r="ES"):o.type==="DeclareModuleExports"&&(n&&this.raise(g.DuplicateDeclareModuleExports,{at:o}),r==="ES"&&this.raise(g.AmbiguousDeclareModuleKind,{at:o}),r="CommonJS",n=!0)}),e.kind=r||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,s){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(128)||this.isContextual(127))&&!s){let i=this.state.value;throw this.raise(g.UnsupportedDeclareExportKind,{at:this.state.startLoc,unsupportedExportKind:i,suggestion:Zi[i]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(129))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(127)||this.isContextual(128)||this.isContextual(129))return e=this.parseExport(e,null),e.type==="ExportNamedDeclaration"&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e;this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(109),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();let s=this.flowParseTypeAlias(e);return s.type="DeclareTypeAlias",s}flowParseDeclareOpaqueType(e){this.next();let s=this.flowParseOpaqueType(e,!0);return s.type="DeclareOpaqueType",s}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,s){if(e.id=this.flowParseRestrictedIdentifier(!s,!0),this.scope.declareName(e.id.name,s?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(!s&&this.eat(12));if(s){if(e.implements=[],e.mixins=[],this.eatContextual(115))do e.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(111))do e.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:s,allowExact:!1,allowSpread:!1,allowProto:s,allowInexact:!1})}flowParseInterfaceExtends(){let e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){e==="_"&&this.raise(g.UnexpectedReservedUnderscore,{at:this.state.startLoc})}checkReservedType(e,s,i){Yi.has(e)&&this.raise(i?g.AssignReservedType:g.UnexpectedReservedType,{at:s,reservedType:e})}flowParseRestrictedIdentifier(e,s){return this.checkReservedType(this.state.value,this.state.startLoc,s),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,s){return this.expectContextual(128),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,s||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=!1){let s=this.state.startLoc,i=this.startNode(),r=this.flowParseVariance(),n=this.flowParseTypeAnnotatableIdentifier();return i.name=n.name,i.variance=r,i.bound=n.typeAnnotation,this.match(29)?(this.eat(29),i.default=this.flowParseType()):e&&this.raise(g.MissingTypeParamDefault,{at:s}),this.finishNode(i,"TypeParameter")}flowParseTypeParameterDeclaration(){let e=this.state.inType,s=this.startNode();s.params=[],this.state.inType=!0,this.match(47)||this.match(140)?this.next():this.unexpected();let i=!1;do{let r=this.flowParseTypeParameter(i);s.params.push(r),r.default&&(i=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(s,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){let e=this.startNode(),s=this.state.inType;e.params=[],this.state.inType=!0,this.expect(47);let i=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=i,this.expect(48),this.state.inType=s,this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){let e=this.startNode(),s=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=s,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){let e=this.startNode();if(this.expectContextual(127),e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(132)||this.match(131)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,s,i){return e.static=s,this.lookahead().type===14?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=i,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,s){return e.static=s,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,s){let i=this.startNode();return e.static=s,e.value=this.flowParseObjectTypeMethodish(i),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:s,allowSpread:i,allowProto:r,allowInexact:n}){let o=this.state.inType;this.state.inType=!0;let h=this.startNode();h.callProperties=[],h.properties=[],h.indexers=[],h.internalSlots=[];let l,c,u=!1;for(s&&this.match(6)?(this.expect(6),l=9,c=!0):(this.expect(5),l=8,c=!1),h.exact=c;!this.match(l);){let d=!1,x=null,I=null,C=this.startNode();if(r&&this.isContextual(116)){let N=this.lookahead();N.type!==14&&N.type!==17&&(this.next(),x=this.state.startLoc,e=!1)}if(e&&this.isContextual(104)){let N=this.lookahead();N.type!==14&&N.type!==17&&(this.next(),d=!0)}let E=this.flowParseVariance();if(this.eat(0))x!=null&&this.unexpected(x),this.eat(0)?(E&&this.unexpected(E.loc.start),h.internalSlots.push(this.flowParseObjectTypeInternalSlot(C,d))):h.indexers.push(this.flowParseObjectTypeIndexer(C,d,E));else if(this.match(10)||this.match(47))x!=null&&this.unexpected(x),E&&this.unexpected(E.loc.start),h.callProperties.push(this.flowParseObjectTypeCallProperty(C,d));else{let N="init";if(this.isContextual(98)||this.isContextual(103)){let ce=this.lookahead();Yt(ce.type)&&(N=this.state.value,this.next())}let Ce=this.flowParseObjectTypeProperty(C,d,x,E,N,i,n??!c);Ce===null?(u=!0,I=this.state.lastTokStartLoc):h.properties.push(Ce)}this.flowObjectTypeSemicolon(),I&&!this.match(8)&&!this.match(9)&&this.raise(g.UnexpectedExplicitInexactInObject,{at:I})}this.expect(l),i&&(h.inexact=u);let f=this.finishNode(h,"ObjectTypeAnnotation");return this.state.inType=o,f}flowParseObjectTypeProperty(e,s,i,r,n,o,h){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?h||this.raise(g.InexactInsideExact,{at:this.state.lastTokStartLoc}):this.raise(g.InexactInsideNonObject,{at:this.state.lastTokStartLoc}),r&&this.raise(g.InexactVariance,{at:r}),null):(o||this.raise(g.UnexpectedSpreadType,{at:this.state.lastTokStartLoc}),i!=null&&this.unexpected(i),r&&this.raise(g.SpreadVariance,{at:r}),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=s,e.proto=i!=null,e.kind=n;let l=!1;return this.match(47)||this.match(10)?(e.method=!0,i!=null&&this.unexpected(i),r&&this.unexpected(r.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),(n==="get"||n==="set")&&this.flowCheckGetterSetterParams(e),!o&&e.key.name==="constructor"&&e.value.this&&this.raise(g.ThisParamBannedInConstructor,{at:e.value.this})):(n!=="init"&&this.unexpected(),e.method=!1,this.eat(17)&&(l=!0),e.value=this.flowParseTypeInitialiser(),e.variance=r),e.optional=l,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){let s=e.kind==="get"?0:1,i=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise(e.kind==="get"?g.GetterMayNotHaveThisParam:g.SetterMayNotHaveThisParam,{at:e.value.this}),i!==s&&this.raise(e.kind==="get"?p.BadGetterArity:p.BadSetterArity,{at:e}),e.kind==="set"&&e.value.rest&&this.raise(p.BadSetterRestParameter,{at:e})}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(e,s){var i;(i=e)!=null||(e=this.state.startLoc);let r=s||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let n=this.startNodeAt(e);n.qualification=r,n.id=this.flowParseRestrictedIdentifier(!0),r=this.finishNode(n,"QualifiedTypeIdentifier")}return r}flowParseGenericType(e,s){let i=this.startNodeAt(e);return i.typeParameters=null,i.id=this.flowParseQualifiedTypeIdentifier(e,s),this.match(47)&&(i.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(i,"GenericTypeAnnotation")}flowParseTypeofType(){let e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){let e=this.startNode();for(e.types=[],this.expect(0);this.state.possuper.parseFunctionBody(e,!0,i));return}super.parseFunctionBody(e,!1,i)}parseFunctionBodyAndFinish(e,s,i=!1){if(this.match(14)){let r=this.startNode();[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=r.typeAnnotation?this.finishNode(r,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,s,i)}parseStatementLike(e){if(this.state.strict&&this.isContextual(127)){let i=this.lookahead();if(M(i.type)){let r=this.startNode();return this.next(),this.flowParseInterface(r)}}else if(this.shouldParseEnums()&&this.isContextual(124)){let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}let s=super.parseStatementLike(e);return this.flowPragma===void 0&&!this.isValidDirective(s)&&(this.flowPragma=null),s}parseExpressionStatement(e,s,i){if(s.type==="Identifier"){if(s.name==="declare"){if(this.match(80)||S(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(S(this.state.type)){if(s.name==="interface")return this.flowParseInterface(e);if(s.name==="type")return this.flowParseTypeAlias(e);if(s.name==="opaque")return this.flowParseOpaqueType(e,!1)}}return super.parseExpressionStatement(e,s,i)}shouldParseExportDeclaration(){let{type:e}=this.state;return Ut(e)||this.shouldParseEnums()&&e===124?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:e}=this.state;return Ut(e)||this.shouldParseEnums()&&e===124?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(124)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,s,i){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let f=this.lookaheadCharCode();if(f===44||f===61||f===58||f===41)return this.setOptionalParametersError(i),e}this.expect(17);let r=this.state.clone(),n=this.state.noArrowAt,o=this.startNodeAt(s),{consequent:h,failed:l}=this.tryParseConditionalConsequent(),[c,u]=this.getArrowLikeExpressions(h);if(l||u.length>0){let f=[...n];if(u.length>0){this.state=r,this.state.noArrowAt=f;for(let d=0;d1&&this.raise(g.AmbiguousConditionalArrow,{at:r.startLoc}),l&&c.length===1&&(this.state=r,f.push(c[0].start),this.state.noArrowAt=f,{consequent:h,failed:l}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(h,!0),this.state.noArrowAt=n,this.expect(14),o.test=e,o.consequent=h,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let e=this.parseMaybeAssignAllowIn(),s=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:s}}getArrowLikeExpressions(e,s){let i=[e],r=[];for(;i.length!==0;){let n=i.pop();n.type==="ArrowFunctionExpression"?(n.typeParameters||!n.returnType?this.finishArrowValidation(n):r.push(n),i.push(n.body)):n.type==="ConditionalExpression"&&(i.push(n.consequent),i.push(n.alternate))}return s?(r.forEach(n=>this.finishArrowValidation(n)),[r,[]]):er(r,n=>n.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(e){var s;this.toAssignableList(e.params,(s=e.extra)==null?void 0:s.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,s){let i;return this.state.noArrowParamsConversionAt.indexOf(e.start)!==-1?(this.state.noArrowParamsConversionAt.push(this.state.start),i=s(),this.state.noArrowParamsConversionAt.pop()):i=s(),i}parseParenItem(e,s){if(e=super.parseParenItem(e,s),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){let i=this.startNodeAt(s);return i.expression=e,i.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(i,"TypeCastExpression")}return e}assertModuleNodeAllowed(e){e.type==="ImportDeclaration"&&(e.importKind==="type"||e.importKind==="typeof")||e.type==="ExportNamedDeclaration"&&e.exportKind==="type"||e.type==="ExportAllDeclaration"&&e.exportKind==="type"||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(128)){e.exportKind="type";let s=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(s)}else if(this.isContextual(129)){e.exportKind="type";let s=this.startNode();return this.next(),this.flowParseOpaqueType(s,!1)}else if(this.isContextual(127)){e.exportKind="type";let s=this.startNode();return this.next(),this.flowParseInterface(s)}else if(this.shouldParseEnums()&&this.isContextual(124)){e.exportKind="value";let s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}else return super.parseExportDeclaration(e)}eatExportStar(e){return super.eatExportStar(e)?!0:this.isContextual(128)&&this.lookahead().type===55?(e.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(e){let{startLoc:s}=this.state,i=super.maybeParseExportNamespaceSpecifier(e);return i&&e.exportKind==="type"&&this.unexpected(s),i}parseClassId(e,s,i){super.parseClassId(e,s,i),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,s,i){let{startLoc:r}=this.state;if(this.isContextual(123)){if(super.parseClassMemberFromModifier(e,s))return;s.declare=!0}super.parseClassMember(e,s,i),s.declare&&(s.type!=="ClassProperty"&&s.type!=="ClassPrivateProperty"&&s.type!=="PropertyDefinition"?this.raise(g.DeclareClassElement,{at:r}):s.value&&this.raise(g.DeclareClassFieldInitializer,{at:s.value}))}isIterator(e){return e==="iterator"||e==="asyncIterator"}readIterator(){let e=super.readWord1(),s="@@"+e;(!this.isIterator(e)||!this.state.inType)&&this.raise(p.InvalidIdentifier,{at:this.state.curPosition(),identifierName:s}),this.finishToken(130,s)}getTokenFromCode(e){let s=this.input.charCodeAt(this.state.pos+1);e===123&&s===124?this.finishOp(6,2):this.state.inType&&(e===62||e===60)?this.finishOp(e===62?48:47,1):this.state.inType&&e===63?s===46?this.finishOp(18,2):this.finishOp(17,1):Fi(e,s,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e)}isAssignable(e,s){return e.type==="TypeCastExpression"?this.isAssignable(e.expression,s):super.isAssignable(e,s)}toAssignable(e,s=!1){!s&&e.type==="AssignmentExpression"&&e.left.type==="TypeCastExpression"&&(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,s)}toAssignableList(e,s,i){for(let r=0;r1||!s)&&this.raise(g.TypeCastInPattern,{at:n.typeAnnotation})}return e}parseArrayLike(e,s,i,r){let n=super.parseArrayLike(e,s,i,r);return s&&!this.state.maybeInArrowParameters&&this.toReferencedList(n.elements),n}isValidLVal(e,s,i){return e==="TypeCastExpression"||super.isValidLVal(e,s,i)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,s,i,r,n,o){if(s.variance&&this.unexpected(s.variance.loc.start),delete s.variance,this.match(47)&&(s.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,s,i,r,n,o),s.params&&n){let h=s.params;h.length>0&&this.isThisParam(h[0])&&this.raise(g.ThisParamBannedInConstructor,{at:s})}else if(s.type==="MethodDefinition"&&n&&s.value.params){let h=s.value.params;h.length>0&&this.isThisParam(h[0])&&this.raise(g.ThisParamBannedInConstructor,{at:s})}}pushClassPrivateMethod(e,s,i,r){s.variance&&this.unexpected(s.variance.loc.start),delete s.variance,this.match(47)&&(s.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,s,i,r)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&this.match(47)&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(111)){this.next();let s=e.implements=[];do{let i=this.startNode();i.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?i.typeParameters=this.flowParseTypeParameterInstantiation():i.typeParameters=null,s.push(this.finishNode(i,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);let s=this.getObjectOrClassMethodParams(e);if(s.length>0){let i=s[0];this.isThisParam(i)&&e.kind==="get"?this.raise(g.GetterMayNotHaveThisParam,{at:i}):this.isThisParam(i)&&this.raise(g.SetterMayNotHaveThisParam,{at:i})}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,s,i,r,n,o,h){e.variance&&this.unexpected(e.variance.loc.start),delete e.variance;let l;this.match(47)&&!o&&(l=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let c=super.parseObjPropValue(e,s,i,r,n,o,h);return l&&((c.value||c).typeParameters=l),c}parseAssignableListItemTypes(e){return this.eat(17)&&(e.type!=="Identifier"&&this.raise(g.PatternIsOptional,{at:e}),this.isThisParam(e)&&this.raise(g.ThisParamMayNotBeOptional,{at:e}),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(g.ThisParamAnnotationRequired,{at:e}),this.match(29)&&this.isThisParam(e)&&this.raise(g.ThisParamNoDefault,{at:e}),this.resetEndLocation(e),e}parseMaybeDefault(e,s){let i=super.parseMaybeDefault(e,s);return i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.startsuper.parseMaybeAssign(e,s),r),!n.error)return n.node;let{context:l}=this.state,c=l[l.length-1];(c===w.j_oTag||c===w.j_expr)&&l.pop()}if((i=n)!=null&&i.error||this.match(47)){var o,h;r=r||this.state.clone();let l,c=this.tryParse(f=>{var d;l=this.flowParseTypeParameterDeclaration();let x=this.forwardNoArrowParamsConversionAt(l,()=>{let C=super.parseMaybeAssign(e,s);return this.resetStartLocationFromNode(C,l),C});(d=x.extra)!=null&&d.parenthesized&&f();let I=this.maybeUnwrapTypeCastExpression(x);return I.type!=="ArrowFunctionExpression"&&f(),I.typeParameters=l,this.resetStartLocationFromNode(I,l),x},r),u=null;if(c.node&&this.maybeUnwrapTypeCastExpression(c.node).type==="ArrowFunctionExpression"){if(!c.error&&!c.aborted)return c.node.async&&this.raise(g.UnexpectedTypeParameterBeforeAsyncArrowFunction,{at:l}),c.node;u=c.node}if((o=n)!=null&&o.node)return this.state=n.failState,n.node;if(u)return this.state=c.failState,u;throw(h=n)!=null&&h.thrown?n.error:c.thrown?c.error:this.raise(g.UnexpectedTokenAfterTypeParameter,{at:l})}return super.parseMaybeAssign(e,s)}parseArrow(e){if(this.match(14)){let s=this.tryParse(()=>{let i=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let r=this.startNode();return[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=i,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),r});if(s.thrown)return null;s.error&&(this.state=s.failState),e.returnType=s.node.typeAnnotation?this.finishNode(s.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,s){this.state.noArrowParamsConversionAt.indexOf(e.start)!==-1?e.params=s:super.setArrowFunctionParameters(e,s)}checkParams(e,s,i,r=!0){if(!(i&&this.state.noArrowParamsConversionAt.indexOf(e.start)!==-1)){for(let n=0;n0&&this.raise(g.ThisParamMustBeFirst,{at:e.params[n]});super.checkParams(e,s,i,r)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&this.state.noArrowAt.indexOf(this.state.start)===-1)}parseSubscripts(e,s,i){if(e.type==="Identifier"&&e.name==="async"&&this.state.noArrowAt.indexOf(s.index)!==-1){this.next();let r=this.startNodeAt(s);r.callee=e,r.arguments=super.parseCallExpressionArguments(11,!1),e=this.finishNode(r,"CallExpression")}else if(e.type==="Identifier"&&e.name==="async"&&this.match(47)){let r=this.state.clone(),n=this.tryParse(h=>this.parseAsyncArrowWithTypeParameters(s)||h(),r);if(!n.error&&!n.aborted)return n.node;let o=this.tryParse(()=>super.parseSubscripts(e,s,i),r);if(o.node&&!o.error)return o.node;if(n.node)return this.state=n.failState,n.node;if(o.node)return this.state=o.failState,o.node;throw n.error||o.error}return super.parseSubscripts(e,s,i)}parseSubscript(e,s,i,r){if(this.match(18)&&this.isLookaheadToken_lt()){if(r.optionalChainMember=!0,i)return r.stop=!0,e;this.next();let n=this.startNodeAt(s);return n.callee=e,n.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),n.arguments=this.parseCallExpressionArguments(11,!1),n.optional=!0,this.finishCallExpression(n,!0)}else if(!i&&this.shouldParseTypes()&&this.match(47)){let n=this.startNodeAt(s);n.callee=e;let o=this.tryParse(()=>(n.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),n.arguments=super.parseCallExpressionArguments(11,!1),r.optionalChainMember&&(n.optional=!1),this.finishCallExpression(n,r.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(e,s,i,r)}parseNewCallee(e){super.parseNewCallee(e);let s=null;this.shouldParseTypes()&&this.match(47)&&(s=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),e.typeArguments=s}parseAsyncArrowWithTypeParameters(e){let s=this.startNodeAt(e);if(this.parseFunctionParams(s,!1),!!this.parseArrow(s))return super.parseArrowExpression(s,void 0,!0)}readToken_mult_modulo(e){let s=this.input.charCodeAt(this.state.pos+1);if(e===42&&s===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(e)}readToken_pipe_amp(e){let s=this.input.charCodeAt(this.state.pos+1);if(e===124&&s===125){this.finishOp(9,2);return}super.readToken_pipe_amp(e)}parseTopLevel(e,s){let i=super.parseTopLevel(e,s);return this.state.hasFlowComment&&this.raise(g.UnterminatedFlowComment,{at:this.state.curPosition()}),i}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(g.NestedFlowComment,{at:this.state.startLoc});this.hasFlowCommentCompletion();let e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:e}=this.state,s=2;for(;[32,9].includes(this.input.charCodeAt(e+s));)s++;let i=this.input.charCodeAt(s+e),r=this.input.charCodeAt(s+e+1);return i===58&&r===58?s+2:this.input.slice(s+e,s+e+12)==="flow-include"?s+12:i===58&&r!==58?s:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(p.UnterminatedComment,{at:this.state.curPosition()})}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:s,memberName:i}){this.raise(g.EnumBooleanMemberNotInitialized,{at:e,memberName:i,enumName:s})}flowEnumErrorInvalidMemberInitializer(e,s){return this.raise(s.explicitType?s.explicitType==="symbol"?g.EnumInvalidMemberInitializerSymbolType:g.EnumInvalidMemberInitializerPrimaryType:g.EnumInvalidMemberInitializerUnknownType,Object.assign({at:e},s))}flowEnumErrorNumberMemberNotInitialized(e,{enumName:s,memberName:i}){this.raise(g.EnumNumberMemberNotInitialized,{at:e,enumName:s,memberName:i})}flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:s}){this.raise(g.EnumStringMemberInconsistentlyInitialized,{at:e,enumName:s})}flowEnumMemberInit(){let e=this.state.startLoc,s=()=>this.match(12)||this.match(8);switch(this.state.type){case 132:{let i=this.parseNumericLiteral(this.state.value);return s()?{type:"number",loc:i.loc.start,value:i}:{type:"invalid",loc:e}}case 131:{let i=this.parseStringLiteral(this.state.value);return s()?{type:"string",loc:i.loc.start,value:i}:{type:"invalid",loc:e}}case 85:case 86:{let i=this.parseBooleanLiteral(this.match(85));return s()?{type:"boolean",loc:i.loc.start,value:i}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){let e=this.state.startLoc,s=this.parseIdentifier(!0),i=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e};return{id:s,init:i}}flowEnumCheckExplicitTypeMismatch(e,s,i){let{explicitType:r}=s;r!==null&&r!==i&&this.flowEnumErrorInvalidMemberInitializer(e,s)}flowEnumMembers({enumName:e,explicitType:s}){let i=new Set,r={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},n=!1;for(;!this.match(8);){if(this.eat(21)){n=!0;break}let o=this.startNode(),{id:h,init:l}=this.flowEnumMemberRaw(),c=h.name;if(c==="")continue;/^[a-z]/.test(c)&&this.raise(g.EnumInvalidMemberName,{at:h,memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:e}),i.has(c)&&this.raise(g.EnumDuplicateMemberName,{at:h,memberName:c,enumName:e}),i.add(c);let u={enumName:e,explicitType:s,memberName:c};switch(o.id=h,l.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(l.loc,u,"boolean"),o.init=l.value,r.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(l.loc,u,"number"),o.init=l.value,r.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(l.loc,u,"string"),o.init=l.value,r.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(l.loc,u);case"none":switch(s){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(l.loc,u);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(l.loc,u);break;default:r.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:r,hasUnknownMembers:n}}flowEnumStringMembers(e,s,{enumName:i}){if(e.length===0)return s;if(s.length===0)return e;if(s.length>e.length){for(let r of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(r,{enumName:i});return s}else{for(let r of s)this.flowEnumErrorStringMemberInconsistentlyInitialized(r,{enumName:i});return e}}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(101))return null;if(!S(this.state.type))throw this.raise(g.EnumInvalidExplicitTypeUnknownSupplied,{at:this.state.startLoc,enumName:e});let{value:s}=this.state;return this.next(),s!=="boolean"&&s!=="number"&&s!=="string"&&s!=="symbol"&&this.raise(g.EnumInvalidExplicitType,{at:this.state.startLoc,enumName:e,invalidEnumType:s}),s}flowEnumBody(e,s){let i=s.name,r=s.loc.start,n=this.flowEnumParseExplicitType({enumName:i});this.expect(5);let{members:o,hasUnknownMembers:h}=this.flowEnumMembers({enumName:i,explicitType:n});switch(e.hasUnknownMembers=h,n){case"boolean":return e.explicitType=!0,e.members=o.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=o.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=o.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{let l=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;let c=o.booleanMembers.length,u=o.numberMembers.length,f=o.stringMembers.length,d=o.defaultedMembers.length;if(!c&&!u&&!f&&!d)return l();if(!c&&!u)return e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(e,"EnumStringBody");if(!u&&!f&&c>=d){for(let x of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(x.loc.start,{enumName:i,memberName:x.id.name});return e.members=o.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}else if(!c&&!f&&u>=d){for(let x of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(x.loc.start,{enumName:i,memberName:x.id.name});return e.members=o.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}else return this.raise(g.EnumInconsistentMemberValues,{at:r,enumName:i}),l()}}}flowParseEnumDeclaration(e){let s=this.parseIdentifier();return e.id=s,e.body=this.flowEnumBody(this.startNode(),s),this.finishNode(e,"EnumDeclaration")}isLookaheadToken_lt(){let e=this.nextTokenStart();if(this.input.charCodeAt(e)===60){let s=this.input.charCodeAt(e+1);return s!==60&&s!==61}return!1}maybeUnwrapTypeCastExpression(e){return e.type==="TypeCastExpression"?e.expression:e}},W=$`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:a})=>`Expected corresponding JSX closing tag for <${a}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:a,HTMLEntity:t})=>`Unexpected token \`${a}\`. Did you mean \`${t}\` or \`{'${a}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?"});function K(a){return a?a.type==="JSXOpeningFragment"||a.type==="JSXClosingFragment":!1}function Z(a){if(a.type==="JSXIdentifier")return a.name;if(a.type==="JSXNamespacedName")return a.namespace.name+":"+a.name.name;if(a.type==="JSXMemberExpression")return Z(a.object)+"."+Z(a.property);throw new Error("Node had unexpected type: "+a.type)}var ir=a=>class extends a{jsxReadToken(){let e="",s=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(W.UnterminatedJsxContent,{at:this.state.startLoc});let i=this.input.charCodeAt(this.state.pos);switch(i){case 60:case 123:if(this.state.pos===this.state.start){i===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(140)):super.getTokenFromCode(i);return}e+=this.input.slice(s,this.state.pos),this.finishToken(139,e);return;case 38:e+=this.input.slice(s,this.state.pos),e+=this.jsxReadEntity(),s=this.state.pos;break;case 62:case 125:default:xe(i)?(e+=this.input.slice(s,this.state.pos),e+=this.jsxReadNewLine(!0),s=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){let s=this.input.charCodeAt(this.state.pos),i;return++this.state.pos,s===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,i=e?` `:`\r -`):i=String.fromCharCode(s),++this.state.curLine,this.state.lineStart=this.state.pos,i}jsxReadString(e){let s="",i=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(p.UnterminatedString,{at:this.state.startLoc});let r=this.input.charCodeAt(this.state.pos);if(r===e)break;r===38?(s+=this.input.slice(i,this.state.pos),s+=this.jsxReadEntity(),i=this.state.pos):ke(r)?(s+=this.input.slice(i,this.state.pos),s+=this.jsxReadNewLine(!1),i=this.state.pos):++this.state.pos}s+=this.input.slice(i,this.state.pos++),this.finishToken(131,s)}jsxReadEntity(){let e=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let s=10;this.codePointAtPos(this.state.pos)===120&&(s=16,++this.state.pos);let i=this.readInt(s,void 0,!1,"bail");if(i!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(i)}else{let s=0,i=!1;for(;s++<10&&this.state.pos1){for(let i=0;i=0;i--){let r=this.scopeStack[i];if(r.types.has(e)||r.exportOnlyBindings.has(e))return}super.checkLocalExport(t)}},ia=(a,t)=>Object.hasOwnProperty.call(a,t)&&a[t],Qs=a=>a.type==="ParenthesizedExpression"?Qs(a.expression):a,jt=class extends _t{toAssignable(t,e=!1){var s,i;let r;switch((t.type==="ParenthesizedExpression"||(s=t.extra)!=null&&s.parenthesized)&&(r=Qs(t),e?r.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(p.InvalidParenthesizedAssignment,{at:t}):r.type!=="MemberExpression"&&this.raise(p.InvalidParenthesizedAssignment,{at:t}):this.raise(p.InvalidParenthesizedAssignment,{at:t})),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern";for(let o=0,h=t.properties.length,l=h-1;oi.type!=="ObjectMethod"&&(r===s||i.type!=="SpreadElement")&&this.isAssignable(i))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every(s=>s===null||this.isAssignable(s));case"AssignmentExpression":return t.operator==="=";case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!e;default:return!1}}toReferencedList(t,e){return t}toReferencedListDeep(t,e){this.toReferencedList(t,e);for(let s of t)(s==null?void 0:s.type)==="ArrayExpression"&&this.toReferencedListDeep(s.elements)}parseSpread(t){let e=this.startNode();return this.next(),e.argument=this.parseMaybeAssignAllowIn(t,void 0),this.finishNode(e,"SpreadElement")}parseRestBinding(){let t=this.startNode();return this.next(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,1),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(t,e,s){let i=s&1,r=[],n=!0;for(;!this.eat(t);)if(n?n=!1:this.expect(12),i&&this.match(12))r.push(null);else{if(this.eat(t))break;if(this.match(21)){if(r.push(this.parseAssignableListItemTypes(this.parseRestBinding(),s)),!this.checkCommaAfterRest(e)){this.expect(t);break}}else{let o=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(p.UnsupportedParameterDecorator,{at:this.state.startLoc});this.match(26);)o.push(this.parseDecorator());r.push(this.parseAssignableListItem(s,o))}}return r}parseBindingRestProperty(t){return this.next(),t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){let t=this.startNode(),{type:e,startLoc:s}=this.state;return e===21?this.parseBindingRestProperty(t):(e===136?(this.expectPlugin("destructuringPrivate",s),this.classScope.usePrivateName(this.state.value,s),t.key=this.parsePrivateName()):this.parsePropertyName(t),t.method=!1,this.parseObjPropValue(t,s,!1,!1,!0,!1))}parseAssignableListItem(t,e){let s=this.parseMaybeDefault();this.parseAssignableListItemTypes(s,t);let i=this.parseMaybeDefault(s.loc.start,s);return e.length&&(s.decorators=e),i}parseAssignableListItemTypes(t,e){return t}parseMaybeDefault(t,e){var s,i;if((s=t)!=null||(t=this.state.startLoc),e=(i=e)!=null?i:this.parseBindingAtom(),!this.eat(29))return e;let r=this.startNodeAt(t);return r.left=e,r.right=this.parseMaybeAssignAllowIn(),this.finishNode(r,"AssignmentPattern")}isValidLVal(t,e,s){return ia({AssignmentPattern:"left",RestElement:"argument",ObjectProperty:"value",ParenthesizedExpression:"expression",ArrayPattern:"elements",ObjectPattern:"properties"},t)}checkLVal(t,{in:e,binding:s=W,checkClashes:i=!1,strictModeChanged:r=!1,hasParenthesizedAncestor:n=!1}){var o;let h=t.type;if(this.isObjectMethod(t))return;if(h==="MemberExpression"){s!==W&&this.raise(p.InvalidPropertyBindingPattern,{at:t});return}if(h==="Identifier"){this.checkIdentifier(t,s,r);let{name:f}=t;i&&(i.has(f)?this.raise(p.ParamDupe,{at:t}):i.add(f));return}let l=this.isValidLVal(h,!(n||(o=t.extra)!=null&&o.parenthesized)&&e.type==="AssignmentExpression",s);if(l===!0)return;if(l===!1){let f=s===W?p.InvalidLhs:p.InvalidLhsBinding;this.raise(f,{at:t,ancestor:e});return}let[c,u]=Array.isArray(l)?l:[l,h==="ParenthesizedExpression"],d=h==="ArrayPattern"||h==="ObjectPattern"||h==="ParenthesizedExpression"?{type:h}:e;for(let f of[].concat(t[c]))f&&this.checkLVal(f,{in:d,binding:s,checkClashes:i,strictModeChanged:r,hasParenthesizedAncestor:u})}checkIdentifier(t,e,s=!1){this.state.strict&&(s?Bs(t.name,this.inModule):Os(t.name))&&(e===W?this.raise(p.StrictEvalArguments,{at:t,referenceName:t.name}):this.raise(p.StrictEvalArgumentsBinding,{at:t,bindingName:t.name})),e&st&&t.name==="let"&&this.raise(p.LetInLexicalBinding,{at:t}),e&W||this.declareNameFromIdentifier(t,e)}declareNameFromIdentifier(t,e){this.scope.declareName(t.name,e,t.loc.start)}checkToRestConversion(t,e){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,e);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(e)break;default:this.raise(p.InvalidRestAssignmentPattern,{at:t})}}checkCommaAfterRest(t){return this.match(12)?(this.raise(this.lookaheadCharCode()===t?p.RestTrailingComma:p.ElementAfterRest,{at:this.state.startLoc}),!0):!1}},ra=(a,t)=>Object.hasOwnProperty.call(a,t)&&a[t];function aa(a){if(a==null)throw new Error(`Unexpected ${a} value.`);return a}function bs(a){if(!a)throw new Error("Assert fail")}var y=V`typescript`({AbstractMethodHasImplementation:({methodName:a})=>`Method '${a}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:a})=>`Property '${a}' cannot have an initializer because it is marked abstract.`,AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:a})=>`'declare' is not allowed in ${a}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:a})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:a})=>`Duplicate modifier: '${a}'.`,EmptyHeritageClauseType:({token:a})=>`'${a}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:a})=>`'${a[0]}' modifier cannot be used with '${a[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:a})=>`Index signatures cannot have an accessibility modifier ('${a}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier:a})=>`'${a}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:a})=>`'${a}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:a})=>`'${a}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:a})=>`'${a[0]}' modifier must precede '${a[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:a})=>`Private elements cannot have an accessibility modifier ('${a}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:a})=>`Single type parameter ${a} should have a trailing comma. Example usage: <${a},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:a})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${a}.`});function na(a){switch(a){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function As(a){return a==="private"||a==="public"||a==="protected"}function oa(a){return a==="in"||a==="out"}var ha=a=>class extends a{constructor(...e){super(...e),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:y.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:y.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:y.InvalidModifierOnTypeParameter})}getScopeHandler(){return Ut}tsIsIdentifier(){return S(this.state.type)}tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(136)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(e,s){if(!S(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let i=this.state.value;if(e.indexOf(i)!==-1){if(s&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return i}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:s,stopOnStartOfClassStaticBlock:i,errorTemplate:r=y.InvalidModifierOnTypeMember},n){let o=(l,c,u,d)=>{c===u&&n[d]&&this.raise(y.InvalidModifiersOrder,{at:l,orderedModifiers:[u,d]})},h=(l,c,u,d)=>{(n[u]&&c===d||n[d]&&c===u)&&this.raise(y.IncompatibleModifiers,{at:l,modifiers:[u,d]})};for(;;){let{startLoc:l}=this.state,c=this.tsParseModifier(e.concat(s??[]),i);if(!c)break;As(c)?n.accessibility?this.raise(y.DuplicateAccessibilityModifier,{at:l,modifier:c}):(o(l,c,c,"override"),o(l,c,c,"static"),o(l,c,c,"readonly"),n.accessibility=c):oa(c)?(n[c]&&this.raise(y.DuplicateModifier,{at:l,modifier:c}),n[c]=!0,o(l,c,"in","out")):(Object.hasOwnProperty.call(n,c)?this.raise(y.DuplicateModifier,{at:l,modifier:c}):(o(l,c,"static","readonly"),o(l,c,"static","override"),o(l,c,"override","readonly"),o(l,c,"abstract","override"),h(l,c,"declare","override"),h(l,c,"static","abstract")),n[c]=!0),s!=null&&s.includes(c)&&this.raise(r,{at:l,modifier:c})}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(e,s){let i=[];for(;!this.tsIsListTerminator(e);)i.push(s());return i}tsParseDelimitedList(e,s,i){return aa(this.tsParseDelimitedListWorker(e,s,!0,i))}tsParseDelimitedListWorker(e,s,i,r){let n=[],o=-1;for(;!this.tsIsListTerminator(e);){o=-1;let h=s();if(h==null)return;if(n.push(h),this.eat(12)){o=this.state.lastTokStart;continue}if(this.tsIsListTerminator(e))break;i&&this.expect(12);return}return r&&(r.value=o),n}tsParseBracketedList(e,s,i,r,n){r||(i?this.expect(0):this.expect(47));let o=this.tsParseDelimitedList(e,s,n);return i?this.expect(3):this.expect(48),o}tsParseImportType(){let e=this.startNode();return this.expect(83),this.expect(10),this.match(131)||this.raise(y.UnsupportedImportTypeArgument,{at:this.state.startLoc}),e.argument=super.parseExprAtom(),this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName()),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseEntityName(e=!0){let s=this.parseIdentifier(e);for(;this.eat(16);){let i=this.startNodeAtNode(s);i.left=s,i.right=this.parseIdentifier(e),s=this.finishNode(i,"TSQualifiedName")}return s}tsParseTypeReference(){let e=this.startNode();return e.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();let s=this.startNodeAtNode(e);return s.parameterName=e,s.typeAnnotation=this.tsParseTypeAnnotation(!1),s.asserts=!1,this.finishNode(s,"TSTypePredicate")}tsParseThisTypeNode(){let e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){let e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){let s=this.startNode();return e(s),s.name=this.tsParseTypeParameterName(),s.constraint=this.tsEatThenParseType(81),s.default=this.tsEatThenParseType(29),this.finishNode(s,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){let s=this.startNode();this.match(47)||this.match(140)?this.next():this.unexpected();let i={value:-1};return s.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,i),s.params.length===0&&this.raise(y.EmptyTypeParameters,{at:s}),i.value!==-1&&this.addExtra(s,"trailingComma",i.value),this.finishNode(s,"TSTypeParameterDeclaration")}tsFillSignature(e,s){let i=e===19,r="parameters",n="typeAnnotation";s.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),s[r]=this.tsParseBindingListForSignature(),i?s[n]=this.tsParseTypeOrTypePredicateAnnotation(e):this.match(e)&&(s[n]=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){let e=super.parseBindingList(11,41,2);for(let s of e){let{type:i}=s;(i==="AssignmentPattern"||i==="TSParameterProperty")&&this.raise(y.UnsupportedSignatureParameterKind,{at:s,type:i})}return e}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(e,s){return this.tsFillSignature(14,s),this.tsParseTypeMemberSemicolon(),this.finishNode(s,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),S(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(e){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let s=this.parseIdentifier();s.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(s),this.expect(3),e.parameters=[s];let i=this.tsTryParseTypeAnnotation();return i&&(e.typeAnnotation=i),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,s){this.eat(17)&&(e.optional=!0);let i=e;if(this.match(10)||this.match(47)){s&&this.raise(y.ReadonlyForMethodSignature,{at:e});let r=i;r.kind&&this.match(47)&&this.raise(y.AccesorCannotHaveTypeParameters,{at:this.state.curPosition()}),this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon();let n="parameters",o="typeAnnotation";if(r.kind==="get")r[n].length>0&&(this.raise(p.BadGetterArity,{at:this.state.curPosition()}),this.isThisParam(r[n][0])&&this.raise(y.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}));else if(r.kind==="set"){if(r[n].length!==1)this.raise(p.BadSetterArity,{at:this.state.curPosition()});else{let h=r[n][0];this.isThisParam(h)&&this.raise(y.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}),h.type==="Identifier"&&h.optional&&this.raise(y.SetAccesorCannotHaveOptionalParameter,{at:this.state.curPosition()}),h.type==="RestElement"&&this.raise(y.SetAccesorCannotHaveRestParameter,{at:this.state.curPosition()})}r[o]&&this.raise(y.SetAccesorCannotHaveReturnType,{at:r[o]})}else r.kind="method";return this.finishNode(r,"TSMethodSignature")}else{let r=i;s&&(r.readonly=!0);let n=this.tsTryParseTypeAnnotation();return n&&(r.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSPropertySignature")}}tsParseTypeMember(){let e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){let i=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(i,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e);let s=this.tsTryParseIndexSignature(e);return s||(super.parsePropertyName(e),!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.tsTokenCanFollowModifier()&&(e.kind=e.key.name,super.parsePropertyName(e)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){let e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(120):(this.isContextual(120)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedTypeParameter(){let e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(58),this.finishNode(e,"TSTypeParameter")}tsParseMappedType(){let e=this.startNode();return this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(120)):this.eatContextual(120)&&(e.readonly=!0),this.expect(0),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}tsParseTupleType(){let e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let s=!1,i=null;return e.elementTypes.forEach(r=>{var n;let{type:o}=r;s&&o!=="TSRestType"&&o!=="TSOptionalType"&&!(o==="TSNamedTupleMember"&&r.optional)&&this.raise(y.OptionalTypeBeforeRequired,{at:r}),s||(s=o==="TSNamedTupleMember"&&r.optional||o==="TSOptionalType");let h=o;o==="TSRestType"&&(r=r.typeAnnotation,h=r.type);let l=h==="TSNamedTupleMember";(n=i)!=null||(i=l),i!==l&&this.raise(y.MixedLabeledAndUnlabeledElements,{at:r})}),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){let{startLoc:e}=this.state,s=this.eat(21),i,r,n,o,l=M(this.state.type)?this.lookaheadCharCode():null;if(l===58)i=!0,n=!1,r=this.parseIdentifier(!0),this.expect(14),o=this.tsParseType();else if(l===63){n=!0;let c=this.state.startLoc,u=this.state.value,d=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(i=!0,r=this.createIdentifier(this.startNodeAt(c),u),this.expect(17),this.expect(14),o=this.tsParseType()):(i=!1,o=d,this.expect(17))}else o=this.tsParseType(),n=this.eat(17),i=this.eat(14);if(i){let c;r?(c=this.startNodeAtNode(r),c.optional=n,c.label=r,c.elementType=o,this.eat(17)&&(c.optional=!0,this.raise(y.TupleOptionalAfterType,{at:this.state.lastTokStartLoc}))):(c=this.startNodeAtNode(o),c.optional=n,this.raise(y.InvalidTupleMemberLabel,{at:o}),c.label=o,c.elementType=this.tsParseType()),o=this.finishNode(c,"TSNamedTupleMember")}else if(n){let c=this.startNodeAtNode(o);c.typeAnnotation=o,o=this.finishNode(c,"TSOptionalType")}if(s){let c=this.startNodeAt(e);c.typeAnnotation=o,o=this.finishNode(c,"TSRestType")}return o}tsParseParenthesizedType(){let e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,s){let i=this.startNode();return e==="TSConstructorType"&&(i.abstract=!!s,s&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,i)),this.finishNode(i,e)}tsParseLiteralTypeNode(){let e=this.startNode();switch(this.state.type){case 132:case 133:case 131:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){let e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let e=this.tsParseThisTypeNode();return this.isContextual(114)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 131:case 132:case 133:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let e=this.startNode(),s=this.lookahead();return s.type!==132&&s.type!==133&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:e}=this.state;if(S(e)||e===88||e===84){let s=e===88?"TSVoidKeyword":e===84?"TSNullKeyword":na(this.state.value);if(s!==void 0&&this.lookaheadCharCode()!==46){let i=this.startNode();return this.next(),this.finishNode(i,s)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let s=this.startNodeAtNode(e);s.elementType=e,this.expect(3),e=this.finishNode(s,"TSArrayType")}else{let s=this.startNodeAtNode(e);s.objectType=e,s.indexType=this.tsParseType(),this.expect(3),e=this.finishNode(s,"TSIndexedAccessType")}return e}tsParseTypeOperator(){let e=this.startNode(),s=this.state.value;return this.next(),e.operator=s,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),s==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(y.UnexpectedReadonly,{at:e})}}tsParseInferType(){let e=this.startNode();this.expectContextual(113);let s=this.startNode();return s.name=this.tsParseTypeParameterName(),s.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),e.typeParameter=this.finishNode(s,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let e=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){return ur(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(113)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(e,s,i){let r=this.startNode(),n=this.eat(i),o=[];do o.push(s());while(this.eat(i));return o.length===1&&!n?o[0]:(r.types=o,this.finishNode(r,e))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(S(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:e}=this.state,s=e.length;try{return this.parseObjectLike(8,!0),e.length===s}catch{return!1}}if(this.match(0)){this.next();let{errors:e}=this.state,s=e.length;try{return super.parseBindingList(3,93,1),e.length===s}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{let s=this.startNode();this.expect(e);let i=this.startNode(),r=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(r&&this.match(78)){let h=this.tsParseThisTypeOrThisTypePredicate();return h.type==="TSThisType"?(i.parameterName=h,i.asserts=!0,i.typeAnnotation=null,h=this.finishNode(i,"TSTypePredicate")):(this.resetStartLocationFromNode(h,i),h.asserts=!0),s.typeAnnotation=h,this.finishNode(s,"TSTypeAnnotation")}let n=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!n)return r?(i.parameterName=this.parseIdentifier(),i.asserts=r,i.typeAnnotation=null,s.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(s,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,s);let o=this.tsParseTypeAnnotation(!1);return i.parameterName=n,i.typeAnnotation=o,i.asserts=r,s.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(s,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let e=this.parseIdentifier();if(this.isContextual(114)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(this.state.type!==107)return!1;let e=this.state.containsEsc;return this.next(),!S(this.state.type)&&!this.match(78)?!1:(e&&this.raise(p.InvalidEscapedReservedWord,{at:this.state.lastTokStartLoc,reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(e=!0,s=this.startNode()){return this.tsInType(()=>{e&&this.expect(14),s.typeAnnotation=this.tsParseType()}),this.finishNode(s,"TSTypeAnnotation")}tsParseType(){bs(this.state.inType);let e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;let s=this.startNodeAtNode(e);return s.checkType=e,s.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),s.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),s.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(s,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(122)&&this.lookahead().type===77}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(y.ReservedTypeAssertion,{at:this.state.startLoc});let e=this.startNode();return e.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){let s=this.state.startLoc,i=this.tsParseDelimitedList("HeritageClauseElement",()=>{let r=this.startNode();return r.expression=this.tsParseEntityName(),this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSExpressionWithTypeArguments")});return i.length||this.raise(y.EmptyHeritageClauseType,{at:s,token:e}),i}tsParseInterfaceDeclaration(e,s={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(127),s.declare&&(e.declare=!0),S(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,wr)):(e.id=null,this.raise(y.MissingInterfaceName,{at:this.state.startLoc})),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));let i=this.startNode();return i.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(i,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,Ir),e.typeAnnotation=this.tsInType(()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(112)&&this.lookahead().type!==16){let s=this.startNode();return this.next(),this.finishNode(s,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInNoContext(e){let s=this.state.context;this.state.context=[s[0]];try{return e()}finally{this.state.context=s}}tsInType(e){let s=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=s}}tsInDisallowConditionalTypesContext(e){let s=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=s}}tsInAllowConditionalTypesContext(e){let s=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=s}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType(()=>(this.expect(e),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let e=this.startNode();return e.id=this.match(131)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,s={}){return s.const&&(e.const=!0),s.declare&&(e.declare=!0),this.expectContextual(124),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?kr:Vs),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")}tsParseModuleBlock(){let e=this.startNode();return this.scope.enter(ae),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,s=!1){if(e.id=this.parseIdentifier(),s||this.checkIdentifier(e.id,vr),this.eat(16)){let i=this.startNode();this.tsParseModuleOrNamespaceDeclaration(i,!0),e.body=i}else this.scope.enter(le),this.prodParam.enter(pe),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(110)?(e.global=!0,e.id=this.parseIdentifier()):this.match(131)?e.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(le),this.prodParam.enter(pe),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,s,i){e.isExport=i||!1,e.id=s||this.parseIdentifier(),this.checkIdentifier(e.id,Ne),this.expect(29);let r=this.tsParseModuleReference();return e.importKind==="type"&&r.type!=="TSExternalModuleReference"&&this.raise(y.ImportAliasHasImportType,{at:r}),e.moduleReference=r,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(117)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){let e=this.startNode();return this.expectContextual(117),this.expect(10),this.match(131)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){let s=this.state.clone(),i=e();return this.state=s,i}tsTryParseAndCatch(e){let s=this.tryParse(i=>e()||i());if(!(s.aborted||!s.node))return s.error&&(this.state=s.failState),s.node}tsTryParse(e){let s=this.state.clone(),i=e();if(i!==void 0&&i!==!1)return i;this.state=s}tsTryParseDeclare(e){if(this.isLineTerminator())return;let s=this.state.type,i;return this.isContextual(99)&&(s=74,i="let"),this.tsInAmbientContext(()=>{switch(s){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 124:return this.tsParseEnumDeclaration(e,{declare:!0});case 110:return this.tsParseAmbientExternalModuleDeclaration(e);case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(e.declare=!0,this.parseVarStatement(e,i||this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0}));case 127:{let r=this.tsParseInterfaceDeclaration(e,{declare:!0});if(r)return r}default:if(S(s))return this.tsParseDeclaration(e,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(e,s,i){switch(s.name){case"declare":{let r=this.tsTryParseDeclare(e);return r&&(r.declare=!0),r}case"global":if(this.match(5)){this.scope.enter(le),this.prodParam.enter(pe);let r=e;return r.global=!0,r.id=s,r.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(r,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,s.name,!1,i)}}tsParseDeclaration(e,s,i,r){switch(s){case"abstract":if(this.tsCheckLineTerminator(i)&&(this.match(80)||S(this.state.type)))return this.tsParseAbstractDeclaration(e,r);break;case"module":if(this.tsCheckLineTerminator(i)){if(this.match(131))return this.tsParseAmbientExternalModuleDeclaration(e);if(S(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(i)&&S(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(i)&&S(this.state.type))return this.tsParseTypeAliasDeclaration(e);break}}tsCheckLineTerminator(e){return e?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;let s=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let i=this.tsTryParseAndCatch(()=>{let r=this.startNodeAt(e);return r.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(r),r.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),r});if(this.state.maybeInArrowParameters=s,!!i)return super.parseArrowExpression(i,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let e=this.startNode();return e.params=this.tsInType(()=>this.tsInNoContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),e.params.length===0?this.raise(y.EmptyTypeArguments,{at:e}):!this.state.inType&&this.curContext()===E.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return fr(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseAssignableListItem(e,s){let i=this.state.startLoc,r={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},r);let n=r.accessibility,o=r.override,h=r.readonly;!(e&4)&&(n||h||o)&&this.raise(y.UnexpectedParameterModifier,{at:i});let l=this.parseMaybeDefault();this.parseAssignableListItemTypes(l,e);let c=this.parseMaybeDefault(l.loc.start,l);if(n||h||o){let u=this.startNodeAt(i);return s.length&&(u.decorators=s),n&&(u.accessibility=n),h&&(u.readonly=h),o&&(u.override=o),c.type!=="Identifier"&&c.type!=="AssignmentPattern"&&this.raise(y.UnsupportedParameterPropertyKind,{at:u}),u.parameter=c,this.finishNode(u,"TSParameterProperty")}return s.length&&(l.decorators=s),c}isSimpleParameter(e){return e.type==="TSParameterProperty"&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(let s of e.params)s.type!=="Identifier"&&s.optional&&!this.state.isAmbientContext&&this.raise(y.PatternIsOptional,{at:s})}setArrowFunctionParameters(e,s,i){super.setArrowFunctionParameters(e,s,i),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,s,i=!1){this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let r=s==="FunctionDeclaration"?"TSDeclareFunction":s==="ClassMethod"||s==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return r&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,r):r==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(y.DeclareFunctionHasImplementation,{at:e}),e.declare)?super.parseFunctionBodyAndFinish(e,r,i):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,s,i))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,ms):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach(s=>{(s==null?void 0:s.type)==="TSTypeCastExpression"&&this.raise(y.UnexpectedTypeAnnotation,{at:s.typeAnnotation})})}toReferencedList(e,s){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,s,i,r){let n=super.parseArrayLike(e,s,i,r);return n.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(n.elements),n}parseSubscript(e,s,i,r){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let o=this.startNodeAt(s);return o.expression=e,this.finishNode(o,"TSNonNullExpression")}let n=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(i)return r.stop=!0,e;r.optionalChainMember=n=!0,this.next()}if(this.match(47)||this.match(51)){let o,h=this.tsTryParseAndCatch(()=>{if(!i&&this.atPossibleAsyncArrow(e)){let d=this.tsTryParseGenericAsyncArrowFunction(s);if(d)return d}let l=this.tsParseTypeArgumentsInExpression();if(!l)return;if(n&&!this.match(10)){o=this.state.curPosition();return}if(Je(this.state.type)){let d=super.parseTaggedTemplateExpression(e,s,r);return d.typeParameters=l,d}if(!i&&this.eat(10)){let d=this.startNodeAt(s);return d.callee=e,d.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(d.arguments),d.typeParameters=l,r.optionalChainMember&&(d.optional=n),this.finishCallExpression(d,r.optionalChainMember)}let c=this.state.type;if(c===48||c===52||c!==10&>(c)&&!this.hasPrecedingLineBreak())return;let u=this.startNodeAt(s);return u.expression=e,u.typeParameters=l,this.finishNode(u,"TSInstantiationExpression")});if(o&&this.unexpected(o,10),h)return h.type==="TSInstantiationExpression"&&(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(y.InvalidPropertyAccessAfterInstantiationExpression,{at:this.state.startLoc}),h}return super.parseSubscript(e,s,i,r)}parseNewCallee(e){var s;super.parseNewCallee(e);let{callee:i}=e;i.type==="TSInstantiationExpression"&&!((s=i.extra)!=null&&s.parenthesized)&&(e.typeParameters=i.typeParameters,e.callee=i.expression)}parseExprOp(e,s,i){let r;if(Ve(58)>i&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(r=this.isContextual(118)))){let n=this.startNodeAt(s);return n.expression=e,n.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(r&&this.raise(p.UnexpectedKeyword,{at:this.state.startLoc,keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(n,r?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(n,s,i)}return super.parseExprOp(e,s,i)}checkReservedWord(e,s,i,r){this.state.isAmbientContext||super.checkReservedWord(e,s,i,r)}checkImportReflection(e){super.checkImportReflection(e),e.module&&e.importKind!=="value"&&this.raise(y.ImportReflectionHasImportType,{at:e.specifiers[0].loc.start})}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(128)){let s=this.lookaheadCharCode();return e?s===123||s===42:s!==61}return!e&&this.isContextual(87)}applyImportPhase(e,s,i,r){super.applyImportPhase(e,s,i,r),s?e.exportKind=i==="type"?"type":"value":e.importKind=i==="type"||i==="typeof"?i:"value"}parseImport(e){if(this.match(131))return e.importKind="value",super.parseImport(e);let s;if(S(this.state.type)&&this.lookaheadCharCode()===61)return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(128)){let i=this.parseMaybeImportPhase(e,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(e,i);s=super.parseImportSpecifiersAndAfter(e,i)}else s=super.parseImport(e);return s.importKind==="type"&&s.specifiers.length>1&&s.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(y.TypeImportCannotSpecifyDefaultAndNamed,{at:s}),s}parseExport(e,s){if(this.match(83)){this.next();let i=null;return this.isContextual(128)&&this.isPotentialImportPhase(!1)?i=this.parseMaybeImportPhase(e,!1):e.importKind="value",this.tsParseImportEqualsDeclaration(e,i,!0)}else if(this.eat(29)){let i=e;return i.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(i,"TSExportAssignment")}else if(this.eatContextual(93)){let i=e;return this.expectContextual(126),i.id=this.parseIdentifier(),this.semicolon(),this.finishNode(i,"TSNamespaceExportDeclaration")}else return super.parseExport(e,s)}isAbstractClass(){return this.isContextual(122)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){let e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(127)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,s,i=!1){let{isAmbientContext:r}=this.state,n=super.parseVarStatement(e,s,i||r);if(!r)return n;for(let{id:o,init:h}of n.declarations)h&&(s!=="const"||o.typeAnnotation?this.raise(y.InitializerNotAllowedInAmbientContext,{at:h}):ca(h,this.hasPlugin("estree"))||this.raise(y.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,{at:h}));return n}parseStatementContent(e,s){if(this.match(75)&&this.isLookaheadContextual("enum")){let i=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(i,{const:!0})}if(this.isContextual(124))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(127)){let i=this.tsParseInterfaceDeclaration(this.startNode());if(i)return i}return super.parseStatementContent(e,s)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,s){return s.some(i=>As(i)?e.accessibility===i:!!e[i])}tsIsStartOfStaticBlocks(){return this.isContextual(104)&&this.lookaheadCharCode()===123}parseClassMember(e,s,i){let r=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:r,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:y.InvalidModifierOnTypeParameterPositions},s);let n=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(s,r)&&this.raise(y.StaticBlockCannotHaveModifier,{at:this.state.curPosition()}),super.parseClassStaticBlock(e,s)):this.parseClassMemberWithIsStatic(e,s,i,!!s.static)};s.declare?this.tsInAmbientContext(n):n()}parseClassMemberWithIsStatic(e,s,i,r){let n=this.tsTryParseIndexSignature(s);if(n){e.body.push(n),s.abstract&&this.raise(y.IndexSignatureHasAbstract,{at:s}),s.accessibility&&this.raise(y.IndexSignatureHasAccessibility,{at:s,modifier:s.accessibility}),s.declare&&this.raise(y.IndexSignatureHasDeclare,{at:s}),s.override&&this.raise(y.IndexSignatureHasOverride,{at:s});return}!this.state.inAbstractClass&&s.abstract&&this.raise(y.NonAbstractClassHasAbstractMethod,{at:s}),s.override&&(i.hadSuperClass||this.raise(y.OverrideNotInSubClass,{at:s})),super.parseClassMemberWithIsStatic(e,s,i,r)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(y.ClassMethodHasReadonly,{at:e}),e.declare&&this.match(10)&&this.raise(y.ClassMethodHasDeclare,{at:e})}parseExpressionStatement(e,s,i){return(s.type==="Identifier"?this.tsParseExpressionStatement(e,s,i):void 0)||super.parseExpressionStatement(e,s,i)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(e,s,i){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(e,s,i);let r=this.tryParse(()=>super.parseConditional(e,s));return r.node?(r.error&&(this.state=r.failState),r.node):(r.error&&super.setOptionalParametersError(i,r.error),e)}parseParenItem(e,s){if(e=super.parseParenItem(e,s),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){let i=this.startNodeAt(s);return i.expression=e,i.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(i,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(123))return this.tsInAmbientContext(()=>this.parseExportDeclaration(e));let s=this.state.startLoc,i=this.eatContextual(123);if(i&&(this.isContextual(123)||!this.shouldParseExportDeclaration()))throw this.raise(y.ExpectedAmbientAfterExportDeclare,{at:this.state.startLoc});let n=S(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return n?((n.type==="TSInterfaceDeclaration"||n.type==="TSTypeAliasDeclaration"||i)&&(e.exportKind="type"),i&&(this.resetStartLocation(n,s),n.declare=!0),n):null}parseClassId(e,s,i,r){if((!s||i)&&this.isContextual(111))return;super.parseClassId(e,s,i,e.declare?ms:js);let n=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);n&&(e.typeParameters=n)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));let s=this.tsTryParseTypeAnnotation();s&&(e.typeAnnotation=s)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&!(e.readonly&&!e.typeAnnotation)&&this.match(29)&&this.raise(y.DeclareClassFieldHasInitializer,{at:this.state.startLoc}),e.abstract&&this.match(29)){let{key:s}=e;this.raise(y.AbstractPropertyHasInitializer,{at:this.state.startLoc,propertyName:s.type==="Identifier"&&!e.computed?s.name:`[${this.input.slice(s.start,s.end)}]`})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(y.PrivateElementHasAbstract,{at:e}),e.accessibility&&this.raise(y.PrivateElementHasAccessibility,{at:e,modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(y.AccessorCannotBeOptional,{at:e}),super.parseClassAccessorProperty(e)}pushClassMethod(e,s,i,r,n,o){let h=this.tsTryParseTypeParameters(this.tsParseConstModifier);h&&n&&this.raise(y.ConstructorHasTypeParameters,{at:h});let{declare:l=!1,kind:c}=s;l&&(c==="get"||c==="set")&&this.raise(y.DeclareAccessor,{at:s,kind:c}),h&&(s.typeParameters=h),super.pushClassMethod(e,s,i,r,n,o)}pushClassPrivateMethod(e,s,i,r){let n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(s.typeParameters=n),super.pushClassPrivateMethod(e,s,i,r)}declareClassPrivateMethodInScope(e,s){e.type!=="TSDeclareMethod"&&(e.type==="MethodDefinition"&&!e.value.body||super.declareClassPrivateMethodInScope(e,s))}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(111)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,s,i,r,n,o,h){let l=this.tsTryParseTypeParameters(this.tsParseConstModifier);return l&&(e.typeParameters=l),super.parseObjPropValue(e,s,i,r,n,o,h)}parseFunctionParams(e,s){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(e.typeParameters=i),super.parseFunctionParams(e,s)}parseVarId(e,s){super.parseVarId(e,s),e.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);let i=this.tsTryParseTypeAnnotation();i&&(e.id.typeAnnotation=i,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,s){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,s)}parseMaybeAssign(e,s){var i,r,n,o,h;let l,c,u;if(this.hasPlugin("jsx")&&(this.match(140)||this.match(47))){if(l=this.state.clone(),c=this.tryParse(()=>super.parseMaybeAssign(e,s),l),!c.error)return c.node;let{context:x}=this.state,I=x[x.length-1];(I===E.j_oTag||I===E.j_expr)&&x.pop()}if(!((i=c)!=null&&i.error)&&!this.match(47))return super.parseMaybeAssign(e,s);(!l||l===this.state)&&(l=this.state.clone());let d,f=this.tryParse(x=>{var I,C;d=this.tsParseTypeParameters(this.tsParseConstModifier);let w=super.parseMaybeAssign(e,s);return(w.type!=="ArrowFunctionExpression"||(I=w.extra)!=null&&I.parenthesized)&&x(),((C=d)==null?void 0:C.params.length)!==0&&this.resetStartLocationFromNode(w,d),w.typeParameters=d,w},l);if(!f.error&&!f.aborted)return d&&this.reportReservedArrowTypeParam(d),f.node;if(!c&&(bs(!this.hasPlugin("jsx")),u=this.tryParse(()=>super.parseMaybeAssign(e,s),l),!u.error))return u.node;if((r=c)!=null&&r.node)return this.state=c.failState,c.node;if(f.node)return this.state=f.failState,d&&this.reportReservedArrowTypeParam(d),f.node;if((n=u)!=null&&n.node)return this.state=u.failState,u.node;throw((o=c)==null?void 0:o.error)||f.error||((h=u)==null?void 0:h.error)}reportReservedArrowTypeParam(e){var s;e.params.length===1&&!e.params[0].constraint&&!((s=e.extra)!=null&&s.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(y.ReservedArrowTypeParam,{at:e})}parseMaybeUnary(e,s){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,s)}parseArrow(e){if(this.match(14)){let s=this.tryParse(i=>{let r=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&i(),r});if(s.aborted)return;s.thrown||(s.error&&(this.state=s.failState),e.returnType=s.node)}return super.parseArrow(e)}parseAssignableListItemTypes(e,s){if(!(s&2))return e;this.eat(17)&&(e.optional=!0);let i=this.tsTryParseTypeAnnotation();return i&&(e.typeAnnotation=i),this.resetEndLocation(e),e}isAssignable(e,s){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,s);case"TSParameterProperty":return!0;default:return super.isAssignable(e,s)}}toAssignable(e,s=!1){switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,s);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":s?this.expressionScope.recordArrowParameterBindingError(y.UnexpectedTypeCastInParameter,{at:e}):this.raise(y.UnexpectedTypeCastInParameter,{at:e}),this.toAssignable(e.expression,s);break;case"AssignmentExpression":!s&&e.left.type==="TSTypeCastExpression"&&(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,s)}}toAssignableParenthesizedExpression(e,s){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,s);break;default:super.toAssignable(e,s)}}checkToRestConversion(e,s){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,s)}}isValidLVal(e,s,i){return ra({TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSAsExpression:(i!==W||!s)&&["expression",!0],TSSatisfiesExpression:(i!==W||!s)&&["expression",!0],TSTypeAssertion:(i!==W||!s)&&["expression",!0]},e)||super.isValidLVal(e,s,i)}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e){if(this.match(47)||this.match(51)){let s=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let i=super.parseMaybeDecoratorArguments(e);return i.typeParameters=s,i}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,s){let i=super.parseMaybeDefault(e,s);return i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.startthis.isAssignable(s,!0)):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){let s=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());s&&(e.typeParameters=s)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){let s=super.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e)[0];return r&&this.isThisParam(r)?s+1:s}parseCatchClauseParam(){let e=super.parseCatchClauseParam(),s=this.tsTryParseTypeAnnotation();return s&&(e.typeAnnotation=s,this.resetEndLocation(e)),e}tsInAmbientContext(e){let s=this.state.isAmbientContext;this.state.isAmbientContext=!0;try{return e()}finally{this.state.isAmbientContext=s}}parseClass(e,s,i){let r=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,s,i)}finally{this.state.inAbstractClass=r}}tsParseAbstractDeclaration(e,s){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(s,this.parseClass(e,!0,!1));if(this.isContextual(127)){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(y.NonClassMethodPropertyHasAbstractModifer,{at:e}),this.tsParseInterfaceDeclaration(e)}else this.unexpected(null,80)}parseMethod(e,s,i,r,n,o,h){let l=super.parseMethod(e,s,i,r,n,o,h);if(l.abstract&&(this.hasPlugin("estree")?!!l.value.body:!!l.body)){let{key:u}=l;this.raise(y.AbstractMethodHasImplementation,{at:l,methodName:u.type==="Identifier"&&!l.computed?u.name:`[${this.input.slice(u.start,u.end)}]`})}return l}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,s,i,r){return!s&&r?(this.parseTypeOnlyImportExportSpecifier(e,!1,i),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,s,i,r))}parseImportSpecifier(e,s,i,r,n){return!s&&r?(this.parseTypeOnlyImportExportSpecifier(e,!0,i),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,s,i,r,i?ys:Ne))}parseTypeOnlyImportExportSpecifier(e,s,i){let r=s?"imported":"local",n=s?"local":"exported",o=e[r],h,l=!1,c=!0,u=o.loc.start;if(this.isContextual(93)){let f=this.parseIdentifier();if(this.isContextual(93)){let x=this.parseIdentifier();M(this.state.type)?(l=!0,o=f,h=s?this.parseIdentifier():this.parseModuleExportName(),c=!1):(h=x,c=!1)}else M(this.state.type)?(c=!1,h=s?this.parseIdentifier():this.parseModuleExportName()):(l=!0,o=f)}else M(this.state.type)&&(l=!0,s?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());l&&i&&this.raise(s?y.TypeModifierIsUsedInTypeImports:y.TypeModifierIsUsedInTypeExports,{at:u}),e[r]=o,e[n]=h;let d=s?"importKind":"exportKind";e[d]=l?"type":"value",c&&this.eatContextual(93)&&(e[n]=s?this.parseIdentifier():this.parseModuleExportName()),e[n]||(e[n]=K(e[r])),s&&this.checkIdentifier(e[n],l?ys:Ne)}};function la(a){if(a.type!=="MemberExpression")return!1;let{computed:t,property:e}=a;return t&&e.type!=="StringLiteral"&&(e.type!=="TemplateLiteral"||e.expressions.length>0)?!1:ei(a.object)}function ca(a,t){var e;let{type:s}=a;if((e=a.extra)!=null&&e.parenthesized)return!1;if(t){if(s==="Literal"){let{value:i}=a;if(typeof i=="string"||typeof i=="boolean")return!0}}else if(s==="StringLiteral"||s==="BooleanLiteral")return!0;return!!(Zs(a,t)||pa(a,t)||s==="TemplateLiteral"&&a.expressions.length===0||la(a))}function Zs(a,t){return t?a.type==="Literal"&&(typeof a.value=="number"||"bigint"in a):a.type==="NumericLiteral"||a.type==="BigIntLiteral"}function pa(a,t){if(a.type==="UnaryExpression"){let{operator:e,argument:s}=a;if(e==="-"&&Zs(s,t))return!0}return!1}function ei(a){return a.type==="Identifier"?!0:a.type!=="MemberExpression"||a.computed?!1:ei(a.object)}var Ss=V`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),ua=a=>class extends a{parsePlaceholder(e){if(this.match(142)){let s=this.startNode();return this.next(),this.assertNoSpace(),s.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(142),this.finishPlaceholder(s,e)}}finishPlaceholder(e,s){let i=!!(e.expectedNode&&e.type==="Placeholder");return e.expectedNode=s,i?e:this.finishNode(e,"Placeholder")}getTokenFromCode(e){e===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(142,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,s,i,r){e!==void 0&&super.checkReservedWord(e,s,i,r)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,s,i){return e==="Placeholder"||super.isValidLVal(e,s,i)}toAssignable(e,s){e&&e.type==="Placeholder"&&e.expectedNode==="Expression"?e.expectedNode="Pattern":super.toAssignable(e,s)}chStartsBindingIdentifier(e,s){return!!(super.chStartsBindingIdentifier(e,s)||this.lookahead().type===142)}verifyBreakContinue(e,s){e.label&&e.label.type==="Placeholder"||super.verifyBreakContinue(e,s)}parseExpressionStatement(e,s){if(s.type!=="Placeholder"||s.extra&&s.extra.parenthesized)return super.parseExpressionStatement(e,s);if(this.match(14)){let i=e;return i.label=this.finishPlaceholder(s,"Identifier"),this.next(),i.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(i,"LabeledStatement")}return this.semicolon(),e.name=s.name,this.finishPlaceholder(e,"Statement")}parseBlock(e,s,i){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,s,i)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,s,i){let r=s?"ClassDeclaration":"ClassExpression";this.next();let n=this.state.strict,o=this.parsePlaceholder("Identifier");if(o)if(this.match(81)||this.match(142)||this.match(5))e.id=o;else{if(i||!s)return e.id=null,e.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(e,r);throw this.raise(Ss.ClassNameIsRequired,{at:this.state.startLoc})}else this.parseClassId(e,s,i);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,n),this.finishNode(e,r)}parseExport(e,s){let i=this.parsePlaceholder("Identifier");if(!i)return super.parseExport(e,s);if(!this.isContextual(97)&&!this.match(12))return e.specifiers=[],e.source=null,e.declaration=this.finishPlaceholder(i,"Declaration"),this.finishNode(e,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let r=this.startNode();return r.exported=i,e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],super.parseExport(e,s)}isExportDefaultSpecifier(){if(this.match(65)){let e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(J(142),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,s){var i;return(i=e.specifiers)!=null&&i.length?!0:super.maybeParseExportDefaultSpecifier(e,s)}checkExport(e){let{specifiers:s}=e;s!=null&&s.length&&(e.specifiers=s.filter(i=>i.exported.type==="Placeholder")),super.checkExport(e),e.specifiers=s}parseImport(e){let s=this.parsePlaceholder("Identifier");if(!s)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(97)&&!this.match(12))return e.source=this.finishPlaceholder(s,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");let i=this.startNodeAtNode(s);return i.local=s,e.specifiers.push(this.finishNode(i,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(97),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(Ss.UnexpectedSpace,{at:this.state.lastTokEndLoc})}},fa=a=>class extends a{parseV8Intrinsic(){if(this.match(54)){let e=this.state.startLoc,s=this.startNode();if(this.next(),S(this.state.type)){let i=this.parseIdentifierName(),r=this.createIdentifier(s,i);if(r.type="V8IntrinsicIdentifier",this.match(10))return r}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}};function k(a,t){let[e,s]=typeof t=="string"?[t,{}]:t,i=Object.keys(s),r=i.length===0;return a.some(n=>{if(typeof n=="string")return r&&n===e;{let[o,h]=n;if(o!==e)return!1;for(let l of i)if(h[l]!==s[l])return!1;return!0}})}function Q(a,t,e){let s=a.find(i=>Array.isArray(i)?i[0]===t:i===t);return s&&Array.isArray(s)&&s.length>1?s[1][e]:null}var Es=["minimal","fsharp","hack","smart"],Cs=["^^","@@","^","%","#"],ws=["hash","bar"];function da(a){if(k(a,"decorators")){if(k(a,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let t=Q(a,"decorators","decoratorsBeforeExport");if(t!=null&&typeof t!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let e=Q(a,"decorators","allowCallParenthesized");if(e!=null&&typeof e!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(k(a,"flow")&&k(a,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(k(a,"placeholders")&&k(a,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(k(a,"pipelineOperator")){let t=Q(a,"pipelineOperator","proposal");if(!Es.includes(t)){let s=Es.map(i=>`"${i}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${s}.`)}let e=k(a,["recordAndTuple",{syntaxType:"hash"}]);if(t==="hack"){if(k(a,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(k(a,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let s=Q(a,"pipelineOperator","topicToken");if(!Cs.includes(s)){let i=Cs.map(r=>`"${r}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${i}.`)}if(s==="#"&&e)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}else if(t==="smart"&&e)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}if(k(a,"moduleAttributes")){if(k(a,"importAssertions")||k(a,"importAttributes"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if(Q(a,"moduleAttributes","version")!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(k(a,"importAssertions")&&k(a,"importAttributes"))throw new Error("Cannot combine importAssertions and importAttributes plugins.");if(k(a,"recordAndTuple")&&Q(a,"recordAndTuple","syntaxType")!=null&&!ws.includes(Q(a,"recordAndTuple","syntaxType")))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+ws.map(t=>`'${t}'`).join(", "));if(k(a,"asyncDoExpressions")&&!k(a,"doExpressions")){let t=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw t.missingPlugins="doExpressions",t}}var ti={estree:sr,jsx:sa,flow:ta,typescript:ha,v8intrinsic:fa,placeholders:ua},ma=Object.keys(ti),Is={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};function ya(a){if(a&&a.annexB!=null&&a.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");let t={};for(let e of Object.keys(Is))t[e]=a&&a[e]!=null?a[e]:Is[e];return t}var $t=class extends jt{checkProto(t,e,s,i){if(t.type==="SpreadElement"||this.isObjectMethod(t)||t.computed||t.shorthand)return;let r=t.key;if((r.type==="Identifier"?r.name:r.value)==="__proto__"){if(e){this.raise(p.RecordNoProto,{at:r});return}s.used&&(i?i.doubleProtoLoc===null&&(i.doubleProtoLoc=r.loc.start):this.raise(p.DuplicateProto,{at:r})),s.used=!0}}shouldExitDescending(t,e){return t.type==="ArrowFunctionExpression"&&t.start===e}getExpression(){this.enterInitialScopes(),this.nextToken();let t=this.parseExpression();return this.match(137)||this.unexpected(),this.finalizeRemainingComments(),t.comments=this.state.comments,t.errors=this.state.errors,this.options.tokens&&(t.tokens=this.tokens),t}parseExpression(t,e){return t?this.disallowInAnd(()=>this.parseExpressionBase(e)):this.allowInAnd(()=>this.parseExpressionBase(e))}parseExpressionBase(t){let e=this.state.startLoc,s=this.parseMaybeAssign(t);if(this.match(12)){let i=this.startNodeAt(e);for(i.expressions=[s];this.eat(12);)i.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(i.expressions),this.finishNode(i,"SequenceExpression")}return s}parseMaybeAssignDisallowIn(t,e){return this.disallowInAnd(()=>this.parseMaybeAssign(t,e))}parseMaybeAssignAllowIn(t,e){return this.allowInAnd(()=>this.parseMaybeAssign(t,e))}setOptionalParametersError(t,e){var s;t.optionalParametersLoc=(s=e==null?void 0:e.loc)!=null?s:this.state.startLoc}parseMaybeAssign(t,e){let s=this.state.startLoc;if(this.isContextual(106)&&this.prodParam.hasYield){let o=this.parseYield();return e&&(o=e.call(this,o,s)),o}let i;t?i=!1:(t=new ue,i=!0);let{type:r}=this.state;(r===10||S(r))&&(this.state.potentialArrowAt=this.state.start);let n=this.parseMaybeConditional(t);if(e&&(n=e.call(this,n,s)),or(this.state.type)){let o=this.startNodeAt(s),h=this.state.value;if(o.operator=h,this.match(29)){this.toAssignable(n,!0),o.left=n;let l=s.index;t.doubleProtoLoc!=null&&t.doubleProtoLoc.index>=l&&(t.doubleProtoLoc=null),t.shorthandAssignLoc!=null&&t.shorthandAssignLoc.index>=l&&(t.shorthandAssignLoc=null),t.privateKeyLoc!=null&&t.privateKeyLoc.index>=l&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null)}else o.left=n;return this.next(),o.right=this.parseMaybeAssign(),this.checkLVal(n,{in:this.finishNode(o,"AssignmentExpression")}),o}else i&&this.checkExpressionErrors(t,!0);return n}parseMaybeConditional(t){let e=this.state.startLoc,s=this.state.potentialArrowAt,i=this.parseExprOps(t);return this.shouldExitDescending(i,s)?i:this.parseConditional(i,e,t)}parseConditional(t,e,s){if(this.eat(17)){let i=this.startNodeAt(e);return i.test=t,i.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),i.alternate=this.parseMaybeAssign(),this.finishNode(i,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(136)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){let e=this.state.startLoc,s=this.state.potentialArrowAt,i=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(i,s)?i:this.parseExprOp(i,e,-1)}parseExprOp(t,e,s){if(this.isPrivateName(t)){let r=this.getPrivateNameSV(t);(s>=Ve(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(p.PrivateInExpectedIn,{at:t,identifierName:r}),this.classScope.usePrivateName(r,t.loc.start)}let i=this.state.type;if(lr(i)&&(this.prodParam.hasIn||!this.match(58))){let r=Ve(i);if(r>s){if(i===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,e)}let n=this.startNodeAt(e);n.left=t,n.operator=this.state.value;let o=i===41||i===42,h=i===40;if(h&&(r=Ve(42)),this.next(),i===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(p.UnexpectedAwaitAfterPipelineBody,{at:this.state.startLoc});n.right=this.parseExprOpRightExpr(i,r);let l=this.finishNode(n,o||h?"LogicalExpression":"BinaryExpression"),c=this.state.type;if(h&&(c===41||c===42)||o&&c===40)throw this.raise(p.MixingCoalesceWithLogical,{at:this.state.startLoc});return this.parseExprOp(l,e,s)}}return t}parseExprOpRightExpr(t,e){let s=this.state.startLoc;switch(t){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"smart":return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(106))throw this.raise(p.PipeBodyIsTighter,{at:this.state.startLoc});return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t,e),s)});case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(e))}default:return this.parseExprOpBaseRightExpr(t,e)}}parseExprOpBaseRightExpr(t,e){let s=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),s,dr(t)?e-1:e)}parseHackPipeBody(){var t;let{startLoc:e}=this.state,s=this.parseMaybeAssign();return Gi.has(s.type)&&!((t=s.extra)!=null&&t.parenthesized)&&this.raise(p.PipeUnparenthesizedBody,{at:e,type:s.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(p.PipeTopicUnused,{at:e}),s}checkExponentialAfterUnary(t){this.match(57)&&this.raise(p.UnexpectedTokenUnaryExponentiation,{at:t.argument})}parseMaybeUnary(t,e){let s=this.state.startLoc,i=this.isContextual(96);if(i&&this.isAwaitAllowed()){this.next();let h=this.parseAwait(s);return e||this.checkExponentialAfterUnary(h),h}let r=this.match(34),n=this.startNode();if(pr(this.state.type)){n.operator=this.state.value,n.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let h=this.match(89);if(this.next(),n.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&h){let l=n.argument;l.type==="Identifier"?this.raise(p.StrictDelete,{at:n}):this.hasPropertyAsPrivateName(l)&&this.raise(p.DeletePrivateField,{at:n})}if(!r)return e||this.checkExponentialAfterUnary(n),this.finishNode(n,"UnaryExpression")}let o=this.parseUpdate(n,r,t);if(i){let{type:h}=this.state;if((this.hasPlugin("v8intrinsic")?gt(h):gt(h)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(p.AwaitNotInAsyncContext,{at:s}),this.parseAwait(s)}return o}parseUpdate(t,e,s){if(e){let n=t;return this.checkLVal(n.argument,{in:this.finishNode(n,"UpdateExpression")}),t}let i=this.state.startLoc,r=this.parseExprSubscripts(s);if(this.checkExpressionErrors(s,!1))return r;for(;cr(this.state.type)&&!this.canInsertSemicolon();){let n=this.startNodeAt(i);n.operator=this.state.value,n.prefix=!1,n.argument=r,this.next(),this.checkLVal(r,{in:r=this.finishNode(n,"UpdateExpression")})}return r}parseExprSubscripts(t){let e=this.state.startLoc,s=this.state.potentialArrowAt,i=this.parseExprAtom(t);return this.shouldExitDescending(i,s)?i:this.parseSubscripts(i,e)}parseSubscripts(t,e,s){let i={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do t=this.parseSubscript(t,e,s,i),i.maybeAsyncArrow=!1;while(!i.stop);return t}parseSubscript(t,e,s,i){let{type:r}=this.state;if(!s&&r===15)return this.parseBind(t,e,s,i);if(Je(r))return this.parseTaggedTemplateExpression(t,e,i);let n=!1;if(r===18){if(s&&(this.raise(p.OptionalChainingNoNew,{at:this.state.startLoc}),this.lookaheadCharCode()===40))return i.stop=!0,t;i.optionalChainMember=n=!0,this.next()}if(!s&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,e,i,n);{let o=this.eat(0);return o||n||this.eat(16)?this.parseMember(t,e,i,o,n):(i.stop=!0,t)}}parseMember(t,e,s,i,r){let n=this.startNodeAt(e);return n.object=t,n.computed=i,i?(n.property=this.parseExpression(),this.expect(3)):this.match(136)?(t.type==="Super"&&this.raise(p.SuperPrivateField,{at:e}),this.classScope.usePrivateName(this.state.value,this.state.startLoc),n.property=this.parsePrivateName()):n.property=this.parseIdentifier(!0),s.optionalChainMember?(n.optional=r,this.finishNode(n,"OptionalMemberExpression")):this.finishNode(n,"MemberExpression")}parseBind(t,e,s,i){let r=this.startNodeAt(e);return r.object=t,this.next(),r.callee=this.parseNoCallExpr(),i.stop=!0,this.parseSubscripts(this.finishNode(r,"BindExpression"),e,s)}parseCoverCallAndAsyncArrowHead(t,e,s,i){let r=this.state.maybeInArrowParameters,n=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(e);o.callee=t;let{maybeAsyncArrow:h,optionalChainMember:l}=s;h&&(this.expressionScope.enter(Wr()),n=new ue),l&&(o.optional=i),i?o.arguments=this.parseCallExpressionArguments(11):o.arguments=this.parseCallExpressionArguments(11,t.type==="Import",t.type!=="Super",o,n);let c=this.finishCallExpression(o,l);return h&&this.shouldParseAsyncArrow()&&!i?(s.stop=!0,this.checkDestructuringPrivate(n),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(e),c)):(h&&(this.checkExpressionErrors(n,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=r,c}toReferencedArguments(t,e){this.toReferencedListDeep(t.arguments,e)}parseTaggedTemplateExpression(t,e,s){let i=this.startNodeAt(e);return i.tag=t,i.quasi=this.parseTemplate(!0),s.optionalChainMember&&this.raise(p.OptionalChainingNoTemplate,{at:e}),this.finishNode(i,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return t.type==="Identifier"&&t.name==="async"&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&t.start===this.state.potentialArrowAt}expectImportAttributesPlugin(){this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes")}finishCallExpression(t,e){if(t.callee.type==="Import")if(t.arguments.length===2&&(this.hasPlugin("moduleAttributes")||this.expectImportAttributesPlugin()),t.arguments.length===0||t.arguments.length>2)this.raise(p.ImportCallArity,{at:t,maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(let s of t.arguments)s.type==="SpreadElement"&&this.raise(p.ImportCallSpreadArgument,{at:s});return this.finishNode(t,e?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,e,s,i,r){let n=[],o=!0,h=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){e&&!this.hasPlugin("importAttributes")&&!this.hasPlugin("importAssertions")&&!this.hasPlugin("moduleAttributes")&&this.raise(p.ImportCallArgumentTrailingComma,{at:this.state.lastTokStartLoc}),i&&this.addTrailingCommaExtraToNode(i),this.next();break}n.push(this.parseExprListItem(!1,r,s))}return this.state.inFSharpPipelineDirectBody=h,n}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,e){var s;return this.resetPreviousNodeTrailingComments(e),this.expect(19),this.parseArrowExpression(t,e.arguments,!0,(s=e.extra)==null?void 0:s.trailingCommaLoc),e.innerComments&&De(t,e.innerComments),e.callee.trailingComments&&De(t,e.callee.trailingComments),t}parseNoCallExpr(){let t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}parseExprAtom(t){let e,s=null,{type:i}=this.state;switch(i){case 79:return this.parseSuper();case 83:return e=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(e):(this.match(10)||this.raise(p.UnsupportedImport,{at:this.state.lastTokStartLoc}),this.finishNode(e,"Import"));case 78:return e=this.startNode(),this.next(),this.finishNode(e,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 132:return this.parseNumericLiteral(this.state.value);case 133:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseDecimalLiteral(this.state.value);case 131:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let r=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(r)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,t);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:s=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(s,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{e=this.startNode(),this.next(),e.object=null;let r=e.callee=this.parseNoCallExpr();if(r.type==="MemberExpression")return this.finishNode(e,"BindExpression");throw this.raise(p.UnsupportedBind,{at:r})}case 136:return this.raise(p.PrivateInExpectedIn,{at:this.state.startLoc,identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let r=this.getPluginOption("pipelineOperator","proposal");if(r)return this.parseTopicReference(r);this.unexpected();break}case 47:{let r=this.input.codePointAt(this.nextTokenStart());$(r)||r===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(S(i)){if(this.isContextual(125)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let r=this.state.potentialArrowAt===this.state.start,n=this.state.containsEsc,o=this.parseIdentifier();if(!n&&o.name==="async"&&!this.canInsertSemicolon()){let{type:h}=this.state;if(h===68)return this.resetPreviousNodeTrailingComments(o),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(o));if(S(h))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(o)):o;if(h===90)return this.resetPreviousNodeTrailingComments(o),this.parseDo(this.startNodeAtNode(o),!0)}return r&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(o),[o],!1)):o}else this.unexpected()}}parseTopicReferenceThenEqualsSign(t,e){let s=this.getPluginOption("pipelineOperator","proposal");if(s)return this.state.type=t,this.state.value=e,this.state.pos--,this.state.end--,this.state.endLoc=L(this.state.endLoc,-1),this.parseTopicReference(s);this.unexpected()}parseTopicReference(t){let e=this.startNode(),s=this.state.startLoc,i=this.state.type;return this.next(),this.finishTopicReference(e,s,t,i)}finishTopicReference(t,e,s,i){if(this.testTopicReferenceConfiguration(s,e,i)){let r=s==="smart"?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise(s==="smart"?p.PrimaryTopicNotAllowed:p.PipeTopicUnbound,{at:e}),this.registerTopicReference(),this.finishNode(t,r)}else throw this.raise(p.PipeTopicUnconfiguredToken,{at:e,token:J(i)})}testTopicReferenceConfiguration(t,e,s){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:J(s)}]);case"smart":return s===27;default:throw this.raise(p.PipeTopicRequiresHackPipes,{at:e})}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(qe(!0,this.prodParam.hasYield));let e=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(p.LineTerminatorBeforeArrow,{at:this.state.curPosition()}),this.expect(19),this.parseArrowExpression(t,e,!0)}parseDo(t,e){this.expectPlugin("doExpressions"),e&&this.expectPlugin("asyncDoExpressions"),t.async=e,this.next();let s=this.state.labels;return this.state.labels=[],e?(this.prodParam.enter(it),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=s,this.finishNode(t,"DoExpression")}parseSuper(){let t=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!this.options.allowSuperOutsideMethod?this.raise(p.SuperNotAllowed,{at:t}):!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod&&this.raise(p.UnexpectedSuper,{at:t}),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(p.UnsupportedSuper,{at:t}),this.finishNode(t,"Super")}parsePrivateName(){let t=this.startNode(),e=this.startNodeAt(L(this.state.startLoc,1)),s=this.state.value;return this.next(),t.id=this.createIdentifier(e,s),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){let t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let e=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(102)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,e,"sent")}return this.parseFunction(t)}parseMetaProperty(t,e,s){t.meta=e;let i=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==s||i)&&this.raise(p.UnsupportedMetaProperty,{at:t.property,target:e.name,onlyValidPropertyName:s}),this.finishNode(t,"MetaProperty")}parseImportMetaProperty(t){let e=this.createIdentifier(this.startNodeAtNode(t),"import");return this.next(),this.isContextual(100)&&(this.inModule||this.raise(p.ImportMetaOutsideModule,{at:e}),this.sawUnambiguousESM=!0),this.parseMetaProperty(t,e,"meta")}parseLiteralAtNode(t,e,s){return this.addExtra(s,"rawValue",t),this.addExtra(s,"raw",this.input.slice(s.start,this.state.end)),s.value=t,this.next(),this.finishNode(s,e)}parseLiteral(t,e){let s=this.startNode();return this.parseLiteralAtNode(t,e,s)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){return this.parseLiteral(t,"BigIntLiteral")}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){let e=this.parseLiteral(t.value,"RegExpLiteral");return e.pattern=t.pattern,e.flags=t.flags,e}parseBooleanLiteral(t){let e=this.startNode();return e.value=t,this.next(),this.finishNode(e,"BooleanLiteral")}parseNullLiteral(){let t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){let e=this.state.startLoc,s;this.next(),this.expressionScope.enter(Hr());let i=this.state.maybeInArrowParameters,r=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let n=this.state.startLoc,o=[],h=new ue,l=!0,c,u;for(;!this.match(11);){if(l)l=!1;else if(this.expect(12,h.optionalParametersLoc===null?null:h.optionalParametersLoc),this.match(11)){u=this.state.startLoc;break}if(this.match(21)){let x=this.state.startLoc;if(c=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),x)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowIn(h,this.parseParenItem))}let d=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=i,this.state.inFSharpPipelineDirectBody=r;let f=this.startNodeAt(e);return t&&this.shouldParseArrow(o)&&(f=this.parseArrow(f))?(this.checkDestructuringPrivate(h),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(f,o,!1),f):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),u&&this.unexpected(u),c&&this.unexpected(c),this.checkExpressionErrors(h,!0),this.toReferencedListDeep(o,!0),o.length>1?(s=this.startNodeAt(n),s.expressions=o,this.finishNode(s,"SequenceExpression"),this.resetEndLocation(s,d)):s=o[0],this.wrapParenthesis(e,s))}wrapParenthesis(t,e){if(!this.options.createParenthesizedExpressions)return this.addExtra(e,"parenthesized",!0),this.addExtra(e,"parenStart",t.index),this.takeSurroundingComments(e,t.index,this.state.lastTokEndLoc.index),e;let s=this.startNodeAt(t);return s.expression=e,this.finishNode(s,"ParenthesizedExpression")}shouldParseArrow(t){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,e){return t}parseNewOrNewTarget(){let t=this.startNode();if(this.next(),this.match(16)){let e=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();let s=this.parseMetaProperty(t,e,"target");return!this.scope.inNonArrowFunction&&!this.scope.inClass&&!this.options.allowNewTargetOutsideFunction&&this.raise(p.UnexpectedNewTarget,{at:s}),s}return this.parseNew(t)}parseNew(t){if(this.parseNewCallee(t),this.eat(10)){let e=this.parseExprList(11);this.toReferencedList(e),t.arguments=e}else t.arguments=[];return this.finishNode(t,"NewExpression")}parseNewCallee(t){t.callee=this.parseNoCallExpr(),t.callee.type==="Import"&&this.raise(p.ImportCallNotNewExpression,{at:t.callee})}parseTemplateElement(t){let{start:e,startLoc:s,end:i,value:r}=this.state,n=e+1,o=this.startNodeAt(L(s,1));r===null&&(t||this.raise(p.InvalidEscapeSequenceTemplate,{at:L(this.state.firstInvalidTemplateEscapePos,1)}));let h=this.match(24),l=h?-1:-2,c=i+l;o.value={raw:this.input.slice(n,c).replace(/\r\n?/g,` -`),cooked:r===null?null:r.slice(1,l)},o.tail=h,this.next();let u=this.finishNode(o,"TemplateElement");return this.resetEndLocation(u,L(this.state.lastTokEndLoc,l)),u}parseTemplate(t){let e=this.startNode();e.expressions=[];let s=this.parseTemplateElement(t);for(e.quasis=[s];!s.tail;)e.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),e.quasis.push(s=this.parseTemplateElement(t));return this.finishNode(e,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,e,s,i){s&&this.expectPlugin("recordAndTuple");let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=Object.create(null),o=!0,h=this.startNode();for(h.properties=[],this.next();!this.match(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(h);break}let c;e?c=this.parseBindingProperty():(c=this.parsePropertyDefinition(i),this.checkProto(c,s,n,i)),s&&!this.isObjectProperty(c)&&c.type!=="SpreadElement"&&this.raise(p.InvalidRecordProperty,{at:c}),c.shorthand&&this.addExtra(c,"shorthand",!0),h.properties.push(c)}this.next(),this.state.inFSharpPipelineDirectBody=r;let l="ObjectExpression";return e?l="ObjectPattern":s&&(l="RecordExpression"),this.finishNode(h,l)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStart),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let e=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(p.UnsupportedPropertyDecorator,{at:this.state.startLoc});this.match(26);)e.push(this.parseDecorator());let s=this.startNode(),i=!1,r=!1,n;if(this.match(21))return e.length&&this.unexpected(),this.parseSpread();e.length&&(s.decorators=e,e=[]),s.method=!1,t&&(n=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(s);let h=this.state.containsEsc,l=this.parsePropertyName(s,t);if(!o&&!h&&this.maybeAsyncOrAccessorProp(s)){let c=l.name;c==="async"&&!this.hasPrecedingLineBreak()&&(i=!0,this.resetPreviousNodeTrailingComments(l),o=this.eat(55),this.parsePropertyName(s)),(c==="get"||c==="set")&&(r=!0,this.resetPreviousNodeTrailingComments(l),s.kind=c,this.match(55)&&(o=!0,this.raise(p.AccessorIsGenerator,{at:this.state.curPosition(),kind:c}),this.next()),this.parsePropertyName(s))}return this.parseObjPropValue(s,n,o,i,!1,r,t)}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var e;let s=this.getGetterSetterExpectedParamCount(t),i=this.getObjectOrClassMethodParams(t);i.length!==s&&this.raise(t.kind==="get"?p.BadGetterArity:p.BadSetterArity,{at:t}),t.kind==="set"&&((e=i[i.length-1])==null?void 0:e.type)==="RestElement"&&this.raise(p.BadSetterRestParameter,{at:t})}parseObjectMethod(t,e,s,i,r){if(r){let n=this.parseMethod(t,e,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(n),n}if(s||e||this.match(10))return i&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,e,s,!1,!1,"ObjectMethod")}parseObjectProperty(t,e,s,i){if(t.shorthand=!1,this.eat(14))return t.value=s?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(i),this.finishNode(t,"ObjectProperty");if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),s)t.value=this.parseMaybeDefault(e,K(t.key));else if(this.match(29)){let r=this.state.startLoc;i!=null?i.shorthandAssignLoc===null&&(i.shorthandAssignLoc=r):this.raise(p.InvalidCoverInitializedName,{at:r}),t.value=this.parseMaybeDefault(e,K(t.key))}else t.value=K(t.key);return t.shorthand=!0,this.finishNode(t,"ObjectProperty")}}parseObjPropValue(t,e,s,i,r,n,o){let h=this.parseObjectMethod(t,s,i,r,n)||this.parseObjectProperty(t,e,r,o);return h||this.unexpected(),h}parsePropertyName(t,e){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:s,value:i}=this.state,r;if(M(s))r=this.parseIdentifier(!0);else switch(s){case 132:r=this.parseNumericLiteral(i);break;case 131:r=this.parseStringLiteral(i);break;case 133:r=this.parseBigIntLiteral(i);break;case 134:r=this.parseDecimalLiteral(i);break;case 136:{let n=this.state.startLoc;e!=null?e.privateKeyLoc===null&&(e.privateKeyLoc=n):this.raise(p.UnexpectedPrivateField,{at:n}),r=this.parsePrivateName();break}default:this.unexpected()}t.key=r,s!==136&&(t.computed=!1)}return t.key}initFunction(t,e){t.id=null,t.generator=!1,t.async=e}parseMethod(t,e,s,i,r,n,o=!1){this.initFunction(t,s),t.generator=e,this.scope.enter(z|Xe|(o?ee:0)|(r?_s:0)),this.prodParam.enter(qe(s,t.generator)),this.parseFunctionParams(t,i);let h=this.parseFunctionBodyAndFinish(t,n,!0);return this.prodParam.exit(),this.scope.exit(),h}parseArrayLike(t,e,s,i){s&&this.expectPlugin("recordAndTuple");let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=this.startNode();return this.next(),n.elements=this.parseExprList(t,!s,i,n),this.state.inFSharpPipelineDirectBody=r,this.finishNode(n,s?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,e,s,i){this.scope.enter(z|Qt);let r=qe(s,!1);!this.match(5)&&this.prodParam.hasIn&&(r|=re),this.prodParam.enter(r),this.initFunction(t,s);let n=this.state.maybeInArrowParameters;return e&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,e,i)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=n,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,e,s){this.toAssignableList(e,s,!1),t.params=e}parseFunctionBodyAndFinish(t,e,s=!1){return this.parseFunctionBody(t,!1,s),this.finishNode(t,e)}parseFunctionBody(t,e,s=!1){let i=e&&!this.match(5);if(this.expressionScope.enter(Xs()),i)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,e,!1);else{let r=this.state.strict,n=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|Ys),t.body=this.parseBlock(!0,!1,o=>{let h=!this.isSimpleParamList(t.params);o&&h&&this.raise(p.IllegalLanguageModeDirective,{at:(t.kind==="method"||t.kind==="constructor")&&t.key?t.key.loc.end:t});let l=!r&&this.state.strict;this.checkParams(t,!this.state.strict&&!e&&!s&&!h,e,l),this.state.strict&&t.id&&this.checkIdentifier(t.id,Nr,l)}),this.prodParam.exit(),this.state.labels=n}this.expressionScope.exit()}isSimpleParameter(t){return t.type==="Identifier"}isSimpleParamList(t){for(let e=0,s=t.length;e10||!Er(t))return;if(s&&br(t)){this.raise(p.UnexpectedKeyword,{at:e,keyword:t});return}if((this.state.strict?i?Bs:Ms:Ds)(t,this.inModule)){this.raise(p.UnexpectedReservedWord,{at:e,reservedWord:t});return}else if(t==="yield"){if(this.prodParam.hasYield){this.raise(p.YieldBindingIdentifier,{at:e});return}}else if(t==="await"){if(this.prodParam.hasAwait){this.raise(p.AwaitBindingIdentifier,{at:e});return}if(this.scope.inStaticBlock){this.raise(p.AwaitBindingIdentifierInStaticBlock,{at:e});return}this.expressionScope.recordAsyncArrowParametersError({at:e})}else if(t==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(p.ArgumentsInClass,{at:e});return}}isAwaitAllowed(){return!!(this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction)}parseAwait(t){let e=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(p.AwaitExpressionFormalParameter,{at:e}),this.eat(55)&&this.raise(p.ObsoleteAwaitStar,{at:e}),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(e.argument=this.parseMaybeUnary(null,!0)),this.finishNode(e,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;let{type:t}=this.state;return t===53||t===10||t===0||Je(t)||t===101&&!this.state.containsEsc||t===135||t===56||this.hasPlugin("v8intrinsic")&&t===54}parseYield(){let t=this.startNode();this.expressionScope.recordParameterInitializerError(p.YieldInParameter,{at:t}),this.next();let e=!1,s=null;if(!this.hasPrecedingLineBreak())switch(e=this.eat(55),this.state.type){case 13:case 137:case 8:case 11:case 3:case 9:case 14:case 12:if(!e)break;default:s=this.parseMaybeAssign()}return t.delegate=e,t.argument=s,this.finishNode(t,"YieldExpression")}checkPipelineAtInfixOperator(t,e){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&t.type==="SequenceExpression"&&this.raise(p.PipelineHeadSequenceExpression,{at:e})}parseSmartPipelineBodyInStyle(t,e){if(this.isSimpleReference(t)){let s=this.startNodeAt(e);return s.callee=t,this.finishNode(s,"PipelineBareFunction")}else{let s=this.startNodeAt(e);return this.checkSmartPipeTopicBodyEarlyErrors(e),s.expression=t,this.finishNode(s,"PipelineTopicExpression")}}isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(p.PipelineBodyNoArrow,{at:this.state.startLoc});this.topicReferenceWasUsedInCurrentContext()||this.raise(p.PipelineTopicUnused,{at:t})}withTopicBindingContext(t){let e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}withSmartMixTopicForbiddingContext(t){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}else return t()}withSoloAwaitPermittingContext(t){let e=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=e}}allowInAnd(t){let e=this.prodParam.currentFlags();if(re&~e){this.prodParam.enter(e|re);try{return t()}finally{this.prodParam.exit()}}return t()}disallowInAnd(t){let e=this.prodParam.currentFlags();if(re&e){this.prodParam.enter(e&~re);try{return t()}finally{this.prodParam.exit()}}return t()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){let e=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let i=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),e,t);return this.state.inFSharpPipelineDirectBody=s,i}parseModuleExpression(){this.expectPlugin("moduleBlocks");let t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let e=this.startNodeAt(this.state.endLoc);this.next();let s=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(e,8,"module")}finally{s()}return this.finishNode(t,"ModuleExpression")}parsePropertyNamePrefixOperator(t){}},yt={kind:"loop"},xa={kind:"switch"},Pa=/[\uD800-\uDFFF]/u,xt=/in(?:stanceof)?/y;function Ta(a,t){for(let e=0;e0)for(let[r,n]of Array.from(this.scope.undefinedExports))this.raise(p.ModuleExportUndefined,{at:n,localName:r});let i;return e===137?i=this.finishNode(t,"Program"):i=this.finishNodeAt(t,"Program",L(this.state.startLoc,-1)),i}stmtToDirective(t){let e=t;e.type="Directive",e.value=e.expression,delete e.expression;let s=e.value,i=s.value,r=this.input.slice(s.start,s.end),n=s.value=r.slice(1,-1);return this.addExtra(s,"raw",r),this.addExtra(s,"rawValue",n),this.addExtra(s,"expressionValue",i),s.type="DirectiveLiteral",e}parseInterpreterDirective(){if(!this.match(28))return null;let t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(){return this.isContextual(99)?this.hasFollowingBindingAtom():!1}chStartsBindingIdentifier(t,e){if($(t)){if(xt.lastIndex=e,xt.test(this.input)){let s=this.codePointAtPos(xt.lastIndex);if(!he(s)&&s!==92)return!1}return!0}else return t===92}chStartsBindingPattern(t){return t===91||t===123}hasFollowingBindingAtom(){let t=this.nextTokenStart(),e=this.codePointAtPos(t);return this.chStartsBindingPattern(e)||this.chStartsBindingIdentifier(e,t)}hasInLineFollowingBindingIdentifier(){let t=this.nextTokenInLineStart(),e=this.codePointAtPos(t);return this.chStartsBindingIdentifier(e,t)}startsUsingForOf(){let{type:t,containsEsc:e}=this.lookahead();if(t===101&&!e)return!1;if(S(t)&&!this.hasFollowingLineBreak())return this.expectPlugin("explicitResourceManagement"),!0}startsAwaitUsing(){let t=this.nextTokenInLineStart();if(this.isUnparsedContextual(t,"using")){t=this.nextTokenInLineStartSince(t+5);let e=this.codePointAtPos(t);if(this.chStartsBindingIdentifier(e,t))return this.expectPlugin("explicitResourceManagement"),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(t=!1){let e=0;return this.options.annexB&&!this.state.strict&&(e|=4,t&&(e|=8)),this.parseStatementLike(e)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(t){let e=null;return this.match(26)&&(e=this.parseDecorators(!0)),this.parseStatementContent(t,e)}parseStatementContent(t,e){let s=this.state.type,i=this.startNode(),r=!!(t&2),n=!!(t&4),o=t&1;switch(s){case 60:return this.parseBreakContinueStatement(i,!0);case 63:return this.parseBreakContinueStatement(i,!1);case 64:return this.parseDebuggerStatement(i);case 90:return this.parseDoWhileStatement(i);case 91:return this.parseForStatement(i);case 68:if(this.lookaheadCharCode()===46)break;return n||this.raise(this.state.strict?p.StrictFunction:this.options.annexB?p.SloppyFunctionAnnexB:p.SloppyFunction,{at:this.state.startLoc}),this.parseFunctionStatement(i,!1,!r&&n);case 80:return r||this.unexpected(),this.parseClass(this.maybeTakeDecorators(e,i),!0);case 69:return this.parseIfStatement(i);case 70:return this.parseReturnStatement(i);case 71:return this.parseSwitchStatement(i);case 72:return this.parseThrowStatement(i);case 73:return this.parseTryStatement(i);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.isAwaitAllowed()?r||this.raise(p.UnexpectedLexicalDeclaration,{at:i}):this.raise(p.AwaitUsingNotInAsyncContext,{at:i}),this.next(),this.parseVarStatement(i,"await using");break;case 105:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifier())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(p.UnexpectedUsingDeclaration,{at:this.state.startLoc}):r||this.raise(p.UnexpectedLexicalDeclaration,{at:this.state.startLoc}),this.parseVarStatement(i,"using");case 99:{if(this.state.containsEsc)break;let c=this.nextTokenStart(),u=this.codePointAtPos(c);if(u!==91&&(!r&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(u,c)&&u!==123))break}case 75:r||this.raise(p.UnexpectedLexicalDeclaration,{at:this.state.startLoc});case 74:{let c=this.state.value;return this.parseVarStatement(i,c)}case 92:return this.parseWhileStatement(i);case 76:return this.parseWithStatement(i);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(i);case 83:{let c=this.lookaheadCharCode();if(c===40||c===46)break}case 82:{!this.options.allowImportExportEverywhere&&!o&&this.raise(p.UnexpectedImportExport,{at:this.state.startLoc}),this.next();let c;return s===83?(c=this.parseImport(i),c.type==="ImportDeclaration"&&(!c.importKind||c.importKind==="value")&&(this.sawUnambiguousESM=!0)):(c=this.parseExport(i,e),(c.type==="ExportNamedDeclaration"&&(!c.exportKind||c.exportKind==="value")||c.type==="ExportAllDeclaration"&&(!c.exportKind||c.exportKind==="value")||c.type==="ExportDefaultDeclaration")&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(c),c}default:if(this.isAsyncFunction())return r||this.raise(p.AsyncFunctionInSingleStatementContext,{at:this.state.startLoc}),this.next(),this.parseFunctionStatement(i,!0,!r&&n)}let h=this.state.value,l=this.parseExpression();return S(s)&&l.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(i,h,l,t):this.parseExpressionStatement(i,l,e)}assertModuleNodeAllowed(t){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(p.ImportOutsideModule,{at:t})}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(t,e,s){return t&&(e.decorators&&e.decorators.length>0?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(p.DecoratorsBeforeAfterExport,{at:e.decorators[0]}),e.decorators.unshift(...t)):e.decorators=t,this.resetStartLocationFromNode(e,t[0]),s&&this.resetStartLocationFromNode(s,e)),e}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){let e=[];do e.push(this.parseDecorator());while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(p.DecoratorExportClass,{at:this.state.startLoc});else if(!this.canHaveLeadingDecorator())throw this.raise(p.UnexpectedLeadingDecorator,{at:this.state.startLoc});return e}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let t=this.startNode();if(this.next(),this.hasPlugin("decorators")){let e=this.state.startLoc,s;if(this.match(10)){let i=this.state.startLoc;this.next(),s=this.parseExpression(),this.expect(11),s=this.wrapParenthesis(i,s);let r=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(s),this.getPluginOption("decorators","allowCallParenthesized")===!1&&t.expression!==s&&this.raise(p.DecoratorArgumentsOutsideParentheses,{at:r})}else{for(s=this.parseIdentifier(!1);this.eat(16);){let i=this.startNodeAt(e);i.object=s,this.match(136)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),i.property=this.parsePrivateName()):i.property=this.parseIdentifier(!0),i.computed=!1,s=this.finishNode(i,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(s)}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t){if(this.eat(10)){let e=this.startNodeAtNode(t);return e.callee=t,e.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(e.arguments),this.finishNode(e,"CallExpression")}return t}parseBreakContinueStatement(t,e){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,e),this.finishNode(t,e?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,e){let s;for(s=0;sthis.parseStatement()),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(yt);let e=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(e=this.state.lastTokStartLoc),this.scope.enter(ae),this.expect(10),this.match(13))return e!==null&&this.unexpected(e),this.parseFor(t,null);let s=this.isContextual(99);{let h=this.isContextual(96)&&this.startsAwaitUsing(),l=h||this.isContextual(105)&&this.startsUsingForOf(),c=s&&this.hasFollowingBindingAtom()||l;if(this.match(74)||this.match(75)||c){let u=this.startNode(),d;h?(d="await using",this.isAwaitAllowed()||this.raise(p.AwaitUsingNotInAsyncContext,{at:this.state.startLoc}),this.next()):d=this.state.value,this.next(),this.parseVar(u,!0,d);let f=this.finishNode(u,"VariableDeclaration"),x=this.match(58);return x&&l&&this.raise(p.ForInUsing,{at:f}),(x||this.isContextual(101))&&f.declarations.length===1?this.parseForIn(t,f,e):(e!==null&&this.unexpected(e),this.parseFor(t,f))}}let i=this.isContextual(95),r=new ue,n=this.parseExpression(!0,r),o=this.isContextual(101);if(o&&(s&&this.raise(p.ForOfLet,{at:n}),e===null&&i&&n.type==="Identifier"&&this.raise(p.ForOfAsync,{at:n})),o||this.match(58)){this.checkDestructuringPrivate(r),this.toAssignable(n,!0);let h=o?"ForOfStatement":"ForInStatement";return this.checkLVal(n,{in:{type:h}}),this.parseForIn(t,n,e)}else this.checkExpressionErrors(r,!0);return e!==null&&this.unexpected(e),this.parseFor(t,n)}parseFunctionStatement(t,e,s){return this.next(),this.parseFunction(t,1|(s?2:0)|(e?8:0))}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),t.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(p.IllegalReturn,{at:this.state.startLoc}),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();let e=t.cases=[];this.expect(5),this.state.labels.push(xa),this.scope.enter(ae);let s;for(let i;!this.match(8);)if(this.match(61)||this.match(65)){let r=this.match(61);s&&this.finishNode(s,"SwitchCase"),e.push(s=this.startNode()),s.consequent=[],this.next(),r?s.test=this.parseExpression():(i&&this.raise(p.MultipleDefaultsInSwitch,{at:this.state.lastTokStartLoc}),i=!0,s.test=null),this.expect(14)}else s?s.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),s&&this.finishNode(s,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(p.NewlineAfterThrow,{at:this.state.lastTokEndLoc}),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){let t=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&t.type==="Identifier"?Fs:0),this.checkLVal(t,{in:{type:"CatchClause"},binding:Cr}),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){let e=this.startNode();this.next(),this.match(10)?(this.expect(10),e.param=this.parseCatchClauseParam(),this.expect(11)):(e.param=null,this.scope.enter(ae)),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(67)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(p.NoCatchOrFinally,{at:t}),this.finishNode(t,"TryStatement")}parseVarStatement(t,e,s=!1){return this.next(),this.parseVar(t,!1,e,s),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(yt),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(p.StrictWith,{at:this.state.startLoc}),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,e,s,i){for(let n of this.state.labels)n.name===e&&this.raise(p.LabelRedeclaration,{at:s,labelName:e});let r=hr(this.state.type)?"loop":this.match(71)?"switch":null;for(let n=this.state.labels.length-1;n>=0;n--){let o=this.state.labels[n];if(o.statementStart===t.start)o.statementStart=this.state.start,o.kind=r;else break}return this.state.labels.push({name:e,kind:r,statementStart:this.state.start}),t.body=i&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=s,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,e,s){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,e=!0,s){let i=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),e&&this.scope.enter(ae),this.parseBlockBody(i,t,!1,8,s),e&&this.scope.exit(),this.finishNode(i,"BlockStatement")}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="StringLiteral"&&!t.expression.extra.parenthesized}parseBlockBody(t,e,s,i,r){let n=t.body=[],o=t.directives=[];this.parseBlockOrModuleBlockBody(n,e?o:void 0,s,i,r)}parseBlockOrModuleBlockBody(t,e,s,i,r){let n=this.state.strict,o=!1,h=!1;for(;!this.match(i);){let l=s?this.parseModuleItem():this.parseStatementListItem();if(e&&!h){if(this.isValidDirective(l)){let c=this.stmtToDirective(l);e.push(c),!o&&c.value.value==="use strict"&&(o=!0,this.setStrict(!0));continue}h=!0,this.state.strictErrors.clear()}t.push(l)}r&&r.call(this,o),n||this.setStrict(!1),this.next()}parseFor(t,e){return t.init=e,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,e,s){let i=this.match(58);return this.next(),i?s!==null&&this.unexpected(s):t.await=s!==null,e.type==="VariableDeclaration"&&e.declarations[0].init!=null&&(!i||!this.options.annexB||this.state.strict||e.kind!=="var"||e.declarations[0].id.type!=="Identifier")&&this.raise(p.ForInOfLoopInitializer,{at:e,type:i?"ForInStatement":"ForOfStatement"}),e.type==="AssignmentPattern"&&this.raise(p.InvalidLhs,{at:e,ancestor:{type:"ForStatement"}}),t.left=e,t.right=i?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")}parseVar(t,e,s,i=!1){let r=t.declarations=[];for(t.kind=s;;){let n=this.startNode();if(this.parseVarId(n,s),n.init=this.eat(29)?e?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,n.init===null&&!i&&(n.id.type!=="Identifier"&&!(e&&(this.match(58)||this.isContextual(101)))?this.raise(p.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"destructuring"}):s==="const"&&!(this.match(58)||this.isContextual(101))&&this.raise(p.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"const"})),r.push(this.finishNode(n,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,e){let s=this.parseBindingAtom();this.checkLVal(s,{in:{type:"VariableDeclarator"},binding:e==="var"?Qe:ce}),t.id=s}parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}parseFunction(t,e=0){let s=e&2,i=!!(e&1),r=i&&!(e&4),n=!!(e&8);this.initFunction(t,n),this.match(55)&&(s&&this.raise(p.GeneratorInSingleStatementContext,{at:this.state.startLoc}),this.next(),t.generator=!0),i&&(t.id=this.parseFunctionId(r));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(z),this.prodParam.enter(qe(n,t.generator)),i||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(t,i?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),i&&!s&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=o,t}parseFunctionId(t){return t||S(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,e){this.expect(10),this.expressionScope.enter(qr()),t.params=this.parseBindingList(11,41,2|(e?4:0)),this.expressionScope.exit()}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?Qe:ce:$s,t.id.loc.start)}parseClass(t,e,s){this.next();let i=this.state.strict;return this.state.strict=!0,this.parseClassId(t,e,s),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,i),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}isNonstaticConstructor(t){return!t.computed&&!t.static&&(t.key.name==="constructor"||t.key.value==="constructor")}parseClassBody(t,e){this.classScope.enter();let s={hadConstructor:!1,hadSuperClass:t},i=[],r=this.startNode();if(r.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(i.length>0)throw this.raise(p.DecoratorSemicolon,{at:this.state.lastTokEndLoc});continue}if(this.match(26)){i.push(this.parseDecorator());continue}let n=this.startNode();i.length&&(n.decorators=i,this.resetStartLocationFromNode(n,i[0]),i=[]),this.parseClassMember(r,n,s),n.kind==="constructor"&&n.decorators&&n.decorators.length>0&&this.raise(p.DecoratorConstructor,{at:n})}}),this.state.strict=e,this.next(),i.length)throw this.raise(p.TrailingDecorator,{at:this.state.startLoc});return this.classScope.exit(),this.finishNode(r,"ClassBody")}parseClassMemberFromModifier(t,e){let s=this.parseIdentifier(!0);if(this.isClassMethod()){let i=e;return i.kind="method",i.computed=!1,i.key=s,i.static=!1,this.pushClassMethod(t,i,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let i=e;return i.computed=!1,i.key=s,i.static=!1,t.body.push(this.parseClassProperty(i)),!0}return this.resetPreviousNodeTrailingComments(s),!1}parseClassMember(t,e,s){let i=this.isContextual(104);if(i){if(this.parseClassMemberFromModifier(t,e))return;if(this.eat(5)){this.parseClassStaticBlock(t,e);return}}this.parseClassMemberWithIsStatic(t,e,s,i)}parseClassMemberWithIsStatic(t,e,s,i){let r=e,n=e,o=e,h=e,l=e,c=r,u=r;if(e.static=i,this.parsePropertyNamePrefixOperator(e),this.eat(55)){c.kind="method";let C=this.match(136);if(this.parseClassElementName(c),C){this.pushClassPrivateMethod(t,n,!0,!1);return}this.isNonstaticConstructor(r)&&this.raise(p.ConstructorIsGenerator,{at:r.key}),this.pushClassMethod(t,r,!0,!1,!1,!1);return}let d=S(this.state.type)&&!this.state.containsEsc,f=this.match(136),x=this.parseClassElementName(e),I=this.state.startLoc;if(this.parsePostMemberNameModifiers(u),this.isClassMethod()){if(c.kind="method",f){this.pushClassPrivateMethod(t,n,!1,!1);return}let C=this.isNonstaticConstructor(r),w=!1;C&&(r.kind="constructor",s.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(p.DuplicateConstructor,{at:x}),C&&this.hasPlugin("typescript")&&e.override&&this.raise(p.OverrideOnConstructor,{at:x}),s.hadConstructor=!0,w=s.hadSuperClass),this.pushClassMethod(t,r,!1,!1,C,w)}else if(this.isClassProperty())f?this.pushClassPrivateProperty(t,h):this.pushClassProperty(t,o);else if(d&&x.name==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(x);let C=this.eat(55);u.optional&&this.unexpected(I),c.kind="method";let w=this.match(136);this.parseClassElementName(c),this.parsePostMemberNameModifiers(u),w?this.pushClassPrivateMethod(t,n,C,!0):(this.isNonstaticConstructor(r)&&this.raise(p.ConstructorIsAsync,{at:r.key}),this.pushClassMethod(t,r,C,!0,!1,!1))}else if(d&&(x.name==="get"||x.name==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(x),c.kind=x.name;let C=this.match(136);this.parseClassElementName(r),C?this.pushClassPrivateMethod(t,n,!1,!1):(this.isNonstaticConstructor(r)&&this.raise(p.ConstructorIsAccessor,{at:r.key}),this.pushClassMethod(t,r,!1,!1,!1,!1)),this.checkGetterSetterParams(r)}else if(d&&x.name==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(x);let C=this.match(136);this.parseClassElementName(o),this.pushClassAccessorProperty(t,l,C)}else this.isLineTerminator()?f?this.pushClassPrivateProperty(t,h):this.pushClassProperty(t,o):this.unexpected()}parseClassElementName(t){let{type:e,value:s}=this.state;if((e===130||e===131)&&t.static&&s==="prototype"&&this.raise(p.StaticPrototype,{at:this.state.startLoc}),e===136){s==="constructor"&&this.raise(p.ConstructorClassPrivateField,{at:this.state.startLoc});let i=this.parsePrivateName();return t.key=i,i}return this.parsePropertyName(t)}parseClassStaticBlock(t,e){var s;this.scope.enter(ee|Ge|Xe);let i=this.state.labels;this.state.labels=[],this.prodParam.enter(pe);let r=e.body=[];this.parseBlockOrModuleBlockBody(r,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=i,t.body.push(this.finishNode(e,"StaticBlock")),(s=e.decorators)!=null&&s.length&&this.raise(p.DecoratorStaticBlock,{at:e})}pushClassProperty(t,e){!e.computed&&(e.key.name==="constructor"||e.key.value==="constructor")&&this.raise(p.ConstructorClassField,{at:e.key}),t.body.push(this.parseClassProperty(e))}pushClassPrivateProperty(t,e){let s=this.parseClassPrivateProperty(e);t.body.push(s),this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),dt,s.key.loc.start)}pushClassAccessorProperty(t,e,s){if(!s&&!e.computed){let r=e.key;(r.name==="constructor"||r.value==="constructor")&&this.raise(p.ConstructorClassField,{at:r})}let i=this.parseClassAccessorProperty(e);t.body.push(i),s&&this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),dt,i.key.loc.start)}pushClassMethod(t,e,s,i,r,n){t.body.push(this.parseMethod(e,s,i,r,n,"ClassMethod",!0))}pushClassPrivateMethod(t,e,s,i){let r=this.parseMethod(e,s,i,!1,!1,"ClassPrivateMethod",!0);t.body.push(r);let n=r.kind==="get"?r.static?Dr:Or:r.kind==="set"?r.static?Mr:Br:dt;this.declareClassPrivateMethodInScope(r,n)}declareClassPrivateMethodInScope(t,e){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),e,t.key.loc.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(ee|Xe),this.expressionScope.enter(Xs()),this.prodParam.enter(pe),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,e,s,i=js){if(S(this.state.type))t.id=this.parseIdentifier(),e&&this.declareNameFromIdentifier(t.id,i);else if(s||!e)t.id=null;else throw this.raise(p.MissingClassName,{at:this.state.startLoc})}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(t,e){let s=this.parseMaybeImportPhase(t,!0),i=this.maybeParseExportDefaultSpecifier(t,s),r=!i||this.eat(12),n=r&&this.eatExportStar(t),o=n&&this.maybeParseExportNamespaceSpecifier(t),h=r&&(!o||this.eat(12)),l=i||n;if(n&&!o){if(i&&this.unexpected(),e)throw this.raise(p.UnsupportedDecoratorExport,{at:t});return this.parseExportFrom(t,!0),this.finishNode(t,"ExportAllDeclaration")}let c=this.maybeParseExportNamedSpecifiers(t);i&&r&&!n&&!c&&this.unexpected(null,5),o&&h&&this.unexpected(null,97);let u;if(l||c){if(u=!1,e)throw this.raise(p.UnsupportedDecoratorExport,{at:t});this.parseExportFrom(t,l)}else u=this.maybeParseExportDeclaration(t);if(l||c||u){var d;let f=t;if(this.checkExport(f,!0,!1,!!f.source),((d=f.declaration)==null?void 0:d.type)==="ClassDeclaration")this.maybeTakeDecorators(e,f.declaration,f);else if(e)throw this.raise(p.UnsupportedDecoratorExport,{at:t});return this.finishNode(f,"ExportNamedDeclaration")}if(this.eat(65)){let f=t,x=this.parseExportDefaultExpression();if(f.declaration=x,x.type==="ClassDeclaration")this.maybeTakeDecorators(e,x,f);else if(e)throw this.raise(p.UnsupportedDecoratorExport,{at:t});return this.checkExport(f,!0,!0),this.finishNode(f,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t,e){if(e||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",e==null?void 0:e.loc.start);let s=e||this.parseIdentifier(!0),i=this.startNodeAtNode(s);return i.exported=s,t.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){t.specifiers||(t.specifiers=[]);let e=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),e.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(e,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){t.specifiers||(t.specifiers=[]);let e=t.exportKind==="type";return t.specifiers.push(...this.parseExportSpecifiers(e)),t.source=null,t.declaration=null,this.hasPlugin("importAssertions")&&(t.assertions=[]),!0}return!1}maybeParseExportDeclaration(t){return this.shouldParseExportDeclaration()?(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")&&(t.assertions=[]),t.declaration=this.parseExportDeclaration(t),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let t=this.nextTokenInLineStart();return this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){let t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(p.DecoratorBeforeExport,{at:this.state.startLoc}),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(p.UnsupportedDefaultExport,{at:this.state.startLoc});let e=this.parseMaybeAssignAllowIn();return this.semicolon(),e}parseExportDeclaration(t){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:t}=this.state;if(S(t)){if(t===95&&!this.state.containsEsc||t===99)return!1;if((t===128||t===127)&&!this.state.containsEsc){let{type:i}=this.lookahead();if(S(i)&&i!==97||i===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let e=this.nextTokenStart(),s=this.isUnparsedContextual(e,"from");if(this.input.charCodeAt(e)===44||S(this.state.type)&&s)return!0;if(this.match(65)&&s){let i=this.input.charCodeAt(this.nextTokenStartSince(e+4));return i===34||i===39}return!1}parseExportFrom(t,e){this.eatContextual(97)?(t.source=this.parseImportSource(),this.checkExport(t),this.maybeParseImportAttributes(t),this.checkJSONModuleImport(t)):e&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:t}=this.state;return t===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(p.DecoratorBeforeExport,{at:this.state.startLoc}),!0):t===74||t===75||t===68||t===80||this.isLet()||this.isAsyncFunction()}checkExport(t,e,s,i){if(e){if(s){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var r;let n=t.declaration;n.type==="Identifier"&&n.name==="from"&&n.end-n.start===4&&!((r=n.extra)!=null&&r.parenthesized)&&this.raise(p.ExportDefaultFromAsIdentifier,{at:n})}}else if(t.specifiers&&t.specifiers.length)for(let n of t.specifiers){let{exported:o}=n,h=o.type==="Identifier"?o.name:o.value;if(this.checkDuplicateExports(n,h),!i&&n.local){let{local:l}=n;l.type!=="Identifier"?this.raise(p.ExportBindingIsString,{at:n,localName:l.value,exportName:h}):(this.checkReservedWord(l.name,l.loc.start,!0,!1),this.scope.checkLocalExport(l))}}else if(t.declaration){if(t.declaration.type==="FunctionDeclaration"||t.declaration.type==="ClassDeclaration"){let n=t.declaration.id;if(!n)throw new Error("Assertion failure");this.checkDuplicateExports(t,n.name)}else if(t.declaration.type==="VariableDeclaration")for(let n of t.declaration.declarations)this.checkDeclaration(n.id)}}}checkDeclaration(t){if(t.type==="Identifier")this.checkDuplicateExports(t,t.name);else if(t.type==="ObjectPattern")for(let e of t.properties)this.checkDeclaration(e);else if(t.type==="ArrayPattern")for(let e of t.elements)e&&this.checkDeclaration(e);else t.type==="ObjectProperty"?this.checkDeclaration(t.value):t.type==="RestElement"?this.checkDeclaration(t.argument):t.type==="AssignmentPattern"&&this.checkDeclaration(t.left)}checkDuplicateExports(t,e){this.exportedIdentifiers.has(e)&&(e==="default"?this.raise(p.DuplicateDefaultExport,{at:t}):this.raise(p.DuplicateExport,{at:t,exportName:e})),this.exportedIdentifiers.add(e)}parseExportSpecifiers(t){let e=[],s=!0;for(this.expect(5);!this.eat(8);){if(s)s=!1;else if(this.expect(12),this.eat(8))break;let i=this.isContextual(128),r=this.match(131),n=this.startNode();n.local=this.parseModuleExportName(),e.push(this.parseExportSpecifier(n,r,t,i))}return e}parseExportSpecifier(t,e,s,i){return this.eatContextual(93)?t.exported=this.parseModuleExportName():e?t.exported=Xr(t.local):t.exported||(t.exported=K(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(131)){let t=this.parseStringLiteral(this.state.value),e=t.value.match(Pa);return e&&this.raise(p.ModuleExportNameHasLoneSurrogate,{at:t,surrogateCharCode:e[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}isJSONModuleImport(t){return t.assertions!=null?t.assertions.some(({key:e,value:s})=>s.value==="json"&&(e.type==="Identifier"?e.name==="type":e.value==="type")):!1}checkImportReflection(t){if(t.module){var e;(t.specifiers.length!==1||t.specifiers[0].type!=="ImportDefaultSpecifier")&&this.raise(p.ImportReflectionNotBinding,{at:t.specifiers[0].loc.start}),((e=t.assertions)==null?void 0:e.length)>0&&this.raise(p.ImportReflectionHasAssertion,{at:t.specifiers[0].loc.start})}}checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&t.type!=="ExportAllDeclaration"){let{specifiers:e}=t;if(e!=null){let s=e.find(i=>{let r;if(i.type==="ExportSpecifier"?r=i.local:i.type==="ImportSpecifier"&&(r=i.imported),r!==void 0)return r.type==="Identifier"?r.name!=="default":r.value!=="default"});s!==void 0&&this.raise(p.ImportJSONBindingNotDefault,{at:s.loc.start})}}}isPotentialImportPhase(t){return!t&&this.isContextual(125)}applyImportPhase(t,e,s,i){e||(s==="module"?(this.expectPlugin("importReflection",i),t.module=!0):this.hasPlugin("importReflection")&&(t.module=!1))}parseMaybeImportPhase(t,e){if(!this.isPotentialImportPhase(e))return this.applyImportPhase(t,e,null),null;let s=this.parseIdentifier(!0),{type:i}=this.state;return(M(i)?i!==97||this.lookaheadCharCode()===102:i!==12)?(this.resetPreviousIdentifierLeadingComments(s),this.applyImportPhase(t,e,s.name,s.loc.start),null):(this.applyImportPhase(t,e,null),s)}isPrecedingIdImportPhase(t){let{type:e}=this.state;return S(e)?e!==97||this.lookaheadCharCode()===102:e!==12}parseImport(t){return this.match(131)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,!1))}parseImportSpecifiersAndAfter(t,e){t.specifiers=[];let i=!this.maybeParseDefaultImportSpecifier(t,e)||this.eat(12),r=i&&this.maybeParseStarImportSpecifier(t);return i&&!r&&this.parseNamedImportSpecifiers(t),this.expectContextual(97),this.parseImportSourceAndAttributes(t)}parseImportSourceAndAttributes(t){var e;return(e=t.specifiers)!=null||(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(131)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(t,e,s){e.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(e,s))}finishImportSpecifier(t,e,s=ce){return this.checkLVal(t.local,{in:{type:e},binding:s}),this.finishNode(t,e)}parseImportAttributes(){this.expect(5);let t=[],e=new Set;do{if(this.match(8))break;let s=this.startNode(),i=this.state.value;if(e.has(i)&&this.raise(p.ModuleAttributesWithDuplicateKeys,{at:this.state.startLoc,key:i}),e.add(i),this.match(131)?s.key=this.parseStringLiteral(i):s.key=this.parseIdentifier(!0),this.expect(14),!this.match(131))throw this.raise(p.ModuleAttributeInvalidValue,{at:this.state.startLoc});s.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(s,"ImportAttribute"))}while(this.eat(12));return this.expect(8),t}parseModuleAttributes(){let t=[],e=new Set;do{let s=this.startNode();if(s.key=this.parseIdentifier(!0),s.key.name!=="type"&&this.raise(p.ModuleAttributeDifferentFromType,{at:s.key}),e.has(s.key.name)&&this.raise(p.ModuleAttributesWithDuplicateKeys,{at:s.key,key:s.key.name}),e.add(s.key.name),this.expect(14),!this.match(131))throw this.raise(p.ModuleAttributeInvalidValue,{at:this.state.startLoc});s.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(s,"ImportAttribute"))}while(this.eat(12));return t}maybeParseImportAttributes(t){let e,s=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?e=this.parseModuleAttributes():(this.expectImportAttributesPlugin(),e=this.parseImportAttributes()),s=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.hasPlugin("importAttributes")?(this.getPluginOption("importAttributes","deprecatedAssertSyntax")!==!0&&this.raise(p.ImportAttributesUseAssert,{at:this.state.startLoc}),this.addExtra(t,"deprecatedAssertSyntax",!0)):this.expectOnePlugin(["importAttributes","importAssertions"]),this.next(),e=this.parseImportAttributes();else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))e=[];else if(this.hasPlugin("moduleAttributes"))e=[];else return;!s&&this.hasPlugin("importAssertions")?t.assertions=e:t.attributes=e}maybeParseDefaultImportSpecifier(t,e){if(e){let s=this.startNodeAtNode(e);return s.local=e,t.specifiers.push(this.finishImportSpecifier(s,"ImportDefaultSpecifier")),!0}else if(M(this.state.type))return this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(t){if(this.match(55)){let e=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,e,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(t){let e=!0;for(this.expect(5);!this.eat(8);){if(e)e=!1;else{if(this.eat(14))throw this.raise(p.DestructureNamedImport,{at:this.state.startLoc});if(this.expect(12),this.eat(8))break}let s=this.startNode(),i=this.match(131),r=this.isContextual(128);s.imported=this.parseModuleExportName();let n=this.parseImportSpecifier(s,i,t.importKind==="type"||t.importKind==="typeof",r,void 0);t.specifiers.push(n)}}parseImportSpecifier(t,e,s,i,r){if(this.eatContextual(93))t.local=this.parseIdentifier();else{let{imported:n}=t;if(e)throw this.raise(p.ImportBindingIsString,{at:t,importName:n.value});this.checkReservedWord(n.name,t.loc.start,!0,!0),t.local||(t.local=K(n))}return this.finishImportSpecifier(t,"ImportSpecifier",r)}isThisParam(t){return t.type==="Identifier"&&t.name==="this"}},tt=class extends Vt{constructor(t,e){t=ya(t),super(t,e),this.options=t,this.initializeScopes(),this.plugins=ga(this.options.plugins),this.filename=t.sourceFilename}getScopeHandler(){return Le}parse(){this.enterInitialScopes();let t=this.startNode(),e=this.startNode();return this.nextToken(),t.errors=null,this.parseTopLevel(t,e),t.errors=this.state.errors,t}};function ga(a){let t=new Map;for(let e of a){let[s,i]=Array.isArray(e)?e:[e,{}];t.has(s)||t.set(s,i||{})}return t}function ba(a,t){var e;if(((e=t)==null?void 0:e.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let s=we(t,a),i=s.parse();if(s.sawUnambiguousESM)return i;if(s.ambiguousScriptDifferentAst)try{return t.sourceType="script",we(t,a).parse()}catch{}else i.program.sourceType="script";return i}catch(s){try{return t.sourceType="script",we(t,a).parse()}catch{}throw s}}else return we(t,a).parse()}function Aa(a,t){let e=we(t,a);return e.options.strictMode&&(e.state.strict=!0),e.getExpression()}function Sa(a){let t={};for(let e of Object.keys(a))t[e]=U(a[e]);return t}var Ea=Sa(rr);function we(a,t){let e=tt;return a!=null&&a.plugins&&(da(a.plugins),e=Ca(a.plugins)),new e(a,t)}var Ns={};function Ca(a){let t=ma.filter(i=>k(a,i)),e=t.join("/"),s=Ns[e];if(!s){s=tt;for(let i of t)s=ti[i](s);Ns[e]=s}return s}Me.parse=ba;Me.parseExpression=Aa;Me.tokTypes=Ea});var mi=ps(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.extract=_a;ie.parse=Ua;ie.parseWithComments=di;ie.print=ja;ie.strip=Ra;var Da=/\*\/$/,Ma=/^\/\*\*?/,ui=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Oa=/(^|\s+)\/\/([^\r\n]*)/g,li=/^(\r?\n)+/,Ba=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,ci=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,Fa=/(\r?\n|^) *\* ?/g,fi=[];function _a(a){let t=a.match(ui);return t?t[0].trimLeft():""}function Ra(a){let t=a.match(ui);return t&&t[0]?a.substring(t[0].length):a}function Ua(a){return di(a).pragmas}function di(a){let t=` -`;a=a.replace(Ma,"").replace(Da,"").replace(Fa,"$1");let e="";for(;e!==a;)e=a,a=a.replace(Ba,`${t}$1 $2${t}`);a=a.replace(li,"").trimRight();let s=Object.create(null),i=a.replace(ci,"").replace(li,"").trimRight(),r;for(;r=ci.exec(a);){let n=r[2].replace(Oa,"");typeof s[r[1]]=="string"||Array.isArray(s[r[1]])?s[r[1]]=fi.concat(s[r[1]],n):s[r[1]]=n}return{comments:i,pragmas:s}}function ja({comments:a="",pragmas:t={}}){let e=` -`,s="/**",i=" *",r=" */",n=Object.keys(t),o=n.map(l=>pi(l,t[l])).reduce((l,c)=>l.concat(c),[]).map(l=>`${i} ${l}${e}`).join("");if(!a){if(n.length===0)return"";if(n.length===1&&!Array.isArray(t[n[0]])){let l=t[n[0]];return`${s} ${pi(n[0],l)[0]}${r}`}}let h=a.split(e).map(l=>`${i} ${l}`).join(e)+e;return s+e+(a?h:"")+(a&&n.length?i+e:"")+o+r}function pi(a,t){return fi.concat(t).map(e=>`@${a} ${e}`.trim())}});var cs={};zi(cs,{parsers:()=>dn});var lt=pt(rs(),1);function wa(a){let t=[];for(let e of a)try{return e()}catch(s){t.push(s)}throw Object.assign(new Error("All combinations failed"),{errors:t})}var si=wa;function Ia(a){if(!a.startsWith("#!"))return"";let t=a.indexOf(` -`);return t===-1?a:a.slice(0,t)}var rt=Ia;function Na(a,t){if(t===!1)return!1;if(a.charAt(t)==="/"&&a.charAt(t+1)==="*"){for(let e=t+2;e=this.length)throw this.raise(p.UnterminatedString,{at:this.state.startLoc});let r=this.input.charCodeAt(this.state.pos);if(r===e)break;r===38?(s+=this.input.slice(i,this.state.pos),s+=this.jsxReadEntity(),i=this.state.pos):xe(r)?(s+=this.input.slice(i,this.state.pos),s+=this.jsxReadNewLine(!1),i=this.state.pos):++this.state.pos}s+=this.input.slice(i,this.state.pos++),this.finishToken(131,s)}jsxReadEntity(){let e=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let s=10;this.codePointAtPos(this.state.pos)===120&&(s=16,++this.state.pos);let i=this.readInt(s,void 0,!1,"bail");if(i!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(i)}else{let s=0,i=!1;for(;s++<10&&this.state.pos1){for(let i=0;i=0;i--){let r=this.scopeStack[i];if(r.types.has(e)||r.exportOnlyBindings.has(e))return}super.checkLocalExport(t)}},rr=(a,t)=>Object.hasOwnProperty.call(a,t)&&a[t],ps=a=>a.type==="ParenthesizedExpression"?ps(a.expression):a,yt=class extends dt{toAssignable(t,e=!1){var s,i;let r;switch((t.type==="ParenthesizedExpression"||(s=t.extra)!=null&&s.parenthesized)&&(r=ps(t),e?r.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(p.InvalidParenthesizedAssignment,{at:t}):r.type!=="MemberExpression"&&this.raise(p.InvalidParenthesizedAssignment,{at:t}):this.raise(p.InvalidParenthesizedAssignment,{at:t})),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern";for(let o=0,h=t.properties.length,l=h-1;oi.type!=="ObjectMethod"&&(r===s||i.type!=="SpreadElement")&&this.isAssignable(i))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every(s=>s===null||this.isAssignable(s));case"AssignmentExpression":return t.operator==="=";case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!e;default:return!1}}toReferencedList(t,e){return t}toReferencedListDeep(t,e){this.toReferencedList(t,e);for(let s of t)(s==null?void 0:s.type)==="ArrayExpression"&&this.toReferencedListDeep(s.elements)}parseSpread(t){let e=this.startNode();return this.next(),e.argument=this.parseMaybeAssignAllowIn(t,void 0),this.finishNode(e,"SpreadElement")}parseRestBinding(){let t=this.startNode();return this.next(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,1),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(t,e,s){let i=s&1,r=[],n=!0;for(;!this.eat(t);)if(n?n=!1:this.expect(12),i&&this.match(12))r.push(null);else{if(this.eat(t))break;if(this.match(21)){if(r.push(this.parseAssignableListItemTypes(this.parseRestBinding(),s)),!this.checkCommaAfterRest(e)){this.expect(t);break}}else{let o=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(p.UnsupportedParameterDecorator,{at:this.state.startLoc});this.match(26);)o.push(this.parseDecorator());r.push(this.parseAssignableListItem(s,o))}}return r}parseBindingRestProperty(t){return this.next(),t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){let t=this.startNode(),{type:e,startLoc:s}=this.state;return e===21?this.parseBindingRestProperty(t):(e===136?(this.expectPlugin("destructuringPrivate",s),this.classScope.usePrivateName(this.state.value,s),t.key=this.parsePrivateName()):this.parsePropertyName(t),t.method=!1,this.parseObjPropValue(t,s,!1,!1,!0,!1))}parseAssignableListItem(t,e){let s=this.parseMaybeDefault();this.parseAssignableListItemTypes(s,t);let i=this.parseMaybeDefault(s.loc.start,s);return e.length&&(s.decorators=e),i}parseAssignableListItemTypes(t,e){return t}parseMaybeDefault(t,e){var s,i;if((s=t)!=null||(t=this.state.startLoc),e=(i=e)!=null?i:this.parseBindingAtom(),!this.eat(29))return e;let r=this.startNodeAt(t);return r.left=e,r.right=this.parseMaybeAssignAllowIn(),this.finishNode(r,"AssignmentPattern")}isValidLVal(t,e,s){return rr({AssignmentPattern:"left",RestElement:"argument",ObjectProperty:"value",ParenthesizedExpression:"expression",ArrayPattern:"elements",ObjectPattern:"properties"},t)}checkLVal(t,{in:e,binding:s=64,checkClashes:i=!1,strictModeChanged:r=!1,hasParenthesizedAncestor:n=!1}){var o;let h=t.type;if(this.isObjectMethod(t))return;if(h==="MemberExpression"){s!==64&&this.raise(p.InvalidPropertyBindingPattern,{at:t});return}if(h==="Identifier"){this.checkIdentifier(t,s,r);let{name:d}=t;i&&(i.has(d)?this.raise(p.ParamDupe,{at:t}):i.add(d));return}let l=this.isValidLVal(h,!(n||(o=t.extra)!=null&&o.parenthesized)&&e.type==="AssignmentExpression",s);if(l===!0)return;if(l===!1){let d=s===64?p.InvalidLhs:p.InvalidLhsBinding;this.raise(d,{at:t,ancestor:e});return}let[c,u]=Array.isArray(l)?l:[l,h==="ParenthesizedExpression"],f=h==="ArrayPattern"||h==="ObjectPattern"||h==="ParenthesizedExpression"?{type:h}:e;for(let d of[].concat(t[c]))d&&this.checkLVal(d,{in:f,binding:s,checkClashes:i,strictModeChanged:r,hasParenthesizedAncestor:u})}checkIdentifier(t,e,s=!1){this.state.strict&&(s?is(t.name,this.inModule):ss(t.name))&&(e===64?this.raise(p.StrictEvalArguments,{at:t,referenceName:t.name}):this.raise(p.StrictEvalArgumentsBinding,{at:t,bindingName:t.name})),e&8192&&t.name==="let"&&this.raise(p.LetInLexicalBinding,{at:t}),e&64||this.declareNameFromIdentifier(t,e)}declareNameFromIdentifier(t,e){this.scope.declareName(t.name,e,t.loc.start)}checkToRestConversion(t,e){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,e);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(e)break;default:this.raise(p.InvalidRestAssignmentPattern,{at:t})}}checkCommaAfterRest(t){return this.match(12)?(this.raise(this.lookaheadCharCode()===t?p.RestTrailingComma:p.ElementAfterRest,{at:this.state.startLoc}),!0):!1}},ar=(a,t)=>Object.hasOwnProperty.call(a,t)&&a[t];function nr(a){if(a==null)throw new Error(`Unexpected ${a} value.`);return a}function Kt(a){if(!a)throw new Error("Assert fail")}var y=$`typescript`({AbstractMethodHasImplementation:({methodName:a})=>`Method '${a}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:a})=>`Property '${a}' cannot have an initializer because it is marked abstract.`,AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:a})=>`'declare' is not allowed in ${a}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:a})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:a})=>`Duplicate modifier: '${a}'.`,EmptyHeritageClauseType:({token:a})=>`'${a}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:a})=>`'${a[0]}' modifier cannot be used with '${a[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:a})=>`Index signatures cannot have an accessibility modifier ('${a}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier:a})=>`'${a}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:a})=>`'${a}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:a})=>`'${a}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:a})=>`'${a[0]}' modifier must precede '${a[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:a})=>`Private elements cannot have an accessibility modifier ('${a}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:a})=>`Single type parameter ${a} should have a trailing comma. Example usage: <${a},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:a})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${a}.`});function or(a){switch(a){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function qt(a){return a==="private"||a==="public"||a==="protected"}function hr(a){return a==="in"||a==="out"}var lr=a=>class extends a{constructor(...e){super(...e),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:y.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:y.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:y.InvalidModifierOnTypeParameter})}getScopeHandler(){return mt}tsIsIdentifier(){return S(this.state.type)}tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(136)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(e,s){if(!S(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let i=this.state.value;if(e.indexOf(i)!==-1){if(s&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return i}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:s,stopOnStartOfClassStaticBlock:i,errorTemplate:r=y.InvalidModifierOnTypeMember},n){let o=(l,c,u,f)=>{c===u&&n[f]&&this.raise(y.InvalidModifiersOrder,{at:l,orderedModifiers:[u,f]})},h=(l,c,u,f)=>{(n[u]&&c===f||n[f]&&c===u)&&this.raise(y.IncompatibleModifiers,{at:l,modifiers:[u,f]})};for(;;){let{startLoc:l}=this.state,c=this.tsParseModifier(e.concat(s??[]),i);if(!c)break;qt(c)?n.accessibility?this.raise(y.DuplicateAccessibilityModifier,{at:l,modifier:c}):(o(l,c,c,"override"),o(l,c,c,"static"),o(l,c,c,"readonly"),n.accessibility=c):hr(c)?(n[c]&&this.raise(y.DuplicateModifier,{at:l,modifier:c}),n[c]=!0,o(l,c,"in","out")):(Object.hasOwnProperty.call(n,c)?this.raise(y.DuplicateModifier,{at:l,modifier:c}):(o(l,c,"static","readonly"),o(l,c,"static","override"),o(l,c,"override","readonly"),o(l,c,"abstract","override"),h(l,c,"declare","override"),h(l,c,"static","abstract")),n[c]=!0),s!=null&&s.includes(c)&&this.raise(r,{at:l,modifier:c})}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(e,s){let i=[];for(;!this.tsIsListTerminator(e);)i.push(s());return i}tsParseDelimitedList(e,s,i){return nr(this.tsParseDelimitedListWorker(e,s,!0,i))}tsParseDelimitedListWorker(e,s,i,r){let n=[],o=-1;for(;!this.tsIsListTerminator(e);){o=-1;let h=s();if(h==null)return;if(n.push(h),this.eat(12)){o=this.state.lastTokStart;continue}if(this.tsIsListTerminator(e))break;i&&this.expect(12);return}return r&&(r.value=o),n}tsParseBracketedList(e,s,i,r,n){r||(i?this.expect(0):this.expect(47));let o=this.tsParseDelimitedList(e,s,n);return i?this.expect(3):this.expect(48),o}tsParseImportType(){let e=this.startNode();return this.expect(83),this.expect(10),this.match(131)||this.raise(y.UnsupportedImportTypeArgument,{at:this.state.startLoc}),e.argument=super.parseExprAtom(),this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName()),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseEntityName(e=!0){let s=this.parseIdentifier(e);for(;this.eat(16);){let i=this.startNodeAtNode(s);i.left=s,i.right=this.parseIdentifier(e),s=this.finishNode(i,"TSQualifiedName")}return s}tsParseTypeReference(){let e=this.startNode();return e.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();let s=this.startNodeAtNode(e);return s.parameterName=e,s.typeAnnotation=this.tsParseTypeAnnotation(!1),s.asserts=!1,this.finishNode(s,"TSTypePredicate")}tsParseThisTypeNode(){let e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){let e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){let s=this.startNode();return e(s),s.name=this.tsParseTypeParameterName(),s.constraint=this.tsEatThenParseType(81),s.default=this.tsEatThenParseType(29),this.finishNode(s,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){let s=this.startNode();this.match(47)||this.match(140)?this.next():this.unexpected();let i={value:-1};return s.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,i),s.params.length===0&&this.raise(y.EmptyTypeParameters,{at:s}),i.value!==-1&&this.addExtra(s,"trailingComma",i.value),this.finishNode(s,"TSTypeParameterDeclaration")}tsFillSignature(e,s){let i=e===19,r="parameters",n="typeAnnotation";s.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),s[r]=this.tsParseBindingListForSignature(),i?s[n]=this.tsParseTypeOrTypePredicateAnnotation(e):this.match(e)&&(s[n]=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){let e=super.parseBindingList(11,41,2);for(let s of e){let{type:i}=s;(i==="AssignmentPattern"||i==="TSParameterProperty")&&this.raise(y.UnsupportedSignatureParameterKind,{at:s,type:i})}return e}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(e,s){return this.tsFillSignature(14,s),this.tsParseTypeMemberSemicolon(),this.finishNode(s,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),S(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(e){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let s=this.parseIdentifier();s.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(s),this.expect(3),e.parameters=[s];let i=this.tsTryParseTypeAnnotation();return i&&(e.typeAnnotation=i),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,s){this.eat(17)&&(e.optional=!0);let i=e;if(this.match(10)||this.match(47)){s&&this.raise(y.ReadonlyForMethodSignature,{at:e});let r=i;r.kind&&this.match(47)&&this.raise(y.AccesorCannotHaveTypeParameters,{at:this.state.curPosition()}),this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon();let n="parameters",o="typeAnnotation";if(r.kind==="get")r[n].length>0&&(this.raise(p.BadGetterArity,{at:this.state.curPosition()}),this.isThisParam(r[n][0])&&this.raise(y.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}));else if(r.kind==="set"){if(r[n].length!==1)this.raise(p.BadSetterArity,{at:this.state.curPosition()});else{let h=r[n][0];this.isThisParam(h)&&this.raise(y.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}),h.type==="Identifier"&&h.optional&&this.raise(y.SetAccesorCannotHaveOptionalParameter,{at:this.state.curPosition()}),h.type==="RestElement"&&this.raise(y.SetAccesorCannotHaveRestParameter,{at:this.state.curPosition()})}r[o]&&this.raise(y.SetAccesorCannotHaveReturnType,{at:r[o]})}else r.kind="method";return this.finishNode(r,"TSMethodSignature")}else{let r=i;s&&(r.readonly=!0);let n=this.tsTryParseTypeAnnotation();return n&&(r.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSPropertySignature")}}tsParseTypeMember(){let e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){let i=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(i,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e);let s=this.tsTryParseIndexSignature(e);return s||(super.parsePropertyName(e),!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.tsTokenCanFollowModifier()&&(e.kind=e.key.name,super.parsePropertyName(e)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){let e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(120):(this.isContextual(120)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedTypeParameter(){let e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(58),this.finishNode(e,"TSTypeParameter")}tsParseMappedType(){let e=this.startNode();return this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(120)):this.eatContextual(120)&&(e.readonly=!0),this.expect(0),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}tsParseTupleType(){let e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let s=!1,i=null;return e.elementTypes.forEach(r=>{var n;let{type:o}=r;s&&o!=="TSRestType"&&o!=="TSOptionalType"&&!(o==="TSNamedTupleMember"&&r.optional)&&this.raise(y.OptionalTypeBeforeRequired,{at:r}),s||(s=o==="TSNamedTupleMember"&&r.optional||o==="TSOptionalType");let h=o;o==="TSRestType"&&(r=r.typeAnnotation,h=r.type);let l=h==="TSNamedTupleMember";(n=i)!=null||(i=l),i!==l&&this.raise(y.MixedLabeledAndUnlabeledElements,{at:r})}),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){let{startLoc:e}=this.state,s=this.eat(21),i,r,n,o,l=M(this.state.type)?this.lookaheadCharCode():null;if(l===58)i=!0,n=!1,r=this.parseIdentifier(!0),this.expect(14),o=this.tsParseType();else if(l===63){n=!0;let c=this.state.startLoc,u=this.state.value,f=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(i=!0,r=this.createIdentifier(this.startNodeAt(c),u),this.expect(17),this.expect(14),o=this.tsParseType()):(i=!1,o=f,this.expect(17))}else o=this.tsParseType(),n=this.eat(17),i=this.eat(14);if(i){let c;r?(c=this.startNodeAtNode(r),c.optional=n,c.label=r,c.elementType=o,this.eat(17)&&(c.optional=!0,this.raise(y.TupleOptionalAfterType,{at:this.state.lastTokStartLoc}))):(c=this.startNodeAtNode(o),c.optional=n,this.raise(y.InvalidTupleMemberLabel,{at:o}),c.label=o,c.elementType=this.tsParseType()),o=this.finishNode(c,"TSNamedTupleMember")}else if(n){let c=this.startNodeAtNode(o);c.typeAnnotation=o,o=this.finishNode(c,"TSOptionalType")}if(s){let c=this.startNodeAt(e);c.typeAnnotation=o,o=this.finishNode(c,"TSRestType")}return o}tsParseParenthesizedType(){let e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,s){let i=this.startNode();return e==="TSConstructorType"&&(i.abstract=!!s,s&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,i)),this.finishNode(i,e)}tsParseLiteralTypeNode(){let e=this.startNode();switch(this.state.type){case 132:case 133:case 131:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){let e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let e=this.tsParseThisTypeNode();return this.isContextual(114)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 131:case 132:case 133:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let e=this.startNode(),s=this.lookahead();return s.type!==132&&s.type!==133&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:e}=this.state;if(S(e)||e===88||e===84){let s=e===88?"TSVoidKeyword":e===84?"TSNullKeyword":or(this.state.value);if(s!==void 0&&this.lookaheadCharCode()!==46){let i=this.startNode();return this.next(),this.finishNode(i,s)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let s=this.startNodeAtNode(e);s.elementType=e,this.expect(3),e=this.finishNode(s,"TSArrayType")}else{let s=this.startNodeAtNode(e);s.objectType=e,s.indexType=this.tsParseType(),this.expect(3),e=this.finishNode(s,"TSIndexedAccessType")}return e}tsParseTypeOperator(){let e=this.startNode(),s=this.state.value;return this.next(),e.operator=s,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),s==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(y.UnexpectedReadonly,{at:e})}}tsParseInferType(){let e=this.startNode();this.expectContextual(113);let s=this.startNode();return s.name=this.tsParseTypeParameterName(),s.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),e.typeParameter=this.finishNode(s,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let e=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){return Ci(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(113)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(e,s,i){let r=this.startNode(),n=this.eat(i),o=[];do o.push(s());while(this.eat(i));return o.length===1&&!n?o[0]:(r.types=o,this.finishNode(r,e))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(S(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:e}=this.state,s=e.length;try{return this.parseObjectLike(8,!0),e.length===s}catch{return!1}}if(this.match(0)){this.next();let{errors:e}=this.state,s=e.length;try{return super.parseBindingList(3,93,1),e.length===s}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{let s=this.startNode();this.expect(e);let i=this.startNode(),r=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(r&&this.match(78)){let h=this.tsParseThisTypeOrThisTypePredicate();return h.type==="TSThisType"?(i.parameterName=h,i.asserts=!0,i.typeAnnotation=null,h=this.finishNode(i,"TSTypePredicate")):(this.resetStartLocationFromNode(h,i),h.asserts=!0),s.typeAnnotation=h,this.finishNode(s,"TSTypeAnnotation")}let n=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!n)return r?(i.parameterName=this.parseIdentifier(),i.asserts=r,i.typeAnnotation=null,s.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(s,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,s);let o=this.tsParseTypeAnnotation(!1);return i.parameterName=n,i.typeAnnotation=o,i.asserts=r,s.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(s,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let e=this.parseIdentifier();if(this.isContextual(114)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(this.state.type!==107)return!1;let e=this.state.containsEsc;return this.next(),!S(this.state.type)&&!this.match(78)?!1:(e&&this.raise(p.InvalidEscapedReservedWord,{at:this.state.lastTokStartLoc,reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(e=!0,s=this.startNode()){return this.tsInType(()=>{e&&this.expect(14),s.typeAnnotation=this.tsParseType()}),this.finishNode(s,"TSTypeAnnotation")}tsParseType(){Kt(this.state.inType);let e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;let s=this.startNodeAtNode(e);return s.checkType=e,s.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),s.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),s.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(s,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(122)&&this.lookahead().type===77}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(y.ReservedTypeAssertion,{at:this.state.startLoc});let e=this.startNode();return e.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){let s=this.state.startLoc,i=this.tsParseDelimitedList("HeritageClauseElement",()=>{let r=this.startNode();return r.expression=this.tsParseEntityName(),this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSExpressionWithTypeArguments")});return i.length||this.raise(y.EmptyHeritageClauseType,{at:s,token:e}),i}tsParseInterfaceDeclaration(e,s={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(127),s.declare&&(e.declare=!0),S(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(y.MissingInterfaceName,{at:this.state.startLoc})),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));let i=this.startNode();return i.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(i,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType(()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(112)&&this.lookahead().type!==16){let s=this.startNode();return this.next(),this.finishNode(s,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInNoContext(e){let s=this.state.context;this.state.context=[s[0]];try{return e()}finally{this.state.context=s}}tsInType(e){let s=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=s}}tsInDisallowConditionalTypesContext(e){let s=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=s}}tsInAllowConditionalTypesContext(e){let s=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=s}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType(()=>(this.expect(e),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let e=this.startNode();return e.id=this.match(131)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,s={}){return s.const&&(e.const=!0),s.declare&&(e.declare=!0),this.expectContextual(124),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")}tsParseModuleBlock(){let e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,s=!1){if(e.id=this.parseIdentifier(),s||this.checkIdentifier(e.id,1024),this.eat(16)){let i=this.startNode();this.tsParseModuleOrNamespaceDeclaration(i,!0),e.body=i}else this.scope.enter(256),this.prodParam.enter(te),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(110)?(e.global=!0,e.id=this.parseIdentifier()):this.match(131)?e.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(te),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,s,i){e.isExport=i||!1,e.id=s||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);let r=this.tsParseModuleReference();return e.importKind==="type"&&r.type!=="TSExternalModuleReference"&&this.raise(y.ImportAliasHasImportType,{at:r}),e.moduleReference=r,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(117)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){let e=this.startNode();return this.expectContextual(117),this.expect(10),this.match(131)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){let s=this.state.clone(),i=e();return this.state=s,i}tsTryParseAndCatch(e){let s=this.tryParse(i=>e()||i());if(!(s.aborted||!s.node))return s.error&&(this.state=s.failState),s.node}tsTryParse(e){let s=this.state.clone(),i=e();if(i!==void 0&&i!==!1)return i;this.state=s}tsTryParseDeclare(e){if(this.isLineTerminator())return;let s=this.state.type,i;return this.isContextual(99)&&(s=74,i="let"),this.tsInAmbientContext(()=>{switch(s){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 124:return this.tsParseEnumDeclaration(e,{declare:!0});case 110:return this.tsParseAmbientExternalModuleDeclaration(e);case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(e.declare=!0,this.parseVarStatement(e,i||this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0}));case 127:{let r=this.tsParseInterfaceDeclaration(e,{declare:!0});if(r)return r}default:if(S(s))return this.tsParseDeclaration(e,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(e,s,i){switch(s.name){case"declare":{let r=this.tsTryParseDeclare(e);return r&&(r.declare=!0),r}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(te);let r=e;return r.global=!0,r.id=s,r.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(r,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,s.name,!1,i)}}tsParseDeclaration(e,s,i,r){switch(s){case"abstract":if(this.tsCheckLineTerminator(i)&&(this.match(80)||S(this.state.type)))return this.tsParseAbstractDeclaration(e,r);break;case"module":if(this.tsCheckLineTerminator(i)){if(this.match(131))return this.tsParseAmbientExternalModuleDeclaration(e);if(S(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(i)&&S(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(i)&&S(this.state.type))return this.tsParseTypeAliasDeclaration(e);break}}tsCheckLineTerminator(e){return e?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;let s=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let i=this.tsTryParseAndCatch(()=>{let r=this.startNodeAt(e);return r.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(r),r.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),r});if(this.state.maybeInArrowParameters=s,!!i)return super.parseArrowExpression(i,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let e=this.startNode();return e.params=this.tsInType(()=>this.tsInNoContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),e.params.length===0?this.raise(y.EmptyTypeArguments,{at:e}):!this.state.inType&&this.curContext()===w.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return Ei(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseAssignableListItem(e,s){let i=this.state.startLoc,r={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},r);let n=r.accessibility,o=r.override,h=r.readonly;!(e&4)&&(n||h||o)&&this.raise(y.UnexpectedParameterModifier,{at:i});let l=this.parseMaybeDefault();this.parseAssignableListItemTypes(l,e);let c=this.parseMaybeDefault(l.loc.start,l);if(n||h||o){let u=this.startNodeAt(i);return s.length&&(u.decorators=s),n&&(u.accessibility=n),h&&(u.readonly=h),o&&(u.override=o),c.type!=="Identifier"&&c.type!=="AssignmentPattern"&&this.raise(y.UnsupportedParameterPropertyKind,{at:u}),u.parameter=c,this.finishNode(u,"TSParameterProperty")}return s.length&&(l.decorators=s),c}isSimpleParameter(e){return e.type==="TSParameterProperty"&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(let s of e.params)s.type!=="Identifier"&&s.optional&&!this.state.isAmbientContext&&this.raise(y.PatternIsOptional,{at:s})}setArrowFunctionParameters(e,s,i){super.setArrowFunctionParameters(e,s,i),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,s,i=!1){this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let r=s==="FunctionDeclaration"?"TSDeclareFunction":s==="ClassMethod"||s==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return r&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,r):r==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(y.DeclareFunctionHasImplementation,{at:e}),e.declare)?super.parseFunctionBodyAndFinish(e,r,i):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,s,i))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach(s=>{(s==null?void 0:s.type)==="TSTypeCastExpression"&&this.raise(y.UnexpectedTypeAnnotation,{at:s.typeAnnotation})})}toReferencedList(e,s){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,s,i,r){let n=super.parseArrayLike(e,s,i,r);return n.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(n.elements),n}parseSubscript(e,s,i,r){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let o=this.startNodeAt(s);return o.expression=e,this.finishNode(o,"TSNonNullExpression")}let n=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(i)return r.stop=!0,e;r.optionalChainMember=n=!0,this.next()}if(this.match(47)||this.match(51)){let o,h=this.tsTryParseAndCatch(()=>{if(!i&&this.atPossibleAsyncArrow(e)){let f=this.tsTryParseGenericAsyncArrowFunction(s);if(f)return f}let l=this.tsParseTypeArgumentsInExpression();if(!l)return;if(n&&!this.match(10)){o=this.state.curPosition();return}if(Me(this.state.type)){let f=super.parseTaggedTemplateExpression(e,s,r);return f.typeParameters=l,f}if(!i&&this.eat(10)){let f=this.startNodeAt(s);return f.callee=e,f.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(f.arguments),f.typeParameters=l,r.optionalChainMember&&(f.optional=n),this.finishCallExpression(f,r.optionalChainMember)}let c=this.state.type;if(c===48||c===52||c!==10&&Ze(c)&&!this.hasPrecedingLineBreak())return;let u=this.startNodeAt(s);return u.expression=e,u.typeParameters=l,this.finishNode(u,"TSInstantiationExpression")});if(o&&this.unexpected(o,10),h)return h.type==="TSInstantiationExpression"&&(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(y.InvalidPropertyAccessAfterInstantiationExpression,{at:this.state.startLoc}),h}return super.parseSubscript(e,s,i,r)}parseNewCallee(e){var s;super.parseNewCallee(e);let{callee:i}=e;i.type==="TSInstantiationExpression"&&!((s=i.extra)!=null&&s.parenthesized)&&(e.typeParameters=i.typeParameters,e.callee=i.expression)}parseExprOp(e,s,i){let r;if(Ne(58)>i&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(r=this.isContextual(118)))){let n=this.startNodeAt(s);return n.expression=e,n.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(r&&this.raise(p.UnexpectedKeyword,{at:this.state.startLoc,keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(n,r?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(n,s,i)}return super.parseExprOp(e,s,i)}checkReservedWord(e,s,i,r){this.state.isAmbientContext||super.checkReservedWord(e,s,i,r)}checkImportReflection(e){super.checkImportReflection(e),e.module&&e.importKind!=="value"&&this.raise(y.ImportReflectionHasImportType,{at:e.specifiers[0].loc.start})}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(128)){let s=this.lookaheadCharCode();return e?s===123||s===42:s!==61}return!e&&this.isContextual(87)}applyImportPhase(e,s,i,r){super.applyImportPhase(e,s,i,r),s?e.exportKind=i==="type"?"type":"value":e.importKind=i==="type"||i==="typeof"?i:"value"}parseImport(e){if(this.match(131))return e.importKind="value",super.parseImport(e);let s;if(S(this.state.type)&&this.lookaheadCharCode()===61)return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(128)){let i=this.parseMaybeImportPhase(e,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(e,i);s=super.parseImportSpecifiersAndAfter(e,i)}else s=super.parseImport(e);return s.importKind==="type"&&s.specifiers.length>1&&s.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(y.TypeImportCannotSpecifyDefaultAndNamed,{at:s}),s}parseExport(e,s){if(this.match(83)){this.next();let i=null;return this.isContextual(128)&&this.isPotentialImportPhase(!1)?i=this.parseMaybeImportPhase(e,!1):e.importKind="value",this.tsParseImportEqualsDeclaration(e,i,!0)}else if(this.eat(29)){let i=e;return i.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(i,"TSExportAssignment")}else if(this.eatContextual(93)){let i=e;return this.expectContextual(126),i.id=this.parseIdentifier(),this.semicolon(),this.finishNode(i,"TSNamespaceExportDeclaration")}else return super.parseExport(e,s)}isAbstractClass(){return this.isContextual(122)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){let e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(127)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,s,i=!1){let{isAmbientContext:r}=this.state,n=super.parseVarStatement(e,s,i||r);if(!r)return n;for(let{id:o,init:h}of n.declarations)h&&(s!=="const"||o.typeAnnotation?this.raise(y.InitializerNotAllowedInAmbientContext,{at:h}):pr(h,this.hasPlugin("estree"))||this.raise(y.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,{at:h}));return n}parseStatementContent(e,s){if(this.match(75)&&this.isLookaheadContextual("enum")){let i=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(i,{const:!0})}if(this.isContextual(124))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(127)){let i=this.tsParseInterfaceDeclaration(this.startNode());if(i)return i}return super.parseStatementContent(e,s)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,s){return s.some(i=>qt(i)?e.accessibility===i:!!e[i])}tsIsStartOfStaticBlocks(){return this.isContextual(104)&&this.lookaheadCharCode()===123}parseClassMember(e,s,i){let r=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:r,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:y.InvalidModifierOnTypeParameterPositions},s);let n=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(s,r)&&this.raise(y.StaticBlockCannotHaveModifier,{at:this.state.curPosition()}),super.parseClassStaticBlock(e,s)):this.parseClassMemberWithIsStatic(e,s,i,!!s.static)};s.declare?this.tsInAmbientContext(n):n()}parseClassMemberWithIsStatic(e,s,i,r){let n=this.tsTryParseIndexSignature(s);if(n){e.body.push(n),s.abstract&&this.raise(y.IndexSignatureHasAbstract,{at:s}),s.accessibility&&this.raise(y.IndexSignatureHasAccessibility,{at:s,modifier:s.accessibility}),s.declare&&this.raise(y.IndexSignatureHasDeclare,{at:s}),s.override&&this.raise(y.IndexSignatureHasOverride,{at:s});return}!this.state.inAbstractClass&&s.abstract&&this.raise(y.NonAbstractClassHasAbstractMethod,{at:s}),s.override&&(i.hadSuperClass||this.raise(y.OverrideNotInSubClass,{at:s})),super.parseClassMemberWithIsStatic(e,s,i,r)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(y.ClassMethodHasReadonly,{at:e}),e.declare&&this.match(10)&&this.raise(y.ClassMethodHasDeclare,{at:e})}parseExpressionStatement(e,s,i){return(s.type==="Identifier"?this.tsParseExpressionStatement(e,s,i):void 0)||super.parseExpressionStatement(e,s,i)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(e,s,i){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(e,s,i);let r=this.tryParse(()=>super.parseConditional(e,s));return r.node?(r.error&&(this.state=r.failState),r.node):(r.error&&super.setOptionalParametersError(i,r.error),e)}parseParenItem(e,s){if(e=super.parseParenItem(e,s),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){let i=this.startNodeAt(s);return i.expression=e,i.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(i,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(123))return this.tsInAmbientContext(()=>this.parseExportDeclaration(e));let s=this.state.startLoc,i=this.eatContextual(123);if(i&&(this.isContextual(123)||!this.shouldParseExportDeclaration()))throw this.raise(y.ExpectedAmbientAfterExportDeclare,{at:this.state.startLoc});let n=S(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return n?((n.type==="TSInterfaceDeclaration"||n.type==="TSTypeAliasDeclaration"||i)&&(e.exportKind="type"),i&&(this.resetStartLocation(n,s),n.declare=!0),n):null}parseClassId(e,s,i,r){if((!s||i)&&this.isContextual(111))return;super.parseClassId(e,s,i,e.declare?1024:8331);let n=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);n&&(e.typeParameters=n)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));let s=this.tsTryParseTypeAnnotation();s&&(e.typeAnnotation=s)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&!(e.readonly&&!e.typeAnnotation)&&this.match(29)&&this.raise(y.DeclareClassFieldHasInitializer,{at:this.state.startLoc}),e.abstract&&this.match(29)){let{key:s}=e;this.raise(y.AbstractPropertyHasInitializer,{at:this.state.startLoc,propertyName:s.type==="Identifier"&&!e.computed?s.name:`[${this.input.slice(s.start,s.end)}]`})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(y.PrivateElementHasAbstract,{at:e}),e.accessibility&&this.raise(y.PrivateElementHasAccessibility,{at:e,modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(y.AccessorCannotBeOptional,{at:e}),super.parseClassAccessorProperty(e)}pushClassMethod(e,s,i,r,n,o){let h=this.tsTryParseTypeParameters(this.tsParseConstModifier);h&&n&&this.raise(y.ConstructorHasTypeParameters,{at:h});let{declare:l=!1,kind:c}=s;l&&(c==="get"||c==="set")&&this.raise(y.DeclareAccessor,{at:s,kind:c}),h&&(s.typeParameters=h),super.pushClassMethod(e,s,i,r,n,o)}pushClassPrivateMethod(e,s,i,r){let n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(s.typeParameters=n),super.pushClassPrivateMethod(e,s,i,r)}declareClassPrivateMethodInScope(e,s){e.type!=="TSDeclareMethod"&&(e.type==="MethodDefinition"&&!e.value.body||super.declareClassPrivateMethodInScope(e,s))}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(111)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,s,i,r,n,o,h){let l=this.tsTryParseTypeParameters(this.tsParseConstModifier);return l&&(e.typeParameters=l),super.parseObjPropValue(e,s,i,r,n,o,h)}parseFunctionParams(e,s){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(e.typeParameters=i),super.parseFunctionParams(e,s)}parseVarId(e,s){super.parseVarId(e,s),e.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);let i=this.tsTryParseTypeAnnotation();i&&(e.id.typeAnnotation=i,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,s){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,s)}parseMaybeAssign(e,s){var i,r,n,o,h;let l,c,u;if(this.hasPlugin("jsx")&&(this.match(140)||this.match(47))){if(l=this.state.clone(),c=this.tryParse(()=>super.parseMaybeAssign(e,s),l),!c.error)return c.node;let{context:x}=this.state,I=x[x.length-1];(I===w.j_oTag||I===w.j_expr)&&x.pop()}if(!((i=c)!=null&&i.error)&&!this.match(47))return super.parseMaybeAssign(e,s);(!l||l===this.state)&&(l=this.state.clone());let f,d=this.tryParse(x=>{var I,C;f=this.tsParseTypeParameters(this.tsParseConstModifier);let E=super.parseMaybeAssign(e,s);return(E.type!=="ArrowFunctionExpression"||(I=E.extra)!=null&&I.parenthesized)&&x(),((C=f)==null?void 0:C.params.length)!==0&&this.resetStartLocationFromNode(E,f),E.typeParameters=f,E},l);if(!d.error&&!d.aborted)return f&&this.reportReservedArrowTypeParam(f),d.node;if(!c&&(Kt(!this.hasPlugin("jsx")),u=this.tryParse(()=>super.parseMaybeAssign(e,s),l),!u.error))return u.node;if((r=c)!=null&&r.node)return this.state=c.failState,c.node;if(d.node)return this.state=d.failState,f&&this.reportReservedArrowTypeParam(f),d.node;if((n=u)!=null&&n.node)return this.state=u.failState,u.node;throw((o=c)==null?void 0:o.error)||d.error||((h=u)==null?void 0:h.error)}reportReservedArrowTypeParam(e){var s;e.params.length===1&&!e.params[0].constraint&&!((s=e.extra)!=null&&s.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(y.ReservedArrowTypeParam,{at:e})}parseMaybeUnary(e,s){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,s)}parseArrow(e){if(this.match(14)){let s=this.tryParse(i=>{let r=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&i(),r});if(s.aborted)return;s.thrown||(s.error&&(this.state=s.failState),e.returnType=s.node)}return super.parseArrow(e)}parseAssignableListItemTypes(e,s){if(!(s&2))return e;this.eat(17)&&(e.optional=!0);let i=this.tsTryParseTypeAnnotation();return i&&(e.typeAnnotation=i),this.resetEndLocation(e),e}isAssignable(e,s){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,s);case"TSParameterProperty":return!0;default:return super.isAssignable(e,s)}}toAssignable(e,s=!1){switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,s);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":s?this.expressionScope.recordArrowParameterBindingError(y.UnexpectedTypeCastInParameter,{at:e}):this.raise(y.UnexpectedTypeCastInParameter,{at:e}),this.toAssignable(e.expression,s);break;case"AssignmentExpression":!s&&e.left.type==="TSTypeCastExpression"&&(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,s)}}toAssignableParenthesizedExpression(e,s){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,s);break;default:super.toAssignable(e,s)}}checkToRestConversion(e,s){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,s)}}isValidLVal(e,s,i){return ar({TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSAsExpression:(i!==64||!s)&&["expression",!0],TSSatisfiesExpression:(i!==64||!s)&&["expression",!0],TSTypeAssertion:(i!==64||!s)&&["expression",!0]},e)||super.isValidLVal(e,s,i)}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e){if(this.match(47)||this.match(51)){let s=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let i=super.parseMaybeDecoratorArguments(e);return i.typeParameters=s,i}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,s){let i=super.parseMaybeDefault(e,s);return i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.startthis.isAssignable(s,!0)):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){let s=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());s&&(e.typeParameters=s)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){let s=super.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e)[0];return r&&this.isThisParam(r)?s+1:s}parseCatchClauseParam(){let e=super.parseCatchClauseParam(),s=this.tsTryParseTypeAnnotation();return s&&(e.typeAnnotation=s,this.resetEndLocation(e)),e}tsInAmbientContext(e){let s=this.state.isAmbientContext;this.state.isAmbientContext=!0;try{return e()}finally{this.state.isAmbientContext=s}}parseClass(e,s,i){let r=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,s,i)}finally{this.state.inAbstractClass=r}}tsParseAbstractDeclaration(e,s){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(s,this.parseClass(e,!0,!1));if(this.isContextual(127)){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(y.NonClassMethodPropertyHasAbstractModifer,{at:e}),this.tsParseInterfaceDeclaration(e)}else this.unexpected(null,80)}parseMethod(e,s,i,r,n,o,h){let l=super.parseMethod(e,s,i,r,n,o,h);if(l.abstract&&(this.hasPlugin("estree")?!!l.value.body:!!l.body)){let{key:u}=l;this.raise(y.AbstractMethodHasImplementation,{at:l,methodName:u.type==="Identifier"&&!l.computed?u.name:`[${this.input.slice(u.start,u.end)}]`})}return l}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,s,i,r){return!s&&r?(this.parseTypeOnlyImportExportSpecifier(e,!1,i),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,s,i,r))}parseImportSpecifier(e,s,i,r,n){return!s&&r?(this.parseTypeOnlyImportExportSpecifier(e,!0,i),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,s,i,r,i?4098:4096))}parseTypeOnlyImportExportSpecifier(e,s,i){let r=s?"imported":"local",n=s?"local":"exported",o=e[r],h,l=!1,c=!0,u=o.loc.start;if(this.isContextual(93)){let d=this.parseIdentifier();if(this.isContextual(93)){let x=this.parseIdentifier();M(this.state.type)?(l=!0,o=d,h=s?this.parseIdentifier():this.parseModuleExportName(),c=!1):(h=x,c=!1)}else M(this.state.type)?(c=!1,h=s?this.parseIdentifier():this.parseModuleExportName()):(l=!0,o=d)}else M(this.state.type)&&(l=!0,s?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());l&&i&&this.raise(s?y.TypeModifierIsUsedInTypeImports:y.TypeModifierIsUsedInTypeExports,{at:u}),e[r]=o,e[n]=h;let f=s?"importKind":"exportKind";e[f]=l?"type":"value",c&&this.eatContextual(93)&&(e[n]=s?this.parseIdentifier():this.parseModuleExportName()),e[n]||(e[n]=V(e[r])),s&&this.checkIdentifier(e[n],l?4098:4096)}};function cr(a){if(a.type!=="MemberExpression")return!1;let{computed:t,property:e}=a;return t&&e.type!=="StringLiteral"&&(e.type!=="TemplateLiteral"||e.expressions.length>0)?!1:ds(a.object)}function pr(a,t){var e;let{type:s}=a;if((e=a.extra)!=null&&e.parenthesized)return!1;if(t){if(s==="Literal"){let{value:i}=a;if(typeof i=="string"||typeof i=="boolean")return!0}}else if(s==="StringLiteral"||s==="BooleanLiteral")return!0;return!!(us(a,t)||ur(a,t)||s==="TemplateLiteral"&&a.expressions.length===0||cr(a))}function us(a,t){return t?a.type==="Literal"&&(typeof a.value=="number"||"bigint"in a):a.type==="NumericLiteral"||a.type==="BigIntLiteral"}function ur(a,t){if(a.type==="UnaryExpression"){let{operator:e,argument:s}=a;if(e==="-"&&us(s,t))return!0}return!1}function ds(a){return a.type==="Identifier"?!0:a.type!=="MemberExpression"||a.computed?!1:ds(a.object)}var Ht=$`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),dr=a=>class extends a{parsePlaceholder(e){if(this.match(142)){let s=this.startNode();return this.next(),this.assertNoSpace(),s.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(142),this.finishPlaceholder(s,e)}}finishPlaceholder(e,s){let i=!!(e.expectedNode&&e.type==="Placeholder");return e.expectedNode=s,i?e:this.finishNode(e,"Placeholder")}getTokenFromCode(e){e===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(142,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,s,i,r){e!==void 0&&super.checkReservedWord(e,s,i,r)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,s,i){return e==="Placeholder"||super.isValidLVal(e,s,i)}toAssignable(e,s){e&&e.type==="Placeholder"&&e.expectedNode==="Expression"?e.expectedNode="Pattern":super.toAssignable(e,s)}chStartsBindingIdentifier(e,s){return!!(super.chStartsBindingIdentifier(e,s)||this.lookahead().type===142)}verifyBreakContinue(e,s){e.label&&e.label.type==="Placeholder"||super.verifyBreakContinue(e,s)}parseExpressionStatement(e,s){var i;if(s.type!=="Placeholder"||(i=s.extra)!=null&&i.parenthesized)return super.parseExpressionStatement(e,s);if(this.match(14)){let r=e;return r.label=this.finishPlaceholder(s,"Identifier"),this.next(),r.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(r,"LabeledStatement")}return this.semicolon(),e.name=s.name,this.finishPlaceholder(e,"Statement")}parseBlock(e,s,i){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,s,i)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,s,i){let r=s?"ClassDeclaration":"ClassExpression";this.next();let n=this.state.strict,o=this.parsePlaceholder("Identifier");if(o)if(this.match(81)||this.match(142)||this.match(5))e.id=o;else{if(i||!s)return e.id=null,e.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(e,r);throw this.raise(Ht.ClassNameIsRequired,{at:this.state.startLoc})}else this.parseClassId(e,s,i);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,n),this.finishNode(e,r)}parseExport(e,s){let i=this.parsePlaceholder("Identifier");if(!i)return super.parseExport(e,s);if(!this.isContextual(97)&&!this.match(12))return e.specifiers=[],e.source=null,e.declaration=this.finishPlaceholder(i,"Declaration"),this.finishNode(e,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let r=this.startNode();return r.exported=i,e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],super.parseExport(e,s)}isExportDefaultSpecifier(){if(this.match(65)){let e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(q(142),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,s){var i;return(i=e.specifiers)!=null&&i.length?!0:super.maybeParseExportDefaultSpecifier(e,s)}checkExport(e){let{specifiers:s}=e;s!=null&&s.length&&(e.specifiers=s.filter(i=>i.exported.type==="Placeholder")),super.checkExport(e),e.specifiers=s}parseImport(e){let s=this.parsePlaceholder("Identifier");if(!s)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(97)&&!this.match(12))return e.source=this.finishPlaceholder(s,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");let i=this.startNodeAtNode(s);return i.local=s,e.specifiers.push(this.finishNode(i,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(97),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(Ht.UnexpectedSpace,{at:this.state.lastTokEndLoc})}},fr=a=>class extends a{parseV8Intrinsic(){if(this.match(54)){let e=this.state.startLoc,s=this.startNode();if(this.next(),S(this.state.type)){let i=this.parseIdentifierName(),r=this.createIdentifier(s,i);if(r.type="V8IntrinsicIdentifier",this.match(10))return r}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}};function k(a,t){let[e,s]=typeof t=="string"?[t,{}]:t,i=Object.keys(s),r=i.length===0;return a.some(n=>{if(typeof n=="string")return r&&n===e;{let[o,h]=n;if(o!==e)return!1;for(let l of i)if(h[l]!==s[l])return!1;return!0}})}function J(a,t,e){let s=a.find(i=>Array.isArray(i)?i[0]===t:i===t);return s&&Array.isArray(s)&&s.length>1?s[1][e]:null}var Wt=["minimal","fsharp","hack","smart"],Jt=["^^","@@","^","%","#"],Xt=["hash","bar"];function mr(a){if(k(a,"decorators")){if(k(a,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let t=J(a,"decorators","decoratorsBeforeExport");if(t!=null&&typeof t!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let e=J(a,"decorators","allowCallParenthesized");if(e!=null&&typeof e!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(k(a,"flow")&&k(a,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(k(a,"placeholders")&&k(a,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(k(a,"pipelineOperator")){let t=J(a,"pipelineOperator","proposal");if(!Wt.includes(t)){let s=Wt.map(i=>`"${i}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${s}.`)}let e=k(a,["recordAndTuple",{syntaxType:"hash"}]);if(t==="hack"){if(k(a,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(k(a,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let s=J(a,"pipelineOperator","topicToken");if(!Jt.includes(s)){let i=Jt.map(r=>`"${r}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${i}.`)}if(s==="#"&&e)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}else if(t==="smart"&&e)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}if(k(a,"moduleAttributes")){if(k(a,"importAssertions")||k(a,"importAttributes"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if(J(a,"moduleAttributes","version")!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(k(a,"importAssertions")&&k(a,"importAttributes"))throw new Error("Cannot combine importAssertions and importAttributes plugins.");if(k(a,"recordAndTuple")&&J(a,"recordAndTuple","syntaxType")!=null&&!Xt.includes(J(a,"recordAndTuple","syntaxType")))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+Xt.map(t=>`'${t}'`).join(", "));if(k(a,"asyncDoExpressions")&&!k(a,"doExpressions")){let t=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw t.missingPlugins="doExpressions",t}}var fs={estree:mi,jsx:ir,flow:sr,typescript:lr,v8intrinsic:fr,placeholders:dr},yr=Object.keys(fs),Je={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};function xr(a){if(a==null)return Object.assign({},Je);if(a.annexB!=null&&a.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");let t={};for(let s of Object.keys(Je)){var e;t[s]=(e=a[s])!=null?e:Je[s]}return t}var xt=class extends yt{checkProto(t,e,s,i){if(t.type==="SpreadElement"||this.isObjectMethod(t)||t.computed||t.shorthand)return;let r=t.key;if((r.type==="Identifier"?r.name:r.value)==="__proto__"){if(e){this.raise(p.RecordNoProto,{at:r});return}s.used&&(i?i.doubleProtoLoc===null&&(i.doubleProtoLoc=r.loc.start):this.raise(p.DuplicateProto,{at:r})),s.used=!0}}shouldExitDescending(t,e){return t.type==="ArrowFunctionExpression"&&t.start===e}getExpression(){this.enterInitialScopes(),this.nextToken();let t=this.parseExpression();return this.match(137)||this.unexpected(),this.finalizeRemainingComments(),t.comments=this.state.comments,t.errors=this.state.errors,this.options.tokens&&(t.tokens=this.tokens),t}parseExpression(t,e){return t?this.disallowInAnd(()=>this.parseExpressionBase(e)):this.allowInAnd(()=>this.parseExpressionBase(e))}parseExpressionBase(t){let e=this.state.startLoc,s=this.parseMaybeAssign(t);if(this.match(12)){let i=this.startNodeAt(e);for(i.expressions=[s];this.eat(12);)i.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(i.expressions),this.finishNode(i,"SequenceExpression")}return s}parseMaybeAssignDisallowIn(t,e){return this.disallowInAnd(()=>this.parseMaybeAssign(t,e))}parseMaybeAssignAllowIn(t,e){return this.allowInAnd(()=>this.parseMaybeAssign(t,e))}setOptionalParametersError(t,e){var s;t.optionalParametersLoc=(s=e==null?void 0:e.loc)!=null?s:this.state.startLoc}parseMaybeAssign(t,e){let s=this.state.startLoc;if(this.isContextual(106)&&this.prodParam.hasYield){let o=this.parseYield();return e&&(o=e.call(this,o,s)),o}let i;t?i=!1:(t=new se,i=!0);let{type:r}=this.state;(r===10||S(r))&&(this.state.potentialArrowAt=this.state.start);let n=this.parseMaybeConditional(t);if(e&&(n=e.call(this,n,s)),Ti(this.state.type)){let o=this.startNodeAt(s),h=this.state.value;if(o.operator=h,this.match(29)){this.toAssignable(n,!0),o.left=n;let l=s.index;t.doubleProtoLoc!=null&&t.doubleProtoLoc.index>=l&&(t.doubleProtoLoc=null),t.shorthandAssignLoc!=null&&t.shorthandAssignLoc.index>=l&&(t.shorthandAssignLoc=null),t.privateKeyLoc!=null&&t.privateKeyLoc.index>=l&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null)}else o.left=n;return this.next(),o.right=this.parseMaybeAssign(),this.checkLVal(n,{in:this.finishNode(o,"AssignmentExpression")}),o}else i&&this.checkExpressionErrors(t,!0);return n}parseMaybeConditional(t){let e=this.state.startLoc,s=this.state.potentialArrowAt,i=this.parseExprOps(t);return this.shouldExitDescending(i,s)?i:this.parseConditional(i,e,t)}parseConditional(t,e,s){if(this.eat(17)){let i=this.startNodeAt(e);return i.test=t,i.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),i.alternate=this.parseMaybeAssign(),this.finishNode(i,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(136)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){let e=this.state.startLoc,s=this.state.potentialArrowAt,i=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(i,s)?i:this.parseExprOp(i,e,-1)}parseExprOp(t,e,s){if(this.isPrivateName(t)){let r=this.getPrivateNameSV(t);(s>=Ne(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(p.PrivateInExpectedIn,{at:t,identifierName:r}),this.classScope.usePrivateName(r,t.loc.start)}let i=this.state.type;if(Ai(i)&&(this.prodParam.hasIn||!this.match(58))){let r=Ne(i);if(r>s){if(i===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,e)}let n=this.startNodeAt(e);n.left=t,n.operator=this.state.value;let o=i===41||i===42,h=i===40;if(h&&(r=Ne(42)),this.next(),i===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(p.UnexpectedAwaitAfterPipelineBody,{at:this.state.startLoc});n.right=this.parseExprOpRightExpr(i,r);let l=this.finishNode(n,o||h?"LogicalExpression":"BinaryExpression"),c=this.state.type;if(h&&(c===41||c===42)||o&&c===40)throw this.raise(p.MixingCoalesceWithLogical,{at:this.state.startLoc});return this.parseExprOp(l,e,s)}}return t}parseExprOpRightExpr(t,e){let s=this.state.startLoc;switch(t){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"smart":return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(106))throw this.raise(p.PipeBodyIsTighter,{at:this.state.startLoc});return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t,e),s)});case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(e))}default:return this.parseExprOpBaseRightExpr(t,e)}}parseExprOpBaseRightExpr(t,e){let s=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),s,Ii(t)?e-1:e)}parseHackPipeBody(){var t;let{startLoc:e}=this.state,s=this.parseMaybeAssign();return li.has(s.type)&&!((t=s.extra)!=null&&t.parenthesized)&&this.raise(p.PipeUnparenthesizedBody,{at:e,type:s.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(p.PipeTopicUnused,{at:e}),s}checkExponentialAfterUnary(t){this.match(57)&&this.raise(p.UnexpectedTokenUnaryExponentiation,{at:t.argument})}parseMaybeUnary(t,e){let s=this.state.startLoc,i=this.isContextual(96);if(i&&this.isAwaitAllowed()){this.next();let h=this.parseAwait(s);return e||this.checkExponentialAfterUnary(h),h}let r=this.match(34),n=this.startNode();if(wi(this.state.type)){n.operator=this.state.value,n.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let h=this.match(89);if(this.next(),n.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&h){let l=n.argument;l.type==="Identifier"?this.raise(p.StrictDelete,{at:n}):this.hasPropertyAsPrivateName(l)&&this.raise(p.DeletePrivateField,{at:n})}if(!r)return e||this.checkExponentialAfterUnary(n),this.finishNode(n,"UnaryExpression")}let o=this.parseUpdate(n,r,t);if(i){let{type:h}=this.state;if((this.hasPlugin("v8intrinsic")?Ze(h):Ze(h)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(p.AwaitNotInAsyncContext,{at:s}),this.parseAwait(s)}return o}parseUpdate(t,e,s){if(e){let n=t;return this.checkLVal(n.argument,{in:this.finishNode(n,"UpdateExpression")}),t}let i=this.state.startLoc,r=this.parseExprSubscripts(s);if(this.checkExpressionErrors(s,!1))return r;for(;Si(this.state.type)&&!this.canInsertSemicolon();){let n=this.startNodeAt(i);n.operator=this.state.value,n.prefix=!1,n.argument=r,this.next(),this.checkLVal(r,{in:r=this.finishNode(n,"UpdateExpression")})}return r}parseExprSubscripts(t){let e=this.state.startLoc,s=this.state.potentialArrowAt,i=this.parseExprAtom(t);return this.shouldExitDescending(i,s)?i:this.parseSubscripts(i,e)}parseSubscripts(t,e,s){let i={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do t=this.parseSubscript(t,e,s,i),i.maybeAsyncArrow=!1;while(!i.stop);return t}parseSubscript(t,e,s,i){let{type:r}=this.state;if(!s&&r===15)return this.parseBind(t,e,s,i);if(Me(r))return this.parseTaggedTemplateExpression(t,e,i);let n=!1;if(r===18){if(s&&(this.raise(p.OptionalChainingNoNew,{at:this.state.startLoc}),this.lookaheadCharCode()===40))return i.stop=!0,t;i.optionalChainMember=n=!0,this.next()}if(!s&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,e,i,n);{let o=this.eat(0);return o||n||this.eat(16)?this.parseMember(t,e,i,o,n):(i.stop=!0,t)}}parseMember(t,e,s,i,r){let n=this.startNodeAt(e);return n.object=t,n.computed=i,i?(n.property=this.parseExpression(),this.expect(3)):this.match(136)?(t.type==="Super"&&this.raise(p.SuperPrivateField,{at:e}),this.classScope.usePrivateName(this.state.value,this.state.startLoc),n.property=this.parsePrivateName()):n.property=this.parseIdentifier(!0),s.optionalChainMember?(n.optional=r,this.finishNode(n,"OptionalMemberExpression")):this.finishNode(n,"MemberExpression")}parseBind(t,e,s,i){let r=this.startNodeAt(e);return r.object=t,this.next(),r.callee=this.parseNoCallExpr(),i.stop=!0,this.parseSubscripts(this.finishNode(r,"BindExpression"),e,s)}parseCoverCallAndAsyncArrowHead(t,e,s,i){let r=this.state.maybeInArrowParameters,n=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(e);o.callee=t;let{maybeAsyncArrow:h,optionalChainMember:l}=s;h&&(this.expressionScope.enter(Ji()),n=new se),l&&(o.optional=i),i?o.arguments=this.parseCallExpressionArguments(11):o.arguments=this.parseCallExpressionArguments(11,t.type==="Import",t.type!=="Super",h?o:null,n);let c=this.finishCallExpression(o,l);return h&&this.shouldParseAsyncArrow()&&!i?(s.stop=!0,this.checkDestructuringPrivate(n),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(e),c)):(h&&(this.checkExpressionErrors(n,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=r,c}toReferencedArguments(t,e){this.toReferencedListDeep(t.arguments,e)}parseTaggedTemplateExpression(t,e,s){let i=this.startNodeAt(e);return i.tag=t,i.quasi=this.parseTemplate(!0),s.optionalChainMember&&this.raise(p.OptionalChainingNoTemplate,{at:e}),this.finishNode(i,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return t.type==="Identifier"&&t.name==="async"&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&t.start===this.state.potentialArrowAt}expectImportAttributesPlugin(){this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes")}finishCallExpression(t,e){if(t.callee.type==="Import")if(t.arguments.length===2&&(this.hasPlugin("moduleAttributes")||this.expectImportAttributesPlugin()),t.arguments.length===0||t.arguments.length>2)this.raise(p.ImportCallArity,{at:t,maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(let s of t.arguments)s.type==="SpreadElement"&&this.raise(p.ImportCallSpreadArgument,{at:s});return this.finishNode(t,e?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,e,s,i,r){let n=[],o=!0,h=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){e&&!this.hasPlugin("importAttributes")&&!this.hasPlugin("importAssertions")&&!this.hasPlugin("moduleAttributes")&&this.raise(p.ImportCallArgumentTrailingComma,{at:this.state.lastTokStartLoc}),i&&this.addTrailingCommaExtraToNode(i),this.next();break}n.push(this.parseExprListItem(!1,r,s))}return this.state.inFSharpPipelineDirectBody=h,n}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,e){var s;return this.resetPreviousNodeTrailingComments(e),this.expect(19),this.parseArrowExpression(t,e.arguments,!0,(s=e.extra)==null?void 0:s.trailingCommaLoc),e.innerComments&&Te(t,e.innerComments),e.callee.trailingComments&&Te(t,e.callee.trailingComments),t}parseNoCallExpr(){let t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}parseExprAtom(t){let e,s=null,{type:i}=this.state;switch(i){case 79:return this.parseSuper();case 83:return e=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(e):(this.match(10)||this.raise(p.UnsupportedImport,{at:this.state.lastTokStartLoc}),this.finishNode(e,"Import"));case 78:return e=this.startNode(),this.next(),this.finishNode(e,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 132:return this.parseNumericLiteral(this.state.value);case 133:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseDecimalLiteral(this.state.value);case 131:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let r=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(r)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,t);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:s=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(s,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{e=this.startNode(),this.next(),e.object=null;let r=e.callee=this.parseNoCallExpr();if(r.type==="MemberExpression")return this.finishNode(e,"BindExpression");throw this.raise(p.UnsupportedBind,{at:r})}case 136:return this.raise(p.PrivateInExpectedIn,{at:this.state.startLoc,identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let r=this.getPluginOption("pipelineOperator","proposal");if(r)return this.parseTopicReference(r);this.unexpected();break}case 47:{let r=this.input.codePointAt(this.nextTokenStart());j(r)||r===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(S(i)){if(this.isContextual(125)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let r=this.state.potentialArrowAt===this.state.start,n=this.state.containsEsc,o=this.parseIdentifier();if(!n&&o.name==="async"&&!this.canInsertSemicolon()){let{type:h}=this.state;if(h===68)return this.resetPreviousNodeTrailingComments(o),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(o));if(S(h))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(o)):o;if(h===90)return this.resetPreviousNodeTrailingComments(o),this.parseDo(this.startNodeAtNode(o),!0)}return r&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(o),[o],!1)):o}else this.unexpected()}}parseTopicReferenceThenEqualsSign(t,e){let s=this.getPluginOption("pipelineOperator","proposal");if(s)return this.state.type=t,this.state.value=e,this.state.pos--,this.state.end--,this.state.endLoc=L(this.state.endLoc,-1),this.parseTopicReference(s);this.unexpected()}parseTopicReference(t){let e=this.startNode(),s=this.state.startLoc,i=this.state.type;return this.next(),this.finishTopicReference(e,s,t,i)}finishTopicReference(t,e,s,i){if(this.testTopicReferenceConfiguration(s,e,i)){let r=s==="smart"?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise(s==="smart"?p.PrimaryTopicNotAllowed:p.PipeTopicUnbound,{at:e}),this.registerTopicReference(),this.finishNode(t,r)}else throw this.raise(p.PipeTopicUnconfiguredToken,{at:e,token:q(i)})}testTopicReferenceConfiguration(t,e,s){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:q(s)}]);case"smart":return s===27;default:throw this.raise(p.PipeTopicRequiresHackPipes,{at:e})}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(ve(!0,this.prodParam.hasYield));let e=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(p.LineTerminatorBeforeArrow,{at:this.state.curPosition()}),this.expect(19),this.parseArrowExpression(t,e,!0)}parseDo(t,e){this.expectPlugin("doExpressions"),e&&this.expectPlugin("asyncDoExpressions"),t.async=e,this.next();let s=this.state.labels;return this.state.labels=[],e?(this.prodParam.enter(Be),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=s,this.finishNode(t,"DoExpression")}parseSuper(){let t=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!this.options.allowSuperOutsideMethod?this.raise(p.SuperNotAllowed,{at:t}):!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod&&this.raise(p.UnexpectedSuper,{at:t}),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(p.UnsupportedSuper,{at:t}),this.finishNode(t,"Super")}parsePrivateName(){let t=this.startNode(),e=this.startNodeAt(L(this.state.startLoc,1)),s=this.state.value;return this.next(),t.id=this.createIdentifier(e,s),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){let t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let e=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(102)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,e,"sent")}return this.parseFunction(t)}parseMetaProperty(t,e,s){t.meta=e;let i=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==s||i)&&this.raise(p.UnsupportedMetaProperty,{at:t.property,target:e.name,onlyValidPropertyName:s}),this.finishNode(t,"MetaProperty")}parseImportMetaProperty(t){let e=this.createIdentifier(this.startNodeAtNode(t),"import");return this.next(),this.isContextual(100)&&(this.inModule||this.raise(p.ImportMetaOutsideModule,{at:e}),this.sawUnambiguousESM=!0),this.parseMetaProperty(t,e,"meta")}parseLiteralAtNode(t,e,s){return this.addExtra(s,"rawValue",t),this.addExtra(s,"raw",this.input.slice(s.start,this.state.end)),s.value=t,this.next(),this.finishNode(s,e)}parseLiteral(t,e){let s=this.startNode();return this.parseLiteralAtNode(t,e,s)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){return this.parseLiteral(t,"BigIntLiteral")}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){let e=this.parseLiteral(t.value,"RegExpLiteral");return e.pattern=t.pattern,e.flags=t.flags,e}parseBooleanLiteral(t){let e=this.startNode();return e.value=t,this.next(),this.finishNode(e,"BooleanLiteral")}parseNullLiteral(){let t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){let e=this.state.startLoc,s;this.next(),this.expressionScope.enter(Wi());let i=this.state.maybeInArrowParameters,r=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let n=this.state.startLoc,o=[],h=new se,l=!0,c,u;for(;!this.match(11);){if(l)l=!1;else if(this.expect(12,h.optionalParametersLoc===null?null:h.optionalParametersLoc),this.match(11)){u=this.state.startLoc;break}if(this.match(21)){let x=this.state.startLoc;if(c=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),x)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowIn(h,this.parseParenItem))}let f=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=i,this.state.inFSharpPipelineDirectBody=r;let d=this.startNodeAt(e);return t&&this.shouldParseArrow(o)&&(d=this.parseArrow(d))?(this.checkDestructuringPrivate(h),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(d,o,!1),d):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),u&&this.unexpected(u),c&&this.unexpected(c),this.checkExpressionErrors(h,!0),this.toReferencedListDeep(o,!0),o.length>1?(s=this.startNodeAt(n),s.expressions=o,this.finishNode(s,"SequenceExpression"),this.resetEndLocation(s,f)):s=o[0],this.wrapParenthesis(e,s))}wrapParenthesis(t,e){if(!this.options.createParenthesizedExpressions)return this.addExtra(e,"parenthesized",!0),this.addExtra(e,"parenStart",t.index),this.takeSurroundingComments(e,t.index,this.state.lastTokEndLoc.index),e;let s=this.startNodeAt(t);return s.expression=e,this.finishNode(s,"ParenthesizedExpression")}shouldParseArrow(t){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,e){return t}parseNewOrNewTarget(){let t=this.startNode();if(this.next(),this.match(16)){let e=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();let s=this.parseMetaProperty(t,e,"target");return!this.scope.inNonArrowFunction&&!this.scope.inClass&&!this.options.allowNewTargetOutsideFunction&&this.raise(p.UnexpectedNewTarget,{at:s}),s}return this.parseNew(t)}parseNew(t){if(this.parseNewCallee(t),this.eat(10)){let e=this.parseExprList(11);this.toReferencedList(e),t.arguments=e}else t.arguments=[];return this.finishNode(t,"NewExpression")}parseNewCallee(t){t.callee=this.parseNoCallExpr(),t.callee.type==="Import"&&this.raise(p.ImportCallNotNewExpression,{at:t.callee})}parseTemplateElement(t){let{start:e,startLoc:s,end:i,value:r}=this.state,n=e+1,o=this.startNodeAt(L(s,1));r===null&&(t||this.raise(p.InvalidEscapeSequenceTemplate,{at:L(this.state.firstInvalidTemplateEscapePos,1)}));let h=this.match(24),l=h?-1:-2,c=i+l;o.value={raw:this.input.slice(n,c).replace(/\r\n?/g,` +`),cooked:r===null?null:r.slice(1,l)},o.tail=h,this.next();let u=this.finishNode(o,"TemplateElement");return this.resetEndLocation(u,L(this.state.lastTokEndLoc,l)),u}parseTemplate(t){let e=this.startNode();e.expressions=[];let s=this.parseTemplateElement(t);for(e.quasis=[s];!s.tail;)e.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),e.quasis.push(s=this.parseTemplateElement(t));return this.finishNode(e,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,e,s,i){s&&this.expectPlugin("recordAndTuple");let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=Object.create(null),o=!0,h=this.startNode();for(h.properties=[],this.next();!this.match(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(h);break}let c;e?c=this.parseBindingProperty():(c=this.parsePropertyDefinition(i),this.checkProto(c,s,n,i)),s&&!this.isObjectProperty(c)&&c.type!=="SpreadElement"&&this.raise(p.InvalidRecordProperty,{at:c}),c.shorthand&&this.addExtra(c,"shorthand",!0),h.properties.push(c)}this.next(),this.state.inFSharpPipelineDirectBody=r;let l="ObjectExpression";return e?l="ObjectPattern":s&&(l="RecordExpression"),this.finishNode(h,l)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStart),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let e=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(p.UnsupportedPropertyDecorator,{at:this.state.startLoc});this.match(26);)e.push(this.parseDecorator());let s=this.startNode(),i=!1,r=!1,n;if(this.match(21))return e.length&&this.unexpected(),this.parseSpread();e.length&&(s.decorators=e,e=[]),s.method=!1,t&&(n=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(s);let h=this.state.containsEsc,l=this.parsePropertyName(s,t);if(!o&&!h&&this.maybeAsyncOrAccessorProp(s)){let c=l.name;c==="async"&&!this.hasPrecedingLineBreak()&&(i=!0,this.resetPreviousNodeTrailingComments(l),o=this.eat(55),this.parsePropertyName(s)),(c==="get"||c==="set")&&(r=!0,this.resetPreviousNodeTrailingComments(l),s.kind=c,this.match(55)&&(o=!0,this.raise(p.AccessorIsGenerator,{at:this.state.curPosition(),kind:c}),this.next()),this.parsePropertyName(s))}return this.parseObjPropValue(s,n,o,i,!1,r,t)}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var e;let s=this.getGetterSetterExpectedParamCount(t),i=this.getObjectOrClassMethodParams(t);i.length!==s&&this.raise(t.kind==="get"?p.BadGetterArity:p.BadSetterArity,{at:t}),t.kind==="set"&&((e=i[i.length-1])==null?void 0:e.type)==="RestElement"&&this.raise(p.BadSetterRestParameter,{at:t})}parseObjectMethod(t,e,s,i,r){if(r){let n=this.parseMethod(t,e,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(n),n}if(s||e||this.match(10))return i&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,e,s,!1,!1,"ObjectMethod")}parseObjectProperty(t,e,s,i){if(t.shorthand=!1,this.eat(14))return t.value=s?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(i),this.finishNode(t,"ObjectProperty");if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),s)t.value=this.parseMaybeDefault(e,V(t.key));else if(this.match(29)){let r=this.state.startLoc;i!=null?i.shorthandAssignLoc===null&&(i.shorthandAssignLoc=r):this.raise(p.InvalidCoverInitializedName,{at:r}),t.value=this.parseMaybeDefault(e,V(t.key))}else t.value=V(t.key);return t.shorthand=!0,this.finishNode(t,"ObjectProperty")}}parseObjPropValue(t,e,s,i,r,n,o){let h=this.parseObjectMethod(t,s,i,r,n)||this.parseObjectProperty(t,e,r,o);return h||this.unexpected(),h}parsePropertyName(t,e){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:s,value:i}=this.state,r;if(M(s))r=this.parseIdentifier(!0);else switch(s){case 132:r=this.parseNumericLiteral(i);break;case 131:r=this.parseStringLiteral(i);break;case 133:r=this.parseBigIntLiteral(i);break;case 134:r=this.parseDecimalLiteral(i);break;case 136:{let n=this.state.startLoc;e!=null?e.privateKeyLoc===null&&(e.privateKeyLoc=n):this.raise(p.UnexpectedPrivateField,{at:n}),r=this.parsePrivateName();break}default:this.unexpected()}t.key=r,s!==136&&(t.computed=!1)}return t.key}initFunction(t,e){t.id=null,t.generator=!1,t.async=e}parseMethod(t,e,s,i,r,n,o=!1){this.initFunction(t,s),t.generator=e,this.scope.enter(18|(o?64:0)|(r?32:0)),this.prodParam.enter(ve(s,t.generator)),this.parseFunctionParams(t,i);let h=this.parseFunctionBodyAndFinish(t,n,!0);return this.prodParam.exit(),this.scope.exit(),h}parseArrayLike(t,e,s,i){s&&this.expectPlugin("recordAndTuple");let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=this.startNode();return this.next(),n.elements=this.parseExprList(t,!s,i,n),this.state.inFSharpPipelineDirectBody=r,this.finishNode(n,s?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,e,s,i){this.scope.enter(6);let r=ve(s,!1);!this.match(5)&&this.prodParam.hasIn&&(r|=Q),this.prodParam.enter(r),this.initFunction(t,s);let n=this.state.maybeInArrowParameters;return e&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,e,i)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=n,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,e,s){this.toAssignableList(e,s,!1),t.params=e}parseFunctionBodyAndFinish(t,e,s=!1){return this.parseFunctionBody(t,!1,s),this.finishNode(t,e)}parseFunctionBody(t,e,s=!1){let i=e&&!this.match(5);if(this.expressionScope.enter(hs()),i)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,e,!1);else{let r=this.state.strict,n=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|cs),t.body=this.parseBlock(!0,!1,o=>{let h=!this.isSimpleParamList(t.params);o&&h&&this.raise(p.IllegalLanguageModeDirective,{at:(t.kind==="method"||t.kind==="constructor")&&t.key?t.key.loc.end:t});let l=!r&&this.state.strict;this.checkParams(t,!this.state.strict&&!e&&!s&&!h,e,l),this.state.strict&&t.id&&this.checkIdentifier(t.id,65,l)}),this.prodParam.exit(),this.state.labels=n}this.expressionScope.exit()}isSimpleParameter(t){return t.type==="Identifier"}isSimpleParamList(t){for(let e=0,s=t.length;e10||!Ri(t))return;if(s&&Oi(t)){this.raise(p.UnexpectedKeyword,{at:e,keyword:t});return}if((this.state.strict?i?is:ts:es)(t,this.inModule)){this.raise(p.UnexpectedReservedWord,{at:e,reservedWord:t});return}else if(t==="yield"){if(this.prodParam.hasYield){this.raise(p.YieldBindingIdentifier,{at:e});return}}else if(t==="await"){if(this.prodParam.hasAwait){this.raise(p.AwaitBindingIdentifier,{at:e});return}if(this.scope.inStaticBlock){this.raise(p.AwaitBindingIdentifierInStaticBlock,{at:e});return}this.expressionScope.recordAsyncArrowParametersError({at:e})}else if(t==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(p.ArgumentsInClass,{at:e});return}}isAwaitAllowed(){return!!(this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction)}parseAwait(t){let e=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(p.AwaitExpressionFormalParameter,{at:e}),this.eat(55)&&this.raise(p.ObsoleteAwaitStar,{at:e}),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(e.argument=this.parseMaybeUnary(null,!0)),this.finishNode(e,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;let{type:t}=this.state;return t===53||t===10||t===0||Me(t)||t===101&&!this.state.containsEsc||t===135||t===56||this.hasPlugin("v8intrinsic")&&t===54}parseYield(){let t=this.startNode();this.expressionScope.recordParameterInitializerError(p.YieldInParameter,{at:t}),this.next();let e=!1,s=null;if(!this.hasPrecedingLineBreak())switch(e=this.eat(55),this.state.type){case 13:case 137:case 8:case 11:case 3:case 9:case 14:case 12:if(!e)break;default:s=this.parseMaybeAssign()}return t.delegate=e,t.argument=s,this.finishNode(t,"YieldExpression")}checkPipelineAtInfixOperator(t,e){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&t.type==="SequenceExpression"&&this.raise(p.PipelineHeadSequenceExpression,{at:e})}parseSmartPipelineBodyInStyle(t,e){if(this.isSimpleReference(t)){let s=this.startNodeAt(e);return s.callee=t,this.finishNode(s,"PipelineBareFunction")}else{let s=this.startNodeAt(e);return this.checkSmartPipeTopicBodyEarlyErrors(e),s.expression=t,this.finishNode(s,"PipelineTopicExpression")}}isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(p.PipelineBodyNoArrow,{at:this.state.startLoc});this.topicReferenceWasUsedInCurrentContext()||this.raise(p.PipelineTopicUnused,{at:t})}withTopicBindingContext(t){let e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}withSmartMixTopicForbiddingContext(t){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}else return t()}withSoloAwaitPermittingContext(t){let e=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=e}}allowInAnd(t){let e=this.prodParam.currentFlags();if(Q&~e){this.prodParam.enter(e|Q);try{return t()}finally{this.prodParam.exit()}}return t()}disallowInAnd(t){let e=this.prodParam.currentFlags();if(Q&e){this.prodParam.enter(e&~Q);try{return t()}finally{this.prodParam.exit()}}return t()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){let e=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let i=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),e,t);return this.state.inFSharpPipelineDirectBody=s,i}parseModuleExpression(){this.expectPlugin("moduleBlocks");let t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let e=this.startNodeAt(this.state.endLoc);this.next();let s=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(e,8,"module")}finally{s()}return this.finishNode(t,"ModuleExpression")}parsePropertyNamePrefixOperator(t){}},Xe={kind:"loop"},Pr={kind:"switch"},gr=/[\uD800-\uDFFF]/u,Ge=/in(?:stanceof)?/y;function Tr(a,t){for(let e=0;e0)for(let[r,n]of Array.from(this.scope.undefinedExports))this.raise(p.ModuleExportUndefined,{at:n,localName:r});let i;return e===137?i=this.finishNode(t,"Program"):i=this.finishNodeAt(t,"Program",L(this.state.startLoc,-1)),i}stmtToDirective(t){let e=t;e.type="Directive",e.value=e.expression,delete e.expression;let s=e.value,i=s.value,r=this.input.slice(s.start,s.end),n=s.value=r.slice(1,-1);return this.addExtra(s,"raw",r),this.addExtra(s,"rawValue",n),this.addExtra(s,"expressionValue",i),s.type="DirectiveLiteral",e}parseInterpreterDirective(){if(!this.match(28))return null;let t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(){return this.isContextual(99)?this.hasFollowingBindingAtom():!1}chStartsBindingIdentifier(t,e){if(j(t)){if(Ge.lastIndex=e,Ge.test(this.input)){let s=this.codePointAtPos(Ge.lastIndex);if(!ee(s)&&s!==92)return!1}return!0}else return t===92}chStartsBindingPattern(t){return t===91||t===123}hasFollowingBindingAtom(){let t=this.nextTokenStart(),e=this.codePointAtPos(t);return this.chStartsBindingPattern(e)||this.chStartsBindingIdentifier(e,t)}hasInLineFollowingBindingIdentifier(){let t=this.nextTokenInLineStart(),e=this.codePointAtPos(t);return this.chStartsBindingIdentifier(e,t)}startsUsingForOf(){let{type:t,containsEsc:e}=this.lookahead();if(t===101&&!e)return!1;if(S(t)&&!this.hasFollowingLineBreak())return this.expectPlugin("explicitResourceManagement"),!0}startsAwaitUsing(){let t=this.nextTokenInLineStart();if(this.isUnparsedContextual(t,"using")){t=this.nextTokenInLineStartSince(t+5);let e=this.codePointAtPos(t);if(this.chStartsBindingIdentifier(e,t))return this.expectPlugin("explicitResourceManagement"),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(t=!1){let e=0;return this.options.annexB&&!this.state.strict&&(e|=4,t&&(e|=8)),this.parseStatementLike(e)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(t){let e=null;return this.match(26)&&(e=this.parseDecorators(!0)),this.parseStatementContent(t,e)}parseStatementContent(t,e){let s=this.state.type,i=this.startNode(),r=!!(t&2),n=!!(t&4),o=t&1;switch(s){case 60:return this.parseBreakContinueStatement(i,!0);case 63:return this.parseBreakContinueStatement(i,!1);case 64:return this.parseDebuggerStatement(i);case 90:return this.parseDoWhileStatement(i);case 91:return this.parseForStatement(i);case 68:if(this.lookaheadCharCode()===46)break;return n||this.raise(this.state.strict?p.StrictFunction:this.options.annexB?p.SloppyFunctionAnnexB:p.SloppyFunction,{at:this.state.startLoc}),this.parseFunctionStatement(i,!1,!r&&n);case 80:return r||this.unexpected(),this.parseClass(this.maybeTakeDecorators(e,i),!0);case 69:return this.parseIfStatement(i);case 70:return this.parseReturnStatement(i);case 71:return this.parseSwitchStatement(i);case 72:return this.parseThrowStatement(i);case 73:return this.parseTryStatement(i);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.isAwaitAllowed()?r||this.raise(p.UnexpectedLexicalDeclaration,{at:i}):this.raise(p.AwaitUsingNotInAsyncContext,{at:i}),this.next(),this.parseVarStatement(i,"await using");break;case 105:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifier())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(p.UnexpectedUsingDeclaration,{at:this.state.startLoc}):r||this.raise(p.UnexpectedLexicalDeclaration,{at:this.state.startLoc}),this.parseVarStatement(i,"using");case 99:{if(this.state.containsEsc)break;let c=this.nextTokenStart(),u=this.codePointAtPos(c);if(u!==91&&(!r&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(u,c)&&u!==123))break}case 75:r||this.raise(p.UnexpectedLexicalDeclaration,{at:this.state.startLoc});case 74:{let c=this.state.value;return this.parseVarStatement(i,c)}case 92:return this.parseWhileStatement(i);case 76:return this.parseWithStatement(i);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(i);case 83:{let c=this.lookaheadCharCode();if(c===40||c===46)break}case 82:{!this.options.allowImportExportEverywhere&&!o&&this.raise(p.UnexpectedImportExport,{at:this.state.startLoc}),this.next();let c;return s===83?(c=this.parseImport(i),c.type==="ImportDeclaration"&&(!c.importKind||c.importKind==="value")&&(this.sawUnambiguousESM=!0)):(c=this.parseExport(i,e),(c.type==="ExportNamedDeclaration"&&(!c.exportKind||c.exportKind==="value")||c.type==="ExportAllDeclaration"&&(!c.exportKind||c.exportKind==="value")||c.type==="ExportDefaultDeclaration")&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(c),c}default:if(this.isAsyncFunction())return r||this.raise(p.AsyncFunctionInSingleStatementContext,{at:this.state.startLoc}),this.next(),this.parseFunctionStatement(i,!0,!r&&n)}let h=this.state.value,l=this.parseExpression();return S(s)&&l.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(i,h,l,t):this.parseExpressionStatement(i,l,e)}assertModuleNodeAllowed(t){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(p.ImportOutsideModule,{at:t})}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(t,e,s){return t&&(e.decorators&&e.decorators.length>0?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(p.DecoratorsBeforeAfterExport,{at:e.decorators[0]}),e.decorators.unshift(...t)):e.decorators=t,this.resetStartLocationFromNode(e,t[0]),s&&this.resetStartLocationFromNode(s,e)),e}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){let e=[];do e.push(this.parseDecorator());while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(p.DecoratorExportClass,{at:this.state.startLoc});else if(!this.canHaveLeadingDecorator())throw this.raise(p.UnexpectedLeadingDecorator,{at:this.state.startLoc});return e}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let t=this.startNode();if(this.next(),this.hasPlugin("decorators")){let e=this.state.startLoc,s;if(this.match(10)){let i=this.state.startLoc;this.next(),s=this.parseExpression(),this.expect(11),s=this.wrapParenthesis(i,s);let r=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(s),this.getPluginOption("decorators","allowCallParenthesized")===!1&&t.expression!==s&&this.raise(p.DecoratorArgumentsOutsideParentheses,{at:r})}else{for(s=this.parseIdentifier(!1);this.eat(16);){let i=this.startNodeAt(e);i.object=s,this.match(136)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),i.property=this.parsePrivateName()):i.property=this.parseIdentifier(!0),i.computed=!1,s=this.finishNode(i,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(s)}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t){if(this.eat(10)){let e=this.startNodeAtNode(t);return e.callee=t,e.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(e.arguments),this.finishNode(e,"CallExpression")}return t}parseBreakContinueStatement(t,e){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,e),this.finishNode(t,e?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,e){let s;for(s=0;sthis.parseStatement()),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(Xe);let e=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(e=this.state.lastTokStartLoc),this.scope.enter(0),this.expect(10),this.match(13))return e!==null&&this.unexpected(e),this.parseFor(t,null);let s=this.isContextual(99);{let h=this.isContextual(96)&&this.startsAwaitUsing(),l=h||this.isContextual(105)&&this.startsUsingForOf(),c=s&&this.hasFollowingBindingAtom()||l;if(this.match(74)||this.match(75)||c){let u=this.startNode(),f;h?(f="await using",this.isAwaitAllowed()||this.raise(p.AwaitUsingNotInAsyncContext,{at:this.state.startLoc}),this.next()):f=this.state.value,this.next(),this.parseVar(u,!0,f);let d=this.finishNode(u,"VariableDeclaration"),x=this.match(58);return x&&l&&this.raise(p.ForInUsing,{at:d}),(x||this.isContextual(101))&&d.declarations.length===1?this.parseForIn(t,d,e):(e!==null&&this.unexpected(e),this.parseFor(t,d))}}let i=this.isContextual(95),r=new se,n=this.parseExpression(!0,r),o=this.isContextual(101);if(o&&(s&&this.raise(p.ForOfLet,{at:n}),e===null&&i&&n.type==="Identifier"&&this.raise(p.ForOfAsync,{at:n})),o||this.match(58)){this.checkDestructuringPrivate(r),this.toAssignable(n,!0);let h=o?"ForOfStatement":"ForInStatement";return this.checkLVal(n,{in:{type:h}}),this.parseForIn(t,n,e)}else this.checkExpressionErrors(r,!0);return e!==null&&this.unexpected(e),this.parseFor(t,n)}parseFunctionStatement(t,e,s){return this.next(),this.parseFunction(t,1|(s?2:0)|(e?8:0))}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),t.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(p.IllegalReturn,{at:this.state.startLoc}),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();let e=t.cases=[];this.expect(5),this.state.labels.push(Pr),this.scope.enter(0);let s;for(let i;!this.match(8);)if(this.match(61)||this.match(65)){let r=this.match(61);s&&this.finishNode(s,"SwitchCase"),e.push(s=this.startNode()),s.consequent=[],this.next(),r?s.test=this.parseExpression():(i&&this.raise(p.MultipleDefaultsInSwitch,{at:this.state.lastTokStartLoc}),i=!0,s.test=null),this.expect(14)}else s?s.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),s&&this.finishNode(s,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(p.NewlineAfterThrow,{at:this.state.lastTokEndLoc}),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){let t=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&t.type==="Identifier"?8:0),this.checkLVal(t,{in:{type:"CatchClause"},binding:9}),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){let e=this.startNode();this.next(),this.match(10)?(this.expect(10),e.param=this.parseCatchClauseParam(),this.expect(11)):(e.param=null,this.scope.enter(0)),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(67)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(p.NoCatchOrFinally,{at:t}),this.finishNode(t,"TryStatement")}parseVarStatement(t,e,s=!1){return this.next(),this.parseVar(t,!1,e,s),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(Xe),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(p.StrictWith,{at:this.state.startLoc}),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,e,s,i){for(let n of this.state.labels)n.name===e&&this.raise(p.LabelRedeclaration,{at:s,labelName:e});let r=bi(this.state.type)?"loop":this.match(71)?"switch":null;for(let n=this.state.labels.length-1;n>=0;n--){let o=this.state.labels[n];if(o.statementStart===t.start)o.statementStart=this.state.start,o.kind=r;else break}return this.state.labels.push({name:e,kind:r,statementStart:this.state.start}),t.body=i&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=s,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,e,s){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,e=!0,s){let i=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),e&&this.scope.enter(0),this.parseBlockBody(i,t,!1,8,s),e&&this.scope.exit(),this.finishNode(i,"BlockStatement")}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="StringLiteral"&&!t.expression.extra.parenthesized}parseBlockBody(t,e,s,i,r){let n=t.body=[],o=t.directives=[];this.parseBlockOrModuleBlockBody(n,e?o:void 0,s,i,r)}parseBlockOrModuleBlockBody(t,e,s,i,r){let n=this.state.strict,o=!1,h=!1;for(;!this.match(i);){let l=s?this.parseModuleItem():this.parseStatementListItem();if(e&&!h){if(this.isValidDirective(l)){let c=this.stmtToDirective(l);e.push(c),!o&&c.value.value==="use strict"&&(o=!0,this.setStrict(!0));continue}h=!0,this.state.strictErrors.clear()}t.push(l)}r==null||r.call(this,o),n||this.setStrict(!1),this.next()}parseFor(t,e){return t.init=e,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,e,s){let i=this.match(58);return this.next(),i?s!==null&&this.unexpected(s):t.await=s!==null,e.type==="VariableDeclaration"&&e.declarations[0].init!=null&&(!i||!this.options.annexB||this.state.strict||e.kind!=="var"||e.declarations[0].id.type!=="Identifier")&&this.raise(p.ForInOfLoopInitializer,{at:e,type:i?"ForInStatement":"ForOfStatement"}),e.type==="AssignmentPattern"&&this.raise(p.InvalidLhs,{at:e,ancestor:{type:"ForStatement"}}),t.left=e,t.right=i?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")}parseVar(t,e,s,i=!1){let r=t.declarations=[];for(t.kind=s;;){let n=this.startNode();if(this.parseVarId(n,s),n.init=this.eat(29)?e?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,n.init===null&&!i&&(n.id.type!=="Identifier"&&!(e&&(this.match(58)||this.isContextual(101)))?this.raise(p.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"destructuring"}):s==="const"&&!(this.match(58)||this.isContextual(101))&&this.raise(p.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"const"})),r.push(this.finishNode(n,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,e){let s=this.parseBindingAtom();this.checkLVal(s,{in:{type:"VariableDeclarator"},binding:e==="var"?5:8201}),t.id=s}parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}parseFunction(t,e=0){let s=e&2,i=!!(e&1),r=i&&!(e&4),n=!!(e&8);this.initFunction(t,n),this.match(55)&&(s&&this.raise(p.GeneratorInSingleStatementContext,{at:this.state.startLoc}),this.next(),t.generator=!0),i&&(t.id=this.parseFunctionId(r));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(ve(n,t.generator)),i||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(t,i?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),i&&!s&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=o,t}parseFunctionId(t){return t||S(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,e){this.expect(10),this.expressionScope.enter(Hi()),t.params=this.parseBindingList(11,41,2|(e?4:0)),this.expressionScope.exit()}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?5:8201:17,t.id.loc.start)}parseClass(t,e,s){this.next();let i=this.state.strict;return this.state.strict=!0,this.parseClassId(t,e,s),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,i),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}isNonstaticConstructor(t){return!t.computed&&!t.static&&(t.key.name==="constructor"||t.key.value==="constructor")}parseClassBody(t,e){this.classScope.enter();let s={hadConstructor:!1,hadSuperClass:t},i=[],r=this.startNode();if(r.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(i.length>0)throw this.raise(p.DecoratorSemicolon,{at:this.state.lastTokEndLoc});continue}if(this.match(26)){i.push(this.parseDecorator());continue}let n=this.startNode();i.length&&(n.decorators=i,this.resetStartLocationFromNode(n,i[0]),i=[]),this.parseClassMember(r,n,s),n.kind==="constructor"&&n.decorators&&n.decorators.length>0&&this.raise(p.DecoratorConstructor,{at:n})}}),this.state.strict=e,this.next(),i.length)throw this.raise(p.TrailingDecorator,{at:this.state.startLoc});return this.classScope.exit(),this.finishNode(r,"ClassBody")}parseClassMemberFromModifier(t,e){let s=this.parseIdentifier(!0);if(this.isClassMethod()){let i=e;return i.kind="method",i.computed=!1,i.key=s,i.static=!1,this.pushClassMethod(t,i,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let i=e;return i.computed=!1,i.key=s,i.static=!1,t.body.push(this.parseClassProperty(i)),!0}return this.resetPreviousNodeTrailingComments(s),!1}parseClassMember(t,e,s){let i=this.isContextual(104);if(i){if(this.parseClassMemberFromModifier(t,e))return;if(this.eat(5)){this.parseClassStaticBlock(t,e);return}}this.parseClassMemberWithIsStatic(t,e,s,i)}parseClassMemberWithIsStatic(t,e,s,i){let r=e,n=e,o=e,h=e,l=e,c=r,u=r;if(e.static=i,this.parsePropertyNamePrefixOperator(e),this.eat(55)){c.kind="method";let C=this.match(136);if(this.parseClassElementName(c),C){this.pushClassPrivateMethod(t,n,!0,!1);return}this.isNonstaticConstructor(r)&&this.raise(p.ConstructorIsGenerator,{at:r.key}),this.pushClassMethod(t,r,!0,!1,!1,!1);return}let f=S(this.state.type)&&!this.state.containsEsc,d=this.match(136),x=this.parseClassElementName(e),I=this.state.startLoc;if(this.parsePostMemberNameModifiers(u),this.isClassMethod()){if(c.kind="method",d){this.pushClassPrivateMethod(t,n,!1,!1);return}let C=this.isNonstaticConstructor(r),E=!1;C&&(r.kind="constructor",s.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(p.DuplicateConstructor,{at:x}),C&&this.hasPlugin("typescript")&&e.override&&this.raise(p.OverrideOnConstructor,{at:x}),s.hadConstructor=!0,E=s.hadSuperClass),this.pushClassMethod(t,r,!1,!1,C,E)}else if(this.isClassProperty())d?this.pushClassPrivateProperty(t,h):this.pushClassProperty(t,o);else if(f&&x.name==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(x);let C=this.eat(55);u.optional&&this.unexpected(I),c.kind="method";let E=this.match(136);this.parseClassElementName(c),this.parsePostMemberNameModifiers(u),E?this.pushClassPrivateMethod(t,n,C,!0):(this.isNonstaticConstructor(r)&&this.raise(p.ConstructorIsAsync,{at:r.key}),this.pushClassMethod(t,r,C,!0,!1,!1))}else if(f&&(x.name==="get"||x.name==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(x),c.kind=x.name;let C=this.match(136);this.parseClassElementName(r),C?this.pushClassPrivateMethod(t,n,!1,!1):(this.isNonstaticConstructor(r)&&this.raise(p.ConstructorIsAccessor,{at:r.key}),this.pushClassMethod(t,r,!1,!1,!1,!1)),this.checkGetterSetterParams(r)}else if(f&&x.name==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(x);let C=this.match(136);this.parseClassElementName(o),this.pushClassAccessorProperty(t,l,C)}else this.isLineTerminator()?d?this.pushClassPrivateProperty(t,h):this.pushClassProperty(t,o):this.unexpected()}parseClassElementName(t){let{type:e,value:s}=this.state;if((e===130||e===131)&&t.static&&s==="prototype"&&this.raise(p.StaticPrototype,{at:this.state.startLoc}),e===136){s==="constructor"&&this.raise(p.ConstructorClassPrivateField,{at:this.state.startLoc});let i=this.parsePrivateName();return t.key=i,i}return this.parsePropertyName(t)}parseClassStaticBlock(t,e){var s;this.scope.enter(208);let i=this.state.labels;this.state.labels=[],this.prodParam.enter(te);let r=e.body=[];this.parseBlockOrModuleBlockBody(r,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=i,t.body.push(this.finishNode(e,"StaticBlock")),(s=e.decorators)!=null&&s.length&&this.raise(p.DecoratorStaticBlock,{at:e})}pushClassProperty(t,e){!e.computed&&(e.key.name==="constructor"||e.key.value==="constructor")&&this.raise(p.ConstructorClassField,{at:e.key}),t.body.push(this.parseClassProperty(e))}pushClassPrivateProperty(t,e){let s=this.parseClassPrivateProperty(e);t.body.push(s),this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}pushClassAccessorProperty(t,e,s){if(!s&&!e.computed){let r=e.key;(r.name==="constructor"||r.value==="constructor")&&this.raise(p.ConstructorClassField,{at:r})}let i=this.parseClassAccessorProperty(e);t.body.push(i),s&&this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start)}pushClassMethod(t,e,s,i,r,n){t.body.push(this.parseMethod(e,s,i,r,n,"ClassMethod",!0))}pushClassPrivateMethod(t,e,s,i){let r=this.parseMethod(e,s,i,!1,!1,"ClassPrivateMethod",!0);t.body.push(r);let n=r.kind==="get"?r.static?6:2:r.kind==="set"?r.static?5:1:0;this.declareClassPrivateMethodInScope(r,n)}declareClassPrivateMethodInScope(t,e){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),e,t.key.loc.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(80),this.expressionScope.enter(hs()),this.prodParam.enter(te),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,e,s,i=8331){if(S(this.state.type))t.id=this.parseIdentifier(),e&&this.declareNameFromIdentifier(t.id,i);else if(s||!e)t.id=null;else throw this.raise(p.MissingClassName,{at:this.state.startLoc})}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(t,e){let s=this.parseMaybeImportPhase(t,!0),i=this.maybeParseExportDefaultSpecifier(t,s),r=!i||this.eat(12),n=r&&this.eatExportStar(t),o=n&&this.maybeParseExportNamespaceSpecifier(t),h=r&&(!o||this.eat(12)),l=i||n;if(n&&!o){if(i&&this.unexpected(),e)throw this.raise(p.UnsupportedDecoratorExport,{at:t});return this.parseExportFrom(t,!0),this.finishNode(t,"ExportAllDeclaration")}let c=this.maybeParseExportNamedSpecifiers(t);i&&r&&!n&&!c&&this.unexpected(null,5),o&&h&&this.unexpected(null,97);let u;if(l||c){if(u=!1,e)throw this.raise(p.UnsupportedDecoratorExport,{at:t});this.parseExportFrom(t,l)}else u=this.maybeParseExportDeclaration(t);if(l||c||u){var f;let d=t;if(this.checkExport(d,!0,!1,!!d.source),((f=d.declaration)==null?void 0:f.type)==="ClassDeclaration")this.maybeTakeDecorators(e,d.declaration,d);else if(e)throw this.raise(p.UnsupportedDecoratorExport,{at:t});return this.finishNode(d,"ExportNamedDeclaration")}if(this.eat(65)){let d=t,x=this.parseExportDefaultExpression();if(d.declaration=x,x.type==="ClassDeclaration")this.maybeTakeDecorators(e,x,d);else if(e)throw this.raise(p.UnsupportedDecoratorExport,{at:t});return this.checkExport(d,!0,!0),this.finishNode(d,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t,e){if(e||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",e==null?void 0:e.loc.start);let s=e||this.parseIdentifier(!0),i=this.startNodeAtNode(s);return i.exported=s,t.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){t.specifiers||(t.specifiers=[]);let e=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),e.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(e,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){t.specifiers||(t.specifiers=[]);let e=t.exportKind==="type";return t.specifiers.push(...this.parseExportSpecifiers(e)),t.source=null,t.declaration=null,this.hasPlugin("importAssertions")&&(t.assertions=[]),!0}return!1}maybeParseExportDeclaration(t){return this.shouldParseExportDeclaration()?(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")&&(t.assertions=[]),t.declaration=this.parseExportDeclaration(t),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let t=this.nextTokenInLineStart();return this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){let t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(p.DecoratorBeforeExport,{at:this.state.startLoc}),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(p.UnsupportedDefaultExport,{at:this.state.startLoc});let e=this.parseMaybeAssignAllowIn();return this.semicolon(),e}parseExportDeclaration(t){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:t}=this.state;if(S(t)){if(t===95&&!this.state.containsEsc||t===99)return!1;if((t===128||t===127)&&!this.state.containsEsc){let{type:i}=this.lookahead();if(S(i)&&i!==97||i===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let e=this.nextTokenStart(),s=this.isUnparsedContextual(e,"from");if(this.input.charCodeAt(e)===44||S(this.state.type)&&s)return!0;if(this.match(65)&&s){let i=this.input.charCodeAt(this.nextTokenStartSince(e+4));return i===34||i===39}return!1}parseExportFrom(t,e){this.eatContextual(97)?(t.source=this.parseImportSource(),this.checkExport(t),this.maybeParseImportAttributes(t),this.checkJSONModuleImport(t)):e&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:t}=this.state;return t===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(p.DecoratorBeforeExport,{at:this.state.startLoc}),!0):t===74||t===75||t===68||t===80||this.isLet()||this.isAsyncFunction()}checkExport(t,e,s,i){if(e){var r;if(s){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var n;let o=t.declaration;o.type==="Identifier"&&o.name==="from"&&o.end-o.start===4&&!((n=o.extra)!=null&&n.parenthesized)&&this.raise(p.ExportDefaultFromAsIdentifier,{at:o})}}else if((r=t.specifiers)!=null&&r.length)for(let o of t.specifiers){let{exported:h}=o,l=h.type==="Identifier"?h.name:h.value;if(this.checkDuplicateExports(o,l),!i&&o.local){let{local:c}=o;c.type!=="Identifier"?this.raise(p.ExportBindingIsString,{at:o,localName:c.value,exportName:l}):(this.checkReservedWord(c.name,c.loc.start,!0,!1),this.scope.checkLocalExport(c))}}else if(t.declaration){if(t.declaration.type==="FunctionDeclaration"||t.declaration.type==="ClassDeclaration"){let o=t.declaration.id;if(!o)throw new Error("Assertion failure");this.checkDuplicateExports(t,o.name)}else if(t.declaration.type==="VariableDeclaration")for(let o of t.declaration.declarations)this.checkDeclaration(o.id)}}}checkDeclaration(t){if(t.type==="Identifier")this.checkDuplicateExports(t,t.name);else if(t.type==="ObjectPattern")for(let e of t.properties)this.checkDeclaration(e);else if(t.type==="ArrayPattern")for(let e of t.elements)e&&this.checkDeclaration(e);else t.type==="ObjectProperty"?this.checkDeclaration(t.value):t.type==="RestElement"?this.checkDeclaration(t.argument):t.type==="AssignmentPattern"&&this.checkDeclaration(t.left)}checkDuplicateExports(t,e){this.exportedIdentifiers.has(e)&&(e==="default"?this.raise(p.DuplicateDefaultExport,{at:t}):this.raise(p.DuplicateExport,{at:t,exportName:e})),this.exportedIdentifiers.add(e)}parseExportSpecifiers(t){let e=[],s=!0;for(this.expect(5);!this.eat(8);){if(s)s=!1;else if(this.expect(12),this.eat(8))break;let i=this.isContextual(128),r=this.match(131),n=this.startNode();n.local=this.parseModuleExportName(),e.push(this.parseExportSpecifier(n,r,t,i))}return e}parseExportSpecifier(t,e,s,i){return this.eatContextual(93)?t.exported=this.parseModuleExportName():e?t.exported=Gi(t.local):t.exported||(t.exported=V(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(131)){let t=this.parseStringLiteral(this.state.value),e=t.value.match(gr);return e&&this.raise(p.ModuleExportNameHasLoneSurrogate,{at:t,surrogateCharCode:e[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}isJSONModuleImport(t){return t.assertions!=null?t.assertions.some(({key:e,value:s})=>s.value==="json"&&(e.type==="Identifier"?e.name==="type":e.value==="type")):!1}checkImportReflection(t){if(t.module){var e;(t.specifiers.length!==1||t.specifiers[0].type!=="ImportDefaultSpecifier")&&this.raise(p.ImportReflectionNotBinding,{at:t.specifiers[0].loc.start}),((e=t.assertions)==null?void 0:e.length)>0&&this.raise(p.ImportReflectionHasAssertion,{at:t.specifiers[0].loc.start})}}checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&t.type!=="ExportAllDeclaration"){let{specifiers:e}=t;if(e!=null){let s=e.find(i=>{let r;if(i.type==="ExportSpecifier"?r=i.local:i.type==="ImportSpecifier"&&(r=i.imported),r!==void 0)return r.type==="Identifier"?r.name!=="default":r.value!=="default"});s!==void 0&&this.raise(p.ImportJSONBindingNotDefault,{at:s.loc.start})}}}isPotentialImportPhase(t){return!t&&this.isContextual(125)}applyImportPhase(t,e,s,i){e||(s==="module"?(this.expectPlugin("importReflection",i),t.module=!0):this.hasPlugin("importReflection")&&(t.module=!1))}parseMaybeImportPhase(t,e){if(!this.isPotentialImportPhase(e))return this.applyImportPhase(t,e,null),null;let s=this.parseIdentifier(!0),{type:i}=this.state;return(M(i)?i!==97||this.lookaheadCharCode()===102:i!==12)?(this.resetPreviousIdentifierLeadingComments(s),this.applyImportPhase(t,e,s.name,s.loc.start),null):(this.applyImportPhase(t,e,null),s)}isPrecedingIdImportPhase(t){let{type:e}=this.state;return S(e)?e!==97||this.lookaheadCharCode()===102:e!==12}parseImport(t){return this.match(131)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,!1))}parseImportSpecifiersAndAfter(t,e){t.specifiers=[];let i=!this.maybeParseDefaultImportSpecifier(t,e)||this.eat(12),r=i&&this.maybeParseStarImportSpecifier(t);return i&&!r&&this.parseNamedImportSpecifiers(t),this.expectContextual(97),this.parseImportSourceAndAttributes(t)}parseImportSourceAndAttributes(t){var e;return(e=t.specifiers)!=null||(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(131)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(t,e,s){e.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(e,s))}finishImportSpecifier(t,e,s=8201){return this.checkLVal(t.local,{in:{type:e},binding:s}),this.finishNode(t,e)}parseImportAttributes(){this.expect(5);let t=[],e=new Set;do{if(this.match(8))break;let s=this.startNode(),i=this.state.value;if(e.has(i)&&this.raise(p.ModuleAttributesWithDuplicateKeys,{at:this.state.startLoc,key:i}),e.add(i),this.match(131)?s.key=this.parseStringLiteral(i):s.key=this.parseIdentifier(!0),this.expect(14),!this.match(131))throw this.raise(p.ModuleAttributeInvalidValue,{at:this.state.startLoc});s.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(s,"ImportAttribute"))}while(this.eat(12));return this.expect(8),t}parseModuleAttributes(){let t=[],e=new Set;do{let s=this.startNode();if(s.key=this.parseIdentifier(!0),s.key.name!=="type"&&this.raise(p.ModuleAttributeDifferentFromType,{at:s.key}),e.has(s.key.name)&&this.raise(p.ModuleAttributesWithDuplicateKeys,{at:s.key,key:s.key.name}),e.add(s.key.name),this.expect(14),!this.match(131))throw this.raise(p.ModuleAttributeInvalidValue,{at:this.state.startLoc});s.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(s,"ImportAttribute"))}while(this.eat(12));return t}maybeParseImportAttributes(t){let e,s=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?e=this.parseModuleAttributes():(this.expectImportAttributesPlugin(),e=this.parseImportAttributes()),s=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.hasPlugin("importAttributes")?(this.getPluginOption("importAttributes","deprecatedAssertSyntax")!==!0&&this.raise(p.ImportAttributesUseAssert,{at:this.state.startLoc}),this.addExtra(t,"deprecatedAssertSyntax",!0)):this.expectOnePlugin(["importAttributes","importAssertions"]),this.next(),e=this.parseImportAttributes();else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))e=[];else if(this.hasPlugin("moduleAttributes"))e=[];else return;!s&&this.hasPlugin("importAssertions")?t.assertions=e:t.attributes=e}maybeParseDefaultImportSpecifier(t,e){if(e){let s=this.startNodeAtNode(e);return s.local=e,t.specifiers.push(this.finishImportSpecifier(s,"ImportDefaultSpecifier")),!0}else if(M(this.state.type))return this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(t){if(this.match(55)){let e=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,e,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(t){let e=!0;for(this.expect(5);!this.eat(8);){if(e)e=!1;else{if(this.eat(14))throw this.raise(p.DestructureNamedImport,{at:this.state.startLoc});if(this.expect(12),this.eat(8))break}let s=this.startNode(),i=this.match(131),r=this.isContextual(128);s.imported=this.parseModuleExportName();let n=this.parseImportSpecifier(s,i,t.importKind==="type"||t.importKind==="typeof",r,void 0);t.specifiers.push(n)}}parseImportSpecifier(t,e,s,i,r){if(this.eatContextual(93))t.local=this.parseIdentifier();else{let{imported:n}=t;if(e)throw this.raise(p.ImportBindingIsString,{at:t,importName:n.value});this.checkReservedWord(n.name,t.loc.start,!0,!0),t.local||(t.local=V(n))}return this.finishImportSpecifier(t,"ImportSpecifier",r)}isThisParam(t){return t.type==="Identifier"&&t.name==="this"}},Fe=class extends Pt{constructor(t,e){t=xr(t),super(t,e),this.options=t,this.initializeScopes(),this.plugins=br(this.options.plugins),this.filename=t.sourceFilename}getScopeHandler(){return ge}parse(){this.enterInitialScopes();let t=this.startNode(),e=this.startNode();return this.nextToken(),t.errors=null,this.parseTopLevel(t,e),t.errors=this.state.errors,t}};function br(a){let t=new Map;for(let e of a){let[s,i]=Array.isArray(e)?e:[e,{}];t.has(s)||t.set(s,i||{})}return t}function Ar(a,t){var e;if(((e=t)==null?void 0:e.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let s=me(t,a),i=s.parse();if(s.sawUnambiguousESM)return i;if(s.ambiguousScriptDifferentAst)try{return t.sourceType="script",me(t,a).parse()}catch{}else i.program.sourceType="script";return i}catch(s){try{return t.sourceType="script",me(t,a).parse()}catch{}throw s}}else return me(t,a).parse()}function Sr(a,t){let e=me(t,a);return e.options.strictMode&&(e.state.strict=!0),e.getExpression()}function wr(a){let t={};for(let e of Object.keys(a))t[e]=_(a[e]);return t}var Cr=wr(xi);function me(a,t){let e=Fe;return a!=null&&a.plugins&&(mr(a.plugins),e=Er(a.plugins)),new e(a,t)}var Gt={};function Er(a){let t=yr.filter(i=>k(a,i)),e=t.join("/"),s=Gt[e];if(!s){s=Fe;for(let i of t)s=fs[i](s);Gt[e]=s}return s}Re.parse=Ar;Re.parseExpression=Sr;Re.tokTypes=Cr});var Ns=Bt(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.extract=_r;G.parse=jr;G.parseWithComments=Is;G.print=$r;G.strip=Ur;var Mr=/\*\/$/,Or=/^\/\*\*?/,Cs=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Fr=/(^|\s+)\/\/([^\r\n]*)/g,As=/^(\r?\n)+/,Br=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,Ss=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,Rr=/(\r?\n|^) *\* ?/g,Es=[];function _r(a){let t=a.match(Cs);return t?t[0].trimLeft():""}function Ur(a){let t=a.match(Cs);return t&&t[0]?a.substring(t[0].length):a}function jr(a){return Is(a).pragmas}function Is(a){let t=` +`;a=a.replace(Or,"").replace(Mr,"").replace(Rr,"$1");let e="";for(;e!==a;)e=a,a=a.replace(Br,`${t}$1 $2${t}`);a=a.replace(As,"").trimRight();let s=Object.create(null),i=a.replace(Ss,"").replace(As,"").trimRight(),r;for(;r=Ss.exec(a);){let n=r[2].replace(Fr,"");typeof s[r[1]]=="string"||Array.isArray(s[r[1]])?s[r[1]]=Es.concat(s[r[1]],n):s[r[1]]=n}return{comments:i,pragmas:s}}function $r({comments:a="",pragmas:t={}}){let e=` +`,s="/**",i=" *",r=" */",n=Object.keys(t),o=n.map(l=>ws(l,t[l])).reduce((l,c)=>l.concat(c),[]).map(l=>`${i} ${l}${e}`).join("");if(!a){if(n.length===0)return"";if(n.length===1&&!Array.isArray(t[n[0]])){let l=t[n[0]];return`${s} ${ws(n[0],l)[0]}${r}`}}let h=a.split(e).map(l=>`${i} ${l}`).join(e)+e;return s+e+(a?h:"")+(a&&n.length?i+e:"")+o+r}function ws(a,t){return Es.concat(t).map(e=>`@${a} ${e}`.trim())}});var Ft={};si(Ft,{parsers:()=>da});var ze=qe(kt(),1);function Ir(a){let t=[];for(let e of a)try{return e()}catch(s){t.push(s)}throw Object.assign(new Error("All combinations failed"),{errors:t})}var ms=Ir;function Nr(a){if(!a.startsWith("#!"))return"";let t=a.indexOf(` +`);return t===-1?a:a.slice(0,t)}var _e=Nr;function kr(a,t){if(t===!1)return!1;if(a.charAt(t)==="/"&&a.charAt(t+1)==="*"){for(let e=t+2;e{let i=!!(s!=null&&s.backwards);if(e===!1)return!1;let{length:r}=t,n=e;for(;n>=0&&n0}var X=Va;function D(a){var s;let t=a.range?a.range[0]:a.start,e=((s=a.declaration)==null?void 0:s.decorators)??a.decorators;return X(e)?Math.min(D(e[0]),t):t}function _(a){return a.range?a.range[1]:a.end}function za(a){return a=typeof a=="function"?{parse:a}:a,{astFormat:"estree",hasPragma:yi,locStart:D,locEnd:_,...a}}var xe=za;function Ka(a,t){let e=new SyntaxError(a+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(e,t)}var Pe=Ka;function qa(a){let{message:t,loc:e}=a;return Pe(t.replace(/ \(.*\)$/,""),{loc:{start:{line:e?e.line:0,column:e?e.column+1:0}},cause:a})}var Oe=qa;var Ha=(a,t,e)=>{if(!(a&&t==null))return Array.isArray(t)||typeof t=="string"?t[e<0?t.length+e:e]:t.at(e)},as=Ha;function Wa(a){return a=new Set(a),t=>a.has(t==null?void 0:t.type)}var xi=Wa;var Ja=xi(["Block","CommentBlock","MultiLine"]),Be=Ja;function Xa(a){return Be(a)&&a.value[0]==="*"&&/@(?:type|satisfies)\b/.test(a.value)}var Pi=Xa;function Ga(a){let t=`*${a.value}*`.split(` -`);return t.length>1&&t.every(e=>e.trimStart()[0]==="*")}var ns=Ga;var Fe=null;function _e(a){if(Fe!==null&&typeof Fe.property){let t=Fe;return Fe=_e.prototype=null,t}return Fe=_e.prototype=a??Object.create(null),new _e}var Ya=10;for(let a=0;a<=Ya;a++)_e();function os(a){return _e(a)}function Qa(a,t="type"){os(a);function e(s){let i=s[t],r=a[i];if(!Array.isArray(r))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:s});return r}return e}var Ti=Qa;var gi={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ExportAllDeclaration:["source","attributes","assertions","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes","assertions"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes","assertions"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","parameter"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ImportExpression:["source","attributes"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareEnum:["id","body"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]};var Za=Ti(gi),bi=Za;function hs(a,t){if(!(a!==null&&typeof a=="object"))return a;if(Array.isArray(a)){for(let s=0;s{var o;(o=n.leadingComments)!=null&&o.some(Pi)&&r.add(D(n))}),a=nt(a,n=>{if(n.type==="ParenthesizedExpression"){let{expression:o}=n;if(o.type==="TypeCastExpression")return o.range=n.range,o;let h=D(n);if(!r.has(h))return o.extra={...o.extra,parenthesized:!0},o}})}if(a=nt(a,r=>{switch(r.type){case"LogicalExpression":if(Ai(r))return ls(r);break;case"VariableDeclaration":{let n=as(!1,r.declarations,-1);n!=null&&n.init&&i(r,n);break}case"TSParenthesizedType":return r.typeAnnotation;case"TSTypeParameter":if(typeof r.name=="string"){let n=D(r);r.name={type:"Identifier",name:r.name,range:[n,n+r.name.length]}}break;case"ObjectExpression":if(e==="typescript"){let n=r.properties.find(o=>o.type==="Property"&&o.value.type==="TSEmptyBodyFunctionExpression");n&&ot(n.value,"Unexpected token.")}break;case"TSInterfaceDeclaration":X(r.implements)&&ot(r.implements[0],"Interface declaration cannot have 'implements' clause.");break;case"TSPropertySignature":r.initializer&&ot(r.initializer,"An interface property cannot have an initializer.");break;case"TopicReference":a.extra={...a.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":{let{exported:n}=r;if(e==="meriyah"&&(n==null?void 0:n.type)==="Identifier"){let o=s.slice(D(n),_(n));(o.startsWith('"')||o.startsWith("'"))&&(r.exported={...r.exported,type:"Literal",value:r.exported.name,raw:o})}break}case"TSUnionType":case"TSIntersectionType":if(r.types.length===1)return r.types[0];break}}),X(a.comments)){let r=as(!1,a.comments,-1);for(let n=a.comments.length-2;n>=0;n--){let o=a.comments[n];_(o)===D(r)&&Be(o)&&Be(r)&&ns(o)&&ns(r)&&(a.comments.splice(n+1,1),o.value+="*//*"+r.value,o.range=[D(o),_(r)]),r=o}}return a.type==="Program"&&(a.range=[0,s.length]),a;function i(r,n){s[_(n)]!==";"&&(r.range=[D(r),_(n)])}}function Ai(a){return a.type==="LogicalExpression"&&a.right.type==="LogicalExpression"&&a.operator===a.right.operator}function ls(a){return Ai(a)?ls({type:"LogicalExpression",operator:a.operator,left:ls({type:"LogicalExpression",operator:a.operator,left:a.left,right:a.right.left,range:[D(a.left),_(a.right.left)]}),right:a.right.right,range:[D(a),_(a)]}):a}var Si=tn;function sn(a){let{filepath:t}=a;if(t){if(t=t.toLowerCase(),t.endsWith(".cjs"))return"script";if(t.endsWith(".mjs"))return"module"}}var Ei=sn;function rn(a,t){let{type:e="JsExpressionRoot",rootMarker:s,text:i}=t,{tokens:r,comments:n}=a;return delete a.tokens,delete a.comments,{tokens:r,comments:n,type:e,node:a,range:[0,i.length],rootMarker:s}}var ht=rn;var Te=a=>xe(cn(a)),an={sourceType:"module",allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","decimal","moduleBlocks","asyncDoExpressions","regexpUnicodeSets","destructuringPrivate","decoratorAutoAccessors","importReflection","explicitResourceManagement",["importAttributes",{deprecatedAssertSyntax:!0}]],tokens:!0,ranges:!0},nn=["recordAndTuple",{syntaxType:"hash"}],Ci="v8intrinsic",wi=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"minimal"}],["pipelineOperator",{proposal:"fsharp"}]],R=(a,t=an)=>({...t,plugins:[...t.plugins,...a]}),on=/@(?:no)?flow\b/;function hn(a,t){var i;if((i=t.filepath)!=null&&i.endsWith(".js.flow"))return!0;let e=rt(a);e&&(a=a.slice(e.length));let s=hi(a,0);return s!==!1&&(a=a.slice(0,s)),on.test(a)}function ln(a,t,e){let s=a(t,e),i=s.errors.find(r=>!pn.has(r.reasonCode));if(i)throw i;return s}function cn({isExpression:a=!1,optionsCombinations:t}){return(e,s={})=>{if((s.parser==="babel"||s.parser==="__babel_estree")&&hn(e,s))return s.parser="babel-flow",Di.parse(e,s);let i=t;(s.__babelSourceType??Ei(s))==="script"&&(i=i.map(l=>({...l,sourceType:"script"}))),/#[[{]/.test(e)&&(i=i.map(l=>R([nn],l)));let n=/%[A-Z]/.test(e);e.includes("|>")?i=(n?[...wi,Ci]:wi).flatMap(c=>i.map(u=>R([c],u))):n&&(i=i.map(l=>R([Ci],l)));let o=a?lt.parseExpression:lt.parse,h;try{h=si(i.map(l=>()=>ln(o,e,l)))}catch({errors:[l]}){throw Oe(l)}return a&&(h=ht(h,{text:e,rootMarker:s.rootMarker})),Si(h,{parser:"babel",text:e})}}var pn=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","EmptyTypeArguments","EmptyTypeParameters","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","MixedLabeledAndUnlabeledElements","DuplicateAccessibilityModifier","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","LineTerminatorBeforeArrow","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","OptionalBindingPattern","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","DeclareFunctionHasImplementation","ConstructorClassField","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport"]),Li=[R(["jsx"])],Ii=Te({optionsCombinations:Li}),Ni=Te({optionsCombinations:[R(["jsx","typescript"]),R(["typescript"])]}),ki=Te({isExpression:!0,optionsCombinations:[R(["jsx"])]}),vi=Te({isExpression:!0,optionsCombinations:[R(["typescript"])]}),Di=Te({optionsCombinations:[R(["jsx",["flow",{all:!0,enums:!0}],"flowComments"])]}),un=Te({optionsCombinations:Li.map(a=>R(["estree"],a))}),Mi={babel:Ii,"babel-flow":Di,"babel-ts":Ni,__js_expression:ki,__ts_expression:vi,__vue_expression:ki,__vue_ts_expression:vi,__vue_event_binding:Ii,__vue_ts_event_binding:Ni,__babel_estree:un};var Bi=pt(rs(),1);function Fi(a={}){let{allowComments:t=!0}=a;return function(s){let i;try{i=(0,Bi.parseExpression)(s,{tokens:!0,ranges:!0})}catch(r){throw(r==null?void 0:r.reasonCode)==="MissingPlugin"||(r==null?void 0:r.reasonCode)==="MissingOneOfPlugins"?Oe({message:"Unexpected token",loc:r.loc}):Oe(r)}if(!t&&X(i.comments))throw G(i.comments[0],"Comment");return ge(i),ht(i,{type:"JsonRoot",text:s})}}function G(a,t){let[e,s]=[a.loc.start,a.loc.end].map(({line:i,column:r})=>({line:i,column:r+1}));return Pe(`${t} is not allowed in JSON.`,{loc:{start:e,end:s}})}function ge(a){switch(a.type){case"ArrayExpression":for(let t of a.elements)t!==null&&ge(t);return;case"ObjectExpression":for(let t of a.properties)ge(t);return;case"ObjectProperty":if(a.computed)throw G(a.key,"Computed key");if(a.shorthand)throw G(a.key,"Shorthand property");a.key.type!=="Identifier"&&ge(a.key),ge(a.value);return;case"UnaryExpression":{let{operator:t,argument:e}=a;if(t!=="+"&&t!=="-")throw G(a,`Operator '${a.operator}'`);if(e.type==="NumericLiteral"||e.type==="Identifier"&&(e.name==="Infinity"||e.name==="NaN"))return;throw G(e,`Operator '${t}' before '${e.type}'`)}case"Identifier":if(a.name!=="Infinity"&&a.name!=="NaN"&&a.name!=="undefined")throw G(a,`Identifier '${a.name}'`);return;case"TemplateLiteral":if(X(a.expressions))throw G(a.expressions[0],"'TemplateLiteral' with expression");for(let t of a.quasis)ge(t);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw G(a,`'${a.type}'`)}}var Oi=Fi(),fn={json:xe({parse:Oi,hasPragma(){return!0}}),json5:xe(Oi),"json-stringify":xe({parse:Fi({allowComments:!1}),astFormat:"estree-json"})},_i=fn;var dn={...Mi,..._i};var Jo=cs;export{Jo as default,dn as parsers}; +`||i==="\r"||i==="\u2028"||i==="\u2029")return t+1}return t}var xs=vr;function Ue(a){return(t,e,s)=>{let i=!!(s!=null&&s.backwards);if(e===!1)return!1;let{length:r}=t,n=e;for(;n>=0&&n0}var Y=zr;function D(a){var s;let t=a.range?a.range[0]:a.start,e=((s=a.declaration)==null?void 0:s.decorators)??a.decorators;return Y(e)?Math.min(D(e[0]),t):t}function B(a){return a.range?a.range[1]:a.end}function Kr(a){return a=typeof a=="function"?{parse:a}:a,{astFormat:"estree",hasPragma:ks,locStart:D,locEnd:B,...a}}var oe=Kr;function qr(a,t){let e=new SyntaxError(a+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(e,t)}var je=qr;function Hr(a){let{message:t,loc:e}=a;return je(t.replace(/ \(.*\)$/,""),{loc:{start:{line:e?e.line:0,column:e?e.column+1:0}},cause:a})}var be=Hr;var Wr=(a,t,e)=>{if(!(a&&t==null))return Array.isArray(t)||typeof t=="string"?t[e<0?t.length+e:e]:t.at(e)},vt=Wr;function Jr(a){return a=new Set(a),t=>a.has(t==null?void 0:t.type)}var vs=Jr;var Xr=vs(["Block","CommentBlock","MultiLine"]),Ae=Xr;function Gr(a){return Ae(a)&&a.value[0]==="*"&&/@(?:type|satisfies)\b/.test(a.value)}var Ls=Gr;function Yr(a){let t=`*${a.value}*`.split(` +`);return t.length>1&&t.every(e=>e.trimStart()[0]==="*")}var Lt=Yr;var Se=null;function we(a){if(Se!==null&&typeof Se.property){let t=Se;return Se=we.prototype=null,t}return Se=we.prototype=a??Object.create(null),new we}var Qr=10;for(let a=0;a<=Qr;a++)we();function Dt(a){return we(a)}function Zr(a,t="type"){Dt(a);function e(s){let i=s[t],r=a[i];if(!Array.isArray(r))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:s});return r}return e}var Ds=Zr;var Ms={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","assertions","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes","assertions"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes","assertions"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ImportExpression:["source","attributes"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareEnum:["id","body"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]};var ea=Ds(Ms),Os=ea;function Mt(a,t){if(!(a!==null&&typeof a=="object"))return a;if(Array.isArray(a)){for(let s=0;s{var o;(o=n.leadingComments)!=null&&o.some(Ls)&&r.add(D(n))}),a=$e(a,n=>{if(n.type==="ParenthesizedExpression"){let{expression:o}=n;if(o.type==="TypeCastExpression")return o.range=n.range,o;let h=D(n);if(!r.has(h))return o.extra={...o.extra,parenthesized:!0},o}})}if(a=$e(a,r=>{switch(r.type){case"LogicalExpression":if(Fs(r))return Ot(r);break;case"VariableDeclaration":{let n=vt(!1,r.declarations,-1);n!=null&&n.init&&i(r,n);break}case"TSParenthesizedType":return r.typeAnnotation;case"TSTypeParameter":if(typeof r.name=="string"){let n=D(r);r.name={type:"Identifier",name:r.name,range:[n,n+r.name.length]}}break;case"TopicReference":a.extra={...a.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":{let{exported:n}=r;if(e==="meriyah"&&(n==null?void 0:n.type)==="Identifier"){let o=s.slice(D(n),B(n));(o.startsWith('"')||o.startsWith("'"))&&(r.exported={...r.exported,type:"Literal",value:r.exported.name,raw:o})}break}case"TSUnionType":case"TSIntersectionType":if(r.types.length===1)return r.types[0];break}}),Y(a.comments)){let r=vt(!1,a.comments,-1);for(let n=a.comments.length-2;n>=0;n--){let o=a.comments[n];B(o)===D(r)&&Ae(o)&&Ae(r)&&Lt(o)&&Lt(r)&&(a.comments.splice(n+1,1),o.value+="*//*"+r.value,o.range=[D(o),B(r)]),r=o}}return a.type==="Program"&&(a.range=[0,s.length]),a;function i(r,n){s[B(n)]!==";"&&(r.range=[D(r),B(n)])}}function Fs(a){return a.type==="LogicalExpression"&&a.right.type==="LogicalExpression"&&a.operator===a.right.operator}function Ot(a){return Fs(a)?Ot({type:"LogicalExpression",operator:a.operator,left:Ot({type:"LogicalExpression",operator:a.operator,left:a.left,right:a.right.left,range:[D(a.left),B(a.right.left)]}),right:a.right.right,range:[D(a),B(a)]}):a}var Bs=ta;function sa(a){let{filepath:t}=a;if(t){if(t=t.toLowerCase(),t.endsWith(".cjs"))return"script";if(t.endsWith(".mjs"))return"module"}}var Rs=sa;function ia(a,t){let{type:e="JsExpressionRoot",rootMarker:s,text:i}=t,{tokens:r,comments:n}=a;return delete a.tokens,delete a.comments,{tokens:r,comments:n,type:e,node:a,range:[0,i.length],rootMarker:s}}var Ve=ia;var he=a=>oe(la(a)),ra={sourceType:"module",allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","decimal","moduleBlocks","asyncDoExpressions","regexpUnicodeSets","destructuringPrivate","decoratorAutoAccessors","importReflection","explicitResourceManagement",["importAttributes",{deprecatedAssertSyntax:!0}]],tokens:!0,ranges:!0},aa=["recordAndTuple",{syntaxType:"hash"}],_s="v8intrinsic",Us=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"minimal"}],["pipelineOperator",{proposal:"fsharp"}]],R=(a,t=ra)=>({...t,plugins:[...t.plugins,...a]}),na=/@(?:no)?flow\b/;function oa(a,t){var i;if((i=t.filepath)!=null&&i.endsWith(".js.flow"))return!0;let e=_e(a);e&&(a=a.slice(e.length));let s=bs(a,0);return s!==!1&&(a=a.slice(0,s)),na.test(a)}function ha(a,t,e){let s=a(t,e),i=s.errors.find(r=>!ca.has(r.reasonCode));if(i)throw i;return s}function la({isExpression:a=!1,optionsCombinations:t}){return(e,s={})=>{if((s.parser==="babel"||s.parser==="__babel_estree")&&oa(e,s))return s.parser="babel-flow",qs.parse(e,s);let i=t;(s.__babelSourceType??Rs(s))==="script"&&(i=i.map(l=>({...l,sourceType:"script"}))),/#[[{]/.test(e)&&(i=i.map(l=>R([aa],l)));let n=/%[A-Z]/.test(e);e.includes("|>")?i=(n?[...Us,_s]:Us).flatMap(c=>i.map(u=>R([c],u))):n&&(i=i.map(l=>R([_s],l)));let o=a?ze.parseExpression:ze.parse,h;try{h=ms(i.map(l=>()=>ha(o,e,l)))}catch({errors:[l]}){throw be(l)}return a&&(h=Ve(h,{text:e,rootMarker:s.rootMarker})),Bs(h,{parser:"babel",text:e})}}var ca=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","EmptyTypeArguments","EmptyTypeParameters","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","MixedLabeledAndUnlabeledElements","DuplicateAccessibilityModifier","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","LineTerminatorBeforeArrow","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","OptionalBindingPattern","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","DeclareFunctionHasImplementation","ConstructorClassField","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport"]),Ks=[R(["jsx"])],js=he({optionsCombinations:Ks}),$s=he({optionsCombinations:[R(["jsx","typescript"]),R(["typescript"])]}),Vs=he({isExpression:!0,optionsCombinations:[R(["jsx"])]}),zs=he({isExpression:!0,optionsCombinations:[R(["typescript"])]}),qs=he({optionsCombinations:[R(["jsx",["flow",{all:!0,enums:!0}],"flowComments"])]}),pa=he({optionsCombinations:Ks.map(a=>R(["estree"],a))}),Hs={babel:js,"babel-flow":qs,"babel-ts":$s,__js_expression:Vs,__ts_expression:zs,__vue_expression:Vs,__vue_ts_expression:zs,__vue_event_binding:js,__vue_ts_event_binding:$s,__babel_estree:pa};var Js=qe(kt(),1);function Xs(a={}){let{allowComments:t=!0}=a;return function(s){let i;try{i=(0,Js.parseExpression)(s,{tokens:!0,ranges:!0})}catch(r){throw(r==null?void 0:r.reasonCode)==="MissingPlugin"||(r==null?void 0:r.reasonCode)==="MissingOneOfPlugins"?be({message:"Unexpected token",loc:r.loc}):be(r)}if(!t&&Y(i.comments))throw H(i.comments[0],"Comment");return le(i),Ve(i,{type:"JsonRoot",text:s})}}function H(a,t){let[e,s]=[a.loc.start,a.loc.end].map(({line:i,column:r})=>({line:i,column:r+1}));return je(`${t} is not allowed in JSON.`,{loc:{start:e,end:s}})}function le(a){switch(a.type){case"ArrayExpression":for(let t of a.elements)t!==null&&le(t);return;case"ObjectExpression":for(let t of a.properties)le(t);return;case"ObjectProperty":if(a.computed)throw H(a.key,"Computed key");if(a.shorthand)throw H(a.key,"Shorthand property");a.key.type!=="Identifier"&&le(a.key),le(a.value);return;case"UnaryExpression":{let{operator:t,argument:e}=a;if(t!=="+"&&t!=="-")throw H(a,`Operator '${a.operator}'`);if(e.type==="NumericLiteral"||e.type==="Identifier"&&(e.name==="Infinity"||e.name==="NaN"))return;throw H(e,`Operator '${t}' before '${e.type}'`)}case"Identifier":if(a.name!=="Infinity"&&a.name!=="NaN"&&a.name!=="undefined")throw H(a,`Identifier '${a.name}'`);return;case"TemplateLiteral":if(Y(a.expressions))throw H(a.expressions[0],"'TemplateLiteral' with expression");for(let t of a.quasis)le(t);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw H(a,`'${a.type}'`)}}var Ws=Xs(),ua={json:oe({parse:Ws,hasPragma(){return!0}}),json5:oe(Ws),"json-stringify":oe({parse:Xs({allowComments:!1}),astFormat:"estree-json"})},Gs=ua;var da={...Hs,...Gs};var Kn=Ft;export{Kn as default,da as parsers}; diff --git a/node_modules/prettier/plugins/estree.d.ts b/node_modules/prettier/plugins/estree.d.ts index e69de29..cb0ff5c 100644 --- a/node_modules/prettier/plugins/estree.d.ts +++ b/node_modules/prettier/plugins/estree.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/prettier/plugins/estree.js b/node_modules/prettier/plugins/estree.js index 9f5d69b..ca7e235 100644 --- a/node_modules/prettier/plugins/estree.js +++ b/node_modules/prettier/plugins/estree.js @@ -1,35 +1,35 @@ -(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.estree=e()}})(function(){"use strict";var ua=Object.create;var pr=Object.defineProperty;var ia=Object.getOwnPropertyDescriptor;var aa=Object.getOwnPropertyNames;var oa=Object.getPrototypeOf,pa=Object.prototype.hasOwnProperty;var ca=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),cr=(e,t)=>{for(var r in t)pr(e,r,{get:t[r],enumerable:!0})},Bs=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of aa(t))!pa.call(e,s)&&s!==r&&pr(e,s,{get:()=>t[s],enumerable:!(n=ia(t,s))||n.enumerable});return e};var la=(e,t,r)=>(r=e!=null?ua(oa(e)):{},Bs(t||!e||!e.__esModule?pr(r,"default",{value:e,enumerable:!0}):r,e)),ma=e=>Bs(pr({},"__esModule",{value:!0}),e);var bs=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var nt=(e,t,r)=>(bs(e,t,"read from private field"),r?r.call(e):t.get(e)),Ps=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},ks=(e,t,r,n)=>(bs(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Hi=ca(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.extract=el;ht.parse=rl;ht.parseWithComments=Vi;ht.print=nl;ht.strip=tl;var Hc=/\*\/$/,Kc=/^\/\*\*?/,Xi=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,zc=/(^|\s+)\/\/([^\r\n]*)/g,qi=/^(\r?\n)+/,Qc=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,Wi=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,Zc=/(\r?\n|^) *\* ?/g,$i=[];function el(e){let t=e.match(Xi);return t?t[0].trimLeft():""}function tl(e){let t=e.match(Xi);return t&&t[0]?e.substring(t[0].length):e}function rl(e){return Vi(e).pragmas}function Vi(e){let t=` +(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.estree=e()}})(function(){"use strict";var ua=Object.create;var or=Object.defineProperty;var ia=Object.getOwnPropertyDescriptor;var aa=Object.getOwnPropertyNames;var oa=Object.getPrototypeOf,pa=Object.prototype.hasOwnProperty;var ca=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),pr=(e,t)=>{for(var r in t)or(e,r,{get:t[r],enumerable:!0})},Ss=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of aa(t))!pa.call(e,s)&&s!==r&&or(e,s,{get:()=>t[s],enumerable:!(n=ia(t,s))||n.enumerable});return e};var la=(e,t,r)=>(r=e!=null?ua(oa(e)):{},Ss(t||!e||!e.__esModule?or(r,"default",{value:e,enumerable:!0}):r,e)),ma=e=>Ss(or({},"__esModule",{value:!0}),e);var Bs=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var st=(e,t,r)=>(Bs(e,t,"read from private field"),r?r.call(e):t.get(e)),bs=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Ps=(e,t,r,n)=>(Bs(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Hi=ca(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.extract=el;ht.parse=rl;ht.parseWithComments=Vi;ht.print=nl;ht.strip=tl;var Hc=/\*\/$/,Kc=/^\/\*\*?/,Xi=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,zc=/(^|\s+)\/\/([^\r\n]*)/g,qi=/^(\r?\n)+/,Qc=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,Wi=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,Zc=/(\r?\n|^) *\* ?/g,$i=[];function el(e){let t=e.match(Xi);return t?t[0].trimLeft():""}function tl(e){let t=e.match(Xi);return t&&t[0]?e.substring(t[0].length):e}function rl(e){return Vi(e).pragmas}function Vi(e){let t=` `;e=e.replace(Kc,"").replace(Hc,"").replace(Zc,"$1");let r="";for(;r!==e;)r=e,e=e.replace(Qc,`${t}$1 $2${t}`);e=e.replace(qi,"").trimRight();let n=Object.create(null),s=e.replace(Wi,"").replace(qi,"").trimRight(),u;for(;u=Wi.exec(e);){let i=u[2].replace(zc,"");typeof n[u[1]]=="string"||Array.isArray(n[u[1]])?n[u[1]]=$i.concat(n[u[1]],i):n[u[1]]=i}return{comments:s,pragmas:n}}function nl({comments:e="",pragmas:t={}}){let r=` -`,n="/**",s=" *",u=" */",i=Object.keys(t),a=i.map(p=>Yi(p,t[p])).reduce((p,m)=>p.concat(m),[]).map(p=>`${s} ${p}${r}`).join("");if(!e){if(i.length===0)return"";if(i.length===1&&!Array.isArray(t[i[0]])){let p=t[i[0]];return`${n} ${Yi(i[0],p)[0]}${u}`}}let o=e.split(r).map(p=>`${s} ${p}`).join(r)+r;return n+r+(e?o:"")+(e&&i.length?s+r:"")+a+u}function Yi(e,t){return $i.concat(t).map(r=>`@${e} ${r}`.trim())}});var yl={};cr(yl,{languages:()=>Dl,options:()=>sa,printers:()=>ml});var hs={};cr(hs,{canAttachComment:()=>Wo,embed:()=>Ni,experimentalFeatures:()=>il,getCommentChildNodes:()=>Yo,getVisitorKeys:()=>Fr,handleComments:()=>Ir,insertPragma:()=>zi,isBlockComment:()=>ae,isGap:()=>Xo,massageAstNode:()=>Gi,print:()=>Ii,printComment:()=>xu,willPrintOwnComments:()=>Qn});function Da(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:s,locEnd:u,[Symbol.for("printedComments")]:i}=t,{node:a}=e,o=s(a),p=u(a);for(let m of n)s(m)>=o&&u(m)<=p&&i.add(m);return r.slice(o,p)}var Is=Da;var Ke="string",je="array",ze="cursor",Me="indent",Re="align",Qe="trim",ue="group",De="fill",Fe="if-break",Je="indent-if-break",Ne="line-suffix",Ue="line-suffix-boundary",ie="line",be="label",Pe="break-parent",lr=new Set([ze,Me,Re,Qe,ue,De,Fe,Je,Ne,Ue,ie,be,Pe]);function ya(e){if(typeof e=="string")return Ke;if(Array.isArray(e))return je;if(!e)return;let{type:t}=e;if(lr.has(t))return t}var Ze=ya;var fa=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function Ea(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', -Expected it to be 'string' or 'object'.`;if(Ze(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=fa([...lr].map(s=>`'${s}'`));return`Unexpected doc.type '${e.type}'. -Expected it to be ${n}.`}var hn=class extends Error{name="InvalidDocError";constructor(t){super(Ea(t)),this.doc=t}},ct=hn;var Ls={};function Fa(e,t,r,n){let s=[e];for(;s.length>0;){let u=s.pop();if(u===Ls){r(s.pop());continue}r&&s.push(u,Ls);let i=Ze(u);if(!i)throw new ct(u);if((t==null?void 0:t(u))!==!1)switch(i){case je:case De:{let a=i===je?u:u.parts;for(let o=a.length,p=o-1;p>=0;--p)s.push(a[p]);break}case Fe:s.push(u.flatContents,u.breakContents);break;case ue:if(n&&u.expandedStates)for(let a=u.expandedStates.length,o=a-1;o>=0;--o)s.push(u.expandedStates[o]);else s.push(u.contents);break;case Re:case Me:case Je:case be:case Ne:s.push(u.contents);break;case Ke:case ze:case Qe:case Ue:case ie:case Pe:break;default:throw new ct(u)}}}var Sn=Fa;var ws=()=>{},Ge=ws,mr=ws;function E(e){return Ge(e),{type:Me,contents:e}}function ye(e,t){return Ge(t),{type:Re,contents:t,n:e}}function D(e,t={}){return Ge(e),mr(t.expandedStates,!0),{type:ue,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Os(e){return ye(Number.NEGATIVE_INFINITY,e)}function vs(e){return ye(-1,e)}function qe(e,t){return D(e[0],{...t,expandedStates:e})}function St(e){return mr(e),{type:De,parts:e}}function b(e,t="",r={}){return Ge(e),t!==""&&Ge(t),{type:Fe,breakContents:e,flatContents:t,groupId:r.groupId}}function lt(e,t){return Ge(e),{type:Je,contents:e,groupId:t.groupId,negate:t.negate}}function Bn(e){return Ge(e),{type:Ne,contents:e}}var de={type:Ue},Ae={type:Pe};var bn={type:ie,hard:!0},Ca={type:ie,hard:!0,literal:!0},A={type:ie},F={type:ie,soft:!0},C=[bn,Ae],Dr=[Ca,Ae],Pn={type:ze};function B(e,t){Ge(e),mr(t);let r=[];for(let n=0;n0){for(let s=0;s{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},w=da;var yr=e=>{if(Array.isArray(e))return e;if(e.type!==De)throw new Error(`Expect doc to be 'array' or '${De}'.`);return e.parts};function st(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(u){if(r.has(u))return r.get(u);let i=s(u);return r.set(u,i),i}function s(u){switch(Ze(u)){case je:return t(u.map(n));case De:return t({...u,parts:u.parts.map(n)});case Fe:return t({...u,breakContents:n(u.breakContents),flatContents:n(u.flatContents)});case ue:{let{expandedStates:i,contents:a}=u;return i?(i=i.map(n),a=i[0]):a=n(a),t({...u,contents:a,expandedStates:i})}case Re:case Me:case Je:case be:case Ne:return t({...u,contents:n(u.contents)});case Ke:case ze:case Qe:case Ue:case ie:case Pe:return t(u);default:throw new ct(u)}}}function Ms(e,t,r){let n=r,s=!1;function u(i){if(s)return!1;let a=t(i);a!==void 0&&(s=!0,n=a)}return Sn(e,u),n}function Aa(e){if(e.type===ue&&e.break||e.type===ie&&e.hard||e.type===Pe)return!0}function K(e){return Ms(e,Aa,!1)}function js(e){if(e.length>0){let t=w(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Rs(e){let t=new Set,r=[];function n(u){if(u.type===Pe&&js(r),u.type===ue){if(r.push(u),t.has(u))return!1;t.add(u)}}function s(u){u.type===ue&&r.pop().break&&js(r)}Sn(e,n,s,!0)}function Ta(e){return e.type===ie&&!e.hard?e.soft?"":" ":e.type===Fe?e.flatContents:e}function Ut(e){return st(e,Ta)}function xa(e){switch(Ze(e)){case De:if(e.parts.every(t=>t===""))return"";break;case ue:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===ue&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Re:case Me:case Je:case Ne:if(!e.contents)return"";break;case Fe:if(!e.flatContents&&!e.breakContents)return"";break;case je:{let t=[];for(let r of e){if(!r)continue;let[n,...s]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof w(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...s)}return t.length===0?"":t.length===1?t[0]:t}case Ke:case ze:case Qe:case Ue:case ie:case be:case Pe:break;default:throw new ct(e)}return e}function Bt(e){return st(e,t=>xa(t))}function Te(e,t=Dr){return st(e,r=>typeof r=="string"?B(t,r.split(` -`)):r)}function ga(e){if(e.type===ie)return!0}function Js(e){return Ms(e,ga,!1)}function Gt(e,t){return e.type===be?{...e,contents:t(e.contents)}:t(e)}function ha(e){return Array.isArray(e)&&e.length>0}var P=ha;var Sa=/^[\$A-Z_a-z\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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B4\u08B6-\u08BD\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\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\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\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\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\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\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\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][\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\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\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*$/,Ba=e=>Sa.test(e),Ns=Ba;function ba(e){return e!==null&&typeof e=="object"}var Us=ba;function*Pa(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,s=u=>Us(u)&&n(u);for(let u of r(e)){let i=e[u];if(Array.isArray(i))for(let a of i)s(a)&&(yield a);else s(i)&&(yield i)}}function*ka(e,t){let r=[e];for(let n=0;n{let s=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:u}=t,i=r;for(;i>=0&&iYi(p,t[p])).reduce((p,m)=>p.concat(m),[]).map(p=>`${s} ${p}${r}`).join("");if(!e){if(i.length===0)return"";if(i.length===1&&!Array.isArray(t[i[0]])){let p=t[i[0]];return`${n} ${Yi(i[0],p)[0]}${u}`}}let o=e.split(r).map(p=>`${s} ${p}`).join(r)+r;return n+r+(e?o:"")+(e&&i.length?s+r:"")+a+u}function Yi(e,t){return $i.concat(t).map(r=>`@${e} ${r}`.trim())}});var Dl={};pr(Dl,{languages:()=>yl,options:()=>sa,printers:()=>ml});var gs={};pr(gs,{canAttachComment:()=>Wo,embed:()=>Ni,experimentalFeatures:()=>il,getCommentChildNodes:()=>Yo,getVisitorKeys:()=>Er,handleComments:()=>Kn,insertPragma:()=>zi,isBlockComment:()=>ae,isGap:()=>Xo,massageAstNode:()=>Gi,print:()=>Ii,printComment:()=>Tu,willPrintOwnComments:()=>zn});function ya(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:s,locEnd:u,[Symbol.for("printedComments")]:i}=t,{node:a}=e,o=s(a),p=u(a);for(let m of n)s(m)>=o&&u(m)<=p&&i.add(m);return r.slice(o,p)}var ks=ya;var Ke="string",je="array",ze="cursor",Me="indent",Re="align",Qe="trim",ue="group",ye="fill",Fe="if-break",Je="indent-if-break",Ne="line-suffix",Ue="line-suffix-boundary",ie="line",be="label",Pe="break-parent",cr=new Set([ze,Me,Re,Qe,ue,ye,Fe,Je,Ne,Ue,ie,be,Pe]);function Da(e){if(typeof e=="string")return Ke;if(Array.isArray(e))return je;if(!e)return;let{type:t}=e;if(cr.has(t))return t}var Ze=Da;var fa=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function Ea(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', +Expected it to be 'string' or 'object'.`;if(Ze(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=fa([...cr].map(s=>`'${s}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${n}.`}var xn=class extends Error{name="InvalidDocError";constructor(t){super(Ea(t)),this.doc=t}},lt=xn;var Is={};function Fa(e,t,r,n){let s=[e];for(;s.length>0;){let u=s.pop();if(u===Is){r(s.pop());continue}r&&s.push(u,Is);let i=Ze(u);if(!i)throw new lt(u);if((t==null?void 0:t(u))!==!1)switch(i){case je:case ye:{let a=i===je?u:u.parts;for(let o=a.length,p=o-1;p>=0;--p)s.push(a[p]);break}case Fe:s.push(u.flatContents,u.breakContents);break;case ue:if(n&&u.expandedStates)for(let a=u.expandedStates.length,o=a-1;o>=0;--o)s.push(u.expandedStates[o]);else s.push(u.contents);break;case Re:case Me:case Je:case be:case Ne:s.push(u.contents);break;case Ke:case ze:case Qe:case Ue:case ie:case Pe:break;default:throw new lt(u)}}}var gn=Fa;var Ls=()=>{},Ge=Ls,lr=Ls;function E(e){return Ge(e),{type:Me,contents:e}}function De(e,t){return Ge(t),{type:Re,contents:t,n:e}}function y(e,t={}){return Ge(e),lr(t.expandedStates,!0),{type:ue,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function ws(e){return De(Number.NEGATIVE_INFINITY,e)}function Os(e){return De(-1,e)}function qe(e,t){return y(e[0],{...t,expandedStates:e})}function St(e){return lr(e),{type:ye,parts:e}}function P(e,t="",r={}){return Ge(e),t!==""&&Ge(t),{type:Fe,breakContents:e,flatContents:t,groupId:r.groupId}}function mt(e,t){return Ge(e),{type:Je,contents:e,groupId:t.groupId,negate:t.negate}}function hn(e){return Ge(e),{type:Ne,contents:e}}var Ae={type:Ue},Te={type:Pe};var Sn={type:ie,hard:!0},Ca={type:ie,hard:!0,literal:!0},A={type:ie},F={type:ie,soft:!0},C=[Sn,Te],mr=[Ca,Te],Bn={type:ze};function B(e,t){Ge(e),lr(t);let r=[];for(let n=0;n0){for(let s=0;s{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},w=da;var yr=e=>{if(Array.isArray(e))return e;if(e.type!==ye)throw new Error(`Expect doc to be 'array' or '${ye}'.`);return e.parts};function ut(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(u){if(r.has(u))return r.get(u);let i=s(u);return r.set(u,i),i}function s(u){switch(Ze(u)){case je:return t(u.map(n));case ye:return t({...u,parts:u.parts.map(n)});case Fe:return t({...u,breakContents:n(u.breakContents),flatContents:n(u.flatContents)});case ue:{let{expandedStates:i,contents:a}=u;return i?(i=i.map(n),a=i[0]):a=n(a),t({...u,contents:a,expandedStates:i})}case Re:case Me:case Je:case be:case Ne:return t({...u,contents:n(u.contents)});case Ke:case ze:case Qe:case Ue:case ie:case Pe:return t(u);default:throw new lt(u)}}}function js(e,t,r){let n=r,s=!1;function u(i){if(s)return!1;let a=t(i);a!==void 0&&(s=!0,n=a)}return gn(e,u),n}function Aa(e){if(e.type===ue&&e.break||e.type===ie&&e.hard||e.type===Pe)return!0}function K(e){return js(e,Aa,!1)}function _s(e){if(e.length>0){let t=w(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Ms(e){let t=new Set,r=[];function n(u){if(u.type===Pe&&_s(r),u.type===ue){if(r.push(u),t.has(u))return!1;t.add(u)}}function s(u){u.type===ue&&r.pop().break&&_s(r)}gn(e,n,s,!0)}function Ta(e){return e.type===ie&&!e.hard?e.soft?"":" ":e.type===Fe?e.flatContents:e}function Ut(e){return ut(e,Ta)}function xa(e){switch(Ze(e)){case ye:if(e.parts.every(t=>t===""))return"";break;case ue:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===ue&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Re:case Me:case Je:case Ne:if(!e.contents)return"";break;case Fe:if(!e.flatContents&&!e.breakContents)return"";break;case je:{let t=[];for(let r of e){if(!r)continue;let[n,...s]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof w(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...s)}return t.length===0?"":t.length===1?t[0]:t}case Ke:case ze:case Qe:case Ue:case ie:case be:case Pe:break;default:throw new lt(e)}return e}function Bt(e){return ut(e,t=>xa(t))}function xe(e,t=mr){return ut(e,r=>typeof r=="string"?B(t,r.split(` +`)):r)}function ga(e){if(e.type===ie)return!0}function Rs(e){return js(e,ga,!1)}function Gt(e,t){return e.type===be?{...e,contents:t(e.contents)}:t(e)}function ha(e){return Array.isArray(e)&&e.length>0}var b=ha;var Sa=/^[\$A-Z_a-z\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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B4\u08B6-\u08BD\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\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\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\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\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\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\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\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][\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\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\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*$/,Ba=e=>Sa.test(e),Js=Ba;function ba(e){return e!==null&&typeof e=="object"}var Ns=ba;function*Pa(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,s=u=>Ns(u)&&n(u);for(let u of r(e)){let i=e[u];if(Array.isArray(i))for(let a of i)s(a)&&(yield a);else s(i)&&(yield i)}}function*ka(e,t){let r=[e];for(let n=0;n{let s=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:u}=t,i=r;for(;i>=0&&i/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;var Xs={eastAsianWidth(e){var t=e.charCodeAt(0),r=e.length==2?e.charCodeAt(1):0,n=t;return 55296<=t&&t<=56319&&56320<=r&&r<=57343&&(t&=1023,r&=1023,n=t<<10|r,n+=65536),n==12288||65281<=n&&n<=65376||65504<=n&&n<=65510?"F":4352<=n&&n<=4447||4515<=n&&n<=4519||4602<=n&&n<=4607||9001<=n&&n<=9002||11904<=n&&n<=11929||11931<=n&&n<=12019||12032<=n&&n<=12245||12272<=n&&n<=12283||12289<=n&&n<=12350||12353<=n&&n<=12438||12441<=n&&n<=12543||12549<=n&&n<=12589||12593<=n&&n<=12686||12688<=n&&n<=12730||12736<=n&&n<=12771||12784<=n&&n<=12830||12832<=n&&n<=12871||12880<=n&&n<=13054||13056<=n&&n<=19903||19968<=n&&n<=42124||42128<=n&&n<=42182||43360<=n&&n<=43388||44032<=n&&n<=55203||55216<=n&&n<=55238||55243<=n&&n<=55291||63744<=n&&n<=64255||65040<=n&&n<=65049||65072<=n&&n<=65106||65108<=n&&n<=65126||65128<=n&&n<=65131||110592<=n&&n<=110593||127488<=n&&n<=127490||127504<=n&&n<=127546||127552<=n&&n<=127560||127568<=n&&n<=127569||131072<=n&&n<=194367||177984<=n&&n<=196605||196608<=n&&n<=262141?"W":"N"}};var _a=/[^\x20-\x7F]/;function ja(e){if(!e)return 0;if(!_a.test(e))return e.length;e=e.replace(Ys()," ");let t=0;for(let r of e){let n=r.codePointAt(0);if(n<=31||n>=127&&n<=159||n>=768&&n<=879)continue;let s=Xs.eastAsianWidth(r);t+=s==="F"||s==="W"?2:1}return t}var tt=ja;function U(e){var n;let t=e.range?e.range[0]:e.start,r=((n=e.declaration)==null?void 0:n.decorators)??e.decorators;return P(r)?Math.min(U(r[0]),t):t}function O(e){return e.range?e.range[1]:e.end}function mt(e,t){let r=U(e);return Number.isInteger(r)&&r===U(t)}function Ma(e,t){let r=O(e);return Number.isInteger(r)&&r===O(t)}function $s(e,t){return mt(e,t)&&Ma(e,t)}var qt=null;function Wt(e){if(qt!==null&&typeof qt.property){let t=qt;return qt=Wt.prototype=null,t}return qt=Wt.prototype=e??Object.create(null),new Wt}var Ra=10;for(let e=0;e<=Ra;e++)Wt();function kn(e){return Wt(e)}function Ja(e,t="type"){kn(e);function r(n){let s=n[t],u=e[s];if(!Array.isArray(u))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return u}return r}var Er=Ja;var Vs={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ExportAllDeclaration:["source","attributes","assertions","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes","assertions"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes","assertions"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","parameter"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ImportExpression:["source","attributes"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareEnum:["id","body"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]};var Na=Er(Vs),Fr=Na;function Ua(e){return e=new Set(e),t=>e.has(t==null?void 0:t.type)}var j=Ua;var Ga=j(["Block","CommentBlock","MultiLine"]),ae=Ga;function qa(e,t){let r=t.split(".");for(let n=r.length-1;n>=0;n--){let s=r[n];if(n===0)return e.type==="Identifier"&&e.name===s;if(e.type!=="MemberExpression"||e.optional||e.computed||e.property.type!=="Identifier"||e.property.name!==s)return!1;e=e.object}}function Wa(e,t){return t.some(r=>qa(e,r))}var Hs=Wa;var Ya=j(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),Cr=Ya;function Xa({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}var dr=Xa;function Xt(e,t){return t(e)||Gs(e,{getVisitorKeys:Fr,predicate:t})}function Lt(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||k(e)||J(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||Le(e)||e.type==="TSNonNullExpression"||e.type==="ChainExpression"}function Qs(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function Tr(e){if(e.expressions)return["expressions",0];if(e.left)return["left"];if(e.test)return["test"];if(e.object)return["object"];if(e.callee)return["callee"];if(e.tag)return["tag"];if(e.argument)return["argument"];if(e.expression)return["expression"];throw new Error("Unexpected node has no left side.")}var $t=j(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),Zs=j(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),G=j(["ArrayExpression","TupleExpression"]),Z=j(["ObjectExpression","RecordExpression"]);function ge(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function xr(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&ge(e.argument)}function ee(e){return e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"}function vn(e){return e.type==="RegExpLiteral"||e.type==="Literal"&&!!e.regex}var ke=j(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),It=j(["FunctionExpression","ArrowFunctionExpression"]);function $a(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function In(e){return k(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var V=j(["JSXElement","JSXFragment"]);function _n(e){return e.kind==="get"||e.kind==="set"}function jn(e){return _n(e)||mt(e,e.value)}function gr(e){return(e.type==="ObjectTypeProperty"||e.type==="ObjectTypeInternalSlot")&&e.value.type==="FunctionTypeAnnotation"&&!e.static&&!jn(e)}function eu(e){return(e.type==="TypeAnnotation"||e.type==="TSTypeAnnotation")&&e.typeAnnotation.type==="FunctionTypeAnnotation"&&!e.static&&!mt(e,e.typeAnnotation)}var ce=j(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function Dt(e){return J(e)||e.type==="BindExpression"&&!!e.object}var Va=j(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function wt(e){return dr(e)||Cr(e)||Va(e)||(e.type==="GenericTypeAnnotation"||e.type==="TSTypeReference")&&!e.typeParameters}function Ha(e){let t=/^(?:before|after)(?:Each|All)$/;return e.callee.type==="Identifier"&&e.arguments.length===1&&t.test(e.callee.name)}var Ka=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.step","test.describe","test.describe.only","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function za(e){return Hs(e,Ka)}function Ct(e,t){if(e.type!=="CallExpression")return!1;if(e.arguments.length===1){if(In(e)&&t&&Ct(t))return It(e.arguments[0]);if(Ha(e))return In(e.arguments[0])}else if((e.arguments.length===2||e.arguments.length===3)&&(e.arguments[0].type==="TemplateLiteral"||ee(e.arguments[0]))&&za(e.callee))return e.arguments[2]&&!ge(e.arguments[2])?!1:(e.arguments.length===2?It(e.arguments[1]):$a(e.arguments[1])&&Y(e.arguments[1]).length<=1)||In(e.arguments[1]);return!1}var k=j(["CallExpression","OptionalCallExpression"]),J=j(["MemberExpression","OptionalMemberExpression"]);function tu(e){let t="expressions";e.type==="TSTemplateLiteralType"&&(t="types");let r=e[t];return r.length===0?!1:r.every(n=>{if(d(n))return!1;if(n.type==="Identifier"||n.type==="ThisExpression")return!0;if(n.type==="ChainExpression"&&(n=n.expression),J(n)){let s=n;for(;J(s);)if(s.property.type!=="Identifier"&&s.property.type!=="Literal"&&s.property.type!=="StringLiteral"&&s.property.type!=="NumericLiteral"||(s=s.object,d(s)))return!1;return s.type==="Identifier"||s.type==="ThisExpression"}return!1})}function Ie(e,t){return V(t)?dt(t):d(t,x.Leading,r=>z(e,O(r)))}function Mn(e,t){return t.parser!=="json"&&ee(e.key)&&oe(e.key).slice(1,-1)===e.key.value&&(Ns(e.key.value)&&!(t.parser==="babel-ts"&&e.type==="ClassProperty"||t.parser==="typescript"&&e.type==="PropertyDefinition")||Rn(e.key.value)&&String(Number(e.key.value))===e.key.value&&(t.parser==="babel"||t.parser==="acorn"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree"))}function Rn(e){return/^(?:\d+|\d+\.\d+)$/.test(e)}function Ks(e){return e.quasis.some(t=>t.value.raw.includes(` -`))}function hr(e,t){return(e.type==="TemplateLiteral"&&Ks(e)||e.type==="TaggedTemplateExpression"&&Ks(e.quasi))&&!z(t,U(e),{backwards:!0})}function Sr(e){if(!d(e))return!1;let t=w(!1,Kt(e,x.Dangling),-1);return t&&!ae(t)}function ru(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(It(r)){if(t+=1,t>1)return!0}else if(k(r)){for(let n of r.arguments)if(It(n))return!0}return!1}function Br(e){let{node:t,parent:r,key:n}=e;return n==="callee"&&k(t)&&k(r)&&r.arguments.length>0&&t.arguments.length>r.arguments.length}var Qa=new Set(["!","-","+","~"]);function xe(e,t=2){if(t<=0)return!1;let r=n=>xe(n,t-1);if(vn(e))return tt(e.pattern??e.regex.pattern)<=5;if(e.type==="Literal"||e.type==="BigIntLiteral"||e.type==="DecimalLiteral"||e.type==="BooleanLiteral"||e.type==="NullLiteral"||e.type==="NumericLiteral"||e.type==="StringLiteral"||e.type==="Identifier"||e.type==="ThisExpression"||e.type==="Super"||e.type==="PrivateName"||e.type==="PrivateIdentifier"||e.type==="ArgumentPlaceholder"||e.type==="Import")return!0;if(e.type==="TemplateLiteral")return e.quasis.every(n=>!n.value.raw.includes(` -`))&&e.expressions.every(r);if(Z(e))return e.properties.every(n=>!n.computed&&(n.shorthand||n.value&&r(n.value)));if(G(e))return e.elements.every(n=>n===null||r(n));if(ut(e)){if(e.type==="ImportExpression"||xe(e.callee,t)){let n=he(e);return n.length<=t&&n.every(r)}return!1}return J(e)?xe(e.object,t)&&xe(e.property,t):e.type==="UnaryExpression"&&Qa.has(e.operator)||e.type==="UpdateExpression"?xe(e.argument,t):e.type==="TSNonNullExpression"?xe(e.expression,t):!1}function oe(e){var t;return((t=e.extra)==null?void 0:t.raw)??e.raw}function nu(e){return e}function le(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")}function re(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return re(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return re(e.object,t);case"TaggedTemplateExpression":return e.tag.type==="FunctionExpression"?!1:re(e.tag,t);case"CallExpression":case"OptionalCallExpression":return e.callee.type==="FunctionExpression"?!1:re(e.callee,t);case"ConditionalExpression":return re(e.test,t);case"UpdateExpression":return!e.prefix&&re(e.argument,t);case"BindExpression":return e.object&&re(e.object,t);case"SequenceExpression":return re(e.expressions[0],t);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":return re(e.expression,t);default:return t(e)}}var zs={"==":!0,"!=":!0,"===":!0,"!==":!0},Ar={"*":!0,"/":!0,"%":!0},On={">>":!0,">>>":!0,"<<":!0};function Vt(e,t){return!(Yt(t)!==Yt(e)||e==="**"||zs[e]&&zs[t]||t==="%"&&Ar[e]||e==="%"&&Ar[t]||t!==e&&Ar[t]&&Ar[e]||On[e]&&On[t])}var Za=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(r=>[r,t])));function Yt(e){return Za.get(e)}function su(e){return!!On[e]||e==="|"||e==="^"||e==="&"}function uu(e){var r;if(e.rest)return!0;let t=Y(e);return((r=w(!1,t,-1))==null?void 0:r.type)==="RestElement"}var Ln=new WeakMap;function Y(e){if(Ln.has(e))return Ln.get(e);let t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push(...e.parameters):Array.isArray(e.params)&&t.push(...e.params),e.rest&&t.push(e.rest),Ln.set(e,t),t}function iu(e,t){let{node:r}=e,n=0,s=u=>t(u,n++);r.this&&e.call(s,"this"),Array.isArray(r.parameters)?e.each(s,"parameters"):Array.isArray(r.params)&&e.each(s,"params"),r.rest&&e.call(s,"rest")}var wn=new WeakMap;function he(e){if(wn.has(e))return wn.get(e);let t=e.arguments;return e.type==="ImportExpression"&&(t=[e.source],e.attributes&&t.push(e.attributes)),wn.set(e,t),t}function br(e,t){let{node:r}=e;r.type==="ImportExpression"?(e.call(n=>t(n,0),"source"),r.attributes&&e.call(n=>t(n,1),"attributes")):e.each(t,"arguments")}function Jn(e,t){if(e.type==="ImportExpression"){if(t===0||t===(e.attributes?-2:-1))return"source";if(e.attributes&&(t===1||t===-1))return"attributes";throw new RangeError("Invalid argument index")}if(t<0&&(t=e.arguments.length+t),t<0||t>=e.arguments.length)throw new RangeError("Invalid argument index");return["arguments",t]}function Ht(e){return e.value.trim()==="prettier-ignore"&&!e.unignore}function dt(e){return(e==null?void 0:e.prettierIgnore)||d(e,x.PrettierIgnore)}var x={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},au=(e,t)=>{if(typeof e=="function"&&(t=e,e=0),e||t)return(r,n,s)=>!(e&x.Leading&&!r.leading||e&x.Trailing&&!r.trailing||e&x.Dangling&&(r.leading||r.trailing)||e&x.Block&&!ae(r)||e&x.Line&&!$t(r)||e&x.First&&n!==0||e&x.Last&&n!==s.length-1||e&x.PrettierIgnore&&!Ht(r)||t&&!t(r))};function d(e,t,r){if(!P(e==null?void 0:e.comments))return!1;let n=au(t,r);return n?e.comments.some(n):!0}function Kt(e,t,r){if(!Array.isArray(e==null?void 0:e.comments))return[];let n=au(t,r);return n?e.comments.filter(n):e.comments}var me=(e,{originalText:t})=>kt(t,O(e));function ut(e){return k(e)||e.type==="NewExpression"||e.type==="ImportExpression"}function fe(e){return e&&(e.type==="ObjectProperty"||e.type==="Property"&&!e.method&&e.kind==="init")}var zt=Symbol("ifWithoutBlockAndSameLineComment"),Le=j(["TSAsExpression","TSSatisfiesExpression"]);function Nn(e,t){var u,i,a,o,p,m,y;if(e.isRoot)return!1;let{node:r,key:n,parent:s}=e;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&no(r)&&Qt(e))return!0;if(eo(r))return!1;if(r.type==="Identifier"){if((u=r.extra)!=null&&u.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(r.name)||n==="left"&&(r.name==="async"&&!s.await||r.name==="let")&&s.type==="ForOfStatement")return!0;if(r.name==="let"){let c=(i=e.findAncestor(f=>f.type==="ForOfStatement"))==null?void 0:i.left;if(c&&re(c,f=>f===r))return!0}if(n==="object"&&r.name==="let"&&s.type==="MemberExpression"&&s.computed&&!s.optional){let c=e.findAncestor(l=>l.type==="ExpressionStatement"||l.type==="ForStatement"||l.type==="ForInStatement"),f=c?c.type==="ExpressionStatement"?c.expression:c.type==="ForStatement"?c.init:c.left:void 0;if(f&&re(f,l=>l===r))return!0}return!1}if(r.type==="ObjectExpression"||r.type==="FunctionExpression"||r.type==="ClassExpression"||r.type==="DoExpression"){let c=(a=e.findAncestor(f=>f.type==="ExpressionStatement"))==null?void 0:a.expression;if(c&&re(c,f=>f===r))return!0}if(r.type==="ObjectExpression"){let c=(o=e.findAncestor(f=>f.type==="ArrowFunctionExpression"))==null?void 0:o.body;if(c&&c.type!=="SequenceExpression"&&c.type!=="AssignmentExpression"&&re(c,f=>f===r))return!0}switch(s.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(n==="superClass"&&(r.type==="ArrowFunctionExpression"||r.type==="AssignmentExpression"||r.type==="AwaitExpression"||r.type==="BinaryExpression"||r.type==="ConditionalExpression"||r.type==="LogicalExpression"||r.type==="NewExpression"||r.type==="ObjectExpression"||r.type==="SequenceExpression"||r.type==="TaggedTemplateExpression"||r.type==="UnaryExpression"||r.type==="UpdateExpression"||r.type==="YieldExpression"||r.type==="TSNonNullExpression"||r.type==="ClassExpression"&&P(r.decorators)))return!0;break;case"ExportDefaultDeclaration":return ou(e,t)||r.type==="SequenceExpression";case"Decorator":if(n==="expression"){if(J(r)&&r.computed)return!0;let c=!1,f=!1,l=r;for(;l;)switch(l.type){case"MemberExpression":f=!0,l=l.object;break;case"CallExpression":if(f||c)return t.parser!=="typescript";c=!0,l=l.callee;break;case"Identifier":return!1;case"TaggedTemplateExpression":return t.parser!=="typescript";default:return!0}return!0}break;case"TypeAnnotation":if(e.match(void 0,void 0,(c,f)=>f==="returnType"&&c.type==="ArrowFunctionExpression")&&ro(r))return!0;break}switch(r.type){case"UpdateExpression":if(s.type==="UnaryExpression")return r.prefix&&(r.operator==="++"&&s.operator==="+"||r.operator==="--"&&s.operator==="-");case"UnaryExpression":switch(s.type){case"UnaryExpression":return r.operator===s.operator&&(r.operator==="+"||r.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"BinaryExpression":return n==="left"&&s.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(s.type==="UpdateExpression"||r.operator==="in"&&to(e))return!0;if(r.operator==="|>"&&((p=r.extra)!=null&&p.parenthesized)){let c=e.grandparent;if(c.type==="BinaryExpression"&&c.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"LogicalExpression":switch(s.type){case"TSAsExpression":case"TSSatisfiesExpression":return!Le(r);case"ConditionalExpression":return Le(r);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return n==="callee";case"ClassExpression":case"ClassDeclaration":return n==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"AssignmentExpression":case"AssignmentPattern":return n==="left"&&(r.type==="TSTypeAssertion"||Le(r));case"LogicalExpression":if(r.type==="LogicalExpression")return s.operator!==r.operator;case"BinaryExpression":{let{operator:c,type:f}=r;if(!c&&f!=="TSTypeAssertion")return!0;let l=Yt(c),h=s.operator,g=Yt(h);return g>l||n==="right"&&g===l||g===l&&!Vt(h,c)?!0:g");default:return!1}case"TSFunctionType":if(e.match(c=>c.type==="TSFunctionType",(c,f)=>f==="typeAnnotation"&&c.type==="TSTypeAnnotation",(c,f)=>f==="returnType"&&c.type==="ArrowFunctionExpression"))return!0;case"TSConditionalType":case"TSConstructorType":if(n==="extendsType"&&s.type==="TSConditionalType"){if(r.type==="TSConditionalType")return!0;let{typeAnnotation:c}=r.returnType||r.typeAnnotation;if(c.type==="TSTypePredicate"&&c.typeAnnotation&&(c=c.typeAnnotation.typeAnnotation),c.type==="TSInferType"&&c.typeParameter.constraint)return!0}if(n==="checkType"&&s.type==="TSConditionalType")return!0;case"TSUnionType":case"TSIntersectionType":if((s.type==="TSUnionType"||s.type==="TSIntersectionType")&&s.types.length>1&&(!r.types||r.types.length>1))return!0;case"TSInferType":if(r.type==="TSInferType"&&s.type==="TSRestType")return!1;case"TSTypeOperator":return s.type==="TSArrayType"||s.type==="TSOptionalType"||s.type==="TSRestType"||n==="objectType"&&s.type==="TSIndexedAccessType"||s.type==="TSTypeOperator"||s.type==="TSTypeAnnotation"&&e.grandparent.type.startsWith("TSJSDoc");case"TSTypeQuery":return n==="objectType"&&s.type==="TSIndexedAccessType"||n==="elementType"&&s.type==="TSArrayType";case"TypeofTypeAnnotation":return n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType")||n==="elementType"&&s.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return s.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return s.type==="ArrayTypeAnnotation"||s.type==="NullableTypeAnnotation"||s.type==="IntersectionTypeAnnotation"||s.type==="UnionTypeAnnotation"||n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType");case"InferTypeAnnotation":case"NullableTypeAnnotation":return s.type==="ArrayTypeAnnotation"||n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType");case"FunctionTypeAnnotation":{if(e.match(void 0,(f,l)=>l==="typeAnnotation"&&f.type==="TypeAnnotation",(f,l)=>l==="returnType"&&f.type==="ArrowFunctionExpression")||e.match(void 0,(f,l)=>l==="typeAnnotation"&&f.type==="TypePredicate",(f,l)=>l==="typeAnnotation"&&f.type==="TypeAnnotation",(f,l)=>l==="returnType"&&f.type==="ArrowFunctionExpression"))return!0;let c=s.type==="NullableTypeAnnotation"?e.grandparent:s;return c.type==="UnionTypeAnnotation"||c.type==="IntersectionTypeAnnotation"||c.type==="ArrayTypeAnnotation"||n==="objectType"&&(c.type==="IndexedAccessType"||c.type==="OptionalIndexedAccessType")||n==="checkType"&&s.type==="ConditionalTypeAnnotation"||n==="extendsType"&&s.type==="ConditionalTypeAnnotation"&&r.returnType.type==="InferTypeAnnotation"&&r.returnType.typeParameter.bound||c.type==="NullableTypeAnnotation"||s.type==="FunctionTypeParam"&&s.name===null&&Y(r).some(f=>{var l;return((l=f.typeAnnotation)==null?void 0:l.type)==="NullableTypeAnnotation"})}case"ConditionalTypeAnnotation":if(n==="extendsType"&&s.type==="ConditionalTypeAnnotation"&&r.type==="ConditionalTypeAnnotation"||n==="checkType"&&s.type==="ConditionalTypeAnnotation")return!0;case"OptionalIndexedAccessType":return n==="objectType"&&s.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof r.value=="string"&&s.type==="ExpressionStatement"&&!s.directive){let c=e.grandparent;return c.type==="Program"||c.type==="BlockStatement"}return n==="object"&&s.type==="MemberExpression"&&typeof r.value=="number";case"AssignmentExpression":{let c=e.grandparent;return n==="body"&&s.type==="ArrowFunctionExpression"?!0:n==="key"&&(s.type==="ClassProperty"||s.type==="PropertyDefinition")&&s.computed||(n==="init"||n==="update")&&s.type==="ForStatement"?!1:s.type==="ExpressionStatement"?r.left.type==="ObjectPattern":!(n==="key"&&s.type==="TSPropertySignature"||s.type==="AssignmentExpression"||s.type==="SequenceExpression"&&c.type==="ForStatement"&&(c.init===s||c.update===s)||n==="value"&&s.type==="Property"&&c.type==="ObjectPattern"&&c.properties.includes(s)||s.type==="NGChainedExpression")}case"ConditionalExpression":switch(s.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return n==="test";case"MemberExpression":case"OptionalMemberExpression":return n==="object";default:return!1}case"FunctionExpression":switch(s.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(s.type){case"BinaryExpression":return s.operator!=="|>"||((m=r.extra)==null?void 0:m.parenthesized);case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return n==="test";default:return!1}case"ClassExpression":switch(s.type){case"NewExpression":return n==="callee";default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":case"CallExpression":case"MemberExpression":if(so(e))return!0;case"TaggedTemplateExpression":case"TSNonNullExpression":if(n==="callee"&&(s.type==="BindExpression"||s.type==="NewExpression")){let c=r;for(;c;)switch(c.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":c=c.object;break;case"TaggedTemplateExpression":c=c.tag;break;case"TSNonNullExpression":c=c.expression;break;default:return!1}}return!1;case"BindExpression":return n==="callee"&&(s.type==="BindExpression"||s.type==="NewExpression")||n==="object"&&J(s);case"NGPipeExpression":return!(s.type==="NGRoot"||s.type==="NGMicrosyntaxExpression"||s.type==="ObjectProperty"&&!((y=r.extra)!=null&&y.parenthesized)||G(s)||n==="arguments"&&k(s)||n==="right"&&s.type==="NGPipeExpression"||n==="property"&&s.type==="MemberExpression"||s.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return n==="callee"||n==="left"&&s.type==="BinaryExpression"&&s.operator==="<"||!G(s)&&s.type!=="ArrowFunctionExpression"&&s.type!=="AssignmentExpression"&&s.type!=="AssignmentPattern"&&s.type!=="BinaryExpression"&&s.type!=="NewExpression"&&s.type!=="ConditionalExpression"&&s.type!=="ExpressionStatement"&&s.type!=="JsExpressionRoot"&&s.type!=="JSXAttribute"&&s.type!=="JSXElement"&&s.type!=="JSXExpressionContainer"&&s.type!=="JSXFragment"&&s.type!=="LogicalExpression"&&!k(s)&&!fe(s)&&s.type!=="ReturnStatement"&&s.type!=="ThrowStatement"&&s.type!=="TypeCastExpression"&&s.type!=="VariableDeclarator"&&s.type!=="YieldExpression";case"TSInstantiationExpression":return n==="object"&&J(s)}return!1}var eo=j(["BlockStatement","BreakStatement","ClassBody","ClassDeclaration","ClassMethod","ClassProperty","PropertyDefinition","ClassPrivateProperty","ContinueStatement","DebuggerStatement","DeclareClass","DeclareExportAllDeclaration","DeclareExportDeclaration","DeclareFunction","DeclareInterface","DeclareModule","DeclareModuleExports","DeclareVariable","DeclareEnum","DoWhileStatement","EnumDeclaration","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","IfStatement","ImportDeclaration","InterfaceDeclaration","LabeledStatement","MethodDefinition","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSNamespaceExportDeclaration","TypeAlias","VariableDeclaration","WhileStatement","WithStatement"]);function to(e){let t=0,{node:r}=e;for(;r;){let n=e.getParentNode(t++);if((n==null?void 0:n.type)==="ForStatement"&&n.init===r)return!0;r=n}return!1}function ro(e){return Xt(e,t=>t.type==="ObjectTypeAnnotation"&&Xt(t,r=>r.type==="FunctionTypeAnnotation"))}function no(e){return Z(e)}function Qt(e){let{parent:t,key:r}=e;switch(t.type){case"NGPipeExpression":if(r==="arguments"&&e.isLast)return e.callParent(Qt);break;case"ObjectProperty":if(r==="value")return e.callParent(()=>e.key==="properties"&&e.isLast);break;case"BinaryExpression":case"LogicalExpression":if(r==="right")return e.callParent(Qt);break;case"ConditionalExpression":if(r==="alternate")return e.callParent(Qt);break;case"UnaryExpression":if(t.prefix)return e.callParent(Qt);break}return!1}function ou(e,t){let{node:r,parent:n}=e;return r.type==="FunctionExpression"||r.type==="ClassExpression"?n.type==="ExportDefaultDeclaration"||!Nn(e,t):!Lt(r)||n.type!=="ExportDefaultDeclaration"&&Nn(e,t)?!1:e.call(()=>ou(e,t),...Tr(r))}function so(e){let{node:t,parent:r,grandparent:n,key:s}=e;return!!((t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression")&&(s==="object"&&r.type==="MemberExpression"||s==="callee"&&(r.type==="CallExpression"||r.type==="NewExpression")||r.type==="TSNonNullExpression"&&n.type==="MemberExpression"&&n.object===r)||e.match(()=>t.type==="CallExpression"||t.type==="MemberExpression",(u,i)=>i==="expression"&&u.type==="ChainExpression")&&(e.match(void 0,void 0,(u,i)=>i==="callee"&&(u.type==="CallExpression"&&!u.optional||u.type==="NewExpression")||i==="object"&&u.type==="MemberExpression"&&!u.optional)||e.match(void 0,void 0,(u,i)=>i==="expression"&&u.type==="TSNonNullExpression",(u,i)=>i==="object"&&u.type==="MemberExpression"))||e.match(()=>t.type==="CallExpression"||t.type==="MemberExpression",(u,i)=>i==="expression"&&u.type==="TSNonNullExpression",(u,i)=>i==="expression"&&u.type==="ChainExpression",(u,i)=>i==="object"&&u.type==="MemberExpression"))}var we=Nn;var uo=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},H=uo;function io(e,t){let r=t-1;r=We(e,r,{backwards:!0}),r=Ye(e,r,{backwards:!0}),r=We(e,r,{backwards:!0});let n=Ye(e,r,{backwards:!0});return r!==n}var pu=io;var ao=()=>!0;function Un(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function oo(e,t){var m;let r=e.node,n=[Un(e,t)],{printer:s,originalText:u,locStart:i,locEnd:a}=t;if((m=s.isBlockComment)==null?void 0:m.call(s,r)){let y=z(u,a(r))?z(u,i(r),{backwards:!0})?C:A:" ";n.push(y)}else n.push(C);let p=Ye(u,We(u,a(r)));return p!==!1&&z(u,p)&&n.push(C),n}function po(e,t,r){var p;let n=e.node,s=Un(e,t),{printer:u,originalText:i,locStart:a}=t,o=(p=u.isBlockComment)==null?void 0:p.call(u,n);if(r!=null&&r.hasLineSuffix&&!(r!=null&&r.isBlock)||z(i,a(n),{backwards:!0})){let m=pu(i,a(n));return{doc:Bn([C,m?C:"",s]),isBlock:o,hasLineSuffix:!0}}return!o||r!=null&&r.hasLineSuffix?{doc:[Bn([" ",s]),Ae],isBlock:o,hasLineSuffix:!0}:{doc:[" ",s],isBlock:o,hasLineSuffix:!1}}function M(e,t,r={}){let{node:n}=e;if(!P(n==null?void 0:n.comments))return"";let{indent:s=!1,marker:u,filter:i=ao}=r,a=[];if(e.each(({node:p})=>{p.leading||p.trailing||p.marker!==u||!i(p)||a.push(Un(e,t))},"comments"),a.length===0)return"";let o=B(C,a);return s?E([C,o]):o}function Gn(e,t){let r=e.node;if(!r)return{};let n=t[Symbol.for("printedComments")];if((r.comments||[]).filter(o=>!n.has(o)).length===0)return{leading:"",trailing:""};let u=[],i=[],a;return e.each(()=>{let o=e.node;if(n!=null&&n.has(o))return;let{leading:p,trailing:m}=o;p?u.push(oo(e,t)):m&&(a=po(e,t,a),i.push(a.doc))},"comments"),{leading:u,trailing:i}}function pe(e,t,r){let{leading:n,trailing:s}=Gn(e,r);return!n&&!s?t:Gt(t,u=>[n,u,s])}var qn=class extends Error{name="UnexpectedNodeError";constructor(t,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`),this.node=t}},Oe=qn;var Pr="'",cu='"';function co(e,t){let r=t===!0||t===Pr?Pr:cu,n=r===Pr?cu:Pr,s=0,u=0;for(let i of e)i===r?s++:i===n&&u++;return s>u?n:r}var kr=co;function Wn(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var ve,Yn=class{constructor(t){Ps(this,ve,void 0);ks(this,ve,new Set(t))}getLeadingWhitespaceCount(t){let r=nt(this,ve),n=0;for(let s=0;s=0&&r.has(t.charAt(s));s--)n++;return n}getLeadingWhitespace(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(0,r)}getTrailingWhitespace(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(t.length-r)}hasLeadingWhitespace(t){return nt(this,ve).has(t.charAt(0))}hasTrailingWhitespace(t){return nt(this,ve).has(w(!1,t,-1))}trimStart(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(r)}trimEnd(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-r)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,r=!1){let n=`[${Wn([...nt(this,ve)].join(""))}]+`,s=new RegExp(r?`(${n})`:n);return t.split(s)}hasWhitespaceCharacter(t){let r=nt(this,ve);return Array.prototype.some.call(t,n=>r.has(n))}hasNonWhitespaceCharacter(t){let r=nt(this,ve);return Array.prototype.some.call(t,n=>!r.has(n))}isWhitespaceOnly(t){let r=nt(this,ve);return Array.prototype.every.call(t,n=>r.has(n))}};ve=new WeakMap;var lu=Yn;var Ir={};cr(Ir,{endOfLine:()=>Fo,ownLine:()=>Eo,remaining:()=>Co});function lo(e,t){let r=null,n=t;for(;n!==r;)r=n,n=We(e,n),n=bt(e,n),n=Pt(e,n),n=Ye(e,n);return n}var Xe=lo;function mo(e,t){let r=Xe(e,t);return r===!1?"":e.charAt(r)}var $e=mo;function Do(e,t,r){for(let n=t;n20&&(r=r.slice(0,19)+"\u2026"),t+(r?" "+r:"")}function Xn(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=yo(e)}function ne(e,t){t.leading=!0,t.trailing=!1,Xn(e,t)}function _e(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Xn(e,t)}function te(e,t){t.leading=!1,t.trailing=!0,Xn(e,t)}function fo(e){return ae(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/.test(e.value)}var mu=fo;function Eo(e){return[du,Eu,To,Vn,Hn,Du,yu,Oo,Lo,zn,Cu,vo,fu,Fu,Kn].some(t=>t(e))}function Fo(e){return[Ao,Eu,xo,Cu,Vn,Hn,Du,yu,Fu,Io,wo,zn,Mo,Kn,No].some(t=>t(e))}function Co(e){return[du,Vn,Hn,go,ko,fu,zn,Po,bo,Jo,Kn,Ro].some(t=>t(e))}function At(e,t){let r=(e.body||e.properties).find(({type:n})=>n!=="EmptyStatement");r?ne(r,t):_e(e,t)}function $n(e,t){e.type==="BlockStatement"?At(e,t):ne(e,t)}function Ao({comment:e,followingNode:t}){return t&&mu(e)?(ne(t,e),!0):!1}function Vn({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){if((r==null?void 0:r.type)!=="IfStatement"||!n)return!1;if($e(s,O(e))===")")return te(t,e),!0;if(t===r.consequent&&n===r.alternate){if(t.type==="BlockStatement")te(t,e);else{let i=e.type==="SingleLine"||e.loc.start.line===e.loc.end.line,a=e.loc.start.line===t.loc.start.line;i&&a?_e(t,e,zt):_e(r,e)}return!0}return n.type==="BlockStatement"?(At(n,e),!0):n.type==="IfStatement"?($n(n.consequent,e),!0):r.consequent===n?(ne(n,e),!0):!1}function Hn({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){return(r==null?void 0:r.type)!=="WhileStatement"||!n?!1:$e(s,O(e))===")"?(te(t,e),!0):n.type==="BlockStatement"?(At(n,e),!0):r.body===n?(ne(n,e),!0):!1}function Du({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return(r==null?void 0:r.type)!=="TryStatement"&&(r==null?void 0:r.type)!=="CatchClause"||!n?!1:r.type==="CatchClause"&&t?(te(t,e),!0):n.type==="BlockStatement"?(At(n,e),!0):n.type==="TryStatement"?($n(n.finalizer,e),!0):n.type==="CatchClause"?($n(n.body,e),!0):!1}function To({comment:e,enclosingNode:t,followingNode:r}){return J(t)&&(r==null?void 0:r.type)==="Identifier"?(ne(t,e),!0):!1}function xo({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){let u=t&&!yt(s,O(t),U(e));return(!t||!u)&&((r==null?void 0:r.type)==="ConditionalExpression"||(r==null?void 0:r.type)==="TSConditionalType")&&n?(ne(n,e),!0):!1}function go({comment:e,precedingNode:t,enclosingNode:r}){return fe(r)&&r.shorthand&&r.key===t&&r.value.type==="AssignmentPattern"?(te(r.value.left,e),!0):!1}var ho=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function yu({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){if(ho.has(r==null?void 0:r.type)){if(P(r.decorators)&&(n==null?void 0:n.type)!=="Decorator")return te(w(!1,r.decorators,-1),e),!0;if(r.body&&n===r.body)return At(r.body,e),!0;if(n){if(r.superClass&&n===r.superClass&&t&&(t===r.id||t===r.typeParameters))return te(t,e),!0;for(let s of["implements","extends","mixins"])if(r[s]&&n===r[s][0])return t&&(t===r.id||t===r.typeParameters||t===r.superClass)?te(t,e):_e(r,e,s),!0}}return!1}var So=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty"]);function fu({comment:e,precedingNode:t,enclosingNode:r,text:n}){return r&&t&&$e(n,O(e))==="("&&(r.type==="Property"||r.type==="TSDeclareMethod"||r.type==="TSAbstractMethodDefinition")&&t.type==="Identifier"&&r.key===t&&$e(n,O(t))!==":"?(te(t,e),!0):(t==null?void 0:t.type)==="Decorator"&&So.has(r==null?void 0:r.type)?(te(t,e),!0):!1}var Bo=new Set(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function bo({comment:e,precedingNode:t,enclosingNode:r,text:n}){return $e(n,O(e))!=="("?!1:t&&Bo.has(r==null?void 0:r.type)?(te(t,e),!0):!1}function Po({comment:e,enclosingNode:t,text:r}){if((t==null?void 0:t.type)!=="ArrowFunctionExpression")return!1;let n=Xe(r,O(e));return n!==!1&&r.slice(n,n+2)==="=>"?(_e(t,e),!0):!1}function ko({comment:e,enclosingNode:t,text:r}){return $e(r,O(e))!==")"?!1:t&&(Au(t)&&Y(t).length===0||ut(t)&&he(t).length===0)?(_e(t,e),!0):((t==null?void 0:t.type)==="MethodDefinition"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&Y(t.value).length===0?(_e(t.value,e),!0):!1}function Eu({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){if((t==null?void 0:t.type)==="FunctionTypeParam"&&(r==null?void 0:r.type)==="FunctionTypeAnnotation"&&(n==null?void 0:n.type)!=="FunctionTypeParam")return te(t,e),!0;if(((t==null?void 0:t.type)==="Identifier"||(t==null?void 0:t.type)==="AssignmentPattern"||(t==null?void 0:t.type)==="ObjectPattern"||(t==null?void 0:t.type)==="ArrayPattern"||(t==null?void 0:t.type)==="RestElement")&&r&&Au(r)&&$e(s,O(e))===")")return te(t,e),!0;if((r==null?void 0:r.type)==="FunctionDeclaration"&&(n==null?void 0:n.type)==="BlockStatement"){let u=(()=>{let i=Y(r);if(i.length>0)return Xe(s,O(w(!1,i,-1)));let a=Xe(s,O(r.id));return a!==!1&&Xe(s,a+1)})();if(U(e)>u)return At(n,e),!0}return!1}function Fu({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="LabeledStatement"?(ne(t,e),!0):!1}function Kn({comment:e,enclosingNode:t}){return((t==null?void 0:t.type)==="ContinueStatement"||(t==null?void 0:t.type)==="BreakStatement")&&!t.label?(te(t,e),!0):!1}function Io({comment:e,precedingNode:t,enclosingNode:r}){return k(r)&&t&&r.callee===t&&r.arguments.length>0?(ne(r.arguments[0],e),!0):!1}function Lo({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return(r==null?void 0:r.type)==="UnionTypeAnnotation"||(r==null?void 0:r.type)==="TSUnionType"?(Ht(e)&&(n.prettierIgnore=!0,e.unignore=!0),t?(te(t,e),!0):!1):(((n==null?void 0:n.type)==="UnionTypeAnnotation"||(n==null?void 0:n.type)==="TSUnionType")&&Ht(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function wo({comment:e,enclosingNode:t}){return fe(t)?(ne(t,e),!0):!1}function zn({comment:e,enclosingNode:t,followingNode:r,ast:n,isLastComment:s}){var u;return((u=n==null?void 0:n.body)==null?void 0:u.length)===0?(s?_e(n,e):ne(n,e),!0):(t==null?void 0:t.type)==="Program"&&t.body.length===0&&!P(t.directives)?(s?_e(t,e):ne(t,e),!0):(r==null?void 0:r.type)==="Program"&&r.body.length===0&&(t==null?void 0:t.type)==="ModuleExpression"?(_e(r,e),!0):!1}function Oo({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="ForInStatement"||(t==null?void 0:t.type)==="ForOfStatement"?(ne(t,e),!0):!1}function Cu({comment:e,precedingNode:t,enclosingNode:r,text:n}){if((r==null?void 0:r.type)==="ImportSpecifier"||(r==null?void 0:r.type)==="ExportSpecifier")return ne(r,e),!0;let s=(t==null?void 0:t.type)==="ImportSpecifier"&&(r==null?void 0:r.type)==="ImportDeclaration",u=(t==null?void 0:t.type)==="ExportSpecifier"&&(r==null?void 0:r.type)==="ExportNamedDeclaration";return(s||u)&&z(n,O(e))?(te(t,e),!0):!1}function vo({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="AssignmentPattern"?(ne(t,e),!0):!1}var _o=new Set(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),jo=new Set(["ObjectExpression","RecordExpression","ArrayExpression","TupleExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function Mo({comment:e,enclosingNode:t,followingNode:r}){return _o.has(t==null?void 0:t.type)&&r&&(jo.has(r.type)||ae(e))?(ne(r,e),!0):!1}function Ro({comment:e,enclosingNode:t,followingNode:r,text:n}){return!r&&((t==null?void 0:t.type)==="TSMethodSignature"||(t==null?void 0:t.type)==="TSDeclareFunction"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&$e(n,O(e))===";"?(te(t,e),!0):!1}function du({comment:e,enclosingNode:t,followingNode:r}){if(Ht(e)&&(t==null?void 0:t.type)==="TSMappedType"&&(r==null?void 0:r.type)==="TSTypeParameter"&&r.constraint)return t.prettierIgnore=!0,e.unignore=!0,!0}function Jo({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return(r==null?void 0:r.type)!=="TSMappedType"?!1:(n==null?void 0:n.type)==="TSTypeParameter"&&n.name?(ne(n.name,e),!0):(t==null?void 0:t.type)==="TSTypeParameter"&&t.constraint?(te(t.constraint,e),!0):!1}function No({comment:e,enclosingNode:t,followingNode:r}){return!t||t.type!=="SwitchCase"||t.test||!r||r!==t.consequent[0]?!1:(r.type==="BlockStatement"&&$t(e)?At(r,e):_e(t,e),!0)}var Au=j(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod"]);function Uo(e){let t=`*${e.value}*`.split(` -`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var Tu=Uo;function xu(e,t){let r=e.node;if($t(r))return t.originalText.slice(U(r),O(r)).trimEnd();if(ae(r))return Tu(r)?Go(r):["/*",Te(r.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(r))}function Go(e){let t=e.value.split(` -`);return["/*",B(C,t.map((r,n)=>n===0?r.trimEnd():" "+(ne===""||e===A||e===C||e===F;function $o(e,t,r){var v,_,R;let{node:n}=e;if(n.type==="JSXElement"&&ap(n))return[r("openingElement"),r("closingElement")];let s=n.type==="JSXElement"?r("openingElement"):r("openingFragment"),u=n.type==="JSXElement"?r("closingElement"):r("closingFragment");if(n.children.length===1&&n.children[0].type==="JSXExpressionContainer"&&(n.children[0].expression.type==="TemplateLiteral"||n.children[0].expression.type==="TaggedTemplateExpression"))return[s,...e.map(r,"children"),u];n.children=n.children.map(T=>op(T)?{type:"JSXText",value:" ",raw:" "}:T);let i=n.children.some(V),a=n.children.filter(T=>T.type==="JSXExpressionContainer").length>1,o=n.type==="JSXElement"&&n.openingElement.attributes.length>1,p=K(s)||i||o||a,m=e.parent.rootMarker==="mdx",y=t.singleQuote?"{' '}":'{" "}',c=m?" ":b([y,F]," "),f=((_=(v=n.openingElement)==null?void 0:v.name)==null?void 0:_.name)==="fbt",l=Vo(e,t,r,c,f),h=n.children.some(T=>Zt(T));for(let T=l.length-2;T>=0;T--){let N=l[T]===""&&l[T+1]==="",Se=l[T]===C&&l[T+1]===""&&l[T+2]===C,$=(l[T]===F||l[T]===C)&&l[T+1]===""&&l[T+2]===c,Be=l[T]===c&&l[T+1]===""&&(l[T+2]===F||l[T+2]===C),Ee=l[T]===c&&l[T+1]===""&&l[T+2]===c,Tn=l[T]===F&&l[T+1]===""&&l[T+2]===C||l[T]===C&&l[T+1]===""&&l[T+2]===F;Se&&h||N||$||Ee||Tn?l.splice(T,2):Be&&l.splice(T+1,2)}for(;l.length>0&&Zn(w(!1,l,-1));)l.pop();for(;l.length>1&&Zn(l[0])&&Zn(l[1]);)l.shift(),l.shift();let g=[];for(let[T,N]of l.entries()){if(N===c){if(T===1&&l[T-1]===""){if(l.length===2){g.push(y);continue}g.push([y,C]);continue}else if(T===l.length-1){g.push(y);continue}else if(l[T-1]===""&&l[T-2]===C){g.push(y);continue}}g.push(N),K(N)&&(p=!0)}let S=h?St(g):D(g,{shouldBreak:!0});if(((R=t.cursorNode)==null?void 0:R.type)==="JSXText"&&n.children.includes(t.cursorNode)&&(S=[Pn,S,Pn]),m)return S;let I=D([s,E([C,S]),C,u]);return p?I:qe([D([s,...l,u]),I])}function Vo(e,t,r,n,s){let u=[];return e.each(({node:i,next:a})=>{if(i.type==="JSXText"){let o=oe(i);if(Zt(i)){let p=Lr.split(o,!0);p[0]===""&&(u.push(""),p.shift(),/\n/.test(p[0])?u.push(hu(s,p[1],i,a)):u.push(n),p.shift());let m;if(w(!1,p,-1)===""&&(p.pop(),m=p.pop()),p.length===0)return;for(let[y,c]of p.entries())y%2===1?u.push(A):u.push(c);m!==void 0?/\n/.test(m)?u.push(hu(s,w(!1,u,-1),i,a)):u.push(n):u.push(gu(s,w(!1,u,-1),i,a))}else/\n/.test(o)?o.match(/\n/g).length>1&&u.push("",C):u.push("",n)}else{let o=r();if(u.push(o),a&&Zt(a)){let m=Lr.trim(oe(a)),[y]=Lr.split(m);u.push(gu(s,y,i,a))}else u.push(C)}},"children"),u}function gu(e,t,r,n){return e?"":r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?t.length===1?F:C:F}function hu(e,t,r,n){return e?C:t.length===1?r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?C:F:C}var Ho=new Set(["ArrayExpression","TupleExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot"]);function Ko(e,t,r){let{parent:n}=e;if(Ho.has(n.type))return t;let s=e.match(void 0,i=>i.type==="ArrowFunctionExpression",k,i=>i.type==="JSXExpressionContainer"),u=we(e,r);return D([u?"":b("("),E([F,t]),F,u?"":b(")")],{shouldBreak:s})}function zo(e,t,r){let{node:n}=e,s=[];if(s.push(r("name")),n.value){let u;if(ee(n.value)){let i=oe(n.value),a=H(!1,H(!1,i.slice(1,-1),"'","'"),""",'"'),o=kr(a,t.jsxSingleQuote);a=o==='"'?H(!1,a,'"',"""):H(!1,a,"'","'"),u=e.call(()=>pe(e,Te(o+a+o),t),"value")}else u=r("value");s.push("=",u)}return s}function Qo(e,t,r){let{node:n}=e,s=(u,i)=>u.type==="JSXEmptyExpression"||!d(u)&&(G(u)||Z(u)||u.type==="ArrowFunctionExpression"||u.type==="AwaitExpression"&&(s(u.argument,u)||u.argument.type==="JSXElement")||k(u)||u.type==="ChainExpression"&&k(u.expression)||u.type==="FunctionExpression"||u.type==="TemplateLiteral"||u.type==="TaggedTemplateExpression"||u.type==="DoExpression"||V(i)&&(u.type==="ConditionalExpression"||ce(u)));return s(n.expression,e.parent)?D(["{",r("expression"),de,"}"]):D(["{",E([F,r("expression")]),F,de,"}"])}function Zo(e,t,r){var a,o;let{node:n}=e,s=d(n.name)||d(n.typeParameters);if(n.selfClosing&&n.attributes.length===0&&!s)return["<",r("name"),r("typeParameters")," />"];if(((a=n.attributes)==null?void 0:a.length)===1&&n.attributes[0].value&&ee(n.attributes[0].value)&&!n.attributes[0].value.value.includes(` -`)&&!s&&!d(n.attributes[0]))return D(["<",r("name"),r("typeParameters")," ",...e.map(r,"attributes"),n.selfClosing?" />":">"]);let u=(o=n.attributes)==null?void 0:o.some(p=>p.value&&ee(p.value)&&p.value.value.includes(` -`)),i=t.singleAttributePerLine&&n.attributes.length>1?C:A;return D(["<",r("name"),r("typeParameters"),E(e.map(()=>[i,r()],"attributes")),...ep(n,t,s)],{shouldBreak:u})}function ep(e,t,r){return e.selfClosing?[A,"/>"]:tp(e,t,r)?[">"]:[F,">"]}function tp(e,t,r){let n=e.attributes.length>0&&d(w(!1,e.attributes,-1),x.Trailing);return e.attributes.length===0&&!r||(t.bracketSameLine||t.jsxBracketSameLine)&&(!r||e.attributes.length>0)&&!n}function rp(e,t,r){let{node:n}=e,s=[];s.push(""),s}function np(e,t){let{node:r}=e,n=d(r),s=d(r,x.Line),u=r.type==="JSXOpeningFragment";return[u?"<":""]}function sp(e,t,r){let n=pe(e,$o(e,t,r),t);return Ko(e,n,t)}function up(e,t){let{node:r}=e,n=d(r,x.Line);return[M(e,t,{indent:n}),n?C:""]}function ip(e,t,r){let{node:n}=e;return["{",e.call(({node:s})=>{let u=["...",r()];return!d(s)||!Qn(e)?u:[E([F,pe(e,u,t)]),F]},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function Su(e,t,r){let{node:n}=e;if(n.type.startsWith("JSX"))switch(n.type){case"JSXAttribute":return zo(e,t,r);case"JSXIdentifier":return n.name;case"JSXNamespacedName":return B(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return B(".",[r("object"),r("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return ip(e,t,r);case"JSXExpressionContainer":return Qo(e,t,r);case"JSXFragment":case"JSXElement":return sp(e,t,r);case"JSXOpeningElement":return Zo(e,t,r);case"JSXClosingElement":return rp(e,t,r);case"JSXOpeningFragment":case"JSXClosingFragment":return np(e,t);case"JSXEmptyExpression":return up(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Oe(n,"JSX")}}function ap(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type==="JSXText"&&!Zt(t)}function Zt(e){return e.type==="JSXText"&&(Lr.hasNonWhitespaceCharacter(oe(e))||!/\n/.test(oe(e)))}function op(e){return e.type==="JSXExpressionContainer"&&ee(e.expression)&&e.expression.value===" "&&!d(e.expression)}function Bu(e){let{node:t,parent:r}=e;if(!V(t)||!V(r))return!1;let{index:n,siblings:s}=e,u;for(let i=n;i>0;i--){let a=s[i-1];if(!(a.type==="JSXText"&&!Zt(a))){u=a;break}}return(u==null?void 0:u.type)==="JSXExpressionContainer"&&u.expression.type==="JSXEmptyExpression"&&dt(u.expression)}function pp(e){return dt(e.node)||Bu(e)}var wr=pp;var cp=0;function Or(e,t,r){var _;let{node:n,parent:s,grandparent:u,key:i}=e,a=i!=="body"&&(s.type==="IfStatement"||s.type==="WhileStatement"||s.type==="SwitchStatement"||s.type==="DoWhileStatement"),o=n.operator==="|>"&&((_=e.root.extra)==null?void 0:_.__isUsingHackPipeline),p=es(e,r,t,!1,a);if(a)return p;if(o)return D(p);if(k(s)&&s.callee===n||s.type==="UnaryExpression"||J(s)&&!s.computed)return D([E([F,...p]),F]);let m=s.type==="ReturnStatement"||s.type==="ThrowStatement"||s.type==="JSXExpressionContainer"&&u.type==="JSXAttribute"||n.operator!=="|"&&s.type==="JsExpressionRoot"||n.type!=="NGPipeExpression"&&(s.type==="NGRoot"&&t.parser==="__ng_binding"||s.type==="NGMicrosyntaxExpression"&&u.type==="NGMicrosyntax"&&u.body.length===1)||n===s.body&&s.type==="ArrowFunctionExpression"||n!==s.body&&s.type==="ForStatement"||s.type==="ConditionalExpression"&&u.type!=="ReturnStatement"&&u.type!=="ThrowStatement"&&!k(u)||s.type==="TemplateLiteral",y=s.type==="AssignmentExpression"||s.type==="VariableDeclarator"||s.type==="ClassProperty"||s.type==="PropertyDefinition"||s.type==="TSAbstractPropertyDefinition"||s.type==="ClassPrivateProperty"||fe(s),c=ce(n.left)&&Vt(n.operator,n.left.operator);if(m||Ot(n)&&!c||!Ot(n)&&y)return D(p);if(p.length===0)return"";let f=V(n.right),l=p.findIndex(R=>typeof R!="string"&&!Array.isArray(R)&&R.type===ue),h=p.slice(0,l===-1?1:l+1),g=p.slice(h.length,f?-1:void 0),S=Symbol("logicalChain-"+ ++cp),I=D([...h,E(g)],{id:S});if(!f)return I;let v=w(!1,p,-1);return D([I,lt(v,{groupId:S})])}function es(e,t,r,n,s){var h;let{node:u}=e;if(!ce(u))return[D(t())];let i=[];Vt(u.operator,u.left.operator)?i=e.call(g=>es(g,t,r,!0,s),"left"):i.push(D(t("left")));let a=Ot(u),o=(u.operator==="|>"||u.type==="NGPipeExpression"||lp(e,r))&&!Ie(r.originalText,u.right),p=u.type==="NGPipeExpression"?"|":u.operator,m=u.type==="NGPipeExpression"&&u.arguments.length>0?D(E([F,": ",B([A,": "],e.map(()=>ye(2,D(t())),"arguments"))])):"",y;if(a)y=[p," ",t("right"),m];else{let S=p==="|>"&&((h=e.root.extra)==null?void 0:h.__isUsingHackPipeline)?e.call(I=>es(I,t,r,!0,s),"right"):t("right");y=[o?A:"",p,o?" ":A,S,m]}let{parent:c}=e,f=d(u.left,x.Trailing|x.Line),l=f||!(s&&u.type==="LogicalExpression")&&c.type!==u.type&&u.left.type!==u.type&&u.right.type!==u.type;if(i.push(o?"":" ",l?D(y,{shouldBreak:f}):y),n&&d(u)){let g=Bt(pe(e,i,r));return Array.isArray(g)||g.type===De?yr(g):[g]}return i}function Ot(e){return e.type!=="LogicalExpression"?!1:!!(Z(e.right)&&e.right.properties.length>0||G(e.right)&&e.right.elements.length>0||V(e.right))}var bu=e=>e.type==="BinaryExpression"&&e.operator==="|";function lp(e,t){return(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression")&&bu(e.node)&&!e.hasAncestor(r=>!bu(r)&&r.type!=="JsExpressionRoot")}var it=class extends Error{name="ArgExpansionBailout"};function mp(e,t,r,n){let{node:s}=e;return d(s,x.Dangling)?D([r,M(e,t,{indent:!0}),F,n]):[r,n]}function vt(e,t,r){let{node:n}=e,s=[],u=n.type==="TupleExpression"?"#[":"[",i="]",a=n.type==="TupleTypeAnnotation"&&n.types?"types":n.type==="TSTupleType"||n.type==="TupleTypeAnnotation"?"elementTypes":"elements",o=n[a];if(o.length===0)s.push(mp(e,t,u,i));else{let p=w(!1,o,-1),m=(p==null?void 0:p.type)!=="RestElement",y=p===null,c=Symbol("array"),f=!t.__inJestEach&&o.length>1&&o.every((g,S,I)=>{let v=g==null?void 0:g.type;if(!G(g)&&!Z(g))return!1;let _=I[S+1];if(_&&v!==_.type)return!1;let R=G(g)?"elements":"properties";return g[R]&&g[R].length>1}),l=ts(n,t),h=m?y?",":le(t)?l?b(",","",{groupId:c}):b(","):"":"";s.push(D([u,E([F,l?yp(e,t,r,h):[Dp(e,t,a,r),h],M(e,t)]),F,i],{shouldBreak:f,id:c}))}return s.push(X(e),q(e,r)),s}function ts(e,t){return G(e)&&e.elements.length>1&&e.elements.every(r=>r&&(ge(r)||xr(r)&&!d(r.argument))&&!d(r,x.Trailing|x.Line,n=>!z(t.originalText,U(n),{backwards:!0})))}function Pu({node:e},{originalText:t}){let r=s=>bt(t,Pt(t,s)),n=s=>t[s]===","?s:n(r(s+1));return kt(t,n(O(e)))}function Dp(e,t,r,n){let s=[];return e.each(({node:u,isLast:i})=>{s.push(u?D(n()):""),i||s.push([",",A,u&&Pu(e,t)?F:""])},r),s}function yp(e,t,r,n){let s=[];return e.each(({isLast:u,next:i})=>{s.push([r(),u?n:","]),u||s.push(Pu(e,t)?[C,C]:d(i,x.Leading|x.Line)?C:A)},"elements"),St(s)}function fp(e,t,r){let{node:n}=e,s=he(n);if(s.length===0)return["(",M(e,t),")"];if(Cp(s))return["(",r(["arguments",0]),", ",r(["arguments",1]),")"];let u=!1,i=s.length-1,a=[];br(e,({node:c},f)=>{let l=r();f===i||(me(c,t)?(u=!0,l=[l,",",C,C]):l=[l,",",A]),a.push(l)});let p=!(n.type==="ImportExpression"||n.callee.type==="Import")&&le(t,"all")?",":"";function m(){return D(["(",E([A,...a]),p,A,")"],{shouldBreak:!0})}if(u||e.parent.type!=="Decorator"&&ru(s))return m();if(Fp(s)){let c=a.slice(1);if(c.some(K))return m();let f;try{f=r(Jn(n,0),{expandFirstArg:!0})}catch(l){if(l instanceof it)return m();throw l}return K(f)?[Ae,qe([["(",D(f,{shouldBreak:!0}),", ",...c,")"],m()])]:qe([["(",f,", ",...c,")"],["(",D(f,{shouldBreak:!0}),", ",...c,")"],m()])}if(Ep(s,a,t)){let c=a.slice(0,-1);if(c.some(K))return m();let f;try{f=r(Jn(n,-1),{expandLastArg:!0})}catch(l){if(l instanceof it)return m();throw l}return K(f)?[Ae,qe([["(",...c,D(f,{shouldBreak:!0}),")"],m()])]:qe([["(",...c,f,")"],["(",...c,D(f,{shouldBreak:!0}),")"],m()])}let y=["(",E([F,...a]),b(p),F,")"];return Br(e)?y:D(y,{shouldBreak:a.some(K)||u})}function er(e,t=!1){return Z(e)&&(e.properties.length>0||d(e))||G(e)&&(e.elements.length>0||d(e))||e.type==="TSTypeAssertion"&&er(e.expression)||Le(e)&&er(e.expression)||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!=="TSTypeReference"||dp(e.body))&&(e.body.type==="BlockStatement"||e.body.type==="ArrowFunctionExpression"&&er(e.body,!0)||Z(e.body)||G(e.body)||!t&&(k(e.body)||e.body.type==="ConditionalExpression")||V(e.body))||e.type==="DoExpression"||e.type==="ModuleExpression"}function Ep(e,t,r){var u,i;let n=w(!1,e,-1);if(e.length===1){let a=w(!1,t,-1);if((u=a.label)!=null&&u.embed&&((i=a.label)==null?void 0:i.hug)!==!1)return!0}let s=w(!1,e,-2);return!d(n,x.Leading)&&!d(n,x.Trailing)&&er(n)&&(!s||s.type!==n.type)&&(e.length!==2||s.type!=="ArrowFunctionExpression"||!G(n))&&!(e.length>1&&ts(n,r))}function Fp(e){if(e.length!==2)return!1;let[t,r]=e;return t.type==="ModuleExpression"&&Ap(r)?!0:!d(t)&&(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement")&&r.type!=="FunctionExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="ConditionalExpression"&&ku(r)&&!er(r)}function ku(e){var t;if(e.type==="ParenthesizedExpression")return ku(e.expression);if(Le(e)||e.type==="TypeCastExpression"){let{typeAnnotation:r}=e;return r.type==="TypeAnnotation"&&(r=r.typeAnnotation),r.type==="TSArrayType"&&(r=r.elementType,r.type==="TSArrayType"&&(r=r.elementType)),(r.type==="GenericTypeAnnotation"||r.type==="TSTypeReference")&&((t=r.typeParameters)==null?void 0:t.params.length)===1&&(r=r.typeParameters.params[0]),wt(r)&&xe(e.expression,1)}return ut(e)&&he(e).length>1?!1:ce(e)?xe(e.left,1)&&xe(e.right,1):vn(e)||xe(e)}function Cp(e){return e.length===2&&e[0].type==="ArrowFunctionExpression"&&Y(e[0]).length===0&&e[0].body.type==="BlockStatement"&&e[1].type==="ArrayExpression"&&!e.some(t=>d(t))}function dp(e){return e.type==="BlockStatement"&&(e.body.some(t=>t.type!=="EmptyStatement")||d(e,x.Dangling))}function Ap(e){return e.type==="ObjectExpression"&&e.properties.length===1&&fe(e.properties[0])&&e.properties[0].key.type==="Identifier"&&e.properties[0].key.name==="type"&&ee(e.properties[0].value)&&e.properties[0].value.value==="module"}var tr=fp;function Iu(e,t,r){var p;let n=r("object"),s=rs(e,t,r),{node:u,parent:i}=e,a=e.findAncestor(m=>!(J(m)||m.type==="TSNonNullExpression")),o=a&&(a.type==="NewExpression"||a.type==="BindExpression"||a.type==="AssignmentExpression"&&a.left.type!=="Identifier")||u.computed||u.object.type==="Identifier"&&u.property.type==="Identifier"&&!J(i)||(i.type==="AssignmentExpression"||i.type==="VariableDeclarator")&&(k(u.object)&&u.object.arguments.length>0||u.object.type==="TSNonNullExpression"&&k(u.object.expression)&&u.object.expression.arguments.length>0||((p=n.label)==null?void 0:p.memberChain));return et(n.label,[n,o?s:D(E([F,s]))])}function rs(e,t,r){let n=r("property"),{node:s}=e,u=X(e);return s.computed?!s.property||ge(s.property)?[u,"[",n,"]"]:D([u,"[",E([F,n]),F,"]"]):[u,".",n]}function Tp(e,t,r){let{parent:n}=e,s=!n||n.type==="ExpressionStatement",u=[];function i(L){let{originalText:W}=t,se=Xe(W,O(L));return W.charAt(se)===")"?se!==!1&&kt(W,se+1):me(L,t)}function a(L){let{node:W}=L;k(W)&&(Dt(W.callee)||k(W.callee))?(u.unshift({node:W,printed:[pe(L,[X(L),Ve(L,t,r),tr(L,t,r)],t),i(W)?C:""]}),L.call(se=>a(se),"callee")):Dt(W)?(u.unshift({node:W,needsParens:we(L,t),printed:pe(L,J(W)?rs(L,t,r):vr(L,t,r),t)}),L.call(se=>a(se),"object")):W.type==="TSNonNullExpression"?(u.unshift({node:W,printed:pe(L,"!",t)}),L.call(se=>a(se),"expression")):u.unshift({node:W,printed:r()})}let{node:o}=e;u.unshift({node:o,printed:[X(e),Ve(e,t,r),tr(e,t,r)]}),o.callee&&e.call(L=>a(L),"callee");let p=[],m=[u[0]],y=1;for(;y0&&p.push(m);function f(L){return/^[A-Z]|^[$_]+$/.test(L)}function l(L){return L.length<=t.tabWidth}function h(L){var gn;let W=(gn=L[1][0])==null?void 0:gn.node.computed;if(L[0].length===1){let or=L[0][0].node;return or.type==="ThisExpression"||or.type==="Identifier"&&(f(or.name)||s&&l(or.name)||W)}let se=w(!1,L[0],-1).node;return J(se)&&se.property.type==="Identifier"&&(f(se.property.name)||W)}let g=p.length>=2&&!d(p[1][0].node)&&h(p);function S(L){let W=L.map(se=>se.printed);return L.length>0&&w(!1,L,-1).needsParens?["(",...W,")"]:W}function I(L){return L.length===0?"":E(D([C,B(C,L.map(S))]))}let v=p.map(S),_=v,R=g?3:2,T=p.flat(),N=T.slice(1,-1).some(L=>d(L.node,x.Leading))||T.slice(0,-1).some(L=>d(L.node,x.Trailing))||p[R]&&d(p[R][0].node,x.Leading);if(p.length<=R&&!N)return Br(e)?_:D(_);let Se=w(!1,p[g?1:0],-1).node,$=!k(Se)&&i(Se),Be=[S(p[0]),g?p.slice(1,2).map(S):"",$?C:"",I(p.slice(g?2:1))],Ee=u.map(({node:L})=>L).filter(k);function Tn(){let L=w(!1,w(!1,p,-1),-1).node,W=w(!1,v,-1);return k(L)&&K(W)&&Ee.slice(0,-1).some(se=>se.arguments.some(It))}let xn;return N||Ee.length>2&&Ee.some(L=>!L.arguments.every(W=>xe(W)))||v.slice(0,-1).some(K)||Tn()?xn=D(Be):xn=[K(_)||$?Ae:"",qe([_,Be])],et({memberChain:!0},xn)}var Lu=Tp;function _r(e,t,r){var y;let{node:n,parent:s}=e,u=n.type==="NewExpression",i=n.type==="ImportExpression",a=X(e),o=he(n),p=o.length===1&&hr(o[0],t.originalText);if(p||o.length>0&&!u&&!i&&(xp(n,s)||Ct(n,s))){let c=[];if(br(e,()=>{c.push(r())}),!(p&&((y=c[0].label)!=null&&y.embed)))return[u?"new ":"",r("callee"),a,Ve(e,t,r),"(",B(", ",c),")"]}if(!i&&!u&&Dt(n.callee)&&!e.call(c=>we(c,t),"callee"))return Lu(e,t,r);let m=[u?"new ":"",i?"import":r("callee"),a,Ve(e,t,r),tr(e,t,r)];return i||k(n.callee)?D(m):m}function xp(e,t){if(e.callee.type!=="Identifier")return!1;if(e.callee.name==="require")return!0;if(e.callee.name==="define"){let r=he(e);return t.type==="ExpressionStatement"&&(r.length===1||r.length===2&&r[0].type==="ArrayExpression"||r.length===3&&ee(r[0])&&r[1].type==="ArrayExpression")}return!1}function gp(e,t,r){let n=t==='"'?"'":'"',u=H(!1,e,/\\(.)|(["'])/gs,(i,a,o)=>a===n?a:o===t?"\\"+o:o||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(a)?a:"\\"+a));return t+u+t}var wu=gp;function hp(e,t){let r=e.slice(1,-1),n=t.parser==="json"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":kr(r,t.singleQuote);return wu(r,n,!(t.parser==="css"||t.parser==="less"||t.parser==="scss"||t.__embeddedInHtml))}var Tt=hp;function Sp(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}var He=Sp;function _u(e,t){let{node:r}=e;switch(r.type){case"RegExpLiteral":return Ou(r);case"BigIntLiteral":return jr(r.extra.raw);case"NumericLiteral":return He(r.extra.raw);case"StringLiteral":return Te(Tt(r.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(r.value);case"DecimalLiteral":return He(r.value)+"m";case"DirectiveLiteral":return vu(r.extra.raw,t);case"Literal":{if(r.regex)return Ou(r.regex);if(r.bigint)return jr(r.raw);if(r.decimal)return He(r.decimal)+"m";let{value:n}=r;return typeof n=="number"?He(r.raw):typeof n=="string"?Bp(e)?vu(r.raw,t):Te(Tt(r.raw,t)):String(n)}}}function Bp(e){if(e.key!=="expression")return;let{parent:t}=e;return t.type==="ExpressionStatement"&&t.directive}function jr(e){return e.toLowerCase()}function Ou({pattern:e,flags:t}){return t=[...t].sort().join(""),`/${e}/${t}`}function vu(e,t){let r=e.slice(1,-1);if(r.includes('"')||r.includes("'"))return e;let n=t.singleQuote?"'":'"';return n+r+n}var Mr=j(["Literal","BigIntLiteral","BooleanLiteral","DecimalLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]);function ft(e,t,r,n,s,u){let i=bp(e,t,r,n,u),a=u?r(u,{assignmentLayout:i}):"";switch(i){case"break-after-operator":return D([D(n),s,D(E([A,a]))]);case"never-break-after-operator":return D([D(n),s," ",a]);case"fluid":{let o=Symbol("assignment");return D([D(n),s,D(E(A),{id:o}),de,lt(a,{groupId:o})])}case"break-lhs":return D([n,s," ",D(a)]);case"chain":return[D(n),s,A,a];case"chain-tail":return[D(n),s,E([A,a])];case"chain-tail-arrow-chain":return[D(n),s,a];case"only-left":return n}}function Mu(e,t,r){let{node:n}=e;return ft(e,t,r,r("left"),[" ",n.operator],"right")}function Ru(e,t,r){return ft(e,t,r,r("id")," =","init")}function bp(e,t,r,n,s){let{node:u}=e,i=u[s];if(!i)return"only-left";let a=!Rr(i);if(e.match(Rr,Ju,y=>!a||y.type!=="ExpressionStatement"&&y.type!=="VariableDeclaration"))return a?i.type==="ArrowFunctionExpression"&&i.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!a&&Rr(i.right)||Ie(t.originalText,i))return"break-after-operator";if(i.type==="CallExpression"&&i.callee.name==="require"||t.parser==="json5"||t.parser==="json")return"never-break-after-operator";if(kp(u)||Ip(u)||Op(u)||ns(u)&&Js(n))return"break-lhs";let m=Mp(u,n,t);return e.call(()=>Pp(e,t,r,m),s)?"break-after-operator":m||i.type==="TemplateLiteral"||i.type==="TaggedTemplateExpression"||i.type==="BooleanLiteral"||ge(i)||i.type==="ClassExpression"?"never-break-after-operator":"fluid"}function Pp(e,t,r,n){let s=e.node;if(ce(s)&&!Ot(s))return!0;switch(s.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"ConditionalExpression":{let{test:a}=s;return ce(a)&&!Ot(a)}case"ClassExpression":return P(s.decorators)}if(n)return!1;let u=s,i=[];for(;;)if(u.type==="UnaryExpression")u=u.argument,i.push("argument");else if(u.type==="TSNonNullExpression")u=u.expression,i.push("expression");else break;return!!(ee(u)||e.call(()=>Nu(e,t,r),...i))}function kp(e){if(Ju(e)){let t=e.left||e.id;return t.type==="ObjectPattern"&&t.properties.length>2&&t.properties.some(r=>{var n;return fe(r)&&(!r.shorthand||((n=r.value)==null?void 0:n.type)==="AssignmentPattern")})}return!1}function Rr(e){return e.type==="AssignmentExpression"}function Ju(e){return Rr(e)||e.type==="VariableDeclarator"}function Ip(e){let t=wp(e);if(P(t)){let r=e.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(t.length>1&&t.some(n=>n[r]||n.default))return!0}return!1}var Lp=j(["TSTypeAliasDeclaration","TypeAlias"]);function wp(e){var t;if(Lp(e))return(t=e.typeParameters)==null?void 0:t.params}function Op(e){if(e.type!=="VariableDeclarator")return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let r=ju(t.typeAnnotation);return P(r)&&r.length>1&&r.some(n=>P(ju(n))||n.type==="TSConditionalType")}function ns(e){var t;return e.type==="VariableDeclarator"&&((t=e.init)==null?void 0:t.type)==="ArrowFunctionExpression"}var vp=j(["TSTypeReference","GenericTypeAnnotation"]);function ju(e){var t;if(vp(e))return(t=e.typeParameters)==null?void 0:t.params}function Nu(e,t,r,n=!1){var i;let{node:s}=e,u=()=>Nu(e,t,r,!0);if(s.type==="ChainExpression"||s.type==="TSNonNullExpression")return e.call(u,"expression");if(k(s)){if((i=_r(e,t,r).label)!=null&&i.memberChain)return!1;let o=he(s);return!(o.length===0||o.length===1&&jp(o[0],t))||Rp(s,r)?!1:e.call(u,"callee")}return J(s)?e.call(u,"object"):n&&(s.type==="Identifier"||s.type==="ThisExpression")}var _p=.25;function jp(e,{printWidth:t}){if(d(e))return!1;let r=t*_p;if(e.type==="ThisExpression"||e.type==="Identifier"&&e.name.length<=r||xr(e)&&!d(e.argument))return!0;let n=e.type==="Literal"&&"regex"in e&&e.regex.pattern||e.type==="RegExpLiteral"&&e.pattern;return n?n.length<=r:ee(e)?oe(e).length<=r:e.type==="TemplateLiteral"?e.expressions.length===0&&e.quasis[0].value.raw.length<=r&&!e.quasis[0].value.raw.includes(` -`):Mr(e)}function Mp(e,t,r){if(!fe(e))return!1;t=Bt(t);let n=3;return typeof t=="string"&&tt(t)1)return!0;if(r.length===1){let s=r[0];if(s.type==="TSUnionType"||s.type==="UnionTypeAnnotation"||s.type==="TSIntersectionType"||s.type==="IntersectionTypeAnnotation"||s.type==="TSTypeLiteral"||s.type==="ObjectTypeAnnotation")return!0}let n=e.typeParameters?"typeParameters":"typeArguments";if(K(t(n)))return!0}return!1}function Jp(e){var t;return(t=e.typeParameters??e.typeArguments)==null?void 0:t.params}function at(e,t,r,n,s){let u=e.node,i=Y(u),a=s?Ve(e,r,t):"";if(i.length===0)return[a,"(",M(e,r,{filter:l=>$e(r.originalText,O(l))===")"}),")"];let{parent:o}=e,p=Ct(o),m=ss(u),y=[];if(iu(e,(l,h)=>{let g=h===i.length-1;g&&u.rest&&y.push("..."),y.push(t()),!g&&(y.push(","),p||m?y.push(" "):me(i[h],r)?y.push(C,C):y.push(A))}),n&&!Up(e)){if(K(a)||K(y))throw new it;return D([Ut(a),"(",Ut(y),")"])}let c=i.every(l=>!l.decorators);return m&&c?[a,"(",...y,")"]:p?[a,"(",...y,")"]:(gr(o)||eu(o)||o.type==="TypeAlias"||o.type==="UnionTypeAnnotation"||o.type==="TSUnionType"||o.type==="IntersectionTypeAnnotation"||o.type==="FunctionTypeAnnotation"&&o.returnType===u)&&i.length===1&&i[0].name===null&&u.this!==i[0]&&i[0].typeAnnotation&&u.typeParameters===null&&wt(i[0].typeAnnotation)&&!u.rest?r.arrowParens==="always"?["(",...y,")"]:y:[a,"(",E([F,...y]),b(!uu(u)&&le(r,"all")?",":""),F,")"]}function ss(e){if(!e)return!1;let t=Y(e);if(t.length!==1)return!1;let[r]=t;return!d(r)&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&ke(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&ke(r.typeAnnotation)&&r!==e.rest||r.type==="AssignmentPattern"&&(r.left.type==="ObjectPattern"||r.left.type==="ArrayPattern")&&(r.right.type==="Identifier"||Z(r.right)&&r.right.properties.length===0||G(r.right)&&r.right.elements.length===0))}function Np(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function xt(e,t){var s;let r=Np(e);if(!r)return!1;let n=(s=e.typeParameters)==null?void 0:s.params;if(n){if(n.length>1)return!1;if(n.length===1){let u=n[0];if(u.constraint||u.default)return!1}}return Y(e).length===1&&(ke(r)||K(t))}function Up(e){return e.match(t=>t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement",(t,r)=>{if(t.type==="CallExpression"&&r==="arguments"&&t.arguments.length===1&&t.callee.type==="CallExpression"){let n=t.callee.callee;return n.type==="Identifier"||n.type==="MemberExpression"&&!n.computed&&n.object.type==="Identifier"&&n.property.type==="Identifier"}return!1},(t,r)=>t.type==="VariableDeclarator"&&r==="init"||t.type==="ExportDefaultDeclaration"&&r==="declaration"||t.type==="TSExportAssignment"&&r==="expression"||t.type==="AssignmentExpression"&&r==="right"&&t.left.type==="MemberExpression"&&t.left.object.type==="Identifier"&&t.left.object.name==="module"&&t.left.property.type==="Identifier"&&t.left.property.name==="exports",t=>t.type!=="VariableDeclaration"||t.kind==="const"&&t.declarations.length===1)}function Uu(e){let t=Y(e);return t.length>1&&t.some(r=>r.type==="TSParameterProperty")}function us(e){if(wt(e)||ke(e))return!0;if(e.type==="UnionTypeAnnotation"||e.type==="TSUnionType"){let t=e.types.filter(s=>s.type==="VoidTypeAnnotation"||s.type==="TSVoidKeyword"||s.type==="NullLiteralTypeAnnotation"||s.type==="TSNullKeyword").length,r=e.types.some(s=>s.type==="ObjectTypeAnnotation"||s.type==="TSTypeLiteral"||s.type==="GenericTypeAnnotation"||s.type==="TSTypeReference"),n=e.types.some(s=>d(s));if(e.types.length-1===t&&r&&!n)return!0}return!1}function Gu(e,t,r){let n=t.semi?";":"",{node:s}=e,u=[Q(e),"opaque type ",r("id"),r("typeParameters")];return s.supertype&&u.push(": ",r("supertype")),s.impltype&&u.push(" = ",r("impltype")),u.push(n),u}function Jr(e,t,r){let n=t.semi?";":"",{node:s}=e,u=[Q(e)];u.push("type ",r("id"),r("typeParameters"));let i=s.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[ft(e,t,r,u," =",i),n]}function Nr(e,t,r){let n=!1;return D(e.map(({isFirst:s,previous:u,node:i,index:a})=>{let o=r();if(s)return o;let p=ke(i),m=ke(u);return m&&p?[" & ",n?E(o):o]:!m&&!p?E([" &",A,o]):(a>1&&(n=!0),[" & ",a>1?E(o):o])},"types"))}function Ur(e,t,r){let{node:n}=e,{parent:s}=e,u=s.type!=="TypeParameterInstantiation"&&s.type!=="TSTypeParameterInstantiation"&&s.type!=="GenericTypeAnnotation"&&s.type!=="TSTypeReference"&&s.type!=="TSTypeAssertion"&&s.type!=="TupleTypeAnnotation"&&s.type!=="TSTupleType"&&!(s.type==="FunctionTypeParam"&&!s.name&&e.grandparent.this!==s)&&!((s.type==="TypeAlias"||s.type==="VariableDeclarator"||s.type==="TSTypeAliasDeclaration")&&Ie(t.originalText,n)),i=us(n),a=e.map(m=>{let y=r();return i||(y=ye(2,y)),pe(m,y,t)},"types");if(i)return B(" | ",a);let o=u&&!Ie(t.originalText,n),p=[b([o?A:"","| "]),B([A,"| "],a)];return we(e,t)?D([E(p),F]):(s.type==="TupleTypeAnnotation"||s.type==="TSTupleType")&&s[s.type==="TupleTypeAnnotation"&&s.types?"types":"elementTypes"].length>1?D([E([b(["(",F]),p]),F,b(")")]):D(u?E(p):p)}function Gp(e){var n;let{node:t,parent:r}=e;return t.type==="FunctionTypeAnnotation"&&(gr(r)||!((r.type==="ObjectTypeProperty"||r.type==="ObjectTypeInternalSlot")&&!r.variance&&!r.optional&&mt(r,t)||r.type==="ObjectTypeCallProperty"||((n=e.getParentNode(2))==null?void 0:n.type)==="DeclareFunction"))}function Gr(e,t,r){let{node:n}=e,s=[_t(e)];(n.type==="TSConstructorType"||n.type==="TSConstructSignatureDeclaration")&&s.push("new ");let u=at(e,r,t,!1,!0),i=[];return n.type==="FunctionTypeAnnotation"?i.push(Gp(e)?" => ":": ",r("returnType")):i.push(q(e,r,n.returnType?"returnType":"typeAnnotation")),xt(n,i)&&(u=D(u)),s.push(u,i),D(s)}function qr(e,t,r){return[r("objectType"),X(e),"[",r("indexType"),"]"]}function Wr(e,t,r){return["infer ",r("typeParameter")]}function is(e,t,r){let{node:n}=e;return[n.postfix?"":r,q(e,t),n.postfix?r:""]}function Yr(e,t,r){let{node:n}=e;return["...",...n.type==="TupleTypeSpreadElement"&&n.label?[r("label"),": "]:[],r("typeAnnotation")]}function Xr(e,t,r){let{node:n}=e;return[n.variance?r("variance"):"",r("label"),n.optional?"?":"",": ",r("elementType")]}var qp=new WeakSet;function q(e,t,r="typeAnnotation"){let{node:{[r]:n}}=e;if(!n)return"";let s=!1;if(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation"){let u=e.call(qu,r);(u==="=>"||u===":"&&d(n,x.Leading))&&(s=!0),qp.add(n)}return s?[" ",t(r)]:t(r)}var qu=e=>e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>(r==="returnType"||r==="typeAnnotation")&&(t.type==="TSFunctionType"||t.type==="TSConstructorType"))?"=>":e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>r==="typeAnnotation"&&(t.type==="TSJSDocNullableType"||t.type==="TSJSDocNonNullableType"||t.type==="TSTypePredicate"))||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareFunction")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="bound"&&t.type==="TypeParameter"&&t.usesExtendsBound)?"":":";function $r(e,t,r){let n=qu(e);return n?[n," ",r("typeAnnotation")]:r("typeAnnotation")}function Vr(e){return[e("elementType"),"[]"]}function Hr({node:e},t){return["typeof ",...e.type==="TSTypeQuery"?[t("exprName"),t("typeParameters")]:[t("argument")]]}function Kr(e,t){let{node:r}=e;return[r.asserts?"asserts ":"",t("parameterName"),r.typeAnnotation?[" is ",q(e,t)]:""]}function X(e){let{node:t}=e;return!t.optional||t.type==="Identifier"&&t===e.parent.key?"":k(t)||J(t)&&t.computed||t.type==="OptionalIndexedAccessType"?"?.":"?"}function zr(e){return e.node.definite||e.match(void 0,(t,r)=>r==="id"&&t.type==="VariableDeclarator"&&t.definite)?"!":""}var Wp=new Set(["DeclareClass","DeclareFunction","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]);function Q(e){let{node:t}=e;return t.declare||Wp.has(t.type)&&e.parent.type!=="DeclareExportDeclaration"?"declare ":""}var Yp=new Set(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function _t({node:e}){return e.abstract||Yp.has(e.type)?"abstract ":""}function Ve(e,t,r){let n=e.node;return n.typeArguments?r("typeArguments"):n.typeParameters?r("typeParameters"):""}function vr(e,t,r){return["::",r("callee")]}function ot(e,t,r){return e.type==="EmptyStatement"?";":e.type==="BlockStatement"||r?[" ",t]:E([A,t])}function Qr(e,t){return["...",t("argument"),q(e,t)]}function jt(e){return e.accessibility?e.accessibility+" ":""}function as(e,t,r){let{node:n}=e;return D([B(A,e.map(r,"decorators")),Xu(n,t)?C:A])}function Wu(e,t,r){return $u(e.node)?[B(C,e.map(r,"declaration","decorators")),C]:""}function Yu(e,t,r){let{node:n,parent:s}=e,{decorators:u}=n;if(!P(u)||$u(s)||wr(e))return"";let i=n.type==="ClassExpression"||n.type==="ClassDeclaration"||Xu(n,t);return[e.key==="declaration"&&Zs(s)?C:i?Ae:"",B(A,e.map(r,"decorators")),A]}function Xu(e,t){return e.decorators.some(r=>z(t.originalText,O(r)))}function $u(e){var r;if(e.type!=="ExportDefaultDeclaration"&&e.type!=="ExportNamedDeclaration"&&e.type!=="DeclareExportDeclaration")return!1;let t=(r=e.declaration)==null?void 0:r.decorators;return P(t)&&mt(e,t[0])}function Vu(e,t,r){let{node:n}=e;return["import",n.module?" module":"",ps(n),zu(e,t,r),Ku(e,t,r),Zu(e,t,r),t.semi?";":""]}var Hu=e=>e.type==="ExportDefaultDeclaration"||e.type==="DeclareExportDeclaration"&&e.default;function Zr(e,t,r){let{node:n}=e,s=[Wu(e,t,r),Q(e),"export",Hu(n)?" default":""],{declaration:u,exported:i}=n;return d(n,x.Dangling)&&(s.push(" ",M(e,t)),Sr(n)&&s.push(C)),u?s.push(" ",r("declaration")):(s.push(Vp(n)),n.type==="ExportAllDeclaration"||n.type==="DeclareExportAllDeclaration"?(s.push(" *"),i&&s.push(" as ",r("exported"))):s.push(zu(e,t,r)),s.push(Ku(e,t,r),Zu(e,t,r))),s.push($p(n,t)),s}var Xp=j(["ClassDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareFunction","TSDeclareFunction","EnumDeclaration"]);function $p(e,t){return t.semi&&(!e.declaration||Hu(e)&&!Xp(e.declaration))?";":""}function os(e,t=!0){return e&&e!=="value"?`${t?" ":""}${e}${t?"":" "}`:""}function ps(e,t){return os(e.importKind,t)}function Vp(e){return os(e.exportKind)}function Ku(e,t,r){let{node:n}=e;if(!n.source)return"";let s=[];return Qu(n,t)||s.push(" from"),s.push(" ",r("source")),s}function zu(e,t,r){let{node:n}=e;if(Qu(n,t))return"";let s=[" "];if(P(n.specifiers)){let u=[],i=[];e.each(()=>{let a=e.node.type;if(a==="ExportNamespaceSpecifier"||a==="ExportDefaultSpecifier"||a==="ImportNamespaceSpecifier"||a==="ImportDefaultSpecifier")u.push(r());else if(a==="ExportSpecifier"||a==="ImportSpecifier")i.push(r());else throw new Oe(n,"specifier")},"specifiers"),s.push(B(", ",u)),i.length>0&&(u.length>0&&s.push(", "),i.length>1||u.length>0||n.specifiers.some(o=>d(o))?s.push(D(["{",E([t.bracketSpacing?A:F,B([",",A],i)]),b(le(t)?",":""),t.bracketSpacing?A:F,"}"])):s.push(["{",t.bracketSpacing?" ":"",...i,t.bracketSpacing?" ":"","}"]))}else s.push("{}");return s}function Qu(e,t){let{type:r,importKind:n,source:s,specifiers:u}=e;return r!=="ImportDeclaration"||P(u)||n==="type"?!1:!/{\s*}/.test(t.originalText.slice(U(e),U(s)))}function Zu(e,t,r){var i;let{node:n}=e,s=P(n.attributes)?"attributes":P(n.assertions)?"assertions":void 0;return s?[` ${s==="assertions"||(i=n.extra)!=null&&i.deprecatedAssertSyntax?"assert":"with"} {`,t.bracketSpacing?" ":"",B(", ",e.map(r,s)),t.bracketSpacing?" ":"","}"]:""}function ei(e,t,r){let{node:n}=e,{type:s}=n,u=s.startsWith("Import"),i=u?"imported":"local",a=u?"local":"exported",o=n[i],p=n[a],m="",y="";return s==="ExportNamespaceSpecifier"||s==="ImportNamespaceSpecifier"?m="*":o&&(m=r(i)),p&&!Hp(n)&&(y=r(a)),[os(s==="ImportSpecifier"?n.importKind:n.exportKind,!1),m,m&&y?" as ":"",y]}function Hp(e){if(e.type!=="ImportSpecifier"&&e.type!=="ExportSpecifier")return!1;let{local:t,[e.type==="ImportSpecifier"?"imported":"exported"]:r}=e;if(t.type!==r.type||!$s(t,r))return!1;if(ee(t))return t.value===r.value&&oe(t)===oe(r);switch(t.type){case"Identifier":return t.name===r.name;default:return!1}}function Kp(e){let t=[e];for(let r=0;rc[$]===n),l=c.type===n.type&&!f,h,g,S=0;do g=h||n,h=e.getParentNode(S),S++;while(h&&h.type===n.type&&a.every($=>h[$]!==g));let I=h||c,v=g;if(s&&(V(n[a[0]])||V(o)||V(p)||Kp(v))){y=!0,l=!0;let $=Ee=>[b("("),E([F,Ee]),F,b(")")],Be=Ee=>Ee.type==="NullLiteral"||Ee.type==="Literal"&&Ee.value===null||Ee.type==="Identifier"&&Ee.name==="undefined";m.push(" ? ",Be(o)?r(u):$(r(u))," : ",p.type===n.type||Be(p)?r(i):$(r(i)))}else{let $=[A,"? ",o.type===n.type?b("","("):"",ye(2,r(u)),o.type===n.type?b("",")"):"",A,": ",p.type===n.type?r(i):ye(2,r(i))];m.push(c.type!==n.type||c[i]===n||f?$:t.useTabs?vs(E($)):ye(Math.max(0,t.tabWidth-2),$))}let _=[u,i,...a].some($=>d(n[$],Be=>ae(Be)&&yt(t.originalText,U(Be),O(Be)))),R=$=>c===I?D($,{shouldBreak:_}):_?[$,Ae]:$,T=!y&&(J(c)||c.type==="NGPipeExpression"&&c.left===n)&&!c.computed,N=Zp(e),Se=R([zp(e,t,r),l?m:E(m),s&&T&&!N?F:""]);return f||N?D([E([F,Se]),F]):Se}function ec(e,t,r=0){let n=0;for(let s=r;s/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;var Ys={eastAsianWidth(e){var t=e.charCodeAt(0),r=e.length==2?e.charCodeAt(1):0,n=t;return 55296<=t&&t<=56319&&56320<=r&&r<=57343&&(t&=1023,r&=1023,n=t<<10|r,n+=65536),n==12288||65281<=n&&n<=65376||65504<=n&&n<=65510?"F":4352<=n&&n<=4447||4515<=n&&n<=4519||4602<=n&&n<=4607||9001<=n&&n<=9002||11904<=n&&n<=11929||11931<=n&&n<=12019||12032<=n&&n<=12245||12272<=n&&n<=12283||12289<=n&&n<=12350||12353<=n&&n<=12438||12441<=n&&n<=12543||12549<=n&&n<=12589||12593<=n&&n<=12686||12688<=n&&n<=12730||12736<=n&&n<=12771||12784<=n&&n<=12830||12832<=n&&n<=12871||12880<=n&&n<=13054||13056<=n&&n<=19903||19968<=n&&n<=42124||42128<=n&&n<=42182||43360<=n&&n<=43388||44032<=n&&n<=55203||55216<=n&&n<=55238||55243<=n&&n<=55291||63744<=n&&n<=64255||65040<=n&&n<=65049||65072<=n&&n<=65106||65108<=n&&n<=65126||65128<=n&&n<=65131||110592<=n&&n<=110593||127488<=n&&n<=127490||127504<=n&&n<=127546||127552<=n&&n<=127560||127568<=n&&n<=127569||131072<=n&&n<=194367||177984<=n&&n<=196605||196608<=n&&n<=262141?"W":"N"}};var _a=/[^\x20-\x7F]/;function ja(e){if(!e)return 0;if(!_a.test(e))return e.length;e=e.replace(Ws()," ");let t=0;for(let r of e){let n=r.codePointAt(0);if(n<=31||n>=127&&n<=159||n>=768&&n<=879)continue;let s=Ys.eastAsianWidth(r);t+=s==="F"||s==="W"?2:1}return t}var tt=ja;function U(e){var n;let t=e.range?e.range[0]:e.start,r=((n=e.declaration)==null?void 0:n.decorators)??e.decorators;return b(r)?Math.min(U(r[0]),t):t}function O(e){return e.range?e.range[1]:e.end}function yt(e,t){let r=U(e);return Number.isInteger(r)&&r===U(t)}function Ma(e,t){let r=O(e);return Number.isInteger(r)&&r===O(t)}function Xs(e,t){return yt(e,t)&&Ma(e,t)}var qt=null;function Wt(e){if(qt!==null&&typeof qt.property){let t=qt;return qt=Wt.prototype=null,t}return qt=Wt.prototype=e??Object.create(null),new Wt}var Ra=10;for(let e=0;e<=Ra;e++)Wt();function bn(e){return Wt(e)}function Ja(e,t="type"){bn(e);function r(n){let s=n[t],u=e[s];if(!Array.isArray(u))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return u}return r}var fr=Ja;var $s={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","assertions","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes","assertions"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes","assertions"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ImportExpression:["source","attributes"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareEnum:["id","body"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]};var Na=fr($s),Er=Na;function Ua(e){return e=new Set(e),t=>e.has(t==null?void 0:t.type)}var j=Ua;var Ga=j(["Block","CommentBlock","MultiLine"]),ae=Ga;function qa(e,t){let r=t.split(".");for(let n=r.length-1;n>=0;n--){let s=r[n];if(n===0)return e.type==="Identifier"&&e.name===s;if(e.type!=="MemberExpression"||e.optional||e.computed||e.property.type!=="Identifier"||e.property.name!==s)return!1;e=e.object}}function Wa(e,t){return t.some(r=>qa(e,r))}var Vs=Wa;var Ya=j(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),Fr=Ya;function Xa({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}var Cr=Xa;function Xt(e,t){return t(e)||Us(e,{getVisitorKeys:Er,predicate:t})}function Lt(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||k(e)||J(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||Le(e)||e.type==="TSNonNullExpression"||e.type==="ChainExpression"}function zs(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function Ar(e){if(e.expressions)return["expressions",0];if(e.left)return["left"];if(e.test)return["test"];if(e.object)return["object"];if(e.callee)return["callee"];if(e.tag)return["tag"];if(e.argument)return["argument"];if(e.expression)return["expression"];throw new Error("Unexpected node has no left side.")}var $t=j(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),Qs=j(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),G=j(["ArrayExpression","TupleExpression"]),ee=j(["ObjectExpression","RecordExpression"]);function he(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function Tr(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&he(e.argument)}function Q(e){return e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"}function wn(e){return e.type==="RegExpLiteral"||e.type==="Literal"&&!!e.regex}var ke=j(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),It=j(["FunctionExpression","ArrowFunctionExpression"]);function $a(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function Pn(e){return k(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var Y=j(["JSXElement","JSXFragment"]);function On(e){return e.kind==="get"||e.kind==="set"}function vn(e){return On(e)||yt(e,e.value)}function xr(e){return(e.type==="ObjectTypeProperty"||e.type==="ObjectTypeInternalSlot")&&e.value.type==="FunctionTypeAnnotation"&&!e.static&&!vn(e)}function Zs(e){return(e.type==="TypeAnnotation"||e.type==="TSTypeAnnotation")&&e.typeAnnotation.type==="FunctionTypeAnnotation"&&!e.static&&!yt(e,e.typeAnnotation)}var ce=j(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function Dt(e){return J(e)||e.type==="BindExpression"&&!!e.object}var Va=j(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function wt(e){return Cr(e)||Fr(e)||Va(e)||(e.type==="GenericTypeAnnotation"||e.type==="TSTypeReference")&&!e.typeParameters}function Ha(e){let t=/^(?:before|after)(?:Each|All)$/;return e.callee.type==="Identifier"&&e.arguments.length===1&&t.test(e.callee.name)}var Ka=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.step","test.describe","test.describe.only","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function za(e){return Vs(e,Ka)}function Ct(e,t){if(e.type!=="CallExpression")return!1;if(e.arguments.length===1){if(Pn(e)&&t&&Ct(t))return It(e.arguments[0]);if(Ha(e))return Pn(e.arguments[0])}else if((e.arguments.length===2||e.arguments.length===3)&&(e.arguments[0].type==="TemplateLiteral"||Q(e.arguments[0]))&&za(e.callee))return e.arguments[2]&&!he(e.arguments[2])?!1:(e.arguments.length===2?It(e.arguments[1]):$a(e.arguments[1])&&X(e.arguments[1]).length<=1)||Pn(e.arguments[1]);return!1}var k=j(["CallExpression","OptionalCallExpression"]),J=j(["MemberExpression","OptionalMemberExpression"]);function eu(e){let t="expressions";e.type==="TSTemplateLiteralType"&&(t="types");let r=e[t];return r.length===0?!1:r.every(n=>{if(d(n))return!1;if(n.type==="Identifier"||n.type==="ThisExpression")return!0;if(n.type==="ChainExpression"&&(n=n.expression),J(n)){let s=n;for(;J(s);)if(s.property.type!=="Identifier"&&s.property.type!=="Literal"&&s.property.type!=="StringLiteral"&&s.property.type!=="NumericLiteral"||(s=s.object,d(s)))return!1;return s.type==="Identifier"||s.type==="ThisExpression"}return!1})}function Ie(e,t){return Y(t)?dt(t):d(t,x.Leading,r=>z(e,O(r)))}function _n(e,t){return t.parser!=="json"&&Q(e.key)&&oe(e.key).slice(1,-1)===e.key.value&&(Js(e.key.value)&&!(t.parser==="babel-ts"&&e.type==="ClassProperty"||t.parser==="typescript"&&e.type==="PropertyDefinition")||jn(e.key.value)&&String(Number(e.key.value))===e.key.value&&(t.parser==="babel"||t.parser==="acorn"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree"))}function jn(e){return/^(?:\d+|\d+\.\d+)$/.test(e)}function Hs(e){return e.quasis.some(t=>t.value.raw.includes(` +`))}function gr(e,t){return(e.type==="TemplateLiteral"&&Hs(e)||e.type==="TaggedTemplateExpression"&&Hs(e.quasi))&&!z(t,U(e),{backwards:!0})}function hr(e){if(!d(e))return!1;let t=w(!1,Kt(e,x.Dangling),-1);return t&&!ae(t)}function tu(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(It(r)){if(t+=1,t>1)return!0}else if(k(r)){for(let n of r.arguments)if(It(n))return!0}return!1}function Sr(e){let{node:t,parent:r,key:n}=e;return n==="callee"&&k(t)&&k(r)&&r.arguments.length>0&&t.arguments.length>r.arguments.length}var Qa=new Set(["!","-","+","~"]);function ge(e,t=2){if(t<=0)return!1;let r=n=>ge(n,t-1);if(wn(e))return tt(e.pattern??e.regex.pattern)<=5;if(e.type==="Literal"||e.type==="BigIntLiteral"||e.type==="DecimalLiteral"||e.type==="BooleanLiteral"||e.type==="NullLiteral"||e.type==="NumericLiteral"||e.type==="StringLiteral"||e.type==="Identifier"||e.type==="ThisExpression"||e.type==="Super"||e.type==="PrivateName"||e.type==="PrivateIdentifier"||e.type==="ArgumentPlaceholder"||e.type==="Import")return!0;if(e.type==="TemplateLiteral")return e.quasis.every(n=>!n.value.raw.includes(` +`))&&e.expressions.every(r);if(ee(e))return e.properties.every(n=>!n.computed&&(n.shorthand||n.value&&r(n.value)));if(G(e))return e.elements.every(n=>n===null||r(n));if(it(e)){if(e.type==="ImportExpression"||ge(e.callee,t)){let n=Ce(e);return n.length<=t&&n.every(r)}return!1}return J(e)?ge(e.object,t)&&ge(e.property,t):e.type==="UnaryExpression"&&Qa.has(e.operator)||e.type==="UpdateExpression"?ge(e.argument,t):e.type==="TSNonNullExpression"?ge(e.expression,t):!1}function oe(e){var t;return((t=e.extra)==null?void 0:t.raw)??e.raw}function ru(e){return e}function le(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")}function re(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return re(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return re(e.object,t);case"TaggedTemplateExpression":return e.tag.type==="FunctionExpression"?!1:re(e.tag,t);case"CallExpression":case"OptionalCallExpression":return e.callee.type==="FunctionExpression"?!1:re(e.callee,t);case"ConditionalExpression":return re(e.test,t);case"UpdateExpression":return!e.prefix&&re(e.argument,t);case"BindExpression":return e.object&&re(e.object,t);case"SequenceExpression":return re(e.expressions[0],t);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":return re(e.expression,t);default:return t(e)}}var Ks={"==":!0,"!=":!0,"===":!0,"!==":!0},dr={"*":!0,"/":!0,"%":!0},Ln={">>":!0,">>>":!0,"<<":!0};function Vt(e,t){return!(Yt(t)!==Yt(e)||e==="**"||Ks[e]&&Ks[t]||t==="%"&&dr[e]||e==="%"&&dr[t]||t!==e&&dr[t]&&dr[e]||Ln[e]&&Ln[t])}var Za=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(r=>[r,t])));function Yt(e){return Za.get(e)}function nu(e){return!!Ln[e]||e==="|"||e==="^"||e==="&"}function su(e){var r;if(e.rest)return!0;let t=X(e);return((r=w(!1,t,-1))==null?void 0:r.type)==="RestElement"}var kn=new WeakMap;function X(e){if(kn.has(e))return kn.get(e);let t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push(...e.parameters):Array.isArray(e.params)&&t.push(...e.params),e.rest&&t.push(e.rest),kn.set(e,t),t}function uu(e,t){let{node:r}=e,n=0,s=u=>t(u,n++);r.this&&e.call(s,"this"),Array.isArray(r.parameters)?e.each(s,"parameters"):Array.isArray(r.params)&&e.each(s,"params"),r.rest&&e.call(s,"rest")}var In=new WeakMap;function Ce(e){if(In.has(e))return In.get(e);let t=e.arguments;return e.type==="ImportExpression"&&(t=[e.source],e.attributes&&t.push(e.attributes)),In.set(e,t),t}function Br(e,t){let{node:r}=e;r.type==="ImportExpression"?(e.call(n=>t(n,0),"source"),r.attributes&&e.call(n=>t(n,1),"attributes")):e.each(t,"arguments")}function Mn(e,t){if(e.type==="ImportExpression"){if(t===0||t===(e.attributes?-2:-1))return"source";if(e.attributes&&(t===1||t===-1))return"attributes";throw new RangeError("Invalid argument index")}if(t<0&&(t=e.arguments.length+t),t<0||t>=e.arguments.length)throw new RangeError("Invalid argument index");return["arguments",t]}function Ht(e){return e.value.trim()==="prettier-ignore"&&!e.unignore}function dt(e){return(e==null?void 0:e.prettierIgnore)||d(e,x.PrettierIgnore)}var x={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},iu=(e,t)=>{if(typeof e=="function"&&(t=e,e=0),e||t)return(r,n,s)=>!(e&x.Leading&&!r.leading||e&x.Trailing&&!r.trailing||e&x.Dangling&&(r.leading||r.trailing)||e&x.Block&&!ae(r)||e&x.Line&&!$t(r)||e&x.First&&n!==0||e&x.Last&&n!==s.length-1||e&x.PrettierIgnore&&!Ht(r)||t&&!t(r))};function d(e,t,r){if(!b(e==null?void 0:e.comments))return!1;let n=iu(t,r);return n?e.comments.some(n):!0}function Kt(e,t,r){if(!Array.isArray(e==null?void 0:e.comments))return[];let n=iu(t,r);return n?e.comments.filter(n):e.comments}var me=(e,{originalText:t})=>kt(t,O(e));function it(e){return k(e)||e.type==="NewExpression"||e.type==="ImportExpression"}function fe(e){return e&&(e.type==="ObjectProperty"||e.type==="Property"&&!e.method&&e.kind==="init")}var zt=Symbol("ifWithoutBlockAndSameLineComment"),Le=j(["TSAsExpression","TSSatisfiesExpression"]);function Rn(e,t){var u,i,a,o,p,m,D;if(e.isRoot)return!1;let{node:r,key:n,parent:s}=e;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&no(r)&&Qt(e))return!0;if(eo(r))return!1;if(r.type==="Identifier"){if((u=r.extra)!=null&&u.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(r.name)||n==="left"&&(r.name==="async"&&!s.await||r.name==="let")&&s.type==="ForOfStatement")return!0;if(r.name==="let"){let c=(i=e.findAncestor(f=>f.type==="ForOfStatement"))==null?void 0:i.left;if(c&&re(c,f=>f===r))return!0}if(n==="object"&&r.name==="let"&&s.type==="MemberExpression"&&s.computed&&!s.optional){let c=e.findAncestor(l=>l.type==="ExpressionStatement"||l.type==="ForStatement"||l.type==="ForInStatement"),f=c?c.type==="ExpressionStatement"?c.expression:c.type==="ForStatement"?c.init:c.left:void 0;if(f&&re(f,l=>l===r))return!0}return!1}if(r.type==="ObjectExpression"||r.type==="FunctionExpression"||r.type==="ClassExpression"||r.type==="DoExpression"){let c=(a=e.findAncestor(f=>f.type==="ExpressionStatement"))==null?void 0:a.expression;if(c&&re(c,f=>f===r))return!0}if(r.type==="ObjectExpression"){let c=(o=e.findAncestor(f=>f.type==="ArrowFunctionExpression"))==null?void 0:o.body;if(c&&c.type!=="SequenceExpression"&&c.type!=="AssignmentExpression"&&re(c,f=>f===r))return!0}switch(s.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(n==="superClass"&&(r.type==="ArrowFunctionExpression"||r.type==="AssignmentExpression"||r.type==="AwaitExpression"||r.type==="BinaryExpression"||r.type==="ConditionalExpression"||r.type==="LogicalExpression"||r.type==="NewExpression"||r.type==="ObjectExpression"||r.type==="SequenceExpression"||r.type==="TaggedTemplateExpression"||r.type==="UnaryExpression"||r.type==="UpdateExpression"||r.type==="YieldExpression"||r.type==="TSNonNullExpression"||r.type==="ClassExpression"&&b(r.decorators)))return!0;break;case"ExportDefaultDeclaration":return au(e,t)||r.type==="SequenceExpression";case"Decorator":if(n==="expression"){if(J(r)&&r.computed)return!0;let c=!1,f=!1,l=r;for(;l;)switch(l.type){case"MemberExpression":f=!0,l=l.object;break;case"CallExpression":if(f||c)return t.parser!=="typescript";c=!0,l=l.callee;break;case"Identifier":return!1;case"TaggedTemplateExpression":return t.parser!=="typescript";default:return!0}return!0}break;case"TypeAnnotation":if(e.match(void 0,void 0,(c,f)=>f==="returnType"&&c.type==="ArrowFunctionExpression")&&ro(r))return!0;break}switch(r.type){case"UpdateExpression":if(s.type==="UnaryExpression")return r.prefix&&(r.operator==="++"&&s.operator==="+"||r.operator==="--"&&s.operator==="-");case"UnaryExpression":switch(s.type){case"UnaryExpression":return r.operator===s.operator&&(r.operator==="+"||r.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"BinaryExpression":return n==="left"&&s.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(s.type==="UpdateExpression"||r.operator==="in"&&to(e))return!0;if(r.operator==="|>"&&((p=r.extra)!=null&&p.parenthesized)){let c=e.grandparent;if(c.type==="BinaryExpression"&&c.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"LogicalExpression":switch(s.type){case"TSAsExpression":case"TSSatisfiesExpression":return!Le(r);case"ConditionalExpression":return Le(r);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return n==="callee";case"ClassExpression":case"ClassDeclaration":return n==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"AssignmentExpression":case"AssignmentPattern":return n==="left"&&(r.type==="TSTypeAssertion"||Le(r));case"LogicalExpression":if(r.type==="LogicalExpression")return s.operator!==r.operator;case"BinaryExpression":{let{operator:c,type:f}=r;if(!c&&f!=="TSTypeAssertion")return!0;let l=Yt(c),h=s.operator,g=Yt(h);return g>l||n==="right"&&g===l||g===l&&!Vt(h,c)?!0:g");default:return!1}case"TSFunctionType":if(e.match(c=>c.type==="TSFunctionType",(c,f)=>f==="typeAnnotation"&&c.type==="TSTypeAnnotation",(c,f)=>f==="returnType"&&c.type==="ArrowFunctionExpression"))return!0;case"TSConditionalType":case"TSConstructorType":if(n==="extendsType"&&s.type==="TSConditionalType"){if(r.type==="TSConditionalType")return!0;let{typeAnnotation:c}=r.returnType||r.typeAnnotation;if(c.type==="TSTypePredicate"&&c.typeAnnotation&&(c=c.typeAnnotation.typeAnnotation),c.type==="TSInferType"&&c.typeParameter.constraint)return!0}if(n==="checkType"&&s.type==="TSConditionalType")return!0;case"TSUnionType":case"TSIntersectionType":if((s.type==="TSUnionType"||s.type==="TSIntersectionType")&&s.types.length>1&&(!r.types||r.types.length>1))return!0;case"TSInferType":if(r.type==="TSInferType"&&s.type==="TSRestType")return!1;case"TSTypeOperator":return s.type==="TSArrayType"||s.type==="TSOptionalType"||s.type==="TSRestType"||n==="objectType"&&s.type==="TSIndexedAccessType"||s.type==="TSTypeOperator"||s.type==="TSTypeAnnotation"&&e.grandparent.type.startsWith("TSJSDoc");case"TSTypeQuery":return n==="objectType"&&s.type==="TSIndexedAccessType"||n==="elementType"&&s.type==="TSArrayType";case"TypeofTypeAnnotation":return n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType")||n==="elementType"&&s.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return s.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return s.type==="ArrayTypeAnnotation"||s.type==="NullableTypeAnnotation"||s.type==="IntersectionTypeAnnotation"||s.type==="UnionTypeAnnotation"||n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType");case"InferTypeAnnotation":case"NullableTypeAnnotation":return s.type==="ArrayTypeAnnotation"||n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType");case"FunctionTypeAnnotation":{if(e.match(void 0,(f,l)=>l==="typeAnnotation"&&f.type==="TypeAnnotation",(f,l)=>l==="returnType"&&f.type==="ArrowFunctionExpression")||e.match(void 0,(f,l)=>l==="typeAnnotation"&&f.type==="TypePredicate",(f,l)=>l==="typeAnnotation"&&f.type==="TypeAnnotation",(f,l)=>l==="returnType"&&f.type==="ArrowFunctionExpression"))return!0;let c=s.type==="NullableTypeAnnotation"?e.grandparent:s;return c.type==="UnionTypeAnnotation"||c.type==="IntersectionTypeAnnotation"||c.type==="ArrayTypeAnnotation"||n==="objectType"&&(c.type==="IndexedAccessType"||c.type==="OptionalIndexedAccessType")||n==="checkType"&&s.type==="ConditionalTypeAnnotation"||n==="extendsType"&&s.type==="ConditionalTypeAnnotation"&&r.returnType.type==="InferTypeAnnotation"&&r.returnType.typeParameter.bound||c.type==="NullableTypeAnnotation"||s.type==="FunctionTypeParam"&&s.name===null&&X(r).some(f=>{var l;return((l=f.typeAnnotation)==null?void 0:l.type)==="NullableTypeAnnotation"})}case"ConditionalTypeAnnotation":if(n==="extendsType"&&s.type==="ConditionalTypeAnnotation"&&r.type==="ConditionalTypeAnnotation"||n==="checkType"&&s.type==="ConditionalTypeAnnotation")return!0;case"OptionalIndexedAccessType":return n==="objectType"&&s.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof r.value=="string"&&s.type==="ExpressionStatement"&&!s.directive){let c=e.grandparent;return c.type==="Program"||c.type==="BlockStatement"}return n==="object"&&s.type==="MemberExpression"&&typeof r.value=="number";case"AssignmentExpression":{let c=e.grandparent;return n==="body"&&s.type==="ArrowFunctionExpression"?!0:n==="key"&&(s.type==="ClassProperty"||s.type==="PropertyDefinition")&&s.computed||(n==="init"||n==="update")&&s.type==="ForStatement"?!1:s.type==="ExpressionStatement"?r.left.type==="ObjectPattern":!(n==="key"&&s.type==="TSPropertySignature"||s.type==="AssignmentExpression"||s.type==="SequenceExpression"&&c.type==="ForStatement"&&(c.init===s||c.update===s)||n==="value"&&s.type==="Property"&&c.type==="ObjectPattern"&&c.properties.includes(s)||s.type==="NGChainedExpression")}case"ConditionalExpression":switch(s.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return n==="test";case"MemberExpression":case"OptionalMemberExpression":return n==="object";default:return!1}case"FunctionExpression":switch(s.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(s.type){case"BinaryExpression":return s.operator!=="|>"||((m=r.extra)==null?void 0:m.parenthesized);case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return n==="test";default:return!1}case"ClassExpression":switch(s.type){case"NewExpression":return n==="callee";default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":case"CallExpression":case"MemberExpression":if(so(e))return!0;case"TaggedTemplateExpression":case"TSNonNullExpression":if(n==="callee"&&(s.type==="BindExpression"||s.type==="NewExpression")){let c=r;for(;c;)switch(c.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":c=c.object;break;case"TaggedTemplateExpression":c=c.tag;break;case"TSNonNullExpression":c=c.expression;break;default:return!1}}return!1;case"BindExpression":return n==="callee"&&(s.type==="BindExpression"||s.type==="NewExpression")||n==="object"&&J(s);case"NGPipeExpression":return!(s.type==="NGRoot"||s.type==="NGMicrosyntaxExpression"||s.type==="ObjectProperty"&&!((D=r.extra)!=null&&D.parenthesized)||G(s)||n==="arguments"&&k(s)||n==="right"&&s.type==="NGPipeExpression"||n==="property"&&s.type==="MemberExpression"||s.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return n==="callee"||n==="left"&&s.type==="BinaryExpression"&&s.operator==="<"||!G(s)&&s.type!=="ArrowFunctionExpression"&&s.type!=="AssignmentExpression"&&s.type!=="AssignmentPattern"&&s.type!=="BinaryExpression"&&s.type!=="NewExpression"&&s.type!=="ConditionalExpression"&&s.type!=="ExpressionStatement"&&s.type!=="JsExpressionRoot"&&s.type!=="JSXAttribute"&&s.type!=="JSXElement"&&s.type!=="JSXExpressionContainer"&&s.type!=="JSXFragment"&&s.type!=="LogicalExpression"&&!k(s)&&!fe(s)&&s.type!=="ReturnStatement"&&s.type!=="ThrowStatement"&&s.type!=="TypeCastExpression"&&s.type!=="VariableDeclarator"&&s.type!=="YieldExpression";case"TSInstantiationExpression":return n==="object"&&J(s)}return!1}var eo=j(["BlockStatement","BreakStatement","ClassBody","ClassDeclaration","ClassMethod","ClassProperty","PropertyDefinition","ClassPrivateProperty","ContinueStatement","DebuggerStatement","DeclareClass","DeclareExportAllDeclaration","DeclareExportDeclaration","DeclareFunction","DeclareInterface","DeclareModule","DeclareModuleExports","DeclareVariable","DeclareEnum","DoWhileStatement","EnumDeclaration","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","IfStatement","ImportDeclaration","InterfaceDeclaration","LabeledStatement","MethodDefinition","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSNamespaceExportDeclaration","TypeAlias","VariableDeclaration","WhileStatement","WithStatement"]);function to(e){let t=0,{node:r}=e;for(;r;){let n=e.getParentNode(t++);if((n==null?void 0:n.type)==="ForStatement"&&n.init===r)return!0;r=n}return!1}function ro(e){return Xt(e,t=>t.type==="ObjectTypeAnnotation"&&Xt(t,r=>r.type==="FunctionTypeAnnotation"))}function no(e){return ee(e)}function Qt(e){let{parent:t,key:r}=e;switch(t.type){case"NGPipeExpression":if(r==="arguments"&&e.isLast)return e.callParent(Qt);break;case"ObjectProperty":if(r==="value")return e.callParent(()=>e.key==="properties"&&e.isLast);break;case"BinaryExpression":case"LogicalExpression":if(r==="right")return e.callParent(Qt);break;case"ConditionalExpression":if(r==="alternate")return e.callParent(Qt);break;case"UnaryExpression":if(t.prefix)return e.callParent(Qt);break}return!1}function au(e,t){let{node:r,parent:n}=e;return r.type==="FunctionExpression"||r.type==="ClassExpression"?n.type==="ExportDefaultDeclaration"||!Rn(e,t):!Lt(r)||n.type!=="ExportDefaultDeclaration"&&Rn(e,t)?!1:e.call(()=>au(e,t),...Ar(r))}function so(e){let{node:t,parent:r,grandparent:n,key:s}=e;return!!((t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression")&&(s==="object"&&r.type==="MemberExpression"||s==="callee"&&(r.type==="CallExpression"||r.type==="NewExpression")||r.type==="TSNonNullExpression"&&n.type==="MemberExpression"&&n.object===r)||e.match(()=>t.type==="CallExpression"||t.type==="MemberExpression",(u,i)=>i==="expression"&&u.type==="ChainExpression")&&(e.match(void 0,void 0,(u,i)=>i==="callee"&&(u.type==="CallExpression"&&!u.optional||u.type==="NewExpression")||i==="object"&&u.type==="MemberExpression"&&!u.optional)||e.match(void 0,void 0,(u,i)=>i==="expression"&&u.type==="TSNonNullExpression",(u,i)=>i==="object"&&u.type==="MemberExpression"))||e.match(()=>t.type==="CallExpression"||t.type==="MemberExpression",(u,i)=>i==="expression"&&u.type==="TSNonNullExpression",(u,i)=>i==="expression"&&u.type==="ChainExpression",(u,i)=>i==="object"&&u.type==="MemberExpression"))}var we=Rn;var uo=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},H=uo;function io(e,t){let r=t-1;r=We(e,r,{backwards:!0}),r=Ye(e,r,{backwards:!0}),r=We(e,r,{backwards:!0});let n=Ye(e,r,{backwards:!0});return r!==n}var ou=io;var ao=()=>!0;function Jn(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function oo(e,t){var m;let r=e.node,n=[Jn(e,t)],{printer:s,originalText:u,locStart:i,locEnd:a}=t;if((m=s.isBlockComment)==null?void 0:m.call(s,r)){let D=z(u,a(r))?z(u,i(r),{backwards:!0})?C:A:" ";n.push(D)}else n.push(C);let p=Ye(u,We(u,a(r)));return p!==!1&&z(u,p)&&n.push(C),n}function po(e,t,r){var p;let n=e.node,s=Jn(e,t),{printer:u,originalText:i,locStart:a}=t,o=(p=u.isBlockComment)==null?void 0:p.call(u,n);if(r!=null&&r.hasLineSuffix&&!(r!=null&&r.isBlock)||z(i,a(n),{backwards:!0})){let m=ou(i,a(n));return{doc:hn([C,m?C:"",s]),isBlock:o,hasLineSuffix:!0}}return!o||r!=null&&r.hasLineSuffix?{doc:[hn([" ",s]),Te],isBlock:o,hasLineSuffix:!0}:{doc:[" ",s],isBlock:o,hasLineSuffix:!1}}function M(e,t,r={}){let{node:n}=e;if(!b(n==null?void 0:n.comments))return"";let{indent:s=!1,marker:u,filter:i=ao}=r,a=[];if(e.each(({node:p})=>{p.leading||p.trailing||p.marker!==u||!i(p)||a.push(Jn(e,t))},"comments"),a.length===0)return"";let o=B(C,a);return s?E([C,o]):o}function Nn(e,t){let r=e.node;if(!r)return{};let n=t[Symbol.for("printedComments")];if((r.comments||[]).filter(o=>!n.has(o)).length===0)return{leading:"",trailing:""};let u=[],i=[],a;return e.each(()=>{let o=e.node;if(n!=null&&n.has(o))return;let{leading:p,trailing:m}=o;p?u.push(oo(e,t)):m&&(a=po(e,t,a),i.push(a.doc))},"comments"),{leading:u,trailing:i}}function pe(e,t,r){let{leading:n,trailing:s}=Nn(e,r);return!n&&!s?t:Gt(t,u=>[n,u,s])}var Un=class extends Error{name="UnexpectedNodeError";constructor(t,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`),this.node=t}},Oe=Un;var br="'",pu='"';function co(e,t){let r=t===!0||t===br?br:pu,n=r===br?pu:br,s=0,u=0;for(let i of e)i===r?s++:i===n&&u++;return s>u?n:r}var Pr=co;function Gn(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var ve,qn=class{constructor(t){bs(this,ve,void 0);Ps(this,ve,new Set(t))}getLeadingWhitespaceCount(t){let r=st(this,ve),n=0;for(let s=0;s=0&&r.has(t.charAt(s));s--)n++;return n}getLeadingWhitespace(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(0,r)}getTrailingWhitespace(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(t.length-r)}hasLeadingWhitespace(t){return st(this,ve).has(t.charAt(0))}hasTrailingWhitespace(t){return st(this,ve).has(w(!1,t,-1))}trimStart(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(r)}trimEnd(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-r)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,r=!1){let n=`[${Gn([...st(this,ve)].join(""))}]+`,s=new RegExp(r?`(${n})`:n);return t.split(s)}hasWhitespaceCharacter(t){let r=st(this,ve);return Array.prototype.some.call(t,n=>r.has(n))}hasNonWhitespaceCharacter(t){let r=st(this,ve);return Array.prototype.some.call(t,n=>!r.has(n))}isWhitespaceOnly(t){let r=st(this,ve);return Array.prototype.every.call(t,n=>r.has(n))}};ve=new WeakMap;var cu=qn;var Kn={};pr(Kn,{endOfLine:()=>Fo,ownLine:()=>Eo,remaining:()=>Co});function lo(e,t){let r=null,n=t;for(;n!==r;)r=n,n=We(e,n),n=bt(e,n),n=Pt(e,n),n=Ye(e,n);return n}var Xe=lo;function mo(e,t){let r=Xe(e,t);return r===!1?"":e.charAt(r)}var $e=mo;function yo(e,t,r){for(let n=t;n20&&(r=r.slice(0,19)+"\u2026"),t+(r?" "+r:"")}function Wn(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=Do(e)}function ne(e,t){t.leading=!0,t.trailing=!1,Wn(e,t)}function _e(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Wn(e,t)}function te(e,t){t.leading=!1,t.trailing=!0,Wn(e,t)}function fo(e){return ae(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/.test(e.value)}var lu=fo;function Eo(e){return[Cu,fu,To,Xn,$n,mu,yu,Oo,Lo,Hn,Fu,vo,Du,Eu,Vn].some(t=>t(e))}function Fo(e){return[Ao,fu,xo,Fu,Xn,$n,mu,yu,Eu,Io,wo,Hn,Mo,Vn,No].some(t=>t(e))}function Co(e){return[Cu,Xn,$n,go,ko,Du,Hn,Po,bo,Jo,Vn,Ro].some(t=>t(e))}function At(e,t){let r=(e.body||e.properties).find(({type:n})=>n!=="EmptyStatement");r?ne(r,t):_e(e,t)}function Yn(e,t){e.type==="BlockStatement"?At(e,t):ne(e,t)}function Ao({comment:e,followingNode:t}){return t&&lu(e)?(ne(t,e),!0):!1}function Xn({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){if((r==null?void 0:r.type)!=="IfStatement"||!n)return!1;if($e(s,O(e))===")")return te(t,e),!0;if(t===r.consequent&&n===r.alternate){if(t.type==="BlockStatement")te(t,e);else{let i=e.type==="SingleLine"||e.loc.start.line===e.loc.end.line,a=e.loc.start.line===t.loc.start.line;i&&a?_e(t,e,t.type==="ExpressionStatement"?zt:void 0):_e(r,e)}return!0}return n.type==="BlockStatement"?(At(n,e),!0):n.type==="IfStatement"?(Yn(n.consequent,e),!0):r.consequent===n?(ne(n,e),!0):!1}function $n({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){return(r==null?void 0:r.type)!=="WhileStatement"||!n?!1:$e(s,O(e))===")"?(te(t,e),!0):n.type==="BlockStatement"?(At(n,e),!0):r.body===n?(ne(n,e),!0):!1}function mu({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return(r==null?void 0:r.type)!=="TryStatement"&&(r==null?void 0:r.type)!=="CatchClause"||!n?!1:r.type==="CatchClause"&&t?(te(t,e),!0):n.type==="BlockStatement"?(At(n,e),!0):n.type==="TryStatement"?(Yn(n.finalizer,e),!0):n.type==="CatchClause"?(Yn(n.body,e),!0):!1}function To({comment:e,enclosingNode:t,followingNode:r}){return J(t)&&(r==null?void 0:r.type)==="Identifier"?(ne(t,e),!0):!1}function xo({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){let u=t&&!rt(s,O(t),U(e));return(!t||!u)&&((r==null?void 0:r.type)==="ConditionalExpression"||(r==null?void 0:r.type)==="TSConditionalType")&&n?(ne(n,e),!0):!1}function go({comment:e,precedingNode:t,enclosingNode:r}){return fe(r)&&r.shorthand&&r.key===t&&r.value.type==="AssignmentPattern"?(te(r.value.left,e),!0):!1}var ho=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function yu({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){if(ho.has(r==null?void 0:r.type)){if(b(r.decorators)&&(n==null?void 0:n.type)!=="Decorator")return te(w(!1,r.decorators,-1),e),!0;if(r.body&&n===r.body)return At(r.body,e),!0;if(n){if(r.superClass&&n===r.superClass&&t&&(t===r.id||t===r.typeParameters))return te(t,e),!0;for(let s of["implements","extends","mixins"])if(r[s]&&n===r[s][0])return t&&(t===r.id||t===r.typeParameters||t===r.superClass)?te(t,e):_e(r,e,s),!0}}return!1}var So=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty"]);function Du({comment:e,precedingNode:t,enclosingNode:r,text:n}){return r&&t&&$e(n,O(e))==="("&&(r.type==="Property"||r.type==="TSDeclareMethod"||r.type==="TSAbstractMethodDefinition")&&t.type==="Identifier"&&r.key===t&&$e(n,O(t))!==":"?(te(t,e),!0):(t==null?void 0:t.type)==="Decorator"&&So.has(r==null?void 0:r.type)?(te(t,e),!0):!1}var Bo=new Set(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function bo({comment:e,precedingNode:t,enclosingNode:r,text:n}){return $e(n,O(e))!=="("?!1:t&&Bo.has(r==null?void 0:r.type)?(te(t,e),!0):!1}function Po({comment:e,enclosingNode:t,text:r}){if((t==null?void 0:t.type)!=="ArrowFunctionExpression")return!1;let n=Xe(r,O(e));return n!==!1&&r.slice(n,n+2)==="=>"?(_e(t,e),!0):!1}function ko({comment:e,enclosingNode:t,text:r}){return $e(r,O(e))!==")"?!1:t&&(du(t)&&X(t).length===0||it(t)&&Ce(t).length===0)?(_e(t,e),!0):((t==null?void 0:t.type)==="MethodDefinition"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&X(t.value).length===0?(_e(t.value,e),!0):!1}function fu({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){if((t==null?void 0:t.type)==="FunctionTypeParam"&&(r==null?void 0:r.type)==="FunctionTypeAnnotation"&&(n==null?void 0:n.type)!=="FunctionTypeParam")return te(t,e),!0;if(((t==null?void 0:t.type)==="Identifier"||(t==null?void 0:t.type)==="AssignmentPattern"||(t==null?void 0:t.type)==="ObjectPattern"||(t==null?void 0:t.type)==="ArrayPattern"||(t==null?void 0:t.type)==="RestElement")&&r&&du(r)&&$e(s,O(e))===")")return te(t,e),!0;if((r==null?void 0:r.type)==="FunctionDeclaration"&&(n==null?void 0:n.type)==="BlockStatement"){let u=(()=>{let i=X(r);if(i.length>0)return Xe(s,O(w(!1,i,-1)));let a=Xe(s,O(r.id));return a!==!1&&Xe(s,a+1)})();if(U(e)>u)return At(n,e),!0}return!1}function Eu({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="LabeledStatement"?(ne(t,e),!0):!1}function Vn({comment:e,enclosingNode:t}){return((t==null?void 0:t.type)==="ContinueStatement"||(t==null?void 0:t.type)==="BreakStatement")&&!t.label?(te(t,e),!0):!1}function Io({comment:e,precedingNode:t,enclosingNode:r}){return k(r)&&t&&r.callee===t&&r.arguments.length>0?(ne(r.arguments[0],e),!0):!1}function Lo({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return(r==null?void 0:r.type)==="UnionTypeAnnotation"||(r==null?void 0:r.type)==="TSUnionType"?(Ht(e)&&(n.prettierIgnore=!0,e.unignore=!0),t?(te(t,e),!0):!1):(((n==null?void 0:n.type)==="UnionTypeAnnotation"||(n==null?void 0:n.type)==="TSUnionType")&&Ht(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function wo({comment:e,enclosingNode:t}){return fe(t)?(ne(t,e),!0):!1}function Hn({comment:e,enclosingNode:t,followingNode:r,ast:n,isLastComment:s}){var u;return((u=n==null?void 0:n.body)==null?void 0:u.length)===0?(s?_e(n,e):ne(n,e),!0):(t==null?void 0:t.type)==="Program"&&t.body.length===0&&!b(t.directives)?(s?_e(t,e):ne(t,e),!0):(r==null?void 0:r.type)==="Program"&&r.body.length===0&&(t==null?void 0:t.type)==="ModuleExpression"?(_e(r,e),!0):!1}function Oo({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="ForInStatement"||(t==null?void 0:t.type)==="ForOfStatement"?(ne(t,e),!0):!1}function Fu({comment:e,precedingNode:t,enclosingNode:r,text:n}){if((r==null?void 0:r.type)==="ImportSpecifier"||(r==null?void 0:r.type)==="ExportSpecifier")return ne(r,e),!0;let s=(t==null?void 0:t.type)==="ImportSpecifier"&&(r==null?void 0:r.type)==="ImportDeclaration",u=(t==null?void 0:t.type)==="ExportSpecifier"&&(r==null?void 0:r.type)==="ExportNamedDeclaration";return(s||u)&&z(n,O(e))?(te(t,e),!0):!1}function vo({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="AssignmentPattern"?(ne(t,e),!0):!1}var _o=new Set(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),jo=new Set(["ObjectExpression","RecordExpression","ArrayExpression","TupleExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function Mo({comment:e,enclosingNode:t,followingNode:r}){return _o.has(t==null?void 0:t.type)&&r&&(jo.has(r.type)||ae(e))?(ne(r,e),!0):!1}function Ro({comment:e,enclosingNode:t,followingNode:r,text:n}){return!r&&((t==null?void 0:t.type)==="TSMethodSignature"||(t==null?void 0:t.type)==="TSDeclareFunction"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&$e(n,O(e))===";"?(te(t,e),!0):!1}function Cu({comment:e,enclosingNode:t,followingNode:r}){if(Ht(e)&&(t==null?void 0:t.type)==="TSMappedType"&&(r==null?void 0:r.type)==="TSTypeParameter"&&r.constraint)return t.prettierIgnore=!0,e.unignore=!0,!0}function Jo({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return(r==null?void 0:r.type)!=="TSMappedType"?!1:(n==null?void 0:n.type)==="TSTypeParameter"&&n.name?(ne(n.name,e),!0):(t==null?void 0:t.type)==="TSTypeParameter"&&t.constraint?(te(t.constraint,e),!0):!1}function No({comment:e,enclosingNode:t,followingNode:r}){return!t||t.type!=="SwitchCase"||t.test||!r||r!==t.consequent[0]?!1:(r.type==="BlockStatement"&&$t(e)?At(r,e):_e(t,e),!0)}var du=j(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod"]);function Uo(e){let t=`*${e.value}*`.split(` +`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var Au=Uo;function Tu(e,t){let r=e.node;if($t(r))return t.originalText.slice(U(r),O(r)).trimEnd();if(ae(r))return Au(r)?Go(r):["/*",xe(r.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(r))}function Go(e){let t=e.value.split(` +`);return["/*",B(C,t.map((r,n)=>n===0?r.trimEnd():" "+(ne===""||e===A||e===C||e===F;function $o(e,t,r){var v,_,R;let{node:n}=e;if(n.type==="JSXElement"&&ap(n))return[r("openingElement"),r("closingElement")];let s=n.type==="JSXElement"?r("openingElement"):r("openingFragment"),u=n.type==="JSXElement"?r("closingElement"):r("closingFragment");if(n.children.length===1&&n.children[0].type==="JSXExpressionContainer"&&(n.children[0].expression.type==="TemplateLiteral"||n.children[0].expression.type==="TaggedTemplateExpression"))return[s,...e.map(r,"children"),u];n.children=n.children.map(T=>op(T)?{type:"JSXText",value:" ",raw:" "}:T);let i=n.children.some(Y),a=n.children.filter(T=>T.type==="JSXExpressionContainer").length>1,o=n.type==="JSXElement"&&n.openingElement.attributes.length>1,p=K(s)||i||o||a,m=e.parent.rootMarker==="mdx",D=t.singleQuote?"{' '}":'{" "}',c=m?" ":P([D,F]," "),f=((_=(v=n.openingElement)==null?void 0:v.name)==null?void 0:_.name)==="fbt",l=Vo(e,t,r,c,f),h=n.children.some(T=>Zt(T));for(let T=l.length-2;T>=0;T--){let N=l[T]===""&&l[T+1]==="",Se=l[T]===C&&l[T+1]===""&&l[T+2]===C,V=(l[T]===F||l[T]===C)&&l[T+1]===""&&l[T+2]===c,Be=l[T]===c&&l[T+1]===""&&(l[T+2]===F||l[T+2]===C),Ee=l[T]===c&&l[T+1]===""&&l[T+2]===c,dn=l[T]===F&&l[T+1]===""&&l[T+2]===C||l[T]===C&&l[T+1]===""&&l[T+2]===F;Se&&h||N||V||Ee||dn?l.splice(T,2):Be&&l.splice(T+1,2)}for(;l.length>0&&Qn(w(!1,l,-1));)l.pop();for(;l.length>1&&Qn(l[0])&&Qn(l[1]);)l.shift(),l.shift();let g=[];for(let[T,N]of l.entries()){if(N===c){if(T===1&&l[T-1]===""){if(l.length===2){g.push(D);continue}g.push([D,C]);continue}else if(T===l.length-1){g.push(D);continue}else if(l[T-1]===""&&l[T-2]===C){g.push(D);continue}}g.push(N),K(N)&&(p=!0)}let S=h?St(g):y(g,{shouldBreak:!0});if(((R=t.cursorNode)==null?void 0:R.type)==="JSXText"&&n.children.includes(t.cursorNode)&&(S=[Bn,S,Bn]),m)return S;let I=y([s,E([C,S]),C,u]);return p?I:qe([y([s,...l,u]),I])}function Vo(e,t,r,n,s){let u=[];return e.each(({node:i,next:a})=>{if(i.type==="JSXText"){let o=oe(i);if(Zt(i)){let p=kr.split(o,!0);p[0]===""&&(u.push(""),p.shift(),/\n/.test(p[0])?u.push(gu(s,p[1],i,a)):u.push(n),p.shift());let m;if(w(!1,p,-1)===""&&(p.pop(),m=p.pop()),p.length===0)return;for(let[D,c]of p.entries())D%2===1?u.push(A):u.push(c);m!==void 0?/\n/.test(m)?u.push(gu(s,w(!1,u,-1),i,a)):u.push(n):u.push(xu(s,w(!1,u,-1),i,a))}else/\n/.test(o)?o.match(/\n/g).length>1&&u.push("",C):u.push("",n)}else{let o=r();if(u.push(o),a&&Zt(a)){let m=kr.trim(oe(a)),[D]=kr.split(m);u.push(xu(s,D,i,a))}else u.push(C)}},"children"),u}function xu(e,t,r,n){return e?"":r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?t.length===1?F:C:F}function gu(e,t,r,n){return e?C:t.length===1?r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?C:F:C}var Ho=new Set(["ArrayExpression","TupleExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot"]);function Ko(e,t,r){let{parent:n}=e;if(Ho.has(n.type))return t;let s=e.match(void 0,i=>i.type==="ArrowFunctionExpression",k,i=>i.type==="JSXExpressionContainer"),u=we(e,r);return y([u?"":P("("),E([F,t]),F,u?"":P(")")],{shouldBreak:s})}function zo(e,t,r){let{node:n}=e,s=[];if(s.push(r("name")),n.value){let u;if(Q(n.value)){let i=oe(n.value),a=H(!1,H(!1,i.slice(1,-1),"'","'"),""",'"'),o=Pr(a,t.jsxSingleQuote);a=o==='"'?H(!1,a,'"',"""):H(!1,a,"'","'"),u=e.call(()=>pe(e,xe(o+a+o),t),"value")}else u=r("value");s.push("=",u)}return s}function Qo(e,t,r){let{node:n}=e,s=(u,i)=>u.type==="JSXEmptyExpression"||!d(u)&&(G(u)||ee(u)||u.type==="ArrowFunctionExpression"||u.type==="AwaitExpression"&&(s(u.argument,u)||u.argument.type==="JSXElement")||k(u)||u.type==="ChainExpression"&&k(u.expression)||u.type==="FunctionExpression"||u.type==="TemplateLiteral"||u.type==="TaggedTemplateExpression"||u.type==="DoExpression"||Y(i)&&(u.type==="ConditionalExpression"||ce(u)));return s(n.expression,e.parent)?y(["{",r("expression"),Ae,"}"]):y(["{",E([F,r("expression")]),F,Ae,"}"])}function Zo(e,t,r){var a,o;let{node:n}=e,s=d(n.name)||d(n.typeParameters);if(n.selfClosing&&n.attributes.length===0&&!s)return["<",r("name"),r("typeParameters")," />"];if(((a=n.attributes)==null?void 0:a.length)===1&&n.attributes[0].value&&Q(n.attributes[0].value)&&!n.attributes[0].value.value.includes(` +`)&&!s&&!d(n.attributes[0]))return y(["<",r("name"),r("typeParameters")," ",...e.map(r,"attributes"),n.selfClosing?" />":">"]);let u=(o=n.attributes)==null?void 0:o.some(p=>p.value&&Q(p.value)&&p.value.value.includes(` +`)),i=t.singleAttributePerLine&&n.attributes.length>1?C:A;return y(["<",r("name"),r("typeParameters"),E(e.map(()=>[i,r()],"attributes")),...ep(n,t,s)],{shouldBreak:u})}function ep(e,t,r){return e.selfClosing?[A,"/>"]:tp(e,t,r)?[">"]:[F,">"]}function tp(e,t,r){let n=e.attributes.length>0&&d(w(!1,e.attributes,-1),x.Trailing);return e.attributes.length===0&&!r||(t.bracketSameLine||t.jsxBracketSameLine)&&(!r||e.attributes.length>0)&&!n}function rp(e,t,r){let{node:n}=e,s=[];s.push(""),s}function np(e,t){let{node:r}=e,n=d(r),s=d(r,x.Line),u=r.type==="JSXOpeningFragment";return[u?"<":""]}function sp(e,t,r){let n=pe(e,$o(e,t,r),t);return Ko(e,n,t)}function up(e,t){let{node:r}=e,n=d(r,x.Line);return[M(e,t,{indent:n}),n?C:""]}function ip(e,t,r){let{node:n}=e;return["{",e.call(({node:s})=>{let u=["...",r()];return!d(s)||!zn(e)?u:[E([F,pe(e,u,t)]),F]},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function hu(e,t,r){let{node:n}=e;if(n.type.startsWith("JSX"))switch(n.type){case"JSXAttribute":return zo(e,t,r);case"JSXIdentifier":return n.name;case"JSXNamespacedName":return B(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return B(".",[r("object"),r("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return ip(e,t,r);case"JSXExpressionContainer":return Qo(e,t,r);case"JSXFragment":case"JSXElement":return sp(e,t,r);case"JSXOpeningElement":return Zo(e,t,r);case"JSXClosingElement":return rp(e,t,r);case"JSXOpeningFragment":case"JSXClosingFragment":return np(e,t);case"JSXEmptyExpression":return up(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Oe(n,"JSX")}}function ap(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type==="JSXText"&&!Zt(t)}function Zt(e){return e.type==="JSXText"&&(kr.hasNonWhitespaceCharacter(oe(e))||!/\n/.test(oe(e)))}function op(e){return e.type==="JSXExpressionContainer"&&Q(e.expression)&&e.expression.value===" "&&!d(e.expression)}function Su(e){let{node:t,parent:r}=e;if(!Y(t)||!Y(r))return!1;let{index:n,siblings:s}=e,u;for(let i=n;i>0;i--){let a=s[i-1];if(!(a.type==="JSXText"&&!Zt(a))){u=a;break}}return(u==null?void 0:u.type)==="JSXExpressionContainer"&&u.expression.type==="JSXEmptyExpression"&&dt(u.expression)}function pp(e){return dt(e.node)||Su(e)}var Ir=pp;var cp=0;function Lr(e,t,r){var _;let{node:n,parent:s,grandparent:u,key:i}=e,a=i!=="body"&&(s.type==="IfStatement"||s.type==="WhileStatement"||s.type==="SwitchStatement"||s.type==="DoWhileStatement"),o=n.operator==="|>"&&((_=e.root.extra)==null?void 0:_.__isUsingHackPipeline),p=Zn(e,r,t,!1,a);if(a)return p;if(o)return y(p);if(k(s)&&s.callee===n||s.type==="UnaryExpression"||J(s)&&!s.computed)return y([E([F,...p]),F]);let m=s.type==="ReturnStatement"||s.type==="ThrowStatement"||s.type==="JSXExpressionContainer"&&u.type==="JSXAttribute"||n.operator!=="|"&&s.type==="JsExpressionRoot"||n.type!=="NGPipeExpression"&&(s.type==="NGRoot"&&t.parser==="__ng_binding"||s.type==="NGMicrosyntaxExpression"&&u.type==="NGMicrosyntax"&&u.body.length===1)||n===s.body&&s.type==="ArrowFunctionExpression"||n!==s.body&&s.type==="ForStatement"||s.type==="ConditionalExpression"&&u.type!=="ReturnStatement"&&u.type!=="ThrowStatement"&&!k(u)||s.type==="TemplateLiteral",D=s.type==="AssignmentExpression"||s.type==="VariableDeclarator"||s.type==="ClassProperty"||s.type==="PropertyDefinition"||s.type==="TSAbstractPropertyDefinition"||s.type==="ClassPrivateProperty"||fe(s),c=ce(n.left)&&Vt(n.operator,n.left.operator);if(m||Ot(n)&&!c||!Ot(n)&&D)return y(p);if(p.length===0)return"";let f=Y(n.right),l=p.findIndex(R=>typeof R!="string"&&!Array.isArray(R)&&R.type===ue),h=p.slice(0,l===-1?1:l+1),g=p.slice(h.length,f?-1:void 0),S=Symbol("logicalChain-"+ ++cp),I=y([...h,E(g)],{id:S});if(!f)return I;let v=w(!1,p,-1);return y([I,mt(v,{groupId:S})])}function Zn(e,t,r,n,s){var h;let{node:u}=e;if(!ce(u))return[y(t())];let i=[];Vt(u.operator,u.left.operator)?i=e.call(g=>Zn(g,t,r,!0,s),"left"):i.push(y(t("left")));let a=Ot(u),o=(u.operator==="|>"||u.type==="NGPipeExpression"||lp(e,r))&&!Ie(r.originalText,u.right),p=u.type==="NGPipeExpression"?"|":u.operator,m=u.type==="NGPipeExpression"&&u.arguments.length>0?y(E([F,": ",B([A,": "],e.map(()=>De(2,y(t())),"arguments"))])):"",D;if(a)D=[p," ",t("right"),m];else{let S=p==="|>"&&((h=e.root.extra)==null?void 0:h.__isUsingHackPipeline)?e.call(I=>Zn(I,t,r,!0,s),"right"):t("right");D=[o?A:"",p,o?" ":A,S,m]}let{parent:c}=e,f=d(u.left,x.Trailing|x.Line),l=f||!(s&&u.type==="LogicalExpression")&&c.type!==u.type&&u.left.type!==u.type&&u.right.type!==u.type;if(i.push(o?"":" ",l?y(D,{shouldBreak:f}):D),n&&d(u)){let g=Bt(pe(e,i,r));return Array.isArray(g)||g.type===ye?yr(g):[g]}return i}function Ot(e){return e.type!=="LogicalExpression"?!1:!!(ee(e.right)&&e.right.properties.length>0||G(e.right)&&e.right.elements.length>0||Y(e.right))}var Bu=e=>e.type==="BinaryExpression"&&e.operator==="|";function lp(e,t){return(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression")&&Bu(e.node)&&!e.hasAncestor(r=>!Bu(r)&&r.type!=="JsExpressionRoot")}var at=class extends Error{name="ArgExpansionBailout"};function mp(e,t,r,n){let{node:s}=e;return d(s,x.Dangling)?y([r,M(e,t,{indent:!0}),F,n]):[r,n]}function vt(e,t,r){let{node:n}=e,s=[],u=n.type==="TupleExpression"?"#[":"[",i="]",a=n.type==="TupleTypeAnnotation"&&n.types?"types":n.type==="TSTupleType"||n.type==="TupleTypeAnnotation"?"elementTypes":"elements",o=n[a];if(o.length===0)s.push(mp(e,t,u,i));else{let p=w(!1,o,-1),m=(p==null?void 0:p.type)!=="RestElement",D=p===null,c=Symbol("array"),f=!t.__inJestEach&&o.length>1&&o.every((g,S,I)=>{let v=g==null?void 0:g.type;if(!G(g)&&!ee(g))return!1;let _=I[S+1];if(_&&v!==_.type)return!1;let R=G(g)?"elements":"properties";return g[R]&&g[R].length>1}),l=es(n,t),h=m?D?",":le(t)?l?P(",","",{groupId:c}):P(","):"":"";s.push(y([u,E([F,l?Dp(e,t,r,h):[yp(e,t,a,r),h],M(e,t)]),F,i],{shouldBreak:f,id:c}))}return s.push($(e),q(e,r)),s}function es(e,t){return G(e)&&e.elements.length>1&&e.elements.every(r=>r&&(he(r)||Tr(r)&&!d(r.argument))&&!d(r,x.Trailing|x.Line,n=>!z(t.originalText,U(n),{backwards:!0})))}function bu({node:e},{originalText:t}){let r=s=>bt(t,Pt(t,s)),n=s=>t[s]===","?s:n(r(s+1));return kt(t,n(O(e)))}function yp(e,t,r,n){let s=[];return e.each(({node:u,isLast:i})=>{s.push(u?y(n()):""),i||s.push([",",A,u&&bu(e,t)?F:""])},r),s}function Dp(e,t,r,n){let s=[];return e.each(({isLast:u,next:i})=>{s.push([r(),u?n:","]),u||s.push(bu(e,t)?[C,C]:d(i,x.Leading|x.Line)?C:A)},"elements"),St(s)}function fp(e,t,r){let{node:n}=e,s=Ce(n);if(s.length===0)return["(",M(e,t),")"];if(Cp(s))return["(",r(["arguments",0]),", ",r(["arguments",1]),")"];let u=!1,i=s.length-1,a=[];Br(e,({node:c},f)=>{let l=r();f===i||(me(c,t)?(u=!0,l=[l,",",C,C]):l=[l,",",A]),a.push(l)});let p=!(n.type==="ImportExpression"||n.callee.type==="Import")&&le(t,"all")?",":"";function m(){return y(["(",E([A,...a]),p,A,")"],{shouldBreak:!0})}if(u||e.parent.type!=="Decorator"&&tu(s))return m();if(Fp(s)){let c=a.slice(1);if(c.some(K))return m();let f;try{f=r(Mn(n,0),{expandFirstArg:!0})}catch(l){if(l instanceof at)return m();throw l}return K(f)?[Te,qe([["(",y(f,{shouldBreak:!0}),", ",...c,")"],m()])]:qe([["(",f,", ",...c,")"],["(",y(f,{shouldBreak:!0}),", ",...c,")"],m()])}if(Ep(s,a,t)){let c=a.slice(0,-1);if(c.some(K))return m();let f;try{f=r(Mn(n,-1),{expandLastArg:!0})}catch(l){if(l instanceof at)return m();throw l}return K(f)?[Te,qe([["(",...c,y(f,{shouldBreak:!0}),")"],m()])]:qe([["(",...c,f,")"],["(",...c,y(f,{shouldBreak:!0}),")"],m()])}let D=["(",E([F,...a]),P(p),F,")"];return Sr(e)?D:y(D,{shouldBreak:a.some(K)||u})}function er(e,t=!1){return ee(e)&&(e.properties.length>0||d(e))||G(e)&&(e.elements.length>0||d(e))||e.type==="TSTypeAssertion"&&er(e.expression)||Le(e)&&er(e.expression)||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!=="TSTypeReference"||dp(e.body))&&(e.body.type==="BlockStatement"||e.body.type==="ArrowFunctionExpression"&&er(e.body,!0)||ee(e.body)||G(e.body)||!t&&(k(e.body)||e.body.type==="ConditionalExpression")||Y(e.body))||e.type==="DoExpression"||e.type==="ModuleExpression"}function Ep(e,t,r){var u,i;let n=w(!1,e,-1);if(e.length===1){let a=w(!1,t,-1);if((u=a.label)!=null&&u.embed&&((i=a.label)==null?void 0:i.hug)!==!1)return!0}let s=w(!1,e,-2);return!d(n,x.Leading)&&!d(n,x.Trailing)&&er(n)&&(!s||s.type!==n.type)&&(e.length!==2||s.type!=="ArrowFunctionExpression"||!G(n))&&!(e.length>1&&es(n,r))}function Fp(e){if(e.length!==2)return!1;let[t,r]=e;return t.type==="ModuleExpression"&&Ap(r)?!0:!d(t)&&(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement")&&r.type!=="FunctionExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="ConditionalExpression"&&Pu(r)&&!er(r)}function Pu(e){var t;if(e.type==="ParenthesizedExpression")return Pu(e.expression);if(Le(e)||e.type==="TypeCastExpression"){let{typeAnnotation:r}=e;return r.type==="TypeAnnotation"&&(r=r.typeAnnotation),r.type==="TSArrayType"&&(r=r.elementType,r.type==="TSArrayType"&&(r=r.elementType)),(r.type==="GenericTypeAnnotation"||r.type==="TSTypeReference")&&((t=r.typeParameters)==null?void 0:t.params.length)===1&&(r=r.typeParameters.params[0]),wt(r)&&ge(e.expression,1)}return it(e)&&Ce(e).length>1?!1:ce(e)?ge(e.left,1)&&ge(e.right,1):wn(e)||ge(e)}function Cp(e){return e.length===2&&e[0].type==="ArrowFunctionExpression"&&X(e[0]).length===0&&e[0].body.type==="BlockStatement"&&e[1].type==="ArrayExpression"&&!e.some(t=>d(t))}function dp(e){return e.type==="BlockStatement"&&(e.body.some(t=>t.type!=="EmptyStatement")||d(e,x.Dangling))}function Ap(e){return e.type==="ObjectExpression"&&e.properties.length===1&&fe(e.properties[0])&&e.properties[0].key.type==="Identifier"&&e.properties[0].key.name==="type"&&Q(e.properties[0].value)&&e.properties[0].value.value==="module"}var tr=fp;function ku(e,t,r){var p;let n=r("object"),s=ts(e,t,r),{node:u,parent:i}=e,a=e.findAncestor(m=>!(J(m)||m.type==="TSNonNullExpression")),o=a&&(a.type==="NewExpression"||a.type==="BindExpression"||a.type==="AssignmentExpression"&&a.left.type!=="Identifier")||u.computed||u.object.type==="Identifier"&&u.property.type==="Identifier"&&!J(i)||(i.type==="AssignmentExpression"||i.type==="VariableDeclarator")&&(k(u.object)&&u.object.arguments.length>0||u.object.type==="TSNonNullExpression"&&k(u.object.expression)&&u.object.expression.arguments.length>0||((p=n.label)==null?void 0:p.memberChain));return et(n.label,[n,o?s:y(E([F,s]))])}function ts(e,t,r){let n=r("property"),{node:s}=e,u=$(e);return s.computed?!s.property||he(s.property)?[u,"[",n,"]"]:y([u,"[",E([F,n]),F,"]"]):[u,".",n]}function Tp(e,t,r){let{parent:n}=e,s=!n||n.type==="ExpressionStatement",u=[];function i(L){let{originalText:W}=t,se=Xe(W,O(L));return W.charAt(se)===")"?se!==!1&&kt(W,se+1):me(L,t)}function a(L){let{node:W}=L;k(W)&&(Dt(W.callee)||k(W.callee))?(u.unshift({node:W,printed:[pe(L,[$(L),Ve(L,t,r),tr(L,t,r)],t),i(W)?C:""]}),L.call(se=>a(se),"callee")):Dt(W)?(u.unshift({node:W,needsParens:we(L,t),printed:pe(L,J(W)?ts(L,t,r):wr(L,t,r),t)}),L.call(se=>a(se),"object")):W.type==="TSNonNullExpression"?(u.unshift({node:W,printed:pe(L,"!",t)}),L.call(se=>a(se),"expression")):u.unshift({node:W,printed:r()})}let{node:o}=e;u.unshift({node:o,printed:[$(e),Ve(e,t,r),tr(e,t,r)]}),o.callee&&e.call(L=>a(L),"callee");let p=[],m=[u[0]],D=1;for(;D0&&p.push(m);function f(L){return/^[A-Z]|^[$_]+$/.test(L)}function l(L){return L.length<=t.tabWidth}function h(L){var Tn;let W=(Tn=L[1][0])==null?void 0:Tn.node.computed;if(L[0].length===1){let ar=L[0][0].node;return ar.type==="ThisExpression"||ar.type==="Identifier"&&(f(ar.name)||s&&l(ar.name)||W)}let se=w(!1,L[0],-1).node;return J(se)&&se.property.type==="Identifier"&&(f(se.property.name)||W)}let g=p.length>=2&&!d(p[1][0].node)&&h(p);function S(L){let W=L.map(se=>se.printed);return L.length>0&&w(!1,L,-1).needsParens?["(",...W,")"]:W}function I(L){return L.length===0?"":E(y([C,B(C,L.map(S))]))}let v=p.map(S),_=v,R=g?3:2,T=p.flat(),N=T.slice(1,-1).some(L=>d(L.node,x.Leading))||T.slice(0,-1).some(L=>d(L.node,x.Trailing))||p[R]&&d(p[R][0].node,x.Leading);if(p.length<=R&&!N)return Sr(e)?_:y(_);let Se=w(!1,p[g?1:0],-1).node,V=!k(Se)&&i(Se),Be=[S(p[0]),g?p.slice(1,2).map(S):"",V?C:"",I(p.slice(g?2:1))],Ee=u.map(({node:L})=>L).filter(k);function dn(){let L=w(!1,w(!1,p,-1),-1).node,W=w(!1,v,-1);return k(L)&&K(W)&&Ee.slice(0,-1).some(se=>se.arguments.some(It))}let An;return N||Ee.length>2&&Ee.some(L=>!L.arguments.every(W=>ge(W)))||v.slice(0,-1).some(K)||dn()?An=y(Be):An=[K(_)||V?Te:"",qe([_,Be])],et({memberChain:!0},An)}var Iu=Tp;function Or(e,t,r){var D;let{node:n,parent:s}=e,u=n.type==="NewExpression",i=n.type==="ImportExpression",a=$(e),o=Ce(n),p=o.length===1&&gr(o[0],t.originalText);if(p||o.length>0&&!u&&!i&&(xp(n,s)||Ct(n,s))){let c=[];if(Br(e,()=>{c.push(r())}),!(p&&((D=c[0].label)!=null&&D.embed)))return[u?"new ":"",r("callee"),a,Ve(e,t,r),"(",B(", ",c),")"]}if(!i&&!u&&Dt(n.callee)&&!e.call(c=>we(c,t),"callee"))return Iu(e,t,r);let m=[u?"new ":"",i?"import":r("callee"),a,Ve(e,t,r),tr(e,t,r)];return i||k(n.callee)?y(m):m}function xp(e,t){if(e.callee.type!=="Identifier")return!1;if(e.callee.name==="require"){let r=Ce(e);return r.length===1&&Q(r[0])||r.length>1}if(e.callee.name==="define"){let r=Ce(e);return t.type==="ExpressionStatement"&&(r.length===1||r.length===2&&r[0].type==="ArrayExpression"||r.length===3&&Q(r[0])&&r[1].type==="ArrayExpression")}return!1}function gp(e,t,r){let n=t==='"'?"'":'"',u=H(!1,e,/\\(.)|(["'])/gs,(i,a,o)=>a===n?a:o===t?"\\"+o:o||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(a)?a:"\\"+a));return t+u+t}var Lu=gp;function hp(e,t){let r=e.slice(1,-1),n=t.parser==="json"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":Pr(r,t.singleQuote);return Lu(r,n,!(t.parser==="css"||t.parser==="less"||t.parser==="scss"||t.__embeddedInHtml))}var Tt=hp;function Sp(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}var He=Sp;function vu(e,t){let{node:r}=e;switch(r.type){case"RegExpLiteral":return wu(r);case"BigIntLiteral":return vr(r.extra.raw);case"NumericLiteral":return He(r.extra.raw);case"StringLiteral":return xe(Tt(r.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(r.value);case"DecimalLiteral":return He(r.value)+"m";case"DirectiveLiteral":return Ou(r.extra.raw,t);case"Literal":{if(r.regex)return wu(r.regex);if(r.bigint)return vr(r.raw);if(r.decimal)return He(r.decimal)+"m";let{value:n}=r;return typeof n=="number"?He(r.raw):typeof n=="string"?Bp(e)?Ou(r.raw,t):xe(Tt(r.raw,t)):String(n)}}}function Bp(e){if(e.key!=="expression")return;let{parent:t}=e;return t.type==="ExpressionStatement"&&t.directive}function vr(e){return e.toLowerCase()}function wu({pattern:e,flags:t}){return t=[...t].sort().join(""),`/${e}/${t}`}function Ou(e,t){let r=e.slice(1,-1);if(r.includes('"')||r.includes("'"))return e;let n=t.singleQuote?"'":'"';return n+r+n}var _r=j(["Literal","BigIntLiteral","BooleanLiteral","DecimalLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]);function ft(e,t,r,n,s,u){let i=bp(e,t,r,n,u),a=u?r(u,{assignmentLayout:i}):"";switch(i){case"break-after-operator":return y([y(n),s,y(E([A,a]))]);case"never-break-after-operator":return y([y(n),s," ",a]);case"fluid":{let o=Symbol("assignment");return y([y(n),s,y(E(A),{id:o}),Ae,mt(a,{groupId:o})])}case"break-lhs":return y([n,s," ",y(a)]);case"chain":return[y(n),s,A,a];case"chain-tail":return[y(n),s,E([A,a])];case"chain-tail-arrow-chain":return[y(n),s,a];case"only-left":return n}}function ju(e,t,r){let{node:n}=e;return ft(e,t,r,r("left"),[" ",n.operator],"right")}function Mu(e,t,r){return ft(e,t,r,r("id")," =","init")}function bp(e,t,r,n,s){let{node:u}=e,i=u[s];if(!i)return"only-left";let a=!jr(i);if(e.match(jr,Ru,D=>!a||D.type!=="ExpressionStatement"&&D.type!=="VariableDeclaration"))return a?i.type==="ArrowFunctionExpression"&&i.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!a&&jr(i.right)||Ie(t.originalText,i))return"break-after-operator";if(i.type==="CallExpression"&&i.callee.name==="require"||t.parser==="json5"||t.parser==="json")return"never-break-after-operator";if(kp(u)||Ip(u)||Op(u)||rs(u)&&Rs(n))return"break-lhs";let m=Mp(u,n,t);return e.call(()=>Pp(e,t,r,m),s)?"break-after-operator":m||i.type==="TemplateLiteral"||i.type==="TaggedTemplateExpression"||i.type==="BooleanLiteral"||he(i)||i.type==="ClassExpression"?"never-break-after-operator":"fluid"}function Pp(e,t,r,n){let s=e.node;if(ce(s)&&!Ot(s))return!0;switch(s.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"ConditionalExpression":{let{test:a}=s;return ce(a)&&!Ot(a)}case"ClassExpression":return b(s.decorators)}if(n)return!1;let u=s,i=[];for(;;)if(u.type==="UnaryExpression"||u.type==="AwaitExpression"||u.type==="YieldExpression"&&u.argument!==null)u=u.argument,i.push("argument");else if(u.type==="TSNonNullExpression")u=u.expression,i.push("expression");else break;return!!(Q(u)||e.call(()=>Ju(e,t,r),...i))}function kp(e){if(Ru(e)){let t=e.left||e.id;return t.type==="ObjectPattern"&&t.properties.length>2&&t.properties.some(r=>{var n;return fe(r)&&(!r.shorthand||((n=r.value)==null?void 0:n.type)==="AssignmentPattern")})}return!1}function jr(e){return e.type==="AssignmentExpression"}function Ru(e){return jr(e)||e.type==="VariableDeclarator"}function Ip(e){let t=wp(e);if(b(t)){let r=e.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(t.length>1&&t.some(n=>n[r]||n.default))return!0}return!1}var Lp=j(["TSTypeAliasDeclaration","TypeAlias"]);function wp(e){var t;if(Lp(e))return(t=e.typeParameters)==null?void 0:t.params}function Op(e){if(e.type!=="VariableDeclarator")return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let r=_u(t.typeAnnotation);return b(r)&&r.length>1&&r.some(n=>b(_u(n))||n.type==="TSConditionalType")}function rs(e){var t;return e.type==="VariableDeclarator"&&((t=e.init)==null?void 0:t.type)==="ArrowFunctionExpression"}var vp=j(["TSTypeReference","GenericTypeAnnotation"]);function _u(e){var t;if(vp(e))return(t=e.typeParameters)==null?void 0:t.params}function Ju(e,t,r,n=!1){var i;let{node:s}=e,u=()=>Ju(e,t,r,!0);if(s.type==="ChainExpression"||s.type==="TSNonNullExpression")return e.call(u,"expression");if(k(s)){if((i=Or(e,t,r).label)!=null&&i.memberChain)return!1;let o=Ce(s);return!(o.length===0||o.length===1&&jp(o[0],t))||Rp(s,r)?!1:e.call(u,"callee")}return J(s)?e.call(u,"object"):n&&(s.type==="Identifier"||s.type==="ThisExpression")}var _p=.25;function jp(e,{printWidth:t}){if(d(e))return!1;let r=t*_p;if(e.type==="ThisExpression"||e.type==="Identifier"&&e.name.length<=r||Tr(e)&&!d(e.argument))return!0;let n=e.type==="Literal"&&"regex"in e&&e.regex.pattern||e.type==="RegExpLiteral"&&e.pattern;return n?n.length<=r:Q(e)?oe(e).length<=r:e.type==="TemplateLiteral"?e.expressions.length===0&&e.quasis[0].value.raw.length<=r&&!e.quasis[0].value.raw.includes(` +`):_r(e)}function Mp(e,t,r){if(!fe(e))return!1;t=Bt(t);let n=3;return typeof t=="string"&&tt(t)1)return!0;if(r.length===1){let s=r[0];if(s.type==="TSUnionType"||s.type==="UnionTypeAnnotation"||s.type==="TSIntersectionType"||s.type==="IntersectionTypeAnnotation"||s.type==="TSTypeLiteral"||s.type==="ObjectTypeAnnotation")return!0}let n=e.typeParameters?"typeParameters":"typeArguments";if(K(t(n)))return!0}return!1}function Jp(e){var t;return(t=e.typeParameters??e.typeArguments)==null?void 0:t.params}function ot(e,t,r,n,s){let u=e.node,i=X(u),a=s?Ve(e,r,t):"";if(i.length===0)return[a,"(",M(e,r,{filter:l=>$e(r.originalText,O(l))===")"}),")"];let{parent:o}=e,p=Ct(o),m=ns(u),D=[];if(uu(e,(l,h)=>{let g=h===i.length-1;g&&u.rest&&D.push("..."),D.push(t()),!g&&(D.push(","),p||m?D.push(" "):me(i[h],r)?D.push(C,C):D.push(A))}),n&&!Up(e)){if(K(a)||K(D))throw new at;return y([Ut(a),"(",Ut(D),")"])}let c=i.every(l=>!b(l.decorators));return m&&c?[a,"(",...D,")"]:p?[a,"(",...D,")"]:(xr(o)||Zs(o)||o.type==="TypeAlias"||o.type==="UnionTypeAnnotation"||o.type==="TSUnionType"||o.type==="IntersectionTypeAnnotation"||o.type==="FunctionTypeAnnotation"&&o.returnType===u)&&i.length===1&&i[0].name===null&&u.this!==i[0]&&i[0].typeAnnotation&&u.typeParameters===null&&wt(i[0].typeAnnotation)&&!u.rest?r.arrowParens==="always"?["(",...D,")"]:D:[a,"(",E([F,...D]),P(!su(u)&&le(r,"all")?",":""),F,")"]}function ns(e){if(!e)return!1;let t=X(e);if(t.length!==1)return!1;let[r]=t;return!d(r)&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&ke(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&ke(r.typeAnnotation)&&r!==e.rest||r.type==="AssignmentPattern"&&(r.left.type==="ObjectPattern"||r.left.type==="ArrayPattern")&&(r.right.type==="Identifier"||ee(r.right)&&r.right.properties.length===0||G(r.right)&&r.right.elements.length===0))}function Np(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function xt(e,t){var s;let r=Np(e);if(!r)return!1;let n=(s=e.typeParameters)==null?void 0:s.params;if(n){if(n.length>1)return!1;if(n.length===1){let u=n[0];if(u.constraint||u.default)return!1}}return X(e).length===1&&(ke(r)||K(t))}function Up(e){return e.match(t=>t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement",(t,r)=>{if(t.type==="CallExpression"&&r==="arguments"&&t.arguments.length===1&&t.callee.type==="CallExpression"){let n=t.callee.callee;return n.type==="Identifier"||n.type==="MemberExpression"&&!n.computed&&n.object.type==="Identifier"&&n.property.type==="Identifier"}return!1},(t,r)=>t.type==="VariableDeclarator"&&r==="init"||t.type==="ExportDefaultDeclaration"&&r==="declaration"||t.type==="TSExportAssignment"&&r==="expression"||t.type==="AssignmentExpression"&&r==="right"&&t.left.type==="MemberExpression"&&t.left.object.type==="Identifier"&&t.left.object.name==="module"&&t.left.property.type==="Identifier"&&t.left.property.name==="exports",t=>t.type!=="VariableDeclaration"||t.kind==="const"&&t.declarations.length===1)}function Nu(e){let t=X(e);return t.length>1&&t.some(r=>r.type==="TSParameterProperty")}function ss(e){if(wt(e)||ke(e))return!0;if(e.type==="UnionTypeAnnotation"||e.type==="TSUnionType"){let t=e.types.filter(s=>s.type==="VoidTypeAnnotation"||s.type==="TSVoidKeyword"||s.type==="NullLiteralTypeAnnotation"||s.type==="TSNullKeyword").length,r=e.types.some(s=>s.type==="ObjectTypeAnnotation"||s.type==="TSTypeLiteral"||s.type==="GenericTypeAnnotation"||s.type==="TSTypeReference"),n=e.types.some(s=>d(s));if(e.types.length-1===t&&r&&!n)return!0}return!1}function Uu(e,t,r){let n=t.semi?";":"",{node:s}=e,u=[Z(e),"opaque type ",r("id"),r("typeParameters")];return s.supertype&&u.push(": ",r("supertype")),s.impltype&&u.push(" = ",r("impltype")),u.push(n),u}function Mr(e,t,r){let n=t.semi?";":"",{node:s}=e,u=[Z(e)];u.push("type ",r("id"),r("typeParameters"));let i=s.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[ft(e,t,r,u," =",i),n]}function Rr(e,t,r){let n=!1;return y(e.map(({isFirst:s,previous:u,node:i,index:a})=>{let o=r();if(s)return o;let p=ke(i),m=ke(u);return m&&p?[" & ",n?E(o):o]:!m&&!p?E([" &",A,o]):(a>1&&(n=!0),[" & ",a>1?E(o):o])},"types"))}function Jr(e,t,r){let{node:n}=e,{parent:s}=e,u=s.type!=="TypeParameterInstantiation"&&s.type!=="TSTypeParameterInstantiation"&&s.type!=="GenericTypeAnnotation"&&s.type!=="TSTypeReference"&&s.type!=="TSTypeAssertion"&&s.type!=="TupleTypeAnnotation"&&s.type!=="TSTupleType"&&!(s.type==="FunctionTypeParam"&&!s.name&&e.grandparent.this!==s)&&!((s.type==="TypeAlias"||s.type==="VariableDeclarator"||s.type==="TSTypeAliasDeclaration")&&Ie(t.originalText,n)),i=ss(n),a=e.map(m=>{let D=r();return i||(D=De(2,D)),pe(m,D,t)},"types");if(i)return B(" | ",a);let o=u&&!Ie(t.originalText,n),p=[P([o?A:"","| "]),B([A,"| "],a)];return we(e,t)?y([E(p),F]):(s.type==="TupleTypeAnnotation"||s.type==="TSTupleType")&&s[s.type==="TupleTypeAnnotation"&&s.types?"types":"elementTypes"].length>1?y([E([P(["(",F]),p]),F,P(")")]):y(u?E(p):p)}function Gp(e){var n;let{node:t,parent:r}=e;return t.type==="FunctionTypeAnnotation"&&(xr(r)||!((r.type==="ObjectTypeProperty"||r.type==="ObjectTypeInternalSlot")&&!r.variance&&!r.optional&&yt(r,t)||r.type==="ObjectTypeCallProperty"||((n=e.getParentNode(2))==null?void 0:n.type)==="DeclareFunction"))}function Nr(e,t,r){let{node:n}=e,s=[_t(e)];(n.type==="TSConstructorType"||n.type==="TSConstructSignatureDeclaration")&&s.push("new ");let u=ot(e,r,t,!1,!0),i=[];return n.type==="FunctionTypeAnnotation"?i.push(Gp(e)?" => ":": ",r("returnType")):i.push(q(e,r,n.returnType?"returnType":"typeAnnotation")),xt(n,i)&&(u=y(u)),s.push(u,i),y(s)}function Ur(e,t,r){return[r("objectType"),$(e),"[",r("indexType"),"]"]}function Gr(e,t,r){return["infer ",r("typeParameter")]}function us(e,t,r){let{node:n}=e;return[n.postfix?"":r,q(e,t),n.postfix?r:""]}function qr(e,t,r){let{node:n}=e;return["...",...n.type==="TupleTypeSpreadElement"&&n.label?[r("label"),": "]:[],r("typeAnnotation")]}function Wr(e,t,r){let{node:n}=e;return[n.variance?r("variance"):"",r("label"),n.optional?"?":"",": ",r("elementType")]}var qp=new WeakSet;function q(e,t,r="typeAnnotation"){let{node:{[r]:n}}=e;if(!n)return"";let s=!1;if(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation"){let u=e.call(Gu,r);(u==="=>"||u===":"&&d(n,x.Leading))&&(s=!0),qp.add(n)}return s?[" ",t(r)]:t(r)}var Gu=e=>e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>(r==="returnType"||r==="typeAnnotation")&&(t.type==="TSFunctionType"||t.type==="TSConstructorType"))?"=>":e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>r==="typeAnnotation"&&(t.type==="TSJSDocNullableType"||t.type==="TSJSDocNonNullableType"||t.type==="TSTypePredicate"))||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareFunction")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="bound"&&t.type==="TypeParameter"&&t.usesExtendsBound)?"":":";function Yr(e,t,r){let n=Gu(e);return n?[n," ",r("typeAnnotation")]:r("typeAnnotation")}function Xr(e){return[e("elementType"),"[]"]}function $r({node:e},t){return["typeof ",...e.type==="TSTypeQuery"?[t("exprName"),t("typeParameters")]:[t("argument")]]}function Vr(e,t){let{node:r}=e;return[r.asserts?"asserts ":"",t("parameterName"),r.typeAnnotation?[" is ",q(e,t)]:""]}function $(e){let{node:t}=e;return!t.optional||t.type==="Identifier"&&t===e.parent.key?"":k(t)||J(t)&&t.computed||t.type==="OptionalIndexedAccessType"?"?.":"?"}function Hr(e){return e.node.definite||e.match(void 0,(t,r)=>r==="id"&&t.type==="VariableDeclarator"&&t.definite)?"!":""}var Wp=new Set(["DeclareClass","DeclareFunction","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]);function Z(e){let{node:t}=e;return t.declare||Wp.has(t.type)&&e.parent.type!=="DeclareExportDeclaration"?"declare ":""}var Yp=new Set(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function _t({node:e}){return e.abstract||Yp.has(e.type)?"abstract ":""}function Ve(e,t,r){let n=e.node;return n.typeArguments?r("typeArguments"):n.typeParameters?r("typeParameters"):""}function wr(e,t,r){return["::",r("callee")]}function pt(e,t,r){return e.type==="EmptyStatement"?";":e.type==="BlockStatement"||r?[" ",t]:E([A,t])}function Kr(e,t){return["...",t("argument"),q(e,t)]}function jt(e){return e.accessibility?e.accessibility+" ":""}function is(e,t,r){let{node:n}=e;return y([B(A,e.map(r,"decorators")),Yu(n,t)?C:A])}function qu(e,t,r){return Xu(e.node)?[B(C,e.map(r,"declaration","decorators")),C]:""}function Wu(e,t,r){let{node:n,parent:s}=e,{decorators:u}=n;if(!b(u)||Xu(s)||Ir(e))return"";let i=n.type==="ClassExpression"||n.type==="ClassDeclaration"||Yu(n,t);return[e.key==="declaration"&&Qs(s)?C:i?Te:"",B(A,e.map(r,"decorators")),A]}function Yu(e,t){return e.decorators.some(r=>z(t.originalText,O(r)))}function Xu(e){var r;if(e.type!=="ExportDefaultDeclaration"&&e.type!=="ExportNamedDeclaration"&&e.type!=="DeclareExportDeclaration")return!1;let t=(r=e.declaration)==null?void 0:r.decorators;return b(t)&&yt(e,t[0])}function $u(e,t,r){let{node:n}=e;return["import",n.module?" module":"",os(n),Ku(e,t,r),Hu(e,t,r),Qu(e,t,r),t.semi?";":""]}var Vu=e=>e.type==="ExportDefaultDeclaration"||e.type==="DeclareExportDeclaration"&&e.default;function zr(e,t,r){let{node:n}=e,s=[qu(e,t,r),Z(e),"export",Vu(n)?" default":""],{declaration:u,exported:i}=n;return d(n,x.Dangling)&&(s.push(" ",M(e,t)),hr(n)&&s.push(C)),u?s.push(" ",r("declaration")):(s.push(Vp(n)),n.type==="ExportAllDeclaration"||n.type==="DeclareExportAllDeclaration"?(s.push(" *"),i&&s.push(" as ",r("exported"))):s.push(Ku(e,t,r)),s.push(Hu(e,t,r),Qu(e,t,r))),s.push($p(n,t)),s}var Xp=j(["ClassDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareFunction","TSDeclareFunction","EnumDeclaration"]);function $p(e,t){return t.semi&&(!e.declaration||Vu(e)&&!Xp(e.declaration))?";":""}function as(e,t=!0){return e&&e!=="value"?`${t?" ":""}${e}${t?"":" "}`:""}function os(e,t){return as(e.importKind,t)}function Vp(e){return as(e.exportKind)}function Hu(e,t,r){let{node:n}=e;if(!n.source)return"";let s=[];return zu(n,t)||s.push(" from"),s.push(" ",r("source")),s}function Ku(e,t,r){let{node:n}=e;if(zu(n,t))return"";let s=[" "];if(b(n.specifiers)){let u=[],i=[];e.each(()=>{let a=e.node.type;if(a==="ExportNamespaceSpecifier"||a==="ExportDefaultSpecifier"||a==="ImportNamespaceSpecifier"||a==="ImportDefaultSpecifier")u.push(r());else if(a==="ExportSpecifier"||a==="ImportSpecifier")i.push(r());else throw new Oe(n,"specifier")},"specifiers"),s.push(B(", ",u)),i.length>0&&(u.length>0&&s.push(", "),i.length>1||u.length>0||n.specifiers.some(o=>d(o))?s.push(y(["{",E([t.bracketSpacing?A:F,B([",",A],i)]),P(le(t)?",":""),t.bracketSpacing?A:F,"}"])):s.push(["{",t.bracketSpacing?" ":"",...i,t.bracketSpacing?" ":"","}"]))}else s.push("{}");return s}function zu(e,t){let{type:r,importKind:n,source:s,specifiers:u}=e;return r!=="ImportDeclaration"||b(u)||n==="type"?!1:!/{\s*}/.test(t.originalText.slice(U(e),U(s)))}function Qu(e,t,r){var i;let{node:n}=e,s=b(n.attributes)?"attributes":b(n.assertions)?"assertions":void 0;return s?[` ${s==="assertions"||(i=n.extra)!=null&&i.deprecatedAssertSyntax?"assert":"with"} {`,t.bracketSpacing?" ":"",B(", ",e.map(r,s)),t.bracketSpacing?" ":"","}"]:""}function Zu(e,t,r){let{node:n}=e,{type:s}=n,u=s.startsWith("Import"),i=u?"imported":"local",a=u?"local":"exported",o=n[i],p=n[a],m="",D="";return s==="ExportNamespaceSpecifier"||s==="ImportNamespaceSpecifier"?m="*":o&&(m=r(i)),p&&!Hp(n)&&(D=r(a)),[as(s==="ImportSpecifier"?n.importKind:n.exportKind,!1),m,m&&D?" as ":"",D]}function Hp(e){if(e.type!=="ImportSpecifier"&&e.type!=="ExportSpecifier")return!1;let{local:t,[e.type==="ImportSpecifier"?"imported":"exported"]:r}=e;if(t.type!==r.type||!Xs(t,r))return!1;if(Q(t))return t.value===r.value&&oe(t)===oe(r);switch(t.type){case"Identifier":return t.name===r.name;default:return!1}}function Kp(e){let t=[e];for(let r=0;rc[V]===n),l=c.type===n.type&&!f,h,g,S=0;do g=h||n,h=e.getParentNode(S),S++;while(h&&h.type===n.type&&a.every(V=>h[V]!==g));let I=h||c,v=g;if(s&&(Y(n[a[0]])||Y(o)||Y(p)||Kp(v))){D=!0,l=!0;let V=Ee=>[P("("),E([F,Ee]),F,P(")")],Be=Ee=>Ee.type==="NullLiteral"||Ee.type==="Literal"&&Ee.value===null||Ee.type==="Identifier"&&Ee.name==="undefined";m.push(" ? ",Be(o)?r(u):V(r(u))," : ",p.type===n.type||Be(p)?r(i):V(r(i)))}else{let V=[A,"? ",o.type===n.type?P("","("):"",De(2,r(u)),o.type===n.type?P("",")"):"",A,": ",p.type===n.type?r(i):De(2,r(i))];m.push(c.type!==n.type||c[i]===n||f?V:t.useTabs?Os(E(V)):De(Math.max(0,t.tabWidth-2),V))}let _=[u,i,...a].some(V=>d(n[V],Be=>ae(Be)&&rt(t.originalText,U(Be),O(Be)))),R=V=>c===I?y(V,{shouldBreak:_}):_?[V,Te]:V,T=!D&&(J(c)||c.type==="NGPipeExpression"&&c.left===n)&&!c.computed,N=Zp(e),Se=R([zp(e,t,r),l?m:E(m),s&&T&&!N?F:""]);return f||N?y([E([F,Se]),F]):Se}function ec(e,t,r=0){let n=0;for(let s=r;s0&&o(i),f()}function c(){a>0&&p(a),f()}function f(){i=0,a=0}}function ls(e){let t=0,r=0,n=e.length;e:for(;n--;){let s=e[n];if(s===rr){r++;continue}for(let u=s.length-1;u>=0;u--){let i=s[u];if(i===" "||i===" ")t++;else{e[n]=s.slice(0,u+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(rr);return t}function en(e,t,r,n,s,u){if(r===Number.POSITIVE_INFINITY)return!0;let i=t.length,a=[e],o=[];for(;r>=0;){if(a.length===0){if(i===0)return!0;a.push(t[--i]);continue}let{mode:p,doc:m}=a.pop();switch(Ze(m)){case Ke:o.push(m),r-=tt(m);break;case je:case De:{let y=yr(m);for(let c=y.length-1;c>=0;c--)a.push({mode:p,doc:y[c]});break}case Me:case Re:case Je:case be:a.push({mode:p,doc:m.contents});break;case Qe:r+=ls(o);break;case ue:{if(u&&m.break)return!1;let y=m.break?Ce:p,c=m.expandedStates&&y===Ce?w(!1,m.expandedStates,-1):m.contents;a.push({mode:y,doc:c});break}case Fe:{let c=(m.groupId?s[m.groupId]||rt:p)===Ce?m.breakContents:m.flatContents;c&&a.push({mode:p,doc:c});break}case ie:if(p===Ce||m.hard)return!0;m.soft||(o.push(" "),r--);break;case Ne:n=!0;break;case Ue:if(n)return!1;break}}return!1}function ms(e,t){let r={},n=t.printWidth,s=ni(t.endOfLine),u=0,i=[{ind:si(),mode:Ce,doc:e}],a=[],o=!1,p=[],m=0;for(Rs(e);i.length>0;){let{ind:c,mode:f,doc:l}=i.pop();switch(Ze(l)){case Ke:{let h=s!==` +`}}var de=Symbol("MODE_BREAK"),nt=Symbol("MODE_FLAT"),rr=Symbol("cursor");function ni(){return{value:"",length:0,queue:[]}}function rc(e,t){return ps(e,{type:"indent"},t)}function nc(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||ni():t<0?ps(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:ps(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function ps(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],s="",u=0,i=0,a=0;for(let l of n)switch(l.type){case"indent":m(),r.useTabs?o(1):p(r.tabWidth);break;case"stringAlign":m(),s+=l.n,u+=l.n.length;break;case"numberAlign":i+=1,a+=l.n;break;default:throw new Error(`Unexpected type '${l.type}'`)}return c(),{...e,value:s,length:u,queue:n};function o(l){s+=" ".repeat(l),u+=r.tabWidth*l}function p(l){s+=" ".repeat(l),u+=l}function m(){r.useTabs?D():c()}function D(){i>0&&o(i),f()}function c(){a>0&&p(a),f()}function f(){i=0,a=0}}function cs(e){let t=0,r=0,n=e.length;e:for(;n--;){let s=e[n];if(s===rr){r++;continue}for(let u=s.length-1;u>=0;u--){let i=s[u];if(i===" "||i===" ")t++;else{e[n]=s.slice(0,u+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(rr);return t}function Qr(e,t,r,n,s,u){if(r===Number.POSITIVE_INFINITY)return!0;let i=t.length,a=[e],o=[];for(;r>=0;){if(a.length===0){if(i===0)return!0;a.push(t[--i]);continue}let{mode:p,doc:m}=a.pop();switch(Ze(m)){case Ke:o.push(m),r-=tt(m);break;case je:case ye:{let D=yr(m);for(let c=D.length-1;c>=0;c--)a.push({mode:p,doc:D[c]});break}case Me:case Re:case Je:case be:a.push({mode:p,doc:m.contents});break;case Qe:r+=cs(o);break;case ue:{if(u&&m.break)return!1;let D=m.break?de:p,c=m.expandedStates&&D===de?w(!1,m.expandedStates,-1):m.contents;a.push({mode:D,doc:c});break}case Fe:{let c=(m.groupId?s[m.groupId]||nt:p)===de?m.breakContents:m.flatContents;c&&a.push({mode:p,doc:c});break}case ie:if(p===de||m.hard)return!0;m.soft||(o.push(" "),r--);break;case Ne:n=!0;break;case Ue:if(n)return!1;break}}return!1}function ls(e,t){let r={},n=t.printWidth,s=ri(t.endOfLine),u=0,i=[{ind:ni(),mode:de,doc:e}],a=[],o=!1,p=[],m=0;for(Ms(e);i.length>0;){let{ind:c,mode:f,doc:l}=i.pop();switch(Ze(l)){case Ke:{let h=s!==` `?H(!1,l,` -`,s):l;a.push(h),i.length>0&&(u+=tt(h));break}case je:for(let h=l.length-1;h>=0;h--)i.push({ind:c,mode:f,doc:l[h]});break;case ze:if(m>=2)throw new Error("There are too many 'cursor' in doc.");a.push(rr),m++;break;case Me:i.push({ind:rc(c,t),mode:f,doc:l.contents});break;case Re:i.push({ind:nc(c,l.n,t),mode:f,doc:l.contents});break;case Qe:u-=ls(a);break;case ue:switch(f){case rt:if(!o){i.push({ind:c,mode:l.break?Ce:rt,doc:l.contents});break}case Ce:{o=!1;let h={ind:c,mode:rt,doc:l.contents},g=n-u,S=p.length>0;if(!l.break&&en(h,i,g,S,r))i.push(h);else if(l.expandedStates){let I=w(!1,l.expandedStates,-1);if(l.break){i.push({ind:c,mode:Ce,doc:I});break}else for(let v=1;v=l.expandedStates.length){i.push({ind:c,mode:Ce,doc:I});break}else{let _=l.expandedStates[v],R={ind:c,mode:rt,doc:_};if(en(R,i,g,S,r)){i.push(R);break}}}else i.push({ind:c,mode:Ce,doc:l.contents});break}}l.id&&(r[l.id]=w(!1,i,-1).mode);break;case De:{let h=n-u,{parts:g}=l;if(g.length===0)break;let[S,I]=g,v={ind:c,mode:rt,doc:S},_={ind:c,mode:Ce,doc:S},R=en(v,[],h,p.length>0,r,!0);if(g.length===1){R?i.push(v):i.push(_);break}let T={ind:c,mode:rt,doc:I},N={ind:c,mode:Ce,doc:I};if(g.length===2){R?i.push(T,v):i.push(N,_);break}g.splice(0,2);let Se={ind:c,mode:f,doc:St(g)},$=g[0];en({ind:c,mode:rt,doc:[S,I,$]},[],h,p.length>0,r,!0)?i.push(Se,T,v):R?i.push(Se,N,v):i.push(Se,N,_);break}case Fe:case Je:{let h=l.groupId?r[l.groupId]:f;if(h===Ce){let g=l.type===Fe?l.breakContents:l.negate?l.contents:E(l.contents);g&&i.push({ind:c,mode:f,doc:g})}if(h===rt){let g=l.type===Fe?l.flatContents:l.negate?E(l.contents):l.contents;g&&i.push({ind:c,mode:f,doc:g})}break}case Ne:p.push({ind:c,mode:f,doc:l.contents});break;case Ue:p.length>0&&i.push({ind:c,mode:f,doc:bn});break;case ie:switch(f){case rt:if(l.hard)o=!0;else{l.soft||(a.push(" "),u+=1);break}case Ce:if(p.length>0){i.push({ind:c,mode:f,doc:l},...p.reverse()),p.length=0;break}l.literal?c.root?(a.push(s,c.root.value),u=c.root.length):(a.push(s),u=0):(u-=ls(a),a.push(s+c.value),u=c.length);break}break;case be:i.push({ind:c,mode:f,doc:l.contents});break;case Pe:break;default:throw new ct(l)}i.length===0&&p.length>0&&(i.push(...p.reverse()),p.length=0)}let y=a.indexOf(rr);if(y!==-1){let c=a.indexOf(rr,y+1),f=a.slice(0,y).join(""),l=a.slice(y+1,c).join(""),h=a.slice(c+1).join("");return{formatted:f+l+h,cursorNodeStart:f.length,cursorNodeText:l}}return{formatted:a.join("")}}function tn(e,t,r){let{node:n}=e;if(n.type==="TemplateLiteral"&&ic(e)){let m=sc(e,r,t);if(m)return m}let u="expressions";n.type==="TSTemplateLiteralType"&&(u="types");let i=[],a=e.map(t,u),o=tu(n);o&&(a=a.map(m=>ms(m,{...r,printWidth:Number.POSITIVE_INFINITY}).formatted)),i.push(de,"`");let p=0;return e.each(({index:m,node:y})=>{if(i.push(t()),y.tail)return;let{tabWidth:c}=r,f=y.value.raw,l=f.includes(` -`)?ri(f,c):p;p=l;let h=a[m];if(!o){let S=n[u][m];(d(S)||J(S)||S.type==="ConditionalExpression"||S.type==="SequenceExpression"||Le(S)||ce(S))&&(h=[E([F,h]),F])}let g=l===0&&f.endsWith(` -`)?ye(Number.NEGATIVE_INFINITY,h):_s(h,l,c);i.push(D(["${",g,de,"}"]))},"quasis"),i.push("`"),i}function ui(e){let t=e("quasi");return et(t.label&&{tagged:!0,...t.label},[e("tag"),e("typeParameters"),de,t])}function sc(e,t,r){let{node:n}=e,s=n.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(s.length>1||s.some(u=>u.length>0)){t.__inJestEach=!0;let u=e.map(r,"expressions");t.__inJestEach=!1;let i=[],a=u.map(c=>"${"+ms(c,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),o=[{hasLineBreak:!1,cells:[]}];for(let c=1;c0&&(u+=tt(h));break}case je:for(let h=l.length-1;h>=0;h--)i.push({ind:c,mode:f,doc:l[h]});break;case ze:if(m>=2)throw new Error("There are too many 'cursor' in doc.");a.push(rr),m++;break;case Me:i.push({ind:rc(c,t),mode:f,doc:l.contents});break;case Re:i.push({ind:nc(c,l.n,t),mode:f,doc:l.contents});break;case Qe:u-=cs(a);break;case ue:switch(f){case nt:if(!o){i.push({ind:c,mode:l.break?de:nt,doc:l.contents});break}case de:{o=!1;let h={ind:c,mode:nt,doc:l.contents},g=n-u,S=p.length>0;if(!l.break&&Qr(h,i,g,S,r))i.push(h);else if(l.expandedStates){let I=w(!1,l.expandedStates,-1);if(l.break){i.push({ind:c,mode:de,doc:I});break}else for(let v=1;v=l.expandedStates.length){i.push({ind:c,mode:de,doc:I});break}else{let _=l.expandedStates[v],R={ind:c,mode:nt,doc:_};if(Qr(R,i,g,S,r)){i.push(R);break}}}else i.push({ind:c,mode:de,doc:l.contents});break}}l.id&&(r[l.id]=w(!1,i,-1).mode);break;case ye:{let h=n-u,{parts:g}=l;if(g.length===0)break;let[S,I]=g,v={ind:c,mode:nt,doc:S},_={ind:c,mode:de,doc:S},R=Qr(v,[],h,p.length>0,r,!0);if(g.length===1){R?i.push(v):i.push(_);break}let T={ind:c,mode:nt,doc:I},N={ind:c,mode:de,doc:I};if(g.length===2){R?i.push(T,v):i.push(N,_);break}g.splice(0,2);let Se={ind:c,mode:f,doc:St(g)},V=g[0];Qr({ind:c,mode:nt,doc:[S,I,V]},[],h,p.length>0,r,!0)?i.push(Se,T,v):R?i.push(Se,N,v):i.push(Se,N,_);break}case Fe:case Je:{let h=l.groupId?r[l.groupId]:f;if(h===de){let g=l.type===Fe?l.breakContents:l.negate?l.contents:E(l.contents);g&&i.push({ind:c,mode:f,doc:g})}if(h===nt){let g=l.type===Fe?l.flatContents:l.negate?E(l.contents):l.contents;g&&i.push({ind:c,mode:f,doc:g})}break}case Ne:p.push({ind:c,mode:f,doc:l.contents});break;case Ue:p.length>0&&i.push({ind:c,mode:f,doc:Sn});break;case ie:switch(f){case nt:if(l.hard)o=!0;else{l.soft||(a.push(" "),u+=1);break}case de:if(p.length>0){i.push({ind:c,mode:f,doc:l},...p.reverse()),p.length=0;break}l.literal?c.root?(a.push(s,c.root.value),u=c.root.length):(a.push(s),u=0):(u-=cs(a),a.push(s+c.value),u=c.length);break}break;case be:i.push({ind:c,mode:f,doc:l.contents});break;case Pe:break;default:throw new lt(l)}i.length===0&&p.length>0&&(i.push(...p.reverse()),p.length=0)}let D=a.indexOf(rr);if(D!==-1){let c=a.indexOf(rr,D+1),f=a.slice(0,D).join(""),l=a.slice(D+1,c).join(""),h=a.slice(c+1).join("");return{formatted:f+l+h,cursorNodeStart:f.length,cursorNodeText:l}}return{formatted:a.join("")}}function Zr(e,t,r){let{node:n}=e;if(n.type==="TemplateLiteral"&&ic(e)){let m=sc(e,r,t);if(m)return m}let u="expressions";n.type==="TSTemplateLiteralType"&&(u="types");let i=[],a=e.map(t,u),o=eu(n);o&&(a=a.map(m=>ls(m,{...r,printWidth:Number.POSITIVE_INFINITY}).formatted)),i.push(Ae,"`");let p=0;return e.each(({index:m,node:D})=>{if(i.push(t()),D.tail)return;let{tabWidth:c}=r,f=D.value.raw,l=f.includes(` +`)?ti(f,c):p;p=l;let h=a[m];if(!o){let S=n[u][m];(d(S)||J(S)||S.type==="ConditionalExpression"||S.type==="SequenceExpression"||Le(S)||ce(S))&&(h=[E([F,h]),F])}let g=l===0&&f.endsWith(` +`)?De(Number.NEGATIVE_INFINITY,h):vs(h,l,c);i.push(y(["${",g,Ae,"}"]))},"quasis"),i.push("`"),i}function si(e){let t=e("quasi");return et(t.label&&{tagged:!0,...t.label},[e("tag"),e("typeParameters"),Ae,t])}function sc(e,t,r){let{node:n}=e,s=n.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(s.length>1||s.some(u=>u.length>0)){t.__inJestEach=!0;let u=e.map(r,"expressions");t.__inJestEach=!1;let i=[],a=u.map(c=>"${"+ls(c,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),o=[{hasLineBreak:!1,cells:[]}];for(let c=1;cc.cells.length)),m=Array.from({length:p}).fill(0),y=[{cells:s},...o.filter(c=>c.cells.length>0)];for(let{cells:c}of y.filter(f=>!f.hasLineBreak))for(let[f,l]of c.entries())m[f]=Math.max(m[f],tt(l));return i.push(de,"`",E([C,B(C,y.map(c=>B(" | ",c.cells.map((f,l)=>c.hasLineBreak?f:f+" ".repeat(m[l]-tt(f))))))]),C,"`"),i}}function uc(e,t){let{node:r}=e,n=t();return d(r)&&(n=D([E([F,n]),F])),["${",n,de,"}"]}function Rt(e,t){return e.map(r=>uc(r,t),"expressions")}function rn(e,t){return st(e,r=>typeof r=="string"?t?H(!1,r,/(\\*)`/g,"$1$1\\`"):Ds(r):r)}function Ds(e){return H(!1,e,/([\\`]|\${)/g,"\\$1")}function ic({node:e,parent:t}){let r=/^[fx]?(?:describe|it|test)$/;return t.type==="TaggedTemplateExpression"&&t.quasi===e&&t.tag.type==="MemberExpression"&&t.tag.property.type==="Identifier"&&t.tag.property.name==="each"&&(t.tag.object.type==="Identifier"&&r.test(t.tag.object.name)||t.tag.object.type==="MemberExpression"&&t.tag.object.property.type==="Identifier"&&(t.tag.object.property.name==="only"||t.tag.object.property.name==="skip")&&t.tag.object.object.type==="Identifier"&&r.test(t.tag.object.object.name))}function ac(e){let t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}}var nn=ac;function oc(e){switch(e){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function ii(e,t,r){let{node:n}=e;return D([n.variance?r("variance"):"","[",E([r("keyTparam")," in ",r("sourceType")]),"]",oc(n.optional),": ",r("propType")])}function ys(e,t){return e==="+"||e==="-"?e+t:t}function ai(e,t,r){let{node:n}=e,s=yt(t.originalText,U(n),U(n.typeParameter));return D(["{",E([t.bracketSpacing?A:F,D([r("typeParameter"),n.optional?ys(n.optional,"?"):"",n.typeAnnotation?": ":"",r("typeAnnotation")]),t.semi?b(";"):""]),M(e,t),t.bracketSpacing?A:F,"}"],{shouldBreak:s})}var nr=nn("typeParameters");function pc(e,t,r){let{node:n}=e;return Y(n).length===1&&n.type.startsWith("TS")&&!n[r][0].constraint&&e.parent.type==="ArrowFunctionExpression"&&!(t.filepath&&/\.ts$/.test(t.filepath))}function gt(e,t,r,n){let{node:s}=e;if(!s[n])return"";if(!Array.isArray(s[n]))return r(n);let u=e.getNode(2),i=u&&Ct(u),a=e.match(m=>!(m[n].length===1&&ke(m[n][0])),void 0,(m,y)=>y==="typeAnnotation",m=>m.type==="Identifier",ns);if(s[n].length===0||!a&&(i||s[n].length===1&&(s[n][0].type==="NullableTypeAnnotation"||us(s[n][0]))))return["<",B(", ",e.map(r,n)),cc(e,t),">"];let p=s.type==="TSTypeParameterInstantiation"?"":pc(e,t,n)?",":le(t)?b(","):"";return D(["<",E([F,B([",",A],e.map(r,n))]),p,F,">"],{id:nr(s)})}function cc(e,t){let{node:r}=e;if(!d(r,x.Dangling))return"";let n=!d(r,x.Line),s=M(e,t,{indent:!n});return n?s:[s,C]}function sn(e,t,r){let{node:n,parent:s}=e,u=[n.type==="TSTypeParameter"&&n.const?"const ":""],i=n.type==="TSTypeParameter"?r("name"):n.name;if(s.type==="TSMappedType")return s.readonly&&u.push(ys(s.readonly,"readonly")," "),u.push("[",i),n.constraint&&u.push(" in ",r("constraint")),s.nameType&&u.push(" as ",e.callParent(()=>r("nameType"))),u.push("]"),u;if(n.variance&&u.push(r("variance")),n.in&&u.push("in "),n.out&&u.push("out "),u.push(i),n.bound&&(n.usesExtendsBound&&u.push(" extends "),u.push(q(e,r,"bound"))),n.constraint){let a=Symbol("constraint");u.push(" extends",D(E(A),{id:a}),de,lt(r("constraint"),{groupId:a}))}return n.default&&u.push(" = ",r("default")),D(u)}var sr=()=>{};sr.ok=sr;sr.strictEqual=sr;var un=sr;var an=new WeakMap;function pt(e,t,r){let{node:n}=e;if(n.computed)return["[",r("key"),"]"];let{parent:s}=e,{key:u}=n;if(t.quoteProps==="consistent"&&!an.has(s)){let i=(s.properties||s.body||s.members).some(a=>!a.computed&&a.key&&ee(a.key)&&!Mn(a,t));an.set(s,i)}if((u.type==="Identifier"||ge(u)&&Rn(He(oe(u)))&&String(u.value)===He(oe(u))&&!(t.parser==="typescript"||t.parser==="babel-ts"))&&(t.parser==="json"||t.quoteProps==="consistent"&&an.get(s))){let i=Tt(JSON.stringify(u.type==="Identifier"?u.name:u.value.toString()),t);return e.call(a=>pe(a,i,t),"key")}return Mn(n,t)&&(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!an.get(s))?e.call(i=>pe(i,/^\d/.test(u.value)?He(u.value):u.value,t),"key"):r("key")}function oi(e,t,r){let{node:n}=e;return n.shorthand?r("value"):ft(e,t,r,pt(e,t,r),":","value")}var lc=e=>e.type==="ObjectMethod"||e.type==="ClassMethod"||e.type==="ClassPrivateMethod"||e.type==="MethodDefinition"||e.type==="TSAbstractMethodDefinition"||e.type==="TSDeclareMethod"||(e.type==="Property"||e.type==="ObjectProperty")&&(e.method||e.kind==="get"||e.kind==="set"),mc=e=>e.node.type==="FunctionExpression"&&e.key==="value"&&lc(e.parent);function on(e,t,r,n){if(mc(e))return pn(e,r,t);let{node:s}=e,u=!1;if((s.type==="FunctionDeclaration"||s.type==="FunctionExpression")&&(n!=null&&n.expandLastArg)){let{parent:m}=e;k(m)&&(he(m).length>1||Y(s).every(y=>y.type==="Identifier"&&!y.typeAnnotation))&&(u=!0)}let i=[Q(e),s.async?"async ":"",`function${s.generator?"*":""} `,s.id?t("id"):""],a=at(e,t,r,u),o=ln(e,t),p=xt(s,o);return i.push(Ve(e,r,t),D([p?D(a):a,o]),s.body?" ":"",t("body")),r.semi&&(s.declare||!s.body)&&i.push(";"),i}function ur(e,t,r){let{node:n}=e,{kind:s}=n,u=n.value||n,i=[];return!s||s==="init"||s==="method"||s==="constructor"?u.async&&i.push("async "):(un.ok(s==="get"||s==="set"),i.push(s," ")),u.generator&&i.push("*"),i.push(pt(e,t,r),n.optional||n.key.optional?"?":"",n===u?pn(e,t,r):r("value")),i}function pn(e,t,r){let{node:n}=e,s=at(e,r,t),u=ln(e,r),i=Uu(n),a=xt(n,u),o=[Ve(e,t,r),D([i?D(s,{shouldBreak:!0}):a?D(s):s,u])];return n.body?o.push(" ",r("body")):o.push(t.semi?";":""),o}function Dc(e){let t=Y(e);return t.length===1&&!e.typeParameters&&!d(e,x.Dangling)&&t[0].type==="Identifier"&&!t[0].typeAnnotation&&!d(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function cn(e,t){if(t.arrowParens==="always")return!1;if(t.arrowParens==="avoid"){let{node:r}=e;return Dc(r)}return!1}function ln(e,t){let{node:r}=e,s=[q(e,t,"returnType")];return r.predicate&&s.push(t("predicate")),s}function pi(e,t,r){let{node:n}=e,s=t.semi?";":"",u=[];if(n.argument){let o=r("argument");yc(t,n.argument)?o=["(",E([C,o]),C,")"]:(ce(n.argument)||n.argument.type==="SequenceExpression")&&(o=D([b("("),E([F,o]),F,b(")")])),u.push(" ",o)}let i=d(n,x.Dangling),a=s&&i&&d(n,x.Last|x.Line);return a&&u.push(s),i&&u.push(" ",M(e,t)),a||u.push(s),u}function ci(e,t,r){return["return",pi(e,t,r)]}function li(e,t,r){return["throw",pi(e,t,r)]}function yc(e,t){if(Ie(e.originalText,t))return!0;if(Lt(t)){let r=t,n;for(;n=Qs(r);)if(r=n,Ie(e.originalText,r))return!0}return!1}var mi=j(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function mn(e,t,r){let{node:n}=e,s=[Q(e),_t(e),"class"],u=d(n.id,x.Trailing)||d(n.typeParameters,x.Trailing)||d(n.superClass)||P(n.extends)||P(n.mixins)||P(n.implements),i=[],a=[];if(n.id&&i.push(" ",r("id")),i.push(r("typeParameters")),n.superClass){let o=[Ec(e,t,r),r("superTypeParameters")],p=e.call(m=>["extends ",pe(m,o,t)],"superClass");u?a.push(A,D(p)):a.push(" ",p)}else a.push(fs(e,t,r,"extends"));if(a.push(fs(e,t,r,"mixins"),fs(e,t,r,"implements")),u){let o;yi(n)?o=[...i,E(a)]:o=E([...i,a]),s.push(D(o,{id:Di(n)}))}else s.push(...i,...a);return s.push(" ",r("body")),s}var Di=nn("heritageGroup");function Es(e){return b(C,"",{groupId:Di(e)})}function fc(e){return["extends","mixins","implements"].reduce((t,r)=>t+(Array.isArray(e[r])?e[r].length:0),e.superClass?1:0)>1}function yi(e){return e.typeParameters&&!d(e.typeParameters,x.Trailing|x.Line)&&!fc(e)}function fs(e,t,r,n){let{node:s}=e;if(!P(s[n]))return"";let u=M(e,t,{marker:n});return[yi(s)?b(" ",A,{groupId:nr(s.typeParameters)}):A,u,u&&C,n,D(E([A,B([",",A],e.map(r,n))]))]}function Ec(e,t,r){let n=r("superClass"),{parent:s}=e;return s.type==="AssignmentExpression"?D(b(["(",E([F,n]),F,")"],n)):n}function Dn(e,t,r){let{node:n}=e,s=[];return P(n.decorators)&&s.push(as(e,t,r)),s.push(jt(n)),n.static&&s.push("static "),s.push(_t(e)),n.override&&s.push("override "),s.push(ur(e,t,r)),s}function yn(e,t,r){let{node:n}=e,s=[],u=t.semi?";":"";P(n.decorators)&&s.push(as(e,t,r)),s.push(jt(n),Q(e)),n.static&&s.push("static "),s.push(_t(e)),n.override&&s.push("override "),n.readonly&&s.push("readonly "),n.variance&&s.push(r("variance")),(n.type==="ClassAccessorProperty"||n.type==="AccessorProperty"||n.type==="TSAbstractAccessorProperty")&&s.push("accessor "),s.push(pt(e,t,r),X(e),zr(e),q(e,r));let i=n.type==="TSAbstractPropertyDefinition"||n.type==="TSAbstractAccessorProperty";return[ft(e,t,r,s," =",i?void 0:"value"),u]}function fi(e,t,r){let{node:n}=e,s=[];return e.each(({node:u,next:i,isLast:a})=>{s.push(r()),!t.semi&&mi(u)&&Fc(u,i)&&s.push(";"),a||(s.push(C),me(u,t)&&s.push(C))},"body"),d(n,x.Dangling)&&s.push(M(e,t)),[P(n.body)?Es(e.parent):"","{",s.length>0?[E([C,s]),C]:"","}"]}function Fc(e,t){var s;let{type:r,name:n}=e.key;if(!e.computed&&r==="Identifier"&&(n==="static"||n==="get"||n==="set")&&!e.value&&!e.typeAnnotation)return!0;if(!t||t.static||t.accessibility)return!1;if(!t.computed){let u=(s=t.key)==null?void 0:s.name;if(u==="in"||u==="instanceof")return!0}if(mi(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||t.kind==="get"||t.kind==="set")return!1;let i=t.value?t.value.generator:t.generator;return!!(t.computed||i)}case"TSIndexSignature":return!0}return!1}function Et(e,t,r){var R;let n=t.semi?";":"",{node:s}=e,u=s.type==="ObjectTypeAnnotation",i=s.type==="TSEnumDeclaration"||s.type==="EnumBooleanBody"||s.type==="EnumNumberBody"||s.type==="EnumStringBody"||s.type==="EnumSymbolBody",a=[s.type==="TSTypeLiteral"||i?"members":s.type==="TSInterfaceBody"?"body":"properties"];u&&a.push("indexers","callProperties","internalSlots");let o=a.flatMap(T=>e.map(({node:N})=>({node:N,printed:r(),loc:U(N)}),T));a.length>1&&o.sort((T,N)=>T.loc-N.loc);let{parent:p,key:m}=e,y=u&&m==="body"&&(p.type==="InterfaceDeclaration"||p.type==="DeclareInterface"||p.type==="DeclareClass"),c=s.type==="TSInterfaceBody"||i||y||s.type==="ObjectPattern"&&p.type!=="FunctionDeclaration"&&p.type!=="FunctionExpression"&&p.type!=="ArrowFunctionExpression"&&p.type!=="ObjectMethod"&&p.type!=="ClassMethod"&&p.type!=="ClassPrivateMethod"&&p.type!=="AssignmentPattern"&&p.type!=="CatchClause"&&s.properties.some(T=>T.value&&(T.value.type==="ObjectPattern"||T.value.type==="ArrayPattern"))||s.type!=="ObjectPattern"&&o.length>0&&yt(t.originalText,U(s),o[0].loc),f=y?";":s.type==="TSInterfaceBody"||s.type==="TSTypeLiteral"?b(n,";"):",",l=s.type==="RecordExpression"?"#{":s.exact?"{|":"{",h=s.exact?"|}":"}",g=[],S=o.map(T=>{let N=[...g,D(T.printed)];return g=[f,A],(T.node.type==="TSPropertySignature"||T.node.type==="TSMethodSignature"||T.node.type==="TSConstructSignatureDeclaration"||T.node.type==="TSCallSignatureDeclaration")&&d(T.node,x.PrettierIgnore)&&g.shift(),me(T.node,t)&&g.push(C),N});if(s.inexact||s.hasUnknownMembers){let T;if(d(s,x.Dangling)){let N=d(s,x.Line);T=[M(e,t),N||z(t.originalText,O(w(!1,Kt(s),-1)))?C:A,"..."]}else T=["..."];S.push([...g,...T])}let I=(R=w(!1,o,-1))==null?void 0:R.node,v=!(s.inexact||s.hasUnknownMembers||I&&(I.type==="RestElement"||(I.type==="TSPropertySignature"||I.type==="TSCallSignatureDeclaration"||I.type==="TSMethodSignature"||I.type==="TSConstructSignatureDeclaration")&&d(I,x.PrettierIgnore))),_;if(S.length===0){if(!d(s,x.Dangling))return[l,h,q(e,r)];_=D([l,M(e,t,{indent:!0}),F,h,X(e),q(e,r)])}else _=[y&&P(s.properties)?Es(p):"",l,E([t.bracketSpacing?A:F,...S]),b(v&&(f!==","||le(t))?f:""),t.bracketSpacing?A:F,h,X(e),q(e,r)];return e.match(T=>T.type==="ObjectPattern"&&!T.decorators,Fs)||ke(s)&&(e.match(void 0,(T,N)=>N==="typeAnnotation",(T,N)=>N==="typeAnnotation",Fs)||e.match(void 0,(T,N)=>T.type==="FunctionTypeParam"&&N==="typeAnnotation",Fs))||!c&&e.match(T=>T.type==="ObjectPattern",T=>T.type==="AssignmentExpression"||T.type==="VariableDeclarator")?_:D(_,{shouldBreak:c})}function Fs(e,t){return(t==="params"||t==="parameters"||t==="this"||t==="rest")&&ss(e)}var Cs=new WeakMap;function Ei(e){return Cs.has(e)||Cs.set(e,e.type==="ConditionalExpression"&&!re(e,t=>t.type==="ObjectExpression")),Cs.get(e)}var Fi=e=>e.type==="SequenceExpression";function Ci(e,t,r,n={}){let s=[],u,i=[],a=!1,o=!n.expandLastArg&&e.node.body.type==="ArrowFunctionExpression",p;(function g(){let{node:S}=e,I=Cc(e,t,r,n);if(s.length===0)s.push(I);else{let{leading:v,trailing:_}=Gn(e,t);s.push([v,I]),i.unshift(_)}o&&(a||(a=S.returnType&&Y(S).length>0||S.typeParameters||Y(S).some(v=>v.type!=="Identifier"))),!o||S.body.type!=="ArrowFunctionExpression"?(u=r("body",n),p=S.body):e.call(g,"body")})();let m=!Ie(t.originalText,p)&&(Fi(p)||dc(p,u,t)||!a&&Ei(p)),y=e.key==="callee"&&ut(e.parent),c=Symbol("arrow-chain"),f=Ac(e,n,{signatureDocs:s,shouldBreak:a}),l,h=!1;return o&&(y||n.assignmentLayout)&&(h=!0,l=n.assignmentLayout==="chain-tail-arrow-chain"||y&&!m),u=Tc(e,t,n,{bodyDoc:u,bodyComments:i,functionBody:p,shouldPutBodyOnSameLine:m}),D([D(h?E([F,f]):f,{shouldBreak:l,id:c})," =>",o?lt(u,{groupId:c}):D(u),o&&y?b(F,"",{groupId:c}):""])}function Cc(e,t,r,n){let{node:s}=e,u=[];if(s.async&&u.push("async "),cn(e,t))u.push(r(["params",0]));else{let a=n.expandLastArg||n.expandFirstArg,o=ln(e,r);if(a){if(K(o))throw new it;o=D(Ut(o))}u.push(D([at(e,r,t,a,!0),o]))}let i=M(e,t,{filter(a){let o=Xe(t.originalText,O(a));return o!==!1&&t.originalText.slice(o,o+2)==="=>"}});return i&&u.push(" ",i),u}function dc(e,t,r){var n,s;return G(e)||Z(e)||e.type==="ArrowFunctionExpression"||e.type==="DoExpression"||e.type==="BlockStatement"||V(e)||((n=t.label)==null?void 0:n.hug)!==!1&&(((s=t.label)==null?void 0:s.embed)||hr(e,r.originalText))}function Ac(e,t,{signatureDocs:r,shouldBreak:n}){if(r.length===1)return r[0];let{parent:s,key:u}=e;return u!=="callee"&&ut(s)||ce(s)?D([r[0]," =>",E([A,B([" =>",A],r.slice(1))])],{shouldBreak:n}):u==="callee"&&ut(s)||t.assignmentLayout?D(B([" =>",A],r),{shouldBreak:n}):D(E(B([" =>",A],r)),{shouldBreak:n})}function Tc(e,t,r,{bodyDoc:n,bodyComments:s,functionBody:u,shouldPutBodyOnSameLine:i}){let{node:a,parent:o}=e,p=r.expandLastArg&&le(t,"all")?b(","):"",m=(r.expandLastArg||o.type==="JSXExpressionContainer")&&!d(a)?F:"";return i&&Ei(u)?[" ",D([b("","("),E([F,n]),b("",")"),p,m]),s]:(Fi(u)&&(n=D(["(",E([F,n]),F,")"])),i?[" ",n,s]:[E([A,n,s]),p,m])}function ir(e,t,r,n){let{node:s}=e,u=[],i=xc(s[n]);return e.each(({node:a})=>{a.type!=="EmptyStatement"&&(u.push(r()),a!==i&&(u.push(C),me(a,t)&&u.push(C)))},n),u}function xc(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r.type!=="EmptyStatement")return r}}function fn(e,t,r){let{node:n}=e,s=[];n.type==="StaticBlock"&&s.push("static "),s.push("{");let u=ds(e,t,r);if(u)s.push(E([C,u]),C);else{let{parent:i}=e,a=e.grandparent;i.type==="ArrowFunctionExpression"||i.type==="FunctionExpression"||i.type==="FunctionDeclaration"||i.type==="ObjectMethod"||i.type==="ClassMethod"||i.type==="ClassPrivateMethod"||i.type==="ForStatement"||i.type==="WhileStatement"||i.type==="DoWhileStatement"||i.type==="DoExpression"||i.type==="CatchClause"&&!a.finalizer||i.type==="TSModuleDeclaration"||i.type==="TSDeclareFunction"||n.type==="StaticBlock"||s.push(C)}return s.push("}"),s}function ds(e,t,r){var o;let{node:n}=e,s=P(n.directives),u=n.body.some(p=>p.type!=="EmptyStatement"),i=d(n,x.Dangling);if(!s&&!u&&!i)return"";let a=[];return s&&(a.push(ir(e,t,r,"directives")),(u||i)&&(a.push(C),me(w(!1,n.directives,-1),t)&&a.push(C))),u&&a.push(ir(e,t,r,"body")),i&&a.push(M(e,t)),n.type==="Program"&&((o=e.parent)==null?void 0:o.type)!=="ModuleExpression"&&a.push(C),a}function di(e,t){if(t.semi||As(e,t)||xs(e,t))return!1;let{node:r,key:n,parent:s}=e;return!!(r.type==="ExpressionStatement"&&(n==="body"&&(s.type==="Program"||s.type==="BlockStatement"||s.type==="StaticBlock"||s.type==="TSModuleBlock")||n==="consequent"&&s.type==="SwitchCase")&&e.call(()=>Ai(e,t),"expression"))}function Ai(e,t){let{node:r}=e;switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!cn(e,t))return!0;break;case"UnaryExpression":{let{prefix:n,operator:s}=r;if(n&&(s==="+"||s==="-"))return!0;break}case"BindExpression":if(!r.object)return!0;break;case"Literal":if(r.regex)return!0;break;default:if(V(r))return!0}return we(e,t)?!0:Lt(r)?e.call(()=>Ai(e,t),...Tr(r)):!1}function As({node:e,parent:t},r){return(r.parentParser==="markdown"||r.parentParser==="mdx")&&e.type==="ExpressionStatement"&&V(e.expression)&&t.type==="Program"&&t.body.length===1}function Ts(e){switch(e.type){case"MemberExpression":switch(e.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return Ts(e.object)}return!1;case"Identifier":return!0;default:return!1}}function xs({node:e,parent:t},r){return(r.parser==="__vue_event_binding"||r.parser==="__vue_ts_event_binding")&&e.type==="ExpressionStatement"&&t.type==="Program"&&t.body.length===1}function Ti(e,t,r){let n=[r("expression")];return xs(e,t)?Ts(e.node.expression)&&n.push(";"):As(e,t)||t.semi&&n.push(";"),d(e.node,x.Dangling,({marker:s})=>s===zt)&&n.push(" ",M(e,t,{marker:zt})),n}function xi(e,t,r){if(t.__isVueBindings||t.__isVueForBindingLeft){let n=e.map(r,"program","body",0,"params");if(n.length===1)return n[0];let s=B([",",A],n);return t.__isVueForBindingLeft?["(",E([F,D(s)]),F,")"]:s}}function gi(e,t,r,n){let{node:s}=e;if(Mr(s))return _u(e,t);let u=t.semi?";":"",i=[];switch(s.type){case"JsExpressionRoot":return r("node");case"JsonRoot":return[r("node"),C];case"File":return xi(e,t,r)??r("program");case"Program":return ds(e,t,r);case"EmptyStatement":return"";case"ExpressionStatement":return Ti(e,t,r);case"ChainExpression":return r("expression");case"ParenthesizedExpression":return!d(s.expression)&&(Z(s.expression)||G(s.expression))?["(",r("expression"),")"]:D(["(",E([F,r("expression")]),F,")"]);case"AssignmentExpression":return Mu(e,t,r);case"VariableDeclarator":return Ru(e,t,r);case"BinaryExpression":case"LogicalExpression":return Or(e,t,r);case"AssignmentPattern":return[r("left")," = ",r("right")];case"OptionalMemberExpression":case"MemberExpression":return Iu(e,t,r);case"MetaProperty":return[r("meta"),".",r("property")];case"BindExpression":return s.object&&i.push(r("object")),i.push(D(E([F,vr(e,t,r)]))),i;case"Identifier":return[s.name,X(e),zr(e),q(e,r)];case"V8IntrinsicIdentifier":return["%",s.name];case"SpreadElement":case"SpreadElementPattern":case"SpreadPropertyPattern":case"RestElement":return Qr(e,r);case"FunctionDeclaration":case"FunctionExpression":return on(e,r,t,n);case"ArrowFunctionExpression":return Ci(e,t,r,n);case"YieldExpression":return i.push("yield"),s.delegate&&i.push("*"),s.argument&&i.push(" ",r("argument")),i;case"AwaitExpression":if(i.push("await"),s.argument){i.push(" ",r("argument"));let{parent:a}=e;if(k(a)&&a.callee===s||J(a)&&a.object===s){i=[E([F,...i]),F];let o=e.findAncestor(p=>p.type==="AwaitExpression"||p.type==="BlockStatement");if((o==null?void 0:o.type)!=="AwaitExpression"||!re(o.argument,p=>p===s))return D(i)}}return i;case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return Zr(e,t,r);case"ImportDeclaration":return Vu(e,t,r);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return ei(e,t,r);case"ImportAttribute":return[r("key"),": ",r("value")];case"Import":return"import";case"BlockStatement":case"StaticBlock":return fn(e,t,r);case"ClassBody":return fi(e,t,r);case"ThrowStatement":return li(e,t,r);case"ReturnStatement":return ci(e,t,r);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return _r(e,t,r);case"ObjectExpression":case"ObjectPattern":case"RecordExpression":return Et(e,t,r);case"ObjectProperty":case"Property":return s.method||s.kind==="get"||s.kind==="set"?ur(e,t,r):oi(e,t,r);case"ObjectMethod":return ur(e,t,r);case"Decorator":return["@",r("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return vt(e,t,r);case"SequenceExpression":{let{parent:a}=e;if(a.type==="ExpressionStatement"||a.type==="ForStatement"){let o=[];return e.each(({isFirst:p})=>{p?o.push(r()):o.push(",",E([A,r()]))},"expressions"),D(o)}return D(B([",",A],e.map(r,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[r("value"),u];case"UnaryExpression":return i.push(s.operator),/[a-z]$/.test(s.operator)&&i.push(" "),d(s.argument)?i.push(D(["(",E([F,r("argument")]),F,")"])):i.push(r("argument")),i;case"UpdateExpression":return i.push(r("argument"),s.operator),s.prefix&&i.reverse(),i;case"ConditionalExpression":return Mt(e,t,r);case"VariableDeclaration":{let a=e.map(r,"declarations"),o=e.parent,p=o.type==="ForStatement"||o.type==="ForInStatement"||o.type==="ForOfStatement",m=s.declarations.some(c=>c.init),y;return a.length===1&&!d(s.declarations[0])?y=a[0]:a.length>0&&(y=E(a[0])),i=[Q(e),s.kind,y?[" ",y]:"",E(a.slice(1).map(c=>[",",m&&!p?C:A,c]))],p&&o.body!==s||i.push(u),D(i)}case"WithStatement":return D(["with (",r("object"),")",ot(s.body,r("body"))]);case"IfStatement":{let a=ot(s.consequent,r("consequent")),o=D(["if (",D([E([F,r("test")]),F]),")",a]);if(i.push(o),s.alternate){let p=d(s.consequent,x.Trailing|x.Line)||Sr(s),m=s.consequent.type==="BlockStatement"&&!p;i.push(m?" ":C),d(s,x.Dangling)&&i.push(M(e,t),p?C:" "),i.push("else",D(ot(s.alternate,r("alternate"),s.alternate.type==="IfStatement")))}return i}case"ForStatement":{let a=ot(s.body,r("body")),o=M(e,t),p=o?[o,F]:"";return!s.init&&!s.test&&!s.update?[p,D(["for (;;)",a])]:[p,D(["for (",D([E([F,r("init"),";",A,r("test"),";",A,r("update")]),F]),")",a])]}case"WhileStatement":return D(["while (",D([E([F,r("test")]),F]),")",ot(s.body,r("body"))]);case"ForInStatement":return D(["for (",r("left")," in ",r("right"),")",ot(s.body,r("body"))]);case"ForOfStatement":return D(["for",s.await?" await":""," (",r("left")," of ",r("right"),")",ot(s.body,r("body"))]);case"DoWhileStatement":{let a=ot(s.body,r("body"));return i=[D(["do",a])],s.body.type==="BlockStatement"?i.push(" "):i.push(C),i.push("while (",D([E([F,r("test")]),F]),")",u),i}case"DoExpression":return[s.async?"async ":"","do ",r("body")];case"BreakStatement":case"ContinueStatement":return i.push(s.type==="BreakStatement"?"break":"continue"),s.label&&i.push(" ",r("label")),i.push(u),i;case"LabeledStatement":return s.body.type==="EmptyStatement"?[r("label"),":;"]:[r("label"),": ",r("body")];case"TryStatement":return["try ",r("block"),s.handler?[" ",r("handler")]:"",s.finalizer?[" finally ",r("finalizer")]:""];case"CatchClause":if(s.param){let a=d(s.param,p=>!ae(p)||p.leading&&z(t.originalText,O(p))||p.trailing&&z(t.originalText,U(p),{backwards:!0})),o=r("param");return["catch ",a?["(",E([F,o]),F,") "]:["(",o,") "],r("body")]}return["catch ",r("body")];case"SwitchStatement":return[D(["switch (",E([F,r("discriminant")]),F,")"])," {",s.cases.length>0?E([C,B(C,e.map(({node:a,isLast:o})=>[r(),!o&&me(a,t)?C:""],"cases"))]):"",C,"}"];case"SwitchCase":{s.test?i.push("case ",r("test"),":"):i.push("default:"),d(s,x.Dangling)&&i.push(" ",M(e,t));let a=s.consequent.filter(o=>o.type!=="EmptyStatement");if(a.length>0){let o=ir(e,t,r,"consequent");i.push(a.length===1&&a[0].type==="BlockStatement"?[" ",o]:E([C,o]))}return i}case"DebuggerStatement":return["debugger",u];case"ClassDeclaration":case"ClassExpression":return mn(e,t,r);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return Dn(e,t,r);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return yn(e,t,r);case"TemplateElement":return Te(s.value.raw);case"TemplateLiteral":return tn(e,r,t);case"TaggedTemplateExpression":return ui(r);case"PrivateIdentifier":return["#",s.name];case"PrivateName":return["#",r("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":{i.push("module {");let a=r("body");return a&&i.push(E([C,a]),C),i.push("}"),i}case"InterpreterDirective":default:throw new Oe(s,"ESTree")}}function Si(e,t,r){let{node:n}=e;if(n.type.startsWith("NG"))switch(n.type){case"NGRoot":return[r("node"),d(n.node)?" //"+Kt(n.node)[0].value.trimEnd():""];case"NGPipeExpression":return Or(e,t,r);case"NGChainedExpression":return D(B([";",A],e.map(()=>hc(e)?r():["(",r(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return e.map(()=>[e.isFirst?"":hi(e)?" ":[";",A],r()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/i.test(n.name)?n.name:JSON.stringify(n.name);case"NGMicrosyntaxExpression":return[r("expression"),n.alias===null?"":[" as ",r("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:s,parent:u}=e,i=hi(e)||(s===1&&(n.key.name==="then"||n.key.name==="else")||s===2&&n.key.name==="else"&&u.body[s-1].type==="NGMicrosyntaxKeyedExpression"&&u.body[s-1].key.name==="then")&&u.body[0].type==="NGMicrosyntaxExpression";return[r("key"),i?" ":": ",r("expression")]}case"NGMicrosyntaxLet":return["let ",r("key"),n.value===null?"":[" = ",r("value")]];case"NGMicrosyntaxAs":return[r("key")," as ",r("alias")];default:throw new Oe(n,"Angular")}}function hi({node:e,index:t,parent:r}){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1&&r.body[0].type==="NGMicrosyntaxLet"&&r.body[0].value===null}var gc=j(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function hc({node:e}){return Xt(e,gc)}function En(e,t,r){let{node:n}=e,s=[Q(e),"interface"],u=[],i=[];n.type!=="InterfaceTypeAnnotation"&&u.push(" ",r("id"),r("typeParameters"));let a=n.typeParameters&&!d(n.typeParameters,x.Trailing|x.Line);return P(n.extends)&&i.push(a?b(" ",A,{groupId:nr(n.typeParameters)}):A,"extends ",(n.extends.length===1?nu:E)(B([",",A],e.map(r,"extends")))),d(n.id,x.Trailing)||P(n.extends)?a?s.push(D([...u,E(i)])):s.push(D(E([...u,...i]))):s.push(...u,...i),s.push(" ",r("body")),D(s)}function Bi(e,t,r){return Et(e,r,t)}function Fn(e,t){let{node:r}=e,n=t("id");r.computed&&(n=["[",n,"]"]);let s="";return r.initializer&&(s=t("initializer")),r.init&&(s=t("init")),s?[n," = ",s]:n}function bi(e,t,r){let{node:n}=e,s;if(n.type==="EnumSymbolBody"||n.explicitType)switch(n.type){case"EnumBooleanBody":s="boolean";break;case"EnumNumberBody":s="number";break;case"EnumStringBody":s="string";break;case"EnumSymbolBody":s="symbol";break}return[s?`of ${s} `:"",Bi(e,t,r)]}function Cn(e,t,r){let{node:n}=e;return[Q(e),n.const?"const ":"","enum ",t("id")," ",n.type==="TSEnumDeclaration"?Bi(e,t,r):t("body")]}function Pi(e,t,r){let{node:n}=e;if(Cr(n))return n.type.slice(0,-14).toLowerCase();let s=t.semi?";":"";switch(n.type){case"DeclareClass":return mn(e,t,r);case"DeclareFunction":return[Q(e),"function ",r("id"),r("predicate"),s];case"DeclareModule":return["declare module ",r("id")," ",r("body")];case"DeclareModuleExports":return["declare module.exports",q(e,r),s];case"DeclareVariable":return[Q(e),n.kind??"var"," ",r("id"),s];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return Zr(e,t,r);case"DeclareOpaqueType":case"OpaqueType":return Gu(e,t,r);case"DeclareTypeAlias":case"TypeAlias":return Jr(e,t,r);case"IntersectionTypeAnnotation":return Nr(e,t,r);case"UnionTypeAnnotation":return Ur(e,t,r);case"ConditionalTypeAnnotation":return Mt(e,t,r);case"InferTypeAnnotation":return Wr(e,t,r);case"FunctionTypeAnnotation":return Gr(e,t,r);case"TupleTypeAnnotation":return vt(e,t,r);case"TupleTypeLabeledElement":return Xr(e,t,r);case"TupleTypeSpreadElement":return Yr(e,t,r);case"GenericTypeAnnotation":return[r("id"),gt(e,t,r,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return qr(e,t,r);case"TypeAnnotation":return $r(e,t,r);case"TypeParameter":return sn(e,t,r);case"TypeofTypeAnnotation":return Hr(e,r);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return Vr(r);case"DeclareEnum":case"EnumDeclaration":return Cn(e,r,t);case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":return bi(e,r,t);case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":return Fn(e,r);case"FunctionTypeParam":{let u=n.name?r("name"):e.parent.this===n?"this":"";return[u,X(e),u?": ":"",r("typeAnnotation")]}case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return En(e,t,r);case"ClassImplements":case"InterfaceExtends":return[r("id"),r("typeParameters")];case"NullableTypeAnnotation":return["?",r("typeAnnotation")];case"Variance":{let{kind:u}=n;return un.ok(u==="plus"||u==="minus"),u==="plus"?"+":"-"}case"KeyofTypeAnnotation":return["keyof ",r("argument")];case"ObjectTypeCallProperty":return[n.static?"static ":"",r("value")];case"ObjectTypeMappedTypeProperty":return ii(e,t,r);case"ObjectTypeIndexer":return[n.static?"static ":"",n.variance?r("variance"):"","[",r("id"),n.id?": ":"",r("key"),"]: ",r("value")];case"ObjectTypeProperty":{let u="";return n.proto?u="proto ":n.static&&(u="static "),[u,_n(n)?n.kind+" ":"",n.variance?r("variance"):"",pt(e,t,r),X(e),jn(n)?"":": ",r("value")]}case"ObjectTypeAnnotation":return Et(e,t,r);case"ObjectTypeInternalSlot":return[n.static?"static ":"","[[",r("id"),"]]",X(e),n.method?"":": ",r("value")];case"ObjectTypeSpreadProperty":return Qr(e,r);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[r("qualification"),".",r("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(n.value);case"StringLiteralTypeAnnotation":return Te(Tt(oe(n),t));case"NumberLiteralTypeAnnotation":return He(n.raw??n.extra.raw);case"BigIntLiteralTypeAnnotation":return jr(n.raw??n.extra.raw);case"TypeCastExpression":return["(",r("expression"),q(e,r),")"];case"TypePredicate":return Kr(e,r);case"TypeParameterDeclaration":case"TypeParameterInstantiation":return gt(e,t,r,"params");case"InferredPredicate":case"DeclaredPredicate":return[e.key==="predicate"&&e.parent.type!=="DeclareFunction"&&!e.parent.returnType?": ":" ","%checks",...n.type==="DeclaredPredicate"?["(",r("value"),")"]:[]]}}function ki(e,t,r){var i;let{node:n}=e;if(!n.type.startsWith("TS"))return;if(dr(n))return n.type.slice(2,-7).toLowerCase();let s=t.semi?";":"",u=[];switch(n.type){case"TSThisType":return"this";case"TSTypeAssertion":{let a=!(G(n.expression)||Z(n.expression)),o=D(["<",E([F,r("typeAnnotation")]),F,">"]),p=[b("("),E([F,r("expression")]),F,b(")")];return a?qe([[o,r("expression")],[o,D(p,{shouldBreak:!0})],[o,r("expression")]]):D([o,r("expression")])}case"TSDeclareFunction":return on(e,r,t);case"TSExportAssignment":return["export = ",r("expression"),s];case"TSModuleBlock":return fn(e,t,r);case"TSInterfaceBody":case"TSTypeLiteral":return Et(e,t,r);case"TSTypeAliasDeclaration":return Jr(e,t,r);case"TSQualifiedName":return[r("left"),".",r("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return Dn(e,t,r);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return yn(e,t,r);case"TSInterfaceHeritage":case"TSClassImplements":case"TSExpressionWithTypeArguments":case"TSInstantiationExpression":return[r("expression"),r("typeParameters")];case"TSTemplateLiteralType":return tn(e,r,t);case"TSNamedTupleMember":return Xr(e,t,r);case"TSRestType":return Yr(e,t,r);case"TSOptionalType":return[r("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return En(e,t,r);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return gt(e,t,r,"params");case"TSTypeParameter":return sn(e,t,r);case"TSAsExpression":case"TSSatisfiesExpression":{let a=n.type==="TSAsExpression"?"as":"satisfies";u.push(r("expression"),` ${a} `,r("typeAnnotation"));let{parent:o}=e;return k(o)&&o.callee===n||J(o)&&o.object===n?D([E([F,...u]),F]):u}case"TSArrayType":return Vr(r);case"TSPropertySignature":return[n.readonly?"readonly ":"",pt(e,t,r),X(e),q(e,r)];case"TSParameterProperty":return[jt(n),n.static?"static ":"",n.override?"override ":"",n.readonly?"readonly ":"",r("parameter")];case"TSTypeQuery":return Hr(e,r);case"TSIndexSignature":{let a=n.parameters.length>1?b(le(t)?",":""):"",o=D([E([F,B([", ",F],e.map(r,"parameters"))]),a,F]),p=e.parent.type==="ClassBody"&&e.key==="body";return[p&&n.static?"static ":"",n.readonly?"readonly ":"","[",n.parameters?o:"","]",q(e,r),p?s:""]}case"TSTypePredicate":return Kr(e,r);case"TSNonNullExpression":return[r("expression"),"!"];case"TSImportType":return[n.isTypeOf?"typeof ":"","import(",r(n.parameter?"parameter":"argument"),")",n.qualifier?[".",r("qualifier")]:"",gt(e,t,r,"typeParameters")];case"TSLiteralType":return r("literal");case"TSIndexedAccessType":return qr(e,t,r);case"TSTypeOperator":return[n.operator," ",r("typeAnnotation")];case"TSMappedType":return ai(e,t,r);case"TSMethodSignature":{let a=n.kind&&n.kind!=="method"?`${n.kind} `:"";u.push(jt(n),a,n.computed?"[":"",r("key"),n.computed?"]":"",X(e));let o=at(e,r,t,!1,!0),p=n.returnType?"returnType":"typeAnnotation",m=n[p],y=m?q(e,r,p):"",c=xt(n,y);return u.push(c?D(o):o),m&&u.push(D(y)),D(u)}case"TSNamespaceExportDeclaration":return["export as namespace ",r("id"),t.semi?";":""];case"TSEnumDeclaration":return Cn(e,r,t);case"TSEnumMember":return Fn(e,r);case"TSImportEqualsDeclaration":return[n.isExport?"export ":"","import ",ps(n,!1),r("id")," = ",r("moduleReference"),t.semi?";":""];case"TSExternalModuleReference":return["require(",r("expression"),")"];case"TSModuleDeclaration":{let{parent:a}=e,o=a.type==="TSModuleDeclaration",p=((i=n.body)==null?void 0:i.type)==="TSModuleDeclaration";if(o)u.push(".");else if(u.push(Q(e)),!(n.kind==="global"||n.global)){let y=n.kind??(ee(n.id)||/(?:^|\s)module(?:\s|$)/.test(t.originalText.slice(U(n),U(n.id)))?"module":"namespace");u.push(y," ")}return u.push(r("id")),p?u.push(r("body")):n.body?u.push(" ",D(r("body"))):u.push(s),u}case"TSConditionalType":return Mt(e,t,r);case"TSInferType":return Wr(e,t,r);case"TSIntersectionType":return Nr(e,t,r);case"TSUnionType":return Ur(e,t,r);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return Gr(e,t,r);case"TSTupleType":return vt(e,t,r);case"TSTypeReference":return[r("typeName"),gt(e,t,r,"typeParameters")];case"TSTypeAnnotation":return $r(e,t,r);case"TSEmptyBodyFunctionExpression":return pn(e,t,r);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return is(e,r,"?");case"TSJSDocNonNullableType":return is(e,r,"!");case"TSParenthesizedType":default:throw new Oe(n,"TypeScript")}}function Sc(e,t,r,n){if(wr(e))return Is(e,t);for(let s of[Si,Su,Pi,ki,gi]){let u=s(e,t,r,n);if(u!==void 0)return u}}var Bc=j(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function bc(e,t,r,n){var y;e.isRoot&&((y=t.__onHtmlBindingRoot)==null||y.call(t,e.node,t));let s=Sc(e,t,r,n);if(!s)return"";let{node:u}=e;if(Bc(u))return s;let i=P(u.decorators),a=Yu(e,t,r),o=u.type==="ClassExpression";if(i&&!o)return Gt(s,c=>D([a,c]));let p=we(e,t),m=di(e,t);return!a&&!p&&!m?s:Gt(s,c=>[m?";":"",p?"(":"",p&&o&&i?[E([A,a,c]),A]:[a,c],p?")":""])}var Ii=bc;var Li=[(e,t)=>e.type==="ObjectExpression"&&t==="properties",(e,t)=>e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="Component"&&t==="arguments",(e,t)=>e.type==="Decorator"&&t==="expression"];function wi(e){return e.match(t=>t.type==="TemplateLiteral",(t,r)=>G(t)&&r==="elements",(t,r)=>fe(t)&&t.key.type==="Identifier"&&t.key.name==="styles"&&r==="value",...Li)}function Oi(e){return e.match(t=>t.type==="TemplateLiteral",(t,r)=>fe(t)&&t.key.type==="Identifier"&&t.key.name==="template"&&r==="value",...Li)}function dn(e,t){return d(e,x.Block|x.Leading,({value:r})=>r===` ${t} `)}async function Pc(e,t,r){let{node:n}=r,s=n.quasis.map(m=>m.value.raw),u=0,i=s.reduce((m,y,c)=>c===0?y:m+"@prettier-placeholder-"+u+++"-id"+y,""),a=await e(i,{parser:"scss"}),o=Rt(r,t),p=kc(a,o);if(!p)throw new Error("Couldn't insert all the expressions");return["`",E([C,p]),F,"`"]}function kc(e,t){if(!P(t))return e;let r=0,n=st(Bt(e),s=>typeof s!="string"||!s.includes("@prettier-placeholder")?s:s.split(/@prettier-placeholder-(\d+)-id/).map((u,i)=>i%2===0?Te(u):(r++,t[u])));return t.length===r?n:null}function Ic({node:e,parent:t,grandparent:r}){return r&&e.quasis&&t.type==="JSXExpressionContainer"&&r.type==="JSXElement"&&r.openingElement.name.name==="style"&&r.openingElement.attributes.some(n=>n.name.name==="jsx")||(t==null?void 0:t.type)==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="css"||(t==null?void 0:t.type)==="TaggedTemplateExpression"&&t.tag.type==="MemberExpression"&&t.tag.object.name==="css"&&(t.tag.property.name==="global"||t.tag.property.name==="resolve")}function An(e){return e.type==="Identifier"&&e.name==="styled"}function vi(e){return/^[A-Z]/.test(e.object.name)&&e.property.name==="extend"}function Lc({parent:e}){if(!e||e.type!=="TaggedTemplateExpression")return!1;let t=e.tag.type==="ParenthesizedExpression"?e.tag.expression:e.tag;switch(t.type){case"MemberExpression":return An(t.object)||vi(t);case"CallExpression":return An(t.callee)||t.callee.type==="MemberExpression"&&(t.callee.object.type==="MemberExpression"&&(An(t.callee.object.object)||vi(t.callee.object))||t.callee.object.type==="CallExpression"&&An(t.callee.object.callee));case"Identifier":return t.name==="css";default:return!1}}function wc({parent:e,grandparent:t}){return(t==null?void 0:t.type)==="JSXAttribute"&&e.type==="JSXExpressionContainer"&&t.name.type==="JSXIdentifier"&&t.name.name==="css"}function Oc(e){if(Ic(e)||Lc(e)||wc(e)||wi(e))return Pc}var _i=Oc;async function vc(e,t,r){let{node:n}=r,s=n.quasis.length,u=Rt(r,t),i=[];for(let a=0;a2&&c[0].trim()===""&&c[1].trim()==="",g=f>2&&c[f-1].trim()===""&&c[f-2].trim()==="",S=c.every(v=>/^\s*(?:#[^\n\r]*)?$/.test(v));if(!m&&/#[^\n\r]*$/.test(c[f-1]))return null;let I=null;S?I=_c(c):I=await e(y,{parser:"graphql"}),I?(I=rn(I,!1),!p&&h&&i.push(""),i.push(I),!m&&g&&i.push("")):!p&&!m&&h&&i.push(""),l&&i.push(l)}return["`",E([C,B(C,i)]),C,"`"]}function _c(e){let t=[],r=!1,n=e.map(s=>s.trim());for(let[s,u]of n.entries())u!==""&&(n[s-1]===""&&r?t.push([C,u]):t.push(u),r=!0);return t.length===0?null:B(C,t)}function jc({node:e,parent:t}){return dn(e,"GraphQL")||t&&(t.type==="TaggedTemplateExpression"&&(t.tag.type==="MemberExpression"&&t.tag.object.name==="graphql"&&t.tag.property.name==="experimental"||t.tag.type==="Identifier"&&(t.tag.name==="gql"||t.tag.name==="graphql"))||t.type==="CallExpression"&&t.callee.type==="Identifier"&&t.callee.name==="graphql")}function Mc(e){if(jc(e))return vc}var ji=Mc;var gs=0;async function Mi(e,t,r,n,s){let{node:u}=n,i=gs;gs=gs+1>>>0;let a=S=>`PRETTIER_HTML_PLACEHOLDER_${S}_${i}_IN_JS`,o=u.quasis.map((S,I,v)=>I===v.length-1?S.value.cooked:S.value.cooked+a(I)).join(""),p=Rt(n,r),m=new RegExp(a("(\\d+)"),"g"),y=0,c=await t(o,{parser:e,__onHtmlRoot(S){y=S.children.length}}),f=st(c,S=>{if(typeof S!="string")return S;let I=[],v=S.split(m);for(let _=0;_1?E(D(f)):D(f),h,"`"]))}function Rc(e){return dn(e.node,"HTML")||e.match(t=>t.type==="TemplateLiteral",(t,r)=>t.type==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="html"&&r==="quasi")}var Jc=Mi.bind(void 0,"html"),Nc=Mi.bind(void 0,"angular");function Uc(e){if(Rc(e))return Jc;if(Oi(e))return Nc}var Ri=Uc;async function Gc(e,t,r){let{node:n}=r,s=H(!1,n.quasis[0].value.raw,/((?:\\\\)*)\\`/g,(o,p)=>"\\".repeat(p.length/2)+"`"),u=qc(s),i=u!=="";i&&(s=H(!1,s,new RegExp(`^${u}`,"gm"),""));let a=rn(await e(s,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",i?E([F,a]):[Dr,Os(a)],F,"`"]}function qc(e){let t=e.match(/^([^\S\n]*)\S/m);return t===null?"":t[1]}function Wc(e){if(Yc(e))return Gc}function Yc({node:e,parent:t}){return(t==null?void 0:t.type)==="TaggedTemplateExpression"&&e.quasis.length===1&&t.tag.type==="Identifier"&&(t.tag.name==="md"||t.tag.name==="markdown")}var Ji=Wc;function Xc(e){let{node:t}=e;if(t.type!=="TemplateLiteral"||$c(t))return;let r;for(let n of[_i,ji,Ri,Ji])if(r=n(e),!!r)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===""?"``":async(...s)=>{let u=await r(...s);return u&&et({embed:!0,...u.label},u)}}function $c({quasis:e}){return e.some(({value:{cooked:t}})=>t===null)}var Ni=Xc;var Vc=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),Jt=e=>{for(let t of e.quasis)delete t.value};function Ui(e,t,r){var s,u;if(e.type==="Program"&&delete t.sourceType,(e.type==="BigIntLiteral"||e.type==="BigIntLiteralTypeAnnotation")&&t.value&&(t.value=t.value.toLowerCase()),(e.type==="BigIntLiteral"||e.type==="Literal")&&t.bigint&&(t.bigint=t.bigint.toLowerCase()),e.type==="DecimalLiteral"&&(t.value=Number(t.value)),e.type==="Literal"&&t.decimal&&(t.decimal=Number(t.decimal)),e.type==="EmptyStatement"||e.type==="JSXText"||e.type==="JSXExpressionContainer"&&(e.expression.type==="Literal"||e.expression.type==="StringLiteral")&&e.expression.value===" ")return null;if((e.type==="Property"||e.type==="ObjectProperty"||e.type==="MethodDefinition"||e.type==="ClassProperty"||e.type==="ClassMethod"||e.type==="PropertyDefinition"||e.type==="TSDeclareMethod"||e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty")&&typeof e.key=="object"&&e.key&&(e.key.type==="Literal"||e.key.type==="NumericLiteral"||e.key.type==="StringLiteral"||e.key.type==="Identifier")&&delete t.key,e.type==="JSXElement"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(i=>i.name.name==="jsx"))for(let{type:i,expression:a}of t.children)i==="JSXExpressionContainer"&&a.type==="TemplateLiteral"&&Jt(a);e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&Jt(t.value.expression),e.type==="JSXAttribute"&&((s=e.value)==null?void 0:s.type)==="Literal"&&/["']|"|'/.test(e.value.value)&&(t.value.value=H(!1,t.value.value,/["']|"|'/g,'"'));let n=e.expression||e.callee;if(e.type==="Decorator"&&n.type==="CallExpression"&&n.callee.name==="Component"&&n.arguments.length===1){let i=e.expression.arguments[0].properties;for(let[a,o]of t.expression.arguments[0].properties.entries())switch(i[a].key.name){case"styles":G(o.value)&&Jt(o.value.elements[0]);break;case"template":o.value.type==="TemplateLiteral"&&Jt(o.value);break}}if(e.type==="TaggedTemplateExpression"&&(e.tag.type==="MemberExpression"||e.tag.type==="Identifier"&&(e.tag.name==="gql"||e.tag.name==="graphql"||e.tag.name==="css"||e.tag.name==="md"||e.tag.name==="markdown"||e.tag.name==="html")||e.tag.type==="CallExpression")&&Jt(t.quasi),e.type==="TemplateLiteral"&&((u=e.leadingComments)!=null&&u.some(a=>ae(a)&&["GraphQL","HTML"].some(o=>a.value===` ${o} `))||r.type==="CallExpression"&&r.callee.name==="graphql"||!e.leadingComments)&&Jt(t),(e.type==="TSIntersectionType"||e.type==="TSUnionType")&&e.types.length===1)return t.types[0];e.type==="ChainExpression"&&e.expression.type==="TSNonNullExpression"&&([t.type,t.expression.type]=[t.expression.type,t.type])}Ui.ignoredProperties=Vc;var Gi=Ui;var Ft=la(Hi(),1);function sl(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` +`)&&o.push({hasLineBreak:!1,cells:[]})}let p=Math.max(s.length,...o.map(c=>c.cells.length)),m=Array.from({length:p}).fill(0),D=[{cells:s},...o.filter(c=>c.cells.length>0)];for(let{cells:c}of D.filter(f=>!f.hasLineBreak))for(let[f,l]of c.entries())m[f]=Math.max(m[f],tt(l));return i.push(Ae,"`",E([C,B(C,D.map(c=>B(" | ",c.cells.map((f,l)=>c.hasLineBreak?f:f+" ".repeat(m[l]-tt(f))))))]),C,"`"),i}}function uc(e,t){let{node:r}=e,n=t();return d(r)&&(n=y([E([F,n]),F])),["${",n,Ae,"}"]}function Rt(e,t){return e.map(r=>uc(r,t),"expressions")}function en(e,t){return ut(e,r=>typeof r=="string"?t?H(!1,r,/(\\*)`/g,"$1$1\\`"):ms(r):r)}function ms(e){return H(!1,e,/([\\`]|\${)/g,"\\$1")}function ic({node:e,parent:t}){let r=/^[fx]?(?:describe|it|test)$/;return t.type==="TaggedTemplateExpression"&&t.quasi===e&&t.tag.type==="MemberExpression"&&t.tag.property.type==="Identifier"&&t.tag.property.name==="each"&&(t.tag.object.type==="Identifier"&&r.test(t.tag.object.name)||t.tag.object.type==="MemberExpression"&&t.tag.object.property.type==="Identifier"&&(t.tag.object.property.name==="only"||t.tag.object.property.name==="skip")&&t.tag.object.object.type==="Identifier"&&r.test(t.tag.object.object.name))}function ac(e){let t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}}var tn=ac;function oc(e){switch(e){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function ui(e,t,r){let{node:n}=e;return y([n.variance?r("variance"):"","[",E([r("keyTparam")," in ",r("sourceType")]),"]",oc(n.optional),": ",r("propType")])}function ys(e,t){return e==="+"||e==="-"?e+t:t}function ii(e,t,r){let{node:n}=e,s=rt(t.originalText,U(n),U(n.typeParameter));return y(["{",E([t.bracketSpacing?A:F,y([r("typeParameter"),n.optional?ys(n.optional,"?"):"",n.typeAnnotation?": ":"",r("typeAnnotation")]),t.semi?P(";"):""]),M(e,t),t.bracketSpacing?A:F,"}"],{shouldBreak:s})}var nr=tn("typeParameters");function pc(e,t,r){let{node:n}=e;return X(n).length===1&&n.type.startsWith("TS")&&!n[r][0].constraint&&e.parent.type==="ArrowFunctionExpression"&&!(t.filepath&&/\.ts$/.test(t.filepath))}function gt(e,t,r,n){let{node:s}=e;if(!s[n])return"";if(!Array.isArray(s[n]))return r(n);let u=e.getNode(2),i=u&&Ct(u),a=e.match(m=>!(m[n].length===1&&ke(m[n][0])),void 0,(m,D)=>D==="typeAnnotation",m=>m.type==="Identifier",rs);if(s[n].length===0||!a&&(i||s[n].length===1&&(s[n][0].type==="NullableTypeAnnotation"||ss(s[n][0]))))return["<",B(", ",e.map(r,n)),cc(e,t),">"];let p=s.type==="TSTypeParameterInstantiation"?"":pc(e,t,n)?",":le(t)?P(","):"";return y(["<",E([F,B([",",A],e.map(r,n))]),p,F,">"],{id:nr(s)})}function cc(e,t){let{node:r}=e;if(!d(r,x.Dangling))return"";let n=!d(r,x.Line),s=M(e,t,{indent:!n});return n?s:[s,C]}function rn(e,t,r){let{node:n,parent:s}=e,u=[n.type==="TSTypeParameter"&&n.const?"const ":""],i=n.type==="TSTypeParameter"?r("name"):n.name;if(s.type==="TSMappedType")return s.readonly&&u.push(ys(s.readonly,"readonly")," "),u.push("[",i),n.constraint&&u.push(" in ",r("constraint")),s.nameType&&u.push(" as ",e.callParent(()=>r("nameType"))),u.push("]"),u;if(n.variance&&u.push(r("variance")),n.in&&u.push("in "),n.out&&u.push("out "),u.push(i),n.bound&&(n.usesExtendsBound&&u.push(" extends "),u.push(q(e,r,"bound"))),n.constraint){let a=Symbol("constraint");u.push(" extends",y(E(A),{id:a}),Ae,mt(r("constraint"),{groupId:a}))}return n.default&&u.push(" = ",r("default")),y(u)}var ai=new Proxy(()=>{},{get:()=>ai}),nn=ai;var sn=new WeakMap;function ct(e,t,r){let{node:n}=e;if(n.computed)return["[",r("key"),"]"];let{parent:s}=e,{key:u}=n;if(t.quoteProps==="consistent"&&!sn.has(s)){let i=(s.properties||s.body||s.members).some(a=>!a.computed&&a.key&&Q(a.key)&&!_n(a,t));sn.set(s,i)}if((u.type==="Identifier"||he(u)&&jn(He(oe(u)))&&String(u.value)===He(oe(u))&&!(t.parser==="typescript"||t.parser==="babel-ts"))&&(t.parser==="json"||t.quoteProps==="consistent"&&sn.get(s))){let i=Tt(JSON.stringify(u.type==="Identifier"?u.name:u.value.toString()),t);return e.call(a=>pe(a,i,t),"key")}return _n(n,t)&&(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!sn.get(s))?e.call(i=>pe(i,/^\d/.test(u.value)?He(u.value):u.value,t),"key"):r("key")}function oi(e,t,r){let{node:n}=e;return n.shorthand?r("value"):ft(e,t,r,ct(e,t,r),":","value")}var lc=e=>e.type==="ObjectMethod"||e.type==="ClassMethod"||e.type==="ClassPrivateMethod"||e.type==="MethodDefinition"||e.type==="TSAbstractMethodDefinition"||e.type==="TSDeclareMethod"||(e.type==="Property"||e.type==="ObjectProperty")&&(e.method||e.kind==="get"||e.kind==="set"),mc=e=>e.node.type==="FunctionExpression"&&e.key==="value"&&lc(e.parent);function un(e,t,r,n){if(mc(e))return an(e,r,t);let{node:s}=e,u=!1;if((s.type==="FunctionDeclaration"||s.type==="FunctionExpression")&&(n!=null&&n.expandLastArg)){let{parent:m}=e;k(m)&&(Ce(m).length>1||X(s).every(D=>D.type==="Identifier"&&!D.typeAnnotation))&&(u=!0)}let i=[Z(e),s.async?"async ":"",`function${s.generator?"*":""} `,s.id?t("id"):""],a=ot(e,t,r,u),o=pn(e,t),p=xt(s,o);return i.push(Ve(e,r,t),y([p?y(a):a,o]),s.body?" ":"",t("body")),r.semi&&(s.declare||!s.body)&&i.push(";"),i}function sr(e,t,r){let{node:n}=e,{kind:s}=n,u=n.value||n,i=[];return!s||s==="init"||s==="method"||s==="constructor"?u.async&&i.push("async "):(nn.ok(s==="get"||s==="set"),i.push(s," ")),u.generator&&i.push("*"),i.push(ct(e,t,r),n.optional||n.key.optional?"?":"",n===u?an(e,t,r):r("value")),i}function an(e,t,r){let{node:n}=e,s=ot(e,r,t),u=pn(e,r),i=Nu(n),a=xt(n,u),o=[Ve(e,t,r),y([i?y(s,{shouldBreak:!0}):a?y(s):s,u])];return n.body?o.push(" ",r("body")):o.push(t.semi?";":""),o}function yc(e){let t=X(e);return t.length===1&&!e.typeParameters&&!d(e,x.Dangling)&&t[0].type==="Identifier"&&!t[0].typeAnnotation&&!d(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function on(e,t){if(t.arrowParens==="always")return!1;if(t.arrowParens==="avoid"){let{node:r}=e;return yc(r)}return!1}function pn(e,t){let{node:r}=e,s=[q(e,t,"returnType")];return r.predicate&&s.push(t("predicate")),s}function pi(e,t,r){let{node:n}=e,s=t.semi?";":"",u=[];if(n.argument){let o=r("argument");Dc(t,n.argument)?o=["(",E([C,o]),C,")"]:(ce(n.argument)||n.argument.type==="SequenceExpression")&&(o=y([P("("),E([F,o]),F,P(")")])),u.push(" ",o)}let i=d(n,x.Dangling),a=s&&i&&d(n,x.Last|x.Line);return a&&u.push(s),i&&u.push(" ",M(e,t)),a||u.push(s),u}function ci(e,t,r){return["return",pi(e,t,r)]}function li(e,t,r){return["throw",pi(e,t,r)]}function Dc(e,t){if(Ie(e.originalText,t)||d(t,x.Leading,r=>rt(e.originalText,U(r),O(r)))&&!Y(t))return!0;if(Lt(t)){let r=t,n;for(;n=zs(r);)if(r=n,Ie(e.originalText,r))return!0}return!1}var mi=j(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function cn(e,t,r){let{node:n}=e,s=[Z(e),_t(e),"class"],u=d(n.id,x.Trailing)||d(n.typeParameters,x.Trailing)||d(n.superClass)||b(n.extends)||b(n.mixins)||b(n.implements),i=[],a=[];if(n.id&&i.push(" ",r("id")),i.push(r("typeParameters")),n.superClass){let o=[Ec(e,t,r),r("superTypeParameters")],p=e.call(m=>["extends ",pe(m,o,t)],"superClass");u?a.push(A,y(p)):a.push(" ",p)}else a.push(Ds(e,t,r,"extends"));if(a.push(Ds(e,t,r,"mixins"),Ds(e,t,r,"implements")),u){let o;Di(n)?o=[...i,E(a)]:o=E([...i,a]),s.push(y(o,{id:yi(n)}))}else s.push(...i,...a);return s.push(" ",r("body")),s}var yi=tn("heritageGroup");function fs(e){return P(C,"",{groupId:yi(e)})}function fc(e){return["extends","mixins","implements"].reduce((t,r)=>t+(Array.isArray(e[r])?e[r].length:0),e.superClass?1:0)>1}function Di(e){return e.typeParameters&&!d(e.typeParameters,x.Trailing|x.Line)&&!fc(e)}function Ds(e,t,r,n){let{node:s}=e;if(!b(s[n]))return"";let u=M(e,t,{marker:n});return[Di(s)?P(" ",A,{groupId:nr(s.typeParameters)}):A,u,u&&C,n,y(E([A,B([",",A],e.map(r,n))]))]}function Ec(e,t,r){let n=r("superClass"),{parent:s}=e;return s.type==="AssignmentExpression"?y(P(["(",E([F,n]),F,")"],n)):n}function ln(e,t,r){let{node:n}=e,s=[];return b(n.decorators)&&s.push(is(e,t,r)),s.push(jt(n)),n.static&&s.push("static "),s.push(_t(e)),n.override&&s.push("override "),s.push(sr(e,t,r)),s}function mn(e,t,r){let{node:n}=e,s=[],u=t.semi?";":"";b(n.decorators)&&s.push(is(e,t,r)),s.push(jt(n),Z(e)),n.static&&s.push("static "),s.push(_t(e)),n.override&&s.push("override "),n.readonly&&s.push("readonly "),n.variance&&s.push(r("variance")),(n.type==="ClassAccessorProperty"||n.type==="AccessorProperty"||n.type==="TSAbstractAccessorProperty")&&s.push("accessor "),s.push(ct(e,t,r),$(e),Hr(e),q(e,r));let i=n.type==="TSAbstractPropertyDefinition"||n.type==="TSAbstractAccessorProperty";return[ft(e,t,r,s," =",i?void 0:"value"),u]}function fi(e,t,r){let{node:n}=e,s=[];return e.each(({node:u,next:i,isLast:a})=>{s.push(r()),!t.semi&&mi(u)&&Fc(u,i)&&s.push(";"),a||(s.push(C),me(u,t)&&s.push(C))},"body"),d(n,x.Dangling)&&s.push(M(e,t)),[b(n.body)?fs(e.parent):"","{",s.length>0?[E([C,s]),C]:"","}"]}function Fc(e,t){var s;let{type:r,name:n}=e.key;if(!e.computed&&r==="Identifier"&&(n==="static"||n==="get"||n==="set")&&!e.value&&!e.typeAnnotation)return!0;if(!t||t.static||t.accessibility)return!1;if(!t.computed){let u=(s=t.key)==null?void 0:s.name;if(u==="in"||u==="instanceof")return!0}if(mi(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||t.kind==="get"||t.kind==="set")return!1;let i=t.value?t.value.generator:t.generator;return!!(t.computed||i)}case"TSIndexSignature":return!0}return!1}function Et(e,t,r){var R;let n=t.semi?";":"",{node:s}=e,u=s.type==="ObjectTypeAnnotation",i=s.type==="TSEnumDeclaration"||s.type==="EnumBooleanBody"||s.type==="EnumNumberBody"||s.type==="EnumStringBody"||s.type==="EnumSymbolBody",a=[s.type==="TSTypeLiteral"||i?"members":s.type==="TSInterfaceBody"?"body":"properties"];u&&a.push("indexers","callProperties","internalSlots");let o=a.flatMap(T=>e.map(({node:N})=>({node:N,printed:r(),loc:U(N)}),T));a.length>1&&o.sort((T,N)=>T.loc-N.loc);let{parent:p,key:m}=e,D=u&&m==="body"&&(p.type==="InterfaceDeclaration"||p.type==="DeclareInterface"||p.type==="DeclareClass"),c=s.type==="TSInterfaceBody"||i||D||s.type==="ObjectPattern"&&p.type!=="FunctionDeclaration"&&p.type!=="FunctionExpression"&&p.type!=="ArrowFunctionExpression"&&p.type!=="ObjectMethod"&&p.type!=="ClassMethod"&&p.type!=="ClassPrivateMethod"&&p.type!=="AssignmentPattern"&&p.type!=="CatchClause"&&s.properties.some(T=>T.value&&(T.value.type==="ObjectPattern"||T.value.type==="ArrayPattern"))||s.type!=="ObjectPattern"&&o.length>0&&rt(t.originalText,U(s),o[0].loc),f=D?";":s.type==="TSInterfaceBody"||s.type==="TSTypeLiteral"?P(n,";"):",",l=s.type==="RecordExpression"?"#{":s.exact?"{|":"{",h=s.exact?"|}":"}",g=[],S=o.map(T=>{let N=[...g,y(T.printed)];return g=[f,A],(T.node.type==="TSPropertySignature"||T.node.type==="TSMethodSignature"||T.node.type==="TSConstructSignatureDeclaration"||T.node.type==="TSCallSignatureDeclaration")&&d(T.node,x.PrettierIgnore)&&g.shift(),me(T.node,t)&&g.push(C),N});if(s.inexact||s.hasUnknownMembers){let T;if(d(s,x.Dangling)){let N=d(s,x.Line);T=[M(e,t),N||z(t.originalText,O(w(!1,Kt(s),-1)))?C:A,"..."]}else T=["..."];S.push([...g,...T])}let I=(R=w(!1,o,-1))==null?void 0:R.node,v=!(s.inexact||s.hasUnknownMembers||I&&(I.type==="RestElement"||(I.type==="TSPropertySignature"||I.type==="TSCallSignatureDeclaration"||I.type==="TSMethodSignature"||I.type==="TSConstructSignatureDeclaration")&&d(I,x.PrettierIgnore))),_;if(S.length===0){if(!d(s,x.Dangling))return[l,h,q(e,r)];_=y([l,M(e,t,{indent:!0}),F,h,$(e),q(e,r)])}else _=[D&&b(s.properties)?fs(p):"",l,E([t.bracketSpacing?A:F,...S]),P(v&&(f!==","||le(t))?f:""),t.bracketSpacing?A:F,h,$(e),q(e,r)];return e.match(T=>T.type==="ObjectPattern"&&!b(T.decorators),Es)||ke(s)&&(e.match(void 0,(T,N)=>N==="typeAnnotation",(T,N)=>N==="typeAnnotation",Es)||e.match(void 0,(T,N)=>T.type==="FunctionTypeParam"&&N==="typeAnnotation",Es))||!c&&e.match(T=>T.type==="ObjectPattern",T=>T.type==="AssignmentExpression"||T.type==="VariableDeclarator")?_:y(_,{shouldBreak:c})}function Es(e,t){return(t==="params"||t==="parameters"||t==="this"||t==="rest")&&ns(e)}var Fs=new WeakMap;function Ei(e){return Fs.has(e)||Fs.set(e,e.type==="ConditionalExpression"&&!re(e,t=>t.type==="ObjectExpression")),Fs.get(e)}var Fi=e=>e.type==="SequenceExpression";function Ci(e,t,r,n={}){let s=[],u,i=[],a=!1,o=!n.expandLastArg&&e.node.body.type==="ArrowFunctionExpression",p;(function g(){let{node:S}=e,I=Cc(e,t,r,n);if(s.length===0)s.push(I);else{let{leading:v,trailing:_}=Nn(e,t);s.push([v,I]),i.unshift(_)}o&&(a||(a=S.returnType&&X(S).length>0||S.typeParameters||X(S).some(v=>v.type!=="Identifier"))),!o||S.body.type!=="ArrowFunctionExpression"?(u=r("body",n),p=S.body):e.call(g,"body")})();let m=!Ie(t.originalText,p)&&(Fi(p)||dc(p,u,t)||!a&&Ei(p)),D=e.key==="callee"&&it(e.parent),c=Symbol("arrow-chain"),f=Ac(e,n,{signatureDocs:s,shouldBreak:a}),l,h=!1;return o&&(D||n.assignmentLayout)&&(h=!0,l=n.assignmentLayout==="chain-tail-arrow-chain"||D&&!m),u=Tc(e,t,n,{bodyDoc:u,bodyComments:i,functionBody:p,shouldPutBodyOnSameLine:m}),y([y(h?E([F,f]):f,{shouldBreak:l,id:c})," =>",o?mt(u,{groupId:c}):y(u),o&&D?P(F,"",{groupId:c}):""])}function Cc(e,t,r,n){let{node:s}=e,u=[];if(s.async&&u.push("async "),on(e,t))u.push(r(["params",0]));else{let a=n.expandLastArg||n.expandFirstArg,o=pn(e,r);if(a){if(K(o))throw new at;o=y(Ut(o))}u.push(y([ot(e,r,t,a,!0),o]))}let i=M(e,t,{filter(a){let o=Xe(t.originalText,O(a));return o!==!1&&t.originalText.slice(o,o+2)==="=>"}});return i&&u.push(" ",i),u}function dc(e,t,r){var n,s;return G(e)||ee(e)||e.type==="ArrowFunctionExpression"||e.type==="DoExpression"||e.type==="BlockStatement"||Y(e)||((n=t.label)==null?void 0:n.hug)!==!1&&(((s=t.label)==null?void 0:s.embed)||gr(e,r.originalText))}function Ac(e,t,{signatureDocs:r,shouldBreak:n}){if(r.length===1)return r[0];let{parent:s,key:u}=e;return u!=="callee"&&it(s)||ce(s)?y([r[0]," =>",E([A,B([" =>",A],r.slice(1))])],{shouldBreak:n}):u==="callee"&&it(s)||t.assignmentLayout?y(B([" =>",A],r),{shouldBreak:n}):y(E(B([" =>",A],r)),{shouldBreak:n})}function Tc(e,t,r,{bodyDoc:n,bodyComments:s,functionBody:u,shouldPutBodyOnSameLine:i}){let{node:a,parent:o}=e,p=r.expandLastArg&&le(t,"all")?P(","):"",m=(r.expandLastArg||o.type==="JSXExpressionContainer")&&!d(a)?F:"";return i&&Ei(u)?[" ",y([P("","("),E([F,n]),P("",")"),p,m]),s]:(Fi(u)&&(n=y(["(",E([F,n]),F,")"])),i?[" ",n,s]:[E([A,n,s]),p,m])}function ur(e,t,r,n){let{node:s}=e,u=[],i=xc(s[n]);return e.each(({node:a})=>{a.type!=="EmptyStatement"&&(u.push(r()),a!==i&&(u.push(C),me(a,t)&&u.push(C)))},n),u}function xc(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r.type!=="EmptyStatement")return r}}function yn(e,t,r){let{node:n}=e,s=[];n.type==="StaticBlock"&&s.push("static "),s.push("{");let u=Cs(e,t,r);if(u)s.push(E([C,u]),C);else{let{parent:i}=e,a=e.grandparent;i.type==="ArrowFunctionExpression"||i.type==="FunctionExpression"||i.type==="FunctionDeclaration"||i.type==="ObjectMethod"||i.type==="ClassMethod"||i.type==="ClassPrivateMethod"||i.type==="ForStatement"||i.type==="WhileStatement"||i.type==="DoWhileStatement"||i.type==="DoExpression"||i.type==="CatchClause"&&!a.finalizer||i.type==="TSModuleDeclaration"||i.type==="TSDeclareFunction"||n.type==="StaticBlock"||s.push(C)}return s.push("}"),s}function Cs(e,t,r){var o;let{node:n}=e,s=b(n.directives),u=n.body.some(p=>p.type!=="EmptyStatement"),i=d(n,x.Dangling);if(!s&&!u&&!i)return"";let a=[];return s&&(a.push(ur(e,t,r,"directives")),(u||i)&&(a.push(C),me(w(!1,n.directives,-1),t)&&a.push(C))),u&&a.push(ur(e,t,r,"body")),i&&a.push(M(e,t)),n.type==="Program"&&((o=e.parent)==null?void 0:o.type)!=="ModuleExpression"&&a.push(C),a}function di(e,t){if(t.semi||ds(e,t)||Ts(e,t))return!1;let{node:r,key:n,parent:s}=e;return!!(r.type==="ExpressionStatement"&&(n==="body"&&(s.type==="Program"||s.type==="BlockStatement"||s.type==="StaticBlock"||s.type==="TSModuleBlock")||n==="consequent"&&s.type==="SwitchCase")&&e.call(()=>Ai(e,t),"expression"))}function Ai(e,t){let{node:r}=e;switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!on(e,t))return!0;break;case"UnaryExpression":{let{prefix:n,operator:s}=r;if(n&&(s==="+"||s==="-"))return!0;break}case"BindExpression":if(!r.object)return!0;break;case"Literal":if(r.regex)return!0;break;default:if(Y(r))return!0}return we(e,t)?!0:Lt(r)?e.call(()=>Ai(e,t),...Ar(r)):!1}function ds({node:e,parent:t},r){return(r.parentParser==="markdown"||r.parentParser==="mdx")&&e.type==="ExpressionStatement"&&Y(e.expression)&&t.type==="Program"&&t.body.length===1}function As(e){switch(e.type){case"MemberExpression":switch(e.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return As(e.object)}return!1;case"Identifier":return!0;default:return!1}}function Ts({node:e,parent:t},r){return(r.parser==="__vue_event_binding"||r.parser==="__vue_ts_event_binding")&&e.type==="ExpressionStatement"&&t.type==="Program"&&t.body.length===1}function Ti(e,t,r){let n=[r("expression")];return Ts(e,t)?As(e.node.expression)&&n.push(";"):ds(e,t)||t.semi&&n.push(";"),d(e.node,x.Dangling,({marker:s})=>s===zt)&&n.push(" ",M(e,t,{marker:zt})),n}function xi(e,t,r){if(t.__isVueBindings||t.__isVueForBindingLeft){let n=e.map(r,"program","body",0,"params");if(n.length===1)return n[0];let s=B([",",A],n);return t.__isVueForBindingLeft?["(",E([F,y(s)]),F,")"]:s}if(t.__isEmbeddedTypescriptGenericParameters){let n=e.map(r,"program","body",0,"typeParameters","params");return B([",",A],n)}}function gi(e,t,r,n){let{node:s}=e;if(_r(s))return vu(e,t);let u=t.semi?";":"",i=[];switch(s.type){case"JsExpressionRoot":return r("node");case"JsonRoot":return[r("node"),C];case"File":return xi(e,t,r)??r("program");case"Program":return Cs(e,t,r);case"EmptyStatement":return"";case"ExpressionStatement":return Ti(e,t,r);case"ChainExpression":return r("expression");case"ParenthesizedExpression":return!d(s.expression)&&(ee(s.expression)||G(s.expression))?["(",r("expression"),")"]:y(["(",E([F,r("expression")]),F,")"]);case"AssignmentExpression":return ju(e,t,r);case"VariableDeclarator":return Mu(e,t,r);case"BinaryExpression":case"LogicalExpression":return Lr(e,t,r);case"AssignmentPattern":return[r("left")," = ",r("right")];case"OptionalMemberExpression":case"MemberExpression":return ku(e,t,r);case"MetaProperty":return[r("meta"),".",r("property")];case"BindExpression":return s.object&&i.push(r("object")),i.push(y(E([F,wr(e,t,r)]))),i;case"Identifier":return[s.name,$(e),Hr(e),q(e,r)];case"V8IntrinsicIdentifier":return["%",s.name];case"SpreadElement":case"SpreadElementPattern":case"SpreadPropertyPattern":case"RestElement":return Kr(e,r);case"FunctionDeclaration":case"FunctionExpression":return un(e,r,t,n);case"ArrowFunctionExpression":return Ci(e,t,r,n);case"YieldExpression":return i.push("yield"),s.delegate&&i.push("*"),s.argument&&i.push(" ",r("argument")),i;case"AwaitExpression":if(i.push("await"),s.argument){i.push(" ",r("argument"));let{parent:a}=e;if(k(a)&&a.callee===s||J(a)&&a.object===s){i=[E([F,...i]),F];let o=e.findAncestor(p=>p.type==="AwaitExpression"||p.type==="BlockStatement");if((o==null?void 0:o.type)!=="AwaitExpression"||!re(o.argument,p=>p===s))return y(i)}}return i;case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return zr(e,t,r);case"ImportDeclaration":return $u(e,t,r);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return Zu(e,t,r);case"ImportAttribute":return[r("key"),": ",r("value")];case"Import":return"import";case"BlockStatement":case"StaticBlock":return yn(e,t,r);case"ClassBody":return fi(e,t,r);case"ThrowStatement":return li(e,t,r);case"ReturnStatement":return ci(e,t,r);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return Or(e,t,r);case"ObjectExpression":case"ObjectPattern":case"RecordExpression":return Et(e,t,r);case"ObjectProperty":case"Property":return s.method||s.kind==="get"||s.kind==="set"?sr(e,t,r):oi(e,t,r);case"ObjectMethod":return sr(e,t,r);case"Decorator":return["@",r("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return vt(e,t,r);case"SequenceExpression":{let{parent:a}=e;if(a.type==="ExpressionStatement"||a.type==="ForStatement"){let o=[];return e.each(({isFirst:p})=>{p?o.push(r()):o.push(",",E([A,r()]))},"expressions"),y(o)}return y(B([",",A],e.map(r,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[r("value"),u];case"UnaryExpression":return i.push(s.operator),/[a-z]$/.test(s.operator)&&i.push(" "),d(s.argument)?i.push(y(["(",E([F,r("argument")]),F,")"])):i.push(r("argument")),i;case"UpdateExpression":return i.push(r("argument"),s.operator),s.prefix&&i.reverse(),i;case"ConditionalExpression":return Mt(e,t,r);case"VariableDeclaration":{let a=e.map(r,"declarations"),o=e.parent,p=o.type==="ForStatement"||o.type==="ForInStatement"||o.type==="ForOfStatement",m=s.declarations.some(c=>c.init),D;return a.length===1&&!d(s.declarations[0])?D=a[0]:a.length>0&&(D=E(a[0])),i=[Z(e),s.kind,D?[" ",D]:"",E(a.slice(1).map(c=>[",",m&&!p?C:A,c]))],p&&o.body!==s||i.push(u),y(i)}case"WithStatement":return y(["with (",r("object"),")",pt(s.body,r("body"))]);case"IfStatement":{let a=pt(s.consequent,r("consequent")),o=y(["if (",y([E([F,r("test")]),F]),")",a]);if(i.push(o),s.alternate){let p=d(s.consequent,x.Trailing|x.Line)||hr(s),m=s.consequent.type==="BlockStatement"&&!p;i.push(m?" ":C),d(s,x.Dangling)&&i.push(M(e,t),p?C:" "),i.push("else",y(pt(s.alternate,r("alternate"),s.alternate.type==="IfStatement")))}return i}case"ForStatement":{let a=pt(s.body,r("body")),o=M(e,t),p=o?[o,F]:"";return!s.init&&!s.test&&!s.update?[p,y(["for (;;)",a])]:[p,y(["for (",y([E([F,r("init"),";",A,r("test"),";",A,r("update")]),F]),")",a])]}case"WhileStatement":return y(["while (",y([E([F,r("test")]),F]),")",pt(s.body,r("body"))]);case"ForInStatement":return y(["for (",r("left")," in ",r("right"),")",pt(s.body,r("body"))]);case"ForOfStatement":return y(["for",s.await?" await":""," (",r("left")," of ",r("right"),")",pt(s.body,r("body"))]);case"DoWhileStatement":{let a=pt(s.body,r("body"));return i=[y(["do",a])],s.body.type==="BlockStatement"?i.push(" "):i.push(C),i.push("while (",y([E([F,r("test")]),F]),")",u),i}case"DoExpression":return[s.async?"async ":"","do ",r("body")];case"BreakStatement":case"ContinueStatement":return i.push(s.type==="BreakStatement"?"break":"continue"),s.label&&i.push(" ",r("label")),i.push(u),i;case"LabeledStatement":return s.body.type==="EmptyStatement"?[r("label"),":;"]:[r("label"),": ",r("body")];case"TryStatement":return["try ",r("block"),s.handler?[" ",r("handler")]:"",s.finalizer?[" finally ",r("finalizer")]:""];case"CatchClause":if(s.param){let a=d(s.param,p=>!ae(p)||p.leading&&z(t.originalText,O(p))||p.trailing&&z(t.originalText,U(p),{backwards:!0})),o=r("param");return["catch ",a?["(",E([F,o]),F,") "]:["(",o,") "],r("body")]}return["catch ",r("body")];case"SwitchStatement":return[y(["switch (",E([F,r("discriminant")]),F,")"])," {",s.cases.length>0?E([C,B(C,e.map(({node:a,isLast:o})=>[r(),!o&&me(a,t)?C:""],"cases"))]):"",C,"}"];case"SwitchCase":{s.test?i.push("case ",r("test"),":"):i.push("default:"),d(s,x.Dangling)&&i.push(" ",M(e,t));let a=s.consequent.filter(o=>o.type!=="EmptyStatement");if(a.length>0){let o=ur(e,t,r,"consequent");i.push(a.length===1&&a[0].type==="BlockStatement"?[" ",o]:E([C,o]))}return i}case"DebuggerStatement":return["debugger",u];case"ClassDeclaration":case"ClassExpression":return cn(e,t,r);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return ln(e,t,r);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return mn(e,t,r);case"TemplateElement":return xe(s.value.raw);case"TemplateLiteral":return Zr(e,r,t);case"TaggedTemplateExpression":return si(r);case"PrivateIdentifier":return["#",s.name];case"PrivateName":return["#",r("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":{i.push("module {");let a=r("body");return a&&i.push(E([C,a]),C),i.push("}"),i}case"InterpreterDirective":default:throw new Oe(s,"ESTree")}}function Si(e,t,r){let{node:n}=e;if(n.type.startsWith("NG"))switch(n.type){case"NGRoot":return[r("node"),d(n.node)?" //"+Kt(n.node)[0].value.trimEnd():""];case"NGPipeExpression":return Lr(e,t,r);case"NGChainedExpression":return y(B([";",A],e.map(()=>hc(e)?r():["(",r(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return e.map(()=>[e.isFirst?"":hi(e)?" ":[";",A],r()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/i.test(n.name)?n.name:JSON.stringify(n.name);case"NGMicrosyntaxExpression":return[r("expression"),n.alias===null?"":[" as ",r("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:s,parent:u}=e,i=hi(e)||(s===1&&(n.key.name==="then"||n.key.name==="else")||s===2&&n.key.name==="else"&&u.body[s-1].type==="NGMicrosyntaxKeyedExpression"&&u.body[s-1].key.name==="then")&&u.body[0].type==="NGMicrosyntaxExpression";return[r("key"),i?" ":": ",r("expression")]}case"NGMicrosyntaxLet":return["let ",r("key"),n.value===null?"":[" = ",r("value")]];case"NGMicrosyntaxAs":return[r("key")," as ",r("alias")];default:throw new Oe(n,"Angular")}}function hi({node:e,index:t,parent:r}){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1&&r.body[0].type==="NGMicrosyntaxLet"&&r.body[0].value===null}var gc=j(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function hc({node:e}){return Xt(e,gc)}function Dn(e,t,r){let{node:n}=e,s=[Z(e),"interface"],u=[],i=[];n.type!=="InterfaceTypeAnnotation"&&u.push(" ",r("id"),r("typeParameters"));let a=n.typeParameters&&!d(n.typeParameters,x.Trailing|x.Line);return b(n.extends)&&i.push(a?P(" ",A,{groupId:nr(n.typeParameters)}):A,"extends ",(n.extends.length===1?ru:E)(B([",",A],e.map(r,"extends")))),d(n.id,x.Trailing)||b(n.extends)?a?s.push(y([...u,E(i)])):s.push(y(E([...u,...i]))):s.push(...u,...i),s.push(" ",r("body")),y(s)}function Bi(e,t,r){return Et(e,r,t)}function fn(e,t){let{node:r}=e,n=t("id");r.computed&&(n=["[",n,"]"]);let s="";return r.initializer&&(s=t("initializer")),r.init&&(s=t("init")),s?[n," = ",s]:n}function bi(e,t,r){let{node:n}=e,s;if(n.type==="EnumSymbolBody"||n.explicitType)switch(n.type){case"EnumBooleanBody":s="boolean";break;case"EnumNumberBody":s="number";break;case"EnumStringBody":s="string";break;case"EnumSymbolBody":s="symbol";break}return[s?`of ${s} `:"",Bi(e,t,r)]}function En(e,t,r){let{node:n}=e;return[Z(e),n.const?"const ":"","enum ",t("id")," ",n.type==="TSEnumDeclaration"?Bi(e,t,r):t("body")]}function Pi(e,t,r){let{node:n}=e;if(Fr(n))return n.type.slice(0,-14).toLowerCase();let s=t.semi?";":"";switch(n.type){case"DeclareClass":return cn(e,t,r);case"DeclareFunction":return[Z(e),"function ",r("id"),r("predicate"),s];case"DeclareModule":return["declare module ",r("id")," ",r("body")];case"DeclareModuleExports":return["declare module.exports",q(e,r),s];case"DeclareVariable":return[Z(e),n.kind??"var"," ",r("id"),s];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return zr(e,t,r);case"DeclareOpaqueType":case"OpaqueType":return Uu(e,t,r);case"DeclareTypeAlias":case"TypeAlias":return Mr(e,t,r);case"IntersectionTypeAnnotation":return Rr(e,t,r);case"UnionTypeAnnotation":return Jr(e,t,r);case"ConditionalTypeAnnotation":return Mt(e,t,r);case"InferTypeAnnotation":return Gr(e,t,r);case"FunctionTypeAnnotation":return Nr(e,t,r);case"TupleTypeAnnotation":return vt(e,t,r);case"TupleTypeLabeledElement":return Wr(e,t,r);case"TupleTypeSpreadElement":return qr(e,t,r);case"GenericTypeAnnotation":return[r("id"),gt(e,t,r,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return Ur(e,t,r);case"TypeAnnotation":return Yr(e,t,r);case"TypeParameter":return rn(e,t,r);case"TypeofTypeAnnotation":return $r(e,r);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return Xr(r);case"DeclareEnum":case"EnumDeclaration":return En(e,r,t);case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":return bi(e,r,t);case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":return fn(e,r);case"FunctionTypeParam":{let u=n.name?r("name"):e.parent.this===n?"this":"";return[u,$(e),u?": ":"",r("typeAnnotation")]}case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return Dn(e,t,r);case"ClassImplements":case"InterfaceExtends":return[r("id"),r("typeParameters")];case"NullableTypeAnnotation":return["?",r("typeAnnotation")];case"Variance":{let{kind:u}=n;return nn.ok(u==="plus"||u==="minus"),u==="plus"?"+":"-"}case"KeyofTypeAnnotation":return["keyof ",r("argument")];case"ObjectTypeCallProperty":return[n.static?"static ":"",r("value")];case"ObjectTypeMappedTypeProperty":return ui(e,t,r);case"ObjectTypeIndexer":return[n.static?"static ":"",n.variance?r("variance"):"","[",r("id"),n.id?": ":"",r("key"),"]: ",r("value")];case"ObjectTypeProperty":{let u="";return n.proto?u="proto ":n.static&&(u="static "),[u,On(n)?n.kind+" ":"",n.variance?r("variance"):"",ct(e,t,r),$(e),vn(n)?"":": ",r("value")]}case"ObjectTypeAnnotation":return Et(e,t,r);case"ObjectTypeInternalSlot":return[n.static?"static ":"","[[",r("id"),"]]",$(e),n.method?"":": ",r("value")];case"ObjectTypeSpreadProperty":return Kr(e,r);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[r("qualification"),".",r("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(n.value);case"StringLiteralTypeAnnotation":return xe(Tt(oe(n),t));case"NumberLiteralTypeAnnotation":return He(n.raw??n.extra.raw);case"BigIntLiteralTypeAnnotation":return vr(n.raw??n.extra.raw);case"TypeCastExpression":return["(",r("expression"),q(e,r),")"];case"TypePredicate":return Vr(e,r);case"TypeParameterDeclaration":case"TypeParameterInstantiation":return gt(e,t,r,"params");case"InferredPredicate":case"DeclaredPredicate":return[e.key==="predicate"&&e.parent.type!=="DeclareFunction"&&!e.parent.returnType?": ":" ","%checks",...n.type==="DeclaredPredicate"?["(",r("value"),")"]:[]]}}function ki(e,t,r){var i;let{node:n}=e;if(!n.type.startsWith("TS"))return;if(Cr(n))return n.type.slice(2,-7).toLowerCase();let s=t.semi?";":"",u=[];switch(n.type){case"TSThisType":return"this";case"TSTypeAssertion":{let a=!(G(n.expression)||ee(n.expression)),o=y(["<",E([F,r("typeAnnotation")]),F,">"]),p=[P("("),E([F,r("expression")]),F,P(")")];return a?qe([[o,r("expression")],[o,y(p,{shouldBreak:!0})],[o,r("expression")]]):y([o,r("expression")])}case"TSDeclareFunction":return un(e,r,t);case"TSExportAssignment":return["export = ",r("expression"),s];case"TSModuleBlock":return yn(e,t,r);case"TSInterfaceBody":case"TSTypeLiteral":return Et(e,t,r);case"TSTypeAliasDeclaration":return Mr(e,t,r);case"TSQualifiedName":return[r("left"),".",r("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return ln(e,t,r);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return mn(e,t,r);case"TSInterfaceHeritage":case"TSClassImplements":case"TSExpressionWithTypeArguments":case"TSInstantiationExpression":return[r("expression"),r("typeParameters")];case"TSTemplateLiteralType":return Zr(e,r,t);case"TSNamedTupleMember":return Wr(e,t,r);case"TSRestType":return qr(e,t,r);case"TSOptionalType":return[r("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return Dn(e,t,r);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return gt(e,t,r,"params");case"TSTypeParameter":return rn(e,t,r);case"TSAsExpression":case"TSSatisfiesExpression":{let a=n.type==="TSAsExpression"?"as":"satisfies";u.push(r("expression"),` ${a} `,r("typeAnnotation"));let{parent:o}=e;return k(o)&&o.callee===n||J(o)&&o.object===n?y([E([F,...u]),F]):u}case"TSArrayType":return Xr(r);case"TSPropertySignature":return[n.readonly?"readonly ":"",ct(e,t,r),$(e),q(e,r)];case"TSParameterProperty":return[jt(n),n.static?"static ":"",n.override?"override ":"",n.readonly?"readonly ":"",r("parameter")];case"TSTypeQuery":return $r(e,r);case"TSIndexSignature":{let a=n.parameters.length>1?P(le(t)?",":""):"",o=y([E([F,B([", ",F],e.map(r,"parameters"))]),a,F]),p=e.parent.type==="ClassBody"&&e.key==="body";return[p&&n.static?"static ":"",n.readonly?"readonly ":"","[",n.parameters?o:"","]",q(e,r),p?s:""]}case"TSTypePredicate":return Vr(e,r);case"TSNonNullExpression":return[r("expression"),"!"];case"TSImportType":return[n.isTypeOf?"typeof ":"","import(",r("argument"),")",n.qualifier?[".",r("qualifier")]:"",gt(e,t,r,n.typeArguments?"typeArguments":"typeParameters")];case"TSLiteralType":return r("literal");case"TSIndexedAccessType":return Ur(e,t,r);case"TSTypeOperator":return[n.operator," ",r("typeAnnotation")];case"TSMappedType":return ii(e,t,r);case"TSMethodSignature":{let a=n.kind&&n.kind!=="method"?`${n.kind} `:"";u.push(jt(n),a,n.computed?"[":"",r("key"),n.computed?"]":"",$(e));let o=ot(e,r,t,!1,!0),p=n.returnType?"returnType":"typeAnnotation",m=n[p],D=m?q(e,r,p):"",c=xt(n,D);return u.push(c?y(o):o),m&&u.push(y(D)),y(u)}case"TSNamespaceExportDeclaration":return["export as namespace ",r("id"),t.semi?";":""];case"TSEnumDeclaration":return En(e,r,t);case"TSEnumMember":return fn(e,r);case"TSImportEqualsDeclaration":return[n.isExport?"export ":"","import ",os(n,!1),r("id")," = ",r("moduleReference"),t.semi?";":""];case"TSExternalModuleReference":return["require(",r("expression"),")"];case"TSModuleDeclaration":{let{parent:a}=e,o=a.type==="TSModuleDeclaration",p=((i=n.body)==null?void 0:i.type)==="TSModuleDeclaration";if(o)u.push(".");else if(u.push(Z(e)),!(n.kind==="global"||n.global)){let D=n.kind??(Q(n.id)||/(?:^|\s)module(?:\s|$)/.test(t.originalText.slice(U(n),U(n.id)))?"module":"namespace");u.push(D," ")}return u.push(r("id")),p?u.push(r("body")):n.body?u.push(" ",y(r("body"))):u.push(s),u}case"TSConditionalType":return Mt(e,t,r);case"TSInferType":return Gr(e,t,r);case"TSIntersectionType":return Rr(e,t,r);case"TSUnionType":return Jr(e,t,r);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return Nr(e,t,r);case"TSTupleType":return vt(e,t,r);case"TSTypeReference":return[r("typeName"),gt(e,t,r,"typeParameters")];case"TSTypeAnnotation":return Yr(e,t,r);case"TSEmptyBodyFunctionExpression":return an(e,t,r);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return us(e,r,"?");case"TSJSDocNonNullableType":return us(e,r,"!");case"TSParenthesizedType":default:throw new Oe(n,"TypeScript")}}function Sc(e,t,r,n){if(Ir(e))return ks(e,t);for(let s of[Si,hu,Pi,ki,gi]){let u=s(e,t,r,n);if(u!==void 0)return u}}var Bc=j(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function bc(e,t,r,n){var D;e.isRoot&&((D=t.__onHtmlBindingRoot)==null||D.call(t,e.node,t));let s=Sc(e,t,r,n);if(!s)return"";let{node:u}=e;if(Bc(u))return s;let i=b(u.decorators),a=Wu(e,t,r),o=u.type==="ClassExpression";if(i&&!o)return Gt(s,c=>y([a,c]));let p=we(e,t),m=di(e,t);return!a&&!p&&!m?s:Gt(s,c=>[m?";":"",p?"(":"",p&&o&&i?[E([A,a,c]),A]:[a,c],p?")":""])}var Ii=bc;var Li=[(e,t)=>e.type==="ObjectExpression"&&t==="properties",(e,t)=>e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="Component"&&t==="arguments",(e,t)=>e.type==="Decorator"&&t==="expression"];function wi(e){return e.match(t=>t.type==="TemplateLiteral",(t,r)=>G(t)&&r==="elements",(t,r)=>fe(t)&&t.key.type==="Identifier"&&t.key.name==="styles"&&r==="value",...Li)}function Oi(e){return e.match(t=>t.type==="TemplateLiteral",(t,r)=>fe(t)&&t.key.type==="Identifier"&&t.key.name==="template"&&r==="value",...Li)}function Fn(e,t){return d(e,x.Block|x.Leading,({value:r})=>r===` ${t} `)}async function Pc(e,t,r){let{node:n}=r,s=n.quasis.map(m=>m.value.raw),u=0,i=s.reduce((m,D,c)=>c===0?D:m+"@prettier-placeholder-"+u+++"-id"+D,""),a=await e(i,{parser:"scss"}),o=Rt(r,t),p=kc(a,o);if(!p)throw new Error("Couldn't insert all the expressions");return["`",E([C,p]),F,"`"]}function kc(e,t){if(!b(t))return e;let r=0,n=ut(Bt(e),s=>typeof s!="string"||!s.includes("@prettier-placeholder")?s:s.split(/@prettier-placeholder-(\d+)-id/).map((u,i)=>i%2===0?xe(u):(r++,t[u])));return t.length===r?n:null}function Ic({node:e,parent:t,grandparent:r}){return r&&e.quasis&&t.type==="JSXExpressionContainer"&&r.type==="JSXElement"&&r.openingElement.name.name==="style"&&r.openingElement.attributes.some(n=>n.name.name==="jsx")||(t==null?void 0:t.type)==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="css"||(t==null?void 0:t.type)==="TaggedTemplateExpression"&&t.tag.type==="MemberExpression"&&t.tag.object.name==="css"&&(t.tag.property.name==="global"||t.tag.property.name==="resolve")}function Cn(e){return e.type==="Identifier"&&e.name==="styled"}function vi(e){return/^[A-Z]/.test(e.object.name)&&e.property.name==="extend"}function Lc({parent:e}){if(!e||e.type!=="TaggedTemplateExpression")return!1;let t=e.tag.type==="ParenthesizedExpression"?e.tag.expression:e.tag;switch(t.type){case"MemberExpression":return Cn(t.object)||vi(t);case"CallExpression":return Cn(t.callee)||t.callee.type==="MemberExpression"&&(t.callee.object.type==="MemberExpression"&&(Cn(t.callee.object.object)||vi(t.callee.object))||t.callee.object.type==="CallExpression"&&Cn(t.callee.object.callee));case"Identifier":return t.name==="css";default:return!1}}function wc({parent:e,grandparent:t}){return(t==null?void 0:t.type)==="JSXAttribute"&&e.type==="JSXExpressionContainer"&&t.name.type==="JSXIdentifier"&&t.name.name==="css"}function Oc(e){if(Ic(e)||Lc(e)||wc(e)||wi(e))return Pc}var _i=Oc;async function vc(e,t,r){let{node:n}=r,s=n.quasis.length,u=Rt(r,t),i=[];for(let a=0;a2&&c[0].trim()===""&&c[1].trim()==="",g=f>2&&c[f-1].trim()===""&&c[f-2].trim()==="",S=c.every(v=>/^\s*(?:#[^\n\r]*)?$/.test(v));if(!m&&/#[^\n\r]*$/.test(c[f-1]))return null;let I=null;S?I=_c(c):I=await e(D,{parser:"graphql"}),I?(I=en(I,!1),!p&&h&&i.push(""),i.push(I),!m&&g&&i.push("")):!p&&!m&&h&&i.push(""),l&&i.push(l)}return["`",E([C,B(C,i)]),C,"`"]}function _c(e){let t=[],r=!1,n=e.map(s=>s.trim());for(let[s,u]of n.entries())u!==""&&(n[s-1]===""&&r?t.push([C,u]):t.push(u),r=!0);return t.length===0?null:B(C,t)}function jc({node:e,parent:t}){return Fn(e,"GraphQL")||t&&(t.type==="TaggedTemplateExpression"&&(t.tag.type==="MemberExpression"&&t.tag.object.name==="graphql"&&t.tag.property.name==="experimental"||t.tag.type==="Identifier"&&(t.tag.name==="gql"||t.tag.name==="graphql"))||t.type==="CallExpression"&&t.callee.type==="Identifier"&&t.callee.name==="graphql")}function Mc(e){if(jc(e))return vc}var ji=Mc;var xs=0;async function Mi(e,t,r,n,s){let{node:u}=n,i=xs;xs=xs+1>>>0;let a=S=>`PRETTIER_HTML_PLACEHOLDER_${S}_${i}_IN_JS`,o=u.quasis.map((S,I,v)=>I===v.length-1?S.value.cooked:S.value.cooked+a(I)).join(""),p=Rt(n,r),m=new RegExp(a("(\\d+)"),"g"),D=0,c=await t(o,{parser:e,__onHtmlRoot(S){D=S.children.length}}),f=ut(c,S=>{if(typeof S!="string")return S;let I=[],v=S.split(m);for(let _=0;_1?E(y(f)):y(f),h,"`"]))}function Rc(e){return Fn(e.node,"HTML")||e.match(t=>t.type==="TemplateLiteral",(t,r)=>t.type==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="html"&&r==="quasi")}var Jc=Mi.bind(void 0,"html"),Nc=Mi.bind(void 0,"angular");function Uc(e){if(Rc(e))return Jc;if(Oi(e))return Nc}var Ri=Uc;async function Gc(e,t,r){let{node:n}=r,s=H(!1,n.quasis[0].value.raw,/((?:\\\\)*)\\`/g,(o,p)=>"\\".repeat(p.length/2)+"`"),u=qc(s),i=u!=="";i&&(s=H(!1,s,new RegExp(`^${u}`,"gm"),""));let a=en(await e(s,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",i?E([F,a]):[mr,ws(a)],F,"`"]}function qc(e){let t=e.match(/^([^\S\n]*)\S/m);return t===null?"":t[1]}function Wc(e){if(Yc(e))return Gc}function Yc({node:e,parent:t}){return(t==null?void 0:t.type)==="TaggedTemplateExpression"&&e.quasis.length===1&&t.tag.type==="Identifier"&&(t.tag.name==="md"||t.tag.name==="markdown")}var Ji=Wc;function Xc(e){let{node:t}=e;if(t.type!=="TemplateLiteral"||$c(t))return;let r;for(let n of[_i,ji,Ri,Ji])if(r=n(e),!!r)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===""?"``":async(...s)=>{let u=await r(...s);return u&&et({embed:!0,...u.label},u)}}function $c({quasis:e}){return e.some(({value:{cooked:t}})=>t===null)}var Ni=Xc;var Vc=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),Jt=e=>{for(let t of e.quasis)delete t.value};function Ui(e,t,r){var s,u;if(e.type==="Program"&&delete t.sourceType,(e.type==="BigIntLiteral"||e.type==="BigIntLiteralTypeAnnotation")&&t.value&&(t.value=t.value.toLowerCase()),(e.type==="BigIntLiteral"||e.type==="Literal")&&t.bigint&&(t.bigint=t.bigint.toLowerCase()),e.type==="DecimalLiteral"&&(t.value=Number(t.value)),e.type==="Literal"&&t.decimal&&(t.decimal=Number(t.decimal)),e.type==="EmptyStatement"||e.type==="JSXText"||e.type==="JSXExpressionContainer"&&(e.expression.type==="Literal"||e.expression.type==="StringLiteral")&&e.expression.value===" ")return null;if((e.type==="Property"||e.type==="ObjectProperty"||e.type==="MethodDefinition"||e.type==="ClassProperty"||e.type==="ClassMethod"||e.type==="PropertyDefinition"||e.type==="TSDeclareMethod"||e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty")&&typeof e.key=="object"&&e.key&&(e.key.type==="Literal"||e.key.type==="NumericLiteral"||e.key.type==="StringLiteral"||e.key.type==="Identifier")&&delete t.key,e.type==="JSXElement"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(i=>i.type==="JSXAttribute"&&i.name.name==="jsx"))for(let{type:i,expression:a}of t.children)i==="JSXExpressionContainer"&&a.type==="TemplateLiteral"&&Jt(a);e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&Jt(t.value.expression),e.type==="JSXAttribute"&&((s=e.value)==null?void 0:s.type)==="Literal"&&/["']|"|'/.test(e.value.value)&&(t.value.value=H(!1,t.value.value,/["']|"|'/g,'"'));let n=e.expression||e.callee;if(e.type==="Decorator"&&n.type==="CallExpression"&&n.callee.name==="Component"&&n.arguments.length===1){let i=e.expression.arguments[0].properties;for(let[a,o]of t.expression.arguments[0].properties.entries())switch(i[a].key.name){case"styles":G(o.value)&&Jt(o.value.elements[0]);break;case"template":o.value.type==="TemplateLiteral"&&Jt(o.value);break}}if(e.type==="TaggedTemplateExpression"&&(e.tag.type==="MemberExpression"||e.tag.type==="Identifier"&&(e.tag.name==="gql"||e.tag.name==="graphql"||e.tag.name==="css"||e.tag.name==="md"||e.tag.name==="markdown"||e.tag.name==="html")||e.tag.type==="CallExpression")&&Jt(t.quasi),e.type==="TemplateLiteral"&&((u=e.leadingComments)!=null&&u.some(a=>ae(a)&&["GraphQL","HTML"].some(o=>a.value===` ${o} `))||r.type==="CallExpression"&&r.callee.name==="graphql"||!e.leadingComments)&&Jt(t),(e.type==="TSIntersectionType"||e.type==="TSUnionType")&&e.types.length===1)return t.types[0];e.type==="ChainExpression"&&e.expression.type==="TSNonNullExpression"&&([t.type,t.expression.type]=[t.expression.type,t.type])}Ui.ignoredProperties=Vc;var Gi=Ui;var Ft=la(Hi(),1);function sl(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` `);return t===-1?e:e.slice(0,t)}var Ki=sl;function ul(e){let t=Ki(e);t&&(e=e.slice(t.length+1));let r=(0,Ft.extract)(e),{pragmas:n,comments:s}=(0,Ft.parseWithComments)(r);return{shebang:t,text:e,pragmas:n,comments:s}}function zi(e){let{shebang:t,text:r,pragmas:n,comments:s}=ul(e),u=(0,Ft.strip)(r),i=(0,Ft.print)({pragmas:{format:"",...n},comments:s.trimStart()});return(t?`${t} `:"")+i+(u.startsWith(` `)?` `:` -`)+u}var il={avoidAstMutation:!0};var Qi=[{linguistLanguageId:183,name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".wxs"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"]},{linguistLanguageId:183,name:"Flow",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:[],extensions:[".js.flow"],filenames:[],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"]},{linguistLanguageId:183,name:"JSX",type:"programming",tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0,aliases:void 0,extensions:[".jsx"],filenames:void 0,interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript"},{linguistLanguageId:378,name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]},{linguistLanguageId:94901924,name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}];var Ss={};cr(Ss,{getVisitorKeys:()=>ea,massageAstNode:()=>ra,print:()=>pl});var al={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:[],BooleanLiteral:[],StringLiteral:[],NumericLiteral:[],Identifier:[],TemplateLiteral:["quasis"],TemplateElement:[]},Zi=al;var ol=Er(Zi),ea=ol;function pl(e,t,r){let{node:n}=e;switch(n.type){case"JsonRoot":return[r("node"),C];case"ArrayExpression":{if(n.elements.length===0)return"[]";let s=e.map(()=>e.node===null?"null":r(),"elements");return["[",E([C,B([",",C],s)]),C,"]"]}case"ObjectExpression":return n.properties.length===0?"{}":["{",E([C,B([",",C],e.map(r,"properties"))]),C,"}"];case"ObjectProperty":return[r("key"),": ",r("value")];case"UnaryExpression":return[n.operator==="+"?"":n.operator,r("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return n.value?"true":"false";case"StringLiteral":return JSON.stringify(n.value);case"NumericLiteral":return ta(e)?JSON.stringify(String(n.value)):JSON.stringify(n.value);case"Identifier":return ta(e)?JSON.stringify(n.name):n.name;case"TemplateLiteral":return r(["quasis",0]);case"TemplateElement":return JSON.stringify(n.value.cooked);default:throw new Oe(n,"JSON")}}function ta(e){return e.key==="key"&&e.parent.type==="ObjectProperty"}var cl=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function ra(e,t){let{type:r}=e;if(r==="ObjectProperty"){let{key:n}=e;n.type==="Identifier"?t.key={type:"StringLiteral",value:n.name}:n.type==="NumericLiteral"&&(t.key={type:"StringLiteral",value:String(n.value)});return}if(r==="UnaryExpression"&&e.operator==="+")return t.argument;if(r==="ArrayExpression"){for(let[n,s]of e.elements.entries())s===null&&t.elements.splice(n,0,{type:"NullLiteral"});return}if(r==="TemplateLiteral")return{type:"StringLiteral",value:e.quasis[0].value.cooked}}ra.ignoredProperties=cl;var na=[{linguistLanguageId:174,name:"JSON.stringify",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],parsers:["json-stringify"],vscodeLanguageIds:["json"]},{linguistLanguageId:174,name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","mcmod.info"],parsers:["json"],vscodeLanguageIds:["json"]},{linguistLanguageId:423,name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[".babelrc",".devcontainer.json",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","api-extractor.json","devcontainer.json","jsconfig.json","language-configuration.json","tsconfig.json","tslint.json",".eslintrc",".swcrc"],parsers:["json"],vscodeLanguageIds:["jsonc"]},{linguistLanguageId:175,name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"]}];var ar={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Nt="JavaScript",ll={arrowParens:{category:Nt,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:ar.bracketSameLine,bracketSpacing:ar.bracketSpacing,jsxBracketSameLine:{category:Nt,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:Nt,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:ar.singleQuote,jsxSingleQuote:{category:Nt,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:Nt,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:Nt,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:ar.singleAttributePerLine},sa=ll;var ml={estree:hs,"estree-json":Ss},Dl=[...Qi,...na];return ma(yl);}); \ No newline at end of file +`)+u}var il={avoidAstMutation:!0};var Qi=[{linguistLanguageId:183,name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".wxs"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"]},{linguistLanguageId:183,name:"Flow",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:[],extensions:[".js.flow"],filenames:[],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"]},{linguistLanguageId:183,name:"JSX",type:"programming",tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0,aliases:void 0,extensions:[".jsx"],filenames:void 0,interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript"},{linguistLanguageId:378,name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]},{linguistLanguageId:94901924,name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}];var hs={};pr(hs,{getVisitorKeys:()=>ea,massageAstNode:()=>ra,print:()=>pl});var al={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:[],BooleanLiteral:[],StringLiteral:[],NumericLiteral:[],Identifier:[],TemplateLiteral:["quasis"],TemplateElement:[]},Zi=al;var ol=fr(Zi),ea=ol;function pl(e,t,r){let{node:n}=e;switch(n.type){case"JsonRoot":return[r("node"),C];case"ArrayExpression":{if(n.elements.length===0)return"[]";let s=e.map(()=>e.node===null?"null":r(),"elements");return["[",E([C,B([",",C],s)]),C,"]"]}case"ObjectExpression":return n.properties.length===0?"{}":["{",E([C,B([",",C],e.map(r,"properties"))]),C,"}"];case"ObjectProperty":return[r("key"),": ",r("value")];case"UnaryExpression":return[n.operator==="+"?"":n.operator,r("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return n.value?"true":"false";case"StringLiteral":return JSON.stringify(n.value);case"NumericLiteral":return ta(e)?JSON.stringify(String(n.value)):JSON.stringify(n.value);case"Identifier":return ta(e)?JSON.stringify(n.name):n.name;case"TemplateLiteral":return r(["quasis",0]);case"TemplateElement":return JSON.stringify(n.value.cooked);default:throw new Oe(n,"JSON")}}function ta(e){return e.key==="key"&&e.parent.type==="ObjectProperty"}var cl=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function ra(e,t){let{type:r}=e;if(r==="ObjectProperty"){let{key:n}=e;n.type==="Identifier"?t.key={type:"StringLiteral",value:n.name}:n.type==="NumericLiteral"&&(t.key={type:"StringLiteral",value:String(n.value)});return}if(r==="UnaryExpression"&&e.operator==="+")return t.argument;if(r==="ArrayExpression"){for(let[n,s]of e.elements.entries())s===null&&t.elements.splice(n,0,{type:"NullLiteral"});return}if(r==="TemplateLiteral")return{type:"StringLiteral",value:e.quasis[0].value.cooked}}ra.ignoredProperties=cl;var na=[{linguistLanguageId:174,name:"JSON.stringify",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],parsers:["json-stringify"],vscodeLanguageIds:["json"]},{linguistLanguageId:174,name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","flake.lock","mcmod.info"],parsers:["json"],vscodeLanguageIds:["json"]},{linguistLanguageId:423,name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[".babelrc",".devcontainer.json",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc",".swcrc","api-extractor.json","devcontainer.json","jsconfig.json","language-configuration.json","tsconfig.json","tslint.json",".eslintrc"],parsers:["json"],vscodeLanguageIds:["jsonc"]},{linguistLanguageId:175,name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"]}];var ir={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Nt="JavaScript",ll={arrowParens:{category:Nt,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:ir.bracketSameLine,bracketSpacing:ir.bracketSpacing,jsxBracketSameLine:{category:Nt,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:Nt,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:ir.singleQuote,jsxSingleQuote:{category:Nt,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:Nt,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:Nt,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:ir.singleAttributePerLine},sa=ll;var ml={estree:gs,"estree-json":hs},yl=[...Qi,...na];return ma(Dl);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/estree.mjs b/node_modules/prettier/plugins/estree.mjs index 709155c..6a7b6ae 100644 --- a/node_modules/prettier/plugins/estree.mjs +++ b/node_modules/prettier/plugins/estree.mjs @@ -1,35 +1,35 @@ -var ua=Object.create;var gn=Object.defineProperty;var ia=Object.getOwnPropertyDescriptor;var aa=Object.getOwnPropertyNames;var oa=Object.getPrototypeOf,pa=Object.prototype.hasOwnProperty;var ca=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),pr=(e,t)=>{for(var r in t)gn(e,r,{get:t[r],enumerable:!0})},la=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of aa(t))!pa.call(e,s)&&s!==r&&gn(e,s,{get:()=>t[s],enumerable:!(n=ia(t,s))||n.enumerable});return e};var ma=(e,t,r)=>(r=e!=null?ua(oa(e)):{},la(t||!e||!e.__esModule?gn(r,"default",{value:e,enumerable:!0}):r,e));var bs=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var nt=(e,t,r)=>(bs(e,t,"read from private field"),r?r.call(e):t.get(e)),Ps=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},ks=(e,t,r,n)=>(bs(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Hi=ca(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.extract=el;ht.parse=rl;ht.parseWithComments=Vi;ht.print=nl;ht.strip=tl;var Hc=/\*\/$/,Kc=/^\/\*\*?/,Xi=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,zc=/(^|\s+)\/\/([^\r\n]*)/g,qi=/^(\r?\n)+/,Qc=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,Wi=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,Zc=/(\r?\n|^) *\* ?/g,$i=[];function el(e){let t=e.match(Xi);return t?t[0].trimLeft():""}function tl(e){let t=e.match(Xi);return t&&t[0]?e.substring(t[0].length):e}function rl(e){return Vi(e).pragmas}function Vi(e){let t=` +var ua=Object.create;var Tn=Object.defineProperty;var ia=Object.getOwnPropertyDescriptor;var aa=Object.getOwnPropertyNames;var oa=Object.getPrototypeOf,pa=Object.prototype.hasOwnProperty;var ca=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),or=(e,t)=>{for(var r in t)Tn(e,r,{get:t[r],enumerable:!0})},la=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of aa(t))!pa.call(e,s)&&s!==r&&Tn(e,s,{get:()=>t[s],enumerable:!(n=ia(t,s))||n.enumerable});return e};var ma=(e,t,r)=>(r=e!=null?ua(oa(e)):{},la(t||!e||!e.__esModule?Tn(r,"default",{value:e,enumerable:!0}):r,e));var Bs=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var st=(e,t,r)=>(Bs(e,t,"read from private field"),r?r.call(e):t.get(e)),bs=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Ps=(e,t,r,n)=>(Bs(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Hi=ca(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.extract=el;ht.parse=rl;ht.parseWithComments=Vi;ht.print=nl;ht.strip=tl;var Hc=/\*\/$/,Kc=/^\/\*\*?/,Xi=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,zc=/(^|\s+)\/\/([^\r\n]*)/g,qi=/^(\r?\n)+/,Qc=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,Wi=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,Zc=/(\r?\n|^) *\* ?/g,$i=[];function el(e){let t=e.match(Xi);return t?t[0].trimLeft():""}function tl(e){let t=e.match(Xi);return t&&t[0]?e.substring(t[0].length):e}function rl(e){return Vi(e).pragmas}function Vi(e){let t=` `;e=e.replace(Kc,"").replace(Hc,"").replace(Zc,"$1");let r="";for(;r!==e;)r=e,e=e.replace(Qc,`${t}$1 $2${t}`);e=e.replace(qi,"").trimRight();let n=Object.create(null),s=e.replace(Wi,"").replace(qi,"").trimRight(),u;for(;u=Wi.exec(e);){let i=u[2].replace(zc,"");typeof n[u[1]]=="string"||Array.isArray(n[u[1]])?n[u[1]]=$i.concat(n[u[1]],i):n[u[1]]=i}return{comments:s,pragmas:n}}function nl({comments:e="",pragmas:t={}}){let r=` -`,n="/**",s=" *",u=" */",i=Object.keys(t),a=i.map(p=>Yi(p,t[p])).reduce((p,m)=>p.concat(m),[]).map(p=>`${s} ${p}${r}`).join("");if(!e){if(i.length===0)return"";if(i.length===1&&!Array.isArray(t[i[0]])){let p=t[i[0]];return`${n} ${Yi(i[0],p)[0]}${u}`}}let o=e.split(r).map(p=>`${s} ${p}`).join(r)+r;return n+r+(e?o:"")+(e&&i.length?s+r:"")+a+u}function Yi(e,t){return $i.concat(t).map(r=>`@${e} ${r}`.trim())}});var Bs={};pr(Bs,{languages:()=>Dl,options:()=>sa,printers:()=>ml});var hs={};pr(hs,{canAttachComment:()=>Wo,embed:()=>Ni,experimentalFeatures:()=>il,getCommentChildNodes:()=>Yo,getVisitorKeys:()=>Er,handleComments:()=>kr,insertPragma:()=>zi,isBlockComment:()=>ae,isGap:()=>Xo,massageAstNode:()=>Gi,print:()=>Ii,printComment:()=>xu,willPrintOwnComments:()=>Qn});function Da(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:s,locEnd:u,[Symbol.for("printedComments")]:i}=t,{node:a}=e,o=s(a),p=u(a);for(let m of n)s(m)>=o&&u(m)<=p&&i.add(m);return r.slice(o,p)}var Is=Da;var Ke="string",je="array",ze="cursor",Me="indent",Re="align",Qe="trim",ue="group",De="fill",Fe="if-break",Je="indent-if-break",Ne="line-suffix",Ue="line-suffix-boundary",ie="line",be="label",Pe="break-parent",cr=new Set([ze,Me,Re,Qe,ue,De,Fe,Je,Ne,Ue,ie,be,Pe]);function ya(e){if(typeof e=="string")return Ke;if(Array.isArray(e))return je;if(!e)return;let{type:t}=e;if(cr.has(t))return t}var Ze=ya;var fa=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function Ea(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', -Expected it to be 'string' or 'object'.`;if(Ze(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=fa([...cr].map(s=>`'${s}'`));return`Unexpected doc.type '${e.type}'. -Expected it to be ${n}.`}var hn=class extends Error{name="InvalidDocError";constructor(t){super(Ea(t)),this.doc=t}},ct=hn;var Ls={};function Fa(e,t,r,n){let s=[e];for(;s.length>0;){let u=s.pop();if(u===Ls){r(s.pop());continue}r&&s.push(u,Ls);let i=Ze(u);if(!i)throw new ct(u);if((t==null?void 0:t(u))!==!1)switch(i){case je:case De:{let a=i===je?u:u.parts;for(let o=a.length,p=o-1;p>=0;--p)s.push(a[p]);break}case Fe:s.push(u.flatContents,u.breakContents);break;case ue:if(n&&u.expandedStates)for(let a=u.expandedStates.length,o=a-1;o>=0;--o)s.push(u.expandedStates[o]);else s.push(u.contents);break;case Re:case Me:case Je:case be:case Ne:s.push(u.contents);break;case Ke:case ze:case Qe:case Ue:case ie:case Pe:break;default:throw new ct(u)}}}var Sn=Fa;var ws=()=>{},Ge=ws,lr=ws;function E(e){return Ge(e),{type:Me,contents:e}}function ye(e,t){return Ge(t),{type:Re,contents:t,n:e}}function D(e,t={}){return Ge(e),lr(t.expandedStates,!0),{type:ue,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Os(e){return ye(Number.NEGATIVE_INFINITY,e)}function vs(e){return ye(-1,e)}function qe(e,t){return D(e[0],{...t,expandedStates:e})}function St(e){return lr(e),{type:De,parts:e}}function b(e,t="",r={}){return Ge(e),t!==""&&Ge(t),{type:Fe,breakContents:e,flatContents:t,groupId:r.groupId}}function lt(e,t){return Ge(e),{type:Je,contents:e,groupId:t.groupId,negate:t.negate}}function Bn(e){return Ge(e),{type:Ne,contents:e}}var de={type:Ue},Ae={type:Pe};var bn={type:ie,hard:!0},Ca={type:ie,hard:!0,literal:!0},A={type:ie},F={type:ie,soft:!0},C=[bn,Ae],mr=[Ca,Ae],Pn={type:ze};function B(e,t){Ge(e),lr(t);let r=[];for(let n=0;n0){for(let s=0;s{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},w=da;var Dr=e=>{if(Array.isArray(e))return e;if(e.type!==De)throw new Error(`Expect doc to be 'array' or '${De}'.`);return e.parts};function st(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(u){if(r.has(u))return r.get(u);let i=s(u);return r.set(u,i),i}function s(u){switch(Ze(u)){case je:return t(u.map(n));case De:return t({...u,parts:u.parts.map(n)});case Fe:return t({...u,breakContents:n(u.breakContents),flatContents:n(u.flatContents)});case ue:{let{expandedStates:i,contents:a}=u;return i?(i=i.map(n),a=i[0]):a=n(a),t({...u,contents:a,expandedStates:i})}case Re:case Me:case Je:case be:case Ne:return t({...u,contents:n(u.contents)});case Ke:case ze:case Qe:case Ue:case ie:case Pe:return t(u);default:throw new ct(u)}}}function Ms(e,t,r){let n=r,s=!1;function u(i){if(s)return!1;let a=t(i);a!==void 0&&(s=!0,n=a)}return Sn(e,u),n}function Aa(e){if(e.type===ue&&e.break||e.type===ie&&e.hard||e.type===Pe)return!0}function K(e){return Ms(e,Aa,!1)}function js(e){if(e.length>0){let t=w(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Rs(e){let t=new Set,r=[];function n(u){if(u.type===Pe&&js(r),u.type===ue){if(r.push(u),t.has(u))return!1;t.add(u)}}function s(u){u.type===ue&&r.pop().break&&js(r)}Sn(e,n,s,!0)}function Ta(e){return e.type===ie&&!e.hard?e.soft?"":" ":e.type===Fe?e.flatContents:e}function Ut(e){return st(e,Ta)}function xa(e){switch(Ze(e)){case De:if(e.parts.every(t=>t===""))return"";break;case ue:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===ue&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Re:case Me:case Je:case Ne:if(!e.contents)return"";break;case Fe:if(!e.flatContents&&!e.breakContents)return"";break;case je:{let t=[];for(let r of e){if(!r)continue;let[n,...s]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof w(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...s)}return t.length===0?"":t.length===1?t[0]:t}case Ke:case ze:case Qe:case Ue:case ie:case be:case Pe:break;default:throw new ct(e)}return e}function Bt(e){return st(e,t=>xa(t))}function Te(e,t=mr){return st(e,r=>typeof r=="string"?B(t,r.split(` -`)):r)}function ga(e){if(e.type===ie)return!0}function Js(e){return Ms(e,ga,!1)}function Gt(e,t){return e.type===be?{...e,contents:t(e.contents)}:t(e)}function ha(e){return Array.isArray(e)&&e.length>0}var P=ha;var Sa=/^[\$A-Z_a-z\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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B4\u08B6-\u08BD\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\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\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\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\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\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\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\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][\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\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\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*$/,Ba=e=>Sa.test(e),Ns=Ba;function ba(e){return e!==null&&typeof e=="object"}var Us=ba;function*Pa(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,s=u=>Us(u)&&n(u);for(let u of r(e)){let i=e[u];if(Array.isArray(i))for(let a of i)s(a)&&(yield a);else s(i)&&(yield i)}}function*ka(e,t){let r=[e];for(let n=0;n{let s=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:u}=t,i=r;for(;i>=0&&iYi(p,t[p])).reduce((p,m)=>p.concat(m),[]).map(p=>`${s} ${p}${r}`).join("");if(!e){if(i.length===0)return"";if(i.length===1&&!Array.isArray(t[i[0]])){let p=t[i[0]];return`${n} ${Yi(i[0],p)[0]}${u}`}}let o=e.split(r).map(p=>`${s} ${p}`).join(r)+r;return n+r+(e?o:"")+(e&&i.length?s+r:"")+a+u}function Yi(e,t){return $i.concat(t).map(r=>`@${e} ${r}`.trim())}});var Ss={};or(Ss,{languages:()=>yl,options:()=>sa,printers:()=>ml});var gs={};or(gs,{canAttachComment:()=>Wo,embed:()=>Ni,experimentalFeatures:()=>il,getCommentChildNodes:()=>Yo,getVisitorKeys:()=>fr,handleComments:()=>Kn,insertPragma:()=>zi,isBlockComment:()=>ae,isGap:()=>Xo,massageAstNode:()=>Gi,print:()=>Ii,printComment:()=>Tu,willPrintOwnComments:()=>zn});function ya(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:s,locEnd:u,[Symbol.for("printedComments")]:i}=t,{node:a}=e,o=s(a),p=u(a);for(let m of n)s(m)>=o&&u(m)<=p&&i.add(m);return r.slice(o,p)}var ks=ya;var Ke="string",je="array",ze="cursor",Me="indent",Re="align",Qe="trim",ue="group",ye="fill",Fe="if-break",Je="indent-if-break",Ne="line-suffix",Ue="line-suffix-boundary",ie="line",be="label",Pe="break-parent",pr=new Set([ze,Me,Re,Qe,ue,ye,Fe,Je,Ne,Ue,ie,be,Pe]);function Da(e){if(typeof e=="string")return Ke;if(Array.isArray(e))return je;if(!e)return;let{type:t}=e;if(pr.has(t))return t}var Ze=Da;var fa=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function Ea(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', +Expected it to be 'string' or 'object'.`;if(Ze(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=fa([...pr].map(s=>`'${s}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${n}.`}var xn=class extends Error{name="InvalidDocError";constructor(t){super(Ea(t)),this.doc=t}},lt=xn;var Is={};function Fa(e,t,r,n){let s=[e];for(;s.length>0;){let u=s.pop();if(u===Is){r(s.pop());continue}r&&s.push(u,Is);let i=Ze(u);if(!i)throw new lt(u);if((t==null?void 0:t(u))!==!1)switch(i){case je:case ye:{let a=i===je?u:u.parts;for(let o=a.length,p=o-1;p>=0;--p)s.push(a[p]);break}case Fe:s.push(u.flatContents,u.breakContents);break;case ue:if(n&&u.expandedStates)for(let a=u.expandedStates.length,o=a-1;o>=0;--o)s.push(u.expandedStates[o]);else s.push(u.contents);break;case Re:case Me:case Je:case be:case Ne:s.push(u.contents);break;case Ke:case ze:case Qe:case Ue:case ie:case Pe:break;default:throw new lt(u)}}}var gn=Fa;var Ls=()=>{},Ge=Ls,cr=Ls;function E(e){return Ge(e),{type:Me,contents:e}}function De(e,t){return Ge(t),{type:Re,contents:t,n:e}}function y(e,t={}){return Ge(e),cr(t.expandedStates,!0),{type:ue,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function ws(e){return De(Number.NEGATIVE_INFINITY,e)}function Os(e){return De(-1,e)}function qe(e,t){return y(e[0],{...t,expandedStates:e})}function St(e){return cr(e),{type:ye,parts:e}}function P(e,t="",r={}){return Ge(e),t!==""&&Ge(t),{type:Fe,breakContents:e,flatContents:t,groupId:r.groupId}}function mt(e,t){return Ge(e),{type:Je,contents:e,groupId:t.groupId,negate:t.negate}}function hn(e){return Ge(e),{type:Ne,contents:e}}var Ae={type:Ue},Te={type:Pe};var Sn={type:ie,hard:!0},Ca={type:ie,hard:!0,literal:!0},A={type:ie},F={type:ie,soft:!0},C=[Sn,Te],lr=[Ca,Te],Bn={type:ze};function B(e,t){Ge(e),cr(t);let r=[];for(let n=0;n0){for(let s=0;s{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},w=da;var mr=e=>{if(Array.isArray(e))return e;if(e.type!==ye)throw new Error(`Expect doc to be 'array' or '${ye}'.`);return e.parts};function ut(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(u){if(r.has(u))return r.get(u);let i=s(u);return r.set(u,i),i}function s(u){switch(Ze(u)){case je:return t(u.map(n));case ye:return t({...u,parts:u.parts.map(n)});case Fe:return t({...u,breakContents:n(u.breakContents),flatContents:n(u.flatContents)});case ue:{let{expandedStates:i,contents:a}=u;return i?(i=i.map(n),a=i[0]):a=n(a),t({...u,contents:a,expandedStates:i})}case Re:case Me:case Je:case be:case Ne:return t({...u,contents:n(u.contents)});case Ke:case ze:case Qe:case Ue:case ie:case Pe:return t(u);default:throw new lt(u)}}}function js(e,t,r){let n=r,s=!1;function u(i){if(s)return!1;let a=t(i);a!==void 0&&(s=!0,n=a)}return gn(e,u),n}function Aa(e){if(e.type===ue&&e.break||e.type===ie&&e.hard||e.type===Pe)return!0}function K(e){return js(e,Aa,!1)}function _s(e){if(e.length>0){let t=w(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Ms(e){let t=new Set,r=[];function n(u){if(u.type===Pe&&_s(r),u.type===ue){if(r.push(u),t.has(u))return!1;t.add(u)}}function s(u){u.type===ue&&r.pop().break&&_s(r)}gn(e,n,s,!0)}function Ta(e){return e.type===ie&&!e.hard?e.soft?"":" ":e.type===Fe?e.flatContents:e}function Ut(e){return ut(e,Ta)}function xa(e){switch(Ze(e)){case ye:if(e.parts.every(t=>t===""))return"";break;case ue:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===ue&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Re:case Me:case Je:case Ne:if(!e.contents)return"";break;case Fe:if(!e.flatContents&&!e.breakContents)return"";break;case je:{let t=[];for(let r of e){if(!r)continue;let[n,...s]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof w(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...s)}return t.length===0?"":t.length===1?t[0]:t}case Ke:case ze:case Qe:case Ue:case ie:case be:case Pe:break;default:throw new lt(e)}return e}function Bt(e){return ut(e,t=>xa(t))}function xe(e,t=lr){return ut(e,r=>typeof r=="string"?B(t,r.split(` +`)):r)}function ga(e){if(e.type===ie)return!0}function Rs(e){return js(e,ga,!1)}function Gt(e,t){return e.type===be?{...e,contents:t(e.contents)}:t(e)}function ha(e){return Array.isArray(e)&&e.length>0}var b=ha;var Sa=/^[\$A-Z_a-z\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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B4\u08B6-\u08BD\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\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\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\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\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\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\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\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][\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\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\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*$/,Ba=e=>Sa.test(e),Js=Ba;function ba(e){return e!==null&&typeof e=="object"}var Ns=ba;function*Pa(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,s=u=>Ns(u)&&n(u);for(let u of r(e)){let i=e[u];if(Array.isArray(i))for(let a of i)s(a)&&(yield a);else s(i)&&(yield i)}}function*ka(e,t){let r=[e];for(let n=0;n{let s=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:u}=t,i=r;for(;i>=0&&i/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;var Xs={eastAsianWidth(e){var t=e.charCodeAt(0),r=e.length==2?e.charCodeAt(1):0,n=t;return 55296<=t&&t<=56319&&56320<=r&&r<=57343&&(t&=1023,r&=1023,n=t<<10|r,n+=65536),n==12288||65281<=n&&n<=65376||65504<=n&&n<=65510?"F":4352<=n&&n<=4447||4515<=n&&n<=4519||4602<=n&&n<=4607||9001<=n&&n<=9002||11904<=n&&n<=11929||11931<=n&&n<=12019||12032<=n&&n<=12245||12272<=n&&n<=12283||12289<=n&&n<=12350||12353<=n&&n<=12438||12441<=n&&n<=12543||12549<=n&&n<=12589||12593<=n&&n<=12686||12688<=n&&n<=12730||12736<=n&&n<=12771||12784<=n&&n<=12830||12832<=n&&n<=12871||12880<=n&&n<=13054||13056<=n&&n<=19903||19968<=n&&n<=42124||42128<=n&&n<=42182||43360<=n&&n<=43388||44032<=n&&n<=55203||55216<=n&&n<=55238||55243<=n&&n<=55291||63744<=n&&n<=64255||65040<=n&&n<=65049||65072<=n&&n<=65106||65108<=n&&n<=65126||65128<=n&&n<=65131||110592<=n&&n<=110593||127488<=n&&n<=127490||127504<=n&&n<=127546||127552<=n&&n<=127560||127568<=n&&n<=127569||131072<=n&&n<=194367||177984<=n&&n<=196605||196608<=n&&n<=262141?"W":"N"}};var _a=/[^\x20-\x7F]/;function ja(e){if(!e)return 0;if(!_a.test(e))return e.length;e=e.replace(Ys()," ");let t=0;for(let r of e){let n=r.codePointAt(0);if(n<=31||n>=127&&n<=159||n>=768&&n<=879)continue;let s=Xs.eastAsianWidth(r);t+=s==="F"||s==="W"?2:1}return t}var tt=ja;function U(e){var n;let t=e.range?e.range[0]:e.start,r=((n=e.declaration)==null?void 0:n.decorators)??e.decorators;return P(r)?Math.min(U(r[0]),t):t}function O(e){return e.range?e.range[1]:e.end}function mt(e,t){let r=U(e);return Number.isInteger(r)&&r===U(t)}function Ma(e,t){let r=O(e);return Number.isInteger(r)&&r===O(t)}function $s(e,t){return mt(e,t)&&Ma(e,t)}var qt=null;function Wt(e){if(qt!==null&&typeof qt.property){let t=qt;return qt=Wt.prototype=null,t}return qt=Wt.prototype=e??Object.create(null),new Wt}var Ra=10;for(let e=0;e<=Ra;e++)Wt();function kn(e){return Wt(e)}function Ja(e,t="type"){kn(e);function r(n){let s=n[t],u=e[s];if(!Array.isArray(u))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return u}return r}var fr=Ja;var Vs={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ExportAllDeclaration:["source","attributes","assertions","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes","assertions"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes","assertions"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","parameter"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ImportExpression:["source","attributes"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareEnum:["id","body"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]};var Na=fr(Vs),Er=Na;function Ua(e){return e=new Set(e),t=>e.has(t==null?void 0:t.type)}var j=Ua;var Ga=j(["Block","CommentBlock","MultiLine"]),ae=Ga;function qa(e,t){let r=t.split(".");for(let n=r.length-1;n>=0;n--){let s=r[n];if(n===0)return e.type==="Identifier"&&e.name===s;if(e.type!=="MemberExpression"||e.optional||e.computed||e.property.type!=="Identifier"||e.property.name!==s)return!1;e=e.object}}function Wa(e,t){return t.some(r=>qa(e,r))}var Hs=Wa;var Ya=j(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),Fr=Ya;function Xa({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}var Cr=Xa;function Xt(e,t){return t(e)||Gs(e,{getVisitorKeys:Er,predicate:t})}function Lt(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||k(e)||J(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||Le(e)||e.type==="TSNonNullExpression"||e.type==="ChainExpression"}function Qs(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function Ar(e){if(e.expressions)return["expressions",0];if(e.left)return["left"];if(e.test)return["test"];if(e.object)return["object"];if(e.callee)return["callee"];if(e.tag)return["tag"];if(e.argument)return["argument"];if(e.expression)return["expression"];throw new Error("Unexpected node has no left side.")}var $t=j(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),Zs=j(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),G=j(["ArrayExpression","TupleExpression"]),Z=j(["ObjectExpression","RecordExpression"]);function ge(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function Tr(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&ge(e.argument)}function ee(e){return e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"}function vn(e){return e.type==="RegExpLiteral"||e.type==="Literal"&&!!e.regex}var ke=j(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),It=j(["FunctionExpression","ArrowFunctionExpression"]);function $a(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function In(e){return k(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var V=j(["JSXElement","JSXFragment"]);function _n(e){return e.kind==="get"||e.kind==="set"}function jn(e){return _n(e)||mt(e,e.value)}function xr(e){return(e.type==="ObjectTypeProperty"||e.type==="ObjectTypeInternalSlot")&&e.value.type==="FunctionTypeAnnotation"&&!e.static&&!jn(e)}function eu(e){return(e.type==="TypeAnnotation"||e.type==="TSTypeAnnotation")&&e.typeAnnotation.type==="FunctionTypeAnnotation"&&!e.static&&!mt(e,e.typeAnnotation)}var ce=j(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function Dt(e){return J(e)||e.type==="BindExpression"&&!!e.object}var Va=j(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function wt(e){return Cr(e)||Fr(e)||Va(e)||(e.type==="GenericTypeAnnotation"||e.type==="TSTypeReference")&&!e.typeParameters}function Ha(e){let t=/^(?:before|after)(?:Each|All)$/;return e.callee.type==="Identifier"&&e.arguments.length===1&&t.test(e.callee.name)}var Ka=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.step","test.describe","test.describe.only","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function za(e){return Hs(e,Ka)}function Ct(e,t){if(e.type!=="CallExpression")return!1;if(e.arguments.length===1){if(In(e)&&t&&Ct(t))return It(e.arguments[0]);if(Ha(e))return In(e.arguments[0])}else if((e.arguments.length===2||e.arguments.length===3)&&(e.arguments[0].type==="TemplateLiteral"||ee(e.arguments[0]))&&za(e.callee))return e.arguments[2]&&!ge(e.arguments[2])?!1:(e.arguments.length===2?It(e.arguments[1]):$a(e.arguments[1])&&Y(e.arguments[1]).length<=1)||In(e.arguments[1]);return!1}var k=j(["CallExpression","OptionalCallExpression"]),J=j(["MemberExpression","OptionalMemberExpression"]);function tu(e){let t="expressions";e.type==="TSTemplateLiteralType"&&(t="types");let r=e[t];return r.length===0?!1:r.every(n=>{if(d(n))return!1;if(n.type==="Identifier"||n.type==="ThisExpression")return!0;if(n.type==="ChainExpression"&&(n=n.expression),J(n)){let s=n;for(;J(s);)if(s.property.type!=="Identifier"&&s.property.type!=="Literal"&&s.property.type!=="StringLiteral"&&s.property.type!=="NumericLiteral"||(s=s.object,d(s)))return!1;return s.type==="Identifier"||s.type==="ThisExpression"}return!1})}function Ie(e,t){return V(t)?dt(t):d(t,x.Leading,r=>z(e,O(r)))}function Mn(e,t){return t.parser!=="json"&&ee(e.key)&&oe(e.key).slice(1,-1)===e.key.value&&(Ns(e.key.value)&&!(t.parser==="babel-ts"&&e.type==="ClassProperty"||t.parser==="typescript"&&e.type==="PropertyDefinition")||Rn(e.key.value)&&String(Number(e.key.value))===e.key.value&&(t.parser==="babel"||t.parser==="acorn"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree"))}function Rn(e){return/^(?:\d+|\d+\.\d+)$/.test(e)}function Ks(e){return e.quasis.some(t=>t.value.raw.includes(` -`))}function gr(e,t){return(e.type==="TemplateLiteral"&&Ks(e)||e.type==="TaggedTemplateExpression"&&Ks(e.quasi))&&!z(t,U(e),{backwards:!0})}function hr(e){if(!d(e))return!1;let t=w(!1,Kt(e,x.Dangling),-1);return t&&!ae(t)}function ru(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(It(r)){if(t+=1,t>1)return!0}else if(k(r)){for(let n of r.arguments)if(It(n))return!0}return!1}function Sr(e){let{node:t,parent:r,key:n}=e;return n==="callee"&&k(t)&&k(r)&&r.arguments.length>0&&t.arguments.length>r.arguments.length}var Qa=new Set(["!","-","+","~"]);function xe(e,t=2){if(t<=0)return!1;let r=n=>xe(n,t-1);if(vn(e))return tt(e.pattern??e.regex.pattern)<=5;if(e.type==="Literal"||e.type==="BigIntLiteral"||e.type==="DecimalLiteral"||e.type==="BooleanLiteral"||e.type==="NullLiteral"||e.type==="NumericLiteral"||e.type==="StringLiteral"||e.type==="Identifier"||e.type==="ThisExpression"||e.type==="Super"||e.type==="PrivateName"||e.type==="PrivateIdentifier"||e.type==="ArgumentPlaceholder"||e.type==="Import")return!0;if(e.type==="TemplateLiteral")return e.quasis.every(n=>!n.value.raw.includes(` -`))&&e.expressions.every(r);if(Z(e))return e.properties.every(n=>!n.computed&&(n.shorthand||n.value&&r(n.value)));if(G(e))return e.elements.every(n=>n===null||r(n));if(ut(e)){if(e.type==="ImportExpression"||xe(e.callee,t)){let n=he(e);return n.length<=t&&n.every(r)}return!1}return J(e)?xe(e.object,t)&&xe(e.property,t):e.type==="UnaryExpression"&&Qa.has(e.operator)||e.type==="UpdateExpression"?xe(e.argument,t):e.type==="TSNonNullExpression"?xe(e.expression,t):!1}function oe(e){var t;return((t=e.extra)==null?void 0:t.raw)??e.raw}function nu(e){return e}function le(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")}function re(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return re(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return re(e.object,t);case"TaggedTemplateExpression":return e.tag.type==="FunctionExpression"?!1:re(e.tag,t);case"CallExpression":case"OptionalCallExpression":return e.callee.type==="FunctionExpression"?!1:re(e.callee,t);case"ConditionalExpression":return re(e.test,t);case"UpdateExpression":return!e.prefix&&re(e.argument,t);case"BindExpression":return e.object&&re(e.object,t);case"SequenceExpression":return re(e.expressions[0],t);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":return re(e.expression,t);default:return t(e)}}var zs={"==":!0,"!=":!0,"===":!0,"!==":!0},dr={"*":!0,"/":!0,"%":!0},On={">>":!0,">>>":!0,"<<":!0};function Vt(e,t){return!(Yt(t)!==Yt(e)||e==="**"||zs[e]&&zs[t]||t==="%"&&dr[e]||e==="%"&&dr[t]||t!==e&&dr[t]&&dr[e]||On[e]&&On[t])}var Za=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(r=>[r,t])));function Yt(e){return Za.get(e)}function su(e){return!!On[e]||e==="|"||e==="^"||e==="&"}function uu(e){var r;if(e.rest)return!0;let t=Y(e);return((r=w(!1,t,-1))==null?void 0:r.type)==="RestElement"}var Ln=new WeakMap;function Y(e){if(Ln.has(e))return Ln.get(e);let t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push(...e.parameters):Array.isArray(e.params)&&t.push(...e.params),e.rest&&t.push(e.rest),Ln.set(e,t),t}function iu(e,t){let{node:r}=e,n=0,s=u=>t(u,n++);r.this&&e.call(s,"this"),Array.isArray(r.parameters)?e.each(s,"parameters"):Array.isArray(r.params)&&e.each(s,"params"),r.rest&&e.call(s,"rest")}var wn=new WeakMap;function he(e){if(wn.has(e))return wn.get(e);let t=e.arguments;return e.type==="ImportExpression"&&(t=[e.source],e.attributes&&t.push(e.attributes)),wn.set(e,t),t}function Br(e,t){let{node:r}=e;r.type==="ImportExpression"?(e.call(n=>t(n,0),"source"),r.attributes&&e.call(n=>t(n,1),"attributes")):e.each(t,"arguments")}function Jn(e,t){if(e.type==="ImportExpression"){if(t===0||t===(e.attributes?-2:-1))return"source";if(e.attributes&&(t===1||t===-1))return"attributes";throw new RangeError("Invalid argument index")}if(t<0&&(t=e.arguments.length+t),t<0||t>=e.arguments.length)throw new RangeError("Invalid argument index");return["arguments",t]}function Ht(e){return e.value.trim()==="prettier-ignore"&&!e.unignore}function dt(e){return(e==null?void 0:e.prettierIgnore)||d(e,x.PrettierIgnore)}var x={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},au=(e,t)=>{if(typeof e=="function"&&(t=e,e=0),e||t)return(r,n,s)=>!(e&x.Leading&&!r.leading||e&x.Trailing&&!r.trailing||e&x.Dangling&&(r.leading||r.trailing)||e&x.Block&&!ae(r)||e&x.Line&&!$t(r)||e&x.First&&n!==0||e&x.Last&&n!==s.length-1||e&x.PrettierIgnore&&!Ht(r)||t&&!t(r))};function d(e,t,r){if(!P(e==null?void 0:e.comments))return!1;let n=au(t,r);return n?e.comments.some(n):!0}function Kt(e,t,r){if(!Array.isArray(e==null?void 0:e.comments))return[];let n=au(t,r);return n?e.comments.filter(n):e.comments}var me=(e,{originalText:t})=>kt(t,O(e));function ut(e){return k(e)||e.type==="NewExpression"||e.type==="ImportExpression"}function fe(e){return e&&(e.type==="ObjectProperty"||e.type==="Property"&&!e.method&&e.kind==="init")}var zt=Symbol("ifWithoutBlockAndSameLineComment"),Le=j(["TSAsExpression","TSSatisfiesExpression"]);function Nn(e,t){var u,i,a,o,p,m,y;if(e.isRoot)return!1;let{node:r,key:n,parent:s}=e;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&no(r)&&Qt(e))return!0;if(eo(r))return!1;if(r.type==="Identifier"){if((u=r.extra)!=null&&u.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(r.name)||n==="left"&&(r.name==="async"&&!s.await||r.name==="let")&&s.type==="ForOfStatement")return!0;if(r.name==="let"){let c=(i=e.findAncestor(f=>f.type==="ForOfStatement"))==null?void 0:i.left;if(c&&re(c,f=>f===r))return!0}if(n==="object"&&r.name==="let"&&s.type==="MemberExpression"&&s.computed&&!s.optional){let c=e.findAncestor(l=>l.type==="ExpressionStatement"||l.type==="ForStatement"||l.type==="ForInStatement"),f=c?c.type==="ExpressionStatement"?c.expression:c.type==="ForStatement"?c.init:c.left:void 0;if(f&&re(f,l=>l===r))return!0}return!1}if(r.type==="ObjectExpression"||r.type==="FunctionExpression"||r.type==="ClassExpression"||r.type==="DoExpression"){let c=(a=e.findAncestor(f=>f.type==="ExpressionStatement"))==null?void 0:a.expression;if(c&&re(c,f=>f===r))return!0}if(r.type==="ObjectExpression"){let c=(o=e.findAncestor(f=>f.type==="ArrowFunctionExpression"))==null?void 0:o.body;if(c&&c.type!=="SequenceExpression"&&c.type!=="AssignmentExpression"&&re(c,f=>f===r))return!0}switch(s.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(n==="superClass"&&(r.type==="ArrowFunctionExpression"||r.type==="AssignmentExpression"||r.type==="AwaitExpression"||r.type==="BinaryExpression"||r.type==="ConditionalExpression"||r.type==="LogicalExpression"||r.type==="NewExpression"||r.type==="ObjectExpression"||r.type==="SequenceExpression"||r.type==="TaggedTemplateExpression"||r.type==="UnaryExpression"||r.type==="UpdateExpression"||r.type==="YieldExpression"||r.type==="TSNonNullExpression"||r.type==="ClassExpression"&&P(r.decorators)))return!0;break;case"ExportDefaultDeclaration":return ou(e,t)||r.type==="SequenceExpression";case"Decorator":if(n==="expression"){if(J(r)&&r.computed)return!0;let c=!1,f=!1,l=r;for(;l;)switch(l.type){case"MemberExpression":f=!0,l=l.object;break;case"CallExpression":if(f||c)return t.parser!=="typescript";c=!0,l=l.callee;break;case"Identifier":return!1;case"TaggedTemplateExpression":return t.parser!=="typescript";default:return!0}return!0}break;case"TypeAnnotation":if(e.match(void 0,void 0,(c,f)=>f==="returnType"&&c.type==="ArrowFunctionExpression")&&ro(r))return!0;break}switch(r.type){case"UpdateExpression":if(s.type==="UnaryExpression")return r.prefix&&(r.operator==="++"&&s.operator==="+"||r.operator==="--"&&s.operator==="-");case"UnaryExpression":switch(s.type){case"UnaryExpression":return r.operator===s.operator&&(r.operator==="+"||r.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"BinaryExpression":return n==="left"&&s.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(s.type==="UpdateExpression"||r.operator==="in"&&to(e))return!0;if(r.operator==="|>"&&((p=r.extra)!=null&&p.parenthesized)){let c=e.grandparent;if(c.type==="BinaryExpression"&&c.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"LogicalExpression":switch(s.type){case"TSAsExpression":case"TSSatisfiesExpression":return!Le(r);case"ConditionalExpression":return Le(r);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return n==="callee";case"ClassExpression":case"ClassDeclaration":return n==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"AssignmentExpression":case"AssignmentPattern":return n==="left"&&(r.type==="TSTypeAssertion"||Le(r));case"LogicalExpression":if(r.type==="LogicalExpression")return s.operator!==r.operator;case"BinaryExpression":{let{operator:c,type:f}=r;if(!c&&f!=="TSTypeAssertion")return!0;let l=Yt(c),h=s.operator,g=Yt(h);return g>l||n==="right"&&g===l||g===l&&!Vt(h,c)?!0:g");default:return!1}case"TSFunctionType":if(e.match(c=>c.type==="TSFunctionType",(c,f)=>f==="typeAnnotation"&&c.type==="TSTypeAnnotation",(c,f)=>f==="returnType"&&c.type==="ArrowFunctionExpression"))return!0;case"TSConditionalType":case"TSConstructorType":if(n==="extendsType"&&s.type==="TSConditionalType"){if(r.type==="TSConditionalType")return!0;let{typeAnnotation:c}=r.returnType||r.typeAnnotation;if(c.type==="TSTypePredicate"&&c.typeAnnotation&&(c=c.typeAnnotation.typeAnnotation),c.type==="TSInferType"&&c.typeParameter.constraint)return!0}if(n==="checkType"&&s.type==="TSConditionalType")return!0;case"TSUnionType":case"TSIntersectionType":if((s.type==="TSUnionType"||s.type==="TSIntersectionType")&&s.types.length>1&&(!r.types||r.types.length>1))return!0;case"TSInferType":if(r.type==="TSInferType"&&s.type==="TSRestType")return!1;case"TSTypeOperator":return s.type==="TSArrayType"||s.type==="TSOptionalType"||s.type==="TSRestType"||n==="objectType"&&s.type==="TSIndexedAccessType"||s.type==="TSTypeOperator"||s.type==="TSTypeAnnotation"&&e.grandparent.type.startsWith("TSJSDoc");case"TSTypeQuery":return n==="objectType"&&s.type==="TSIndexedAccessType"||n==="elementType"&&s.type==="TSArrayType";case"TypeofTypeAnnotation":return n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType")||n==="elementType"&&s.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return s.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return s.type==="ArrayTypeAnnotation"||s.type==="NullableTypeAnnotation"||s.type==="IntersectionTypeAnnotation"||s.type==="UnionTypeAnnotation"||n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType");case"InferTypeAnnotation":case"NullableTypeAnnotation":return s.type==="ArrayTypeAnnotation"||n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType");case"FunctionTypeAnnotation":{if(e.match(void 0,(f,l)=>l==="typeAnnotation"&&f.type==="TypeAnnotation",(f,l)=>l==="returnType"&&f.type==="ArrowFunctionExpression")||e.match(void 0,(f,l)=>l==="typeAnnotation"&&f.type==="TypePredicate",(f,l)=>l==="typeAnnotation"&&f.type==="TypeAnnotation",(f,l)=>l==="returnType"&&f.type==="ArrowFunctionExpression"))return!0;let c=s.type==="NullableTypeAnnotation"?e.grandparent:s;return c.type==="UnionTypeAnnotation"||c.type==="IntersectionTypeAnnotation"||c.type==="ArrayTypeAnnotation"||n==="objectType"&&(c.type==="IndexedAccessType"||c.type==="OptionalIndexedAccessType")||n==="checkType"&&s.type==="ConditionalTypeAnnotation"||n==="extendsType"&&s.type==="ConditionalTypeAnnotation"&&r.returnType.type==="InferTypeAnnotation"&&r.returnType.typeParameter.bound||c.type==="NullableTypeAnnotation"||s.type==="FunctionTypeParam"&&s.name===null&&Y(r).some(f=>{var l;return((l=f.typeAnnotation)==null?void 0:l.type)==="NullableTypeAnnotation"})}case"ConditionalTypeAnnotation":if(n==="extendsType"&&s.type==="ConditionalTypeAnnotation"&&r.type==="ConditionalTypeAnnotation"||n==="checkType"&&s.type==="ConditionalTypeAnnotation")return!0;case"OptionalIndexedAccessType":return n==="objectType"&&s.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof r.value=="string"&&s.type==="ExpressionStatement"&&!s.directive){let c=e.grandparent;return c.type==="Program"||c.type==="BlockStatement"}return n==="object"&&s.type==="MemberExpression"&&typeof r.value=="number";case"AssignmentExpression":{let c=e.grandparent;return n==="body"&&s.type==="ArrowFunctionExpression"?!0:n==="key"&&(s.type==="ClassProperty"||s.type==="PropertyDefinition")&&s.computed||(n==="init"||n==="update")&&s.type==="ForStatement"?!1:s.type==="ExpressionStatement"?r.left.type==="ObjectPattern":!(n==="key"&&s.type==="TSPropertySignature"||s.type==="AssignmentExpression"||s.type==="SequenceExpression"&&c.type==="ForStatement"&&(c.init===s||c.update===s)||n==="value"&&s.type==="Property"&&c.type==="ObjectPattern"&&c.properties.includes(s)||s.type==="NGChainedExpression")}case"ConditionalExpression":switch(s.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return n==="test";case"MemberExpression":case"OptionalMemberExpression":return n==="object";default:return!1}case"FunctionExpression":switch(s.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(s.type){case"BinaryExpression":return s.operator!=="|>"||((m=r.extra)==null?void 0:m.parenthesized);case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return n==="test";default:return!1}case"ClassExpression":switch(s.type){case"NewExpression":return n==="callee";default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":case"CallExpression":case"MemberExpression":if(so(e))return!0;case"TaggedTemplateExpression":case"TSNonNullExpression":if(n==="callee"&&(s.type==="BindExpression"||s.type==="NewExpression")){let c=r;for(;c;)switch(c.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":c=c.object;break;case"TaggedTemplateExpression":c=c.tag;break;case"TSNonNullExpression":c=c.expression;break;default:return!1}}return!1;case"BindExpression":return n==="callee"&&(s.type==="BindExpression"||s.type==="NewExpression")||n==="object"&&J(s);case"NGPipeExpression":return!(s.type==="NGRoot"||s.type==="NGMicrosyntaxExpression"||s.type==="ObjectProperty"&&!((y=r.extra)!=null&&y.parenthesized)||G(s)||n==="arguments"&&k(s)||n==="right"&&s.type==="NGPipeExpression"||n==="property"&&s.type==="MemberExpression"||s.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return n==="callee"||n==="left"&&s.type==="BinaryExpression"&&s.operator==="<"||!G(s)&&s.type!=="ArrowFunctionExpression"&&s.type!=="AssignmentExpression"&&s.type!=="AssignmentPattern"&&s.type!=="BinaryExpression"&&s.type!=="NewExpression"&&s.type!=="ConditionalExpression"&&s.type!=="ExpressionStatement"&&s.type!=="JsExpressionRoot"&&s.type!=="JSXAttribute"&&s.type!=="JSXElement"&&s.type!=="JSXExpressionContainer"&&s.type!=="JSXFragment"&&s.type!=="LogicalExpression"&&!k(s)&&!fe(s)&&s.type!=="ReturnStatement"&&s.type!=="ThrowStatement"&&s.type!=="TypeCastExpression"&&s.type!=="VariableDeclarator"&&s.type!=="YieldExpression";case"TSInstantiationExpression":return n==="object"&&J(s)}return!1}var eo=j(["BlockStatement","BreakStatement","ClassBody","ClassDeclaration","ClassMethod","ClassProperty","PropertyDefinition","ClassPrivateProperty","ContinueStatement","DebuggerStatement","DeclareClass","DeclareExportAllDeclaration","DeclareExportDeclaration","DeclareFunction","DeclareInterface","DeclareModule","DeclareModuleExports","DeclareVariable","DeclareEnum","DoWhileStatement","EnumDeclaration","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","IfStatement","ImportDeclaration","InterfaceDeclaration","LabeledStatement","MethodDefinition","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSNamespaceExportDeclaration","TypeAlias","VariableDeclaration","WhileStatement","WithStatement"]);function to(e){let t=0,{node:r}=e;for(;r;){let n=e.getParentNode(t++);if((n==null?void 0:n.type)==="ForStatement"&&n.init===r)return!0;r=n}return!1}function ro(e){return Xt(e,t=>t.type==="ObjectTypeAnnotation"&&Xt(t,r=>r.type==="FunctionTypeAnnotation"))}function no(e){return Z(e)}function Qt(e){let{parent:t,key:r}=e;switch(t.type){case"NGPipeExpression":if(r==="arguments"&&e.isLast)return e.callParent(Qt);break;case"ObjectProperty":if(r==="value")return e.callParent(()=>e.key==="properties"&&e.isLast);break;case"BinaryExpression":case"LogicalExpression":if(r==="right")return e.callParent(Qt);break;case"ConditionalExpression":if(r==="alternate")return e.callParent(Qt);break;case"UnaryExpression":if(t.prefix)return e.callParent(Qt);break}return!1}function ou(e,t){let{node:r,parent:n}=e;return r.type==="FunctionExpression"||r.type==="ClassExpression"?n.type==="ExportDefaultDeclaration"||!Nn(e,t):!Lt(r)||n.type!=="ExportDefaultDeclaration"&&Nn(e,t)?!1:e.call(()=>ou(e,t),...Ar(r))}function so(e){let{node:t,parent:r,grandparent:n,key:s}=e;return!!((t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression")&&(s==="object"&&r.type==="MemberExpression"||s==="callee"&&(r.type==="CallExpression"||r.type==="NewExpression")||r.type==="TSNonNullExpression"&&n.type==="MemberExpression"&&n.object===r)||e.match(()=>t.type==="CallExpression"||t.type==="MemberExpression",(u,i)=>i==="expression"&&u.type==="ChainExpression")&&(e.match(void 0,void 0,(u,i)=>i==="callee"&&(u.type==="CallExpression"&&!u.optional||u.type==="NewExpression")||i==="object"&&u.type==="MemberExpression"&&!u.optional)||e.match(void 0,void 0,(u,i)=>i==="expression"&&u.type==="TSNonNullExpression",(u,i)=>i==="object"&&u.type==="MemberExpression"))||e.match(()=>t.type==="CallExpression"||t.type==="MemberExpression",(u,i)=>i==="expression"&&u.type==="TSNonNullExpression",(u,i)=>i==="expression"&&u.type==="ChainExpression",(u,i)=>i==="object"&&u.type==="MemberExpression"))}var we=Nn;var uo=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},H=uo;function io(e,t){let r=t-1;r=We(e,r,{backwards:!0}),r=Ye(e,r,{backwards:!0}),r=We(e,r,{backwards:!0});let n=Ye(e,r,{backwards:!0});return r!==n}var pu=io;var ao=()=>!0;function Un(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function oo(e,t){var m;let r=e.node,n=[Un(e,t)],{printer:s,originalText:u,locStart:i,locEnd:a}=t;if((m=s.isBlockComment)==null?void 0:m.call(s,r)){let y=z(u,a(r))?z(u,i(r),{backwards:!0})?C:A:" ";n.push(y)}else n.push(C);let p=Ye(u,We(u,a(r)));return p!==!1&&z(u,p)&&n.push(C),n}function po(e,t,r){var p;let n=e.node,s=Un(e,t),{printer:u,originalText:i,locStart:a}=t,o=(p=u.isBlockComment)==null?void 0:p.call(u,n);if(r!=null&&r.hasLineSuffix&&!(r!=null&&r.isBlock)||z(i,a(n),{backwards:!0})){let m=pu(i,a(n));return{doc:Bn([C,m?C:"",s]),isBlock:o,hasLineSuffix:!0}}return!o||r!=null&&r.hasLineSuffix?{doc:[Bn([" ",s]),Ae],isBlock:o,hasLineSuffix:!0}:{doc:[" ",s],isBlock:o,hasLineSuffix:!1}}function M(e,t,r={}){let{node:n}=e;if(!P(n==null?void 0:n.comments))return"";let{indent:s=!1,marker:u,filter:i=ao}=r,a=[];if(e.each(({node:p})=>{p.leading||p.trailing||p.marker!==u||!i(p)||a.push(Un(e,t))},"comments"),a.length===0)return"";let o=B(C,a);return s?E([C,o]):o}function Gn(e,t){let r=e.node;if(!r)return{};let n=t[Symbol.for("printedComments")];if((r.comments||[]).filter(o=>!n.has(o)).length===0)return{leading:"",trailing:""};let u=[],i=[],a;return e.each(()=>{let o=e.node;if(n!=null&&n.has(o))return;let{leading:p,trailing:m}=o;p?u.push(oo(e,t)):m&&(a=po(e,t,a),i.push(a.doc))},"comments"),{leading:u,trailing:i}}function pe(e,t,r){let{leading:n,trailing:s}=Gn(e,r);return!n&&!s?t:Gt(t,u=>[n,u,s])}var qn=class extends Error{name="UnexpectedNodeError";constructor(t,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`),this.node=t}},Oe=qn;var br="'",cu='"';function co(e,t){let r=t===!0||t===br?br:cu,n=r===br?cu:br,s=0,u=0;for(let i of e)i===r?s++:i===n&&u++;return s>u?n:r}var Pr=co;function Wn(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var ve,Yn=class{constructor(t){Ps(this,ve,void 0);ks(this,ve,new Set(t))}getLeadingWhitespaceCount(t){let r=nt(this,ve),n=0;for(let s=0;s=0&&r.has(t.charAt(s));s--)n++;return n}getLeadingWhitespace(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(0,r)}getTrailingWhitespace(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(t.length-r)}hasLeadingWhitespace(t){return nt(this,ve).has(t.charAt(0))}hasTrailingWhitespace(t){return nt(this,ve).has(w(!1,t,-1))}trimStart(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(r)}trimEnd(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-r)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,r=!1){let n=`[${Wn([...nt(this,ve)].join(""))}]+`,s=new RegExp(r?`(${n})`:n);return t.split(s)}hasWhitespaceCharacter(t){let r=nt(this,ve);return Array.prototype.some.call(t,n=>r.has(n))}hasNonWhitespaceCharacter(t){let r=nt(this,ve);return Array.prototype.some.call(t,n=>!r.has(n))}isWhitespaceOnly(t){let r=nt(this,ve);return Array.prototype.every.call(t,n=>r.has(n))}};ve=new WeakMap;var lu=Yn;var kr={};pr(kr,{endOfLine:()=>Fo,ownLine:()=>Eo,remaining:()=>Co});function lo(e,t){let r=null,n=t;for(;n!==r;)r=n,n=We(e,n),n=bt(e,n),n=Pt(e,n),n=Ye(e,n);return n}var Xe=lo;function mo(e,t){let r=Xe(e,t);return r===!1?"":e.charAt(r)}var $e=mo;function Do(e,t,r){for(let n=t;n20&&(r=r.slice(0,19)+"\u2026"),t+(r?" "+r:"")}function Xn(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=yo(e)}function ne(e,t){t.leading=!0,t.trailing=!1,Xn(e,t)}function _e(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Xn(e,t)}function te(e,t){t.leading=!1,t.trailing=!0,Xn(e,t)}function fo(e){return ae(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/.test(e.value)}var mu=fo;function Eo(e){return[du,Eu,To,Vn,Hn,Du,yu,Oo,Lo,zn,Cu,vo,fu,Fu,Kn].some(t=>t(e))}function Fo(e){return[Ao,Eu,xo,Cu,Vn,Hn,Du,yu,Fu,Io,wo,zn,Mo,Kn,No].some(t=>t(e))}function Co(e){return[du,Vn,Hn,go,ko,fu,zn,Po,bo,Jo,Kn,Ro].some(t=>t(e))}function At(e,t){let r=(e.body||e.properties).find(({type:n})=>n!=="EmptyStatement");r?ne(r,t):_e(e,t)}function $n(e,t){e.type==="BlockStatement"?At(e,t):ne(e,t)}function Ao({comment:e,followingNode:t}){return t&&mu(e)?(ne(t,e),!0):!1}function Vn({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){if((r==null?void 0:r.type)!=="IfStatement"||!n)return!1;if($e(s,O(e))===")")return te(t,e),!0;if(t===r.consequent&&n===r.alternate){if(t.type==="BlockStatement")te(t,e);else{let i=e.type==="SingleLine"||e.loc.start.line===e.loc.end.line,a=e.loc.start.line===t.loc.start.line;i&&a?_e(t,e,zt):_e(r,e)}return!0}return n.type==="BlockStatement"?(At(n,e),!0):n.type==="IfStatement"?($n(n.consequent,e),!0):r.consequent===n?(ne(n,e),!0):!1}function Hn({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){return(r==null?void 0:r.type)!=="WhileStatement"||!n?!1:$e(s,O(e))===")"?(te(t,e),!0):n.type==="BlockStatement"?(At(n,e),!0):r.body===n?(ne(n,e),!0):!1}function Du({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return(r==null?void 0:r.type)!=="TryStatement"&&(r==null?void 0:r.type)!=="CatchClause"||!n?!1:r.type==="CatchClause"&&t?(te(t,e),!0):n.type==="BlockStatement"?(At(n,e),!0):n.type==="TryStatement"?($n(n.finalizer,e),!0):n.type==="CatchClause"?($n(n.body,e),!0):!1}function To({comment:e,enclosingNode:t,followingNode:r}){return J(t)&&(r==null?void 0:r.type)==="Identifier"?(ne(t,e),!0):!1}function xo({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){let u=t&&!yt(s,O(t),U(e));return(!t||!u)&&((r==null?void 0:r.type)==="ConditionalExpression"||(r==null?void 0:r.type)==="TSConditionalType")&&n?(ne(n,e),!0):!1}function go({comment:e,precedingNode:t,enclosingNode:r}){return fe(r)&&r.shorthand&&r.key===t&&r.value.type==="AssignmentPattern"?(te(r.value.left,e),!0):!1}var ho=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function yu({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){if(ho.has(r==null?void 0:r.type)){if(P(r.decorators)&&(n==null?void 0:n.type)!=="Decorator")return te(w(!1,r.decorators,-1),e),!0;if(r.body&&n===r.body)return At(r.body,e),!0;if(n){if(r.superClass&&n===r.superClass&&t&&(t===r.id||t===r.typeParameters))return te(t,e),!0;for(let s of["implements","extends","mixins"])if(r[s]&&n===r[s][0])return t&&(t===r.id||t===r.typeParameters||t===r.superClass)?te(t,e):_e(r,e,s),!0}}return!1}var So=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty"]);function fu({comment:e,precedingNode:t,enclosingNode:r,text:n}){return r&&t&&$e(n,O(e))==="("&&(r.type==="Property"||r.type==="TSDeclareMethod"||r.type==="TSAbstractMethodDefinition")&&t.type==="Identifier"&&r.key===t&&$e(n,O(t))!==":"?(te(t,e),!0):(t==null?void 0:t.type)==="Decorator"&&So.has(r==null?void 0:r.type)?(te(t,e),!0):!1}var Bo=new Set(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function bo({comment:e,precedingNode:t,enclosingNode:r,text:n}){return $e(n,O(e))!=="("?!1:t&&Bo.has(r==null?void 0:r.type)?(te(t,e),!0):!1}function Po({comment:e,enclosingNode:t,text:r}){if((t==null?void 0:t.type)!=="ArrowFunctionExpression")return!1;let n=Xe(r,O(e));return n!==!1&&r.slice(n,n+2)==="=>"?(_e(t,e),!0):!1}function ko({comment:e,enclosingNode:t,text:r}){return $e(r,O(e))!==")"?!1:t&&(Au(t)&&Y(t).length===0||ut(t)&&he(t).length===0)?(_e(t,e),!0):((t==null?void 0:t.type)==="MethodDefinition"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&Y(t.value).length===0?(_e(t.value,e),!0):!1}function Eu({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){if((t==null?void 0:t.type)==="FunctionTypeParam"&&(r==null?void 0:r.type)==="FunctionTypeAnnotation"&&(n==null?void 0:n.type)!=="FunctionTypeParam")return te(t,e),!0;if(((t==null?void 0:t.type)==="Identifier"||(t==null?void 0:t.type)==="AssignmentPattern"||(t==null?void 0:t.type)==="ObjectPattern"||(t==null?void 0:t.type)==="ArrayPattern"||(t==null?void 0:t.type)==="RestElement")&&r&&Au(r)&&$e(s,O(e))===")")return te(t,e),!0;if((r==null?void 0:r.type)==="FunctionDeclaration"&&(n==null?void 0:n.type)==="BlockStatement"){let u=(()=>{let i=Y(r);if(i.length>0)return Xe(s,O(w(!1,i,-1)));let a=Xe(s,O(r.id));return a!==!1&&Xe(s,a+1)})();if(U(e)>u)return At(n,e),!0}return!1}function Fu({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="LabeledStatement"?(ne(t,e),!0):!1}function Kn({comment:e,enclosingNode:t}){return((t==null?void 0:t.type)==="ContinueStatement"||(t==null?void 0:t.type)==="BreakStatement")&&!t.label?(te(t,e),!0):!1}function Io({comment:e,precedingNode:t,enclosingNode:r}){return k(r)&&t&&r.callee===t&&r.arguments.length>0?(ne(r.arguments[0],e),!0):!1}function Lo({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return(r==null?void 0:r.type)==="UnionTypeAnnotation"||(r==null?void 0:r.type)==="TSUnionType"?(Ht(e)&&(n.prettierIgnore=!0,e.unignore=!0),t?(te(t,e),!0):!1):(((n==null?void 0:n.type)==="UnionTypeAnnotation"||(n==null?void 0:n.type)==="TSUnionType")&&Ht(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function wo({comment:e,enclosingNode:t}){return fe(t)?(ne(t,e),!0):!1}function zn({comment:e,enclosingNode:t,followingNode:r,ast:n,isLastComment:s}){var u;return((u=n==null?void 0:n.body)==null?void 0:u.length)===0?(s?_e(n,e):ne(n,e),!0):(t==null?void 0:t.type)==="Program"&&t.body.length===0&&!P(t.directives)?(s?_e(t,e):ne(t,e),!0):(r==null?void 0:r.type)==="Program"&&r.body.length===0&&(t==null?void 0:t.type)==="ModuleExpression"?(_e(r,e),!0):!1}function Oo({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="ForInStatement"||(t==null?void 0:t.type)==="ForOfStatement"?(ne(t,e),!0):!1}function Cu({comment:e,precedingNode:t,enclosingNode:r,text:n}){if((r==null?void 0:r.type)==="ImportSpecifier"||(r==null?void 0:r.type)==="ExportSpecifier")return ne(r,e),!0;let s=(t==null?void 0:t.type)==="ImportSpecifier"&&(r==null?void 0:r.type)==="ImportDeclaration",u=(t==null?void 0:t.type)==="ExportSpecifier"&&(r==null?void 0:r.type)==="ExportNamedDeclaration";return(s||u)&&z(n,O(e))?(te(t,e),!0):!1}function vo({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="AssignmentPattern"?(ne(t,e),!0):!1}var _o=new Set(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),jo=new Set(["ObjectExpression","RecordExpression","ArrayExpression","TupleExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function Mo({comment:e,enclosingNode:t,followingNode:r}){return _o.has(t==null?void 0:t.type)&&r&&(jo.has(r.type)||ae(e))?(ne(r,e),!0):!1}function Ro({comment:e,enclosingNode:t,followingNode:r,text:n}){return!r&&((t==null?void 0:t.type)==="TSMethodSignature"||(t==null?void 0:t.type)==="TSDeclareFunction"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&$e(n,O(e))===";"?(te(t,e),!0):!1}function du({comment:e,enclosingNode:t,followingNode:r}){if(Ht(e)&&(t==null?void 0:t.type)==="TSMappedType"&&(r==null?void 0:r.type)==="TSTypeParameter"&&r.constraint)return t.prettierIgnore=!0,e.unignore=!0,!0}function Jo({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return(r==null?void 0:r.type)!=="TSMappedType"?!1:(n==null?void 0:n.type)==="TSTypeParameter"&&n.name?(ne(n.name,e),!0):(t==null?void 0:t.type)==="TSTypeParameter"&&t.constraint?(te(t.constraint,e),!0):!1}function No({comment:e,enclosingNode:t,followingNode:r}){return!t||t.type!=="SwitchCase"||t.test||!r||r!==t.consequent[0]?!1:(r.type==="BlockStatement"&&$t(e)?At(r,e):_e(t,e),!0)}var Au=j(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod"]);function Uo(e){let t=`*${e.value}*`.split(` -`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var Tu=Uo;function xu(e,t){let r=e.node;if($t(r))return t.originalText.slice(U(r),O(r)).trimEnd();if(ae(r))return Tu(r)?Go(r):["/*",Te(r.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(r))}function Go(e){let t=e.value.split(` -`);return["/*",B(C,t.map((r,n)=>n===0?r.trimEnd():" "+(ne===""||e===A||e===C||e===F;function $o(e,t,r){var v,_,R;let{node:n}=e;if(n.type==="JSXElement"&&ap(n))return[r("openingElement"),r("closingElement")];let s=n.type==="JSXElement"?r("openingElement"):r("openingFragment"),u=n.type==="JSXElement"?r("closingElement"):r("closingFragment");if(n.children.length===1&&n.children[0].type==="JSXExpressionContainer"&&(n.children[0].expression.type==="TemplateLiteral"||n.children[0].expression.type==="TaggedTemplateExpression"))return[s,...e.map(r,"children"),u];n.children=n.children.map(T=>op(T)?{type:"JSXText",value:" ",raw:" "}:T);let i=n.children.some(V),a=n.children.filter(T=>T.type==="JSXExpressionContainer").length>1,o=n.type==="JSXElement"&&n.openingElement.attributes.length>1,p=K(s)||i||o||a,m=e.parent.rootMarker==="mdx",y=t.singleQuote?"{' '}":'{" "}',c=m?" ":b([y,F]," "),f=((_=(v=n.openingElement)==null?void 0:v.name)==null?void 0:_.name)==="fbt",l=Vo(e,t,r,c,f),h=n.children.some(T=>Zt(T));for(let T=l.length-2;T>=0;T--){let N=l[T]===""&&l[T+1]==="",Se=l[T]===C&&l[T+1]===""&&l[T+2]===C,$=(l[T]===F||l[T]===C)&&l[T+1]===""&&l[T+2]===c,Be=l[T]===c&&l[T+1]===""&&(l[T+2]===F||l[T+2]===C),Ee=l[T]===c&&l[T+1]===""&&l[T+2]===c,An=l[T]===F&&l[T+1]===""&&l[T+2]===C||l[T]===C&&l[T+1]===""&&l[T+2]===F;Se&&h||N||$||Ee||An?l.splice(T,2):Be&&l.splice(T+1,2)}for(;l.length>0&&Zn(w(!1,l,-1));)l.pop();for(;l.length>1&&Zn(l[0])&&Zn(l[1]);)l.shift(),l.shift();let g=[];for(let[T,N]of l.entries()){if(N===c){if(T===1&&l[T-1]===""){if(l.length===2){g.push(y);continue}g.push([y,C]);continue}else if(T===l.length-1){g.push(y);continue}else if(l[T-1]===""&&l[T-2]===C){g.push(y);continue}}g.push(N),K(N)&&(p=!0)}let S=h?St(g):D(g,{shouldBreak:!0});if(((R=t.cursorNode)==null?void 0:R.type)==="JSXText"&&n.children.includes(t.cursorNode)&&(S=[Pn,S,Pn]),m)return S;let I=D([s,E([C,S]),C,u]);return p?I:qe([D([s,...l,u]),I])}function Vo(e,t,r,n,s){let u=[];return e.each(({node:i,next:a})=>{if(i.type==="JSXText"){let o=oe(i);if(Zt(i)){let p=Ir.split(o,!0);p[0]===""&&(u.push(""),p.shift(),/\n/.test(p[0])?u.push(hu(s,p[1],i,a)):u.push(n),p.shift());let m;if(w(!1,p,-1)===""&&(p.pop(),m=p.pop()),p.length===0)return;for(let[y,c]of p.entries())y%2===1?u.push(A):u.push(c);m!==void 0?/\n/.test(m)?u.push(hu(s,w(!1,u,-1),i,a)):u.push(n):u.push(gu(s,w(!1,u,-1),i,a))}else/\n/.test(o)?o.match(/\n/g).length>1&&u.push("",C):u.push("",n)}else{let o=r();if(u.push(o),a&&Zt(a)){let m=Ir.trim(oe(a)),[y]=Ir.split(m);u.push(gu(s,y,i,a))}else u.push(C)}},"children"),u}function gu(e,t,r,n){return e?"":r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?t.length===1?F:C:F}function hu(e,t,r,n){return e?C:t.length===1?r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?C:F:C}var Ho=new Set(["ArrayExpression","TupleExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot"]);function Ko(e,t,r){let{parent:n}=e;if(Ho.has(n.type))return t;let s=e.match(void 0,i=>i.type==="ArrowFunctionExpression",k,i=>i.type==="JSXExpressionContainer"),u=we(e,r);return D([u?"":b("("),E([F,t]),F,u?"":b(")")],{shouldBreak:s})}function zo(e,t,r){let{node:n}=e,s=[];if(s.push(r("name")),n.value){let u;if(ee(n.value)){let i=oe(n.value),a=H(!1,H(!1,i.slice(1,-1),"'","'"),""",'"'),o=Pr(a,t.jsxSingleQuote);a=o==='"'?H(!1,a,'"',"""):H(!1,a,"'","'"),u=e.call(()=>pe(e,Te(o+a+o),t),"value")}else u=r("value");s.push("=",u)}return s}function Qo(e,t,r){let{node:n}=e,s=(u,i)=>u.type==="JSXEmptyExpression"||!d(u)&&(G(u)||Z(u)||u.type==="ArrowFunctionExpression"||u.type==="AwaitExpression"&&(s(u.argument,u)||u.argument.type==="JSXElement")||k(u)||u.type==="ChainExpression"&&k(u.expression)||u.type==="FunctionExpression"||u.type==="TemplateLiteral"||u.type==="TaggedTemplateExpression"||u.type==="DoExpression"||V(i)&&(u.type==="ConditionalExpression"||ce(u)));return s(n.expression,e.parent)?D(["{",r("expression"),de,"}"]):D(["{",E([F,r("expression")]),F,de,"}"])}function Zo(e,t,r){var a,o;let{node:n}=e,s=d(n.name)||d(n.typeParameters);if(n.selfClosing&&n.attributes.length===0&&!s)return["<",r("name"),r("typeParameters")," />"];if(((a=n.attributes)==null?void 0:a.length)===1&&n.attributes[0].value&&ee(n.attributes[0].value)&&!n.attributes[0].value.value.includes(` -`)&&!s&&!d(n.attributes[0]))return D(["<",r("name"),r("typeParameters")," ",...e.map(r,"attributes"),n.selfClosing?" />":">"]);let u=(o=n.attributes)==null?void 0:o.some(p=>p.value&&ee(p.value)&&p.value.value.includes(` -`)),i=t.singleAttributePerLine&&n.attributes.length>1?C:A;return D(["<",r("name"),r("typeParameters"),E(e.map(()=>[i,r()],"attributes")),...ep(n,t,s)],{shouldBreak:u})}function ep(e,t,r){return e.selfClosing?[A,"/>"]:tp(e,t,r)?[">"]:[F,">"]}function tp(e,t,r){let n=e.attributes.length>0&&d(w(!1,e.attributes,-1),x.Trailing);return e.attributes.length===0&&!r||(t.bracketSameLine||t.jsxBracketSameLine)&&(!r||e.attributes.length>0)&&!n}function rp(e,t,r){let{node:n}=e,s=[];s.push(""),s}function np(e,t){let{node:r}=e,n=d(r),s=d(r,x.Line),u=r.type==="JSXOpeningFragment";return[u?"<":""]}function sp(e,t,r){let n=pe(e,$o(e,t,r),t);return Ko(e,n,t)}function up(e,t){let{node:r}=e,n=d(r,x.Line);return[M(e,t,{indent:n}),n?C:""]}function ip(e,t,r){let{node:n}=e;return["{",e.call(({node:s})=>{let u=["...",r()];return!d(s)||!Qn(e)?u:[E([F,pe(e,u,t)]),F]},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function Su(e,t,r){let{node:n}=e;if(n.type.startsWith("JSX"))switch(n.type){case"JSXAttribute":return zo(e,t,r);case"JSXIdentifier":return n.name;case"JSXNamespacedName":return B(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return B(".",[r("object"),r("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return ip(e,t,r);case"JSXExpressionContainer":return Qo(e,t,r);case"JSXFragment":case"JSXElement":return sp(e,t,r);case"JSXOpeningElement":return Zo(e,t,r);case"JSXClosingElement":return rp(e,t,r);case"JSXOpeningFragment":case"JSXClosingFragment":return np(e,t);case"JSXEmptyExpression":return up(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Oe(n,"JSX")}}function ap(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type==="JSXText"&&!Zt(t)}function Zt(e){return e.type==="JSXText"&&(Ir.hasNonWhitespaceCharacter(oe(e))||!/\n/.test(oe(e)))}function op(e){return e.type==="JSXExpressionContainer"&&ee(e.expression)&&e.expression.value===" "&&!d(e.expression)}function Bu(e){let{node:t,parent:r}=e;if(!V(t)||!V(r))return!1;let{index:n,siblings:s}=e,u;for(let i=n;i>0;i--){let a=s[i-1];if(!(a.type==="JSXText"&&!Zt(a))){u=a;break}}return(u==null?void 0:u.type)==="JSXExpressionContainer"&&u.expression.type==="JSXEmptyExpression"&&dt(u.expression)}function pp(e){return dt(e.node)||Bu(e)}var Lr=pp;var cp=0;function wr(e,t,r){var _;let{node:n,parent:s,grandparent:u,key:i}=e,a=i!=="body"&&(s.type==="IfStatement"||s.type==="WhileStatement"||s.type==="SwitchStatement"||s.type==="DoWhileStatement"),o=n.operator==="|>"&&((_=e.root.extra)==null?void 0:_.__isUsingHackPipeline),p=es(e,r,t,!1,a);if(a)return p;if(o)return D(p);if(k(s)&&s.callee===n||s.type==="UnaryExpression"||J(s)&&!s.computed)return D([E([F,...p]),F]);let m=s.type==="ReturnStatement"||s.type==="ThrowStatement"||s.type==="JSXExpressionContainer"&&u.type==="JSXAttribute"||n.operator!=="|"&&s.type==="JsExpressionRoot"||n.type!=="NGPipeExpression"&&(s.type==="NGRoot"&&t.parser==="__ng_binding"||s.type==="NGMicrosyntaxExpression"&&u.type==="NGMicrosyntax"&&u.body.length===1)||n===s.body&&s.type==="ArrowFunctionExpression"||n!==s.body&&s.type==="ForStatement"||s.type==="ConditionalExpression"&&u.type!=="ReturnStatement"&&u.type!=="ThrowStatement"&&!k(u)||s.type==="TemplateLiteral",y=s.type==="AssignmentExpression"||s.type==="VariableDeclarator"||s.type==="ClassProperty"||s.type==="PropertyDefinition"||s.type==="TSAbstractPropertyDefinition"||s.type==="ClassPrivateProperty"||fe(s),c=ce(n.left)&&Vt(n.operator,n.left.operator);if(m||Ot(n)&&!c||!Ot(n)&&y)return D(p);if(p.length===0)return"";let f=V(n.right),l=p.findIndex(R=>typeof R!="string"&&!Array.isArray(R)&&R.type===ue),h=p.slice(0,l===-1?1:l+1),g=p.slice(h.length,f?-1:void 0),S=Symbol("logicalChain-"+ ++cp),I=D([...h,E(g)],{id:S});if(!f)return I;let v=w(!1,p,-1);return D([I,lt(v,{groupId:S})])}function es(e,t,r,n,s){var h;let{node:u}=e;if(!ce(u))return[D(t())];let i=[];Vt(u.operator,u.left.operator)?i=e.call(g=>es(g,t,r,!0,s),"left"):i.push(D(t("left")));let a=Ot(u),o=(u.operator==="|>"||u.type==="NGPipeExpression"||lp(e,r))&&!Ie(r.originalText,u.right),p=u.type==="NGPipeExpression"?"|":u.operator,m=u.type==="NGPipeExpression"&&u.arguments.length>0?D(E([F,": ",B([A,": "],e.map(()=>ye(2,D(t())),"arguments"))])):"",y;if(a)y=[p," ",t("right"),m];else{let S=p==="|>"&&((h=e.root.extra)==null?void 0:h.__isUsingHackPipeline)?e.call(I=>es(I,t,r,!0,s),"right"):t("right");y=[o?A:"",p,o?" ":A,S,m]}let{parent:c}=e,f=d(u.left,x.Trailing|x.Line),l=f||!(s&&u.type==="LogicalExpression")&&c.type!==u.type&&u.left.type!==u.type&&u.right.type!==u.type;if(i.push(o?"":" ",l?D(y,{shouldBreak:f}):y),n&&d(u)){let g=Bt(pe(e,i,r));return Array.isArray(g)||g.type===De?Dr(g):[g]}return i}function Ot(e){return e.type!=="LogicalExpression"?!1:!!(Z(e.right)&&e.right.properties.length>0||G(e.right)&&e.right.elements.length>0||V(e.right))}var bu=e=>e.type==="BinaryExpression"&&e.operator==="|";function lp(e,t){return(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression")&&bu(e.node)&&!e.hasAncestor(r=>!bu(r)&&r.type!=="JsExpressionRoot")}var it=class extends Error{name="ArgExpansionBailout"};function mp(e,t,r,n){let{node:s}=e;return d(s,x.Dangling)?D([r,M(e,t,{indent:!0}),F,n]):[r,n]}function vt(e,t,r){let{node:n}=e,s=[],u=n.type==="TupleExpression"?"#[":"[",i="]",a=n.type==="TupleTypeAnnotation"&&n.types?"types":n.type==="TSTupleType"||n.type==="TupleTypeAnnotation"?"elementTypes":"elements",o=n[a];if(o.length===0)s.push(mp(e,t,u,i));else{let p=w(!1,o,-1),m=(p==null?void 0:p.type)!=="RestElement",y=p===null,c=Symbol("array"),f=!t.__inJestEach&&o.length>1&&o.every((g,S,I)=>{let v=g==null?void 0:g.type;if(!G(g)&&!Z(g))return!1;let _=I[S+1];if(_&&v!==_.type)return!1;let R=G(g)?"elements":"properties";return g[R]&&g[R].length>1}),l=ts(n,t),h=m?y?",":le(t)?l?b(",","",{groupId:c}):b(","):"":"";s.push(D([u,E([F,l?yp(e,t,r,h):[Dp(e,t,a,r),h],M(e,t)]),F,i],{shouldBreak:f,id:c}))}return s.push(X(e),q(e,r)),s}function ts(e,t){return G(e)&&e.elements.length>1&&e.elements.every(r=>r&&(ge(r)||Tr(r)&&!d(r.argument))&&!d(r,x.Trailing|x.Line,n=>!z(t.originalText,U(n),{backwards:!0})))}function Pu({node:e},{originalText:t}){let r=s=>bt(t,Pt(t,s)),n=s=>t[s]===","?s:n(r(s+1));return kt(t,n(O(e)))}function Dp(e,t,r,n){let s=[];return e.each(({node:u,isLast:i})=>{s.push(u?D(n()):""),i||s.push([",",A,u&&Pu(e,t)?F:""])},r),s}function yp(e,t,r,n){let s=[];return e.each(({isLast:u,next:i})=>{s.push([r(),u?n:","]),u||s.push(Pu(e,t)?[C,C]:d(i,x.Leading|x.Line)?C:A)},"elements"),St(s)}function fp(e,t,r){let{node:n}=e,s=he(n);if(s.length===0)return["(",M(e,t),")"];if(Cp(s))return["(",r(["arguments",0]),", ",r(["arguments",1]),")"];let u=!1,i=s.length-1,a=[];Br(e,({node:c},f)=>{let l=r();f===i||(me(c,t)?(u=!0,l=[l,",",C,C]):l=[l,",",A]),a.push(l)});let p=!(n.type==="ImportExpression"||n.callee.type==="Import")&&le(t,"all")?",":"";function m(){return D(["(",E([A,...a]),p,A,")"],{shouldBreak:!0})}if(u||e.parent.type!=="Decorator"&&ru(s))return m();if(Fp(s)){let c=a.slice(1);if(c.some(K))return m();let f;try{f=r(Jn(n,0),{expandFirstArg:!0})}catch(l){if(l instanceof it)return m();throw l}return K(f)?[Ae,qe([["(",D(f,{shouldBreak:!0}),", ",...c,")"],m()])]:qe([["(",f,", ",...c,")"],["(",D(f,{shouldBreak:!0}),", ",...c,")"],m()])}if(Ep(s,a,t)){let c=a.slice(0,-1);if(c.some(K))return m();let f;try{f=r(Jn(n,-1),{expandLastArg:!0})}catch(l){if(l instanceof it)return m();throw l}return K(f)?[Ae,qe([["(",...c,D(f,{shouldBreak:!0}),")"],m()])]:qe([["(",...c,f,")"],["(",...c,D(f,{shouldBreak:!0}),")"],m()])}let y=["(",E([F,...a]),b(p),F,")"];return Sr(e)?y:D(y,{shouldBreak:a.some(K)||u})}function er(e,t=!1){return Z(e)&&(e.properties.length>0||d(e))||G(e)&&(e.elements.length>0||d(e))||e.type==="TSTypeAssertion"&&er(e.expression)||Le(e)&&er(e.expression)||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!=="TSTypeReference"||dp(e.body))&&(e.body.type==="BlockStatement"||e.body.type==="ArrowFunctionExpression"&&er(e.body,!0)||Z(e.body)||G(e.body)||!t&&(k(e.body)||e.body.type==="ConditionalExpression")||V(e.body))||e.type==="DoExpression"||e.type==="ModuleExpression"}function Ep(e,t,r){var u,i;let n=w(!1,e,-1);if(e.length===1){let a=w(!1,t,-1);if((u=a.label)!=null&&u.embed&&((i=a.label)==null?void 0:i.hug)!==!1)return!0}let s=w(!1,e,-2);return!d(n,x.Leading)&&!d(n,x.Trailing)&&er(n)&&(!s||s.type!==n.type)&&(e.length!==2||s.type!=="ArrowFunctionExpression"||!G(n))&&!(e.length>1&&ts(n,r))}function Fp(e){if(e.length!==2)return!1;let[t,r]=e;return t.type==="ModuleExpression"&&Ap(r)?!0:!d(t)&&(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement")&&r.type!=="FunctionExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="ConditionalExpression"&&ku(r)&&!er(r)}function ku(e){var t;if(e.type==="ParenthesizedExpression")return ku(e.expression);if(Le(e)||e.type==="TypeCastExpression"){let{typeAnnotation:r}=e;return r.type==="TypeAnnotation"&&(r=r.typeAnnotation),r.type==="TSArrayType"&&(r=r.elementType,r.type==="TSArrayType"&&(r=r.elementType)),(r.type==="GenericTypeAnnotation"||r.type==="TSTypeReference")&&((t=r.typeParameters)==null?void 0:t.params.length)===1&&(r=r.typeParameters.params[0]),wt(r)&&xe(e.expression,1)}return ut(e)&&he(e).length>1?!1:ce(e)?xe(e.left,1)&&xe(e.right,1):vn(e)||xe(e)}function Cp(e){return e.length===2&&e[0].type==="ArrowFunctionExpression"&&Y(e[0]).length===0&&e[0].body.type==="BlockStatement"&&e[1].type==="ArrayExpression"&&!e.some(t=>d(t))}function dp(e){return e.type==="BlockStatement"&&(e.body.some(t=>t.type!=="EmptyStatement")||d(e,x.Dangling))}function Ap(e){return e.type==="ObjectExpression"&&e.properties.length===1&&fe(e.properties[0])&&e.properties[0].key.type==="Identifier"&&e.properties[0].key.name==="type"&&ee(e.properties[0].value)&&e.properties[0].value.value==="module"}var tr=fp;function Iu(e,t,r){var p;let n=r("object"),s=rs(e,t,r),{node:u,parent:i}=e,a=e.findAncestor(m=>!(J(m)||m.type==="TSNonNullExpression")),o=a&&(a.type==="NewExpression"||a.type==="BindExpression"||a.type==="AssignmentExpression"&&a.left.type!=="Identifier")||u.computed||u.object.type==="Identifier"&&u.property.type==="Identifier"&&!J(i)||(i.type==="AssignmentExpression"||i.type==="VariableDeclarator")&&(k(u.object)&&u.object.arguments.length>0||u.object.type==="TSNonNullExpression"&&k(u.object.expression)&&u.object.expression.arguments.length>0||((p=n.label)==null?void 0:p.memberChain));return et(n.label,[n,o?s:D(E([F,s]))])}function rs(e,t,r){let n=r("property"),{node:s}=e,u=X(e);return s.computed?!s.property||ge(s.property)?[u,"[",n,"]"]:D([u,"[",E([F,n]),F,"]"]):[u,".",n]}function Tp(e,t,r){let{parent:n}=e,s=!n||n.type==="ExpressionStatement",u=[];function i(L){let{originalText:W}=t,se=Xe(W,O(L));return W.charAt(se)===")"?se!==!1&&kt(W,se+1):me(L,t)}function a(L){let{node:W}=L;k(W)&&(Dt(W.callee)||k(W.callee))?(u.unshift({node:W,printed:[pe(L,[X(L),Ve(L,t,r),tr(L,t,r)],t),i(W)?C:""]}),L.call(se=>a(se),"callee")):Dt(W)?(u.unshift({node:W,needsParens:we(L,t),printed:pe(L,J(W)?rs(L,t,r):Or(L,t,r),t)}),L.call(se=>a(se),"object")):W.type==="TSNonNullExpression"?(u.unshift({node:W,printed:pe(L,"!",t)}),L.call(se=>a(se),"expression")):u.unshift({node:W,printed:r()})}let{node:o}=e;u.unshift({node:o,printed:[X(e),Ve(e,t,r),tr(e,t,r)]}),o.callee&&e.call(L=>a(L),"callee");let p=[],m=[u[0]],y=1;for(;y0&&p.push(m);function f(L){return/^[A-Z]|^[$_]+$/.test(L)}function l(L){return L.length<=t.tabWidth}function h(L){var xn;let W=(xn=L[1][0])==null?void 0:xn.node.computed;if(L[0].length===1){let or=L[0][0].node;return or.type==="ThisExpression"||or.type==="Identifier"&&(f(or.name)||s&&l(or.name)||W)}let se=w(!1,L[0],-1).node;return J(se)&&se.property.type==="Identifier"&&(f(se.property.name)||W)}let g=p.length>=2&&!d(p[1][0].node)&&h(p);function S(L){let W=L.map(se=>se.printed);return L.length>0&&w(!1,L,-1).needsParens?["(",...W,")"]:W}function I(L){return L.length===0?"":E(D([C,B(C,L.map(S))]))}let v=p.map(S),_=v,R=g?3:2,T=p.flat(),N=T.slice(1,-1).some(L=>d(L.node,x.Leading))||T.slice(0,-1).some(L=>d(L.node,x.Trailing))||p[R]&&d(p[R][0].node,x.Leading);if(p.length<=R&&!N)return Sr(e)?_:D(_);let Se=w(!1,p[g?1:0],-1).node,$=!k(Se)&&i(Se),Be=[S(p[0]),g?p.slice(1,2).map(S):"",$?C:"",I(p.slice(g?2:1))],Ee=u.map(({node:L})=>L).filter(k);function An(){let L=w(!1,w(!1,p,-1),-1).node,W=w(!1,v,-1);return k(L)&&K(W)&&Ee.slice(0,-1).some(se=>se.arguments.some(It))}let Tn;return N||Ee.length>2&&Ee.some(L=>!L.arguments.every(W=>xe(W)))||v.slice(0,-1).some(K)||An()?Tn=D(Be):Tn=[K(_)||$?Ae:"",qe([_,Be])],et({memberChain:!0},Tn)}var Lu=Tp;function vr(e,t,r){var y;let{node:n,parent:s}=e,u=n.type==="NewExpression",i=n.type==="ImportExpression",a=X(e),o=he(n),p=o.length===1&&gr(o[0],t.originalText);if(p||o.length>0&&!u&&!i&&(xp(n,s)||Ct(n,s))){let c=[];if(Br(e,()=>{c.push(r())}),!(p&&((y=c[0].label)!=null&&y.embed)))return[u?"new ":"",r("callee"),a,Ve(e,t,r),"(",B(", ",c),")"]}if(!i&&!u&&Dt(n.callee)&&!e.call(c=>we(c,t),"callee"))return Lu(e,t,r);let m=[u?"new ":"",i?"import":r("callee"),a,Ve(e,t,r),tr(e,t,r)];return i||k(n.callee)?D(m):m}function xp(e,t){if(e.callee.type!=="Identifier")return!1;if(e.callee.name==="require")return!0;if(e.callee.name==="define"){let r=he(e);return t.type==="ExpressionStatement"&&(r.length===1||r.length===2&&r[0].type==="ArrayExpression"||r.length===3&&ee(r[0])&&r[1].type==="ArrayExpression")}return!1}function gp(e,t,r){let n=t==='"'?"'":'"',u=H(!1,e,/\\(.)|(["'])/gs,(i,a,o)=>a===n?a:o===t?"\\"+o:o||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(a)?a:"\\"+a));return t+u+t}var wu=gp;function hp(e,t){let r=e.slice(1,-1),n=t.parser==="json"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":Pr(r,t.singleQuote);return wu(r,n,!(t.parser==="css"||t.parser==="less"||t.parser==="scss"||t.__embeddedInHtml))}var Tt=hp;function Sp(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}var He=Sp;function _u(e,t){let{node:r}=e;switch(r.type){case"RegExpLiteral":return Ou(r);case"BigIntLiteral":return _r(r.extra.raw);case"NumericLiteral":return He(r.extra.raw);case"StringLiteral":return Te(Tt(r.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(r.value);case"DecimalLiteral":return He(r.value)+"m";case"DirectiveLiteral":return vu(r.extra.raw,t);case"Literal":{if(r.regex)return Ou(r.regex);if(r.bigint)return _r(r.raw);if(r.decimal)return He(r.decimal)+"m";let{value:n}=r;return typeof n=="number"?He(r.raw):typeof n=="string"?Bp(e)?vu(r.raw,t):Te(Tt(r.raw,t)):String(n)}}}function Bp(e){if(e.key!=="expression")return;let{parent:t}=e;return t.type==="ExpressionStatement"&&t.directive}function _r(e){return e.toLowerCase()}function Ou({pattern:e,flags:t}){return t=[...t].sort().join(""),`/${e}/${t}`}function vu(e,t){let r=e.slice(1,-1);if(r.includes('"')||r.includes("'"))return e;let n=t.singleQuote?"'":'"';return n+r+n}var jr=j(["Literal","BigIntLiteral","BooleanLiteral","DecimalLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]);function ft(e,t,r,n,s,u){let i=bp(e,t,r,n,u),a=u?r(u,{assignmentLayout:i}):"";switch(i){case"break-after-operator":return D([D(n),s,D(E([A,a]))]);case"never-break-after-operator":return D([D(n),s," ",a]);case"fluid":{let o=Symbol("assignment");return D([D(n),s,D(E(A),{id:o}),de,lt(a,{groupId:o})])}case"break-lhs":return D([n,s," ",D(a)]);case"chain":return[D(n),s,A,a];case"chain-tail":return[D(n),s,E([A,a])];case"chain-tail-arrow-chain":return[D(n),s,a];case"only-left":return n}}function Mu(e,t,r){let{node:n}=e;return ft(e,t,r,r("left"),[" ",n.operator],"right")}function Ru(e,t,r){return ft(e,t,r,r("id")," =","init")}function bp(e,t,r,n,s){let{node:u}=e,i=u[s];if(!i)return"only-left";let a=!Mr(i);if(e.match(Mr,Ju,y=>!a||y.type!=="ExpressionStatement"&&y.type!=="VariableDeclaration"))return a?i.type==="ArrowFunctionExpression"&&i.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!a&&Mr(i.right)||Ie(t.originalText,i))return"break-after-operator";if(i.type==="CallExpression"&&i.callee.name==="require"||t.parser==="json5"||t.parser==="json")return"never-break-after-operator";if(kp(u)||Ip(u)||Op(u)||ns(u)&&Js(n))return"break-lhs";let m=Mp(u,n,t);return e.call(()=>Pp(e,t,r,m),s)?"break-after-operator":m||i.type==="TemplateLiteral"||i.type==="TaggedTemplateExpression"||i.type==="BooleanLiteral"||ge(i)||i.type==="ClassExpression"?"never-break-after-operator":"fluid"}function Pp(e,t,r,n){let s=e.node;if(ce(s)&&!Ot(s))return!0;switch(s.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"ConditionalExpression":{let{test:a}=s;return ce(a)&&!Ot(a)}case"ClassExpression":return P(s.decorators)}if(n)return!1;let u=s,i=[];for(;;)if(u.type==="UnaryExpression")u=u.argument,i.push("argument");else if(u.type==="TSNonNullExpression")u=u.expression,i.push("expression");else break;return!!(ee(u)||e.call(()=>Nu(e,t,r),...i))}function kp(e){if(Ju(e)){let t=e.left||e.id;return t.type==="ObjectPattern"&&t.properties.length>2&&t.properties.some(r=>{var n;return fe(r)&&(!r.shorthand||((n=r.value)==null?void 0:n.type)==="AssignmentPattern")})}return!1}function Mr(e){return e.type==="AssignmentExpression"}function Ju(e){return Mr(e)||e.type==="VariableDeclarator"}function Ip(e){let t=wp(e);if(P(t)){let r=e.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(t.length>1&&t.some(n=>n[r]||n.default))return!0}return!1}var Lp=j(["TSTypeAliasDeclaration","TypeAlias"]);function wp(e){var t;if(Lp(e))return(t=e.typeParameters)==null?void 0:t.params}function Op(e){if(e.type!=="VariableDeclarator")return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let r=ju(t.typeAnnotation);return P(r)&&r.length>1&&r.some(n=>P(ju(n))||n.type==="TSConditionalType")}function ns(e){var t;return e.type==="VariableDeclarator"&&((t=e.init)==null?void 0:t.type)==="ArrowFunctionExpression"}var vp=j(["TSTypeReference","GenericTypeAnnotation"]);function ju(e){var t;if(vp(e))return(t=e.typeParameters)==null?void 0:t.params}function Nu(e,t,r,n=!1){var i;let{node:s}=e,u=()=>Nu(e,t,r,!0);if(s.type==="ChainExpression"||s.type==="TSNonNullExpression")return e.call(u,"expression");if(k(s)){if((i=vr(e,t,r).label)!=null&&i.memberChain)return!1;let o=he(s);return!(o.length===0||o.length===1&&jp(o[0],t))||Rp(s,r)?!1:e.call(u,"callee")}return J(s)?e.call(u,"object"):n&&(s.type==="Identifier"||s.type==="ThisExpression")}var _p=.25;function jp(e,{printWidth:t}){if(d(e))return!1;let r=t*_p;if(e.type==="ThisExpression"||e.type==="Identifier"&&e.name.length<=r||Tr(e)&&!d(e.argument))return!0;let n=e.type==="Literal"&&"regex"in e&&e.regex.pattern||e.type==="RegExpLiteral"&&e.pattern;return n?n.length<=r:ee(e)?oe(e).length<=r:e.type==="TemplateLiteral"?e.expressions.length===0&&e.quasis[0].value.raw.length<=r&&!e.quasis[0].value.raw.includes(` -`):jr(e)}function Mp(e,t,r){if(!fe(e))return!1;t=Bt(t);let n=3;return typeof t=="string"&&tt(t)1)return!0;if(r.length===1){let s=r[0];if(s.type==="TSUnionType"||s.type==="UnionTypeAnnotation"||s.type==="TSIntersectionType"||s.type==="IntersectionTypeAnnotation"||s.type==="TSTypeLiteral"||s.type==="ObjectTypeAnnotation")return!0}let n=e.typeParameters?"typeParameters":"typeArguments";if(K(t(n)))return!0}return!1}function Jp(e){var t;return(t=e.typeParameters??e.typeArguments)==null?void 0:t.params}function at(e,t,r,n,s){let u=e.node,i=Y(u),a=s?Ve(e,r,t):"";if(i.length===0)return[a,"(",M(e,r,{filter:l=>$e(r.originalText,O(l))===")"}),")"];let{parent:o}=e,p=Ct(o),m=ss(u),y=[];if(iu(e,(l,h)=>{let g=h===i.length-1;g&&u.rest&&y.push("..."),y.push(t()),!g&&(y.push(","),p||m?y.push(" "):me(i[h],r)?y.push(C,C):y.push(A))}),n&&!Up(e)){if(K(a)||K(y))throw new it;return D([Ut(a),"(",Ut(y),")"])}let c=i.every(l=>!l.decorators);return m&&c?[a,"(",...y,")"]:p?[a,"(",...y,")"]:(xr(o)||eu(o)||o.type==="TypeAlias"||o.type==="UnionTypeAnnotation"||o.type==="TSUnionType"||o.type==="IntersectionTypeAnnotation"||o.type==="FunctionTypeAnnotation"&&o.returnType===u)&&i.length===1&&i[0].name===null&&u.this!==i[0]&&i[0].typeAnnotation&&u.typeParameters===null&&wt(i[0].typeAnnotation)&&!u.rest?r.arrowParens==="always"?["(",...y,")"]:y:[a,"(",E([F,...y]),b(!uu(u)&&le(r,"all")?",":""),F,")"]}function ss(e){if(!e)return!1;let t=Y(e);if(t.length!==1)return!1;let[r]=t;return!d(r)&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&ke(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&ke(r.typeAnnotation)&&r!==e.rest||r.type==="AssignmentPattern"&&(r.left.type==="ObjectPattern"||r.left.type==="ArrayPattern")&&(r.right.type==="Identifier"||Z(r.right)&&r.right.properties.length===0||G(r.right)&&r.right.elements.length===0))}function Np(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function xt(e,t){var s;let r=Np(e);if(!r)return!1;let n=(s=e.typeParameters)==null?void 0:s.params;if(n){if(n.length>1)return!1;if(n.length===1){let u=n[0];if(u.constraint||u.default)return!1}}return Y(e).length===1&&(ke(r)||K(t))}function Up(e){return e.match(t=>t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement",(t,r)=>{if(t.type==="CallExpression"&&r==="arguments"&&t.arguments.length===1&&t.callee.type==="CallExpression"){let n=t.callee.callee;return n.type==="Identifier"||n.type==="MemberExpression"&&!n.computed&&n.object.type==="Identifier"&&n.property.type==="Identifier"}return!1},(t,r)=>t.type==="VariableDeclarator"&&r==="init"||t.type==="ExportDefaultDeclaration"&&r==="declaration"||t.type==="TSExportAssignment"&&r==="expression"||t.type==="AssignmentExpression"&&r==="right"&&t.left.type==="MemberExpression"&&t.left.object.type==="Identifier"&&t.left.object.name==="module"&&t.left.property.type==="Identifier"&&t.left.property.name==="exports",t=>t.type!=="VariableDeclaration"||t.kind==="const"&&t.declarations.length===1)}function Uu(e){let t=Y(e);return t.length>1&&t.some(r=>r.type==="TSParameterProperty")}function us(e){if(wt(e)||ke(e))return!0;if(e.type==="UnionTypeAnnotation"||e.type==="TSUnionType"){let t=e.types.filter(s=>s.type==="VoidTypeAnnotation"||s.type==="TSVoidKeyword"||s.type==="NullLiteralTypeAnnotation"||s.type==="TSNullKeyword").length,r=e.types.some(s=>s.type==="ObjectTypeAnnotation"||s.type==="TSTypeLiteral"||s.type==="GenericTypeAnnotation"||s.type==="TSTypeReference"),n=e.types.some(s=>d(s));if(e.types.length-1===t&&r&&!n)return!0}return!1}function Gu(e,t,r){let n=t.semi?";":"",{node:s}=e,u=[Q(e),"opaque type ",r("id"),r("typeParameters")];return s.supertype&&u.push(": ",r("supertype")),s.impltype&&u.push(" = ",r("impltype")),u.push(n),u}function Rr(e,t,r){let n=t.semi?";":"",{node:s}=e,u=[Q(e)];u.push("type ",r("id"),r("typeParameters"));let i=s.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[ft(e,t,r,u," =",i),n]}function Jr(e,t,r){let n=!1;return D(e.map(({isFirst:s,previous:u,node:i,index:a})=>{let o=r();if(s)return o;let p=ke(i),m=ke(u);return m&&p?[" & ",n?E(o):o]:!m&&!p?E([" &",A,o]):(a>1&&(n=!0),[" & ",a>1?E(o):o])},"types"))}function Nr(e,t,r){let{node:n}=e,{parent:s}=e,u=s.type!=="TypeParameterInstantiation"&&s.type!=="TSTypeParameterInstantiation"&&s.type!=="GenericTypeAnnotation"&&s.type!=="TSTypeReference"&&s.type!=="TSTypeAssertion"&&s.type!=="TupleTypeAnnotation"&&s.type!=="TSTupleType"&&!(s.type==="FunctionTypeParam"&&!s.name&&e.grandparent.this!==s)&&!((s.type==="TypeAlias"||s.type==="VariableDeclarator"||s.type==="TSTypeAliasDeclaration")&&Ie(t.originalText,n)),i=us(n),a=e.map(m=>{let y=r();return i||(y=ye(2,y)),pe(m,y,t)},"types");if(i)return B(" | ",a);let o=u&&!Ie(t.originalText,n),p=[b([o?A:"","| "]),B([A,"| "],a)];return we(e,t)?D([E(p),F]):(s.type==="TupleTypeAnnotation"||s.type==="TSTupleType")&&s[s.type==="TupleTypeAnnotation"&&s.types?"types":"elementTypes"].length>1?D([E([b(["(",F]),p]),F,b(")")]):D(u?E(p):p)}function Gp(e){var n;let{node:t,parent:r}=e;return t.type==="FunctionTypeAnnotation"&&(xr(r)||!((r.type==="ObjectTypeProperty"||r.type==="ObjectTypeInternalSlot")&&!r.variance&&!r.optional&&mt(r,t)||r.type==="ObjectTypeCallProperty"||((n=e.getParentNode(2))==null?void 0:n.type)==="DeclareFunction"))}function Ur(e,t,r){let{node:n}=e,s=[_t(e)];(n.type==="TSConstructorType"||n.type==="TSConstructSignatureDeclaration")&&s.push("new ");let u=at(e,r,t,!1,!0),i=[];return n.type==="FunctionTypeAnnotation"?i.push(Gp(e)?" => ":": ",r("returnType")):i.push(q(e,r,n.returnType?"returnType":"typeAnnotation")),xt(n,i)&&(u=D(u)),s.push(u,i),D(s)}function Gr(e,t,r){return[r("objectType"),X(e),"[",r("indexType"),"]"]}function qr(e,t,r){return["infer ",r("typeParameter")]}function is(e,t,r){let{node:n}=e;return[n.postfix?"":r,q(e,t),n.postfix?r:""]}function Wr(e,t,r){let{node:n}=e;return["...",...n.type==="TupleTypeSpreadElement"&&n.label?[r("label"),": "]:[],r("typeAnnotation")]}function Yr(e,t,r){let{node:n}=e;return[n.variance?r("variance"):"",r("label"),n.optional?"?":"",": ",r("elementType")]}var qp=new WeakSet;function q(e,t,r="typeAnnotation"){let{node:{[r]:n}}=e;if(!n)return"";let s=!1;if(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation"){let u=e.call(qu,r);(u==="=>"||u===":"&&d(n,x.Leading))&&(s=!0),qp.add(n)}return s?[" ",t(r)]:t(r)}var qu=e=>e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>(r==="returnType"||r==="typeAnnotation")&&(t.type==="TSFunctionType"||t.type==="TSConstructorType"))?"=>":e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>r==="typeAnnotation"&&(t.type==="TSJSDocNullableType"||t.type==="TSJSDocNonNullableType"||t.type==="TSTypePredicate"))||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareFunction")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="bound"&&t.type==="TypeParameter"&&t.usesExtendsBound)?"":":";function Xr(e,t,r){let n=qu(e);return n?[n," ",r("typeAnnotation")]:r("typeAnnotation")}function $r(e){return[e("elementType"),"[]"]}function Vr({node:e},t){return["typeof ",...e.type==="TSTypeQuery"?[t("exprName"),t("typeParameters")]:[t("argument")]]}function Hr(e,t){let{node:r}=e;return[r.asserts?"asserts ":"",t("parameterName"),r.typeAnnotation?[" is ",q(e,t)]:""]}function X(e){let{node:t}=e;return!t.optional||t.type==="Identifier"&&t===e.parent.key?"":k(t)||J(t)&&t.computed||t.type==="OptionalIndexedAccessType"?"?.":"?"}function Kr(e){return e.node.definite||e.match(void 0,(t,r)=>r==="id"&&t.type==="VariableDeclarator"&&t.definite)?"!":""}var Wp=new Set(["DeclareClass","DeclareFunction","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]);function Q(e){let{node:t}=e;return t.declare||Wp.has(t.type)&&e.parent.type!=="DeclareExportDeclaration"?"declare ":""}var Yp=new Set(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function _t({node:e}){return e.abstract||Yp.has(e.type)?"abstract ":""}function Ve(e,t,r){let n=e.node;return n.typeArguments?r("typeArguments"):n.typeParameters?r("typeParameters"):""}function Or(e,t,r){return["::",r("callee")]}function ot(e,t,r){return e.type==="EmptyStatement"?";":e.type==="BlockStatement"||r?[" ",t]:E([A,t])}function zr(e,t){return["...",t("argument"),q(e,t)]}function jt(e){return e.accessibility?e.accessibility+" ":""}function as(e,t,r){let{node:n}=e;return D([B(A,e.map(r,"decorators")),Xu(n,t)?C:A])}function Wu(e,t,r){return $u(e.node)?[B(C,e.map(r,"declaration","decorators")),C]:""}function Yu(e,t,r){let{node:n,parent:s}=e,{decorators:u}=n;if(!P(u)||$u(s)||Lr(e))return"";let i=n.type==="ClassExpression"||n.type==="ClassDeclaration"||Xu(n,t);return[e.key==="declaration"&&Zs(s)?C:i?Ae:"",B(A,e.map(r,"decorators")),A]}function Xu(e,t){return e.decorators.some(r=>z(t.originalText,O(r)))}function $u(e){var r;if(e.type!=="ExportDefaultDeclaration"&&e.type!=="ExportNamedDeclaration"&&e.type!=="DeclareExportDeclaration")return!1;let t=(r=e.declaration)==null?void 0:r.decorators;return P(t)&&mt(e,t[0])}function Vu(e,t,r){let{node:n}=e;return["import",n.module?" module":"",ps(n),zu(e,t,r),Ku(e,t,r),Zu(e,t,r),t.semi?";":""]}var Hu=e=>e.type==="ExportDefaultDeclaration"||e.type==="DeclareExportDeclaration"&&e.default;function Qr(e,t,r){let{node:n}=e,s=[Wu(e,t,r),Q(e),"export",Hu(n)?" default":""],{declaration:u,exported:i}=n;return d(n,x.Dangling)&&(s.push(" ",M(e,t)),hr(n)&&s.push(C)),u?s.push(" ",r("declaration")):(s.push(Vp(n)),n.type==="ExportAllDeclaration"||n.type==="DeclareExportAllDeclaration"?(s.push(" *"),i&&s.push(" as ",r("exported"))):s.push(zu(e,t,r)),s.push(Ku(e,t,r),Zu(e,t,r))),s.push($p(n,t)),s}var Xp=j(["ClassDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareFunction","TSDeclareFunction","EnumDeclaration"]);function $p(e,t){return t.semi&&(!e.declaration||Hu(e)&&!Xp(e.declaration))?";":""}function os(e,t=!0){return e&&e!=="value"?`${t?" ":""}${e}${t?"":" "}`:""}function ps(e,t){return os(e.importKind,t)}function Vp(e){return os(e.exportKind)}function Ku(e,t,r){let{node:n}=e;if(!n.source)return"";let s=[];return Qu(n,t)||s.push(" from"),s.push(" ",r("source")),s}function zu(e,t,r){let{node:n}=e;if(Qu(n,t))return"";let s=[" "];if(P(n.specifiers)){let u=[],i=[];e.each(()=>{let a=e.node.type;if(a==="ExportNamespaceSpecifier"||a==="ExportDefaultSpecifier"||a==="ImportNamespaceSpecifier"||a==="ImportDefaultSpecifier")u.push(r());else if(a==="ExportSpecifier"||a==="ImportSpecifier")i.push(r());else throw new Oe(n,"specifier")},"specifiers"),s.push(B(", ",u)),i.length>0&&(u.length>0&&s.push(", "),i.length>1||u.length>0||n.specifiers.some(o=>d(o))?s.push(D(["{",E([t.bracketSpacing?A:F,B([",",A],i)]),b(le(t)?",":""),t.bracketSpacing?A:F,"}"])):s.push(["{",t.bracketSpacing?" ":"",...i,t.bracketSpacing?" ":"","}"]))}else s.push("{}");return s}function Qu(e,t){let{type:r,importKind:n,source:s,specifiers:u}=e;return r!=="ImportDeclaration"||P(u)||n==="type"?!1:!/{\s*}/.test(t.originalText.slice(U(e),U(s)))}function Zu(e,t,r){var i;let{node:n}=e,s=P(n.attributes)?"attributes":P(n.assertions)?"assertions":void 0;return s?[` ${s==="assertions"||(i=n.extra)!=null&&i.deprecatedAssertSyntax?"assert":"with"} {`,t.bracketSpacing?" ":"",B(", ",e.map(r,s)),t.bracketSpacing?" ":"","}"]:""}function ei(e,t,r){let{node:n}=e,{type:s}=n,u=s.startsWith("Import"),i=u?"imported":"local",a=u?"local":"exported",o=n[i],p=n[a],m="",y="";return s==="ExportNamespaceSpecifier"||s==="ImportNamespaceSpecifier"?m="*":o&&(m=r(i)),p&&!Hp(n)&&(y=r(a)),[os(s==="ImportSpecifier"?n.importKind:n.exportKind,!1),m,m&&y?" as ":"",y]}function Hp(e){if(e.type!=="ImportSpecifier"&&e.type!=="ExportSpecifier")return!1;let{local:t,[e.type==="ImportSpecifier"?"imported":"exported"]:r}=e;if(t.type!==r.type||!$s(t,r))return!1;if(ee(t))return t.value===r.value&&oe(t)===oe(r);switch(t.type){case"Identifier":return t.name===r.name;default:return!1}}function Kp(e){let t=[e];for(let r=0;rc[$]===n),l=c.type===n.type&&!f,h,g,S=0;do g=h||n,h=e.getParentNode(S),S++;while(h&&h.type===n.type&&a.every($=>h[$]!==g));let I=h||c,v=g;if(s&&(V(n[a[0]])||V(o)||V(p)||Kp(v))){y=!0,l=!0;let $=Ee=>[b("("),E([F,Ee]),F,b(")")],Be=Ee=>Ee.type==="NullLiteral"||Ee.type==="Literal"&&Ee.value===null||Ee.type==="Identifier"&&Ee.name==="undefined";m.push(" ? ",Be(o)?r(u):$(r(u))," : ",p.type===n.type||Be(p)?r(i):$(r(i)))}else{let $=[A,"? ",o.type===n.type?b("","("):"",ye(2,r(u)),o.type===n.type?b("",")"):"",A,": ",p.type===n.type?r(i):ye(2,r(i))];m.push(c.type!==n.type||c[i]===n||f?$:t.useTabs?vs(E($)):ye(Math.max(0,t.tabWidth-2),$))}let _=[u,i,...a].some($=>d(n[$],Be=>ae(Be)&&yt(t.originalText,U(Be),O(Be)))),R=$=>c===I?D($,{shouldBreak:_}):_?[$,Ae]:$,T=!y&&(J(c)||c.type==="NGPipeExpression"&&c.left===n)&&!c.computed,N=Zp(e),Se=R([zp(e,t,r),l?m:E(m),s&&T&&!N?F:""]);return f||N?D([E([F,Se]),F]):Se}function ec(e,t,r=0){let n=0;for(let s=r;s/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;var Ys={eastAsianWidth(e){var t=e.charCodeAt(0),r=e.length==2?e.charCodeAt(1):0,n=t;return 55296<=t&&t<=56319&&56320<=r&&r<=57343&&(t&=1023,r&=1023,n=t<<10|r,n+=65536),n==12288||65281<=n&&n<=65376||65504<=n&&n<=65510?"F":4352<=n&&n<=4447||4515<=n&&n<=4519||4602<=n&&n<=4607||9001<=n&&n<=9002||11904<=n&&n<=11929||11931<=n&&n<=12019||12032<=n&&n<=12245||12272<=n&&n<=12283||12289<=n&&n<=12350||12353<=n&&n<=12438||12441<=n&&n<=12543||12549<=n&&n<=12589||12593<=n&&n<=12686||12688<=n&&n<=12730||12736<=n&&n<=12771||12784<=n&&n<=12830||12832<=n&&n<=12871||12880<=n&&n<=13054||13056<=n&&n<=19903||19968<=n&&n<=42124||42128<=n&&n<=42182||43360<=n&&n<=43388||44032<=n&&n<=55203||55216<=n&&n<=55238||55243<=n&&n<=55291||63744<=n&&n<=64255||65040<=n&&n<=65049||65072<=n&&n<=65106||65108<=n&&n<=65126||65128<=n&&n<=65131||110592<=n&&n<=110593||127488<=n&&n<=127490||127504<=n&&n<=127546||127552<=n&&n<=127560||127568<=n&&n<=127569||131072<=n&&n<=194367||177984<=n&&n<=196605||196608<=n&&n<=262141?"W":"N"}};var _a=/[^\x20-\x7F]/;function ja(e){if(!e)return 0;if(!_a.test(e))return e.length;e=e.replace(Ws()," ");let t=0;for(let r of e){let n=r.codePointAt(0);if(n<=31||n>=127&&n<=159||n>=768&&n<=879)continue;let s=Ys.eastAsianWidth(r);t+=s==="F"||s==="W"?2:1}return t}var tt=ja;function U(e){var n;let t=e.range?e.range[0]:e.start,r=((n=e.declaration)==null?void 0:n.decorators)??e.decorators;return b(r)?Math.min(U(r[0]),t):t}function O(e){return e.range?e.range[1]:e.end}function yt(e,t){let r=U(e);return Number.isInteger(r)&&r===U(t)}function Ma(e,t){let r=O(e);return Number.isInteger(r)&&r===O(t)}function Xs(e,t){return yt(e,t)&&Ma(e,t)}var qt=null;function Wt(e){if(qt!==null&&typeof qt.property){let t=qt;return qt=Wt.prototype=null,t}return qt=Wt.prototype=e??Object.create(null),new Wt}var Ra=10;for(let e=0;e<=Ra;e++)Wt();function bn(e){return Wt(e)}function Ja(e,t="type"){bn(e);function r(n){let s=n[t],u=e[s];if(!Array.isArray(u))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return u}return r}var Dr=Ja;var $s={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","assertions","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes","assertions"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes","assertions"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ImportExpression:["source","attributes"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareEnum:["id","body"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]};var Na=Dr($s),fr=Na;function Ua(e){return e=new Set(e),t=>e.has(t==null?void 0:t.type)}var j=Ua;var Ga=j(["Block","CommentBlock","MultiLine"]),ae=Ga;function qa(e,t){let r=t.split(".");for(let n=r.length-1;n>=0;n--){let s=r[n];if(n===0)return e.type==="Identifier"&&e.name===s;if(e.type!=="MemberExpression"||e.optional||e.computed||e.property.type!=="Identifier"||e.property.name!==s)return!1;e=e.object}}function Wa(e,t){return t.some(r=>qa(e,r))}var Vs=Wa;var Ya=j(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),Er=Ya;function Xa({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}var Fr=Xa;function Xt(e,t){return t(e)||Us(e,{getVisitorKeys:fr,predicate:t})}function Lt(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||k(e)||J(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||Le(e)||e.type==="TSNonNullExpression"||e.type==="ChainExpression"}function zs(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function dr(e){if(e.expressions)return["expressions",0];if(e.left)return["left"];if(e.test)return["test"];if(e.object)return["object"];if(e.callee)return["callee"];if(e.tag)return["tag"];if(e.argument)return["argument"];if(e.expression)return["expression"];throw new Error("Unexpected node has no left side.")}var $t=j(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),Qs=j(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),G=j(["ArrayExpression","TupleExpression"]),ee=j(["ObjectExpression","RecordExpression"]);function he(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function Ar(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&he(e.argument)}function Q(e){return e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"}function wn(e){return e.type==="RegExpLiteral"||e.type==="Literal"&&!!e.regex}var ke=j(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),It=j(["FunctionExpression","ArrowFunctionExpression"]);function $a(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function Pn(e){return k(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var Y=j(["JSXElement","JSXFragment"]);function On(e){return e.kind==="get"||e.kind==="set"}function vn(e){return On(e)||yt(e,e.value)}function Tr(e){return(e.type==="ObjectTypeProperty"||e.type==="ObjectTypeInternalSlot")&&e.value.type==="FunctionTypeAnnotation"&&!e.static&&!vn(e)}function Zs(e){return(e.type==="TypeAnnotation"||e.type==="TSTypeAnnotation")&&e.typeAnnotation.type==="FunctionTypeAnnotation"&&!e.static&&!yt(e,e.typeAnnotation)}var ce=j(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function Dt(e){return J(e)||e.type==="BindExpression"&&!!e.object}var Va=j(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function wt(e){return Fr(e)||Er(e)||Va(e)||(e.type==="GenericTypeAnnotation"||e.type==="TSTypeReference")&&!e.typeParameters}function Ha(e){let t=/^(?:before|after)(?:Each|All)$/;return e.callee.type==="Identifier"&&e.arguments.length===1&&t.test(e.callee.name)}var Ka=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.step","test.describe","test.describe.only","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function za(e){return Vs(e,Ka)}function Ct(e,t){if(e.type!=="CallExpression")return!1;if(e.arguments.length===1){if(Pn(e)&&t&&Ct(t))return It(e.arguments[0]);if(Ha(e))return Pn(e.arguments[0])}else if((e.arguments.length===2||e.arguments.length===3)&&(e.arguments[0].type==="TemplateLiteral"||Q(e.arguments[0]))&&za(e.callee))return e.arguments[2]&&!he(e.arguments[2])?!1:(e.arguments.length===2?It(e.arguments[1]):$a(e.arguments[1])&&X(e.arguments[1]).length<=1)||Pn(e.arguments[1]);return!1}var k=j(["CallExpression","OptionalCallExpression"]),J=j(["MemberExpression","OptionalMemberExpression"]);function eu(e){let t="expressions";e.type==="TSTemplateLiteralType"&&(t="types");let r=e[t];return r.length===0?!1:r.every(n=>{if(d(n))return!1;if(n.type==="Identifier"||n.type==="ThisExpression")return!0;if(n.type==="ChainExpression"&&(n=n.expression),J(n)){let s=n;for(;J(s);)if(s.property.type!=="Identifier"&&s.property.type!=="Literal"&&s.property.type!=="StringLiteral"&&s.property.type!=="NumericLiteral"||(s=s.object,d(s)))return!1;return s.type==="Identifier"||s.type==="ThisExpression"}return!1})}function Ie(e,t){return Y(t)?dt(t):d(t,x.Leading,r=>z(e,O(r)))}function _n(e,t){return t.parser!=="json"&&Q(e.key)&&oe(e.key).slice(1,-1)===e.key.value&&(Js(e.key.value)&&!(t.parser==="babel-ts"&&e.type==="ClassProperty"||t.parser==="typescript"&&e.type==="PropertyDefinition")||jn(e.key.value)&&String(Number(e.key.value))===e.key.value&&(t.parser==="babel"||t.parser==="acorn"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree"))}function jn(e){return/^(?:\d+|\d+\.\d+)$/.test(e)}function Hs(e){return e.quasis.some(t=>t.value.raw.includes(` +`))}function xr(e,t){return(e.type==="TemplateLiteral"&&Hs(e)||e.type==="TaggedTemplateExpression"&&Hs(e.quasi))&&!z(t,U(e),{backwards:!0})}function gr(e){if(!d(e))return!1;let t=w(!1,Kt(e,x.Dangling),-1);return t&&!ae(t)}function tu(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(It(r)){if(t+=1,t>1)return!0}else if(k(r)){for(let n of r.arguments)if(It(n))return!0}return!1}function hr(e){let{node:t,parent:r,key:n}=e;return n==="callee"&&k(t)&&k(r)&&r.arguments.length>0&&t.arguments.length>r.arguments.length}var Qa=new Set(["!","-","+","~"]);function ge(e,t=2){if(t<=0)return!1;let r=n=>ge(n,t-1);if(wn(e))return tt(e.pattern??e.regex.pattern)<=5;if(e.type==="Literal"||e.type==="BigIntLiteral"||e.type==="DecimalLiteral"||e.type==="BooleanLiteral"||e.type==="NullLiteral"||e.type==="NumericLiteral"||e.type==="StringLiteral"||e.type==="Identifier"||e.type==="ThisExpression"||e.type==="Super"||e.type==="PrivateName"||e.type==="PrivateIdentifier"||e.type==="ArgumentPlaceholder"||e.type==="Import")return!0;if(e.type==="TemplateLiteral")return e.quasis.every(n=>!n.value.raw.includes(` +`))&&e.expressions.every(r);if(ee(e))return e.properties.every(n=>!n.computed&&(n.shorthand||n.value&&r(n.value)));if(G(e))return e.elements.every(n=>n===null||r(n));if(it(e)){if(e.type==="ImportExpression"||ge(e.callee,t)){let n=Ce(e);return n.length<=t&&n.every(r)}return!1}return J(e)?ge(e.object,t)&&ge(e.property,t):e.type==="UnaryExpression"&&Qa.has(e.operator)||e.type==="UpdateExpression"?ge(e.argument,t):e.type==="TSNonNullExpression"?ge(e.expression,t):!1}function oe(e){var t;return((t=e.extra)==null?void 0:t.raw)??e.raw}function ru(e){return e}function le(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")}function re(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return re(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return re(e.object,t);case"TaggedTemplateExpression":return e.tag.type==="FunctionExpression"?!1:re(e.tag,t);case"CallExpression":case"OptionalCallExpression":return e.callee.type==="FunctionExpression"?!1:re(e.callee,t);case"ConditionalExpression":return re(e.test,t);case"UpdateExpression":return!e.prefix&&re(e.argument,t);case"BindExpression":return e.object&&re(e.object,t);case"SequenceExpression":return re(e.expressions[0],t);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":return re(e.expression,t);default:return t(e)}}var Ks={"==":!0,"!=":!0,"===":!0,"!==":!0},Cr={"*":!0,"/":!0,"%":!0},Ln={">>":!0,">>>":!0,"<<":!0};function Vt(e,t){return!(Yt(t)!==Yt(e)||e==="**"||Ks[e]&&Ks[t]||t==="%"&&Cr[e]||e==="%"&&Cr[t]||t!==e&&Cr[t]&&Cr[e]||Ln[e]&&Ln[t])}var Za=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(r=>[r,t])));function Yt(e){return Za.get(e)}function nu(e){return!!Ln[e]||e==="|"||e==="^"||e==="&"}function su(e){var r;if(e.rest)return!0;let t=X(e);return((r=w(!1,t,-1))==null?void 0:r.type)==="RestElement"}var kn=new WeakMap;function X(e){if(kn.has(e))return kn.get(e);let t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push(...e.parameters):Array.isArray(e.params)&&t.push(...e.params),e.rest&&t.push(e.rest),kn.set(e,t),t}function uu(e,t){let{node:r}=e,n=0,s=u=>t(u,n++);r.this&&e.call(s,"this"),Array.isArray(r.parameters)?e.each(s,"parameters"):Array.isArray(r.params)&&e.each(s,"params"),r.rest&&e.call(s,"rest")}var In=new WeakMap;function Ce(e){if(In.has(e))return In.get(e);let t=e.arguments;return e.type==="ImportExpression"&&(t=[e.source],e.attributes&&t.push(e.attributes)),In.set(e,t),t}function Sr(e,t){let{node:r}=e;r.type==="ImportExpression"?(e.call(n=>t(n,0),"source"),r.attributes&&e.call(n=>t(n,1),"attributes")):e.each(t,"arguments")}function Mn(e,t){if(e.type==="ImportExpression"){if(t===0||t===(e.attributes?-2:-1))return"source";if(e.attributes&&(t===1||t===-1))return"attributes";throw new RangeError("Invalid argument index")}if(t<0&&(t=e.arguments.length+t),t<0||t>=e.arguments.length)throw new RangeError("Invalid argument index");return["arguments",t]}function Ht(e){return e.value.trim()==="prettier-ignore"&&!e.unignore}function dt(e){return(e==null?void 0:e.prettierIgnore)||d(e,x.PrettierIgnore)}var x={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},iu=(e,t)=>{if(typeof e=="function"&&(t=e,e=0),e||t)return(r,n,s)=>!(e&x.Leading&&!r.leading||e&x.Trailing&&!r.trailing||e&x.Dangling&&(r.leading||r.trailing)||e&x.Block&&!ae(r)||e&x.Line&&!$t(r)||e&x.First&&n!==0||e&x.Last&&n!==s.length-1||e&x.PrettierIgnore&&!Ht(r)||t&&!t(r))};function d(e,t,r){if(!b(e==null?void 0:e.comments))return!1;let n=iu(t,r);return n?e.comments.some(n):!0}function Kt(e,t,r){if(!Array.isArray(e==null?void 0:e.comments))return[];let n=iu(t,r);return n?e.comments.filter(n):e.comments}var me=(e,{originalText:t})=>kt(t,O(e));function it(e){return k(e)||e.type==="NewExpression"||e.type==="ImportExpression"}function fe(e){return e&&(e.type==="ObjectProperty"||e.type==="Property"&&!e.method&&e.kind==="init")}var zt=Symbol("ifWithoutBlockAndSameLineComment"),Le=j(["TSAsExpression","TSSatisfiesExpression"]);function Rn(e,t){var u,i,a,o,p,m,D;if(e.isRoot)return!1;let{node:r,key:n,parent:s}=e;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&no(r)&&Qt(e))return!0;if(eo(r))return!1;if(r.type==="Identifier"){if((u=r.extra)!=null&&u.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(r.name)||n==="left"&&(r.name==="async"&&!s.await||r.name==="let")&&s.type==="ForOfStatement")return!0;if(r.name==="let"){let c=(i=e.findAncestor(f=>f.type==="ForOfStatement"))==null?void 0:i.left;if(c&&re(c,f=>f===r))return!0}if(n==="object"&&r.name==="let"&&s.type==="MemberExpression"&&s.computed&&!s.optional){let c=e.findAncestor(l=>l.type==="ExpressionStatement"||l.type==="ForStatement"||l.type==="ForInStatement"),f=c?c.type==="ExpressionStatement"?c.expression:c.type==="ForStatement"?c.init:c.left:void 0;if(f&&re(f,l=>l===r))return!0}return!1}if(r.type==="ObjectExpression"||r.type==="FunctionExpression"||r.type==="ClassExpression"||r.type==="DoExpression"){let c=(a=e.findAncestor(f=>f.type==="ExpressionStatement"))==null?void 0:a.expression;if(c&&re(c,f=>f===r))return!0}if(r.type==="ObjectExpression"){let c=(o=e.findAncestor(f=>f.type==="ArrowFunctionExpression"))==null?void 0:o.body;if(c&&c.type!=="SequenceExpression"&&c.type!=="AssignmentExpression"&&re(c,f=>f===r))return!0}switch(s.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(n==="superClass"&&(r.type==="ArrowFunctionExpression"||r.type==="AssignmentExpression"||r.type==="AwaitExpression"||r.type==="BinaryExpression"||r.type==="ConditionalExpression"||r.type==="LogicalExpression"||r.type==="NewExpression"||r.type==="ObjectExpression"||r.type==="SequenceExpression"||r.type==="TaggedTemplateExpression"||r.type==="UnaryExpression"||r.type==="UpdateExpression"||r.type==="YieldExpression"||r.type==="TSNonNullExpression"||r.type==="ClassExpression"&&b(r.decorators)))return!0;break;case"ExportDefaultDeclaration":return au(e,t)||r.type==="SequenceExpression";case"Decorator":if(n==="expression"){if(J(r)&&r.computed)return!0;let c=!1,f=!1,l=r;for(;l;)switch(l.type){case"MemberExpression":f=!0,l=l.object;break;case"CallExpression":if(f||c)return t.parser!=="typescript";c=!0,l=l.callee;break;case"Identifier":return!1;case"TaggedTemplateExpression":return t.parser!=="typescript";default:return!0}return!0}break;case"TypeAnnotation":if(e.match(void 0,void 0,(c,f)=>f==="returnType"&&c.type==="ArrowFunctionExpression")&&ro(r))return!0;break}switch(r.type){case"UpdateExpression":if(s.type==="UnaryExpression")return r.prefix&&(r.operator==="++"&&s.operator==="+"||r.operator==="--"&&s.operator==="-");case"UnaryExpression":switch(s.type){case"UnaryExpression":return r.operator===s.operator&&(r.operator==="+"||r.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"BinaryExpression":return n==="left"&&s.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(s.type==="UpdateExpression"||r.operator==="in"&&to(e))return!0;if(r.operator==="|>"&&((p=r.extra)!=null&&p.parenthesized)){let c=e.grandparent;if(c.type==="BinaryExpression"&&c.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"LogicalExpression":switch(s.type){case"TSAsExpression":case"TSSatisfiesExpression":return!Le(r);case"ConditionalExpression":return Le(r);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return n==="callee";case"ClassExpression":case"ClassDeclaration":return n==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"AssignmentExpression":case"AssignmentPattern":return n==="left"&&(r.type==="TSTypeAssertion"||Le(r));case"LogicalExpression":if(r.type==="LogicalExpression")return s.operator!==r.operator;case"BinaryExpression":{let{operator:c,type:f}=r;if(!c&&f!=="TSTypeAssertion")return!0;let l=Yt(c),h=s.operator,g=Yt(h);return g>l||n==="right"&&g===l||g===l&&!Vt(h,c)?!0:g");default:return!1}case"TSFunctionType":if(e.match(c=>c.type==="TSFunctionType",(c,f)=>f==="typeAnnotation"&&c.type==="TSTypeAnnotation",(c,f)=>f==="returnType"&&c.type==="ArrowFunctionExpression"))return!0;case"TSConditionalType":case"TSConstructorType":if(n==="extendsType"&&s.type==="TSConditionalType"){if(r.type==="TSConditionalType")return!0;let{typeAnnotation:c}=r.returnType||r.typeAnnotation;if(c.type==="TSTypePredicate"&&c.typeAnnotation&&(c=c.typeAnnotation.typeAnnotation),c.type==="TSInferType"&&c.typeParameter.constraint)return!0}if(n==="checkType"&&s.type==="TSConditionalType")return!0;case"TSUnionType":case"TSIntersectionType":if((s.type==="TSUnionType"||s.type==="TSIntersectionType")&&s.types.length>1&&(!r.types||r.types.length>1))return!0;case"TSInferType":if(r.type==="TSInferType"&&s.type==="TSRestType")return!1;case"TSTypeOperator":return s.type==="TSArrayType"||s.type==="TSOptionalType"||s.type==="TSRestType"||n==="objectType"&&s.type==="TSIndexedAccessType"||s.type==="TSTypeOperator"||s.type==="TSTypeAnnotation"&&e.grandparent.type.startsWith("TSJSDoc");case"TSTypeQuery":return n==="objectType"&&s.type==="TSIndexedAccessType"||n==="elementType"&&s.type==="TSArrayType";case"TypeofTypeAnnotation":return n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType")||n==="elementType"&&s.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return s.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return s.type==="ArrayTypeAnnotation"||s.type==="NullableTypeAnnotation"||s.type==="IntersectionTypeAnnotation"||s.type==="UnionTypeAnnotation"||n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType");case"InferTypeAnnotation":case"NullableTypeAnnotation":return s.type==="ArrayTypeAnnotation"||n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType");case"FunctionTypeAnnotation":{if(e.match(void 0,(f,l)=>l==="typeAnnotation"&&f.type==="TypeAnnotation",(f,l)=>l==="returnType"&&f.type==="ArrowFunctionExpression")||e.match(void 0,(f,l)=>l==="typeAnnotation"&&f.type==="TypePredicate",(f,l)=>l==="typeAnnotation"&&f.type==="TypeAnnotation",(f,l)=>l==="returnType"&&f.type==="ArrowFunctionExpression"))return!0;let c=s.type==="NullableTypeAnnotation"?e.grandparent:s;return c.type==="UnionTypeAnnotation"||c.type==="IntersectionTypeAnnotation"||c.type==="ArrayTypeAnnotation"||n==="objectType"&&(c.type==="IndexedAccessType"||c.type==="OptionalIndexedAccessType")||n==="checkType"&&s.type==="ConditionalTypeAnnotation"||n==="extendsType"&&s.type==="ConditionalTypeAnnotation"&&r.returnType.type==="InferTypeAnnotation"&&r.returnType.typeParameter.bound||c.type==="NullableTypeAnnotation"||s.type==="FunctionTypeParam"&&s.name===null&&X(r).some(f=>{var l;return((l=f.typeAnnotation)==null?void 0:l.type)==="NullableTypeAnnotation"})}case"ConditionalTypeAnnotation":if(n==="extendsType"&&s.type==="ConditionalTypeAnnotation"&&r.type==="ConditionalTypeAnnotation"||n==="checkType"&&s.type==="ConditionalTypeAnnotation")return!0;case"OptionalIndexedAccessType":return n==="objectType"&&s.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof r.value=="string"&&s.type==="ExpressionStatement"&&!s.directive){let c=e.grandparent;return c.type==="Program"||c.type==="BlockStatement"}return n==="object"&&s.type==="MemberExpression"&&typeof r.value=="number";case"AssignmentExpression":{let c=e.grandparent;return n==="body"&&s.type==="ArrowFunctionExpression"?!0:n==="key"&&(s.type==="ClassProperty"||s.type==="PropertyDefinition")&&s.computed||(n==="init"||n==="update")&&s.type==="ForStatement"?!1:s.type==="ExpressionStatement"?r.left.type==="ObjectPattern":!(n==="key"&&s.type==="TSPropertySignature"||s.type==="AssignmentExpression"||s.type==="SequenceExpression"&&c.type==="ForStatement"&&(c.init===s||c.update===s)||n==="value"&&s.type==="Property"&&c.type==="ObjectPattern"&&c.properties.includes(s)||s.type==="NGChainedExpression")}case"ConditionalExpression":switch(s.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return n==="test";case"MemberExpression":case"OptionalMemberExpression":return n==="object";default:return!1}case"FunctionExpression":switch(s.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(s.type){case"BinaryExpression":return s.operator!=="|>"||((m=r.extra)==null?void 0:m.parenthesized);case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return n==="test";default:return!1}case"ClassExpression":switch(s.type){case"NewExpression":return n==="callee";default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":case"CallExpression":case"MemberExpression":if(so(e))return!0;case"TaggedTemplateExpression":case"TSNonNullExpression":if(n==="callee"&&(s.type==="BindExpression"||s.type==="NewExpression")){let c=r;for(;c;)switch(c.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":c=c.object;break;case"TaggedTemplateExpression":c=c.tag;break;case"TSNonNullExpression":c=c.expression;break;default:return!1}}return!1;case"BindExpression":return n==="callee"&&(s.type==="BindExpression"||s.type==="NewExpression")||n==="object"&&J(s);case"NGPipeExpression":return!(s.type==="NGRoot"||s.type==="NGMicrosyntaxExpression"||s.type==="ObjectProperty"&&!((D=r.extra)!=null&&D.parenthesized)||G(s)||n==="arguments"&&k(s)||n==="right"&&s.type==="NGPipeExpression"||n==="property"&&s.type==="MemberExpression"||s.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return n==="callee"||n==="left"&&s.type==="BinaryExpression"&&s.operator==="<"||!G(s)&&s.type!=="ArrowFunctionExpression"&&s.type!=="AssignmentExpression"&&s.type!=="AssignmentPattern"&&s.type!=="BinaryExpression"&&s.type!=="NewExpression"&&s.type!=="ConditionalExpression"&&s.type!=="ExpressionStatement"&&s.type!=="JsExpressionRoot"&&s.type!=="JSXAttribute"&&s.type!=="JSXElement"&&s.type!=="JSXExpressionContainer"&&s.type!=="JSXFragment"&&s.type!=="LogicalExpression"&&!k(s)&&!fe(s)&&s.type!=="ReturnStatement"&&s.type!=="ThrowStatement"&&s.type!=="TypeCastExpression"&&s.type!=="VariableDeclarator"&&s.type!=="YieldExpression";case"TSInstantiationExpression":return n==="object"&&J(s)}return!1}var eo=j(["BlockStatement","BreakStatement","ClassBody","ClassDeclaration","ClassMethod","ClassProperty","PropertyDefinition","ClassPrivateProperty","ContinueStatement","DebuggerStatement","DeclareClass","DeclareExportAllDeclaration","DeclareExportDeclaration","DeclareFunction","DeclareInterface","DeclareModule","DeclareModuleExports","DeclareVariable","DeclareEnum","DoWhileStatement","EnumDeclaration","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","IfStatement","ImportDeclaration","InterfaceDeclaration","LabeledStatement","MethodDefinition","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSNamespaceExportDeclaration","TypeAlias","VariableDeclaration","WhileStatement","WithStatement"]);function to(e){let t=0,{node:r}=e;for(;r;){let n=e.getParentNode(t++);if((n==null?void 0:n.type)==="ForStatement"&&n.init===r)return!0;r=n}return!1}function ro(e){return Xt(e,t=>t.type==="ObjectTypeAnnotation"&&Xt(t,r=>r.type==="FunctionTypeAnnotation"))}function no(e){return ee(e)}function Qt(e){let{parent:t,key:r}=e;switch(t.type){case"NGPipeExpression":if(r==="arguments"&&e.isLast)return e.callParent(Qt);break;case"ObjectProperty":if(r==="value")return e.callParent(()=>e.key==="properties"&&e.isLast);break;case"BinaryExpression":case"LogicalExpression":if(r==="right")return e.callParent(Qt);break;case"ConditionalExpression":if(r==="alternate")return e.callParent(Qt);break;case"UnaryExpression":if(t.prefix)return e.callParent(Qt);break}return!1}function au(e,t){let{node:r,parent:n}=e;return r.type==="FunctionExpression"||r.type==="ClassExpression"?n.type==="ExportDefaultDeclaration"||!Rn(e,t):!Lt(r)||n.type!=="ExportDefaultDeclaration"&&Rn(e,t)?!1:e.call(()=>au(e,t),...dr(r))}function so(e){let{node:t,parent:r,grandparent:n,key:s}=e;return!!((t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression")&&(s==="object"&&r.type==="MemberExpression"||s==="callee"&&(r.type==="CallExpression"||r.type==="NewExpression")||r.type==="TSNonNullExpression"&&n.type==="MemberExpression"&&n.object===r)||e.match(()=>t.type==="CallExpression"||t.type==="MemberExpression",(u,i)=>i==="expression"&&u.type==="ChainExpression")&&(e.match(void 0,void 0,(u,i)=>i==="callee"&&(u.type==="CallExpression"&&!u.optional||u.type==="NewExpression")||i==="object"&&u.type==="MemberExpression"&&!u.optional)||e.match(void 0,void 0,(u,i)=>i==="expression"&&u.type==="TSNonNullExpression",(u,i)=>i==="object"&&u.type==="MemberExpression"))||e.match(()=>t.type==="CallExpression"||t.type==="MemberExpression",(u,i)=>i==="expression"&&u.type==="TSNonNullExpression",(u,i)=>i==="expression"&&u.type==="ChainExpression",(u,i)=>i==="object"&&u.type==="MemberExpression"))}var we=Rn;var uo=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},H=uo;function io(e,t){let r=t-1;r=We(e,r,{backwards:!0}),r=Ye(e,r,{backwards:!0}),r=We(e,r,{backwards:!0});let n=Ye(e,r,{backwards:!0});return r!==n}var ou=io;var ao=()=>!0;function Jn(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function oo(e,t){var m;let r=e.node,n=[Jn(e,t)],{printer:s,originalText:u,locStart:i,locEnd:a}=t;if((m=s.isBlockComment)==null?void 0:m.call(s,r)){let D=z(u,a(r))?z(u,i(r),{backwards:!0})?C:A:" ";n.push(D)}else n.push(C);let p=Ye(u,We(u,a(r)));return p!==!1&&z(u,p)&&n.push(C),n}function po(e,t,r){var p;let n=e.node,s=Jn(e,t),{printer:u,originalText:i,locStart:a}=t,o=(p=u.isBlockComment)==null?void 0:p.call(u,n);if(r!=null&&r.hasLineSuffix&&!(r!=null&&r.isBlock)||z(i,a(n),{backwards:!0})){let m=ou(i,a(n));return{doc:hn([C,m?C:"",s]),isBlock:o,hasLineSuffix:!0}}return!o||r!=null&&r.hasLineSuffix?{doc:[hn([" ",s]),Te],isBlock:o,hasLineSuffix:!0}:{doc:[" ",s],isBlock:o,hasLineSuffix:!1}}function M(e,t,r={}){let{node:n}=e;if(!b(n==null?void 0:n.comments))return"";let{indent:s=!1,marker:u,filter:i=ao}=r,a=[];if(e.each(({node:p})=>{p.leading||p.trailing||p.marker!==u||!i(p)||a.push(Jn(e,t))},"comments"),a.length===0)return"";let o=B(C,a);return s?E([C,o]):o}function Nn(e,t){let r=e.node;if(!r)return{};let n=t[Symbol.for("printedComments")];if((r.comments||[]).filter(o=>!n.has(o)).length===0)return{leading:"",trailing:""};let u=[],i=[],a;return e.each(()=>{let o=e.node;if(n!=null&&n.has(o))return;let{leading:p,trailing:m}=o;p?u.push(oo(e,t)):m&&(a=po(e,t,a),i.push(a.doc))},"comments"),{leading:u,trailing:i}}function pe(e,t,r){let{leading:n,trailing:s}=Nn(e,r);return!n&&!s?t:Gt(t,u=>[n,u,s])}var Un=class extends Error{name="UnexpectedNodeError";constructor(t,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`),this.node=t}},Oe=Un;var Br="'",pu='"';function co(e,t){let r=t===!0||t===Br?Br:pu,n=r===Br?pu:Br,s=0,u=0;for(let i of e)i===r?s++:i===n&&u++;return s>u?n:r}var br=co;function Gn(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var ve,qn=class{constructor(t){bs(this,ve,void 0);Ps(this,ve,new Set(t))}getLeadingWhitespaceCount(t){let r=st(this,ve),n=0;for(let s=0;s=0&&r.has(t.charAt(s));s--)n++;return n}getLeadingWhitespace(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(0,r)}getTrailingWhitespace(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(t.length-r)}hasLeadingWhitespace(t){return st(this,ve).has(t.charAt(0))}hasTrailingWhitespace(t){return st(this,ve).has(w(!1,t,-1))}trimStart(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(r)}trimEnd(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-r)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,r=!1){let n=`[${Gn([...st(this,ve)].join(""))}]+`,s=new RegExp(r?`(${n})`:n);return t.split(s)}hasWhitespaceCharacter(t){let r=st(this,ve);return Array.prototype.some.call(t,n=>r.has(n))}hasNonWhitespaceCharacter(t){let r=st(this,ve);return Array.prototype.some.call(t,n=>!r.has(n))}isWhitespaceOnly(t){let r=st(this,ve);return Array.prototype.every.call(t,n=>r.has(n))}};ve=new WeakMap;var cu=qn;var Kn={};or(Kn,{endOfLine:()=>Fo,ownLine:()=>Eo,remaining:()=>Co});function lo(e,t){let r=null,n=t;for(;n!==r;)r=n,n=We(e,n),n=bt(e,n),n=Pt(e,n),n=Ye(e,n);return n}var Xe=lo;function mo(e,t){let r=Xe(e,t);return r===!1?"":e.charAt(r)}var $e=mo;function yo(e,t,r){for(let n=t;n20&&(r=r.slice(0,19)+"\u2026"),t+(r?" "+r:"")}function Wn(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=Do(e)}function ne(e,t){t.leading=!0,t.trailing=!1,Wn(e,t)}function _e(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Wn(e,t)}function te(e,t){t.leading=!1,t.trailing=!0,Wn(e,t)}function fo(e){return ae(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/.test(e.value)}var lu=fo;function Eo(e){return[Cu,fu,To,Xn,$n,mu,yu,Oo,Lo,Hn,Fu,vo,Du,Eu,Vn].some(t=>t(e))}function Fo(e){return[Ao,fu,xo,Fu,Xn,$n,mu,yu,Eu,Io,wo,Hn,Mo,Vn,No].some(t=>t(e))}function Co(e){return[Cu,Xn,$n,go,ko,Du,Hn,Po,bo,Jo,Vn,Ro].some(t=>t(e))}function At(e,t){let r=(e.body||e.properties).find(({type:n})=>n!=="EmptyStatement");r?ne(r,t):_e(e,t)}function Yn(e,t){e.type==="BlockStatement"?At(e,t):ne(e,t)}function Ao({comment:e,followingNode:t}){return t&&lu(e)?(ne(t,e),!0):!1}function Xn({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){if((r==null?void 0:r.type)!=="IfStatement"||!n)return!1;if($e(s,O(e))===")")return te(t,e),!0;if(t===r.consequent&&n===r.alternate){if(t.type==="BlockStatement")te(t,e);else{let i=e.type==="SingleLine"||e.loc.start.line===e.loc.end.line,a=e.loc.start.line===t.loc.start.line;i&&a?_e(t,e,t.type==="ExpressionStatement"?zt:void 0):_e(r,e)}return!0}return n.type==="BlockStatement"?(At(n,e),!0):n.type==="IfStatement"?(Yn(n.consequent,e),!0):r.consequent===n?(ne(n,e),!0):!1}function $n({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){return(r==null?void 0:r.type)!=="WhileStatement"||!n?!1:$e(s,O(e))===")"?(te(t,e),!0):n.type==="BlockStatement"?(At(n,e),!0):r.body===n?(ne(n,e),!0):!1}function mu({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return(r==null?void 0:r.type)!=="TryStatement"&&(r==null?void 0:r.type)!=="CatchClause"||!n?!1:r.type==="CatchClause"&&t?(te(t,e),!0):n.type==="BlockStatement"?(At(n,e),!0):n.type==="TryStatement"?(Yn(n.finalizer,e),!0):n.type==="CatchClause"?(Yn(n.body,e),!0):!1}function To({comment:e,enclosingNode:t,followingNode:r}){return J(t)&&(r==null?void 0:r.type)==="Identifier"?(ne(t,e),!0):!1}function xo({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){let u=t&&!rt(s,O(t),U(e));return(!t||!u)&&((r==null?void 0:r.type)==="ConditionalExpression"||(r==null?void 0:r.type)==="TSConditionalType")&&n?(ne(n,e),!0):!1}function go({comment:e,precedingNode:t,enclosingNode:r}){return fe(r)&&r.shorthand&&r.key===t&&r.value.type==="AssignmentPattern"?(te(r.value.left,e),!0):!1}var ho=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function yu({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){if(ho.has(r==null?void 0:r.type)){if(b(r.decorators)&&(n==null?void 0:n.type)!=="Decorator")return te(w(!1,r.decorators,-1),e),!0;if(r.body&&n===r.body)return At(r.body,e),!0;if(n){if(r.superClass&&n===r.superClass&&t&&(t===r.id||t===r.typeParameters))return te(t,e),!0;for(let s of["implements","extends","mixins"])if(r[s]&&n===r[s][0])return t&&(t===r.id||t===r.typeParameters||t===r.superClass)?te(t,e):_e(r,e,s),!0}}return!1}var So=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty"]);function Du({comment:e,precedingNode:t,enclosingNode:r,text:n}){return r&&t&&$e(n,O(e))==="("&&(r.type==="Property"||r.type==="TSDeclareMethod"||r.type==="TSAbstractMethodDefinition")&&t.type==="Identifier"&&r.key===t&&$e(n,O(t))!==":"?(te(t,e),!0):(t==null?void 0:t.type)==="Decorator"&&So.has(r==null?void 0:r.type)?(te(t,e),!0):!1}var Bo=new Set(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function bo({comment:e,precedingNode:t,enclosingNode:r,text:n}){return $e(n,O(e))!=="("?!1:t&&Bo.has(r==null?void 0:r.type)?(te(t,e),!0):!1}function Po({comment:e,enclosingNode:t,text:r}){if((t==null?void 0:t.type)!=="ArrowFunctionExpression")return!1;let n=Xe(r,O(e));return n!==!1&&r.slice(n,n+2)==="=>"?(_e(t,e),!0):!1}function ko({comment:e,enclosingNode:t,text:r}){return $e(r,O(e))!==")"?!1:t&&(du(t)&&X(t).length===0||it(t)&&Ce(t).length===0)?(_e(t,e),!0):((t==null?void 0:t.type)==="MethodDefinition"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&X(t.value).length===0?(_e(t.value,e),!0):!1}function fu({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){if((t==null?void 0:t.type)==="FunctionTypeParam"&&(r==null?void 0:r.type)==="FunctionTypeAnnotation"&&(n==null?void 0:n.type)!=="FunctionTypeParam")return te(t,e),!0;if(((t==null?void 0:t.type)==="Identifier"||(t==null?void 0:t.type)==="AssignmentPattern"||(t==null?void 0:t.type)==="ObjectPattern"||(t==null?void 0:t.type)==="ArrayPattern"||(t==null?void 0:t.type)==="RestElement")&&r&&du(r)&&$e(s,O(e))===")")return te(t,e),!0;if((r==null?void 0:r.type)==="FunctionDeclaration"&&(n==null?void 0:n.type)==="BlockStatement"){let u=(()=>{let i=X(r);if(i.length>0)return Xe(s,O(w(!1,i,-1)));let a=Xe(s,O(r.id));return a!==!1&&Xe(s,a+1)})();if(U(e)>u)return At(n,e),!0}return!1}function Eu({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="LabeledStatement"?(ne(t,e),!0):!1}function Vn({comment:e,enclosingNode:t}){return((t==null?void 0:t.type)==="ContinueStatement"||(t==null?void 0:t.type)==="BreakStatement")&&!t.label?(te(t,e),!0):!1}function Io({comment:e,precedingNode:t,enclosingNode:r}){return k(r)&&t&&r.callee===t&&r.arguments.length>0?(ne(r.arguments[0],e),!0):!1}function Lo({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return(r==null?void 0:r.type)==="UnionTypeAnnotation"||(r==null?void 0:r.type)==="TSUnionType"?(Ht(e)&&(n.prettierIgnore=!0,e.unignore=!0),t?(te(t,e),!0):!1):(((n==null?void 0:n.type)==="UnionTypeAnnotation"||(n==null?void 0:n.type)==="TSUnionType")&&Ht(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function wo({comment:e,enclosingNode:t}){return fe(t)?(ne(t,e),!0):!1}function Hn({comment:e,enclosingNode:t,followingNode:r,ast:n,isLastComment:s}){var u;return((u=n==null?void 0:n.body)==null?void 0:u.length)===0?(s?_e(n,e):ne(n,e),!0):(t==null?void 0:t.type)==="Program"&&t.body.length===0&&!b(t.directives)?(s?_e(t,e):ne(t,e),!0):(r==null?void 0:r.type)==="Program"&&r.body.length===0&&(t==null?void 0:t.type)==="ModuleExpression"?(_e(r,e),!0):!1}function Oo({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="ForInStatement"||(t==null?void 0:t.type)==="ForOfStatement"?(ne(t,e),!0):!1}function Fu({comment:e,precedingNode:t,enclosingNode:r,text:n}){if((r==null?void 0:r.type)==="ImportSpecifier"||(r==null?void 0:r.type)==="ExportSpecifier")return ne(r,e),!0;let s=(t==null?void 0:t.type)==="ImportSpecifier"&&(r==null?void 0:r.type)==="ImportDeclaration",u=(t==null?void 0:t.type)==="ExportSpecifier"&&(r==null?void 0:r.type)==="ExportNamedDeclaration";return(s||u)&&z(n,O(e))?(te(t,e),!0):!1}function vo({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="AssignmentPattern"?(ne(t,e),!0):!1}var _o=new Set(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),jo=new Set(["ObjectExpression","RecordExpression","ArrayExpression","TupleExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function Mo({comment:e,enclosingNode:t,followingNode:r}){return _o.has(t==null?void 0:t.type)&&r&&(jo.has(r.type)||ae(e))?(ne(r,e),!0):!1}function Ro({comment:e,enclosingNode:t,followingNode:r,text:n}){return!r&&((t==null?void 0:t.type)==="TSMethodSignature"||(t==null?void 0:t.type)==="TSDeclareFunction"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&$e(n,O(e))===";"?(te(t,e),!0):!1}function Cu({comment:e,enclosingNode:t,followingNode:r}){if(Ht(e)&&(t==null?void 0:t.type)==="TSMappedType"&&(r==null?void 0:r.type)==="TSTypeParameter"&&r.constraint)return t.prettierIgnore=!0,e.unignore=!0,!0}function Jo({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return(r==null?void 0:r.type)!=="TSMappedType"?!1:(n==null?void 0:n.type)==="TSTypeParameter"&&n.name?(ne(n.name,e),!0):(t==null?void 0:t.type)==="TSTypeParameter"&&t.constraint?(te(t.constraint,e),!0):!1}function No({comment:e,enclosingNode:t,followingNode:r}){return!t||t.type!=="SwitchCase"||t.test||!r||r!==t.consequent[0]?!1:(r.type==="BlockStatement"&&$t(e)?At(r,e):_e(t,e),!0)}var du=j(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod"]);function Uo(e){let t=`*${e.value}*`.split(` +`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var Au=Uo;function Tu(e,t){let r=e.node;if($t(r))return t.originalText.slice(U(r),O(r)).trimEnd();if(ae(r))return Au(r)?Go(r):["/*",xe(r.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(r))}function Go(e){let t=e.value.split(` +`);return["/*",B(C,t.map((r,n)=>n===0?r.trimEnd():" "+(ne===""||e===A||e===C||e===F;function $o(e,t,r){var v,_,R;let{node:n}=e;if(n.type==="JSXElement"&&ap(n))return[r("openingElement"),r("closingElement")];let s=n.type==="JSXElement"?r("openingElement"):r("openingFragment"),u=n.type==="JSXElement"?r("closingElement"):r("closingFragment");if(n.children.length===1&&n.children[0].type==="JSXExpressionContainer"&&(n.children[0].expression.type==="TemplateLiteral"||n.children[0].expression.type==="TaggedTemplateExpression"))return[s,...e.map(r,"children"),u];n.children=n.children.map(T=>op(T)?{type:"JSXText",value:" ",raw:" "}:T);let i=n.children.some(Y),a=n.children.filter(T=>T.type==="JSXExpressionContainer").length>1,o=n.type==="JSXElement"&&n.openingElement.attributes.length>1,p=K(s)||i||o||a,m=e.parent.rootMarker==="mdx",D=t.singleQuote?"{' '}":'{" "}',c=m?" ":P([D,F]," "),f=((_=(v=n.openingElement)==null?void 0:v.name)==null?void 0:_.name)==="fbt",l=Vo(e,t,r,c,f),h=n.children.some(T=>Zt(T));for(let T=l.length-2;T>=0;T--){let N=l[T]===""&&l[T+1]==="",Se=l[T]===C&&l[T+1]===""&&l[T+2]===C,V=(l[T]===F||l[T]===C)&&l[T+1]===""&&l[T+2]===c,Be=l[T]===c&&l[T+1]===""&&(l[T+2]===F||l[T+2]===C),Ee=l[T]===c&&l[T+1]===""&&l[T+2]===c,Cn=l[T]===F&&l[T+1]===""&&l[T+2]===C||l[T]===C&&l[T+1]===""&&l[T+2]===F;Se&&h||N||V||Ee||Cn?l.splice(T,2):Be&&l.splice(T+1,2)}for(;l.length>0&&Qn(w(!1,l,-1));)l.pop();for(;l.length>1&&Qn(l[0])&&Qn(l[1]);)l.shift(),l.shift();let g=[];for(let[T,N]of l.entries()){if(N===c){if(T===1&&l[T-1]===""){if(l.length===2){g.push(D);continue}g.push([D,C]);continue}else if(T===l.length-1){g.push(D);continue}else if(l[T-1]===""&&l[T-2]===C){g.push(D);continue}}g.push(N),K(N)&&(p=!0)}let S=h?St(g):y(g,{shouldBreak:!0});if(((R=t.cursorNode)==null?void 0:R.type)==="JSXText"&&n.children.includes(t.cursorNode)&&(S=[Bn,S,Bn]),m)return S;let I=y([s,E([C,S]),C,u]);return p?I:qe([y([s,...l,u]),I])}function Vo(e,t,r,n,s){let u=[];return e.each(({node:i,next:a})=>{if(i.type==="JSXText"){let o=oe(i);if(Zt(i)){let p=Pr.split(o,!0);p[0]===""&&(u.push(""),p.shift(),/\n/.test(p[0])?u.push(gu(s,p[1],i,a)):u.push(n),p.shift());let m;if(w(!1,p,-1)===""&&(p.pop(),m=p.pop()),p.length===0)return;for(let[D,c]of p.entries())D%2===1?u.push(A):u.push(c);m!==void 0?/\n/.test(m)?u.push(gu(s,w(!1,u,-1),i,a)):u.push(n):u.push(xu(s,w(!1,u,-1),i,a))}else/\n/.test(o)?o.match(/\n/g).length>1&&u.push("",C):u.push("",n)}else{let o=r();if(u.push(o),a&&Zt(a)){let m=Pr.trim(oe(a)),[D]=Pr.split(m);u.push(xu(s,D,i,a))}else u.push(C)}},"children"),u}function xu(e,t,r,n){return e?"":r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?t.length===1?F:C:F}function gu(e,t,r,n){return e?C:t.length===1?r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?C:F:C}var Ho=new Set(["ArrayExpression","TupleExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot"]);function Ko(e,t,r){let{parent:n}=e;if(Ho.has(n.type))return t;let s=e.match(void 0,i=>i.type==="ArrowFunctionExpression",k,i=>i.type==="JSXExpressionContainer"),u=we(e,r);return y([u?"":P("("),E([F,t]),F,u?"":P(")")],{shouldBreak:s})}function zo(e,t,r){let{node:n}=e,s=[];if(s.push(r("name")),n.value){let u;if(Q(n.value)){let i=oe(n.value),a=H(!1,H(!1,i.slice(1,-1),"'","'"),""",'"'),o=br(a,t.jsxSingleQuote);a=o==='"'?H(!1,a,'"',"""):H(!1,a,"'","'"),u=e.call(()=>pe(e,xe(o+a+o),t),"value")}else u=r("value");s.push("=",u)}return s}function Qo(e,t,r){let{node:n}=e,s=(u,i)=>u.type==="JSXEmptyExpression"||!d(u)&&(G(u)||ee(u)||u.type==="ArrowFunctionExpression"||u.type==="AwaitExpression"&&(s(u.argument,u)||u.argument.type==="JSXElement")||k(u)||u.type==="ChainExpression"&&k(u.expression)||u.type==="FunctionExpression"||u.type==="TemplateLiteral"||u.type==="TaggedTemplateExpression"||u.type==="DoExpression"||Y(i)&&(u.type==="ConditionalExpression"||ce(u)));return s(n.expression,e.parent)?y(["{",r("expression"),Ae,"}"]):y(["{",E([F,r("expression")]),F,Ae,"}"])}function Zo(e,t,r){var a,o;let{node:n}=e,s=d(n.name)||d(n.typeParameters);if(n.selfClosing&&n.attributes.length===0&&!s)return["<",r("name"),r("typeParameters")," />"];if(((a=n.attributes)==null?void 0:a.length)===1&&n.attributes[0].value&&Q(n.attributes[0].value)&&!n.attributes[0].value.value.includes(` +`)&&!s&&!d(n.attributes[0]))return y(["<",r("name"),r("typeParameters")," ",...e.map(r,"attributes"),n.selfClosing?" />":">"]);let u=(o=n.attributes)==null?void 0:o.some(p=>p.value&&Q(p.value)&&p.value.value.includes(` +`)),i=t.singleAttributePerLine&&n.attributes.length>1?C:A;return y(["<",r("name"),r("typeParameters"),E(e.map(()=>[i,r()],"attributes")),...ep(n,t,s)],{shouldBreak:u})}function ep(e,t,r){return e.selfClosing?[A,"/>"]:tp(e,t,r)?[">"]:[F,">"]}function tp(e,t,r){let n=e.attributes.length>0&&d(w(!1,e.attributes,-1),x.Trailing);return e.attributes.length===0&&!r||(t.bracketSameLine||t.jsxBracketSameLine)&&(!r||e.attributes.length>0)&&!n}function rp(e,t,r){let{node:n}=e,s=[];s.push(""),s}function np(e,t){let{node:r}=e,n=d(r),s=d(r,x.Line),u=r.type==="JSXOpeningFragment";return[u?"<":""]}function sp(e,t,r){let n=pe(e,$o(e,t,r),t);return Ko(e,n,t)}function up(e,t){let{node:r}=e,n=d(r,x.Line);return[M(e,t,{indent:n}),n?C:""]}function ip(e,t,r){let{node:n}=e;return["{",e.call(({node:s})=>{let u=["...",r()];return!d(s)||!zn(e)?u:[E([F,pe(e,u,t)]),F]},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function hu(e,t,r){let{node:n}=e;if(n.type.startsWith("JSX"))switch(n.type){case"JSXAttribute":return zo(e,t,r);case"JSXIdentifier":return n.name;case"JSXNamespacedName":return B(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return B(".",[r("object"),r("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return ip(e,t,r);case"JSXExpressionContainer":return Qo(e,t,r);case"JSXFragment":case"JSXElement":return sp(e,t,r);case"JSXOpeningElement":return Zo(e,t,r);case"JSXClosingElement":return rp(e,t,r);case"JSXOpeningFragment":case"JSXClosingFragment":return np(e,t);case"JSXEmptyExpression":return up(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Oe(n,"JSX")}}function ap(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type==="JSXText"&&!Zt(t)}function Zt(e){return e.type==="JSXText"&&(Pr.hasNonWhitespaceCharacter(oe(e))||!/\n/.test(oe(e)))}function op(e){return e.type==="JSXExpressionContainer"&&Q(e.expression)&&e.expression.value===" "&&!d(e.expression)}function Su(e){let{node:t,parent:r}=e;if(!Y(t)||!Y(r))return!1;let{index:n,siblings:s}=e,u;for(let i=n;i>0;i--){let a=s[i-1];if(!(a.type==="JSXText"&&!Zt(a))){u=a;break}}return(u==null?void 0:u.type)==="JSXExpressionContainer"&&u.expression.type==="JSXEmptyExpression"&&dt(u.expression)}function pp(e){return dt(e.node)||Su(e)}var kr=pp;var cp=0;function Ir(e,t,r){var _;let{node:n,parent:s,grandparent:u,key:i}=e,a=i!=="body"&&(s.type==="IfStatement"||s.type==="WhileStatement"||s.type==="SwitchStatement"||s.type==="DoWhileStatement"),o=n.operator==="|>"&&((_=e.root.extra)==null?void 0:_.__isUsingHackPipeline),p=Zn(e,r,t,!1,a);if(a)return p;if(o)return y(p);if(k(s)&&s.callee===n||s.type==="UnaryExpression"||J(s)&&!s.computed)return y([E([F,...p]),F]);let m=s.type==="ReturnStatement"||s.type==="ThrowStatement"||s.type==="JSXExpressionContainer"&&u.type==="JSXAttribute"||n.operator!=="|"&&s.type==="JsExpressionRoot"||n.type!=="NGPipeExpression"&&(s.type==="NGRoot"&&t.parser==="__ng_binding"||s.type==="NGMicrosyntaxExpression"&&u.type==="NGMicrosyntax"&&u.body.length===1)||n===s.body&&s.type==="ArrowFunctionExpression"||n!==s.body&&s.type==="ForStatement"||s.type==="ConditionalExpression"&&u.type!=="ReturnStatement"&&u.type!=="ThrowStatement"&&!k(u)||s.type==="TemplateLiteral",D=s.type==="AssignmentExpression"||s.type==="VariableDeclarator"||s.type==="ClassProperty"||s.type==="PropertyDefinition"||s.type==="TSAbstractPropertyDefinition"||s.type==="ClassPrivateProperty"||fe(s),c=ce(n.left)&&Vt(n.operator,n.left.operator);if(m||Ot(n)&&!c||!Ot(n)&&D)return y(p);if(p.length===0)return"";let f=Y(n.right),l=p.findIndex(R=>typeof R!="string"&&!Array.isArray(R)&&R.type===ue),h=p.slice(0,l===-1?1:l+1),g=p.slice(h.length,f?-1:void 0),S=Symbol("logicalChain-"+ ++cp),I=y([...h,E(g)],{id:S});if(!f)return I;let v=w(!1,p,-1);return y([I,mt(v,{groupId:S})])}function Zn(e,t,r,n,s){var h;let{node:u}=e;if(!ce(u))return[y(t())];let i=[];Vt(u.operator,u.left.operator)?i=e.call(g=>Zn(g,t,r,!0,s),"left"):i.push(y(t("left")));let a=Ot(u),o=(u.operator==="|>"||u.type==="NGPipeExpression"||lp(e,r))&&!Ie(r.originalText,u.right),p=u.type==="NGPipeExpression"?"|":u.operator,m=u.type==="NGPipeExpression"&&u.arguments.length>0?y(E([F,": ",B([A,": "],e.map(()=>De(2,y(t())),"arguments"))])):"",D;if(a)D=[p," ",t("right"),m];else{let S=p==="|>"&&((h=e.root.extra)==null?void 0:h.__isUsingHackPipeline)?e.call(I=>Zn(I,t,r,!0,s),"right"):t("right");D=[o?A:"",p,o?" ":A,S,m]}let{parent:c}=e,f=d(u.left,x.Trailing|x.Line),l=f||!(s&&u.type==="LogicalExpression")&&c.type!==u.type&&u.left.type!==u.type&&u.right.type!==u.type;if(i.push(o?"":" ",l?y(D,{shouldBreak:f}):D),n&&d(u)){let g=Bt(pe(e,i,r));return Array.isArray(g)||g.type===ye?mr(g):[g]}return i}function Ot(e){return e.type!=="LogicalExpression"?!1:!!(ee(e.right)&&e.right.properties.length>0||G(e.right)&&e.right.elements.length>0||Y(e.right))}var Bu=e=>e.type==="BinaryExpression"&&e.operator==="|";function lp(e,t){return(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression")&&Bu(e.node)&&!e.hasAncestor(r=>!Bu(r)&&r.type!=="JsExpressionRoot")}var at=class extends Error{name="ArgExpansionBailout"};function mp(e,t,r,n){let{node:s}=e;return d(s,x.Dangling)?y([r,M(e,t,{indent:!0}),F,n]):[r,n]}function vt(e,t,r){let{node:n}=e,s=[],u=n.type==="TupleExpression"?"#[":"[",i="]",a=n.type==="TupleTypeAnnotation"&&n.types?"types":n.type==="TSTupleType"||n.type==="TupleTypeAnnotation"?"elementTypes":"elements",o=n[a];if(o.length===0)s.push(mp(e,t,u,i));else{let p=w(!1,o,-1),m=(p==null?void 0:p.type)!=="RestElement",D=p===null,c=Symbol("array"),f=!t.__inJestEach&&o.length>1&&o.every((g,S,I)=>{let v=g==null?void 0:g.type;if(!G(g)&&!ee(g))return!1;let _=I[S+1];if(_&&v!==_.type)return!1;let R=G(g)?"elements":"properties";return g[R]&&g[R].length>1}),l=es(n,t),h=m?D?",":le(t)?l?P(",","",{groupId:c}):P(","):"":"";s.push(y([u,E([F,l?Dp(e,t,r,h):[yp(e,t,a,r),h],M(e,t)]),F,i],{shouldBreak:f,id:c}))}return s.push($(e),q(e,r)),s}function es(e,t){return G(e)&&e.elements.length>1&&e.elements.every(r=>r&&(he(r)||Ar(r)&&!d(r.argument))&&!d(r,x.Trailing|x.Line,n=>!z(t.originalText,U(n),{backwards:!0})))}function bu({node:e},{originalText:t}){let r=s=>bt(t,Pt(t,s)),n=s=>t[s]===","?s:n(r(s+1));return kt(t,n(O(e)))}function yp(e,t,r,n){let s=[];return e.each(({node:u,isLast:i})=>{s.push(u?y(n()):""),i||s.push([",",A,u&&bu(e,t)?F:""])},r),s}function Dp(e,t,r,n){let s=[];return e.each(({isLast:u,next:i})=>{s.push([r(),u?n:","]),u||s.push(bu(e,t)?[C,C]:d(i,x.Leading|x.Line)?C:A)},"elements"),St(s)}function fp(e,t,r){let{node:n}=e,s=Ce(n);if(s.length===0)return["(",M(e,t),")"];if(Cp(s))return["(",r(["arguments",0]),", ",r(["arguments",1]),")"];let u=!1,i=s.length-1,a=[];Sr(e,({node:c},f)=>{let l=r();f===i||(me(c,t)?(u=!0,l=[l,",",C,C]):l=[l,",",A]),a.push(l)});let p=!(n.type==="ImportExpression"||n.callee.type==="Import")&&le(t,"all")?",":"";function m(){return y(["(",E([A,...a]),p,A,")"],{shouldBreak:!0})}if(u||e.parent.type!=="Decorator"&&tu(s))return m();if(Fp(s)){let c=a.slice(1);if(c.some(K))return m();let f;try{f=r(Mn(n,0),{expandFirstArg:!0})}catch(l){if(l instanceof at)return m();throw l}return K(f)?[Te,qe([["(",y(f,{shouldBreak:!0}),", ",...c,")"],m()])]:qe([["(",f,", ",...c,")"],["(",y(f,{shouldBreak:!0}),", ",...c,")"],m()])}if(Ep(s,a,t)){let c=a.slice(0,-1);if(c.some(K))return m();let f;try{f=r(Mn(n,-1),{expandLastArg:!0})}catch(l){if(l instanceof at)return m();throw l}return K(f)?[Te,qe([["(",...c,y(f,{shouldBreak:!0}),")"],m()])]:qe([["(",...c,f,")"],["(",...c,y(f,{shouldBreak:!0}),")"],m()])}let D=["(",E([F,...a]),P(p),F,")"];return hr(e)?D:y(D,{shouldBreak:a.some(K)||u})}function er(e,t=!1){return ee(e)&&(e.properties.length>0||d(e))||G(e)&&(e.elements.length>0||d(e))||e.type==="TSTypeAssertion"&&er(e.expression)||Le(e)&&er(e.expression)||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!=="TSTypeReference"||dp(e.body))&&(e.body.type==="BlockStatement"||e.body.type==="ArrowFunctionExpression"&&er(e.body,!0)||ee(e.body)||G(e.body)||!t&&(k(e.body)||e.body.type==="ConditionalExpression")||Y(e.body))||e.type==="DoExpression"||e.type==="ModuleExpression"}function Ep(e,t,r){var u,i;let n=w(!1,e,-1);if(e.length===1){let a=w(!1,t,-1);if((u=a.label)!=null&&u.embed&&((i=a.label)==null?void 0:i.hug)!==!1)return!0}let s=w(!1,e,-2);return!d(n,x.Leading)&&!d(n,x.Trailing)&&er(n)&&(!s||s.type!==n.type)&&(e.length!==2||s.type!=="ArrowFunctionExpression"||!G(n))&&!(e.length>1&&es(n,r))}function Fp(e){if(e.length!==2)return!1;let[t,r]=e;return t.type==="ModuleExpression"&&Ap(r)?!0:!d(t)&&(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement")&&r.type!=="FunctionExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="ConditionalExpression"&&Pu(r)&&!er(r)}function Pu(e){var t;if(e.type==="ParenthesizedExpression")return Pu(e.expression);if(Le(e)||e.type==="TypeCastExpression"){let{typeAnnotation:r}=e;return r.type==="TypeAnnotation"&&(r=r.typeAnnotation),r.type==="TSArrayType"&&(r=r.elementType,r.type==="TSArrayType"&&(r=r.elementType)),(r.type==="GenericTypeAnnotation"||r.type==="TSTypeReference")&&((t=r.typeParameters)==null?void 0:t.params.length)===1&&(r=r.typeParameters.params[0]),wt(r)&&ge(e.expression,1)}return it(e)&&Ce(e).length>1?!1:ce(e)?ge(e.left,1)&&ge(e.right,1):wn(e)||ge(e)}function Cp(e){return e.length===2&&e[0].type==="ArrowFunctionExpression"&&X(e[0]).length===0&&e[0].body.type==="BlockStatement"&&e[1].type==="ArrayExpression"&&!e.some(t=>d(t))}function dp(e){return e.type==="BlockStatement"&&(e.body.some(t=>t.type!=="EmptyStatement")||d(e,x.Dangling))}function Ap(e){return e.type==="ObjectExpression"&&e.properties.length===1&&fe(e.properties[0])&&e.properties[0].key.type==="Identifier"&&e.properties[0].key.name==="type"&&Q(e.properties[0].value)&&e.properties[0].value.value==="module"}var tr=fp;function ku(e,t,r){var p;let n=r("object"),s=ts(e,t,r),{node:u,parent:i}=e,a=e.findAncestor(m=>!(J(m)||m.type==="TSNonNullExpression")),o=a&&(a.type==="NewExpression"||a.type==="BindExpression"||a.type==="AssignmentExpression"&&a.left.type!=="Identifier")||u.computed||u.object.type==="Identifier"&&u.property.type==="Identifier"&&!J(i)||(i.type==="AssignmentExpression"||i.type==="VariableDeclarator")&&(k(u.object)&&u.object.arguments.length>0||u.object.type==="TSNonNullExpression"&&k(u.object.expression)&&u.object.expression.arguments.length>0||((p=n.label)==null?void 0:p.memberChain));return et(n.label,[n,o?s:y(E([F,s]))])}function ts(e,t,r){let n=r("property"),{node:s}=e,u=$(e);return s.computed?!s.property||he(s.property)?[u,"[",n,"]"]:y([u,"[",E([F,n]),F,"]"]):[u,".",n]}function Tp(e,t,r){let{parent:n}=e,s=!n||n.type==="ExpressionStatement",u=[];function i(L){let{originalText:W}=t,se=Xe(W,O(L));return W.charAt(se)===")"?se!==!1&&kt(W,se+1):me(L,t)}function a(L){let{node:W}=L;k(W)&&(Dt(W.callee)||k(W.callee))?(u.unshift({node:W,printed:[pe(L,[$(L),Ve(L,t,r),tr(L,t,r)],t),i(W)?C:""]}),L.call(se=>a(se),"callee")):Dt(W)?(u.unshift({node:W,needsParens:we(L,t),printed:pe(L,J(W)?ts(L,t,r):Lr(L,t,r),t)}),L.call(se=>a(se),"object")):W.type==="TSNonNullExpression"?(u.unshift({node:W,printed:pe(L,"!",t)}),L.call(se=>a(se),"expression")):u.unshift({node:W,printed:r()})}let{node:o}=e;u.unshift({node:o,printed:[$(e),Ve(e,t,r),tr(e,t,r)]}),o.callee&&e.call(L=>a(L),"callee");let p=[],m=[u[0]],D=1;for(;D0&&p.push(m);function f(L){return/^[A-Z]|^[$_]+$/.test(L)}function l(L){return L.length<=t.tabWidth}function h(L){var An;let W=(An=L[1][0])==null?void 0:An.node.computed;if(L[0].length===1){let ar=L[0][0].node;return ar.type==="ThisExpression"||ar.type==="Identifier"&&(f(ar.name)||s&&l(ar.name)||W)}let se=w(!1,L[0],-1).node;return J(se)&&se.property.type==="Identifier"&&(f(se.property.name)||W)}let g=p.length>=2&&!d(p[1][0].node)&&h(p);function S(L){let W=L.map(se=>se.printed);return L.length>0&&w(!1,L,-1).needsParens?["(",...W,")"]:W}function I(L){return L.length===0?"":E(y([C,B(C,L.map(S))]))}let v=p.map(S),_=v,R=g?3:2,T=p.flat(),N=T.slice(1,-1).some(L=>d(L.node,x.Leading))||T.slice(0,-1).some(L=>d(L.node,x.Trailing))||p[R]&&d(p[R][0].node,x.Leading);if(p.length<=R&&!N)return hr(e)?_:y(_);let Se=w(!1,p[g?1:0],-1).node,V=!k(Se)&&i(Se),Be=[S(p[0]),g?p.slice(1,2).map(S):"",V?C:"",I(p.slice(g?2:1))],Ee=u.map(({node:L})=>L).filter(k);function Cn(){let L=w(!1,w(!1,p,-1),-1).node,W=w(!1,v,-1);return k(L)&&K(W)&&Ee.slice(0,-1).some(se=>se.arguments.some(It))}let dn;return N||Ee.length>2&&Ee.some(L=>!L.arguments.every(W=>ge(W)))||v.slice(0,-1).some(K)||Cn()?dn=y(Be):dn=[K(_)||V?Te:"",qe([_,Be])],et({memberChain:!0},dn)}var Iu=Tp;function wr(e,t,r){var D;let{node:n,parent:s}=e,u=n.type==="NewExpression",i=n.type==="ImportExpression",a=$(e),o=Ce(n),p=o.length===1&&xr(o[0],t.originalText);if(p||o.length>0&&!u&&!i&&(xp(n,s)||Ct(n,s))){let c=[];if(Sr(e,()=>{c.push(r())}),!(p&&((D=c[0].label)!=null&&D.embed)))return[u?"new ":"",r("callee"),a,Ve(e,t,r),"(",B(", ",c),")"]}if(!i&&!u&&Dt(n.callee)&&!e.call(c=>we(c,t),"callee"))return Iu(e,t,r);let m=[u?"new ":"",i?"import":r("callee"),a,Ve(e,t,r),tr(e,t,r)];return i||k(n.callee)?y(m):m}function xp(e,t){if(e.callee.type!=="Identifier")return!1;if(e.callee.name==="require"){let r=Ce(e);return r.length===1&&Q(r[0])||r.length>1}if(e.callee.name==="define"){let r=Ce(e);return t.type==="ExpressionStatement"&&(r.length===1||r.length===2&&r[0].type==="ArrayExpression"||r.length===3&&Q(r[0])&&r[1].type==="ArrayExpression")}return!1}function gp(e,t,r){let n=t==='"'?"'":'"',u=H(!1,e,/\\(.)|(["'])/gs,(i,a,o)=>a===n?a:o===t?"\\"+o:o||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(a)?a:"\\"+a));return t+u+t}var Lu=gp;function hp(e,t){let r=e.slice(1,-1),n=t.parser==="json"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":br(r,t.singleQuote);return Lu(r,n,!(t.parser==="css"||t.parser==="less"||t.parser==="scss"||t.__embeddedInHtml))}var Tt=hp;function Sp(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}var He=Sp;function vu(e,t){let{node:r}=e;switch(r.type){case"RegExpLiteral":return wu(r);case"BigIntLiteral":return Or(r.extra.raw);case"NumericLiteral":return He(r.extra.raw);case"StringLiteral":return xe(Tt(r.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(r.value);case"DecimalLiteral":return He(r.value)+"m";case"DirectiveLiteral":return Ou(r.extra.raw,t);case"Literal":{if(r.regex)return wu(r.regex);if(r.bigint)return Or(r.raw);if(r.decimal)return He(r.decimal)+"m";let{value:n}=r;return typeof n=="number"?He(r.raw):typeof n=="string"?Bp(e)?Ou(r.raw,t):xe(Tt(r.raw,t)):String(n)}}}function Bp(e){if(e.key!=="expression")return;let{parent:t}=e;return t.type==="ExpressionStatement"&&t.directive}function Or(e){return e.toLowerCase()}function wu({pattern:e,flags:t}){return t=[...t].sort().join(""),`/${e}/${t}`}function Ou(e,t){let r=e.slice(1,-1);if(r.includes('"')||r.includes("'"))return e;let n=t.singleQuote?"'":'"';return n+r+n}var vr=j(["Literal","BigIntLiteral","BooleanLiteral","DecimalLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]);function ft(e,t,r,n,s,u){let i=bp(e,t,r,n,u),a=u?r(u,{assignmentLayout:i}):"";switch(i){case"break-after-operator":return y([y(n),s,y(E([A,a]))]);case"never-break-after-operator":return y([y(n),s," ",a]);case"fluid":{let o=Symbol("assignment");return y([y(n),s,y(E(A),{id:o}),Ae,mt(a,{groupId:o})])}case"break-lhs":return y([n,s," ",y(a)]);case"chain":return[y(n),s,A,a];case"chain-tail":return[y(n),s,E([A,a])];case"chain-tail-arrow-chain":return[y(n),s,a];case"only-left":return n}}function ju(e,t,r){let{node:n}=e;return ft(e,t,r,r("left"),[" ",n.operator],"right")}function Mu(e,t,r){return ft(e,t,r,r("id")," =","init")}function bp(e,t,r,n,s){let{node:u}=e,i=u[s];if(!i)return"only-left";let a=!_r(i);if(e.match(_r,Ru,D=>!a||D.type!=="ExpressionStatement"&&D.type!=="VariableDeclaration"))return a?i.type==="ArrowFunctionExpression"&&i.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!a&&_r(i.right)||Ie(t.originalText,i))return"break-after-operator";if(i.type==="CallExpression"&&i.callee.name==="require"||t.parser==="json5"||t.parser==="json")return"never-break-after-operator";if(kp(u)||Ip(u)||Op(u)||rs(u)&&Rs(n))return"break-lhs";let m=Mp(u,n,t);return e.call(()=>Pp(e,t,r,m),s)?"break-after-operator":m||i.type==="TemplateLiteral"||i.type==="TaggedTemplateExpression"||i.type==="BooleanLiteral"||he(i)||i.type==="ClassExpression"?"never-break-after-operator":"fluid"}function Pp(e,t,r,n){let s=e.node;if(ce(s)&&!Ot(s))return!0;switch(s.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"ConditionalExpression":{let{test:a}=s;return ce(a)&&!Ot(a)}case"ClassExpression":return b(s.decorators)}if(n)return!1;let u=s,i=[];for(;;)if(u.type==="UnaryExpression"||u.type==="AwaitExpression"||u.type==="YieldExpression"&&u.argument!==null)u=u.argument,i.push("argument");else if(u.type==="TSNonNullExpression")u=u.expression,i.push("expression");else break;return!!(Q(u)||e.call(()=>Ju(e,t,r),...i))}function kp(e){if(Ru(e)){let t=e.left||e.id;return t.type==="ObjectPattern"&&t.properties.length>2&&t.properties.some(r=>{var n;return fe(r)&&(!r.shorthand||((n=r.value)==null?void 0:n.type)==="AssignmentPattern")})}return!1}function _r(e){return e.type==="AssignmentExpression"}function Ru(e){return _r(e)||e.type==="VariableDeclarator"}function Ip(e){let t=wp(e);if(b(t)){let r=e.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(t.length>1&&t.some(n=>n[r]||n.default))return!0}return!1}var Lp=j(["TSTypeAliasDeclaration","TypeAlias"]);function wp(e){var t;if(Lp(e))return(t=e.typeParameters)==null?void 0:t.params}function Op(e){if(e.type!=="VariableDeclarator")return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let r=_u(t.typeAnnotation);return b(r)&&r.length>1&&r.some(n=>b(_u(n))||n.type==="TSConditionalType")}function rs(e){var t;return e.type==="VariableDeclarator"&&((t=e.init)==null?void 0:t.type)==="ArrowFunctionExpression"}var vp=j(["TSTypeReference","GenericTypeAnnotation"]);function _u(e){var t;if(vp(e))return(t=e.typeParameters)==null?void 0:t.params}function Ju(e,t,r,n=!1){var i;let{node:s}=e,u=()=>Ju(e,t,r,!0);if(s.type==="ChainExpression"||s.type==="TSNonNullExpression")return e.call(u,"expression");if(k(s)){if((i=wr(e,t,r).label)!=null&&i.memberChain)return!1;let o=Ce(s);return!(o.length===0||o.length===1&&jp(o[0],t))||Rp(s,r)?!1:e.call(u,"callee")}return J(s)?e.call(u,"object"):n&&(s.type==="Identifier"||s.type==="ThisExpression")}var _p=.25;function jp(e,{printWidth:t}){if(d(e))return!1;let r=t*_p;if(e.type==="ThisExpression"||e.type==="Identifier"&&e.name.length<=r||Ar(e)&&!d(e.argument))return!0;let n=e.type==="Literal"&&"regex"in e&&e.regex.pattern||e.type==="RegExpLiteral"&&e.pattern;return n?n.length<=r:Q(e)?oe(e).length<=r:e.type==="TemplateLiteral"?e.expressions.length===0&&e.quasis[0].value.raw.length<=r&&!e.quasis[0].value.raw.includes(` +`):vr(e)}function Mp(e,t,r){if(!fe(e))return!1;t=Bt(t);let n=3;return typeof t=="string"&&tt(t)1)return!0;if(r.length===1){let s=r[0];if(s.type==="TSUnionType"||s.type==="UnionTypeAnnotation"||s.type==="TSIntersectionType"||s.type==="IntersectionTypeAnnotation"||s.type==="TSTypeLiteral"||s.type==="ObjectTypeAnnotation")return!0}let n=e.typeParameters?"typeParameters":"typeArguments";if(K(t(n)))return!0}return!1}function Jp(e){var t;return(t=e.typeParameters??e.typeArguments)==null?void 0:t.params}function ot(e,t,r,n,s){let u=e.node,i=X(u),a=s?Ve(e,r,t):"";if(i.length===0)return[a,"(",M(e,r,{filter:l=>$e(r.originalText,O(l))===")"}),")"];let{parent:o}=e,p=Ct(o),m=ns(u),D=[];if(uu(e,(l,h)=>{let g=h===i.length-1;g&&u.rest&&D.push("..."),D.push(t()),!g&&(D.push(","),p||m?D.push(" "):me(i[h],r)?D.push(C,C):D.push(A))}),n&&!Up(e)){if(K(a)||K(D))throw new at;return y([Ut(a),"(",Ut(D),")"])}let c=i.every(l=>!b(l.decorators));return m&&c?[a,"(",...D,")"]:p?[a,"(",...D,")"]:(Tr(o)||Zs(o)||o.type==="TypeAlias"||o.type==="UnionTypeAnnotation"||o.type==="TSUnionType"||o.type==="IntersectionTypeAnnotation"||o.type==="FunctionTypeAnnotation"&&o.returnType===u)&&i.length===1&&i[0].name===null&&u.this!==i[0]&&i[0].typeAnnotation&&u.typeParameters===null&&wt(i[0].typeAnnotation)&&!u.rest?r.arrowParens==="always"?["(",...D,")"]:D:[a,"(",E([F,...D]),P(!su(u)&&le(r,"all")?",":""),F,")"]}function ns(e){if(!e)return!1;let t=X(e);if(t.length!==1)return!1;let[r]=t;return!d(r)&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&ke(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&ke(r.typeAnnotation)&&r!==e.rest||r.type==="AssignmentPattern"&&(r.left.type==="ObjectPattern"||r.left.type==="ArrayPattern")&&(r.right.type==="Identifier"||ee(r.right)&&r.right.properties.length===0||G(r.right)&&r.right.elements.length===0))}function Np(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function xt(e,t){var s;let r=Np(e);if(!r)return!1;let n=(s=e.typeParameters)==null?void 0:s.params;if(n){if(n.length>1)return!1;if(n.length===1){let u=n[0];if(u.constraint||u.default)return!1}}return X(e).length===1&&(ke(r)||K(t))}function Up(e){return e.match(t=>t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement",(t,r)=>{if(t.type==="CallExpression"&&r==="arguments"&&t.arguments.length===1&&t.callee.type==="CallExpression"){let n=t.callee.callee;return n.type==="Identifier"||n.type==="MemberExpression"&&!n.computed&&n.object.type==="Identifier"&&n.property.type==="Identifier"}return!1},(t,r)=>t.type==="VariableDeclarator"&&r==="init"||t.type==="ExportDefaultDeclaration"&&r==="declaration"||t.type==="TSExportAssignment"&&r==="expression"||t.type==="AssignmentExpression"&&r==="right"&&t.left.type==="MemberExpression"&&t.left.object.type==="Identifier"&&t.left.object.name==="module"&&t.left.property.type==="Identifier"&&t.left.property.name==="exports",t=>t.type!=="VariableDeclaration"||t.kind==="const"&&t.declarations.length===1)}function Nu(e){let t=X(e);return t.length>1&&t.some(r=>r.type==="TSParameterProperty")}function ss(e){if(wt(e)||ke(e))return!0;if(e.type==="UnionTypeAnnotation"||e.type==="TSUnionType"){let t=e.types.filter(s=>s.type==="VoidTypeAnnotation"||s.type==="TSVoidKeyword"||s.type==="NullLiteralTypeAnnotation"||s.type==="TSNullKeyword").length,r=e.types.some(s=>s.type==="ObjectTypeAnnotation"||s.type==="TSTypeLiteral"||s.type==="GenericTypeAnnotation"||s.type==="TSTypeReference"),n=e.types.some(s=>d(s));if(e.types.length-1===t&&r&&!n)return!0}return!1}function Uu(e,t,r){let n=t.semi?";":"",{node:s}=e,u=[Z(e),"opaque type ",r("id"),r("typeParameters")];return s.supertype&&u.push(": ",r("supertype")),s.impltype&&u.push(" = ",r("impltype")),u.push(n),u}function jr(e,t,r){let n=t.semi?";":"",{node:s}=e,u=[Z(e)];u.push("type ",r("id"),r("typeParameters"));let i=s.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[ft(e,t,r,u," =",i),n]}function Mr(e,t,r){let n=!1;return y(e.map(({isFirst:s,previous:u,node:i,index:a})=>{let o=r();if(s)return o;let p=ke(i),m=ke(u);return m&&p?[" & ",n?E(o):o]:!m&&!p?E([" &",A,o]):(a>1&&(n=!0),[" & ",a>1?E(o):o])},"types"))}function Rr(e,t,r){let{node:n}=e,{parent:s}=e,u=s.type!=="TypeParameterInstantiation"&&s.type!=="TSTypeParameterInstantiation"&&s.type!=="GenericTypeAnnotation"&&s.type!=="TSTypeReference"&&s.type!=="TSTypeAssertion"&&s.type!=="TupleTypeAnnotation"&&s.type!=="TSTupleType"&&!(s.type==="FunctionTypeParam"&&!s.name&&e.grandparent.this!==s)&&!((s.type==="TypeAlias"||s.type==="VariableDeclarator"||s.type==="TSTypeAliasDeclaration")&&Ie(t.originalText,n)),i=ss(n),a=e.map(m=>{let D=r();return i||(D=De(2,D)),pe(m,D,t)},"types");if(i)return B(" | ",a);let o=u&&!Ie(t.originalText,n),p=[P([o?A:"","| "]),B([A,"| "],a)];return we(e,t)?y([E(p),F]):(s.type==="TupleTypeAnnotation"||s.type==="TSTupleType")&&s[s.type==="TupleTypeAnnotation"&&s.types?"types":"elementTypes"].length>1?y([E([P(["(",F]),p]),F,P(")")]):y(u?E(p):p)}function Gp(e){var n;let{node:t,parent:r}=e;return t.type==="FunctionTypeAnnotation"&&(Tr(r)||!((r.type==="ObjectTypeProperty"||r.type==="ObjectTypeInternalSlot")&&!r.variance&&!r.optional&&yt(r,t)||r.type==="ObjectTypeCallProperty"||((n=e.getParentNode(2))==null?void 0:n.type)==="DeclareFunction"))}function Jr(e,t,r){let{node:n}=e,s=[_t(e)];(n.type==="TSConstructorType"||n.type==="TSConstructSignatureDeclaration")&&s.push("new ");let u=ot(e,r,t,!1,!0),i=[];return n.type==="FunctionTypeAnnotation"?i.push(Gp(e)?" => ":": ",r("returnType")):i.push(q(e,r,n.returnType?"returnType":"typeAnnotation")),xt(n,i)&&(u=y(u)),s.push(u,i),y(s)}function Nr(e,t,r){return[r("objectType"),$(e),"[",r("indexType"),"]"]}function Ur(e,t,r){return["infer ",r("typeParameter")]}function us(e,t,r){let{node:n}=e;return[n.postfix?"":r,q(e,t),n.postfix?r:""]}function Gr(e,t,r){let{node:n}=e;return["...",...n.type==="TupleTypeSpreadElement"&&n.label?[r("label"),": "]:[],r("typeAnnotation")]}function qr(e,t,r){let{node:n}=e;return[n.variance?r("variance"):"",r("label"),n.optional?"?":"",": ",r("elementType")]}var qp=new WeakSet;function q(e,t,r="typeAnnotation"){let{node:{[r]:n}}=e;if(!n)return"";let s=!1;if(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation"){let u=e.call(Gu,r);(u==="=>"||u===":"&&d(n,x.Leading))&&(s=!0),qp.add(n)}return s?[" ",t(r)]:t(r)}var Gu=e=>e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>(r==="returnType"||r==="typeAnnotation")&&(t.type==="TSFunctionType"||t.type==="TSConstructorType"))?"=>":e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>r==="typeAnnotation"&&(t.type==="TSJSDocNullableType"||t.type==="TSJSDocNonNullableType"||t.type==="TSTypePredicate"))||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareFunction")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="bound"&&t.type==="TypeParameter"&&t.usesExtendsBound)?"":":";function Wr(e,t,r){let n=Gu(e);return n?[n," ",r("typeAnnotation")]:r("typeAnnotation")}function Yr(e){return[e("elementType"),"[]"]}function Xr({node:e},t){return["typeof ",...e.type==="TSTypeQuery"?[t("exprName"),t("typeParameters")]:[t("argument")]]}function $r(e,t){let{node:r}=e;return[r.asserts?"asserts ":"",t("parameterName"),r.typeAnnotation?[" is ",q(e,t)]:""]}function $(e){let{node:t}=e;return!t.optional||t.type==="Identifier"&&t===e.parent.key?"":k(t)||J(t)&&t.computed||t.type==="OptionalIndexedAccessType"?"?.":"?"}function Vr(e){return e.node.definite||e.match(void 0,(t,r)=>r==="id"&&t.type==="VariableDeclarator"&&t.definite)?"!":""}var Wp=new Set(["DeclareClass","DeclareFunction","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]);function Z(e){let{node:t}=e;return t.declare||Wp.has(t.type)&&e.parent.type!=="DeclareExportDeclaration"?"declare ":""}var Yp=new Set(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function _t({node:e}){return e.abstract||Yp.has(e.type)?"abstract ":""}function Ve(e,t,r){let n=e.node;return n.typeArguments?r("typeArguments"):n.typeParameters?r("typeParameters"):""}function Lr(e,t,r){return["::",r("callee")]}function pt(e,t,r){return e.type==="EmptyStatement"?";":e.type==="BlockStatement"||r?[" ",t]:E([A,t])}function Hr(e,t){return["...",t("argument"),q(e,t)]}function jt(e){return e.accessibility?e.accessibility+" ":""}function is(e,t,r){let{node:n}=e;return y([B(A,e.map(r,"decorators")),Yu(n,t)?C:A])}function qu(e,t,r){return Xu(e.node)?[B(C,e.map(r,"declaration","decorators")),C]:""}function Wu(e,t,r){let{node:n,parent:s}=e,{decorators:u}=n;if(!b(u)||Xu(s)||kr(e))return"";let i=n.type==="ClassExpression"||n.type==="ClassDeclaration"||Yu(n,t);return[e.key==="declaration"&&Qs(s)?C:i?Te:"",B(A,e.map(r,"decorators")),A]}function Yu(e,t){return e.decorators.some(r=>z(t.originalText,O(r)))}function Xu(e){var r;if(e.type!=="ExportDefaultDeclaration"&&e.type!=="ExportNamedDeclaration"&&e.type!=="DeclareExportDeclaration")return!1;let t=(r=e.declaration)==null?void 0:r.decorators;return b(t)&&yt(e,t[0])}function $u(e,t,r){let{node:n}=e;return["import",n.module?" module":"",os(n),Ku(e,t,r),Hu(e,t,r),Qu(e,t,r),t.semi?";":""]}var Vu=e=>e.type==="ExportDefaultDeclaration"||e.type==="DeclareExportDeclaration"&&e.default;function Kr(e,t,r){let{node:n}=e,s=[qu(e,t,r),Z(e),"export",Vu(n)?" default":""],{declaration:u,exported:i}=n;return d(n,x.Dangling)&&(s.push(" ",M(e,t)),gr(n)&&s.push(C)),u?s.push(" ",r("declaration")):(s.push(Vp(n)),n.type==="ExportAllDeclaration"||n.type==="DeclareExportAllDeclaration"?(s.push(" *"),i&&s.push(" as ",r("exported"))):s.push(Ku(e,t,r)),s.push(Hu(e,t,r),Qu(e,t,r))),s.push($p(n,t)),s}var Xp=j(["ClassDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareFunction","TSDeclareFunction","EnumDeclaration"]);function $p(e,t){return t.semi&&(!e.declaration||Vu(e)&&!Xp(e.declaration))?";":""}function as(e,t=!0){return e&&e!=="value"?`${t?" ":""}${e}${t?"":" "}`:""}function os(e,t){return as(e.importKind,t)}function Vp(e){return as(e.exportKind)}function Hu(e,t,r){let{node:n}=e;if(!n.source)return"";let s=[];return zu(n,t)||s.push(" from"),s.push(" ",r("source")),s}function Ku(e,t,r){let{node:n}=e;if(zu(n,t))return"";let s=[" "];if(b(n.specifiers)){let u=[],i=[];e.each(()=>{let a=e.node.type;if(a==="ExportNamespaceSpecifier"||a==="ExportDefaultSpecifier"||a==="ImportNamespaceSpecifier"||a==="ImportDefaultSpecifier")u.push(r());else if(a==="ExportSpecifier"||a==="ImportSpecifier")i.push(r());else throw new Oe(n,"specifier")},"specifiers"),s.push(B(", ",u)),i.length>0&&(u.length>0&&s.push(", "),i.length>1||u.length>0||n.specifiers.some(o=>d(o))?s.push(y(["{",E([t.bracketSpacing?A:F,B([",",A],i)]),P(le(t)?",":""),t.bracketSpacing?A:F,"}"])):s.push(["{",t.bracketSpacing?" ":"",...i,t.bracketSpacing?" ":"","}"]))}else s.push("{}");return s}function zu(e,t){let{type:r,importKind:n,source:s,specifiers:u}=e;return r!=="ImportDeclaration"||b(u)||n==="type"?!1:!/{\s*}/.test(t.originalText.slice(U(e),U(s)))}function Qu(e,t,r){var i;let{node:n}=e,s=b(n.attributes)?"attributes":b(n.assertions)?"assertions":void 0;return s?[` ${s==="assertions"||(i=n.extra)!=null&&i.deprecatedAssertSyntax?"assert":"with"} {`,t.bracketSpacing?" ":"",B(", ",e.map(r,s)),t.bracketSpacing?" ":"","}"]:""}function Zu(e,t,r){let{node:n}=e,{type:s}=n,u=s.startsWith("Import"),i=u?"imported":"local",a=u?"local":"exported",o=n[i],p=n[a],m="",D="";return s==="ExportNamespaceSpecifier"||s==="ImportNamespaceSpecifier"?m="*":o&&(m=r(i)),p&&!Hp(n)&&(D=r(a)),[as(s==="ImportSpecifier"?n.importKind:n.exportKind,!1),m,m&&D?" as ":"",D]}function Hp(e){if(e.type!=="ImportSpecifier"&&e.type!=="ExportSpecifier")return!1;let{local:t,[e.type==="ImportSpecifier"?"imported":"exported"]:r}=e;if(t.type!==r.type||!Xs(t,r))return!1;if(Q(t))return t.value===r.value&&oe(t)===oe(r);switch(t.type){case"Identifier":return t.name===r.name;default:return!1}}function Kp(e){let t=[e];for(let r=0;rc[V]===n),l=c.type===n.type&&!f,h,g,S=0;do g=h||n,h=e.getParentNode(S),S++;while(h&&h.type===n.type&&a.every(V=>h[V]!==g));let I=h||c,v=g;if(s&&(Y(n[a[0]])||Y(o)||Y(p)||Kp(v))){D=!0,l=!0;let V=Ee=>[P("("),E([F,Ee]),F,P(")")],Be=Ee=>Ee.type==="NullLiteral"||Ee.type==="Literal"&&Ee.value===null||Ee.type==="Identifier"&&Ee.name==="undefined";m.push(" ? ",Be(o)?r(u):V(r(u))," : ",p.type===n.type||Be(p)?r(i):V(r(i)))}else{let V=[A,"? ",o.type===n.type?P("","("):"",De(2,r(u)),o.type===n.type?P("",")"):"",A,": ",p.type===n.type?r(i):De(2,r(i))];m.push(c.type!==n.type||c[i]===n||f?V:t.useTabs?Os(E(V)):De(Math.max(0,t.tabWidth-2),V))}let _=[u,i,...a].some(V=>d(n[V],Be=>ae(Be)&&rt(t.originalText,U(Be),O(Be)))),R=V=>c===I?y(V,{shouldBreak:_}):_?[V,Te]:V,T=!D&&(J(c)||c.type==="NGPipeExpression"&&c.left===n)&&!c.computed,N=Zp(e),Se=R([zp(e,t,r),l?m:E(m),s&&T&&!N?F:""]);return f||N?y([E([F,Se]),F]):Se}function ec(e,t,r=0){let n=0;for(let s=r;s0&&o(i),f()}function c(){a>0&&p(a),f()}function f(){i=0,a=0}}function ls(e){let t=0,r=0,n=e.length;e:for(;n--;){let s=e[n];if(s===rr){r++;continue}for(let u=s.length-1;u>=0;u--){let i=s[u];if(i===" "||i===" ")t++;else{e[n]=s.slice(0,u+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(rr);return t}function Zr(e,t,r,n,s,u){if(r===Number.POSITIVE_INFINITY)return!0;let i=t.length,a=[e],o=[];for(;r>=0;){if(a.length===0){if(i===0)return!0;a.push(t[--i]);continue}let{mode:p,doc:m}=a.pop();switch(Ze(m)){case Ke:o.push(m),r-=tt(m);break;case je:case De:{let y=Dr(m);for(let c=y.length-1;c>=0;c--)a.push({mode:p,doc:y[c]});break}case Me:case Re:case Je:case be:a.push({mode:p,doc:m.contents});break;case Qe:r+=ls(o);break;case ue:{if(u&&m.break)return!1;let y=m.break?Ce:p,c=m.expandedStates&&y===Ce?w(!1,m.expandedStates,-1):m.contents;a.push({mode:y,doc:c});break}case Fe:{let c=(m.groupId?s[m.groupId]||rt:p)===Ce?m.breakContents:m.flatContents;c&&a.push({mode:p,doc:c});break}case ie:if(p===Ce||m.hard)return!0;m.soft||(o.push(" "),r--);break;case Ne:n=!0;break;case Ue:if(n)return!1;break}}return!1}function ms(e,t){let r={},n=t.printWidth,s=ni(t.endOfLine),u=0,i=[{ind:si(),mode:Ce,doc:e}],a=[],o=!1,p=[],m=0;for(Rs(e);i.length>0;){let{ind:c,mode:f,doc:l}=i.pop();switch(Ze(l)){case Ke:{let h=s!==` +`}}var de=Symbol("MODE_BREAK"),nt=Symbol("MODE_FLAT"),rr=Symbol("cursor");function ni(){return{value:"",length:0,queue:[]}}function rc(e,t){return ps(e,{type:"indent"},t)}function nc(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||ni():t<0?ps(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:ps(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function ps(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],s="",u=0,i=0,a=0;for(let l of n)switch(l.type){case"indent":m(),r.useTabs?o(1):p(r.tabWidth);break;case"stringAlign":m(),s+=l.n,u+=l.n.length;break;case"numberAlign":i+=1,a+=l.n;break;default:throw new Error(`Unexpected type '${l.type}'`)}return c(),{...e,value:s,length:u,queue:n};function o(l){s+=" ".repeat(l),u+=r.tabWidth*l}function p(l){s+=" ".repeat(l),u+=l}function m(){r.useTabs?D():c()}function D(){i>0&&o(i),f()}function c(){a>0&&p(a),f()}function f(){i=0,a=0}}function cs(e){let t=0,r=0,n=e.length;e:for(;n--;){let s=e[n];if(s===rr){r++;continue}for(let u=s.length-1;u>=0;u--){let i=s[u];if(i===" "||i===" ")t++;else{e[n]=s.slice(0,u+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(rr);return t}function zr(e,t,r,n,s,u){if(r===Number.POSITIVE_INFINITY)return!0;let i=t.length,a=[e],o=[];for(;r>=0;){if(a.length===0){if(i===0)return!0;a.push(t[--i]);continue}let{mode:p,doc:m}=a.pop();switch(Ze(m)){case Ke:o.push(m),r-=tt(m);break;case je:case ye:{let D=mr(m);for(let c=D.length-1;c>=0;c--)a.push({mode:p,doc:D[c]});break}case Me:case Re:case Je:case be:a.push({mode:p,doc:m.contents});break;case Qe:r+=cs(o);break;case ue:{if(u&&m.break)return!1;let D=m.break?de:p,c=m.expandedStates&&D===de?w(!1,m.expandedStates,-1):m.contents;a.push({mode:D,doc:c});break}case Fe:{let c=(m.groupId?s[m.groupId]||nt:p)===de?m.breakContents:m.flatContents;c&&a.push({mode:p,doc:c});break}case ie:if(p===de||m.hard)return!0;m.soft||(o.push(" "),r--);break;case Ne:n=!0;break;case Ue:if(n)return!1;break}}return!1}function ls(e,t){let r={},n=t.printWidth,s=ri(t.endOfLine),u=0,i=[{ind:ni(),mode:de,doc:e}],a=[],o=!1,p=[],m=0;for(Ms(e);i.length>0;){let{ind:c,mode:f,doc:l}=i.pop();switch(Ze(l)){case Ke:{let h=s!==` `?H(!1,l,` -`,s):l;a.push(h),i.length>0&&(u+=tt(h));break}case je:for(let h=l.length-1;h>=0;h--)i.push({ind:c,mode:f,doc:l[h]});break;case ze:if(m>=2)throw new Error("There are too many 'cursor' in doc.");a.push(rr),m++;break;case Me:i.push({ind:rc(c,t),mode:f,doc:l.contents});break;case Re:i.push({ind:nc(c,l.n,t),mode:f,doc:l.contents});break;case Qe:u-=ls(a);break;case ue:switch(f){case rt:if(!o){i.push({ind:c,mode:l.break?Ce:rt,doc:l.contents});break}case Ce:{o=!1;let h={ind:c,mode:rt,doc:l.contents},g=n-u,S=p.length>0;if(!l.break&&Zr(h,i,g,S,r))i.push(h);else if(l.expandedStates){let I=w(!1,l.expandedStates,-1);if(l.break){i.push({ind:c,mode:Ce,doc:I});break}else for(let v=1;v=l.expandedStates.length){i.push({ind:c,mode:Ce,doc:I});break}else{let _=l.expandedStates[v],R={ind:c,mode:rt,doc:_};if(Zr(R,i,g,S,r)){i.push(R);break}}}else i.push({ind:c,mode:Ce,doc:l.contents});break}}l.id&&(r[l.id]=w(!1,i,-1).mode);break;case De:{let h=n-u,{parts:g}=l;if(g.length===0)break;let[S,I]=g,v={ind:c,mode:rt,doc:S},_={ind:c,mode:Ce,doc:S},R=Zr(v,[],h,p.length>0,r,!0);if(g.length===1){R?i.push(v):i.push(_);break}let T={ind:c,mode:rt,doc:I},N={ind:c,mode:Ce,doc:I};if(g.length===2){R?i.push(T,v):i.push(N,_);break}g.splice(0,2);let Se={ind:c,mode:f,doc:St(g)},$=g[0];Zr({ind:c,mode:rt,doc:[S,I,$]},[],h,p.length>0,r,!0)?i.push(Se,T,v):R?i.push(Se,N,v):i.push(Se,N,_);break}case Fe:case Je:{let h=l.groupId?r[l.groupId]:f;if(h===Ce){let g=l.type===Fe?l.breakContents:l.negate?l.contents:E(l.contents);g&&i.push({ind:c,mode:f,doc:g})}if(h===rt){let g=l.type===Fe?l.flatContents:l.negate?E(l.contents):l.contents;g&&i.push({ind:c,mode:f,doc:g})}break}case Ne:p.push({ind:c,mode:f,doc:l.contents});break;case Ue:p.length>0&&i.push({ind:c,mode:f,doc:bn});break;case ie:switch(f){case rt:if(l.hard)o=!0;else{l.soft||(a.push(" "),u+=1);break}case Ce:if(p.length>0){i.push({ind:c,mode:f,doc:l},...p.reverse()),p.length=0;break}l.literal?c.root?(a.push(s,c.root.value),u=c.root.length):(a.push(s),u=0):(u-=ls(a),a.push(s+c.value),u=c.length);break}break;case be:i.push({ind:c,mode:f,doc:l.contents});break;case Pe:break;default:throw new ct(l)}i.length===0&&p.length>0&&(i.push(...p.reverse()),p.length=0)}let y=a.indexOf(rr);if(y!==-1){let c=a.indexOf(rr,y+1),f=a.slice(0,y).join(""),l=a.slice(y+1,c).join(""),h=a.slice(c+1).join("");return{formatted:f+l+h,cursorNodeStart:f.length,cursorNodeText:l}}return{formatted:a.join("")}}function en(e,t,r){let{node:n}=e;if(n.type==="TemplateLiteral"&&ic(e)){let m=sc(e,r,t);if(m)return m}let u="expressions";n.type==="TSTemplateLiteralType"&&(u="types");let i=[],a=e.map(t,u),o=tu(n);o&&(a=a.map(m=>ms(m,{...r,printWidth:Number.POSITIVE_INFINITY}).formatted)),i.push(de,"`");let p=0;return e.each(({index:m,node:y})=>{if(i.push(t()),y.tail)return;let{tabWidth:c}=r,f=y.value.raw,l=f.includes(` -`)?ri(f,c):p;p=l;let h=a[m];if(!o){let S=n[u][m];(d(S)||J(S)||S.type==="ConditionalExpression"||S.type==="SequenceExpression"||Le(S)||ce(S))&&(h=[E([F,h]),F])}let g=l===0&&f.endsWith(` -`)?ye(Number.NEGATIVE_INFINITY,h):_s(h,l,c);i.push(D(["${",g,de,"}"]))},"quasis"),i.push("`"),i}function ui(e){let t=e("quasi");return et(t.label&&{tagged:!0,...t.label},[e("tag"),e("typeParameters"),de,t])}function sc(e,t,r){let{node:n}=e,s=n.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(s.length>1||s.some(u=>u.length>0)){t.__inJestEach=!0;let u=e.map(r,"expressions");t.__inJestEach=!1;let i=[],a=u.map(c=>"${"+ms(c,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),o=[{hasLineBreak:!1,cells:[]}];for(let c=1;c0&&(u+=tt(h));break}case je:for(let h=l.length-1;h>=0;h--)i.push({ind:c,mode:f,doc:l[h]});break;case ze:if(m>=2)throw new Error("There are too many 'cursor' in doc.");a.push(rr),m++;break;case Me:i.push({ind:rc(c,t),mode:f,doc:l.contents});break;case Re:i.push({ind:nc(c,l.n,t),mode:f,doc:l.contents});break;case Qe:u-=cs(a);break;case ue:switch(f){case nt:if(!o){i.push({ind:c,mode:l.break?de:nt,doc:l.contents});break}case de:{o=!1;let h={ind:c,mode:nt,doc:l.contents},g=n-u,S=p.length>0;if(!l.break&&zr(h,i,g,S,r))i.push(h);else if(l.expandedStates){let I=w(!1,l.expandedStates,-1);if(l.break){i.push({ind:c,mode:de,doc:I});break}else for(let v=1;v=l.expandedStates.length){i.push({ind:c,mode:de,doc:I});break}else{let _=l.expandedStates[v],R={ind:c,mode:nt,doc:_};if(zr(R,i,g,S,r)){i.push(R);break}}}else i.push({ind:c,mode:de,doc:l.contents});break}}l.id&&(r[l.id]=w(!1,i,-1).mode);break;case ye:{let h=n-u,{parts:g}=l;if(g.length===0)break;let[S,I]=g,v={ind:c,mode:nt,doc:S},_={ind:c,mode:de,doc:S},R=zr(v,[],h,p.length>0,r,!0);if(g.length===1){R?i.push(v):i.push(_);break}let T={ind:c,mode:nt,doc:I},N={ind:c,mode:de,doc:I};if(g.length===2){R?i.push(T,v):i.push(N,_);break}g.splice(0,2);let Se={ind:c,mode:f,doc:St(g)},V=g[0];zr({ind:c,mode:nt,doc:[S,I,V]},[],h,p.length>0,r,!0)?i.push(Se,T,v):R?i.push(Se,N,v):i.push(Se,N,_);break}case Fe:case Je:{let h=l.groupId?r[l.groupId]:f;if(h===de){let g=l.type===Fe?l.breakContents:l.negate?l.contents:E(l.contents);g&&i.push({ind:c,mode:f,doc:g})}if(h===nt){let g=l.type===Fe?l.flatContents:l.negate?E(l.contents):l.contents;g&&i.push({ind:c,mode:f,doc:g})}break}case Ne:p.push({ind:c,mode:f,doc:l.contents});break;case Ue:p.length>0&&i.push({ind:c,mode:f,doc:Sn});break;case ie:switch(f){case nt:if(l.hard)o=!0;else{l.soft||(a.push(" "),u+=1);break}case de:if(p.length>0){i.push({ind:c,mode:f,doc:l},...p.reverse()),p.length=0;break}l.literal?c.root?(a.push(s,c.root.value),u=c.root.length):(a.push(s),u=0):(u-=cs(a),a.push(s+c.value),u=c.length);break}break;case be:i.push({ind:c,mode:f,doc:l.contents});break;case Pe:break;default:throw new lt(l)}i.length===0&&p.length>0&&(i.push(...p.reverse()),p.length=0)}let D=a.indexOf(rr);if(D!==-1){let c=a.indexOf(rr,D+1),f=a.slice(0,D).join(""),l=a.slice(D+1,c).join(""),h=a.slice(c+1).join("");return{formatted:f+l+h,cursorNodeStart:f.length,cursorNodeText:l}}return{formatted:a.join("")}}function Qr(e,t,r){let{node:n}=e;if(n.type==="TemplateLiteral"&&ic(e)){let m=sc(e,r,t);if(m)return m}let u="expressions";n.type==="TSTemplateLiteralType"&&(u="types");let i=[],a=e.map(t,u),o=eu(n);o&&(a=a.map(m=>ls(m,{...r,printWidth:Number.POSITIVE_INFINITY}).formatted)),i.push(Ae,"`");let p=0;return e.each(({index:m,node:D})=>{if(i.push(t()),D.tail)return;let{tabWidth:c}=r,f=D.value.raw,l=f.includes(` +`)?ti(f,c):p;p=l;let h=a[m];if(!o){let S=n[u][m];(d(S)||J(S)||S.type==="ConditionalExpression"||S.type==="SequenceExpression"||Le(S)||ce(S))&&(h=[E([F,h]),F])}let g=l===0&&f.endsWith(` +`)?De(Number.NEGATIVE_INFINITY,h):vs(h,l,c);i.push(y(["${",g,Ae,"}"]))},"quasis"),i.push("`"),i}function si(e){let t=e("quasi");return et(t.label&&{tagged:!0,...t.label},[e("tag"),e("typeParameters"),Ae,t])}function sc(e,t,r){let{node:n}=e,s=n.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(s.length>1||s.some(u=>u.length>0)){t.__inJestEach=!0;let u=e.map(r,"expressions");t.__inJestEach=!1;let i=[],a=u.map(c=>"${"+ls(c,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),o=[{hasLineBreak:!1,cells:[]}];for(let c=1;cc.cells.length)),m=Array.from({length:p}).fill(0),y=[{cells:s},...o.filter(c=>c.cells.length>0)];for(let{cells:c}of y.filter(f=>!f.hasLineBreak))for(let[f,l]of c.entries())m[f]=Math.max(m[f],tt(l));return i.push(de,"`",E([C,B(C,y.map(c=>B(" | ",c.cells.map((f,l)=>c.hasLineBreak?f:f+" ".repeat(m[l]-tt(f))))))]),C,"`"),i}}function uc(e,t){let{node:r}=e,n=t();return d(r)&&(n=D([E([F,n]),F])),["${",n,de,"}"]}function Rt(e,t){return e.map(r=>uc(r,t),"expressions")}function tn(e,t){return st(e,r=>typeof r=="string"?t?H(!1,r,/(\\*)`/g,"$1$1\\`"):Ds(r):r)}function Ds(e){return H(!1,e,/([\\`]|\${)/g,"\\$1")}function ic({node:e,parent:t}){let r=/^[fx]?(?:describe|it|test)$/;return t.type==="TaggedTemplateExpression"&&t.quasi===e&&t.tag.type==="MemberExpression"&&t.tag.property.type==="Identifier"&&t.tag.property.name==="each"&&(t.tag.object.type==="Identifier"&&r.test(t.tag.object.name)||t.tag.object.type==="MemberExpression"&&t.tag.object.property.type==="Identifier"&&(t.tag.object.property.name==="only"||t.tag.object.property.name==="skip")&&t.tag.object.object.type==="Identifier"&&r.test(t.tag.object.object.name))}function ac(e){let t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}}var rn=ac;function oc(e){switch(e){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function ii(e,t,r){let{node:n}=e;return D([n.variance?r("variance"):"","[",E([r("keyTparam")," in ",r("sourceType")]),"]",oc(n.optional),": ",r("propType")])}function ys(e,t){return e==="+"||e==="-"?e+t:t}function ai(e,t,r){let{node:n}=e,s=yt(t.originalText,U(n),U(n.typeParameter));return D(["{",E([t.bracketSpacing?A:F,D([r("typeParameter"),n.optional?ys(n.optional,"?"):"",n.typeAnnotation?": ":"",r("typeAnnotation")]),t.semi?b(";"):""]),M(e,t),t.bracketSpacing?A:F,"}"],{shouldBreak:s})}var nr=rn("typeParameters");function pc(e,t,r){let{node:n}=e;return Y(n).length===1&&n.type.startsWith("TS")&&!n[r][0].constraint&&e.parent.type==="ArrowFunctionExpression"&&!(t.filepath&&/\.ts$/.test(t.filepath))}function gt(e,t,r,n){let{node:s}=e;if(!s[n])return"";if(!Array.isArray(s[n]))return r(n);let u=e.getNode(2),i=u&&Ct(u),a=e.match(m=>!(m[n].length===1&&ke(m[n][0])),void 0,(m,y)=>y==="typeAnnotation",m=>m.type==="Identifier",ns);if(s[n].length===0||!a&&(i||s[n].length===1&&(s[n][0].type==="NullableTypeAnnotation"||us(s[n][0]))))return["<",B(", ",e.map(r,n)),cc(e,t),">"];let p=s.type==="TSTypeParameterInstantiation"?"":pc(e,t,n)?",":le(t)?b(","):"";return D(["<",E([F,B([",",A],e.map(r,n))]),p,F,">"],{id:nr(s)})}function cc(e,t){let{node:r}=e;if(!d(r,x.Dangling))return"";let n=!d(r,x.Line),s=M(e,t,{indent:!n});return n?s:[s,C]}function nn(e,t,r){let{node:n,parent:s}=e,u=[n.type==="TSTypeParameter"&&n.const?"const ":""],i=n.type==="TSTypeParameter"?r("name"):n.name;if(s.type==="TSMappedType")return s.readonly&&u.push(ys(s.readonly,"readonly")," "),u.push("[",i),n.constraint&&u.push(" in ",r("constraint")),s.nameType&&u.push(" as ",e.callParent(()=>r("nameType"))),u.push("]"),u;if(n.variance&&u.push(r("variance")),n.in&&u.push("in "),n.out&&u.push("out "),u.push(i),n.bound&&(n.usesExtendsBound&&u.push(" extends "),u.push(q(e,r,"bound"))),n.constraint){let a=Symbol("constraint");u.push(" extends",D(E(A),{id:a}),de,lt(r("constraint"),{groupId:a}))}return n.default&&u.push(" = ",r("default")),D(u)}var sr=()=>{};sr.ok=sr;sr.strictEqual=sr;var sn=sr;var un=new WeakMap;function pt(e,t,r){let{node:n}=e;if(n.computed)return["[",r("key"),"]"];let{parent:s}=e,{key:u}=n;if(t.quoteProps==="consistent"&&!un.has(s)){let i=(s.properties||s.body||s.members).some(a=>!a.computed&&a.key&&ee(a.key)&&!Mn(a,t));un.set(s,i)}if((u.type==="Identifier"||ge(u)&&Rn(He(oe(u)))&&String(u.value)===He(oe(u))&&!(t.parser==="typescript"||t.parser==="babel-ts"))&&(t.parser==="json"||t.quoteProps==="consistent"&&un.get(s))){let i=Tt(JSON.stringify(u.type==="Identifier"?u.name:u.value.toString()),t);return e.call(a=>pe(a,i,t),"key")}return Mn(n,t)&&(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!un.get(s))?e.call(i=>pe(i,/^\d/.test(u.value)?He(u.value):u.value,t),"key"):r("key")}function oi(e,t,r){let{node:n}=e;return n.shorthand?r("value"):ft(e,t,r,pt(e,t,r),":","value")}var lc=e=>e.type==="ObjectMethod"||e.type==="ClassMethod"||e.type==="ClassPrivateMethod"||e.type==="MethodDefinition"||e.type==="TSAbstractMethodDefinition"||e.type==="TSDeclareMethod"||(e.type==="Property"||e.type==="ObjectProperty")&&(e.method||e.kind==="get"||e.kind==="set"),mc=e=>e.node.type==="FunctionExpression"&&e.key==="value"&&lc(e.parent);function an(e,t,r,n){if(mc(e))return on(e,r,t);let{node:s}=e,u=!1;if((s.type==="FunctionDeclaration"||s.type==="FunctionExpression")&&(n!=null&&n.expandLastArg)){let{parent:m}=e;k(m)&&(he(m).length>1||Y(s).every(y=>y.type==="Identifier"&&!y.typeAnnotation))&&(u=!0)}let i=[Q(e),s.async?"async ":"",`function${s.generator?"*":""} `,s.id?t("id"):""],a=at(e,t,r,u),o=cn(e,t),p=xt(s,o);return i.push(Ve(e,r,t),D([p?D(a):a,o]),s.body?" ":"",t("body")),r.semi&&(s.declare||!s.body)&&i.push(";"),i}function ur(e,t,r){let{node:n}=e,{kind:s}=n,u=n.value||n,i=[];return!s||s==="init"||s==="method"||s==="constructor"?u.async&&i.push("async "):(sn.ok(s==="get"||s==="set"),i.push(s," ")),u.generator&&i.push("*"),i.push(pt(e,t,r),n.optional||n.key.optional?"?":"",n===u?on(e,t,r):r("value")),i}function on(e,t,r){let{node:n}=e,s=at(e,r,t),u=cn(e,r),i=Uu(n),a=xt(n,u),o=[Ve(e,t,r),D([i?D(s,{shouldBreak:!0}):a?D(s):s,u])];return n.body?o.push(" ",r("body")):o.push(t.semi?";":""),o}function Dc(e){let t=Y(e);return t.length===1&&!e.typeParameters&&!d(e,x.Dangling)&&t[0].type==="Identifier"&&!t[0].typeAnnotation&&!d(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function pn(e,t){if(t.arrowParens==="always")return!1;if(t.arrowParens==="avoid"){let{node:r}=e;return Dc(r)}return!1}function cn(e,t){let{node:r}=e,s=[q(e,t,"returnType")];return r.predicate&&s.push(t("predicate")),s}function pi(e,t,r){let{node:n}=e,s=t.semi?";":"",u=[];if(n.argument){let o=r("argument");yc(t,n.argument)?o=["(",E([C,o]),C,")"]:(ce(n.argument)||n.argument.type==="SequenceExpression")&&(o=D([b("("),E([F,o]),F,b(")")])),u.push(" ",o)}let i=d(n,x.Dangling),a=s&&i&&d(n,x.Last|x.Line);return a&&u.push(s),i&&u.push(" ",M(e,t)),a||u.push(s),u}function ci(e,t,r){return["return",pi(e,t,r)]}function li(e,t,r){return["throw",pi(e,t,r)]}function yc(e,t){if(Ie(e.originalText,t))return!0;if(Lt(t)){let r=t,n;for(;n=Qs(r);)if(r=n,Ie(e.originalText,r))return!0}return!1}var mi=j(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function ln(e,t,r){let{node:n}=e,s=[Q(e),_t(e),"class"],u=d(n.id,x.Trailing)||d(n.typeParameters,x.Trailing)||d(n.superClass)||P(n.extends)||P(n.mixins)||P(n.implements),i=[],a=[];if(n.id&&i.push(" ",r("id")),i.push(r("typeParameters")),n.superClass){let o=[Ec(e,t,r),r("superTypeParameters")],p=e.call(m=>["extends ",pe(m,o,t)],"superClass");u?a.push(A,D(p)):a.push(" ",p)}else a.push(fs(e,t,r,"extends"));if(a.push(fs(e,t,r,"mixins"),fs(e,t,r,"implements")),u){let o;yi(n)?o=[...i,E(a)]:o=E([...i,a]),s.push(D(o,{id:Di(n)}))}else s.push(...i,...a);return s.push(" ",r("body")),s}var Di=rn("heritageGroup");function Es(e){return b(C,"",{groupId:Di(e)})}function fc(e){return["extends","mixins","implements"].reduce((t,r)=>t+(Array.isArray(e[r])?e[r].length:0),e.superClass?1:0)>1}function yi(e){return e.typeParameters&&!d(e.typeParameters,x.Trailing|x.Line)&&!fc(e)}function fs(e,t,r,n){let{node:s}=e;if(!P(s[n]))return"";let u=M(e,t,{marker:n});return[yi(s)?b(" ",A,{groupId:nr(s.typeParameters)}):A,u,u&&C,n,D(E([A,B([",",A],e.map(r,n))]))]}function Ec(e,t,r){let n=r("superClass"),{parent:s}=e;return s.type==="AssignmentExpression"?D(b(["(",E([F,n]),F,")"],n)):n}function mn(e,t,r){let{node:n}=e,s=[];return P(n.decorators)&&s.push(as(e,t,r)),s.push(jt(n)),n.static&&s.push("static "),s.push(_t(e)),n.override&&s.push("override "),s.push(ur(e,t,r)),s}function Dn(e,t,r){let{node:n}=e,s=[],u=t.semi?";":"";P(n.decorators)&&s.push(as(e,t,r)),s.push(jt(n),Q(e)),n.static&&s.push("static "),s.push(_t(e)),n.override&&s.push("override "),n.readonly&&s.push("readonly "),n.variance&&s.push(r("variance")),(n.type==="ClassAccessorProperty"||n.type==="AccessorProperty"||n.type==="TSAbstractAccessorProperty")&&s.push("accessor "),s.push(pt(e,t,r),X(e),Kr(e),q(e,r));let i=n.type==="TSAbstractPropertyDefinition"||n.type==="TSAbstractAccessorProperty";return[ft(e,t,r,s," =",i?void 0:"value"),u]}function fi(e,t,r){let{node:n}=e,s=[];return e.each(({node:u,next:i,isLast:a})=>{s.push(r()),!t.semi&&mi(u)&&Fc(u,i)&&s.push(";"),a||(s.push(C),me(u,t)&&s.push(C))},"body"),d(n,x.Dangling)&&s.push(M(e,t)),[P(n.body)?Es(e.parent):"","{",s.length>0?[E([C,s]),C]:"","}"]}function Fc(e,t){var s;let{type:r,name:n}=e.key;if(!e.computed&&r==="Identifier"&&(n==="static"||n==="get"||n==="set")&&!e.value&&!e.typeAnnotation)return!0;if(!t||t.static||t.accessibility)return!1;if(!t.computed){let u=(s=t.key)==null?void 0:s.name;if(u==="in"||u==="instanceof")return!0}if(mi(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||t.kind==="get"||t.kind==="set")return!1;let i=t.value?t.value.generator:t.generator;return!!(t.computed||i)}case"TSIndexSignature":return!0}return!1}function Et(e,t,r){var R;let n=t.semi?";":"",{node:s}=e,u=s.type==="ObjectTypeAnnotation",i=s.type==="TSEnumDeclaration"||s.type==="EnumBooleanBody"||s.type==="EnumNumberBody"||s.type==="EnumStringBody"||s.type==="EnumSymbolBody",a=[s.type==="TSTypeLiteral"||i?"members":s.type==="TSInterfaceBody"?"body":"properties"];u&&a.push("indexers","callProperties","internalSlots");let o=a.flatMap(T=>e.map(({node:N})=>({node:N,printed:r(),loc:U(N)}),T));a.length>1&&o.sort((T,N)=>T.loc-N.loc);let{parent:p,key:m}=e,y=u&&m==="body"&&(p.type==="InterfaceDeclaration"||p.type==="DeclareInterface"||p.type==="DeclareClass"),c=s.type==="TSInterfaceBody"||i||y||s.type==="ObjectPattern"&&p.type!=="FunctionDeclaration"&&p.type!=="FunctionExpression"&&p.type!=="ArrowFunctionExpression"&&p.type!=="ObjectMethod"&&p.type!=="ClassMethod"&&p.type!=="ClassPrivateMethod"&&p.type!=="AssignmentPattern"&&p.type!=="CatchClause"&&s.properties.some(T=>T.value&&(T.value.type==="ObjectPattern"||T.value.type==="ArrayPattern"))||s.type!=="ObjectPattern"&&o.length>0&&yt(t.originalText,U(s),o[0].loc),f=y?";":s.type==="TSInterfaceBody"||s.type==="TSTypeLiteral"?b(n,";"):",",l=s.type==="RecordExpression"?"#{":s.exact?"{|":"{",h=s.exact?"|}":"}",g=[],S=o.map(T=>{let N=[...g,D(T.printed)];return g=[f,A],(T.node.type==="TSPropertySignature"||T.node.type==="TSMethodSignature"||T.node.type==="TSConstructSignatureDeclaration"||T.node.type==="TSCallSignatureDeclaration")&&d(T.node,x.PrettierIgnore)&&g.shift(),me(T.node,t)&&g.push(C),N});if(s.inexact||s.hasUnknownMembers){let T;if(d(s,x.Dangling)){let N=d(s,x.Line);T=[M(e,t),N||z(t.originalText,O(w(!1,Kt(s),-1)))?C:A,"..."]}else T=["..."];S.push([...g,...T])}let I=(R=w(!1,o,-1))==null?void 0:R.node,v=!(s.inexact||s.hasUnknownMembers||I&&(I.type==="RestElement"||(I.type==="TSPropertySignature"||I.type==="TSCallSignatureDeclaration"||I.type==="TSMethodSignature"||I.type==="TSConstructSignatureDeclaration")&&d(I,x.PrettierIgnore))),_;if(S.length===0){if(!d(s,x.Dangling))return[l,h,q(e,r)];_=D([l,M(e,t,{indent:!0}),F,h,X(e),q(e,r)])}else _=[y&&P(s.properties)?Es(p):"",l,E([t.bracketSpacing?A:F,...S]),b(v&&(f!==","||le(t))?f:""),t.bracketSpacing?A:F,h,X(e),q(e,r)];return e.match(T=>T.type==="ObjectPattern"&&!T.decorators,Fs)||ke(s)&&(e.match(void 0,(T,N)=>N==="typeAnnotation",(T,N)=>N==="typeAnnotation",Fs)||e.match(void 0,(T,N)=>T.type==="FunctionTypeParam"&&N==="typeAnnotation",Fs))||!c&&e.match(T=>T.type==="ObjectPattern",T=>T.type==="AssignmentExpression"||T.type==="VariableDeclarator")?_:D(_,{shouldBreak:c})}function Fs(e,t){return(t==="params"||t==="parameters"||t==="this"||t==="rest")&&ss(e)}var Cs=new WeakMap;function Ei(e){return Cs.has(e)||Cs.set(e,e.type==="ConditionalExpression"&&!re(e,t=>t.type==="ObjectExpression")),Cs.get(e)}var Fi=e=>e.type==="SequenceExpression";function Ci(e,t,r,n={}){let s=[],u,i=[],a=!1,o=!n.expandLastArg&&e.node.body.type==="ArrowFunctionExpression",p;(function g(){let{node:S}=e,I=Cc(e,t,r,n);if(s.length===0)s.push(I);else{let{leading:v,trailing:_}=Gn(e,t);s.push([v,I]),i.unshift(_)}o&&(a||(a=S.returnType&&Y(S).length>0||S.typeParameters||Y(S).some(v=>v.type!=="Identifier"))),!o||S.body.type!=="ArrowFunctionExpression"?(u=r("body",n),p=S.body):e.call(g,"body")})();let m=!Ie(t.originalText,p)&&(Fi(p)||dc(p,u,t)||!a&&Ei(p)),y=e.key==="callee"&&ut(e.parent),c=Symbol("arrow-chain"),f=Ac(e,n,{signatureDocs:s,shouldBreak:a}),l,h=!1;return o&&(y||n.assignmentLayout)&&(h=!0,l=n.assignmentLayout==="chain-tail-arrow-chain"||y&&!m),u=Tc(e,t,n,{bodyDoc:u,bodyComments:i,functionBody:p,shouldPutBodyOnSameLine:m}),D([D(h?E([F,f]):f,{shouldBreak:l,id:c})," =>",o?lt(u,{groupId:c}):D(u),o&&y?b(F,"",{groupId:c}):""])}function Cc(e,t,r,n){let{node:s}=e,u=[];if(s.async&&u.push("async "),pn(e,t))u.push(r(["params",0]));else{let a=n.expandLastArg||n.expandFirstArg,o=cn(e,r);if(a){if(K(o))throw new it;o=D(Ut(o))}u.push(D([at(e,r,t,a,!0),o]))}let i=M(e,t,{filter(a){let o=Xe(t.originalText,O(a));return o!==!1&&t.originalText.slice(o,o+2)==="=>"}});return i&&u.push(" ",i),u}function dc(e,t,r){var n,s;return G(e)||Z(e)||e.type==="ArrowFunctionExpression"||e.type==="DoExpression"||e.type==="BlockStatement"||V(e)||((n=t.label)==null?void 0:n.hug)!==!1&&(((s=t.label)==null?void 0:s.embed)||gr(e,r.originalText))}function Ac(e,t,{signatureDocs:r,shouldBreak:n}){if(r.length===1)return r[0];let{parent:s,key:u}=e;return u!=="callee"&&ut(s)||ce(s)?D([r[0]," =>",E([A,B([" =>",A],r.slice(1))])],{shouldBreak:n}):u==="callee"&&ut(s)||t.assignmentLayout?D(B([" =>",A],r),{shouldBreak:n}):D(E(B([" =>",A],r)),{shouldBreak:n})}function Tc(e,t,r,{bodyDoc:n,bodyComments:s,functionBody:u,shouldPutBodyOnSameLine:i}){let{node:a,parent:o}=e,p=r.expandLastArg&&le(t,"all")?b(","):"",m=(r.expandLastArg||o.type==="JSXExpressionContainer")&&!d(a)?F:"";return i&&Ei(u)?[" ",D([b("","("),E([F,n]),b("",")"),p,m]),s]:(Fi(u)&&(n=D(["(",E([F,n]),F,")"])),i?[" ",n,s]:[E([A,n,s]),p,m])}function ir(e,t,r,n){let{node:s}=e,u=[],i=xc(s[n]);return e.each(({node:a})=>{a.type!=="EmptyStatement"&&(u.push(r()),a!==i&&(u.push(C),me(a,t)&&u.push(C)))},n),u}function xc(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r.type!=="EmptyStatement")return r}}function yn(e,t,r){let{node:n}=e,s=[];n.type==="StaticBlock"&&s.push("static "),s.push("{");let u=ds(e,t,r);if(u)s.push(E([C,u]),C);else{let{parent:i}=e,a=e.grandparent;i.type==="ArrowFunctionExpression"||i.type==="FunctionExpression"||i.type==="FunctionDeclaration"||i.type==="ObjectMethod"||i.type==="ClassMethod"||i.type==="ClassPrivateMethod"||i.type==="ForStatement"||i.type==="WhileStatement"||i.type==="DoWhileStatement"||i.type==="DoExpression"||i.type==="CatchClause"&&!a.finalizer||i.type==="TSModuleDeclaration"||i.type==="TSDeclareFunction"||n.type==="StaticBlock"||s.push(C)}return s.push("}"),s}function ds(e,t,r){var o;let{node:n}=e,s=P(n.directives),u=n.body.some(p=>p.type!=="EmptyStatement"),i=d(n,x.Dangling);if(!s&&!u&&!i)return"";let a=[];return s&&(a.push(ir(e,t,r,"directives")),(u||i)&&(a.push(C),me(w(!1,n.directives,-1),t)&&a.push(C))),u&&a.push(ir(e,t,r,"body")),i&&a.push(M(e,t)),n.type==="Program"&&((o=e.parent)==null?void 0:o.type)!=="ModuleExpression"&&a.push(C),a}function di(e,t){if(t.semi||As(e,t)||xs(e,t))return!1;let{node:r,key:n,parent:s}=e;return!!(r.type==="ExpressionStatement"&&(n==="body"&&(s.type==="Program"||s.type==="BlockStatement"||s.type==="StaticBlock"||s.type==="TSModuleBlock")||n==="consequent"&&s.type==="SwitchCase")&&e.call(()=>Ai(e,t),"expression"))}function Ai(e,t){let{node:r}=e;switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!pn(e,t))return!0;break;case"UnaryExpression":{let{prefix:n,operator:s}=r;if(n&&(s==="+"||s==="-"))return!0;break}case"BindExpression":if(!r.object)return!0;break;case"Literal":if(r.regex)return!0;break;default:if(V(r))return!0}return we(e,t)?!0:Lt(r)?e.call(()=>Ai(e,t),...Ar(r)):!1}function As({node:e,parent:t},r){return(r.parentParser==="markdown"||r.parentParser==="mdx")&&e.type==="ExpressionStatement"&&V(e.expression)&&t.type==="Program"&&t.body.length===1}function Ts(e){switch(e.type){case"MemberExpression":switch(e.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return Ts(e.object)}return!1;case"Identifier":return!0;default:return!1}}function xs({node:e,parent:t},r){return(r.parser==="__vue_event_binding"||r.parser==="__vue_ts_event_binding")&&e.type==="ExpressionStatement"&&t.type==="Program"&&t.body.length===1}function Ti(e,t,r){let n=[r("expression")];return xs(e,t)?Ts(e.node.expression)&&n.push(";"):As(e,t)||t.semi&&n.push(";"),d(e.node,x.Dangling,({marker:s})=>s===zt)&&n.push(" ",M(e,t,{marker:zt})),n}function xi(e,t,r){if(t.__isVueBindings||t.__isVueForBindingLeft){let n=e.map(r,"program","body",0,"params");if(n.length===1)return n[0];let s=B([",",A],n);return t.__isVueForBindingLeft?["(",E([F,D(s)]),F,")"]:s}}function gi(e,t,r,n){let{node:s}=e;if(jr(s))return _u(e,t);let u=t.semi?";":"",i=[];switch(s.type){case"JsExpressionRoot":return r("node");case"JsonRoot":return[r("node"),C];case"File":return xi(e,t,r)??r("program");case"Program":return ds(e,t,r);case"EmptyStatement":return"";case"ExpressionStatement":return Ti(e,t,r);case"ChainExpression":return r("expression");case"ParenthesizedExpression":return!d(s.expression)&&(Z(s.expression)||G(s.expression))?["(",r("expression"),")"]:D(["(",E([F,r("expression")]),F,")"]);case"AssignmentExpression":return Mu(e,t,r);case"VariableDeclarator":return Ru(e,t,r);case"BinaryExpression":case"LogicalExpression":return wr(e,t,r);case"AssignmentPattern":return[r("left")," = ",r("right")];case"OptionalMemberExpression":case"MemberExpression":return Iu(e,t,r);case"MetaProperty":return[r("meta"),".",r("property")];case"BindExpression":return s.object&&i.push(r("object")),i.push(D(E([F,Or(e,t,r)]))),i;case"Identifier":return[s.name,X(e),Kr(e),q(e,r)];case"V8IntrinsicIdentifier":return["%",s.name];case"SpreadElement":case"SpreadElementPattern":case"SpreadPropertyPattern":case"RestElement":return zr(e,r);case"FunctionDeclaration":case"FunctionExpression":return an(e,r,t,n);case"ArrowFunctionExpression":return Ci(e,t,r,n);case"YieldExpression":return i.push("yield"),s.delegate&&i.push("*"),s.argument&&i.push(" ",r("argument")),i;case"AwaitExpression":if(i.push("await"),s.argument){i.push(" ",r("argument"));let{parent:a}=e;if(k(a)&&a.callee===s||J(a)&&a.object===s){i=[E([F,...i]),F];let o=e.findAncestor(p=>p.type==="AwaitExpression"||p.type==="BlockStatement");if((o==null?void 0:o.type)!=="AwaitExpression"||!re(o.argument,p=>p===s))return D(i)}}return i;case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return Qr(e,t,r);case"ImportDeclaration":return Vu(e,t,r);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return ei(e,t,r);case"ImportAttribute":return[r("key"),": ",r("value")];case"Import":return"import";case"BlockStatement":case"StaticBlock":return yn(e,t,r);case"ClassBody":return fi(e,t,r);case"ThrowStatement":return li(e,t,r);case"ReturnStatement":return ci(e,t,r);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return vr(e,t,r);case"ObjectExpression":case"ObjectPattern":case"RecordExpression":return Et(e,t,r);case"ObjectProperty":case"Property":return s.method||s.kind==="get"||s.kind==="set"?ur(e,t,r):oi(e,t,r);case"ObjectMethod":return ur(e,t,r);case"Decorator":return["@",r("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return vt(e,t,r);case"SequenceExpression":{let{parent:a}=e;if(a.type==="ExpressionStatement"||a.type==="ForStatement"){let o=[];return e.each(({isFirst:p})=>{p?o.push(r()):o.push(",",E([A,r()]))},"expressions"),D(o)}return D(B([",",A],e.map(r,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[r("value"),u];case"UnaryExpression":return i.push(s.operator),/[a-z]$/.test(s.operator)&&i.push(" "),d(s.argument)?i.push(D(["(",E([F,r("argument")]),F,")"])):i.push(r("argument")),i;case"UpdateExpression":return i.push(r("argument"),s.operator),s.prefix&&i.reverse(),i;case"ConditionalExpression":return Mt(e,t,r);case"VariableDeclaration":{let a=e.map(r,"declarations"),o=e.parent,p=o.type==="ForStatement"||o.type==="ForInStatement"||o.type==="ForOfStatement",m=s.declarations.some(c=>c.init),y;return a.length===1&&!d(s.declarations[0])?y=a[0]:a.length>0&&(y=E(a[0])),i=[Q(e),s.kind,y?[" ",y]:"",E(a.slice(1).map(c=>[",",m&&!p?C:A,c]))],p&&o.body!==s||i.push(u),D(i)}case"WithStatement":return D(["with (",r("object"),")",ot(s.body,r("body"))]);case"IfStatement":{let a=ot(s.consequent,r("consequent")),o=D(["if (",D([E([F,r("test")]),F]),")",a]);if(i.push(o),s.alternate){let p=d(s.consequent,x.Trailing|x.Line)||hr(s),m=s.consequent.type==="BlockStatement"&&!p;i.push(m?" ":C),d(s,x.Dangling)&&i.push(M(e,t),p?C:" "),i.push("else",D(ot(s.alternate,r("alternate"),s.alternate.type==="IfStatement")))}return i}case"ForStatement":{let a=ot(s.body,r("body")),o=M(e,t),p=o?[o,F]:"";return!s.init&&!s.test&&!s.update?[p,D(["for (;;)",a])]:[p,D(["for (",D([E([F,r("init"),";",A,r("test"),";",A,r("update")]),F]),")",a])]}case"WhileStatement":return D(["while (",D([E([F,r("test")]),F]),")",ot(s.body,r("body"))]);case"ForInStatement":return D(["for (",r("left")," in ",r("right"),")",ot(s.body,r("body"))]);case"ForOfStatement":return D(["for",s.await?" await":""," (",r("left")," of ",r("right"),")",ot(s.body,r("body"))]);case"DoWhileStatement":{let a=ot(s.body,r("body"));return i=[D(["do",a])],s.body.type==="BlockStatement"?i.push(" "):i.push(C),i.push("while (",D([E([F,r("test")]),F]),")",u),i}case"DoExpression":return[s.async?"async ":"","do ",r("body")];case"BreakStatement":case"ContinueStatement":return i.push(s.type==="BreakStatement"?"break":"continue"),s.label&&i.push(" ",r("label")),i.push(u),i;case"LabeledStatement":return s.body.type==="EmptyStatement"?[r("label"),":;"]:[r("label"),": ",r("body")];case"TryStatement":return["try ",r("block"),s.handler?[" ",r("handler")]:"",s.finalizer?[" finally ",r("finalizer")]:""];case"CatchClause":if(s.param){let a=d(s.param,p=>!ae(p)||p.leading&&z(t.originalText,O(p))||p.trailing&&z(t.originalText,U(p),{backwards:!0})),o=r("param");return["catch ",a?["(",E([F,o]),F,") "]:["(",o,") "],r("body")]}return["catch ",r("body")];case"SwitchStatement":return[D(["switch (",E([F,r("discriminant")]),F,")"])," {",s.cases.length>0?E([C,B(C,e.map(({node:a,isLast:o})=>[r(),!o&&me(a,t)?C:""],"cases"))]):"",C,"}"];case"SwitchCase":{s.test?i.push("case ",r("test"),":"):i.push("default:"),d(s,x.Dangling)&&i.push(" ",M(e,t));let a=s.consequent.filter(o=>o.type!=="EmptyStatement");if(a.length>0){let o=ir(e,t,r,"consequent");i.push(a.length===1&&a[0].type==="BlockStatement"?[" ",o]:E([C,o]))}return i}case"DebuggerStatement":return["debugger",u];case"ClassDeclaration":case"ClassExpression":return ln(e,t,r);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return mn(e,t,r);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return Dn(e,t,r);case"TemplateElement":return Te(s.value.raw);case"TemplateLiteral":return en(e,r,t);case"TaggedTemplateExpression":return ui(r);case"PrivateIdentifier":return["#",s.name];case"PrivateName":return["#",r("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":{i.push("module {");let a=r("body");return a&&i.push(E([C,a]),C),i.push("}"),i}case"InterpreterDirective":default:throw new Oe(s,"ESTree")}}function Si(e,t,r){let{node:n}=e;if(n.type.startsWith("NG"))switch(n.type){case"NGRoot":return[r("node"),d(n.node)?" //"+Kt(n.node)[0].value.trimEnd():""];case"NGPipeExpression":return wr(e,t,r);case"NGChainedExpression":return D(B([";",A],e.map(()=>hc(e)?r():["(",r(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return e.map(()=>[e.isFirst?"":hi(e)?" ":[";",A],r()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/i.test(n.name)?n.name:JSON.stringify(n.name);case"NGMicrosyntaxExpression":return[r("expression"),n.alias===null?"":[" as ",r("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:s,parent:u}=e,i=hi(e)||(s===1&&(n.key.name==="then"||n.key.name==="else")||s===2&&n.key.name==="else"&&u.body[s-1].type==="NGMicrosyntaxKeyedExpression"&&u.body[s-1].key.name==="then")&&u.body[0].type==="NGMicrosyntaxExpression";return[r("key"),i?" ":": ",r("expression")]}case"NGMicrosyntaxLet":return["let ",r("key"),n.value===null?"":[" = ",r("value")]];case"NGMicrosyntaxAs":return[r("key")," as ",r("alias")];default:throw new Oe(n,"Angular")}}function hi({node:e,index:t,parent:r}){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1&&r.body[0].type==="NGMicrosyntaxLet"&&r.body[0].value===null}var gc=j(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function hc({node:e}){return Xt(e,gc)}function fn(e,t,r){let{node:n}=e,s=[Q(e),"interface"],u=[],i=[];n.type!=="InterfaceTypeAnnotation"&&u.push(" ",r("id"),r("typeParameters"));let a=n.typeParameters&&!d(n.typeParameters,x.Trailing|x.Line);return P(n.extends)&&i.push(a?b(" ",A,{groupId:nr(n.typeParameters)}):A,"extends ",(n.extends.length===1?nu:E)(B([",",A],e.map(r,"extends")))),d(n.id,x.Trailing)||P(n.extends)?a?s.push(D([...u,E(i)])):s.push(D(E([...u,...i]))):s.push(...u,...i),s.push(" ",r("body")),D(s)}function Bi(e,t,r){return Et(e,r,t)}function En(e,t){let{node:r}=e,n=t("id");r.computed&&(n=["[",n,"]"]);let s="";return r.initializer&&(s=t("initializer")),r.init&&(s=t("init")),s?[n," = ",s]:n}function bi(e,t,r){let{node:n}=e,s;if(n.type==="EnumSymbolBody"||n.explicitType)switch(n.type){case"EnumBooleanBody":s="boolean";break;case"EnumNumberBody":s="number";break;case"EnumStringBody":s="string";break;case"EnumSymbolBody":s="symbol";break}return[s?`of ${s} `:"",Bi(e,t,r)]}function Fn(e,t,r){let{node:n}=e;return[Q(e),n.const?"const ":"","enum ",t("id")," ",n.type==="TSEnumDeclaration"?Bi(e,t,r):t("body")]}function Pi(e,t,r){let{node:n}=e;if(Fr(n))return n.type.slice(0,-14).toLowerCase();let s=t.semi?";":"";switch(n.type){case"DeclareClass":return ln(e,t,r);case"DeclareFunction":return[Q(e),"function ",r("id"),r("predicate"),s];case"DeclareModule":return["declare module ",r("id")," ",r("body")];case"DeclareModuleExports":return["declare module.exports",q(e,r),s];case"DeclareVariable":return[Q(e),n.kind??"var"," ",r("id"),s];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return Qr(e,t,r);case"DeclareOpaqueType":case"OpaqueType":return Gu(e,t,r);case"DeclareTypeAlias":case"TypeAlias":return Rr(e,t,r);case"IntersectionTypeAnnotation":return Jr(e,t,r);case"UnionTypeAnnotation":return Nr(e,t,r);case"ConditionalTypeAnnotation":return Mt(e,t,r);case"InferTypeAnnotation":return qr(e,t,r);case"FunctionTypeAnnotation":return Ur(e,t,r);case"TupleTypeAnnotation":return vt(e,t,r);case"TupleTypeLabeledElement":return Yr(e,t,r);case"TupleTypeSpreadElement":return Wr(e,t,r);case"GenericTypeAnnotation":return[r("id"),gt(e,t,r,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return Gr(e,t,r);case"TypeAnnotation":return Xr(e,t,r);case"TypeParameter":return nn(e,t,r);case"TypeofTypeAnnotation":return Vr(e,r);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return $r(r);case"DeclareEnum":case"EnumDeclaration":return Fn(e,r,t);case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":return bi(e,r,t);case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":return En(e,r);case"FunctionTypeParam":{let u=n.name?r("name"):e.parent.this===n?"this":"";return[u,X(e),u?": ":"",r("typeAnnotation")]}case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return fn(e,t,r);case"ClassImplements":case"InterfaceExtends":return[r("id"),r("typeParameters")];case"NullableTypeAnnotation":return["?",r("typeAnnotation")];case"Variance":{let{kind:u}=n;return sn.ok(u==="plus"||u==="minus"),u==="plus"?"+":"-"}case"KeyofTypeAnnotation":return["keyof ",r("argument")];case"ObjectTypeCallProperty":return[n.static?"static ":"",r("value")];case"ObjectTypeMappedTypeProperty":return ii(e,t,r);case"ObjectTypeIndexer":return[n.static?"static ":"",n.variance?r("variance"):"","[",r("id"),n.id?": ":"",r("key"),"]: ",r("value")];case"ObjectTypeProperty":{let u="";return n.proto?u="proto ":n.static&&(u="static "),[u,_n(n)?n.kind+" ":"",n.variance?r("variance"):"",pt(e,t,r),X(e),jn(n)?"":": ",r("value")]}case"ObjectTypeAnnotation":return Et(e,t,r);case"ObjectTypeInternalSlot":return[n.static?"static ":"","[[",r("id"),"]]",X(e),n.method?"":": ",r("value")];case"ObjectTypeSpreadProperty":return zr(e,r);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[r("qualification"),".",r("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(n.value);case"StringLiteralTypeAnnotation":return Te(Tt(oe(n),t));case"NumberLiteralTypeAnnotation":return He(n.raw??n.extra.raw);case"BigIntLiteralTypeAnnotation":return _r(n.raw??n.extra.raw);case"TypeCastExpression":return["(",r("expression"),q(e,r),")"];case"TypePredicate":return Hr(e,r);case"TypeParameterDeclaration":case"TypeParameterInstantiation":return gt(e,t,r,"params");case"InferredPredicate":case"DeclaredPredicate":return[e.key==="predicate"&&e.parent.type!=="DeclareFunction"&&!e.parent.returnType?": ":" ","%checks",...n.type==="DeclaredPredicate"?["(",r("value"),")"]:[]]}}function ki(e,t,r){var i;let{node:n}=e;if(!n.type.startsWith("TS"))return;if(Cr(n))return n.type.slice(2,-7).toLowerCase();let s=t.semi?";":"",u=[];switch(n.type){case"TSThisType":return"this";case"TSTypeAssertion":{let a=!(G(n.expression)||Z(n.expression)),o=D(["<",E([F,r("typeAnnotation")]),F,">"]),p=[b("("),E([F,r("expression")]),F,b(")")];return a?qe([[o,r("expression")],[o,D(p,{shouldBreak:!0})],[o,r("expression")]]):D([o,r("expression")])}case"TSDeclareFunction":return an(e,r,t);case"TSExportAssignment":return["export = ",r("expression"),s];case"TSModuleBlock":return yn(e,t,r);case"TSInterfaceBody":case"TSTypeLiteral":return Et(e,t,r);case"TSTypeAliasDeclaration":return Rr(e,t,r);case"TSQualifiedName":return[r("left"),".",r("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return mn(e,t,r);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return Dn(e,t,r);case"TSInterfaceHeritage":case"TSClassImplements":case"TSExpressionWithTypeArguments":case"TSInstantiationExpression":return[r("expression"),r("typeParameters")];case"TSTemplateLiteralType":return en(e,r,t);case"TSNamedTupleMember":return Yr(e,t,r);case"TSRestType":return Wr(e,t,r);case"TSOptionalType":return[r("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return fn(e,t,r);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return gt(e,t,r,"params");case"TSTypeParameter":return nn(e,t,r);case"TSAsExpression":case"TSSatisfiesExpression":{let a=n.type==="TSAsExpression"?"as":"satisfies";u.push(r("expression"),` ${a} `,r("typeAnnotation"));let{parent:o}=e;return k(o)&&o.callee===n||J(o)&&o.object===n?D([E([F,...u]),F]):u}case"TSArrayType":return $r(r);case"TSPropertySignature":return[n.readonly?"readonly ":"",pt(e,t,r),X(e),q(e,r)];case"TSParameterProperty":return[jt(n),n.static?"static ":"",n.override?"override ":"",n.readonly?"readonly ":"",r("parameter")];case"TSTypeQuery":return Vr(e,r);case"TSIndexSignature":{let a=n.parameters.length>1?b(le(t)?",":""):"",o=D([E([F,B([", ",F],e.map(r,"parameters"))]),a,F]),p=e.parent.type==="ClassBody"&&e.key==="body";return[p&&n.static?"static ":"",n.readonly?"readonly ":"","[",n.parameters?o:"","]",q(e,r),p?s:""]}case"TSTypePredicate":return Hr(e,r);case"TSNonNullExpression":return[r("expression"),"!"];case"TSImportType":return[n.isTypeOf?"typeof ":"","import(",r(n.parameter?"parameter":"argument"),")",n.qualifier?[".",r("qualifier")]:"",gt(e,t,r,"typeParameters")];case"TSLiteralType":return r("literal");case"TSIndexedAccessType":return Gr(e,t,r);case"TSTypeOperator":return[n.operator," ",r("typeAnnotation")];case"TSMappedType":return ai(e,t,r);case"TSMethodSignature":{let a=n.kind&&n.kind!=="method"?`${n.kind} `:"";u.push(jt(n),a,n.computed?"[":"",r("key"),n.computed?"]":"",X(e));let o=at(e,r,t,!1,!0),p=n.returnType?"returnType":"typeAnnotation",m=n[p],y=m?q(e,r,p):"",c=xt(n,y);return u.push(c?D(o):o),m&&u.push(D(y)),D(u)}case"TSNamespaceExportDeclaration":return["export as namespace ",r("id"),t.semi?";":""];case"TSEnumDeclaration":return Fn(e,r,t);case"TSEnumMember":return En(e,r);case"TSImportEqualsDeclaration":return[n.isExport?"export ":"","import ",ps(n,!1),r("id")," = ",r("moduleReference"),t.semi?";":""];case"TSExternalModuleReference":return["require(",r("expression"),")"];case"TSModuleDeclaration":{let{parent:a}=e,o=a.type==="TSModuleDeclaration",p=((i=n.body)==null?void 0:i.type)==="TSModuleDeclaration";if(o)u.push(".");else if(u.push(Q(e)),!(n.kind==="global"||n.global)){let y=n.kind??(ee(n.id)||/(?:^|\s)module(?:\s|$)/.test(t.originalText.slice(U(n),U(n.id)))?"module":"namespace");u.push(y," ")}return u.push(r("id")),p?u.push(r("body")):n.body?u.push(" ",D(r("body"))):u.push(s),u}case"TSConditionalType":return Mt(e,t,r);case"TSInferType":return qr(e,t,r);case"TSIntersectionType":return Jr(e,t,r);case"TSUnionType":return Nr(e,t,r);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return Ur(e,t,r);case"TSTupleType":return vt(e,t,r);case"TSTypeReference":return[r("typeName"),gt(e,t,r,"typeParameters")];case"TSTypeAnnotation":return Xr(e,t,r);case"TSEmptyBodyFunctionExpression":return on(e,t,r);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return is(e,r,"?");case"TSJSDocNonNullableType":return is(e,r,"!");case"TSParenthesizedType":default:throw new Oe(n,"TypeScript")}}function Sc(e,t,r,n){if(Lr(e))return Is(e,t);for(let s of[Si,Su,Pi,ki,gi]){let u=s(e,t,r,n);if(u!==void 0)return u}}var Bc=j(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function bc(e,t,r,n){var y;e.isRoot&&((y=t.__onHtmlBindingRoot)==null||y.call(t,e.node,t));let s=Sc(e,t,r,n);if(!s)return"";let{node:u}=e;if(Bc(u))return s;let i=P(u.decorators),a=Yu(e,t,r),o=u.type==="ClassExpression";if(i&&!o)return Gt(s,c=>D([a,c]));let p=we(e,t),m=di(e,t);return!a&&!p&&!m?s:Gt(s,c=>[m?";":"",p?"(":"",p&&o&&i?[E([A,a,c]),A]:[a,c],p?")":""])}var Ii=bc;var Li=[(e,t)=>e.type==="ObjectExpression"&&t==="properties",(e,t)=>e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="Component"&&t==="arguments",(e,t)=>e.type==="Decorator"&&t==="expression"];function wi(e){return e.match(t=>t.type==="TemplateLiteral",(t,r)=>G(t)&&r==="elements",(t,r)=>fe(t)&&t.key.type==="Identifier"&&t.key.name==="styles"&&r==="value",...Li)}function Oi(e){return e.match(t=>t.type==="TemplateLiteral",(t,r)=>fe(t)&&t.key.type==="Identifier"&&t.key.name==="template"&&r==="value",...Li)}function Cn(e,t){return d(e,x.Block|x.Leading,({value:r})=>r===` ${t} `)}async function Pc(e,t,r){let{node:n}=r,s=n.quasis.map(m=>m.value.raw),u=0,i=s.reduce((m,y,c)=>c===0?y:m+"@prettier-placeholder-"+u+++"-id"+y,""),a=await e(i,{parser:"scss"}),o=Rt(r,t),p=kc(a,o);if(!p)throw new Error("Couldn't insert all the expressions");return["`",E([C,p]),F,"`"]}function kc(e,t){if(!P(t))return e;let r=0,n=st(Bt(e),s=>typeof s!="string"||!s.includes("@prettier-placeholder")?s:s.split(/@prettier-placeholder-(\d+)-id/).map((u,i)=>i%2===0?Te(u):(r++,t[u])));return t.length===r?n:null}function Ic({node:e,parent:t,grandparent:r}){return r&&e.quasis&&t.type==="JSXExpressionContainer"&&r.type==="JSXElement"&&r.openingElement.name.name==="style"&&r.openingElement.attributes.some(n=>n.name.name==="jsx")||(t==null?void 0:t.type)==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="css"||(t==null?void 0:t.type)==="TaggedTemplateExpression"&&t.tag.type==="MemberExpression"&&t.tag.object.name==="css"&&(t.tag.property.name==="global"||t.tag.property.name==="resolve")}function dn(e){return e.type==="Identifier"&&e.name==="styled"}function vi(e){return/^[A-Z]/.test(e.object.name)&&e.property.name==="extend"}function Lc({parent:e}){if(!e||e.type!=="TaggedTemplateExpression")return!1;let t=e.tag.type==="ParenthesizedExpression"?e.tag.expression:e.tag;switch(t.type){case"MemberExpression":return dn(t.object)||vi(t);case"CallExpression":return dn(t.callee)||t.callee.type==="MemberExpression"&&(t.callee.object.type==="MemberExpression"&&(dn(t.callee.object.object)||vi(t.callee.object))||t.callee.object.type==="CallExpression"&&dn(t.callee.object.callee));case"Identifier":return t.name==="css";default:return!1}}function wc({parent:e,grandparent:t}){return(t==null?void 0:t.type)==="JSXAttribute"&&e.type==="JSXExpressionContainer"&&t.name.type==="JSXIdentifier"&&t.name.name==="css"}function Oc(e){if(Ic(e)||Lc(e)||wc(e)||wi(e))return Pc}var _i=Oc;async function vc(e,t,r){let{node:n}=r,s=n.quasis.length,u=Rt(r,t),i=[];for(let a=0;a2&&c[0].trim()===""&&c[1].trim()==="",g=f>2&&c[f-1].trim()===""&&c[f-2].trim()==="",S=c.every(v=>/^\s*(?:#[^\n\r]*)?$/.test(v));if(!m&&/#[^\n\r]*$/.test(c[f-1]))return null;let I=null;S?I=_c(c):I=await e(y,{parser:"graphql"}),I?(I=tn(I,!1),!p&&h&&i.push(""),i.push(I),!m&&g&&i.push("")):!p&&!m&&h&&i.push(""),l&&i.push(l)}return["`",E([C,B(C,i)]),C,"`"]}function _c(e){let t=[],r=!1,n=e.map(s=>s.trim());for(let[s,u]of n.entries())u!==""&&(n[s-1]===""&&r?t.push([C,u]):t.push(u),r=!0);return t.length===0?null:B(C,t)}function jc({node:e,parent:t}){return Cn(e,"GraphQL")||t&&(t.type==="TaggedTemplateExpression"&&(t.tag.type==="MemberExpression"&&t.tag.object.name==="graphql"&&t.tag.property.name==="experimental"||t.tag.type==="Identifier"&&(t.tag.name==="gql"||t.tag.name==="graphql"))||t.type==="CallExpression"&&t.callee.type==="Identifier"&&t.callee.name==="graphql")}function Mc(e){if(jc(e))return vc}var ji=Mc;var gs=0;async function Mi(e,t,r,n,s){let{node:u}=n,i=gs;gs=gs+1>>>0;let a=S=>`PRETTIER_HTML_PLACEHOLDER_${S}_${i}_IN_JS`,o=u.quasis.map((S,I,v)=>I===v.length-1?S.value.cooked:S.value.cooked+a(I)).join(""),p=Rt(n,r),m=new RegExp(a("(\\d+)"),"g"),y=0,c=await t(o,{parser:e,__onHtmlRoot(S){y=S.children.length}}),f=st(c,S=>{if(typeof S!="string")return S;let I=[],v=S.split(m);for(let _=0;_1?E(D(f)):D(f),h,"`"]))}function Rc(e){return Cn(e.node,"HTML")||e.match(t=>t.type==="TemplateLiteral",(t,r)=>t.type==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="html"&&r==="quasi")}var Jc=Mi.bind(void 0,"html"),Nc=Mi.bind(void 0,"angular");function Uc(e){if(Rc(e))return Jc;if(Oi(e))return Nc}var Ri=Uc;async function Gc(e,t,r){let{node:n}=r,s=H(!1,n.quasis[0].value.raw,/((?:\\\\)*)\\`/g,(o,p)=>"\\".repeat(p.length/2)+"`"),u=qc(s),i=u!=="";i&&(s=H(!1,s,new RegExp(`^${u}`,"gm"),""));let a=tn(await e(s,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",i?E([F,a]):[mr,Os(a)],F,"`"]}function qc(e){let t=e.match(/^([^\S\n]*)\S/m);return t===null?"":t[1]}function Wc(e){if(Yc(e))return Gc}function Yc({node:e,parent:t}){return(t==null?void 0:t.type)==="TaggedTemplateExpression"&&e.quasis.length===1&&t.tag.type==="Identifier"&&(t.tag.name==="md"||t.tag.name==="markdown")}var Ji=Wc;function Xc(e){let{node:t}=e;if(t.type!=="TemplateLiteral"||$c(t))return;let r;for(let n of[_i,ji,Ri,Ji])if(r=n(e),!!r)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===""?"``":async(...s)=>{let u=await r(...s);return u&&et({embed:!0,...u.label},u)}}function $c({quasis:e}){return e.some(({value:{cooked:t}})=>t===null)}var Ni=Xc;var Vc=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),Jt=e=>{for(let t of e.quasis)delete t.value};function Ui(e,t,r){var s,u;if(e.type==="Program"&&delete t.sourceType,(e.type==="BigIntLiteral"||e.type==="BigIntLiteralTypeAnnotation")&&t.value&&(t.value=t.value.toLowerCase()),(e.type==="BigIntLiteral"||e.type==="Literal")&&t.bigint&&(t.bigint=t.bigint.toLowerCase()),e.type==="DecimalLiteral"&&(t.value=Number(t.value)),e.type==="Literal"&&t.decimal&&(t.decimal=Number(t.decimal)),e.type==="EmptyStatement"||e.type==="JSXText"||e.type==="JSXExpressionContainer"&&(e.expression.type==="Literal"||e.expression.type==="StringLiteral")&&e.expression.value===" ")return null;if((e.type==="Property"||e.type==="ObjectProperty"||e.type==="MethodDefinition"||e.type==="ClassProperty"||e.type==="ClassMethod"||e.type==="PropertyDefinition"||e.type==="TSDeclareMethod"||e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty")&&typeof e.key=="object"&&e.key&&(e.key.type==="Literal"||e.key.type==="NumericLiteral"||e.key.type==="StringLiteral"||e.key.type==="Identifier")&&delete t.key,e.type==="JSXElement"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(i=>i.name.name==="jsx"))for(let{type:i,expression:a}of t.children)i==="JSXExpressionContainer"&&a.type==="TemplateLiteral"&&Jt(a);e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&Jt(t.value.expression),e.type==="JSXAttribute"&&((s=e.value)==null?void 0:s.type)==="Literal"&&/["']|"|'/.test(e.value.value)&&(t.value.value=H(!1,t.value.value,/["']|"|'/g,'"'));let n=e.expression||e.callee;if(e.type==="Decorator"&&n.type==="CallExpression"&&n.callee.name==="Component"&&n.arguments.length===1){let i=e.expression.arguments[0].properties;for(let[a,o]of t.expression.arguments[0].properties.entries())switch(i[a].key.name){case"styles":G(o.value)&&Jt(o.value.elements[0]);break;case"template":o.value.type==="TemplateLiteral"&&Jt(o.value);break}}if(e.type==="TaggedTemplateExpression"&&(e.tag.type==="MemberExpression"||e.tag.type==="Identifier"&&(e.tag.name==="gql"||e.tag.name==="graphql"||e.tag.name==="css"||e.tag.name==="md"||e.tag.name==="markdown"||e.tag.name==="html")||e.tag.type==="CallExpression")&&Jt(t.quasi),e.type==="TemplateLiteral"&&((u=e.leadingComments)!=null&&u.some(a=>ae(a)&&["GraphQL","HTML"].some(o=>a.value===` ${o} `))||r.type==="CallExpression"&&r.callee.name==="graphql"||!e.leadingComments)&&Jt(t),(e.type==="TSIntersectionType"||e.type==="TSUnionType")&&e.types.length===1)return t.types[0];e.type==="ChainExpression"&&e.expression.type==="TSNonNullExpression"&&([t.type,t.expression.type]=[t.expression.type,t.type])}Ui.ignoredProperties=Vc;var Gi=Ui;var Ft=ma(Hi(),1);function sl(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` +`)&&o.push({hasLineBreak:!1,cells:[]})}let p=Math.max(s.length,...o.map(c=>c.cells.length)),m=Array.from({length:p}).fill(0),D=[{cells:s},...o.filter(c=>c.cells.length>0)];for(let{cells:c}of D.filter(f=>!f.hasLineBreak))for(let[f,l]of c.entries())m[f]=Math.max(m[f],tt(l));return i.push(Ae,"`",E([C,B(C,D.map(c=>B(" | ",c.cells.map((f,l)=>c.hasLineBreak?f:f+" ".repeat(m[l]-tt(f))))))]),C,"`"),i}}function uc(e,t){let{node:r}=e,n=t();return d(r)&&(n=y([E([F,n]),F])),["${",n,Ae,"}"]}function Rt(e,t){return e.map(r=>uc(r,t),"expressions")}function Zr(e,t){return ut(e,r=>typeof r=="string"?t?H(!1,r,/(\\*)`/g,"$1$1\\`"):ms(r):r)}function ms(e){return H(!1,e,/([\\`]|\${)/g,"\\$1")}function ic({node:e,parent:t}){let r=/^[fx]?(?:describe|it|test)$/;return t.type==="TaggedTemplateExpression"&&t.quasi===e&&t.tag.type==="MemberExpression"&&t.tag.property.type==="Identifier"&&t.tag.property.name==="each"&&(t.tag.object.type==="Identifier"&&r.test(t.tag.object.name)||t.tag.object.type==="MemberExpression"&&t.tag.object.property.type==="Identifier"&&(t.tag.object.property.name==="only"||t.tag.object.property.name==="skip")&&t.tag.object.object.type==="Identifier"&&r.test(t.tag.object.object.name))}function ac(e){let t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}}var en=ac;function oc(e){switch(e){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function ui(e,t,r){let{node:n}=e;return y([n.variance?r("variance"):"","[",E([r("keyTparam")," in ",r("sourceType")]),"]",oc(n.optional),": ",r("propType")])}function ys(e,t){return e==="+"||e==="-"?e+t:t}function ii(e,t,r){let{node:n}=e,s=rt(t.originalText,U(n),U(n.typeParameter));return y(["{",E([t.bracketSpacing?A:F,y([r("typeParameter"),n.optional?ys(n.optional,"?"):"",n.typeAnnotation?": ":"",r("typeAnnotation")]),t.semi?P(";"):""]),M(e,t),t.bracketSpacing?A:F,"}"],{shouldBreak:s})}var nr=en("typeParameters");function pc(e,t,r){let{node:n}=e;return X(n).length===1&&n.type.startsWith("TS")&&!n[r][0].constraint&&e.parent.type==="ArrowFunctionExpression"&&!(t.filepath&&/\.ts$/.test(t.filepath))}function gt(e,t,r,n){let{node:s}=e;if(!s[n])return"";if(!Array.isArray(s[n]))return r(n);let u=e.getNode(2),i=u&&Ct(u),a=e.match(m=>!(m[n].length===1&&ke(m[n][0])),void 0,(m,D)=>D==="typeAnnotation",m=>m.type==="Identifier",rs);if(s[n].length===0||!a&&(i||s[n].length===1&&(s[n][0].type==="NullableTypeAnnotation"||ss(s[n][0]))))return["<",B(", ",e.map(r,n)),cc(e,t),">"];let p=s.type==="TSTypeParameterInstantiation"?"":pc(e,t,n)?",":le(t)?P(","):"";return y(["<",E([F,B([",",A],e.map(r,n))]),p,F,">"],{id:nr(s)})}function cc(e,t){let{node:r}=e;if(!d(r,x.Dangling))return"";let n=!d(r,x.Line),s=M(e,t,{indent:!n});return n?s:[s,C]}function tn(e,t,r){let{node:n,parent:s}=e,u=[n.type==="TSTypeParameter"&&n.const?"const ":""],i=n.type==="TSTypeParameter"?r("name"):n.name;if(s.type==="TSMappedType")return s.readonly&&u.push(ys(s.readonly,"readonly")," "),u.push("[",i),n.constraint&&u.push(" in ",r("constraint")),s.nameType&&u.push(" as ",e.callParent(()=>r("nameType"))),u.push("]"),u;if(n.variance&&u.push(r("variance")),n.in&&u.push("in "),n.out&&u.push("out "),u.push(i),n.bound&&(n.usesExtendsBound&&u.push(" extends "),u.push(q(e,r,"bound"))),n.constraint){let a=Symbol("constraint");u.push(" extends",y(E(A),{id:a}),Ae,mt(r("constraint"),{groupId:a}))}return n.default&&u.push(" = ",r("default")),y(u)}var ai=new Proxy(()=>{},{get:()=>ai}),rn=ai;var nn=new WeakMap;function ct(e,t,r){let{node:n}=e;if(n.computed)return["[",r("key"),"]"];let{parent:s}=e,{key:u}=n;if(t.quoteProps==="consistent"&&!nn.has(s)){let i=(s.properties||s.body||s.members).some(a=>!a.computed&&a.key&&Q(a.key)&&!_n(a,t));nn.set(s,i)}if((u.type==="Identifier"||he(u)&&jn(He(oe(u)))&&String(u.value)===He(oe(u))&&!(t.parser==="typescript"||t.parser==="babel-ts"))&&(t.parser==="json"||t.quoteProps==="consistent"&&nn.get(s))){let i=Tt(JSON.stringify(u.type==="Identifier"?u.name:u.value.toString()),t);return e.call(a=>pe(a,i,t),"key")}return _n(n,t)&&(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!nn.get(s))?e.call(i=>pe(i,/^\d/.test(u.value)?He(u.value):u.value,t),"key"):r("key")}function oi(e,t,r){let{node:n}=e;return n.shorthand?r("value"):ft(e,t,r,ct(e,t,r),":","value")}var lc=e=>e.type==="ObjectMethod"||e.type==="ClassMethod"||e.type==="ClassPrivateMethod"||e.type==="MethodDefinition"||e.type==="TSAbstractMethodDefinition"||e.type==="TSDeclareMethod"||(e.type==="Property"||e.type==="ObjectProperty")&&(e.method||e.kind==="get"||e.kind==="set"),mc=e=>e.node.type==="FunctionExpression"&&e.key==="value"&&lc(e.parent);function sn(e,t,r,n){if(mc(e))return un(e,r,t);let{node:s}=e,u=!1;if((s.type==="FunctionDeclaration"||s.type==="FunctionExpression")&&(n!=null&&n.expandLastArg)){let{parent:m}=e;k(m)&&(Ce(m).length>1||X(s).every(D=>D.type==="Identifier"&&!D.typeAnnotation))&&(u=!0)}let i=[Z(e),s.async?"async ":"",`function${s.generator?"*":""} `,s.id?t("id"):""],a=ot(e,t,r,u),o=on(e,t),p=xt(s,o);return i.push(Ve(e,r,t),y([p?y(a):a,o]),s.body?" ":"",t("body")),r.semi&&(s.declare||!s.body)&&i.push(";"),i}function sr(e,t,r){let{node:n}=e,{kind:s}=n,u=n.value||n,i=[];return!s||s==="init"||s==="method"||s==="constructor"?u.async&&i.push("async "):(rn.ok(s==="get"||s==="set"),i.push(s," ")),u.generator&&i.push("*"),i.push(ct(e,t,r),n.optional||n.key.optional?"?":"",n===u?un(e,t,r):r("value")),i}function un(e,t,r){let{node:n}=e,s=ot(e,r,t),u=on(e,r),i=Nu(n),a=xt(n,u),o=[Ve(e,t,r),y([i?y(s,{shouldBreak:!0}):a?y(s):s,u])];return n.body?o.push(" ",r("body")):o.push(t.semi?";":""),o}function yc(e){let t=X(e);return t.length===1&&!e.typeParameters&&!d(e,x.Dangling)&&t[0].type==="Identifier"&&!t[0].typeAnnotation&&!d(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function an(e,t){if(t.arrowParens==="always")return!1;if(t.arrowParens==="avoid"){let{node:r}=e;return yc(r)}return!1}function on(e,t){let{node:r}=e,s=[q(e,t,"returnType")];return r.predicate&&s.push(t("predicate")),s}function pi(e,t,r){let{node:n}=e,s=t.semi?";":"",u=[];if(n.argument){let o=r("argument");Dc(t,n.argument)?o=["(",E([C,o]),C,")"]:(ce(n.argument)||n.argument.type==="SequenceExpression")&&(o=y([P("("),E([F,o]),F,P(")")])),u.push(" ",o)}let i=d(n,x.Dangling),a=s&&i&&d(n,x.Last|x.Line);return a&&u.push(s),i&&u.push(" ",M(e,t)),a||u.push(s),u}function ci(e,t,r){return["return",pi(e,t,r)]}function li(e,t,r){return["throw",pi(e,t,r)]}function Dc(e,t){if(Ie(e.originalText,t)||d(t,x.Leading,r=>rt(e.originalText,U(r),O(r)))&&!Y(t))return!0;if(Lt(t)){let r=t,n;for(;n=zs(r);)if(r=n,Ie(e.originalText,r))return!0}return!1}var mi=j(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function pn(e,t,r){let{node:n}=e,s=[Z(e),_t(e),"class"],u=d(n.id,x.Trailing)||d(n.typeParameters,x.Trailing)||d(n.superClass)||b(n.extends)||b(n.mixins)||b(n.implements),i=[],a=[];if(n.id&&i.push(" ",r("id")),i.push(r("typeParameters")),n.superClass){let o=[Ec(e,t,r),r("superTypeParameters")],p=e.call(m=>["extends ",pe(m,o,t)],"superClass");u?a.push(A,y(p)):a.push(" ",p)}else a.push(Ds(e,t,r,"extends"));if(a.push(Ds(e,t,r,"mixins"),Ds(e,t,r,"implements")),u){let o;Di(n)?o=[...i,E(a)]:o=E([...i,a]),s.push(y(o,{id:yi(n)}))}else s.push(...i,...a);return s.push(" ",r("body")),s}var yi=en("heritageGroup");function fs(e){return P(C,"",{groupId:yi(e)})}function fc(e){return["extends","mixins","implements"].reduce((t,r)=>t+(Array.isArray(e[r])?e[r].length:0),e.superClass?1:0)>1}function Di(e){return e.typeParameters&&!d(e.typeParameters,x.Trailing|x.Line)&&!fc(e)}function Ds(e,t,r,n){let{node:s}=e;if(!b(s[n]))return"";let u=M(e,t,{marker:n});return[Di(s)?P(" ",A,{groupId:nr(s.typeParameters)}):A,u,u&&C,n,y(E([A,B([",",A],e.map(r,n))]))]}function Ec(e,t,r){let n=r("superClass"),{parent:s}=e;return s.type==="AssignmentExpression"?y(P(["(",E([F,n]),F,")"],n)):n}function cn(e,t,r){let{node:n}=e,s=[];return b(n.decorators)&&s.push(is(e,t,r)),s.push(jt(n)),n.static&&s.push("static "),s.push(_t(e)),n.override&&s.push("override "),s.push(sr(e,t,r)),s}function ln(e,t,r){let{node:n}=e,s=[],u=t.semi?";":"";b(n.decorators)&&s.push(is(e,t,r)),s.push(jt(n),Z(e)),n.static&&s.push("static "),s.push(_t(e)),n.override&&s.push("override "),n.readonly&&s.push("readonly "),n.variance&&s.push(r("variance")),(n.type==="ClassAccessorProperty"||n.type==="AccessorProperty"||n.type==="TSAbstractAccessorProperty")&&s.push("accessor "),s.push(ct(e,t,r),$(e),Vr(e),q(e,r));let i=n.type==="TSAbstractPropertyDefinition"||n.type==="TSAbstractAccessorProperty";return[ft(e,t,r,s," =",i?void 0:"value"),u]}function fi(e,t,r){let{node:n}=e,s=[];return e.each(({node:u,next:i,isLast:a})=>{s.push(r()),!t.semi&&mi(u)&&Fc(u,i)&&s.push(";"),a||(s.push(C),me(u,t)&&s.push(C))},"body"),d(n,x.Dangling)&&s.push(M(e,t)),[b(n.body)?fs(e.parent):"","{",s.length>0?[E([C,s]),C]:"","}"]}function Fc(e,t){var s;let{type:r,name:n}=e.key;if(!e.computed&&r==="Identifier"&&(n==="static"||n==="get"||n==="set")&&!e.value&&!e.typeAnnotation)return!0;if(!t||t.static||t.accessibility)return!1;if(!t.computed){let u=(s=t.key)==null?void 0:s.name;if(u==="in"||u==="instanceof")return!0}if(mi(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||t.kind==="get"||t.kind==="set")return!1;let i=t.value?t.value.generator:t.generator;return!!(t.computed||i)}case"TSIndexSignature":return!0}return!1}function Et(e,t,r){var R;let n=t.semi?";":"",{node:s}=e,u=s.type==="ObjectTypeAnnotation",i=s.type==="TSEnumDeclaration"||s.type==="EnumBooleanBody"||s.type==="EnumNumberBody"||s.type==="EnumStringBody"||s.type==="EnumSymbolBody",a=[s.type==="TSTypeLiteral"||i?"members":s.type==="TSInterfaceBody"?"body":"properties"];u&&a.push("indexers","callProperties","internalSlots");let o=a.flatMap(T=>e.map(({node:N})=>({node:N,printed:r(),loc:U(N)}),T));a.length>1&&o.sort((T,N)=>T.loc-N.loc);let{parent:p,key:m}=e,D=u&&m==="body"&&(p.type==="InterfaceDeclaration"||p.type==="DeclareInterface"||p.type==="DeclareClass"),c=s.type==="TSInterfaceBody"||i||D||s.type==="ObjectPattern"&&p.type!=="FunctionDeclaration"&&p.type!=="FunctionExpression"&&p.type!=="ArrowFunctionExpression"&&p.type!=="ObjectMethod"&&p.type!=="ClassMethod"&&p.type!=="ClassPrivateMethod"&&p.type!=="AssignmentPattern"&&p.type!=="CatchClause"&&s.properties.some(T=>T.value&&(T.value.type==="ObjectPattern"||T.value.type==="ArrayPattern"))||s.type!=="ObjectPattern"&&o.length>0&&rt(t.originalText,U(s),o[0].loc),f=D?";":s.type==="TSInterfaceBody"||s.type==="TSTypeLiteral"?P(n,";"):",",l=s.type==="RecordExpression"?"#{":s.exact?"{|":"{",h=s.exact?"|}":"}",g=[],S=o.map(T=>{let N=[...g,y(T.printed)];return g=[f,A],(T.node.type==="TSPropertySignature"||T.node.type==="TSMethodSignature"||T.node.type==="TSConstructSignatureDeclaration"||T.node.type==="TSCallSignatureDeclaration")&&d(T.node,x.PrettierIgnore)&&g.shift(),me(T.node,t)&&g.push(C),N});if(s.inexact||s.hasUnknownMembers){let T;if(d(s,x.Dangling)){let N=d(s,x.Line);T=[M(e,t),N||z(t.originalText,O(w(!1,Kt(s),-1)))?C:A,"..."]}else T=["..."];S.push([...g,...T])}let I=(R=w(!1,o,-1))==null?void 0:R.node,v=!(s.inexact||s.hasUnknownMembers||I&&(I.type==="RestElement"||(I.type==="TSPropertySignature"||I.type==="TSCallSignatureDeclaration"||I.type==="TSMethodSignature"||I.type==="TSConstructSignatureDeclaration")&&d(I,x.PrettierIgnore))),_;if(S.length===0){if(!d(s,x.Dangling))return[l,h,q(e,r)];_=y([l,M(e,t,{indent:!0}),F,h,$(e),q(e,r)])}else _=[D&&b(s.properties)?fs(p):"",l,E([t.bracketSpacing?A:F,...S]),P(v&&(f!==","||le(t))?f:""),t.bracketSpacing?A:F,h,$(e),q(e,r)];return e.match(T=>T.type==="ObjectPattern"&&!b(T.decorators),Es)||ke(s)&&(e.match(void 0,(T,N)=>N==="typeAnnotation",(T,N)=>N==="typeAnnotation",Es)||e.match(void 0,(T,N)=>T.type==="FunctionTypeParam"&&N==="typeAnnotation",Es))||!c&&e.match(T=>T.type==="ObjectPattern",T=>T.type==="AssignmentExpression"||T.type==="VariableDeclarator")?_:y(_,{shouldBreak:c})}function Es(e,t){return(t==="params"||t==="parameters"||t==="this"||t==="rest")&&ns(e)}var Fs=new WeakMap;function Ei(e){return Fs.has(e)||Fs.set(e,e.type==="ConditionalExpression"&&!re(e,t=>t.type==="ObjectExpression")),Fs.get(e)}var Fi=e=>e.type==="SequenceExpression";function Ci(e,t,r,n={}){let s=[],u,i=[],a=!1,o=!n.expandLastArg&&e.node.body.type==="ArrowFunctionExpression",p;(function g(){let{node:S}=e,I=Cc(e,t,r,n);if(s.length===0)s.push(I);else{let{leading:v,trailing:_}=Nn(e,t);s.push([v,I]),i.unshift(_)}o&&(a||(a=S.returnType&&X(S).length>0||S.typeParameters||X(S).some(v=>v.type!=="Identifier"))),!o||S.body.type!=="ArrowFunctionExpression"?(u=r("body",n),p=S.body):e.call(g,"body")})();let m=!Ie(t.originalText,p)&&(Fi(p)||dc(p,u,t)||!a&&Ei(p)),D=e.key==="callee"&&it(e.parent),c=Symbol("arrow-chain"),f=Ac(e,n,{signatureDocs:s,shouldBreak:a}),l,h=!1;return o&&(D||n.assignmentLayout)&&(h=!0,l=n.assignmentLayout==="chain-tail-arrow-chain"||D&&!m),u=Tc(e,t,n,{bodyDoc:u,bodyComments:i,functionBody:p,shouldPutBodyOnSameLine:m}),y([y(h?E([F,f]):f,{shouldBreak:l,id:c})," =>",o?mt(u,{groupId:c}):y(u),o&&D?P(F,"",{groupId:c}):""])}function Cc(e,t,r,n){let{node:s}=e,u=[];if(s.async&&u.push("async "),an(e,t))u.push(r(["params",0]));else{let a=n.expandLastArg||n.expandFirstArg,o=on(e,r);if(a){if(K(o))throw new at;o=y(Ut(o))}u.push(y([ot(e,r,t,a,!0),o]))}let i=M(e,t,{filter(a){let o=Xe(t.originalText,O(a));return o!==!1&&t.originalText.slice(o,o+2)==="=>"}});return i&&u.push(" ",i),u}function dc(e,t,r){var n,s;return G(e)||ee(e)||e.type==="ArrowFunctionExpression"||e.type==="DoExpression"||e.type==="BlockStatement"||Y(e)||((n=t.label)==null?void 0:n.hug)!==!1&&(((s=t.label)==null?void 0:s.embed)||xr(e,r.originalText))}function Ac(e,t,{signatureDocs:r,shouldBreak:n}){if(r.length===1)return r[0];let{parent:s,key:u}=e;return u!=="callee"&&it(s)||ce(s)?y([r[0]," =>",E([A,B([" =>",A],r.slice(1))])],{shouldBreak:n}):u==="callee"&&it(s)||t.assignmentLayout?y(B([" =>",A],r),{shouldBreak:n}):y(E(B([" =>",A],r)),{shouldBreak:n})}function Tc(e,t,r,{bodyDoc:n,bodyComments:s,functionBody:u,shouldPutBodyOnSameLine:i}){let{node:a,parent:o}=e,p=r.expandLastArg&&le(t,"all")?P(","):"",m=(r.expandLastArg||o.type==="JSXExpressionContainer")&&!d(a)?F:"";return i&&Ei(u)?[" ",y([P("","("),E([F,n]),P("",")"),p,m]),s]:(Fi(u)&&(n=y(["(",E([F,n]),F,")"])),i?[" ",n,s]:[E([A,n,s]),p,m])}function ur(e,t,r,n){let{node:s}=e,u=[],i=xc(s[n]);return e.each(({node:a})=>{a.type!=="EmptyStatement"&&(u.push(r()),a!==i&&(u.push(C),me(a,t)&&u.push(C)))},n),u}function xc(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r.type!=="EmptyStatement")return r}}function mn(e,t,r){let{node:n}=e,s=[];n.type==="StaticBlock"&&s.push("static "),s.push("{");let u=Cs(e,t,r);if(u)s.push(E([C,u]),C);else{let{parent:i}=e,a=e.grandparent;i.type==="ArrowFunctionExpression"||i.type==="FunctionExpression"||i.type==="FunctionDeclaration"||i.type==="ObjectMethod"||i.type==="ClassMethod"||i.type==="ClassPrivateMethod"||i.type==="ForStatement"||i.type==="WhileStatement"||i.type==="DoWhileStatement"||i.type==="DoExpression"||i.type==="CatchClause"&&!a.finalizer||i.type==="TSModuleDeclaration"||i.type==="TSDeclareFunction"||n.type==="StaticBlock"||s.push(C)}return s.push("}"),s}function Cs(e,t,r){var o;let{node:n}=e,s=b(n.directives),u=n.body.some(p=>p.type!=="EmptyStatement"),i=d(n,x.Dangling);if(!s&&!u&&!i)return"";let a=[];return s&&(a.push(ur(e,t,r,"directives")),(u||i)&&(a.push(C),me(w(!1,n.directives,-1),t)&&a.push(C))),u&&a.push(ur(e,t,r,"body")),i&&a.push(M(e,t)),n.type==="Program"&&((o=e.parent)==null?void 0:o.type)!=="ModuleExpression"&&a.push(C),a}function di(e,t){if(t.semi||ds(e,t)||Ts(e,t))return!1;let{node:r,key:n,parent:s}=e;return!!(r.type==="ExpressionStatement"&&(n==="body"&&(s.type==="Program"||s.type==="BlockStatement"||s.type==="StaticBlock"||s.type==="TSModuleBlock")||n==="consequent"&&s.type==="SwitchCase")&&e.call(()=>Ai(e,t),"expression"))}function Ai(e,t){let{node:r}=e;switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!an(e,t))return!0;break;case"UnaryExpression":{let{prefix:n,operator:s}=r;if(n&&(s==="+"||s==="-"))return!0;break}case"BindExpression":if(!r.object)return!0;break;case"Literal":if(r.regex)return!0;break;default:if(Y(r))return!0}return we(e,t)?!0:Lt(r)?e.call(()=>Ai(e,t),...dr(r)):!1}function ds({node:e,parent:t},r){return(r.parentParser==="markdown"||r.parentParser==="mdx")&&e.type==="ExpressionStatement"&&Y(e.expression)&&t.type==="Program"&&t.body.length===1}function As(e){switch(e.type){case"MemberExpression":switch(e.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return As(e.object)}return!1;case"Identifier":return!0;default:return!1}}function Ts({node:e,parent:t},r){return(r.parser==="__vue_event_binding"||r.parser==="__vue_ts_event_binding")&&e.type==="ExpressionStatement"&&t.type==="Program"&&t.body.length===1}function Ti(e,t,r){let n=[r("expression")];return Ts(e,t)?As(e.node.expression)&&n.push(";"):ds(e,t)||t.semi&&n.push(";"),d(e.node,x.Dangling,({marker:s})=>s===zt)&&n.push(" ",M(e,t,{marker:zt})),n}function xi(e,t,r){if(t.__isVueBindings||t.__isVueForBindingLeft){let n=e.map(r,"program","body",0,"params");if(n.length===1)return n[0];let s=B([",",A],n);return t.__isVueForBindingLeft?["(",E([F,y(s)]),F,")"]:s}if(t.__isEmbeddedTypescriptGenericParameters){let n=e.map(r,"program","body",0,"typeParameters","params");return B([",",A],n)}}function gi(e,t,r,n){let{node:s}=e;if(vr(s))return vu(e,t);let u=t.semi?";":"",i=[];switch(s.type){case"JsExpressionRoot":return r("node");case"JsonRoot":return[r("node"),C];case"File":return xi(e,t,r)??r("program");case"Program":return Cs(e,t,r);case"EmptyStatement":return"";case"ExpressionStatement":return Ti(e,t,r);case"ChainExpression":return r("expression");case"ParenthesizedExpression":return!d(s.expression)&&(ee(s.expression)||G(s.expression))?["(",r("expression"),")"]:y(["(",E([F,r("expression")]),F,")"]);case"AssignmentExpression":return ju(e,t,r);case"VariableDeclarator":return Mu(e,t,r);case"BinaryExpression":case"LogicalExpression":return Ir(e,t,r);case"AssignmentPattern":return[r("left")," = ",r("right")];case"OptionalMemberExpression":case"MemberExpression":return ku(e,t,r);case"MetaProperty":return[r("meta"),".",r("property")];case"BindExpression":return s.object&&i.push(r("object")),i.push(y(E([F,Lr(e,t,r)]))),i;case"Identifier":return[s.name,$(e),Vr(e),q(e,r)];case"V8IntrinsicIdentifier":return["%",s.name];case"SpreadElement":case"SpreadElementPattern":case"SpreadPropertyPattern":case"RestElement":return Hr(e,r);case"FunctionDeclaration":case"FunctionExpression":return sn(e,r,t,n);case"ArrowFunctionExpression":return Ci(e,t,r,n);case"YieldExpression":return i.push("yield"),s.delegate&&i.push("*"),s.argument&&i.push(" ",r("argument")),i;case"AwaitExpression":if(i.push("await"),s.argument){i.push(" ",r("argument"));let{parent:a}=e;if(k(a)&&a.callee===s||J(a)&&a.object===s){i=[E([F,...i]),F];let o=e.findAncestor(p=>p.type==="AwaitExpression"||p.type==="BlockStatement");if((o==null?void 0:o.type)!=="AwaitExpression"||!re(o.argument,p=>p===s))return y(i)}}return i;case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return Kr(e,t,r);case"ImportDeclaration":return $u(e,t,r);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return Zu(e,t,r);case"ImportAttribute":return[r("key"),": ",r("value")];case"Import":return"import";case"BlockStatement":case"StaticBlock":return mn(e,t,r);case"ClassBody":return fi(e,t,r);case"ThrowStatement":return li(e,t,r);case"ReturnStatement":return ci(e,t,r);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return wr(e,t,r);case"ObjectExpression":case"ObjectPattern":case"RecordExpression":return Et(e,t,r);case"ObjectProperty":case"Property":return s.method||s.kind==="get"||s.kind==="set"?sr(e,t,r):oi(e,t,r);case"ObjectMethod":return sr(e,t,r);case"Decorator":return["@",r("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return vt(e,t,r);case"SequenceExpression":{let{parent:a}=e;if(a.type==="ExpressionStatement"||a.type==="ForStatement"){let o=[];return e.each(({isFirst:p})=>{p?o.push(r()):o.push(",",E([A,r()]))},"expressions"),y(o)}return y(B([",",A],e.map(r,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[r("value"),u];case"UnaryExpression":return i.push(s.operator),/[a-z]$/.test(s.operator)&&i.push(" "),d(s.argument)?i.push(y(["(",E([F,r("argument")]),F,")"])):i.push(r("argument")),i;case"UpdateExpression":return i.push(r("argument"),s.operator),s.prefix&&i.reverse(),i;case"ConditionalExpression":return Mt(e,t,r);case"VariableDeclaration":{let a=e.map(r,"declarations"),o=e.parent,p=o.type==="ForStatement"||o.type==="ForInStatement"||o.type==="ForOfStatement",m=s.declarations.some(c=>c.init),D;return a.length===1&&!d(s.declarations[0])?D=a[0]:a.length>0&&(D=E(a[0])),i=[Z(e),s.kind,D?[" ",D]:"",E(a.slice(1).map(c=>[",",m&&!p?C:A,c]))],p&&o.body!==s||i.push(u),y(i)}case"WithStatement":return y(["with (",r("object"),")",pt(s.body,r("body"))]);case"IfStatement":{let a=pt(s.consequent,r("consequent")),o=y(["if (",y([E([F,r("test")]),F]),")",a]);if(i.push(o),s.alternate){let p=d(s.consequent,x.Trailing|x.Line)||gr(s),m=s.consequent.type==="BlockStatement"&&!p;i.push(m?" ":C),d(s,x.Dangling)&&i.push(M(e,t),p?C:" "),i.push("else",y(pt(s.alternate,r("alternate"),s.alternate.type==="IfStatement")))}return i}case"ForStatement":{let a=pt(s.body,r("body")),o=M(e,t),p=o?[o,F]:"";return!s.init&&!s.test&&!s.update?[p,y(["for (;;)",a])]:[p,y(["for (",y([E([F,r("init"),";",A,r("test"),";",A,r("update")]),F]),")",a])]}case"WhileStatement":return y(["while (",y([E([F,r("test")]),F]),")",pt(s.body,r("body"))]);case"ForInStatement":return y(["for (",r("left")," in ",r("right"),")",pt(s.body,r("body"))]);case"ForOfStatement":return y(["for",s.await?" await":""," (",r("left")," of ",r("right"),")",pt(s.body,r("body"))]);case"DoWhileStatement":{let a=pt(s.body,r("body"));return i=[y(["do",a])],s.body.type==="BlockStatement"?i.push(" "):i.push(C),i.push("while (",y([E([F,r("test")]),F]),")",u),i}case"DoExpression":return[s.async?"async ":"","do ",r("body")];case"BreakStatement":case"ContinueStatement":return i.push(s.type==="BreakStatement"?"break":"continue"),s.label&&i.push(" ",r("label")),i.push(u),i;case"LabeledStatement":return s.body.type==="EmptyStatement"?[r("label"),":;"]:[r("label"),": ",r("body")];case"TryStatement":return["try ",r("block"),s.handler?[" ",r("handler")]:"",s.finalizer?[" finally ",r("finalizer")]:""];case"CatchClause":if(s.param){let a=d(s.param,p=>!ae(p)||p.leading&&z(t.originalText,O(p))||p.trailing&&z(t.originalText,U(p),{backwards:!0})),o=r("param");return["catch ",a?["(",E([F,o]),F,") "]:["(",o,") "],r("body")]}return["catch ",r("body")];case"SwitchStatement":return[y(["switch (",E([F,r("discriminant")]),F,")"])," {",s.cases.length>0?E([C,B(C,e.map(({node:a,isLast:o})=>[r(),!o&&me(a,t)?C:""],"cases"))]):"",C,"}"];case"SwitchCase":{s.test?i.push("case ",r("test"),":"):i.push("default:"),d(s,x.Dangling)&&i.push(" ",M(e,t));let a=s.consequent.filter(o=>o.type!=="EmptyStatement");if(a.length>0){let o=ur(e,t,r,"consequent");i.push(a.length===1&&a[0].type==="BlockStatement"?[" ",o]:E([C,o]))}return i}case"DebuggerStatement":return["debugger",u];case"ClassDeclaration":case"ClassExpression":return pn(e,t,r);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return cn(e,t,r);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return ln(e,t,r);case"TemplateElement":return xe(s.value.raw);case"TemplateLiteral":return Qr(e,r,t);case"TaggedTemplateExpression":return si(r);case"PrivateIdentifier":return["#",s.name];case"PrivateName":return["#",r("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":{i.push("module {");let a=r("body");return a&&i.push(E([C,a]),C),i.push("}"),i}case"InterpreterDirective":default:throw new Oe(s,"ESTree")}}function Si(e,t,r){let{node:n}=e;if(n.type.startsWith("NG"))switch(n.type){case"NGRoot":return[r("node"),d(n.node)?" //"+Kt(n.node)[0].value.trimEnd():""];case"NGPipeExpression":return Ir(e,t,r);case"NGChainedExpression":return y(B([";",A],e.map(()=>hc(e)?r():["(",r(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return e.map(()=>[e.isFirst?"":hi(e)?" ":[";",A],r()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/i.test(n.name)?n.name:JSON.stringify(n.name);case"NGMicrosyntaxExpression":return[r("expression"),n.alias===null?"":[" as ",r("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:s,parent:u}=e,i=hi(e)||(s===1&&(n.key.name==="then"||n.key.name==="else")||s===2&&n.key.name==="else"&&u.body[s-1].type==="NGMicrosyntaxKeyedExpression"&&u.body[s-1].key.name==="then")&&u.body[0].type==="NGMicrosyntaxExpression";return[r("key"),i?" ":": ",r("expression")]}case"NGMicrosyntaxLet":return["let ",r("key"),n.value===null?"":[" = ",r("value")]];case"NGMicrosyntaxAs":return[r("key")," as ",r("alias")];default:throw new Oe(n,"Angular")}}function hi({node:e,index:t,parent:r}){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1&&r.body[0].type==="NGMicrosyntaxLet"&&r.body[0].value===null}var gc=j(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function hc({node:e}){return Xt(e,gc)}function yn(e,t,r){let{node:n}=e,s=[Z(e),"interface"],u=[],i=[];n.type!=="InterfaceTypeAnnotation"&&u.push(" ",r("id"),r("typeParameters"));let a=n.typeParameters&&!d(n.typeParameters,x.Trailing|x.Line);return b(n.extends)&&i.push(a?P(" ",A,{groupId:nr(n.typeParameters)}):A,"extends ",(n.extends.length===1?ru:E)(B([",",A],e.map(r,"extends")))),d(n.id,x.Trailing)||b(n.extends)?a?s.push(y([...u,E(i)])):s.push(y(E([...u,...i]))):s.push(...u,...i),s.push(" ",r("body")),y(s)}function Bi(e,t,r){return Et(e,r,t)}function Dn(e,t){let{node:r}=e,n=t("id");r.computed&&(n=["[",n,"]"]);let s="";return r.initializer&&(s=t("initializer")),r.init&&(s=t("init")),s?[n," = ",s]:n}function bi(e,t,r){let{node:n}=e,s;if(n.type==="EnumSymbolBody"||n.explicitType)switch(n.type){case"EnumBooleanBody":s="boolean";break;case"EnumNumberBody":s="number";break;case"EnumStringBody":s="string";break;case"EnumSymbolBody":s="symbol";break}return[s?`of ${s} `:"",Bi(e,t,r)]}function fn(e,t,r){let{node:n}=e;return[Z(e),n.const?"const ":"","enum ",t("id")," ",n.type==="TSEnumDeclaration"?Bi(e,t,r):t("body")]}function Pi(e,t,r){let{node:n}=e;if(Er(n))return n.type.slice(0,-14).toLowerCase();let s=t.semi?";":"";switch(n.type){case"DeclareClass":return pn(e,t,r);case"DeclareFunction":return[Z(e),"function ",r("id"),r("predicate"),s];case"DeclareModule":return["declare module ",r("id")," ",r("body")];case"DeclareModuleExports":return["declare module.exports",q(e,r),s];case"DeclareVariable":return[Z(e),n.kind??"var"," ",r("id"),s];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return Kr(e,t,r);case"DeclareOpaqueType":case"OpaqueType":return Uu(e,t,r);case"DeclareTypeAlias":case"TypeAlias":return jr(e,t,r);case"IntersectionTypeAnnotation":return Mr(e,t,r);case"UnionTypeAnnotation":return Rr(e,t,r);case"ConditionalTypeAnnotation":return Mt(e,t,r);case"InferTypeAnnotation":return Ur(e,t,r);case"FunctionTypeAnnotation":return Jr(e,t,r);case"TupleTypeAnnotation":return vt(e,t,r);case"TupleTypeLabeledElement":return qr(e,t,r);case"TupleTypeSpreadElement":return Gr(e,t,r);case"GenericTypeAnnotation":return[r("id"),gt(e,t,r,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return Nr(e,t,r);case"TypeAnnotation":return Wr(e,t,r);case"TypeParameter":return tn(e,t,r);case"TypeofTypeAnnotation":return Xr(e,r);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return Yr(r);case"DeclareEnum":case"EnumDeclaration":return fn(e,r,t);case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":return bi(e,r,t);case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":return Dn(e,r);case"FunctionTypeParam":{let u=n.name?r("name"):e.parent.this===n?"this":"";return[u,$(e),u?": ":"",r("typeAnnotation")]}case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return yn(e,t,r);case"ClassImplements":case"InterfaceExtends":return[r("id"),r("typeParameters")];case"NullableTypeAnnotation":return["?",r("typeAnnotation")];case"Variance":{let{kind:u}=n;return rn.ok(u==="plus"||u==="minus"),u==="plus"?"+":"-"}case"KeyofTypeAnnotation":return["keyof ",r("argument")];case"ObjectTypeCallProperty":return[n.static?"static ":"",r("value")];case"ObjectTypeMappedTypeProperty":return ui(e,t,r);case"ObjectTypeIndexer":return[n.static?"static ":"",n.variance?r("variance"):"","[",r("id"),n.id?": ":"",r("key"),"]: ",r("value")];case"ObjectTypeProperty":{let u="";return n.proto?u="proto ":n.static&&(u="static "),[u,On(n)?n.kind+" ":"",n.variance?r("variance"):"",ct(e,t,r),$(e),vn(n)?"":": ",r("value")]}case"ObjectTypeAnnotation":return Et(e,t,r);case"ObjectTypeInternalSlot":return[n.static?"static ":"","[[",r("id"),"]]",$(e),n.method?"":": ",r("value")];case"ObjectTypeSpreadProperty":return Hr(e,r);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[r("qualification"),".",r("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(n.value);case"StringLiteralTypeAnnotation":return xe(Tt(oe(n),t));case"NumberLiteralTypeAnnotation":return He(n.raw??n.extra.raw);case"BigIntLiteralTypeAnnotation":return Or(n.raw??n.extra.raw);case"TypeCastExpression":return["(",r("expression"),q(e,r),")"];case"TypePredicate":return $r(e,r);case"TypeParameterDeclaration":case"TypeParameterInstantiation":return gt(e,t,r,"params");case"InferredPredicate":case"DeclaredPredicate":return[e.key==="predicate"&&e.parent.type!=="DeclareFunction"&&!e.parent.returnType?": ":" ","%checks",...n.type==="DeclaredPredicate"?["(",r("value"),")"]:[]]}}function ki(e,t,r){var i;let{node:n}=e;if(!n.type.startsWith("TS"))return;if(Fr(n))return n.type.slice(2,-7).toLowerCase();let s=t.semi?";":"",u=[];switch(n.type){case"TSThisType":return"this";case"TSTypeAssertion":{let a=!(G(n.expression)||ee(n.expression)),o=y(["<",E([F,r("typeAnnotation")]),F,">"]),p=[P("("),E([F,r("expression")]),F,P(")")];return a?qe([[o,r("expression")],[o,y(p,{shouldBreak:!0})],[o,r("expression")]]):y([o,r("expression")])}case"TSDeclareFunction":return sn(e,r,t);case"TSExportAssignment":return["export = ",r("expression"),s];case"TSModuleBlock":return mn(e,t,r);case"TSInterfaceBody":case"TSTypeLiteral":return Et(e,t,r);case"TSTypeAliasDeclaration":return jr(e,t,r);case"TSQualifiedName":return[r("left"),".",r("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return cn(e,t,r);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return ln(e,t,r);case"TSInterfaceHeritage":case"TSClassImplements":case"TSExpressionWithTypeArguments":case"TSInstantiationExpression":return[r("expression"),r("typeParameters")];case"TSTemplateLiteralType":return Qr(e,r,t);case"TSNamedTupleMember":return qr(e,t,r);case"TSRestType":return Gr(e,t,r);case"TSOptionalType":return[r("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return yn(e,t,r);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return gt(e,t,r,"params");case"TSTypeParameter":return tn(e,t,r);case"TSAsExpression":case"TSSatisfiesExpression":{let a=n.type==="TSAsExpression"?"as":"satisfies";u.push(r("expression"),` ${a} `,r("typeAnnotation"));let{parent:o}=e;return k(o)&&o.callee===n||J(o)&&o.object===n?y([E([F,...u]),F]):u}case"TSArrayType":return Yr(r);case"TSPropertySignature":return[n.readonly?"readonly ":"",ct(e,t,r),$(e),q(e,r)];case"TSParameterProperty":return[jt(n),n.static?"static ":"",n.override?"override ":"",n.readonly?"readonly ":"",r("parameter")];case"TSTypeQuery":return Xr(e,r);case"TSIndexSignature":{let a=n.parameters.length>1?P(le(t)?",":""):"",o=y([E([F,B([", ",F],e.map(r,"parameters"))]),a,F]),p=e.parent.type==="ClassBody"&&e.key==="body";return[p&&n.static?"static ":"",n.readonly?"readonly ":"","[",n.parameters?o:"","]",q(e,r),p?s:""]}case"TSTypePredicate":return $r(e,r);case"TSNonNullExpression":return[r("expression"),"!"];case"TSImportType":return[n.isTypeOf?"typeof ":"","import(",r("argument"),")",n.qualifier?[".",r("qualifier")]:"",gt(e,t,r,n.typeArguments?"typeArguments":"typeParameters")];case"TSLiteralType":return r("literal");case"TSIndexedAccessType":return Nr(e,t,r);case"TSTypeOperator":return[n.operator," ",r("typeAnnotation")];case"TSMappedType":return ii(e,t,r);case"TSMethodSignature":{let a=n.kind&&n.kind!=="method"?`${n.kind} `:"";u.push(jt(n),a,n.computed?"[":"",r("key"),n.computed?"]":"",$(e));let o=ot(e,r,t,!1,!0),p=n.returnType?"returnType":"typeAnnotation",m=n[p],D=m?q(e,r,p):"",c=xt(n,D);return u.push(c?y(o):o),m&&u.push(y(D)),y(u)}case"TSNamespaceExportDeclaration":return["export as namespace ",r("id"),t.semi?";":""];case"TSEnumDeclaration":return fn(e,r,t);case"TSEnumMember":return Dn(e,r);case"TSImportEqualsDeclaration":return[n.isExport?"export ":"","import ",os(n,!1),r("id")," = ",r("moduleReference"),t.semi?";":""];case"TSExternalModuleReference":return["require(",r("expression"),")"];case"TSModuleDeclaration":{let{parent:a}=e,o=a.type==="TSModuleDeclaration",p=((i=n.body)==null?void 0:i.type)==="TSModuleDeclaration";if(o)u.push(".");else if(u.push(Z(e)),!(n.kind==="global"||n.global)){let D=n.kind??(Q(n.id)||/(?:^|\s)module(?:\s|$)/.test(t.originalText.slice(U(n),U(n.id)))?"module":"namespace");u.push(D," ")}return u.push(r("id")),p?u.push(r("body")):n.body?u.push(" ",y(r("body"))):u.push(s),u}case"TSConditionalType":return Mt(e,t,r);case"TSInferType":return Ur(e,t,r);case"TSIntersectionType":return Mr(e,t,r);case"TSUnionType":return Rr(e,t,r);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return Jr(e,t,r);case"TSTupleType":return vt(e,t,r);case"TSTypeReference":return[r("typeName"),gt(e,t,r,"typeParameters")];case"TSTypeAnnotation":return Wr(e,t,r);case"TSEmptyBodyFunctionExpression":return un(e,t,r);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return us(e,r,"?");case"TSJSDocNonNullableType":return us(e,r,"!");case"TSParenthesizedType":default:throw new Oe(n,"TypeScript")}}function Sc(e,t,r,n){if(kr(e))return ks(e,t);for(let s of[Si,hu,Pi,ki,gi]){let u=s(e,t,r,n);if(u!==void 0)return u}}var Bc=j(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function bc(e,t,r,n){var D;e.isRoot&&((D=t.__onHtmlBindingRoot)==null||D.call(t,e.node,t));let s=Sc(e,t,r,n);if(!s)return"";let{node:u}=e;if(Bc(u))return s;let i=b(u.decorators),a=Wu(e,t,r),o=u.type==="ClassExpression";if(i&&!o)return Gt(s,c=>y([a,c]));let p=we(e,t),m=di(e,t);return!a&&!p&&!m?s:Gt(s,c=>[m?";":"",p?"(":"",p&&o&&i?[E([A,a,c]),A]:[a,c],p?")":""])}var Ii=bc;var Li=[(e,t)=>e.type==="ObjectExpression"&&t==="properties",(e,t)=>e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="Component"&&t==="arguments",(e,t)=>e.type==="Decorator"&&t==="expression"];function wi(e){return e.match(t=>t.type==="TemplateLiteral",(t,r)=>G(t)&&r==="elements",(t,r)=>fe(t)&&t.key.type==="Identifier"&&t.key.name==="styles"&&r==="value",...Li)}function Oi(e){return e.match(t=>t.type==="TemplateLiteral",(t,r)=>fe(t)&&t.key.type==="Identifier"&&t.key.name==="template"&&r==="value",...Li)}function En(e,t){return d(e,x.Block|x.Leading,({value:r})=>r===` ${t} `)}async function Pc(e,t,r){let{node:n}=r,s=n.quasis.map(m=>m.value.raw),u=0,i=s.reduce((m,D,c)=>c===0?D:m+"@prettier-placeholder-"+u+++"-id"+D,""),a=await e(i,{parser:"scss"}),o=Rt(r,t),p=kc(a,o);if(!p)throw new Error("Couldn't insert all the expressions");return["`",E([C,p]),F,"`"]}function kc(e,t){if(!b(t))return e;let r=0,n=ut(Bt(e),s=>typeof s!="string"||!s.includes("@prettier-placeholder")?s:s.split(/@prettier-placeholder-(\d+)-id/).map((u,i)=>i%2===0?xe(u):(r++,t[u])));return t.length===r?n:null}function Ic({node:e,parent:t,grandparent:r}){return r&&e.quasis&&t.type==="JSXExpressionContainer"&&r.type==="JSXElement"&&r.openingElement.name.name==="style"&&r.openingElement.attributes.some(n=>n.name.name==="jsx")||(t==null?void 0:t.type)==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="css"||(t==null?void 0:t.type)==="TaggedTemplateExpression"&&t.tag.type==="MemberExpression"&&t.tag.object.name==="css"&&(t.tag.property.name==="global"||t.tag.property.name==="resolve")}function Fn(e){return e.type==="Identifier"&&e.name==="styled"}function vi(e){return/^[A-Z]/.test(e.object.name)&&e.property.name==="extend"}function Lc({parent:e}){if(!e||e.type!=="TaggedTemplateExpression")return!1;let t=e.tag.type==="ParenthesizedExpression"?e.tag.expression:e.tag;switch(t.type){case"MemberExpression":return Fn(t.object)||vi(t);case"CallExpression":return Fn(t.callee)||t.callee.type==="MemberExpression"&&(t.callee.object.type==="MemberExpression"&&(Fn(t.callee.object.object)||vi(t.callee.object))||t.callee.object.type==="CallExpression"&&Fn(t.callee.object.callee));case"Identifier":return t.name==="css";default:return!1}}function wc({parent:e,grandparent:t}){return(t==null?void 0:t.type)==="JSXAttribute"&&e.type==="JSXExpressionContainer"&&t.name.type==="JSXIdentifier"&&t.name.name==="css"}function Oc(e){if(Ic(e)||Lc(e)||wc(e)||wi(e))return Pc}var _i=Oc;async function vc(e,t,r){let{node:n}=r,s=n.quasis.length,u=Rt(r,t),i=[];for(let a=0;a2&&c[0].trim()===""&&c[1].trim()==="",g=f>2&&c[f-1].trim()===""&&c[f-2].trim()==="",S=c.every(v=>/^\s*(?:#[^\n\r]*)?$/.test(v));if(!m&&/#[^\n\r]*$/.test(c[f-1]))return null;let I=null;S?I=_c(c):I=await e(D,{parser:"graphql"}),I?(I=Zr(I,!1),!p&&h&&i.push(""),i.push(I),!m&&g&&i.push("")):!p&&!m&&h&&i.push(""),l&&i.push(l)}return["`",E([C,B(C,i)]),C,"`"]}function _c(e){let t=[],r=!1,n=e.map(s=>s.trim());for(let[s,u]of n.entries())u!==""&&(n[s-1]===""&&r?t.push([C,u]):t.push(u),r=!0);return t.length===0?null:B(C,t)}function jc({node:e,parent:t}){return En(e,"GraphQL")||t&&(t.type==="TaggedTemplateExpression"&&(t.tag.type==="MemberExpression"&&t.tag.object.name==="graphql"&&t.tag.property.name==="experimental"||t.tag.type==="Identifier"&&(t.tag.name==="gql"||t.tag.name==="graphql"))||t.type==="CallExpression"&&t.callee.type==="Identifier"&&t.callee.name==="graphql")}function Mc(e){if(jc(e))return vc}var ji=Mc;var xs=0;async function Mi(e,t,r,n,s){let{node:u}=n,i=xs;xs=xs+1>>>0;let a=S=>`PRETTIER_HTML_PLACEHOLDER_${S}_${i}_IN_JS`,o=u.quasis.map((S,I,v)=>I===v.length-1?S.value.cooked:S.value.cooked+a(I)).join(""),p=Rt(n,r),m=new RegExp(a("(\\d+)"),"g"),D=0,c=await t(o,{parser:e,__onHtmlRoot(S){D=S.children.length}}),f=ut(c,S=>{if(typeof S!="string")return S;let I=[],v=S.split(m);for(let _=0;_1?E(y(f)):y(f),h,"`"]))}function Rc(e){return En(e.node,"HTML")||e.match(t=>t.type==="TemplateLiteral",(t,r)=>t.type==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="html"&&r==="quasi")}var Jc=Mi.bind(void 0,"html"),Nc=Mi.bind(void 0,"angular");function Uc(e){if(Rc(e))return Jc;if(Oi(e))return Nc}var Ri=Uc;async function Gc(e,t,r){let{node:n}=r,s=H(!1,n.quasis[0].value.raw,/((?:\\\\)*)\\`/g,(o,p)=>"\\".repeat(p.length/2)+"`"),u=qc(s),i=u!=="";i&&(s=H(!1,s,new RegExp(`^${u}`,"gm"),""));let a=Zr(await e(s,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",i?E([F,a]):[lr,ws(a)],F,"`"]}function qc(e){let t=e.match(/^([^\S\n]*)\S/m);return t===null?"":t[1]}function Wc(e){if(Yc(e))return Gc}function Yc({node:e,parent:t}){return(t==null?void 0:t.type)==="TaggedTemplateExpression"&&e.quasis.length===1&&t.tag.type==="Identifier"&&(t.tag.name==="md"||t.tag.name==="markdown")}var Ji=Wc;function Xc(e){let{node:t}=e;if(t.type!=="TemplateLiteral"||$c(t))return;let r;for(let n of[_i,ji,Ri,Ji])if(r=n(e),!!r)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===""?"``":async(...s)=>{let u=await r(...s);return u&&et({embed:!0,...u.label},u)}}function $c({quasis:e}){return e.some(({value:{cooked:t}})=>t===null)}var Ni=Xc;var Vc=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),Jt=e=>{for(let t of e.quasis)delete t.value};function Ui(e,t,r){var s,u;if(e.type==="Program"&&delete t.sourceType,(e.type==="BigIntLiteral"||e.type==="BigIntLiteralTypeAnnotation")&&t.value&&(t.value=t.value.toLowerCase()),(e.type==="BigIntLiteral"||e.type==="Literal")&&t.bigint&&(t.bigint=t.bigint.toLowerCase()),e.type==="DecimalLiteral"&&(t.value=Number(t.value)),e.type==="Literal"&&t.decimal&&(t.decimal=Number(t.decimal)),e.type==="EmptyStatement"||e.type==="JSXText"||e.type==="JSXExpressionContainer"&&(e.expression.type==="Literal"||e.expression.type==="StringLiteral")&&e.expression.value===" ")return null;if((e.type==="Property"||e.type==="ObjectProperty"||e.type==="MethodDefinition"||e.type==="ClassProperty"||e.type==="ClassMethod"||e.type==="PropertyDefinition"||e.type==="TSDeclareMethod"||e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty")&&typeof e.key=="object"&&e.key&&(e.key.type==="Literal"||e.key.type==="NumericLiteral"||e.key.type==="StringLiteral"||e.key.type==="Identifier")&&delete t.key,e.type==="JSXElement"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(i=>i.type==="JSXAttribute"&&i.name.name==="jsx"))for(let{type:i,expression:a}of t.children)i==="JSXExpressionContainer"&&a.type==="TemplateLiteral"&&Jt(a);e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&Jt(t.value.expression),e.type==="JSXAttribute"&&((s=e.value)==null?void 0:s.type)==="Literal"&&/["']|"|'/.test(e.value.value)&&(t.value.value=H(!1,t.value.value,/["']|"|'/g,'"'));let n=e.expression||e.callee;if(e.type==="Decorator"&&n.type==="CallExpression"&&n.callee.name==="Component"&&n.arguments.length===1){let i=e.expression.arguments[0].properties;for(let[a,o]of t.expression.arguments[0].properties.entries())switch(i[a].key.name){case"styles":G(o.value)&&Jt(o.value.elements[0]);break;case"template":o.value.type==="TemplateLiteral"&&Jt(o.value);break}}if(e.type==="TaggedTemplateExpression"&&(e.tag.type==="MemberExpression"||e.tag.type==="Identifier"&&(e.tag.name==="gql"||e.tag.name==="graphql"||e.tag.name==="css"||e.tag.name==="md"||e.tag.name==="markdown"||e.tag.name==="html")||e.tag.type==="CallExpression")&&Jt(t.quasi),e.type==="TemplateLiteral"&&((u=e.leadingComments)!=null&&u.some(a=>ae(a)&&["GraphQL","HTML"].some(o=>a.value===` ${o} `))||r.type==="CallExpression"&&r.callee.name==="graphql"||!e.leadingComments)&&Jt(t),(e.type==="TSIntersectionType"||e.type==="TSUnionType")&&e.types.length===1)return t.types[0];e.type==="ChainExpression"&&e.expression.type==="TSNonNullExpression"&&([t.type,t.expression.type]=[t.expression.type,t.type])}Ui.ignoredProperties=Vc;var Gi=Ui;var Ft=ma(Hi(),1);function sl(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` `);return t===-1?e:e.slice(0,t)}var Ki=sl;function ul(e){let t=Ki(e);t&&(e=e.slice(t.length+1));let r=(0,Ft.extract)(e),{pragmas:n,comments:s}=(0,Ft.parseWithComments)(r);return{shebang:t,text:e,pragmas:n,comments:s}}function zi(e){let{shebang:t,text:r,pragmas:n,comments:s}=ul(e),u=(0,Ft.strip)(r),i=(0,Ft.print)({pragmas:{format:"",...n},comments:s.trimStart()});return(t?`${t} `:"")+i+(u.startsWith(` `)?` `:` -`)+u}var il={avoidAstMutation:!0};var Qi=[{linguistLanguageId:183,name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".wxs"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"]},{linguistLanguageId:183,name:"Flow",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:[],extensions:[".js.flow"],filenames:[],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"]},{linguistLanguageId:183,name:"JSX",type:"programming",tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0,aliases:void 0,extensions:[".jsx"],filenames:void 0,interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript"},{linguistLanguageId:378,name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]},{linguistLanguageId:94901924,name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}];var Ss={};pr(Ss,{getVisitorKeys:()=>ea,massageAstNode:()=>ra,print:()=>pl});var al={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:[],BooleanLiteral:[],StringLiteral:[],NumericLiteral:[],Identifier:[],TemplateLiteral:["quasis"],TemplateElement:[]},Zi=al;var ol=fr(Zi),ea=ol;function pl(e,t,r){let{node:n}=e;switch(n.type){case"JsonRoot":return[r("node"),C];case"ArrayExpression":{if(n.elements.length===0)return"[]";let s=e.map(()=>e.node===null?"null":r(),"elements");return["[",E([C,B([",",C],s)]),C,"]"]}case"ObjectExpression":return n.properties.length===0?"{}":["{",E([C,B([",",C],e.map(r,"properties"))]),C,"}"];case"ObjectProperty":return[r("key"),": ",r("value")];case"UnaryExpression":return[n.operator==="+"?"":n.operator,r("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return n.value?"true":"false";case"StringLiteral":return JSON.stringify(n.value);case"NumericLiteral":return ta(e)?JSON.stringify(String(n.value)):JSON.stringify(n.value);case"Identifier":return ta(e)?JSON.stringify(n.name):n.name;case"TemplateLiteral":return r(["quasis",0]);case"TemplateElement":return JSON.stringify(n.value.cooked);default:throw new Oe(n,"JSON")}}function ta(e){return e.key==="key"&&e.parent.type==="ObjectProperty"}var cl=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function ra(e,t){let{type:r}=e;if(r==="ObjectProperty"){let{key:n}=e;n.type==="Identifier"?t.key={type:"StringLiteral",value:n.name}:n.type==="NumericLiteral"&&(t.key={type:"StringLiteral",value:String(n.value)});return}if(r==="UnaryExpression"&&e.operator==="+")return t.argument;if(r==="ArrayExpression"){for(let[n,s]of e.elements.entries())s===null&&t.elements.splice(n,0,{type:"NullLiteral"});return}if(r==="TemplateLiteral")return{type:"StringLiteral",value:e.quasis[0].value.cooked}}ra.ignoredProperties=cl;var na=[{linguistLanguageId:174,name:"JSON.stringify",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],parsers:["json-stringify"],vscodeLanguageIds:["json"]},{linguistLanguageId:174,name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","mcmod.info"],parsers:["json"],vscodeLanguageIds:["json"]},{linguistLanguageId:423,name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[".babelrc",".devcontainer.json",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","api-extractor.json","devcontainer.json","jsconfig.json","language-configuration.json","tsconfig.json","tslint.json",".eslintrc",".swcrc"],parsers:["json"],vscodeLanguageIds:["jsonc"]},{linguistLanguageId:175,name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"]}];var ar={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Nt="JavaScript",ll={arrowParens:{category:Nt,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:ar.bracketSameLine,bracketSpacing:ar.bracketSpacing,jsxBracketSameLine:{category:Nt,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:Nt,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:ar.singleQuote,jsxSingleQuote:{category:Nt,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:Nt,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:Nt,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:ar.singleAttributePerLine},sa=ll;var ml={estree:hs,"estree-json":Ss},Dl=[...Qi,...na];var yA=Bs;export{yA as default,Dl as languages,sa as options,ml as printers}; +`)+u}var il={avoidAstMutation:!0};var Qi=[{linguistLanguageId:183,name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".wxs"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"]},{linguistLanguageId:183,name:"Flow",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:[],extensions:[".js.flow"],filenames:[],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"]},{linguistLanguageId:183,name:"JSX",type:"programming",tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0,aliases:void 0,extensions:[".jsx"],filenames:void 0,interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript"},{linguistLanguageId:378,name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]},{linguistLanguageId:94901924,name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}];var hs={};or(hs,{getVisitorKeys:()=>ea,massageAstNode:()=>ra,print:()=>pl});var al={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:[],BooleanLiteral:[],StringLiteral:[],NumericLiteral:[],Identifier:[],TemplateLiteral:["quasis"],TemplateElement:[]},Zi=al;var ol=Dr(Zi),ea=ol;function pl(e,t,r){let{node:n}=e;switch(n.type){case"JsonRoot":return[r("node"),C];case"ArrayExpression":{if(n.elements.length===0)return"[]";let s=e.map(()=>e.node===null?"null":r(),"elements");return["[",E([C,B([",",C],s)]),C,"]"]}case"ObjectExpression":return n.properties.length===0?"{}":["{",E([C,B([",",C],e.map(r,"properties"))]),C,"}"];case"ObjectProperty":return[r("key"),": ",r("value")];case"UnaryExpression":return[n.operator==="+"?"":n.operator,r("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return n.value?"true":"false";case"StringLiteral":return JSON.stringify(n.value);case"NumericLiteral":return ta(e)?JSON.stringify(String(n.value)):JSON.stringify(n.value);case"Identifier":return ta(e)?JSON.stringify(n.name):n.name;case"TemplateLiteral":return r(["quasis",0]);case"TemplateElement":return JSON.stringify(n.value.cooked);default:throw new Oe(n,"JSON")}}function ta(e){return e.key==="key"&&e.parent.type==="ObjectProperty"}var cl=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function ra(e,t){let{type:r}=e;if(r==="ObjectProperty"){let{key:n}=e;n.type==="Identifier"?t.key={type:"StringLiteral",value:n.name}:n.type==="NumericLiteral"&&(t.key={type:"StringLiteral",value:String(n.value)});return}if(r==="UnaryExpression"&&e.operator==="+")return t.argument;if(r==="ArrayExpression"){for(let[n,s]of e.elements.entries())s===null&&t.elements.splice(n,0,{type:"NullLiteral"});return}if(r==="TemplateLiteral")return{type:"StringLiteral",value:e.quasis[0].value.cooked}}ra.ignoredProperties=cl;var na=[{linguistLanguageId:174,name:"JSON.stringify",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],parsers:["json-stringify"],vscodeLanguageIds:["json"]},{linguistLanguageId:174,name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","flake.lock","mcmod.info"],parsers:["json"],vscodeLanguageIds:["json"]},{linguistLanguageId:423,name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[".babelrc",".devcontainer.json",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc",".swcrc","api-extractor.json","devcontainer.json","jsconfig.json","language-configuration.json","tsconfig.json","tslint.json",".eslintrc"],parsers:["json"],vscodeLanguageIds:["jsonc"]},{linguistLanguageId:175,name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"]}];var ir={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Nt="JavaScript",ll={arrowParens:{category:Nt,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:ir.bracketSameLine,bracketSpacing:ir.bracketSpacing,jsxBracketSameLine:{category:Nt,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:Nt,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:ir.singleQuote,jsxSingleQuote:{category:Nt,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:Nt,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:Nt,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:ir.singleAttributePerLine},sa=ll;var ml={estree:gs,"estree-json":hs},yl=[...Qi,...na];var FA=Ss;export{FA as default,yl as languages,sa as options,ml as printers}; diff --git a/node_modules/prettier/plugins/flow.js b/node_modules/prettier/plugins/flow.js index 75ab20e..413672d 100644 --- a/node_modules/prettier/plugins/flow.js +++ b/node_modules/prettier/plugins/flow.js @@ -1,21 +1,21 @@ -(function(i){function e(){var f=i();return f.default||f}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.flow=e()}})(function(){"use strict";var yI0=Object.create;var t9=Object.defineProperty;var dI0=Object.getOwnPropertyDescriptor;var mI0=Object.getOwnPropertyNames;var kI0=Object.getPrototypeOf,hI0=Object.prototype.hasOwnProperty;var OW=(l0,_x)=>()=>(_x||l0((_x={exports:{}}).exports,_x),_x.exports),LW=(l0,_x)=>{for(var Hx in _x)t9(l0,Hx,{get:_x[Hx],enumerable:!0})},UW=(l0,_x,Hx,kr)=>{if(_x&&typeof _x=="object"||typeof _x=="function")for(let $1 of mI0(_x))!hI0.call(l0,$1)&&$1!==Hx&&t9(l0,$1,{get:()=>_x[$1],enumerable:!(kr=dI0(_x,$1))||kr.enumerable});return l0};var MW=(l0,_x,Hx)=>(Hx=l0!=null?yI0(kI0(l0)):{},UW(_x||!l0||!l0.__esModule?t9(Hx,"default",{value:l0,enumerable:!0}):Hx,l0)),_I0=l0=>UW(t9({},"__esModule",{value:!0}),l0);var DW=OW(EU=>{(function(l0){typeof globalThis!="object"&&(this?_x():(l0.defineProperty(l0.prototype,"_T_",{configurable:!0,get:_x}),_T_));function _x(){var Hx=this||self;Hx.globalThis=Hx,delete l0.prototype._T_}})(Object);(function(l0){"use strict";var _x="symbol",Hx=271,kr=126548,$1="renders",tr=71127,xr="member_property",e1=65007,ev=66517,F1="jsx_attribute_value_expression",M3=119980,jn="function_declaration",Pe="<2>",c9=68466,CU="%=",s9="??",o9=70080,R4="&",It="identifier",O4=72163,v9=71723,a9="properties",l9=183969,p9=68223,zn="function_return_annotation",y9=124903,d9=70106,RU=241,OU="(",LU=213,m9=120074,k9=70708,h9=71679,Kn="logical",i2="camlinternalFormat.ml",Jn="type_guard_annotation",_9=92975,UU=">>>",w9="RestElement",T9=67897,MU=179,S9="start",E9=113775,L4=126521,DU="%i",D3="`",jU="#",A9=43702,U4=126,g9=110947,Yn="function_identifier",M4=119893,N9=70366,I9=65547,P9=43743,C9=-43,tv=8238,zU=",",nv=8286,Bn="keyof_type",R9=66717,D4=12336,KU=201,O9=71338,j4=11565,L9=69289,U9=55291,M9=73030,D9=70479,j9=69572,z9=11623,Xn="tuple_spread_element",Wn="component_type_rest_param",uv=8239,K9=64310,oa="@]",J9=42993,z4=11558,K4="Map.bal",j3="public",JU=-32,va="Literal",Vn="jsx_member_expression_identifier",Zn="for_in_assignment_pattern",Y9=71450,J4=126557,tt=103,B9=12292,X9=110579,Y4=120597,W9=13311,V9=12348,$n="export_default_declaration_decl",Fn="tuple_type",Z9=113663,$9=170,F9=67413,YU="Assert_failure",BU="comments",z3="%S",tn=127343600,Q9=12341,H9=67646,XU="ENOTEMPTY",q9=72160,G9=70187,WU=222,b9=12343,VU=2147483647,xk=126624,rk=43442,ek=70312,tk=281,Qn="interface_type",iv="new",nk=66256,B4=68296,uk=124908,X4=126579,W4=70107,V4=249,ik=71167,Hn="union_type",Qr=248,fk=126546,qn="enum_bigint_member",ZU=133,ck=67871,sk=66955,$U=1027,Gn="class_declaration",bn="optional_call",FU="a string",Z4=11703,QU="<<",$4=126564,x7="jsx_element",r7="object_property_type",ok=94207,e7="enum_declaration",vk=68023,ak=67669,lk=8318,HU="prefix",fv="this",pk=126578,t7="if_consequent_statement",qU=-696510241,yk=66963,cv="default",F4=72967,Pt=101,GU="buffer.ml",dk=74649,nn=65535,mk=43709,kk=175,vo="component",bU="===",aa=117,n7="jsx_identifier",xM="EnumDefaultedMember",Q4=70006,hk=70161,_k=126633,wk=66965,u7="member_property_expression",Tk=101589,Sk=64274,la="function",Ek=66303,Ak=42954,gk=126529,Nk=72191,i7="new_",Ik=64433,H4=126559,Pk=72144,rM="==",ao=-744106340,Ck=43359,Rk=171,eM="Printexc.handle_uncaught_exception",Ok=66735,Lk=126534,Uk=74879,Mk=42785,q4=120629,K3="0o",tM="End_of_file",Dk=66175,nM="&=",jk="nan",G4=126503,f7="pattern_number_literal",zk=43470,c7="import_namespace_specifier",Kk=77711,b4=70302,s7="component_param",xp="@])",rp=126515,pa=118,Ce="continue",Jk=43798,ep=";@ ",Yk=74751,Bk="src/parser/statement_parser.ml",Xk="rmdir",Wk=94177,o7="for_in_statement",uM=269,iM=12520,fM="TypeParameterInstantiation",wx="",cM="**=",Vk=120126,sM=197,Zk=67829,tp="_bigarr02",v7="export_named_declaration_specifier",np=": No such file or directory",up=64319,$k=69926,a7="pattern_object_p",oM="TypeAnnotation",l7="array_type",J3="@[%s =@ ",Fk=72847,p7="export_default_declaration",ip=126590,Qk=42774,Hk=": Not a directory",ya="let",sv=12288,Z2="argument",$2="/",fp="an identifier",ws="typeof",cp=68116,qk=182,y7="declare_export_declaration_decl",Gk=67589,bk=66771,Y3="class",vM="tokens",aM=-66,sp=70281,B3=255,xh=43638,lM=-983660142,ov="key",rh=69955,pM=">>",d7="function_expression_or_method",eh=43587,un="block",th=100351,op="mixed",nh=66503,uh="ENOTDIR",ih=65135,m7="string_literal",ie="@ ",fh=43334,k7="if_alternate_statement",ch=70448,vp=8485,h7="type_args",sh=69864,_7="if_statement",yM="+=",w7="typeof_identifier",ap="with",lp=65595,oh=64286,vh=71086,Ts="true",ah=69423,T7="catch_clause",lh="e",da="asserts",dM=">>=",ph=131,yh=43388,dh=43887,B1=-48,mh=120779,mM=190,kh=194,S7="pattern_bigint_literal",hh=71351,_h=65629,E7="call",kM=-42,pp=126553,wh=43695,hM=177,Th=42124,Sh=12703,Eh=12442,Ah=11718,yp=70449,dp=126547,gh=67462,Ss="left",A7="infer_type",Nh=11742,Ih=65597,mp="Unix.Unix_error",Ph=122623,Ch=124911,Rh=72959,Oh="opaque",g7="object_internal_slot_property_type",_M="Enum `",wM=275,vv=65279,Lh=71983,Uh=12329,P1=110,N7="spread_property",TM="importKind",X3=" =",I7="remote_identifier",P7="labeled_statement",C7="jsx_fragment",Mh=120770,R7="function_param",fe=112,Dh="exportKind",O7="binary",Es="`.",jh=42511,SM="<=",L7="jsx_spread_attribute",R2="import",U7="typeof_member_identifier",zh=69414,Kh=19967,kp=11687,Jh=93823,EM=209,Yh=71903,Bh="of",Xh=72e3,Wh="typeArguments",M7="type_identifier",D7="pattern_array_element_pattern",hp=69744,ma=192,j7="class_element",z7="export_source",K7="component_param_pattern",Vh=42508,Zh=125124,AM="Unexpected token `",J7="for_in_left_declaration",Y7="object_call_property_type",$h="abstract",Fh=8584,Qh=68786,Hh=71999,_p=123214,qh=123565,Gh=186,B7="class_implements_interface",wp=126536,bh=69749,gM="Invalid legacy octal ",x_=71295,r_=66927,X7="pattern_expression",e_=11679,t_=-61,Tp=65141,n_=11694,W7="update_expression",NM="minus",Re="debugger",u_=71352,i_=65470,ka="number",f_=123627,Sp=64322,Ep=43471,V7="for_of_assignment_pattern",Ap=126589,c_=43784,IM="Internal Error: Found object private prop",s_=183983,Hr="id",o_=123190,gp="finally",Np=120070,v_=72095,Z7="syntax",a_=110591,As="false",PM=-10,Ip="AssignmentPattern",$7="typeof_expression",l_=43764,CM="FunctionTypeParam",F7="function_body_any",p_=126627,y_=71998,d_=126543,Q7="call_type_arg",m_=64316,Pp=64285,k_=8454,h_=137,RM="**",H7="object_type_property_setter",__=68607,fn=108,w_="out",T_=68799,av=65278,q7="jsx_member_expression",S_=92728,lv="null",E_=66431,A_=72249,cn=128,Cp=119994,g_=66207,N_=43583,Rp="else",Op=94179,Lp=11735,I_=64911,G7="jsx_attribute_name_namespaced",OM="!",P_=42539,C_=72250,R_=71215,O_=69746,L_=65487,b7="pattern_object_property_key",LM=", ",U_=8505,M_="=",D_=64111,j_=8507,Up=120134,Mp="while",z_=120596,K_=43002,W3="protected",J_=68479,Y_=43395,B_=68252,UM="v",X_=70278,W_="rendersType",V_=70853,Dp=120145,Z_=69297,$_=73112,jp=8488,F_=68351,Q_=42655,xu="for_of_left_declaration",H_=44031,q_="Failure",G_=92159,ru="object_key_identifier",MM=195,pv="bigint",eu="import_default_specifier",yv=256,tu="member",DM="!==",nu="component_identifier",b_=73008,xw=72283,zp=126500,Kp=120127,uu="jsx_attribute_name",iu="for_statement_init",rw=67711,fu="private_name",Jp="case",Yp=8489,cu="import_specifier",ew=64279,tw=94098,jM=148,nw=119974,su="pattern_string_literal",uw=72969,zM=193,KM="!=",Bp=126520,iw=71944,JM=259,fw=42191,ou="generic_qualified_identifier_type",dv="implements",cw=194559,YM="%",V3="hasUnknownMembers",sw=71039,BM=211,ow=83526,vu="init",au="jsx_attribute_value",vw=70271,ha=240,lu="function_type_return_annotation",aw=70018,lw="rest",pu="readonly_type",pw=512,yw=68095,dw=120003,Xp=126563,Wp=71236,mw=69375,kw=68850,hw=70105,_w=43866,Vp=888960333,ww=43013,yu="assignment_pattern",Tw="specifiers",XM=710,Ct="as",Sw=120570,Ew=11507,WM=204,du="jsx_element_name_identifier",mu="pattern_object_property_string_literal_key",ku="class_expression",VM=257,Aw=44002,gw=82943,_a="src/parser/type_parser.ml",wa="test",Nw=64217,Zp="package",ZM="collect_comments",$M="Pervasives.do_at_exit",Iw=125183,Pw=42606,hu="tuple_element",_u="enum_boolean_member",Cw=65312,$p=119981,Rw=65495,Fp=120085,FM=-80,QM=138,Qp=126555,Ow=65276,m1=128,HM="{ ",wu="for_statement",Tu="class_method",Hp="if",Su="generic_type",Er=113,Lw=43071,Uw=72001,Mw=71131,Dw=70002,jw=42888,qp=8469,Z3="instanceof",zw=11502,Gp=94178,Kw=64321,Jw=64913,qM="Division_by_zero",Yw=92879,Bw=71945,Xw=185,Ww=66938,bp=65535,Vw=113800,GM=": file descriptor already closed",x8=223,bM="*=",Zw=68899,Eu="switch_case",Au="pattern_array_element",gu="enum_string_member",Nu="pattern_object_property_bigint_literal_key",xD="visit_trailing_comment",r8="export",e8=120122,t8=43823,$w=43792,Fw=42527,Qw=70726,Iu="enum_defaulted_member",Hw=68497,n8=72349,Pu="program",Cu="member_type_identifier",qw="object",Ru="for_of_statement_lhs",Gw=113791,bw=67391,Ou="jsx_spread_child",u8=126554,i8=8526,f8=43880,c8=69415,xT=43822,Lu="pattern_identifier",rT=93052,Ta="readonly",Oe="name",eT=68119,tT=71494,nT=120121,s8=8486,rD=2047,Uu="enum_symbol_body",eD=142,tD="PropertyDefinition",uT=177976,Mu="declare_class",iT=65489,fT=72367,cT=70440,Du="import_named_specifier",nD="Popping lex mode from empty stack",sT=68111,oT=66463,uD="*-/",vT=43187,o8=8487,aT=11567,lT=67861,pT=` -`,yT=66383,ju="declare_interface",dT=-24976191,mT=238,kT=-24,iD="@ }@]",hT=43645,fD=176,_T=119976,v8=69959,wT=126519,TT=";",cD="trailingComments",a8=65548,zu="number_literal",Sa=449540197,ST=43704,l8=126584,ET=8467,sD="||",p8=11695,AT="exported",gT=120712,gs="void",oD="mixins",NT=92783,IT=215,Ku="body_expression",vD="%ni",$3=">",Ju="jsx_child",PT=8516,Yu="optional_indexed_access_type",Bu="typeof_type",Xu="spread_element",CT=42963,aD="@[",Wu="component_params",RT=43042,y8="",Vu="function_",d8="for",m8=65575,sn="params",OT=168,lD="win32",mv=8202,pD="@",k8="^",LT=164,nt="optional",UT=65574,F3="boolean",yD=139,MT=12548,h8=120539,dD="Not_found",_8=246,Zu="expression_statement",DT="EBADF",jT=66815,$u="module_ref_literal",zT=55203,Fu="function_param_type",KT=73064,w8=70279,JT=110580,mD=233,YT="<",kD="visit_leading_comment",BT=66855,XT=66966,WT=66499,VT=111355,ZT=68680,$T=206,hD="--",FT=65497,T8=11711,Qu="function_param_pattern",kv="constructor",QT=5760,_D="infinity",S8=43642,qI0="fs",HT=92991,E8=126544,qT=101640,A8=72162,GT=67583,g8=8468,O2="typeParameters",wD="elements",bT=71423,TD="Sys_blocked_io",Hu="interface_declaration",qu="variable_declaration",Gu="function_rest_param",bu="type",xS="Invalid number ",rS=" : flags Open_rdonly and Open_wronly are not compatible",eS=69404,xi="jsx_element_name_member_expression",N8="keyof",SD=285,I8="never",ri="with_",on=32768,ED="|=",P8=70404,C8=70441,tS=42969,Q3="declare",nS=73061,ei="object_type",ti="object_property_value_type",uS=69687,AD="Invalid binary/octal ",gD=230,iS=64324,ND="range",ID="infer",fS=120744,ni="array_element",cS=70730,sS=43641,PD=166,oS=70461,vS=69890,aS=69487,lS=74862,pS=68149,R8=73065,CD="%a",yS=72348,RD=172,ui="jsx_expression",dS=65663,mS=126495,kS=245,hS=124907,ii="member_property_identifier",OD=226,_S=43615,fi="comment",O8=119965,ci="catch_clause_pattern",si="object_type_property_getter",LD=136,wS=43019,TS=67455,L8=126628,UD=331416730,MD="the start of a statement",SS=122654,ES="shorthand",AS=43595,gS=11710,oi="typeof_qualified_identifier",NS=72750,DD="elementType",f2="typeAnnotation",IS=124895,jD=162,U8=11559,PS=67382,zD="??=",CS=72329,RS="target",vi="component_type",KD=180,OS=189,JD=8206,LS=43513,US=173823,MS=126467,ai="type_guard",DS=43700,jS=12783,M8=8305,li="type_annotation",YD=141,Le="break",D8=42999,zS=65019,KS=160,JS=70460,pi="expression_or_spread",YS=")",yi="class_private_field",BS=55215,XS=65338,WS=40981,H3="members",di="import_declaration",VS=69634,j8=94031,ZS="ENOENT",$S=8457,BD="satisfies",mi="generic_identifier_type",ki="function_this_param",FS=66993,hi="type_",QS=67423,HS=11557,qS=12799,GS=239,bS=93026,xE=66377,rE=123180,XD=221,WD=-594953737,eE=67967,tE=43586,Ue=105,VD="src/parser/flow_lexer.ml",nE=66559,_i="class_property_value",uE=67637,ZD="closedir",iE=43010,fE=8521,z8=69956,cE=42959,sE=212,oE=92735,K8="}",q3="method",vE=11498,J8=247,ce="empty",wi=16777215,$D=161,aE=42887,Ns=116,Ti="type_identifier_reference",Y8=126634,lE=68029,FD="regexp",pE=70414,G3=121,Si="template_literal_element",yE=8449,dE=126562,hv=12287,mE=-45,B8=64297,X8=126523,kE=43301,ut=111,hE=126498,_E=43776,QD="EEXIST",wE=119892,TE=43807,HD=4096,Ea=252,Is=255,SE=68295,Ei="variable_declarator_pattern",Ai="do_while",W8="catch",EE=66962,AE=120654,gi=125,Ni="label_identifier",gE=11263,NE=8525,Ii="assignment",IE=191456,PE=43273,qD="%u",CE=65381,RE=110927,OE=65479,LE=120538,_v="await",UE=71487,ME="jsError",DE=110588,jE=120084,zE=42890,Aa=224,Pi="object_key",KE=43696,JE=73647,YE=43761,BE=12295,XE=64967,V8=11647,GD=191,Rt=123,WE="generator",VE=123583,Ci="for_of_statement",Ri="enum_bigint_body",ZE=110959,$E=92995,FE=120686,QE="b",HE=119969,Z8=126522,$8=64318,qE=71839,F8=126602,GE=65908,b3=65536,bD=231,xj=-602162310,rj="comment_bounds",Ot="-",ej=-55,Oi="pattern_object_property",bE=43493,xA=69505,rA=8471,eA=187,Q8=120745,Li="enum_member_identifier",tA=71959,nA=66863,uA=65594,H8=253,q8='"',G8=70286,Ui="jsx_attribute_value_literal",iA=68447,tj="the",fA="index out of bounds",Mi="declare_export_declaration",Di="jsx_attribute",ji="class_extends",qr=122,_1=106,zi="binding_pattern",Ki="ts_type_cast",cA=113807,sA=93951,xl=119,oA="types",vA=8335,Ji="statement_fork_point",ga="_",aA=65500,Yi="function_type",lA=68220,Bi="statement_list",Na=-835925911,pA=123535,b8=43815,yA=199,x5=120571,dA=67514,nj="Property",r5=72713,uj="Unexpected ",e5=169,ij=", characters ",t5=43867,mA=42537,Xi="component_declaration",fj=" : is a directory",Wi="object_key_number_literal",Jr=127,c2=-36,rl=912068366,el="delete",Vi=114,kA=120076,Zi="regexp_literal",hA=65370,_A=65481,a1="value",wA=68405,tl="operator",nl="const",cj=283,wv=109,n5="any",TA=69958,SA=70831,EA=73111,AA=72767,gA="Identifier",$i="jsx_opening_attribute",Fi="conditional_type",NA="loc",IA=67071,u5=120004,PA=43492,CA=70005,sj=188,i5=72272,RA=11389,oj=251,OA=73055,f5=70280,vj=286,c5=1114111,LA=66421,aj="Stack_overflow",UA=70301,MA=19903,lo="0x",DA=69967,jA=12447,s5=66512,lj=`Fatal error: exception %s -`,ul=1e3,zA=69295,o5=120093,pj=">=",yj=149,v5=64325,Qi="class_identifier",KA=119967,JA=68415,dj="end",Hi="enum_boolean_body",qi="member_private_name",Gi="super_expression",YA=71955,BA=126514,a5=67593,XA=66939,WA=12591,l5=126538,VA=110590,ZA=72703,$A=72105,p5=65598,FA=73727,y5=126504,d5=126551,QA=70143,il="from",bi="class_property",xf="enum_number_body",HA=42559,qA=93759,GA=66994,vn="right",mj=225,bA=67702,xg=65473,rg=43697,m5=70855,eg=119993,tg=72103,ng=178205,rf="call_type_args",ug=66511,ef="export_batch_specifier",tf="component_type_param",an=782176664,Tv="get",fl="local",kj=228,nf="object_mapped_type_property",uf="class_decorator",hj=220,ff="enum_body",_j="<<=",ig=71956,fg=69839,Ia="super",cg=173791,sg=71942,Q1="expression",og=72440,Pa=254,vg=70412,cf="try_catch",wj=32752,sf="declare_module_exports",ag=12320,Tj=134,lg=94175,cl="enum",Sj=196,of="import_source",pg=43814,yg=120069,vf="while_",k5=126537,dg=43262,af="function_rest_param_type",mg=66378,h5=119996,lf="declare_component",kg=73097,hg=70783,_g=43503,wg=131071,Tg=11492,Sg=92766,Ej=173,Eg=113770,Ag=73029,gg=66978,pf="tagged_template",yf="jsx_element_name",df="for_init_declaration",Ng=123213,mf="object_indexer_property_type",kf="object_spread_property_type",_5=72970,w5=70854,Ig=110930,sl="var",Aj=217,Pg=119972,Cg=69622,Rg=63743,Og=42237,Lg=870530776,T5="returnType",gj=56320,Nj=143,Ca="computed",Ug=42735,hf="arg_list",Mg=67461,_f="export_named_declaration",Dg=72817,jg=73439,zg=43782,Kg=66775,Jg=70655,S5="bool",Yg=65140,Bg=75075,Xg=126651,Wg=71947,Vg=42961,Zg=12735,$g=78894,Fg=64262,Qg=237,F2="interface",Ij="Match_failure",Hg=42962,qg=69748,Pj="leadingComments",wf="this_expression",ol=461894857,E5=12592,Cj=8204,Gg=119807,bg=66348,Tf="declare_variable",xN=8348,Sf="optional_member",Ef=120,Af="arrow_function",rN=72768,eN=70851,gf="array",tN=43249,A5=126468,nN=177983,uN="compare: functional value",iN=126550,fN=64847,Nf="binding_type_identifier",cN=120132,If="function_params",sN=93071,vl=1024,oN=42783,Rj=1039100673,Oj="@{",vN=12352,aN=42653,lN=120628,Lj=264,Pf="declare_function",Cf="for_in_statement_lhs",pN=72271,yN=69807,dN=67826,Rf="syntax_opt",Of="object_key_bigint_literal",Uj=243,mN=94032,Mj=265,Dj="Undefined_recursive_module",jj=-1053382366,kN=72242,Lf="variance_opt",hN=101631,_N="arguments",wN=72161,TN=8511,g5="unknown",SN=43560,zj="the end of an expression statement (`;`)",Kj=1026,EN=12543,AN=11670,gN=69247,N5=11631,I5="line",NN=72202,Uf="pattern_object_rest_property",Lt=" ",IN=43487,Ps=115,PN=-673950933,Mf="intersection_type",CN=120144,al="is",RN=178207,ON=100343,Jj="||=",Yj="f",P5=8455,Cs=102,Df="pattern_object_property_number_literal_key",LN=70418,UN=8543,Bj="Internal Error: Found private field in object props",C5=126540,R5=119995,Sv=8287,jf="indexed_access_type",zf="export_named_specifier",Xj=224,MN=124926,DN=-103,jN=167,O5=65344,L5=126530,zN=113788,KN=67505,JN="property",YN=43014,Me="return",Ev=-85,BN=126601,Wj=214,Vj="children",Kf="type_alias",U5=43259,XN=126583,WN=71958,VN=65613,ZN=67431,M5=126535,$N=69599,Jf="type_params",Yf="object_key_computed",FN=124910,L2="variance",D5=11727,QN=66954,HN=126463,Bf="catch_body",qN=69445,Xf="type_param",Wf="component_type_params",GN=124902,j5=120687,Zj="collect_comments_opt",bN=15,xI=120485,rI=70416,eI=125259,Vf="jsx_namespaced_name",tI=43712,nI=72712,$j="~",z5=12448,Zf="jsx_member_expression_object",K5=126499,J5=-97,$f="pattern_object_property_identifier_key",Fj=219,Ff="component_body",Qf="opaque_type",Hf=".",uI=43009,iI="consequent",Qj="SpreadElement",j1="body",Hj=178,qj=202,qf="jsx_opening_element",Gf="declare_module",Y5=67638,fI=8477,bf="object_type_property",cI=110882,xc="function_body",sI=94111,Gj="module",bj="alternate",oI=67839,Av=8191,vI=43881,xz=": closedir failed",po="kind",rc="tuple_labeled_element",gv=-46,aI=67640,ec="declare_type_alias",B5=70750,lI=77808,ll="column",tc="jsx_closing_element",pI=66977,yI="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",dI=65786,nc="function_expression",ln=104,X5=11719,mI=11505,kI="mkdir",hI=70319,rz="Invalid_argument",_I=43738,wI=113817,uc="bigint_literal",TI=70084,ez=278,SI=126566,W5="do",V5=42622,ic="computed_key",fc="pattern_object_property_computed_key",tz="fd ",Z5=126571,EI=126619,nz=140,yo="prototype",uz=208,AI=67004,iz=130,fz=242,cz=">>>=",gI=68863,NI=11726,Ut="raw",II=64466,Rs=107,PI=67679,cc="enum_string_body",$5=244,sz="unreachable jsxtext",oz="*",CI=66335,RI=126570,vz=229,OI=" : file already exists",LI=184,UI=67807,MI=70753,sc="boolean_literal",DI=65437,jI=70451,zI=67002,Ra=124,oc="conditional",F5=43260,az="Sys_error",KI=123135,pl="meta",JI=64109,vc="pattern_array_rest_element",YI=43255,Q5=67644,ac="pattern_object_rest_property_pattern",lc="sequence",BI=65855,XI=110951,WI=67643,pc="predicate_expression",De="static",VI=120512,ZI="declaration",H5=64317,$I=68437,q5=126558,yc="meta_property",FI=11564,dc="declare_enum",pn="pattern",QI=216,HI=68191,G5="undefined",b5=8319,xy=120133,lz=132,qI=42239,pz=-99,GI=124927,bI=120092,xP=43137,mc="component_rest_param",yz="expected *",rP=125251,dz="%li",eP=55242,tP=12294,kc="enum_number_member",mo="in",mz="\\\\",Nv=":",nP=68115,kz="Cygwin",uP=77823,iP=65615,ry=70162,hz="/static/",fP=11519,cP=72966,sP=12686,_z=165,ey=183,yl=129,ty=72192,oP=42964,ny="try",uy=120655,vP=11702,wz="expressions",aP=2048,hc="class_body",lP=55238,Tz=240,pP=66915,yP=43311,dP=43018,Sz=235,mP=73648,Ez="([^/]+)",kP=125258,hP=64829,_P=68735,Az="++",gz=163,Nz="qualification",Iz=57343,Pz=931,_c="default_opt",wP=71235,Cz=8472,TP=71934,Rz=205,Oz=218,Lz="callee",SP=43711,EP=64284,AP=43754,gP=43790,Uz="%Li",wc="pattern_array_rest_element_pattern",iy="decorators",NP=8304,Tc="statement",fy=73062,Sc="jsx_children",IP=70492,PP=64255,CP=11630,RP=1255,cy=67592,sy=43519,oy=64311,vy=12539,OP="proto",ay=120513,LP=68031,Iv="source",dl="a",UP=93047,MP=92927,DP=126588,jP=73458,zP=67742,KP=43714,Mz=236,JP=-253313196,ml="label",Dz="@[<2>{ ",ly=126539,py=126552,YP=120487,jz="Out_of_memory",BP=605857695,XP=94026,yy=126496,ko="async",zz=203,dy=126560,WP=68287,Ec="unary_expression",VP=-26065557,ZP=110587,Kz=280,my=120771,$P=69762,FP=126502,Oa="set",Ac="object_",gc="template_literal",QP=43258,Nc="nullable_type",Os="int_of_string",Jz="^=",je="predicate",La="string",ky=8450,Yz="camlinternalMod.ml",HP=70285,Ls="+",qP=110575,Bz=198,Ic="extends",Xz=-692038429,hy=67827,Wz=210,Vz=227,_y="explicitType",wy=70452,GP=70497,Ua=63,kl="private",bP=64296,xC=67591,rC=92909,Zz="T_JSX_TEXT",eC="Fatal error: exception ",tC=120137,Ty=68120,Pc="pattern_array_e",nC=119964,uC=92862,iC=66461,$z="&&=",Fz=174,s2=8231,Cc="null_literal",Qz="/=",fC=66811,Sy=70108,cC=67504,sC=11686,oC=67001,vC=" : flags Open_text and Open_binary are not compatible",aC=43741,lC=66204,H1=8233,Rc="type_annotation_hint",pC=123197,Oc="object_property",Hz="${",Ey=70480,qz="&&",Lc="type_cast",hl="%d",Ay=8484,Gz=207,yC=70066,dC=68324,gy=120713,bz=135,Ny=126556,Q2="0",U2="yield",Iy=126591,Uc=100,mC=69551,Mc="jsx_element_name_namespaced",xK=232,Dc="object_key_string_literal",jc="function_this_param_type",zc="pattern_object_property_pattern",ze="throw",Ke="switch",rK=2048,Py=119970,Kc="toplevel_statement_list",Pv=250,kC=12438,Jc="class_implements",Yc="variable_declarator",hC=43713,Cy=68096,_C=70457,wC=12538,TC=11734,eK="-=",tK=234,Bc="component_param_name",SC=43123,Xc="class_",nK="|",uK=200,EC=43518,AC=8483,Wc="jsx_attribute_name_identifier",gC=181;function eV(x,r,e,t,u){if(t<=r)for(var i=1;i<=u;i++)e[t+i]=x[r+i];else for(var i=u;i>=1;i--)e[t+i]=x[r+i];return 0}function tV(x){for(var r=[0];x!==0;){for(var e=x[1],t=1;t=e.l||e.t==2&&u>=e.c.length))e.c=x.t==4?Ry(x.c,r,u):r==0&&x.c.length==u?x.c:x.c.substr(r,u),e.t=e.c.length==e.l?0:2;else if(e.t==2&&t==e.c.length)e.c+=x.t==4?Ry(x.c,r,u):r==0&&x.c.length==u?x.c:x.c.substr(r,u),e.t=e.c.length==e.l?0:2;else{e.t!=4&&Oy(e);var i=x.c,f=e.c;if(x.t==4)if(t<=r)for(var o=0;o=0;o--)f[t+o]=i[r+o];else{for(var a=Math.min(u,i.length-r),o=0;o>=1,x==0)return e;r+=r,t++,t==9&&r.slice(0,1)}}function Ly(x){x.t==2?x.c+=Ma(x.l-x.c.length,"\0"):x.c=Ry(x.c,0,x.c.length),x.t=0}function NC(x){if(x.length<24){for(var r=0;rJr)return!1;return!0}else return!/[^\x00-\x7f]/.test(x)}function iK(x){for(var r=wx,e=wx,t,u,i,f,o=0,a=x.length;opw?(e.substr(0,1),r+=e,e=wx,r+=x.slice(o,y)):e+=x.slice(o,y),y==a)break;o=y}f=1,++o=55295&&f<57344)&&(f=2)):(f=3,++o1114111)&&(f=3)))))),f<4?(o-=f,e+="\uFFFD"):f>nn?e+=String.fromCharCode(55232+(f>>10),gj+(f&1023)):e+=String.fromCharCode(f),e.length>vl&&(e.substr(0,1),r+=e,e=wx)}return r+e}function Ms(x,r,e){this.t=x,this.c=r,this.l=e}Ms.prototype.toString=function(){switch(this.t){case 9:return this.c;default:Ly(this);case 0:if(NC(this.c))return this.t=9,this.c;this.t=8;case 8:return this.c}},Ms.prototype.toUtf16=function(){var x=this.toString();return this.t==9?x:iK(x)},Ms.prototype.slice=function(){var x=this.t==4?this.c.slice():this.c;return new Ms(this.t,x,this.l)};function fK(x){return new Ms(0,x,x.length)}function GI0(x){return x}function Vc(x){return fK(x)}function Cv(x,r,e,t,u){return Us(Vc(x),r,e,t,u),0}function cK(x){var r=l0.process;if(r&&r.env&&r.env[x]!=null)return r.env[x];if(l0.jsoo_static_env&&l0.jsoo_static_env[x])return l0.jsoo_static_env[x]}var IC=0;(function(){var x=cK("OCAMLRUNPARAM");if(x!==void 0)for(var r=x.split(zU),e=0;e>>0>=x.l&&fV(),Xr(x,r,e)}function se(x,r){switch(x.t&6){default:if(r>=x.c.length)return 0;case 0:return x.c.charCodeAt(r);case 4:return x.c[r]}}function Ds(x,r){var e=x.l>=0?x.l:x.l=x.length,t=r.length,u=e-t;if(u==0)return x.apply(null,r);if(u<0){var i=x.apply(null,r.slice(0,e));return typeof i!="function"?i:Ds(i,r.slice(e))}else{switch(u){case 1:{var i=function(a){for(var y=new Array(t+1),h=0;h>>0>=x.length-1&&_l(),x}function cV(x){return isFinite(x)?Math.abs(x)>=22250738585072014e-324?0:x!=0?1:2:isNaN(x)?4:3}function sV(x){return 0}var oV=Math.log2&&Math.log2(11235582092889474e291)==1020;function vV(x){if(oV)return Math.floor(Math.log2(x));var r=0;if(x==0)return-1/0;if(x>=1)for(;x>=2;)x/=2,r++;else for(;x<1;)x*=2,r--;return r}function CC(x){var r=new Float32Array(1);r[0]=x;var e=new Int32Array(r.buffer);return e[0]|0}var sK=Math.pow(2,-24);function oK(x){throw x}function vK(){oK(M2.Division_by_zero)}function fr(x,r,e){this.lo=x&wi,this.mi=r&wi,this.hi=e&nn}fr.prototype.caml_custom="_j",fr.prototype.copy=function(){return new fr(this.lo,this.mi,this.hi)},fr.prototype.ucompare=function(x){return this.hi>x.hi?1:this.hix.mi?1:this.mix.lo?1:this.loe?1:rx.mi?1:this.mix.lo?1:this.lo>24),e=-this.hi+(r>>24);return new fr(x,r,e)},fr.prototype.add=function(x){var r=this.lo+x.lo,e=this.mi+x.mi+(r>>24),t=this.hi+x.hi+(e>>24);return new fr(r,e,t)},fr.prototype.sub=function(x){var r=this.lo-x.lo,e=this.mi-x.mi+(r>>24),t=this.hi-x.hi+(e>>24);return new fr(r,e,t)},fr.prototype.mul=function(x){var r=this.lo*x.lo,e=(r*sK|0)+this.mi*x.lo+this.lo*x.mi,t=(e*sK|0)+this.hi*x.lo+this.mi*x.mi+this.lo*x.hi;return new fr(r,e,t)},fr.prototype.isZero=function(){return(this.lo|this.mi|this.hi)==0},fr.prototype.isNeg=function(){return this.hi<<16<0},fr.prototype.and=function(x){return new fr(this.lo&x.lo,this.mi&x.mi,this.hi&x.hi)},fr.prototype.or=function(x){return new fr(this.lo|x.lo,this.mi|x.mi,this.hi|x.hi)},fr.prototype.xor=function(x){return new fr(this.lo^x.lo,this.mi^x.mi,this.hi^x.hi)},fr.prototype.shift_left=function(x){return x=x&63,x==0?this:x<24?new fr(this.lo<>24-x,this.hi<>24-x):x<48?new fr(0,this.lo<>48-x):new fr(0,0,this.lo<>x|this.mi<<24-x,this.mi>>x|this.hi<<24-x,this.hi>>x):x<48?new fr(this.mi>>x-24|this.hi<<48-x,this.hi>>x-24,0):new fr(this.hi>>x-48,0,0)},fr.prototype.shift_right=function(x){if(x=x&63,x==0)return this;var r=this.hi<<16>>16;if(x<24)return new fr(this.lo>>x|this.mi<<24-x,this.mi>>x|r<<24-x,this.hi<<16>>x>>>16);var e=this.hi<<16>>31;return x<48?new fr(this.mi>>x-24|this.hi<<48-x,this.hi<<16>>x-24>>16,e&nn):new fr(this.hi<<16>>x-32,e,e)},fr.prototype.lsl1=function(){this.hi=this.hi<<1|this.mi>>23,this.mi=(this.mi<<1|this.lo>>23)&wi,this.lo=this.lo<<1&wi},fr.prototype.lsr1=function(){this.lo=(this.lo>>>1|this.mi<<23)&wi,this.mi=(this.mi>>>1|this.hi<<23)&wi,this.hi=this.hi>>>1},fr.prototype.udivmod=function(x){for(var r=0,e=this.copy(),t=x.copy(),u=new fr(0,0,0);e.ucompare(t)>0;)r++,t.lsl1();for(;r>=0;)r--,u.lsl1(),e.ucompare(t)>=0&&(u.lo++,e=e.sub(t)),t.lsr1();return{quotient:u,modulus:e}},fr.prototype.div=function(x){var r=this;x.isZero()&&vK();var e=r.hi^x.hi;r.hi&on&&(r=r.neg()),x.hi&on&&(x=x.neg());var t=r.udivmod(x).quotient;return e&on&&(t=t.neg()),t},fr.prototype.mod=function(x){var r=this;x.isZero()&&vK();var e=r.hi;r.hi&on&&(r=r.neg()),x.hi&on&&(x=x.neg());var t=r.udivmod(x).modulus;return e&on&&(t=t.neg()),t},fr.prototype.toInt=function(){return this.lo|this.mi<<24},fr.prototype.toFloat=function(){return(this.hi<<16)*Math.pow(2,32)+this.mi*Math.pow(2,24)+this.lo},fr.prototype.toArray=function(){return[this.hi>>8,this.hi&Is,this.mi>>16,this.mi>>8&Is,this.mi&Is,this.lo>>16,this.lo>>8&Is,this.lo&Is]},fr.prototype.lo32=function(){return this.lo|(this.mi&Is)<<24},fr.prototype.hi32=function(){return this.mi>>>8&nn|this.hi<<16};function Uy(x,r,e){return new fr(x,r,e)}function My(x){if(!isFinite(x))return isNaN(x)?Uy(1,0,wj):x>0?Uy(0,0,wj):Uy(0,0,65520);var r=x==0&&1/x==-1/0?on:x>=0?0:on;r&&(x=-x);var e=vV(x)+1023;e<=0?(e=0,x/=Math.pow(2,-Kj)):(x/=Math.pow(2,e-$U),x<16&&(x*=2,e-=1),e==0&&(x/=2));var t=Math.pow(2,24),u=x|0;x=(x-u)*t;var i=x|0;x=(x-i)*t;var f=x|0;return u=u&bN|r|e<<4,Uy(f,i,u)}function wl(x){return x.toArray()}function aK(x,r,e){if(x.write(32,r.dims.length),x.write(32,r.kind|r.layout<<8),r.caml_custom==tp)for(var t=0;t>4;if(u==rD)return r|e|t&bN?NaN:t&on?-1/0:1/0;var i=Math.pow(2,-24),f=(r*i+e)*i+(t&bN);return u>0?(f+=16,f*=Math.pow(2,u-$U)):f*=Math.pow(2,-Kj),t&on&&(f=-f),f}function LC(x){for(var r=x.length,e=1,t=0;t>>24&Is|(r&nn)<<8,r>>>16&nn)}function UC(x){return x.hi32()}function MC(x){return x.lo32()}var pV=tp;function ho(x,r,e,t){this.kind=x,this.layout=r,this.dims=e,this.data=t}ho.prototype.caml_custom=pV,ho.prototype.offset=function(x){var r=0;if(typeof x=="number"&&(x=[x]),x instanceof Array||q1("bigarray.js: invalid offset"),this.dims.length!=x.length&&q1("Bigarray.get/set: bad number of dimensions"),this.layout==0)for(var e=0;e=this.dims[e])&&_l(),r=r*this.dims[e]+x[e];else for(var e=this.dims.length-1;e>=0;e--)(x[e]<1||x[e]>this.dims[e])&&_l(),r=r*this.dims[e]+(x[e]-1);return r},ho.prototype.get=function(x){switch(this.kind){case 7:var r=this.data[x*2+0],e=this.data[x*2+1];return lV(r,e);case 10:case 11:var t=this.data[x*2+0],u=this.data[x*2+1];return[Pa,t,u];default:return this.data[x]}},ho.prototype.set=function(x,r){switch(this.kind){case 7:this.data[x*2+0]=MC(r),this.data[x*2+1]=UC(r);break;case 10:case 11:this.data[x*2+0]=r[1],this.data[x*2+1]=r[2];break;default:this.data[x]=r;break}return 0},ho.prototype.fill=function(x){switch(this.kind){case 7:var r=MC(x),e=UC(x);if(r==e)this.data.fill(r);else for(var t=0;tf)return 1;if(i!=f){if(!r)return NaN;if(i==i)return 1;if(f==f)return-1}}break;case 7:for(var u=0;ux.data[u+1])return 1;if(this.data[u]>>>0>>0)return-1;if(this.data[u]>>>0>x.data[u]>>>0)return 1}break;case 2:case 3:case 4:case 5:case 6:case 8:case 9:case 12:for(var u=0;ux.data[u])return 1}break}return 0};function ja(x,r,e,t){this.kind=x,this.layout=r,this.dims=e,this.data=t}ja.prototype=new ho,ja.prototype.offset=function(x){return typeof x!="number"&&(x instanceof Array&&x.length==1?x=x[0]:q1("Ml_Bigarray_c_1_1.offset")),(x<0||x>=this.dims[0])&&_l(),x},ja.prototype.get=function(x){return this.data[x]},ja.prototype.set=function(x,r){return this.data[x]=r,0},ja.prototype.fill=function(x){return this.data.fill(x),0};function pK(x,r,e,t){var u=lK(x);return LC(e)*u!=t.length&&q1("length doesn't match dims"),r==0&&e.length==1&&u==1?new ja(x,r,e,t):new ho(x,r,e,t)}function D2(x){M2.Failure||(M2.Failure=[Qr,q_,-3]),PC(M2.Failure,x)}function yK(x,r,e){var t=x.read32s();(t<0||t>16)&&D2("input_value: wrong number of bigarray dimensions");var u=x.read32s(),i=u&Is,f=u>>8&1,o=[];if(e==tp)for(var a=0;a>>32-15,r=mK(r,461845907),x^=r,x=x<<13|x>>>32-13,(x+(x<<2)|0)+-430675100|0}function yV(x,r){return x=js(x,MC(r)),x=js(x,UC(r)),x}function kK(x,r){return yV(x,My(r))}function hK(x){var r=LC(x.dims),e=0;switch(x.kind){case 2:case 3:case 12:r>yv&&(r=yv);var t=0,u=0;for(u=0;u+4<=x.data.length;u+=4)t=x.data[u+0]|x.data[u+1]<<8|x.data[u+2]<<16|x.data[u+3]<<24,e=js(e,t);switch(t=0,r&3){case 3:t=x.data[u+2]<<16;case 2:t|=x.data[u+1]<<8;case 1:t|=x.data[u+0],e=js(e,t)}break;case 4:case 5:r>m1&&(r=m1);var t=0,u=0;for(u=0;u+2<=x.data.length;u+=2)t=x.data[u+0]|x.data[u+1]<<16,e=js(e,t);r&1&&(e=js(e,x.data[u]));break;case 6:r>64&&(r=64);for(var u=0;u64&&(r=64);for(var u=0;u32&&(r=32),r*=2;for(var u=0;u64&&(r=64);for(var u=0;u32&&(r=32);for(var u=0;u0?u(r,x,t):u(x,r,t);if(t&&i!=i)return e;if(+i!=+i)return+i;if(i|0)return i|0}return e}function jC(x){return typeof x=="string"&&!/[^\x00-\xff]/.test(x)}function zC(x){return x instanceof Ms}function TK(x){if(typeof x=="number")return ul;if(zC(x))return Ea;if(jC(x))return 1252;if(x instanceof Array&&x[0]===x[0]>>>0&&x[0]<=B3){var r=x[0]|0;return r==Pa?0:r}else{if(x instanceof String)return iM;if(typeof x=="string")return iM;if(x instanceof Number)return ul;if(x&&x.caml_custom)return RP;if(x&&x.compare)return 1256;if(typeof x=="function")return 1247;if(typeof x=="symbol")return 1251}return 1001}function yn(x,r){return xr?1:0}function TV(x,r){return x.t&6&&Ly(x),r.t&6&&Ly(r),x.cr.c?1:0}function Dy(x,r,e){for(var t=[];;){if(!(e&&x===r)){var u=TK(x);if(u==Pv){x=x[1];continue}var i=TK(r);if(i==Pv){r=r[1];continue}if(u!==i)return u==ul?i==RP?wK(x,r,-1,e):-1:i==ul?u==RP?wK(r,x,1,e):1:ur)return 1;if(x!=r){if(!e)return NaN;if(x==x)return 1;if(r==r)return-1}break;case 1001:if(xr)return 1;if(x!=r){if(!e)return NaN;if(x==x)return 1;if(r==r)return-1}break;case 1251:if(x!==r)return e?1:NaN;break;case 1252:var x=x,r=r;if(x!==r){if(xr)return 1}break;case 12520:var x=x.toString(),r=r.toString();if(x!==r){if(xr)return 1}break;case 246:case 254:default:if(sV(u)){q1("compare: continuation value");break}if(x.length!=r.length)return x.length1&&t.push(x,r,1);break}}if(t.length==0)return 0;var a=t.pop();r=t.pop(),x=t.pop(),a+10)if(r==0&&(e>=x.l||x.t==2&&e>=x.c.length))t==0?(x.c=wx,x.t=2):(x.c=Ma(e,String.fromCharCode(t)),x.t=e==x.l?0:2);else for(x.t!=4&&Oy(x),e+=r;r0&&r===r||(x=x.replace(/_/g,wx),r=+x,x.length>0&&r===r||/^[+-]?nan$/i.test(x)))return r;var e=/^ *([+-]?)0x([0-9a-f]+)\.?([0-9a-f]*)(p([+-]?[0-9]+))?/i.exec(x);if(e){var t=e[3].replace(/0+$/,wx),u=parseInt(e[1]+e[2]+t,16),i=(e[5]|0)-4*t.length;return r=u*Math.pow(2,i),r}if(/^\+?inf(inity)?$/i.test(x))return 1/0;if(/^-inf(inity)?$/i.test(x))return-1/0;D2("float_of_string")}function JC(x){x=x;var r=x.length;r>31&&q1("format_int: format too long");for(var e={justify:Ls,signstyle:Ot,filler:Lt,alternate:!1,base:0,signedconv:!1,width:0,uppercase:!1,sign:1,prec:-1,conv:Yj},t=0;t=0&&u<=9;)e.width=e.width*10+u,t++;t--;break;case".":for(e.prec=0,t++;u=x.charCodeAt(t)-48,u>=0&&u<=9;)e.prec=e.prec*10+u,t++;t--;case"d":case"i":e.signedconv=!0;case"u":e.base=10;break;case"x":e.base=16;break;case"X":e.base=16,e.uppercase=!0;break;case"o":e.base=8;break;case"e":case"f":case"g":e.signedconv=!0,e.conv=u;break;case"E":case"F":case"G":e.signedconv=!0,e.uppercase=!0,e.conv=u.toLowerCase();break}}return e}function YC(x,r){x.uppercase&&(r=r.toUpperCase());var e=r.length;x.signedconv&&(x.sign<0||x.signstyle!=Ot)&&e++,x.alternate&&(x.base==8&&(e+=1),x.base==16&&(e+=2));var t=wx;if(x.justify==Ls&&x.filler==Lt)for(var u=e;u20?(A-=20,h/=Math.pow(10,A),h+=new Array(A+1).join(Q2),k>0&&(h=h+Hf+new Array(k+1).join(Q2)),h):h.toFixed(k)}var t,u=JC(x),i=u.prec<0?6:u.prec;if((r<0||r==0&&1/r==-1/0)&&(u.sign=-1,r=-r),isNaN(r))t=jk,u.filler=Lt;else if(!isFinite(r))t="inf",u.filler=Lt;else switch(u.conv){case"e":var t=r.toExponential(i),f=t.length;t.charAt(f-3)==lh&&(t=t.slice(0,f-1)+Q2+t.slice(f-1));break;case"f":t=e(r,i);break;case"g":i=i||1,t=r.toExponential(i-1);var o=t.indexOf(lh),a=+t.slice(o+1);if(a<-4||r>=1e21||r.toFixed(0).length>i){for(var f=o-1;t.charAt(f)==Q2;)f--;t.charAt(f)==Hf&&f--,t=t.slice(0,f+1)+t.slice(o),f=t.length,t.charAt(f-3)==lh&&(t=t.slice(0,f-1)+Q2+t.slice(f-1));break}else{var y=i;if(a<0)y-=a+1,t=r.toFixed(y);else for(;t=r.toFixed(y),t.length>i+1;)y--;if(y){for(var f=t.length-1;t.charAt(f)==Q2;)f--;t.charAt(f)==Hf&&f--,t=t.slice(0,f+1)}}break}return YC(u,t)}function zy(x,r){if(x==hl)return wx+r;var e=JC(x);r<0&&(e.signedconv?(e.sign=-1,r=-r):r>>>=0);var t=r.toString(e.base);if(e.prec>=0){e.filler=Lt;var u=e.prec-t.length;u>0&&(t=Ma(u,Q2)+t)}return YC(e,t)}var EK=0;function zs(){return EK++}function AK(){return[0]}var Ky=[];function qx(x,r,e){var t=x[1],u=Ky[e];if(u===void 0)for(var i=Ky.length;i>1|1,rpw?(e.substr(0,1),r+=e,e=wx,r+=x.slice(i,o)):e+=x.slice(i,o),o==f)break;i=o}t>6),e+=String.fromCharCode(cn|t&Ua)):t<55296||t>=Iz?e+=String.fromCharCode(Xj|t>>12,cn|t>>6&Ua,cn|t&Ua):t>=56319||i+1==f||(u=x.charCodeAt(i+1))Iz?e+="\xEF\xBF\xBD":(i++,t=(t<<10)+u-56613888,e+=String.fromCharCode(Tz|t>>18,cn|t>>12&Ua,cn|t>>6&Ua,cn|t&Ua)),e.length>vl&&(e.substr(0,1),r+=e,e=wx)}return r+e}function Mt(x){return NC(x)?x:AV(x)}function gV(x,r,e){if(!isFinite(x))return isNaN(x)?Mt(jk):Mt(x>0?_D:"-infinity");var t=x==0&&1/x==-1/0?1:x>=0?0:1;t&&(x=-x);var u=0;if(x!=0)if(x<1)for(;x<1&&u>-1022;)x*=2,u--;else for(;x>=2;)x/=2,u++;var i=u<0?wx:Ls,f=wx;if(t)f=Ot;else switch(e){case 43:f=Ls;break;case 32:f=Lt;break;default:break}if(r>=0&&r<13){var o=Math.pow(2,r*4);x=Math.round(x*o)/o}var a=x.toString(16);if(r>=0){var y=a.indexOf(Hf);if(y<0)a+=Hf+Ma(r,Q2);else{var h=y+1+r;a.length>24&wi,x>>31&nn)}function IV(x){return x.toInt()}function PV(x){return+x.isNeg()}function XC(x){return x.neg()}function CV(x,r){var e=JC(x);e.signedconv&&PV(r)&&(e.sign=-1,r=XC(r));var t=wx,u=Jy(e.base),i="0123456789abcdef";do{var f=r.udivmod(u);r=f.quotient,t=i.charAt(IV(f.modulus))+t}while(!NV(r));if(e.prec>=0){e.filler=Lt;var o=e.prec-t.length;o>0&&(t=Ma(o,Q2)+t)}return YC(e,t)}function Gx(x){return x.length}function ix(x,r){return x.charCodeAt(r)}function RV(x,r){return x.add(r)}function OV(x,r){return x.mul(r)}function WC(x,r){return x.ucompare(r)<0}function gK(x){var r=0,e=Gx(x),t=10,u=1;if(e>0)switch(ix(x,r)){case 45:r++,u=-1;break;case 43:r++,u=1;break}if(r+1=48&&x<=57?x-48:x>=65&&x<=90?x-55:x>=97&&x<=qr?x-87:-1}function Sl(x){var r=gK(x),e=r[0],t=r[1],u=r[2],i=Jy(u),f=new fr(wi,268435455,nn).udivmod(i).quotient,o=ix(x,e),a=Yy(o);(a<0||a>=u)&&D2(Os);for(var y=Jy(a);;)if(e++,o=ix(x,e),o!=95){if(a=Yy(o),a<0||a>=u)break;WC(f,y)&&D2(Os),a=Jy(a),y=RV(OV(i,y),a),WC(y,a)&&D2(Os)}return e!=Gx(x)&&D2(Os),u==10&&WC(new fr(0,0,on),y)&&D2(Os),t<0&&(y=XC(y)),y}function By(x){return x.toFloat()}function it(x){var r=gK(x),e=r[0],t=r[1],u=r[2],i=Gx(x),f=-1>>>0,o=e=u)&&D2(Os);var y=a;for(e++;e=u)break;y=u*y+a,y>f&&D2(Os)}return e!=i&&D2(Os),y=t*y,u==10&&(y|0)!=y&&D2(Os),y|0}function LV(x){return x.slice(1)}function nr(x){return NC(x)?x:iK(x)}function UV(x){for(var r={},e=1;e=0?x.l:x.l=x.length}function DV(x){return function(){for(var r=MV(x),e=new Array(r),t=0;t1&&t.pop();break;case".":break;case"":break;default:t.push(e[u]);break}return t.unshift(r[0]),t.orig=x,t}var BV=["E2BIG","EACCES","EAGAIN",DT,"EBUSY","ECHILD","EDEADLK","EDOM",QD,"EFAULT","EFBIG","EINTR","EINVAL","EIO","EISDIR","EMFILE","EMLINK","ENAMETOOLONG","ENFILE","ENODEV",ZS,"ENOEXEC","ENOLCK","ENOMEM","ENOSPC","ENOSYS",uh,XU,"ENOTTY","ENXIO","EPERM","EPIPE","ERANGE","EROFS","ESPIPE","ESRCH","EXDEV","EWOULDBLOCK","EINPROGRESS","EALREADY","ENOTSOCK","EDESTADDRREQ","EMSGSIZE","EPROTOTYPE","ENOPROTOOPT","EPROTONOSUPPORT","ESOCKTNOSUPPORT","EOPNOTSUPP","EPFNOSUPPORT","EAFNOSUPPORT","EADDRINUSE","EADDRNOTAVAIL","ENETDOWN","ENETUNREACH","ENETRESET","ECONNABORTED","ECONNRESET","ENOBUFS","EISCONN","ENOTCONN","ESHUTDOWN","ETOOMANYREFS","ETIMEDOUT","ECONNREFUSED","EHOSTDOWN","EHOSTUNREACH","ELOOP","EOVERFLOW"];function Js(x,r,e,t){var u=BV.indexOf(x);u<0&&(t==null&&(t=-9999),u=[0,t]);var i=[u,Mt(r||wx),Mt(e||wx)];return i}var CK={};function _o(x){return CK[x]}function Ys(x,r){throw q0([0,x].concat(r))}function ZC(x){return x instanceof Uint8Array||(x=new Uint8Array(x)),new Ms(4,x,x.length)}function RK(x){Mr(x+np)}function H2(x){this.data=x}H2.prototype=new NK,H2.prototype.constructor=H2,H2.prototype.truncate=function(x){var r=this.data;this.data=g1(x|0),Us(r,0,this.data,0,x)},H2.prototype.length=function(){return ft(this.data)},H2.prototype.write=function(x,r,e,t){var u=this.length();if(x+t>=u){var i=g1(x+t),f=this.data;this.data=i,Us(f,0,this.data,0,u)}return Us(ZC(r),e,this.data,x,t),0},H2.prototype.read=function(x,r,e,t){var u=this.length();if(x+t>=u&&(t=u-x),t){var i=g1(t|0);Us(this.data,x,i,0,t),r.set(IK(i),e)}return t};function Rv(x,r,e){this.file=r,this.name=x,this.flags=e}Rv.prototype.err_closed=function(){Mr(this.name+GM)},Rv.prototype.length=function(){if(this.file)return this.file.length();this.err_closed()},Rv.prototype.write=function(x,r,e,t){if(this.file)return this.file.write(x,r,e,t);this.err_closed()},Rv.prototype.read=function(x,r,e,t){if(this.file)return this.file.read(x,r,e,t);this.err_closed()},Rv.prototype.close=function(){this.file=void 0};function p2(x,r){this.content={},this.root=x,this.lookupFun=r}p2.prototype.nm=function(x){return this.root+x},p2.prototype.create_dir_if_needed=function(x){for(var r=x.split($2),e=wx,t=0;t0&&e>=0&&e+t<=r.length&&r[e+t-1]==10&&t--;var u=g1(t);return Us(ZC(r),e,u,0,t),this.log(u.toUtf16()),0}Mr(this.fd+GM)},gl.prototype.read=function(x,r,e,t){Mr(this.fd+": file descriptor is write only")},gl.prototype.close=function(){this.log=void 0};function Zy(x,r){return r==null&&(r=Wy.length),Wy[r]=x,r|0}function rP0(x,r,e){for(var t={};r;){switch(r[1]){case 0:t.rdonly=1;break;case 1:t.wronly=1;break;case 2:t.append=1;break;case 3:t.create=1;break;case 4:t.truncate=1;break;case 5:t.excl=1;break;case 6:t.binary=1;break;case 7:t.text=1;break;case 8:t.nonblock=1;break}r=r[2]}t.rdonly&&t.wronly&&Mr(x+rS),t.text&&t.binary&&Mr(x+vC);var u=XV(x),i=u.device.open(u.rest,t);return Zy(i,void 0)}(function(){function x(r,e){return El()?KV(r,e):new gl(r,e)}Zy(x(0,{rdonly:1,altname:"/dev/stdin",isCharacterDevice:!0}),0),Zy(x(1,{buffered:2,wronly:1,isCharacterDevice:!0}),1),Zy(x(2,{buffered:2,wronly:1,isCharacterDevice:!0}),2)})();function WV(x){var r=Wy[x];r.flags.wronly&&Mr(tz+x+" is writeonly");var e=null,t={file:r,offset:r.flags.append?r.length():0,fd:x,opened:!0,out:!1,buffer_curr:0,buffer_max:0,buffer:new Uint8Array(b3),refill:e};return Ks[t.fd]=t,t.fd}function LK(x){var r=Wy[x];r.flags.rdonly&&Mr(tz+x+" is readonly");var e=r.flags.buffered!==void 0?r.flags.buffered:1,t={file:r,offset:r.flags.append?r.length():0,fd:x,opened:!0,out:!0,buffer_curr:0,buffer:new Uint8Array(b3),buffered:e};return Ks[t.fd]=t,t.fd}function VV(){for(var x=0,r=0;ru.buffer.length){var f=new Uint8Array(u.buffer_curr+i.length);f.set(u.buffer),u.buffer=f}switch(u.buffered){case 0:u.buffer.set(i,u.buffer_curr),u.buffer_curr+=i.length,Zc(x);break;case 1:u.buffer.set(i,u.buffer_curr),u.buffer_curr+=i.length,u.buffer_curr>=u.buffer.length&&Zc(x);break;case 2:var o=i.lastIndexOf(10);o<0?(u.buffer.set(i,u.buffer_curr),u.buffer_curr+=i.length,u.buffer_curr>=u.buffer.length&&Zc(x)):(u.buffer.set(i.subarray(0,o+1),u.buffer_curr),u.buffer_curr+=o+1,Zc(x),u.buffer.set(i.subarray(o+1),u.buffer_curr),u.buffer_curr+=i.length-o-1);break}return 0}function $C(x,r,e,t){return ZV(x,Vc(r),e,t)}function UK(x,r){var e=String.fromCharCode(r);return $C(x,e,0,1),0}function Nl(x,r){return+(Dy(x,r,!1)!=0)}function FC(x,r){var e=new Array(r+1);e[0]=x;for(var t=1;t<=r;t++)e[t]=0;return e}function $V(x,r){return x[0]=Pv,x[1]=r,0}function Ov(x){return x instanceof Array&&x[0]==x[0]>>>0?x[0]:zC(x)||jC(x)?Ea:x instanceof Function||typeof x=="function"?J8:x&&x.caml_custom?B3:ul}function FV(x){for(var r;x;)if(nr(x[1][1])=="SYJS"){r=x[1][2];break}else x=x[2];var e={};if(r)for(var t=1;t=0?x=u:D2("caml_register_global: cannot locate "+t)}}M2[x+1]=r,e&&(M2[e]=r)}function QC(x,r){return CK[x]=r,0}function QV(x){return x[2]=EK++,x}function Nr(x,r){return x===r?1:0}function HV(){q1(fA)}function C1(x,r){return r>>>0>=Gx(x)&&HV(),ix(x,r)}function N(x,r){return 1-Nr(x,r)}function qV(){return 2147483647/4|0}var GV=l0.process&&l0.process.platform&&l0.process.platform==lD?kz:"Unix";function bV(){return[0,GV,32,0]}function xZ(){oK(M2.Not_found)}function MK(x){var r=cK(nr(x));return r===void 0&&xZ(),Mt(r)}function HC(x){for(var r=1;x&&x.joo_tramp;)x=x.joo_tramp.apply(null,x.joo_args),r++;return x}function y2(x,r){return{joo_tramp:x,joo_args:r}}function C0(x,r){if(typeof r=="function")return x.fun=r,0;if(r.fun)return x.fun=r.fun,0;for(var e=r.length;e--;)x[e]=r[e];return 0}function R1(x){{if(x instanceof Array)return x;var r;return l0.RangeError&&x instanceof l0.RangeError&&x.message&&x.message.match(/maximum call stack/i)||l0.InternalError&&x instanceof l0.InternalError&&x.message&&x.message.match(/too much recursion/i)?r=M2.Stack_overflow:x instanceof l0.Error&&_o(ME)?r=[0,_o(ME),x]:r=[0,M2.Failure,Mt(String(x))],x instanceof l0.Error&&(r.js_error=x),r}}function rZ(x){switch(x[2]){case-8:case-11:case-12:return 1;default:return 0}}function eZ(x){var r=wx;if(x[0]==0){if(r+=x[1][1],x.length==3&&x[2][0]==0&&rZ(x[1]))var t=x[2],e=1;else var e=2,t=x;r+=OU;for(var u=e;ue&&(r+=LM);var i=t[u];typeof i=="number"?r+=i.toString():i instanceof Ms||typeof i=="string"?r+=q8+i.toString()+q8:r+=ga}r+=YS}else x[0]==Qr&&(r+=x[1]);return r}function DK(x){if(x instanceof Array&&(x[0]==0||x[0]==Qr)){var r=_o(eM);if(r)Xy(r,[x,!1]);else{var e=eZ(x),t=_o($M);if(t&&Xy(t,[0]),console.error(eC+e+` -`),x.js_error)throw x.js_error}}else throw x}function tZ(){var x=l0.process;x&&x.on?x.on("uncaughtException",function(r,e){DK(r),x.exit(2)}):l0.addEventListener&&l0.addEventListener("error",function(r){r.error&&DK(r.error)})}tZ();function l(x,r){return(x.l>=0?x.l:x.l=x.length)==1?x(r):Ds(x,[r])}function p(x,r,e){return(x.l>=0?x.l:x.l=x.length)==2?x(r,e):Ds(x,[r,e])}function G0(x,r,e,t){return(x.l>=0?x.l:x.l=x.length)==3?x(r,e,t):Ds(x,[r,e,t])}function oe(x,r,e,t,u){return(x.l>=0?x.l:x.l=x.length)==4?x(r,e,t,u):Ds(x,[r,e,t,u])}function Je(x,r,e,t,u,i){return(x.l>=0?x.l:x.l=x.length)==5?x(r,e,t,u,i):Ds(x,[r,e,t,u,i])}function nZ(x,r,e,t,u,i,f,o){return(x.l>=0?x.l:x.l=x.length)==7?x(r,e,t,u,i,f,o):Ds(x,[r,e,t,u,i,f,o])}var qC=[Qr,jz,-1],jK=[Qr,az,-2],mn=[Qr,q_,-3],GC=[Qr,rz,-4],w2=[Qr,dD,-7],zK=[Qr,Ij,-8],KK=[Qr,aj,-9],Tr=[Qr,YU,-11],Il=[Qr,Dj,-12],uZ=[4,0,0,0,[12,45,[4,0,0,0,0]]],bC=[0,[11,'File "',[2,0,[11,'", line ',[4,0,0,0,[11,ij,[4,0,0,0,[12,45,[4,0,0,0,[11,": ",[2,0,0]]]]]]]]]],'File "%s", line %d, characters %d-%d: %s'],Ja=[0,0,[0,0,0],[0,0,0]],Pl=[0,0,0,0,1,0,0,0],JK=[0,"first_leading","last_trailing"],YK=[0,hf,gf,ni,l7,Af,Ii,yu,uc,O7,zi,Nf,un,Ku,sc,Le,E7,Q7,rf,Bf,T7,ci,Xc,hc,Gn,uf,j7,ku,ji,Qi,Jc,B7,Tu,yi,bi,_i,fi,Ff,Xi,nu,s7,Bc,K7,Wu,mc,vi,tf,Wf,Wn,ic,oc,Fi,Ce,Re,Mu,lf,dc,Mi,y7,Pf,ju,Gf,sf,ec,Tf,_c,Ai,ce,Ri,qn,ff,Hi,_u,e7,Iu,Li,xf,kc,cc,gu,Uu,ef,p7,$n,_f,v7,zf,z7,Q1,pi,Zu,Zn,J7,o7,Cf,df,V7,xu,Ci,Ru,wu,iu,Vu,xc,F7,jn,nc,d7,Yn,R7,Qu,Fu,If,Gu,af,zn,ki,jc,Yi,lu,mi,ou,Su,It,k7,t7,_7,R2,di,eu,Du,c7,of,cu,jf,A7,F2,Hu,Qn,Mf,Di,uu,Wc,G7,au,F1,Ui,Ju,Sc,tc,x7,yf,du,xi,Mc,ui,C7,n7,q7,Vn,Zf,Vf,$i,qf,L7,Ou,Bn,Ni,P7,Kn,tu,qi,xr,u7,ii,Cu,yc,$u,i7,Cc,Nc,zu,Ac,Y7,mf,g7,Pi,Of,Yf,ru,Wi,Dc,nf,Oc,r7,ti,kf,ei,bf,si,H7,Qf,bn,Yu,Sf,pn,Pc,Au,D7,vc,wc,S7,X7,Lu,f7,a7,Oi,Nu,fc,$f,b7,Df,zc,mu,Uf,ac,su,je,pc,fu,Pu,pu,Zi,I7,Me,lc,Xu,N7,Tc,Ji,Bi,m7,Gi,Ke,Eu,Z7,Rf,pf,gc,Si,wf,ze,Kc,cf,Ki,hu,rc,Xn,Fn,hi,Kf,li,Rc,h7,Lc,ai,Jn,M7,Ti,Xf,Jf,$7,w7,U7,oi,Bu,Ec,Hn,W7,qu,Yc,Ei,L2,Lf,vf,ri,U2],kn=[0,0,0];Dt(11,Il,Dj),Dt(10,Tr,YU),Dt(9,[Qr,TD,PM],TD),Dt(8,KK,aj),Dt(7,zK,Ij),Dt(6,w2,dD),Dt(5,[Qr,qM,-6],qM),Dt(4,[Qr,tM,-5],tM),Dt(3,GC,rz),Dt(2,mn,q_),Dt(1,jK,az),Dt(0,qC,jz);var iZ="output_substring",fZ=Hf,cZ=Ts,sZ=As,oZ="CamlinternalLazy.Undefined",vZ=mz,aZ="\\'",lZ="\\b",pZ="\\t",yZ="\\n",dZ="\\r",mZ="List.iter2",kZ="tl",hZ="hd",_Z="String.blit / Bytes.blit_string",wZ="Bytes.blit",TZ="String.sub / Bytes.sub",SZ="Array.blit",EZ="Array.sub",AZ="Map.remove_min_elt",gZ=[0,0,0,0],NZ=[0,"map.ml",400,10],IZ=[0,0,0],PZ=K4,CZ=K4,RZ=K4,OZ=K4,LZ="Stdlib.Queue.Empty",UZ="Buffer.add_substring/add_subbytes",MZ="Buffer.add: cannot grow buffer",DZ=[0,GU,93,2],jZ=[0,GU,94,2],zZ="Buffer.sub",KZ="%c",JZ="%s",YZ=DU,BZ=dz,XZ=vD,WZ=Uz,VZ="%f",ZZ="%B",$Z="%{",FZ="%}",QZ="%(",HZ="%)",qZ=CD,GZ="%t",bZ="%?",x$="%r",r$="%_r",e$=[0,i2,850,23],t$=[0,i2,814,21],n$=[0,i2,815,21],u$=[0,i2,818,21],i$=[0,i2,819,21],f$=[0,i2,822,19],c$=[0,i2,823,19],s$=[0,i2,826,22],o$=[0,i2,827,22],v$=[0,i2,831,30],a$=[0,i2,832,30],l$=[0,i2,836,26],p$=[0,i2,837,26],y$=[0,i2,846,28],d$=[0,i2,847,28],m$=[0,i2,851,23],k$=[0,i2,1558,4],h$="Printf: bad conversion %[",_$=[0,i2,1626,39],w$=[0,i2,1649,31],T$=[0,i2,1650,31],S$="Printf: bad conversion %_",E$=Oj,A$=aD,g$=Oj,N$=aD,I$=[0,[11,"invalid box description ",[3,0,0]],"invalid box description %S"],P$=[0,0,4],C$=jk,R$="neg_infinity",O$=_D,L$=Hf,U$=[0,tt],M$="%+nd",D$="% nd",j$="%+ni",z$="% ni",K$="%nx",J$="%#nx",Y$="%nX",B$="%#nX",X$="%no",W$="%#no",V$="%nd",Z$=vD,$$="%nu",F$="%+ld",Q$="% ld",H$="%+li",q$="% li",G$="%lx",b$="%#lx",xF="%lX",rF="%#lX",eF="%lo",tF="%#lo",nF="%ld",uF=dz,iF="%lu",fF="%+Ld",cF="% Ld",sF="%+Li",oF="% Li",vF="%Lx",aF="%#Lx",lF="%LX",pF="%#LX",yF="%Lo",dF="%#Lo",mF="%Ld",kF=Uz,hF="%Lu",_F="%+d",wF="% d",TF="%+i",SF="% i",EF="%x",AF="%#x",gF="%X",NF="%#X",IF="%o",PF="%#o",CF=hl,RF=DU,OF=qD,LF=oa,UF="@}",MF="@?",DF=`@ -`,jF="@.",zF="@@",KF="@%",JF=pD,YF="CamlinternalFormat.Type_mismatch",BF=wx,XF=[0,[11,LM,[2,0,[2,0,0]]],", %s%s"],WF=[0,[11,eC,[2,0,[12,10,0]]],lj],VF=[0,[11,"Fatal error in uncaught exception handler: exception ",[2,0,[12,10,0]]],`Fatal error in uncaught exception handler: exception %s -`],ZF="Fatal error: out of memory in uncaught exception handler",$F=[0,[11,eC,[2,0,[12,10,0]]],lj],FF=[0,[2,0,[12,10,0]],`%s -`],QF="Raised at",HF="Re-raised at",qF="Raised by primitive operation at",GF="Called from",bF=" (inlined)",xQ=wx,rQ=[0,[2,0,[12,32,[2,0,[11,' in file "',[2,0,[12,34,[2,0,[11,", line ",[4,0,0,0,[11,ij,uZ]]]]]]]]]],'%s %s in file "%s"%s, line %d, characters %d-%d'],eQ=[0,[2,0,[11," unknown location",0]],"%s unknown location"],tQ="Out of memory",nQ="Stack overflow",uQ="Pattern matching failed",iQ="Assertion failed",fQ="Undefined recursive module",cQ=[0,[12,40,[2,0,[2,0,[12,41,0]]]],"(%s%s)"],sQ=wx,oQ=wx,vQ=[0,[12,40,[2,0,[12,41,0]]],"(%s)"],aQ=[0,[4,0,0,0,0],hl],lQ=[0,[3,0,0],z3],pQ=ga,yQ=[0,wx,`(Cannot print locations: +(function(i){function e(){var f=i();return f.default||f}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.flow=e()}})(function(){"use strict";var PN0=Object.create;var t9=Object.defineProperty;var NN0=Object.getOwnPropertyDescriptor;var CN0=Object.getOwnPropertyNames;var IN0=Object.getPrototypeOf,ON0=Object.prototype.hasOwnProperty;var UB=(p0,wx)=>()=>(wx||p0((wx={exports:{}}).exports,wx),wx.exports),jB=(p0,wx)=>{for(var rr in wx)t9(p0,rr,{get:wx[rr],enumerable:!0})},JB=(p0,wx,rr,gr)=>{if(wx&&typeof wx=="object"||typeof wx=="function")for(let Z1 of CN0(wx))!ON0.call(p0,Z1)&&Z1!==rr&&t9(p0,Z1,{get:()=>wx[Z1],enumerable:!(gr=NN0(wx,Z1))||gr.enumerable});return p0};var XB=(p0,wx,rr)=>(rr=p0!=null?PN0(IN0(p0)):{},JB(wx||!p0||!p0.__esModule?t9(rr,"default",{value:p0,enumerable:!0}):rr,p0)),RN0=p0=>JB(t9({},"__esModule",{value:!0}),p0);var YB=UB(gM=>{(function(p0){typeof globalThis!="object"&&(this?wx():(p0.defineProperty(p0.prototype,"_T_",{configurable:!0,get:wx}),_T_));function wx(){var rr=this||self;rr.globalThis=rr,delete p0.prototype._T_}})(Object);(function(p0){"use strict";var wx="symbol",rr=271,gr=126548,Z1="renders",ir=71127,ur="member_property",y1=65007,iv=66517,$1="jsx_attribute_value_expression",D3=119980,Yn="function_declaration",Ie="<2>",i9=68466,RM="%=",f9="??",c9=70080,I4="&",Ct="identifier",O4=72163,s9=71723,o9="properties",v9=183969,a9=68223,Vn="function_return_annotation",l9=124903,p9=70106,LM=241,MM="(",DM=213,d9=120074,y9=70708,m9=71679,zn="logical",u2="camlinternalFormat.ml",Kn="type_guard_annotation",k9=92975,UM=">>>",h9="RestElement",_9=67897,jM=179,w9="start",T9=113775,R4=126521,JM="%i",U3="`",XM="#",S9=43702,L4=126,E9=110947,Bn="function_identifier",M4=119893,g9=70366,A9=65547,P9=43743,N9=-43,fv=8238,YM=",",cv=8286,Wn="keyof_type",C9=66717,D4=12336,VM=201,I9=71338,U4=11565,O9=69289,R9=55291,L9=73030,M9=70479,D9=69572,U9=11623,Zn="tuple_spread_element",$n="component_type_rest_param",sv=8239,j9=64310,va="@]",J9=42993,j4=11558,J4="Map.bal",j3="public",zM=-32,aa="Literal",Fn="jsx_member_expression_identifier",Qn="for_in_assignment_pattern",X9=71450,X4=126557,fn=103,Y9=12292,V9=110579,Y4=120597,z9=13311,K9=12348,Gn="export_default_declaration_decl",qn="tuple_type",B9=113663,W9=170,Z9=67413,KM="Assert_failure",BM="comments",J3="%S",cn=127343600,$9=12341,F9=67646,WM="ENOTEMPTY",Q9=72160,G9=70187,ZM=222,q9=12343,$M=2147483647,H9=126624,b9=43442,xk=70312,rk=281,Hn="interface_type",ov="new",ek=66256,V4=68296,tk=124908,z4=126579,K4=70107,B4=249,nk=71167,bn="union_type",Gr=248,uk=126546,x7="enum_bigint_member",FM=133,ik=67871,fk=66955,QM=1027,r7="class_declaration",e7="optional_call",GM="a string",W4=11703,qM="<<",Z4=126564,t7="jsx_element",n7="object_property_type",ck=94207,u7="enum_declaration",sk=68023,ok=67669,vk=8318,HM="prefix",vv="this",ak=126578,i7="if_consequent_statement",bM=-696510241,lk=66963,av="default",$4=72967,It=101,xD="buffer.ml",pk=74649,sn=65535,dk=43709,yk=175,lo="component",rD="===",po=117,f7="jsx_identifier",eD="EnumDefaultedMember",F4=70006,mk=70161,kk=126633,hk=66965,c7="member_property_expression",_k=101589,wk=64274,la="function",Tk=66303,Sk=42954,Ek=126529,gk=72191,s7="new_",Ak=64433,Q4=126559,Pk=72144,tD="==",yo=-744106340,Nk=43359,Ck=171,nD="Printexc.handle_uncaught_exception",Ik=66735,Ok=126534,Rk=74879,Lk=42785,G4=120629,X3="0o",uD="End_of_file",Mk=66175,iD="&=",Dk="nan",q4=126503,o7="pattern_number_literal",Uk=43470,v7="import_namespace_specifier",jk=77711,H4=70302,a7="component_param",b4="@])",xp=126515,pa=118,Oe="continue",Jk=43798,rp=";@ ",Xk=74751,Yk="src/parser/statement_parser.ml",Vk="rmdir",zk=94177,l7="for_in_statement",fD=269,cD=12520,sD="TypeParameterInstantiation",kx="",oD="**=",Kk=120126,vD=197,Bk=67829,ep="_bigarr02",p7="export_named_declaration_specifier",tp=": No such file or directory",np=64319,Wk=69926,d7="pattern_object_p",aD="TypeAnnotation",y7="array_type",Y3="@[%s =@ ",Zk=72847,m7="export_default_declaration",up=126590,$k=42774,Fk=": Not a directory",da="let",lv=12288,$2="argument",F2="/",ip="an identifier",Ts="typeof",fp=68116,Qk=182,k7="declare_export_declaration_decl",Gk=67589,qk=66771,V3="class",lD="tokens",cp=70281,z3=255,Hk=43638,pD=-983660142,pv="key",bk=69955,dD=">>",h7="function_expression_or_method",xh=43587,on="block",rh=100351,sp="mixed",eh=66503,th="ENOTDIR",nh=65135,_7="string_literal",ce="@ ",uh=43334,w7="if_alternate_statement",ih=70448,op=8485,T7="type_args",fh=69864,S7="if_statement",yD="+=",E7="typeof_identifier",vp="with",ap=65595,ch=64286,sh=71086,Ss="true",oh=69423,g7="catch_clause",vh="e",ya="asserts",mD=">>=",ah=131,lh=43388,ph=43887,Y1=-48,dh=120779,kD=190,yh=194,A7="pattern_bigint_literal",mh=71351,kh=65629,P7="call",hD=-42,lp=126553,hh=43695,_D=177,_h=42124,wh=12703,Th=12442,Sh=11718,pp=70449,dp=126547,Eh=67462,Es="left",N7="infer_type",gh=11742,Ah=65597,yp="Unix.Unix_error",Ph=122623,Nh=124911,Ch=72959,Ih="opaque",C7="object_internal_slot_property_type",wD="Enum `",TD=275,dv=65279,Oh=71983,Rh=12329,V1=110,I7="spread_property",SD="importKind",K3=" =",O7="remote_identifier",R7="labeled_statement",L7="jsx_fragment",Lh=120770,M7="function_param",L2=112,Mh="exportKind",D7="binary",gs="`.",Dh=42511,ED="<=",U7="jsx_spread_attribute",M2="import",j7="typeof_member_identifier",Uh=69414,jh=19967,mp=11687,Jh=93823,gD=209,Xh=71903,Yh="of",Vh=72e3,zh="typeArguments",J7="type_identifier",X7="pattern_array_element_pattern",kp=69744,ma=192,Y7="class_element",V7="export_source",z7="component_param_pattern",Kh=42508,Bh=125124,AD="Unexpected token `",K7="for_in_left_declaration",B7="object_call_property_type",Wh="abstract",Zh=8584,$h=68786,Fh=71999,hp=123214,Qh=123565,Gh=186,W7="class_implements_interface",_p=126536,qh=69749,PD="Invalid legacy octal ",Hh=71295,bh=66927,Z7="pattern_expression",x_=11679,r_=-61,wp=65141,e_=11694,$7="update_expression",ND="minus",Re="debugger",t_=71352,n_=65470,ka="number",u_=123627,Tp=64322,Sp=43471,F7="for_of_assignment_pattern",Ep=126589,i_=43784,CD="Internal Error: Found object private prop",f_=183983,qr="id",c_=123190,gp="finally",Ap=120070,s_=72095,Q7="syntax",o_=110591,As="false",ID=-10,Pp="AssignmentPattern",G7="typeof_expression",v_=43764,OD="FunctionTypeParam",q7="function_body_any",a_=126627,l_=71998,p_=126543,H7="call_type_arg",d_=64316,Np=64285,y_=8454,m_=137,RD="**",b7="object_type_property_setter",k_=68607,vn=108,h_="out",__=68799,yv=65278,xu="jsx_member_expression",w_=92728,mv="null",T_=66431,S_=72249,an=128,Cp=119994,E_=66207,g_=43583,Ip="else",Op=94179,Rp=11735,A_=64911,ru="jsx_attribute_name_namespaced",LD="!",P_=42539,N_=72250,C_=71215,I_=69746,O_=65487,eu="pattern_object_property_key",MD=", ",R_=8505,L_="=",M_=64111,D_=8507,Lp=120134,Mp="while",U_=120596,j_=43002,B3="protected",J_=68479,X_=43395,Y_=68252,DD="v",V_=70278,z_="rendersType",K_=70853,Dp=120145,B_=69297,W_=73112,Up=8488,Z_=68351,$_=42655,tu="for_of_left_declaration",F_=44031,Q_="Failure",G_=92159,nu="object_key_identifier",UD=195,kv="bigint",uu="import_default_specifier",hv=256,iu="member",jD="!==",fu="component_identifier",q_=73008,H_=72283,jp=126500,Jp=120127,cu="jsx_attribute_name",su="for_statement_init",b_=67711,ou="private_name",Xp="case",Yp=8489,vu="import_specifier",xw=64279,rw=94098,JD=148,ew=119974,au="pattern_string_literal",tw=72969,XD=193,YD="!=",Vp=126520,nw=71944,VD=259,uw=42191,lu="generic_qualified_identifier_type",_v="implements",iw=194559,zD="%",W3="hasUnknownMembers",fw=71039,KD=211,cw=83526,pu="init",du="jsx_attribute_value",sw=70271,ha=240,yu="function_type_return_annotation",ow=70018,vw="rest",mu="readonly_type",aw=512,lw=68095,pw=120003,zp=126563,Kp=71236,dw=69375,yw=68850,mw=70105,kw=43866,Bp=888960333,hw=43013,ku="assignment_pattern",_w="specifiers",BD=710,WD=145,ln="as",ww=120570,Tw=11507,ZD=204,hu="jsx_element_name_identifier",_u="pattern_object_property_string_literal_key",wu="class_expression",$D=257,Sw=44002,Ew=82943,_a="src/parser/type_parser.ml",wa="test",FD=-67,gw=64217,Wp="package",QD="collect_comments",GD="Pervasives.do_at_exit",Aw=125183,Pw=42606,Tu="tuple_element",Su="enum_boolean_member",Nw=65312,Zp=119981,Cw=65495,$p=120085,qD=-80,HD=138,Fp=126555,Iw=65276,m1=128,bD="{ ",Eu="for_statement",gu="class_method",Qp="if",Au="generic_type",Rr=113,Ow=43071,Rw=72001,Lw=71131,Mw=70002,Dw=42888,Gp=8469,Z3="instanceof",Uw=11502,qp=94178,jw=64321,Jw=64913,xU="Division_by_zero",Xw=92879,Yw=71945,Vw=185,zw=66938,Hp=65535,Kw=113800,rU=": file descriptor already closed",bp=223,eU="*=",Bw=68899,Pu="switch_case",Nu="pattern_array_element",Cu="enum_string_member",Iu="pattern_object_property_bigint_literal_key",tU="visit_trailing_comment",x8="export",r8=120122,e8=43823,Ww=43792,Zw=42527,$w=70726,Ou="enum_defaulted_member",Fw=68497,t8=72349,Ru="program",Lu="member_type_identifier",Qw="object",Mu="for_of_statement_lhs",Gw=113791,qw=67391,Du="jsx_spread_child",n8=126554,u8=8526,i8=43880,f8=69415,Hw=43822,Uu="pattern_identifier",bw=93052,Ta="readonly",Le="name",xT=68119,rT=71494,eT=120121,c8=8486,nU=2047,ju="enum_symbol_body",uU=142,iU="PropertyDefinition",tT=177976,Ju="declare_class",nT=65489,uT=72367,iT=70440,Xu="import_named_specifier",fU="Popping lex mode from empty stack",fT=68111,cT=66463,cU="*-/",sT=43187,s8=8487,oT=11567,vT=67861,aT=` +`,lT=66383,Yu="declare_interface",pT=-24976191,dT=238,yT=-24,sU="@ }@]",mT=43645,oU=176,kT=119976,o8=69959,hT=126519,_T=";",vU="trailingComments",v8=65548,Vu="number_literal",Sa=449540197,wT=43704,a8=126584,TT=8467,aU="||",l8=11695,ST="exported",ET=120712,Ps="void",lU="mixins",gT=92783,AT=215,zu="body_expression",pU="%ni",$3=">",Ku="jsx_child",PT=8516,Bu="optional_indexed_access_type",Wu="typeof_type",Zu="spread_element",NT=42963,dU="@[",$u="component_params",CT=43042,p8="",Fu="function_",d8="for",y8=65575,pn="params",IT=168,yU="win32",wv=8202,mU="@",m8="^",OT=164,nt="optional",RT=65574,F3="boolean",kU=139,LT=12548,k8=120539,hU="Not_found",h8=246,Qu="expression_statement",MT="EBADF",DT=66815,Gu="module_ref_literal",UT=55203,qu="function_param_type",jT=73064,_8=70279,JT=110580,_U=233,XT="<",wU="visit_leading_comment",YT=66855,VT=66966,zT=66499,KT=111355,BT=68680,WT=206,TU="--",ZT=65497,w8=11711,Hu="function_param_pattern",Tv="constructor",$T=5760,SU="infinity",T8=43642,cC0="fs",FT=92991,S8=126544,QT=101640,E8=72162,GT=67583,g8=8468,D2="typeParameters",EU="elements",qT=71423,gU="Sys_blocked_io",bu="interface_declaration",xi="variable_declaration",ri="function_rest_param",ei="type",HT="Invalid number ",bT=" : flags Open_rdonly and Open_wronly are not compatible",xS=69404,ti="jsx_element_name_member_expression",A8="keyof",AU=285,P8="never",ni="with_",dn=32768,PU="|=",N8=70404,C8=70441,rS=42969,Q3="declare",eS=73061,ui="object_type",ii="object_property_value_type",tS=69687,NU="Invalid binary/octal ",CU=230,nS=64324,IU="range",OU="infer",uS=120744,fi="array_element",iS=70730,fS=43641,RU=166,cS=70461,sS=69890,oS=69487,vS=74862,aS=68149,I8=73065,LU="%a",lS=72348,MU=172,ci="jsx_expression",pS=65663,dS=126495,yS=245,mS=124907,si="member_property_identifier",DU=226,kS=43615,oi="comment",O8=119965,vi="catch_clause_pattern",ai="object_type_property_getter",UU=136,hS=43019,_S=67455,R8=126628,jU=331416730,JU="the start of a statement",wS=122654,TS="shorthand",SS=43595,ES=11710,li="typeof_qualified_identifier",gS=72750,XU="elementType",i2="typeAnnotation",AS=124895,YU=162,L8=11559,PS=67382,VU="??=",NS=72329,CS="target",pi="component_type",zU=180,IS=189,KU=8206,OS=43513,RS=173823,LS=126467,di="type_guard",MS=43700,DS=12783,M8=8305,yi="type_annotation",BU=141,Me="break",D8=42999,US=65019,jS=160,JS=70460,mi="expression_or_spread",XS=")",ki="class_private_field",YS=55215,VS=65338,zS=40981,G3="members",hi="import_declaration",KS=69634,U8=94031,BS="ENOENT",WS=8457,WU="satisfies",_i="generic_identifier_type",wi="function_this_param",ZS=66993,Ti="type_",$S=67423,FS=11557,QS=12799,GS=239,qS=93026,HS=66377,bS=123180,ZU=221,$U=-594953737,xE=67967,rE=43586,De=105,FU="src/parser/flow_lexer.ml",eE=66559,Si="class_property_value",tE=67637,QU="closedir",nE=43010,uE=8521,j8=69956,iE=42959,fE=212,cE=92735,J8="}",q3="method",sE=11498,X8=247,se="empty",Ei=16777215,GU=161,oE=42887,Ns=116,gi="type_identifier_reference",Y8=126634,vE=68029,qU="regexp",aE=70414,H3=121,Ai="template_literal_element",lE=8449,pE=126562,Sv=12287,dE=-45,V8=64297,z8=126523,yE=43301,Ot=111,mE=126498,kE=43776,HU="EEXIST",hE=119892,_E=43807,bU=4096,Ea=252,Cs=255,wE=68295,Pi="variable_declarator_pattern",Ni="do_while",K8="catch",TE=66962,SE=120654,Ci=125,Ii="label_identifier",EE=11263,gE=8525,Oi="assignment",AE=191456,PE=43273,xj="%u",NE=65381,CE=110927,IE=65479,OE=120538,Ev="await",RE=71487,LE="jsError",ME=110588,DE=120084,UE=42890,ga=224,Ri="object_key",jE=43696,JE=73647,XE=43761,YE=12295,VE=64967,B8=11647,rj=191,Rt=123,zE="generator",KE=123583,Li="for_of_statement",Mi="enum_bigint_body",BE=110959,WE=92995,ZE=120686,$E="b",FE=119969,W8=126522,Z8=64318,QE=71839,$8=126602,GE=65908,b3=65536,ej=231,tj=-602162310,nj="comment_bounds",Lt="-",uj=-55,Di="pattern_object_property",qE=43493,HE=69505,bE=8471,xg=187,F8=120745,Ui="enum_member_identifier",rg=71959,eg=66863,tg=65594,Q8=253,G8='"',q8=70286,ji="jsx_attribute_value_literal",ng=68447,ij="the",ug="index out of bounds",Ji="declare_export_declaration",Xi="jsx_attribute",Yi="class_extends",Hr=122,l2=106,Vi="binding_pattern",zi="ts_type_cast",ig=113807,fg=93951,xl=119,cg="types",sg=8335,Ki="statement_fork_point",Aa="_",og=65500,Bi="function_type",vg=68220,Wi="statement_list",Pa=-835925911,ag=123535,H8=43815,lg=199,b8=120571,pg=67514,fj="Property",x5=72713,cj="Unexpected ",r5=169,sj=", characters ",e5=43867,dg=42537,Zi="component_declaration",oj=" : is a directory",$i="object_key_number_literal",Yr=127,f2=-36,rl=912068366,el="delete",ut=114,yg=120076,Fi="regexp_literal",mg=65370,kg=65481,v1="value",hg=68405,tl="operator",nl="const",vj=283,Is=109,t5="any",_g=69958,wg=70831,Tg=73111,Sg=72767,Eg="Identifier",Qi="jsx_opening_attribute",Gi="conditional_type",gg="loc",Ag=67071,n5=120004,Pg=43492,Ng=70005,aj=188,u5=72272,Cg=11389,lj=251,Ig=73055,i5=70280,pj=286,f5=1114111,Og=66421,dj="Stack_overflow",Rg=70301,Lg=19903,mo="0x",Mg=69967,Dg=12447,c5=66512,yj=`Fatal error: exception %s +`,ul=1e3,Ug=69295,s5=120093,mj=">=",kj=149,o5=64325,qi="class_identifier",jg=119967,Jg=68415,hj="end",Hi="enum_boolean_body",bi="member_private_name",xf="super_expression",Xg=71955,Yg=126514,v5=67593,Vg=66939,zg=12591,a5=126538,Kg=110590,Bg=72703,Wg=72105,l5=65598,Zg=73727,p5=126504,d5=126551,$g=70143,il="from",rf="class_property",ef="enum_number_body",Fg=42559,Qg=93759,Gg=66994,yn="right",_j=225,qg=67702,Hg=65473,bg=43697,y5=70855,xA=119993,rA=72103,eA=178205,tf="call_type_args",tA=66511,nf="export_batch_specifier",uf="component_type_param",mn=782176664,gv="get",fl="local",wj=228,ff="object_mapped_type_property",cf="class_decorator",Tj=220,sf="enum_body",Sj="<<=",nA=71956,uA=69839,Na="super",iA=173791,fA=71942,F1="expression",cA=72440,Ca=254,sA=70412,of="try_catch",Ej=32752,vf="declare_module_exports",oA=12320,gj=134,vA=94175,cl="enum",Aj=196,af="import_source",aA=43814,lA=120069,lf="while_",m5=126537,pA=43262,pf="function_rest_param_type",dA=66378,k5=119996,df="declare_component",yA=73097,mA=70783,kA=43503,hA=131071,_A=11492,wA=92766,Pj=173,TA=113770,SA=73029,EA=66978,yf="tagged_template",mf="jsx_element_name",kf="for_init_declaration",gA=123213,hf="object_indexer_property_type",_f="object_spread_property_type",h5=72970,_5=70854,AA=110930,sl="var",Nj=217,PA=119972,NA=69622,CA=63743,IA=42237,OA=870530776,w5="returnType",Cj=56320,Ij=143,Ia="computed",RA=42735,wf="arg_list",LA=67461,Tf="export_named_declaration",MA=72817,DA=73439,UA=43782,jA=66775,JA=70655,T5="bool",XA=65140,YA=75075,VA=126651,zA=71947,KA=42961,BA=12735,WA=78894,ZA=64262,$A=237,Q2="interface",Oj="Match_failure",FA=42962,QA=69748,Rj="leadingComments",Sf="this_expression",ol=461894857,S5=12592,Lj=8204,GA=119807,qA=66348,Ef="declare_variable",HA=8348,gf="optional_member",Af=120,Pf="arrow_function",bA=72768,xP=70851,Nf="array",rP=43249,E5=126468,eP=177983,tP="compare: functional value",nP=126550,uP=64847,Cf="binding_type_identifier",iP=120132,If="function_params",fP=93071,vl=1024,cP=42783,Mj=1039100673,Dj="@{",sP=12352,oP=42653,vP=120628,Uj=264,Of="declare_function",Rf="for_in_statement_lhs",aP=72271,lP=69807,pP=67826,Lf="syntax_opt",Mf="object_key_bigint_literal",jj=243,dP=94032,Jj=265,Xj="Undefined_recursive_module",Yj=-1053382366,yP=72242,Df="variance_opt",mP=101631,kP="arguments",hP=72161,_P=8511,g5="unknown",wP=43560,Vj="the end of an expression statement (`;`)",zj=1026,TP=12543,SP=11670,Kj="?",EP=69247,A5=11631,P5="line",gP=72202,Uf="pattern_object_rest_property",Mt=" ",AP=43487,Os=115,PP=-673950933,jf="intersection_type",NP=120144,al="is",CP=178207,IP=100343,Bj="||=",Wj="f",N5=8455,Jf=102,Xf="pattern_object_property_number_literal_key",OP=70418,RP=8543,Zj="Internal Error: Found private field in object props",C5=126540,I5=119995,Av=8287,Yf="indexed_access_type",Vf="export_named_specifier",$j=224,LP=124926,MP=-103,DP=167,O5=65344,R5=126530,UP=113788,jP=67505,JP="property",XP=43014,Ue="return",ko=-85,YP=126601,Fj=214,Qj="children",zf="type_alias",L5=43259,VP=126583,zP=71958,KP=65613,BP=67431,M5=126535,WP=69599,Kf="type_params",Bf="object_key_computed",ZP=124910,U2="variance",D5=11727,$P=66954,FP=126463,Wf="catch_body",QP=69445,Zf="type_param",$f="component_type_params",GP=124902,U5=120687,Gj="collect_comments_opt",qP=15,HP=120485,bP=70416,xN=125259,Ff="jsx_namespaced_name",rN=43712,eN=72712,qj="~",j5=12448,Qf="jsx_member_expression_object",J5=126499,X5=-97,Gf="pattern_object_property_identifier_key",Hj=219,qf="component_body",Hf="opaque_type",bf=".",tN=43009,nN="consequent",bj="SpreadElement",D1="body",xJ=178,rJ=202,xc="jsx_opening_element",rc="declare_module",Y5=67638,uN=8477,ec="object_type_property",iN=110882,tc="function_body",fN=94111,eJ="module",tJ="alternate",cN=67839,Pv=8191,sN=43881,nJ=": closedir failed",ho="kind",nc="tuple_labeled_element",Nv=-46,oN=67640,uc="declare_type_alias",V5=70750,vN=77808,ll="column",ic="jsx_closing_element",aN=66977,lN="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",pN=65786,fc="function_expression",Dt=104,z5=11719,dN=11505,yN="mkdir",mN=70319,uJ="Invalid_argument",kN=43738,hN=113817,cc="bigint_literal",_N=70084,iJ=278,wN=126566,K5="do",B5=42622,sc="computed_key",oc="pattern_object_property_computed_key",fJ="fd ",W5=126571,TN=126619,cJ=140,_o="prototype",sJ=208,SN=67004,oJ=130,vJ=242,aJ=">>>=",EN=68863,gN=11726,Ut="raw",AN=64466,G2=107,PN=67679,vc="enum_string_body",Z5=244,lJ="unreachable jsxtext",pJ="*",NN=66335,CN=126570,dJ=229,IN=" : file already exists",ON=184,RN=67807,LN=70753,ac="boolean_literal",MN=65437,DN=70451,UN=67002,Oa=124,lc="conditional",$5=43260,yJ="Sys_error",jN=123135,pl="meta",JN=64109,pc="pattern_array_rest_element",XN=43255,F5=67644,dc="pattern_object_rest_property_pattern",yc="sequence",YN=65855,VN=110951,zN=67643,mc="predicate_expression",je="static",KN=120512,BN="declaration",Q5=64317,WN=68437,G5=126558,kc="meta_property",ZN=11564,hc="declare_enum",kn="pattern",$N=216,FN=68191,q5="undefined",H5=8319,b5=120133,mJ=132,QN=42239,kJ=-99,GN=124927,qN=120092,HN=43137,_c="component_rest_param",hJ=144,_J="expected *",bN=125251,wJ="%li",xC=55242,rC=12294,wc="enum_number_member",wo="in",TJ="\\\\",Cv=":",eC=68115,SJ="Cygwin",tC=77823,nC=65615,xd=70162,EJ="/static/",uC=11519,iC=72966,fC=12686,gJ=165,rd=183,dl=129,ed=72192,cC=42964,td="try",nd=120655,sC=11702,AJ="expressions",oC=2048,Tc="class_body",vC=55238,PJ=240,aC=66915,lC=43311,pC=43018,NJ=235,dC=73648,CJ="([^/]+)",yC=125258,mC=64829,kC=68735,IJ="++",OJ=163,RJ="qualification",LJ=57343,MJ=931,Sc="default_opt",hC=71235,DJ=8472,_C=71934,UJ=205,jJ=218,JJ="callee",wC=43711,TC=64284,SC=43754,EC=43790,XJ="%Li",Ec="pattern_array_rest_element_pattern",ud="decorators",gC=8304,gc="statement",id=73062,Ac="jsx_children",AC=70492,PC=64255,NC=11630,CC=1255,fd=67592,cd=43519,sd=64311,od=12539,IC="proto",vd=120513,OC=68031,Iv="source",yl="a",RC=93047,LC=92927,MC=126588,DC=73458,UC=67742,jC=43714,YJ=236,JC=-253313196,ml="label",VJ="@[<2>{ ",ad=126539,ld=126552,XC=120487,zJ="Out_of_memory",YC=605857695,VC=94026,pd=126496,To="async",KJ=203,dd=126560,zC=68287,Pc="unary_expression",KC=-26065557,BC=110587,BJ=280,yd=120771,WC=69762,ZC=126502,Ra="set",Nc="object_",Cc="template_literal",$C=43258,Ic="nullable_type",Rs="int_of_string",WJ="^=",Je="predicate",La="string",md=8450,ZJ="camlinternalMod.ml",FC=70285,Ls="+",QC=110575,$J=198,Oc="extends",FJ=-692038429,kd=67827,QJ=210,GJ=227,hd="explicitType",_d=70452,GC=70497,Ma=63,kl="private",qC=64296,HC=67591,bC=92909,qJ="T_JSX_TEXT",xI="Fatal error: exception ",rI=120137,wd=68120,Rc="pattern_array_e",eI=119964,tI=92862,nI=66461,HJ="&&=",bJ=174,c2=8231,Lc="null_literal",xX="/=",uI=66811,Td=70108,iI=67504,fI=11686,cI=67001,sI=" : flags Open_text and Open_binary are not compatible",oI=43741,vI=66204,Q1=8233,Mc="type_annotation_hint",aI=123197,Dc="object_property",rX="${",Sd=70480,eX="&&",Uc="type_cast",hl="%d",Ed=8484,tX=207,lI=70066,pI=68324,gd=120713,nX=135,Ad=126556,q2="0",j2="yield",Pd=126591,it=100,dI=69551,jc="jsx_element_name_namespaced",uX=232,Jc="object_key_string_literal",Xc="function_this_param_type",Yc="pattern_object_property_pattern",Xe="throw",Ye="switch",iX=2048,Nd=119970,Vc="toplevel_statement_list",Ov=250,yI=12438,zc="class_implements",Kc="variable_declarator",mI=43713,Cd=68096,kI=70457,hI=12538,_I=11734,fX="-=",cX=234,Bc="component_param_name",wI=43123,Wc="class_",sX="|",oX=200,TI=43518,SI=8483,Zc="jsx_attribute_name_identifier",EI=181;function fW(x,r,e,t,u){if(t<=r)for(var i=1;i<=u;i++)e[t+i]=x[r+i];else for(var i=u;i>=1;i--)e[t+i]=x[r+i];return 0}function cW(x){for(var r=[0];x!==0;){for(var e=x[1],t=1;t=e.l||e.t==2&&u>=e.c.length))e.c=x.t==4?Id(x.c,r,u):r==0&&x.c.length==u?x.c:x.c.substr(r,u),e.t=e.c.length==e.l?0:2;else if(e.t==2&&t==e.c.length)e.c+=x.t==4?Id(x.c,r,u):r==0&&x.c.length==u?x.c:x.c.substr(r,u),e.t=e.c.length==e.l?0:2;else{e.t!=4&&Od(e);var i=x.c,f=e.c;if(x.t==4)if(t<=r)for(var o=0;o=0;o--)f[t+o]=i[r+o];else{for(var l=Math.min(u,i.length-r),o=0;o>=1,x==0)return e;r+=r,t++,t==9&&r.slice(0,1)}}function Rd(x){x.t==2?x.c+=Da(x.l-x.c.length,"\0"):x.c=Id(x.c,0,x.c.length),x.t=0}function gI(x){if(x.length<24){for(var r=0;rYr)return!1;return!0}else return!/[^\x00-\x7f]/.test(x)}function vX(x){for(var r=kx,e=kx,t,u,i,f,o=0,l=x.length;oaw?(e.substr(0,1),r+=e,e=kx,r+=x.slice(o,d)):e+=x.slice(o,d),d==l)break;o=d}f=1,++o=55295&&f<57344)&&(f=2)):(f=3,++o1114111)&&(f=3)))))),f<4?(o-=f,e+="\uFFFD"):f>sn?e+=String.fromCharCode(55232+(f>>10),Cj+(f&1023)):e+=String.fromCharCode(f),e.length>vl&&(e.substr(0,1),r+=e,e=kx)}return r+e}function Ds(x,r,e){this.t=x,this.c=r,this.l=e}Ds.prototype.toString=function(){switch(this.t){case 9:return this.c;default:Rd(this);case 0:if(gI(this.c))return this.t=9,this.c;this.t=8;case 8:return this.c}},Ds.prototype.toUtf16=function(){var x=this.toString();return this.t==9?x:vX(x)},Ds.prototype.slice=function(){var x=this.t==4?this.c.slice():this.c;return new Ds(this.t,x,this.l)};function aX(x){return new Ds(0,x,x.length)}function sC0(x){return x}function $c(x){return aX(x)}function Fc(x,r,e,t,u){return Ms($c(x),r,e,t,u),0}function lX(x){var r=p0.process;if(r&&r.env&&r.env[x]!=null)return r.env[x];if(p0.jsoo_static_env&&p0.jsoo_static_env[x])return p0.jsoo_static_env[x]}var AI=0;(function(){var x=lX("OCAMLRUNPARAM");if(x!==void 0)for(var r=x.split(YM),e=0;e>>0>=x.l&&aW(),Kr(x,r,e)}function oe(x,r){switch(x.t&6){default:if(r>=x.c.length)return 0;case 0:return x.c.charCodeAt(r);case 4:return x.c[r]}}function Us(x,r){var e=x.l>=0?x.l:x.l=x.length,t=r.length,u=e-t;if(u==0)return x.apply(null,r);if(u<0){var i=x.apply(null,r.slice(0,e));return typeof i!="function"?i:Us(i,r.slice(e))}else{switch(u){case 1:{var i=function(l){for(var d=new Array(t+1),k=0;k>>0>=x.length-1&&_l(),x}function lW(x){return isFinite(x)?Math.abs(x)>=22250738585072014e-324?0:x!=0?1:2:isNaN(x)?4:3}function pW(x){return 0}var dW=Math.log2&&Math.log2(11235582092889474e291)==1020;function yW(x){if(dW)return Math.floor(Math.log2(x));var r=0;if(x==0)return-1/0;if(x>=1)for(;x>=2;)x/=2,r++;else for(;x<1;)x*=2,r--;return r}function NI(x){var r=new Float32Array(1);r[0]=x;var e=new Int32Array(r.buffer);return e[0]|0}var pX=Math.pow(2,-24);function dX(x){throw x}function yX(){dX(J2.Division_by_zero)}function fr(x,r,e){this.lo=x&Ei,this.mi=r&Ei,this.hi=e&sn}fr.prototype.caml_custom="_j",fr.prototype.copy=function(){return new fr(this.lo,this.mi,this.hi)},fr.prototype.ucompare=function(x){return this.hi>x.hi?1:this.hix.mi?1:this.mix.lo?1:this.loe?1:rx.mi?1:this.mix.lo?1:this.lo>24),e=-this.hi+(r>>24);return new fr(x,r,e)},fr.prototype.add=function(x){var r=this.lo+x.lo,e=this.mi+x.mi+(r>>24),t=this.hi+x.hi+(e>>24);return new fr(r,e,t)},fr.prototype.sub=function(x){var r=this.lo-x.lo,e=this.mi-x.mi+(r>>24),t=this.hi-x.hi+(e>>24);return new fr(r,e,t)},fr.prototype.mul=function(x){var r=this.lo*x.lo,e=(r*pX|0)+this.mi*x.lo+this.lo*x.mi,t=(e*pX|0)+this.hi*x.lo+this.mi*x.mi+this.lo*x.hi;return new fr(r,e,t)},fr.prototype.isZero=function(){return(this.lo|this.mi|this.hi)==0},fr.prototype.isNeg=function(){return this.hi<<16<0},fr.prototype.and=function(x){return new fr(this.lo&x.lo,this.mi&x.mi,this.hi&x.hi)},fr.prototype.or=function(x){return new fr(this.lo|x.lo,this.mi|x.mi,this.hi|x.hi)},fr.prototype.xor=function(x){return new fr(this.lo^x.lo,this.mi^x.mi,this.hi^x.hi)},fr.prototype.shift_left=function(x){return x=x&63,x==0?this:x<24?new fr(this.lo<>24-x,this.hi<>24-x):x<48?new fr(0,this.lo<>48-x):new fr(0,0,this.lo<>x|this.mi<<24-x,this.mi>>x|this.hi<<24-x,this.hi>>x):x<48?new fr(this.mi>>x-24|this.hi<<48-x,this.hi>>x-24,0):new fr(this.hi>>x-48,0,0)},fr.prototype.shift_right=function(x){if(x=x&63,x==0)return this;var r=this.hi<<16>>16;if(x<24)return new fr(this.lo>>x|this.mi<<24-x,this.mi>>x|r<<24-x,this.hi<<16>>x>>>16);var e=this.hi<<16>>31;return x<48?new fr(this.mi>>x-24|this.hi<<48-x,this.hi<<16>>x-24>>16,e&sn):new fr(this.hi<<16>>x-32,e,e)},fr.prototype.lsl1=function(){this.hi=this.hi<<1|this.mi>>23,this.mi=(this.mi<<1|this.lo>>23)&Ei,this.lo=this.lo<<1&Ei},fr.prototype.lsr1=function(){this.lo=(this.lo>>>1|this.mi<<23)&Ei,this.mi=(this.mi>>>1|this.hi<<23)&Ei,this.hi=this.hi>>>1},fr.prototype.udivmod=function(x){for(var r=0,e=this.copy(),t=x.copy(),u=new fr(0,0,0);e.ucompare(t)>0;)r++,t.lsl1();for(;r>=0;)r--,u.lsl1(),e.ucompare(t)>=0&&(u.lo++,e=e.sub(t)),t.lsr1();return{quotient:u,modulus:e}},fr.prototype.div=function(x){var r=this;x.isZero()&&yX();var e=r.hi^x.hi;r.hi&dn&&(r=r.neg()),x.hi&dn&&(x=x.neg());var t=r.udivmod(x).quotient;return e&dn&&(t=t.neg()),t},fr.prototype.mod=function(x){var r=this;x.isZero()&&yX();var e=r.hi;r.hi&dn&&(r=r.neg()),x.hi&dn&&(x=x.neg());var t=r.udivmod(x).modulus;return e&dn&&(t=t.neg()),t},fr.prototype.toInt=function(){return this.lo|this.mi<<24},fr.prototype.toFloat=function(){return(this.hi<<16)*Math.pow(2,32)+this.mi*Math.pow(2,24)+this.lo},fr.prototype.toArray=function(){return[this.hi>>8,this.hi&Cs,this.mi>>16,this.mi>>8&Cs,this.mi&Cs,this.lo>>16,this.lo>>8&Cs,this.lo&Cs]},fr.prototype.lo32=function(){return this.lo|(this.mi&Cs)<<24},fr.prototype.hi32=function(){return this.mi>>>8&sn|this.hi<<16};function Ld(x,r,e){return new fr(x,r,e)}function Md(x){if(!isFinite(x))return isNaN(x)?Ld(1,0,Ej):x>0?Ld(0,0,Ej):Ld(0,0,65520);var r=x==0&&1/x==-1/0?dn:x>=0?0:dn;r&&(x=-x);var e=yW(x)+1023;e<=0?(e=0,x/=Math.pow(2,-zj)):(x/=Math.pow(2,e-QM),x<16&&(x*=2,e-=1),e==0&&(x/=2));var t=Math.pow(2,24),u=x|0;x=(x-u)*t;var i=x|0;x=(x-i)*t;var f=x|0;return u=u&qP|r|e<<4,Ld(f,i,u)}function wl(x){return x.toArray()}function mX(x,r,e){if(x.write(32,r.dims.length),x.write(32,r.kind|r.layout<<8),r.caml_custom==ep)for(var t=0;t>4;if(u==nU)return r|e|t&qP?NaN:t&dn?-1/0:1/0;var i=Math.pow(2,-24),f=(r*i+e)*i+(t&qP);return u>0?(f+=16,f*=Math.pow(2,u-QM)):f*=Math.pow(2,-zj),t&dn&&(f=-f),f}function OI(x){for(var r=x.length,e=1,t=0;t>>24&Cs|(r&sn)<<8,r>>>16&sn)}function RI(x){return x.hi32()}function LI(x){return x.lo32()}var hW=ep;function So(x,r,e,t){this.kind=x,this.layout=r,this.dims=e,this.data=t}So.prototype.caml_custom=hW,So.prototype.offset=function(x){var r=0;if(typeof x=="number"&&(x=[x]),x instanceof Array||G1("bigarray.js: invalid offset"),this.dims.length!=x.length&&G1("Bigarray.get/set: bad number of dimensions"),this.layout==0)for(var e=0;e=this.dims[e])&&_l(),r=r*this.dims[e]+x[e];else for(var e=this.dims.length-1;e>=0;e--)(x[e]<1||x[e]>this.dims[e])&&_l(),r=r*this.dims[e]+(x[e]-1);return r},So.prototype.get=function(x){switch(this.kind){case 7:var r=this.data[x*2+0],e=this.data[x*2+1];return kW(r,e);case 10:case 11:var t=this.data[x*2+0],u=this.data[x*2+1];return[Ca,t,u];default:return this.data[x]}},So.prototype.set=function(x,r){switch(this.kind){case 7:this.data[x*2+0]=LI(r),this.data[x*2+1]=RI(r);break;case 10:case 11:this.data[x*2+0]=r[1],this.data[x*2+1]=r[2];break;default:this.data[x]=r;break}return 0},So.prototype.fill=function(x){switch(this.kind){case 7:var r=LI(x),e=RI(x);if(r==e)this.data.fill(r);else for(var t=0;tf)return 1;if(i!=f){if(!r)return NaN;if(i==i)return 1;if(f==f)return-1}}break;case 7:for(var u=0;ux.data[u+1])return 1;if(this.data[u]>>>0>>0)return-1;if(this.data[u]>>>0>x.data[u]>>>0)return 1}break;case 2:case 3:case 4:case 5:case 6:case 8:case 9:case 12:for(var u=0;ux.data[u])return 1}break}return 0};function ja(x,r,e,t){this.kind=x,this.layout=r,this.dims=e,this.data=t}ja.prototype=new So,ja.prototype.offset=function(x){return typeof x!="number"&&(x instanceof Array&&x.length==1?x=x[0]:G1("Ml_Bigarray_c_1_1.offset")),(x<0||x>=this.dims[0])&&_l(),x},ja.prototype.get=function(x){return this.data[x]},ja.prototype.set=function(x,r){return this.data[x]=r,0},ja.prototype.fill=function(x){return this.data.fill(x),0};function hX(x,r,e,t){var u=kX(x);return OI(e)*u!=t.length&&G1("length doesn't match dims"),r==0&&e.length==1&&u==1?new ja(x,r,e,t):new So(x,r,e,t)}function X2(x){J2.Failure||(J2.Failure=[Gr,Q_,-3]),PI(J2.Failure,x)}function _X(x,r,e){var t=x.read32s();(t<0||t>16)&&X2("input_value: wrong number of bigarray dimensions");var u=x.read32s(),i=u&Cs,f=u>>8&1,o=[];if(e==ep)for(var l=0;l>>32-15,r=TX(r,461845907),x^=r,x=x<<13|x>>>32-13,(x+(x<<2)|0)+-430675100|0}function _W(x,r){return x=js(x,LI(r)),x=js(x,RI(r)),x}function SX(x,r){return _W(x,Md(r))}function EX(x){var r=OI(x.dims),e=0;switch(x.kind){case 2:case 3:case 12:r>hv&&(r=hv);var t=0,u=0;for(u=0;u+4<=x.data.length;u+=4)t=x.data[u+0]|x.data[u+1]<<8|x.data[u+2]<<16|x.data[u+3]<<24,e=js(e,t);switch(t=0,r&3){case 3:t=x.data[u+2]<<16;case 2:t|=x.data[u+1]<<8;case 1:t|=x.data[u+0],e=js(e,t)}break;case 4:case 5:r>m1&&(r=m1);var t=0,u=0;for(u=0;u+2<=x.data.length;u+=2)t=x.data[u+0]|x.data[u+1]<<16,e=js(e,t);r&1&&(e=js(e,x.data[u]));break;case 6:r>64&&(r=64);for(var u=0;u64&&(r=64);for(var u=0;u32&&(r=32),r*=2;for(var u=0;u64&&(r=64);for(var u=0;u32&&(r=32);for(var u=0;u0?u(r,x,t):u(x,r,t);if(t&&i!=i)return e;if(+i!=+i)return+i;if(i|0)return i|0}return e}function DI(x){return typeof x=="string"&&!/[^\x00-\xff]/.test(x)}function UI(x){return x instanceof Ds}function PX(x){if(typeof x=="number")return ul;if(UI(x))return Ea;if(DI(x))return 1252;if(x instanceof Array&&x[0]===x[0]>>>0&&x[0]<=z3){var r=x[0]|0;return r==Ca?0:r}else{if(x instanceof String)return cD;if(typeof x=="string")return cD;if(x instanceof Number)return ul;if(x&&x.caml_custom)return CC;if(x&&x.compare)return 1256;if(typeof x=="function")return 1247;if(typeof x=="symbol")return 1251}return 1001}function jt(x,r){return xr?1:0}function PW(x,r){return x.t&6&&Rd(x),r.t&6&&Rd(r),x.cr.c?1:0}function Dd(x,r,e){for(var t=[];;){if(!(e&&x===r)){var u=PX(x);if(u==Ov){x=x[1];continue}var i=PX(r);if(i==Ov){r=r[1];continue}if(u!==i)return u==ul?i==CC?AX(x,r,-1,e):-1:i==ul?u==CC?AX(r,x,1,e):1:ur)return 1;if(x!=r){if(!e)return NaN;if(x==x)return 1;if(r==r)return-1}break;case 1001:if(xr)return 1;if(x!=r){if(!e)return NaN;if(x==x)return 1;if(r==r)return-1}break;case 1251:if(x!==r)return e?1:NaN;break;case 1252:var x=x,r=r;if(x!==r){if(xr)return 1}break;case 12520:var x=x.toString(),r=r.toString();if(x!==r){if(xr)return 1}break;case 246:case 254:default:if(pW(u)){G1("compare: continuation value");break}if(x.length!=r.length)return x.length1&&t.push(x,r,1);break}}if(t.length==0)return 0;var l=t.pop();r=t.pop(),x=t.pop(),l+10)if(r==0&&(e>=x.l||x.t==2&&e>=x.c.length))t==0?(x.c=kx,x.t=2):(x.c=Da(e,String.fromCharCode(t)),x.t=e==x.l?0:2);else for(x.t!=4&&Od(x),e+=r;r0&&r===r||(x=x.replace(/_/g,kx),r=+x,x.length>0&&r===r||/^[+-]?nan$/i.test(x)))return r;var e=/^ *([+-]?)0x([0-9a-f]+)\.?([0-9a-f]*)(p([+-]?[0-9]+))?/i.exec(x);if(e){var t=e[3].replace(/0+$/,kx),u=parseInt(e[1]+e[2]+t,16),i=(e[5]|0)-4*t.length;return r=u*Math.pow(2,i),r}if(/^\+?inf(inity)?$/i.test(x))return 1/0;if(/^-inf(inity)?$/i.test(x))return-1/0;X2("float_of_string")}function JI(x){x=x;var r=x.length;r>31&&G1("format_int: format too long");for(var e={justify:Ls,signstyle:Lt,filler:Mt,alternate:!1,base:0,signedconv:!1,width:0,uppercase:!1,sign:1,prec:-1,conv:Wj},t=0;t=0&&u<=9;)e.width=e.width*10+u,t++;t--;break;case".":for(e.prec=0,t++;u=x.charCodeAt(t)-48,u>=0&&u<=9;)e.prec=e.prec*10+u,t++;t--;case"d":case"i":e.signedconv=!0;case"u":e.base=10;break;case"x":e.base=16;break;case"X":e.base=16,e.uppercase=!0;break;case"o":e.base=8;break;case"e":case"f":case"g":e.signedconv=!0,e.conv=u;break;case"E":case"F":case"G":e.signedconv=!0,e.uppercase=!0,e.conv=u.toLowerCase();break}}return e}function XI(x,r){x.uppercase&&(r=r.toUpperCase());var e=r.length;x.signedconv&&(x.sign<0||x.signstyle!=Lt)&&e++,x.alternate&&(x.base==8&&(e+=1),x.base==16&&(e+=2));var t=kx;if(x.justify==Ls&&x.filler==Mt)for(var u=e;u20?(g-=20,k/=Math.pow(10,g),k+=new Array(g+1).join(q2),h>0&&(k=k+bf+new Array(h+1).join(q2)),k):k.toFixed(h)}var t,u=JI(x),i=u.prec<0?6:u.prec;if((r<0||r==0&&1/r==-1/0)&&(u.sign=-1,r=-r),isNaN(r))t=Dk,u.filler=Mt;else if(!isFinite(r))t="inf",u.filler=Mt;else switch(u.conv){case"e":var t=r.toExponential(i),f=t.length;t.charAt(f-3)==vh&&(t=t.slice(0,f-1)+q2+t.slice(f-1));break;case"f":t=e(r,i);break;case"g":i=i||1,t=r.toExponential(i-1);var o=t.indexOf(vh),l=+t.slice(o+1);if(l<-4||r>=1e21||r.toFixed(0).length>i){for(var f=o-1;t.charAt(f)==q2;)f--;t.charAt(f)==bf&&f--,t=t.slice(0,f+1)+t.slice(o),f=t.length,t.charAt(f-3)==vh&&(t=t.slice(0,f-1)+q2+t.slice(f-1));break}else{var d=i;if(l<0)d-=l+1,t=r.toFixed(d);else for(;t=r.toFixed(d),t.length>i+1;)d--;if(d){for(var f=t.length-1;t.charAt(f)==q2;)f--;t.charAt(f)==bf&&f--,t=t.slice(0,f+1)}}break}return XI(u,t)}function jd(x,r){if(x==hl)return kx+r;var e=JI(x);r<0&&(e.signedconv?(e.sign=-1,r=-r):r>>>=0);var t=r.toString(e.base);if(e.prec>=0){e.filler=Mt;var u=e.prec-t.length;u>0&&(t=Da(u,q2)+t)}return XI(e,t)}var CX=0;function Js(){return CX++}function IX(){return[0]}var Jd=[];function qx(x,r,e){var t=x[1],u=Jd[e];if(u===void 0)for(var i=Jd.length;i>1|1,raw?(e.substr(0,1),r+=e,e=kx,r+=x.slice(i,o)):e+=x.slice(i,o),o==f)break;i=o}t>6),e+=String.fromCharCode(an|t&Ma)):t<55296||t>=LJ?e+=String.fromCharCode($j|t>>12,an|t>>6&Ma,an|t&Ma):t>=56319||i+1==f||(u=x.charCodeAt(i+1))LJ?e+="\xEF\xBF\xBD":(i++,t=(t<<10)+u-56613888,e+=String.fromCharCode(PJ|t>>18,an|t>>12&Ma,an|t>>6&Ma,an|t&Ma)),e.length>vl&&(e.substr(0,1),r+=e,e=kx)}return r+e}function Jt(x){return gI(x)?x:IW(x)}function OW(x,r,e){if(!isFinite(x))return isNaN(x)?Jt(Dk):Jt(x>0?SU:"-infinity");var t=x==0&&1/x==-1/0?1:x>=0?0:1;t&&(x=-x);var u=0;if(x!=0)if(x<1)for(;x<1&&u>-1022;)x*=2,u--;else for(;x>=2;)x/=2,u++;var i=u<0?kx:Ls,f=kx;if(t)f=Lt;else switch(e){case 43:f=Ls;break;case 32:f=Mt;break;default:break}if(r>=0&&r<13){var o=Math.pow(2,r*4);x=Math.round(x*o)/o}var l=x.toString(16);if(r>=0){var d=l.indexOf(bf);if(d<0)l+=bf+Da(r,q2);else{var k=d+1+r;l.length>24&Ei,x>>31&sn)}function LW(x){return x.toInt()}function MW(x){return+x.isNeg()}function VI(x){return x.neg()}function DW(x,r){var e=JI(x);e.signedconv&&MW(r)&&(e.sign=-1,r=VI(r));var t=kx,u=Xd(e.base),i="0123456789abcdef";do{var f=r.udivmod(u);r=f.quotient,t=i.charAt(LW(f.modulus))+t}while(!RW(r));if(e.prec>=0){e.filler=Mt;var o=e.prec-t.length;o>0&&(t=Da(o,q2)+t)}return XI(e,t)}function Xx(x){return x.length}function fx(x,r){return x.charCodeAt(r)}function UW(x,r){return x.add(r)}function jW(x,r){return x.mul(r)}function zI(x,r){return x.ucompare(r)<0}function OX(x){var r=0,e=Xx(x),t=10,u=1;if(e>0)switch(fx(x,r)){case 45:r++,u=-1;break;case 43:r++,u=1;break}if(r+1=48&&x<=57?x-48:x>=65&&x<=90?x-55:x>=97&&x<=Hr?x-87:-1}function Sl(x){var r=OX(x),e=r[0],t=r[1],u=r[2],i=Xd(u),f=new fr(Ei,268435455,sn).udivmod(i).quotient,o=fx(x,e),l=Yd(o);(l<0||l>=u)&&X2(Rs);for(var d=Xd(l);;)if(e++,o=fx(x,e),o!=95){if(l=Yd(o),l<0||l>=u)break;zI(f,d)&&X2(Rs),l=Xd(l),d=UW(jW(i,d),l),zI(d,l)&&X2(Rs)}return e!=Xx(x)&&X2(Rs),u==10&&zI(new fr(0,0,dn),d)&&X2(Rs),t<0&&(d=VI(d)),d}function Vd(x){return x.toFloat()}function ft(x){var r=OX(x),e=r[0],t=r[1],u=r[2],i=Xx(x),f=-1>>>0,o=e=u)&&X2(Rs);var d=l;for(e++;e=u)break;d=u*d+l,d>f&&X2(Rs)}return e!=i&&X2(Rs),d=t*d,u==10&&(d|0)!=d&&X2(Rs),d|0}function JW(x){return x.slice(1)}function er(x){return gI(x)?x:vX(x)}function XW(x){for(var r={},e=1;e=0?x.l:x.l=x.length}function VW(x){return function(){for(var r=YW(x),e=new Array(r),t=0;t1&&t.pop();break;case".":break;case"":break;default:t.push(e[u]);break}return t.unshift(r[0]),t.orig=x,t}var $W=["E2BIG","EACCES","EAGAIN",MT,"EBUSY","ECHILD","EDEADLK","EDOM",HU,"EFAULT","EFBIG","EINTR","EINVAL","EIO","EISDIR","EMFILE","EMLINK","ENAMETOOLONG","ENFILE","ENODEV",BS,"ENOEXEC","ENOLCK","ENOMEM","ENOSPC","ENOSYS",th,WM,"ENOTTY","ENXIO","EPERM","EPIPE","ERANGE","EROFS","ESPIPE","ESRCH","EXDEV","EWOULDBLOCK","EINPROGRESS","EALREADY","ENOTSOCK","EDESTADDRREQ","EMSGSIZE","EPROTOTYPE","ENOPROTOOPT","EPROTONOSUPPORT","ESOCKTNOSUPPORT","EOPNOTSUPP","EPFNOSUPPORT","EAFNOSUPPORT","EADDRINUSE","EADDRNOTAVAIL","ENETDOWN","ENETUNREACH","ENETRESET","ECONNABORTED","ECONNRESET","ENOBUFS","EISCONN","ENOTCONN","ESHUTDOWN","ETOOMANYREFS","ETIMEDOUT","ECONNREFUSED","EHOSTDOWN","EHOSTUNREACH","ELOOP","EOVERFLOW"];function Ys(x,r,e,t){var u=$W.indexOf(x);u<0&&(t==null&&(t=-9999),u=[0,t]);var i=[u,Jt(r||kx),Jt(e||kx)];return i}var DX={};function Eo(x){return DX[x]}function Vs(x,r){throw q0([0,x].concat(r))}function BI(x){return x instanceof Uint8Array||(x=new Uint8Array(x)),new Ds(4,x,x.length)}function UX(x){Dr(x+tp)}function H2(x){this.data=x}H2.prototype=new RX,H2.prototype.constructor=H2,H2.prototype.truncate=function(x){var r=this.data;this.data=w1(x|0),Ms(r,0,this.data,0,x)},H2.prototype.length=function(){return ct(this.data)},H2.prototype.write=function(x,r,e,t){var u=this.length();if(x+t>=u){var i=w1(x+t),f=this.data;this.data=i,Ms(f,0,this.data,0,u)}return Ms(BI(r),e,this.data,x,t),0},H2.prototype.read=function(x,r,e,t){var u=this.length();if(x+t>=u&&(t=u-x),t){var i=w1(t|0);Ms(this.data,x,i,0,t),r.set(LX(i),e)}return t};function Rv(x,r,e){this.file=r,this.name=x,this.flags=e}Rv.prototype.err_closed=function(){Dr(this.name+rU)},Rv.prototype.length=function(){if(this.file)return this.file.length();this.err_closed()},Rv.prototype.write=function(x,r,e,t){if(this.file)return this.file.write(x,r,e,t);this.err_closed()},Rv.prototype.read=function(x,r,e,t){if(this.file)return this.file.read(x,r,e,t);this.err_closed()},Rv.prototype.close=function(){this.file=void 0};function p2(x,r){this.content={},this.root=x,this.lookupFun=r}p2.prototype.nm=function(x){return this.root+x},p2.prototype.create_dir_if_needed=function(x){for(var r=x.split(F2),e=kx,t=0;t0&&e>=0&&e+t<=r.length&&r[e+t-1]==10&&t--;var u=w1(t);return Ms(BI(r),e,u,0,t),this.log(u.toUtf16()),0}Dr(this.fd+rU)},Al.prototype.read=function(x,r,e,t){Dr(this.fd+": file descriptor is write only")},Al.prototype.close=function(){this.log=void 0};function Wd(x,r){return r==null&&(r=Kd.length),Kd[r]=x,r|0}function aC0(x,r,e){for(var t={};r;){switch(r[1]){case 0:t.rdonly=1;break;case 1:t.wronly=1;break;case 2:t.append=1;break;case 3:t.create=1;break;case 4:t.truncate=1;break;case 5:t.excl=1;break;case 6:t.binary=1;break;case 7:t.text=1;break;case 8:t.nonblock=1;break}r=r[2]}t.rdonly&&t.wronly&&Dr(x+bT),t.text&&t.binary&&Dr(x+sI);var u=FW(x),i=u.device.open(u.rest,t);return Wd(i,void 0)}(function(){function x(r,e){return El()?BW(r,e):new Al(r,e)}Wd(x(0,{rdonly:1,altname:"/dev/stdin",isCharacterDevice:!0}),0),Wd(x(1,{buffered:2,wronly:1,isCharacterDevice:!0}),1),Wd(x(2,{buffered:2,wronly:1,isCharacterDevice:!0}),2)})();function QW(x){var r=Kd[x];r.flags.wronly&&Dr(fJ+x+" is writeonly");var e=null,t={file:r,offset:r.flags.append?r.length():0,fd:x,opened:!0,out:!1,buffer_curr:0,buffer_max:0,buffer:new Uint8Array(b3),refill:e};return Xs[t.fd]=t,t.fd}function JX(x){var r=Kd[x];r.flags.rdonly&&Dr(fJ+x+" is readonly");var e=r.flags.buffered!==void 0?r.flags.buffered:1,t={file:r,offset:r.flags.append?r.length():0,fd:x,opened:!0,out:!0,buffer_curr:0,buffer:new Uint8Array(b3),buffered:e};return Xs[t.fd]=t,t.fd}function GW(){for(var x=0,r=0;ru.buffer.length){var f=new Uint8Array(u.buffer_curr+i.length);f.set(u.buffer),u.buffer=f}switch(u.buffered){case 0:u.buffer.set(i,u.buffer_curr),u.buffer_curr+=i.length,Qc(x);break;case 1:u.buffer.set(i,u.buffer_curr),u.buffer_curr+=i.length,u.buffer_curr>=u.buffer.length&&Qc(x);break;case 2:var o=i.lastIndexOf(10);o<0?(u.buffer.set(i,u.buffer_curr),u.buffer_curr+=i.length,u.buffer_curr>=u.buffer.length&&Qc(x)):(u.buffer.set(i.subarray(0,o+1),u.buffer_curr),u.buffer_curr+=o+1,Qc(x),u.buffer.set(i.subarray(o+1),u.buffer_curr),u.buffer_curr+=i.length-o-1);break}return 0}function WI(x,r,e,t){return qW(x,$c(r),e,t)}function XX(x,r){var e=String.fromCharCode(r);return WI(x,e,0,1),0}function Pl(x,r){return+(Dd(x,r,!1)!=0)}function ZI(x,r){var e=new Array(r+1);e[0]=x;for(var t=1;t<=r;t++)e[t]=0;return e}function HW(x,r){return x[0]=Ov,x[1]=r,0}function Lv(x){return x instanceof Array&&x[0]==x[0]>>>0?x[0]:UI(x)||DI(x)?Ea:x instanceof Function||typeof x=="function"?X8:x&&x.caml_custom?z3:ul}function bW(x){for(var r;x;)if(er(x[1][1])=="SYJS"){r=x[1][2];break}else x=x[2];var e={};if(r)for(var t=1;t=0?x=u:X2("caml_register_global: cannot locate "+t)}}J2[x+1]=r,e&&(J2[e]=r)}function $I(x,r){return DX[x]=r,0}function xZ(x){return x[2]=CX++,x}function Ar(x,r){return x===r?1:0}function rZ(){G1(ug)}function N1(x,r){return r>>>0>=Xx(x)&&rZ(),fx(x,r)}function P(x,r){return 1-Ar(x,r)}function eZ(){return 2147483647/4|0}var tZ=p0.process&&p0.process.platform&&p0.process.platform==yU?SJ:"Unix";function nZ(){return[0,tZ,32,0]}function uZ(){dX(J2.Not_found)}function YX(x){var r=lX(er(x));return r===void 0&&uZ(),Jt(r)}function FI(x){for(var r=1;x&&x.joo_tramp;)x=x.joo_tramp.apply(null,x.joo_args),r++;return x}function d2(x,r){return{joo_tramp:x,joo_args:r}}function I0(x,r){if(typeof r=="function")return x.fun=r,0;if(r.fun)return x.fun=r.fun,0;for(var e=r.length;e--;)x[e]=r[e];return 0}function C1(x){{if(x instanceof Array)return x;var r;return p0.RangeError&&x instanceof p0.RangeError&&x.message&&x.message.match(/maximum call stack/i)||p0.InternalError&&x instanceof p0.InternalError&&x.message&&x.message.match(/too much recursion/i)?r=J2.Stack_overflow:x instanceof p0.Error&&Eo(LE)?r=[0,Eo(LE),x]:r=[0,J2.Failure,Jt(String(x))],x instanceof p0.Error&&(r.js_error=x),r}}function iZ(x){switch(x[2]){case-8:case-11:case-12:return 1;default:return 0}}function fZ(x){var r=kx;if(x[0]==0){if(r+=x[1][1],x.length==3&&x[2][0]==0&&iZ(x[1]))var t=x[2],e=1;else var e=2,t=x;r+=MM;for(var u=e;ue&&(r+=MD);var i=t[u];typeof i=="number"?r+=i.toString():i instanceof Ds||typeof i=="string"?r+=G8+i.toString()+G8:r+=Aa}r+=XS}else x[0]==Gr&&(r+=x[1]);return r}function VX(x){if(x instanceof Array&&(x[0]==0||x[0]==Gr)){var r=Eo(nD);if(r)zd(r,[x,!1]);else{var e=fZ(x),t=Eo(GD);if(t&&zd(t,[0]),console.error(xI+e+` +`),x.js_error)throw x.js_error}}else throw x}function cZ(){var x=p0.process;x&&x.on?x.on("uncaughtException",function(r,e){VX(r),x.exit(2)}):p0.addEventListener&&p0.addEventListener("error",function(r){r.error&&VX(r.error)})}cZ();function a(x,r){return(x.l>=0?x.l:x.l=x.length)==1?x(r):Us(x,[r])}function p(x,r,e){return(x.l>=0?x.l:x.l=x.length)==2?x(r,e):Us(x,[r,e])}function H0(x,r,e,t){return(x.l>=0?x.l:x.l=x.length)==3?x(r,e,t):Us(x,[r,e,t])}function ve(x,r,e,t,u){return(x.l>=0?x.l:x.l=x.length)==4?x(r,e,t,u):Us(x,[r,e,t,u])}function Ve(x,r,e,t,u,i){return(x.l>=0?x.l:x.l=x.length)==5?x(r,e,t,u,i):Us(x,[r,e,t,u,i])}function sZ(x,r,e,t,u,i,f,o){return(x.l>=0?x.l:x.l=x.length)==7?x(r,e,t,u,i,f,o):Us(x,[r,e,t,u,i,f,o])}var QI=[Gr,zJ,-1],zX=[Gr,yJ,-2],_n=[Gr,Q_,-3],GI=[Gr,uJ,-4],E2=[Gr,hU,-7],KX=[Gr,Oj,-8],BX=[Gr,dj,-9],wr=[Gr,KM,-11],Nl=[Gr,Xj,-12],oZ=[4,0,0,0,[12,45,[4,0,0,0,0]]],qI=[0,[11,'File "',[2,0,[11,'", line ',[4,0,0,0,[11,sj,[4,0,0,0,[12,45,[4,0,0,0,[11,": ",[2,0,0]]]]]]]]]],'File "%s", line %d, characters %d-%d: %s'],Ya=[0,0,[0,0,0],[0,0,0]],Cl=[0,0,0,0,1,0,0,0],WX=[0,"first_leading","last_trailing"],ZX=[0,wf,Nf,fi,y7,Pf,Oi,ku,cc,D7,Vi,Cf,on,zu,ac,Me,P7,H7,tf,Wf,g7,vi,Wc,Tc,r7,cf,Y7,wu,Yi,qi,zc,W7,gu,ki,rf,Si,oi,qf,Zi,fu,a7,Bc,z7,$u,_c,pi,uf,$f,$n,sc,lc,Gi,Oe,Re,Ju,df,hc,Ji,k7,Of,Yu,rc,vf,uc,Ef,Sc,Ni,se,Mi,x7,sf,Hi,Su,u7,Ou,Ui,ef,wc,vc,Cu,ju,nf,m7,Gn,Tf,p7,Vf,V7,F1,mi,Qu,Qn,K7,l7,Rf,kf,F7,tu,Li,Mu,Eu,su,Fu,tc,q7,Yn,fc,h7,Bn,M7,Hu,qu,If,ri,pf,Vn,wi,Xc,Bi,yu,_i,lu,Au,Ct,w7,i7,S7,M2,hi,uu,Xu,v7,af,vu,Yf,N7,Q2,bu,Hn,jf,Xi,cu,Zc,ru,du,$1,ji,Ku,Ac,ic,t7,mf,hu,ti,jc,ci,L7,f7,xu,Fn,Qf,Ff,Qi,xc,U7,Du,Wn,Ii,R7,zn,iu,bi,ur,c7,si,Lu,kc,Gu,s7,Lc,Ic,Vu,Nc,B7,hf,C7,Ri,Mf,Bf,nu,$i,Jc,ff,Dc,n7,ii,_f,ui,ec,ai,b7,Hf,e7,Bu,gf,kn,Rc,Nu,X7,pc,Ec,A7,Z7,Uu,o7,d7,Di,Iu,oc,Gf,eu,Xf,Yc,_u,Uf,dc,au,Je,mc,ou,Ru,mu,Fi,O7,Ue,yc,Zu,I7,gc,Ki,Wi,_7,xf,Ye,Pu,Q7,Lf,yf,Cc,Ai,Sf,Xe,Vc,of,zi,Tu,nc,Zn,qn,Ti,zf,yi,Mc,T7,Uc,di,Kn,J7,gi,Zf,Kf,G7,E7,j7,li,Wu,Pc,bn,$7,xi,Kc,Pi,U2,Df,lf,ni,j2],wn=[0,0,0];Xt(11,Nl,Xj),Xt(10,wr,KM),Xt(9,[Gr,gU,ID],gU),Xt(8,BX,dj),Xt(7,KX,Oj),Xt(6,E2,hU),Xt(5,[Gr,xU,-6],xU),Xt(4,[Gr,uD,-5],uD),Xt(3,GI,uJ),Xt(2,_n,Q_),Xt(1,zX,yJ),Xt(0,QI,zJ);var vZ="output_substring",aZ=bf,lZ=Ss,pZ=As,dZ="CamlinternalLazy.Undefined",yZ=TJ,mZ="\\'",kZ="\\b",hZ="\\t",_Z="\\n",wZ="\\r",TZ="List.iter2",SZ="tl",EZ="hd",gZ="String.blit / Bytes.blit_string",AZ="Bytes.blit",PZ="String.sub / Bytes.sub",NZ="String.concat",CZ="Array.blit",IZ="Array.sub",OZ="Map.remove_min_elt",RZ=[0,0,0,0],LZ=[0,"map.ml",400,10],MZ=[0,0,0],DZ=J4,UZ=J4,jZ=J4,JZ=J4,XZ="Stdlib.Queue.Empty",YZ="Buffer.add_substring/add_subbytes",VZ="Buffer.add: cannot grow buffer",zZ=[0,xD,93,2],KZ=[0,xD,94,2],BZ="Buffer.sub",WZ="%c",ZZ="%s",$Z=JM,FZ=wJ,QZ=pU,GZ=XJ,qZ="%f",HZ="%B",bZ="%{",x$="%}",r$="%(",e$="%)",t$=LU,n$="%t",u$="%?",i$="%r",f$="%_r",c$=[0,u2,850,23],s$=[0,u2,814,21],o$=[0,u2,815,21],v$=[0,u2,818,21],a$=[0,u2,819,21],l$=[0,u2,822,19],p$=[0,u2,823,19],d$=[0,u2,826,22],y$=[0,u2,827,22],m$=[0,u2,831,30],k$=[0,u2,832,30],h$=[0,u2,836,26],_$=[0,u2,837,26],w$=[0,u2,846,28],T$=[0,u2,847,28],S$=[0,u2,851,23],E$=[0,u2,1558,4],g$="Printf: bad conversion %[",A$=[0,u2,1626,39],P$=[0,u2,1649,31],N$=[0,u2,1650,31],C$="Printf: bad conversion %_",I$=Dj,O$=dU,R$=Dj,L$=dU,M$=[0,[11,"invalid box description ",[3,0,0]],"invalid box description %S"],D$=[0,0,4],U$=Dk,j$="neg_infinity",J$=SU,X$=bf,Y$=[0,fn],V$="%+nd",z$="% nd",K$="%+ni",B$="% ni",W$="%nx",Z$="%#nx",$$="%nX",F$="%#nX",Q$="%no",G$="%#no",q$="%nd",H$=pU,b$="%nu",xF="%+ld",rF="% ld",eF="%+li",tF="% li",nF="%lx",uF="%#lx",iF="%lX",fF="%#lX",cF="%lo",sF="%#lo",oF="%ld",vF=wJ,aF="%lu",lF="%+Ld",pF="% Ld",dF="%+Li",yF="% Li",mF="%Lx",kF="%#Lx",hF="%LX",_F="%#LX",wF="%Lo",TF="%#Lo",SF="%Ld",EF=XJ,gF="%Lu",AF="%+d",PF="% d",NF="%+i",CF="% i",IF="%x",OF="%#x",RF="%X",LF="%#X",MF="%o",DF="%#o",UF=hl,jF=JM,JF=xj,XF=va,YF="@}",VF="@?",zF=`@ +`,KF="@.",BF="@@",WF="@%",ZF=mU,$F="CamlinternalFormat.Type_mismatch",FF=kx,QF=[0,[11,MD,[2,0,[2,0,0]]],", %s%s"],GF=[0,[11,xI,[2,0,[12,10,0]]],yj],qF=[0,[11,"Fatal error in uncaught exception handler: exception ",[2,0,[12,10,0]]],`Fatal error in uncaught exception handler: exception %s +`],HF="Fatal error: out of memory in uncaught exception handler",bF=[0,[11,xI,[2,0,[12,10,0]]],yj],xQ=[0,[2,0,[12,10,0]],`%s +`],rQ="Raised at",eQ="Re-raised at",tQ="Raised by primitive operation at",nQ="Called from",uQ=" (inlined)",iQ=kx,fQ=[0,[2,0,[12,32,[2,0,[11,' in file "',[2,0,[12,34,[2,0,[11,", line ",[4,0,0,0,[11,sj,oZ]]]]]]]]]],'%s %s in file "%s"%s, line %d, characters %d-%d'],cQ=[0,[2,0,[11," unknown location",0]],"%s unknown location"],sQ="Out of memory",oQ="Stack overflow",vQ="Pattern matching failed",aQ="Assertion failed",lQ="Undefined recursive module",pQ=[0,[12,40,[2,0,[2,0,[12,41,0]]]],"(%s%s)"],dQ=kx,yQ=kx,mQ=[0,[12,40,[2,0,[12,41,0]]],"(%s)"],kQ=[0,[4,0,0,0,0],hl],hQ=[0,[3,0,0],J3],_Q=Aa,wQ=[0,kx,`(Cannot print locations: bytecode executable program file not found)`,`(Cannot print locations: bytecode executable program file appears to be corrupt)`,`(Cannot print locations: bytecode executable program file has wrong magic number)`,`(Cannot print locations: bytecode executable program file cannot be opened; - -- too many open files. Try running with OCAMLRUNPARAM=b=2)`],dQ=[3,0,3],mQ=Hf,kQ=$3,hQ="{"],VQ=[0,[12,32,0],Lt],ZQ=[0,[12,32,0],Lt],$Q=[0,[17,[0,"@,",0,0],[12,gi,[17,0,0]]],"@,}@]"],FQ=[0,"src/hack_forked/utils/collections/third-party/flow_set.ml",379,14],QQ=F3,HQ=ka,qQ=La,GQ=_x,bQ=pv,xH=[0,[12,40,[18,[1,[0,[11,Pe,0],Pe]],[11,"File_key.LibFile",[17,[0,ie,1,0],0]]]],"(@[<2>File_key.LibFile@ "],rH=[0,[3,0,0],z3],eH=[0,[17,0,[12,41,0]],xp],tH=[0,[12,40,[18,[1,[0,[11,Pe,0],Pe]],[11,"File_key.SourceFile",[17,[0,ie,1,0],0]]]],"(@[<2>File_key.SourceFile@ "],nH=[0,[3,0,0],z3],uH=[0,[17,0,[12,41,0]],xp],iH=[0,[12,40,[18,[1,[0,[11,Pe,0],Pe]],[11,"File_key.JsonFile",[17,[0,ie,1,0],0]]]],"(@[<2>File_key.JsonFile@ "],fH=[0,[3,0,0],z3],cH=[0,[17,0,[12,41,0]],xp],sH=[0,[12,40,[18,[1,[0,[11,Pe,0],Pe]],[11,"File_key.ResourceFile",[17,[0,ie,1,0],0]]]],"(@[<2>File_key.ResourceFile@ "],oH=[0,[3,0,0],z3],vH=[0,[17,0,[12,41,0]],xp],aH=[0,1],lH=[0,0],pH=[0,1],yH=[0,2],dH=[0,0],mH=[0,1],kH=[0,1],hH=[0,1],_H=[0,1],wH=[0,1],TH=[0,1],SH=[0,0,0],EH=[0,0,0],AH=[0,U2,ri,vf,Lf,L2,Ei,Yc,qu,W7,Hn,Ec,Bu,oi,U7,w7,$7,Jf,Xf,Ti,M7,Jn,ai,Lc,h7,Rc,li,Kf,hi,Fn,Xn,rc,hu,Ki,cf,Kc,ze,wf,Si,gc,pf,Rf,Z7,Eu,Ke,Gi,m7,Bi,Ji,Tc,N7,Xu,lc,Me,I7,Zi,pu,Pu,fu,pc,je,su,ac,Uf,mu,zc,Df,b7,$f,fc,Nu,Oi,a7,f7,Lu,X7,S7,wc,vc,D7,Au,Pc,pn,Sf,Yu,bn,Qf,H7,si,bf,ei,kf,ti,r7,Oc,nf,Dc,Wi,ru,Yf,Of,Pi,g7,mf,Y7,Ac,zu,Nc,Cc,i7,$u,yc,Cu,ii,u7,xr,qi,tu,Kn,P7,Ni,Bn,Ou,L7,qf,$i,Vf,Zf,Vn,q7,n7,C7,ui,Mc,xi,du,yf,x7,tc,Sc,Ju,Ui,F1,au,G7,Wc,uu,Di,Mf,Qn,Hu,F2,A7,jf,cu,of,c7,Du,eu,di,R2,_7,t7,k7,It,Su,ou,mi,lu,Yi,jc,ki,zn,af,Gu,If,Fu,Qu,R7,Yn,d7,nc,jn,F7,xc,Vu,iu,wu,Ru,Ci,xu,V7,df,Cf,o7,J7,Zn,Zu,pi,Q1,z7,zf,v7,_f,$n,p7,ef,Uu,gu,cc,kc,xf,Li,Iu,e7,_u,Hi,ff,qn,Ri,ce,Ai,_c,Tf,ec,sf,Gf,ju,Pf,y7,Mi,dc,lf,Mu,Re,Ce,Fi,oc,ic,Wn,Wf,tf,vi,mc,Wu,K7,Bc,s7,nu,Xi,Ff,fi,_i,bi,yi,Tu,B7,Jc,Qi,ji,ku,j7,uf,Gn,hc,Xc,ci,T7,Bf,rf,Q7,E7,Le,sc,Ku,un,Nf,zi,O7,uc,yu,Ii,Af,l7,ni,gf,hf],gH=[0,Tc,F1,Fu,Su,zn,E7,Nc,Yf,ui,Qn,Ku,Rc,bf,Ke,H7,zf,uf,nf,tc,i7,A7,Ju,Hi,Li,ri,S7,lu,wu,f7,qf,mc,mi,_u,Cu,It,Lf,Cf,fc,Pf,rf,Qu,Bf,yf,Uu,su,jc,Ru,Eu,Pi,t7,Bi,of,ff,L7,yc,ji,bi,Sf,hf,zc,s7,ai,ru,Uf,q7,B7,ei,je,Oc,af,Yu,ii,Mc,x7,ou,P7,oc,Kf,kc,n7,Ni,If,$f,l7,Gf,p7,qi,pu,Pc,ni,Ri,Q7,lc,L2,ac,dc,$7,I7,_7,O7,iu,Kc,Wc,j7,Y7,Z7,ce,V7,li,U2,Bn,cf,Mi,Df,Bu,D7,lf,Pu,uc,Ec,_i,y7,zu,qu,Sc,Xn,Mf,Iu,Zn,si,v7,Ou,vc,o7,Xf,Fn,nu,Ei,rc,N7,Jf,m7,Hn,Jc,jf,Ci,yi,Kn,Gu,Xi,W7,fi,Ac,Vf,yu,tu,Xc,ku,K7,wc,Zf,Bc,xr,R2,Me,w7,Ti,Gi,X7,ze,Re,Cc,k7,Qf,pi,Ui,pn,sc,nc,e7,cu,Tu,z7,R7,au,ki,U7,xf,pc,xc,eu,cc,$n,Wf,mf,Xu,Of,c7,ti,Oi,hi,Wi,mu,r7,M7,sf,ci,ju,Nf,uu,Rf,qn,hu,Yi,fu,di,Dc,hc,g7,du,Qi,Hu,Ai,h7,gf,Yc,_c,T7,Lc,Tf,xi,G7,ic,$i,a7,$u,Di,J7,Vn,Jn,gc,Ii,tf,Lu,zi,Q1,Au,Ff,Zu,Ki,jn,F7,Ji,Ce,Yn,Wu,b7,ef,ec,Si,pf,Vu,_f,oi,xu,bn,un,Du,Gn,C7,kf,d7,Mu,gu,Le,Af,F2,Fi,vf,vi,Zi,df,Wn,Nu,wf,u7],NH=rM,IH=KM,PH=bU,CH=DM,RH=YT,OH=SM,LH=$3,UH=pj,MH=QU,DH=pM,jH=UU,zH=Ls,KH=Ot,JH=oz,YH=RM,BH=$2,XH=YM,WH=nK,VH=k8,ZH=R4,$H=mo,FH=Z3,QH=yM,HH=eK,qH=bM,GH=cM,bH=Qz,xq=CU,rq=_j,eq=dM,tq=cz,nq=ED,uq=Jz,iq=nM,fq=zD,cq=$z,sq=Jj,oq=[0,[18,[1,[0,[11,Pe,0],Pe]],[11,HM,0]],Dz],vq="Loc.line",aq=[0,[18,[1,[0,0,wx]],[2,0,[11,X3,[17,[0,ie,1,0],0]]]],J3],lq=[0,[4,0,0,0,0],hl],pq=[0,[17,0,0],oa],yq=[0,[12,59,[17,[0,ie,1,0],0]],ep],dq=ll,mq=[0,[18,[1,[0,0,wx]],[2,0,[11,X3,[17,[0,ie,1,0],0]]]],J3],kq=[0,[4,0,0,0,0],hl],hq=[0,[17,0,0],oa],_q=[0,[17,[0,ie,1,0],[12,gi,[17,0,0]]],iD],wq=[0,[15,0],CD],Tq="(Some ",Sq=YS,Eq="None",Aq=[0,[18,[1,[0,[11,Pe,0],Pe]],[11,HM,0]],Dz],gq="Loc.source",Nq=[0,[18,[1,[0,0,wx]],[2,0,[11,X3,[17,[0,ie,1,0],0]]]],J3],Iq=[0,[17,0,0],oa],Pq=[0,[12,59,[17,[0,ie,1,0],0]],ep],Cq=S9,Rq=[0,[18,[1,[0,0,wx]],[2,0,[11,X3,[17,[0,ie,1,0],0]]]],J3],Oq=[0,[17,0,0],oa],Lq=[0,[12,59,[17,[0,ie,1,0],0]],ep],Uq="_end",Mq=[0,[18,[1,[0,0,wx]],[2,0,[11,X3,[17,[0,ie,1,0],0]]]],J3],Dq=[0,[17,0,0],oa],jq=[0,[17,[0,ie,1,0],[12,gi,[17,0,0]]],iD],zq="Object literal may not have data and accessor property with the same name",Kq="Object literal may not have multiple get/set accessors with the same name",Jq="Unexpected token <. Remember, adjacent JSX elements must be wrapped in an enclosing parent tag",Yq="Modules can only have 1 since they are either an ES module xor they are a CommonJS module.",Bq="Found both `declare module.exports` and `declare export` in the same module. ",Xq="`let [` is ambiguous in this position because it is either a `let` binding pattern, or a member expression.",Wq="Async functions can only be declared at top level or immediately within another function.",Vq="`await` is an invalid identifier in async functions",Zq="`await` is not allowed in async function parameters.",$q="Computed properties must have a value.",Fq="Constructor can't be an accessor.",Qq="Constructor can't be an async function.",Hq="Constructor can't be a generator.",qq="It is sufficient for your declare function to just have a Promise return type.",Gq="async is an implementation detail and isn't necessary for your declare function statement. ",bq="`declare` modifier can only appear on class fields.",xG="Unexpected token `=`. Initializers are not allowed in a `declare`.",rG="`declare export interface` is not supported. Use `export interface` instead.",eG="`declare export type` is not supported. Use `export type` instead.",tG="Unexpected token `=`. Initializers are not allowed in a `declare opaque type`.",nG="Classes may only have one constructor",uG="Duplicate `declare module.exports` statement!",iG="Rest element must be final element of an array pattern",fG="Cannot export an enum with `export type`, try `export enum E {}` or `module.exports = E;` instead.",cG="Enum members are separated with `,`. Replace `;` with `,`.",sG="`const` enums are not supported. Flow Enums are designed to allow for inlining, however the inlining itself needs to be part of the build system (whatever you use) rather than Flow itself.",oG="Expected an object pattern, array pattern, or an identifier but found an expression instead",vG="Missing comma between export specifiers",aG="Generators can only be declared at top level or immediately within another function.",lG="Getter should have zero parameters",pG="A getter cannot have a `this` parameter.",yG="Illegal break statement",dG="Illegal continue statement",mG="Illegal return statement",kG="Illegal Unicode escape",hG="Missing comma between import specifiers",_G="It cannot be used with `import type` or `import typeof` statements",wG="The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. ",TG="Explicit inexact syntax cannot appear inside an explicit exact object type",SG="Explicit inexact syntax can only appear inside an object type",EG="Component params must be an identifier. If you'd like to destructure, you should use `name as {destructure}`",AG="A bigint literal must be an integer",gG="JSX value should be either an expression or a quoted JSX text",NG="Invalid left-hand side in assignment",IG="Invalid left-hand side in exponentiation expression",PG="Invalid left-hand side in for-in",CG="Invalid left-hand side in for-of",RG="Imports within a `declare module` body must always be `import type` or `import typeof`!",OG="Invalid optional indexed access. Indexed access uses bracket notation. Use the format `T?.[K]`.",LG="Invalid regular expression",UG="A bigint literal cannot use exponential notation",MG="Tuple spread elements cannot be optional.",DG="Tuple variance annotations can only be used with labeled tuple elements, e.g. `[+foo: number]`",jG="`typeof` can only be used to get the type of variables.",zG="JSX attributes must only be assigned a non-empty expression",KG="Literals cannot be used as shorthand properties.",JG="Malformed unicode",YG="Object pattern can't contain methods",BG="Expected at least one type parameter.",XG="Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",WG="More than one default clause in switch statement",VG="Illegal newline after throw",ZG="Illegal newline before arrow",$G="Missing catch or finally after try",FG="Const must be initialized",QG="Destructuring assignment must be initialized",HG="An optional chain may not be used in a `new` expression.",qG="Template literals may not be used in an optional chain.",GG="Rest parameter must be final parameter of an argument list",bG="Private fields may not be deleted.",xb="Private fields can only be referenced from within a class.",rb="Rest property must be final property of an object pattern",eb="Setter should have exactly one parameter",tb="A setter cannot have a `this` parameter.",nb="Catch variable may not be eval or arguments in strict mode",ub="Delete of an unqualified identifier in strict mode.",ib="Duplicate data property in object literal not allowed in strict mode",fb="Function name may not be eval or arguments in strict mode",cb="Assignment to eval or arguments is not allowed in strict mode",sb="Postfix increment/decrement may not have eval or arguments operand in strict mode",ob="Prefix increment/decrement may not have eval or arguments operand in strict mode",vb="Strict mode code may not include a with statement",ab="Number literals with leading zeros are not allowed in strict mode.",lb="Octal literals are not allowed in strict mode.",pb="Strict mode function may not have duplicate parameter names",yb="Parameter name eval or arguments is not allowed in strict mode",db='Illegal "use strict" directive in function with non-simple parameter list',mb="Use of reserved word in strict mode",kb="Variable name may not be eval or arguments in strict mode",hb="You may not access a private field through the `super` keyword.",_b="Flow does not support abstract classes.",wb="Flow does not support template literal types.",Tb="A type annotation is required for the `this` parameter.",Sb="Arrow functions cannot have a `this` parameter; arrow functions automatically bind `this` when declared.",Eb="Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",Ab="The `this` parameter cannot be optional.",gb="The `this` parameter must be the first function parameter.",Nb="A trailing comma is not permitted after the rest element",Ib="Unexpected end of input",Pb="Explicit inexact syntax must come at the end of an object type",Cb="Opaque type aliases are not allowed in untyped mode",Rb="Unexpected proto modifier",Ob="Unexpected reserved word",Lb="Unexpected reserved type",Ub="Spreading a type is only allowed inside an object type",Mb="Unexpected static modifier",Db="Unexpected `super` outside of a class method",jb="`super()` is only valid in a class constructor",zb="Type aliases are not allowed in untyped mode",Kb="Type annotations are not allowed in untyped mode",Jb="Type declarations are not allowed in untyped mode",Yb="Type exports are not allowed in untyped mode",Bb="Type imports are not allowed in untyped mode",Xb="Interfaces are not allowed in untyped mode",Wb="Unexpected variance sigil",Vb="Found a decorator in an unsupported position.",Zb="Invalid regular expression: missing /",$b="Unexpected whitespace between `#` and identifier",Fb="`yield` is an invalid identifier in generators",Qb="Yield expression not allowed in formal parameter",Hb=[0,[11,"Duplicate export for `",[2,0,[12,96,0]]],"Duplicate export for `%s`"],qb=[0,[11,"Private fields may only be declared once. `#",[2,0,[11,"` is declared more than once.",0]]],"Private fields may only be declared once. `#%s` is declared more than once."],Gb=[0,[11,"bigint enum members need to be initialized, e.g. `",[2,0,[11," = 1n,` in enum `",[2,0,[11,Es,0]]]]],"bigint enum members need to be initialized, e.g. `%s = 1n,` in enum `%s`."],bb=[0,[11,"Boolean enum members need to be initialized. Use either `",[2,0,[11," = true,` or `",[2,0,[11," = false,` in enum `",[2,0,[11,Es,0]]]]]]],"Boolean enum members need to be initialized. Use either `%s = true,` or `%s = false,` in enum `%s`."],x00=[0,[11,"Enum member names need to be unique, but the name `",[2,0,[11,"` has already been used before in enum `",[2,0,[11,Es,0]]]]],"Enum member names need to be unique, but the name `%s` has already been used before in enum `%s`."],r00=[0,[11,_M,[2,0,[11,"` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.",0]]],"Enum `%s` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers."],e00="The `...` must come at the end of the enum body. Remove the trailing comma.",t00="The `...` must come after all enum members. Move it to the end of the enum body.",n00=[0,[11,"Use one of `boolean`, `number`, `string`, `symbol`, or `bigint` in enum `",[2,0,[11,Es,0]]],"Use one of `boolean`, `number`, `string`, `symbol`, or `bigint` in enum `%s`."],u00=[0,[11,"Enum type `",[2,0,[11,"` is not valid. ",[2,0,0]]]],"Enum type `%s` is not valid. %s"],i00=[0,[11,"Supplied enum type is not valid. ",[2,0,0]],"Supplied enum type is not valid. %s"],f00=[0,[11,"Enum member names and initializers are separated with `=`. Replace `",[2,0,[11,":` with `",[2,0,[11," =`.",0]]]]],"Enum member names and initializers are separated with `=`. Replace `%s:` with `%s =`."],c00=[0,[11,_M,[2,0,[11,"` has type `",[2,0,[11,"`, so the initializer of `",[2,0,[11,"` needs to be a ",[2,0,[11," literal.",0]]]]]]]]],"Enum `%s` has type `%s`, so the initializer of `%s` needs to be a %s literal."],s00=[0,[11,"Symbol enum members cannot be initialized. Use `",[2,0,[11,",` in enum `",[2,0,[11,Es,0]]]]],"Symbol enum members cannot be initialized. Use `%s,` in enum `%s`."],o00=[0,[11,"The enum member initializer for `",[2,0,[11,"` needs to be a literal (either a boolean, number, or string) in enum `",[2,0,[11,Es,0]]]]],"The enum member initializer for `%s` needs to be a literal (either a boolean, number, or string) in enum `%s`."],v00=[0,[11,"Enum member names cannot start with lowercase 'a' through 'z'. Instead of using `",[2,0,[11,"`, consider using `",[2,0,[11,"`, in enum `",[2,0,[11,Es,0]]]]]]],"Enum member names cannot start with lowercase 'a' through 'z'. Instead of using `%s`, consider using `%s`, in enum `%s`."],a00=[0,[11,"Number enum members need to be initialized, e.g. `",[2,0,[11," = 1,` in enum `",[2,0,[11,Es,0]]]]],"Number enum members need to be initialized, e.g. `%s = 1,` in enum `%s`."],l00=[0,[11,"String enum members need to consistently either all use initializers, or use no initializers, in enum ",[2,0,[12,46,0]]],"String enum members need to consistently either all use initializers, or use no initializers, in enum %s."],p00=[0,[11,"Expected corresponding JSX closing tag for ",[2,0,0]],"Expected corresponding JSX closing tag for %s"],y00="immediately within another function.",d00="In strict mode code, functions can only be declared at top level or ",m00="inside a block, or as the body of an if statement.",k00="In non-strict mode code, functions can only be declared at top level, ",h00="static ",_00=wx,w00="methods",T00="fields",S00=jU,E00=[0,[11,"Classes may not have ",[2,0,[2,0,[11," named `",[2,0,[11,Es,0]]]]]],"Classes may not have %s%s named `%s`."],A00="Remove the period.",g00="Indexed access uses bracket notation.",N00=[0,[11,"Invalid indexed access. ",[2,0,[11," Use the format `T[K]`.",0]]],"Invalid indexed access. %s Use the format `T[K]`."],I00=[0,[11,"Invalid flags supplied to RegExp constructor '",[2,0,[12,39,0]]],"Invalid flags supplied to RegExp constructor '%s'"],P00=[0,[11,"JSX element ",[2,0,[11," has no corresponding closing tag.",0]]],"JSX element %s has no corresponding closing tag."],C00=[0,[11,AM,[2,0,[11,"`. Parentheses are required to combine `??` with `&&` or `||` expressions.",0]]],"Unexpected token `%s`. Parentheses are required to combine `??` with `&&` or `||` expressions."],R00=[0,[2,0,[11," '",[2,0,[11,"' has already been declared",0]]]],"%s '%s' has already been declared"],O00=wx,L00=W3,U00=" You can try using JavaScript private fields by prepending `#` to the field name.",M00=kl,D00=" Fields and methods are public by default. You can simply omit the `public` keyword.",j00=j3,z00=[0,[11,"Flow does not support using `",[2,0,[11,"` in classes.",[2,0,0]]]],"Flow does not support using `%s` in classes.%s"],K00=[0,[11,"Private fields must be declared before they can be referenced. `#",[2,0,[11,"` has not been declared.",0]]],"Private fields must be declared before they can be referenced. `#%s` has not been declared."],J00=[0,[11,uj,[2,0,0]],"Unexpected %s"],Y00=[0,[11,AM,[2,0,[11,"`. Did you mean `",[2,0,[11,"`?",0]]]]],"Unexpected token `%s`. Did you mean `%s`?"],B00=[0,[11,uj,[2,0,[11,", expected ",[2,0,0]]]],"Unexpected %s, expected %s"],X00=[0,[11,"Undefined label '",[2,0,[12,39,0]]],"Undefined label '%s'"],W00="Parse_error.Error",V00=[0,[0,36,37],[0,48,58],[0,65,91],[0,95,96],[0,97,Rt],[0,$9,Rk],[0,gC,qk],[0,ey,LI],[0,Gh,eA],[0,ma,IT],[0,QI,J8],[0,Qr,706],[0,XM,722],[0,736,741],[0,748,749],[0,750,751],[0,768,885],[0,886,888],[0,890,894],[0,895,896],[0,902,907],[0,908,909],[0,910,930],[0,Pz,1014],[0,1015,1154],[0,1155,1160],[0,1162,1328],[0,1329,1367],[0,1369,1370],[0,1376,1417],[0,1425,1470],[0,1471,1472],[0,1473,1475],[0,1476,1478],[0,1479,1480],[0,1488,1515],[0,1519,1523],[0,1552,1563],[0,1568,1642],[0,1646,1748],[0,1749,1757],[0,1759,1769],[0,1770,1789],[0,1791,1792],[0,1808,1867],[0,1869,1970],[0,1984,2038],[0,2042,2043],[0,2045,2046],[0,aP,2094],[0,2112,2140],[0,2144,2155],[0,2208,2229],[0,2230,2238],[0,2259,2274],[0,2275,2404],[0,2406,2416],[0,2417,2436],[0,2437,2445],[0,2447,2449],[0,2451,2473],[0,2474,2481],[0,2482,2483],[0,2486,2490],[0,2492,2501],[0,2503,2505],[0,2507,2511],[0,2519,2520],[0,2524,2526],[0,2527,2532],[0,2534,2546],[0,2556,2557],[0,2558,2559],[0,2561,2564],[0,2565,2571],[0,2575,2577],[0,2579,2601],[0,2602,2609],[0,2610,2612],[0,2613,2615],[0,2616,2618],[0,2620,2621],[0,2622,2627],[0,2631,2633],[0,2635,2638],[0,2641,2642],[0,2649,2653],[0,2654,2655],[0,2662,2678],[0,2689,2692],[0,2693,2702],[0,2703,2706],[0,2707,2729],[0,2730,2737],[0,2738,2740],[0,2741,2746],[0,2748,2758],[0,2759,2762],[0,2763,2766],[0,2768,2769],[0,2784,2788],[0,2790,2800],[0,2809,2816],[0,2817,2820],[0,2821,2829],[0,2831,2833],[0,2835,2857],[0,2858,2865],[0,2866,2868],[0,2869,2874],[0,2876,2885],[0,2887,2889],[0,2891,2894],[0,2902,2904],[0,2908,2910],[0,2911,2916],[0,2918,2928],[0,2929,2930],[0,2946,2948],[0,2949,2955],[0,2958,2961],[0,2962,2966],[0,2969,2971],[0,2972,2973],[0,2974,2976],[0,2979,2981],[0,2984,2987],[0,2990,3002],[0,3006,3011],[0,3014,3017],[0,3018,3022],[0,3024,3025],[0,3031,3032],[0,3046,3056],[0,3072,3085],[0,3086,3089],[0,3090,3113],[0,3114,3130],[0,3133,3141],[0,3142,3145],[0,3146,3150],[0,3157,3159],[0,3160,3163],[0,3168,3172],[0,3174,3184],[0,3200,3204],[0,3205,3213],[0,3214,3217],[0,3218,3241],[0,3242,3252],[0,3253,3258],[0,3260,3269],[0,3270,3273],[0,3274,3278],[0,3285,3287],[0,3294,3295],[0,3296,3300],[0,3302,3312],[0,3313,3315],[0,3328,3332],[0,3333,3341],[0,3342,3345],[0,3346,3397],[0,3398,3401],[0,3402,3407],[0,3412,3416],[0,3423,3428],[0,3430,3440],[0,3450,3456],[0,3458,3460],[0,3461,3479],[0,3482,3506],[0,3507,3516],[0,3517,3518],[0,3520,3527],[0,3530,3531],[0,3535,3541],[0,3542,3543],[0,3544,3552],[0,3558,3568],[0,3570,3572],[0,3585,3643],[0,3648,3663],[0,3664,3674],[0,3713,3715],[0,3716,3717],[0,3718,3723],[0,3724,3748],[0,3749,3750],[0,3751,3774],[0,3776,3781],[0,3782,3783],[0,3784,3790],[0,3792,3802],[0,3804,3808],[0,3840,3841],[0,3864,3866],[0,3872,3882],[0,3893,3894],[0,3895,3896],[0,3897,3898],[0,3902,3912],[0,3913,3949],[0,3953,3973],[0,3974,3992],[0,3993,4029],[0,4038,4039],[0,HD,4170],[0,4176,4254],[0,4256,4294],[0,4295,4296],[0,4301,4302],[0,4304,4347],[0,4348,4681],[0,4682,4686],[0,4688,4695],[0,4696,4697],[0,4698,4702],[0,4704,4745],[0,4746,4750],[0,4752,4785],[0,4786,4790],[0,4792,4799],[0,4800,4801],[0,4802,4806],[0,4808,4823],[0,4824,4881],[0,4882,4886],[0,4888,4955],[0,4957,4960],[0,4969,4978],[0,4992,5008],[0,5024,5110],[0,5112,5118],[0,5121,5741],[0,5743,QT],[0,5761,5787],[0,5792,5867],[0,5870,5881],[0,5888,5901],[0,5902,5909],[0,5920,5941],[0,5952,5972],[0,5984,5997],[0,5998,6001],[0,6002,6004],[0,6016,6100],[0,6103,6104],[0,6108,6110],[0,6112,6122],[0,6155,6158],[0,6160,6170],[0,6176,6265],[0,6272,6315],[0,6320,6390],[0,6400,6431],[0,6432,6444],[0,6448,6460],[0,6470,6510],[0,6512,6517],[0,6528,6572],[0,6576,6602],[0,6608,6619],[0,6656,6684],[0,6688,6751],[0,6752,6781],[0,6783,6794],[0,6800,6810],[0,6823,6824],[0,6832,6846],[0,6912,6988],[0,6992,7002],[0,7019,7028],[0,7040,7156],[0,7168,7224],[0,7232,7242],[0,7245,7294],[0,7296,7305],[0,7312,7355],[0,7357,7360],[0,7376,7379],[0,7380,7419],[0,7424,7674],[0,7675,7958],[0,7960,7966],[0,7968,8006],[0,8008,8014],[0,8016,8024],[0,8025,8026],[0,8027,8028],[0,8029,8030],[0,8031,8062],[0,8064,8117],[0,8118,8125],[0,8126,8127],[0,8130,8133],[0,8134,8141],[0,8144,8148],[0,8150,8156],[0,8160,8173],[0,8178,8181],[0,8182,8189],[0,Cj,JD],[0,8255,8257],[0,8276,8277],[0,M8,8306],[0,b5,8320],[0,8336,8349],[0,8400,8413],[0,8417,8418],[0,8421,8433],[0,ky,8451],[0,P5,8456],[0,8458,g8],[0,qp,8470],[0,Cz,8478],[0,Ay,vp],[0,s8,o8],[0,jp,Yp],[0,8490,8506],[0,8508,8512],[0,8517,8522],[0,i8,8527],[0,8544,8585],[0,11264,11311],[0,11312,11359],[0,11360,11493],[0,11499,11508],[0,11520,z4],[0,U8,11560],[0,j4,11566],[0,11568,11624],[0,N5,11632],[0,V8,11671],[0,11680,kp],[0,11688,p8],[0,11696,Z4],[0,11704,T8],[0,11712,X5],[0,11720,D5],[0,11728,Lp],[0,11736,11743],[0,11744,11776],[0,12293,12296],[0,12321,D4],[0,12337,12342],[0,12344,12349],[0,12353,12439],[0,12441,z5],[0,12449,vy],[0,12540,12544],[0,12549,E5],[0,12593,12687],[0,12704,12731],[0,12784,12800],[0,13312,19894],[0,19968,40944],[0,40960,42125],[0,42192,42238],[0,42240,42509],[0,42512,42540],[0,42560,42608],[0,42612,V5],[0,42623,42738],[0,42775,42784],[0,42786,42889],[0,42891,42944],[0,42946,42951],[0,D8,43048],[0,43072,43124],[0,43136,43206],[0,43216,43226],[0,43232,43256],[0,U5,F5],[0,43261,43310],[0,43312,43348],[0,43360,43389],[0,43392,43457],[0,Ep,43482],[0,43488,sy],[0,43520,43575],[0,43584,43598],[0,43600,43610],[0,43616,43639],[0,S8,43715],[0,43739,43742],[0,43744,43760],[0,43762,43767],[0,43777,43783],[0,43785,43791],[0,43793,43799],[0,43808,b8],[0,43816,t8],[0,43824,t5],[0,43868,f8],[0,43888,44011],[0,44012,44014],[0,44016,44026],[0,44032,55204],[0,55216,55239],[0,55243,55292],[0,63744,64110],[0,64112,64218],[0,64256,64263],[0,64275,64280],[0,Pp,B8],[0,64298,oy],[0,64312,H5],[0,$8,up],[0,64320,Sp],[0,64323,v5],[0,64326,64434],[0,64467,64830],[0,64848,64912],[0,64914,64968],[0,65008,65020],[0,65024,65040],[0,65056,65072],[0,65075,65077],[0,65101,65104],[0,65136,Tp],[0,65142,65277],[0,65296,65306],[0,65313,65339],[0,65343,O5],[0,65345,65371],[0,65382,65471],[0,65474,65480],[0,65482,65488],[0,65490,65496],[0,65498,65501],[0,b3,a8],[0,65549,m8],[0,65576,lp],[0,65596,p5],[0,65599,65614],[0,65616,65630],[0,65664,65787],[0,65856,65909],[0,66045,66046],[0,66176,66205],[0,66208,66257],[0,66272,66273],[0,66304,66336],[0,66349,66379],[0,66384,66427],[0,66432,66462],[0,66464,66500],[0,66504,s5],[0,66513,66518],[0,66560,66718],[0,66720,66730],[0,66736,66772],[0,66776,66812],[0,66816,66856],[0,66864,66916],[0,67072,67383],[0,67392,67414],[0,67424,67432],[0,67584,67590],[0,cy,a5],[0,67594,Y5],[0,67639,67641],[0,Q5,67645],[0,67647,67670],[0,67680,67703],[0,67712,67743],[0,67808,hy],[0,67828,67830],[0,67840,67862],[0,67872,67898],[0,67968,68024],[0,68030,68032],[0,Cy,68100],[0,68101,68103],[0,68108,cp],[0,68117,Ty],[0,68121,68150],[0,68152,68155],[0,68159,68160],[0,68192,68221],[0,68224,68253],[0,68288,B4],[0,68297,68327],[0,68352,68406],[0,68416,68438],[0,68448,68467],[0,68480,68498],[0,68608,68681],[0,68736,68787],[0,68800,68851],[0,68864,68904],[0,68912,68922],[0,69376,69405],[0,c8,69416],[0,69424,69457],[0,69600,69623],[0,69632,69703],[0,69734,hp],[0,69759,69819],[0,69840,69865],[0,69872,69882],[0,69888,69941],[0,69942,69952],[0,z8,v8],[0,69968,70004],[0,Q4,70007],[0,70016,70085],[0,70089,70093],[0,70096,W4],[0,Sy,70109],[0,70144,ry],[0,70163,70200],[0,70206,70207],[0,70272,w8],[0,f5,sp],[0,70282,G8],[0,70287,b4],[0,70303,70313],[0,70320,70379],[0,70384,70394],[0,70400,P8],[0,70405,70413],[0,70415,70417],[0,70419,C8],[0,70442,yp],[0,70450,wy],[0,70453,70458],[0,70459,70469],[0,70471,70473],[0,70475,70478],[0,Ey,70481],[0,70487,70488],[0,70493,70500],[0,70502,70509],[0,70512,70517],[0,70656,70731],[0,70736,70746],[0,B5,70752],[0,70784,w5],[0,m5,70856],[0,70864,70874],[0,71040,71094],[0,71096,71105],[0,71128,71134],[0,71168,71233],[0,Wp,71237],[0,71248,71258],[0,71296,71353],[0,71360,71370],[0,71424,71451],[0,71453,71468],[0,71472,71482],[0,71680,71739],[0,71840,71914],[0,71935,71936],[0,72096,72104],[0,72106,72152],[0,72154,A8],[0,O4,72165],[0,ty,72255],[0,72263,72264],[0,i5,72346],[0,n8,72350],[0,72384,72441],[0,72704,r5],[0,72714,72759],[0,72760,72769],[0,72784,72794],[0,72818,72848],[0,72850,72872],[0,72873,72887],[0,72960,F4],[0,72968,_5],[0,72971,73015],[0,73018,73019],[0,73020,73022],[0,73023,73032],[0,73040,73050],[0,73056,fy],[0,73063,R8],[0,73066,73103],[0,73104,73106],[0,73107,73113],[0,73120,73130],[0,73440,73463],[0,73728,74650],[0,74752,74863],[0,74880,75076],[0,77824,78895],[0,82944,83527],[0,92160,92729],[0,92736,92767],[0,92768,92778],[0,92880,92910],[0,92912,92917],[0,92928,92983],[0,92992,92996],[0,93008,93018],[0,93027,93048],[0,93053,93072],[0,93760,93824],[0,93952,94027],[0,j8,94088],[0,94095,94112],[0,94176,Gp],[0,Op,94180],[0,94208,100344],[0,100352,101107],[0,110592,110879],[0,110928,110931],[0,110948,110952],[0,110960,111356],[0,113664,113771],[0,113776,113789],[0,113792,113801],[0,113808,113818],[0,113821,113823],[0,119141,119146],[0,119149,119155],[0,119163,119171],[0,119173,119180],[0,119210,119214],[0,119362,119365],[0,119808,M4],[0,119894,O8],[0,119966,119968],[0,Py,119971],[0,119973,119975],[0,119977,$p],[0,119982,Cp],[0,R5,h5],[0,119997,u5],[0,120005,Np],[0,120071,120075],[0,120077,Fp],[0,120086,o5],[0,120094,e8],[0,120123,Kp],[0,120128,xy],[0,Up,120135],[0,120138,Dp],[0,120146,120486],[0,120488,ay],[0,120514,h8],[0,120540,x5],[0,120572,Y4],[0,120598,q4],[0,120630,uy],[0,120656,j5],[0,120688,gy],[0,120714,Q8],[0,120746,my],[0,120772,120780],[0,120782,120832],[0,121344,121399],[0,121403,121453],[0,121461,121462],[0,121476,121477],[0,121499,121504],[0,121505,121520],[0,122880,122887],[0,122888,122905],[0,122907,122914],[0,122915,122917],[0,122918,122923],[0,123136,123181],[0,123184,123198],[0,123200,123210],[0,_p,123215],[0,123584,123642],[0,124928,125125],[0,125136,125143],[0,125184,125260],[0,125264,125274],[0,126464,A5],[0,126469,yy],[0,126497,K5],[0,zp,126501],[0,G4,y5],[0,126505,rp],[0,126516,Bp],[0,L4,Z8],[0,X8,126524],[0,L5,126531],[0,M5,wp],[0,k5,l5],[0,ly,C5],[0,126541,E8],[0,126545,dp],[0,kr,126549],[0,d5,py],[0,pp,u8],[0,Qp,Ny],[0,J4,q5],[0,H4,dy],[0,126561,Xp],[0,$4,126565],[0,126567,Z5],[0,126572,X4],[0,126580,l8],[0,126585,Ap],[0,ip,Iy],[0,126592,F8],[0,126603,126620],[0,126625,L8],[0,126629,Y8],[0,126635,126652],[0,131072,173783],[0,173824,177973],[0,177984,178206],[0,178208,183970],[0,183984,191457],[0,194560,195102],[0,917760,918e3]],Z00=[0,1,0],$00=[0,0,[0,1,0],[0,1,0]],F00=tj,Q00="end of input",H00=dl,q00="template literal part",G00=dl,b00=FD,xx0=tj,rx0=dl,ex0=ka,tx0=dl,nx0=pv,ux0=dl,ix0=La,fx0="an",cx0=It,sx0=Lt,ox0=[0,[11,"token `",[2,0,[12,96,0]]],"token `%s`"],vx0="{",ax0=K8,lx0="{|",px0="|}",yx0=OU,dx0=YS,mx0="[",kx0="]",hx0=TT,_x0=zU,wx0=Hf,Tx0="=>",Sx0="...",Ex0=pD,Ax0=jU,gx0=la,Nx0=Hp,Ix0=mo,Px0=Z3,Cx0=Me,Rx0=Ke,Ox0=fv,Lx0=ze,Ux0=ny,Mx0=sl,Dx0=Mp,jx0=ap,zx0=nl,Kx0=ya,Jx0=lv,Yx0=As,Bx0=Ts,Xx0=Le,Wx0=Jp,Vx0=W8,Zx0=Ce,$x0=cv,Fx0=W5,Qx0=gp,Hx0=d8,qx0=Y3,Gx0=Ic,bx0=De,xr0=Rp,rr0=iv,er0=el,tr0=ws,nr0=gs,ur0=cl,ir0=r8,fr0=R2,cr0=Ia,sr0=dv,or0=F2,vr0=Zp,ar0=kl,lr0=W3,pr0=j3,yr0=U2,dr0=Re,mr0=Q3,kr0=bu,hr0=Oh,_r0=Bh,wr0=ko,Tr0=_v,Sr0="%checks",Er0=cz,Ar0=dM,gr0=_j,Nr0=Jz,Ir0=ED,Pr0=nM,Cr0=CU,Rr0=Qz,Or0=bM,Lr0=cM,Ur0=eK,Mr0=yM,Dr0=zD,jr0=$z,zr0=Jj,Kr0=M_,Jr0="?.",Yr0=s9,Br0="?",Xr0=Nv,Wr0=sD,Vr0=qz,Zr0=nK,$r0=k8,Fr0=R4,Qr0=rM,Hr0=KM,qr0=bU,Gr0=DM,br0=SM,x10=pj,r10=YT,e10=$3,t10=QU,n10=pM,u10=UU,i10=Ls,f10=Ot,c10=$2,s10=oz,o10=RM,v10=YM,a10=OM,l10=$j,p10=Az,y10=hD,d10=wx,m10=n5,k10=op,h10=ce,_10=ka,w10=pv,T10=La,S10=gs,E10=_x,A10=g5,g10=I8,N10=G5,I10=N8,P10=Ta,C10=ID,R10=al,O10=da,L10=D3,U10=D3,M10=Hz,D10=D3,j10=D3,z10=K8,K10=K8,J10=Hz,Y10=$2,B10=$2,X10=F3,W10=S5,V10="T_LCURLY",Z10="T_RCURLY",$10="T_LCURLYBAR",F10="T_RCURLYBAR",Q10="T_LPAREN",H10="T_RPAREN",q10="T_LBRACKET",G10="T_RBRACKET",b10="T_SEMICOLON",x20="T_COMMA",r20="T_PERIOD",e20="T_ARROW",t20="T_ELLIPSIS",n20="T_AT",u20="T_POUND",i20="T_FUNCTION",f20="T_IF",c20="T_IN",s20="T_INSTANCEOF",o20="T_RETURN",v20="T_SWITCH",a20="T_THIS",l20="T_THROW",p20="T_TRY",y20="T_VAR",d20="T_WHILE",m20="T_WITH",k20="T_CONST",h20="T_LET",_20="T_NULL",w20="T_FALSE",T20="T_TRUE",S20="T_BREAK",E20="T_CASE",A20="T_CATCH",g20="T_CONTINUE",N20="T_DEFAULT",I20="T_DO",P20="T_FINALLY",C20="T_FOR",R20="T_CLASS",O20="T_EXTENDS",L20="T_STATIC",U20="T_ELSE",M20="T_NEW",D20="T_DELETE",j20="T_TYPEOF",z20="T_VOID",K20="T_ENUM",J20="T_EXPORT",Y20="T_IMPORT",B20="T_SUPER",X20="T_IMPLEMENTS",W20="T_INTERFACE",V20="T_PACKAGE",Z20="T_PRIVATE",$20="T_PROTECTED",F20="T_PUBLIC",Q20="T_YIELD",H20="T_DEBUGGER",q20="T_DECLARE",G20="T_TYPE",b20="T_OPAQUE",xe0="T_OF",re0="T_ASYNC",ee0="T_AWAIT",te0="T_CHECKS",ne0="T_RSHIFT3_ASSIGN",ue0="T_RSHIFT_ASSIGN",ie0="T_LSHIFT_ASSIGN",fe0="T_BIT_XOR_ASSIGN",ce0="T_BIT_OR_ASSIGN",se0="T_BIT_AND_ASSIGN",oe0="T_MOD_ASSIGN",ve0="T_DIV_ASSIGN",ae0="T_MULT_ASSIGN",le0="T_EXP_ASSIGN",pe0="T_MINUS_ASSIGN",ye0="T_PLUS_ASSIGN",de0="T_NULLISH_ASSIGN",me0="T_AND_ASSIGN",ke0="T_OR_ASSIGN",he0="T_ASSIGN",_e0="T_PLING_PERIOD",we0="T_PLING_PLING",Te0="T_PLING",Se0="T_COLON",Ee0="T_OR",Ae0="T_AND",ge0="T_BIT_OR",Ne0="T_BIT_XOR",Ie0="T_BIT_AND",Pe0="T_EQUAL",Ce0="T_NOT_EQUAL",Re0="T_STRICT_EQUAL",Oe0="T_STRICT_NOT_EQUAL",Le0="T_LESS_THAN_EQUAL",Ue0="T_GREATER_THAN_EQUAL",Me0="T_LESS_THAN",De0="T_GREATER_THAN",je0="T_LSHIFT",ze0="T_RSHIFT",Ke0="T_RSHIFT3",Je0="T_PLUS",Ye0="T_MINUS",Be0="T_DIV",Xe0="T_MULT",We0="T_EXP",Ve0="T_MOD",Ze0="T_NOT",$e0="T_BIT_NOT",Fe0="T_INCR",Qe0="T_DECR",He0="T_EOF",qe0="T_ANY_TYPE",Ge0="T_MIXED_TYPE",be0="T_EMPTY_TYPE",xt0="T_NUMBER_TYPE",rt0="T_BIGINT_TYPE",et0="T_STRING_TYPE",tt0="T_VOID_TYPE",nt0="T_SYMBOL_TYPE",ut0="T_UNKNOWN_TYPE",it0="T_NEVER_TYPE",ft0="T_UNDEFINED_TYPE",ct0="T_KEYOF",st0="T_READONLY",ot0="T_INFER",vt0="T_IS",at0="T_ASSERTS",lt0="T_NUMBER",pt0="T_BIGINT",yt0="T_STRING",dt0="T_TEMPLATE_PART",mt0="T_IDENTIFIER",kt0="T_REGEXP",ht0="T_INTERPRETER",_t0="T_ERROR",wt0="T_JSX_IDENTIFIER",Tt0=Zz,St0=Zz,Et0="T_BOOLEAN_TYPE",At0="T_NUMBER_SINGLETON_TYPE",gt0="T_BIGINT_SINGLETON_TYPE",Nt0=[0,VD,OS,9],It0=[0,VD,$T,9],Pt0=uD,Ct0="*/",Rt0=uD,Ot0="unreachable line_comment",Lt0="unreachable string_quote",Ut0="\\",Mt0="unreachable template_part",Dt0=`\r -`,jt0=pT,zt0="unreachable regexp_class",Kt0=mz,Jt0="unreachable regexp_body",Yt0=wx,Bt0=wx,Xt0=wx,Wt0=wx,Vt0=sz,Zt0="{'>'}",$t0=$3,Ft0="{'}'}",Qt0=K8,Ht0=lo,qt0=TT,Gt0=R4,bt0=sz,xn0=lo,rn0=TT,en0=R4,tn0="unreachable type_token wholenumber",nn0="unreachable type_token wholebigint",un0="unreachable type_token floatbigint",in0="unreachable type_token scinumber",fn0="unreachable type_token scibigint",cn0="unreachable type_token hexnumber",sn0="unreachable type_token hexbigint",on0="unreachable type_token legacyoctnumber",vn0="unreachable type_token octnumber",an0="unreachable type_token octbigint",ln0="unreachable type_token binnumber",pn0="unreachable type_token bigbigint",yn0="unreachable type_token",dn0=yz,mn0=[11,1],kn0=[11,0],hn0="unreachable template_tail",_n0=wx,wn0=wx,Tn0="unreachable jsx_child",Sn0="unreachable jsx_tag",En0=[0,sM],An0=[0,913],gn0=[0,ma],Nn0=[0,kh],In0=[0,zM],Pn0=[0,Bz],Cn0=[0,8747],Rn0=[0,uz],On0=[0,916],Ln0=[0,8225],Un0=[0,935],Mn0=[0,yA],Dn0=[0,914],jn0=[0,Sj],zn0=[0,MM],Kn0=[0,Rz],Jn0=[0,915],Yn0=[0,zz],Bn0=[0,919],Xn0=[0,917],Wn0=[0,uK],Vn0=[0,qj],Zn0=[0,EM],$n0=[0,924],Fn0=[0,923],Qn0=[0,922],Hn0=[0,Gz],qn0=[0,921],Gn0=[0,WM],bn0=[0,$T],x70=[0,KU],r70=[0,QI],e70=[0,927],t70=[0,937],n70=[0,Wz],u70=[0,sE],i70=[0,BM],f70=[0,338],c70=[0,352],s70=[0,929],o70=[0,936],v70=[0,8243],a70=[0,928],l70=[0,934],p70=[0,Wj],y70=[0,LU],d70=[0,933],m70=[0,Aj],k70=[0,Fj],h70=[0,Oz],_70=[0,920],w70=[0,932],T70=[0,WU],S70=[0,KD],E70=[0,OD],A70=[0,mj],g70=[0,918],N70=[0,376],I70=[0,XD],P70=[0,926],C70=[0,hj],R70=[0,Pz],O70=[0,925],L70=[0,39],U70=[0,8736],M70=[0,8743],D70=[0,38],j70=[0,945],z70=[0,8501],K70=[0,Aa],J70=[0,8226],Y70=[0,PD],B70=[0,946],X70=[0,8222],W70=[0,kj],V70=[0,Vz],Z70=[0,8776],$70=[0,vz],F70=[0,8773],Q70=[0,9827],H70=[0,XM],q70=[0,967],G70=[0,jD],b70=[0,LI],xu0=[0,bD],ru0=[0,fD],eu0=[0,8595],tu0=[0,8224],nu0=[0,8659],uu0=[0,LT],iu0=[0,8746],fu0=[0,8629],cu0=[0,e5],su0=[0,8745],ou0=[0,8195],vu0=[0,8709],au0=[0,xK],lu0=[0,tK],pu0=[0,mD],yu0=[0,J8],du0=[0,9830],mu0=[0,8707],ku0=[0,8364],hu0=[0,Sz],_u0=[0,ha],wu0=[0,951],Tu0=[0,8801],Su0=[0,949],Eu0=[0,8194],Au0=[0,8805],gu0=[0,947],Nu0=[0,8260],Iu0=[0,mM],Pu0=[0,sj],Cu0=[0,OS],Ru0=[0,8704],Ou0=[0,mT],Lu0=[0,Qg],Uu0=[0,8230],Mu0=[0,9829],Du0=[0,8596],ju0=[0,8660],zu0=[0,62],Ku0=[0,402],Ju0=[0,948],Yu0=[0,gD],Bu0=[0,GS],Xu0=[0,8712],Wu0=[0,GD],Vu0=[0,953],Zu0=[0,8734],$u0=[0,8465],Fu0=[0,Mz],Qu0=[0,8220],Hu0=[0,8968],qu0=[0,8592],Gu0=[0,Rk],bu0=[0,10216],xi0=[0,955],ri0=[0,8656],ei0=[0,954],ti0=[0,60],ni0=[0,8216],ui0=[0,8249],ii0=[0,JD],fi0=[0,9674],ci0=[0,8727],si0=[0,8970],oi0=[0,KS],vi0=[0,8711],ai0=[0,956],li0=[0,8722],pi0=[0,ey],yi0=[0,gC],di0=[0,8212],mi0=[0,kk],ki0=[0,8804],hi0=[0,957],_i0=[0,RU],wi0=[0,8836],Ti0=[0,8713],Si0=[0,RD],Ei0=[0,8715],Ai0=[0,8800],gi0=[0,8853],Ni0=[0,959],Ii0=[0,969],Pi0=[0,8254],Ci0=[0,fz],Ri0=[0,339],Oi0=[0,$5],Li0=[0,Uj],Ui0=[0,qk],Mi0=[0,_8],Di0=[0,8855],ji0=[0,kS],zi0=[0,Qr],Ki0=[0,Gh],Ji0=[0,$9],Yi0=[0,gz],Bi0=[0,hM],Xi0=[0,982],Wi0=[0,960],Vi0=[0,966],Zi0=[0,8869],$i0=[0,8240],Fi0=[0,8706],Qi0=[0,8744],Hi0=[0,8211],qi0=[0,10217],Gi0=[0,8730],bi0=[0,8658],xf0=[0,34],rf0=[0,968],ef0=[0,8733],tf0=[0,8719],nf0=[0,961],uf0=[0,8971],if0=[0,Fz],ff0=[0,8476],cf0=[0,8221],sf0=[0,8969],of0=[0,8594],vf0=[0,eA],af0=[0,Ej],lf0=[0,jN],pf0=[0,8901],yf0=[0,353],df0=[0,8218],mf0=[0,8217],kf0=[0,8250],hf0=[0,8835],_f0=[0,8721],wf0=[0,8838],Tf0=[0,8834],Sf0=[0,9824],Ef0=[0,8764],Af0=[0,962],gf0=[0,963],Nf0=[0,8207],If0=[0,952],Pf0=[0,8756],Cf0=[0,964],Rf0=[0,x8],Of0=[0,8839],Lf0=[0,MU],Uf0=[0,Hj],Mf0=[0,Pv],Df0=[0,8657],jf0=[0,8482],zf0=[0,IT],Kf0=[0,732],Jf0=[0,Pa],Yf0=[0,8201],Bf0=[0,977],Xf0=[0,Cz],Wf0=[0,Ea],Vf0=[0,965],Zf0=[0,978],$f0=[0,OT],Ff0=[0,V4],Qf0=[0,oj],Hf0=[0,Cj],qf0=[0,8205],Gf0=[0,950],bf0=[0,B3],xc0=[0,_z],rc0=[0,H8],ec0=[0,958],tc0=[0,8593],nc0=[0,Xw],uc0=[0,8242],ic0=[0,$D],fc0="unreachable regexp",cc0="unreachable token wholenumber",sc0="unreachable token wholebigint",oc0="unreachable token floatbigint",vc0="unreachable token scinumber",ac0="unreachable token scibigint",lc0="unreachable token hexnumber",pc0="unreachable token hexbigint",yc0="unreachable token legacyoctnumber",dc0="unreachable token legacynonoctnumber",mc0="unreachable token octnumber",kc0="unreachable token octbigint",hc0="unreachable token bignumber",_c0="unreachable token bigint",wc0="unreachable token",Tc0=yz,Sc0=[7,"#!"],Ec0="expected ?",Ac0="unreachable string_escape",gc0=Q2,Nc0=K3,Ic0=K3,Pc0=Q2,Cc0=QE,Rc0=Yj,Oc0="n",Lc0="r",Uc0="t",Mc0=UM,Dc0=K3,jc0=lo,zc0=lo,Kc0="unreachable id_char",Jc0=lo,Yc0=lo,Bc0=K3,Xc0=gM,Wc0=AD,Vc0=xS,Zc0=[23,"token ILLEGAL"],$c0=[0,[11,"the identifier `",[2,0,[12,96,0]]],"the identifier `%s`"],Fc0=[0,1],Qc0=[0,1],Hc0=nD,qc0=nD,Gc0=[0,[11,"an identifier. When exporting a ",[2,0,[11," as a named export, you must specify a ",[2,0,[11," name. Did you mean `export default ",[2,0,[11," ...`?",0]]]]]]],"an identifier. When exporting a %s as a named export, you must specify a %s name. Did you mean `export default %s ...`?"],bc0=fp,xs0="Peeking current location when not available",rs0=[0,"src/parser/parser_env.ml",351,9],es0="Internal Error: Tried to add_declared_private with outside of class scope.",ts0="Internal Error: `exit_class` called before a matching `enter_class`",ns0=wx,us0=[0,0,0],is0=[0,0,0],fs0="Parser_env.Try.Rollback",cs0=wx,ss0=wx,os0=[0,U2,ri,vf,xD,kD,Lf,L2,Ei,Yc,qu,W7,Hn,Ec,Bu,oi,U7,w7,$7,Jf,Xf,Ti,M7,Jn,ai,Lc,h7,Rc,li,Kf,hi,Fn,Xn,rc,hu,Ki,cf,Kc,ze,wf,Si,gc,pf,Rf,Z7,Eu,Ke,Gi,m7,Bi,Ji,Tc,N7,Xu,lc,Me,I7,Zi,pu,Pu,fu,pc,je,su,ac,Uf,mu,zc,Df,b7,$f,fc,Nu,Oi,a7,f7,Lu,X7,S7,wc,vc,D7,Au,Pc,pn,Sf,Yu,bn,Qf,H7,si,bf,ei,kf,ti,r7,Oc,nf,Dc,Wi,ru,Yf,Of,Pi,g7,mf,Y7,Ac,zu,Nc,Cc,i7,$u,yc,Cu,ii,u7,xr,qi,tu,Kn,P7,Ni,Bn,Ou,L7,qf,$i,Vf,Zf,Vn,q7,n7,C7,ui,Mc,xi,du,yf,x7,tc,Sc,Ju,Ui,F1,au,G7,Wc,uu,Di,Mf,Qn,Hu,F2,A7,jf,cu,of,c7,Du,eu,di,R2,_7,t7,k7,It,Su,ou,mi,lu,Yi,jc,ki,zn,af,Gu,If,Fu,Qu,R7,Yn,d7,nc,jn,F7,xc,Vu,iu,wu,Ru,Ci,xu,V7,df,Cf,o7,J7,Zn,Zu,pi,Q1,z7,zf,v7,_f,$n,p7,ef,Uu,gu,cc,kc,xf,Li,Iu,e7,_u,Hi,ff,qn,Ri,ce,Ai,_c,Tf,ec,sf,Gf,ju,Pf,y7,Mi,dc,lf,Mu,Re,Ce,Fi,oc,ic,Wn,Wf,tf,vi,mc,Wu,K7,Bc,s7,nu,Xi,Ff,rj,fi,Zj,ZM,_i,bi,yi,Tu,B7,Jc,Qi,ji,ku,j7,uf,Gn,hc,Xc,ci,T7,Bf,rf,Q7,E7,Le,sc,Ku,un,Nf,zi,O7,uc,yu,Ii,Af,l7,ni,gf,hf],vs0=[0,U2,ri,vf,Lf,L2,Ei,Yc,qu,W7,Hn,Ec,Bu,oi,U7,w7,$7,Jf,Xf,Ti,M7,Jn,ai,Lc,h7,Rc,li,Kf,hi,Fn,Xn,rc,hu,Ki,cf,Kc,ze,wf,Si,gc,pf,Rf,Z7,Eu,Ke,Gi,m7,Bi,Ji,Tc,N7,Xu,lc,Me,I7,Zi,pu,Pu,fu,pc,je,su,ac,Uf,mu,zc,Df,b7,$f,fc,Nu,Oi,a7,f7,Lu,X7,S7,wc,vc,D7,Au,Pc,pn,Sf,Yu,bn,Qf,H7,si,bf,ei,kf,ti,r7,Oc,nf,Dc,Wi,ru,Yf,Of,Pi,g7,mf,Y7,Ac,zu,Nc,Cc,i7,$u,yc,Cu,ii,u7,xr,qi,tu,Kn,P7,Ni,Bn,Ou,L7,qf,$i,Vf,Zf,Vn,q7,n7,C7,ui,Mc,xi,du,yf,x7,tc,Sc,Ju,Ui,F1,au,G7,Wc,uu,Di,Mf,Qn,Hu,F2,A7,jf,cu,of,c7,Du,eu,di,R2,_7,t7,k7,It,Su,ou,mi,lu,Yi,jc,ki,zn,af,Gu,If,Fu,Qu,R7,Yn,d7,nc,jn,F7,xc,Vu,iu,wu,Ru,Ci,xu,V7,df,Cf,o7,J7,Zn,Zu,pi,Q1,z7,zf,v7,_f,$n,p7,ef,Uu,gu,cc,kc,xf,Li,Iu,e7,_u,Hi,ff,qn,Ri,ce,Ai,_c,Tf,ec,sf,Gf,ju,Pf,y7,Mi,dc,lf,Mu,Re,Ce,Fi,oc,ic,Wn,Wf,tf,vi,mc,Wu,K7,Bc,s7,nu,Xi,Ff,fi,_i,bi,yi,Tu,B7,Jc,Qi,ji,ku,j7,uf,Gn,hc,Xc,ci,T7,Bf,rf,Q7,E7,Le,sc,Ku,un,Nf,zi,O7,uc,yu,Ii,Af,l7,ni,gf,hf],as0=[0,Tc,F1,Fu,Su,zn,E7,Nc,Yf,ui,Qn,Ku,Rc,bf,Ke,H7,zf,uf,nf,tc,i7,A7,Ju,Hi,Li,ri,S7,lu,wu,f7,qf,mc,mi,_u,Cu,It,Lf,Cf,fc,Pf,rf,Qu,Bf,yf,Uu,su,jc,Ru,Eu,Pi,t7,Bi,of,ff,L7,yc,ji,bi,Sf,hf,zc,s7,ai,ru,Uf,q7,B7,ei,je,Oc,af,Yu,ii,Mc,x7,ou,P7,oc,Kf,kc,n7,Ni,If,$f,l7,Gf,p7,qi,pu,Pc,ni,Ri,Q7,lc,L2,ac,dc,$7,I7,_7,O7,iu,Kc,Wc,j7,Y7,Z7,ce,V7,li,U2,Bn,cf,Mi,Df,Bu,D7,lf,Pu,uc,Ec,_i,y7,zu,qu,Sc,Xn,Mf,Iu,Zn,si,v7,Ou,vc,o7,Xf,Fn,nu,Ei,rc,N7,Jf,m7,Hn,Jc,jf,Ci,yi,Kn,Gu,Xi,W7,fi,Ac,Vf,yu,tu,Xc,ku,K7,wc,Zf,Bc,xr,R2,Me,w7,Ti,Gi,X7,ze,Re,Cc,k7,Qf,pi,Ui,pn,sc,nc,e7,cu,Tu,z7,R7,au,ki,U7,xf,pc,xc,eu,cc,$n,Wf,mf,Xu,Of,c7,ti,Oi,hi,Wi,mu,r7,M7,sf,ci,ju,Nf,uu,Rf,qn,hu,Yi,fu,di,Dc,hc,g7,du,Qi,Hu,Ai,h7,gf,Yc,_c,T7,Lc,Tf,xi,G7,ic,$i,a7,$u,Di,J7,Vn,Jn,gc,Ii,tf,Lu,zi,Q1,Au,Ff,Zu,Ki,jn,F7,Ji,Ce,Yn,Wu,b7,ef,ec,Si,pf,Vu,_f,oi,xu,bn,un,Du,Gn,C7,kf,d7,Mu,gu,Le,Af,F2,Fi,vf,vi,Zi,df,Wn,Nu,wf,u7],ls0=[0,Tc,F1,Fu,Su,zn,E7,Nc,Yf,ui,Qn,Ku,Rc,bf,Ke,H7,zf,uf,nf,tc,i7,A7,Ju,Hi,Li,ri,S7,lu,wu,f7,qf,mc,mi,_u,Cu,It,Lf,kD,Cf,fc,Pf,rf,Qu,Bf,yf,Uu,su,jc,Ru,Eu,Pi,t7,Bi,of,ff,L7,yc,ji,bi,Sf,hf,zc,s7,Zj,ai,ru,Uf,q7,B7,ei,je,Oc,af,Yu,ii,Mc,x7,ou,P7,oc,Kf,kc,n7,Ni,If,$f,l7,Gf,p7,qi,pu,Pc,ni,Ri,Q7,lc,L2,ac,dc,$7,I7,_7,O7,iu,Kc,Wc,j7,Y7,Z7,ce,V7,li,U2,Bn,cf,Mi,Df,Bu,D7,lf,Pu,uc,Ec,_i,y7,zu,qu,Sc,Xn,Mf,Iu,Zn,si,v7,Ou,vc,o7,Xf,Fn,nu,Ei,rc,N7,Jf,m7,Hn,Jc,jf,Ci,yi,Kn,Gu,Xi,W7,fi,Ac,Vf,yu,tu,Xc,ku,K7,wc,Zf,Bc,xr,R2,Me,w7,Ti,Gi,X7,ze,Re,Cc,k7,Qf,pi,Ui,pn,sc,nc,e7,cu,Tu,z7,R7,au,ki,U7,xf,pc,xc,eu,cc,$n,Wf,mf,Xu,Of,c7,ti,Oi,hi,Wi,mu,r7,M7,sf,ci,ju,Nf,uu,ZM,Rf,qn,hu,Yi,fu,di,Dc,hc,g7,du,Qi,Hu,Ai,h7,rj,gf,Yc,_c,T7,Lc,xD,Tf,xi,G7,ic,$i,a7,$u,Di,J7,Vn,Jn,gc,Ii,tf,Lu,zi,Q1,Au,Ff,Zu,Ki,jn,F7,Ji,Ce,Yn,Wu,b7,ef,ec,Si,pf,Vu,_f,oi,xu,bn,un,Du,Gn,C7,kf,d7,Mu,gu,Le,Af,F2,Fi,vf,vi,Zi,df,Wn,Nu,wf,u7],ps0=la,ys0=Hp,ds0=mo,ms0=Z3,ks0=Me,hs0=Ke,_s0=fv,ws0=ze,Ts0=ny,Ss0=sl,Es0=Mp,As0=ap,gs0=nl,Ns0=ya,Is0=lv,Ps0=As,Cs0=Ts,Rs0=Le,Os0=Jp,Ls0=W8,Us0=Ce,Ms0=cv,Ds0=W5,js0=gp,zs0=d8,Ks0=Y3,Js0=Ic,Ys0=De,Bs0=Rp,Xs0=iv,Ws0=el,Vs0=ws,Zs0=gs,$s0=cl,Fs0=r8,Qs0=R2,Hs0=Ia,qs0=dv,Gs0=F2,bs0=Zp,xo0=kl,ro0=W3,eo0=j3,to0=U2,no0=Re,uo0=Q3,io0=bu,fo0=Oh,co0=Bh,so0=ko,oo0=_v,vo0=n5,ao0=op,lo0=ce,po0=ka,yo0=pv,do0=La,mo0=gs,ko0=_x,ho0=g5,_o0=I8,wo0=G5,To0=N8,So0=Ta,Eo0=al,Ao0=da,go0=F3,No0=S5,Io0=[0,fp],Po0=wx,Co0=[0,1],Ro0=[0,_a,1371,6],Oo0=[0,_a,1374,6],Lo0=[0,_a,1477,8],Uo0=[0,1],Mo0=[0,_a,1494,8],Do0="Can not have both `static` and `proto`",jo0=De,zo0=OP,Ko0=[0,0,0,0],Jo0=[0,0],Yo0=[0,[0,0,0,0,0]],Bo0=al,Xo0=da,Wo0=[0,"a number literal type"],Vo0=[0,0],Zo0=vo,$o0=[0,0],Fo0=[0,"a type"],Qo0=[0,0],Ho0=[0,0],qo0=[16,1],Go0=[16,0],bo0=[0,_a,kS,15],xv0=[0,_a,sE,15],rv0=Ot,ev0=Ot,tv0=I5,nv0=ll,uv0=[0,[11,"Failure while looking up ",[2,0,[11,". Index: ",[4,0,0,0,[11,". Length: ",[4,0,0,0,[12,46,0]]]]]]],"Failure while looking up %s. Index: %d. Length: %d."],iv0=[0,0,0,0],fv0="Offset_utils.Offset_lookup_failed",cv0=a1,sv0=ND,ov0=ll,vv0=I5,av0=dj,lv0=ll,pv0=I5,yv0=S9,dv0=NA,mv0="normal",kv0=bu,hv0="jsxTag",_v0="jsxChild",wv0="template",Tv0=FD,Sv0="context",Ev0=bu,Av0=[6,0],gv0=[0,0],Nv0=[0,1],Iv0=[0,4],Pv0=[0,2],Cv0=[0,3],Rv0=[0,0],Ov0=[0,0,0,0,0,0],Lv0=vo,Uv0=[0,74],Mv0=Ct,Dv0=Ct,jv0=[0,74],zv0=[0,74],Kv0=la,Jv0=[0,wx,0],Yv0=[0,0,0],Bv0=[0,0,0],Xv0=[0,82],Wv0=$2,Vv0=$2,Zv0=[0,"a regular expression"],$v0=wx,Fv0=wx,Qv0=wx,Hv0=[0,"src/parser/expression_parser.ml",1363,17],qv0=[0,"a template literal part"],Gv0=[0,[0,wx,wx],1],bv0=[0,0],xa0=K3,ra0=gM,ea0=xS,ta0=xS,na0=AD,ua0=[0,74],ia0=[0,1],fa0=[0,1],ca0=[0,1],sa0=[0,1],oa0=[0,1],va0=ga,aa0=iv,la0=[0,"the identifier `target`"],pa0=[0,0],ya0=R2,da0=pl,ma0=pl,ka0=Ia,ha0=[0,"either a call or access of `super`"],_a0=Ia,wa0=[0,1],Ta0=[0,0],Sa0=[0,1],Ea0=[0,0],Aa0=[0,1],ga0=[0,0],Na0=[0,2],Ia0=[0,3],Pa0=[0,7],Ca0=[0,6],Ra0=[0,4],Oa0=[0,5],La0=[0,6],Ua0=[0,[0,17,[0,2]]],Ma0=[0,[0,18,[0,3]]],Da0=[0,[0,19,[0,4]]],ja0=[0,[0,0,[0,5]]],za0=[0,[0,1,[0,5]]],Ka0=[0,[0,2,[0,5]]],Ja0=[0,[0,3,[0,5]]],Ya0=[0,[0,5,[0,6]]],Ba0=[0,[0,7,[0,6]]],Xa0=[0,[0,4,[0,6]]],Wa0=[0,[0,6,[0,6]]],Va0=[0,[0,8,[0,7]]],Za0=[0,[0,9,[0,7]]],$a0=[0,[0,10,[0,7]]],Fa0=[0,[0,11,[0,8]]],Qa0=[0,[0,12,[0,8]]],Ha0=[0,[0,15,[0,9]]],qa0=[0,[0,13,[0,9]]],Ga0=[0,[0,14,[1,10]]],ba0=[0,[0,16,[0,9]]],x30=[0,[0,21,[0,6]]],r30=[0,[0,20,[0,6]]],e30=[19,s9],t30=[0,[0,8]],n30=[0,[0,7]],u30=[0,[0,6]],i30=[0,[0,10]],f30=[0,[0,9]],c30=[0,[0,11]],s30=[0,[0,5]],o30=[0,[0,4]],v30=[0,[0,2]],a30=[0,[0,3]],l30=[0,[0,1]],p30=[0,[0,0]],y30=[0,[0,12]],d30=[0,[0,13]],m30=[0,[0,14]],k30=[0,0],h30=Y3,_30=[0,wx,0],w30="unexpected PrivateName in Property, expected a PrivateField",T30=[0,0,0],S30=yo,E30="Must be one of the above",A30=[0,1],g30=[0,1],N30=[0,1],I30=yo,P30=yo,C30=M_,R30="Internal Error: private name found in object props",O30=[0,1],L30=[0,Bk,1852,21],U30=[0,"a declaration, statement or export specifiers"],M30=[0,85],D30=il,j30=[0,wx,wx,0],z30=[0,FU],K30="exports",J30=[0,1],Y30=[0,1],B30=[0,0],X30=Gj,W30=[0,85],V30=vo,Z30=[0,74],$30=[0,0],F30=[0,1],Q30=[0,"the keyword `as`"],H30=[0,34],q30=[0,34],G30=[0,0],b30=[0,1],xl0=[0,FU],rl0=[0,"the keyword `from`"],el0=[0,wx,wx,0],tl0=[0,zj],nl0="Label",ul0=[0,zj],il0=[0,0,0],fl0=[0,43],cl0=[0,Bk,429,22],sl0=[0,42],ol0=[0,Bk,448,22],vl0=[0,0],al0="the token `;`",ll0=[0,0],pl0=[0,0],yl0=IM,dl0=[0,fp],ml0=IM,kl0=[23,It],hl0=Nv,_l0=Hf,wl0=[13,"JSX fragment"],Tl0=[0,tn],Sl0=[1,tn],El0=[0,wx,wx,0],Al0=[0,fp],gl0=wx,Nl0=[0,MD],Il0=[18,[0,0]],Pl0=[0,MD],Cl0=[0,0,0,0],Rl0=pT,Ol0="Nooo: ",Ll0=cv,Ul0="Parser error: No such thing as an expression pattern!",Ml0=[0,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]],Dl0=[0,"src/parser/parser_flow.ml",e5,28],jl0=[0,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]],zl0=ND,Kl0=NA,Jl0=cD,Yl0=Pj,Bl0=Pj,Xl0=cD,Wl0=bu,Vl0=BU,Zl0=j1,$l0=a1,Fl0="InterpreterDirective",Ql0="interpreter",Hl0="Program",ql0=ml,Gl0="BreakStatement",bl0=ml,x60="ContinueStatement",r60="DebuggerStatement",e60=Iv,t60="DeclareExportAllDeclaration",n60=Iv,u60=Tw,i60=ZI,f60=cv,c60="DeclareExportDeclaration",s60=po,o60=j1,v60=Hr,a60="DeclareModule",l60=f2,p60="DeclareModuleExports",y60=wa,d60=j1,m60="DoWhileStatement",k60="EmptyStatement",h60=Dh,_60=ZI,w60="ExportDefaultDeclaration",T60=Dh,S60=AT,E60=Iv,A60="ExportAllDeclaration",g60=Dh,N60=Iv,I60=Tw,P60=ZI,C60="ExportNamedDeclaration",R60="directive",O60=Q1,L60="ExpressionStatement",U60=j1,M60="update",D60=wa,j60=vu,z60="ForStatement",K60="each",J60=j1,Y60=vn,B60=Ss,X60="ForInStatement",W60=_v,V60=j1,Z60=vn,$60=Ss,F60="ForOfStatement",Q60=bj,H60=iI,q60=wa,G60="IfStatement",b60=bu,x40=ws,r40=a1,e40=TM,t40=Iv,n40=Tw,u40="ImportDeclaration",i40=j1,f40=ml,c40="LabeledStatement",s40=Z2,o40="ReturnStatement",v40="cases",a40="discriminant",l40="SwitchStatement",p40=Z2,y40="ThrowStatement",d40="finalizer",m40="handler",k40=un,h40="TryStatement",_40=j1,w40=wa,T40="WhileStatement",S40=j1,E40=qw,A40="WithStatement",g40=wD,N40="ArrayExpression",I40=O2,P40=T5,C40=Q1,R40=je,O40=WE,L40=ko,U40=j1,M40=sn,D40=Hr,j40="ArrowFunctionExpression",z40=M_,K40=vn,J40=Ss,Y40=tl,B40="AssignmentExpression",X40=vn,W40=Ss,V40=tl,Z40="BinaryExpression",$40="CallExpression",F40=bj,Q40=iI,H40=wa,q40="ConditionalExpression",G40=Iv,b40="ImportExpression",xp0=sD,rp0=qz,ep0=s9,tp0=vn,np0=Ss,up0=tl,ip0="LogicalExpression",fp0="MemberExpression",cp0=JN,sp0=pl,op0="MetaProperty",vp0=_N,ap0=Wh,lp0=Lz,pp0="NewExpression",yp0=a9,dp0="ObjectExpression",mp0=nt,kp0="OptionalCallExpression",hp0=nt,_p0="OptionalMemberExpression",wp0=wz,Tp0="SequenceExpression",Sp0="Super",Ep0="ThisExpression",Ap0=f2,gp0=Q1,Np0="TypeCastExpression",Ip0=Q1,Pp0="AsConstExpression",Cp0=f2,Rp0=Q1,Op0="AsExpression",Lp0=f2,Up0=Q1,Mp0="SatisfiesExpression",Dp0=Z2,jp0="AwaitExpression",zp0=Ot,Kp0=Ls,Jp0=OM,Yp0=$j,Bp0=ws,Xp0=gs,Wp0=el,Vp0="matched above",Zp0=Z2,$p0=HU,Fp0=tl,Qp0="UnaryExpression",Hp0=hD,qp0=Az,Gp0=HU,bp0=Z2,x80=tl,r80="UpdateExpression",e80="delegate",t80=Z2,n80="YieldExpression",u80="Unexpected FunctionDeclaration with BodyExpression",i80=O2,f80=T5,c80=Q1,s80=je,o80=WE,v80=ko,a80=j1,l80=sn,p80=Hr,y80="FunctionDeclaration",d80="Unexpected FunctionExpression with BodyExpression",m80=O2,k80=T5,h80=Q1,_80=je,w80=WE,T80=ko,S80=j1,E80=sn,A80=Hr,g80="FunctionExpression",N80=nt,I80=f2,P80=Oe,C80=gA,R80=nt,O80=f2,L80=Oe,U80="PrivateIdentifier",M80=nt,D80=f2,j80=Oe,z80=gA,K80=iI,J80=wa,Y80="SwitchCase",B80=j1,X80="param",W80="CatchClause",V80=j1,Z80="BlockStatement",$80=po,F80=Hr,Q80="DeclareVariable",H80=je,q80=Hr,G80="DeclareFunction",b80=oD,x50=dv,r50=Ic,e50=j1,t50=O2,n50=Hr,u50="DeclareClass",i50=O2,f50=W_,c50=sn,s50=lw,o50=sn,v50=Hr,a50="DeclareComponent",l50=O2,p50=W_,y50=lw,d50=sn,m50="ComponentTypeAnnotation",k50=nt,h50=f2,_50=Oe,w50="ComponentTypeParameter",T50=j1,S50=Hr,E50="DeclareEnum",A50=Ic,g50=j1,N50=O2,I50=Hr,P50="DeclareInterface",C50=a1,R50=bu,O50=AT,L50="ExportNamespaceSpecifier",U50=vn,M50=O2,D50=Hr,j50="DeclareTypeAlias",z50=vn,K50=O2,J50=Hr,Y50="TypeAlias",B50="DeclareOpaqueType",X50="OpaqueType",W50="supertype",V50="impltype",Z50=O2,$50=Hr,F50="ClassDeclaration",Q50="ClassExpression",H50=iy,q50=dv,G50="superTypeParameters",b50="superClass",xy0=O2,ry0=j1,ey0=Hr,ty0=Q1,ny0="Decorator",uy0=O2,iy0=Hr,fy0="ClassImplements",cy0=j1,sy0="ClassBody",oy0=kv,vy0=q3,ay0=Tv,ly0=Oa,py0=iy,yy0=Ca,dy0=De,my0=po,ky0=a1,hy0=ov,_y0="MethodDefinition",wy0=Q3,Ty0=iy,Sy0=L2,Ey0=De,Ay0=Ca,gy0=f2,Ny0=a1,Iy0=ov,Py0=tD,Cy0="Internal Error: Private name found in class prop",Ry0=Q3,Oy0=iy,Ly0=L2,Uy0=De,My0=Ca,Dy0=f2,jy0=a1,zy0=ov,Ky0=tD,Jy0=O2,Yy0=W_,By0=sn,Xy0=Hr,Wy0=j1,Vy0="ComponentDeclaration",Zy0=Z2,$y0=w9,Fy0=vn,Qy0=Ss,Hy0=Ip,qy0=ES,Gy0=fl,by0=Oe,xd0="ComponentParameter",rd0=vu,ed0=Hr,td0="EnumBigIntMember",nd0=Hr,ud0=xM,id0=vu,fd0=Hr,cd0="EnumStringMember",sd0=Hr,od0=xM,vd0=vu,ad0=Hr,ld0="EnumNumberMember",pd0=vu,yd0=Hr,dd0="EnumBooleanMember",md0=V3,kd0=_y,hd0=H3,_d0="EnumBooleanBody",wd0=V3,Td0=_y,Sd0=H3,Ed0="EnumNumberBody",Ad0=V3,gd0=_y,Nd0=H3,Id0="EnumStringBody",Pd0=V3,Cd0=H3,Rd0="EnumSymbolBody",Od0=V3,Ld0=_y,Ud0=H3,Md0="EnumBigIntBody",Dd0=j1,jd0=Hr,zd0="EnumDeclaration",Kd0=Ic,Jd0=j1,Yd0=O2,Bd0=Hr,Xd0="InterfaceDeclaration",Wd0=O2,Vd0=Hr,Zd0="InterfaceExtends",$d0=f2,Fd0=a9,Qd0="ObjectPattern",Hd0=f2,qd0=wD,Gd0="ArrayPattern",bd0=vn,xm0=Ss,rm0=Ip,em0=f2,tm0=Oe,nm0=gA,um0=Z2,im0=w9,fm0=Z2,cm0=w9,sm0=vn,om0=Ss,vm0=Ip,am0=vu,lm0=vu,pm0=Tv,ym0=Oa,dm0=Bj,mm0=Ca,km0=ES,hm0=q3,_m0=po,wm0=a1,Tm0=ov,Sm0=nj,Em0=Z2,Am0=Qj,gm0=vn,Nm0=Ss,Im0=Ip,Pm0=Ca,Cm0=ES,Rm0=q3,Om0=po,Lm0=a1,Um0=ov,Mm0=nj,Dm0=Z2,jm0=Qj,zm0=Ut,Km0=a1,Jm0=va,Ym0=Ut,Bm0=pv,Xm0=a1,Wm0=va,Vm0=Ut,Zm0=a1,$m0=va,Fm0=Ts,Qm0=As,Hm0=Ut,qm0=a1,Gm0=va,bm0="flags",x90=pn,r90="regex",e90=Ut,t90=a1,n90=va,u90=Ut,i90=a1,f90=va,c90=wz,s90="quasis",o90="TemplateLiteral",v90="cooked",a90=Ut,l90="tail",p90=a1,y90="TemplateElement",d90="quasi",m90="tag",k90="TaggedTemplateExpression",h90=sl,_90=ya,w90=nl,T90=po,S90="declarations",E90="VariableDeclaration",A90=vu,g90=Hr,N90="VariableDeclarator",I90="plus",P90=NM,C90=Ta,R90=mo,O90=w_,L90="in-out",U90=po,M90="Variance",D90="AnyTypeAnnotation",j90="MixedTypeAnnotation",z90="EmptyTypeAnnotation",K90="VoidTypeAnnotation",J90="NullLiteralTypeAnnotation",Y90="SymbolTypeAnnotation",B90="NumberTypeAnnotation",X90="BigIntTypeAnnotation",W90="StringTypeAnnotation",V90="BooleanTypeAnnotation",Z90=f2,$90="NullableTypeAnnotation",F90="UnknownTypeAnnotation",Q90="NeverTypeAnnotation",H90="UndefinedTypeAnnotation",q90=da,G90=f2,b90="parameterName",xk0="TypePredicate",rk0=O2,ek0=lw,tk0=T5,nk0=fv,uk0=sn,ik0="FunctionTypeAnnotation",fk0=nt,ck0=f2,sk0=Oe,ok0=CM,vk0=nt,ak0=f2,lk0=Oe,pk0=CM,yk0=[0,0,0,0,0],dk0="internalSlots",mk0="callProperties",kk0="indexers",hk0=a9,_k0="exact",wk0="inexact",Tk0="ObjectTypeAnnotation",Sk0=Bj,Ek0="There should not be computed object type property keys",Ak0=vu,gk0=Tv,Nk0=Oa,Ik0=po,Pk0=L2,Ck0=OP,Rk0=De,Ok0=nt,Lk0=q3,Uk0=a1,Mk0=ov,Dk0="ObjectTypeProperty",jk0=Z2,zk0="ObjectTypeSpreadProperty",Kk0=L2,Jk0=De,Yk0=a1,Bk0=ov,Xk0=Hr,Wk0="ObjectTypeIndexer",Vk0=De,Zk0=a1,$k0="ObjectTypeCallProperty",Fk0=nt,Qk0=L2,Hk0="sourceType",qk0="propType",Gk0="keyTparam",bk0="ObjectTypeMappedTypeProperty",xh0=a1,rh0=q3,eh0=De,th0=nt,nh0=Hr,uh0="ObjectTypeInternalSlot",ih0=j1,fh0=Ic,ch0="InterfaceTypeAnnotation",sh0=DD,oh0="ArrayTypeAnnotation",vh0="falseType",ah0="trueType",lh0="extendsType",ph0="checkType",yh0="ConditionalTypeAnnotation",dh0="typeParameter",mh0="InferTypeAnnotation",kh0=Hr,hh0=Nz,_h0="QualifiedTypeIdentifier",wh0=O2,Th0=Hr,Sh0="GenericTypeAnnotation",Eh0="indexType",Ah0="objectType",gh0="IndexedAccessType",Nh0=nt,Ih0="OptionalIndexedAccessType",Ph0=oA,Ch0="UnionTypeAnnotation",Rh0=oA,Oh0="IntersectionTypeAnnotation",Lh0=Z2,Uh0="TypeofTypeAnnotation",Mh0=Hr,Dh0=Nz,jh0="QualifiedTypeofIdentifier",zh0=Z2,Kh0="KeyofTypeAnnotation",Jh0=Z2,Yh0="ReadOnlyTypeAnnotation",Bh0="elementTypes",Xh0="TupleTypeAnnotation",Wh0=nt,Vh0=L2,Zh0=DD,$h0=ml,Fh0="TupleTypeLabeledElement",Qh0=f2,Hh0=ml,qh0="TupleTypeSpreadElement",Gh0=Ut,bh0=a1,x_0="StringLiteralTypeAnnotation",r_0=Ut,e_0=a1,t_0="NumberLiteralTypeAnnotation",n_0=Ut,u_0=a1,i_0="BigIntLiteralTypeAnnotation",f_0=Ts,c_0=As,s_0=Ut,o_0=a1,v_0="BooleanLiteralTypeAnnotation",a_0="ExistsTypeAnnotation",l_0=f2,p_0=oM,y_0=f2,d_0=oM,m_0=sn,k_0="TypeParameterDeclaration",h_0="usesExtendsBound",__0=cv,w_0=L2,T_0="bound",S_0=Oe,E_0="TypeParameter",A_0=sn,g_0=fM,N_0=sn,I_0=fM,P_0=ga,C_0=Vj,R_0="closingElement",O_0="openingElement",L_0="JSXElement",U_0="closingFragment",M_0=Vj,D_0="openingFragment",j_0="JSXFragment",z_0=Wh,K_0="selfClosing",J_0="attributes",Y_0=Oe,B_0="JSXOpeningElement",X_0="JSXOpeningFragment",W_0=Oe,V_0="JSXClosingElement",Z_0="JSXClosingFragment",$_0=a1,F_0=Oe,Q_0="JSXAttribute",H_0=Z2,q_0="JSXSpreadAttribute",G_0="JSXEmptyExpression",b_0=Q1,xw0="JSXExpressionContainer",rw0=Q1,ew0="JSXSpreadChild",tw0=Ut,nw0=a1,uw0="JSXText",iw0=JN,fw0=qw,cw0="JSXMemberExpression",sw0=Oe,ow0="namespace",vw0="JSXNamespacedName",aw0=Oe,lw0="JSXIdentifier",pw0=AT,yw0=fl,dw0="ExportSpecifier",mw0=fl,kw0="ImportDefaultSpecifier",hw0=fl,_w0="ImportNamespaceSpecifier",ww0=TM,Tw0=fl,Sw0="imported",Ew0="ImportSpecifier",Aw0="Line",gw0="Block",Nw0=a1,Iw0=a1,Pw0="DeclaredPredicate",Cw0="InferredPredicate",Rw0=_N,Ow0=Wh,Lw0=Lz,Uw0=Ca,Mw0=JN,Dw0=qw,jw0="message",zw0=NA,Kw0=dj,Jw0=S9,Yw0=Iv,Bw0=ll,Xw0=I5,Ww0=[0,hf,gf,ni,l7,Af,Ii,yu,uc,O7,zi,Nf,un,Ku,sc,Le,E7,Q7,rf,Bf,T7,ci,Xc,hc,Gn,uf,j7,ku,ji,Qi,Jc,B7,Tu,yi,bi,_i,fi,Ff,Xi,nu,s7,Bc,K7,Wu,mc,vi,tf,Wf,Wn,ic,oc,Fi,Ce,Re,Mu,lf,dc,Mi,y7,Pf,ju,Gf,sf,ec,Tf,_c,Ai,ce,Ri,qn,ff,Hi,_u,e7,Iu,Li,xf,kc,cc,gu,Uu,ef,p7,$n,_f,v7,zf,z7,Q1,pi,Zu,Zn,J7,o7,Cf,df,V7,xu,Ci,Ru,wu,iu,Vu,xc,F7,jn,nc,d7,Yn,R7,Qu,Fu,If,Gu,af,zn,ki,jc,Yi,lu,mi,ou,Su,It,k7,t7,_7,R2,di,eu,Du,c7,of,cu,jf,A7,F2,Hu,Qn,Mf,Di,uu,Wc,G7,au,F1,Ui,Ju,Sc,tc,x7,yf,du,xi,Mc,ui,C7,n7,q7,Vn,Zf,Vf,$i,qf,L7,Ou,Bn,Ni,P7,Kn,tu,qi,xr,u7,ii,Cu,yc,$u,i7,Cc,Nc,zu,Ac,Y7,mf,g7,Pi,Of,Yf,ru,Wi,Dc,nf,Oc,r7,ti,kf,ei,bf,si,H7,Qf,bn,Yu,Sf,pn,Pc,Au,D7,vc,wc,S7,X7,Lu,f7,a7,Oi,Nu,fc,$f,b7,Df,zc,mu,Uf,ac,su,je,pc,fu,Pu,pu,Zi,I7,Me,lc,Xu,N7,Tc,Ji,Bi,m7,Gi,Ke,Eu,Z7,Rf,pf,gc,Si,wf,ze,Kc,cf,Ki,hu,rc,Xn,Fn,hi,Kf,li,Rc,h7,Lc,ai,Jn,M7,Ti,Xf,Jf,$7,w7,U7,oi,Bu,Ec,Hn,W7,qu,Yc,Ei,L2,Lf,vf,ri,U2],Vw0=[0,U2,ri,vf,Lf,L2,Ei,Yc,qu,W7,Hn,Ec,Bu,oi,U7,w7,$7,Jf,Xf,Ti,M7,Jn,ai,Lc,h7,Rc,li,Kf,hi,Fn,Xn,rc,hu,Ki,cf,Kc,ze,wf,Si,gc,pf,Rf,Z7,Eu,Ke,Gi,m7,Bi,Ji,Tc,N7,Xu,lc,Me,I7,Zi,pu,Pu,fu,pc,je,su,ac,Uf,mu,zc,Df,b7,$f,fc,Nu,Oi,a7,f7,Lu,X7,S7,wc,vc,D7,Au,Pc,pn,Sf,Yu,bn,Qf,H7,si,bf,ei,kf,ti,r7,Oc,nf,Dc,Wi,ru,Yf,Of,Pi,g7,mf,Y7,Ac,zu,Nc,Cc,i7,$u,yc,Cu,ii,u7,xr,qi,tu,Kn,P7,Ni,Bn,Ou,L7,qf,$i,Vf,Zf,Vn,q7,n7,C7,ui,Mc,xi,du,yf,x7,tc,Sc,Ju,Ui,F1,au,G7,Wc,uu,Di,Mf,Qn,Hu,F2,A7,jf,cu,of,c7,Du,eu,di,R2,_7,t7,k7,It,Su,ou,mi,lu,Yi,jc,ki,zn,af,Gu,If,Fu,Qu,R7,Yn,d7,nc,jn,F7,xc,Vu,iu,wu,Ru,Ci,xu,V7,df,Cf,o7,J7,Zn,Zu,pi,Q1,z7,zf,v7,_f,$n,p7,ef,Uu,gu,cc,kc,xf,Li,Iu,e7,_u,Hi,ff,qn,Ri,ce,Ai,_c,Tf,ec,sf,Gf,ju,Pf,y7,Mi,dc,lf,Mu,Re,Ce,Fi,oc,ic,Wn,Wf,tf,vi,mc,Wu,K7,Bc,s7,nu,Xi,Ff,fi,_i,bi,yi,Tu,B7,Jc,Qi,ji,ku,j7,uf,Gn,hc,Xc,ci,T7,Bf,rf,Q7,E7,Le,sc,Ku,un,Nf,zi,O7,uc,yu,Ii,Af,l7,ni,gf,hf],Zw0=[0,Tc,F1,Fu,Su,zn,E7,Nc,Yf,ui,Qn,Ku,Rc,bf,Ke,H7,zf,uf,nf,tc,i7,A7,Ju,Hi,Li,ri,S7,lu,wu,f7,qf,mc,mi,_u,Cu,It,Lf,Cf,fc,Pf,rf,Qu,Bf,yf,Uu,su,jc,Ru,Eu,Pi,t7,Bi,of,ff,L7,yc,ji,bi,Sf,hf,zc,s7,ai,ru,Uf,q7,B7,ei,je,Oc,af,Yu,ii,Mc,x7,ou,P7,oc,Kf,kc,n7,Ni,If,$f,l7,Gf,p7,qi,pu,Pc,ni,Ri,Q7,lc,L2,ac,dc,$7,I7,_7,O7,iu,Kc,Wc,j7,Y7,Z7,ce,V7,li,U2,Bn,cf,Mi,Df,Bu,D7,lf,Pu,uc,Ec,_i,y7,zu,qu,Sc,Xn,Mf,Iu,Zn,si,v7,Ou,vc,o7,Xf,Fn,nu,Ei,rc,N7,Jf,m7,Hn,Jc,jf,Ci,yi,Kn,Gu,Xi,W7,fi,Ac,Vf,yu,tu,Xc,ku,K7,wc,Zf,Bc,xr,R2,Me,w7,Ti,Gi,X7,ze,Re,Cc,k7,Qf,pi,Ui,pn,sc,nc,e7,cu,Tu,z7,R7,au,ki,U7,xf,pc,xc,eu,cc,$n,Wf,mf,Xu,Of,c7,ti,Oi,hi,Wi,mu,r7,M7,sf,ci,ju,Nf,uu,Rf,qn,hu,Yi,fu,di,Dc,hc,g7,du,Qi,Hu,Ai,h7,gf,Yc,_c,T7,Lc,Tf,xi,G7,ic,$i,a7,$u,Di,J7,Vn,Jn,gc,Ii,tf,Lu,zi,Q1,Au,Ff,Zu,Ki,jn,F7,Ji,Ce,Yn,Wu,b7,ef,ec,Si,pf,Vu,_f,oi,xu,bn,un,Du,Gn,C7,kf,d7,Mu,gu,Le,Af,F2,Fi,vf,vi,Zi,df,Wn,Nu,wf,u7],$w0="Jsoo_runtime.Error.Exn",Fw0=[0,0],Qw0="use_strict",Hw0=oA,qw0="esproposal_decorators",Gw0="enums",bw0="components",xT0="Internal error: ";function O1(x){if(typeof x=="number")return 0;switch(x[0]){case 0:return[0,O1(x[1])];case 1:return[1,O1(x[1])];case 2:return[2,O1(x[1])];case 3:return[3,O1(x[1])];case 4:return[4,O1(x[1])];case 5:return[5,O1(x[1])];case 6:return[6,O1(x[1])];case 7:return[7,O1(x[1])];case 8:var r=x[1];return[8,r,O1(x[2])];case 9:var e=x[1];return[9,e,e,O1(x[3])];case 10:return[10,O1(x[1])];case 11:return[11,O1(x[1])];case 12:return[12,O1(x[1])];case 13:return[13,O1(x[1])];default:return[14,O1(x[1])]}}function q2(x,r){if(typeof x=="number")return r;switch(x[0]){case 0:return[0,q2(x[1],r)];case 1:return[1,q2(x[1],r)];case 2:return[2,q2(x[1],r)];case 3:return[3,q2(x[1],r)];case 4:return[4,q2(x[1],r)];case 5:return[5,q2(x[1],r)];case 6:return[6,q2(x[1],r)];case 7:return[7,q2(x[1],r)];case 8:var e=x[1];return[8,e,q2(x[2],r)];case 9:var t=x[2],u=x[1];return[9,u,t,q2(x[3],r)];case 10:return[10,q2(x[1],r)];case 11:return[11,q2(x[1],r)];case 12:return[12,q2(x[1],r)];case 13:return[13,q2(x[1],r)];default:return[14,q2(x[1],r)]}}function w1(x,r){if(typeof x=="number")return r;switch(x[0]){case 0:return[0,w1(x[1],r)];case 1:return[1,w1(x[1],r)];case 2:var e=x[1];return[2,e,w1(x[2],r)];case 3:var t=x[1];return[3,t,w1(x[2],r)];case 4:var u=x[3],i=x[2],f=x[1];return[4,f,i,u,w1(x[4],r)];case 5:var o=x[3],a=x[2],y=x[1];return[5,y,a,o,w1(x[4],r)];case 6:var h=x[3],k=x[2],A=x[1];return[6,A,k,h,w1(x[4],r)];case 7:var g=x[3],I=x[2],C=x[1];return[7,C,I,g,w1(x[4],r)];case 8:var R=x[3],L=x[2],U=x[1];return[8,U,L,R,w1(x[4],r)];case 9:var B=x[1];return[9,B,w1(x[2],r)];case 10:return[10,w1(x[1],r)];case 11:var X=x[1];return[11,X,w1(x[2],r)];case 12:var J=x[1];return[12,J,w1(x[2],r)];case 13:var e0=x[2],i0=x[1];return[13,i0,e0,w1(x[3],r)];case 14:var j=x[2],Y=x[1];return[14,Y,j,w1(x[3],r)];case 15:return[15,w1(x[1],r)];case 16:return[16,w1(x[1],r)];case 17:var z=x[1];return[17,z,w1(x[2],r)];case 18:var F=x[1];return[18,F,w1(x[2],r)];case 19:return[19,w1(x[1],r)];case 20:var t0=x[2],$=x[1];return[20,$,t0,w1(x[3],r)];case 21:var f0=x[1];return[21,f0,w1(x[2],r)];case 22:return[22,w1(x[1],r)];case 23:var c0=x[1];return[23,c0,w1(x[2],r)];default:var v0=x[2],s0=x[1];return[24,s0,v0,w1(x[3],r)]}}function xR(x,r,e){return x[1]===r?(x[1]=e,1):0}function Rx(x){throw q0([0,mn,x],1)}function T2(x){throw q0([0,GC,x],1)}function $y(x){return 0<=x?x:-x|0}var rT0=VU;function Zx(x,r){var e=Gx(x),t=Gx(r),u=g1(e+t|0);return Cv(x,0,u,0,e),Cv(r,0,u,e,t),j2(u)}function eT0(x){return x?cZ:sZ}function Fx(x,r){if(!x)return r;var e=x[1];return[0,e,Fx(x[2],r)]}WV(0);var tT0=LK(1),$c=LK(2);function nT0(x){for(var r=VV(0);;){if(!r)return 0;var e=r[2],t=r[1];try{Zc(t)}catch(f){var u=R1(f);if(u[1]!==jK)throw q0(u,0)}var r=e}}function Cl(x,r){return $C(x,r,0,Gx(r))}function BK(x){return Cl($c,x),UK($c,10),Zc($c)}var rR=[0,nT0];function eR(x){return l(rR[1],0)}QC($M,eR);var XK=bV(0)[1],Rl=(4*qV(0)|0)-1|0,uT0=[Qr,oZ,zs(0)];function iT0(x){throw q0(uT0,1)}function Fy(x,r){return r?[0,l(x,r[1])]:0}function WK(x){return 25>>0?x:x+JU|0}function Fc(x){for(var r=0,e=x;;){if(!e)return r;var r=r+1|0,e=e[2]}}function Ol(x){return x?x[1]:Rx(hZ)}function VK(x){return x?x[2]:Rx(kZ)}function Qc(x,r){for(var e=x,t=r;;){if(!e)return t;var u=[0,e[1],t],e=e[2],t=u}}function gx(x){return Qc(x,0)}function Ll(x){if(!x)return 0;var r=x[1];return Fx(r,Ll(x[2]))}function Hc(x,r){if(!r)return 0;var e=r[2],t=l(x,r[1]);return[0,t,Hc(x,e)]}function Qy(x,r){for(var e=0,t=r;;){if(!t)return e;var u=t[2],e=[0,l(x,t[1]),e],t=u}}function S2(x,r){for(var e=r;;){if(!e)return 0;var t=e[2];l(x,e[1]);var e=t}}function b1(x,r,e){for(var t=r,u=e;;){if(!u)return t;var i=u[2],t=p(x,t,u[1]),u=i}}function tR(x,r,e){if(!r)return e;var t=r[1];return p(x,t,tR(x,r[2],e))}function ZK(x,r,e){for(var t=r,u=e;;){if(t){if(u){var i=u[2],f=t[2];p(x,t[1],u[1]);var t=f,u=i;continue}}else if(!u)return 0;return T2(mZ)}}function nR(x,r){for(var e=r;;){if(!e)return 0;var t=e[2],u=SK(e[1],x)===0?1:0;if(u)return u;var e=t}}function Ul(x){var r=0;return function(e){for(var t=r,u=e;;){if(!u)return gx(t);var i=u[2],f=u[1];if(l(x,f)){var t=[0,f,t],u=i;continue}var u=i}}}function Lv(x,r){var e=g1(x);return EV(e,0,x,r),e}function $K(x){var r=ft(x),e=g1(r);return Us(x,0,e,0,r),e}function FK(x,r,e){if(0<=r&&0<=e&&(ft(x)-e|0)>=r){var t=g1(e);return Us(x,r,t,0,e),t}return T2(TZ)}function Ya(x,r,e){return j2(FK(x,r,e))}function QK(x,r,e,t,u){return 0<=u&&0<=r&&(ft(x)-u|0)>=r&&0<=t&&(ft(e)-u|0)>=t?Us(x,r,e,t,u):T2(wZ)}function Bs(x,r,e,t,u){return 0<=u&&0<=r&&(Gx(x)-u|0)>=r&&0<=t&&(ft(e)-u|0)>=t?Cv(x,r,e,t,u):T2(_Z)}function Hy(x,r){return j2(Lv(x,r))}function z2(x,r,e){return j2(FK(Vc(x),r,e))}function HK(x,r){var e=Gx(x),t=e<=Gx(r)?1:0;if(!t)return t;for(var u=0;;){if(u===e)return 1;if(ix(r,u)!==ix(x,u))return 0;var u=u+1|0}}var fT0=Ex;function qK(x,r){var e=r.length-1-1|0,t=0;if(e>=0)for(var u=t;;){l(x,r[1+u]);var i=u+1|0;if(e!==u){var u=i;continue}break}return 0}function qy(x,r){var e=r.length-1;if(e===0)return[0];var t=za(e,l(x,r[1])),u=e-1|0,i=1;if(u>=1)for(var f=i;;){t[1+f]=l(x,r[1+f]);var o=f+1|0;if(u!==f){var f=o;continue}break}return t}function Ml(x){if(!x)return[0];for(var r=0,e=x,t=x[2],u=x[1];;){if(e){var r=r+1|0,e=e[2];continue}for(var i=za(r,u),f=1,o=t;;){if(!o)return i;var a=o[2];i[1+f]=o[1];var f=f+1|0,o=a}}}function GK(x){try{var r=[0,Sl(x)];return r}catch(t){var e=R1(t);if(e[1]===mn)return 0;throw q0(e,0)}}function uR(x){function r(Q){return Q?Q[5]:0}function e(Q,G,V,p0){var d0=r(Q),A0=r(p0),M=A0<=d0?d0+1|0:A0+1|0;return[0,Q,G,V,p0,M]}function t(Q,G){return[0,0,Q,G,0,1]}function u(Q,G,V,p0){var d0=Q?Q[5]:0,A0=p0?p0[5]:0;if((A0+2|0)=A0){var K=A0<=d0?d0+1|0:A0+1|0;return[0,Q,G,V,p0,K]}if(!p0)return T2(OZ);var H0=p0[4],sx=p0[3],ux=p0[2],z0=p0[1],Px=r(z0);if(Px<=r(H0))return e(e(Q,G,V,z0),ux,sx,H0);if(!z0)return T2(RZ);var kx=z0[3],$x=z0[2],Qx=z0[1],j0=e(z0[4],ux,sx,H0);return e(e(Q,G,V,Qx),$x,kx,j0)}var i=0;function f(Q){return Q?0:1}function o(Q,G,V){if(!V)return[0,0,Q,G,0,1];var p0=V[4],d0=V[3],A0=V[2],M=V[1],L0=V[5],V0=p(x[1],Q,A0);if(V0===0)return d0===G?V:[0,M,Q,G,p0,L0];if(0<=V0){var B0=o(Q,G,p0);return p0===B0?V:u(M,A0,d0,B0)}var vx=o(Q,G,M);return M===vx?V:u(vx,A0,d0,p0)}function a(Q,G){for(var V=G;;){if(!V)throw q0(w2,1);var p0=V[4],d0=V[3],A0=V[1],M=p(x[1],Q,V[2]);if(M===0)return d0;var L0=0<=M?p0:A0,V=L0}}function y(Q,G){for(var V=G;;){if(!V)throw q0(w2,1);var p0=V[2],d0=V[4],A0=V[3],M=V[1];if(!l(Q,p0)){var V=d0;continue}for(var L0=p0,V0=A0,B0=M;;){if(!B0)return[0,L0,V0];var vx=B0[2],b0=B0[4],hx=B0[3],W0=B0[1];if(l(Q,vx)){var L0=vx,V0=hx,B0=W0;continue}var B0=b0}}}function h(Q,G){for(var V=G;;){if(!V)return 0;var p0=V[2],d0=V[4],A0=V[3],M=V[1];if(!l(Q,p0)){var V=d0;continue}for(var L0=p0,V0=A0,B0=M;;){if(!B0)return[0,[0,L0,V0]];var vx=B0[2],b0=B0[4],hx=B0[3],W0=B0[1];if(l(Q,vx)){var L0=vx,V0=hx,B0=W0;continue}var B0=b0}}}function k(Q,G){for(var V=G;;){if(!V)throw q0(w2,1);var p0=V[2],d0=V[4],A0=V[3],M=V[1];if(!l(Q,p0)){var V=M;continue}for(var L0=p0,V0=A0,B0=d0;;){if(!B0)return[0,L0,V0];var vx=B0[2],b0=B0[4],hx=B0[3],W0=B0[1];if(l(Q,vx)){var L0=vx,V0=hx,B0=b0;continue}var B0=W0}}}function A(Q,G){for(var V=G;;){if(!V)return 0;var p0=V[2],d0=V[4],A0=V[3],M=V[1];if(!l(Q,p0)){var V=M;continue}for(var L0=p0,V0=A0,B0=d0;;){if(!B0)return[0,[0,L0,V0]];var vx=B0[2],b0=B0[4],hx=B0[3],W0=B0[1];if(l(Q,vx)){var L0=vx,V0=hx,B0=b0;continue}var B0=W0}}}function g(Q,G){for(var V=G;;){if(!V)return 0;var p0=V[4],d0=V[3],A0=V[1],M=p(x[1],Q,V[2]);if(M===0)return[0,d0];var L0=0<=M?p0:A0,V=L0}}function I(Q,G){for(var V=G;;){if(!V)return 0;var p0=V[4],d0=V[1],A0=p(x[1],Q,V[2]),M=A0===0?1:0;if(M)return M;var L0=0<=A0?p0:d0,V=L0}}function C(Q){for(var G=Q;;){if(!G)throw q0(w2,1);var V=G[1];if(!V)return[0,G[2],G[3]];var G=V}}function R(Q){for(var G=Q;;){if(!G)return 0;var V=G[1];if(!V)return[0,[0,G[2],G[3]]];var G=V}}function L(Q){for(var G=Q;;){if(!G)throw q0(w2,1);if(!G[4])return[0,G[2],G[3]];var G=G[4]}}function U(Q){for(var G=Q;;){if(!G)return 0;if(!G[4])return[0,[0,G[2],G[3]]];var G=G[4]}}function B(Q){if(!Q)return T2(AZ);var G=Q[1];if(!G)return Q[4];var V=Q[4],p0=Q[3],d0=Q[2];return u(B(G),d0,p0,V)}function X(Q,G){if(!Q)return G;if(!G)return Q;var V=C(G),p0=V[2],d0=V[1];return u(Q,d0,p0,B(G))}function J(Q,G){if(!G)return 0;var V=G[4],p0=G[3],d0=G[2],A0=G[1],M=p(x[1],Q,d0);if(M===0)return X(A0,V);if(0<=M){var L0=J(Q,V);return V===L0?G:u(A0,d0,p0,L0)}var V0=J(Q,A0);return A0===V0?G:u(V0,d0,p0,V)}function e0(Q,G,V){if(!V){var p0=l(G,0);return p0?[0,0,Q,p0[1],0,1]:0}var d0=V[4],A0=V[3],M=V[2],L0=V[1],V0=V[5],B0=p(x[1],Q,M);if(B0===0){var vx=l(G,[0,A0]);if(!vx)return X(L0,d0);var b0=vx[1];return A0===b0?V:[0,L0,Q,b0,d0,V0]}if(0<=B0){var hx=e0(Q,G,d0);return d0===hx?V:u(L0,M,A0,hx)}var W0=e0(Q,G,L0);return L0===W0?V:u(W0,M,A0,d0)}function i0(Q,G){for(var V=G;;){if(!V)return 0;var p0=V[4],d0=V[3],A0=V[2];i0(Q,V[1]),p(Q,A0,d0);var V=p0}}function j(Q,G){if(!G)return 0;var V=G[5],p0=G[4],d0=G[3],A0=G[2],M=j(Q,G[1]),L0=l(Q,d0);return[0,M,A0,L0,j(Q,p0),V]}function Y(Q,G){if(!G)return 0;var V=G[2],p0=G[5],d0=G[4],A0=G[3],M=Y(Q,G[1]),L0=p(Q,V,A0);return[0,M,V,L0,Y(Q,d0),p0]}function z(Q,G,V){for(var p0=G,d0=V;;){if(!p0)return d0;var A0=p0[4],M=p0[3],L0=p0[2],V0=G0(Q,L0,M,z(Q,p0[1],d0)),p0=A0,d0=V0}}function F(Q,G){for(var V=G;;){if(!V)return 1;var p0=V[4],d0=V[1],A0=p(Q,V[2],V[3]);if(A0){var M=F(Q,d0);if(M){var V=p0;continue}var L0=M}else var L0=A0;return L0}}function t0(Q,G){for(var V=G;;){if(!V)return 0;var p0=V[4],d0=V[1],A0=p(Q,V[2],V[3]);if(A0)var M=A0;else{var L0=t0(Q,d0);if(!L0){var V=p0;continue}var M=L0}return M}}function $(Q,G,V){if(!V)return t(Q,G);var p0=V[4],d0=V[3],A0=V[2];return u($(Q,G,V[1]),A0,d0,p0)}function f0(Q,G,V){if(!V)return t(Q,G);var p0=V[3],d0=V[2],A0=V[1];return u(A0,d0,p0,f0(Q,G,V[4]))}function c0(Q,G,V,p0){if(!Q)return $(G,V,p0);if(!p0)return f0(G,V,Q);var d0=p0[5],A0=Q[5],M=p0[4],L0=p0[3],V0=p0[2],B0=p0[1],vx=Q[4],b0=Q[3],hx=Q[2],W0=Q[1];return(d0+2|0)x[3])throw q0([0,Tr,DZ],1);if((e+r|0)<=x[3])return 0;throw q0([0,Tr,jZ],1)}}function ct(x,r){var e=x[2];return x[3]<=e&&cR(x,1),Xr(x[1],e,r),x[2]=e+1|0,0}function xJ(x,r,e,t){var u=e<0?1:0;if(u)var f=u;else var i=t<0?1:0,f=i||((Gx(r)-t|0)=u+J5>>>0&&(i=1):65<=u&&(i=1);else{var f=0;if(u===32)f=1;else if(43<=u)switch(u+C9|0){case 5:if(t<(e+2|0)&&1>>0?33>>0&&(i=1):u===2&&(i=1),!i){var r=r+1|0;continue}var f=Vc(x),o=[0,0],a=ft(f)-1|0,y=0;if(a>=0)for(var h=y;;){var k=se(f,h),A=0;if(32<=k){var g=k-34|0,I=0;if(58>>0?93>g&&(I=1):56>>0?A=1:I=1,I){var C=1;A=2}}else 11<=k?k===13&&(A=1):8<=k&&(A=1);switch(A){case 0:var C=4;break;case 1:var C=2;break}o[1]=o[1]+C|0;var R=h+1|0;if(a!==h){var h=R;continue}break}if(o[1]===ft(f))var L=$K(f);else{var U=g1(o[1]);o[1]=0;var B=ft(f)-1|0,X=0;if(B>=0)for(var J=X;;){var e0=se(f,J),i0=0;if(35<=e0)e0===92?i0=2:Jr<=e0?i0=1:i0=3;else if(32<=e0)34<=e0?i0=2:i0=3;else if(14<=e0)i0=1;else switch(e0){case 8:Xr(U,o[1],92),o[1]++,Xr(U,o[1],98);break;case 9:Xr(U,o[1],92),o[1]++,Xr(U,o[1],Ns);break;case 10:Xr(U,o[1],92),o[1]++,Xr(U,o[1],P1);break;case 13:Xr(U,o[1],92),o[1]++,Xr(U,o[1],Vi);break;default:i0=1}switch(i0){case 1:Xr(U,o[1],92),o[1]++,Xr(U,o[1],48+(e0/Uc|0)|0),o[1]++,Xr(U,o[1],48+((e0/10|0)%10|0)|0),o[1]++,Xr(U,o[1],48+(e0%10|0)|0);break;case 2:Xr(U,o[1],92),o[1]++,Xr(U,o[1],e0);break;case 3:Xr(U,o[1],e0);break}o[1]++;var j=J+1|0;if(B!==J){var J=j;continue}break}var L=U}var t=j2(L)}var Y=Gx(t),z=Lv(Y+2|0,34);return Cv(t,0,z,1,Y),j2(z)}}function uJ(x,r){var e=$y(r),t=U$[1];switch(x[2]){case 0:var u=Cs;break;case 1:var u=Pt;break;case 2:var u=69;break;case 3:var u=tt;break;case 4:var u=71;break;case 5:var u=t;break;case 6:var u=ln;break;case 7:var u=72;break;default:var u=70}var i=rJ(16);switch(Wa(i,37),x[1]){case 0:break;case 1:Wa(i,43);break;default:Wa(i,32)}return 8<=x[2]&&Wa(i,35),Wa(i,46),E2(i,wx+e),Wa(i,u),tJ(i)}function by(x,r){if(13>x)return r;var e=[0,0],t=Gx(r)-1|0,u=0;if(t>=0)for(var i=u;;){9>=ix(r,i)+B1>>>0&&e[1]++;var f=i+1|0;if(t!==i){var i=f;continue}break}var o=e[1],a=g1(Gx(r)+((o-1|0)/3|0)|0),y=[0,0];function h(L){return Da(a,y[1],L),y[1]++,0}var k=[0,((o-1|0)%3|0)+1|0],A=Gx(r)-1|0,g=0;if(A>=0)for(var I=g;;){var C=ix(r,I);9>>0||(k[1]===0&&(h(95),k[1]=3),k[1]+=-1),h(C);var R=I+1|0;if(A!==I){var I=R;continue}break}return j2(a)}function oT0(x,r){switch(x){case 1:var e=_F;break;case 2:var e=wF;break;case 4:var e=TF;break;case 5:var e=SF;break;case 6:var e=EF;break;case 7:var e=AF;break;case 8:var e=gF;break;case 9:var e=NF;break;case 10:var e=IF;break;case 11:var e=PF;break;case 0:case 13:var e=CF;break;case 3:case 14:var e=RF;break;default:var e=OF}return by(x,zy(e,r))}function vT0(x,r){switch(x){case 1:var e=F$;break;case 2:var e=Q$;break;case 4:var e=H$;break;case 5:var e=q$;break;case 6:var e=G$;break;case 7:var e=b$;break;case 8:var e=xF;break;case 9:var e=rF;break;case 10:var e=eF;break;case 11:var e=tF;break;case 0:case 13:var e=nF;break;case 3:case 14:var e=uF;break;default:var e=iF}return by(x,zy(e,r))}function aT0(x,r){switch(x){case 1:var e=M$;break;case 2:var e=D$;break;case 4:var e=j$;break;case 5:var e=z$;break;case 6:var e=K$;break;case 7:var e=J$;break;case 8:var e=Y$;break;case 9:var e=B$;break;case 10:var e=X$;break;case 11:var e=W$;break;case 0:case 13:var e=V$;break;case 3:case 14:var e=Z$;break;default:var e=$$}return by(x,zy(e,r))}function lT0(x,r){switch(x){case 1:var e=fF;break;case 2:var e=cF;break;case 4:var e=sF;break;case 5:var e=oF;break;case 6:var e=vF;break;case 7:var e=aF;break;case 8:var e=lF;break;case 9:var e=pF;break;case 10:var e=yF;break;case 11:var e=dF;break;case 0:case 13:var e=mF;break;case 3:case 14:var e=kF;break;default:var e=hF}return by(x,CV(e,r))}function Xs(x,r,e){function t(X){switch(x[1]){case 0:var J=45;break;case 1:var J=43;break;default:var J=32}return gV(e,r,J)}function u(X){var J=cV(e);return J===3?e<0?R$:O$:4<=J?C$:X}switch(x[2]){case 5:for(var i=BC(uJ(x,r),e),f=0,o=Gx(i);;){if(f===o)var a=0;else{var y=C1(i,f)+gv|0,h=0;if(23>>0?y===55&&(h=1):21>>0&&(h=1),!h){var f=f+1|0;continue}var a=1}var k=a?i:Zx(i,L$);return u(k)}case 6:return t(0);case 7:var A=Vc(t(0)),g=ft(A);if(g===0)var I=A;else{var C=g1(g),R=g-1|0,L=0;if(R>=0)for(var U=L;;){Xr(C,U,WK(se(A,U)));var B=U+1|0;if(R!==U){var U=B;continue}break}var I=C}return j2(I);case 8:return u(t(0));default:return BC(uJ(x,r),e)}}function xd(x,r,e,t,u,i,f){if(typeof t=="number"){if(typeof u=="number")return u?function(g,I){return jr(x,[4,r,Va(g,p(i,f,I))],e)}:function(g){return jr(x,[4,r,p(i,f,g)],e)};var o=u[1];return function(g){return jr(x,[4,r,Va(o,p(i,f,g))],e)}}if(t[0]===0){var a=t[2],y=t[1];if(typeof u=="number")return u?function(g,I){return jr(x,[4,r,Be(y,a,Va(g,p(i,f,I)))],e)}:function(g){return jr(x,[4,r,Be(y,a,p(i,f,g))],e)};var h=u[1];return function(g){return jr(x,[4,r,Be(y,a,Va(h,p(i,f,g)))],e)}}var k=t[1];if(typeof u=="number")return u?function(g,I,C){return jr(x,[4,r,Be(k,g,Va(I,p(i,f,C)))],e)}:function(g,I){return jr(x,[4,r,Be(k,g,p(i,f,I))],e)};var A=u[1];return function(g,I){return jr(x,[4,r,Be(k,g,Va(A,p(i,f,I)))],e)}}function aR(x,r,e,t,u){if(typeof t=="number")return function(a){return jr(x,[4,r,l(u,a)],e)};if(t[0]===0){var i=t[2],f=t[1];return function(a){return jr(x,[4,r,Be(f,i,l(u,a))],e)}}var o=t[1];return function(a,y){return jr(x,[4,r,Be(o,a,l(u,y))],e)}}function Kl(x,r,e,t){for(var u=r,i=e,f=t;;){if(typeof f=="number")return l(u,i);switch(f[0]){case 0:var o=f[1];return function(P0){return jr(u,[5,i,P0],o)};case 1:var a=f[1];return function(P0){var N0=0;if(40<=P0)if(P0===92)var J0=vZ;else Jr<=P0?N0=1:N0=2;else if(32<=P0)if(39<=P0)var J0=aZ;else N0=2;else if(14<=P0)N0=1;else switch(P0){case 8:var J0=lZ;break;case 9:var J0=pZ;break;case 10:var J0=yZ;break;case 13:var J0=dZ;break;default:N0=1}switch(N0){case 1:var I0=g1(4);Xr(I0,0,92),Xr(I0,1,48+(P0/Uc|0)|0),Xr(I0,2,48+((P0/10|0)%10|0)|0),Xr(I0,3,48+(P0%10|0)|0);var J0=j2(I0);break;case 2:var Q=g1(1);Xr(Q,0,P0);var J0=j2(Q);break}var G=Gx(J0),V=Lv(G+2|0,39);return Cv(J0,0,V,1,G),jr(u,[4,i,j2(V)],a)};case 2:var y=f[2],h=f[1];return aR(u,i,y,h,function(P0){return P0});case 3:return aR(u,i,f[2],f[1],sT0);case 4:return xd(u,i,f[4],f[2],f[3],oT0,f[1]);case 5:return xd(u,i,f[4],f[2],f[3],vT0,f[1]);case 6:return xd(u,i,f[4],f[2],f[3],aT0,f[1]);case 7:return xd(u,i,f[4],f[2],f[3],lT0,f[1]);case 8:var k=f[4],A=f[3],g=f[2],I=f[1];if(typeof g=="number"){if(typeof A=="number")return A?function(P0,N0){return jr(u,[4,i,Xs(I,P0,N0)],k)}:function(P0){return jr(u,[4,i,Xs(I,oR(I),P0)],k)};var C=A[1];return function(P0){return jr(u,[4,i,Xs(I,C,P0)],k)}}if(g[0]===0){var R=g[2],L=g[1];if(typeof A=="number")return A?function(P0,N0){return jr(u,[4,i,Be(L,R,Xs(I,P0,N0))],k)}:function(P0){return jr(u,[4,i,Be(L,R,Xs(I,oR(I),P0))],k)};var U=A[1];return function(P0){return jr(u,[4,i,Be(L,R,Xs(I,U,P0))],k)}}var B=g[1];if(typeof A=="number")return A?function(P0,N0,J0){return jr(u,[4,i,Be(B,P0,Xs(I,N0,J0))],k)}:function(P0,N0){return jr(u,[4,i,Be(B,P0,Xs(I,oR(I),N0))],k)};var X=A[1];return function(P0,N0){return jr(u,[4,i,Be(B,P0,Xs(I,X,N0))],k)};case 9:return aR(u,i,f[2],f[1],eT0);case 10:var i=[7,i],f=f[1];continue;case 11:var i=[2,i,f[1]],f=f[2];continue;case 12:var i=[3,i,f[1]],f=f[2];continue;case 13:var J=f[3],e0=f[2],i0=rJ(16);vR(i0,e0);var j=tJ(i0);return function(P0){return jr(u,[4,i,j],J)};case 14:var Y=f[3],z=f[2];return function(P0){var N0=P0[1],J0=o1(N0,O1(x2(z)));if(typeof J0[2]=="number")return jr(u,i,w1(J0[1],Y));throw q0(d2,1)};case 15:var F=f[1];return function(P0,N0){return jr(u,[6,i,function(J0){return p(P0,J0,N0)}],F)};case 16:var t0=f[1];return function(P0){return jr(u,[6,i,P0],t0)};case 17:var i=[0,i,f[1]],f=f[2];continue;case 18:var $=f[1];if($[0]===0){var f0=f[2],c0=$[1][1],v0=0,u=function(I0,Q,G){return function(V){return jr(Q,[1,I0,[0,V]],G)}}(i,u,f0),i=v0,f=c0;continue}var s0=f[2],o0=$[1][1],E0=0,u=function(P0,N0,J0){return function(I0){return jr(N0,[1,P0,[1,I0]],J0)}}(i,u,s0),i=E0,f=o0;continue;case 19:throw q0([0,Tr,k$],1);case 20:var k0=f[3],M0=[8,i,h$];return function(P0){return jr(u,M0,k0)};case 21:var D0=f[2];return function(P0){return jr(u,[4,i,zy(qD,P0)],D0)};case 22:var cx=f[1];return function(P0){return jr(u,[5,i,P0],cx)};case 23:var g0=f[2],Z0=f[1];if(typeof Z0=="number")switch(Z0){case 0:return x<50?t1(x+1|0,u,i,g0):y2(t1,[0,u,i,g0]);case 1:return x<50?t1(x+1|0,u,i,g0):y2(t1,[0,u,i,g0]);case 2:throw q0([0,Tr,_$],1);default:return x<50?t1(x+1|0,u,i,g0):y2(t1,[0,u,i,g0])}switch(Z0[0]){case 0:return x<50?t1(x+1|0,u,i,g0):y2(t1,[0,u,i,g0]);case 1:return x<50?t1(x+1|0,u,i,g0):y2(t1,[0,u,i,g0]);case 2:return x<50?t1(x+1|0,u,i,g0):y2(t1,[0,u,i,g0]);case 3:return x<50?t1(x+1|0,u,i,g0):y2(t1,[0,u,i,g0]);case 4:return x<50?t1(x+1|0,u,i,g0):y2(t1,[0,u,i,g0]);case 5:return x<50?t1(x+1|0,u,i,g0):y2(t1,[0,u,i,g0]);case 6:return x<50?t1(x+1|0,u,i,g0):y2(t1,[0,u,i,g0]);case 7:return x<50?t1(x+1|0,u,i,g0):y2(t1,[0,u,i,g0]);case 8:return x<50?t1(x+1|0,u,i,g0):y2(t1,[0,u,i,g0]);case 9:var n0=Z0[2];return x<50?lR(x+1|0,u,i,n0,g0):y2(lR,[0,u,i,n0,g0]);case 10:return x<50?t1(x+1|0,u,i,g0):y2(t1,[0,u,i,g0]);default:return x<50?t1(x+1|0,u,i,g0):y2(t1,[0,u,i,g0])}default:var nx=f[3],xx=f[1],yx=l(f[2],0);return x<50?pR(x+1|0,u,i,nx,xx,yx):y2(pR,[0,u,i,nx,xx,yx])}}}function lR(x,r,e,t,u){if(typeof t=="number")return x<50?t1(x+1|0,r,e,u):y2(t1,[0,r,e,u]);switch(t[0]){case 0:var i=t[1];return function(X){return st(r,e,i,u)};case 1:var f=t[1];return function(X){return st(r,e,f,u)};case 2:var o=t[1];return function(X){return st(r,e,o,u)};case 3:var a=t[1];return function(X){return st(r,e,a,u)};case 4:var y=t[1];return function(X){return st(r,e,y,u)};case 5:var h=t[1];return function(X){return st(r,e,h,u)};case 6:var k=t[1];return function(X){return st(r,e,k,u)};case 7:var A=t[1];return function(X){return st(r,e,A,u)};case 8:var g=t[2];return function(X){return st(r,e,g,u)};case 9:var I=t[3],C=t[2],R=o2(x2(t[1]),C);return function(X){return st(r,e,q2(R,I),u)};case 10:var L=t[1];return function(X,J){return st(r,e,L,u)};case 11:var U=t[1];return function(X){return st(r,e,U,u)};case 12:var B=t[1];return function(X){return st(r,e,B,u)};case 13:throw q0([0,Tr,w$],1);default:throw q0([0,Tr,T$],1)}}function t1(x,r,e,t){var u=[8,e,S$];return x<50?Kl(x+1|0,r,u,t):y2(Kl,[0,r,u,t])}function pR(x,r,e,t,u,i){if(u){var f=u[1];return function(a){return pT0(r,e,t,f,l(i,a))}}var o=[4,e,i];return x<50?Kl(x+1|0,r,o,t):y2(Kl,[0,r,o,t])}function jr(x,r,e){return HC(Kl(0,x,r,e))}function st(x,r,e,t){return HC(lR(0,x,r,e,t))}function pT0(x,r,e,t,u){return HC(pR(0,x,r,e,t,u))}function Ws(x,r){for(var e=r;;){if(typeof e=="number")return 0;switch(e[0]){case 0:var t=e[1],u=nJ(e[2]);return Ws(x,t),Cl(x,u);case 1:var i=e[2],f=e[1];if(i[0]===0){var o=i[1];Ws(x,f),Cl(x,E$);var e=o;continue}var a=i[1];Ws(x,f),Cl(x,A$);var e=a;continue;case 6:var y=e[2];return Ws(x,e[1]),l(y,x);case 7:return Ws(x,e[1]),Zc(x);case 8:var h=e[2];return Ws(x,e[1]),T2(h);case 2:case 4:var k=e[2];return Ws(x,e[1]),Cl(x,k);default:var A=e[2];return Ws(x,e[1]),UK(x,A)}}}function Vs(x,r){for(var e=r;;){if(typeof e=="number")return 0;switch(e[0]){case 0:var t=e[1],u=nJ(e[2]);return Vs(x,t),vr(x,u);case 1:var i=e[2],f=e[1];if(i[0]===0){var o=i[1];Vs(x,f),vr(x,g$);var e=o;continue}var a=i[1];Vs(x,f),vr(x,N$);var e=a;continue;case 6:var y=e[2];return Vs(x,e[1]),vr(x,l(y,0));case 7:var e=e[1];continue;case 8:var h=e[2];return Vs(x,e[1]),T2(h);case 2:case 4:var k=e[2];return Vs(x,e[1]),vr(x,k);default:var A=e[2];return Vs(x,e[1]),ct(x,A)}}}function iJ(x,r){var e=r[1],t=0;return jr(function(u){return Ws(x,u),0},t,e)}function yR(x){return iJ($c,x)}function Ar(x){var r=x[1];return jr(function(e){var t=Zr(64);return Vs(t,e),z1(t)},0,r)}var dR=[0,0];function mR(x,r){var e=x[1+r];if(!(1-(typeof e=="number"?1:0)))return l(Ar(aQ),e);if(Ov(e)===Ea)return l(Ar(lQ),e);if(Ov(e)!==H8)return pQ;for(var t=BC("%.12g",e),u=0,i=Gx(t);;){if(i<=u)return Zx(t,fZ);var f=C1(t,u),o=0;if(48<=f?58>f&&(o=1):f===45&&(o=1),!o)return t;var u=u+1|0}}function fJ(x,r){if(x.length-1<=r)return BF;var e=fJ(x,r+1|0),t=mR(x,r);return p(Ar(XF),t,e)}function rd(x){for(var r=dR[1];;){if(r){var e=0,t=r[2],u=r[1];try{var i=l(u,x)}catch{e=1}var f=0;if(e||!i)f=1;else var o=[0,i[1]];if(f){var r=t;continue}}else var o=0;if(o)return o[1];if(x===qC)return tQ;if(x===KK)return nQ;if(x[1]===zK){var a=x[2],y=a[3],h=a[2],k=a[1];return Je(Ar(bC),k,h,y,y+5|0,uQ)}if(x[1]===Tr){var A=x[2],g=A[3],I=A[2],C=A[1];return Je(Ar(bC),C,I,g,g+6|0,iQ)}if(x[1]===Il){var R=x[2],L=R[3],U=R[2],B=R[1];return Je(Ar(bC),B,U,L,L+6|0,fQ)}if(Ov(x)!==0)return x[1];var X=x.length-1,J=x[1][1];if(2>>0)var e0=fJ(x,2),i0=mR(x,1),j=p(Ar(cQ),i0,e0);else switch(X){case 0:var j=sQ;break;case 1:var j=oQ;break;default:var Y=mR(x,1),j=l(Ar(vQ),Y)}return Zx(J,j)}}function kR(x,r){var e=SV(r),t=e.length-1-1|0,u=0;if(t>=0)for(var i=u;;){var f=X1(e,i)[1+i],o=function(B){return function(X){return X?B===0?QF:HF:B===0?qF:GF}}(i);if(f[0]===0)var a=f[5],y=f[4],h=f[3],k=f[6]?bF:xQ,A=f[2],g=f[7],I=o(f[1]),R=[0,nZ(Ar(rQ),I,g,A,k,h,y,a)];else if(f[1])var R=0;else var C=o(0),R=[0,l(Ar(eQ),C)];if(R){var L=R[1];l(iJ(x,FF),L)}var U=i+1|0;if(t!==i){var i=U;continue}break}return 0}function cJ(x){for(;;){var r=dR[1],e=1-xR(dR,r,[0,x,r]);if(!e)return e}}var yT0=yQ.slice(),dT0=[0];QC(eM,function(x,r){try{try{var e=r?dT0:AK(0);try{eR(0)}catch{}try{var t=rd(x);l(yR($F),t),kR($c,e);var u=zV(0);if(u<0){var i=$y(u);BK(X1(yT0,i)[1+i])}var f=Zc($c),o=f}catch(g){var a=R1(g),y=rd(x);l(yR(WF),y),kR($c,e);var h=rd(a);l(yR(VF),h),kR($c,AK(0));var o=Zc($c)}var k=o}catch(g){var A=R1(g);if(A!==qC)throw q0(A,0);var k=BK(ZF)}return k}catch{return 0}});var hR=[Qr,MQ,zs(0)],ed=0,sJ=-1;function Jl(x,r){return x[13]=x[13]+r[3]|0,fR(r,x[28])}var oJ=1000000010;function _R(x,r){return G0(x[17],r,0,Gx(r))}function td(x){return l(x[19],0)}function vJ(x,r,e){return x[9]=x[9]-r|0,_R(x,e),x[11]=0,0}function nd(x,r){var e=N(r,wx);return e&&vJ(x,Gx(r),r)}function Mv(x,r,e){var t=r[3],u=r[2];nd(x,r[1]),td(x),x[11]=1;var i=(x[6]-e|0)+u|0,f=x[8],o=f<=i?f:i;return x[10]=o,x[9]=x[6]-x[10]|0,l(x[21],x[10]),nd(x,t)}function aJ(x,r){return Mv(x,UQ,r)}function Za(x,r){var e=r[2],t=r[3];return nd(x,r[1]),x[9]=x[9]-e|0,l(x[20],e),nd(x,t)}function mT0(x,r,e){if(typeof e=="number")switch(e){case 0:var t=Xa(x[3]);if(!t)return 0;var u=t[1][1],i=function(yx,px){if(!px)return[0,yx,0];var Tx=px[1],O0=px[2];return jV(yx,Tx)?[0,yx,px]:[0,Tx,i(yx,O0)]};return u[1]=i(x[6]-x[9]|0,u[1]),0;case 1:return Ba(x[2]),0;case 2:return Ba(x[3]),0;case 3:var f=Xa(x[2]);return f?aJ(x,f[1][2]):td(x);case 4:var o=x[10]!==(x[6]-x[9]|0)?1:0;if(!o)return o;var a=x[28],y=a[2];if(y){var h=y[1];if(y[2]){var k=y[2];a[1]=a[1]-1|0,a[2]=k;var A=[0,h]}else{iR(a);var A=[0,h]}}else var A=0;if(!A)return 0;var g=A[1],I=g[1];return x[12]=x[12]-g[3]|0,x[9]=x[9]+I|0,0;default:var C=Ba(x[5]);return C?_R(x,l(x[25],C[1])):0}switch(e[0]){case 0:return vJ(x,r,e[1]);case 1:var R=e[2],L=e[1],U=R[1],B=R[2],X=Xa(x[2]);if(!X)return 0;var J=X[1],e0=J[2];switch(J[1]){case 0:return Za(x,L);case 1:return Mv(x,R,e0);case 2:return Mv(x,R,e0);case 3:return x[9]<(r+Gx(U)|0)?Mv(x,R,e0):Za(x,L);case 4:return x[11]?Za(x,L):x[9]<(r+Gx(U)|0)||((x[6]-e0|0)+B|0)c0){var $=v0;continue}var s0=c0}else var s0=f0;var o0=s0;break}else var o0=i0;var E0=o0-i0|0;return 0<=E0?Za(x,[0,RQ,E0+Y|0,CQ]):Mv(x,[0,LQ,o0+j|0,OQ],x[6]);case 3:var k0=e[2],M0=e[1];if(x[8]<(x[6]-x[9]|0)){var D0=Xa(x[2]);if(D0){var cx=D0[1],g0=cx[2],Z0=cx[1];x[9]=Z0-1>>>0&&aJ(x,g0)}else td(x)}var n0=x[9]-M0|0,nx=k0===1?1:x[9]=e)return G0(x[17],wJ,0,e);G0(x[17],wJ,0,80);var e=e+FM|0}}function kT0(x){return x[1]===hR?Zx(TQ,Zx(x[2],wQ)):SQ}function hT0(x){return x[1]===hR?Zx(hQ,Zx(x[2],kQ)):_Q}function _T0(x){return 0}function wT0(x){return 0}function SJ(x,r){function e(A){return 0}function t(A){return 0}function u(A){return 0}var i=bK(0),f=[0,sJ,dQ,0];fR(f,i);var o=Dl(0);wR(o),Uv([0,1,f],o);var a=Dl(0),y=Dl(0),h=Dl(0),k=[0,o,Dl(0),h,y,a,78,10,68,78,0,1,1,1,1,rT0,mQ,x,r,u,t,e,0,0,kT0,hT0,_T0,wT0,i];return k[19]=function(A){return G0(k[17],EQ,0,1)},k[20]=function(A){return TJ(k,A)},k[21]=function(A){return TJ(k,A)},k}function EJ(x){function r(e){return Zc(x)}return SJ(function(e,t,u){return 0<=t&&0<=u&&(Gx(e)-u|0)>=t?$C(x,e,t,u):T2(iZ)},r)}function AR(x){function r(e){return 0}return SJ(function(e,t,u){return xJ(x,e,t,u)},r)}var TT0=pw;function AJ(x){return Zr(TT0)}var ST0=AJ(0),ET0=EJ(tT0),AT0=EJ($c);AR(ST0);function gJ(x,r){var e=Zr(16),t=AR(e);p(x,t,r),Bl(t,0);var u=e[2];if(2>u)return z1(e);var i=u-2|0,f=1;return 0<=i&&(e[2]-i|0)>=1?Ya(e[1],f,i):T2(zZ)}function Xe(x,r){var e=0;if(typeof r=="number")return 0;switch(r[0]){case 0:var t=r[2];if(Xe(x,r[1]),typeof t=="number")switch(t){case 0:return kJ(x,0);case 1:return hJ(x,0);case 2:return Bl(x,0);case 3:var u=x[14]=C1(U,j)+J5>>>0){var j=j+1|0;continue}for(var Y=z2(U,i0,j-i0|0),z=e0(j),F=z;;){if(F!==X){var t0=C1(U,F),$=0;if(48<=t0?58>t0&&($=1):t0===45&&($=1),$){var F=F+1|0;continue}}if(z===F)var f0=0;else try{var c0=it(z2(U,z,F-z|0)),f0=c0}catch(b0){var v0=R1(b0);if(v0[1]!==mn)throw q0(v0,0);var f0=J(0)}e0(F)!==X&&J(0);var s0=0;if(N(Y,wx)&&N(Y,QE))var o0=N(Y,"h")?N(Y,"hov")?N(Y,"hv")?N(Y,UM)?J(0):1:2:3:0;else s0=1;if(s0)var o0=4;var B=[0,f0,o0];break}break}return mJ(x,B[1],B[2]);case 2:var E0=r[1],k0=0;if(typeof E0=="number"||E0[0]!==0)k0=1;else{var M0=E0[2],D0=0;if(typeof M0=="number"||M0[0]!==1)D0=1;else var cx=r[2],g0=M0[2],Z0=E0[1];D0&&(k0=1)}if(k0){var n0=r[2],nx=E0;e=2}break;case 3:var xx=r[1],yx=0;if(typeof xx=="number"||xx[0]!==0)yx=1;else{var px=xx[2],Tx=0;if(typeof px=="number"||px[0]!==1)Tx=1;else{var O0=r[2],P0=px[2],N0=xx[1];e=1}Tx&&(yx=1)}if(yx){var J0=r[2],I0=xx;e=3}break;case 4:var Q=r[1],G=0;if(typeof Q=="number"||Q[0]!==0)G=1;else{var V=Q[2],p0=0;if(typeof V=="number"||V[0]!==1)p0=1;else var cx=r[2],g0=V[2],Z0=Q[1];p0&&(G=1)}if(G){var n0=r[2],nx=Q;e=2}break;case 5:var d0=r[1],A0=0;if(typeof d0=="number"||d0[0]!==0)A0=1;else{var M=d0[2],L0=0;if(typeof M=="number"||M[0]!==1)L0=1;else{var O0=r[2],P0=M[2],N0=d0[1];e=1}L0&&(A0=1)}if(A0){var J0=r[2],I0=d0;e=3}break;case 6:var V0=r[2];return Xe(x,r[1]),l(V0,x);case 7:return Xe(x,r[1]),Bl(x,0);default:var B0=r[2];return Xe(x,r[1]),T2(B0)}switch(e){case 0:return Xe(x,Z0),ER(x,g0,cx);case 1:return Xe(x,N0),ER(x,P0,Hy(1,O0));case 2:return Xe(x,nx),ud(x,n0);default:return Xe(x,I0),Yl(x,J0)}}function zr(x){return function(r){var e=r[1],t=0;return jr(function(u){return Xe(x,u),0},t,e)}}for(;;){var NJ=rR[1],gT0=[0,1];if(!(1-xR(rR,NJ,function(x,r){return function(e){return xR(x,1,0)&&(Bl(ET0,0),Bl(AT0,0)),l(r,0)}}(gT0,NJ)))){var NT0=2,IT0=function(x){var r=[0,0],e=Gx(x)-1|0,t=0;if(e>=0)for(var u=t;;){var i=C1(x,u);r[1]=(x8*r[1]|0)+i|0;var f=u+1|0;if(e!==u){var u=f;continue}break}r[1]=r[1]&VU;var o=1073741823=0)for(var f=i;;){var o=(f*2|0)+3|0,a=X1(x,f)[1+f];X1(e,o)[1+o]=a;var y=f+1|0;if(u!==f){var f=y;continue}break}return[0,NT0,e,Dv[1],wo[1],0,0,Zs[1],0]},gR=function(x,r){var e=x[2].length-1,t=e=0&&(u.length-1-e|0)>=0&&(eV(i,0,u,0,e),f=1),f||T2(SZ),x[2]=u;var o=0}else var o=t;return o},RJ=[0,0],CT0=[0,0],NR=function(x){var r=x[2].length-1;return gR(x,r+1|0),r},Xl=function(x,r){try{var e=p(Dv[28],r,x[3]);return e}catch(i){var t=R1(i);if(t!==w2)throw q0(t,0);var u=NR(x);return x[3]=G0(Dv[4],r,u,x[3]),x[4]=G0(wo[4],u,1,x[4]),u}},IR=function(x,r){return qy(function(e){return Xl(x,e)},r)},OJ=function(x,r,e){return CT0[1]++,p(wo[28],r,x[4])?(gR(x,r+1|0),X1(x[2],r)[1+r]=e,0):(x[6]=[0,[0,r,e],x[6]],0)},PR=function(x){if(x===0)return 0;for(var r=x.length-1-1|0,e=0;;){if(0>r)return e;var t=[0,x[1+r],e],r=r-1|0,e=t}},CR=function(x,r){try{var e=p(Zs[28],r,x[7]);return e}catch(i){var t=R1(i);if(t!==w2)throw q0(t,0);var u=x[1];return x[1]=u+1|0,N(r,wx)&&(x[7]=G0(Zs[4],r,u,x[7])),u}},RR=function(x){return jy(x,0)?[0]:x},OR=function(x,r,e,t,u,i){var f=u[2],o=u[4],a=PR(r),y=PR(e),h=PR(t),k=Hc(function(s0){return Xl(x,s0)},y),A=Hc(function(s0){return Xl(x,s0)},h);x[5]=[0,[0,x[3],x[4],x[6],x[7],k,a],x[5]];var g=Zs[1],I=x[7];function C(s0,o0,E0){return nR(s0,a)?G0(Zs[4],s0,o0,E0):E0}x[7]=G0(Zs[13],C,I,g);var R=[0,Dv[1]],L=[0,wo[1]];ZK(function(s0,o0){R[1]=G0(Dv[4],s0,o0,R[1]);var E0=L[1];try{var k0=p(wo[28],o0,x[4]),M0=k0}catch(cx){var D0=R1(cx);if(D0!==w2)throw q0(D0,0);var M0=1}return L[1]=G0(wo[4],o0,M0,E0),0},h,A),ZK(function(s0,o0){return R[1]=G0(Dv[4],s0,o0,R[1]),L[1]=G0(wo[4],o0,0,L[1]),0},y,k),x[3]=R[1],x[4]=L[1];var U=0,B=x[6];x[6]=tR(function(s0,o0){return nR(s0[1],k)?o0:[0,s0,o0]},B,U);var X=i?p(f,x,o):l(f,x),J=Ol(x[5]),e0=J[6],i0=J[5],j=J[4],Y=J[3],z=J[2],F=J[1];x[5]=VK(x[5]),x[7]=b1(function(s0,o0){var E0=p(Zs[28],o0,x[7]);return G0(Zs[4],o0,E0,s0)},j,e0),x[3]=F,x[4]=z;var t0=x[6];x[6]=tR(function(s0,o0){return nR(s0[1],i0)?o0:[0,s0,o0]},t0,Y);var $=0,f0=RR(t),c0=[0,qy(function(s0){var o0=Xl(x,s0);try{for(var E0=x[6];;){if(!E0)throw q0(w2,1);var k0=E0[1],M0=E0[2],D0=k0[2];if(SK(k0[1],o0)===0)return D0;var E0=M0}}catch(g0){var cx=R1(g0);if(cx===w2)return X1(x[2],o0)[1+o0];throw q0(cx,0)}},f0),$],v0=RR(r);return tV([0,[0,X],[0,qy(function(s0){try{var o0=p(Zs[28],s0,x[7]);return o0}catch(k0){var E0=R1(k0);throw E0===w2?q0([0,Tr,DQ],1):q0(E0,0)}},v0),c0]])},id=function(x,r){if(x===0)var e=CJ([0]);else{var t=CJ(qy(IT0,x)),u=x.length-1-1|0,i=0;if(u>=0)for(var f=i;;){var o=(f*2|0)+2|0;t[3]=G0(Dv[4],x[1+f],o,t[3]),t[4]=G0(wo[4],o,1,t[4]);var a=f+1|0;if(u!==f){var f=a;continue}break}var e=t}var y=l(r,e);return RJ[1]=(RJ[1]+e[1]|0)-1|0,e[8]=gx(e[8]),gR(e,3+((X1(e[2],1)[2]*16|0)/32|0)|0),[0,l(y,0),r,y,0]},fd=function(x,r){if(x)return x;var e=FC(Qr,r[1]);return e[1]=r[2],QV(e)},LR=function(x,r,e){if(x)return r;var t=e[8];if(t!==0)for(var u=t;;){if(u){var i=u[2];l(u[1],r);var u=i;continue}break}return r},cd=function(x){var r=NR(x),e=0;if(r%2|0&&(2+((X1(x[2],1)[2]*16|0)/32|0)|0)>=r){var t=NR(x);e=1}if(!e)var t=r;return X1(x[2],t)[1+t]=0,t},UR=function(x,r){for(var e=[0,0],t=r.length-1;;){if(e[1]>=t)return 0;var u=e[1],i=X1(r,u)[1+u],f=function(hx){e[1]++;var W0=e[1];return X1(r,W0)[1+W0]},o=f(0);if(typeof o=="number")switch(o){case 0:var a=f(0),b0=function(W0){return function(T){return W0}}(a);break;case 1:var y=f(0),b0=function(W0){return function(T){return T[1+W0]}}(y);break;case 2:var h=f(0),k=f(0),b0=function(W0,T){return function(K){return K[1+W0][1+T]}}(h,k);break;case 3:var A=f(0),b0=function(W0){return function(T){return l(T[1][1+W0],T)}}(A);break;case 4:var g=f(0),b0=function(W0){return function(T,K){return T[1+W0]=K,0}}(g);break;case 5:var I=f(0),C=f(0),b0=function(W0,T){return function(K){return l(W0,T)}}(I,C);break;case 6:var R=f(0),L=f(0),b0=function(W0,T){return function(K){return l(W0,K[1+T])}}(R,L);break;case 7:var U=f(0),B=f(0),X=f(0),b0=function(W0,T,K){return function(H0){return l(W0,H0[1+T][1+K])}}(U,B,X);break;case 8:var J=f(0),e0=f(0),b0=function(W0,T){return function(K){return l(W0,l(K[1][1+T],K))}}(J,e0);break;case 9:var i0=f(0),j=f(0),Y=f(0),b0=function(W0,T,K){return function(H0){return p(W0,T,K)}}(i0,j,Y);break;case 10:var z=f(0),F=f(0),t0=f(0),b0=function(W0,T,K){return function(H0){return p(W0,T,H0[1+K])}}(z,F,t0);break;case 11:var $=f(0),f0=f(0),c0=f(0),v0=f(0),b0=function(W0,T,K,H0){return function(sx){return p(W0,T,sx[1+K][1+H0])}}($,f0,c0,v0);break;case 12:var s0=f(0),o0=f(0),E0=f(0),b0=function(W0,T,K){return function(H0){return p(W0,T,l(H0[1][1+K],H0))}}(s0,o0,E0);break;case 13:var k0=f(0),M0=f(0),D0=f(0),b0=function(W0,T,K){return function(H0){return p(W0,H0[1+T],K)}}(k0,M0,D0);break;case 14:var cx=f(0),g0=f(0),Z0=f(0),n0=f(0),b0=function(W0,T,K,H0){return function(sx){return p(W0,sx[1+T][1+K],H0)}}(cx,g0,Z0,n0);break;case 15:var nx=f(0),xx=f(0),yx=f(0),b0=function(W0,T,K){return function(H0){return p(W0,l(H0[1][1+T],H0),K)}}(nx,xx,yx);break;case 16:var px=f(0),Tx=f(0),b0=function(W0,T){return function(K){return p(K[1][1+W0],K,T)}}(px,Tx);break;case 17:var O0=f(0),P0=f(0),b0=function(W0,T){return function(K){return p(K[1][1+W0],K,K[1+T])}}(O0,P0);break;case 18:var N0=f(0),J0=f(0),I0=f(0),b0=function(W0,T,K){return function(H0){return p(H0[1][1+W0],H0,H0[1+T][1+K])}}(N0,J0,I0);break;case 19:var Q=f(0),G=f(0),b0=function(W0,T){return function(K){var H0=l(K[1][1+T],K);return p(K[1][1+W0],K,H0)}}(Q,G);break;case 20:var V=f(0),p0=f(0);cd(x);var b0=function(W0,T){return function(K){return l(qx(T,W0,0),T)}}(V,p0);break;case 21:var d0=f(0),A0=f(0);cd(x);var b0=function(W0,T){return function(K){var H0=K[1+T];return l(qx(H0,W0,0),H0)}}(d0,A0);break;case 22:var M=f(0),L0=f(0),V0=f(0);cd(x);var b0=function(W0,T,K){return function(H0){var sx=H0[1+T][1+K];return l(qx(sx,W0,0),sx)}}(M,L0,V0);break;default:var B0=f(0),vx=f(0);cd(x);var b0=function(W0,T){return function(K){var H0=l(K[1][1+T],K);return l(qx(H0,W0,0),H0)}}(B0,vx)}else var b0=o;OJ(x,i,b0),e[1]++}},LJ=function(x,r){var e=r.length-1,t=FC(0,e),u=e-1|0,i=0;if(u>=0)for(var f=i;;){var o=X1(r,f)[1+f];if(typeof o=="number")switch(o){case 0:var h=function(g){function I(C){var R=t[1+g];if(I===R)throw q0([0,Il,x],1);return l(R,C)}return I}(f);break;case 1:var a=[];C0(a,[_8,function(g,I){return function(C){var R=t[1+I];if(g===R)throw q0([0,Il,x],1);var L=Ov(R);if(Pv===L)return R[1];if(_8!==L)return R;var U=R[1];R[1]=iT0;try{var B=l(U,0);return $V(R,B),B}catch(J){var X=R1(J);throw R[1]=function(e0){throw q0(X,0)},q0(X,0)}}}(a,f)]);var h=a;break;default:var y=function(g){throw q0([0,Il,x],1)},h=[0,y,y,y,0]}else var h=o[0]===0?LJ(x,o[1]):o[1];t[1+f]=h;var k=f+1|0;if(u!==f){var f=k;continue}break}return t},UJ=function(x,r,e){if(Ov(e)===0&&x.length-1<=e.length-1){var t=x.length-1-1|0,u=0;if(t>=0)for(var i=u;;){var f=e[1+i],o=X1(x,i)[1+i];if(typeof o=="number")if(o===2){var a=0;if(Ov(f)===0&&f.length-1===4)for(var y=0,h=r[1+i];;){h[1+y]=f[1+y];var k=y+1|0;if(y!==3){var y=k;continue}break}else a=1;if(a)throw q0([0,Tr,jQ],1)}else r[1+i]=f;else o[0]===0&&UJ(o[1],r[1+i],f);var A=i+1|0;if(t!==i){var i=A;continue}break}return 0}throw q0([0,Tr,zQ],1)};try{MK("TMPDIR")}catch(x){var MJ=R1(x);if(MJ!==w2)throw q0(MJ,0)}try{MK("TEMP")}catch(x){var DJ=R1(x);if(DJ!==w2)throw q0(DJ,0)}N(XK,kz)&&N(XK,"Win32");var qc=function(x,r){function e(t){return ct(x,t)}return b3<=r?(e(ha|r>>>18|0),e(m1|(r>>>12|0)&63),e(m1|(r>>>6|0)&63),e(m1|r&63)):aP<=r?(e(Aa|r>>>12|0),e(m1|(r>>>6|0)&63),e(m1|r&63)):m1<=r?(e(ma|r>>>6|0),e(m1|r&63)):e(r)},To=[Qr,YQ,zs(0)],jJ=0,zJ=0,KJ=0,JJ=0,YJ=0,BJ=0,XJ=0,WJ=0,VJ=0,ZJ=0,m=function(x){if(x[3]===x[2])return-1;var r=x[1][1+x[3]];return x[3]=x[3]+1|0,r===10&&(x[5]!==0&&(x[5]=x[5]+1|0),x[4]=x[3]),r},r0=function(x,r){return x[9]=x[3],x[10]=x[4],x[11]=x[5],x[12]=r,0},pr=function(x){return x[6]=x[3],x[7]=x[4],x[8]=x[5],r0(x,-1)},w=function(x){return x[3]=x[9],x[4]=x[10],x[5]=x[11],x[12]},$a=function(x){return x[3]=x[6],x[4]=x[7],x[5]=x[8],0},MR=function(x,r){return x[6]=r,0},sd=function(x){return x[3]-x[6]|0},n1=function(x){var r=x[3]-x[6]|0,e=x[6],t=x[1];return 0<=e&&0<=r&&(t.length-1-r|0)>=e?nV(t,e,r):T2(EZ)},$J=function(x){var r=x[6];return X1(x[1],r)[1+r]},Wl=function(x,r,e,t){for(var u=[0,r],i=[0,e],f=[0,0];;){if(0>=i[1])return f[1];var o=x[1+u[1]];if(0>o)throw q0(To,1);if(Jr>>18|0),Xr(t,f[1]+1|0,m1|(o>>>12|0)&63),Xr(t,f[1]+2|0,m1|(o>>>6|0)&63),Xr(t,f[1]+3|0,m1|o&63),f[1]=f[1]+4|0}else Xr(t,f[1],Aa|o>>>12|0),Xr(t,f[1]+1|0,m1|(o>>>6|0)&63),Xr(t,f[1]+2|0,m1|o&63),f[1]=f[1]+3|0;else Xr(t,f[1],ma|o>>>6|0),Xr(t,f[1]+1|0,m1|o&63),f[1]=f[1]+2|0;else Xr(t,f[1],o),f[1]++;u[1]++,i[1]+=-1}},FJ=function(x){for(var r=Gx(x),e=za(r,0),t=[0,0],u=[0,0];;){if(t[1]>=r)return[0,e,u[1],ZJ,VJ,WJ,XJ,BJ,YJ,JJ,KJ,zJ,jJ];var i=ix(x,t[1]),f=0;if(ma<=i)if(ha<=i)if(Qr<=i)f=1;else{var o=ix(x,t[1]+1|0),a=ix(x,t[1]+2|0),y=ix(x,t[1]+3|0),h=(o>>>6|0)!==2?1:0;if(h)var A=h;else var k=(a>>>6|0)!==2?1:0,A=k||((y>>>6|0)!==2?1:0);if(A)throw q0(To,1);var g=(i&7)<<18|(o&63)<<12|(a&63)<<6|y&63;if(c5>>6|0)!==2?1:0,U=L||((C>>>6|0)!==2?1:0);if(U)var X=U;else var B=55296<=R?1:0,X=B&&(R<=57343?1:0);if(X)throw q0(To,1);e[1+u[1]]=R,t[1]=t[1]+3|0}else{var J=ix(x,t[1]+1|0);if((J>>>6|0)!==2)throw q0(To,1);e[1+u[1]]=(i&31)<<6|J&63,t[1]=t[1]+2|0}else m1<=i?f=1:(e[1+u[1]]=i,t[1]++);if(f)throw q0(To,1);u[1]++}},Vl=function(x,r,e){var t=x[6]+r|0,u=g1(e*4|0),i=x[1];if((t+e|0)<=i.length-1)return Ya(u,0,Wl(i,t,e,u));throw q0([0,Tr,JQ],1)},Kx=function(x){var r=x[6],e=x[3]-r|0,t=g1(e*4|0);return Ya(t,0,Wl(x[1],r,e,t))},od=function(x,r){var e=x[6],t=x[3]-e|0,u=g1(t*4|0);return sR(r,u,0,Wl(x[1],e,t,u))},Zl=function(x){var r=x.length-1,e=g1(r*4|0);return Ya(e,0,Wl(x,0,r,e))},QJ=function(x,r){return x[3]=x[3]-r|0,0},Gc=function(x){return typeof x=="number"?0:x[0]===0?1:x[1]},jv=function(x,r,e,t){var u=Gc(x),i=Gc(t),f=i<=u?u+1|0:i+1|0;return f===1?[0,r,e]:[1,f,r,e,x,t]},vd=function(x,r,e,t){var u=Gc(x),i=Gc(t),f=i<=u?u+1|0:i+1|0;return[1,f,r,e,x,t]},HJ=function(x,r,e,t){var u=Gc(x),i=Gc(t);if((i+2|0)=i)return jv(x,r,e,t);var C=t[5],R=t[4],L=t[3],U=t[2],B=Gc(R);if(B<=Gc(C))return vd(jv(x,r,e,R),U,L,C);var X=R[4],J=R[3],e0=R[2],i0=jv(R[5],U,L,C);return vd(jv(x,r,e,X),e0,J,i0)},RT0=0,Fa=function(x,r){for(var e=x,t=r;;){if(typeof e=="number")return t;if(e[0]===0)return[0,e[1],0,t];var u=[0,e[2],e[4],t],e=e[3],t=u}},qJ=function(x,r){if(!x)return 0;var e=x[1],t=Fa(x[2],x[3]);return[0,e,function(u){return qJ(t,u)}]},OT0=function(x){var r=Fa(x,0);return function(e){return qJ(r,e)}},$s=function(x){return typeof x=="number"?0:x[0]===0?1:x[1]},LT0=function(x){return[0,x]},We=function(x,r,e){var t=0;if(typeof x=="number"){if(typeof e=="number")return[0,r];e[0]===1&&(t=1)}else if(x[0]===0)typeof e!="number"&&e[0]===1&&(t=1);else{var u=x[1];if(typeof e!="number"&&e[0]===1){var i=e[1],f=i<=u?u+1|0:i+1|0;return[1,f,r,x,e]}var o=u;t=2}switch(t){case 1:var o=e[1];break;case 0:return[1,2,r,x,e]}return[1,o+1|0,r,x,e]},So=function(x,r,e){var t=$s(x),u=$s(e),i=u<=t?t+1|0:u+1|0;return[1,i,r,x,e]},ad=function(x,r){if(r===0)return 0;if(r===1)return[0,l(x,0)];var e=r>>>1|0,t=ad(x,e),u=l(x,0),i=ad(x,(r-e|0)-1|0);return[1,$s(t)+1|0,u,t,i]},UT0=function(x){var r=[0,0],e=x.length-1;return ad(function(t){var u=r[1],i=X1(x,u)[1+u];return r[1]++,i},e)},jt=function(x,r,e){var t=$s(x),u=$s(e);if((u+2|0)=u)return We(x,r,e);var A=e[4],g=e[3],I=e[2],C=$s(g);if(C<=$s(A))return So(We(x,r,g),I,A);var R=g[3],L=g[2],U=We(g[4],I,A);return So(We(x,r,R),L,U)},GJ=function(x,r){if(typeof r=="number")return[0,x];if(r[0]===0)return We([0,x],r[1],0);var e=r[4],t=r[2];return jt(GJ(x,r[3]),t,e)},bJ=function(x,r){if(typeof r=="number")return[0,x];if(r[0]===0)return We(0,r[1],[0,x]);var e=r[3],t=r[2];return jt(e,t,bJ(x,r[4]))},K2=function(x,r,e){if(typeof x=="number")return GJ(r,e);if(x[0]===0){if(typeof e!="number"){if(e[0]===0)return We(x,r,e);var t=e[4],u=e[3],i=e[2];return 3>1,T=E0(W0,Z0),K=T[1],H0=E0(g0-W0|0,T[2]),sx=K,ux=H0[1],z0=0,Px=H0[2];;){if(sx){if(ux){var kx=ux[2],$x=ux[1],Qx=sx[2],j0=sx[1],rr=p(s0,j0,$x);if(rr===0){var sx=Qx,ux=kx,z0=[0,j0,z0];continue}if(0>1,T=o0(W0,Z0),K=T[1],H0=o0(g0-W0|0,T[2]),sx=K,ux=H0[1],z0=0,Px=H0[2];;){if(sx){if(ux){var kx=ux[2],$x=ux[1],Qx=sx[2],j0=sx[1],rr=p(s0,j0,$x);if(rr===0){var sx=Qx,ux=kx,z0=[0,j0,z0];continue}if(0<=rr){var ux=kx,z0=[0,$x,z0];continue}var sx=Qx,z0=[0,j0,z0];continue}var zx=Qc(sx,z0)}else var zx=Qc(ux,z0);return[0,zx,Px]}},k0=Fc(j),M0=2<=k0?o0(k0,j)[1]:j,D0=function(g0,Z0){if(3>=g0>>>0)switch(g0){case 0:return[0,0,Z0];case 1:if(Z0)return[0,[0,Z0[1]],Z0[2]];break;case 2:if(Z0){var n0=Z0[2];if(n0)return[0,[1,2,n0[1],[0,Z0[1]],0],n0[2]]}break;default:if(Z0){var nx=Z0[2];if(nx){var xx=nx[2];if(xx)return[0,[1,2,nx[1],[0,Z0[1]],[0,xx[1]]],xx[2]]}}}var yx=g0/2|0,px=D0(yx,Z0),Tx=px[2],O0=px[1];if(!Tx)throw q0([0,Tr,FQ],1);var P0=Tx[1],N0=D0((g0-yx|0)-1|0,Tx[2]),J0=N0[2];return[0,So(O0,P0,N0[1]),J0]};return D0(Fc(M0),M0)[1]}var cx=c0[1];return r(cx,r(v0,r(f0,r(t0,[0,z]))))}function i0(j,Y,z){l(zr(Y),WQ);var F=tY(z);F&&l(zr(Y),VQ);var t0=0;return b1(function($,f0){return $&&l(zr(Y),XQ),p(j,Y,f0),1},t0,F),F&&l(zr(Y),ZQ),l(zr(Y),$Q)}return[0,u1,zR,t,r,LT0,u,i,f,a,y,h,k,A,g,J,I,C,R,L,U,jR,tY,$l,xY,rY,MT0,$l,xY,B,X,OT0,e0,i0,ad,UT0,function(j,Y){for(var z=Y;;){if(typeof z=="number")return 0;if(z[0]===0){var F=z[1];return l(j,F)?[0,F]:0}var t0=z[2],$=z[4],f0=z[3];if(!l(j,t0)){var z=$;continue}for(var c0=t0,v0=f0;;){if(typeof v0=="number")return[0,c0];if(v0[0]===0){var s0=v0[1];return l(j,s0)?[0,s0]:[0,c0]}var o0=v0[2],E0=v0[4],k0=v0[3];if(l(j,o0)){var c0=o0,v0=k0;continue}var v0=E0}}}]},uY=function(x){switch(x[0]){case 0:return 1;case 1:return 2;case 2:return 2;default:return 3}},Yx=function(x,r){if(!r)return r;var e=r[1],t=l(x,e);return e===t?r:[0,t]},fx=function(x,r,e,t,u){var i=p(x,r,e);return e===i?t:l(u,i)},Q0=function(x,r,e,t){var u=l(x,r);return r===u?e:l(t,u)},r2=function(x,r){var e=r[1],t=r[2];return fx(x,e,t,r,function(u){return[0,e,u]})},iY=function(x,r){return Yx(function(e){var t=e[1],u=e[2];return fx(x,t,u,e,function(i){return[0,t,i]})},r)},gr=function(x,r){var e=b1(function(u,i){var f=u[2],o=u[1],a=l(x,i),y=f||(a!==i?1:0);return[0,[0,a,o],y]},EH,r),t=e[1];return e[2]?gx(t):r},KR=id(gH,function(x){var r=IR(x,AH),e=r[1],t=r[2],u=r[3],i=r[4],f=r[5],o=r[6],a=r[7],y=r[8],h=r[9],k=r[10],A=r[11],g=r[12],I=r[13],C=r[14],R=r[15],L=r[16],U=r[17],B=r[18],X=r[19],J=r[20],e0=r[21],i0=r[22],j=r[23],Y=r[24],z=r[25],F=r[26],t0=r[27],$=r[28],f0=r[29],c0=r[30],v0=r[31],s0=r[32],o0=r[33],E0=r[34],k0=r[35],M0=r[36],D0=r[37],cx=r[38],g0=r[39],Z0=r[40],n0=r[41],nx=r[42],xx=r[43],yx=r[44],px=r[45],Tx=r[46],O0=r[47],P0=r[48],N0=r[49],J0=r[50],I0=r[51],Q=r[52],G=r[53],V=r[54],p0=r[55],d0=r[56],A0=r[58],M=r[59],L0=r[60],V0=r[61],B0=r[62],vx=r[63],b0=r[64],hx=r[65],W0=r[66],T=r[67],K=r[68],H0=r[69],sx=r[70],ux=r[71],z0=r[72],Px=r[73],kx=r[74],$x=r[75],Qx=r[76],j0=r[77],rr=r[78],zx=r[79],X0=r[80],ir=r[81],K0=r[82],Sr=r[83],Dr=r[84],ax=r[85],br=r[86],t2=r[87],k1=r[88],Rr=r[89],U1=r[90],_=r[91],b=r[92],x0=r[93],S0=r[94],H=r[95],h0=r[96],Y0=r[97],U0=r[98],tx=r[99],Wx=r[Uc],Lx=r[Pt],ur=r[Cs],Vx=r[tt],er=r[ln],Jx=r[Ue],Or=r[_1],Xx=r[Rs],X2=r[fn],at=r[wv],de=r[P1],En=r[ut],ro=r[fe],An=r[Er],fs=r[Vi],me=r[Ps],gn=r[Ns],re=r[aa],Vt=r[pa],dr=r[xl],Zt=r[Ef],Nn=r[G3],Hv=r[qr],ke=r[Rt],lt=r[Ra],Ko=r[gi],eo=r[U4],a2=r[Jr],to=r[m1],In=r[yl],pt=r[iz],Jo=r[ph],no=r[lz],qv=r[ZU],Yo=r[Tj],uo=r[bz],yt=r[LD],cs=r[h_],Bo=r[QM],io=r[yD],a3=r[nz],Xo=r[YD],Pn=r[eD],Gv=r[Nj],fo=r[144],Wo=r[145],bv=r[146],ss=r[147],Vo=r[jM],Zo=r[yj],xa=r[150],l3=r[151],Lm=r[152],p3=r[153],C6=r[154],R6=r[155],y3=r[156],Um=r[157],Mm=r[158],ra=r[159],d3=r[KS],Dm=r[$D],jm=r[jD],zm=r[gz],M1=r[LT],dt=r[_z],m3=r[PD],q=r[jN],P=r[OT],D=r[e5],T0=r[$9],R0=r[Rk],rx=r[RD],Sx=r[Ej],Dx=r[Fz],jx=r[kk],bx=r[fD],mr=r[hM],or=r[Hj],_r=r[MU],cr=r[KD],sr=r[gC],Pr=r[qk],$r=r[ey],Wr=r[LI],Vr=r[Xw],Ur=r[Gh],Fr=r[eA],x1=r[sj],l1=r[OS],p1=r[mM],f1=r[GD],h1=r[ma],Cr=r[zM],D1=r[kh],n2=r[MM],A1=r[Sj],W2=r[sM],ee=r[Bz],Ax=r[yA],Kr=r[uK],r1=r[KU],lr=r[qj],Br=r[zz],V1=r[WM],he=r[Rz],V2=r[$T],_e=r[Gz],$t=r[uz],N2=r[EM],u2=r[Wz],I2=r[BM],l2=r[sE],mt=r[LU],P2=r[Wj],kt=r[IT],Ze=r[QI],we=r[Aj],Te=r[Oz],Se=r[Fj],Ee=r[hj],Ae=r[XD],Z1=r[WU],ge=r[x8],ht=r[Aa],$e=r[mj],te=r[OD],C2=r[Vz],Ft=r[kj],os=r[vz],_t=r[gD],wt=r[bD],Qt=r[xK],ne=r[mD],Tt=r[tK],Ht=r[Sz],ue=r[Mz],qt=r[Qg],Cn=r[mT],Gt=r[GS],Rn=r[ha],bt=r[RU],On=r[fz],$o=r[Uj],xn=r[$5],St=r[kS],vs=r[_8],as=r[J8],ls=r[Qr],Fo=r[V4],k3=r[Pv],co=r[oj],Qo=r[Ea],ea=r[H8],h3=r[Pa],_3=r[B3],ta=r[yv],na=r[VM],Ln=r[258],w3=r[JM],T3=r[260],S3=r[261],Ne=r[262],E3=r[263],A3=r[Lj],ua=r[Mj],ps=r[266],so=r[267],Ho=r[268],qo=r[uM],g3=r[270],ia=r[Hx],ys=r[272],oo=r[273],Go=r[274],Et=r[wM],Fe=r[276],ds=r[277],At=r[ez],rn=r[279],en=r[Kz],bo=r[tk],N3=r[282],I3=r[cj],xv=r[284],P3=r[SD],fa=r[vj],Km=r[57];function Un(n,s,c){var v=c[2],d=c[1],S=c[4],E=c[3],O=Yx(l(n[1][1+Ax],n),d),Z=p(n[1][1+n0],n,v);return v===Z&&d===O?c:[0,O,Z,E,S]}function Jm(n,s,c){var v=c[4],d=c[3],S=c[2],E=c[1],O=p(n[1][1+Fe],n,E),Z=Yx(l(n[1][1+U],n),S),y0=p(n[1][1+$],n,d),_0=p(n[1][1+n0],n,v);return E===O&&d===y0&&S===Z&&v===_0?c:[0,O,Z,y0,_0]}function Ym(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+Ax],n,S),O=p(n[1][1+N0],n,d),Z=p(n[1][1+n0],n,v);return S===E&&d===O&&v===Z?c:[0,E,O,Z]}function PL(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+M],n,S),O=p(n[1][1+N0],n,d),Z=p(n[1][1+n0],n,v);return S===E&&d===O&&v===Z?c:[0,E,O,Z]}function CL(n,s,c){var v=c[2],d=v[2],S=v[1],E=c[1],O=G0(n[1][1+o],n,s,S),Z=Yx(l(n[1][1+Ax],n),d);return S===O&&d===Z?c:[0,E,[0,O,Z]]}function RL(n,s,c){var v=c[3],d=c[2],S=c[1],E=gr(p(n[1][1+a],n,d),S),O=p(n[1][1+n0],n,v);return S===E&&v===O?c:[0,E,d,O]}function OL(n,s,c){var v=c[4],d=c[2],S=p(n[1][1+Ax],n,d),E=p(n[1][1+n0],n,v);return d===S&&v===E?c:[0,c[1],S,c[3],E]}function LL(n,s,c){var v=c[3],d=c[2],S=p(n[1][1+Ax],n,d),E=p(n[1][1+n0],n,v);return d===S&&v===E?c:[0,c[1],S,E]}function UL(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+Ax],n,S);if(typeof d=="number")var Cx=d;else if(d[0]===0)var O=d[1],Z=p(n[1][1+$],n,O),y0=O===Z?d:[0,Z],Cx=y0;else var _0=d[1],F0=p(n[1][1+$],n,_0),ox=_0===F0?d:[1,F0],Cx=ox;var dx=p(n[1][1+n0],n,v);return E===S&&dx===v?c:[0,E,Cx,dx]}function ML(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+Ax],n,S),O=p(n[1][1+F],n,d),Z=p(n[1][1+n0],n,v);return E===S&&O===d&&Z===v?c:[0,E,O,Z]}function DL(n,s,c){var v=c[4],d=c[3],S=c[2],E=c[1],O=r2(l(n[1][1+Et],n),E);if(S)var Z=S[1],y0=Z[1],_0=Z[2],F0=function(d1){return[0,[0,y0,d1]]},ox=fx(l(n[1][1+so],n),y0,_0,S,F0);else var ox=S;if(d)var Cx=d[1],dx=Cx[1],wr=Cx[2],c1=function(d1){return[0,[0,dx,d1]]},s1=fx(l(n[1][1+Et],n),dx,wr,d,c1);else var s1=d;var y1=p(n[1][1+n0],n,v);return E===O&&S===ox&&d===s1&&v===y1?c:[0,O,ox,s1,y1]}function jL(n,s,c){var v=c[2],d=c[1],S=p(n[1][1+Ax],n,d),E=p(n[1][1+n0],n,v);return d===S&&v===E?c:[0,S,E]}function zL(n,s,c){var v=c[1],d=p(n[1][1+n0],n,v);return v===d?c:[0,d]}function KL(n,s){return s}function JL(n,s,c){var v=c[3],d=c[2],S=c[1],E=gr(l(n[1][1+cx],n),S),O=gr(l(n[1][1+Ax],n),d),Z=p(n[1][1+n0],n,v);return S===E&&d===O&&v===Z?c:[0,E,O,Z]}function YL(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+Ax],n,S),O=r2(l(n[1][1+g0],n),d),Z=p(n[1][1+n0],n,v);return S===E&&d===O&&v===Z?c:[0,E,O,Z]}function BL(n,s){var c=s[2],v=c[3],d=c[2],S=c[1],E=s[1],O=Yx(l(n[1][1+Ax],n),S),Z=p(n[1][1+O0],n,d),y0=p(n[1][1+n0],n,v);return S===O&&d===Z&&v===y0?s:[0,E,[0,O,Z,y0]]}function XL(n,s,c){var v=c[3],d=c[2],S=c[1],E=c[4],O=p(n[1][1+Ax],n,S),Z=gr(l(n[1][1+xx],n),d),y0=p(n[1][1+n0],n,v);return S===O&&d===Z&&v===y0?c:[0,O,Z,y0,E]}function C3(n,s,c){var v=c[1],d=p(n[1][1+n0],n,v);return v===d?c:[0,d]}function Bm(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+Ax],n,d),O=p(n[1][1+n0],n,v);return d===E&&v===O?s:[0,S,[0,E,O]]}function WL(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+Ax],n,d),O=p(n[1][1+n0],n,v);return d===E&&v===O?s:[0,S,[0,E,O]]}function VL(n,s){return[0,p(n[1][1+N0],n,s),0]}function ZL(n,s){var c=l(n[1][1+P0],n),v=b1(function(S,E){var O=S[2],Z=S[1],y0=l(c,E);if(!y0)return[0,Z,1];if(y0[2])return[0,Qc(y0,Z),1];var _0=y0[1],F0=O||(E!==_0?1:0);return[0,[0,_0,Z],F0]},SH,s),d=v[1];return v[2]?gx(d):s}function Xm(n,s){return p(n[1][1+O0],n,s)}function Wm(n,s,c){var v=c[2],d=c[1],S=gr(l(n[1][1+Ax],n),d),E=p(n[1][1+n0],n,v);return d===S&&v===E?c:[0,S,E]}function $L(n,s,c){var v=c[2],d=c[1],S=c[3],E=Yx(l(n[1][1+Ax],n),d),O=p(n[1][1+n0],n,v);return d===E&&v===O?c:[0,E,O,S]}function ca(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+mr],n,d),O=p(n[1][1+n0],n,v);return d===E&&v===O?s:[0,S,[0,E,O]]}function Vm(n,s){var c=s[2],v=c[3],d=c[2],S=d[2],E=d[1],O=c[1],Z=s[1],y0=p(n[1][1+M1],n,E),_0=Yx(l(n[1][1+$],n),S),F0=p(n[1][1+n0],n,v);return y0===E&&_0===S&&F0===v?s:[0,Z,[0,O,[0,y0,_0],F0]]}function Zm(n,s){var c=s[2],v=s[1],d=p(n[1][1+i0],n,c);return jy(d,c)?s:[0,v,d]}function FL(n,s){return p(n[1][1+Ax],n,s)}function QL(n,s){var c=s[2],v=c[2],d=c[1],S=s[1];if(d)var E=d[1],O=function(_0){return[0,_0]},Z=Q0(l(n[1][1+Ax],n),E,d,O);else var Z=d;var y0=p(n[1][1+n0],n,v);return d===Z&&v===y0?s:[0,S,[0,Z,y0]]}function HL(n,s){return p(n[1][1+Ax],n,s)}function O6(n,s,c){return G0(n[1][1+K0],n,s,c)}function qL(n,s,c){var v=c[2],d=v[2],S=v[1],E=c[1],O=G0(n[1][1+j0],n,s,S),Z=p(n[1][1+n0],n,d);return O===S&&d===Z?c:[0,E,[0,O,Z]]}function $m(n,s,c){return G0(n[1][1+K0],n,s,c)}function GL(n,s,c){var v=c[2],d=v[2],S=v[1],E=c[1],O=G0(n[1][1+zx],n,s,S),Z=p(n[1][1+Z1],n,d);return S===O&&d===Z?c:[0,E,[0,O,Z]]}function Fm(n,s,c){switch(c[0]){case 0:var v=c[1],d=function(O){return[0,O]};return Q0(p(n[1][1+X0],n,s),v,c,d);case 1:var S=c[1],E=function(O){return[1,O]};return Q0(p(n[1][1+rr],n,s),S,c,E);default:return c}}function L6(n,s,c){return G0(n[1][1+K0],n,s,c)}function Qm(n,s,c){return G0(n[1][1+K0],n,s,c)}function bL(n,s,c){var v=c[2],d=v[2],S=v[1],E=c[1],O=G0(n[1][1+B0],n,s,S),Z=p(n[1][1+n0],n,d);return O===S&&d===Z?c:[0,E,[0,O,Z]]}function Hm(n,s,c){return p(n[1][1+Cn],n,c)}function U6(n,s,c){return G0(n[1][1+kx],n,s,c)}function xU(n,s,c){var v=c[1],d=c[2];function S(E){return[0,v,E]}return fx(p(n[1][1+Qx],n,s),v,d,c,S)}function M6(n,s,c){var v=c[1],d=c[2];function S(E){return[0,v,E]}return fx(p(n[1][1+Px],n,s),v,d,c,S)}function rU(n,s,c){var v=c[1],d=c[2];function S(E){return[0,v,E]}return fx(p(n[1][1+V0],n,s),v,d,c,S)}function eU(n,s,c){switch(c[0]){case 0:var v=c[1],d=function(Cx){return[0,Cx]};return Q0(p(n[1][1+b0],n,s),v,c,d);case 1:var S=c[1],E=function(Cx){return[1,Cx]};return Q0(p(n[1][1+W0],n,s),S,c,E);case 2:var O=c[1],Z=function(Cx){return[2,Cx]};return Q0(p(n[1][1+sx],n,s),O,c,Z);case 3:var y0=c[1],_0=function(Cx){return[3,Cx]};return Q0(p(n[1][1+K],n,s),y0,c,_0);default:var F0=c[1],ox=function(Cx){return[4,Cx]};return Q0(p(n[1][1+H0],n,s),F0,c,ox)}}function tU(n,s,c){var v=c[2],d=v[4],S=v[3],E=v[2],O=v[1],Z=c[1],y0=G0(n[1][1+T],n,s,O),_0=G0(n[1][1+hx],n,s,E),F0=p(n[1][1+Z1],n,S);if(d){var ox=0;if(y0[0]===3){var Cx=_0[2];if(Cx[0]===2)var wr=Nr(y0[1][2][1],Cx[1][1][2][1]);else ox=1}else ox=1;if(ox)var dx=O===y0?1:0,wr=dx&&(E===_0?1:0)}else var wr=d;return y0===O&&_0===E&&F0===S&&d===wr?c:[0,Z,[0,y0,_0,F0,wr]]}function qm(n,s,c){if(c[0]===0){var v=c[1],d=function(O){return[0,O]};return Q0(p(n[1][1+ux],n,s),v,c,d)}var S=c[1];function E(O){return[1,O]}return Q0(p(n[1][1+vx],n,s),S,c,E)}function nU(n,s,c,v){return G0(n[1][1+rn],n,c,v)}function D6(n,s,c,v){return G0(n[1][1+Or],n,c,v)}function uU(n,s,c,v){return G0(n[1][1+Tx],n,c,v)}function iU(n,s,c){return p(n[1][1+M1],n,c)}function fU(n,s,c){var v=c[2],d=c[1];switch(v[0]){case 0:var S=v[1],E=S[3],O=S[2],Z=S[1],y0=gr(p(n[1][1+z0],n,s),Z),_0=p(n[1][1+z],n,O),F0=p(n[1][1+n0],n,E),ox=0;if(y0===Z&&_0===O&&F0===E){var Cx=v;ox=1}if(!ox)var Cx=[0,[0,y0,_0,F0]];var et=Cx;break;case 1:var dx=v[1],wr=dx[3],c1=dx[2],s1=dx[1],y1=gr(p(n[1][1+ir],n,s),s1),d1=p(n[1][1+z],n,c1),Qe=p(n[1][1+n0],n,wr),He=0;if(wr===Qe&&y1===s1&&d1===c1){var qe=v;He=1}if(!He)var qe=[1,[0,y1,d1,Qe]];var et=qe;break;case 2:var Ie=v[1],Ge=Ie[2],be=Ie[1],gt=Ie[3],xt=G0(n[1][1+kx],n,s,be),rt=p(n[1][1+z],n,Ge),Mn=0;if(be===xt&&Ge===rt){var Dn=v;Mn=1}if(!Mn)var Dn=[2,[0,xt,rt,gt]];var et=Dn;break;default:var ms=v[1],ks=function(hs){return[3,hs]},et=Q0(l(n[1][1+$x],n),ms,v,ks)}return v===et?c:[0,d,et]}function Gm(n,s){return G0(n[1][1+K0],n,0,s)}function cU(n,s,c){var v=s?s[1]:0;return G0(n[1][1+K0],n,[0,v],c)}function R3(n,s){return p(n[1][1+en],n,s)}function sU(n,s){return p(n[1][1+en],n,s)}function oU(n,s){return G0(n[1][1+ds],n,TH,s)}function vU(n,s,c){return G0(n[1][1+ds],n,[0,s],c)}function aU(n,s){return G0(n[1][1+ds],n,wH,s)}function lU(n,s,c){var v=c[5],d=c[4],S=c[3],E=c[2],O=c[1],Z=p(n[1][1+Fe],n,O),y0=Yx(l(n[1][1+U],n),E),_0=Yx(l(n[1][1+$],n),S),F0=Yx(l(n[1][1+$],n),d),ox=p(n[1][1+n0],n,v);return O===Z&&S===_0&&E===y0&&S===_0&&d===F0&&v===ox?c:[0,Z,y0,_0,F0,ox]}function j6(n,s){return p(n[1][1+Cn],n,s)}function pU(n,s){return p(n[1][1+M1],n,s)}function yU(n,s){var c=s[1],v=s[2];function d(S){return[0,c,S]}return fx(l(n[1][1+rn],n),c,v,s,d)}function dU(n,s){var c=s[1],v=s[2];function d(S){return[0,c,S]}return fx(l(n[1][1+Or],n),c,v,s,d)}function z6(n,s){var c=s[1],v=s[2];function d(S){return[0,c,S]}return fx(l(n[1][1+Tx],n),c,v,s,d)}function mU(n,s){switch(s[0]){case 0:var c=s[1],v=function(dx){return[0,dx]};return Q0(l(n[1][1+h0],n),c,s,v);case 1:var d=s[1],S=function(dx){return[1,dx]};return Q0(l(n[1][1+Y0],n),d,s,S);case 2:var E=s[1],O=function(dx){return[2,dx]};return Q0(l(n[1][1+Wx],n),E,s,O);case 3:var Z=s[1],y0=function(dx){return[3,dx]};return Q0(l(n[1][1+U0],n),Z,s,y0);case 4:var _0=s[1],F0=function(dx){return[4,dx]};return Q0(l(n[1][1+A0],n),_0,s,F0);default:var ox=s[1],Cx=function(dx){return[5,dx]};return Q0(l(n[1][1+tx],n),ox,s,Cx)}}function kU(n,s){var c=s[2],v=s[1];switch(c[0]){case 0:var d=c[3],S=c[2],E=c[1],O=p(n[1][1+Lx],n,E),Z=p(n[1][1+Ax],n,S);if(d){var y0=0;if(O[0]===3){var _0=Z[2];if(_0[0]===8)var ox=Nr(O[1][2][1],_0[1][2][1]);else y0=1}else y0=1;if(y0)var F0=E===O?1:0,ox=F0&&(S===Z?1:0)}else var ox=d;return E===O&&S===Z&&d===ox?s:[0,v,[0,O,Z,ox]];case 1:var Cx=c[2],dx=c[1],wr=p(n[1][1+Lx],n,dx),c1=r2(l(n[1][1+cr],n),Cx);return dx===wr&&Cx===c1?s:[0,v,[1,wr,c1]];case 2:var s1=c[3],y1=c[2],d1=c[1],Qe=p(n[1][1+Lx],n,d1),He=r2(l(n[1][1+cr],n),y1),qe=p(n[1][1+n0],n,s1);return d1===Qe&&y1===He&&s1===qe?s:[0,v,[2,Qe,He,qe]];default:var Ie=c[3],Ge=c[2],be=c[1],gt=p(n[1][1+Lx],n,be),xt=r2(l(n[1][1+cr],n),Ge),rt=p(n[1][1+n0],n,Ie);return be===gt&&Ge===xt&&Ie===rt?s:[0,v,[3,gt,xt,rt]]}}function hU(n,s,c){var v=c[2],d=c[1],S=gr(function(O){if(O[0]===0){var Z=O[1],y0=p(n[1][1+S0],n,Z);return Z===y0?O:[0,y0]}var _0=O[1],F0=p(n[1][1+J0],n,_0);return _0===F0?O:[1,F0]},d),E=p(n[1][1+n0],n,v);return d===S&&v===E?c:[0,S,E]}function K6(n,s,c){var v=c[4],d=c[3],S=c[2],E=c[1],O=p(n[1][1+Ax],n,E),Z=Yx(l(n[1][1+qo],n),S),y0=Yx(l(n[1][1+fa],n),d),_0=p(n[1][1+n0],n,v);return E===O&&S===Z&&d===y0&&v===_0?c:[0,O,Z,y0,_0]}function J6(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+M1],n,S),O=p(n[1][1+M1],n,d),Z=p(n[1][1+n0],n,v);return S===E&&d===O&&v===Z?c:[0,E,O,Z]}function O3(n,s){return p(n[1][1+Ax],n,s)}function L3(n,s){return p(n[1][1+A0],n,s)}function bm(n,s){return p(n[1][1+M1],n,s)}function _U(n,s){switch(s[0]){case 0:var c=s[1],v=function(Z){return[0,Z]};return Q0(l(n[1][1+An],n),c,s,v);case 1:var d=s[1],S=function(Z){return[1,Z]};return Q0(l(n[1][1+gn],n),d,s,S);default:var E=s[1],O=function(Z){return[2,Z]};return Q0(l(n[1][1+fs],n),E,s,O)}}function wU(n,s,c){var v=c[1],d=G0(n[1][1+re],n,s,v);return v===d?c:[0,d,c[2],c[3]]}function x9(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+Ax],n,S),O=p(n[1][1+me],n,d),Z=p(n[1][1+n0],n,v);return S===E&&d===O&&v===Z?c:[0,E,O,Z]}function TU(n,s,c){var v=c[4],d=c[3],S=c[2],E=p(n[1][1+Ax],n,S),O=p(n[1][1+Ax],n,d),Z=p(n[1][1+n0],n,v);return S===E&&d===O&&v===Z?c:[0,c[1],E,O,Z]}function Y6(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+Zt],n,S),O=p(n[1][1+N0],n,d),Z=p(n[1][1+n0],n,v);return S===E&&d===O&&v===Z?c:[0,E,O,Z]}function r9(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+n0],n,v);return v===E?s:[0,S,[0,d,E]]}function e9(n,s){return p(n[1][1+uo],n,s)}function SU(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return Q0(l(n[1][1+to],n),c,s,v)}var d=s[1];function S(E){return[1,E]}return Q0(l(n[1][1+In],n),d,s,S)}function wE0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+a2],n,d),O=p(n[1][1+pt],n,v);return d===E&&v===O?s:[0,S,[0,E,O]]}function TE0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+pt],n,d),O=p(n[1][1+pt],n,v);return d===E&&v===O?s:[0,S,[0,E,O]]}function SE0(n,s){return p(n[1][1+In],n,s)}function EE0(n,s){return p(n[1][1+eo],n,s)}function AE0(n,s){return p(n[1][1+pt],n,s)}function gE0(n,s){switch(s[0]){case 0:var c=s[1],v=function(Z){return[0,Z]};return Q0(l(n[1][1+uo],n),c,s,v);case 1:var d=s[1],S=function(Z){return[1,Z]};return Q0(l(n[1][1+qv],n),d,s,S);default:var E=s[1],O=function(Z){return[2,Z]};return Q0(l(n[1][1+Yo],n),E,s,O)}}function NE0(n,s){var c=s[2],v=s[1],d=p(n[1][1+Ax],n,v),S=p(n[1][1+n0],n,c);return v===d&&c===S?s:[0,d,S]}function IE0(n,s,c){var v=c[2],d=c[1],S=p(n[1][1+n0],n,v);if(!d)return v===S?c:[0,0,S];var E=d[1],O=p(n[1][1+Ax],n,E);return E===O&&v===S?c:[0,[0,O],S]}function PE0(n,s){var c=s[2],v=s[1];switch(c[0]){case 0:var d=c[1],S=function(ox){return[0,v,[0,ox]]};return fx(l(n[1][1+cs],n),v,d,s,S);case 1:var E=c[1],O=function(ox){return[0,v,[1,ox]]};return fx(l(n[1][1+Jo],n),v,E,s,O);case 2:var Z=c[1],y0=function(ox){return[0,v,[2,ox]]};return fx(l(n[1][1+no],n),v,Z,s,y0);case 3:var _0=c[1],F0=function(ox){return[0,v,[3,ox]]};return Q0(l(n[1][1+Hv],n),_0,s,F0);default:return s}}function CE0(n,s){var c=s[2],v=s[1],d=gr(l(n[1][1+a3],n),c);return c===d?s:[0,v,d]}function RE0(n,s,c){return G0(n[1][1+Tx],n,s,c)}function OE0(n,s,c){return G0(n[1][1+no],n,s,c)}function LE0(n,s){if(s[0]===0){var c=s[1],v=c[1],d=c[2],S=function(_0){return[0,[0,v,_0]]};return fx(l(n[1][1+Xo],n),v,d,s,S)}var E=s[1],O=E[1],Z=E[2];function y0(_0){return[1,[0,O,_0]]}return fx(l(n[1][1+Pn],n),O,Z,s,y0)}function UE0(n,s){return p(n[1][1+eo],n,s)}function ME0(n,s){return p(n[1][1+pt],n,s)}function DE0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return Q0(l(n[1][1+Wo],n),c,s,v)}var d=s[1];function S(E){return[1,E]}return Q0(l(n[1][1+fo],n),d,s,S)}function jE0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+bv],n,d),O=Yx(l(n[1][1+Gv],n),v);return d===E&&v===O?s:[0,S,[0,E,O]]}function zE0(n,s,c){var v=c[2],d=c[1],S=p(n[1][1+Ax],n,d),E=p(n[1][1+n0],n,v);return d===S&&v===E?c:[0,S,E]}function KE0(n,s){if(s[0]===0){var c=s[1],v=function(Z){return[0,Z]};return Q0(l(n[1][1+ss],n),c,s,v)}var d=s[1],S=d[1],E=d[2];function O(Z){return[1,[0,S,Z]]}return fx(l(n[1][1+ke],n),S,E,s,O)}function JE0(n,s){var c=s[2][1],v=s[1],d=p(n[1][1+yt],n,c);return c===d?s:[0,v,[0,d]]}function YE0(n,s){var c=s[2],v=c[4],d=c[2],S=c[1],E=c[3],O=s[1],Z=p(n[1][1+yt],n,S),y0=Yx(l(n[1][1+qo],n),d),_0=gr(l(n[1][1+Ko],n),v);return S===Z&&d===y0&&v===_0?s:[0,O,[0,Z,y0,E,_0]]}function BE0(n,s,c){var v=c[4],d=c[3],S=p(n[1][1+io],n,d),E=p(n[1][1+n0],n,v);return d===S&&v===E?c:[0,c[1],c[2],S,E]}function XE0(n,s,c){var v=c[4],d=c[3],S=c[2],E=c[1],O=p(n[1][1+lt],n,E),Z=Yx(l(n[1][1+Bo],n),S),y0=p(n[1][1+io],n,d),_0=p(n[1][1+n0],n,v);return E===O&&S===Z&&d===y0&&v===_0?c:[0,O,Z,y0,_0]}function WE0(n,s,c,v){var d=2<=s?p(n[1][1+kx],n,_H):l(n[1][1+Fe],n);return l(d,v)}function VE0(n,s,c){var v=2<=s?p(n[1][1+kx],n,hH):l(n[1][1+Fe],n);return l(v,c)}function ZE0(n,s,c){var v=c[3],d=c[2],S=c[1],E=0,O=c[4];if(s){var Z=0;if(S)switch(S[1]){case 0:E=1;break;case 1:Z=2;break;default:Z=1}else Z=1;var y0=0;switch(Z){case 0:break;case 1:if(2<=s)var _0=0,F0=0;else y0=1;break;default:y0=1}if(y0)var _0=1,F0=0}else E=1;if(E)var _0=1,F0=1;var ox=d?p(n[1][1+V],n,v):F0?p(n[1][1+Fe],n,v):G0(n[1][1+kx],n,mH,v);if(d)var Cx=d[1],dx=_0?l(n[1][1+Fe],n):p(n[1][1+kx],n,kH),wr=Q0(dx,Cx,d,function(c1){return[0,c1]});else var wr=0;return d===wr&&v===ox?c:[0,S,wr,ox,O]}function $E0(n,s){return p(n[1][1+M1],n,s)}function FE0(n,s,c){if(c[0]===0){var v=c[1],d=gr(p(n[1][1+Um],n,s),v);return v===d?c:[0,d]}var S=c[1],E=S[1],O=S[2];function Z(y0){return[1,[0,E,y0]]}return fx(p(n[1][1+y3],n,s),E,O,c,Z)}function QE0(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+n0],n,v);return v===E?c:[0,S,d,E]}function HE0(n,s,c){var v=c[5],d=c[4],S=c[3],E=c[2],O=c[1],Z=r2(l(n[1][1+R6],n),E),y0=Yx(p(n[1][1+C6],n,O),d),_0=Yx(function(ox){var Cx=ox[1],dx=ox[2],wr=G0(n[1][1+Mm],n,O,Cx);return wr===Cx?ox:[0,wr,dx]},S),F0=p(n[1][1+n0],n,v);return E===Z&&d===y0&&S===_0&&v===F0?c:[0,O,Z,_0,y0,F0]}function qE0(n,s,c){var v=c[4],d=c[3],S=c[2],E=c[1],O=p(n[1][1+M],n,E),Z=G0(n[1][1+jm],n,d!==0?1:0,S),y0=l(n[1][1+zm],n),_0=Yx(function(ox){return r2(y0,ox)},d),F0=p(n[1][1+n0],n,v);return E===O&&S===Z&&d===_0&&v===F0?c:[0,O,Z,_0,F0]}function GE0(n,s,c){var v=c[2],d=c[1],S=p(n[1][1+N0],n,d),E=p(n[1][1+n0],n,v);return d===S&&v===E?c:[0,S,E]}function bE0(n,s,c){return p(n[1][1+N0],n,c)}function xA0(n,s,c){var v=c[2],d=c[1],S=p(n[1][1+Ax],n,d),E=p(n[1][1+n0],n,v);return d===S&&v===E?c:[0,S,E]}function rA0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+Ax],n,d),O=p(n[1][1+n0],n,v);return d===E&&v===O?s:[0,S,[0,E,O]]}function eA0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+n0],n,v);return v===E?s:[0,S,[0,d,E]]}function tA0(n,s,c){return G0(n[1][1+l3],n,s,c)}function nA0(n,s,c){var v=c[5],d=c[4],S=c[3],E=c[2],O=c[1],Z=p(n[1][1+Fe],n,O),y0=Yx(l(n[1][1+U],n),E),_0=l(n[1][1+dt],n),F0=gr(function(dx){return r2(_0,dx)},S),ox=r2(l(n[1][1+U1],n),d),Cx=p(n[1][1+n0],n,v);return Z===O&&y0===E&&F0===S&&ox===d&&Cx===v?c:[0,Z,y0,F0,ox,Cx]}function uA0(n,s){return p(n[1][1+J],n,s)}function iA0(n,s){return p(n[1][1+J],n,s)}function fA0(n,s){return p(n[1][1+M1],n,s)}function cA0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+n0],n,v);return v===E?s:[0,S,[0,d,E]]}function sA0(n,s){return G0(n[1][1+kx],n,dH,s)}function oA0(n,s){return p(n[1][1+Ax],n,s)}function vA0(n,s){var c=s[1],v=s[2];function d(S){return[0,c,S]}return fx(l(n[1][1+Et],n),c,v,s,d)}function aA0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return Q0(l(n[1][1+Wr],n),c,s,v)}var d=s[1];function S(E){return[1,E]}return Q0(l(n[1][1+Go],n),d,s,S)}function lA0(n,s){switch(s[0]){case 0:return s;case 1:var c=s[1],v=function(E){return[1,E]};return Q0(l(n[1][1+F],n),c,s,v);default:var d=s[1],S=function(E){return[2,E]};return Q0(l(n[1][1+e0],n),d,s,S)}}function pA0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+mr],n,d),O=p(n[1][1+Z1],n,v);return d===E&&v===O?s:[0,S,[0,E,O]]}function yA0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+F],n,d),O=p(n[1][1+n0],n,v);return E===d&&O===v?s:[0,S,[0,E,O]]}function dA0(n,s){var c=s[2],v=c[4],d=c[3],S=c[2],E=c[1],O=s[1],Z=gr(l(n[1][1+or],n),S),y0=Yx(l(n[1][1+Dx],n),d),_0=Yx(l(n[1][1+R0],n),E),F0=p(n[1][1+n0],n,v);return S===Z&&d===y0&&v===F0&&E===_0?s:[0,O,[0,_0,Z,y0,F0]]}function mA0(n,s,c){var v=c[9],d=c[8],S=c[7],E=c[6],O=c[3],Z=c[2],y0=c[1],_0=c[10],F0=c[5],ox=c[4],Cx=Yx(l(n[1][1+_r],n),y0),dx=Yx(l(n[1][1+U],n),d),wr=p(n[1][1+jx],n,Z),c1=p(n[1][1+rx],n,S),s1=p(n[1][1+$r],n,O),y1=Yx(l(n[1][1+L0],n),E),d1=p(n[1][1+n0],n,v);return y0===Cx&&Z===wr&&O===s1&&E===y1&&S===c1&&d===dx&&v===d1?c:[0,Cx,wr,s1,ox,F0,y1,c1,dx,d1,_0]}function kA0(n,s,c){return G0(n[1][1+Vr],n,s,c)}function hA0(n,s,c){return G0(n[1][1+cr],n,s,c)}function _A0(n,s,c){return G0(n[1][1+Vr],n,s,c)}function wA0(n,s){if(s[0]===0)return s;var c=s[1];function v(d){return[1,d]}return Q0(l(n[1][1+F],n),c,s,v)}function TA0(n,s){var c=s[2],v=s[1];function d(S){return[0,v,S]}return Q0(l(n[1][1+$],n),c,s,d)}function SA0(n,s){var c=s[2],v=s[1];switch(c[0]){case 0:var d=c[1],S=function(Ux){return[0,v,[0,Ux]]};return Q0(l(n[1][1+n0],n),d,s,S);case 1:var E=c[1],O=function(Ux){return[0,v,[1,Ux]]};return Q0(l(n[1][1+n0],n),E,s,O);case 2:var Z=c[1],y0=function(Ux){return[0,v,[2,Ux]]};return Q0(l(n[1][1+n0],n),Z,s,y0);case 3:var _0=c[1],F0=function(Ux){return[0,v,[3,Ux]]};return Q0(l(n[1][1+n0],n),_0,s,F0);case 4:var ox=c[1],Cx=function(Ux){return[0,v,[4,Ux]]};return Q0(l(n[1][1+n0],n),ox,s,Cx);case 5:var dx=c[1],wr=function(Ux){return[0,v,[5,Ux]]};return Q0(l(n[1][1+n0],n),dx,s,wr);case 6:var c1=c[1],s1=function(Ux){return[0,v,[6,Ux]]};return Q0(l(n[1][1+n0],n),c1,s,s1);case 7:var y1=c[1],d1=function(Ux){return[0,v,[7,Ux]]};return Q0(l(n[1][1+n0],n),y1,s,d1);case 8:var Qe=c[2],He=c[1],qe=function(Ux){return[0,v,[8,He,Ux]]};return Q0(l(n[1][1+n0],n),Qe,s,qe);case 9:var Ie=c[1],Ge=function(Ux){return[0,v,[9,Ux]]};return Q0(l(n[1][1+n0],n),Ie,s,Ge);case 10:var be=c[1],gt=function(Ux){return[0,v,[10,Ux]]};return Q0(l(n[1][1+n0],n),be,s,gt);case 11:var xt=c[1],rt=function(Ux){return[0,v,[11,Ux]]};return Q0(l(n[1][1+Xx],n),xt,s,rt);case 12:var Mn=c[1],Dn=function(Ux){return[0,v,[12,Ux]]};return fx(l(n[1][1+D],n),v,Mn,s,Dn);case 13:var ms=c[1],ks=function(Ux){return[0,v,[13,Ux]]};return fx(l(n[1][1+On],n),v,ms,s,ks);case 14:var et=c[1],hs=function(Ux){return[0,v,[14,Ux]]};return fx(l(n[1][1+U1],n),v,et,s,hs);case 15:var rv=c[1],B6=function(Ux){return[0,v,[15,Ux]]};return fx(l(n[1][1+Zo],n),v,rv,s,B6);case 16:var X6=c[1],W6=function(Ux){return[0,v,[16,Ux]]};return Q0(l(n[1][1+I3],n),X6,s,W6);case 17:var V6=c[1],Z6=function(Ux){return[0,v,[17,Ux]]};return Q0(l(n[1][1+ue],n),V6,s,Z6);case 18:var $6=c[1],F6=function(Ux){return[0,v,[18,Ux]]};return Q0(l(n[1][1+Lm],n),$6,s,F6);case 19:var Q6=c[1],H6=function(Ux){return[0,v,[19,Ux]]};return fx(l(n[1][1+dt],n),v,Q6,s,H6);case 20:var q6=c[1],G6=function(Ux){return[0,v,[20,Ux]]};return fx(l(n[1][1+p3],n),v,q6,s,G6);case 21:var b6=c[1],x4=function(Ux){return[0,v,[21,Ux]]};return fx(l(n[1][1+Dr],n),v,b6,s,x4);case 22:var r4=c[1],e4=function(Ux){return[0,v,[22,Ux]]};return fx(l(n[1][1+k],n),v,r4,s,e4);case 23:var t4=c[1],n4=function(Ux){return[0,v,[23,Ux]]};return fx(l(n[1][1+Vo],n),v,t4,s,n4);case 24:var u4=c[1],i4=function(Ux){return[0,v,[24,Ux]]};return Q0(l(n[1][1+g],n),u4,s,i4);case 25:var f4=c[1],c4=function(Ux){return[0,v,[25,Ux]]};return Q0(l(n[1][1+Nn],n),f4,s,c4);case 26:var s4=c[1],o4=function(Ux){return[0,v,[26,Ux]]};return Q0(l(n[1][1+d0],n),s4,s,o4);case 27:var v4=c[1],a4=function(Ux){return[0,v,[27,Ux]]};return Q0(l(n[1][1+f0],n),v4,s,a4);case 28:var l4=c[1],p4=function(Ux){return[0,v,[28,Ux]]};return fx(l(n[1][1+Tx],n),v,l4,s,p4);case 29:var y4=c[1],d4=function(Ux){return[0,v,[29,Ux]]};return fx(l(n[1][1+Or],n),v,y4,s,d4);case 30:var m4=c[1],k4=function(Ux){return[0,v,[30,Ux]]};return fx(l(n[1][1+rn],n),v,m4,s,k4);case 31:var h4=c[1],_4=function(Ux){return[0,v,[31,Ux]]};return fx(l(n[1][1+oo],n),v,h4,s,_4);case 32:var w4=c[1],T4=function(Ux){return[0,v,[32,Ux]]};return Q0(l(n[1][1+n0],n),w4,s,T4);case 33:var S4=c[1],E4=function(Ux){return[0,v,[33,Ux]]};return Q0(l(n[1][1+n0],n),S4,s,E4);default:var A4=c[1],g4=function(Ux){return[0,v,[34,Ux]]};return Q0(l(n[1][1+n0],n),A4,s,g4)}}function EA0(n,s,c){var v=c[2],d=c[1],S=d[3],E=d[2],O=d[1],Z=p(n[1][1+$],n,O),y0=p(n[1][1+$],n,E),_0=gr(l(n[1][1+$],n),S),F0=p(n[1][1+n0],n,v);return Z===O&&y0===E&&_0===S&&F0===v?c:[0,[0,Z,y0,_0],F0]}function AA0(n,s,c){var v=c[2],d=c[1],S=d[3],E=d[2],O=d[1],Z=p(n[1][1+$],n,O),y0=p(n[1][1+$],n,E),_0=gr(l(n[1][1+$],n),S),F0=p(n[1][1+n0],n,v);return Z===O&&y0===E&&_0===S&&F0===v?c:[0,[0,Z,y0,_0],F0]}function gA0(n,s){var c=s[2],v=s[1],d=p(n[1][1+$],n,v),S=p(n[1][1+n0],n,c);return v===d&&c===S?s:[0,d,S]}function NA0(n,s){var c=s[2],v=s[1],d=p(n[1][1+$],n,c);return d===c?s:[0,v,d]}function IA0(n,s){var c=s[3],v=s[2],d=s[4],S=s[1],E=p(n[1][1+$],n,v),O=p(n[1][1+i],n,c);return E===v&&O===c?s:[0,S,E,O,d]}function PA0(n,s){var c=s[2],v=s[1];switch(c[0]){case 0:var d=c[1],S=function(_0){return[0,v,[0,_0]]};return Q0(l(n[1][1+$],n),d,s,S);case 1:var E=c[1],O=function(_0){return[0,v,[1,_0]]};return Q0(l(n[1][1+v0],n),E,s,O);default:var Z=c[1],y0=function(_0){return[0,v,[2,_0]]};return Q0(l(n[1][1+c0],n),Z,s,y0)}}function CA0(n,s){var c=s[2],v=s[1],d=gr(l(n[1][1+s0],n),v),S=p(n[1][1+n0],n,c);return v===d&&c===S?s:[0,d,S]}function RA0(n,s){var c=s[2],v=s[1],d=p(n[1][1+$],n,v),S=p(n[1][1+n0],n,c);return v===d&&c===S?s:[0,d,S]}function OA0(n,s){var c=s[2],v=s[1],d=p(n[1][1+$],n,v),S=p(n[1][1+n0],n,c);return v===d&&c===S?s:[0,d,S]}function LA0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+L],n,d),O=p(n[1][1+C],n,v);return E===d&&O===v?s:[0,S,[0,E,O]]}function UA0(n,s){return p(n[1][1+M1],n,s)}function MA0(n,s){return p(n[1][1+M1],n,s)}function DA0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return Q0(l(n[1][1+R],n),c,s,v)}var d=s[1];function S(E){return[1,E]}return Q0(l(n[1][1+I],n),d,s,S)}function jA0(n,s){var c=s[2],v=s[1],d=p(n[1][1+L],n,v),S=p(n[1][1+n0],n,c);return v===d&&c===S?s:[0,d,S]}function zA0(n,s){var c=s[2],v=s[1],d=p(n[1][1+B],n,v),S=p(n[1][1+n0],n,c);return v===d&&c===S?s:[0,d,S]}function KA0(n,s){var c=s[5],v=s[4],d=s[3],S=s[2],E=s[1],O=p(n[1][1+$],n,E),Z=p(n[1][1+$],n,S),y0=p(n[1][1+$],n,d),_0=p(n[1][1+$],n,v),F0=p(n[1][1+n0],n,c);return E===O&&S===Z&&d===y0&&v===_0&&c===F0?s:[0,O,Z,y0,_0,F0]}function JA0(n,s){var c=s[2],v=s[1],d=p(n[1][1+$],n,v),S=p(n[1][1+n0],n,c);return v===d&&c===S?s:[0,d,S]}function YA0(n,s,c){var v=c[6],d=c[5],S=c[4],E=c[3],O=c[2],Z=c[1];return v===p(n[1][1+n0],n,v)?c:[0,Z,O,E,S,d,v]}function BA0(n,s,c){var v=c[4],d=c[3],S=c[2],E=c[1],O=p(n[1][1+n0],n,v);return v===O?c:[0,E,S,d,O]}function XA0(n,s,c){return p(n[1][1+n0],n,c)}function WA0(n,s,c){var v=c[2],d=c[1],S=p(n[1][1+n0],n,v);return v===S?c:[0,d,S]}function VA0(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+n0],n,v);return v===E?c:[0,S,d,E]}function ZA0(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+n0],n,v);return v===E?c:[0,S,d,E]}function $A0(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+n0],n,v);return v===E?c:[0,S,d,E]}function FA0(n,s,c){var v=c[1],d=c[2],S=G0(n[1][1+p3],n,s,v);return S===v?c:[0,S,d]}function QA0(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+$],n,S),O=p(n[1][1+$],n,d),Z=p(n[1][1+n0],n,v);return E===S&&O===d&&Z===v?c:[0,E,O,Z]}function HA0(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+q],n,S),O=Yx(l(n[1][1+Y],n),d),Z=p(n[1][1+n0],n,v);return E===S&&O===d&&Z===v?c:[0,E,O,Z]}function qA0(n,s){var c=s[2],v=c[5],d=c[4],S=c[2],E=c[1],O=c[3],Z=s[1],y0=p(n[1][1+z],n,S),_0=p(n[1][1+i],n,d),F0=Yx(l(n[1][1+$],n),v),ox=p(n[1][1+Fe],n,E);return ox===E&&y0===S&&_0===d&&F0===v?s:[0,Z,[0,ox,y0,O,_0,F0]]}function GA0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=gr(l(n[1][1+B],n),d),O=p(n[1][1+n0],n,v);return E===d&&O===v?s:[0,S,[0,E,O]]}function bA0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=gr(l(n[1][1+$],n),d),O=p(n[1][1+n0],n,v);return d===E&&v===O?s:[0,S,[0,E,O]]}function xg0(n,s){return Yx(l(n[1][1+f],n),s)}function rg0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+n0],n,v);return v===E?s:[0,S,[0,d,E]]}function eg0(n,s){return p(n[1][1+M1],n,s)}function tg0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+q],n,d),O=p(n[1][1+ro],n,v);return E===d&&O===v?s:[0,S,[0,E,O]]}function ng0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return Q0(l(n[1][1+X],n),c,s,v)}var d=s[1];function S(E){return[1,E]}return Q0(l(n[1][1+m3],n),d,s,S)}function ug0(n,s,c){var v=c[3],d=c[2],S=c[1],E=l(n[1][1+dt],n),O=gr(function(_0){return r2(E,_0)},d),Z=r2(l(n[1][1+U1],n),S),y0=p(n[1][1+n0],n,v);return O===d&&Z===S&&v===y0?c:[0,Z,O,y0]}function ig0(n,s){switch(s[0]){case 0:var c=s[1],v=function(dx){return[0,dx]};return Q0(l(n[1][1+x0],n),c,s,v);case 1:var d=s[1],S=function(dx){return[1,dx]};return Q0(l(n[1][1+_],n),d,s,S);case 2:var E=s[1],O=function(dx){return[2,dx]};return Q0(l(n[1][1+Vx],n),E,s,O);case 3:var Z=s[1],y0=function(dx){return[3,dx]};return Q0(l(n[1][1+er],n),Z,s,y0);case 4:var _0=s[1],F0=function(dx){return[4,dx]};return Q0(l(n[1][1+ur],n),_0,s,F0);default:var ox=s[1],Cx=function(dx){return[5,dx]};return Q0(l(n[1][1+H],n),ox,s,Cx)}}function fg0(n,s,c){var v=c[4],d=c[3],S=c[2],E=c[1],O=gr(l(n[1][1+Rr],n),d),Z=p(n[1][1+n0],n,v);return O===d&&v===Z?c:[0,E,S,O,Z]}function cg0(n,s){var c=s[2],v=c[6],d=c[4],S=c[3],E=c[2],O=c[1],Z=c[5],y0=s[1],_0=p(n[1][1+B],n,O),F0=p(n[1][1+$],n,E),ox=p(n[1][1+$],n,S),Cx=p(n[1][1+i],n,d),dx=p(n[1][1+n0],n,v);return _0===O&&F0===E&&ox===S&&Cx===d&&dx===v?s:[0,y0,[0,_0,F0,ox,Cx,Z,dx]]}function sg0(n,s){var c=s[2],v=c[3],d=c[1],S=d[2],E=d[1],O=c[2],Z=s[1],y0=G0(n[1][1+D],n,E,S),_0=p(n[1][1+n0],n,v);return S===y0&&v===_0?s:[0,Z,[0,[0,E,y0],O,_0]]}function og0(n,s){var c=s[2],v=c[6],d=c[2],S=c[1],E=c[5],O=c[4],Z=c[3],y0=s[1],_0=p(n[1][1+M1],n,S),F0=p(n[1][1+$],n,d),ox=p(n[1][1+n0],n,v);return S===_0&&d===F0&&v===ox?s:[0,y0,[0,_0,F0,Z,O,E,ox]]}function vg0(n,s){var c=s[2],v=c[6],d=c[5],S=c[3],E=c[2],O=c[4],Z=c[1],y0=s[1],_0=p(n[1][1+$],n,E),F0=p(n[1][1+$],n,S),ox=p(n[1][1+i],n,d),Cx=p(n[1][1+n0],n,v);return _0===E&&F0===S&&ox===d&&Cx===v?s:[0,y0,[0,Z,_0,F0,O,ox,Cx]]}function ag0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+$],n,d),O=p(n[1][1+n0],n,v);return E===d&&v===O?s:[0,S,[0,E,O]]}function lg0(n,s){var c=s[2],v=c[8],d=c[7],S=c[2],E=c[1],O=c[6],Z=c[5],y0=c[4],_0=c[3],F0=s[1],ox=p(n[1][1+Lx],n,E),Cx=p(n[1][1+b],n,S),dx=p(n[1][1+i],n,d),wr=p(n[1][1+n0],n,v);return ox===E&&Cx===S&&dx===d&&wr===v?s:[0,F0,[0,ox,Cx,_0,y0,Z,O,dx,wr]]}function pg0(n,s){var c=s[1],v=s[2];function d(S){return[0,c,S]}return fx(l(n[1][1+D],n),c,v,s,d)}function yg0(n,s){var c=s[1],v=s[2];function d(S){return[0,c,S]}return fx(l(n[1][1+D],n),c,v,s,d)}function dg0(n,s){switch(s[0]){case 0:var c=s[1],v=function(Z){return[0,Z]};return Q0(l(n[1][1+$],n),c,s,v);case 1:var d=s[1],S=function(Z){return[1,Z]};return Q0(l(n[1][1+k1],n),d,s,S);default:var E=s[1],O=function(Z){return[2,Z]};return Q0(l(n[1][1+t2],n),E,s,O)}}function mg0(n,s){return p(n[1][1+M1],n,s)}function kg0(n,s,c){var v=c[4],d=c[3],S=c[2],E=S[2],O=E[4],Z=E[3],y0=E[2],_0=E[1],F0=c[1],ox=S[1],Cx=Yx(l(n[1][1+U],n),F0),dx=Yx(l(n[1][1+T0],n),_0),wr=gr(l(n[1][1+bx],n),y0),c1=Yx(l(n[1][1+Sx],n),Z),s1=p(n[1][1+P],n,d),y1=p(n[1][1+n0],n,v),d1=p(n[1][1+n0],n,O);return wr===y0&&c1===Z&&s1===d&&Cx===F0&&y1===v&&d1===O&&dx===_0?c:[0,Cx,[0,ox,[0,dx,wr,c1,d1]],s1,y1]}function hg0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return Q0(l(n[1][1+$],n),c,s,v)}var d=s[1];function S(E){return[1,E]}return Q0(l(n[1][1+i0],n),d,s,S)}function _g0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+F],n,d),O=p(n[1][1+n0],n,v);return E===d&&O===v?s:[0,S,[0,E,O]]}function wg0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+bx],n,d),O=p(n[1][1+n0],n,v);return E===d&&O===v?s:[0,S,[0,E,O]]}function Tg0(n,s){var c=s[2],v=c[2],d=c[1],S=c[3],E=s[1],O=p(n[1][1+$],n,v),Z=Yx(l(n[1][1+M1],n),d);return O===v&&Z===d?s:[0,E,[0,Z,O,S]]}function Sg0(n,s){var c=s[1],v=s[2];function d(S){return[0,c,S]}return fx(l(n[1][1+y],n),c,v,s,d)}function Eg0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return Q0(l(n[1][1+h1],n),c,s,v)}var d=s[1];function S(E){return[1,E]}return Q0(l(n[1][1+Ax],n),d,s,S)}function Ag0(n,s,c){var v=c[5],d=c[4],S=c[3],E=c[2],O=c[1],Z=Yx(l(n[1][1+Ur],n),O),y0=Yx(l(n[1][1+M],n),E),_0=Yx(l(n[1][1+Ax],n),S),F0=p(n[1][1+N0],n,d),ox=p(n[1][1+n0],n,v);return O===Z&&E===y0&&S===_0&&d===F0&&v===ox?c:[0,Z,y0,_0,F0,ox]}function gg0(n,s){var c=s[1],v=s[2];function d(S){return[0,c,S]}return fx(l(n[1][1+y],n),c,v,s,d)}function Ng0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return Q0(l(n[1][1+p1],n),c,s,v)}var d=s[1];function S(E){return[1,E]}return Q0(l(n[1][1+f1],n),d,s,S)}function Ig0(n,s,c){var v=c[5],d=c[3],S=c[2],E=c[1],O=c[4],Z=p(n[1][1+x1],n,E),y0=p(n[1][1+Ax],n,S),_0=p(n[1][1+N0],n,d),F0=p(n[1][1+n0],n,v);return E===Z&&S===y0&&d===_0&&v===F0?c:[0,Z,y0,_0,O,F0]}function Pg0(n,s){var c=s[1],v=s[2];function d(S){return[0,c,S]}return fx(l(n[1][1+y],n),c,v,s,d)}function Cg0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return Q0(l(n[1][1+n2],n),c,s,v)}var d=s[1];function S(E){return[1,E]}return Q0(l(n[1][1+A1],n),d,s,S)}function Rg0(n,s,c){var v=c[5],d=c[3],S=c[2],E=c[1],O=c[4],Z=p(n[1][1+Cr],n,E),y0=p(n[1][1+Ax],n,S),_0=p(n[1][1+N0],n,d),F0=p(n[1][1+n0],n,v);return E===Z&&S===y0&&d===_0&&v===F0?c:[0,Z,y0,_0,O,F0]}function Og0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return Q0(l(n[1][1+Ax],n),c,s,v)}var d=s[1];function S(E){return[1,E]}return Q0(l(n[1][1+I0],n),d,s,S)}function Lg0(n,s,c){var v=c[3],d=c[1],S=c[2],E=p(n[1][1+Ax],n,d),O=p(n[1][1+n0],n,v);return d===E&&v===O?c:[0,E,S,O]}function Ug0(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+n0],n,v);return v===E?c:[0,S,d,E]}function Mg0(n,s){if(s[0]===0){var c=s[1],v=gr(l(n[1][1+lr],n),c);return c===v?s:[0,v]}var d=s[1],S=p(n[1][1+V2],n,d);return d===S?s:[1,S]}function Dg0(n,s){var c=s[2],v=s[1],d=Yx(l(n[1][1+M1],n),c);return c===d?s:[0,v,d]}function jg0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+M1],n,d),O=Yx(l(n[1][1+M1],n),v);return d===E&&v===O?s:[0,S,[0,E,O]]}function zg0(n,s,c){var v=c[5],d=c[3],S=c[2],E=c[1],O=c[4],Z=iY(l(n[1][1+Kr],n),d),y0=Yx(l(n[1][1+r1],n),S),_0=Yx(l(n[1][1+N0],n),E),F0=p(n[1][1+n0],n,v);return d===Z&&S===y0&&E===_0&&v===F0?c:[0,_0,y0,Z,O,F0]}function Kg0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return Q0(l(n[1][1+N0],n),c,s,v)}var d=s[1];function S(E){return[1,E]}return Q0(l(n[1][1+Ax],n),d,s,S)}function Jg0(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+V1],n,d),O=p(n[1][1+n0],n,v);return E===d&&O===v?c:[0,S,E,O]}function Yg0(n,s){return p(n[1][1+M1],n,s)}function Bg0(n,s){var c=s[2],v=c[1],d=c[2],S=s[1],E=p(n[1][1+l2],n,v);return v===E?s:[0,S,[0,E,d]]}function Xg0(n,s){var c=s[2],v=c[1],d=c[2],S=s[1],E=p(n[1][1+l2],n,v);return v===E?s:[0,S,[0,E,d]]}function Wg0(n,s){var c=s[2],v=c[1],d=c[2],S=s[1],E=p(n[1][1+l2],n,v);return v===E?s:[0,S,[0,E,d]]}function Vg0(n,s){var c=s[2],v=c[1],d=c[2],S=s[1],E=p(n[1][1+l2],n,v);return v===E?s:[0,S,[0,E,d]]}function Zg0(n,s){var c=s[2][1],v=s[1],d=p(n[1][1+l2],n,c);return c===d?s:[0,v,[0,d]]}function $g0(n,s){var c=s[4],v=s[1],d=gr(l(n[1][1+Te],n),v),S=p(n[1][1+n0],n,c);return v===d&&c===S?s:[0,d,s[2],s[3],S]}function Fg0(n,s){var c=s[3],v=s[1],d=gr(l(n[1][1+mt],n),v),S=p(n[1][1+n0],n,c);return v===d&&c===S?s:[0,d,s[2],S]}function Qg0(n,s){var c=s[4],v=s[1];if(v[0]===0)var d=v[1],S=function(ox){return[0,ox]},E=l(n[1][1+mt],n),_0=Q0(function(ox){return gr(E,ox)},d,v,S);else var O=v[1],Z=function(ox){return[1,ox]},y0=l(n[1][1+$t],n),_0=Q0(function(ox){return gr(y0,ox)},O,v,Z);var F0=p(n[1][1+n0],n,c);return v===_0&&c===F0?s:[0,_0,s[2],s[3],F0]}function Hg0(n,s){var c=s[4],v=s[1],d=gr(l(n[1][1+u2],n),v),S=p(n[1][1+n0],n,c);return v===d&&c===S?s:[0,d,s[2],s[3],S]}function qg0(n,s){var c=s[4],v=s[1],d=gr(l(n[1][1+kt],n),v),S=p(n[1][1+n0],n,c);return v===d&&c===S?s:[0,d,s[2],s[3],S]}function Gg0(n,s){var c=s[2],v=s[1];switch(c[0]){case 0:var d=c[1],S=function(dx){return[0,v,[0,dx]]};return Q0(l(n[1][1+Ze],n),d,s,S);case 1:var E=c[1],O=function(dx){return[0,v,[1,dx]]};return Q0(l(n[1][1+I2],n),E,s,O);case 2:var Z=c[1],y0=function(dx){return[0,v,[2,dx]]};return Q0(l(n[1][1+N2],n),Z,s,y0);case 3:var _0=c[1],F0=function(dx){return[0,v,[3,dx]]};return Q0(l(n[1][1+_e],n),_0,s,F0);default:var ox=c[1],Cx=function(dx){return[0,v,[4,dx]]};return Q0(l(n[1][1+Se],n),ox,s,Cx)}}function bg0(n,s,c){var v=c[3],d=c[2],S=c[1],E=G0(n[1][1+kx],n,yH,S),O=p(n[1][1+we],n,d),Z=p(n[1][1+n0],n,v);return S===E&&d===O&&v===Z?c:[0,E,O,Z]}function xN0(n,s,c){var v=c[1],d=p(n[1][1+n0],n,v);return v===d?c:[0,d]}function rN0(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+N0],n,S),O=p(n[1][1+M],n,d),Z=p(n[1][1+n0],n,v);return S===E&&d===O&&v===Z?c:[0,E,O,Z]}function eN0(n,s,c){var v=c[4],d=c[3],S=c[2],E=c[1],O=G0(n[1][1+kx],n,[0,d],E),Z=p(n[1][1+F],n,S),y0=p(n[1][1+n0],n,v);return O===E&&Z===S&&y0===v?c:[0,O,Z,d,y0]}function tN0(n,s,c){return G0(n[1][1+t0],n,s,c)}function nN0(n,s,c){var v=c[2],d=c[1],S=p(n[1][1+F],n,d),E=p(n[1][1+n0],n,v);return d===S&&v===E?c:[0,S,E]}function uN0(n,s,c){var v=c[4],d=c[2],S=c[3],E=c[1],O=r2(l(n[1][1+Et],n),d),Z=p(n[1][1+n0],n,v);return O===d&&v===Z?c:[0,E,O,S,Z]}function iN0(n,s,c){return G0(n[1][1+l3],n,s,c)}function fN0(n,s,c){var v=c[4],d=c[3],S=c[2],E=c[1],O=p(n[1][1+_r],n,E),Z=p(n[1][1+F],n,S),y0=Yx(l(n[1][1+L0],n),d),_0=p(n[1][1+n0],n,v);return O===E&&Z===S&&y0===d&&_0===v?c:[0,O,Z,y0,_0]}function cN0(n,s){switch(s[0]){case 0:var c=s[1],v=c[2],d=c[1],S=G0(n[1][1+ge],n,d,v);return S===v?s:[0,[0,d,S]];case 1:var E=s[1],O=E[2],Z=E[1],y0=G0(n[1][1+Ft],n,Z,O);return y0===O?s:[1,[0,Z,y0]];case 2:var _0=s[1],F0=_0[2],ox=_0[1],Cx=G0(n[1][1+ne],n,ox,F0);return Cx===F0?s:[2,[0,ox,Cx]];case 3:var dx=s[1],wr=dx[2],c1=dx[1],s1=G0(n[1][1+Qt],n,c1,wr);return s1===wr?s:[3,[0,c1,s1]];case 4:var y1=s[1],d1=p(n[1][1+$],n,y1);return d1===y1?s:[4,d1];case 5:var Qe=s[1],He=Qe[2],qe=Qe[1],Ie=G0(n[1][1+t0],n,qe,He);return Ie===He?s:[5,[0,qe,Ie]];case 6:var Ge=s[1],be=Ge[2],gt=Ge[1],xt=G0(n[1][1+br],n,gt,be);return xt===be?s:[6,[0,gt,xt]];case 7:var rt=s[1],Mn=rt[2],Dn=rt[1],ms=G0(n[1][1+l3],n,Dn,Mn);return ms===Mn?s:[7,[0,Dn,ms]];default:var ks=s[1],et=ks[2],hs=ks[1],rv=G0(n[1][1+P2],n,hs,et);return rv===et?s:[8,[0,hs,rv]]}}function sN0(n,s,c){var v=c[5],d=c[4],S=c[3],E=c[2],O=c[1],Z=iY(l(n[1][1+Kr],n),d),y0=Yx(l(n[1][1+r1],n),S),_0=Yx(l(n[1][1+os],n),E),F0=p(n[1][1+n0],n,v);return d===Z&&S===y0&&E===_0&&v===F0?c:[0,O,_0,y0,Z,F0]}function oN0(n,s,c){return G0(n[1][1+P2],n,s,c)}function vN0(n,s){var c=s[2],v=c[4],d=c[2],S=c[1],E=c[3],O=s[1],Z=Yx(l(n[1][1+M1],n),S),y0=p(n[1][1+$],n,d),_0=p(n[1][1+n0],n,v);return S===Z&&d===y0&&v===_0?s:[0,O,[0,Z,y0,E,_0]]}function aN0(n,s){var c=s[2],v=c[2],d=c[1],S=c[3],E=s[1],O=p(n[1][1+vs],n,d),Z=p(n[1][1+F],n,v);return d===O&&v===Z?s:[0,E,[0,O,Z,S]]}function lN0(n,s){var c=s[2],v=c[3],d=c[2],S=c[1],E=s[1],O=gr(l(n[1][1+bt],n),S),Z=Yx(l(n[1][1+Gt],n),d),y0=p(n[1][1+n0],n,v);return S===O&&d===Z&&v===y0?s:[0,E,[0,O,Z,y0]]}function pN0(n,s,c){var v=c[4],d=c[3],S=c[2],E=c[1],O=Yx(l(n[1][1+U],n),E),Z=p(n[1][1+Rn],n,S),y0=p(n[1][1+z],n,d),_0=p(n[1][1+n0],n,v);return E===O&&S===Z&&d===y0&&v===_0?c:[0,O,Z,y0,_0]}function yN0(n,s,c){var v=c[5],d=c[4],S=c[3],E=c[2],O=c[1],Z=p(n[1][1+ls],n,O),y0=Yx(l(n[1][1+U],n),E),_0=p(n[1][1+Rn],n,S),F0=p(n[1][1+z],n,d),ox=p(n[1][1+n0],n,v);return O===Z&&E===y0&&S===_0&&d===F0&&v===ox?c:[0,Z,y0,_0,F0,ox]}function dN0(n,s,c){var v=c[7],d=c[6],S=c[5],E=c[4],O=c[3],Z=c[2],y0=c[1],_0=p(n[1][1+Ln],n,y0),F0=Yx(l(n[1][1+U],n),Z),ox=r2(l(n[1][1+U1],n),O),Cx=l(n[1][1+dt],n),dx=Yx(function(d1){return r2(Cx,d1)},E),wr=l(n[1][1+dt],n),c1=gr(function(d1){return r2(wr,d1)},S),s1=Yx(l(n[1][1+na],n),d),y1=p(n[1][1+n0],n,v);return _0===y0&&F0===Z&&ox===O&&dx===E&&c1===S&&s1===d&&y1===v?c:[0,_0,F0,ox,dx,c1,s1,y1]}function mN0(n,s,c){var v=c[1],d=p(n[1][1+n0],n,v);return v===d?c:[0,d]}function kN0(n,s,c){var v=c[2],d=c[1],S=Yx(l(n[1][1+Zt],n),d),E=p(n[1][1+n0],n,v);return d===S&&v===E?c:[0,S,E]}function hN0(n,s,c){var v=c[4],d=c[3],S=c[2],E=c[1],O=p(n[1][1+M],n,E),Z=p(n[1][1+Ax],n,S),y0=p(n[1][1+Ax],n,d),_0=p(n[1][1+n0],n,v);return E===O&&S===Z&&d===y0&&v===_0?c:[0,O,Z,y0,_0]}function _N0(n,s){var c=s[1],v=s[2];function d(S){return[0,c,S]}return fx(l(n[1][1+Et],n),c,v,s,d)}function wN0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+St],n,d),O=p(n[1][1+n0],n,v);return d===E&&v===O?s:[0,S,[0,E,O]]}function TN0(n,s){return G0(n[1][1+ds],n,pH,s)}function SN0(n,s){if(s[0]===0)return[0,p(n[1][1+M1],n,s[1])];var c=s[1],v=c[1];return[1,[0,v,G0(n[1][1+Tx],n,v,c[2])]]}function EN0(n,s){var c=s[2],v=c[3],d=c[2],S=c[1],E=c[4],O=s[1],Z=p(n[1][1+vs],n,S),y0=p(n[1][1+St],n,d),_0=p(n[1][1+Z1],n,v);return S===Z&&d===y0&&v===_0?s:[0,O,[0,Z,y0,_0,E]]}function AN0(n,s){var c=s[2],v=c[3],d=c[2],S=c[1],E=s[1],O=gr(l(n[1][1+as],n),S),Z=Yx(l(n[1][1+$o],n),d),y0=p(n[1][1+n0],n,v);return S===O&&d===Z&&v===y0?s:[0,E,[0,O,Z,y0]]}function gN0(n,s){return G0(n[1][1+kx],n,lH,s)}function NN0(n,s,c){var v=c[6],d=c[5],S=c[4],E=c[3],O=c[2],Z=c[1],y0=c[7],_0=p(n[1][1+ls],n,Z),F0=Yx(l(n[1][1+U],n),O),ox=p(n[1][1+xn],n,E),Cx=p(n[1][1+k3],n,d),dx=p(n[1][1+z],n,S),wr=p(n[1][1+n0],n,v);return Z===_0&&O===F0&&E===ox&&d===Cx&&S===dx&&v===wr?c:[0,_0,F0,ox,dx,Cx,wr,y0]}function IN0(n,s){return Yx(l(n[1][1+Ax],n),s)}function PN0(n,s,c){var v=c[7],d=c[6],S=c[5],E=c[3],O=c[2],Z=c[1],y0=p(n[1][1+A0],n,Z),_0=p(n[1][1+Qo],n,O),F0=p(n[1][1+z],n,E),ox=p(n[1][1+i],n,S),Cx=gr(l(n[1][1+Ne],n),d),dx=p(n[1][1+n0],n,v);return Z===y0&&O===_0&&F0===E&&ox===S&&Cx===d&&dx===v?c:[0,y0,_0,F0,c[4],ox,Cx,dx]}function CN0(n,s){if(typeof s=="number")return s;var c=s[1],v=p(n[1][1+Ax],n,c);return c===v?s:[0,v]}function RN0(n,s,c){var v=c[7],d=c[6],S=c[5],E=c[3],O=c[2],Z=c[1],y0=p(n[1][1+Lx],n,Z),_0=p(n[1][1+Qo],n,O),F0=p(n[1][1+z],n,E),ox=p(n[1][1+i],n,S),Cx=gr(l(n[1][1+Ne],n),d),dx=p(n[1][1+n0],n,v);return Z===y0&&O===_0&&F0===E&&ox===S&&Cx===d&&dx===v?c:[0,y0,_0,F0,c[4],ox,Cx,dx]}function ON0(n,s,c){var v=c[6],d=c[5],S=c[3],E=c[2],O=p(n[1][1+Lx],n,E),Z=r2(l(n[1][1+cr],n),S),y0=gr(l(n[1][1+Ne],n),d),_0=p(n[1][1+n0],n,v);return E===O&&S===Z&&d===y0&&v===_0?c:[0,c[1],O,Z,c[4],y0,_0]}function LN0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+X],n,d),O=Yx(l(n[1][1+Y],n),v);return d===E&&v===O?s:[0,S,[0,E,O]]}function UN0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=gr(l(n[1][1+ta],n),d),O=p(n[1][1+n0],n,v);return d===E&&v===O?s:[0,S,[0,E,O]]}function MN0(n,s){switch(s[0]){case 0:var c=s[1],v=c[1],d=c[2],S=function(dx){return[0,[0,v,dx]]};return fx(l(n[1][1+_3],n),v,d,s,S);case 1:var E=s[1],O=E[1],Z=E[2],y0=function(dx){return[1,[0,O,dx]]};return fx(l(n[1][1+ea],n),O,Z,s,y0);default:var _0=s[1],F0=_0[1],ox=_0[2],Cx=function(dx){return[2,[0,F0,dx]]};return fx(l(n[1][1+h3],n),F0,ox,s,Cx)}}function DN0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+Ax],n,d),O=p(n[1][1+n0],n,v);return d===E&&v===O?s:[0,S,[0,E,O]]}function jN0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=gr(l(n[1][1+S3],n),d),O=p(n[1][1+n0],n,v);return d===E&&v===O?s:[0,S,[0,E,O]]}function zN0(n,s){return G0(n[1][1+kx],n,aH,s)}function KN0(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+Ax],n,S),O=Yx(l(n[1][1+Y],n),d),Z=p(n[1][1+n0],n,v);return S===E&&d===O&&v===Z?c:[0,E,O,Z]}function JN0(n,s,c){var v=c[7],d=c[6],S=c[5],E=c[4],O=c[3],Z=c[2],y0=c[1],_0=Yx(l(n[1][1+Ln],n),y0),F0=Yx(l(n[1][1+U],n),O),ox=p(n[1][1+A3],n,Z),Cx=l(n[1][1+w3],n),dx=Yx(function(y1){return r2(Cx,y1)},E),wr=Yx(l(n[1][1+na],n),S),c1=gr(l(n[1][1+Ne],n),d),s1=p(n[1][1+n0],n,v);return y0===_0&&Z===ox&&E===dx&&S===wr&&d===c1&&v===s1&&O===F0?c:[0,_0,ox,F0,dx,wr,c1,s1]}function YN0(n,s,c){return G0(n[1][1+ua],n,s,c)}function BN0(n,s,c){return G0(n[1][1+ua],n,s,c)}function XN0(n,s,c){var v=c[3],d=c[2],S=c[1],E=Yx(l(n[1][1+ps],n),S),O=p(n[1][1+Ho],n,d),Z=p(n[1][1+n0],n,v);return S===E&&d===O&&v===Z?c:[0,E,O,Z]}function WN0(n,s){return r2(l(n[1][1+Et],n),s)}function VN0(n,s){if(s[0]===0){var c=s[1],v=p(n[1][1+$],n,c);return v===c?s:[0,v]}var d=s[1],S=d[2][1],E=d[1],O=p(n[1][1+n0],n,S);return S===O?s:[1,[0,E,[0,O]]]}function ZN0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=gr(l(n[1][1+g3],n),d),O=p(n[1][1+n0],n,v);return d===E&&v===O?s:[0,S,[0,E,O]]}function $N0(n,s,c){var v=c[1],d=G0(n[1][1+ia],n,s,v);return v===d?c:[0,d,c[2],c[3]]}function FN0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=gr(l(n[1][1+ee],n),d),O=p(n[1][1+n0],n,v);return d===E&&v===O?s:[0,S,[0,E,O]]}function QN0(n,s,c){var v=c[4],d=c[3],S=c[2],E=c[1],O=p(n[1][1+Ax],n,E),Z=Yx(l(n[1][1+qo],n),S),y0=p(n[1][1+fa],n,d),_0=p(n[1][1+n0],n,v);return E===O&&S===Z&&d===y0&&v===_0?c:[0,O,Z,y0,_0]}function HN0(n,s,c){var v=c[2],d=c[1],S=Yx(l(n[1][1+Zt],n),d),E=p(n[1][1+n0],n,v);return d===S&&v===E?c:[0,S,E]}function qN0(n,s,c){var v=c[2],d=c[1],S=p(n[1][1+O0],n,d),E=p(n[1][1+n0],n,v);return d===S&&v===E?c:[0,S,E]}function GN0(n,s,c){var v=c[4],d=c[3],S=c[2],E=p(n[1][1+Ax],n,S),O=p(n[1][1+Ax],n,d),Z=p(n[1][1+n0],n,v);return S===E&&d===O&&v===Z?c:[0,c[1],E,O,Z]}function bN0(n,s,c){var v=c[4],d=c[3],S=c[2],E=p(n[1][1+en],n,S),O=p(n[1][1+Ax],n,d),Z=p(n[1][1+n0],n,v);return S===E&&d===O&&v===Z?c:[0,c[1],E,O,Z]}function xI0(n,s,c){return G0(n[1][1+Vr],n,s,c)}function rI0(n,s){switch(s[0]){case 0:var c=s[1],v=function(E){return[0,E]};return Q0(l(n[1][1+Ax],n),c,s,v);case 1:var d=s[1],S=function(E){return[1,E]};return Q0(l(n[1][1+I0],n),d,s,S);default:return s}}function eI0(n,s,c){var v=c[2],d=c[1],S=gr(l(n[1][1+xv],n),d),E=p(n[1][1+n0],n,v);return d===S&&v===E?c:[0,S,E]}function tI0(n,s){var c=s[2],v=s[1];switch(c[0]){case 0:var d=c[1],S=function(Mx){return[0,v,[0,Mx]]};return fx(l(n[1][1+P3],n),v,d,s,S);case 1:var E=c[1],O=function(Mx){return[0,v,[1,Mx]]};return fx(l(n[1][1+N3],n),v,E,s,O);case 2:var Z=c[1],y0=function(Mx){return[0,v,[2,Mx]]};return fx(l(n[1][1+bo],n),v,Z,s,y0);case 3:var _0=c[1],F0=function(Mx){return[0,v,[3,Mx]]};return fx(l(n[1][1+At],n),v,_0,s,F0);case 4:var ox=c[1],Cx=function(Mx){return[0,v,[4,Mx]]};return fx(l(n[1][1+ia],n),v,ox,s,Cx);case 5:var dx=c[1],wr=function(Mx){return[0,v,[5,Mx]]};return fx(l(n[1][1+T3],n),v,dx,s,wr);case 6:var c1=c[1],s1=function(Mx){return[0,v,[6,Mx]]};return fx(l(n[1][1+qt],n),v,c1,s,s1);case 7:var y1=c[1],d1=function(Mx){return[0,v,[7,Mx]]};return fx(l(n[1][1+sr],n),v,y1,s,d1);case 8:var Qe=c[1],He=function(Mx){return[0,v,[8,Mx]]};return Q0(l(n[1][1+M1],n),Qe,s,He);case 9:var qe=c[1],Ie=function(Mx){return[0,v,[9,Mx]]};return Q0(p(n[1][1+d3],n,v),qe,s,Ie);case 10:var Ge=c[1],be=function(Mx){return[0,v,[10,Mx]]};return fx(l(n[1][1+cs],n),v,Ge,s,be);case 11:var gt=c[1],xt=function(Mx){return[0,v,[11,Mx]]};return fx(l(n[1][1+Jo],n),v,gt,s,xt);case 12:var rt=c[1],Mn=function(Mx){return[0,v,[12,Mx]]};return fx(l(n[1][1+Tx],n),v,rt,s,Mn);case 13:var Dn=c[1],ms=function(Mx){return[0,v,[13,Mx]]};return fx(l(n[1][1+oo],n),v,Dn,s,ms);case 14:var ks=c[1],et=function(Mx){return[0,v,[14,Mx]]};return fx(l(n[1][1+X2],n),v,ks,s,et);case 15:var hs=c[1],rv=function(Mx){return[0,v,[15,Mx]]};return fx(l(n[1][1+Or],n),v,hs,s,rv);case 16:var B6=c[1],X6=function(Mx){return[0,v,[16,Mx]]};return fx(l(n[1][1+rn],n),v,B6,s,X6);case 17:var W6=c[1],V6=function(Mx){return[0,v,[17,Mx]]};return fx(l(n[1][1+p0],n),v,W6,s,V6);case 18:var Z6=c[1],$6=function(Mx){return[0,v,[18,Mx]]};return fx(l(n[1][1+de],n),v,Z6,s,$6);case 19:var F6=c[1],Q6=function(Mx){return[0,v,[19,Mx]]};return fx(l(n[1][1+Vt],n),v,F6,s,Q6);case 20:var H6=c[1],q6=function(Mx){return[0,v,[20,Mx]]};return fx(l(n[1][1+re],n),v,H6,s,q6);case 21:var G6=c[1],b6=function(Mx){return[0,v,[21,Mx]]};return fx(l(n[1][1+En],n),v,G6,s,b6);case 22:var x4=c[1],r4=function(Mx){return[0,v,[22,Mx]]};return fx(l(n[1][1+at],n),v,x4,s,r4);case 23:var e4=c[1],t4=function(Mx){return[0,v,[23,Mx]]};return fx(l(n[1][1+Jx],n),v,e4,s,t4);case 24:var n4=c[1],u4=function(Mx){return[0,v,[24,Mx]]};return Q0(p(n[1][1+ax],n,v),n4,s,u4);case 25:var i4=c[1],f4=function(Mx){return[0,v,[25,Mx]]};return fx(l(n[1][1+Sr],n),v,i4,s,f4);case 26:var c4=c[1],s4=function(Mx){return[0,v,[26,Mx]]};return fx(l(n[1][1+Q],n),v,c4,s,s4);case 27:var o4=c[1],v4=function(Mx){return[0,v,[27,Mx]]};return fx(l(n[1][1+px],n),v,o4,s,v4);case 28:var a4=c[1],l4=function(Mx){return[0,v,[28,Mx]]};return fx(l(n[1][1+Z0],n),v,a4,s,l4);case 29:var p4=c[1],y4=function(Mx){return[0,v,[29,Mx]]};return fx(l(n[1][1+g0],n),v,p4,s,y4);case 30:var d4=c[1],m4=function(Mx){return[0,v,[30,Mx]]};return fx(l(n[1][1+D0],n),v,d4,s,m4);case 31:var k4=c[1],h4=function(Mx){return[0,v,[31,Mx]]};return fx(l(n[1][1+j],n),v,k4,s,h4);case 32:var _4=c[1],w4=function(Mx){return[0,v,[32,Mx]]};return fx(l(n[1][1+o0],n),v,_4,s,w4);case 33:var T4=c[1],S4=function(Mx){return[0,v,[33,Mx]]};return fx(l(n[1][1+A],n),v,T4,s,S4);case 34:var E4=c[1],A4=function(Mx){return[0,v,[34,Mx]]};return fx(l(n[1][1+h],n),v,E4,s,A4);default:var g4=c[1],Ux=function(Mx){return[0,v,[35,Mx]]};return fx(l(n[1][1+e],n),v,g4,s,Ux)}}function nI0(n,s){var c=s[2],v=s[1],d=s[3],S=gr(l(n[1][1+co],n),v),E=gr(l(n[1][1+co],n),c);return v===S&&c===E?s:[0,S,E,d]}function uI0(n){var s=l(n[1][1+nx],n);return function(c){return Yx(s,c)}}function iI0(n,s){return s}function fI0(n,s){var c=s[2],v=s[1];switch(c[0]){case 0:var d=c[1],S=function(Ix){return[0,v,[0,Ix]]};return fx(l(n[1][1+Et],n),v,d,s,S);case 1:var E=c[1],O=function(Ix){return[0,v,[1,Ix]]};return fx(l(n[1][1+ys],n),v,E,s,O);case 2:var Z=c[1],y0=function(Ix){return[0,v,[2,Ix]]};return fx(l(n[1][1+E3],n),v,Z,s,y0);case 3:var _0=c[1],F0=function(Ix){return[0,v,[3,Ix]]};return fx(l(n[1][1+Fo],n),v,_0,s,F0);case 4:var ox=c[1],Cx=function(Ix){return[0,v,[4,Ix]]};return fx(l(n[1][1+Ht],n),v,ox,s,Cx);case 5:var dx=c[1],wr=function(Ix){return[0,v,[5,Ix]]};return fx(l(n[1][1+Tt],n),v,dx,s,wr);case 6:var c1=c[1],s1=function(Ix){return[0,v,[6,Ix]]};return fx(l(n[1][1+ne],n),v,c1,s,s1);case 7:var y1=c[1],d1=function(Ix){return[0,v,[7,Ix]]};return fx(l(n[1][1+Qt],n),v,y1,s,d1);case 8:var Qe=c[1],He=function(Ix){return[0,v,[8,Ix]]};return fx(l(n[1][1+wt],n),v,Qe,s,He);case 9:var qe=c[1],Ie=function(Ix){return[0,v,[9,Ix]]};return fx(l(n[1][1+_t],n),v,qe,s,Ie);case 10:var Ge=c[1],be=function(Ix){return[0,v,[10,Ix]]};return fx(l(n[1][1+Ft],n),v,Ge,s,be);case 11:var gt=c[1],xt=function(Ix){return[0,v,[11,Ix]]};return fx(l(n[1][1+C2],n),v,gt,s,xt);case 12:var rt=c[1],Mn=function(Ix){return[0,v,[12,Ix]]};return fx(l(n[1][1+te],n),v,rt,s,Mn);case 13:var Dn=c[1],ms=function(Ix){return[0,v,[13,Ix]]};return fx(l(n[1][1+$e],n),v,Dn,s,ms);case 14:var ks=c[1],et=function(Ix){return[0,v,[14,Ix]]};return fx(l(n[1][1+ht],n),v,ks,s,et);case 15:var hs=c[1],rv=function(Ix){return[0,v,[15,Ix]]};return fx(l(n[1][1+br],n),v,hs,s,rv);case 16:var B6=c[1],X6=function(Ix){return[0,v,[16,Ix]]};return fx(l(n[1][1+ge],n),v,B6,s,X6);case 17:var W6=c[1],V6=function(Ix){return[0,v,[17,Ix]]};return fx(l(n[1][1+Ae],n),v,W6,s,V6);case 18:var Z6=c[1],$6=function(Ix){return[0,v,[18,Ix]]};return fx(l(n[1][1+Ee],n),v,Z6,s,$6);case 19:var F6=c[1],Q6=function(Ix){return[0,v,[19,Ix]]};return fx(l(n[1][1+P2],n),v,F6,s,Q6);case 20:var H6=c[1],q6=function(Ix){return[0,v,[20,Ix]]};return fx(l(n[1][1+he],n),v,H6,s,q6);case 21:var G6=c[1],b6=function(Ix){return[0,v,[21,Ix]]};return fx(l(n[1][1+Br],n),v,G6,s,b6);case 22:var x4=c[1],r4=function(Ix){return[0,v,[22,Ix]]};return fx(l(n[1][1+W2],n),v,x4,s,r4);case 23:var e4=c[1],t4=function(Ix){return[0,v,[23,Ix]]};return fx(l(n[1][1+Fr],n),v,e4,s,t4);case 24:var n4=c[1],u4=function(Ix){return[0,v,[24,Ix]]};return fx(l(n[1][1+D1],n),v,n4,s,u4);case 25:var i4=c[1],f4=function(Ix){return[0,v,[25,Ix]]};return fx(l(n[1][1+l1],n),v,i4,s,f4);case 26:var c4=c[1],s4=function(Ix){return[0,v,[26,Ix]]};return fx(l(n[1][1+Pr],n),v,c4,s,s4);case 27:var o4=c[1],v4=function(Ix){return[0,v,[27,Ix]]};return fx(l(n[1][1+Dm],n),v,o4,s,v4);case 28:var a4=c[1],l4=function(Ix){return[0,v,[28,Ix]]};return fx(l(n[1][1+ra],n),v,a4,s,l4);case 29:var p4=c[1],y4=function(Ix){return[0,v,[29,Ix]]};return fx(l(n[1][1+xa],n),v,p4,s,y4);case 30:var d4=c[1],m4=function(Ix){return[0,v,[30,Ix]]};return fx(l(n[1][1+dr],n),v,d4,s,m4);case 31:var k4=c[1],h4=function(Ix){return[0,v,[31,Ix]]};return fx(l(n[1][1+G],n),v,k4,s,h4);case 32:var _4=c[1],w4=function(Ix){return[0,v,[32,Ix]]};return fx(l(n[1][1+yx],n),v,_4,s,w4);case 33:var T4=c[1],S4=function(Ix){return[0,v,[33,Ix]]};return fx(l(n[1][1+M0],n),v,T4,s,S4);case 34:var E4=c[1],A4=function(Ix){return[0,v,[34,Ix]]};return fx(l(n[1][1+E0],n),v,E4,s,A4);case 35:var g4=c[1],Ux=function(Ix){return[0,v,[35,Ix]]};return fx(l(n[1][1+t0],n),v,g4,s,Ux);case 36:var Mx=c[1],cI0=function(Ix){return[0,v,[36,Ix]]};return fx(l(n[1][1+br],n),v,Mx,s,cI0);case 37:var sI0=c[1],oI0=function(Ix){return[0,v,[37,Ix]]};return fx(l(n[1][1+y],n),v,sI0,s,oI0);case 38:var vI0=c[1],aI0=function(Ix){return[0,v,[38,Ix]]};return fx(l(n[1][1+u],n),v,vI0,s,aI0);default:var lI0=c[1],pI0=function(Ix){return[0,v,[39,Ix]]};return fx(l(n[1][1+t],n),v,lI0,s,pI0)}}return UR(x,[0,Km,function(n,s){var c=s[2],v=c[4],d=c[3],S=c[1],E=c[2],O=s[1],Z=p(n[1][1+k0],n,S),y0=p(n[1][1+n0],n,d),_0=gr(l(n[1][1+co],n),v);return S===Z&&d===y0&&v===_0?s:[0,O,[0,Z,E,y0,_0]]},N0,fI0,co,iI0,n0,uI0,nx,nI0,Ax,tI0,P3,eI0,xv,rI0,N3,xI0,bo,bN0,At,GN0,Et,qN0,ys,HN0,ia,QN0,fa,FN0,ax,$N0,qo,ZN0,g3,VN0,Ho,WN0,so,XN0,E3,BN0,T3,YN0,ua,JN0,w3,KN0,Ln,zN0,A3,jN0,Ne,DN0,S3,MN0,na,UN0,ta,LN0,_3,ON0,ea,RN0,Qo,CN0,h3,PN0,Z1,IN0,Fo,NN0,ls,gN0,xn,AN0,as,EN0,vs,SN0,St,TN0,$o,wN0,k3,_N0,qt,hN0,Ht,kN0,Tt,mN0,ne,dN0,Qt,yN0,On,pN0,Rn,lN0,bt,aN0,Gt,vN0,wt,oN0,_t,sN0,os,cN0,Ft,fN0,C2,iN0,te,uN0,$e,nN0,ht,tN0,ge,eN0,Ae,rN0,Ee,xN0,P2,bg0,we,Gg0,Ze,qg0,I2,Hg0,N2,Qg0,_e,Fg0,Se,$g0,mt,Zg0,kt,Vg0,u2,Wg0,$t,Xg0,Te,Bg0,l2,Yg0,he,Jg0,V1,Kg0,Br,zg0,lr,jg0,V2,Dg0,r1,Mg0,Kr,Ug0,W2,Lg0,ee,Og0,D1,Rg0,Cr,Cg0,n2,Pg0,l1,Ig0,x1,Ng0,p1,gg0,Fr,Ag0,Ur,Eg0,h1,Sg0,bx,Tg0,Sx,wg0,T0,_g0,P,hg0,D,kg0,Zt,mg0,b,dg0,k1,yg0,t2,pg0,x0,lg0,_,ag0,Vx,vg0,ur,og0,er,sg0,H,cg0,U1,fg0,Rr,ig0,Zo,ug0,q,ng0,m3,tg0,ro,eg0,f,rg0,i,xg0,Y,bA0,U,GA0,B,qA0,dt,HA0,p3,QA0,Dr,FA0,Tx,$A0,Or,ZA0,rn,VA0,oo,WA0,X2,XA0,p0,BA0,de,YA0,Xx,JA0,ue,KA0,Lm,zA0,g,jA0,L,DA0,R,MA0,C,UA0,I,LA0,Nn,OA0,d0,RA0,f0,CA0,s0,PA0,v0,IA0,c0,NA0,I3,gA0,k,AA0,Vo,EA0,$,SA0,F,TA0,z,wA0,Pr,_A0,sr,hA0,cr,kA0,Vr,mA0,jx,dA0,R0,yA0,or,pA0,rx,lA0,$r,aA0,Wr,vA0,Go,oA0,_r,sA0,M1,cA0,J,fA0,X,iA0,Fe,uA0,l3,nA0,xa,tA0,A0,eA0,Cn,rA0,d3,xA0,jm,bE0,zm,GE0,Dm,qE0,ra,HE0,R6,QE0,C6,FE0,V,$E0,Um,ZE0,Mm,VE0,y3,WE0,cs,XE0,Jo,BE0,lt,YE0,Bo,JE0,Ko,KE0,ke,zE0,ss,jE0,bv,DE0,Wo,ME0,fo,UE0,Gv,LE0,Pn,OE0,Xo,RE0,io,CE0,a3,PE0,no,IE0,Hv,NE0,yt,gE0,uo,AE0,qv,EE0,Yo,SE0,eo,TE0,In,wE0,a2,SU,to,e9,pt,r9,dr,Y6,Vt,TU,re,x9,Sr,wU,me,_U,An,bm,gn,L3,fs,O3,En,J6,at,K6,Jx,hU,S0,kU,Lx,mU,h0,z6,Y0,dU,Wx,yU,U0,pU,tx,j6,br,lU,mr,aU,o,vU,ps,oU,A1,sU,f1,R3,ds,cU,en,Gm,K0,fU,kx,iU,V0,uU,Px,D6,Qx,nU,z0,qm,ux,tU,T,eU,b0,rU,W0,M6,sx,xU,K,U6,H0,Hm,vx,bL,hx,Qm,B0,L6,ir,Fm,X0,GL,zx,$m,rr,qL,j0,O6,$x,HL,L0,QL,M,FL,e0,Zm,i0,Vm,Dx,ca,G,$L,Q,Wm,k0,Xm,O0,ZL,P0,VL,I0,WL,J0,Bm,px,C3,yx,XL,xx,BL,Z0,YL,g0,JL,cx,KL,D0,zL,M0,jL,E0,DL,j,ML,o0,UL,A,LL,h,OL,y,RL,a,CL,u,PL,t,Ym,t0,Jm,e,Un]),function(n,s){return fd(s,x)}}),JR=function x(r,e,t){return x.fun(r,e,t)};C0(JR,function(x,r,e){var t=e[2];switch(t[0]){case 0:var u=t[1][1];return b1(function(f){return function(o){var a=o[0]===0?o[1][2][2]:o[1][2][1];return G0(JR,x,f,a)}},r,u);case 1:var i=t[1][1];return b1(function(f){return function(o){return o[0]===2?f:G0(JR,x,f,o[1][2][1])}},r,i);case 2:return p(x,r,t[1][1]);default:return r}});var hn=function(x,r){return[0,r[1],[0,r[2],x]]},fY=function(x,r,e){var t=x?x[1]:0,u=r?r[1]:0;return[0,t,u,e]},m0=function(x,r,e){var t=x?x[1]:0,u=r?r[1]:0;return!t&&!u?0:[0,fY([0,t],[0,u],0)]},K1=function(x,r,e,t){var u=x?x[1]:0,i=r?r[1]:0;return!u&&!i&&!e?0:[0,fY([0,u],[0,i],e)]},g2=function(x,r){if(x){if(r){var e=r[1],t=x[1],u=[0,Fx(t[2],e[2])];return m0([0,Fx(e[1],t[1])],u,0)}var i=x}else var i=r;return i},YR=function(x,r){if(!r)return x;if(x){var e=r[1],t=x[1],u=e[1],i=t[3],f=t[1],o=[0,Fx(t[2],e[2])];return K1([0,Fx(u,f)],o,i,0)}var a=r[1];return K1([0,a[1]],[0,a[2]],0,0)},cY=function(x,r){l(zr(x),oq),p(zr(x),aq,vq);var e=r[1];l(l(zr(x),lq),e),l(zr(x),pq),l(zr(x),yq),p(zr(x),mq,dq);var t=r[2];return l(l(zr(x),kq),t),l(zr(x),hq),l(zr(x),_q)},sY=function x(r,e){return x.fun(r,e)},DT0=function x(r){return x.fun(r)};C0(sY,function(x,r){l(zr(x),Aq),p(zr(x),Nq,gq);var e=r[1];if(e){var t=e[1];switch(ud(x,Tq),t[0]){case 0:var u=t[1];l(zr(x),xH),l(l(zr(x),rH),u),l(zr(x),eH);break;case 1:var i=t[1];l(zr(x),tH),l(l(zr(x),nH),i),l(zr(x),uH);break;case 2:var f=t[1];l(zr(x),iH),l(l(zr(x),fH),f),l(zr(x),cH);break;default:var o=t[1];l(zr(x),sH),l(l(zr(x),oH),o),l(zr(x),vH)}ud(x,Sq)}else ud(x,Eq);return l(zr(x),Iq),l(zr(x),Pq),p(zr(x),Rq,Cq),cY(x,r[2]),l(zr(x),Oq),l(zr(x),Lq),p(zr(x),Mq,Uq),cY(x,r[3]),l(zr(x),Dq),l(zr(x),jq)}),C0(DT0,function(x){var r=wq[1],e=AJ(0),t=AR(e);return p(jr(function(u){Xe(t,u),SR(t,0);var i=z1(e);return e[2]=0,e[1]=e[4],e[3]=ft(e[1]),i},0,r),sY,x)});var i1=function(x,r){return[0,x[1],x[2],r[3]]},Fs=function(x,r){var e=x[1]-r[1]|0;return e===0?x[2]-r[2]|0:e},oY=function(x,r){var e=r[1],t=x[1];if(t){var u=t[1];if(e)var i=e[1],f=uY(i),o=uY(u)-f|0,a=o===0?Ex(u[1],i[1]):o;else var a=-1}else var a=e?1:0;if(a!==0)return a;var y=Fs(x[2],r[2]);return y===0?Fs(x[3],r[3]):y},Eo=function(x,r){return oY(x,r)===0?1:0},vY=function x(r,e){return x.fun(r,e)};C0(vY,function(x,r){if(typeof x=="number"){var e=x;if(59<=e)switch(e){case 59:if(typeof r=="number"&&r===59)return 0;break;case 60:if(typeof r=="number"&&r===60)return 0;break;case 61:if(typeof r=="number"&&r===61)return 0;break;case 62:if(typeof r=="number"&&r===62)return 0;break;case 63:if(typeof r=="number"&&r===63)return 0;break;case 64:if(typeof r=="number"&&r===64)return 0;break;case 65:if(typeof r=="number"&&r===65)return 0;break;case 66:if(typeof r=="number"&&r===66)return 0;break;case 67:if(typeof r=="number"&&r===67)return 0;break;case 68:if(typeof r=="number"&&r===68)return 0;break;case 69:if(typeof r=="number"&&r===69)return 0;break;case 70:if(typeof r=="number"&&r===70)return 0;break;case 71:if(typeof r=="number"&&r===71)return 0;break;case 72:if(typeof r=="number"&&r===72)return 0;break;case 73:if(typeof r=="number"&&r===73)return 0;break;case 74:if(typeof r=="number"&&r===74)return 0;break;case 75:if(typeof r=="number"&&r===75)return 0;break;case 76:if(typeof r=="number"&&r===76)return 0;break;case 77:if(typeof r=="number"&&r===77)return 0;break;case 78:if(typeof r=="number"&&r===78)return 0;break;case 79:if(typeof r=="number"&&r===79)return 0;break;case 80:if(typeof r=="number"&&r===80)return 0;break;case 81:if(typeof r=="number"&&r===81)return 0;break;case 82:if(typeof r=="number"&&r===82)return 0;break;case 83:if(typeof r=="number"&&r===83)return 0;break;case 84:if(typeof r=="number"&&r===84)return 0;break;case 85:if(typeof r=="number"&&r===85)return 0;break;case 86:if(typeof r=="number"&&r===86)return 0;break;case 87:if(typeof r=="number"&&r===87)return 0;break;case 88:if(typeof r=="number"&&r===88)return 0;break;case 89:if(typeof r=="number"&&r===89)return 0;break;case 90:if(typeof r=="number"&&r===90)return 0;break;case 91:if(typeof r=="number"&&r===91)return 0;break;case 92:if(typeof r=="number"&&r===92)return 0;break;case 93:if(typeof r=="number"&&r===93)return 0;break;case 94:if(typeof r=="number"&&r===94)return 0;break;case 95:if(typeof r=="number"&&r===95)return 0;break;case 96:if(typeof r=="number"&&r===96)return 0;break;case 97:if(typeof r=="number"&&r===97)return 0;break;case 98:if(typeof r=="number"&&r===98)return 0;break;case 99:if(typeof r=="number"&&r===99)return 0;break;case 100:if(typeof r=="number"&&Uc===r)return 0;break;case 101:if(typeof r=="number"&&Pt===r)return 0;break;case 102:if(typeof r=="number"&&Cs===r)return 0;break;case 103:if(typeof r=="number"&&tt===r)return 0;break;case 104:if(typeof r=="number"&&ln===r)return 0;break;case 105:if(typeof r=="number"&&Ue===r)return 0;break;case 106:if(typeof r=="number"&&_1===r)return 0;break;case 107:if(typeof r=="number"&&Rs===r)return 0;break;case 108:if(typeof r=="number"&&fn===r)return 0;break;case 109:if(typeof r=="number"&&wv===r)return 0;break;case 110:if(typeof r=="number"&&P1===r)return 0;break;case 111:if(typeof r=="number"&&ut===r)return 0;break;case 112:if(typeof r=="number"&&fe===r)return 0;break;case 113:if(typeof r=="number"&&Er===r)return 0;break;case 114:if(typeof r=="number"&&Vi===r)return 0;break;case 115:if(typeof r=="number"&&Ps===r)return 0;break;default:if(typeof r=="number"&&Ns<=r)return 0}else switch(e){case 0:if(typeof r=="number"&&!r)return 0;break;case 1:if(typeof r=="number"&&r===1)return 0;break;case 2:if(typeof r=="number"&&r===2)return 0;break;case 3:if(typeof r=="number"&&r===3)return 0;break;case 4:if(typeof r=="number"&&r===4)return 0;break;case 5:if(typeof r=="number"&&r===5)return 0;break;case 6:if(typeof r=="number"&&r===6)return 0;break;case 7:if(typeof r=="number"&&r===7)return 0;break;case 8:if(typeof r=="number"&&r===8)return 0;break;case 9:if(typeof r=="number"&&r===9)return 0;break;case 10:if(typeof r=="number"&&r===10)return 0;break;case 11:if(typeof r=="number"&&r===11)return 0;break;case 12:if(typeof r=="number"&&r===12)return 0;break;case 13:if(typeof r=="number"&&r===13)return 0;break;case 14:if(typeof r=="number"&&r===14)return 0;break;case 15:if(typeof r=="number"&&r===15)return 0;break;case 16:if(typeof r=="number"&&r===16)return 0;break;case 17:if(typeof r=="number"&&r===17)return 0;break;case 18:if(typeof r=="number"&&r===18)return 0;break;case 19:if(typeof r=="number"&&r===19)return 0;break;case 20:if(typeof r=="number"&&r===20)return 0;break;case 21:if(typeof r=="number"&&r===21)return 0;break;case 22:if(typeof r=="number"&&r===22)return 0;break;case 23:if(typeof r=="number"&&r===23)return 0;break;case 24:if(typeof r=="number"&&r===24)return 0;break;case 25:if(typeof r=="number"&&r===25)return 0;break;case 26:if(typeof r=="number"&&r===26)return 0;break;case 27:if(typeof r=="number"&&r===27)return 0;break;case 28:if(typeof r=="number"&&r===28)return 0;break;case 29:if(typeof r=="number"&&r===29)return 0;break;case 30:if(typeof r=="number"&&r===30)return 0;break;case 31:if(typeof r=="number"&&r===31)return 0;break;case 32:if(typeof r=="number"&&r===32)return 0;break;case 33:if(typeof r=="number"&&r===33)return 0;break;case 34:if(typeof r=="number"&&r===34)return 0;break;case 35:if(typeof r=="number"&&r===35)return 0;break;case 36:if(typeof r=="number"&&r===36)return 0;break;case 37:if(typeof r=="number"&&r===37)return 0;break;case 38:if(typeof r=="number"&&r===38)return 0;break;case 39:if(typeof r=="number"&&r===39)return 0;break;case 40:if(typeof r=="number"&&r===40)return 0;break;case 41:if(typeof r=="number"&&r===41)return 0;break;case 42:if(typeof r=="number"&&r===42)return 0;break;case 43:if(typeof r=="number"&&r===43)return 0;break;case 44:if(typeof r=="number"&&r===44)return 0;break;case 45:if(typeof r=="number"&&r===45)return 0;break;case 46:if(typeof r=="number"&&r===46)return 0;break;case 47:if(typeof r=="number"&&r===47)return 0;break;case 48:if(typeof r=="number"&&r===48)return 0;break;case 49:if(typeof r=="number"&&r===49)return 0;break;case 50:if(typeof r=="number"&&r===50)return 0;break;case 51:if(typeof r=="number"&&r===51)return 0;break;case 52:if(typeof r=="number"&&r===52)return 0;break;case 53:if(typeof r=="number"&&r===53)return 0;break;case 54:if(typeof r=="number"&&r===54)return 0;break;case 55:if(typeof r=="number"&&r===55)return 0;break;case 56:if(typeof r=="number"&&r===56)return 0;break;case 57:if(typeof r=="number"&&r===57)return 0;break;default:if(typeof r=="number"&&r===58)return 0}}else switch(x[0]){case 0:if(typeof r!="number"&&r[0]===0)return Ex(x[1],r[1]);break;case 1:if(typeof r!="number"&&r[0]===1)return Ex(x[1],r[1]);break;case 2:if(typeof r!="number"&&r[0]===2){var t=Ex(x[1],r[1]),u=r[2],i=x[2];return t===0?Ex(i,u):t}break;case 3:if(typeof r!="number"&&r[0]===3){var f=Ex(x[1],r[1]),o=r[2],a=x[2];return f===0?Ex(a,o):f}break;case 4:if(typeof r!="number"&&r[0]===4){var y=Ex(x[1],r[1]),h=r[2],k=x[2];return y===0?Ex(k,h):y}break;case 5:if(typeof r!="number"&&r[0]===5)return Ex(x[1],r[1]);break;case 6:if(typeof r!="number"&&r[0]===6)return yn(x[1],r[1]);break;case 7:if(typeof r!="number"&&r[0]===7){var A=r[2],g=x[2],I=Ex(x[1],r[1]);if(I!==0)return I;if(!g)return A?-1:0;var C=g[1];return A?Ex(C,A[1]):1}break;case 8:if(typeof r!="number"&&r[0]===8)return Ex(x[1],r[1]);break;case 9:if(typeof r!="number"&&r[0]===9){var R=r[2],L=x[2],U=Ex(x[1],r[1]),B=r[3],X=x[3];if(U!==0)return U;if(L){var J=L[1];if(R){var e0=R[1],i0=0;switch(J){case 0:if(e0)i0=1;else var z=0;break;case 1:if(e0===1)var z=0;else i0=1;break;case 2:if(e0===2)var z=0;else i0=1;break;case 3:if(e0===3)var z=0;else i0=1;break;default:if(4<=e0)var z=0;else i0=1}if(i0)var j=function(L0){switch(L0){case 0:return 0;case 1:return 1;case 2:return 2;case 3:return 3;default:return 4}},Y=j(e0),z=yn(j(J),Y);var F=z}else var F=1}else var F=R?-1:0;return F===0?Ex(X,B):F}break;case 10:if(typeof r!="number"&&r[0]===10){var t0=Ex(x[1],r[1]),$=r[2],f0=x[2];return t0===0?Ex(f0,$):t0}break;case 11:if(typeof r!="number"&&r[0]===11){var c0=Ex(x[1],r[1]),v0=r[2],s0=x[2];return c0===0?Ex(s0,v0):c0}break;case 12:if(typeof r!="number"&&r[0]===12)return Ex(x[1],r[1]);break;case 13:if(typeof r!="number"&&r[0]===13)return Ex(x[1],r[1]);break;case 14:if(typeof r!="number"&&r[0]===14)return yn(x[1],r[1]);break;case 15:if(typeof r!="number"&&r[0]===15){var o0=Ex(x[1],r[1]),E0=r[4],k0=r[3],M0=r[2],D0=x[4],cx=x[3],g0=x[2];if(o0!==0)return o0;var Z0=yn(g0,M0);if(Z0!==0)return Z0;var n0=yn(cx,k0);return n0===0?yn(D0,E0):n0}break;case 16:if(typeof r!="number"&&r[0]===16)return yn(x[1],r[1]);break;case 17:if(typeof r!="number"&&r[0]===17)return Ex(x[1],r[1]);break;case 18:if(typeof r!="number"&&r[0]===18)return Ex(x[1],r[1]);break;case 19:if(typeof r!="number"&&r[0]===19)return Ex(x[1],r[1]);break;case 20:if(typeof r!="number"&&r[0]===20){var nx=Ex(x[1],r[1]),xx=r[2],yx=x[2];return nx===0?Ex(yx,xx):nx}break;case 21:if(typeof r!="number"&&r[0]===21){var px=r[1],Tx=x[1];if(ol===Tx){if(ol===px)return 0}else if(rl<=Tx){if(rl===px)return 0}else if(Xz===px)return 0;var O0=function(A0){return ol===A0?0:rl<=A0?2:1},P0=O0(px);return yn(O0(Tx),P0)}break;case 22:if(typeof r!="number"&&r[0]===22)return Ex(x[1],r[1]);break;case 23:if(typeof r!="number"&&r[0]===23)return Ex(x[1],r[1]);break;case 24:if(typeof r!="number"&&r[0]===24){var N0=Ex(x[1],r[1]),J0=r[2],I0=x[2];return N0===0?Ex(I0,J0):N0}break;case 25:if(typeof r!="number"&&r[0]===25){var Q=Ex(x[1],r[1]),G=r[2],V=x[2];return Q===0?Ex(V,G):Q}break;default:if(typeof r!="number"&&r[0]===26)return Ex(x[1],r[1])}function p0(A0){if(typeof A0!="number")switch(A0[0]){case 0:return 20;case 1:return 21;case 2:return 23;case 3:return 24;case 4:return 25;case 5:return 26;case 6:return 27;case 7:return 28;case 8:return 30;case 9:return 31;case 10:return 32;case 11:return 34;case 12:return 35;case 13:return 37;case 14:return 40;case 15:return 52;case 16:return 55;case 17:return 64;case 18:return 73;case 19:return 82;case 20:return 89;case 21:return wv;case 22:return aa;case 23:return pa;case 24:return yl;case 25:return h_;default:return QM}var M=A0;if(59<=M)switch(M){case 59:return 78;case 60:return 79;case 61:return 80;case 62:return 81;case 63:return 83;case 64:return 84;case 65:return 85;case 66:return 86;case 67:return 87;case 68:return 88;case 69:return 90;case 70:return 91;case 71:return 92;case 72:return 93;case 73:return 94;case 74:return 95;case 75:return 96;case 76:return 97;case 77:return 98;case 78:return 99;case 79:return Uc;case 80:return Pt;case 81:return Cs;case 82:return tt;case 83:return ln;case 84:return Ue;case 85:return _1;case 86:return Rs;case 87:return fn;case 88:return P1;case 89:return ut;case 90:return fe;case 91:return Er;case 92:return Vi;case 93:return Ps;case 94:return Ns;case 95:return xl;case 96:return Ef;case 97:return G3;case 98:return qr;case 99:return Rt;case 100:return Ra;case 101:return gi;case 102:return U4;case 103:return Jr;case 104:return m1;case 105:return iz;case 106:return ph;case 107:return lz;case 108:return ZU;case 109:return Tj;case 110:return bz;case 111:return LD;case 112:return yD;case 113:return nz;case 114:return YD;case 115:return eD;default:return Nj}switch(M){case 0:return 0;case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7;case 8:return 8;case 9:return 9;case 10:return 10;case 11:return 11;case 12:return 12;case 13:return 13;case 14:return 14;case 15:return 15;case 16:return 16;case 17:return 17;case 18:return 18;case 19:return 19;case 20:return 22;case 21:return 29;case 22:return 33;case 23:return 36;case 24:return 38;case 25:return 39;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 53;case 38:return 54;case 39:return 56;case 40:return 57;case 41:return 58;case 42:return 59;case 43:return 60;case 44:return 61;case 45:return 62;case 46:return 63;case 47:return 65;case 48:return 66;case 49:return 67;case 50:return 68;case 51:return 69;case 52:return 70;case 53:return 71;case 54:return 72;case 55:return 74;case 56:return 75;case 57:return 76;default:return 77}}var d0=p0(r);return yn(p0(x),d0)});var jT0=[Qr,W00,zs(0)],zT0=function(x){if(typeof x=="number"){var r=x;if(59<=r)switch(r){case 59:return ZG;case 60:return $G;case 61:return FG;case 62:return QG;case 63:return HG;case 64:return qG;case 65:return GG;case 66:return bG;case 67:return xb;case 68:return rb;case 69:return eb;case 70:return tb;case 71:return nb;case 72:return ub;case 73:return ib;case 74:return fb;case 75:return cb;case 76:return sb;case 77:return ob;case 78:return vb;case 79:return ab;case 80:return lb;case 81:return pb;case 82:return yb;case 83:return db;case 84:return mb;case 85:return kb;case 86:return hb;case 87:return _b;case 88:return wb;case 89:return Tb;case 90:return Sb;case 91:return Eb;case 92:return Ab;case 93:return gb;case 94:return Nb;case 95:return Ib;case 96:return Pb;case 97:return Cb;case 98:return Rb;case 99:return Ob;case 100:return Lb;case 101:return Ub;case 102:return Mb;case 103:return Db;case 104:return jb;case 105:return zb;case 106:return Kb;case 107:return Jb;case 108:return Yb;case 109:return Bb;case 110:return Xb;case 111:return Wb;case 112:return Vb;case 113:return Zb;case 114:return $b;case 115:return Fb;default:return Qb}switch(r){case 0:return zq;case 1:return Kq;case 2:return Jq;case 3:return Zx(Bq,Yq);case 4:return Xq;case 5:return Wq;case 6:return Vq;case 7:return Zq;case 8:return $q;case 9:return Fq;case 10:return Qq;case 11:return Hq;case 12:return Zx(Gq,qq);case 13:return bq;case 14:return xG;case 15:return rG;case 16:return eG;case 17:return tG;case 18:return nG;case 19:return uG;case 20:return iG;case 21:return fG;case 22:return cG;case 23:return sG;case 24:return oG;case 25:return vG;case 26:return aG;case 27:return lG;case 28:return pG;case 29:return yG;case 30:return dG;case 31:return mG;case 32:return kG;case 33:return hG;case 34:return Zx(wG,_G);case 35:return TG;case 36:return SG;case 37:return EG;case 38:return AG;case 39:return gG;case 40:return NG;case 41:return IG;case 42:return PG;case 43:return CG;case 44:return RG;case 45:return OG;case 46:return LG;case 47:return UG;case 48:return MG;case 49:return DG;case 50:return jG;case 51:return zG;case 52:return KG;case 53:return JG;case 54:return YG;case 55:return BG;case 56:return XG;case 57:return WG;default:return VG}}switch(x[0]){case 0:var e=x[1];return l(Ar(Hb),e);case 1:var t=x[1];return l(Ar(qb),t);case 2:var u=x[2],i=x[1];return p(Ar(Gb),u,i);case 3:var f=x[2],o=x[1];return G0(Ar(bb),f,f,o);case 4:var a=x[2],y=x[1];return p(Ar(x00),a,y);case 5:var h=x[1];return l(Ar(r00),h);case 6:return x[1]?e00:t00;case 7:var k=x[2],A=x[1],g=l(Ar(n00),A);if(!k)return l(Ar(i00),g);var I=k[1];return p(Ar(u00),I,g);case 8:var C=x[1];return p(Ar(f00),C,C);case 9:var R=x[3],L=x[2],U=x[1];if(!L)return p(Ar(o00),R,U);var B=L[1];if(B===3)return p(Ar(s00),R,U);switch(B){case 0:var X=QQ;break;case 1:var X=HQ;break;case 2:var X=qQ;break;case 3:var X=GQ;break;default:var X=bQ}return oe(Ar(c00),U,X,R,X);case 10:var J=x[2],e0=Vc(J),i0=x[1];if(ft(e0)===0)var j=e0;else{var Y=$K(e0);Xr(Y,0,WK(se(e0,0)));var j=Y}var z=j2(j);return G0(Ar(v00),J,z,i0);case 11:var F=x[2],t0=x[1];return p(Ar(a00),F,t0);case 12:var $=x[1];return l(Ar(l00),$);case 13:var f0=x[1];return l(Ar(p00),f0);case 14:return x[1]?Zx(d00,y00):Zx(k00,m00);case 15:var c0=x[1],v0=x[4],s0=x[3],o0=x[2]?h00:_00,E0=s0?w00:T00,k0=v0?Zx(S00,c0):c0;return G0(Ar(E00),o0,E0,k0);case 16:var M0=x[1]?A00:g00;return l(Ar(N00),M0);case 17:var D0=x[1];return l(Ar(I00),D0);case 18:var cx=x[1];return l(Ar(P00),cx);case 19:var g0=x[1];return l(Ar(C00),g0);case 20:var Z0=x[2],n0=x[1];return p(Ar(R00),n0,Z0);case 21:var nx=x[1];if(ol===nx)var xx=D00,yx=j00;else if(rl<=nx)var xx=O00,yx=L00;else var xx=U00,yx=M00;return p(Ar(z00),yx,xx);case 22:var px=x[1];return l(Ar(K00),px);case 23:var Tx=x[1];return l(Ar(J00),Tx);case 24:var O0=x[2],P0=x[1];return p(Ar(Y00),P0,O0);case 25:var N0=x[2],J0=x[1];return p(Ar(B00),J0,N0);default:var I0=x[1];return l(Ar(X00),I0)}},aY=V00.slice(),BR=function(x){for(var r=0,e=aY.length-1-1|0;;){if(ex)return 1;var r=t+1|0}},lY=0,pY=function(x){var r=x[2];return[0,x[1],[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12]],x[3],x[4],x[5],x[6],x[7]]},yY=function(x){return x[3][1]},ld=function(x,r){return x!==r[4]?[0,r[1],r[2],r[3],x,r[5],r[6],r[7]]:r},XR=function x(r,e){return x.fun(r,e)},dY=function x(r,e){return x.fun(r,e)},WR=function x(r,e){return x.fun(r,e)},VR=function x(r,e){return x.fun(r,e)};C0(XR,function(x,r){if(typeof x=="number"){var e=x;if(65<=e)if(98<=e)switch(e){case 98:if(typeof r=="number"&&r===98)return 1;break;case 99:if(typeof r=="number"&&r===99)return 1;break;case 100:if(typeof r=="number"&&Uc===r)return 1;break;case 101:if(typeof r=="number"&&Pt===r)return 1;break;case 102:if(typeof r=="number"&&Cs===r)return 1;break;case 103:if(typeof r=="number"&&tt===r)return 1;break;case 104:if(typeof r=="number"&&ln===r)return 1;break;case 105:if(typeof r=="number"&&Ue===r)return 1;break;case 106:if(typeof r=="number"&&_1===r)return 1;break;case 107:if(typeof r=="number"&&Rs===r)return 1;break;case 108:if(typeof r=="number"&&fn===r)return 1;break;case 109:if(typeof r=="number"&&wv===r)return 1;break;case 110:if(typeof r=="number"&&P1===r)return 1;break;case 111:if(typeof r=="number"&&ut===r)return 1;break;case 112:if(typeof r=="number"&&fe===r)return 1;break;case 113:if(typeof r=="number"&&Er===r)return 1;break;case 114:if(typeof r=="number"&&Vi===r)return 1;break;case 115:if(typeof r=="number"&&Ps===r)return 1;break;case 116:if(typeof r=="number"&&Ns===r)return 1;break;case 117:if(typeof r=="number"&&aa===r)return 1;break;case 118:if(typeof r=="number"&&pa===r)return 1;break;case 119:if(typeof r=="number"&&xl===r)return 1;break;case 120:if(typeof r=="number"&&Ef===r)return 1;break;case 121:if(typeof r=="number"&&G3===r)return 1;break;case 122:if(typeof r=="number"&&qr===r)return 1;break;case 123:if(typeof r=="number"&&Rt===r)return 1;break;case 124:if(typeof r=="number"&&Ra===r)return 1;break;case 125:if(typeof r=="number"&&gi===r)return 1;break;case 126:if(typeof r=="number"&&U4===r)return 1;break;case 127:if(typeof r=="number"&&Jr===r)return 1;break;case 128:if(typeof r=="number"&&m1===r)return 1;break;default:if(typeof r=="number"&&yl<=r)return 1}else switch(e){case 65:if(typeof r=="number"&&r===65)return 1;break;case 66:if(typeof r=="number"&&r===66)return 1;break;case 67:if(typeof r=="number"&&r===67)return 1;break;case 68:if(typeof r=="number"&&r===68)return 1;break;case 69:if(typeof r=="number"&&r===69)return 1;break;case 70:if(typeof r=="number"&&r===70)return 1;break;case 71:if(typeof r=="number"&&r===71)return 1;break;case 72:if(typeof r=="number"&&r===72)return 1;break;case 73:if(typeof r=="number"&&r===73)return 1;break;case 74:if(typeof r=="number"&&r===74)return 1;break;case 75:if(typeof r=="number"&&r===75)return 1;break;case 76:if(typeof r=="number"&&r===76)return 1;break;case 77:if(typeof r=="number"&&r===77)return 1;break;case 78:if(typeof r=="number"&&r===78)return 1;break;case 79:if(typeof r=="number"&&r===79)return 1;break;case 80:if(typeof r=="number"&&r===80)return 1;break;case 81:if(typeof r=="number"&&r===81)return 1;break;case 82:if(typeof r=="number"&&r===82)return 1;break;case 83:if(typeof r=="number"&&r===83)return 1;break;case 84:if(typeof r=="number"&&r===84)return 1;break;case 85:if(typeof r=="number"&&r===85)return 1;break;case 86:if(typeof r=="number"&&r===86)return 1;break;case 87:if(typeof r=="number"&&r===87)return 1;break;case 88:if(typeof r=="number"&&r===88)return 1;break;case 89:if(typeof r=="number"&&r===89)return 1;break;case 90:if(typeof r=="number"&&r===90)return 1;break;case 91:if(typeof r=="number"&&r===91)return 1;break;case 92:if(typeof r=="number"&&r===92)return 1;break;case 93:if(typeof r=="number"&&r===93)return 1;break;case 94:if(typeof r=="number"&&r===94)return 1;break;case 95:if(typeof r=="number"&&r===95)return 1;break;case 96:if(typeof r=="number"&&r===96)return 1;break;default:if(typeof r=="number"&&r===97)return 1}else if(33<=e)switch(e){case 33:if(typeof r=="number"&&r===33)return 1;break;case 34:if(typeof r=="number"&&r===34)return 1;break;case 35:if(typeof r=="number"&&r===35)return 1;break;case 36:if(typeof r=="number"&&r===36)return 1;break;case 37:if(typeof r=="number"&&r===37)return 1;break;case 38:if(typeof r=="number"&&r===38)return 1;break;case 39:if(typeof r=="number"&&r===39)return 1;break;case 40:if(typeof r=="number"&&r===40)return 1;break;case 41:if(typeof r=="number"&&r===41)return 1;break;case 42:if(typeof r=="number"&&r===42)return 1;break;case 43:if(typeof r=="number"&&r===43)return 1;break;case 44:if(typeof r=="number"&&r===44)return 1;break;case 45:if(typeof r=="number"&&r===45)return 1;break;case 46:if(typeof r=="number"&&r===46)return 1;break;case 47:if(typeof r=="number"&&r===47)return 1;break;case 48:if(typeof r=="number"&&r===48)return 1;break;case 49:if(typeof r=="number"&&r===49)return 1;break;case 50:if(typeof r=="number"&&r===50)return 1;break;case 51:if(typeof r=="number"&&r===51)return 1;break;case 52:if(typeof r=="number"&&r===52)return 1;break;case 53:if(typeof r=="number"&&r===53)return 1;break;case 54:if(typeof r=="number"&&r===54)return 1;break;case 55:if(typeof r=="number"&&r===55)return 1;break;case 56:if(typeof r=="number"&&r===56)return 1;break;case 57:if(typeof r=="number"&&r===57)return 1;break;case 58:if(typeof r=="number"&&r===58)return 1;break;case 59:if(typeof r=="number"&&r===59)return 1;break;case 60:if(typeof r=="number"&&r===60)return 1;break;case 61:if(typeof r=="number"&&r===61)return 1;break;case 62:if(typeof r=="number"&&r===62)return 1;break;case 63:if(typeof r=="number"&&r===63)return 1;break;default:if(typeof r=="number"&&r===64)return 1}else switch(e){case 0:if(typeof r=="number"&&!r)return 1;break;case 1:if(typeof r=="number"&&r===1)return 1;break;case 2:if(typeof r=="number"&&r===2)return 1;break;case 3:if(typeof r=="number"&&r===3)return 1;break;case 4:if(typeof r=="number"&&r===4)return 1;break;case 5:if(typeof r=="number"&&r===5)return 1;break;case 6:if(typeof r=="number"&&r===6)return 1;break;case 7:if(typeof r=="number"&&r===7)return 1;break;case 8:if(typeof r=="number"&&r===8)return 1;break;case 9:if(typeof r=="number"&&r===9)return 1;break;case 10:if(typeof r=="number"&&r===10)return 1;break;case 11:if(typeof r=="number"&&r===11)return 1;break;case 12:if(typeof r=="number"&&r===12)return 1;break;case 13:if(typeof r=="number"&&r===13)return 1;break;case 14:if(typeof r=="number"&&r===14)return 1;break;case 15:if(typeof r=="number"&&r===15)return 1;break;case 16:if(typeof r=="number"&&r===16)return 1;break;case 17:if(typeof r=="number"&&r===17)return 1;break;case 18:if(typeof r=="number"&&r===18)return 1;break;case 19:if(typeof r=="number"&&r===19)return 1;break;case 20:if(typeof r=="number"&&r===20)return 1;break;case 21:if(typeof r=="number"&&r===21)return 1;break;case 22:if(typeof r=="number"&&r===22)return 1;break;case 23:if(typeof r=="number"&&r===23)return 1;break;case 24:if(typeof r=="number"&&r===24)return 1;break;case 25:if(typeof r=="number"&&r===25)return 1;break;case 26:if(typeof r=="number"&&r===26)return 1;break;case 27:if(typeof r=="number"&&r===27)return 1;break;case 28:if(typeof r=="number"&&r===28)return 1;break;case 29:if(typeof r=="number"&&r===29)return 1;break;case 30:if(typeof r=="number"&&r===30)return 1;break;case 31:if(typeof r=="number"&&r===31)return 1;break;default:if(typeof r=="number"&&r===32)return 1}}else switch(x[0]){case 0:if(typeof r!="number"&&r[0]===0){var t=r[2],u=r[1],i=x[2],f=l(l(WR,x[1]),u);return f&&Nr(i,t)}break;case 1:if(typeof r!="number"&&r[0]===1){var o=r[2],a=r[1],y=x[2],h=l(l(VR,x[1]),a);return h&&Nr(y,o)}break;case 2:if(typeof r!="number"&&r[0]===2){var k=r[1],A=x[1],g=k[4],I=k[3],C=k[2],R=A[4],L=A[3],U=A[2],B=Eo(A[1],k[1]),X=B&&Nr(U,C),J=X&&Nr(L,I);return J&&(R===g?1:0)}break;case 3:if(typeof r!="number"&&r[0]===3){var e0=r[1],i0=x[1],j=e0[5],Y=e0[4],z=e0[3],F=e0[2],t0=i0[5],$=i0[4],f0=i0[3],c0=i0[2],v0=Eo(i0[1],e0[1]),s0=v0&&Nr(c0,F),o0=s0&&Nr(f0,z),E0=o0&&($===Y?1:0);return E0&&(t0===j?1:0)}break;case 4:if(typeof r!="number"&&r[0]===4){var k0=r[3],M0=r[2],D0=x[3],cx=x[2],g0=Eo(x[1],r[1]),Z0=g0&&Nr(cx,M0);return Z0&&Nr(D0,k0)}break;case 5:if(typeof r!="number"&&r[0]===5){var n0=r[3],nx=r[2],xx=x[3],yx=x[2],px=Eo(x[1],r[1]),Tx=px&&Nr(yx,nx);return Tx&&Nr(xx,n0)}break;case 6:if(typeof r!="number"&&r[0]===6){var O0=r[2],P0=x[2],N0=Eo(x[1],r[1]);return N0&&Nr(P0,O0)}break;case 7:if(typeof r!="number"&&r[0]===7)return Nr(x[1],r[1]);break;case 8:if(typeof r!="number"&&r[0]===8){var J0=Nr(x[1],r[1]),I0=r[2],Q=x[2];return J0&&Eo(Q,I0)}break;case 9:if(typeof r!="number"&&r[0]===9){var G=r[3],V=r[2],p0=x[3],d0=x[2],A0=Eo(x[1],r[1]),M=A0&&Nr(d0,V);return M&&Nr(p0,G)}break;case 10:if(typeof r!="number"&&r[0]===10){var L0=r[3],V0=r[2],B0=x[3],vx=x[2],b0=Eo(x[1],r[1]),hx=b0&&Nr(vx,V0);return hx&&Nr(B0,L0)}break;case 11:if(typeof r!="number"&&r[0]===11){var W0=r[1];return l(l(dY,x[1]),W0)}break;case 12:if(typeof r!="number"&&r[0]===12){var T=r[3],K=r[2],H0=r[1],sx=x[3],ux=x[2],z0=l(l(WR,x[1]),H0),Px=z0&&(ux==K?1:0);return Px&&Nr(sx,T)}break;default:if(typeof r!="number"&&r[0]===13){var kx=r[2],$x=x[2],Qx=r[3],j0=r[1],rr=x[3],zx=l(l(VR,x[1]),j0);if(zx){var X0=0;if($x)if(kx)var ir=jy($x[1],kx[1]);else X0=1;else if(kx)X0=1;else var ir=1;if(X0)var ir=0;var K0=ir}else var K0=zx;return K0&&Nr(rr,Qx)}}return 0}),C0(dY,function(x,r){if(x){if(r)return 1}else if(!r)return 1;return 0}),C0(WR,function(x,r){switch(x){case 0:if(!r)return 1;break;case 1:if(r===1)return 1;break;case 2:if(r===2)return 1;break;case 3:if(r===3)return 1;break;default:if(4<=r)return 1}return 0}),C0(VR,function(x,r){switch(x){case 0:if(!r)return 1;break;case 1:if(r===1)return 1;break;default:if(2<=r)return 1}return 0});var mY=function(x){if(typeof x!="number")switch(x[0]){case 0:return lt0;case 1:return pt0;case 2:return yt0;case 3:return dt0;case 4:return mt0;case 5:return kt0;case 6:return ht0;case 7:return _t0;case 8:return wt0;case 9:return Tt0;case 10:return St0;case 11:return Et0;case 12:return At0;default:return gt0}var r=x;if(65<=r){if(98<=r)switch(r){case 98:return Me0;case 99:return De0;case 100:return je0;case 101:return ze0;case 102:return Ke0;case 103:return Je0;case 104:return Ye0;case 105:return Be0;case 106:return Xe0;case 107:return We0;case 108:return Ve0;case 109:return Ze0;case 110:return $e0;case 111:return Fe0;case 112:return Qe0;case 113:return He0;case 114:return qe0;case 115:return Ge0;case 116:return be0;case 117:return xt0;case 118:return rt0;case 119:return et0;case 120:return tt0;case 121:return nt0;case 122:return ut0;case 123:return it0;case 124:return ft0;case 125:return ct0;case 126:return st0;case 127:return ot0;case 128:return vt0;default:return at0}switch(r){case 65:return ee0;case 66:return te0;case 67:return ne0;case 68:return ue0;case 69:return ie0;case 70:return fe0;case 71:return ce0;case 72:return se0;case 73:return oe0;case 74:return ve0;case 75:return ae0;case 76:return le0;case 77:return pe0;case 78:return ye0;case 79:return de0;case 80:return me0;case 81:return ke0;case 82:return he0;case 83:return _e0;case 84:return we0;case 85:return Te0;case 86:return Se0;case 87:return Ee0;case 88:return Ae0;case 89:return ge0;case 90:return Ne0;case 91:return Ie0;case 92:return Pe0;case 93:return Ce0;case 94:return Re0;case 95:return Oe0;case 96:return Le0;default:return Ue0}}if(33<=r)switch(r){case 33:return E20;case 34:return A20;case 35:return g20;case 36:return N20;case 37:return I20;case 38:return P20;case 39:return C20;case 40:return R20;case 41:return O20;case 42:return L20;case 43:return U20;case 44:return M20;case 45:return D20;case 46:return j20;case 47:return z20;case 48:return K20;case 49:return J20;case 50:return Y20;case 51:return B20;case 52:return X20;case 53:return W20;case 54:return V20;case 55:return Z20;case 56:return $20;case 57:return F20;case 58:return Q20;case 59:return H20;case 60:return q20;case 61:return G20;case 62:return b20;case 63:return xe0;default:return re0}switch(r){case 0:return V10;case 1:return Z10;case 2:return $10;case 3:return F10;case 4:return Q10;case 5:return H10;case 6:return q10;case 7:return G10;case 8:return b10;case 9:return x20;case 10:return r20;case 11:return e20;case 12:return t20;case 13:return n20;case 14:return u20;case 15:return i20;case 16:return f20;case 17:return c20;case 18:return s20;case 19:return o20;case 20:return v20;case 21:return a20;case 22:return l20;case 23:return p20;case 24:return y20;case 25:return d20;case 26:return m20;case 27:return k20;case 28:return h20;case 29:return _20;case 30:return w20;case 31:return T20;default:return S20}},ZR=function(x){if(typeof x!="number")switch(x[0]){case 0:return x[2];case 1:return x[2];case 2:return x[1][3];case 3:var r=x[1],e=r[5],t=r[4],u=r[3];return t&&e?Zx(U10,Zx(u,L10)):t?Zx(D10,Zx(u,M10)):e?Zx(z10,Zx(u,j10)):Zx(J10,Zx(u,K10));case 4:return x[3];case 5:var i=x[2];return Zx(B10,Zx(i,Zx(Y10,x[3])));case 6:return x[2];case 7:return x[1];case 8:return x[1];case 9:return x[3];case 10:return x[3];case 11:return x[1]?X10:W10;case 12:return x[3];default:return x[3]}var f=x;if(65<=f){if(98<=f)switch(f){case 98:return r10;case 99:return e10;case 100:return t10;case 101:return n10;case 102:return u10;case 103:return i10;case 104:return f10;case 105:return c10;case 106:return s10;case 107:return o10;case 108:return v10;case 109:return a10;case 110:return l10;case 111:return p10;case 112:return y10;case 113:return d10;case 114:return m10;case 115:return k10;case 116:return h10;case 117:return _10;case 118:return w10;case 119:return T10;case 120:return S10;case 121:return E10;case 122:return A10;case 123:return g10;case 124:return N10;case 125:return I10;case 126:return P10;case 127:return C10;case 128:return R10;default:return O10}switch(f){case 65:return Tr0;case 66:return Sr0;case 67:return Er0;case 68:return Ar0;case 69:return gr0;case 70:return Nr0;case 71:return Ir0;case 72:return Pr0;case 73:return Cr0;case 74:return Rr0;case 75:return Or0;case 76:return Lr0;case 77:return Ur0;case 78:return Mr0;case 79:return Dr0;case 80:return jr0;case 81:return zr0;case 82:return Kr0;case 83:return Jr0;case 84:return Yr0;case 85:return Br0;case 86:return Xr0;case 87:return Wr0;case 88:return Vr0;case 89:return Zr0;case 90:return $r0;case 91:return Fr0;case 92:return Qr0;case 93:return Hr0;case 94:return qr0;case 95:return Gr0;case 96:return br0;default:return x10}}if(33<=f)switch(f){case 33:return Wx0;case 34:return Vx0;case 35:return Zx0;case 36:return $x0;case 37:return Fx0;case 38:return Qx0;case 39:return Hx0;case 40:return qx0;case 41:return Gx0;case 42:return bx0;case 43:return xr0;case 44:return rr0;case 45:return er0;case 46:return tr0;case 47:return nr0;case 48:return ur0;case 49:return ir0;case 50:return fr0;case 51:return cr0;case 52:return sr0;case 53:return or0;case 54:return vr0;case 55:return ar0;case 56:return lr0;case 57:return pr0;case 58:return yr0;case 59:return dr0;case 60:return mr0;case 61:return kr0;case 62:return hr0;case 63:return _r0;default:return wr0}switch(f){case 0:return vx0;case 1:return ax0;case 2:return lx0;case 3:return px0;case 4:return yx0;case 5:return dx0;case 6:return mx0;case 7:return kx0;case 8:return hx0;case 9:return _x0;case 10:return wx0;case 11:return Tx0;case 12:return Sx0;case 13:return Ex0;case 14:return Ax0;case 15:return gx0;case 16:return Nx0;case 17:return Ix0;case 18:return Px0;case 19:return Cx0;case 20:return Rx0;case 21:return Ox0;case 22:return Lx0;case 23:return Ux0;case 24:return Mx0;case 25:return Dx0;case 26:return jx0;case 27:return zx0;case 28:return Kx0;case 29:return Jx0;case 30:return Yx0;case 31:return Bx0;default:return Xx0}},pd=function(x){return l(Ar(ox0),x)},$R=function(x,r){var e=x?x[1]:0,t=0;if(typeof r=="number")if(Er===r)var u=F00,i=Q00;else t=1;else switch(r[0]){case 3:var u=H00,i=q00;break;case 5:var u=G00,i=b00;break;case 0:case 12:var u=rx0,i=ex0;break;case 1:case 13:var u=tx0,i=nx0;break;case 4:case 8:var u=fx0,i=cx0;break;case 6:case 7:case 11:t=1;break;default:var u=ux0,i=ix0}if(t)var u=xx0,i=pd(ZR(r));return e?Zx(u,Zx(sx0,i)):i},KT0=function(x){return Av>>0)var t=w(x);else switch(e){case 0:var t=1;break;case 1:var t=2;break;case 2:var t=0;break;default:if(r0(x,2),Co(m(x))===0){var u=Kv(m(x));if(u===0)var t=Ir(m(x))===0&&Ir(m(x))===0&&Ir(m(x))===0?0:w(x);else if(u===1&&Ir(m(x))===0)for(;;){var i=zv(m(x));if(i!==0){var t=i===1?0:w(x);break}}else var t=w(x)}else var t=w(x)}if(2>>0)throw q0([0,Tr,Nt0],1);switch(t){case 0:continue;case 1:return 1;default:if(BR($J(x)))continue;return QJ(x,1),0}}},Kd=function(x,r){var e=r-x[3][2]|0;return[0,yY(x),e]},ql=function(x,r,e){var t=Kd(x,e),u=Kd(x,r);return[0,x[1],u,t]},m2=function(x,r){return Kd(x,r[6])},pe=function(x,r){return Kd(x,r[3])},Yr=function(x,r){return ql(x,r[6],r[3])},XY=function(x,r){var e=0;if(typeof r=="number")e=1;else switch(r[0]){case 2:var t=r[1][1];break;case 3:return r[1][1];case 4:var t=r[1];break;case 5:return r[1];case 8:var t=r[2];break;case 9:return r[1];case 10:return r[1];default:e=1}return e?Yr(x,x[2]):t},k2=function(x,r,e){return[0,x[1],x[2],x[3],x[4],x[5],[0,[0,r,e],x[6]],x[7]]},WY=function(x,r,e){return k2(x,r,[23,pd(e)])},GR=function(x,r,e,t){return k2(x,r,[24,e,t])},ot=function(x,r){return k2(x,r,Zc0)},Y2=function(x,r){var e=r[3],t=[0,yY(x)+1|0,e];return[0,x[1],x[2],t,x[4],x[5],x[6],x[7]]},Jt=function(x,r,e,t,u){var i=[0,x[1],r,e],f=z1(t),o=u?0:1;return[0,i,[0,o,f,x[7][3][1]>>0)var a=w(t);else switch(o){case 0:var a=2;break;case 1:for(;;){r0(t,3);var y=m(t),h=-1>>0)return Rx(Kc0);switch(a){case 0:var g=ZY(i,e,t,2,0),I=g[1],C=it(Zx(Jc0,g[2])),R=0<=C?1:0,L=R&&(C<=55295?1:0);if(L)var B=L;else var U=57344<=C?1:0,B=U&&(C<=c5?1:0);var X=B?VY(i,I,C):k2(i,I,32);qc(u,C);var i=X;continue;case 1:var J=ZY(i,e,t,3,1),e0=J[1],i0=it(Zx(Yc0,J[2])),j=VY(i,e0,i0);qc(u,i0);var i=j;continue;case 2:return[0,i,z1(u)];default:od(t,u);continue}}},N1=function(x,r,e){var t=ot(x,Yr(x,r));return $a(r),p(e,t,r)},Jv=function(x,r,e){for(var t=x;;){pr(e);var u=m(e),i=-1>>0)var f=w(e);else switch(i){case 0:for(;;){r0(e,3);var o=m(e),a=-1>>0){var k=ot(t,Yr(t,e));return[0,k,pe(k,e)]}switch(f){case 0:var A=Y2(t,e);od(e,r);var t=A;continue;case 1:var g=t[4]?GR(t,Yr(t,e),Ct0,Pt0):t;return[0,g,pe(g,e)];case 2:if(t[4])return[0,t,pe(t,e)];vr(r,Rt0);continue;default:od(e,r);continue}}},Ga=function(x,r,e){for(;;){pr(e);var t=m(e),u=13>>0)var i=w(e);else switch(u){case 0:var i=0;break;case 1:for(;;){r0(e,2);var f=m(e),o=-1>>0)return Rx(Ot0);switch(i){case 0:return[0,x,pe(x,e)];case 1:var a=pe(x,e),y=a[2],h=a[1],k=Y2(x,e);return[0,k,[0,h,y-sd(e)|0]];default:od(e,r);continue}}},FY=function(x,r){function e(e0){return r0(e0,3),J2(m(e0))===0?2:w(e0)}pr(r);var t=m(r),u=Ef>>0)var i=w(r);else switch(u){case 0:var i=0;break;case 1:var i=16;break;case 2:var i=15;break;case 3:r0(r,15);var i=le(m(r))===0?15:w(r);break;case 4:r0(r,4);var i=J2(m(r))===0?e(r):w(r);break;case 5:r0(r,11);var i=J2(m(r))===0?e(r):w(r);break;case 6:var i=0;break;case 7:var i=5;break;case 8:var i=6;break;case 9:var i=7;break;case 10:var i=8;break;case 11:var i=9;break;case 12:r0(r,14);var f=Kv(m(r));if(f===0)var i=Ir(m(r))===0&&Ir(m(r))===0&&Ir(m(r))===0?12:w(r);else if(f===1&&Ir(m(r))===0)for(;;){var o=zv(m(r));if(o!==0){var i=o===1?13:w(r);break}}else var i=w(r);break;case 13:var i=10;break;default:r0(r,14);var i=Ir(m(r))===0&&Ir(m(r))===0?1:w(r)}if(16>>0)return Rx(Ac0);switch(i){case 0:var a=Kx(r);return[0,x,a,n1(r),0];case 1:var y=Kx(r);return[0,x,y,[0,it(Zx(gc0,y))],0];case 2:var h=Kx(r),k=it(Zx(Nc0,h));return yv<=k?[0,x,h,[0,k>>>3|0,48+(k&7)|0],1]:[0,x,h,[0,k],1];case 3:var A=Kx(r);return[0,x,A,[0,it(Zx(Ic0,A))],1];case 4:return[0,x,Pc0,[0,0],0];case 5:return[0,x,Cc0,[0,8],0];case 6:return[0,x,Rc0,[0,12],0];case 7:return[0,x,Oc0,[0,10],0];case 8:return[0,x,Lc0,[0,13],0];case 9:return[0,x,Uc0,[0,9],0];case 10:return[0,x,Mc0,[0,11],0];case 11:var g=Kx(r);return[0,x,g,[0,it(Zx(Dc0,g))],1];case 12:var I=Kx(r);return[0,x,I,[0,it(Zx(jc0,z2(I,1,Gx(I)-1|0)))],0];case 13:var C=Kx(r),R=it(Zx(zc0,z2(C,2,Gx(C)-3|0))),L=c5>>0)var h=w(i);else switch(y){case 0:var h=3;break;case 1:for(;;){r0(i,4);var k=m(i),A=-1>>0)return Rx(Lt0);switch(h){case 0:var g=Kx(i);if(vr(t,g),Nr(r,g))return[0,f,pe(f,i),o];vr(e,g);continue;case 1:vr(t,Ut0);var I=FY(f,i),C=I[4],R=I[3],L=I[2],U=I[1],B=C||o;vr(t,L),qK(function(f0){return qc(e,f0)},R);var f=U,o=B;continue;case 2:var X=Kx(i);vr(t,X);var J=Y2(ot(f,Yr(f,i)),i);return vr(e,X),[0,J,pe(J,i),o];case 3:var e0=Kx(i);vr(t,e0);var i0=ot(f,Yr(f,i));return vr(e,e0),[0,i0,pe(i0,i),o];default:var j=i[6],Y=i[3]-j|0,z=g1(Y*4|0),F=Wl(i[1],j,Y,z);sR(t,z,0,F),sR(e,z,0,F);continue}}},HY=function(x,r,e,t){for(var u=x;;){pr(t);var i=m(t),f=96>>0)var o=w(t);else switch(f){case 0:var o=0;break;case 1:for(;;){r0(t,6);var a=m(t),y=-1>>0)return Rx(Mt0);switch(o){case 0:return[0,ot(u,Yr(u,t)),1];case 1:return[0,u,1];case 2:return[0,u,0];case 3:ct(e,92);var A=FY(u,t),g=A[3],I=A[1];vr(e,A[2]),qK(function(L){return qc(r,L)},g);var u=I;continue;case 4:vr(e,Dt0),vr(r,jt0);var u=Y2(u,t);continue;case 5:vr(e,Kx(t)),ct(r,10);var u=Y2(u,t);continue;default:var C=Kx(t);vr(e,C),vr(r,C);continue}}},BT0=function(x,r){function e(_){for(;;)if(r0(_,33),ar(m(_))!==0)return w(_)}function t(_){r0(_,32);var b=L1(m(_));if(b!==0)return b===1?e(_):w(_);for(;;)if(r0(_,30),ar(m(_))!==0)return w(_)}function u(_){r0(_,31);var b=L1(m(_));if(b!==0)return b===1?e(_):w(_);for(;;)if(r0(_,29),ar(m(_))!==0)return w(_)}function i(_){r0(_,34);var b=Qa(m(_));if(2>>0)return w(_);switch(b){case 0:return e(_);case 1:for(;;){r0(_,34);var x0=rs(m(_));if(3>>0)return w(_);switch(x0){case 0:return e(_);case 1:continue;case 2:x:for(;;){if(yr(m(_))!==0)return w(_);for(;;){r0(_,34);var S0=rs(m(_));if(3>>0)return w(_);switch(S0){case 0:return e(_);case 1:continue;case 2:continue x;default:return u(_)}}}default:return u(_)}}default:return u(_)}}function f(_){x:for(;;){if(yr(m(_))!==0)return w(_);for(;;){r0(_,34);var b=LY(m(_));if(4>>0)return w(_);switch(b){case 0:return e(_);case 1:return i(_);case 2:continue;case 3:continue x;default:return t(_)}}}}function o(_){for(;;)if(r0(_,23),ar(m(_))!==0)return w(_)}function a(_){for(;;)if(r0(_,23),ar(m(_))!==0)return w(_)}function y(_){for(;;)if(r0(_,15),ar(m(_))!==0)return w(_)}function h(_){for(;;)if(r0(_,15),ar(m(_))!==0)return w(_)}function k(_){for(;;)if(r0(_,11),ar(m(_))!==0)return w(_)}function A(_){for(;;)if(r0(_,11),ar(m(_))!==0)return w(_)}function g(_){for(;;)if(r0(_,17),ar(m(_))!==0)return w(_)}function I(_){for(;;)if(r0(_,17),ar(m(_))!==0)return w(_)}function C(_){for(;;)if(r0(_,19),ar(m(_))!==0)return w(_)}function R(_){for(;;)if(r0(_,27),ar(m(_))!==0)return w(_)}function L(_){r0(_,26);var b=L1(m(_));if(b!==0)return b===1?R(_):w(_);for(;;)if(r0(_,25),ar(m(_))!==0)return w(_)}function U(_){for(;;)if(r0(_,27),ar(m(_))!==0)return w(_)}function B(_){r0(_,26);var b=L1(m(_));if(b!==0)return b===1?U(_):w(_);for(;;)if(r0(_,25),ar(m(_))!==0)return w(_)}function X(_){x:for(;;){if(yr(m(_))!==0)return w(_);for(;;){r0(_,28);var b=rs(m(_));if(3>>0)return w(_);switch(b){case 0:return U(_);case 1:continue;case 2:continue x;default:return B(_)}}}}function J(_){r0(_,33);var b=MY(m(_));if(3>>0)return w(_);switch(b){case 0:return e(_);case 1:var x0=go(m(_));if(x0===0)for(;;){r0(_,28);var S0=Qa(m(_));if(2>>0)return w(_);switch(S0){case 0:return U(_);case 1:continue;default:return B(_)}}if(x0!==1)return w(_);for(;;){r0(_,28);var H=rs(m(_));if(3>>0)return w(_);switch(H){case 0:return U(_);case 1:continue;case 2:return X(_);default:return B(_)}}case 2:for(;;){r0(_,28);var h0=Qa(m(_));if(2>>0)return w(_);switch(h0){case 0:return R(_);case 1:continue;default:return L(_)}}default:for(;;){r0(_,28);var Y0=rs(m(_));if(3>>0)return w(_);switch(Y0){case 0:return R(_);case 1:continue;case 2:return X(_);default:return L(_)}}}}function e0(_){r0(_,34);var b=EY(m(_));if(3>>0)return w(_);switch(b){case 0:return e(_);case 1:for(;;){r0(_,34);var x0=No(m(_));if(4>>0)return w(_);switch(x0){case 0:return e(_);case 1:continue;case 2:return J(_);case 3:x:for(;;){if(yr(m(_))!==0)return w(_);for(;;){r0(_,34);var S0=No(m(_));if(4>>0)return w(_);switch(S0){case 0:return e(_);case 1:continue;case 2:return J(_);case 3:continue x;default:return u(_)}}}default:return u(_)}}case 2:return J(_);default:return u(_)}}function i0(_){return Rd(m(_))===0&&Nd(m(_))===0&&jY(m(_))===0&&gY(m(_))===0&&NY(m(_))===0&&qR(m(_))===0&&Ql(m(_))===0&&Rd(m(_))===0&&Co(m(_))===0&&IY(m(_))===0&&Hl(m(_))===0?3:w(_)}function j(_){return r0(_,3),JY(m(_))===0?3:w(_)}function Y(_){var b=KT0(m(_));if(36>>0)return w(_);switch(b){case 0:return 98;case 1:return 99;case 2:if(r0(_,1),bc(m(_))!==0)return w(_);for(;;)if(r0(_,1),bc(m(_))!==0)return w(_);case 3:return 0;case 4:return r0(_,0),le(m(_))===0?0:w(_);case 5:return r0(_,88),_n(m(_))===0?(r0(_,58),_n(m(_))===0?54:w(_)):w(_);case 6:return 7;case 7:r0(_,95);var x0=m(_),S0=32>>0)return w(_);switch(Y0){case 0:return r0(_,83),_n(m(_))===0?70:w(_);case 1:return 4;default:return 69}case 14:r0(_,80);var U0=m(_),tx=42>>0)return w(_);switch(Vx){case 0:return e(_);case 1:continue;case 2:return J(_);case 3:x:for(;;){if(yr(m(_))!==0)return w(_);for(;;){r0(_,34);var er=No(m(_));if(4>>0)return w(_);switch(er){case 0:return e(_);case 1:continue;case 2:return J(_);case 3:continue x;default:return u(_)}}}default:return u(_)}}case 18:r0(_,93);var Jx=AY(m(_));if(2>>0)return w(_);switch(Jx){case 0:r0(_,2);var Or=wd(m(_));if(2>>0)return w(_);switch(Or){case 0:for(;;){var Xx=wd(m(_));if(2>>0)return w(_);switch(Xx){case 0:continue;case 1:return j(_);default:return i0(_)}}case 1:return j(_);default:return i0(_)}case 1:return 5;default:return 92}case 19:r0(_,34);var X2=CY(m(_));if(8>>0)return w(_);switch(X2){case 0:return e(_);case 1:return e0(_);case 2:for(;;){r0(_,20);var at=DY(m(_));if(4>>0)return w(_);switch(at){case 0:return C(_);case 1:return i(_);case 2:continue;case 3:for(;;){r0(_,18);var de=_d(m(_));if(3>>0)return w(_);switch(de){case 0:return I(_);case 1:return i(_);case 2:continue;default:r0(_,17);var En=L1(m(_));if(En!==0)return En===1?I(_):w(_);for(;;)if(r0(_,17),ar(m(_))!==0)return w(_)}}default:r0(_,19);var ro=L1(m(_));if(ro!==0)return ro===1?C(_):w(_);for(;;)if(r0(_,19),ar(m(_))!==0)return w(_)}}case 3:for(;;){r0(_,18);var An=_d(m(_));if(3>>0)return w(_);switch(An){case 0:return g(_);case 1:return i(_);case 2:continue;default:r0(_,17);var fs=L1(m(_));if(fs!==0)return fs===1?g(_):w(_);for(;;)if(r0(_,17),ar(m(_))!==0)return w(_)}}case 4:r0(_,33);var me=PY(m(_));if(me===0)return e(_);if(me!==1)return w(_);for(;;){r0(_,12);var gn=Dd(m(_));if(3>>0)return w(_);switch(gn){case 0:return A(_);case 1:continue;case 2:x:for(;;){if(xs(m(_))!==0)return w(_);for(;;){r0(_,12);var re=Dd(m(_));if(3>>0)return w(_);switch(re){case 0:return k(_);case 1:continue;case 2:continue x;default:r0(_,10);var Vt=L1(m(_));if(Vt!==0)return Vt===1?k(_):w(_);for(;;)if(r0(_,9),ar(m(_))!==0)return w(_)}}}default:r0(_,10);var dr=L1(m(_));if(dr!==0)return dr===1?A(_):w(_);for(;;)if(r0(_,9),ar(m(_))!==0)return w(_)}}case 5:return J(_);case 6:r0(_,33);var Zt=RY(m(_));if(Zt===0)return e(_);if(Zt!==1)return w(_);for(;;){r0(_,16);var Nn=Ud(m(_));if(3>>0)return w(_);switch(Nn){case 0:return h(_);case 1:continue;case 2:x:for(;;){if(J2(m(_))!==0)return w(_);for(;;){r0(_,16);var Hv=Ud(m(_));if(3>>0)return w(_);switch(Hv){case 0:return y(_);case 1:continue;case 2:continue x;default:r0(_,14);var ke=L1(m(_));if(ke!==0)return ke===1?y(_):w(_);for(;;)if(r0(_,13),ar(m(_))!==0)return w(_)}}}default:r0(_,14);var lt=L1(m(_));if(lt!==0)return lt===1?h(_):w(_);for(;;)if(r0(_,13),ar(m(_))!==0)return w(_)}}case 7:r0(_,33);var Ko=_Y(m(_));if(Ko===0)return e(_);if(Ko!==1)return w(_);for(;;){r0(_,24);var eo=jd(m(_));if(3>>0)return w(_);switch(eo){case 0:return a(_);case 1:continue;case 2:x:for(;;){if(Ir(m(_))!==0)return w(_);for(;;){r0(_,24);var a2=jd(m(_));if(3>>0)return w(_);switch(a2){case 0:return o(_);case 1:continue;case 2:continue x;default:r0(_,22);var to=L1(m(_));if(to!==0)return to===1?o(_):w(_);for(;;)if(r0(_,21),ar(m(_))!==0)return w(_)}}}default:r0(_,22);var In=L1(m(_));if(In!==0)return In===1?a(_):w(_);for(;;)if(r0(_,21),ar(m(_))!==0)return w(_)}}default:return t(_)}case 20:r0(_,34);var pt=Sd(m(_));if(5>>0)return w(_);switch(pt){case 0:return e(_);case 1:return e0(_);case 2:for(;;){r0(_,34);var Jo=Sd(m(_));if(5>>0)return w(_);switch(Jo){case 0:return e(_);case 1:return e0(_);case 2:continue;case 3:return J(_);case 4:return f(_);default:return t(_)}}case 3:return J(_);case 4:return f(_);default:return t(_)}case 21:return 46;case 22:return 44;case 23:r0(_,78);var no=m(_),qv=59>>0)return Rx(wc0);var F=z;if(50>F)switch(F){case 0:return[2,Y2(x,r)];case 1:return[2,x];case 2:var t0=m2(x,r),$=Zr(Jr),f0=Jv(x,$,r),c0=f0[1];return[1,c0,Jt(c0,t0,f0[2],$,1)];case 3:var v0=Kx(r);if(!x[5]){var s0=m2(x,r),o0=Zr(Jr);vr(o0,z2(v0,2,Gx(v0)-2|0));var E0=Jv(x,o0,r),k0=E0[1];return[1,k0,Jt(k0,s0,E0[2],o0,1)]}var M0=x[4]?WY(x,Yr(x,r),v0):x,D0=ld(1,M0),cx=sd(r);return Nr(Vl(r,cx-1|0,1),Nv)&&N(Vl(r,cx-2|0,1),Nv)?[0,D0,86]:[2,D0];case 4:if(x[4])return[2,ld(0,x)];$a(r),pr(r);var g0=SY(m(r))===0?0:w(r);return g0===0?[0,x,_1]:Rx(Tc0);case 5:var Z0=m2(x,r),n0=Zr(Jr),nx=Ga(x,n0,r),xx=nx[1];return[1,xx,Jt(xx,Z0,nx[2],n0,0)];case 6:if(r[6]!==0)return[0,x,Sc0];var yx=m2(x,r),px=Zr(Jr),Tx=Ga(x,px,r),O0=Tx[1],P0=[0,O0[1],yx,Tx[2]];return[0,O0,[6,P0,z1(px)]];case 7:var N0=Kx(r),J0=m2(x,r),I0=Zr(Jr),Q=Zr(Jr);vr(Q,N0);var G=QY(x,N0,I0,Q,0,r),V=G[1],p0=G[3],d0=[0,V[1],J0,G[2]],A0=z1(Q);return[0,V,[2,[0,d0,z1(I0),A0,p0]]];case 8:var M=Zr(Jr),L0=Zr(Jr),V0=m2(x,r),B0=HY(x,M,L0,r),vx=B0[1],b0=B0[2],hx=pe(vx,r),W0=[0,vx[1],V0,hx],T=z1(L0);return[0,vx,[3,[0,W0,z1(M),T,1,b0]]];case 9:return N1(x,r,function(_,b){if(pr(b),ae(m(b))===0&&Ad(m(b))===0&&xs(m(b))===0)for(;;){var x0=kd(m(b));if(2>>0)var h0=w(b);else switch(x0){case 0:continue;case 1:x:for(;;){if(xs(m(b))===0)for(;;){var S0=kd(m(b));if(2>>0)var H=w(b);else switch(S0){case 0:continue;case 1:continue x;default:var H=0}break}else var H=w(b);var h0=H;break}break;default:var h0=0}break}else var h0=w(b);return h0===0?[0,_,[1,0,Kx(b)]]:Rx(_c0)});case 10:return[0,x,[1,0,Kx(r)]];case 11:return N1(x,r,function(_,b){if(pr(b),ae(m(b))===0&&Ad(m(b))===0&&xs(m(b))===0)for(;;){r0(b,0);var x0=md(m(b));if(x0!==0){if(x0===1)x:for(;;){if(xs(m(b))===0)for(;;){r0(b,0);var S0=md(m(b));if(S0!==0){if(S0===1)continue x;var H=w(b);break}}else var H=w(b);var h0=H;break}else var h0=w(b);break}}else var h0=w(b);return h0===0?[0,_,[0,0,Kx(b)]]:Rx(hc0)});case 12:return[0,x,[0,0,Kx(r)]];case 13:return N1(x,r,function(_,b){if(pr(b),ae(m(b))===0&&Pd(m(b))===0&&J2(m(b))===0)for(;;){var x0=Ed(m(b));if(2>>0)var h0=w(b);else switch(x0){case 0:continue;case 1:x:for(;;){if(J2(m(b))===0)for(;;){var S0=Ed(m(b));if(2>>0)var H=w(b);else switch(S0){case 0:continue;case 1:continue x;default:var H=0}break}else var H=w(b);var h0=H;break}break;default:var h0=0}break}else var h0=w(b);return h0===0?[0,_,[1,1,Kx(b)]]:Rx(kc0)});case 14:return[0,x,[1,1,Kx(r)]];case 15:return N1(x,r,function(_,b){if(pr(b),ae(m(b))===0&&Pd(m(b))===0&&J2(m(b))===0)for(;;){r0(b,0);var x0=Td(m(b));if(x0!==0){if(x0===1)x:for(;;){if(J2(m(b))===0)for(;;){r0(b,0);var S0=Td(m(b));if(S0!==0){if(S0===1)continue x;var H=w(b);break}}else var H=w(b);var h0=H;break}else var h0=w(b);break}}else var h0=w(b);return h0===0?[0,_,[0,3,Kx(b)]]:Rx(mc0)});case 16:return[0,x,[0,3,Kx(r)]];case 17:return N1(x,r,function(_,b){if(pr(b),ae(m(b))===0)for(;;){var x0=m(b),S0=47>>0)var h0=w(b);else switch(x0){case 0:continue;case 1:x:for(;;){if(Ir(m(b))===0)for(;;){var S0=hd(m(b));if(2>>0)var H=w(b);else switch(S0){case 0:continue;case 1:continue x;default:var H=0}break}else var H=w(b);var h0=H;break}break;default:var h0=0}break}else var h0=w(b);return h0===0?[0,_,[1,2,Kx(b)]]:Rx(pc0)});case 22:return[0,x,[1,2,Kx(r)]];case 23:return N1(x,r,function(_,b){if(pr(b),ae(m(b))===0&&yd(m(b))===0&&Ir(m(b))===0)for(;;){r0(b,0);var x0=Od(m(b));if(x0!==0){if(x0===1)x:for(;;){if(Ir(m(b))===0)for(;;){r0(b,0);var S0=Od(m(b));if(S0!==0){if(S0===1)continue x;var H=w(b);break}}else var H=w(b);var h0=H;break}else var h0=w(b);break}}else var h0=w(b);return h0===0?[0,_,[0,4,Kx(b)]]:Rx(lc0)});case 24:return[0,x,[0,4,Kx(r)]];case 25:return N1(x,r,function(_,b){function x0(Jx){for(;;){var Or=zt(m(Jx));if(2>>0)return w(Jx);switch(Or){case 0:continue;case 1:x:for(;;){if(yr(m(Jx))!==0)return w(Jx);for(;;){var Xx=zt(m(Jx));if(2>>0)return w(Jx);switch(Xx){case 0:continue;case 1:continue x;default:return 0}}}default:return 0}}}function S0(Jx){for(;;){var Or=Ha(m(Jx));if(Or!==0)return Or===1?0:w(Jx)}}function H(Jx){var Or=zd(m(Jx));if(2>>0)return w(Jx);switch(Or){case 0:var Xx=go(m(Jx));return Xx===0?S0(Jx):Xx===1?x0(Jx):w(Jx);case 1:return S0(Jx);default:return x0(Jx)}}function h0(Jx){var Or=Cd(m(Jx));if(Or!==0)return Or===1?H(Jx):w(Jx);for(;;){var Xx=G2(m(Jx));if(2>>0)return w(Jx);switch(Xx){case 0:continue;case 1:return H(Jx);default:x:for(;;){if(yr(m(Jx))!==0)return w(Jx);for(;;){var X2=G2(m(Jx));if(2>>0)return w(Jx);switch(X2){case 0:continue;case 1:return H(Jx);default:continue x}}}}}}pr(b);var Y0=Ao(m(b));if(2>>0)var U0=w(b);else switch(Y0){case 0:if(yr(m(b))===0)for(;;){var tx=G2(m(b));if(2>>0)var U0=w(b);else switch(tx){case 0:continue;case 1:var U0=H(b);break;default:x:for(;;){if(yr(m(b))===0)for(;;){var Wx=G2(m(b));if(2>>0)var Lx=w(b);else switch(Wx){case 0:continue;case 1:var Lx=H(b);break;default:continue x}break}else var Lx=w(b);var U0=Lx;break}}break}else var U0=w(b);break;case 1:var ur=dd(m(b)),U0=ur===0?h0(b):ur===1?H(b):w(b);break;default:for(;;){var Vx=Id(m(b));if(2>>0)var U0=w(b);else switch(Vx){case 0:var U0=h0(b);break;case 1:continue;default:var U0=H(b)}break}}if(U0!==0)return Rx(ac0);var er=k2(_,Yr(_,b),47);return[0,er,[1,2,Kx(b)]]});case 26:var K=k2(x,Yr(x,r),47);return[0,K,[1,2,Kx(r)]];case 27:return N1(x,r,function(_,b){function x0(er){for(;;){r0(er,0);var Jx=Io(m(er));if(Jx!==0){if(Jx!==1)return w(er);x:for(;;){if(yr(m(er))!==0)return w(er);for(;;){r0(er,0);var Or=Io(m(er));if(Or!==0){if(Or===1)continue x;return w(er)}}}}}}function S0(er){for(;;)if(r0(er,0),yr(m(er))!==0)return w(er)}function H(er){var Jx=zd(m(er));if(2>>0)return w(er);switch(Jx){case 0:var Or=go(m(er));return Or===0?S0(er):Or===1?x0(er):w(er);case 1:return S0(er);default:return x0(er)}}function h0(er){var Jx=Cd(m(er));if(Jx!==0)return Jx===1?H(er):w(er);for(;;){var Or=G2(m(er));if(2>>0)return w(er);switch(Or){case 0:continue;case 1:return H(er);default:x:for(;;){if(yr(m(er))!==0)return w(er);for(;;){var Xx=G2(m(er));if(2>>0)return w(er);switch(Xx){case 0:continue;case 1:return H(er);default:continue x}}}}}}pr(b);var Y0=Ao(m(b));if(2>>0)var U0=w(b);else switch(Y0){case 0:if(yr(m(b))===0)for(;;){var tx=G2(m(b));if(2>>0)var U0=w(b);else switch(tx){case 0:continue;case 1:var U0=H(b);break;default:x:for(;;){if(yr(m(b))===0)for(;;){var Wx=G2(m(b));if(2>>0)var Lx=w(b);else switch(Wx){case 0:continue;case 1:var Lx=H(b);break;default:continue x}break}else var Lx=w(b);var U0=Lx;break}}break}else var U0=w(b);break;case 1:var ur=dd(m(b)),U0=ur===0?h0(b):ur===1?H(b):w(b);break;default:for(;;){var Vx=Id(m(b));if(2>>0)var U0=w(b);else switch(Vx){case 0:var U0=h0(b);break;case 1:continue;default:var U0=H(b)}break}}return U0===0?[0,_,[0,4,Kx(b)]]:Rx(vc0)});case 28:return[0,x,[0,4,Kx(r)]];case 29:return N1(x,r,function(_,b){function x0(ur){for(;;){var Vx=zt(m(ur));if(2>>0)return w(ur);switch(Vx){case 0:continue;case 1:x:for(;;){if(yr(m(ur))!==0)return w(ur);for(;;){var er=zt(m(ur));if(2>>0)return w(ur);switch(er){case 0:continue;case 1:continue x;default:return 0}}}default:return 0}}}function S0(ur){var Vx=Ha(m(ur));return Vx===0?x0(ur):Vx===1?0:w(ur)}pr(b);var H=Ao(m(b));if(2>>0)var h0=w(b);else switch(H){case 0:var h0=yr(m(b))===0?x0(b):w(b);break;case 1:for(;;){var Y0=qa(m(b));if(Y0===0)var h0=S0(b);else{if(Y0===1)continue;var h0=w(b)}break}break;default:for(;;){var U0=Po(m(b));if(2>>0)var h0=w(b);else switch(U0){case 0:var h0=S0(b);break;case 1:continue;default:x:for(;;){if(yr(m(b))===0)for(;;){var tx=Po(m(b));if(2>>0)var Wx=w(b);else switch(tx){case 0:var Wx=S0(b);break;case 1:continue;default:continue x}break}else var Wx=w(b);var h0=Wx;break}}break}}if(h0!==0)return Rx(oc0);var Lx=k2(_,Yr(_,b),38);return[0,Lx,[1,2,Kx(b)]]});case 30:return N1(x,r,function(_,b){pr(b);var x0=go(m(b));if(x0===0)for(;;){var S0=Ha(m(b));if(S0!==0){var U0=S0===1?0:w(b);break}}else if(x0===1)for(;;){var H=zt(m(b));if(2>>0)var U0=w(b);else switch(H){case 0:continue;case 1:x:for(;;){if(yr(m(b))===0)for(;;){var h0=zt(m(b));if(2>>0)var Y0=w(b);else switch(h0){case 0:continue;case 1:continue x;default:var Y0=0}break}else var Y0=w(b);var U0=Y0;break}break;default:var U0=0}break}else var U0=w(b);return U0===0?[0,_,[1,2,Kx(b)]]:Rx(sc0)});case 31:var H0=k2(x,Yr(x,r),38);return[0,H0,[1,2,Kx(r)]];case 32:return[0,x,[1,2,Kx(r)]];case 33:return N1(x,r,function(_,b){function x0(Lx){for(;;){r0(Lx,0);var ur=Io(m(Lx));if(ur!==0){if(ur!==1)return w(Lx);x:for(;;){if(yr(m(Lx))!==0)return w(Lx);for(;;){r0(Lx,0);var Vx=Io(m(Lx));if(Vx!==0){if(Vx===1)continue x;return w(Lx)}}}}}}function S0(Lx){return r0(Lx,0),yr(m(Lx))===0?x0(Lx):w(Lx)}pr(b);var H=Ao(m(b));if(2>>0)var h0=w(b);else switch(H){case 0:var h0=yr(m(b))===0?x0(b):w(b);break;case 1:for(;;){r0(b,0);var Y0=qa(m(b));if(Y0===0)var h0=S0(b);else{if(Y0===1)continue;var h0=w(b)}break}break;default:for(;;){r0(b,0);var U0=Po(m(b));if(2>>0)var h0=w(b);else switch(U0){case 0:var h0=S0(b);break;case 1:continue;default:x:for(;;){if(yr(m(b))===0)for(;;){r0(b,0);var tx=Po(m(b));if(2>>0)var Wx=w(b);else switch(tx){case 0:var Wx=S0(b);break;case 1:continue;default:continue x}break}else var Wx=w(b);var h0=Wx;break}}break}}return h0===0?[0,_,[0,4,Kx(b)]]:Rx(cc0)});case 34:return[0,x,[0,4,Kx(r)]];case 35:var sx=Yr(x,r),ux=Kx(r);return[0,x,[4,sx,ux,ux]];case 36:return[0,x,0];case 37:return[0,x,1];case 38:return[0,x,4];case 39:return[0,x,5];case 40:return[0,x,6];case 41:return[0,x,7];case 42:return[0,x,12];case 43:return[0,x,10];case 44:return[0,x,8];case 45:return[0,x,9];case 46:return[0,x,86];case 47:$a(r),pr(r);var z0=m(r),Px=62=rr)return[0,x,18];var zx=Ex(j0,Ia);if(0<=zx){if(0>=zx)return[0,x,51];var X0=Ex(j0,ws);if(0<=X0){if(0>=X0)return[0,x,46];if(!N(j0,sl))return[0,x,24];if(!N(j0,gs))return[0,x,47];if(!N(j0,Mp))return[0,x,25];if(!N(j0,ap))return[0,x,26];if(!N(j0,U2))return[0,x,58]}else{if(!N(j0,Ke))return[0,x,20];if(!N(j0,fv))return[0,x,21];if(!N(j0,ze))return[0,x,22];if(!N(j0,Ts))return[0,x,31];if(!N(j0,ny))return[0,x,23];if(!N(j0,bu))return[0,x,61]}}else{var ir=Ex(j0,Zp);if(0<=ir){if(0>=ir)return[0,x,54];if(!N(j0,kl))return[0,x,55];if(!N(j0,W3))return[0,x,56];if(!N(j0,j3))return[0,x,57];if(!N(j0,Me))return[0,x,19];if(!N(j0,De))return[0,x,42]}else{if(!N(j0,F2))return[0,x,53];if(!N(j0,ya))return[0,x,28];if(!N(j0,iv))return[0,x,44];if(!N(j0,lv))return[0,x,29];if(!N(j0,Bh))return[0,x,63];if(!N(j0,Oh))return[0,x,62]}}}else{var K0=Ex(j0,W5);if(0<=K0){if(0>=K0)return[0,x,37];var Sr=Ex(j0,d8);if(0<=Sr){if(0>=Sr)return[0,x,39];if(!N(j0,la))return[0,x,15];if(!N(j0,Hp))return[0,x,16];if(!N(j0,dv))return[0,x,52];if(!N(j0,R2))return[0,x,50];if(!N(j0,mo))return[0,x,17]}else{if(!N(j0,Rp))return[0,x,43];if(!N(j0,cl))return[0,x,48];if(!N(j0,r8))return[0,x,49];if(!N(j0,Ic))return[0,x,41];if(!N(j0,As))return[0,x,30];if(!N(j0,gp))return[0,x,38]}}else{var Dr=Ex(j0,nl);if(0<=Dr){if(0>=Dr)return[0,x,27];if(!N(j0,Ce))return[0,x,35];if(!N(j0,Re))return[0,x,59];if(!N(j0,Q3))return[0,x,60];if(!N(j0,cv))return[0,x,36];if(!N(j0,el))return[0,x,45]}else{if(!N(j0,ko))return[0,x,64];if(!N(j0,_v))return[0,x,65];if(!N(j0,Le))return[0,x,32];if(!N(j0,Jp))return[0,x,33];if(!N(j0,W8))return[0,x,34];if(!N(j0,Y3))return[0,x,40]}}}var ax=n1(r),br=$Y(x,ax),t2=br[2],k1=br[1];return[0,k1,[4,Qx,t2,Zl(ax)]];case 98:var Rr=x[4]?k2(x,Yr(x,r),95):x;return[0,Rr,Er];default:var U1=ot(x,Yr(x,r));return[0,U1,[7,Kx(r)]]}},XT0=function(x,r,e){var t=x;x:for(;;){pr(e);var u=m(e),i=92>>0)var f=w(e);else switch(i){case 0:var f=0;break;case 1:for(;;){r0(e,7);var o=m(e),a=-1>>0)var f=w(e);else switch(h){case 0:var f=2;break;case 1:var f=1;break;default:r0(e,1);var f=le(m(e))===0?1:w(e)}}if(7>>0)return Rx(Jt0);switch(f){case 0:return[0,k2(t,Yr(t,e),Er),Yt0];case 1:return[0,Y2(k2(t,Yr(t,e),Er),e),Bt0];case 2:vr(r,Kx(e));continue;case 3:var k=Kx(e);return[0,t,z2(k,1,Gx(k)-1|0)];case 4:return[0,t,Xt0];case 5:for(ct(r,91);;){pr(e);var A=m(e),g=93>>0)var I=w(e);else switch(g){case 0:var I=0;break;case 1:for(;;){r0(e,5);var C=m(e),R=-1>>0)var B=Rx(zt0);else switch(I){case 0:var B=t;break;case 1:vr(r,Kt0);continue;case 2:ct(r,92),ct(r,93);continue;case 3:ct(r,93);var B=t;break;case 4:var B=Y2(k2(t,Yr(t,e),Er),e);break;default:vr(r,Kx(e));continue}var t=B;continue x}case 6:return[0,Y2(k2(t,Yr(t,e),Er),e),Wt0];default:vr(r,Kx(e));continue}}},WT0=function(x,r){pr(r);var e=m(r),t=Av>>0)var u=w(r);else switch(t){case 0:var u=0;break;case 1:var u=6;break;case 2:if(r0(r,2),bc(m(r))===0){for(;;)if(r0(r,2),bc(m(r))!==0){var u=w(r);break}}else var u=w(r);break;case 3:var u=1;break;case 4:r0(r,1);var u=le(m(r))===0?1:w(r);break;default:r0(r,5);var i=Md(m(r)),u=i===0?4:i===1?3:w(r)}if(6>>0)return Rx(fc0);switch(u){case 0:return[0,x,Er];case 1:return[2,Y2(x,r)];case 2:return[2,x];case 3:var f=m2(x,r),o=Zr(Jr),a=Ga(x,o,r),y=a[1];return[1,y,Jt(y,f,a[2],o,0)];case 4:var h=m2(x,r),k=Zr(Jr),A=Jv(x,k,r),g=A[1];return[1,g,Jt(g,h,A[2],k,1)];case 5:var I=m2(x,r),C=Zr(Jr),R=XT0(x,C,r),L=R[1],U=R[2],B=pe(L,r),X=[0,L[1],I,B];return[0,L,[5,X,z1(C),U]];default:var J=ot(x,Yr(x,r));return[0,J,[7,Kx(r)]]}},qY=function(x){var r=Ex(x,"iexcl");if(0<=r){if(0>=r)return ic0;var e=Ex(x,"prime");if(0<=e){if(0>=e)return uc0;var t=Ex(x,"sup1");if(0<=t){if(0>=t)return nc0;var u=Ex(x,"uarr");if(0<=u){if(0>=u)return tc0;var i=Ex(x,"xi");if(0<=i){if(0>=i)return ec0;if(!N(x,"yacute"))return rc0;if(!N(x,"yen"))return xc0;if(!N(x,"yuml"))return bf0;if(!N(x,"zeta"))return Gf0;if(!N(x,"zwj"))return qf0;if(!N(x,"zwnj"))return Hf0}else{if(!N(x,"ucirc"))return Qf0;if(!N(x,"ugrave"))return Ff0;if(!N(x,"uml"))return $f0;if(!N(x,"upsih"))return Zf0;if(!N(x,"upsilon"))return Vf0;if(!N(x,"uuml"))return Wf0;if(!N(x,"weierp"))return Xf0}}else{var f=Ex(x,"thetasym");if(0<=f){if(0>=f)return Bf0;if(!N(x,"thinsp"))return Yf0;if(!N(x,"thorn"))return Jf0;if(!N(x,"tilde"))return Kf0;if(!N(x,"times"))return zf0;if(!N(x,"trade"))return jf0;if(!N(x,"uArr"))return Df0;if(!N(x,"uacute"))return Mf0}else{if(!N(x,"sup2"))return Uf0;if(!N(x,"sup3"))return Lf0;if(!N(x,"supe"))return Of0;if(!N(x,"szlig"))return Rf0;if(!N(x,"tau"))return Cf0;if(!N(x,"there4"))return Pf0;if(!N(x,"theta"))return If0}}}else{var o=Ex(x,"rlm");if(0<=o){if(0>=o)return Nf0;var a=Ex(x,"sigma");if(0<=a){if(0>=a)return gf0;if(!N(x,"sigmaf"))return Af0;if(!N(x,"sim"))return Ef0;if(!N(x,"spades"))return Sf0;if(!N(x,"sub"))return Tf0;if(!N(x,"sube"))return wf0;if(!N(x,"sum"))return _f0;if(!N(x,"sup"))return hf0}else{if(!N(x,"rsaquo"))return kf0;if(!N(x,"rsquo"))return mf0;if(!N(x,"sbquo"))return df0;if(!N(x,"scaron"))return yf0;if(!N(x,"sdot"))return pf0;if(!N(x,"sect"))return lf0;if(!N(x,"shy"))return af0}}else{var y=Ex(x,"raquo");if(0<=y){if(0>=y)return vf0;if(!N(x,"rarr"))return of0;if(!N(x,"rceil"))return sf0;if(!N(x,"rdquo"))return cf0;if(!N(x,"real"))return ff0;if(!N(x,"reg"))return if0;if(!N(x,"rfloor"))return uf0;if(!N(x,"rho"))return nf0}else{if(!N(x,"prod"))return tf0;if(!N(x,"prop"))return ef0;if(!N(x,"psi"))return rf0;if(!N(x,"quot"))return xf0;if(!N(x,"rArr"))return bi0;if(!N(x,"radic"))return Gi0;if(!N(x,"rang"))return qi0}}}}else{var h=Ex(x,"ndash");if(0<=h){if(0>=h)return Hi0;var k=Ex(x,"or");if(0<=k){if(0>=k)return Qi0;var A=Ex(x,"part");if(0<=A){if(0>=A)return Fi0;if(!N(x,"permil"))return $i0;if(!N(x,"perp"))return Zi0;if(!N(x,"phi"))return Vi0;if(!N(x,"pi"))return Wi0;if(!N(x,"piv"))return Xi0;if(!N(x,"plusmn"))return Bi0;if(!N(x,"pound"))return Yi0}else{if(!N(x,"ordf"))return Ji0;if(!N(x,"ordm"))return Ki0;if(!N(x,"oslash"))return zi0;if(!N(x,"otilde"))return ji0;if(!N(x,"otimes"))return Di0;if(!N(x,"ouml"))return Mi0;if(!N(x,"para"))return Ui0}}else{var g=Ex(x,"oacute");if(0<=g){if(0>=g)return Li0;if(!N(x,"ocirc"))return Oi0;if(!N(x,"oelig"))return Ri0;if(!N(x,"ograve"))return Ci0;if(!N(x,"oline"))return Pi0;if(!N(x,"omega"))return Ii0;if(!N(x,"omicron"))return Ni0;if(!N(x,"oplus"))return gi0}else{if(!N(x,"ne"))return Ai0;if(!N(x,"ni"))return Ei0;if(!N(x,"not"))return Si0;if(!N(x,"notin"))return Ti0;if(!N(x,"nsub"))return wi0;if(!N(x,"ntilde"))return _i0;if(!N(x,"nu"))return hi0}}}else{var I=Ex(x,"le");if(0<=I){if(0>=I)return ki0;var C=Ex(x,"macr");if(0<=C){if(0>=C)return mi0;if(!N(x,"mdash"))return di0;if(!N(x,"micro"))return yi0;if(!N(x,"middot"))return pi0;if(!N(x,NM))return li0;if(!N(x,"mu"))return ai0;if(!N(x,"nabla"))return vi0;if(!N(x,"nbsp"))return oi0}else{if(!N(x,"lfloor"))return si0;if(!N(x,"lowast"))return ci0;if(!N(x,"loz"))return fi0;if(!N(x,"lrm"))return ii0;if(!N(x,"lsaquo"))return ui0;if(!N(x,"lsquo"))return ni0;if(!N(x,"lt"))return ti0}}else{var R=Ex(x,"kappa");if(0<=R){if(0>=R)return ei0;if(!N(x,"lArr"))return ri0;if(!N(x,"lambda"))return xi0;if(!N(x,"lang"))return bu0;if(!N(x,"laquo"))return Gu0;if(!N(x,"larr"))return qu0;if(!N(x,"lceil"))return Hu0;if(!N(x,"ldquo"))return Qu0}else{if(!N(x,"igrave"))return Fu0;if(!N(x,"image"))return $u0;if(!N(x,"infin"))return Zu0;if(!N(x,"iota"))return Vu0;if(!N(x,"iquest"))return Wu0;if(!N(x,"isin"))return Xu0;if(!N(x,"iuml"))return Bu0}}}}}else{var L=Ex(x,"aelig");if(0<=L){if(0>=L)return Yu0;var U=Ex(x,"delta");if(0<=U){if(0>=U)return Ju0;var B=Ex(x,"fnof");if(0<=B){if(0>=B)return Ku0;var X=Ex(x,"gt");if(0<=X){if(0>=X)return zu0;if(!N(x,"hArr"))return ju0;if(!N(x,"harr"))return Du0;if(!N(x,"hearts"))return Mu0;if(!N(x,"hellip"))return Uu0;if(!N(x,"iacute"))return Lu0;if(!N(x,"icirc"))return Ou0}else{if(!N(x,"forall"))return Ru0;if(!N(x,"frac12"))return Cu0;if(!N(x,"frac14"))return Pu0;if(!N(x,"frac34"))return Iu0;if(!N(x,"frasl"))return Nu0;if(!N(x,"gamma"))return gu0;if(!N(x,"ge"))return Au0}}else{var J=Ex(x,"ensp");if(0<=J){if(0>=J)return Eu0;if(!N(x,"epsilon"))return Su0;if(!N(x,"equiv"))return Tu0;if(!N(x,"eta"))return wu0;if(!N(x,"eth"))return _u0;if(!N(x,"euml"))return hu0;if(!N(x,"euro"))return ku0;if(!N(x,"exist"))return mu0}else{if(!N(x,"diams"))return du0;if(!N(x,"divide"))return yu0;if(!N(x,"eacute"))return pu0;if(!N(x,"ecirc"))return lu0;if(!N(x,"egrave"))return au0;if(!N(x,ce))return vu0;if(!N(x,"emsp"))return ou0}}}else{var e0=Ex(x,"cap");if(0<=e0){if(0>=e0)return su0;var i0=Ex(x,"copy");if(0<=i0){if(0>=i0)return cu0;if(!N(x,"crarr"))return fu0;if(!N(x,"cup"))return iu0;if(!N(x,"curren"))return uu0;if(!N(x,"dArr"))return nu0;if(!N(x,"dagger"))return tu0;if(!N(x,"darr"))return eu0;if(!N(x,"deg"))return ru0}else{if(!N(x,"ccedil"))return xu0;if(!N(x,"cedil"))return b70;if(!N(x,"cent"))return G70;if(!N(x,"chi"))return q70;if(!N(x,"circ"))return H70;if(!N(x,"clubs"))return Q70;if(!N(x,"cong"))return F70}}else{var j=Ex(x,"aring");if(0<=j){if(0>=j)return $70;if(!N(x,"asymp"))return Z70;if(!N(x,"atilde"))return V70;if(!N(x,"auml"))return W70;if(!N(x,"bdquo"))return X70;if(!N(x,"beta"))return B70;if(!N(x,"brvbar"))return Y70;if(!N(x,"bull"))return J70}else{if(!N(x,"agrave"))return K70;if(!N(x,"alefsym"))return z70;if(!N(x,"alpha"))return j70;if(!N(x,"amp"))return D70;if(!N(x,"and"))return M70;if(!N(x,"ang"))return U70;if(!N(x,"apos"))return L70}}}}else{var Y=Ex(x,"Nu");if(0<=Y){if(0>=Y)return O70;var z=Ex(x,"Sigma");if(0<=z){if(0>=z)return R70;var F=Ex(x,"Uuml");if(0<=F){if(0>=F)return C70;if(!N(x,"Xi"))return P70;if(!N(x,"Yacute"))return I70;if(!N(x,"Yuml"))return N70;if(!N(x,"Zeta"))return g70;if(!N(x,"aacute"))return A70;if(!N(x,"acirc"))return E70;if(!N(x,"acute"))return S70}else{if(!N(x,"THORN"))return T70;if(!N(x,"Tau"))return w70;if(!N(x,"Theta"))return _70;if(!N(x,"Uacute"))return h70;if(!N(x,"Ucirc"))return k70;if(!N(x,"Ugrave"))return m70;if(!N(x,"Upsilon"))return d70}}else{var t0=Ex(x,"Otilde");if(0<=t0){if(0>=t0)return y70;if(!N(x,"Ouml"))return p70;if(!N(x,"Phi"))return l70;if(!N(x,"Pi"))return a70;if(!N(x,"Prime"))return v70;if(!N(x,"Psi"))return o70;if(!N(x,"Rho"))return s70;if(!N(x,"Scaron"))return c70}else{if(!N(x,"OElig"))return f70;if(!N(x,"Oacute"))return i70;if(!N(x,"Ocirc"))return u70;if(!N(x,"Ograve"))return n70;if(!N(x,"Omega"))return t70;if(!N(x,"Omicron"))return e70;if(!N(x,"Oslash"))return r70}}}else{var $=Ex(x,"Eacute");if(0<=$){if(0>=$)return x70;var f0=Ex(x,"Icirc");if(0<=f0){if(0>=f0)return bn0;if(!N(x,"Igrave"))return Gn0;if(!N(x,"Iota"))return qn0;if(!N(x,"Iuml"))return Hn0;if(!N(x,"Kappa"))return Qn0;if(!N(x,"Lambda"))return Fn0;if(!N(x,"Mu"))return $n0;if(!N(x,"Ntilde"))return Zn0}else{if(!N(x,"Ecirc"))return Vn0;if(!N(x,"Egrave"))return Wn0;if(!N(x,"Epsilon"))return Xn0;if(!N(x,"Eta"))return Bn0;if(!N(x,"Euml"))return Yn0;if(!N(x,"Gamma"))return Jn0;if(!N(x,"Iacute"))return Kn0}}else{var c0=Ex(x,"Atilde");if(0<=c0){if(0>=c0)return zn0;if(!N(x,"Auml"))return jn0;if(!N(x,"Beta"))return Dn0;if(!N(x,"Ccedil"))return Mn0;if(!N(x,"Chi"))return Un0;if(!N(x,"Dagger"))return Ln0;if(!N(x,"Delta"))return On0;if(!N(x,"ETH"))return Rn0}else{if(!N(x,"'int'"))return Cn0;if(!N(x,"AElig"))return Pn0;if(!N(x,"Aacute"))return In0;if(!N(x,"Acirc"))return Nn0;if(!N(x,"Agrave"))return gn0;if(!N(x,"Alpha"))return An0;if(!N(x,"Aring"))return En0}}}}}return 0},GY=function(x,r,e,t){for(var u=x;;){var i=function(t0){for(;;)if(r0(t0,8),QR(m(t0))!==0)return w(t0)};pr(t);var f=m(t),o=gi>>0)var a=w(t);else switch(o){case 0:var a=3;break;case 1:var a=i(t);break;case 2:var a=4;break;case 3:r0(t,4);var a=le(m(t))===0?4:w(t);break;case 4:r0(t,8);var y=YY(m(t));if(y===0){var h=kY(m(t));if(h===0)for(;;){var k=hY(m(t));if(k!==0){var a=k===1?6:w(t);break}}else if(h===1&&Ir(m(t))===0)for(;;){var A=zY(m(t));if(A!==0){var a=A===1?5:w(t);break}}else var a=w(t)}else if(y===1&&ar(m(t))===0){var g=Kt(m(t));if(g===0){var I=Kt(m(t));if(I===0){var C=Kt(m(t));if(C===0){var R=Kt(m(t));if(R===0){var L=Kt(m(t));if(L===0)var U=Kt(m(t)),a=U===0?UY(m(t))===0?7:w(t):U===1?7:w(t);else var a=L===1?7:w(t)}else var a=R===1?7:w(t)}else var a=C===1?7:w(t)}else var a=I===1?7:w(t)}else var a=g===1?7:w(t)}else var a=w(t);break;case 5:var a=0;break;case 6:r0(t,1);var a=QR(m(t))===0?i(t):w(t);break;default:r0(t,2);var a=QR(m(t))===0?i(t):w(t)}if(8>>0)return Rx(Vt0);switch(a){case 0:return $a(t),u;case 1:return GR(u,Yr(u,t),$t0,Zt0);case 2:return GR(u,Yr(u,t),Qt0,Ft0);case 3:return ot(u,Yr(u,t));case 4:var B=Kx(t);vr(e,B),vr(r,B);var u=Y2(u,t);continue;case 5:var X=Kx(t),J=z2(X,3,Gx(X)-4|0);vr(e,X),qc(r,it(Zx(Ht0,J)));continue;case 6:var e0=Kx(t),i0=z2(e0,2,Gx(e0)-3|0);vr(e,e0),qc(r,it(i0));continue;case 7:var j=Kx(t),Y=z2(j,1,Gx(j)-2|0);vr(e,j);var z=qY(Y);z?qc(r,z[1]):vr(r,Zx(Gt0,Zx(Y,qt0)));continue;default:var F=Kx(t);vr(e,F),vr(r,F);continue}}},VT0=function(x,r){pr(r);var e=YT0(m(r));if(14>>0)var t=w(r);else switch(e){case 0:var t=0;break;case 1:var t=14;break;case 2:if(r0(r,2),bc(m(r))===0){for(;;)if(r0(r,2),bc(m(r))!==0){var t=w(r);break}}else var t=w(r);break;case 3:var t=1;break;case 4:r0(r,1);var t=le(m(r))===0?1:w(r);break;case 5:var t=12;break;case 6:var t=13;break;case 7:var t=10;break;case 8:r0(r,6);var u=Md(m(r)),t=u===0?4:u===1?3:w(r);break;case 9:var t=9;break;case 10:var t=5;break;case 11:var t=11;break;case 12:var t=7;break;case 13:if(r0(r,14),Co(m(r))===0){var i=Kv(m(r));if(i===0)var t=Ir(m(r))===0&&Ir(m(r))===0&&Ir(m(r))===0?13:w(r);else if(i===1&&Ir(m(r))===0)for(;;){var f=zv(m(r));if(f!==0){var t=f===1?13:w(r);break}}else var t=w(r)}else var t=w(r);break;default:var t=8}if(14>>0)return Rx(Sn0);switch(t){case 0:return[0,x,Er];case 1:return[2,Y2(x,r)];case 2:return[2,x];case 3:var o=m2(x,r),a=Zr(Jr),y=Ga(x,a,r),h=y[1];return[1,h,Jt(h,o,y[2],a,0)];case 4:var k=m2(x,r),A=Zr(Jr),g=Jv(x,A,r),I=g[1];return[1,I,Jt(I,k,g[2],A,1)];case 5:return[0,x,98];case 6:return[0,x,Ue];case 7:return[0,x,99];case 8:return[0,x,0];case 9:return[0,x,86];case 10:return[0,x,10];case 11:return[0,x,82];case 12:var C=Kx(r),R=m2(x,r),L=Zr(Jr),U=Zr(Jr);vr(U,C);for(var B=Nr(C,"'"),X=x;;){pr(r);var J=m(r),e0=39>>0)var i0=w(r);else switch(e0){case 0:var i0=2;break;case 1:for(;;){r0(r,7);var j=m(r),Y=-1>>0)var k0=Rx(bt0);else switch(i0){case 0:if(!B){ct(U,39),ct(L,39);continue}var k0=X;break;case 1:if(B){ct(U,34),ct(L,34);continue}var k0=X;break;case 2:var k0=ot(X,Yr(X,r));break;case 3:var M0=Kx(r);vr(U,M0),vr(L,M0);var X=Y2(X,r);continue;case 4:var D0=Kx(r),cx=z2(D0,3,Gx(D0)-4|0);vr(U,D0),qc(L,it(Zx(xn0,cx)));continue;case 5:var g0=Kx(r),Z0=z2(g0,2,Gx(g0)-3|0);vr(U,g0),qc(L,it(Z0));continue;case 6:var n0=Kx(r),nx=z2(n0,1,Gx(n0)-2|0);vr(U,n0);var xx=qY(nx);xx?qc(L,xx[1]):vr(L,Zx(en0,Zx(nx,rn0)));continue;default:var yx=Kx(r);vr(U,yx),vr(L,yx);continue}var px=pe(k0,r);vr(U,C);var Tx=z1(L),O0=z1(U);return[0,k0,[10,[0,k0[1],R,px],Tx,O0]]}case 13:for(var P0=r[6];;){pr(r);var N0=m(r),J0=qr>>0)var I0=w(r);else switch(J0){case 0:var I0=1;break;case 1:var I0=2;break;case 2:var I0=0;break;default:if(r0(r,2),Co(m(r))===0){var Q=Kv(m(r));if(Q===0)var I0=Ir(m(r))===0&&Ir(m(r))===0&&Ir(m(r))===0?0:w(r);else if(Q===1&&Ir(m(r))===0)for(;;){var G=zv(m(r));if(G!==0){var I0=G===1?0:w(r);break}}else var I0=w(r)}else var I0=w(r)}if(2>>0)throw q0([0,Tr,It0],1);switch(I0){case 0:continue;case 1:break;default:if(BR($J(r)))continue;QJ(r,1)}var V=r[3];MR(r,P0);var p0=n1(r),d0=ql(x,P0,V);return[0,x,[8,Zl(p0),d0]]}default:return[0,x,[7,Kx(r)]]}},ZT0=function(x,r){pr(r);var e=m(r),t=-1>>0)var u=w(r);else switch(t){case 0:var u=5;break;case 1:if(r0(r,1),bc(m(r))===0){for(;;)if(r0(r,1),bc(m(r))!==0){var u=w(r);break}}else var u=w(r);break;case 2:var u=0;break;case 3:r0(r,0);var u=le(m(r))===0?0:w(r);break;case 4:r0(r,5);var i=Md(m(r)),u=i===0?3:i===1?2:w(r);break;default:var u=4}if(5>>0)return Rx(hn0);switch(u){case 0:return[2,Y2(x,r)];case 1:return[2,x];case 2:var f=m2(x,r),o=Zr(Jr),a=Ga(x,o,r),y=a[1];return[1,y,Jt(y,f,a[2],o,0)];case 3:var h=m2(x,r),k=Zr(Jr),A=Jv(x,k,r),g=A[1];return[1,g,Jt(g,h,A[2],k,1)];case 4:var I=m2(x,r),C=Zr(Jr),R=Zr(Jr),L=HY(x,C,R,r),U=L[1],B=L[2],X=pe(U,r),J=[0,U[1],I,X],e0=z1(R);return[0,U,[3,[0,J,z1(C),e0,0,B]]];default:var i0=ot(x,Yr(x,r));return[0,i0,[3,[0,Yr(i0,r),wn0,_n0,0,1]]]}},$T0=function(x,r){function e(T){for(;;)if(r0(T,29),ar(m(T))!==0)return w(T)}function t(T){r0(T,28);var K=L1(m(T));if(K!==0)return K===1?e(T):w(T);for(;;)if(r0(T,26),ar(m(T))!==0)return w(T)}function u(T){r0(T,27);var K=L1(m(T));if(K!==0)return K===1?e(T):w(T);for(;;)if(r0(T,25),ar(m(T))!==0)return w(T)}function i(T){r0(T,30);var K=Qa(m(T));if(2>>0)return w(T);switch(K){case 0:return e(T);case 1:for(;;){r0(T,30);var H0=rs(m(T));if(3>>0)return w(T);switch(H0){case 0:return e(T);case 1:continue;case 2:x:for(;;){if(yr(m(T))!==0)return w(T);for(;;){r0(T,30);var sx=rs(m(T));if(3>>0)return w(T);switch(sx){case 0:return e(T);case 1:continue;case 2:continue x;default:return u(T)}}}default:return u(T)}}default:return u(T)}}function f(T){x:for(;;){if(yr(m(T))!==0)return w(T);for(;;){r0(T,30);var K=LY(m(T));if(4>>0)return w(T);switch(K){case 0:return e(T);case 1:return i(T);case 2:continue;case 3:continue x;default:return t(T)}}}}function o(T){for(;;)if(r0(T,19),ar(m(T))!==0)return w(T)}function a(T){for(;;)if(r0(T,19),ar(m(T))!==0)return w(T)}function y(T){for(;;)if(r0(T,13),ar(m(T))!==0)return w(T)}function h(T){for(;;)if(r0(T,13),ar(m(T))!==0)return w(T)}function k(T){for(;;)if(r0(T,9),ar(m(T))!==0)return w(T)}function A(T){for(;;)if(r0(T,9),ar(m(T))!==0)return w(T)}function g(T){for(;;)if(r0(T,15),ar(m(T))!==0)return w(T)}function I(T){r0(T,15);var K=L1(m(T));if(K!==0)return K===1?g(T):w(T);for(;;)if(r0(T,15),ar(m(T))!==0)return w(T)}function C(T){for(;;)if(r0(T,23),ar(m(T))!==0)return w(T)}function R(T){r0(T,22);var K=L1(m(T));if(K!==0)return K===1?C(T):w(T);for(;;)if(r0(T,21),ar(m(T))!==0)return w(T)}function L(T){for(;;)if(r0(T,23),ar(m(T))!==0)return w(T)}function U(T){r0(T,22);var K=L1(m(T));if(K!==0)return K===1?L(T):w(T);for(;;)if(r0(T,21),ar(m(T))!==0)return w(T)}function B(T){x:for(;;){if(yr(m(T))!==0)return w(T);for(;;){r0(T,24);var K=rs(m(T));if(3>>0)return w(T);switch(K){case 0:return L(T);case 1:continue;case 2:continue x;default:return U(T)}}}}function X(T){r0(T,29);var K=MY(m(T));if(3>>0)return w(T);switch(K){case 0:return e(T);case 1:var H0=go(m(T));if(H0===0)for(;;){r0(T,24);var sx=Qa(m(T));if(2>>0)return w(T);switch(sx){case 0:return L(T);case 1:continue;default:return U(T)}}if(H0!==1)return w(T);for(;;){r0(T,24);var ux=rs(m(T));if(3>>0)return w(T);switch(ux){case 0:return L(T);case 1:continue;case 2:return B(T);default:return U(T)}}case 2:for(;;){r0(T,24);var z0=Qa(m(T));if(2>>0)return w(T);switch(z0){case 0:return C(T);case 1:continue;default:return R(T)}}default:for(;;){r0(T,24);var Px=rs(m(T));if(3>>0)return w(T);switch(Px){case 0:return C(T);case 1:continue;case 2:return B(T);default:return R(T)}}}}function J(T){r0(T,30);var K=EY(m(T));if(3>>0)return w(T);switch(K){case 0:return e(T);case 1:for(;;){r0(T,30);var H0=No(m(T));if(4>>0)return w(T);switch(H0){case 0:return e(T);case 1:continue;case 2:return X(T);case 3:x:for(;;){if(yr(m(T))!==0)return w(T);for(;;){r0(T,30);var sx=No(m(T));if(4>>0)return w(T);switch(sx){case 0:return e(T);case 1:continue;case 2:return X(T);case 3:continue x;default:return u(T)}}}default:return u(T)}}case 2:return X(T);default:return u(T)}}function e0(T){return Rd(m(T))===0&&Nd(m(T))===0&&jY(m(T))===0&&gY(m(T))===0&&NY(m(T))===0&&qR(m(T))===0&&Ql(m(T))===0&&Rd(m(T))===0&&Co(m(T))===0&&IY(m(T))===0&&Hl(m(T))===0?3:w(T)}function i0(T){return r0(T,3),JY(m(T))===0?3:w(T)}function j(T){var K=JT0(m(T));if(30>>0)return w(T);switch(K){case 0:return 64;case 1:return 65;case 2:if(r0(T,1),bc(m(T))!==0)return w(T);for(;;)if(r0(T,1),bc(m(T))!==0)return w(T);case 3:return 0;case 4:return r0(T,0),le(m(T))===0?0:w(T);case 5:return 6;case 6:return 63;case 7:if(r0(T,65),Ql(m(T))!==0)return w(T);var H0=m(T),sx=tt>>0)return w(T);switch(Qx){case 0:return e(T);case 1:continue;case 2:return X(T);case 3:x:for(;;){if(yr(m(T))!==0)return w(T);for(;;){r0(T,30);var j0=No(m(T));if(4>>0)return w(T);switch(j0){case 0:return e(T);case 1:continue;case 2:return X(T);case 3:continue x;default:return u(T)}}}default:return u(T)}}case 16:r0(T,65);var rr=Md(m(T));if(rr!==0)return rr===1?5:w(T);r0(T,2);var zx=wd(m(T));if(2>>0)return w(T);switch(zx){case 0:for(;;){var X0=wd(m(T));if(2>>0)return w(T);switch(X0){case 0:continue;case 1:return i0(T);default:return e0(T)}}case 1:return i0(T);default:return e0(T)}case 17:r0(T,30);var ir=CY(m(T));if(8>>0)return w(T);switch(ir){case 0:return e(T);case 1:return J(T);case 2:for(;;){r0(T,16);var K0=DY(m(T));if(4>>0)return w(T);switch(K0){case 0:return g(T);case 1:return i(T);case 2:continue;case 3:for(;;){r0(T,15);var Sr=_d(m(T));if(3>>0)return w(T);switch(Sr){case 0:return g(T);case 1:return i(T);case 2:continue;default:return I(T)}}default:return I(T)}}case 3:for(;;){r0(T,30);var Dr=_d(m(T));if(3>>0)return w(T);switch(Dr){case 0:return e(T);case 1:return i(T);case 2:continue;default:return t(T)}}case 4:r0(T,29);var ax=PY(m(T));if(ax===0)return e(T);if(ax!==1)return w(T);for(;;){r0(T,10);var br=Dd(m(T));if(3
    >>0)return w(T);switch(br){case 0:return A(T);case 1:continue;case 2:x:for(;;){if(xs(m(T))!==0)return w(T);for(;;){r0(T,10);var t2=Dd(m(T));if(3>>0)return w(T);switch(t2){case 0:return k(T);case 1:continue;case 2:continue x;default:r0(T,8);var k1=L1(m(T));if(k1!==0)return k1===1?k(T):w(T);for(;;)if(r0(T,7),ar(m(T))!==0)return w(T)}}}default:r0(T,8);var Rr=L1(m(T));if(Rr!==0)return Rr===1?A(T):w(T);for(;;)if(r0(T,7),ar(m(T))!==0)return w(T)}}case 5:return X(T);case 6:r0(T,29);var U1=RY(m(T));if(U1===0)return e(T);if(U1!==1)return w(T);for(;;){r0(T,14);var _=Ud(m(T));if(3<_>>>0)return w(T);switch(_){case 0:return h(T);case 1:continue;case 2:x:for(;;){if(J2(m(T))!==0)return w(T);for(;;){r0(T,14);var b=Ud(m(T));if(3>>0)return w(T);switch(b){case 0:return y(T);case 1:continue;case 2:continue x;default:r0(T,12);var x0=L1(m(T));if(x0!==0)return x0===1?y(T):w(T);for(;;)if(r0(T,11),ar(m(T))!==0)return w(T)}}}default:r0(T,12);var S0=L1(m(T));if(S0!==0)return S0===1?h(T):w(T);for(;;)if(r0(T,11),ar(m(T))!==0)return w(T)}}case 7:r0(T,29);var H=_Y(m(T));if(H===0)return e(T);if(H!==1)return w(T);for(;;){r0(T,20);var h0=jd(m(T));if(3>>0)return w(T);switch(h0){case 0:return a(T);case 1:continue;case 2:x:for(;;){if(Ir(m(T))!==0)return w(T);for(;;){r0(T,20);var Y0=jd(m(T));if(3>>0)return w(T);switch(Y0){case 0:return o(T);case 1:continue;case 2:continue x;default:r0(T,18);var U0=L1(m(T));if(U0!==0)return U0===1?o(T):w(T);for(;;)if(r0(T,17),ar(m(T))!==0)return w(T)}}}default:r0(T,18);var tx=L1(m(T));if(tx!==0)return tx===1?a(T):w(T);for(;;)if(r0(T,17),ar(m(T))!==0)return w(T)}}default:return t(T)}case 18:r0(T,30);var Wx=Sd(m(T));if(5>>0)return w(T);switch(Wx){case 0:return e(T);case 1:return J(T);case 2:for(;;){r0(T,30);var Lx=Sd(m(T));if(5>>0)return w(T);switch(Lx){case 0:return e(T);case 1:return J(T);case 2:continue;case 3:return X(T);case 4:return f(T);default:return t(T)}}case 3:return X(T);case 4:return f(T);default:return t(T)}case 19:return 44;case 20:return 42;case 21:return 49;case 22:r0(T,51);var ur=m(T),Vx=61>>0)return Rx(yn0);var z=Y;if(33>z)switch(z){case 0:return[2,Y2(x,r)];case 1:return[2,x];case 2:var F=m2(x,r),t0=Zr(Jr),$=Jv(x,t0,r),f0=$[1];return[1,f0,Jt(f0,F,$[2],t0,1)];case 3:var c0=Kx(r);if(!x[5]){var v0=m2(x,r),s0=Zr(Jr);vr(s0,c0);var o0=Jv(x,s0,r),E0=o0[1];return[1,E0,Jt(E0,v0,o0[2],s0,1)]}var k0=x[4]?WY(x,Yr(x,r),c0):x,M0=ld(1,k0),D0=sd(r);return Nr(Vl(r,D0-1|0,1),Nv)&&N(Vl(r,D0-2|0,1),Nv)?[0,M0,86]:[2,M0];case 4:if(x[4])return[2,ld(0,x)];$a(r),pr(r);var cx=SY(m(r))===0?0:w(r);return cx===0?[0,x,_1]:Rx(dn0);case 5:var g0=m2(x,r),Z0=Zr(Jr),n0=Ga(x,Z0,r),nx=n0[1];return[1,nx,Jt(nx,g0,n0[2],Z0,0)];case 6:var xx=Kx(r),yx=m2(x,r),px=Zr(Jr),Tx=Zr(Jr);vr(Tx,xx);var O0=QY(x,xx,px,Tx,0,r),P0=O0[1],N0=O0[3],J0=[0,P0[1],yx,O0[2]],I0=z1(Tx);return[0,P0,[2,[0,J0,z1(px),I0,N0]]];case 7:return N1(x,r,function(T,K){if(pr(K),ae(m(K))===0&&Ad(m(K))===0&&xs(m(K))===0)for(;;){var H0=kd(m(K));if(2>>0)var z0=w(K);else switch(H0){case 0:continue;case 1:x:for(;;){if(xs(m(K))===0)for(;;){var sx=kd(m(K));if(2>>0)var ux=w(K);else switch(sx){case 0:continue;case 1:continue x;default:var ux=0}break}else var ux=w(K);var z0=ux;break}break;default:var z0=0}break}else var z0=w(K);return z0===0?[0,T,Bt(0,n1(K))]:Rx(pn0)});case 8:return[0,x,Bt(0,n1(r))];case 9:return N1(x,r,function(T,K){if(pr(K),ae(m(K))===0&&Ad(m(K))===0&&xs(m(K))===0)for(;;){r0(K,0);var H0=md(m(K));if(H0!==0){if(H0===1)x:for(;;){if(xs(m(K))===0)for(;;){r0(K,0);var sx=md(m(K));if(sx!==0){if(sx===1)continue x;var ux=w(K);break}}else var ux=w(K);var z0=ux;break}else var z0=w(K);break}}else var z0=w(K);return z0===0?[0,T,Yt(0,n1(K))]:Rx(ln0)});case 10:return[0,x,Yt(0,n1(r))];case 11:return N1(x,r,function(T,K){if(pr(K),ae(m(K))===0&&Pd(m(K))===0&&J2(m(K))===0)for(;;){var H0=Ed(m(K));if(2>>0)var z0=w(K);else switch(H0){case 0:continue;case 1:x:for(;;){if(J2(m(K))===0)for(;;){var sx=Ed(m(K));if(2>>0)var ux=w(K);else switch(sx){case 0:continue;case 1:continue x;default:var ux=0}break}else var ux=w(K);var z0=ux;break}break;default:var z0=0}break}else var z0=w(K);return z0===0?[0,T,Bt(1,n1(K))]:Rx(an0)});case 12:return[0,x,Bt(1,n1(r))];case 13:return N1(x,r,function(T,K){if(pr(K),ae(m(K))===0&&Pd(m(K))===0&&J2(m(K))===0)for(;;){r0(K,0);var H0=Td(m(K));if(H0!==0){if(H0===1)x:for(;;){if(J2(m(K))===0)for(;;){r0(K,0);var sx=Td(m(K));if(sx!==0){if(sx===1)continue x;var ux=w(K);break}}else var ux=w(K);var z0=ux;break}else var z0=w(K);break}}else var z0=w(K);return z0===0?[0,T,Yt(3,n1(K))]:Rx(vn0)});case 14:return[0,x,Yt(3,n1(r))];case 15:return N1(x,r,function(T,K){if(pr(K),ae(m(K))===0&&J2(m(K))===0){for(;;)if(r0(K,0),J2(m(K))!==0){var H0=w(K);break}}else var H0=w(K);return H0===0?[0,T,Yt(1,n1(K))]:Rx(on0)});case 16:return[0,x,Yt(1,n1(r))];case 17:return N1(x,r,function(T,K){if(pr(K),ae(m(K))===0&&yd(m(K))===0&&Ir(m(K))===0)for(;;){var H0=hd(m(K));if(2>>0)var z0=w(K);else switch(H0){case 0:continue;case 1:x:for(;;){if(Ir(m(K))===0)for(;;){var sx=hd(m(K));if(2>>0)var ux=w(K);else switch(sx){case 0:continue;case 1:continue x;default:var ux=0}break}else var ux=w(K);var z0=ux;break}break;default:var z0=0}break}else var z0=w(K);return z0===0?[0,T,Bt(2,n1(K))]:Rx(sn0)});case 18:return[0,x,Bt(2,n1(r))];case 19:return N1(x,r,function(T,K){if(pr(K),ae(m(K))===0&&yd(m(K))===0&&Ir(m(K))===0)for(;;){r0(K,0);var H0=Od(m(K));if(H0!==0){if(H0===1)x:for(;;){if(Ir(m(K))===0)for(;;){r0(K,0);var sx=Od(m(K));if(sx!==0){if(sx===1)continue x;var ux=w(K);break}}else var ux=w(K);var z0=ux;break}else var z0=w(K);break}}else var z0=w(K);return z0===0?[0,T,Yt(4,n1(K))]:Rx(cn0)});case 20:return[0,x,Yt(4,n1(r))];case 21:return N1(x,r,function(T,K){function H0(K0){for(;;){var Sr=zt(m(K0));if(2>>0)return w(K0);switch(Sr){case 0:continue;case 1:x:for(;;){if(yr(m(K0))!==0)return w(K0);for(;;){var Dr=zt(m(K0));if(2>>0)return w(K0);switch(Dr){case 0:continue;case 1:continue x;default:return 0}}}default:return 0}}}function sx(K0){for(;;){var Sr=Ha(m(K0));if(Sr!==0)return Sr===1?0:w(K0)}}function ux(K0){var Sr=zd(m(K0));if(2>>0)return w(K0);switch(Sr){case 0:var Dr=go(m(K0));return Dr===0?sx(K0):Dr===1?H0(K0):w(K0);case 1:return sx(K0);default:return H0(K0)}}function z0(K0){var Sr=Cd(m(K0));if(Sr!==0)return Sr===1?ux(K0):w(K0);for(;;){var Dr=G2(m(K0));if(2>>0)return w(K0);switch(Dr){case 0:continue;case 1:return ux(K0);default:x:for(;;){if(yr(m(K0))!==0)return w(K0);for(;;){var ax=G2(m(K0));if(2>>0)return w(K0);switch(ax){case 0:continue;case 1:return ux(K0);default:continue x}}}}}}pr(K);var Px=Ao(m(K));if(2>>0)var kx=w(K);else switch(Px){case 0:if(yr(m(K))===0)for(;;){var $x=G2(m(K));if(2<$x>>>0)var kx=w(K);else switch($x){case 0:continue;case 1:var kx=ux(K);break;default:x:for(;;){if(yr(m(K))===0)for(;;){var Qx=G2(m(K));if(2>>0)var j0=w(K);else switch(Qx){case 0:continue;case 1:var j0=ux(K);break;default:continue x}break}else var j0=w(K);var kx=j0;break}}break}else var kx=w(K);break;case 1:var rr=dd(m(K)),kx=rr===0?z0(K):rr===1?ux(K):w(K);break;default:for(;;){var zx=Id(m(K));if(2>>0)var kx=w(K);else switch(zx){case 0:var kx=z0(K);break;case 1:continue;default:var kx=ux(K)}break}}if(kx!==0)return Rx(fn0);var X0=n1(K),ir=k2(T,Yr(T,K),47);return[0,ir,Bt(2,X0)]});case 22:var Q=n1(r),G=k2(x,Yr(x,r),47);return[0,G,Bt(2,Q)];case 23:return N1(x,r,function(T,K){function H0(X0){for(;;){r0(X0,0);var ir=Io(m(X0));if(ir!==0){if(ir!==1)return w(X0);x:for(;;){if(yr(m(X0))!==0)return w(X0);for(;;){r0(X0,0);var K0=Io(m(X0));if(K0!==0){if(K0===1)continue x;return w(X0)}}}}}}function sx(X0){for(;;)if(r0(X0,0),yr(m(X0))!==0)return w(X0)}function ux(X0){var ir=zd(m(X0));if(2>>0)return w(X0);switch(ir){case 0:var K0=go(m(X0));return K0===0?sx(X0):K0===1?H0(X0):w(X0);case 1:return sx(X0);default:return H0(X0)}}function z0(X0){var ir=Cd(m(X0));if(ir!==0)return ir===1?ux(X0):w(X0);for(;;){var K0=G2(m(X0));if(2>>0)return w(X0);switch(K0){case 0:continue;case 1:return ux(X0);default:x:for(;;){if(yr(m(X0))!==0)return w(X0);for(;;){var Sr=G2(m(X0));if(2>>0)return w(X0);switch(Sr){case 0:continue;case 1:return ux(X0);default:continue x}}}}}}pr(K);var Px=Ao(m(K));if(2>>0)var kx=w(K);else switch(Px){case 0:if(yr(m(K))===0)for(;;){var $x=G2(m(K));if(2<$x>>>0)var kx=w(K);else switch($x){case 0:continue;case 1:var kx=ux(K);break;default:x:for(;;){if(yr(m(K))===0)for(;;){var Qx=G2(m(K));if(2>>0)var j0=w(K);else switch(Qx){case 0:continue;case 1:var j0=ux(K);break;default:continue x}break}else var j0=w(K);var kx=j0;break}}break}else var kx=w(K);break;case 1:var rr=dd(m(K)),kx=rr===0?z0(K):rr===1?ux(K):w(K);break;default:for(;;){var zx=Id(m(K));if(2>>0)var kx=w(K);else switch(zx){case 0:var kx=z0(K);break;case 1:continue;default:var kx=ux(K)}break}}return kx===0?[0,T,Yt(4,n1(K))]:Rx(in0)});case 24:return[0,x,Yt(4,n1(r))];case 25:return N1(x,r,function(T,K){function H0(zx){for(;;){var X0=zt(m(zx));if(2>>0)return w(zx);switch(X0){case 0:continue;case 1:x:for(;;){if(yr(m(zx))!==0)return w(zx);for(;;){var ir=zt(m(zx));if(2>>0)return w(zx);switch(ir){case 0:continue;case 1:continue x;default:return 0}}}default:return 0}}}function sx(zx){var X0=Ha(m(zx));return X0===0?H0(zx):X0===1?0:w(zx)}pr(K);var ux=Ao(m(K));if(2>>0)var z0=w(K);else switch(ux){case 0:var z0=yr(m(K))===0?H0(K):w(K);break;case 1:for(;;){var Px=qa(m(K));if(Px===0)var z0=sx(K);else{if(Px===1)continue;var z0=w(K)}break}break;default:for(;;){var kx=Po(m(K));if(2>>0)var z0=w(K);else switch(kx){case 0:var z0=sx(K);break;case 1:continue;default:x:for(;;){if(yr(m(K))===0)for(;;){var $x=Po(m(K));if(2<$x>>>0)var Qx=w(K);else switch($x){case 0:var Qx=sx(K);break;case 1:continue;default:continue x}break}else var Qx=w(K);var z0=Qx;break}}break}}if(z0!==0)return Rx(un0);var j0=n1(K),rr=k2(T,Yr(T,K),38);return[0,rr,Bt(2,j0)]});case 26:return N1(x,r,function(T,K){pr(K);var H0=go(m(K));if(H0===0)for(;;){var sx=Ha(m(K));if(sx!==0){var kx=sx===1?0:w(K);break}}else if(H0===1)for(;;){var ux=zt(m(K));if(2>>0)var kx=w(K);else switch(ux){case 0:continue;case 1:x:for(;;){if(yr(m(K))===0)for(;;){var z0=zt(m(K));if(2>>0)var Px=w(K);else switch(z0){case 0:continue;case 1:continue x;default:var Px=0}break}else var Px=w(K);var kx=Px;break}break;default:var kx=0}break}else var kx=w(K);return kx===0?[0,T,Bt(2,n1(K))]:Rx(nn0)});case 27:var V=n1(r),p0=k2(x,Yr(x,r),38);return[0,p0,Bt(2,V)];case 28:return[0,x,Bt(2,n1(r))];case 29:return N1(x,r,function(T,K){function H0(j0){for(;;){r0(j0,0);var rr=Io(m(j0));if(rr!==0){if(rr!==1)return w(j0);x:for(;;){if(yr(m(j0))!==0)return w(j0);for(;;){r0(j0,0);var zx=Io(m(j0));if(zx!==0){if(zx===1)continue x;return w(j0)}}}}}}function sx(j0){return r0(j0,0),yr(m(j0))===0?H0(j0):w(j0)}pr(K);var ux=Ao(m(K));if(2>>0)var z0=w(K);else switch(ux){case 0:var z0=yr(m(K))===0?H0(K):w(K);break;case 1:for(;;){r0(K,0);var Px=qa(m(K));if(Px===0)var z0=sx(K);else{if(Px===1)continue;var z0=w(K)}break}break;default:for(;;){r0(K,0);var kx=Po(m(K));if(2>>0)var z0=w(K);else switch(kx){case 0:var z0=sx(K);break;case 1:continue;default:x:for(;;){if(yr(m(K))===0)for(;;){r0(K,0);var $x=Po(m(K));if(2<$x>>>0)var Qx=w(K);else switch($x){case 0:var Qx=sx(K);break;case 1:continue;default:continue x}break}else var Qx=w(K);var z0=Qx;break}}break}}return z0===0?[0,T,Yt(4,n1(K))]:Rx(tn0)});case 30:return[0,x,Yt(4,n1(r))];case 31:return[0,x,66];default:return[0,x,6]}switch(z){case 33:return[0,x,7];case 34:return[0,x,0];case 35:return[0,x,1];case 36:return[0,x,2];case 37:return[0,x,3];case 38:return[0,x,4];case 39:return[0,x,5];case 40:return[0,x,12];case 41:return[0,x,10];case 42:return[0,x,8];case 43:return[0,x,9];case 44:return[0,x,86];case 45:return[0,x,83];case 46:return[0,x,85];case 47:return[0,x,6];case 48:return[0,x,7];case 49:return[0,x,98];case 50:return[0,x,99];case 51:return[0,x,82];case 52:return[0,x,85];case 53:return[0,x,_1];case 54:return[0,x,86];case 55:return[0,x,88];case 56:return[0,x,87];case 57:return[0,x,89];case 58:return[0,x,91];case 59:return[0,x,11];case 60:return[0,x,82];case 61:return[0,x,tt];case 62:return[0,x,ln];case 63:var d0=r[6];BY(r);var A0=ql(x,d0,r[3]);MR(r,d0);var M=n1(r),L0=$Y(x,M),V0=L0[2],B0=L0[1],vx=Ex(V0,op);if(0<=vx){if(0>=vx)return[0,B0,Ps];var b0=Ex(V0,_x);if(0<=b0){if(0>=b0)return[0,B0,G3];if(!N(V0,Ts))return[0,B0,31];if(!N(V0,ws))return[0,B0,46];if(!N(V0,G5))return[0,B0,Ra];if(!N(V0,g5))return[0,B0,qr];if(!N(V0,gs))return[0,B0,Ef]}else{if(!N(V0,I8))return[0,B0,Rt];if(!N(V0,lv))return[0,B0,29];if(!N(V0,ka))return[0,B0,aa];if(!N(V0,Ta))return[0,B0,U4];if(!N(V0,De))return[0,B0,42];if(!N(V0,La))return[0,B0,xl]}}else{var hx=Ex(V0,Ic);if(0<=hx){if(0>=hx)return[0,B0,41];if(!N(V0,As))return[0,B0,30];if(!N(V0,ID))return[0,B0,Jr];if(!N(V0,F2))return[0,B0,53];if(!N(V0,al))return[0,B0,m1];if(!N(V0,N8))return[0,B0,gi]}else{if(!N(V0,n5))return[0,B0,Vi];if(!N(V0,da))return[0,B0,yl];if(!N(V0,pv))return[0,B0,pa];if(!N(V0,S5))return[0,B0,kn0];if(!N(V0,F3))return[0,B0,mn0];if(!N(V0,ce))return[0,B0,Ns]}}return[0,B0,[4,A0,V0,Zl(M)]];case 64:var W0=x[4]?k2(x,Yr(x,r),95):x;return[0,W0,Er];default:return[0,x,[7,Kx(r)]]}},Gl=function(x){return function(r){for(var e=0,t=r;;){var u=p(x,t,t[2]);switch(u[0]){case 0:var i=u[2],f=u[1],o=XY(f,i),a=e===0?0:gx(e),y=f[6];if(y===0)return[0,[0,f[1],f[2],f[3],f[4],f[5],f[6],o],[0,i,o,0,a]];var h=[0,i,o,gx(y),a];return[0,[0,f[1],f[2],f[3],f[4],f[5],lY,o],h];case 1:var k=u[2],A=u[1],e=[0,k,e],t=[0,A[1],A[2],A[3],A[4],A[5],A[6],k[1]];continue;default:var t=u[1];continue}}}},FT0=Gl(WT0),QT0=Gl(VT0),HT0=Gl(ZT0),qT0=Gl($T0),GT0=Gl(BT0),h2=nY([0,fT0]),bl=function(x,r){return[0,0,0,r,pY(x)]},Jd=function(x){var r=x[4];switch(x[3]){case 0:var Y=l(GT0,r);break;case 1:var Y=l(qT0,r);break;case 2:var Y=l(QT0,r);break;case 3:var e=pe(r,r[2]),t=Zr(Jr),u=Zr(Jr),i=r[2];pr(i);var f=m(i),o=Rt>>0)var a=w(i);else switch(o){case 0:var a=1;break;case 1:var a=4;break;case 2:var a=0;break;case 3:r0(i,0);var a=le(m(i))===0?0:w(i);break;case 4:var a=2;break;default:var a=3}if(4
    >>0)var y=Rx(Tn0);else switch(a){case 0:var h=Kx(i);vr(u,h),vr(t,h);var k=GY(Y2(r,i),t,u,i),A=pe(k,i),g=z1(t),I=z1(u),y=[0,k,[9,[0,k[1],e,A],g,I]];break;case 1:var y=[0,r,Er];break;case 2:var y=[0,r,98];break;case 3:var y=[0,r,0];break;default:$a(i);var C=GY(r,t,u,i),R=pe(C,i),L=z1(t),U=z1(u),y=[0,C,[9,[0,C[1],e,R],L,U]]}var B=y[2],X=y[1],J=XY(X,B),e0=X[6];if(e0===0)var j=[0,X,[0,B,J,0,0]];else var i0=[0,B,J,gx(e0),0],j=[0,[0,X[1],X[2],X[3],X[4],X[5],0,X[7]],i0];var Y=j;break;case 4:var Y=l(HT0,r);break;default:var Y=l(FT0,r)}var z=Y[1],F=Y[2],t0=[0,pY(z),F];return x[4]=z,x[1]?x[2]=[0,t0]:x[1]=[0,t0],t0},bY=function(x){var r=x[1];return r?r[1][2]:Jd(x)[2]},ba=function(x){return Ol(x[24][1])},T1=function(x){return x[28][4]},ex=function(x,r){var e=r[2];x[1][1]=[0,[0,r[1],e],x[1][1]];var t=x[23];return t?p(t[1],x,e):0},x6=function(x,r){return x[31][1]=r,0},Ro=function(x,r){if(x===0)return bY(r[26][1]);if(x!==1)throw q0([0,Tr,rs0],1);var e=r[26][1];e[1]||Jd(e);var t=e[2];return t?t[1][2]:Jd(e)[2]},Qs=function(x,r){return x===r[5]?r:[0,r[1],r[2],r[3],r[4],x,r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},xB=function(x,r){return x===r[10]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],x,r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},bR=function(x,r){return x===r[18]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],x,r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},xO=function(x,r){return x===r[19]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],x,r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},rB=function(x,r){return x===r[20]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],x,r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},Yv=function(x,r){return x===r[22]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],x,r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},rO=function(x,r){return x===r[14]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],x,r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},r6=function(x,r){return x===r[8]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],x,r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},e6=function(x,r){return x===r[12]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],x,r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},Bv=function(x,r){return x===r[15]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],x,r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},eO=function(x,r){return x===r[16]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],x,r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},eB=function(x,r){return x===r[6]?r:[0,r[1],r[2],r[3],r[4],r[5],x,r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},tB=function(x,r){return x===r[7]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],x,r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},tO=function(x,r){return x===r[13]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],x,r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},Yd=function(x,r){return[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],[0,x],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},nO=function(x){function r(e){return ex(x,e)}return function(e){return S2(r,e)}},x3=function(x){var r=x[4][1];return r?[0,r[1][2]]:0},nB=function(x){var r=x[4][1];return r?[0,r[1][1]]:0},uB=function(x){return[0,x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14],x[15],x[16],x[17],x[18],x[19],x[20],x[21],x[22],0,x[24],x[25],x[26],x[27],x[28],x[29],x[30],x[31]]},iB=function(x,r,e,t){return[0,x[1],x[2],h2[1],x[4],x[5],0,0,0,0,0,1,x[12],x[13],x[14],x[15],x[16],x[17],e,r,x[20],t,x[22],x[23],x[24],x[25],x[26],x[27],x[28],x[29],x[30],x[31]]},r3=function(x){return N(x,dv)&&N(x,F2)&&N(x,ya)&&N(x,Zp)&&N(x,kl)&&N(x,W3)&&N(x,j3)&&N(x,De)&&N(x,U2)?0:1},Xv=function(x){return N(x,_N)&&N(x,"eval")?0:1},Bd=function(x){var r=Ex(x,Hp),e=0;if(0<=r){if(0>>0){if(fe>=t+1>>>0)return 1}else if(t===6)return 0}return n6(x,r)},e3=function(x){return sB(0,x)},Oo=function(x,r){var e=hr(x,r),t=0;if(typeof e=="number")switch(e){case 28:case 42:case 52:case 53:case 54:case 55:case 56:case 57:case 58:var u=1;break;default:t=1}else if(e[0]===4)var u=r3(e[2]);else t=1;if(t)var u=0;if(u)return 1;var i=0;if(typeof e=="number")switch(e){case 14:case 48:case 60:case 61:case 62:case 63:case 64:case 65:case 126:i=1;break}else e[0]===4&&(i=1);return i?1:0},Xd=function(x,r){return fB(r,hr(x,r))},oB=function(x,r){var e=Oo(x,r);return e||Xd(x,r)},es=function(x){return Oo(0,x)},Lo=function(x){var r=W(x)===15?1:0;if(r)var e=r;else{var t=W(x)===64?1:0;if(t){var u=hr(1,x)===15?1:0;if(u)var i=t6(1,x)[2][1],e=Nx(x)[3][1]===i?1:0;else var e=u}else var e=t}return e},u6=function(x){var r=W(x);if(typeof r=="number")switch(r){case 13:case 40:return 1}else if(r[0]===4&&!N(r[3],$h)&&hr(1,x)===40)return 1;return 0},fO=function(x){var r=x[28][1];if(r){var e=W(x);if(typeof e!="number"&&e[0]===4&&!N(e[3],vo)&&Oo(1,x))return 1;var t=0}else var t=r;return t},cO=function(x){var r=W(x);return typeof r!="number"&&r[0]===4&&!N(r[3],$1)?1:0},Bx=function(x,r){return ex(x,[0,Nx(x),r])},vB=function(x,r){var e=$R(0,r);return x?[25,e,x[1]]:[23,e]},S1=function(x,r){var e=iO(r);return l(nO(r),e),Bx(r,vB(x,W(r)))},Wd=function(x){function r(e){return ex(x,[0,e[1],fe])}return function(e){return S2(r,e)}},aB=function(x,r){var e=x[6]?G0(Ar(Gc0),r,r,r):bc0;return S1([0,e],x)},Xt=function(x,r){var e=x[5];return e&&Bx(x,r)},vt=function(x,r){var e=x[5],t=r[2],u=r[1];return e&&ex(x,[0,u,t])},Wv=function(x,r){return ex(x,[0,r,[14,x[5]]])},$0=function(x){var r=x[27][1];if(r){var e=r[1],t=ba(x),u=W(x);l(e,[0,Nx(x),u,t])}var i=x[26][1],f=i[1],o=f?f[1][1]:Jd(i)[1];x[25][1]=o;var a=iO(x);l(nO(x),a);var y=x[2][1],h=Qc(Ro(0,x)[4],y);x[2][1]=h;var k=[0,Ro(0,x)];x[4][1]=k;var A=x[26][1];return A[2]?(A[1]=A[2],A[2]=0,0):(bY(A),A[1]=0,0)},v1=function(x,r){var e=p(XR,W(x),r);return e&&$0(x),e},J1=function(x,r){x[24][1]=[0,r,x[24][1]];var e=ba(x),t=bl(x[25][1],e);return x[26][1]=t,0},W1=function(x){var r=x[24][1],e=r?r[2]:Rx(qc0);x[24][1]=e;var t=ba(x),u=bl(x[25][1],t);return x[26][1]=u,0},mx=function(x){var r=Nx(x);if(W(x)===9&&n6(1,x)){var e=w0(x),t=Ro(1,x)[4],u=Fx(e,l(Ul(function(f){return f[1][2][1]<=r[3][1]?1:0}),t));return x6(x,[0,r[3][1]+1|0,0]),u}var i=w0(x);return x6(x,r[3]),i},Uo=function(x){var r=x[4][1];if(!r)return 0;var e=r[1][2],t=w0(x),u=l(Ul(function(i){return i[1][2][1]<=e[3][1]?1:0}),t);return x6(x,[0,e[3][1]+1|0,0]),u},Hs=function(x,r){return S1([0,$R(Fc0,r)],x)},u0=function(x,r){return 1-p(XR,W(x),r)&&Hs(x,r),$0(x)},lB=function(x,r){var e=v1(x,r);return 1-e&&Hs(x,r),e},Vd=function(x,r){return lB(x,r),0},ts=function(x,r){var e=W(x),t=0;return typeof e!="number"&&e[0]===4&&Nr(e[3],r)&&(t=1),t||S1([0,l(Ar($c0),r)],x),$0(x)},ns=[Qr,fs0,zs(0)],pB=function(x,r,e){if(!e)return 0;var t=e[1],u=t[1],i=t[2];if(r[27][1]=[0,u],!x)return x;for(var f=i[2];;){if(!f)return 0;var o=f[2];l(u,f[1]);var f=o}},sO=function(x,r){var e=x[27][1];if(e){var t=e[1],u=bK(0),i=[0,function(B){return fR(B,u)}];x[27][1]=i;var f=[0,[0,t,u]]}else var f=0;var o=x[31][1],a=x[25][1],y=x[24][1],h=x[4][1],k=x[2][1],A=x[1][1];try{var g=l(r,x);pB(1,x,f);var I=[0,g];return I}catch(U){var C=R1(U);if(C!==ns)throw q0(C,0);pB(0,x,f),x[1][1]=A,x[2][1]=k,x[4][1]=h,x[24][1]=y,x[25][1]=a,x[31][1]=o;var R=ba(x),L=bl(x[25][1],R);return x[26][1]=L,0}},Zd=function(x,r,e){var t=sO(x,e);return t?t[1]:r},i6=function(x,r){var e=gx(r);if(!e)return r;var t=e[1],u=e[2],i=l(x,t);return t===i?r:gx([0,i,u])},yB=id(as0,function(x){var r=CR(x,ss0),e=IR(x,vs0),t=e[24],u=e[28],i=e[41],f=e[90],o=e[LT],a=e[yA],y=e[yv],h=e[Lj],k=e[uM],A=e[vj],g=e[6],I=e[7],C=e[10],R=e[17],L=e[23],U=e[29],B=e[39],X=e[42],J=e[52],e0=e[60],i0=e[Ue],j=e[wv],Y=e[Ps],z=e[aa],F=e[pa],t0=e[ph],$=e[h_],f0=e[jM],c0=e[yj],v0=e[KS],s0=e[jN],o0=e[OT],E0=e[e5],k0=e[kk],M0=e[ey],D0=e[Xw],cx=e[Qg],g0=e[mT],Z0=e[$5],n0=e[V4],nx=e[Pv],xx=e[VM],yx=e[JM],px=e[Mj],Tx=e[Hx],O0=e[wM],P0=e[ez],N0=e[tk],J0=e[cj],I0=e[SD],Q=OR(x,0,0,YK,KR,1)[1];function G(x0,S0,H){var h0=H[2],Y0=h0[2],U0=h0[1],tx=H[1];if(Y0){var Wx=Y0[1],Lx=function(Vx){return[0,tx,[0,U0,[0,Vx]]]};return Q0(l(x0[1][1+a],x0),Wx,H,Lx)}function ur(Vx){return[0,tx,[0,Vx,Y0]]}return Q0(p(x0[1][1+g],x0,S0),U0,H,ur)}function V(x0,S0,H){var h0=H[2],Y0=H[1],U0=Y0[3],tx=Y0[2],Wx=Y0[1];if(U0)var Lx=i6(l(x0[1][1+u],x0),U0),ur=tx;else var Lx=0,ur=p(x0[1][1+u],x0,tx);var Vx=p(x0[1][1+i],x0,h0);return tx===ur&&U0===Lx&&h0===Vx?H:[0,[0,Wx,ur,Lx],Vx]}function p0(x0,S0){var H=S0[2],h0=H[2],Y0=H[1],U0=S0[1];function tx(Wx){return[0,U0,[0,Y0,Wx]]}return Q0(l(x0[1][1+i],x0),h0,S0,tx)}function d0(x0,S0,H){var h0=H[3];function Y0(U0){return[0,H[1],H[2],U0]}return Q0(l(x0[1][1+i],x0),h0,H,Y0)}function A0(x0,S0){var H=S0[2];function h0(Y0){return[0,S0[1],Y0]}return Q0(l(x0[1][1+i],x0),H,S0,h0)}function M(x0,S0,H){var h0=H[3];function Y0(U0){return[0,H[1],H[2],U0]}return Q0(l(x0[1][1+i],x0),h0,H,Y0)}function L0(x0,S0,H){var h0=H[2],Y0=H[1],U0=i6(l(x0[1][1+a],x0),Y0),tx=p(x0[1][1+i],x0,h0);return Y0===U0&&h0===tx?H:[0,U0,tx]}function V0(x0,S0){var H=S0[2],h0=H[2],Y0=H[1],U0=S0[1];function tx(Wx){return[0,U0,[0,Y0,Wx]]}return Q0(l(x0[1][1+i],x0),h0,S0,tx)}function B0(x0,S0,H){var h0=H[4];function Y0(U0){return[0,H[1],H[2],H[3],U0]}return Q0(l(x0[1][1+i],x0),h0,H,Y0)}function vx(x0,S0,H){var h0=H[2];function Y0(U0){return[0,H[1],U0]}return Q0(l(x0[1][1+i],x0),h0,H,Y0)}function b0(x0,S0,H){var h0=H[3],Y0=H[2],U0=p(x0[1][1+Y],x0,Y0),tx=p(x0[1][1+i],x0,h0);return Y0===U0&&h0===tx?H:[0,H[1],U0,tx]}function hx(x0,S0,H){var h0=H[4],Y0=H[3],U0=H[2],tx=H[1],Wx=p(x0[1][1+i],x0,h0);if(Y0){var Lx=Yx(l(x0[1][1+A],x0),Y0);return Y0===Lx&&h0===Wx?H:[0,H[1],H[2],Lx,Wx]}if(U0){var ur=Yx(l(x0[1][1+k],x0),U0);return U0===ur&&h0===Wx?H:[0,H[1],ur,H[3],Wx]}var Vx=p(x0[1][1+a],x0,tx);return tx===Vx&&h0===Wx?H:[0,Vx,H[2],H[3],Wx]}function W0(x0,S0,H){var h0=H[4],Y0=H[3],U0=p(x0[1][1+a],x0,Y0),tx=p(x0[1][1+i],x0,h0);return Y0===U0&&h0===tx?H:[0,H[1],H[2],U0,tx]}function T(x0,S0,H){var h0=H[4];function Y0(U0){return[0,H[1],H[2],H[3],U0]}return Q0(l(x0[1][1+i],x0),h0,H,Y0)}function K(x0,S0,H){var h0=H[4];function Y0(U0){return[0,H[1],H[2],H[3],U0]}return Q0(l(x0[1][1+i],x0),h0,H,Y0)}function H0(x0,S0,H){var h0=H[2],Y0=H[1],U0=Y0[3],tx=Y0[2],Wx=Y0[1];if(U0)var Lx=i6(l(x0[1][1+u],x0),U0),ur=tx;else var Lx=0,ur=p(x0[1][1+u],x0,tx);var Vx=p(x0[1][1+i],x0,h0);return tx===ur&&U0===Lx&&h0===Vx?H:[0,[0,Wx,ur,Lx],Vx]}function sx(x0,S0,H){var h0=H[3],Y0=H[1],U0=r2(l(x0[1][1+f],x0),Y0),tx=p(x0[1][1+i],x0,h0);return Y0===U0&&h0===tx?H:[0,U0,H[2],tx]}function ux(x0,S0,H){var h0=H[2];function Y0(U0){return[0,H[1],U0]}return Q0(l(x0[1][1+i],x0),h0,H,Y0)}function z0(x0,S0){if(S0[0]===0){var H=S0[1],h0=function(ur){return[0,ur]};return Q0(l(x0[1][1+o],x0),H,S0,h0)}var Y0=S0[1],U0=Y0[2],tx=U0[2],Wx=Y0[1],Lx=p(x0[1][1+o],x0,tx);return tx===Lx?S0:[1,[0,Wx,[0,U0[1],Lx]]]}function Px(x0,S0,H){var h0=H[4],Y0=H[3],U0=p(x0[1][1+o0],x0,Y0),tx=p(x0[1][1+i],x0,h0);return Y0===U0&&h0===tx?H:[0,H[1],H[2],U0,tx]}function kx(x0,S0){var H=S0[2],h0=S0[1],Y0=H[4];function U0(tx){return[0,h0,[0,H[1],H[2],H[3],tx]]}return Q0(l(x0[1][1+i],x0),Y0,[0,h0,H],U0)}function $x(x0,S0,H){var h0=H[9],Y0=H[3],U0=p(x0[1][1+M0],x0,Y0),tx=p(x0[1][1+i],x0,h0);return Y0===U0&&h0===tx?H:[0,H[1],H[2],U0,H[4],H[5],H[6],H[7],H[8],tx,H[10]]}function Qx(x0,S0,H){var h0=H[4],Y0=H[3],U0=p(x0[1][1+a],x0,Y0),tx=p(x0[1][1+i],x0,h0);return Y0===U0&&h0===tx?H:[0,H[1],H[2],U0,tx]}function j0(x0,S0){var H=S0[2],h0=H[2],Y0=H[1],U0=S0[1];function tx(Wx){return[0,U0,[0,Y0,Wx]]}return Q0(l(x0[1][1+i],x0),h0,S0,tx)}function rr(x0,S0){var H=S0[2],h0=S0[1],Y0=H[3];function U0(tx){return[0,h0,[0,H[1],H[2],tx]]}return Q0(l(x0[1][1+i],x0),Y0,[0,h0,H],U0)}function zx(x0,S0,H){var h0=H[6],Y0=H[5],U0=p(x0[1][1+nx],x0,Y0),tx=p(x0[1][1+i],x0,h0);return Y0===U0&&h0===tx?H:[0,H[1],H[2],H[3],H[4],U0,tx,H[7]]}function X0(x0,S0){var H=S0[2],h0=H[2],Y0=H[1],U0=S0[1];if(h0===0){var tx=function(ur){return[0,U0,[0,ur,h0]]};return Q0(l(x0[1][1+o],x0),Y0,S0,tx)}function Wx(ur){return[0,U0,[0,Y0,ur]]}var Lx=l(x0[1][1+t],x0);return Q0(function(ur){return Yx(Lx,ur)},h0,S0,Wx)}function ir(x0,S0){var H=S0[2],h0=H[2],Y0=H[1],U0=S0[1];function tx(Lx){return[0,U0,[0,Lx,h0]]}var Wx=l(x0[1][1+y],x0);return Q0(function(Lx){return i6(Wx,Lx)},Y0,S0,tx)}function K0(x0,S0,H){var h0=H[2],Y0=H[1];if(h0===0){var U0=function(Lx){return[0,Lx,H[2],H[3]]};return Q0(l(x0[1][1+a],x0),Y0,H,U0)}function tx(Lx){return[0,H[1],Lx,H[3]]}var Wx=l(x0[1][1+t],x0);return Q0(function(Lx){return Yx(Wx,Lx)},h0,H,tx)}function Sr(x0,S0){var H=S0[2],h0=H[2],Y0=H[1],U0=S0[1];function tx(Wx){return[0,U0,[0,Y0,Wx]]}return Q0(l(x0[1][1+i],x0),h0,S0,tx)}function Dr(x0,S0,H){var h0=H[7],Y0=H[2],U0=p(x0[1][1+h],x0,Y0),tx=p(x0[1][1+i],x0,h0);return Y0===U0&&h0===tx?H:[0,H[1],U0,H[3],H[4],H[5],H[6],tx]}function ax(x0,S0){var H=S0[2],h0=H[2],Y0=H[1],U0=S0[1];function tx(Wx){return[0,U0,[0,Y0,Wx]]}return Q0(l(x0[1][1+i],x0),h0,S0,tx)}function br(x0,S0){var H=S0[2],h0=H[2],Y0=H[1],U0=S0[1];function tx(Wx){return[0,U0,[0,Y0,Wx]]}return Q0(l(x0[1][1+i],x0),h0,S0,tx)}function t2(x0,S0,H){var h0=H[4],Y0=H[3],U0=p(x0[1][1+A],x0,Y0),tx=p(x0[1][1+i],x0,h0);return Y0===U0&&h0===tx?H:[0,H[1],H[2],U0,tx]}function k1(x0,S0,H){var h0=H[2];function Y0(U0){return[0,H[1],U0]}return Q0(l(x0[1][1+i],x0),h0,H,Y0)}function Rr(x0,S0,H){var h0=H[4],Y0=H[3],U0=p(x0[1][1+a],x0,Y0),tx=p(x0[1][1+i],x0,h0);return Y0===U0&&h0===tx?H:[0,H[1],H[2],U0,tx]}function U1(x0,S0,H){var h0=H[4],Y0=H[3],U0=p(x0[1][1+a],x0,Y0),tx=p(x0[1][1+i],x0,h0);return Y0===U0&&h0===tx?H:[0,H[1],H[2],U0,tx]}function _(x0,S0){var H=S0[2];function h0(Y0){return[0,S0[1],Y0]}return Q0(l(x0[1][1+i],x0),H,S0,h0)}function b(x0,S0,H){var h0=H[2];function Y0(U0){return[0,H[1],U0]}return Q0(l(x0[1][1+i],x0),h0,H,Y0)}return UR(x,[0,X,function(x0,S0){var H=S0[2],h0=l(Ul(function(U0){return Fs(U0[1][2],x0[1+r])<0?1:0}),H),Y0=Fc(h0);return Fc(H)===Y0?S0:[0,S0[1],h0,S0[3]]},I0,b,J0,_,N0,U1,P0,Rr,O0,k1,Tx,t2,A,br,k,ax,px,Dr,h,Sr,yx,K0,xx,ir,y,X0,n0,zx,Z0,rr,g0,j0,cx,Qx,D0,$x,k0,kx,E0,Px,s0,z0,v0,ux,c0,sx,f0,H0,$,K,t0,T,F,W0,j,hx,z,b0,i0,vx,f,B0,e0,V0,J,L0,B,M,U,A0,L,d0,R,p0,C,V,I,G]),function(x0,S0,H){var h0=fd(S0,x);return h0[1+r]=H,l(Q,h0),LR(S0,h0,x)}}),$d=function(x){var r=x3(x);if(r)var e=r[1],t=cB(x)?(x6(x,e[3]),[0,p(yB[1],0,e[3])]):0,u=t;else var u=0;return[0,0,function(i,f){return u?p(f,u[1],i):i}]},f6=function(x){var r=x3(x);if(r){var e=r[1];if(cB(x)){x6(x,e[3]);var t=Uo(x),u=[0,p(yB[1],0,[0,e[3][1]+1|0,0])],i=t}else var u=0,i=Uo(x)}else var u=0,i=0;return[0,i,function(f,o){return u?p(o,u[1],f):f}]},I1=function(x){return b2(x)?f6(x):$d(x)},Tn=function(x,r){var e=I1(x)[2];return p(e,r,function(t,u){return p(qx(t,Na,2),t,u)})},xe=function(x,r){if(!r)return 0;var e=r[1],t=I1(x)[2];return[0,p(t,e,function(u,i){return p(qx(u,VP,5),u,i)})]},oO=function(x,r){var e=I1(x)[2];return p(e,r,function(t,u){return p(qx(t,lM,7),t,u)})},t3=function(x,r){var e=I1(x)[2];return p(e,r,function(t,u){return p(qx(t,-1045824777,8),t,u)})},c6=function(x,r){var e=I1(x)[2];return p(e,r,function(t,u){return p(qx(t,-455772979,9),t,u)})},dB=function(x,r){if(!r)return 0;var e=r[1],t=I1(x)[2];return[0,p(t,e,function(u,i){return p(qx(u,WD,12),u,i)})]},Sn=function(x,r){var e=I1(x)[2];return p(e,r,function(t,u){return p(qx(t,qU,13),t,u)})},mB=function(x,r){var e=I1(x)[2];return p(e,r,function(t,u){var i=l(qx(t,jj,15),t);return i6(function(f){return r2(i,f)},u)})},kB=function(x,r){var e=I1(x)[2];return p(e,r,function(t,u){return p(qx(t,-21476009,16),t,u)})},bT0=function(x,r){var e=x[2],t=x[1];function u(br){return g2(br,r)}switch(e[0]){case 0:var i=e[1],f=YR(i[2],r),ax=[0,[0,i[1],f]];break;case 1:var o=e[1],a=u(o[2]),ax=[1,[0,o[1],a]];break;case 2:var y=e[1],h=u(y[7]),ax=[2,[0,y[1],y[2],y[3],y[4],y[5],y[6],h]];break;case 3:var k=e[1],A=k[7],g=u(k[6]),ax=[3,[0,k[1],k[2],k[3],k[4],k[5],g,A]];break;case 4:var I=e[1],C=u(I[2]),ax=[4,[0,I[1],C]];break;case 5:var ax=[5,[0,u(e[1][1])]];break;case 6:var R=e[1],L=u(R[7]),ax=[6,[0,R[1],R[2],R[3],R[4],R[5],R[6],L]];break;case 7:var U=e[1],B=u(U[5]),ax=[7,[0,U[1],U[2],U[3],U[4],B]];break;case 8:var X=e[1],J=u(X[3]),ax=[8,[0,X[1],X[2],J]];break;case 9:var e0=e[1],i0=u(e0[5]),ax=[9,[0,e0[1],e0[2],e0[3],e0[4],i0]];break;case 10:var j=e[1],Y=u(j[4]),ax=[10,[0,j[1],j[2],j[3],Y]];break;case 11:var z=e[1],F=u(z[5]),ax=[11,[0,z[1],z[2],z[3],z[4],F]];break;case 12:var t0=e[1],$=u(t0[4]),ax=[12,[0,t0[1],t0[2],t0[3],$]];break;case 13:var f0=e[1],c0=u(f0[2]),ax=[13,[0,f0[1],c0]];break;case 14:var v0=e[1],s0=u(v0[4]),ax=[14,[0,v0[1],v0[2],v0[3],s0]];break;case 15:var o0=e[1],E0=u(o0[5]),ax=[15,[0,o0[1],o0[2],o0[3],o0[4],E0]];break;case 16:var k0=e[1],M0=u(k0[4]),ax=[16,[0,k0[1],k0[2],k0[3],M0]];break;case 17:var D0=e[1],cx=u(D0[3]),ax=[17,[0,D0[1],D0[2],cx]];break;case 18:var ax=[18,[0,u(e[1][1])]];break;case 19:var g0=e[1],Z0=u(g0[3]),ax=[19,[0,g0[1],g0[2],Z0]];break;case 20:var n0=e[1],nx=u(n0[3]),ax=[20,[0,n0[1],n0[2],nx]];break;case 21:var xx=e[1],yx=u(xx[5]),ax=[21,[0,xx[1],xx[2],xx[3],xx[4],yx]];break;case 22:var px=e[1],Tx=u(px[3]),ax=[22,[0,px[1],px[2],Tx]];break;case 23:var O0=e[1],P0=u(O0[5]),ax=[23,[0,O0[1],O0[2],O0[3],O0[4],P0]];break;case 24:var N0=e[1],J0=u(N0[5]),ax=[24,[0,N0[1],N0[2],N0[3],N0[4],J0]];break;case 25:var I0=e[1],Q=u(I0[5]),ax=[25,[0,I0[1],I0[2],I0[3],I0[4],Q]];break;case 26:var G=e[1],V=G[10],p0=u(G[9]),ax=[26,[0,G[1],G[2],G[3],G[4],G[5],G[6],G[7],G[8],p0,V]];break;case 27:var d0=e[1],A0=u(d0[4]),ax=[27,[0,d0[1],d0[2],d0[3],A0]];break;case 28:var M=e[1],L0=u(M[5]),ax=[28,[0,M[1],M[2],M[3],M[4],L0]];break;case 29:var V0=e[1],B0=u(V0[5]),ax=[29,[0,V0[1],V0[2],V0[3],V0[4],B0]];break;case 30:var vx=e[1],b0=u(vx[3]),ax=[30,[0,vx[1],vx[2],b0]];break;case 31:var hx=e[1],W0=hx[3],T=u(hx[2]),ax=[31,[0,hx[1],T,W0]];break;case 32:var K=e[1],H0=K[4],sx=u(K[3]),ax=[32,[0,K[1],K[2],sx,H0]];break;case 33:var ux=e[1],z0=u(ux[2]),ax=[33,[0,ux[1],z0]];break;case 34:var Px=e[1],kx=u(Px[4]),ax=[34,[0,Px[1],Px[2],Px[3],kx]];break;case 35:var $x=e[1],Qx=u($x[4]),ax=[35,[0,$x[1],$x[2],$x[3],Qx]];break;case 36:var j0=e[1],rr=u(j0[5]),ax=[36,[0,j0[1],j0[2],j0[3],j0[4],rr]];break;case 37:var zx=e[1],X0=u(zx[3]),ax=[37,[0,zx[1],zx[2],X0]];break;case 38:var ir=e[1],K0=u(ir[3]),ax=[38,[0,ir[1],ir[2],K0]];break;default:var Sr=e[1],Dr=u(Sr[3]),ax=[39,[0,Sr[1],Sr[2],Dr]]}return[0,t,ax]};id(ls0,function(x){var r=CR(x,cs0),e=RR(os0),t=e.length-1,u=JK.length-1,i=za(t+u|0,0),f=t-1|0,o=0;if(f>=0)for(var a=o;;){var y=Xl(x,X1(e,a)[1+a]);X1(i,a)[1+a]=y;var h=a+1|0;if(f!==a){var a=h;continue}break}var k=u-1|0,A=0;if(k>=0)for(var g=A;;){var I=g+t|0,C=CR(x,X1(JK,g)[1+g]);X1(i,I)[1+I]=C;var R=g+1|0;if(k!==g){var g=R;continue}break}var L=i[4],U=i[5],B=i[B3],X=i[yv],J=i[292],e0=i[293],i0=i[44],j=i[H8],Y=i[Kz],z=OR(x,0,0,YK,KR,1)[1];function F(s0,o0,E0){return p(s0[1][1+B],s0,E0[2]),E0}function t0(s0,o0){return p(s0[1][1+X],s0,o0),o0}function $(s0,o0){var E0=o0[1],k0=s0[1+e0];if(k0){var M0=Fs(k0[1][1][2],E0[2])<0?1:0,D0=M0&&(s0[1+e0]=[0,o0],0);return D0}var cx=0<=Fs(E0[2],s0[1+r][3])?1:0,g0=cx&&(s0[1+e0]=[0,o0],0);return g0}function f0(s0,o0){var E0=o0[1],k0=s0[1+J];if(k0){var M0=Fs(E0[2],k0[1][1][2])<0?1:0,D0=M0&&(s0[1+J]=[0,o0],0);return D0}var cx=Fs(E0[2],s0[1+r][2])<0?1:0,g0=cx&&(s0[1+J]=[0,o0],0);return g0}function c0(s0,o0){return o0?p(s0[1][1+X],s0,o0[1]):0}function v0(s0,o0){var E0=o0[2],k0=o0[1];return S2(l(s0[1][1+U],s0),k0),S2(l(s0[1][1+L],s0),E0)}return UR(x,[0,j,function(s0){return[0,s0[1+J],s0[1+e0]]},X,v0,B,c0,U,f0,L,$,i0,t0,Y,F]),function(s0,o0,E0){var k0=fd(o0,x);return k0[1+r]=E0,l(z,k0),k0[1+J]=0,k0[1+e0]=0,LR(o0,k0,x)}});var hB=function(x){var r=W(x),e=0;if(typeof r=="number"){var t=r;if(49<=t)switch(t){case 49:var u=Fs0;break;case 50:var u=Qs0;break;case 51:var u=Hs0;break;case 52:var u=qs0;break;case 53:var u=Gs0;break;case 54:var u=bs0;break;case 55:var u=xo0;break;case 56:var u=ro0;break;case 57:var u=eo0;break;case 58:var u=to0;break;case 59:var u=no0;break;case 60:var u=uo0;break;case 61:var u=io0;break;case 62:var u=fo0;break;case 63:var u=co0;break;case 64:var u=so0;break;case 65:var u=oo0;break;case 114:var u=vo0;break;case 115:var u=ao0;break;case 116:var u=lo0;break;case 117:var u=po0;break;case 118:var u=yo0;break;case 119:var u=do0;break;case 120:var u=mo0;break;case 121:var u=ko0;break;case 122:var u=ho0;break;case 123:var u=_o0;break;case 124:var u=wo0;break;case 125:var u=To0;break;case 126:var u=So0;break;case 128:var u=Eo0;break;case 129:var u=Ao0;break;default:e=1}else switch(t){case 15:var u=ps0;break;case 16:var u=ys0;break;case 17:var u=ds0;break;case 18:var u=ms0;break;case 19:var u=ks0;break;case 20:var u=hs0;break;case 21:var u=_s0;break;case 22:var u=ws0;break;case 23:var u=Ts0;break;case 24:var u=Ss0;break;case 25:var u=Es0;break;case 26:var u=As0;break;case 27:var u=gs0;break;case 28:var u=Ns0;break;case 29:var u=Is0;break;case 30:var u=Ps0;break;case 31:var u=Cs0;break;case 32:var u=Rs0;break;case 33:var u=Os0;break;case 34:var u=Ls0;break;case 35:var u=Us0;break;case 36:var u=Ms0;break;case 37:var u=Ds0;break;case 38:var u=js0;break;case 39:var u=zs0;break;case 40:var u=Ks0;break;case 41:var u=Js0;break;case 42:var u=Ys0;break;case 43:var u=Bs0;break;case 44:var u=Xs0;break;case 45:var u=Ws0;break;case 46:var u=Vs0;break;case 47:var u=Zs0;break;case 48:var u=$s0;break;default:e=1}}else switch(r[0]){case 4:var u=r[2];break;case 11:var i=r[1]?go0:No0,u=i;break;default:e=1}if(e){S1(Io0,x);var u=Po0}return $0(x),u},_2=function(x){var r=Nx(x),e=w0(x),t=hB(x);return[0,r,[0,t,m0([0,e],[0,mx(x)],0)]]},_B=function(x){var r=Nx(x),e=w0(x);u0(x,14);var t=Nx(x),u=hB(x),i=m0([0,e],[0,mx(x)],0),f=i1(r,t),o=t[2],a=r[3],y=a[1]===o[1]?1:0,h=y&&(a[2]===o[2]?1:0);return 1-h&&ex(x,[0,f,Vi]),[0,f,[0,u,i]]},Vv=function(x){var r=x[2],e=r[3]===0?1:0,t=r[2];if(!e)return e;for(var u=t;;){if(!u)return 1;var i=u[1][2],f=0,o=u[2];if(i[1][2][0]===2&&!i[2]){var a=1;f=1}if(!f)var a=0;if(!a)return a;var u=o}},s6=function(x){for(var r=x;;){var e=r[2];if(e[0]!==30)return 0;var t=e[1][2];if(t[2][0]===26)return 1;var r=t}},Fd=function(x,r,e){var t=e[2][1],u=e[1];if(!N(t,_v)){var i=r[19];return i&&ex(r,[0,u,6])}if(N(t,ya)){if(!N(t,U2))return r[18]?ex(r,[0,u,99]):vt(r,[0,u,84])}else if(r[14])return ex(r,[0,u,[23,pd(t)]]);if(r3(t))return vt(r,[0,u,84]);if(Bd(t))return ex(r,[0,u,99]);if(x){var f=x[1];if(Xv(t))return vt(r,[0,u,f])}return 0},a0=function(x,r,e){var t=x?x[1]:Nx(e),u=l(r,e),i=x3(e),f=i?i1(t,i[1]):t;return[0,f,u]},Qd=function(x,r,e){var t=a0(x,r,e),u=t[2];return[0,[0,t[1],u[1]],u[2]]},Hd=function(x){J1(x,0);var r=W(x);W1(x);var e=hr(1,x),t=0;if(typeof r=="number")r===21&&(t=1);else if(r[0]===4)if(N(r[3],da))t=1;else{var u=0;typeof e=="number"?e===21&&(u=1):e[0]===4&&(u=1),t=u?2:1}var i=0;switch(t){case 1:typeof e=="number"?m1===e&&(i=1):e[0]===4&&!N(e[3],al)&&(i=1);break;case 0:break;default:i=1}return i?1:0},wB=function(x){switch(x){case 3:return 2;case 4:return 1;case 5:return 1;case 6:return 1;case 7:return 1;default:return 1}},vO=function(x,r,e){if(e){var t=e[1],u=0;if(t===8232||H1===t)u=1;else var i=t===10?6:t===13?5:b3<=t?3:aP<=t?2:m1<=t?1:0;if(u)var i=7;var f=i}else var f=4;return[0,f,x]},xS0=[Qr,fv0,zs(0)],TB=function(x,r,e,t){try{var u=X1(x,r)[1+r];return u}catch(f){var i=R1(f);throw i[1]===GC?q0([0,xS0,e,G0(Ar(uv0),t,r,x.length-1)],1):q0(i,0)}},qd=function(x,r){if(r[1]===0&&r[2]===0)return 0;var e=TB(x,r[1]-1|0,r,tv0);return TB(e,r[2],r,nv0)},SB=function(x){var r=[0,Ov0,h2[1],0,0];function e(o){var a=W(o);if(typeof a=="number"){var y=0;if(8<=a?10>a&&(y=1):a===1&&(y=1),y)return 1}return 0}function t(o){var a=Nx(o),y=w0(o),h=W(o);if(typeof h=="number")switch(h){case 30:case 31:$0(o);var k=mx(o);return e(o)?[1,a,[0,h===31?1:0,m0([0,y],[0,k],0)]]:[0,a]}else switch(h[0]){case 0:var A=h[2],g=G0(x[24],o,h[1],A),I=mx(o);return e(o)?[2,a,[0,g,A,m0([0,y],[0,I],0)]]:[0,a];case 1:var C=h[2],R=G0(x[26],o,h[1],C),L=mx(o);return e(o)?[4,a,[0,R,C,m0([0,y],[0,L],0)]]:[0,a];case 2:var U=h[1],B=U[1],X=U[3],J=U[2];U[4]&&Xt(o,80),$0(o);var e0=mx(o);return e(o)?[3,B,[0,J,X,m0([0,y],[0,e0],0)]]:[0,B]}return $0(o),[0,a]}function u(o){var a=_2(o),y=W(o),h=0;if(typeof y=="number")if(y===82){u0(o,82);var k=t(o)}else if(y===86){Bx(o,[8,a[2][1]]),u0(o,86);var k=t(o)}else h=1;else h=1;if(h)var k=0;return[0,a,k]}var i=0;function f(o,a,y,h,k,A,g){var I=Fc(k),C=Fc(A);function R(U){return[2,[0,[0,A],y,h,g]]}function L(U){return[2,[0,[1,k],y,h,g]]}return I===0?R(0):C===0?L(0):I>>0){if(fe>=i0+1>>>0){var j=J[3],Y=J[4],z=gx(J[1][5]),F=gx(J[1][4]),t0=gx(J[1][3]),$=gx(J[1][2]),f0=gx(J[1][1]),c0=Fx(Y,w0(C));u0(C,1);var v0=W(C),s0=0;if(typeof v0=="number"){var o0=0;if(v0===1||Er===v0?o0=1:s0=1,o0)var E0=mx(C)}else s0=1;if(s0)var E0=b2(C)?Uo(C):0;var k0=K1([0,X],[0,E0],c0,0);if(B){switch(B[1]){case 0:var M0=[0,[0,f0,1,j,k0]];break;case 1:var M0=[1,[0,$,1,j,k0]];break;case 2:var M0=f(C,A,1,j,t0,z,k0);break;case 3:var M0=[3,[0,z,j,k0]];break;default:var M0=[4,[0,F,1,j,k0]]}var D0=M0}else{var cx=Fc(f0),g0=Fc($),Z0=Fc(t0),n0=Fc(z),nx=function(b){return[2,[0,gv0,0,j,k0]]},xx=0;if(cx===0&&g0===0){var yx=0;if(Z0===0&&n0===0)var px=nx(0);else yx=1;if(yx)var px=f(C,A,0,j,t0,z,k0)}else xx=1;if(xx){var Tx=0;if(g0===0&&Z0===0&&n0<=cx){S2(function(x0){return ex(C,[0,x0[1],[3,A,x0[2][1][2][1]]])},z);var px=[0,[0,f0,0,j,k0]];Tx=1}if(!Tx){var O0=0;if(cx===0&&Z0===0&&n0<=g0){S2(function(x0){return ex(C,[0,x0[1],[11,A,x0[2][1][2][1]]])},z);var px=[1,[0,$,0,j,k0]];O0=1}if(!O0){ex(C,[0,g,[5,A]]);var px=nx(0)}}}var D0=px}return D0}}else if(i0===10){var P0=Nx(C),N0=w0(C);$0(C);var J0=W(C),I0=0;if(typeof J0=="number"){var Q=J0-2|0,G=0;if(P1>>0)fe>=Q+1>>>0&&(G=1);else if(Q===7){u0(C,9);var V=W(C),p0=0;if(typeof V=="number"){var d0=0;if((V===1||Er===V)&&(d0=1),d0){var A0=1;p0=1}}if(!p0)var A0=0;ex(C,[0,P0,[6,A0]]),G=1}G&&(I0=1)}I0||ex(C,[0,P0,Av0]);var J=[0,J[1],J[2],1,N0];continue}}var M=J[2],L0=J[1],V0=a0(i,u,C),B0=V0[2],vx=B0[2],b0=B0[1],hx=V0[1],W0=b0[2][1],T=b0[1];if(Nr(W0,wx))var K=J;else{var H0=C1(W0,0),sx=97<=H0?1:0,ux=sx&&(H0<=qr?1:0);ux&&ex(C,[0,T,[10,A,W0]]),p(h2[3],W0,M)&&ex(C,[0,T,[4,A,W0]]);var z0=J[4],Px=J[3],kx=p(h2[4],W0,M),$x=[0,J[1],kx,Px,z0],Qx=function(_){return function(b,x0){return B&&B[1]!==b?ex(C,[0,x0,[9,A,B,_]]):0}}(W0);if(typeof vx=="number"){var j0=0;if(B)switch(B[1]){case 0:ex(C,[0,hx,[3,A,W0]]);var K=$x;break;case 1:ex(C,[0,hx,[11,A,W0]]);var K=$x;break;case 4:ex(C,[0,hx,[2,A,W0]]);var K=$x;break;default:j0=1}else j0=1;if(j0)var K=[0,[0,L0[1],L0[2],L0[3],L0[4],[0,[0,hx,[0,b0]],L0[5]]],kx,Px,z0]}else switch(vx[0]){case 0:ex(C,[0,vx[1],[9,A,B,W0]]);var K=$x;break;case 1:var rr=vx[1],zx=vx[2];Qx(0,rr);var K=[0,[0,[0,[0,hx,[0,b0,[0,rr,zx]]],L0[1]],L0[2],L0[3],L0[4],L0[5]],kx,Px,z0];break;case 2:var X0=vx[1],ir=vx[2];Qx(1,X0);var K=[0,[0,L0[1],[0,[0,hx,[0,b0,[0,X0,ir]]],L0[2]],L0[3],L0[4],L0[5]],kx,Px,z0];break;case 3:var K0=vx[1],Sr=vx[2];Qx(2,K0);var K=[0,[0,L0[1],L0[2],[0,[0,hx,[0,b0,[0,K0,Sr]]],L0[3]],L0[4],L0[5]],kx,Px,z0];break;default:var Dr=vx[1],ax=vx[2];Qx(4,Dr);var K=[0,[0,L0[1],L0[2],L0[3],[0,[0,hx,[0,b0,[0,Dr,ax]]],L0[4]],L0[5]],kx,Px,z0]}}var br=W(C),t2=0;if(typeof br=="number"){var k1=br-2|0,Rr=0;P1>>0?fe>=k1+1>>>0&&(Rr=1):k1===6&&(Bx(C,22),u0(C,8),Rr=1),Rr&&(t2=1)}t2||u0(C,9);var J=K}},a);return[0,k,I,m0([0,h],0,0)]}]},Gd=function(x,r,e){if(typeof e=="number")return[0,x,r];if(e[0]===0){var t=e[1],u=Ex(x,t),i=e[2];return u===0?i===r?e:[0,t,r]:0<=u?[1,2,x,r,e,0]:[1,2,x,r,0,e]}var f=e[5],o=e[4],a=e[3],y=e[2],h=Ex(x,y),k=e[1];if(h===0)return a===r?e:[1,k,x,r,o,f];if(0<=h){var A=Gd(x,r,f);return f===A?e:HJ(o,y,a,A)}var g=Gd(x,r,o);return o===g?e:HJ(g,y,a,f)},n3=function(x){return[0,wn(x)]},aO=nY([0,function(x,r){var e=r[2],t=x[2],u=oY(x[1],r[1]);return u===0?p(vY,t,e):u}]),o6=function(x,r,e){var t=e[2][1],u=e[1];return Nr(t,wx)?r:p(h2[3],t,r)?(ex(x,[0,u,[0,t]]),r):p(h2[4],t,r)},lO=function(x){return function(r){var e=r[2];switch(e[0]){case 0:var t=e[1][1];return b1(function(i,f){var o=f[0]===0?f[1][2][2]:f[1][2][1];return l(lO(i),o)},x,t);case 1:var u=e[1][1];return b1(function(i,f){if(f[0]===2)return i;var o=f[1][2][1];return l(lO(i),o)},x,u);case 2:return[0,e[1][1],x];default:return Rx(Ul0)}}},lx=LJ(Dl0,Ml0[1]),bd=function(x,r,e){var t=x?x[1]:0,u=r?r[1]:0,i=Nx(e),f=W(e);if(typeof f=="number")switch(f){case 103:var o=w0(e);return $0(e),[0,[0,i,[0,0,m0([0,o],0,0)]]];case 104:var a=w0(e);return $0(e),[0,[0,i,[0,1,m0([0,a],0,0)]]];case 126:if(t){var y=w0(e);return $0(e),[0,[0,i,[0,2,m0([0,y],0,0)]]]}break}else if(f[0]===4){var h=f[3];if(N(h,mo)){if(!N(h,w_)&&u&&Xd(1,e)){var k=w0(e);return $0(e),[0,[0,i,[0,4,m0([0,k],0,0)]]]}}else if(u&&Xd(1,e)){var A=w0(e);$0(e);var g=W(e),I=0;if(typeof g!="number"&&g[0]===4&&!N(g[3],w_)){var C=Nx(e);$0(e);var R=i1(i,C),L=5;I=1}if(!I)var R=i,L=3;return[0,[0,R,[0,L,m0([0,A],0,0)]]]}}return 0},EB=function(x,r,e,t,u){r===1&&Xt(u,80);var i=w0(u);$0(u);var f=mx(u);if(x)var o=m0([0,Fx(x[1],i)],[0,f],0),a=o,y=Zx(ev0,t),h=-e;else var a=m0([0,i],[0,f],0),y=t,h=e;return[29,[0,h,y,a]]},AB=function(x,r,e,t){var u=w0(t);$0(t);var i=mx(t);if(x)var f=m0([0,Fx(x[1],u)],[0,i],0),o=Zx(rv0,e),a=f,y=o,h=Fy(XC,r);else var a=m0([0,u],[0,i],0),y=e,h=r;return[30,[0,h,y,a]]},Gr=function x(r){return x.fun(r)},u3=function x(r){return x.fun(r)},gB=function x(r){return x.fun(r)},NB=function x(r){return x.fun(r)},pO=function x(r,e,t){return x.fun(r,e,t)},xm=function x(r){return x.fun(r)},yO=function x(r,e,t,u){return x.fun(r,e,t,u)},dO=function x(r){return x.fun(r)},mO=function x(r,e,t,u){return x.fun(r,e,t,u)},kO=function x(r){return x.fun(r)},hO=function x(r,e){return x.fun(r,e)},_O=function x(r){return x.fun(r)},IB=function x(r){return x.fun(r)},rm=function x(r,e,t,u){return x.fun(r,e,t,u)},em=function x(r,e,t,u,i){return x.fun(r,e,t,u,i)},PB=function x(r){return x.fun(r)},CB=function x(r,e){return x.fun(r,e)},wO=function x(r){return x.fun(r)},RB=function x(r){return x.fun(r)},OB=function x(r){return x.fun(r)},LB=function x(r){return x.fun(r)},UB=function x(r){return x.fun(r)},TO=function x(r,e){return x.fun(r,e)},MB=function x(r){return x.fun(r)},DB=function x(r){return x.fun(r)},v6=function x(r,e){return x.fun(r,e)},jB=function x(r){return x.fun(r)},Zv=function x(r){return x.fun(r)},tm=function x(r){return x.fun(r)},zB=function x(r,e){return x.fun(r,e)},SO=function x(r){return x.fun(r)},KB=function x(r){return x.fun(r)},JB=function x(r){return x.fun(r)},YB=function x(r){return x.fun(r)},BB=function x(r){return x.fun(r)},nm=function x(r,e,t,u){return x.fun(r,e,t,u)},EO=function x(r){return x.fun(r)},um=function x(r){return x.fun(r)},AO=function x(r,e){return x.fun(r,e)},im=function x(r,e,t,u){return x.fun(r,e,t,u)},gO=function x(r){return x.fun(r)},Mo=function x(r){return x.fun(r)},XB=function x(r){return x.fun(r)},$v=function x(r){return x.fun(r)},NO=function x(r){return x.fun(r)},fm=function x(r){return x.fun(r)},IO=function x(r,e){return x.fun(r,e)},WB=function x(r,e){return x.fun(r,e)},VB=function x(r){return x.fun(r)},ZB=function x(r){return x.fun(r)},PO=function x(r){return x.fun(r)},$B=function x(r,e,t){return x.fun(r,e,t)};C0(Gr,function(x){return l(NB,x)}),C0(u3,function(x){return 1-T1(x)&&Bx(x,_1),a0(0,function(r){return u0(r,86),l(Gr,r)},x)}),C0(gB,function(x){1-T1(x)&&Bx(x,_1);var r=Nx(x);return u0(x,86),Hd(x)?[2,p(AO,x,r)]:[1,a0([0,r],Gr,x)]}),C0(NB,function(x){var r=Nx(x),e=eO(0,x);return G0(pO,e,r,l(xm,e))}),C0(pO,function(x,r,e){var t=W(x);return typeof t=="number"&&t===41?a0([0,r],function(u){u0(u,41);var i=l(xm,eO(1,u));Vd(u,85);var f=l(Gr,u);Vd(u,86);var o=l(Gr,u);return[17,[0,e,i,f,o,m0(0,[0,mx(u)],0)]]},x):e}),C0(xm,function(x){var r=Nx(x);if(W(x)===89){var e=w0(x);$0(x);var t=e}else var t=0;return oe(yO,x,[0,t],r,l(dO,x))}),C0(yO,function(x,r,e,t){var u=r?r[1]:0;if(W(x)!==89)return t;var i=[0,t,0];return a0([0,e],function(f){for(var o=i;;){if(v1(f,89)){var o=[0,l(dO,f),o];continue}var a=gx(o);if(a){var y=a[2];if(y){var h=y[2],k=y[1],A=a[1];return[22,[0,[0,A,k,h],m0([0,u],0,0)]]}}throw q0([0,Tr,xv0],1)}},x)}),C0(dO,function(x){var r=Nx(x);if(W(x)===91){var e=w0(x);$0(x);var t=e}else var t=0;return oe(mO,x,[0,t],r,l(kO,x))}),C0(mO,function(x,r,e,t){var u=r?r[1]:0;if(W(x)!==91)return t;var i=[0,t,0];return a0([0,e],function(f){for(var o=i;;){if(v1(f,91)){var o=[0,l(kO,f),o];continue}var a=gx(o);if(a){var y=a[2];if(y){var h=y[2],k=y[1],A=a[1];return[23,[0,[0,A,k,h],m0([0,u],0,0)]]}}throw q0([0,Tr,bo0],1)}},x)}),C0(kO,function(x){return p(hO,x,l(_O,x))}),C0(hO,function(x,r){var e=W(x);if(typeof e=="number"&&e===11&&!x[15]){var t=p(v6,x,r);return oe(nm,x,t[1],0,[0,t[1],[0,0,[0,t,0],0,0]])}return r}),C0(_O,function(x){var r=W(x);return typeof r=="number"&&r===85?a0(0,function(e){var t=w0(e);u0(e,85);var u=m0([0,t],0,0);return[11,[0,l(_O,e),u]]},x):l(IB,x)}),C0(IB,function(x){var r=Nx(x);return oe(rm,0,x,r,l(OB,x))}),C0(rm,function(x,r,e,t){var u=x?x[1]:0;if(b2(r))return t;var i=W(r);if(typeof i=="number"){if(i===6)return $0(r),Je(em,u,0,r,e,t);if(i===10){var f=hr(1,r);return typeof f=="number"&&f===6?(Bx(r,qo0),u0(r,10),u0(r,6),Je(em,u,0,r,e,t)):(Bx(r,Go0),t)}if(i===83)return $0(r),W(r)!==6&&Bx(r,45),u0(r,6),Je(em,1,1,r,e,t)}return t}),C0(em,function(x,r,e,t,u){return oe(rm,[0,x],e,t,a0([0,t],function(i){if(!r&&v1(i,7))return[16,[0,u,m0(0,[0,mx(i)],0)]];var f=l(Gr,i);u0(i,7);var o=[0,u,f,m0(0,[0,mx(i)],0)];return x?[21,[0,o,r]]:[20,o]},e))}),C0(PB,function(x){return p(CB,x,p(lx[13],0,x))}),C0(CB,function(x,r){for(var e=[0,r[1],[0,r]];;){var t=e[2],u=e[1];if(W(x)===10&&oB(1,x)){var i=a0([0,u],function(a){return function(y){return u0(y,10),[0,a,_2(y)]}}(t),x),f=i[1],e=[0,f,[1,[0,f,i[2]]]];continue}return t}}),C0(wO,function(x){if(J1(x,0),W(x)===4){$0(x);var r=l(wO,x);u0(x,5);var e=r}else var e=es(x)?[0,l(PB,x)]:(Bx(x,50),0);return W1(x),e}),C0(RB,function(x){return a0(0,function(r){var e=w0(r);u0(r,46);var t=l(wO,r);if(!t)return Ho0;var u=t[1];return[24,[0,u,m0([0,e],0,0)]]},x)}),C0(OB,function(x){var r=Nx(x),e=W(x),t=0;if(typeof e=="number")switch(e){case 4:return l(YB,x);case 6:return l(DB,x);case 46:return l(RB,x);case 53:return a0(0,function(J){var e0=w0(J);$0(J);var i0=l(gO,J),j=i0[2],Y=i0[1];return[15,[0,j,Y,m0([0,e0],0,0)]]},x);case 98:return l(BB,x);case 104:return a0(0,LB,x);case 106:var u=w0(x);return $0(x),[0,r,[10,m0([0,u],[0,mx(x)],0)]];case 125:return a0(0,function(J){var e0=w0(J);$0(J);var i0=mx(J),j=l(Gr,J);return[25,[0,j,m0([0,e0],[0,i0],0)]]},x);case 126:return a0(0,function(J){var e0=w0(J);$0(J);var i0=mx(J),j=l(Gr,J);return[26,[0,j,m0([0,e0],[0,i0],0)]]},x);case 127:return a0(0,function(J){var e0=w0(J);$0(J);var i0=mx(J),j=a0(0,function(Y){var z=l(Mo,Y);function F(t0){if(1-v1(t0,41))throw q0(ns,1);var $=l(xm,t0);if(!t0[16]&&W(t0)===85)throw q0(ns,1);return[1,[0,$[1],$]]}return[0,z,Zd(Y,[0,Nx(Y)],F),1,0,0]},J);return[18,[0,j,m0([0,e0],[0,i0],0)]]},x);case 0:case 2:var i=oe(im,0,1,1,x);return[0,i[1],[14,i[2]]];case 41:case 42:t=1;break;case 30:case 31:var f=w0(x);return $0(x),[0,r,[31,[0,e===31?1:0,m0([0,f],[0,mx(x)],0)]]]}else switch(e[0]){case 2:var o=e[1],a=o[3],y=o[2],h=o[1];o[4]&&Xt(x,80);var k=w0(x);return $0(x),[0,h,[28,[0,y,a,m0([0,k],[0,mx(x)],0)]]];case 4:if(N(e[3],vo))t=1;else{if(x[28][1])return a0(0,function(J){var e0=w0(J);ts(J,Zo0);var i0=xe(J,l($v,J)),j=l(SO,J);if(cO(J))var F=oO(J,l(PO,J)),t0=j;else var Y=[0,wn(J)],z=I1(J)[2],F=Y,t0=p(z,j,function($,f0){return p(qx($,420776873,11),$,f0)});return[13,[0,i0,t0,F,m0([0,e0],0,0)]]},x);t=1}break;case 7:if(!N(e[1],D3))return Bx(x,88),[0,r,$o0];break;case 12:var A=e[3],g=e[2],I=e[1],C=0;return a0(0,function(J){return EB(C,I,g,A,J)},x);case 13:var R=e[3],L=e[2],U=0;return a0(0,function(J){return AB(U,L,R,J)},x)}if(t){var B=l(fm,x);return[0,B[1],[19,B[2]]]}var X=l(MB,x);return X?[0,r,X[1]]:(S1(Fo0,x),[0,r,Qo0])}),C0(LB,function(x){var r=w0(x);$0(x);var e=W(x);if(typeof e!="number")switch(e[0]){case 12:return EB([0,r],e[1],e[2],e[3],x);case 13:return AB([0,r],e[2],e[3],x)}return S1(Wo0,x),Vo0}),C0(UB,function(x){var r=0;if(typeof x=="number")switch(x){case 29:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 124:r=1;break}else x[0]===11&&(r=1);return r?1:0}),C0(TO,function(x,r){var e=w0(x),t=a0(0,$0,x)[1],u=m0([0,e],[0,mx(x)],0);return[0,[19,[0,[0,hn(0,[0,t,r])],0,u]]]}),C0(MB,function(x){var r=w0(x),e=W(x);if(typeof e=="number")switch(e){case 29:return $0(x),[0,[4,m0([0,r],[0,mx(x)],0)]];case 114:return $0(x),[0,[0,m0([0,r],[0,mx(x)],0)]];case 115:return $0(x),[0,[1,m0([0,r],[0,mx(x)],0)]];case 116:return $0(x),[0,[2,m0([0,r],[0,mx(x)],0)]];case 117:return $0(x),[0,[5,m0([0,r],[0,mx(x)],0)]];case 118:return $0(x),[0,[6,m0([0,r],[0,mx(x)],0)]];case 119:return $0(x),[0,[7,m0([0,r],[0,mx(x)],0)]];case 120:return $0(x),[0,[3,m0([0,r],[0,mx(x)],0)]];case 121:return $0(x),[0,[9,m0([0,r],[0,mx(x)],0)]];case 122:return $0(x),[0,[32,m0([0,r],[0,mx(x)],0)]];case 123:return $0(x),[0,[33,m0([0,r],[0,mx(x)],0)]];case 124:return $0(x),[0,[34,m0([0,r],[0,mx(x)],0)]];case 128:return p(TO,x,Bo0);case 129:return p(TO,x,Xo0)}else if(e[0]===11){var t=e[1];$0(x);var u=mx(x),i=t?-883944824:737456202;return[0,[8,i,m0([0,r],[0,u],0)]]}return 0}),C0(DB,function(x){return a0(0,function(r){var e=w0(r);u0(r,6);for(var t=Bv(0,r),u=0;;){var i=W(t);if(typeof i=="number"){var f=0;if(i!==7&&Er!==i&&(f=1),!f){var o=gx(u);return u0(r,7),[27,[0,o,m0([0,e],[0,mx(r)],0)]]}}var a=[0,a0(0,function(h){if(!v1(h,12)){var k=W(h),A=0;if(typeof k=="number"&&(tt===k||ln===k&&Oo(1,h))){var g=bd(0,0,h);A=1}if(!A)var g=0;var I=es(h),C=hr(1,h);if(I&&typeof C=="number"&&1>=C+Ev>>>0){var R=_2(h),L=v1(h,85);return u0(h,86),[1,[0,R,l(Gr,h),g,L]]}var U=g?1:0;return U&&Bx(h,49),[0,l(Gr,h)]}var B=es(h),X=hr(1,h),J=0;if(B&&typeof X=="number"&&1>=X+Ev>>>0){var e0=_2(h);W(h)===85&&(Bx(h,48),$0(h)),u0(h,86);var i0=[0,e0];J=1}if(!J)var i0=0;return[2,[0,i0,l(Gr,h)]]},t),u];W(t)!==7&&u0(t,9);var u=a}},x)}),C0(v6,function(x,r){return[0,r[1],[0,0,r,0]]}),C0(jB,function(x){return a0(0,function(r){J1(r,0);var e=p(lx[13],0,r);W1(r),1-T1(r)&&Bx(r,_1);var t=v1(r,85);return u0(r,86),[0,[0,e],l(Gr,r),t]},x)});var FB=function(x){var r=hr(1,x);return typeof r=="number"&&1>=r+Ev>>>0?l(jB,x):p(v6,x,l(Gr,x))};C0(Zv,function(x){var r=0;return function(e){for(var t=r,u=e;;){var i=W(x);if(typeof i=="number")switch(i){case 5:case 12:case 113:var f=i===12?[0,a0(0,function(g){var I=w0(g);u0(g,12);var C=m0([0,I],0,0);return[0,FB(g),C]},x)]:0;return[0,t,gx(u),f,0]}else if(i[0]===4&&!N(i[3],fv)){var o=0;if(hr(1,x)!==86&&hr(1,x)!==85&&(o=1),!o){var a=t!==0?1:0,y=a||(u!==0?1:0);y&&Bx(x,93);var h=a0(0,function(I){var C=w0(I);$0(I),W(I)===85&&Bx(I,92);var R=m0([0,C],0,0);return[0,l(u3,I),R]},x);W(x)!==5&&u0(x,9);var t=[0,h];continue}}var k=[0,FB(x),u];W(x)!==5&&u0(x,9);var u=k}}}),C0(tm,function(x){return a0(0,function(r){var e=w0(r);u0(r,4);var t=p(Zv,r,0),u=w0(r);u0(r,5);var i=K1([0,e],[0,mx(r)],u,0);return[0,t[1],t[2],t[3],i]},x)}),C0(zB,function(x,r){for(var e=r;;){var t=W(x);if(typeof t=="number"){var u=t-5|0,i=0;if(7>>0?fn===u&&(i=1):5>>0&&(i=1),i){var f=t===12?[0,a0(0,function(y){var h=w0(y);u0(y,12);var k=hr(1,y),A=0;if(typeof k=="number")if(k===85){J1(y,0);var g=p(lx[13],0,y);W1(y),u0(y,85),u0(y,86);var C=1,R=[0,g]}else if(k===86){J1(y,0);var I=p(lx[13],0,y);W1(y),u0(y,86);var C=0,R=[0,I]}else A=1;else A=1;if(A)var C=0,R=0;var L=l(Gr,y);return[0,R,L,C,m0([0,h],0,0)]},x)]:0;return[0,gx(e),f,0]}}var o=[0,a0(0,function(y){var h=W(y),k=0;if(typeof h!="number"&&h[0]===2){var A=h[1],g=A[4],I=A[3],C=A[2],R=A[1];g&&Xt(y,80),u0(y,[2,[0,R,C,I,g]]);var L=[1,[0,R,[0,C,I,m0(0,[0,mx(y)],0)]]];k=1}if(!k){J1(y,0);var U=p(lx[13],0,y);W1(y);var L=[0,U]}var B=v1(y,85);return[0,L,l(u3,y),B]},x),e];W(x)!==5&&u0(x,9);var e=o}}),C0(SO,function(x){return a0(0,function(r){var e=w0(r);u0(r,4);var t=p(zB,r,0),u=w0(r);u0(r,5);var i=K1([0,e],[0,mx(r)],u,0);return[0,t[1],t[2],i]},x)}),C0(KB,function(x){var r=w0(x);u0(x,4);var e=Bv(0,x),t=W(e),u=0;if(typeof t=="number")switch(t){case 5:var i=Yo0;break;case 42:u=2;break;case 12:case 113:var i=[0,p(Zv,e,0)];break;default:u=1}else t[0]===4?u=2:u=1;switch(u){case 1:if(l(UB,t)){var f=hr(1,e),o=0;if(typeof f=="number"&&1>=f+Ev>>>0){var a=[0,p(Zv,e,0)];o=1}if(!o)var a=[1,l(Gr,e)];var i=a}else var i=[1,l(Gr,e)];break;case 2:var i=l(JB,e);break}if(i[0]===0)var y=i;else{var h=i[1];if(x[15])var k=i;else{var A=W(x),g=0;if(typeof A=="number")if(A===5)var I=hr(1,x)===11?[0,p(Zv,x,[0,p(v6,x,h),0])]:[1,h];else if(A===9){u0(x,9);var I=[0,p(Zv,x,[0,p(v6,x,h),0])]}else g=1;else g=1;if(g)var I=i;var k=I}var y=k}var C=w0(x);u0(x,5);var R=mx(x);if(y[0]===0)var L=y[1],U=K1([0,r],[0,R],C,0),B=[0,[0,L[1],L[2],L[3],U]];else var B=[1,G0($B,y[1],r,R)];return B}),C0(JB,function(x){var r=hr(1,x);if(typeof r=="number"&&1>=r+Ev>>>0)return[0,p(Zv,x,0)];var e=Nx(x),t=p(WB,x,l(Mo,x)),u=l(G0(rm,0,x,e),t),i=l(l(hO,x),u),f=l(p(l(mO,x),0,e),i),o=l(p(l(yO,x),0,e),f);return[1,l(p(pO,eO(0,x),e),o)]}),C0(YB,function(x){var r=Nx(x),e=a0(0,KB,x),t=e[2],u=e[1];return t[0]===0?oe(nm,x,r,0,[0,u,t[1]]):t[1]}),C0(BB,function(x){var r=Nx(x),e=xe(x,l($v,x));return oe(nm,x,r,e,l(tm,x))}),C0(nm,function(x,r,e,t){return a0([0,r],function(u){return u0(u,11),[12,[0,e,t,l(EO,u),0]]},x)}),C0(EO,function(x){return Hd(x)?[1,l(um,x)]:[0,l(Gr,x)]}),C0(um,function(x){return a0(0,function(r){var e=w0(r),t=v1(r,yl);J1(r,0);var u=_2(r);W1(r);var i=W(r),f=0;if(typeof i=="number"&&m1===i){var o=w0(r);u0(r,m1);var a=Fx(o,w0(r)),y=a,h=[0,l(Gr,r)];f=1}if(!f)var y=0,h=0;return[0,t,[0,u,h],K1([0,e],0,y,0)]},x)}),C0(AO,function(x,r){return a0([0,r],um,x)});var cm=function(x,r,e){return a0([0,r],function(t){var u=l(tm,t);return u0(t,86),[0,e,u,l(EO,t),0]},x)},QB=function(x,r,e,t,u){var i=Sn(x,t),f=cm(x,r,xe(x,l($v,x))),o=[0,f[1],[12,f[2]]],a=[0,i,[0,o],0,e!==0?1:0,0,1,0,m0([0,u],0,0)];return[0,[0,o[1],a]]},sm=function(x,r,e,t,u,i,f){var o=f[2],a=f[1];return 1-T1(x)&&Bx(x,_1),[0,a0([0,r],function(y){var h=v1(y,85),k=lB(y,86)?l(Gr,y):[0,a,Jo0];return[0,o,[0,k],h,t!==0?1:0,u!==0?1:0,0,e,m0([0,i],0,0)]},x)]},a6=function(x,r){var e=W(r);if(typeof e=="number"&&10>e)switch(e){case 1:if(!x)return 0;break;case 3:if(x)return 0;break;case 8:case 9:return $0(r)}return Hs(r,9)},l6=function(x,r){return r?ex(x,[0,r[1][1],ut]):0},p6=function(x,r){return r?ex(x,[0,r[1],98]):0},rS0=function(x,r,e,t,u,i,f,o,a){for(var y=e,h=t,k=u,A=i,g=f,I=o;;){var C=W(x);if(typeof C=="number")switch(C){case 6:p6(x,g);var R=hr(1,x);if(typeof R=="number"&&R===6)return l6(x,k),[4,a0([0,a],function(O0){var P0=Fx(I,w0(O0));u0(O0,6),u0(O0,6);var N0=_2(O0);u0(O0,7),u0(O0,7);var J0=W(O0),I0=0;if(typeof J0=="number"){var Q=0;if((J0===4||J0===98)&&(Q=1),Q){var G=cm(O0,a,xe(O0,l($v,O0))),V=0,p0=[0,G[1],[12,G[2]]],d0=1,A0=0;I0=1}}if(!I0){var M=v1(O0,85),L0=mx(O0);u0(O0,86);var V=L0,p0=l(Gr,O0),d0=0,A0=M}return[0,N0,p0,A0,A!==0?1:0,d0,m0([0,P0],[0,V],0)]},x)];var L=Fx(I,w0(x));u0(x,6);var U=hr(1,x);return typeof U!="number"&&U[0]===4&&!N(U[3],mo)&&A===0?[5,a0([0,a],function(O0){var P0=l(Mo,O0),N0=P0[1];$0(O0);var J0=l(Gr,O0);u0(O0,7);var I0=W(O0),Q=0,G=[0,P0,[0,N0],0,0,0];if(typeof I0=="number"){var V=I0+DN|0,p0=0;if(1>>0)if(V===-18){$0(O0);var d0=2}else p0=1;else var d0=V?($0(O0),u0(O0,85),1):($0(O0),u0(O0,85),0);if(!p0){var A0=d0;Q=1}}if(!Q)var A0=3;u0(O0,86);var M=l(Gr,O0);return[0,[0,N0,G],M,J0,k,A0,m0([0,L],[0,mx(O0)],0)]},x)]:[2,a0([0,a],function(O0){if(hr(1,O0)===86){var P0=_2(O0);u0(O0,86);var N0=[0,P0]}else var N0=0;var J0=l(Gr,O0);u0(O0,7);var I0=mx(O0);u0(O0,86);var Q=l(Gr,O0);return[0,N0,J0,Q,A!==0?1:0,k,m0([0,L],[0,I0],0)]},x)];case 42:if(y){if(k!==0)throw q0([0,Tr,Lo0],1);var B=[0,Nx(x)],X=Fx(I,w0(x));$0(x);var y=0,h=0,A=B,I=X;continue}break;case 126:if(k===0){var J=0;if((Oo(1,x)||hr(1,x)===6)&&(J=1),J){var y=0,h=0,k=bd(Uo0,0,x);continue}}break;case 103:case 104:if(k===0){var y=0,h=0,k=bd(0,0,x);continue}break;case 4:case 98:return p6(x,g),l6(x,k),[3,a0([0,a],function(O0){var P0=Nx(O0),N0=cm(O0,P0,xe(O0,l($v,O0)));return[0,N0,A!==0?1:0,m0([0,I],0,0)]},x)]}else if(C[0]===4&&!N(C[3],OP)&&h){if(k!==0)throw q0([0,Tr,Mo0],1);var e0=[0,Nx(x)],i0=Fx(I,w0(x));$0(x);var y=0,h=0,g=e0,I=i0;continue}if(A){var j=A[1];if(g)return Rx(Do0);if(typeof C=="number"&&1>=C+Ev>>>0)return sm(x,a,k,0,g,0,[0,j,[3,hn(m0([0,I],0,0),[0,j,jo0])]])}else if(g){var Y=g[1];if(typeof C=="number"&&1>=C+Ev>>>0)return sm(x,a,k,A,0,0,[0,Y,[3,hn(m0([0,I],0,0),[0,Y,zo0])]])}var z=function(O0){J1(O0,0);var P0=p(lx[20],0,O0);return W1(O0),P0},F=w0(x),t0=z(x),$=t0[1],f0=t0[2];if(f0[0]===3){var c0=f0[1][2][1],v0=0;if(N(c0,Tv)&&N(c0,Oa)&&(v0=1),!v0){var s0=W(x);if(typeof s0=="number"){var o0=s0-5|0;if(92>>0){if(94>=o0+1>>>0)return p6(x,g),l6(x,k),QB(x,a,A,f0,I)}else if(1>=o0+FM>>>0)return sm(x,a,k,A,g,I,[0,$,f0])}Sn(x,f0);var E0=z(x),k0=Nr(c0,Tv),M0=Fx(I,F);return p6(x,g),l6(x,k),[0,a0([0,a],function(O0){var P0=E0[1],N0=Sn(O0,E0[2]),J0=cm(O0,a,0),I0=J0[2][2];if(k0){var Q=I0[2],G=0;if(Q[1])ex(O0,[0,P0,28]),G=1;else{var V=0;Q[2]||Q[3]?V=1:G=1,V&&ex(O0,[0,P0,27])}}else{var p0=I0[2],d0=0;if(p0[1])ex(O0,[0,P0,70]);else{var A0=p0[2],M=0;if(p0[3])ex(O0,[0,P0,69]),M=1;else{var L0=0;A0&&!A0[2]?M=1:L0=1,L0&&(ex(O0,[0,P0,69]),d0=1)}}}var V0=m0([0,M0],0,0),B0=0,vx=0,b0=0,hx=A!==0?1:0,W0=0,T=k0?[1,J0]:[2,J0];return[0,N0,T,W0,hx,b0,vx,B0,V0]},x)]}}var D0=t0[2],cx=W(x);if(typeof cx=="number"){var g0=0;if(cx!==4&&cx!==98&&(g0=1),!g0)return p6(x,g),l6(x,k),QB(x,a,A,D0,I)}var Z0=A!==0?1:0,n0=0;if(D0[0]===3){var nx=D0[1],xx=nx[2][1],yx=0,px=nx[1];if(r){var Tx=0;(Nr(kv,xx)||Z0&&Nr(yo,xx))&&(Tx=1),Tx&&(ex(x,[0,px,[15,xx,Z0,0,0]]),n0=1,yx=1)}}return sm(x,a,k,A,g,I,[0,$,D0])}};C0(im,function(x,r,e,t){var u=r&&(W(t)===2?1:0),i=r&&1-u;return a0(0,function(f){var o=w0(f),a=u?2:0;u0(f,a);for(var y=Bv(0,f),h=Ko0;;){var k=h[3],A=h[2],g=h[1];if(x&&e)throw q0([0,Tr,Ro0],1);if(i&&!e)throw q0([0,Tr,Oo0],1);var I=Nx(y),C=W(y);if(typeof C=="number"){var R=0;if(13<=C){if(Er===C){var L=[0,gx(g),A,k];R=1}}else if(C)switch(C-1|0){case 0:if(!u){var L=[0,gx(g),A,k];R=1}break;case 2:if(u){var L=[0,gx(g),A,k];R=1}break;case 11:if(!e){$0(y);var U=W(y);if(typeof U=="number"&&10>U)switch(U){case 1:case 3:case 8:case 9:ex(y,[0,I,36]),a6(u,y);continue}var B=iO(y);l(nO(y),B),ex(y,[0,I,Pt]),$0(y),a6(u,y);continue}var X=w0(y);$0(y);var J=W(y),e0=0;if(typeof J=="number"&&10>J)switch(J){case 1:case 3:case 8:case 9:a6(u,y);var i0=W(y),j=0;if(typeof i0=="number"){var Y=i0-1|0;if(2>=Y>>>0)switch(Y){case 0:if(i){var L=[0,gx(g),1,X];R=1,e0=1,j=1}break;case 1:break;default:ex(y,[0,I,35]);var L=[0,gx(g),A,k];R=1,e0=1,j=1}}if(!j){ex(y,[0,I,96]);continue}break}if(!e0){var z=[1,a0([0,I],function(E0){return function(k0){var M0=m0([0,E0],0,0);return[0,l(Gr,k0),M0]}}(X),y)];a6(u,y);var h=[0,[0,z,g],A,k];continue}break}if(R){var F=L[3],t0=L[2],$=L[1],f0=Fx(F,w0(f)),c0=u?3:1;return u0(f,c0),[0,u,t0,$,K1([0,o],[0,mx(f)],f0,0)]}}var v0=rS0(y,x,x,x,0,0,0,0,I);a6(u,y);var h=[0,[0,v0,g],A,k]}},t)}),C0(gO,function(x){if(v1(x,41))for(var r=0;;){var e=[0,l(fm,x),r],t=W(x);if(typeof t=="number"&&t===9){u0(x,9);var r=e;continue}var u=mB(x,gx(e));break}else var u=0;return[0,u,oe(im,0,0,0,x)]}),C0(Mo,function(x){var r=_2(x),e=r[2],t=e[1],u=r[1],i=e[2];return uO(t)&&ex(x,[0,u,Uc]),[0,u,[0,t,i]]}),C0(XB,function(x){return a0(0,function(r){var e=l(Mo,r),t=W(r),u=0;if(typeof t=="number")if(t===41)var i=1,f=i,o=[1,a0(0,function(a){return $0(a),l(Gr,a)},r)];else if(t===86)var f=0,o=[1,l(u3,r)];else u=1;else u=1;if(u)var f=0,o=[0,wn(r)];return[0,e,o,f]},x)});var HB=function(x,r){var e=fB(x,r);if(e)var t=e;else{var u=0;if(typeof r=="number"&&1>=r+DN>>>0){var i=1;u=1}if(!u)var i=0;if(!i){var f=0;if(typeof r=="number")switch(r){case 15:case 29:case 30:case 31:case 41:case 42:case 46:case 53:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 124:case 125:case 126:f=1;break}else switch(r[0]){case 4:if(uO(r[3]))return 1;break;case 11:f=1;break}return f?1:0}var t=i}return t};C0($v,function(x){if(W(x)!==98)return 0;1-T1(x)&&Bx(x,_1);var r=a0(0,function(t){var u=w0(t);u0(t,98);for(var i=0,f=0;;){if(HB(t,W(t)))var o=Qd(0,function(J){return function(e0){var i0=bd(0,Co0,e0),j=l(XB,e0),Y=j[2],z=Y[3],F=Y[2],t0=Y[1],$=j[1],f0=W(e0),c0=0;if(typeof f0=="number"&&f0===82){$0(e0);var v0=1,s0=[0,l(Gr,e0)];c0=1}if(!c0){J&&ex(e0,[0,$,56]);var v0=J,s0=0}return[0,[0,t0,F,z,i0,s0],v0]}}(i),t),a=o[2],y=[0,o[1],f];else var a=i,y=f;var h=W(t),k=0;if(typeof h=="number"){var A=h+pz|0;if(14>>0){if(A===-90){$0(t);var i=a,f=y;continue}}else if(12>>0){var g=gx(y);k=1}}if(!k){var I=0;if(typeof h=="number")switch(h){case 4:case 82:I=2;break}else if(h[0]===4){var C=h[3],R=0;if(Bd(C))R=1;else{var L=0;if(N(C,_v)&&N(C,U2)){var U=0;L=1}if(!L)var U=1;if(U)R=1;else if(N(C,cl))(!N(C,dv)||!N(C,bu))&&(I=2);else if(t[28][2]){var B=1;I=1}}if(R){var B=1;I=1}}switch(I){case 0:var B=0;break;case 2:var B=1;break}if(!B){if(HB(t,h)){Hs(t,9);var i=a,f=y;continue}u0(t,9);var i=a,f=y;continue}Hs(t,99);var g=gx(y)}var X=w0(t);return Vd(t,99),[0,g,K1([0,u],[0,mx(t)],X,0)]}},x),e=r[1];return r[2][1]||ex(x,[0,e,55]),[0,r]}),C0(NO,function(x){return W(x)===98?[0,a0(0,function(r){var e=w0(r);u0(r,98);for(var t=Bv(0,r),u=0;;){var i=W(t);if(typeof i=="number"){var f=0;if(i!==99&&Er!==i&&(f=1),!f){var o=gx(u),a=w0(t);return u0(t,99),[0,o,K1([0,e],[0,mx(t)],a,0)]}}var y=[0,l(Gr,t),u];W(t)!==99&&u0(t,9);var u=y}},x)]:0}),C0(fm,function(x){return p(IO,x,l(Mo,x))}),C0(IO,function(x,r){function e(t){for(var u=[0,r[1],[0,r]];;){var i=u[2],f=u[1];if(W(t)===10&&Xd(1,t)){var o=a0([0,f],function(A){return function(g){return u0(g,10),[0,A,l(Mo,g)]}}(i),t),a=o[1],u=[0,a,[1,[0,a,o[2]]]];continue}if(W(t)===98)var y=I1(t)[2],h=p(y,i,function(k,A){return p(qx(k,-860373976,60),k,A)});else var h=i;return[0,h,l(NO,t),0]}}return a0([0,r[1]],e,x)}),C0(WB,function(x,r){var e=p(IO,x,r);return[0,e[1],[19,e[2]]]}),C0(VB,function(x){var r=W(x);return typeof r=="number"&&r===86?l(gB,x):[0,wn(x)]}),C0(ZB,function(x){var r=W(x);return typeof r=="number"&&r===86?[1,l(u3,x)]:[0,wn(x)]}),C0(PO,function(x){var r=W(x);return typeof r!="number"&&r[0]===4&&!N(r[3],$1)?(1-T1(x)&&Bx(x,_1),$0(x),[1,a0(0,function(e){return l(Gr,e)},x)]):[0,wn(x)]}),C0($B,function(x,r,e){var t=x[2],u=x[1];function i(Q){return g2(Q,m0([0,r],[0,e],0))}switch(t[0]){case 0:var I0=[0,i(t[1])];break;case 1:var I0=[1,i(t[1])];break;case 2:var I0=[2,i(t[1])];break;case 3:var I0=[3,i(t[1])];break;case 4:var I0=[4,i(t[1])];break;case 5:var I0=[5,i(t[1])];break;case 6:var I0=[6,i(t[1])];break;case 7:var I0=[7,i(t[1])];break;case 8:var f=i(t[2]),I0=[8,t[1],f];break;case 9:var I0=[9,i(t[1])];break;case 10:var I0=[10,i(t[1])];break;case 11:var o=t[1],a=i(o[2]),I0=[11,[0,o[1],a]];break;case 12:var y=t[1],h=i(y[4]),I0=[12,[0,y[1],y[2],y[3],h]];break;case 13:var k=t[1],A=i(k[4]),I0=[13,[0,k[1],k[2],k[3],A]];break;case 14:var g=t[1],I=g[4],C=YR(I,m0([0,r],[0,e],0)),I0=[14,[0,g[1],g[2],g[3],C]];break;case 15:var R=t[1],L=i(R[3]),I0=[15,[0,R[1],R[2],L]];break;case 16:var U=t[1],B=i(U[2]),I0=[16,[0,U[1],B]];break;case 17:var X=t[1],J=i(X[5]),I0=[17,[0,X[1],X[2],X[3],X[4],J]];break;case 18:var e0=t[1],i0=i(e0[2]),I0=[18,[0,e0[1],i0]];break;case 19:var j=t[1],Y=i(j[3]),I0=[19,[0,j[1],j[2],Y]];break;case 20:var z=t[1],F=i(z[3]),I0=[20,[0,z[1],z[2],F]];break;case 21:var t0=t[1],$=t0[1],f0=t0[2],c0=i($[3]),I0=[21,[0,[0,$[1],$[2],c0],f0]];break;case 22:var v0=t[1],s0=i(v0[2]),I0=[22,[0,v0[1],s0]];break;case 23:var o0=t[1],E0=i(o0[2]),I0=[23,[0,o0[1],E0]];break;case 24:var k0=t[1],M0=i(k0[2]),I0=[24,[0,k0[1],M0]];break;case 25:var D0=t[1],cx=i(D0[2]),I0=[25,[0,D0[1],cx]];break;case 26:var g0=t[1],Z0=i(g0[2]),I0=[26,[0,g0[1],Z0]];break;case 27:var n0=t[1],nx=i(n0[2]),I0=[27,[0,n0[1],nx]];break;case 28:var xx=t[1],yx=i(xx[3]),I0=[28,[0,xx[1],xx[2],yx]];break;case 29:var px=t[1],Tx=i(px[3]),I0=[29,[0,px[1],px[2],Tx]];break;case 30:var O0=t[1],P0=i(O0[3]),I0=[30,[0,O0[1],O0[2],P0]];break;case 31:var N0=t[1],J0=i(N0[2]),I0=[31,[0,N0[1],J0]];break;case 32:var I0=[32,i(t[1])];break;case 33:var I0=[33,i(t[1])];break;default:var I0=[34,i(t[1])]}return[0,u,I0]});var qB=function(x,r){if(W(x)!==4)return[0,0,m0([0,r],[0,mx(x)],0)];var e=Fx(r,w0(x));u0(x,4),J1(x,0);var t=l(lx[9],x);return W1(x),u0(x,5),[0,[0,t],m0([0,e],[0,mx(x)],0)]},eS0=function(x){var r=w0(x);return u0(x,66),qB(x,r)},tS0=0,GB=function(x){var r=Bv(0,x),e=W(r);return typeof e=="number"&&e===66?[0,a0(tS0,eS0,r)]:0},nS0=function(x){var r=W(x);if(typeof r=="number"&&r===86){1-T1(x)&&Bx(x,_1);var e=wn(x),t=Nx(x);u0(x,86);var u=W(x);if(typeof u=="number"&&u===66){var i=Bv(0,x);return[0,[0,e],[0,a0([0,t],function(a){var y=w0(a);return u0(a,66),qB(a,y)},i)]]}if(Hd(x))return[0,[2,p(AO,x,t)],0];var f=[1,a0([0,t],Gr,x)],o=W(x)===66?t3(x,f):f;return[0,o,GB(x)]}return[0,[0,wn(x)],0]},ye=function(x,r){var e=Qs(1,r);J1(e,1);var t=l(x,e);return W1(e),t},qs=function(x){return ye(Gr,x)},us=function(x){return ye(Mo,x)},Ve=function(x){return ye($v,x)},bB=function(x){return ye(NO,x)},Fv=function(x){return ye(u3,x)},xX=function(x){return ye(ZB,x)},CO=function(x){return ye(VB,x)},RO=function(x){return ye(nS0,x)},rX=function(x){return ye(fm,x)},eX=function(x){return ye(PO,x)},uS0=SB(lx),Do=function(x,r){var e=r[2],t=r[1],u=x[1];switch(e[0]){case 0:return b1(iS0,x,e[1][1]);case 1:return b1(fS0,x,e[1][1]);case 2:var i=e[1][1],f=i[2][1],o=x[2],a=x[1],y=i[1];p(h2[3],f,o)&&ex(a,[0,y,81]);var h=i[2][1],k=i[1];return Xv(h)&&vt(a,[0,k,82]),r3(h)&&vt(a,[0,k,84]),[0,a,p(h2[4],f,o)];default:return ex(u,[0,t,24]),x}},iS0=function(x){return function(r){return r[0]===0?Do(x,r[1][2][2]):Do(x,r[1][2][1])}},fS0=function(x){return function(r){switch(r[0]){case 0:return Do(x,r[1][2][1]);case 1:return Do(x,r[1][2][1]);default:return x}}},tX=function(x,r){var e=r[2],t=e[3],u=e[2],i=[0,x,h2[1]],f=b1(function(o,a){return Do(o,a[2][1])},i,u);return t&&Do(f,t[1][2][1]),0},nX=function(x,r,e,t){var u=x[5],i=t[0]===0?Vv(t[1]):0,f=Qs(u?0:r,x),o=r||u||1-i;if(!o)return o;if(e){var a=e[1],y=a[2][1],h=a[1];Xv(y)&&vt(f,[0,h,74]),r3(y)&&vt(f,[0,h,84])}if(t[0]===0)return tX(f,t[1]);var k=t[1][2],A=k[2],g=k[1],I=[0,Ja,[0,[0,Hc(function(R){var L=R[2],U=L[1],B=L[4],X=L[3],J=L[2],e0=U[0]===0?[3,U[1]]:[0,[0,Ja,U[1][2]]];return[0,[0,Ja,[0,e0,J,X,B]]]},g),[0,Ja],0]]],C=Do([0,f,h2[1]],I);return A&&Do(C,A[1][2][1]),0},i3=function(x,r,e,t){return nX(x,r,e,[0,t])},uX=function(x,r){if(r!==12)return 0;var e=w0(x),t=a0(0,function(f){return u0(f,12),p(lx[18],f,82)},x),u=t[2],i=t[1];return[0,[0,i,u,m0([0,e],0,0)]]},OO=function x(r,e){return x.fun(r,e)},cS0=function(x){W(x)===21&&Bx(x,93);var r=p(lx[18],x,82),e=W(x)===82?(u0(x,82),[0,l(lx[10],x)]):0;return[0,r,e]},sS0=0;C0(OO,function(x,r){var e=W(x);if(typeof e=="number"){var t=e-5|0,u=0;if(7>>0?fn===t&&(u=1):5>>0&&(u=1),u){var i=uX(x,e),f=Fy(function(a){return[0,a[1],[0,a[2],a[3]]]},i);return W(x)!==5&&Bx(x,65),[0,gx(r),f]}}var o=a0(sS0,cS0,x);return W(x)!==5&&u0(x,9),p(OO,x,[0,o,r])});var f3=function(x,r){function e(u){var i=xB(1,bR(r,xO(x,u))),f=w0(i);u0(i,4);var o=0;if(T1(i)&&W(i)===21){var a=w0(i),y=a0(0,function(B){return u0(B,21),W(B)===86?[0,Fv(B)]:(Bx(B,89),0)},i),h=y[2],k=y[1];if(h){var A=h[1];W(i)===9&&$0(i);var g=[0,[0,k,[0,A,m0([0,a],0,0)]]]}else var g=0}else o=1;if(o)var g=0;var I=p(OO,i,0),C=I[2],R=I[1],L=w0(i);return u0(i,5),[0,g,R,C,K1([0,f],[0,mx(i)],L,0)]}var t=0;return function(u){return a0(t,e,u)}},iX=function(x,r,e,t,u){var i=iB(x,r,e,u);return p(lx[16],t,i)},y6=function(x,r,e,t,u){var i=iX(x,r,e,t,u);return[0,[0,i[1]],i[2]]},c3=function(x){if(_1!==W(x))return Bv0;var r=w0(x);return $0(x),[0,1,r]},om=function(x){if(W(x)===64&&!n6(1,x)){var r=w0(x);return $0(x),[0,1,r]}return Yv0},oS0=function(x){var r=om(x),e=r[1],t=r[2],u=a0(0,function(R){var L=w0(R);u0(R,15);var U=c3(R),B=U[1],X=Ll([0,t,[0,L,[0,U[2],0]]]),J=R[7],e0=W(R),i0=0;if(J&&typeof e0=="number"){if(e0===4){var F=0,t0=0;i0=1}else if(e0===98){var j=xe(R,Ve(R)),Y=W(R)===4?0:[0,Tn(R,p(lx[13],jv0,R))],F=Y,t0=j;i0=1}}if(!i0)var z=es(R)?Tn(R,p(lx[13],zv0,R)):(aB(R,Kv0),[0,Nx(R),Jv0]),F=[0,z],t0=xe(R,Ve(R));var $=l(f3(e,B),R),f0=W(R)===86?$:c6(R,$),c0=RO(R),v0=c0[2],s0=c0[1];if(v0)var o0=dB(R,v0),E0=s0;else var o0=v0,E0=t3(R,s0);return[0,B,t0,F,f0,E0,o0,X]},x),i=u[2],f=i[4],o=i[3],a=i[1],y=i[7],h=i[6],k=i[5],A=i[2],g=u[1],I=y6(x,e,a,0,Vv(f)),C=I[1];return i3(x,I[2],o,f),[26,[0,o,f,C,e,a,h,k,A,m0([0,y],0,0),g]]},vS0=0,d6=function(x){return a0(vS0,oS0,x)},LO=function(x,r){var e=w0(r);u0(r,x);var t=r[28][2];if(t)var u=x===27?1:0,i=u&&(W(r)===48?1:0);else var i=t;i&&Bx(r,23);for(var f=0,o=0;;){var a=a0(0,function(I){var C=p(lx[18],I,85);if(v1(I,82))var R=0,L=[0,l(lx[10],I)];else{var U=C[1];if(C[2][0]===2)var R=0,L=0;else var R=[0,[0,U,62]],L=0}return[0,[0,C,L],R]},r),y=a[2],h=y[2],k=[0,[0,a[1],y[1]],f],A=h?[0,h[1],o]:o;if(v1(r,9)){var f=k,o=A;continue}var g=gx(A);return[0,gx(k),e,g]}},aS0=24,fX=function(x){return LO(aS0,x)},cX=function(x){var r=LO(27,rO(1,x)),e=r[1],t=r[3],u=r[2];return[0,e,u,gx(b1(function(i,f){return f[2][2]?i:[0,[0,f[1],61],i]},t,e))]},sX=function(x){return LO(28,rO(1,x))},oX=function(x){function r(t){return[19,p(uS0[1],x,t)]}var e=0;return function(t){return a0(e,r,t)}},UO=function x(r,e){return x.fun(r,e)},lS0=function(x){var r=w0(x),e=W(x),t=hr(1,x),u=0;if(typeof e!="number"&&e[0]===2&&typeof t!="number"&&t[0]===4){var i=e[1],f=i[4],o=i[3],a=i[2],y=i[1];if(!N(t[3],Ct)){f&&Xt(x,80),u0(x,[2,[0,y,a,o,f]]);var h=[1,[0,y,[0,a,o,m0([0,r],[0,mx(x)],0)]]];ts(x,Mv0);var k=0,A=p(lx[18],x,82),g=h;u=1}}if(!u){var I=0;if(typeof t!="number"&&t[0]===4&&!N(t[3],Ct)){var C=[0,_2(x)];ts(x,Dv0);var k=0,A=p(lx[18],x,82),g=C;I=1}if(!I)var R=G0(lx[14],x,0,82),L=R[2],k=1,A=[0,R[1],[2,L]],g=[0,L[1]]}var U=W(x)===82?(u0(x,82),[0,l(lx[10],x)]):0;return[0,g,A,U,k]},pS0=0;C0(UO,function(x,r){var e=W(x);if(typeof e=="number"){var t=e-5|0,u=0;if(7>>0?fn===t&&(u=1):5>>0&&(u=1),u){var i=uX(x,e),f=Fy(function(a){return[0,a[1],[0,a[2],a[3]]]},i);return W(x)!==5&&Bx(x,65),[0,gx(r),f]}}var o=a0(pS0,lS0,x);return W(x)!==5&&u0(x,9),p(UO,x,[0,o,r])});var yS0=function(x){var r=xB(1,x),e=w0(r);u0(r,4);var t=p(UO,r,0),u=t[2],i=t[1],f=w0(r);return u0(r,5),[0,i,u,K1([0,e],[0,mx(r)],f,0)]},dS0=0,mS0=function(x){var r=a0(0,function(k){var A=w0(k);ts(k,Lv0);var g=Tn(k,p(lx[13],Uv0,k)),I=xe(k,Ve(k)),C=a0(dS0,yS0,k);if(cO(k))var L=C;else var R=I1(k)[2],L=p(R,C,function(U,B){return p(qx(U,842685896,10),U,B)});return[0,I,g,L,oO(k,eX(k)),A]},x),e=r[2],t=e[3],u=e[2],i=e[5],f=e[4],o=e[1],a=r[1],y=iX(x,0,0,0,0),h=y[1];return nX(x,y[2],[0,u],[1,t]),[3,[0,u,o,t,f,h,m0([0,i],0,0),a]]},kS0=0,MO=function(x){return a0(kS0,mS0,x)},v2=function(x,r){if(r[0]===0)return r[1];var e=r[2][1],t=r[1];return S2(function(u){return ex(x,u)},e),t},DO=function(x,r,e){var t=x?x[1]:40;if(e[0]===0)var u=e[1];else{var i=e[2][2],f=e[1];S2(function(k){return ex(r,k)},i);var u=f}1-l(lx[23],u)&&ex(r,[0,u[1],t]);var o=u[2],a=0;if(o[0]===8){var y=u[1];Xv(o[1][2][1])&&(vt(r,[0,y,75]),a=1)}return p(lx[19],r,u)},jO=function(x,r){var e=Qc(x[2],r[2]);return[0,Qc(x[1],r[1]),e]},vX=function(x){var r=gx(x[2]);return[0,gx(x[1]),r]},aX=function(x,r){var e=x[0]===0?x[1]:x[1]-1|0,t=(r[0]===0,r[1]);return t<=e?1:0},s3=function x(r){return x.fun(r)},Wt=function x(r){return x.fun(r)},lX=function x(r){return x.fun(r)},zO=function x(r){return x.fun(r)},pX=function x(r){return x.fun(r)},KO=function x(r){return x.fun(r)},yX=function x(r){return x.fun(r)},dX=function x(r){return x.fun(r)},m6=function x(r){return x.fun(r)},JO=function x(r){return x.fun(r)},YO=function x(r){return x.fun(r)},BO=function x(r){return x.fun(r)},mX=function x(r){return x.fun(r)},XO=function x(r){return x.fun(r)},vm=function x(r){return x.fun(r)},WO=function x(r){return x.fun(r)},kX=function x(r){return x.fun(r)},Qv=function x(r,e,t,u,i){return x.fun(r,e,t,u,i)},VO=function x(r,e,t,u){return x.fun(r,e,t,u)},ZO=function x(r){return x.fun(r)},am=function x(r){return x.fun(r)},$O=function x(r){return x.fun(r)},FO=function x(r,e,t,u,i){return x.fun(r,e,t,u,i)},hX=function x(r,e,t,u){return x.fun(r,e,t,u)},QO=function x(r){return x.fun(r)},lm=function x(r,e,t){return x.fun(r,e,t)},_X=function x(r){return x.fun(r)},pm=function x(r,e,t){return x.fun(r,e,t)},HO=function x(r){return x.fun(r)},wX=function x(r){return x.fun(r)},qO=function x(r,e){return x.fun(r,e)},GO=function x(r,e,t,u){return x.fun(r,e,t,u)},TX=function x(r){return x.fun(r)},bO=function x(r,e,t){return x.fun(r,e,t)},SX=function x(r){return x.fun(r)},EX=function x(r){return x.fun(r)},xL=function x(r){return x.fun(r)},ym=function x(r,e,t){return x.fun(r,e,t)},hS0=function(x){var r=x[2];switch(r[0]){case 21:var e=r[1],t=e[1][2][1];if(N(t,R2)){if(!N(t,iv)&&!N(e[2][2][1],RS))return 0}else if(!N(e[2][2][1],pl))return 0;break;case 0:case 8:case 20:case 23:break;default:return 0}return 1},rL=function(x){var r=Nx(x),e=l(KO,x),t=l(pX,x);if(!t)return e;var u=t[1];return[0,a0([0,r],function(i){var f=DO(0,i,e);return[2,[0,u,f,l(Wt,i),0]]},x)]},_S0=function(x,r){if(typeof r=="number"&&r===84)return 0;throw q0(ns,1)},AX=function(x){var r=Yd(_S0,x),e=rL(r),t=W(r);if(typeof t=="number"){if(t===11)throw q0(ns,1);if(t===86){var u=nB(r),i=0;if(u){var f=u[1];if(typeof f=="number"&&f===5){var o=1;i=1}}if(!i)var o=0;if(o)throw q0(ns,1)}}if(!es(r))return e;if(e[0]===0){var a=e[1][2];if(a[0]===8&&!N(a[1][2][1],ko)&&!b2(r))throw q0(ns,1)}return e};C0(s3,function(x){var r=es(x);if(r){var e=W(x),t=0;if(typeof e=="number"){if(e===58){if(x[18]){var u=0;t=1}}else if(e===65&&x[19]){var u=0;t=1}}if(!t)var u=1;var i=u}else var i=r;var f=W(x),o=0;if(typeof f=="number"){var a=0;if(22<=f)if(f===58){if(x[18])return[0,l(lX,x)];a=1}else f!==98&&(a=1);else f!==4&&21>f&&(a=1);a||(o=1)}if(!o&&!i)return rL(x);var y=0;if(f===64&&T1(x)&&hr(1,x)===98){var h=AX,k=xL;y=1}if(!y)var h=xL,k=AX;var A=sO(x,k);if(A)return A[1];var g=sO(x,h);return g?g[1]:rL(x)}),C0(Wt,function(x){return v2(x,l(s3,x))}),C0(lX,function(x){return a0(0,function(r){r[10]&&Bx(r,Ns);var e=w0(r),t=Nx(r);u0(r,58);var u=Nx(r);if(e3(r))var i=0,f=0;else{var o=v1(r,_1),a=W(r),y=0;if(typeof a=="number"){var h=0;if(a===86)h=1;else if(10>a)switch(a){case 0:case 2:case 3:case 4:case 6:break;default:h=1}if(h){var k=0;y=1}}if(!y)var k=1;var A=0;if(!o&&!k){var g=0;A=1}if(!A)var g=[0,l(Wt,r)];var i=o,f=g}var I=f?0:mx(r),C=i1(t,u);return[35,[0,f,m0([0,e],[0,I],0),i,C]]},x)}),C0(zO,function(x){var r=x[2];switch(r[0]){case 21:var e=r[1],t=e[1][2][1];if(N(t,R2)){if(!N(t,iv)&&!N(e[2][2][1],RS))return 0}else if(!N(e[2][2][1],pl))return 0;break;case 8:case 20:break;default:return 0}return 1}),C0(pX,function(x){var r=W(x),e=0;if(typeof r=="number"){var t=r-67|0;if(15>=t>>>0){switch(t){case 0:var u=t30;break;case 1:var u=n30;break;case 2:var u=u30;break;case 3:var u=i30;break;case 4:var u=f30;break;case 5:var u=c30;break;case 6:var u=s30;break;case 7:var u=o30;break;case 8:var u=v30;break;case 9:var u=a30;break;case 10:var u=l30;break;case 11:var u=p30;break;case 12:var u=y30;break;case 13:var u=d30;break;case 14:var u=m30;break;default:var u=k30}var i=u;e=1}}if(!e)var i=0;return i!==0&&$0(x),i}),C0(KO,function(x){var r=Nx(x),e=l(dX,x);if(W(x)!==85)return e;$0(x);var t=l(Wt,e6(0,x));u0(x,86);var u=a0([0,r],Wt,x),i=u[2],f=u[1];return[0,[0,f,[6,[0,v2(x,e),t,i,0]]]]}),C0(yX,function(x){return v2(x,l(KO,x))});var eL=function(x,r,e,t,u){var i=v2(x,r);return[0,[0,u,[19,[0,t,i,v2(x,e),0]]]]},tL=function(x,r,e){for(var t=r,u=e;;){var i=W(x);if(typeof i=="number"&&i===88){$0(x);var f=a0(0,m6,x),o=f[2],a=i1(u,f[1]),y=nL(0,x,eL(x,t,o,1,a),a),t=y[2],u=y[1];continue}return[0,u,t]}},gX=function(x,r,e){for(var t=r,u=e;;){var i=W(x);if(typeof i=="number"&&i===87){$0(x);var f=a0(0,m6,x),o=tL(x,f[2],f[1]),a=o[2],y=i1(u,o[1]),h=nL(0,x,eL(x,t,a,0,y),y),t=h[2],u=h[1];continue}return[0,u,t]}},nL=function(x,r,e,t){for(var u=x,i=e,f=t;;){var o=W(r);if(typeof o=="number"&&o===84){1-u&&Bx(r,e30),u0(r,84);var a=a0(0,m6,r),y=a[2],h=a[1],k=W(r),A=0;if(typeof k=="number"&&1>=k-87>>>0){Bx(r,[19,ZR(k)]);var g=tL(r,y,h),I=gX(r,g[2],g[1]),C=I[2],R=I[1];A=1}if(!A)var C=y,R=h;var L=i1(f,R),u=1,i=eL(r,i,C,2,L),f=L;continue}return[0,f,i]}};C0(dX,function(x){var r=a0(0,m6,x),e=r[2],t=r[1],u=W(x),i=0;if(typeof u=="number"&&u===84){var o=nL(1,x,e,t);i=1}if(!i)var f=tL(x,e,t),o=gX(x,f[2],f[1]);return o[2]});var uL=function(x,r,e,t){return[0,t,[3,[0,e,x,r,0]]]},wS0=function(x,r){var e=r;x:for(;;){var t=a0(0,function(b0){var hx=l(JO,b0)!==0?1:0;return[0,hx,l(YO,e6(0,b0))]},x),u=t[2],i=u[2],f=u[1],o=t[1],a=W(x);if(a===98){var y=0;i[0]===0&&i[1][2][0]===10&&(Bx(x,2),y=1)}var h=0;if(typeof a!="number"&&a[0]===4){var k=a[3],A=0;if((!N(k,Ct)||!N(k,BD))&&(A=1),A&&T1(x)){$0(x);var g=v2(x,i),I=0;if(e){var C=e[1],R=C[2],L=e[2],U=C[3],B=R[1],X=C[1];if(aX(R[2],La0)){var J=uL(X,g,B,i1(U,o)),e0=L;I=1}}if(!I)var J=g,e0=e;var i0=J[1];if(Nr(k,BD))var j=qs(x),F=j[1],t0=[1,j];else if(W(x)===27){var Y=Nx(x);$0(x);var F=Y,t0=0}else var z=qs(x),F=z[1],t0=[0,z];var $=[0,[0,i1(i0,F),[32,[0,J,t0,0]]]],f0=e0;h=1}}if(!h)var $=i,f0=e;var c0=W(x),v0=0;if(typeof c0=="number"){var s0=c0-17|0,o0=0;if(1>>0)if(72<=s0){var E0=0;switch(s0-72|0){case 0:var k0=Ua0;break;case 1:var k0=Ma0;break;case 2:var k0=Da0;break;case 3:var k0=ja0;break;case 4:var k0=za0;break;case 5:var k0=Ka0;break;case 6:var k0=Ja0;break;case 7:var k0=Ya0;break;case 8:var k0=Ba0;break;case 9:var k0=Xa0;break;case 10:var k0=Wa0;break;case 11:var k0=Va0;break;case 12:var k0=Za0;break;case 13:var k0=$a0;break;case 14:var k0=Fa0;break;case 15:var k0=Qa0;break;case 16:var k0=Ha0;break;case 17:var k0=qa0;break;case 18:var k0=Ga0;break;case 19:var k0=ba0;break;default:o0=1,E0=1}if(!E0)var M0=k0}else o0=1;else var M0=s0?x30:x[12]?0:r30;if(!o0){var D0=M0;v0=1}}if(!v0)var D0=0;if(D0!==0&&$0(x),!f0&&!D0)return $;if(!D0)for(var cx=v2(x,$),g0=o,Z0=f0;;){if(!Z0)return[0,cx];var n0=Z0[1],nx=Z0[2],xx=n0[2][1],yx=n0[1],px=i1(n0[3],g0),cx=uL(yx,cx,xx,px),g0=px,Z0=nx}var Tx=D0[1],O0=Tx[1],P0=Tx[2],N0=f&&(O0===14?1:0);N0&&ex(x,[0,o,41]);for(var J0=v2(x,$),I0=[0,O0,P0],Q=o,G=f0;;){var V=I0[2],p0=I0[1];if(G){var d0=G[1],A0=d0[2],M=G[2],L0=d0[3],V0=A0[1],B0=d0[1];if(aX(A0[2],V)){var vx=i1(L0,Q),J0=uL(B0,J0,V0,vx),I0=[0,p0,V],Q=vx,G=M;continue}}var e=[0,[0,J0,[0,p0,V],Q],G];continue x}}};C0(m6,function(x){return wS0(x,0)}),C0(JO,function(x){var r=W(x);if(typeof r=="number"){if(48<=r){if(tt<=r){if(ut>r)switch(r+DN|0){case 0:return Aa0;case 1:return ga0;case 6:return Na0;case 7:return Ia0}}else if(r===65&&x[19])return x[10]&&Bx(x,7),Pa0}else if(45<=r)switch(r+mE|0){case 0:return Ca0;case 1:return Ra0;default:return Oa0}}return 0}),C0(YO,function(x){var r=Nx(x),e=w0(x),t=l(JO,x);if(t){var u=t[1];$0(x);var i=a0([0,r],BO,x),f=i[2],o=i[1],a=0;if(u===6){var y=f[2],h=0;switch(y[0]){case 8:vt(x,[0,o,72]),h=1;break;case 20:y[1][2][0]===1&&ex(x,[0,o,66]),h=1;break}h&&(a=1)}return[0,[0,o,[33,[0,u,f,m0([0,e],0,0)]]]]}var k=W(x),A=0;if(typeof k=="number")if(ut===k)var g=Ea0;else if(fe===k)var g=Sa0;else A=1;else A=1;if(A)var g=0;if(!g)return l(mX,x);var I=g[1];$0(x);var C=a0([0,r],BO,x),R=C[2],L=C[1];1-l(zO,R)&&ex(x,[0,R[1],40]);var U=R[2],B=0;return U[0]===8&&Xv(U[1][2][1])&&(Xt(x,77),B=1),[0,[0,L,[34,[0,I,R,1,m0([0,e],0,0)]]]]}),C0(BO,function(x){return v2(x,l(YO,x))}),C0(mX,function(x){var r=l(XO,x);if(b2(x))return r;var e=W(x),t=0;if(typeof e=="number")if(ut===e)var u=Ta0;else if(fe===e)var u=wa0;else t=1;else t=1;if(t)var u=0;if(!u)return r;var i=u[1],f=v2(x,r);1-l(zO,f)&&ex(x,[0,f[1],40]);var o=f[2],a=0;o[0]===8&&Xv(o[1][2][1])&&(Xt(x,76),a=1);var y=Nx(x);$0(x);var h=mx(x),k=i1(f[1],y);return[0,[0,k,[34,[0,i,f,0,m0(0,[0,h],0)]]]]}),C0(XO,function(x){var r=Nx(x),e=1-x[17],t=0,u=x[17]===0?x:[0,x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14],x[15],x[16],t,x[18],x[19],x[20],x[21],x[22],x[23],x[24],x[25],x[26],x[27],x[28],x[29],x[30],x[31]],i=W(u),f=0;if(typeof i=="number"){var o=i-44|0;if(7>=o>>>0){var a=0;switch(o){case 0:if(e)var y=[0,l(ZO,u)];else a=1;break;case 6:var y=[0,l(kX,u)];break;case 7:var y=[0,l(WO,u)];break;default:a=1}if(!a){var h=y;f=1}}}if(!f)var h=Lo(u)?[0,l(QO,u)]:l(HO,u);return Je(Qv,0,0,u,r,h)}),C0(vm,function(x){return v2(x,l(XO,x))}),C0(WO,function(x){switch(x[22]){case 0:var r=0,e=0;break;case 1:var r=0,e=1;break;default:var r=1,e=1}var t=Nx(x),u=w0(x);u0(x,51);var i=[0,t,[27,[0,m0([0,u],[0,mx(x)],0)]]],f=W(x);if(typeof f=="number"&&11>f)switch(f){case 4:var o=r?i:(ex(x,[0,t,ln]),[0,t,[8,hn(0,[0,t,ka0])]]);return oe(VO,0,x,t,o);case 6:case 10:var a=e?i:(ex(x,[0,t,tt]),[0,t,[8,hn(0,[0,t,_a0])]]);return oe(VO,0,x,t,a)}return e?S1(ha0,x):ex(x,[0,t,tt]),i}),C0(kX,function(x){return a0(0,function(r){var e=w0(r),t=Nx(r);if(u0(r,50),v1(r,10)){var u=hn(0,[0,t,ya0]),i=Nx(r);ts(r,da0);var f=hn(0,[0,i,ma0]);return[21,[0,u,f,m0([0,e],[0,mx(r)],0)]]}var o=w0(r);u0(r,4);var a=G0(bO,[0,o],0,l(Wt,e6(0,r)));return u0(r,5),[9,[0,a,m0([0,e],[0,mx(r)],0)]]},x)}),C0(Qv,function(x,r,e,t,u){var i=x?x[1]:1,f=r?r[1]:0,o=Je(FO,[0,i],[0,f],e,t,u),a=nB(e),y=0;if(a){var h=a[1];if(typeof h=="number"&&h===83){var k=1;y=1}}if(!y)var k=0;function A(L){var U=I1(L)[2];function B(X,J){return p(qx(X,an,61),X,J)}return p(U,v2(L,o),B)}function g(L,U,B){var X=l($O,U),J=X[1],e0=X[2],i0=i1(t,J),j=[0,B,L,[0,J,e0],0],Y=0;if(!k&&!f){var z=[4,j];Y=1}if(!Y)var z=[24,[0,j,i0,k]];var F=f||k;return Je(Qv,[0,i],[0,F],U,t,[0,[0,i0,z]])}if(e[13])return o;var I=W(e);if(typeof I=="number"){var C=I-98|0;if(2>>0){if(C===-94)return g(0,e,A(e))}else if(C!==1&&T1(e)){var R=Yd(function(L,U){throw q0(ns,1)},e);return Zd(R,o,function(L){var U=A(L);return g(l(am,L),L,U)})}}return o}),C0(VO,function(x,r,e,t){var u=x?x[1]:1;return v2(r,Je(Qv,[0,u],0,r,e,[0,t]))}),C0(ZO,function(x){return a0(0,function(r){var e=Nx(r),t=w0(r);if(u0(r,44),r[11]&&W(r)===10){var u=mx(r);$0(r);var i=hn(m0([0,t],[0,u],0),[0,e,aa0]),f=W(r);return typeof f!="number"&&f[0]===4&&!N(f[3],RS)?[21,[0,i,p(lx[13],0,r),0]]:(S1(la0,r),$0(r),[8,i])}var o=Nx(r),a=W(r),y=0;if(typeof a=="number")if(a===44)var h=l(ZO,r);else if(a===51)var h=l(WO,tO(1,r));else y=1;else y=1;if(y)var h=Lo(r)?l(QO,r):l(wX,r);var k=oe(hX,pa0,tO(1,r),o,h),A=W(r),g=0;if(typeof A!="number"&&A[0]===3){var I=oe(GO,r,o,k,A[1]);g=1}if(!g)var I=k;var C=0;if(W(r)!==4){var R=0;if((!T1(r)||W(r)!==98)&&(R=1),R){var U=I;C=1}}if(!C)var L=I1(r)[2],U=p(L,I,function(i0,j){return p(qx(i0,an,62),i0,j)});var B=T1(r)?Zd(Yd(function(i0,j){throw q0(ns,1)},r),0,am):0,X=W(r),J=0;if(typeof X=="number"&&X===4){var e0=[0,l($O,r)];J=1}if(!J)var e0=0;return[22,[0,U,B,e0,m0([0,t],0,0)]]},x)});var TS0=function(x){var r=w0(x);u0(x,98);for(var e=0;;){var t=W(x);if(typeof t=="number"){var u=0;if(t!==99&&Er!==t&&(u=1),!u){var i=gx(e),f=w0(x);u0(x,99);var o=W(x)===4?I1(x)[1]:mx(x);return[0,i,K1([0,r],[0,o],f,0)]}}var a=W(x),y=0;if(typeof a!="number"&&a[0]===4&&!N(a[2],ga)){var h=Nx(x),k=w0(x);ts(x,va0);var A=[1,[0,h,[0,m0([0,k],[0,mx(x)],0)]]];y=1}if(!y)var A=[0,qs(x)];var g=[0,A,e];W(x)!==99&&u0(x,9);var e=g}};C0(am,function(x){J1(x,1);var r=W(x)===98?[0,a0(0,TS0,x)]:0;return W1(x),r});var SS0=function(x){var r=w0(x);u0(x,12);var e=l(Wt,x);return[0,e,m0([0,r],0,0)]};C0($O,function(x){return a0(0,function(r){var e=w0(r);u0(r,4);for(var t=0;;){var u=W(r);if(typeof u=="number"){var i=0;if(u!==5&&Er!==u&&(i=1),!i){var f=gx(t),o=w0(r);return u0(r,5),[0,f,K1([0,e],[0,mx(r)],o,0)]}}var a=W(r),y=0;if(typeof a=="number"&&a===12){var h=[1,a0(0,SS0,r)];y=1}if(!y)var h=[0,l(Wt,r)];var k=[0,h,t];W(r)!==5&&u0(r,9);var t=k}},x)});var NX=function(x,r,e,t,u,i){var f=x?x[1]:1,o=r?r[1]:0,a=e?e[1]:0,y=tO(0,t),h=l(lx[7],y),k=Nx(t);u0(t,7);var A=mx(t),g=i1(u,k),I=m0(0,[0,A],0),C=[0,v2(t,i),[2,h],I],R=o?[25,[0,C,g,a]]:[20,C];return Je(Qv,[0,f],[0,o],t,u,[0,[0,g,R]])},IX=function(x,r,e,t,u,i){var f=x?x[1]:1,o=r?r[1]:0,a=e?e[1]:0,y=W(t),h=0;if(typeof y=="number"&&y===14){var k=_B(t),A=k[1],g=t[30][1],I=k[2][1];if(g){var C=g[1];t[30][1]=[0,[0,C[1],[0,[0,I,A],C[2]]],g[2]]}else ex(t,[0,A,67]);var L=[1,k],U=A;h=1}if(!h)var R=_2(t),L=[0,R],U=R[1];var B=i1(u,U),X=0;i[0]===0&&i[1][2][0]===27&&L[0]===1&&(ex(t,[0,B,86]),X=1);var J=[0,v2(t,i),L,0],e0=o?[25,[0,J,B,a]]:[20,J];return Je(Qv,[0,f],[0,o],t,u,[0,[0,B,e0]])};C0(FO,function(x,r,e,t,u){var i=x?x[1]:1,f=r?r[1]:0,o=W(e);if(typeof o=="number")switch(o){case 6:return $0(e),NX([0,i],[0,f],0,e,t,u);case 10:return $0(e),IX([0,i],[0,f],0,e,t,u);case 83:1-i&&Bx(e,63),u0(e,83);var a=W(e);if(typeof a=="number")switch(a){case 4:return u;case 6:return $0(e),NX([0,i],fa0,ia0,e,t,u);case 98:if(T1(e))return u;break}else if(a[0]===3)return Bx(e,64),u;return IX([0,i],sa0,ca0,e,t,u)}else if(o[0]===3){var y=o[1];return f&&Bx(e,64),Je(Qv,oa0,0,e,t,[0,oe(GO,e,t,v2(e,u),y)])}return u}),C0(hX,function(x,r,e,t){var u=x?x[1]:1;return v2(r,Je(FO,[0,u],0,r,e,[0,t]))}),C0(QO,function(x){return a0(0,function(r){var e=om(r),t=e[1],u=e[2],i=a0(0,function(L){var U=w0(L);u0(L,15);var B=c3(L),X=B[1],J=Ll([0,u,[0,U,[0,B[2],0]]]);if(W(L)===4)var e0=0,i0=0;else{var j=W(L),Y=0;if(typeof j=="number"&&j===98){var F=0;Y=1}if(!Y)var z=bR(X,xO(t,L)),F=[0,Tn(z,p(lx[13],ua0,z))];var e0=xe(L,Ve(L)),i0=F}var t0=Yv(0,L),$=t||t0[19],f0=l(f3($,X),t0),c0=W(t0)===86?f0:c6(t0,f0),v0=RO(t0),s0=v0[2],o0=v0[1];if(s0)var E0=dB(t0,s0),k0=o0;else var E0=s0,k0=t3(t0,o0);return[0,i0,c0,X,E0,k0,e0,J]},r),f=i[2],o=f[3],a=f[2],y=f[1],h=f[7],k=f[6],A=f[5],g=f[4],I=i[1],C=y6(r,t,o,1,Vv(a)),R=C[1];return i3(r,C[2],y,a),[7,[0,y,a,R,t,o,g,A,k,m0([0,h],0,0),I]]},x)}),C0(lm,function(x,r,e){switch(r){case 1:Xt(x,80);try{var t=By(Sl(Zx(xa0,e))),u=t}catch(A){var i=R1(A);if(i[1]!==mn)throw q0(i,0);var u=Rx(Zx(ra0,e))}break;case 2:Xt(x,79);try{var f=KC(e),u=f}catch(A){var o=R1(A);if(o[1]!==mn)throw q0(o,0);var u=Rx(Zx(ea0,e))}break;case 4:try{var a=KC(e),u=a}catch(A){var y=R1(A);if(y[1]!==mn)throw q0(y,0);var u=Rx(Zx(ta0,e))}break;default:try{var h=By(Sl(e)),u=h}catch(A){var k=R1(A);if(k[1]!==mn)throw q0(k,0);var u=Rx(Zx(na0,e))}}return u0(x,[0,r,e]),u}),C0(_X,function(x){var r=Gx(x),e=0;if(r!==0&&P1===C1(x,r-1|0)){var t=z2(x,0,r-1|0);e=1}if(!e)var t=x;return t}),C0(pm,function(x,r,e){var t=GK(l(_X,e));return u0(x,[1,r,e]),t}),C0(HO,function(x){var r=Nx(x),e=w0(x),t=W(x);if(typeof t=="number")switch(t){case 0:var u=l(lx[12],x);return[1,[0,u[1],[23,u[2]]],u[3]];case 4:return[0,l(TX,x)];case 6:var i=a0(0,SX,x),f=i[2];return[1,[0,i[1],[0,f[1]]],f[2]];case 21:return $0(x),[0,[0,r,[30,[0,m0([0,e],[0,mx(x)],0)]]]];case 29:return $0(x),[0,[0,r,[14,m0([0,e],[0,mx(x)],0)]]];case 40:return[0,l(lx[22],x)];case 98:var o=l(lx[17],x),a=o[2],y=o[1],h=tn<=a[1]?[11,a[2]]:[10,a[2]];return[0,[0,y,h]];case 30:case 31:return $0(x),[0,[0,r,[13,[0,t===31?1:0,m0([0,e],[0,mx(x)],0)]]]];case 74:case 105:return[0,l(EX,x)]}else switch(t[0]){case 0:var k=t[2],A=G0(lm,x,t[1],k);return[0,[0,r,[15,[0,A,k,m0([0,e],[0,mx(x)],0)]]]];case 1:var g=t[2],I=G0(pm,x,t[1],g);return[0,[0,r,[16,[0,I,g,m0([0,e],[0,mx(x)],0)]]]];case 2:var C=t[1],R=C[3],L=C[2],U=C[1];C[4]&&Xt(x,80),$0(x);var B=m0([0,e],[0,mx(x)],0),X=x[28],J=X[6],e0=X[7],i0=0;if(J){var j=J[1];if(HK(j,L))var Y=[18,[0,L,U,Gx(j),0,R,B]];else i0=1}else i0=1;if(i0){var z=0;if(e0){var F=e0[1];if(HK(F,L)){var Y=[18,[0,L,U,Gx(F),1,R,B]];z=1}}if(!z)var Y=[12,[0,L,R,B]]}return[0,[0,U,Y]];case 3:var t0=p(qO,x,t[1]);return[0,[0,t0[1],[29,t0[2]]]];case 4:if(!N(t[3],$h)&&hr(1,x)===40)return[0,l(lx[22],x)];break}if(es(x)){var $=p(lx[13],0,x);return[0,[0,$[1],[8,$]]]}S1(0,x);var f0=0;return typeof t!="number"&&t[0]===7&&($0(x),f0=1),[0,[0,r,[14,m0([0,e],bv0,0)]]]}),C0(wX,function(x){return v2(x,l(HO,x))}),C0(qO,function(x,r){var e=r[5],t=r[1],u=r[3],i=r[2],f=w0(x);u0(x,[3,r]);var o=[0,t,[0,[0,u,i],e]];if(e)var a=0,y=[0,o,0],h=t;else for(var k=[0,o,0],A=0;;){var g=l(lx[7],x),I=[0,g,A],C=W(x),R=0;if(typeof C=="number"&&C===1){J1(x,4);var L=W(x),U=0;if(typeof L=="number"||L[0]!==3)U=1;else{var B=L[1],X=B[5],J=B[1],e0=B[3],i0=B[2];$0(x),W1(x);var j=[0,[0,J,[0,[0,e0,i0],X]],k];if(!X){var k=j,A=I;continue}var Y=gx(I),z=[0,J,gx(j),Y];R=1}if(U)throw q0([0,Tr,Hv0],1)}if(!R){S1(qv0,x);var F=[0,g[1],Gv0],t0=gx(I),$=gx([0,F,k]),z=[0,g[1],$,t0]}var a=z[3],y=z[2],h=z[1];break}var f0=mx(x),c0=i1(t,h);return[0,c0,[0,y,a,m0([0,f],[0,f0],0)]]}),C0(GO,function(x,r,e,t){var u=I1(x)[2],i=p(u,e,function(o,a){return p(qx(o,an,3),o,a)}),f=p(qO,x,t);return[0,i1(r,f[1]),[28,[0,i,f,0]]]}),C0(TX,function(x){var r=w0(x),e=a0(0,function(o){u0(o,4);var a=Nx(o),y=l(Wt,o),h=W(o),k=0;if(typeof h=="number")if(h===9)var A=[0,G0(ym,o,a,[0,y,0])];else if(h===86)var A=[1,[0,y,Fv(o),0]];else k=1;else k=1;if(k)var A=[0,y];return u0(o,5),A},x),t=e[2],u=e[1],i=mx(x),f=t[0]===0?t[1]:[0,u,[31,t[1]]];return G0(bO,[0,r],[0,i],f)}),C0(bO,function(x,r,e){var t=e[2],u=e[1],i=x?x[1]:0,f=r?r[1]:0;function o(br){return g2(br,m0([0,i],[0,f],0))}function a(br){return YR(br,m0([0,i],[0,f],0))}switch(t[0]){case 0:var y=t[1],h=a(y[2]),ax=[0,[0,y[1],h]];break;case 1:var k=t[1],A=k[10],g=o(k[9]),ax=[1,[0,k[1],k[2],k[3],k[4],k[5],k[6],k[7],k[8],g,A]];break;case 2:var I=t[1],C=o(I[4]),ax=[2,[0,I[1],I[2],I[3],C]];break;case 3:var R=t[1],L=o(R[4]),ax=[3,[0,R[1],R[2],R[3],L]];break;case 4:var U=t[1],B=o(U[4]),ax=[4,[0,U[1],U[2],U[3],B]];break;case 5:var X=t[1],J=o(X[7]),ax=[5,[0,X[1],X[2],X[3],X[4],X[5],X[6],J]];break;case 6:var e0=t[1],i0=o(e0[4]),ax=[6,[0,e0[1],e0[2],e0[3],i0]];break;case 7:var j=t[1],Y=j[10],z=o(j[9]),ax=[7,[0,j[1],j[2],j[3],j[4],j[5],j[6],j[7],j[8],z,Y]];break;case 8:var F=t[1],t0=F[2],$=F[1],f0=o(t0[2]),ax=[8,[0,$,[0,t0[1],f0]]];break;case 9:var c0=t[1],v0=o(c0[2]),ax=[9,[0,c0[1],v0]];break;case 10:var s0=t[1],o0=o(s0[4]),ax=[10,[0,s0[1],s0[2],s0[3],o0]];break;case 11:var E0=t[1],k0=o(E0[4]),ax=[11,[0,E0[1],E0[2],E0[3],k0]];break;case 12:var M0=t[1],D0=o(M0[3]),ax=[12,[0,M0[1],M0[2],D0]];break;case 13:var cx=t[1],g0=o(cx[2]),ax=[13,[0,cx[1],g0]];break;case 14:var ax=[14,o(t[1])];break;case 15:var Z0=t[1],n0=o(Z0[3]),ax=[15,[0,Z0[1],Z0[2],n0]];break;case 16:var nx=t[1],xx=o(nx[3]),ax=[16,[0,nx[1],nx[2],xx]];break;case 17:var yx=t[1],px=o(yx[4]),ax=[17,[0,yx[1],yx[2],yx[3],px]];break;case 18:var Tx=t[1],O0=o(Tx[6]),ax=[18,[0,Tx[1],Tx[2],Tx[3],Tx[4],Tx[5],O0]];break;case 19:var P0=t[1],N0=o(P0[4]),ax=[19,[0,P0[1],P0[2],P0[3],N0]];break;case 20:var J0=t[1],I0=o(J0[3]),ax=[20,[0,J0[1],J0[2],I0]];break;case 21:var Q=t[1],G=o(Q[3]),ax=[21,[0,Q[1],Q[2],G]];break;case 22:var V=t[1],p0=o(V[4]),ax=[22,[0,V[1],V[2],V[3],p0]];break;case 23:var d0=t[1],A0=a(d0[2]),ax=[23,[0,d0[1],A0]];break;case 24:var M=t[1],L0=M[1],V0=M[3],B0=M[2],vx=o(L0[4]),ax=[24,[0,[0,L0[1],L0[2],L0[3],vx],B0,V0]];break;case 25:var b0=t[1],hx=b0[1],W0=b0[3],T=b0[2],K=o(hx[3]),ax=[25,[0,[0,hx[1],hx[2],K],T,W0]];break;case 26:var H0=t[1],sx=o(H0[2]),ax=[26,[0,H0[1],sx]];break;case 27:var ax=[27,[0,o(t[1][1])]];break;case 28:var ux=t[1],z0=o(ux[3]),ax=[28,[0,ux[1],ux[2],z0]];break;case 29:var Px=t[1],kx=o(Px[3]),ax=[29,[0,Px[1],Px[2],kx]];break;case 30:var ax=[30,[0,o(t[1][1])]];break;case 31:var $x=t[1],Qx=o($x[3]),ax=[31,[0,$x[1],$x[2],Qx]];break;case 32:var ax=t;break;case 33:var j0=t[1],rr=o(j0[3]),ax=[33,[0,j0[1],j0[2],rr]];break;case 34:var zx=t[1],X0=o(zx[4]),ax=[34,[0,zx[1],zx[2],zx[3],X0]];break;default:var ir=t[1],K0=ir[4],Sr=ir[3],Dr=o(ir[2]),ax=[35,[0,ir[1],Dr,Sr,K0]]}return[0,u,ax]}),C0(SX,function(x){var r=w0(x);u0(x,6);for(var e=[0,0,kn];;){var t=e[2],u=e[1],i=W(x);if(typeof i=="number"){var f=0;if(13<=i)Er===i&&(f=1);else if(7<=i)switch(i-7|0){case 0:f=1;break;case 2:var o=Nx(x);$0(x);var e=[0,[0,[2,o],u],t];continue;case 5:var a=w0(x),y=a0(0,function(z){$0(z);var F=l(s3,z);return F[0]===0?[0,F[1],kn]:[0,F[1],F[2]]},x),h=y[2],k=h[2],A=y[1],g=h[1],I=[1,[0,A,[0,g,m0([0,a],0,0)]]],C=W(x)===7?1:0,R=0;if(!C&&hr(1,x)===7){var L=[0,k[1],[0,[0,A,20],k[2]]];R=1}if(!R)var L=k;1-C&&u0(x,9);var e=[0,[0,I,u],jO(L,t)];continue}if(f){var U=vX(t),B=gx(u),X=w0(x);return u0(x,7),[0,[0,B,K1([0,r],[0,mx(x)],X,0)],U]}}var J=l(s3,x);if(J[0]===0)var e0=kn,i0=J[1];else var e0=J[2],i0=J[1];W(x)!==7&&u0(x,9);var e=[0,[0,[0,i0],u],jO(e0,t)]}}),C0(EX,function(x){J1(x,5);var r=Nx(x),e=w0(x),t=W(x),u=0;if(typeof t!="number"&&t[0]===5){var i=t[3],f=t[2];$0(x);var o=mx(x),a=o,y=i,h=f,k=Zx(Vv0,Zx(f,Zx(Wv0,i)));u=1}if(!u){S1(Zv0,x);var a=0,y=$v0,h=Fv0,k=Qv0}W1(x);var A=Zr(Gx(y)),g=Gx(y)-1|0,I=0;if(g>=0)for(var C=I;;){var R=ix(y,C),L=R-100|0,U=0;if(21>=L>>>0)switch(L){case 0:case 3:case 5:case 9:case 15:case 17:case 21:ct(A,R),U=1;break}var B=C+1|0;if(g!==C){var C=B;continue}break}var X=z1(A);return N(X,y)&&Bx(x,[17,y]),[0,r,[17,[0,h,X,k,m0([0,e],[0,a],0)]]]});var ES0=function(x){return function(r){if(typeof r=="number"){var e=0;if(65<=r){var t=r+aM|0;if(49>>0)e=1;else{var u=t-15|0;if(9>=u>>>0)switch(u){case 0:case 1:case 3:case 9:e=1;break}}}else 8<=r?r===59&&(e=1):6<=r&&(e=1);if(e)return 0}throw q0(ns,1)}},AS0=function(x){var r=W(x);if(typeof r=="number"&&!r){var e=p(lx[16],1,x);return[0,[0,e[1]],e[2]]}return[0,[1,l(lx[10],x)],0]};C0(xL,function(x){var r=Yd(ES0,x),e=Nx(r);if(hr(1,r)===11)var u=0,i=0;else var t=om(r),u=t[2],i=t[1];var f=i||r[19],o=xO(f,r),a=o[18],y=a0(0,function(o0){var E0=xe(o0,Ve(o0));if(es(o0)&&E0===0){var k0=p(lx[13],Xv0,o0),M0=k0[1],D0=[0,M0,[0,[0,M0,[2,[0,k0,[0,wn(o0)],0]]],0]];return[0,E0,[0,M0,[0,0,[0,D0,0],0,0]],[0,[0,M0[1],M0[3],M0[3]]],0]}var cx=l(f3(f,a),o0);tX(o0,cx);var g0=RO(Bv(1,o0));return[0,E0,cx,g0[1],g0[2]]},o),h=y[2],k=h[2],A=k[2],g=0,I=h[4],C=h[3],R=h[1],L=y[1];if(!A[1]){var U=0,B=A[2];if((A[3]||!B)&&(U=1),U){var X=uB(o);g=1}}if(!g)var X=o;var J=k[2],e0=J[1];if(e0){var i0=k[1];ex(X,[0,e0[1][1],90]);var j=[0,i0,[0,0,J[2],J[3],J[4]]]}else var j=k;var Y=Vv(j),z=b2(X),F=z&&(W(X)===11?1:0);F&&Bx(X,59),u0(X,11);var t0=iB(uB(X),i,0,Y),$=a0(0,AS0,t0),f0=$[2],c0=f0[1],v0=$[1];i3(t0,f0[2],0,j);var s0=i1(e,v0);return[0,[0,s0,[1,[0,0,j,c0,i,0,I,C,R,m0([0,u],0,0),L]]]]}),C0(ym,function(x,r,e){return a0([0,r],function(t){for(var u=e;;){var i=W(t);if(typeof i=="number"&&i===9){$0(t);var u=[0,l(Wt,t),u];continue}return[26,[0,gx(u),0]]}},x)});var gS0=function(x){var r=w0(x);$0(x);var e=m0([0,r],0,0),t=l(vm,x),u=b2(x)?f6(x):$d(x),i=u[2];return[0,p(i,t,function(f,o){return p(qx(f,an,63),f,o)}),e]},iL=function(x){if(!x[28][3])return 0;for(var r=0;;){var e=W(x);if(typeof e=="number"&&e===13){var r=[0,a0(0,gS0,x),r];continue}return gx(r)}},jo=function(x,r){var e=x?x[1]:0,t=w0(r),u=W(r);if(typeof u=="number")switch(u){case 6:var i=a0(0,function(v0){var s0=w0(v0);u0(v0,6);var o0=e6(0,v0),E0=l(lx[10],o0);return u0(v0,7),[0,E0,m0([0,s0],[0,mx(v0)],0)]},r),f=i[1];return[0,f,[5,[0,f,i[2]]]];case 14:if(!e){var o=a0(0,function(v0){return $0(v0),[3,_2(v0)]},r),a=o[1],y=o[2];return ex(r,[0,a,67]),[0,a,y]}var h=_B(r),k=r[30][1],A=h[2][1],g=h[1];if(k){var I=k[1],C=k[2],R=I[2],L=[0,[0,p(h2[4],A,I[1]),R],C];r[30][1]=L}else Rx(es0);return[0,g,[4,h]]}else switch(u[0]){case 0:var U=u[2],B=u[1],X=Nx(r),J=G0(lm,r,B,U);return[0,X,[1,[0,X,[0,J,U,m0([0,t],[0,mx(r)],0)]]]];case 1:var e0=u[2],i0=u[1],j=Nx(r),Y=G0(pm,r,i0,e0);return[0,j,[2,[0,j,[0,Y,e0,m0([0,t],[0,mx(r)],0)]]]];case 2:var z=u[1],F=z[4],t0=z[3],$=z[2],f0=z[1];return F&&Xt(r,80),u0(r,[2,[0,f0,$,t0,F]]),[0,f0,[0,[0,f0,[0,$,t0,m0([0,t],[0,mx(r)],0)]]]]}var c0=_2(r);return[0,c0[1],[3,c0]]},dm=function(x,r,e){var t=c3(x),u=t[1],i=t[2],f=jo([0,r],x),o=f[1],a=0,y=Sn(x,f[2]);return[0,y,a0(0,function(h){var k=Yv(1,h),A=a0(0,function(X){var J=l(f3(0,0),X),e0=0,i0=W(X)===86?J:c6(X,J);if(e){var j=i0[2],Y=0;if(j[1])ex(X,[0,o,28]),Y=1;else{var z=0;j[2]||j[3]?z=1:Y=1,z&&ex(X,[0,o,27])}}else{var F=i0[2];if(F[1])ex(X,[0,o,70]);else{var t0=F[2],$=0;t0&&!t0[2]&&!F[3]&&($=1),$||(F[3]?ex(X,[0,o,69]):ex(X,[0,o,69]))}}return[0,e0,i0,t3(X,CO(X))]},k),g=A[2],I=g[2],C=g[3],R=g[1],L=A[1],U=y6(k,a,u,0,Vv(I)),B=U[1];return i3(k,U[2],0,I),[0,0,I,B,a,u,0,C,R,m0([0,i],0,0),L]},x)]},PX=function(x){var r=l(s3,x);return r[0]===0?[0,r[1],kn]:[0,r[1],r[2]]},CX=function(x,r){switch(r[0]){case 0:var e=r[1],t=e[1],u=e[2];return ex(x,[0,t,52]),[0,t,[12,u]];case 1:var i=r[1],f=i[1],o=i[2];return ex(x,[0,f,52]),[0,f,[15,o]];case 2:var a=r[1],y=a[1],h=a[2];return ex(x,[0,y,52]),[0,y,[16,h]];case 3:var k=r[1],A=k[2][1],g=k[1];return Bd(A)?ex(x,[0,g,99]):r3(A)&&vt(x,[0,g,84]),[0,g,[8,k]];case 4:return Rx(R30);default:var I=r[1][2][1];return ex(x,[0,I[1],8]),I}},RX=function(x,r,e){function t(i){var f=Yv(1,i),o=a0(0,function(C){var R=xe(C,Ve(C)),L=l(f3(x,r),C),U=W(C)===86?L:c6(C,L);return[0,R,U,t3(C,CO(C))]},f),a=o[2],y=a[2],h=a[3],k=a[1],A=o[1],g=y6(f,x,r,0,Vv(y)),I=g[1];return i3(f,g[2],0,y),[0,0,y,I,x,r,0,h,k,m0([0,e],0,0),A]}var u=0;return function(i){return a0(u,t,i)}},OX=function(x){return u0(x,86),PX(x)},fL=function(x,r,e,t,u,i){var f=a0([0,r],function(a){if(!t&&!u){var y=W(a);if(typeof y=="number"){var h=0;if(86<=y){if(y===98)h=1;else if(87>y){var k=OX(a);return[0,[0,e,k[1],0],k[2]]}}else{if(y===82){if(e[0]===3)var A=e[1],g=Nx(a),I=function(B){var X=w0(B);u0(B,82);var J=mx(B),e0=p(lx[19],B,[0,A[1],[8,A]]),i0=l(lx[10],B);return[2,[0,0,e0,i0,m0([0,X],[0,J],0)]]},C=a0([0,A[1]],I,a),R=[0,C,[0,[0,[0,g,[23,pd(C30)]],0],0]];else var R=OX(a);return[0,[0,e,R[1],1],R[2]]}if(10>y)switch(y){case 4:h=1;break;case 1:case 9:return[0,[0,e,CX(a,e),1],kn]}}if(h){var L=Sn(a,e);return[0,[1,L,l(RX(t,u,i),a)],kn]}}return[0,[0,e,CX(a,e),1],kn]}var U=Sn(a,e);return[0,[1,U,l(RX(t,u,i),a)],kn]},x),o=f[2];return[0,[0,[0,f[1],o[1]]],o[2]]},NS0=function(x){if(W(x)===12){var r=w0(x),e=a0(0,function(M0){return u0(M0,12),PX(M0)},x),t=e[2],u=t[2],i=t[1],f=e[1];return[0,[1,[0,f,[0,i,m0([0,r],0,0)]]],u]}var o=Nx(x),a=hr(1,x),y=0;if(typeof a=="number"){var h=0;if(86<=a)a!==98&&87<=a&&(h=1);else if(a!==82)if(10<=a)h=1;else switch(a){case 1:case 4:case 9:break;default:h=1}if(!h){var A=0,g=0;y=1}}if(!y)var k=om(x),A=k[2],g=k[1];var I=c3(x),C=I[1],R=Fx(A,I[2]),L=W(x);if(!g&&!C&&typeof L!="number"&&L[0]===4){var U=L[3];if(!N(U,Tv)){var B=w0(x),X=jo(0,x)[2],J=W(x);if(typeof J=="number"){var e0=0;if(86<=J)J!==98&&87<=J&&(e0=1);else if(J!==82)if(10<=J)e0=1;else switch(J){case 1:case 4:case 9:break;default:e0=1}if(!e0)return fL(x,o,X,0,0,0)}Sn(x,X);var i0=a0([0,o],function(M0){return dm(M0,0,1)},x),j=i0[2],Y=j[2],z=j[1],F=i0[1];return[0,[0,[0,F,[2,z,Y,m0([0,B],0,0)]]],kn]}if(!N(U,Oa)){var t0=w0(x),$=jo(0,x)[2],f0=W(x);if(typeof f0=="number"){var c0=0;if(86<=f0)f0!==98&&87<=f0&&(c0=1);else if(f0!==82)if(10<=f0)c0=1;else switch(f0){case 1:case 4:case 9:break;default:c0=1}if(!c0)return fL(x,o,$,0,0,0)}Sn(x,$);var v0=a0([0,o],function(M0){return dm(M0,0,0)},x),s0=v0[2],o0=s0[2],E0=s0[1],k0=v0[1];return[0,[0,[0,k0,[3,E0,o0,m0([0,t0],0,0)]]],kn]}}return fL(x,o,jo(0,x)[2],g,C,R)},IS0=function(x){var r=a0(0,function(t){var u=w0(t);u0(t,0);for(var i=0,f=[0,0,kn];;){var o=f[2],a=f[1],y=W(t);if(typeof y=="number"){var h=0;if(y!==1&&Er!==y&&(h=1),!h){var k=i?[0,o[1],[0,[0,i[1],94],o[2]]]:o,A=vX(k),g=gx(a),I=w0(t);return u0(t,1),[0,[0,g,K1([0,u],[0,mx(t)],I,0)],A]}}var C=NS0(t),R=C[1],L=0,U=C[2];if(R[0]===1&&W(t)===9){var B=[0,Nx(t)];L=1}if(!L)var B=0;var X=jO(U,o),J=W(t),e0=0;if(typeof J=="number"){var i0=J-2|0,j=0;if(P1>>0?fe>=i0+1>>>0&&(j=1):i0===7&&($0(t),j=1),j){var Y=X;e0=1}}if(!e0){var z=$R(Qc0,9),F=vB([0,z],W(t)),t0=[0,Nx(t),F];v1(t,8);var Y=[0,[0,t0,X[1]],[0,t0,X[2]]]}var i=B,f=[0,[0,R,a],Y]}},x),e=r[2];return[0,r[1],e[1],e[2]]},mm=function(x,r,e,t){var u=e[2][1],i=e[1];if(Nr(u,kv))return ex(x,[0,i,[15,u,0,Rj===t?1:0,1]]),r;for(var f=r;;){if(typeof f=="number")var a=0;else if(f[0]===0)var o=f[2],a=Ex(u,f[1])===0?[0,o]:0;else{var y=Ex(u,f[2]),h=f[5],k=f[4],A=f[3];if(y!==0){var g=0<=y?h:k,f=g;continue}var a=[0,A]}if(!a)return Gd(u,t,r);var I=a[1],C=0;return PN===t?BP===I&&(C=1):BP===t&&PN===I&&(C=1),C||ex(x,[0,i,[1,u]]),Gd(u,UD,r)}},LX=function(x,r){return a0(0,function(e){var t=r?w0(e):0;u0(e,52);for(var u=0;;){var i=[0,a0(0,function(a){var y=us(a);if(W(a)===98)var h=I1(a)[2],k=p(h,y,function(A,g){return p(qx(A,Na,64),A,g)});else var k=y;return[0,k,bB(a)]},e),u],f=W(e);if(typeof f=="number"&&f===9){u0(e,9);var u=i;continue}var o=gx(i);return[0,o,m0([0,t],0,0)]}},x)},cL=function(x){switch(x[0]){case 0:case 3:var r=x[1];return[0,[0,r[1],r[2][1]]];default:return 0}},sL=function(x,r){return r?ex(x,[0,r[1][1],ut]):0},oL=function(x,r){return r?ex(x,[0,r[1],13]):0},UX=function(x,r,e,t,u,i,f,o){var a=a0([0,r],function(C){var R=xX(C),L=W(C);if(i){var U=0;if(typeof L=="number"&&L===82){Bx(C,14),$0(C);var B=0}else U=1;if(U)var B=0}else{var X=0;if(typeof L=="number"&&L===82){$0(C);var J=Yv(1,C),B=[0,l(lx[7],J)];X=1}if(!X)var B=1}var e0=W(C),i0=0;if(typeof e0=="number"&&9>e0)switch(e0){case 8:$0(C);var j=W(C),Y=0;if(typeof j=="number"){var z=0;if(j===1||Er===j?z=1:Y=1,z)var F=mx(C)}else Y=1;if(Y)var F=b2(C)?Uo(C):0;var t0=[0,t,R,B,F];i0=1;break;case 4:case 6:S1(0,C);var t0=[0,t,R,B,0];i0=1;break}if(!i0){var $=W(C),f0=0;if(typeof $=="number"){var c0=0;if($===1||Er===$?c0=1:f0=1,c0)var v0=[0,0,function(px,Tx){return px}]}else f0=1;if(f0)var v0=b2(C)?f6(C):$d(C);if(typeof B=="number")if(R[0]===0)var s0=function(yx,px){return p(qx(yx,qU,67),yx,px)},D0=B,cx=R,g0=p(v0[2],t,s0);else var o0=R[1],E0=function(yx,px){return p(qx(yx,JP,68),yx,px)},D0=B,cx=[1,p(v0[2],o0,E0)],g0=t;else var k0=B[1],M0=function(yx,px){return p(qx(yx,an,69),yx,px)},D0=[0,p(v0[2],k0,M0)],cx=R,g0=t;var t0=[0,g0,cx,D0,0]}var Z0=t0[3],n0=t0[2],nx=t0[1];return[0,nx,n0,Z0,m0([0,o],[0,t0[4]],0)]},x),y=a[2],h=y[4],k=y[3],A=y[2],g=y[1],I=a[1];return g[0]===4?[2,[0,I,[0,g[1],k,A,u,f,e,h]]]:[1,[0,I,[0,g,k,A,u,f,e,h]]]},vL=function(x,r,e,t,u,i,f,o,a,y){for(;;){var h=W(x);if(typeof h=="number"){var k=h-1|0,A=0;if(7>>0){var g=k-81|0;if(4>=g>>>0)switch(g){case 3:S1(0,x),$0(x);continue;case 0:case 4:A=1;break}}else 5>>0&&(A=1);if(A&&!u&&!i)return UX(x,r,e,t,f,o,a,y)}var I=W(x),C=0;if(typeof I=="number"&&(I===4||I===98))var R=0;else C=1;if(C)var R=e3(x)?1:0;if(R)return UX(x,r,e,t,f,o,a,y);oL(x,o),sL(x,a);var L=cL(t),U=0;if(f){if(L){var B=L[1],X=B[1];if(!N(B[2],yo)){ex(x,[0,X,[15,S30,f,1,0]]);var i0=Yv(1,x),j=1;U=1}}}else if(L){var J=L[1],e0=J[1];if(!N(J[2],kv)){u&&ex(x,[0,e0,10]),i&&ex(x,[0,e0,11]);var i0=Yv(2,x),j=0;U=1}}if(!U)var i0=Yv(1,x),j=1;var Y=Sn(i0,t),z=a0(0,function(t0){var $=a0(0,function(M0){var D0=xe(M0,Ve(M0)),cx=l(f3(u,i),M0),g0=W(M0)===86?cx:c6(M0,cx),Z0=g0[2],n0=Z0[1],nx=0;if(n0){var xx=n0[1][1],yx=g0[1];if(j===0){ex(M0,[0,xx,91]);var px=[0,yx,[0,0,Z0[2],Z0[3],Z0[4]]];nx=1}}if(!nx)var px=g0;return[0,D0,px,t3(M0,CO(M0))]},t0),f0=$[2],c0=f0[2],v0=f0[3],s0=f0[1],o0=$[1],E0=y6(t0,u,i,0,Vv(c0)),k0=E0[1];return i3(t0,E0[2],0,c0),[0,0,c0,k0,u,i,0,v0,s0,0,o0]},i0),F=[0,j,Y,z,f,e,m0([0,y],0,0)];return[0,[0,i1(r,z[1]),F]]}},aL=function(x,r){var e=hr(x,r);if(typeof e=="number"){var t=0;if(86<=e)e!==98&&87<=e&&(t=1);else if(e!==82)if(9<=e)t=1;else switch(e){case 1:case 4:case 8:break;default:t=1}if(!t)return 1}return 0},PS0=0,MX=function(x){return aL(PS0,x)},CS0=function(x){var r=Nx(x),e=iL(x),t=W(x),u=0;if(typeof t=="number"&&t===60&&!aL(1,x)){var i=[0,Nx(x)],f=w0(x);$0(x);var o=f,a=i;u=1}if(!u)var o=0,a=0;var y=W(x),h=0;if(typeof y=="number"&&2>=y+ej>>>0&&Oo(1,x)){var k=0;if(typeof y=="number"){var A=y+ej|0;if(2>=A>>>0){switch(A){case 0:var g=Xz;break;case 1:var g=rl;break;default:var g=ol}var I=g;k=1}}if(!k)var I=Rx(E30);Bx(x,[21,I]),$0(x),h=1}var C=W(x)===42?1:0;if(C){var R=hr(1,x),L=0;if(typeof R=="number"){var U=0;if(87<=R)R!==98&&Er!==R&&(U=1);else{var B=R-9|0;if(76>>0){if(77>B)switch(B+9|0){case 1:case 4:case 8:break;default:U=1}}else B!==73&&(U=1)}if(!U){var X=0;L=1}}if(!L)var X=1;var J=X}else var J=C;if(J){var e0=w0(x);$0(x);var i0=e0}else var i0=0;var j=W(x)===64?1:0;if(j)var Y=1-aL(1,x),z=Y&&1-n6(1,x);else var z=j;if(z){var F=w0(x);$0(x);var t0=F}else var t0=0;var $=c3(x),f0=$[1],c0=$[2],v0=Oo(1,x),s0=v0||(hr(1,x)===6?1:0),o0=Nx(x),E0=W(x),k0=0;if(typeof E0=="number")switch(E0){case 103:var M0=w0(x);$0(x);var g0=[0,[0,o0,[0,0,m0([0,M0],0,0)]]];k0=1;break;case 104:var D0=w0(x);$0(x);var g0=[0,[0,o0,[0,1,m0([0,D0],0,0)]]];k0=1;break}else if(E0[0]===4&&!N(E0[3],Ta)&&s0){var cx=w0(x);$0(x);var g0=[0,[0,o0,[0,2,m0([0,cx],0,0)]]];k0=1}if(!k0)var g0=0;var Z0=0;if(g0){var n0=0,nx=g0[1][1];if((z||f0)&&(n0=1),n0){ex(x,[0,nx,ut]);var xx=0;Z0=1}}if(!Z0)var xx=g0;var yx=0;if(!f0&&xx){var px=c3(x),Tx=px[2],O0=px[1];yx=1}if(!yx)var Tx=c0,O0=f0;var P0=Ll([0,o,[0,i0,[0,t0,[0,Tx,0]]]]),N0=W(x);if(!z&&!O0&&typeof N0!="number"&&N0[0]===4){var J0=N0[3];if(!N(J0,Tv)){var I0=w0(x),Q=jo(g30,x)[2];if(MX(x))return vL(x,r,e,Q,z,O0,J,a,xx,P0);oL(x,a),sL(x,xx),Sn(x,Q);var G=Fx(P0,I0),V=a0([0,r],function(X0){return dm(X0,1,1)},x),p0=V[2],d0=p0[1],A0=p0[2],M=V[1],L0=cL(d0),V0=0;if(J){if(L0){var B0=L0[1],vx=B0[1];N(B0[2],yo)||(ex(x,[0,vx,[15,P30,J,0,0]]),V0=1)}}else if(L0){var b0=L0[1],hx=b0[1];N(b0[2],kv)||(ex(x,[0,hx,9]),V0=1)}return[0,[0,M,[0,2,d0,A0,J,e,m0([0,G],0,0)]]]}if(!N(J0,Oa)){var W0=w0(x),T=jo(A30,x)[2];if(MX(x))return vL(x,r,e,T,z,O0,J,a,xx,P0);oL(x,a),sL(x,xx),Sn(x,T);var K=Fx(P0,W0),H0=a0([0,r],function(X0){return dm(X0,1,0)},x),sx=H0[2],ux=sx[1],z0=sx[2],Px=H0[1],kx=cL(ux),$x=0;if(J){if(kx){var Qx=kx[1],j0=Qx[1];N(Qx[2],yo)||(ex(x,[0,j0,[15,I30,J,0,0]]),$x=1)}}else if(kx){var rr=kx[1],zx=rr[1];N(rr[2],kv)||(ex(x,[0,zx,9]),$x=1)}return[0,[0,Px,[0,3,ux,z0,J,e,m0([0,K],0,0)]]]}}return vL(x,r,e,jo(N30,x)[2],z,O0,J,a,xx,P0)},DX=function(x,r,e,t){var u=x?x[1]:0,i=Qs(1,r),f=Fx(u,iL(i)),o=w0(i),a=W(i),y=0;typeof a!="number"&&a[0]===4&&!N(a[3],$h)&&(Bx(i,87),$0(i),y=1),u0(i,40);var h=rO(1,i),k=W(h),A=0;if(e&&typeof k=="number"){var g=0;if(52<=k?k!==98&&53<=k&&(g=1):k!==41&&k&&(g=1),!g){var R=0;A=1}}if(!A)if(es(i))var I=p(lx[13],0,h),C=I1(i)[2],R=[0,p(C,I,function($,f0){return p(qx($,Na,71),$,f0)})];else{aB(i,h30);var R=[0,[0,Nx(i),_30]]}var L=Ve(i);if(L)var U=L[1],B=I1(i)[2],X=[0,p(B,U,function($,f0){return p(qx($,VP,70),$,f0)})];else var X=0;var J=w0(i);if(v1(i,41))var e0=a0(0,function($){var f0=l(vm,bR(0,$));if(W($)===98)var c0=I1($)[2],v0=p(c0,f0,function(o0,E0){return p(qx(o0,an,65),o0,E0)});else var v0=f0;var s0=bB($);return[0,v0,s0,m0([0,J],0,0)]},i),i0=e0[1],j=e0[2],Y=I1(i)[2],z=[0,[0,i0,p(Y,j,function($,f0){return G0(qx($,-663447790,66),$,i0,f0)})]];else var z=0;if(W(i)===52){1-T1(i)&&Bx(i,P1);var F=[0,kB(i,LX(i,1))]}else var F=0;var t0=a0(0,function($){var f0=w0($);if(!v1($,0))return Hs($,0),T30;$[30][1]=[0,[0,h2[1],0],$[30][1]];for(var c0=0,v0=RT0,s0=0;;){var o0=W($);if(typeof o0=="number"){var E0=o0-2|0;if(P1>>0){if(fe>=E0+1>>>0){var k0=gx(s0),M0=function(j0,rr){return l(Ul(function(zx){return 1-p(h2[3],zx[1],j0)}),rr)},D0=$[30][1];if(D0){var cx=D0[1],g0=cx[1];if(D0[2]){var Z0=D0[2],n0=M0(g0,cx[2]),nx=Ol(Z0),xx=nx[2],yx=nx[1],px=VK(Z0),Tx=[0,[0,yx,Fx(xx,n0)],px];$[30][1]=Tx}else{var O0=M0(g0,cx[2]);S2(function(j0){return ex($,[0,j0[2],[22,j0[1]]])},O0),$[30][1]=0}}else Rx(ts0);u0($,1);var P0=W($),N0=0;if(!t){var J0=0;if((typeof P0!="number"||P0!==1&&Er!==P0)&&(J0=1),J0)if(b2($)){var I0=Uo($);N0=1}else{var I0=0;N0=1}}if(!N0)var I0=mx($);return[0,k0,m0([0,f0],[0,I0],0)]}}else if(E0===6){u0($,8);continue}}var Q=CS0($);switch(Q[0]){case 0:var G=Q[1],V=G[2],p0=G[1];switch(V[1]){case 0:if(V[4])var z0=v0,Px=c0;else{c0&&ex($,[0,p0,18]);var z0=v0,Px=1}break;case 1:var d0=V[2],A0=d0[0]===4?mm($,v0,d0[1],Rj):v0,z0=A0,Px=c0;break;case 2:var M=V[2],L0=M[0]===4?mm($,v0,M[1],PN):v0,z0=L0,Px=c0;break;default:var V0=V[2],B0=V0[0]===4?mm($,v0,V0[1],BP):v0,z0=B0,Px=c0}break;case 1:var vx=Q[1][2],b0=vx[4],hx=vx[1];switch(hx[0]){case 4:Rx(w30);break;case 0:case 3:var W0=hx[1],T=W0[2][1],K=Nr(T,kv),H0=W0[1];if(K)var ux=K;else var sx=Nr(T,yo),ux=sx&&b0;ux&&ex($,[0,H0,[15,T,b0,0,0]]);break}var z0=v0,Px=c0;break;default:var z0=mm($,v0,Q[1][2][1],UD),Px=c0}var c0=Px,v0=z0,s0=[0,Q,s0]}},i);return[0,R,t0,X,z,F,f,m0([0,o],0,0)]},km=function(x,r){return a0(0,function(e){return[2,DX([0,r],e,e[7],0)]},x)},RS0=function(x){return[5,DX(0,x,1,1)]},OS0=0,LS0=function(x){return a0(OS0,RS0,x)},jX=SB(lx),zX=function(x){var r=d6(x);if(x[5])Wv(x,r[1]);else{var e=r[2],t=0;if(e[0]===26){var u=e[1],i=r[1],f=0;u[4]?(ex(x,[0,i,5]),f=1):u[5]&&(ex(x,[0,i,26]),f=1),f&&(t=1)}}return r},hm=function(x,r){var e=r[4],t=r[3],u=r[2],i=r[1];e&&Xt(x,80);var f=w0(x);return u0(x,[2,[0,i,u,t,e]]),[0,i,[0,u,t,m0([0,f],[0,mx(x)],0)]]},e2=function(x,r,e){var t=x?x[1]:al0,u=r?r[1]:1,i=W(e);if(typeof i=="number"){var f=i-2|0;if(P1>>0){if(fe>=f+1>>>0){var o=function(h,k){return h};return[1,[0,mx(e),o]]}}else if(f===6){$0(e);var a=W(e);if(typeof a=="number"){var y=0;if(a!==1&&Er!==a&&(y=1),!y)return[0,mx(e)]}return b2(e)?[0,Uo(e)]:ll0}}return b2(e)?[1,f6(e)]:(u&&S1([0,t],e),pl0)},Gs=function(x){var r=W(x);if(typeof r=="number"){var e=0;if(r!==1&&Er!==r&&(e=1),!e){var t=function(u,i){return u};return[0,mx(x),t]}}return b2(x)?f6(x):$d(x)},lL=function(x,r,e){var t=e2(0,0,r);if(t[0]===0)return[0,t[1],e];var u=t[1][2],i=gx(e);if(i)var f=i[2],o=i[1],a=gx([0,p(u,o,function(y,h){return G0(qx(y,634872468,72),y,x,h)}),f]);else var a=0;return[0,0,a]},KX=function x(r){return x.fun(r)},JX=function x(r){return x.fun(r)},YX=function x(r){return x.fun(r)},BX=function x(r){return x.fun(r)},XX=function x(r){return x.fun(r)},k6=function x(r,e){return x.fun(r,e)},WX=function x(r){return x.fun(r)},VX=function x(r){return x.fun(r)},h6=function x(r,e,t){return x.fun(r,e,t)},ZX=function x(r){return x.fun(r)},$X=function x(r){return x.fun(r)},_6=function x(r,e){return x.fun(r,e)},FX=function x(r){return x.fun(r)},QX=function x(r){return x.fun(r)},_m=function x(r,e){return x.fun(r,e)},HX=function x(r){return x.fun(r)},wm=function x(r,e){return x.fun(r,e)},qX=function x(r){return x.fun(r)},GX=function x(r){return x.fun(r)},Tm=function x(r,e){return x.fun(r,e)},bX=function x(r){return x.fun(r)},w6=function x(r,e,t){return x.fun(r,e,t)},T6=function x(r,e){return x.fun(r,e)},xW=function x(r,e){return x.fun(r,e)},rW=function x(r,e){return x.fun(r,e)},pL=function x(r,e){return x.fun(r,e)},eW=function x(r){return x.fun(r)},o3=function x(r){return x.fun(r)},Sm=function x(r,e,t){return x.fun(r,e,t)},yL=function x(r,e){return x.fun(r,e)},tW=function x(r,e){return x.fun(r,e)},dL=function x(r){return x.fun(r)},US0=function(x){var r=w0(x);u0(x,59);var e=W(x)===8?mx(x):0,t=e2(0,0,x),u=t[0]===0?t[1]:t[1][1];return[5,[0,m0([0,r],[0,Fx(e,u)],0)]]},MS0=0,DS0=function(x){var r=w0(x);u0(x,37);var e=r6(1,x),t=l(lx[2],e),u=1-x[5],i=u&&s6(t);i&&Wv(x,t[1]);var f=mx(x);u0(x,25);var o=mx(x);u0(x,4);var a=l(lx[7],x);u0(x,5);var y=W(x)===8?mx(x):0,h=e2(0,vl0,x),k=h[0]===0?Fx(y,h[1]):h[1][1];return[17,[0,t,a,m0([0,r],[0,Fx(f,Fx(o,k))],0)]]},jS0=0,nW=function(x,r,e){var t=e[2][1],u=e[1];return t&&!t[1][2][2]&&!t[2]?0:ex(x,[0,u,r])},mL=function(x,r){return!x[5]&&s6(r)?Wv(x,r[1]):0},zS0=function(x){var r=w0(x);u0(x,39);var e=x[19],t=e&&v1(x,65),u=Fx(r,w0(x));u0(x,4);var i=m0([0,u],0,0),f=W(x),o=0;if(typeof f=="number"&&f===64){var a=1;o=1}if(!o)var a=0;var y=e6(1,x),h=W(y),k=0;if(typeof h=="number"){if(24<=h){if(29>h)switch(h+kT|0){case 0:var A=a0(0,fX,y),g=A[2],I=g[3],C=g[1],R=A[1],F=I,t0=[0,[1,[0,R,[0,C,0,m0([0,g[2]],0,0)]]]];k=1;break;case 3:var L=a0(0,cX,y),U=L[2],B=U[3],X=U[1],J=L[1],F=B,t0=[0,[1,[0,J,[0,X,2,m0([0,U[2]],0,0)]]]];k=1;break;case 4:if(hr(1,y)!==17){var e0=a0(0,sX,y),i0=e0[2],j=i0[3],Y=i0[1],z=e0[1],F=j,t0=[0,[1,[0,z,[0,Y,1,m0([0,i0[2]],0,0)]]]];k=1}break}}else if(h===8){var F=0,t0=0;k=1}}if(!k)var F=0,t0=[0,[0,l(lx[8],y)]];var $=W(x);if(typeof $=="number"){if($===17){if(!t0)throw q0([0,Tr,ol0],1);var f0=t0[1];if(f0[0]===0)var c0=[1,DO(sl0,x,f0[1])];else{var v0=f0[1];nW(x,42,v0);var c0=[0,v0]}t?u0(x,63):u0(x,17);var s0=l(lx[7],x);u0(x,5);var o0=r6(1,x),E0=l(lx[2],o0);return mL(x,E0),[24,[0,c0,s0,E0,0,i]]}if($===63){if(!t0)throw q0([0,Tr,cl0],1);var k0=t0[1];if(k0[0]===0){var M0=DO(fl0,x,k0[1]),D0=1-t,cx=D0&&a,g0=0;if(cx){var Z0=M0[2];if(Z0[0]===2){var n0=Z0[1][1],nx=n0[1];N(n0[2][1],ko)||(ex(x,[0,nx,43]),g0=1)}}var xx=[1,M0]}else{var yx=k0[1];nW(x,43,yx);var xx=[0,yx]}u0(x,63);var px=l(lx[10],x);u0(x,5);var Tx=r6(1,x),O0=l(lx[2],Tx);return mL(x,O0),[25,[0,xx,px,O0,t,i]]}}if(S2(function(L0){return ex(x,L0)},F),t?u0(x,63):u0(x,8),t0)var P0=t0[1],N0=P0[0]===0?[0,[1,v2(x,P0[1])]]:[0,[0,P0[1]]],J0=N0;else var J0=0;var I0=W(x),Q=0;if(typeof I0=="number"&&I0===8){var G=0;Q=1}if(!Q)var G=[0,l(lx[7],x)];u0(x,8);var V=W(x),p0=0;if(typeof V=="number"&&V===5){var d0=0;p0=1}if(!p0)var d0=[0,l(lx[7],x)];u0(x,5);var A0=r6(1,x),M=l(lx[2],A0);return mL(x,M),[23,[0,J0,G,d0,M,i]]},KS0=0,uW=function(x){var r=Lo(x)?zX(x):l(lx[2],x),e=1-x[5],t=e&&s6(r);return t&&Wv(x,r[1]),r},JS0=function(x){var r=w0(x);u0(x,43);var e=uW(x);return[0,e,m0([0,r],0,0)]},YS0=function(x){var r=w0(x);u0(x,16);var e=Fx(r,w0(x));u0(x,4);var t=l(lx[7],x);u0(x,5);var u=uW(x),i=W(x)===43?[0,a0(0,JS0,x)]:0;return[27,[0,t,u,i,m0([0,e],0,0)]]},BS0=0,iW=function(x){return a0(BS0,YS0,x)},XS0=function(x){1-x[11]&&Bx(x,31);var r=w0(x),e=Nx(x);u0(x,19);var t=W(x)===8?mx(x):0,u=0;if(W(x)!==8&&!e3(x)){var i=[0,l(lx[7],x)];u=1}if(!u)var i=0;var f=i1(e,Nx(x)),o=e2(0,0,x),a=0;if(o[0]===0)var y=o[1];else{var h=o[1],k=h[1];if(i){var A=i[1],g=h[2],I=[0,p(g,A,function(B,X){return p(qx(B,an,73),B,X)})],C=t;a=1}else var y=k}if(!a)var I=i,C=Fx(t,y);return[31,[0,I,m0([0,r],[0,C],0),f]]},WS0=0,VS0=function(x){var r=w0(x);u0(x,20),u0(x,4);var e=l(lx[7],x);u0(x,5),u0(x,0);for(var t=il0;;){var u=t[2],i=t[1],f=W(x);if(typeof f=="number"){var o=0;if(f!==1&&Er!==f&&(o=1),!o){var a=gx(u);u0(x,1);var y=Gs(x)[1],h=e[1];return[32,[0,e,a,m0([0,r],[0,y],0),h]]}}var k=Qd(0,function(g){return function(I){var C=w0(I),R=W(I),L=0;if(typeof R=="number"&&R===36){g&&Bx(I,57),u0(I,36);var U=mx(I),B=0;L=1}if(!L){u0(I,33);var U=0,B=[0,l(lx[7],I)]}var X=g||(B===0?1:0);u0(I,86);var J=Fx(U,Gs(I)[1]);function e0(z){if(typeof z=="number"){var F=z-1|0,t0=0;if(32>>0?F===35&&(t0=1):30>>0&&(t0=1),t0)return 1}return 0}var i0=1,j=I[9]===1?I:[0,I[1],I[2],I[3],I[4],I[5],I[6],I[7],I[8],i0,I[10],I[11],I[12],I[13],I[14],I[15],I[16],I[17],I[18],I[19],I[20],I[21],I[22],I[23],I[24],I[25],I[26],I[27],I[28],I[29],I[30],I[31]],Y=p(lx[4],e0,j);return[0,[0,B,Y,m0([0,C],[0,J],0)],X]}}(i),x),t=[0,k[2],[0,k[1],u]]}},ZS0=0,$S0=function(x){var r=w0(x),e=Nx(x);u0(x,22),b2(x)&&ex(x,[0,e,58]);var t=l(lx[7],x),u=e2(0,0,x);if(u[0]===0)var o=t,a=u[1];else var i=u[1][2],f=0,o=p(i,t,function(y,h){return p(qx(y,an,74),y,h)}),a=f;return[33,[0,o,m0([0,r],[0,a],0)]]},FS0=0,QS0=function(x){var r=w0(x);u0(x,23);var e=l(lx[15],x);if(W(x)===34)var t=I1(x)[2],u=p(t,e,function(L,U){var B=U[1];return[0,B,G0(qx(L,Vp,4),L,B,U[2])]});else var u=e;var i=W(x),f=0;if(typeof i=="number"&&i===34){var o=[0,a0(0,function(U){var B=w0(U);u0(U,34);var X=mx(U);if(W(U)===4){u0(U,4);var J=[0,p(lx[18],U,71)];u0(U,5);var e0=J}else var e0=0;var i0=l(lx[15],U);if(W(U)===38)var Y=i0;else var j=Gs(U)[2],Y=p(j,i0,function(z,F){var t0=F[1];return[0,t0,G0(qx(z,Vp,75),z,t0,F[2])]});return[0,e0,Y,m0([0,B],[0,X],0)]},x)];f=1}if(!f)var o=0;var a=W(x),y=0;if(typeof a=="number"&&a===38){u0(x,38);var h=l(lx[15],x),k=h[1],A=h[2],g=Gs(x)[2],I=[0,[0,k,p(g,A,function(U,B){return G0(qx(U,Vp,76),U,k,B)})]];y=1}if(!y)var I=0;var C=o===0?1:0,R=C&&(I===0?1:0);return R&&ex(x,[0,u[1],60]),[34,[0,u,o,I,m0([0,r],0,0)]]},HS0=0,qS0=function(x){var r=fX(x),e=r[3],t=r[2],u=lL(0,x,r[1]),i=0,f=u[2],o=u[1];return S2(function(a){return ex(x,a)},e),[37,[0,f,i,m0([0,t],[0,o],0)]]},GS0=0,bS0=function(x){var r=cX(x),e=r[3],t=r[2],u=lL(2,x,r[1]),i=2,f=u[2],o=u[1];return S2(function(a){return ex(x,a)},e),[37,[0,f,i,m0([0,t],[0,o],0)]]},xE0=0,rE0=function(x){var r=sX(x),e=r[3],t=r[2],u=lL(1,x,r[1]),i=1,f=u[2],o=u[1];return S2(function(a){return ex(x,a)},e),[37,[0,f,i,m0([0,t],[0,o],0)]]},eE0=0,tE0=function(x){var r=w0(x);u0(x,25);var e=Fx(r,w0(x));u0(x,4);var t=l(lx[7],x);u0(x,5);var u=r6(1,x),i=l(lx[2],u),f=1-x[5],o=f&&s6(i);return o&&Wv(x,i[1]),[38,[0,t,i,m0([0,e],0,0)]]},nE0=0,uE0=function(x){var r=w0(x),e=l(lx[7],x),t=W(x),u=e[2];if(u[0]===8&&typeof t=="number"&&t===86){var i=u[1],f=i[2][1],o=e[1];u0(x,86),p(h2[3],f,x[3])&&ex(x,[0,o,[20,nl0,f]]);var a=x[31],y=x[30],h=x[29],k=x[28],A=x[27],g=x[26],I=x[25],C=x[24],R=x[23],L=x[22],U=x[21],B=x[20],X=x[19],J=x[18],e0=x[17],i0=x[16],j=x[15],Y=x[14],z=x[13],F=x[12],t0=x[11],$=x[10],f0=x[9],c0=x[8],v0=x[7],s0=x[6],o0=x[5],E0=x[4],k0=p(h2[4],f,x[3]),M0=[0,x[1],x[2],k0,E0,o0,s0,v0,c0,f0,$,t0,F,z,Y,j,i0,e0,J,X,B,U,L,R,C,I,g,A,k,h,y,a],D0=Lo(M0)?zX(M0):l(lx[2],M0);return[30,[0,i,D0,m0([0,r],0,0)]]}var cx=e2(ul0,0,x);if(cx[0]===0)var n0=e,nx=cx[1];else var g0=cx[1][2],Z0=0,n0=p(g0,e,function(xx,yx){return p(qx(xx,an,77),xx,yx)}),nx=Z0;return[22,[0,n0,0,m0(0,[0,nx],0)]]},iE0=0,fE0=function(x){var r=l(lx[7],x),e=e2(tl0,0,x);if(e[0]===0)var i=r,f=e[1];else var t=e[1][2],u=0,i=p(t,r,function(I,C){return p(qx(I,an,78),I,C)}),f=u;if(x[20]){var o=i[2];if(o[0]===12){var a=o[1][2],y=0;if(1i)switch(i-53|0){case 0:return a0([0,u],function(a){1-T1(a)&&Bx(a,fn);var y=a0(0,l(_6,0),a),h=[0,y[1],[29,y[2]]];return[21,[0,[0,h],0,0,0,m0([0,t],0,0)]]},e);case 8:if(hr(1,e)!==0)return a0([0,u],function(a){1-T1(a)&&Bx(a,fn);var y=hr(1,a);if(typeof y=="number"){if(y===48)return Bx(a,21),u0(a,61),[21,[0,0,0,0,0,m0([0,t],0,0)]];if(_1===y){u0(a,61);var h=Nx(a);u0(a,_1);var k=l(o3,a),A=k[1];return[21,[0,0,[0,[1,[0,h,0]]],[0,A],0,m0([0,t],[0,k[2]],0)]]}}var g=a0(0,l(k6,0),a),I=[0,g[1],[35,g[2]]];return[21,[0,[0,I],0,0,0,m0([0,t],0,0)]]},e);break;case 9:return a0([0,u],function(a){var y=a0(0,function(k){return l(p(h6,0,0),k)},a),h=[0,y[1],[36,y[2]]];return[21,[0,[0,h],0,0,0,m0([0,t],0,0)]]},e)}}else if(i===36)return a0([0,u],function(a){var y=Fx(t,w0(a)),h=a0(0,function(X){return u0(X,36)},a)[1],k=tB(1,a);if(Lo(k))var A=0,g=[0,d6(k)];else if(u6(k))var A=0,g=[0,km(k,x)];else if(W(k)===48)var A=0,g=[0,l(oX(0),k)];else if(fO(k))var A=0,g=[0,MO(k)];else{var I=l(lx[10],k),C=e2(0,0,k);if(C[0]===0)var U=C[1],B=I;else var R=C[1][2],L=0,U=L,B=p(R,I,function(e0,i0){return p(qx(e0,an,96),e0,i0)});var A=U,g=[1,B]}return[20,[0,h,g,m0([0,y],[0,A],0)]]},e)}if(u6(e))return a0([0,u],function(a){var y=km(a,x);return[21,[0,[0,y],0,0,1,m0([0,t],0,0)]]},e);if(Lo(e))return a0([0,u],function(a){l(Wd(a),x);var y=d6(a);return[21,[0,[0,y],0,0,1,m0([0,t],0,0)]]},e);if(typeof i=="number"){var f=i+kT|0;if(4>>0){if(f===24&&e[28][2])return a0([0,u],function(a){var y=p(lx[3],[0,x],a);return[21,[0,[0,y],0,0,1,m0([0,t],0,0)]]},e)}else if(1>>0)return a0([0,u],function(a){var y=p(lx[3],[0,x],a);return[21,[0,[0,y],0,0,1,m0([0,t],0,0)]]},e)}if(fO(e))return a0([0,u],function(a){var y=MO(a);return[21,[0,[0,y],0,0,1,m0([0,t],0,0)]]},e);if(typeof i=="number"&&_1===i)return a0([0,u],function(a){var y=Nx(a);u0(a,_1);var h=W(a),k=0;if(typeof h!="number"&&h[0]===4&&!N(h[3],Ct)){$0(a);var A=[0,_2(a)];k=1}if(!k)var A=0;var g=l(o3,a),I=g[1];return[21,[0,0,[0,[1,[0,y,A]]],[0,I],1,m0([0,t],[0,g[2]],0)]]},e);var o=v1(e,61)?0:1;return v1(e,0)?a0([0,u],function(a){var y=G0(Sm,0,a,0);u0(a,1);var h=W(a),k=0;if(typeof h!="number"&&h[0]===4&&!N(h[3],il)){var A=l(o3,a),g=A[2],I=[0,A[1]];k=1}if(!k){p(yL,a,y);var C=e2(0,0,a),R=C[0]===0?C[1]:C[1][1],g=R,I=0}return[21,[0,0,[0,[0,y]],I,o,m0([0,t],[0,g],0)]]},e):(S1(U30,e),p(lx[3],[0,x],e))}),C0(dL,function(x){var r=x?x[1]:0;function e(u){1-T1(u)&&Bx(u,Rs);var i=w0(u);u0(u,60);var f=eB(1,Qs(1,u)),o=Fx(i,w0(f));u0(f,49);var a=W(f);if(typeof a=="number")switch(a){case 36:var y=Fx(o,w0(f)),h=a0(0,function(N0){return u0(N0,36)},f)[1],k=tB(1,f),A=W(k),g=0;if(typeof A=="number")switch(A){case 15:var I=0,C=I,R=[0,[1,a0(0,function(N0){return p(Tm,0,N0)},k)]];g=1;break;case 40:var C=0,R=[0,[2,a0(0,l(_m,0),k)]];g=1;break}else if(A[0]===4&&!N(A[3],vo)&&k[28][1]){var C=0,R=[0,[3,a0(0,l(wm,0),k)]];g=1}if(!g){var L=qs(k),U=e2(0,0,k);if(U[0]===0)var J=U[1],e0=L;else var B=U[1][2],X=0,J=X,e0=p(B,L,function(I0,Q){return p(qx(I0,Sa,97),I0,Q)});var C=J,R=[0,[4,e0]]}return[9,[0,[0,h],R,0,0,m0([0,y],[0,C],0)]];case 48:if(f[28][2]){var i0=jX[1],j=a0(0,function(N0){return p(i0,0,N0)},f);return[9,[0,0,[0,[8,j]],0,0,m0([0,o],0,0)]]}break;case 53:if(r){var Y=a0(0,l(_6,0),f);return[9,[0,0,[0,[7,Y]],0,0,m0([0,o],0,0)]]}break;case 61:if(r){var z=a0(0,l(k6,0),f);return[9,[0,0,[0,[5,z]],0,0,m0([0,o],0,0)]]}break;case 62:var F=a0(0,p(h6,O30,0),f);return[9,[0,0,[0,[6,F]],0,0,m0([0,o],0,0)]];case 106:var t0=Nx(f);u0(f,_1);var $=W(f),f0=0;if(typeof $!="number"&&$[0]===4&&!N($[3],Ct)){$0(f);var c0=[0,p(lx[13],0,f)];f0=1}if(!f0)var c0=0;var v0=l(o3,f),s0=v0[1];return[9,[0,0,0,[0,[1,[0,t0,c0]]],[0,s0],m0([0,o],[0,v0[2]],0)]];case 15:case 24:case 27:case 28:case 40:var o0=W(f);if(typeof o0=="number"){var E0=0;if(24<=o0){if(41>o0){var k0=0;switch(o0+kT|0){case 0:var M0=[0,[0,a0(0,function(N0){return G0(w6,0,N0,0)},f)]];break;case 3:var M0=[0,[0,a0(0,function(N0){return G0(w6,2,N0,0)},f)]];break;case 4:var M0=[0,[0,a0(0,function(N0){return G0(w6,1,N0,0)},f)]];break;case 16:var M0=[0,[2,a0(0,l(_m,0),f)]];break;default:k0=1}if(!k0){var D0=M0;E0=1}}}else if(o0===15){var D0=[0,[1,a0(0,function(J0){return p(Tm,0,J0)},f)]];E0=1}if(E0)return[9,[0,0,D0,0,0,m0([0,o],0,0)]]}throw q0([0,Tr,L30],1)}else if(a[0]===4&&!N(a[3],vo)&&f[28][1]){var cx=[0,[3,a0(0,l(wm,0),f)]];return[9,[0,0,cx,0,0,m0([0,o],0,0)]]}var g0=W(f),Z0=0;typeof g0=="number"?g0===53?Bx(f,15):g0===61?Bx(f,16):Z0=1:Z0=1,u0(f,0);var n0=G0(Sm,0,f,0);u0(f,1);var nx=W(f),xx=0;if(typeof nx!="number"&&nx[0]===4&&!N(nx[3],il)){var yx=l(o3,f),px=yx[2],Tx=[0,yx[1]];xx=1}if(!xx){p(yL,f,n0);var O0=e2(0,0,f),P0=O0[0]===0?O0[1]:O0[1][1],px=P0,Tx=0}return[9,[0,0,0,[0,[0,n0]],Tx,m0([0,o],[0,px],0)]]}var t=0;return function(u){return a0(t,e,u)}});var oW=function x(r,e){return x.fun(r,e)},vW=function x(r,e){return x.fun(r,e)},A6=function x(r,e){return x.fun(r,e)},gm=function(x,r){return function(e){if(!e)return gx(r);var t=e[1];if(t[0]!==0){var u=t[1],i=u[1];if(e[2]){var f=e[2];return ex(x,[0,i,68]),l(gm(x,r),f)}var o=u[2],a=o[2];return l(gm(x,[0,[1,[0,i,[0,p(A6,x,o[1]),a]]],r]),0)}var y=t[1],h=y[2],k=e[2],A=y[1];switch(h[0]){case 0:var g=h[2],I=h[1],C=h[3];switch(I[0]){case 0:var R=[0,I[1]];break;case 1:var R=[1,I[1]];break;case 2:var R=[2,I[1]];break;case 3:var R=[3,I[1]];break;case 4:var R=Rx(ml0);break;default:var R=[4,I[1]]}var L=g[2],U=0;if(L[0]===2){var B=L[1];if(!B[1]){var X=[0,B[3]],J=B[2];U=1}}if(!U)var X=0,J=p(A6,x,g);var e0=[0,[0,[0,A,[0,R,J,X,C]]],r];break;case 1:ex(x,[0,h[2][1],54]);var e0=r;break;default:ex(x,[0,h[2][1],kl0]);var e0=r}return l(gm(x,e0),k)}};C0(oW,function(x,r){var e=r[2],t=e[2],u=e[1],i=r[1],f=n3(x);return[0,i,[0,[0,l(gm(x,0),u),f,t]]]});var aW=function(x,r){var e=r[1];return l(lx[23],r)?[0,p(A6,x,r)]:(ex(x,[0,e,40]),0)},v3=function(x,r){return function(e){if(!e)return gx(r);var t=e[1];switch(t[0]){case 0:var u=t[1],i=u[2];if(i[0]===2){var f=i[1];if(!f[1]){var o=e[2];return l(v3(x,[0,[0,[0,u[1],[0,f[2],[0,f[3]]]]],r]),o)}}var a=e[2],y=aW(x,u);if(y)var h=y[1],k=[0,[0,[0,h[1],[0,h,0]]],r];else var k=r;return l(v3(x,k),a);case 1:var A=t[1],g=A[1];if(e[2]){var I=e[2];return ex(x,[0,g,20]),l(v3(x,r),I)}var C=A[2],R=C[2],L=aW(x,C[1]),U=L?[0,[1,[0,g,[0,L[1],R]]],r]:r;return l(v3(x,U),0);default:var B=e[2];return l(v3(x,[0,[2,t[1]],r]),B)}}};C0(vW,function(x,r){var e=r[2],t=e[2],u=e[1],i=r[1],f=n3(x);return[0,i,[1,[0,l(v3(x,0),u),f,t]]]}),C0(A6,function(x,r){var e=r[2],t=r[1];switch(e[0]){case 0:return p(vW,x,[0,t,e[1]]);case 8:var u=e[1],i=u[2][1],f=u[1],o=0;if(x[5]&&Xv(i)?ex(x,[0,f,75]):o=1,o&&1-x[5]){var a=0;if(x[18]&&Nr(i,U2)?ex(x,[0,f,Ps]):a=1,a){var y=x[19],h=y&&Nr(i,_v);h&&ex(x,[0,f,6])}}return[0,t,[2,[0,u,n3(x),0]]];case 23:return p(oW,x,[0,t,e[1]]);default:return[0,t,[3,[0,t,e]]]}});var g6=function(x,r){var e=W(x);if(typeof e=="number"){if(e===6)return a0(0,function(i){var f=w0(i);u0(i,6);for(var o=0;;){var a=W(i);if(typeof a=="number"){var y=0;if(13<=a)Er===a&&(y=1);else if(7<=a)switch(a-7|0){case 0:y=1;break;case 2:var h=Nx(i);u0(i,9);var o=[0,[2,h],o];continue;case 5:var k=w0(i),A=a0(0,function(j){return u0(j,12),g6(j,r)},i),g=A[1],I=A[2],C=[1,[0,g,[0,I,m0([0,k],0,0)]]];W(i)!==7&&(ex(i,[0,g,20]),W(i)===9&&$0(i));var o=[0,C,o];continue}if(y){var R=gx(o),L=w0(i);u0(i,7);var U=W(i)===86?[1,Fv(i)]:n3(i);return[1,[0,R,U,K1([0,f],[0,mx(i)],L,0)]]}}var B=a0(0,function(i0){var j=g6(i0,r),Y=W(i0),z=0;if(typeof Y=="number"&&Y===82){u0(i0,82);var F=[0,l(lx[10],i0)];z=1}if(!z)var F=0;return[0,j,F]},i),X=B[2],J=[0,[0,B[1],[0,X[1],X[2]]]];W(i)!==7&&u0(i,9);var o=[0,J,o]}},x);if(!e){var t=function(i){var f=W(i);return typeof f=="number"&&f===82?(u0(i,82),[0,l(lx[10],i)]):0};return a0(0,function(i){var f=w0(i);u0(i,0);for(var o=0,a=0,y=0;;){var h=W(i);if(typeof h=="number"){var k=0;if(h!==1&&Er!==h&&(k=1),!k){a&&ex(i,[0,a[1],94]);var A=gx(y),g=w0(i);u0(i,1);var I=mx(i),C=W(i)===86?[1,Fv(i)]:n3(i);return[0,[0,A,C,K1([0,f],[0,I],g,0)]]}}if(W(i)===12)var R=w0(i),L=a0(0,function(Tx){return u0(Tx,12),g6(Tx,r)},i),U=L[2],B=L[1],X=[0,[1,[0,B,[0,U,m0([0,R],0,0)]]]];else{var J=Nx(i),e0=p(lx[20],0,i),i0=W(i),j=0;if(typeof i0=="number"&&i0===86){u0(i,86);var Y=a0([0,J],function(O0){var P0=g6(O0,r);return[0,P0,t(O0)]},i),z=Y[2],F=e0[2],t0=z[2],$=z[1],f0=Y[1];switch(F[0]){case 0:var c0=[0,F[1]];break;case 1:var c0=[1,F[1]];break;case 2:var c0=[2,F[1]];break;case 3:var c0=[3,F[1]];break;case 4:var c0=Rx(yl0);break;default:var c0=[4,F[1]]}var X=[0,[0,[0,f0,[0,c0,$,t0,0]]]]}else j=1;if(j){var v0=e0[2];if(v0[0]===3){var s0=v0[1],o0=s0[2][1],E0=s0[1];Bd(o0)?ex(i,[0,E0,99]):r3(o0)&&vt(i,[0,E0,84]);var k0=a0([0,J],function(O0,P0){return function(N0){var J0=[0,P0,[2,[0,O0,n3(N0),0]]];return[0,J0,t(N0)]}}(s0,E0),i),M0=k0[2],X=[0,[0,[0,k0[1],[0,[3,s0],M0[1],M0[2],1]]]]}else{S1(dl0,i);var X=0}}}if(X){var D0=X[1],cx=D0[1][1],g0=o?(ex(i,[0,cx,68]),0):a;if(D0[0]===0)var n0=g0,nx=o;else var Z0=W(i)===9?[0,Nx(i)]:0,n0=Z0,nx=1;W(i)!==1&&u0(i,9);var o=nx,a=n0,y=[0,D0,y]}}},x)}}var u=G0(lx[14],x,0,r);return[0,u[1],[2,u[2]]]},Nm=function(x){var r=W(x);if(typeof r=="number"){var e=r+pz|0,t=0;if(6>>0?e===14&&(t=1):4>>0&&(t=1),t)return mx(x)}return b2(x)?Uo(x):0},lW=function(x){return W(x)===1?0:[0,l(lx[7],x)]},bs=function(x){var r=Nx(x),e=W(x),t=0;if(typeof e!="number"&&e[0]===8){var u=e[1];t=1}if(!t){S1(Al0,x);var u=gl0}var i=w0(x);$0(x);var f=W(x),o=0;if(typeof f=="number"){var a=f+PM|0,y=0;if(72>>0?a===76&&(y=1):70>>0&&(y=1),y){var h=mx(x);o=1}}if(!o)var h=Nm(x);return[0,r,[0,u,m0([0,i],[0,h],0)]]},pW=function(x){var r=hr(1,x);if(typeof r=="number"){if(r===10)for(var e=a0(0,function(i){var f=[0,bs(i)];return u0(i,10),[0,f,bs(i)]},x);;){var t=W(x);if(typeof t=="number"&&t===10){var u=e[1],e=a0([0,u],function(f){return function(o){return u0(o,10),[0,[1,f],bs(o)]}}(e),x);continue}return[2,e]}if(r===86)return[1,a0(0,function(i){var f=bs(i);return u0(i,86),[0,f,bs(i)]},x)]}return[0,bs(x)]},N6=function(x,r){return Nr(x[2][1],r[2][1])},yW=function(x,r){var e=x[2],t=e[1],u=r[2],i=u[1],f=0,o=e[2],a=u[2];if(t[0]===0){var y=t[1];if(i[0]===0)var k=N6(y,i[1]);else f=1}else{var h=t[1];if(i[0]===0)f=1;else var k=yW(h,i[1])}if(f)var k=0;return k&&N6(o,a)},Im=function(x,r){switch(x[0]){case 0:var e=x[1];if(r[0]===0)return N6(e,r[1]);break;case 1:var t=x[1];if(r[0]===1){var u=t[2],i=r[1][2],f=u[2],o=i[2],a=N6(u[1],i[1]);return a&&N6(f,o)}break;default:var y=x[1];if(r[0]===2)return yW(y,r[1])}return 0},_L=function(x){switch(x[0]){case 0:return x[1][1];case 1:return x[1][1];default:return x[1][1]}},dW=function x(r,e){return x.fun(r,e)},wL=function x(r,e){return x.fun(r,e)},TL=function x(r,e){return x.fun(r,e)};C0(dW,function(x,r){var e=W(r);if(typeof e=="number"){if(e===0){J1(r,0);var t=a0(0,function(A){u0(A,0);var g=W(A),I=0;if(typeof g=="number"&&g===12){var C=w0(A);u0(A,12);var R=l(lx[10],A),B=[3,[0,R,m0([0,C],0,0)]];I=1}if(!I)var L=lW(A),U=L?0:w0(A),B=[2,[0,L,K1(0,0,U,0)]];return u0(A,1),B},r),u=t[2],i=t[1];return W1(r),[0,i,u]}}else if(e[0]===9){var f=e[3],o=e[2],a=e[1];return u0(r,e),[0,a,[4,[0,o,f]]]}var y=p(TL,x,r),h=y[2],k=y[1];return tn<=h[1]?[0,k,[1,h[2]]]:[0,k,[0,h[2]]]});var Pm=function(x){switch(x[0]){case 0:return x[1][2][1];case 1:var r=x[1][2],e=r[1],t=Zx(hl0,r[2][2][1]);return Zx(e[2][1],t);default:var u=x[1][2],i=u[1],f=u[2],o=i[0]===0?i[1][2][1]:Pm([2,i[1]]);return Zx(o,Zx(_l0,f[2][1]))}};C0(wL,function(x,r){var e=w0(r),t=a0(0,function(Rr){u0(Rr,98);var U1=W(Rr);if(typeof U1=="number"){if(U1===99)return $0(Rr),Tl0}else if(U1[0]===8){var _=pW(Rr),b=0;if(T1(Rr)&&W(Rr)===98&&Ue!==hr(1,Rr)){var x0=Zd(Rr,0,am);b=1}if(!b)var x0=0;for(var S0=0;;){var H=W(Rr);if(typeof H=="number"){if(H===0){var h0=w0(Rr);J1(Rr,0);var Y0=a0(0,function(Vx){u0(Vx,0),u0(Vx,12);var er=l(lx[10],Vx);return u0(Vx,1),er},Rr),U0=Y0[2],tx=Y0[1];W1(Rr);var S0=[0,[1,[0,tx,[0,U0,m0([0,h0],[0,Nm(Rr)],0)]]],S0];continue}}else if(H[0]===8){var S0=[0,[0,a0(0,function(Vx){var er=hr(1,Vx),Jx=0;if(typeof er=="number"&&er===86){var Or=[1,a0(0,function(ke){var lt=bs(ke);return u0(ke,86),[0,lt,bs(ke)]},Vx)];Jx=1}if(!Jx)var Or=[0,bs(Vx)];var Xx=W(Vx),X2=0;if(typeof Xx=="number"&&Xx===82){u0(Vx,82);var at=w0(Vx),de=W(Vx),En=0;if(typeof de=="number")if(de===0){var ro=w0(Vx);J1(Vx,0);var An=a0(0,function(ke){u0(ke,0);var lt=lW(ke);return u0(ke,1),lt},Vx),fs=An[1],me=An[2];W1(Vx);var gn=[0,me,K1([0,ro],[0,Nm(Vx)],0,0)];gn[1]||ex(Vx,[0,fs,51]);var re=[0,[1,[0,fs,gn]]]}else En=1;else if(de[0]===10){var Vt=de[3],dr=de[2],Zt=de[1];u0(Vx,de);var re=[0,[0,[0,Zt,[0,dr,Vt,m0([0,at],[0,Nm(Vx)],0)]]]]}else En=1;if(En){Bx(Vx,39);var re=[0,[0,[0,Nx(Vx),El0]]]}var Nn=re;X2=1}if(!X2)var Nn=0;return[0,Or,Nn]},Rr)],S0];continue}var Wx=gx(S0),Lx=[0,ao,[0,_,x0,v1(Rr,Ue),Wx]];return v1(Rr,99)?[0,Lx]:(Hs(Rr,99),[1,Lx])}}return Hs(Rr,99),Sl0},r);W1(r);var u=t[2];if(u[0]===0)var i=u[1],f=typeof i=="number"?0:i[2][3];else var f=1;if(f)var o=Lg,a=o,y=a0(0,function(Rr){return 0},r);else{J1(r,3);for(var h=t[2][1],k=typeof h=="number"?0:[0,h[2][1]],A=Nx(r),g=0;;){var I=x3(r),C=0;if(g&&k){var R=g[1],L=R[2],U=0,B=k[1],X=g[2];if(L[0]===0){var J=L[1],e0=J[2];if(e0)var i0=e0[1][2][1],j=1-Im(J[1][2][1],i0),Y=j&&Im(B,i0);else U=1}else U=1;if(U)var Y=0;if(Y){var z=R[2],F=0;if(z[0]===0){var t0=z[1],$=t0[2];if($){var f0=$[1],c0=i1(R[1],t0[3][1]),v0=[0,ao,f0],s0=[0,c0,[0,[0,t0[1],0,t0[3],t0[4]]]];F=1}}if(!F)var v0=Lg,s0=R;W1(r);var o0=[0,gx([0,s0,X]),I,v0];C=1}}if(!C){var E0=W(r),k0=0;if(typeof E0=="number"){if(E0===98){J1(r,2);var M0=W(r),D0=hr(1,r),cx=0;if(typeof M0=="number"&&M0===98&&typeof D0=="number"){var g0=0;if((Ue===D0||Er===D0)&&(g0=1),g0){var Z0=a0(0,function(b){u0(b,98),u0(b,Ue);var x0=W(b);if(typeof x0=="number"){if(x0===99)return $0(b),tn}else if(x0[0]===8){var S0=pW(b);return Vd(b,99),[0,ao,[0,S0]]}return Hs(b,99),tn},r),n0=Z0[2],nx=Z0[1],xx=typeof n0=="number"?[0,tn,nx]:[0,ao,[0,nx,n0[2]]],yx=r[24][1],px=0;if(yx){var Tx=yx[2];if(Tx){var O0=Tx[2];px=1}}if(!px)var O0=Rx(Hc0);r[24][1]=O0;var P0=ba(r),N0=bl(r[25][1],P0);r[26][1]=N0;var o0=[0,gx(g),I,xx];k0=1,cx=1}}if(!cx){var J0=p(wL,k,r),I0=J0[2],Q=J0[1],G=tn<=I0[1]?[0,Q,[1,I0[2]]]:[0,Q,[0,I0[2]]],g=[0,G,g];continue}}else if(Er===E0){S1(0,r);var o0=[0,gx(g),I,Lg];k0=1}}if(!k0){var g=[0,p(dW,k,r),g];continue}}var V=o0[3],p0=o0[1],d0=I?I[1]:A,a=V,y=[0,i1(A,d0),p0];break}}var A0=mx(r),M=0;if(typeof a!="number"){var L0=a[1],V0=0;if(ao===L0){var B0=a[2],vx=B0[2][1],b0=t[2],hx=B0[1];if(b0[0]===0){var W0=b0[1];if(typeof W0=="number")ex(r,[0,_L(vx),wl0]);else{var T=W0[2][1];if(1-Im(vx,T)){var K=0;if(x&&Im(x[1],vx)){var H0=[18,Pm(T)];ex(r,[0,_L(T),H0]),K=1}if(!K){var sx=[13,Pm(T)];ex(r,[0,_L(vx),sx])}}}}var ux=hx;V0=1}else if(tn===L0){var z0=a[2],Px=t[2];if(Px[0]===0){var kx=Px[1];typeof kx!="number"&&ex(r,[0,z0,[13,Pm(kx[2][1])]])}var ux=z0;V0=1}if(V0){var $x=ux;M=1}}if(!M)var $x=t[1];var Qx=t[2][1],j0=t[1];if(typeof Qx=="number"){var rr=0,zx=m0([0,e],[0,A0],0);if(typeof a!="number"){var X0=a[1],ir=0;if(ao===X0){var K0=a[2][1];ir=1}else if(tn===X0){var K0=a[2];ir=1}if(ir){var Sr=K0;rr=1}}if(!rr)var Sr=$x;var Dr=[0,tn,[0,j0,Sr,y,zx]]}else{var ax=Qx[2],br=0,t2=m0([0,e],[0,A0],0);if(typeof a!="number"&&ao===a[1]){var k1=[0,a[2]];br=1}if(!br)var k1=0;var Dr=[0,ao,[0,[0,j0,ax],k1,y,t2]]}return[0,i1(t[1],$x),Dr]}),C0(TL,function(x,r){return J1(r,2),p(wL,x,r)});var mW=function(x,r){var e=_2(r);return Fd(x,r,e),e},kW=function x(r){return x.fun(r)},SL=function x(r,e,t){return x.fun(r,e,t)},EL=function x(r){return x.fun(r)},hW=function x(r,e){return x.fun(r,e)},AL=function x(r,e){return x.fun(r,e)},gL=function x(r,e){return x.fun(r,e)},Cm=function x(r,e){return x.fun(r,e)},I6=function x(r,e){return x.fun(r,e)},Rm=function x(r){return x.fun(r)},_W=function x(r){return x.fun(r)},wW=function x(r){return x.fun(r)},TW=function x(r,e,t){return x.fun(r,e,t)},SW=function x(r){return x.fun(r)},EW=function x(r){return x.fun(r)},aE0=l(TL,0);C0(kW,function(x){var r=W(x),e=0;if(typeof r!="number"&&r[0]===6){var t=r[2],u=r[1];$0(x);var i=[0,[0,u,t]];e=1}if(!e)var i=0;var f=w0(x),o=gx(f),a=5;x:for(;;){if(o)for(var y=o[2],h=o[1],k=h[2],A=h[1],g=k[2],I=0,C=Gx(g);;){if(C<(I+5|0))var R=0;else{var L=Nr(z2(g,I,a),"@flow");if(!L){var I=I+1|0;continue}var R=L}if(!R){var o=y;continue x}x[31][1]=A[3];var U=gx([0,[0,A,k],y]);break}else var U=0;if(U===0){var B=0;if(f){var X=f[1],J=X[2];if(!J[1]){var e0=J[2],i0=0,j=X[1];if(1<=Gx(e0)&&C1(e0,0)===42){x[31][1]=j[3];var Y=[0,X,0];B=1}else i0=1}}if(!B)var Y=0}else var Y=U;var z=p(hW,x,function(v0){return 0}),F=Nx(x);u0(x,Er);var t0=h2[1];if(b1(function(v0,s0){var o0=s0[2];switch(o0[0]){case 20:return o6(x,v0,hn(0,[0,o0[1][1],Ll0]));case 21:var E0=o0[1],k0=E0[1];if(k0){if(!E0[2]){var M0=k0[1],D0=M0[2],cx=0,g0=M0[1];switch(D0[0]){case 37:var Z0=D0[1][1],n0=0,nx=b1(function(P0,N0){return b1(lO,P0,[0,N0[2][1],0])},n0,Z0);return b1(function(P0,N0){return o6(x,P0,N0)},v0,nx);case 2:case 26:var xx=D0[1][1];if(xx)var yx=xx[1];else cx=1;break;case 3:case 19:case 29:case 35:case 36:var yx=D0[1][1];break;default:cx=1}return cx?v0:o6(x,v0,hn(0,[0,g0,yx[2][1]]))}}else{var px=E0[2];if(px){var Tx=px[1];if(Tx[0]!==0)return v0;var O0=Tx[1];return b1(function(P0,N0){var J0=N0[2],I0=J0[2],Q=J0[1];return I0?o6(x,P0,I0[1]):o6(x,P0,Q)},v0,O0)}}return v0;default:return v0}},t0,z),z)var $=Ol(gx(z))[1],f0=i1(Ol(z)[1],$);else var f0=F;var c0=gx(x[2][1]);return[0,f0,[0,z,i,m0([0,Y],0,0),c0]]}});var lE0=function(x,r,e,t){for(var u=x,i=t;;){var f=i[3],o=i[2],a=i[1],y=W(u);if(typeof y=="number"&&Er===y)return[0,u,a,o,f];if(l(r,y))return[0,u,a,o,f];if(typeof y!="number"&&y[0]===2){var h=l(e,u),k=[0,h,o],A=h[2];if(A[0]===22){var g=A[1][2];if(g){var I=Nr(g[1],"use strict"),C=h[1],R=I&&1-u[21];R&&ex(u,[0,C,83]);var L=I?Qs(1,u):u,U=[0,y,a],B=f||I,u=L,i=[0,U,k,B];continue}}return[0,u,a,k,f]}return[0,u,a,o,f]}};C0(SL,function(x,r,e){var t=lE0(rB(1,x),r,e,Cl0),u=t[4],i=t[3],f=t[2],o=rB(0,t[1]),a=gx(f);return S2(function(y){if(typeof y!="number"&&y[0]===2){var h=y[1],k=h[4],A=h[1];return k&&vt(o,[0,A,80])}return Rx(Zx(Ol0,Zx(mY(y),Rl0)))},a),[0,o,i,u]}),C0(EL,function(x){var r=iL(x),e=W(x);if(typeof e=="number"){var t=e-49|0;if(11>=t>>>0)switch(t){case 0:return p(tW,r,x);case 1:l(Wd(x),r);var u=hr(1,x),i=0;if(typeof u=="number"){var f=0;if((u===4||u===10)&&(f=1),f){var o=S6(x);i=1}}if(!i)var o=hL(x);return o;case 11:if(hr(1,x)===49)return l(Wd(x),r),p(dL,0,x);break}}return p(I6,[0,r],x)}),C0(hW,function(x,r){var e=G0(SL,x,r,EL),t=e[2],u=p(AL,r,e[1]);return b1(function(i,f){return[0,f,i]},u,t)}),C0(AL,function(x,r){for(var e=0;;){var t=W(r);if(typeof t=="number"&&Er===t||l(x,t))return gx(e);var e=[0,l(EL,r),e]}}),C0(gL,function(x,r){var e=G0(SL,r,x,function(f){return p(I6,0,f)}),t=e[3],u=e[2],i=p(Cm,x,e[1]);return[0,b1(function(f,o){return[0,o,f]},i,u),t]}),C0(Cm,function(x,r){for(var e=0;;){var t=W(r);if(typeof t=="number"&&Er===t||l(x,t))return gx(e);var e=[0,p(I6,0,r),e]}}),C0(I6,function(x,r){var e=x?x[1]:0;1-u6(r)&&l(Wd(r),e);var t=W(r);if(typeof t=="number"){if(t===27)return a0(xE0,bS0,r);if(t===28)return a0(eE0,rE0,r)}if(Lo(r))return d6(r);if(u6(r))return km(r,e);if(typeof t=="number"){var u=t+B1|0;if(14>=u>>>0)switch(u){case 0:if(r[28][2])return l(oX(0),r);break;case 5:return l(QX,r);case 12:return p(pL,0,r);case 13:return l(VX,r);case 14:return l($X,r)}}return fO(r)?MO(r):l(Rm,r)}),C0(Rm,function(x){var r=W(x);if(typeof r=="number"&&Vi>r)switch(r){case 0:return l(XX,x);case 8:return l(KX,x);case 16:return iW(x);case 19:return a0(WS0,XS0,x);case 20:return a0(ZS0,VS0,x);case 22:return a0(FS0,$S0,x);case 23:return a0(HS0,QS0,x);case 24:return a0(GS0,qS0,x);case 25:return a0(nE0,tE0,x);case 26:return l(BX,x);case 32:return l(JX,x);case 35:return l(YX,x);case 37:return a0(jS0,DS0,x);case 39:return a0(KS0,zS0,x);case 43:return iW(x);case 59:return a0(MS0,US0,x);case 113:return S1(Nl0,x),[0,Nx(x),Il0];case 1:case 5:case 7:case 9:case 10:case 11:case 12:case 17:case 18:case 33:case 34:case 36:case 38:case 41:case 42:case 49:case 83:case 86:return S1(Pl0,x),$0(x),l(Rm,x)}if(Lo(x)){var e=d6(x);return Wv(x,e[1]),e}if(typeof r=="number"&&r===28&&hr(1,x)===6){var t=t6(1,x);return ex(x,[0,i1(Nx(x),t),4]),S6(x)}return es(x)?a0(iE0,uE0,x):(u6(x)&&(S1(0,x),$0(x)),S6(x))}),C0(_W,function(x){var r=Nx(x),e=l(Wt,x),t=W(x);return typeof t=="number"&&t===9?G0(ym,x,r,[0,e,0]):e}),C0(wW,function(x){var r=Nx(x),e=l(s3,x),t=W(x);return typeof t=="number"&&t===9?[0,G0(ym,x,r,[0,v2(x,e),0])]:e}),C0(TW,function(x,r,e){var t=r?r[1]:0;return a0(0,function(u){var i=1-t,f=mW([0,e],u),o=i&&(W(u)===85?1:0);return o&&(1-T1(u)&&Bx(u,_1),u0(u,85)),[0,f,xX(u),o]},x)}),C0(SW,function(x){var r=Nx(x),e=w0(x);u0(x,0);var t=p(Cm,function(o){return o===1?1:0},x),u=Nx(x),i=t===0?w0(x):0;u0(x,1);var f=[0,t,K1([0,e],[0,mx(x)],i,0)];return[0,i1(r,u),f]}),C0(EW,function(x){function r(t){var u=w0(t);u0(t,0);var i=p(gL,function(g){return g===1?1:0},t),f=i[1],o=i[2],a=f===0?w0(t):0;u0(t,1);var y=W(t),h=0;if(!x){var k=0;if((typeof y!="number"||y!==1&&Er!==y)&&(k=1),k)if(b2(t)){var A=Uo(t);h=1}else{var A=0;h=1}}if(!h)var A=mx(t);return[0,[0,f,K1([0,u],[0,A],a,0)],o]}var e=0;return function(t){return Qd(e,r,t)}}),UJ(jl0[1],lx,[0,kW,Rm,I6,Cm,gL,AL,_W,wW,yX,Wt,vm,IS0,mW,TW,SW,EW,aE0,g6,A6,jo,km,LS0,hS0,lm,Fv,pm]);var NL=[Qr,$w0,zs(0)],IL=[0,NL,[0]],pE0=id(Zw0,function(x){var r=IR(x,Vw0)[41],e=OR(x,0,0,Ww0,KR,1)[1];return OJ(x,r,function(t,u){return 0}),function(t,u){var i=fd(u,x);return l(e,i),LR(u,i,x)}}),yE0=Ov(IL)===Qr?IL:IL[1];QC(ME,yE0);var xo=l0,B2=null,AW=void 0,dE0=function(x){throw x},Om=function(x){return x!==AW?1:0};xo.String,xo.RegExp,xo.Object,xo.Date,xo.Math;var mE0=xo.Array,kE0=xo.Error,gW=function(x){return l(dE0,x)};xo.JSON,cJ(function(x){return x[1]===NL?[0,Mt(x[2].toString())]:0}),cJ(function(x){return x instanceof mE0?0:[0,Mt(x.toString())]});var NW=[0,0],hE0=nr,is=function(x){return UV(Ml(x))},Y1=function(x){return LV(Ml(x))},Lr=function(x,r){return Y1(gx(Qy(x,r)))},Ox=function(x,r){return r?l(x,r[1]):B2},zo=function(x,r){return r[0]===0?B2:l(x,r[1])},IW=function(x){return is([0,[0,Xw0,x[1]],[0,[0,Bw0,x[2]],0]])},PW=function(x){var r=x[1],e=r?nr(r[1][1]):B2,t=[0,[0,Kw0,IW(x[3])],0];return is([0,[0,Yw0,e],[0,[0,Jw0,IW(x[2])],t]])},E1=function(x){if(!x)return 0;var r=x[1],e=r[1];return m0([0,e],[0,Fx(r[3],r[2])],0)},P6=function(x,r,e){var t=r[e];return Om(t)?t|0:x},_E0=function(x,r){var e=jy(r,AW)?{}:r,t=Mt(x),u=P6(Pl[5],e,Qw0),i=P6(Pl[4],e,Hw0),f=P6(Pl[3],e,qw0),o=P6(Pl[2],e,Gw0),a=[0,P6(Pl[1],e,bw0),o,f,i,u,0,0],y=e[vM],h=Om(y),k=h&&y|0,A=e[BU],g=Om(A)?A|0:1,I=e.all_comments,C=Om(I)?I|0:1,R=[0,0],L=k?[0,function(dt){return R[1]=[0,dt,R[1]],0}]:0,U=Fw0[1],B=0;try{var X=0,J=FJ(t),e0=X,i0=J}catch(dt){var j=R1(dt);if(j!==To)throw q0(j,0);var Y=[0,[0,[0,B,Ja[2],Ja[3]],53],0],e0=Y,i0=FJ(ns0)}var z=[0,B,i0,Z00,0,a[4],lY,$00],F=[0,bl(z,0)],t0=[0,[0,e0],[0,0],h2[1],[0,0],a[5],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,[0,is0],[0,z],F,[0,L],a,B,[0,0],[0,us0]],$=l(lx[1],t0),f0=gx(t0[1][1]),c0=[0,aO[1],0],v0=gx(b1(function(dt,m3){var q=dt[2],P=dt[1];return p(aO[3],m3,P)?[0,P,q]:[0,p(aO[4],m3,P),[0,m3,q]]},c0,f0)[2]);if(v0){var s0=v0[2],o0=v0[1];if(U)throw q0([0,jT0,o0,s0],1)}NW[1]=0;for(var E0=Gx(t)-0|0,k0=Vc(t),M0=0,D0=0;;){if(D0===E0)var cx=M0;else{var g0=se(k0,D0),Z0=0;if(0<=g0&&!(Jr=g0){var n0=4;yx=1}if(!yx)var n0=0}}}if(n0===0){var M0=vO(M0,D0,0),D0=D0+1|0;continue}if((E0-D0|0)>=n0){var px=n0-1|0,Tx=D0+n0|0;if(3>>0)throw q0([0,Tr,KQ],1);switch(px){case 0:var O0=se(k0,D0);break;case 1:var O0=(se(k0,D0)&31)<<6|se(k0,D0+1|0)&63;break;case 2:var O0=(se(k0,D0)&15)<<12|(se(k0,D0+1|0)&63)<<6|se(k0,D0+2|0)&63;break;default:var O0=(se(k0,D0)&7)<<18|(se(k0,D0+1|0)&63)<<12|(se(k0,D0+2|0)&63)<<6|se(k0,D0+3|0)&63}var M0=vO(M0,D0,[0,O0]),D0=Tx;continue}var cx=vO(M0,D0,0)}for(var P0=iv0,N0=gx([0,6,cx]);;){var J0=P0[3],I0=P0[2],Q=P0[1];if(!N0){var G=Ml(gx(J0));if(g)var p0=$;else var V=l(pE0[1],0),p0=p(qx(V,-201766268,98),V,$);if(C)var A0=p0;else var d0=p0[2],A0=[0,p0[1],[0,d0[1],d0[2],d0[3],0]];var M=function(q,P,D,T0){var R0=[0,qd(G,P[3]),0],rx=[0,[0,zl0,Y1([0,qd(G,P[2]),R0])],0],Sx=Fx(rx,[0,[0,Kl0,PW(P)],0]);if(D){var Dx=D[1],jx=Dx[1];if(jx){var bx=Dx[2];if(bx)var mr=[0,[0,Jl0,Pn(bx)],0],or=[0,[0,Yl0,Pn(jx)],mr];else var or=[0,[0,Bl0,Pn(jx)],0];var sr=or}else var _r=Dx[2],cr=_r?[0,[0,Xl0,Pn(_r)],0]:0,sr=cr;var Pr=sr}else var Pr=0;return is(Qc(Fx(Sx,Fx(Pr,[0,[0,Wl0,nr(q)],0])),T0))},L0=function(q){return Lr(z0,q)},V0=function(q){var P=q[2],D=P[3],T0=P[1],R0=q[1],rx=[0,[0,T90,nr(An(P[2]))],0];return M(E90,R0,D,[0,[0,S90,Lr(fs,T0)],rx])},B0=function(q){var P=q[2],D=P[5],T0=P[4],R0=P[2],rx=P[1],Sx=q[1],Dx=[0,[0,Kd0,Lr(U0,P[3])],0],jx=[0,[0,Jd0,re(0,T0)],Dx],bx=[0,[0,Yd0,Ox(a2,R0)],jx];return M(Xd0,Sx,D,[0,[0,Bd0,X0(rx)],bx])},vx=function(q,P){var D=P[2],T0=D[7],R0=D[5],rx=D[4],Sx=D[2],Dx=D[6],jx=D[3],bx=D[1],mr=P[1];if(rx)var or=rx[1][2],_r=or[2],cr=or[1],sr=g2(or[3],T0),Pr=_r,$r=[0,cr];else var sr=T0,Pr=0,$r=0;if(R0)var Wr=R0[1][2],Vr=Wr[1],Ur=g2(Wr[2],sr),Fr=Ur,x1=Lr(S0,Vr);else var Fr=sr,x1=Y1(0);var l1=[0,[0,q50,x1],[0,[0,H50,Lr(x0,Dx)],0]],p1=[0,[0,G50,Ox(In,Pr)],l1],f1=[0,[0,b50,Ox(K0,$r)],p1],h1=[0,[0,xy0,Ox(a2,jx)],f1],Cr=Sx[2],D1=Cr[2],n2=Sx[1],A1=[0,[0,ry0,M(sy0,n2,D1,[0,[0,cy0,Lr(H,Cr[1])],0])],h1];return M(q,mr,Fr,[0,[0,ey0,Ox(X0,bx)],A1])},b0=function(q,P){var D=P[2],T0=D[5],R0=D[4],rx=D[3],Sx=D[2],Dx=D[1],jx=P[1],bx=q?B50:X50,mr=[0,[0,W50,Ox(dr,R0)],0],or=[0,[0,V50,Ox(dr,rx)],mr],_r=[0,[0,Z50,Ox(a2,Sx)],or];return M(bx,jx,T0,[0,[0,$50,X0(Dx)],_r])},hx=function(q){var P=q[2],D=P[4],T0=P[2],R0=P[1],rx=q[1],Sx=[0,[0,z50,dr(P[3])],0],Dx=[0,[0,K50,Ox(a2,T0)],Sx];return M(Y50,rx,D,[0,[0,J50,X0(R0)],Dx])},W0=function(q){var P=q[2],D=P[3],T0=P[1],R0=q[1],rx=[0,[0,T50,Y0(P[2])],0];return M(E50,R0,D,[0,[0,S50,X0(T0)],rx])},T=function(q){var P=q[2],D=P[3],T0=q[1],R0=P[5],rx=P[4],Sx=P[2],Dx=P[1],jx=g2(E1(D[2][3]),R0),bx=D[2],mr=bx[1],or=bx[2],_r=[0,[0,i50,Ox(a2,Sx)],0],cr=[0,[0,f50,zo(Jx,rx)],_r],sr=[0,[0,c50,k1(mr)],cr],Pr=[0,[0,s50,Ox(U1,or)],sr],$r=[0,[0,o50,k1(mr)],Pr];return M(a50,T0,jx,[0,[0,v50,X0(Dx)],$r])},K=function(q){var P=q[2],D=P[6],T0=P[4],R0=P[7],rx=P[5],Sx=P[3],Dx=P[2],jx=P[1],bx=q[1],mr=Y1(T0?[0,U0(T0[1]),0]:0),or=D?Lr(S0,D[1][2][1]):Y1(0),_r=[0,[0,r50,mr],[0,[0,x50,or],[0,[0,b80,Lr(U0,rx)],0]]],cr=[0,[0,e50,re(0,Sx)],_r],sr=[0,[0,t50,Ox(a2,Dx)],cr];return M(u50,bx,R0,[0,[0,n50,X0(jx)],sr])},H0=function(q){var P=q[2],D=P[2],T0=P[1],R0=P[4],rx=P[3],Sx=q[1],Dx=i1(T0[1],D[1]),jx=[0,[0,H80,Ox(fo,rx)],0];return M(G80,Sx,R0,[0,[0,q80,Dr(Dx,[0,T0,[1,D],0])],jx])},sx=function(q){var P=q[2],D=P[2],T0=P[1],R0=P[4],rx=P[3],Sx=q[1],Dx=i1(T0[1],D[1]),jx=[0,[0,$80,nr(An(rx))],0];return M(Q80,Sx,R0,[0,[0,F80,Dr(Dx,[0,T0,[1,D],0])],jx])},ux=function(q){var P=q[2],D=P[2],T0=q[1],R0=[0,[0,V80,L0(P[1])],0];return M(Z80,T0,E1(D),R0)},z0=function(q){var P=q[2],D=q[1];switch(P[0]){case 0:return ux([0,D,P[1]]);case 1:var T0=P[1],R0=T0[2];return M(Gl0,D,R0,[0,[0,ql0,Ox(X0,T0[1])],0]);case 2:return vx(F50,[0,D,P[1]]);case 3:var rx=P[1],Sx=rx[4],Dx=rx[3],jx=rx[6],bx=rx[5],mr=Dx[2][3],or=rx[2],_r=rx[1],cr=Sx[0]===0?0:[0,Sx[1]],sr=g2(E1(mr),jx),Pr=[0,[0,Jy0,Ox(a2,or)],0],$r=[0,[0,Yy0,Ox(Jx,cr)],Pr],Wr=Dx[2],Vr=Wr[2],Ur=Wr[1];if(Vr)var Fr=Vr[1],x1=Fr[2],l1=x1[2],p1=Fr[1],f1=M($y0,p1,l1,[0,[0,Zy0,tx(x1[1])],0]),h1=Y1(gx([0,f1,Qy(h0,Ur)]));else var h1=Y1(Hc(h0,Ur));var Cr=[0,[0,Xy0,X0(_r)],[0,[0,By0,h1],$r]];return M(Vy0,D,sr,[0,[0,Wy0,ux(bx)],Cr]);case 4:var D1=P[1],n2=D1[2];return M(x60,D,n2,[0,[0,bl0,Ox(X0,D1[1])],0]);case 5:return M(r60,D,P[1][1],0);case 6:return K([0,D,P[1]]);case 7:return T([0,D,P[1]]);case 8:return W0([0,D,P[1]]);case 9:var A1=P[1],W2=A1[5],ee=A1[4],Ax=A1[3],Kr=A1[2],r1=A1[1];if(Ax){var lr=Ax[1];if(lr[0]!==0&&!lr[1][2])return M(t60,D,W2,[0,[0,e60,Ox(j0,ee)],0])}if(Kr){var Br=Kr[1];switch(Br[0]){case 0:var V1=sx(Br[1]);break;case 1:var V1=H0(Br[1]);break;case 2:var V1=K(Br[1]);break;case 3:var V1=T(Br[1]);break;case 4:var V1=dr(Br[1]);break;case 5:var V1=hx(Br[1]);break;case 6:var V1=b0(1,Br[1]);break;case 7:var V1=B0(Br[1]);break;default:var V1=W0(Br[1])}var he=V1}else var he=B2;var V2=[0,[0,n60,Ox(j0,ee)],0],_e=[0,[0,i60,he],[0,[0,u60,b(Ax)],V2]],$t=r1?1:0;return M(c60,D,W2,[0,[0,f60,!!$t],_e]);case 10:return H0([0,D,P[1]]);case 11:var N2=P[1],u2=N2[5],I2=N2[4],l2=N2[2],mt=N2[1],P2=[0,[0,A50,Lr(U0,N2[3])],0],kt=[0,[0,g50,re(0,I2)],P2],Ze=[0,[0,N50,Ox(a2,l2)],kt];return M(P50,D,u2,[0,[0,I50,X0(mt)],Ze]);case 12:var we=P[1],Te=we[1],Se=we[4],Ee=we[3],Ae=we[2],Z1=Te[0]===0?X0(Te[1]):j0(Te[1]),ge=0,ht=Ee?"ES":"CommonJS";return M(a60,D,Se,[0,[0,v60,Z1],[0,[0,o60,ux(Ae)],[0,[0,s60,ht],ge]]]);case 13:var $e=P[1],te=$e[2];return M(p60,D,te,[0,[0,l60,Jx($e[1])],0]);case 14:var C2=P[1],Ft=C2[4],os=C2[2],_t=C2[1],wt=[0,[0,U50,dr(C2[3])],0],Qt=[0,[0,M50,Ox(a2,os)],wt];return M(j50,D,Ft,[0,[0,D50,X0(_t)],Qt]);case 15:return b0(1,[0,D,P[1]]);case 16:return sx([0,D,P[1]]);case 17:var ne=P[1],Tt=ne[3],Ht=ne[1],ue=[0,[0,y60,K0(ne[2])],0];return M(m60,D,Tt,[0,[0,d60,z0(Ht)],ue]);case 18:return M(k60,D,P[1][1],0);case 19:var qt=P[1],Cn=qt[3],Gt=qt[1],Rn=[0,[0,Dd0,Y0(qt[2])],0];return M(zd0,D,Cn,[0,[0,jd0,X0(Gt)],Rn]);case 20:var bt=P[1],On=bt[2],$o=bt[3],xn=On[0]===0?z0(On[1]):K0(On[1]);return M(w60,D,$o,[0,[0,_60,xn],[0,[0,h60,nr(_(1))],0]]);case 21:var St=P[1],vs=St[5],as=St[4],ls=St[3],Fo=St[2],k3=St[1];if(Fo){var co=Fo[1];if(co[0]!==0){var Qo=co[1][2],ea=[0,[0,T60,nr(_(as))],0],h3=[0,[0,S60,Ox(X0,Qo)],ea];return M(A60,D,vs,[0,[0,E60,Ox(j0,ls)],h3])}}var _3=[0,[0,g60,nr(_(as))],0],ta=[0,[0,N60,Ox(j0,ls)],_3],na=[0,[0,I60,b(Fo)],ta];return M(C60,D,vs,[0,[0,P60,Ox(z0,k3)],na]);case 22:var Ln=P[1],w3=Ln[3],T3=Ln[1],S3=[0,[0,R60,Ox(hE0,Ln[2])],0];return M(L60,D,w3,[0,[0,O60,K0(T3)],S3]);case 23:var Ne=P[1],E3=Ne[5],A3=Ne[4],ua=Ne[3],ps=Ne[2],so=Ne[1],Ho=function(K6){return K6[0]===0?V0(K6[1]):K0(K6[1])},qo=[0,[0,U60,z0(A3)],0],g3=[0,[0,M60,Ox(K0,ua)],qo],ia=[0,[0,D60,Ox(K0,ps)],g3];return M(z60,D,E3,[0,[0,j60,Ox(Ho,so)],ia]);case 24:var ys=P[1],oo=ys[1],Go=ys[5],Et=ys[4],Fe=ys[3],ds=ys[2],At=oo[0]===0?V0(oo[1]):tx(oo[1]),rn=[0,[0,J60,z0(Fe)],[0,[0,K60,!!Et],0]];return M(X60,D,Go,[0,[0,B60,At],[0,[0,Y60,K0(ds)],rn]]);case 25:var en=P[1],bo=en[1],N3=en[5],I3=en[4],xv=en[3],P3=en[2],fa=bo[0]===0?V0(bo[1]):tx(bo[1]),Km=[0,[0,V60,z0(xv)],[0,[0,W60,!!I3],0]];return M(F60,D,N3,[0,[0,$60,fa],[0,[0,Z60,K0(P3)],Km]]);case 26:var Un=P[1],Jm=Un[3],Ym=Un[2],PL=Un[9],CL=Un[8],RL=Un[7],OL=Un[6],LL=Un[5],UL=Un[4],ML=Ym[2][4],DL=Un[1],jL=Jm[0]===0?Jm[1]:Rx(u80),zL=g2(E1(ML),PL),KL=[0,[0,i80,Ox(a2,CL)],0],JL=[0,[0,c80,!1],[0,[0,f80,Or(RL)],KL]],YL=[0,[0,v80,!!UL],[0,[0,o80,!!LL],[0,[0,s80,Ox(fo,OL)],JL]]],BL=[0,[0,a80,ux(jL)],YL],XL=[0,[0,l80,ur(Ym)],BL];return M(y80,D,zL,[0,[0,p80,Ox(X0,DL)],XL]);case 27:var C3=P[1],Bm=C3[3],WL=C3[4],VL=C3[2],ZL=C3[1];if(Bm)var Xm=Bm[1][2],Wm=z0(bT0(Xm[1],Xm[2]));else var Wm=B2;var $L=[0,[0,H60,z0(VL)],[0,[0,Q60,Wm],0]];return M(G60,D,WL,[0,[0,q60,K0(ZL)],$L]);case 28:var ca=P[1],Vm=ca[4],Zm=ca[3],FL=ca[5],QL=ca[2],HL=ca[1];if(Vm){var O6=Vm[1];if(O6[0]===0)var qL=O6[1],Fm=Hc(function(J6){var O3=J6[3],L3=J6[2],bm=J6[1],_U=L3?i1(O3[1],L3[1][1]):O3[1],wU=L3?L3[1]:O3,x9=0,TU=0;if(bm){var Y6=0;switch(bm[1]){case 0:var r9=bu;Y6=1;break;case 1:var r9=ws;Y6=1;break}if(Y6){var e9=r9;x9=1}}if(!x9)var e9=B2;var SU=[0,[0,Tw0,X0(wU)],[0,[0,ww0,e9],TU]];return M(Ew0,_U,0,[0,[0,Sw0,X0(O3)],SU])},qL);else var $m=O6[1],GL=$m[1],Fm=[0,M(_w0,GL,0,[0,[0,hw0,X0($m[2])],0]),0];var L6=Fm}else var L6=0;if(Zm)var Qm=Zm[1][1],bL=[0,[0,mw0,X0(Qm)],0],Hm=[0,M(kw0,Qm[1],0,bL),L6];else var Hm=L6;switch(HL){case 0:var U6=b60;break;case 1:var U6=x40;break;default:var U6=r40}var xU=[0,[0,t40,j0(QL)],[0,[0,e40,nr(U6)],0]];return M(u40,D,FL,[0,[0,n40,Y1(Hm)],xU]);case 29:return B0([0,D,P[1]]);case 30:var M6=P[1],rU=M6[3],eU=M6[1],tU=[0,[0,i40,z0(M6[2])],0];return M(c40,D,rU,[0,[0,f40,X0(eU)],tU]);case 31:var qm=P[1],nU=qm[2];return M(o40,D,nU,[0,[0,s40,Ox(K0,qm[1])],0]);case 32:var D6=P[1],uU=D6[3],iU=D6[1],fU=[0,[0,v40,Lr(br,D6[2])],0];return M(l40,D,uU,[0,[0,a40,K0(iU)],fU]);case 33:var Gm=P[1],cU=Gm[2];return M(y40,D,cU,[0,[0,p40,K0(Gm[1])],0]);case 34:var R3=P[1],sU=R3[4],oU=R3[2],vU=R3[1],aU=[0,[0,d40,Ox(ux,R3[3])],0],lU=[0,[0,m40,Ox(t2,oU)],aU];return M(h40,D,sU,[0,[0,k40,ux(vU)],lU]);case 35:return hx([0,D,P[1]]);case 36:return b0(0,[0,D,P[1]]);case 37:return V0([0,D,P[1]]);case 38:var j6=P[1],pU=j6[3],yU=j6[1],dU=[0,[0,_40,z0(j6[2])],0];return M(T40,D,pU,[0,[0,w40,K0(yU)],dU]);default:var z6=P[1],mU=z6[3],kU=z6[1],hU=[0,[0,S40,z0(z6[2])],0];return M(A40,D,mU,[0,[0,E40,K0(kU)],hU])}},Px=function(q){var P=q[2],D=P[4],T0=P[3][2],R0=P[1],rx=q[1],Sx=[0,[0,U_0,M(Z_0,P[2],0,0)],0],Dx=[0,[0,M_0,Lr(uo,T0)],Sx];return M(j_0,rx,D,[0,[0,D_0,M(X_0,R0,0,0)],Dx])},kx=function(q){var P=q[2],D=P[1],T0=P[4],R0=P[2],rx=q[1],Sx=[0,[0,C_0,Lr(uo,P[3][2])],0],Dx=[0,[0,R_0,Ox(qv,R0)],Sx],jx=D[2],bx=jx[2],mr=jx[4],or=jx[3],_r=jx[1],cr=D[1],sr=bx?[0,[0,z_0,pt(bx[1])],0]:0,Pr=[0,[0,J_0,Lr(no,mr)],[0,[0,K_0,!!or],0]];return M(L_0,rx,T0,[0,[0,O_0,M(B_0,cr,0,Fx([0,[0,Y_0,io(_r)],Pr],sr))],Dx])},$x=function(q){var P=q[2],D=P[3],T0=P[1],R0=q[1],rx=[0,[0,c90,Lr(K0,P[2])],0];return M(o90,R0,D,[0,[0,s90,Lr(ro,T0)],rx])},Qx=function(q){var P=q[2],D=P[1],T0=P[2],R0=q[1],rx=D?Fm0:Qm0;return M(Gm0,R0,T0,[0,[0,qm0,!!D],[0,[0,Hm0,nr(rx)],0]])},j0=function(q){var P=q[2];return M($m0,q[1],P[3],[0,[0,Zm0,nr(P[1])],[0,[0,Vm0,nr(P[2])],0]])},rr=function(q){var P=q[2],D=P[2],T0=P[3],R0=q[1];return M(Wm0,R0,T0,[0,[0,Xm0,B2],[0,[0,Bm0,nr(z2(D,0,Gx(D)-1|0))],[0,[0,Ym0,nr(D)],0]]])},zx=function(q){var P=q[2];return M(Jm0,q[1],P[3],[0,[0,Km0,P[1]],[0,[0,zm0,nr(P[2])],0]])},X0=function(q){var P=q[2];return M(C80,q[1],P[2],[0,[0,P80,nr(P[1])],[0,[0,I80,B2],[0,[0,N80,!1],0]]])},ir=function(q){var P=q[2],D=P[3],T0=P[2],R0=P[9],rx=P[8],Sx=P[7],Dx=P[6],jx=P[5],bx=P[4],mr=T0[2][4],or=P[1],_r=q[1],cr=D[0]===0?D[1]:Rx(d80),sr=g2(E1(mr),R0),Pr=[0,[0,m80,Ox(a2,rx)],0],$r=[0,[0,h80,!1],[0,[0,k80,Or(Sx)],Pr]],Wr=[0,[0,T80,!!bx],[0,[0,w80,!!jx],[0,[0,_80,Ox(fo,Dx)],$r]]],Vr=[0,[0,S80,ux(cr)],Wr],Ur=[0,[0,E80,ur(T0)],Vr];return M(g80,_r,sr,[0,[0,A80,Ox(X0,or)],Ur])},K0=function(q){var P=q[2],D=q[1];switch(P[0]){case 0:var T0=P[1],R0=T0[2],rx=[0,[0,g40,Lr(En,T0[1])],0];return M(N40,D,E1(R0),rx);case 1:var Sx=P[1],Dx=Sx[3],jx=Sx[2],bx=Sx[9],mr=Sx[8],or=Sx[7],_r=Sx[6],cr=Sx[4],sr=jx[2][4];if(Dx[0]===0)var Pr=0,$r=ux(Dx[1]);else var Pr=1,$r=K0(Dx[1]);var Wr=g2(E1(sr),bx),Vr=[0,[0,I40,Ox(a2,mr)],0],Ur=[0,[0,C40,!!Pr],[0,[0,P40,Or(or)],Vr]],Fr=[0,[0,U40,$r],[0,[0,L40,!!cr],[0,[0,O40,!1],[0,[0,R40,Ox(fo,_r)],Ur]]]];return M(j40,D,Wr,[0,[0,D40,B2],[0,[0,M40,ur(jx)],Fr]]);case 2:var x1=P[1],l1=x1[1],p1=x1[4],f1=x1[3],h1=x1[2];if(l1){switch(l1[1]){case 0:var Cr=QH;break;case 1:var Cr=HH;break;case 2:var Cr=qH;break;case 3:var Cr=GH;break;case 4:var Cr=bH;break;case 5:var Cr=xq;break;case 6:var Cr=rq;break;case 7:var Cr=eq;break;case 8:var Cr=tq;break;case 9:var Cr=nq;break;case 10:var Cr=uq;break;case 11:var Cr=iq;break;case 12:var Cr=fq;break;case 13:var Cr=cq;break;default:var Cr=sq}var D1=Cr}else var D1=z40;var n2=[0,[0,K40,K0(f1)],0];return M(B40,D,p1,[0,[0,Y40,nr(D1)],[0,[0,J40,tx(h1)],n2]]);case 3:var A1=P[1],W2=A1[4],ee=A1[2],Ax=A1[1],Kr=[0,[0,X40,K0(A1[3])],0],r1=[0,[0,W40,K0(ee)],Kr];switch(Ax){case 0:var lr=NH;break;case 1:var lr=IH;break;case 2:var lr=PH;break;case 3:var lr=CH;break;case 4:var lr=RH;break;case 5:var lr=OH;break;case 6:var lr=LH;break;case 7:var lr=UH;break;case 8:var lr=MH;break;case 9:var lr=DH;break;case 10:var lr=jH;break;case 11:var lr=zH;break;case 12:var lr=KH;break;case 13:var lr=JH;break;case 14:var lr=YH;break;case 15:var lr=BH;break;case 16:var lr=XH;break;case 17:var lr=WH;break;case 18:var lr=VH;break;case 19:var lr=ZH;break;case 20:var lr=$H;break;default:var lr=FH}return M(Z40,D,W2,[0,[0,V40,nr(lr)],r1]);case 4:var Br=P[1],V1=Br[4],he=g2(E1(Br[3][2][2]),V1);return M($40,D,he,Wo(Br));case 5:return vx(Q50,[0,D,P[1]]);case 6:var V2=P[1],_e=V2[4],$t=V2[2],N2=V2[1],u2=[0,[0,F40,K0(V2[3])],0],I2=[0,[0,Q40,K0($t)],u2];return M(q40,D,_e,[0,[0,H40,K0(N2)],I2]);case 7:return ir([0,D,P[1]]);case 8:return X0(P[1]);case 9:var l2=P[1],mt=l2[2];return M(b40,D,mt,[0,[0,G40,K0(l2[1])],0]);case 10:return kx([0,D,P[1]]);case 11:return Px([0,D,P[1]]);case 12:return j0([0,D,P[1]]);case 13:return Qx([0,D,P[1]]);case 14:return M(f90,D,P[1],[0,[0,i90,B2],[0,[0,u90,lv],0]]);case 15:return zx([0,D,P[1]]);case 16:return rr([0,D,P[1]]);case 17:var P2=P[1],kt=P2[2],Ze=P2[1],we=P2[4],Te=P2[3];try{var Se=new RegExp(nr(Ze),nr(kt)),Ee=Se}catch{var Ee=B2}return M(n90,D,we,[0,[0,t90,Ee],[0,[0,e90,nr(Te)],[0,[0,r90,is([0,[0,x90,nr(Ze)],[0,[0,bm0,nr(kt)],0]])],0]]]);case 18:var Ae=P[1];return j0([0,D,[0,Ae[1],Ae[5],Ae[6]]]);case 19:var Z1=P[1],ge=Z1[4],ht=Z1[3],$e=Z1[2];switch(Z1[1]){case 0:var te=xp0;break;case 1:var te=rp0;break;default:var te=ep0}var C2=[0,[0,tp0,K0(ht)],0];return M(ip0,D,ge,[0,[0,up0,nr(te)],[0,[0,np0,K0($e)],C2]]);case 20:var Ft=P[1],os=Ft[3];return M(fp0,D,os,bv(Ft));case 21:var _t=P[1],wt=_t[3],Qt=_t[1],ne=[0,[0,cp0,X0(_t[2])],0];return M(op0,D,wt,[0,[0,sp0,X0(Qt)],ne]);case 22:var Tt=P[1],Ht=Tt[4],ue=Tt[3],qt=Tt[2],Cn=Tt[1];if(ue)var Gt=ue[1],Rn=g2(E1(Gt[2][2]),Ht),bt=Rn,On=ax(Gt);else var bt=Ht,On=Y1(0);var $o=[0,[0,ap0,Ox(pt,qt)],[0,[0,vp0,On],0]];return M(pp0,D,bt,[0,[0,lp0,K0(Cn)],$o]);case 23:var xn=P[1],St=xn[2],vs=[0,[0,yp0,Lr(Xx,xn[1])],0];return M(dp0,D,E1(St),vs);case 24:var as=P[1],ls=as[1],Fo=as[3],k3=ls[4],co=g2(E1(ls[3][2][2]),k3);return M(kp0,D,co,Fx(Wo(ls),[0,[0,mp0,!!Fo],0]));case 25:var Qo=P[1],ea=Qo[1],h3=ea[3],_3=[0,[0,hp0,!!Qo[3]],0];return M(_p0,D,h3,Fx(bv(ea),_3));case 26:var ta=P[1],na=ta[2];return M(Tp0,D,na,[0,[0,wp0,Lr(K0,ta[1])],0]);case 27:return M(Sp0,D,P[1][1],0);case 28:var Ln=P[1],w3=Ln[3],T3=Ln[1],S3=[0,[0,d90,$x(Ln[2])],0];return M(k90,D,w3,[0,[0,m90,K0(T3)],S3]);case 29:return $x([0,D,P[1]]);case 30:return M(Ep0,D,P[1][1],0);case 31:var Ne=P[1],E3=Ne[3],A3=Ne[1],ua=[0,[0,Ap0,Jx(Ne[2])],0];return M(Np0,D,E3,[0,[0,gp0,K0(A3)],ua]);case 32:var ps=P[1],so=ps[2],Ho=ps[1];if(typeof so=="number"){var qo=ps[3];return M(Pp0,D,qo,[0,[0,Ip0,K0(Ho)],0])}if(so[0]===0){var g3=ps[3],ia=[0,[0,Cp0,dr(so[1])],0];return M(Op0,D,g3,[0,[0,Rp0,K0(Ho)],ia])}var ys=ps[3],oo=[0,[0,Lp0,dr(so[1])],0];return M(Mp0,D,ys,[0,[0,Up0,K0(Ho)],oo]);case 33:var Go=P[1],Et=Go[3],Fe=Go[2],ds=Go[1];if(7<=ds)return M(jp0,D,Et,[0,[0,Dp0,K0(Fe)],0]);switch(ds){case 0:var At=zp0;break;case 1:var At=Kp0;break;case 2:var At=Jp0;break;case 3:var At=Yp0;break;case 4:var At=Bp0;break;case 5:var At=Xp0;break;case 6:var At=Wp0;break;default:var At=Rx(Vp0)}return M(Qp0,D,Et,[0,[0,Fp0,nr(At)],[0,[0,$p0,!0],[0,[0,Zp0,K0(Fe)],0]]]);case 34:var rn=P[1],en=rn[4],bo=rn[3],N3=rn[2],I3=rn[1]?Hp0:qp0;return M(r80,D,en,[0,[0,x80,nr(I3)],[0,[0,bp0,K0(N3)],[0,[0,Gp0,!!bo],0]]]);default:var xv=P[1],P3=xv[2],fa=[0,[0,e80,!!xv[3]],0];return M(n80,D,P3,[0,[0,t80,Ox(K0,xv[1])],fa])}},Sr=function(q){var P=q[2];return M(U80,q[1],P[2],[0,[0,L80,nr(P[1])],[0,[0,O80,B2],[0,[0,R80,!1],0]]])},Dr=function(q,P){var D=P[1][2],T0=D[2],R0=D[1],rx=[0,[0,M80,!!P[3]],0];return M(z80,q,T0,[0,[0,j80,nr(R0)],[0,[0,D80,zo(Jx,P[2])],rx]])},ax=function(q){return Lr(de,q[2][1])},br=function(q){var P=q[2],D=P[3],T0=P[1],R0=q[1],rx=[0,[0,K80,Lr(z0,P[2])],0];return M(Y80,R0,D,[0,[0,J80,Ox(K0,T0)],rx])},t2=function(q){var P=q[2],D=P[3],T0=P[1],R0=q[1],rx=[0,[0,B80,ux(P[2])],0];return M(W80,R0,D,[0,[0,X80,Ox(tx,T0)],rx])},k1=function(q){return Y1(Hc(function(P){var D=P[2];return Rr(0,D[3],P[1],[0,D[1]],D[2][2])},q))},Rr=function(q,P,D,T0,R0){if(T0)var rx=T0[1],Sx=rx[0]===0?Ox(X0,[0,rx[1]]):Ox(j0,[0,rx[1]]),Dx=Sx;else var Dx=Ox(X0,0);return M(w50,D,q,[0,[0,_50,Dx],[0,[0,h50,dr(R0)],[0,[0,k50,!!P],0]]])},U1=function(q){var P=q[2],D=P[4],T0=P[3],R0=P[2],rx=P[1],Sx=q[1];return Rr(D,T0,Sx,Fy(function(Dx){return[0,Dx]},rx),R0)},_=function(q){return q?C50:R50},b=function(q){if(!q)return Y1(0);var P=q[1];if(P[0]===0)return Lr(Xo,P[1]);var D=P[1],T0=D[2],R0=D[1];return Y1(T0?[0,M(L50,R0,0,[0,[0,O50,X0(T0[1])],0]),0]:0)},x0=function(q){var P=q[2],D=P[2],T0=q[1];return M(ny0,T0,D,[0,[0,ty0,K0(P[1])],0])},S0=function(q){var P=q[2],D=P[1],T0=q[1],R0=[0,[0,uy0,Ox(In,P[2])],0];return M(fy0,T0,0,[0,[0,iy0,X0(D)],R0])},H=function(q){switch(q[0]){case 0:var P=q[1],D=P[2],T0=D[6],R0=D[2],rx=D[5],Sx=D[4],Dx=D[3],jx=D[1],bx=P[1];switch(R0[0]){case 0:var cr=T0,sr=0,Pr=j0(R0[1]);break;case 1:var cr=T0,sr=0,Pr=zx(R0[1]);break;case 2:var cr=T0,sr=0,Pr=rr(R0[1]);break;case 3:var cr=T0,sr=0,Pr=X0(R0[1]);break;case 4:var cr=T0,sr=0,Pr=Sr(R0[1]);break;default:var mr=R0[1][2],or=mr[1],_r=g2(mr[2],T0),cr=_r,sr=1,Pr=K0(or)}switch(jx){case 0:var $r=oy0;break;case 1:var $r=vy0;break;case 2:var $r=ay0;break;default:var $r=ly0}var Wr=[0,[0,my0,nr($r)],[0,[0,dy0,!!Sx],[0,[0,yy0,!!sr],[0,[0,py0,Lr(x0,rx)],0]]]];return M(_y0,bx,cr,[0,[0,hy0,Pr],[0,[0,ky0,ir(Dx)],Wr]]);case 1:var Vr=q[1],Ur=Vr[2],Fr=Ur[7],x1=Ur[6],l1=Ur[2],p1=Ur[1],f1=Ur[5],h1=Ur[4],Cr=Ur[3],D1=Vr[1];switch(p1[0]){case 0:var Ax=Fr,Kr=0,r1=j0(p1[1]);break;case 1:var Ax=Fr,Kr=0,r1=zx(p1[1]);break;case 2:var Ax=Fr,Kr=0,r1=rr(p1[1]);break;case 3:var Ax=Fr,Kr=0,r1=X0(p1[1]);break;case 4:var n2=Rx(Cy0),Ax=n2[3],Kr=n2[2],r1=n2[1];break;default:var A1=p1[1][2],W2=A1[1],ee=g2(A1[2],Fr),Ax=ee,Kr=1,r1=K0(W2)}if(typeof l1=="number")if(l1)var lr=0,Br=0;else var lr=1,Br=0;else var lr=0,Br=[0,l1[1]];var V1=lr?[0,[0,Ry0,!!lr],0]:0,he=x1===0?0:[0,[0,Oy0,Lr(x0,x1)],0],V2=Fx(he,V1),_e=[0,[0,My0,!!Kr],[0,[0,Uy0,!!h1],[0,[0,Ly0,Ox(me,f1)],0]]],$t=[0,[0,Dy0,zo(Jx,Cr)],_e];return M(Ky0,D1,Ax,Fx([0,[0,zy0,r1],[0,[0,jy0,Ox(K0,Br)],$t]],V2));default:var N2=q[1],u2=N2[2],I2=u2[6],l2=u2[2],mt=u2[7],P2=u2[5],kt=u2[4],Ze=u2[3],we=u2[1],Te=N2[1];if(typeof l2=="number")if(l2)var Se=0,Ee=0;else var Se=1,Ee=0;else var Se=0,Ee=[0,l2[1]];var Ae=Se?[0,[0,wy0,!!Se],0]:0,Z1=I2===0?0:[0,[0,Ty0,Lr(x0,I2)],0],ge=Fx(Z1,Ae),ht=[0,[0,Ay0,!1],[0,[0,Ey0,!!kt],[0,[0,Sy0,Ox(me,P2)],0]]],$e=[0,[0,gy0,zo(Jx,Ze)],ht],te=[0,[0,Ny0,Ox(K0,Ee)],$e];return M(Py0,Te,mt,Fx([0,[0,Iy0,Sr(we)],te],ge))}},h0=function(q){var P=q[2],D=P[3],T0=P[2],R0=P[1],rx=q[1],Sx=P[4],Dx=R0[0]===0?X0(R0[1]):j0(R0[1]);if(D)var jx=[0,[0,Fy0,K0(D[1])],0],bx=M(Hy0,rx,0,[0,[0,Qy0,tx(T0)],jx]);else var bx=tx(T0);return M(xd0,rx,0,[0,[0,by0,Dx],[0,[0,Gy0,bx],[0,[0,qy0,!!Sx],0]]])},Y0=function(q){var P=q[2],D=q[1];switch(P[0]){case 0:var T0=P[1],R0=T0[4],rx=T0[1],Sx=[0,[0,kd0,!!T0[2]],[0,[0,md0,!!T0[3]],0]],Dx=[0,[0,hd0,Lr(function(Ax){var Kr=Ax[2],r1=Kr[1],lr=Ax[1],Br=[0,[0,pd0,Qx(Kr[2])],0];return M(dd0,lr,0,[0,[0,yd0,X0(r1)],Br])},rx)],Sx];return M(_d0,D,E1(R0),Dx);case 1:var jx=P[1],bx=jx[4],mr=jx[1],or=[0,[0,Td0,!!jx[2]],[0,[0,wd0,!!jx[3]],0]],_r=[0,[0,Sd0,Lr(function(Ax){var Kr=Ax[2],r1=Kr[1],lr=Ax[1],Br=[0,[0,vd0,zx(Kr[2])],0];return M(ld0,lr,0,[0,[0,ad0,X0(r1)],Br])},mr)],or];return M(Ed0,D,E1(bx),_r);case 2:var cr=P[1],sr=cr[1],Pr=cr[4],$r=cr[3],Wr=cr[2];if(sr[0]===0)var Vr=sr[1],Fr=Hc(function(Ax){var Kr=Ax[1];return M(od0,Kr,0,[0,[0,sd0,X0(Ax[2][1])],0])},Vr);else var Ur=sr[1],Fr=Hc(function(Ax){var Kr=Ax[2],r1=Kr[1],lr=Ax[1],Br=[0,[0,id0,j0(Kr[2])],0];return M(cd0,lr,0,[0,[0,fd0,X0(r1)],Br])},Ur);var x1=[0,[0,Nd0,Y1(Fr)],[0,[0,gd0,!!Wr],[0,[0,Ad0,!!$r],0]]];return M(Id0,D,E1(Pr),x1);case 3:var l1=P[1],p1=l1[3],f1=l1[1],h1=[0,[0,Pd0,!!l1[2]],0],Cr=[0,[0,Cd0,Lr(function(Ax){var Kr=Ax[1];return M(ud0,Kr,0,[0,[0,nd0,X0(Ax[2][1])],0])},f1)],h1];return M(Rd0,D,E1(p1),Cr);default:var D1=P[1],n2=D1[4],A1=D1[1],W2=[0,[0,Ld0,!!D1[2]],[0,[0,Od0,!!D1[3]],0]],ee=[0,[0,Ud0,Lr(function(Ax){var Kr=Ax[2],r1=Kr[1],lr=Ax[1],Br=[0,[0,rd0,rr(Kr[2])],0];return M(td0,lr,0,[0,[0,ed0,X0(r1)],Br])},A1)],W2];return M(Md0,D,E1(n2),ee)}},U0=function(q){var P=q[2],D=P[1],T0=P[3],R0=P[2],rx=q[1],Sx=D[0]===0?X0(D[1]):lt(D[1]);return M(Zd0,rx,T0,[0,[0,Vd0,Sx],[0,[0,Wd0,Ox(In,R0)],0]])},tx=function(q){var P=q[2],D=q[1];switch(P[0]){case 0:var T0=P[1],R0=T0[3],rx=T0[1],Sx=[0,[0,$d0,zo(Jx,T0[2])],0],Dx=[0,[0,Fd0,Lr(X2,rx)],Sx];return M(Qd0,D,E1(R0),Dx);case 1:var jx=P[1],bx=jx[3],mr=jx[1],or=[0,[0,Hd0,zo(Jx,jx[2])],0],_r=[0,[0,qd0,Lr(er,mr)],or];return M(Gd0,D,E1(bx),_r);case 2:return Dr(D,P[1]);default:return K0(P[1])}},Wx=function(q){var P=q[2],D=P[2],T0=P[1],R0=q[1];if(!D)return tx(T0);var rx=[0,[0,bd0,K0(D[1])],0];return M(rm0,R0,0,[0,[0,xm0,tx(T0)],rx])},Lx=function(q){var P=q[2],D=P[2],T0=q[1];return M(nm0,T0,D,[0,[0,tm0,fv],[0,[0,em0,Jx(P[1])],0]])},ur=function(q){var P=q[2],D=P[3],T0=P[2],R0=P[1];if(D){var rx=D[1],Sx=rx[2],Dx=Sx[2],jx=rx[1],bx=M(im0,jx,Dx,[0,[0,um0,tx(Sx[1])],0]),mr=gx([0,bx,Qy(Wx,T0)]),or=R0?[0,Lx(R0[1]),mr]:mr;return Y1(or)}var _r=Hc(Wx,T0),cr=R0?[0,Lx(R0[1]),_r]:_r;return Y1(cr)},Vx=function(q,P){var D=P[2];return M(cm0,q,D,[0,[0,fm0,tx(P[1])],0])},er=function(q){switch(q[0]){case 0:var P=q[1],D=P[2],T0=D[2],R0=D[1],rx=P[1];if(!T0)return tx(R0);var Sx=[0,[0,sm0,K0(T0[1])],0];return M(vm0,rx,0,[0,[0,om0,tx(R0)],Sx]);case 1:var Dx=q[1];return Vx(Dx[1],Dx[2]);default:return B2}},Jx=function(q){var P=q[1];return M(p_0,P,0,[0,[0,l_0,dr(q[2])],0])},Or=function(q){switch(q[0]){case 0:return B2;case 1:return Jx(q[1]);default:var P=q[1],D=P[2],T0=P[1];return M(d_0,T0,0,[0,[0,y_0,Zt([0,D[1],D[2]])],0])}},Xx=function(q){if(q[0]===0){var P=q[1],D=P[2],T0=P[1];switch(D[0]){case 0:var R0=D[3],rx=D[1],sr=0,Pr=R0,$r=0,Wr=am0,Vr=K0(D[2]),Ur=rx;break;case 1:var Sx=D[2],Dx=D[1],sr=0,Pr=0,$r=1,Wr=lm0,Vr=ir([0,Sx[1],Sx[2]]),Ur=Dx;break;case 2:var jx=D[2],bx=D[3],mr=D[1],sr=bx,Pr=0,$r=0,Wr=pm0,Vr=ir([0,jx[1],jx[2]]),Ur=mr;break;default:var or=D[2],_r=D[3],cr=D[1],sr=_r,Pr=0,$r=0,Wr=ym0,Vr=ir([0,or[1],or[2]]),Ur=cr}switch(Ur[0]){case 0:var f1=sr,h1=0,Cr=j0(Ur[1]);break;case 1:var f1=sr,h1=0,Cr=zx(Ur[1]);break;case 2:var f1=sr,h1=0,Cr=rr(Ur[1]);break;case 3:var f1=sr,h1=0,Cr=X0(Ur[1]);break;case 4:var Fr=Rx(dm0),f1=Fr[3],h1=Fr[2],Cr=Fr[1];break;default:var x1=Ur[1][2],l1=x1[1],p1=g2(x1[2],sr),f1=p1,h1=1,Cr=K0(l1)}return M(Sm0,T0,f1,[0,[0,Tm0,Cr],[0,[0,wm0,Vr],[0,[0,_m0,nr(Wr)],[0,[0,hm0,!!$r],[0,[0,km0,!!Pr],[0,[0,mm0,!!h1],0]]]]]])}var D1=q[1],n2=D1[2],A1=n2[2],W2=D1[1];return M(Am0,W2,A1,[0,[0,Em0,K0(n2[1])],0])},X2=function(q){if(q[0]!==0){var P=q[1];return Vx(P[1],P[2])}var D=q[1],T0=D[2],R0=T0[3],rx=T0[2],Sx=T0[1],Dx=T0[4],jx=D[1];switch(Sx[0]){case 0:var or=0,_r=0,cr=j0(Sx[1]);break;case 1:var or=0,_r=0,cr=zx(Sx[1]);break;case 2:var or=0,_r=0,cr=rr(Sx[1]);break;case 3:var or=0,_r=0,cr=X0(Sx[1]);break;default:var bx=Sx[1][2],mr=bx[2],or=mr,_r=1,cr=K0(bx[1])}if(R0)var sr=R0[1],Pr=i1(rx[1],sr[1]),$r=[0,[0,gm0,K0(sr)],0],Wr=M(Im0,Pr,0,[0,[0,Nm0,tx(rx)],$r]);else var Wr=tx(rx);return M(Mm0,jx,or,[0,[0,Um0,cr],[0,[0,Lm0,Wr],[0,[0,Om0,vu],[0,[0,Rm0,!1],[0,[0,Cm0,!!Dx],[0,[0,Pm0,!!_r],0]]]]]])},at=function(q){var P=q[2],D=P[2],T0=q[1];return M(jm0,T0,D,[0,[0,Dm0,K0(P[1])],0])},de=function(q){return q[0]===0?K0(q[1]):at(q[1])},En=function(q){switch(q[0]){case 0:return K0(q[1]);case 1:return at(q[1]);default:return B2}},ro=function(q){var P=q[2],D=P[1],T0=P[2],R0=q[1];return M(y90,R0,0,[0,[0,p90,is([0,[0,a90,nr(D[1])],[0,[0,v90,nr(D[2])],0]])],[0,[0,l90,!!T0],0]])},An=function(q){switch(q){case 0:return h90;case 1:return _90;default:return w90}},fs=function(q){var P=q[2],D=P[1],T0=q[1],R0=[0,[0,A90,Ox(K0,P[2])],0];return M(N90,T0,0,[0,[0,g90,tx(D)],R0])},me=function(q){var P=q[2],D=P[2],T0=q[1];switch(P[1]){case 0:var R0=I90;break;case 1:var R0=P90;break;case 2:var R0=C90;break;case 3:var R0=R90;break;case 4:var R0=O90;break;default:var R0=L90}return M(M90,T0,D,[0,[0,U90,nr(R0)],0])},gn=function(q){var P=q[2],D=P[1],T0=P[3],R0=P[2],rx=q[1],Sx=D[0]===0?X0(D[1]):lt(D[1]);return M(Sh0,rx,T0,[0,[0,Th0,Sx],[0,[0,wh0,Ox(In,R0)],0]])},re=function(q,P){var D=P[2],T0=D[4],R0=D[3],rx=D[2],Sx=D[1],Dx=P[1],jx=b1(function(Wr,Vr){var Ur=Wr[4],Fr=Wr[3],x1=Wr[2],l1=Wr[1];switch(Vr[0]){case 0:var p1=Vr[1],f1=p1[2],h1=f1[2],Cr=f1[1],D1=f1[8],n2=f1[7],A1=f1[6],W2=f1[5],ee=f1[4],Ax=f1[3],Kr=p1[1];switch(Cr[0]){case 0:var r1=j0(Cr[1]);break;case 1:var r1=zx(Cr[1]);break;case 2:var r1=rr(Cr[1]);break;case 3:var r1=X0(Cr[1]);break;case 4:var r1=Rx(Sk0);break;default:var r1=Rx(Ek0)}switch(h1[0]){case 0:var V1=Ak0,he=dr(h1[1]);break;case 1:var lr=h1[1],V1=gk0,he=Vt([0,lr[1],lr[2]]);break;default:var Br=h1[1],V1=Nk0,he=Vt([0,Br[1],Br[2]])}return[0,[0,M(Dk0,Kr,D1,[0,[0,Mk0,r1],[0,[0,Uk0,he],[0,[0,Lk0,!!A1],[0,[0,Ok0,!!Ax],[0,[0,Rk0,!!ee],[0,[0,Ck0,!!W2],[0,[0,Pk0,Ox(me,n2)],[0,[0,Ik0,nr(V1)],0]]]]]]]]),l1],x1,Fr,Ur];case 1:var V2=Vr[1],_e=V2[2],$t=_e[2],N2=V2[1];return[0,[0,M(zk0,N2,$t,[0,[0,jk0,dr(_e[1])],0]),l1],x1,Fr,Ur];case 2:var u2=Vr[1],I2=u2[2],l2=I2[6],mt=I2[4],P2=I2[3],kt=I2[2],Ze=I2[1],we=u2[1],Te=[0,[0,Jk0,!!mt],[0,[0,Kk0,Ox(me,I2[5])],0]],Se=[0,[0,Yk0,dr(P2)],Te],Ee=[0,[0,Bk0,dr(kt)],Se];return[0,l1,[0,M(Wk0,we,l2,[0,[0,Xk0,Ox(X0,Ze)],Ee]),x1],Fr,Ur];case 3:var Ae=Vr[1],Z1=Ae[2],ge=Z1[3],ht=Ae[1],$e=[0,[0,Vk0,!!Z1[2]],0];return[0,l1,x1,[0,M($k0,ht,ge,[0,[0,Zk0,Vt(Z1[1])],$e]),Fr],Ur];case 4:var te=Vr[1],C2=te[2],Ft=C2[6],os=C2[5],_t=C2[4],wt=C2[3],Qt=C2[1],ne=te[1],Tt=[0,[0,th0,!!wt],[0,[0,eh0,!!_t],[0,[0,rh0,!!os],[0,[0,xh0,dr(C2[2])],0]]]];return[0,l1,x1,Fr,[0,M(uh0,ne,Ft,[0,[0,nh0,X0(Qt)],Tt]),Ur]];default:var Ht=Vr[1],ue=Ht[2],qt=ue[6],Cn=ue[4],Gt=ue[3],Rn=ue[2],bt=ue[1],On=Ht[1],$o=0;switch(ue[5]){case 0:var xn="PlusOptional";break;case 1:var xn="MinusOptional";break;case 2:var xn="Optional";break;default:var xn=B2}var St=[0,[0,Qk0,Ox(me,Cn)],[0,[0,Fk0,xn],$o]],vs=[0,[0,Hk0,dr(Gt)],St],as=[0,[0,qk0,dr(Rn)],vs];return[0,[0,M(bk0,On,qt,[0,[0,Gk0,to(bt)],as]),l1],x1,Fr,Ur]}},yk0,R0),bx=jx[3],mr=jx[2],or=jx[1],_r=[0,[0,dk0,Y1(gx(jx[4]))],0],cr=[0,[0,mk0,Y1(gx(bx))],_r],sr=[0,[0,kk0,Y1(gx(mr))],cr],Pr=[0,[0,_k0,!!Sx],[0,[0,hk0,Y1(gx(or))],sr]],$r=q?[0,[0,wk0,!!rx],Pr]:Pr;return M(Tk0,Dx,E1(T0),$r)},Vt=function(q){var P=q[2],D=P[3],T0=P[2][2],R0=P[4],rx=T0[3],Sx=T0[2],Dx=T0[1],jx=P[1],bx=q[1],mr=g2(E1(T0[4]),R0),or=[0,[0,rk0,Ox(a2,jx)],0],_r=[0,[0,ek0,Ox(Hv,rx)],or],cr=D[0]===0?dr(D[1]):Zt(D[1]),sr=[0,[0,nk0,Ox(ke,Dx)],[0,[0,tk0,cr],_r]];return M(ik0,bx,mr,[0,[0,uk0,Lr(function(Pr){return Nn(0,Pr)},Sx)],sr])},dr=function(q){var P=q[2],D=q[1];switch(P[0]){case 0:return M(D90,D,P[1],0);case 1:return M(j90,D,P[1],0);case 2:return M(z90,D,P[1],0);case 3:return M(K90,D,P[1],0);case 4:return M(J90,D,P[1],0);case 5:return M(B90,D,P[1],0);case 6:return M(X90,D,P[1],0);case 7:return M(W90,D,P[1],0);case 8:return M(V90,D,P[2],0);case 9:return M(Y90,D,P[1],0);case 10:return M(a_0,D,P[1],0);case 11:var T0=P[1],R0=T0[2];return M($90,D,R0,[0,[0,Z90,dr(T0[1])],0]);case 12:return Vt([0,D,P[1]]);case 13:var rx=P[1],Sx=rx[2],Dx=rx[4],jx=rx[3],bx=rx[1],mr=g2(E1(Sx[2][3]),Dx),or=Sx[2],_r=or[2],cr=or[1],sr=[0,[0,l50,Ox(a2,bx)],0],Pr=[0,[0,p50,zo(Jx,jx)],sr],$r=[0,[0,y50,Ox(U1,_r)],Pr];return M(m50,D,mr,[0,[0,d50,k1(cr)],$r]);case 14:return re(1,[0,D,P[1]]);case 15:var Wr=P[1],Vr=Wr[3],Ur=Wr[2],Fr=[0,[0,ih0,re(0,Wr[1])],0];return M(ch0,D,Vr,[0,[0,fh0,Lr(U0,Ur)],Fr]);case 16:var x1=P[1],l1=x1[2];return M(oh0,D,l1,[0,[0,sh0,dr(x1[1])],0]);case 17:var p1=P[1],f1=p1[5],h1=p1[3],Cr=p1[2],D1=p1[1],n2=[0,[0,vh0,dr(p1[4])],0],A1=[0,[0,ah0,dr(h1)],n2],W2=[0,[0,lh0,dr(Cr)],A1];return M(yh0,D,f1,[0,[0,ph0,dr(D1)],W2]);case 18:var ee=P[1],Ax=ee[2];return M(mh0,D,Ax,[0,[0,dh0,to(ee[1])],0]);case 19:return gn([0,D,P[1]]);case 20:var Kr=P[1],r1=Kr[3];return M(gh0,D,r1,Ko(Kr));case 21:var lr=P[1],Br=lr[1],V1=Br[3],he=[0,[0,Nh0,!!lr[2]],0];return M(Ih0,D,V1,Fx(Ko(Br),he));case 22:var V2=P[1],_e=V2[1],$t=V2[2];return M(Ch0,D,$t,[0,[0,Ph0,Lr(dr,[0,_e[1],[0,_e[2],_e[3]]])],0]);case 23:var N2=P[1],u2=N2[1],I2=N2[2];return M(Oh0,D,I2,[0,[0,Rh0,Lr(dr,[0,u2[1],[0,u2[2],u2[3]]])],0]);case 24:var l2=P[1],mt=l2[2];return M(Uh0,D,mt,[0,[0,Lh0,eo(l2[1])],0]);case 25:var P2=P[1],kt=P2[2];return M(Kh0,D,kt,[0,[0,zh0,dr(P2[1])],0]);case 26:var Ze=P[1],we=Ze[2];return M(Yh0,D,we,[0,[0,Jh0,dr(Ze[1])],0]);case 27:var Te=P[1],Se=Te[2],Ee=Te[1],Ae=0;return M(Xh0,D,Se,[0,[0,Bh0,Lr(function(_t){var wt=_t[2],Qt=_t[1];switch(wt[0]){case 0:return dr(wt[1]);case 1:var ne=wt[1],Tt=ne[2],Ht=ne[1],ue=[0,[0,Wh0,!!ne[4]],0],qt=[0,[0,Vh0,Ox(me,ne[3])],ue],Cn=[0,[0,Zh0,dr(Tt)],qt];return M(Fh0,Qt,0,[0,[0,$h0,X0(Ht)],Cn]);default:var Gt=wt[1],Rn=Gt[1],bt=[0,[0,Qh0,dr(Gt[2])],0];return M(qh0,Qt,0,[0,[0,Hh0,Ox(X0,Rn)],bt])}},Ee)],Ae]);case 28:var Z1=P[1];return M(x_0,D,Z1[3],[0,[0,bh0,nr(Z1[1])],[0,[0,Gh0,nr(Z1[2])],0]]);case 29:var ge=P[1];return M(t_0,D,ge[3],[0,[0,e_0,ge[1]],[0,[0,r_0,nr(ge[2])],0]]);case 30:var ht=P[1];return M(i_0,D,ht[3],[0,[0,u_0,B2],[0,[0,n_0,nr(ht[2])],0]]);case 31:var $e=P[1],te=$e[1],C2=$e[2],Ft=0,os=te?f_0:c_0;return M(v_0,D,C2,[0,[0,o_0,!!te],[0,[0,s_0,nr(os)],Ft]]);case 32:return M(F90,D,P[1],0);case 33:return M(Q90,D,P[1],0);default:return M(H90,D,P[1],0)}},Zt=function(q){var P=q[2],D=P[2],T0=P[3],R0=D[1],rx=q[1],Sx=[0,[0,q90,!!P[1]],0],Dx=[0,[0,G90,Ox(dr,D[2])],Sx],jx=[0,[0,b90,X0(R0)],Dx];return M(xk0,rx,E1(T0),jx)},Nn=function(q,P){var D=P[2],T0=D[1],R0=P[1],rx=[0,[0,fk0,!!D[3]],0],Sx=[0,[0,ck0,dr(D[2])],rx];return M(ok0,R0,q,[0,[0,sk0,Ox(X0,T0)],Sx])},Hv=function(q){var P=q[2];return Nn(P[2],P[1])},ke=function(q){var P=q[2],D=P[2],T0=q[1],R0=[0,[0,ak0,dr(P[1][2])],[0,[0,vk0,!1],0]];return M(pk0,T0,D,[0,[0,lk0,Ox(X0,0)],R0])},lt=function(q){var P=q[2],D=P[1],T0=P[2],R0=q[1],rx=D[0]===0?X0(D[1]):lt(D[1]);return M(_h0,R0,0,[0,[0,hh0,rx],[0,[0,kh0,X0(T0)],0]])},Ko=function(q){var P=q[1],D=[0,[0,Eh0,dr(q[2])],0];return[0,[0,Ah0,dr(P)],D]},eo=function(q){if(q[0]===0)return X0(q[1]);var P=q[1],D=P[2],T0=D[2],R0=P[1],rx=eo(D[1]);return M(jh0,R0,0,[0,[0,Dh0,rx],[0,[0,Mh0,X0(T0)],0]])},a2=function(q){var P=q[2],D=P[2],T0=q[1],R0=[0,[0,m_0,Lr(to,P[1])],0];return M(k_0,T0,E1(D),R0)},to=function(q){var P=q[2],D=P[1][2],T0=P[5],R0=P[4],rx=P[2],Sx=D[2],Dx=D[1],jx=q[1],bx=P[3]?[0,[0,h_0,!0],0]:0,mr=[0,[0,__0,Ox(dr,T0)],0],or=[0,[0,w_0,Ox(me,R0)],mr];return M(E_0,jx,Sx,Fx([0,[0,S_0,nr(Dx)],[0,[0,T_0,zo(Jx,rx)],or]],bx))},In=function(q){var P=q[2],D=P[2],T0=q[1],R0=[0,[0,A_0,Lr(dr,P[1])],0];return M(g_0,T0,E1(D),R0)},pt=function(q){var P=q[2],D=P[2],T0=q[1],R0=[0,[0,N_0,Lr(Jo,P[1])],0];return M(I_0,T0,E1(D),R0)},Jo=function(q){if(q[0]===0)return dr(q[1]);var P=q[1],D=P[1],T0=P[2][1];return gn([0,D,[0,[0,hn(0,[0,D,P_0])],0,T0]])},no=function(q){if(q[0]===0){var P=q[1],D=P[2],T0=D[1],R0=D[2],rx=P[1],Sx=T0[0]===0?yt(T0[1]):cs(T0[1]);return M(Q_0,rx,0,[0,[0,F_0,Sx],[0,[0,$_0,Ox(a3,R0)],0]])}var Dx=q[1],jx=Dx[2],bx=jx[2],mr=Dx[1];return M(q_0,mr,bx,[0,[0,H_0,K0(jx[1])],0])},qv=function(q){var P=q[1];return M(V_0,P,0,[0,[0,W_0,io(q[2][1])],0])},Yo=function(q){var P=q[2],D=P[1],T0=q[1],R0=P[2],rx=D?K0(D[1]):M(G_0,[0,T0[1],[0,T0[2][1],T0[2][2]+1|0],[0,T0[3][1],T0[3][2]-1|0]],0,0);return M(xw0,T0,E1(R0),[0,[0,b_0,rx],0])},uo=function(q){var P=q[2],D=q[1];switch(P[0]){case 0:return kx([0,D,P[1]]);case 1:return Px([0,D,P[1]]);case 2:return Yo([0,D,P[1]]);case 3:var T0=P[1],R0=T0[2];return M(ew0,D,R0,[0,[0,rw0,K0(T0[1])],0]);default:var rx=P[1];return M(uw0,D,0,[0,[0,nw0,nr(rx[1])],[0,[0,tw0,nr(rx[2])],0]])}},yt=function(q){var P=q[2];return M(lw0,q[1],P[2],[0,[0,aw0,nr(P[1])],0])},cs=function(q){var P=q[2],D=P[1],T0=q[1],R0=[0,[0,sw0,yt(P[2])],0];return M(vw0,T0,0,[0,[0,ow0,yt(D)],R0])},Bo=function(q){var P=q[2],D=P[1],T0=P[2],R0=q[1],rx=D[0]===0?yt(D[1]):Bo(D[1]);return M(cw0,R0,0,[0,[0,fw0,rx],[0,[0,iw0,yt(T0)],0]])},io=function(q){switch(q[0]){case 0:return yt(q[1]);case 1:return cs(q[1]);default:return Bo(q[1])}},a3=function(q){if(q[0]===0){var P=q[1];return j0([0,P[1],P[2]])}var D=q[1];return Yo([0,D[1],D[2]])},Xo=function(q){var P=q[2],D=P[2],T0=P[1],R0=q[1],rx=X0(D?D[1]:T0);return M(dw0,R0,0,[0,[0,yw0,X0(T0)],[0,[0,pw0,rx],0]])},Pn=function(q){return Lr(Gv,q)},Gv=function(q){var P=q[2],D=q[1];if(P[1])var T0=P[2],R0=Aw0;else var T0=P[2],R0=gw0;return M(R0,D,0,[0,[0,Nw0,nr(T0)],0])},fo=function(q){var P=q[2],D=P[1],T0=P[2],R0=q[1];if(D)var rx=[0,[0,Iw0,K0(D[1])],0],Sx=Pw0;else var rx=0,Sx=Cw0;return M(Sx,R0,T0,rx)},Wo=function(q){var P=q[2],D=q[1],T0=[0,[0,Rw0,ax(q[3])],0],R0=[0,[0,Ow0,Ox(pt,P)],T0];return[0,[0,Lw0,K0(D)],R0]},bv=function(q){var P=q[2],D=q[1];switch(P[0]){case 0:var T0=0,R0=X0(P[1]);break;case 1:var T0=0,R0=Sr(P[1]);break;default:var T0=1,R0=K0(P[1])}return[0,[0,Dw0,K0(D)],[0,[0,Mw0,R0],[0,[0,Uw0,!!T0],0]]]},ss=A0[2],Vo=ss[2],Zo=ss[4],xa=ss[3],l3=A0[1],Lm=L0(ss[1]),p3=[0,[0,Zl0,Lm],[0,[0,Vl0,Pn(Zo)],0]];if(Vo)var C6=Vo[1],R6=Fx(p3,[0,[0,Ql0,M(Fl0,C6[1],0,[0,[0,$l0,nr(C6[2])],0])],0]);else var R6=p3;var y3=M(Hl0,l3,xa,R6),Um=Fx(v0,NW[1]);if(y3.errors=Lr(function(q){var P=q[1],D=[0,[0,jw0,nr(zT0(q[2]))],0];return is([0,[0,zw0,PW(P)],D])},Um),k){var Mm=R[1];y3[vM]=Y1(Qy(function(q){var P=q[2],D=q[1],T0=q[3],R0=[0,[0,cv0,nr(ZR(P))],0],rx=[0,qd(G,D[3]),0],Sx=[0,[0,sv0,Y1([0,qd(G,D[2]),rx])],R0],Dx=[0,[0,av0,is([0,[0,vv0,D[3][1]],[0,[0,ov0,D[3][2]],0]])],0],jx=[0,[0,dv0,is([0,[0,yv0,is([0,[0,pv0,D[2][1]],[0,[0,lv0,D[2][2]],0]])],Dx])],Sx];switch(T0){case 0:var bx=mv0;break;case 1:var bx=kv0;break;case 2:var bx=hv0;break;case 3:var bx=_v0;break;case 4:var bx=wv0;break;default:var bx=Tv0}return is([0,[0,Ev0,nr(mY(P))],[0,[0,Sv0,nr(bx)],jx]])},Mm))}return y3}var ra=N0[1];if(ra===5){var d3=N0[2];if(d3&&d3[1]===6){var Dm=d3[2],P0=[0,Q+2|0,0,[0,Ml(gx([0,Q,I0])),J0]],N0=Dm;continue}}else if(6>ra){var jm=N0[2],P0=[0,Q+wB(ra)|0,[0,Q,I0],J0],N0=jm;continue}var zm=N0[2],M1=[0,Ml(gx([0,Q,I0])),J0],P0=[0,Q+wB(ra)|0,0,M1],N0=zm}}};if(typeof EU<"u")var CW=EU;else{var RW={};xo.flow=RW;var CW=RW}CW.parse=DV(function(x,r){try{var e=_E0(x,r);return e}catch(u){var t=R1(u);return t[1]===NL?gW(t[2]):gW(new kE0(nr(Zx(xT0,rd(t)))))}}),eR(0);return}}})(globalThis)});var XW=OW(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});sa.extract=NI0;sa.parse=PI0;sa.parseWithComments=BW;sa.print=CI0;sa.strip=II0;var TI0=/\*\/$/,SI0=/^\/\*\*?/,JW=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,EI0=/(^|\s+)\/\/([^\r\n]*)/g,jW=/^(\r?\n)+/,AI0=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,zW=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,gI0=/(\r?\n|^) *\* ?/g,YW=[];function NI0(l0){let _x=l0.match(JW);return _x?_x[0].trimLeft():""}function II0(l0){let _x=l0.match(JW);return _x&&_x[0]?l0.substring(_x[0].length):l0}function PI0(l0){return BW(l0).pragmas}function BW(l0){let _x=` -`;l0=l0.replace(SI0,"").replace(TI0,"").replace(gI0,"$1");let Hx="";for(;Hx!==l0;)Hx=l0,l0=l0.replace(AI0,`${_x}$1 $2${_x}`);l0=l0.replace(jW,"").trimRight();let kr=Object.create(null),$1=l0.replace(zW,"").replace(jW,"").trimRight(),tr;for(;tr=zW.exec(l0);){let xr=tr[2].replace(EI0,"");typeof kr[tr[1]]=="string"||Array.isArray(kr[tr[1]])?kr[tr[1]]=YW.concat(kr[tr[1]],xr):kr[tr[1]]=xr}return{comments:$1,pragmas:kr}}function CI0({comments:l0="",pragmas:_x={}}){let Hx=` -`,kr="/**",$1=" *",tr=" */",xr=Object.keys(_x),e1=xr.map(F1=>KW(F1,_x[F1])).reduce((F1,M3)=>F1.concat(M3),[]).map(F1=>`${$1} ${F1}${Hx}`).join("");if(!l0){if(xr.length===0)return"";if(xr.length===1&&!Array.isArray(_x[xr[0]])){let F1=_x[xr[0]];return`${kr} ${KW(xr[0],F1)[0]}${tr}`}}let ev=l0.split(Hx).map(F1=>`${$1} ${F1}`).join(Hx)+Hx;return kr+Hx+(l0?ev:"")+(l0&&xr.length?$1+Hx:"")+e1+tr}function KW(l0,_x){return YW.concat(_x).map(Hx=>`@${l0} ${Hx}`.trim())}});var HI0={};LW(HI0,{parsers:()=>f9});var f9={};LW(f9,{flow:()=>QI0});var rV=MW(DW(),1);function wI0(l0,_x){let Hx=new SyntaxError(l0+" ("+_x.loc.start.line+":"+_x.loc.start.column+")");return Object.assign(Hx,_x)}var n9=wI0;var U3=MW(XW(),1);function RI0(l0){if(!l0.startsWith("#!"))return"";let _x=l0.indexOf(` -`);return _x===-1?l0:l0.slice(0,_x)}var WW=RI0;function OI0(l0){let _x=WW(l0);_x&&(l0=l0.slice(_x.length+1));let Hx=(0,U3.extract)(l0),{pragmas:kr,comments:$1}=(0,U3.parseWithComments)(Hx);return{shebang:_x,text:l0,pragmas:kr,comments:$1}}function VW(l0){let{pragmas:_x}=OI0(l0);return Object.prototype.hasOwnProperty.call(_x,"prettier")||Object.prototype.hasOwnProperty.call(_x,"format")}function LI0(l0){return Array.isArray(l0)&&l0.length>0}var N4=LI0;function Nt(l0){var kr;let _x=l0.range?l0.range[0]:l0.start,Hx=((kr=l0.declaration)==null?void 0:kr.decorators)??l0.decorators;return N4(Hx)?Math.min(Nt(Hx[0]),_x):_x}function _s(l0){return l0.range?l0.range[1]:l0.end}function UI0(l0){return l0=typeof l0=="function"?{parse:l0}:l0,{astFormat:"estree",hasPragma:VW,locStart:Nt,locEnd:_s,...l0}}var ZW=UI0;function MI0(l0){return l0.charAt(0)==="#"&&l0.charAt(1)==="!"?"//"+l0.slice(2):l0}var $W=MI0;var DI0=(l0,_x,Hx)=>{if(!(l0&&_x==null))return Array.isArray(_x)||typeof _x=="string"?_x[Hx<0?_x.length+Hx:Hx]:_x.at(Hx)},AU=DI0;function jI0(l0){return l0=new Set(l0),_x=>l0.has(_x==null?void 0:_x.type)}var FW=jI0;var zI0=FW(["Block","CommentBlock","MultiLine"]),I4=zI0;function KI0(l0){return I4(l0)&&l0.value[0]==="*"&&/@(?:type|satisfies)\b/.test(l0.value)}var QW=KI0;function JI0(l0){let _x=`*${l0.value}*`.split(` -`);return _x.length>1&&_x.every(Hx=>Hx.trimStart()[0]==="*")}var gU=JI0;var P4=null;function C4(l0){if(P4!==null&&typeof P4.property){let _x=P4;return P4=C4.prototype=null,_x}return P4=C4.prototype=l0??Object.create(null),new C4}var YI0=10;for(let l0=0;l0<=YI0;l0++)C4();function NU(l0){return C4(l0)}function BI0(l0,_x="type"){NU(l0);function Hx(kr){let $1=kr[_x],tr=l0[$1];if(!Array.isArray(tr))throw Object.assign(new Error(`Missing visitor keys for '${$1}'.`),{node:kr});return tr}return Hx}var HW=BI0;var qW={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ExportAllDeclaration:["source","attributes","assertions","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes","assertions"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes","assertions"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","parameter"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ImportExpression:["source","attributes"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareEnum:["id","body"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]};var XI0=HW(qW),GW=XI0;function IU(l0,_x){if(!(l0!==null&&typeof l0=="object"))return l0;if(Array.isArray(l0)){for(let kr=0;kr{var e1;(e1=xr.leadingComments)!=null&&e1.some(QW)&&tr.add(Nt(xr))}),l0=u9(l0,xr=>{if(xr.type==="ParenthesizedExpression"){let{expression:e1}=xr;if(e1.type==="TypeCastExpression")return e1.range=xr.range,e1;let ev=Nt(xr);if(!tr.has(ev))return e1.extra={...e1.extra,parenthesized:!0},e1}})}if(l0=u9(l0,tr=>{switch(tr.type){case"LogicalExpression":if(bW(tr))return PU(tr);break;case"VariableDeclaration":{let xr=AU(!1,tr.declarations,-1);xr!=null&&xr.init&&$1(tr,xr);break}case"TSParenthesizedType":return tr.typeAnnotation;case"TSTypeParameter":if(typeof tr.name=="string"){let xr=Nt(tr);tr.name={type:"Identifier",name:tr.name,range:[xr,xr+tr.name.length]}}break;case"ObjectExpression":if(Hx==="typescript"){let xr=tr.properties.find(e1=>e1.type==="Property"&&e1.value.type==="TSEmptyBodyFunctionExpression");xr&&i9(xr.value,"Unexpected token.")}break;case"TSInterfaceDeclaration":N4(tr.implements)&&i9(tr.implements[0],"Interface declaration cannot have 'implements' clause.");break;case"TSPropertySignature":tr.initializer&&i9(tr.initializer,"An interface property cannot have an initializer.");break;case"TopicReference":l0.extra={...l0.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":{let{exported:xr}=tr;if(Hx==="meriyah"&&(xr==null?void 0:xr.type)==="Identifier"){let e1=kr.slice(Nt(xr),_s(xr));(e1.startsWith('"')||e1.startsWith("'"))&&(tr.exported={...tr.exported,type:"Literal",value:tr.exported.name,raw:e1})}break}case"TSUnionType":case"TSIntersectionType":if(tr.types.length===1)return tr.types[0];break}}),N4(l0.comments)){let tr=AU(!1,l0.comments,-1);for(let xr=l0.comments.length-2;xr>=0;xr--){let e1=l0.comments[xr];_s(e1)===Nt(tr)&&I4(e1)&&I4(tr)&&gU(e1)&&gU(tr)&&(l0.comments.splice(xr+1,1),e1.value+="*//*"+tr.value,e1.range=[Nt(e1),_s(tr)]),tr=e1}}return l0.type==="Program"&&(l0.range=[0,kr.length]),l0;function $1(tr,xr){kr[_s(xr)]!==";"&&(tr.range=[Nt(tr),_s(xr)])}}function bW(l0){return l0.type==="LogicalExpression"&&l0.right.type==="LogicalExpression"&&l0.operator===l0.right.operator}function PU(l0){return bW(l0)?PU({type:"LogicalExpression",operator:l0.operator,left:PU({type:"LogicalExpression",operator:l0.operator,left:l0.left,right:l0.right.left,range:[Nt(l0.left),_s(l0.right.left)]}),right:l0.right.right,range:[Nt(l0),_s(l0)]}):l0}var xV=VI0;var ZI0={comments:!1,enums:!0,esproposal_decorators:!0,esproposal_export_star_as:!0,tokens:!0};function $I0(l0){let{message:_x,loc:{start:Hx,end:kr}}=l0;return n9(_x,{loc:{start:{line:Hx.line,column:Hx.column+1},end:{line:kr.line,column:kr.column+1}},cause:l0})}function FI0(l0){let _x=rV.default.parse($W(l0),ZI0),[Hx]=_x.errors;if(Hx)throw $I0(Hx);return xV(_x,{text:l0})}var QI0=ZW(FI0);return _I0(HI0);}); \ No newline at end of file + -- too many open files. Try running with OCAMLRUNPARAM=b=2)`],TQ=[3,0,3],SQ=bf,EQ=$3,gQ="{"],qQ=[0,[12,32,0],Mt],HQ=[0,[12,32,0],Mt],bQ=[0,[17,[0,"@,",0,0],[12,Ci,[17,0,0]]],"@,}@]"],xG=[0,"src/hack_forked/utils/collections/third-party/flow_set.ml",379,14],rG=F3,eG=ka,tG=La,nG=wx,uG=kv,iG=[0,[12,40,[18,[1,[0,[11,Ie,0],Ie]],[11,"File_key.LibFile",[17,[0,ce,1,0],0]]]],"(@[<2>File_key.LibFile@ "],fG=[0,[3,0,0],J3],cG=[0,[17,0,[12,41,0]],b4],sG=[0,[12,40,[18,[1,[0,[11,Ie,0],Ie]],[11,"File_key.SourceFile",[17,[0,ce,1,0],0]]]],"(@[<2>File_key.SourceFile@ "],oG=[0,[3,0,0],J3],vG=[0,[17,0,[12,41,0]],b4],aG=[0,[12,40,[18,[1,[0,[11,Ie,0],Ie]],[11,"File_key.JsonFile",[17,[0,ce,1,0],0]]]],"(@[<2>File_key.JsonFile@ "],lG=[0,[3,0,0],J3],pG=[0,[17,0,[12,41,0]],b4],dG=[0,[12,40,[18,[1,[0,[11,Ie,0],Ie]],[11,"File_key.ResourceFile",[17,[0,ce,1,0],0]]]],"(@[<2>File_key.ResourceFile@ "],yG=[0,[3,0,0],J3],mG=[0,[17,0,[12,41,0]],b4],kG=[0,1],hG=[0,0],_G=[0,1],wG=[0,2],TG=[0,0],SG=[0,1],EG=[0,1],gG=[0,1],AG=[0,1],PG=[0,1],NG=[0,1],CG=[0,0,0],IG=[0,0,0],OG=[0,j2,ni,lf,Df,U2,Pi,Kc,xi,$7,bn,Pc,Wu,li,j7,E7,G7,Kf,Zf,gi,J7,Kn,di,Uc,T7,Mc,yi,zf,Ti,qn,Zn,nc,Tu,zi,of,Vc,Xe,Sf,Ai,Cc,yf,Lf,Q7,Pu,Ye,xf,_7,Wi,Ki,gc,I7,Zu,yc,Ue,O7,Fi,mu,Ru,ou,mc,Je,au,dc,Uf,_u,Yc,Xf,eu,Gf,oc,Iu,Di,d7,o7,Uu,Z7,A7,Ec,pc,X7,Nu,Rc,kn,gf,Bu,e7,Hf,b7,ai,ec,ui,_f,ii,n7,Dc,ff,Jc,$i,nu,Bf,Mf,Ri,C7,hf,B7,Nc,Vu,Ic,Lc,s7,Gu,kc,Lu,si,c7,ur,bi,iu,zn,R7,Ii,Wn,Du,U7,xc,Qi,Ff,Qf,Fn,xu,f7,L7,ci,jc,ti,hu,mf,t7,ic,Ac,Ku,ji,$1,du,ru,Zc,cu,Xi,jf,Hn,bu,Q2,N7,Yf,vu,af,v7,Xu,uu,hi,M2,S7,i7,w7,Ct,Au,lu,_i,yu,Bi,Xc,wi,Vn,pf,ri,If,qu,Hu,M7,Bn,h7,fc,Yn,q7,tc,Fu,su,Eu,Mu,Li,tu,F7,kf,Rf,l7,K7,Qn,Qu,mi,F1,V7,Vf,p7,Tf,Gn,m7,nf,ju,Cu,vc,wc,ef,Ui,Ou,u7,Su,Hi,sf,x7,Mi,se,Ni,Sc,Ef,uc,vf,rc,Yu,Of,k7,Ji,hc,df,Ju,Re,Oe,Gi,lc,sc,$n,$f,uf,pi,_c,$u,z7,Bc,a7,fu,Zi,qf,oi,Si,rf,ki,gu,W7,zc,qi,Yi,wu,Y7,cf,r7,Tc,Wc,vi,g7,Wf,tf,H7,P7,Me,ac,zu,on,Cf,Vi,D7,cc,ku,Oi,Pf,y7,fi,Nf,wf],RG=[0,gc,$1,qu,Au,Vn,P7,Ic,Bf,ci,Hn,zu,Mc,ec,Ye,b7,Vf,cf,ff,ic,s7,N7,Ku,Hi,Ui,ni,A7,yu,Eu,o7,xc,_c,_i,Su,Lu,Ct,Df,Rf,oc,Of,tf,Hu,Wf,mf,ju,au,Xc,Mu,Pu,Ri,i7,Wi,af,sf,U7,kc,Yi,rf,gf,wf,Yc,a7,di,nu,Uf,xu,W7,ui,Je,Dc,pf,Bu,si,jc,t7,lu,R7,lc,zf,wc,f7,Ii,If,Gf,y7,rc,m7,bi,mu,Rc,fi,Mi,H7,yc,U2,dc,hc,G7,O7,S7,D7,su,Vc,Zc,Y7,B7,Q7,se,F7,yi,j2,Wn,of,Ji,Xf,Wu,X7,df,Ru,cc,Pc,Si,k7,Vu,xi,Ac,Zn,jf,Ou,Qn,ai,p7,Du,pc,l7,Zf,qn,fu,Pi,nc,I7,Kf,_7,bn,zc,Yf,Li,ki,zn,ri,Zi,$7,oi,Nc,Ff,ku,iu,Wc,wu,z7,Ec,Qf,Bc,ur,M2,Ue,E7,gi,xf,Z7,Xe,Re,Lc,w7,Hf,mi,ji,kn,ac,fc,u7,vu,gu,V7,M7,du,wi,j7,ef,mc,tc,uu,vc,Gn,$f,hf,Zu,Mf,v7,ii,Di,Ti,$i,_u,n7,J7,vf,vi,Yu,Cf,cu,Lf,x7,Tu,Bi,ou,hi,Jc,Tc,C7,hu,qi,bu,Ni,T7,Nf,Kc,Sc,g7,Uc,Ef,ti,ru,sc,Qi,d7,Gu,Xi,K7,Fn,Kn,Cc,Oi,uf,Uu,Vi,F1,Nu,qf,Qu,zi,Yn,q7,Ki,Oe,Bn,$u,eu,nf,uc,Ai,yf,Fu,Tf,li,tu,e7,on,Xu,r7,L7,_f,h7,Ju,Cu,Me,Pf,Q2,Gi,lf,pi,Fi,kf,$n,Iu,Sf,c7],LG=tD,MG=YD,DG=rD,UG=jD,jG=XT,JG=ED,XG=$3,YG=mj,VG=qM,zG=dD,KG=UM,BG=Ls,WG=Lt,ZG=pJ,$G=RD,FG=F2,QG=zD,GG=sX,qG=m8,HG=I4,bG=wo,xq=Z3,rq=yD,eq=fX,tq=eU,nq=oD,uq=xX,iq=RM,fq=Sj,cq=mD,sq=aJ,oq=PU,vq=WJ,aq=iD,lq=VU,pq=HJ,dq=Bj,yq=[0,[18,[1,[0,[11,Ie,0],Ie]],[11,bD,0]],VJ],mq="Loc.line",kq=[0,[18,[1,[0,0,kx]],[2,0,[11,K3,[17,[0,ce,1,0],0]]]],Y3],hq=[0,[4,0,0,0,0],hl],_q=[0,[17,0,0],va],wq=[0,[12,59,[17,[0,ce,1,0],0]],rp],Tq=ll,Sq=[0,[18,[1,[0,0,kx]],[2,0,[11,K3,[17,[0,ce,1,0],0]]]],Y3],Eq=[0,[4,0,0,0,0],hl],gq=[0,[17,0,0],va],Aq=[0,[17,[0,ce,1,0],[12,Ci,[17,0,0]]],sU],Pq=[0,[15,0],LU],Nq="(Some ",Cq=XS,Iq="None",Oq=[0,[18,[1,[0,[11,Ie,0],Ie]],[11,bD,0]],VJ],Rq="Loc.source",Lq=[0,[18,[1,[0,0,kx]],[2,0,[11,K3,[17,[0,ce,1,0],0]]]],Y3],Mq=[0,[17,0,0],va],Dq=[0,[12,59,[17,[0,ce,1,0],0]],rp],Uq=w9,jq=[0,[18,[1,[0,0,kx]],[2,0,[11,K3,[17,[0,ce,1,0],0]]]],Y3],Jq=[0,[17,0,0],va],Xq=[0,[12,59,[17,[0,ce,1,0],0]],rp],Yq="_end",Vq=[0,[18,[1,[0,0,kx]],[2,0,[11,K3,[17,[0,ce,1,0],0]]]],Y3],zq=[0,[17,0,0],va],Kq=[0,[17,[0,ce,1,0],[12,Ci,[17,0,0]]],sU],Bq="Object literal may not have data and accessor property with the same name",Wq="Object literal may not have multiple get/set accessors with the same name",Zq="Unexpected token <. Remember, adjacent JSX elements must be wrapped in an enclosing parent tag",$q="Modules can only have 1 since they are either an ES module xor they are a CommonJS module.",Fq="Found both `declare module.exports` and `declare export` in the same module. ",Qq="`let [` is ambiguous in this position because it is either a `let` binding pattern, or a member expression.",Gq="Async functions can only be declared at top level or immediately within another function.",qq="`await` is an invalid identifier in async functions",Hq="`await` is not allowed in async function parameters.",bq="Computed properties must have a value.",xH="Constructor can't be an accessor.",rH="Constructor can't be an async function.",eH="Constructor can't be a generator.",tH="It is sufficient for your declare function to just have a Promise return type.",nH="async is an implementation detail and isn't necessary for your declare function statement. ",uH="`declare` modifier can only appear on class fields.",iH="Unexpected token `=`. Initializers are not allowed in a `declare`.",fH="`declare export interface` is not supported. Use `export interface` instead.",cH="`declare export type` is not supported. Use `export type` instead.",sH="Unexpected token `=`. Initializers are not allowed in a `declare opaque type`.",oH="Classes may only have one constructor",vH="Duplicate `declare module.exports` statement!",aH="Rest element must be final element of an array pattern",lH="Cannot export an enum with `export type`, try `export enum E {}` or `module.exports = E;` instead.",pH="Enum members are separated with `,`. Replace `;` with `,`.",dH="`const` enums are not supported. Flow Enums are designed to allow for inlining, however the inlining itself needs to be part of the build system (whatever you use) rather than Flow itself.",yH="Expected an object pattern, array pattern, or an identifier but found an expression instead",mH="Missing comma between export specifiers",kH="Generators can only be declared at top level or immediately within another function.",hH="Getter should have zero parameters",_H="A getter cannot have a `this` parameter.",wH="Illegal break statement",TH="Illegal continue statement",SH="Illegal return statement",EH="Illegal Unicode escape",gH="Missing comma between import specifiers",AH="It cannot be used with `import type` or `import typeof` statements",PH="The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. ",NH="Explicit inexact syntax cannot appear inside an explicit exact object type",CH="Explicit inexact syntax can only appear inside an object type",IH="Component params must be an identifier. If you'd like to destructure, you should use `name as {destructure}`",OH="Components use `renders` instead of `:` to annotate the render type of a component.",RH="A bigint literal must be an integer",LH="JSX value should be either an expression or a quoted JSX text",MH="Invalid left-hand side in assignment",DH="Invalid left-hand side in exponentiation expression",UH="Invalid left-hand side in for-in",jH="Invalid left-hand side in for-of",JH="Imports within a `declare module` body must always be `import type` or `import typeof`!",XH="Invalid optional indexed access. Indexed access uses bracket notation. Use the format `T?.[K]`.",YH="Invalid regular expression",VH="A bigint literal cannot use exponential notation",zH="Tuple spread elements cannot be optional.",KH="Tuple variance annotations can only be used with labeled tuple elements, e.g. `[+foo: number]`",BH="`typeof` can only be used to get the type of variables.",WH="JSX attributes must only be assigned a non-empty expression",ZH="Literals cannot be used as shorthand properties.",$H="Malformed unicode",FH="Object pattern can't contain methods",QH="Expected at least one type parameter.",GH="Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",qH="More than one default clause in switch statement",HH="Illegal newline after throw",bH="Illegal newline before arrow",xb="Missing catch or finally after try",rb="Const must be initialized",eb="Destructuring assignment must be initialized",tb="An optional chain may not be used in a `new` expression.",nb="Template literals may not be used in an optional chain.",ub="Rest parameter must be final parameter of an argument list",ib="Private fields may not be deleted.",fb="Private fields can only be referenced from within a class.",cb="Rest property must be final property of an object pattern",sb="Setter should have exactly one parameter",ob="A setter cannot have a `this` parameter.",vb="Catch variable may not be eval or arguments in strict mode",ab="Delete of an unqualified identifier in strict mode.",lb="Duplicate data property in object literal not allowed in strict mode",pb="Function name may not be eval or arguments in strict mode",db="Assignment to eval or arguments is not allowed in strict mode",yb="Postfix increment/decrement may not have eval or arguments operand in strict mode",mb="Prefix increment/decrement may not have eval or arguments operand in strict mode",kb="Strict mode code may not include a with statement",hb="Number literals with leading zeros are not allowed in strict mode.",_b="Octal literals are not allowed in strict mode.",wb="Strict mode function may not have duplicate parameter names",Tb="Parameter name eval or arguments is not allowed in strict mode",Sb='Illegal "use strict" directive in function with non-simple parameter list',Eb="Use of reserved word in strict mode",gb="Variable name may not be eval or arguments in strict mode",Ab="You may not access a private field through the `super` keyword.",Pb="Flow does not support abstract classes.",Nb="Flow does not support template literal types.",Cb="A type annotation is required for the `this` parameter.",Ib="Arrow functions cannot have a `this` parameter; arrow functions automatically bind `this` when declared.",Ob="Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",Rb="The `this` parameter cannot be optional.",Lb="The `this` parameter must be the first function parameter.",Mb="A trailing comma is not permitted after the rest element",Db="Unexpected end of input",Ub="Explicit inexact syntax must come at the end of an object type",jb="Opaque type aliases are not allowed in untyped mode",Jb="Unexpected proto modifier",Xb="Unexpected reserved word",Yb="Unexpected reserved type",Vb="Spreading a type is only allowed inside an object type",zb="Unexpected static modifier",Kb="Unexpected `super` outside of a class method",Bb="`super()` is only valid in a class constructor",Wb="Type aliases are not allowed in untyped mode",Zb="Type annotations are not allowed in untyped mode",$b="Type declarations are not allowed in untyped mode",Fb="Type exports are not allowed in untyped mode",Qb="Type imports are not allowed in untyped mode",Gb="Interfaces are not allowed in untyped mode",qb="Unexpected variance sigil",Hb="Found a decorator in an unsupported position.",bb="Invalid regular expression: missing /",x00="Unexpected whitespace between `#` and identifier",r00="`yield` is an invalid identifier in generators",e00="Yield expression not allowed in formal parameter",t00=[0,[11,"Duplicate export for `",[2,0,[12,96,0]]],"Duplicate export for `%s`"],n00=[0,[11,"Private fields may only be declared once. `#",[2,0,[11,"` is declared more than once.",0]]],"Private fields may only be declared once. `#%s` is declared more than once."],u00=[0,[11,"bigint enum members need to be initialized, e.g. `",[2,0,[11," = 1n,` in enum `",[2,0,[11,gs,0]]]]],"bigint enum members need to be initialized, e.g. `%s = 1n,` in enum `%s`."],i00=[0,[11,"Boolean enum members need to be initialized. Use either `",[2,0,[11," = true,` or `",[2,0,[11," = false,` in enum `",[2,0,[11,gs,0]]]]]]],"Boolean enum members need to be initialized. Use either `%s = true,` or `%s = false,` in enum `%s`."],f00=[0,[11,"Enum member names need to be unique, but the name `",[2,0,[11,"` has already been used before in enum `",[2,0,[11,gs,0]]]]],"Enum member names need to be unique, but the name `%s` has already been used before in enum `%s`."],c00=[0,[11,wD,[2,0,[11,"` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.",0]]],"Enum `%s` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers."],s00="The `...` must come at the end of the enum body. Remove the trailing comma.",o00="The `...` must come after all enum members. Move it to the end of the enum body.",v00=[0,[11,"Use one of `boolean`, `number`, `string`, `symbol`, or `bigint` in enum `",[2,0,[11,gs,0]]],"Use one of `boolean`, `number`, `string`, `symbol`, or `bigint` in enum `%s`."],a00=[0,[11,"Enum type `",[2,0,[11,"` is not valid. ",[2,0,0]]]],"Enum type `%s` is not valid. %s"],l00=[0,[11,"Supplied enum type is not valid. ",[2,0,0]],"Supplied enum type is not valid. %s"],p00=[0,[11,"Enum member names and initializers are separated with `=`. Replace `",[2,0,[11,":` with `",[2,0,[11," =`.",0]]]]],"Enum member names and initializers are separated with `=`. Replace `%s:` with `%s =`."],d00=[0,[11,wD,[2,0,[11,"` has type `",[2,0,[11,"`, so the initializer of `",[2,0,[11,"` needs to be a ",[2,0,[11," literal.",0]]]]]]]]],"Enum `%s` has type `%s`, so the initializer of `%s` needs to be a %s literal."],y00=[0,[11,"Symbol enum members cannot be initialized. Use `",[2,0,[11,",` in enum `",[2,0,[11,gs,0]]]]],"Symbol enum members cannot be initialized. Use `%s,` in enum `%s`."],m00=[0,[11,"The enum member initializer for `",[2,0,[11,"` needs to be a literal (either a boolean, number, or string) in enum `",[2,0,[11,gs,0]]]]],"The enum member initializer for `%s` needs to be a literal (either a boolean, number, or string) in enum `%s`."],k00=[0,[11,"Enum member names cannot start with lowercase 'a' through 'z'. Instead of using `",[2,0,[11,"`, consider using `",[2,0,[11,"`, in enum `",[2,0,[11,gs,0]]]]]]],"Enum member names cannot start with lowercase 'a' through 'z'. Instead of using `%s`, consider using `%s`, in enum `%s`."],h00=[0,[11,"Number enum members need to be initialized, e.g. `",[2,0,[11," = 1,` in enum `",[2,0,[11,gs,0]]]]],"Number enum members need to be initialized, e.g. `%s = 1,` in enum `%s`."],_00=[0,[11,"String enum members need to consistently either all use initializers, or use no initializers, in enum ",[2,0,[12,46,0]]],"String enum members need to consistently either all use initializers, or use no initializers, in enum %s."],w00=[0,[11,"Expected corresponding JSX closing tag for ",[2,0,0]],"Expected corresponding JSX closing tag for %s"],T00="immediately within another function.",S00="In strict mode code, functions can only be declared at top level or ",E00="inside a block, or as the body of an if statement.",g00="In non-strict mode code, functions can only be declared at top level, ",A00="static ",P00=kx,N00="methods",C00="fields",I00=XM,O00=[0,[11,"Classes may not have ",[2,0,[2,0,[11," named `",[2,0,[11,gs,0]]]]]],"Classes may not have %s%s named `%s`."],R00=Kj,L00=kx,M00=[0,[11,"String params require local bindings using `as` renaming. You can use `'",[2,0,[11,"' as ",[2,0,[2,0,[11,": ` ",0]]]]]],"String params require local bindings using `as` renaming. You can use `'%s' as %s%s: ` "],D00="Remove the period.",U00="Indexed access uses bracket notation.",j00=[0,[11,"Invalid indexed access. ",[2,0,[11," Use the format `T[K]`.",0]]],"Invalid indexed access. %s Use the format `T[K]`."],J00=[0,[11,"Invalid flags supplied to RegExp constructor '",[2,0,[12,39,0]]],"Invalid flags supplied to RegExp constructor '%s'"],X00=[0,[11,"JSX element ",[2,0,[11," has no corresponding closing tag.",0]]],"JSX element %s has no corresponding closing tag."],Y00=[0,[11,AD,[2,0,[11,"`. Parentheses are required to combine `??` with `&&` or `||` expressions.",0]]],"Unexpected token `%s`. Parentheses are required to combine `??` with `&&` or `||` expressions."],V00=[0,[2,0,[11," '",[2,0,[11,"' has already been declared",0]]]],"%s '%s' has already been declared"],z00=kx,K00=B3,B00=" You can try using JavaScript private fields by prepending `#` to the field name.",W00=kl,Z00=" Fields and methods are public by default. You can simply omit the `public` keyword.",$00=j3,F00=[0,[11,"Flow does not support using `",[2,0,[11,"` in classes.",[2,0,0]]]],"Flow does not support using `%s` in classes.%s"],Q00=[0,[11,"Private fields must be declared before they can be referenced. `#",[2,0,[11,"` has not been declared.",0]]],"Private fields must be declared before they can be referenced. `#%s` has not been declared."],G00=[0,[11,cj,[2,0,0]],"Unexpected %s"],q00=[0,[11,AD,[2,0,[11,"`. Did you mean `",[2,0,[11,"`?",0]]]]],"Unexpected token `%s`. Did you mean `%s`?"],H00=[0,[11,cj,[2,0,[11,", expected ",[2,0,0]]]],"Unexpected %s, expected %s"],b00=[0,[11,"Undefined label '",[2,0,[12,39,0]]],"Undefined label '%s'"],xx0="Parse_error.Error",rx0=[0,[0,36,37],[0,48,58],[0,65,91],[0,95,96],[0,97,Rt],[0,W9,Ck],[0,EI,Qk],[0,rd,ON],[0,Gh,xg],[0,ma,AT],[0,$N,X8],[0,Gr,706],[0,BD,722],[0,736,741],[0,748,749],[0,750,751],[0,768,885],[0,886,888],[0,890,894],[0,895,896],[0,902,907],[0,908,909],[0,910,930],[0,MJ,1014],[0,1015,1154],[0,1155,1160],[0,1162,1328],[0,1329,1367],[0,1369,1370],[0,1376,1417],[0,1425,1470],[0,1471,1472],[0,1473,1475],[0,1476,1478],[0,1479,1480],[0,1488,1515],[0,1519,1523],[0,1552,1563],[0,1568,1642],[0,1646,1748],[0,1749,1757],[0,1759,1769],[0,1770,1789],[0,1791,1792],[0,1808,1867],[0,1869,1970],[0,1984,2038],[0,2042,2043],[0,2045,2046],[0,oC,2094],[0,2112,2140],[0,2144,2155],[0,2208,2229],[0,2230,2238],[0,2259,2274],[0,2275,2404],[0,2406,2416],[0,2417,2436],[0,2437,2445],[0,2447,2449],[0,2451,2473],[0,2474,2481],[0,2482,2483],[0,2486,2490],[0,2492,2501],[0,2503,2505],[0,2507,2511],[0,2519,2520],[0,2524,2526],[0,2527,2532],[0,2534,2546],[0,2556,2557],[0,2558,2559],[0,2561,2564],[0,2565,2571],[0,2575,2577],[0,2579,2601],[0,2602,2609],[0,2610,2612],[0,2613,2615],[0,2616,2618],[0,2620,2621],[0,2622,2627],[0,2631,2633],[0,2635,2638],[0,2641,2642],[0,2649,2653],[0,2654,2655],[0,2662,2678],[0,2689,2692],[0,2693,2702],[0,2703,2706],[0,2707,2729],[0,2730,2737],[0,2738,2740],[0,2741,2746],[0,2748,2758],[0,2759,2762],[0,2763,2766],[0,2768,2769],[0,2784,2788],[0,2790,2800],[0,2809,2816],[0,2817,2820],[0,2821,2829],[0,2831,2833],[0,2835,2857],[0,2858,2865],[0,2866,2868],[0,2869,2874],[0,2876,2885],[0,2887,2889],[0,2891,2894],[0,2902,2904],[0,2908,2910],[0,2911,2916],[0,2918,2928],[0,2929,2930],[0,2946,2948],[0,2949,2955],[0,2958,2961],[0,2962,2966],[0,2969,2971],[0,2972,2973],[0,2974,2976],[0,2979,2981],[0,2984,2987],[0,2990,3002],[0,3006,3011],[0,3014,3017],[0,3018,3022],[0,3024,3025],[0,3031,3032],[0,3046,3056],[0,3072,3085],[0,3086,3089],[0,3090,3113],[0,3114,3130],[0,3133,3141],[0,3142,3145],[0,3146,3150],[0,3157,3159],[0,3160,3163],[0,3168,3172],[0,3174,3184],[0,3200,3204],[0,3205,3213],[0,3214,3217],[0,3218,3241],[0,3242,3252],[0,3253,3258],[0,3260,3269],[0,3270,3273],[0,3274,3278],[0,3285,3287],[0,3294,3295],[0,3296,3300],[0,3302,3312],[0,3313,3315],[0,3328,3332],[0,3333,3341],[0,3342,3345],[0,3346,3397],[0,3398,3401],[0,3402,3407],[0,3412,3416],[0,3423,3428],[0,3430,3440],[0,3450,3456],[0,3458,3460],[0,3461,3479],[0,3482,3506],[0,3507,3516],[0,3517,3518],[0,3520,3527],[0,3530,3531],[0,3535,3541],[0,3542,3543],[0,3544,3552],[0,3558,3568],[0,3570,3572],[0,3585,3643],[0,3648,3663],[0,3664,3674],[0,3713,3715],[0,3716,3717],[0,3718,3723],[0,3724,3748],[0,3749,3750],[0,3751,3774],[0,3776,3781],[0,3782,3783],[0,3784,3790],[0,3792,3802],[0,3804,3808],[0,3840,3841],[0,3864,3866],[0,3872,3882],[0,3893,3894],[0,3895,3896],[0,3897,3898],[0,3902,3912],[0,3913,3949],[0,3953,3973],[0,3974,3992],[0,3993,4029],[0,4038,4039],[0,bU,4170],[0,4176,4254],[0,4256,4294],[0,4295,4296],[0,4301,4302],[0,4304,4347],[0,4348,4681],[0,4682,4686],[0,4688,4695],[0,4696,4697],[0,4698,4702],[0,4704,4745],[0,4746,4750],[0,4752,4785],[0,4786,4790],[0,4792,4799],[0,4800,4801],[0,4802,4806],[0,4808,4823],[0,4824,4881],[0,4882,4886],[0,4888,4955],[0,4957,4960],[0,4969,4978],[0,4992,5008],[0,5024,5110],[0,5112,5118],[0,5121,5741],[0,5743,$T],[0,5761,5787],[0,5792,5867],[0,5870,5881],[0,5888,5901],[0,5902,5909],[0,5920,5941],[0,5952,5972],[0,5984,5997],[0,5998,6001],[0,6002,6004],[0,6016,6100],[0,6103,6104],[0,6108,6110],[0,6112,6122],[0,6155,6158],[0,6160,6170],[0,6176,6265],[0,6272,6315],[0,6320,6390],[0,6400,6431],[0,6432,6444],[0,6448,6460],[0,6470,6510],[0,6512,6517],[0,6528,6572],[0,6576,6602],[0,6608,6619],[0,6656,6684],[0,6688,6751],[0,6752,6781],[0,6783,6794],[0,6800,6810],[0,6823,6824],[0,6832,6846],[0,6912,6988],[0,6992,7002],[0,7019,7028],[0,7040,7156],[0,7168,7224],[0,7232,7242],[0,7245,7294],[0,7296,7305],[0,7312,7355],[0,7357,7360],[0,7376,7379],[0,7380,7419],[0,7424,7674],[0,7675,7958],[0,7960,7966],[0,7968,8006],[0,8008,8014],[0,8016,8024],[0,8025,8026],[0,8027,8028],[0,8029,8030],[0,8031,8062],[0,8064,8117],[0,8118,8125],[0,8126,8127],[0,8130,8133],[0,8134,8141],[0,8144,8148],[0,8150,8156],[0,8160,8173],[0,8178,8181],[0,8182,8189],[0,Lj,KU],[0,8255,8257],[0,8276,8277],[0,M8,8306],[0,H5,8320],[0,8336,8349],[0,8400,8413],[0,8417,8418],[0,8421,8433],[0,md,8451],[0,N5,8456],[0,8458,g8],[0,Gp,8470],[0,DJ,8478],[0,Ed,op],[0,c8,s8],[0,Up,Yp],[0,8490,8506],[0,8508,8512],[0,8517,8522],[0,u8,8527],[0,8544,8585],[0,11264,11311],[0,11312,11359],[0,11360,11493],[0,11499,11508],[0,11520,j4],[0,L8,11560],[0,U4,11566],[0,11568,11624],[0,A5,11632],[0,B8,11671],[0,11680,mp],[0,11688,l8],[0,11696,W4],[0,11704,w8],[0,11712,z5],[0,11720,D5],[0,11728,Rp],[0,11736,11743],[0,11744,11776],[0,12293,12296],[0,12321,D4],[0,12337,12342],[0,12344,12349],[0,12353,12439],[0,12441,j5],[0,12449,od],[0,12540,12544],[0,12549,S5],[0,12593,12687],[0,12704,12731],[0,12784,12800],[0,13312,19894],[0,19968,40944],[0,40960,42125],[0,42192,42238],[0,42240,42509],[0,42512,42540],[0,42560,42608],[0,42612,B5],[0,42623,42738],[0,42775,42784],[0,42786,42889],[0,42891,42944],[0,42946,42951],[0,D8,43048],[0,43072,43124],[0,43136,43206],[0,43216,43226],[0,43232,43256],[0,L5,$5],[0,43261,43310],[0,43312,43348],[0,43360,43389],[0,43392,43457],[0,Sp,43482],[0,43488,cd],[0,43520,43575],[0,43584,43598],[0,43600,43610],[0,43616,43639],[0,T8,43715],[0,43739,43742],[0,43744,43760],[0,43762,43767],[0,43777,43783],[0,43785,43791],[0,43793,43799],[0,43808,H8],[0,43816,e8],[0,43824,e5],[0,43868,i8],[0,43888,44011],[0,44012,44014],[0,44016,44026],[0,44032,55204],[0,55216,55239],[0,55243,55292],[0,63744,64110],[0,64112,64218],[0,64256,64263],[0,64275,64280],[0,Np,V8],[0,64298,sd],[0,64312,Q5],[0,Z8,np],[0,64320,Tp],[0,64323,o5],[0,64326,64434],[0,64467,64830],[0,64848,64912],[0,64914,64968],[0,65008,65020],[0,65024,65040],[0,65056,65072],[0,65075,65077],[0,65101,65104],[0,65136,wp],[0,65142,65277],[0,65296,65306],[0,65313,65339],[0,65343,O5],[0,65345,65371],[0,65382,65471],[0,65474,65480],[0,65482,65488],[0,65490,65496],[0,65498,65501],[0,b3,v8],[0,65549,y8],[0,65576,ap],[0,65596,l5],[0,65599,65614],[0,65616,65630],[0,65664,65787],[0,65856,65909],[0,66045,66046],[0,66176,66205],[0,66208,66257],[0,66272,66273],[0,66304,66336],[0,66349,66379],[0,66384,66427],[0,66432,66462],[0,66464,66500],[0,66504,c5],[0,66513,66518],[0,66560,66718],[0,66720,66730],[0,66736,66772],[0,66776,66812],[0,66816,66856],[0,66864,66916],[0,67072,67383],[0,67392,67414],[0,67424,67432],[0,67584,67590],[0,fd,v5],[0,67594,Y5],[0,67639,67641],[0,F5,67645],[0,67647,67670],[0,67680,67703],[0,67712,67743],[0,67808,kd],[0,67828,67830],[0,67840,67862],[0,67872,67898],[0,67968,68024],[0,68030,68032],[0,Cd,68100],[0,68101,68103],[0,68108,fp],[0,68117,wd],[0,68121,68150],[0,68152,68155],[0,68159,68160],[0,68192,68221],[0,68224,68253],[0,68288,V4],[0,68297,68327],[0,68352,68406],[0,68416,68438],[0,68448,68467],[0,68480,68498],[0,68608,68681],[0,68736,68787],[0,68800,68851],[0,68864,68904],[0,68912,68922],[0,69376,69405],[0,f8,69416],[0,69424,69457],[0,69600,69623],[0,69632,69703],[0,69734,kp],[0,69759,69819],[0,69840,69865],[0,69872,69882],[0,69888,69941],[0,69942,69952],[0,j8,o8],[0,69968,70004],[0,F4,70007],[0,70016,70085],[0,70089,70093],[0,70096,K4],[0,Td,70109],[0,70144,xd],[0,70163,70200],[0,70206,70207],[0,70272,_8],[0,i5,cp],[0,70282,q8],[0,70287,H4],[0,70303,70313],[0,70320,70379],[0,70384,70394],[0,70400,N8],[0,70405,70413],[0,70415,70417],[0,70419,C8],[0,70442,pp],[0,70450,_d],[0,70453,70458],[0,70459,70469],[0,70471,70473],[0,70475,70478],[0,Sd,70481],[0,70487,70488],[0,70493,70500],[0,70502,70509],[0,70512,70517],[0,70656,70731],[0,70736,70746],[0,V5,70752],[0,70784,_5],[0,y5,70856],[0,70864,70874],[0,71040,71094],[0,71096,71105],[0,71128,71134],[0,71168,71233],[0,Kp,71237],[0,71248,71258],[0,71296,71353],[0,71360,71370],[0,71424,71451],[0,71453,71468],[0,71472,71482],[0,71680,71739],[0,71840,71914],[0,71935,71936],[0,72096,72104],[0,72106,72152],[0,72154,E8],[0,O4,72165],[0,ed,72255],[0,72263,72264],[0,u5,72346],[0,t8,72350],[0,72384,72441],[0,72704,x5],[0,72714,72759],[0,72760,72769],[0,72784,72794],[0,72818,72848],[0,72850,72872],[0,72873,72887],[0,72960,$4],[0,72968,h5],[0,72971,73015],[0,73018,73019],[0,73020,73022],[0,73023,73032],[0,73040,73050],[0,73056,id],[0,73063,I8],[0,73066,73103],[0,73104,73106],[0,73107,73113],[0,73120,73130],[0,73440,73463],[0,73728,74650],[0,74752,74863],[0,74880,75076],[0,77824,78895],[0,82944,83527],[0,92160,92729],[0,92736,92767],[0,92768,92778],[0,92880,92910],[0,92912,92917],[0,92928,92983],[0,92992,92996],[0,93008,93018],[0,93027,93048],[0,93053,93072],[0,93760,93824],[0,93952,94027],[0,U8,94088],[0,94095,94112],[0,94176,qp],[0,Op,94180],[0,94208,100344],[0,100352,101107],[0,110592,110879],[0,110928,110931],[0,110948,110952],[0,110960,111356],[0,113664,113771],[0,113776,113789],[0,113792,113801],[0,113808,113818],[0,113821,113823],[0,119141,119146],[0,119149,119155],[0,119163,119171],[0,119173,119180],[0,119210,119214],[0,119362,119365],[0,119808,M4],[0,119894,O8],[0,119966,119968],[0,Nd,119971],[0,119973,119975],[0,119977,Zp],[0,119982,Cp],[0,I5,k5],[0,119997,n5],[0,120005,Ap],[0,120071,120075],[0,120077,$p],[0,120086,s5],[0,120094,r8],[0,120123,Jp],[0,120128,b5],[0,Lp,120135],[0,120138,Dp],[0,120146,120486],[0,120488,vd],[0,120514,k8],[0,120540,b8],[0,120572,Y4],[0,120598,G4],[0,120630,nd],[0,120656,U5],[0,120688,gd],[0,120714,F8],[0,120746,yd],[0,120772,120780],[0,120782,120832],[0,121344,121399],[0,121403,121453],[0,121461,121462],[0,121476,121477],[0,121499,121504],[0,121505,121520],[0,122880,122887],[0,122888,122905],[0,122907,122914],[0,122915,122917],[0,122918,122923],[0,123136,123181],[0,123184,123198],[0,123200,123210],[0,hp,123215],[0,123584,123642],[0,124928,125125],[0,125136,125143],[0,125184,125260],[0,125264,125274],[0,126464,E5],[0,126469,pd],[0,126497,J5],[0,jp,126501],[0,q4,p5],[0,126505,xp],[0,126516,Vp],[0,R4,W8],[0,z8,126524],[0,R5,126531],[0,M5,_p],[0,m5,a5],[0,ad,C5],[0,126541,S8],[0,126545,dp],[0,gr,126549],[0,d5,ld],[0,lp,n8],[0,Fp,Ad],[0,X4,G5],[0,Q4,dd],[0,126561,zp],[0,Z4,126565],[0,126567,W5],[0,126572,z4],[0,126580,a8],[0,126585,Ep],[0,up,Pd],[0,126592,$8],[0,126603,126620],[0,126625,R8],[0,126629,Y8],[0,126635,126652],[0,131072,173783],[0,173824,177973],[0,177984,178206],[0,178208,183970],[0,183984,191457],[0,194560,195102],[0,917760,918e3]],ex0=[0,1,0],tx0=[0,0,[0,1,0],[0,1,0]],nx0=ij,ux0="end of input",ix0=yl,fx0="template literal part",cx0=yl,sx0=qU,ox0=ij,vx0=yl,ax0=ka,lx0=yl,px0=kv,dx0=yl,yx0=La,mx0="an",kx0=Ct,hx0=Mt,_x0=[0,[11,"token `",[2,0,[12,96,0]]],"token `%s`"],wx0="{",Tx0=J8,Sx0="{|",Ex0="|}",gx0=MM,Ax0=XS,Px0="[",Nx0="]",Cx0=_T,Ix0=YM,Ox0=bf,Rx0="=>",Lx0="...",Mx0=mU,Dx0=XM,Ux0=la,jx0=Qp,Jx0=wo,Xx0=Z3,Yx0=Ue,Vx0=Ye,zx0=vv,Kx0=Xe,Bx0=td,Wx0=sl,Zx0=Mp,$x0=vp,Fx0=nl,Qx0=da,Gx0=mv,qx0=As,Hx0=Ss,bx0=Me,xr0=Xp,rr0=K8,er0=Oe,tr0=av,nr0=K5,ur0=gp,ir0=d8,fr0=V3,cr0=Oc,sr0=je,or0=Ip,vr0=ov,ar0=el,lr0=Ts,pr0=Ps,dr0=cl,yr0=x8,mr0=M2,kr0=Na,hr0=_v,_r0=Q2,wr0=Wp,Tr0=kl,Sr0=B3,Er0=j3,gr0=j2,Ar0=Re,Pr0=Q3,Nr0=ei,Cr0=Ih,Ir0=Yh,Or0=To,Rr0=Ev,Lr0="%checks",Mr0=aJ,Dr0=mD,Ur0=Sj,jr0=WJ,Jr0=PU,Xr0=iD,Yr0=RM,Vr0=xX,zr0=eU,Kr0=oD,Br0=fX,Wr0=yD,Zr0=VU,$r0=HJ,Fr0=Bj,Qr0=L_,Gr0="?.",qr0=f9,Hr0=Kj,br0=Cv,x10=aU,r10=eX,e10=sX,t10=m8,n10=I4,u10=tD,i10=YD,f10=rD,c10=jD,s10=ED,o10=mj,v10=XT,a10=$3,l10=qM,p10=dD,d10=UM,y10=Ls,m10=Lt,k10=F2,h10=pJ,_10=RD,w10=zD,T10=LD,S10=qj,E10=IJ,g10=TU,A10=kx,P10=t5,N10=sp,C10=se,I10=ka,O10=kv,R10=La,L10=Ps,M10=wx,D10=g5,U10=P8,j10=q5,J10=A8,X10=Ta,Y10=OU,V10=al,z10=ya,K10=U3,B10=U3,W10=rX,Z10=U3,$10=U3,F10=J8,Q10=J8,G10=rX,q10=F2,H10=F2,b10=F3,x20=T5,r20="T_LCURLY",e20="T_RCURLY",t20="T_LCURLYBAR",n20="T_RCURLYBAR",u20="T_LPAREN",i20="T_RPAREN",f20="T_LBRACKET",c20="T_RBRACKET",s20="T_SEMICOLON",o20="T_COMMA",v20="T_PERIOD",a20="T_ARROW",l20="T_ELLIPSIS",p20="T_AT",d20="T_POUND",y20="T_FUNCTION",m20="T_IF",k20="T_IN",h20="T_INSTANCEOF",_20="T_RETURN",w20="T_SWITCH",T20="T_THIS",S20="T_THROW",E20="T_TRY",g20="T_VAR",A20="T_WHILE",P20="T_WITH",N20="T_CONST",C20="T_LET",I20="T_NULL",O20="T_FALSE",R20="T_TRUE",L20="T_BREAK",M20="T_CASE",D20="T_CATCH",U20="T_CONTINUE",j20="T_DEFAULT",J20="T_DO",X20="T_FINALLY",Y20="T_FOR",V20="T_CLASS",z20="T_EXTENDS",K20="T_STATIC",B20="T_ELSE",W20="T_NEW",Z20="T_DELETE",$20="T_TYPEOF",F20="T_VOID",Q20="T_ENUM",G20="T_EXPORT",q20="T_IMPORT",H20="T_SUPER",b20="T_IMPLEMENTS",xe0="T_INTERFACE",re0="T_PACKAGE",ee0="T_PRIVATE",te0="T_PROTECTED",ne0="T_PUBLIC",ue0="T_YIELD",ie0="T_DEBUGGER",fe0="T_DECLARE",ce0="T_TYPE",se0="T_OPAQUE",oe0="T_OF",ve0="T_ASYNC",ae0="T_AWAIT",le0="T_CHECKS",pe0="T_RSHIFT3_ASSIGN",de0="T_RSHIFT_ASSIGN",ye0="T_LSHIFT_ASSIGN",me0="T_BIT_XOR_ASSIGN",ke0="T_BIT_OR_ASSIGN",he0="T_BIT_AND_ASSIGN",_e0="T_MOD_ASSIGN",we0="T_DIV_ASSIGN",Te0="T_MULT_ASSIGN",Se0="T_EXP_ASSIGN",Ee0="T_MINUS_ASSIGN",ge0="T_PLUS_ASSIGN",Ae0="T_NULLISH_ASSIGN",Pe0="T_AND_ASSIGN",Ne0="T_OR_ASSIGN",Ce0="T_ASSIGN",Ie0="T_PLING_PERIOD",Oe0="T_PLING_PLING",Re0="T_PLING",Le0="T_COLON",Me0="T_OR",De0="T_AND",Ue0="T_BIT_OR",je0="T_BIT_XOR",Je0="T_BIT_AND",Xe0="T_EQUAL",Ye0="T_NOT_EQUAL",Ve0="T_STRICT_EQUAL",ze0="T_STRICT_NOT_EQUAL",Ke0="T_LESS_THAN_EQUAL",Be0="T_GREATER_THAN_EQUAL",We0="T_LESS_THAN",Ze0="T_GREATER_THAN",$e0="T_LSHIFT",Fe0="T_RSHIFT",Qe0="T_RSHIFT3",Ge0="T_PLUS",qe0="T_MINUS",He0="T_DIV",be0="T_MULT",xt0="T_EXP",rt0="T_MOD",et0="T_NOT",tt0="T_BIT_NOT",nt0="T_INCR",ut0="T_DECR",it0="T_EOF",ft0="T_ANY_TYPE",ct0="T_MIXED_TYPE",st0="T_EMPTY_TYPE",ot0="T_NUMBER_TYPE",vt0="T_BIGINT_TYPE",at0="T_STRING_TYPE",lt0="T_VOID_TYPE",pt0="T_SYMBOL_TYPE",dt0="T_UNKNOWN_TYPE",yt0="T_NEVER_TYPE",mt0="T_UNDEFINED_TYPE",kt0="T_KEYOF",ht0="T_READONLY",_t0="T_INFER",wt0="T_IS",Tt0="T_ASSERTS",St0="T_NUMBER",Et0="T_BIGINT",gt0="T_STRING",At0="T_TEMPLATE_PART",Pt0="T_IDENTIFIER",Nt0="T_REGEXP",Ct0="T_INTERPRETER",It0="T_ERROR",Ot0="T_JSX_IDENTIFIER",Rt0=qJ,Lt0=qJ,Mt0="T_BOOLEAN_TYPE",Dt0="T_NUMBER_SINGLETON_TYPE",Ut0="T_BIGINT_SINGLETON_TYPE",jt0=[0,FU,IS,9],Jt0=[0,FU,WT,9],Xt0=cU,Yt0="*/",Vt0=cU,zt0="unreachable line_comment",Kt0="unreachable string_quote",Bt0="\\",Wt0="unreachable template_part",Zt0=`\r +`,$t0=aT,Ft0="unreachable regexp_class",Qt0=TJ,Gt0="unreachable regexp_body",qt0=kx,Ht0=kx,bt0=kx,xn0=kx,rn0=lJ,en0="{'>'}",tn0=$3,nn0="{'}'}",un0=J8,in0=mo,fn0=_T,cn0=I4,sn0=lJ,on0=mo,vn0=_T,an0=I4,ln0="unreachable type_token wholenumber",pn0="unreachable type_token wholebigint",dn0="unreachable type_token floatbigint",yn0="unreachable type_token scinumber",mn0="unreachable type_token scibigint",kn0="unreachable type_token hexnumber",hn0="unreachable type_token hexbigint",_n0="unreachable type_token legacyoctnumber",wn0="unreachable type_token octnumber",Tn0="unreachable type_token octbigint",Sn0="unreachable type_token binnumber",En0="unreachable type_token bigbigint",gn0="unreachable type_token",An0=_J,Pn0=[11,1],Nn0=[11,0],Cn0="unreachable template_tail",In0=kx,On0=kx,Rn0="unreachable jsx_child",Ln0="unreachable jsx_tag",Mn0=[0,vD],Dn0=[0,913],Un0=[0,ma],jn0=[0,yh],Jn0=[0,XD],Xn0=[0,$J],Yn0=[0,8747],Vn0=[0,sJ],zn0=[0,916],Kn0=[0,8225],Bn0=[0,935],Wn0=[0,lg],Zn0=[0,914],$n0=[0,Aj],Fn0=[0,UD],Qn0=[0,UJ],Gn0=[0,915],qn0=[0,KJ],Hn0=[0,919],bn0=[0,917],x70=[0,oX],r70=[0,rJ],e70=[0,gD],t70=[0,924],n70=[0,923],u70=[0,922],i70=[0,tX],f70=[0,921],c70=[0,ZD],s70=[0,WT],o70=[0,VM],v70=[0,$N],a70=[0,927],l70=[0,937],p70=[0,QJ],d70=[0,fE],y70=[0,KD],m70=[0,338],k70=[0,352],h70=[0,929],_70=[0,936],w70=[0,8243],T70=[0,928],S70=[0,934],E70=[0,Fj],g70=[0,DM],A70=[0,933],P70=[0,Nj],N70=[0,Hj],C70=[0,jJ],I70=[0,920],O70=[0,932],R70=[0,ZM],L70=[0,zU],M70=[0,DU],D70=[0,_j],U70=[0,918],j70=[0,376],J70=[0,ZU],X70=[0,926],Y70=[0,Tj],V70=[0,MJ],z70=[0,925],K70=[0,39],B70=[0,8736],W70=[0,8743],Z70=[0,38],$70=[0,945],F70=[0,8501],Q70=[0,ga],G70=[0,8226],q70=[0,RU],H70=[0,946],b70=[0,8222],xu0=[0,wj],ru0=[0,GJ],eu0=[0,8776],tu0=[0,dJ],nu0=[0,8773],uu0=[0,9827],iu0=[0,BD],fu0=[0,967],cu0=[0,YU],su0=[0,ON],ou0=[0,ej],vu0=[0,oU],au0=[0,8595],lu0=[0,8224],pu0=[0,8659],du0=[0,OT],yu0=[0,8746],mu0=[0,8629],ku0=[0,r5],hu0=[0,8745],_u0=[0,8195],wu0=[0,8709],Tu0=[0,uX],Su0=[0,cX],Eu0=[0,_U],gu0=[0,X8],Au0=[0,9830],Pu0=[0,8707],Nu0=[0,8364],Cu0=[0,NJ],Iu0=[0,ha],Ou0=[0,951],Ru0=[0,8801],Lu0=[0,949],Mu0=[0,8194],Du0=[0,8805],Uu0=[0,947],ju0=[0,8260],Ju0=[0,kD],Xu0=[0,aj],Yu0=[0,IS],Vu0=[0,8704],zu0=[0,dT],Ku0=[0,$A],Bu0=[0,8230],Wu0=[0,9829],Zu0=[0,8596],$u0=[0,8660],Fu0=[0,62],Qu0=[0,402],Gu0=[0,948],qu0=[0,CU],Hu0=[0,GS],bu0=[0,8712],xi0=[0,rj],ri0=[0,953],ei0=[0,8734],ti0=[0,8465],ni0=[0,YJ],ui0=[0,8220],ii0=[0,8968],fi0=[0,8592],ci0=[0,Ck],si0=[0,10216],oi0=[0,955],vi0=[0,8656],ai0=[0,954],li0=[0,60],pi0=[0,8216],di0=[0,8249],yi0=[0,KU],mi0=[0,9674],ki0=[0,8727],hi0=[0,8970],_i0=[0,jS],wi0=[0,8711],Ti0=[0,956],Si0=[0,8722],Ei0=[0,rd],gi0=[0,EI],Ai0=[0,8212],Pi0=[0,yk],Ni0=[0,8804],Ci0=[0,957],Ii0=[0,LM],Oi0=[0,8836],Ri0=[0,8713],Li0=[0,MU],Mi0=[0,8715],Di0=[0,8800],Ui0=[0,8853],ji0=[0,959],Ji0=[0,969],Xi0=[0,8254],Yi0=[0,vJ],Vi0=[0,339],zi0=[0,Z5],Ki0=[0,jj],Bi0=[0,Qk],Wi0=[0,h8],Zi0=[0,8855],$i0=[0,yS],Fi0=[0,Gr],Qi0=[0,Gh],Gi0=[0,W9],qi0=[0,OJ],Hi0=[0,_D],bi0=[0,982],xf0=[0,960],rf0=[0,966],ef0=[0,8869],tf0=[0,8240],nf0=[0,8706],uf0=[0,8744],if0=[0,8211],ff0=[0,10217],cf0=[0,8730],sf0=[0,8658],of0=[0,34],vf0=[0,968],af0=[0,8733],lf0=[0,8719],pf0=[0,961],df0=[0,8971],yf0=[0,bJ],mf0=[0,8476],kf0=[0,8221],hf0=[0,8969],_f0=[0,8594],wf0=[0,xg],Tf0=[0,Pj],Sf0=[0,DP],Ef0=[0,8901],gf0=[0,353],Af0=[0,8218],Pf0=[0,8217],Nf0=[0,8250],Cf0=[0,8835],If0=[0,8721],Of0=[0,8838],Rf0=[0,8834],Lf0=[0,9824],Mf0=[0,8764],Df0=[0,962],Uf0=[0,963],jf0=[0,8207],Jf0=[0,952],Xf0=[0,8756],Yf0=[0,964],Vf0=[0,bp],zf0=[0,8839],Kf0=[0,jM],Bf0=[0,xJ],Wf0=[0,Ov],Zf0=[0,8657],$f0=[0,8482],Ff0=[0,AT],Qf0=[0,732],Gf0=[0,Ca],qf0=[0,8201],Hf0=[0,977],bf0=[0,DJ],xc0=[0,Ea],rc0=[0,965],ec0=[0,978],tc0=[0,IT],nc0=[0,B4],uc0=[0,lj],ic0=[0,Lj],fc0=[0,8205],cc0=[0,950],sc0=[0,z3],oc0=[0,gJ],vc0=[0,Q8],ac0=[0,958],lc0=[0,8593],pc0=[0,Vw],dc0=[0,8242],yc0=[0,GU],mc0="unreachable regexp",kc0="unreachable token wholenumber",hc0="unreachable token wholebigint",_c0="unreachable token floatbigint",wc0="unreachable token scinumber",Tc0="unreachable token scibigint",Sc0="unreachable token hexnumber",Ec0="unreachable token hexbigint",gc0="unreachable token legacyoctnumber",Ac0="unreachable token legacynonoctnumber",Pc0="unreachable token octnumber",Nc0="unreachable token octbigint",Cc0="unreachable token bignumber",Ic0="unreachable token bigint",Oc0="unreachable token",Rc0=_J,Lc0=[7,"#!"],Mc0="expected ?",Dc0="unreachable string_escape",Uc0=q2,jc0=X3,Jc0=X3,Xc0=q2,Yc0=$E,Vc0=Wj,zc0="n",Kc0="r",Bc0="t",Wc0=DD,Zc0=X3,$c0=mo,Fc0=mo,Qc0="unreachable id_char",Gc0=mo,qc0=mo,Hc0=X3,bc0=PD,xs0=NU,rs0=HT,es0=[24,"token ILLEGAL"],ts0=[0,[11,"the identifier `",[2,0,[12,96,0]]],"the identifier `%s`"],ns0=[0,1],us0=[0,1],is0=fU,fs0=fU,cs0=[0,[11,"an identifier. When exporting a ",[2,0,[11," as a named export, you must specify a ",[2,0,[11," name. Did you mean `export default ",[2,0,[11," ...`?",0]]]]]]],"an identifier. When exporting a %s as a named export, you must specify a %s name. Did you mean `export default %s ...`?"],ss0=ip,os0="Peeking current location when not available",vs0=[0,"src/parser/parser_env.ml",351,9],as0="Internal Error: Tried to add_declared_private with outside of class scope.",ls0="Internal Error: `exit_class` called before a matching `enter_class`",ps0=kx,ds0=[0,0,0],ys0=[0,0,0],ms0="Parser_env.Try.Rollback",ks0=kx,hs0=kx,_s0=[0,j2,ni,lf,tU,wU,Df,U2,Pi,Kc,xi,$7,bn,Pc,Wu,li,j7,E7,G7,Kf,Zf,gi,J7,Kn,di,Uc,T7,Mc,yi,zf,Ti,qn,Zn,nc,Tu,zi,of,Vc,Xe,Sf,Ai,Cc,yf,Lf,Q7,Pu,Ye,xf,_7,Wi,Ki,gc,I7,Zu,yc,Ue,O7,Fi,mu,Ru,ou,mc,Je,au,dc,Uf,_u,Yc,Xf,eu,Gf,oc,Iu,Di,d7,o7,Uu,Z7,A7,Ec,pc,X7,Nu,Rc,kn,gf,Bu,e7,Hf,b7,ai,ec,ui,_f,ii,n7,Dc,ff,Jc,$i,nu,Bf,Mf,Ri,C7,hf,B7,Nc,Vu,Ic,Lc,s7,Gu,kc,Lu,si,c7,ur,bi,iu,zn,R7,Ii,Wn,Du,U7,xc,Qi,Ff,Qf,Fn,xu,f7,L7,ci,jc,ti,hu,mf,t7,ic,Ac,Ku,ji,$1,du,ru,Zc,cu,Xi,jf,Hn,bu,Q2,N7,Yf,vu,af,v7,Xu,uu,hi,M2,S7,i7,w7,Ct,Au,lu,_i,yu,Bi,Xc,wi,Vn,pf,ri,If,qu,Hu,M7,Bn,h7,fc,Yn,q7,tc,Fu,su,Eu,Mu,Li,tu,F7,kf,Rf,l7,K7,Qn,Qu,mi,F1,V7,Vf,p7,Tf,Gn,m7,nf,ju,Cu,vc,wc,ef,Ui,Ou,u7,Su,Hi,sf,x7,Mi,se,Ni,Sc,Ef,uc,vf,rc,Yu,Of,k7,Ji,hc,df,Ju,Re,Oe,Gi,lc,sc,$n,$f,uf,pi,_c,$u,z7,Bc,a7,fu,Zi,qf,nj,oi,Gj,QD,Si,rf,ki,gu,W7,zc,qi,Yi,wu,Y7,cf,r7,Tc,Wc,vi,g7,Wf,tf,H7,P7,Me,ac,zu,on,Cf,Vi,D7,cc,ku,Oi,Pf,y7,fi,Nf,wf],ws0=[0,j2,ni,lf,Df,U2,Pi,Kc,xi,$7,bn,Pc,Wu,li,j7,E7,G7,Kf,Zf,gi,J7,Kn,di,Uc,T7,Mc,yi,zf,Ti,qn,Zn,nc,Tu,zi,of,Vc,Xe,Sf,Ai,Cc,yf,Lf,Q7,Pu,Ye,xf,_7,Wi,Ki,gc,I7,Zu,yc,Ue,O7,Fi,mu,Ru,ou,mc,Je,au,dc,Uf,_u,Yc,Xf,eu,Gf,oc,Iu,Di,d7,o7,Uu,Z7,A7,Ec,pc,X7,Nu,Rc,kn,gf,Bu,e7,Hf,b7,ai,ec,ui,_f,ii,n7,Dc,ff,Jc,$i,nu,Bf,Mf,Ri,C7,hf,B7,Nc,Vu,Ic,Lc,s7,Gu,kc,Lu,si,c7,ur,bi,iu,zn,R7,Ii,Wn,Du,U7,xc,Qi,Ff,Qf,Fn,xu,f7,L7,ci,jc,ti,hu,mf,t7,ic,Ac,Ku,ji,$1,du,ru,Zc,cu,Xi,jf,Hn,bu,Q2,N7,Yf,vu,af,v7,Xu,uu,hi,M2,S7,i7,w7,Ct,Au,lu,_i,yu,Bi,Xc,wi,Vn,pf,ri,If,qu,Hu,M7,Bn,h7,fc,Yn,q7,tc,Fu,su,Eu,Mu,Li,tu,F7,kf,Rf,l7,K7,Qn,Qu,mi,F1,V7,Vf,p7,Tf,Gn,m7,nf,ju,Cu,vc,wc,ef,Ui,Ou,u7,Su,Hi,sf,x7,Mi,se,Ni,Sc,Ef,uc,vf,rc,Yu,Of,k7,Ji,hc,df,Ju,Re,Oe,Gi,lc,sc,$n,$f,uf,pi,_c,$u,z7,Bc,a7,fu,Zi,qf,oi,Si,rf,ki,gu,W7,zc,qi,Yi,wu,Y7,cf,r7,Tc,Wc,vi,g7,Wf,tf,H7,P7,Me,ac,zu,on,Cf,Vi,D7,cc,ku,Oi,Pf,y7,fi,Nf,wf],Ts0=[0,gc,$1,qu,Au,Vn,P7,Ic,Bf,ci,Hn,zu,Mc,ec,Ye,b7,Vf,cf,ff,ic,s7,N7,Ku,Hi,Ui,ni,A7,yu,Eu,o7,xc,_c,_i,Su,Lu,Ct,Df,Rf,oc,Of,tf,Hu,Wf,mf,ju,au,Xc,Mu,Pu,Ri,i7,Wi,af,sf,U7,kc,Yi,rf,gf,wf,Yc,a7,di,nu,Uf,xu,W7,ui,Je,Dc,pf,Bu,si,jc,t7,lu,R7,lc,zf,wc,f7,Ii,If,Gf,y7,rc,m7,bi,mu,Rc,fi,Mi,H7,yc,U2,dc,hc,G7,O7,S7,D7,su,Vc,Zc,Y7,B7,Q7,se,F7,yi,j2,Wn,of,Ji,Xf,Wu,X7,df,Ru,cc,Pc,Si,k7,Vu,xi,Ac,Zn,jf,Ou,Qn,ai,p7,Du,pc,l7,Zf,qn,fu,Pi,nc,I7,Kf,_7,bn,zc,Yf,Li,ki,zn,ri,Zi,$7,oi,Nc,Ff,ku,iu,Wc,wu,z7,Ec,Qf,Bc,ur,M2,Ue,E7,gi,xf,Z7,Xe,Re,Lc,w7,Hf,mi,ji,kn,ac,fc,u7,vu,gu,V7,M7,du,wi,j7,ef,mc,tc,uu,vc,Gn,$f,hf,Zu,Mf,v7,ii,Di,Ti,$i,_u,n7,J7,vf,vi,Yu,Cf,cu,Lf,x7,Tu,Bi,ou,hi,Jc,Tc,C7,hu,qi,bu,Ni,T7,Nf,Kc,Sc,g7,Uc,Ef,ti,ru,sc,Qi,d7,Gu,Xi,K7,Fn,Kn,Cc,Oi,uf,Uu,Vi,F1,Nu,qf,Qu,zi,Yn,q7,Ki,Oe,Bn,$u,eu,nf,uc,Ai,yf,Fu,Tf,li,tu,e7,on,Xu,r7,L7,_f,h7,Ju,Cu,Me,Pf,Q2,Gi,lf,pi,Fi,kf,$n,Iu,Sf,c7],Ss0=[0,gc,$1,qu,Au,Vn,P7,Ic,Bf,ci,Hn,zu,Mc,ec,Ye,b7,Vf,cf,ff,ic,s7,N7,Ku,Hi,Ui,ni,A7,yu,Eu,o7,xc,_c,_i,Su,Lu,Ct,Df,wU,Rf,oc,Of,tf,Hu,Wf,mf,ju,au,Xc,Mu,Pu,Ri,i7,Wi,af,sf,U7,kc,Yi,rf,gf,wf,Yc,a7,Gj,di,nu,Uf,xu,W7,ui,Je,Dc,pf,Bu,si,jc,t7,lu,R7,lc,zf,wc,f7,Ii,If,Gf,y7,rc,m7,bi,mu,Rc,fi,Mi,H7,yc,U2,dc,hc,G7,O7,S7,D7,su,Vc,Zc,Y7,B7,Q7,se,F7,yi,j2,Wn,of,Ji,Xf,Wu,X7,df,Ru,cc,Pc,Si,k7,Vu,xi,Ac,Zn,jf,Ou,Qn,ai,p7,Du,pc,l7,Zf,qn,fu,Pi,nc,I7,Kf,_7,bn,zc,Yf,Li,ki,zn,ri,Zi,$7,oi,Nc,Ff,ku,iu,Wc,wu,z7,Ec,Qf,Bc,ur,M2,Ue,E7,gi,xf,Z7,Xe,Re,Lc,w7,Hf,mi,ji,kn,ac,fc,u7,vu,gu,V7,M7,du,wi,j7,ef,mc,tc,uu,vc,Gn,$f,hf,Zu,Mf,v7,ii,Di,Ti,$i,_u,n7,J7,vf,vi,Yu,Cf,cu,QD,Lf,x7,Tu,Bi,ou,hi,Jc,Tc,C7,hu,qi,bu,Ni,T7,nj,Nf,Kc,Sc,g7,Uc,tU,Ef,ti,ru,sc,Qi,d7,Gu,Xi,K7,Fn,Kn,Cc,Oi,uf,Uu,Vi,F1,Nu,qf,Qu,zi,Yn,q7,Ki,Oe,Bn,$u,eu,nf,uc,Ai,yf,Fu,Tf,li,tu,e7,on,Xu,r7,L7,_f,h7,Ju,Cu,Me,Pf,Q2,Gi,lf,pi,Fi,kf,$n,Iu,Sf,c7],Es0=la,gs0=Qp,As0=wo,Ps0=Z3,Ns0=Ue,Cs0=Ye,Is0=vv,Os0=Xe,Rs0=td,Ls0=sl,Ms0=Mp,Ds0=vp,Us0=nl,js0=da,Js0=mv,Xs0=As,Ys0=Ss,Vs0=Me,zs0=Xp,Ks0=K8,Bs0=Oe,Ws0=av,Zs0=K5,$s0=gp,Fs0=d8,Qs0=V3,Gs0=Oc,qs0=je,Hs0=Ip,bs0=ov,xo0=el,ro0=Ts,eo0=Ps,to0=cl,no0=x8,uo0=M2,io0=Na,fo0=_v,co0=Q2,so0=Wp,oo0=kl,vo0=B3,ao0=j3,lo0=j2,po0=Re,do0=Q3,yo0=ei,mo0=Ih,ko0=Yh,ho0=To,_o0=Ev,wo0=t5,To0=sp,So0=se,Eo0=ka,go0=kv,Ao0=La,Po0=Ps,No0=wx,Co0=g5,Io0=P8,Oo0=q5,Ro0=A8,Lo0=Ta,Mo0=al,Do0=ya,Uo0=F3,jo0=T5,Jo0=[0,ip],Xo0=kx,Yo0=[0,1],Vo0=[0,_a,1371,6],zo0=[0,_a,1374,6],Ko0=[0,_a,1477,8],Bo0=[0,1],Wo0=[0,_a,1494,8],Zo0="Can not have both `static` and `proto`",$o0=je,Fo0=IC,Qo0=[0,0,0,0],Go0=[0,0],qo0=[0,[0,0,0,0,0]],Ho0=al,bo0=ya,xv0=[0,"a number literal type"],rv0=[0,0],ev0=lo,tv0=[0,0],nv0=[0,"a type"],uv0=[0,0],iv0=[0,0],fv0=[17,1],cv0=[17,0],sv0=[0,_a,yS,15],ov0=[0,_a,fE,15],vv0=Lt,av0=Lt,lv0=P5,pv0=ll,dv0=[0,[11,"Failure while looking up ",[2,0,[11,". Index: ",[4,0,0,0,[11,". Length: ",[4,0,0,0,[12,46,0]]]]]]],"Failure while looking up %s. Index: %d. Length: %d."],yv0=[0,0,0,0],mv0="Offset_utils.Offset_lookup_failed",kv0=v1,hv0=IU,_v0=ll,wv0=P5,Tv0=hj,Sv0=ll,Ev0=P5,gv0=w9,Av0=gg,Pv0="normal",Nv0=ei,Cv0="jsxTag",Iv0="jsxChild",Ov0="template",Rv0=qU,Lv0="context",Mv0=ei,Dv0=[6,0],Uv0=[0,0],jv0=[0,1],Jv0=[0,4],Xv0=[0,2],Yv0=[0,3],Vv0=[0,0],zv0=[0,0,0,0,0,0],Kv0=lo,Bv0=[0,75],Wv0=[0,kx,0],Zv0=ln,$v0=[0,75],Fv0=[0,75],Qv0=la,Gv0=[0,kx,0],qv0=[0,0,0],Hv0=[0,0,0],bv0=[0,83],xa0=F2,ra0=F2,ea0=[0,"a regular expression"],ta0=kx,na0=kx,ua0=kx,ia0=[0,"src/parser/expression_parser.ml",1368,17],fa0=[0,"a template literal part"],ca0=[0,[0,kx,kx],1],sa0=[0,0],oa0=X3,va0=PD,aa0=HT,la0=HT,pa0=NU,da0=[0,75],ya0=[0,1],ma0=[0,1],ka0=[0,1],ha0=[0,1],_a0=[0,1],wa0=Aa,Ta0=ov,Sa0=[0,"the identifier `target`"],Ea0=[0,0],ga0=M2,Aa0=pl,Pa0=pl,Na0=Na,Ca0=[0,"either a call or access of `super`"],Ia0=Na,Oa0=[0,1],Ra0=[0,0],La0=[0,1],Ma0=[0,0],Da0=[0,1],Ua0=[0,0],ja0=[0,2],Ja0=[0,3],Xa0=[0,7],Ya0=[0,6],Va0=[0,4],za0=[0,5],Ka0=[0,6],Ba0=[0,[0,17,[0,2]]],Wa0=[0,[0,18,[0,3]]],Za0=[0,[0,19,[0,4]]],$a0=[0,[0,0,[0,5]]],Fa0=[0,[0,1,[0,5]]],Qa0=[0,[0,2,[0,5]]],Ga0=[0,[0,3,[0,5]]],qa0=[0,[0,5,[0,6]]],Ha0=[0,[0,7,[0,6]]],ba0=[0,[0,4,[0,6]]],x30=[0,[0,6,[0,6]]],r30=[0,[0,8,[0,7]]],e30=[0,[0,9,[0,7]]],t30=[0,[0,10,[0,7]]],n30=[0,[0,11,[0,8]]],u30=[0,[0,12,[0,8]]],i30=[0,[0,15,[0,9]]],f30=[0,[0,13,[0,9]]],c30=[0,[0,14,[1,10]]],s30=[0,[0,16,[0,9]]],o30=[0,[0,21,[0,6]]],v30=[0,[0,20,[0,6]]],a30=[20,f9],l30=[0,[0,8]],p30=[0,[0,7]],d30=[0,[0,6]],y30=[0,[0,10]],m30=[0,[0,9]],k30=[0,[0,11]],h30=[0,[0,5]],_30=[0,[0,4]],w30=[0,[0,2]],T30=[0,[0,3]],S30=[0,[0,1]],E30=[0,[0,0]],g30=[0,[0,12]],A30=[0,[0,13]],P30=[0,[0,14]],N30=[0,0],C30=V3,I30=[0,kx,0],O30="unexpected PrivateName in Property, expected a PrivateField",R30=[0,0,0],L30=_o,M30="Must be one of the above",D30=[0,1],U30=[0,1],j30=[0,1],J30=_o,X30=_o,Y30=L_,V30="Internal Error: private name found in object props",z30=[0,1],K30=[0,Yk,1852,21],B30=[0,"a declaration, statement or export specifiers"],W30=[0,86],Z30=il,$30=[0,kx,kx,0],F30=[0,GM],Q30="exports",G30=[0,1],q30=[0,1],H30=[0,0],b30=eJ,xl0=[0,86],rl0=lo,el0=[0,75],tl0=[0,0],nl0=[0,1],ul0=[0,"the keyword `as`"],il0=[0,34],fl0=[0,34],cl0=[0,0],sl0=[0,1],ol0=[0,GM],vl0=[0,"the keyword `from`"],al0=[0,kx,kx,0],ll0=[0,Vj],pl0="Label",dl0=[0,Vj],yl0=[0,0,0],ml0=[0,44],kl0=[0,Yk,429,22],hl0=[0,43],_l0=[0,Yk,448,22],wl0=[0,0],Tl0="the token `;`",Sl0=[0,0],El0=[0,0],gl0=CD,Al0=[0,ip],Pl0=CD,Nl0=[24,Ct],Cl0=Cv,Il0=bf,Ol0=[13,"JSX fragment"],Rl0=[0,cn],Ll0=[1,cn],Ml0=[0,kx,kx,0],Dl0=[0,ip],Ul0=kx,jl0=[0,JU],Jl0=[18,[0,0]],Xl0=[0,JU],Yl0=[0,0,0,0],Vl0=aT,zl0="Nooo: ",Kl0=av,Bl0="Parser error: No such thing as an expression pattern!",Wl0=[0,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]],Zl0=[0,"src/parser/parser_flow.ml",r5,28],$l0=[0,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]],Fl0=IU,Ql0=gg,Gl0=vU,ql0=Rj,Hl0=Rj,bl0=vU,x60=ei,r60=BM,e60=D1,t60=v1,n60="InterpreterDirective",u60="interpreter",i60="Program",f60=ml,c60="BreakStatement",s60=ml,o60="ContinueStatement",v60="DebuggerStatement",a60=Iv,l60="DeclareExportAllDeclaration",p60=Iv,d60=_w,y60=BN,m60=av,k60="DeclareExportDeclaration",h60=ho,_60=D1,w60=qr,T60="DeclareModule",S60=i2,E60="DeclareModuleExports",g60=wa,A60=D1,P60="DoWhileStatement",N60="EmptyStatement",C60=Mh,I60=BN,O60="ExportDefaultDeclaration",R60=Mh,L60=ST,M60=Iv,D60="ExportAllDeclaration",U60=Mh,j60=Iv,J60=_w,X60=BN,Y60="ExportNamedDeclaration",V60="directive",z60=F1,K60="ExpressionStatement",B60=D1,W60="update",Z60=wa,$60=pu,F60="ForStatement",Q60="each",G60=D1,q60=yn,H60=Es,b60="ForInStatement",x40=Ev,r40=D1,e40=yn,t40=Es,n40="ForOfStatement",u40=tJ,i40=nN,f40=wa,c40="IfStatement",s40=ei,o40=Ts,v40=v1,a40=SD,l40=Iv,p40=_w,d40="ImportDeclaration",y40=D1,m40=ml,k40="LabeledStatement",h40=$2,_40="ReturnStatement",w40="cases",T40="discriminant",S40="SwitchStatement",E40=$2,g40="ThrowStatement",A40="finalizer",P40="handler",N40=on,C40="TryStatement",I40=D1,O40=wa,R40="WhileStatement",L40=D1,M40=Qw,D40="WithStatement",U40=EU,j40="ArrayExpression",J40=D2,X40=w5,Y40=F1,V40=Je,z40=zE,K40=To,B40=D1,W40=pn,Z40=qr,$40="ArrowFunctionExpression",F40=L_,Q40=yn,G40=Es,q40=tl,H40="AssignmentExpression",b40=yn,xp0=Es,rp0=tl,ep0="BinaryExpression",tp0="CallExpression",np0=tJ,up0=nN,ip0=wa,fp0="ConditionalExpression",cp0=Iv,sp0="ImportExpression",op0=aU,vp0=eX,ap0=f9,lp0=yn,pp0=Es,dp0=tl,yp0="LogicalExpression",mp0="MemberExpression",kp0=JP,hp0=pl,_p0="MetaProperty",wp0=kP,Tp0=zh,Sp0=JJ,Ep0="NewExpression",gp0=o9,Ap0="ObjectExpression",Pp0=nt,Np0="OptionalCallExpression",Cp0=nt,Ip0="OptionalMemberExpression",Op0=AJ,Rp0="SequenceExpression",Lp0="Super",Mp0="ThisExpression",Dp0=i2,Up0=F1,jp0="TypeCastExpression",Jp0=F1,Xp0="AsConstExpression",Yp0=i2,Vp0=F1,zp0="AsExpression",Kp0=i2,Bp0=F1,Wp0="SatisfiesExpression",Zp0=$2,$p0="AwaitExpression",Fp0=Lt,Qp0=Ls,Gp0=LD,qp0=qj,Hp0=Ts,bp0=Ps,x80=el,r80="matched above",e80=$2,t80=HM,n80=tl,u80="UnaryExpression",i80=TU,f80=IJ,c80=HM,s80=$2,o80=tl,v80="UpdateExpression",a80="delegate",l80=$2,p80="YieldExpression",d80="Unexpected FunctionDeclaration with BodyExpression",y80=D2,m80=w5,k80=F1,h80=Je,_80=zE,w80=To,T80=D1,S80=pn,E80=qr,g80="FunctionDeclaration",A80="Unexpected FunctionExpression with BodyExpression",P80=D2,N80=w5,C80=F1,I80=Je,O80=zE,R80=To,L80=D1,M80=pn,D80=qr,U80="FunctionExpression",j80=nt,J80=i2,X80=Le,Y80=Eg,V80=nt,z80=i2,K80=Le,B80="PrivateIdentifier",W80=nt,Z80=i2,$80=Le,F80=Eg,Q80=nN,G80=wa,q80="SwitchCase",H80=D1,b80="param",x50="CatchClause",r50=D1,e50="BlockStatement",t50=ho,n50=qr,u50="DeclareVariable",i50=Je,f50=qr,c50="DeclareFunction",s50=lU,o50=_v,v50=Oc,a50=D1,l50=D2,p50=qr,d50="DeclareClass",y50=D2,m50=z_,k50=pn,h50=vw,_50=pn,w50=qr,T50="DeclareComponent",S50=D2,E50=z_,g50=vw,A50=pn,P50="ComponentTypeAnnotation",N50=nt,C50=i2,I50=Le,O50="ComponentTypeParameter",R50=D1,L50=qr,M50="DeclareEnum",D50=Oc,U50=D1,j50=D2,J50=qr,X50="DeclareInterface",Y50=v1,V50=ei,z50=ST,K50="ExportNamespaceSpecifier",B50=yn,W50=D2,Z50=qr,$50="DeclareTypeAlias",F50=yn,Q50=D2,G50=qr,q50="TypeAlias",H50="DeclareOpaqueType",b50="OpaqueType",xd0="supertype",rd0="impltype",ed0=D2,td0=qr,nd0="ClassDeclaration",ud0="ClassExpression",id0=ud,fd0=_v,cd0="superTypeParameters",sd0="superClass",od0=D2,vd0=D1,ad0=qr,ld0=F1,pd0="Decorator",dd0=D2,yd0=qr,md0="ClassImplements",kd0=D1,hd0="ClassBody",_d0=Tv,wd0=q3,Td0=gv,Sd0=Ra,Ed0=ud,gd0=Ia,Ad0=je,Pd0=ho,Nd0=v1,Cd0=pv,Id0="MethodDefinition",Od0=Q3,Rd0=ud,Ld0=U2,Md0=je,Dd0=Ia,Ud0=i2,jd0=v1,Jd0=pv,Xd0=iU,Yd0="Internal Error: Private name found in class prop",Vd0=Q3,zd0=ud,Kd0=U2,Bd0=je,Wd0=Ia,Zd0=i2,$d0=v1,Fd0=pv,Qd0=iU,Gd0=D2,qd0=z_,Hd0=pn,bd0=qr,xy0=D1,ry0="ComponentDeclaration",ey0=$2,ty0=h9,ny0=yn,uy0=Es,iy0=Pp,fy0=TS,cy0=fl,sy0=Le,oy0="ComponentParameter",vy0=pu,ay0=qr,ly0="EnumBigIntMember",py0=qr,dy0=eD,yy0=pu,my0=qr,ky0="EnumStringMember",hy0=qr,_y0=eD,wy0=pu,Ty0=qr,Sy0="EnumNumberMember",Ey0=pu,gy0=qr,Ay0="EnumBooleanMember",Py0=W3,Ny0=hd,Cy0=G3,Iy0="EnumBooleanBody",Oy0=W3,Ry0=hd,Ly0=G3,My0="EnumNumberBody",Dy0=W3,Uy0=hd,jy0=G3,Jy0="EnumStringBody",Xy0=W3,Yy0=G3,Vy0="EnumSymbolBody",zy0=W3,Ky0=hd,By0=G3,Wy0="EnumBigIntBody",Zy0=D1,$y0=qr,Fy0="EnumDeclaration",Qy0=Oc,Gy0=D1,qy0=D2,Hy0=qr,by0="InterfaceDeclaration",xm0=D2,rm0=qr,em0="InterfaceExtends",tm0=i2,nm0=o9,um0="ObjectPattern",im0=i2,fm0=EU,cm0="ArrayPattern",sm0=yn,om0=Es,vm0=Pp,am0=i2,lm0=Le,pm0=Eg,dm0=$2,ym0=h9,mm0=$2,km0=h9,hm0=yn,_m0=Es,wm0=Pp,Tm0=pu,Sm0=pu,Em0=gv,gm0=Ra,Am0=Zj,Pm0=Ia,Nm0=TS,Cm0=q3,Im0=ho,Om0=v1,Rm0=pv,Lm0=fj,Mm0=$2,Dm0=bj,Um0=yn,jm0=Es,Jm0=Pp,Xm0=Ia,Ym0=TS,Vm0=q3,zm0=ho,Km0=v1,Bm0=pv,Wm0=fj,Zm0=$2,$m0=bj,Fm0=Ut,Qm0=v1,Gm0=aa,qm0=Ut,Hm0=kv,bm0=v1,x90=aa,r90=Ut,e90=v1,t90=aa,n90=Ss,u90=As,i90=Ut,f90=v1,c90=aa,s90="flags",o90=kn,v90="regex",a90=Ut,l90=v1,p90=aa,d90=Ut,y90=v1,m90=aa,k90=AJ,h90="quasis",_90="TemplateLiteral",w90="cooked",T90=Ut,S90="tail",E90=v1,g90="TemplateElement",A90="quasi",P90="tag",N90="TaggedTemplateExpression",C90=sl,I90=da,O90=nl,R90=ho,L90="declarations",M90="VariableDeclaration",D90=pu,U90=qr,j90="VariableDeclarator",J90="plus",X90=ND,Y90=Ta,V90=wo,z90=h_,K90="in-out",B90=ho,W90="Variance",Z90="AnyTypeAnnotation",$90="MixedTypeAnnotation",F90="EmptyTypeAnnotation",Q90="VoidTypeAnnotation",G90="NullLiteralTypeAnnotation",q90="SymbolTypeAnnotation",H90="NumberTypeAnnotation",b90="BigIntTypeAnnotation",xk0="StringTypeAnnotation",rk0="BooleanTypeAnnotation",ek0=i2,tk0="NullableTypeAnnotation",nk0="UnknownTypeAnnotation",uk0="NeverTypeAnnotation",ik0="UndefinedTypeAnnotation",fk0=ya,ck0=i2,sk0="parameterName",ok0="TypePredicate",vk0=D2,ak0=vw,lk0=w5,pk0=vv,dk0=pn,yk0="FunctionTypeAnnotation",mk0=nt,kk0=i2,hk0=Le,_k0=OD,wk0=nt,Tk0=i2,Sk0=Le,Ek0=OD,gk0=[0,0,0,0,0],Ak0="internalSlots",Pk0="callProperties",Nk0="indexers",Ck0=o9,Ik0="exact",Ok0="inexact",Rk0="ObjectTypeAnnotation",Lk0=Zj,Mk0="There should not be computed object type property keys",Dk0=pu,Uk0=gv,jk0=Ra,Jk0=ho,Xk0=U2,Yk0=IC,Vk0=je,zk0=nt,Kk0=q3,Bk0=v1,Wk0=pv,Zk0="ObjectTypeProperty",$k0=$2,Fk0="ObjectTypeSpreadProperty",Qk0=U2,Gk0=je,qk0=v1,Hk0=pv,bk0=qr,xh0="ObjectTypeIndexer",rh0=je,eh0=v1,th0="ObjectTypeCallProperty",nh0=nt,uh0=U2,ih0="sourceType",fh0="propType",ch0="keyTparam",sh0="ObjectTypeMappedTypeProperty",oh0=v1,vh0=q3,ah0=je,lh0=nt,ph0=qr,dh0="ObjectTypeInternalSlot",yh0=D1,mh0=Oc,kh0="InterfaceTypeAnnotation",hh0=XU,_h0="ArrayTypeAnnotation",wh0="falseType",Th0="trueType",Sh0="extendsType",Eh0="checkType",gh0="ConditionalTypeAnnotation",Ah0="typeParameter",Ph0="InferTypeAnnotation",Nh0=qr,Ch0=RJ,Ih0="QualifiedTypeIdentifier",Oh0=D2,Rh0=qr,Lh0="GenericTypeAnnotation",Mh0="indexType",Dh0="objectType",Uh0="IndexedAccessType",jh0=nt,Jh0="OptionalIndexedAccessType",Xh0=cg,Yh0="UnionTypeAnnotation",Vh0=cg,zh0="IntersectionTypeAnnotation",Kh0=$2,Bh0="TypeofTypeAnnotation",Wh0=qr,Zh0=RJ,$h0="QualifiedTypeofIdentifier",Fh0=$2,Qh0="KeyofTypeAnnotation",Gh0=$2,qh0="ReadOnlyTypeAnnotation",Hh0="elementTypes",bh0="TupleTypeAnnotation",x_0=nt,r_0=U2,e_0=XU,t_0=ml,n_0="TupleTypeLabeledElement",u_0=i2,i_0=ml,f_0="TupleTypeSpreadElement",c_0=Ut,s_0=v1,o_0="StringLiteralTypeAnnotation",v_0=Ut,a_0=v1,l_0="NumberLiteralTypeAnnotation",p_0=Ut,d_0=v1,y_0="BigIntLiteralTypeAnnotation",m_0=Ss,k_0=As,h_0=Ut,__0=v1,w_0="BooleanLiteralTypeAnnotation",T_0="ExistsTypeAnnotation",S_0=i2,E_0=aD,g_0=i2,A_0=aD,P_0=pn,N_0="TypeParameterDeclaration",C_0="usesExtendsBound",I_0=av,O_0=U2,R_0="bound",L_0=Le,M_0="TypeParameter",D_0=pn,U_0=sD,j_0=pn,J_0=sD,X_0=Aa,Y_0=Qj,V_0="closingElement",z_0="openingElement",K_0="JSXElement",B_0="closingFragment",W_0=Qj,Z_0="openingFragment",$_0="JSXFragment",F_0=zh,Q_0="selfClosing",G_0="attributes",q_0=Le,H_0="JSXOpeningElement",b_0="JSXOpeningFragment",xw0=Le,rw0="JSXClosingElement",ew0="JSXClosingFragment",tw0=v1,nw0=Le,uw0="JSXAttribute",iw0=$2,fw0="JSXSpreadAttribute",cw0="JSXEmptyExpression",sw0=F1,ow0="JSXExpressionContainer",vw0=F1,aw0="JSXSpreadChild",lw0=Ut,pw0=v1,dw0="JSXText",yw0=JP,mw0=Qw,kw0="JSXMemberExpression",hw0=Le,_w0="namespace",ww0="JSXNamespacedName",Tw0=Le,Sw0="JSXIdentifier",Ew0=ST,gw0=fl,Aw0="ExportSpecifier",Pw0=fl,Nw0="ImportDefaultSpecifier",Cw0=fl,Iw0="ImportNamespaceSpecifier",Ow0=SD,Rw0=fl,Lw0="imported",Mw0="ImportSpecifier",Dw0="Line",Uw0="Block",jw0=v1,Jw0=v1,Xw0="DeclaredPredicate",Yw0="InferredPredicate",Vw0=kP,zw0=zh,Kw0=JJ,Bw0=Ia,Ww0=JP,Zw0=Qw,$w0="message",Fw0=gg,Qw0=hj,Gw0=w9,qw0=Iv,Hw0=ll,bw0=P5,xT0=[0,wf,Nf,fi,y7,Pf,Oi,ku,cc,D7,Vi,Cf,on,zu,ac,Me,P7,H7,tf,Wf,g7,vi,Wc,Tc,r7,cf,Y7,wu,Yi,qi,zc,W7,gu,ki,rf,Si,oi,qf,Zi,fu,a7,Bc,z7,$u,_c,pi,uf,$f,$n,sc,lc,Gi,Oe,Re,Ju,df,hc,Ji,k7,Of,Yu,rc,vf,uc,Ef,Sc,Ni,se,Mi,x7,sf,Hi,Su,u7,Ou,Ui,ef,wc,vc,Cu,ju,nf,m7,Gn,Tf,p7,Vf,V7,F1,mi,Qu,Qn,K7,l7,Rf,kf,F7,tu,Li,Mu,Eu,su,Fu,tc,q7,Yn,fc,h7,Bn,M7,Hu,qu,If,ri,pf,Vn,wi,Xc,Bi,yu,_i,lu,Au,Ct,w7,i7,S7,M2,hi,uu,Xu,v7,af,vu,Yf,N7,Q2,bu,Hn,jf,Xi,cu,Zc,ru,du,$1,ji,Ku,Ac,ic,t7,mf,hu,ti,jc,ci,L7,f7,xu,Fn,Qf,Ff,Qi,xc,U7,Du,Wn,Ii,R7,zn,iu,bi,ur,c7,si,Lu,kc,Gu,s7,Lc,Ic,Vu,Nc,B7,hf,C7,Ri,Mf,Bf,nu,$i,Jc,ff,Dc,n7,ii,_f,ui,ec,ai,b7,Hf,e7,Bu,gf,kn,Rc,Nu,X7,pc,Ec,A7,Z7,Uu,o7,d7,Di,Iu,oc,Gf,eu,Xf,Yc,_u,Uf,dc,au,Je,mc,ou,Ru,mu,Fi,O7,Ue,yc,Zu,I7,gc,Ki,Wi,_7,xf,Ye,Pu,Q7,Lf,yf,Cc,Ai,Sf,Xe,Vc,of,zi,Tu,nc,Zn,qn,Ti,zf,yi,Mc,T7,Uc,di,Kn,J7,gi,Zf,Kf,G7,E7,j7,li,Wu,Pc,bn,$7,xi,Kc,Pi,U2,Df,lf,ni,j2],rT0=[0,j2,ni,lf,Df,U2,Pi,Kc,xi,$7,bn,Pc,Wu,li,j7,E7,G7,Kf,Zf,gi,J7,Kn,di,Uc,T7,Mc,yi,zf,Ti,qn,Zn,nc,Tu,zi,of,Vc,Xe,Sf,Ai,Cc,yf,Lf,Q7,Pu,Ye,xf,_7,Wi,Ki,gc,I7,Zu,yc,Ue,O7,Fi,mu,Ru,ou,mc,Je,au,dc,Uf,_u,Yc,Xf,eu,Gf,oc,Iu,Di,d7,o7,Uu,Z7,A7,Ec,pc,X7,Nu,Rc,kn,gf,Bu,e7,Hf,b7,ai,ec,ui,_f,ii,n7,Dc,ff,Jc,$i,nu,Bf,Mf,Ri,C7,hf,B7,Nc,Vu,Ic,Lc,s7,Gu,kc,Lu,si,c7,ur,bi,iu,zn,R7,Ii,Wn,Du,U7,xc,Qi,Ff,Qf,Fn,xu,f7,L7,ci,jc,ti,hu,mf,t7,ic,Ac,Ku,ji,$1,du,ru,Zc,cu,Xi,jf,Hn,bu,Q2,N7,Yf,vu,af,v7,Xu,uu,hi,M2,S7,i7,w7,Ct,Au,lu,_i,yu,Bi,Xc,wi,Vn,pf,ri,If,qu,Hu,M7,Bn,h7,fc,Yn,q7,tc,Fu,su,Eu,Mu,Li,tu,F7,kf,Rf,l7,K7,Qn,Qu,mi,F1,V7,Vf,p7,Tf,Gn,m7,nf,ju,Cu,vc,wc,ef,Ui,Ou,u7,Su,Hi,sf,x7,Mi,se,Ni,Sc,Ef,uc,vf,rc,Yu,Of,k7,Ji,hc,df,Ju,Re,Oe,Gi,lc,sc,$n,$f,uf,pi,_c,$u,z7,Bc,a7,fu,Zi,qf,oi,Si,rf,ki,gu,W7,zc,qi,Yi,wu,Y7,cf,r7,Tc,Wc,vi,g7,Wf,tf,H7,P7,Me,ac,zu,on,Cf,Vi,D7,cc,ku,Oi,Pf,y7,fi,Nf,wf],eT0=[0,gc,$1,qu,Au,Vn,P7,Ic,Bf,ci,Hn,zu,Mc,ec,Ye,b7,Vf,cf,ff,ic,s7,N7,Ku,Hi,Ui,ni,A7,yu,Eu,o7,xc,_c,_i,Su,Lu,Ct,Df,Rf,oc,Of,tf,Hu,Wf,mf,ju,au,Xc,Mu,Pu,Ri,i7,Wi,af,sf,U7,kc,Yi,rf,gf,wf,Yc,a7,di,nu,Uf,xu,W7,ui,Je,Dc,pf,Bu,si,jc,t7,lu,R7,lc,zf,wc,f7,Ii,If,Gf,y7,rc,m7,bi,mu,Rc,fi,Mi,H7,yc,U2,dc,hc,G7,O7,S7,D7,su,Vc,Zc,Y7,B7,Q7,se,F7,yi,j2,Wn,of,Ji,Xf,Wu,X7,df,Ru,cc,Pc,Si,k7,Vu,xi,Ac,Zn,jf,Ou,Qn,ai,p7,Du,pc,l7,Zf,qn,fu,Pi,nc,I7,Kf,_7,bn,zc,Yf,Li,ki,zn,ri,Zi,$7,oi,Nc,Ff,ku,iu,Wc,wu,z7,Ec,Qf,Bc,ur,M2,Ue,E7,gi,xf,Z7,Xe,Re,Lc,w7,Hf,mi,ji,kn,ac,fc,u7,vu,gu,V7,M7,du,wi,j7,ef,mc,tc,uu,vc,Gn,$f,hf,Zu,Mf,v7,ii,Di,Ti,$i,_u,n7,J7,vf,vi,Yu,Cf,cu,Lf,x7,Tu,Bi,ou,hi,Jc,Tc,C7,hu,qi,bu,Ni,T7,Nf,Kc,Sc,g7,Uc,Ef,ti,ru,sc,Qi,d7,Gu,Xi,K7,Fn,Kn,Cc,Oi,uf,Uu,Vi,F1,Nu,qf,Qu,zi,Yn,q7,Ki,Oe,Bn,$u,eu,nf,uc,Ai,yf,Fu,Tf,li,tu,e7,on,Xu,r7,L7,_f,h7,Ju,Cu,Me,Pf,Q2,Gi,lf,pi,Fi,kf,$n,Iu,Sf,c7],tT0="Jsoo_runtime.Error.Exn",nT0=[0,0],uT0="use_strict",iT0=cg,fT0="esproposal_decorators",cT0="enums",sT0="components",oT0="Internal error: ";function I1(x){if(typeof x=="number")return 0;switch(x[0]){case 0:return[0,I1(x[1])];case 1:return[1,I1(x[1])];case 2:return[2,I1(x[1])];case 3:return[3,I1(x[1])];case 4:return[4,I1(x[1])];case 5:return[5,I1(x[1])];case 6:return[6,I1(x[1])];case 7:return[7,I1(x[1])];case 8:var r=x[1];return[8,r,I1(x[2])];case 9:var e=x[1];return[9,e,e,I1(x[3])];case 10:return[10,I1(x[1])];case 11:return[11,I1(x[1])];case 12:return[12,I1(x[1])];case 13:return[13,I1(x[1])];default:return[14,I1(x[1])]}}function b2(x,r){if(typeof x=="number")return r;switch(x[0]){case 0:return[0,b2(x[1],r)];case 1:return[1,b2(x[1],r)];case 2:return[2,b2(x[1],r)];case 3:return[3,b2(x[1],r)];case 4:return[4,b2(x[1],r)];case 5:return[5,b2(x[1],r)];case 6:return[6,b2(x[1],r)];case 7:return[7,b2(x[1],r)];case 8:var e=x[1];return[8,e,b2(x[2],r)];case 9:var t=x[2],u=x[1];return[9,u,t,b2(x[3],r)];case 10:return[10,b2(x[1],r)];case 11:return[11,b2(x[1],r)];case 12:return[12,b2(x[1],r)];case 13:return[13,b2(x[1],r)];default:return[14,b2(x[1],r)]}}function T1(x,r){if(typeof x=="number")return r;switch(x[0]){case 0:return[0,T1(x[1],r)];case 1:return[1,T1(x[1],r)];case 2:var e=x[1];return[2,e,T1(x[2],r)];case 3:var t=x[1];return[3,t,T1(x[2],r)];case 4:var u=x[3],i=x[2],f=x[1];return[4,f,i,u,T1(x[4],r)];case 5:var o=x[3],l=x[2],d=x[1];return[5,d,l,o,T1(x[4],r)];case 6:var k=x[3],h=x[2],g=x[1];return[6,g,h,k,T1(x[4],r)];case 7:var A=x[3],N=x[2],C=x[1];return[7,C,N,A,T1(x[4],r)];case 8:var O=x[3],L=x[2],M=x[1];return[8,M,L,O,T1(x[4],r)];case 9:var V=x[1];return[9,V,T1(x[2],r)];case 10:return[10,T1(x[1],r)];case 11:var z=x[1];return[11,z,T1(x[2],r)];case 12:var Y=x[1];return[12,Y,T1(x[2],r)];case 13:var t0=x[2],i0=x[1];return[13,i0,t0,T1(x[3],r)];case 14:var j=x[2],K=x[1];return[14,K,j,T1(x[3],r)];case 15:return[15,T1(x[1],r)];case 16:return[16,T1(x[1],r)];case 17:var J=x[1];return[17,J,T1(x[2],r)];case 18:var Q=x[1];return[18,Q,T1(x[2],r)];case 19:return[19,T1(x[1],r)];case 20:var x0=x[2],$=x[1];return[20,$,x0,T1(x[3],r)];case 21:var f0=x[1];return[21,f0,T1(x[2],r)];case 22:return[22,T1(x[1],r)];case 23:var s0=x[1];return[23,s0,T1(x[2],r)];default:var v0=x[2],o0=x[1];return[24,o0,v0,T1(x[3],r)]}}function HI(x,r,e){return x[1]===r?(x[1]=e,1):0}function Ox(x){throw q0([0,_n,x],1)}function y2(x){throw q0([0,GI,x],1)}function Zd(x){return 0<=x?x:-x|0}var vT0=$M;function Fx(x,r){var e=Xx(x),t=Xx(r),u=w1(e+t|0);return Fc(x,0,u,0,e),Fc(r,0,u,e,t),S2(u)}function aT0(x){return x?lZ:pZ}function Qx(x,r){if(!x)return r;var e=x[1];return[0,e,Qx(x[2],r)]}QW(0);var lT0=JX(1),Gc=JX(2);function pT0(x){for(var r=GW(0);;){if(!r)return 0;var e=r[2],t=r[1];try{Qc(t)}catch(f){var u=C1(f);if(u[1]!==zX)throw q0(u,0)}var r=e}}function Il(x,r){return WI(x,r,0,Xx(r))}function $X(x){return Il(Gc,x),XX(Gc,10),Qc(Gc)}var bI=[0,pT0];function xO(x){return a(bI[1],0)}$I(GD,xO);var FX=nZ(0)[1],Ol=(4*eZ(0)|0)-1|0,dT0=[Gr,dZ,Js(0)];function yT0(x){throw q0(dT0,1)}function $d(x,r){return r?[0,a(x,r[1])]:0}function QX(x){return 25>>0?x:x+zM|0}function qc(x){for(var r=0,e=x;;){if(!e)return r;var r=r+1|0,e=e[2]}}function Rl(x){return x?x[1]:Ox(EZ)}function GX(x){return x?x[2]:Ox(SZ)}function Hc(x,r){for(var e=x,t=r;;){if(!e)return t;var u=[0,e[1],t],e=e[2],t=u}}function Ax(x){return Hc(x,0)}function Ll(x){if(!x)return 0;var r=x[1];return Qx(r,Ll(x[2]))}function Tn(x,r){if(!r)return 0;var e=r[2],t=a(x,r[1]);return[0,t,Tn(x,e)]}function Fd(x,r){for(var e=0,t=r;;){if(!t)return e;var u=t[2],e=[0,a(x,t[1]),e],t=u}}function g2(x,r){for(var e=r;;){if(!e)return 0;var t=e[2];a(x,e[1]);var e=t}}function H1(x,r,e){for(var t=r,u=e;;){if(!u)return t;var i=u[2],t=p(x,t,u[1]),u=i}}function rO(x,r,e){if(!r)return e;var t=r[1];return p(x,t,rO(x,r[2],e))}function qX(x,r,e){for(var t=r,u=e;;){if(t){if(u){var i=u[2],f=t[2];p(x,t[1],u[1]);var t=f,u=i;continue}}else if(!u)return 0;return y2(TZ)}}function eO(x,r){for(var e=r;;){if(!e)return 0;var t=e[2],u=a(x,e[1]);if(u)return u;var e=t}}function tO(x,r){for(var e=r;;){if(!e)return 0;var t=e[2],u=NX(e[1],x)===0?1:0;if(u)return u;var e=t}}function Ml(x){var r=0;return function(e){for(var t=r,u=e;;){if(!u)return Ax(t);var i=u[2],f=u[1];if(a(x,f)){var t=[0,f,t],u=i;continue}var u=i}}}function Mv(x,r){var e=w1(x);return CW(e,0,x,r),e}function HX(x){var r=ct(x),e=w1(r);return Ms(x,0,e,0,r),e}function bX(x,r,e){if(0<=r&&0<=e&&(ct(x)-e|0)>=r){var t=w1(e);return Ms(x,r,t,0,e),t}return y2(PZ)}function Va(x,r,e){return S2(bX(x,r,e))}function xY(x,r,e,t,u){return 0<=u&&0<=r&&(ct(x)-u|0)>=r&&0<=t&&(ct(e)-u|0)>=t?Ms(x,r,e,t,u):y2(AZ)}function zs(x,r,e,t,u){return 0<=u&&0<=r&&(Xx(x)-u|0)>=r&&0<=t&&(ct(e)-u|0)>=t?Fc(x,r,e,t,u):y2(gZ)}function Qd(x,r){return S2(Mv(x,r))}function m2(x,r,e){return S2(bX($c(x),r,e))}function rY(x){var r=$c(x);if(ct(r)===0)var e=r;else{var t=HX(r);Kr(t,0,QX(oe(r,0)));var e=t}return S2(e)}function eY(x,r){var e=Xx(x),t=e<=Xx(r)?1:0;if(!t)return t;for(var u=0;;){if(u===e)return 1;if(fx(r,u)!==fx(x,u))return 0;var u=u+1|0}}var mT0=Tx;function tY(x,r){var e=r.length-1-1|0,t=0;if(e>=0)for(var u=t;;){a(x,r[1+u]);var i=u+1|0;if(e!==u){var u=i;continue}break}return 0}function Gd(x,r){var e=r.length-1;if(e===0)return[0];var t=Ja(e,a(x,r[1])),u=e-1|0,i=1;if(u>=1)for(var f=i;;){t[1+f]=a(x,r[1+f]);var o=f+1|0;if(u!==f){var f=o;continue}break}return t}function Dl(x){if(!x)return[0];for(var r=0,e=x,t=x[2],u=x[1];;){if(e){var r=r+1|0,e=e[2];continue}for(var i=Ja(r,u),f=1,o=t;;){if(!o)return i;var l=o[2];i[1+f]=o[1];var f=f+1|0,o=l}}}function nY(x){try{var r=[0,Sl(x)];return r}catch(t){var e=C1(t);if(e[1]===_n)return 0;throw q0(e,0)}}function nO(x){function r(F){return F?F[5]:0}function e(F,H,B,a0){var m0=r(F),P0=r(a0),D=P0<=m0?m0+1|0:P0+1|0;return[0,F,H,B,a0,D]}function t(F,H){return[0,0,F,H,0,1]}function u(F,H,B,a0){var m0=F?F[5]:0,P0=a0?a0[5]:0;if((P0+2|0)=P0){var X=P0<=m0?m0+1|0:P0+1|0;return[0,F,H,B,a0,X]}if(!a0)return y2(JZ);var F0=a0[4],sx=a0[3],ex=a0[2],U0=a0[1],Nx=r(U0);if(Nx<=r(F0))return e(e(F,H,B,U0),ex,sx,F0);if(!U0)return y2(jZ);var mx=U0[3],Bx=U0[2],Gx=U0[1],J0=e(U0[4],ex,sx,F0);return e(e(F,H,B,Gx),Bx,mx,J0)}var i=0;function f(F){return F?0:1}function o(F,H,B){if(!B)return[0,0,F,H,0,1];var a0=B[4],m0=B[3],P0=B[2],D=B[1],O0=B[5],K0=p(x[1],F,P0);if(K0===0)return m0===H?B:[0,D,F,H,a0,O0];if(0<=K0){var j0=o(F,H,a0);return a0===j0?B:u(D,P0,m0,j0)}var ox=o(F,H,D);return D===ox?B:u(ox,P0,m0,a0)}function l(F,H){for(var B=H;;){if(!B)throw q0(E2,1);var a0=B[4],m0=B[3],P0=B[1],D=p(x[1],F,B[2]);if(D===0)return m0;var O0=0<=D?a0:P0,B=O0}}function d(F,H){for(var B=H;;){if(!B)throw q0(E2,1);var a0=B[2],m0=B[4],P0=B[3],D=B[1];if(!a(F,a0)){var B=m0;continue}for(var O0=a0,K0=P0,j0=D;;){if(!j0)return[0,O0,K0];var ox=j0[2],b0=j0[4],_x=j0[3],B0=j0[1];if(a(F,ox)){var O0=ox,K0=_x,j0=B0;continue}var j0=b0}}}function k(F,H){for(var B=H;;){if(!B)return 0;var a0=B[2],m0=B[4],P0=B[3],D=B[1];if(!a(F,a0)){var B=m0;continue}for(var O0=a0,K0=P0,j0=D;;){if(!j0)return[0,[0,O0,K0]];var ox=j0[2],b0=j0[4],_x=j0[3],B0=j0[1];if(a(F,ox)){var O0=ox,K0=_x,j0=B0;continue}var j0=b0}}}function h(F,H){for(var B=H;;){if(!B)throw q0(E2,1);var a0=B[2],m0=B[4],P0=B[3],D=B[1];if(!a(F,a0)){var B=D;continue}for(var O0=a0,K0=P0,j0=m0;;){if(!j0)return[0,O0,K0];var ox=j0[2],b0=j0[4],_x=j0[3],B0=j0[1];if(a(F,ox)){var O0=ox,K0=_x,j0=b0;continue}var j0=B0}}}function g(F,H){for(var B=H;;){if(!B)return 0;var a0=B[2],m0=B[4],P0=B[3],D=B[1];if(!a(F,a0)){var B=D;continue}for(var O0=a0,K0=P0,j0=m0;;){if(!j0)return[0,[0,O0,K0]];var ox=j0[2],b0=j0[4],_x=j0[3],B0=j0[1];if(a(F,ox)){var O0=ox,K0=_x,j0=b0;continue}var j0=B0}}}function A(F,H){for(var B=H;;){if(!B)return 0;var a0=B[4],m0=B[3],P0=B[1],D=p(x[1],F,B[2]);if(D===0)return[0,m0];var O0=0<=D?a0:P0,B=O0}}function N(F,H){for(var B=H;;){if(!B)return 0;var a0=B[4],m0=B[1],P0=p(x[1],F,B[2]),D=P0===0?1:0;if(D)return D;var O0=0<=P0?a0:m0,B=O0}}function C(F){for(var H=F;;){if(!H)throw q0(E2,1);var B=H[1];if(!B)return[0,H[2],H[3]];var H=B}}function O(F){for(var H=F;;){if(!H)return 0;var B=H[1];if(!B)return[0,[0,H[2],H[3]]];var H=B}}function L(F){for(var H=F;;){if(!H)throw q0(E2,1);if(!H[4])return[0,H[2],H[3]];var H=H[4]}}function M(F){for(var H=F;;){if(!H)return 0;if(!H[4])return[0,[0,H[2],H[3]]];var H=H[4]}}function V(F){if(!F)return y2(OZ);var H=F[1];if(!H)return F[4];var B=F[4],a0=F[3],m0=F[2];return u(V(H),m0,a0,B)}function z(F,H){if(!F)return H;if(!H)return F;var B=C(H),a0=B[2],m0=B[1];return u(F,m0,a0,V(H))}function Y(F,H){if(!H)return 0;var B=H[4],a0=H[3],m0=H[2],P0=H[1],D=p(x[1],F,m0);if(D===0)return z(P0,B);if(0<=D){var O0=Y(F,B);return B===O0?H:u(P0,m0,a0,O0)}var K0=Y(F,P0);return P0===K0?H:u(K0,m0,a0,B)}function t0(F,H,B){if(!B){var a0=a(H,0);return a0?[0,0,F,a0[1],0,1]:0}var m0=B[4],P0=B[3],D=B[2],O0=B[1],K0=B[5],j0=p(x[1],F,D);if(j0===0){var ox=a(H,[0,P0]);if(!ox)return z(O0,m0);var b0=ox[1];return P0===b0?B:[0,O0,F,b0,m0,K0]}if(0<=j0){var _x=t0(F,H,m0);return m0===_x?B:u(O0,D,P0,_x)}var B0=t0(F,H,O0);return O0===B0?B:u(B0,D,P0,m0)}function i0(F,H){for(var B=H;;){if(!B)return 0;var a0=B[4],m0=B[3],P0=B[2];i0(F,B[1]),p(F,P0,m0);var B=a0}}function j(F,H){if(!H)return 0;var B=H[5],a0=H[4],m0=H[3],P0=H[2],D=j(F,H[1]),O0=a(F,m0);return[0,D,P0,O0,j(F,a0),B]}function K(F,H){if(!H)return 0;var B=H[2],a0=H[5],m0=H[4],P0=H[3],D=K(F,H[1]),O0=p(F,B,P0);return[0,D,B,O0,K(F,m0),a0]}function J(F,H,B){for(var a0=H,m0=B;;){if(!a0)return m0;var P0=a0[4],D=a0[3],O0=a0[2],K0=H0(F,O0,D,J(F,a0[1],m0)),a0=P0,m0=K0}}function Q(F,H){for(var B=H;;){if(!B)return 1;var a0=B[4],m0=B[1],P0=p(F,B[2],B[3]);if(P0){var D=Q(F,m0);if(D){var B=a0;continue}var O0=D}else var O0=P0;return O0}}function x0(F,H){for(var B=H;;){if(!B)return 0;var a0=B[4],m0=B[1],P0=p(F,B[2],B[3]);if(P0)var D=P0;else{var O0=x0(F,m0);if(!O0){var B=a0;continue}var D=O0}return D}}function $(F,H,B){if(!B)return t(F,H);var a0=B[4],m0=B[3],P0=B[2];return u($(F,H,B[1]),P0,m0,a0)}function f0(F,H,B){if(!B)return t(F,H);var a0=B[3],m0=B[2],P0=B[1];return u(P0,m0,a0,f0(F,H,B[4]))}function s0(F,H,B,a0){if(!F)return $(H,B,a0);if(!a0)return f0(H,B,F);var m0=a0[5],P0=F[5],D=a0[4],O0=a0[3],K0=a0[2],j0=a0[1],ox=F[4],b0=F[3],_x=F[2],B0=F[1];return(m0+2|0)x[3])throw q0([0,wr,zZ],1);if((e+r|0)<=x[3])return 0;throw q0([0,wr,KZ],1)}}function st(x,r){var e=x[2];return x[3]<=e&&fO(x,1),Kr(x[1],e,r),x[2]=e+1|0,0}function iY(x,r,e,t){var u=e<0?1:0;if(u)var f=u;else var i=t<0?1:0,f=i||((Xx(r)-t|0)=u+X5>>>0&&(i=1):65<=u&&(i=1);else{var f=0;if(u===32)f=1;else if(43<=u)switch(u+N9|0){case 5:if(t<(e+2|0)&&1>>0?33>>0&&(i=1):u===2&&(i=1),!i){var r=r+1|0;continue}var f=$c(x),o=[0,0],l=ct(f)-1|0,d=0;if(l>=0)for(var k=d;;){var h=oe(f,k),g=0;if(32<=h){var A=h-34|0,N=0;if(58>>0?93>A&&(N=1):56>>0?g=1:N=1,N){var C=1;g=2}}else 11<=h?h===13&&(g=1):8<=h&&(g=1);switch(g){case 0:var C=4;break;case 1:var C=2;break}o[1]=o[1]+C|0;var O=k+1|0;if(l!==k){var k=O;continue}break}if(o[1]===ct(f))var L=HX(f);else{var M=w1(o[1]);o[1]=0;var V=ct(f)-1|0,z=0;if(V>=0)for(var Y=z;;){var t0=oe(f,Y),i0=0;if(35<=t0)t0===92?i0=2:Yr<=t0?i0=1:i0=3;else if(32<=t0)34<=t0?i0=2:i0=3;else if(14<=t0)i0=1;else switch(t0){case 8:Kr(M,o[1],92),o[1]++,Kr(M,o[1],98);break;case 9:Kr(M,o[1],92),o[1]++,Kr(M,o[1],Ns);break;case 10:Kr(M,o[1],92),o[1]++,Kr(M,o[1],V1);break;case 13:Kr(M,o[1],92),o[1]++,Kr(M,o[1],ut);break;default:i0=1}switch(i0){case 1:Kr(M,o[1],92),o[1]++,Kr(M,o[1],48+(t0/it|0)|0),o[1]++,Kr(M,o[1],48+((t0/10|0)%10|0)|0),o[1]++,Kr(M,o[1],48+(t0%10|0)|0);break;case 2:Kr(M,o[1],92),o[1]++,Kr(M,o[1],t0);break;case 3:Kr(M,o[1],t0);break}o[1]++;var j=Y+1|0;if(V!==Y){var Y=j;continue}break}var L=M}var t=S2(L)}var K=Xx(t),J=Mv(K+2|0,34);return Fc(t,0,J,1,K),S2(J)}}function vY(x,r){var e=Zd(r),t=Y$[1];switch(x[2]){case 0:var u=Jf;break;case 1:var u=It;break;case 2:var u=69;break;case 3:var u=fn;break;case 4:var u=71;break;case 5:var u=t;break;case 6:var u=Dt;break;case 7:var u=72;break;default:var u=70}var i=fY(16);switch(Ba(i,37),x[1]){case 0:break;case 1:Ba(i,43);break;default:Ba(i,32)}return 8<=x[2]&&Ba(i,35),Ba(i,46),A2(i,kx+e),Ba(i,u),sY(i)}function Hd(x,r){if(13>x)return r;var e=[0,0],t=Xx(r)-1|0,u=0;if(t>=0)for(var i=u;;){9>=fx(r,i)+Y1>>>0&&e[1]++;var f=i+1|0;if(t!==i){var i=f;continue}break}var o=e[1],l=w1(Xx(r)+((o-1|0)/3|0)|0),d=[0,0];function k(L){return Ua(l,d[1],L),d[1]++,0}var h=[0,((o-1|0)%3|0)+1|0],g=Xx(r)-1|0,A=0;if(g>=0)for(var N=A;;){var C=fx(r,N);9>>0||(h[1]===0&&(k(95),h[1]=3),h[1]+=-1),k(C);var O=N+1|0;if(g!==N){var N=O;continue}break}return S2(l)}function _T0(x,r){switch(x){case 1:var e=AF;break;case 2:var e=PF;break;case 4:var e=NF;break;case 5:var e=CF;break;case 6:var e=IF;break;case 7:var e=OF;break;case 8:var e=RF;break;case 9:var e=LF;break;case 10:var e=MF;break;case 11:var e=DF;break;case 0:case 13:var e=UF;break;case 3:case 14:var e=jF;break;default:var e=JF}return Hd(x,jd(e,r))}function wT0(x,r){switch(x){case 1:var e=xF;break;case 2:var e=rF;break;case 4:var e=eF;break;case 5:var e=tF;break;case 6:var e=nF;break;case 7:var e=uF;break;case 8:var e=iF;break;case 9:var e=fF;break;case 10:var e=cF;break;case 11:var e=sF;break;case 0:case 13:var e=oF;break;case 3:case 14:var e=vF;break;default:var e=aF}return Hd(x,jd(e,r))}function TT0(x,r){switch(x){case 1:var e=V$;break;case 2:var e=z$;break;case 4:var e=K$;break;case 5:var e=B$;break;case 6:var e=W$;break;case 7:var e=Z$;break;case 8:var e=$$;break;case 9:var e=F$;break;case 10:var e=Q$;break;case 11:var e=G$;break;case 0:case 13:var e=q$;break;case 3:case 14:var e=H$;break;default:var e=b$}return Hd(x,jd(e,r))}function ST0(x,r){switch(x){case 1:var e=lF;break;case 2:var e=pF;break;case 4:var e=dF;break;case 5:var e=yF;break;case 6:var e=mF;break;case 7:var e=kF;break;case 8:var e=hF;break;case 9:var e=_F;break;case 10:var e=wF;break;case 11:var e=TF;break;case 0:case 13:var e=SF;break;case 3:case 14:var e=EF;break;default:var e=gF}return Hd(x,DW(e,r))}function Ks(x,r,e){function t(z){switch(x[1]){case 0:var Y=45;break;case 1:var Y=43;break;default:var Y=32}return OW(e,r,Y)}function u(z){var Y=lW(e);return Y===3?e<0?j$:J$:4<=Y?U$:z}switch(x[2]){case 5:for(var i=YI(vY(x,r),e),f=0,o=Xx(i);;){if(f===o)var l=0;else{var d=N1(i,f)+Nv|0,k=0;if(23>>0?d===55&&(k=1):21>>0&&(k=1),!k){var f=f+1|0;continue}var l=1}var h=l?i:Fx(i,X$);return u(h)}case 6:return t(0);case 7:var g=$c(t(0)),A=ct(g);if(A===0)var N=g;else{var C=w1(A),O=A-1|0,L=0;if(O>=0)for(var M=L;;){Kr(C,M,QX(oe(g,M)));var V=M+1|0;if(O!==M){var M=V;continue}break}var N=C}return S2(N);case 8:return u(t(0));default:return YI(vY(x,r),e)}}function bd(x,r,e,t,u,i,f){if(typeof t=="number"){if(typeof u=="number")return u?function(A,N){return jr(x,[4,r,Wa(A,p(i,f,N))],e)}:function(A){return jr(x,[4,r,p(i,f,A)],e)};var o=u[1];return function(A){return jr(x,[4,r,Wa(o,p(i,f,A))],e)}}if(t[0]===0){var l=t[2],d=t[1];if(typeof u=="number")return u?function(A,N){return jr(x,[4,r,Ke(d,l,Wa(A,p(i,f,N)))],e)}:function(A){return jr(x,[4,r,Ke(d,l,p(i,f,A))],e)};var k=u[1];return function(A){return jr(x,[4,r,Ke(d,l,Wa(k,p(i,f,A)))],e)}}var h=t[1];if(typeof u=="number")return u?function(A,N,C){return jr(x,[4,r,Ke(h,A,Wa(N,p(i,f,C)))],e)}:function(A,N){return jr(x,[4,r,Ke(h,A,p(i,f,N))],e)};var g=u[1];return function(A,N){return jr(x,[4,r,Ke(h,A,Wa(g,p(i,f,N)))],e)}}function vO(x,r,e,t,u){if(typeof t=="number")return function(l){return jr(x,[4,r,a(u,l)],e)};if(t[0]===0){var i=t[2],f=t[1];return function(l){return jr(x,[4,r,Ke(f,i,a(u,l))],e)}}var o=t[1];return function(l,d){return jr(x,[4,r,Ke(o,l,a(u,d))],e)}}function Xl(x,r,e,t){for(var u=r,i=e,f=t;;){if(typeof f=="number")return a(u,i);switch(f[0]){case 0:var o=f[1];return function(N0){return jr(u,[5,i,N0],o)};case 1:var l=f[1];return function(N0){var A0=0;if(40<=N0)if(N0===92)var Y0=yZ;else Yr<=N0?A0=1:A0=2;else if(32<=N0)if(39<=N0)var Y0=mZ;else A0=2;else if(14<=N0)A0=1;else switch(N0){case 8:var Y0=kZ;break;case 9:var Y0=hZ;break;case 10:var Y0=_Z;break;case 13:var Y0=wZ;break;default:A0=1}switch(A0){case 1:var C0=w1(4);Kr(C0,0,92),Kr(C0,1,48+(N0/it|0)|0),Kr(C0,2,48+((N0/10|0)%10|0)|0),Kr(C0,3,48+(N0%10|0)|0);var Y0=S2(C0);break;case 2:var F=w1(1);Kr(F,0,N0);var Y0=S2(F);break}var H=Xx(Y0),B=Mv(H+2|0,39);return Fc(Y0,0,B,1,H),jr(u,[4,i,S2(B)],l)};case 2:var d=f[2],k=f[1];return vO(u,i,d,k,function(N0){return N0});case 3:return vO(u,i,f[2],f[1],hT0);case 4:return bd(u,i,f[4],f[2],f[3],_T0,f[1]);case 5:return bd(u,i,f[4],f[2],f[3],wT0,f[1]);case 6:return bd(u,i,f[4],f[2],f[3],TT0,f[1]);case 7:return bd(u,i,f[4],f[2],f[3],ST0,f[1]);case 8:var h=f[4],g=f[3],A=f[2],N=f[1];if(typeof A=="number"){if(typeof g=="number")return g?function(N0,A0){return jr(u,[4,i,Ks(N,N0,A0)],h)}:function(N0){return jr(u,[4,i,Ks(N,sO(N),N0)],h)};var C=g[1];return function(N0){return jr(u,[4,i,Ks(N,C,N0)],h)}}if(A[0]===0){var O=A[2],L=A[1];if(typeof g=="number")return g?function(N0,A0){return jr(u,[4,i,Ke(L,O,Ks(N,N0,A0))],h)}:function(N0){return jr(u,[4,i,Ke(L,O,Ks(N,sO(N),N0))],h)};var M=g[1];return function(N0){return jr(u,[4,i,Ke(L,O,Ks(N,M,N0))],h)}}var V=A[1];if(typeof g=="number")return g?function(N0,A0,Y0){return jr(u,[4,i,Ke(V,N0,Ks(N,A0,Y0))],h)}:function(N0,A0){return jr(u,[4,i,Ke(V,N0,Ks(N,sO(N),A0))],h)};var z=g[1];return function(N0,A0){return jr(u,[4,i,Ke(V,N0,Ks(N,z,A0))],h)};case 9:return vO(u,i,f[2],f[1],aT0);case 10:var i=[7,i],f=f[1];continue;case 11:var i=[2,i,f[1]],f=f[2];continue;case 12:var i=[3,i,f[1]],f=f[2];continue;case 13:var Y=f[3],t0=f[2],i0=fY(16);oO(i0,t0);var j=sY(i0);return function(N0){return jr(u,[4,i,j],Y)};case 14:var K=f[3],J=f[2];return function(N0){var A0=N0[1],Y0=s1(A0,I1(b1(J)));if(typeof Y0[2]=="number")return jr(u,i,T1(Y0[1],K));throw q0(k2,1)};case 15:var Q=f[1];return function(N0,A0){return jr(u,[6,i,function(Y0){return p(N0,Y0,A0)}],Q)};case 16:var x0=f[1];return function(N0){return jr(u,[6,i,N0],x0)};case 17:var i=[0,i,f[1]],f=f[2];continue;case 18:var $=f[1];if($[0]===0){var f0=f[2],s0=$[1][1],v0=0,u=function(C0,F,H){return function(B){return jr(F,[1,C0,[0,B]],H)}}(i,u,f0),i=v0,f=s0;continue}var o0=f[2],c0=$[1][1],d0=0,u=function(N0,A0,Y0){return function(C0){return jr(A0,[1,N0,[1,C0]],Y0)}}(i,u,o0),i=d0,f=c0;continue;case 19:throw q0([0,wr,E$],1);case 20:var E0=f[3],L0=[8,i,g$];return function(N0){return jr(u,L0,E0)};case 21:var X0=f[2];return function(N0){return jr(u,[4,i,jd(xj,N0)],X0)};case 22:var xx=f[1];return function(N0){return jr(u,[5,i,N0],xx)};case 23:var g0=f[2],$0=f[1];if(typeof $0=="number")switch($0){case 0:return x<50?e1(x+1|0,u,i,g0):d2(e1,[0,u,i,g0]);case 1:return x<50?e1(x+1|0,u,i,g0):d2(e1,[0,u,i,g0]);case 2:throw q0([0,wr,A$],1);default:return x<50?e1(x+1|0,u,i,g0):d2(e1,[0,u,i,g0])}switch($0[0]){case 0:return x<50?e1(x+1|0,u,i,g0):d2(e1,[0,u,i,g0]);case 1:return x<50?e1(x+1|0,u,i,g0):d2(e1,[0,u,i,g0]);case 2:return x<50?e1(x+1|0,u,i,g0):d2(e1,[0,u,i,g0]);case 3:return x<50?e1(x+1|0,u,i,g0):d2(e1,[0,u,i,g0]);case 4:return x<50?e1(x+1|0,u,i,g0):d2(e1,[0,u,i,g0]);case 5:return x<50?e1(x+1|0,u,i,g0):d2(e1,[0,u,i,g0]);case 6:return x<50?e1(x+1|0,u,i,g0):d2(e1,[0,u,i,g0]);case 7:return x<50?e1(x+1|0,u,i,g0):d2(e1,[0,u,i,g0]);case 8:return x<50?e1(x+1|0,u,i,g0):d2(e1,[0,u,i,g0]);case 9:var n0=$0[2];return x<50?aO(x+1|0,u,i,n0,g0):d2(aO,[0,u,i,n0,g0]);case 10:return x<50?e1(x+1|0,u,i,g0):d2(e1,[0,u,i,g0]);default:return x<50?e1(x+1|0,u,i,g0):d2(e1,[0,u,i,g0])}default:var ix=f[3],rx=f[1],dx=a(f[2],0);return x<50?lO(x+1|0,u,i,ix,rx,dx):d2(lO,[0,u,i,ix,rx,dx])}}}function aO(x,r,e,t,u){if(typeof t=="number")return x<50?e1(x+1|0,r,e,u):d2(e1,[0,r,e,u]);switch(t[0]){case 0:var i=t[1];return function(z){return ot(r,e,i,u)};case 1:var f=t[1];return function(z){return ot(r,e,f,u)};case 2:var o=t[1];return function(z){return ot(r,e,o,u)};case 3:var l=t[1];return function(z){return ot(r,e,l,u)};case 4:var d=t[1];return function(z){return ot(r,e,d,u)};case 5:var k=t[1];return function(z){return ot(r,e,k,u)};case 6:var h=t[1];return function(z){return ot(r,e,h,u)};case 7:var g=t[1];return function(z){return ot(r,e,g,u)};case 8:var A=t[2];return function(z){return ot(r,e,A,u)};case 9:var N=t[3],C=t[2],O=s2(b1(t[1]),C);return function(z){return ot(r,e,b2(O,N),u)};case 10:var L=t[1];return function(z,Y){return ot(r,e,L,u)};case 11:var M=t[1];return function(z){return ot(r,e,M,u)};case 12:var V=t[1];return function(z){return ot(r,e,V,u)};case 13:throw q0([0,wr,P$],1);default:throw q0([0,wr,N$],1)}}function e1(x,r,e,t){var u=[8,e,C$];return x<50?Xl(x+1|0,r,u,t):d2(Xl,[0,r,u,t])}function lO(x,r,e,t,u,i){if(u){var f=u[1];return function(l){return ET0(r,e,t,f,a(i,l))}}var o=[4,e,i];return x<50?Xl(x+1|0,r,o,t):d2(Xl,[0,r,o,t])}function jr(x,r,e){return FI(Xl(0,x,r,e))}function ot(x,r,e,t){return FI(aO(0,x,r,e,t))}function ET0(x,r,e,t,u){return FI(lO(0,x,r,e,t,u))}function Bs(x,r){for(var e=r;;){if(typeof e=="number")return 0;switch(e[0]){case 0:var t=e[1],u=oY(e[2]);return Bs(x,t),Il(x,u);case 1:var i=e[2],f=e[1];if(i[0]===0){var o=i[1];Bs(x,f),Il(x,I$);var e=o;continue}var l=i[1];Bs(x,f),Il(x,O$);var e=l;continue;case 6:var d=e[2];return Bs(x,e[1]),a(d,x);case 7:return Bs(x,e[1]),Qc(x);case 8:var k=e[2];return Bs(x,e[1]),y2(k);case 2:case 4:var h=e[2];return Bs(x,e[1]),Il(x,h);default:var g=e[2];return Bs(x,e[1]),XX(x,g)}}}function Ws(x,r){for(var e=r;;){if(typeof e=="number")return 0;switch(e[0]){case 0:var t=e[1],u=oY(e[2]);return Ws(x,t),vr(x,u);case 1:var i=e[2],f=e[1];if(i[0]===0){var o=i[1];Ws(x,f),vr(x,R$);var e=o;continue}var l=i[1];Ws(x,f),vr(x,L$);var e=l;continue;case 6:var d=e[2];return Ws(x,e[1]),vr(x,a(d,0));case 7:var e=e[1];continue;case 8:var k=e[2];return Ws(x,e[1]),y2(k);case 2:case 4:var h=e[2];return Ws(x,e[1]),vr(x,h);default:var g=e[2];return Ws(x,e[1]),st(x,g)}}}function aY(x,r){var e=r[1],t=0;return jr(function(u){return Bs(x,u),0},t,e)}function pO(x){return aY(Gc,x)}function Tr(x){var r=x[1];return jr(function(e){var t=Zr(64);return Ws(t,e),U1(t)},0,r)}var dO=[0,0];function yO(x,r){var e=x[1+r];if(!(1-(typeof e=="number"?1:0)))return a(Tr(kQ),e);if(Lv(e)===Ea)return a(Tr(hQ),e);if(Lv(e)!==Q8)return _Q;for(var t=YI("%.12g",e),u=0,i=Xx(t);;){if(i<=u)return Fx(t,aZ);var f=N1(t,u),o=0;if(48<=f?58>f&&(o=1):f===45&&(o=1),!o)return t;var u=u+1|0}}function lY(x,r){if(x.length-1<=r)return FF;var e=lY(x,r+1|0),t=yO(x,r);return p(Tr(QF),t,e)}function xy(x){for(var r=dO[1];;){if(r){var e=0,t=r[2],u=r[1];try{var i=a(u,x)}catch{e=1}var f=0;if(e||!i)f=1;else var o=[0,i[1]];if(f){var r=t;continue}}else var o=0;if(o)return o[1];if(x===QI)return sQ;if(x===BX)return oQ;if(x[1]===KX){var l=x[2],d=l[3],k=l[2],h=l[1];return Ve(Tr(qI),h,k,d,d+5|0,vQ)}if(x[1]===wr){var g=x[2],A=g[3],N=g[2],C=g[1];return Ve(Tr(qI),C,N,A,A+6|0,aQ)}if(x[1]===Nl){var O=x[2],L=O[3],M=O[2],V=O[1];return Ve(Tr(qI),V,M,L,L+6|0,lQ)}if(Lv(x)!==0)return x[1];var z=x.length-1,Y=x[1][1];if(2>>0)var t0=lY(x,2),i0=yO(x,1),j=p(Tr(pQ),i0,t0);else switch(z){case 0:var j=dQ;break;case 1:var j=yQ;break;default:var K=yO(x,1),j=a(Tr(mQ),K)}return Fx(Y,j)}}function mO(x,r){var e=NW(r),t=e.length-1-1|0,u=0;if(t>=0)for(var i=u;;){var f=z1(e,i)[1+i],o=function(V){return function(z){return z?V===0?rQ:eQ:V===0?tQ:nQ}}(i);if(f[0]===0)var l=f[5],d=f[4],k=f[3],h=f[6]?uQ:iQ,g=f[2],A=f[7],N=o(f[1]),O=[0,sZ(Tr(fQ),N,A,g,h,k,d,l)];else if(f[1])var O=0;else var C=o(0),O=[0,a(Tr(cQ),C)];if(O){var L=O[1];a(aY(x,xQ),L)}var M=i+1|0;if(t!==i){var i=M;continue}break}return 0}function pY(x){for(;;){var r=dO[1],e=1-HI(dO,r,[0,x,r]);if(!e)return e}}var gT0=wQ.slice(),AT0=[0];$I(nD,function(x,r){try{try{var e=r?AT0:IX(0);try{xO(0)}catch{}try{var t=xy(x);a(pO(bF),t),mO(Gc,e);var u=KW(0);if(u<0){var i=Zd(u);$X(z1(gT0,i)[1+i])}var f=Qc(Gc),o=f}catch(A){var l=C1(A),d=xy(x);a(pO(GF),d),mO(Gc,e);var k=xy(l);a(pO(qF),k),mO(Gc,IX(0));var o=Qc(Gc)}var h=o}catch(A){var g=C1(A);if(g!==QI)throw q0(g,0);var h=$X(HF)}return h}catch{return 0}});var kO=[Gr,VQ,Js(0)],ry=0,dY=-1;function Yl(x,r){return x[13]=x[13]+r[3]|0,iO(r,x[28])}var yY=1000000010;function hO(x,r){return H0(x[17],r,0,Xx(r))}function ey(x){return a(x[19],0)}function mY(x,r,e){return x[9]=x[9]-r|0,hO(x,e),x[11]=0,0}function ty(x,r){var e=P(r,kx);return e&&mY(x,Xx(r),r)}function Uv(x,r,e){var t=r[3],u=r[2];ty(x,r[1]),ey(x),x[11]=1;var i=(x[6]-e|0)+u|0,f=x[8],o=f<=i?f:i;return x[10]=o,x[9]=x[6]-x[10]|0,a(x[21],x[10]),ty(x,t)}function kY(x,r){return Uv(x,YQ,r)}function Za(x,r){var e=r[2],t=r[3];return ty(x,r[1]),x[9]=x[9]-e|0,a(x[20],e),ty(x,t)}function PT0(x,r,e){if(typeof e=="number")switch(e){case 0:var t=Ka(x[3]);if(!t)return 0;var u=t[1][1],i=function(dx,ax){if(!ax)return[0,dx,0];var Sx=ax[1],D0=ax[2];return zW(dx,Sx)?[0,dx,ax]:[0,Sx,i(dx,D0)]};return u[1]=i(x[6]-x[9]|0,u[1]),0;case 1:return za(x[2]),0;case 2:return za(x[3]),0;case 3:var f=Ka(x[2]);return f?kY(x,f[1][2]):ey(x);case 4:var o=x[10]!==(x[6]-x[9]|0)?1:0;if(!o)return o;var l=x[28],d=l[2];if(d){var k=d[1];if(d[2]){var h=d[2];l[1]=l[1]-1|0,l[2]=h;var g=[0,k]}else{uO(l);var g=[0,k]}}else var g=0;if(!g)return 0;var A=g[1],N=A[1];return x[12]=x[12]-A[3]|0,x[9]=x[9]+N|0,0;default:var C=za(x[5]);return C?hO(x,a(x[25],C[1])):0}switch(e[0]){case 0:return mY(x,r,e[1]);case 1:var O=e[2],L=e[1],M=O[1],V=O[2],z=Ka(x[2]);if(!z)return 0;var Y=z[1],t0=Y[2];switch(Y[1]){case 0:return Za(x,L);case 1:return Uv(x,O,t0);case 2:return Uv(x,O,t0);case 3:return x[9]<(r+Xx(M)|0)?Uv(x,O,t0):Za(x,L);case 4:return x[11]?Za(x,L):x[9]<(r+Xx(M)|0)||((x[6]-t0|0)+V|0)s0){var $=v0;continue}var o0=s0}else var o0=f0;var c0=o0;break}else var c0=i0;var d0=c0-i0|0;return 0<=d0?Za(x,[0,jQ,d0+K|0,UQ]):Uv(x,[0,XQ,c0+j|0,JQ],x[6]);case 3:var E0=e[2],L0=e[1];if(x[8]<(x[6]-x[9]|0)){var X0=Ka(x[2]);if(X0){var xx=X0[1],g0=xx[2],$0=xx[1];x[9]=$0-1>>>0&&kY(x,g0)}else ey(x)}var n0=x[9]-L0|0,ix=E0===1?1:x[9]=e)return H0(x[17],PY,0,e);H0(x[17],PY,0,80);var e=e+qD|0}}function NT0(x){return x[1]===kO?Fx(NQ,Fx(x[2],PQ)):CQ}function CT0(x){return x[1]===kO?Fx(gQ,Fx(x[2],EQ)):AQ}function IT0(x){return 0}function OT0(x){return 0}function CY(x,r){function e(g){return 0}function t(g){return 0}function u(g){return 0}var i=uY(0),f=[0,dY,TQ,0];iO(f,i);var o=Ul(0);_O(o),Dv([0,1,f],o);var l=Ul(0),d=Ul(0),k=Ul(0),h=[0,o,Ul(0),k,d,l,78,10,68,78,0,1,1,1,1,vT0,SQ,x,r,u,t,e,0,0,NT0,CT0,IT0,OT0,i];return h[19]=function(g){return H0(h[17],IQ,0,1)},h[20]=function(g){return NY(h,g)},h[21]=function(g){return NY(h,g)},h}function IY(x){function r(e){return Qc(x)}return CY(function(e,t,u){return 0<=t&&0<=u&&(Xx(e)-u|0)>=t?WI(x,e,t,u):y2(vZ)},r)}function EO(x){function r(e){return 0}return CY(function(e,t,u){return iY(x,e,t,u)},r)}var RT0=aw;function OY(x){return Zr(RT0)}var LT0=OY(0),MT0=IY(lT0),DT0=IY(Gc);EO(LT0);function RY(x,r){var e=Zr(16),t=EO(e);p(x,t,r),zl(t,0);var u=e[2];if(2>u)return U1(e);var i=u-2|0,f=1;return 0<=i&&(e[2]-i|0)>=1?Va(e[1],f,i):y2(BZ)}function Be(x,r){var e=0;if(typeof r=="number")return 0;switch(r[0]){case 0:var t=r[2];if(Be(x,r[1]),typeof t=="number")switch(t){case 0:return EY(x,0);case 1:return gY(x,0);case 2:return zl(x,0);case 3:var u=x[14]=N1(M,j)+X5>>>0){var j=j+1|0;continue}for(var K=m2(M,i0,j-i0|0),J=t0(j),Q=J;;){if(Q!==z){var x0=N1(M,Q),$=0;if(48<=x0?58>x0&&($=1):x0===45&&($=1),$){var Q=Q+1|0;continue}}if(J===Q)var f0=0;else try{var s0=ft(m2(M,J,Q-J|0)),f0=s0}catch(b0){var v0=C1(b0);if(v0[1]!==_n)throw q0(v0,0);var f0=Y(0)}t0(Q)!==z&&Y(0);var o0=0;if(P(K,kx)&&P(K,$E))var c0=P(K,"h")?P(K,"hov")?P(K,"hv")?P(K,DD)?Y(0):1:2:3:0;else o0=1;if(o0)var c0=4;var V=[0,f0,c0];break}break}return SY(x,V[1],V[2]);case 2:var d0=r[1],E0=0;if(typeof d0=="number"||d0[0]!==0)E0=1;else{var L0=d0[2],X0=0;if(typeof L0=="number"||L0[0]!==1)X0=1;else var xx=r[2],g0=L0[2],$0=d0[1];X0&&(E0=1)}if(E0){var n0=r[2],ix=d0;e=2}break;case 3:var rx=r[1],dx=0;if(typeof rx=="number"||rx[0]!==0)dx=1;else{var ax=rx[2],Sx=0;if(typeof ax=="number"||ax[0]!==1)Sx=1;else{var D0=r[2],N0=ax[2],A0=rx[1];e=1}Sx&&(dx=1)}if(dx){var Y0=r[2],C0=rx;e=3}break;case 4:var F=r[1],H=0;if(typeof F=="number"||F[0]!==0)H=1;else{var B=F[2],a0=0;if(typeof B=="number"||B[0]!==1)a0=1;else var xx=r[2],g0=B[2],$0=F[1];a0&&(H=1)}if(H){var n0=r[2],ix=F;e=2}break;case 5:var m0=r[1],P0=0;if(typeof m0=="number"||m0[0]!==0)P0=1;else{var D=m0[2],O0=0;if(typeof D=="number"||D[0]!==1)O0=1;else{var D0=r[2],N0=D[2],A0=m0[1];e=1}O0&&(P0=1)}if(P0){var Y0=r[2],C0=m0;e=3}break;case 6:var K0=r[2];return Be(x,r[1]),a(K0,x);case 7:return Be(x,r[1]),zl(x,0);default:var j0=r[2];return Be(x,r[1]),y2(j0)}switch(e){case 0:return Be(x,$0),SO(x,g0,xx);case 1:return Be(x,A0),SO(x,N0,Qd(1,D0));case 2:return Be(x,ix),ny(x,n0);default:return Be(x,C0),Vl(x,Y0)}}function Jr(x){return function(r){var e=r[1],t=0;return jr(function(u){return Be(x,u),0},t,e)}}for(;;){var LY=bI[1],UT0=[0,1];if(!(1-HI(bI,LY,function(x,r){return function(e){return HI(x,1,0)&&(zl(MT0,0),zl(DT0,0)),a(r,0)}}(UT0,LY)))){var jT0=2,JT0=function(x){var r=[0,0],e=Xx(x)-1|0,t=0;if(e>=0)for(var u=t;;){var i=N1(x,u);r[1]=(bp*r[1]|0)+i|0;var f=u+1|0;if(e!==u){var u=f;continue}break}r[1]=r[1]&$M;var o=1073741823=0)for(var f=i;;){var o=(f*2|0)+3|0,l=z1(x,f)[1+f];z1(e,o)[1+o]=l;var d=f+1|0;if(u!==f){var f=d;continue}break}return[0,jT0,e,jv[1],go[1],0,0,Zs[1],0]},gO=function(x,r){var e=x[2].length-1,t=e=0&&(u.length-1-e|0)>=0&&(fW(i,0,u,0,e),f=1),f||y2(CZ),x[2]=u;var o=0}else var o=t;return o},jY=[0,0],YT0=[0,0],AO=function(x){var r=x[2].length-1;return gO(x,r+1|0),r},Kl=function(x,r){try{var e=p(jv[28],r,x[3]);return e}catch(i){var t=C1(i);if(t!==E2)throw q0(t,0);var u=AO(x);return x[3]=H0(jv[4],r,u,x[3]),x[4]=H0(go[4],u,1,x[4]),u}},PO=function(x,r){return Gd(function(e){return Kl(x,e)},r)},JY=function(x,r,e){return YT0[1]++,p(go[28],r,x[4])?(gO(x,r+1|0),z1(x[2],r)[1+r]=e,0):(x[6]=[0,[0,r,e],x[6]],0)},NO=function(x){if(x===0)return 0;for(var r=x.length-1-1|0,e=0;;){if(0>r)return e;var t=[0,x[1+r],e],r=r-1|0,e=t}},CO=function(x,r){try{var e=p(Zs[28],r,x[7]);return e}catch(i){var t=C1(i);if(t!==E2)throw q0(t,0);var u=x[1];return x[1]=u+1|0,P(r,kx)&&(x[7]=H0(Zs[4],r,u,x[7])),u}},IO=function(x){return Ud(x,0)?[0]:x},OO=function(x,r,e,t,u,i){var f=u[2],o=u[4],l=NO(r),d=NO(e),k=NO(t),h=Tn(function(o0){return Kl(x,o0)},d),g=Tn(function(o0){return Kl(x,o0)},k);x[5]=[0,[0,x[3],x[4],x[6],x[7],h,l],x[5]];var A=Zs[1],N=x[7];function C(o0,c0,d0){return tO(o0,l)?H0(Zs[4],o0,c0,d0):d0}x[7]=H0(Zs[13],C,N,A);var O=[0,jv[1]],L=[0,go[1]];qX(function(o0,c0){O[1]=H0(jv[4],o0,c0,O[1]);var d0=L[1];try{var E0=p(go[28],c0,x[4]),L0=E0}catch(xx){var X0=C1(xx);if(X0!==E2)throw q0(X0,0);var L0=1}return L[1]=H0(go[4],c0,L0,d0),0},k,g),qX(function(o0,c0){return O[1]=H0(jv[4],o0,c0,O[1]),L[1]=H0(go[4],c0,0,L[1]),0},d,h),x[3]=O[1],x[4]=L[1];var M=0,V=x[6];x[6]=rO(function(o0,c0){return tO(o0[1],h)?c0:[0,o0,c0]},V,M);var z=i?p(f,x,o):a(f,x),Y=Rl(x[5]),t0=Y[6],i0=Y[5],j=Y[4],K=Y[3],J=Y[2],Q=Y[1];x[5]=GX(x[5]),x[7]=H1(function(o0,c0){var d0=p(Zs[28],c0,x[7]);return H0(Zs[4],c0,d0,o0)},j,t0),x[3]=Q,x[4]=J;var x0=x[6];x[6]=rO(function(o0,c0){return tO(o0[1],i0)?c0:[0,o0,c0]},x0,K);var $=0,f0=IO(t),s0=[0,Gd(function(o0){var c0=Kl(x,o0);try{for(var d0=x[6];;){if(!d0)throw q0(E2,1);var E0=d0[1],L0=d0[2],X0=E0[2];if(NX(E0[1],c0)===0)return X0;var d0=L0}}catch(g0){var xx=C1(g0);if(xx===E2)return z1(x[2],c0)[1+c0];throw q0(xx,0)}},f0),$],v0=IO(r);return cW([0,[0,z],[0,Gd(function(o0){try{var c0=p(Zs[28],o0,x[7]);return c0}catch(E0){var d0=C1(E0);throw d0===E2?q0([0,wr,zQ],1):q0(d0,0)}},v0),s0]])},uy=function(x,r){if(x===0)var e=UY([0]);else{var t=UY(Gd(JT0,x)),u=x.length-1-1|0,i=0;if(u>=0)for(var f=i;;){var o=(f*2|0)+2|0;t[3]=H0(jv[4],x[1+f],o,t[3]),t[4]=H0(go[4],o,1,t[4]);var l=f+1|0;if(u!==f){var f=l;continue}break}var e=t}var d=a(r,e);return jY[1]=(jY[1]+e[1]|0)-1|0,e[8]=Ax(e[8]),gO(e,3+((z1(e[2],1)[2]*16|0)/32|0)|0),[0,a(d,0),r,d,0]},iy=function(x,r){if(x)return x;var e=ZI(Gr,r[1]);return e[1]=r[2],xZ(e)},RO=function(x,r,e){if(x)return r;var t=e[8];if(t!==0)for(var u=t;;){if(u){var i=u[2];a(u[1],r);var u=i;continue}break}return r},fy=function(x){var r=AO(x),e=0;if(r%2|0&&(2+((z1(x[2],1)[2]*16|0)/32|0)|0)>=r){var t=AO(x);e=1}if(!e)var t=r;return z1(x[2],t)[1+t]=0,t},LO=function(x,r){for(var e=[0,0],t=r.length-1;;){if(e[1]>=t)return 0;var u=e[1],i=z1(r,u)[1+u],f=function(_x){e[1]++;var B0=e[1];return z1(r,B0)[1+B0]},o=f(0);if(typeof o=="number")switch(o){case 0:var l=f(0),b0=function(B0){return function(T){return B0}}(l);break;case 1:var d=f(0),b0=function(B0){return function(T){return T[1+B0]}}(d);break;case 2:var k=f(0),h=f(0),b0=function(B0,T){return function(X){return X[1+B0][1+T]}}(k,h);break;case 3:var g=f(0),b0=function(B0){return function(T){return a(T[1][1+B0],T)}}(g);break;case 4:var A=f(0),b0=function(B0){return function(T,X){return T[1+B0]=X,0}}(A);break;case 5:var N=f(0),C=f(0),b0=function(B0,T){return function(X){return a(B0,T)}}(N,C);break;case 6:var O=f(0),L=f(0),b0=function(B0,T){return function(X){return a(B0,X[1+T])}}(O,L);break;case 7:var M=f(0),V=f(0),z=f(0),b0=function(B0,T,X){return function(F0){return a(B0,F0[1+T][1+X])}}(M,V,z);break;case 8:var Y=f(0),t0=f(0),b0=function(B0,T){return function(X){return a(B0,a(X[1][1+T],X))}}(Y,t0);break;case 9:var i0=f(0),j=f(0),K=f(0),b0=function(B0,T,X){return function(F0){return p(B0,T,X)}}(i0,j,K);break;case 10:var J=f(0),Q=f(0),x0=f(0),b0=function(B0,T,X){return function(F0){return p(B0,T,F0[1+X])}}(J,Q,x0);break;case 11:var $=f(0),f0=f(0),s0=f(0),v0=f(0),b0=function(B0,T,X,F0){return function(sx){return p(B0,T,sx[1+X][1+F0])}}($,f0,s0,v0);break;case 12:var o0=f(0),c0=f(0),d0=f(0),b0=function(B0,T,X){return function(F0){return p(B0,T,a(F0[1][1+X],F0))}}(o0,c0,d0);break;case 13:var E0=f(0),L0=f(0),X0=f(0),b0=function(B0,T,X){return function(F0){return p(B0,F0[1+T],X)}}(E0,L0,X0);break;case 14:var xx=f(0),g0=f(0),$0=f(0),n0=f(0),b0=function(B0,T,X,F0){return function(sx){return p(B0,sx[1+T][1+X],F0)}}(xx,g0,$0,n0);break;case 15:var ix=f(0),rx=f(0),dx=f(0),b0=function(B0,T,X){return function(F0){return p(B0,a(F0[1][1+T],F0),X)}}(ix,rx,dx);break;case 16:var ax=f(0),Sx=f(0),b0=function(B0,T){return function(X){return p(X[1][1+B0],X,T)}}(ax,Sx);break;case 17:var D0=f(0),N0=f(0),b0=function(B0,T){return function(X){return p(X[1][1+B0],X,X[1+T])}}(D0,N0);break;case 18:var A0=f(0),Y0=f(0),C0=f(0),b0=function(B0,T,X){return function(F0){return p(F0[1][1+B0],F0,F0[1+T][1+X])}}(A0,Y0,C0);break;case 19:var F=f(0),H=f(0),b0=function(B0,T){return function(X){var F0=a(X[1][1+T],X);return p(X[1][1+B0],X,F0)}}(F,H);break;case 20:var B=f(0),a0=f(0);fy(x);var b0=function(B0,T){return function(X){return a(qx(T,B0,0),T)}}(B,a0);break;case 21:var m0=f(0),P0=f(0);fy(x);var b0=function(B0,T){return function(X){var F0=X[1+T];return a(qx(F0,B0,0),F0)}}(m0,P0);break;case 22:var D=f(0),O0=f(0),K0=f(0);fy(x);var b0=function(B0,T,X){return function(F0){var sx=F0[1+T][1+X];return a(qx(sx,B0,0),sx)}}(D,O0,K0);break;default:var j0=f(0),ox=f(0);fy(x);var b0=function(B0,T){return function(X){var F0=a(X[1][1+T],X);return a(qx(F0,B0,0),F0)}}(j0,ox)}else var b0=o;JY(x,i,b0),e[1]++}},XY=function(x,r){var e=r.length-1,t=ZI(0,e),u=e-1|0,i=0;if(u>=0)for(var f=i;;){var o=z1(r,f)[1+f];if(typeof o=="number")switch(o){case 0:var k=function(A){function N(C){var O=t[1+A];if(N===O)throw q0([0,Nl,x],1);return a(O,C)}return N}(f);break;case 1:var l=[];I0(l,[h8,function(A,N){return function(C){var O=t[1+N];if(A===O)throw q0([0,Nl,x],1);var L=Lv(O);if(Ov===L)return O[1];if(h8!==L)return O;var M=O[1];O[1]=yT0;try{var V=a(M,0);return HW(O,V),V}catch(Y){var z=C1(Y);throw O[1]=function(t0){throw q0(z,0)},q0(z,0)}}}(l,f)]);var k=l;break;default:var d=function(A){throw q0([0,Nl,x],1)},k=[0,d,d,d,0]}else var k=o[0]===0?XY(x,o[1]):o[1];t[1+f]=k;var h=f+1|0;if(u!==f){var f=h;continue}break}return t},YY=function(x,r,e){if(Lv(e)===0&&x.length-1<=e.length-1){var t=x.length-1-1|0,u=0;if(t>=0)for(var i=u;;){var f=e[1+i],o=z1(x,i)[1+i];if(typeof o=="number")if(o===2){var l=0;if(Lv(f)===0&&f.length-1===4)for(var d=0,k=r[1+i];;){k[1+d]=f[1+d];var h=d+1|0;if(d!==3){var d=h;continue}break}else l=1;if(l)throw q0([0,wr,KQ],1)}else r[1+i]=f;else o[0]===0&&YY(o[1],r[1+i],f);var g=i+1|0;if(t!==i){var i=g;continue}break}return 0}throw q0([0,wr,BQ],1)};try{YX("TMPDIR")}catch(x){var VY=C1(x);if(VY!==E2)throw q0(VY,0)}try{YX("TEMP")}catch(x){var zY=C1(x);if(zY!==E2)throw q0(zY,0)}P(FX,SJ)&&P(FX,"Win32");var bc=function(x,r){function e(t){return st(x,t)}return b3<=r?(e(ha|r>>>18|0),e(m1|(r>>>12|0)&63),e(m1|(r>>>6|0)&63),e(m1|r&63)):oC<=r?(e(ga|r>>>12|0),e(m1|(r>>>6|0)&63),e(m1|r&63)):m1<=r?(e(ma|r>>>6|0),e(m1|r&63)):e(r)},Ao=[Gr,$Q,Js(0)],KY=0,BY=0,WY=0,ZY=0,$Y=0,FY=0,QY=0,GY=0,qY=0,HY=0,m=function(x){if(x[3]===x[2])return-1;var r=x[1][1+x[3]];return x[3]=x[3]+1|0,r===10&&(x[5]!==0&&(x[5]=x[5]+1|0),x[4]=x[3]),r},e0=function(x,r){return x[9]=x[3],x[10]=x[4],x[11]=x[5],x[12]=r,0},pr=function(x){return x[6]=x[3],x[7]=x[4],x[8]=x[5],e0(x,-1)},w=function(x){return x[3]=x[9],x[4]=x[10],x[5]=x[11],x[12]},$a=function(x){return x[3]=x[6],x[4]=x[7],x[5]=x[8],0},MO=function(x,r){return x[6]=r,0},cy=function(x){return x[3]-x[6]|0},t1=function(x){var r=x[3]-x[6]|0,e=x[6],t=x[1];return 0<=e&&0<=r&&(t.length-1-r|0)>=e?sW(t,e,r):y2(IZ)},bY=function(x){var r=x[6];return z1(x[1],r)[1+r]},Bl=function(x,r,e,t){for(var u=[0,r],i=[0,e],f=[0,0];;){if(0>=i[1])return f[1];var o=x[1+u[1]];if(0>o)throw q0(Ao,1);if(Yr>>18|0),Kr(t,f[1]+1|0,m1|(o>>>12|0)&63),Kr(t,f[1]+2|0,m1|(o>>>6|0)&63),Kr(t,f[1]+3|0,m1|o&63),f[1]=f[1]+4|0}else Kr(t,f[1],ga|o>>>12|0),Kr(t,f[1]+1|0,m1|(o>>>6|0)&63),Kr(t,f[1]+2|0,m1|o&63),f[1]=f[1]+3|0;else Kr(t,f[1],ma|o>>>6|0),Kr(t,f[1]+1|0,m1|o&63),f[1]=f[1]+2|0;else Kr(t,f[1],o),f[1]++;u[1]++,i[1]+=-1}},xV=function(x){for(var r=Xx(x),e=Ja(r,0),t=[0,0],u=[0,0];;){if(t[1]>=r)return[0,e,u[1],HY,qY,GY,QY,FY,$Y,ZY,WY,BY,KY];var i=fx(x,t[1]),f=0;if(ma<=i)if(ha<=i)if(Gr<=i)f=1;else{var o=fx(x,t[1]+1|0),l=fx(x,t[1]+2|0),d=fx(x,t[1]+3|0),k=(o>>>6|0)!==2?1:0;if(k)var g=k;else var h=(l>>>6|0)!==2?1:0,g=h||((d>>>6|0)!==2?1:0);if(g)throw q0(Ao,1);var A=(i&7)<<18|(o&63)<<12|(l&63)<<6|d&63;if(f5>>6|0)!==2?1:0,M=L||((C>>>6|0)!==2?1:0);if(M)var z=M;else var V=55296<=O?1:0,z=V&&(O<=57343?1:0);if(z)throw q0(Ao,1);e[1+u[1]]=O,t[1]=t[1]+3|0}else{var Y=fx(x,t[1]+1|0);if((Y>>>6|0)!==2)throw q0(Ao,1);e[1+u[1]]=(i&31)<<6|Y&63,t[1]=t[1]+2|0}else m1<=i?f=1:(e[1+u[1]]=i,t[1]++);if(f)throw q0(Ao,1);u[1]++}},Wl=function(x,r,e){var t=x[6]+r|0,u=w1(e*4|0),i=x[1];if((t+e|0)<=i.length-1)return Va(u,0,Bl(i,t,e,u));throw q0([0,wr,ZQ],1)},Yx=function(x){var r=x[6],e=x[3]-r|0,t=w1(e*4|0);return Va(t,0,Bl(x[1],r,e,t))},sy=function(x,r){var e=x[6],t=x[3]-e|0,u=w1(t*4|0);return cO(r,u,0,Bl(x[1],e,t,u))},Zl=function(x){var r=x.length-1,e=w1(r*4|0);return Va(e,0,Bl(x,0,r,e))},rV=function(x,r){return x[3]=x[3]-r|0,0},xs=function(x){return typeof x=="number"?0:x[0]===0?1:x[1]},Jv=function(x,r,e,t){var u=xs(x),i=xs(t),f=i<=u?u+1|0:i+1|0;return f===1?[0,r,e]:[1,f,r,e,x,t]},oy=function(x,r,e,t){var u=xs(x),i=xs(t),f=i<=u?u+1|0:i+1|0;return[1,f,r,e,x,t]},eV=function(x,r,e,t){var u=xs(x),i=xs(t);if((i+2|0)=i)return Jv(x,r,e,t);var C=t[5],O=t[4],L=t[3],M=t[2],V=xs(O);if(V<=xs(C))return oy(Jv(x,r,e,O),M,L,C);var z=O[4],Y=O[3],t0=O[2],i0=Jv(O[5],M,L,C);return oy(Jv(x,r,e,z),t0,Y,i0)},VT0=0,Fa=function(x,r){for(var e=x,t=r;;){if(typeof e=="number")return t;if(e[0]===0)return[0,e[1],0,t];var u=[0,e[2],e[4],t],e=e[3],t=u}},tV=function(x,r){if(!x)return 0;var e=x[1],t=Fa(x[2],x[3]);return[0,e,function(u){return tV(t,u)}]},zT0=function(x){var r=Fa(x,0);return function(e){return tV(r,e)}},$s=function(x){return typeof x=="number"?0:x[0]===0?1:x[1]},KT0=function(x){return[0,x]},We=function(x,r,e){var t=0;if(typeof x=="number"){if(typeof e=="number")return[0,r];e[0]===1&&(t=1)}else if(x[0]===0)typeof e!="number"&&e[0]===1&&(t=1);else{var u=x[1];if(typeof e!="number"&&e[0]===1){var i=e[1],f=i<=u?u+1|0:i+1|0;return[1,f,r,x,e]}var o=u;t=2}switch(t){case 1:var o=e[1];break;case 0:return[1,2,r,x,e]}return[1,o+1|0,r,x,e]},Po=function(x,r,e){var t=$s(x),u=$s(e),i=u<=t?t+1|0:u+1|0;return[1,i,r,x,e]},vy=function(x,r){if(r===0)return 0;if(r===1)return[0,a(x,0)];var e=r>>>1|0,t=vy(x,e),u=a(x,0),i=vy(x,(r-e|0)-1|0);return[1,$s(t)+1|0,u,t,i]},BT0=function(x){var r=[0,0],e=x.length-1;return vy(function(t){var u=r[1],i=z1(x,u)[1+u];return r[1]++,i},e)},Yt=function(x,r,e){var t=$s(x),u=$s(e);if((u+2|0)=u)return We(x,r,e);var g=e[4],A=e[3],N=e[2],C=$s(A);if(C<=$s(g))return Po(We(x,r,A),N,g);var O=A[3],L=A[2],M=We(A[4],N,g);return Po(We(x,r,O),L,M)},nV=function(x,r){if(typeof r=="number")return[0,x];if(r[0]===0)return We([0,x],r[1],0);var e=r[4],t=r[2];return Yt(nV(x,r[3]),t,e)},uV=function(x,r){if(typeof r=="number")return[0,x];if(r[0]===0)return We(0,r[1],[0,x]);var e=r[3],t=r[2];return Yt(e,t,uV(x,r[4]))},Y2=function(x,r,e){if(typeof x=="number")return nV(r,e);if(x[0]===0){if(typeof e!="number"){if(e[0]===0)return We(x,r,e);var t=e[4],u=e[3],i=e[2];return 3>1,T=d0(B0,$0),X=T[1],F0=d0(g0-B0|0,T[2]),sx=X,ex=F0[1],U0=0,Nx=F0[2];;){if(sx){if(ex){var mx=ex[2],Bx=ex[1],Gx=sx[2],J0=sx[1],bx=p(o0,J0,Bx);if(bx===0){var sx=Gx,ex=mx,U0=[0,J0,U0];continue}if(0>1,T=c0(B0,$0),X=T[1],F0=c0(g0-B0|0,T[2]),sx=X,ex=F0[1],U0=0,Nx=F0[2];;){if(sx){if(ex){var mx=ex[2],Bx=ex[1],Gx=sx[2],J0=sx[1],bx=p(o0,J0,Bx);if(bx===0){var sx=Gx,ex=mx,U0=[0,J0,U0];continue}if(0<=bx){var ex=mx,U0=[0,Bx,U0];continue}var sx=Gx,U0=[0,J0,U0];continue}var Jx=Hc(sx,U0)}else var Jx=Hc(ex,U0);return[0,Jx,Nx]}},E0=qc(j),L0=2<=E0?c0(E0,j)[1]:j,X0=function(g0,$0){if(3>=g0>>>0)switch(g0){case 0:return[0,0,$0];case 1:if($0)return[0,[0,$0[1]],$0[2]];break;case 2:if($0){var n0=$0[2];if(n0)return[0,[1,2,n0[1],[0,$0[1]],0],n0[2]]}break;default:if($0){var ix=$0[2];if(ix){var rx=ix[2];if(rx)return[0,[1,2,ix[1],[0,$0[1]],[0,rx[1]]],rx[2]]}}}var dx=g0/2|0,ax=X0(dx,$0),Sx=ax[2],D0=ax[1];if(!Sx)throw q0([0,wr,xG],1);var N0=Sx[1],A0=X0((g0-dx|0)-1|0,Sx[2]),Y0=A0[2];return[0,Po(D0,N0,A0[1]),Y0]};return X0(qc(L0),L0)[1]}var xx=s0[1];return r(xx,r(v0,r(f0,r(x0,[0,J]))))}function i0(j,K,J){a(Jr(K),GQ);var Q=sV(J);Q&&a(Jr(K),qQ);var x0=0;return H1(function($,f0){return $&&a(Jr(K),QQ),p(j,K,f0),1},x0,Q),Q&&a(Jr(K),HQ),a(Jr(K),bQ)}return[0,n1,jO,t,r,KT0,u,i,f,l,d,k,h,g,A,Y,N,C,O,L,M,UO,sV,$l,iV,fV,WT0,$l,iV,V,z,zT0,t0,i0,vy,BT0,function(j,K){for(var J=K;;){if(typeof J=="number")return 0;if(J[0]===0){var Q=J[1];return a(j,Q)?[0,Q]:0}var x0=J[2],$=J[4],f0=J[3];if(!a(j,x0)){var J=$;continue}for(var s0=x0,v0=f0;;){if(typeof v0=="number")return[0,s0];if(v0[0]===0){var o0=v0[1];return a(j,o0)?[0,o0]:[0,s0]}var c0=v0[2],d0=v0[4],E0=v0[3];if(a(j,c0)){var s0=c0,v0=E0;continue}var v0=d0}}}]},vV=function(x){switch(x[0]){case 0:return 1;case 1:return 2;case 2:return 2;default:return 3}},Kx=function(x,r){if(!r)return r;var e=r[1],t=a(x,e);return e===t?r:[0,t]},cx=function(x,r,e,t,u){var i=p(x,r,e);return e===i?t:a(u,i)},G0=function(x,r,e,t){var u=a(x,r);return r===u?e:a(t,u)},x2=function(x,r){var e=r[1],t=r[2];return cx(x,e,t,r,function(u){return[0,e,u]})},aV=function(x,r){return Kx(function(e){var t=e[1],u=e[2];return cx(x,t,u,e,function(i){return[0,t,i]})},r)},Er=function(x,r){var e=H1(function(u,i){var f=u[2],o=u[1],l=a(x,i),d=f||(l!==i?1:0);return[0,[0,l,o],d]},IG,r),t=e[1];return e[2]?Ax(t):r},JO=uy(RG,function(x){var r=PO(x,OG),e=r[1],t=r[2],u=r[3],i=r[4],f=r[5],o=r[6],l=r[7],d=r[8],k=r[9],h=r[10],g=r[11],A=r[12],N=r[13],C=r[14],O=r[15],L=r[16],M=r[17],V=r[18],z=r[19],Y=r[20],t0=r[21],i0=r[22],j=r[23],K=r[24],J=r[25],Q=r[26],x0=r[27],$=r[28],f0=r[29],s0=r[30],v0=r[31],o0=r[32],c0=r[33],d0=r[34],E0=r[35],L0=r[36],X0=r[37],xx=r[38],g0=r[39],$0=r[40],n0=r[41],ix=r[42],rx=r[43],dx=r[44],ax=r[45],Sx=r[46],D0=r[47],N0=r[48],A0=r[49],Y0=r[50],C0=r[51],F=r[52],H=r[53],B=r[54],a0=r[55],m0=r[56],P0=r[58],D=r[59],O0=r[60],K0=r[61],j0=r[62],ox=r[63],b0=r[64],_x=r[65],B0=r[66],T=r[67],X=r[68],F0=r[69],sx=r[70],ex=r[71],U0=r[72],Nx=r[73],mx=r[74],Bx=r[75],Gx=r[76],J0=r[77],bx=r[78],Jx=r[79],W0=r[80],nr=r[81],V0=r[82],Sr=r[83],Ur=r[84],lx=r[85],br=r[86],e2=r[87],h1=r[88],Ir=r[89],R1=r[90],_=r[91],b=r[92],r0=r[93],S0=r[94],G=r[95],h0=r[96],z0=r[97],M0=r[98],ux=r[99],Zx=r[it],Lx=r[It],tr=r[Jf],$x=r[fn],xr=r[Dt],zx=r[De],Or=r[l2],Wx=r[G2],B2=r[vn],lt=r[Is],me=r[V1],Pn=r[Ot],to=r[L2],Nn=r[Rr],cs=r[ut],ke=r[Os],Cn=r[Ns],te=r[po],Ft=r[pa],yr=r[xl],Qt=r[Af],In=r[H3],qv=r[Hr],he=r[Rt],pt=r[Oa],Ko=r[Ci],no=r[L4],v2=r[Yr],uo=r[m1],On=r[dl],dt=r[oJ],Bo=r[ah],io=r[mJ],Hv=r[FM],Wo=r[gj],fo=r[nX],yt=r[UU],ss=r[m_],Zo=r[HD],co=r[kU],a3=r[cJ],$o=r[BU],Rn=r[uU],bv=r[Ij],so=r[hJ],Fo=r[WD],xa=r[146],os=r[147],Qo=r[JD],Go=r[kj],ra=r[150],l3=r[151],Lm=r[152],p3=r[153],I6=r[154],O6=r[155],d3=r[156],Mm=r[157],Dm=r[158],ea=r[159],y3=r[jS],Um=r[GU],jm=r[YU],Jm=r[OJ],L1=r[OT],mt=r[gJ],m3=r[RU],q=r[DP],I=r[IT],U=r[r5],T0=r[W9],R0=r[Ck],tx=r[MU],Ex=r[Pj],Ux=r[bJ],jx=r[yk],Hx=r[oU],mr=r[_D],or=r[xJ],hr=r[jM],cr=r[zU],sr=r[EI],Nr=r[Qk],Fr=r[rd],Br=r[ON],Wr=r[Vw],Mr=r[Gh],Qr=r[xg],x1=r[aj],a1=r[IS],l1=r[kD],i1=r[rj],_1=r[ma],Cr=r[XD],M1=r[yh],t2=r[UD],g1=r[Aj],W2=r[vD],ne=r[$J],gx=r[lg],Xr=r[oX],r1=r[VM],lr=r[rJ],zr=r[KJ],B1=r[ZD],_e=r[UJ],Z2=r[WT],we=r[tX],Gt=r[sJ],C2=r[gD],n2=r[QJ],I2=r[KD],a2=r[fE],kt=r[DM],O2=r[Fj],ht=r[AT],$e=r[$N],Te=r[Nj],Se=r[jJ],Ee=r[Hj],ge=r[Tj],Ae=r[ZU],W1=r[ZM],Pe=r[bp],_t=r[ga],Fe=r[_j],ue=r[DU],R2=r[GJ],qt=r[wj],vs=r[dJ],wt=r[CU],Tt=r[ej],Ht=r[uX],ie=r[_U],St=r[cX],bt=r[NJ],fe=r[YJ],xn=r[$A],Ln=r[dT],rn=r[GS],Mn=r[ha],en=r[LM],Dn=r[vJ],qo=r[jj],tn=r[Z5],Et=r[yS],as=r[h8],ls=r[X8],ps=r[Gr],Ho=r[B4],k3=r[Ov],oo=r[lj],bo=r[Ea],ta=r[Q8],h3=r[Ca],_3=r[z3],na=r[hv],ua=r[$D],Un=r[258],w3=r[VD],T3=r[260],S3=r[261],Ne=r[262],E3=r[263],g3=r[Uj],ia=r[Jj],ds=r[266],vo=r[267],xv=r[268],rv=r[fD],A3=r[270],fa=r[rr],ys=r[272],ao=r[273],ev=r[274],gt=r[TD],Qe=r[276],ms=r[277],At=r[iJ],nn=r[279],un=r[BJ],tv=r[rk],P3=r[282],N3=r[vj],nv=r[284],C3=r[AU],ca=r[pj],Xm=r[57];function jn(n,s,c){var v=c[2],y=c[1],S=c[4],E=c[3],R=Kx(a(n[1][1+gx],n),y),Z=p(n[1][1+n0],n,v);return v===Z&&y===R?c:[0,R,Z,E,S]}function Ym(n,s,c){var v=c[4],y=c[3],S=c[2],E=c[1],R=p(n[1][1+Qe],n,E),Z=Kx(a(n[1][1+M],n),S),y0=p(n[1][1+$],n,y),_0=p(n[1][1+n0],n,v);return E===R&&y===y0&&S===Z&&v===_0?c:[0,R,Z,y0,_0]}function Vm(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+gx],n,S),R=p(n[1][1+A0],n,y),Z=p(n[1][1+n0],n,v);return S===E&&y===R&&v===Z?c:[0,E,R,Z]}function IL(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+D],n,S),R=p(n[1][1+A0],n,y),Z=p(n[1][1+n0],n,v);return S===E&&y===R&&v===Z?c:[0,E,R,Z]}function OL(n,s,c){var v=c[2],y=v[2],S=v[1],E=c[1],R=H0(n[1][1+o],n,s,S),Z=Kx(a(n[1][1+gx],n),y);return S===R&&y===Z?c:[0,E,[0,R,Z]]}function RL(n,s,c){var v=c[3],y=c[2],S=c[1],E=Er(p(n[1][1+l],n,y),S),R=p(n[1][1+n0],n,v);return S===E&&v===R?c:[0,E,y,R]}function LL(n,s,c){var v=c[4],y=c[2],S=p(n[1][1+gx],n,y),E=p(n[1][1+n0],n,v);return y===S&&v===E?c:[0,c[1],S,c[3],E]}function ML(n,s,c){var v=c[3],y=c[2],S=p(n[1][1+gx],n,y),E=p(n[1][1+n0],n,v);return y===S&&v===E?c:[0,c[1],S,E]}function DL(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+gx],n,S);if(typeof y=="number")var Ix=y;else if(y[0]===0)var R=y[1],Z=p(n[1][1+$],n,R),y0=R===Z?y:[0,Z],Ix=y0;else var _0=y[1],Q0=p(n[1][1+$],n,_0),vx=_0===Q0?y:[1,Q0],Ix=vx;var yx=p(n[1][1+n0],n,v);return E===S&&yx===v?c:[0,E,Ix,yx]}function UL(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+gx],n,S),R=p(n[1][1+Q],n,y),Z=p(n[1][1+n0],n,v);return E===S&&R===y&&Z===v?c:[0,E,R,Z]}function jL(n,s,c){var v=c[4],y=c[3],S=c[2],E=c[1],R=x2(a(n[1][1+gt],n),E);if(S)var Z=S[1],y0=Z[1],_0=Z[2],Q0=function(d1){return[0,[0,y0,d1]]},vx=cx(a(n[1][1+vo],n),y0,_0,S,Q0);else var vx=S;if(y)var Ix=y[1],yx=Ix[1],_r=Ix[2],f1=function(d1){return[0,[0,yx,d1]]},c1=cx(a(n[1][1+gt],n),yx,_r,y,f1);else var c1=y;var p1=p(n[1][1+n0],n,v);return E===R&&S===vx&&y===c1&&v===p1?c:[0,R,vx,c1,p1]}function JL(n,s,c){var v=c[2],y=c[1],S=p(n[1][1+gx],n,y),E=p(n[1][1+n0],n,v);return y===S&&v===E?c:[0,S,E]}function XL(n,s,c){var v=c[1],y=p(n[1][1+n0],n,v);return v===y?c:[0,y]}function YL(n,s){return s}function VL(n,s,c){var v=c[3],y=c[2],S=c[1],E=Er(a(n[1][1+xx],n),S),R=Er(a(n[1][1+gx],n),y),Z=p(n[1][1+n0],n,v);return S===E&&y===R&&v===Z?c:[0,E,R,Z]}function zL(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+gx],n,S),R=x2(a(n[1][1+g0],n),y),Z=p(n[1][1+n0],n,v);return S===E&&y===R&&v===Z?c:[0,E,R,Z]}function KL(n,s){var c=s[2],v=c[3],y=c[2],S=c[1],E=s[1],R=Kx(a(n[1][1+gx],n),S),Z=p(n[1][1+D0],n,y),y0=p(n[1][1+n0],n,v);return S===R&&y===Z&&v===y0?s:[0,E,[0,R,Z,y0]]}function BL(n,s,c){var v=c[3],y=c[2],S=c[1],E=c[4],R=p(n[1][1+gx],n,S),Z=Er(a(n[1][1+rx],n),y),y0=p(n[1][1+n0],n,v);return S===R&&y===Z&&v===y0?c:[0,R,Z,y0,E]}function I3(n,s,c){var v=c[1],y=p(n[1][1+n0],n,v);return v===y?c:[0,y]}function zm(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+gx],n,y),R=p(n[1][1+n0],n,v);return y===E&&v===R?s:[0,S,[0,E,R]]}function WL(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+gx],n,y),R=p(n[1][1+n0],n,v);return y===E&&v===R?s:[0,S,[0,E,R]]}function ZL(n,s){return[0,p(n[1][1+A0],n,s),0]}function $L(n,s){var c=a(n[1][1+N0],n),v=H1(function(S,E){var R=S[2],Z=S[1],y0=a(c,E);if(!y0)return[0,Z,1];if(y0[2])return[0,Hc(y0,Z),1];var _0=y0[1],Q0=R||(E!==_0?1:0);return[0,[0,_0,Z],Q0]},CG,s),y=v[1];return v[2]?Ax(y):s}function Km(n,s){return p(n[1][1+D0],n,s)}function Bm(n,s,c){var v=c[2],y=c[1],S=Er(a(n[1][1+gx],n),y),E=p(n[1][1+n0],n,v);return y===S&&v===E?c:[0,S,E]}function FL(n,s,c){var v=c[2],y=c[1],S=c[3],E=Kx(a(n[1][1+gx],n),y),R=p(n[1][1+n0],n,v);return y===E&&v===R?c:[0,E,R,S]}function sa(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+mr],n,y),R=p(n[1][1+n0],n,v);return y===E&&v===R?s:[0,S,[0,E,R]]}function Wm(n,s){var c=s[2],v=c[3],y=c[2],S=y[2],E=y[1],R=c[1],Z=s[1],y0=p(n[1][1+L1],n,E),_0=Kx(a(n[1][1+$],n),S),Q0=p(n[1][1+n0],n,v);return y0===E&&_0===S&&Q0===v?s:[0,Z,[0,R,[0,y0,_0],Q0]]}function Zm(n,s){var c=s[2],v=s[1],y=p(n[1][1+i0],n,c);return Ud(y,c)?s:[0,v,y]}function QL(n,s){return p(n[1][1+gx],n,s)}function GL(n,s){var c=s[2],v=c[2],y=c[1],S=s[1];if(y)var E=y[1],R=function(_0){return[0,_0]},Z=G0(a(n[1][1+gx],n),E,y,R);else var Z=y;var y0=p(n[1][1+n0],n,v);return y===Z&&v===y0?s:[0,S,[0,Z,y0]]}function qL(n,s){return p(n[1][1+gx],n,s)}function R6(n,s,c){return H0(n[1][1+V0],n,s,c)}function HL(n,s,c){var v=c[2],y=v[2],S=v[1],E=c[1],R=H0(n[1][1+J0],n,s,S),Z=p(n[1][1+n0],n,y);return R===S&&y===Z?c:[0,E,[0,R,Z]]}function $m(n,s,c){return H0(n[1][1+V0],n,s,c)}function bL(n,s,c){var v=c[2],y=v[2],S=v[1],E=c[1],R=H0(n[1][1+Jx],n,s,S),Z=p(n[1][1+W1],n,y);return S===R&&y===Z?c:[0,E,[0,R,Z]]}function Fm(n,s,c){switch(c[0]){case 0:var v=c[1],y=function(R){return[0,R]};return G0(p(n[1][1+W0],n,s),v,c,y);case 1:var S=c[1],E=function(R){return[1,R]};return G0(p(n[1][1+bx],n,s),S,c,E);default:return c}}function L6(n,s,c){return H0(n[1][1+V0],n,s,c)}function Qm(n,s,c){return H0(n[1][1+V0],n,s,c)}function xM(n,s,c){var v=c[2],y=v[2],S=v[1],E=c[1],R=H0(n[1][1+j0],n,s,S),Z=p(n[1][1+n0],n,y);return R===S&&y===Z?c:[0,E,[0,R,Z]]}function Gm(n,s,c){return p(n[1][1+Ln],n,c)}function M6(n,s,c){return H0(n[1][1+mx],n,s,c)}function rM(n,s,c){var v=c[1],y=c[2];function S(E){return[0,v,E]}return cx(p(n[1][1+Gx],n,s),v,y,c,S)}function D6(n,s,c){var v=c[1],y=c[2];function S(E){return[0,v,E]}return cx(p(n[1][1+Nx],n,s),v,y,c,S)}function eM(n,s,c){var v=c[1],y=c[2];function S(E){return[0,v,E]}return cx(p(n[1][1+K0],n,s),v,y,c,S)}function tM(n,s,c){switch(c[0]){case 0:var v=c[1],y=function(Ix){return[0,Ix]};return G0(p(n[1][1+b0],n,s),v,c,y);case 1:var S=c[1],E=function(Ix){return[1,Ix]};return G0(p(n[1][1+B0],n,s),S,c,E);case 2:var R=c[1],Z=function(Ix){return[2,Ix]};return G0(p(n[1][1+sx],n,s),R,c,Z);case 3:var y0=c[1],_0=function(Ix){return[3,Ix]};return G0(p(n[1][1+X],n,s),y0,c,_0);default:var Q0=c[1],vx=function(Ix){return[4,Ix]};return G0(p(n[1][1+F0],n,s),Q0,c,vx)}}function nM(n,s,c){var v=c[2],y=v[4],S=v[3],E=v[2],R=v[1],Z=c[1],y0=H0(n[1][1+T],n,s,R),_0=H0(n[1][1+_x],n,s,E),Q0=p(n[1][1+W1],n,S);if(y){var vx=0;if(y0[0]===3){var Ix=_0[2];if(Ix[0]===2)var _r=Ar(y0[1][2][1],Ix[1][1][2][1]);else vx=1}else vx=1;if(vx)var yx=R===y0?1:0,_r=yx&&(E===_0?1:0)}else var _r=y;return y0===R&&_0===E&&Q0===S&&y===_r?c:[0,Z,[0,y0,_0,Q0,_r]]}function qm(n,s,c){if(c[0]===0){var v=c[1],y=function(R){return[0,R]};return G0(p(n[1][1+ex],n,s),v,c,y)}var S=c[1];function E(R){return[1,R]}return G0(p(n[1][1+ox],n,s),S,c,E)}function uM(n,s,c,v){return H0(n[1][1+nn],n,c,v)}function U6(n,s,c,v){return H0(n[1][1+Or],n,c,v)}function iM(n,s,c,v){return H0(n[1][1+Sx],n,c,v)}function fM(n,s,c){return p(n[1][1+L1],n,c)}function cM(n,s,c){var v=c[2],y=c[1];switch(v[0]){case 0:var S=v[1],E=S[3],R=S[2],Z=S[1],y0=Er(p(n[1][1+U0],n,s),Z),_0=p(n[1][1+J],n,R),Q0=p(n[1][1+n0],n,E),vx=0;if(y0===Z&&_0===R&&Q0===E){var Ix=v;vx=1}if(!vx)var Ix=[0,[0,y0,_0,Q0]];var tt=Ix;break;case 1:var yx=v[1],_r=yx[3],f1=yx[2],c1=yx[1],p1=Er(p(n[1][1+nr],n,s),c1),d1=p(n[1][1+J],n,f1),Ge=p(n[1][1+n0],n,_r),qe=0;if(_r===Ge&&p1===c1&&d1===f1){var He=v;qe=1}if(!qe)var He=[1,[0,p1,d1,Ge]];var tt=He;break;case 2:var Ce=v[1],be=Ce[2],xt=Ce[1],Pt=Ce[3],rt=H0(n[1][1+mx],n,s,xt),et=p(n[1][1+J],n,be),Jn=0;if(xt===rt&&be===et){var Xn=v;Jn=1}if(!Jn)var Xn=[2,[0,rt,et,Pt]];var tt=Xn;break;default:var ks=v[1],hs=function(_s){return[3,_s]},tt=G0(a(n[1][1+Bx],n),ks,v,hs)}return v===tt?c:[0,y,tt]}function Hm(n,s){return H0(n[1][1+V0],n,0,s)}function sM(n,s,c){var v=s?s[1]:0;return H0(n[1][1+V0],n,[0,v],c)}function O3(n,s){return p(n[1][1+un],n,s)}function oM(n,s){return p(n[1][1+un],n,s)}function vM(n,s){return H0(n[1][1+ms],n,NG,s)}function aM(n,s,c){return H0(n[1][1+ms],n,[0,s],c)}function lM(n,s){return H0(n[1][1+ms],n,PG,s)}function pM(n,s,c){var v=c[5],y=c[4],S=c[3],E=c[2],R=c[1],Z=p(n[1][1+Qe],n,R),y0=Kx(a(n[1][1+M],n),E),_0=Kx(a(n[1][1+$],n),S),Q0=Kx(a(n[1][1+$],n),y),vx=p(n[1][1+n0],n,v);return R===Z&&S===_0&&E===y0&&S===_0&&y===Q0&&v===vx?c:[0,Z,y0,_0,Q0,vx]}function j6(n,s){return p(n[1][1+Ln],n,s)}function dM(n,s){return p(n[1][1+L1],n,s)}function yM(n,s){var c=s[1],v=s[2];function y(S){return[0,c,S]}return cx(a(n[1][1+nn],n),c,v,s,y)}function mM(n,s){var c=s[1],v=s[2];function y(S){return[0,c,S]}return cx(a(n[1][1+Or],n),c,v,s,y)}function J6(n,s){var c=s[1],v=s[2];function y(S){return[0,c,S]}return cx(a(n[1][1+Sx],n),c,v,s,y)}function kM(n,s){switch(s[0]){case 0:var c=s[1],v=function(yx){return[0,yx]};return G0(a(n[1][1+h0],n),c,s,v);case 1:var y=s[1],S=function(yx){return[1,yx]};return G0(a(n[1][1+z0],n),y,s,S);case 2:var E=s[1],R=function(yx){return[2,yx]};return G0(a(n[1][1+Zx],n),E,s,R);case 3:var Z=s[1],y0=function(yx){return[3,yx]};return G0(a(n[1][1+M0],n),Z,s,y0);case 4:var _0=s[1],Q0=function(yx){return[4,yx]};return G0(a(n[1][1+P0],n),_0,s,Q0);default:var vx=s[1],Ix=function(yx){return[5,yx]};return G0(a(n[1][1+ux],n),vx,s,Ix)}}function hM(n,s){var c=s[2],v=s[1];switch(c[0]){case 0:var y=c[3],S=c[2],E=c[1],R=p(n[1][1+Lx],n,E),Z=p(n[1][1+gx],n,S);if(y){var y0=0;if(R[0]===3){var _0=Z[2];if(_0[0]===8)var vx=Ar(R[1][2][1],_0[1][2][1]);else y0=1}else y0=1;if(y0)var Q0=E===R?1:0,vx=Q0&&(S===Z?1:0)}else var vx=y;return E===R&&S===Z&&y===vx?s:[0,v,[0,R,Z,vx]];case 1:var Ix=c[2],yx=c[1],_r=p(n[1][1+Lx],n,yx),f1=x2(a(n[1][1+cr],n),Ix);return yx===_r&&Ix===f1?s:[0,v,[1,_r,f1]];case 2:var c1=c[3],p1=c[2],d1=c[1],Ge=p(n[1][1+Lx],n,d1),qe=x2(a(n[1][1+cr],n),p1),He=p(n[1][1+n0],n,c1);return d1===Ge&&p1===qe&&c1===He?s:[0,v,[2,Ge,qe,He]];default:var Ce=c[3],be=c[2],xt=c[1],Pt=p(n[1][1+Lx],n,xt),rt=x2(a(n[1][1+cr],n),be),et=p(n[1][1+n0],n,Ce);return xt===Pt&&be===rt&&Ce===et?s:[0,v,[3,Pt,rt,et]]}}function _M(n,s,c){var v=c[2],y=c[1],S=Er(function(R){if(R[0]===0){var Z=R[1],y0=p(n[1][1+S0],n,Z);return Z===y0?R:[0,y0]}var _0=R[1],Q0=p(n[1][1+Y0],n,_0);return _0===Q0?R:[1,Q0]},y),E=p(n[1][1+n0],n,v);return y===S&&v===E?c:[0,S,E]}function X6(n,s,c){var v=c[4],y=c[3],S=c[2],E=c[1],R=p(n[1][1+gx],n,E),Z=Kx(a(n[1][1+rv],n),S),y0=Kx(a(n[1][1+ca],n),y),_0=p(n[1][1+n0],n,v);return E===R&&S===Z&&y===y0&&v===_0?c:[0,R,Z,y0,_0]}function Y6(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+L1],n,S),R=p(n[1][1+L1],n,y),Z=p(n[1][1+n0],n,v);return S===E&&y===R&&v===Z?c:[0,E,R,Z]}function R3(n,s){return p(n[1][1+gx],n,s)}function L3(n,s){return p(n[1][1+P0],n,s)}function bm(n,s){return p(n[1][1+L1],n,s)}function wM(n,s){switch(s[0]){case 0:var c=s[1],v=function(Z){return[0,Z]};return G0(a(n[1][1+Nn],n),c,s,v);case 1:var y=s[1],S=function(Z){return[1,Z]};return G0(a(n[1][1+Cn],n),y,s,S);default:var E=s[1],R=function(Z){return[2,Z]};return G0(a(n[1][1+cs],n),E,s,R)}}function TM(n,s,c){var v=c[1],y=H0(n[1][1+te],n,s,v);return v===y?c:[0,y,c[2],c[3]]}function x9(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+gx],n,S),R=p(n[1][1+ke],n,y),Z=p(n[1][1+n0],n,v);return S===E&&y===R&&v===Z?c:[0,E,R,Z]}function SM(n,s,c){var v=c[4],y=c[3],S=c[2],E=p(n[1][1+gx],n,S),R=p(n[1][1+gx],n,y),Z=p(n[1][1+n0],n,v);return S===E&&y===R&&v===Z?c:[0,c[1],E,R,Z]}function V6(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+Qt],n,S),R=p(n[1][1+A0],n,y),Z=p(n[1][1+n0],n,v);return S===E&&y===R&&v===Z?c:[0,E,R,Z]}function r9(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+n0],n,v);return v===E?s:[0,S,[0,y,E]]}function e9(n,s){return p(n[1][1+fo],n,s)}function EM(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return G0(a(n[1][1+uo],n),c,s,v)}var y=s[1];function S(E){return[1,E]}return G0(a(n[1][1+On],n),y,s,S)}function LE0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+v2],n,y),R=p(n[1][1+dt],n,v);return y===E&&v===R?s:[0,S,[0,E,R]]}function ME0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+dt],n,y),R=p(n[1][1+dt],n,v);return y===E&&v===R?s:[0,S,[0,E,R]]}function DE0(n,s){return p(n[1][1+On],n,s)}function UE0(n,s){return p(n[1][1+no],n,s)}function jE0(n,s){return p(n[1][1+dt],n,s)}function JE0(n,s){switch(s[0]){case 0:var c=s[1],v=function(Z){return[0,Z]};return G0(a(n[1][1+fo],n),c,s,v);case 1:var y=s[1],S=function(Z){return[1,Z]};return G0(a(n[1][1+Hv],n),y,s,S);default:var E=s[1],R=function(Z){return[2,Z]};return G0(a(n[1][1+Wo],n),E,s,R)}}function XE0(n,s){var c=s[2],v=s[1],y=p(n[1][1+gx],n,v),S=p(n[1][1+n0],n,c);return v===y&&c===S?s:[0,y,S]}function YE0(n,s,c){var v=c[2],y=c[1],S=p(n[1][1+n0],n,v);if(!y)return v===S?c:[0,0,S];var E=y[1],R=p(n[1][1+gx],n,E);return E===R&&v===S?c:[0,[0,R],S]}function VE0(n,s){var c=s[2],v=s[1];switch(c[0]){case 0:var y=c[1],S=function(vx){return[0,v,[0,vx]]};return cx(a(n[1][1+ss],n),v,y,s,S);case 1:var E=c[1],R=function(vx){return[0,v,[1,vx]]};return cx(a(n[1][1+Bo],n),v,E,s,R);case 2:var Z=c[1],y0=function(vx){return[0,v,[2,vx]]};return cx(a(n[1][1+io],n),v,Z,s,y0);case 3:var _0=c[1],Q0=function(vx){return[0,v,[3,vx]]};return G0(a(n[1][1+qv],n),_0,s,Q0);default:return s}}function zE0(n,s){var c=s[2],v=s[1],y=Er(a(n[1][1+a3],n),c);return c===y?s:[0,v,y]}function KE0(n,s,c){return H0(n[1][1+Sx],n,s,c)}function BE0(n,s,c){return H0(n[1][1+io],n,s,c)}function WE0(n,s){if(s[0]===0){var c=s[1],v=c[1],y=c[2],S=function(_0){return[0,[0,v,_0]]};return cx(a(n[1][1+$o],n),v,y,s,S)}var E=s[1],R=E[1],Z=E[2];function y0(_0){return[1,[0,R,_0]]}return cx(a(n[1][1+Rn],n),R,Z,s,y0)}function ZE0(n,s){return p(n[1][1+no],n,s)}function $E0(n,s){return p(n[1][1+dt],n,s)}function FE0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return G0(a(n[1][1+Fo],n),c,s,v)}var y=s[1];function S(E){return[1,E]}return G0(a(n[1][1+so],n),y,s,S)}function QE0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+xa],n,y),R=Kx(a(n[1][1+bv],n),v);return y===E&&v===R?s:[0,S,[0,E,R]]}function GE0(n,s,c){var v=c[2],y=c[1],S=p(n[1][1+gx],n,y),E=p(n[1][1+n0],n,v);return y===S&&v===E?c:[0,S,E]}function qE0(n,s){if(s[0]===0){var c=s[1],v=function(Z){return[0,Z]};return G0(a(n[1][1+os],n),c,s,v)}var y=s[1],S=y[1],E=y[2];function R(Z){return[1,[0,S,Z]]}return cx(a(n[1][1+he],n),S,E,s,R)}function HE0(n,s){var c=s[2][1],v=s[1],y=p(n[1][1+yt],n,c);return c===y?s:[0,v,[0,y]]}function bE0(n,s){var c=s[2],v=c[4],y=c[2],S=c[1],E=c[3],R=s[1],Z=p(n[1][1+yt],n,S),y0=Kx(a(n[1][1+rv],n),y),_0=Er(a(n[1][1+Ko],n),v);return S===Z&&y===y0&&v===_0?s:[0,R,[0,Z,y0,E,_0]]}function xg0(n,s,c){var v=c[4],y=c[3],S=p(n[1][1+co],n,y),E=p(n[1][1+n0],n,v);return y===S&&v===E?c:[0,c[1],c[2],S,E]}function rg0(n,s,c){var v=c[4],y=c[3],S=c[2],E=c[1],R=p(n[1][1+pt],n,E),Z=Kx(a(n[1][1+Zo],n),S),y0=p(n[1][1+co],n,y),_0=p(n[1][1+n0],n,v);return E===R&&S===Z&&y===y0&&v===_0?c:[0,R,Z,y0,_0]}function eg0(n,s,c,v){var y=2<=s?p(n[1][1+mx],n,AG):a(n[1][1+Qe],n);return a(y,v)}function tg0(n,s,c){var v=2<=s?p(n[1][1+mx],n,gG):a(n[1][1+Qe],n);return a(v,c)}function ng0(n,s,c){var v=c[3],y=c[2],S=c[1],E=0,R=c[4];if(s){var Z=0;if(S)switch(S[1]){case 0:E=1;break;case 1:Z=2;break;default:Z=1}else Z=1;var y0=0;switch(Z){case 0:break;case 1:if(2<=s)var _0=0,Q0=0;else y0=1;break;default:y0=1}if(y0)var _0=1,Q0=0}else E=1;if(E)var _0=1,Q0=1;var vx=y?p(n[1][1+B],n,v):Q0?p(n[1][1+Qe],n,v):H0(n[1][1+mx],n,SG,v);if(y)var Ix=y[1],yx=_0?a(n[1][1+Qe],n):p(n[1][1+mx],n,EG),_r=G0(yx,Ix,y,function(f1){return[0,f1]});else var _r=0;return y===_r&&v===vx?c:[0,S,_r,vx,R]}function ug0(n,s){return p(n[1][1+L1],n,s)}function ig0(n,s,c){if(c[0]===0){var v=c[1],y=Er(p(n[1][1+Mm],n,s),v);return v===y?c:[0,y]}var S=c[1],E=S[1],R=S[2];function Z(y0){return[1,[0,E,y0]]}return cx(p(n[1][1+d3],n,s),E,R,c,Z)}function fg0(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+n0],n,v);return v===E?c:[0,S,y,E]}function cg0(n,s,c){var v=c[5],y=c[4],S=c[3],E=c[2],R=c[1],Z=x2(a(n[1][1+O6],n),E),y0=Kx(p(n[1][1+I6],n,R),y),_0=Kx(function(vx){var Ix=vx[1],yx=vx[2],_r=H0(n[1][1+Dm],n,R,Ix);return _r===Ix?vx:[0,_r,yx]},S),Q0=p(n[1][1+n0],n,v);return E===Z&&y===y0&&S===_0&&v===Q0?c:[0,R,Z,_0,y0,Q0]}function sg0(n,s,c){var v=c[4],y=c[3],S=c[2],E=c[1],R=p(n[1][1+D],n,E),Z=H0(n[1][1+jm],n,y!==0?1:0,S),y0=a(n[1][1+Jm],n),_0=Kx(function(vx){return x2(y0,vx)},y),Q0=p(n[1][1+n0],n,v);return E===R&&S===Z&&y===_0&&v===Q0?c:[0,R,Z,_0,Q0]}function og0(n,s,c){var v=c[2],y=c[1],S=p(n[1][1+A0],n,y),E=p(n[1][1+n0],n,v);return y===S&&v===E?c:[0,S,E]}function vg0(n,s,c){return p(n[1][1+A0],n,c)}function ag0(n,s,c){var v=c[2],y=c[1],S=p(n[1][1+gx],n,y),E=p(n[1][1+n0],n,v);return y===S&&v===E?c:[0,S,E]}function lg0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+gx],n,y),R=p(n[1][1+n0],n,v);return y===E&&v===R?s:[0,S,[0,E,R]]}function pg0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+n0],n,v);return v===E?s:[0,S,[0,y,E]]}function dg0(n,s,c){return H0(n[1][1+l3],n,s,c)}function yg0(n,s,c){var v=c[5],y=c[4],S=c[3],E=c[2],R=c[1],Z=p(n[1][1+Qe],n,R),y0=Kx(a(n[1][1+M],n),E),_0=a(n[1][1+mt],n),Q0=Er(function(yx){return x2(_0,yx)},S),vx=x2(a(n[1][1+R1],n),y),Ix=p(n[1][1+n0],n,v);return Z===R&&y0===E&&Q0===S&&vx===y&&Ix===v?c:[0,Z,y0,Q0,vx,Ix]}function mg0(n,s){return p(n[1][1+Y],n,s)}function kg0(n,s){return p(n[1][1+Y],n,s)}function hg0(n,s){return p(n[1][1+L1],n,s)}function _g0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+n0],n,v);return v===E?s:[0,S,[0,y,E]]}function wg0(n,s){return H0(n[1][1+mx],n,TG,s)}function Tg0(n,s){return p(n[1][1+gx],n,s)}function Sg0(n,s){var c=s[1],v=s[2];function y(S){return[0,c,S]}return cx(a(n[1][1+gt],n),c,v,s,y)}function Eg0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return G0(a(n[1][1+Br],n),c,s,v)}var y=s[1];function S(E){return[1,E]}return G0(a(n[1][1+ev],n),y,s,S)}function gg0(n,s){switch(s[0]){case 0:return s;case 1:var c=s[1],v=function(E){return[1,E]};return G0(a(n[1][1+Q],n),c,s,v);default:var y=s[1],S=function(E){return[2,E]};return G0(a(n[1][1+t0],n),y,s,S)}}function Ag0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+mr],n,y),R=p(n[1][1+W1],n,v);return y===E&&v===R?s:[0,S,[0,E,R]]}function Pg0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+Q],n,y),R=p(n[1][1+n0],n,v);return E===y&&R===v?s:[0,S,[0,E,R]]}function Ng0(n,s){var c=s[2],v=c[4],y=c[3],S=c[2],E=c[1],R=s[1],Z=Er(a(n[1][1+or],n),S),y0=Kx(a(n[1][1+Ux],n),y),_0=Kx(a(n[1][1+R0],n),E),Q0=p(n[1][1+n0],n,v);return S===Z&&y===y0&&v===Q0&&E===_0?s:[0,R,[0,_0,Z,y0,Q0]]}function Cg0(n,s,c){var v=c[9],y=c[8],S=c[7],E=c[6],R=c[3],Z=c[2],y0=c[1],_0=c[10],Q0=c[5],vx=c[4],Ix=Kx(a(n[1][1+hr],n),y0),yx=Kx(a(n[1][1+M],n),y),_r=p(n[1][1+jx],n,Z),f1=p(n[1][1+tx],n,S),c1=p(n[1][1+Fr],n,R),p1=Kx(a(n[1][1+O0],n),E),d1=p(n[1][1+n0],n,v);return y0===Ix&&Z===_r&&R===c1&&E===p1&&S===f1&&y===yx&&v===d1?c:[0,Ix,_r,c1,vx,Q0,p1,f1,yx,d1,_0]}function Ig0(n,s,c){return H0(n[1][1+Wr],n,s,c)}function Og0(n,s,c){return H0(n[1][1+cr],n,s,c)}function Rg0(n,s,c){return H0(n[1][1+Wr],n,s,c)}function Lg0(n,s){if(s[0]===0)return s;var c=s[1];function v(y){return[1,y]}return G0(a(n[1][1+Q],n),c,s,v)}function Mg0(n,s){var c=s[2],v=s[1];function y(S){return[0,v,S]}return G0(a(n[1][1+$],n),c,s,y)}function Dg0(n,s){var c=s[2],v=s[1];switch(c[0]){case 0:var y=c[1],S=function(Mx){return[0,v,[0,Mx]]};return G0(a(n[1][1+n0],n),y,s,S);case 1:var E=c[1],R=function(Mx){return[0,v,[1,Mx]]};return G0(a(n[1][1+n0],n),E,s,R);case 2:var Z=c[1],y0=function(Mx){return[0,v,[2,Mx]]};return G0(a(n[1][1+n0],n),Z,s,y0);case 3:var _0=c[1],Q0=function(Mx){return[0,v,[3,Mx]]};return G0(a(n[1][1+n0],n),_0,s,Q0);case 4:var vx=c[1],Ix=function(Mx){return[0,v,[4,Mx]]};return G0(a(n[1][1+n0],n),vx,s,Ix);case 5:var yx=c[1],_r=function(Mx){return[0,v,[5,Mx]]};return G0(a(n[1][1+n0],n),yx,s,_r);case 6:var f1=c[1],c1=function(Mx){return[0,v,[6,Mx]]};return G0(a(n[1][1+n0],n),f1,s,c1);case 7:var p1=c[1],d1=function(Mx){return[0,v,[7,Mx]]};return G0(a(n[1][1+n0],n),p1,s,d1);case 8:var Ge=c[2],qe=c[1],He=function(Mx){return[0,v,[8,qe,Mx]]};return G0(a(n[1][1+n0],n),Ge,s,He);case 9:var Ce=c[1],be=function(Mx){return[0,v,[9,Mx]]};return G0(a(n[1][1+n0],n),Ce,s,be);case 10:var xt=c[1],Pt=function(Mx){return[0,v,[10,Mx]]};return G0(a(n[1][1+n0],n),xt,s,Pt);case 11:var rt=c[1],et=function(Mx){return[0,v,[11,Mx]]};return G0(a(n[1][1+Wx],n),rt,s,et);case 12:var Jn=c[1],Xn=function(Mx){return[0,v,[12,Mx]]};return cx(a(n[1][1+U],n),v,Jn,s,Xn);case 13:var ks=c[1],hs=function(Mx){return[0,v,[13,Mx]]};return cx(a(n[1][1+Dn],n),v,ks,s,hs);case 14:var tt=c[1],_s=function(Mx){return[0,v,[14,Mx]]};return cx(a(n[1][1+R1],n),v,tt,s,_s);case 15:var uv=c[1],z6=function(Mx){return[0,v,[15,Mx]]};return cx(a(n[1][1+Go],n),v,uv,s,z6);case 16:var K6=c[1],B6=function(Mx){return[0,v,[16,Mx]]};return G0(a(n[1][1+N3],n),K6,s,B6);case 17:var W6=c[1],Z6=function(Mx){return[0,v,[17,Mx]]};return G0(a(n[1][1+fe],n),W6,s,Z6);case 18:var $6=c[1],F6=function(Mx){return[0,v,[18,Mx]]};return G0(a(n[1][1+Lm],n),$6,s,F6);case 19:var Q6=c[1],G6=function(Mx){return[0,v,[19,Mx]]};return cx(a(n[1][1+mt],n),v,Q6,s,G6);case 20:var q6=c[1],H6=function(Mx){return[0,v,[20,Mx]]};return cx(a(n[1][1+p3],n),v,q6,s,H6);case 21:var b6=c[1],x4=function(Mx){return[0,v,[21,Mx]]};return cx(a(n[1][1+Ur],n),v,b6,s,x4);case 22:var r4=c[1],e4=function(Mx){return[0,v,[22,Mx]]};return cx(a(n[1][1+h],n),v,r4,s,e4);case 23:var t4=c[1],n4=function(Mx){return[0,v,[23,Mx]]};return cx(a(n[1][1+Qo],n),v,t4,s,n4);case 24:var u4=c[1],i4=function(Mx){return[0,v,[24,Mx]]};return G0(a(n[1][1+A],n),u4,s,i4);case 25:var f4=c[1],c4=function(Mx){return[0,v,[25,Mx]]};return G0(a(n[1][1+In],n),f4,s,c4);case 26:var s4=c[1],o4=function(Mx){return[0,v,[26,Mx]]};return G0(a(n[1][1+m0],n),s4,s,o4);case 27:var v4=c[1],a4=function(Mx){return[0,v,[27,Mx]]};return G0(a(n[1][1+f0],n),v4,s,a4);case 28:var l4=c[1],p4=function(Mx){return[0,v,[28,Mx]]};return cx(a(n[1][1+Sx],n),v,l4,s,p4);case 29:var d4=c[1],y4=function(Mx){return[0,v,[29,Mx]]};return cx(a(n[1][1+Or],n),v,d4,s,y4);case 30:var m4=c[1],k4=function(Mx){return[0,v,[30,Mx]]};return cx(a(n[1][1+nn],n),v,m4,s,k4);case 31:var h4=c[1],_4=function(Mx){return[0,v,[31,Mx]]};return cx(a(n[1][1+ao],n),v,h4,s,_4);case 32:var w4=c[1],T4=function(Mx){return[0,v,[32,Mx]]};return G0(a(n[1][1+n0],n),w4,s,T4);case 33:var S4=c[1],E4=function(Mx){return[0,v,[33,Mx]]};return G0(a(n[1][1+n0],n),S4,s,E4);default:var g4=c[1],A4=function(Mx){return[0,v,[34,Mx]]};return G0(a(n[1][1+n0],n),g4,s,A4)}}function Ug0(n,s,c){var v=c[2],y=c[1],S=y[3],E=y[2],R=y[1],Z=p(n[1][1+$],n,R),y0=p(n[1][1+$],n,E),_0=Er(a(n[1][1+$],n),S),Q0=p(n[1][1+n0],n,v);return Z===R&&y0===E&&_0===S&&Q0===v?c:[0,[0,Z,y0,_0],Q0]}function jg0(n,s,c){var v=c[2],y=c[1],S=y[3],E=y[2],R=y[1],Z=p(n[1][1+$],n,R),y0=p(n[1][1+$],n,E),_0=Er(a(n[1][1+$],n),S),Q0=p(n[1][1+n0],n,v);return Z===R&&y0===E&&_0===S&&Q0===v?c:[0,[0,Z,y0,_0],Q0]}function Jg0(n,s){var c=s[2],v=s[1],y=p(n[1][1+$],n,v),S=p(n[1][1+n0],n,c);return v===y&&c===S?s:[0,y,S]}function Xg0(n,s){var c=s[2],v=s[1],y=p(n[1][1+$],n,c);return y===c?s:[0,v,y]}function Yg0(n,s){var c=s[3],v=s[2],y=s[4],S=s[1],E=p(n[1][1+$],n,v),R=p(n[1][1+i],n,c);return E===v&&R===c?s:[0,S,E,R,y]}function Vg0(n,s){var c=s[2],v=s[1];switch(c[0]){case 0:var y=c[1],S=function(_0){return[0,v,[0,_0]]};return G0(a(n[1][1+$],n),y,s,S);case 1:var E=c[1],R=function(_0){return[0,v,[1,_0]]};return G0(a(n[1][1+v0],n),E,s,R);default:var Z=c[1],y0=function(_0){return[0,v,[2,_0]]};return G0(a(n[1][1+s0],n),Z,s,y0)}}function zg0(n,s){var c=s[2],v=s[1],y=Er(a(n[1][1+o0],n),v),S=p(n[1][1+n0],n,c);return v===y&&c===S?s:[0,y,S]}function Kg0(n,s){var c=s[2],v=s[1],y=p(n[1][1+$],n,v),S=p(n[1][1+n0],n,c);return v===y&&c===S?s:[0,y,S]}function Bg0(n,s){var c=s[2],v=s[1],y=p(n[1][1+$],n,v),S=p(n[1][1+n0],n,c);return v===y&&c===S?s:[0,y,S]}function Wg0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+L],n,y),R=p(n[1][1+C],n,v);return E===y&&R===v?s:[0,S,[0,E,R]]}function Zg0(n,s){return p(n[1][1+L1],n,s)}function $g0(n,s){return p(n[1][1+L1],n,s)}function Fg0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return G0(a(n[1][1+O],n),c,s,v)}var y=s[1];function S(E){return[1,E]}return G0(a(n[1][1+N],n),y,s,S)}function Qg0(n,s){var c=s[2],v=s[1],y=p(n[1][1+L],n,v),S=p(n[1][1+n0],n,c);return v===y&&c===S?s:[0,y,S]}function Gg0(n,s){var c=s[2],v=s[1],y=p(n[1][1+V],n,v),S=p(n[1][1+n0],n,c);return v===y&&c===S?s:[0,y,S]}function qg0(n,s){var c=s[5],v=s[4],y=s[3],S=s[2],E=s[1],R=p(n[1][1+$],n,E),Z=p(n[1][1+$],n,S),y0=p(n[1][1+$],n,y),_0=p(n[1][1+$],n,v),Q0=p(n[1][1+n0],n,c);return E===R&&S===Z&&y===y0&&v===_0&&c===Q0?s:[0,R,Z,y0,_0,Q0]}function Hg0(n,s){var c=s[2],v=s[1],y=p(n[1][1+$],n,v),S=p(n[1][1+n0],n,c);return v===y&&c===S?s:[0,y,S]}function bg0(n,s,c){var v=c[6],y=c[5],S=c[4],E=c[3],R=c[2],Z=c[1];return v===p(n[1][1+n0],n,v)?c:[0,Z,R,E,S,y,v]}function xA0(n,s,c){var v=c[4],y=c[3],S=c[2],E=c[1],R=p(n[1][1+n0],n,v);return v===R?c:[0,E,S,y,R]}function rA0(n,s,c){return p(n[1][1+n0],n,c)}function eA0(n,s,c){var v=c[2],y=c[1],S=p(n[1][1+n0],n,v);return v===S?c:[0,y,S]}function tA0(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+n0],n,v);return v===E?c:[0,S,y,E]}function nA0(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+n0],n,v);return v===E?c:[0,S,y,E]}function uA0(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+n0],n,v);return v===E?c:[0,S,y,E]}function iA0(n,s,c){var v=c[1],y=c[2],S=H0(n[1][1+p3],n,s,v);return S===v?c:[0,S,y]}function fA0(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+$],n,S),R=p(n[1][1+$],n,y),Z=p(n[1][1+n0],n,v);return E===S&&R===y&&Z===v?c:[0,E,R,Z]}function cA0(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+q],n,S),R=Kx(a(n[1][1+K],n),y),Z=p(n[1][1+n0],n,v);return E===S&&R===y&&Z===v?c:[0,E,R,Z]}function sA0(n,s){var c=s[2],v=c[5],y=c[4],S=c[2],E=c[1],R=c[3],Z=s[1],y0=p(n[1][1+J],n,S),_0=p(n[1][1+i],n,y),Q0=Kx(a(n[1][1+$],n),v),vx=p(n[1][1+Qe],n,E);return vx===E&&y0===S&&_0===y&&Q0===v?s:[0,Z,[0,vx,y0,R,_0,Q0]]}function oA0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=Er(a(n[1][1+V],n),y),R=p(n[1][1+n0],n,v);return E===y&&R===v?s:[0,S,[0,E,R]]}function vA0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=Er(a(n[1][1+$],n),y),R=p(n[1][1+n0],n,v);return y===E&&v===R?s:[0,S,[0,E,R]]}function aA0(n,s){return Kx(a(n[1][1+f],n),s)}function lA0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+n0],n,v);return v===E?s:[0,S,[0,y,E]]}function pA0(n,s){return p(n[1][1+L1],n,s)}function dA0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+q],n,y),R=p(n[1][1+to],n,v);return E===y&&R===v?s:[0,S,[0,E,R]]}function yA0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return G0(a(n[1][1+z],n),c,s,v)}var y=s[1];function S(E){return[1,E]}return G0(a(n[1][1+m3],n),y,s,S)}function mA0(n,s,c){var v=c[3],y=c[2],S=c[1],E=a(n[1][1+mt],n),R=Er(function(_0){return x2(E,_0)},y),Z=x2(a(n[1][1+R1],n),S),y0=p(n[1][1+n0],n,v);return R===y&&Z===S&&v===y0?c:[0,Z,R,y0]}function kA0(n,s){switch(s[0]){case 0:var c=s[1],v=function(yx){return[0,yx]};return G0(a(n[1][1+r0],n),c,s,v);case 1:var y=s[1],S=function(yx){return[1,yx]};return G0(a(n[1][1+_],n),y,s,S);case 2:var E=s[1],R=function(yx){return[2,yx]};return G0(a(n[1][1+$x],n),E,s,R);case 3:var Z=s[1],y0=function(yx){return[3,yx]};return G0(a(n[1][1+xr],n),Z,s,y0);case 4:var _0=s[1],Q0=function(yx){return[4,yx]};return G0(a(n[1][1+tr],n),_0,s,Q0);default:var vx=s[1],Ix=function(yx){return[5,yx]};return G0(a(n[1][1+G],n),vx,s,Ix)}}function hA0(n,s,c){var v=c[4],y=c[3],S=c[2],E=c[1],R=Er(a(n[1][1+Ir],n),y),Z=p(n[1][1+n0],n,v);return R===y&&v===Z?c:[0,E,S,R,Z]}function _A0(n,s){var c=s[2],v=c[6],y=c[4],S=c[3],E=c[2],R=c[1],Z=c[5],y0=s[1],_0=p(n[1][1+V],n,R),Q0=p(n[1][1+$],n,E),vx=p(n[1][1+$],n,S),Ix=p(n[1][1+i],n,y),yx=p(n[1][1+n0],n,v);return _0===R&&Q0===E&&vx===S&&Ix===y&&yx===v?s:[0,y0,[0,_0,Q0,vx,Ix,Z,yx]]}function wA0(n,s){var c=s[2],v=c[3],y=c[1],S=y[2],E=y[1],R=c[2],Z=s[1],y0=H0(n[1][1+U],n,E,S),_0=p(n[1][1+n0],n,v);return S===y0&&v===_0?s:[0,Z,[0,[0,E,y0],R,_0]]}function TA0(n,s){var c=s[2],v=c[6],y=c[2],S=c[1],E=c[5],R=c[4],Z=c[3],y0=s[1],_0=p(n[1][1+L1],n,S),Q0=p(n[1][1+$],n,y),vx=p(n[1][1+n0],n,v);return S===_0&&y===Q0&&v===vx?s:[0,y0,[0,_0,Q0,Z,R,E,vx]]}function SA0(n,s){var c=s[2],v=c[6],y=c[5],S=c[3],E=c[2],R=c[4],Z=c[1],y0=s[1],_0=p(n[1][1+$],n,E),Q0=p(n[1][1+$],n,S),vx=p(n[1][1+i],n,y),Ix=p(n[1][1+n0],n,v);return _0===E&&Q0===S&&vx===y&&Ix===v?s:[0,y0,[0,Z,_0,Q0,R,vx,Ix]]}function EA0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+$],n,y),R=p(n[1][1+n0],n,v);return E===y&&v===R?s:[0,S,[0,E,R]]}function gA0(n,s){var c=s[2],v=c[8],y=c[7],S=c[2],E=c[1],R=c[6],Z=c[5],y0=c[4],_0=c[3],Q0=s[1],vx=p(n[1][1+Lx],n,E),Ix=p(n[1][1+b],n,S),yx=p(n[1][1+i],n,y),_r=p(n[1][1+n0],n,v);return vx===E&&Ix===S&&yx===y&&_r===v?s:[0,Q0,[0,vx,Ix,_0,y0,Z,R,yx,_r]]}function AA0(n,s){var c=s[1],v=s[2];function y(S){return[0,c,S]}return cx(a(n[1][1+U],n),c,v,s,y)}function PA0(n,s){var c=s[1],v=s[2];function y(S){return[0,c,S]}return cx(a(n[1][1+U],n),c,v,s,y)}function NA0(n,s){switch(s[0]){case 0:var c=s[1],v=function(Z){return[0,Z]};return G0(a(n[1][1+$],n),c,s,v);case 1:var y=s[1],S=function(Z){return[1,Z]};return G0(a(n[1][1+h1],n),y,s,S);default:var E=s[1],R=function(Z){return[2,Z]};return G0(a(n[1][1+e2],n),E,s,R)}}function CA0(n,s){return p(n[1][1+L1],n,s)}function IA0(n,s,c){var v=c[4],y=c[3],S=c[2],E=S[2],R=E[4],Z=E[3],y0=E[2],_0=E[1],Q0=c[1],vx=S[1],Ix=Kx(a(n[1][1+M],n),Q0),yx=Kx(a(n[1][1+T0],n),_0),_r=Er(a(n[1][1+Hx],n),y0),f1=Kx(a(n[1][1+Ex],n),Z),c1=p(n[1][1+I],n,y),p1=p(n[1][1+n0],n,v),d1=p(n[1][1+n0],n,R);return _r===y0&&f1===Z&&c1===y&&Ix===Q0&&p1===v&&d1===R&&yx===_0?c:[0,Ix,[0,vx,[0,yx,_r,f1,d1]],c1,p1]}function OA0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return G0(a(n[1][1+$],n),c,s,v)}var y=s[1];function S(E){return[1,E]}return G0(a(n[1][1+i0],n),y,s,S)}function RA0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+Q],n,y),R=p(n[1][1+n0],n,v);return E===y&&R===v?s:[0,S,[0,E,R]]}function LA0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+Hx],n,y),R=p(n[1][1+n0],n,v);return E===y&&R===v?s:[0,S,[0,E,R]]}function MA0(n,s){var c=s[2],v=c[2],y=c[1],S=c[3],E=s[1],R=p(n[1][1+$],n,v),Z=Kx(a(n[1][1+L1],n),y);return R===v&&Z===y?s:[0,E,[0,Z,R,S]]}function DA0(n,s){var c=s[1],v=s[2];function y(S){return[0,c,S]}return cx(a(n[1][1+d],n),c,v,s,y)}function UA0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return G0(a(n[1][1+_1],n),c,s,v)}var y=s[1];function S(E){return[1,E]}return G0(a(n[1][1+gx],n),y,s,S)}function jA0(n,s,c){var v=c[5],y=c[4],S=c[3],E=c[2],R=c[1],Z=Kx(a(n[1][1+Mr],n),R),y0=Kx(a(n[1][1+D],n),E),_0=Kx(a(n[1][1+gx],n),S),Q0=p(n[1][1+A0],n,y),vx=p(n[1][1+n0],n,v);return R===Z&&E===y0&&S===_0&&y===Q0&&v===vx?c:[0,Z,y0,_0,Q0,vx]}function JA0(n,s){var c=s[1],v=s[2];function y(S){return[0,c,S]}return cx(a(n[1][1+d],n),c,v,s,y)}function XA0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return G0(a(n[1][1+l1],n),c,s,v)}var y=s[1];function S(E){return[1,E]}return G0(a(n[1][1+i1],n),y,s,S)}function YA0(n,s,c){var v=c[5],y=c[3],S=c[2],E=c[1],R=c[4],Z=p(n[1][1+x1],n,E),y0=p(n[1][1+gx],n,S),_0=p(n[1][1+A0],n,y),Q0=p(n[1][1+n0],n,v);return E===Z&&S===y0&&y===_0&&v===Q0?c:[0,Z,y0,_0,R,Q0]}function VA0(n,s){var c=s[1],v=s[2];function y(S){return[0,c,S]}return cx(a(n[1][1+d],n),c,v,s,y)}function zA0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return G0(a(n[1][1+t2],n),c,s,v)}var y=s[1];function S(E){return[1,E]}return G0(a(n[1][1+g1],n),y,s,S)}function KA0(n,s,c){var v=c[5],y=c[3],S=c[2],E=c[1],R=c[4],Z=p(n[1][1+Cr],n,E),y0=p(n[1][1+gx],n,S),_0=p(n[1][1+A0],n,y),Q0=p(n[1][1+n0],n,v);return E===Z&&S===y0&&y===_0&&v===Q0?c:[0,Z,y0,_0,R,Q0]}function BA0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return G0(a(n[1][1+gx],n),c,s,v)}var y=s[1];function S(E){return[1,E]}return G0(a(n[1][1+C0],n),y,s,S)}function WA0(n,s,c){var v=c[3],y=c[1],S=c[2],E=p(n[1][1+gx],n,y),R=p(n[1][1+n0],n,v);return y===E&&v===R?c:[0,E,S,R]}function ZA0(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+n0],n,v);return v===E?c:[0,S,y,E]}function $A0(n,s){if(s[0]===0){var c=s[1],v=Er(a(n[1][1+lr],n),c);return c===v?s:[0,v]}var y=s[1],S=p(n[1][1+Z2],n,y);return y===S?s:[1,S]}function FA0(n,s){var c=s[2],v=s[1],y=Kx(a(n[1][1+L1],n),c);return c===y?s:[0,v,y]}function QA0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+L1],n,y),R=Kx(a(n[1][1+L1],n),v);return y===E&&v===R?s:[0,S,[0,E,R]]}function GA0(n,s,c){var v=c[5],y=c[3],S=c[2],E=c[1],R=c[4],Z=aV(a(n[1][1+Xr],n),y),y0=Kx(a(n[1][1+r1],n),S),_0=Kx(a(n[1][1+A0],n),E),Q0=p(n[1][1+n0],n,v);return y===Z&&S===y0&&E===_0&&v===Q0?c:[0,_0,y0,Z,R,Q0]}function qA0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return G0(a(n[1][1+A0],n),c,s,v)}var y=s[1];function S(E){return[1,E]}return G0(a(n[1][1+gx],n),y,s,S)}function HA0(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+B1],n,y),R=p(n[1][1+n0],n,v);return E===y&&R===v?c:[0,S,E,R]}function bA0(n,s){return p(n[1][1+L1],n,s)}function xP0(n,s){var c=s[2],v=c[1],y=c[2],S=s[1],E=p(n[1][1+a2],n,v);return v===E?s:[0,S,[0,E,y]]}function rP0(n,s){var c=s[2],v=c[1],y=c[2],S=s[1],E=p(n[1][1+a2],n,v);return v===E?s:[0,S,[0,E,y]]}function eP0(n,s){var c=s[2],v=c[1],y=c[2],S=s[1],E=p(n[1][1+a2],n,v);return v===E?s:[0,S,[0,E,y]]}function tP0(n,s){var c=s[2],v=c[1],y=c[2],S=s[1],E=p(n[1][1+a2],n,v);return v===E?s:[0,S,[0,E,y]]}function nP0(n,s){var c=s[2][1],v=s[1],y=p(n[1][1+a2],n,c);return c===y?s:[0,v,[0,y]]}function uP0(n,s){var c=s[4],v=s[1],y=Er(a(n[1][1+Se],n),v),S=p(n[1][1+n0],n,c);return v===y&&c===S?s:[0,y,s[2],s[3],S]}function iP0(n,s){var c=s[3],v=s[1],y=Er(a(n[1][1+kt],n),v),S=p(n[1][1+n0],n,c);return v===y&&c===S?s:[0,y,s[2],S]}function fP0(n,s){var c=s[4],v=s[1];if(v[0]===0)var y=v[1],S=function(vx){return[0,vx]},E=a(n[1][1+kt],n),_0=G0(function(vx){return Er(E,vx)},y,v,S);else var R=v[1],Z=function(vx){return[1,vx]},y0=a(n[1][1+Gt],n),_0=G0(function(vx){return Er(y0,vx)},R,v,Z);var Q0=p(n[1][1+n0],n,c);return v===_0&&c===Q0?s:[0,_0,s[2],s[3],Q0]}function cP0(n,s){var c=s[4],v=s[1],y=Er(a(n[1][1+n2],n),v),S=p(n[1][1+n0],n,c);return v===y&&c===S?s:[0,y,s[2],s[3],S]}function sP0(n,s){var c=s[4],v=s[1],y=Er(a(n[1][1+ht],n),v),S=p(n[1][1+n0],n,c);return v===y&&c===S?s:[0,y,s[2],s[3],S]}function oP0(n,s){var c=s[2],v=s[1];switch(c[0]){case 0:var y=c[1],S=function(yx){return[0,v,[0,yx]]};return G0(a(n[1][1+$e],n),y,s,S);case 1:var E=c[1],R=function(yx){return[0,v,[1,yx]]};return G0(a(n[1][1+I2],n),E,s,R);case 2:var Z=c[1],y0=function(yx){return[0,v,[2,yx]]};return G0(a(n[1][1+C2],n),Z,s,y0);case 3:var _0=c[1],Q0=function(yx){return[0,v,[3,yx]]};return G0(a(n[1][1+we],n),_0,s,Q0);default:var vx=c[1],Ix=function(yx){return[0,v,[4,yx]]};return G0(a(n[1][1+Ee],n),vx,s,Ix)}}function vP0(n,s,c){var v=c[3],y=c[2],S=c[1],E=H0(n[1][1+mx],n,wG,S),R=p(n[1][1+Te],n,y),Z=p(n[1][1+n0],n,v);return S===E&&y===R&&v===Z?c:[0,E,R,Z]}function aP0(n,s,c){var v=c[1],y=p(n[1][1+n0],n,v);return v===y?c:[0,y]}function lP0(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+A0],n,S),R=p(n[1][1+D],n,y),Z=p(n[1][1+n0],n,v);return S===E&&y===R&&v===Z?c:[0,E,R,Z]}function pP0(n,s,c){var v=c[4],y=c[3],S=c[2],E=c[1],R=H0(n[1][1+mx],n,[0,y],E),Z=p(n[1][1+Q],n,S),y0=p(n[1][1+n0],n,v);return R===E&&Z===S&&y0===v?c:[0,R,Z,y,y0]}function dP0(n,s,c){return H0(n[1][1+x0],n,s,c)}function yP0(n,s,c){var v=c[2],y=c[1],S=p(n[1][1+Q],n,y),E=p(n[1][1+n0],n,v);return y===S&&v===E?c:[0,S,E]}function mP0(n,s,c){var v=c[4],y=c[2],S=c[3],E=c[1],R=x2(a(n[1][1+gt],n),y),Z=p(n[1][1+n0],n,v);return R===y&&v===Z?c:[0,E,R,S,Z]}function kP0(n,s,c){return H0(n[1][1+l3],n,s,c)}function hP0(n,s,c){var v=c[4],y=c[3],S=c[2],E=c[1],R=p(n[1][1+hr],n,E),Z=p(n[1][1+Q],n,S),y0=Kx(a(n[1][1+O0],n),y),_0=p(n[1][1+n0],n,v);return R===E&&Z===S&&y0===y&&_0===v?c:[0,R,Z,y0,_0]}function _P0(n,s){switch(s[0]){case 0:var c=s[1],v=c[2],y=c[1],S=H0(n[1][1+Pe],n,y,v);return S===v?s:[0,[0,y,S]];case 1:var E=s[1],R=E[2],Z=E[1],y0=H0(n[1][1+qt],n,Z,R);return y0===R?s:[1,[0,Z,y0]];case 2:var _0=s[1],Q0=_0[2],vx=_0[1],Ix=H0(n[1][1+ie],n,vx,Q0);return Ix===Q0?s:[2,[0,vx,Ix]];case 3:var yx=s[1],_r=yx[2],f1=yx[1],c1=H0(n[1][1+Ht],n,f1,_r);return c1===_r?s:[3,[0,f1,c1]];case 4:var p1=s[1],d1=p(n[1][1+$],n,p1);return d1===p1?s:[4,d1];case 5:var Ge=s[1],qe=Ge[2],He=Ge[1],Ce=H0(n[1][1+x0],n,He,qe);return Ce===qe?s:[5,[0,He,Ce]];case 6:var be=s[1],xt=be[2],Pt=be[1],rt=H0(n[1][1+br],n,Pt,xt);return rt===xt?s:[6,[0,Pt,rt]];case 7:var et=s[1],Jn=et[2],Xn=et[1],ks=H0(n[1][1+l3],n,Xn,Jn);return ks===Jn?s:[7,[0,Xn,ks]];default:var hs=s[1],tt=hs[2],_s=hs[1],uv=H0(n[1][1+O2],n,_s,tt);return uv===tt?s:[8,[0,_s,uv]]}}function wP0(n,s,c){var v=c[5],y=c[4],S=c[3],E=c[2],R=c[1],Z=aV(a(n[1][1+Xr],n),y),y0=Kx(a(n[1][1+r1],n),S),_0=Kx(a(n[1][1+vs],n),E),Q0=p(n[1][1+n0],n,v);return y===Z&&S===y0&&E===_0&&v===Q0?c:[0,R,_0,y0,Z,Q0]}function TP0(n,s,c){return H0(n[1][1+O2],n,s,c)}function SP0(n,s){var c=s[2],v=c[4],y=c[2],S=c[1],E=c[3],R=s[1],Z=Kx(a(n[1][1+L1],n),S),y0=p(n[1][1+$],n,y),_0=p(n[1][1+n0],n,v);return S===Z&&y===y0&&v===_0?s:[0,R,[0,Z,y0,E,_0]]}function EP0(n,s){var c=s[2],v=c[2],y=c[1],S=c[3],E=s[1],R=p(n[1][1+as],n,y),Z=p(n[1][1+Q],n,v);return y===R&&v===Z?s:[0,E,[0,R,Z,S]]}function gP0(n,s){var c=s[2],v=c[3],y=c[2],S=c[1],E=s[1],R=Er(a(n[1][1+en],n),S),Z=Kx(a(n[1][1+rn],n),y),y0=p(n[1][1+n0],n,v);return S===R&&y===Z&&v===y0?s:[0,E,[0,R,Z,y0]]}function AP0(n,s,c){var v=c[4],y=c[3],S=c[2],E=c[1],R=Kx(a(n[1][1+M],n),E),Z=p(n[1][1+Mn],n,S),y0=p(n[1][1+J],n,y),_0=p(n[1][1+n0],n,v);return E===R&&S===Z&&y===y0&&v===_0?c:[0,R,Z,y0,_0]}function PP0(n,s,c){var v=c[5],y=c[4],S=c[3],E=c[2],R=c[1],Z=p(n[1][1+ps],n,R),y0=Kx(a(n[1][1+M],n),E),_0=p(n[1][1+Mn],n,S),Q0=p(n[1][1+J],n,y),vx=p(n[1][1+n0],n,v);return R===Z&&E===y0&&S===_0&&y===Q0&&v===vx?c:[0,Z,y0,_0,Q0,vx]}function NP0(n,s,c){var v=c[7],y=c[6],S=c[5],E=c[4],R=c[3],Z=c[2],y0=c[1],_0=p(n[1][1+Un],n,y0),Q0=Kx(a(n[1][1+M],n),Z),vx=x2(a(n[1][1+R1],n),R),Ix=a(n[1][1+mt],n),yx=Kx(function(d1){return x2(Ix,d1)},E),_r=a(n[1][1+mt],n),f1=Er(function(d1){return x2(_r,d1)},S),c1=Kx(a(n[1][1+ua],n),y),p1=p(n[1][1+n0],n,v);return _0===y0&&Q0===Z&&vx===R&&yx===E&&f1===S&&c1===y&&p1===v?c:[0,_0,Q0,vx,yx,f1,c1,p1]}function CP0(n,s,c){var v=c[1],y=p(n[1][1+n0],n,v);return v===y?c:[0,y]}function IP0(n,s,c){var v=c[2],y=c[1],S=Kx(a(n[1][1+Qt],n),y),E=p(n[1][1+n0],n,v);return y===S&&v===E?c:[0,S,E]}function OP0(n,s,c){var v=c[4],y=c[3],S=c[2],E=c[1],R=p(n[1][1+D],n,E),Z=p(n[1][1+gx],n,S),y0=p(n[1][1+gx],n,y),_0=p(n[1][1+n0],n,v);return E===R&&S===Z&&y===y0&&v===_0?c:[0,R,Z,y0,_0]}function RP0(n,s){var c=s[1],v=s[2];function y(S){return[0,c,S]}return cx(a(n[1][1+gt],n),c,v,s,y)}function LP0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+Et],n,y),R=p(n[1][1+n0],n,v);return y===E&&v===R?s:[0,S,[0,E,R]]}function MP0(n,s){return H0(n[1][1+ms],n,_G,s)}function DP0(n,s){if(s[0]===0)return[0,p(n[1][1+L1],n,s[1])];var c=s[1],v=c[1];return[1,[0,v,H0(n[1][1+Sx],n,v,c[2])]]}function UP0(n,s){var c=s[2],v=c[3],y=c[2],S=c[1],E=c[4],R=s[1],Z=p(n[1][1+as],n,S),y0=p(n[1][1+Et],n,y),_0=p(n[1][1+W1],n,v);return S===Z&&y===y0&&v===_0?s:[0,R,[0,Z,y0,_0,E]]}function jP0(n,s){var c=s[2],v=c[3],y=c[2],S=c[1],E=s[1],R=Er(a(n[1][1+ls],n),S),Z=Kx(a(n[1][1+qo],n),y),y0=p(n[1][1+n0],n,v);return S===R&&y===Z&&v===y0?s:[0,E,[0,R,Z,y0]]}function JP0(n,s){return H0(n[1][1+mx],n,hG,s)}function XP0(n,s,c){var v=c[6],y=c[5],S=c[4],E=c[3],R=c[2],Z=c[1],y0=c[7],_0=p(n[1][1+ps],n,Z),Q0=Kx(a(n[1][1+M],n),R),vx=p(n[1][1+tn],n,E),Ix=p(n[1][1+k3],n,y),yx=p(n[1][1+J],n,S),_r=p(n[1][1+n0],n,v);return Z===_0&&R===Q0&&E===vx&&y===Ix&&S===yx&&v===_r?c:[0,_0,Q0,vx,yx,Ix,_r,y0]}function YP0(n,s){return Kx(a(n[1][1+gx],n),s)}function VP0(n,s,c){var v=c[7],y=c[6],S=c[5],E=c[3],R=c[2],Z=c[1],y0=p(n[1][1+P0],n,Z),_0=p(n[1][1+bo],n,R),Q0=p(n[1][1+J],n,E),vx=p(n[1][1+i],n,S),Ix=Er(a(n[1][1+Ne],n),y),yx=p(n[1][1+n0],n,v);return Z===y0&&R===_0&&Q0===E&&vx===S&&Ix===y&&yx===v?c:[0,y0,_0,Q0,c[4],vx,Ix,yx]}function zP0(n,s){if(typeof s=="number")return s;var c=s[1],v=p(n[1][1+gx],n,c);return c===v?s:[0,v]}function KP0(n,s,c){var v=c[7],y=c[6],S=c[5],E=c[3],R=c[2],Z=c[1],y0=p(n[1][1+Lx],n,Z),_0=p(n[1][1+bo],n,R),Q0=p(n[1][1+J],n,E),vx=p(n[1][1+i],n,S),Ix=Er(a(n[1][1+Ne],n),y),yx=p(n[1][1+n0],n,v);return Z===y0&&R===_0&&Q0===E&&vx===S&&Ix===y&&yx===v?c:[0,y0,_0,Q0,c[4],vx,Ix,yx]}function BP0(n,s,c){var v=c[6],y=c[5],S=c[3],E=c[2],R=p(n[1][1+Lx],n,E),Z=x2(a(n[1][1+cr],n),S),y0=Er(a(n[1][1+Ne],n),y),_0=p(n[1][1+n0],n,v);return E===R&&S===Z&&y===y0&&v===_0?c:[0,c[1],R,Z,c[4],y0,_0]}function WP0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+z],n,y),R=Kx(a(n[1][1+K],n),v);return y===E&&v===R?s:[0,S,[0,E,R]]}function ZP0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=Er(a(n[1][1+na],n),y),R=p(n[1][1+n0],n,v);return y===E&&v===R?s:[0,S,[0,E,R]]}function $P0(n,s){switch(s[0]){case 0:var c=s[1],v=c[1],y=c[2],S=function(yx){return[0,[0,v,yx]]};return cx(a(n[1][1+_3],n),v,y,s,S);case 1:var E=s[1],R=E[1],Z=E[2],y0=function(yx){return[1,[0,R,yx]]};return cx(a(n[1][1+ta],n),R,Z,s,y0);default:var _0=s[1],Q0=_0[1],vx=_0[2],Ix=function(yx){return[2,[0,Q0,yx]]};return cx(a(n[1][1+h3],n),Q0,vx,s,Ix)}}function FP0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+gx],n,y),R=p(n[1][1+n0],n,v);return y===E&&v===R?s:[0,S,[0,E,R]]}function QP0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=Er(a(n[1][1+S3],n),y),R=p(n[1][1+n0],n,v);return y===E&&v===R?s:[0,S,[0,E,R]]}function GP0(n,s){return H0(n[1][1+mx],n,kG,s)}function qP0(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+gx],n,S),R=Kx(a(n[1][1+K],n),y),Z=p(n[1][1+n0],n,v);return S===E&&y===R&&v===Z?c:[0,E,R,Z]}function HP0(n,s,c){var v=c[7],y=c[6],S=c[5],E=c[4],R=c[3],Z=c[2],y0=c[1],_0=Kx(a(n[1][1+Un],n),y0),Q0=Kx(a(n[1][1+M],n),R),vx=p(n[1][1+g3],n,Z),Ix=a(n[1][1+w3],n),yx=Kx(function(p1){return x2(Ix,p1)},E),_r=Kx(a(n[1][1+ua],n),S),f1=Er(a(n[1][1+Ne],n),y),c1=p(n[1][1+n0],n,v);return y0===_0&&Z===vx&&E===yx&&S===_r&&y===f1&&v===c1&&R===Q0?c:[0,_0,vx,Q0,yx,_r,f1,c1]}function bP0(n,s,c){return H0(n[1][1+ia],n,s,c)}function xN0(n,s,c){return H0(n[1][1+ia],n,s,c)}function rN0(n,s,c){var v=c[3],y=c[2],S=c[1],E=Kx(a(n[1][1+ds],n),S),R=p(n[1][1+xv],n,y),Z=p(n[1][1+n0],n,v);return S===E&&y===R&&v===Z?c:[0,E,R,Z]}function eN0(n,s){return x2(a(n[1][1+gt],n),s)}function tN0(n,s){if(s[0]===0){var c=s[1],v=p(n[1][1+$],n,c);return v===c?s:[0,v]}var y=s[1],S=y[2][1],E=y[1],R=p(n[1][1+n0],n,S);return S===R?s:[1,[0,E,[0,R]]]}function nN0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=Er(a(n[1][1+A3],n),y),R=p(n[1][1+n0],n,v);return y===E&&v===R?s:[0,S,[0,E,R]]}function uN0(n,s,c){var v=c[1],y=H0(n[1][1+fa],n,s,v);return v===y?c:[0,y,c[2],c[3]]}function iN0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=Er(a(n[1][1+ne],n),y),R=p(n[1][1+n0],n,v);return y===E&&v===R?s:[0,S,[0,E,R]]}function fN0(n,s,c){var v=c[4],y=c[3],S=c[2],E=c[1],R=p(n[1][1+gx],n,E),Z=Kx(a(n[1][1+rv],n),S),y0=p(n[1][1+ca],n,y),_0=p(n[1][1+n0],n,v);return E===R&&S===Z&&y===y0&&v===_0?c:[0,R,Z,y0,_0]}function cN0(n,s,c){var v=c[2],y=c[1],S=Kx(a(n[1][1+Qt],n),y),E=p(n[1][1+n0],n,v);return y===S&&v===E?c:[0,S,E]}function sN0(n,s,c){var v=c[2],y=c[1],S=p(n[1][1+D0],n,y),E=p(n[1][1+n0],n,v);return y===S&&v===E?c:[0,S,E]}function oN0(n,s,c){var v=c[4],y=c[3],S=c[2],E=p(n[1][1+gx],n,S),R=p(n[1][1+gx],n,y),Z=p(n[1][1+n0],n,v);return S===E&&y===R&&v===Z?c:[0,c[1],E,R,Z]}function vN0(n,s,c){var v=c[4],y=c[3],S=c[2],E=p(n[1][1+un],n,S),R=p(n[1][1+gx],n,y),Z=p(n[1][1+n0],n,v);return S===E&&y===R&&v===Z?c:[0,c[1],E,R,Z]}function aN0(n,s,c){return H0(n[1][1+Wr],n,s,c)}function lN0(n,s){switch(s[0]){case 0:var c=s[1],v=function(E){return[0,E]};return G0(a(n[1][1+gx],n),c,s,v);case 1:var y=s[1],S=function(E){return[1,E]};return G0(a(n[1][1+C0],n),y,s,S);default:return s}}function pN0(n,s,c){var v=c[2],y=c[1],S=Er(a(n[1][1+nv],n),y),E=p(n[1][1+n0],n,v);return y===S&&v===E?c:[0,S,E]}function dN0(n,s){var c=s[2],v=s[1];switch(c[0]){case 0:var y=c[1],S=function(Dx){return[0,v,[0,Dx]]};return cx(a(n[1][1+C3],n),v,y,s,S);case 1:var E=c[1],R=function(Dx){return[0,v,[1,Dx]]};return cx(a(n[1][1+P3],n),v,E,s,R);case 2:var Z=c[1],y0=function(Dx){return[0,v,[2,Dx]]};return cx(a(n[1][1+tv],n),v,Z,s,y0);case 3:var _0=c[1],Q0=function(Dx){return[0,v,[3,Dx]]};return cx(a(n[1][1+At],n),v,_0,s,Q0);case 4:var vx=c[1],Ix=function(Dx){return[0,v,[4,Dx]]};return cx(a(n[1][1+fa],n),v,vx,s,Ix);case 5:var yx=c[1],_r=function(Dx){return[0,v,[5,Dx]]};return cx(a(n[1][1+T3],n),v,yx,s,_r);case 6:var f1=c[1],c1=function(Dx){return[0,v,[6,Dx]]};return cx(a(n[1][1+xn],n),v,f1,s,c1);case 7:var p1=c[1],d1=function(Dx){return[0,v,[7,Dx]]};return cx(a(n[1][1+sr],n),v,p1,s,d1);case 8:var Ge=c[1],qe=function(Dx){return[0,v,[8,Dx]]};return G0(a(n[1][1+L1],n),Ge,s,qe);case 9:var He=c[1],Ce=function(Dx){return[0,v,[9,Dx]]};return G0(p(n[1][1+y3],n,v),He,s,Ce);case 10:var be=c[1],xt=function(Dx){return[0,v,[10,Dx]]};return cx(a(n[1][1+ss],n),v,be,s,xt);case 11:var Pt=c[1],rt=function(Dx){return[0,v,[11,Dx]]};return cx(a(n[1][1+Bo],n),v,Pt,s,rt);case 12:var et=c[1],Jn=function(Dx){return[0,v,[12,Dx]]};return cx(a(n[1][1+Sx],n),v,et,s,Jn);case 13:var Xn=c[1],ks=function(Dx){return[0,v,[13,Dx]]};return cx(a(n[1][1+ao],n),v,Xn,s,ks);case 14:var hs=c[1],tt=function(Dx){return[0,v,[14,Dx]]};return cx(a(n[1][1+B2],n),v,hs,s,tt);case 15:var _s=c[1],uv=function(Dx){return[0,v,[15,Dx]]};return cx(a(n[1][1+Or],n),v,_s,s,uv);case 16:var z6=c[1],K6=function(Dx){return[0,v,[16,Dx]]};return cx(a(n[1][1+nn],n),v,z6,s,K6);case 17:var B6=c[1],W6=function(Dx){return[0,v,[17,Dx]]};return cx(a(n[1][1+a0],n),v,B6,s,W6);case 18:var Z6=c[1],$6=function(Dx){return[0,v,[18,Dx]]};return cx(a(n[1][1+me],n),v,Z6,s,$6);case 19:var F6=c[1],Q6=function(Dx){return[0,v,[19,Dx]]};return cx(a(n[1][1+Ft],n),v,F6,s,Q6);case 20:var G6=c[1],q6=function(Dx){return[0,v,[20,Dx]]};return cx(a(n[1][1+te],n),v,G6,s,q6);case 21:var H6=c[1],b6=function(Dx){return[0,v,[21,Dx]]};return cx(a(n[1][1+Pn],n),v,H6,s,b6);case 22:var x4=c[1],r4=function(Dx){return[0,v,[22,Dx]]};return cx(a(n[1][1+lt],n),v,x4,s,r4);case 23:var e4=c[1],t4=function(Dx){return[0,v,[23,Dx]]};return cx(a(n[1][1+zx],n),v,e4,s,t4);case 24:var n4=c[1],u4=function(Dx){return[0,v,[24,Dx]]};return G0(p(n[1][1+lx],n,v),n4,s,u4);case 25:var i4=c[1],f4=function(Dx){return[0,v,[25,Dx]]};return cx(a(n[1][1+Sr],n),v,i4,s,f4);case 26:var c4=c[1],s4=function(Dx){return[0,v,[26,Dx]]};return cx(a(n[1][1+F],n),v,c4,s,s4);case 27:var o4=c[1],v4=function(Dx){return[0,v,[27,Dx]]};return cx(a(n[1][1+ax],n),v,o4,s,v4);case 28:var a4=c[1],l4=function(Dx){return[0,v,[28,Dx]]};return cx(a(n[1][1+$0],n),v,a4,s,l4);case 29:var p4=c[1],d4=function(Dx){return[0,v,[29,Dx]]};return cx(a(n[1][1+g0],n),v,p4,s,d4);case 30:var y4=c[1],m4=function(Dx){return[0,v,[30,Dx]]};return cx(a(n[1][1+X0],n),v,y4,s,m4);case 31:var k4=c[1],h4=function(Dx){return[0,v,[31,Dx]]};return cx(a(n[1][1+j],n),v,k4,s,h4);case 32:var _4=c[1],w4=function(Dx){return[0,v,[32,Dx]]};return cx(a(n[1][1+c0],n),v,_4,s,w4);case 33:var T4=c[1],S4=function(Dx){return[0,v,[33,Dx]]};return cx(a(n[1][1+g],n),v,T4,s,S4);case 34:var E4=c[1],g4=function(Dx){return[0,v,[34,Dx]]};return cx(a(n[1][1+k],n),v,E4,s,g4);default:var A4=c[1],Mx=function(Dx){return[0,v,[35,Dx]]};return cx(a(n[1][1+e],n),v,A4,s,Mx)}}function yN0(n,s){var c=s[2],v=s[1],y=s[3],S=Er(a(n[1][1+oo],n),v),E=Er(a(n[1][1+oo],n),c);return v===S&&c===E?s:[0,S,E,y]}function mN0(n){var s=a(n[1][1+ix],n);return function(c){return Kx(s,c)}}function kN0(n,s){return s}function hN0(n,s){var c=s[2],v=s[1];switch(c[0]){case 0:var y=c[1],S=function(Cx){return[0,v,[0,Cx]]};return cx(a(n[1][1+gt],n),v,y,s,S);case 1:var E=c[1],R=function(Cx){return[0,v,[1,Cx]]};return cx(a(n[1][1+ys],n),v,E,s,R);case 2:var Z=c[1],y0=function(Cx){return[0,v,[2,Cx]]};return cx(a(n[1][1+E3],n),v,Z,s,y0);case 3:var _0=c[1],Q0=function(Cx){return[0,v,[3,Cx]]};return cx(a(n[1][1+Ho],n),v,_0,s,Q0);case 4:var vx=c[1],Ix=function(Cx){return[0,v,[4,Cx]]};return cx(a(n[1][1+bt],n),v,vx,s,Ix);case 5:var yx=c[1],_r=function(Cx){return[0,v,[5,Cx]]};return cx(a(n[1][1+St],n),v,yx,s,_r);case 6:var f1=c[1],c1=function(Cx){return[0,v,[6,Cx]]};return cx(a(n[1][1+ie],n),v,f1,s,c1);case 7:var p1=c[1],d1=function(Cx){return[0,v,[7,Cx]]};return cx(a(n[1][1+Ht],n),v,p1,s,d1);case 8:var Ge=c[1],qe=function(Cx){return[0,v,[8,Cx]]};return cx(a(n[1][1+Tt],n),v,Ge,s,qe);case 9:var He=c[1],Ce=function(Cx){return[0,v,[9,Cx]]};return cx(a(n[1][1+wt],n),v,He,s,Ce);case 10:var be=c[1],xt=function(Cx){return[0,v,[10,Cx]]};return cx(a(n[1][1+qt],n),v,be,s,xt);case 11:var Pt=c[1],rt=function(Cx){return[0,v,[11,Cx]]};return cx(a(n[1][1+R2],n),v,Pt,s,rt);case 12:var et=c[1],Jn=function(Cx){return[0,v,[12,Cx]]};return cx(a(n[1][1+ue],n),v,et,s,Jn);case 13:var Xn=c[1],ks=function(Cx){return[0,v,[13,Cx]]};return cx(a(n[1][1+Fe],n),v,Xn,s,ks);case 14:var hs=c[1],tt=function(Cx){return[0,v,[14,Cx]]};return cx(a(n[1][1+_t],n),v,hs,s,tt);case 15:var _s=c[1],uv=function(Cx){return[0,v,[15,Cx]]};return cx(a(n[1][1+br],n),v,_s,s,uv);case 16:var z6=c[1],K6=function(Cx){return[0,v,[16,Cx]]};return cx(a(n[1][1+Pe],n),v,z6,s,K6);case 17:var B6=c[1],W6=function(Cx){return[0,v,[17,Cx]]};return cx(a(n[1][1+Ae],n),v,B6,s,W6);case 18:var Z6=c[1],$6=function(Cx){return[0,v,[18,Cx]]};return cx(a(n[1][1+ge],n),v,Z6,s,$6);case 19:var F6=c[1],Q6=function(Cx){return[0,v,[19,Cx]]};return cx(a(n[1][1+O2],n),v,F6,s,Q6);case 20:var G6=c[1],q6=function(Cx){return[0,v,[20,Cx]]};return cx(a(n[1][1+_e],n),v,G6,s,q6);case 21:var H6=c[1],b6=function(Cx){return[0,v,[21,Cx]]};return cx(a(n[1][1+zr],n),v,H6,s,b6);case 22:var x4=c[1],r4=function(Cx){return[0,v,[22,Cx]]};return cx(a(n[1][1+W2],n),v,x4,s,r4);case 23:var e4=c[1],t4=function(Cx){return[0,v,[23,Cx]]};return cx(a(n[1][1+Qr],n),v,e4,s,t4);case 24:var n4=c[1],u4=function(Cx){return[0,v,[24,Cx]]};return cx(a(n[1][1+M1],n),v,n4,s,u4);case 25:var i4=c[1],f4=function(Cx){return[0,v,[25,Cx]]};return cx(a(n[1][1+a1],n),v,i4,s,f4);case 26:var c4=c[1],s4=function(Cx){return[0,v,[26,Cx]]};return cx(a(n[1][1+Nr],n),v,c4,s,s4);case 27:var o4=c[1],v4=function(Cx){return[0,v,[27,Cx]]};return cx(a(n[1][1+Um],n),v,o4,s,v4);case 28:var a4=c[1],l4=function(Cx){return[0,v,[28,Cx]]};return cx(a(n[1][1+ea],n),v,a4,s,l4);case 29:var p4=c[1],d4=function(Cx){return[0,v,[29,Cx]]};return cx(a(n[1][1+ra],n),v,p4,s,d4);case 30:var y4=c[1],m4=function(Cx){return[0,v,[30,Cx]]};return cx(a(n[1][1+yr],n),v,y4,s,m4);case 31:var k4=c[1],h4=function(Cx){return[0,v,[31,Cx]]};return cx(a(n[1][1+H],n),v,k4,s,h4);case 32:var _4=c[1],w4=function(Cx){return[0,v,[32,Cx]]};return cx(a(n[1][1+dx],n),v,_4,s,w4);case 33:var T4=c[1],S4=function(Cx){return[0,v,[33,Cx]]};return cx(a(n[1][1+L0],n),v,T4,s,S4);case 34:var E4=c[1],g4=function(Cx){return[0,v,[34,Cx]]};return cx(a(n[1][1+d0],n),v,E4,s,g4);case 35:var A4=c[1],Mx=function(Cx){return[0,v,[35,Cx]]};return cx(a(n[1][1+x0],n),v,A4,s,Mx);case 36:var Dx=c[1],_N0=function(Cx){return[0,v,[36,Cx]]};return cx(a(n[1][1+br],n),v,Dx,s,_N0);case 37:var wN0=c[1],TN0=function(Cx){return[0,v,[37,Cx]]};return cx(a(n[1][1+d],n),v,wN0,s,TN0);case 38:var SN0=c[1],EN0=function(Cx){return[0,v,[38,Cx]]};return cx(a(n[1][1+u],n),v,SN0,s,EN0);default:var gN0=c[1],AN0=function(Cx){return[0,v,[39,Cx]]};return cx(a(n[1][1+t],n),v,gN0,s,AN0)}}return LO(x,[0,Xm,function(n,s){var c=s[2],v=c[4],y=c[3],S=c[1],E=c[2],R=s[1],Z=p(n[1][1+E0],n,S),y0=p(n[1][1+n0],n,y),_0=Er(a(n[1][1+oo],n),v);return S===Z&&y===y0&&v===_0?s:[0,R,[0,Z,E,y0,_0]]},A0,hN0,oo,kN0,n0,mN0,ix,yN0,gx,dN0,C3,pN0,nv,lN0,P3,aN0,tv,vN0,At,oN0,gt,sN0,ys,cN0,fa,fN0,ca,iN0,lx,uN0,rv,nN0,A3,tN0,xv,eN0,vo,rN0,E3,xN0,T3,bP0,ia,HP0,w3,qP0,Un,GP0,g3,QP0,Ne,FP0,S3,$P0,ua,ZP0,na,WP0,_3,BP0,ta,KP0,bo,zP0,h3,VP0,W1,YP0,Ho,XP0,ps,JP0,tn,jP0,ls,UP0,as,DP0,Et,MP0,qo,LP0,k3,RP0,xn,OP0,bt,IP0,St,CP0,ie,NP0,Ht,PP0,Dn,AP0,Mn,gP0,en,EP0,rn,SP0,Tt,TP0,wt,wP0,vs,_P0,qt,hP0,R2,kP0,ue,mP0,Fe,yP0,_t,dP0,Pe,pP0,Ae,lP0,ge,aP0,O2,vP0,Te,oP0,$e,sP0,I2,cP0,C2,fP0,we,iP0,Ee,uP0,kt,nP0,ht,tP0,n2,eP0,Gt,rP0,Se,xP0,a2,bA0,_e,HA0,B1,qA0,zr,GA0,lr,QA0,Z2,FA0,r1,$A0,Xr,ZA0,W2,WA0,ne,BA0,M1,KA0,Cr,zA0,t2,VA0,a1,YA0,x1,XA0,l1,JA0,Qr,jA0,Mr,UA0,_1,DA0,Hx,MA0,Ex,LA0,T0,RA0,I,OA0,U,IA0,Qt,CA0,b,NA0,h1,PA0,e2,AA0,r0,gA0,_,EA0,$x,SA0,tr,TA0,xr,wA0,G,_A0,R1,hA0,Ir,kA0,Go,mA0,q,yA0,m3,dA0,to,pA0,f,lA0,i,aA0,K,vA0,M,oA0,V,sA0,mt,cA0,p3,fA0,Ur,iA0,Sx,uA0,Or,nA0,nn,tA0,ao,eA0,B2,rA0,a0,xA0,me,bg0,Wx,Hg0,fe,qg0,Lm,Gg0,A,Qg0,L,Fg0,O,$g0,C,Zg0,N,Wg0,In,Bg0,m0,Kg0,f0,zg0,o0,Vg0,v0,Yg0,s0,Xg0,N3,Jg0,h,jg0,Qo,Ug0,$,Dg0,Q,Mg0,J,Lg0,Nr,Rg0,sr,Og0,cr,Ig0,Wr,Cg0,jx,Ng0,R0,Pg0,or,Ag0,tx,gg0,Fr,Eg0,Br,Sg0,ev,Tg0,hr,wg0,L1,_g0,Y,hg0,z,kg0,Qe,mg0,l3,yg0,ra,dg0,P0,pg0,Ln,lg0,y3,ag0,jm,vg0,Jm,og0,Um,sg0,ea,cg0,O6,fg0,I6,ig0,B,ug0,Mm,ng0,Dm,tg0,d3,eg0,ss,rg0,Bo,xg0,pt,bE0,Zo,HE0,Ko,qE0,he,GE0,os,QE0,xa,FE0,Fo,$E0,so,ZE0,bv,WE0,Rn,BE0,$o,KE0,co,zE0,a3,VE0,io,YE0,qv,XE0,yt,JE0,fo,jE0,Hv,UE0,Wo,DE0,no,ME0,On,LE0,v2,EM,uo,e9,dt,r9,yr,V6,Ft,SM,te,x9,Sr,TM,ke,wM,Nn,bm,Cn,L3,cs,R3,Pn,Y6,lt,X6,zx,_M,S0,hM,Lx,kM,h0,J6,z0,mM,Zx,yM,M0,dM,ux,j6,br,pM,mr,lM,o,aM,ds,vM,g1,oM,i1,O3,ms,sM,un,Hm,V0,cM,mx,fM,K0,iM,Nx,U6,Gx,uM,U0,qm,ex,nM,T,tM,b0,eM,B0,D6,sx,rM,X,M6,F0,Gm,ox,xM,_x,Qm,j0,L6,nr,Fm,W0,bL,Jx,$m,bx,HL,J0,R6,Bx,qL,O0,GL,D,QL,t0,Zm,i0,Wm,Ux,sa,H,FL,F,Bm,E0,Km,D0,$L,N0,ZL,C0,WL,Y0,zm,ax,I3,dx,BL,rx,KL,$0,zL,g0,VL,xx,YL,X0,XL,L0,JL,d0,jL,j,UL,c0,DL,g,ML,k,LL,d,RL,l,OL,u,IL,t,Vm,x0,Ym,e,jn]),function(n,s){return iy(s,x)}}),XO=function x(r,e,t){return x.fun(r,e,t)};I0(XO,function(x,r,e){var t=e[2];switch(t[0]){case 0:var u=t[1][1];return H1(function(f){return function(o){var l=o[0]===0?o[1][2][2]:o[1][2][1];return H0(XO,x,f,l)}},r,u);case 1:var i=t[1][1];return H1(function(f){return function(o){return o[0]===2?f:H0(XO,x,f,o[1][2][1])}},r,i);case 2:return p(x,r,t[1][1]);default:return r}});var YO=function x(r){return x.fun(r)},ZT0=function(x){var r=x[0]===0?x[1][2][2]:x[1][2][1];return a(YO,r)},$T0=function(x){return x[0]===2?0:a(YO,x[1][2][1])};I0(YO,function(x){var r=x[2];switch(r[0]){case 0:return eO(ZT0,r[1][1]);case 1:return eO($T0,r[1][1]);case 2:return 1;default:return 0}});var Sn=function(x,r){return[0,r[1],[0,r[2],x]]},lV=function(x,r,e){var t=x?x[1]:0,u=r?r[1]:0;return[0,t,u,e]},k0=function(x,r,e){var t=x?x[1]:0,u=r?r[1]:0;return!t&&!u?0:[0,lV([0,t],[0,u],0)]},j1=function(x,r,e,t){var u=x?x[1]:0,i=r?r[1]:0;return!u&&!i&&!e?0:[0,lV([0,u],[0,i],e)]},N2=function(x,r){if(x){if(r){var e=r[1],t=x[1],u=[0,Qx(t[2],e[2])];return k0([0,Qx(e[1],t[1])],u,0)}var i=x}else var i=r;return i},VO=function(x,r){if(!r)return x;if(x){var e=r[1],t=x[1],u=e[1],i=t[3],f=t[1],o=[0,Qx(t[2],e[2])];return j1([0,Qx(u,f)],o,i,0)}var l=r[1];return j1([0,l[1]],[0,l[2]],0,0)},pV=function(x,r){a(Jr(x),yq),p(Jr(x),kq,mq);var e=r[1];a(a(Jr(x),hq),e),a(Jr(x),_q),a(Jr(x),wq),p(Jr(x),Sq,Tq);var t=r[2];return a(a(Jr(x),Eq),t),a(Jr(x),gq),a(Jr(x),Aq)},dV=function x(r,e){return x.fun(r,e)},FT0=function x(r){return x.fun(r)};I0(dV,function(x,r){a(Jr(x),Oq),p(Jr(x),Lq,Rq);var e=r[1];if(e){var t=e[1];switch(ny(x,Nq),t[0]){case 0:var u=t[1];a(Jr(x),iG),a(a(Jr(x),fG),u),a(Jr(x),cG);break;case 1:var i=t[1];a(Jr(x),sG),a(a(Jr(x),oG),i),a(Jr(x),vG);break;case 2:var f=t[1];a(Jr(x),aG),a(a(Jr(x),lG),f),a(Jr(x),pG);break;default:var o=t[1];a(Jr(x),dG),a(a(Jr(x),yG),o),a(Jr(x),mG)}ny(x,Cq)}else ny(x,Iq);return a(Jr(x),Mq),a(Jr(x),Dq),p(Jr(x),jq,Uq),pV(x,r[2]),a(Jr(x),Jq),a(Jr(x),Xq),p(Jr(x),Vq,Yq),pV(x,r[3]),a(Jr(x),zq),a(Jr(x),Kq)}),I0(FT0,function(x){var r=Pq[1],e=OY(0),t=EO(e);return p(jr(function(u){Be(t,u),TO(t,0);var i=U1(e);return e[2]=0,e[1]=e[4],e[3]=ct(e[1]),i},0,r),dV,x)});var u1=function(x,r){return[0,x[1],x[2],r[3]]},Fs=function(x,r){var e=x[1]-r[1]|0;return e===0?x[2]-r[2]|0:e},yV=function(x,r){var e=r[1],t=x[1];if(t){var u=t[1];if(e)var i=e[1],f=vV(i),o=vV(u)-f|0,l=o===0?Tx(u[1],i[1]):o;else var l=-1}else var l=e?1:0;if(l!==0)return l;var d=Fs(x[2],r[2]);return d===0?Fs(x[3],r[3]):d},No=function(x,r){return yV(x,r)===0?1:0},mV=function x(r,e){return x.fun(r,e)};I0(mV,function(x,r){if(typeof x=="number"){var e=x;if(59<=e)switch(e){case 59:if(typeof r=="number"&&r===59)return 0;break;case 60:if(typeof r=="number"&&r===60)return 0;break;case 61:if(typeof r=="number"&&r===61)return 0;break;case 62:if(typeof r=="number"&&r===62)return 0;break;case 63:if(typeof r=="number"&&r===63)return 0;break;case 64:if(typeof r=="number"&&r===64)return 0;break;case 65:if(typeof r=="number"&&r===65)return 0;break;case 66:if(typeof r=="number"&&r===66)return 0;break;case 67:if(typeof r=="number"&&r===67)return 0;break;case 68:if(typeof r=="number"&&r===68)return 0;break;case 69:if(typeof r=="number"&&r===69)return 0;break;case 70:if(typeof r=="number"&&r===70)return 0;break;case 71:if(typeof r=="number"&&r===71)return 0;break;case 72:if(typeof r=="number"&&r===72)return 0;break;case 73:if(typeof r=="number"&&r===73)return 0;break;case 74:if(typeof r=="number"&&r===74)return 0;break;case 75:if(typeof r=="number"&&r===75)return 0;break;case 76:if(typeof r=="number"&&r===76)return 0;break;case 77:if(typeof r=="number"&&r===77)return 0;break;case 78:if(typeof r=="number"&&r===78)return 0;break;case 79:if(typeof r=="number"&&r===79)return 0;break;case 80:if(typeof r=="number"&&r===80)return 0;break;case 81:if(typeof r=="number"&&r===81)return 0;break;case 82:if(typeof r=="number"&&r===82)return 0;break;case 83:if(typeof r=="number"&&r===83)return 0;break;case 84:if(typeof r=="number"&&r===84)return 0;break;case 85:if(typeof r=="number"&&r===85)return 0;break;case 86:if(typeof r=="number"&&r===86)return 0;break;case 87:if(typeof r=="number"&&r===87)return 0;break;case 88:if(typeof r=="number"&&r===88)return 0;break;case 89:if(typeof r=="number"&&r===89)return 0;break;case 90:if(typeof r=="number"&&r===90)return 0;break;case 91:if(typeof r=="number"&&r===91)return 0;break;case 92:if(typeof r=="number"&&r===92)return 0;break;case 93:if(typeof r=="number"&&r===93)return 0;break;case 94:if(typeof r=="number"&&r===94)return 0;break;case 95:if(typeof r=="number"&&r===95)return 0;break;case 96:if(typeof r=="number"&&r===96)return 0;break;case 97:if(typeof r=="number"&&r===97)return 0;break;case 98:if(typeof r=="number"&&r===98)return 0;break;case 99:if(typeof r=="number"&&r===99)return 0;break;case 100:if(typeof r=="number"&&it===r)return 0;break;case 101:if(typeof r=="number"&&It===r)return 0;break;case 102:if(typeof r=="number"&&Jf===r)return 0;break;case 103:if(typeof r=="number"&&fn===r)return 0;break;case 104:if(typeof r=="number"&&Dt===r)return 0;break;case 105:if(typeof r=="number"&&De===r)return 0;break;case 106:if(typeof r=="number"&&l2===r)return 0;break;case 107:if(typeof r=="number"&&G2===r)return 0;break;case 108:if(typeof r=="number"&&vn===r)return 0;break;case 109:if(typeof r=="number"&&Is===r)return 0;break;case 110:if(typeof r=="number"&&V1===r)return 0;break;case 111:if(typeof r=="number"&&Ot===r)return 0;break;case 112:if(typeof r=="number"&&L2===r)return 0;break;case 113:if(typeof r=="number"&&Rr===r)return 0;break;case 114:if(typeof r=="number"&&ut===r)return 0;break;case 115:if(typeof r=="number"&&Os===r)return 0;break;case 116:if(typeof r=="number"&&Ns===r)return 0;break;default:if(typeof r=="number"&&po<=r)return 0}else switch(e){case 0:if(typeof r=="number"&&!r)return 0;break;case 1:if(typeof r=="number"&&r===1)return 0;break;case 2:if(typeof r=="number"&&r===2)return 0;break;case 3:if(typeof r=="number"&&r===3)return 0;break;case 4:if(typeof r=="number"&&r===4)return 0;break;case 5:if(typeof r=="number"&&r===5)return 0;break;case 6:if(typeof r=="number"&&r===6)return 0;break;case 7:if(typeof r=="number"&&r===7)return 0;break;case 8:if(typeof r=="number"&&r===8)return 0;break;case 9:if(typeof r=="number"&&r===9)return 0;break;case 10:if(typeof r=="number"&&r===10)return 0;break;case 11:if(typeof r=="number"&&r===11)return 0;break;case 12:if(typeof r=="number"&&r===12)return 0;break;case 13:if(typeof r=="number"&&r===13)return 0;break;case 14:if(typeof r=="number"&&r===14)return 0;break;case 15:if(typeof r=="number"&&r===15)return 0;break;case 16:if(typeof r=="number"&&r===16)return 0;break;case 17:if(typeof r=="number"&&r===17)return 0;break;case 18:if(typeof r=="number"&&r===18)return 0;break;case 19:if(typeof r=="number"&&r===19)return 0;break;case 20:if(typeof r=="number"&&r===20)return 0;break;case 21:if(typeof r=="number"&&r===21)return 0;break;case 22:if(typeof r=="number"&&r===22)return 0;break;case 23:if(typeof r=="number"&&r===23)return 0;break;case 24:if(typeof r=="number"&&r===24)return 0;break;case 25:if(typeof r=="number"&&r===25)return 0;break;case 26:if(typeof r=="number"&&r===26)return 0;break;case 27:if(typeof r=="number"&&r===27)return 0;break;case 28:if(typeof r=="number"&&r===28)return 0;break;case 29:if(typeof r=="number"&&r===29)return 0;break;case 30:if(typeof r=="number"&&r===30)return 0;break;case 31:if(typeof r=="number"&&r===31)return 0;break;case 32:if(typeof r=="number"&&r===32)return 0;break;case 33:if(typeof r=="number"&&r===33)return 0;break;case 34:if(typeof r=="number"&&r===34)return 0;break;case 35:if(typeof r=="number"&&r===35)return 0;break;case 36:if(typeof r=="number"&&r===36)return 0;break;case 37:if(typeof r=="number"&&r===37)return 0;break;case 38:if(typeof r=="number"&&r===38)return 0;break;case 39:if(typeof r=="number"&&r===39)return 0;break;case 40:if(typeof r=="number"&&r===40)return 0;break;case 41:if(typeof r=="number"&&r===41)return 0;break;case 42:if(typeof r=="number"&&r===42)return 0;break;case 43:if(typeof r=="number"&&r===43)return 0;break;case 44:if(typeof r=="number"&&r===44)return 0;break;case 45:if(typeof r=="number"&&r===45)return 0;break;case 46:if(typeof r=="number"&&r===46)return 0;break;case 47:if(typeof r=="number"&&r===47)return 0;break;case 48:if(typeof r=="number"&&r===48)return 0;break;case 49:if(typeof r=="number"&&r===49)return 0;break;case 50:if(typeof r=="number"&&r===50)return 0;break;case 51:if(typeof r=="number"&&r===51)return 0;break;case 52:if(typeof r=="number"&&r===52)return 0;break;case 53:if(typeof r=="number"&&r===53)return 0;break;case 54:if(typeof r=="number"&&r===54)return 0;break;case 55:if(typeof r=="number"&&r===55)return 0;break;case 56:if(typeof r=="number"&&r===56)return 0;break;case 57:if(typeof r=="number"&&r===57)return 0;break;default:if(typeof r=="number"&&r===58)return 0}}else switch(x[0]){case 0:if(typeof r!="number"&&r[0]===0)return Tx(x[1],r[1]);break;case 1:if(typeof r!="number"&&r[0]===1)return Tx(x[1],r[1]);break;case 2:if(typeof r!="number"&&r[0]===2){var t=Tx(x[1],r[1]),u=r[2],i=x[2];return t===0?Tx(i,u):t}break;case 3:if(typeof r!="number"&&r[0]===3){var f=Tx(x[1],r[1]),o=r[2],l=x[2];return f===0?Tx(l,o):f}break;case 4:if(typeof r!="number"&&r[0]===4){var d=Tx(x[1],r[1]),k=r[2],h=x[2];return d===0?Tx(h,k):d}break;case 5:if(typeof r!="number"&&r[0]===5)return Tx(x[1],r[1]);break;case 6:if(typeof r!="number"&&r[0]===6)return jt(x[1],r[1]);break;case 7:if(typeof r!="number"&&r[0]===7){var g=r[2],A=x[2],N=Tx(x[1],r[1]);if(N!==0)return N;if(!A)return g?-1:0;var C=A[1];return g?Tx(C,g[1]):1}break;case 8:if(typeof r!="number"&&r[0]===8)return Tx(x[1],r[1]);break;case 9:if(typeof r!="number"&&r[0]===9){var O=r[2],L=x[2],M=Tx(x[1],r[1]),V=r[3],z=x[3];if(M!==0)return M;if(L){var Y=L[1];if(O){var t0=O[1],i0=0;switch(Y){case 0:if(t0)i0=1;else var J=0;break;case 1:if(t0===1)var J=0;else i0=1;break;case 2:if(t0===2)var J=0;else i0=1;break;case 3:if(t0===3)var J=0;else i0=1;break;default:if(4<=t0)var J=0;else i0=1}if(i0)var j=function(ox){switch(ox){case 0:return 0;case 1:return 1;case 2:return 2;case 3:return 3;default:return 4}},K=j(t0),J=jt(j(Y),K);var Q=J}else var Q=1}else var Q=O?-1:0;return Q===0?Tx(z,V):Q}break;case 10:if(typeof r!="number"&&r[0]===10){var x0=Tx(x[1],r[1]),$=r[2],f0=x[2];return x0===0?Tx(f0,$):x0}break;case 11:if(typeof r!="number"&&r[0]===11){var s0=Tx(x[1],r[1]),v0=r[2],o0=x[2];return s0===0?Tx(o0,v0):s0}break;case 12:if(typeof r!="number"&&r[0]===12)return Tx(x[1],r[1]);break;case 13:if(typeof r!="number"&&r[0]===13)return Tx(x[1],r[1]);break;case 14:if(typeof r!="number"&&r[0]===14)return jt(x[1],r[1]);break;case 15:if(typeof r!="number"&&r[0]===15){var c0=Tx(x[1],r[1]),d0=r[4],E0=r[3],L0=r[2],X0=x[4],xx=x[3],g0=x[2];if(c0!==0)return c0;var $0=jt(g0,L0);if($0!==0)return $0;var n0=jt(xx,E0);return n0===0?jt(X0,d0):n0}break;case 16:if(typeof r!="number"&&r[0]===16){var ix=jt(x[1],r[1]),rx=r[2],dx=x[2];return ix===0?Tx(dx,rx):ix}break;case 17:if(typeof r!="number"&&r[0]===17)return jt(x[1],r[1]);break;case 18:if(typeof r!="number"&&r[0]===18)return Tx(x[1],r[1]);break;case 19:if(typeof r!="number"&&r[0]===19)return Tx(x[1],r[1]);break;case 20:if(typeof r!="number"&&r[0]===20)return Tx(x[1],r[1]);break;case 21:if(typeof r!="number"&&r[0]===21){var ax=Tx(x[1],r[1]),Sx=r[2],D0=x[2];return ax===0?Tx(D0,Sx):ax}break;case 22:if(typeof r!="number"&&r[0]===22){var N0=r[1],A0=x[1];if(ol===A0){if(ol===N0)return 0}else if(rl<=A0){if(rl===N0)return 0}else if(FJ===N0)return 0;var Y0=function(K0){return ol===K0?0:rl<=K0?2:1},C0=Y0(N0);return jt(Y0(A0),C0)}break;case 23:if(typeof r!="number"&&r[0]===23)return Tx(x[1],r[1]);break;case 24:if(typeof r!="number"&&r[0]===24)return Tx(x[1],r[1]);break;case 25:if(typeof r!="number"&&r[0]===25){var F=Tx(x[1],r[1]),H=r[2],B=x[2];return F===0?Tx(B,H):F}break;case 26:if(typeof r!="number"&&r[0]===26){var a0=Tx(x[1],r[1]),m0=r[2],P0=x[2];return a0===0?Tx(P0,m0):a0}break;default:if(typeof r!="number"&&r[0]===27)return Tx(x[1],r[1])}function D(K0){if(typeof K0!="number")switch(K0[0]){case 0:return 20;case 1:return 21;case 2:return 23;case 3:return 24;case 4:return 25;case 5:return 26;case 6:return 27;case 7:return 28;case 8:return 30;case 9:return 31;case 10:return 32;case 11:return 34;case 12:return 35;case 13:return 37;case 14:return 40;case 15:return 52;case 16:return 55;case 17:return 57;case 18:return 66;case 19:return 75;case 20:return 84;case 21:return 91;case 22:return Ot;case 23:return xl;case 24:return Af;case 25:return ah;case 26:return kU;default:return cJ}var j0=K0;if(59<=j0)switch(j0){case 59:return 79;case 60:return 80;case 61:return 81;case 62:return 82;case 63:return 83;case 64:return 85;case 65:return 86;case 66:return 87;case 67:return 88;case 68:return 89;case 69:return 90;case 70:return 92;case 71:return 93;case 72:return 94;case 73:return 95;case 74:return 96;case 75:return 97;case 76:return 98;case 77:return 99;case 78:return it;case 79:return It;case 80:return Jf;case 81:return fn;case 82:return Dt;case 83:return De;case 84:return l2;case 85:return G2;case 86:return vn;case 87:return Is;case 88:return V1;case 89:return L2;case 90:return Rr;case 91:return ut;case 92:return Os;case 93:return Ns;case 94:return po;case 95:return pa;case 96:return H3;case 97:return Hr;case 98:return Rt;case 99:return Oa;case 100:return Ci;case 101:return L4;case 102:return Yr;case 103:return m1;case 104:return dl;case 105:return oJ;case 106:return mJ;case 107:return FM;case 108:return gj;case 109:return nX;case 110:return UU;case 111:return m_;case 112:return HD;case 113:return BU;case 114:return uU;case 115:return Ij;case 116:return hJ;default:return WD}switch(j0){case 0:return 0;case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7;case 8:return 8;case 9:return 9;case 10:return 10;case 11:return 11;case 12:return 12;case 13:return 13;case 14:return 14;case 15:return 15;case 16:return 16;case 17:return 17;case 18:return 18;case 19:return 19;case 20:return 22;case 21:return 29;case 22:return 33;case 23:return 36;case 24:return 38;case 25:return 39;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 53;case 38:return 54;case 39:return 56;case 40:return 58;case 41:return 59;case 42:return 60;case 43:return 61;case 44:return 62;case 45:return 63;case 46:return 64;case 47:return 65;case 48:return 67;case 49:return 68;case 50:return 69;case 51:return 70;case 52:return 71;case 53:return 72;case 54:return 73;case 55:return 74;case 56:return 76;case 57:return 77;default:return 78}}var O0=D(r);return jt(D(x),O0)});var QT0=[Gr,xx0,Js(0)],GT0=function(x){if(typeof x=="number"){var r=x;if(59<=r)switch(r){case 59:return HH;case 60:return bH;case 61:return xb;case 62:return rb;case 63:return eb;case 64:return tb;case 65:return nb;case 66:return ub;case 67:return ib;case 68:return fb;case 69:return cb;case 70:return sb;case 71:return ob;case 72:return vb;case 73:return ab;case 74:return lb;case 75:return pb;case 76:return db;case 77:return yb;case 78:return mb;case 79:return kb;case 80:return hb;case 81:return _b;case 82:return wb;case 83:return Tb;case 84:return Sb;case 85:return Eb;case 86:return gb;case 87:return Ab;case 88:return Pb;case 89:return Nb;case 90:return Cb;case 91:return Ib;case 92:return Ob;case 93:return Rb;case 94:return Lb;case 95:return Mb;case 96:return Db;case 97:return Ub;case 98:return jb;case 99:return Jb;case 100:return Xb;case 101:return Yb;case 102:return Vb;case 103:return zb;case 104:return Kb;case 105:return Bb;case 106:return Wb;case 107:return Zb;case 108:return $b;case 109:return Fb;case 110:return Qb;case 111:return Gb;case 112:return qb;case 113:return Hb;case 114:return bb;case 115:return x00;case 116:return r00;default:return e00}switch(r){case 0:return Bq;case 1:return Wq;case 2:return Zq;case 3:return Fx(Fq,$q);case 4:return Qq;case 5:return Gq;case 6:return qq;case 7:return Hq;case 8:return bq;case 9:return xH;case 10:return rH;case 11:return eH;case 12:return Fx(nH,tH);case 13:return uH;case 14:return iH;case 15:return fH;case 16:return cH;case 17:return sH;case 18:return oH;case 19:return vH;case 20:return aH;case 21:return lH;case 22:return pH;case 23:return dH;case 24:return yH;case 25:return mH;case 26:return kH;case 27:return hH;case 28:return _H;case 29:return wH;case 30:return TH;case 31:return SH;case 32:return EH;case 33:return gH;case 34:return Fx(PH,AH);case 35:return NH;case 36:return CH;case 37:return IH;case 38:return OH;case 39:return RH;case 40:return LH;case 41:return MH;case 42:return DH;case 43:return UH;case 44:return jH;case 45:return JH;case 46:return XH;case 47:return YH;case 48:return VH;case 49:return zH;case 50:return KH;case 51:return BH;case 52:return WH;case 53:return ZH;case 54:return $H;case 55:return FH;case 56:return QH;case 57:return GH;default:return qH}}switch(x[0]){case 0:var e=x[1];return a(Tr(t00),e);case 1:var t=x[1];return a(Tr(n00),t);case 2:var u=x[2],i=x[1];return p(Tr(u00),u,i);case 3:var f=x[2],o=x[1];return H0(Tr(i00),f,f,o);case 4:var l=x[2],d=x[1];return p(Tr(f00),l,d);case 5:var k=x[1];return a(Tr(c00),k);case 6:return x[1]?s00:o00;case 7:var h=x[2],g=x[1],A=a(Tr(v00),g);if(!h)return a(Tr(l00),A);var N=h[1];return p(Tr(a00),N,A);case 8:var C=x[1];return p(Tr(p00),C,C);case 9:var O=x[3],L=x[2],M=x[1];if(!L)return p(Tr(m00),O,M);var V=L[1];if(V===3)return p(Tr(y00),O,M);switch(V){case 0:var z=rG;break;case 1:var z=eG;break;case 2:var z=tG;break;case 3:var z=nG;break;default:var z=uG}return ve(Tr(d00),M,z,O,z);case 10:var Y=x[2],t0=x[1],i0=rY(Y);return H0(Tr(k00),Y,i0,t0);case 11:var j=x[2],K=x[1];return p(Tr(h00),j,K);case 12:var J=x[1];return a(Tr(_00),J);case 13:var Q=x[1];return a(Tr(w00),Q);case 14:return x[1]?Fx(S00,T00):Fx(g00,E00);case 15:var x0=x[1],$=x[4],f0=x[3],s0=x[2]?A00:P00,v0=f0?N00:C00,o0=$?Fx(I00,x0):x0;return H0(Tr(O00),s0,v0,o0);case 16:var c0=x[2],d0=[0,0],E0=[0,Xx(c0)],L0=Xx(c0)-1|0,X0=x[1];if(L0>=0)for(var xx=L0;;){if(fx(c0,xx)===45){var g0=d0[1];d0[1]=[0,m2(c0,xx+1|0,(E0[1]-xx|0)-1|0),g0],E0[1]=xx}var $0=xx-1|0;if(xx!==0){var xx=$0;continue}break}var n0=d0[1],ix=m2(c0,0,E0[1]);if(n0)for(var rx=[0,ix,Tn(rY,n0)],dx=0,ax=rx,Sx=0;;){if(ax){var D0=ax[1];if(ax[2]){var N0=(Xx(D0)|0)+dx|0,A0=ax[2],Y0=dx<=N0?N0:y2(NZ),dx=Y0,ax=A0;continue}var C0=Xx(D0)+dx|0}else var C0=dx;for(var F=w1(C0),H=Sx,B=rx;;){if(B){var a0=B[1];if(B[2]){var m0=B[2];Fc(a0,0,F,H,Xx(a0)),Fc(kx,0,F,H+Xx(a0)|0,0);var H=H+Xx(a0)|0|0,B=m0;continue}Fc(a0,0,F,H,Xx(a0))}var P0=S2(F);break}break}else var P0=ix;var D=X0?R00:L00;return H0(Tr(M00),c0,P0,D);case 17:var O0=x[1]?D00:U00;return a(Tr(j00),O0);case 18:var K0=x[1];return a(Tr(J00),K0);case 19:var j0=x[1];return a(Tr(X00),j0);case 20:var ox=x[1];return a(Tr(Y00),ox);case 21:var b0=x[2],_x=x[1];return p(Tr(V00),_x,b0);case 22:var B0=x[1];if(ol===B0)var T=Z00,X=$00;else if(rl<=B0)var T=z00,X=K00;else var T=B00,X=W00;return p(Tr(F00),X,T);case 23:var F0=x[1];return a(Tr(Q00),F0);case 24:var sx=x[1];return a(Tr(G00),sx);case 25:var ex=x[2],U0=x[1];return p(Tr(q00),U0,ex);case 26:var Nx=x[2],mx=x[1];return p(Tr(H00),mx,Nx);default:var Bx=x[1];return a(Tr(b00),Bx)}},kV=rx0.slice(),zO=function(x){for(var r=0,e=kV.length-1-1|0;;){if(ex)return 1;var r=t+1|0}},hV=0,_V=function(x){var r=x[2];return[0,x[1],[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12]],x[3],x[4],x[5],x[6],x[7]]},wV=function(x){return x[3][1]},ay=function(x,r){return x!==r[4]?[0,r[1],r[2],r[3],x,r[5],r[6],r[7]]:r},KO=function x(r,e){return x.fun(r,e)},TV=function x(r,e){return x.fun(r,e)},BO=function x(r,e){return x.fun(r,e)},WO=function x(r,e){return x.fun(r,e)};I0(KO,function(x,r){if(typeof x=="number"){var e=x;if(65<=e)if(98<=e)switch(e){case 98:if(typeof r=="number"&&r===98)return 1;break;case 99:if(typeof r=="number"&&r===99)return 1;break;case 100:if(typeof r=="number"&&it===r)return 1;break;case 101:if(typeof r=="number"&&It===r)return 1;break;case 102:if(typeof r=="number"&&Jf===r)return 1;break;case 103:if(typeof r=="number"&&fn===r)return 1;break;case 104:if(typeof r=="number"&&Dt===r)return 1;break;case 105:if(typeof r=="number"&&De===r)return 1;break;case 106:if(typeof r=="number"&&l2===r)return 1;break;case 107:if(typeof r=="number"&&G2===r)return 1;break;case 108:if(typeof r=="number"&&vn===r)return 1;break;case 109:if(typeof r=="number"&&Is===r)return 1;break;case 110:if(typeof r=="number"&&V1===r)return 1;break;case 111:if(typeof r=="number"&&Ot===r)return 1;break;case 112:if(typeof r=="number"&&L2===r)return 1;break;case 113:if(typeof r=="number"&&Rr===r)return 1;break;case 114:if(typeof r=="number"&&ut===r)return 1;break;case 115:if(typeof r=="number"&&Os===r)return 1;break;case 116:if(typeof r=="number"&&Ns===r)return 1;break;case 117:if(typeof r=="number"&&po===r)return 1;break;case 118:if(typeof r=="number"&&pa===r)return 1;break;case 119:if(typeof r=="number"&&xl===r)return 1;break;case 120:if(typeof r=="number"&&Af===r)return 1;break;case 121:if(typeof r=="number"&&H3===r)return 1;break;case 122:if(typeof r=="number"&&Hr===r)return 1;break;case 123:if(typeof r=="number"&&Rt===r)return 1;break;case 124:if(typeof r=="number"&&Oa===r)return 1;break;case 125:if(typeof r=="number"&&Ci===r)return 1;break;case 126:if(typeof r=="number"&&L4===r)return 1;break;case 127:if(typeof r=="number"&&Yr===r)return 1;break;case 128:if(typeof r=="number"&&m1===r)return 1;break;default:if(typeof r=="number"&&dl<=r)return 1}else switch(e){case 65:if(typeof r=="number"&&r===65)return 1;break;case 66:if(typeof r=="number"&&r===66)return 1;break;case 67:if(typeof r=="number"&&r===67)return 1;break;case 68:if(typeof r=="number"&&r===68)return 1;break;case 69:if(typeof r=="number"&&r===69)return 1;break;case 70:if(typeof r=="number"&&r===70)return 1;break;case 71:if(typeof r=="number"&&r===71)return 1;break;case 72:if(typeof r=="number"&&r===72)return 1;break;case 73:if(typeof r=="number"&&r===73)return 1;break;case 74:if(typeof r=="number"&&r===74)return 1;break;case 75:if(typeof r=="number"&&r===75)return 1;break;case 76:if(typeof r=="number"&&r===76)return 1;break;case 77:if(typeof r=="number"&&r===77)return 1;break;case 78:if(typeof r=="number"&&r===78)return 1;break;case 79:if(typeof r=="number"&&r===79)return 1;break;case 80:if(typeof r=="number"&&r===80)return 1;break;case 81:if(typeof r=="number"&&r===81)return 1;break;case 82:if(typeof r=="number"&&r===82)return 1;break;case 83:if(typeof r=="number"&&r===83)return 1;break;case 84:if(typeof r=="number"&&r===84)return 1;break;case 85:if(typeof r=="number"&&r===85)return 1;break;case 86:if(typeof r=="number"&&r===86)return 1;break;case 87:if(typeof r=="number"&&r===87)return 1;break;case 88:if(typeof r=="number"&&r===88)return 1;break;case 89:if(typeof r=="number"&&r===89)return 1;break;case 90:if(typeof r=="number"&&r===90)return 1;break;case 91:if(typeof r=="number"&&r===91)return 1;break;case 92:if(typeof r=="number"&&r===92)return 1;break;case 93:if(typeof r=="number"&&r===93)return 1;break;case 94:if(typeof r=="number"&&r===94)return 1;break;case 95:if(typeof r=="number"&&r===95)return 1;break;case 96:if(typeof r=="number"&&r===96)return 1;break;default:if(typeof r=="number"&&r===97)return 1}else if(33<=e)switch(e){case 33:if(typeof r=="number"&&r===33)return 1;break;case 34:if(typeof r=="number"&&r===34)return 1;break;case 35:if(typeof r=="number"&&r===35)return 1;break;case 36:if(typeof r=="number"&&r===36)return 1;break;case 37:if(typeof r=="number"&&r===37)return 1;break;case 38:if(typeof r=="number"&&r===38)return 1;break;case 39:if(typeof r=="number"&&r===39)return 1;break;case 40:if(typeof r=="number"&&r===40)return 1;break;case 41:if(typeof r=="number"&&r===41)return 1;break;case 42:if(typeof r=="number"&&r===42)return 1;break;case 43:if(typeof r=="number"&&r===43)return 1;break;case 44:if(typeof r=="number"&&r===44)return 1;break;case 45:if(typeof r=="number"&&r===45)return 1;break;case 46:if(typeof r=="number"&&r===46)return 1;break;case 47:if(typeof r=="number"&&r===47)return 1;break;case 48:if(typeof r=="number"&&r===48)return 1;break;case 49:if(typeof r=="number"&&r===49)return 1;break;case 50:if(typeof r=="number"&&r===50)return 1;break;case 51:if(typeof r=="number"&&r===51)return 1;break;case 52:if(typeof r=="number"&&r===52)return 1;break;case 53:if(typeof r=="number"&&r===53)return 1;break;case 54:if(typeof r=="number"&&r===54)return 1;break;case 55:if(typeof r=="number"&&r===55)return 1;break;case 56:if(typeof r=="number"&&r===56)return 1;break;case 57:if(typeof r=="number"&&r===57)return 1;break;case 58:if(typeof r=="number"&&r===58)return 1;break;case 59:if(typeof r=="number"&&r===59)return 1;break;case 60:if(typeof r=="number"&&r===60)return 1;break;case 61:if(typeof r=="number"&&r===61)return 1;break;case 62:if(typeof r=="number"&&r===62)return 1;break;case 63:if(typeof r=="number"&&r===63)return 1;break;default:if(typeof r=="number"&&r===64)return 1}else switch(e){case 0:if(typeof r=="number"&&!r)return 1;break;case 1:if(typeof r=="number"&&r===1)return 1;break;case 2:if(typeof r=="number"&&r===2)return 1;break;case 3:if(typeof r=="number"&&r===3)return 1;break;case 4:if(typeof r=="number"&&r===4)return 1;break;case 5:if(typeof r=="number"&&r===5)return 1;break;case 6:if(typeof r=="number"&&r===6)return 1;break;case 7:if(typeof r=="number"&&r===7)return 1;break;case 8:if(typeof r=="number"&&r===8)return 1;break;case 9:if(typeof r=="number"&&r===9)return 1;break;case 10:if(typeof r=="number"&&r===10)return 1;break;case 11:if(typeof r=="number"&&r===11)return 1;break;case 12:if(typeof r=="number"&&r===12)return 1;break;case 13:if(typeof r=="number"&&r===13)return 1;break;case 14:if(typeof r=="number"&&r===14)return 1;break;case 15:if(typeof r=="number"&&r===15)return 1;break;case 16:if(typeof r=="number"&&r===16)return 1;break;case 17:if(typeof r=="number"&&r===17)return 1;break;case 18:if(typeof r=="number"&&r===18)return 1;break;case 19:if(typeof r=="number"&&r===19)return 1;break;case 20:if(typeof r=="number"&&r===20)return 1;break;case 21:if(typeof r=="number"&&r===21)return 1;break;case 22:if(typeof r=="number"&&r===22)return 1;break;case 23:if(typeof r=="number"&&r===23)return 1;break;case 24:if(typeof r=="number"&&r===24)return 1;break;case 25:if(typeof r=="number"&&r===25)return 1;break;case 26:if(typeof r=="number"&&r===26)return 1;break;case 27:if(typeof r=="number"&&r===27)return 1;break;case 28:if(typeof r=="number"&&r===28)return 1;break;case 29:if(typeof r=="number"&&r===29)return 1;break;case 30:if(typeof r=="number"&&r===30)return 1;break;case 31:if(typeof r=="number"&&r===31)return 1;break;default:if(typeof r=="number"&&r===32)return 1}}else switch(x[0]){case 0:if(typeof r!="number"&&r[0]===0){var t=r[2],u=r[1],i=x[2],f=a(a(BO,x[1]),u);return f&&Ar(i,t)}break;case 1:if(typeof r!="number"&&r[0]===1){var o=r[2],l=r[1],d=x[2],k=a(a(WO,x[1]),l);return k&&Ar(d,o)}break;case 2:if(typeof r!="number"&&r[0]===2){var h=r[1],g=x[1],A=h[4],N=h[3],C=h[2],O=g[4],L=g[3],M=g[2],V=No(g[1],h[1]),z=V&&Ar(M,C),Y=z&&Ar(L,N);return Y&&(O===A?1:0)}break;case 3:if(typeof r!="number"&&r[0]===3){var t0=r[1],i0=x[1],j=t0[5],K=t0[4],J=t0[3],Q=t0[2],x0=i0[5],$=i0[4],f0=i0[3],s0=i0[2],v0=No(i0[1],t0[1]),o0=v0&&Ar(s0,Q),c0=o0&&Ar(f0,J),d0=c0&&($===K?1:0);return d0&&(x0===j?1:0)}break;case 4:if(typeof r!="number"&&r[0]===4){var E0=r[3],L0=r[2],X0=x[3],xx=x[2],g0=No(x[1],r[1]),$0=g0&&Ar(xx,L0);return $0&&Ar(X0,E0)}break;case 5:if(typeof r!="number"&&r[0]===5){var n0=r[3],ix=r[2],rx=x[3],dx=x[2],ax=No(x[1],r[1]),Sx=ax&&Ar(dx,ix);return Sx&&Ar(rx,n0)}break;case 6:if(typeof r!="number"&&r[0]===6){var D0=r[2],N0=x[2],A0=No(x[1],r[1]);return A0&&Ar(N0,D0)}break;case 7:if(typeof r!="number"&&r[0]===7)return Ar(x[1],r[1]);break;case 8:if(typeof r!="number"&&r[0]===8){var Y0=Ar(x[1],r[1]),C0=r[2],F=x[2];return Y0&&No(F,C0)}break;case 9:if(typeof r!="number"&&r[0]===9){var H=r[3],B=r[2],a0=x[3],m0=x[2],P0=No(x[1],r[1]),D=P0&&Ar(m0,B);return D&&Ar(a0,H)}break;case 10:if(typeof r!="number"&&r[0]===10){var O0=r[3],K0=r[2],j0=x[3],ox=x[2],b0=No(x[1],r[1]),_x=b0&&Ar(ox,K0);return _x&&Ar(j0,O0)}break;case 11:if(typeof r!="number"&&r[0]===11){var B0=r[1];return a(a(TV,x[1]),B0)}break;case 12:if(typeof r!="number"&&r[0]===12){var T=r[3],X=r[2],F0=r[1],sx=x[3],ex=x[2],U0=a(a(BO,x[1]),F0),Nx=U0&&(ex==X?1:0);return Nx&&Ar(sx,T)}break;default:if(typeof r!="number"&&r[0]===13){var mx=r[2],Bx=x[2],Gx=r[3],J0=r[1],bx=x[3],Jx=a(a(WO,x[1]),J0);if(Jx){var W0=0;if(Bx)if(mx)var nr=Ud(Bx[1],mx[1]);else W0=1;else if(mx)W0=1;else var nr=1;if(W0)var nr=0;var V0=nr}else var V0=Jx;return V0&&Ar(bx,Gx)}}return 0}),I0(TV,function(x,r){if(x){if(r)return 1}else if(!r)return 1;return 0}),I0(BO,function(x,r){switch(x){case 0:if(!r)return 1;break;case 1:if(r===1)return 1;break;case 2:if(r===2)return 1;break;case 3:if(r===3)return 1;break;default:if(4<=r)return 1}return 0}),I0(WO,function(x,r){switch(x){case 0:if(!r)return 1;break;case 1:if(r===1)return 1;break;default:if(2<=r)return 1}return 0});var SV=function(x){if(typeof x!="number")switch(x[0]){case 0:return St0;case 1:return Et0;case 2:return gt0;case 3:return At0;case 4:return Pt0;case 5:return Nt0;case 6:return Ct0;case 7:return It0;case 8:return Ot0;case 9:return Rt0;case 10:return Lt0;case 11:return Mt0;case 12:return Dt0;default:return Ut0}var r=x;if(65<=r){if(98<=r)switch(r){case 98:return We0;case 99:return Ze0;case 100:return $e0;case 101:return Fe0;case 102:return Qe0;case 103:return Ge0;case 104:return qe0;case 105:return He0;case 106:return be0;case 107:return xt0;case 108:return rt0;case 109:return et0;case 110:return tt0;case 111:return nt0;case 112:return ut0;case 113:return it0;case 114:return ft0;case 115:return ct0;case 116:return st0;case 117:return ot0;case 118:return vt0;case 119:return at0;case 120:return lt0;case 121:return pt0;case 122:return dt0;case 123:return yt0;case 124:return mt0;case 125:return kt0;case 126:return ht0;case 127:return _t0;case 128:return wt0;default:return Tt0}switch(r){case 65:return ae0;case 66:return le0;case 67:return pe0;case 68:return de0;case 69:return ye0;case 70:return me0;case 71:return ke0;case 72:return he0;case 73:return _e0;case 74:return we0;case 75:return Te0;case 76:return Se0;case 77:return Ee0;case 78:return ge0;case 79:return Ae0;case 80:return Pe0;case 81:return Ne0;case 82:return Ce0;case 83:return Ie0;case 84:return Oe0;case 85:return Re0;case 86:return Le0;case 87:return Me0;case 88:return De0;case 89:return Ue0;case 90:return je0;case 91:return Je0;case 92:return Xe0;case 93:return Ye0;case 94:return Ve0;case 95:return ze0;case 96:return Ke0;default:return Be0}}if(33<=r)switch(r){case 33:return M20;case 34:return D20;case 35:return U20;case 36:return j20;case 37:return J20;case 38:return X20;case 39:return Y20;case 40:return V20;case 41:return z20;case 42:return K20;case 43:return B20;case 44:return W20;case 45:return Z20;case 46:return $20;case 47:return F20;case 48:return Q20;case 49:return G20;case 50:return q20;case 51:return H20;case 52:return b20;case 53:return xe0;case 54:return re0;case 55:return ee0;case 56:return te0;case 57:return ne0;case 58:return ue0;case 59:return ie0;case 60:return fe0;case 61:return ce0;case 62:return se0;case 63:return oe0;default:return ve0}switch(r){case 0:return r20;case 1:return e20;case 2:return t20;case 3:return n20;case 4:return u20;case 5:return i20;case 6:return f20;case 7:return c20;case 8:return s20;case 9:return o20;case 10:return v20;case 11:return a20;case 12:return l20;case 13:return p20;case 14:return d20;case 15:return y20;case 16:return m20;case 17:return k20;case 18:return h20;case 19:return _20;case 20:return w20;case 21:return T20;case 22:return S20;case 23:return E20;case 24:return g20;case 25:return A20;case 26:return P20;case 27:return N20;case 28:return C20;case 29:return I20;case 30:return O20;case 31:return R20;default:return L20}},ZO=function(x){if(typeof x!="number")switch(x[0]){case 0:return x[2];case 1:return x[2];case 2:return x[1][3];case 3:var r=x[1],e=r[5],t=r[4],u=r[3];return t&&e?Fx(B10,Fx(u,K10)):t?Fx(Z10,Fx(u,W10)):e?Fx(F10,Fx(u,$10)):Fx(G10,Fx(u,Q10));case 4:return x[3];case 5:var i=x[2];return Fx(H10,Fx(i,Fx(q10,x[3])));case 6:return x[2];case 7:return x[1];case 8:return x[1];case 9:return x[3];case 10:return x[3];case 11:return x[1]?b10:x20;case 12:return x[3];default:return x[3]}var f=x;if(65<=f){if(98<=f)switch(f){case 98:return v10;case 99:return a10;case 100:return l10;case 101:return p10;case 102:return d10;case 103:return y10;case 104:return m10;case 105:return k10;case 106:return h10;case 107:return _10;case 108:return w10;case 109:return T10;case 110:return S10;case 111:return E10;case 112:return g10;case 113:return A10;case 114:return P10;case 115:return N10;case 116:return C10;case 117:return I10;case 118:return O10;case 119:return R10;case 120:return L10;case 121:return M10;case 122:return D10;case 123:return U10;case 124:return j10;case 125:return J10;case 126:return X10;case 127:return Y10;case 128:return V10;default:return z10}switch(f){case 65:return Rr0;case 66:return Lr0;case 67:return Mr0;case 68:return Dr0;case 69:return Ur0;case 70:return jr0;case 71:return Jr0;case 72:return Xr0;case 73:return Yr0;case 74:return Vr0;case 75:return zr0;case 76:return Kr0;case 77:return Br0;case 78:return Wr0;case 79:return Zr0;case 80:return $r0;case 81:return Fr0;case 82:return Qr0;case 83:return Gr0;case 84:return qr0;case 85:return Hr0;case 86:return br0;case 87:return x10;case 88:return r10;case 89:return e10;case 90:return t10;case 91:return n10;case 92:return u10;case 93:return i10;case 94:return f10;case 95:return c10;case 96:return s10;default:return o10}}if(33<=f)switch(f){case 33:return xr0;case 34:return rr0;case 35:return er0;case 36:return tr0;case 37:return nr0;case 38:return ur0;case 39:return ir0;case 40:return fr0;case 41:return cr0;case 42:return sr0;case 43:return or0;case 44:return vr0;case 45:return ar0;case 46:return lr0;case 47:return pr0;case 48:return dr0;case 49:return yr0;case 50:return mr0;case 51:return kr0;case 52:return hr0;case 53:return _r0;case 54:return wr0;case 55:return Tr0;case 56:return Sr0;case 57:return Er0;case 58:return gr0;case 59:return Ar0;case 60:return Pr0;case 61:return Nr0;case 62:return Cr0;case 63:return Ir0;default:return Or0}switch(f){case 0:return wx0;case 1:return Tx0;case 2:return Sx0;case 3:return Ex0;case 4:return gx0;case 5:return Ax0;case 6:return Px0;case 7:return Nx0;case 8:return Cx0;case 9:return Ix0;case 10:return Ox0;case 11:return Rx0;case 12:return Lx0;case 13:return Mx0;case 14:return Dx0;case 15:return Ux0;case 16:return jx0;case 17:return Jx0;case 18:return Xx0;case 19:return Yx0;case 20:return Vx0;case 21:return zx0;case 22:return Kx0;case 23:return Bx0;case 24:return Wx0;case 25:return Zx0;case 26:return $x0;case 27:return Fx0;case 28:return Qx0;case 29:return Gx0;case 30:return qx0;case 31:return Hx0;default:return bx0}},ly=function(x){return a(Tr(_x0),x)},$O=function(x,r){var e=x?x[1]:0,t=0;if(typeof r=="number")if(Rr===r)var u=nx0,i=ux0;else t=1;else switch(r[0]){case 3:var u=ix0,i=fx0;break;case 5:var u=cx0,i=sx0;break;case 0:case 12:var u=vx0,i=ax0;break;case 1:case 13:var u=lx0,i=px0;break;case 4:case 8:var u=mx0,i=kx0;break;case 6:case 7:case 11:t=1;break;default:var u=dx0,i=yx0}if(t)var u=ox0,i=ly(ZO(r));return e?Fx(u,Fx(hx0,i)):i},qT0=function(x){return Pv>>0)var t=w(x);else switch(e){case 0:var t=1;break;case 1:var t=2;break;case 2:var t=0;break;default:if(e0(x,2),Mo(m(x))===0){var u=Yv(m(x));if(u===0)var t=Pr(m(x))===0&&Pr(m(x))===0&&Pr(m(x))===0?0:w(x);else if(u===1&&Pr(m(x))===0)for(;;){var i=Xv(m(x));if(i!==0){var t=i===1?0:w(x);break}}else var t=w(x)}else var t=w(x)}if(2>>0)throw q0([0,wr,jt0],1);switch(t){case 0:continue;case 1:return 1;default:if(zO(bY(x)))continue;return rV(x,1),0}}},Jy=function(x,r){var e=r-x[3][2]|0;return[0,wV(x),e]},ql=function(x,r,e){var t=Jy(x,e),u=Jy(x,r);return[0,x[1],u,t]},h2=function(x,r){return Jy(x,r[6])},de=function(x,r){return Jy(x,r[3])},Vr=function(x,r){return ql(x,r[6],r[3])},QV=function(x,r){var e=0;if(typeof r=="number")e=1;else switch(r[0]){case 2:var t=r[1][1];break;case 3:return r[1][1];case 4:var t=r[1];break;case 5:return r[1];case 8:var t=r[2];break;case 9:return r[1];case 10:return r[1];default:e=1}return e?Vr(x,x[2]):t},_2=function(x,r,e){return[0,x[1],x[2],x[3],x[4],x[5],[0,[0,r,e],x[6]],x[7]]},GV=function(x,r,e){return _2(x,r,[24,ly(e)])},HO=function(x,r,e,t){return _2(x,r,[25,e,t])},vt=function(x,r){return _2(x,r,es0)},z2=function(x,r){var e=r[3],t=[0,wV(x)+1|0,e];return[0,x[1],x[2],t,x[4],x[5],x[6],x[7]]},Kt=function(x,r,e,t,u){var i=[0,x[1],r,e],f=U1(t),o=u?0:1;return[0,i,[0,o,f,x[7][3][1]>>0)var l=w(t);else switch(o){case 0:var l=2;break;case 1:for(;;){e0(t,3);var d=m(t),k=-1>>0)return Ox(Qc0);switch(l){case 0:var A=HV(i,e,t,2,0),N=A[1],C=ft(Fx(Gc0,A[2])),O=0<=C?1:0,L=O&&(C<=55295?1:0);if(L)var V=L;else var M=57344<=C?1:0,V=M&&(C<=f5?1:0);var z=V?qV(i,N,C):_2(i,N,32);bc(u,C);var i=z;continue;case 1:var Y=HV(i,e,t,3,1),t0=Y[1],i0=ft(Fx(qc0,Y[2])),j=qV(i,t0,i0);bc(u,i0);var i=j;continue;case 2:return[0,i,U1(u)];default:sy(t,u);continue}}},A1=function(x,r,e){var t=vt(x,Vr(x,r));return $a(r),p(e,t,r)},Vv=function(x,r,e){for(var t=x;;){pr(e);var u=m(e),i=-1>>0)var f=w(e);else switch(i){case 0:for(;;){e0(e,3);var o=m(e),l=-1>>0){var h=vt(t,Vr(t,e));return[0,h,de(h,e)]}switch(f){case 0:var g=z2(t,e);sy(e,r);var t=g;continue;case 1:var A=t[4]?HO(t,Vr(t,e),Yt0,Xt0):t;return[0,A,de(A,e)];case 2:if(t[4])return[0,t,de(t,e)];vr(r,Vt0);continue;default:sy(e,r);continue}}},Ha=function(x,r,e){for(;;){pr(e);var t=m(e),u=13>>0)var i=w(e);else switch(u){case 0:var i=0;break;case 1:for(;;){e0(e,2);var f=m(e),o=-1>>0)return Ox(zt0);switch(i){case 0:return[0,x,de(x,e)];case 1:var l=de(x,e),d=l[2],k=l[1],h=z2(x,e);return[0,h,[0,k,d-cy(e)|0]];default:sy(e,r);continue}}},xz=function(x,r){function e(t0){return e0(t0,3),V2(m(t0))===0?2:w(t0)}pr(r);var t=m(r),u=Af>>0)var i=w(r);else switch(u){case 0:var i=0;break;case 1:var i=16;break;case 2:var i=15;break;case 3:e0(r,15);var i=pe(m(r))===0?15:w(r);break;case 4:e0(r,4);var i=V2(m(r))===0?e(r):w(r);break;case 5:e0(r,11);var i=V2(m(r))===0?e(r):w(r);break;case 6:var i=0;break;case 7:var i=5;break;case 8:var i=6;break;case 9:var i=7;break;case 10:var i=8;break;case 11:var i=9;break;case 12:e0(r,14);var f=Yv(m(r));if(f===0)var i=Pr(m(r))===0&&Pr(m(r))===0&&Pr(m(r))===0?12:w(r);else if(f===1&&Pr(m(r))===0)for(;;){var o=Xv(m(r));if(o!==0){var i=o===1?13:w(r);break}}else var i=w(r);break;case 13:var i=10;break;default:e0(r,14);var i=Pr(m(r))===0&&Pr(m(r))===0?1:w(r)}if(16>>0)return Ox(Dc0);switch(i){case 0:var l=Yx(r);return[0,x,l,t1(r),0];case 1:var d=Yx(r);return[0,x,d,[0,ft(Fx(Uc0,d))],0];case 2:var k=Yx(r),h=ft(Fx(jc0,k));return hv<=h?[0,x,k,[0,h>>>3|0,48+(h&7)|0],1]:[0,x,k,[0,h],1];case 3:var g=Yx(r);return[0,x,g,[0,ft(Fx(Jc0,g))],1];case 4:return[0,x,Xc0,[0,0],0];case 5:return[0,x,Yc0,[0,8],0];case 6:return[0,x,Vc0,[0,12],0];case 7:return[0,x,zc0,[0,10],0];case 8:return[0,x,Kc0,[0,13],0];case 9:return[0,x,Bc0,[0,9],0];case 10:return[0,x,Wc0,[0,11],0];case 11:var A=Yx(r);return[0,x,A,[0,ft(Fx(Zc0,A))],1];case 12:var N=Yx(r);return[0,x,N,[0,ft(Fx($c0,m2(N,1,Xx(N)-1|0)))],0];case 13:var C=Yx(r),O=ft(Fx(Fc0,m2(C,2,Xx(C)-3|0))),L=f5>>0)var k=w(i);else switch(d){case 0:var k=3;break;case 1:for(;;){e0(i,4);var h=m(i),g=-1>>0)return Ox(Kt0);switch(k){case 0:var A=Yx(i);if(vr(t,A),Ar(r,A))return[0,f,de(f,i),o];vr(e,A);continue;case 1:vr(t,Bt0);var N=xz(f,i),C=N[4],O=N[3],L=N[2],M=N[1],V=C||o;vr(t,L),tY(function(f0){return bc(e,f0)},O);var f=M,o=V;continue;case 2:var z=Yx(i);vr(t,z);var Y=z2(vt(f,Vr(f,i)),i);return vr(e,z),[0,Y,de(Y,i),o];case 3:var t0=Yx(i);vr(t,t0);var i0=vt(f,Vr(f,i));return vr(e,t0),[0,i0,de(i0,i),o];default:var j=i[6],K=i[3]-j|0,J=w1(K*4|0),Q=Bl(i[1],j,K,J);cO(t,J,0,Q),cO(e,J,0,Q);continue}}},ez=function(x,r,e,t){for(var u=x;;){pr(t);var i=m(t),f=96>>0)var o=w(t);else switch(f){case 0:var o=0;break;case 1:for(;;){e0(t,6);var l=m(t),d=-1>>0)return Ox(Wt0);switch(o){case 0:return[0,vt(u,Vr(u,t)),1];case 1:return[0,u,1];case 2:return[0,u,0];case 3:st(e,92);var g=xz(u,t),A=g[3],N=g[1];vr(e,g[2]),tY(function(L){return bc(r,L)},A);var u=N;continue;case 4:vr(e,Zt0),vr(r,$t0);var u=z2(u,t);continue;case 5:vr(e,Yx(t)),st(r,10);var u=z2(u,t);continue;default:var C=Yx(t);vr(e,C),vr(r,C);continue}}},xS0=function(x,r){function e(_){for(;;)if(e0(_,33),ar(m(_))!==0)return w(_)}function t(_){e0(_,32);var b=O1(m(_));if(b!==0)return b===1?e(_):w(_);for(;;)if(e0(_,30),ar(m(_))!==0)return w(_)}function u(_){e0(_,31);var b=O1(m(_));if(b!==0)return b===1?e(_):w(_);for(;;)if(e0(_,29),ar(m(_))!==0)return w(_)}function i(_){e0(_,34);var b=Qa(m(_));if(2>>0)return w(_);switch(b){case 0:return e(_);case 1:for(;;){e0(_,34);var r0=ts(m(_));if(3>>0)return w(_);switch(r0){case 0:return e(_);case 1:continue;case 2:x:for(;;){if(dr(m(_))!==0)return w(_);for(;;){e0(_,34);var S0=ts(m(_));if(3>>0)return w(_);switch(S0){case 0:return e(_);case 1:continue;case 2:continue x;default:return u(_)}}}default:return u(_)}}default:return u(_)}}function f(_){x:for(;;){if(dr(m(_))!==0)return w(_);for(;;){e0(_,34);var b=XV(m(_));if(4>>0)return w(_);switch(b){case 0:return e(_);case 1:return i(_);case 2:continue;case 3:continue x;default:return t(_)}}}}function o(_){for(;;)if(e0(_,23),ar(m(_))!==0)return w(_)}function l(_){for(;;)if(e0(_,23),ar(m(_))!==0)return w(_)}function d(_){for(;;)if(e0(_,15),ar(m(_))!==0)return w(_)}function k(_){for(;;)if(e0(_,15),ar(m(_))!==0)return w(_)}function h(_){for(;;)if(e0(_,11),ar(m(_))!==0)return w(_)}function g(_){for(;;)if(e0(_,11),ar(m(_))!==0)return w(_)}function A(_){for(;;)if(e0(_,17),ar(m(_))!==0)return w(_)}function N(_){for(;;)if(e0(_,17),ar(m(_))!==0)return w(_)}function C(_){for(;;)if(e0(_,19),ar(m(_))!==0)return w(_)}function O(_){for(;;)if(e0(_,27),ar(m(_))!==0)return w(_)}function L(_){e0(_,26);var b=O1(m(_));if(b!==0)return b===1?O(_):w(_);for(;;)if(e0(_,25),ar(m(_))!==0)return w(_)}function M(_){for(;;)if(e0(_,27),ar(m(_))!==0)return w(_)}function V(_){e0(_,26);var b=O1(m(_));if(b!==0)return b===1?M(_):w(_);for(;;)if(e0(_,25),ar(m(_))!==0)return w(_)}function z(_){x:for(;;){if(dr(m(_))!==0)return w(_);for(;;){e0(_,28);var b=ts(m(_));if(3>>0)return w(_);switch(b){case 0:return M(_);case 1:continue;case 2:continue x;default:return V(_)}}}}function Y(_){e0(_,33);var b=VV(m(_));if(3>>0)return w(_);switch(b){case 0:return e(_);case 1:var r0=Io(m(_));if(r0===0)for(;;){e0(_,28);var S0=Qa(m(_));if(2>>0)return w(_);switch(S0){case 0:return M(_);case 1:continue;default:return V(_)}}if(r0!==1)return w(_);for(;;){e0(_,28);var G=ts(m(_));if(3>>0)return w(_);switch(G){case 0:return M(_);case 1:continue;case 2:return z(_);default:return V(_)}}case 2:for(;;){e0(_,28);var h0=Qa(m(_));if(2>>0)return w(_);switch(h0){case 0:return O(_);case 1:continue;default:return L(_)}}default:for(;;){e0(_,28);var z0=ts(m(_));if(3>>0)return w(_);switch(z0){case 0:return O(_);case 1:continue;case 2:return z(_);default:return L(_)}}}}function t0(_){e0(_,34);var b=IV(m(_));if(3>>0)return w(_);switch(b){case 0:return e(_);case 1:for(;;){e0(_,34);var r0=Oo(m(_));if(4>>0)return w(_);switch(r0){case 0:return e(_);case 1:continue;case 2:return Y(_);case 3:x:for(;;){if(dr(m(_))!==0)return w(_);for(;;){e0(_,34);var S0=Oo(m(_));if(4>>0)return w(_);switch(S0){case 0:return e(_);case 1:continue;case 2:return Y(_);case 3:continue x;default:return u(_)}}}default:return u(_)}}case 2:return Y(_);default:return u(_)}}function i0(_){return Iy(m(_))===0&&Ay(m(_))===0&&KV(m(_))===0&&RV(m(_))===0&&LV(m(_))===0&&qO(m(_))===0&&Ql(m(_))===0&&Iy(m(_))===0&&Mo(m(_))===0&&MV(m(_))===0&&Gl(m(_))===0?3:w(_)}function j(_){return e0(_,3),ZV(m(_))===0?3:w(_)}function K(_){var b=qT0(m(_));if(36>>0)return w(_);switch(b){case 0:return 98;case 1:return 99;case 2:if(e0(_,1),rs(m(_))!==0)return w(_);for(;;)if(e0(_,1),rs(m(_))!==0)return w(_);case 3:return 0;case 4:return e0(_,0),pe(m(_))===0?0:w(_);case 5:return e0(_,88),En(m(_))===0?(e0(_,58),En(m(_))===0?54:w(_)):w(_);case 6:return 7;case 7:e0(_,95);var r0=m(_),S0=32>>0)return w(_);switch(z0){case 0:return e0(_,83),En(m(_))===0?70:w(_);case 1:return 4;default:return 69}case 14:e0(_,80);var M0=m(_),ux=42>>0)return w(_);switch($x){case 0:return e(_);case 1:continue;case 2:return Y(_);case 3:x:for(;;){if(dr(m(_))!==0)return w(_);for(;;){e0(_,34);var xr=Oo(m(_));if(4>>0)return w(_);switch(xr){case 0:return e(_);case 1:continue;case 2:return Y(_);case 3:continue x;default:return u(_)}}}default:return u(_)}}case 18:e0(_,93);var zx=OV(m(_));if(2>>0)return w(_);switch(zx){case 0:e0(_,2);var Or=_y(m(_));if(2>>0)return w(_);switch(Or){case 0:for(;;){var Wx=_y(m(_));if(2>>0)return w(_);switch(Wx){case 0:continue;case 1:return j(_);default:return i0(_)}}case 1:return j(_);default:return i0(_)}case 1:return 5;default:return 92}case 19:e0(_,34);var B2=UV(m(_));if(8>>0)return w(_);switch(B2){case 0:return e(_);case 1:return t0(_);case 2:for(;;){e0(_,20);var lt=zV(m(_));if(4>>0)return w(_);switch(lt){case 0:return C(_);case 1:return i(_);case 2:continue;case 3:for(;;){e0(_,18);var me=hy(m(_));if(3>>0)return w(_);switch(me){case 0:return N(_);case 1:return i(_);case 2:continue;default:e0(_,17);var Pn=O1(m(_));if(Pn!==0)return Pn===1?N(_):w(_);for(;;)if(e0(_,17),ar(m(_))!==0)return w(_)}}default:e0(_,19);var to=O1(m(_));if(to!==0)return to===1?C(_):w(_);for(;;)if(e0(_,19),ar(m(_))!==0)return w(_)}}case 3:for(;;){e0(_,18);var Nn=hy(m(_));if(3>>0)return w(_);switch(Nn){case 0:return A(_);case 1:return i(_);case 2:continue;default:e0(_,17);var cs=O1(m(_));if(cs!==0)return cs===1?A(_):w(_);for(;;)if(e0(_,17),ar(m(_))!==0)return w(_)}}case 4:e0(_,33);var ke=DV(m(_));if(ke===0)return e(_);if(ke!==1)return w(_);for(;;){e0(_,12);var Cn=Dy(m(_));if(3>>0)return w(_);switch(Cn){case 0:return g(_);case 1:continue;case 2:x:for(;;){if(es(m(_))!==0)return w(_);for(;;){e0(_,12);var te=Dy(m(_));if(3>>0)return w(_);switch(te){case 0:return h(_);case 1:continue;case 2:continue x;default:e0(_,10);var Ft=O1(m(_));if(Ft!==0)return Ft===1?h(_):w(_);for(;;)if(e0(_,9),ar(m(_))!==0)return w(_)}}}default:e0(_,10);var yr=O1(m(_));if(yr!==0)return yr===1?g(_):w(_);for(;;)if(e0(_,9),ar(m(_))!==0)return w(_)}}case 5:return Y(_);case 6:e0(_,33);var Qt=jV(m(_));if(Qt===0)return e(_);if(Qt!==1)return w(_);for(;;){e0(_,16);var In=Ly(m(_));if(3>>0)return w(_);switch(In){case 0:return k(_);case 1:continue;case 2:x:for(;;){if(V2(m(_))!==0)return w(_);for(;;){e0(_,16);var qv=Ly(m(_));if(3>>0)return w(_);switch(qv){case 0:return d(_);case 1:continue;case 2:continue x;default:e0(_,14);var he=O1(m(_));if(he!==0)return he===1?d(_):w(_);for(;;)if(e0(_,13),ar(m(_))!==0)return w(_)}}}default:e0(_,14);var pt=O1(m(_));if(pt!==0)return pt===1?k(_):w(_);for(;;)if(e0(_,13),ar(m(_))!==0)return w(_)}}case 7:e0(_,33);var Ko=AV(m(_));if(Ko===0)return e(_);if(Ko!==1)return w(_);for(;;){e0(_,24);var no=Uy(m(_));if(3>>0)return w(_);switch(no){case 0:return l(_);case 1:continue;case 2:x:for(;;){if(Pr(m(_))!==0)return w(_);for(;;){e0(_,24);var v2=Uy(m(_));if(3>>0)return w(_);switch(v2){case 0:return o(_);case 1:continue;case 2:continue x;default:e0(_,22);var uo=O1(m(_));if(uo!==0)return uo===1?o(_):w(_);for(;;)if(e0(_,21),ar(m(_))!==0)return w(_)}}}default:e0(_,22);var On=O1(m(_));if(On!==0)return On===1?l(_):w(_);for(;;)if(e0(_,21),ar(m(_))!==0)return w(_)}}default:return t(_)}case 20:e0(_,34);var dt=Ty(m(_));if(5
    >>0)return w(_);switch(dt){case 0:return e(_);case 1:return t0(_);case 2:for(;;){e0(_,34);var Bo=Ty(m(_));if(5>>0)return w(_);switch(Bo){case 0:return e(_);case 1:return t0(_);case 2:continue;case 3:return Y(_);case 4:return f(_);default:return t(_)}}case 3:return Y(_);case 4:return f(_);default:return t(_)}case 21:return 46;case 22:return 44;case 23:e0(_,78);var io=m(_),Hv=59>>0)return Ox(Oc0);var Q=J;if(50>Q)switch(Q){case 0:return[2,z2(x,r)];case 1:return[2,x];case 2:var x0=h2(x,r),$=Zr(Yr),f0=Vv(x,$,r),s0=f0[1];return[1,s0,Kt(s0,x0,f0[2],$,1)];case 3:var v0=Yx(r);if(!x[5]){var o0=h2(x,r),c0=Zr(Yr);vr(c0,m2(v0,2,Xx(v0)-2|0));var d0=Vv(x,c0,r),E0=d0[1];return[1,E0,Kt(E0,o0,d0[2],c0,1)]}var L0=x[4]?GV(x,Vr(x,r),v0):x,X0=ay(1,L0),xx=cy(r);return Ar(Wl(r,xx-1|0,1),Cv)&&P(Wl(r,xx-2|0,1),Cv)?[0,X0,86]:[2,X0];case 4:if(x[4])return[2,ay(0,x)];$a(r),pr(r);var g0=CV(m(r))===0?0:w(r);return g0===0?[0,x,l2]:Ox(Rc0);case 5:var $0=h2(x,r),n0=Zr(Yr),ix=Ha(x,n0,r),rx=ix[1];return[1,rx,Kt(rx,$0,ix[2],n0,0)];case 6:if(r[6]!==0)return[0,x,Lc0];var dx=h2(x,r),ax=Zr(Yr),Sx=Ha(x,ax,r),D0=Sx[1],N0=[0,D0[1],dx,Sx[2]];return[0,D0,[6,N0,U1(ax)]];case 7:var A0=Yx(r),Y0=h2(x,r),C0=Zr(Yr),F=Zr(Yr);vr(F,A0);var H=rz(x,A0,C0,F,0,r),B=H[1],a0=H[3],m0=[0,B[1],Y0,H[2]],P0=U1(F);return[0,B,[2,[0,m0,U1(C0),P0,a0]]];case 8:var D=Zr(Yr),O0=Zr(Yr),K0=h2(x,r),j0=ez(x,D,O0,r),ox=j0[1],b0=j0[2],_x=de(ox,r),B0=[0,ox[1],K0,_x],T=U1(O0);return[0,ox,[3,[0,B0,U1(D),T,1,b0]]];case 9:return A1(x,r,function(_,b){if(pr(b),le(m(b))===0&&Ey(m(b))===0&&es(m(b))===0)for(;;){var r0=my(m(b));if(2>>0)var h0=w(b);else switch(r0){case 0:continue;case 1:x:for(;;){if(es(m(b))===0)for(;;){var S0=my(m(b));if(2>>0)var G=w(b);else switch(S0){case 0:continue;case 1:continue x;default:var G=0}break}else var G=w(b);var h0=G;break}break;default:var h0=0}break}else var h0=w(b);return h0===0?[0,_,[1,0,Yx(b)]]:Ox(Ic0)});case 10:return[0,x,[1,0,Yx(r)]];case 11:return A1(x,r,function(_,b){if(pr(b),le(m(b))===0&&Ey(m(b))===0&&es(m(b))===0)for(;;){e0(b,0);var r0=yy(m(b));if(r0!==0){if(r0===1)x:for(;;){if(es(m(b))===0)for(;;){e0(b,0);var S0=yy(m(b));if(S0!==0){if(S0===1)continue x;var G=w(b);break}}else var G=w(b);var h0=G;break}else var h0=w(b);break}}else var h0=w(b);return h0===0?[0,_,[0,0,Yx(b)]]:Ox(Cc0)});case 12:return[0,x,[0,0,Yx(r)]];case 13:return A1(x,r,function(_,b){if(pr(b),le(m(b))===0&&Ny(m(b))===0&&V2(m(b))===0)for(;;){var r0=Sy(m(b));if(2>>0)var h0=w(b);else switch(r0){case 0:continue;case 1:x:for(;;){if(V2(m(b))===0)for(;;){var S0=Sy(m(b));if(2>>0)var G=w(b);else switch(S0){case 0:continue;case 1:continue x;default:var G=0}break}else var G=w(b);var h0=G;break}break;default:var h0=0}break}else var h0=w(b);return h0===0?[0,_,[1,1,Yx(b)]]:Ox(Nc0)});case 14:return[0,x,[1,1,Yx(r)]];case 15:return A1(x,r,function(_,b){if(pr(b),le(m(b))===0&&Ny(m(b))===0&&V2(m(b))===0)for(;;){e0(b,0);var r0=wy(m(b));if(r0!==0){if(r0===1)x:for(;;){if(V2(m(b))===0)for(;;){e0(b,0);var S0=wy(m(b));if(S0!==0){if(S0===1)continue x;var G=w(b);break}}else var G=w(b);var h0=G;break}else var h0=w(b);break}}else var h0=w(b);return h0===0?[0,_,[0,3,Yx(b)]]:Ox(Pc0)});case 16:return[0,x,[0,3,Yx(r)]];case 17:return A1(x,r,function(_,b){if(pr(b),le(m(b))===0)for(;;){var r0=m(b),S0=47>>0)var h0=w(b);else switch(r0){case 0:continue;case 1:x:for(;;){if(Pr(m(b))===0)for(;;){var S0=ky(m(b));if(2>>0)var G=w(b);else switch(S0){case 0:continue;case 1:continue x;default:var G=0}break}else var G=w(b);var h0=G;break}break;default:var h0=0}break}else var h0=w(b);return h0===0?[0,_,[1,2,Yx(b)]]:Ox(Ec0)});case 22:return[0,x,[1,2,Yx(r)]];case 23:return A1(x,r,function(_,b){if(pr(b),le(m(b))===0&&py(m(b))===0&&Pr(m(b))===0)for(;;){e0(b,0);var r0=Oy(m(b));if(r0!==0){if(r0===1)x:for(;;){if(Pr(m(b))===0)for(;;){e0(b,0);var S0=Oy(m(b));if(S0!==0){if(S0===1)continue x;var G=w(b);break}}else var G=w(b);var h0=G;break}else var h0=w(b);break}}else var h0=w(b);return h0===0?[0,_,[0,4,Yx(b)]]:Ox(Sc0)});case 24:return[0,x,[0,4,Yx(r)]];case 25:return A1(x,r,function(_,b){function r0(zx){for(;;){var Or=Vt(m(zx));if(2>>0)return w(zx);switch(Or){case 0:continue;case 1:x:for(;;){if(dr(m(zx))!==0)return w(zx);for(;;){var Wx=Vt(m(zx));if(2>>0)return w(zx);switch(Wx){case 0:continue;case 1:continue x;default:return 0}}}default:return 0}}}function S0(zx){for(;;){var Or=Ga(m(zx));if(Or!==0)return Or===1?0:w(zx)}}function G(zx){var Or=jy(m(zx));if(2>>0)return w(zx);switch(Or){case 0:var Wx=Io(m(zx));return Wx===0?S0(zx):Wx===1?r0(zx):w(zx);case 1:return S0(zx);default:return r0(zx)}}function h0(zx){var Or=Cy(m(zx));if(Or!==0)return Or===1?G(zx):w(zx);for(;;){var Wx=xe(m(zx));if(2>>0)return w(zx);switch(Wx){case 0:continue;case 1:return G(zx);default:x:for(;;){if(dr(m(zx))!==0)return w(zx);for(;;){var B2=xe(m(zx));if(2>>0)return w(zx);switch(B2){case 0:continue;case 1:return G(zx);default:continue x}}}}}}pr(b);var z0=Co(m(b));if(2>>0)var M0=w(b);else switch(z0){case 0:if(dr(m(b))===0)for(;;){var ux=xe(m(b));if(2>>0)var M0=w(b);else switch(ux){case 0:continue;case 1:var M0=G(b);break;default:x:for(;;){if(dr(m(b))===0)for(;;){var Zx=xe(m(b));if(2>>0)var Lx=w(b);else switch(Zx){case 0:continue;case 1:var Lx=G(b);break;default:continue x}break}else var Lx=w(b);var M0=Lx;break}}break}else var M0=w(b);break;case 1:var tr=dy(m(b)),M0=tr===0?h0(b):tr===1?G(b):w(b);break;default:for(;;){var $x=Py(m(b));if(2<$x>>>0)var M0=w(b);else switch($x){case 0:var M0=h0(b);break;case 1:continue;default:var M0=G(b)}break}}if(M0!==0)return Ox(Tc0);var xr=_2(_,Vr(_,b),48);return[0,xr,[1,2,Yx(b)]]});case 26:var X=_2(x,Vr(x,r),48);return[0,X,[1,2,Yx(r)]];case 27:return A1(x,r,function(_,b){function r0(xr){for(;;){e0(xr,0);var zx=Ro(m(xr));if(zx!==0){if(zx!==1)return w(xr);x:for(;;){if(dr(m(xr))!==0)return w(xr);for(;;){e0(xr,0);var Or=Ro(m(xr));if(Or!==0){if(Or===1)continue x;return w(xr)}}}}}}function S0(xr){for(;;)if(e0(xr,0),dr(m(xr))!==0)return w(xr)}function G(xr){var zx=jy(m(xr));if(2>>0)return w(xr);switch(zx){case 0:var Or=Io(m(xr));return Or===0?S0(xr):Or===1?r0(xr):w(xr);case 1:return S0(xr);default:return r0(xr)}}function h0(xr){var zx=Cy(m(xr));if(zx!==0)return zx===1?G(xr):w(xr);for(;;){var Or=xe(m(xr));if(2>>0)return w(xr);switch(Or){case 0:continue;case 1:return G(xr);default:x:for(;;){if(dr(m(xr))!==0)return w(xr);for(;;){var Wx=xe(m(xr));if(2>>0)return w(xr);switch(Wx){case 0:continue;case 1:return G(xr);default:continue x}}}}}}pr(b);var z0=Co(m(b));if(2>>0)var M0=w(b);else switch(z0){case 0:if(dr(m(b))===0)for(;;){var ux=xe(m(b));if(2>>0)var M0=w(b);else switch(ux){case 0:continue;case 1:var M0=G(b);break;default:x:for(;;){if(dr(m(b))===0)for(;;){var Zx=xe(m(b));if(2>>0)var Lx=w(b);else switch(Zx){case 0:continue;case 1:var Lx=G(b);break;default:continue x}break}else var Lx=w(b);var M0=Lx;break}}break}else var M0=w(b);break;case 1:var tr=dy(m(b)),M0=tr===0?h0(b):tr===1?G(b):w(b);break;default:for(;;){var $x=Py(m(b));if(2<$x>>>0)var M0=w(b);else switch($x){case 0:var M0=h0(b);break;case 1:continue;default:var M0=G(b)}break}}return M0===0?[0,_,[0,4,Yx(b)]]:Ox(wc0)});case 28:return[0,x,[0,4,Yx(r)]];case 29:return A1(x,r,function(_,b){function r0(tr){for(;;){var $x=Vt(m(tr));if(2<$x>>>0)return w(tr);switch($x){case 0:continue;case 1:x:for(;;){if(dr(m(tr))!==0)return w(tr);for(;;){var xr=Vt(m(tr));if(2>>0)return w(tr);switch(xr){case 0:continue;case 1:continue x;default:return 0}}}default:return 0}}}function S0(tr){var $x=Ga(m(tr));return $x===0?r0(tr):$x===1?0:w(tr)}pr(b);var G=Co(m(b));if(2>>0)var h0=w(b);else switch(G){case 0:var h0=dr(m(b))===0?r0(b):w(b);break;case 1:for(;;){var z0=qa(m(b));if(z0===0)var h0=S0(b);else{if(z0===1)continue;var h0=w(b)}break}break;default:for(;;){var M0=Lo(m(b));if(2>>0)var h0=w(b);else switch(M0){case 0:var h0=S0(b);break;case 1:continue;default:x:for(;;){if(dr(m(b))===0)for(;;){var ux=Lo(m(b));if(2>>0)var Zx=w(b);else switch(ux){case 0:var Zx=S0(b);break;case 1:continue;default:continue x}break}else var Zx=w(b);var h0=Zx;break}}break}}if(h0!==0)return Ox(_c0);var Lx=_2(_,Vr(_,b),39);return[0,Lx,[1,2,Yx(b)]]});case 30:return A1(x,r,function(_,b){pr(b);var r0=Io(m(b));if(r0===0)for(;;){var S0=Ga(m(b));if(S0!==0){var M0=S0===1?0:w(b);break}}else if(r0===1)for(;;){var G=Vt(m(b));if(2>>0)var M0=w(b);else switch(G){case 0:continue;case 1:x:for(;;){if(dr(m(b))===0)for(;;){var h0=Vt(m(b));if(2>>0)var z0=w(b);else switch(h0){case 0:continue;case 1:continue x;default:var z0=0}break}else var z0=w(b);var M0=z0;break}break;default:var M0=0}break}else var M0=w(b);return M0===0?[0,_,[1,2,Yx(b)]]:Ox(hc0)});case 31:var F0=_2(x,Vr(x,r),39);return[0,F0,[1,2,Yx(r)]];case 32:return[0,x,[1,2,Yx(r)]];case 33:return A1(x,r,function(_,b){function r0(Lx){for(;;){e0(Lx,0);var tr=Ro(m(Lx));if(tr!==0){if(tr!==1)return w(Lx);x:for(;;){if(dr(m(Lx))!==0)return w(Lx);for(;;){e0(Lx,0);var $x=Ro(m(Lx));if($x!==0){if($x===1)continue x;return w(Lx)}}}}}}function S0(Lx){return e0(Lx,0),dr(m(Lx))===0?r0(Lx):w(Lx)}pr(b);var G=Co(m(b));if(2>>0)var h0=w(b);else switch(G){case 0:var h0=dr(m(b))===0?r0(b):w(b);break;case 1:for(;;){e0(b,0);var z0=qa(m(b));if(z0===0)var h0=S0(b);else{if(z0===1)continue;var h0=w(b)}break}break;default:for(;;){e0(b,0);var M0=Lo(m(b));if(2>>0)var h0=w(b);else switch(M0){case 0:var h0=S0(b);break;case 1:continue;default:x:for(;;){if(dr(m(b))===0)for(;;){e0(b,0);var ux=Lo(m(b));if(2>>0)var Zx=w(b);else switch(ux){case 0:var Zx=S0(b);break;case 1:continue;default:continue x}break}else var Zx=w(b);var h0=Zx;break}}break}}return h0===0?[0,_,[0,4,Yx(b)]]:Ox(kc0)});case 34:return[0,x,[0,4,Yx(r)]];case 35:var sx=Vr(x,r),ex=Yx(r);return[0,x,[4,sx,ex,ex]];case 36:return[0,x,0];case 37:return[0,x,1];case 38:return[0,x,4];case 39:return[0,x,5];case 40:return[0,x,6];case 41:return[0,x,7];case 42:return[0,x,12];case 43:return[0,x,10];case 44:return[0,x,8];case 45:return[0,x,9];case 46:return[0,x,86];case 47:$a(r),pr(r);var U0=m(r),Nx=62=bx)return[0,x,18];var Jx=Tx(J0,Na);if(0<=Jx){if(0>=Jx)return[0,x,51];var W0=Tx(J0,Ts);if(0<=W0){if(0>=W0)return[0,x,46];if(!P(J0,sl))return[0,x,24];if(!P(J0,Ps))return[0,x,47];if(!P(J0,Mp))return[0,x,25];if(!P(J0,vp))return[0,x,26];if(!P(J0,j2))return[0,x,58]}else{if(!P(J0,Ye))return[0,x,20];if(!P(J0,vv))return[0,x,21];if(!P(J0,Xe))return[0,x,22];if(!P(J0,Ss))return[0,x,31];if(!P(J0,td))return[0,x,23];if(!P(J0,ei))return[0,x,61]}}else{var nr=Tx(J0,Wp);if(0<=nr){if(0>=nr)return[0,x,54];if(!P(J0,kl))return[0,x,55];if(!P(J0,B3))return[0,x,56];if(!P(J0,j3))return[0,x,57];if(!P(J0,Ue))return[0,x,19];if(!P(J0,je))return[0,x,42]}else{if(!P(J0,Q2))return[0,x,53];if(!P(J0,da))return[0,x,28];if(!P(J0,ov))return[0,x,44];if(!P(J0,mv))return[0,x,29];if(!P(J0,Yh))return[0,x,63];if(!P(J0,Ih))return[0,x,62]}}}else{var V0=Tx(J0,K5);if(0<=V0){if(0>=V0)return[0,x,37];var Sr=Tx(J0,d8);if(0<=Sr){if(0>=Sr)return[0,x,39];if(!P(J0,la))return[0,x,15];if(!P(J0,Qp))return[0,x,16];if(!P(J0,_v))return[0,x,52];if(!P(J0,M2))return[0,x,50];if(!P(J0,wo))return[0,x,17]}else{if(!P(J0,Ip))return[0,x,43];if(!P(J0,cl))return[0,x,48];if(!P(J0,x8))return[0,x,49];if(!P(J0,Oc))return[0,x,41];if(!P(J0,As))return[0,x,30];if(!P(J0,gp))return[0,x,38]}}else{var Ur=Tx(J0,nl);if(0<=Ur){if(0>=Ur)return[0,x,27];if(!P(J0,Oe))return[0,x,35];if(!P(J0,Re))return[0,x,59];if(!P(J0,Q3))return[0,x,60];if(!P(J0,av))return[0,x,36];if(!P(J0,el))return[0,x,45]}else{if(!P(J0,To))return[0,x,64];if(!P(J0,Ev))return[0,x,65];if(!P(J0,Me))return[0,x,32];if(!P(J0,Xp))return[0,x,33];if(!P(J0,K8))return[0,x,34];if(!P(J0,V3))return[0,x,40]}}}var lx=t1(r),br=bV(x,lx),e2=br[2],h1=br[1];return[0,h1,[4,Gx,e2,Zl(lx)]];case 98:var Ir=x[4]?_2(x,Vr(x,r),96):x;return[0,Ir,Rr];default:var R1=vt(x,Vr(x,r));return[0,R1,[7,Yx(r)]]}},rS0=function(x,r,e){var t=x;x:for(;;){pr(e);var u=m(e),i=92>>0)var f=w(e);else switch(i){case 0:var f=0;break;case 1:for(;;){e0(e,7);var o=m(e),l=-1>>0)var f=w(e);else switch(k){case 0:var f=2;break;case 1:var f=1;break;default:e0(e,1);var f=pe(m(e))===0?1:w(e)}}if(7>>0)return Ox(Gt0);switch(f){case 0:return[0,_2(t,Vr(t,e),ut),qt0];case 1:return[0,z2(_2(t,Vr(t,e),ut),e),Ht0];case 2:vr(r,Yx(e));continue;case 3:var h=Yx(e);return[0,t,m2(h,1,Xx(h)-1|0)];case 4:return[0,t,bt0];case 5:for(st(r,91);;){pr(e);var g=m(e),A=93>>0)var N=w(e);else switch(A){case 0:var N=0;break;case 1:for(;;){e0(e,5);var C=m(e),O=-1>>0)var V=Ox(Ft0);else switch(N){case 0:var V=t;break;case 1:vr(r,Qt0);continue;case 2:st(r,92),st(r,93);continue;case 3:st(r,93);var V=t;break;case 4:var V=z2(_2(t,Vr(t,e),ut),e);break;default:vr(r,Yx(e));continue}var t=V;continue x}case 6:return[0,z2(_2(t,Vr(t,e),ut),e),xn0];default:vr(r,Yx(e));continue}}},eS0=function(x,r){pr(r);var e=m(r),t=Pv>>0)var u=w(r);else switch(t){case 0:var u=0;break;case 1:var u=6;break;case 2:if(e0(r,2),rs(m(r))===0){for(;;)if(e0(r,2),rs(m(r))!==0){var u=w(r);break}}else var u=w(r);break;case 3:var u=1;break;case 4:e0(r,1);var u=pe(m(r))===0?1:w(r);break;default:e0(r,5);var i=My(m(r)),u=i===0?4:i===1?3:w(r)}if(6>>0)return Ox(mc0);switch(u){case 0:return[0,x,Rr];case 1:return[2,z2(x,r)];case 2:return[2,x];case 3:var f=h2(x,r),o=Zr(Yr),l=Ha(x,o,r),d=l[1];return[1,d,Kt(d,f,l[2],o,0)];case 4:var k=h2(x,r),h=Zr(Yr),g=Vv(x,h,r),A=g[1];return[1,A,Kt(A,k,g[2],h,1)];case 5:var N=h2(x,r),C=Zr(Yr),O=rS0(x,C,r),L=O[1],M=O[2],V=de(L,r),z=[0,L[1],N,V];return[0,L,[5,z,U1(C),M]];default:var Y=vt(x,Vr(x,r));return[0,Y,[7,Yx(r)]]}},tz=function(x){var r=Tx(x,"iexcl");if(0<=r){if(0>=r)return yc0;var e=Tx(x,"prime");if(0<=e){if(0>=e)return dc0;var t=Tx(x,"sup1");if(0<=t){if(0>=t)return pc0;var u=Tx(x,"uarr");if(0<=u){if(0>=u)return lc0;var i=Tx(x,"xi");if(0<=i){if(0>=i)return ac0;if(!P(x,"yacute"))return vc0;if(!P(x,"yen"))return oc0;if(!P(x,"yuml"))return sc0;if(!P(x,"zeta"))return cc0;if(!P(x,"zwj"))return fc0;if(!P(x,"zwnj"))return ic0}else{if(!P(x,"ucirc"))return uc0;if(!P(x,"ugrave"))return nc0;if(!P(x,"uml"))return tc0;if(!P(x,"upsih"))return ec0;if(!P(x,"upsilon"))return rc0;if(!P(x,"uuml"))return xc0;if(!P(x,"weierp"))return bf0}}else{var f=Tx(x,"thetasym");if(0<=f){if(0>=f)return Hf0;if(!P(x,"thinsp"))return qf0;if(!P(x,"thorn"))return Gf0;if(!P(x,"tilde"))return Qf0;if(!P(x,"times"))return Ff0;if(!P(x,"trade"))return $f0;if(!P(x,"uArr"))return Zf0;if(!P(x,"uacute"))return Wf0}else{if(!P(x,"sup2"))return Bf0;if(!P(x,"sup3"))return Kf0;if(!P(x,"supe"))return zf0;if(!P(x,"szlig"))return Vf0;if(!P(x,"tau"))return Yf0;if(!P(x,"there4"))return Xf0;if(!P(x,"theta"))return Jf0}}}else{var o=Tx(x,"rlm");if(0<=o){if(0>=o)return jf0;var l=Tx(x,"sigma");if(0<=l){if(0>=l)return Uf0;if(!P(x,"sigmaf"))return Df0;if(!P(x,"sim"))return Mf0;if(!P(x,"spades"))return Lf0;if(!P(x,"sub"))return Rf0;if(!P(x,"sube"))return Of0;if(!P(x,"sum"))return If0;if(!P(x,"sup"))return Cf0}else{if(!P(x,"rsaquo"))return Nf0;if(!P(x,"rsquo"))return Pf0;if(!P(x,"sbquo"))return Af0;if(!P(x,"scaron"))return gf0;if(!P(x,"sdot"))return Ef0;if(!P(x,"sect"))return Sf0;if(!P(x,"shy"))return Tf0}}else{var d=Tx(x,"raquo");if(0<=d){if(0>=d)return wf0;if(!P(x,"rarr"))return _f0;if(!P(x,"rceil"))return hf0;if(!P(x,"rdquo"))return kf0;if(!P(x,"real"))return mf0;if(!P(x,"reg"))return yf0;if(!P(x,"rfloor"))return df0;if(!P(x,"rho"))return pf0}else{if(!P(x,"prod"))return lf0;if(!P(x,"prop"))return af0;if(!P(x,"psi"))return vf0;if(!P(x,"quot"))return of0;if(!P(x,"rArr"))return sf0;if(!P(x,"radic"))return cf0;if(!P(x,"rang"))return ff0}}}}else{var k=Tx(x,"ndash");if(0<=k){if(0>=k)return if0;var h=Tx(x,"or");if(0<=h){if(0>=h)return uf0;var g=Tx(x,"part");if(0<=g){if(0>=g)return nf0;if(!P(x,"permil"))return tf0;if(!P(x,"perp"))return ef0;if(!P(x,"phi"))return rf0;if(!P(x,"pi"))return xf0;if(!P(x,"piv"))return bi0;if(!P(x,"plusmn"))return Hi0;if(!P(x,"pound"))return qi0}else{if(!P(x,"ordf"))return Gi0;if(!P(x,"ordm"))return Qi0;if(!P(x,"oslash"))return Fi0;if(!P(x,"otilde"))return $i0;if(!P(x,"otimes"))return Zi0;if(!P(x,"ouml"))return Wi0;if(!P(x,"para"))return Bi0}}else{var A=Tx(x,"oacute");if(0<=A){if(0>=A)return Ki0;if(!P(x,"ocirc"))return zi0;if(!P(x,"oelig"))return Vi0;if(!P(x,"ograve"))return Yi0;if(!P(x,"oline"))return Xi0;if(!P(x,"omega"))return Ji0;if(!P(x,"omicron"))return ji0;if(!P(x,"oplus"))return Ui0}else{if(!P(x,"ne"))return Di0;if(!P(x,"ni"))return Mi0;if(!P(x,"not"))return Li0;if(!P(x,"notin"))return Ri0;if(!P(x,"nsub"))return Oi0;if(!P(x,"ntilde"))return Ii0;if(!P(x,"nu"))return Ci0}}}else{var N=Tx(x,"le");if(0<=N){if(0>=N)return Ni0;var C=Tx(x,"macr");if(0<=C){if(0>=C)return Pi0;if(!P(x,"mdash"))return Ai0;if(!P(x,"micro"))return gi0;if(!P(x,"middot"))return Ei0;if(!P(x,ND))return Si0;if(!P(x,"mu"))return Ti0;if(!P(x,"nabla"))return wi0;if(!P(x,"nbsp"))return _i0}else{if(!P(x,"lfloor"))return hi0;if(!P(x,"lowast"))return ki0;if(!P(x,"loz"))return mi0;if(!P(x,"lrm"))return yi0;if(!P(x,"lsaquo"))return di0;if(!P(x,"lsquo"))return pi0;if(!P(x,"lt"))return li0}}else{var O=Tx(x,"kappa");if(0<=O){if(0>=O)return ai0;if(!P(x,"lArr"))return vi0;if(!P(x,"lambda"))return oi0;if(!P(x,"lang"))return si0;if(!P(x,"laquo"))return ci0;if(!P(x,"larr"))return fi0;if(!P(x,"lceil"))return ii0;if(!P(x,"ldquo"))return ui0}else{if(!P(x,"igrave"))return ni0;if(!P(x,"image"))return ti0;if(!P(x,"infin"))return ei0;if(!P(x,"iota"))return ri0;if(!P(x,"iquest"))return xi0;if(!P(x,"isin"))return bu0;if(!P(x,"iuml"))return Hu0}}}}}else{var L=Tx(x,"aelig");if(0<=L){if(0>=L)return qu0;var M=Tx(x,"delta");if(0<=M){if(0>=M)return Gu0;var V=Tx(x,"fnof");if(0<=V){if(0>=V)return Qu0;var z=Tx(x,"gt");if(0<=z){if(0>=z)return Fu0;if(!P(x,"hArr"))return $u0;if(!P(x,"harr"))return Zu0;if(!P(x,"hearts"))return Wu0;if(!P(x,"hellip"))return Bu0;if(!P(x,"iacute"))return Ku0;if(!P(x,"icirc"))return zu0}else{if(!P(x,"forall"))return Vu0;if(!P(x,"frac12"))return Yu0;if(!P(x,"frac14"))return Xu0;if(!P(x,"frac34"))return Ju0;if(!P(x,"frasl"))return ju0;if(!P(x,"gamma"))return Uu0;if(!P(x,"ge"))return Du0}}else{var Y=Tx(x,"ensp");if(0<=Y){if(0>=Y)return Mu0;if(!P(x,"epsilon"))return Lu0;if(!P(x,"equiv"))return Ru0;if(!P(x,"eta"))return Ou0;if(!P(x,"eth"))return Iu0;if(!P(x,"euml"))return Cu0;if(!P(x,"euro"))return Nu0;if(!P(x,"exist"))return Pu0}else{if(!P(x,"diams"))return Au0;if(!P(x,"divide"))return gu0;if(!P(x,"eacute"))return Eu0;if(!P(x,"ecirc"))return Su0;if(!P(x,"egrave"))return Tu0;if(!P(x,se))return wu0;if(!P(x,"emsp"))return _u0}}}else{var t0=Tx(x,"cap");if(0<=t0){if(0>=t0)return hu0;var i0=Tx(x,"copy");if(0<=i0){if(0>=i0)return ku0;if(!P(x,"crarr"))return mu0;if(!P(x,"cup"))return yu0;if(!P(x,"curren"))return du0;if(!P(x,"dArr"))return pu0;if(!P(x,"dagger"))return lu0;if(!P(x,"darr"))return au0;if(!P(x,"deg"))return vu0}else{if(!P(x,"ccedil"))return ou0;if(!P(x,"cedil"))return su0;if(!P(x,"cent"))return cu0;if(!P(x,"chi"))return fu0;if(!P(x,"circ"))return iu0;if(!P(x,"clubs"))return uu0;if(!P(x,"cong"))return nu0}}else{var j=Tx(x,"aring");if(0<=j){if(0>=j)return tu0;if(!P(x,"asymp"))return eu0;if(!P(x,"atilde"))return ru0;if(!P(x,"auml"))return xu0;if(!P(x,"bdquo"))return b70;if(!P(x,"beta"))return H70;if(!P(x,"brvbar"))return q70;if(!P(x,"bull"))return G70}else{if(!P(x,"agrave"))return Q70;if(!P(x,"alefsym"))return F70;if(!P(x,"alpha"))return $70;if(!P(x,"amp"))return Z70;if(!P(x,"and"))return W70;if(!P(x,"ang"))return B70;if(!P(x,"apos"))return K70}}}}else{var K=Tx(x,"Nu");if(0<=K){if(0>=K)return z70;var J=Tx(x,"Sigma");if(0<=J){if(0>=J)return V70;var Q=Tx(x,"Uuml");if(0<=Q){if(0>=Q)return Y70;if(!P(x,"Xi"))return X70;if(!P(x,"Yacute"))return J70;if(!P(x,"Yuml"))return j70;if(!P(x,"Zeta"))return U70;if(!P(x,"aacute"))return D70;if(!P(x,"acirc"))return M70;if(!P(x,"acute"))return L70}else{if(!P(x,"THORN"))return R70;if(!P(x,"Tau"))return O70;if(!P(x,"Theta"))return I70;if(!P(x,"Uacute"))return C70;if(!P(x,"Ucirc"))return N70;if(!P(x,"Ugrave"))return P70;if(!P(x,"Upsilon"))return A70}}else{var x0=Tx(x,"Otilde");if(0<=x0){if(0>=x0)return g70;if(!P(x,"Ouml"))return E70;if(!P(x,"Phi"))return S70;if(!P(x,"Pi"))return T70;if(!P(x,"Prime"))return w70;if(!P(x,"Psi"))return _70;if(!P(x,"Rho"))return h70;if(!P(x,"Scaron"))return k70}else{if(!P(x,"OElig"))return m70;if(!P(x,"Oacute"))return y70;if(!P(x,"Ocirc"))return d70;if(!P(x,"Ograve"))return p70;if(!P(x,"Omega"))return l70;if(!P(x,"Omicron"))return a70;if(!P(x,"Oslash"))return v70}}}else{var $=Tx(x,"Eacute");if(0<=$){if(0>=$)return o70;var f0=Tx(x,"Icirc");if(0<=f0){if(0>=f0)return s70;if(!P(x,"Igrave"))return c70;if(!P(x,"Iota"))return f70;if(!P(x,"Iuml"))return i70;if(!P(x,"Kappa"))return u70;if(!P(x,"Lambda"))return n70;if(!P(x,"Mu"))return t70;if(!P(x,"Ntilde"))return e70}else{if(!P(x,"Ecirc"))return r70;if(!P(x,"Egrave"))return x70;if(!P(x,"Epsilon"))return bn0;if(!P(x,"Eta"))return Hn0;if(!P(x,"Euml"))return qn0;if(!P(x,"Gamma"))return Gn0;if(!P(x,"Iacute"))return Qn0}}else{var s0=Tx(x,"Atilde");if(0<=s0){if(0>=s0)return Fn0;if(!P(x,"Auml"))return $n0;if(!P(x,"Beta"))return Zn0;if(!P(x,"Ccedil"))return Wn0;if(!P(x,"Chi"))return Bn0;if(!P(x,"Dagger"))return Kn0;if(!P(x,"Delta"))return zn0;if(!P(x,"ETH"))return Vn0}else{if(!P(x,"'int'"))return Yn0;if(!P(x,"AElig"))return Xn0;if(!P(x,"Aacute"))return Jn0;if(!P(x,"Acirc"))return jn0;if(!P(x,"Agrave"))return Un0;if(!P(x,"Alpha"))return Dn0;if(!P(x,"Aring"))return Mn0}}}}}return 0},nz=function(x,r,e,t){for(var u=x;;){var i=function(x0){for(;;)if(e0(x0,8),QO(m(x0))!==0)return w(x0)};pr(t);var f=m(t),o=Ci>>0)var l=w(t);else switch(o){case 0:var l=3;break;case 1:var l=i(t);break;case 2:var l=4;break;case 3:e0(t,4);var l=pe(m(t))===0?4:w(t);break;case 4:e0(t,8);var d=$V(m(t));if(d===0){var k=EV(m(t));if(k===0)for(;;){var h=gV(m(t));if(h!==0){var l=h===1?6:w(t);break}}else if(k===1&&Pr(m(t))===0)for(;;){var g=BV(m(t));if(g!==0){var l=g===1?5:w(t);break}}else var l=w(t)}else if(d===1&&ar(m(t))===0){var A=zt(m(t));if(A===0){var N=zt(m(t));if(N===0){var C=zt(m(t));if(C===0){var O=zt(m(t));if(O===0){var L=zt(m(t));if(L===0)var M=zt(m(t)),l=M===0?YV(m(t))===0?7:w(t):M===1?7:w(t);else var l=L===1?7:w(t)}else var l=O===1?7:w(t)}else var l=C===1?7:w(t)}else var l=N===1?7:w(t)}else var l=A===1?7:w(t)}else var l=w(t);break;case 5:var l=0;break;case 6:e0(t,1);var l=QO(m(t))===0?i(t):w(t);break;default:e0(t,2);var l=QO(m(t))===0?i(t):w(t)}if(8>>0)return Ox(rn0);switch(l){case 0:return $a(t),u;case 1:return HO(u,Vr(u,t),tn0,en0);case 2:return HO(u,Vr(u,t),un0,nn0);case 3:return vt(u,Vr(u,t));case 4:var V=Yx(t);vr(e,V),vr(r,V);var u=z2(u,t);continue;case 5:var z=Yx(t),Y=m2(z,3,Xx(z)-4|0);vr(e,z),bc(r,ft(Fx(in0,Y)));continue;case 6:var t0=Yx(t),i0=m2(t0,2,Xx(t0)-3|0);vr(e,t0),bc(r,ft(i0));continue;case 7:var j=Yx(t),K=m2(j,1,Xx(j)-2|0);vr(e,j);var J=tz(K);J?bc(r,J[1]):vr(r,Fx(cn0,Fx(K,fn0)));continue;default:var Q=Yx(t);vr(e,Q),vr(r,Q);continue}}},tS0=function(x,r){pr(r);var e=bT0(m(r));if(14>>0)var t=w(r);else switch(e){case 0:var t=0;break;case 1:var t=14;break;case 2:if(e0(r,2),rs(m(r))===0){for(;;)if(e0(r,2),rs(m(r))!==0){var t=w(r);break}}else var t=w(r);break;case 3:var t=1;break;case 4:e0(r,1);var t=pe(m(r))===0?1:w(r);break;case 5:var t=12;break;case 6:var t=13;break;case 7:var t=10;break;case 8:e0(r,6);var u=My(m(r)),t=u===0?4:u===1?3:w(r);break;case 9:var t=9;break;case 10:var t=5;break;case 11:var t=11;break;case 12:var t=7;break;case 13:if(e0(r,14),Mo(m(r))===0){var i=Yv(m(r));if(i===0)var t=Pr(m(r))===0&&Pr(m(r))===0&&Pr(m(r))===0?13:w(r);else if(i===1&&Pr(m(r))===0)for(;;){var f=Xv(m(r));if(f!==0){var t=f===1?13:w(r);break}}else var t=w(r)}else var t=w(r);break;default:var t=8}if(14>>0)return Ox(Ln0);switch(t){case 0:return[0,x,Rr];case 1:return[2,z2(x,r)];case 2:return[2,x];case 3:var o=h2(x,r),l=Zr(Yr),d=Ha(x,l,r),k=d[1];return[1,k,Kt(k,o,d[2],l,0)];case 4:var h=h2(x,r),g=Zr(Yr),A=Vv(x,g,r),N=A[1];return[1,N,Kt(N,h,A[2],g,1)];case 5:return[0,x,98];case 6:return[0,x,De];case 7:return[0,x,99];case 8:return[0,x,0];case 9:return[0,x,86];case 10:return[0,x,10];case 11:return[0,x,82];case 12:var C=Yx(r),O=h2(x,r),L=Zr(Yr),M=Zr(Yr);vr(M,C);for(var V=Ar(C,"'"),z=x;;){pr(r);var Y=m(r),t0=39>>0)var i0=w(r);else switch(t0){case 0:var i0=2;break;case 1:for(;;){e0(r,7);var j=m(r),K=-1>>0)var E0=Ox(sn0);else switch(i0){case 0:if(!V){st(M,39),st(L,39);continue}var E0=z;break;case 1:if(V){st(M,34),st(L,34);continue}var E0=z;break;case 2:var E0=vt(z,Vr(z,r));break;case 3:var L0=Yx(r);vr(M,L0),vr(L,L0);var z=z2(z,r);continue;case 4:var X0=Yx(r),xx=m2(X0,3,Xx(X0)-4|0);vr(M,X0),bc(L,ft(Fx(on0,xx)));continue;case 5:var g0=Yx(r),$0=m2(g0,2,Xx(g0)-3|0);vr(M,g0),bc(L,ft($0));continue;case 6:var n0=Yx(r),ix=m2(n0,1,Xx(n0)-2|0);vr(M,n0);var rx=tz(ix);rx?bc(L,rx[1]):vr(L,Fx(an0,Fx(ix,vn0)));continue;default:var dx=Yx(r);vr(M,dx),vr(L,dx);continue}var ax=de(E0,r);vr(M,C);var Sx=U1(L),D0=U1(M);return[0,E0,[10,[0,E0[1],O,ax],Sx,D0]]}case 13:for(var N0=r[6];;){pr(r);var A0=m(r),Y0=Hr>>0)var C0=w(r);else switch(Y0){case 0:var C0=1;break;case 1:var C0=2;break;case 2:var C0=0;break;default:if(e0(r,2),Mo(m(r))===0){var F=Yv(m(r));if(F===0)var C0=Pr(m(r))===0&&Pr(m(r))===0&&Pr(m(r))===0?0:w(r);else if(F===1&&Pr(m(r))===0)for(;;){var H=Xv(m(r));if(H!==0){var C0=H===1?0:w(r);break}}else var C0=w(r)}else var C0=w(r)}if(2>>0)throw q0([0,wr,Jt0],1);switch(C0){case 0:continue;case 1:break;default:if(zO(bY(r)))continue;rV(r,1)}var B=r[3];MO(r,N0);var a0=t1(r),m0=ql(x,N0,B);return[0,x,[8,Zl(a0),m0]]}default:return[0,x,[7,Yx(r)]]}},nS0=function(x,r){pr(r);var e=m(r),t=-1>>0)var u=w(r);else switch(t){case 0:var u=5;break;case 1:if(e0(r,1),rs(m(r))===0){for(;;)if(e0(r,1),rs(m(r))!==0){var u=w(r);break}}else var u=w(r);break;case 2:var u=0;break;case 3:e0(r,0);var u=pe(m(r))===0?0:w(r);break;case 4:e0(r,5);var i=My(m(r)),u=i===0?3:i===1?2:w(r);break;default:var u=4}if(5>>0)return Ox(Cn0);switch(u){case 0:return[2,z2(x,r)];case 1:return[2,x];case 2:var f=h2(x,r),o=Zr(Yr),l=Ha(x,o,r),d=l[1];return[1,d,Kt(d,f,l[2],o,0)];case 3:var k=h2(x,r),h=Zr(Yr),g=Vv(x,h,r),A=g[1];return[1,A,Kt(A,k,g[2],h,1)];case 4:var N=h2(x,r),C=Zr(Yr),O=Zr(Yr),L=ez(x,C,O,r),M=L[1],V=L[2],z=de(M,r),Y=[0,M[1],N,z],t0=U1(O);return[0,M,[3,[0,Y,U1(C),t0,0,V]]];default:var i0=vt(x,Vr(x,r));return[0,i0,[3,[0,Vr(i0,r),On0,In0,0,1]]]}},uS0=function(x,r){function e(T){for(;;)if(e0(T,29),ar(m(T))!==0)return w(T)}function t(T){e0(T,28);var X=O1(m(T));if(X!==0)return X===1?e(T):w(T);for(;;)if(e0(T,26),ar(m(T))!==0)return w(T)}function u(T){e0(T,27);var X=O1(m(T));if(X!==0)return X===1?e(T):w(T);for(;;)if(e0(T,25),ar(m(T))!==0)return w(T)}function i(T){e0(T,30);var X=Qa(m(T));if(2>>0)return w(T);switch(X){case 0:return e(T);case 1:for(;;){e0(T,30);var F0=ts(m(T));if(3>>0)return w(T);switch(F0){case 0:return e(T);case 1:continue;case 2:x:for(;;){if(dr(m(T))!==0)return w(T);for(;;){e0(T,30);var sx=ts(m(T));if(3>>0)return w(T);switch(sx){case 0:return e(T);case 1:continue;case 2:continue x;default:return u(T)}}}default:return u(T)}}default:return u(T)}}function f(T){x:for(;;){if(dr(m(T))!==0)return w(T);for(;;){e0(T,30);var X=XV(m(T));if(4>>0)return w(T);switch(X){case 0:return e(T);case 1:return i(T);case 2:continue;case 3:continue x;default:return t(T)}}}}function o(T){for(;;)if(e0(T,19),ar(m(T))!==0)return w(T)}function l(T){for(;;)if(e0(T,19),ar(m(T))!==0)return w(T)}function d(T){for(;;)if(e0(T,13),ar(m(T))!==0)return w(T)}function k(T){for(;;)if(e0(T,13),ar(m(T))!==0)return w(T)}function h(T){for(;;)if(e0(T,9),ar(m(T))!==0)return w(T)}function g(T){for(;;)if(e0(T,9),ar(m(T))!==0)return w(T)}function A(T){for(;;)if(e0(T,15),ar(m(T))!==0)return w(T)}function N(T){e0(T,15);var X=O1(m(T));if(X!==0)return X===1?A(T):w(T);for(;;)if(e0(T,15),ar(m(T))!==0)return w(T)}function C(T){for(;;)if(e0(T,23),ar(m(T))!==0)return w(T)}function O(T){e0(T,22);var X=O1(m(T));if(X!==0)return X===1?C(T):w(T);for(;;)if(e0(T,21),ar(m(T))!==0)return w(T)}function L(T){for(;;)if(e0(T,23),ar(m(T))!==0)return w(T)}function M(T){e0(T,22);var X=O1(m(T));if(X!==0)return X===1?L(T):w(T);for(;;)if(e0(T,21),ar(m(T))!==0)return w(T)}function V(T){x:for(;;){if(dr(m(T))!==0)return w(T);for(;;){e0(T,24);var X=ts(m(T));if(3>>0)return w(T);switch(X){case 0:return L(T);case 1:continue;case 2:continue x;default:return M(T)}}}}function z(T){e0(T,29);var X=VV(m(T));if(3>>0)return w(T);switch(X){case 0:return e(T);case 1:var F0=Io(m(T));if(F0===0)for(;;){e0(T,24);var sx=Qa(m(T));if(2>>0)return w(T);switch(sx){case 0:return L(T);case 1:continue;default:return M(T)}}if(F0!==1)return w(T);for(;;){e0(T,24);var ex=ts(m(T));if(3>>0)return w(T);switch(ex){case 0:return L(T);case 1:continue;case 2:return V(T);default:return M(T)}}case 2:for(;;){e0(T,24);var U0=Qa(m(T));if(2>>0)return w(T);switch(U0){case 0:return C(T);case 1:continue;default:return O(T)}}default:for(;;){e0(T,24);var Nx=ts(m(T));if(3>>0)return w(T);switch(Nx){case 0:return C(T);case 1:continue;case 2:return V(T);default:return O(T)}}}}function Y(T){e0(T,30);var X=IV(m(T));if(3>>0)return w(T);switch(X){case 0:return e(T);case 1:for(;;){e0(T,30);var F0=Oo(m(T));if(4>>0)return w(T);switch(F0){case 0:return e(T);case 1:continue;case 2:return z(T);case 3:x:for(;;){if(dr(m(T))!==0)return w(T);for(;;){e0(T,30);var sx=Oo(m(T));if(4>>0)return w(T);switch(sx){case 0:return e(T);case 1:continue;case 2:return z(T);case 3:continue x;default:return u(T)}}}default:return u(T)}}case 2:return z(T);default:return u(T)}}function t0(T){return Iy(m(T))===0&&Ay(m(T))===0&&KV(m(T))===0&&RV(m(T))===0&&LV(m(T))===0&&qO(m(T))===0&&Ql(m(T))===0&&Iy(m(T))===0&&Mo(m(T))===0&&MV(m(T))===0&&Gl(m(T))===0?3:w(T)}function i0(T){return e0(T,3),ZV(m(T))===0?3:w(T)}function j(T){var X=HT0(m(T));if(30>>0)return w(T);switch(X){case 0:return 64;case 1:return 65;case 2:if(e0(T,1),rs(m(T))!==0)return w(T);for(;;)if(e0(T,1),rs(m(T))!==0)return w(T);case 3:return 0;case 4:return e0(T,0),pe(m(T))===0?0:w(T);case 5:return 6;case 6:return 63;case 7:if(e0(T,65),Ql(m(T))!==0)return w(T);var F0=m(T),sx=fn>>0)return w(T);switch(Gx){case 0:return e(T);case 1:continue;case 2:return z(T);case 3:x:for(;;){if(dr(m(T))!==0)return w(T);for(;;){e0(T,30);var J0=Oo(m(T));if(4>>0)return w(T);switch(J0){case 0:return e(T);case 1:continue;case 2:return z(T);case 3:continue x;default:return u(T)}}}default:return u(T)}}case 16:e0(T,65);var bx=My(m(T));if(bx!==0)return bx===1?5:w(T);e0(T,2);var Jx=_y(m(T));if(2>>0)return w(T);switch(Jx){case 0:for(;;){var W0=_y(m(T));if(2>>0)return w(T);switch(W0){case 0:continue;case 1:return i0(T);default:return t0(T)}}case 1:return i0(T);default:return t0(T)}case 17:e0(T,30);var nr=UV(m(T));if(8>>0)return w(T);switch(nr){case 0:return e(T);case 1:return Y(T);case 2:for(;;){e0(T,16);var V0=zV(m(T));if(4>>0)return w(T);switch(V0){case 0:return A(T);case 1:return i(T);case 2:continue;case 3:for(;;){e0(T,15);var Sr=hy(m(T));if(3>>0)return w(T);switch(Sr){case 0:return A(T);case 1:return i(T);case 2:continue;default:return N(T)}}default:return N(T)}}case 3:for(;;){e0(T,30);var Ur=hy(m(T));if(3>>0)return w(T);switch(Ur){case 0:return e(T);case 1:return i(T);case 2:continue;default:return t(T)}}case 4:e0(T,29);var lx=DV(m(T));if(lx===0)return e(T);if(lx!==1)return w(T);for(;;){e0(T,10);var br=Dy(m(T));if(3
    >>0)return w(T);switch(br){case 0:return g(T);case 1:continue;case 2:x:for(;;){if(es(m(T))!==0)return w(T);for(;;){e0(T,10);var e2=Dy(m(T));if(3>>0)return w(T);switch(e2){case 0:return h(T);case 1:continue;case 2:continue x;default:e0(T,8);var h1=O1(m(T));if(h1!==0)return h1===1?h(T):w(T);for(;;)if(e0(T,7),ar(m(T))!==0)return w(T)}}}default:e0(T,8);var Ir=O1(m(T));if(Ir!==0)return Ir===1?g(T):w(T);for(;;)if(e0(T,7),ar(m(T))!==0)return w(T)}}case 5:return z(T);case 6:e0(T,29);var R1=jV(m(T));if(R1===0)return e(T);if(R1!==1)return w(T);for(;;){e0(T,14);var _=Ly(m(T));if(3<_>>>0)return w(T);switch(_){case 0:return k(T);case 1:continue;case 2:x:for(;;){if(V2(m(T))!==0)return w(T);for(;;){e0(T,14);var b=Ly(m(T));if(3>>0)return w(T);switch(b){case 0:return d(T);case 1:continue;case 2:continue x;default:e0(T,12);var r0=O1(m(T));if(r0!==0)return r0===1?d(T):w(T);for(;;)if(e0(T,11),ar(m(T))!==0)return w(T)}}}default:e0(T,12);var S0=O1(m(T));if(S0!==0)return S0===1?k(T):w(T);for(;;)if(e0(T,11),ar(m(T))!==0)return w(T)}}case 7:e0(T,29);var G=AV(m(T));if(G===0)return e(T);if(G!==1)return w(T);for(;;){e0(T,20);var h0=Uy(m(T));if(3>>0)return w(T);switch(h0){case 0:return l(T);case 1:continue;case 2:x:for(;;){if(Pr(m(T))!==0)return w(T);for(;;){e0(T,20);var z0=Uy(m(T));if(3>>0)return w(T);switch(z0){case 0:return o(T);case 1:continue;case 2:continue x;default:e0(T,18);var M0=O1(m(T));if(M0!==0)return M0===1?o(T):w(T);for(;;)if(e0(T,17),ar(m(T))!==0)return w(T)}}}default:e0(T,18);var ux=O1(m(T));if(ux!==0)return ux===1?l(T):w(T);for(;;)if(e0(T,17),ar(m(T))!==0)return w(T)}}default:return t(T)}case 18:e0(T,30);var Zx=Ty(m(T));if(5>>0)return w(T);switch(Zx){case 0:return e(T);case 1:return Y(T);case 2:for(;;){e0(T,30);var Lx=Ty(m(T));if(5>>0)return w(T);switch(Lx){case 0:return e(T);case 1:return Y(T);case 2:continue;case 3:return z(T);case 4:return f(T);default:return t(T)}}case 3:return z(T);case 4:return f(T);default:return t(T)}case 19:return 44;case 20:return 42;case 21:return 49;case 22:e0(T,51);var tr=m(T),$x=61>>0)return Ox(gn0);var J=K;if(33>J)switch(J){case 0:return[2,z2(x,r)];case 1:return[2,x];case 2:var Q=h2(x,r),x0=Zr(Yr),$=Vv(x,x0,r),f0=$[1];return[1,f0,Kt(f0,Q,$[2],x0,1)];case 3:var s0=Yx(r);if(!x[5]){var v0=h2(x,r),o0=Zr(Yr);vr(o0,s0);var c0=Vv(x,o0,r),d0=c0[1];return[1,d0,Kt(d0,v0,c0[2],o0,1)]}var E0=x[4]?GV(x,Vr(x,r),s0):x,L0=ay(1,E0),X0=cy(r);return Ar(Wl(r,X0-1|0,1),Cv)&&P(Wl(r,X0-2|0,1),Cv)?[0,L0,86]:[2,L0];case 4:if(x[4])return[2,ay(0,x)];$a(r),pr(r);var xx=CV(m(r))===0?0:w(r);return xx===0?[0,x,l2]:Ox(An0);case 5:var g0=h2(x,r),$0=Zr(Yr),n0=Ha(x,$0,r),ix=n0[1];return[1,ix,Kt(ix,g0,n0[2],$0,0)];case 6:var rx=Yx(r),dx=h2(x,r),ax=Zr(Yr),Sx=Zr(Yr);vr(Sx,rx);var D0=rz(x,rx,ax,Sx,0,r),N0=D0[1],A0=D0[3],Y0=[0,N0[1],dx,D0[2]],C0=U1(Sx);return[0,N0,[2,[0,Y0,U1(ax),C0,A0]]];case 7:return A1(x,r,function(T,X){if(pr(X),le(m(X))===0&&Ey(m(X))===0&&es(m(X))===0)for(;;){var F0=my(m(X));if(2>>0)var U0=w(X);else switch(F0){case 0:continue;case 1:x:for(;;){if(es(m(X))===0)for(;;){var sx=my(m(X));if(2>>0)var ex=w(X);else switch(sx){case 0:continue;case 1:continue x;default:var ex=0}break}else var ex=w(X);var U0=ex;break}break;default:var U0=0}break}else var U0=w(X);return U0===0?[0,T,Wt(0,t1(X))]:Ox(En0)});case 8:return[0,x,Wt(0,t1(r))];case 9:return A1(x,r,function(T,X){if(pr(X),le(m(X))===0&&Ey(m(X))===0&&es(m(X))===0)for(;;){e0(X,0);var F0=yy(m(X));if(F0!==0){if(F0===1)x:for(;;){if(es(m(X))===0)for(;;){e0(X,0);var sx=yy(m(X));if(sx!==0){if(sx===1)continue x;var ex=w(X);break}}else var ex=w(X);var U0=ex;break}else var U0=w(X);break}}else var U0=w(X);return U0===0?[0,T,Bt(0,t1(X))]:Ox(Sn0)});case 10:return[0,x,Bt(0,t1(r))];case 11:return A1(x,r,function(T,X){if(pr(X),le(m(X))===0&&Ny(m(X))===0&&V2(m(X))===0)for(;;){var F0=Sy(m(X));if(2>>0)var U0=w(X);else switch(F0){case 0:continue;case 1:x:for(;;){if(V2(m(X))===0)for(;;){var sx=Sy(m(X));if(2>>0)var ex=w(X);else switch(sx){case 0:continue;case 1:continue x;default:var ex=0}break}else var ex=w(X);var U0=ex;break}break;default:var U0=0}break}else var U0=w(X);return U0===0?[0,T,Wt(1,t1(X))]:Ox(Tn0)});case 12:return[0,x,Wt(1,t1(r))];case 13:return A1(x,r,function(T,X){if(pr(X),le(m(X))===0&&Ny(m(X))===0&&V2(m(X))===0)for(;;){e0(X,0);var F0=wy(m(X));if(F0!==0){if(F0===1)x:for(;;){if(V2(m(X))===0)for(;;){e0(X,0);var sx=wy(m(X));if(sx!==0){if(sx===1)continue x;var ex=w(X);break}}else var ex=w(X);var U0=ex;break}else var U0=w(X);break}}else var U0=w(X);return U0===0?[0,T,Bt(3,t1(X))]:Ox(wn0)});case 14:return[0,x,Bt(3,t1(r))];case 15:return A1(x,r,function(T,X){if(pr(X),le(m(X))===0&&V2(m(X))===0){for(;;)if(e0(X,0),V2(m(X))!==0){var F0=w(X);break}}else var F0=w(X);return F0===0?[0,T,Bt(1,t1(X))]:Ox(_n0)});case 16:return[0,x,Bt(1,t1(r))];case 17:return A1(x,r,function(T,X){if(pr(X),le(m(X))===0&&py(m(X))===0&&Pr(m(X))===0)for(;;){var F0=ky(m(X));if(2>>0)var U0=w(X);else switch(F0){case 0:continue;case 1:x:for(;;){if(Pr(m(X))===0)for(;;){var sx=ky(m(X));if(2>>0)var ex=w(X);else switch(sx){case 0:continue;case 1:continue x;default:var ex=0}break}else var ex=w(X);var U0=ex;break}break;default:var U0=0}break}else var U0=w(X);return U0===0?[0,T,Wt(2,t1(X))]:Ox(hn0)});case 18:return[0,x,Wt(2,t1(r))];case 19:return A1(x,r,function(T,X){if(pr(X),le(m(X))===0&&py(m(X))===0&&Pr(m(X))===0)for(;;){e0(X,0);var F0=Oy(m(X));if(F0!==0){if(F0===1)x:for(;;){if(Pr(m(X))===0)for(;;){e0(X,0);var sx=Oy(m(X));if(sx!==0){if(sx===1)continue x;var ex=w(X);break}}else var ex=w(X);var U0=ex;break}else var U0=w(X);break}}else var U0=w(X);return U0===0?[0,T,Bt(4,t1(X))]:Ox(kn0)});case 20:return[0,x,Bt(4,t1(r))];case 21:return A1(x,r,function(T,X){function F0(V0){for(;;){var Sr=Vt(m(V0));if(2>>0)return w(V0);switch(Sr){case 0:continue;case 1:x:for(;;){if(dr(m(V0))!==0)return w(V0);for(;;){var Ur=Vt(m(V0));if(2>>0)return w(V0);switch(Ur){case 0:continue;case 1:continue x;default:return 0}}}default:return 0}}}function sx(V0){for(;;){var Sr=Ga(m(V0));if(Sr!==0)return Sr===1?0:w(V0)}}function ex(V0){var Sr=jy(m(V0));if(2>>0)return w(V0);switch(Sr){case 0:var Ur=Io(m(V0));return Ur===0?sx(V0):Ur===1?F0(V0):w(V0);case 1:return sx(V0);default:return F0(V0)}}function U0(V0){var Sr=Cy(m(V0));if(Sr!==0)return Sr===1?ex(V0):w(V0);for(;;){var Ur=xe(m(V0));if(2>>0)return w(V0);switch(Ur){case 0:continue;case 1:return ex(V0);default:x:for(;;){if(dr(m(V0))!==0)return w(V0);for(;;){var lx=xe(m(V0));if(2>>0)return w(V0);switch(lx){case 0:continue;case 1:return ex(V0);default:continue x}}}}}}pr(X);var Nx=Co(m(X));if(2>>0)var mx=w(X);else switch(Nx){case 0:if(dr(m(X))===0)for(;;){var Bx=xe(m(X));if(2>>0)var mx=w(X);else switch(Bx){case 0:continue;case 1:var mx=ex(X);break;default:x:for(;;){if(dr(m(X))===0)for(;;){var Gx=xe(m(X));if(2>>0)var J0=w(X);else switch(Gx){case 0:continue;case 1:var J0=ex(X);break;default:continue x}break}else var J0=w(X);var mx=J0;break}}break}else var mx=w(X);break;case 1:var bx=dy(m(X)),mx=bx===0?U0(X):bx===1?ex(X):w(X);break;default:for(;;){var Jx=Py(m(X));if(2>>0)var mx=w(X);else switch(Jx){case 0:var mx=U0(X);break;case 1:continue;default:var mx=ex(X)}break}}if(mx!==0)return Ox(mn0);var W0=t1(X),nr=_2(T,Vr(T,X),48);return[0,nr,Wt(2,W0)]});case 22:var F=t1(r),H=_2(x,Vr(x,r),48);return[0,H,Wt(2,F)];case 23:return A1(x,r,function(T,X){function F0(W0){for(;;){e0(W0,0);var nr=Ro(m(W0));if(nr!==0){if(nr!==1)return w(W0);x:for(;;){if(dr(m(W0))!==0)return w(W0);for(;;){e0(W0,0);var V0=Ro(m(W0));if(V0!==0){if(V0===1)continue x;return w(W0)}}}}}}function sx(W0){for(;;)if(e0(W0,0),dr(m(W0))!==0)return w(W0)}function ex(W0){var nr=jy(m(W0));if(2>>0)return w(W0);switch(nr){case 0:var V0=Io(m(W0));return V0===0?sx(W0):V0===1?F0(W0):w(W0);case 1:return sx(W0);default:return F0(W0)}}function U0(W0){var nr=Cy(m(W0));if(nr!==0)return nr===1?ex(W0):w(W0);for(;;){var V0=xe(m(W0));if(2>>0)return w(W0);switch(V0){case 0:continue;case 1:return ex(W0);default:x:for(;;){if(dr(m(W0))!==0)return w(W0);for(;;){var Sr=xe(m(W0));if(2>>0)return w(W0);switch(Sr){case 0:continue;case 1:return ex(W0);default:continue x}}}}}}pr(X);var Nx=Co(m(X));if(2>>0)var mx=w(X);else switch(Nx){case 0:if(dr(m(X))===0)for(;;){var Bx=xe(m(X));if(2>>0)var mx=w(X);else switch(Bx){case 0:continue;case 1:var mx=ex(X);break;default:x:for(;;){if(dr(m(X))===0)for(;;){var Gx=xe(m(X));if(2>>0)var J0=w(X);else switch(Gx){case 0:continue;case 1:var J0=ex(X);break;default:continue x}break}else var J0=w(X);var mx=J0;break}}break}else var mx=w(X);break;case 1:var bx=dy(m(X)),mx=bx===0?U0(X):bx===1?ex(X):w(X);break;default:for(;;){var Jx=Py(m(X));if(2>>0)var mx=w(X);else switch(Jx){case 0:var mx=U0(X);break;case 1:continue;default:var mx=ex(X)}break}}return mx===0?[0,T,Bt(4,t1(X))]:Ox(yn0)});case 24:return[0,x,Bt(4,t1(r))];case 25:return A1(x,r,function(T,X){function F0(Jx){for(;;){var W0=Vt(m(Jx));if(2>>0)return w(Jx);switch(W0){case 0:continue;case 1:x:for(;;){if(dr(m(Jx))!==0)return w(Jx);for(;;){var nr=Vt(m(Jx));if(2>>0)return w(Jx);switch(nr){case 0:continue;case 1:continue x;default:return 0}}}default:return 0}}}function sx(Jx){var W0=Ga(m(Jx));return W0===0?F0(Jx):W0===1?0:w(Jx)}pr(X);var ex=Co(m(X));if(2>>0)var U0=w(X);else switch(ex){case 0:var U0=dr(m(X))===0?F0(X):w(X);break;case 1:for(;;){var Nx=qa(m(X));if(Nx===0)var U0=sx(X);else{if(Nx===1)continue;var U0=w(X)}break}break;default:for(;;){var mx=Lo(m(X));if(2>>0)var U0=w(X);else switch(mx){case 0:var U0=sx(X);break;case 1:continue;default:x:for(;;){if(dr(m(X))===0)for(;;){var Bx=Lo(m(X));if(2>>0)var Gx=w(X);else switch(Bx){case 0:var Gx=sx(X);break;case 1:continue;default:continue x}break}else var Gx=w(X);var U0=Gx;break}}break}}if(U0!==0)return Ox(dn0);var J0=t1(X),bx=_2(T,Vr(T,X),39);return[0,bx,Wt(2,J0)]});case 26:return A1(x,r,function(T,X){pr(X);var F0=Io(m(X));if(F0===0)for(;;){var sx=Ga(m(X));if(sx!==0){var mx=sx===1?0:w(X);break}}else if(F0===1)for(;;){var ex=Vt(m(X));if(2>>0)var mx=w(X);else switch(ex){case 0:continue;case 1:x:for(;;){if(dr(m(X))===0)for(;;){var U0=Vt(m(X));if(2>>0)var Nx=w(X);else switch(U0){case 0:continue;case 1:continue x;default:var Nx=0}break}else var Nx=w(X);var mx=Nx;break}break;default:var mx=0}break}else var mx=w(X);return mx===0?[0,T,Wt(2,t1(X))]:Ox(pn0)});case 27:var B=t1(r),a0=_2(x,Vr(x,r),39);return[0,a0,Wt(2,B)];case 28:return[0,x,Wt(2,t1(r))];case 29:return A1(x,r,function(T,X){function F0(J0){for(;;){e0(J0,0);var bx=Ro(m(J0));if(bx!==0){if(bx!==1)return w(J0);x:for(;;){if(dr(m(J0))!==0)return w(J0);for(;;){e0(J0,0);var Jx=Ro(m(J0));if(Jx!==0){if(Jx===1)continue x;return w(J0)}}}}}}function sx(J0){return e0(J0,0),dr(m(J0))===0?F0(J0):w(J0)}pr(X);var ex=Co(m(X));if(2>>0)var U0=w(X);else switch(ex){case 0:var U0=dr(m(X))===0?F0(X):w(X);break;case 1:for(;;){e0(X,0);var Nx=qa(m(X));if(Nx===0)var U0=sx(X);else{if(Nx===1)continue;var U0=w(X)}break}break;default:for(;;){e0(X,0);var mx=Lo(m(X));if(2>>0)var U0=w(X);else switch(mx){case 0:var U0=sx(X);break;case 1:continue;default:x:for(;;){if(dr(m(X))===0)for(;;){e0(X,0);var Bx=Lo(m(X));if(2>>0)var Gx=w(X);else switch(Bx){case 0:var Gx=sx(X);break;case 1:continue;default:continue x}break}else var Gx=w(X);var U0=Gx;break}}break}}return U0===0?[0,T,Bt(4,t1(X))]:Ox(ln0)});case 30:return[0,x,Bt(4,t1(r))];case 31:return[0,x,66];default:return[0,x,6]}switch(J){case 33:return[0,x,7];case 34:return[0,x,0];case 35:return[0,x,1];case 36:return[0,x,2];case 37:return[0,x,3];case 38:return[0,x,4];case 39:return[0,x,5];case 40:return[0,x,12];case 41:return[0,x,10];case 42:return[0,x,8];case 43:return[0,x,9];case 44:return[0,x,86];case 45:return[0,x,83];case 46:return[0,x,85];case 47:return[0,x,6];case 48:return[0,x,7];case 49:return[0,x,98];case 50:return[0,x,99];case 51:return[0,x,82];case 52:return[0,x,85];case 53:return[0,x,l2];case 54:return[0,x,86];case 55:return[0,x,88];case 56:return[0,x,87];case 57:return[0,x,89];case 58:return[0,x,91];case 59:return[0,x,11];case 60:return[0,x,82];case 61:return[0,x,fn];case 62:return[0,x,Dt];case 63:var m0=r[6];FV(r);var P0=ql(x,m0,r[3]);MO(r,m0);var D=t1(r),O0=bV(x,D),K0=O0[2],j0=O0[1],ox=Tx(K0,sp);if(0<=ox){if(0>=ox)return[0,j0,Os];var b0=Tx(K0,wx);if(0<=b0){if(0>=b0)return[0,j0,H3];if(!P(K0,Ss))return[0,j0,31];if(!P(K0,Ts))return[0,j0,46];if(!P(K0,q5))return[0,j0,Oa];if(!P(K0,g5))return[0,j0,Hr];if(!P(K0,Ps))return[0,j0,Af]}else{if(!P(K0,P8))return[0,j0,Rt];if(!P(K0,mv))return[0,j0,29];if(!P(K0,ka))return[0,j0,po];if(!P(K0,Ta))return[0,j0,L4];if(!P(K0,je))return[0,j0,42];if(!P(K0,La))return[0,j0,xl]}}else{var _x=Tx(K0,Oc);if(0<=_x){if(0>=_x)return[0,j0,41];if(!P(K0,As))return[0,j0,30];if(!P(K0,OU))return[0,j0,Yr];if(!P(K0,Q2))return[0,j0,53];if(!P(K0,al))return[0,j0,m1];if(!P(K0,A8))return[0,j0,Ci]}else{if(!P(K0,t5))return[0,j0,ut];if(!P(K0,ya))return[0,j0,dl];if(!P(K0,kv))return[0,j0,pa];if(!P(K0,T5))return[0,j0,Nn0];if(!P(K0,F3))return[0,j0,Pn0];if(!P(K0,se))return[0,j0,Ns]}}return[0,j0,[4,P0,K0,Zl(D)]];case 64:var B0=x[4]?_2(x,Vr(x,r),96):x;return[0,B0,Rr];default:return[0,x,[7,Yx(r)]]}},Hl=function(x){return function(r){for(var e=0,t=r;;){var u=p(x,t,t[2]);switch(u[0]){case 0:var i=u[2],f=u[1],o=QV(f,i),l=e===0?0:Ax(e),d=f[6];if(d===0)return[0,[0,f[1],f[2],f[3],f[4],f[5],f[6],o],[0,i,o,0,l]];var k=[0,i,o,Ax(d),l];return[0,[0,f[1],f[2],f[3],f[4],f[5],hV,o],k];case 1:var h=u[2],g=u[1],e=[0,h,e],t=[0,g[1],g[2],g[3],g[4],g[5],g[6],h[1]];continue;default:var t=u[1];continue}}}},iS0=Hl(eS0),fS0=Hl(tS0),cS0=Hl(nS0),sS0=Hl(uS0),oS0=Hl(xS0),w2=oV([0,mT0]),bl=function(x,r){return[0,0,0,r,_V(x)]},Xy=function(x){var r=x[4];switch(x[3]){case 0:var K=a(oS0,r);break;case 1:var K=a(sS0,r);break;case 2:var K=a(fS0,r);break;case 3:var e=de(r,r[2]),t=Zr(Yr),u=Zr(Yr),i=r[2];pr(i);var f=m(i),o=Rt>>0)var l=w(i);else switch(o){case 0:var l=1;break;case 1:var l=4;break;case 2:var l=0;break;case 3:e0(i,0);var l=pe(m(i))===0?0:w(i);break;case 4:var l=2;break;default:var l=3}if(4>>0)var d=Ox(Rn0);else switch(l){case 0:var k=Yx(i);vr(u,k),vr(t,k);var h=nz(z2(r,i),t,u,i),g=de(h,i),A=U1(t),N=U1(u),d=[0,h,[9,[0,h[1],e,g],A,N]];break;case 1:var d=[0,r,Rr];break;case 2:var d=[0,r,98];break;case 3:var d=[0,r,0];break;default:$a(i);var C=nz(r,t,u,i),O=de(C,i),L=U1(t),M=U1(u),d=[0,C,[9,[0,C[1],e,O],L,M]]}var V=d[2],z=d[1],Y=QV(z,V),t0=z[6];if(t0===0)var j=[0,z,[0,V,Y,0,0]];else var i0=[0,V,Y,Ax(t0),0],j=[0,[0,z[1],z[2],z[3],z[4],z[5],0,z[7]],i0];var K=j;break;case 4:var K=a(cS0,r);break;default:var K=a(iS0,r)}var J=K[1],Q=K[2],x0=[0,_V(J),Q];return x[4]=J,x[1]?x[2]=[0,x0]:x[1]=[0,x0],x0},uz=function(x){var r=x[1];return r?r[1][2]:Xy(x)[2]},ba=function(x){return Rl(x[24][1])},k1=function(x){return x[28][4]},nx=function(x,r){var e=r[2];x[1][1]=[0,[0,r[1],e],x[1][1]];var t=x[23];return t?p(t[1],x,e):0},x6=function(x,r){return x[31][1]=r,0},Do=function(x,r){if(x===0)return uz(r[26][1]);if(x!==1)throw q0([0,wr,vs0],1);var e=r[26][1];e[1]||Xy(e);var t=e[2];return t?t[1][2]:Xy(e)[2]},Qs=function(x,r){return x===r[5]?r:[0,r[1],r[2],r[3],r[4],x,r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},iz=function(x,r){return x===r[10]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],x,r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},bO=function(x,r){return x===r[18]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],x,r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},xR=function(x,r){return x===r[19]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],x,r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},fz=function(x,r){return x===r[20]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],x,r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},zv=function(x,r){return x===r[22]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],x,r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},rR=function(x,r){return x===r[14]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],x,r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},r6=function(x,r){return x===r[8]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],x,r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},e6=function(x,r){return x===r[12]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],x,r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},Kv=function(x,r){return x===r[15]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],x,r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},eR=function(x,r){return x===r[16]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],x,r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},cz=function(x,r){return x===r[6]?r:[0,r[1],r[2],r[3],r[4],r[5],x,r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},sz=function(x,r){return x===r[7]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],x,r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},tR=function(x,r){return x===r[13]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],x,r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},Yy=function(x,r){return[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],[0,x],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},nR=function(x){function r(e){return nx(x,e)}return function(e){return g2(r,e)}},x3=function(x){var r=x[4][1];return r?[0,r[1][2]]:0},oz=function(x){var r=x[4][1];return r?[0,r[1][1]]:0},vz=function(x){return[0,x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14],x[15],x[16],x[17],x[18],x[19],x[20],x[21],x[22],0,x[24],x[25],x[26],x[27],x[28],x[29],x[30],x[31]]},az=function(x,r,e,t){return[0,x[1],x[2],w2[1],x[4],x[5],0,0,0,0,0,1,x[12],x[13],x[14],x[15],x[16],x[17],e,r,x[20],t,x[22],x[23],x[24],x[25],x[26],x[27],x[28],x[29],x[30],x[31]]},r3=function(x){return P(x,_v)&&P(x,Q2)&&P(x,da)&&P(x,Wp)&&P(x,kl)&&P(x,B3)&&P(x,j3)&&P(x,je)&&P(x,j2)?0:1},Bv=function(x){return P(x,kP)&&P(x,"eval")?0:1},Vy=function(x){var r=Tx(x,Qp),e=0;if(0<=r){if(0>>0){if(L2>=t+1>>>0)return 1}else if(t===6)return 0}return n6(x,r)},e3=function(x){return dz(0,x)},Uo=function(x,r){var e=kr(x,r),t=0;if(typeof e=="number")switch(e){case 28:case 42:case 52:case 53:case 54:case 55:case 56:case 57:case 58:var u=1;break;default:t=1}else if(e[0]===4)var u=r3(e[2]);else t=1;if(t)var u=0;if(u)return 1;var i=0;if(typeof e=="number")switch(e){case 14:case 48:case 60:case 61:case 62:case 63:case 64:case 65:case 126:i=1;break}else e[0]===4&&(i=1);return i?1:0},zy=function(x,r){return lz(r,kr(x,r))},yz=function(x,r){var e=Uo(x,r);return e||zy(x,r)},ns=function(x){return Uo(0,x)},jo=function(x){var r=W(x)===15?1:0;if(r)var e=r;else{var t=W(x)===64?1:0;if(t){var u=kr(1,x)===15?1:0;if(u)var i=t6(1,x)[2][1],e=Px(x)[3][1]===i?1:0;else var e=u}else var e=t}return e},u6=function(x){var r=W(x);if(typeof r=="number")switch(r){case 13:case 40:return 1}else if(r[0]===4&&!P(r[3],Wh)&&kr(1,x)===40)return 1;return 0},fR=function(x){var r=x[28][1];if(r){var e=W(x);if(typeof e!="number"&&e[0]===4&&!P(e[3],lo)&&Uo(1,x))return 1;var t=0}else var t=r;return t},cR=function(x){var r=W(x);return typeof r!="number"&&r[0]===4&&!P(r[3],Z1)?1:0},Vx=function(x,r){return nx(x,[0,Px(x),r])},mz=function(x,r){var e=$O(0,r);return x?[26,e,x[1]]:[24,e]},S1=function(x,r){var e=iR(r);return a(nR(r),e),Vx(r,mz(x,W(r)))},Ky=function(x){function r(e){return nx(x,[0,e[1],Rr])}return function(e){return g2(r,e)}},kz=function(x,r){var e=x[6]?H0(Tr(cs0),r,r,r):ss0;return S1([0,e],x)},Zt=function(x,r){var e=x[5];return e&&Vx(x,r)},at=function(x,r){var e=x[5],t=r[2],u=r[1];return e&&nx(x,[0,u,t])},Wv=function(x,r){return nx(x,[0,r,[14,x[5]]])},Z0=function(x){var r=x[27][1];if(r){var e=r[1],t=ba(x),u=W(x);a(e,[0,Px(x),u,t])}var i=x[26][1],f=i[1],o=f?f[1][1]:Xy(i)[1];x[25][1]=o;var l=iR(x);a(nR(x),l);var d=x[2][1],k=Hc(Do(0,x)[4],d);x[2][1]=k;var h=[0,Do(0,x)];x[4][1]=h;var g=x[26][1];return g[2]?(g[1]=g[2],g[2]=0,0):(uz(g),g[1]=0,0)},o1=function(x,r){var e=p(KO,W(x),r);return e&&Z0(x),e},J1=function(x,r){x[24][1]=[0,r,x[24][1]];var e=ba(x),t=bl(x[25][1],e);return x[26][1]=t,0},K1=function(x){var r=x[24][1],e=r?r[2]:Ox(fs0);x[24][1]=e;var t=ba(x),u=bl(x[25][1],t);return x[26][1]=u,0},hx=function(x){var r=Px(x);if(W(x)===9&&n6(1,x)){var e=w0(x),t=Do(1,x)[4],u=Qx(e,a(Ml(function(f){return f[1][2][1]<=r[3][1]?1:0}),t));return x6(x,[0,r[3][1]+1|0,0]),u}var i=w0(x);return x6(x,r[3]),i},Jo=function(x){var r=x[4][1];if(!r)return 0;var e=r[1][2],t=w0(x),u=a(Ml(function(i){return i[1][2][1]<=e[3][1]?1:0}),t);return x6(x,[0,e[3][1]+1|0,0]),u},qs=function(x,r){return S1([0,$O(ns0,r)],x)},u0=function(x,r){return 1-p(KO,W(x),r)&&qs(x,r),Z0(x)},hz=function(x,r){var e=o1(x,r);return 1-e&&qs(x,r),e},By=function(x,r){return hz(x,r),0},Hs=function(x,r){var e=W(x),t=0;return typeof e!="number"&&e[0]===4&&Ar(e[3],r)&&(t=1),t||S1([0,a(Tr(ts0),r)],x),Z0(x)},us=[Gr,ms0,Js(0)],_z=function(x,r,e){if(!e)return 0;var t=e[1],u=t[1],i=t[2];if(r[27][1]=[0,u],!x)return x;for(var f=i[2];;){if(!f)return 0;var o=f[2];a(u,f[1]);var f=o}},sR=function(x,r){var e=x[27][1];if(e){var t=e[1],u=uY(0),i=[0,function(V){return iO(V,u)}];x[27][1]=i;var f=[0,[0,t,u]]}else var f=0;var o=x[31][1],l=x[25][1],d=x[24][1],k=x[4][1],h=x[2][1],g=x[1][1];try{var A=a(r,x);_z(1,x,f);var N=[0,A];return N}catch(M){var C=C1(M);if(C!==us)throw q0(C,0);_z(0,x,f),x[1][1]=g,x[2][1]=h,x[4][1]=k,x[24][1]=d,x[25][1]=l,x[31][1]=o;var O=ba(x),L=bl(x[25][1],O);return x[26][1]=L,0}},Wy=function(x,r,e){var t=sR(x,e);return t?t[1]:r},i6=function(x,r){var e=Ax(r);if(!e)return r;var t=e[1],u=e[2],i=a(x,t);return t===i?r:Ax([0,i,u])},wz=uy(Ts0,function(x){var r=CO(x,hs0),e=PO(x,ws0),t=e[24],u=e[28],i=e[41],f=e[90],o=e[OT],l=e[lg],d=e[hv],k=e[Uj],h=e[fD],g=e[pj],A=e[6],N=e[7],C=e[10],O=e[17],L=e[23],M=e[29],V=e[39],z=e[42],Y=e[52],t0=e[60],i0=e[De],j=e[Is],K=e[Os],J=e[po],Q=e[pa],x0=e[ah],$=e[m_],f0=e[JD],s0=e[kj],v0=e[jS],o0=e[DP],c0=e[IT],d0=e[r5],E0=e[yk],L0=e[rd],X0=e[Vw],xx=e[$A],g0=e[dT],$0=e[Z5],n0=e[B4],ix=e[Ov],rx=e[$D],dx=e[VD],ax=e[Jj],Sx=e[rr],D0=e[TD],N0=e[iJ],A0=e[rk],Y0=e[vj],C0=e[AU],F=OO(x,0,0,ZX,JO,1)[1];function H(r0,S0,G){var h0=G[2],z0=h0[2],M0=h0[1],ux=G[1];if(z0){var Zx=z0[1],Lx=function($x){return[0,ux,[0,M0,[0,$x]]]};return G0(a(r0[1][1+l],r0),Zx,G,Lx)}function tr($x){return[0,ux,[0,$x,z0]]}return G0(p(r0[1][1+A],r0,S0),M0,G,tr)}function B(r0,S0,G){var h0=G[2],z0=G[1],M0=z0[3],ux=z0[2],Zx=z0[1];if(M0)var Lx=i6(a(r0[1][1+u],r0),M0),tr=ux;else var Lx=0,tr=p(r0[1][1+u],r0,ux);var $x=p(r0[1][1+i],r0,h0);return ux===tr&&M0===Lx&&h0===$x?G:[0,[0,Zx,tr,Lx],$x]}function a0(r0,S0){var G=S0[2],h0=G[2],z0=G[1],M0=S0[1];function ux(Zx){return[0,M0,[0,z0,Zx]]}return G0(a(r0[1][1+i],r0),h0,S0,ux)}function m0(r0,S0,G){var h0=G[3];function z0(M0){return[0,G[1],G[2],M0]}return G0(a(r0[1][1+i],r0),h0,G,z0)}function P0(r0,S0){var G=S0[2];function h0(z0){return[0,S0[1],z0]}return G0(a(r0[1][1+i],r0),G,S0,h0)}function D(r0,S0,G){var h0=G[3];function z0(M0){return[0,G[1],G[2],M0]}return G0(a(r0[1][1+i],r0),h0,G,z0)}function O0(r0,S0,G){var h0=G[2],z0=G[1],M0=i6(a(r0[1][1+l],r0),z0),ux=p(r0[1][1+i],r0,h0);return z0===M0&&h0===ux?G:[0,M0,ux]}function K0(r0,S0){var G=S0[2],h0=G[2],z0=G[1],M0=S0[1];function ux(Zx){return[0,M0,[0,z0,Zx]]}return G0(a(r0[1][1+i],r0),h0,S0,ux)}function j0(r0,S0,G){var h0=G[4];function z0(M0){return[0,G[1],G[2],G[3],M0]}return G0(a(r0[1][1+i],r0),h0,G,z0)}function ox(r0,S0,G){var h0=G[2];function z0(M0){return[0,G[1],M0]}return G0(a(r0[1][1+i],r0),h0,G,z0)}function b0(r0,S0,G){var h0=G[3],z0=G[2],M0=p(r0[1][1+K],r0,z0),ux=p(r0[1][1+i],r0,h0);return z0===M0&&h0===ux?G:[0,G[1],M0,ux]}function _x(r0,S0,G){var h0=G[4],z0=G[3],M0=G[2],ux=G[1],Zx=p(r0[1][1+i],r0,h0);if(z0){var Lx=Kx(a(r0[1][1+g],r0),z0);return z0===Lx&&h0===Zx?G:[0,G[1],G[2],Lx,Zx]}if(M0){var tr=Kx(a(r0[1][1+h],r0),M0);return M0===tr&&h0===Zx?G:[0,G[1],tr,G[3],Zx]}var $x=p(r0[1][1+l],r0,ux);return ux===$x&&h0===Zx?G:[0,$x,G[2],G[3],Zx]}function B0(r0,S0,G){var h0=G[4],z0=G[3],M0=p(r0[1][1+l],r0,z0),ux=p(r0[1][1+i],r0,h0);return z0===M0&&h0===ux?G:[0,G[1],G[2],M0,ux]}function T(r0,S0,G){var h0=G[4];function z0(M0){return[0,G[1],G[2],G[3],M0]}return G0(a(r0[1][1+i],r0),h0,G,z0)}function X(r0,S0,G){var h0=G[4];function z0(M0){return[0,G[1],G[2],G[3],M0]}return G0(a(r0[1][1+i],r0),h0,G,z0)}function F0(r0,S0,G){var h0=G[2],z0=G[1],M0=z0[3],ux=z0[2],Zx=z0[1];if(M0)var Lx=i6(a(r0[1][1+u],r0),M0),tr=ux;else var Lx=0,tr=p(r0[1][1+u],r0,ux);var $x=p(r0[1][1+i],r0,h0);return ux===tr&&M0===Lx&&h0===$x?G:[0,[0,Zx,tr,Lx],$x]}function sx(r0,S0,G){var h0=G[3],z0=G[1],M0=x2(a(r0[1][1+f],r0),z0),ux=p(r0[1][1+i],r0,h0);return z0===M0&&h0===ux?G:[0,M0,G[2],ux]}function ex(r0,S0,G){var h0=G[2];function z0(M0){return[0,G[1],M0]}return G0(a(r0[1][1+i],r0),h0,G,z0)}function U0(r0,S0){if(S0[0]===0){var G=S0[1],h0=function(tr){return[0,tr]};return G0(a(r0[1][1+o],r0),G,S0,h0)}var z0=S0[1],M0=z0[2],ux=M0[2],Zx=z0[1],Lx=p(r0[1][1+o],r0,ux);return ux===Lx?S0:[1,[0,Zx,[0,M0[1],Lx]]]}function Nx(r0,S0,G){var h0=G[4],z0=G[3],M0=p(r0[1][1+c0],r0,z0),ux=p(r0[1][1+i],r0,h0);return z0===M0&&h0===ux?G:[0,G[1],G[2],M0,ux]}function mx(r0,S0){var G=S0[2],h0=S0[1],z0=G[4];function M0(ux){return[0,h0,[0,G[1],G[2],G[3],ux]]}return G0(a(r0[1][1+i],r0),z0,[0,h0,G],M0)}function Bx(r0,S0,G){var h0=G[9],z0=G[3],M0=p(r0[1][1+L0],r0,z0),ux=p(r0[1][1+i],r0,h0);return z0===M0&&h0===ux?G:[0,G[1],G[2],M0,G[4],G[5],G[6],G[7],G[8],ux,G[10]]}function Gx(r0,S0,G){var h0=G[4],z0=G[3],M0=p(r0[1][1+l],r0,z0),ux=p(r0[1][1+i],r0,h0);return z0===M0&&h0===ux?G:[0,G[1],G[2],M0,ux]}function J0(r0,S0){var G=S0[2],h0=G[2],z0=G[1],M0=S0[1];function ux(Zx){return[0,M0,[0,z0,Zx]]}return G0(a(r0[1][1+i],r0),h0,S0,ux)}function bx(r0,S0){var G=S0[2],h0=S0[1],z0=G[3];function M0(ux){return[0,h0,[0,G[1],G[2],ux]]}return G0(a(r0[1][1+i],r0),z0,[0,h0,G],M0)}function Jx(r0,S0,G){var h0=G[6],z0=G[5],M0=p(r0[1][1+ix],r0,z0),ux=p(r0[1][1+i],r0,h0);return z0===M0&&h0===ux?G:[0,G[1],G[2],G[3],G[4],M0,ux,G[7]]}function W0(r0,S0){var G=S0[2],h0=G[2],z0=G[1],M0=S0[1];if(h0===0){var ux=function(tr){return[0,M0,[0,tr,h0]]};return G0(a(r0[1][1+o],r0),z0,S0,ux)}function Zx(tr){return[0,M0,[0,z0,tr]]}var Lx=a(r0[1][1+t],r0);return G0(function(tr){return Kx(Lx,tr)},h0,S0,Zx)}function nr(r0,S0){var G=S0[2],h0=G[2],z0=G[1],M0=S0[1];function ux(Lx){return[0,M0,[0,Lx,h0]]}var Zx=a(r0[1][1+d],r0);return G0(function(Lx){return i6(Zx,Lx)},z0,S0,ux)}function V0(r0,S0,G){var h0=G[2],z0=G[1];if(h0===0){var M0=function(Lx){return[0,Lx,G[2],G[3]]};return G0(a(r0[1][1+l],r0),z0,G,M0)}function ux(Lx){return[0,G[1],Lx,G[3]]}var Zx=a(r0[1][1+t],r0);return G0(function(Lx){return Kx(Zx,Lx)},h0,G,ux)}function Sr(r0,S0){var G=S0[2],h0=G[2],z0=G[1],M0=S0[1];function ux(Zx){return[0,M0,[0,z0,Zx]]}return G0(a(r0[1][1+i],r0),h0,S0,ux)}function Ur(r0,S0,G){var h0=G[7],z0=G[2],M0=p(r0[1][1+k],r0,z0),ux=p(r0[1][1+i],r0,h0);return z0===M0&&h0===ux?G:[0,G[1],M0,G[3],G[4],G[5],G[6],ux]}function lx(r0,S0){var G=S0[2],h0=G[2],z0=G[1],M0=S0[1];function ux(Zx){return[0,M0,[0,z0,Zx]]}return G0(a(r0[1][1+i],r0),h0,S0,ux)}function br(r0,S0){var G=S0[2],h0=G[2],z0=G[1],M0=S0[1];function ux(Zx){return[0,M0,[0,z0,Zx]]}return G0(a(r0[1][1+i],r0),h0,S0,ux)}function e2(r0,S0,G){var h0=G[4],z0=G[3],M0=p(r0[1][1+g],r0,z0),ux=p(r0[1][1+i],r0,h0);return z0===M0&&h0===ux?G:[0,G[1],G[2],M0,ux]}function h1(r0,S0,G){var h0=G[2];function z0(M0){return[0,G[1],M0]}return G0(a(r0[1][1+i],r0),h0,G,z0)}function Ir(r0,S0,G){var h0=G[4],z0=G[3],M0=p(r0[1][1+l],r0,z0),ux=p(r0[1][1+i],r0,h0);return z0===M0&&h0===ux?G:[0,G[1],G[2],M0,ux]}function R1(r0,S0,G){var h0=G[4],z0=G[3],M0=p(r0[1][1+l],r0,z0),ux=p(r0[1][1+i],r0,h0);return z0===M0&&h0===ux?G:[0,G[1],G[2],M0,ux]}function _(r0,S0){var G=S0[2];function h0(z0){return[0,S0[1],z0]}return G0(a(r0[1][1+i],r0),G,S0,h0)}function b(r0,S0,G){var h0=G[2];function z0(M0){return[0,G[1],M0]}return G0(a(r0[1][1+i],r0),h0,G,z0)}return LO(x,[0,z,function(r0,S0){var G=S0[2],h0=a(Ml(function(M0){return Fs(M0[1][2],r0[1+r])<0?1:0}),G),z0=qc(h0);return qc(G)===z0?S0:[0,S0[1],h0,S0[3]]},C0,b,Y0,_,A0,R1,N0,Ir,D0,h1,Sx,e2,g,br,h,lx,ax,Ur,k,Sr,dx,V0,rx,nr,d,W0,n0,Jx,$0,bx,g0,J0,xx,Gx,X0,Bx,E0,mx,d0,Nx,o0,U0,v0,ex,s0,sx,f0,F0,$,X,x0,T,Q,B0,j,_x,J,b0,i0,ox,f,j0,t0,K0,Y,O0,V,D,M,P0,L,m0,O,a0,C,B,N,H]),function(r0,S0,G){var h0=iy(S0,x);return h0[1+r]=G,a(F,h0),RO(S0,h0,x)}}),Zy=function(x){var r=x3(x);if(r)var e=r[1],t=pz(x)?(x6(x,e[3]),[0,p(wz[1],0,e[3])]):0,u=t;else var u=0;return[0,0,function(i,f){return u?p(f,u[1],i):i}]},f6=function(x){var r=x3(x);if(r){var e=r[1];if(pz(x)){x6(x,e[3]);var t=Jo(x),u=[0,p(wz[1],0,[0,e[3][1]+1|0,0])],i=t}else var u=0,i=Jo(x)}else var u=0,i=0;return[0,i,function(f,o){return u?p(o,u[1],f):f}]},P1=function(x){return re(x)?f6(x):Zy(x)},gn=function(x,r){var e=P1(x)[2];return p(e,r,function(t,u){return p(qx(t,Pa,2),t,u)})},ee=function(x,r){if(!r)return 0;var e=r[1],t=P1(x)[2];return[0,p(t,e,function(u,i){return p(qx(u,KC,5),u,i)})]},oR=function(x,r){var e=P1(x)[2];return p(e,r,function(t,u){return p(qx(t,pD,7),t,u)})},t3=function(x,r){var e=P1(x)[2];return p(e,r,function(t,u){return p(qx(t,-1045824777,8),t,u)})},c6=function(x,r){var e=P1(x)[2];return p(e,r,function(t,u){return p(qx(t,-455772979,9),t,u)})},Tz=function(x,r){if(!r)return 0;var e=r[1],t=P1(x)[2];return[0,p(t,e,function(u,i){return p(qx(u,$U,12),u,i)})]},An=function(x,r){var e=P1(x)[2];return p(e,r,function(t,u){return p(qx(t,bM,13),t,u)})},Sz=function(x,r){var e=P1(x)[2];return p(e,r,function(t,u){var i=a(qx(t,Yj,15),t);return i6(function(f){return x2(i,f)},u)})},Ez=function(x,r){var e=P1(x)[2];return p(e,r,function(t,u){return p(qx(t,-21476009,16),t,u)})},vS0=function(x,r){var e=x[2],t=x[1];function u(br){return N2(br,r)}switch(e[0]){case 0:var i=e[1],f=VO(i[2],r),lx=[0,[0,i[1],f]];break;case 1:var o=e[1],l=u(o[2]),lx=[1,[0,o[1],l]];break;case 2:var d=e[1],k=u(d[7]),lx=[2,[0,d[1],d[2],d[3],d[4],d[5],d[6],k]];break;case 3:var h=e[1],g=h[7],A=u(h[6]),lx=[3,[0,h[1],h[2],h[3],h[4],h[5],A,g]];break;case 4:var N=e[1],C=u(N[2]),lx=[4,[0,N[1],C]];break;case 5:var lx=[5,[0,u(e[1][1])]];break;case 6:var O=e[1],L=u(O[7]),lx=[6,[0,O[1],O[2],O[3],O[4],O[5],O[6],L]];break;case 7:var M=e[1],V=u(M[5]),lx=[7,[0,M[1],M[2],M[3],M[4],V]];break;case 8:var z=e[1],Y=u(z[3]),lx=[8,[0,z[1],z[2],Y]];break;case 9:var t0=e[1],i0=u(t0[5]),lx=[9,[0,t0[1],t0[2],t0[3],t0[4],i0]];break;case 10:var j=e[1],K=u(j[4]),lx=[10,[0,j[1],j[2],j[3],K]];break;case 11:var J=e[1],Q=u(J[5]),lx=[11,[0,J[1],J[2],J[3],J[4],Q]];break;case 12:var x0=e[1],$=u(x0[4]),lx=[12,[0,x0[1],x0[2],x0[3],$]];break;case 13:var f0=e[1],s0=u(f0[2]),lx=[13,[0,f0[1],s0]];break;case 14:var v0=e[1],o0=u(v0[4]),lx=[14,[0,v0[1],v0[2],v0[3],o0]];break;case 15:var c0=e[1],d0=u(c0[5]),lx=[15,[0,c0[1],c0[2],c0[3],c0[4],d0]];break;case 16:var E0=e[1],L0=u(E0[4]),lx=[16,[0,E0[1],E0[2],E0[3],L0]];break;case 17:var X0=e[1],xx=u(X0[3]),lx=[17,[0,X0[1],X0[2],xx]];break;case 18:var lx=[18,[0,u(e[1][1])]];break;case 19:var g0=e[1],$0=u(g0[3]),lx=[19,[0,g0[1],g0[2],$0]];break;case 20:var n0=e[1],ix=u(n0[3]),lx=[20,[0,n0[1],n0[2],ix]];break;case 21:var rx=e[1],dx=u(rx[5]),lx=[21,[0,rx[1],rx[2],rx[3],rx[4],dx]];break;case 22:var ax=e[1],Sx=u(ax[3]),lx=[22,[0,ax[1],ax[2],Sx]];break;case 23:var D0=e[1],N0=u(D0[5]),lx=[23,[0,D0[1],D0[2],D0[3],D0[4],N0]];break;case 24:var A0=e[1],Y0=u(A0[5]),lx=[24,[0,A0[1],A0[2],A0[3],A0[4],Y0]];break;case 25:var C0=e[1],F=u(C0[5]),lx=[25,[0,C0[1],C0[2],C0[3],C0[4],F]];break;case 26:var H=e[1],B=H[10],a0=u(H[9]),lx=[26,[0,H[1],H[2],H[3],H[4],H[5],H[6],H[7],H[8],a0,B]];break;case 27:var m0=e[1],P0=u(m0[4]),lx=[27,[0,m0[1],m0[2],m0[3],P0]];break;case 28:var D=e[1],O0=u(D[5]),lx=[28,[0,D[1],D[2],D[3],D[4],O0]];break;case 29:var K0=e[1],j0=u(K0[5]),lx=[29,[0,K0[1],K0[2],K0[3],K0[4],j0]];break;case 30:var ox=e[1],b0=u(ox[3]),lx=[30,[0,ox[1],ox[2],b0]];break;case 31:var _x=e[1],B0=_x[3],T=u(_x[2]),lx=[31,[0,_x[1],T,B0]];break;case 32:var X=e[1],F0=X[4],sx=u(X[3]),lx=[32,[0,X[1],X[2],sx,F0]];break;case 33:var ex=e[1],U0=u(ex[2]),lx=[33,[0,ex[1],U0]];break;case 34:var Nx=e[1],mx=u(Nx[4]),lx=[34,[0,Nx[1],Nx[2],Nx[3],mx]];break;case 35:var Bx=e[1],Gx=u(Bx[4]),lx=[35,[0,Bx[1],Bx[2],Bx[3],Gx]];break;case 36:var J0=e[1],bx=u(J0[5]),lx=[36,[0,J0[1],J0[2],J0[3],J0[4],bx]];break;case 37:var Jx=e[1],W0=u(Jx[3]),lx=[37,[0,Jx[1],Jx[2],W0]];break;case 38:var nr=e[1],V0=u(nr[3]),lx=[38,[0,nr[1],nr[2],V0]];break;default:var Sr=e[1],Ur=u(Sr[3]),lx=[39,[0,Sr[1],Sr[2],Ur]]}return[0,t,lx]};uy(Ss0,function(x){var r=CO(x,ks0),e=IO(_s0),t=e.length-1,u=WX.length-1,i=Ja(t+u|0,0),f=t-1|0,o=0;if(f>=0)for(var l=o;;){var d=Kl(x,z1(e,l)[1+l]);z1(i,l)[1+l]=d;var k=l+1|0;if(f!==l){var l=k;continue}break}var h=u-1|0,g=0;if(h>=0)for(var A=g;;){var N=A+t|0,C=CO(x,z1(WX,A)[1+A]);z1(i,N)[1+N]=C;var O=A+1|0;if(h!==A){var A=O;continue}break}var L=i[4],M=i[5],V=i[z3],z=i[hv],Y=i[292],t0=i[293],i0=i[44],j=i[Q8],K=i[BJ],J=OO(x,0,0,ZX,JO,1)[1];function Q(o0,c0,d0){return p(o0[1][1+V],o0,d0[2]),d0}function x0(o0,c0){return p(o0[1][1+z],o0,c0),c0}function $(o0,c0){var d0=c0[1],E0=o0[1+t0];if(E0){var L0=Fs(E0[1][1][2],d0[2])<0?1:0,X0=L0&&(o0[1+t0]=[0,c0],0);return X0}var xx=0<=Fs(d0[2],o0[1+r][3])?1:0,g0=xx&&(o0[1+t0]=[0,c0],0);return g0}function f0(o0,c0){var d0=c0[1],E0=o0[1+Y];if(E0){var L0=Fs(d0[2],E0[1][1][2])<0?1:0,X0=L0&&(o0[1+Y]=[0,c0],0);return X0}var xx=Fs(d0[2],o0[1+r][2])<0?1:0,g0=xx&&(o0[1+Y]=[0,c0],0);return g0}function s0(o0,c0){return c0?p(o0[1][1+z],o0,c0[1]):0}function v0(o0,c0){var d0=c0[2],E0=c0[1];return g2(a(o0[1][1+M],o0),E0),g2(a(o0[1][1+L],o0),d0)}return LO(x,[0,j,function(o0){return[0,o0[1+Y],o0[1+t0]]},z,v0,V,s0,M,f0,L,$,i0,x0,K,Q]),function(o0,c0,d0){var E0=iy(c0,x);return E0[1+r]=d0,a(J,E0),E0[1+Y]=0,E0[1+t0]=0,RO(c0,E0,x)}});var gz=function(x){var r=W(x),e=0;if(typeof r=="number"){var t=r;if(49<=t)switch(t){case 49:var u=no0;break;case 50:var u=uo0;break;case 51:var u=io0;break;case 52:var u=fo0;break;case 53:var u=co0;break;case 54:var u=so0;break;case 55:var u=oo0;break;case 56:var u=vo0;break;case 57:var u=ao0;break;case 58:var u=lo0;break;case 59:var u=po0;break;case 60:var u=do0;break;case 61:var u=yo0;break;case 62:var u=mo0;break;case 63:var u=ko0;break;case 64:var u=ho0;break;case 65:var u=_o0;break;case 114:var u=wo0;break;case 115:var u=To0;break;case 116:var u=So0;break;case 117:var u=Eo0;break;case 118:var u=go0;break;case 119:var u=Ao0;break;case 120:var u=Po0;break;case 121:var u=No0;break;case 122:var u=Co0;break;case 123:var u=Io0;break;case 124:var u=Oo0;break;case 125:var u=Ro0;break;case 126:var u=Lo0;break;case 128:var u=Mo0;break;case 129:var u=Do0;break;default:e=1}else switch(t){case 15:var u=Es0;break;case 16:var u=gs0;break;case 17:var u=As0;break;case 18:var u=Ps0;break;case 19:var u=Ns0;break;case 20:var u=Cs0;break;case 21:var u=Is0;break;case 22:var u=Os0;break;case 23:var u=Rs0;break;case 24:var u=Ls0;break;case 25:var u=Ms0;break;case 26:var u=Ds0;break;case 27:var u=Us0;break;case 28:var u=js0;break;case 29:var u=Js0;break;case 30:var u=Xs0;break;case 31:var u=Ys0;break;case 32:var u=Vs0;break;case 33:var u=zs0;break;case 34:var u=Ks0;break;case 35:var u=Bs0;break;case 36:var u=Ws0;break;case 37:var u=Zs0;break;case 38:var u=$s0;break;case 39:var u=Fs0;break;case 40:var u=Qs0;break;case 41:var u=Gs0;break;case 42:var u=qs0;break;case 43:var u=Hs0;break;case 44:var u=bs0;break;case 45:var u=xo0;break;case 46:var u=ro0;break;case 47:var u=eo0;break;case 48:var u=to0;break;default:e=1}}else switch(r[0]){case 4:var u=r[2];break;case 11:var i=r[1]?Uo0:jo0,u=i;break;default:e=1}if(e){S1(Jo0,x);var u=Xo0}return Z0(x),u},T2=function(x){var r=Px(x),e=w0(x),t=gz(x);return[0,r,[0,t,k0([0,e],[0,hx(x)],0)]]},Az=function(x){var r=Px(x),e=w0(x);u0(x,14);var t=Px(x),u=gz(x),i=k0([0,e],[0,hx(x)],0),f=u1(r,t),o=t[2],l=r[3],d=l[1]===o[1]?1:0,k=d&&(l[2]===o[2]?1:0);return 1-k&&nx(x,[0,f,Os]),[0,f,[0,u,i]]},Zv=function(x){var r=x[2],e=r[3]===0?1:0,t=r[2];if(!e)return e;for(var u=t;;){if(!u)return 1;var i=u[1][2],f=0,o=u[2];if(i[1][2][0]===2&&!i[2]){var l=1;f=1}if(!f)var l=0;if(!l)return l;var u=o}},s6=function(x){for(var r=x;;){var e=r[2];if(e[0]!==30)return 0;var t=e[1][2];if(t[2][0]===26)return 1;var r=t}},$y=function(x,r,e){var t=e[2][1],u=e[1];if(!P(t,Ev)){var i=r[19];return i&&nx(r,[0,u,6])}if(P(t,da)){if(!P(t,j2))return r[18]?nx(r,[0,u,it]):at(r,[0,u,85])}else if(r[14])return nx(r,[0,u,[24,ly(t)]]);if(r3(t))return at(r,[0,u,85]);if(Vy(t))return nx(r,[0,u,it]);if(x){var f=x[1];if(Bv(t))return at(r,[0,u,f])}return 0},l0=function(x,r,e){var t=x?x[1]:Px(e),u=a(r,e),i=x3(e),f=i?u1(t,i[1]):t;return[0,f,u]},Fy=function(x,r,e){var t=l0(x,r,e),u=t[2];return[0,[0,t[1],u[1]],u[2]]},Qy=function(x){J1(x,0);var r=W(x);K1(x);var e=kr(1,x),t=0;if(typeof r=="number")r===21&&(t=1);else if(r[0]===4)if(P(r[3],ya))t=1;else{var u=0;typeof e=="number"?e===21&&(u=1):e[0]===4&&(u=1),t=u?2:1}var i=0;switch(t){case 1:typeof e=="number"?m1===e&&(i=1):e[0]===4&&!P(e[3],al)&&(i=1);break;case 0:break;default:i=1}return i?1:0},Pz=function(x){switch(x){case 3:return 2;case 4:return 1;case 5:return 1;case 6:return 1;case 7:return 1;default:return 1}},vR=function(x,r,e){if(e){var t=e[1],u=0;if(t===8232||Q1===t)u=1;else var i=t===10?6:t===13?5:b3<=t?3:oC<=t?2:m1<=t?1:0;if(u)var i=7;var f=i}else var f=4;return[0,f,x]},aS0=[Gr,mv0,Js(0)],Nz=function(x,r,e,t){try{var u=z1(x,r)[1+r];return u}catch(f){var i=C1(f);throw i[1]===GI?q0([0,aS0,e,H0(Tr(dv0),t,r,x.length-1)],1):q0(i,0)}},Gy=function(x,r){if(r[1]===0&&r[2]===0)return 0;var e=Nz(x,r[1]-1|0,r,lv0);return Nz(e,r[2],r,pv0)},Cz=function(x){var r=[0,zv0,w2[1],0,0];function e(o){var l=W(o);if(typeof l=="number"){var d=0;if(8<=l?10>l&&(d=1):l===1&&(d=1),d)return 1}return 0}function t(o){var l=Px(o),d=w0(o),k=W(o);if(typeof k=="number")switch(k){case 30:case 31:Z0(o);var h=hx(o);return e(o)?[1,l,[0,k===31?1:0,k0([0,d],[0,h],0)]]:[0,l]}else switch(k[0]){case 0:var g=k[2],A=H0(x[24],o,k[1],g),N=hx(o);return e(o)?[2,l,[0,A,g,k0([0,d],[0,N],0)]]:[0,l];case 1:var C=k[2],O=H0(x[26],o,k[1],C),L=hx(o);return e(o)?[4,l,[0,O,C,k0([0,d],[0,L],0)]]:[0,l];case 2:var M=k[1],V=M[1],z=M[3],Y=M[2];M[4]&&Zt(o,81),Z0(o);var t0=hx(o);return e(o)?[3,V,[0,Y,z,k0([0,d],[0,t0],0)]]:[0,V]}return Z0(o),[0,l]}function u(o){var l=T2(o),d=W(o),k=0;if(typeof d=="number")if(d===82){u0(o,82);var h=t(o)}else if(d===86){Vx(o,[8,l[2][1]]),u0(o,86);var h=t(o)}else k=1;else k=1;if(k)var h=0;return[0,l,h]}var i=0;function f(o,l,d,k,h,g,A){var N=qc(h),C=qc(g);function O(M){return[2,[0,[0,g],d,k,A]]}function L(M){return[2,[0,[1,h],d,k,A]]}return N===0?O(0):C===0?L(0):N>>0){if(L2>=i0+1>>>0){var j=Y[3],K=Y[4],J=Ax(Y[1][5]),Q=Ax(Y[1][4]),x0=Ax(Y[1][3]),$=Ax(Y[1][2]),f0=Ax(Y[1][1]),s0=Qx(K,w0(C));u0(C,1);var v0=W(C),o0=0;if(typeof v0=="number"){var c0=0;if(v0===1||Rr===v0?c0=1:o0=1,c0)var d0=hx(C)}else o0=1;if(o0)var d0=re(C)?Jo(C):0;var E0=j1([0,z],[0,d0],s0,0);if(V){switch(V[1]){case 0:var L0=[0,[0,f0,1,j,E0]];break;case 1:var L0=[1,[0,$,1,j,E0]];break;case 2:var L0=f(C,g,1,j,x0,J,E0);break;case 3:var L0=[3,[0,J,j,E0]];break;default:var L0=[4,[0,Q,1,j,E0]]}var X0=L0}else{var xx=qc(f0),g0=qc($),$0=qc(x0),n0=qc(J),ix=function(b){return[2,[0,Uv0,0,j,E0]]},rx=0;if(xx===0&&g0===0){var dx=0;if($0===0&&n0===0)var ax=ix(0);else dx=1;if(dx)var ax=f(C,g,0,j,x0,J,E0)}else rx=1;if(rx){var Sx=0;if(g0===0&&$0===0&&n0<=xx){g2(function(r0){return nx(C,[0,r0[1],[3,g,r0[2][1][2][1]]])},J);var ax=[0,[0,f0,0,j,E0]];Sx=1}if(!Sx){var D0=0;if(xx===0&&$0===0&&n0<=g0){g2(function(r0){return nx(C,[0,r0[1],[11,g,r0[2][1][2][1]]])},J);var ax=[1,[0,$,0,j,E0]];D0=1}if(!D0){nx(C,[0,A,[5,g]]);var ax=ix(0)}}}var X0=ax}return X0}}else if(i0===10){var N0=Px(C),A0=w0(C);Z0(C);var Y0=W(C),C0=0;if(typeof Y0=="number"){var F=Y0-2|0,H=0;if(V1>>0)L2>=F+1>>>0&&(H=1);else if(F===7){u0(C,9);var B=W(C),a0=0;if(typeof B=="number"){var m0=0;if((B===1||Rr===B)&&(m0=1),m0){var P0=1;a0=1}}if(!a0)var P0=0;nx(C,[0,N0,[6,P0]]),H=1}H&&(C0=1)}C0||nx(C,[0,N0,Dv0]);var Y=[0,Y[1],Y[2],1,A0];continue}}var D=Y[2],O0=Y[1],K0=l0(i,u,C),j0=K0[2],ox=j0[2],b0=j0[1],_x=K0[1],B0=b0[2][1],T=b0[1];if(Ar(B0,kx))var X=Y;else{var F0=N1(B0,0),sx=97<=F0?1:0,ex=sx&&(F0<=Hr?1:0);ex&&nx(C,[0,T,[10,g,B0]]),p(w2[3],B0,D)&&nx(C,[0,T,[4,g,B0]]);var U0=Y[4],Nx=Y[3],mx=p(w2[4],B0,D),Bx=[0,Y[1],mx,Nx,U0],Gx=function(_){return function(b,r0){return V&&V[1]!==b?nx(C,[0,r0,[9,g,V,_]]):0}}(B0);if(typeof ox=="number"){var J0=0;if(V)switch(V[1]){case 0:nx(C,[0,_x,[3,g,B0]]);var X=Bx;break;case 1:nx(C,[0,_x,[11,g,B0]]);var X=Bx;break;case 4:nx(C,[0,_x,[2,g,B0]]);var X=Bx;break;default:J0=1}else J0=1;if(J0)var X=[0,[0,O0[1],O0[2],O0[3],O0[4],[0,[0,_x,[0,b0]],O0[5]]],mx,Nx,U0]}else switch(ox[0]){case 0:nx(C,[0,ox[1],[9,g,V,B0]]);var X=Bx;break;case 1:var bx=ox[1],Jx=ox[2];Gx(0,bx);var X=[0,[0,[0,[0,_x,[0,b0,[0,bx,Jx]]],O0[1]],O0[2],O0[3],O0[4],O0[5]],mx,Nx,U0];break;case 2:var W0=ox[1],nr=ox[2];Gx(1,W0);var X=[0,[0,O0[1],[0,[0,_x,[0,b0,[0,W0,nr]]],O0[2]],O0[3],O0[4],O0[5]],mx,Nx,U0];break;case 3:var V0=ox[1],Sr=ox[2];Gx(2,V0);var X=[0,[0,O0[1],O0[2],[0,[0,_x,[0,b0,[0,V0,Sr]]],O0[3]],O0[4],O0[5]],mx,Nx,U0];break;default:var Ur=ox[1],lx=ox[2];Gx(4,Ur);var X=[0,[0,O0[1],O0[2],O0[3],[0,[0,_x,[0,b0,[0,Ur,lx]]],O0[4]],O0[5]],mx,Nx,U0]}}var br=W(C),e2=0;if(typeof br=="number"){var h1=br-2|0,Ir=0;V1

    >>0?L2>=h1+1>>>0&&(Ir=1):h1===6&&(Vx(C,22),u0(C,8),Ir=1),Ir&&(e2=1)}e2||u0(C,9);var Y=X}},l);return[0,h,N,k0([0,k],0,0)]}]},qy=function(x,r,e){if(typeof e=="number")return[0,x,r];if(e[0]===0){var t=e[1],u=Tx(x,t),i=e[2];return u===0?i===r?e:[0,t,r]:0<=u?[1,2,x,r,e,0]:[1,2,x,r,0,e]}var f=e[5],o=e[4],l=e[3],d=e[2],k=Tx(x,d),h=e[1];if(k===0)return l===r?e:[1,h,x,r,o,f];if(0<=k){var g=qy(x,r,f);return f===g?e:eV(o,d,l,g)}var A=qy(x,r,o);return o===A?e:eV(A,d,l,f)},n3=function(x){return[0,Gs(x)]},aR=oV([0,function(x,r){var e=r[2],t=x[2],u=yV(x[1],r[1]);return u===0?p(mV,t,e):u}]),o6=function(x,r,e){var t=e[2][1],u=e[1];return Ar(t,kx)?r:p(w2[3],t,r)?(nx(x,[0,u,[0,t]]),r):p(w2[4],t,r)},lR=function(x){return function(r){var e=r[2];switch(e[0]){case 0:var t=e[1][1];return H1(function(i,f){var o=f[0]===0?f[1][2][2]:f[1][2][1];return a(lR(i),o)},x,t);case 1:var u=e[1][1];return H1(function(i,f){if(f[0]===2)return i;var o=f[1][2][1];return a(lR(i),o)},x,u);case 2:return[0,e[1][1],x];default:return Ox(Bl0)}}},px=XY(Zl0,Wl0[1]),Hy=function(x,r,e){var t=x?x[1]:0,u=r?r[1]:0,i=Px(e),f=W(e);if(typeof f=="number")switch(f){case 103:var o=w0(e);return Z0(e),[0,[0,i,[0,0,k0([0,o],0,0)]]];case 104:var l=w0(e);return Z0(e),[0,[0,i,[0,1,k0([0,l],0,0)]]];case 126:if(t){var d=w0(e);return Z0(e),[0,[0,i,[0,2,k0([0,d],0,0)]]]}break}else if(f[0]===4){var k=f[3];if(P(k,wo)){if(!P(k,h_)&&u&&zy(1,e)){var h=w0(e);return Z0(e),[0,[0,i,[0,4,k0([0,h],0,0)]]]}}else if(u&&zy(1,e)){var g=w0(e);Z0(e);var A=W(e),N=0;if(typeof A!="number"&&A[0]===4&&!P(A[3],h_)){var C=Px(e);Z0(e);var O=u1(i,C),L=5;N=1}if(!N)var O=i,L=3;return[0,[0,O,[0,L,k0([0,g],0,0)]]]}}return 0},Iz=function(x,r,e,t,u){r===1&&Zt(u,81);var i=w0(u);Z0(u);var f=hx(u);if(x)var o=k0([0,Qx(x[1],i)],[0,f],0),l=o,d=Fx(av0,t),k=-e;else var l=k0([0,i],[0,f],0),d=t,k=e;return[29,[0,k,d,l]]},Oz=function(x,r,e,t){var u=w0(t);Z0(t);var i=hx(t);if(x)var f=k0([0,Qx(x[1],u)],[0,i],0),o=Fx(vv0,e),l=f,d=o,k=$d(VI,r);else var l=k0([0,u],[0,i],0),d=e,k=r;return[30,[0,k,d,l]]},$r=function x(r){return x.fun(r)},u3=function x(r){return x.fun(r)},Rz=function x(r){return x.fun(r)},Lz=function x(r){return x.fun(r)},pR=function x(r,e,t){return x.fun(r,e,t)},by=function x(r){return x.fun(r)},dR=function x(r,e,t,u){return x.fun(r,e,t,u)},yR=function x(r){return x.fun(r)},mR=function x(r,e,t,u){return x.fun(r,e,t,u)},kR=function x(r){return x.fun(r)},hR=function x(r,e){return x.fun(r,e)},_R=function x(r){return x.fun(r)},Mz=function x(r){return x.fun(r)},xm=function x(r,e,t,u){return x.fun(r,e,t,u)},rm=function x(r,e,t,u,i){return x.fun(r,e,t,u,i)},Dz=function x(r){return x.fun(r)},Uz=function x(r,e){return x.fun(r,e)},wR=function x(r){return x.fun(r)},jz=function x(r){return x.fun(r)},Jz=function x(r){return x.fun(r)},Xz=function x(r){return x.fun(r)},Yz=function x(r){return x.fun(r)},TR=function x(r,e){return x.fun(r,e)},Vz=function x(r){return x.fun(r)},zz=function x(r){return x.fun(r)},v6=function x(r,e){return x.fun(r,e)},Kz=function x(r){return x.fun(r)},$v=function x(r){return x.fun(r)},em=function x(r){return x.fun(r)},Bz=function x(r,e){return x.fun(r,e)},SR=function x(r){return x.fun(r)},Wz=function x(r){return x.fun(r)},Zz=function x(r){return x.fun(r)},$z=function x(r){return x.fun(r)},Fz=function x(r){return x.fun(r)},tm=function x(r,e,t,u){return x.fun(r,e,t,u)},ER=function x(r){return x.fun(r)},nm=function x(r){return x.fun(r)},gR=function x(r,e){return x.fun(r,e)},um=function x(r,e,t,u){return x.fun(r,e,t,u)},AR=function x(r){return x.fun(r)},Xo=function x(r){return x.fun(r)},Qz=function x(r){return x.fun(r)},Fv=function x(r){return x.fun(r)},PR=function x(r){return x.fun(r)},im=function x(r){return x.fun(r)},NR=function x(r,e){return x.fun(r,e)},Gz=function x(r,e){return x.fun(r,e)},qz=function x(r){return x.fun(r)},Hz=function x(r){return x.fun(r)},fm=function x(r){return x.fun(r)},bz=function x(r,e,t){return x.fun(r,e,t)};I0($r,function(x){return a(Lz,x)}),I0(u3,function(x){return 1-k1(x)&&Vx(x,G2),l0(0,function(r){return u0(r,86),a($r,r)},x)}),I0(Rz,function(x){1-k1(x)&&Vx(x,G2);var r=Px(x);return u0(x,86),Qy(x)?[2,p(gR,x,r)]:[1,l0([0,r],$r,x)]}),I0(Lz,function(x){var r=Px(x),e=eR(0,x);return H0(pR,e,r,a(by,e))}),I0(pR,function(x,r,e){var t=W(x);return typeof t=="number"&&t===41?l0([0,r],function(u){u0(u,41);var i=a(by,eR(1,u));By(u,85);var f=a($r,u);By(u,86);var o=a($r,u);return[17,[0,e,i,f,o,k0(0,[0,hx(u)],0)]]},x):e}),I0(by,function(x){var r=Px(x);if(W(x)===89){var e=w0(x);Z0(x);var t=e}else var t=0;return ve(dR,x,[0,t],r,a(yR,x))}),I0(dR,function(x,r,e,t){var u=r?r[1]:0;if(W(x)!==89)return t;var i=[0,t,0];return l0([0,e],function(f){for(var o=i;;){if(o1(f,89)){var o=[0,a(yR,f),o];continue}var l=Ax(o);if(l){var d=l[2];if(d){var k=d[2],h=d[1],g=l[1];return[22,[0,[0,g,h,k],k0([0,u],0,0)]]}}throw q0([0,wr,ov0],1)}},x)}),I0(yR,function(x){var r=Px(x);if(W(x)===91){var e=w0(x);Z0(x);var t=e}else var t=0;return ve(mR,x,[0,t],r,a(kR,x))}),I0(mR,function(x,r,e,t){var u=r?r[1]:0;if(W(x)!==91)return t;var i=[0,t,0];return l0([0,e],function(f){for(var o=i;;){if(o1(f,91)){var o=[0,a(kR,f),o];continue}var l=Ax(o);if(l){var d=l[2];if(d){var k=d[2],h=d[1],g=l[1];return[23,[0,[0,g,h,k],k0([0,u],0,0)]]}}throw q0([0,wr,sv0],1)}},x)}),I0(kR,function(x){return p(hR,x,a(_R,x))}),I0(hR,function(x,r){var e=W(x);if(typeof e=="number"&&e===11&&!x[15]){var t=p(v6,x,r);return ve(tm,x,t[1],0,[0,t[1],[0,0,[0,t,0],0,0]])}return r}),I0(_R,function(x){var r=W(x);return typeof r=="number"&&r===85?l0(0,function(e){var t=w0(e);u0(e,85);var u=k0([0,t],0,0);return[11,[0,a(_R,e),u]]},x):a(Mz,x)}),I0(Mz,function(x){var r=Px(x);return ve(xm,0,x,r,a(Jz,x))}),I0(xm,function(x,r,e,t){var u=x?x[1]:0;if(re(r))return t;var i=W(r);if(typeof i=="number"){if(i===6)return Z0(r),Ve(rm,u,0,r,e,t);if(i===10){var f=kr(1,r);return typeof f=="number"&&f===6?(Vx(r,fv0),u0(r,10),u0(r,6),Ve(rm,u,0,r,e,t)):(Vx(r,cv0),t)}if(i===83)return Z0(r),W(r)!==6&&Vx(r,46),u0(r,6),Ve(rm,1,1,r,e,t)}return t}),I0(rm,function(x,r,e,t,u){return ve(xm,[0,x],e,t,l0([0,t],function(i){if(!r&&o1(i,7))return[16,[0,u,k0(0,[0,hx(i)],0)]];var f=a($r,i);u0(i,7);var o=[0,u,f,k0(0,[0,hx(i)],0)];return x?[21,[0,o,r]]:[20,o]},e))}),I0(Dz,function(x){return p(Uz,x,p(px[13],0,x))}),I0(Uz,function(x,r){for(var e=[0,r[1],[0,r]];;){var t=e[2],u=e[1];if(W(x)===10&&yz(1,x)){var i=l0([0,u],function(l){return function(d){return u0(d,10),[0,l,T2(d)]}}(t),x),f=i[1],e=[0,f,[1,[0,f,i[2]]]];continue}return t}}),I0(wR,function(x){if(J1(x,0),W(x)===4){Z0(x);var r=a(wR,x);u0(x,5);var e=r}else var e=ns(x)?[0,a(Dz,x)]:(Vx(x,51),0);return K1(x),e}),I0(jz,function(x){return l0(0,function(r){var e=w0(r);u0(r,46);var t=a(wR,r);if(!t)return iv0;var u=t[1];return[24,[0,u,k0([0,e],0,0)]]},x)}),I0(Jz,function(x){var r=Px(x),e=W(x),t=0;if(typeof e=="number")switch(e){case 4:return a($z,x);case 6:return a(zz,x);case 46:return a(jz,x);case 53:return l0(0,function(Y){var t0=w0(Y);Z0(Y);var i0=a(AR,Y),j=i0[2],K=i0[1];return[15,[0,j,K,k0([0,t0],0,0)]]},x);case 98:return a(Fz,x);case 104:return l0(0,Xz,x);case 106:var u=w0(x);return Z0(x),[0,r,[10,k0([0,u],[0,hx(x)],0)]];case 125:return l0(0,function(Y){var t0=w0(Y);Z0(Y);var i0=hx(Y),j=a($r,Y);return[25,[0,j,k0([0,t0],[0,i0],0)]]},x);case 126:return l0(0,function(Y){var t0=w0(Y);Z0(Y);var i0=hx(Y),j=a($r,Y);return[26,[0,j,k0([0,t0],[0,i0],0)]]},x);case 127:return l0(0,function(Y){var t0=w0(Y);Z0(Y);var i0=hx(Y),j=l0(0,function(K){var J=a(Xo,K);function Q(x0){if(1-o1(x0,41))throw q0(us,1);var $=a(by,x0);if(!x0[16]&&W(x0)===85)throw q0(us,1);return[1,[0,$[1],$]]}return[0,J,Wy(K,[0,Px(K)],Q),1,0,0]},Y);return[18,[0,j,k0([0,t0],[0,i0],0)]]},x);case 0:case 2:var i=ve(um,0,1,1,x);return[0,i[1],[14,i[2]]];case 41:case 42:t=1;break;case 30:case 31:var f=w0(x);return Z0(x),[0,r,[31,[0,e===31?1:0,k0([0,f],[0,hx(x)],0)]]]}else switch(e[0]){case 2:var o=e[1],l=o[3],d=o[2],k=o[1];o[4]&&Zt(x,81);var h=w0(x);return Z0(x),[0,k,[28,[0,d,l,k0([0,h],[0,hx(x)],0)]]];case 4:if(P(e[3],lo))t=1;else{if(x[28][1])return l0(0,function(Y){var t0=w0(Y);Hs(Y,ev0);var i0=ee(Y,a(Fv,Y)),j=a(SR,Y);if(cR(Y))var Q=oR(Y,a(fm,Y)),x0=j;else var K=a(fm,Y),J=P1(Y)[2],Q=K,x0=p(J,j,function($,f0){return p(qx($,420776873,11),$,f0)});return[13,[0,i0,x0,Q,k0([0,t0],0,0)]]},x);t=1}break;case 7:if(!P(e[1],U3))return Vx(x,89),[0,r,tv0];break;case 12:var g=e[3],A=e[2],N=e[1],C=0;return l0(0,function(Y){return Iz(C,N,A,g,Y)},x);case 13:var O=e[3],L=e[2],M=0;return l0(0,function(Y){return Oz(M,L,O,Y)},x)}if(t){var V=a(im,x);return[0,V[1],[19,V[2]]]}var z=a(Vz,x);return z?[0,r,z[1]]:(S1(nv0,x),[0,r,uv0])}),I0(Xz,function(x){var r=w0(x);Z0(x);var e=W(x);if(typeof e!="number")switch(e[0]){case 12:return Iz([0,r],e[1],e[2],e[3],x);case 13:return Oz([0,r],e[2],e[3],x)}return S1(xv0,x),rv0}),I0(Yz,function(x){var r=0;if(typeof x=="number")switch(x){case 29:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 124:r=1;break}else x[0]===11&&(r=1);return r?1:0}),I0(TR,function(x,r){var e=w0(x),t=l0(0,Z0,x)[1],u=k0([0,e],[0,hx(x)],0);return[0,[19,[0,[0,Sn(0,[0,t,r])],0,u]]]}),I0(Vz,function(x){var r=w0(x),e=W(x);if(typeof e=="number")switch(e){case 29:return Z0(x),[0,[4,k0([0,r],[0,hx(x)],0)]];case 114:return Z0(x),[0,[0,k0([0,r],[0,hx(x)],0)]];case 115:return Z0(x),[0,[1,k0([0,r],[0,hx(x)],0)]];case 116:return Z0(x),[0,[2,k0([0,r],[0,hx(x)],0)]];case 117:return Z0(x),[0,[5,k0([0,r],[0,hx(x)],0)]];case 118:return Z0(x),[0,[6,k0([0,r],[0,hx(x)],0)]];case 119:return Z0(x),[0,[7,k0([0,r],[0,hx(x)],0)]];case 120:return Z0(x),[0,[3,k0([0,r],[0,hx(x)],0)]];case 121:return Z0(x),[0,[9,k0([0,r],[0,hx(x)],0)]];case 122:return Z0(x),[0,[32,k0([0,r],[0,hx(x)],0)]];case 123:return Z0(x),[0,[33,k0([0,r],[0,hx(x)],0)]];case 124:return Z0(x),[0,[34,k0([0,r],[0,hx(x)],0)]];case 128:return p(TR,x,Ho0);case 129:return p(TR,x,bo0)}else if(e[0]===11){var t=e[1];Z0(x);var u=hx(x),i=t?-883944824:737456202;return[0,[8,i,k0([0,r],[0,u],0)]]}return 0}),I0(zz,function(x){return l0(0,function(r){var e=w0(r);u0(r,6);for(var t=Kv(0,r),u=0;;){var i=W(t);if(typeof i=="number"){var f=0;if(i!==7&&Rr!==i&&(f=1),!f){var o=Ax(u);return u0(r,7),[27,[0,o,k0([0,e],[0,hx(r)],0)]]}}var l=[0,l0(0,function(k){if(!o1(k,12)){var h=W(k),g=0;if(typeof h=="number"&&(fn===h||Dt===h&&Uo(1,k))){var A=Hy(0,0,k);g=1}if(!g)var A=0;var N=ns(k),C=kr(1,k);if(N&&typeof C=="number"&&1>=C+ko>>>0){var O=T2(k),L=o1(k,85);return u0(k,86),[1,[0,O,a($r,k),A,L]]}var M=A?1:0;return M&&Vx(k,50),[0,a($r,k)]}var V=ns(k),z=kr(1,k),Y=0;if(V&&typeof z=="number"&&1>=z+ko>>>0){var t0=T2(k);W(k)===85&&(Vx(k,49),Z0(k)),u0(k,86);var i0=[0,t0];Y=1}if(!Y)var i0=0;return[2,[0,i0,a($r,k)]]},t),u];W(t)!==7&&u0(t,9);var u=l}},x)}),I0(v6,function(x,r){return[0,r[1],[0,0,r,0]]}),I0(Kz,function(x){return l0(0,function(r){J1(r,0);var e=p(px[13],0,r);K1(r),1-k1(r)&&Vx(r,G2);var t=o1(r,85);return u0(r,86),[0,[0,e],a($r,r),t]},x)});var xK=function(x){var r=kr(1,x);return typeof r=="number"&&1>=r+ko>>>0?a(Kz,x):p(v6,x,a($r,x))};I0($v,function(x){var r=0;return function(e){for(var t=r,u=e;;){var i=W(x);if(typeof i=="number")switch(i){case 5:case 12:case 113:var f=i===12?[0,l0(0,function(A){var N=w0(A);u0(A,12);var C=k0([0,N],0,0);return[0,xK(A),C]},x)]:0;return[0,t,Ax(u),f,0]}else if(i[0]===4&&!P(i[3],vv)){var o=0;if(kr(1,x)!==86&&kr(1,x)!==85&&(o=1),!o){var l=t!==0?1:0,d=l||(u!==0?1:0);d&&Vx(x,94);var k=l0(0,function(N){var C=w0(N);Z0(N),W(N)===85&&Vx(N,93);var O=k0([0,C],0,0);return[0,a(u3,N),O]},x);W(x)!==5&&u0(x,9);var t=[0,k];continue}}var h=[0,xK(x),u];W(x)!==5&&u0(x,9);var u=h}}}),I0(em,function(x){return l0(0,function(r){var e=w0(r);u0(r,4);var t=p($v,r,0),u=w0(r);u0(r,5);var i=j1([0,e],[0,hx(r)],u,0);return[0,t[1],t[2],t[3],i]},x)}),I0(Bz,function(x,r){for(var e=r;;){var t=W(x);if(typeof t=="number"){var u=t-5|0,i=0;if(7>>0?vn===u&&(i=1):5>>0&&(i=1),i){var f=t===12?[0,l0(0,function(d){var k=w0(d);u0(d,12);var h=kr(1,d),g=0;if(typeof h=="number")if(h===85){J1(d,0);var A=p(px[13],0,d);K1(d),u0(d,85),u0(d,86);var C=1,O=[0,A]}else if(h===86){J1(d,0);var N=p(px[13],0,d);K1(d),u0(d,86);var C=0,O=[0,N]}else g=1;else g=1;if(g)var C=0,O=0;var L=a($r,d);return[0,O,L,C,k0([0,k],0,0)]},x)]:0;return[0,Ax(e),f,0]}}var o=[0,l0(0,function(d){var k=W(d),h=0;if(typeof k!="number"&&k[0]===2){var g=k[1],A=g[4],N=g[3],C=g[2],O=g[1];A&&Zt(d,81),u0(d,[2,[0,O,C,N,A]]);var L=[1,[0,O,[0,C,N,k0(0,[0,hx(d)],0)]]];h=1}if(!h){J1(d,0);var M=p(px[13],0,d);K1(d);var L=[0,M]}var V=o1(d,85);return[0,L,a(u3,d),V]},x),e];W(x)!==5&&u0(x,9);var e=o}}),I0(SR,function(x){return l0(0,function(r){var e=w0(r);u0(r,4);var t=p(Bz,r,0),u=w0(r);u0(r,5);var i=j1([0,e],[0,hx(r)],u,0);return[0,t[1],t[2],i]},x)}),I0(Wz,function(x){var r=w0(x);u0(x,4);var e=Kv(0,x),t=W(e),u=0;if(typeof t=="number")switch(t){case 5:var i=qo0;break;case 42:u=2;break;case 12:case 113:var i=[0,p($v,e,0)];break;default:u=1}else t[0]===4?u=2:u=1;switch(u){case 1:if(a(Yz,t)){var f=kr(1,e),o=0;if(typeof f=="number"&&1>=f+ko>>>0){var l=[0,p($v,e,0)];o=1}if(!o)var l=[1,a($r,e)];var i=l}else var i=[1,a($r,e)];break;case 2:var i=a(Zz,e);break}if(i[0]===0)var d=i;else{var k=i[1];if(x[15])var h=i;else{var g=W(x),A=0;if(typeof g=="number")if(g===5)var N=kr(1,x)===11?[0,p($v,x,[0,p(v6,x,k),0])]:[1,k];else if(g===9){u0(x,9);var N=[0,p($v,x,[0,p(v6,x,k),0])]}else A=1;else A=1;if(A)var N=i;var h=N}var d=h}var C=w0(x);u0(x,5);var O=hx(x);if(d[0]===0)var L=d[1],M=j1([0,r],[0,O],C,0),V=[0,[0,L[1],L[2],L[3],M]];else var V=[1,H0(bz,d[1],r,O)];return V}),I0(Zz,function(x){var r=kr(1,x);if(typeof r=="number"&&1>=r+ko>>>0)return[0,p($v,x,0)];var e=Px(x),t=p(Gz,x,a(Xo,x)),u=a(H0(xm,0,x,e),t),i=a(a(hR,x),u),f=a(p(a(mR,x),0,e),i),o=a(p(a(dR,x),0,e),f);return[1,a(p(pR,eR(0,x),e),o)]}),I0($z,function(x){var r=Px(x),e=l0(0,Wz,x),t=e[2],u=e[1];return t[0]===0?ve(tm,x,r,0,[0,u,t[1]]):t[1]}),I0(Fz,function(x){var r=Px(x),e=ee(x,a(Fv,x));return ve(tm,x,r,e,a(em,x))}),I0(tm,function(x,r,e,t){return l0([0,r],function(u){return u0(u,11),[12,[0,e,t,a(ER,u),0]]},x)}),I0(ER,function(x){return Qy(x)?[1,a(nm,x)]:[0,a($r,x)]}),I0(nm,function(x){return l0(0,function(r){var e=w0(r),t=o1(r,dl);J1(r,0);var u=T2(r);K1(r);var i=W(r),f=0;if(typeof i=="number"&&m1===i){var o=w0(r);u0(r,m1);var l=Qx(o,w0(r)),d=l,k=[0,a($r,r)];f=1}if(!f)var d=0,k=0;return[0,t,[0,u,k],j1([0,e],0,d,0)]},x)}),I0(gR,function(x,r){return l0([0,r],nm,x)});var cm=function(x,r,e){return l0([0,r],function(t){var u=a(em,t);return u0(t,86),[0,e,u,a(ER,t),0]},x)},rK=function(x,r,e,t,u){var i=An(x,t),f=cm(x,r,ee(x,a(Fv,x))),o=[0,f[1],[12,f[2]]],l=[0,i,[0,o],0,e!==0?1:0,0,1,0,k0([0,u],0,0)];return[0,[0,o[1],l]]},sm=function(x,r,e,t,u,i,f){var o=f[2],l=f[1];return 1-k1(x)&&Vx(x,G2),[0,l0([0,r],function(d){var k=o1(d,85),h=hz(d,86)?a($r,d):[0,l,Go0];return[0,o,[0,h],k,t!==0?1:0,u!==0?1:0,0,e,k0([0,i],0,0)]},x)]},a6=function(x,r){var e=W(r);if(typeof e=="number"&&10>e)switch(e){case 1:if(!x)return 0;break;case 3:if(x)return 0;break;case 8:case 9:return Z0(r)}return qs(r,9)},l6=function(x,r){return r?nx(x,[0,r[1][1],L2]):0},p6=function(x,r){return r?nx(x,[0,r[1],99]):0},lS0=function(x,r,e,t,u,i,f,o,l){for(var d=e,k=t,h=u,g=i,A=f,N=o;;){var C=W(x);if(typeof C=="number")switch(C){case 6:p6(x,A);var O=kr(1,x);if(typeof O=="number"&&O===6)return l6(x,h),[4,l0([0,l],function(D0){var N0=Qx(N,w0(D0));u0(D0,6),u0(D0,6);var A0=T2(D0);u0(D0,7),u0(D0,7);var Y0=W(D0),C0=0;if(typeof Y0=="number"){var F=0;if((Y0===4||Y0===98)&&(F=1),F){var H=cm(D0,l,ee(D0,a(Fv,D0))),B=0,a0=[0,H[1],[12,H[2]]],m0=1,P0=0;C0=1}}if(!C0){var D=o1(D0,85),O0=hx(D0);u0(D0,86);var B=O0,a0=a($r,D0),m0=0,P0=D}return[0,A0,a0,P0,g!==0?1:0,m0,k0([0,N0],[0,B],0)]},x)];var L=Qx(N,w0(x));u0(x,6);var M=kr(1,x);return typeof M!="number"&&M[0]===4&&!P(M[3],wo)&&g===0?[5,l0([0,l],function(D0){var N0=a(Xo,D0),A0=N0[1];Z0(D0);var Y0=a($r,D0);u0(D0,7);var C0=W(D0),F=0,H=[0,N0,[0,A0],0,0,0];if(typeof C0=="number"){var B=C0+MP|0,a0=0;if(1>>0)if(B===-18){Z0(D0);var m0=2}else a0=1;else var m0=B?(Z0(D0),u0(D0,85),1):(Z0(D0),u0(D0,85),0);if(!a0){var P0=m0;F=1}}if(!F)var P0=3;u0(D0,86);var D=a($r,D0);return[0,[0,A0,H],D,Y0,h,P0,k0([0,L],[0,hx(D0)],0)]},x)]:[2,l0([0,l],function(D0){if(kr(1,D0)===86){var N0=T2(D0);u0(D0,86);var A0=[0,N0]}else var A0=0;var Y0=a($r,D0);u0(D0,7);var C0=hx(D0);u0(D0,86);var F=a($r,D0);return[0,A0,Y0,F,g!==0?1:0,h,k0([0,L],[0,C0],0)]},x)];case 42:if(d){if(h!==0)throw q0([0,wr,Ko0],1);var V=[0,Px(x)],z=Qx(N,w0(x));Z0(x);var d=0,k=0,g=V,N=z;continue}break;case 126:if(h===0){var Y=0;if((Uo(1,x)||kr(1,x)===6)&&(Y=1),Y){var d=0,k=0,h=Hy(Bo0,0,x);continue}}break;case 103:case 104:if(h===0){var d=0,k=0,h=Hy(0,0,x);continue}break;case 4:case 98:return p6(x,A),l6(x,h),[3,l0([0,l],function(D0){var N0=Px(D0),A0=cm(D0,N0,ee(D0,a(Fv,D0)));return[0,A0,g!==0?1:0,k0([0,N],0,0)]},x)]}else if(C[0]===4&&!P(C[3],IC)&&k){if(h!==0)throw q0([0,wr,Wo0],1);var t0=[0,Px(x)],i0=Qx(N,w0(x));Z0(x);var d=0,k=0,A=t0,N=i0;continue}if(g){var j=g[1];if(A)return Ox(Zo0);if(typeof C=="number"&&1>=C+ko>>>0)return sm(x,l,h,0,A,0,[0,j,[3,Sn(k0([0,N],0,0),[0,j,$o0])]])}else if(A){var K=A[1];if(typeof C=="number"&&1>=C+ko>>>0)return sm(x,l,h,g,0,0,[0,K,[3,Sn(k0([0,N],0,0),[0,K,Fo0])]])}var J=function(D0){J1(D0,0);var N0=p(px[20],0,D0);return K1(D0),N0},Q=w0(x),x0=J(x),$=x0[1],f0=x0[2];if(f0[0]===3){var s0=f0[1][2][1],v0=0;if(P(s0,gv)&&P(s0,Ra)&&(v0=1),!v0){var o0=W(x);if(typeof o0=="number"){var c0=o0-5|0;if(92>>0){if(94>=c0+1>>>0)return p6(x,A),l6(x,h),rK(x,l,g,f0,N)}else if(1>=c0+qD>>>0)return sm(x,l,h,g,A,N,[0,$,f0])}An(x,f0);var d0=J(x),E0=Ar(s0,gv),L0=Qx(N,Q);return p6(x,A),l6(x,h),[0,l0([0,l],function(D0){var N0=d0[1],A0=An(D0,d0[2]),Y0=cm(D0,l,0),C0=Y0[2][2];if(E0){var F=C0[2],H=0;if(F[1])nx(D0,[0,N0,28]),H=1;else{var B=0;F[2]||F[3]?B=1:H=1,B&&nx(D0,[0,N0,27])}}else{var a0=C0[2],m0=0;if(a0[1])nx(D0,[0,N0,71]);else{var P0=a0[2],D=0;if(a0[3])nx(D0,[0,N0,70]),D=1;else{var O0=0;P0&&!P0[2]?D=1:O0=1,O0&&(nx(D0,[0,N0,70]),m0=1)}}}var K0=k0([0,L0],0,0),j0=0,ox=0,b0=0,_x=g!==0?1:0,B0=0,T=E0?[1,Y0]:[2,Y0];return[0,A0,T,B0,_x,b0,ox,j0,K0]},x)]}}var X0=x0[2],xx=W(x);if(typeof xx=="number"){var g0=0;if(xx!==4&&xx!==98&&(g0=1),!g0)return p6(x,A),l6(x,h),rK(x,l,g,X0,N)}var $0=g!==0?1:0,n0=0;if(X0[0]===3){var ix=X0[1],rx=ix[2][1],dx=0,ax=ix[1];if(r){var Sx=0;(Ar(Tv,rx)||$0&&Ar(_o,rx))&&(Sx=1),Sx&&(nx(x,[0,ax,[15,rx,$0,0,0]]),n0=1,dx=1)}}return sm(x,l,h,g,A,N,[0,$,X0])}};I0(um,function(x,r,e,t){var u=r&&(W(t)===2?1:0),i=r&&1-u;return l0(0,function(f){var o=w0(f),l=u?2:0;u0(f,l);for(var d=Kv(0,f),k=Qo0;;){var h=k[3],g=k[2],A=k[1];if(x&&e)throw q0([0,wr,Vo0],1);if(i&&!e)throw q0([0,wr,zo0],1);var N=Px(d),C=W(d);if(typeof C=="number"){var O=0;if(13<=C){if(Rr===C){var L=[0,Ax(A),g,h];O=1}}else if(C)switch(C-1|0){case 0:if(!u){var L=[0,Ax(A),g,h];O=1}break;case 2:if(u){var L=[0,Ax(A),g,h];O=1}break;case 11:if(!e){Z0(d);var M=W(d);if(typeof M=="number"&&10>M)switch(M){case 1:case 3:case 8:case 9:nx(d,[0,N,36]),a6(u,d);continue}var V=iR(d);a(nR(d),V),nx(d,[0,N,Jf]),Z0(d),a6(u,d);continue}var z=w0(d);Z0(d);var Y=W(d),t0=0;if(typeof Y=="number"&&10>Y)switch(Y){case 1:case 3:case 8:case 9:a6(u,d);var i0=W(d),j=0;if(typeof i0=="number"){var K=i0-1|0;if(2>=K>>>0)switch(K){case 0:if(i){var L=[0,Ax(A),1,z];O=1,t0=1,j=1}break;case 1:break;default:nx(d,[0,N,35]);var L=[0,Ax(A),g,h];O=1,t0=1,j=1}}if(!j){nx(d,[0,N,97]);continue}break}if(!t0){var J=[1,l0([0,N],function(d0){return function(E0){var L0=k0([0,d0],0,0);return[0,a($r,E0),L0]}}(z),d)];a6(u,d);var k=[0,[0,J,A],g,h];continue}break}if(O){var Q=L[3],x0=L[2],$=L[1],f0=Qx(Q,w0(f)),s0=u?3:1;return u0(f,s0),[0,u,x0,$,j1([0,o],[0,hx(f)],f0,0)]}}var v0=lS0(d,x,x,x,0,0,0,0,N);a6(u,d);var k=[0,[0,v0,A],g,h]}},t)}),I0(AR,function(x){if(o1(x,41))for(var r=0;;){var e=[0,a(im,x),r],t=W(x);if(typeof t=="number"&&t===9){u0(x,9);var r=e;continue}var u=Sz(x,Ax(e));break}else var u=0;return[0,u,ve(um,0,0,0,x)]}),I0(Xo,function(x){var r=T2(x),e=r[2],t=e[1],u=r[1],i=e[2];return uR(t)&&nx(x,[0,u,It]),[0,u,[0,t,i]]}),I0(Qz,function(x){return l0(0,function(r){var e=a(Xo,r),t=W(r),u=0;if(typeof t=="number")if(t===41)var i=1,f=i,o=[1,l0(0,function(l){return Z0(l),a($r,l)},r)];else if(t===86)var f=0,o=[1,a(u3,r)];else u=1;else u=1;if(u)var f=0,o=[0,Gs(r)];return[0,e,o,f]},x)});var eK=function(x,r){var e=lz(x,r);if(e)var t=e;else{var u=0;if(typeof r=="number"&&1>=r+MP>>>0){var i=1;u=1}if(!u)var i=0;if(!i){var f=0;if(typeof r=="number")switch(r){case 15:case 29:case 30:case 31:case 41:case 42:case 46:case 53:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 124:case 125:case 126:f=1;break}else switch(r[0]){case 4:if(uR(r[3]))return 1;break;case 11:f=1;break}return f?1:0}var t=i}return t};I0(Fv,function(x){if(W(x)!==98)return 0;1-k1(x)&&Vx(x,G2);var r=l0(0,function(t){var u=w0(t);u0(t,98);for(var i=0,f=0;;){if(eK(t,W(t)))var o=Fy(0,function(Y){return function(t0){var i0=Hy(0,Yo0,t0),j=a(Qz,t0),K=j[2],J=K[3],Q=K[2],x0=K[1],$=j[1],f0=W(t0),s0=0;if(typeof f0=="number"&&f0===82){Z0(t0);var v0=1,o0=[0,a($r,t0)];s0=1}if(!s0){Y&&nx(t0,[0,$,57]);var v0=Y,o0=0}return[0,[0,x0,Q,J,i0,o0],v0]}}(i),t),l=o[2],d=[0,o[1],f];else var l=i,d=f;var k=W(t),h=0;if(typeof k=="number"){var g=k+kJ|0;if(14>>0){if(g===-90){Z0(t);var i=l,f=d;continue}}else if(12>>0){var A=Ax(d);h=1}}if(!h){var N=0;if(typeof k=="number")switch(k){case 4:case 82:N=2;break}else if(k[0]===4){var C=k[3],O=0;if(Vy(C))O=1;else{var L=0;if(P(C,Ev)&&P(C,j2)){var M=0;L=1}if(!L)var M=1;if(M)O=1;else if(P(C,cl))(!P(C,_v)||!P(C,ei))&&(N=2);else if(t[28][2]){var V=1;N=1}}if(O){var V=1;N=1}}switch(N){case 0:var V=0;break;case 2:var V=1;break}if(!V){if(eK(t,k)){qs(t,9);var i=l,f=d;continue}u0(t,9);var i=l,f=d;continue}qs(t,99);var A=Ax(d)}var z=w0(t);return By(t,99),[0,A,j1([0,u],[0,hx(t)],z,0)]}},x),e=r[1];return r[2][1]||nx(x,[0,e,56]),[0,r]}),I0(PR,function(x){return W(x)===98?[0,l0(0,function(r){var e=w0(r);u0(r,98);for(var t=Kv(0,r),u=0;;){var i=W(t);if(typeof i=="number"){var f=0;if(i!==99&&Rr!==i&&(f=1),!f){var o=Ax(u),l=w0(t);return u0(t,99),[0,o,j1([0,e],[0,hx(t)],l,0)]}}var d=[0,a($r,t),u];W(t)!==99&&u0(t,9);var u=d}},x)]:0}),I0(im,function(x){return p(NR,x,a(Xo,x))}),I0(NR,function(x,r){function e(t){for(var u=[0,r[1],[0,r]];;){var i=u[2],f=u[1];if(W(t)===10&&zy(1,t)){var o=l0([0,f],function(g){return function(A){return u0(A,10),[0,g,a(Xo,A)]}}(i),t),l=o[1],u=[0,l,[1,[0,l,o[2]]]];continue}if(W(t)===98)var d=P1(t)[2],k=p(d,i,function(h,g){return p(qx(h,-860373976,60),h,g)});else var k=i;return[0,k,a(PR,t),0]}}return l0([0,r[1]],e,x)}),I0(Gz,function(x,r){var e=p(NR,x,r);return[0,e[1],[19,e[2]]]}),I0(qz,function(x){var r=W(x);return typeof r=="number"&&r===86?a(Rz,x):[0,Gs(x)]}),I0(Hz,function(x){var r=W(x);return typeof r=="number"&&r===86?[1,a(u3,x)]:[0,Gs(x)]}),I0(fm,function(x){var r=W(x);if(typeof r=="number"){if(r===86)return 1-k1(x)&&Vx(x,G2),Vx(x,38),Z0(x),[1,l0(0,function(e){return a($r,e)},x)]}else if(r[0]===4&&!P(r[3],Z1))return 1-k1(x)&&Vx(x,G2),Z0(x),[1,l0(0,function(e){return a($r,e)},x)];return[0,Gs(x)]}),I0(bz,function(x,r,e){var t=x[2],u=x[1];function i(F){return N2(F,k0([0,r],[0,e],0))}switch(t[0]){case 0:var C0=[0,i(t[1])];break;case 1:var C0=[1,i(t[1])];break;case 2:var C0=[2,i(t[1])];break;case 3:var C0=[3,i(t[1])];break;case 4:var C0=[4,i(t[1])];break;case 5:var C0=[5,i(t[1])];break;case 6:var C0=[6,i(t[1])];break;case 7:var C0=[7,i(t[1])];break;case 8:var f=i(t[2]),C0=[8,t[1],f];break;case 9:var C0=[9,i(t[1])];break;case 10:var C0=[10,i(t[1])];break;case 11:var o=t[1],l=i(o[2]),C0=[11,[0,o[1],l]];break;case 12:var d=t[1],k=i(d[4]),C0=[12,[0,d[1],d[2],d[3],k]];break;case 13:var h=t[1],g=i(h[4]),C0=[13,[0,h[1],h[2],h[3],g]];break;case 14:var A=t[1],N=A[4],C=VO(N,k0([0,r],[0,e],0)),C0=[14,[0,A[1],A[2],A[3],C]];break;case 15:var O=t[1],L=i(O[3]),C0=[15,[0,O[1],O[2],L]];break;case 16:var M=t[1],V=i(M[2]),C0=[16,[0,M[1],V]];break;case 17:var z=t[1],Y=i(z[5]),C0=[17,[0,z[1],z[2],z[3],z[4],Y]];break;case 18:var t0=t[1],i0=i(t0[2]),C0=[18,[0,t0[1],i0]];break;case 19:var j=t[1],K=i(j[3]),C0=[19,[0,j[1],j[2],K]];break;case 20:var J=t[1],Q=i(J[3]),C0=[20,[0,J[1],J[2],Q]];break;case 21:var x0=t[1],$=x0[1],f0=x0[2],s0=i($[3]),C0=[21,[0,[0,$[1],$[2],s0],f0]];break;case 22:var v0=t[1],o0=i(v0[2]),C0=[22,[0,v0[1],o0]];break;case 23:var c0=t[1],d0=i(c0[2]),C0=[23,[0,c0[1],d0]];break;case 24:var E0=t[1],L0=i(E0[2]),C0=[24,[0,E0[1],L0]];break;case 25:var X0=t[1],xx=i(X0[2]),C0=[25,[0,X0[1],xx]];break;case 26:var g0=t[1],$0=i(g0[2]),C0=[26,[0,g0[1],$0]];break;case 27:var n0=t[1],ix=i(n0[2]),C0=[27,[0,n0[1],ix]];break;case 28:var rx=t[1],dx=i(rx[3]),C0=[28,[0,rx[1],rx[2],dx]];break;case 29:var ax=t[1],Sx=i(ax[3]),C0=[29,[0,ax[1],ax[2],Sx]];break;case 30:var D0=t[1],N0=i(D0[3]),C0=[30,[0,D0[1],D0[2],N0]];break;case 31:var A0=t[1],Y0=i(A0[2]),C0=[31,[0,A0[1],Y0]];break;case 32:var C0=[32,i(t[1])];break;case 33:var C0=[33,i(t[1])];break;default:var C0=[34,i(t[1])]}return[0,u,C0]});var tK=function(x,r){if(W(x)!==4)return[0,0,k0([0,r],[0,hx(x)],0)];var e=Qx(r,w0(x));u0(x,4),J1(x,0);var t=a(px[9],x);return K1(x),u0(x,5),[0,[0,t],k0([0,e],[0,hx(x)],0)]},pS0=function(x){var r=w0(x);return u0(x,66),tK(x,r)},dS0=0,nK=function(x){var r=Kv(0,x),e=W(r);return typeof e=="number"&&e===66?[0,l0(dS0,pS0,r)]:0},yS0=function(x){var r=W(x);if(typeof r=="number"&&r===86){1-k1(x)&&Vx(x,G2);var e=Gs(x),t=Px(x);u0(x,86);var u=W(x);if(typeof u=="number"&&u===66){var i=Kv(0,x);return[0,[0,e],[0,l0([0,t],function(l){var d=w0(l);return u0(l,66),tK(l,d)},i)]]}if(Qy(x))return[0,[2,p(gR,x,t)],0];var f=[1,l0([0,t],$r,x)],o=W(x)===66?t3(x,f):f;return[0,o,nK(x)]}return[0,[0,Gs(x)],0]},ye=function(x,r){var e=Qs(1,r);J1(e,1);var t=a(x,e);return K1(e),t},bs=function(x){return ye($r,x)},is=function(x){return ye(Xo,x)},Ze=function(x){return ye(Fv,x)},uK=function(x){return ye(PR,x)},Qv=function(x){return ye(u3,x)},CR=function(x){return ye(Hz,x)},IR=function(x){return ye(qz,x)},OR=function(x){return ye(yS0,x)},iK=function(x){return ye(im,x)},RR=function(x){return ye(fm,x)},mS0=Cz(px),Yo=function(x,r){var e=r[2],t=r[1],u=x[1];switch(e[0]){case 0:return H1(kS0,x,e[1][1]);case 1:return H1(hS0,x,e[1][1]);case 2:var i=e[1][1],f=i[2][1],o=x[2],l=x[1],d=i[1];p(w2[3],f,o)&&nx(l,[0,d,82]);var k=i[2][1],h=i[1];return Bv(k)&&at(l,[0,h,83]),r3(k)&&at(l,[0,h,85]),[0,l,p(w2[4],f,o)];default:return nx(u,[0,t,24]),x}},kS0=function(x){return function(r){return r[0]===0?Yo(x,r[1][2][2]):Yo(x,r[1][2][1])}},hS0=function(x){return function(r){switch(r[0]){case 0:return Yo(x,r[1][2][1]);case 1:return Yo(x,r[1][2][1]);default:return x}}},fK=function(x,r){var e=r[2],t=e[3],u=e[2],i=[0,x,w2[1]],f=H1(function(o,l){return Yo(o,l[2][1])},i,u);return t&&Yo(f,t[1][2][1]),0},cK=function(x,r,e,t){var u=x[5],i=t[0]===0?Zv(t[1]):0,f=Qs(u?0:r,x),o=r||u||1-i;if(!o)return o;if(e){var l=e[1],d=l[2][1],k=l[1];Bv(d)&&at(f,[0,k,75]),r3(d)&&at(f,[0,k,85])}if(t[0]===0)return fK(f,t[1]);var h=t[1][2],g=h[2],A=h[1],N=[0,Ya,[0,[0,Tn(function(O){var L=O[2],M=L[1],V=L[4],z=L[3],Y=L[2],t0=M[0]===0?[3,M[1]]:[0,[0,Ya,M[1][2]]];return[0,[0,Ya,[0,t0,Y,z,V]]]},A),[0,Ya],0]]],C=Yo([0,f,w2[1]],N);return g&&Yo(C,g[1][2][1]),0},i3=function(x,r,e,t){return cK(x,r,e,[0,t])},sK=function(x,r){if(r!==12)return 0;var e=w0(x),t=l0(0,function(f){return u0(f,12),p(px[18],f,83)},x),u=t[2],i=t[1];return[0,[0,i,u,k0([0,e],0,0)]]},LR=function x(r,e){return x.fun(r,e)},_S0=function(x){W(x)===21&&Vx(x,94);var r=p(px[18],x,83),e=W(x)===82?(u0(x,82),[0,a(px[10],x)]):0;return[0,r,e]},wS0=0;I0(LR,function(x,r){var e=W(x);if(typeof e=="number"){var t=e-5|0,u=0;if(7>>0?vn===t&&(u=1):5>>0&&(u=1),u){var i=sK(x,e),f=$d(function(l){return[0,l[1],[0,l[2],l[3]]]},i);return W(x)!==5&&Vx(x,66),[0,Ax(r),f]}}var o=l0(wS0,_S0,x);return W(x)!==5&&u0(x,9),p(LR,x,[0,o,r])});var f3=function(x,r){function e(u){var i=iz(1,bO(r,xR(x,u))),f=w0(i);u0(i,4);var o=0;if(k1(i)&&W(i)===21){var l=w0(i),d=l0(0,function(V){return u0(V,21),W(V)===86?[0,Qv(V)]:(Vx(V,90),0)},i),k=d[2],h=d[1];if(k){var g=k[1];W(i)===9&&Z0(i);var A=[0,[0,h,[0,g,k0([0,l],0,0)]]]}else var A=0}else o=1;if(o)var A=0;var N=p(LR,i,0),C=N[2],O=N[1],L=w0(i);return u0(i,5),[0,A,O,C,j1([0,f],[0,hx(i)],L,0)]}var t=0;return function(u){return l0(t,e,u)}},oK=function(x,r,e,t,u){var i=az(x,r,e,u);return p(px[16],t,i)},d6=function(x,r,e,t,u){var i=oK(x,r,e,t,u);return[0,[0,i[1]],i[2]]},c3=function(x){if(l2!==W(x))return Hv0;var r=w0(x);return Z0(x),[0,1,r]},om=function(x){if(W(x)===64&&!n6(1,x)){var r=w0(x);return Z0(x),[0,1,r]}return qv0},TS0=function(x){var r=om(x),e=r[1],t=r[2],u=l0(0,function(O){var L=w0(O);u0(O,15);var M=c3(O),V=M[1],z=Ll([0,t,[0,L,[0,M[2],0]]]),Y=O[7],t0=W(O),i0=0;if(Y&&typeof t0=="number"){if(t0===4){var Q=0,x0=0;i0=1}else if(t0===98){var j=ee(O,Ze(O)),K=W(O)===4?0:[0,gn(O,p(px[13],$v0,O))],Q=K,x0=j;i0=1}}if(!i0)var J=ns(O)?gn(O,p(px[13],Fv0,O)):(kz(O,Qv0),[0,Px(O),Gv0]),Q=[0,J],x0=ee(O,Ze(O));var $=a(f3(e,V),O),f0=W(O)===86?$:c6(O,$),s0=OR(O),v0=s0[2],o0=s0[1];if(v0)var c0=Tz(O,v0),d0=o0;else var c0=v0,d0=t3(O,o0);return[0,V,x0,Q,f0,d0,c0,z]},x),i=u[2],f=i[4],o=i[3],l=i[1],d=i[7],k=i[6],h=i[5],g=i[2],A=u[1],N=d6(x,e,l,0,Zv(f)),C=N[1];return i3(x,N[2],o,f),[26,[0,o,f,C,e,l,k,h,g,k0([0,d],0,0),A]]},SS0=0,y6=function(x){return l0(SS0,TS0,x)},MR=function(x,r){var e=w0(r);u0(r,x);var t=r[28][2];if(t)var u=x===27?1:0,i=u&&(W(r)===48?1:0);else var i=t;i&&Vx(r,23);for(var f=0,o=0;;){var l=l0(0,function(N){var C=p(px[18],N,86);if(o1(N,82))var O=0,L=[0,a(px[10],N)];else{var M=C[1];if(C[2][0]===2)var O=0,L=0;else var O=[0,[0,M,63]],L=0}return[0,[0,C,L],O]},r),d=l[2],k=d[2],h=[0,[0,l[1],d[1]],f],g=k?[0,k[1],o]:o;if(o1(r,9)){var f=h,o=g;continue}var A=Ax(g);return[0,Ax(h),e,A]}},ES0=24,vK=function(x){return MR(ES0,x)},aK=function(x){var r=MR(27,rR(1,x)),e=r[1],t=r[3],u=r[2];return[0,e,u,Ax(H1(function(i,f){return f[2][2]?i:[0,[0,f[1],62],i]},t,e))]},lK=function(x){return MR(28,rR(1,x))},pK=function(x){function r(t){return[19,p(mS0[1],x,t)]}var e=0;return function(t){return l0(e,r,t)}},DR=function x(r,e){return x.fun(r,e)},gS0=function(x){var r=w0(x),e=W(x),t=kr(1,x),u=0;if(typeof e!="number"&&e[0]===2){var i=e[1],f=i[4],o=i[3],l=i[2],d=i[1],k=0;if(typeof t=="number")switch(t){case 85:case 86:k=2;break;default:k=1}else t[0]===4?P(t[3],ln)||(k=2):k=1;switch(k){case 0:break;case 1:break;default:f&&Zt(x,81),u0(x,[2,[0,d,l,o,f]]);var h=[1,[0,d,[0,l,o,k0([0,r],[0,hx(x)],0)]]],g=0;if(typeof t=="number"&&!(1>>0)){var A=t===85?1:0;Vx(x,[16,A,l]),A&&Z0(x);var N=Px(x),C=0,O=[0,N,[2,[0,[0,N,Wv0],CR(x),A]]],L=h;u=1}else g=1;if(g){Z0(x);var C=0,O=p(px[18],x,83),L=h;u=1}}}if(!u){var M=0;if(typeof t!="number"&&t[0]===4&&!P(t[3],ln)){var V=[0,T2(x)];Hs(x,Zv0);var C=0,O=p(px[18],x,83),L=V;M=1}if(!M)var z=H0(px[14],x,0,83),Y=z[2],C=1,O=[0,z[1],[2,Y]],L=[0,Y[1]]}var t0=W(x)===82?(u0(x,82),[0,a(px[10],x)]):0;return[0,L,O,t0,C]},AS0=0;I0(DR,function(x,r){var e=W(x);if(typeof e=="number"){var t=e-5|0,u=0;if(7>>0?vn===t&&(u=1):5>>0&&(u=1),u){var i=sK(x,e),f=$d(function(l){return[0,l[1],[0,l[2],l[3]]]},i);return W(x)!==5&&Vx(x,66),[0,Ax(r),f]}}var o=l0(AS0,gS0,x);return W(x)!==5&&u0(x,9),p(DR,x,[0,o,r])});var PS0=function(x){var r=iz(1,x),e=w0(r);u0(r,4);var t=p(DR,r,0),u=t[2],i=t[1],f=w0(r);return u0(r,5),[0,i,u,j1([0,e],[0,hx(r)],f,0)]},NS0=0,CS0=function(x){var r=l0(0,function(h){var g=w0(h);Hs(h,Kv0);var A=gn(h,p(px[13],Bv0,h)),N=ee(h,Ze(h)),C=l0(NS0,PS0,h);if(cR(h))var L=C;else var O=P1(h)[2],L=p(O,C,function(M,V){return p(qx(M,842685896,10),M,V)});return[0,N,A,L,oR(h,RR(h)),g]},x),e=r[2],t=e[3],u=e[2],i=e[5],f=e[4],o=e[1],l=r[1],d=oK(x,0,0,0,0),k=d[1];return cK(x,d[2],[0,u],[1,t]),[3,[0,u,o,t,f,k,k0([0,i],0,0),l]]},IS0=0,UR=function(x){return l0(IS0,CS0,x)},o2=function(x,r){if(r[0]===0)return r[1];var e=r[2][1],t=r[1];return g2(function(u){return nx(x,u)},e),t},jR=function(x,r,e){var t=x?x[1]:41;if(e[0]===0)var u=e[1];else{var i=e[2][2],f=e[1];g2(function(h){return nx(r,h)},i);var u=f}1-a(px[23],u)&&nx(r,[0,u[1],t]);var o=u[2],l=0;if(o[0]===8){var d=u[1];Bv(o[1][2][1])&&(at(r,[0,d,76]),l=1)}return p(px[19],r,u)},JR=function(x,r){var e=Hc(x[2],r[2]);return[0,Hc(x[1],r[1]),e]},dK=function(x){var r=Ax(x[2]);return[0,Ax(x[1]),r]},yK=function(x,r){var e=x[0]===0?x[1]:x[1]-1|0,t=(r[0]===0,r[1]);return t<=e?1:0},s3=function x(r){return x.fun(r)},$t=function x(r){return x.fun(r)},mK=function x(r){return x.fun(r)},XR=function x(r){return x.fun(r)},kK=function x(r){return x.fun(r)},YR=function x(r){return x.fun(r)},hK=function x(r){return x.fun(r)},_K=function x(r){return x.fun(r)},m6=function x(r){return x.fun(r)},VR=function x(r){return x.fun(r)},zR=function x(r){return x.fun(r)},KR=function x(r){return x.fun(r)},wK=function x(r){return x.fun(r)},BR=function x(r){return x.fun(r)},vm=function x(r){return x.fun(r)},WR=function x(r){return x.fun(r)},TK=function x(r){return x.fun(r)},Gv=function x(r,e,t,u,i){return x.fun(r,e,t,u,i)},ZR=function x(r,e,t,u){return x.fun(r,e,t,u)},$R=function x(r){return x.fun(r)},am=function x(r){return x.fun(r)},FR=function x(r){return x.fun(r)},QR=function x(r,e,t,u,i){return x.fun(r,e,t,u,i)},SK=function x(r,e,t,u){return x.fun(r,e,t,u)},GR=function x(r){return x.fun(r)},lm=function x(r,e,t){return x.fun(r,e,t)},EK=function x(r){return x.fun(r)},pm=function x(r,e,t){return x.fun(r,e,t)},qR=function x(r){return x.fun(r)},gK=function x(r){return x.fun(r)},HR=function x(r,e){return x.fun(r,e)},bR=function x(r,e,t,u){return x.fun(r,e,t,u)},AK=function x(r){return x.fun(r)},xL=function x(r,e,t){return x.fun(r,e,t)},PK=function x(r){return x.fun(r)},NK=function x(r){return x.fun(r)},rL=function x(r){return x.fun(r)},dm=function x(r,e,t){return x.fun(r,e,t)},OS0=function(x){var r=x[2];switch(r[0]){case 21:var e=r[1],t=e[1][2][1];if(P(t,M2)){if(!P(t,ov)&&!P(e[2][2][1],CS))return 0}else if(!P(e[2][2][1],pl))return 0;break;case 0:case 8:case 20:case 23:break;default:return 0}return 1},eL=function(x){var r=Px(x),e=a(YR,x),t=a(kK,x);if(!t)return e;var u=t[1];return[0,l0([0,r],function(i){var f=jR(0,i,e);return[2,[0,u,f,a($t,i),0]]},x)]},RS0=function(x,r){if(typeof r=="number"&&r===85)return 0;throw q0(us,1)},CK=function(x){var r=Yy(RS0,x),e=eL(r),t=W(r);if(typeof t=="number"){if(t===11)throw q0(us,1);if(t===86){var u=oz(r),i=0;if(u){var f=u[1];if(typeof f=="number"&&f===5){var o=1;i=1}}if(!i)var o=0;if(o)throw q0(us,1)}}if(!ns(r))return e;if(e[0]===0){var l=e[1][2];if(l[0]===8&&!P(l[1][2][1],To)&&!re(r))throw q0(us,1)}return e};I0(s3,function(x){var r=ns(x);if(r){var e=W(x),t=0;if(typeof e=="number"){if(e===58){if(x[18]){var u=0;t=1}}else if(e===65&&x[19]){var u=0;t=1}}if(!t)var u=1;var i=u}else var i=r;var f=W(x),o=0;if(typeof f=="number"){var l=0;if(22<=f)if(f===58){if(x[18])return[0,a(mK,x)];l=1}else f!==98&&(l=1);else f!==4&&21>f&&(l=1);l||(o=1)}if(!o&&!i)return eL(x);var d=0;if(f===64&&k1(x)&&kr(1,x)===98){var k=CK,h=rL;d=1}if(!d)var k=rL,h=CK;var g=sR(x,h);if(g)return g[1];var A=sR(x,k);return A?A[1]:eL(x)}),I0($t,function(x){return o2(x,a(s3,x))}),I0(mK,function(x){return l0(0,function(r){r[10]&&Vx(r,po);var e=w0(r),t=Px(r);u0(r,58);var u=Px(r);if(e3(r))var i=0,f=0;else{var o=o1(r,l2),l=W(r),d=0;if(typeof l=="number"){var k=0;if(l===86)k=1;else if(10>l)switch(l){case 0:case 2:case 3:case 4:case 6:break;default:k=1}if(k){var h=0;d=1}}if(!d)var h=1;var g=0;if(!o&&!h){var A=0;g=1}if(!g)var A=[0,a($t,r)];var i=o,f=A}var N=f?0:hx(r),C=u1(t,u);return[35,[0,f,k0([0,e],[0,N],0),i,C]]},x)}),I0(XR,function(x){var r=x[2];switch(r[0]){case 21:var e=r[1],t=e[1][2][1];if(P(t,M2)){if(!P(t,ov)&&!P(e[2][2][1],CS))return 0}else if(!P(e[2][2][1],pl))return 0;break;case 8:case 20:break;default:return 0}return 1}),I0(kK,function(x){var r=W(x),e=0;if(typeof r=="number"){var t=r+FD|0;if(15>=t>>>0){switch(t){case 0:var u=l30;break;case 1:var u=p30;break;case 2:var u=d30;break;case 3:var u=y30;break;case 4:var u=m30;break;case 5:var u=k30;break;case 6:var u=h30;break;case 7:var u=_30;break;case 8:var u=w30;break;case 9:var u=T30;break;case 10:var u=S30;break;case 11:var u=E30;break;case 12:var u=g30;break;case 13:var u=A30;break;case 14:var u=P30;break;default:var u=N30}var i=u;e=1}}if(!e)var i=0;return i!==0&&Z0(x),i}),I0(YR,function(x){var r=Px(x),e=a(_K,x);if(W(x)!==85)return e;Z0(x);var t=a($t,e6(0,x));u0(x,86);var u=l0([0,r],$t,x),i=u[2],f=u[1];return[0,[0,f,[6,[0,o2(x,e),t,i,0]]]]}),I0(hK,function(x){return o2(x,a(YR,x))});var tL=function(x,r,e,t,u){var i=o2(x,r);return[0,[0,u,[19,[0,t,i,o2(x,e),0]]]]},nL=function(x,r,e){for(var t=r,u=e;;){var i=W(x);if(typeof i=="number"&&i===88){Z0(x);var f=l0(0,m6,x),o=f[2],l=u1(u,f[1]),d=uL(0,x,tL(x,t,o,1,l),l),t=d[2],u=d[1];continue}return[0,u,t]}},IK=function(x,r,e){for(var t=r,u=e;;){var i=W(x);if(typeof i=="number"&&i===87){Z0(x);var f=l0(0,m6,x),o=nL(x,f[2],f[1]),l=o[2],d=u1(u,o[1]),k=uL(0,x,tL(x,t,l,0,d),d),t=k[2],u=k[1];continue}return[0,u,t]}},uL=function(x,r,e,t){for(var u=x,i=e,f=t;;){var o=W(r);if(typeof o=="number"&&o===84){1-u&&Vx(r,a30),u0(r,84);var l=l0(0,m6,r),d=l[2],k=l[1],h=W(r),g=0;if(typeof h=="number"&&1>=h-87>>>0){Vx(r,[20,ZO(h)]);var A=nL(r,d,k),N=IK(r,A[2],A[1]),C=N[2],O=N[1];g=1}if(!g)var C=d,O=k;var L=u1(f,O),u=1,i=tL(r,i,C,2,L),f=L;continue}return[0,f,i]}};I0(_K,function(x){var r=l0(0,m6,x),e=r[2],t=r[1],u=W(x),i=0;if(typeof u=="number"&&u===84){var o=uL(1,x,e,t);i=1}if(!i)var f=nL(x,e,t),o=IK(x,f[2],f[1]);return o[2]});var iL=function(x,r,e,t){return[0,t,[3,[0,e,x,r,0]]]},LS0=function(x,r){var e=r;x:for(;;){var t=l0(0,function(ox){var b0=a(VR,ox)!==0?1:0;return[0,b0,a(zR,e6(0,ox))]},x),u=t[2],i=u[2],f=u[1],o=t[1];if(W(x)===98){var l=0;i[0]===0&&i[1][2][0]===10&&(Vx(x,2),l=1)}for(var d=e,k=i;;){var h=W(x);if(typeof h!="number"&&h[0]===4){var g=h[3],A=0;if(P(g,ln)&&P(g,WU)&&(A=1),!A&&k1(x)){Z0(x);var N=o2(x,k),C=0;if(d){var O=d[1],L=O[2],M=d[2],V=O[3],z=L[1],Y=O[1];if(yK(L[2],Ka0)){var t0=iL(Y,N,z,u1(V,o)),i0=M;C=1}}if(!C)var t0=N,i0=d;var j=t0[1];if(Ar(g,WU))var K=bs(x),x0=K[1],$=[1,K];else if(W(x)===27){var J=Px(x);Z0(x);var x0=J,$=0}else var Q=bs(x),x0=Q[1],$=[0,Q];var d=i0,k=[0,[0,u1(j,x0),[32,[0,t0,$,0]]]];continue}}var f0=W(x),s0=0;if(typeof f0=="number"){var v0=f0-17|0,o0=0;if(1>>0)if(72<=v0){var c0=0;switch(v0-72|0){case 0:var d0=Ba0;break;case 1:var d0=Wa0;break;case 2:var d0=Za0;break;case 3:var d0=$a0;break;case 4:var d0=Fa0;break;case 5:var d0=Qa0;break;case 6:var d0=Ga0;break;case 7:var d0=qa0;break;case 8:var d0=Ha0;break;case 9:var d0=ba0;break;case 10:var d0=x30;break;case 11:var d0=r30;break;case 12:var d0=e30;break;case 13:var d0=t30;break;case 14:var d0=n30;break;case 15:var d0=u30;break;case 16:var d0=i30;break;case 17:var d0=f30;break;case 18:var d0=c30;break;case 19:var d0=s30;break;default:o0=1,c0=1}if(!c0)var E0=d0}else o0=1;else var E0=v0?o30:x[12]?0:v30;if(!o0){var L0=E0;s0=1}}if(!s0)var L0=0;if(L0!==0&&Z0(x),!d&&!L0)return k;if(!L0)for(var X0=o2(x,k),xx=o,g0=d;;){if(!g0)return[0,X0];var $0=g0[1],n0=g0[2],ix=$0[2][1],rx=$0[1],dx=u1($0[3],xx),X0=iL(rx,X0,ix,dx),xx=dx,g0=n0}var ax=L0[1],Sx=ax[1],D0=ax[2],N0=f&&(Sx===14?1:0);N0&&nx(x,[0,o,42]);for(var A0=o2(x,k),Y0=[0,Sx,D0],C0=o,F=d;;){var H=Y0[2],B=Y0[1];if(F){var a0=F[1],m0=a0[2],P0=F[2],D=a0[3],O0=m0[1],K0=a0[1];if(yK(m0[2],H)){var j0=u1(D,C0),A0=iL(K0,A0,O0,j0),Y0=[0,B,H],C0=j0,F=P0;continue}}var e=[0,[0,A0,[0,B,H],C0],F];continue x}}}};I0(m6,function(x){return LS0(x,0)}),I0(VR,function(x){var r=W(x);if(typeof r=="number"){if(48<=r){if(fn<=r){if(Ot>r)switch(r+MP|0){case 0:return Da0;case 1:return Ua0;case 6:return ja0;case 7:return Ja0}}else if(r===65&&x[19])return x[10]&&Vx(x,7),Xa0}else if(45<=r)switch(r+dE|0){case 0:return Ya0;case 1:return Va0;default:return za0}}return 0}),I0(zR,function(x){var r=Px(x),e=w0(x),t=a(VR,x);if(t){var u=t[1];Z0(x);var i=l0([0,r],KR,x),f=i[2],o=i[1],l=0;if(u===6){var d=f[2],k=0;switch(d[0]){case 8:at(x,[0,o,73]),k=1;break;case 20:d[1][2][0]===1&&nx(x,[0,o,67]),k=1;break}k&&(l=1)}return[0,[0,o,[33,[0,u,f,k0([0,e],0,0)]]]]}var h=W(x),g=0;if(typeof h=="number")if(Ot===h)var A=Ma0;else if(L2===h)var A=La0;else g=1;else g=1;if(g)var A=0;if(!A)return a(wK,x);var N=A[1];Z0(x);var C=l0([0,r],KR,x),O=C[2],L=C[1];1-a(XR,O)&&nx(x,[0,O[1],41]);var M=O[2],V=0;return M[0]===8&&Bv(M[1][2][1])&&(Zt(x,78),V=1),[0,[0,L,[34,[0,N,O,1,k0([0,e],0,0)]]]]}),I0(KR,function(x){return o2(x,a(zR,x))}),I0(wK,function(x){var r=a(BR,x);if(re(x))return r;var e=W(x),t=0;if(typeof e=="number")if(Ot===e)var u=Ra0;else if(L2===e)var u=Oa0;else t=1;else t=1;if(t)var u=0;if(!u)return r;var i=u[1],f=o2(x,r);1-a(XR,f)&&nx(x,[0,f[1],41]);var o=f[2],l=0;o[0]===8&&Bv(o[1][2][1])&&(Zt(x,77),l=1);var d=Px(x);Z0(x);var k=hx(x),h=u1(f[1],d);return[0,[0,h,[34,[0,i,f,0,k0(0,[0,k],0)]]]]}),I0(BR,function(x){var r=Px(x),e=1-x[17],t=0,u=x[17]===0?x:[0,x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14],x[15],x[16],t,x[18],x[19],x[20],x[21],x[22],x[23],x[24],x[25],x[26],x[27],x[28],x[29],x[30],x[31]],i=W(u),f=0;if(typeof i=="number"){var o=i-44|0;if(7>=o>>>0){var l=0;switch(o){case 0:if(e)var d=[0,a($R,u)];else l=1;break;case 6:var d=[0,a(TK,u)];break;case 7:var d=[0,a(WR,u)];break;default:l=1}if(!l){var k=d;f=1}}}if(!f)var k=jo(u)?[0,a(GR,u)]:a(qR,u);return Ve(Gv,0,0,u,r,k)}),I0(vm,function(x){return o2(x,a(BR,x))}),I0(WR,function(x){switch(x[22]){case 0:var r=0,e=0;break;case 1:var r=0,e=1;break;default:var r=1,e=1}var t=Px(x),u=w0(x);u0(x,51);var i=[0,t,[27,[0,k0([0,u],[0,hx(x)],0)]]],f=W(x);if(typeof f=="number"&&11>f)switch(f){case 4:var o=r?i:(nx(x,[0,t,De]),[0,t,[8,Sn(0,[0,t,Na0])]]);return ve(ZR,0,x,t,o);case 6:case 10:var l=e?i:(nx(x,[0,t,Dt]),[0,t,[8,Sn(0,[0,t,Ia0])]]);return ve(ZR,0,x,t,l)}return e?S1(Ca0,x):nx(x,[0,t,Dt]),i}),I0(TK,function(x){return l0(0,function(r){var e=w0(r),t=Px(r);if(u0(r,50),o1(r,10)){var u=Sn(0,[0,t,ga0]),i=Px(r);Hs(r,Aa0);var f=Sn(0,[0,i,Pa0]);return[21,[0,u,f,k0([0,e],[0,hx(r)],0)]]}var o=w0(r);u0(r,4);var l=H0(xL,[0,o],0,a($t,e6(0,r)));return u0(r,5),[9,[0,l,k0([0,e],[0,hx(r)],0)]]},x)}),I0(Gv,function(x,r,e,t,u){var i=x?x[1]:1,f=r?r[1]:0,o=Ve(QR,[0,i],[0,f],e,t,u),l=oz(e),d=0;if(l){var k=l[1];if(typeof k=="number"&&k===83){var h=1;d=1}}if(!d)var h=0;function g(L){var M=P1(L)[2];function V(z,Y){return p(qx(z,mn,61),z,Y)}return p(M,o2(L,o),V)}function A(L,M,V){var z=a(FR,M),Y=z[1],t0=z[2],i0=u1(t,Y),j=[0,V,L,[0,Y,t0],0],K=0;if(!h&&!f){var J=[4,j];K=1}if(!K)var J=[24,[0,j,i0,h]];var Q=f||h;return Ve(Gv,[0,i],[0,Q],M,t,[0,[0,i0,J]])}if(e[13])return o;var N=W(e);if(typeof N=="number"){var C=N-98|0;if(2>>0){if(C===-94)return A(0,e,g(e))}else if(C!==1&&k1(e)){var O=Yy(function(L,M){throw q0(us,1)},e);return Wy(O,o,function(L){var M=g(L);return A(a(am,L),L,M)})}}return o}),I0(ZR,function(x,r,e,t){var u=x?x[1]:1;return o2(r,Ve(Gv,[0,u],0,r,e,[0,t]))}),I0($R,function(x){return l0(0,function(r){var e=Px(r),t=w0(r);if(u0(r,44),r[11]&&W(r)===10){var u=hx(r);Z0(r);var i=Sn(k0([0,t],[0,u],0),[0,e,Ta0]),f=W(r);return typeof f!="number"&&f[0]===4&&!P(f[3],CS)?[21,[0,i,p(px[13],0,r),0]]:(S1(Sa0,r),Z0(r),[8,i])}var o=Px(r),l=W(r),d=0;if(typeof l=="number")if(l===44)var k=a($R,r);else if(l===51)var k=a(WR,tR(1,r));else d=1;else d=1;if(d)var k=jo(r)?a(GR,r):a(gK,r);var h=ve(SK,Ea0,tR(1,r),o,k),g=W(r),A=0;if(typeof g!="number"&&g[0]===3){var N=ve(bR,r,o,h,g[1]);A=1}if(!A)var N=h;var C=0;if(W(r)!==4){var O=0;if((!k1(r)||W(r)!==98)&&(O=1),O){var M=N;C=1}}if(!C)var L=P1(r)[2],M=p(L,N,function(i0,j){return p(qx(i0,mn,62),i0,j)});var V=k1(r)?Wy(Yy(function(i0,j){throw q0(us,1)},r),0,am):0,z=W(r),Y=0;if(typeof z=="number"&&z===4){var t0=[0,a(FR,r)];Y=1}if(!Y)var t0=0;return[22,[0,M,V,t0,k0([0,t],0,0)]]},x)});var MS0=function(x){var r=w0(x);u0(x,98);for(var e=0;;){var t=W(x);if(typeof t=="number"){var u=0;if(t!==99&&Rr!==t&&(u=1),!u){var i=Ax(e),f=w0(x);u0(x,99);var o=W(x)===4?P1(x)[1]:hx(x);return[0,i,j1([0,r],[0,o],f,0)]}}var l=W(x),d=0;if(typeof l!="number"&&l[0]===4&&!P(l[2],Aa)){var k=Px(x),h=w0(x);Hs(x,wa0);var g=[1,[0,k,[0,k0([0,h],[0,hx(x)],0)]]];d=1}if(!d)var g=[0,bs(x)];var A=[0,g,e];W(x)!==99&&u0(x,9);var e=A}};I0(am,function(x){J1(x,1);var r=W(x)===98?[0,l0(0,MS0,x)]:0;return K1(x),r});var DS0=function(x){var r=w0(x);u0(x,12);var e=a($t,x);return[0,e,k0([0,r],0,0)]};I0(FR,function(x){return l0(0,function(r){var e=w0(r);u0(r,4);for(var t=0;;){var u=W(r);if(typeof u=="number"){var i=0;if(u!==5&&Rr!==u&&(i=1),!i){var f=Ax(t),o=w0(r);return u0(r,5),[0,f,j1([0,e],[0,hx(r)],o,0)]}}var l=W(r),d=0;if(typeof l=="number"&&l===12){var k=[1,l0(0,DS0,r)];d=1}if(!d)var k=[0,a($t,r)];var h=[0,k,t];W(r)!==5&&u0(r,9);var t=h}},x)});var OK=function(x,r,e,t,u,i){var f=x?x[1]:1,o=r?r[1]:0,l=e?e[1]:0,d=tR(0,t),k=a(px[7],d),h=Px(t);u0(t,7);var g=hx(t),A=u1(u,h),N=k0(0,[0,g],0),C=[0,o2(t,i),[2,k],N],O=o?[25,[0,C,A,l]]:[20,C];return Ve(Gv,[0,f],[0,o],t,u,[0,[0,A,O]])},RK=function(x,r,e,t,u,i){var f=x?x[1]:1,o=r?r[1]:0,l=e?e[1]:0,d=W(t),k=0;if(typeof d=="number"&&d===14){var h=Az(t),g=h[1],A=t[30][1],N=h[2][1];if(A){var C=A[1];t[30][1]=[0,[0,C[1],[0,[0,N,g],C[2]]],A[2]]}else nx(t,[0,g,68]);var L=[1,h],M=g;k=1}if(!k)var O=T2(t),L=[0,O],M=O[1];var V=u1(u,M),z=0;i[0]===0&&i[1][2][0]===27&&L[0]===1&&(nx(t,[0,V,87]),z=1);var Y=[0,o2(t,i),L,0],t0=o?[25,[0,Y,V,l]]:[20,Y];return Ve(Gv,[0,f],[0,o],t,u,[0,[0,V,t0]])};I0(QR,function(x,r,e,t,u){var i=x?x[1]:1,f=r?r[1]:0,o=W(e);if(typeof o=="number")switch(o){case 6:return Z0(e),OK([0,i],[0,f],0,e,t,u);case 10:return Z0(e),RK([0,i],[0,f],0,e,t,u);case 83:1-i&&Vx(e,64),u0(e,83);var l=W(e);if(typeof l=="number")switch(l){case 4:return u;case 6:return Z0(e),OK([0,i],ma0,ya0,e,t,u);case 98:if(k1(e))return u;break}else if(l[0]===3)return Vx(e,65),u;return RK([0,i],ha0,ka0,e,t,u)}else if(o[0]===3){var d=o[1];return f&&Vx(e,65),Ve(Gv,_a0,0,e,t,[0,ve(bR,e,t,o2(e,u),d)])}return u}),I0(SK,function(x,r,e,t){var u=x?x[1]:1;return o2(r,Ve(QR,[0,u],0,r,e,[0,t]))}),I0(GR,function(x){return l0(0,function(r){var e=om(r),t=e[1],u=e[2],i=l0(0,function(L){var M=w0(L);u0(L,15);var V=c3(L),z=V[1],Y=Ll([0,u,[0,M,[0,V[2],0]]]);if(W(L)===4)var t0=0,i0=0;else{var j=W(L),K=0;if(typeof j=="number"&&j===98){var Q=0;K=1}if(!K)var J=bO(z,xR(t,L)),Q=[0,gn(J,p(px[13],da0,J))];var t0=ee(L,Ze(L)),i0=Q}var x0=zv(0,L),$=t||x0[19],f0=a(f3($,z),x0),s0=W(x0)===86?f0:c6(x0,f0),v0=OR(x0),o0=v0[2],c0=v0[1];if(o0)var d0=Tz(x0,o0),E0=c0;else var d0=o0,E0=t3(x0,c0);return[0,i0,s0,z,d0,E0,t0,Y]},r),f=i[2],o=f[3],l=f[2],d=f[1],k=f[7],h=f[6],g=f[5],A=f[4],N=i[1],C=d6(r,t,o,1,Zv(l)),O=C[1];return i3(r,C[2],d,l),[7,[0,d,l,O,t,o,A,g,h,k0([0,k],0,0),N]]},x)}),I0(lm,function(x,r,e){switch(r){case 1:Zt(x,81);try{var t=Vd(Sl(Fx(oa0,e))),u=t}catch(g){var i=C1(g);if(i[1]!==_n)throw q0(i,0);var u=Ox(Fx(va0,e))}break;case 2:Zt(x,80);try{var f=jI(e),u=f}catch(g){var o=C1(g);if(o[1]!==_n)throw q0(o,0);var u=Ox(Fx(aa0,e))}break;case 4:try{var l=jI(e),u=l}catch(g){var d=C1(g);if(d[1]!==_n)throw q0(d,0);var u=Ox(Fx(la0,e))}break;default:try{var k=Vd(Sl(e)),u=k}catch(g){var h=C1(g);if(h[1]!==_n)throw q0(h,0);var u=Ox(Fx(pa0,e))}}return u0(x,[0,r,e]),u}),I0(EK,function(x){var r=Xx(x),e=0;if(r!==0&&V1===N1(x,r-1|0)){var t=m2(x,0,r-1|0);e=1}if(!e)var t=x;return t}),I0(pm,function(x,r,e){var t=nY(a(EK,e));return u0(x,[1,r,e]),t}),I0(qR,function(x){var r=Px(x),e=w0(x),t=W(x);if(typeof t=="number")switch(t){case 0:var u=a(px[12],x);return[1,[0,u[1],[23,u[2]]],u[3]];case 4:return[0,a(AK,x)];case 6:var i=l0(0,PK,x),f=i[2];return[1,[0,i[1],[0,f[1]]],f[2]];case 21:return Z0(x),[0,[0,r,[30,[0,k0([0,e],[0,hx(x)],0)]]]];case 29:return Z0(x),[0,[0,r,[14,k0([0,e],[0,hx(x)],0)]]];case 40:return[0,a(px[22],x)];case 98:var o=a(px[17],x),l=o[2],d=o[1],k=cn<=l[1]?[11,l[2]]:[10,l[2]];return[0,[0,d,k]];case 30:case 31:return Z0(x),[0,[0,r,[13,[0,t===31?1:0,k0([0,e],[0,hx(x)],0)]]]];case 74:case 105:return[0,a(NK,x)]}else switch(t[0]){case 0:var h=t[2],g=H0(lm,x,t[1],h);return[0,[0,r,[15,[0,g,h,k0([0,e],[0,hx(x)],0)]]]];case 1:var A=t[2],N=H0(pm,x,t[1],A);return[0,[0,r,[16,[0,N,A,k0([0,e],[0,hx(x)],0)]]]];case 2:var C=t[1],O=C[3],L=C[2],M=C[1];C[4]&&Zt(x,81),Z0(x);var V=k0([0,e],[0,hx(x)],0),z=x[28],Y=z[6],t0=z[7],i0=0;if(Y){var j=Y[1];if(eY(j,L))var K=[18,[0,L,M,Xx(j),0,O,V]];else i0=1}else i0=1;if(i0){var J=0;if(t0){var Q=t0[1];if(eY(Q,L)){var K=[18,[0,L,M,Xx(Q),1,O,V]];J=1}}if(!J)var K=[12,[0,L,O,V]]}return[0,[0,M,K]];case 3:var x0=p(HR,x,t[1]);return[0,[0,x0[1],[29,x0[2]]]];case 4:if(!P(t[3],Wh)&&kr(1,x)===40)return[0,a(px[22],x)];break}if(ns(x)){var $=p(px[13],0,x);return[0,[0,$[1],[8,$]]]}S1(0,x);var f0=0;return typeof t!="number"&&t[0]===7&&(Z0(x),f0=1),[0,[0,r,[14,k0([0,e],sa0,0)]]]}),I0(gK,function(x){return o2(x,a(qR,x))}),I0(HR,function(x,r){var e=r[5],t=r[1],u=r[3],i=r[2],f=w0(x);u0(x,[3,r]);var o=[0,t,[0,[0,u,i],e]];if(e)var l=0,d=[0,o,0],k=t;else for(var h=[0,o,0],g=0;;){var A=a(px[7],x),N=[0,A,g],C=W(x),O=0;if(typeof C=="number"&&C===1){J1(x,4);var L=W(x),M=0;if(typeof L=="number"||L[0]!==3)M=1;else{var V=L[1],z=V[5],Y=V[1],t0=V[3],i0=V[2];Z0(x),K1(x);var j=[0,[0,Y,[0,[0,t0,i0],z]],h];if(!z){var h=j,g=N;continue}var K=Ax(N),J=[0,Y,Ax(j),K];O=1}if(M)throw q0([0,wr,ia0],1)}if(!O){S1(fa0,x);var Q=[0,A[1],ca0],x0=Ax(N),$=Ax([0,Q,h]),J=[0,A[1],$,x0]}var l=J[3],d=J[2],k=J[1];break}var f0=hx(x),s0=u1(t,k);return[0,s0,[0,d,l,k0([0,f],[0,f0],0)]]}),I0(bR,function(x,r,e,t){var u=P1(x)[2],i=p(u,e,function(o,l){return p(qx(o,mn,3),o,l)}),f=p(HR,x,t);return[0,u1(r,f[1]),[28,[0,i,f,0]]]}),I0(AK,function(x){var r=w0(x),e=l0(0,function(o){u0(o,4);var l=Px(o),d=a($t,o),k=W(o),h=0;if(typeof k=="number")if(k===9)var g=[0,H0(dm,o,l,[0,d,0])];else if(k===86)var g=[1,[0,d,Qv(o),0]];else h=1;else h=1;if(h)var g=[0,d];return u0(o,5),g},x),t=e[2],u=e[1],i=hx(x),f=t[0]===0?t[1]:[0,u,[31,t[1]]];return H0(xL,[0,r],[0,i],f)}),I0(xL,function(x,r,e){var t=e[2],u=e[1],i=x?x[1]:0,f=r?r[1]:0;function o(br){return N2(br,k0([0,i],[0,f],0))}function l(br){return VO(br,k0([0,i],[0,f],0))}switch(t[0]){case 0:var d=t[1],k=l(d[2]),lx=[0,[0,d[1],k]];break;case 1:var h=t[1],g=h[10],A=o(h[9]),lx=[1,[0,h[1],h[2],h[3],h[4],h[5],h[6],h[7],h[8],A,g]];break;case 2:var N=t[1],C=o(N[4]),lx=[2,[0,N[1],N[2],N[3],C]];break;case 3:var O=t[1],L=o(O[4]),lx=[3,[0,O[1],O[2],O[3],L]];break;case 4:var M=t[1],V=o(M[4]),lx=[4,[0,M[1],M[2],M[3],V]];break;case 5:var z=t[1],Y=o(z[7]),lx=[5,[0,z[1],z[2],z[3],z[4],z[5],z[6],Y]];break;case 6:var t0=t[1],i0=o(t0[4]),lx=[6,[0,t0[1],t0[2],t0[3],i0]];break;case 7:var j=t[1],K=j[10],J=o(j[9]),lx=[7,[0,j[1],j[2],j[3],j[4],j[5],j[6],j[7],j[8],J,K]];break;case 8:var Q=t[1],x0=Q[2],$=Q[1],f0=o(x0[2]),lx=[8,[0,$,[0,x0[1],f0]]];break;case 9:var s0=t[1],v0=o(s0[2]),lx=[9,[0,s0[1],v0]];break;case 10:var o0=t[1],c0=o(o0[4]),lx=[10,[0,o0[1],o0[2],o0[3],c0]];break;case 11:var d0=t[1],E0=o(d0[4]),lx=[11,[0,d0[1],d0[2],d0[3],E0]];break;case 12:var L0=t[1],X0=o(L0[3]),lx=[12,[0,L0[1],L0[2],X0]];break;case 13:var xx=t[1],g0=o(xx[2]),lx=[13,[0,xx[1],g0]];break;case 14:var lx=[14,o(t[1])];break;case 15:var $0=t[1],n0=o($0[3]),lx=[15,[0,$0[1],$0[2],n0]];break;case 16:var ix=t[1],rx=o(ix[3]),lx=[16,[0,ix[1],ix[2],rx]];break;case 17:var dx=t[1],ax=o(dx[4]),lx=[17,[0,dx[1],dx[2],dx[3],ax]];break;case 18:var Sx=t[1],D0=o(Sx[6]),lx=[18,[0,Sx[1],Sx[2],Sx[3],Sx[4],Sx[5],D0]];break;case 19:var N0=t[1],A0=o(N0[4]),lx=[19,[0,N0[1],N0[2],N0[3],A0]];break;case 20:var Y0=t[1],C0=o(Y0[3]),lx=[20,[0,Y0[1],Y0[2],C0]];break;case 21:var F=t[1],H=o(F[3]),lx=[21,[0,F[1],F[2],H]];break;case 22:var B=t[1],a0=o(B[4]),lx=[22,[0,B[1],B[2],B[3],a0]];break;case 23:var m0=t[1],P0=l(m0[2]),lx=[23,[0,m0[1],P0]];break;case 24:var D=t[1],O0=D[1],K0=D[3],j0=D[2],ox=o(O0[4]),lx=[24,[0,[0,O0[1],O0[2],O0[3],ox],j0,K0]];break;case 25:var b0=t[1],_x=b0[1],B0=b0[3],T=b0[2],X=o(_x[3]),lx=[25,[0,[0,_x[1],_x[2],X],T,B0]];break;case 26:var F0=t[1],sx=o(F0[2]),lx=[26,[0,F0[1],sx]];break;case 27:var lx=[27,[0,o(t[1][1])]];break;case 28:var ex=t[1],U0=o(ex[3]),lx=[28,[0,ex[1],ex[2],U0]];break;case 29:var Nx=t[1],mx=o(Nx[3]),lx=[29,[0,Nx[1],Nx[2],mx]];break;case 30:var lx=[30,[0,o(t[1][1])]];break;case 31:var Bx=t[1],Gx=o(Bx[3]),lx=[31,[0,Bx[1],Bx[2],Gx]];break;case 32:var lx=t;break;case 33:var J0=t[1],bx=o(J0[3]),lx=[33,[0,J0[1],J0[2],bx]];break;case 34:var Jx=t[1],W0=o(Jx[4]),lx=[34,[0,Jx[1],Jx[2],Jx[3],W0]];break;default:var nr=t[1],V0=nr[4],Sr=nr[3],Ur=o(nr[2]),lx=[35,[0,nr[1],Ur,Sr,V0]]}return[0,u,lx]}),I0(PK,function(x){var r=w0(x);u0(x,6);for(var e=[0,0,wn];;){var t=e[2],u=e[1],i=W(x);if(typeof i=="number"){var f=0;if(13<=i)Rr===i&&(f=1);else if(7<=i)switch(i-7|0){case 0:f=1;break;case 2:var o=Px(x);Z0(x);var e=[0,[0,[2,o],u],t];continue;case 5:var l=w0(x),d=l0(0,function(J){Z0(J);var Q=a(s3,J);return Q[0]===0?[0,Q[1],wn]:[0,Q[1],Q[2]]},x),k=d[2],h=k[2],g=d[1],A=k[1],N=[1,[0,g,[0,A,k0([0,l],0,0)]]],C=W(x)===7?1:0,O=0;if(!C&&kr(1,x)===7){var L=[0,h[1],[0,[0,g,20],h[2]]];O=1}if(!O)var L=h;1-C&&u0(x,9);var e=[0,[0,N,u],JR(L,t)];continue}if(f){var M=dK(t),V=Ax(u),z=w0(x);return u0(x,7),[0,[0,V,j1([0,r],[0,hx(x)],z,0)],M]}}var Y=a(s3,x);if(Y[0]===0)var t0=wn,i0=Y[1];else var t0=Y[2],i0=Y[1];W(x)!==7&&u0(x,9);var e=[0,[0,[0,i0],u],JR(t0,t)]}}),I0(NK,function(x){J1(x,5);var r=Px(x),e=w0(x),t=W(x),u=0;if(typeof t!="number"&&t[0]===5){var i=t[3],f=t[2];Z0(x);var o=hx(x),l=o,d=i,k=f,h=Fx(ra0,Fx(f,Fx(xa0,i)));u=1}if(!u){S1(ea0,x);var l=0,d=ta0,k=na0,h=ua0}K1(x);var g=Zr(Xx(d)),A=Xx(d)-1|0,N=0;if(A>=0)for(var C=N;;){var O=fx(d,C),L=O-100|0,M=0;if(21>=L>>>0)switch(L){case 0:case 3:case 5:case 9:case 15:case 17:case 21:st(g,O),M=1;break}var V=C+1|0;if(A!==C){var C=V;continue}break}var z=U1(g);return P(z,d)&&Vx(x,[18,d]),[0,r,[17,[0,k,z,h,k0([0,e],[0,l],0)]]]});var US0=function(x){return function(r){if(typeof r=="number"){var e=0;if(66<=r){var t=r+FD|0;if(49>>0)e=1;else{var u=t-15|0;if(9>=u>>>0)switch(u){case 0:case 1:case 3:case 9:e=1;break}}}else 8<=r?r===60&&(e=1):6<=r&&(e=1);if(e)return 0}throw q0(us,1)}},jS0=function(x){var r=W(x);if(typeof r=="number"&&!r){var e=p(px[16],1,x);return[0,[0,e[1]],e[2]]}return[0,[1,a(px[10],x)],0]};I0(rL,function(x){var r=Yy(US0,x),e=Px(r);if(kr(1,r)===11)var u=0,i=0;else var t=om(r),u=t[2],i=t[1];var f=i||r[19],o=xR(f,r),l=o[18],d=l0(0,function(c0){var d0=ee(c0,Ze(c0));if(ns(c0)&&d0===0){var E0=p(px[13],bv0,c0),L0=E0[1],X0=[0,L0,[0,[0,L0,[2,[0,E0,[0,Gs(c0)],0]]],0]];return[0,d0,[0,L0,[0,0,[0,X0,0],0,0]],[0,[0,L0[1],L0[3],L0[3]]],0]}var xx=a(f3(f,l),c0);fK(c0,xx);var g0=OR(Kv(1,c0));return[0,d0,xx,g0[1],g0[2]]},o),k=d[2],h=k[2],g=h[2],A=0,N=k[4],C=k[3],O=k[1],L=d[1];if(!g[1]){var M=0,V=g[2];if((g[3]||!V)&&(M=1),M){var z=vz(o);A=1}}if(!A)var z=o;var Y=h[2],t0=Y[1];if(t0){var i0=h[1];nx(z,[0,t0[1][1],91]);var j=[0,i0,[0,0,Y[2],Y[3],Y[4]]]}else var j=h;var K=Zv(j),J=re(z),Q=J&&(W(z)===11?1:0);Q&&Vx(z,60),u0(z,11);var x0=az(vz(z),i,0,K),$=l0(0,jS0,x0),f0=$[2],s0=f0[1],v0=$[1];i3(x0,f0[2],0,j);var o0=u1(e,v0);return[0,[0,o0,[1,[0,0,j,s0,i,0,N,C,O,k0([0,u],0,0),L]]]]}),I0(dm,function(x,r,e){return l0([0,r],function(t){for(var u=e;;){var i=W(t);if(typeof i=="number"&&i===9){Z0(t);var u=[0,a($t,t),u];continue}return[26,[0,Ax(u),0]]}},x)});var JS0=function(x){var r=w0(x);Z0(x);var e=k0([0,r],0,0),t=a(vm,x),u=re(x)?f6(x):Zy(x),i=u[2];return[0,p(i,t,function(f,o){return p(qx(f,mn,63),f,o)}),e]},fL=function(x){if(!x[28][3])return 0;for(var r=0;;){var e=W(x);if(typeof e=="number"&&e===13){var r=[0,l0(0,JS0,x),r];continue}return Ax(r)}},Vo=function(x,r){var e=x?x[1]:0,t=w0(r),u=W(r);if(typeof u=="number")switch(u){case 6:var i=l0(0,function(v0){var o0=w0(v0);u0(v0,6);var c0=e6(0,v0),d0=a(px[10],c0);return u0(v0,7),[0,d0,k0([0,o0],[0,hx(v0)],0)]},r),f=i[1];return[0,f,[5,[0,f,i[2]]]];case 14:if(!e){var o=l0(0,function(v0){return Z0(v0),[3,T2(v0)]},r),l=o[1],d=o[2];return nx(r,[0,l,68]),[0,l,d]}var k=Az(r),h=r[30][1],g=k[2][1],A=k[1];if(h){var N=h[1],C=h[2],O=N[2],L=[0,[0,p(w2[4],g,N[1]),O],C];r[30][1]=L}else Ox(as0);return[0,A,[4,k]]}else switch(u[0]){case 0:var M=u[2],V=u[1],z=Px(r),Y=H0(lm,r,V,M);return[0,z,[1,[0,z,[0,Y,M,k0([0,t],[0,hx(r)],0)]]]];case 1:var t0=u[2],i0=u[1],j=Px(r),K=H0(pm,r,i0,t0);return[0,j,[2,[0,j,[0,K,t0,k0([0,t],[0,hx(r)],0)]]]];case 2:var J=u[1],Q=J[4],x0=J[3],$=J[2],f0=J[1];return Q&&Zt(r,81),u0(r,[2,[0,f0,$,x0,Q]]),[0,f0,[0,[0,f0,[0,$,x0,k0([0,t],[0,hx(r)],0)]]]]}var s0=T2(r);return[0,s0[1],[3,s0]]},ym=function(x,r,e){var t=c3(x),u=t[1],i=t[2],f=Vo([0,r],x),o=f[1],l=0,d=An(x,f[2]);return[0,d,l0(0,function(k){var h=zv(1,k),g=l0(0,function(z){var Y=a(f3(0,0),z),t0=0,i0=W(z)===86?Y:c6(z,Y);if(e){var j=i0[2],K=0;if(j[1])nx(z,[0,o,28]),K=1;else{var J=0;j[2]||j[3]?J=1:K=1,J&&nx(z,[0,o,27])}}else{var Q=i0[2];if(Q[1])nx(z,[0,o,71]);else{var x0=Q[2],$=0;x0&&!x0[2]&&!Q[3]&&($=1),$||(Q[3]?nx(z,[0,o,70]):nx(z,[0,o,70]))}}return[0,t0,i0,t3(z,IR(z))]},h),A=g[2],N=A[2],C=A[3],O=A[1],L=g[1],M=d6(h,l,u,0,Zv(N)),V=M[1];return i3(h,M[2],0,N),[0,0,N,V,l,u,0,C,O,k0([0,i],0,0),L]},x)]},LK=function(x){var r=a(s3,x);return r[0]===0?[0,r[1],wn]:[0,r[1],r[2]]},MK=function(x,r){switch(r[0]){case 0:var e=r[1],t=e[1],u=e[2];return nx(x,[0,t,53]),[0,t,[12,u]];case 1:var i=r[1],f=i[1],o=i[2];return nx(x,[0,f,53]),[0,f,[15,o]];case 2:var l=r[1],d=l[1],k=l[2];return nx(x,[0,d,53]),[0,d,[16,k]];case 3:var h=r[1],g=h[2][1],A=h[1];return Vy(g)?nx(x,[0,A,it]):r3(g)&&at(x,[0,A,85]),[0,A,[8,h]];case 4:return Ox(V30);default:var N=r[1][2][1];return nx(x,[0,N[1],8]),N}},DK=function(x,r,e){function t(i){var f=zv(1,i),o=l0(0,function(C){var O=ee(C,Ze(C)),L=a(f3(x,r),C),M=W(C)===86?L:c6(C,L);return[0,O,M,t3(C,IR(C))]},f),l=o[2],d=l[2],k=l[3],h=l[1],g=o[1],A=d6(f,x,r,0,Zv(d)),N=A[1];return i3(f,A[2],0,d),[0,0,d,N,x,r,0,k,h,k0([0,e],0,0),g]}var u=0;return function(i){return l0(u,t,i)}},UK=function(x){return u0(x,86),LK(x)},cL=function(x,r,e,t,u,i){var f=l0([0,r],function(l){if(!t&&!u){var d=W(l);if(typeof d=="number"){var k=0;if(86<=d){if(d===98)k=1;else if(87>d){var h=UK(l);return[0,[0,e,h[1],0],h[2]]}}else{if(d===82){if(e[0]===3)var g=e[1],A=Px(l),N=function(V){var z=w0(V);u0(V,82);var Y=hx(V),t0=p(px[19],V,[0,g[1],[8,g]]),i0=a(px[10],V);return[2,[0,0,t0,i0,k0([0,z],[0,Y],0)]]},C=l0([0,g[1]],N,l),O=[0,C,[0,[0,[0,A,[24,ly(Y30)]],0],0]];else var O=UK(l);return[0,[0,e,O[1],1],O[2]]}if(10>d)switch(d){case 4:k=1;break;case 1:case 9:return[0,[0,e,MK(l,e),1],wn]}}if(k){var L=An(l,e);return[0,[1,L,a(DK(t,u,i),l)],wn]}}return[0,[0,e,MK(l,e),1],wn]}var M=An(l,e);return[0,[1,M,a(DK(t,u,i),l)],wn]},x),o=f[2];return[0,[0,[0,f[1],o[1]]],o[2]]},XS0=function(x){if(W(x)===12){var r=w0(x),e=l0(0,function(L0){return u0(L0,12),LK(L0)},x),t=e[2],u=t[2],i=t[1],f=e[1];return[0,[1,[0,f,[0,i,k0([0,r],0,0)]]],u]}var o=Px(x),l=kr(1,x),d=0;if(typeof l=="number"){var k=0;if(86<=l)l!==98&&87<=l&&(k=1);else if(l!==82)if(10<=l)k=1;else switch(l){case 1:case 4:case 9:break;default:k=1}if(!k){var g=0,A=0;d=1}}if(!d)var h=om(x),g=h[2],A=h[1];var N=c3(x),C=N[1],O=Qx(g,N[2]),L=W(x);if(!A&&!C&&typeof L!="number"&&L[0]===4){var M=L[3];if(!P(M,gv)){var V=w0(x),z=Vo(0,x)[2],Y=W(x);if(typeof Y=="number"){var t0=0;if(86<=Y)Y!==98&&87<=Y&&(t0=1);else if(Y!==82)if(10<=Y)t0=1;else switch(Y){case 1:case 4:case 9:break;default:t0=1}if(!t0)return cL(x,o,z,0,0,0)}An(x,z);var i0=l0([0,o],function(L0){return ym(L0,0,1)},x),j=i0[2],K=j[2],J=j[1],Q=i0[1];return[0,[0,[0,Q,[2,J,K,k0([0,V],0,0)]]],wn]}if(!P(M,Ra)){var x0=w0(x),$=Vo(0,x)[2],f0=W(x);if(typeof f0=="number"){var s0=0;if(86<=f0)f0!==98&&87<=f0&&(s0=1);else if(f0!==82)if(10<=f0)s0=1;else switch(f0){case 1:case 4:case 9:break;default:s0=1}if(!s0)return cL(x,o,$,0,0,0)}An(x,$);var v0=l0([0,o],function(L0){return ym(L0,0,0)},x),o0=v0[2],c0=o0[2],d0=o0[1],E0=v0[1];return[0,[0,[0,E0,[3,d0,c0,k0([0,x0],0,0)]]],wn]}}return cL(x,o,Vo(0,x)[2],A,C,O)},YS0=function(x){var r=l0(0,function(t){var u=w0(t);u0(t,0);for(var i=0,f=[0,0,wn];;){var o=f[2],l=f[1],d=W(t);if(typeof d=="number"){var k=0;if(d!==1&&Rr!==d&&(k=1),!k){var h=i?[0,o[1],[0,[0,i[1],95],o[2]]]:o,g=dK(h),A=Ax(l),N=w0(t);return u0(t,1),[0,[0,A,j1([0,u],[0,hx(t)],N,0)],g]}}var C=XS0(t),O=C[1],L=0,M=C[2];if(O[0]===1&&W(t)===9){var V=[0,Px(t)];L=1}if(!L)var V=0;var z=JR(M,o),Y=W(t),t0=0;if(typeof Y=="number"){var i0=Y-2|0,j=0;if(V1>>0?L2>=i0+1>>>0&&(j=1):i0===7&&(Z0(t),j=1),j){var K=z;t0=1}}if(!t0){var J=$O(us0,9),Q=mz([0,J],W(t)),x0=[0,Px(t),Q];o1(t,8);var K=[0,[0,x0,z[1]],[0,x0,z[2]]]}var i=V,f=[0,[0,O,l],K]}},x),e=r[2];return[0,r[1],e[1],e[2]]},mm=function(x,r,e,t){var u=e[2][1],i=e[1];if(Ar(u,Tv))return nx(x,[0,i,[15,u,0,Mj===t?1:0,1]]),r;for(var f=r;;){if(typeof f=="number")var l=0;else if(f[0]===0)var o=f[2],l=Tx(u,f[1])===0?[0,o]:0;else{var d=Tx(u,f[2]),k=f[5],h=f[4],g=f[3];if(d!==0){var A=0<=d?k:h,f=A;continue}var l=[0,g]}if(!l)return qy(u,t,r);var N=l[1],C=0;return PP===t?YC===N&&(C=1):YC===t&&PP===N&&(C=1),C||nx(x,[0,i,[1,u]]),qy(u,jU,r)}},jK=function(x,r){return l0(0,function(e){var t=r?w0(e):0;u0(e,52);for(var u=0;;){var i=[0,l0(0,function(l){var d=is(l);if(W(l)===98)var k=P1(l)[2],h=p(k,d,function(g,A){return p(qx(g,Pa,64),g,A)});else var h=d;return[0,h,uK(l)]},e),u],f=W(e);if(typeof f=="number"&&f===9){u0(e,9);var u=i;continue}var o=Ax(i);return[0,o,k0([0,t],0,0)]}},x)},sL=function(x){switch(x[0]){case 0:case 3:var r=x[1];return[0,[0,r[1],r[2][1]]];default:return 0}},oL=function(x,r){return r?nx(x,[0,r[1][1],L2]):0},vL=function(x,r){return r?nx(x,[0,r[1],13]):0},JK=function(x,r,e,t,u,i,f,o){var l=l0([0,r],function(C){var O=CR(C),L=W(C);if(i){var M=0;if(typeof L=="number"&&L===82){Vx(C,14),Z0(C);var V=0}else M=1;if(M)var V=0}else{var z=0;if(typeof L=="number"&&L===82){Z0(C);var Y=zv(1,C),V=[0,a(px[7],Y)];z=1}if(!z)var V=1}var t0=W(C),i0=0;if(typeof t0=="number"&&9>t0)switch(t0){case 8:Z0(C);var j=W(C),K=0;if(typeof j=="number"){var J=0;if(j===1||Rr===j?J=1:K=1,J)var Q=hx(C)}else K=1;if(K)var Q=re(C)?Jo(C):0;var x0=[0,t,O,V,Q];i0=1;break;case 4:case 6:S1(0,C);var x0=[0,t,O,V,0];i0=1;break}if(!i0){var $=W(C),f0=0;if(typeof $=="number"){var s0=0;if($===1||Rr===$?s0=1:f0=1,s0)var v0=[0,0,function(ax,Sx){return ax}]}else f0=1;if(f0)var v0=re(C)?f6(C):Zy(C);if(typeof V=="number")if(O[0]===0)var o0=function(dx,ax){return p(qx(dx,bM,67),dx,ax)},X0=V,xx=O,g0=p(v0[2],t,o0);else var c0=O[1],d0=function(dx,ax){return p(qx(dx,JC,68),dx,ax)},X0=V,xx=[1,p(v0[2],c0,d0)],g0=t;else var E0=V[1],L0=function(dx,ax){return p(qx(dx,mn,69),dx,ax)},X0=[0,p(v0[2],E0,L0)],xx=O,g0=t;var x0=[0,g0,xx,X0,0]}var $0=x0[3],n0=x0[2],ix=x0[1];return[0,ix,n0,$0,k0([0,o],[0,x0[4]],0)]},x),d=l[2],k=d[4],h=d[3],g=d[2],A=d[1],N=l[1];return A[0]===4?[2,[0,N,[0,A[1],h,g,u,f,e,k]]]:[1,[0,N,[0,A,h,g,u,f,e,k]]]},aL=function(x,r,e,t,u,i,f,o,l,d){for(;;){var k=W(x);if(typeof k=="number"){var h=k-1|0,g=0;if(7>>0){var A=h-81|0;if(4>=A>>>0)switch(A){case 3:S1(0,x),Z0(x);continue;case 0:case 4:g=1;break}}else 5>>0&&(g=1);if(g&&!u&&!i)return JK(x,r,e,t,f,o,l,d)}var N=W(x),C=0;if(typeof N=="number"&&(N===4||N===98))var O=0;else C=1;if(C)var O=e3(x)?1:0;if(O)return JK(x,r,e,t,f,o,l,d);vL(x,o),oL(x,l);var L=sL(t),M=0;if(f){if(L){var V=L[1],z=V[1];if(!P(V[2],_o)){nx(x,[0,z,[15,L30,f,1,0]]);var i0=zv(1,x),j=1;M=1}}}else if(L){var Y=L[1],t0=Y[1];if(!P(Y[2],Tv)){u&&nx(x,[0,t0,10]),i&&nx(x,[0,t0,11]);var i0=zv(2,x),j=0;M=1}}if(!M)var i0=zv(1,x),j=1;var K=An(i0,t),J=l0(0,function(x0){var $=l0(0,function(L0){var X0=ee(L0,Ze(L0)),xx=a(f3(u,i),L0),g0=W(L0)===86?xx:c6(L0,xx),$0=g0[2],n0=$0[1],ix=0;if(n0){var rx=n0[1][1],dx=g0[1];if(j===0){nx(L0,[0,rx,92]);var ax=[0,dx,[0,0,$0[2],$0[3],$0[4]]];ix=1}}if(!ix)var ax=g0;return[0,X0,ax,t3(L0,IR(L0))]},x0),f0=$[2],s0=f0[2],v0=f0[3],o0=f0[1],c0=$[1],d0=d6(x0,u,i,0,Zv(s0)),E0=d0[1];return i3(x0,d0[2],0,s0),[0,0,s0,E0,u,i,0,v0,o0,0,c0]},i0),Q=[0,j,K,J,f,e,k0([0,d],0,0)];return[0,[0,u1(r,J[1]),Q]]}},lL=function(x,r){var e=kr(x,r);if(typeof e=="number"){var t=0;if(86<=e)e!==98&&87<=e&&(t=1);else if(e!==82)if(9<=e)t=1;else switch(e){case 1:case 4:case 8:break;default:t=1}if(!t)return 1}return 0},VS0=0,XK=function(x){return lL(VS0,x)},zS0=function(x){var r=Px(x),e=fL(x),t=W(x),u=0;if(typeof t=="number"&&t===60&&!lL(1,x)){var i=[0,Px(x)],f=w0(x);Z0(x);var o=f,l=i;u=1}if(!u)var o=0,l=0;var d=W(x),k=0;if(typeof d=="number"&&2>=d+uj>>>0&&Uo(1,x)){var h=0;if(typeof d=="number"){var g=d+uj|0;if(2>=g>>>0){switch(g){case 0:var A=FJ;break;case 1:var A=rl;break;default:var A=ol}var N=A;h=1}}if(!h)var N=Ox(M30);Vx(x,[22,N]),Z0(x),k=1}var C=W(x)===42?1:0;if(C){var O=kr(1,x),L=0;if(typeof O=="number"){var M=0;if(87<=O)O!==98&&Rr!==O&&(M=1);else{var V=O-9|0;if(76>>0){if(77>V)switch(V+9|0){case 1:case 4:case 8:break;default:M=1}}else V!==73&&(M=1)}if(!M){var z=0;L=1}}if(!L)var z=1;var Y=z}else var Y=C;if(Y){var t0=w0(x);Z0(x);var i0=t0}else var i0=0;var j=W(x)===64?1:0;if(j)var K=1-lL(1,x),J=K&&1-n6(1,x);else var J=j;if(J){var Q=w0(x);Z0(x);var x0=Q}else var x0=0;var $=c3(x),f0=$[1],s0=$[2],v0=Uo(1,x),o0=v0||(kr(1,x)===6?1:0),c0=Px(x),d0=W(x),E0=0;if(typeof d0=="number")switch(d0){case 103:var L0=w0(x);Z0(x);var g0=[0,[0,c0,[0,0,k0([0,L0],0,0)]]];E0=1;break;case 104:var X0=w0(x);Z0(x);var g0=[0,[0,c0,[0,1,k0([0,X0],0,0)]]];E0=1;break}else if(d0[0]===4&&!P(d0[3],Ta)&&o0){var xx=w0(x);Z0(x);var g0=[0,[0,c0,[0,2,k0([0,xx],0,0)]]];E0=1}if(!E0)var g0=0;var $0=0;if(g0){var n0=0,ix=g0[1][1];if((J||f0)&&(n0=1),n0){nx(x,[0,ix,L2]);var rx=0;$0=1}}if(!$0)var rx=g0;var dx=0;if(!f0&&rx){var ax=c3(x),Sx=ax[2],D0=ax[1];dx=1}if(!dx)var Sx=s0,D0=f0;var N0=Ll([0,o,[0,i0,[0,x0,[0,Sx,0]]]]),A0=W(x);if(!J&&!D0&&typeof A0!="number"&&A0[0]===4){var Y0=A0[3];if(!P(Y0,gv)){var C0=w0(x),F=Vo(U30,x)[2];if(XK(x))return aL(x,r,e,F,J,D0,Y,l,rx,N0);vL(x,l),oL(x,rx),An(x,F);var H=Qx(N0,C0),B=l0([0,r],function(W0){return ym(W0,1,1)},x),a0=B[2],m0=a0[1],P0=a0[2],D=B[1],O0=sL(m0),K0=0;if(Y){if(O0){var j0=O0[1],ox=j0[1];P(j0[2],_o)||(nx(x,[0,ox,[15,X30,Y,0,0]]),K0=1)}}else if(O0){var b0=O0[1],_x=b0[1];P(b0[2],Tv)||(nx(x,[0,_x,9]),K0=1)}return[0,[0,D,[0,2,m0,P0,Y,e,k0([0,H],0,0)]]]}if(!P(Y0,Ra)){var B0=w0(x),T=Vo(D30,x)[2];if(XK(x))return aL(x,r,e,T,J,D0,Y,l,rx,N0);vL(x,l),oL(x,rx),An(x,T);var X=Qx(N0,B0),F0=l0([0,r],function(W0){return ym(W0,1,0)},x),sx=F0[2],ex=sx[1],U0=sx[2],Nx=F0[1],mx=sL(ex),Bx=0;if(Y){if(mx){var Gx=mx[1],J0=Gx[1];P(Gx[2],_o)||(nx(x,[0,J0,[15,J30,Y,0,0]]),Bx=1)}}else if(mx){var bx=mx[1],Jx=bx[1];P(bx[2],Tv)||(nx(x,[0,Jx,9]),Bx=1)}return[0,[0,Nx,[0,3,ex,U0,Y,e,k0([0,X],0,0)]]]}}return aL(x,r,e,Vo(j30,x)[2],J,D0,Y,l,rx,N0)},YK=function(x,r,e,t){var u=x?x[1]:0,i=Qs(1,r),f=Qx(u,fL(i)),o=w0(i),l=W(i),d=0;typeof l!="number"&&l[0]===4&&!P(l[3],Wh)&&(Vx(i,88),Z0(i),d=1),u0(i,40);var k=rR(1,i),h=W(k),g=0;if(e&&typeof h=="number"){var A=0;if(52<=h?h!==98&&53<=h&&(A=1):h!==41&&h&&(A=1),!A){var O=0;g=1}}if(!g)if(ns(i))var N=p(px[13],0,k),C=P1(i)[2],O=[0,p(C,N,function($,f0){return p(qx($,Pa,71),$,f0)})];else{kz(i,C30);var O=[0,[0,Px(i),I30]]}var L=Ze(i);if(L)var M=L[1],V=P1(i)[2],z=[0,p(V,M,function($,f0){return p(qx($,KC,70),$,f0)})];else var z=0;var Y=w0(i);if(o1(i,41))var t0=l0(0,function($){var f0=a(vm,bO(0,$));if(W($)===98)var s0=P1($)[2],v0=p(s0,f0,function(c0,d0){return p(qx(c0,mn,65),c0,d0)});else var v0=f0;var o0=uK($);return[0,v0,o0,k0([0,Y],0,0)]},i),i0=t0[1],j=t0[2],K=P1(i)[2],J=[0,[0,i0,p(K,j,function($,f0){return H0(qx($,-663447790,66),$,i0,f0)})]];else var J=0;if(W(i)===52){1-k1(i)&&Vx(i,Ot);var Q=[0,Ez(i,jK(i,1))]}else var Q=0;var x0=l0(0,function($){var f0=w0($);if(!o1($,0))return qs($,0),R30;$[30][1]=[0,[0,w2[1],0],$[30][1]];for(var s0=0,v0=VT0,o0=0;;){var c0=W($);if(typeof c0=="number"){var d0=c0-2|0;if(V1>>0){if(L2>=d0+1>>>0){var E0=Ax(o0),L0=function(J0,bx){return a(Ml(function(Jx){return 1-p(w2[3],Jx[1],J0)}),bx)},X0=$[30][1];if(X0){var xx=X0[1],g0=xx[1];if(X0[2]){var $0=X0[2],n0=L0(g0,xx[2]),ix=Rl($0),rx=ix[2],dx=ix[1],ax=GX($0),Sx=[0,[0,dx,Qx(rx,n0)],ax];$[30][1]=Sx}else{var D0=L0(g0,xx[2]);g2(function(J0){return nx($,[0,J0[2],[23,J0[1]]])},D0),$[30][1]=0}}else Ox(ls0);u0($,1);var N0=W($),A0=0;if(!t){var Y0=0;if((typeof N0!="number"||N0!==1&&Rr!==N0)&&(Y0=1),Y0)if(re($)){var C0=Jo($);A0=1}else{var C0=0;A0=1}}if(!A0)var C0=hx($);return[0,E0,k0([0,f0],[0,C0],0)]}}else if(d0===6){u0($,8);continue}}var F=zS0($);switch(F[0]){case 0:var H=F[1],B=H[2],a0=H[1];switch(B[1]){case 0:if(B[4])var U0=v0,Nx=s0;else{s0&&nx($,[0,a0,18]);var U0=v0,Nx=1}break;case 1:var m0=B[2],P0=m0[0]===4?mm($,v0,m0[1],Mj):v0,U0=P0,Nx=s0;break;case 2:var D=B[2],O0=D[0]===4?mm($,v0,D[1],PP):v0,U0=O0,Nx=s0;break;default:var K0=B[2],j0=K0[0]===4?mm($,v0,K0[1],YC):v0,U0=j0,Nx=s0}break;case 1:var ox=F[1][2],b0=ox[4],_x=ox[1];switch(_x[0]){case 4:Ox(O30);break;case 0:case 3:var B0=_x[1],T=B0[2][1],X=Ar(T,Tv),F0=B0[1];if(X)var ex=X;else var sx=Ar(T,_o),ex=sx&&b0;ex&&nx($,[0,F0,[15,T,b0,0,0]]);break}var U0=v0,Nx=s0;break;default:var U0=mm($,v0,F[1][2][1],jU),Nx=s0}var s0=Nx,v0=U0,o0=[0,F,o0]}},i);return[0,O,x0,z,J,Q,f,k0([0,o],0,0)]},km=function(x,r){return l0(0,function(e){return[2,YK([0,r],e,e[7],0)]},x)},KS0=function(x){return[5,YK(0,x,1,1)]},BS0=0,WS0=function(x){return l0(BS0,KS0,x)},VK=Cz(px),zK=function(x){var r=y6(x);if(x[5])Wv(x,r[1]);else{var e=r[2],t=0;if(e[0]===26){var u=e[1],i=r[1],f=0;u[4]?(nx(x,[0,i,5]),f=1):u[5]&&(nx(x,[0,i,26]),f=1),f&&(t=1)}}return r},hm=function(x,r){var e=r[4],t=r[3],u=r[2],i=r[1];e&&Zt(x,81);var f=w0(x);return u0(x,[2,[0,i,u,t,e]]),[0,i,[0,u,t,k0([0,f],[0,hx(x)],0)]]},r2=function(x,r,e){var t=x?x[1]:Tl0,u=r?r[1]:1,i=W(e);if(typeof i=="number"){var f=i-2|0;if(V1>>0){if(L2>=f+1>>>0){var o=function(k,h){return k};return[1,[0,hx(e),o]]}}else if(f===6){Z0(e);var l=W(e);if(typeof l=="number"){var d=0;if(l!==1&&Rr!==l&&(d=1),!d)return[0,hx(e)]}return re(e)?[0,Jo(e)]:Sl0}}return re(e)?[1,f6(e)]:(u&&S1([0,t],e),El0)},xo=function(x){var r=W(x);if(typeof r=="number"){var e=0;if(r!==1&&Rr!==r&&(e=1),!e){var t=function(u,i){return u};return[0,hx(x),t]}}return re(x)?f6(x):Zy(x)},pL=function(x,r,e){var t=r2(0,0,r);if(t[0]===0)return[0,t[1],e];var u=t[1][2],i=Ax(e);if(i)var f=i[2],o=i[1],l=Ax([0,p(u,o,function(d,k){return H0(qx(d,634872468,72),d,x,k)}),f]);else var l=0;return[0,0,l]},KK=function x(r){return x.fun(r)},BK=function x(r){return x.fun(r)},WK=function x(r){return x.fun(r)},ZK=function x(r){return x.fun(r)},$K=function x(r){return x.fun(r)},k6=function x(r,e){return x.fun(r,e)},FK=function x(r){return x.fun(r)},QK=function x(r){return x.fun(r)},h6=function x(r,e,t){return x.fun(r,e,t)},GK=function x(r){return x.fun(r)},qK=function x(r){return x.fun(r)},_6=function x(r,e){return x.fun(r,e)},HK=function x(r){return x.fun(r)},bK=function x(r){return x.fun(r)},_m=function x(r,e){return x.fun(r,e)},xB=function x(r){return x.fun(r)},wm=function x(r,e){return x.fun(r,e)},rB=function x(r){return x.fun(r)},eB=function x(r){return x.fun(r)},Tm=function x(r,e){return x.fun(r,e)},tB=function x(r){return x.fun(r)},w6=function x(r,e,t){return x.fun(r,e,t)},T6=function x(r,e){return x.fun(r,e)},nB=function x(r,e){return x.fun(r,e)},uB=function x(r,e){return x.fun(r,e)},dL=function x(r,e){return x.fun(r,e)},iB=function x(r){return x.fun(r)},o3=function x(r){return x.fun(r)},Sm=function x(r,e,t){return x.fun(r,e,t)},yL=function x(r,e){return x.fun(r,e)},fB=function x(r,e){return x.fun(r,e)},mL=function x(r){return x.fun(r)},ZS0=function(x){var r=w0(x);u0(x,59);var e=W(x)===8?hx(x):0,t=r2(0,0,x),u=t[0]===0?t[1]:t[1][1];return[5,[0,k0([0,r],[0,Qx(e,u)],0)]]},$S0=0,FS0=function(x){var r=w0(x);u0(x,37);var e=r6(1,x),t=a(px[2],e),u=1-x[5],i=u&&s6(t);i&&Wv(x,t[1]);var f=hx(x);u0(x,25);var o=hx(x);u0(x,4);var l=a(px[7],x);u0(x,5);var d=W(x)===8?hx(x):0,k=r2(0,wl0,x),h=k[0]===0?Qx(d,k[1]):k[1][1];return[17,[0,t,l,k0([0,r],[0,Qx(f,Qx(o,h))],0)]]},QS0=0,cB=function(x,r,e){var t=e[2][1],u=e[1];return t&&!t[1][2][2]&&!t[2]?0:nx(x,[0,u,r])},kL=function(x,r){return!x[5]&&s6(r)?Wv(x,r[1]):0},GS0=function(x){var r=w0(x);u0(x,39);var e=x[19],t=e&&o1(x,65),u=Qx(r,w0(x));u0(x,4);var i=k0([0,u],0,0),f=W(x),o=0;if(typeof f=="number"&&f===64){var l=1;o=1}if(!o)var l=0;var d=e6(1,x),k=W(d),h=0;if(typeof k=="number"){if(24<=k){if(29>k)switch(k+yT|0){case 0:var g=l0(0,vK,d),A=g[2],N=A[3],C=A[1],O=g[1],Q=N,x0=[0,[1,[0,O,[0,C,0,k0([0,A[2]],0,0)]]]];h=1;break;case 3:var L=l0(0,aK,d),M=L[2],V=M[3],z=M[1],Y=L[1],Q=V,x0=[0,[1,[0,Y,[0,z,2,k0([0,M[2]],0,0)]]]];h=1;break;case 4:if(kr(1,d)!==17){var t0=l0(0,lK,d),i0=t0[2],j=i0[3],K=i0[1],J=t0[1],Q=j,x0=[0,[1,[0,J,[0,K,1,k0([0,i0[2]],0,0)]]]];h=1}break}}else if(k===8){var Q=0,x0=0;h=1}}if(!h)var Q=0,x0=[0,[0,a(px[8],d)]];var $=W(x);if(typeof $=="number"){if($===17){if(!x0)throw q0([0,wr,_l0],1);var f0=x0[1];if(f0[0]===0)var s0=[1,jR(hl0,x,f0[1])];else{var v0=f0[1];cB(x,43,v0);var s0=[0,v0]}t?u0(x,63):u0(x,17);var o0=a(px[7],x);u0(x,5);var c0=r6(1,x),d0=a(px[2],c0);return kL(x,d0),[24,[0,s0,o0,d0,0,i]]}if($===63){if(!x0)throw q0([0,wr,kl0],1);var E0=x0[1];if(E0[0]===0){var L0=jR(ml0,x,E0[1]),X0=1-t,xx=X0&&l,g0=0;if(xx){var $0=L0[2];if($0[0]===2){var n0=$0[1][1],ix=n0[1];P(n0[2][1],To)||(nx(x,[0,ix,44]),g0=1)}}var rx=[1,L0]}else{var dx=E0[1];cB(x,44,dx);var rx=[0,dx]}u0(x,63);var ax=a(px[10],x);u0(x,5);var Sx=r6(1,x),D0=a(px[2],Sx);return kL(x,D0),[25,[0,rx,ax,D0,t,i]]}}if(g2(function(O0){return nx(x,O0)},Q),t?u0(x,63):u0(x,8),x0)var N0=x0[1],A0=N0[0]===0?[0,[1,o2(x,N0[1])]]:[0,[0,N0[1]]],Y0=A0;else var Y0=0;var C0=W(x),F=0;if(typeof C0=="number"&&C0===8){var H=0;F=1}if(!F)var H=[0,a(px[7],x)];u0(x,8);var B=W(x),a0=0;if(typeof B=="number"&&B===5){var m0=0;a0=1}if(!a0)var m0=[0,a(px[7],x)];u0(x,5);var P0=r6(1,x),D=a(px[2],P0);return kL(x,D),[23,[0,Y0,H,m0,D,i]]},qS0=0,sB=function(x){var r=jo(x)?zK(x):a(px[2],x),e=1-x[5],t=e&&s6(r);return t&&Wv(x,r[1]),r},HS0=function(x){var r=w0(x);u0(x,43);var e=sB(x);return[0,e,k0([0,r],0,0)]},bS0=function(x){var r=w0(x);u0(x,16);var e=Qx(r,w0(x));u0(x,4);var t=a(px[7],x);u0(x,5);var u=sB(x),i=W(x)===43?[0,l0(0,HS0,x)]:0;return[27,[0,t,u,i,k0([0,e],0,0)]]},xE0=0,oB=function(x){return l0(xE0,bS0,x)},rE0=function(x){1-x[11]&&Vx(x,31);var r=w0(x),e=Px(x);u0(x,19);var t=W(x)===8?hx(x):0,u=0;if(W(x)!==8&&!e3(x)){var i=[0,a(px[7],x)];u=1}if(!u)var i=0;var f=u1(e,Px(x)),o=r2(0,0,x),l=0;if(o[0]===0)var d=o[1];else{var k=o[1],h=k[1];if(i){var g=i[1],A=k[2],N=[0,p(A,g,function(V,z){return p(qx(V,mn,73),V,z)})],C=t;l=1}else var d=h}if(!l)var N=i,C=Qx(t,d);return[31,[0,N,k0([0,r],[0,C],0),f]]},eE0=0,tE0=function(x){var r=w0(x);u0(x,20),u0(x,4);var e=a(px[7],x);u0(x,5),u0(x,0);for(var t=yl0;;){var u=t[2],i=t[1],f=W(x);if(typeof f=="number"){var o=0;if(f!==1&&Rr!==f&&(o=1),!o){var l=Ax(u);u0(x,1);var d=xo(x)[1],k=e[1];return[32,[0,e,l,k0([0,r],[0,d],0),k]]}}var h=Fy(0,function(A){return function(N){var C=w0(N),O=W(N),L=0;if(typeof O=="number"&&O===36){A&&Vx(N,58),u0(N,36);var M=hx(N),V=0;L=1}if(!L){u0(N,33);var M=0,V=[0,a(px[7],N)]}var z=A||(V===0?1:0);u0(N,86);var Y=Qx(M,xo(N)[1]);function t0(J){if(typeof J=="number"){var Q=J-1|0,x0=0;if(32>>0?Q===35&&(x0=1):30>>0&&(x0=1),x0)return 1}return 0}var i0=1,j=N[9]===1?N:[0,N[1],N[2],N[3],N[4],N[5],N[6],N[7],N[8],i0,N[10],N[11],N[12],N[13],N[14],N[15],N[16],N[17],N[18],N[19],N[20],N[21],N[22],N[23],N[24],N[25],N[26],N[27],N[28],N[29],N[30],N[31]],K=p(px[4],t0,j);return[0,[0,V,K,k0([0,C],[0,Y],0)],z]}}(i),x),t=[0,h[2],[0,h[1],u]]}},nE0=0,uE0=function(x){var r=w0(x),e=Px(x);u0(x,22),re(x)&&nx(x,[0,e,59]);var t=a(px[7],x),u=r2(0,0,x);if(u[0]===0)var o=t,l=u[1];else var i=u[1][2],f=0,o=p(i,t,function(d,k){return p(qx(d,mn,74),d,k)}),l=f;return[33,[0,o,k0([0,r],[0,l],0)]]},iE0=0,fE0=function(x){var r=w0(x);u0(x,23);var e=a(px[15],x);if(W(x)===34)var t=P1(x)[2],u=p(t,e,function(L,M){var V=M[1];return[0,V,H0(qx(L,Bp,4),L,V,M[2])]});else var u=e;var i=W(x),f=0;if(typeof i=="number"&&i===34){var o=[0,l0(0,function(M){var V=w0(M);u0(M,34);var z=hx(M);if(W(M)===4){u0(M,4);var Y=[0,p(px[18],M,72)];u0(M,5);var t0=Y}else var t0=0;var i0=a(px[15],M);if(W(M)===38)var K=i0;else var j=xo(M)[2],K=p(j,i0,function(J,Q){var x0=Q[1];return[0,x0,H0(qx(J,Bp,75),J,x0,Q[2])]});return[0,t0,K,k0([0,V],[0,z],0)]},x)];f=1}if(!f)var o=0;var l=W(x),d=0;if(typeof l=="number"&&l===38){u0(x,38);var k=a(px[15],x),h=k[1],g=k[2],A=xo(x)[2],N=[0,[0,h,p(A,g,function(M,V){return H0(qx(M,Bp,76),M,h,V)})]];d=1}if(!d)var N=0;var C=o===0?1:0,O=C&&(N===0?1:0);return O&&nx(x,[0,u[1],61]),[34,[0,u,o,N,k0([0,r],0,0)]]},cE0=0,sE0=function(x){var r=vK(x),e=r[3],t=r[2],u=pL(0,x,r[1]),i=0,f=u[2],o=u[1];return g2(function(l){return nx(x,l)},e),[37,[0,f,i,k0([0,t],[0,o],0)]]},oE0=0,vE0=function(x){var r=aK(x),e=r[3],t=r[2],u=pL(2,x,r[1]),i=2,f=u[2],o=u[1];return g2(function(l){return nx(x,l)},e),[37,[0,f,i,k0([0,t],[0,o],0)]]},aE0=0,lE0=function(x){var r=lK(x),e=r[3],t=r[2],u=pL(1,x,r[1]),i=1,f=u[2],o=u[1];return g2(function(l){return nx(x,l)},e),[37,[0,f,i,k0([0,t],[0,o],0)]]},pE0=0,dE0=function(x){var r=w0(x);u0(x,25);var e=Qx(r,w0(x));u0(x,4);var t=a(px[7],x);u0(x,5);var u=r6(1,x),i=a(px[2],u),f=1-x[5],o=f&&s6(i);return o&&Wv(x,i[1]),[38,[0,t,i,k0([0,e],0,0)]]},yE0=0,mE0=function(x){var r=w0(x),e=a(px[7],x),t=W(x),u=e[2];if(u[0]===8&&typeof t=="number"&&t===86){var i=u[1],f=i[2][1],o=e[1];u0(x,86),p(w2[3],f,x[3])&&nx(x,[0,o,[21,pl0,f]]);var l=x[31],d=x[30],k=x[29],h=x[28],g=x[27],A=x[26],N=x[25],C=x[24],O=x[23],L=x[22],M=x[21],V=x[20],z=x[19],Y=x[18],t0=x[17],i0=x[16],j=x[15],K=x[14],J=x[13],Q=x[12],x0=x[11],$=x[10],f0=x[9],s0=x[8],v0=x[7],o0=x[6],c0=x[5],d0=x[4],E0=p(w2[4],f,x[3]),L0=[0,x[1],x[2],E0,d0,c0,o0,v0,s0,f0,$,x0,Q,J,K,j,i0,t0,Y,z,V,M,L,O,C,N,A,g,h,k,d,l],X0=jo(L0)?zK(L0):a(px[2],L0);return[30,[0,i,X0,k0([0,r],0,0)]]}var xx=r2(dl0,0,x);if(xx[0]===0)var n0=e,ix=xx[1];else var g0=xx[1][2],$0=0,n0=p(g0,e,function(rx,dx){return p(qx(rx,mn,77),rx,dx)}),ix=$0;return[22,[0,n0,0,k0(0,[0,ix],0)]]},kE0=0,hE0=function(x){var r=a(px[7],x),e=r2(ll0,0,x);if(e[0]===0)var i=r,f=e[1];else var t=e[1][2],u=0,i=p(t,r,function(N,C){return p(qx(N,mn,78),N,C)}),f=u;if(x[20]){var o=i[2];if(o[0]===12){var l=o[1][2],d=0;if(1i)switch(i-53|0){case 0:return l0([0,u],function(l){1-k1(l)&&Vx(l,Is);var d=l0(0,a(_6,0),l),k=[0,d[1],[29,d[2]]];return[21,[0,[0,k],0,0,0,k0([0,t],0,0)]]},e);case 8:if(kr(1,e)!==0)return l0([0,u],function(l){1-k1(l)&&Vx(l,Is);var d=kr(1,l);if(typeof d=="number"){if(d===48)return Vx(l,21),u0(l,61),[21,[0,0,0,0,0,k0([0,t],0,0)]];if(l2===d){u0(l,61);var k=Px(l);u0(l,l2);var h=a(o3,l),g=h[1];return[21,[0,0,[0,[1,[0,k,0]]],[0,g],0,k0([0,t],[0,h[2]],0)]]}}var A=l0(0,a(k6,0),l),N=[0,A[1],[35,A[2]]];return[21,[0,[0,N],0,0,0,k0([0,t],0,0)]]},e);break;case 9:return l0([0,u],function(l){var d=l0(0,function(h){return a(p(h6,0,0),h)},l),k=[0,d[1],[36,d[2]]];return[21,[0,[0,k],0,0,0,k0([0,t],0,0)]]},e)}}else if(i===36)return l0([0,u],function(l){var d=Qx(t,w0(l)),k=l0(0,function(z){return u0(z,36)},l)[1],h=sz(1,l);if(jo(h))var g=0,A=[0,y6(h)];else if(u6(h))var g=0,A=[0,km(h,x)];else if(W(h)===48)var g=0,A=[0,a(pK(0),h)];else if(fR(h))var g=0,A=[0,UR(h)];else{var N=a(px[10],h),C=r2(0,0,h);if(C[0]===0)var M=C[1],V=N;else var O=C[1][2],L=0,M=L,V=p(O,N,function(t0,i0){return p(qx(t0,mn,96),t0,i0)});var g=M,A=[1,V]}return[20,[0,k,A,k0([0,d],[0,g],0)]]},e)}if(u6(e))return l0([0,u],function(l){var d=km(l,x);return[21,[0,[0,d],0,0,1,k0([0,t],0,0)]]},e);if(jo(e))return l0([0,u],function(l){a(Ky(l),x);var d=y6(l);return[21,[0,[0,d],0,0,1,k0([0,t],0,0)]]},e);if(typeof i=="number"){var f=i+yT|0;if(4>>0){if(f===24&&e[28][2])return l0([0,u],function(l){var d=p(px[3],[0,x],l);return[21,[0,[0,d],0,0,1,k0([0,t],0,0)]]},e)}else if(1>>0)return l0([0,u],function(l){var d=p(px[3],[0,x],l);return[21,[0,[0,d],0,0,1,k0([0,t],0,0)]]},e)}if(fR(e))return l0([0,u],function(l){var d=UR(l);return[21,[0,[0,d],0,0,1,k0([0,t],0,0)]]},e);if(typeof i=="number"&&l2===i)return l0([0,u],function(l){var d=Px(l);u0(l,l2);var k=W(l),h=0;if(typeof k!="number"&&k[0]===4&&!P(k[3],ln)){Z0(l);var g=[0,T2(l)];h=1}if(!h)var g=0;var A=a(o3,l),N=A[1];return[21,[0,0,[0,[1,[0,d,g]]],[0,N],1,k0([0,t],[0,A[2]],0)]]},e);var o=o1(e,61)?0:1;return o1(e,0)?l0([0,u],function(l){var d=H0(Sm,0,l,0);u0(l,1);var k=W(l),h=0;if(typeof k!="number"&&k[0]===4&&!P(k[3],il)){var g=a(o3,l),A=g[2],N=[0,g[1]];h=1}if(!h){p(yL,l,d);var C=r2(0,0,l),O=C[0]===0?C[1]:C[1][1],A=O,N=0}return[21,[0,0,[0,[0,d]],N,o,k0([0,t],[0,A],0)]]},e):(S1(B30,e),p(px[3],[0,x],e))}),I0(mL,function(x){var r=x?x[1]:0;function e(u){1-k1(u)&&Vx(u,vn);var i=w0(u);u0(u,60);var f=cz(1,Qs(1,u)),o=Qx(i,w0(f));u0(f,49);var l=W(f);if(typeof l=="number")switch(l){case 36:var d=Qx(o,w0(f)),k=l0(0,function(A0){return u0(A0,36)},f)[1],h=sz(1,f),g=W(h),A=0;if(typeof g=="number")switch(g){case 15:var N=0,C=N,O=[0,[1,l0(0,function(A0){return p(Tm,0,A0)},h)]];A=1;break;case 40:var C=0,O=[0,[2,l0(0,a(_m,0),h)]];A=1;break}else if(g[0]===4&&!P(g[3],lo)&&h[28][1]){var C=0,O=[0,[3,l0(0,a(wm,0),h)]];A=1}if(!A){var L=bs(h),M=r2(0,0,h);if(M[0]===0)var Y=M[1],t0=L;else var V=M[1][2],z=0,Y=z,t0=p(V,L,function(C0,F){return p(qx(C0,Sa,97),C0,F)});var C=Y,O=[0,[4,t0]]}return[9,[0,[0,k],O,0,0,k0([0,d],[0,C],0)]];case 48:if(f[28][2]){var i0=VK[1],j=l0(0,function(A0){return p(i0,0,A0)},f);return[9,[0,0,[0,[8,j]],0,0,k0([0,o],0,0)]]}break;case 53:if(r){var K=l0(0,a(_6,0),f);return[9,[0,0,[0,[7,K]],0,0,k0([0,o],0,0)]]}break;case 61:if(r){var J=l0(0,a(k6,0),f);return[9,[0,0,[0,[5,J]],0,0,k0([0,o],0,0)]]}break;case 62:var Q=l0(0,p(h6,z30,0),f);return[9,[0,0,[0,[6,Q]],0,0,k0([0,o],0,0)]];case 106:var x0=Px(f);u0(f,l2);var $=W(f),f0=0;if(typeof $!="number"&&$[0]===4&&!P($[3],ln)){Z0(f);var s0=[0,p(px[13],0,f)];f0=1}if(!f0)var s0=0;var v0=a(o3,f),o0=v0[1];return[9,[0,0,0,[0,[1,[0,x0,s0]]],[0,o0],k0([0,o],[0,v0[2]],0)]];case 15:case 24:case 27:case 28:case 40:var c0=W(f);if(typeof c0=="number"){var d0=0;if(24<=c0){if(41>c0){var E0=0;switch(c0+yT|0){case 0:var L0=[0,[0,l0(0,function(A0){return H0(w6,0,A0,0)},f)]];break;case 3:var L0=[0,[0,l0(0,function(A0){return H0(w6,2,A0,0)},f)]];break;case 4:var L0=[0,[0,l0(0,function(A0){return H0(w6,1,A0,0)},f)]];break;case 16:var L0=[0,[2,l0(0,a(_m,0),f)]];break;default:E0=1}if(!E0){var X0=L0;d0=1}}}else if(c0===15){var X0=[0,[1,l0(0,function(Y0){return p(Tm,0,Y0)},f)]];d0=1}if(d0)return[9,[0,0,X0,0,0,k0([0,o],0,0)]]}throw q0([0,wr,K30],1)}else if(l[0]===4&&!P(l[3],lo)&&f[28][1]){var xx=[0,[3,l0(0,a(wm,0),f)]];return[9,[0,0,xx,0,0,k0([0,o],0,0)]]}var g0=W(f),$0=0;typeof g0=="number"?g0===53?Vx(f,15):g0===61?Vx(f,16):$0=1:$0=1,u0(f,0);var n0=H0(Sm,0,f,0);u0(f,1);var ix=W(f),rx=0;if(typeof ix!="number"&&ix[0]===4&&!P(ix[3],il)){var dx=a(o3,f),ax=dx[2],Sx=[0,dx[1]];rx=1}if(!rx){p(yL,f,n0);var D0=r2(0,0,f),N0=D0[0]===0?D0[1]:D0[1][1],ax=N0,Sx=0}return[9,[0,0,0,[0,[0,n0]],Sx,k0([0,o],[0,ax],0)]]}var t=0;return function(u){return l0(t,e,u)}});var pB=function x(r,e){return x.fun(r,e)},dB=function x(r,e){return x.fun(r,e)},g6=function x(r,e){return x.fun(r,e)},Am=function(x,r){return function(e){if(!e)return Ax(r);var t=e[1];if(t[0]!==0){var u=t[1],i=u[1];if(e[2]){var f=e[2];return nx(x,[0,i,69]),a(Am(x,r),f)}var o=u[2],l=o[2];return a(Am(x,[0,[1,[0,i,[0,p(g6,x,o[1]),l]]],r]),0)}var d=t[1],k=d[2],h=e[2],g=d[1];switch(k[0]){case 0:var A=k[2],N=k[1],C=k[3];switch(N[0]){case 0:var O=[0,N[1]];break;case 1:var O=[1,N[1]];break;case 2:var O=[2,N[1]];break;case 3:var O=[3,N[1]];break;case 4:var O=Ox(Pl0);break;default:var O=[4,N[1]]}var L=A[2],M=0;if(L[0]===2){var V=L[1];if(!V[1]){var z=[0,V[3]],Y=V[2];M=1}}if(!M)var z=0,Y=p(g6,x,A);var t0=[0,[0,[0,g,[0,O,Y,z,C]]],r];break;case 1:nx(x,[0,k[2][1],55]);var t0=r;break;default:nx(x,[0,k[2][1],Nl0]);var t0=r}return a(Am(x,t0),h)}};I0(pB,function(x,r){var e=r[2],t=e[2],u=e[1],i=r[1],f=n3(x);return[0,i,[0,[0,a(Am(x,0),u),f,t]]]});var yB=function(x,r){var e=r[1];return a(px[23],r)?[0,p(g6,x,r)]:(nx(x,[0,e,41]),0)},v3=function(x,r){return function(e){if(!e)return Ax(r);var t=e[1];switch(t[0]){case 0:var u=t[1],i=u[2];if(i[0]===2){var f=i[1];if(!f[1]){var o=e[2];return a(v3(x,[0,[0,[0,u[1],[0,f[2],[0,f[3]]]]],r]),o)}}var l=e[2],d=yB(x,u);if(d)var k=d[1],h=[0,[0,[0,k[1],[0,k,0]]],r];else var h=r;return a(v3(x,h),l);case 1:var g=t[1],A=g[1];if(e[2]){var N=e[2];return nx(x,[0,A,20]),a(v3(x,r),N)}var C=g[2],O=C[2],L=yB(x,C[1]),M=L?[0,[1,[0,A,[0,L[1],O]]],r]:r;return a(v3(x,M),0);default:var V=e[2];return a(v3(x,[0,[2,t[1]],r]),V)}}};I0(dB,function(x,r){var e=r[2],t=e[2],u=e[1],i=r[1],f=n3(x);return[0,i,[1,[0,a(v3(x,0),u),f,t]]]}),I0(g6,function(x,r){var e=r[2],t=r[1];switch(e[0]){case 0:return p(dB,x,[0,t,e[1]]);case 8:var u=e[1],i=u[2][1],f=u[1],o=0;if(x[5]&&Bv(i)?nx(x,[0,f,76]):o=1,o&&1-x[5]){var l=0;if(x[18]&&Ar(i,j2)?nx(x,[0,f,Ns]):l=1,l){var d=x[19],k=d&&Ar(i,Ev);k&&nx(x,[0,f,6])}}return[0,t,[2,[0,u,n3(x),0]]];case 23:return p(pB,x,[0,t,e[1]]);default:return[0,t,[3,[0,t,e]]]}});var A6=function(x,r){var e=W(x);if(typeof e=="number"){if(e===6)return l0(0,function(i){var f=w0(i);u0(i,6);for(var o=0;;){var l=W(i);if(typeof l=="number"){var d=0;if(13<=l)Rr===l&&(d=1);else if(7<=l)switch(l-7|0){case 0:d=1;break;case 2:var k=Px(i);u0(i,9);var o=[0,[2,k],o];continue;case 5:var h=w0(i),g=l0(0,function(j){return u0(j,12),A6(j,r)},i),A=g[1],N=g[2],C=[1,[0,A,[0,N,k0([0,h],0,0)]]];W(i)!==7&&(nx(i,[0,A,20]),W(i)===9&&Z0(i));var o=[0,C,o];continue}if(d){var O=Ax(o),L=w0(i);u0(i,7);var M=W(i)===86?[1,Qv(i)]:n3(i);return[1,[0,O,M,j1([0,f],[0,hx(i)],L,0)]]}}var V=l0(0,function(i0){var j=A6(i0,r),K=W(i0),J=0;if(typeof K=="number"&&K===82){u0(i0,82);var Q=[0,a(px[10],i0)];J=1}if(!J)var Q=0;return[0,j,Q]},i),z=V[2],Y=[0,[0,V[1],[0,z[1],z[2]]]];W(i)!==7&&u0(i,9);var o=[0,Y,o]}},x);if(!e){var t=function(i){var f=W(i);return typeof f=="number"&&f===82?(u0(i,82),[0,a(px[10],i)]):0};return l0(0,function(i){var f=w0(i);u0(i,0);for(var o=0,l=0,d=0;;){var k=W(i);if(typeof k=="number"){var h=0;if(k!==1&&Rr!==k&&(h=1),!h){l&&nx(i,[0,l[1],95]);var g=Ax(d),A=w0(i);u0(i,1);var N=hx(i),C=W(i)===86?[1,Qv(i)]:n3(i);return[0,[0,g,C,j1([0,f],[0,N],A,0)]]}}if(W(i)===12)var O=w0(i),L=l0(0,function(Sx){return u0(Sx,12),A6(Sx,r)},i),M=L[2],V=L[1],z=[0,[1,[0,V,[0,M,k0([0,O],0,0)]]]];else{var Y=Px(i),t0=p(px[20],0,i),i0=W(i),j=0;if(typeof i0=="number"&&i0===86){u0(i,86);var K=l0([0,Y],function(D0){var N0=A6(D0,r);return[0,N0,t(D0)]},i),J=K[2],Q=t0[2],x0=J[2],$=J[1],f0=K[1];switch(Q[0]){case 0:var s0=[0,Q[1]];break;case 1:var s0=[1,Q[1]];break;case 2:var s0=[2,Q[1]];break;case 3:var s0=[3,Q[1]];break;case 4:var s0=Ox(gl0);break;default:var s0=[4,Q[1]]}var z=[0,[0,[0,f0,[0,s0,$,x0,0]]]]}else j=1;if(j){var v0=t0[2];if(v0[0]===3){var o0=v0[1],c0=o0[2][1],d0=o0[1];Vy(c0)?nx(i,[0,d0,it]):r3(c0)&&at(i,[0,d0,85]);var E0=l0([0,Y],function(D0,N0){return function(A0){var Y0=[0,N0,[2,[0,D0,n3(A0),0]]];return[0,Y0,t(A0)]}}(o0,d0),i),L0=E0[2],z=[0,[0,[0,E0[1],[0,[3,o0],L0[1],L0[2],1]]]]}else{S1(Al0,i);var z=0}}}if(z){var X0=z[1],xx=X0[1][1],g0=o?(nx(i,[0,xx,69]),0):l;if(X0[0]===0)var n0=g0,ix=o;else var $0=W(i)===9?[0,Px(i)]:0,n0=$0,ix=1;W(i)!==1&&u0(i,9);var o=ix,l=n0,d=[0,X0,d]}}},x)}}var u=H0(px[14],x,0,r);return[0,u[1],[2,u[2]]]},Pm=function(x){var r=W(x);if(typeof r=="number"){var e=r+kJ|0,t=0;if(6>>0?e===14&&(t=1):4>>0&&(t=1),t)return hx(x)}return re(x)?Jo(x):0},mB=function(x){return W(x)===1?0:[0,a(px[7],x)]},ro=function(x){var r=Px(x),e=W(x),t=0;if(typeof e!="number"&&e[0]===8){var u=e[1];t=1}if(!t){S1(Dl0,x);var u=Ul0}var i=w0(x);Z0(x);var f=W(x),o=0;if(typeof f=="number"){var l=f+ID|0,d=0;if(72>>0?l===76&&(d=1):70>>0&&(d=1),d){var k=hx(x);o=1}}if(!o)var k=Pm(x);return[0,r,[0,u,k0([0,i],[0,k],0)]]},kB=function(x){var r=kr(1,x);if(typeof r=="number"){if(r===10)for(var e=l0(0,function(i){var f=[0,ro(i)];return u0(i,10),[0,f,ro(i)]},x);;){var t=W(x);if(typeof t=="number"&&t===10){var u=e[1],e=l0([0,u],function(f){return function(o){return u0(o,10),[0,[1,f],ro(o)]}}(e),x);continue}return[2,e]}if(r===86)return[1,l0(0,function(i){var f=ro(i);return u0(i,86),[0,f,ro(i)]},x)]}return[0,ro(x)]},P6=function(x,r){return Ar(x[2][1],r[2][1])},hB=function(x,r){var e=x[2],t=e[1],u=r[2],i=u[1],f=0,o=e[2],l=u[2];if(t[0]===0){var d=t[1];if(i[0]===0)var h=P6(d,i[1]);else f=1}else{var k=t[1];if(i[0]===0)f=1;else var h=hB(k,i[1])}if(f)var h=0;return h&&P6(o,l)},Nm=function(x,r){switch(x[0]){case 0:var e=x[1];if(r[0]===0)return P6(e,r[1]);break;case 1:var t=x[1];if(r[0]===1){var u=t[2],i=r[1][2],f=u[2],o=i[2],l=P6(u[1],i[1]);return l&&P6(f,o)}break;default:var d=x[1];if(r[0]===2)return hB(d,r[1])}return 0},wL=function(x){switch(x[0]){case 0:return x[1][1];case 1:return x[1][1];default:return x[1][1]}},_B=function x(r,e){return x.fun(r,e)},TL=function x(r,e){return x.fun(r,e)},SL=function x(r,e){return x.fun(r,e)};I0(_B,function(x,r){var e=W(r);if(typeof e=="number"){if(e===0){J1(r,0);var t=l0(0,function(g){u0(g,0);var A=W(g),N=0;if(typeof A=="number"&&A===12){var C=w0(g);u0(g,12);var O=a(px[10],g),V=[3,[0,O,k0([0,C],0,0)]];N=1}if(!N)var L=mB(g),M=L?0:w0(g),V=[2,[0,L,j1(0,0,M,0)]];return u0(g,1),V},r),u=t[2],i=t[1];return K1(r),[0,i,u]}}else if(e[0]===9){var f=e[3],o=e[2],l=e[1];return u0(r,e),[0,l,[4,[0,o,f]]]}var d=p(SL,x,r),k=d[2],h=d[1];return cn<=k[1]?[0,h,[1,k[2]]]:[0,h,[0,k[2]]]});var Cm=function(x){switch(x[0]){case 0:return x[1][2][1];case 1:var r=x[1][2],e=r[1],t=Fx(Cl0,r[2][2][1]);return Fx(e[2][1],t);default:var u=x[1][2],i=u[1],f=u[2],o=i[0]===0?i[1][2][1]:Cm([2,i[1]]);return Fx(o,Fx(Il0,f[2][1]))}};I0(TL,function(x,r){var e=w0(r),t=l0(0,function(Ir){u0(Ir,98);var R1=W(Ir);if(typeof R1=="number"){if(R1===99)return Z0(Ir),Rl0}else if(R1[0]===8){var _=kB(Ir),b=0;if(k1(Ir)&&W(Ir)===98&&De!==kr(1,Ir)){var r0=Wy(Ir,0,am);b=1}if(!b)var r0=0;for(var S0=0;;){var G=W(Ir);if(typeof G=="number"){if(G===0){var h0=w0(Ir);J1(Ir,0);var z0=l0(0,function($x){u0($x,0),u0($x,12);var xr=a(px[10],$x);return u0($x,1),xr},Ir),M0=z0[2],ux=z0[1];K1(Ir);var S0=[0,[1,[0,ux,[0,M0,k0([0,h0],[0,Pm(Ir)],0)]]],S0];continue}}else if(G[0]===8){var S0=[0,[0,l0(0,function($x){var xr=kr(1,$x),zx=0;if(typeof xr=="number"&&xr===86){var Or=[1,l0(0,function(he){var pt=ro(he);return u0(he,86),[0,pt,ro(he)]},$x)];zx=1}if(!zx)var Or=[0,ro($x)];var Wx=W($x),B2=0;if(typeof Wx=="number"&&Wx===82){u0($x,82);var lt=w0($x),me=W($x),Pn=0;if(typeof me=="number")if(me===0){var to=w0($x);J1($x,0);var Nn=l0(0,function(he){u0(he,0);var pt=mB(he);return u0(he,1),pt},$x),cs=Nn[1],ke=Nn[2];K1($x);var Cn=[0,ke,j1([0,to],[0,Pm($x)],0,0)];Cn[1]||nx($x,[0,cs,52]);var te=[0,[1,[0,cs,Cn]]]}else Pn=1;else if(me[0]===10){var Ft=me[3],yr=me[2],Qt=me[1];u0($x,me);var te=[0,[0,[0,Qt,[0,yr,Ft,k0([0,lt],[0,Pm($x)],0)]]]]}else Pn=1;if(Pn){Vx($x,40);var te=[0,[0,[0,Px($x),Ml0]]]}var In=te;B2=1}if(!B2)var In=0;return[0,Or,In]},Ir)],S0];continue}var Zx=Ax(S0),Lx=[0,yo,[0,_,r0,o1(Ir,De),Zx]];return o1(Ir,99)?[0,Lx]:(qs(Ir,99),[1,Lx])}}return qs(Ir,99),Ll0},r);K1(r);var u=t[2];if(u[0]===0)var i=u[1],f=typeof i=="number"?0:i[2][3];else var f=1;if(f)var o=OA,l=o,d=l0(0,function(Ir){return 0},r);else{J1(r,3);for(var k=t[2][1],h=typeof k=="number"?0:[0,k[2][1]],g=Px(r),A=0;;){var N=x3(r),C=0;if(A&&h){var O=A[1],L=O[2],M=0,V=h[1],z=A[2];if(L[0]===0){var Y=L[1],t0=Y[2];if(t0)var i0=t0[1][2][1],j=1-Nm(Y[1][2][1],i0),K=j&&Nm(V,i0);else M=1}else M=1;if(M)var K=0;if(K){var J=O[2],Q=0;if(J[0]===0){var x0=J[1],$=x0[2];if($){var f0=$[1],s0=u1(O[1],x0[3][1]),v0=[0,yo,f0],o0=[0,s0,[0,[0,x0[1],0,x0[3],x0[4]]]];Q=1}}if(!Q)var v0=OA,o0=O;K1(r);var c0=[0,Ax([0,o0,z]),N,v0];C=1}}if(!C){var d0=W(r),E0=0;if(typeof d0=="number"){if(d0===98){J1(r,2);var L0=W(r),X0=kr(1,r),xx=0;if(typeof L0=="number"&&L0===98&&typeof X0=="number"){var g0=0;if((De===X0||Rr===X0)&&(g0=1),g0){var $0=l0(0,function(b){u0(b,98),u0(b,De);var r0=W(b);if(typeof r0=="number"){if(r0===99)return Z0(b),cn}else if(r0[0]===8){var S0=kB(b);return By(b,99),[0,yo,[0,S0]]}return qs(b,99),cn},r),n0=$0[2],ix=$0[1],rx=typeof n0=="number"?[0,cn,ix]:[0,yo,[0,ix,n0[2]]],dx=r[24][1],ax=0;if(dx){var Sx=dx[2];if(Sx){var D0=Sx[2];ax=1}}if(!ax)var D0=Ox(is0);r[24][1]=D0;var N0=ba(r),A0=bl(r[25][1],N0);r[26][1]=A0;var c0=[0,Ax(A),N,rx];E0=1,xx=1}}if(!xx){var Y0=p(TL,h,r),C0=Y0[2],F=Y0[1],H=cn<=C0[1]?[0,F,[1,C0[2]]]:[0,F,[0,C0[2]]],A=[0,H,A];continue}}else if(Rr===d0){S1(0,r);var c0=[0,Ax(A),N,OA];E0=1}}if(!E0){var A=[0,p(_B,h,r),A];continue}}var B=c0[3],a0=c0[1],m0=N?N[1]:g,l=B,d=[0,u1(g,m0),a0];break}}var P0=hx(r),D=0;if(typeof l!="number"){var O0=l[1],K0=0;if(yo===O0){var j0=l[2],ox=j0[2][1],b0=t[2],_x=j0[1];if(b0[0]===0){var B0=b0[1];if(typeof B0=="number")nx(r,[0,wL(ox),Ol0]);else{var T=B0[2][1];if(1-Nm(ox,T)){var X=0;if(x&&Nm(x[1],ox)){var F0=[19,Cm(T)];nx(r,[0,wL(T),F0]),X=1}if(!X){var sx=[13,Cm(T)];nx(r,[0,wL(ox),sx])}}}}var ex=_x;K0=1}else if(cn===O0){var U0=l[2],Nx=t[2];if(Nx[0]===0){var mx=Nx[1];typeof mx!="number"&&nx(r,[0,U0,[13,Cm(mx[2][1])]])}var ex=U0;K0=1}if(K0){var Bx=ex;D=1}}if(!D)var Bx=t[1];var Gx=t[2][1],J0=t[1];if(typeof Gx=="number"){var bx=0,Jx=k0([0,e],[0,P0],0);if(typeof l!="number"){var W0=l[1],nr=0;if(yo===W0){var V0=l[2][1];nr=1}else if(cn===W0){var V0=l[2];nr=1}if(nr){var Sr=V0;bx=1}}if(!bx)var Sr=Bx;var Ur=[0,cn,[0,J0,Sr,d,Jx]]}else{var lx=Gx[2],br=0,e2=k0([0,e],[0,P0],0);if(typeof l!="number"&&yo===l[1]){var h1=[0,l[2]];br=1}if(!br)var h1=0;var Ur=[0,yo,[0,[0,J0,lx],h1,d,e2]]}return[0,u1(t[1],Bx),Ur]}),I0(SL,function(x,r){return J1(r,2),p(TL,x,r)});var wB=function(x,r){var e=T2(r);return $y(x,r,e),e},TB=function x(r){return x.fun(r)},EL=function x(r,e,t){return x.fun(r,e,t)},gL=function x(r){return x.fun(r)},SB=function x(r,e){return x.fun(r,e)},AL=function x(r,e){return x.fun(r,e)},PL=function x(r,e){return x.fun(r,e)},Im=function x(r,e){return x.fun(r,e)},N6=function x(r,e){return x.fun(r,e)},Om=function x(r){return x.fun(r)},EB=function x(r){return x.fun(r)},gB=function x(r){return x.fun(r)},AB=function x(r,e,t){return x.fun(r,e,t)},PB=function x(r){return x.fun(r)},NB=function x(r){return x.fun(r)},EE0=a(SL,0);I0(TB,function(x){var r=W(x),e=0;if(typeof r!="number"&&r[0]===6){var t=r[2],u=r[1];Z0(x);var i=[0,[0,u,t]];e=1}if(!e)var i=0;var f=w0(x),o=Ax(f),l=5;x:for(;;){if(o)for(var d=o[2],k=o[1],h=k[2],g=k[1],A=h[2],N=0,C=Xx(A);;){if(C<(N+5|0))var O=0;else{var L=Ar(m2(A,N,l),"@flow");if(!L){var N=N+1|0;continue}var O=L}if(!O){var o=d;continue x}x[31][1]=g[3];var M=Ax([0,[0,g,h],d]);break}else var M=0;if(M===0){var V=0;if(f){var z=f[1],Y=z[2];if(!Y[1]){var t0=Y[2],i0=0,j=z[1];if(1<=Xx(t0)&&N1(t0,0)===42){x[31][1]=j[3];var K=[0,z,0];V=1}else i0=1}}if(!V)var K=0}else var K=M;var J=p(SB,x,function(v0){return 0}),Q=Px(x);u0(x,Rr);var x0=w2[1];if(H1(function(v0,o0){var c0=o0[2];switch(c0[0]){case 20:return o6(x,v0,Sn(0,[0,c0[1][1],Kl0]));case 21:var d0=c0[1],E0=d0[1];if(E0){if(!d0[2]){var L0=E0[1],X0=L0[2],xx=0,g0=L0[1];switch(X0[0]){case 37:var $0=X0[1][1],n0=0,ix=H1(function(N0,A0){return H1(lR,N0,[0,A0[2][1],0])},n0,$0);return H1(function(N0,A0){return o6(x,N0,A0)},v0,ix);case 2:case 26:var rx=X0[1][1];if(rx)var dx=rx[1];else xx=1;break;case 3:case 19:case 29:case 35:case 36:var dx=X0[1][1];break;default:xx=1}return xx?v0:o6(x,v0,Sn(0,[0,g0,dx[2][1]]))}}else{var ax=d0[2];if(ax){var Sx=ax[1];if(Sx[0]!==0)return v0;var D0=Sx[1];return H1(function(N0,A0){var Y0=A0[2],C0=Y0[2],F=Y0[1];return C0?o6(x,N0,C0[1]):o6(x,N0,F)},v0,D0)}}return v0;default:return v0}},x0,J),J)var $=Rl(Ax(J))[1],f0=u1(Rl(J)[1],$);else var f0=Q;var s0=Ax(x[2][1]);return[0,f0,[0,J,i,k0([0,K],0,0),s0]]}});var gE0=function(x,r,e,t){for(var u=x,i=t;;){var f=i[3],o=i[2],l=i[1],d=W(u);if(typeof d=="number"&&Rr===d)return[0,u,l,o,f];if(a(r,d))return[0,u,l,o,f];if(typeof d!="number"&&d[0]===2){var k=a(e,u),h=[0,k,o],g=k[2];if(g[0]===22){var A=g[1][2];if(A){var N=Ar(A[1],"use strict"),C=k[1],O=N&&1-u[21];O&&nx(u,[0,C,84]);var L=N?Qs(1,u):u,M=[0,d,l],V=f||N,u=L,i=[0,M,h,V];continue}}return[0,u,l,h,f]}return[0,u,l,o,f]}};I0(EL,function(x,r,e){var t=gE0(fz(1,x),r,e,Yl0),u=t[4],i=t[3],f=t[2],o=fz(0,t[1]),l=Ax(f);return g2(function(d){if(typeof d!="number"&&d[0]===2){var k=d[1],h=k[4],g=k[1];return h&&at(o,[0,g,81])}return Ox(Fx(zl0,Fx(SV(d),Vl0)))},l),[0,o,i,u]}),I0(gL,function(x){var r=fL(x),e=W(x);if(typeof e=="number"){var t=e-49|0;if(11>=t>>>0)switch(t){case 0:return p(fB,r,x);case 1:a(Ky(x),r);var u=kr(1,x),i=0;if(typeof u=="number"){var f=0;if((u===4||u===10)&&(f=1),f){var o=S6(x);i=1}}if(!i)var o=_L(x);return o;case 11:if(kr(1,x)===49)return a(Ky(x),r),p(mL,0,x);break}}return p(N6,[0,r],x)}),I0(SB,function(x,r){var e=H0(EL,x,r,gL),t=e[2],u=p(AL,r,e[1]);return H1(function(i,f){return[0,f,i]},u,t)}),I0(AL,function(x,r){for(var e=0;;){var t=W(r);if(typeof t=="number"&&Rr===t||a(x,t))return Ax(e);var e=[0,a(gL,r),e]}}),I0(PL,function(x,r){var e=H0(EL,r,x,function(f){return p(N6,0,f)}),t=e[3],u=e[2],i=p(Im,x,e[1]);return[0,H1(function(f,o){return[0,o,f]},i,u),t]}),I0(Im,function(x,r){for(var e=0;;){var t=W(r);if(typeof t=="number"&&Rr===t||a(x,t))return Ax(e);var e=[0,p(N6,0,r),e]}}),I0(N6,function(x,r){var e=x?x[1]:0;1-u6(r)&&a(Ky(r),e);var t=W(r);if(typeof t=="number"){if(t===27)return l0(aE0,vE0,r);if(t===28)return l0(pE0,lE0,r)}if(jo(r))return y6(r);if(u6(r))return km(r,e);if(typeof t=="number"){var u=t+Y1|0;if(14>=u>>>0)switch(u){case 0:if(r[28][2])return a(pK(0),r);break;case 5:return a(bK,r);case 12:return p(dL,0,r);case 13:return a(QK,r);case 14:return a(qK,r)}}return fR(r)?UR(r):a(Om,r)}),I0(Om,function(x){var r=W(x);if(typeof r=="number"&&ut>r)switch(r){case 0:return a($K,x);case 8:return a(KK,x);case 16:return oB(x);case 19:return l0(eE0,rE0,x);case 20:return l0(nE0,tE0,x);case 22:return l0(iE0,uE0,x);case 23:return l0(cE0,fE0,x);case 24:return l0(oE0,sE0,x);case 25:return l0(yE0,dE0,x);case 26:return a(ZK,x);case 32:return a(BK,x);case 35:return a(WK,x);case 37:return l0(QS0,FS0,x);case 39:return l0(qS0,GS0,x);case 43:return oB(x);case 59:return l0($S0,ZS0,x);case 113:return S1(jl0,x),[0,Px(x),Jl0];case 1:case 5:case 7:case 9:case 10:case 11:case 12:case 17:case 18:case 33:case 34:case 36:case 38:case 41:case 42:case 49:case 83:case 86:return S1(Xl0,x),Z0(x),a(Om,x)}if(jo(x)){var e=y6(x);return Wv(x,e[1]),e}if(typeof r=="number"&&r===28&&kr(1,x)===6){var t=t6(1,x);return nx(x,[0,u1(Px(x),t),4]),S6(x)}return ns(x)?l0(kE0,mE0,x):(u6(x)&&(S1(0,x),Z0(x)),S6(x))}),I0(EB,function(x){var r=Px(x),e=a($t,x),t=W(x);return typeof t=="number"&&t===9?H0(dm,x,r,[0,e,0]):e}),I0(gB,function(x){var r=Px(x),e=a(s3,x),t=W(x);return typeof t=="number"&&t===9?[0,H0(dm,x,r,[0,o2(x,e),0])]:e}),I0(AB,function(x,r,e){var t=r?r[1]:0;return l0(0,function(u){var i=1-t,f=wB([0,e],u),o=i&&(W(u)===85?1:0);return o&&(1-k1(u)&&Vx(u,G2),u0(u,85)),[0,f,CR(u),o]},x)}),I0(PB,function(x){var r=Px(x),e=w0(x);u0(x,0);var t=p(Im,function(o){return o===1?1:0},x),u=Px(x),i=t===0?w0(x):0;u0(x,1);var f=[0,t,j1([0,e],[0,hx(x)],i,0)];return[0,u1(r,u),f]}),I0(NB,function(x){function r(t){var u=w0(t);u0(t,0);var i=p(PL,function(A){return A===1?1:0},t),f=i[1],o=i[2],l=f===0?w0(t):0;u0(t,1);var d=W(t),k=0;if(!x){var h=0;if((typeof d!="number"||d!==1&&Rr!==d)&&(h=1),h)if(re(t)){var g=Jo(t);k=1}else{var g=0;k=1}}if(!k)var g=hx(t);return[0,[0,f,j1([0,u],[0,g],l,0)],o]}var e=0;return function(t){return Fy(e,r,t)}}),YY($l0[1],px,[0,TB,Om,N6,Im,PL,AL,EB,gB,hK,$t,vm,YS0,wB,AB,PB,NB,EE0,A6,g6,Vo,km,WS0,OS0,lm,Qv,pm]);var NL=[Gr,tT0,Js(0)],CL=[0,NL,[0]],AE0=uy(eT0,function(x){var r=PO(x,rT0)[41],e=OO(x,0,0,xT0,JO,1)[1];return JY(x,r,function(t,u){return 0}),function(t,u){var i=iy(u,x);return a(e,i),RO(u,i,x)}}),PE0=Lv(CL)===Gr?CL:CL[1];$I(LE,PE0);var eo=p0,K2=null,CB=void 0,NE0=function(x){throw x},Rm=function(x){return x!==CB?1:0};eo.String,eo.RegExp,eo.Object,eo.Date,eo.Math;var CE0=eo.Array,IE0=eo.Error,IB=function(x){return a(NE0,x)};eo.JSON,pY(function(x){return x[1]===NL?[0,Jt(x[2].toString())]:0}),pY(function(x){return x instanceof CE0?0:[0,Jt(x.toString())]});var OB=[0,0],OE0=er,fs=function(x){return XW(Dl(x))},X1=function(x){return JW(Dl(x))},Lr=function(x,r){return X1(Ax(Fd(x,r)))},Rx=function(x,r){return r?a(x,r[1]):K2},zo=function(x,r){return r[0]===0?K2:a(x,r[1])},RB=function(x){return fs([0,[0,bw0,x[1]],[0,[0,Hw0,x[2]],0]])},LB=function(x){var r=x[1],e=r?er(r[1][1]):K2,t=[0,[0,Qw0,RB(x[3])],0];return fs([0,[0,qw0,e],[0,[0,Gw0,RB(x[2])],t]])},E1=function(x){if(!x)return 0;var r=x[1],e=r[1];return k0([0,e],[0,Qx(r[3],r[2])],0)},C6=function(x,r,e){var t=r[e];return Rm(t)?t|0:x},RE0=function(x,r){var e=Ud(r,CB)?{}:r,t=Jt(x),u=C6(Cl[5],e,uT0),i=C6(Cl[4],e,iT0),f=C6(Cl[3],e,fT0),o=C6(Cl[2],e,cT0),l=[0,C6(Cl[1],e,sT0),o,f,i,u,0,0],d=e[lD],k=Rm(d),h=k&&d|0,g=e[BM],A=Rm(g)?g|0:1,N=e.all_comments,C=Rm(N)?N|0:1,O=[0,0],L=h?[0,function(mt){return O[1]=[0,mt,O[1]],0}]:0,M=nT0[1],V=0;try{var z=0,Y=xV(t),t0=z,i0=Y}catch(mt){var j=C1(mt);if(j!==Ao)throw q0(j,0);var K=[0,[0,[0,V,Ya[2],Ya[3]],54],0],t0=K,i0=xV(ps0)}var J=[0,V,i0,ex0,0,l[4],hV,tx0],Q=[0,bl(J,0)],x0=[0,[0,t0],[0,0],w2[1],[0,0],l[5],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,[0,ys0],[0,J],Q,[0,L],l,V,[0,0],[0,ds0]],$=a(px[1],x0),f0=Ax(x0[1][1]),s0=[0,aR[1],0],v0=Ax(H1(function(mt,m3){var q=mt[2],I=mt[1];return p(aR[3],m3,I)?[0,I,q]:[0,p(aR[4],m3,I),[0,m3,q]]},s0,f0)[2]);if(v0){var o0=v0[2],c0=v0[1];if(M)throw q0([0,QT0,c0,o0],1)}OB[1]=0;for(var d0=Xx(t)-0|0,E0=$c(t),L0=0,X0=0;;){if(X0===d0)var xx=L0;else{var g0=oe(E0,X0),$0=0;if(0<=g0&&!(Yr=g0){var n0=4;dx=1}if(!dx)var n0=0}}}if(n0===0){var L0=vR(L0,X0,0),X0=X0+1|0;continue}if((d0-X0|0)>=n0){var ax=n0-1|0,Sx=X0+n0|0;if(3>>0)throw q0([0,wr,WQ],1);switch(ax){case 0:var D0=oe(E0,X0);break;case 1:var D0=(oe(E0,X0)&31)<<6|oe(E0,X0+1|0)&63;break;case 2:var D0=(oe(E0,X0)&15)<<12|(oe(E0,X0+1|0)&63)<<6|oe(E0,X0+2|0)&63;break;default:var D0=(oe(E0,X0)&7)<<18|(oe(E0,X0+1|0)&63)<<12|(oe(E0,X0+2|0)&63)<<6|oe(E0,X0+3|0)&63}var L0=vR(L0,X0,[0,D0]),X0=Sx;continue}var xx=vR(L0,X0,0)}for(var N0=yv0,A0=Ax([0,6,xx]);;){var Y0=N0[3],C0=N0[2],F=N0[1];if(!A0){var H=Dl(Ax(Y0));if(A)var a0=$;else var B=a(AE0[1],0),a0=p(qx(B,-201766268,98),B,$);if(C)var P0=a0;else var m0=a0[2],P0=[0,a0[1],[0,m0[1],m0[2],m0[3],0]];var D=function(q,I,U,T0){var R0=[0,Gy(H,I[3]),0],tx=[0,[0,Fl0,X1([0,Gy(H,I[2]),R0])],0],Ex=Qx(tx,[0,[0,Ql0,LB(I)],0]);if(U){var Ux=U[1],jx=Ux[1];if(jx){var Hx=Ux[2];if(Hx)var mr=[0,[0,Gl0,Rn(Hx)],0],or=[0,[0,ql0,Rn(jx)],mr];else var or=[0,[0,Hl0,Rn(jx)],0];var sr=or}else var hr=Ux[2],cr=hr?[0,[0,bl0,Rn(hr)],0]:0,sr=cr;var Nr=sr}else var Nr=0;return fs(Hc(Qx(Ex,Qx(Nr,[0,[0,x60,er(q)],0])),T0))},O0=function(q){return Lr(U0,q)},K0=function(q){var I=q[2],U=I[3],T0=I[1],R0=q[1],tx=[0,[0,R90,er(Nn(I[2]))],0];return D(M90,R0,U,[0,[0,L90,Lr(cs,T0)],tx])},j0=function(q){var I=q[2],U=I[5],T0=I[4],R0=I[2],tx=I[1],Ex=q[1],Ux=[0,[0,Qy0,Lr(M0,I[3])],0],jx=[0,[0,Gy0,te(0,T0)],Ux],Hx=[0,[0,qy0,Rx(v2,R0)],jx];return D(by0,Ex,U,[0,[0,Hy0,W0(tx)],Hx])},ox=function(q,I){var U=I[2],T0=U[7],R0=U[5],tx=U[4],Ex=U[2],Ux=U[6],jx=U[3],Hx=U[1],mr=I[1];if(tx)var or=tx[1][2],hr=or[2],cr=or[1],sr=N2(or[3],T0),Nr=hr,Fr=[0,cr];else var sr=T0,Nr=0,Fr=0;if(R0)var Br=R0[1][2],Wr=Br[1],Mr=N2(Br[2],sr),Qr=Mr,x1=Lr(S0,Wr);else var Qr=sr,x1=X1(0);var a1=[0,[0,fd0,x1],[0,[0,id0,Lr(r0,Ux)],0]],l1=[0,[0,cd0,Rx(On,Nr)],a1],i1=[0,[0,sd0,Rx(V0,Fr)],l1],_1=[0,[0,od0,Rx(v2,jx)],i1],Cr=Ex[2],M1=Cr[2],t2=Ex[1],g1=[0,[0,vd0,D(hd0,t2,M1,[0,[0,kd0,Lr(G,Cr[1])],0])],_1];return D(q,mr,Qr,[0,[0,ad0,Rx(W0,Hx)],g1])},b0=function(q,I){var U=I[2],T0=U[5],R0=U[4],tx=U[3],Ex=U[2],Ux=U[1],jx=I[1],Hx=q?H50:b50,mr=[0,[0,xd0,Rx(yr,R0)],0],or=[0,[0,rd0,Rx(yr,tx)],mr],hr=[0,[0,ed0,Rx(v2,Ex)],or];return D(Hx,jx,T0,[0,[0,td0,W0(Ux)],hr])},_x=function(q){var I=q[2],U=I[4],T0=I[2],R0=I[1],tx=q[1],Ex=[0,[0,F50,yr(I[3])],0],Ux=[0,[0,Q50,Rx(v2,T0)],Ex];return D(q50,tx,U,[0,[0,G50,W0(R0)],Ux])},B0=function(q){var I=q[2],U=I[3],T0=I[1],R0=q[1],tx=[0,[0,R50,z0(I[2])],0];return D(M50,R0,U,[0,[0,L50,W0(T0)],tx])},T=function(q){var I=q[2],U=I[3],T0=q[1],R0=I[5],tx=I[4],Ex=I[2],Ux=I[1],jx=N2(E1(U[2][3]),R0),Hx=U[2],mr=Hx[1],or=Hx[2],hr=[0,[0,y50,Rx(v2,Ex)],0],cr=[0,[0,m50,zo(zx,tx)],hr],sr=[0,[0,k50,h1(mr)],cr],Nr=[0,[0,h50,Rx(R1,or)],sr],Fr=[0,[0,_50,h1(mr)],Nr];return D(T50,T0,jx,[0,[0,w50,W0(Ux)],Fr])},X=function(q){var I=q[2],U=I[6],T0=I[4],R0=I[7],tx=I[5],Ex=I[3],Ux=I[2],jx=I[1],Hx=q[1],mr=X1(T0?[0,M0(T0[1]),0]:0),or=U?Lr(S0,U[1][2][1]):X1(0),hr=[0,[0,v50,mr],[0,[0,o50,or],[0,[0,s50,Lr(M0,tx)],0]]],cr=[0,[0,a50,te(0,Ex)],hr],sr=[0,[0,l50,Rx(v2,Ux)],cr];return D(d50,Hx,R0,[0,[0,p50,W0(jx)],sr])},F0=function(q){var I=q[2],U=I[2],T0=I[1],R0=I[4],tx=I[3],Ex=q[1],Ux=u1(T0[1],U[1]),jx=[0,[0,i50,Rx(so,tx)],0];return D(c50,Ex,R0,[0,[0,f50,Ur(Ux,[0,T0,[1,U],0])],jx])},sx=function(q){var I=q[2],U=I[2],T0=I[1],R0=I[4],tx=I[3],Ex=q[1],Ux=u1(T0[1],U[1]),jx=[0,[0,t50,er(Nn(tx))],0];return D(u50,Ex,R0,[0,[0,n50,Ur(Ux,[0,T0,[1,U],0])],jx])},ex=function(q){var I=q[2],U=I[2],T0=q[1],R0=[0,[0,r50,O0(I[1])],0];return D(e50,T0,E1(U),R0)},U0=function(q){var I=q[2],U=q[1];switch(I[0]){case 0:return ex([0,U,I[1]]);case 1:var T0=I[1],R0=T0[2];return D(c60,U,R0,[0,[0,f60,Rx(W0,T0[1])],0]);case 2:return ox(nd0,[0,U,I[1]]);case 3:var tx=I[1],Ex=tx[4],Ux=tx[3],jx=tx[6],Hx=tx[5],mr=Ux[2][3],or=tx[2],hr=tx[1],cr=Ex[0]===0?0:[0,Ex[1]],sr=N2(E1(mr),jx),Nr=[0,[0,Gd0,Rx(v2,or)],0],Fr=[0,[0,qd0,Rx(zx,cr)],Nr],Br=Ux[2],Wr=Br[2],Mr=Br[1];if(Wr)var Qr=Wr[1],x1=Qr[2],a1=x1[2],l1=Qr[1],i1=D(ty0,l1,a1,[0,[0,ey0,ux(x1[1])],0]),_1=X1(Ax([0,i1,Fd(h0,Mr)]));else var _1=X1(Tn(h0,Mr));var Cr=[0,[0,bd0,W0(hr)],[0,[0,Hd0,_1],Fr]];return D(ry0,U,sr,[0,[0,xy0,ex(Hx)],Cr]);case 4:var M1=I[1],t2=M1[2];return D(o60,U,t2,[0,[0,s60,Rx(W0,M1[1])],0]);case 5:return D(v60,U,I[1][1],0);case 6:return X([0,U,I[1]]);case 7:return T([0,U,I[1]]);case 8:return B0([0,U,I[1]]);case 9:var g1=I[1],W2=g1[5],ne=g1[4],gx=g1[3],Xr=g1[2],r1=g1[1];if(gx){var lr=gx[1];if(lr[0]!==0&&!lr[1][2])return D(l60,U,W2,[0,[0,a60,Rx(J0,ne)],0])}if(Xr){var zr=Xr[1];switch(zr[0]){case 0:var B1=sx(zr[1]);break;case 1:var B1=F0(zr[1]);break;case 2:var B1=X(zr[1]);break;case 3:var B1=T(zr[1]);break;case 4:var B1=yr(zr[1]);break;case 5:var B1=_x(zr[1]);break;case 6:var B1=b0(1,zr[1]);break;case 7:var B1=j0(zr[1]);break;default:var B1=B0(zr[1])}var _e=B1}else var _e=K2;var Z2=[0,[0,p60,Rx(J0,ne)],0],we=[0,[0,y60,_e],[0,[0,d60,b(gx)],Z2]],Gt=r1?1:0;return D(k60,U,W2,[0,[0,m60,!!Gt],we]);case 10:return F0([0,U,I[1]]);case 11:var C2=I[1],n2=C2[5],I2=C2[4],a2=C2[2],kt=C2[1],O2=[0,[0,D50,Lr(M0,C2[3])],0],ht=[0,[0,U50,te(0,I2)],O2],$e=[0,[0,j50,Rx(v2,a2)],ht];return D(X50,U,n2,[0,[0,J50,W0(kt)],$e]);case 12:var Te=I[1],Se=Te[1],Ee=Te[4],ge=Te[3],Ae=Te[2],W1=Se[0]===0?W0(Se[1]):J0(Se[1]),Pe=0,_t=ge?"ES":"CommonJS";return D(T60,U,Ee,[0,[0,w60,W1],[0,[0,_60,ex(Ae)],[0,[0,h60,_t],Pe]]]);case 13:var Fe=I[1],ue=Fe[2];return D(E60,U,ue,[0,[0,S60,zx(Fe[1])],0]);case 14:var R2=I[1],qt=R2[4],vs=R2[2],wt=R2[1],Tt=[0,[0,B50,yr(R2[3])],0],Ht=[0,[0,W50,Rx(v2,vs)],Tt];return D($50,U,qt,[0,[0,Z50,W0(wt)],Ht]);case 15:return b0(1,[0,U,I[1]]);case 16:return sx([0,U,I[1]]);case 17:var ie=I[1],St=ie[3],bt=ie[1],fe=[0,[0,g60,V0(ie[2])],0];return D(P60,U,St,[0,[0,A60,U0(bt)],fe]);case 18:return D(N60,U,I[1][1],0);case 19:var xn=I[1],Ln=xn[3],rn=xn[1],Mn=[0,[0,Zy0,z0(xn[2])],0];return D(Fy0,U,Ln,[0,[0,$y0,W0(rn)],Mn]);case 20:var en=I[1],Dn=en[2],qo=en[3],tn=Dn[0]===0?U0(Dn[1]):V0(Dn[1]);return D(O60,U,qo,[0,[0,I60,tn],[0,[0,C60,er(_(1))],0]]);case 21:var Et=I[1],as=Et[5],ls=Et[4],ps=Et[3],Ho=Et[2],k3=Et[1];if(Ho){var oo=Ho[1];if(oo[0]!==0){var bo=oo[1][2],ta=[0,[0,R60,er(_(ls))],0],h3=[0,[0,L60,Rx(W0,bo)],ta];return D(D60,U,as,[0,[0,M60,Rx(J0,ps)],h3])}}var _3=[0,[0,U60,er(_(ls))],0],na=[0,[0,j60,Rx(J0,ps)],_3],ua=[0,[0,J60,b(Ho)],na];return D(Y60,U,as,[0,[0,X60,Rx(U0,k3)],ua]);case 22:var Un=I[1],w3=Un[3],T3=Un[1],S3=[0,[0,V60,Rx(OE0,Un[2])],0];return D(K60,U,w3,[0,[0,z60,V0(T3)],S3]);case 23:var Ne=I[1],E3=Ne[5],g3=Ne[4],ia=Ne[3],ds=Ne[2],vo=Ne[1],xv=function(X6){return X6[0]===0?K0(X6[1]):V0(X6[1])},rv=[0,[0,B60,U0(g3)],0],A3=[0,[0,W60,Rx(V0,ia)],rv],fa=[0,[0,Z60,Rx(V0,ds)],A3];return D(F60,U,E3,[0,[0,$60,Rx(xv,vo)],fa]);case 24:var ys=I[1],ao=ys[1],ev=ys[5],gt=ys[4],Qe=ys[3],ms=ys[2],At=ao[0]===0?K0(ao[1]):ux(ao[1]),nn=[0,[0,G60,U0(Qe)],[0,[0,Q60,!!gt],0]];return D(b60,U,ev,[0,[0,H60,At],[0,[0,q60,V0(ms)],nn]]);case 25:var un=I[1],tv=un[1],P3=un[5],N3=un[4],nv=un[3],C3=un[2],ca=tv[0]===0?K0(tv[1]):ux(tv[1]),Xm=[0,[0,r40,U0(nv)],[0,[0,x40,!!N3],0]];return D(n40,U,P3,[0,[0,t40,ca],[0,[0,e40,V0(C3)],Xm]]);case 26:var jn=I[1],Ym=jn[3],Vm=jn[2],IL=jn[9],OL=jn[8],RL=jn[7],LL=jn[6],ML=jn[5],DL=jn[4],UL=Vm[2][4],jL=jn[1],JL=Ym[0]===0?Ym[1]:Ox(d80),XL=N2(E1(UL),IL),YL=[0,[0,y80,Rx(v2,OL)],0],VL=[0,[0,k80,!1],[0,[0,m80,Or(RL)],YL]],zL=[0,[0,w80,!!DL],[0,[0,_80,!!ML],[0,[0,h80,Rx(so,LL)],VL]]],KL=[0,[0,T80,ex(JL)],zL],BL=[0,[0,S80,tr(Vm)],KL];return D(g80,U,XL,[0,[0,E80,Rx(W0,jL)],BL]);case 27:var I3=I[1],zm=I3[3],WL=I3[4],ZL=I3[2],$L=I3[1];if(zm)var Km=zm[1][2],Bm=U0(vS0(Km[1],Km[2]));else var Bm=K2;var FL=[0,[0,i40,U0(ZL)],[0,[0,u40,Bm],0]];return D(c40,U,WL,[0,[0,f40,V0($L)],FL]);case 28:var sa=I[1],Wm=sa[4],Zm=sa[3],QL=sa[5],GL=sa[2],qL=sa[1];if(Wm){var R6=Wm[1];if(R6[0]===0)var HL=R6[1],Fm=Tn(function(Y6){var R3=Y6[3],L3=Y6[2],bm=Y6[1],wM=L3?u1(R3[1],L3[1][1]):R3[1],TM=L3?L3[1]:R3,x9=0,SM=0;if(bm){var V6=0;switch(bm[1]){case 0:var r9=ei;V6=1;break;case 1:var r9=Ts;V6=1;break}if(V6){var e9=r9;x9=1}}if(!x9)var e9=K2;var EM=[0,[0,Rw0,W0(TM)],[0,[0,Ow0,e9],SM]];return D(Mw0,wM,0,[0,[0,Lw0,W0(R3)],EM])},HL);else var $m=R6[1],bL=$m[1],Fm=[0,D(Iw0,bL,0,[0,[0,Cw0,W0($m[2])],0]),0];var L6=Fm}else var L6=0;if(Zm)var Qm=Zm[1][1],xM=[0,[0,Pw0,W0(Qm)],0],Gm=[0,D(Nw0,Qm[1],0,xM),L6];else var Gm=L6;switch(qL){case 0:var M6=s40;break;case 1:var M6=o40;break;default:var M6=v40}var rM=[0,[0,l40,J0(GL)],[0,[0,a40,er(M6)],0]];return D(d40,U,QL,[0,[0,p40,X1(Gm)],rM]);case 29:return j0([0,U,I[1]]);case 30:var D6=I[1],eM=D6[3],tM=D6[1],nM=[0,[0,y40,U0(D6[2])],0];return D(k40,U,eM,[0,[0,m40,W0(tM)],nM]);case 31:var qm=I[1],uM=qm[2];return D(_40,U,uM,[0,[0,h40,Rx(V0,qm[1])],0]);case 32:var U6=I[1],iM=U6[3],fM=U6[1],cM=[0,[0,w40,Lr(br,U6[2])],0];return D(S40,U,iM,[0,[0,T40,V0(fM)],cM]);case 33:var Hm=I[1],sM=Hm[2];return D(g40,U,sM,[0,[0,E40,V0(Hm[1])],0]);case 34:var O3=I[1],oM=O3[4],vM=O3[2],aM=O3[1],lM=[0,[0,A40,Rx(ex,O3[3])],0],pM=[0,[0,P40,Rx(e2,vM)],lM];return D(C40,U,oM,[0,[0,N40,ex(aM)],pM]);case 35:return _x([0,U,I[1]]);case 36:return b0(0,[0,U,I[1]]);case 37:return K0([0,U,I[1]]);case 38:var j6=I[1],dM=j6[3],yM=j6[1],mM=[0,[0,I40,U0(j6[2])],0];return D(R40,U,dM,[0,[0,O40,V0(yM)],mM]);default:var J6=I[1],kM=J6[3],hM=J6[1],_M=[0,[0,L40,U0(J6[2])],0];return D(D40,U,kM,[0,[0,M40,V0(hM)],_M])}},Nx=function(q){var I=q[2],U=I[4],T0=I[3][2],R0=I[1],tx=q[1],Ex=[0,[0,B_0,D(ew0,I[2],0,0)],0],Ux=[0,[0,W_0,Lr(fo,T0)],Ex];return D($_0,tx,U,[0,[0,Z_0,D(b_0,R0,0,0)],Ux])},mx=function(q){var I=q[2],U=I[1],T0=I[4],R0=I[2],tx=q[1],Ex=[0,[0,Y_0,Lr(fo,I[3][2])],0],Ux=[0,[0,V_0,Rx(Hv,R0)],Ex],jx=U[2],Hx=jx[2],mr=jx[4],or=jx[3],hr=jx[1],cr=U[1],sr=Hx?[0,[0,F_0,dt(Hx[1])],0]:0,Nr=[0,[0,G_0,Lr(io,mr)],[0,[0,Q_0,!!or],0]];return D(K_0,tx,T0,[0,[0,z_0,D(H_0,cr,0,Qx([0,[0,q_0,co(hr)],Nr],sr))],Ux])},Bx=function(q){var I=q[2],U=I[3],T0=I[1],R0=q[1],tx=[0,[0,k90,Lr(V0,I[2])],0];return D(_90,R0,U,[0,[0,h90,Lr(to,T0)],tx])},Gx=function(q){var I=q[2],U=I[1],T0=I[2],R0=q[1],tx=U?n90:u90;return D(c90,R0,T0,[0,[0,f90,!!U],[0,[0,i90,er(tx)],0]])},J0=function(q){var I=q[2];return D(t90,q[1],I[3],[0,[0,e90,er(I[1])],[0,[0,r90,er(I[2])],0]])},bx=function(q){var I=q[2],U=I[2],T0=I[3],R0=q[1];return D(x90,R0,T0,[0,[0,bm0,K2],[0,[0,Hm0,er(m2(U,0,Xx(U)-1|0))],[0,[0,qm0,er(U)],0]]])},Jx=function(q){var I=q[2];return D(Gm0,q[1],I[3],[0,[0,Qm0,I[1]],[0,[0,Fm0,er(I[2])],0]])},W0=function(q){var I=q[2];return D(Y80,q[1],I[2],[0,[0,X80,er(I[1])],[0,[0,J80,K2],[0,[0,j80,!1],0]]])},nr=function(q){var I=q[2],U=I[3],T0=I[2],R0=I[9],tx=I[8],Ex=I[7],Ux=I[6],jx=I[5],Hx=I[4],mr=T0[2][4],or=I[1],hr=q[1],cr=U[0]===0?U[1]:Ox(A80),sr=N2(E1(mr),R0),Nr=[0,[0,P80,Rx(v2,tx)],0],Fr=[0,[0,C80,!1],[0,[0,N80,Or(Ex)],Nr]],Br=[0,[0,R80,!!Hx],[0,[0,O80,!!jx],[0,[0,I80,Rx(so,Ux)],Fr]]],Wr=[0,[0,L80,ex(cr)],Br],Mr=[0,[0,M80,tr(T0)],Wr];return D(U80,hr,sr,[0,[0,D80,Rx(W0,or)],Mr])},V0=function(q){var I=q[2],U=q[1];switch(I[0]){case 0:var T0=I[1],R0=T0[2],tx=[0,[0,U40,Lr(Pn,T0[1])],0];return D(j40,U,E1(R0),tx);case 1:var Ex=I[1],Ux=Ex[3],jx=Ex[2],Hx=Ex[9],mr=Ex[8],or=Ex[7],hr=Ex[6],cr=Ex[4],sr=jx[2][4];if(Ux[0]===0)var Nr=0,Fr=ex(Ux[1]);else var Nr=1,Fr=V0(Ux[1]);var Br=N2(E1(sr),Hx),Wr=[0,[0,J40,Rx(v2,mr)],0],Mr=[0,[0,Y40,!!Nr],[0,[0,X40,Or(or)],Wr]],Qr=[0,[0,B40,Fr],[0,[0,K40,!!cr],[0,[0,z40,!1],[0,[0,V40,Rx(so,hr)],Mr]]]];return D($40,U,Br,[0,[0,Z40,K2],[0,[0,W40,tr(jx)],Qr]]);case 2:var x1=I[1],a1=x1[1],l1=x1[4],i1=x1[3],_1=x1[2];if(a1){switch(a1[1]){case 0:var Cr=rq;break;case 1:var Cr=eq;break;case 2:var Cr=tq;break;case 3:var Cr=nq;break;case 4:var Cr=uq;break;case 5:var Cr=iq;break;case 6:var Cr=fq;break;case 7:var Cr=cq;break;case 8:var Cr=sq;break;case 9:var Cr=oq;break;case 10:var Cr=vq;break;case 11:var Cr=aq;break;case 12:var Cr=lq;break;case 13:var Cr=pq;break;default:var Cr=dq}var M1=Cr}else var M1=F40;var t2=[0,[0,Q40,V0(i1)],0];return D(H40,U,l1,[0,[0,q40,er(M1)],[0,[0,G40,ux(_1)],t2]]);case 3:var g1=I[1],W2=g1[4],ne=g1[2],gx=g1[1],Xr=[0,[0,b40,V0(g1[3])],0],r1=[0,[0,xp0,V0(ne)],Xr];switch(gx){case 0:var lr=LG;break;case 1:var lr=MG;break;case 2:var lr=DG;break;case 3:var lr=UG;break;case 4:var lr=jG;break;case 5:var lr=JG;break;case 6:var lr=XG;break;case 7:var lr=YG;break;case 8:var lr=VG;break;case 9:var lr=zG;break;case 10:var lr=KG;break;case 11:var lr=BG;break;case 12:var lr=WG;break;case 13:var lr=ZG;break;case 14:var lr=$G;break;case 15:var lr=FG;break;case 16:var lr=QG;break;case 17:var lr=GG;break;case 18:var lr=qG;break;case 19:var lr=HG;break;case 20:var lr=bG;break;default:var lr=xq}return D(ep0,U,W2,[0,[0,rp0,er(lr)],r1]);case 4:var zr=I[1],B1=zr[4],_e=N2(E1(zr[3][2][2]),B1);return D(tp0,U,_e,Fo(zr));case 5:return ox(ud0,[0,U,I[1]]);case 6:var Z2=I[1],we=Z2[4],Gt=Z2[2],C2=Z2[1],n2=[0,[0,np0,V0(Z2[3])],0],I2=[0,[0,up0,V0(Gt)],n2];return D(fp0,U,we,[0,[0,ip0,V0(C2)],I2]);case 7:return nr([0,U,I[1]]);case 8:return W0(I[1]);case 9:var a2=I[1],kt=a2[2];return D(sp0,U,kt,[0,[0,cp0,V0(a2[1])],0]);case 10:return mx([0,U,I[1]]);case 11:return Nx([0,U,I[1]]);case 12:return J0([0,U,I[1]]);case 13:return Gx([0,U,I[1]]);case 14:return D(m90,U,I[1],[0,[0,y90,K2],[0,[0,d90,mv],0]]);case 15:return Jx([0,U,I[1]]);case 16:return bx([0,U,I[1]]);case 17:var O2=I[1],ht=O2[2],$e=O2[1],Te=O2[4],Se=O2[3];try{var Ee=new RegExp(er($e),er(ht)),ge=Ee}catch{var ge=K2}return D(p90,U,Te,[0,[0,l90,ge],[0,[0,a90,er(Se)],[0,[0,v90,fs([0,[0,o90,er($e)],[0,[0,s90,er(ht)],0]])],0]]]);case 18:var Ae=I[1];return J0([0,U,[0,Ae[1],Ae[5],Ae[6]]]);case 19:var W1=I[1],Pe=W1[4],_t=W1[3],Fe=W1[2];switch(W1[1]){case 0:var ue=op0;break;case 1:var ue=vp0;break;default:var ue=ap0}var R2=[0,[0,lp0,V0(_t)],0];return D(yp0,U,Pe,[0,[0,dp0,er(ue)],[0,[0,pp0,V0(Fe)],R2]]);case 20:var qt=I[1],vs=qt[3];return D(mp0,U,vs,xa(qt));case 21:var wt=I[1],Tt=wt[3],Ht=wt[1],ie=[0,[0,kp0,W0(wt[2])],0];return D(_p0,U,Tt,[0,[0,hp0,W0(Ht)],ie]);case 22:var St=I[1],bt=St[4],fe=St[3],xn=St[2],Ln=St[1];if(fe)var rn=fe[1],Mn=N2(E1(rn[2][2]),bt),en=Mn,Dn=lx(rn);else var en=bt,Dn=X1(0);var qo=[0,[0,Tp0,Rx(dt,xn)],[0,[0,wp0,Dn],0]];return D(Ep0,U,en,[0,[0,Sp0,V0(Ln)],qo]);case 23:var tn=I[1],Et=tn[2],as=[0,[0,gp0,Lr(Wx,tn[1])],0];return D(Ap0,U,E1(Et),as);case 24:var ls=I[1],ps=ls[1],Ho=ls[3],k3=ps[4],oo=N2(E1(ps[3][2][2]),k3);return D(Np0,U,oo,Qx(Fo(ps),[0,[0,Pp0,!!Ho],0]));case 25:var bo=I[1],ta=bo[1],h3=ta[3],_3=[0,[0,Cp0,!!bo[3]],0];return D(Ip0,U,h3,Qx(xa(ta),_3));case 26:var na=I[1],ua=na[2];return D(Rp0,U,ua,[0,[0,Op0,Lr(V0,na[1])],0]);case 27:return D(Lp0,U,I[1][1],0);case 28:var Un=I[1],w3=Un[3],T3=Un[1],S3=[0,[0,A90,Bx(Un[2])],0];return D(N90,U,w3,[0,[0,P90,V0(T3)],S3]);case 29:return Bx([0,U,I[1]]);case 30:return D(Mp0,U,I[1][1],0);case 31:var Ne=I[1],E3=Ne[3],g3=Ne[1],ia=[0,[0,Dp0,zx(Ne[2])],0];return D(jp0,U,E3,[0,[0,Up0,V0(g3)],ia]);case 32:var ds=I[1],vo=ds[2],xv=ds[1];if(typeof vo=="number"){var rv=ds[3];return D(Xp0,U,rv,[0,[0,Jp0,V0(xv)],0])}if(vo[0]===0){var A3=ds[3],fa=[0,[0,Yp0,yr(vo[1])],0];return D(zp0,U,A3,[0,[0,Vp0,V0(xv)],fa])}var ys=ds[3],ao=[0,[0,Kp0,yr(vo[1])],0];return D(Wp0,U,ys,[0,[0,Bp0,V0(xv)],ao]);case 33:var ev=I[1],gt=ev[3],Qe=ev[2],ms=ev[1];if(7<=ms)return D($p0,U,gt,[0,[0,Zp0,V0(Qe)],0]);switch(ms){case 0:var At=Fp0;break;case 1:var At=Qp0;break;case 2:var At=Gp0;break;case 3:var At=qp0;break;case 4:var At=Hp0;break;case 5:var At=bp0;break;case 6:var At=x80;break;default:var At=Ox(r80)}return D(u80,U,gt,[0,[0,n80,er(At)],[0,[0,t80,!0],[0,[0,e80,V0(Qe)],0]]]);case 34:var nn=I[1],un=nn[4],tv=nn[3],P3=nn[2],N3=nn[1]?i80:f80;return D(v80,U,un,[0,[0,o80,er(N3)],[0,[0,s80,V0(P3)],[0,[0,c80,!!tv],0]]]);default:var nv=I[1],C3=nv[2],ca=[0,[0,a80,!!nv[3]],0];return D(p80,U,C3,[0,[0,l80,Rx(V0,nv[1])],ca])}},Sr=function(q){var I=q[2];return D(B80,q[1],I[2],[0,[0,K80,er(I[1])],[0,[0,z80,K2],[0,[0,V80,!1],0]]])},Ur=function(q,I){var U=I[1][2],T0=U[2],R0=U[1],tx=[0,[0,W80,!!I[3]],0];return D(F80,q,T0,[0,[0,$80,er(R0)],[0,[0,Z80,zo(zx,I[2])],tx]])},lx=function(q){return Lr(me,q[2][1])},br=function(q){var I=q[2],U=I[3],T0=I[1],R0=q[1],tx=[0,[0,Q80,Lr(U0,I[2])],0];return D(q80,R0,U,[0,[0,G80,Rx(V0,T0)],tx])},e2=function(q){var I=q[2],U=I[3],T0=I[1],R0=q[1],tx=[0,[0,H80,ex(I[2])],0];return D(x50,R0,U,[0,[0,b80,Rx(ux,T0)],tx])},h1=function(q){return X1(Tn(function(I){var U=I[2];return Ir(0,U[3],I[1],[0,U[1]],U[2][2])},q))},Ir=function(q,I,U,T0,R0){if(T0)var tx=T0[1],Ex=tx[0]===0?Rx(W0,[0,tx[1]]):Rx(J0,[0,tx[1]]),Ux=Ex;else var Ux=Rx(W0,0);return D(O50,U,q,[0,[0,I50,Ux],[0,[0,C50,yr(R0)],[0,[0,N50,!!I],0]]])},R1=function(q){var I=q[2],U=I[4],T0=I[3],R0=I[2],tx=I[1],Ex=q[1];return Ir(U,T0,Ex,$d(function(Ux){return[0,Ux]},tx),R0)},_=function(q){return q?Y50:V50},b=function(q){if(!q)return X1(0);var I=q[1];if(I[0]===0)return Lr($o,I[1]);var U=I[1],T0=U[2],R0=U[1];return X1(T0?[0,D(K50,R0,0,[0,[0,z50,W0(T0[1])],0]),0]:0)},r0=function(q){var I=q[2],U=I[2],T0=q[1];return D(pd0,T0,U,[0,[0,ld0,V0(I[1])],0])},S0=function(q){var I=q[2],U=I[1],T0=q[1],R0=[0,[0,dd0,Rx(On,I[2])],0];return D(md0,T0,0,[0,[0,yd0,W0(U)],R0])},G=function(q){switch(q[0]){case 0:var I=q[1],U=I[2],T0=U[6],R0=U[2],tx=U[5],Ex=U[4],Ux=U[3],jx=U[1],Hx=I[1];switch(R0[0]){case 0:var cr=T0,sr=0,Nr=J0(R0[1]);break;case 1:var cr=T0,sr=0,Nr=Jx(R0[1]);break;case 2:var cr=T0,sr=0,Nr=bx(R0[1]);break;case 3:var cr=T0,sr=0,Nr=W0(R0[1]);break;case 4:var cr=T0,sr=0,Nr=Sr(R0[1]);break;default:var mr=R0[1][2],or=mr[1],hr=N2(mr[2],T0),cr=hr,sr=1,Nr=V0(or)}switch(jx){case 0:var Fr=_d0;break;case 1:var Fr=wd0;break;case 2:var Fr=Td0;break;default:var Fr=Sd0}var Br=[0,[0,Pd0,er(Fr)],[0,[0,Ad0,!!Ex],[0,[0,gd0,!!sr],[0,[0,Ed0,Lr(r0,tx)],0]]]];return D(Id0,Hx,cr,[0,[0,Cd0,Nr],[0,[0,Nd0,nr(Ux)],Br]]);case 1:var Wr=q[1],Mr=Wr[2],Qr=Mr[7],x1=Mr[6],a1=Mr[2],l1=Mr[1],i1=Mr[5],_1=Mr[4],Cr=Mr[3],M1=Wr[1];switch(l1[0]){case 0:var gx=Qr,Xr=0,r1=J0(l1[1]);break;case 1:var gx=Qr,Xr=0,r1=Jx(l1[1]);break;case 2:var gx=Qr,Xr=0,r1=bx(l1[1]);break;case 3:var gx=Qr,Xr=0,r1=W0(l1[1]);break;case 4:var t2=Ox(Yd0),gx=t2[3],Xr=t2[2],r1=t2[1];break;default:var g1=l1[1][2],W2=g1[1],ne=N2(g1[2],Qr),gx=ne,Xr=1,r1=V0(W2)}if(typeof a1=="number")if(a1)var lr=0,zr=0;else var lr=1,zr=0;else var lr=0,zr=[0,a1[1]];var B1=lr?[0,[0,Vd0,!!lr],0]:0,_e=x1===0?0:[0,[0,zd0,Lr(r0,x1)],0],Z2=Qx(_e,B1),we=[0,[0,Wd0,!!Xr],[0,[0,Bd0,!!_1],[0,[0,Kd0,Rx(ke,i1)],0]]],Gt=[0,[0,Zd0,zo(zx,Cr)],we];return D(Qd0,M1,gx,Qx([0,[0,Fd0,r1],[0,[0,$d0,Rx(V0,zr)],Gt]],Z2));default:var C2=q[1],n2=C2[2],I2=n2[6],a2=n2[2],kt=n2[7],O2=n2[5],ht=n2[4],$e=n2[3],Te=n2[1],Se=C2[1];if(typeof a2=="number")if(a2)var Ee=0,ge=0;else var Ee=1,ge=0;else var Ee=0,ge=[0,a2[1]];var Ae=Ee?[0,[0,Od0,!!Ee],0]:0,W1=I2===0?0:[0,[0,Rd0,Lr(r0,I2)],0],Pe=Qx(W1,Ae),_t=[0,[0,Dd0,!1],[0,[0,Md0,!!ht],[0,[0,Ld0,Rx(ke,O2)],0]]],Fe=[0,[0,Ud0,zo(zx,$e)],_t],ue=[0,[0,jd0,Rx(V0,ge)],Fe];return D(Xd0,Se,kt,Qx([0,[0,Jd0,Sr(Te)],ue],Pe))}},h0=function(q){var I=q[2],U=I[3],T0=I[2],R0=I[1],tx=q[1],Ex=I[4],Ux=R0[0]===0?W0(R0[1]):J0(R0[1]);if(U)var jx=[0,[0,ny0,V0(U[1])],0],Hx=D(iy0,tx,0,[0,[0,uy0,ux(T0)],jx]);else var Hx=ux(T0);return D(oy0,tx,0,[0,[0,sy0,Ux],[0,[0,cy0,Hx],[0,[0,fy0,!!Ex],0]]])},z0=function(q){var I=q[2],U=q[1];switch(I[0]){case 0:var T0=I[1],R0=T0[4],tx=T0[1],Ex=[0,[0,Ny0,!!T0[2]],[0,[0,Py0,!!T0[3]],0]],Ux=[0,[0,Cy0,Lr(function(gx){var Xr=gx[2],r1=Xr[1],lr=gx[1],zr=[0,[0,Ey0,Gx(Xr[2])],0];return D(Ay0,lr,0,[0,[0,gy0,W0(r1)],zr])},tx)],Ex];return D(Iy0,U,E1(R0),Ux);case 1:var jx=I[1],Hx=jx[4],mr=jx[1],or=[0,[0,Ry0,!!jx[2]],[0,[0,Oy0,!!jx[3]],0]],hr=[0,[0,Ly0,Lr(function(gx){var Xr=gx[2],r1=Xr[1],lr=gx[1],zr=[0,[0,wy0,Jx(Xr[2])],0];return D(Sy0,lr,0,[0,[0,Ty0,W0(r1)],zr])},mr)],or];return D(My0,U,E1(Hx),hr);case 2:var cr=I[1],sr=cr[1],Nr=cr[4],Fr=cr[3],Br=cr[2];if(sr[0]===0)var Wr=sr[1],Qr=Tn(function(gx){var Xr=gx[1];return D(_y0,Xr,0,[0,[0,hy0,W0(gx[2][1])],0])},Wr);else var Mr=sr[1],Qr=Tn(function(gx){var Xr=gx[2],r1=Xr[1],lr=gx[1],zr=[0,[0,yy0,J0(Xr[2])],0];return D(ky0,lr,0,[0,[0,my0,W0(r1)],zr])},Mr);var x1=[0,[0,jy0,X1(Qr)],[0,[0,Uy0,!!Br],[0,[0,Dy0,!!Fr],0]]];return D(Jy0,U,E1(Nr),x1);case 3:var a1=I[1],l1=a1[3],i1=a1[1],_1=[0,[0,Xy0,!!a1[2]],0],Cr=[0,[0,Yy0,Lr(function(gx){var Xr=gx[1];return D(dy0,Xr,0,[0,[0,py0,W0(gx[2][1])],0])},i1)],_1];return D(Vy0,U,E1(l1),Cr);default:var M1=I[1],t2=M1[4],g1=M1[1],W2=[0,[0,Ky0,!!M1[2]],[0,[0,zy0,!!M1[3]],0]],ne=[0,[0,By0,Lr(function(gx){var Xr=gx[2],r1=Xr[1],lr=gx[1],zr=[0,[0,vy0,bx(Xr[2])],0];return D(ly0,lr,0,[0,[0,ay0,W0(r1)],zr])},g1)],W2];return D(Wy0,U,E1(t2),ne)}},M0=function(q){var I=q[2],U=I[1],T0=I[3],R0=I[2],tx=q[1],Ex=U[0]===0?W0(U[1]):pt(U[1]);return D(em0,tx,T0,[0,[0,rm0,Ex],[0,[0,xm0,Rx(On,R0)],0]])},ux=function(q){var I=q[2],U=q[1];switch(I[0]){case 0:var T0=I[1],R0=T0[3],tx=T0[1],Ex=[0,[0,tm0,zo(zx,T0[2])],0],Ux=[0,[0,nm0,Lr(B2,tx)],Ex];return D(um0,U,E1(R0),Ux);case 1:var jx=I[1],Hx=jx[3],mr=jx[1],or=[0,[0,im0,zo(zx,jx[2])],0],hr=[0,[0,fm0,Lr(xr,mr)],or];return D(cm0,U,E1(Hx),hr);case 2:return Ur(U,I[1]);default:return V0(I[1])}},Zx=function(q){var I=q[2],U=I[2],T0=I[1],R0=q[1];if(!U)return ux(T0);var tx=[0,[0,sm0,V0(U[1])],0];return D(vm0,R0,0,[0,[0,om0,ux(T0)],tx])},Lx=function(q){var I=q[2],U=I[2],T0=q[1];return D(pm0,T0,U,[0,[0,lm0,vv],[0,[0,am0,zx(I[1])],0]])},tr=function(q){var I=q[2],U=I[3],T0=I[2],R0=I[1];if(U){var tx=U[1],Ex=tx[2],Ux=Ex[2],jx=tx[1],Hx=D(ym0,jx,Ux,[0,[0,dm0,ux(Ex[1])],0]),mr=Ax([0,Hx,Fd(Zx,T0)]),or=R0?[0,Lx(R0[1]),mr]:mr;return X1(or)}var hr=Tn(Zx,T0),cr=R0?[0,Lx(R0[1]),hr]:hr;return X1(cr)},$x=function(q,I){var U=I[2];return D(km0,q,U,[0,[0,mm0,ux(I[1])],0])},xr=function(q){switch(q[0]){case 0:var I=q[1],U=I[2],T0=U[2],R0=U[1],tx=I[1];if(!T0)return ux(R0);var Ex=[0,[0,hm0,V0(T0[1])],0];return D(wm0,tx,0,[0,[0,_m0,ux(R0)],Ex]);case 1:var Ux=q[1];return $x(Ux[1],Ux[2]);default:return K2}},zx=function(q){var I=q[1];return D(E_0,I,0,[0,[0,S_0,yr(q[2])],0])},Or=function(q){switch(q[0]){case 0:return K2;case 1:return zx(q[1]);default:var I=q[1],U=I[2],T0=I[1];return D(A_0,T0,0,[0,[0,g_0,Qt([0,U[1],U[2]])],0])}},Wx=function(q){if(q[0]===0){var I=q[1],U=I[2],T0=I[1];switch(U[0]){case 0:var R0=U[3],tx=U[1],sr=0,Nr=R0,Fr=0,Br=Tm0,Wr=V0(U[2]),Mr=tx;break;case 1:var Ex=U[2],Ux=U[1],sr=0,Nr=0,Fr=1,Br=Sm0,Wr=nr([0,Ex[1],Ex[2]]),Mr=Ux;break;case 2:var jx=U[2],Hx=U[3],mr=U[1],sr=Hx,Nr=0,Fr=0,Br=Em0,Wr=nr([0,jx[1],jx[2]]),Mr=mr;break;default:var or=U[2],hr=U[3],cr=U[1],sr=hr,Nr=0,Fr=0,Br=gm0,Wr=nr([0,or[1],or[2]]),Mr=cr}switch(Mr[0]){case 0:var i1=sr,_1=0,Cr=J0(Mr[1]);break;case 1:var i1=sr,_1=0,Cr=Jx(Mr[1]);break;case 2:var i1=sr,_1=0,Cr=bx(Mr[1]);break;case 3:var i1=sr,_1=0,Cr=W0(Mr[1]);break;case 4:var Qr=Ox(Am0),i1=Qr[3],_1=Qr[2],Cr=Qr[1];break;default:var x1=Mr[1][2],a1=x1[1],l1=N2(x1[2],sr),i1=l1,_1=1,Cr=V0(a1)}return D(Lm0,T0,i1,[0,[0,Rm0,Cr],[0,[0,Om0,Wr],[0,[0,Im0,er(Br)],[0,[0,Cm0,!!Fr],[0,[0,Nm0,!!Nr],[0,[0,Pm0,!!_1],0]]]]]])}var M1=q[1],t2=M1[2],g1=t2[2],W2=M1[1];return D(Dm0,W2,g1,[0,[0,Mm0,V0(t2[1])],0])},B2=function(q){if(q[0]!==0){var I=q[1];return $x(I[1],I[2])}var U=q[1],T0=U[2],R0=T0[3],tx=T0[2],Ex=T0[1],Ux=T0[4],jx=U[1];switch(Ex[0]){case 0:var or=0,hr=0,cr=J0(Ex[1]);break;case 1:var or=0,hr=0,cr=Jx(Ex[1]);break;case 2:var or=0,hr=0,cr=bx(Ex[1]);break;case 3:var or=0,hr=0,cr=W0(Ex[1]);break;default:var Hx=Ex[1][2],mr=Hx[2],or=mr,hr=1,cr=V0(Hx[1])}if(R0)var sr=R0[1],Nr=u1(tx[1],sr[1]),Fr=[0,[0,Um0,V0(sr)],0],Br=D(Jm0,Nr,0,[0,[0,jm0,ux(tx)],Fr]);else var Br=ux(tx);return D(Wm0,jx,or,[0,[0,Bm0,cr],[0,[0,Km0,Br],[0,[0,zm0,pu],[0,[0,Vm0,!1],[0,[0,Ym0,!!Ux],[0,[0,Xm0,!!hr],0]]]]]])},lt=function(q){var I=q[2],U=I[2],T0=q[1];return D($m0,T0,U,[0,[0,Zm0,V0(I[1])],0])},me=function(q){return q[0]===0?V0(q[1]):lt(q[1])},Pn=function(q){switch(q[0]){case 0:return V0(q[1]);case 1:return lt(q[1]);default:return K2}},to=function(q){var I=q[2],U=I[1],T0=I[2],R0=q[1];return D(g90,R0,0,[0,[0,E90,fs([0,[0,T90,er(U[1])],[0,[0,w90,er(U[2])],0]])],[0,[0,S90,!!T0],0]])},Nn=function(q){switch(q){case 0:return C90;case 1:return I90;default:return O90}},cs=function(q){var I=q[2],U=I[1],T0=q[1],R0=[0,[0,D90,Rx(V0,I[2])],0];return D(j90,T0,0,[0,[0,U90,ux(U)],R0])},ke=function(q){var I=q[2],U=I[2],T0=q[1];switch(I[1]){case 0:var R0=J90;break;case 1:var R0=X90;break;case 2:var R0=Y90;break;case 3:var R0=V90;break;case 4:var R0=z90;break;default:var R0=K90}return D(W90,T0,U,[0,[0,B90,er(R0)],0])},Cn=function(q){var I=q[2],U=I[1],T0=I[3],R0=I[2],tx=q[1],Ex=U[0]===0?W0(U[1]):pt(U[1]);return D(Lh0,tx,T0,[0,[0,Rh0,Ex],[0,[0,Oh0,Rx(On,R0)],0]])},te=function(q,I){var U=I[2],T0=U[4],R0=U[3],tx=U[2],Ex=U[1],Ux=I[1],jx=H1(function(Br,Wr){var Mr=Br[4],Qr=Br[3],x1=Br[2],a1=Br[1];switch(Wr[0]){case 0:var l1=Wr[1],i1=l1[2],_1=i1[2],Cr=i1[1],M1=i1[8],t2=i1[7],g1=i1[6],W2=i1[5],ne=i1[4],gx=i1[3],Xr=l1[1];switch(Cr[0]){case 0:var r1=J0(Cr[1]);break;case 1:var r1=Jx(Cr[1]);break;case 2:var r1=bx(Cr[1]);break;case 3:var r1=W0(Cr[1]);break;case 4:var r1=Ox(Lk0);break;default:var r1=Ox(Mk0)}switch(_1[0]){case 0:var B1=Dk0,_e=yr(_1[1]);break;case 1:var lr=_1[1],B1=Uk0,_e=Ft([0,lr[1],lr[2]]);break;default:var zr=_1[1],B1=jk0,_e=Ft([0,zr[1],zr[2]])}return[0,[0,D(Zk0,Xr,M1,[0,[0,Wk0,r1],[0,[0,Bk0,_e],[0,[0,Kk0,!!g1],[0,[0,zk0,!!gx],[0,[0,Vk0,!!ne],[0,[0,Yk0,!!W2],[0,[0,Xk0,Rx(ke,t2)],[0,[0,Jk0,er(B1)],0]]]]]]]]),a1],x1,Qr,Mr];case 1:var Z2=Wr[1],we=Z2[2],Gt=we[2],C2=Z2[1];return[0,[0,D(Fk0,C2,Gt,[0,[0,$k0,yr(we[1])],0]),a1],x1,Qr,Mr];case 2:var n2=Wr[1],I2=n2[2],a2=I2[6],kt=I2[4],O2=I2[3],ht=I2[2],$e=I2[1],Te=n2[1],Se=[0,[0,Gk0,!!kt],[0,[0,Qk0,Rx(ke,I2[5])],0]],Ee=[0,[0,qk0,yr(O2)],Se],ge=[0,[0,Hk0,yr(ht)],Ee];return[0,a1,[0,D(xh0,Te,a2,[0,[0,bk0,Rx(W0,$e)],ge]),x1],Qr,Mr];case 3:var Ae=Wr[1],W1=Ae[2],Pe=W1[3],_t=Ae[1],Fe=[0,[0,rh0,!!W1[2]],0];return[0,a1,x1,[0,D(th0,_t,Pe,[0,[0,eh0,Ft(W1[1])],Fe]),Qr],Mr];case 4:var ue=Wr[1],R2=ue[2],qt=R2[6],vs=R2[5],wt=R2[4],Tt=R2[3],Ht=R2[1],ie=ue[1],St=[0,[0,lh0,!!Tt],[0,[0,ah0,!!wt],[0,[0,vh0,!!vs],[0,[0,oh0,yr(R2[2])],0]]]];return[0,a1,x1,Qr,[0,D(dh0,ie,qt,[0,[0,ph0,W0(Ht)],St]),Mr]];default:var bt=Wr[1],fe=bt[2],xn=fe[6],Ln=fe[4],rn=fe[3],Mn=fe[2],en=fe[1],Dn=bt[1],qo=0;switch(fe[5]){case 0:var tn="PlusOptional";break;case 1:var tn="MinusOptional";break;case 2:var tn="Optional";break;default:var tn=K2}var Et=[0,[0,uh0,Rx(ke,Ln)],[0,[0,nh0,tn],qo]],as=[0,[0,ih0,yr(rn)],Et],ls=[0,[0,fh0,yr(Mn)],as];return[0,[0,D(sh0,Dn,xn,[0,[0,ch0,uo(en)],ls]),a1],x1,Qr,Mr]}},gk0,R0),Hx=jx[3],mr=jx[2],or=jx[1],hr=[0,[0,Ak0,X1(Ax(jx[4]))],0],cr=[0,[0,Pk0,X1(Ax(Hx))],hr],sr=[0,[0,Nk0,X1(Ax(mr))],cr],Nr=[0,[0,Ik0,!!Ex],[0,[0,Ck0,X1(Ax(or))],sr]],Fr=q?[0,[0,Ok0,!!tx],Nr]:Nr;return D(Rk0,Ux,E1(T0),Fr)},Ft=function(q){var I=q[2],U=I[3],T0=I[2][2],R0=I[4],tx=T0[3],Ex=T0[2],Ux=T0[1],jx=I[1],Hx=q[1],mr=N2(E1(T0[4]),R0),or=[0,[0,vk0,Rx(v2,jx)],0],hr=[0,[0,ak0,Rx(qv,tx)],or],cr=U[0]===0?yr(U[1]):Qt(U[1]),sr=[0,[0,pk0,Rx(he,Ux)],[0,[0,lk0,cr],hr]];return D(yk0,Hx,mr,[0,[0,dk0,Lr(function(Nr){return In(0,Nr)},Ex)],sr])},yr=function(q){var I=q[2],U=q[1];switch(I[0]){case 0:return D(Z90,U,I[1],0);case 1:return D($90,U,I[1],0);case 2:return D(F90,U,I[1],0);case 3:return D(Q90,U,I[1],0);case 4:return D(G90,U,I[1],0);case 5:return D(H90,U,I[1],0);case 6:return D(b90,U,I[1],0);case 7:return D(xk0,U,I[1],0);case 8:return D(rk0,U,I[2],0);case 9:return D(q90,U,I[1],0);case 10:return D(T_0,U,I[1],0);case 11:var T0=I[1],R0=T0[2];return D(tk0,U,R0,[0,[0,ek0,yr(T0[1])],0]);case 12:return Ft([0,U,I[1]]);case 13:var tx=I[1],Ex=tx[2],Ux=tx[4],jx=tx[3],Hx=tx[1],mr=N2(E1(Ex[2][3]),Ux),or=Ex[2],hr=or[2],cr=or[1],sr=[0,[0,S50,Rx(v2,Hx)],0],Nr=[0,[0,E50,zo(zx,jx)],sr],Fr=[0,[0,g50,Rx(R1,hr)],Nr];return D(P50,U,mr,[0,[0,A50,h1(cr)],Fr]);case 14:return te(1,[0,U,I[1]]);case 15:var Br=I[1],Wr=Br[3],Mr=Br[2],Qr=[0,[0,yh0,te(0,Br[1])],0];return D(kh0,U,Wr,[0,[0,mh0,Lr(M0,Mr)],Qr]);case 16:var x1=I[1],a1=x1[2];return D(_h0,U,a1,[0,[0,hh0,yr(x1[1])],0]);case 17:var l1=I[1],i1=l1[5],_1=l1[3],Cr=l1[2],M1=l1[1],t2=[0,[0,wh0,yr(l1[4])],0],g1=[0,[0,Th0,yr(_1)],t2],W2=[0,[0,Sh0,yr(Cr)],g1];return D(gh0,U,i1,[0,[0,Eh0,yr(M1)],W2]);case 18:var ne=I[1],gx=ne[2];return D(Ph0,U,gx,[0,[0,Ah0,uo(ne[1])],0]);case 19:return Cn([0,U,I[1]]);case 20:var Xr=I[1],r1=Xr[3];return D(Uh0,U,r1,Ko(Xr));case 21:var lr=I[1],zr=lr[1],B1=zr[3],_e=[0,[0,jh0,!!lr[2]],0];return D(Jh0,U,B1,Qx(Ko(zr),_e));case 22:var Z2=I[1],we=Z2[1],Gt=Z2[2];return D(Yh0,U,Gt,[0,[0,Xh0,Lr(yr,[0,we[1],[0,we[2],we[3]]])],0]);case 23:var C2=I[1],n2=C2[1],I2=C2[2];return D(zh0,U,I2,[0,[0,Vh0,Lr(yr,[0,n2[1],[0,n2[2],n2[3]]])],0]);case 24:var a2=I[1],kt=a2[2];return D(Bh0,U,kt,[0,[0,Kh0,no(a2[1])],0]);case 25:var O2=I[1],ht=O2[2];return D(Qh0,U,ht,[0,[0,Fh0,yr(O2[1])],0]);case 26:var $e=I[1],Te=$e[2];return D(qh0,U,Te,[0,[0,Gh0,yr($e[1])],0]);case 27:var Se=I[1],Ee=Se[2],ge=Se[1],Ae=0;return D(bh0,U,Ee,[0,[0,Hh0,Lr(function(wt){var Tt=wt[2],Ht=wt[1];switch(Tt[0]){case 0:return yr(Tt[1]);case 1:var ie=Tt[1],St=ie[2],bt=ie[1],fe=[0,[0,x_0,!!ie[4]],0],xn=[0,[0,r_0,Rx(ke,ie[3])],fe],Ln=[0,[0,e_0,yr(St)],xn];return D(n_0,Ht,0,[0,[0,t_0,W0(bt)],Ln]);default:var rn=Tt[1],Mn=rn[1],en=[0,[0,u_0,yr(rn[2])],0];return D(f_0,Ht,0,[0,[0,i_0,Rx(W0,Mn)],en])}},ge)],Ae]);case 28:var W1=I[1];return D(o_0,U,W1[3],[0,[0,s_0,er(W1[1])],[0,[0,c_0,er(W1[2])],0]]);case 29:var Pe=I[1];return D(l_0,U,Pe[3],[0,[0,a_0,Pe[1]],[0,[0,v_0,er(Pe[2])],0]]);case 30:var _t=I[1];return D(y_0,U,_t[3],[0,[0,d_0,K2],[0,[0,p_0,er(_t[2])],0]]);case 31:var Fe=I[1],ue=Fe[1],R2=Fe[2],qt=0,vs=ue?m_0:k_0;return D(w_0,U,R2,[0,[0,__0,!!ue],[0,[0,h_0,er(vs)],qt]]);case 32:return D(nk0,U,I[1],0);case 33:return D(uk0,U,I[1],0);default:return D(ik0,U,I[1],0)}},Qt=function(q){var I=q[2],U=I[2],T0=I[3],R0=U[1],tx=q[1],Ex=[0,[0,fk0,!!I[1]],0],Ux=[0,[0,ck0,Rx(yr,U[2])],Ex],jx=[0,[0,sk0,W0(R0)],Ux];return D(ok0,tx,E1(T0),jx)},In=function(q,I){var U=I[2],T0=U[1],R0=I[1],tx=[0,[0,mk0,!!U[3]],0],Ex=[0,[0,kk0,yr(U[2])],tx];return D(_k0,R0,q,[0,[0,hk0,Rx(W0,T0)],Ex])},qv=function(q){var I=q[2];return In(I[2],I[1])},he=function(q){var I=q[2],U=I[2],T0=q[1],R0=[0,[0,Tk0,yr(I[1][2])],[0,[0,wk0,!1],0]];return D(Ek0,T0,U,[0,[0,Sk0,Rx(W0,0)],R0])},pt=function(q){var I=q[2],U=I[1],T0=I[2],R0=q[1],tx=U[0]===0?W0(U[1]):pt(U[1]);return D(Ih0,R0,0,[0,[0,Ch0,tx],[0,[0,Nh0,W0(T0)],0]])},Ko=function(q){var I=q[1],U=[0,[0,Mh0,yr(q[2])],0];return[0,[0,Dh0,yr(I)],U]},no=function(q){if(q[0]===0)return W0(q[1]);var I=q[1],U=I[2],T0=U[2],R0=I[1],tx=no(U[1]);return D($h0,R0,0,[0,[0,Zh0,tx],[0,[0,Wh0,W0(T0)],0]])},v2=function(q){var I=q[2],U=I[2],T0=q[1],R0=[0,[0,P_0,Lr(uo,I[1])],0];return D(N_0,T0,E1(U),R0)},uo=function(q){var I=q[2],U=I[1][2],T0=I[5],R0=I[4],tx=I[2],Ex=U[2],Ux=U[1],jx=q[1],Hx=I[3]?[0,[0,C_0,!0],0]:0,mr=[0,[0,I_0,Rx(yr,T0)],0],or=[0,[0,O_0,Rx(ke,R0)],mr];return D(M_0,jx,Ex,Qx([0,[0,L_0,er(Ux)],[0,[0,R_0,zo(zx,tx)],or]],Hx))},On=function(q){var I=q[2],U=I[2],T0=q[1],R0=[0,[0,D_0,Lr(yr,I[1])],0];return D(U_0,T0,E1(U),R0)},dt=function(q){var I=q[2],U=I[2],T0=q[1],R0=[0,[0,j_0,Lr(Bo,I[1])],0];return D(J_0,T0,E1(U),R0)},Bo=function(q){if(q[0]===0)return yr(q[1]);var I=q[1],U=I[1],T0=I[2][1];return Cn([0,U,[0,[0,Sn(0,[0,U,X_0])],0,T0]])},io=function(q){if(q[0]===0){var I=q[1],U=I[2],T0=U[1],R0=U[2],tx=I[1],Ex=T0[0]===0?yt(T0[1]):ss(T0[1]);return D(uw0,tx,0,[0,[0,nw0,Ex],[0,[0,tw0,Rx(a3,R0)],0]])}var Ux=q[1],jx=Ux[2],Hx=jx[2],mr=Ux[1];return D(fw0,mr,Hx,[0,[0,iw0,V0(jx[1])],0])},Hv=function(q){var I=q[1];return D(rw0,I,0,[0,[0,xw0,co(q[2][1])],0])},Wo=function(q){var I=q[2],U=I[1],T0=q[1],R0=I[2],tx=U?V0(U[1]):D(cw0,[0,T0[1],[0,T0[2][1],T0[2][2]+1|0],[0,T0[3][1],T0[3][2]-1|0]],0,0);return D(ow0,T0,E1(R0),[0,[0,sw0,tx],0])},fo=function(q){var I=q[2],U=q[1];switch(I[0]){case 0:return mx([0,U,I[1]]);case 1:return Nx([0,U,I[1]]);case 2:return Wo([0,U,I[1]]);case 3:var T0=I[1],R0=T0[2];return D(aw0,U,R0,[0,[0,vw0,V0(T0[1])],0]);default:var tx=I[1];return D(dw0,U,0,[0,[0,pw0,er(tx[1])],[0,[0,lw0,er(tx[2])],0]])}},yt=function(q){var I=q[2];return D(Sw0,q[1],I[2],[0,[0,Tw0,er(I[1])],0])},ss=function(q){var I=q[2],U=I[1],T0=q[1],R0=[0,[0,hw0,yt(I[2])],0];return D(ww0,T0,0,[0,[0,_w0,yt(U)],R0])},Zo=function(q){var I=q[2],U=I[1],T0=I[2],R0=q[1],tx=U[0]===0?yt(U[1]):Zo(U[1]);return D(kw0,R0,0,[0,[0,mw0,tx],[0,[0,yw0,yt(T0)],0]])},co=function(q){switch(q[0]){case 0:return yt(q[1]);case 1:return ss(q[1]);default:return Zo(q[1])}},a3=function(q){if(q[0]===0){var I=q[1];return J0([0,I[1],I[2]])}var U=q[1];return Wo([0,U[1],U[2]])},$o=function(q){var I=q[2],U=I[2],T0=I[1],R0=q[1],tx=W0(U?U[1]:T0);return D(Aw0,R0,0,[0,[0,gw0,W0(T0)],[0,[0,Ew0,tx],0]])},Rn=function(q){return Lr(bv,q)},bv=function(q){var I=q[2],U=q[1];if(I[1])var T0=I[2],R0=Dw0;else var T0=I[2],R0=Uw0;return D(R0,U,0,[0,[0,jw0,er(T0)],0])},so=function(q){var I=q[2],U=I[1],T0=I[2],R0=q[1];if(U)var tx=[0,[0,Jw0,V0(U[1])],0],Ex=Xw0;else var tx=0,Ex=Yw0;return D(Ex,R0,T0,tx)},Fo=function(q){var I=q[2],U=q[1],T0=[0,[0,Vw0,lx(q[3])],0],R0=[0,[0,zw0,Rx(dt,I)],T0];return[0,[0,Kw0,V0(U)],R0]},xa=function(q){var I=q[2],U=q[1];switch(I[0]){case 0:var T0=0,R0=W0(I[1]);break;case 1:var T0=0,R0=Sr(I[1]);break;default:var T0=1,R0=V0(I[1])}return[0,[0,Zw0,V0(U)],[0,[0,Ww0,R0],[0,[0,Bw0,!!T0],0]]]},os=P0[2],Qo=os[2],Go=os[4],ra=os[3],l3=P0[1],Lm=O0(os[1]),p3=[0,[0,e60,Lm],[0,[0,r60,Rn(Go)],0]];if(Qo)var I6=Qo[1],O6=Qx(p3,[0,[0,u60,D(n60,I6[1],0,[0,[0,t60,er(I6[2])],0])],0]);else var O6=p3;var d3=D(i60,l3,ra,O6),Mm=Qx(v0,OB[1]);if(d3.errors=Lr(function(q){var I=q[1],U=[0,[0,$w0,er(GT0(q[2]))],0];return fs([0,[0,Fw0,LB(I)],U])},Mm),h){var Dm=O[1];d3[lD]=X1(Fd(function(q){var I=q[2],U=q[1],T0=q[3],R0=[0,[0,kv0,er(ZO(I))],0],tx=[0,Gy(H,U[3]),0],Ex=[0,[0,hv0,X1([0,Gy(H,U[2]),tx])],R0],Ux=[0,[0,Tv0,fs([0,[0,wv0,U[3][1]],[0,[0,_v0,U[3][2]],0]])],0],jx=[0,[0,Av0,fs([0,[0,gv0,fs([0,[0,Ev0,U[2][1]],[0,[0,Sv0,U[2][2]],0]])],Ux])],Ex];switch(T0){case 0:var Hx=Pv0;break;case 1:var Hx=Nv0;break;case 2:var Hx=Cv0;break;case 3:var Hx=Iv0;break;case 4:var Hx=Ov0;break;default:var Hx=Rv0}return fs([0,[0,Mv0,er(SV(I))],[0,[0,Lv0,er(Hx)],jx]])},Dm))}return d3}var ea=A0[1];if(ea===5){var y3=A0[2];if(y3&&y3[1]===6){var Um=y3[2],N0=[0,F+2|0,0,[0,Dl(Ax([0,F,C0])),Y0]],A0=Um;continue}}else if(6>ea){var jm=A0[2],N0=[0,F+Pz(ea)|0,[0,F,C0],Y0],A0=jm;continue}var Jm=A0[2],L1=[0,Dl(Ax([0,F,C0])),Y0],N0=[0,F+Pz(ea)|0,0,L1],A0=Jm}}};if(typeof gM<"u")var MB=gM;else{var DB={};eo.flow=DB;var MB=DB}MB.parse=VW(function(x,r){try{var e=RE0(x,r);return e}catch(u){var t=C1(u);return t[1]===NL?IB(t[2]):IB(new IE0(er(Fx(oT0,xy(t)))))}}),xO(0);return}}})(globalThis)});var FB=UB(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});oa.extract=XN0;oa.parse=VN0;oa.parseWithComments=$B;oa.print=zN0;oa.strip=YN0;var MN0=/\*\/$/,DN0=/^\/\*\*?/,WB=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,UN0=/(^|\s+)\/\/([^\r\n]*)/g,zB=/^(\r?\n)+/,jN0=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,KB=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,JN0=/(\r?\n|^) *\* ?/g,ZB=[];function XN0(p0){let wx=p0.match(WB);return wx?wx[0].trimLeft():""}function YN0(p0){let wx=p0.match(WB);return wx&&wx[0]?p0.substring(wx[0].length):p0}function VN0(p0){return $B(p0).pragmas}function $B(p0){let wx=` +`;p0=p0.replace(DN0,"").replace(MN0,"").replace(JN0,"$1");let rr="";for(;rr!==p0;)rr=p0,p0=p0.replace(jN0,`${wx}$1 $2${wx}`);p0=p0.replace(zB,"").trimRight();let gr=Object.create(null),Z1=p0.replace(KB,"").replace(zB,"").trimRight(),ir;for(;ir=KB.exec(p0);){let ur=ir[2].replace(UN0,"");typeof gr[ir[1]]=="string"||Array.isArray(gr[ir[1]])?gr[ir[1]]=ZB.concat(gr[ir[1]],ur):gr[ir[1]]=ur}return{comments:Z1,pragmas:gr}}function zN0({comments:p0="",pragmas:wx={}}){let rr=` +`,gr="/**",Z1=" *",ir=" */",ur=Object.keys(wx),y1=ur.map($1=>BB($1,wx[$1])).reduce(($1,D3)=>$1.concat(D3),[]).map($1=>`${Z1} ${$1}${rr}`).join("");if(!p0){if(ur.length===0)return"";if(ur.length===1&&!Array.isArray(wx[ur[0]])){let $1=wx[ur[0]];return`${gr} ${BB(ur[0],$1)[0]}${ir}`}}let iv=p0.split(rr).map($1=>`${Z1} ${$1}`).join(rr)+rr;return gr+rr+(p0?iv:"")+(p0&&ur.length?Z1+rr:"")+y1+ir}function BB(p0,wx){return ZB.concat(wx).map(rr=>`@${p0} ${rr}`.trim())}});var fC0={};jB(fC0,{parsers:()=>OM});var OM={};jB(OM,{flow:()=>iC0});var iW=XB(YB(),1);function LN0(p0,wx){let rr=new SyntaxError(p0+" ("+wx.loc.start.line+":"+wx.loc.start.column+")");return Object.assign(rr,wx)}var VB=LN0;var M3=XB(FB(),1);function KN0(p0){if(!p0.startsWith("#!"))return"";let wx=p0.indexOf(` +`);return wx===-1?p0:p0.slice(0,wx)}var QB=KN0;function BN0(p0){let wx=QB(p0);wx&&(p0=p0.slice(wx.length+1));let rr=(0,M3.extract)(p0),{pragmas:gr,comments:Z1}=(0,M3.parseWithComments)(rr);return{shebang:wx,text:p0,pragmas:gr,comments:Z1}}function GB(p0){let{pragmas:wx}=BN0(p0);return Object.prototype.hasOwnProperty.call(wx,"prettier")||Object.prototype.hasOwnProperty.call(wx,"format")}function WN0(p0){return Array.isArray(p0)&&p0.length>0}var n9=WN0;function Nt(p0){var gr;let wx=p0.range?p0.range[0]:p0.start,rr=((gr=p0.declaration)==null?void 0:gr.decorators)??p0.decorators;return n9(rr)?Math.min(Nt(rr[0]),wx):wx}function ws(p0){return p0.range?p0.range[1]:p0.end}function ZN0(p0){return p0=typeof p0=="function"?{parse:p0}:p0,{astFormat:"estree",hasPragma:GB,locStart:Nt,locEnd:ws,...p0}}var qB=ZN0;function $N0(p0){return p0.charAt(0)==="#"&&p0.charAt(1)==="!"?"//"+p0.slice(2):p0}var HB=$N0;var FN0=(p0,wx,rr)=>{if(!(p0&&wx==null))return Array.isArray(wx)||typeof wx=="string"?wx[rr<0?wx.length+rr:rr]:wx.at(rr)},AM=FN0;function QN0(p0){return p0=new Set(p0),wx=>p0.has(wx==null?void 0:wx.type)}var bB=QN0;var GN0=bB(["Block","CommentBlock","MultiLine"]),P4=GN0;function qN0(p0){return P4(p0)&&p0.value[0]==="*"&&/@(?:type|satisfies)\b/.test(p0.value)}var xW=qN0;function HN0(p0){let wx=`*${p0.value}*`.split(` +`);return wx.length>1&&wx.every(rr=>rr.trimStart()[0]==="*")}var PM=HN0;var N4=null;function C4(p0){if(N4!==null&&typeof N4.property){let wx=N4;return N4=C4.prototype=null,wx}return N4=C4.prototype=p0??Object.create(null),new C4}var bN0=10;for(let p0=0;p0<=bN0;p0++)C4();function NM(p0){return C4(p0)}function xC0(p0,wx="type"){NM(p0);function rr(gr){let Z1=gr[wx],ir=p0[Z1];if(!Array.isArray(ir))throw Object.assign(new Error(`Missing visitor keys for '${Z1}'.`),{node:gr});return ir}return rr}var rW=xC0;var eW={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","assertions","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes","assertions"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes","assertions"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ImportExpression:["source","attributes"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareEnum:["id","body"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]};var rC0=rW(eW),tW=rC0;function CM(p0,wx){if(!(p0!==null&&typeof p0=="object"))return p0;if(Array.isArray(p0)){for(let gr=0;gr{var y1;(y1=ur.leadingComments)!=null&&y1.some(xW)&&ir.add(Nt(ur))}),p0=u9(p0,ur=>{if(ur.type==="ParenthesizedExpression"){let{expression:y1}=ur;if(y1.type==="TypeCastExpression")return y1.range=ur.range,y1;let iv=Nt(ur);if(!ir.has(iv))return y1.extra={...y1.extra,parenthesized:!0},y1}})}if(p0=u9(p0,ir=>{switch(ir.type){case"LogicalExpression":if(nW(ir))return IM(ir);break;case"VariableDeclaration":{let ur=AM(!1,ir.declarations,-1);ur!=null&&ur.init&&Z1(ir,ur);break}case"TSParenthesizedType":return ir.typeAnnotation;case"TSTypeParameter":if(typeof ir.name=="string"){let ur=Nt(ir);ir.name={type:"Identifier",name:ir.name,range:[ur,ur+ir.name.length]}}break;case"TopicReference":p0.extra={...p0.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":{let{exported:ur}=ir;if(rr==="meriyah"&&(ur==null?void 0:ur.type)==="Identifier"){let y1=gr.slice(Nt(ur),ws(ur));(y1.startsWith('"')||y1.startsWith("'"))&&(ir.exported={...ir.exported,type:"Literal",value:ir.exported.name,raw:y1})}break}case"TSUnionType":case"TSIntersectionType":if(ir.types.length===1)return ir.types[0];break}}),n9(p0.comments)){let ir=AM(!1,p0.comments,-1);for(let ur=p0.comments.length-2;ur>=0;ur--){let y1=p0.comments[ur];ws(y1)===Nt(ir)&&P4(y1)&&P4(ir)&&PM(y1)&&PM(ir)&&(p0.comments.splice(ur+1,1),y1.value+="*//*"+ir.value,y1.range=[Nt(y1),ws(ir)]),ir=y1}}return p0.type==="Program"&&(p0.range=[0,gr.length]),p0;function Z1(ir,ur){gr[ws(ur)]!==";"&&(ir.range=[Nt(ir),ws(ur)])}}function nW(p0){return p0.type==="LogicalExpression"&&p0.right.type==="LogicalExpression"&&p0.operator===p0.right.operator}function IM(p0){return nW(p0)?IM({type:"LogicalExpression",operator:p0.operator,left:IM({type:"LogicalExpression",operator:p0.operator,left:p0.left,right:p0.right.left,range:[Nt(p0.left),ws(p0.right.left)]}),right:p0.right.right,range:[Nt(p0),ws(p0)]}):p0}var uW=eC0;var tC0={comments:!1,enums:!0,esproposal_decorators:!0,esproposal_export_star_as:!0,tokens:!0};function nC0(p0){let{message:wx,loc:{start:rr,end:gr}}=p0;return VB(wx,{loc:{start:{line:rr.line,column:rr.column+1},end:{line:gr.line,column:gr.column+1}},cause:p0})}function uC0(p0){let wx=iW.default.parse(HB(p0),tC0),[rr]=wx.errors;if(rr)throw nC0(rr);return uW(wx,{text:p0})}var iC0=qB(uC0);return RN0(fC0);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/flow.mjs b/node_modules/prettier/plugins/flow.mjs index 55809f8..291d549 100644 --- a/node_modules/prettier/plugins/flow.mjs +++ b/node_modules/prettier/plugins/flow.mjs @@ -1,21 +1,21 @@ -var yI0=Object.create;var SU=Object.defineProperty;var dI0=Object.getOwnPropertyDescriptor;var mI0=Object.getOwnPropertyNames;var kI0=Object.getPrototypeOf,hI0=Object.prototype.hasOwnProperty;var LW=(p0,_x)=>()=>(_x||p0((_x={exports:{}}).exports,_x),_x.exports),UW=(p0,_x)=>{for(var Hx in _x)SU(p0,Hx,{get:_x[Hx],enumerable:!0})},_I0=(p0,_x,Hx,kr)=>{if(_x&&typeof _x=="object"||typeof _x=="function")for(let $1 of mI0(_x))!hI0.call(p0,$1)&&$1!==Hx&&SU(p0,$1,{get:()=>_x[$1],enumerable:!(kr=dI0(_x,$1))||kr.enumerable});return p0};var MW=(p0,_x,Hx)=>(Hx=p0!=null?yI0(kI0(p0)):{},_I0(_x||!p0||!p0.__esModule?SU(Hx,"default",{value:p0,enumerable:!0}):Hx,p0));var DW=LW(EU=>{(function(p0){typeof globalThis!="object"&&(this?_x():(p0.defineProperty(p0.prototype,"_T_",{configurable:!0,get:_x}),_T_));function _x(){var Hx=this||self;Hx.globalThis=Hx,delete p0.prototype._T_}})(Object);(function(p0){"use strict";var _x="symbol",Hx=271,kr=126548,$1="renders",tr=71127,xr="member_property",e1=65007,ev=66517,F1="jsx_attribute_value_expression",M3=119980,jn="function_declaration",Pe="<2>",f9=68466,RU="%=",c9="??",s9=70080,R4="&",It="identifier",O4=72163,o9=71723,v9="properties",a9=183969,l9=68223,zn="function_return_annotation",p9=124903,y9=70106,OU=241,LU="(",UU=213,d9=120074,m9=70708,k9=71679,Kn="logical",i2="camlinternalFormat.ml",Jn="type_guard_annotation",h9=92975,MU=">>>",_9="RestElement",w9=67897,DU=179,T9="start",S9=113775,L4=126521,jU="%i",D3="`",zU="#",E9=43702,U4=126,A9=110947,Yn="function_identifier",M4=119893,g9=70366,N9=65547,I9=43743,P9=-43,tv=8238,KU=",",nv=8286,Bn="keyof_type",C9=66717,D4=12336,JU=201,R9=71338,j4=11565,O9=69289,L9=55291,U9=73030,M9=70479,D9=69572,j9=11623,Xn="tuple_spread_element",Wn="component_type_rest_param",uv=8239,z9=64310,oa="@]",K9=42993,z4=11558,K4="Map.bal",j3="public",YU=-32,va="Literal",Vn="jsx_member_expression_identifier",Zn="for_in_assignment_pattern",J9=71450,J4=126557,tt=103,Y9=12292,B9=110579,Y4=120597,X9=13311,W9=12348,$n="export_default_declaration_decl",Fn="tuple_type",V9=113663,Z9=170,$9=67413,BU="Assert_failure",XU="comments",z3="%S",tn=127343600,F9=12341,Q9=67646,WU="ENOTEMPTY",H9=72160,q9=70187,VU=222,G9=12343,ZU=2147483647,b9=126624,xk=43442,rk=70312,ek=281,Qn="interface_type",iv="new",tk=66256,B4=68296,nk=124908,X4=126579,W4=70107,V4=249,uk=71167,Hn="union_type",Qr=248,ik=126546,qn="enum_bigint_member",$U=133,fk=67871,ck=66955,FU=1027,Gn="class_declaration",bn="optional_call",QU="a string",Z4=11703,HU="<<",$4=126564,x7="jsx_element",r7="object_property_type",sk=94207,e7="enum_declaration",ok=68023,vk=67669,ak=8318,qU="prefix",fv="this",lk=126578,t7="if_consequent_statement",GU=-696510241,pk=66963,cv="default",F4=72967,Pt=101,bU="buffer.ml",yk=74649,nn=65535,dk=43709,mk=175,vo="component",xM="===",aa=117,n7="jsx_identifier",rM="EnumDefaultedMember",Q4=70006,kk=70161,hk=126633,_k=66965,u7="member_property_expression",wk=101589,Tk=64274,la="function",Sk=66303,Ek=42954,Ak=126529,gk=72191,i7="new_",Nk=64433,H4=126559,Ik=72144,eM="==",ao=-744106340,Pk=43359,Ck=171,tM="Printexc.handle_uncaught_exception",Rk=66735,Ok=126534,Lk=74879,Uk=42785,q4=120629,K3="0o",nM="End_of_file",Mk=66175,uM="&=",Dk="nan",G4=126503,f7="pattern_number_literal",jk=43470,c7="import_namespace_specifier",zk=77711,b4=70302,s7="component_param",xp="@])",rp=126515,pa=118,Ce="continue",Kk=43798,ep=";@ ",Jk=74751,Yk="src/parser/statement_parser.ml",Bk="rmdir",Xk=94177,o7="for_in_statement",iM=269,fM=12520,cM="TypeParameterInstantiation",wx="",sM="**=",Wk=120126,oM=197,Vk=67829,tp="_bigarr02",v7="export_named_declaration_specifier",np=": No such file or directory",up=64319,Zk=69926,a7="pattern_object_p",vM="TypeAnnotation",l7="array_type",J3="@[%s =@ ",$k=72847,p7="export_default_declaration",ip=126590,Fk=42774,Qk=": Not a directory",ya="let",sv=12288,Z2="argument",$2="/",fp="an identifier",ws="typeof",cp=68116,Hk=182,y7="declare_export_declaration_decl",qk=67589,Gk=66771,Y3="class",aM="tokens",lM=-66,sp=70281,B3=255,bk=43638,pM=-983660142,ov="key",xh=69955,yM=">>",d7="function_expression_or_method",rh=43587,un="block",eh=100351,op="mixed",th=66503,nh="ENOTDIR",uh=65135,m7="string_literal",ie="@ ",ih=43334,k7="if_alternate_statement",fh=70448,vp=8485,h7="type_args",ch=69864,_7="if_statement",dM="+=",w7="typeof_identifier",ap="with",lp=65595,sh=64286,oh=71086,Ts="true",vh=69423,T7="catch_clause",ah="e",da="asserts",mM=">>=",lh=131,ph=43388,yh=43887,B1=-48,dh=120779,kM=190,mh=194,S7="pattern_bigint_literal",kh=71351,hh=65629,E7="call",hM=-42,pp=126553,_h=43695,_M=177,wh=42124,Th=12703,Sh=12442,Eh=11718,yp=70449,dp=126547,Ah=67462,Ss="left",A7="infer_type",gh=11742,Nh=65597,mp="Unix.Unix_error",Ih=122623,Ph=124911,Ch=72959,Rh="opaque",g7="object_internal_slot_property_type",wM="Enum `",TM=275,vv=65279,Oh=71983,Lh=12329,P1=110,N7="spread_property",SM="importKind",X3=" =",I7="remote_identifier",P7="labeled_statement",C7="jsx_fragment",Uh=120770,R7="function_param",fe=112,Mh="exportKind",O7="binary",Es="`.",Dh=42511,EM="<=",L7="jsx_spread_attribute",R2="import",U7="typeof_member_identifier",jh=69414,zh=19967,kp=11687,Kh=93823,AM=209,Jh=71903,Yh="of",Bh=72e3,Xh="typeArguments",M7="type_identifier",D7="pattern_array_element_pattern",hp=69744,ma=192,j7="class_element",z7="export_source",K7="component_param_pattern",Wh=42508,Vh=125124,gM="Unexpected token `",J7="for_in_left_declaration",Y7="object_call_property_type",Zh="abstract",$h=8584,Fh=68786,Qh=71999,_p=123214,Hh=123565,qh=186,B7="class_implements_interface",wp=126536,Gh=69749,NM="Invalid legacy octal ",bh=71295,x_=66927,X7="pattern_expression",r_=11679,e_=-61,Tp=65141,t_=11694,W7="update_expression",IM="minus",Re="debugger",n_=71352,u_=65470,ka="number",i_=123627,Sp=64322,Ep=43471,V7="for_of_assignment_pattern",Ap=126589,f_=43784,PM="Internal Error: Found object private prop",c_=183983,Hr="id",s_=123190,gp="finally",Np=120070,o_=72095,Z7="syntax",v_=110591,As="false",CM=-10,Ip="AssignmentPattern",$7="typeof_expression",a_=43764,RM="FunctionTypeParam",F7="function_body_any",l_=126627,p_=71998,y_=126543,Q7="call_type_arg",d_=64316,Pp=64285,m_=8454,k_=137,OM="**",H7="object_type_property_setter",h_=68607,fn=108,__="out",w_=68799,av=65278,q7="jsx_member_expression",T_=92728,lv="null",S_=66431,E_=72249,cn=128,Cp=119994,A_=66207,g_=43583,Rp="else",Op=94179,Lp=11735,N_=64911,G7="jsx_attribute_name_namespaced",LM="!",I_=42539,P_=72250,C_=71215,R_=69746,O_=65487,b7="pattern_object_property_key",UM=", ",L_=8505,U_="=",M_=64111,D_=8507,Up=120134,Mp="while",j_=120596,z_=43002,W3="protected",K_=68479,J_=43395,Y_=68252,MM="v",B_=70278,X_="rendersType",W_=70853,Dp=120145,V_=69297,Z_=73112,jp=8488,$_=68351,F_=42655,xu="for_of_left_declaration",Q_=44031,H_="Failure",q_=92159,ru="object_key_identifier",DM=195,pv="bigint",eu="import_default_specifier",yv=256,tu="member",jM="!==",nu="component_identifier",G_=73008,b_=72283,zp=126500,Kp=120127,uu="jsx_attribute_name",iu="for_statement_init",xw=67711,fu="private_name",Jp="case",Yp=8489,cu="import_specifier",rw=64279,ew=94098,zM=148,tw=119974,su="pattern_string_literal",nw=72969,KM=193,JM="!=",Bp=126520,uw=71944,YM=259,iw=42191,ou="generic_qualified_identifier_type",dv="implements",fw=194559,BM="%",V3="hasUnknownMembers",cw=71039,XM=211,sw=83526,vu="init",au="jsx_attribute_value",ow=70271,ha=240,lu="function_type_return_annotation",vw=70018,aw="rest",pu="readonly_type",lw=512,pw=68095,yw=120003,Xp=126563,Wp=71236,dw=69375,mw=68850,kw=70105,hw=43866,Vp=888960333,_w=43013,yu="assignment_pattern",ww="specifiers",WM=710,Ct="as",Tw=120570,Sw=11507,VM=204,du="jsx_element_name_identifier",mu="pattern_object_property_string_literal_key",ku="class_expression",ZM=257,Ew=44002,Aw=82943,_a="src/parser/type_parser.ml",wa="test",gw=64217,Zp="package",$M="collect_comments",FM="Pervasives.do_at_exit",Nw=125183,Iw=42606,hu="tuple_element",_u="enum_boolean_member",Pw=65312,$p=119981,Cw=65495,Fp=120085,QM=-80,HM=138,Qp=126555,Rw=65276,m1=128,qM="{ ",wu="for_statement",Tu="class_method",Hp="if",Su="generic_type",Er=113,Ow=43071,Lw=72001,Uw=71131,Mw=70002,Dw=42888,qp=8469,Z3="instanceof",jw=11502,Gp=94178,zw=64321,Kw=64913,GM="Division_by_zero",Jw=92879,Yw=71945,Bw=185,Xw=66938,bp=65535,Ww=113800,bM=": file descriptor already closed",x8=223,xD="*=",Vw=68899,Eu="switch_case",Au="pattern_array_element",gu="enum_string_member",Nu="pattern_object_property_bigint_literal_key",rD="visit_trailing_comment",r8="export",e8=120122,t8=43823,Zw=43792,$w=42527,Fw=70726,Iu="enum_defaulted_member",Qw=68497,n8=72349,Pu="program",Cu="member_type_identifier",Hw="object",Ru="for_of_statement_lhs",qw=113791,Gw=67391,Ou="jsx_spread_child",u8=126554,i8=8526,f8=43880,c8=69415,bw=43822,Lu="pattern_identifier",xT=93052,Ta="readonly",Oe="name",rT=68119,eT=71494,tT=120121,s8=8486,eD=2047,Uu="enum_symbol_body",tD=142,nD="PropertyDefinition",nT=177976,Mu="declare_class",uT=65489,iT=72367,fT=70440,Du="import_named_specifier",uD="Popping lex mode from empty stack",cT=68111,sT=66463,iD="*-/",oT=43187,o8=8487,vT=11567,aT=67861,lT=` -`,pT=66383,ju="declare_interface",yT=-24976191,dT=238,mT=-24,fD="@ }@]",kT=43645,cD=176,hT=119976,v8=69959,_T=126519,wT=";",sD="trailingComments",a8=65548,zu="number_literal",Sa=449540197,TT=43704,l8=126584,ST=8467,oD="||",p8=11695,ET="exported",AT=120712,gs="void",vD="mixins",gT=92783,NT=215,Ku="body_expression",aD="%ni",$3=">",Ju="jsx_child",IT=8516,Yu="optional_indexed_access_type",Bu="typeof_type",Xu="spread_element",PT=42963,lD="@[",Wu="component_params",CT=43042,y8="",Vu="function_",d8="for",m8=65575,sn="params",RT=168,pD="win32",mv=8202,yD="@",k8="^",OT=164,nt="optional",LT=65574,F3="boolean",dD=139,UT=12548,h8=120539,mD="Not_found",_8=246,Zu="expression_statement",MT="EBADF",DT=66815,$u="module_ref_literal",jT=55203,Fu="function_param_type",zT=73064,w8=70279,KT=110580,kD=233,JT="<",hD="visit_leading_comment",YT=66855,BT=66966,XT=66499,WT=111355,VT=68680,ZT=206,_D="--",$T=65497,T8=11711,Qu="function_param_pattern",kv="constructor",FT=5760,wD="infinity",S8=43642,HI0="fs",QT=92991,E8=126544,HT=101640,A8=72162,qT=67583,g8=8468,O2="typeParameters",TD="elements",GT=71423,SD="Sys_blocked_io",Hu="interface_declaration",qu="variable_declaration",Gu="function_rest_param",bu="type",bT="Invalid number ",xS=" : flags Open_rdonly and Open_wronly are not compatible",rS=69404,xi="jsx_element_name_member_expression",N8="keyof",ED=285,I8="never",ri="with_",on=32768,AD="|=",P8=70404,C8=70441,eS=42969,Q3="declare",tS=73061,ei="object_type",ti="object_property_value_type",nS=69687,gD="Invalid binary/octal ",ND=230,uS=64324,ID="range",PD="infer",iS=120744,ni="array_element",fS=70730,cS=43641,CD=166,sS=70461,oS=69890,vS=69487,aS=74862,lS=68149,R8=73065,RD="%a",pS=72348,OD=172,ui="jsx_expression",yS=65663,dS=126495,mS=245,kS=124907,ii="member_property_identifier",LD=226,hS=43615,fi="comment",O8=119965,ci="catch_clause_pattern",si="object_type_property_getter",UD=136,_S=43019,wS=67455,L8=126628,MD=331416730,DD="the start of a statement",TS=122654,SS="shorthand",ES=43595,AS=11710,oi="typeof_qualified_identifier",gS=72750,jD="elementType",f2="typeAnnotation",NS=124895,zD=162,U8=11559,IS=67382,KD="??=",PS=72329,CS="target",vi="component_type",JD=180,RS=189,YD=8206,OS=43513,LS=173823,US=126467,ai="type_guard",MS=43700,DS=12783,M8=8305,li="type_annotation",BD=141,Le="break",D8=42999,jS=65019,zS=160,KS=70460,pi="expression_or_spread",JS=")",yi="class_private_field",YS=55215,BS=65338,XS=40981,H3="members",di="import_declaration",WS=69634,j8=94031,VS="ENOENT",ZS=8457,XD="satisfies",mi="generic_identifier_type",ki="function_this_param",$S=66993,hi="type_",FS=67423,QS=11557,HS=12799,qS=239,GS=93026,bS=66377,xE=123180,WD=221,VD=-594953737,rE=67967,eE=43586,Ue=105,ZD="src/parser/flow_lexer.ml",tE=66559,_i="class_property_value",nE=67637,$D="closedir",uE=43010,iE=8521,z8=69956,fE=42959,cE=212,sE=92735,K8="}",q3="method",oE=11498,J8=247,ce="empty",wi=16777215,FD=161,vE=42887,Ns=116,Ti="type_identifier_reference",Y8=126634,aE=68029,QD="regexp",lE=70414,G3=121,Si="template_literal_element",pE=8449,yE=126562,hv=12287,dE=-45,B8=64297,X8=126523,mE=43301,ut=111,kE=126498,hE=43776,HD="EEXIST",_E=119892,wE=43807,qD=4096,Ea=252,Is=255,TE=68295,Ei="variable_declarator_pattern",Ai="do_while",W8="catch",SE=66962,EE=120654,gi=125,Ni="label_identifier",AE=11263,gE=8525,Ii="assignment",NE=191456,IE=43273,GD="%u",PE=65381,CE=110927,RE=65479,OE=120538,_v="await",LE=71487,UE="jsError",ME=110588,DE=120084,jE=42890,Aa=224,Pi="object_key",zE=43696,KE=73647,JE=43761,YE=12295,BE=64967,V8=11647,bD=191,Rt=123,XE="generator",WE=123583,Ci="for_of_statement",Ri="enum_bigint_body",VE=110959,ZE=92995,$E=120686,FE="b",QE=119969,Z8=126522,$8=64318,HE=71839,F8=126602,qE=65908,b3=65536,xj=231,rj=-602162310,ej="comment_bounds",Ot="-",tj=-55,Oi="pattern_object_property",GE=43493,bE=69505,xA=8471,rA=187,Q8=120745,Li="enum_member_identifier",eA=71959,tA=66863,nA=65594,H8=253,q8='"',G8=70286,Ui="jsx_attribute_value_literal",uA=68447,nj="the",iA="index out of bounds",Mi="declare_export_declaration",Di="jsx_attribute",ji="class_extends",qr=122,_1=106,zi="binding_pattern",Ki="ts_type_cast",fA=113807,cA=93951,xl=119,sA="types",oA=8335,Ji="statement_fork_point",ga="_",vA=65500,Yi="function_type",aA=68220,Bi="statement_list",Na=-835925911,lA=123535,b8=43815,pA=199,x5=120571,yA=67514,uj="Property",r5=72713,ij="Unexpected ",e5=169,fj=", characters ",t5=43867,dA=42537,Xi="component_declaration",cj=" : is a directory",Wi="object_key_number_literal",Jr=127,c2=-36,rl=912068366,el="delete",Vi=114,mA=120076,Zi="regexp_literal",kA=65370,hA=65481,a1="value",_A=68405,tl="operator",nl="const",sj=283,wv=109,n5="any",wA=69958,TA=70831,SA=73111,EA=72767,AA="Identifier",$i="jsx_opening_attribute",Fi="conditional_type",gA="loc",NA=67071,u5=120004,IA=43492,PA=70005,oj=188,i5=72272,CA=11389,vj=251,RA=73055,f5=70280,aj=286,c5=1114111,OA=66421,lj="Stack_overflow",LA=70301,UA=19903,lo="0x",MA=69967,DA=12447,s5=66512,pj=`Fatal error: exception %s -`,ul=1e3,jA=69295,o5=120093,yj=">=",dj=149,v5=64325,Qi="class_identifier",zA=119967,KA=68415,mj="end",Hi="enum_boolean_body",qi="member_private_name",Gi="super_expression",JA=71955,YA=126514,a5=67593,BA=66939,XA=12591,l5=126538,WA=110590,VA=72703,ZA=72105,p5=65598,$A=73727,y5=126504,d5=126551,FA=70143,il="from",bi="class_property",xf="enum_number_body",QA=42559,HA=93759,qA=66994,vn="right",kj=225,GA=67702,bA=65473,xg=43697,m5=70855,rg=119993,eg=72103,tg=178205,rf="call_type_args",ng=66511,ef="export_batch_specifier",tf="component_type_param",an=782176664,Tv="get",fl="local",hj=228,nf="object_mapped_type_property",uf="class_decorator",_j=220,ff="enum_body",wj="<<=",ug=71956,ig=69839,Ia="super",fg=173791,cg=71942,Q1="expression",sg=72440,Pa=254,og=70412,cf="try_catch",Tj=32752,sf="declare_module_exports",vg=12320,Sj=134,ag=94175,cl="enum",Ej=196,of="import_source",lg=43814,pg=120069,vf="while_",k5=126537,yg=43262,af="function_rest_param_type",dg=66378,h5=119996,lf="declare_component",mg=73097,kg=70783,hg=43503,_g=131071,wg=11492,Tg=92766,Aj=173,Sg=113770,Eg=73029,Ag=66978,pf="tagged_template",yf="jsx_element_name",df="for_init_declaration",gg=123213,mf="object_indexer_property_type",kf="object_spread_property_type",_5=72970,w5=70854,Ng=110930,sl="var",gj=217,Ig=119972,Pg=69622,Cg=63743,Rg=42237,Og=870530776,T5="returnType",Nj=56320,Ij=143,Ca="computed",Lg=42735,hf="arg_list",Ug=67461,_f="export_named_declaration",Mg=72817,Dg=73439,jg=43782,zg=66775,Kg=70655,S5="bool",Jg=65140,Yg=75075,Bg=126651,Xg=71947,Wg=42961,Vg=12735,Zg=78894,$g=64262,Fg=237,F2="interface",Pj="Match_failure",Qg=42962,Hg=69748,Cj="leadingComments",wf="this_expression",ol=461894857,E5=12592,Rj=8204,qg=119807,Gg=66348,Tf="declare_variable",bg=8348,Sf="optional_member",Ef=120,Af="arrow_function",xN=72768,rN=70851,gf="array",eN=43249,A5=126468,tN=177983,nN="compare: functional value",uN=126550,iN=64847,Nf="binding_type_identifier",fN=120132,If="function_params",cN=93071,vl=1024,sN=42783,Oj=1039100673,Lj="@{",oN=12352,vN=42653,aN=120628,Uj=264,Pf="declare_function",Cf="for_in_statement_lhs",lN=72271,pN=69807,yN=67826,Rf="syntax_opt",Of="object_key_bigint_literal",Mj=243,dN=94032,Dj=265,jj="Undefined_recursive_module",zj=-1053382366,mN=72242,Lf="variance_opt",kN=101631,hN="arguments",_N=72161,wN=8511,g5="unknown",TN=43560,Kj="the end of an expression statement (`;`)",Jj=1026,SN=12543,EN=11670,AN=69247,N5=11631,I5="line",gN=72202,Uf="pattern_object_rest_property",Lt=" ",NN=43487,Ps=115,IN=-673950933,Mf="intersection_type",PN=120144,al="is",CN=178207,RN=100343,Yj="||=",Bj="f",P5=8455,Cs=102,Df="pattern_object_property_number_literal_key",ON=70418,LN=8543,Xj="Internal Error: Found private field in object props",C5=126540,R5=119995,Sv=8287,jf="indexed_access_type",zf="export_named_specifier",Wj=224,UN=124926,MN=-103,DN=167,O5=65344,L5=126530,jN=113788,zN=67505,KN="property",JN=43014,Me="return",Ev=-85,YN=126601,Vj=214,Zj="children",Kf="type_alias",U5=43259,BN=126583,XN=71958,WN=65613,VN=67431,M5=126535,ZN=69599,Jf="type_params",Yf="object_key_computed",$N=124910,L2="variance",D5=11727,FN=66954,QN=126463,Bf="catch_body",HN=69445,Xf="type_param",Wf="component_type_params",qN=124902,j5=120687,$j="collect_comments_opt",GN=15,bN=120485,xI=70416,rI=125259,Vf="jsx_namespaced_name",eI=43712,tI=72712,Fj="~",z5=12448,Zf="jsx_member_expression_object",K5=126499,J5=-97,$f="pattern_object_property_identifier_key",Qj=219,Ff="component_body",Qf="opaque_type",Hf=".",nI=43009,uI="consequent",Hj="SpreadElement",j1="body",qj=178,Gj=202,qf="jsx_opening_element",Gf="declare_module",Y5=67638,iI=8477,bf="object_type_property",fI=110882,xc="function_body",cI=94111,bj="module",xz="alternate",sI=67839,Av=8191,oI=43881,rz=": closedir failed",po="kind",rc="tuple_labeled_element",gv=-46,vI=67640,ec="declare_type_alias",B5=70750,aI=77808,ll="column",tc="jsx_closing_element",lI=66977,pI="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",yI=65786,nc="function_expression",ln=104,X5=11719,dI=11505,mI="mkdir",kI=70319,ez="Invalid_argument",hI=43738,_I=113817,uc="bigint_literal",wI=70084,tz=278,TI=126566,W5="do",V5=42622,ic="computed_key",fc="pattern_object_property_computed_key",nz="fd ",Z5=126571,SI=126619,uz=140,yo="prototype",iz=208,EI=67004,fz=130,cz=242,sz=">>>=",AI=68863,gI=11726,Ut="raw",NI=64466,Rs=107,II=67679,cc="enum_string_body",$5=244,oz="unreachable jsxtext",vz="*",PI=66335,CI=126570,az=229,RI=" : file already exists",OI=184,LI=67807,UI=70753,sc="boolean_literal",MI=65437,DI=70451,jI=67002,Ra=124,oc="conditional",F5=43260,lz="Sys_error",zI=123135,pl="meta",KI=64109,vc="pattern_array_rest_element",JI=43255,Q5=67644,ac="pattern_object_rest_property_pattern",lc="sequence",YI=65855,BI=110951,XI=67643,pc="predicate_expression",De="static",WI=120512,VI="declaration",H5=64317,ZI=68437,q5=126558,yc="meta_property",$I=11564,dc="declare_enum",pn="pattern",FI=216,QI=68191,G5="undefined",b5=8319,xy=120133,pz=132,HI=42239,yz=-99,qI=124927,GI=120092,bI=43137,mc="component_rest_param",dz="expected *",xP=125251,mz="%li",rP=55242,eP=12294,kc="enum_number_member",mo="in",kz="\\\\",Nv=":",tP=68115,hz="Cygwin",nP=77823,uP=65615,ry=70162,_z="/static/",iP=11519,fP=72966,cP=12686,wz=165,ey=183,yl=129,ty=72192,sP=42964,ny="try",uy=120655,oP=11702,Tz="expressions",vP=2048,hc="class_body",aP=55238,Sz=240,lP=66915,pP=43311,yP=43018,Ez=235,dP=73648,Az="([^/]+)",mP=125258,kP=64829,hP=68735,gz="++",Nz=163,Iz="qualification",Pz=57343,Cz=931,_c="default_opt",_P=71235,Rz=8472,wP=71934,Oz=205,Lz=218,Uz="callee",TP=43711,SP=64284,EP=43754,AP=43790,Mz="%Li",wc="pattern_array_rest_element_pattern",iy="decorators",gP=8304,Tc="statement",fy=73062,Sc="jsx_children",NP=70492,IP=64255,PP=11630,CP=1255,cy=67592,sy=43519,oy=64311,vy=12539,RP="proto",ay=120513,OP=68031,Iv="source",dl="a",LP=93047,UP=92927,MP=126588,DP=73458,jP=67742,zP=43714,Dz=236,KP=-253313196,ml="label",jz="@[<2>{ ",ly=126539,py=126552,JP=120487,zz="Out_of_memory",YP=605857695,BP=94026,yy=126496,ko="async",Kz=203,dy=126560,XP=68287,Ec="unary_expression",WP=-26065557,VP=110587,Jz=280,my=120771,ZP=69762,$P=126502,Oa="set",Ac="object_",gc="template_literal",FP=43258,Nc="nullable_type",Os="int_of_string",Yz="^=",je="predicate",La="string",ky=8450,Bz="camlinternalMod.ml",QP=70285,Ls="+",HP=110575,Xz=198,Ic="extends",Wz=-692038429,hy=67827,Vz=210,Zz=227,_y="explicitType",wy=70452,qP=70497,Ua=63,kl="private",GP=64296,bP=67591,xC=92909,$z="T_JSX_TEXT",rC="Fatal error: exception ",eC=120137,Ty=68120,Pc="pattern_array_e",tC=119964,nC=92862,uC=66461,Fz="&&=",Qz=174,s2=8231,Cc="null_literal",Hz="/=",iC=66811,Sy=70108,fC=67504,cC=11686,sC=67001,oC=" : flags Open_text and Open_binary are not compatible",vC=43741,aC=66204,H1=8233,Rc="type_annotation_hint",lC=123197,Oc="object_property",qz="${",Ey=70480,Gz="&&",Lc="type_cast",hl="%d",Ay=8484,bz=207,pC=70066,yC=68324,gy=120713,xK=135,Ny=126556,Q2="0",U2="yield",Iy=126591,Uc=100,dC=69551,Mc="jsx_element_name_namespaced",rK=232,Dc="object_key_string_literal",jc="function_this_param_type",zc="pattern_object_property_pattern",ze="throw",Ke="switch",eK=2048,Py=119970,Kc="toplevel_statement_list",Pv=250,mC=12438,Jc="class_implements",Yc="variable_declarator",kC=43713,Cy=68096,hC=70457,_C=12538,wC=11734,tK="-=",nK=234,Bc="component_param_name",TC=43123,Xc="class_",uK="|",iK=200,SC=43518,EC=8483,Wc="jsx_attribute_name_identifier",AC=181;function eV(x,r,e,t,u){if(t<=r)for(var i=1;i<=u;i++)e[t+i]=x[r+i];else for(var i=u;i>=1;i--)e[t+i]=x[r+i];return 0}function tV(x){for(var r=[0];x!==0;){for(var e=x[1],t=1;t=e.l||e.t==2&&u>=e.c.length))e.c=x.t==4?Ry(x.c,r,u):r==0&&x.c.length==u?x.c:x.c.substr(r,u),e.t=e.c.length==e.l?0:2;else if(e.t==2&&t==e.c.length)e.c+=x.t==4?Ry(x.c,r,u):r==0&&x.c.length==u?x.c:x.c.substr(r,u),e.t=e.c.length==e.l?0:2;else{e.t!=4&&Oy(e);var i=x.c,f=e.c;if(x.t==4)if(t<=r)for(var o=0;o=0;o--)f[t+o]=i[r+o];else{for(var a=Math.min(u,i.length-r),o=0;o>=1,x==0)return e;r+=r,t++,t==9&&r.slice(0,1)}}function Ly(x){x.t==2?x.c+=Ma(x.l-x.c.length,"\0"):x.c=Ry(x.c,0,x.c.length),x.t=0}function gC(x){if(x.length<24){for(var r=0;rJr)return!1;return!0}else return!/[^\x00-\x7f]/.test(x)}function fK(x){for(var r=wx,e=wx,t,u,i,f,o=0,a=x.length;olw?(e.substr(0,1),r+=e,e=wx,r+=x.slice(o,y)):e+=x.slice(o,y),y==a)break;o=y}f=1,++o=55295&&f<57344)&&(f=2)):(f=3,++o1114111)&&(f=3)))))),f<4?(o-=f,e+="\uFFFD"):f>nn?e+=String.fromCharCode(55232+(f>>10),Nj+(f&1023)):e+=String.fromCharCode(f),e.length>vl&&(e.substr(0,1),r+=e,e=wx)}return r+e}function Ms(x,r,e){this.t=x,this.c=r,this.l=e}Ms.prototype.toString=function(){switch(this.t){case 9:return this.c;default:Ly(this);case 0:if(gC(this.c))return this.t=9,this.c;this.t=8;case 8:return this.c}},Ms.prototype.toUtf16=function(){var x=this.toString();return this.t==9?x:fK(x)},Ms.prototype.slice=function(){var x=this.t==4?this.c.slice():this.c;return new Ms(this.t,x,this.l)};function cK(x){return new Ms(0,x,x.length)}function qI0(x){return x}function Vc(x){return cK(x)}function Cv(x,r,e,t,u){return Us(Vc(x),r,e,t,u),0}function sK(x){var r=p0.process;if(r&&r.env&&r.env[x]!=null)return r.env[x];if(p0.jsoo_static_env&&p0.jsoo_static_env[x])return p0.jsoo_static_env[x]}var NC=0;(function(){var x=sK("OCAMLRUNPARAM");if(x!==void 0)for(var r=x.split(KU),e=0;e>>0>=x.l&&fV(),Xr(x,r,e)}function se(x,r){switch(x.t&6){default:if(r>=x.c.length)return 0;case 0:return x.c.charCodeAt(r);case 4:return x.c[r]}}function Ds(x,r){var e=x.l>=0?x.l:x.l=x.length,t=r.length,u=e-t;if(u==0)return x.apply(null,r);if(u<0){var i=x.apply(null,r.slice(0,e));return typeof i!="function"?i:Ds(i,r.slice(e))}else{switch(u){case 1:{var i=function(a){for(var y=new Array(t+1),h=0;h>>0>=x.length-1&&_l(),x}function cV(x){return isFinite(x)?Math.abs(x)>=22250738585072014e-324?0:x!=0?1:2:isNaN(x)?4:3}function sV(x){return 0}var oV=Math.log2&&Math.log2(11235582092889474e291)==1020;function vV(x){if(oV)return Math.floor(Math.log2(x));var r=0;if(x==0)return-1/0;if(x>=1)for(;x>=2;)x/=2,r++;else for(;x<1;)x*=2,r--;return r}function PC(x){var r=new Float32Array(1);r[0]=x;var e=new Int32Array(r.buffer);return e[0]|0}var oK=Math.pow(2,-24);function vK(x){throw x}function aK(){vK(M2.Division_by_zero)}function fr(x,r,e){this.lo=x&wi,this.mi=r&wi,this.hi=e&nn}fr.prototype.caml_custom="_j",fr.prototype.copy=function(){return new fr(this.lo,this.mi,this.hi)},fr.prototype.ucompare=function(x){return this.hi>x.hi?1:this.hix.mi?1:this.mix.lo?1:this.loe?1:rx.mi?1:this.mix.lo?1:this.lo>24),e=-this.hi+(r>>24);return new fr(x,r,e)},fr.prototype.add=function(x){var r=this.lo+x.lo,e=this.mi+x.mi+(r>>24),t=this.hi+x.hi+(e>>24);return new fr(r,e,t)},fr.prototype.sub=function(x){var r=this.lo-x.lo,e=this.mi-x.mi+(r>>24),t=this.hi-x.hi+(e>>24);return new fr(r,e,t)},fr.prototype.mul=function(x){var r=this.lo*x.lo,e=(r*oK|0)+this.mi*x.lo+this.lo*x.mi,t=(e*oK|0)+this.hi*x.lo+this.mi*x.mi+this.lo*x.hi;return new fr(r,e,t)},fr.prototype.isZero=function(){return(this.lo|this.mi|this.hi)==0},fr.prototype.isNeg=function(){return this.hi<<16<0},fr.prototype.and=function(x){return new fr(this.lo&x.lo,this.mi&x.mi,this.hi&x.hi)},fr.prototype.or=function(x){return new fr(this.lo|x.lo,this.mi|x.mi,this.hi|x.hi)},fr.prototype.xor=function(x){return new fr(this.lo^x.lo,this.mi^x.mi,this.hi^x.hi)},fr.prototype.shift_left=function(x){return x=x&63,x==0?this:x<24?new fr(this.lo<>24-x,this.hi<>24-x):x<48?new fr(0,this.lo<>48-x):new fr(0,0,this.lo<>x|this.mi<<24-x,this.mi>>x|this.hi<<24-x,this.hi>>x):x<48?new fr(this.mi>>x-24|this.hi<<48-x,this.hi>>x-24,0):new fr(this.hi>>x-48,0,0)},fr.prototype.shift_right=function(x){if(x=x&63,x==0)return this;var r=this.hi<<16>>16;if(x<24)return new fr(this.lo>>x|this.mi<<24-x,this.mi>>x|r<<24-x,this.hi<<16>>x>>>16);var e=this.hi<<16>>31;return x<48?new fr(this.mi>>x-24|this.hi<<48-x,this.hi<<16>>x-24>>16,e&nn):new fr(this.hi<<16>>x-32,e,e)},fr.prototype.lsl1=function(){this.hi=this.hi<<1|this.mi>>23,this.mi=(this.mi<<1|this.lo>>23)&wi,this.lo=this.lo<<1&wi},fr.prototype.lsr1=function(){this.lo=(this.lo>>>1|this.mi<<23)&wi,this.mi=(this.mi>>>1|this.hi<<23)&wi,this.hi=this.hi>>>1},fr.prototype.udivmod=function(x){for(var r=0,e=this.copy(),t=x.copy(),u=new fr(0,0,0);e.ucompare(t)>0;)r++,t.lsl1();for(;r>=0;)r--,u.lsl1(),e.ucompare(t)>=0&&(u.lo++,e=e.sub(t)),t.lsr1();return{quotient:u,modulus:e}},fr.prototype.div=function(x){var r=this;x.isZero()&&aK();var e=r.hi^x.hi;r.hi&on&&(r=r.neg()),x.hi&on&&(x=x.neg());var t=r.udivmod(x).quotient;return e&on&&(t=t.neg()),t},fr.prototype.mod=function(x){var r=this;x.isZero()&&aK();var e=r.hi;r.hi&on&&(r=r.neg()),x.hi&on&&(x=x.neg());var t=r.udivmod(x).modulus;return e&on&&(t=t.neg()),t},fr.prototype.toInt=function(){return this.lo|this.mi<<24},fr.prototype.toFloat=function(){return(this.hi<<16)*Math.pow(2,32)+this.mi*Math.pow(2,24)+this.lo},fr.prototype.toArray=function(){return[this.hi>>8,this.hi&Is,this.mi>>16,this.mi>>8&Is,this.mi&Is,this.lo>>16,this.lo>>8&Is,this.lo&Is]},fr.prototype.lo32=function(){return this.lo|(this.mi&Is)<<24},fr.prototype.hi32=function(){return this.mi>>>8&nn|this.hi<<16};function Uy(x,r,e){return new fr(x,r,e)}function My(x){if(!isFinite(x))return isNaN(x)?Uy(1,0,Tj):x>0?Uy(0,0,Tj):Uy(0,0,65520);var r=x==0&&1/x==-1/0?on:x>=0?0:on;r&&(x=-x);var e=vV(x)+1023;e<=0?(e=0,x/=Math.pow(2,-Jj)):(x/=Math.pow(2,e-FU),x<16&&(x*=2,e-=1),e==0&&(x/=2));var t=Math.pow(2,24),u=x|0;x=(x-u)*t;var i=x|0;x=(x-i)*t;var f=x|0;return u=u&GN|r|e<<4,Uy(f,i,u)}function wl(x){return x.toArray()}function lK(x,r,e){if(x.write(32,r.dims.length),x.write(32,r.kind|r.layout<<8),r.caml_custom==tp)for(var t=0;t>4;if(u==eD)return r|e|t&GN?NaN:t&on?-1/0:1/0;var i=Math.pow(2,-24),f=(r*i+e)*i+(t&GN);return u>0?(f+=16,f*=Math.pow(2,u-FU)):f*=Math.pow(2,-Jj),t&on&&(f=-f),f}function OC(x){for(var r=x.length,e=1,t=0;t>>24&Is|(r&nn)<<8,r>>>16&nn)}function LC(x){return x.hi32()}function UC(x){return x.lo32()}var pV=tp;function ho(x,r,e,t){this.kind=x,this.layout=r,this.dims=e,this.data=t}ho.prototype.caml_custom=pV,ho.prototype.offset=function(x){var r=0;if(typeof x=="number"&&(x=[x]),x instanceof Array||q1("bigarray.js: invalid offset"),this.dims.length!=x.length&&q1("Bigarray.get/set: bad number of dimensions"),this.layout==0)for(var e=0;e=this.dims[e])&&_l(),r=r*this.dims[e]+x[e];else for(var e=this.dims.length-1;e>=0;e--)(x[e]<1||x[e]>this.dims[e])&&_l(),r=r*this.dims[e]+(x[e]-1);return r},ho.prototype.get=function(x){switch(this.kind){case 7:var r=this.data[x*2+0],e=this.data[x*2+1];return lV(r,e);case 10:case 11:var t=this.data[x*2+0],u=this.data[x*2+1];return[Pa,t,u];default:return this.data[x]}},ho.prototype.set=function(x,r){switch(this.kind){case 7:this.data[x*2+0]=UC(r),this.data[x*2+1]=LC(r);break;case 10:case 11:this.data[x*2+0]=r[1],this.data[x*2+1]=r[2];break;default:this.data[x]=r;break}return 0},ho.prototype.fill=function(x){switch(this.kind){case 7:var r=UC(x),e=LC(x);if(r==e)this.data.fill(r);else for(var t=0;tf)return 1;if(i!=f){if(!r)return NaN;if(i==i)return 1;if(f==f)return-1}}break;case 7:for(var u=0;ux.data[u+1])return 1;if(this.data[u]>>>0>>0)return-1;if(this.data[u]>>>0>x.data[u]>>>0)return 1}break;case 2:case 3:case 4:case 5:case 6:case 8:case 9:case 12:for(var u=0;ux.data[u])return 1}break}return 0};function ja(x,r,e,t){this.kind=x,this.layout=r,this.dims=e,this.data=t}ja.prototype=new ho,ja.prototype.offset=function(x){return typeof x!="number"&&(x instanceof Array&&x.length==1?x=x[0]:q1("Ml_Bigarray_c_1_1.offset")),(x<0||x>=this.dims[0])&&_l(),x},ja.prototype.get=function(x){return this.data[x]},ja.prototype.set=function(x,r){return this.data[x]=r,0},ja.prototype.fill=function(x){return this.data.fill(x),0};function yK(x,r,e,t){var u=pK(x);return OC(e)*u!=t.length&&q1("length doesn't match dims"),r==0&&e.length==1&&u==1?new ja(x,r,e,t):new ho(x,r,e,t)}function D2(x){M2.Failure||(M2.Failure=[Qr,H_,-3]),IC(M2.Failure,x)}function dK(x,r,e){var t=x.read32s();(t<0||t>16)&&D2("input_value: wrong number of bigarray dimensions");var u=x.read32s(),i=u&Is,f=u>>8&1,o=[];if(e==tp)for(var a=0;a>>32-15,r=kK(r,461845907),x^=r,x=x<<13|x>>>32-13,(x+(x<<2)|0)+-430675100|0}function yV(x,r){return x=js(x,UC(r)),x=js(x,LC(r)),x}function hK(x,r){return yV(x,My(r))}function _K(x){var r=OC(x.dims),e=0;switch(x.kind){case 2:case 3:case 12:r>yv&&(r=yv);var t=0,u=0;for(u=0;u+4<=x.data.length;u+=4)t=x.data[u+0]|x.data[u+1]<<8|x.data[u+2]<<16|x.data[u+3]<<24,e=js(e,t);switch(t=0,r&3){case 3:t=x.data[u+2]<<16;case 2:t|=x.data[u+1]<<8;case 1:t|=x.data[u+0],e=js(e,t)}break;case 4:case 5:r>m1&&(r=m1);var t=0,u=0;for(u=0;u+2<=x.data.length;u+=2)t=x.data[u+0]|x.data[u+1]<<16,e=js(e,t);r&1&&(e=js(e,x.data[u]));break;case 6:r>64&&(r=64);for(var u=0;u64&&(r=64);for(var u=0;u32&&(r=32),r*=2;for(var u=0;u64&&(r=64);for(var u=0;u32&&(r=32);for(var u=0;u0?u(r,x,t):u(x,r,t);if(t&&i!=i)return e;if(+i!=+i)return+i;if(i|0)return i|0}return e}function DC(x){return typeof x=="string"&&!/[^\x00-\xff]/.test(x)}function jC(x){return x instanceof Ms}function SK(x){if(typeof x=="number")return ul;if(jC(x))return Ea;if(DC(x))return 1252;if(x instanceof Array&&x[0]===x[0]>>>0&&x[0]<=B3){var r=x[0]|0;return r==Pa?0:r}else{if(x instanceof String)return fM;if(typeof x=="string")return fM;if(x instanceof Number)return ul;if(x&&x.caml_custom)return CP;if(x&&x.compare)return 1256;if(typeof x=="function")return 1247;if(typeof x=="symbol")return 1251}return 1001}function yn(x,r){return xr?1:0}function TV(x,r){return x.t&6&&Ly(x),r.t&6&&Ly(r),x.cr.c?1:0}function Dy(x,r,e){for(var t=[];;){if(!(e&&x===r)){var u=SK(x);if(u==Pv){x=x[1];continue}var i=SK(r);if(i==Pv){r=r[1];continue}if(u!==i)return u==ul?i==CP?TK(x,r,-1,e):-1:i==ul?u==CP?TK(r,x,1,e):1:ur)return 1;if(x!=r){if(!e)return NaN;if(x==x)return 1;if(r==r)return-1}break;case 1001:if(xr)return 1;if(x!=r){if(!e)return NaN;if(x==x)return 1;if(r==r)return-1}break;case 1251:if(x!==r)return e?1:NaN;break;case 1252:var x=x,r=r;if(x!==r){if(xr)return 1}break;case 12520:var x=x.toString(),r=r.toString();if(x!==r){if(xr)return 1}break;case 246:case 254:default:if(sV(u)){q1("compare: continuation value");break}if(x.length!=r.length)return x.length1&&t.push(x,r,1);break}}if(t.length==0)return 0;var a=t.pop();r=t.pop(),x=t.pop(),a+10)if(r==0&&(e>=x.l||x.t==2&&e>=x.c.length))t==0?(x.c=wx,x.t=2):(x.c=Ma(e,String.fromCharCode(t)),x.t=e==x.l?0:2);else for(x.t!=4&&Oy(x),e+=r;r0&&r===r||(x=x.replace(/_/g,wx),r=+x,x.length>0&&r===r||/^[+-]?nan$/i.test(x)))return r;var e=/^ *([+-]?)0x([0-9a-f]+)\.?([0-9a-f]*)(p([+-]?[0-9]+))?/i.exec(x);if(e){var t=e[3].replace(/0+$/,wx),u=parseInt(e[1]+e[2]+t,16),i=(e[5]|0)-4*t.length;return r=u*Math.pow(2,i),r}if(/^\+?inf(inity)?$/i.test(x))return 1/0;if(/^-inf(inity)?$/i.test(x))return-1/0;D2("float_of_string")}function KC(x){x=x;var r=x.length;r>31&&q1("format_int: format too long");for(var e={justify:Ls,signstyle:Ot,filler:Lt,alternate:!1,base:0,signedconv:!1,width:0,uppercase:!1,sign:1,prec:-1,conv:Bj},t=0;t=0&&u<=9;)e.width=e.width*10+u,t++;t--;break;case".":for(e.prec=0,t++;u=x.charCodeAt(t)-48,u>=0&&u<=9;)e.prec=e.prec*10+u,t++;t--;case"d":case"i":e.signedconv=!0;case"u":e.base=10;break;case"x":e.base=16;break;case"X":e.base=16,e.uppercase=!0;break;case"o":e.base=8;break;case"e":case"f":case"g":e.signedconv=!0,e.conv=u;break;case"E":case"F":case"G":e.signedconv=!0,e.uppercase=!0,e.conv=u.toLowerCase();break}}return e}function JC(x,r){x.uppercase&&(r=r.toUpperCase());var e=r.length;x.signedconv&&(x.sign<0||x.signstyle!=Ot)&&e++,x.alternate&&(x.base==8&&(e+=1),x.base==16&&(e+=2));var t=wx;if(x.justify==Ls&&x.filler==Lt)for(var u=e;u20?(A-=20,h/=Math.pow(10,A),h+=new Array(A+1).join(Q2),k>0&&(h=h+Hf+new Array(k+1).join(Q2)),h):h.toFixed(k)}var t,u=KC(x),i=u.prec<0?6:u.prec;if((r<0||r==0&&1/r==-1/0)&&(u.sign=-1,r=-r),isNaN(r))t=Dk,u.filler=Lt;else if(!isFinite(r))t="inf",u.filler=Lt;else switch(u.conv){case"e":var t=r.toExponential(i),f=t.length;t.charAt(f-3)==ah&&(t=t.slice(0,f-1)+Q2+t.slice(f-1));break;case"f":t=e(r,i);break;case"g":i=i||1,t=r.toExponential(i-1);var o=t.indexOf(ah),a=+t.slice(o+1);if(a<-4||r>=1e21||r.toFixed(0).length>i){for(var f=o-1;t.charAt(f)==Q2;)f--;t.charAt(f)==Hf&&f--,t=t.slice(0,f+1)+t.slice(o),f=t.length,t.charAt(f-3)==ah&&(t=t.slice(0,f-1)+Q2+t.slice(f-1));break}else{var y=i;if(a<0)y-=a+1,t=r.toFixed(y);else for(;t=r.toFixed(y),t.length>i+1;)y--;if(y){for(var f=t.length-1;t.charAt(f)==Q2;)f--;t.charAt(f)==Hf&&f--,t=t.slice(0,f+1)}}break}return JC(u,t)}function zy(x,r){if(x==hl)return wx+r;var e=KC(x);r<0&&(e.signedconv?(e.sign=-1,r=-r):r>>>=0);var t=r.toString(e.base);if(e.prec>=0){e.filler=Lt;var u=e.prec-t.length;u>0&&(t=Ma(u,Q2)+t)}return JC(e,t)}var AK=0;function zs(){return AK++}function gK(){return[0]}var Ky=[];function qx(x,r,e){var t=x[1],u=Ky[e];if(u===void 0)for(var i=Ky.length;i>1|1,rlw?(e.substr(0,1),r+=e,e=wx,r+=x.slice(i,o)):e+=x.slice(i,o),o==f)break;i=o}t>6),e+=String.fromCharCode(cn|t&Ua)):t<55296||t>=Pz?e+=String.fromCharCode(Wj|t>>12,cn|t>>6&Ua,cn|t&Ua):t>=56319||i+1==f||(u=x.charCodeAt(i+1))Pz?e+="\xEF\xBF\xBD":(i++,t=(t<<10)+u-56613888,e+=String.fromCharCode(Sz|t>>18,cn|t>>12&Ua,cn|t>>6&Ua,cn|t&Ua)),e.length>vl&&(e.substr(0,1),r+=e,e=wx)}return r+e}function Mt(x){return gC(x)?x:AV(x)}function gV(x,r,e){if(!isFinite(x))return isNaN(x)?Mt(Dk):Mt(x>0?wD:"-infinity");var t=x==0&&1/x==-1/0?1:x>=0?0:1;t&&(x=-x);var u=0;if(x!=0)if(x<1)for(;x<1&&u>-1022;)x*=2,u--;else for(;x>=2;)x/=2,u++;var i=u<0?wx:Ls,f=wx;if(t)f=Ot;else switch(e){case 43:f=Ls;break;case 32:f=Lt;break;default:break}if(r>=0&&r<13){var o=Math.pow(2,r*4);x=Math.round(x*o)/o}var a=x.toString(16);if(r>=0){var y=a.indexOf(Hf);if(y<0)a+=Hf+Ma(r,Q2);else{var h=y+1+r;a.length>24&wi,x>>31&nn)}function IV(x){return x.toInt()}function PV(x){return+x.isNeg()}function BC(x){return x.neg()}function CV(x,r){var e=KC(x);e.signedconv&&PV(r)&&(e.sign=-1,r=BC(r));var t=wx,u=Jy(e.base),i="0123456789abcdef";do{var f=r.udivmod(u);r=f.quotient,t=i.charAt(IV(f.modulus))+t}while(!NV(r));if(e.prec>=0){e.filler=Lt;var o=e.prec-t.length;o>0&&(t=Ma(o,Q2)+t)}return JC(e,t)}function Gx(x){return x.length}function ix(x,r){return x.charCodeAt(r)}function RV(x,r){return x.add(r)}function OV(x,r){return x.mul(r)}function XC(x,r){return x.ucompare(r)<0}function NK(x){var r=0,e=Gx(x),t=10,u=1;if(e>0)switch(ix(x,r)){case 45:r++,u=-1;break;case 43:r++,u=1;break}if(r+1=48&&x<=57?x-48:x>=65&&x<=90?x-55:x>=97&&x<=qr?x-87:-1}function Sl(x){var r=NK(x),e=r[0],t=r[1],u=r[2],i=Jy(u),f=new fr(wi,268435455,nn).udivmod(i).quotient,o=ix(x,e),a=Yy(o);(a<0||a>=u)&&D2(Os);for(var y=Jy(a);;)if(e++,o=ix(x,e),o!=95){if(a=Yy(o),a<0||a>=u)break;XC(f,y)&&D2(Os),a=Jy(a),y=RV(OV(i,y),a),XC(y,a)&&D2(Os)}return e!=Gx(x)&&D2(Os),u==10&&XC(new fr(0,0,on),y)&&D2(Os),t<0&&(y=BC(y)),y}function By(x){return x.toFloat()}function it(x){var r=NK(x),e=r[0],t=r[1],u=r[2],i=Gx(x),f=-1>>>0,o=e=u)&&D2(Os);var y=a;for(e++;e=u)break;y=u*y+a,y>f&&D2(Os)}return e!=i&&D2(Os),y=t*y,u==10&&(y|0)!=y&&D2(Os),y|0}function LV(x){return x.slice(1)}function nr(x){return gC(x)?x:fK(x)}function UV(x){for(var r={},e=1;e=0?x.l:x.l=x.length}function DV(x){return function(){for(var r=MV(x),e=new Array(r),t=0;t1&&t.pop();break;case".":break;case"":break;default:t.push(e[u]);break}return t.unshift(r[0]),t.orig=x,t}var BV=["E2BIG","EACCES","EAGAIN",MT,"EBUSY","ECHILD","EDEADLK","EDOM",HD,"EFAULT","EFBIG","EINTR","EINVAL","EIO","EISDIR","EMFILE","EMLINK","ENAMETOOLONG","ENFILE","ENODEV",VS,"ENOEXEC","ENOLCK","ENOMEM","ENOSPC","ENOSYS",nh,WU,"ENOTTY","ENXIO","EPERM","EPIPE","ERANGE","EROFS","ESPIPE","ESRCH","EXDEV","EWOULDBLOCK","EINPROGRESS","EALREADY","ENOTSOCK","EDESTADDRREQ","EMSGSIZE","EPROTOTYPE","ENOPROTOOPT","EPROTONOSUPPORT","ESOCKTNOSUPPORT","EOPNOTSUPP","EPFNOSUPPORT","EAFNOSUPPORT","EADDRINUSE","EADDRNOTAVAIL","ENETDOWN","ENETUNREACH","ENETRESET","ECONNABORTED","ECONNRESET","ENOBUFS","EISCONN","ENOTCONN","ESHUTDOWN","ETOOMANYREFS","ETIMEDOUT","ECONNREFUSED","EHOSTDOWN","EHOSTUNREACH","ELOOP","EOVERFLOW"];function Js(x,r,e,t){var u=BV.indexOf(x);u<0&&(t==null&&(t=-9999),u=[0,t]);var i=[u,Mt(r||wx),Mt(e||wx)];return i}var RK={};function _o(x){return RK[x]}function Ys(x,r){throw q0([0,x].concat(r))}function VC(x){return x instanceof Uint8Array||(x=new Uint8Array(x)),new Ms(4,x,x.length)}function OK(x){Mr(x+np)}function H2(x){this.data=x}H2.prototype=new IK,H2.prototype.constructor=H2,H2.prototype.truncate=function(x){var r=this.data;this.data=g1(x|0),Us(r,0,this.data,0,x)},H2.prototype.length=function(){return ft(this.data)},H2.prototype.write=function(x,r,e,t){var u=this.length();if(x+t>=u){var i=g1(x+t),f=this.data;this.data=i,Us(f,0,this.data,0,u)}return Us(VC(r),e,this.data,x,t),0},H2.prototype.read=function(x,r,e,t){var u=this.length();if(x+t>=u&&(t=u-x),t){var i=g1(t|0);Us(this.data,x,i,0,t),r.set(PK(i),e)}return t};function Rv(x,r,e){this.file=r,this.name=x,this.flags=e}Rv.prototype.err_closed=function(){Mr(this.name+bM)},Rv.prototype.length=function(){if(this.file)return this.file.length();this.err_closed()},Rv.prototype.write=function(x,r,e,t){if(this.file)return this.file.write(x,r,e,t);this.err_closed()},Rv.prototype.read=function(x,r,e,t){if(this.file)return this.file.read(x,r,e,t);this.err_closed()},Rv.prototype.close=function(){this.file=void 0};function p2(x,r){this.content={},this.root=x,this.lookupFun=r}p2.prototype.nm=function(x){return this.root+x},p2.prototype.create_dir_if_needed=function(x){for(var r=x.split($2),e=wx,t=0;t0&&e>=0&&e+t<=r.length&&r[e+t-1]==10&&t--;var u=g1(t);return Us(VC(r),e,u,0,t),this.log(u.toUtf16()),0}Mr(this.fd+bM)},gl.prototype.read=function(x,r,e,t){Mr(this.fd+": file descriptor is write only")},gl.prototype.close=function(){this.log=void 0};function Zy(x,r){return r==null&&(r=Wy.length),Wy[r]=x,r|0}function xP0(x,r,e){for(var t={};r;){switch(r[1]){case 0:t.rdonly=1;break;case 1:t.wronly=1;break;case 2:t.append=1;break;case 3:t.create=1;break;case 4:t.truncate=1;break;case 5:t.excl=1;break;case 6:t.binary=1;break;case 7:t.text=1;break;case 8:t.nonblock=1;break}r=r[2]}t.rdonly&&t.wronly&&Mr(x+xS),t.text&&t.binary&&Mr(x+oC);var u=XV(x),i=u.device.open(u.rest,t);return Zy(i,void 0)}(function(){function x(r,e){return El()?KV(r,e):new gl(r,e)}Zy(x(0,{rdonly:1,altname:"/dev/stdin",isCharacterDevice:!0}),0),Zy(x(1,{buffered:2,wronly:1,isCharacterDevice:!0}),1),Zy(x(2,{buffered:2,wronly:1,isCharacterDevice:!0}),2)})();function WV(x){var r=Wy[x];r.flags.wronly&&Mr(nz+x+" is writeonly");var e=null,t={file:r,offset:r.flags.append?r.length():0,fd:x,opened:!0,out:!1,buffer_curr:0,buffer_max:0,buffer:new Uint8Array(b3),refill:e};return Ks[t.fd]=t,t.fd}function UK(x){var r=Wy[x];r.flags.rdonly&&Mr(nz+x+" is readonly");var e=r.flags.buffered!==void 0?r.flags.buffered:1,t={file:r,offset:r.flags.append?r.length():0,fd:x,opened:!0,out:!0,buffer_curr:0,buffer:new Uint8Array(b3),buffered:e};return Ks[t.fd]=t,t.fd}function VV(){for(var x=0,r=0;ru.buffer.length){var f=new Uint8Array(u.buffer_curr+i.length);f.set(u.buffer),u.buffer=f}switch(u.buffered){case 0:u.buffer.set(i,u.buffer_curr),u.buffer_curr+=i.length,Zc(x);break;case 1:u.buffer.set(i,u.buffer_curr),u.buffer_curr+=i.length,u.buffer_curr>=u.buffer.length&&Zc(x);break;case 2:var o=i.lastIndexOf(10);o<0?(u.buffer.set(i,u.buffer_curr),u.buffer_curr+=i.length,u.buffer_curr>=u.buffer.length&&Zc(x)):(u.buffer.set(i.subarray(0,o+1),u.buffer_curr),u.buffer_curr+=o+1,Zc(x),u.buffer.set(i.subarray(o+1),u.buffer_curr),u.buffer_curr+=i.length-o-1);break}return 0}function ZC(x,r,e,t){return ZV(x,Vc(r),e,t)}function MK(x,r){var e=String.fromCharCode(r);return ZC(x,e,0,1),0}function Nl(x,r){return+(Dy(x,r,!1)!=0)}function $C(x,r){var e=new Array(r+1);e[0]=x;for(var t=1;t<=r;t++)e[t]=0;return e}function $V(x,r){return x[0]=Pv,x[1]=r,0}function Ov(x){return x instanceof Array&&x[0]==x[0]>>>0?x[0]:jC(x)||DC(x)?Ea:x instanceof Function||typeof x=="function"?J8:x&&x.caml_custom?B3:ul}function FV(x){for(var r;x;)if(nr(x[1][1])=="SYJS"){r=x[1][2];break}else x=x[2];var e={};if(r)for(var t=1;t=0?x=u:D2("caml_register_global: cannot locate "+t)}}M2[x+1]=r,e&&(M2[e]=r)}function FC(x,r){return RK[x]=r,0}function QV(x){return x[2]=AK++,x}function Nr(x,r){return x===r?1:0}function HV(){q1(iA)}function C1(x,r){return r>>>0>=Gx(x)&&HV(),ix(x,r)}function N(x,r){return 1-Nr(x,r)}function qV(){return 2147483647/4|0}var GV=p0.process&&p0.process.platform&&p0.process.platform==pD?hz:"Unix";function bV(){return[0,GV,32,0]}function xZ(){vK(M2.Not_found)}function DK(x){var r=sK(nr(x));return r===void 0&&xZ(),Mt(r)}function QC(x){for(var r=1;x&&x.joo_tramp;)x=x.joo_tramp.apply(null,x.joo_args),r++;return x}function y2(x,r){return{joo_tramp:x,joo_args:r}}function C0(x,r){if(typeof r=="function")return x.fun=r,0;if(r.fun)return x.fun=r.fun,0;for(var e=r.length;e--;)x[e]=r[e];return 0}function R1(x){{if(x instanceof Array)return x;var r;return p0.RangeError&&x instanceof p0.RangeError&&x.message&&x.message.match(/maximum call stack/i)||p0.InternalError&&x instanceof p0.InternalError&&x.message&&x.message.match(/too much recursion/i)?r=M2.Stack_overflow:x instanceof p0.Error&&_o(UE)?r=[0,_o(UE),x]:r=[0,M2.Failure,Mt(String(x))],x instanceof p0.Error&&(r.js_error=x),r}}function rZ(x){switch(x[2]){case-8:case-11:case-12:return 1;default:return 0}}function eZ(x){var r=wx;if(x[0]==0){if(r+=x[1][1],x.length==3&&x[2][0]==0&&rZ(x[1]))var t=x[2],e=1;else var e=2,t=x;r+=LU;for(var u=e;ue&&(r+=UM);var i=t[u];typeof i=="number"?r+=i.toString():i instanceof Ms||typeof i=="string"?r+=q8+i.toString()+q8:r+=ga}r+=JS}else x[0]==Qr&&(r+=x[1]);return r}function jK(x){if(x instanceof Array&&(x[0]==0||x[0]==Qr)){var r=_o(tM);if(r)Xy(r,[x,!1]);else{var e=eZ(x),t=_o(FM);if(t&&Xy(t,[0]),console.error(rC+e+` -`),x.js_error)throw x.js_error}}else throw x}function tZ(){var x=p0.process;x&&x.on?x.on("uncaughtException",function(r,e){jK(r),x.exit(2)}):p0.addEventListener&&p0.addEventListener("error",function(r){r.error&&jK(r.error)})}tZ();function l(x,r){return(x.l>=0?x.l:x.l=x.length)==1?x(r):Ds(x,[r])}function p(x,r,e){return(x.l>=0?x.l:x.l=x.length)==2?x(r,e):Ds(x,[r,e])}function G0(x,r,e,t){return(x.l>=0?x.l:x.l=x.length)==3?x(r,e,t):Ds(x,[r,e,t])}function oe(x,r,e,t,u){return(x.l>=0?x.l:x.l=x.length)==4?x(r,e,t,u):Ds(x,[r,e,t,u])}function Je(x,r,e,t,u,i){return(x.l>=0?x.l:x.l=x.length)==5?x(r,e,t,u,i):Ds(x,[r,e,t,u,i])}function nZ(x,r,e,t,u,i,f,o){return(x.l>=0?x.l:x.l=x.length)==7?x(r,e,t,u,i,f,o):Ds(x,[r,e,t,u,i,f,o])}var HC=[Qr,zz,-1],zK=[Qr,lz,-2],mn=[Qr,H_,-3],qC=[Qr,ez,-4],w2=[Qr,mD,-7],KK=[Qr,Pj,-8],JK=[Qr,lj,-9],Tr=[Qr,BU,-11],Il=[Qr,jj,-12],uZ=[4,0,0,0,[12,45,[4,0,0,0,0]]],GC=[0,[11,'File "',[2,0,[11,'", line ',[4,0,0,0,[11,fj,[4,0,0,0,[12,45,[4,0,0,0,[11,": ",[2,0,0]]]]]]]]]],'File "%s", line %d, characters %d-%d: %s'],Ja=[0,0,[0,0,0],[0,0,0]],Pl=[0,0,0,0,1,0,0,0],YK=[0,"first_leading","last_trailing"],BK=[0,hf,gf,ni,l7,Af,Ii,yu,uc,O7,zi,Nf,un,Ku,sc,Le,E7,Q7,rf,Bf,T7,ci,Xc,hc,Gn,uf,j7,ku,ji,Qi,Jc,B7,Tu,yi,bi,_i,fi,Ff,Xi,nu,s7,Bc,K7,Wu,mc,vi,tf,Wf,Wn,ic,oc,Fi,Ce,Re,Mu,lf,dc,Mi,y7,Pf,ju,Gf,sf,ec,Tf,_c,Ai,ce,Ri,qn,ff,Hi,_u,e7,Iu,Li,xf,kc,cc,gu,Uu,ef,p7,$n,_f,v7,zf,z7,Q1,pi,Zu,Zn,J7,o7,Cf,df,V7,xu,Ci,Ru,wu,iu,Vu,xc,F7,jn,nc,d7,Yn,R7,Qu,Fu,If,Gu,af,zn,ki,jc,Yi,lu,mi,ou,Su,It,k7,t7,_7,R2,di,eu,Du,c7,of,cu,jf,A7,F2,Hu,Qn,Mf,Di,uu,Wc,G7,au,F1,Ui,Ju,Sc,tc,x7,yf,du,xi,Mc,ui,C7,n7,q7,Vn,Zf,Vf,$i,qf,L7,Ou,Bn,Ni,P7,Kn,tu,qi,xr,u7,ii,Cu,yc,$u,i7,Cc,Nc,zu,Ac,Y7,mf,g7,Pi,Of,Yf,ru,Wi,Dc,nf,Oc,r7,ti,kf,ei,bf,si,H7,Qf,bn,Yu,Sf,pn,Pc,Au,D7,vc,wc,S7,X7,Lu,f7,a7,Oi,Nu,fc,$f,b7,Df,zc,mu,Uf,ac,su,je,pc,fu,Pu,pu,Zi,I7,Me,lc,Xu,N7,Tc,Ji,Bi,m7,Gi,Ke,Eu,Z7,Rf,pf,gc,Si,wf,ze,Kc,cf,Ki,hu,rc,Xn,Fn,hi,Kf,li,Rc,h7,Lc,ai,Jn,M7,Ti,Xf,Jf,$7,w7,U7,oi,Bu,Ec,Hn,W7,qu,Yc,Ei,L2,Lf,vf,ri,U2],kn=[0,0,0];Dt(11,Il,jj),Dt(10,Tr,BU),Dt(9,[Qr,SD,CM],SD),Dt(8,JK,lj),Dt(7,KK,Pj),Dt(6,w2,mD),Dt(5,[Qr,GM,-6],GM),Dt(4,[Qr,nM,-5],nM),Dt(3,qC,ez),Dt(2,mn,H_),Dt(1,zK,lz),Dt(0,HC,zz);var iZ="output_substring",fZ=Hf,cZ=Ts,sZ=As,oZ="CamlinternalLazy.Undefined",vZ=kz,aZ="\\'",lZ="\\b",pZ="\\t",yZ="\\n",dZ="\\r",mZ="List.iter2",kZ="tl",hZ="hd",_Z="String.blit / Bytes.blit_string",wZ="Bytes.blit",TZ="String.sub / Bytes.sub",SZ="Array.blit",EZ="Array.sub",AZ="Map.remove_min_elt",gZ=[0,0,0,0],NZ=[0,"map.ml",400,10],IZ=[0,0,0],PZ=K4,CZ=K4,RZ=K4,OZ=K4,LZ="Stdlib.Queue.Empty",UZ="Buffer.add_substring/add_subbytes",MZ="Buffer.add: cannot grow buffer",DZ=[0,bU,93,2],jZ=[0,bU,94,2],zZ="Buffer.sub",KZ="%c",JZ="%s",YZ=jU,BZ=mz,XZ=aD,WZ=Mz,VZ="%f",ZZ="%B",$Z="%{",FZ="%}",QZ="%(",HZ="%)",qZ=RD,GZ="%t",bZ="%?",x$="%r",r$="%_r",e$=[0,i2,850,23],t$=[0,i2,814,21],n$=[0,i2,815,21],u$=[0,i2,818,21],i$=[0,i2,819,21],f$=[0,i2,822,19],c$=[0,i2,823,19],s$=[0,i2,826,22],o$=[0,i2,827,22],v$=[0,i2,831,30],a$=[0,i2,832,30],l$=[0,i2,836,26],p$=[0,i2,837,26],y$=[0,i2,846,28],d$=[0,i2,847,28],m$=[0,i2,851,23],k$=[0,i2,1558,4],h$="Printf: bad conversion %[",_$=[0,i2,1626,39],w$=[0,i2,1649,31],T$=[0,i2,1650,31],S$="Printf: bad conversion %_",E$=Lj,A$=lD,g$=Lj,N$=lD,I$=[0,[11,"invalid box description ",[3,0,0]],"invalid box description %S"],P$=[0,0,4],C$=Dk,R$="neg_infinity",O$=wD,L$=Hf,U$=[0,tt],M$="%+nd",D$="% nd",j$="%+ni",z$="% ni",K$="%nx",J$="%#nx",Y$="%nX",B$="%#nX",X$="%no",W$="%#no",V$="%nd",Z$=aD,$$="%nu",F$="%+ld",Q$="% ld",H$="%+li",q$="% li",G$="%lx",b$="%#lx",xF="%lX",rF="%#lX",eF="%lo",tF="%#lo",nF="%ld",uF=mz,iF="%lu",fF="%+Ld",cF="% Ld",sF="%+Li",oF="% Li",vF="%Lx",aF="%#Lx",lF="%LX",pF="%#LX",yF="%Lo",dF="%#Lo",mF="%Ld",kF=Mz,hF="%Lu",_F="%+d",wF="% d",TF="%+i",SF="% i",EF="%x",AF="%#x",gF="%X",NF="%#X",IF="%o",PF="%#o",CF=hl,RF=jU,OF=GD,LF=oa,UF="@}",MF="@?",DF=`@ -`,jF="@.",zF="@@",KF="@%",JF=yD,YF="CamlinternalFormat.Type_mismatch",BF=wx,XF=[0,[11,UM,[2,0,[2,0,0]]],", %s%s"],WF=[0,[11,rC,[2,0,[12,10,0]]],pj],VF=[0,[11,"Fatal error in uncaught exception handler: exception ",[2,0,[12,10,0]]],`Fatal error in uncaught exception handler: exception %s -`],ZF="Fatal error: out of memory in uncaught exception handler",$F=[0,[11,rC,[2,0,[12,10,0]]],pj],FF=[0,[2,0,[12,10,0]],`%s -`],QF="Raised at",HF="Re-raised at",qF="Raised by primitive operation at",GF="Called from",bF=" (inlined)",xQ=wx,rQ=[0,[2,0,[12,32,[2,0,[11,' in file "',[2,0,[12,34,[2,0,[11,", line ",[4,0,0,0,[11,fj,uZ]]]]]]]]]],'%s %s in file "%s"%s, line %d, characters %d-%d'],eQ=[0,[2,0,[11," unknown location",0]],"%s unknown location"],tQ="Out of memory",nQ="Stack overflow",uQ="Pattern matching failed",iQ="Assertion failed",fQ="Undefined recursive module",cQ=[0,[12,40,[2,0,[2,0,[12,41,0]]]],"(%s%s)"],sQ=wx,oQ=wx,vQ=[0,[12,40,[2,0,[12,41,0]]],"(%s)"],aQ=[0,[4,0,0,0,0],hl],lQ=[0,[3,0,0],z3],pQ=ga,yQ=[0,wx,`(Cannot print locations: +var PN0=Object.create;var EM=Object.defineProperty;var NN0=Object.getOwnPropertyDescriptor;var CN0=Object.getOwnPropertyNames;var IN0=Object.getPrototypeOf,ON0=Object.prototype.hasOwnProperty;var jB=(p0,wx)=>()=>(wx||p0((wx={exports:{}}).exports,wx),wx.exports),JB=(p0,wx)=>{for(var rr in wx)EM(p0,rr,{get:wx[rr],enumerable:!0})},RN0=(p0,wx,rr,gr)=>{if(wx&&typeof wx=="object"||typeof wx=="function")for(let Z1 of CN0(wx))!ON0.call(p0,Z1)&&Z1!==rr&&EM(p0,Z1,{get:()=>wx[Z1],enumerable:!(gr=NN0(wx,Z1))||gr.enumerable});return p0};var XB=(p0,wx,rr)=>(rr=p0!=null?PN0(IN0(p0)):{},RN0(wx||!p0||!p0.__esModule?EM(rr,"default",{value:p0,enumerable:!0}):rr,p0));var YB=jB(gM=>{(function(p0){typeof globalThis!="object"&&(this?wx():(p0.defineProperty(p0.prototype,"_T_",{configurable:!0,get:wx}),_T_));function wx(){var rr=this||self;rr.globalThis=rr,delete p0.prototype._T_}})(Object);(function(p0){"use strict";var wx="symbol",rr=271,gr=126548,Z1="renders",ir=71127,ur="member_property",y1=65007,iv=66517,$1="jsx_attribute_value_expression",D3=119980,Yn="function_declaration",Ie="<2>",u9=68466,LM="%=",i9="??",f9=70080,I4="&",Ct="identifier",O4=72163,c9=71723,s9="properties",o9=183969,v9=68223,Vn="function_return_annotation",a9=124903,l9=70106,MM=241,DM="(",UM=213,p9=120074,d9=70708,y9=71679,zn="logical",u2="camlinternalFormat.ml",Kn="type_guard_annotation",m9=92975,jM=">>>",k9="RestElement",h9=67897,JM=179,_9="start",w9=113775,R4=126521,XM="%i",U3="`",YM="#",T9=43702,L4=126,S9=110947,Bn="function_identifier",M4=119893,E9=70366,g9=65547,A9=43743,P9=-43,fv=8238,VM=",",cv=8286,Wn="keyof_type",N9=66717,D4=12336,zM=201,C9=71338,U4=11565,I9=69289,O9=55291,R9=73030,L9=70479,M9=69572,D9=11623,Zn="tuple_spread_element",$n="component_type_rest_param",sv=8239,U9=64310,va="@]",j9=42993,j4=11558,J4="Map.bal",j3="public",KM=-32,aa="Literal",Fn="jsx_member_expression_identifier",Qn="for_in_assignment_pattern",J9=71450,X4=126557,fn=103,X9=12292,Y9=110579,Y4=120597,V9=13311,z9=12348,Gn="export_default_declaration_decl",qn="tuple_type",K9=113663,B9=170,W9=67413,BM="Assert_failure",WM="comments",J3="%S",cn=127343600,Z9=12341,$9=67646,ZM="ENOTEMPTY",F9=72160,Q9=70187,$M=222,G9=12343,FM=2147483647,q9=126624,H9=43442,b9=70312,xk=281,Hn="interface_type",ov="new",rk=66256,V4=68296,ek=124908,z4=126579,K4=70107,B4=249,tk=71167,bn="union_type",Gr=248,nk=126546,x7="enum_bigint_member",QM=133,uk=67871,ik=66955,GM=1027,r7="class_declaration",e7="optional_call",qM="a string",W4=11703,HM="<<",Z4=126564,t7="jsx_element",n7="object_property_type",fk=94207,u7="enum_declaration",ck=68023,sk=67669,ok=8318,bM="prefix",vv="this",vk=126578,i7="if_consequent_statement",xD=-696510241,ak=66963,av="default",$4=72967,It=101,rD="buffer.ml",lk=74649,sn=65535,pk=43709,dk=175,lo="component",eD="===",po=117,f7="jsx_identifier",tD="EnumDefaultedMember",F4=70006,yk=70161,mk=126633,kk=66965,c7="member_property_expression",hk=101589,_k=64274,la="function",wk=66303,Tk=42954,Sk=126529,Ek=72191,s7="new_",gk=64433,Q4=126559,Ak=72144,nD="==",yo=-744106340,Pk=43359,Nk=171,uD="Printexc.handle_uncaught_exception",Ck=66735,Ik=126534,Ok=74879,Rk=42785,G4=120629,X3="0o",iD="End_of_file",Lk=66175,fD="&=",Mk="nan",q4=126503,o7="pattern_number_literal",Dk=43470,v7="import_namespace_specifier",Uk=77711,H4=70302,a7="component_param",b4="@])",xp=126515,pa=118,Oe="continue",jk=43798,rp=";@ ",Jk=74751,Xk="src/parser/statement_parser.ml",Yk="rmdir",Vk=94177,l7="for_in_statement",cD=269,sD=12520,oD="TypeParameterInstantiation",kx="",vD="**=",zk=120126,aD=197,Kk=67829,ep="_bigarr02",p7="export_named_declaration_specifier",tp=": No such file or directory",np=64319,Bk=69926,d7="pattern_object_p",lD="TypeAnnotation",y7="array_type",Y3="@[%s =@ ",Wk=72847,m7="export_default_declaration",up=126590,Zk=42774,$k=": Not a directory",da="let",lv=12288,$2="argument",F2="/",ip="an identifier",Ts="typeof",fp=68116,Fk=182,k7="declare_export_declaration_decl",Qk=67589,Gk=66771,V3="class",pD="tokens",cp=70281,z3=255,qk=43638,dD=-983660142,pv="key",Hk=69955,yD=">>",h7="function_expression_or_method",bk=43587,on="block",xh=100351,sp="mixed",rh=66503,eh="ENOTDIR",th=65135,_7="string_literal",ce="@ ",nh=43334,w7="if_alternate_statement",uh=70448,op=8485,T7="type_args",ih=69864,S7="if_statement",mD="+=",E7="typeof_identifier",vp="with",ap=65595,fh=64286,ch=71086,Ss="true",sh=69423,g7="catch_clause",oh="e",ya="asserts",kD=">>=",vh=131,ah=43388,lh=43887,Y1=-48,ph=120779,hD=190,dh=194,A7="pattern_bigint_literal",yh=71351,mh=65629,P7="call",_D=-42,lp=126553,kh=43695,wD=177,hh=42124,_h=12703,wh=12442,Th=11718,pp=70449,dp=126547,Sh=67462,Es="left",N7="infer_type",Eh=11742,gh=65597,yp="Unix.Unix_error",Ah=122623,Ph=124911,Nh=72959,Ch="opaque",C7="object_internal_slot_property_type",TD="Enum `",SD=275,dv=65279,Ih=71983,Oh=12329,V1=110,I7="spread_property",ED="importKind",K3=" =",O7="remote_identifier",R7="labeled_statement",L7="jsx_fragment",Rh=120770,M7="function_param",L2=112,Lh="exportKind",D7="binary",gs="`.",Mh=42511,gD="<=",U7="jsx_spread_attribute",M2="import",j7="typeof_member_identifier",Dh=69414,Uh=19967,mp=11687,jh=93823,AD=209,Jh=71903,Xh="of",Yh=72e3,Vh="typeArguments",J7="type_identifier",X7="pattern_array_element_pattern",kp=69744,ma=192,Y7="class_element",V7="export_source",z7="component_param_pattern",zh=42508,Kh=125124,PD="Unexpected token `",K7="for_in_left_declaration",B7="object_call_property_type",Bh="abstract",Wh=8584,Zh=68786,$h=71999,hp=123214,Fh=123565,Qh=186,W7="class_implements_interface",_p=126536,Gh=69749,ND="Invalid legacy octal ",qh=71295,Hh=66927,Z7="pattern_expression",bh=11679,x_=-61,wp=65141,r_=11694,$7="update_expression",CD="minus",Re="debugger",e_=71352,t_=65470,ka="number",n_=123627,Tp=64322,Sp=43471,F7="for_of_assignment_pattern",Ep=126589,u_=43784,ID="Internal Error: Found object private prop",i_=183983,qr="id",f_=123190,gp="finally",Ap=120070,c_=72095,Q7="syntax",s_=110591,As="false",OD=-10,Pp="AssignmentPattern",G7="typeof_expression",o_=43764,RD="FunctionTypeParam",q7="function_body_any",v_=126627,a_=71998,l_=126543,H7="call_type_arg",p_=64316,Np=64285,d_=8454,y_=137,LD="**",b7="object_type_property_setter",m_=68607,vn=108,k_="out",h_=68799,yv=65278,xu="jsx_member_expression",__=92728,mv="null",w_=66431,T_=72249,an=128,Cp=119994,S_=66207,E_=43583,Ip="else",Op=94179,Rp=11735,g_=64911,ru="jsx_attribute_name_namespaced",MD="!",A_=42539,P_=72250,N_=71215,C_=69746,I_=65487,eu="pattern_object_property_key",DD=", ",O_=8505,R_="=",L_=64111,M_=8507,Lp=120134,Mp="while",D_=120596,U_=43002,B3="protected",j_=68479,J_=43395,X_=68252,UD="v",Y_=70278,V_="rendersType",z_=70853,Dp=120145,K_=69297,B_=73112,Up=8488,W_=68351,Z_=42655,tu="for_of_left_declaration",$_=44031,F_="Failure",Q_=92159,nu="object_key_identifier",jD=195,kv="bigint",uu="import_default_specifier",hv=256,iu="member",JD="!==",fu="component_identifier",G_=73008,q_=72283,jp=126500,Jp=120127,cu="jsx_attribute_name",su="for_statement_init",H_=67711,ou="private_name",Xp="case",Yp=8489,vu="import_specifier",b_=64279,xw=94098,XD=148,rw=119974,au="pattern_string_literal",ew=72969,YD=193,VD="!=",Vp=126520,tw=71944,zD=259,nw=42191,lu="generic_qualified_identifier_type",_v="implements",uw=194559,KD="%",W3="hasUnknownMembers",iw=71039,BD=211,fw=83526,pu="init",du="jsx_attribute_value",cw=70271,ha=240,yu="function_type_return_annotation",sw=70018,ow="rest",mu="readonly_type",vw=512,aw=68095,lw=120003,zp=126563,Kp=71236,pw=69375,dw=68850,yw=70105,mw=43866,Bp=888960333,kw=43013,ku="assignment_pattern",hw="specifiers",WD=710,ZD=145,ln="as",_w=120570,ww=11507,$D=204,hu="jsx_element_name_identifier",_u="pattern_object_property_string_literal_key",wu="class_expression",FD=257,Tw=44002,Sw=82943,_a="src/parser/type_parser.ml",wa="test",QD=-67,Ew=64217,Wp="package",GD="collect_comments",qD="Pervasives.do_at_exit",gw=125183,Aw=42606,Tu="tuple_element",Su="enum_boolean_member",Pw=65312,Zp=119981,Nw=65495,$p=120085,HD=-80,bD=138,Fp=126555,Cw=65276,m1=128,xU="{ ",Eu="for_statement",gu="class_method",Qp="if",Au="generic_type",Rr=113,Iw=43071,Ow=72001,Rw=71131,Lw=70002,Mw=42888,Gp=8469,Z3="instanceof",Dw=11502,qp=94178,Uw=64321,jw=64913,rU="Division_by_zero",Jw=92879,Xw=71945,Yw=185,Vw=66938,Hp=65535,zw=113800,eU=": file descriptor already closed",bp=223,tU="*=",Kw=68899,Pu="switch_case",Nu="pattern_array_element",Cu="enum_string_member",Iu="pattern_object_property_bigint_literal_key",nU="visit_trailing_comment",x8="export",r8=120122,e8=43823,Bw=43792,Ww=42527,Zw=70726,Ou="enum_defaulted_member",$w=68497,t8=72349,Ru="program",Lu="member_type_identifier",Fw="object",Mu="for_of_statement_lhs",Qw=113791,Gw=67391,Du="jsx_spread_child",n8=126554,u8=8526,i8=43880,f8=69415,qw=43822,Uu="pattern_identifier",Hw=93052,Ta="readonly",Le="name",bw=68119,xT=71494,rT=120121,c8=8486,uU=2047,ju="enum_symbol_body",iU=142,fU="PropertyDefinition",eT=177976,Ju="declare_class",tT=65489,nT=72367,uT=70440,Xu="import_named_specifier",cU="Popping lex mode from empty stack",iT=68111,fT=66463,sU="*-/",cT=43187,s8=8487,sT=11567,oT=67861,vT=` +`,aT=66383,Yu="declare_interface",lT=-24976191,pT=238,dT=-24,oU="@ }@]",yT=43645,vU=176,mT=119976,o8=69959,kT=126519,hT=";",aU="trailingComments",v8=65548,Vu="number_literal",Sa=449540197,_T=43704,a8=126584,wT=8467,lU="||",l8=11695,TT="exported",ST=120712,Ps="void",pU="mixins",ET=92783,gT=215,zu="body_expression",dU="%ni",$3=">",Ku="jsx_child",AT=8516,Bu="optional_indexed_access_type",Wu="typeof_type",Zu="spread_element",PT=42963,yU="@[",$u="component_params",NT=43042,p8="",Fu="function_",d8="for",y8=65575,pn="params",CT=168,mU="win32",wv=8202,kU="@",m8="^",IT=164,nt="optional",OT=65574,F3="boolean",hU=139,RT=12548,k8=120539,_U="Not_found",h8=246,Qu="expression_statement",LT="EBADF",MT=66815,Gu="module_ref_literal",DT=55203,qu="function_param_type",UT=73064,_8=70279,jT=110580,wU=233,JT="<",TU="visit_leading_comment",XT=66855,YT=66966,VT=66499,zT=111355,KT=68680,BT=206,SU="--",WT=65497,w8=11711,Hu="function_param_pattern",Tv="constructor",ZT=5760,EU="infinity",T8=43642,fC0="fs",$T=92991,S8=126544,FT=101640,E8=72162,QT=67583,g8=8468,D2="typeParameters",gU="elements",GT=71423,AU="Sys_blocked_io",bu="interface_declaration",xi="variable_declaration",ri="function_rest_param",ei="type",qT="Invalid number ",HT=" : flags Open_rdonly and Open_wronly are not compatible",bT=69404,ti="jsx_element_name_member_expression",A8="keyof",PU=285,P8="never",ni="with_",dn=32768,NU="|=",N8=70404,C8=70441,xS=42969,Q3="declare",rS=73061,ui="object_type",ii="object_property_value_type",eS=69687,CU="Invalid binary/octal ",IU=230,tS=64324,OU="range",RU="infer",nS=120744,fi="array_element",uS=70730,iS=43641,LU=166,fS=70461,cS=69890,sS=69487,oS=74862,vS=68149,I8=73065,MU="%a",aS=72348,DU=172,ci="jsx_expression",lS=65663,pS=126495,dS=245,yS=124907,si="member_property_identifier",UU=226,mS=43615,oi="comment",O8=119965,vi="catch_clause_pattern",ai="object_type_property_getter",jU=136,kS=43019,hS=67455,R8=126628,JU=331416730,XU="the start of a statement",_S=122654,wS="shorthand",TS=43595,SS=11710,li="typeof_qualified_identifier",ES=72750,YU="elementType",i2="typeAnnotation",gS=124895,VU=162,L8=11559,AS=67382,zU="??=",PS=72329,NS="target",pi="component_type",KU=180,CS=189,BU=8206,IS=43513,OS=173823,RS=126467,di="type_guard",LS=43700,MS=12783,M8=8305,yi="type_annotation",WU=141,Me="break",D8=42999,DS=65019,US=160,jS=70460,mi="expression_or_spread",JS=")",ki="class_private_field",XS=55215,YS=65338,VS=40981,G3="members",hi="import_declaration",zS=69634,U8=94031,KS="ENOENT",BS=8457,ZU="satisfies",_i="generic_identifier_type",wi="function_this_param",WS=66993,Ti="type_",ZS=67423,$S=11557,FS=12799,QS=239,GS=93026,qS=66377,HS=123180,$U=221,FU=-594953737,bS=67967,xE=43586,De=105,QU="src/parser/flow_lexer.ml",rE=66559,Si="class_property_value",eE=67637,GU="closedir",tE=43010,nE=8521,j8=69956,uE=42959,iE=212,fE=92735,J8="}",q3="method",cE=11498,X8=247,se="empty",Ei=16777215,qU=161,sE=42887,Ns=116,gi="type_identifier_reference",Y8=126634,oE=68029,HU="regexp",vE=70414,H3=121,Ai="template_literal_element",aE=8449,lE=126562,Sv=12287,pE=-45,V8=64297,z8=126523,dE=43301,Ot=111,yE=126498,mE=43776,bU="EEXIST",kE=119892,hE=43807,xj=4096,Ea=252,Cs=255,_E=68295,Pi="variable_declarator_pattern",Ni="do_while",K8="catch",wE=66962,TE=120654,Ci=125,Ii="label_identifier",SE=11263,EE=8525,Oi="assignment",gE=191456,AE=43273,rj="%u",PE=65381,NE=110927,CE=65479,IE=120538,Ev="await",OE=71487,RE="jsError",LE=110588,ME=120084,DE=42890,ga=224,Ri="object_key",UE=43696,jE=73647,JE=43761,XE=12295,YE=64967,B8=11647,ej=191,Rt=123,VE="generator",zE=123583,Li="for_of_statement",Mi="enum_bigint_body",KE=110959,BE=92995,WE=120686,ZE="b",$E=119969,W8=126522,Z8=64318,FE=71839,$8=126602,QE=65908,b3=65536,tj=231,nj=-602162310,uj="comment_bounds",Lt="-",ij=-55,Di="pattern_object_property",GE=43493,qE=69505,HE=8471,bE=187,F8=120745,Ui="enum_member_identifier",xg=71959,rg=66863,eg=65594,Q8=253,G8='"',q8=70286,ji="jsx_attribute_value_literal",tg=68447,fj="the",ng="index out of bounds",Ji="declare_export_declaration",Xi="jsx_attribute",Yi="class_extends",Hr=122,l2=106,Vi="binding_pattern",zi="ts_type_cast",ug=113807,ig=93951,xl=119,fg="types",cg=8335,Ki="statement_fork_point",Aa="_",sg=65500,Bi="function_type",og=68220,Wi="statement_list",Pa=-835925911,vg=123535,H8=43815,ag=199,b8=120571,lg=67514,cj="Property",x5=72713,sj="Unexpected ",r5=169,oj=", characters ",e5=43867,pg=42537,Zi="component_declaration",vj=" : is a directory",$i="object_key_number_literal",Yr=127,f2=-36,rl=912068366,el="delete",ut=114,dg=120076,Fi="regexp_literal",yg=65370,mg=65481,v1="value",kg=68405,tl="operator",nl="const",aj=283,Is=109,t5="any",hg=69958,_g=70831,wg=73111,Tg=72767,Sg="Identifier",Qi="jsx_opening_attribute",Gi="conditional_type",Eg="loc",gg=67071,n5=120004,Ag=43492,Pg=70005,lj=188,u5=72272,Ng=11389,pj=251,Cg=73055,i5=70280,dj=286,f5=1114111,Ig=66421,yj="Stack_overflow",Og=70301,Rg=19903,mo="0x",Lg=69967,Mg=12447,c5=66512,mj=`Fatal error: exception %s +`,ul=1e3,Dg=69295,s5=120093,kj=">=",hj=149,o5=64325,qi="class_identifier",Ug=119967,jg=68415,_j="end",Hi="enum_boolean_body",bi="member_private_name",xf="super_expression",Jg=71955,Xg=126514,v5=67593,Yg=66939,Vg=12591,a5=126538,zg=110590,Kg=72703,Bg=72105,l5=65598,Wg=73727,p5=126504,d5=126551,Zg=70143,il="from",rf="class_property",ef="enum_number_body",$g=42559,Fg=93759,Qg=66994,yn="right",wj=225,Gg=67702,qg=65473,Hg=43697,y5=70855,bg=119993,xA=72103,rA=178205,tf="call_type_args",eA=66511,nf="export_batch_specifier",uf="component_type_param",mn=782176664,gv="get",fl="local",Tj=228,ff="object_mapped_type_property",cf="class_decorator",Sj=220,sf="enum_body",Ej="<<=",tA=71956,nA=69839,Na="super",uA=173791,iA=71942,F1="expression",fA=72440,Ca=254,cA=70412,of="try_catch",gj=32752,vf="declare_module_exports",sA=12320,Aj=134,oA=94175,cl="enum",Pj=196,af="import_source",vA=43814,aA=120069,lf="while_",m5=126537,lA=43262,pf="function_rest_param_type",pA=66378,k5=119996,df="declare_component",dA=73097,yA=70783,mA=43503,kA=131071,hA=11492,_A=92766,Nj=173,wA=113770,TA=73029,SA=66978,yf="tagged_template",mf="jsx_element_name",kf="for_init_declaration",EA=123213,hf="object_indexer_property_type",_f="object_spread_property_type",h5=72970,_5=70854,gA=110930,sl="var",Cj=217,AA=119972,PA=69622,NA=63743,CA=42237,IA=870530776,w5="returnType",Ij=56320,Oj=143,Ia="computed",OA=42735,wf="arg_list",RA=67461,Tf="export_named_declaration",LA=72817,MA=73439,DA=43782,UA=66775,jA=70655,T5="bool",JA=65140,XA=75075,YA=126651,VA=71947,zA=42961,KA=12735,BA=78894,WA=64262,ZA=237,Q2="interface",Rj="Match_failure",$A=42962,FA=69748,Lj="leadingComments",Sf="this_expression",ol=461894857,S5=12592,Mj=8204,QA=119807,GA=66348,Ef="declare_variable",qA=8348,gf="optional_member",Af=120,Pf="arrow_function",HA=72768,bA=70851,Nf="array",xP=43249,E5=126468,rP=177983,eP="compare: functional value",tP=126550,nP=64847,Cf="binding_type_identifier",uP=120132,If="function_params",iP=93071,vl=1024,fP=42783,Dj=1039100673,Uj="@{",cP=12352,sP=42653,oP=120628,jj=264,Of="declare_function",Rf="for_in_statement_lhs",vP=72271,aP=69807,lP=67826,Lf="syntax_opt",Mf="object_key_bigint_literal",Jj=243,pP=94032,Xj=265,Yj="Undefined_recursive_module",Vj=-1053382366,dP=72242,Df="variance_opt",yP=101631,mP="arguments",kP=72161,hP=8511,g5="unknown",_P=43560,zj="the end of an expression statement (`;`)",Kj=1026,wP=12543,TP=11670,Bj="?",SP=69247,A5=11631,P5="line",EP=72202,Uf="pattern_object_rest_property",Mt=" ",gP=43487,Os=115,AP=-673950933,jf="intersection_type",PP=120144,al="is",NP=178207,CP=100343,Wj="||=",Zj="f",N5=8455,Jf=102,Xf="pattern_object_property_number_literal_key",IP=70418,OP=8543,$j="Internal Error: Found private field in object props",C5=126540,I5=119995,Av=8287,Yf="indexed_access_type",Vf="export_named_specifier",Fj=224,RP=124926,LP=-103,MP=167,O5=65344,R5=126530,DP=113788,UP=67505,jP="property",JP=43014,Ue="return",ko=-85,XP=126601,Qj=214,Gj="children",zf="type_alias",L5=43259,YP=126583,VP=71958,zP=65613,KP=67431,M5=126535,BP=69599,Kf="type_params",Bf="object_key_computed",WP=124910,U2="variance",D5=11727,ZP=66954,$P=126463,Wf="catch_body",FP=69445,Zf="type_param",$f="component_type_params",QP=124902,U5=120687,qj="collect_comments_opt",GP=15,qP=120485,HP=70416,bP=125259,Ff="jsx_namespaced_name",xN=43712,rN=72712,Hj="~",j5=12448,Qf="jsx_member_expression_object",J5=126499,X5=-97,Gf="pattern_object_property_identifier_key",bj=219,qf="component_body",Hf="opaque_type",bf=".",eN=43009,tN="consequent",xJ="SpreadElement",D1="body",rJ=178,eJ=202,xc="jsx_opening_element",rc="declare_module",Y5=67638,nN=8477,ec="object_type_property",uN=110882,tc="function_body",iN=94111,tJ="module",nJ="alternate",fN=67839,Pv=8191,cN=43881,uJ=": closedir failed",ho="kind",nc="tuple_labeled_element",Nv=-46,sN=67640,uc="declare_type_alias",V5=70750,oN=77808,ll="column",ic="jsx_closing_element",vN=66977,aN="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",lN=65786,fc="function_expression",Dt=104,z5=11719,pN=11505,dN="mkdir",yN=70319,iJ="Invalid_argument",mN=43738,kN=113817,cc="bigint_literal",hN=70084,fJ=278,_N=126566,K5="do",B5=42622,sc="computed_key",oc="pattern_object_property_computed_key",cJ="fd ",W5=126571,wN=126619,sJ=140,_o="prototype",oJ=208,TN=67004,vJ=130,aJ=242,lJ=">>>=",SN=68863,EN=11726,Ut="raw",gN=64466,G2=107,AN=67679,vc="enum_string_body",Z5=244,pJ="unreachable jsxtext",dJ="*",PN=66335,NN=126570,yJ=229,CN=" : file already exists",IN=184,ON=67807,RN=70753,ac="boolean_literal",LN=65437,MN=70451,DN=67002,Oa=124,lc="conditional",$5=43260,mJ="Sys_error",UN=123135,pl="meta",jN=64109,pc="pattern_array_rest_element",JN=43255,F5=67644,dc="pattern_object_rest_property_pattern",yc="sequence",XN=65855,YN=110951,VN=67643,mc="predicate_expression",je="static",zN=120512,KN="declaration",Q5=64317,BN=68437,G5=126558,kc="meta_property",WN=11564,hc="declare_enum",kn="pattern",ZN=216,$N=68191,q5="undefined",H5=8319,b5=120133,kJ=132,FN=42239,hJ=-99,QN=124927,GN=120092,qN=43137,_c="component_rest_param",_J=144,wJ="expected *",HN=125251,TJ="%li",bN=55242,xC=12294,wc="enum_number_member",wo="in",SJ="\\\\",Cv=":",rC=68115,EJ="Cygwin",eC=77823,tC=65615,xd=70162,gJ="/static/",nC=11519,uC=72966,iC=12686,AJ=165,rd=183,dl=129,ed=72192,fC=42964,td="try",nd=120655,cC=11702,PJ="expressions",sC=2048,Tc="class_body",oC=55238,NJ=240,vC=66915,aC=43311,lC=43018,CJ=235,pC=73648,IJ="([^/]+)",dC=125258,yC=64829,mC=68735,OJ="++",RJ=163,LJ="qualification",MJ=57343,DJ=931,Sc="default_opt",kC=71235,UJ=8472,hC=71934,jJ=205,JJ=218,XJ="callee",_C=43711,wC=64284,TC=43754,SC=43790,YJ="%Li",Ec="pattern_array_rest_element_pattern",ud="decorators",EC=8304,gc="statement",id=73062,Ac="jsx_children",gC=70492,AC=64255,PC=11630,NC=1255,fd=67592,cd=43519,sd=64311,od=12539,CC="proto",vd=120513,IC=68031,Iv="source",yl="a",OC=93047,RC=92927,LC=126588,MC=73458,DC=67742,UC=43714,VJ=236,jC=-253313196,ml="label",zJ="@[<2>{ ",ad=126539,ld=126552,JC=120487,KJ="Out_of_memory",XC=605857695,YC=94026,pd=126496,To="async",BJ=203,dd=126560,VC=68287,Pc="unary_expression",zC=-26065557,KC=110587,WJ=280,yd=120771,BC=69762,WC=126502,Ra="set",Nc="object_",Cc="template_literal",ZC=43258,Ic="nullable_type",Rs="int_of_string",ZJ="^=",Je="predicate",La="string",md=8450,$J="camlinternalMod.ml",$C=70285,Ls="+",FC=110575,FJ=198,Oc="extends",QJ=-692038429,kd=67827,GJ=210,qJ=227,hd="explicitType",_d=70452,QC=70497,Ma=63,kl="private",GC=64296,qC=67591,HC=92909,HJ="T_JSX_TEXT",bC="Fatal error: exception ",xI=120137,wd=68120,Rc="pattern_array_e",rI=119964,eI=92862,tI=66461,bJ="&&=",xX=174,c2=8231,Lc="null_literal",rX="/=",nI=66811,Td=70108,uI=67504,iI=11686,fI=67001,cI=" : flags Open_text and Open_binary are not compatible",sI=43741,oI=66204,Q1=8233,Mc="type_annotation_hint",vI=123197,Dc="object_property",eX="${",Sd=70480,tX="&&",Uc="type_cast",hl="%d",Ed=8484,nX=207,aI=70066,lI=68324,gd=120713,uX=135,Ad=126556,q2="0",j2="yield",Pd=126591,it=100,pI=69551,jc="jsx_element_name_namespaced",iX=232,Jc="object_key_string_literal",Xc="function_this_param_type",Yc="pattern_object_property_pattern",Xe="throw",Ye="switch",fX=2048,Nd=119970,Vc="toplevel_statement_list",Ov=250,dI=12438,zc="class_implements",Kc="variable_declarator",yI=43713,Cd=68096,mI=70457,kI=12538,hI=11734,cX="-=",sX=234,Bc="component_param_name",_I=43123,Wc="class_",oX="|",vX=200,wI=43518,TI=8483,Zc="jsx_attribute_name_identifier",SI=181;function fW(x,r,e,t,u){if(t<=r)for(var i=1;i<=u;i++)e[t+i]=x[r+i];else for(var i=u;i>=1;i--)e[t+i]=x[r+i];return 0}function cW(x){for(var r=[0];x!==0;){for(var e=x[1],t=1;t=e.l||e.t==2&&u>=e.c.length))e.c=x.t==4?Id(x.c,r,u):r==0&&x.c.length==u?x.c:x.c.substr(r,u),e.t=e.c.length==e.l?0:2;else if(e.t==2&&t==e.c.length)e.c+=x.t==4?Id(x.c,r,u):r==0&&x.c.length==u?x.c:x.c.substr(r,u),e.t=e.c.length==e.l?0:2;else{e.t!=4&&Od(e);var i=x.c,f=e.c;if(x.t==4)if(t<=r)for(var o=0;o=0;o--)f[t+o]=i[r+o];else{for(var l=Math.min(u,i.length-r),o=0;o>=1,x==0)return e;r+=r,t++,t==9&&r.slice(0,1)}}function Rd(x){x.t==2?x.c+=Da(x.l-x.c.length,"\0"):x.c=Id(x.c,0,x.c.length),x.t=0}function EI(x){if(x.length<24){for(var r=0;rYr)return!1;return!0}else return!/[^\x00-\x7f]/.test(x)}function aX(x){for(var r=kx,e=kx,t,u,i,f,o=0,l=x.length;ovw?(e.substr(0,1),r+=e,e=kx,r+=x.slice(o,d)):e+=x.slice(o,d),d==l)break;o=d}f=1,++o=55295&&f<57344)&&(f=2)):(f=3,++o1114111)&&(f=3)))))),f<4?(o-=f,e+="\uFFFD"):f>sn?e+=String.fromCharCode(55232+(f>>10),Ij+(f&1023)):e+=String.fromCharCode(f),e.length>vl&&(e.substr(0,1),r+=e,e=kx)}return r+e}function Ds(x,r,e){this.t=x,this.c=r,this.l=e}Ds.prototype.toString=function(){switch(this.t){case 9:return this.c;default:Rd(this);case 0:if(EI(this.c))return this.t=9,this.c;this.t=8;case 8:return this.c}},Ds.prototype.toUtf16=function(){var x=this.toString();return this.t==9?x:aX(x)},Ds.prototype.slice=function(){var x=this.t==4?this.c.slice():this.c;return new Ds(this.t,x,this.l)};function lX(x){return new Ds(0,x,x.length)}function cC0(x){return x}function $c(x){return lX(x)}function Fc(x,r,e,t,u){return Ms($c(x),r,e,t,u),0}function pX(x){var r=p0.process;if(r&&r.env&&r.env[x]!=null)return r.env[x];if(p0.jsoo_static_env&&p0.jsoo_static_env[x])return p0.jsoo_static_env[x]}var gI=0;(function(){var x=pX("OCAMLRUNPARAM");if(x!==void 0)for(var r=x.split(VM),e=0;e>>0>=x.l&&aW(),Kr(x,r,e)}function oe(x,r){switch(x.t&6){default:if(r>=x.c.length)return 0;case 0:return x.c.charCodeAt(r);case 4:return x.c[r]}}function Us(x,r){var e=x.l>=0?x.l:x.l=x.length,t=r.length,u=e-t;if(u==0)return x.apply(null,r);if(u<0){var i=x.apply(null,r.slice(0,e));return typeof i!="function"?i:Us(i,r.slice(e))}else{switch(u){case 1:{var i=function(l){for(var d=new Array(t+1),k=0;k>>0>=x.length-1&&_l(),x}function lW(x){return isFinite(x)?Math.abs(x)>=22250738585072014e-324?0:x!=0?1:2:isNaN(x)?4:3}function pW(x){return 0}var dW=Math.log2&&Math.log2(11235582092889474e291)==1020;function yW(x){if(dW)return Math.floor(Math.log2(x));var r=0;if(x==0)return-1/0;if(x>=1)for(;x>=2;)x/=2,r++;else for(;x<1;)x*=2,r--;return r}function PI(x){var r=new Float32Array(1);r[0]=x;var e=new Int32Array(r.buffer);return e[0]|0}var dX=Math.pow(2,-24);function yX(x){throw x}function mX(){yX(J2.Division_by_zero)}function fr(x,r,e){this.lo=x&Ei,this.mi=r&Ei,this.hi=e&sn}fr.prototype.caml_custom="_j",fr.prototype.copy=function(){return new fr(this.lo,this.mi,this.hi)},fr.prototype.ucompare=function(x){return this.hi>x.hi?1:this.hix.mi?1:this.mix.lo?1:this.loe?1:rx.mi?1:this.mix.lo?1:this.lo>24),e=-this.hi+(r>>24);return new fr(x,r,e)},fr.prototype.add=function(x){var r=this.lo+x.lo,e=this.mi+x.mi+(r>>24),t=this.hi+x.hi+(e>>24);return new fr(r,e,t)},fr.prototype.sub=function(x){var r=this.lo-x.lo,e=this.mi-x.mi+(r>>24),t=this.hi-x.hi+(e>>24);return new fr(r,e,t)},fr.prototype.mul=function(x){var r=this.lo*x.lo,e=(r*dX|0)+this.mi*x.lo+this.lo*x.mi,t=(e*dX|0)+this.hi*x.lo+this.mi*x.mi+this.lo*x.hi;return new fr(r,e,t)},fr.prototype.isZero=function(){return(this.lo|this.mi|this.hi)==0},fr.prototype.isNeg=function(){return this.hi<<16<0},fr.prototype.and=function(x){return new fr(this.lo&x.lo,this.mi&x.mi,this.hi&x.hi)},fr.prototype.or=function(x){return new fr(this.lo|x.lo,this.mi|x.mi,this.hi|x.hi)},fr.prototype.xor=function(x){return new fr(this.lo^x.lo,this.mi^x.mi,this.hi^x.hi)},fr.prototype.shift_left=function(x){return x=x&63,x==0?this:x<24?new fr(this.lo<>24-x,this.hi<>24-x):x<48?new fr(0,this.lo<>48-x):new fr(0,0,this.lo<>x|this.mi<<24-x,this.mi>>x|this.hi<<24-x,this.hi>>x):x<48?new fr(this.mi>>x-24|this.hi<<48-x,this.hi>>x-24,0):new fr(this.hi>>x-48,0,0)},fr.prototype.shift_right=function(x){if(x=x&63,x==0)return this;var r=this.hi<<16>>16;if(x<24)return new fr(this.lo>>x|this.mi<<24-x,this.mi>>x|r<<24-x,this.hi<<16>>x>>>16);var e=this.hi<<16>>31;return x<48?new fr(this.mi>>x-24|this.hi<<48-x,this.hi<<16>>x-24>>16,e&sn):new fr(this.hi<<16>>x-32,e,e)},fr.prototype.lsl1=function(){this.hi=this.hi<<1|this.mi>>23,this.mi=(this.mi<<1|this.lo>>23)&Ei,this.lo=this.lo<<1&Ei},fr.prototype.lsr1=function(){this.lo=(this.lo>>>1|this.mi<<23)&Ei,this.mi=(this.mi>>>1|this.hi<<23)&Ei,this.hi=this.hi>>>1},fr.prototype.udivmod=function(x){for(var r=0,e=this.copy(),t=x.copy(),u=new fr(0,0,0);e.ucompare(t)>0;)r++,t.lsl1();for(;r>=0;)r--,u.lsl1(),e.ucompare(t)>=0&&(u.lo++,e=e.sub(t)),t.lsr1();return{quotient:u,modulus:e}},fr.prototype.div=function(x){var r=this;x.isZero()&&mX();var e=r.hi^x.hi;r.hi&dn&&(r=r.neg()),x.hi&dn&&(x=x.neg());var t=r.udivmod(x).quotient;return e&dn&&(t=t.neg()),t},fr.prototype.mod=function(x){var r=this;x.isZero()&&mX();var e=r.hi;r.hi&dn&&(r=r.neg()),x.hi&dn&&(x=x.neg());var t=r.udivmod(x).modulus;return e&dn&&(t=t.neg()),t},fr.prototype.toInt=function(){return this.lo|this.mi<<24},fr.prototype.toFloat=function(){return(this.hi<<16)*Math.pow(2,32)+this.mi*Math.pow(2,24)+this.lo},fr.prototype.toArray=function(){return[this.hi>>8,this.hi&Cs,this.mi>>16,this.mi>>8&Cs,this.mi&Cs,this.lo>>16,this.lo>>8&Cs,this.lo&Cs]},fr.prototype.lo32=function(){return this.lo|(this.mi&Cs)<<24},fr.prototype.hi32=function(){return this.mi>>>8&sn|this.hi<<16};function Ld(x,r,e){return new fr(x,r,e)}function Md(x){if(!isFinite(x))return isNaN(x)?Ld(1,0,gj):x>0?Ld(0,0,gj):Ld(0,0,65520);var r=x==0&&1/x==-1/0?dn:x>=0?0:dn;r&&(x=-x);var e=yW(x)+1023;e<=0?(e=0,x/=Math.pow(2,-Kj)):(x/=Math.pow(2,e-GM),x<16&&(x*=2,e-=1),e==0&&(x/=2));var t=Math.pow(2,24),u=x|0;x=(x-u)*t;var i=x|0;x=(x-i)*t;var f=x|0;return u=u&GP|r|e<<4,Ld(f,i,u)}function wl(x){return x.toArray()}function kX(x,r,e){if(x.write(32,r.dims.length),x.write(32,r.kind|r.layout<<8),r.caml_custom==ep)for(var t=0;t>4;if(u==uU)return r|e|t&GP?NaN:t&dn?-1/0:1/0;var i=Math.pow(2,-24),f=(r*i+e)*i+(t&GP);return u>0?(f+=16,f*=Math.pow(2,u-GM)):f*=Math.pow(2,-Kj),t&dn&&(f=-f),f}function II(x){for(var r=x.length,e=1,t=0;t>>24&Cs|(r&sn)<<8,r>>>16&sn)}function OI(x){return x.hi32()}function RI(x){return x.lo32()}var hW=ep;function So(x,r,e,t){this.kind=x,this.layout=r,this.dims=e,this.data=t}So.prototype.caml_custom=hW,So.prototype.offset=function(x){var r=0;if(typeof x=="number"&&(x=[x]),x instanceof Array||G1("bigarray.js: invalid offset"),this.dims.length!=x.length&&G1("Bigarray.get/set: bad number of dimensions"),this.layout==0)for(var e=0;e=this.dims[e])&&_l(),r=r*this.dims[e]+x[e];else for(var e=this.dims.length-1;e>=0;e--)(x[e]<1||x[e]>this.dims[e])&&_l(),r=r*this.dims[e]+(x[e]-1);return r},So.prototype.get=function(x){switch(this.kind){case 7:var r=this.data[x*2+0],e=this.data[x*2+1];return kW(r,e);case 10:case 11:var t=this.data[x*2+0],u=this.data[x*2+1];return[Ca,t,u];default:return this.data[x]}},So.prototype.set=function(x,r){switch(this.kind){case 7:this.data[x*2+0]=RI(r),this.data[x*2+1]=OI(r);break;case 10:case 11:this.data[x*2+0]=r[1],this.data[x*2+1]=r[2];break;default:this.data[x]=r;break}return 0},So.prototype.fill=function(x){switch(this.kind){case 7:var r=RI(x),e=OI(x);if(r==e)this.data.fill(r);else for(var t=0;tf)return 1;if(i!=f){if(!r)return NaN;if(i==i)return 1;if(f==f)return-1}}break;case 7:for(var u=0;ux.data[u+1])return 1;if(this.data[u]>>>0>>0)return-1;if(this.data[u]>>>0>x.data[u]>>>0)return 1}break;case 2:case 3:case 4:case 5:case 6:case 8:case 9:case 12:for(var u=0;ux.data[u])return 1}break}return 0};function ja(x,r,e,t){this.kind=x,this.layout=r,this.dims=e,this.data=t}ja.prototype=new So,ja.prototype.offset=function(x){return typeof x!="number"&&(x instanceof Array&&x.length==1?x=x[0]:G1("Ml_Bigarray_c_1_1.offset")),(x<0||x>=this.dims[0])&&_l(),x},ja.prototype.get=function(x){return this.data[x]},ja.prototype.set=function(x,r){return this.data[x]=r,0},ja.prototype.fill=function(x){return this.data.fill(x),0};function _X(x,r,e,t){var u=hX(x);return II(e)*u!=t.length&&G1("length doesn't match dims"),r==0&&e.length==1&&u==1?new ja(x,r,e,t):new So(x,r,e,t)}function X2(x){J2.Failure||(J2.Failure=[Gr,F_,-3]),AI(J2.Failure,x)}function wX(x,r,e){var t=x.read32s();(t<0||t>16)&&X2("input_value: wrong number of bigarray dimensions");var u=x.read32s(),i=u&Cs,f=u>>8&1,o=[];if(e==ep)for(var l=0;l>>32-15,r=SX(r,461845907),x^=r,x=x<<13|x>>>32-13,(x+(x<<2)|0)+-430675100|0}function _W(x,r){return x=js(x,RI(r)),x=js(x,OI(r)),x}function EX(x,r){return _W(x,Md(r))}function gX(x){var r=II(x.dims),e=0;switch(x.kind){case 2:case 3:case 12:r>hv&&(r=hv);var t=0,u=0;for(u=0;u+4<=x.data.length;u+=4)t=x.data[u+0]|x.data[u+1]<<8|x.data[u+2]<<16|x.data[u+3]<<24,e=js(e,t);switch(t=0,r&3){case 3:t=x.data[u+2]<<16;case 2:t|=x.data[u+1]<<8;case 1:t|=x.data[u+0],e=js(e,t)}break;case 4:case 5:r>m1&&(r=m1);var t=0,u=0;for(u=0;u+2<=x.data.length;u+=2)t=x.data[u+0]|x.data[u+1]<<16,e=js(e,t);r&1&&(e=js(e,x.data[u]));break;case 6:r>64&&(r=64);for(var u=0;u64&&(r=64);for(var u=0;u32&&(r=32),r*=2;for(var u=0;u64&&(r=64);for(var u=0;u32&&(r=32);for(var u=0;u0?u(r,x,t):u(x,r,t);if(t&&i!=i)return e;if(+i!=+i)return+i;if(i|0)return i|0}return e}function MI(x){return typeof x=="string"&&!/[^\x00-\xff]/.test(x)}function DI(x){return x instanceof Ds}function NX(x){if(typeof x=="number")return ul;if(DI(x))return Ea;if(MI(x))return 1252;if(x instanceof Array&&x[0]===x[0]>>>0&&x[0]<=z3){var r=x[0]|0;return r==Ca?0:r}else{if(x instanceof String)return sD;if(typeof x=="string")return sD;if(x instanceof Number)return ul;if(x&&x.caml_custom)return NC;if(x&&x.compare)return 1256;if(typeof x=="function")return 1247;if(typeof x=="symbol")return 1251}return 1001}function jt(x,r){return xr?1:0}function PW(x,r){return x.t&6&&Rd(x),r.t&6&&Rd(r),x.cr.c?1:0}function Dd(x,r,e){for(var t=[];;){if(!(e&&x===r)){var u=NX(x);if(u==Ov){x=x[1];continue}var i=NX(r);if(i==Ov){r=r[1];continue}if(u!==i)return u==ul?i==NC?PX(x,r,-1,e):-1:i==ul?u==NC?PX(r,x,1,e):1:ur)return 1;if(x!=r){if(!e)return NaN;if(x==x)return 1;if(r==r)return-1}break;case 1001:if(xr)return 1;if(x!=r){if(!e)return NaN;if(x==x)return 1;if(r==r)return-1}break;case 1251:if(x!==r)return e?1:NaN;break;case 1252:var x=x,r=r;if(x!==r){if(xr)return 1}break;case 12520:var x=x.toString(),r=r.toString();if(x!==r){if(xr)return 1}break;case 246:case 254:default:if(pW(u)){G1("compare: continuation value");break}if(x.length!=r.length)return x.length1&&t.push(x,r,1);break}}if(t.length==0)return 0;var l=t.pop();r=t.pop(),x=t.pop(),l+10)if(r==0&&(e>=x.l||x.t==2&&e>=x.c.length))t==0?(x.c=kx,x.t=2):(x.c=Da(e,String.fromCharCode(t)),x.t=e==x.l?0:2);else for(x.t!=4&&Od(x),e+=r;r0&&r===r||(x=x.replace(/_/g,kx),r=+x,x.length>0&&r===r||/^[+-]?nan$/i.test(x)))return r;var e=/^ *([+-]?)0x([0-9a-f]+)\.?([0-9a-f]*)(p([+-]?[0-9]+))?/i.exec(x);if(e){var t=e[3].replace(/0+$/,kx),u=parseInt(e[1]+e[2]+t,16),i=(e[5]|0)-4*t.length;return r=u*Math.pow(2,i),r}if(/^\+?inf(inity)?$/i.test(x))return 1/0;if(/^-inf(inity)?$/i.test(x))return-1/0;X2("float_of_string")}function jI(x){x=x;var r=x.length;r>31&&G1("format_int: format too long");for(var e={justify:Ls,signstyle:Lt,filler:Mt,alternate:!1,base:0,signedconv:!1,width:0,uppercase:!1,sign:1,prec:-1,conv:Zj},t=0;t=0&&u<=9;)e.width=e.width*10+u,t++;t--;break;case".":for(e.prec=0,t++;u=x.charCodeAt(t)-48,u>=0&&u<=9;)e.prec=e.prec*10+u,t++;t--;case"d":case"i":e.signedconv=!0;case"u":e.base=10;break;case"x":e.base=16;break;case"X":e.base=16,e.uppercase=!0;break;case"o":e.base=8;break;case"e":case"f":case"g":e.signedconv=!0,e.conv=u;break;case"E":case"F":case"G":e.signedconv=!0,e.uppercase=!0,e.conv=u.toLowerCase();break}}return e}function JI(x,r){x.uppercase&&(r=r.toUpperCase());var e=r.length;x.signedconv&&(x.sign<0||x.signstyle!=Lt)&&e++,x.alternate&&(x.base==8&&(e+=1),x.base==16&&(e+=2));var t=kx;if(x.justify==Ls&&x.filler==Mt)for(var u=e;u20?(g-=20,k/=Math.pow(10,g),k+=new Array(g+1).join(q2),h>0&&(k=k+bf+new Array(h+1).join(q2)),k):k.toFixed(h)}var t,u=jI(x),i=u.prec<0?6:u.prec;if((r<0||r==0&&1/r==-1/0)&&(u.sign=-1,r=-r),isNaN(r))t=Mk,u.filler=Mt;else if(!isFinite(r))t="inf",u.filler=Mt;else switch(u.conv){case"e":var t=r.toExponential(i),f=t.length;t.charAt(f-3)==oh&&(t=t.slice(0,f-1)+q2+t.slice(f-1));break;case"f":t=e(r,i);break;case"g":i=i||1,t=r.toExponential(i-1);var o=t.indexOf(oh),l=+t.slice(o+1);if(l<-4||r>=1e21||r.toFixed(0).length>i){for(var f=o-1;t.charAt(f)==q2;)f--;t.charAt(f)==bf&&f--,t=t.slice(0,f+1)+t.slice(o),f=t.length,t.charAt(f-3)==oh&&(t=t.slice(0,f-1)+q2+t.slice(f-1));break}else{var d=i;if(l<0)d-=l+1,t=r.toFixed(d);else for(;t=r.toFixed(d),t.length>i+1;)d--;if(d){for(var f=t.length-1;t.charAt(f)==q2;)f--;t.charAt(f)==bf&&f--,t=t.slice(0,f+1)}}break}return JI(u,t)}function jd(x,r){if(x==hl)return kx+r;var e=jI(x);r<0&&(e.signedconv?(e.sign=-1,r=-r):r>>>=0);var t=r.toString(e.base);if(e.prec>=0){e.filler=Mt;var u=e.prec-t.length;u>0&&(t=Da(u,q2)+t)}return JI(e,t)}var IX=0;function Js(){return IX++}function OX(){return[0]}var Jd=[];function qx(x,r,e){var t=x[1],u=Jd[e];if(u===void 0)for(var i=Jd.length;i>1|1,rvw?(e.substr(0,1),r+=e,e=kx,r+=x.slice(i,o)):e+=x.slice(i,o),o==f)break;i=o}t>6),e+=String.fromCharCode(an|t&Ma)):t<55296||t>=MJ?e+=String.fromCharCode(Fj|t>>12,an|t>>6&Ma,an|t&Ma):t>=56319||i+1==f||(u=x.charCodeAt(i+1))MJ?e+="\xEF\xBF\xBD":(i++,t=(t<<10)+u-56613888,e+=String.fromCharCode(NJ|t>>18,an|t>>12&Ma,an|t>>6&Ma,an|t&Ma)),e.length>vl&&(e.substr(0,1),r+=e,e=kx)}return r+e}function Jt(x){return EI(x)?x:IW(x)}function OW(x,r,e){if(!isFinite(x))return isNaN(x)?Jt(Mk):Jt(x>0?EU:"-infinity");var t=x==0&&1/x==-1/0?1:x>=0?0:1;t&&(x=-x);var u=0;if(x!=0)if(x<1)for(;x<1&&u>-1022;)x*=2,u--;else for(;x>=2;)x/=2,u++;var i=u<0?kx:Ls,f=kx;if(t)f=Lt;else switch(e){case 43:f=Ls;break;case 32:f=Mt;break;default:break}if(r>=0&&r<13){var o=Math.pow(2,r*4);x=Math.round(x*o)/o}var l=x.toString(16);if(r>=0){var d=l.indexOf(bf);if(d<0)l+=bf+Da(r,q2);else{var k=d+1+r;l.length>24&Ei,x>>31&sn)}function LW(x){return x.toInt()}function MW(x){return+x.isNeg()}function YI(x){return x.neg()}function DW(x,r){var e=jI(x);e.signedconv&&MW(r)&&(e.sign=-1,r=YI(r));var t=kx,u=Xd(e.base),i="0123456789abcdef";do{var f=r.udivmod(u);r=f.quotient,t=i.charAt(LW(f.modulus))+t}while(!RW(r));if(e.prec>=0){e.filler=Mt;var o=e.prec-t.length;o>0&&(t=Da(o,q2)+t)}return JI(e,t)}function Xx(x){return x.length}function fx(x,r){return x.charCodeAt(r)}function UW(x,r){return x.add(r)}function jW(x,r){return x.mul(r)}function VI(x,r){return x.ucompare(r)<0}function RX(x){var r=0,e=Xx(x),t=10,u=1;if(e>0)switch(fx(x,r)){case 45:r++,u=-1;break;case 43:r++,u=1;break}if(r+1=48&&x<=57?x-48:x>=65&&x<=90?x-55:x>=97&&x<=Hr?x-87:-1}function Sl(x){var r=RX(x),e=r[0],t=r[1],u=r[2],i=Xd(u),f=new fr(Ei,268435455,sn).udivmod(i).quotient,o=fx(x,e),l=Yd(o);(l<0||l>=u)&&X2(Rs);for(var d=Xd(l);;)if(e++,o=fx(x,e),o!=95){if(l=Yd(o),l<0||l>=u)break;VI(f,d)&&X2(Rs),l=Xd(l),d=UW(jW(i,d),l),VI(d,l)&&X2(Rs)}return e!=Xx(x)&&X2(Rs),u==10&&VI(new fr(0,0,dn),d)&&X2(Rs),t<0&&(d=YI(d)),d}function Vd(x){return x.toFloat()}function ft(x){var r=RX(x),e=r[0],t=r[1],u=r[2],i=Xx(x),f=-1>>>0,o=e=u)&&X2(Rs);var d=l;for(e++;e=u)break;d=u*d+l,d>f&&X2(Rs)}return e!=i&&X2(Rs),d=t*d,u==10&&(d|0)!=d&&X2(Rs),d|0}function JW(x){return x.slice(1)}function er(x){return EI(x)?x:aX(x)}function XW(x){for(var r={},e=1;e=0?x.l:x.l=x.length}function VW(x){return function(){for(var r=YW(x),e=new Array(r),t=0;t1&&t.pop();break;case".":break;case"":break;default:t.push(e[u]);break}return t.unshift(r[0]),t.orig=x,t}var $W=["E2BIG","EACCES","EAGAIN",LT,"EBUSY","ECHILD","EDEADLK","EDOM",bU,"EFAULT","EFBIG","EINTR","EINVAL","EIO","EISDIR","EMFILE","EMLINK","ENAMETOOLONG","ENFILE","ENODEV",KS,"ENOEXEC","ENOLCK","ENOMEM","ENOSPC","ENOSYS",eh,ZM,"ENOTTY","ENXIO","EPERM","EPIPE","ERANGE","EROFS","ESPIPE","ESRCH","EXDEV","EWOULDBLOCK","EINPROGRESS","EALREADY","ENOTSOCK","EDESTADDRREQ","EMSGSIZE","EPROTOTYPE","ENOPROTOOPT","EPROTONOSUPPORT","ESOCKTNOSUPPORT","EOPNOTSUPP","EPFNOSUPPORT","EAFNOSUPPORT","EADDRINUSE","EADDRNOTAVAIL","ENETDOWN","ENETUNREACH","ENETRESET","ECONNABORTED","ECONNRESET","ENOBUFS","EISCONN","ENOTCONN","ESHUTDOWN","ETOOMANYREFS","ETIMEDOUT","ECONNREFUSED","EHOSTDOWN","EHOSTUNREACH","ELOOP","EOVERFLOW"];function Ys(x,r,e,t){var u=$W.indexOf(x);u<0&&(t==null&&(t=-9999),u=[0,t]);var i=[u,Jt(r||kx),Jt(e||kx)];return i}var UX={};function Eo(x){return UX[x]}function Vs(x,r){throw q0([0,x].concat(r))}function KI(x){return x instanceof Uint8Array||(x=new Uint8Array(x)),new Ds(4,x,x.length)}function jX(x){Dr(x+tp)}function H2(x){this.data=x}H2.prototype=new LX,H2.prototype.constructor=H2,H2.prototype.truncate=function(x){var r=this.data;this.data=w1(x|0),Ms(r,0,this.data,0,x)},H2.prototype.length=function(){return ct(this.data)},H2.prototype.write=function(x,r,e,t){var u=this.length();if(x+t>=u){var i=w1(x+t),f=this.data;this.data=i,Ms(f,0,this.data,0,u)}return Ms(KI(r),e,this.data,x,t),0},H2.prototype.read=function(x,r,e,t){var u=this.length();if(x+t>=u&&(t=u-x),t){var i=w1(t|0);Ms(this.data,x,i,0,t),r.set(MX(i),e)}return t};function Rv(x,r,e){this.file=r,this.name=x,this.flags=e}Rv.prototype.err_closed=function(){Dr(this.name+eU)},Rv.prototype.length=function(){if(this.file)return this.file.length();this.err_closed()},Rv.prototype.write=function(x,r,e,t){if(this.file)return this.file.write(x,r,e,t);this.err_closed()},Rv.prototype.read=function(x,r,e,t){if(this.file)return this.file.read(x,r,e,t);this.err_closed()},Rv.prototype.close=function(){this.file=void 0};function p2(x,r){this.content={},this.root=x,this.lookupFun=r}p2.prototype.nm=function(x){return this.root+x},p2.prototype.create_dir_if_needed=function(x){for(var r=x.split(F2),e=kx,t=0;t0&&e>=0&&e+t<=r.length&&r[e+t-1]==10&&t--;var u=w1(t);return Ms(KI(r),e,u,0,t),this.log(u.toUtf16()),0}Dr(this.fd+eU)},Al.prototype.read=function(x,r,e,t){Dr(this.fd+": file descriptor is write only")},Al.prototype.close=function(){this.log=void 0};function Wd(x,r){return r==null&&(r=Kd.length),Kd[r]=x,r|0}function vC0(x,r,e){for(var t={};r;){switch(r[1]){case 0:t.rdonly=1;break;case 1:t.wronly=1;break;case 2:t.append=1;break;case 3:t.create=1;break;case 4:t.truncate=1;break;case 5:t.excl=1;break;case 6:t.binary=1;break;case 7:t.text=1;break;case 8:t.nonblock=1;break}r=r[2]}t.rdonly&&t.wronly&&Dr(x+HT),t.text&&t.binary&&Dr(x+cI);var u=FW(x),i=u.device.open(u.rest,t);return Wd(i,void 0)}(function(){function x(r,e){return El()?BW(r,e):new Al(r,e)}Wd(x(0,{rdonly:1,altname:"/dev/stdin",isCharacterDevice:!0}),0),Wd(x(1,{buffered:2,wronly:1,isCharacterDevice:!0}),1),Wd(x(2,{buffered:2,wronly:1,isCharacterDevice:!0}),2)})();function QW(x){var r=Kd[x];r.flags.wronly&&Dr(cJ+x+" is writeonly");var e=null,t={file:r,offset:r.flags.append?r.length():0,fd:x,opened:!0,out:!1,buffer_curr:0,buffer_max:0,buffer:new Uint8Array(b3),refill:e};return Xs[t.fd]=t,t.fd}function XX(x){var r=Kd[x];r.flags.rdonly&&Dr(cJ+x+" is readonly");var e=r.flags.buffered!==void 0?r.flags.buffered:1,t={file:r,offset:r.flags.append?r.length():0,fd:x,opened:!0,out:!0,buffer_curr:0,buffer:new Uint8Array(b3),buffered:e};return Xs[t.fd]=t,t.fd}function GW(){for(var x=0,r=0;ru.buffer.length){var f=new Uint8Array(u.buffer_curr+i.length);f.set(u.buffer),u.buffer=f}switch(u.buffered){case 0:u.buffer.set(i,u.buffer_curr),u.buffer_curr+=i.length,Qc(x);break;case 1:u.buffer.set(i,u.buffer_curr),u.buffer_curr+=i.length,u.buffer_curr>=u.buffer.length&&Qc(x);break;case 2:var o=i.lastIndexOf(10);o<0?(u.buffer.set(i,u.buffer_curr),u.buffer_curr+=i.length,u.buffer_curr>=u.buffer.length&&Qc(x)):(u.buffer.set(i.subarray(0,o+1),u.buffer_curr),u.buffer_curr+=o+1,Qc(x),u.buffer.set(i.subarray(o+1),u.buffer_curr),u.buffer_curr+=i.length-o-1);break}return 0}function BI(x,r,e,t){return qW(x,$c(r),e,t)}function YX(x,r){var e=String.fromCharCode(r);return BI(x,e,0,1),0}function Pl(x,r){return+(Dd(x,r,!1)!=0)}function WI(x,r){var e=new Array(r+1);e[0]=x;for(var t=1;t<=r;t++)e[t]=0;return e}function HW(x,r){return x[0]=Ov,x[1]=r,0}function Lv(x){return x instanceof Array&&x[0]==x[0]>>>0?x[0]:DI(x)||MI(x)?Ea:x instanceof Function||typeof x=="function"?X8:x&&x.caml_custom?z3:ul}function bW(x){for(var r;x;)if(er(x[1][1])=="SYJS"){r=x[1][2];break}else x=x[2];var e={};if(r)for(var t=1;t=0?x=u:X2("caml_register_global: cannot locate "+t)}}J2[x+1]=r,e&&(J2[e]=r)}function ZI(x,r){return UX[x]=r,0}function xZ(x){return x[2]=IX++,x}function Ar(x,r){return x===r?1:0}function rZ(){G1(ng)}function N1(x,r){return r>>>0>=Xx(x)&&rZ(),fx(x,r)}function P(x,r){return 1-Ar(x,r)}function eZ(){return 2147483647/4|0}var tZ=p0.process&&p0.process.platform&&p0.process.platform==mU?EJ:"Unix";function nZ(){return[0,tZ,32,0]}function uZ(){yX(J2.Not_found)}function VX(x){var r=pX(er(x));return r===void 0&&uZ(),Jt(r)}function $I(x){for(var r=1;x&&x.joo_tramp;)x=x.joo_tramp.apply(null,x.joo_args),r++;return x}function d2(x,r){return{joo_tramp:x,joo_args:r}}function I0(x,r){if(typeof r=="function")return x.fun=r,0;if(r.fun)return x.fun=r.fun,0;for(var e=r.length;e--;)x[e]=r[e];return 0}function C1(x){{if(x instanceof Array)return x;var r;return p0.RangeError&&x instanceof p0.RangeError&&x.message&&x.message.match(/maximum call stack/i)||p0.InternalError&&x instanceof p0.InternalError&&x.message&&x.message.match(/too much recursion/i)?r=J2.Stack_overflow:x instanceof p0.Error&&Eo(RE)?r=[0,Eo(RE),x]:r=[0,J2.Failure,Jt(String(x))],x instanceof p0.Error&&(r.js_error=x),r}}function iZ(x){switch(x[2]){case-8:case-11:case-12:return 1;default:return 0}}function fZ(x){var r=kx;if(x[0]==0){if(r+=x[1][1],x.length==3&&x[2][0]==0&&iZ(x[1]))var t=x[2],e=1;else var e=2,t=x;r+=DM;for(var u=e;ue&&(r+=DD);var i=t[u];typeof i=="number"?r+=i.toString():i instanceof Ds||typeof i=="string"?r+=G8+i.toString()+G8:r+=Aa}r+=JS}else x[0]==Gr&&(r+=x[1]);return r}function zX(x){if(x instanceof Array&&(x[0]==0||x[0]==Gr)){var r=Eo(uD);if(r)zd(r,[x,!1]);else{var e=fZ(x),t=Eo(qD);if(t&&zd(t,[0]),console.error(bC+e+` +`),x.js_error)throw x.js_error}}else throw x}function cZ(){var x=p0.process;x&&x.on?x.on("uncaughtException",function(r,e){zX(r),x.exit(2)}):p0.addEventListener&&p0.addEventListener("error",function(r){r.error&&zX(r.error)})}cZ();function a(x,r){return(x.l>=0?x.l:x.l=x.length)==1?x(r):Us(x,[r])}function p(x,r,e){return(x.l>=0?x.l:x.l=x.length)==2?x(r,e):Us(x,[r,e])}function H0(x,r,e,t){return(x.l>=0?x.l:x.l=x.length)==3?x(r,e,t):Us(x,[r,e,t])}function ve(x,r,e,t,u){return(x.l>=0?x.l:x.l=x.length)==4?x(r,e,t,u):Us(x,[r,e,t,u])}function Ve(x,r,e,t,u,i){return(x.l>=0?x.l:x.l=x.length)==5?x(r,e,t,u,i):Us(x,[r,e,t,u,i])}function sZ(x,r,e,t,u,i,f,o){return(x.l>=0?x.l:x.l=x.length)==7?x(r,e,t,u,i,f,o):Us(x,[r,e,t,u,i,f,o])}var FI=[Gr,KJ,-1],KX=[Gr,mJ,-2],_n=[Gr,F_,-3],QI=[Gr,iJ,-4],E2=[Gr,_U,-7],BX=[Gr,Rj,-8],WX=[Gr,yj,-9],wr=[Gr,BM,-11],Nl=[Gr,Yj,-12],oZ=[4,0,0,0,[12,45,[4,0,0,0,0]]],GI=[0,[11,'File "',[2,0,[11,'", line ',[4,0,0,0,[11,oj,[4,0,0,0,[12,45,[4,0,0,0,[11,": ",[2,0,0]]]]]]]]]],'File "%s", line %d, characters %d-%d: %s'],Ya=[0,0,[0,0,0],[0,0,0]],Cl=[0,0,0,0,1,0,0,0],ZX=[0,"first_leading","last_trailing"],$X=[0,wf,Nf,fi,y7,Pf,Oi,ku,cc,D7,Vi,Cf,on,zu,ac,Me,P7,H7,tf,Wf,g7,vi,Wc,Tc,r7,cf,Y7,wu,Yi,qi,zc,W7,gu,ki,rf,Si,oi,qf,Zi,fu,a7,Bc,z7,$u,_c,pi,uf,$f,$n,sc,lc,Gi,Oe,Re,Ju,df,hc,Ji,k7,Of,Yu,rc,vf,uc,Ef,Sc,Ni,se,Mi,x7,sf,Hi,Su,u7,Ou,Ui,ef,wc,vc,Cu,ju,nf,m7,Gn,Tf,p7,Vf,V7,F1,mi,Qu,Qn,K7,l7,Rf,kf,F7,tu,Li,Mu,Eu,su,Fu,tc,q7,Yn,fc,h7,Bn,M7,Hu,qu,If,ri,pf,Vn,wi,Xc,Bi,yu,_i,lu,Au,Ct,w7,i7,S7,M2,hi,uu,Xu,v7,af,vu,Yf,N7,Q2,bu,Hn,jf,Xi,cu,Zc,ru,du,$1,ji,Ku,Ac,ic,t7,mf,hu,ti,jc,ci,L7,f7,xu,Fn,Qf,Ff,Qi,xc,U7,Du,Wn,Ii,R7,zn,iu,bi,ur,c7,si,Lu,kc,Gu,s7,Lc,Ic,Vu,Nc,B7,hf,C7,Ri,Mf,Bf,nu,$i,Jc,ff,Dc,n7,ii,_f,ui,ec,ai,b7,Hf,e7,Bu,gf,kn,Rc,Nu,X7,pc,Ec,A7,Z7,Uu,o7,d7,Di,Iu,oc,Gf,eu,Xf,Yc,_u,Uf,dc,au,Je,mc,ou,Ru,mu,Fi,O7,Ue,yc,Zu,I7,gc,Ki,Wi,_7,xf,Ye,Pu,Q7,Lf,yf,Cc,Ai,Sf,Xe,Vc,of,zi,Tu,nc,Zn,qn,Ti,zf,yi,Mc,T7,Uc,di,Kn,J7,gi,Zf,Kf,G7,E7,j7,li,Wu,Pc,bn,$7,xi,Kc,Pi,U2,Df,lf,ni,j2],wn=[0,0,0];Xt(11,Nl,Yj),Xt(10,wr,BM),Xt(9,[Gr,AU,OD],AU),Xt(8,WX,yj),Xt(7,BX,Rj),Xt(6,E2,_U),Xt(5,[Gr,rU,-6],rU),Xt(4,[Gr,iD,-5],iD),Xt(3,QI,iJ),Xt(2,_n,F_),Xt(1,KX,mJ),Xt(0,FI,KJ);var vZ="output_substring",aZ=bf,lZ=Ss,pZ=As,dZ="CamlinternalLazy.Undefined",yZ=SJ,mZ="\\'",kZ="\\b",hZ="\\t",_Z="\\n",wZ="\\r",TZ="List.iter2",SZ="tl",EZ="hd",gZ="String.blit / Bytes.blit_string",AZ="Bytes.blit",PZ="String.sub / Bytes.sub",NZ="String.concat",CZ="Array.blit",IZ="Array.sub",OZ="Map.remove_min_elt",RZ=[0,0,0,0],LZ=[0,"map.ml",400,10],MZ=[0,0,0],DZ=J4,UZ=J4,jZ=J4,JZ=J4,XZ="Stdlib.Queue.Empty",YZ="Buffer.add_substring/add_subbytes",VZ="Buffer.add: cannot grow buffer",zZ=[0,rD,93,2],KZ=[0,rD,94,2],BZ="Buffer.sub",WZ="%c",ZZ="%s",$Z=XM,FZ=TJ,QZ=dU,GZ=YJ,qZ="%f",HZ="%B",bZ="%{",x$="%}",r$="%(",e$="%)",t$=MU,n$="%t",u$="%?",i$="%r",f$="%_r",c$=[0,u2,850,23],s$=[0,u2,814,21],o$=[0,u2,815,21],v$=[0,u2,818,21],a$=[0,u2,819,21],l$=[0,u2,822,19],p$=[0,u2,823,19],d$=[0,u2,826,22],y$=[0,u2,827,22],m$=[0,u2,831,30],k$=[0,u2,832,30],h$=[0,u2,836,26],_$=[0,u2,837,26],w$=[0,u2,846,28],T$=[0,u2,847,28],S$=[0,u2,851,23],E$=[0,u2,1558,4],g$="Printf: bad conversion %[",A$=[0,u2,1626,39],P$=[0,u2,1649,31],N$=[0,u2,1650,31],C$="Printf: bad conversion %_",I$=Uj,O$=yU,R$=Uj,L$=yU,M$=[0,[11,"invalid box description ",[3,0,0]],"invalid box description %S"],D$=[0,0,4],U$=Mk,j$="neg_infinity",J$=EU,X$=bf,Y$=[0,fn],V$="%+nd",z$="% nd",K$="%+ni",B$="% ni",W$="%nx",Z$="%#nx",$$="%nX",F$="%#nX",Q$="%no",G$="%#no",q$="%nd",H$=dU,b$="%nu",xF="%+ld",rF="% ld",eF="%+li",tF="% li",nF="%lx",uF="%#lx",iF="%lX",fF="%#lX",cF="%lo",sF="%#lo",oF="%ld",vF=TJ,aF="%lu",lF="%+Ld",pF="% Ld",dF="%+Li",yF="% Li",mF="%Lx",kF="%#Lx",hF="%LX",_F="%#LX",wF="%Lo",TF="%#Lo",SF="%Ld",EF=YJ,gF="%Lu",AF="%+d",PF="% d",NF="%+i",CF="% i",IF="%x",OF="%#x",RF="%X",LF="%#X",MF="%o",DF="%#o",UF=hl,jF=XM,JF=rj,XF=va,YF="@}",VF="@?",zF=`@ +`,KF="@.",BF="@@",WF="@%",ZF=kU,$F="CamlinternalFormat.Type_mismatch",FF=kx,QF=[0,[11,DD,[2,0,[2,0,0]]],", %s%s"],GF=[0,[11,bC,[2,0,[12,10,0]]],mj],qF=[0,[11,"Fatal error in uncaught exception handler: exception ",[2,0,[12,10,0]]],`Fatal error in uncaught exception handler: exception %s +`],HF="Fatal error: out of memory in uncaught exception handler",bF=[0,[11,bC,[2,0,[12,10,0]]],mj],xQ=[0,[2,0,[12,10,0]],`%s +`],rQ="Raised at",eQ="Re-raised at",tQ="Raised by primitive operation at",nQ="Called from",uQ=" (inlined)",iQ=kx,fQ=[0,[2,0,[12,32,[2,0,[11,' in file "',[2,0,[12,34,[2,0,[11,", line ",[4,0,0,0,[11,oj,oZ]]]]]]]]]],'%s %s in file "%s"%s, line %d, characters %d-%d'],cQ=[0,[2,0,[11," unknown location",0]],"%s unknown location"],sQ="Out of memory",oQ="Stack overflow",vQ="Pattern matching failed",aQ="Assertion failed",lQ="Undefined recursive module",pQ=[0,[12,40,[2,0,[2,0,[12,41,0]]]],"(%s%s)"],dQ=kx,yQ=kx,mQ=[0,[12,40,[2,0,[12,41,0]]],"(%s)"],kQ=[0,[4,0,0,0,0],hl],hQ=[0,[3,0,0],J3],_Q=Aa,wQ=[0,kx,`(Cannot print locations: bytecode executable program file not found)`,`(Cannot print locations: bytecode executable program file appears to be corrupt)`,`(Cannot print locations: bytecode executable program file has wrong magic number)`,`(Cannot print locations: bytecode executable program file cannot be opened; - -- too many open files. Try running with OCAMLRUNPARAM=b=2)`],dQ=[3,0,3],mQ=Hf,kQ=$3,hQ="{"],VQ=[0,[12,32,0],Lt],ZQ=[0,[12,32,0],Lt],$Q=[0,[17,[0,"@,",0,0],[12,gi,[17,0,0]]],"@,}@]"],FQ=[0,"src/hack_forked/utils/collections/third-party/flow_set.ml",379,14],QQ=F3,HQ=ka,qQ=La,GQ=_x,bQ=pv,xH=[0,[12,40,[18,[1,[0,[11,Pe,0],Pe]],[11,"File_key.LibFile",[17,[0,ie,1,0],0]]]],"(@[<2>File_key.LibFile@ "],rH=[0,[3,0,0],z3],eH=[0,[17,0,[12,41,0]],xp],tH=[0,[12,40,[18,[1,[0,[11,Pe,0],Pe]],[11,"File_key.SourceFile",[17,[0,ie,1,0],0]]]],"(@[<2>File_key.SourceFile@ "],nH=[0,[3,0,0],z3],uH=[0,[17,0,[12,41,0]],xp],iH=[0,[12,40,[18,[1,[0,[11,Pe,0],Pe]],[11,"File_key.JsonFile",[17,[0,ie,1,0],0]]]],"(@[<2>File_key.JsonFile@ "],fH=[0,[3,0,0],z3],cH=[0,[17,0,[12,41,0]],xp],sH=[0,[12,40,[18,[1,[0,[11,Pe,0],Pe]],[11,"File_key.ResourceFile",[17,[0,ie,1,0],0]]]],"(@[<2>File_key.ResourceFile@ "],oH=[0,[3,0,0],z3],vH=[0,[17,0,[12,41,0]],xp],aH=[0,1],lH=[0,0],pH=[0,1],yH=[0,2],dH=[0,0],mH=[0,1],kH=[0,1],hH=[0,1],_H=[0,1],wH=[0,1],TH=[0,1],SH=[0,0,0],EH=[0,0,0],AH=[0,U2,ri,vf,Lf,L2,Ei,Yc,qu,W7,Hn,Ec,Bu,oi,U7,w7,$7,Jf,Xf,Ti,M7,Jn,ai,Lc,h7,Rc,li,Kf,hi,Fn,Xn,rc,hu,Ki,cf,Kc,ze,wf,Si,gc,pf,Rf,Z7,Eu,Ke,Gi,m7,Bi,Ji,Tc,N7,Xu,lc,Me,I7,Zi,pu,Pu,fu,pc,je,su,ac,Uf,mu,zc,Df,b7,$f,fc,Nu,Oi,a7,f7,Lu,X7,S7,wc,vc,D7,Au,Pc,pn,Sf,Yu,bn,Qf,H7,si,bf,ei,kf,ti,r7,Oc,nf,Dc,Wi,ru,Yf,Of,Pi,g7,mf,Y7,Ac,zu,Nc,Cc,i7,$u,yc,Cu,ii,u7,xr,qi,tu,Kn,P7,Ni,Bn,Ou,L7,qf,$i,Vf,Zf,Vn,q7,n7,C7,ui,Mc,xi,du,yf,x7,tc,Sc,Ju,Ui,F1,au,G7,Wc,uu,Di,Mf,Qn,Hu,F2,A7,jf,cu,of,c7,Du,eu,di,R2,_7,t7,k7,It,Su,ou,mi,lu,Yi,jc,ki,zn,af,Gu,If,Fu,Qu,R7,Yn,d7,nc,jn,F7,xc,Vu,iu,wu,Ru,Ci,xu,V7,df,Cf,o7,J7,Zn,Zu,pi,Q1,z7,zf,v7,_f,$n,p7,ef,Uu,gu,cc,kc,xf,Li,Iu,e7,_u,Hi,ff,qn,Ri,ce,Ai,_c,Tf,ec,sf,Gf,ju,Pf,y7,Mi,dc,lf,Mu,Re,Ce,Fi,oc,ic,Wn,Wf,tf,vi,mc,Wu,K7,Bc,s7,nu,Xi,Ff,fi,_i,bi,yi,Tu,B7,Jc,Qi,ji,ku,j7,uf,Gn,hc,Xc,ci,T7,Bf,rf,Q7,E7,Le,sc,Ku,un,Nf,zi,O7,uc,yu,Ii,Af,l7,ni,gf,hf],gH=[0,Tc,F1,Fu,Su,zn,E7,Nc,Yf,ui,Qn,Ku,Rc,bf,Ke,H7,zf,uf,nf,tc,i7,A7,Ju,Hi,Li,ri,S7,lu,wu,f7,qf,mc,mi,_u,Cu,It,Lf,Cf,fc,Pf,rf,Qu,Bf,yf,Uu,su,jc,Ru,Eu,Pi,t7,Bi,of,ff,L7,yc,ji,bi,Sf,hf,zc,s7,ai,ru,Uf,q7,B7,ei,je,Oc,af,Yu,ii,Mc,x7,ou,P7,oc,Kf,kc,n7,Ni,If,$f,l7,Gf,p7,qi,pu,Pc,ni,Ri,Q7,lc,L2,ac,dc,$7,I7,_7,O7,iu,Kc,Wc,j7,Y7,Z7,ce,V7,li,U2,Bn,cf,Mi,Df,Bu,D7,lf,Pu,uc,Ec,_i,y7,zu,qu,Sc,Xn,Mf,Iu,Zn,si,v7,Ou,vc,o7,Xf,Fn,nu,Ei,rc,N7,Jf,m7,Hn,Jc,jf,Ci,yi,Kn,Gu,Xi,W7,fi,Ac,Vf,yu,tu,Xc,ku,K7,wc,Zf,Bc,xr,R2,Me,w7,Ti,Gi,X7,ze,Re,Cc,k7,Qf,pi,Ui,pn,sc,nc,e7,cu,Tu,z7,R7,au,ki,U7,xf,pc,xc,eu,cc,$n,Wf,mf,Xu,Of,c7,ti,Oi,hi,Wi,mu,r7,M7,sf,ci,ju,Nf,uu,Rf,qn,hu,Yi,fu,di,Dc,hc,g7,du,Qi,Hu,Ai,h7,gf,Yc,_c,T7,Lc,Tf,xi,G7,ic,$i,a7,$u,Di,J7,Vn,Jn,gc,Ii,tf,Lu,zi,Q1,Au,Ff,Zu,Ki,jn,F7,Ji,Ce,Yn,Wu,b7,ef,ec,Si,pf,Vu,_f,oi,xu,bn,un,Du,Gn,C7,kf,d7,Mu,gu,Le,Af,F2,Fi,vf,vi,Zi,df,Wn,Nu,wf,u7],NH=eM,IH=JM,PH=xM,CH=jM,RH=JT,OH=EM,LH=$3,UH=yj,MH=HU,DH=yM,jH=MU,zH=Ls,KH=Ot,JH=vz,YH=OM,BH=$2,XH=BM,WH=uK,VH=k8,ZH=R4,$H=mo,FH=Z3,QH=dM,HH=tK,qH=xD,GH=sM,bH=Hz,xq=RU,rq=wj,eq=mM,tq=sz,nq=AD,uq=Yz,iq=uM,fq=KD,cq=Fz,sq=Yj,oq=[0,[18,[1,[0,[11,Pe,0],Pe]],[11,qM,0]],jz],vq="Loc.line",aq=[0,[18,[1,[0,0,wx]],[2,0,[11,X3,[17,[0,ie,1,0],0]]]],J3],lq=[0,[4,0,0,0,0],hl],pq=[0,[17,0,0],oa],yq=[0,[12,59,[17,[0,ie,1,0],0]],ep],dq=ll,mq=[0,[18,[1,[0,0,wx]],[2,0,[11,X3,[17,[0,ie,1,0],0]]]],J3],kq=[0,[4,0,0,0,0],hl],hq=[0,[17,0,0],oa],_q=[0,[17,[0,ie,1,0],[12,gi,[17,0,0]]],fD],wq=[0,[15,0],RD],Tq="(Some ",Sq=JS,Eq="None",Aq=[0,[18,[1,[0,[11,Pe,0],Pe]],[11,qM,0]],jz],gq="Loc.source",Nq=[0,[18,[1,[0,0,wx]],[2,0,[11,X3,[17,[0,ie,1,0],0]]]],J3],Iq=[0,[17,0,0],oa],Pq=[0,[12,59,[17,[0,ie,1,0],0]],ep],Cq=T9,Rq=[0,[18,[1,[0,0,wx]],[2,0,[11,X3,[17,[0,ie,1,0],0]]]],J3],Oq=[0,[17,0,0],oa],Lq=[0,[12,59,[17,[0,ie,1,0],0]],ep],Uq="_end",Mq=[0,[18,[1,[0,0,wx]],[2,0,[11,X3,[17,[0,ie,1,0],0]]]],J3],Dq=[0,[17,0,0],oa],jq=[0,[17,[0,ie,1,0],[12,gi,[17,0,0]]],fD],zq="Object literal may not have data and accessor property with the same name",Kq="Object literal may not have multiple get/set accessors with the same name",Jq="Unexpected token <. Remember, adjacent JSX elements must be wrapped in an enclosing parent tag",Yq="Modules can only have 1 since they are either an ES module xor they are a CommonJS module.",Bq="Found both `declare module.exports` and `declare export` in the same module. ",Xq="`let [` is ambiguous in this position because it is either a `let` binding pattern, or a member expression.",Wq="Async functions can only be declared at top level or immediately within another function.",Vq="`await` is an invalid identifier in async functions",Zq="`await` is not allowed in async function parameters.",$q="Computed properties must have a value.",Fq="Constructor can't be an accessor.",Qq="Constructor can't be an async function.",Hq="Constructor can't be a generator.",qq="It is sufficient for your declare function to just have a Promise return type.",Gq="async is an implementation detail and isn't necessary for your declare function statement. ",bq="`declare` modifier can only appear on class fields.",xG="Unexpected token `=`. Initializers are not allowed in a `declare`.",rG="`declare export interface` is not supported. Use `export interface` instead.",eG="`declare export type` is not supported. Use `export type` instead.",tG="Unexpected token `=`. Initializers are not allowed in a `declare opaque type`.",nG="Classes may only have one constructor",uG="Duplicate `declare module.exports` statement!",iG="Rest element must be final element of an array pattern",fG="Cannot export an enum with `export type`, try `export enum E {}` or `module.exports = E;` instead.",cG="Enum members are separated with `,`. Replace `;` with `,`.",sG="`const` enums are not supported. Flow Enums are designed to allow for inlining, however the inlining itself needs to be part of the build system (whatever you use) rather than Flow itself.",oG="Expected an object pattern, array pattern, or an identifier but found an expression instead",vG="Missing comma between export specifiers",aG="Generators can only be declared at top level or immediately within another function.",lG="Getter should have zero parameters",pG="A getter cannot have a `this` parameter.",yG="Illegal break statement",dG="Illegal continue statement",mG="Illegal return statement",kG="Illegal Unicode escape",hG="Missing comma between import specifiers",_G="It cannot be used with `import type` or `import typeof` statements",wG="The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. ",TG="Explicit inexact syntax cannot appear inside an explicit exact object type",SG="Explicit inexact syntax can only appear inside an object type",EG="Component params must be an identifier. If you'd like to destructure, you should use `name as {destructure}`",AG="A bigint literal must be an integer",gG="JSX value should be either an expression or a quoted JSX text",NG="Invalid left-hand side in assignment",IG="Invalid left-hand side in exponentiation expression",PG="Invalid left-hand side in for-in",CG="Invalid left-hand side in for-of",RG="Imports within a `declare module` body must always be `import type` or `import typeof`!",OG="Invalid optional indexed access. Indexed access uses bracket notation. Use the format `T?.[K]`.",LG="Invalid regular expression",UG="A bigint literal cannot use exponential notation",MG="Tuple spread elements cannot be optional.",DG="Tuple variance annotations can only be used with labeled tuple elements, e.g. `[+foo: number]`",jG="`typeof` can only be used to get the type of variables.",zG="JSX attributes must only be assigned a non-empty expression",KG="Literals cannot be used as shorthand properties.",JG="Malformed unicode",YG="Object pattern can't contain methods",BG="Expected at least one type parameter.",XG="Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",WG="More than one default clause in switch statement",VG="Illegal newline after throw",ZG="Illegal newline before arrow",$G="Missing catch or finally after try",FG="Const must be initialized",QG="Destructuring assignment must be initialized",HG="An optional chain may not be used in a `new` expression.",qG="Template literals may not be used in an optional chain.",GG="Rest parameter must be final parameter of an argument list",bG="Private fields may not be deleted.",xb="Private fields can only be referenced from within a class.",rb="Rest property must be final property of an object pattern",eb="Setter should have exactly one parameter",tb="A setter cannot have a `this` parameter.",nb="Catch variable may not be eval or arguments in strict mode",ub="Delete of an unqualified identifier in strict mode.",ib="Duplicate data property in object literal not allowed in strict mode",fb="Function name may not be eval or arguments in strict mode",cb="Assignment to eval or arguments is not allowed in strict mode",sb="Postfix increment/decrement may not have eval or arguments operand in strict mode",ob="Prefix increment/decrement may not have eval or arguments operand in strict mode",vb="Strict mode code may not include a with statement",ab="Number literals with leading zeros are not allowed in strict mode.",lb="Octal literals are not allowed in strict mode.",pb="Strict mode function may not have duplicate parameter names",yb="Parameter name eval or arguments is not allowed in strict mode",db='Illegal "use strict" directive in function with non-simple parameter list',mb="Use of reserved word in strict mode",kb="Variable name may not be eval or arguments in strict mode",hb="You may not access a private field through the `super` keyword.",_b="Flow does not support abstract classes.",wb="Flow does not support template literal types.",Tb="A type annotation is required for the `this` parameter.",Sb="Arrow functions cannot have a `this` parameter; arrow functions automatically bind `this` when declared.",Eb="Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",Ab="The `this` parameter cannot be optional.",gb="The `this` parameter must be the first function parameter.",Nb="A trailing comma is not permitted after the rest element",Ib="Unexpected end of input",Pb="Explicit inexact syntax must come at the end of an object type",Cb="Opaque type aliases are not allowed in untyped mode",Rb="Unexpected proto modifier",Ob="Unexpected reserved word",Lb="Unexpected reserved type",Ub="Spreading a type is only allowed inside an object type",Mb="Unexpected static modifier",Db="Unexpected `super` outside of a class method",jb="`super()` is only valid in a class constructor",zb="Type aliases are not allowed in untyped mode",Kb="Type annotations are not allowed in untyped mode",Jb="Type declarations are not allowed in untyped mode",Yb="Type exports are not allowed in untyped mode",Bb="Type imports are not allowed in untyped mode",Xb="Interfaces are not allowed in untyped mode",Wb="Unexpected variance sigil",Vb="Found a decorator in an unsupported position.",Zb="Invalid regular expression: missing /",$b="Unexpected whitespace between `#` and identifier",Fb="`yield` is an invalid identifier in generators",Qb="Yield expression not allowed in formal parameter",Hb=[0,[11,"Duplicate export for `",[2,0,[12,96,0]]],"Duplicate export for `%s`"],qb=[0,[11,"Private fields may only be declared once. `#",[2,0,[11,"` is declared more than once.",0]]],"Private fields may only be declared once. `#%s` is declared more than once."],Gb=[0,[11,"bigint enum members need to be initialized, e.g. `",[2,0,[11," = 1n,` in enum `",[2,0,[11,Es,0]]]]],"bigint enum members need to be initialized, e.g. `%s = 1n,` in enum `%s`."],bb=[0,[11,"Boolean enum members need to be initialized. Use either `",[2,0,[11," = true,` or `",[2,0,[11," = false,` in enum `",[2,0,[11,Es,0]]]]]]],"Boolean enum members need to be initialized. Use either `%s = true,` or `%s = false,` in enum `%s`."],x00=[0,[11,"Enum member names need to be unique, but the name `",[2,0,[11,"` has already been used before in enum `",[2,0,[11,Es,0]]]]],"Enum member names need to be unique, but the name `%s` has already been used before in enum `%s`."],r00=[0,[11,wM,[2,0,[11,"` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.",0]]],"Enum `%s` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers."],e00="The `...` must come at the end of the enum body. Remove the trailing comma.",t00="The `...` must come after all enum members. Move it to the end of the enum body.",n00=[0,[11,"Use one of `boolean`, `number`, `string`, `symbol`, or `bigint` in enum `",[2,0,[11,Es,0]]],"Use one of `boolean`, `number`, `string`, `symbol`, or `bigint` in enum `%s`."],u00=[0,[11,"Enum type `",[2,0,[11,"` is not valid. ",[2,0,0]]]],"Enum type `%s` is not valid. %s"],i00=[0,[11,"Supplied enum type is not valid. ",[2,0,0]],"Supplied enum type is not valid. %s"],f00=[0,[11,"Enum member names and initializers are separated with `=`. Replace `",[2,0,[11,":` with `",[2,0,[11," =`.",0]]]]],"Enum member names and initializers are separated with `=`. Replace `%s:` with `%s =`."],c00=[0,[11,wM,[2,0,[11,"` has type `",[2,0,[11,"`, so the initializer of `",[2,0,[11,"` needs to be a ",[2,0,[11," literal.",0]]]]]]]]],"Enum `%s` has type `%s`, so the initializer of `%s` needs to be a %s literal."],s00=[0,[11,"Symbol enum members cannot be initialized. Use `",[2,0,[11,",` in enum `",[2,0,[11,Es,0]]]]],"Symbol enum members cannot be initialized. Use `%s,` in enum `%s`."],o00=[0,[11,"The enum member initializer for `",[2,0,[11,"` needs to be a literal (either a boolean, number, or string) in enum `",[2,0,[11,Es,0]]]]],"The enum member initializer for `%s` needs to be a literal (either a boolean, number, or string) in enum `%s`."],v00=[0,[11,"Enum member names cannot start with lowercase 'a' through 'z'. Instead of using `",[2,0,[11,"`, consider using `",[2,0,[11,"`, in enum `",[2,0,[11,Es,0]]]]]]],"Enum member names cannot start with lowercase 'a' through 'z'. Instead of using `%s`, consider using `%s`, in enum `%s`."],a00=[0,[11,"Number enum members need to be initialized, e.g. `",[2,0,[11," = 1,` in enum `",[2,0,[11,Es,0]]]]],"Number enum members need to be initialized, e.g. `%s = 1,` in enum `%s`."],l00=[0,[11,"String enum members need to consistently either all use initializers, or use no initializers, in enum ",[2,0,[12,46,0]]],"String enum members need to consistently either all use initializers, or use no initializers, in enum %s."],p00=[0,[11,"Expected corresponding JSX closing tag for ",[2,0,0]],"Expected corresponding JSX closing tag for %s"],y00="immediately within another function.",d00="In strict mode code, functions can only be declared at top level or ",m00="inside a block, or as the body of an if statement.",k00="In non-strict mode code, functions can only be declared at top level, ",h00="static ",_00=wx,w00="methods",T00="fields",S00=zU,E00=[0,[11,"Classes may not have ",[2,0,[2,0,[11," named `",[2,0,[11,Es,0]]]]]],"Classes may not have %s%s named `%s`."],A00="Remove the period.",g00="Indexed access uses bracket notation.",N00=[0,[11,"Invalid indexed access. ",[2,0,[11," Use the format `T[K]`.",0]]],"Invalid indexed access. %s Use the format `T[K]`."],I00=[0,[11,"Invalid flags supplied to RegExp constructor '",[2,0,[12,39,0]]],"Invalid flags supplied to RegExp constructor '%s'"],P00=[0,[11,"JSX element ",[2,0,[11," has no corresponding closing tag.",0]]],"JSX element %s has no corresponding closing tag."],C00=[0,[11,gM,[2,0,[11,"`. Parentheses are required to combine `??` with `&&` or `||` expressions.",0]]],"Unexpected token `%s`. Parentheses are required to combine `??` with `&&` or `||` expressions."],R00=[0,[2,0,[11," '",[2,0,[11,"' has already been declared",0]]]],"%s '%s' has already been declared"],O00=wx,L00=W3,U00=" You can try using JavaScript private fields by prepending `#` to the field name.",M00=kl,D00=" Fields and methods are public by default. You can simply omit the `public` keyword.",j00=j3,z00=[0,[11,"Flow does not support using `",[2,0,[11,"` in classes.",[2,0,0]]]],"Flow does not support using `%s` in classes.%s"],K00=[0,[11,"Private fields must be declared before they can be referenced. `#",[2,0,[11,"` has not been declared.",0]]],"Private fields must be declared before they can be referenced. `#%s` has not been declared."],J00=[0,[11,ij,[2,0,0]],"Unexpected %s"],Y00=[0,[11,gM,[2,0,[11,"`. Did you mean `",[2,0,[11,"`?",0]]]]],"Unexpected token `%s`. Did you mean `%s`?"],B00=[0,[11,ij,[2,0,[11,", expected ",[2,0,0]]]],"Unexpected %s, expected %s"],X00=[0,[11,"Undefined label '",[2,0,[12,39,0]]],"Undefined label '%s'"],W00="Parse_error.Error",V00=[0,[0,36,37],[0,48,58],[0,65,91],[0,95,96],[0,97,Rt],[0,Z9,Ck],[0,AC,Hk],[0,ey,OI],[0,qh,rA],[0,ma,NT],[0,FI,J8],[0,Qr,706],[0,WM,722],[0,736,741],[0,748,749],[0,750,751],[0,768,885],[0,886,888],[0,890,894],[0,895,896],[0,902,907],[0,908,909],[0,910,930],[0,Cz,1014],[0,1015,1154],[0,1155,1160],[0,1162,1328],[0,1329,1367],[0,1369,1370],[0,1376,1417],[0,1425,1470],[0,1471,1472],[0,1473,1475],[0,1476,1478],[0,1479,1480],[0,1488,1515],[0,1519,1523],[0,1552,1563],[0,1568,1642],[0,1646,1748],[0,1749,1757],[0,1759,1769],[0,1770,1789],[0,1791,1792],[0,1808,1867],[0,1869,1970],[0,1984,2038],[0,2042,2043],[0,2045,2046],[0,vP,2094],[0,2112,2140],[0,2144,2155],[0,2208,2229],[0,2230,2238],[0,2259,2274],[0,2275,2404],[0,2406,2416],[0,2417,2436],[0,2437,2445],[0,2447,2449],[0,2451,2473],[0,2474,2481],[0,2482,2483],[0,2486,2490],[0,2492,2501],[0,2503,2505],[0,2507,2511],[0,2519,2520],[0,2524,2526],[0,2527,2532],[0,2534,2546],[0,2556,2557],[0,2558,2559],[0,2561,2564],[0,2565,2571],[0,2575,2577],[0,2579,2601],[0,2602,2609],[0,2610,2612],[0,2613,2615],[0,2616,2618],[0,2620,2621],[0,2622,2627],[0,2631,2633],[0,2635,2638],[0,2641,2642],[0,2649,2653],[0,2654,2655],[0,2662,2678],[0,2689,2692],[0,2693,2702],[0,2703,2706],[0,2707,2729],[0,2730,2737],[0,2738,2740],[0,2741,2746],[0,2748,2758],[0,2759,2762],[0,2763,2766],[0,2768,2769],[0,2784,2788],[0,2790,2800],[0,2809,2816],[0,2817,2820],[0,2821,2829],[0,2831,2833],[0,2835,2857],[0,2858,2865],[0,2866,2868],[0,2869,2874],[0,2876,2885],[0,2887,2889],[0,2891,2894],[0,2902,2904],[0,2908,2910],[0,2911,2916],[0,2918,2928],[0,2929,2930],[0,2946,2948],[0,2949,2955],[0,2958,2961],[0,2962,2966],[0,2969,2971],[0,2972,2973],[0,2974,2976],[0,2979,2981],[0,2984,2987],[0,2990,3002],[0,3006,3011],[0,3014,3017],[0,3018,3022],[0,3024,3025],[0,3031,3032],[0,3046,3056],[0,3072,3085],[0,3086,3089],[0,3090,3113],[0,3114,3130],[0,3133,3141],[0,3142,3145],[0,3146,3150],[0,3157,3159],[0,3160,3163],[0,3168,3172],[0,3174,3184],[0,3200,3204],[0,3205,3213],[0,3214,3217],[0,3218,3241],[0,3242,3252],[0,3253,3258],[0,3260,3269],[0,3270,3273],[0,3274,3278],[0,3285,3287],[0,3294,3295],[0,3296,3300],[0,3302,3312],[0,3313,3315],[0,3328,3332],[0,3333,3341],[0,3342,3345],[0,3346,3397],[0,3398,3401],[0,3402,3407],[0,3412,3416],[0,3423,3428],[0,3430,3440],[0,3450,3456],[0,3458,3460],[0,3461,3479],[0,3482,3506],[0,3507,3516],[0,3517,3518],[0,3520,3527],[0,3530,3531],[0,3535,3541],[0,3542,3543],[0,3544,3552],[0,3558,3568],[0,3570,3572],[0,3585,3643],[0,3648,3663],[0,3664,3674],[0,3713,3715],[0,3716,3717],[0,3718,3723],[0,3724,3748],[0,3749,3750],[0,3751,3774],[0,3776,3781],[0,3782,3783],[0,3784,3790],[0,3792,3802],[0,3804,3808],[0,3840,3841],[0,3864,3866],[0,3872,3882],[0,3893,3894],[0,3895,3896],[0,3897,3898],[0,3902,3912],[0,3913,3949],[0,3953,3973],[0,3974,3992],[0,3993,4029],[0,4038,4039],[0,qD,4170],[0,4176,4254],[0,4256,4294],[0,4295,4296],[0,4301,4302],[0,4304,4347],[0,4348,4681],[0,4682,4686],[0,4688,4695],[0,4696,4697],[0,4698,4702],[0,4704,4745],[0,4746,4750],[0,4752,4785],[0,4786,4790],[0,4792,4799],[0,4800,4801],[0,4802,4806],[0,4808,4823],[0,4824,4881],[0,4882,4886],[0,4888,4955],[0,4957,4960],[0,4969,4978],[0,4992,5008],[0,5024,5110],[0,5112,5118],[0,5121,5741],[0,5743,FT],[0,5761,5787],[0,5792,5867],[0,5870,5881],[0,5888,5901],[0,5902,5909],[0,5920,5941],[0,5952,5972],[0,5984,5997],[0,5998,6001],[0,6002,6004],[0,6016,6100],[0,6103,6104],[0,6108,6110],[0,6112,6122],[0,6155,6158],[0,6160,6170],[0,6176,6265],[0,6272,6315],[0,6320,6390],[0,6400,6431],[0,6432,6444],[0,6448,6460],[0,6470,6510],[0,6512,6517],[0,6528,6572],[0,6576,6602],[0,6608,6619],[0,6656,6684],[0,6688,6751],[0,6752,6781],[0,6783,6794],[0,6800,6810],[0,6823,6824],[0,6832,6846],[0,6912,6988],[0,6992,7002],[0,7019,7028],[0,7040,7156],[0,7168,7224],[0,7232,7242],[0,7245,7294],[0,7296,7305],[0,7312,7355],[0,7357,7360],[0,7376,7379],[0,7380,7419],[0,7424,7674],[0,7675,7958],[0,7960,7966],[0,7968,8006],[0,8008,8014],[0,8016,8024],[0,8025,8026],[0,8027,8028],[0,8029,8030],[0,8031,8062],[0,8064,8117],[0,8118,8125],[0,8126,8127],[0,8130,8133],[0,8134,8141],[0,8144,8148],[0,8150,8156],[0,8160,8173],[0,8178,8181],[0,8182,8189],[0,Rj,YD],[0,8255,8257],[0,8276,8277],[0,M8,8306],[0,b5,8320],[0,8336,8349],[0,8400,8413],[0,8417,8418],[0,8421,8433],[0,ky,8451],[0,P5,8456],[0,8458,g8],[0,qp,8470],[0,Rz,8478],[0,Ay,vp],[0,s8,o8],[0,jp,Yp],[0,8490,8506],[0,8508,8512],[0,8517,8522],[0,i8,8527],[0,8544,8585],[0,11264,11311],[0,11312,11359],[0,11360,11493],[0,11499,11508],[0,11520,z4],[0,U8,11560],[0,j4,11566],[0,11568,11624],[0,N5,11632],[0,V8,11671],[0,11680,kp],[0,11688,p8],[0,11696,Z4],[0,11704,T8],[0,11712,X5],[0,11720,D5],[0,11728,Lp],[0,11736,11743],[0,11744,11776],[0,12293,12296],[0,12321,D4],[0,12337,12342],[0,12344,12349],[0,12353,12439],[0,12441,z5],[0,12449,vy],[0,12540,12544],[0,12549,E5],[0,12593,12687],[0,12704,12731],[0,12784,12800],[0,13312,19894],[0,19968,40944],[0,40960,42125],[0,42192,42238],[0,42240,42509],[0,42512,42540],[0,42560,42608],[0,42612,V5],[0,42623,42738],[0,42775,42784],[0,42786,42889],[0,42891,42944],[0,42946,42951],[0,D8,43048],[0,43072,43124],[0,43136,43206],[0,43216,43226],[0,43232,43256],[0,U5,F5],[0,43261,43310],[0,43312,43348],[0,43360,43389],[0,43392,43457],[0,Ep,43482],[0,43488,sy],[0,43520,43575],[0,43584,43598],[0,43600,43610],[0,43616,43639],[0,S8,43715],[0,43739,43742],[0,43744,43760],[0,43762,43767],[0,43777,43783],[0,43785,43791],[0,43793,43799],[0,43808,b8],[0,43816,t8],[0,43824,t5],[0,43868,f8],[0,43888,44011],[0,44012,44014],[0,44016,44026],[0,44032,55204],[0,55216,55239],[0,55243,55292],[0,63744,64110],[0,64112,64218],[0,64256,64263],[0,64275,64280],[0,Pp,B8],[0,64298,oy],[0,64312,H5],[0,$8,up],[0,64320,Sp],[0,64323,v5],[0,64326,64434],[0,64467,64830],[0,64848,64912],[0,64914,64968],[0,65008,65020],[0,65024,65040],[0,65056,65072],[0,65075,65077],[0,65101,65104],[0,65136,Tp],[0,65142,65277],[0,65296,65306],[0,65313,65339],[0,65343,O5],[0,65345,65371],[0,65382,65471],[0,65474,65480],[0,65482,65488],[0,65490,65496],[0,65498,65501],[0,b3,a8],[0,65549,m8],[0,65576,lp],[0,65596,p5],[0,65599,65614],[0,65616,65630],[0,65664,65787],[0,65856,65909],[0,66045,66046],[0,66176,66205],[0,66208,66257],[0,66272,66273],[0,66304,66336],[0,66349,66379],[0,66384,66427],[0,66432,66462],[0,66464,66500],[0,66504,s5],[0,66513,66518],[0,66560,66718],[0,66720,66730],[0,66736,66772],[0,66776,66812],[0,66816,66856],[0,66864,66916],[0,67072,67383],[0,67392,67414],[0,67424,67432],[0,67584,67590],[0,cy,a5],[0,67594,Y5],[0,67639,67641],[0,Q5,67645],[0,67647,67670],[0,67680,67703],[0,67712,67743],[0,67808,hy],[0,67828,67830],[0,67840,67862],[0,67872,67898],[0,67968,68024],[0,68030,68032],[0,Cy,68100],[0,68101,68103],[0,68108,cp],[0,68117,Ty],[0,68121,68150],[0,68152,68155],[0,68159,68160],[0,68192,68221],[0,68224,68253],[0,68288,B4],[0,68297,68327],[0,68352,68406],[0,68416,68438],[0,68448,68467],[0,68480,68498],[0,68608,68681],[0,68736,68787],[0,68800,68851],[0,68864,68904],[0,68912,68922],[0,69376,69405],[0,c8,69416],[0,69424,69457],[0,69600,69623],[0,69632,69703],[0,69734,hp],[0,69759,69819],[0,69840,69865],[0,69872,69882],[0,69888,69941],[0,69942,69952],[0,z8,v8],[0,69968,70004],[0,Q4,70007],[0,70016,70085],[0,70089,70093],[0,70096,W4],[0,Sy,70109],[0,70144,ry],[0,70163,70200],[0,70206,70207],[0,70272,w8],[0,f5,sp],[0,70282,G8],[0,70287,b4],[0,70303,70313],[0,70320,70379],[0,70384,70394],[0,70400,P8],[0,70405,70413],[0,70415,70417],[0,70419,C8],[0,70442,yp],[0,70450,wy],[0,70453,70458],[0,70459,70469],[0,70471,70473],[0,70475,70478],[0,Ey,70481],[0,70487,70488],[0,70493,70500],[0,70502,70509],[0,70512,70517],[0,70656,70731],[0,70736,70746],[0,B5,70752],[0,70784,w5],[0,m5,70856],[0,70864,70874],[0,71040,71094],[0,71096,71105],[0,71128,71134],[0,71168,71233],[0,Wp,71237],[0,71248,71258],[0,71296,71353],[0,71360,71370],[0,71424,71451],[0,71453,71468],[0,71472,71482],[0,71680,71739],[0,71840,71914],[0,71935,71936],[0,72096,72104],[0,72106,72152],[0,72154,A8],[0,O4,72165],[0,ty,72255],[0,72263,72264],[0,i5,72346],[0,n8,72350],[0,72384,72441],[0,72704,r5],[0,72714,72759],[0,72760,72769],[0,72784,72794],[0,72818,72848],[0,72850,72872],[0,72873,72887],[0,72960,F4],[0,72968,_5],[0,72971,73015],[0,73018,73019],[0,73020,73022],[0,73023,73032],[0,73040,73050],[0,73056,fy],[0,73063,R8],[0,73066,73103],[0,73104,73106],[0,73107,73113],[0,73120,73130],[0,73440,73463],[0,73728,74650],[0,74752,74863],[0,74880,75076],[0,77824,78895],[0,82944,83527],[0,92160,92729],[0,92736,92767],[0,92768,92778],[0,92880,92910],[0,92912,92917],[0,92928,92983],[0,92992,92996],[0,93008,93018],[0,93027,93048],[0,93053,93072],[0,93760,93824],[0,93952,94027],[0,j8,94088],[0,94095,94112],[0,94176,Gp],[0,Op,94180],[0,94208,100344],[0,100352,101107],[0,110592,110879],[0,110928,110931],[0,110948,110952],[0,110960,111356],[0,113664,113771],[0,113776,113789],[0,113792,113801],[0,113808,113818],[0,113821,113823],[0,119141,119146],[0,119149,119155],[0,119163,119171],[0,119173,119180],[0,119210,119214],[0,119362,119365],[0,119808,M4],[0,119894,O8],[0,119966,119968],[0,Py,119971],[0,119973,119975],[0,119977,$p],[0,119982,Cp],[0,R5,h5],[0,119997,u5],[0,120005,Np],[0,120071,120075],[0,120077,Fp],[0,120086,o5],[0,120094,e8],[0,120123,Kp],[0,120128,xy],[0,Up,120135],[0,120138,Dp],[0,120146,120486],[0,120488,ay],[0,120514,h8],[0,120540,x5],[0,120572,Y4],[0,120598,q4],[0,120630,uy],[0,120656,j5],[0,120688,gy],[0,120714,Q8],[0,120746,my],[0,120772,120780],[0,120782,120832],[0,121344,121399],[0,121403,121453],[0,121461,121462],[0,121476,121477],[0,121499,121504],[0,121505,121520],[0,122880,122887],[0,122888,122905],[0,122907,122914],[0,122915,122917],[0,122918,122923],[0,123136,123181],[0,123184,123198],[0,123200,123210],[0,_p,123215],[0,123584,123642],[0,124928,125125],[0,125136,125143],[0,125184,125260],[0,125264,125274],[0,126464,A5],[0,126469,yy],[0,126497,K5],[0,zp,126501],[0,G4,y5],[0,126505,rp],[0,126516,Bp],[0,L4,Z8],[0,X8,126524],[0,L5,126531],[0,M5,wp],[0,k5,l5],[0,ly,C5],[0,126541,E8],[0,126545,dp],[0,kr,126549],[0,d5,py],[0,pp,u8],[0,Qp,Ny],[0,J4,q5],[0,H4,dy],[0,126561,Xp],[0,$4,126565],[0,126567,Z5],[0,126572,X4],[0,126580,l8],[0,126585,Ap],[0,ip,Iy],[0,126592,F8],[0,126603,126620],[0,126625,L8],[0,126629,Y8],[0,126635,126652],[0,131072,173783],[0,173824,177973],[0,177984,178206],[0,178208,183970],[0,183984,191457],[0,194560,195102],[0,917760,918e3]],Z00=[0,1,0],$00=[0,0,[0,1,0],[0,1,0]],F00=nj,Q00="end of input",H00=dl,q00="template literal part",G00=dl,b00=QD,xx0=nj,rx0=dl,ex0=ka,tx0=dl,nx0=pv,ux0=dl,ix0=La,fx0="an",cx0=It,sx0=Lt,ox0=[0,[11,"token `",[2,0,[12,96,0]]],"token `%s`"],vx0="{",ax0=K8,lx0="{|",px0="|}",yx0=LU,dx0=JS,mx0="[",kx0="]",hx0=wT,_x0=KU,wx0=Hf,Tx0="=>",Sx0="...",Ex0=yD,Ax0=zU,gx0=la,Nx0=Hp,Ix0=mo,Px0=Z3,Cx0=Me,Rx0=Ke,Ox0=fv,Lx0=ze,Ux0=ny,Mx0=sl,Dx0=Mp,jx0=ap,zx0=nl,Kx0=ya,Jx0=lv,Yx0=As,Bx0=Ts,Xx0=Le,Wx0=Jp,Vx0=W8,Zx0=Ce,$x0=cv,Fx0=W5,Qx0=gp,Hx0=d8,qx0=Y3,Gx0=Ic,bx0=De,xr0=Rp,rr0=iv,er0=el,tr0=ws,nr0=gs,ur0=cl,ir0=r8,fr0=R2,cr0=Ia,sr0=dv,or0=F2,vr0=Zp,ar0=kl,lr0=W3,pr0=j3,yr0=U2,dr0=Re,mr0=Q3,kr0=bu,hr0=Rh,_r0=Yh,wr0=ko,Tr0=_v,Sr0="%checks",Er0=sz,Ar0=mM,gr0=wj,Nr0=Yz,Ir0=AD,Pr0=uM,Cr0=RU,Rr0=Hz,Or0=xD,Lr0=sM,Ur0=tK,Mr0=dM,Dr0=KD,jr0=Fz,zr0=Yj,Kr0=U_,Jr0="?.",Yr0=c9,Br0="?",Xr0=Nv,Wr0=oD,Vr0=Gz,Zr0=uK,$r0=k8,Fr0=R4,Qr0=eM,Hr0=JM,qr0=xM,Gr0=jM,br0=EM,x10=yj,r10=JT,e10=$3,t10=HU,n10=yM,u10=MU,i10=Ls,f10=Ot,c10=$2,s10=vz,o10=OM,v10=BM,a10=LM,l10=Fj,p10=gz,y10=_D,d10=wx,m10=n5,k10=op,h10=ce,_10=ka,w10=pv,T10=La,S10=gs,E10=_x,A10=g5,g10=I8,N10=G5,I10=N8,P10=Ta,C10=PD,R10=al,O10=da,L10=D3,U10=D3,M10=qz,D10=D3,j10=D3,z10=K8,K10=K8,J10=qz,Y10=$2,B10=$2,X10=F3,W10=S5,V10="T_LCURLY",Z10="T_RCURLY",$10="T_LCURLYBAR",F10="T_RCURLYBAR",Q10="T_LPAREN",H10="T_RPAREN",q10="T_LBRACKET",G10="T_RBRACKET",b10="T_SEMICOLON",x20="T_COMMA",r20="T_PERIOD",e20="T_ARROW",t20="T_ELLIPSIS",n20="T_AT",u20="T_POUND",i20="T_FUNCTION",f20="T_IF",c20="T_IN",s20="T_INSTANCEOF",o20="T_RETURN",v20="T_SWITCH",a20="T_THIS",l20="T_THROW",p20="T_TRY",y20="T_VAR",d20="T_WHILE",m20="T_WITH",k20="T_CONST",h20="T_LET",_20="T_NULL",w20="T_FALSE",T20="T_TRUE",S20="T_BREAK",E20="T_CASE",A20="T_CATCH",g20="T_CONTINUE",N20="T_DEFAULT",I20="T_DO",P20="T_FINALLY",C20="T_FOR",R20="T_CLASS",O20="T_EXTENDS",L20="T_STATIC",U20="T_ELSE",M20="T_NEW",D20="T_DELETE",j20="T_TYPEOF",z20="T_VOID",K20="T_ENUM",J20="T_EXPORT",Y20="T_IMPORT",B20="T_SUPER",X20="T_IMPLEMENTS",W20="T_INTERFACE",V20="T_PACKAGE",Z20="T_PRIVATE",$20="T_PROTECTED",F20="T_PUBLIC",Q20="T_YIELD",H20="T_DEBUGGER",q20="T_DECLARE",G20="T_TYPE",b20="T_OPAQUE",xe0="T_OF",re0="T_ASYNC",ee0="T_AWAIT",te0="T_CHECKS",ne0="T_RSHIFT3_ASSIGN",ue0="T_RSHIFT_ASSIGN",ie0="T_LSHIFT_ASSIGN",fe0="T_BIT_XOR_ASSIGN",ce0="T_BIT_OR_ASSIGN",se0="T_BIT_AND_ASSIGN",oe0="T_MOD_ASSIGN",ve0="T_DIV_ASSIGN",ae0="T_MULT_ASSIGN",le0="T_EXP_ASSIGN",pe0="T_MINUS_ASSIGN",ye0="T_PLUS_ASSIGN",de0="T_NULLISH_ASSIGN",me0="T_AND_ASSIGN",ke0="T_OR_ASSIGN",he0="T_ASSIGN",_e0="T_PLING_PERIOD",we0="T_PLING_PLING",Te0="T_PLING",Se0="T_COLON",Ee0="T_OR",Ae0="T_AND",ge0="T_BIT_OR",Ne0="T_BIT_XOR",Ie0="T_BIT_AND",Pe0="T_EQUAL",Ce0="T_NOT_EQUAL",Re0="T_STRICT_EQUAL",Oe0="T_STRICT_NOT_EQUAL",Le0="T_LESS_THAN_EQUAL",Ue0="T_GREATER_THAN_EQUAL",Me0="T_LESS_THAN",De0="T_GREATER_THAN",je0="T_LSHIFT",ze0="T_RSHIFT",Ke0="T_RSHIFT3",Je0="T_PLUS",Ye0="T_MINUS",Be0="T_DIV",Xe0="T_MULT",We0="T_EXP",Ve0="T_MOD",Ze0="T_NOT",$e0="T_BIT_NOT",Fe0="T_INCR",Qe0="T_DECR",He0="T_EOF",qe0="T_ANY_TYPE",Ge0="T_MIXED_TYPE",be0="T_EMPTY_TYPE",xt0="T_NUMBER_TYPE",rt0="T_BIGINT_TYPE",et0="T_STRING_TYPE",tt0="T_VOID_TYPE",nt0="T_SYMBOL_TYPE",ut0="T_UNKNOWN_TYPE",it0="T_NEVER_TYPE",ft0="T_UNDEFINED_TYPE",ct0="T_KEYOF",st0="T_READONLY",ot0="T_INFER",vt0="T_IS",at0="T_ASSERTS",lt0="T_NUMBER",pt0="T_BIGINT",yt0="T_STRING",dt0="T_TEMPLATE_PART",mt0="T_IDENTIFIER",kt0="T_REGEXP",ht0="T_INTERPRETER",_t0="T_ERROR",wt0="T_JSX_IDENTIFIER",Tt0=$z,St0=$z,Et0="T_BOOLEAN_TYPE",At0="T_NUMBER_SINGLETON_TYPE",gt0="T_BIGINT_SINGLETON_TYPE",Nt0=[0,ZD,RS,9],It0=[0,ZD,ZT,9],Pt0=iD,Ct0="*/",Rt0=iD,Ot0="unreachable line_comment",Lt0="unreachable string_quote",Ut0="\\",Mt0="unreachable template_part",Dt0=`\r -`,jt0=lT,zt0="unreachable regexp_class",Kt0=kz,Jt0="unreachable regexp_body",Yt0=wx,Bt0=wx,Xt0=wx,Wt0=wx,Vt0=oz,Zt0="{'>'}",$t0=$3,Ft0="{'}'}",Qt0=K8,Ht0=lo,qt0=wT,Gt0=R4,bt0=oz,xn0=lo,rn0=wT,en0=R4,tn0="unreachable type_token wholenumber",nn0="unreachable type_token wholebigint",un0="unreachable type_token floatbigint",in0="unreachable type_token scinumber",fn0="unreachable type_token scibigint",cn0="unreachable type_token hexnumber",sn0="unreachable type_token hexbigint",on0="unreachable type_token legacyoctnumber",vn0="unreachable type_token octnumber",an0="unreachable type_token octbigint",ln0="unreachable type_token binnumber",pn0="unreachable type_token bigbigint",yn0="unreachable type_token",dn0=dz,mn0=[11,1],kn0=[11,0],hn0="unreachable template_tail",_n0=wx,wn0=wx,Tn0="unreachable jsx_child",Sn0="unreachable jsx_tag",En0=[0,oM],An0=[0,913],gn0=[0,ma],Nn0=[0,mh],In0=[0,KM],Pn0=[0,Xz],Cn0=[0,8747],Rn0=[0,iz],On0=[0,916],Ln0=[0,8225],Un0=[0,935],Mn0=[0,pA],Dn0=[0,914],jn0=[0,Ej],zn0=[0,DM],Kn0=[0,Oz],Jn0=[0,915],Yn0=[0,Kz],Bn0=[0,919],Xn0=[0,917],Wn0=[0,iK],Vn0=[0,Gj],Zn0=[0,AM],$n0=[0,924],Fn0=[0,923],Qn0=[0,922],Hn0=[0,bz],qn0=[0,921],Gn0=[0,VM],bn0=[0,ZT],x70=[0,JU],r70=[0,FI],e70=[0,927],t70=[0,937],n70=[0,Vz],u70=[0,cE],i70=[0,XM],f70=[0,338],c70=[0,352],s70=[0,929],o70=[0,936],v70=[0,8243],a70=[0,928],l70=[0,934],p70=[0,Vj],y70=[0,UU],d70=[0,933],m70=[0,gj],k70=[0,Qj],h70=[0,Lz],_70=[0,920],w70=[0,932],T70=[0,VU],S70=[0,JD],E70=[0,LD],A70=[0,kj],g70=[0,918],N70=[0,376],I70=[0,WD],P70=[0,926],C70=[0,_j],R70=[0,Cz],O70=[0,925],L70=[0,39],U70=[0,8736],M70=[0,8743],D70=[0,38],j70=[0,945],z70=[0,8501],K70=[0,Aa],J70=[0,8226],Y70=[0,CD],B70=[0,946],X70=[0,8222],W70=[0,hj],V70=[0,Zz],Z70=[0,8776],$70=[0,az],F70=[0,8773],Q70=[0,9827],H70=[0,WM],q70=[0,967],G70=[0,zD],b70=[0,OI],xu0=[0,xj],ru0=[0,cD],eu0=[0,8595],tu0=[0,8224],nu0=[0,8659],uu0=[0,OT],iu0=[0,8746],fu0=[0,8629],cu0=[0,e5],su0=[0,8745],ou0=[0,8195],vu0=[0,8709],au0=[0,rK],lu0=[0,nK],pu0=[0,kD],yu0=[0,J8],du0=[0,9830],mu0=[0,8707],ku0=[0,8364],hu0=[0,Ez],_u0=[0,ha],wu0=[0,951],Tu0=[0,8801],Su0=[0,949],Eu0=[0,8194],Au0=[0,8805],gu0=[0,947],Nu0=[0,8260],Iu0=[0,kM],Pu0=[0,oj],Cu0=[0,RS],Ru0=[0,8704],Ou0=[0,dT],Lu0=[0,Fg],Uu0=[0,8230],Mu0=[0,9829],Du0=[0,8596],ju0=[0,8660],zu0=[0,62],Ku0=[0,402],Ju0=[0,948],Yu0=[0,ND],Bu0=[0,qS],Xu0=[0,8712],Wu0=[0,bD],Vu0=[0,953],Zu0=[0,8734],$u0=[0,8465],Fu0=[0,Dz],Qu0=[0,8220],Hu0=[0,8968],qu0=[0,8592],Gu0=[0,Ck],bu0=[0,10216],xi0=[0,955],ri0=[0,8656],ei0=[0,954],ti0=[0,60],ni0=[0,8216],ui0=[0,8249],ii0=[0,YD],fi0=[0,9674],ci0=[0,8727],si0=[0,8970],oi0=[0,zS],vi0=[0,8711],ai0=[0,956],li0=[0,8722],pi0=[0,ey],yi0=[0,AC],di0=[0,8212],mi0=[0,mk],ki0=[0,8804],hi0=[0,957],_i0=[0,OU],wi0=[0,8836],Ti0=[0,8713],Si0=[0,OD],Ei0=[0,8715],Ai0=[0,8800],gi0=[0,8853],Ni0=[0,959],Ii0=[0,969],Pi0=[0,8254],Ci0=[0,cz],Ri0=[0,339],Oi0=[0,$5],Li0=[0,Mj],Ui0=[0,Hk],Mi0=[0,_8],Di0=[0,8855],ji0=[0,mS],zi0=[0,Qr],Ki0=[0,qh],Ji0=[0,Z9],Yi0=[0,Nz],Bi0=[0,_M],Xi0=[0,982],Wi0=[0,960],Vi0=[0,966],Zi0=[0,8869],$i0=[0,8240],Fi0=[0,8706],Qi0=[0,8744],Hi0=[0,8211],qi0=[0,10217],Gi0=[0,8730],bi0=[0,8658],xf0=[0,34],rf0=[0,968],ef0=[0,8733],tf0=[0,8719],nf0=[0,961],uf0=[0,8971],if0=[0,Qz],ff0=[0,8476],cf0=[0,8221],sf0=[0,8969],of0=[0,8594],vf0=[0,rA],af0=[0,Aj],lf0=[0,DN],pf0=[0,8901],yf0=[0,353],df0=[0,8218],mf0=[0,8217],kf0=[0,8250],hf0=[0,8835],_f0=[0,8721],wf0=[0,8838],Tf0=[0,8834],Sf0=[0,9824],Ef0=[0,8764],Af0=[0,962],gf0=[0,963],Nf0=[0,8207],If0=[0,952],Pf0=[0,8756],Cf0=[0,964],Rf0=[0,x8],Of0=[0,8839],Lf0=[0,DU],Uf0=[0,qj],Mf0=[0,Pv],Df0=[0,8657],jf0=[0,8482],zf0=[0,NT],Kf0=[0,732],Jf0=[0,Pa],Yf0=[0,8201],Bf0=[0,977],Xf0=[0,Rz],Wf0=[0,Ea],Vf0=[0,965],Zf0=[0,978],$f0=[0,RT],Ff0=[0,V4],Qf0=[0,vj],Hf0=[0,Rj],qf0=[0,8205],Gf0=[0,950],bf0=[0,B3],xc0=[0,wz],rc0=[0,H8],ec0=[0,958],tc0=[0,8593],nc0=[0,Bw],uc0=[0,8242],ic0=[0,FD],fc0="unreachable regexp",cc0="unreachable token wholenumber",sc0="unreachable token wholebigint",oc0="unreachable token floatbigint",vc0="unreachable token scinumber",ac0="unreachable token scibigint",lc0="unreachable token hexnumber",pc0="unreachable token hexbigint",yc0="unreachable token legacyoctnumber",dc0="unreachable token legacynonoctnumber",mc0="unreachable token octnumber",kc0="unreachable token octbigint",hc0="unreachable token bignumber",_c0="unreachable token bigint",wc0="unreachable token",Tc0=dz,Sc0=[7,"#!"],Ec0="expected ?",Ac0="unreachable string_escape",gc0=Q2,Nc0=K3,Ic0=K3,Pc0=Q2,Cc0=FE,Rc0=Bj,Oc0="n",Lc0="r",Uc0="t",Mc0=MM,Dc0=K3,jc0=lo,zc0=lo,Kc0="unreachable id_char",Jc0=lo,Yc0=lo,Bc0=K3,Xc0=NM,Wc0=gD,Vc0=bT,Zc0=[23,"token ILLEGAL"],$c0=[0,[11,"the identifier `",[2,0,[12,96,0]]],"the identifier `%s`"],Fc0=[0,1],Qc0=[0,1],Hc0=uD,qc0=uD,Gc0=[0,[11,"an identifier. When exporting a ",[2,0,[11," as a named export, you must specify a ",[2,0,[11," name. Did you mean `export default ",[2,0,[11," ...`?",0]]]]]]],"an identifier. When exporting a %s as a named export, you must specify a %s name. Did you mean `export default %s ...`?"],bc0=fp,xs0="Peeking current location when not available",rs0=[0,"src/parser/parser_env.ml",351,9],es0="Internal Error: Tried to add_declared_private with outside of class scope.",ts0="Internal Error: `exit_class` called before a matching `enter_class`",ns0=wx,us0=[0,0,0],is0=[0,0,0],fs0="Parser_env.Try.Rollback",cs0=wx,ss0=wx,os0=[0,U2,ri,vf,rD,hD,Lf,L2,Ei,Yc,qu,W7,Hn,Ec,Bu,oi,U7,w7,$7,Jf,Xf,Ti,M7,Jn,ai,Lc,h7,Rc,li,Kf,hi,Fn,Xn,rc,hu,Ki,cf,Kc,ze,wf,Si,gc,pf,Rf,Z7,Eu,Ke,Gi,m7,Bi,Ji,Tc,N7,Xu,lc,Me,I7,Zi,pu,Pu,fu,pc,je,su,ac,Uf,mu,zc,Df,b7,$f,fc,Nu,Oi,a7,f7,Lu,X7,S7,wc,vc,D7,Au,Pc,pn,Sf,Yu,bn,Qf,H7,si,bf,ei,kf,ti,r7,Oc,nf,Dc,Wi,ru,Yf,Of,Pi,g7,mf,Y7,Ac,zu,Nc,Cc,i7,$u,yc,Cu,ii,u7,xr,qi,tu,Kn,P7,Ni,Bn,Ou,L7,qf,$i,Vf,Zf,Vn,q7,n7,C7,ui,Mc,xi,du,yf,x7,tc,Sc,Ju,Ui,F1,au,G7,Wc,uu,Di,Mf,Qn,Hu,F2,A7,jf,cu,of,c7,Du,eu,di,R2,_7,t7,k7,It,Su,ou,mi,lu,Yi,jc,ki,zn,af,Gu,If,Fu,Qu,R7,Yn,d7,nc,jn,F7,xc,Vu,iu,wu,Ru,Ci,xu,V7,df,Cf,o7,J7,Zn,Zu,pi,Q1,z7,zf,v7,_f,$n,p7,ef,Uu,gu,cc,kc,xf,Li,Iu,e7,_u,Hi,ff,qn,Ri,ce,Ai,_c,Tf,ec,sf,Gf,ju,Pf,y7,Mi,dc,lf,Mu,Re,Ce,Fi,oc,ic,Wn,Wf,tf,vi,mc,Wu,K7,Bc,s7,nu,Xi,Ff,ej,fi,$j,$M,_i,bi,yi,Tu,B7,Jc,Qi,ji,ku,j7,uf,Gn,hc,Xc,ci,T7,Bf,rf,Q7,E7,Le,sc,Ku,un,Nf,zi,O7,uc,yu,Ii,Af,l7,ni,gf,hf],vs0=[0,U2,ri,vf,Lf,L2,Ei,Yc,qu,W7,Hn,Ec,Bu,oi,U7,w7,$7,Jf,Xf,Ti,M7,Jn,ai,Lc,h7,Rc,li,Kf,hi,Fn,Xn,rc,hu,Ki,cf,Kc,ze,wf,Si,gc,pf,Rf,Z7,Eu,Ke,Gi,m7,Bi,Ji,Tc,N7,Xu,lc,Me,I7,Zi,pu,Pu,fu,pc,je,su,ac,Uf,mu,zc,Df,b7,$f,fc,Nu,Oi,a7,f7,Lu,X7,S7,wc,vc,D7,Au,Pc,pn,Sf,Yu,bn,Qf,H7,si,bf,ei,kf,ti,r7,Oc,nf,Dc,Wi,ru,Yf,Of,Pi,g7,mf,Y7,Ac,zu,Nc,Cc,i7,$u,yc,Cu,ii,u7,xr,qi,tu,Kn,P7,Ni,Bn,Ou,L7,qf,$i,Vf,Zf,Vn,q7,n7,C7,ui,Mc,xi,du,yf,x7,tc,Sc,Ju,Ui,F1,au,G7,Wc,uu,Di,Mf,Qn,Hu,F2,A7,jf,cu,of,c7,Du,eu,di,R2,_7,t7,k7,It,Su,ou,mi,lu,Yi,jc,ki,zn,af,Gu,If,Fu,Qu,R7,Yn,d7,nc,jn,F7,xc,Vu,iu,wu,Ru,Ci,xu,V7,df,Cf,o7,J7,Zn,Zu,pi,Q1,z7,zf,v7,_f,$n,p7,ef,Uu,gu,cc,kc,xf,Li,Iu,e7,_u,Hi,ff,qn,Ri,ce,Ai,_c,Tf,ec,sf,Gf,ju,Pf,y7,Mi,dc,lf,Mu,Re,Ce,Fi,oc,ic,Wn,Wf,tf,vi,mc,Wu,K7,Bc,s7,nu,Xi,Ff,fi,_i,bi,yi,Tu,B7,Jc,Qi,ji,ku,j7,uf,Gn,hc,Xc,ci,T7,Bf,rf,Q7,E7,Le,sc,Ku,un,Nf,zi,O7,uc,yu,Ii,Af,l7,ni,gf,hf],as0=[0,Tc,F1,Fu,Su,zn,E7,Nc,Yf,ui,Qn,Ku,Rc,bf,Ke,H7,zf,uf,nf,tc,i7,A7,Ju,Hi,Li,ri,S7,lu,wu,f7,qf,mc,mi,_u,Cu,It,Lf,Cf,fc,Pf,rf,Qu,Bf,yf,Uu,su,jc,Ru,Eu,Pi,t7,Bi,of,ff,L7,yc,ji,bi,Sf,hf,zc,s7,ai,ru,Uf,q7,B7,ei,je,Oc,af,Yu,ii,Mc,x7,ou,P7,oc,Kf,kc,n7,Ni,If,$f,l7,Gf,p7,qi,pu,Pc,ni,Ri,Q7,lc,L2,ac,dc,$7,I7,_7,O7,iu,Kc,Wc,j7,Y7,Z7,ce,V7,li,U2,Bn,cf,Mi,Df,Bu,D7,lf,Pu,uc,Ec,_i,y7,zu,qu,Sc,Xn,Mf,Iu,Zn,si,v7,Ou,vc,o7,Xf,Fn,nu,Ei,rc,N7,Jf,m7,Hn,Jc,jf,Ci,yi,Kn,Gu,Xi,W7,fi,Ac,Vf,yu,tu,Xc,ku,K7,wc,Zf,Bc,xr,R2,Me,w7,Ti,Gi,X7,ze,Re,Cc,k7,Qf,pi,Ui,pn,sc,nc,e7,cu,Tu,z7,R7,au,ki,U7,xf,pc,xc,eu,cc,$n,Wf,mf,Xu,Of,c7,ti,Oi,hi,Wi,mu,r7,M7,sf,ci,ju,Nf,uu,Rf,qn,hu,Yi,fu,di,Dc,hc,g7,du,Qi,Hu,Ai,h7,gf,Yc,_c,T7,Lc,Tf,xi,G7,ic,$i,a7,$u,Di,J7,Vn,Jn,gc,Ii,tf,Lu,zi,Q1,Au,Ff,Zu,Ki,jn,F7,Ji,Ce,Yn,Wu,b7,ef,ec,Si,pf,Vu,_f,oi,xu,bn,un,Du,Gn,C7,kf,d7,Mu,gu,Le,Af,F2,Fi,vf,vi,Zi,df,Wn,Nu,wf,u7],ls0=[0,Tc,F1,Fu,Su,zn,E7,Nc,Yf,ui,Qn,Ku,Rc,bf,Ke,H7,zf,uf,nf,tc,i7,A7,Ju,Hi,Li,ri,S7,lu,wu,f7,qf,mc,mi,_u,Cu,It,Lf,hD,Cf,fc,Pf,rf,Qu,Bf,yf,Uu,su,jc,Ru,Eu,Pi,t7,Bi,of,ff,L7,yc,ji,bi,Sf,hf,zc,s7,$j,ai,ru,Uf,q7,B7,ei,je,Oc,af,Yu,ii,Mc,x7,ou,P7,oc,Kf,kc,n7,Ni,If,$f,l7,Gf,p7,qi,pu,Pc,ni,Ri,Q7,lc,L2,ac,dc,$7,I7,_7,O7,iu,Kc,Wc,j7,Y7,Z7,ce,V7,li,U2,Bn,cf,Mi,Df,Bu,D7,lf,Pu,uc,Ec,_i,y7,zu,qu,Sc,Xn,Mf,Iu,Zn,si,v7,Ou,vc,o7,Xf,Fn,nu,Ei,rc,N7,Jf,m7,Hn,Jc,jf,Ci,yi,Kn,Gu,Xi,W7,fi,Ac,Vf,yu,tu,Xc,ku,K7,wc,Zf,Bc,xr,R2,Me,w7,Ti,Gi,X7,ze,Re,Cc,k7,Qf,pi,Ui,pn,sc,nc,e7,cu,Tu,z7,R7,au,ki,U7,xf,pc,xc,eu,cc,$n,Wf,mf,Xu,Of,c7,ti,Oi,hi,Wi,mu,r7,M7,sf,ci,ju,Nf,uu,$M,Rf,qn,hu,Yi,fu,di,Dc,hc,g7,du,Qi,Hu,Ai,h7,ej,gf,Yc,_c,T7,Lc,rD,Tf,xi,G7,ic,$i,a7,$u,Di,J7,Vn,Jn,gc,Ii,tf,Lu,zi,Q1,Au,Ff,Zu,Ki,jn,F7,Ji,Ce,Yn,Wu,b7,ef,ec,Si,pf,Vu,_f,oi,xu,bn,un,Du,Gn,C7,kf,d7,Mu,gu,Le,Af,F2,Fi,vf,vi,Zi,df,Wn,Nu,wf,u7],ps0=la,ys0=Hp,ds0=mo,ms0=Z3,ks0=Me,hs0=Ke,_s0=fv,ws0=ze,Ts0=ny,Ss0=sl,Es0=Mp,As0=ap,gs0=nl,Ns0=ya,Is0=lv,Ps0=As,Cs0=Ts,Rs0=Le,Os0=Jp,Ls0=W8,Us0=Ce,Ms0=cv,Ds0=W5,js0=gp,zs0=d8,Ks0=Y3,Js0=Ic,Ys0=De,Bs0=Rp,Xs0=iv,Ws0=el,Vs0=ws,Zs0=gs,$s0=cl,Fs0=r8,Qs0=R2,Hs0=Ia,qs0=dv,Gs0=F2,bs0=Zp,xo0=kl,ro0=W3,eo0=j3,to0=U2,no0=Re,uo0=Q3,io0=bu,fo0=Rh,co0=Yh,so0=ko,oo0=_v,vo0=n5,ao0=op,lo0=ce,po0=ka,yo0=pv,do0=La,mo0=gs,ko0=_x,ho0=g5,_o0=I8,wo0=G5,To0=N8,So0=Ta,Eo0=al,Ao0=da,go0=F3,No0=S5,Io0=[0,fp],Po0=wx,Co0=[0,1],Ro0=[0,_a,1371,6],Oo0=[0,_a,1374,6],Lo0=[0,_a,1477,8],Uo0=[0,1],Mo0=[0,_a,1494,8],Do0="Can not have both `static` and `proto`",jo0=De,zo0=RP,Ko0=[0,0,0,0],Jo0=[0,0],Yo0=[0,[0,0,0,0,0]],Bo0=al,Xo0=da,Wo0=[0,"a number literal type"],Vo0=[0,0],Zo0=vo,$o0=[0,0],Fo0=[0,"a type"],Qo0=[0,0],Ho0=[0,0],qo0=[16,1],Go0=[16,0],bo0=[0,_a,mS,15],xv0=[0,_a,cE,15],rv0=Ot,ev0=Ot,tv0=I5,nv0=ll,uv0=[0,[11,"Failure while looking up ",[2,0,[11,". Index: ",[4,0,0,0,[11,". Length: ",[4,0,0,0,[12,46,0]]]]]]],"Failure while looking up %s. Index: %d. Length: %d."],iv0=[0,0,0,0],fv0="Offset_utils.Offset_lookup_failed",cv0=a1,sv0=ID,ov0=ll,vv0=I5,av0=mj,lv0=ll,pv0=I5,yv0=T9,dv0=gA,mv0="normal",kv0=bu,hv0="jsxTag",_v0="jsxChild",wv0="template",Tv0=QD,Sv0="context",Ev0=bu,Av0=[6,0],gv0=[0,0],Nv0=[0,1],Iv0=[0,4],Pv0=[0,2],Cv0=[0,3],Rv0=[0,0],Ov0=[0,0,0,0,0,0],Lv0=vo,Uv0=[0,74],Mv0=Ct,Dv0=Ct,jv0=[0,74],zv0=[0,74],Kv0=la,Jv0=[0,wx,0],Yv0=[0,0,0],Bv0=[0,0,0],Xv0=[0,82],Wv0=$2,Vv0=$2,Zv0=[0,"a regular expression"],$v0=wx,Fv0=wx,Qv0=wx,Hv0=[0,"src/parser/expression_parser.ml",1363,17],qv0=[0,"a template literal part"],Gv0=[0,[0,wx,wx],1],bv0=[0,0],xa0=K3,ra0=NM,ea0=bT,ta0=bT,na0=gD,ua0=[0,74],ia0=[0,1],fa0=[0,1],ca0=[0,1],sa0=[0,1],oa0=[0,1],va0=ga,aa0=iv,la0=[0,"the identifier `target`"],pa0=[0,0],ya0=R2,da0=pl,ma0=pl,ka0=Ia,ha0=[0,"either a call or access of `super`"],_a0=Ia,wa0=[0,1],Ta0=[0,0],Sa0=[0,1],Ea0=[0,0],Aa0=[0,1],ga0=[0,0],Na0=[0,2],Ia0=[0,3],Pa0=[0,7],Ca0=[0,6],Ra0=[0,4],Oa0=[0,5],La0=[0,6],Ua0=[0,[0,17,[0,2]]],Ma0=[0,[0,18,[0,3]]],Da0=[0,[0,19,[0,4]]],ja0=[0,[0,0,[0,5]]],za0=[0,[0,1,[0,5]]],Ka0=[0,[0,2,[0,5]]],Ja0=[0,[0,3,[0,5]]],Ya0=[0,[0,5,[0,6]]],Ba0=[0,[0,7,[0,6]]],Xa0=[0,[0,4,[0,6]]],Wa0=[0,[0,6,[0,6]]],Va0=[0,[0,8,[0,7]]],Za0=[0,[0,9,[0,7]]],$a0=[0,[0,10,[0,7]]],Fa0=[0,[0,11,[0,8]]],Qa0=[0,[0,12,[0,8]]],Ha0=[0,[0,15,[0,9]]],qa0=[0,[0,13,[0,9]]],Ga0=[0,[0,14,[1,10]]],ba0=[0,[0,16,[0,9]]],x30=[0,[0,21,[0,6]]],r30=[0,[0,20,[0,6]]],e30=[19,c9],t30=[0,[0,8]],n30=[0,[0,7]],u30=[0,[0,6]],i30=[0,[0,10]],f30=[0,[0,9]],c30=[0,[0,11]],s30=[0,[0,5]],o30=[0,[0,4]],v30=[0,[0,2]],a30=[0,[0,3]],l30=[0,[0,1]],p30=[0,[0,0]],y30=[0,[0,12]],d30=[0,[0,13]],m30=[0,[0,14]],k30=[0,0],h30=Y3,_30=[0,wx,0],w30="unexpected PrivateName in Property, expected a PrivateField",T30=[0,0,0],S30=yo,E30="Must be one of the above",A30=[0,1],g30=[0,1],N30=[0,1],I30=yo,P30=yo,C30=U_,R30="Internal Error: private name found in object props",O30=[0,1],L30=[0,Yk,1852,21],U30=[0,"a declaration, statement or export specifiers"],M30=[0,85],D30=il,j30=[0,wx,wx,0],z30=[0,QU],K30="exports",J30=[0,1],Y30=[0,1],B30=[0,0],X30=bj,W30=[0,85],V30=vo,Z30=[0,74],$30=[0,0],F30=[0,1],Q30=[0,"the keyword `as`"],H30=[0,34],q30=[0,34],G30=[0,0],b30=[0,1],xl0=[0,QU],rl0=[0,"the keyword `from`"],el0=[0,wx,wx,0],tl0=[0,Kj],nl0="Label",ul0=[0,Kj],il0=[0,0,0],fl0=[0,43],cl0=[0,Yk,429,22],sl0=[0,42],ol0=[0,Yk,448,22],vl0=[0,0],al0="the token `;`",ll0=[0,0],pl0=[0,0],yl0=PM,dl0=[0,fp],ml0=PM,kl0=[23,It],hl0=Nv,_l0=Hf,wl0=[13,"JSX fragment"],Tl0=[0,tn],Sl0=[1,tn],El0=[0,wx,wx,0],Al0=[0,fp],gl0=wx,Nl0=[0,DD],Il0=[18,[0,0]],Pl0=[0,DD],Cl0=[0,0,0,0],Rl0=lT,Ol0="Nooo: ",Ll0=cv,Ul0="Parser error: No such thing as an expression pattern!",Ml0=[0,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]],Dl0=[0,"src/parser/parser_flow.ml",e5,28],jl0=[0,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]],zl0=ID,Kl0=gA,Jl0=sD,Yl0=Cj,Bl0=Cj,Xl0=sD,Wl0=bu,Vl0=XU,Zl0=j1,$l0=a1,Fl0="InterpreterDirective",Ql0="interpreter",Hl0="Program",ql0=ml,Gl0="BreakStatement",bl0=ml,x60="ContinueStatement",r60="DebuggerStatement",e60=Iv,t60="DeclareExportAllDeclaration",n60=Iv,u60=ww,i60=VI,f60=cv,c60="DeclareExportDeclaration",s60=po,o60=j1,v60=Hr,a60="DeclareModule",l60=f2,p60="DeclareModuleExports",y60=wa,d60=j1,m60="DoWhileStatement",k60="EmptyStatement",h60=Mh,_60=VI,w60="ExportDefaultDeclaration",T60=Mh,S60=ET,E60=Iv,A60="ExportAllDeclaration",g60=Mh,N60=Iv,I60=ww,P60=VI,C60="ExportNamedDeclaration",R60="directive",O60=Q1,L60="ExpressionStatement",U60=j1,M60="update",D60=wa,j60=vu,z60="ForStatement",K60="each",J60=j1,Y60=vn,B60=Ss,X60="ForInStatement",W60=_v,V60=j1,Z60=vn,$60=Ss,F60="ForOfStatement",Q60=xz,H60=uI,q60=wa,G60="IfStatement",b60=bu,x40=ws,r40=a1,e40=SM,t40=Iv,n40=ww,u40="ImportDeclaration",i40=j1,f40=ml,c40="LabeledStatement",s40=Z2,o40="ReturnStatement",v40="cases",a40="discriminant",l40="SwitchStatement",p40=Z2,y40="ThrowStatement",d40="finalizer",m40="handler",k40=un,h40="TryStatement",_40=j1,w40=wa,T40="WhileStatement",S40=j1,E40=Hw,A40="WithStatement",g40=TD,N40="ArrayExpression",I40=O2,P40=T5,C40=Q1,R40=je,O40=XE,L40=ko,U40=j1,M40=sn,D40=Hr,j40="ArrowFunctionExpression",z40=U_,K40=vn,J40=Ss,Y40=tl,B40="AssignmentExpression",X40=vn,W40=Ss,V40=tl,Z40="BinaryExpression",$40="CallExpression",F40=xz,Q40=uI,H40=wa,q40="ConditionalExpression",G40=Iv,b40="ImportExpression",xp0=oD,rp0=Gz,ep0=c9,tp0=vn,np0=Ss,up0=tl,ip0="LogicalExpression",fp0="MemberExpression",cp0=KN,sp0=pl,op0="MetaProperty",vp0=hN,ap0=Xh,lp0=Uz,pp0="NewExpression",yp0=v9,dp0="ObjectExpression",mp0=nt,kp0="OptionalCallExpression",hp0=nt,_p0="OptionalMemberExpression",wp0=Tz,Tp0="SequenceExpression",Sp0="Super",Ep0="ThisExpression",Ap0=f2,gp0=Q1,Np0="TypeCastExpression",Ip0=Q1,Pp0="AsConstExpression",Cp0=f2,Rp0=Q1,Op0="AsExpression",Lp0=f2,Up0=Q1,Mp0="SatisfiesExpression",Dp0=Z2,jp0="AwaitExpression",zp0=Ot,Kp0=Ls,Jp0=LM,Yp0=Fj,Bp0=ws,Xp0=gs,Wp0=el,Vp0="matched above",Zp0=Z2,$p0=qU,Fp0=tl,Qp0="UnaryExpression",Hp0=_D,qp0=gz,Gp0=qU,bp0=Z2,x80=tl,r80="UpdateExpression",e80="delegate",t80=Z2,n80="YieldExpression",u80="Unexpected FunctionDeclaration with BodyExpression",i80=O2,f80=T5,c80=Q1,s80=je,o80=XE,v80=ko,a80=j1,l80=sn,p80=Hr,y80="FunctionDeclaration",d80="Unexpected FunctionExpression with BodyExpression",m80=O2,k80=T5,h80=Q1,_80=je,w80=XE,T80=ko,S80=j1,E80=sn,A80=Hr,g80="FunctionExpression",N80=nt,I80=f2,P80=Oe,C80=AA,R80=nt,O80=f2,L80=Oe,U80="PrivateIdentifier",M80=nt,D80=f2,j80=Oe,z80=AA,K80=uI,J80=wa,Y80="SwitchCase",B80=j1,X80="param",W80="CatchClause",V80=j1,Z80="BlockStatement",$80=po,F80=Hr,Q80="DeclareVariable",H80=je,q80=Hr,G80="DeclareFunction",b80=vD,x50=dv,r50=Ic,e50=j1,t50=O2,n50=Hr,u50="DeclareClass",i50=O2,f50=X_,c50=sn,s50=aw,o50=sn,v50=Hr,a50="DeclareComponent",l50=O2,p50=X_,y50=aw,d50=sn,m50="ComponentTypeAnnotation",k50=nt,h50=f2,_50=Oe,w50="ComponentTypeParameter",T50=j1,S50=Hr,E50="DeclareEnum",A50=Ic,g50=j1,N50=O2,I50=Hr,P50="DeclareInterface",C50=a1,R50=bu,O50=ET,L50="ExportNamespaceSpecifier",U50=vn,M50=O2,D50=Hr,j50="DeclareTypeAlias",z50=vn,K50=O2,J50=Hr,Y50="TypeAlias",B50="DeclareOpaqueType",X50="OpaqueType",W50="supertype",V50="impltype",Z50=O2,$50=Hr,F50="ClassDeclaration",Q50="ClassExpression",H50=iy,q50=dv,G50="superTypeParameters",b50="superClass",xy0=O2,ry0=j1,ey0=Hr,ty0=Q1,ny0="Decorator",uy0=O2,iy0=Hr,fy0="ClassImplements",cy0=j1,sy0="ClassBody",oy0=kv,vy0=q3,ay0=Tv,ly0=Oa,py0=iy,yy0=Ca,dy0=De,my0=po,ky0=a1,hy0=ov,_y0="MethodDefinition",wy0=Q3,Ty0=iy,Sy0=L2,Ey0=De,Ay0=Ca,gy0=f2,Ny0=a1,Iy0=ov,Py0=nD,Cy0="Internal Error: Private name found in class prop",Ry0=Q3,Oy0=iy,Ly0=L2,Uy0=De,My0=Ca,Dy0=f2,jy0=a1,zy0=ov,Ky0=nD,Jy0=O2,Yy0=X_,By0=sn,Xy0=Hr,Wy0=j1,Vy0="ComponentDeclaration",Zy0=Z2,$y0=_9,Fy0=vn,Qy0=Ss,Hy0=Ip,qy0=SS,Gy0=fl,by0=Oe,xd0="ComponentParameter",rd0=vu,ed0=Hr,td0="EnumBigIntMember",nd0=Hr,ud0=rM,id0=vu,fd0=Hr,cd0="EnumStringMember",sd0=Hr,od0=rM,vd0=vu,ad0=Hr,ld0="EnumNumberMember",pd0=vu,yd0=Hr,dd0="EnumBooleanMember",md0=V3,kd0=_y,hd0=H3,_d0="EnumBooleanBody",wd0=V3,Td0=_y,Sd0=H3,Ed0="EnumNumberBody",Ad0=V3,gd0=_y,Nd0=H3,Id0="EnumStringBody",Pd0=V3,Cd0=H3,Rd0="EnumSymbolBody",Od0=V3,Ld0=_y,Ud0=H3,Md0="EnumBigIntBody",Dd0=j1,jd0=Hr,zd0="EnumDeclaration",Kd0=Ic,Jd0=j1,Yd0=O2,Bd0=Hr,Xd0="InterfaceDeclaration",Wd0=O2,Vd0=Hr,Zd0="InterfaceExtends",$d0=f2,Fd0=v9,Qd0="ObjectPattern",Hd0=f2,qd0=TD,Gd0="ArrayPattern",bd0=vn,xm0=Ss,rm0=Ip,em0=f2,tm0=Oe,nm0=AA,um0=Z2,im0=_9,fm0=Z2,cm0=_9,sm0=vn,om0=Ss,vm0=Ip,am0=vu,lm0=vu,pm0=Tv,ym0=Oa,dm0=Xj,mm0=Ca,km0=SS,hm0=q3,_m0=po,wm0=a1,Tm0=ov,Sm0=uj,Em0=Z2,Am0=Hj,gm0=vn,Nm0=Ss,Im0=Ip,Pm0=Ca,Cm0=SS,Rm0=q3,Om0=po,Lm0=a1,Um0=ov,Mm0=uj,Dm0=Z2,jm0=Hj,zm0=Ut,Km0=a1,Jm0=va,Ym0=Ut,Bm0=pv,Xm0=a1,Wm0=va,Vm0=Ut,Zm0=a1,$m0=va,Fm0=Ts,Qm0=As,Hm0=Ut,qm0=a1,Gm0=va,bm0="flags",x90=pn,r90="regex",e90=Ut,t90=a1,n90=va,u90=Ut,i90=a1,f90=va,c90=Tz,s90="quasis",o90="TemplateLiteral",v90="cooked",a90=Ut,l90="tail",p90=a1,y90="TemplateElement",d90="quasi",m90="tag",k90="TaggedTemplateExpression",h90=sl,_90=ya,w90=nl,T90=po,S90="declarations",E90="VariableDeclaration",A90=vu,g90=Hr,N90="VariableDeclarator",I90="plus",P90=IM,C90=Ta,R90=mo,O90=__,L90="in-out",U90=po,M90="Variance",D90="AnyTypeAnnotation",j90="MixedTypeAnnotation",z90="EmptyTypeAnnotation",K90="VoidTypeAnnotation",J90="NullLiteralTypeAnnotation",Y90="SymbolTypeAnnotation",B90="NumberTypeAnnotation",X90="BigIntTypeAnnotation",W90="StringTypeAnnotation",V90="BooleanTypeAnnotation",Z90=f2,$90="NullableTypeAnnotation",F90="UnknownTypeAnnotation",Q90="NeverTypeAnnotation",H90="UndefinedTypeAnnotation",q90=da,G90=f2,b90="parameterName",xk0="TypePredicate",rk0=O2,ek0=aw,tk0=T5,nk0=fv,uk0=sn,ik0="FunctionTypeAnnotation",fk0=nt,ck0=f2,sk0=Oe,ok0=RM,vk0=nt,ak0=f2,lk0=Oe,pk0=RM,yk0=[0,0,0,0,0],dk0="internalSlots",mk0="callProperties",kk0="indexers",hk0=v9,_k0="exact",wk0="inexact",Tk0="ObjectTypeAnnotation",Sk0=Xj,Ek0="There should not be computed object type property keys",Ak0=vu,gk0=Tv,Nk0=Oa,Ik0=po,Pk0=L2,Ck0=RP,Rk0=De,Ok0=nt,Lk0=q3,Uk0=a1,Mk0=ov,Dk0="ObjectTypeProperty",jk0=Z2,zk0="ObjectTypeSpreadProperty",Kk0=L2,Jk0=De,Yk0=a1,Bk0=ov,Xk0=Hr,Wk0="ObjectTypeIndexer",Vk0=De,Zk0=a1,$k0="ObjectTypeCallProperty",Fk0=nt,Qk0=L2,Hk0="sourceType",qk0="propType",Gk0="keyTparam",bk0="ObjectTypeMappedTypeProperty",xh0=a1,rh0=q3,eh0=De,th0=nt,nh0=Hr,uh0="ObjectTypeInternalSlot",ih0=j1,fh0=Ic,ch0="InterfaceTypeAnnotation",sh0=jD,oh0="ArrayTypeAnnotation",vh0="falseType",ah0="trueType",lh0="extendsType",ph0="checkType",yh0="ConditionalTypeAnnotation",dh0="typeParameter",mh0="InferTypeAnnotation",kh0=Hr,hh0=Iz,_h0="QualifiedTypeIdentifier",wh0=O2,Th0=Hr,Sh0="GenericTypeAnnotation",Eh0="indexType",Ah0="objectType",gh0="IndexedAccessType",Nh0=nt,Ih0="OptionalIndexedAccessType",Ph0=sA,Ch0="UnionTypeAnnotation",Rh0=sA,Oh0="IntersectionTypeAnnotation",Lh0=Z2,Uh0="TypeofTypeAnnotation",Mh0=Hr,Dh0=Iz,jh0="QualifiedTypeofIdentifier",zh0=Z2,Kh0="KeyofTypeAnnotation",Jh0=Z2,Yh0="ReadOnlyTypeAnnotation",Bh0="elementTypes",Xh0="TupleTypeAnnotation",Wh0=nt,Vh0=L2,Zh0=jD,$h0=ml,Fh0="TupleTypeLabeledElement",Qh0=f2,Hh0=ml,qh0="TupleTypeSpreadElement",Gh0=Ut,bh0=a1,x_0="StringLiteralTypeAnnotation",r_0=Ut,e_0=a1,t_0="NumberLiteralTypeAnnotation",n_0=Ut,u_0=a1,i_0="BigIntLiteralTypeAnnotation",f_0=Ts,c_0=As,s_0=Ut,o_0=a1,v_0="BooleanLiteralTypeAnnotation",a_0="ExistsTypeAnnotation",l_0=f2,p_0=vM,y_0=f2,d_0=vM,m_0=sn,k_0="TypeParameterDeclaration",h_0="usesExtendsBound",__0=cv,w_0=L2,T_0="bound",S_0=Oe,E_0="TypeParameter",A_0=sn,g_0=cM,N_0=sn,I_0=cM,P_0=ga,C_0=Zj,R_0="closingElement",O_0="openingElement",L_0="JSXElement",U_0="closingFragment",M_0=Zj,D_0="openingFragment",j_0="JSXFragment",z_0=Xh,K_0="selfClosing",J_0="attributes",Y_0=Oe,B_0="JSXOpeningElement",X_0="JSXOpeningFragment",W_0=Oe,V_0="JSXClosingElement",Z_0="JSXClosingFragment",$_0=a1,F_0=Oe,Q_0="JSXAttribute",H_0=Z2,q_0="JSXSpreadAttribute",G_0="JSXEmptyExpression",b_0=Q1,xw0="JSXExpressionContainer",rw0=Q1,ew0="JSXSpreadChild",tw0=Ut,nw0=a1,uw0="JSXText",iw0=KN,fw0=Hw,cw0="JSXMemberExpression",sw0=Oe,ow0="namespace",vw0="JSXNamespacedName",aw0=Oe,lw0="JSXIdentifier",pw0=ET,yw0=fl,dw0="ExportSpecifier",mw0=fl,kw0="ImportDefaultSpecifier",hw0=fl,_w0="ImportNamespaceSpecifier",ww0=SM,Tw0=fl,Sw0="imported",Ew0="ImportSpecifier",Aw0="Line",gw0="Block",Nw0=a1,Iw0=a1,Pw0="DeclaredPredicate",Cw0="InferredPredicate",Rw0=hN,Ow0=Xh,Lw0=Uz,Uw0=Ca,Mw0=KN,Dw0=Hw,jw0="message",zw0=gA,Kw0=mj,Jw0=T9,Yw0=Iv,Bw0=ll,Xw0=I5,Ww0=[0,hf,gf,ni,l7,Af,Ii,yu,uc,O7,zi,Nf,un,Ku,sc,Le,E7,Q7,rf,Bf,T7,ci,Xc,hc,Gn,uf,j7,ku,ji,Qi,Jc,B7,Tu,yi,bi,_i,fi,Ff,Xi,nu,s7,Bc,K7,Wu,mc,vi,tf,Wf,Wn,ic,oc,Fi,Ce,Re,Mu,lf,dc,Mi,y7,Pf,ju,Gf,sf,ec,Tf,_c,Ai,ce,Ri,qn,ff,Hi,_u,e7,Iu,Li,xf,kc,cc,gu,Uu,ef,p7,$n,_f,v7,zf,z7,Q1,pi,Zu,Zn,J7,o7,Cf,df,V7,xu,Ci,Ru,wu,iu,Vu,xc,F7,jn,nc,d7,Yn,R7,Qu,Fu,If,Gu,af,zn,ki,jc,Yi,lu,mi,ou,Su,It,k7,t7,_7,R2,di,eu,Du,c7,of,cu,jf,A7,F2,Hu,Qn,Mf,Di,uu,Wc,G7,au,F1,Ui,Ju,Sc,tc,x7,yf,du,xi,Mc,ui,C7,n7,q7,Vn,Zf,Vf,$i,qf,L7,Ou,Bn,Ni,P7,Kn,tu,qi,xr,u7,ii,Cu,yc,$u,i7,Cc,Nc,zu,Ac,Y7,mf,g7,Pi,Of,Yf,ru,Wi,Dc,nf,Oc,r7,ti,kf,ei,bf,si,H7,Qf,bn,Yu,Sf,pn,Pc,Au,D7,vc,wc,S7,X7,Lu,f7,a7,Oi,Nu,fc,$f,b7,Df,zc,mu,Uf,ac,su,je,pc,fu,Pu,pu,Zi,I7,Me,lc,Xu,N7,Tc,Ji,Bi,m7,Gi,Ke,Eu,Z7,Rf,pf,gc,Si,wf,ze,Kc,cf,Ki,hu,rc,Xn,Fn,hi,Kf,li,Rc,h7,Lc,ai,Jn,M7,Ti,Xf,Jf,$7,w7,U7,oi,Bu,Ec,Hn,W7,qu,Yc,Ei,L2,Lf,vf,ri,U2],Vw0=[0,U2,ri,vf,Lf,L2,Ei,Yc,qu,W7,Hn,Ec,Bu,oi,U7,w7,$7,Jf,Xf,Ti,M7,Jn,ai,Lc,h7,Rc,li,Kf,hi,Fn,Xn,rc,hu,Ki,cf,Kc,ze,wf,Si,gc,pf,Rf,Z7,Eu,Ke,Gi,m7,Bi,Ji,Tc,N7,Xu,lc,Me,I7,Zi,pu,Pu,fu,pc,je,su,ac,Uf,mu,zc,Df,b7,$f,fc,Nu,Oi,a7,f7,Lu,X7,S7,wc,vc,D7,Au,Pc,pn,Sf,Yu,bn,Qf,H7,si,bf,ei,kf,ti,r7,Oc,nf,Dc,Wi,ru,Yf,Of,Pi,g7,mf,Y7,Ac,zu,Nc,Cc,i7,$u,yc,Cu,ii,u7,xr,qi,tu,Kn,P7,Ni,Bn,Ou,L7,qf,$i,Vf,Zf,Vn,q7,n7,C7,ui,Mc,xi,du,yf,x7,tc,Sc,Ju,Ui,F1,au,G7,Wc,uu,Di,Mf,Qn,Hu,F2,A7,jf,cu,of,c7,Du,eu,di,R2,_7,t7,k7,It,Su,ou,mi,lu,Yi,jc,ki,zn,af,Gu,If,Fu,Qu,R7,Yn,d7,nc,jn,F7,xc,Vu,iu,wu,Ru,Ci,xu,V7,df,Cf,o7,J7,Zn,Zu,pi,Q1,z7,zf,v7,_f,$n,p7,ef,Uu,gu,cc,kc,xf,Li,Iu,e7,_u,Hi,ff,qn,Ri,ce,Ai,_c,Tf,ec,sf,Gf,ju,Pf,y7,Mi,dc,lf,Mu,Re,Ce,Fi,oc,ic,Wn,Wf,tf,vi,mc,Wu,K7,Bc,s7,nu,Xi,Ff,fi,_i,bi,yi,Tu,B7,Jc,Qi,ji,ku,j7,uf,Gn,hc,Xc,ci,T7,Bf,rf,Q7,E7,Le,sc,Ku,un,Nf,zi,O7,uc,yu,Ii,Af,l7,ni,gf,hf],Zw0=[0,Tc,F1,Fu,Su,zn,E7,Nc,Yf,ui,Qn,Ku,Rc,bf,Ke,H7,zf,uf,nf,tc,i7,A7,Ju,Hi,Li,ri,S7,lu,wu,f7,qf,mc,mi,_u,Cu,It,Lf,Cf,fc,Pf,rf,Qu,Bf,yf,Uu,su,jc,Ru,Eu,Pi,t7,Bi,of,ff,L7,yc,ji,bi,Sf,hf,zc,s7,ai,ru,Uf,q7,B7,ei,je,Oc,af,Yu,ii,Mc,x7,ou,P7,oc,Kf,kc,n7,Ni,If,$f,l7,Gf,p7,qi,pu,Pc,ni,Ri,Q7,lc,L2,ac,dc,$7,I7,_7,O7,iu,Kc,Wc,j7,Y7,Z7,ce,V7,li,U2,Bn,cf,Mi,Df,Bu,D7,lf,Pu,uc,Ec,_i,y7,zu,qu,Sc,Xn,Mf,Iu,Zn,si,v7,Ou,vc,o7,Xf,Fn,nu,Ei,rc,N7,Jf,m7,Hn,Jc,jf,Ci,yi,Kn,Gu,Xi,W7,fi,Ac,Vf,yu,tu,Xc,ku,K7,wc,Zf,Bc,xr,R2,Me,w7,Ti,Gi,X7,ze,Re,Cc,k7,Qf,pi,Ui,pn,sc,nc,e7,cu,Tu,z7,R7,au,ki,U7,xf,pc,xc,eu,cc,$n,Wf,mf,Xu,Of,c7,ti,Oi,hi,Wi,mu,r7,M7,sf,ci,ju,Nf,uu,Rf,qn,hu,Yi,fu,di,Dc,hc,g7,du,Qi,Hu,Ai,h7,gf,Yc,_c,T7,Lc,Tf,xi,G7,ic,$i,a7,$u,Di,J7,Vn,Jn,gc,Ii,tf,Lu,zi,Q1,Au,Ff,Zu,Ki,jn,F7,Ji,Ce,Yn,Wu,b7,ef,ec,Si,pf,Vu,_f,oi,xu,bn,un,Du,Gn,C7,kf,d7,Mu,gu,Le,Af,F2,Fi,vf,vi,Zi,df,Wn,Nu,wf,u7],$w0="Jsoo_runtime.Error.Exn",Fw0=[0,0],Qw0="use_strict",Hw0=sA,qw0="esproposal_decorators",Gw0="enums",bw0="components",xT0="Internal error: ";function O1(x){if(typeof x=="number")return 0;switch(x[0]){case 0:return[0,O1(x[1])];case 1:return[1,O1(x[1])];case 2:return[2,O1(x[1])];case 3:return[3,O1(x[1])];case 4:return[4,O1(x[1])];case 5:return[5,O1(x[1])];case 6:return[6,O1(x[1])];case 7:return[7,O1(x[1])];case 8:var r=x[1];return[8,r,O1(x[2])];case 9:var e=x[1];return[9,e,e,O1(x[3])];case 10:return[10,O1(x[1])];case 11:return[11,O1(x[1])];case 12:return[12,O1(x[1])];case 13:return[13,O1(x[1])];default:return[14,O1(x[1])]}}function q2(x,r){if(typeof x=="number")return r;switch(x[0]){case 0:return[0,q2(x[1],r)];case 1:return[1,q2(x[1],r)];case 2:return[2,q2(x[1],r)];case 3:return[3,q2(x[1],r)];case 4:return[4,q2(x[1],r)];case 5:return[5,q2(x[1],r)];case 6:return[6,q2(x[1],r)];case 7:return[7,q2(x[1],r)];case 8:var e=x[1];return[8,e,q2(x[2],r)];case 9:var t=x[2],u=x[1];return[9,u,t,q2(x[3],r)];case 10:return[10,q2(x[1],r)];case 11:return[11,q2(x[1],r)];case 12:return[12,q2(x[1],r)];case 13:return[13,q2(x[1],r)];default:return[14,q2(x[1],r)]}}function w1(x,r){if(typeof x=="number")return r;switch(x[0]){case 0:return[0,w1(x[1],r)];case 1:return[1,w1(x[1],r)];case 2:var e=x[1];return[2,e,w1(x[2],r)];case 3:var t=x[1];return[3,t,w1(x[2],r)];case 4:var u=x[3],i=x[2],f=x[1];return[4,f,i,u,w1(x[4],r)];case 5:var o=x[3],a=x[2],y=x[1];return[5,y,a,o,w1(x[4],r)];case 6:var h=x[3],k=x[2],A=x[1];return[6,A,k,h,w1(x[4],r)];case 7:var g=x[3],I=x[2],C=x[1];return[7,C,I,g,w1(x[4],r)];case 8:var R=x[3],L=x[2],U=x[1];return[8,U,L,R,w1(x[4],r)];case 9:var B=x[1];return[9,B,w1(x[2],r)];case 10:return[10,w1(x[1],r)];case 11:var X=x[1];return[11,X,w1(x[2],r)];case 12:var J=x[1];return[12,J,w1(x[2],r)];case 13:var e0=x[2],i0=x[1];return[13,i0,e0,w1(x[3],r)];case 14:var j=x[2],Y=x[1];return[14,Y,j,w1(x[3],r)];case 15:return[15,w1(x[1],r)];case 16:return[16,w1(x[1],r)];case 17:var z=x[1];return[17,z,w1(x[2],r)];case 18:var F=x[1];return[18,F,w1(x[2],r)];case 19:return[19,w1(x[1],r)];case 20:var t0=x[2],$=x[1];return[20,$,t0,w1(x[3],r)];case 21:var f0=x[1];return[21,f0,w1(x[2],r)];case 22:return[22,w1(x[1],r)];case 23:var c0=x[1];return[23,c0,w1(x[2],r)];default:var v0=x[2],s0=x[1];return[24,s0,v0,w1(x[3],r)]}}function bC(x,r,e){return x[1]===r?(x[1]=e,1):0}function Rx(x){throw q0([0,mn,x],1)}function T2(x){throw q0([0,qC,x],1)}function $y(x){return 0<=x?x:-x|0}var rT0=ZU;function Zx(x,r){var e=Gx(x),t=Gx(r),u=g1(e+t|0);return Cv(x,0,u,0,e),Cv(r,0,u,e,t),j2(u)}function eT0(x){return x?cZ:sZ}function Fx(x,r){if(!x)return r;var e=x[1];return[0,e,Fx(x[2],r)]}WV(0);var tT0=UK(1),$c=UK(2);function nT0(x){for(var r=VV(0);;){if(!r)return 0;var e=r[2],t=r[1];try{Zc(t)}catch(f){var u=R1(f);if(u[1]!==zK)throw q0(u,0)}var r=e}}function Cl(x,r){return ZC(x,r,0,Gx(r))}function XK(x){return Cl($c,x),MK($c,10),Zc($c)}var xR=[0,nT0];function rR(x){return l(xR[1],0)}FC(FM,rR);var WK=bV(0)[1],Rl=(4*qV(0)|0)-1|0,uT0=[Qr,oZ,zs(0)];function iT0(x){throw q0(uT0,1)}function Fy(x,r){return r?[0,l(x,r[1])]:0}function VK(x){return 25>>0?x:x+YU|0}function Fc(x){for(var r=0,e=x;;){if(!e)return r;var r=r+1|0,e=e[2]}}function Ol(x){return x?x[1]:Rx(hZ)}function ZK(x){return x?x[2]:Rx(kZ)}function Qc(x,r){for(var e=x,t=r;;){if(!e)return t;var u=[0,e[1],t],e=e[2],t=u}}function gx(x){return Qc(x,0)}function Ll(x){if(!x)return 0;var r=x[1];return Fx(r,Ll(x[2]))}function Hc(x,r){if(!r)return 0;var e=r[2],t=l(x,r[1]);return[0,t,Hc(x,e)]}function Qy(x,r){for(var e=0,t=r;;){if(!t)return e;var u=t[2],e=[0,l(x,t[1]),e],t=u}}function S2(x,r){for(var e=r;;){if(!e)return 0;var t=e[2];l(x,e[1]);var e=t}}function b1(x,r,e){for(var t=r,u=e;;){if(!u)return t;var i=u[2],t=p(x,t,u[1]),u=i}}function eR(x,r,e){if(!r)return e;var t=r[1];return p(x,t,eR(x,r[2],e))}function $K(x,r,e){for(var t=r,u=e;;){if(t){if(u){var i=u[2],f=t[2];p(x,t[1],u[1]);var t=f,u=i;continue}}else if(!u)return 0;return T2(mZ)}}function tR(x,r){for(var e=r;;){if(!e)return 0;var t=e[2],u=EK(e[1],x)===0?1:0;if(u)return u;var e=t}}function Ul(x){var r=0;return function(e){for(var t=r,u=e;;){if(!u)return gx(t);var i=u[2],f=u[1];if(l(x,f)){var t=[0,f,t],u=i;continue}var u=i}}}function Lv(x,r){var e=g1(x);return EV(e,0,x,r),e}function FK(x){var r=ft(x),e=g1(r);return Us(x,0,e,0,r),e}function QK(x,r,e){if(0<=r&&0<=e&&(ft(x)-e|0)>=r){var t=g1(e);return Us(x,r,t,0,e),t}return T2(TZ)}function Ya(x,r,e){return j2(QK(x,r,e))}function HK(x,r,e,t,u){return 0<=u&&0<=r&&(ft(x)-u|0)>=r&&0<=t&&(ft(e)-u|0)>=t?Us(x,r,e,t,u):T2(wZ)}function Bs(x,r,e,t,u){return 0<=u&&0<=r&&(Gx(x)-u|0)>=r&&0<=t&&(ft(e)-u|0)>=t?Cv(x,r,e,t,u):T2(_Z)}function Hy(x,r){return j2(Lv(x,r))}function z2(x,r,e){return j2(QK(Vc(x),r,e))}function qK(x,r){var e=Gx(x),t=e<=Gx(r)?1:0;if(!t)return t;for(var u=0;;){if(u===e)return 1;if(ix(r,u)!==ix(x,u))return 0;var u=u+1|0}}var fT0=Ex;function GK(x,r){var e=r.length-1-1|0,t=0;if(e>=0)for(var u=t;;){l(x,r[1+u]);var i=u+1|0;if(e!==u){var u=i;continue}break}return 0}function qy(x,r){var e=r.length-1;if(e===0)return[0];var t=za(e,l(x,r[1])),u=e-1|0,i=1;if(u>=1)for(var f=i;;){t[1+f]=l(x,r[1+f]);var o=f+1|0;if(u!==f){var f=o;continue}break}return t}function Ml(x){if(!x)return[0];for(var r=0,e=x,t=x[2],u=x[1];;){if(e){var r=r+1|0,e=e[2];continue}for(var i=za(r,u),f=1,o=t;;){if(!o)return i;var a=o[2];i[1+f]=o[1];var f=f+1|0,o=a}}}function bK(x){try{var r=[0,Sl(x)];return r}catch(t){var e=R1(t);if(e[1]===mn)return 0;throw q0(e,0)}}function nR(x){function r(Q){return Q?Q[5]:0}function e(Q,G,V,l0){var d0=r(Q),A0=r(l0),M=A0<=d0?d0+1|0:A0+1|0;return[0,Q,G,V,l0,M]}function t(Q,G){return[0,0,Q,G,0,1]}function u(Q,G,V,l0){var d0=Q?Q[5]:0,A0=l0?l0[5]:0;if((A0+2|0)=A0){var K=A0<=d0?d0+1|0:A0+1|0;return[0,Q,G,V,l0,K]}if(!l0)return T2(OZ);var H0=l0[4],sx=l0[3],ux=l0[2],z0=l0[1],Px=r(z0);if(Px<=r(H0))return e(e(Q,G,V,z0),ux,sx,H0);if(!z0)return T2(RZ);var kx=z0[3],$x=z0[2],Qx=z0[1],j0=e(z0[4],ux,sx,H0);return e(e(Q,G,V,Qx),$x,kx,j0)}var i=0;function f(Q){return Q?0:1}function o(Q,G,V){if(!V)return[0,0,Q,G,0,1];var l0=V[4],d0=V[3],A0=V[2],M=V[1],L0=V[5],V0=p(x[1],Q,A0);if(V0===0)return d0===G?V:[0,M,Q,G,l0,L0];if(0<=V0){var B0=o(Q,G,l0);return l0===B0?V:u(M,A0,d0,B0)}var vx=o(Q,G,M);return M===vx?V:u(vx,A0,d0,l0)}function a(Q,G){for(var V=G;;){if(!V)throw q0(w2,1);var l0=V[4],d0=V[3],A0=V[1],M=p(x[1],Q,V[2]);if(M===0)return d0;var L0=0<=M?l0:A0,V=L0}}function y(Q,G){for(var V=G;;){if(!V)throw q0(w2,1);var l0=V[2],d0=V[4],A0=V[3],M=V[1];if(!l(Q,l0)){var V=d0;continue}for(var L0=l0,V0=A0,B0=M;;){if(!B0)return[0,L0,V0];var vx=B0[2],b0=B0[4],hx=B0[3],W0=B0[1];if(l(Q,vx)){var L0=vx,V0=hx,B0=W0;continue}var B0=b0}}}function h(Q,G){for(var V=G;;){if(!V)return 0;var l0=V[2],d0=V[4],A0=V[3],M=V[1];if(!l(Q,l0)){var V=d0;continue}for(var L0=l0,V0=A0,B0=M;;){if(!B0)return[0,[0,L0,V0]];var vx=B0[2],b0=B0[4],hx=B0[3],W0=B0[1];if(l(Q,vx)){var L0=vx,V0=hx,B0=W0;continue}var B0=b0}}}function k(Q,G){for(var V=G;;){if(!V)throw q0(w2,1);var l0=V[2],d0=V[4],A0=V[3],M=V[1];if(!l(Q,l0)){var V=M;continue}for(var L0=l0,V0=A0,B0=d0;;){if(!B0)return[0,L0,V0];var vx=B0[2],b0=B0[4],hx=B0[3],W0=B0[1];if(l(Q,vx)){var L0=vx,V0=hx,B0=b0;continue}var B0=W0}}}function A(Q,G){for(var V=G;;){if(!V)return 0;var l0=V[2],d0=V[4],A0=V[3],M=V[1];if(!l(Q,l0)){var V=M;continue}for(var L0=l0,V0=A0,B0=d0;;){if(!B0)return[0,[0,L0,V0]];var vx=B0[2],b0=B0[4],hx=B0[3],W0=B0[1];if(l(Q,vx)){var L0=vx,V0=hx,B0=b0;continue}var B0=W0}}}function g(Q,G){for(var V=G;;){if(!V)return 0;var l0=V[4],d0=V[3],A0=V[1],M=p(x[1],Q,V[2]);if(M===0)return[0,d0];var L0=0<=M?l0:A0,V=L0}}function I(Q,G){for(var V=G;;){if(!V)return 0;var l0=V[4],d0=V[1],A0=p(x[1],Q,V[2]),M=A0===0?1:0;if(M)return M;var L0=0<=A0?l0:d0,V=L0}}function C(Q){for(var G=Q;;){if(!G)throw q0(w2,1);var V=G[1];if(!V)return[0,G[2],G[3]];var G=V}}function R(Q){for(var G=Q;;){if(!G)return 0;var V=G[1];if(!V)return[0,[0,G[2],G[3]]];var G=V}}function L(Q){for(var G=Q;;){if(!G)throw q0(w2,1);if(!G[4])return[0,G[2],G[3]];var G=G[4]}}function U(Q){for(var G=Q;;){if(!G)return 0;if(!G[4])return[0,[0,G[2],G[3]]];var G=G[4]}}function B(Q){if(!Q)return T2(AZ);var G=Q[1];if(!G)return Q[4];var V=Q[4],l0=Q[3],d0=Q[2];return u(B(G),d0,l0,V)}function X(Q,G){if(!Q)return G;if(!G)return Q;var V=C(G),l0=V[2],d0=V[1];return u(Q,d0,l0,B(G))}function J(Q,G){if(!G)return 0;var V=G[4],l0=G[3],d0=G[2],A0=G[1],M=p(x[1],Q,d0);if(M===0)return X(A0,V);if(0<=M){var L0=J(Q,V);return V===L0?G:u(A0,d0,l0,L0)}var V0=J(Q,A0);return A0===V0?G:u(V0,d0,l0,V)}function e0(Q,G,V){if(!V){var l0=l(G,0);return l0?[0,0,Q,l0[1],0,1]:0}var d0=V[4],A0=V[3],M=V[2],L0=V[1],V0=V[5],B0=p(x[1],Q,M);if(B0===0){var vx=l(G,[0,A0]);if(!vx)return X(L0,d0);var b0=vx[1];return A0===b0?V:[0,L0,Q,b0,d0,V0]}if(0<=B0){var hx=e0(Q,G,d0);return d0===hx?V:u(L0,M,A0,hx)}var W0=e0(Q,G,L0);return L0===W0?V:u(W0,M,A0,d0)}function i0(Q,G){for(var V=G;;){if(!V)return 0;var l0=V[4],d0=V[3],A0=V[2];i0(Q,V[1]),p(Q,A0,d0);var V=l0}}function j(Q,G){if(!G)return 0;var V=G[5],l0=G[4],d0=G[3],A0=G[2],M=j(Q,G[1]),L0=l(Q,d0);return[0,M,A0,L0,j(Q,l0),V]}function Y(Q,G){if(!G)return 0;var V=G[2],l0=G[5],d0=G[4],A0=G[3],M=Y(Q,G[1]),L0=p(Q,V,A0);return[0,M,V,L0,Y(Q,d0),l0]}function z(Q,G,V){for(var l0=G,d0=V;;){if(!l0)return d0;var A0=l0[4],M=l0[3],L0=l0[2],V0=G0(Q,L0,M,z(Q,l0[1],d0)),l0=A0,d0=V0}}function F(Q,G){for(var V=G;;){if(!V)return 1;var l0=V[4],d0=V[1],A0=p(Q,V[2],V[3]);if(A0){var M=F(Q,d0);if(M){var V=l0;continue}var L0=M}else var L0=A0;return L0}}function t0(Q,G){for(var V=G;;){if(!V)return 0;var l0=V[4],d0=V[1],A0=p(Q,V[2],V[3]);if(A0)var M=A0;else{var L0=t0(Q,d0);if(!L0){var V=l0;continue}var M=L0}return M}}function $(Q,G,V){if(!V)return t(Q,G);var l0=V[4],d0=V[3],A0=V[2];return u($(Q,G,V[1]),A0,d0,l0)}function f0(Q,G,V){if(!V)return t(Q,G);var l0=V[3],d0=V[2],A0=V[1];return u(A0,d0,l0,f0(Q,G,V[4]))}function c0(Q,G,V,l0){if(!Q)return $(G,V,l0);if(!l0)return f0(G,V,Q);var d0=l0[5],A0=Q[5],M=l0[4],L0=l0[3],V0=l0[2],B0=l0[1],vx=Q[4],b0=Q[3],hx=Q[2],W0=Q[1];return(d0+2|0)x[3])throw q0([0,Tr,DZ],1);if((e+r|0)<=x[3])return 0;throw q0([0,Tr,jZ],1)}}function ct(x,r){var e=x[2];return x[3]<=e&&fR(x,1),Xr(x[1],e,r),x[2]=e+1|0,0}function rJ(x,r,e,t){var u=e<0?1:0;if(u)var f=u;else var i=t<0?1:0,f=i||((Gx(r)-t|0)=u+J5>>>0&&(i=1):65<=u&&(i=1);else{var f=0;if(u===32)f=1;else if(43<=u)switch(u+P9|0){case 5:if(t<(e+2|0)&&1>>0?33>>0&&(i=1):u===2&&(i=1),!i){var r=r+1|0;continue}var f=Vc(x),o=[0,0],a=ft(f)-1|0,y=0;if(a>=0)for(var h=y;;){var k=se(f,h),A=0;if(32<=k){var g=k-34|0,I=0;if(58>>0?93>g&&(I=1):56>>0?A=1:I=1,I){var C=1;A=2}}else 11<=k?k===13&&(A=1):8<=k&&(A=1);switch(A){case 0:var C=4;break;case 1:var C=2;break}o[1]=o[1]+C|0;var R=h+1|0;if(a!==h){var h=R;continue}break}if(o[1]===ft(f))var L=FK(f);else{var U=g1(o[1]);o[1]=0;var B=ft(f)-1|0,X=0;if(B>=0)for(var J=X;;){var e0=se(f,J),i0=0;if(35<=e0)e0===92?i0=2:Jr<=e0?i0=1:i0=3;else if(32<=e0)34<=e0?i0=2:i0=3;else if(14<=e0)i0=1;else switch(e0){case 8:Xr(U,o[1],92),o[1]++,Xr(U,o[1],98);break;case 9:Xr(U,o[1],92),o[1]++,Xr(U,o[1],Ns);break;case 10:Xr(U,o[1],92),o[1]++,Xr(U,o[1],P1);break;case 13:Xr(U,o[1],92),o[1]++,Xr(U,o[1],Vi);break;default:i0=1}switch(i0){case 1:Xr(U,o[1],92),o[1]++,Xr(U,o[1],48+(e0/Uc|0)|0),o[1]++,Xr(U,o[1],48+((e0/10|0)%10|0)|0),o[1]++,Xr(U,o[1],48+(e0%10|0)|0);break;case 2:Xr(U,o[1],92),o[1]++,Xr(U,o[1],e0);break;case 3:Xr(U,o[1],e0);break}o[1]++;var j=J+1|0;if(B!==J){var J=j;continue}break}var L=U}var t=j2(L)}var Y=Gx(t),z=Lv(Y+2|0,34);return Cv(t,0,z,1,Y),j2(z)}}function iJ(x,r){var e=$y(r),t=U$[1];switch(x[2]){case 0:var u=Cs;break;case 1:var u=Pt;break;case 2:var u=69;break;case 3:var u=tt;break;case 4:var u=71;break;case 5:var u=t;break;case 6:var u=ln;break;case 7:var u=72;break;default:var u=70}var i=eJ(16);switch(Wa(i,37),x[1]){case 0:break;case 1:Wa(i,43);break;default:Wa(i,32)}return 8<=x[2]&&Wa(i,35),Wa(i,46),E2(i,wx+e),Wa(i,u),nJ(i)}function by(x,r){if(13>x)return r;var e=[0,0],t=Gx(r)-1|0,u=0;if(t>=0)for(var i=u;;){9>=ix(r,i)+B1>>>0&&e[1]++;var f=i+1|0;if(t!==i){var i=f;continue}break}var o=e[1],a=g1(Gx(r)+((o-1|0)/3|0)|0),y=[0,0];function h(L){return Da(a,y[1],L),y[1]++,0}var k=[0,((o-1|0)%3|0)+1|0],A=Gx(r)-1|0,g=0;if(A>=0)for(var I=g;;){var C=ix(r,I);9>>0||(k[1]===0&&(h(95),k[1]=3),k[1]+=-1),h(C);var R=I+1|0;if(A!==I){var I=R;continue}break}return j2(a)}function oT0(x,r){switch(x){case 1:var e=_F;break;case 2:var e=wF;break;case 4:var e=TF;break;case 5:var e=SF;break;case 6:var e=EF;break;case 7:var e=AF;break;case 8:var e=gF;break;case 9:var e=NF;break;case 10:var e=IF;break;case 11:var e=PF;break;case 0:case 13:var e=CF;break;case 3:case 14:var e=RF;break;default:var e=OF}return by(x,zy(e,r))}function vT0(x,r){switch(x){case 1:var e=F$;break;case 2:var e=Q$;break;case 4:var e=H$;break;case 5:var e=q$;break;case 6:var e=G$;break;case 7:var e=b$;break;case 8:var e=xF;break;case 9:var e=rF;break;case 10:var e=eF;break;case 11:var e=tF;break;case 0:case 13:var e=nF;break;case 3:case 14:var e=uF;break;default:var e=iF}return by(x,zy(e,r))}function aT0(x,r){switch(x){case 1:var e=M$;break;case 2:var e=D$;break;case 4:var e=j$;break;case 5:var e=z$;break;case 6:var e=K$;break;case 7:var e=J$;break;case 8:var e=Y$;break;case 9:var e=B$;break;case 10:var e=X$;break;case 11:var e=W$;break;case 0:case 13:var e=V$;break;case 3:case 14:var e=Z$;break;default:var e=$$}return by(x,zy(e,r))}function lT0(x,r){switch(x){case 1:var e=fF;break;case 2:var e=cF;break;case 4:var e=sF;break;case 5:var e=oF;break;case 6:var e=vF;break;case 7:var e=aF;break;case 8:var e=lF;break;case 9:var e=pF;break;case 10:var e=yF;break;case 11:var e=dF;break;case 0:case 13:var e=mF;break;case 3:case 14:var e=kF;break;default:var e=hF}return by(x,CV(e,r))}function Xs(x,r,e){function t(X){switch(x[1]){case 0:var J=45;break;case 1:var J=43;break;default:var J=32}return gV(e,r,J)}function u(X){var J=cV(e);return J===3?e<0?R$:O$:4<=J?C$:X}switch(x[2]){case 5:for(var i=YC(iJ(x,r),e),f=0,o=Gx(i);;){if(f===o)var a=0;else{var y=C1(i,f)+gv|0,h=0;if(23>>0?y===55&&(h=1):21>>0&&(h=1),!h){var f=f+1|0;continue}var a=1}var k=a?i:Zx(i,L$);return u(k)}case 6:return t(0);case 7:var A=Vc(t(0)),g=ft(A);if(g===0)var I=A;else{var C=g1(g),R=g-1|0,L=0;if(R>=0)for(var U=L;;){Xr(C,U,VK(se(A,U)));var B=U+1|0;if(R!==U){var U=B;continue}break}var I=C}return j2(I);case 8:return u(t(0));default:return YC(iJ(x,r),e)}}function xd(x,r,e,t,u,i,f){if(typeof t=="number"){if(typeof u=="number")return u?function(g,I){return jr(x,[4,r,Va(g,p(i,f,I))],e)}:function(g){return jr(x,[4,r,p(i,f,g)],e)};var o=u[1];return function(g){return jr(x,[4,r,Va(o,p(i,f,g))],e)}}if(t[0]===0){var a=t[2],y=t[1];if(typeof u=="number")return u?function(g,I){return jr(x,[4,r,Be(y,a,Va(g,p(i,f,I)))],e)}:function(g){return jr(x,[4,r,Be(y,a,p(i,f,g))],e)};var h=u[1];return function(g){return jr(x,[4,r,Be(y,a,Va(h,p(i,f,g)))],e)}}var k=t[1];if(typeof u=="number")return u?function(g,I,C){return jr(x,[4,r,Be(k,g,Va(I,p(i,f,C)))],e)}:function(g,I){return jr(x,[4,r,Be(k,g,p(i,f,I))],e)};var A=u[1];return function(g,I){return jr(x,[4,r,Be(k,g,Va(A,p(i,f,I)))],e)}}function vR(x,r,e,t,u){if(typeof t=="number")return function(a){return jr(x,[4,r,l(u,a)],e)};if(t[0]===0){var i=t[2],f=t[1];return function(a){return jr(x,[4,r,Be(f,i,l(u,a))],e)}}var o=t[1];return function(a,y){return jr(x,[4,r,Be(o,a,l(u,y))],e)}}function Kl(x,r,e,t){for(var u=r,i=e,f=t;;){if(typeof f=="number")return l(u,i);switch(f[0]){case 0:var o=f[1];return function(P0){return jr(u,[5,i,P0],o)};case 1:var a=f[1];return function(P0){var N0=0;if(40<=P0)if(P0===92)var J0=vZ;else Jr<=P0?N0=1:N0=2;else if(32<=P0)if(39<=P0)var J0=aZ;else N0=2;else if(14<=P0)N0=1;else switch(P0){case 8:var J0=lZ;break;case 9:var J0=pZ;break;case 10:var J0=yZ;break;case 13:var J0=dZ;break;default:N0=1}switch(N0){case 1:var I0=g1(4);Xr(I0,0,92),Xr(I0,1,48+(P0/Uc|0)|0),Xr(I0,2,48+((P0/10|0)%10|0)|0),Xr(I0,3,48+(P0%10|0)|0);var J0=j2(I0);break;case 2:var Q=g1(1);Xr(Q,0,P0);var J0=j2(Q);break}var G=Gx(J0),V=Lv(G+2|0,39);return Cv(J0,0,V,1,G),jr(u,[4,i,j2(V)],a)};case 2:var y=f[2],h=f[1];return vR(u,i,y,h,function(P0){return P0});case 3:return vR(u,i,f[2],f[1],sT0);case 4:return xd(u,i,f[4],f[2],f[3],oT0,f[1]);case 5:return xd(u,i,f[4],f[2],f[3],vT0,f[1]);case 6:return xd(u,i,f[4],f[2],f[3],aT0,f[1]);case 7:return xd(u,i,f[4],f[2],f[3],lT0,f[1]);case 8:var k=f[4],A=f[3],g=f[2],I=f[1];if(typeof g=="number"){if(typeof A=="number")return A?function(P0,N0){return jr(u,[4,i,Xs(I,P0,N0)],k)}:function(P0){return jr(u,[4,i,Xs(I,sR(I),P0)],k)};var C=A[1];return function(P0){return jr(u,[4,i,Xs(I,C,P0)],k)}}if(g[0]===0){var R=g[2],L=g[1];if(typeof A=="number")return A?function(P0,N0){return jr(u,[4,i,Be(L,R,Xs(I,P0,N0))],k)}:function(P0){return jr(u,[4,i,Be(L,R,Xs(I,sR(I),P0))],k)};var U=A[1];return function(P0){return jr(u,[4,i,Be(L,R,Xs(I,U,P0))],k)}}var B=g[1];if(typeof A=="number")return A?function(P0,N0,J0){return jr(u,[4,i,Be(B,P0,Xs(I,N0,J0))],k)}:function(P0,N0){return jr(u,[4,i,Be(B,P0,Xs(I,sR(I),N0))],k)};var X=A[1];return function(P0,N0){return jr(u,[4,i,Be(B,P0,Xs(I,X,N0))],k)};case 9:return vR(u,i,f[2],f[1],eT0);case 10:var i=[7,i],f=f[1];continue;case 11:var i=[2,i,f[1]],f=f[2];continue;case 12:var i=[3,i,f[1]],f=f[2];continue;case 13:var J=f[3],e0=f[2],i0=eJ(16);oR(i0,e0);var j=nJ(i0);return function(P0){return jr(u,[4,i,j],J)};case 14:var Y=f[3],z=f[2];return function(P0){var N0=P0[1],J0=o1(N0,O1(x2(z)));if(typeof J0[2]=="number")return jr(u,i,w1(J0[1],Y));throw q0(d2,1)};case 15:var F=f[1];return function(P0,N0){return jr(u,[6,i,function(J0){return p(P0,J0,N0)}],F)};case 16:var t0=f[1];return function(P0){return jr(u,[6,i,P0],t0)};case 17:var i=[0,i,f[1]],f=f[2];continue;case 18:var $=f[1];if($[0]===0){var f0=f[2],c0=$[1][1],v0=0,u=function(I0,Q,G){return function(V){return jr(Q,[1,I0,[0,V]],G)}}(i,u,f0),i=v0,f=c0;continue}var s0=f[2],o0=$[1][1],E0=0,u=function(P0,N0,J0){return function(I0){return jr(N0,[1,P0,[1,I0]],J0)}}(i,u,s0),i=E0,f=o0;continue;case 19:throw q0([0,Tr,k$],1);case 20:var k0=f[3],M0=[8,i,h$];return function(P0){return jr(u,M0,k0)};case 21:var D0=f[2];return function(P0){return jr(u,[4,i,zy(GD,P0)],D0)};case 22:var cx=f[1];return function(P0){return jr(u,[5,i,P0],cx)};case 23:var g0=f[2],Z0=f[1];if(typeof Z0=="number")switch(Z0){case 0:return x<50?t1(x+1|0,u,i,g0):y2(t1,[0,u,i,g0]);case 1:return x<50?t1(x+1|0,u,i,g0):y2(t1,[0,u,i,g0]);case 2:throw q0([0,Tr,_$],1);default:return x<50?t1(x+1|0,u,i,g0):y2(t1,[0,u,i,g0])}switch(Z0[0]){case 0:return x<50?t1(x+1|0,u,i,g0):y2(t1,[0,u,i,g0]);case 1:return x<50?t1(x+1|0,u,i,g0):y2(t1,[0,u,i,g0]);case 2:return x<50?t1(x+1|0,u,i,g0):y2(t1,[0,u,i,g0]);case 3:return x<50?t1(x+1|0,u,i,g0):y2(t1,[0,u,i,g0]);case 4:return x<50?t1(x+1|0,u,i,g0):y2(t1,[0,u,i,g0]);case 5:return x<50?t1(x+1|0,u,i,g0):y2(t1,[0,u,i,g0]);case 6:return x<50?t1(x+1|0,u,i,g0):y2(t1,[0,u,i,g0]);case 7:return x<50?t1(x+1|0,u,i,g0):y2(t1,[0,u,i,g0]);case 8:return x<50?t1(x+1|0,u,i,g0):y2(t1,[0,u,i,g0]);case 9:var n0=Z0[2];return x<50?aR(x+1|0,u,i,n0,g0):y2(aR,[0,u,i,n0,g0]);case 10:return x<50?t1(x+1|0,u,i,g0):y2(t1,[0,u,i,g0]);default:return x<50?t1(x+1|0,u,i,g0):y2(t1,[0,u,i,g0])}default:var nx=f[3],xx=f[1],yx=l(f[2],0);return x<50?lR(x+1|0,u,i,nx,xx,yx):y2(lR,[0,u,i,nx,xx,yx])}}}function aR(x,r,e,t,u){if(typeof t=="number")return x<50?t1(x+1|0,r,e,u):y2(t1,[0,r,e,u]);switch(t[0]){case 0:var i=t[1];return function(X){return st(r,e,i,u)};case 1:var f=t[1];return function(X){return st(r,e,f,u)};case 2:var o=t[1];return function(X){return st(r,e,o,u)};case 3:var a=t[1];return function(X){return st(r,e,a,u)};case 4:var y=t[1];return function(X){return st(r,e,y,u)};case 5:var h=t[1];return function(X){return st(r,e,h,u)};case 6:var k=t[1];return function(X){return st(r,e,k,u)};case 7:var A=t[1];return function(X){return st(r,e,A,u)};case 8:var g=t[2];return function(X){return st(r,e,g,u)};case 9:var I=t[3],C=t[2],R=o2(x2(t[1]),C);return function(X){return st(r,e,q2(R,I),u)};case 10:var L=t[1];return function(X,J){return st(r,e,L,u)};case 11:var U=t[1];return function(X){return st(r,e,U,u)};case 12:var B=t[1];return function(X){return st(r,e,B,u)};case 13:throw q0([0,Tr,w$],1);default:throw q0([0,Tr,T$],1)}}function t1(x,r,e,t){var u=[8,e,S$];return x<50?Kl(x+1|0,r,u,t):y2(Kl,[0,r,u,t])}function lR(x,r,e,t,u,i){if(u){var f=u[1];return function(a){return pT0(r,e,t,f,l(i,a))}}var o=[4,e,i];return x<50?Kl(x+1|0,r,o,t):y2(Kl,[0,r,o,t])}function jr(x,r,e){return QC(Kl(0,x,r,e))}function st(x,r,e,t){return QC(aR(0,x,r,e,t))}function pT0(x,r,e,t,u){return QC(lR(0,x,r,e,t,u))}function Ws(x,r){for(var e=r;;){if(typeof e=="number")return 0;switch(e[0]){case 0:var t=e[1],u=uJ(e[2]);return Ws(x,t),Cl(x,u);case 1:var i=e[2],f=e[1];if(i[0]===0){var o=i[1];Ws(x,f),Cl(x,E$);var e=o;continue}var a=i[1];Ws(x,f),Cl(x,A$);var e=a;continue;case 6:var y=e[2];return Ws(x,e[1]),l(y,x);case 7:return Ws(x,e[1]),Zc(x);case 8:var h=e[2];return Ws(x,e[1]),T2(h);case 2:case 4:var k=e[2];return Ws(x,e[1]),Cl(x,k);default:var A=e[2];return Ws(x,e[1]),MK(x,A)}}}function Vs(x,r){for(var e=r;;){if(typeof e=="number")return 0;switch(e[0]){case 0:var t=e[1],u=uJ(e[2]);return Vs(x,t),vr(x,u);case 1:var i=e[2],f=e[1];if(i[0]===0){var o=i[1];Vs(x,f),vr(x,g$);var e=o;continue}var a=i[1];Vs(x,f),vr(x,N$);var e=a;continue;case 6:var y=e[2];return Vs(x,e[1]),vr(x,l(y,0));case 7:var e=e[1];continue;case 8:var h=e[2];return Vs(x,e[1]),T2(h);case 2:case 4:var k=e[2];return Vs(x,e[1]),vr(x,k);default:var A=e[2];return Vs(x,e[1]),ct(x,A)}}}function fJ(x,r){var e=r[1],t=0;return jr(function(u){return Ws(x,u),0},t,e)}function pR(x){return fJ($c,x)}function Ar(x){var r=x[1];return jr(function(e){var t=Zr(64);return Vs(t,e),z1(t)},0,r)}var yR=[0,0];function dR(x,r){var e=x[1+r];if(!(1-(typeof e=="number"?1:0)))return l(Ar(aQ),e);if(Ov(e)===Ea)return l(Ar(lQ),e);if(Ov(e)!==H8)return pQ;for(var t=YC("%.12g",e),u=0,i=Gx(t);;){if(i<=u)return Zx(t,fZ);var f=C1(t,u),o=0;if(48<=f?58>f&&(o=1):f===45&&(o=1),!o)return t;var u=u+1|0}}function cJ(x,r){if(x.length-1<=r)return BF;var e=cJ(x,r+1|0),t=dR(x,r);return p(Ar(XF),t,e)}function rd(x){for(var r=yR[1];;){if(r){var e=0,t=r[2],u=r[1];try{var i=l(u,x)}catch{e=1}var f=0;if(e||!i)f=1;else var o=[0,i[1]];if(f){var r=t;continue}}else var o=0;if(o)return o[1];if(x===HC)return tQ;if(x===JK)return nQ;if(x[1]===KK){var a=x[2],y=a[3],h=a[2],k=a[1];return Je(Ar(GC),k,h,y,y+5|0,uQ)}if(x[1]===Tr){var A=x[2],g=A[3],I=A[2],C=A[1];return Je(Ar(GC),C,I,g,g+6|0,iQ)}if(x[1]===Il){var R=x[2],L=R[3],U=R[2],B=R[1];return Je(Ar(GC),B,U,L,L+6|0,fQ)}if(Ov(x)!==0)return x[1];var X=x.length-1,J=x[1][1];if(2>>0)var e0=cJ(x,2),i0=dR(x,1),j=p(Ar(cQ),i0,e0);else switch(X){case 0:var j=sQ;break;case 1:var j=oQ;break;default:var Y=dR(x,1),j=l(Ar(vQ),Y)}return Zx(J,j)}}function mR(x,r){var e=SV(r),t=e.length-1-1|0,u=0;if(t>=0)for(var i=u;;){var f=X1(e,i)[1+i],o=function(B){return function(X){return X?B===0?QF:HF:B===0?qF:GF}}(i);if(f[0]===0)var a=f[5],y=f[4],h=f[3],k=f[6]?bF:xQ,A=f[2],g=f[7],I=o(f[1]),R=[0,nZ(Ar(rQ),I,g,A,k,h,y,a)];else if(f[1])var R=0;else var C=o(0),R=[0,l(Ar(eQ),C)];if(R){var L=R[1];l(fJ(x,FF),L)}var U=i+1|0;if(t!==i){var i=U;continue}break}return 0}function sJ(x){for(;;){var r=yR[1],e=1-bC(yR,r,[0,x,r]);if(!e)return e}}var yT0=yQ.slice(),dT0=[0];FC(tM,function(x,r){try{try{var e=r?dT0:gK(0);try{rR(0)}catch{}try{var t=rd(x);l(pR($F),t),mR($c,e);var u=zV(0);if(u<0){var i=$y(u);XK(X1(yT0,i)[1+i])}var f=Zc($c),o=f}catch(g){var a=R1(g),y=rd(x);l(pR(WF),y),mR($c,e);var h=rd(a);l(pR(VF),h),mR($c,gK(0));var o=Zc($c)}var k=o}catch(g){var A=R1(g);if(A!==HC)throw q0(A,0);var k=XK(ZF)}return k}catch{return 0}});var kR=[Qr,MQ,zs(0)],ed=0,oJ=-1;function Jl(x,r){return x[13]=x[13]+r[3]|0,iR(r,x[28])}var vJ=1000000010;function hR(x,r){return G0(x[17],r,0,Gx(r))}function td(x){return l(x[19],0)}function aJ(x,r,e){return x[9]=x[9]-r|0,hR(x,e),x[11]=0,0}function nd(x,r){var e=N(r,wx);return e&&aJ(x,Gx(r),r)}function Mv(x,r,e){var t=r[3],u=r[2];nd(x,r[1]),td(x),x[11]=1;var i=(x[6]-e|0)+u|0,f=x[8],o=f<=i?f:i;return x[10]=o,x[9]=x[6]-x[10]|0,l(x[21],x[10]),nd(x,t)}function lJ(x,r){return Mv(x,UQ,r)}function Za(x,r){var e=r[2],t=r[3];return nd(x,r[1]),x[9]=x[9]-e|0,l(x[20],e),nd(x,t)}function mT0(x,r,e){if(typeof e=="number")switch(e){case 0:var t=Xa(x[3]);if(!t)return 0;var u=t[1][1],i=function(yx,px){if(!px)return[0,yx,0];var Tx=px[1],O0=px[2];return jV(yx,Tx)?[0,yx,px]:[0,Tx,i(yx,O0)]};return u[1]=i(x[6]-x[9]|0,u[1]),0;case 1:return Ba(x[2]),0;case 2:return Ba(x[3]),0;case 3:var f=Xa(x[2]);return f?lJ(x,f[1][2]):td(x);case 4:var o=x[10]!==(x[6]-x[9]|0)?1:0;if(!o)return o;var a=x[28],y=a[2];if(y){var h=y[1];if(y[2]){var k=y[2];a[1]=a[1]-1|0,a[2]=k;var A=[0,h]}else{uR(a);var A=[0,h]}}else var A=0;if(!A)return 0;var g=A[1],I=g[1];return x[12]=x[12]-g[3]|0,x[9]=x[9]+I|0,0;default:var C=Ba(x[5]);return C?hR(x,l(x[25],C[1])):0}switch(e[0]){case 0:return aJ(x,r,e[1]);case 1:var R=e[2],L=e[1],U=R[1],B=R[2],X=Xa(x[2]);if(!X)return 0;var J=X[1],e0=J[2];switch(J[1]){case 0:return Za(x,L);case 1:return Mv(x,R,e0);case 2:return Mv(x,R,e0);case 3:return x[9]<(r+Gx(U)|0)?Mv(x,R,e0):Za(x,L);case 4:return x[11]?Za(x,L):x[9]<(r+Gx(U)|0)||((x[6]-e0|0)+B|0)c0){var $=v0;continue}var s0=c0}else var s0=f0;var o0=s0;break}else var o0=i0;var E0=o0-i0|0;return 0<=E0?Za(x,[0,RQ,E0+Y|0,CQ]):Mv(x,[0,LQ,o0+j|0,OQ],x[6]);case 3:var k0=e[2],M0=e[1];if(x[8]<(x[6]-x[9]|0)){var D0=Xa(x[2]);if(D0){var cx=D0[1],g0=cx[2],Z0=cx[1];x[9]=Z0-1>>>0&&lJ(x,g0)}else td(x)}var n0=x[9]-M0|0,nx=k0===1?1:x[9]=e)return G0(x[17],TJ,0,e);G0(x[17],TJ,0,80);var e=e+QM|0}}function kT0(x){return x[1]===kR?Zx(TQ,Zx(x[2],wQ)):SQ}function hT0(x){return x[1]===kR?Zx(hQ,Zx(x[2],kQ)):_Q}function _T0(x){return 0}function wT0(x){return 0}function EJ(x,r){function e(A){return 0}function t(A){return 0}function u(A){return 0}var i=xJ(0),f=[0,oJ,dQ,0];iR(f,i);var o=Dl(0);_R(o),Uv([0,1,f],o);var a=Dl(0),y=Dl(0),h=Dl(0),k=[0,o,Dl(0),h,y,a,78,10,68,78,0,1,1,1,1,rT0,mQ,x,r,u,t,e,0,0,kT0,hT0,_T0,wT0,i];return k[19]=function(A){return G0(k[17],EQ,0,1)},k[20]=function(A){return SJ(k,A)},k[21]=function(A){return SJ(k,A)},k}function AJ(x){function r(e){return Zc(x)}return EJ(function(e,t,u){return 0<=t&&0<=u&&(Gx(e)-u|0)>=t?ZC(x,e,t,u):T2(iZ)},r)}function ER(x){function r(e){return 0}return EJ(function(e,t,u){return rJ(x,e,t,u)},r)}var TT0=lw;function gJ(x){return Zr(TT0)}var ST0=gJ(0),ET0=AJ(tT0),AT0=AJ($c);ER(ST0);function NJ(x,r){var e=Zr(16),t=ER(e);p(x,t,r),Bl(t,0);var u=e[2];if(2>u)return z1(e);var i=u-2|0,f=1;return 0<=i&&(e[2]-i|0)>=1?Ya(e[1],f,i):T2(zZ)}function Xe(x,r){var e=0;if(typeof r=="number")return 0;switch(r[0]){case 0:var t=r[2];if(Xe(x,r[1]),typeof t=="number")switch(t){case 0:return hJ(x,0);case 1:return _J(x,0);case 2:return Bl(x,0);case 3:var u=x[14]=C1(U,j)+J5>>>0){var j=j+1|0;continue}for(var Y=z2(U,i0,j-i0|0),z=e0(j),F=z;;){if(F!==X){var t0=C1(U,F),$=0;if(48<=t0?58>t0&&($=1):t0===45&&($=1),$){var F=F+1|0;continue}}if(z===F)var f0=0;else try{var c0=it(z2(U,z,F-z|0)),f0=c0}catch(b0){var v0=R1(b0);if(v0[1]!==mn)throw q0(v0,0);var f0=J(0)}e0(F)!==X&&J(0);var s0=0;if(N(Y,wx)&&N(Y,FE))var o0=N(Y,"h")?N(Y,"hov")?N(Y,"hv")?N(Y,MM)?J(0):1:2:3:0;else s0=1;if(s0)var o0=4;var B=[0,f0,o0];break}break}return kJ(x,B[1],B[2]);case 2:var E0=r[1],k0=0;if(typeof E0=="number"||E0[0]!==0)k0=1;else{var M0=E0[2],D0=0;if(typeof M0=="number"||M0[0]!==1)D0=1;else var cx=r[2],g0=M0[2],Z0=E0[1];D0&&(k0=1)}if(k0){var n0=r[2],nx=E0;e=2}break;case 3:var xx=r[1],yx=0;if(typeof xx=="number"||xx[0]!==0)yx=1;else{var px=xx[2],Tx=0;if(typeof px=="number"||px[0]!==1)Tx=1;else{var O0=r[2],P0=px[2],N0=xx[1];e=1}Tx&&(yx=1)}if(yx){var J0=r[2],I0=xx;e=3}break;case 4:var Q=r[1],G=0;if(typeof Q=="number"||Q[0]!==0)G=1;else{var V=Q[2],l0=0;if(typeof V=="number"||V[0]!==1)l0=1;else var cx=r[2],g0=V[2],Z0=Q[1];l0&&(G=1)}if(G){var n0=r[2],nx=Q;e=2}break;case 5:var d0=r[1],A0=0;if(typeof d0=="number"||d0[0]!==0)A0=1;else{var M=d0[2],L0=0;if(typeof M=="number"||M[0]!==1)L0=1;else{var O0=r[2],P0=M[2],N0=d0[1];e=1}L0&&(A0=1)}if(A0){var J0=r[2],I0=d0;e=3}break;case 6:var V0=r[2];return Xe(x,r[1]),l(V0,x);case 7:return Xe(x,r[1]),Bl(x,0);default:var B0=r[2];return Xe(x,r[1]),T2(B0)}switch(e){case 0:return Xe(x,Z0),SR(x,g0,cx);case 1:return Xe(x,N0),SR(x,P0,Hy(1,O0));case 2:return Xe(x,nx),ud(x,n0);default:return Xe(x,I0),Yl(x,J0)}}function zr(x){return function(r){var e=r[1],t=0;return jr(function(u){return Xe(x,u),0},t,e)}}for(;;){var IJ=xR[1],gT0=[0,1];if(!(1-bC(xR,IJ,function(x,r){return function(e){return bC(x,1,0)&&(Bl(ET0,0),Bl(AT0,0)),l(r,0)}}(gT0,IJ)))){var NT0=2,IT0=function(x){var r=[0,0],e=Gx(x)-1|0,t=0;if(e>=0)for(var u=t;;){var i=C1(x,u);r[1]=(x8*r[1]|0)+i|0;var f=u+1|0;if(e!==u){var u=f;continue}break}r[1]=r[1]&ZU;var o=1073741823=0)for(var f=i;;){var o=(f*2|0)+3|0,a=X1(x,f)[1+f];X1(e,o)[1+o]=a;var y=f+1|0;if(u!==f){var f=y;continue}break}return[0,NT0,e,Dv[1],wo[1],0,0,Zs[1],0]},AR=function(x,r){var e=x[2].length-1,t=e=0&&(u.length-1-e|0)>=0&&(eV(i,0,u,0,e),f=1),f||T2(SZ),x[2]=u;var o=0}else var o=t;return o},OJ=[0,0],CT0=[0,0],gR=function(x){var r=x[2].length-1;return AR(x,r+1|0),r},Xl=function(x,r){try{var e=p(Dv[28],r,x[3]);return e}catch(i){var t=R1(i);if(t!==w2)throw q0(t,0);var u=gR(x);return x[3]=G0(Dv[4],r,u,x[3]),x[4]=G0(wo[4],u,1,x[4]),u}},NR=function(x,r){return qy(function(e){return Xl(x,e)},r)},LJ=function(x,r,e){return CT0[1]++,p(wo[28],r,x[4])?(AR(x,r+1|0),X1(x[2],r)[1+r]=e,0):(x[6]=[0,[0,r,e],x[6]],0)},IR=function(x){if(x===0)return 0;for(var r=x.length-1-1|0,e=0;;){if(0>r)return e;var t=[0,x[1+r],e],r=r-1|0,e=t}},PR=function(x,r){try{var e=p(Zs[28],r,x[7]);return e}catch(i){var t=R1(i);if(t!==w2)throw q0(t,0);var u=x[1];return x[1]=u+1|0,N(r,wx)&&(x[7]=G0(Zs[4],r,u,x[7])),u}},CR=function(x){return jy(x,0)?[0]:x},RR=function(x,r,e,t,u,i){var f=u[2],o=u[4],a=IR(r),y=IR(e),h=IR(t),k=Hc(function(s0){return Xl(x,s0)},y),A=Hc(function(s0){return Xl(x,s0)},h);x[5]=[0,[0,x[3],x[4],x[6],x[7],k,a],x[5]];var g=Zs[1],I=x[7];function C(s0,o0,E0){return tR(s0,a)?G0(Zs[4],s0,o0,E0):E0}x[7]=G0(Zs[13],C,I,g);var R=[0,Dv[1]],L=[0,wo[1]];$K(function(s0,o0){R[1]=G0(Dv[4],s0,o0,R[1]);var E0=L[1];try{var k0=p(wo[28],o0,x[4]),M0=k0}catch(cx){var D0=R1(cx);if(D0!==w2)throw q0(D0,0);var M0=1}return L[1]=G0(wo[4],o0,M0,E0),0},h,A),$K(function(s0,o0){return R[1]=G0(Dv[4],s0,o0,R[1]),L[1]=G0(wo[4],o0,0,L[1]),0},y,k),x[3]=R[1],x[4]=L[1];var U=0,B=x[6];x[6]=eR(function(s0,o0){return tR(s0[1],k)?o0:[0,s0,o0]},B,U);var X=i?p(f,x,o):l(f,x),J=Ol(x[5]),e0=J[6],i0=J[5],j=J[4],Y=J[3],z=J[2],F=J[1];x[5]=ZK(x[5]),x[7]=b1(function(s0,o0){var E0=p(Zs[28],o0,x[7]);return G0(Zs[4],o0,E0,s0)},j,e0),x[3]=F,x[4]=z;var t0=x[6];x[6]=eR(function(s0,o0){return tR(s0[1],i0)?o0:[0,s0,o0]},t0,Y);var $=0,f0=CR(t),c0=[0,qy(function(s0){var o0=Xl(x,s0);try{for(var E0=x[6];;){if(!E0)throw q0(w2,1);var k0=E0[1],M0=E0[2],D0=k0[2];if(EK(k0[1],o0)===0)return D0;var E0=M0}}catch(g0){var cx=R1(g0);if(cx===w2)return X1(x[2],o0)[1+o0];throw q0(cx,0)}},f0),$],v0=CR(r);return tV([0,[0,X],[0,qy(function(s0){try{var o0=p(Zs[28],s0,x[7]);return o0}catch(k0){var E0=R1(k0);throw E0===w2?q0([0,Tr,DQ],1):q0(E0,0)}},v0),c0]])},id=function(x,r){if(x===0)var e=RJ([0]);else{var t=RJ(qy(IT0,x)),u=x.length-1-1|0,i=0;if(u>=0)for(var f=i;;){var o=(f*2|0)+2|0;t[3]=G0(Dv[4],x[1+f],o,t[3]),t[4]=G0(wo[4],o,1,t[4]);var a=f+1|0;if(u!==f){var f=a;continue}break}var e=t}var y=l(r,e);return OJ[1]=(OJ[1]+e[1]|0)-1|0,e[8]=gx(e[8]),AR(e,3+((X1(e[2],1)[2]*16|0)/32|0)|0),[0,l(y,0),r,y,0]},fd=function(x,r){if(x)return x;var e=$C(Qr,r[1]);return e[1]=r[2],QV(e)},OR=function(x,r,e){if(x)return r;var t=e[8];if(t!==0)for(var u=t;;){if(u){var i=u[2];l(u[1],r);var u=i;continue}break}return r},cd=function(x){var r=gR(x),e=0;if(r%2|0&&(2+((X1(x[2],1)[2]*16|0)/32|0)|0)>=r){var t=gR(x);e=1}if(!e)var t=r;return X1(x[2],t)[1+t]=0,t},LR=function(x,r){for(var e=[0,0],t=r.length-1;;){if(e[1]>=t)return 0;var u=e[1],i=X1(r,u)[1+u],f=function(hx){e[1]++;var W0=e[1];return X1(r,W0)[1+W0]},o=f(0);if(typeof o=="number")switch(o){case 0:var a=f(0),b0=function(W0){return function(T){return W0}}(a);break;case 1:var y=f(0),b0=function(W0){return function(T){return T[1+W0]}}(y);break;case 2:var h=f(0),k=f(0),b0=function(W0,T){return function(K){return K[1+W0][1+T]}}(h,k);break;case 3:var A=f(0),b0=function(W0){return function(T){return l(T[1][1+W0],T)}}(A);break;case 4:var g=f(0),b0=function(W0){return function(T,K){return T[1+W0]=K,0}}(g);break;case 5:var I=f(0),C=f(0),b0=function(W0,T){return function(K){return l(W0,T)}}(I,C);break;case 6:var R=f(0),L=f(0),b0=function(W0,T){return function(K){return l(W0,K[1+T])}}(R,L);break;case 7:var U=f(0),B=f(0),X=f(0),b0=function(W0,T,K){return function(H0){return l(W0,H0[1+T][1+K])}}(U,B,X);break;case 8:var J=f(0),e0=f(0),b0=function(W0,T){return function(K){return l(W0,l(K[1][1+T],K))}}(J,e0);break;case 9:var i0=f(0),j=f(0),Y=f(0),b0=function(W0,T,K){return function(H0){return p(W0,T,K)}}(i0,j,Y);break;case 10:var z=f(0),F=f(0),t0=f(0),b0=function(W0,T,K){return function(H0){return p(W0,T,H0[1+K])}}(z,F,t0);break;case 11:var $=f(0),f0=f(0),c0=f(0),v0=f(0),b0=function(W0,T,K,H0){return function(sx){return p(W0,T,sx[1+K][1+H0])}}($,f0,c0,v0);break;case 12:var s0=f(0),o0=f(0),E0=f(0),b0=function(W0,T,K){return function(H0){return p(W0,T,l(H0[1][1+K],H0))}}(s0,o0,E0);break;case 13:var k0=f(0),M0=f(0),D0=f(0),b0=function(W0,T,K){return function(H0){return p(W0,H0[1+T],K)}}(k0,M0,D0);break;case 14:var cx=f(0),g0=f(0),Z0=f(0),n0=f(0),b0=function(W0,T,K,H0){return function(sx){return p(W0,sx[1+T][1+K],H0)}}(cx,g0,Z0,n0);break;case 15:var nx=f(0),xx=f(0),yx=f(0),b0=function(W0,T,K){return function(H0){return p(W0,l(H0[1][1+T],H0),K)}}(nx,xx,yx);break;case 16:var px=f(0),Tx=f(0),b0=function(W0,T){return function(K){return p(K[1][1+W0],K,T)}}(px,Tx);break;case 17:var O0=f(0),P0=f(0),b0=function(W0,T){return function(K){return p(K[1][1+W0],K,K[1+T])}}(O0,P0);break;case 18:var N0=f(0),J0=f(0),I0=f(0),b0=function(W0,T,K){return function(H0){return p(H0[1][1+W0],H0,H0[1+T][1+K])}}(N0,J0,I0);break;case 19:var Q=f(0),G=f(0),b0=function(W0,T){return function(K){var H0=l(K[1][1+T],K);return p(K[1][1+W0],K,H0)}}(Q,G);break;case 20:var V=f(0),l0=f(0);cd(x);var b0=function(W0,T){return function(K){return l(qx(T,W0,0),T)}}(V,l0);break;case 21:var d0=f(0),A0=f(0);cd(x);var b0=function(W0,T){return function(K){var H0=K[1+T];return l(qx(H0,W0,0),H0)}}(d0,A0);break;case 22:var M=f(0),L0=f(0),V0=f(0);cd(x);var b0=function(W0,T,K){return function(H0){var sx=H0[1+T][1+K];return l(qx(sx,W0,0),sx)}}(M,L0,V0);break;default:var B0=f(0),vx=f(0);cd(x);var b0=function(W0,T){return function(K){var H0=l(K[1][1+T],K);return l(qx(H0,W0,0),H0)}}(B0,vx)}else var b0=o;LJ(x,i,b0),e[1]++}},UJ=function(x,r){var e=r.length-1,t=$C(0,e),u=e-1|0,i=0;if(u>=0)for(var f=i;;){var o=X1(r,f)[1+f];if(typeof o=="number")switch(o){case 0:var h=function(g){function I(C){var R=t[1+g];if(I===R)throw q0([0,Il,x],1);return l(R,C)}return I}(f);break;case 1:var a=[];C0(a,[_8,function(g,I){return function(C){var R=t[1+I];if(g===R)throw q0([0,Il,x],1);var L=Ov(R);if(Pv===L)return R[1];if(_8!==L)return R;var U=R[1];R[1]=iT0;try{var B=l(U,0);return $V(R,B),B}catch(J){var X=R1(J);throw R[1]=function(e0){throw q0(X,0)},q0(X,0)}}}(a,f)]);var h=a;break;default:var y=function(g){throw q0([0,Il,x],1)},h=[0,y,y,y,0]}else var h=o[0]===0?UJ(x,o[1]):o[1];t[1+f]=h;var k=f+1|0;if(u!==f){var f=k;continue}break}return t},MJ=function(x,r,e){if(Ov(e)===0&&x.length-1<=e.length-1){var t=x.length-1-1|0,u=0;if(t>=0)for(var i=u;;){var f=e[1+i],o=X1(x,i)[1+i];if(typeof o=="number")if(o===2){var a=0;if(Ov(f)===0&&f.length-1===4)for(var y=0,h=r[1+i];;){h[1+y]=f[1+y];var k=y+1|0;if(y!==3){var y=k;continue}break}else a=1;if(a)throw q0([0,Tr,jQ],1)}else r[1+i]=f;else o[0]===0&&MJ(o[1],r[1+i],f);var A=i+1|0;if(t!==i){var i=A;continue}break}return 0}throw q0([0,Tr,zQ],1)};try{DK("TMPDIR")}catch(x){var DJ=R1(x);if(DJ!==w2)throw q0(DJ,0)}try{DK("TEMP")}catch(x){var jJ=R1(x);if(jJ!==w2)throw q0(jJ,0)}N(WK,hz)&&N(WK,"Win32");var qc=function(x,r){function e(t){return ct(x,t)}return b3<=r?(e(ha|r>>>18|0),e(m1|(r>>>12|0)&63),e(m1|(r>>>6|0)&63),e(m1|r&63)):vP<=r?(e(Aa|r>>>12|0),e(m1|(r>>>6|0)&63),e(m1|r&63)):m1<=r?(e(ma|r>>>6|0),e(m1|r&63)):e(r)},To=[Qr,YQ,zs(0)],zJ=0,KJ=0,JJ=0,YJ=0,BJ=0,XJ=0,WJ=0,VJ=0,ZJ=0,$J=0,m=function(x){if(x[3]===x[2])return-1;var r=x[1][1+x[3]];return x[3]=x[3]+1|0,r===10&&(x[5]!==0&&(x[5]=x[5]+1|0),x[4]=x[3]),r},r0=function(x,r){return x[9]=x[3],x[10]=x[4],x[11]=x[5],x[12]=r,0},pr=function(x){return x[6]=x[3],x[7]=x[4],x[8]=x[5],r0(x,-1)},w=function(x){return x[3]=x[9],x[4]=x[10],x[5]=x[11],x[12]},$a=function(x){return x[3]=x[6],x[4]=x[7],x[5]=x[8],0},UR=function(x,r){return x[6]=r,0},sd=function(x){return x[3]-x[6]|0},n1=function(x){var r=x[3]-x[6]|0,e=x[6],t=x[1];return 0<=e&&0<=r&&(t.length-1-r|0)>=e?nV(t,e,r):T2(EZ)},FJ=function(x){var r=x[6];return X1(x[1],r)[1+r]},Wl=function(x,r,e,t){for(var u=[0,r],i=[0,e],f=[0,0];;){if(0>=i[1])return f[1];var o=x[1+u[1]];if(0>o)throw q0(To,1);if(Jr>>18|0),Xr(t,f[1]+1|0,m1|(o>>>12|0)&63),Xr(t,f[1]+2|0,m1|(o>>>6|0)&63),Xr(t,f[1]+3|0,m1|o&63),f[1]=f[1]+4|0}else Xr(t,f[1],Aa|o>>>12|0),Xr(t,f[1]+1|0,m1|(o>>>6|0)&63),Xr(t,f[1]+2|0,m1|o&63),f[1]=f[1]+3|0;else Xr(t,f[1],ma|o>>>6|0),Xr(t,f[1]+1|0,m1|o&63),f[1]=f[1]+2|0;else Xr(t,f[1],o),f[1]++;u[1]++,i[1]+=-1}},QJ=function(x){for(var r=Gx(x),e=za(r,0),t=[0,0],u=[0,0];;){if(t[1]>=r)return[0,e,u[1],$J,ZJ,VJ,WJ,XJ,BJ,YJ,JJ,KJ,zJ];var i=ix(x,t[1]),f=0;if(ma<=i)if(ha<=i)if(Qr<=i)f=1;else{var o=ix(x,t[1]+1|0),a=ix(x,t[1]+2|0),y=ix(x,t[1]+3|0),h=(o>>>6|0)!==2?1:0;if(h)var A=h;else var k=(a>>>6|0)!==2?1:0,A=k||((y>>>6|0)!==2?1:0);if(A)throw q0(To,1);var g=(i&7)<<18|(o&63)<<12|(a&63)<<6|y&63;if(c5>>6|0)!==2?1:0,U=L||((C>>>6|0)!==2?1:0);if(U)var X=U;else var B=55296<=R?1:0,X=B&&(R<=57343?1:0);if(X)throw q0(To,1);e[1+u[1]]=R,t[1]=t[1]+3|0}else{var J=ix(x,t[1]+1|0);if((J>>>6|0)!==2)throw q0(To,1);e[1+u[1]]=(i&31)<<6|J&63,t[1]=t[1]+2|0}else m1<=i?f=1:(e[1+u[1]]=i,t[1]++);if(f)throw q0(To,1);u[1]++}},Vl=function(x,r,e){var t=x[6]+r|0,u=g1(e*4|0),i=x[1];if((t+e|0)<=i.length-1)return Ya(u,0,Wl(i,t,e,u));throw q0([0,Tr,JQ],1)},Kx=function(x){var r=x[6],e=x[3]-r|0,t=g1(e*4|0);return Ya(t,0,Wl(x[1],r,e,t))},od=function(x,r){var e=x[6],t=x[3]-e|0,u=g1(t*4|0);return cR(r,u,0,Wl(x[1],e,t,u))},Zl=function(x){var r=x.length-1,e=g1(r*4|0);return Ya(e,0,Wl(x,0,r,e))},HJ=function(x,r){return x[3]=x[3]-r|0,0},Gc=function(x){return typeof x=="number"?0:x[0]===0?1:x[1]},jv=function(x,r,e,t){var u=Gc(x),i=Gc(t),f=i<=u?u+1|0:i+1|0;return f===1?[0,r,e]:[1,f,r,e,x,t]},vd=function(x,r,e,t){var u=Gc(x),i=Gc(t),f=i<=u?u+1|0:i+1|0;return[1,f,r,e,x,t]},qJ=function(x,r,e,t){var u=Gc(x),i=Gc(t);if((i+2|0)=i)return jv(x,r,e,t);var C=t[5],R=t[4],L=t[3],U=t[2],B=Gc(R);if(B<=Gc(C))return vd(jv(x,r,e,R),U,L,C);var X=R[4],J=R[3],e0=R[2],i0=jv(R[5],U,L,C);return vd(jv(x,r,e,X),e0,J,i0)},RT0=0,Fa=function(x,r){for(var e=x,t=r;;){if(typeof e=="number")return t;if(e[0]===0)return[0,e[1],0,t];var u=[0,e[2],e[4],t],e=e[3],t=u}},GJ=function(x,r){if(!x)return 0;var e=x[1],t=Fa(x[2],x[3]);return[0,e,function(u){return GJ(t,u)}]},OT0=function(x){var r=Fa(x,0);return function(e){return GJ(r,e)}},$s=function(x){return typeof x=="number"?0:x[0]===0?1:x[1]},LT0=function(x){return[0,x]},We=function(x,r,e){var t=0;if(typeof x=="number"){if(typeof e=="number")return[0,r];e[0]===1&&(t=1)}else if(x[0]===0)typeof e!="number"&&e[0]===1&&(t=1);else{var u=x[1];if(typeof e!="number"&&e[0]===1){var i=e[1],f=i<=u?u+1|0:i+1|0;return[1,f,r,x,e]}var o=u;t=2}switch(t){case 1:var o=e[1];break;case 0:return[1,2,r,x,e]}return[1,o+1|0,r,x,e]},So=function(x,r,e){var t=$s(x),u=$s(e),i=u<=t?t+1|0:u+1|0;return[1,i,r,x,e]},ad=function(x,r){if(r===0)return 0;if(r===1)return[0,l(x,0)];var e=r>>>1|0,t=ad(x,e),u=l(x,0),i=ad(x,(r-e|0)-1|0);return[1,$s(t)+1|0,u,t,i]},UT0=function(x){var r=[0,0],e=x.length-1;return ad(function(t){var u=r[1],i=X1(x,u)[1+u];return r[1]++,i},e)},jt=function(x,r,e){var t=$s(x),u=$s(e);if((u+2|0)=u)return We(x,r,e);var A=e[4],g=e[3],I=e[2],C=$s(g);if(C<=$s(A))return So(We(x,r,g),I,A);var R=g[3],L=g[2],U=We(g[4],I,A);return So(We(x,r,R),L,U)},bJ=function(x,r){if(typeof r=="number")return[0,x];if(r[0]===0)return We([0,x],r[1],0);var e=r[4],t=r[2];return jt(bJ(x,r[3]),t,e)},xY=function(x,r){if(typeof r=="number")return[0,x];if(r[0]===0)return We(0,r[1],[0,x]);var e=r[3],t=r[2];return jt(e,t,xY(x,r[4]))},K2=function(x,r,e){if(typeof x=="number")return bJ(r,e);if(x[0]===0){if(typeof e!="number"){if(e[0]===0)return We(x,r,e);var t=e[4],u=e[3],i=e[2];return 3>1,T=E0(W0,Z0),K=T[1],H0=E0(g0-W0|0,T[2]),sx=K,ux=H0[1],z0=0,Px=H0[2];;){if(sx){if(ux){var kx=ux[2],$x=ux[1],Qx=sx[2],j0=sx[1],rr=p(s0,j0,$x);if(rr===0){var sx=Qx,ux=kx,z0=[0,j0,z0];continue}if(0>1,T=o0(W0,Z0),K=T[1],H0=o0(g0-W0|0,T[2]),sx=K,ux=H0[1],z0=0,Px=H0[2];;){if(sx){if(ux){var kx=ux[2],$x=ux[1],Qx=sx[2],j0=sx[1],rr=p(s0,j0,$x);if(rr===0){var sx=Qx,ux=kx,z0=[0,j0,z0];continue}if(0<=rr){var ux=kx,z0=[0,$x,z0];continue}var sx=Qx,z0=[0,j0,z0];continue}var zx=Qc(sx,z0)}else var zx=Qc(ux,z0);return[0,zx,Px]}},k0=Fc(j),M0=2<=k0?o0(k0,j)[1]:j,D0=function(g0,Z0){if(3>=g0>>>0)switch(g0){case 0:return[0,0,Z0];case 1:if(Z0)return[0,[0,Z0[1]],Z0[2]];break;case 2:if(Z0){var n0=Z0[2];if(n0)return[0,[1,2,n0[1],[0,Z0[1]],0],n0[2]]}break;default:if(Z0){var nx=Z0[2];if(nx){var xx=nx[2];if(xx)return[0,[1,2,nx[1],[0,Z0[1]],[0,xx[1]]],xx[2]]}}}var yx=g0/2|0,px=D0(yx,Z0),Tx=px[2],O0=px[1];if(!Tx)throw q0([0,Tr,FQ],1);var P0=Tx[1],N0=D0((g0-yx|0)-1|0,Tx[2]),J0=N0[2];return[0,So(O0,P0,N0[1]),J0]};return D0(Fc(M0),M0)[1]}var cx=c0[1];return r(cx,r(v0,r(f0,r(t0,[0,z]))))}function i0(j,Y,z){l(zr(Y),WQ);var F=nY(z);F&&l(zr(Y),VQ);var t0=0;return b1(function($,f0){return $&&l(zr(Y),XQ),p(j,Y,f0),1},t0,F),F&&l(zr(Y),ZQ),l(zr(Y),$Q)}return[0,u1,jR,t,r,LT0,u,i,f,a,y,h,k,A,g,J,I,C,R,L,U,DR,nY,$l,rY,eY,MT0,$l,rY,B,X,OT0,e0,i0,ad,UT0,function(j,Y){for(var z=Y;;){if(typeof z=="number")return 0;if(z[0]===0){var F=z[1];return l(j,F)?[0,F]:0}var t0=z[2],$=z[4],f0=z[3];if(!l(j,t0)){var z=$;continue}for(var c0=t0,v0=f0;;){if(typeof v0=="number")return[0,c0];if(v0[0]===0){var s0=v0[1];return l(j,s0)?[0,s0]:[0,c0]}var o0=v0[2],E0=v0[4],k0=v0[3];if(l(j,o0)){var c0=o0,v0=k0;continue}var v0=E0}}}]},iY=function(x){switch(x[0]){case 0:return 1;case 1:return 2;case 2:return 2;default:return 3}},Yx=function(x,r){if(!r)return r;var e=r[1],t=l(x,e);return e===t?r:[0,t]},fx=function(x,r,e,t,u){var i=p(x,r,e);return e===i?t:l(u,i)},Q0=function(x,r,e,t){var u=l(x,r);return r===u?e:l(t,u)},r2=function(x,r){var e=r[1],t=r[2];return fx(x,e,t,r,function(u){return[0,e,u]})},fY=function(x,r){return Yx(function(e){var t=e[1],u=e[2];return fx(x,t,u,e,function(i){return[0,t,i]})},r)},gr=function(x,r){var e=b1(function(u,i){var f=u[2],o=u[1],a=l(x,i),y=f||(a!==i?1:0);return[0,[0,a,o],y]},EH,r),t=e[1];return e[2]?gx(t):r},zR=id(gH,function(x){var r=NR(x,AH),e=r[1],t=r[2],u=r[3],i=r[4],f=r[5],o=r[6],a=r[7],y=r[8],h=r[9],k=r[10],A=r[11],g=r[12],I=r[13],C=r[14],R=r[15],L=r[16],U=r[17],B=r[18],X=r[19],J=r[20],e0=r[21],i0=r[22],j=r[23],Y=r[24],z=r[25],F=r[26],t0=r[27],$=r[28],f0=r[29],c0=r[30],v0=r[31],s0=r[32],o0=r[33],E0=r[34],k0=r[35],M0=r[36],D0=r[37],cx=r[38],g0=r[39],Z0=r[40],n0=r[41],nx=r[42],xx=r[43],yx=r[44],px=r[45],Tx=r[46],O0=r[47],P0=r[48],N0=r[49],J0=r[50],I0=r[51],Q=r[52],G=r[53],V=r[54],l0=r[55],d0=r[56],A0=r[58],M=r[59],L0=r[60],V0=r[61],B0=r[62],vx=r[63],b0=r[64],hx=r[65],W0=r[66],T=r[67],K=r[68],H0=r[69],sx=r[70],ux=r[71],z0=r[72],Px=r[73],kx=r[74],$x=r[75],Qx=r[76],j0=r[77],rr=r[78],zx=r[79],X0=r[80],ir=r[81],K0=r[82],Sr=r[83],Dr=r[84],ax=r[85],br=r[86],t2=r[87],k1=r[88],Rr=r[89],U1=r[90],_=r[91],b=r[92],x0=r[93],S0=r[94],H=r[95],h0=r[96],Y0=r[97],U0=r[98],tx=r[99],Wx=r[Uc],Lx=r[Pt],ur=r[Cs],Vx=r[tt],er=r[ln],Jx=r[Ue],Or=r[_1],Xx=r[Rs],X2=r[fn],at=r[wv],de=r[P1],En=r[ut],ro=r[fe],An=r[Er],fs=r[Vi],me=r[Ps],gn=r[Ns],re=r[aa],Vt=r[pa],dr=r[xl],Zt=r[Ef],Nn=r[G3],Hv=r[qr],ke=r[Rt],lt=r[Ra],Ko=r[gi],eo=r[U4],a2=r[Jr],to=r[m1],In=r[yl],pt=r[fz],Jo=r[lh],no=r[pz],qv=r[$U],Yo=r[Sj],uo=r[xK],yt=r[UD],cs=r[k_],Bo=r[HM],io=r[dD],a3=r[uz],Xo=r[BD],Pn=r[tD],Gv=r[Ij],fo=r[144],Wo=r[145],bv=r[146],ss=r[147],Vo=r[zM],Zo=r[dj],xa=r[150],l3=r[151],Lm=r[152],p3=r[153],C6=r[154],R6=r[155],y3=r[156],Um=r[157],Mm=r[158],ra=r[159],d3=r[zS],Dm=r[FD],jm=r[zD],zm=r[Nz],M1=r[OT],dt=r[wz],m3=r[CD],q=r[DN],P=r[RT],D=r[e5],T0=r[Z9],R0=r[Ck],rx=r[OD],Sx=r[Aj],Dx=r[Qz],jx=r[mk],bx=r[cD],mr=r[_M],or=r[qj],_r=r[DU],cr=r[JD],sr=r[AC],Pr=r[Hk],$r=r[ey],Wr=r[OI],Vr=r[Bw],Ur=r[qh],Fr=r[rA],x1=r[oj],l1=r[RS],p1=r[kM],f1=r[bD],h1=r[ma],Cr=r[KM],D1=r[mh],n2=r[DM],A1=r[Ej],W2=r[oM],ee=r[Xz],Ax=r[pA],Kr=r[iK],r1=r[JU],lr=r[Gj],Br=r[Kz],V1=r[VM],he=r[Oz],V2=r[ZT],_e=r[bz],$t=r[iz],N2=r[AM],u2=r[Vz],I2=r[XM],l2=r[cE],mt=r[UU],P2=r[Vj],kt=r[NT],Ze=r[FI],we=r[gj],Te=r[Lz],Se=r[Qj],Ee=r[_j],Ae=r[WD],Z1=r[VU],ge=r[x8],ht=r[Aa],$e=r[kj],te=r[LD],C2=r[Zz],Ft=r[hj],os=r[az],_t=r[ND],wt=r[xj],Qt=r[rK],ne=r[kD],Tt=r[nK],Ht=r[Ez],ue=r[Dz],qt=r[Fg],Cn=r[dT],Gt=r[qS],Rn=r[ha],bt=r[OU],On=r[cz],$o=r[Mj],xn=r[$5],St=r[mS],vs=r[_8],as=r[J8],ls=r[Qr],Fo=r[V4],k3=r[Pv],co=r[vj],Qo=r[Ea],ea=r[H8],h3=r[Pa],_3=r[B3],ta=r[yv],na=r[ZM],Ln=r[258],w3=r[YM],T3=r[260],S3=r[261],Ne=r[262],E3=r[263],A3=r[Uj],ua=r[Dj],ps=r[266],so=r[267],Ho=r[268],qo=r[iM],g3=r[270],ia=r[Hx],ys=r[272],oo=r[273],Go=r[274],Et=r[TM],Fe=r[276],ds=r[277],At=r[tz],rn=r[279],en=r[Jz],bo=r[ek],N3=r[282],I3=r[sj],xv=r[284],P3=r[ED],fa=r[aj],Km=r[57];function Un(n,s,c){var v=c[2],d=c[1],S=c[4],E=c[3],O=Yx(l(n[1][1+Ax],n),d),Z=p(n[1][1+n0],n,v);return v===Z&&d===O?c:[0,O,Z,E,S]}function Jm(n,s,c){var v=c[4],d=c[3],S=c[2],E=c[1],O=p(n[1][1+Fe],n,E),Z=Yx(l(n[1][1+U],n),S),y0=p(n[1][1+$],n,d),_0=p(n[1][1+n0],n,v);return E===O&&d===y0&&S===Z&&v===_0?c:[0,O,Z,y0,_0]}function Ym(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+Ax],n,S),O=p(n[1][1+N0],n,d),Z=p(n[1][1+n0],n,v);return S===E&&d===O&&v===Z?c:[0,E,O,Z]}function IL(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+M],n,S),O=p(n[1][1+N0],n,d),Z=p(n[1][1+n0],n,v);return S===E&&d===O&&v===Z?c:[0,E,O,Z]}function PL(n,s,c){var v=c[2],d=v[2],S=v[1],E=c[1],O=G0(n[1][1+o],n,s,S),Z=Yx(l(n[1][1+Ax],n),d);return S===O&&d===Z?c:[0,E,[0,O,Z]]}function CL(n,s,c){var v=c[3],d=c[2],S=c[1],E=gr(p(n[1][1+a],n,d),S),O=p(n[1][1+n0],n,v);return S===E&&v===O?c:[0,E,d,O]}function RL(n,s,c){var v=c[4],d=c[2],S=p(n[1][1+Ax],n,d),E=p(n[1][1+n0],n,v);return d===S&&v===E?c:[0,c[1],S,c[3],E]}function OL(n,s,c){var v=c[3],d=c[2],S=p(n[1][1+Ax],n,d),E=p(n[1][1+n0],n,v);return d===S&&v===E?c:[0,c[1],S,E]}function LL(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+Ax],n,S);if(typeof d=="number")var Cx=d;else if(d[0]===0)var O=d[1],Z=p(n[1][1+$],n,O),y0=O===Z?d:[0,Z],Cx=y0;else var _0=d[1],F0=p(n[1][1+$],n,_0),ox=_0===F0?d:[1,F0],Cx=ox;var dx=p(n[1][1+n0],n,v);return E===S&&dx===v?c:[0,E,Cx,dx]}function UL(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+Ax],n,S),O=p(n[1][1+F],n,d),Z=p(n[1][1+n0],n,v);return E===S&&O===d&&Z===v?c:[0,E,O,Z]}function ML(n,s,c){var v=c[4],d=c[3],S=c[2],E=c[1],O=r2(l(n[1][1+Et],n),E);if(S)var Z=S[1],y0=Z[1],_0=Z[2],F0=function(d1){return[0,[0,y0,d1]]},ox=fx(l(n[1][1+so],n),y0,_0,S,F0);else var ox=S;if(d)var Cx=d[1],dx=Cx[1],wr=Cx[2],c1=function(d1){return[0,[0,dx,d1]]},s1=fx(l(n[1][1+Et],n),dx,wr,d,c1);else var s1=d;var y1=p(n[1][1+n0],n,v);return E===O&&S===ox&&d===s1&&v===y1?c:[0,O,ox,s1,y1]}function DL(n,s,c){var v=c[2],d=c[1],S=p(n[1][1+Ax],n,d),E=p(n[1][1+n0],n,v);return d===S&&v===E?c:[0,S,E]}function jL(n,s,c){var v=c[1],d=p(n[1][1+n0],n,v);return v===d?c:[0,d]}function zL(n,s){return s}function KL(n,s,c){var v=c[3],d=c[2],S=c[1],E=gr(l(n[1][1+cx],n),S),O=gr(l(n[1][1+Ax],n),d),Z=p(n[1][1+n0],n,v);return S===E&&d===O&&v===Z?c:[0,E,O,Z]}function JL(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+Ax],n,S),O=r2(l(n[1][1+g0],n),d),Z=p(n[1][1+n0],n,v);return S===E&&d===O&&v===Z?c:[0,E,O,Z]}function YL(n,s){var c=s[2],v=c[3],d=c[2],S=c[1],E=s[1],O=Yx(l(n[1][1+Ax],n),S),Z=p(n[1][1+O0],n,d),y0=p(n[1][1+n0],n,v);return S===O&&d===Z&&v===y0?s:[0,E,[0,O,Z,y0]]}function BL(n,s,c){var v=c[3],d=c[2],S=c[1],E=c[4],O=p(n[1][1+Ax],n,S),Z=gr(l(n[1][1+xx],n),d),y0=p(n[1][1+n0],n,v);return S===O&&d===Z&&v===y0?c:[0,O,Z,y0,E]}function C3(n,s,c){var v=c[1],d=p(n[1][1+n0],n,v);return v===d?c:[0,d]}function Bm(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+Ax],n,d),O=p(n[1][1+n0],n,v);return d===E&&v===O?s:[0,S,[0,E,O]]}function XL(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+Ax],n,d),O=p(n[1][1+n0],n,v);return d===E&&v===O?s:[0,S,[0,E,O]]}function WL(n,s){return[0,p(n[1][1+N0],n,s),0]}function VL(n,s){var c=l(n[1][1+P0],n),v=b1(function(S,E){var O=S[2],Z=S[1],y0=l(c,E);if(!y0)return[0,Z,1];if(y0[2])return[0,Qc(y0,Z),1];var _0=y0[1],F0=O||(E!==_0?1:0);return[0,[0,_0,Z],F0]},SH,s),d=v[1];return v[2]?gx(d):s}function Xm(n,s){return p(n[1][1+O0],n,s)}function Wm(n,s,c){var v=c[2],d=c[1],S=gr(l(n[1][1+Ax],n),d),E=p(n[1][1+n0],n,v);return d===S&&v===E?c:[0,S,E]}function ZL(n,s,c){var v=c[2],d=c[1],S=c[3],E=Yx(l(n[1][1+Ax],n),d),O=p(n[1][1+n0],n,v);return d===E&&v===O?c:[0,E,O,S]}function ca(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+mr],n,d),O=p(n[1][1+n0],n,v);return d===E&&v===O?s:[0,S,[0,E,O]]}function Vm(n,s){var c=s[2],v=c[3],d=c[2],S=d[2],E=d[1],O=c[1],Z=s[1],y0=p(n[1][1+M1],n,E),_0=Yx(l(n[1][1+$],n),S),F0=p(n[1][1+n0],n,v);return y0===E&&_0===S&&F0===v?s:[0,Z,[0,O,[0,y0,_0],F0]]}function Zm(n,s){var c=s[2],v=s[1],d=p(n[1][1+i0],n,c);return jy(d,c)?s:[0,v,d]}function $L(n,s){return p(n[1][1+Ax],n,s)}function FL(n,s){var c=s[2],v=c[2],d=c[1],S=s[1];if(d)var E=d[1],O=function(_0){return[0,_0]},Z=Q0(l(n[1][1+Ax],n),E,d,O);else var Z=d;var y0=p(n[1][1+n0],n,v);return d===Z&&v===y0?s:[0,S,[0,Z,y0]]}function QL(n,s){return p(n[1][1+Ax],n,s)}function O6(n,s,c){return G0(n[1][1+K0],n,s,c)}function HL(n,s,c){var v=c[2],d=v[2],S=v[1],E=c[1],O=G0(n[1][1+j0],n,s,S),Z=p(n[1][1+n0],n,d);return O===S&&d===Z?c:[0,E,[0,O,Z]]}function $m(n,s,c){return G0(n[1][1+K0],n,s,c)}function qL(n,s,c){var v=c[2],d=v[2],S=v[1],E=c[1],O=G0(n[1][1+zx],n,s,S),Z=p(n[1][1+Z1],n,d);return S===O&&d===Z?c:[0,E,[0,O,Z]]}function Fm(n,s,c){switch(c[0]){case 0:var v=c[1],d=function(O){return[0,O]};return Q0(p(n[1][1+X0],n,s),v,c,d);case 1:var S=c[1],E=function(O){return[1,O]};return Q0(p(n[1][1+rr],n,s),S,c,E);default:return c}}function L6(n,s,c){return G0(n[1][1+K0],n,s,c)}function Qm(n,s,c){return G0(n[1][1+K0],n,s,c)}function GL(n,s,c){var v=c[2],d=v[2],S=v[1],E=c[1],O=G0(n[1][1+B0],n,s,S),Z=p(n[1][1+n0],n,d);return O===S&&d===Z?c:[0,E,[0,O,Z]]}function Hm(n,s,c){return p(n[1][1+Cn],n,c)}function U6(n,s,c){return G0(n[1][1+kx],n,s,c)}function bL(n,s,c){var v=c[1],d=c[2];function S(E){return[0,v,E]}return fx(p(n[1][1+Qx],n,s),v,d,c,S)}function M6(n,s,c){var v=c[1],d=c[2];function S(E){return[0,v,E]}return fx(p(n[1][1+Px],n,s),v,d,c,S)}function xU(n,s,c){var v=c[1],d=c[2];function S(E){return[0,v,E]}return fx(p(n[1][1+V0],n,s),v,d,c,S)}function rU(n,s,c){switch(c[0]){case 0:var v=c[1],d=function(Cx){return[0,Cx]};return Q0(p(n[1][1+b0],n,s),v,c,d);case 1:var S=c[1],E=function(Cx){return[1,Cx]};return Q0(p(n[1][1+W0],n,s),S,c,E);case 2:var O=c[1],Z=function(Cx){return[2,Cx]};return Q0(p(n[1][1+sx],n,s),O,c,Z);case 3:var y0=c[1],_0=function(Cx){return[3,Cx]};return Q0(p(n[1][1+K],n,s),y0,c,_0);default:var F0=c[1],ox=function(Cx){return[4,Cx]};return Q0(p(n[1][1+H0],n,s),F0,c,ox)}}function eU(n,s,c){var v=c[2],d=v[4],S=v[3],E=v[2],O=v[1],Z=c[1],y0=G0(n[1][1+T],n,s,O),_0=G0(n[1][1+hx],n,s,E),F0=p(n[1][1+Z1],n,S);if(d){var ox=0;if(y0[0]===3){var Cx=_0[2];if(Cx[0]===2)var wr=Nr(y0[1][2][1],Cx[1][1][2][1]);else ox=1}else ox=1;if(ox)var dx=O===y0?1:0,wr=dx&&(E===_0?1:0)}else var wr=d;return y0===O&&_0===E&&F0===S&&d===wr?c:[0,Z,[0,y0,_0,F0,wr]]}function qm(n,s,c){if(c[0]===0){var v=c[1],d=function(O){return[0,O]};return Q0(p(n[1][1+ux],n,s),v,c,d)}var S=c[1];function E(O){return[1,O]}return Q0(p(n[1][1+vx],n,s),S,c,E)}function tU(n,s,c,v){return G0(n[1][1+rn],n,c,v)}function D6(n,s,c,v){return G0(n[1][1+Or],n,c,v)}function nU(n,s,c,v){return G0(n[1][1+Tx],n,c,v)}function uU(n,s,c){return p(n[1][1+M1],n,c)}function iU(n,s,c){var v=c[2],d=c[1];switch(v[0]){case 0:var S=v[1],E=S[3],O=S[2],Z=S[1],y0=gr(p(n[1][1+z0],n,s),Z),_0=p(n[1][1+z],n,O),F0=p(n[1][1+n0],n,E),ox=0;if(y0===Z&&_0===O&&F0===E){var Cx=v;ox=1}if(!ox)var Cx=[0,[0,y0,_0,F0]];var et=Cx;break;case 1:var dx=v[1],wr=dx[3],c1=dx[2],s1=dx[1],y1=gr(p(n[1][1+ir],n,s),s1),d1=p(n[1][1+z],n,c1),Qe=p(n[1][1+n0],n,wr),He=0;if(wr===Qe&&y1===s1&&d1===c1){var qe=v;He=1}if(!He)var qe=[1,[0,y1,d1,Qe]];var et=qe;break;case 2:var Ie=v[1],Ge=Ie[2],be=Ie[1],gt=Ie[3],xt=G0(n[1][1+kx],n,s,be),rt=p(n[1][1+z],n,Ge),Mn=0;if(be===xt&&Ge===rt){var Dn=v;Mn=1}if(!Mn)var Dn=[2,[0,xt,rt,gt]];var et=Dn;break;default:var ms=v[1],ks=function(hs){return[3,hs]},et=Q0(l(n[1][1+$x],n),ms,v,ks)}return v===et?c:[0,d,et]}function Gm(n,s){return G0(n[1][1+K0],n,0,s)}function fU(n,s,c){var v=s?s[1]:0;return G0(n[1][1+K0],n,[0,v],c)}function R3(n,s){return p(n[1][1+en],n,s)}function cU(n,s){return p(n[1][1+en],n,s)}function sU(n,s){return G0(n[1][1+ds],n,TH,s)}function oU(n,s,c){return G0(n[1][1+ds],n,[0,s],c)}function vU(n,s){return G0(n[1][1+ds],n,wH,s)}function aU(n,s,c){var v=c[5],d=c[4],S=c[3],E=c[2],O=c[1],Z=p(n[1][1+Fe],n,O),y0=Yx(l(n[1][1+U],n),E),_0=Yx(l(n[1][1+$],n),S),F0=Yx(l(n[1][1+$],n),d),ox=p(n[1][1+n0],n,v);return O===Z&&S===_0&&E===y0&&S===_0&&d===F0&&v===ox?c:[0,Z,y0,_0,F0,ox]}function j6(n,s){return p(n[1][1+Cn],n,s)}function lU(n,s){return p(n[1][1+M1],n,s)}function pU(n,s){var c=s[1],v=s[2];function d(S){return[0,c,S]}return fx(l(n[1][1+rn],n),c,v,s,d)}function yU(n,s){var c=s[1],v=s[2];function d(S){return[0,c,S]}return fx(l(n[1][1+Or],n),c,v,s,d)}function z6(n,s){var c=s[1],v=s[2];function d(S){return[0,c,S]}return fx(l(n[1][1+Tx],n),c,v,s,d)}function dU(n,s){switch(s[0]){case 0:var c=s[1],v=function(dx){return[0,dx]};return Q0(l(n[1][1+h0],n),c,s,v);case 1:var d=s[1],S=function(dx){return[1,dx]};return Q0(l(n[1][1+Y0],n),d,s,S);case 2:var E=s[1],O=function(dx){return[2,dx]};return Q0(l(n[1][1+Wx],n),E,s,O);case 3:var Z=s[1],y0=function(dx){return[3,dx]};return Q0(l(n[1][1+U0],n),Z,s,y0);case 4:var _0=s[1],F0=function(dx){return[4,dx]};return Q0(l(n[1][1+A0],n),_0,s,F0);default:var ox=s[1],Cx=function(dx){return[5,dx]};return Q0(l(n[1][1+tx],n),ox,s,Cx)}}function mU(n,s){var c=s[2],v=s[1];switch(c[0]){case 0:var d=c[3],S=c[2],E=c[1],O=p(n[1][1+Lx],n,E),Z=p(n[1][1+Ax],n,S);if(d){var y0=0;if(O[0]===3){var _0=Z[2];if(_0[0]===8)var ox=Nr(O[1][2][1],_0[1][2][1]);else y0=1}else y0=1;if(y0)var F0=E===O?1:0,ox=F0&&(S===Z?1:0)}else var ox=d;return E===O&&S===Z&&d===ox?s:[0,v,[0,O,Z,ox]];case 1:var Cx=c[2],dx=c[1],wr=p(n[1][1+Lx],n,dx),c1=r2(l(n[1][1+cr],n),Cx);return dx===wr&&Cx===c1?s:[0,v,[1,wr,c1]];case 2:var s1=c[3],y1=c[2],d1=c[1],Qe=p(n[1][1+Lx],n,d1),He=r2(l(n[1][1+cr],n),y1),qe=p(n[1][1+n0],n,s1);return d1===Qe&&y1===He&&s1===qe?s:[0,v,[2,Qe,He,qe]];default:var Ie=c[3],Ge=c[2],be=c[1],gt=p(n[1][1+Lx],n,be),xt=r2(l(n[1][1+cr],n),Ge),rt=p(n[1][1+n0],n,Ie);return be===gt&&Ge===xt&&Ie===rt?s:[0,v,[3,gt,xt,rt]]}}function kU(n,s,c){var v=c[2],d=c[1],S=gr(function(O){if(O[0]===0){var Z=O[1],y0=p(n[1][1+S0],n,Z);return Z===y0?O:[0,y0]}var _0=O[1],F0=p(n[1][1+J0],n,_0);return _0===F0?O:[1,F0]},d),E=p(n[1][1+n0],n,v);return d===S&&v===E?c:[0,S,E]}function K6(n,s,c){var v=c[4],d=c[3],S=c[2],E=c[1],O=p(n[1][1+Ax],n,E),Z=Yx(l(n[1][1+qo],n),S),y0=Yx(l(n[1][1+fa],n),d),_0=p(n[1][1+n0],n,v);return E===O&&S===Z&&d===y0&&v===_0?c:[0,O,Z,y0,_0]}function J6(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+M1],n,S),O=p(n[1][1+M1],n,d),Z=p(n[1][1+n0],n,v);return S===E&&d===O&&v===Z?c:[0,E,O,Z]}function O3(n,s){return p(n[1][1+Ax],n,s)}function L3(n,s){return p(n[1][1+A0],n,s)}function bm(n,s){return p(n[1][1+M1],n,s)}function hU(n,s){switch(s[0]){case 0:var c=s[1],v=function(Z){return[0,Z]};return Q0(l(n[1][1+An],n),c,s,v);case 1:var d=s[1],S=function(Z){return[1,Z]};return Q0(l(n[1][1+gn],n),d,s,S);default:var E=s[1],O=function(Z){return[2,Z]};return Q0(l(n[1][1+fs],n),E,s,O)}}function _U(n,s,c){var v=c[1],d=G0(n[1][1+re],n,s,v);return v===d?c:[0,d,c[2],c[3]]}function x9(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+Ax],n,S),O=p(n[1][1+me],n,d),Z=p(n[1][1+n0],n,v);return S===E&&d===O&&v===Z?c:[0,E,O,Z]}function wU(n,s,c){var v=c[4],d=c[3],S=c[2],E=p(n[1][1+Ax],n,S),O=p(n[1][1+Ax],n,d),Z=p(n[1][1+n0],n,v);return S===E&&d===O&&v===Z?c:[0,c[1],E,O,Z]}function Y6(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+Zt],n,S),O=p(n[1][1+N0],n,d),Z=p(n[1][1+n0],n,v);return S===E&&d===O&&v===Z?c:[0,E,O,Z]}function r9(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+n0],n,v);return v===E?s:[0,S,[0,d,E]]}function e9(n,s){return p(n[1][1+uo],n,s)}function TU(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return Q0(l(n[1][1+to],n),c,s,v)}var d=s[1];function S(E){return[1,E]}return Q0(l(n[1][1+In],n),d,s,S)}function wE0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+a2],n,d),O=p(n[1][1+pt],n,v);return d===E&&v===O?s:[0,S,[0,E,O]]}function TE0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+pt],n,d),O=p(n[1][1+pt],n,v);return d===E&&v===O?s:[0,S,[0,E,O]]}function SE0(n,s){return p(n[1][1+In],n,s)}function EE0(n,s){return p(n[1][1+eo],n,s)}function AE0(n,s){return p(n[1][1+pt],n,s)}function gE0(n,s){switch(s[0]){case 0:var c=s[1],v=function(Z){return[0,Z]};return Q0(l(n[1][1+uo],n),c,s,v);case 1:var d=s[1],S=function(Z){return[1,Z]};return Q0(l(n[1][1+qv],n),d,s,S);default:var E=s[1],O=function(Z){return[2,Z]};return Q0(l(n[1][1+Yo],n),E,s,O)}}function NE0(n,s){var c=s[2],v=s[1],d=p(n[1][1+Ax],n,v),S=p(n[1][1+n0],n,c);return v===d&&c===S?s:[0,d,S]}function IE0(n,s,c){var v=c[2],d=c[1],S=p(n[1][1+n0],n,v);if(!d)return v===S?c:[0,0,S];var E=d[1],O=p(n[1][1+Ax],n,E);return E===O&&v===S?c:[0,[0,O],S]}function PE0(n,s){var c=s[2],v=s[1];switch(c[0]){case 0:var d=c[1],S=function(ox){return[0,v,[0,ox]]};return fx(l(n[1][1+cs],n),v,d,s,S);case 1:var E=c[1],O=function(ox){return[0,v,[1,ox]]};return fx(l(n[1][1+Jo],n),v,E,s,O);case 2:var Z=c[1],y0=function(ox){return[0,v,[2,ox]]};return fx(l(n[1][1+no],n),v,Z,s,y0);case 3:var _0=c[1],F0=function(ox){return[0,v,[3,ox]]};return Q0(l(n[1][1+Hv],n),_0,s,F0);default:return s}}function CE0(n,s){var c=s[2],v=s[1],d=gr(l(n[1][1+a3],n),c);return c===d?s:[0,v,d]}function RE0(n,s,c){return G0(n[1][1+Tx],n,s,c)}function OE0(n,s,c){return G0(n[1][1+no],n,s,c)}function LE0(n,s){if(s[0]===0){var c=s[1],v=c[1],d=c[2],S=function(_0){return[0,[0,v,_0]]};return fx(l(n[1][1+Xo],n),v,d,s,S)}var E=s[1],O=E[1],Z=E[2];function y0(_0){return[1,[0,O,_0]]}return fx(l(n[1][1+Pn],n),O,Z,s,y0)}function UE0(n,s){return p(n[1][1+eo],n,s)}function ME0(n,s){return p(n[1][1+pt],n,s)}function DE0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return Q0(l(n[1][1+Wo],n),c,s,v)}var d=s[1];function S(E){return[1,E]}return Q0(l(n[1][1+fo],n),d,s,S)}function jE0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+bv],n,d),O=Yx(l(n[1][1+Gv],n),v);return d===E&&v===O?s:[0,S,[0,E,O]]}function zE0(n,s,c){var v=c[2],d=c[1],S=p(n[1][1+Ax],n,d),E=p(n[1][1+n0],n,v);return d===S&&v===E?c:[0,S,E]}function KE0(n,s){if(s[0]===0){var c=s[1],v=function(Z){return[0,Z]};return Q0(l(n[1][1+ss],n),c,s,v)}var d=s[1],S=d[1],E=d[2];function O(Z){return[1,[0,S,Z]]}return fx(l(n[1][1+ke],n),S,E,s,O)}function JE0(n,s){var c=s[2][1],v=s[1],d=p(n[1][1+yt],n,c);return c===d?s:[0,v,[0,d]]}function YE0(n,s){var c=s[2],v=c[4],d=c[2],S=c[1],E=c[3],O=s[1],Z=p(n[1][1+yt],n,S),y0=Yx(l(n[1][1+qo],n),d),_0=gr(l(n[1][1+Ko],n),v);return S===Z&&d===y0&&v===_0?s:[0,O,[0,Z,y0,E,_0]]}function BE0(n,s,c){var v=c[4],d=c[3],S=p(n[1][1+io],n,d),E=p(n[1][1+n0],n,v);return d===S&&v===E?c:[0,c[1],c[2],S,E]}function XE0(n,s,c){var v=c[4],d=c[3],S=c[2],E=c[1],O=p(n[1][1+lt],n,E),Z=Yx(l(n[1][1+Bo],n),S),y0=p(n[1][1+io],n,d),_0=p(n[1][1+n0],n,v);return E===O&&S===Z&&d===y0&&v===_0?c:[0,O,Z,y0,_0]}function WE0(n,s,c,v){var d=2<=s?p(n[1][1+kx],n,_H):l(n[1][1+Fe],n);return l(d,v)}function VE0(n,s,c){var v=2<=s?p(n[1][1+kx],n,hH):l(n[1][1+Fe],n);return l(v,c)}function ZE0(n,s,c){var v=c[3],d=c[2],S=c[1],E=0,O=c[4];if(s){var Z=0;if(S)switch(S[1]){case 0:E=1;break;case 1:Z=2;break;default:Z=1}else Z=1;var y0=0;switch(Z){case 0:break;case 1:if(2<=s)var _0=0,F0=0;else y0=1;break;default:y0=1}if(y0)var _0=1,F0=0}else E=1;if(E)var _0=1,F0=1;var ox=d?p(n[1][1+V],n,v):F0?p(n[1][1+Fe],n,v):G0(n[1][1+kx],n,mH,v);if(d)var Cx=d[1],dx=_0?l(n[1][1+Fe],n):p(n[1][1+kx],n,kH),wr=Q0(dx,Cx,d,function(c1){return[0,c1]});else var wr=0;return d===wr&&v===ox?c:[0,S,wr,ox,O]}function $E0(n,s){return p(n[1][1+M1],n,s)}function FE0(n,s,c){if(c[0]===0){var v=c[1],d=gr(p(n[1][1+Um],n,s),v);return v===d?c:[0,d]}var S=c[1],E=S[1],O=S[2];function Z(y0){return[1,[0,E,y0]]}return fx(p(n[1][1+y3],n,s),E,O,c,Z)}function QE0(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+n0],n,v);return v===E?c:[0,S,d,E]}function HE0(n,s,c){var v=c[5],d=c[4],S=c[3],E=c[2],O=c[1],Z=r2(l(n[1][1+R6],n),E),y0=Yx(p(n[1][1+C6],n,O),d),_0=Yx(function(ox){var Cx=ox[1],dx=ox[2],wr=G0(n[1][1+Mm],n,O,Cx);return wr===Cx?ox:[0,wr,dx]},S),F0=p(n[1][1+n0],n,v);return E===Z&&d===y0&&S===_0&&v===F0?c:[0,O,Z,_0,y0,F0]}function qE0(n,s,c){var v=c[4],d=c[3],S=c[2],E=c[1],O=p(n[1][1+M],n,E),Z=G0(n[1][1+jm],n,d!==0?1:0,S),y0=l(n[1][1+zm],n),_0=Yx(function(ox){return r2(y0,ox)},d),F0=p(n[1][1+n0],n,v);return E===O&&S===Z&&d===_0&&v===F0?c:[0,O,Z,_0,F0]}function GE0(n,s,c){var v=c[2],d=c[1],S=p(n[1][1+N0],n,d),E=p(n[1][1+n0],n,v);return d===S&&v===E?c:[0,S,E]}function bE0(n,s,c){return p(n[1][1+N0],n,c)}function xA0(n,s,c){var v=c[2],d=c[1],S=p(n[1][1+Ax],n,d),E=p(n[1][1+n0],n,v);return d===S&&v===E?c:[0,S,E]}function rA0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+Ax],n,d),O=p(n[1][1+n0],n,v);return d===E&&v===O?s:[0,S,[0,E,O]]}function eA0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+n0],n,v);return v===E?s:[0,S,[0,d,E]]}function tA0(n,s,c){return G0(n[1][1+l3],n,s,c)}function nA0(n,s,c){var v=c[5],d=c[4],S=c[3],E=c[2],O=c[1],Z=p(n[1][1+Fe],n,O),y0=Yx(l(n[1][1+U],n),E),_0=l(n[1][1+dt],n),F0=gr(function(dx){return r2(_0,dx)},S),ox=r2(l(n[1][1+U1],n),d),Cx=p(n[1][1+n0],n,v);return Z===O&&y0===E&&F0===S&&ox===d&&Cx===v?c:[0,Z,y0,F0,ox,Cx]}function uA0(n,s){return p(n[1][1+J],n,s)}function iA0(n,s){return p(n[1][1+J],n,s)}function fA0(n,s){return p(n[1][1+M1],n,s)}function cA0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+n0],n,v);return v===E?s:[0,S,[0,d,E]]}function sA0(n,s){return G0(n[1][1+kx],n,dH,s)}function oA0(n,s){return p(n[1][1+Ax],n,s)}function vA0(n,s){var c=s[1],v=s[2];function d(S){return[0,c,S]}return fx(l(n[1][1+Et],n),c,v,s,d)}function aA0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return Q0(l(n[1][1+Wr],n),c,s,v)}var d=s[1];function S(E){return[1,E]}return Q0(l(n[1][1+Go],n),d,s,S)}function lA0(n,s){switch(s[0]){case 0:return s;case 1:var c=s[1],v=function(E){return[1,E]};return Q0(l(n[1][1+F],n),c,s,v);default:var d=s[1],S=function(E){return[2,E]};return Q0(l(n[1][1+e0],n),d,s,S)}}function pA0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+mr],n,d),O=p(n[1][1+Z1],n,v);return d===E&&v===O?s:[0,S,[0,E,O]]}function yA0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+F],n,d),O=p(n[1][1+n0],n,v);return E===d&&O===v?s:[0,S,[0,E,O]]}function dA0(n,s){var c=s[2],v=c[4],d=c[3],S=c[2],E=c[1],O=s[1],Z=gr(l(n[1][1+or],n),S),y0=Yx(l(n[1][1+Dx],n),d),_0=Yx(l(n[1][1+R0],n),E),F0=p(n[1][1+n0],n,v);return S===Z&&d===y0&&v===F0&&E===_0?s:[0,O,[0,_0,Z,y0,F0]]}function mA0(n,s,c){var v=c[9],d=c[8],S=c[7],E=c[6],O=c[3],Z=c[2],y0=c[1],_0=c[10],F0=c[5],ox=c[4],Cx=Yx(l(n[1][1+_r],n),y0),dx=Yx(l(n[1][1+U],n),d),wr=p(n[1][1+jx],n,Z),c1=p(n[1][1+rx],n,S),s1=p(n[1][1+$r],n,O),y1=Yx(l(n[1][1+L0],n),E),d1=p(n[1][1+n0],n,v);return y0===Cx&&Z===wr&&O===s1&&E===y1&&S===c1&&d===dx&&v===d1?c:[0,Cx,wr,s1,ox,F0,y1,c1,dx,d1,_0]}function kA0(n,s,c){return G0(n[1][1+Vr],n,s,c)}function hA0(n,s,c){return G0(n[1][1+cr],n,s,c)}function _A0(n,s,c){return G0(n[1][1+Vr],n,s,c)}function wA0(n,s){if(s[0]===0)return s;var c=s[1];function v(d){return[1,d]}return Q0(l(n[1][1+F],n),c,s,v)}function TA0(n,s){var c=s[2],v=s[1];function d(S){return[0,v,S]}return Q0(l(n[1][1+$],n),c,s,d)}function SA0(n,s){var c=s[2],v=s[1];switch(c[0]){case 0:var d=c[1],S=function(Ux){return[0,v,[0,Ux]]};return Q0(l(n[1][1+n0],n),d,s,S);case 1:var E=c[1],O=function(Ux){return[0,v,[1,Ux]]};return Q0(l(n[1][1+n0],n),E,s,O);case 2:var Z=c[1],y0=function(Ux){return[0,v,[2,Ux]]};return Q0(l(n[1][1+n0],n),Z,s,y0);case 3:var _0=c[1],F0=function(Ux){return[0,v,[3,Ux]]};return Q0(l(n[1][1+n0],n),_0,s,F0);case 4:var ox=c[1],Cx=function(Ux){return[0,v,[4,Ux]]};return Q0(l(n[1][1+n0],n),ox,s,Cx);case 5:var dx=c[1],wr=function(Ux){return[0,v,[5,Ux]]};return Q0(l(n[1][1+n0],n),dx,s,wr);case 6:var c1=c[1],s1=function(Ux){return[0,v,[6,Ux]]};return Q0(l(n[1][1+n0],n),c1,s,s1);case 7:var y1=c[1],d1=function(Ux){return[0,v,[7,Ux]]};return Q0(l(n[1][1+n0],n),y1,s,d1);case 8:var Qe=c[2],He=c[1],qe=function(Ux){return[0,v,[8,He,Ux]]};return Q0(l(n[1][1+n0],n),Qe,s,qe);case 9:var Ie=c[1],Ge=function(Ux){return[0,v,[9,Ux]]};return Q0(l(n[1][1+n0],n),Ie,s,Ge);case 10:var be=c[1],gt=function(Ux){return[0,v,[10,Ux]]};return Q0(l(n[1][1+n0],n),be,s,gt);case 11:var xt=c[1],rt=function(Ux){return[0,v,[11,Ux]]};return Q0(l(n[1][1+Xx],n),xt,s,rt);case 12:var Mn=c[1],Dn=function(Ux){return[0,v,[12,Ux]]};return fx(l(n[1][1+D],n),v,Mn,s,Dn);case 13:var ms=c[1],ks=function(Ux){return[0,v,[13,Ux]]};return fx(l(n[1][1+On],n),v,ms,s,ks);case 14:var et=c[1],hs=function(Ux){return[0,v,[14,Ux]]};return fx(l(n[1][1+U1],n),v,et,s,hs);case 15:var rv=c[1],B6=function(Ux){return[0,v,[15,Ux]]};return fx(l(n[1][1+Zo],n),v,rv,s,B6);case 16:var X6=c[1],W6=function(Ux){return[0,v,[16,Ux]]};return Q0(l(n[1][1+I3],n),X6,s,W6);case 17:var V6=c[1],Z6=function(Ux){return[0,v,[17,Ux]]};return Q0(l(n[1][1+ue],n),V6,s,Z6);case 18:var $6=c[1],F6=function(Ux){return[0,v,[18,Ux]]};return Q0(l(n[1][1+Lm],n),$6,s,F6);case 19:var Q6=c[1],H6=function(Ux){return[0,v,[19,Ux]]};return fx(l(n[1][1+dt],n),v,Q6,s,H6);case 20:var q6=c[1],G6=function(Ux){return[0,v,[20,Ux]]};return fx(l(n[1][1+p3],n),v,q6,s,G6);case 21:var b6=c[1],x4=function(Ux){return[0,v,[21,Ux]]};return fx(l(n[1][1+Dr],n),v,b6,s,x4);case 22:var r4=c[1],e4=function(Ux){return[0,v,[22,Ux]]};return fx(l(n[1][1+k],n),v,r4,s,e4);case 23:var t4=c[1],n4=function(Ux){return[0,v,[23,Ux]]};return fx(l(n[1][1+Vo],n),v,t4,s,n4);case 24:var u4=c[1],i4=function(Ux){return[0,v,[24,Ux]]};return Q0(l(n[1][1+g],n),u4,s,i4);case 25:var f4=c[1],c4=function(Ux){return[0,v,[25,Ux]]};return Q0(l(n[1][1+Nn],n),f4,s,c4);case 26:var s4=c[1],o4=function(Ux){return[0,v,[26,Ux]]};return Q0(l(n[1][1+d0],n),s4,s,o4);case 27:var v4=c[1],a4=function(Ux){return[0,v,[27,Ux]]};return Q0(l(n[1][1+f0],n),v4,s,a4);case 28:var l4=c[1],p4=function(Ux){return[0,v,[28,Ux]]};return fx(l(n[1][1+Tx],n),v,l4,s,p4);case 29:var y4=c[1],d4=function(Ux){return[0,v,[29,Ux]]};return fx(l(n[1][1+Or],n),v,y4,s,d4);case 30:var m4=c[1],k4=function(Ux){return[0,v,[30,Ux]]};return fx(l(n[1][1+rn],n),v,m4,s,k4);case 31:var h4=c[1],_4=function(Ux){return[0,v,[31,Ux]]};return fx(l(n[1][1+oo],n),v,h4,s,_4);case 32:var w4=c[1],T4=function(Ux){return[0,v,[32,Ux]]};return Q0(l(n[1][1+n0],n),w4,s,T4);case 33:var S4=c[1],E4=function(Ux){return[0,v,[33,Ux]]};return Q0(l(n[1][1+n0],n),S4,s,E4);default:var A4=c[1],g4=function(Ux){return[0,v,[34,Ux]]};return Q0(l(n[1][1+n0],n),A4,s,g4)}}function EA0(n,s,c){var v=c[2],d=c[1],S=d[3],E=d[2],O=d[1],Z=p(n[1][1+$],n,O),y0=p(n[1][1+$],n,E),_0=gr(l(n[1][1+$],n),S),F0=p(n[1][1+n0],n,v);return Z===O&&y0===E&&_0===S&&F0===v?c:[0,[0,Z,y0,_0],F0]}function AA0(n,s,c){var v=c[2],d=c[1],S=d[3],E=d[2],O=d[1],Z=p(n[1][1+$],n,O),y0=p(n[1][1+$],n,E),_0=gr(l(n[1][1+$],n),S),F0=p(n[1][1+n0],n,v);return Z===O&&y0===E&&_0===S&&F0===v?c:[0,[0,Z,y0,_0],F0]}function gA0(n,s){var c=s[2],v=s[1],d=p(n[1][1+$],n,v),S=p(n[1][1+n0],n,c);return v===d&&c===S?s:[0,d,S]}function NA0(n,s){var c=s[2],v=s[1],d=p(n[1][1+$],n,c);return d===c?s:[0,v,d]}function IA0(n,s){var c=s[3],v=s[2],d=s[4],S=s[1],E=p(n[1][1+$],n,v),O=p(n[1][1+i],n,c);return E===v&&O===c?s:[0,S,E,O,d]}function PA0(n,s){var c=s[2],v=s[1];switch(c[0]){case 0:var d=c[1],S=function(_0){return[0,v,[0,_0]]};return Q0(l(n[1][1+$],n),d,s,S);case 1:var E=c[1],O=function(_0){return[0,v,[1,_0]]};return Q0(l(n[1][1+v0],n),E,s,O);default:var Z=c[1],y0=function(_0){return[0,v,[2,_0]]};return Q0(l(n[1][1+c0],n),Z,s,y0)}}function CA0(n,s){var c=s[2],v=s[1],d=gr(l(n[1][1+s0],n),v),S=p(n[1][1+n0],n,c);return v===d&&c===S?s:[0,d,S]}function RA0(n,s){var c=s[2],v=s[1],d=p(n[1][1+$],n,v),S=p(n[1][1+n0],n,c);return v===d&&c===S?s:[0,d,S]}function OA0(n,s){var c=s[2],v=s[1],d=p(n[1][1+$],n,v),S=p(n[1][1+n0],n,c);return v===d&&c===S?s:[0,d,S]}function LA0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+L],n,d),O=p(n[1][1+C],n,v);return E===d&&O===v?s:[0,S,[0,E,O]]}function UA0(n,s){return p(n[1][1+M1],n,s)}function MA0(n,s){return p(n[1][1+M1],n,s)}function DA0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return Q0(l(n[1][1+R],n),c,s,v)}var d=s[1];function S(E){return[1,E]}return Q0(l(n[1][1+I],n),d,s,S)}function jA0(n,s){var c=s[2],v=s[1],d=p(n[1][1+L],n,v),S=p(n[1][1+n0],n,c);return v===d&&c===S?s:[0,d,S]}function zA0(n,s){var c=s[2],v=s[1],d=p(n[1][1+B],n,v),S=p(n[1][1+n0],n,c);return v===d&&c===S?s:[0,d,S]}function KA0(n,s){var c=s[5],v=s[4],d=s[3],S=s[2],E=s[1],O=p(n[1][1+$],n,E),Z=p(n[1][1+$],n,S),y0=p(n[1][1+$],n,d),_0=p(n[1][1+$],n,v),F0=p(n[1][1+n0],n,c);return E===O&&S===Z&&d===y0&&v===_0&&c===F0?s:[0,O,Z,y0,_0,F0]}function JA0(n,s){var c=s[2],v=s[1],d=p(n[1][1+$],n,v),S=p(n[1][1+n0],n,c);return v===d&&c===S?s:[0,d,S]}function YA0(n,s,c){var v=c[6],d=c[5],S=c[4],E=c[3],O=c[2],Z=c[1];return v===p(n[1][1+n0],n,v)?c:[0,Z,O,E,S,d,v]}function BA0(n,s,c){var v=c[4],d=c[3],S=c[2],E=c[1],O=p(n[1][1+n0],n,v);return v===O?c:[0,E,S,d,O]}function XA0(n,s,c){return p(n[1][1+n0],n,c)}function WA0(n,s,c){var v=c[2],d=c[1],S=p(n[1][1+n0],n,v);return v===S?c:[0,d,S]}function VA0(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+n0],n,v);return v===E?c:[0,S,d,E]}function ZA0(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+n0],n,v);return v===E?c:[0,S,d,E]}function $A0(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+n0],n,v);return v===E?c:[0,S,d,E]}function FA0(n,s,c){var v=c[1],d=c[2],S=G0(n[1][1+p3],n,s,v);return S===v?c:[0,S,d]}function QA0(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+$],n,S),O=p(n[1][1+$],n,d),Z=p(n[1][1+n0],n,v);return E===S&&O===d&&Z===v?c:[0,E,O,Z]}function HA0(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+q],n,S),O=Yx(l(n[1][1+Y],n),d),Z=p(n[1][1+n0],n,v);return E===S&&O===d&&Z===v?c:[0,E,O,Z]}function qA0(n,s){var c=s[2],v=c[5],d=c[4],S=c[2],E=c[1],O=c[3],Z=s[1],y0=p(n[1][1+z],n,S),_0=p(n[1][1+i],n,d),F0=Yx(l(n[1][1+$],n),v),ox=p(n[1][1+Fe],n,E);return ox===E&&y0===S&&_0===d&&F0===v?s:[0,Z,[0,ox,y0,O,_0,F0]]}function GA0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=gr(l(n[1][1+B],n),d),O=p(n[1][1+n0],n,v);return E===d&&O===v?s:[0,S,[0,E,O]]}function bA0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=gr(l(n[1][1+$],n),d),O=p(n[1][1+n0],n,v);return d===E&&v===O?s:[0,S,[0,E,O]]}function xg0(n,s){return Yx(l(n[1][1+f],n),s)}function rg0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+n0],n,v);return v===E?s:[0,S,[0,d,E]]}function eg0(n,s){return p(n[1][1+M1],n,s)}function tg0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+q],n,d),O=p(n[1][1+ro],n,v);return E===d&&O===v?s:[0,S,[0,E,O]]}function ng0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return Q0(l(n[1][1+X],n),c,s,v)}var d=s[1];function S(E){return[1,E]}return Q0(l(n[1][1+m3],n),d,s,S)}function ug0(n,s,c){var v=c[3],d=c[2],S=c[1],E=l(n[1][1+dt],n),O=gr(function(_0){return r2(E,_0)},d),Z=r2(l(n[1][1+U1],n),S),y0=p(n[1][1+n0],n,v);return O===d&&Z===S&&v===y0?c:[0,Z,O,y0]}function ig0(n,s){switch(s[0]){case 0:var c=s[1],v=function(dx){return[0,dx]};return Q0(l(n[1][1+x0],n),c,s,v);case 1:var d=s[1],S=function(dx){return[1,dx]};return Q0(l(n[1][1+_],n),d,s,S);case 2:var E=s[1],O=function(dx){return[2,dx]};return Q0(l(n[1][1+Vx],n),E,s,O);case 3:var Z=s[1],y0=function(dx){return[3,dx]};return Q0(l(n[1][1+er],n),Z,s,y0);case 4:var _0=s[1],F0=function(dx){return[4,dx]};return Q0(l(n[1][1+ur],n),_0,s,F0);default:var ox=s[1],Cx=function(dx){return[5,dx]};return Q0(l(n[1][1+H],n),ox,s,Cx)}}function fg0(n,s,c){var v=c[4],d=c[3],S=c[2],E=c[1],O=gr(l(n[1][1+Rr],n),d),Z=p(n[1][1+n0],n,v);return O===d&&v===Z?c:[0,E,S,O,Z]}function cg0(n,s){var c=s[2],v=c[6],d=c[4],S=c[3],E=c[2],O=c[1],Z=c[5],y0=s[1],_0=p(n[1][1+B],n,O),F0=p(n[1][1+$],n,E),ox=p(n[1][1+$],n,S),Cx=p(n[1][1+i],n,d),dx=p(n[1][1+n0],n,v);return _0===O&&F0===E&&ox===S&&Cx===d&&dx===v?s:[0,y0,[0,_0,F0,ox,Cx,Z,dx]]}function sg0(n,s){var c=s[2],v=c[3],d=c[1],S=d[2],E=d[1],O=c[2],Z=s[1],y0=G0(n[1][1+D],n,E,S),_0=p(n[1][1+n0],n,v);return S===y0&&v===_0?s:[0,Z,[0,[0,E,y0],O,_0]]}function og0(n,s){var c=s[2],v=c[6],d=c[2],S=c[1],E=c[5],O=c[4],Z=c[3],y0=s[1],_0=p(n[1][1+M1],n,S),F0=p(n[1][1+$],n,d),ox=p(n[1][1+n0],n,v);return S===_0&&d===F0&&v===ox?s:[0,y0,[0,_0,F0,Z,O,E,ox]]}function vg0(n,s){var c=s[2],v=c[6],d=c[5],S=c[3],E=c[2],O=c[4],Z=c[1],y0=s[1],_0=p(n[1][1+$],n,E),F0=p(n[1][1+$],n,S),ox=p(n[1][1+i],n,d),Cx=p(n[1][1+n0],n,v);return _0===E&&F0===S&&ox===d&&Cx===v?s:[0,y0,[0,Z,_0,F0,O,ox,Cx]]}function ag0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+$],n,d),O=p(n[1][1+n0],n,v);return E===d&&v===O?s:[0,S,[0,E,O]]}function lg0(n,s){var c=s[2],v=c[8],d=c[7],S=c[2],E=c[1],O=c[6],Z=c[5],y0=c[4],_0=c[3],F0=s[1],ox=p(n[1][1+Lx],n,E),Cx=p(n[1][1+b],n,S),dx=p(n[1][1+i],n,d),wr=p(n[1][1+n0],n,v);return ox===E&&Cx===S&&dx===d&&wr===v?s:[0,F0,[0,ox,Cx,_0,y0,Z,O,dx,wr]]}function pg0(n,s){var c=s[1],v=s[2];function d(S){return[0,c,S]}return fx(l(n[1][1+D],n),c,v,s,d)}function yg0(n,s){var c=s[1],v=s[2];function d(S){return[0,c,S]}return fx(l(n[1][1+D],n),c,v,s,d)}function dg0(n,s){switch(s[0]){case 0:var c=s[1],v=function(Z){return[0,Z]};return Q0(l(n[1][1+$],n),c,s,v);case 1:var d=s[1],S=function(Z){return[1,Z]};return Q0(l(n[1][1+k1],n),d,s,S);default:var E=s[1],O=function(Z){return[2,Z]};return Q0(l(n[1][1+t2],n),E,s,O)}}function mg0(n,s){return p(n[1][1+M1],n,s)}function kg0(n,s,c){var v=c[4],d=c[3],S=c[2],E=S[2],O=E[4],Z=E[3],y0=E[2],_0=E[1],F0=c[1],ox=S[1],Cx=Yx(l(n[1][1+U],n),F0),dx=Yx(l(n[1][1+T0],n),_0),wr=gr(l(n[1][1+bx],n),y0),c1=Yx(l(n[1][1+Sx],n),Z),s1=p(n[1][1+P],n,d),y1=p(n[1][1+n0],n,v),d1=p(n[1][1+n0],n,O);return wr===y0&&c1===Z&&s1===d&&Cx===F0&&y1===v&&d1===O&&dx===_0?c:[0,Cx,[0,ox,[0,dx,wr,c1,d1]],s1,y1]}function hg0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return Q0(l(n[1][1+$],n),c,s,v)}var d=s[1];function S(E){return[1,E]}return Q0(l(n[1][1+i0],n),d,s,S)}function _g0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+F],n,d),O=p(n[1][1+n0],n,v);return E===d&&O===v?s:[0,S,[0,E,O]]}function wg0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+bx],n,d),O=p(n[1][1+n0],n,v);return E===d&&O===v?s:[0,S,[0,E,O]]}function Tg0(n,s){var c=s[2],v=c[2],d=c[1],S=c[3],E=s[1],O=p(n[1][1+$],n,v),Z=Yx(l(n[1][1+M1],n),d);return O===v&&Z===d?s:[0,E,[0,Z,O,S]]}function Sg0(n,s){var c=s[1],v=s[2];function d(S){return[0,c,S]}return fx(l(n[1][1+y],n),c,v,s,d)}function Eg0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return Q0(l(n[1][1+h1],n),c,s,v)}var d=s[1];function S(E){return[1,E]}return Q0(l(n[1][1+Ax],n),d,s,S)}function Ag0(n,s,c){var v=c[5],d=c[4],S=c[3],E=c[2],O=c[1],Z=Yx(l(n[1][1+Ur],n),O),y0=Yx(l(n[1][1+M],n),E),_0=Yx(l(n[1][1+Ax],n),S),F0=p(n[1][1+N0],n,d),ox=p(n[1][1+n0],n,v);return O===Z&&E===y0&&S===_0&&d===F0&&v===ox?c:[0,Z,y0,_0,F0,ox]}function gg0(n,s){var c=s[1],v=s[2];function d(S){return[0,c,S]}return fx(l(n[1][1+y],n),c,v,s,d)}function Ng0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return Q0(l(n[1][1+p1],n),c,s,v)}var d=s[1];function S(E){return[1,E]}return Q0(l(n[1][1+f1],n),d,s,S)}function Ig0(n,s,c){var v=c[5],d=c[3],S=c[2],E=c[1],O=c[4],Z=p(n[1][1+x1],n,E),y0=p(n[1][1+Ax],n,S),_0=p(n[1][1+N0],n,d),F0=p(n[1][1+n0],n,v);return E===Z&&S===y0&&d===_0&&v===F0?c:[0,Z,y0,_0,O,F0]}function Pg0(n,s){var c=s[1],v=s[2];function d(S){return[0,c,S]}return fx(l(n[1][1+y],n),c,v,s,d)}function Cg0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return Q0(l(n[1][1+n2],n),c,s,v)}var d=s[1];function S(E){return[1,E]}return Q0(l(n[1][1+A1],n),d,s,S)}function Rg0(n,s,c){var v=c[5],d=c[3],S=c[2],E=c[1],O=c[4],Z=p(n[1][1+Cr],n,E),y0=p(n[1][1+Ax],n,S),_0=p(n[1][1+N0],n,d),F0=p(n[1][1+n0],n,v);return E===Z&&S===y0&&d===_0&&v===F0?c:[0,Z,y0,_0,O,F0]}function Og0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return Q0(l(n[1][1+Ax],n),c,s,v)}var d=s[1];function S(E){return[1,E]}return Q0(l(n[1][1+I0],n),d,s,S)}function Lg0(n,s,c){var v=c[3],d=c[1],S=c[2],E=p(n[1][1+Ax],n,d),O=p(n[1][1+n0],n,v);return d===E&&v===O?c:[0,E,S,O]}function Ug0(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+n0],n,v);return v===E?c:[0,S,d,E]}function Mg0(n,s){if(s[0]===0){var c=s[1],v=gr(l(n[1][1+lr],n),c);return c===v?s:[0,v]}var d=s[1],S=p(n[1][1+V2],n,d);return d===S?s:[1,S]}function Dg0(n,s){var c=s[2],v=s[1],d=Yx(l(n[1][1+M1],n),c);return c===d?s:[0,v,d]}function jg0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+M1],n,d),O=Yx(l(n[1][1+M1],n),v);return d===E&&v===O?s:[0,S,[0,E,O]]}function zg0(n,s,c){var v=c[5],d=c[3],S=c[2],E=c[1],O=c[4],Z=fY(l(n[1][1+Kr],n),d),y0=Yx(l(n[1][1+r1],n),S),_0=Yx(l(n[1][1+N0],n),E),F0=p(n[1][1+n0],n,v);return d===Z&&S===y0&&E===_0&&v===F0?c:[0,_0,y0,Z,O,F0]}function Kg0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return Q0(l(n[1][1+N0],n),c,s,v)}var d=s[1];function S(E){return[1,E]}return Q0(l(n[1][1+Ax],n),d,s,S)}function Jg0(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+V1],n,d),O=p(n[1][1+n0],n,v);return E===d&&O===v?c:[0,S,E,O]}function Yg0(n,s){return p(n[1][1+M1],n,s)}function Bg0(n,s){var c=s[2],v=c[1],d=c[2],S=s[1],E=p(n[1][1+l2],n,v);return v===E?s:[0,S,[0,E,d]]}function Xg0(n,s){var c=s[2],v=c[1],d=c[2],S=s[1],E=p(n[1][1+l2],n,v);return v===E?s:[0,S,[0,E,d]]}function Wg0(n,s){var c=s[2],v=c[1],d=c[2],S=s[1],E=p(n[1][1+l2],n,v);return v===E?s:[0,S,[0,E,d]]}function Vg0(n,s){var c=s[2],v=c[1],d=c[2],S=s[1],E=p(n[1][1+l2],n,v);return v===E?s:[0,S,[0,E,d]]}function Zg0(n,s){var c=s[2][1],v=s[1],d=p(n[1][1+l2],n,c);return c===d?s:[0,v,[0,d]]}function $g0(n,s){var c=s[4],v=s[1],d=gr(l(n[1][1+Te],n),v),S=p(n[1][1+n0],n,c);return v===d&&c===S?s:[0,d,s[2],s[3],S]}function Fg0(n,s){var c=s[3],v=s[1],d=gr(l(n[1][1+mt],n),v),S=p(n[1][1+n0],n,c);return v===d&&c===S?s:[0,d,s[2],S]}function Qg0(n,s){var c=s[4],v=s[1];if(v[0]===0)var d=v[1],S=function(ox){return[0,ox]},E=l(n[1][1+mt],n),_0=Q0(function(ox){return gr(E,ox)},d,v,S);else var O=v[1],Z=function(ox){return[1,ox]},y0=l(n[1][1+$t],n),_0=Q0(function(ox){return gr(y0,ox)},O,v,Z);var F0=p(n[1][1+n0],n,c);return v===_0&&c===F0?s:[0,_0,s[2],s[3],F0]}function Hg0(n,s){var c=s[4],v=s[1],d=gr(l(n[1][1+u2],n),v),S=p(n[1][1+n0],n,c);return v===d&&c===S?s:[0,d,s[2],s[3],S]}function qg0(n,s){var c=s[4],v=s[1],d=gr(l(n[1][1+kt],n),v),S=p(n[1][1+n0],n,c);return v===d&&c===S?s:[0,d,s[2],s[3],S]}function Gg0(n,s){var c=s[2],v=s[1];switch(c[0]){case 0:var d=c[1],S=function(dx){return[0,v,[0,dx]]};return Q0(l(n[1][1+Ze],n),d,s,S);case 1:var E=c[1],O=function(dx){return[0,v,[1,dx]]};return Q0(l(n[1][1+I2],n),E,s,O);case 2:var Z=c[1],y0=function(dx){return[0,v,[2,dx]]};return Q0(l(n[1][1+N2],n),Z,s,y0);case 3:var _0=c[1],F0=function(dx){return[0,v,[3,dx]]};return Q0(l(n[1][1+_e],n),_0,s,F0);default:var ox=c[1],Cx=function(dx){return[0,v,[4,dx]]};return Q0(l(n[1][1+Se],n),ox,s,Cx)}}function bg0(n,s,c){var v=c[3],d=c[2],S=c[1],E=G0(n[1][1+kx],n,yH,S),O=p(n[1][1+we],n,d),Z=p(n[1][1+n0],n,v);return S===E&&d===O&&v===Z?c:[0,E,O,Z]}function xN0(n,s,c){var v=c[1],d=p(n[1][1+n0],n,v);return v===d?c:[0,d]}function rN0(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+N0],n,S),O=p(n[1][1+M],n,d),Z=p(n[1][1+n0],n,v);return S===E&&d===O&&v===Z?c:[0,E,O,Z]}function eN0(n,s,c){var v=c[4],d=c[3],S=c[2],E=c[1],O=G0(n[1][1+kx],n,[0,d],E),Z=p(n[1][1+F],n,S),y0=p(n[1][1+n0],n,v);return O===E&&Z===S&&y0===v?c:[0,O,Z,d,y0]}function tN0(n,s,c){return G0(n[1][1+t0],n,s,c)}function nN0(n,s,c){var v=c[2],d=c[1],S=p(n[1][1+F],n,d),E=p(n[1][1+n0],n,v);return d===S&&v===E?c:[0,S,E]}function uN0(n,s,c){var v=c[4],d=c[2],S=c[3],E=c[1],O=r2(l(n[1][1+Et],n),d),Z=p(n[1][1+n0],n,v);return O===d&&v===Z?c:[0,E,O,S,Z]}function iN0(n,s,c){return G0(n[1][1+l3],n,s,c)}function fN0(n,s,c){var v=c[4],d=c[3],S=c[2],E=c[1],O=p(n[1][1+_r],n,E),Z=p(n[1][1+F],n,S),y0=Yx(l(n[1][1+L0],n),d),_0=p(n[1][1+n0],n,v);return O===E&&Z===S&&y0===d&&_0===v?c:[0,O,Z,y0,_0]}function cN0(n,s){switch(s[0]){case 0:var c=s[1],v=c[2],d=c[1],S=G0(n[1][1+ge],n,d,v);return S===v?s:[0,[0,d,S]];case 1:var E=s[1],O=E[2],Z=E[1],y0=G0(n[1][1+Ft],n,Z,O);return y0===O?s:[1,[0,Z,y0]];case 2:var _0=s[1],F0=_0[2],ox=_0[1],Cx=G0(n[1][1+ne],n,ox,F0);return Cx===F0?s:[2,[0,ox,Cx]];case 3:var dx=s[1],wr=dx[2],c1=dx[1],s1=G0(n[1][1+Qt],n,c1,wr);return s1===wr?s:[3,[0,c1,s1]];case 4:var y1=s[1],d1=p(n[1][1+$],n,y1);return d1===y1?s:[4,d1];case 5:var Qe=s[1],He=Qe[2],qe=Qe[1],Ie=G0(n[1][1+t0],n,qe,He);return Ie===He?s:[5,[0,qe,Ie]];case 6:var Ge=s[1],be=Ge[2],gt=Ge[1],xt=G0(n[1][1+br],n,gt,be);return xt===be?s:[6,[0,gt,xt]];case 7:var rt=s[1],Mn=rt[2],Dn=rt[1],ms=G0(n[1][1+l3],n,Dn,Mn);return ms===Mn?s:[7,[0,Dn,ms]];default:var ks=s[1],et=ks[2],hs=ks[1],rv=G0(n[1][1+P2],n,hs,et);return rv===et?s:[8,[0,hs,rv]]}}function sN0(n,s,c){var v=c[5],d=c[4],S=c[3],E=c[2],O=c[1],Z=fY(l(n[1][1+Kr],n),d),y0=Yx(l(n[1][1+r1],n),S),_0=Yx(l(n[1][1+os],n),E),F0=p(n[1][1+n0],n,v);return d===Z&&S===y0&&E===_0&&v===F0?c:[0,O,_0,y0,Z,F0]}function oN0(n,s,c){return G0(n[1][1+P2],n,s,c)}function vN0(n,s){var c=s[2],v=c[4],d=c[2],S=c[1],E=c[3],O=s[1],Z=Yx(l(n[1][1+M1],n),S),y0=p(n[1][1+$],n,d),_0=p(n[1][1+n0],n,v);return S===Z&&d===y0&&v===_0?s:[0,O,[0,Z,y0,E,_0]]}function aN0(n,s){var c=s[2],v=c[2],d=c[1],S=c[3],E=s[1],O=p(n[1][1+vs],n,d),Z=p(n[1][1+F],n,v);return d===O&&v===Z?s:[0,E,[0,O,Z,S]]}function lN0(n,s){var c=s[2],v=c[3],d=c[2],S=c[1],E=s[1],O=gr(l(n[1][1+bt],n),S),Z=Yx(l(n[1][1+Gt],n),d),y0=p(n[1][1+n0],n,v);return S===O&&d===Z&&v===y0?s:[0,E,[0,O,Z,y0]]}function pN0(n,s,c){var v=c[4],d=c[3],S=c[2],E=c[1],O=Yx(l(n[1][1+U],n),E),Z=p(n[1][1+Rn],n,S),y0=p(n[1][1+z],n,d),_0=p(n[1][1+n0],n,v);return E===O&&S===Z&&d===y0&&v===_0?c:[0,O,Z,y0,_0]}function yN0(n,s,c){var v=c[5],d=c[4],S=c[3],E=c[2],O=c[1],Z=p(n[1][1+ls],n,O),y0=Yx(l(n[1][1+U],n),E),_0=p(n[1][1+Rn],n,S),F0=p(n[1][1+z],n,d),ox=p(n[1][1+n0],n,v);return O===Z&&E===y0&&S===_0&&d===F0&&v===ox?c:[0,Z,y0,_0,F0,ox]}function dN0(n,s,c){var v=c[7],d=c[6],S=c[5],E=c[4],O=c[3],Z=c[2],y0=c[1],_0=p(n[1][1+Ln],n,y0),F0=Yx(l(n[1][1+U],n),Z),ox=r2(l(n[1][1+U1],n),O),Cx=l(n[1][1+dt],n),dx=Yx(function(d1){return r2(Cx,d1)},E),wr=l(n[1][1+dt],n),c1=gr(function(d1){return r2(wr,d1)},S),s1=Yx(l(n[1][1+na],n),d),y1=p(n[1][1+n0],n,v);return _0===y0&&F0===Z&&ox===O&&dx===E&&c1===S&&s1===d&&y1===v?c:[0,_0,F0,ox,dx,c1,s1,y1]}function mN0(n,s,c){var v=c[1],d=p(n[1][1+n0],n,v);return v===d?c:[0,d]}function kN0(n,s,c){var v=c[2],d=c[1],S=Yx(l(n[1][1+Zt],n),d),E=p(n[1][1+n0],n,v);return d===S&&v===E?c:[0,S,E]}function hN0(n,s,c){var v=c[4],d=c[3],S=c[2],E=c[1],O=p(n[1][1+M],n,E),Z=p(n[1][1+Ax],n,S),y0=p(n[1][1+Ax],n,d),_0=p(n[1][1+n0],n,v);return E===O&&S===Z&&d===y0&&v===_0?c:[0,O,Z,y0,_0]}function _N0(n,s){var c=s[1],v=s[2];function d(S){return[0,c,S]}return fx(l(n[1][1+Et],n),c,v,s,d)}function wN0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+St],n,d),O=p(n[1][1+n0],n,v);return d===E&&v===O?s:[0,S,[0,E,O]]}function TN0(n,s){return G0(n[1][1+ds],n,pH,s)}function SN0(n,s){if(s[0]===0)return[0,p(n[1][1+M1],n,s[1])];var c=s[1],v=c[1];return[1,[0,v,G0(n[1][1+Tx],n,v,c[2])]]}function EN0(n,s){var c=s[2],v=c[3],d=c[2],S=c[1],E=c[4],O=s[1],Z=p(n[1][1+vs],n,S),y0=p(n[1][1+St],n,d),_0=p(n[1][1+Z1],n,v);return S===Z&&d===y0&&v===_0?s:[0,O,[0,Z,y0,_0,E]]}function AN0(n,s){var c=s[2],v=c[3],d=c[2],S=c[1],E=s[1],O=gr(l(n[1][1+as],n),S),Z=Yx(l(n[1][1+$o],n),d),y0=p(n[1][1+n0],n,v);return S===O&&d===Z&&v===y0?s:[0,E,[0,O,Z,y0]]}function gN0(n,s){return G0(n[1][1+kx],n,lH,s)}function NN0(n,s,c){var v=c[6],d=c[5],S=c[4],E=c[3],O=c[2],Z=c[1],y0=c[7],_0=p(n[1][1+ls],n,Z),F0=Yx(l(n[1][1+U],n),O),ox=p(n[1][1+xn],n,E),Cx=p(n[1][1+k3],n,d),dx=p(n[1][1+z],n,S),wr=p(n[1][1+n0],n,v);return Z===_0&&O===F0&&E===ox&&d===Cx&&S===dx&&v===wr?c:[0,_0,F0,ox,dx,Cx,wr,y0]}function IN0(n,s){return Yx(l(n[1][1+Ax],n),s)}function PN0(n,s,c){var v=c[7],d=c[6],S=c[5],E=c[3],O=c[2],Z=c[1],y0=p(n[1][1+A0],n,Z),_0=p(n[1][1+Qo],n,O),F0=p(n[1][1+z],n,E),ox=p(n[1][1+i],n,S),Cx=gr(l(n[1][1+Ne],n),d),dx=p(n[1][1+n0],n,v);return Z===y0&&O===_0&&F0===E&&ox===S&&Cx===d&&dx===v?c:[0,y0,_0,F0,c[4],ox,Cx,dx]}function CN0(n,s){if(typeof s=="number")return s;var c=s[1],v=p(n[1][1+Ax],n,c);return c===v?s:[0,v]}function RN0(n,s,c){var v=c[7],d=c[6],S=c[5],E=c[3],O=c[2],Z=c[1],y0=p(n[1][1+Lx],n,Z),_0=p(n[1][1+Qo],n,O),F0=p(n[1][1+z],n,E),ox=p(n[1][1+i],n,S),Cx=gr(l(n[1][1+Ne],n),d),dx=p(n[1][1+n0],n,v);return Z===y0&&O===_0&&F0===E&&ox===S&&Cx===d&&dx===v?c:[0,y0,_0,F0,c[4],ox,Cx,dx]}function ON0(n,s,c){var v=c[6],d=c[5],S=c[3],E=c[2],O=p(n[1][1+Lx],n,E),Z=r2(l(n[1][1+cr],n),S),y0=gr(l(n[1][1+Ne],n),d),_0=p(n[1][1+n0],n,v);return E===O&&S===Z&&d===y0&&v===_0?c:[0,c[1],O,Z,c[4],y0,_0]}function LN0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+X],n,d),O=Yx(l(n[1][1+Y],n),v);return d===E&&v===O?s:[0,S,[0,E,O]]}function UN0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=gr(l(n[1][1+ta],n),d),O=p(n[1][1+n0],n,v);return d===E&&v===O?s:[0,S,[0,E,O]]}function MN0(n,s){switch(s[0]){case 0:var c=s[1],v=c[1],d=c[2],S=function(dx){return[0,[0,v,dx]]};return fx(l(n[1][1+_3],n),v,d,s,S);case 1:var E=s[1],O=E[1],Z=E[2],y0=function(dx){return[1,[0,O,dx]]};return fx(l(n[1][1+ea],n),O,Z,s,y0);default:var _0=s[1],F0=_0[1],ox=_0[2],Cx=function(dx){return[2,[0,F0,dx]]};return fx(l(n[1][1+h3],n),F0,ox,s,Cx)}}function DN0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=p(n[1][1+Ax],n,d),O=p(n[1][1+n0],n,v);return d===E&&v===O?s:[0,S,[0,E,O]]}function jN0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=gr(l(n[1][1+S3],n),d),O=p(n[1][1+n0],n,v);return d===E&&v===O?s:[0,S,[0,E,O]]}function zN0(n,s){return G0(n[1][1+kx],n,aH,s)}function KN0(n,s,c){var v=c[3],d=c[2],S=c[1],E=p(n[1][1+Ax],n,S),O=Yx(l(n[1][1+Y],n),d),Z=p(n[1][1+n0],n,v);return S===E&&d===O&&v===Z?c:[0,E,O,Z]}function JN0(n,s,c){var v=c[7],d=c[6],S=c[5],E=c[4],O=c[3],Z=c[2],y0=c[1],_0=Yx(l(n[1][1+Ln],n),y0),F0=Yx(l(n[1][1+U],n),O),ox=p(n[1][1+A3],n,Z),Cx=l(n[1][1+w3],n),dx=Yx(function(y1){return r2(Cx,y1)},E),wr=Yx(l(n[1][1+na],n),S),c1=gr(l(n[1][1+Ne],n),d),s1=p(n[1][1+n0],n,v);return y0===_0&&Z===ox&&E===dx&&S===wr&&d===c1&&v===s1&&O===F0?c:[0,_0,ox,F0,dx,wr,c1,s1]}function YN0(n,s,c){return G0(n[1][1+ua],n,s,c)}function BN0(n,s,c){return G0(n[1][1+ua],n,s,c)}function XN0(n,s,c){var v=c[3],d=c[2],S=c[1],E=Yx(l(n[1][1+ps],n),S),O=p(n[1][1+Ho],n,d),Z=p(n[1][1+n0],n,v);return S===E&&d===O&&v===Z?c:[0,E,O,Z]}function WN0(n,s){return r2(l(n[1][1+Et],n),s)}function VN0(n,s){if(s[0]===0){var c=s[1],v=p(n[1][1+$],n,c);return v===c?s:[0,v]}var d=s[1],S=d[2][1],E=d[1],O=p(n[1][1+n0],n,S);return S===O?s:[1,[0,E,[0,O]]]}function ZN0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=gr(l(n[1][1+g3],n),d),O=p(n[1][1+n0],n,v);return d===E&&v===O?s:[0,S,[0,E,O]]}function $N0(n,s,c){var v=c[1],d=G0(n[1][1+ia],n,s,v);return v===d?c:[0,d,c[2],c[3]]}function FN0(n,s){var c=s[2],v=c[2],d=c[1],S=s[1],E=gr(l(n[1][1+ee],n),d),O=p(n[1][1+n0],n,v);return d===E&&v===O?s:[0,S,[0,E,O]]}function QN0(n,s,c){var v=c[4],d=c[3],S=c[2],E=c[1],O=p(n[1][1+Ax],n,E),Z=Yx(l(n[1][1+qo],n),S),y0=p(n[1][1+fa],n,d),_0=p(n[1][1+n0],n,v);return E===O&&S===Z&&d===y0&&v===_0?c:[0,O,Z,y0,_0]}function HN0(n,s,c){var v=c[2],d=c[1],S=Yx(l(n[1][1+Zt],n),d),E=p(n[1][1+n0],n,v);return d===S&&v===E?c:[0,S,E]}function qN0(n,s,c){var v=c[2],d=c[1],S=p(n[1][1+O0],n,d),E=p(n[1][1+n0],n,v);return d===S&&v===E?c:[0,S,E]}function GN0(n,s,c){var v=c[4],d=c[3],S=c[2],E=p(n[1][1+Ax],n,S),O=p(n[1][1+Ax],n,d),Z=p(n[1][1+n0],n,v);return S===E&&d===O&&v===Z?c:[0,c[1],E,O,Z]}function bN0(n,s,c){var v=c[4],d=c[3],S=c[2],E=p(n[1][1+en],n,S),O=p(n[1][1+Ax],n,d),Z=p(n[1][1+n0],n,v);return S===E&&d===O&&v===Z?c:[0,c[1],E,O,Z]}function xI0(n,s,c){return G0(n[1][1+Vr],n,s,c)}function rI0(n,s){switch(s[0]){case 0:var c=s[1],v=function(E){return[0,E]};return Q0(l(n[1][1+Ax],n),c,s,v);case 1:var d=s[1],S=function(E){return[1,E]};return Q0(l(n[1][1+I0],n),d,s,S);default:return s}}function eI0(n,s,c){var v=c[2],d=c[1],S=gr(l(n[1][1+xv],n),d),E=p(n[1][1+n0],n,v);return d===S&&v===E?c:[0,S,E]}function tI0(n,s){var c=s[2],v=s[1];switch(c[0]){case 0:var d=c[1],S=function(Mx){return[0,v,[0,Mx]]};return fx(l(n[1][1+P3],n),v,d,s,S);case 1:var E=c[1],O=function(Mx){return[0,v,[1,Mx]]};return fx(l(n[1][1+N3],n),v,E,s,O);case 2:var Z=c[1],y0=function(Mx){return[0,v,[2,Mx]]};return fx(l(n[1][1+bo],n),v,Z,s,y0);case 3:var _0=c[1],F0=function(Mx){return[0,v,[3,Mx]]};return fx(l(n[1][1+At],n),v,_0,s,F0);case 4:var ox=c[1],Cx=function(Mx){return[0,v,[4,Mx]]};return fx(l(n[1][1+ia],n),v,ox,s,Cx);case 5:var dx=c[1],wr=function(Mx){return[0,v,[5,Mx]]};return fx(l(n[1][1+T3],n),v,dx,s,wr);case 6:var c1=c[1],s1=function(Mx){return[0,v,[6,Mx]]};return fx(l(n[1][1+qt],n),v,c1,s,s1);case 7:var y1=c[1],d1=function(Mx){return[0,v,[7,Mx]]};return fx(l(n[1][1+sr],n),v,y1,s,d1);case 8:var Qe=c[1],He=function(Mx){return[0,v,[8,Mx]]};return Q0(l(n[1][1+M1],n),Qe,s,He);case 9:var qe=c[1],Ie=function(Mx){return[0,v,[9,Mx]]};return Q0(p(n[1][1+d3],n,v),qe,s,Ie);case 10:var Ge=c[1],be=function(Mx){return[0,v,[10,Mx]]};return fx(l(n[1][1+cs],n),v,Ge,s,be);case 11:var gt=c[1],xt=function(Mx){return[0,v,[11,Mx]]};return fx(l(n[1][1+Jo],n),v,gt,s,xt);case 12:var rt=c[1],Mn=function(Mx){return[0,v,[12,Mx]]};return fx(l(n[1][1+Tx],n),v,rt,s,Mn);case 13:var Dn=c[1],ms=function(Mx){return[0,v,[13,Mx]]};return fx(l(n[1][1+oo],n),v,Dn,s,ms);case 14:var ks=c[1],et=function(Mx){return[0,v,[14,Mx]]};return fx(l(n[1][1+X2],n),v,ks,s,et);case 15:var hs=c[1],rv=function(Mx){return[0,v,[15,Mx]]};return fx(l(n[1][1+Or],n),v,hs,s,rv);case 16:var B6=c[1],X6=function(Mx){return[0,v,[16,Mx]]};return fx(l(n[1][1+rn],n),v,B6,s,X6);case 17:var W6=c[1],V6=function(Mx){return[0,v,[17,Mx]]};return fx(l(n[1][1+l0],n),v,W6,s,V6);case 18:var Z6=c[1],$6=function(Mx){return[0,v,[18,Mx]]};return fx(l(n[1][1+de],n),v,Z6,s,$6);case 19:var F6=c[1],Q6=function(Mx){return[0,v,[19,Mx]]};return fx(l(n[1][1+Vt],n),v,F6,s,Q6);case 20:var H6=c[1],q6=function(Mx){return[0,v,[20,Mx]]};return fx(l(n[1][1+re],n),v,H6,s,q6);case 21:var G6=c[1],b6=function(Mx){return[0,v,[21,Mx]]};return fx(l(n[1][1+En],n),v,G6,s,b6);case 22:var x4=c[1],r4=function(Mx){return[0,v,[22,Mx]]};return fx(l(n[1][1+at],n),v,x4,s,r4);case 23:var e4=c[1],t4=function(Mx){return[0,v,[23,Mx]]};return fx(l(n[1][1+Jx],n),v,e4,s,t4);case 24:var n4=c[1],u4=function(Mx){return[0,v,[24,Mx]]};return Q0(p(n[1][1+ax],n,v),n4,s,u4);case 25:var i4=c[1],f4=function(Mx){return[0,v,[25,Mx]]};return fx(l(n[1][1+Sr],n),v,i4,s,f4);case 26:var c4=c[1],s4=function(Mx){return[0,v,[26,Mx]]};return fx(l(n[1][1+Q],n),v,c4,s,s4);case 27:var o4=c[1],v4=function(Mx){return[0,v,[27,Mx]]};return fx(l(n[1][1+px],n),v,o4,s,v4);case 28:var a4=c[1],l4=function(Mx){return[0,v,[28,Mx]]};return fx(l(n[1][1+Z0],n),v,a4,s,l4);case 29:var p4=c[1],y4=function(Mx){return[0,v,[29,Mx]]};return fx(l(n[1][1+g0],n),v,p4,s,y4);case 30:var d4=c[1],m4=function(Mx){return[0,v,[30,Mx]]};return fx(l(n[1][1+D0],n),v,d4,s,m4);case 31:var k4=c[1],h4=function(Mx){return[0,v,[31,Mx]]};return fx(l(n[1][1+j],n),v,k4,s,h4);case 32:var _4=c[1],w4=function(Mx){return[0,v,[32,Mx]]};return fx(l(n[1][1+o0],n),v,_4,s,w4);case 33:var T4=c[1],S4=function(Mx){return[0,v,[33,Mx]]};return fx(l(n[1][1+A],n),v,T4,s,S4);case 34:var E4=c[1],A4=function(Mx){return[0,v,[34,Mx]]};return fx(l(n[1][1+h],n),v,E4,s,A4);default:var g4=c[1],Ux=function(Mx){return[0,v,[35,Mx]]};return fx(l(n[1][1+e],n),v,g4,s,Ux)}}function nI0(n,s){var c=s[2],v=s[1],d=s[3],S=gr(l(n[1][1+co],n),v),E=gr(l(n[1][1+co],n),c);return v===S&&c===E?s:[0,S,E,d]}function uI0(n){var s=l(n[1][1+nx],n);return function(c){return Yx(s,c)}}function iI0(n,s){return s}function fI0(n,s){var c=s[2],v=s[1];switch(c[0]){case 0:var d=c[1],S=function(Ix){return[0,v,[0,Ix]]};return fx(l(n[1][1+Et],n),v,d,s,S);case 1:var E=c[1],O=function(Ix){return[0,v,[1,Ix]]};return fx(l(n[1][1+ys],n),v,E,s,O);case 2:var Z=c[1],y0=function(Ix){return[0,v,[2,Ix]]};return fx(l(n[1][1+E3],n),v,Z,s,y0);case 3:var _0=c[1],F0=function(Ix){return[0,v,[3,Ix]]};return fx(l(n[1][1+Fo],n),v,_0,s,F0);case 4:var ox=c[1],Cx=function(Ix){return[0,v,[4,Ix]]};return fx(l(n[1][1+Ht],n),v,ox,s,Cx);case 5:var dx=c[1],wr=function(Ix){return[0,v,[5,Ix]]};return fx(l(n[1][1+Tt],n),v,dx,s,wr);case 6:var c1=c[1],s1=function(Ix){return[0,v,[6,Ix]]};return fx(l(n[1][1+ne],n),v,c1,s,s1);case 7:var y1=c[1],d1=function(Ix){return[0,v,[7,Ix]]};return fx(l(n[1][1+Qt],n),v,y1,s,d1);case 8:var Qe=c[1],He=function(Ix){return[0,v,[8,Ix]]};return fx(l(n[1][1+wt],n),v,Qe,s,He);case 9:var qe=c[1],Ie=function(Ix){return[0,v,[9,Ix]]};return fx(l(n[1][1+_t],n),v,qe,s,Ie);case 10:var Ge=c[1],be=function(Ix){return[0,v,[10,Ix]]};return fx(l(n[1][1+Ft],n),v,Ge,s,be);case 11:var gt=c[1],xt=function(Ix){return[0,v,[11,Ix]]};return fx(l(n[1][1+C2],n),v,gt,s,xt);case 12:var rt=c[1],Mn=function(Ix){return[0,v,[12,Ix]]};return fx(l(n[1][1+te],n),v,rt,s,Mn);case 13:var Dn=c[1],ms=function(Ix){return[0,v,[13,Ix]]};return fx(l(n[1][1+$e],n),v,Dn,s,ms);case 14:var ks=c[1],et=function(Ix){return[0,v,[14,Ix]]};return fx(l(n[1][1+ht],n),v,ks,s,et);case 15:var hs=c[1],rv=function(Ix){return[0,v,[15,Ix]]};return fx(l(n[1][1+br],n),v,hs,s,rv);case 16:var B6=c[1],X6=function(Ix){return[0,v,[16,Ix]]};return fx(l(n[1][1+ge],n),v,B6,s,X6);case 17:var W6=c[1],V6=function(Ix){return[0,v,[17,Ix]]};return fx(l(n[1][1+Ae],n),v,W6,s,V6);case 18:var Z6=c[1],$6=function(Ix){return[0,v,[18,Ix]]};return fx(l(n[1][1+Ee],n),v,Z6,s,$6);case 19:var F6=c[1],Q6=function(Ix){return[0,v,[19,Ix]]};return fx(l(n[1][1+P2],n),v,F6,s,Q6);case 20:var H6=c[1],q6=function(Ix){return[0,v,[20,Ix]]};return fx(l(n[1][1+he],n),v,H6,s,q6);case 21:var G6=c[1],b6=function(Ix){return[0,v,[21,Ix]]};return fx(l(n[1][1+Br],n),v,G6,s,b6);case 22:var x4=c[1],r4=function(Ix){return[0,v,[22,Ix]]};return fx(l(n[1][1+W2],n),v,x4,s,r4);case 23:var e4=c[1],t4=function(Ix){return[0,v,[23,Ix]]};return fx(l(n[1][1+Fr],n),v,e4,s,t4);case 24:var n4=c[1],u4=function(Ix){return[0,v,[24,Ix]]};return fx(l(n[1][1+D1],n),v,n4,s,u4);case 25:var i4=c[1],f4=function(Ix){return[0,v,[25,Ix]]};return fx(l(n[1][1+l1],n),v,i4,s,f4);case 26:var c4=c[1],s4=function(Ix){return[0,v,[26,Ix]]};return fx(l(n[1][1+Pr],n),v,c4,s,s4);case 27:var o4=c[1],v4=function(Ix){return[0,v,[27,Ix]]};return fx(l(n[1][1+Dm],n),v,o4,s,v4);case 28:var a4=c[1],l4=function(Ix){return[0,v,[28,Ix]]};return fx(l(n[1][1+ra],n),v,a4,s,l4);case 29:var p4=c[1],y4=function(Ix){return[0,v,[29,Ix]]};return fx(l(n[1][1+xa],n),v,p4,s,y4);case 30:var d4=c[1],m4=function(Ix){return[0,v,[30,Ix]]};return fx(l(n[1][1+dr],n),v,d4,s,m4);case 31:var k4=c[1],h4=function(Ix){return[0,v,[31,Ix]]};return fx(l(n[1][1+G],n),v,k4,s,h4);case 32:var _4=c[1],w4=function(Ix){return[0,v,[32,Ix]]};return fx(l(n[1][1+yx],n),v,_4,s,w4);case 33:var T4=c[1],S4=function(Ix){return[0,v,[33,Ix]]};return fx(l(n[1][1+M0],n),v,T4,s,S4);case 34:var E4=c[1],A4=function(Ix){return[0,v,[34,Ix]]};return fx(l(n[1][1+E0],n),v,E4,s,A4);case 35:var g4=c[1],Ux=function(Ix){return[0,v,[35,Ix]]};return fx(l(n[1][1+t0],n),v,g4,s,Ux);case 36:var Mx=c[1],cI0=function(Ix){return[0,v,[36,Ix]]};return fx(l(n[1][1+br],n),v,Mx,s,cI0);case 37:var sI0=c[1],oI0=function(Ix){return[0,v,[37,Ix]]};return fx(l(n[1][1+y],n),v,sI0,s,oI0);case 38:var vI0=c[1],aI0=function(Ix){return[0,v,[38,Ix]]};return fx(l(n[1][1+u],n),v,vI0,s,aI0);default:var lI0=c[1],pI0=function(Ix){return[0,v,[39,Ix]]};return fx(l(n[1][1+t],n),v,lI0,s,pI0)}}return LR(x,[0,Km,function(n,s){var c=s[2],v=c[4],d=c[3],S=c[1],E=c[2],O=s[1],Z=p(n[1][1+k0],n,S),y0=p(n[1][1+n0],n,d),_0=gr(l(n[1][1+co],n),v);return S===Z&&d===y0&&v===_0?s:[0,O,[0,Z,E,y0,_0]]},N0,fI0,co,iI0,n0,uI0,nx,nI0,Ax,tI0,P3,eI0,xv,rI0,N3,xI0,bo,bN0,At,GN0,Et,qN0,ys,HN0,ia,QN0,fa,FN0,ax,$N0,qo,ZN0,g3,VN0,Ho,WN0,so,XN0,E3,BN0,T3,YN0,ua,JN0,w3,KN0,Ln,zN0,A3,jN0,Ne,DN0,S3,MN0,na,UN0,ta,LN0,_3,ON0,ea,RN0,Qo,CN0,h3,PN0,Z1,IN0,Fo,NN0,ls,gN0,xn,AN0,as,EN0,vs,SN0,St,TN0,$o,wN0,k3,_N0,qt,hN0,Ht,kN0,Tt,mN0,ne,dN0,Qt,yN0,On,pN0,Rn,lN0,bt,aN0,Gt,vN0,wt,oN0,_t,sN0,os,cN0,Ft,fN0,C2,iN0,te,uN0,$e,nN0,ht,tN0,ge,eN0,Ae,rN0,Ee,xN0,P2,bg0,we,Gg0,Ze,qg0,I2,Hg0,N2,Qg0,_e,Fg0,Se,$g0,mt,Zg0,kt,Vg0,u2,Wg0,$t,Xg0,Te,Bg0,l2,Yg0,he,Jg0,V1,Kg0,Br,zg0,lr,jg0,V2,Dg0,r1,Mg0,Kr,Ug0,W2,Lg0,ee,Og0,D1,Rg0,Cr,Cg0,n2,Pg0,l1,Ig0,x1,Ng0,p1,gg0,Fr,Ag0,Ur,Eg0,h1,Sg0,bx,Tg0,Sx,wg0,T0,_g0,P,hg0,D,kg0,Zt,mg0,b,dg0,k1,yg0,t2,pg0,x0,lg0,_,ag0,Vx,vg0,ur,og0,er,sg0,H,cg0,U1,fg0,Rr,ig0,Zo,ug0,q,ng0,m3,tg0,ro,eg0,f,rg0,i,xg0,Y,bA0,U,GA0,B,qA0,dt,HA0,p3,QA0,Dr,FA0,Tx,$A0,Or,ZA0,rn,VA0,oo,WA0,X2,XA0,l0,BA0,de,YA0,Xx,JA0,ue,KA0,Lm,zA0,g,jA0,L,DA0,R,MA0,C,UA0,I,LA0,Nn,OA0,d0,RA0,f0,CA0,s0,PA0,v0,IA0,c0,NA0,I3,gA0,k,AA0,Vo,EA0,$,SA0,F,TA0,z,wA0,Pr,_A0,sr,hA0,cr,kA0,Vr,mA0,jx,dA0,R0,yA0,or,pA0,rx,lA0,$r,aA0,Wr,vA0,Go,oA0,_r,sA0,M1,cA0,J,fA0,X,iA0,Fe,uA0,l3,nA0,xa,tA0,A0,eA0,Cn,rA0,d3,xA0,jm,bE0,zm,GE0,Dm,qE0,ra,HE0,R6,QE0,C6,FE0,V,$E0,Um,ZE0,Mm,VE0,y3,WE0,cs,XE0,Jo,BE0,lt,YE0,Bo,JE0,Ko,KE0,ke,zE0,ss,jE0,bv,DE0,Wo,ME0,fo,UE0,Gv,LE0,Pn,OE0,Xo,RE0,io,CE0,a3,PE0,no,IE0,Hv,NE0,yt,gE0,uo,AE0,qv,EE0,Yo,SE0,eo,TE0,In,wE0,a2,TU,to,e9,pt,r9,dr,Y6,Vt,wU,re,x9,Sr,_U,me,hU,An,bm,gn,L3,fs,O3,En,J6,at,K6,Jx,kU,S0,mU,Lx,dU,h0,z6,Y0,yU,Wx,pU,U0,lU,tx,j6,br,aU,mr,vU,o,oU,ps,sU,A1,cU,f1,R3,ds,fU,en,Gm,K0,iU,kx,uU,V0,nU,Px,D6,Qx,tU,z0,qm,ux,eU,T,rU,b0,xU,W0,M6,sx,bL,K,U6,H0,Hm,vx,GL,hx,Qm,B0,L6,ir,Fm,X0,qL,zx,$m,rr,HL,j0,O6,$x,QL,L0,FL,M,$L,e0,Zm,i0,Vm,Dx,ca,G,ZL,Q,Wm,k0,Xm,O0,VL,P0,WL,I0,XL,J0,Bm,px,C3,yx,BL,xx,YL,Z0,JL,g0,KL,cx,zL,D0,jL,M0,DL,E0,ML,j,UL,o0,LL,A,OL,h,RL,y,CL,a,PL,u,IL,t,Ym,t0,Jm,e,Un]),function(n,s){return fd(s,x)}}),KR=function x(r,e,t){return x.fun(r,e,t)};C0(KR,function(x,r,e){var t=e[2];switch(t[0]){case 0:var u=t[1][1];return b1(function(f){return function(o){var a=o[0]===0?o[1][2][2]:o[1][2][1];return G0(KR,x,f,a)}},r,u);case 1:var i=t[1][1];return b1(function(f){return function(o){return o[0]===2?f:G0(KR,x,f,o[1][2][1])}},r,i);case 2:return p(x,r,t[1][1]);default:return r}});var hn=function(x,r){return[0,r[1],[0,r[2],x]]},cY=function(x,r,e){var t=x?x[1]:0,u=r?r[1]:0;return[0,t,u,e]},m0=function(x,r,e){var t=x?x[1]:0,u=r?r[1]:0;return!t&&!u?0:[0,cY([0,t],[0,u],0)]},K1=function(x,r,e,t){var u=x?x[1]:0,i=r?r[1]:0;return!u&&!i&&!e?0:[0,cY([0,u],[0,i],e)]},g2=function(x,r){if(x){if(r){var e=r[1],t=x[1],u=[0,Fx(t[2],e[2])];return m0([0,Fx(e[1],t[1])],u,0)}var i=x}else var i=r;return i},JR=function(x,r){if(!r)return x;if(x){var e=r[1],t=x[1],u=e[1],i=t[3],f=t[1],o=[0,Fx(t[2],e[2])];return K1([0,Fx(u,f)],o,i,0)}var a=r[1];return K1([0,a[1]],[0,a[2]],0,0)},sY=function(x,r){l(zr(x),oq),p(zr(x),aq,vq);var e=r[1];l(l(zr(x),lq),e),l(zr(x),pq),l(zr(x),yq),p(zr(x),mq,dq);var t=r[2];return l(l(zr(x),kq),t),l(zr(x),hq),l(zr(x),_q)},oY=function x(r,e){return x.fun(r,e)},DT0=function x(r){return x.fun(r)};C0(oY,function(x,r){l(zr(x),Aq),p(zr(x),Nq,gq);var e=r[1];if(e){var t=e[1];switch(ud(x,Tq),t[0]){case 0:var u=t[1];l(zr(x),xH),l(l(zr(x),rH),u),l(zr(x),eH);break;case 1:var i=t[1];l(zr(x),tH),l(l(zr(x),nH),i),l(zr(x),uH);break;case 2:var f=t[1];l(zr(x),iH),l(l(zr(x),fH),f),l(zr(x),cH);break;default:var o=t[1];l(zr(x),sH),l(l(zr(x),oH),o),l(zr(x),vH)}ud(x,Sq)}else ud(x,Eq);return l(zr(x),Iq),l(zr(x),Pq),p(zr(x),Rq,Cq),sY(x,r[2]),l(zr(x),Oq),l(zr(x),Lq),p(zr(x),Mq,Uq),sY(x,r[3]),l(zr(x),Dq),l(zr(x),jq)}),C0(DT0,function(x){var r=wq[1],e=gJ(0),t=ER(e);return p(jr(function(u){Xe(t,u),TR(t,0);var i=z1(e);return e[2]=0,e[1]=e[4],e[3]=ft(e[1]),i},0,r),oY,x)});var i1=function(x,r){return[0,x[1],x[2],r[3]]},Fs=function(x,r){var e=x[1]-r[1]|0;return e===0?x[2]-r[2]|0:e},vY=function(x,r){var e=r[1],t=x[1];if(t){var u=t[1];if(e)var i=e[1],f=iY(i),o=iY(u)-f|0,a=o===0?Ex(u[1],i[1]):o;else var a=-1}else var a=e?1:0;if(a!==0)return a;var y=Fs(x[2],r[2]);return y===0?Fs(x[3],r[3]):y},Eo=function(x,r){return vY(x,r)===0?1:0},aY=function x(r,e){return x.fun(r,e)};C0(aY,function(x,r){if(typeof x=="number"){var e=x;if(59<=e)switch(e){case 59:if(typeof r=="number"&&r===59)return 0;break;case 60:if(typeof r=="number"&&r===60)return 0;break;case 61:if(typeof r=="number"&&r===61)return 0;break;case 62:if(typeof r=="number"&&r===62)return 0;break;case 63:if(typeof r=="number"&&r===63)return 0;break;case 64:if(typeof r=="number"&&r===64)return 0;break;case 65:if(typeof r=="number"&&r===65)return 0;break;case 66:if(typeof r=="number"&&r===66)return 0;break;case 67:if(typeof r=="number"&&r===67)return 0;break;case 68:if(typeof r=="number"&&r===68)return 0;break;case 69:if(typeof r=="number"&&r===69)return 0;break;case 70:if(typeof r=="number"&&r===70)return 0;break;case 71:if(typeof r=="number"&&r===71)return 0;break;case 72:if(typeof r=="number"&&r===72)return 0;break;case 73:if(typeof r=="number"&&r===73)return 0;break;case 74:if(typeof r=="number"&&r===74)return 0;break;case 75:if(typeof r=="number"&&r===75)return 0;break;case 76:if(typeof r=="number"&&r===76)return 0;break;case 77:if(typeof r=="number"&&r===77)return 0;break;case 78:if(typeof r=="number"&&r===78)return 0;break;case 79:if(typeof r=="number"&&r===79)return 0;break;case 80:if(typeof r=="number"&&r===80)return 0;break;case 81:if(typeof r=="number"&&r===81)return 0;break;case 82:if(typeof r=="number"&&r===82)return 0;break;case 83:if(typeof r=="number"&&r===83)return 0;break;case 84:if(typeof r=="number"&&r===84)return 0;break;case 85:if(typeof r=="number"&&r===85)return 0;break;case 86:if(typeof r=="number"&&r===86)return 0;break;case 87:if(typeof r=="number"&&r===87)return 0;break;case 88:if(typeof r=="number"&&r===88)return 0;break;case 89:if(typeof r=="number"&&r===89)return 0;break;case 90:if(typeof r=="number"&&r===90)return 0;break;case 91:if(typeof r=="number"&&r===91)return 0;break;case 92:if(typeof r=="number"&&r===92)return 0;break;case 93:if(typeof r=="number"&&r===93)return 0;break;case 94:if(typeof r=="number"&&r===94)return 0;break;case 95:if(typeof r=="number"&&r===95)return 0;break;case 96:if(typeof r=="number"&&r===96)return 0;break;case 97:if(typeof r=="number"&&r===97)return 0;break;case 98:if(typeof r=="number"&&r===98)return 0;break;case 99:if(typeof r=="number"&&r===99)return 0;break;case 100:if(typeof r=="number"&&Uc===r)return 0;break;case 101:if(typeof r=="number"&&Pt===r)return 0;break;case 102:if(typeof r=="number"&&Cs===r)return 0;break;case 103:if(typeof r=="number"&&tt===r)return 0;break;case 104:if(typeof r=="number"&&ln===r)return 0;break;case 105:if(typeof r=="number"&&Ue===r)return 0;break;case 106:if(typeof r=="number"&&_1===r)return 0;break;case 107:if(typeof r=="number"&&Rs===r)return 0;break;case 108:if(typeof r=="number"&&fn===r)return 0;break;case 109:if(typeof r=="number"&&wv===r)return 0;break;case 110:if(typeof r=="number"&&P1===r)return 0;break;case 111:if(typeof r=="number"&&ut===r)return 0;break;case 112:if(typeof r=="number"&&fe===r)return 0;break;case 113:if(typeof r=="number"&&Er===r)return 0;break;case 114:if(typeof r=="number"&&Vi===r)return 0;break;case 115:if(typeof r=="number"&&Ps===r)return 0;break;default:if(typeof r=="number"&&Ns<=r)return 0}else switch(e){case 0:if(typeof r=="number"&&!r)return 0;break;case 1:if(typeof r=="number"&&r===1)return 0;break;case 2:if(typeof r=="number"&&r===2)return 0;break;case 3:if(typeof r=="number"&&r===3)return 0;break;case 4:if(typeof r=="number"&&r===4)return 0;break;case 5:if(typeof r=="number"&&r===5)return 0;break;case 6:if(typeof r=="number"&&r===6)return 0;break;case 7:if(typeof r=="number"&&r===7)return 0;break;case 8:if(typeof r=="number"&&r===8)return 0;break;case 9:if(typeof r=="number"&&r===9)return 0;break;case 10:if(typeof r=="number"&&r===10)return 0;break;case 11:if(typeof r=="number"&&r===11)return 0;break;case 12:if(typeof r=="number"&&r===12)return 0;break;case 13:if(typeof r=="number"&&r===13)return 0;break;case 14:if(typeof r=="number"&&r===14)return 0;break;case 15:if(typeof r=="number"&&r===15)return 0;break;case 16:if(typeof r=="number"&&r===16)return 0;break;case 17:if(typeof r=="number"&&r===17)return 0;break;case 18:if(typeof r=="number"&&r===18)return 0;break;case 19:if(typeof r=="number"&&r===19)return 0;break;case 20:if(typeof r=="number"&&r===20)return 0;break;case 21:if(typeof r=="number"&&r===21)return 0;break;case 22:if(typeof r=="number"&&r===22)return 0;break;case 23:if(typeof r=="number"&&r===23)return 0;break;case 24:if(typeof r=="number"&&r===24)return 0;break;case 25:if(typeof r=="number"&&r===25)return 0;break;case 26:if(typeof r=="number"&&r===26)return 0;break;case 27:if(typeof r=="number"&&r===27)return 0;break;case 28:if(typeof r=="number"&&r===28)return 0;break;case 29:if(typeof r=="number"&&r===29)return 0;break;case 30:if(typeof r=="number"&&r===30)return 0;break;case 31:if(typeof r=="number"&&r===31)return 0;break;case 32:if(typeof r=="number"&&r===32)return 0;break;case 33:if(typeof r=="number"&&r===33)return 0;break;case 34:if(typeof r=="number"&&r===34)return 0;break;case 35:if(typeof r=="number"&&r===35)return 0;break;case 36:if(typeof r=="number"&&r===36)return 0;break;case 37:if(typeof r=="number"&&r===37)return 0;break;case 38:if(typeof r=="number"&&r===38)return 0;break;case 39:if(typeof r=="number"&&r===39)return 0;break;case 40:if(typeof r=="number"&&r===40)return 0;break;case 41:if(typeof r=="number"&&r===41)return 0;break;case 42:if(typeof r=="number"&&r===42)return 0;break;case 43:if(typeof r=="number"&&r===43)return 0;break;case 44:if(typeof r=="number"&&r===44)return 0;break;case 45:if(typeof r=="number"&&r===45)return 0;break;case 46:if(typeof r=="number"&&r===46)return 0;break;case 47:if(typeof r=="number"&&r===47)return 0;break;case 48:if(typeof r=="number"&&r===48)return 0;break;case 49:if(typeof r=="number"&&r===49)return 0;break;case 50:if(typeof r=="number"&&r===50)return 0;break;case 51:if(typeof r=="number"&&r===51)return 0;break;case 52:if(typeof r=="number"&&r===52)return 0;break;case 53:if(typeof r=="number"&&r===53)return 0;break;case 54:if(typeof r=="number"&&r===54)return 0;break;case 55:if(typeof r=="number"&&r===55)return 0;break;case 56:if(typeof r=="number"&&r===56)return 0;break;case 57:if(typeof r=="number"&&r===57)return 0;break;default:if(typeof r=="number"&&r===58)return 0}}else switch(x[0]){case 0:if(typeof r!="number"&&r[0]===0)return Ex(x[1],r[1]);break;case 1:if(typeof r!="number"&&r[0]===1)return Ex(x[1],r[1]);break;case 2:if(typeof r!="number"&&r[0]===2){var t=Ex(x[1],r[1]),u=r[2],i=x[2];return t===0?Ex(i,u):t}break;case 3:if(typeof r!="number"&&r[0]===3){var f=Ex(x[1],r[1]),o=r[2],a=x[2];return f===0?Ex(a,o):f}break;case 4:if(typeof r!="number"&&r[0]===4){var y=Ex(x[1],r[1]),h=r[2],k=x[2];return y===0?Ex(k,h):y}break;case 5:if(typeof r!="number"&&r[0]===5)return Ex(x[1],r[1]);break;case 6:if(typeof r!="number"&&r[0]===6)return yn(x[1],r[1]);break;case 7:if(typeof r!="number"&&r[0]===7){var A=r[2],g=x[2],I=Ex(x[1],r[1]);if(I!==0)return I;if(!g)return A?-1:0;var C=g[1];return A?Ex(C,A[1]):1}break;case 8:if(typeof r!="number"&&r[0]===8)return Ex(x[1],r[1]);break;case 9:if(typeof r!="number"&&r[0]===9){var R=r[2],L=x[2],U=Ex(x[1],r[1]),B=r[3],X=x[3];if(U!==0)return U;if(L){var J=L[1];if(R){var e0=R[1],i0=0;switch(J){case 0:if(e0)i0=1;else var z=0;break;case 1:if(e0===1)var z=0;else i0=1;break;case 2:if(e0===2)var z=0;else i0=1;break;case 3:if(e0===3)var z=0;else i0=1;break;default:if(4<=e0)var z=0;else i0=1}if(i0)var j=function(L0){switch(L0){case 0:return 0;case 1:return 1;case 2:return 2;case 3:return 3;default:return 4}},Y=j(e0),z=yn(j(J),Y);var F=z}else var F=1}else var F=R?-1:0;return F===0?Ex(X,B):F}break;case 10:if(typeof r!="number"&&r[0]===10){var t0=Ex(x[1],r[1]),$=r[2],f0=x[2];return t0===0?Ex(f0,$):t0}break;case 11:if(typeof r!="number"&&r[0]===11){var c0=Ex(x[1],r[1]),v0=r[2],s0=x[2];return c0===0?Ex(s0,v0):c0}break;case 12:if(typeof r!="number"&&r[0]===12)return Ex(x[1],r[1]);break;case 13:if(typeof r!="number"&&r[0]===13)return Ex(x[1],r[1]);break;case 14:if(typeof r!="number"&&r[0]===14)return yn(x[1],r[1]);break;case 15:if(typeof r!="number"&&r[0]===15){var o0=Ex(x[1],r[1]),E0=r[4],k0=r[3],M0=r[2],D0=x[4],cx=x[3],g0=x[2];if(o0!==0)return o0;var Z0=yn(g0,M0);if(Z0!==0)return Z0;var n0=yn(cx,k0);return n0===0?yn(D0,E0):n0}break;case 16:if(typeof r!="number"&&r[0]===16)return yn(x[1],r[1]);break;case 17:if(typeof r!="number"&&r[0]===17)return Ex(x[1],r[1]);break;case 18:if(typeof r!="number"&&r[0]===18)return Ex(x[1],r[1]);break;case 19:if(typeof r!="number"&&r[0]===19)return Ex(x[1],r[1]);break;case 20:if(typeof r!="number"&&r[0]===20){var nx=Ex(x[1],r[1]),xx=r[2],yx=x[2];return nx===0?Ex(yx,xx):nx}break;case 21:if(typeof r!="number"&&r[0]===21){var px=r[1],Tx=x[1];if(ol===Tx){if(ol===px)return 0}else if(rl<=Tx){if(rl===px)return 0}else if(Wz===px)return 0;var O0=function(A0){return ol===A0?0:rl<=A0?2:1},P0=O0(px);return yn(O0(Tx),P0)}break;case 22:if(typeof r!="number"&&r[0]===22)return Ex(x[1],r[1]);break;case 23:if(typeof r!="number"&&r[0]===23)return Ex(x[1],r[1]);break;case 24:if(typeof r!="number"&&r[0]===24){var N0=Ex(x[1],r[1]),J0=r[2],I0=x[2];return N0===0?Ex(I0,J0):N0}break;case 25:if(typeof r!="number"&&r[0]===25){var Q=Ex(x[1],r[1]),G=r[2],V=x[2];return Q===0?Ex(V,G):Q}break;default:if(typeof r!="number"&&r[0]===26)return Ex(x[1],r[1])}function l0(A0){if(typeof A0!="number")switch(A0[0]){case 0:return 20;case 1:return 21;case 2:return 23;case 3:return 24;case 4:return 25;case 5:return 26;case 6:return 27;case 7:return 28;case 8:return 30;case 9:return 31;case 10:return 32;case 11:return 34;case 12:return 35;case 13:return 37;case 14:return 40;case 15:return 52;case 16:return 55;case 17:return 64;case 18:return 73;case 19:return 82;case 20:return 89;case 21:return wv;case 22:return aa;case 23:return pa;case 24:return yl;case 25:return k_;default:return HM}var M=A0;if(59<=M)switch(M){case 59:return 78;case 60:return 79;case 61:return 80;case 62:return 81;case 63:return 83;case 64:return 84;case 65:return 85;case 66:return 86;case 67:return 87;case 68:return 88;case 69:return 90;case 70:return 91;case 71:return 92;case 72:return 93;case 73:return 94;case 74:return 95;case 75:return 96;case 76:return 97;case 77:return 98;case 78:return 99;case 79:return Uc;case 80:return Pt;case 81:return Cs;case 82:return tt;case 83:return ln;case 84:return Ue;case 85:return _1;case 86:return Rs;case 87:return fn;case 88:return P1;case 89:return ut;case 90:return fe;case 91:return Er;case 92:return Vi;case 93:return Ps;case 94:return Ns;case 95:return xl;case 96:return Ef;case 97:return G3;case 98:return qr;case 99:return Rt;case 100:return Ra;case 101:return gi;case 102:return U4;case 103:return Jr;case 104:return m1;case 105:return fz;case 106:return lh;case 107:return pz;case 108:return $U;case 109:return Sj;case 110:return xK;case 111:return UD;case 112:return dD;case 113:return uz;case 114:return BD;case 115:return tD;default:return Ij}switch(M){case 0:return 0;case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7;case 8:return 8;case 9:return 9;case 10:return 10;case 11:return 11;case 12:return 12;case 13:return 13;case 14:return 14;case 15:return 15;case 16:return 16;case 17:return 17;case 18:return 18;case 19:return 19;case 20:return 22;case 21:return 29;case 22:return 33;case 23:return 36;case 24:return 38;case 25:return 39;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 53;case 38:return 54;case 39:return 56;case 40:return 57;case 41:return 58;case 42:return 59;case 43:return 60;case 44:return 61;case 45:return 62;case 46:return 63;case 47:return 65;case 48:return 66;case 49:return 67;case 50:return 68;case 51:return 69;case 52:return 70;case 53:return 71;case 54:return 72;case 55:return 74;case 56:return 75;case 57:return 76;default:return 77}}var d0=l0(r);return yn(l0(x),d0)});var jT0=[Qr,W00,zs(0)],zT0=function(x){if(typeof x=="number"){var r=x;if(59<=r)switch(r){case 59:return ZG;case 60:return $G;case 61:return FG;case 62:return QG;case 63:return HG;case 64:return qG;case 65:return GG;case 66:return bG;case 67:return xb;case 68:return rb;case 69:return eb;case 70:return tb;case 71:return nb;case 72:return ub;case 73:return ib;case 74:return fb;case 75:return cb;case 76:return sb;case 77:return ob;case 78:return vb;case 79:return ab;case 80:return lb;case 81:return pb;case 82:return yb;case 83:return db;case 84:return mb;case 85:return kb;case 86:return hb;case 87:return _b;case 88:return wb;case 89:return Tb;case 90:return Sb;case 91:return Eb;case 92:return Ab;case 93:return gb;case 94:return Nb;case 95:return Ib;case 96:return Pb;case 97:return Cb;case 98:return Rb;case 99:return Ob;case 100:return Lb;case 101:return Ub;case 102:return Mb;case 103:return Db;case 104:return jb;case 105:return zb;case 106:return Kb;case 107:return Jb;case 108:return Yb;case 109:return Bb;case 110:return Xb;case 111:return Wb;case 112:return Vb;case 113:return Zb;case 114:return $b;case 115:return Fb;default:return Qb}switch(r){case 0:return zq;case 1:return Kq;case 2:return Jq;case 3:return Zx(Bq,Yq);case 4:return Xq;case 5:return Wq;case 6:return Vq;case 7:return Zq;case 8:return $q;case 9:return Fq;case 10:return Qq;case 11:return Hq;case 12:return Zx(Gq,qq);case 13:return bq;case 14:return xG;case 15:return rG;case 16:return eG;case 17:return tG;case 18:return nG;case 19:return uG;case 20:return iG;case 21:return fG;case 22:return cG;case 23:return sG;case 24:return oG;case 25:return vG;case 26:return aG;case 27:return lG;case 28:return pG;case 29:return yG;case 30:return dG;case 31:return mG;case 32:return kG;case 33:return hG;case 34:return Zx(wG,_G);case 35:return TG;case 36:return SG;case 37:return EG;case 38:return AG;case 39:return gG;case 40:return NG;case 41:return IG;case 42:return PG;case 43:return CG;case 44:return RG;case 45:return OG;case 46:return LG;case 47:return UG;case 48:return MG;case 49:return DG;case 50:return jG;case 51:return zG;case 52:return KG;case 53:return JG;case 54:return YG;case 55:return BG;case 56:return XG;case 57:return WG;default:return VG}}switch(x[0]){case 0:var e=x[1];return l(Ar(Hb),e);case 1:var t=x[1];return l(Ar(qb),t);case 2:var u=x[2],i=x[1];return p(Ar(Gb),u,i);case 3:var f=x[2],o=x[1];return G0(Ar(bb),f,f,o);case 4:var a=x[2],y=x[1];return p(Ar(x00),a,y);case 5:var h=x[1];return l(Ar(r00),h);case 6:return x[1]?e00:t00;case 7:var k=x[2],A=x[1],g=l(Ar(n00),A);if(!k)return l(Ar(i00),g);var I=k[1];return p(Ar(u00),I,g);case 8:var C=x[1];return p(Ar(f00),C,C);case 9:var R=x[3],L=x[2],U=x[1];if(!L)return p(Ar(o00),R,U);var B=L[1];if(B===3)return p(Ar(s00),R,U);switch(B){case 0:var X=QQ;break;case 1:var X=HQ;break;case 2:var X=qQ;break;case 3:var X=GQ;break;default:var X=bQ}return oe(Ar(c00),U,X,R,X);case 10:var J=x[2],e0=Vc(J),i0=x[1];if(ft(e0)===0)var j=e0;else{var Y=FK(e0);Xr(Y,0,VK(se(e0,0)));var j=Y}var z=j2(j);return G0(Ar(v00),J,z,i0);case 11:var F=x[2],t0=x[1];return p(Ar(a00),F,t0);case 12:var $=x[1];return l(Ar(l00),$);case 13:var f0=x[1];return l(Ar(p00),f0);case 14:return x[1]?Zx(d00,y00):Zx(k00,m00);case 15:var c0=x[1],v0=x[4],s0=x[3],o0=x[2]?h00:_00,E0=s0?w00:T00,k0=v0?Zx(S00,c0):c0;return G0(Ar(E00),o0,E0,k0);case 16:var M0=x[1]?A00:g00;return l(Ar(N00),M0);case 17:var D0=x[1];return l(Ar(I00),D0);case 18:var cx=x[1];return l(Ar(P00),cx);case 19:var g0=x[1];return l(Ar(C00),g0);case 20:var Z0=x[2],n0=x[1];return p(Ar(R00),n0,Z0);case 21:var nx=x[1];if(ol===nx)var xx=D00,yx=j00;else if(rl<=nx)var xx=O00,yx=L00;else var xx=U00,yx=M00;return p(Ar(z00),yx,xx);case 22:var px=x[1];return l(Ar(K00),px);case 23:var Tx=x[1];return l(Ar(J00),Tx);case 24:var O0=x[2],P0=x[1];return p(Ar(Y00),P0,O0);case 25:var N0=x[2],J0=x[1];return p(Ar(B00),J0,N0);default:var I0=x[1];return l(Ar(X00),I0)}},lY=V00.slice(),YR=function(x){for(var r=0,e=lY.length-1-1|0;;){if(ex)return 1;var r=t+1|0}},pY=0,yY=function(x){var r=x[2];return[0,x[1],[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12]],x[3],x[4],x[5],x[6],x[7]]},dY=function(x){return x[3][1]},ld=function(x,r){return x!==r[4]?[0,r[1],r[2],r[3],x,r[5],r[6],r[7]]:r},BR=function x(r,e){return x.fun(r,e)},mY=function x(r,e){return x.fun(r,e)},XR=function x(r,e){return x.fun(r,e)},WR=function x(r,e){return x.fun(r,e)};C0(BR,function(x,r){if(typeof x=="number"){var e=x;if(65<=e)if(98<=e)switch(e){case 98:if(typeof r=="number"&&r===98)return 1;break;case 99:if(typeof r=="number"&&r===99)return 1;break;case 100:if(typeof r=="number"&&Uc===r)return 1;break;case 101:if(typeof r=="number"&&Pt===r)return 1;break;case 102:if(typeof r=="number"&&Cs===r)return 1;break;case 103:if(typeof r=="number"&&tt===r)return 1;break;case 104:if(typeof r=="number"&&ln===r)return 1;break;case 105:if(typeof r=="number"&&Ue===r)return 1;break;case 106:if(typeof r=="number"&&_1===r)return 1;break;case 107:if(typeof r=="number"&&Rs===r)return 1;break;case 108:if(typeof r=="number"&&fn===r)return 1;break;case 109:if(typeof r=="number"&&wv===r)return 1;break;case 110:if(typeof r=="number"&&P1===r)return 1;break;case 111:if(typeof r=="number"&&ut===r)return 1;break;case 112:if(typeof r=="number"&&fe===r)return 1;break;case 113:if(typeof r=="number"&&Er===r)return 1;break;case 114:if(typeof r=="number"&&Vi===r)return 1;break;case 115:if(typeof r=="number"&&Ps===r)return 1;break;case 116:if(typeof r=="number"&&Ns===r)return 1;break;case 117:if(typeof r=="number"&&aa===r)return 1;break;case 118:if(typeof r=="number"&&pa===r)return 1;break;case 119:if(typeof r=="number"&&xl===r)return 1;break;case 120:if(typeof r=="number"&&Ef===r)return 1;break;case 121:if(typeof r=="number"&&G3===r)return 1;break;case 122:if(typeof r=="number"&&qr===r)return 1;break;case 123:if(typeof r=="number"&&Rt===r)return 1;break;case 124:if(typeof r=="number"&&Ra===r)return 1;break;case 125:if(typeof r=="number"&&gi===r)return 1;break;case 126:if(typeof r=="number"&&U4===r)return 1;break;case 127:if(typeof r=="number"&&Jr===r)return 1;break;case 128:if(typeof r=="number"&&m1===r)return 1;break;default:if(typeof r=="number"&&yl<=r)return 1}else switch(e){case 65:if(typeof r=="number"&&r===65)return 1;break;case 66:if(typeof r=="number"&&r===66)return 1;break;case 67:if(typeof r=="number"&&r===67)return 1;break;case 68:if(typeof r=="number"&&r===68)return 1;break;case 69:if(typeof r=="number"&&r===69)return 1;break;case 70:if(typeof r=="number"&&r===70)return 1;break;case 71:if(typeof r=="number"&&r===71)return 1;break;case 72:if(typeof r=="number"&&r===72)return 1;break;case 73:if(typeof r=="number"&&r===73)return 1;break;case 74:if(typeof r=="number"&&r===74)return 1;break;case 75:if(typeof r=="number"&&r===75)return 1;break;case 76:if(typeof r=="number"&&r===76)return 1;break;case 77:if(typeof r=="number"&&r===77)return 1;break;case 78:if(typeof r=="number"&&r===78)return 1;break;case 79:if(typeof r=="number"&&r===79)return 1;break;case 80:if(typeof r=="number"&&r===80)return 1;break;case 81:if(typeof r=="number"&&r===81)return 1;break;case 82:if(typeof r=="number"&&r===82)return 1;break;case 83:if(typeof r=="number"&&r===83)return 1;break;case 84:if(typeof r=="number"&&r===84)return 1;break;case 85:if(typeof r=="number"&&r===85)return 1;break;case 86:if(typeof r=="number"&&r===86)return 1;break;case 87:if(typeof r=="number"&&r===87)return 1;break;case 88:if(typeof r=="number"&&r===88)return 1;break;case 89:if(typeof r=="number"&&r===89)return 1;break;case 90:if(typeof r=="number"&&r===90)return 1;break;case 91:if(typeof r=="number"&&r===91)return 1;break;case 92:if(typeof r=="number"&&r===92)return 1;break;case 93:if(typeof r=="number"&&r===93)return 1;break;case 94:if(typeof r=="number"&&r===94)return 1;break;case 95:if(typeof r=="number"&&r===95)return 1;break;case 96:if(typeof r=="number"&&r===96)return 1;break;default:if(typeof r=="number"&&r===97)return 1}else if(33<=e)switch(e){case 33:if(typeof r=="number"&&r===33)return 1;break;case 34:if(typeof r=="number"&&r===34)return 1;break;case 35:if(typeof r=="number"&&r===35)return 1;break;case 36:if(typeof r=="number"&&r===36)return 1;break;case 37:if(typeof r=="number"&&r===37)return 1;break;case 38:if(typeof r=="number"&&r===38)return 1;break;case 39:if(typeof r=="number"&&r===39)return 1;break;case 40:if(typeof r=="number"&&r===40)return 1;break;case 41:if(typeof r=="number"&&r===41)return 1;break;case 42:if(typeof r=="number"&&r===42)return 1;break;case 43:if(typeof r=="number"&&r===43)return 1;break;case 44:if(typeof r=="number"&&r===44)return 1;break;case 45:if(typeof r=="number"&&r===45)return 1;break;case 46:if(typeof r=="number"&&r===46)return 1;break;case 47:if(typeof r=="number"&&r===47)return 1;break;case 48:if(typeof r=="number"&&r===48)return 1;break;case 49:if(typeof r=="number"&&r===49)return 1;break;case 50:if(typeof r=="number"&&r===50)return 1;break;case 51:if(typeof r=="number"&&r===51)return 1;break;case 52:if(typeof r=="number"&&r===52)return 1;break;case 53:if(typeof r=="number"&&r===53)return 1;break;case 54:if(typeof r=="number"&&r===54)return 1;break;case 55:if(typeof r=="number"&&r===55)return 1;break;case 56:if(typeof r=="number"&&r===56)return 1;break;case 57:if(typeof r=="number"&&r===57)return 1;break;case 58:if(typeof r=="number"&&r===58)return 1;break;case 59:if(typeof r=="number"&&r===59)return 1;break;case 60:if(typeof r=="number"&&r===60)return 1;break;case 61:if(typeof r=="number"&&r===61)return 1;break;case 62:if(typeof r=="number"&&r===62)return 1;break;case 63:if(typeof r=="number"&&r===63)return 1;break;default:if(typeof r=="number"&&r===64)return 1}else switch(e){case 0:if(typeof r=="number"&&!r)return 1;break;case 1:if(typeof r=="number"&&r===1)return 1;break;case 2:if(typeof r=="number"&&r===2)return 1;break;case 3:if(typeof r=="number"&&r===3)return 1;break;case 4:if(typeof r=="number"&&r===4)return 1;break;case 5:if(typeof r=="number"&&r===5)return 1;break;case 6:if(typeof r=="number"&&r===6)return 1;break;case 7:if(typeof r=="number"&&r===7)return 1;break;case 8:if(typeof r=="number"&&r===8)return 1;break;case 9:if(typeof r=="number"&&r===9)return 1;break;case 10:if(typeof r=="number"&&r===10)return 1;break;case 11:if(typeof r=="number"&&r===11)return 1;break;case 12:if(typeof r=="number"&&r===12)return 1;break;case 13:if(typeof r=="number"&&r===13)return 1;break;case 14:if(typeof r=="number"&&r===14)return 1;break;case 15:if(typeof r=="number"&&r===15)return 1;break;case 16:if(typeof r=="number"&&r===16)return 1;break;case 17:if(typeof r=="number"&&r===17)return 1;break;case 18:if(typeof r=="number"&&r===18)return 1;break;case 19:if(typeof r=="number"&&r===19)return 1;break;case 20:if(typeof r=="number"&&r===20)return 1;break;case 21:if(typeof r=="number"&&r===21)return 1;break;case 22:if(typeof r=="number"&&r===22)return 1;break;case 23:if(typeof r=="number"&&r===23)return 1;break;case 24:if(typeof r=="number"&&r===24)return 1;break;case 25:if(typeof r=="number"&&r===25)return 1;break;case 26:if(typeof r=="number"&&r===26)return 1;break;case 27:if(typeof r=="number"&&r===27)return 1;break;case 28:if(typeof r=="number"&&r===28)return 1;break;case 29:if(typeof r=="number"&&r===29)return 1;break;case 30:if(typeof r=="number"&&r===30)return 1;break;case 31:if(typeof r=="number"&&r===31)return 1;break;default:if(typeof r=="number"&&r===32)return 1}}else switch(x[0]){case 0:if(typeof r!="number"&&r[0]===0){var t=r[2],u=r[1],i=x[2],f=l(l(XR,x[1]),u);return f&&Nr(i,t)}break;case 1:if(typeof r!="number"&&r[0]===1){var o=r[2],a=r[1],y=x[2],h=l(l(WR,x[1]),a);return h&&Nr(y,o)}break;case 2:if(typeof r!="number"&&r[0]===2){var k=r[1],A=x[1],g=k[4],I=k[3],C=k[2],R=A[4],L=A[3],U=A[2],B=Eo(A[1],k[1]),X=B&&Nr(U,C),J=X&&Nr(L,I);return J&&(R===g?1:0)}break;case 3:if(typeof r!="number"&&r[0]===3){var e0=r[1],i0=x[1],j=e0[5],Y=e0[4],z=e0[3],F=e0[2],t0=i0[5],$=i0[4],f0=i0[3],c0=i0[2],v0=Eo(i0[1],e0[1]),s0=v0&&Nr(c0,F),o0=s0&&Nr(f0,z),E0=o0&&($===Y?1:0);return E0&&(t0===j?1:0)}break;case 4:if(typeof r!="number"&&r[0]===4){var k0=r[3],M0=r[2],D0=x[3],cx=x[2],g0=Eo(x[1],r[1]),Z0=g0&&Nr(cx,M0);return Z0&&Nr(D0,k0)}break;case 5:if(typeof r!="number"&&r[0]===5){var n0=r[3],nx=r[2],xx=x[3],yx=x[2],px=Eo(x[1],r[1]),Tx=px&&Nr(yx,nx);return Tx&&Nr(xx,n0)}break;case 6:if(typeof r!="number"&&r[0]===6){var O0=r[2],P0=x[2],N0=Eo(x[1],r[1]);return N0&&Nr(P0,O0)}break;case 7:if(typeof r!="number"&&r[0]===7)return Nr(x[1],r[1]);break;case 8:if(typeof r!="number"&&r[0]===8){var J0=Nr(x[1],r[1]),I0=r[2],Q=x[2];return J0&&Eo(Q,I0)}break;case 9:if(typeof r!="number"&&r[0]===9){var G=r[3],V=r[2],l0=x[3],d0=x[2],A0=Eo(x[1],r[1]),M=A0&&Nr(d0,V);return M&&Nr(l0,G)}break;case 10:if(typeof r!="number"&&r[0]===10){var L0=r[3],V0=r[2],B0=x[3],vx=x[2],b0=Eo(x[1],r[1]),hx=b0&&Nr(vx,V0);return hx&&Nr(B0,L0)}break;case 11:if(typeof r!="number"&&r[0]===11){var W0=r[1];return l(l(mY,x[1]),W0)}break;case 12:if(typeof r!="number"&&r[0]===12){var T=r[3],K=r[2],H0=r[1],sx=x[3],ux=x[2],z0=l(l(XR,x[1]),H0),Px=z0&&(ux==K?1:0);return Px&&Nr(sx,T)}break;default:if(typeof r!="number"&&r[0]===13){var kx=r[2],$x=x[2],Qx=r[3],j0=r[1],rr=x[3],zx=l(l(WR,x[1]),j0);if(zx){var X0=0;if($x)if(kx)var ir=jy($x[1],kx[1]);else X0=1;else if(kx)X0=1;else var ir=1;if(X0)var ir=0;var K0=ir}else var K0=zx;return K0&&Nr(rr,Qx)}}return 0}),C0(mY,function(x,r){if(x){if(r)return 1}else if(!r)return 1;return 0}),C0(XR,function(x,r){switch(x){case 0:if(!r)return 1;break;case 1:if(r===1)return 1;break;case 2:if(r===2)return 1;break;case 3:if(r===3)return 1;break;default:if(4<=r)return 1}return 0}),C0(WR,function(x,r){switch(x){case 0:if(!r)return 1;break;case 1:if(r===1)return 1;break;default:if(2<=r)return 1}return 0});var kY=function(x){if(typeof x!="number")switch(x[0]){case 0:return lt0;case 1:return pt0;case 2:return yt0;case 3:return dt0;case 4:return mt0;case 5:return kt0;case 6:return ht0;case 7:return _t0;case 8:return wt0;case 9:return Tt0;case 10:return St0;case 11:return Et0;case 12:return At0;default:return gt0}var r=x;if(65<=r){if(98<=r)switch(r){case 98:return Me0;case 99:return De0;case 100:return je0;case 101:return ze0;case 102:return Ke0;case 103:return Je0;case 104:return Ye0;case 105:return Be0;case 106:return Xe0;case 107:return We0;case 108:return Ve0;case 109:return Ze0;case 110:return $e0;case 111:return Fe0;case 112:return Qe0;case 113:return He0;case 114:return qe0;case 115:return Ge0;case 116:return be0;case 117:return xt0;case 118:return rt0;case 119:return et0;case 120:return tt0;case 121:return nt0;case 122:return ut0;case 123:return it0;case 124:return ft0;case 125:return ct0;case 126:return st0;case 127:return ot0;case 128:return vt0;default:return at0}switch(r){case 65:return ee0;case 66:return te0;case 67:return ne0;case 68:return ue0;case 69:return ie0;case 70:return fe0;case 71:return ce0;case 72:return se0;case 73:return oe0;case 74:return ve0;case 75:return ae0;case 76:return le0;case 77:return pe0;case 78:return ye0;case 79:return de0;case 80:return me0;case 81:return ke0;case 82:return he0;case 83:return _e0;case 84:return we0;case 85:return Te0;case 86:return Se0;case 87:return Ee0;case 88:return Ae0;case 89:return ge0;case 90:return Ne0;case 91:return Ie0;case 92:return Pe0;case 93:return Ce0;case 94:return Re0;case 95:return Oe0;case 96:return Le0;default:return Ue0}}if(33<=r)switch(r){case 33:return E20;case 34:return A20;case 35:return g20;case 36:return N20;case 37:return I20;case 38:return P20;case 39:return C20;case 40:return R20;case 41:return O20;case 42:return L20;case 43:return U20;case 44:return M20;case 45:return D20;case 46:return j20;case 47:return z20;case 48:return K20;case 49:return J20;case 50:return Y20;case 51:return B20;case 52:return X20;case 53:return W20;case 54:return V20;case 55:return Z20;case 56:return $20;case 57:return F20;case 58:return Q20;case 59:return H20;case 60:return q20;case 61:return G20;case 62:return b20;case 63:return xe0;default:return re0}switch(r){case 0:return V10;case 1:return Z10;case 2:return $10;case 3:return F10;case 4:return Q10;case 5:return H10;case 6:return q10;case 7:return G10;case 8:return b10;case 9:return x20;case 10:return r20;case 11:return e20;case 12:return t20;case 13:return n20;case 14:return u20;case 15:return i20;case 16:return f20;case 17:return c20;case 18:return s20;case 19:return o20;case 20:return v20;case 21:return a20;case 22:return l20;case 23:return p20;case 24:return y20;case 25:return d20;case 26:return m20;case 27:return k20;case 28:return h20;case 29:return _20;case 30:return w20;case 31:return T20;default:return S20}},VR=function(x){if(typeof x!="number")switch(x[0]){case 0:return x[2];case 1:return x[2];case 2:return x[1][3];case 3:var r=x[1],e=r[5],t=r[4],u=r[3];return t&&e?Zx(U10,Zx(u,L10)):t?Zx(D10,Zx(u,M10)):e?Zx(z10,Zx(u,j10)):Zx(J10,Zx(u,K10));case 4:return x[3];case 5:var i=x[2];return Zx(B10,Zx(i,Zx(Y10,x[3])));case 6:return x[2];case 7:return x[1];case 8:return x[1];case 9:return x[3];case 10:return x[3];case 11:return x[1]?X10:W10;case 12:return x[3];default:return x[3]}var f=x;if(65<=f){if(98<=f)switch(f){case 98:return r10;case 99:return e10;case 100:return t10;case 101:return n10;case 102:return u10;case 103:return i10;case 104:return f10;case 105:return c10;case 106:return s10;case 107:return o10;case 108:return v10;case 109:return a10;case 110:return l10;case 111:return p10;case 112:return y10;case 113:return d10;case 114:return m10;case 115:return k10;case 116:return h10;case 117:return _10;case 118:return w10;case 119:return T10;case 120:return S10;case 121:return E10;case 122:return A10;case 123:return g10;case 124:return N10;case 125:return I10;case 126:return P10;case 127:return C10;case 128:return R10;default:return O10}switch(f){case 65:return Tr0;case 66:return Sr0;case 67:return Er0;case 68:return Ar0;case 69:return gr0;case 70:return Nr0;case 71:return Ir0;case 72:return Pr0;case 73:return Cr0;case 74:return Rr0;case 75:return Or0;case 76:return Lr0;case 77:return Ur0;case 78:return Mr0;case 79:return Dr0;case 80:return jr0;case 81:return zr0;case 82:return Kr0;case 83:return Jr0;case 84:return Yr0;case 85:return Br0;case 86:return Xr0;case 87:return Wr0;case 88:return Vr0;case 89:return Zr0;case 90:return $r0;case 91:return Fr0;case 92:return Qr0;case 93:return Hr0;case 94:return qr0;case 95:return Gr0;case 96:return br0;default:return x10}}if(33<=f)switch(f){case 33:return Wx0;case 34:return Vx0;case 35:return Zx0;case 36:return $x0;case 37:return Fx0;case 38:return Qx0;case 39:return Hx0;case 40:return qx0;case 41:return Gx0;case 42:return bx0;case 43:return xr0;case 44:return rr0;case 45:return er0;case 46:return tr0;case 47:return nr0;case 48:return ur0;case 49:return ir0;case 50:return fr0;case 51:return cr0;case 52:return sr0;case 53:return or0;case 54:return vr0;case 55:return ar0;case 56:return lr0;case 57:return pr0;case 58:return yr0;case 59:return dr0;case 60:return mr0;case 61:return kr0;case 62:return hr0;case 63:return _r0;default:return wr0}switch(f){case 0:return vx0;case 1:return ax0;case 2:return lx0;case 3:return px0;case 4:return yx0;case 5:return dx0;case 6:return mx0;case 7:return kx0;case 8:return hx0;case 9:return _x0;case 10:return wx0;case 11:return Tx0;case 12:return Sx0;case 13:return Ex0;case 14:return Ax0;case 15:return gx0;case 16:return Nx0;case 17:return Ix0;case 18:return Px0;case 19:return Cx0;case 20:return Rx0;case 21:return Ox0;case 22:return Lx0;case 23:return Ux0;case 24:return Mx0;case 25:return Dx0;case 26:return jx0;case 27:return zx0;case 28:return Kx0;case 29:return Jx0;case 30:return Yx0;case 31:return Bx0;default:return Xx0}},pd=function(x){return l(Ar(ox0),x)},ZR=function(x,r){var e=x?x[1]:0,t=0;if(typeof r=="number")if(Er===r)var u=F00,i=Q00;else t=1;else switch(r[0]){case 3:var u=H00,i=q00;break;case 5:var u=G00,i=b00;break;case 0:case 12:var u=rx0,i=ex0;break;case 1:case 13:var u=tx0,i=nx0;break;case 4:case 8:var u=fx0,i=cx0;break;case 6:case 7:case 11:t=1;break;default:var u=ux0,i=ix0}if(t)var u=xx0,i=pd(VR(r));return e?Zx(u,Zx(sx0,i)):i},KT0=function(x){return Av>>0)var t=w(x);else switch(e){case 0:var t=1;break;case 1:var t=2;break;case 2:var t=0;break;default:if(r0(x,2),Co(m(x))===0){var u=Kv(m(x));if(u===0)var t=Ir(m(x))===0&&Ir(m(x))===0&&Ir(m(x))===0?0:w(x);else if(u===1&&Ir(m(x))===0)for(;;){var i=zv(m(x));if(i!==0){var t=i===1?0:w(x);break}}else var t=w(x)}else var t=w(x)}if(2>>0)throw q0([0,Tr,Nt0],1);switch(t){case 0:continue;case 1:return 1;default:if(YR(FJ(x)))continue;return HJ(x,1),0}}},Kd=function(x,r){var e=r-x[3][2]|0;return[0,dY(x),e]},ql=function(x,r,e){var t=Kd(x,e),u=Kd(x,r);return[0,x[1],u,t]},m2=function(x,r){return Kd(x,r[6])},pe=function(x,r){return Kd(x,r[3])},Yr=function(x,r){return ql(x,r[6],r[3])},WY=function(x,r){var e=0;if(typeof r=="number")e=1;else switch(r[0]){case 2:var t=r[1][1];break;case 3:return r[1][1];case 4:var t=r[1];break;case 5:return r[1];case 8:var t=r[2];break;case 9:return r[1];case 10:return r[1];default:e=1}return e?Yr(x,x[2]):t},k2=function(x,r,e){return[0,x[1],x[2],x[3],x[4],x[5],[0,[0,r,e],x[6]],x[7]]},VY=function(x,r,e){return k2(x,r,[23,pd(e)])},qR=function(x,r,e,t){return k2(x,r,[24,e,t])},ot=function(x,r){return k2(x,r,Zc0)},Y2=function(x,r){var e=r[3],t=[0,dY(x)+1|0,e];return[0,x[1],x[2],t,x[4],x[5],x[6],x[7]]},Jt=function(x,r,e,t,u){var i=[0,x[1],r,e],f=z1(t),o=u?0:1;return[0,i,[0,o,f,x[7][3][1]>>0)var a=w(t);else switch(o){case 0:var a=2;break;case 1:for(;;){r0(t,3);var y=m(t),h=-1>>0)return Rx(Kc0);switch(a){case 0:var g=$Y(i,e,t,2,0),I=g[1],C=it(Zx(Jc0,g[2])),R=0<=C?1:0,L=R&&(C<=55295?1:0);if(L)var B=L;else var U=57344<=C?1:0,B=U&&(C<=c5?1:0);var X=B?ZY(i,I,C):k2(i,I,32);qc(u,C);var i=X;continue;case 1:var J=$Y(i,e,t,3,1),e0=J[1],i0=it(Zx(Yc0,J[2])),j=ZY(i,e0,i0);qc(u,i0);var i=j;continue;case 2:return[0,i,z1(u)];default:od(t,u);continue}}},N1=function(x,r,e){var t=ot(x,Yr(x,r));return $a(r),p(e,t,r)},Jv=function(x,r,e){for(var t=x;;){pr(e);var u=m(e),i=-1>>0)var f=w(e);else switch(i){case 0:for(;;){r0(e,3);var o=m(e),a=-1>>0){var k=ot(t,Yr(t,e));return[0,k,pe(k,e)]}switch(f){case 0:var A=Y2(t,e);od(e,r);var t=A;continue;case 1:var g=t[4]?qR(t,Yr(t,e),Ct0,Pt0):t;return[0,g,pe(g,e)];case 2:if(t[4])return[0,t,pe(t,e)];vr(r,Rt0);continue;default:od(e,r);continue}}},Ga=function(x,r,e){for(;;){pr(e);var t=m(e),u=13>>0)var i=w(e);else switch(u){case 0:var i=0;break;case 1:for(;;){r0(e,2);var f=m(e),o=-1>>0)return Rx(Ot0);switch(i){case 0:return[0,x,pe(x,e)];case 1:var a=pe(x,e),y=a[2],h=a[1],k=Y2(x,e);return[0,k,[0,h,y-sd(e)|0]];default:od(e,r);continue}}},QY=function(x,r){function e(e0){return r0(e0,3),J2(m(e0))===0?2:w(e0)}pr(r);var t=m(r),u=Ef>>0)var i=w(r);else switch(u){case 0:var i=0;break;case 1:var i=16;break;case 2:var i=15;break;case 3:r0(r,15);var i=le(m(r))===0?15:w(r);break;case 4:r0(r,4);var i=J2(m(r))===0?e(r):w(r);break;case 5:r0(r,11);var i=J2(m(r))===0?e(r):w(r);break;case 6:var i=0;break;case 7:var i=5;break;case 8:var i=6;break;case 9:var i=7;break;case 10:var i=8;break;case 11:var i=9;break;case 12:r0(r,14);var f=Kv(m(r));if(f===0)var i=Ir(m(r))===0&&Ir(m(r))===0&&Ir(m(r))===0?12:w(r);else if(f===1&&Ir(m(r))===0)for(;;){var o=zv(m(r));if(o!==0){var i=o===1?13:w(r);break}}else var i=w(r);break;case 13:var i=10;break;default:r0(r,14);var i=Ir(m(r))===0&&Ir(m(r))===0?1:w(r)}if(16>>0)return Rx(Ac0);switch(i){case 0:var a=Kx(r);return[0,x,a,n1(r),0];case 1:var y=Kx(r);return[0,x,y,[0,it(Zx(gc0,y))],0];case 2:var h=Kx(r),k=it(Zx(Nc0,h));return yv<=k?[0,x,h,[0,k>>>3|0,48+(k&7)|0],1]:[0,x,h,[0,k],1];case 3:var A=Kx(r);return[0,x,A,[0,it(Zx(Ic0,A))],1];case 4:return[0,x,Pc0,[0,0],0];case 5:return[0,x,Cc0,[0,8],0];case 6:return[0,x,Rc0,[0,12],0];case 7:return[0,x,Oc0,[0,10],0];case 8:return[0,x,Lc0,[0,13],0];case 9:return[0,x,Uc0,[0,9],0];case 10:return[0,x,Mc0,[0,11],0];case 11:var g=Kx(r);return[0,x,g,[0,it(Zx(Dc0,g))],1];case 12:var I=Kx(r);return[0,x,I,[0,it(Zx(jc0,z2(I,1,Gx(I)-1|0)))],0];case 13:var C=Kx(r),R=it(Zx(zc0,z2(C,2,Gx(C)-3|0))),L=c5>>0)var h=w(i);else switch(y){case 0:var h=3;break;case 1:for(;;){r0(i,4);var k=m(i),A=-1>>0)return Rx(Lt0);switch(h){case 0:var g=Kx(i);if(vr(t,g),Nr(r,g))return[0,f,pe(f,i),o];vr(e,g);continue;case 1:vr(t,Ut0);var I=QY(f,i),C=I[4],R=I[3],L=I[2],U=I[1],B=C||o;vr(t,L),GK(function(f0){return qc(e,f0)},R);var f=U,o=B;continue;case 2:var X=Kx(i);vr(t,X);var J=Y2(ot(f,Yr(f,i)),i);return vr(e,X),[0,J,pe(J,i),o];case 3:var e0=Kx(i);vr(t,e0);var i0=ot(f,Yr(f,i));return vr(e,e0),[0,i0,pe(i0,i),o];default:var j=i[6],Y=i[3]-j|0,z=g1(Y*4|0),F=Wl(i[1],j,Y,z);cR(t,z,0,F),cR(e,z,0,F);continue}}},qY=function(x,r,e,t){for(var u=x;;){pr(t);var i=m(t),f=96>>0)var o=w(t);else switch(f){case 0:var o=0;break;case 1:for(;;){r0(t,6);var a=m(t),y=-1>>0)return Rx(Mt0);switch(o){case 0:return[0,ot(u,Yr(u,t)),1];case 1:return[0,u,1];case 2:return[0,u,0];case 3:ct(e,92);var A=QY(u,t),g=A[3],I=A[1];vr(e,A[2]),GK(function(L){return qc(r,L)},g);var u=I;continue;case 4:vr(e,Dt0),vr(r,jt0);var u=Y2(u,t);continue;case 5:vr(e,Kx(t)),ct(r,10);var u=Y2(u,t);continue;default:var C=Kx(t);vr(e,C),vr(r,C);continue}}},BT0=function(x,r){function e(_){for(;;)if(r0(_,33),ar(m(_))!==0)return w(_)}function t(_){r0(_,32);var b=L1(m(_));if(b!==0)return b===1?e(_):w(_);for(;;)if(r0(_,30),ar(m(_))!==0)return w(_)}function u(_){r0(_,31);var b=L1(m(_));if(b!==0)return b===1?e(_):w(_);for(;;)if(r0(_,29),ar(m(_))!==0)return w(_)}function i(_){r0(_,34);var b=Qa(m(_));if(2>>0)return w(_);switch(b){case 0:return e(_);case 1:for(;;){r0(_,34);var x0=rs(m(_));if(3>>0)return w(_);switch(x0){case 0:return e(_);case 1:continue;case 2:x:for(;;){if(yr(m(_))!==0)return w(_);for(;;){r0(_,34);var S0=rs(m(_));if(3>>0)return w(_);switch(S0){case 0:return e(_);case 1:continue;case 2:continue x;default:return u(_)}}}default:return u(_)}}default:return u(_)}}function f(_){x:for(;;){if(yr(m(_))!==0)return w(_);for(;;){r0(_,34);var b=UY(m(_));if(4>>0)return w(_);switch(b){case 0:return e(_);case 1:return i(_);case 2:continue;case 3:continue x;default:return t(_)}}}}function o(_){for(;;)if(r0(_,23),ar(m(_))!==0)return w(_)}function a(_){for(;;)if(r0(_,23),ar(m(_))!==0)return w(_)}function y(_){for(;;)if(r0(_,15),ar(m(_))!==0)return w(_)}function h(_){for(;;)if(r0(_,15),ar(m(_))!==0)return w(_)}function k(_){for(;;)if(r0(_,11),ar(m(_))!==0)return w(_)}function A(_){for(;;)if(r0(_,11),ar(m(_))!==0)return w(_)}function g(_){for(;;)if(r0(_,17),ar(m(_))!==0)return w(_)}function I(_){for(;;)if(r0(_,17),ar(m(_))!==0)return w(_)}function C(_){for(;;)if(r0(_,19),ar(m(_))!==0)return w(_)}function R(_){for(;;)if(r0(_,27),ar(m(_))!==0)return w(_)}function L(_){r0(_,26);var b=L1(m(_));if(b!==0)return b===1?R(_):w(_);for(;;)if(r0(_,25),ar(m(_))!==0)return w(_)}function U(_){for(;;)if(r0(_,27),ar(m(_))!==0)return w(_)}function B(_){r0(_,26);var b=L1(m(_));if(b!==0)return b===1?U(_):w(_);for(;;)if(r0(_,25),ar(m(_))!==0)return w(_)}function X(_){x:for(;;){if(yr(m(_))!==0)return w(_);for(;;){r0(_,28);var b=rs(m(_));if(3>>0)return w(_);switch(b){case 0:return U(_);case 1:continue;case 2:continue x;default:return B(_)}}}}function J(_){r0(_,33);var b=DY(m(_));if(3>>0)return w(_);switch(b){case 0:return e(_);case 1:var x0=go(m(_));if(x0===0)for(;;){r0(_,28);var S0=Qa(m(_));if(2>>0)return w(_);switch(S0){case 0:return U(_);case 1:continue;default:return B(_)}}if(x0!==1)return w(_);for(;;){r0(_,28);var H=rs(m(_));if(3>>0)return w(_);switch(H){case 0:return U(_);case 1:continue;case 2:return X(_);default:return B(_)}}case 2:for(;;){r0(_,28);var h0=Qa(m(_));if(2>>0)return w(_);switch(h0){case 0:return R(_);case 1:continue;default:return L(_)}}default:for(;;){r0(_,28);var Y0=rs(m(_));if(3>>0)return w(_);switch(Y0){case 0:return R(_);case 1:continue;case 2:return X(_);default:return L(_)}}}}function e0(_){r0(_,34);var b=AY(m(_));if(3>>0)return w(_);switch(b){case 0:return e(_);case 1:for(;;){r0(_,34);var x0=No(m(_));if(4>>0)return w(_);switch(x0){case 0:return e(_);case 1:continue;case 2:return J(_);case 3:x:for(;;){if(yr(m(_))!==0)return w(_);for(;;){r0(_,34);var S0=No(m(_));if(4>>0)return w(_);switch(S0){case 0:return e(_);case 1:continue;case 2:return J(_);case 3:continue x;default:return u(_)}}}default:return u(_)}}case 2:return J(_);default:return u(_)}}function i0(_){return Rd(m(_))===0&&Nd(m(_))===0&&zY(m(_))===0&&NY(m(_))===0&&IY(m(_))===0&&HR(m(_))===0&&Ql(m(_))===0&&Rd(m(_))===0&&Co(m(_))===0&&PY(m(_))===0&&Hl(m(_))===0?3:w(_)}function j(_){return r0(_,3),YY(m(_))===0?3:w(_)}function Y(_){var b=KT0(m(_));if(36>>0)return w(_);switch(b){case 0:return 98;case 1:return 99;case 2:if(r0(_,1),bc(m(_))!==0)return w(_);for(;;)if(r0(_,1),bc(m(_))!==0)return w(_);case 3:return 0;case 4:return r0(_,0),le(m(_))===0?0:w(_);case 5:return r0(_,88),_n(m(_))===0?(r0(_,58),_n(m(_))===0?54:w(_)):w(_);case 6:return 7;case 7:r0(_,95);var x0=m(_),S0=32>>0)return w(_);switch(Y0){case 0:return r0(_,83),_n(m(_))===0?70:w(_);case 1:return 4;default:return 69}case 14:r0(_,80);var U0=m(_),tx=42>>0)return w(_);switch(Vx){case 0:return e(_);case 1:continue;case 2:return J(_);case 3:x:for(;;){if(yr(m(_))!==0)return w(_);for(;;){r0(_,34);var er=No(m(_));if(4>>0)return w(_);switch(er){case 0:return e(_);case 1:continue;case 2:return J(_);case 3:continue x;default:return u(_)}}}default:return u(_)}}case 18:r0(_,93);var Jx=gY(m(_));if(2>>0)return w(_);switch(Jx){case 0:r0(_,2);var Or=wd(m(_));if(2>>0)return w(_);switch(Or){case 0:for(;;){var Xx=wd(m(_));if(2>>0)return w(_);switch(Xx){case 0:continue;case 1:return j(_);default:return i0(_)}}case 1:return j(_);default:return i0(_)}case 1:return 5;default:return 92}case 19:r0(_,34);var X2=RY(m(_));if(8>>0)return w(_);switch(X2){case 0:return e(_);case 1:return e0(_);case 2:for(;;){r0(_,20);var at=jY(m(_));if(4>>0)return w(_);switch(at){case 0:return C(_);case 1:return i(_);case 2:continue;case 3:for(;;){r0(_,18);var de=_d(m(_));if(3>>0)return w(_);switch(de){case 0:return I(_);case 1:return i(_);case 2:continue;default:r0(_,17);var En=L1(m(_));if(En!==0)return En===1?I(_):w(_);for(;;)if(r0(_,17),ar(m(_))!==0)return w(_)}}default:r0(_,19);var ro=L1(m(_));if(ro!==0)return ro===1?C(_):w(_);for(;;)if(r0(_,19),ar(m(_))!==0)return w(_)}}case 3:for(;;){r0(_,18);var An=_d(m(_));if(3>>0)return w(_);switch(An){case 0:return g(_);case 1:return i(_);case 2:continue;default:r0(_,17);var fs=L1(m(_));if(fs!==0)return fs===1?g(_):w(_);for(;;)if(r0(_,17),ar(m(_))!==0)return w(_)}}case 4:r0(_,33);var me=CY(m(_));if(me===0)return e(_);if(me!==1)return w(_);for(;;){r0(_,12);var gn=Dd(m(_));if(3>>0)return w(_);switch(gn){case 0:return A(_);case 1:continue;case 2:x:for(;;){if(xs(m(_))!==0)return w(_);for(;;){r0(_,12);var re=Dd(m(_));if(3>>0)return w(_);switch(re){case 0:return k(_);case 1:continue;case 2:continue x;default:r0(_,10);var Vt=L1(m(_));if(Vt!==0)return Vt===1?k(_):w(_);for(;;)if(r0(_,9),ar(m(_))!==0)return w(_)}}}default:r0(_,10);var dr=L1(m(_));if(dr!==0)return dr===1?A(_):w(_);for(;;)if(r0(_,9),ar(m(_))!==0)return w(_)}}case 5:return J(_);case 6:r0(_,33);var Zt=OY(m(_));if(Zt===0)return e(_);if(Zt!==1)return w(_);for(;;){r0(_,16);var Nn=Ud(m(_));if(3>>0)return w(_);switch(Nn){case 0:return h(_);case 1:continue;case 2:x:for(;;){if(J2(m(_))!==0)return w(_);for(;;){r0(_,16);var Hv=Ud(m(_));if(3>>0)return w(_);switch(Hv){case 0:return y(_);case 1:continue;case 2:continue x;default:r0(_,14);var ke=L1(m(_));if(ke!==0)return ke===1?y(_):w(_);for(;;)if(r0(_,13),ar(m(_))!==0)return w(_)}}}default:r0(_,14);var lt=L1(m(_));if(lt!==0)return lt===1?h(_):w(_);for(;;)if(r0(_,13),ar(m(_))!==0)return w(_)}}case 7:r0(_,33);var Ko=wY(m(_));if(Ko===0)return e(_);if(Ko!==1)return w(_);for(;;){r0(_,24);var eo=jd(m(_));if(3>>0)return w(_);switch(eo){case 0:return a(_);case 1:continue;case 2:x:for(;;){if(Ir(m(_))!==0)return w(_);for(;;){r0(_,24);var a2=jd(m(_));if(3>>0)return w(_);switch(a2){case 0:return o(_);case 1:continue;case 2:continue x;default:r0(_,22);var to=L1(m(_));if(to!==0)return to===1?o(_):w(_);for(;;)if(r0(_,21),ar(m(_))!==0)return w(_)}}}default:r0(_,22);var In=L1(m(_));if(In!==0)return In===1?a(_):w(_);for(;;)if(r0(_,21),ar(m(_))!==0)return w(_)}}default:return t(_)}case 20:r0(_,34);var pt=Sd(m(_));if(5>>0)return w(_);switch(pt){case 0:return e(_);case 1:return e0(_);case 2:for(;;){r0(_,34);var Jo=Sd(m(_));if(5>>0)return w(_);switch(Jo){case 0:return e(_);case 1:return e0(_);case 2:continue;case 3:return J(_);case 4:return f(_);default:return t(_)}}case 3:return J(_);case 4:return f(_);default:return t(_)}case 21:return 46;case 22:return 44;case 23:r0(_,78);var no=m(_),qv=59>>0)return Rx(wc0);var F=z;if(50>F)switch(F){case 0:return[2,Y2(x,r)];case 1:return[2,x];case 2:var t0=m2(x,r),$=Zr(Jr),f0=Jv(x,$,r),c0=f0[1];return[1,c0,Jt(c0,t0,f0[2],$,1)];case 3:var v0=Kx(r);if(!x[5]){var s0=m2(x,r),o0=Zr(Jr);vr(o0,z2(v0,2,Gx(v0)-2|0));var E0=Jv(x,o0,r),k0=E0[1];return[1,k0,Jt(k0,s0,E0[2],o0,1)]}var M0=x[4]?VY(x,Yr(x,r),v0):x,D0=ld(1,M0),cx=sd(r);return Nr(Vl(r,cx-1|0,1),Nv)&&N(Vl(r,cx-2|0,1),Nv)?[0,D0,86]:[2,D0];case 4:if(x[4])return[2,ld(0,x)];$a(r),pr(r);var g0=EY(m(r))===0?0:w(r);return g0===0?[0,x,_1]:Rx(Tc0);case 5:var Z0=m2(x,r),n0=Zr(Jr),nx=Ga(x,n0,r),xx=nx[1];return[1,xx,Jt(xx,Z0,nx[2],n0,0)];case 6:if(r[6]!==0)return[0,x,Sc0];var yx=m2(x,r),px=Zr(Jr),Tx=Ga(x,px,r),O0=Tx[1],P0=[0,O0[1],yx,Tx[2]];return[0,O0,[6,P0,z1(px)]];case 7:var N0=Kx(r),J0=m2(x,r),I0=Zr(Jr),Q=Zr(Jr);vr(Q,N0);var G=HY(x,N0,I0,Q,0,r),V=G[1],l0=G[3],d0=[0,V[1],J0,G[2]],A0=z1(Q);return[0,V,[2,[0,d0,z1(I0),A0,l0]]];case 8:var M=Zr(Jr),L0=Zr(Jr),V0=m2(x,r),B0=qY(x,M,L0,r),vx=B0[1],b0=B0[2],hx=pe(vx,r),W0=[0,vx[1],V0,hx],T=z1(L0);return[0,vx,[3,[0,W0,z1(M),T,1,b0]]];case 9:return N1(x,r,function(_,b){if(pr(b),ae(m(b))===0&&Ad(m(b))===0&&xs(m(b))===0)for(;;){var x0=kd(m(b));if(2>>0)var h0=w(b);else switch(x0){case 0:continue;case 1:x:for(;;){if(xs(m(b))===0)for(;;){var S0=kd(m(b));if(2>>0)var H=w(b);else switch(S0){case 0:continue;case 1:continue x;default:var H=0}break}else var H=w(b);var h0=H;break}break;default:var h0=0}break}else var h0=w(b);return h0===0?[0,_,[1,0,Kx(b)]]:Rx(_c0)});case 10:return[0,x,[1,0,Kx(r)]];case 11:return N1(x,r,function(_,b){if(pr(b),ae(m(b))===0&&Ad(m(b))===0&&xs(m(b))===0)for(;;){r0(b,0);var x0=md(m(b));if(x0!==0){if(x0===1)x:for(;;){if(xs(m(b))===0)for(;;){r0(b,0);var S0=md(m(b));if(S0!==0){if(S0===1)continue x;var H=w(b);break}}else var H=w(b);var h0=H;break}else var h0=w(b);break}}else var h0=w(b);return h0===0?[0,_,[0,0,Kx(b)]]:Rx(hc0)});case 12:return[0,x,[0,0,Kx(r)]];case 13:return N1(x,r,function(_,b){if(pr(b),ae(m(b))===0&&Pd(m(b))===0&&J2(m(b))===0)for(;;){var x0=Ed(m(b));if(2>>0)var h0=w(b);else switch(x0){case 0:continue;case 1:x:for(;;){if(J2(m(b))===0)for(;;){var S0=Ed(m(b));if(2>>0)var H=w(b);else switch(S0){case 0:continue;case 1:continue x;default:var H=0}break}else var H=w(b);var h0=H;break}break;default:var h0=0}break}else var h0=w(b);return h0===0?[0,_,[1,1,Kx(b)]]:Rx(kc0)});case 14:return[0,x,[1,1,Kx(r)]];case 15:return N1(x,r,function(_,b){if(pr(b),ae(m(b))===0&&Pd(m(b))===0&&J2(m(b))===0)for(;;){r0(b,0);var x0=Td(m(b));if(x0!==0){if(x0===1)x:for(;;){if(J2(m(b))===0)for(;;){r0(b,0);var S0=Td(m(b));if(S0!==0){if(S0===1)continue x;var H=w(b);break}}else var H=w(b);var h0=H;break}else var h0=w(b);break}}else var h0=w(b);return h0===0?[0,_,[0,3,Kx(b)]]:Rx(mc0)});case 16:return[0,x,[0,3,Kx(r)]];case 17:return N1(x,r,function(_,b){if(pr(b),ae(m(b))===0)for(;;){var x0=m(b),S0=47>>0)var h0=w(b);else switch(x0){case 0:continue;case 1:x:for(;;){if(Ir(m(b))===0)for(;;){var S0=hd(m(b));if(2>>0)var H=w(b);else switch(S0){case 0:continue;case 1:continue x;default:var H=0}break}else var H=w(b);var h0=H;break}break;default:var h0=0}break}else var h0=w(b);return h0===0?[0,_,[1,2,Kx(b)]]:Rx(pc0)});case 22:return[0,x,[1,2,Kx(r)]];case 23:return N1(x,r,function(_,b){if(pr(b),ae(m(b))===0&&yd(m(b))===0&&Ir(m(b))===0)for(;;){r0(b,0);var x0=Od(m(b));if(x0!==0){if(x0===1)x:for(;;){if(Ir(m(b))===0)for(;;){r0(b,0);var S0=Od(m(b));if(S0!==0){if(S0===1)continue x;var H=w(b);break}}else var H=w(b);var h0=H;break}else var h0=w(b);break}}else var h0=w(b);return h0===0?[0,_,[0,4,Kx(b)]]:Rx(lc0)});case 24:return[0,x,[0,4,Kx(r)]];case 25:return N1(x,r,function(_,b){function x0(Jx){for(;;){var Or=zt(m(Jx));if(2>>0)return w(Jx);switch(Or){case 0:continue;case 1:x:for(;;){if(yr(m(Jx))!==0)return w(Jx);for(;;){var Xx=zt(m(Jx));if(2>>0)return w(Jx);switch(Xx){case 0:continue;case 1:continue x;default:return 0}}}default:return 0}}}function S0(Jx){for(;;){var Or=Ha(m(Jx));if(Or!==0)return Or===1?0:w(Jx)}}function H(Jx){var Or=zd(m(Jx));if(2>>0)return w(Jx);switch(Or){case 0:var Xx=go(m(Jx));return Xx===0?S0(Jx):Xx===1?x0(Jx):w(Jx);case 1:return S0(Jx);default:return x0(Jx)}}function h0(Jx){var Or=Cd(m(Jx));if(Or!==0)return Or===1?H(Jx):w(Jx);for(;;){var Xx=G2(m(Jx));if(2>>0)return w(Jx);switch(Xx){case 0:continue;case 1:return H(Jx);default:x:for(;;){if(yr(m(Jx))!==0)return w(Jx);for(;;){var X2=G2(m(Jx));if(2>>0)return w(Jx);switch(X2){case 0:continue;case 1:return H(Jx);default:continue x}}}}}}pr(b);var Y0=Ao(m(b));if(2>>0)var U0=w(b);else switch(Y0){case 0:if(yr(m(b))===0)for(;;){var tx=G2(m(b));if(2>>0)var U0=w(b);else switch(tx){case 0:continue;case 1:var U0=H(b);break;default:x:for(;;){if(yr(m(b))===0)for(;;){var Wx=G2(m(b));if(2>>0)var Lx=w(b);else switch(Wx){case 0:continue;case 1:var Lx=H(b);break;default:continue x}break}else var Lx=w(b);var U0=Lx;break}}break}else var U0=w(b);break;case 1:var ur=dd(m(b)),U0=ur===0?h0(b):ur===1?H(b):w(b);break;default:for(;;){var Vx=Id(m(b));if(2>>0)var U0=w(b);else switch(Vx){case 0:var U0=h0(b);break;case 1:continue;default:var U0=H(b)}break}}if(U0!==0)return Rx(ac0);var er=k2(_,Yr(_,b),47);return[0,er,[1,2,Kx(b)]]});case 26:var K=k2(x,Yr(x,r),47);return[0,K,[1,2,Kx(r)]];case 27:return N1(x,r,function(_,b){function x0(er){for(;;){r0(er,0);var Jx=Io(m(er));if(Jx!==0){if(Jx!==1)return w(er);x:for(;;){if(yr(m(er))!==0)return w(er);for(;;){r0(er,0);var Or=Io(m(er));if(Or!==0){if(Or===1)continue x;return w(er)}}}}}}function S0(er){for(;;)if(r0(er,0),yr(m(er))!==0)return w(er)}function H(er){var Jx=zd(m(er));if(2>>0)return w(er);switch(Jx){case 0:var Or=go(m(er));return Or===0?S0(er):Or===1?x0(er):w(er);case 1:return S0(er);default:return x0(er)}}function h0(er){var Jx=Cd(m(er));if(Jx!==0)return Jx===1?H(er):w(er);for(;;){var Or=G2(m(er));if(2>>0)return w(er);switch(Or){case 0:continue;case 1:return H(er);default:x:for(;;){if(yr(m(er))!==0)return w(er);for(;;){var Xx=G2(m(er));if(2>>0)return w(er);switch(Xx){case 0:continue;case 1:return H(er);default:continue x}}}}}}pr(b);var Y0=Ao(m(b));if(2>>0)var U0=w(b);else switch(Y0){case 0:if(yr(m(b))===0)for(;;){var tx=G2(m(b));if(2>>0)var U0=w(b);else switch(tx){case 0:continue;case 1:var U0=H(b);break;default:x:for(;;){if(yr(m(b))===0)for(;;){var Wx=G2(m(b));if(2>>0)var Lx=w(b);else switch(Wx){case 0:continue;case 1:var Lx=H(b);break;default:continue x}break}else var Lx=w(b);var U0=Lx;break}}break}else var U0=w(b);break;case 1:var ur=dd(m(b)),U0=ur===0?h0(b):ur===1?H(b):w(b);break;default:for(;;){var Vx=Id(m(b));if(2>>0)var U0=w(b);else switch(Vx){case 0:var U0=h0(b);break;case 1:continue;default:var U0=H(b)}break}}return U0===0?[0,_,[0,4,Kx(b)]]:Rx(vc0)});case 28:return[0,x,[0,4,Kx(r)]];case 29:return N1(x,r,function(_,b){function x0(ur){for(;;){var Vx=zt(m(ur));if(2>>0)return w(ur);switch(Vx){case 0:continue;case 1:x:for(;;){if(yr(m(ur))!==0)return w(ur);for(;;){var er=zt(m(ur));if(2>>0)return w(ur);switch(er){case 0:continue;case 1:continue x;default:return 0}}}default:return 0}}}function S0(ur){var Vx=Ha(m(ur));return Vx===0?x0(ur):Vx===1?0:w(ur)}pr(b);var H=Ao(m(b));if(2>>0)var h0=w(b);else switch(H){case 0:var h0=yr(m(b))===0?x0(b):w(b);break;case 1:for(;;){var Y0=qa(m(b));if(Y0===0)var h0=S0(b);else{if(Y0===1)continue;var h0=w(b)}break}break;default:for(;;){var U0=Po(m(b));if(2>>0)var h0=w(b);else switch(U0){case 0:var h0=S0(b);break;case 1:continue;default:x:for(;;){if(yr(m(b))===0)for(;;){var tx=Po(m(b));if(2>>0)var Wx=w(b);else switch(tx){case 0:var Wx=S0(b);break;case 1:continue;default:continue x}break}else var Wx=w(b);var h0=Wx;break}}break}}if(h0!==0)return Rx(oc0);var Lx=k2(_,Yr(_,b),38);return[0,Lx,[1,2,Kx(b)]]});case 30:return N1(x,r,function(_,b){pr(b);var x0=go(m(b));if(x0===0)for(;;){var S0=Ha(m(b));if(S0!==0){var U0=S0===1?0:w(b);break}}else if(x0===1)for(;;){var H=zt(m(b));if(2>>0)var U0=w(b);else switch(H){case 0:continue;case 1:x:for(;;){if(yr(m(b))===0)for(;;){var h0=zt(m(b));if(2>>0)var Y0=w(b);else switch(h0){case 0:continue;case 1:continue x;default:var Y0=0}break}else var Y0=w(b);var U0=Y0;break}break;default:var U0=0}break}else var U0=w(b);return U0===0?[0,_,[1,2,Kx(b)]]:Rx(sc0)});case 31:var H0=k2(x,Yr(x,r),38);return[0,H0,[1,2,Kx(r)]];case 32:return[0,x,[1,2,Kx(r)]];case 33:return N1(x,r,function(_,b){function x0(Lx){for(;;){r0(Lx,0);var ur=Io(m(Lx));if(ur!==0){if(ur!==1)return w(Lx);x:for(;;){if(yr(m(Lx))!==0)return w(Lx);for(;;){r0(Lx,0);var Vx=Io(m(Lx));if(Vx!==0){if(Vx===1)continue x;return w(Lx)}}}}}}function S0(Lx){return r0(Lx,0),yr(m(Lx))===0?x0(Lx):w(Lx)}pr(b);var H=Ao(m(b));if(2>>0)var h0=w(b);else switch(H){case 0:var h0=yr(m(b))===0?x0(b):w(b);break;case 1:for(;;){r0(b,0);var Y0=qa(m(b));if(Y0===0)var h0=S0(b);else{if(Y0===1)continue;var h0=w(b)}break}break;default:for(;;){r0(b,0);var U0=Po(m(b));if(2>>0)var h0=w(b);else switch(U0){case 0:var h0=S0(b);break;case 1:continue;default:x:for(;;){if(yr(m(b))===0)for(;;){r0(b,0);var tx=Po(m(b));if(2>>0)var Wx=w(b);else switch(tx){case 0:var Wx=S0(b);break;case 1:continue;default:continue x}break}else var Wx=w(b);var h0=Wx;break}}break}}return h0===0?[0,_,[0,4,Kx(b)]]:Rx(cc0)});case 34:return[0,x,[0,4,Kx(r)]];case 35:var sx=Yr(x,r),ux=Kx(r);return[0,x,[4,sx,ux,ux]];case 36:return[0,x,0];case 37:return[0,x,1];case 38:return[0,x,4];case 39:return[0,x,5];case 40:return[0,x,6];case 41:return[0,x,7];case 42:return[0,x,12];case 43:return[0,x,10];case 44:return[0,x,8];case 45:return[0,x,9];case 46:return[0,x,86];case 47:$a(r),pr(r);var z0=m(r),Px=62=rr)return[0,x,18];var zx=Ex(j0,Ia);if(0<=zx){if(0>=zx)return[0,x,51];var X0=Ex(j0,ws);if(0<=X0){if(0>=X0)return[0,x,46];if(!N(j0,sl))return[0,x,24];if(!N(j0,gs))return[0,x,47];if(!N(j0,Mp))return[0,x,25];if(!N(j0,ap))return[0,x,26];if(!N(j0,U2))return[0,x,58]}else{if(!N(j0,Ke))return[0,x,20];if(!N(j0,fv))return[0,x,21];if(!N(j0,ze))return[0,x,22];if(!N(j0,Ts))return[0,x,31];if(!N(j0,ny))return[0,x,23];if(!N(j0,bu))return[0,x,61]}}else{var ir=Ex(j0,Zp);if(0<=ir){if(0>=ir)return[0,x,54];if(!N(j0,kl))return[0,x,55];if(!N(j0,W3))return[0,x,56];if(!N(j0,j3))return[0,x,57];if(!N(j0,Me))return[0,x,19];if(!N(j0,De))return[0,x,42]}else{if(!N(j0,F2))return[0,x,53];if(!N(j0,ya))return[0,x,28];if(!N(j0,iv))return[0,x,44];if(!N(j0,lv))return[0,x,29];if(!N(j0,Yh))return[0,x,63];if(!N(j0,Rh))return[0,x,62]}}}else{var K0=Ex(j0,W5);if(0<=K0){if(0>=K0)return[0,x,37];var Sr=Ex(j0,d8);if(0<=Sr){if(0>=Sr)return[0,x,39];if(!N(j0,la))return[0,x,15];if(!N(j0,Hp))return[0,x,16];if(!N(j0,dv))return[0,x,52];if(!N(j0,R2))return[0,x,50];if(!N(j0,mo))return[0,x,17]}else{if(!N(j0,Rp))return[0,x,43];if(!N(j0,cl))return[0,x,48];if(!N(j0,r8))return[0,x,49];if(!N(j0,Ic))return[0,x,41];if(!N(j0,As))return[0,x,30];if(!N(j0,gp))return[0,x,38]}}else{var Dr=Ex(j0,nl);if(0<=Dr){if(0>=Dr)return[0,x,27];if(!N(j0,Ce))return[0,x,35];if(!N(j0,Re))return[0,x,59];if(!N(j0,Q3))return[0,x,60];if(!N(j0,cv))return[0,x,36];if(!N(j0,el))return[0,x,45]}else{if(!N(j0,ko))return[0,x,64];if(!N(j0,_v))return[0,x,65];if(!N(j0,Le))return[0,x,32];if(!N(j0,Jp))return[0,x,33];if(!N(j0,W8))return[0,x,34];if(!N(j0,Y3))return[0,x,40]}}}var ax=n1(r),br=FY(x,ax),t2=br[2],k1=br[1];return[0,k1,[4,Qx,t2,Zl(ax)]];case 98:var Rr=x[4]?k2(x,Yr(x,r),95):x;return[0,Rr,Er];default:var U1=ot(x,Yr(x,r));return[0,U1,[7,Kx(r)]]}},XT0=function(x,r,e){var t=x;x:for(;;){pr(e);var u=m(e),i=92>>0)var f=w(e);else switch(i){case 0:var f=0;break;case 1:for(;;){r0(e,7);var o=m(e),a=-1>>0)var f=w(e);else switch(h){case 0:var f=2;break;case 1:var f=1;break;default:r0(e,1);var f=le(m(e))===0?1:w(e)}}if(7>>0)return Rx(Jt0);switch(f){case 0:return[0,k2(t,Yr(t,e),Er),Yt0];case 1:return[0,Y2(k2(t,Yr(t,e),Er),e),Bt0];case 2:vr(r,Kx(e));continue;case 3:var k=Kx(e);return[0,t,z2(k,1,Gx(k)-1|0)];case 4:return[0,t,Xt0];case 5:for(ct(r,91);;){pr(e);var A=m(e),g=93>>0)var I=w(e);else switch(g){case 0:var I=0;break;case 1:for(;;){r0(e,5);var C=m(e),R=-1>>0)var B=Rx(zt0);else switch(I){case 0:var B=t;break;case 1:vr(r,Kt0);continue;case 2:ct(r,92),ct(r,93);continue;case 3:ct(r,93);var B=t;break;case 4:var B=Y2(k2(t,Yr(t,e),Er),e);break;default:vr(r,Kx(e));continue}var t=B;continue x}case 6:return[0,Y2(k2(t,Yr(t,e),Er),e),Wt0];default:vr(r,Kx(e));continue}}},WT0=function(x,r){pr(r);var e=m(r),t=Av>>0)var u=w(r);else switch(t){case 0:var u=0;break;case 1:var u=6;break;case 2:if(r0(r,2),bc(m(r))===0){for(;;)if(r0(r,2),bc(m(r))!==0){var u=w(r);break}}else var u=w(r);break;case 3:var u=1;break;case 4:r0(r,1);var u=le(m(r))===0?1:w(r);break;default:r0(r,5);var i=Md(m(r)),u=i===0?4:i===1?3:w(r)}if(6>>0)return Rx(fc0);switch(u){case 0:return[0,x,Er];case 1:return[2,Y2(x,r)];case 2:return[2,x];case 3:var f=m2(x,r),o=Zr(Jr),a=Ga(x,o,r),y=a[1];return[1,y,Jt(y,f,a[2],o,0)];case 4:var h=m2(x,r),k=Zr(Jr),A=Jv(x,k,r),g=A[1];return[1,g,Jt(g,h,A[2],k,1)];case 5:var I=m2(x,r),C=Zr(Jr),R=XT0(x,C,r),L=R[1],U=R[2],B=pe(L,r),X=[0,L[1],I,B];return[0,L,[5,X,z1(C),U]];default:var J=ot(x,Yr(x,r));return[0,J,[7,Kx(r)]]}},GY=function(x){var r=Ex(x,"iexcl");if(0<=r){if(0>=r)return ic0;var e=Ex(x,"prime");if(0<=e){if(0>=e)return uc0;var t=Ex(x,"sup1");if(0<=t){if(0>=t)return nc0;var u=Ex(x,"uarr");if(0<=u){if(0>=u)return tc0;var i=Ex(x,"xi");if(0<=i){if(0>=i)return ec0;if(!N(x,"yacute"))return rc0;if(!N(x,"yen"))return xc0;if(!N(x,"yuml"))return bf0;if(!N(x,"zeta"))return Gf0;if(!N(x,"zwj"))return qf0;if(!N(x,"zwnj"))return Hf0}else{if(!N(x,"ucirc"))return Qf0;if(!N(x,"ugrave"))return Ff0;if(!N(x,"uml"))return $f0;if(!N(x,"upsih"))return Zf0;if(!N(x,"upsilon"))return Vf0;if(!N(x,"uuml"))return Wf0;if(!N(x,"weierp"))return Xf0}}else{var f=Ex(x,"thetasym");if(0<=f){if(0>=f)return Bf0;if(!N(x,"thinsp"))return Yf0;if(!N(x,"thorn"))return Jf0;if(!N(x,"tilde"))return Kf0;if(!N(x,"times"))return zf0;if(!N(x,"trade"))return jf0;if(!N(x,"uArr"))return Df0;if(!N(x,"uacute"))return Mf0}else{if(!N(x,"sup2"))return Uf0;if(!N(x,"sup3"))return Lf0;if(!N(x,"supe"))return Of0;if(!N(x,"szlig"))return Rf0;if(!N(x,"tau"))return Cf0;if(!N(x,"there4"))return Pf0;if(!N(x,"theta"))return If0}}}else{var o=Ex(x,"rlm");if(0<=o){if(0>=o)return Nf0;var a=Ex(x,"sigma");if(0<=a){if(0>=a)return gf0;if(!N(x,"sigmaf"))return Af0;if(!N(x,"sim"))return Ef0;if(!N(x,"spades"))return Sf0;if(!N(x,"sub"))return Tf0;if(!N(x,"sube"))return wf0;if(!N(x,"sum"))return _f0;if(!N(x,"sup"))return hf0}else{if(!N(x,"rsaquo"))return kf0;if(!N(x,"rsquo"))return mf0;if(!N(x,"sbquo"))return df0;if(!N(x,"scaron"))return yf0;if(!N(x,"sdot"))return pf0;if(!N(x,"sect"))return lf0;if(!N(x,"shy"))return af0}}else{var y=Ex(x,"raquo");if(0<=y){if(0>=y)return vf0;if(!N(x,"rarr"))return of0;if(!N(x,"rceil"))return sf0;if(!N(x,"rdquo"))return cf0;if(!N(x,"real"))return ff0;if(!N(x,"reg"))return if0;if(!N(x,"rfloor"))return uf0;if(!N(x,"rho"))return nf0}else{if(!N(x,"prod"))return tf0;if(!N(x,"prop"))return ef0;if(!N(x,"psi"))return rf0;if(!N(x,"quot"))return xf0;if(!N(x,"rArr"))return bi0;if(!N(x,"radic"))return Gi0;if(!N(x,"rang"))return qi0}}}}else{var h=Ex(x,"ndash");if(0<=h){if(0>=h)return Hi0;var k=Ex(x,"or");if(0<=k){if(0>=k)return Qi0;var A=Ex(x,"part");if(0<=A){if(0>=A)return Fi0;if(!N(x,"permil"))return $i0;if(!N(x,"perp"))return Zi0;if(!N(x,"phi"))return Vi0;if(!N(x,"pi"))return Wi0;if(!N(x,"piv"))return Xi0;if(!N(x,"plusmn"))return Bi0;if(!N(x,"pound"))return Yi0}else{if(!N(x,"ordf"))return Ji0;if(!N(x,"ordm"))return Ki0;if(!N(x,"oslash"))return zi0;if(!N(x,"otilde"))return ji0;if(!N(x,"otimes"))return Di0;if(!N(x,"ouml"))return Mi0;if(!N(x,"para"))return Ui0}}else{var g=Ex(x,"oacute");if(0<=g){if(0>=g)return Li0;if(!N(x,"ocirc"))return Oi0;if(!N(x,"oelig"))return Ri0;if(!N(x,"ograve"))return Ci0;if(!N(x,"oline"))return Pi0;if(!N(x,"omega"))return Ii0;if(!N(x,"omicron"))return Ni0;if(!N(x,"oplus"))return gi0}else{if(!N(x,"ne"))return Ai0;if(!N(x,"ni"))return Ei0;if(!N(x,"not"))return Si0;if(!N(x,"notin"))return Ti0;if(!N(x,"nsub"))return wi0;if(!N(x,"ntilde"))return _i0;if(!N(x,"nu"))return hi0}}}else{var I=Ex(x,"le");if(0<=I){if(0>=I)return ki0;var C=Ex(x,"macr");if(0<=C){if(0>=C)return mi0;if(!N(x,"mdash"))return di0;if(!N(x,"micro"))return yi0;if(!N(x,"middot"))return pi0;if(!N(x,IM))return li0;if(!N(x,"mu"))return ai0;if(!N(x,"nabla"))return vi0;if(!N(x,"nbsp"))return oi0}else{if(!N(x,"lfloor"))return si0;if(!N(x,"lowast"))return ci0;if(!N(x,"loz"))return fi0;if(!N(x,"lrm"))return ii0;if(!N(x,"lsaquo"))return ui0;if(!N(x,"lsquo"))return ni0;if(!N(x,"lt"))return ti0}}else{var R=Ex(x,"kappa");if(0<=R){if(0>=R)return ei0;if(!N(x,"lArr"))return ri0;if(!N(x,"lambda"))return xi0;if(!N(x,"lang"))return bu0;if(!N(x,"laquo"))return Gu0;if(!N(x,"larr"))return qu0;if(!N(x,"lceil"))return Hu0;if(!N(x,"ldquo"))return Qu0}else{if(!N(x,"igrave"))return Fu0;if(!N(x,"image"))return $u0;if(!N(x,"infin"))return Zu0;if(!N(x,"iota"))return Vu0;if(!N(x,"iquest"))return Wu0;if(!N(x,"isin"))return Xu0;if(!N(x,"iuml"))return Bu0}}}}}else{var L=Ex(x,"aelig");if(0<=L){if(0>=L)return Yu0;var U=Ex(x,"delta");if(0<=U){if(0>=U)return Ju0;var B=Ex(x,"fnof");if(0<=B){if(0>=B)return Ku0;var X=Ex(x,"gt");if(0<=X){if(0>=X)return zu0;if(!N(x,"hArr"))return ju0;if(!N(x,"harr"))return Du0;if(!N(x,"hearts"))return Mu0;if(!N(x,"hellip"))return Uu0;if(!N(x,"iacute"))return Lu0;if(!N(x,"icirc"))return Ou0}else{if(!N(x,"forall"))return Ru0;if(!N(x,"frac12"))return Cu0;if(!N(x,"frac14"))return Pu0;if(!N(x,"frac34"))return Iu0;if(!N(x,"frasl"))return Nu0;if(!N(x,"gamma"))return gu0;if(!N(x,"ge"))return Au0}}else{var J=Ex(x,"ensp");if(0<=J){if(0>=J)return Eu0;if(!N(x,"epsilon"))return Su0;if(!N(x,"equiv"))return Tu0;if(!N(x,"eta"))return wu0;if(!N(x,"eth"))return _u0;if(!N(x,"euml"))return hu0;if(!N(x,"euro"))return ku0;if(!N(x,"exist"))return mu0}else{if(!N(x,"diams"))return du0;if(!N(x,"divide"))return yu0;if(!N(x,"eacute"))return pu0;if(!N(x,"ecirc"))return lu0;if(!N(x,"egrave"))return au0;if(!N(x,ce))return vu0;if(!N(x,"emsp"))return ou0}}}else{var e0=Ex(x,"cap");if(0<=e0){if(0>=e0)return su0;var i0=Ex(x,"copy");if(0<=i0){if(0>=i0)return cu0;if(!N(x,"crarr"))return fu0;if(!N(x,"cup"))return iu0;if(!N(x,"curren"))return uu0;if(!N(x,"dArr"))return nu0;if(!N(x,"dagger"))return tu0;if(!N(x,"darr"))return eu0;if(!N(x,"deg"))return ru0}else{if(!N(x,"ccedil"))return xu0;if(!N(x,"cedil"))return b70;if(!N(x,"cent"))return G70;if(!N(x,"chi"))return q70;if(!N(x,"circ"))return H70;if(!N(x,"clubs"))return Q70;if(!N(x,"cong"))return F70}}else{var j=Ex(x,"aring");if(0<=j){if(0>=j)return $70;if(!N(x,"asymp"))return Z70;if(!N(x,"atilde"))return V70;if(!N(x,"auml"))return W70;if(!N(x,"bdquo"))return X70;if(!N(x,"beta"))return B70;if(!N(x,"brvbar"))return Y70;if(!N(x,"bull"))return J70}else{if(!N(x,"agrave"))return K70;if(!N(x,"alefsym"))return z70;if(!N(x,"alpha"))return j70;if(!N(x,"amp"))return D70;if(!N(x,"and"))return M70;if(!N(x,"ang"))return U70;if(!N(x,"apos"))return L70}}}}else{var Y=Ex(x,"Nu");if(0<=Y){if(0>=Y)return O70;var z=Ex(x,"Sigma");if(0<=z){if(0>=z)return R70;var F=Ex(x,"Uuml");if(0<=F){if(0>=F)return C70;if(!N(x,"Xi"))return P70;if(!N(x,"Yacute"))return I70;if(!N(x,"Yuml"))return N70;if(!N(x,"Zeta"))return g70;if(!N(x,"aacute"))return A70;if(!N(x,"acirc"))return E70;if(!N(x,"acute"))return S70}else{if(!N(x,"THORN"))return T70;if(!N(x,"Tau"))return w70;if(!N(x,"Theta"))return _70;if(!N(x,"Uacute"))return h70;if(!N(x,"Ucirc"))return k70;if(!N(x,"Ugrave"))return m70;if(!N(x,"Upsilon"))return d70}}else{var t0=Ex(x,"Otilde");if(0<=t0){if(0>=t0)return y70;if(!N(x,"Ouml"))return p70;if(!N(x,"Phi"))return l70;if(!N(x,"Pi"))return a70;if(!N(x,"Prime"))return v70;if(!N(x,"Psi"))return o70;if(!N(x,"Rho"))return s70;if(!N(x,"Scaron"))return c70}else{if(!N(x,"OElig"))return f70;if(!N(x,"Oacute"))return i70;if(!N(x,"Ocirc"))return u70;if(!N(x,"Ograve"))return n70;if(!N(x,"Omega"))return t70;if(!N(x,"Omicron"))return e70;if(!N(x,"Oslash"))return r70}}}else{var $=Ex(x,"Eacute");if(0<=$){if(0>=$)return x70;var f0=Ex(x,"Icirc");if(0<=f0){if(0>=f0)return bn0;if(!N(x,"Igrave"))return Gn0;if(!N(x,"Iota"))return qn0;if(!N(x,"Iuml"))return Hn0;if(!N(x,"Kappa"))return Qn0;if(!N(x,"Lambda"))return Fn0;if(!N(x,"Mu"))return $n0;if(!N(x,"Ntilde"))return Zn0}else{if(!N(x,"Ecirc"))return Vn0;if(!N(x,"Egrave"))return Wn0;if(!N(x,"Epsilon"))return Xn0;if(!N(x,"Eta"))return Bn0;if(!N(x,"Euml"))return Yn0;if(!N(x,"Gamma"))return Jn0;if(!N(x,"Iacute"))return Kn0}}else{var c0=Ex(x,"Atilde");if(0<=c0){if(0>=c0)return zn0;if(!N(x,"Auml"))return jn0;if(!N(x,"Beta"))return Dn0;if(!N(x,"Ccedil"))return Mn0;if(!N(x,"Chi"))return Un0;if(!N(x,"Dagger"))return Ln0;if(!N(x,"Delta"))return On0;if(!N(x,"ETH"))return Rn0}else{if(!N(x,"'int'"))return Cn0;if(!N(x,"AElig"))return Pn0;if(!N(x,"Aacute"))return In0;if(!N(x,"Acirc"))return Nn0;if(!N(x,"Agrave"))return gn0;if(!N(x,"Alpha"))return An0;if(!N(x,"Aring"))return En0}}}}}return 0},bY=function(x,r,e,t){for(var u=x;;){var i=function(t0){for(;;)if(r0(t0,8),FR(m(t0))!==0)return w(t0)};pr(t);var f=m(t),o=gi>>0)var a=w(t);else switch(o){case 0:var a=3;break;case 1:var a=i(t);break;case 2:var a=4;break;case 3:r0(t,4);var a=le(m(t))===0?4:w(t);break;case 4:r0(t,8);var y=BY(m(t));if(y===0){var h=hY(m(t));if(h===0)for(;;){var k=_Y(m(t));if(k!==0){var a=k===1?6:w(t);break}}else if(h===1&&Ir(m(t))===0)for(;;){var A=KY(m(t));if(A!==0){var a=A===1?5:w(t);break}}else var a=w(t)}else if(y===1&&ar(m(t))===0){var g=Kt(m(t));if(g===0){var I=Kt(m(t));if(I===0){var C=Kt(m(t));if(C===0){var R=Kt(m(t));if(R===0){var L=Kt(m(t));if(L===0)var U=Kt(m(t)),a=U===0?MY(m(t))===0?7:w(t):U===1?7:w(t);else var a=L===1?7:w(t)}else var a=R===1?7:w(t)}else var a=C===1?7:w(t)}else var a=I===1?7:w(t)}else var a=g===1?7:w(t)}else var a=w(t);break;case 5:var a=0;break;case 6:r0(t,1);var a=FR(m(t))===0?i(t):w(t);break;default:r0(t,2);var a=FR(m(t))===0?i(t):w(t)}if(8>>0)return Rx(Vt0);switch(a){case 0:return $a(t),u;case 1:return qR(u,Yr(u,t),$t0,Zt0);case 2:return qR(u,Yr(u,t),Qt0,Ft0);case 3:return ot(u,Yr(u,t));case 4:var B=Kx(t);vr(e,B),vr(r,B);var u=Y2(u,t);continue;case 5:var X=Kx(t),J=z2(X,3,Gx(X)-4|0);vr(e,X),qc(r,it(Zx(Ht0,J)));continue;case 6:var e0=Kx(t),i0=z2(e0,2,Gx(e0)-3|0);vr(e,e0),qc(r,it(i0));continue;case 7:var j=Kx(t),Y=z2(j,1,Gx(j)-2|0);vr(e,j);var z=GY(Y);z?qc(r,z[1]):vr(r,Zx(Gt0,Zx(Y,qt0)));continue;default:var F=Kx(t);vr(e,F),vr(r,F);continue}}},VT0=function(x,r){pr(r);var e=YT0(m(r));if(14>>0)var t=w(r);else switch(e){case 0:var t=0;break;case 1:var t=14;break;case 2:if(r0(r,2),bc(m(r))===0){for(;;)if(r0(r,2),bc(m(r))!==0){var t=w(r);break}}else var t=w(r);break;case 3:var t=1;break;case 4:r0(r,1);var t=le(m(r))===0?1:w(r);break;case 5:var t=12;break;case 6:var t=13;break;case 7:var t=10;break;case 8:r0(r,6);var u=Md(m(r)),t=u===0?4:u===1?3:w(r);break;case 9:var t=9;break;case 10:var t=5;break;case 11:var t=11;break;case 12:var t=7;break;case 13:if(r0(r,14),Co(m(r))===0){var i=Kv(m(r));if(i===0)var t=Ir(m(r))===0&&Ir(m(r))===0&&Ir(m(r))===0?13:w(r);else if(i===1&&Ir(m(r))===0)for(;;){var f=zv(m(r));if(f!==0){var t=f===1?13:w(r);break}}else var t=w(r)}else var t=w(r);break;default:var t=8}if(14>>0)return Rx(Sn0);switch(t){case 0:return[0,x,Er];case 1:return[2,Y2(x,r)];case 2:return[2,x];case 3:var o=m2(x,r),a=Zr(Jr),y=Ga(x,a,r),h=y[1];return[1,h,Jt(h,o,y[2],a,0)];case 4:var k=m2(x,r),A=Zr(Jr),g=Jv(x,A,r),I=g[1];return[1,I,Jt(I,k,g[2],A,1)];case 5:return[0,x,98];case 6:return[0,x,Ue];case 7:return[0,x,99];case 8:return[0,x,0];case 9:return[0,x,86];case 10:return[0,x,10];case 11:return[0,x,82];case 12:var C=Kx(r),R=m2(x,r),L=Zr(Jr),U=Zr(Jr);vr(U,C);for(var B=Nr(C,"'"),X=x;;){pr(r);var J=m(r),e0=39>>0)var i0=w(r);else switch(e0){case 0:var i0=2;break;case 1:for(;;){r0(r,7);var j=m(r),Y=-1>>0)var k0=Rx(bt0);else switch(i0){case 0:if(!B){ct(U,39),ct(L,39);continue}var k0=X;break;case 1:if(B){ct(U,34),ct(L,34);continue}var k0=X;break;case 2:var k0=ot(X,Yr(X,r));break;case 3:var M0=Kx(r);vr(U,M0),vr(L,M0);var X=Y2(X,r);continue;case 4:var D0=Kx(r),cx=z2(D0,3,Gx(D0)-4|0);vr(U,D0),qc(L,it(Zx(xn0,cx)));continue;case 5:var g0=Kx(r),Z0=z2(g0,2,Gx(g0)-3|0);vr(U,g0),qc(L,it(Z0));continue;case 6:var n0=Kx(r),nx=z2(n0,1,Gx(n0)-2|0);vr(U,n0);var xx=GY(nx);xx?qc(L,xx[1]):vr(L,Zx(en0,Zx(nx,rn0)));continue;default:var yx=Kx(r);vr(U,yx),vr(L,yx);continue}var px=pe(k0,r);vr(U,C);var Tx=z1(L),O0=z1(U);return[0,k0,[10,[0,k0[1],R,px],Tx,O0]]}case 13:for(var P0=r[6];;){pr(r);var N0=m(r),J0=qr>>0)var I0=w(r);else switch(J0){case 0:var I0=1;break;case 1:var I0=2;break;case 2:var I0=0;break;default:if(r0(r,2),Co(m(r))===0){var Q=Kv(m(r));if(Q===0)var I0=Ir(m(r))===0&&Ir(m(r))===0&&Ir(m(r))===0?0:w(r);else if(Q===1&&Ir(m(r))===0)for(;;){var G=zv(m(r));if(G!==0){var I0=G===1?0:w(r);break}}else var I0=w(r)}else var I0=w(r)}if(2>>0)throw q0([0,Tr,It0],1);switch(I0){case 0:continue;case 1:break;default:if(YR(FJ(r)))continue;HJ(r,1)}var V=r[3];UR(r,P0);var l0=n1(r),d0=ql(x,P0,V);return[0,x,[8,Zl(l0),d0]]}default:return[0,x,[7,Kx(r)]]}},ZT0=function(x,r){pr(r);var e=m(r),t=-1>>0)var u=w(r);else switch(t){case 0:var u=5;break;case 1:if(r0(r,1),bc(m(r))===0){for(;;)if(r0(r,1),bc(m(r))!==0){var u=w(r);break}}else var u=w(r);break;case 2:var u=0;break;case 3:r0(r,0);var u=le(m(r))===0?0:w(r);break;case 4:r0(r,5);var i=Md(m(r)),u=i===0?3:i===1?2:w(r);break;default:var u=4}if(5>>0)return Rx(hn0);switch(u){case 0:return[2,Y2(x,r)];case 1:return[2,x];case 2:var f=m2(x,r),o=Zr(Jr),a=Ga(x,o,r),y=a[1];return[1,y,Jt(y,f,a[2],o,0)];case 3:var h=m2(x,r),k=Zr(Jr),A=Jv(x,k,r),g=A[1];return[1,g,Jt(g,h,A[2],k,1)];case 4:var I=m2(x,r),C=Zr(Jr),R=Zr(Jr),L=qY(x,C,R,r),U=L[1],B=L[2],X=pe(U,r),J=[0,U[1],I,X],e0=z1(R);return[0,U,[3,[0,J,z1(C),e0,0,B]]];default:var i0=ot(x,Yr(x,r));return[0,i0,[3,[0,Yr(i0,r),wn0,_n0,0,1]]]}},$T0=function(x,r){function e(T){for(;;)if(r0(T,29),ar(m(T))!==0)return w(T)}function t(T){r0(T,28);var K=L1(m(T));if(K!==0)return K===1?e(T):w(T);for(;;)if(r0(T,26),ar(m(T))!==0)return w(T)}function u(T){r0(T,27);var K=L1(m(T));if(K!==0)return K===1?e(T):w(T);for(;;)if(r0(T,25),ar(m(T))!==0)return w(T)}function i(T){r0(T,30);var K=Qa(m(T));if(2>>0)return w(T);switch(K){case 0:return e(T);case 1:for(;;){r0(T,30);var H0=rs(m(T));if(3>>0)return w(T);switch(H0){case 0:return e(T);case 1:continue;case 2:x:for(;;){if(yr(m(T))!==0)return w(T);for(;;){r0(T,30);var sx=rs(m(T));if(3>>0)return w(T);switch(sx){case 0:return e(T);case 1:continue;case 2:continue x;default:return u(T)}}}default:return u(T)}}default:return u(T)}}function f(T){x:for(;;){if(yr(m(T))!==0)return w(T);for(;;){r0(T,30);var K=UY(m(T));if(4>>0)return w(T);switch(K){case 0:return e(T);case 1:return i(T);case 2:continue;case 3:continue x;default:return t(T)}}}}function o(T){for(;;)if(r0(T,19),ar(m(T))!==0)return w(T)}function a(T){for(;;)if(r0(T,19),ar(m(T))!==0)return w(T)}function y(T){for(;;)if(r0(T,13),ar(m(T))!==0)return w(T)}function h(T){for(;;)if(r0(T,13),ar(m(T))!==0)return w(T)}function k(T){for(;;)if(r0(T,9),ar(m(T))!==0)return w(T)}function A(T){for(;;)if(r0(T,9),ar(m(T))!==0)return w(T)}function g(T){for(;;)if(r0(T,15),ar(m(T))!==0)return w(T)}function I(T){r0(T,15);var K=L1(m(T));if(K!==0)return K===1?g(T):w(T);for(;;)if(r0(T,15),ar(m(T))!==0)return w(T)}function C(T){for(;;)if(r0(T,23),ar(m(T))!==0)return w(T)}function R(T){r0(T,22);var K=L1(m(T));if(K!==0)return K===1?C(T):w(T);for(;;)if(r0(T,21),ar(m(T))!==0)return w(T)}function L(T){for(;;)if(r0(T,23),ar(m(T))!==0)return w(T)}function U(T){r0(T,22);var K=L1(m(T));if(K!==0)return K===1?L(T):w(T);for(;;)if(r0(T,21),ar(m(T))!==0)return w(T)}function B(T){x:for(;;){if(yr(m(T))!==0)return w(T);for(;;){r0(T,24);var K=rs(m(T));if(3>>0)return w(T);switch(K){case 0:return L(T);case 1:continue;case 2:continue x;default:return U(T)}}}}function X(T){r0(T,29);var K=DY(m(T));if(3>>0)return w(T);switch(K){case 0:return e(T);case 1:var H0=go(m(T));if(H0===0)for(;;){r0(T,24);var sx=Qa(m(T));if(2>>0)return w(T);switch(sx){case 0:return L(T);case 1:continue;default:return U(T)}}if(H0!==1)return w(T);for(;;){r0(T,24);var ux=rs(m(T));if(3>>0)return w(T);switch(ux){case 0:return L(T);case 1:continue;case 2:return B(T);default:return U(T)}}case 2:for(;;){r0(T,24);var z0=Qa(m(T));if(2>>0)return w(T);switch(z0){case 0:return C(T);case 1:continue;default:return R(T)}}default:for(;;){r0(T,24);var Px=rs(m(T));if(3>>0)return w(T);switch(Px){case 0:return C(T);case 1:continue;case 2:return B(T);default:return R(T)}}}}function J(T){r0(T,30);var K=AY(m(T));if(3>>0)return w(T);switch(K){case 0:return e(T);case 1:for(;;){r0(T,30);var H0=No(m(T));if(4>>0)return w(T);switch(H0){case 0:return e(T);case 1:continue;case 2:return X(T);case 3:x:for(;;){if(yr(m(T))!==0)return w(T);for(;;){r0(T,30);var sx=No(m(T));if(4>>0)return w(T);switch(sx){case 0:return e(T);case 1:continue;case 2:return X(T);case 3:continue x;default:return u(T)}}}default:return u(T)}}case 2:return X(T);default:return u(T)}}function e0(T){return Rd(m(T))===0&&Nd(m(T))===0&&zY(m(T))===0&&NY(m(T))===0&&IY(m(T))===0&&HR(m(T))===0&&Ql(m(T))===0&&Rd(m(T))===0&&Co(m(T))===0&&PY(m(T))===0&&Hl(m(T))===0?3:w(T)}function i0(T){return r0(T,3),YY(m(T))===0?3:w(T)}function j(T){var K=JT0(m(T));if(30>>0)return w(T);switch(K){case 0:return 64;case 1:return 65;case 2:if(r0(T,1),bc(m(T))!==0)return w(T);for(;;)if(r0(T,1),bc(m(T))!==0)return w(T);case 3:return 0;case 4:return r0(T,0),le(m(T))===0?0:w(T);case 5:return 6;case 6:return 63;case 7:if(r0(T,65),Ql(m(T))!==0)return w(T);var H0=m(T),sx=tt>>0)return w(T);switch(Qx){case 0:return e(T);case 1:continue;case 2:return X(T);case 3:x:for(;;){if(yr(m(T))!==0)return w(T);for(;;){r0(T,30);var j0=No(m(T));if(4>>0)return w(T);switch(j0){case 0:return e(T);case 1:continue;case 2:return X(T);case 3:continue x;default:return u(T)}}}default:return u(T)}}case 16:r0(T,65);var rr=Md(m(T));if(rr!==0)return rr===1?5:w(T);r0(T,2);var zx=wd(m(T));if(2>>0)return w(T);switch(zx){case 0:for(;;){var X0=wd(m(T));if(2>>0)return w(T);switch(X0){case 0:continue;case 1:return i0(T);default:return e0(T)}}case 1:return i0(T);default:return e0(T)}case 17:r0(T,30);var ir=RY(m(T));if(8>>0)return w(T);switch(ir){case 0:return e(T);case 1:return J(T);case 2:for(;;){r0(T,16);var K0=jY(m(T));if(4>>0)return w(T);switch(K0){case 0:return g(T);case 1:return i(T);case 2:continue;case 3:for(;;){r0(T,15);var Sr=_d(m(T));if(3>>0)return w(T);switch(Sr){case 0:return g(T);case 1:return i(T);case 2:continue;default:return I(T)}}default:return I(T)}}case 3:for(;;){r0(T,30);var Dr=_d(m(T));if(3>>0)return w(T);switch(Dr){case 0:return e(T);case 1:return i(T);case 2:continue;default:return t(T)}}case 4:r0(T,29);var ax=CY(m(T));if(ax===0)return e(T);if(ax!==1)return w(T);for(;;){r0(T,10);var br=Dd(m(T));if(3
    >>0)return w(T);switch(br){case 0:return A(T);case 1:continue;case 2:x:for(;;){if(xs(m(T))!==0)return w(T);for(;;){r0(T,10);var t2=Dd(m(T));if(3>>0)return w(T);switch(t2){case 0:return k(T);case 1:continue;case 2:continue x;default:r0(T,8);var k1=L1(m(T));if(k1!==0)return k1===1?k(T):w(T);for(;;)if(r0(T,7),ar(m(T))!==0)return w(T)}}}default:r0(T,8);var Rr=L1(m(T));if(Rr!==0)return Rr===1?A(T):w(T);for(;;)if(r0(T,7),ar(m(T))!==0)return w(T)}}case 5:return X(T);case 6:r0(T,29);var U1=OY(m(T));if(U1===0)return e(T);if(U1!==1)return w(T);for(;;){r0(T,14);var _=Ud(m(T));if(3<_>>>0)return w(T);switch(_){case 0:return h(T);case 1:continue;case 2:x:for(;;){if(J2(m(T))!==0)return w(T);for(;;){r0(T,14);var b=Ud(m(T));if(3>>0)return w(T);switch(b){case 0:return y(T);case 1:continue;case 2:continue x;default:r0(T,12);var x0=L1(m(T));if(x0!==0)return x0===1?y(T):w(T);for(;;)if(r0(T,11),ar(m(T))!==0)return w(T)}}}default:r0(T,12);var S0=L1(m(T));if(S0!==0)return S0===1?h(T):w(T);for(;;)if(r0(T,11),ar(m(T))!==0)return w(T)}}case 7:r0(T,29);var H=wY(m(T));if(H===0)return e(T);if(H!==1)return w(T);for(;;){r0(T,20);var h0=jd(m(T));if(3>>0)return w(T);switch(h0){case 0:return a(T);case 1:continue;case 2:x:for(;;){if(Ir(m(T))!==0)return w(T);for(;;){r0(T,20);var Y0=jd(m(T));if(3>>0)return w(T);switch(Y0){case 0:return o(T);case 1:continue;case 2:continue x;default:r0(T,18);var U0=L1(m(T));if(U0!==0)return U0===1?o(T):w(T);for(;;)if(r0(T,17),ar(m(T))!==0)return w(T)}}}default:r0(T,18);var tx=L1(m(T));if(tx!==0)return tx===1?a(T):w(T);for(;;)if(r0(T,17),ar(m(T))!==0)return w(T)}}default:return t(T)}case 18:r0(T,30);var Wx=Sd(m(T));if(5>>0)return w(T);switch(Wx){case 0:return e(T);case 1:return J(T);case 2:for(;;){r0(T,30);var Lx=Sd(m(T));if(5>>0)return w(T);switch(Lx){case 0:return e(T);case 1:return J(T);case 2:continue;case 3:return X(T);case 4:return f(T);default:return t(T)}}case 3:return X(T);case 4:return f(T);default:return t(T)}case 19:return 44;case 20:return 42;case 21:return 49;case 22:r0(T,51);var ur=m(T),Vx=61>>0)return Rx(yn0);var z=Y;if(33>z)switch(z){case 0:return[2,Y2(x,r)];case 1:return[2,x];case 2:var F=m2(x,r),t0=Zr(Jr),$=Jv(x,t0,r),f0=$[1];return[1,f0,Jt(f0,F,$[2],t0,1)];case 3:var c0=Kx(r);if(!x[5]){var v0=m2(x,r),s0=Zr(Jr);vr(s0,c0);var o0=Jv(x,s0,r),E0=o0[1];return[1,E0,Jt(E0,v0,o0[2],s0,1)]}var k0=x[4]?VY(x,Yr(x,r),c0):x,M0=ld(1,k0),D0=sd(r);return Nr(Vl(r,D0-1|0,1),Nv)&&N(Vl(r,D0-2|0,1),Nv)?[0,M0,86]:[2,M0];case 4:if(x[4])return[2,ld(0,x)];$a(r),pr(r);var cx=EY(m(r))===0?0:w(r);return cx===0?[0,x,_1]:Rx(dn0);case 5:var g0=m2(x,r),Z0=Zr(Jr),n0=Ga(x,Z0,r),nx=n0[1];return[1,nx,Jt(nx,g0,n0[2],Z0,0)];case 6:var xx=Kx(r),yx=m2(x,r),px=Zr(Jr),Tx=Zr(Jr);vr(Tx,xx);var O0=HY(x,xx,px,Tx,0,r),P0=O0[1],N0=O0[3],J0=[0,P0[1],yx,O0[2]],I0=z1(Tx);return[0,P0,[2,[0,J0,z1(px),I0,N0]]];case 7:return N1(x,r,function(T,K){if(pr(K),ae(m(K))===0&&Ad(m(K))===0&&xs(m(K))===0)for(;;){var H0=kd(m(K));if(2>>0)var z0=w(K);else switch(H0){case 0:continue;case 1:x:for(;;){if(xs(m(K))===0)for(;;){var sx=kd(m(K));if(2>>0)var ux=w(K);else switch(sx){case 0:continue;case 1:continue x;default:var ux=0}break}else var ux=w(K);var z0=ux;break}break;default:var z0=0}break}else var z0=w(K);return z0===0?[0,T,Bt(0,n1(K))]:Rx(pn0)});case 8:return[0,x,Bt(0,n1(r))];case 9:return N1(x,r,function(T,K){if(pr(K),ae(m(K))===0&&Ad(m(K))===0&&xs(m(K))===0)for(;;){r0(K,0);var H0=md(m(K));if(H0!==0){if(H0===1)x:for(;;){if(xs(m(K))===0)for(;;){r0(K,0);var sx=md(m(K));if(sx!==0){if(sx===1)continue x;var ux=w(K);break}}else var ux=w(K);var z0=ux;break}else var z0=w(K);break}}else var z0=w(K);return z0===0?[0,T,Yt(0,n1(K))]:Rx(ln0)});case 10:return[0,x,Yt(0,n1(r))];case 11:return N1(x,r,function(T,K){if(pr(K),ae(m(K))===0&&Pd(m(K))===0&&J2(m(K))===0)for(;;){var H0=Ed(m(K));if(2>>0)var z0=w(K);else switch(H0){case 0:continue;case 1:x:for(;;){if(J2(m(K))===0)for(;;){var sx=Ed(m(K));if(2>>0)var ux=w(K);else switch(sx){case 0:continue;case 1:continue x;default:var ux=0}break}else var ux=w(K);var z0=ux;break}break;default:var z0=0}break}else var z0=w(K);return z0===0?[0,T,Bt(1,n1(K))]:Rx(an0)});case 12:return[0,x,Bt(1,n1(r))];case 13:return N1(x,r,function(T,K){if(pr(K),ae(m(K))===0&&Pd(m(K))===0&&J2(m(K))===0)for(;;){r0(K,0);var H0=Td(m(K));if(H0!==0){if(H0===1)x:for(;;){if(J2(m(K))===0)for(;;){r0(K,0);var sx=Td(m(K));if(sx!==0){if(sx===1)continue x;var ux=w(K);break}}else var ux=w(K);var z0=ux;break}else var z0=w(K);break}}else var z0=w(K);return z0===0?[0,T,Yt(3,n1(K))]:Rx(vn0)});case 14:return[0,x,Yt(3,n1(r))];case 15:return N1(x,r,function(T,K){if(pr(K),ae(m(K))===0&&J2(m(K))===0){for(;;)if(r0(K,0),J2(m(K))!==0){var H0=w(K);break}}else var H0=w(K);return H0===0?[0,T,Yt(1,n1(K))]:Rx(on0)});case 16:return[0,x,Yt(1,n1(r))];case 17:return N1(x,r,function(T,K){if(pr(K),ae(m(K))===0&&yd(m(K))===0&&Ir(m(K))===0)for(;;){var H0=hd(m(K));if(2>>0)var z0=w(K);else switch(H0){case 0:continue;case 1:x:for(;;){if(Ir(m(K))===0)for(;;){var sx=hd(m(K));if(2>>0)var ux=w(K);else switch(sx){case 0:continue;case 1:continue x;default:var ux=0}break}else var ux=w(K);var z0=ux;break}break;default:var z0=0}break}else var z0=w(K);return z0===0?[0,T,Bt(2,n1(K))]:Rx(sn0)});case 18:return[0,x,Bt(2,n1(r))];case 19:return N1(x,r,function(T,K){if(pr(K),ae(m(K))===0&&yd(m(K))===0&&Ir(m(K))===0)for(;;){r0(K,0);var H0=Od(m(K));if(H0!==0){if(H0===1)x:for(;;){if(Ir(m(K))===0)for(;;){r0(K,0);var sx=Od(m(K));if(sx!==0){if(sx===1)continue x;var ux=w(K);break}}else var ux=w(K);var z0=ux;break}else var z0=w(K);break}}else var z0=w(K);return z0===0?[0,T,Yt(4,n1(K))]:Rx(cn0)});case 20:return[0,x,Yt(4,n1(r))];case 21:return N1(x,r,function(T,K){function H0(K0){for(;;){var Sr=zt(m(K0));if(2>>0)return w(K0);switch(Sr){case 0:continue;case 1:x:for(;;){if(yr(m(K0))!==0)return w(K0);for(;;){var Dr=zt(m(K0));if(2>>0)return w(K0);switch(Dr){case 0:continue;case 1:continue x;default:return 0}}}default:return 0}}}function sx(K0){for(;;){var Sr=Ha(m(K0));if(Sr!==0)return Sr===1?0:w(K0)}}function ux(K0){var Sr=zd(m(K0));if(2>>0)return w(K0);switch(Sr){case 0:var Dr=go(m(K0));return Dr===0?sx(K0):Dr===1?H0(K0):w(K0);case 1:return sx(K0);default:return H0(K0)}}function z0(K0){var Sr=Cd(m(K0));if(Sr!==0)return Sr===1?ux(K0):w(K0);for(;;){var Dr=G2(m(K0));if(2>>0)return w(K0);switch(Dr){case 0:continue;case 1:return ux(K0);default:x:for(;;){if(yr(m(K0))!==0)return w(K0);for(;;){var ax=G2(m(K0));if(2>>0)return w(K0);switch(ax){case 0:continue;case 1:return ux(K0);default:continue x}}}}}}pr(K);var Px=Ao(m(K));if(2>>0)var kx=w(K);else switch(Px){case 0:if(yr(m(K))===0)for(;;){var $x=G2(m(K));if(2<$x>>>0)var kx=w(K);else switch($x){case 0:continue;case 1:var kx=ux(K);break;default:x:for(;;){if(yr(m(K))===0)for(;;){var Qx=G2(m(K));if(2>>0)var j0=w(K);else switch(Qx){case 0:continue;case 1:var j0=ux(K);break;default:continue x}break}else var j0=w(K);var kx=j0;break}}break}else var kx=w(K);break;case 1:var rr=dd(m(K)),kx=rr===0?z0(K):rr===1?ux(K):w(K);break;default:for(;;){var zx=Id(m(K));if(2>>0)var kx=w(K);else switch(zx){case 0:var kx=z0(K);break;case 1:continue;default:var kx=ux(K)}break}}if(kx!==0)return Rx(fn0);var X0=n1(K),ir=k2(T,Yr(T,K),47);return[0,ir,Bt(2,X0)]});case 22:var Q=n1(r),G=k2(x,Yr(x,r),47);return[0,G,Bt(2,Q)];case 23:return N1(x,r,function(T,K){function H0(X0){for(;;){r0(X0,0);var ir=Io(m(X0));if(ir!==0){if(ir!==1)return w(X0);x:for(;;){if(yr(m(X0))!==0)return w(X0);for(;;){r0(X0,0);var K0=Io(m(X0));if(K0!==0){if(K0===1)continue x;return w(X0)}}}}}}function sx(X0){for(;;)if(r0(X0,0),yr(m(X0))!==0)return w(X0)}function ux(X0){var ir=zd(m(X0));if(2>>0)return w(X0);switch(ir){case 0:var K0=go(m(X0));return K0===0?sx(X0):K0===1?H0(X0):w(X0);case 1:return sx(X0);default:return H0(X0)}}function z0(X0){var ir=Cd(m(X0));if(ir!==0)return ir===1?ux(X0):w(X0);for(;;){var K0=G2(m(X0));if(2>>0)return w(X0);switch(K0){case 0:continue;case 1:return ux(X0);default:x:for(;;){if(yr(m(X0))!==0)return w(X0);for(;;){var Sr=G2(m(X0));if(2>>0)return w(X0);switch(Sr){case 0:continue;case 1:return ux(X0);default:continue x}}}}}}pr(K);var Px=Ao(m(K));if(2>>0)var kx=w(K);else switch(Px){case 0:if(yr(m(K))===0)for(;;){var $x=G2(m(K));if(2<$x>>>0)var kx=w(K);else switch($x){case 0:continue;case 1:var kx=ux(K);break;default:x:for(;;){if(yr(m(K))===0)for(;;){var Qx=G2(m(K));if(2>>0)var j0=w(K);else switch(Qx){case 0:continue;case 1:var j0=ux(K);break;default:continue x}break}else var j0=w(K);var kx=j0;break}}break}else var kx=w(K);break;case 1:var rr=dd(m(K)),kx=rr===0?z0(K):rr===1?ux(K):w(K);break;default:for(;;){var zx=Id(m(K));if(2>>0)var kx=w(K);else switch(zx){case 0:var kx=z0(K);break;case 1:continue;default:var kx=ux(K)}break}}return kx===0?[0,T,Yt(4,n1(K))]:Rx(in0)});case 24:return[0,x,Yt(4,n1(r))];case 25:return N1(x,r,function(T,K){function H0(zx){for(;;){var X0=zt(m(zx));if(2>>0)return w(zx);switch(X0){case 0:continue;case 1:x:for(;;){if(yr(m(zx))!==0)return w(zx);for(;;){var ir=zt(m(zx));if(2>>0)return w(zx);switch(ir){case 0:continue;case 1:continue x;default:return 0}}}default:return 0}}}function sx(zx){var X0=Ha(m(zx));return X0===0?H0(zx):X0===1?0:w(zx)}pr(K);var ux=Ao(m(K));if(2>>0)var z0=w(K);else switch(ux){case 0:var z0=yr(m(K))===0?H0(K):w(K);break;case 1:for(;;){var Px=qa(m(K));if(Px===0)var z0=sx(K);else{if(Px===1)continue;var z0=w(K)}break}break;default:for(;;){var kx=Po(m(K));if(2>>0)var z0=w(K);else switch(kx){case 0:var z0=sx(K);break;case 1:continue;default:x:for(;;){if(yr(m(K))===0)for(;;){var $x=Po(m(K));if(2<$x>>>0)var Qx=w(K);else switch($x){case 0:var Qx=sx(K);break;case 1:continue;default:continue x}break}else var Qx=w(K);var z0=Qx;break}}break}}if(z0!==0)return Rx(un0);var j0=n1(K),rr=k2(T,Yr(T,K),38);return[0,rr,Bt(2,j0)]});case 26:return N1(x,r,function(T,K){pr(K);var H0=go(m(K));if(H0===0)for(;;){var sx=Ha(m(K));if(sx!==0){var kx=sx===1?0:w(K);break}}else if(H0===1)for(;;){var ux=zt(m(K));if(2>>0)var kx=w(K);else switch(ux){case 0:continue;case 1:x:for(;;){if(yr(m(K))===0)for(;;){var z0=zt(m(K));if(2>>0)var Px=w(K);else switch(z0){case 0:continue;case 1:continue x;default:var Px=0}break}else var Px=w(K);var kx=Px;break}break;default:var kx=0}break}else var kx=w(K);return kx===0?[0,T,Bt(2,n1(K))]:Rx(nn0)});case 27:var V=n1(r),l0=k2(x,Yr(x,r),38);return[0,l0,Bt(2,V)];case 28:return[0,x,Bt(2,n1(r))];case 29:return N1(x,r,function(T,K){function H0(j0){for(;;){r0(j0,0);var rr=Io(m(j0));if(rr!==0){if(rr!==1)return w(j0);x:for(;;){if(yr(m(j0))!==0)return w(j0);for(;;){r0(j0,0);var zx=Io(m(j0));if(zx!==0){if(zx===1)continue x;return w(j0)}}}}}}function sx(j0){return r0(j0,0),yr(m(j0))===0?H0(j0):w(j0)}pr(K);var ux=Ao(m(K));if(2>>0)var z0=w(K);else switch(ux){case 0:var z0=yr(m(K))===0?H0(K):w(K);break;case 1:for(;;){r0(K,0);var Px=qa(m(K));if(Px===0)var z0=sx(K);else{if(Px===1)continue;var z0=w(K)}break}break;default:for(;;){r0(K,0);var kx=Po(m(K));if(2>>0)var z0=w(K);else switch(kx){case 0:var z0=sx(K);break;case 1:continue;default:x:for(;;){if(yr(m(K))===0)for(;;){r0(K,0);var $x=Po(m(K));if(2<$x>>>0)var Qx=w(K);else switch($x){case 0:var Qx=sx(K);break;case 1:continue;default:continue x}break}else var Qx=w(K);var z0=Qx;break}}break}}return z0===0?[0,T,Yt(4,n1(K))]:Rx(tn0)});case 30:return[0,x,Yt(4,n1(r))];case 31:return[0,x,66];default:return[0,x,6]}switch(z){case 33:return[0,x,7];case 34:return[0,x,0];case 35:return[0,x,1];case 36:return[0,x,2];case 37:return[0,x,3];case 38:return[0,x,4];case 39:return[0,x,5];case 40:return[0,x,12];case 41:return[0,x,10];case 42:return[0,x,8];case 43:return[0,x,9];case 44:return[0,x,86];case 45:return[0,x,83];case 46:return[0,x,85];case 47:return[0,x,6];case 48:return[0,x,7];case 49:return[0,x,98];case 50:return[0,x,99];case 51:return[0,x,82];case 52:return[0,x,85];case 53:return[0,x,_1];case 54:return[0,x,86];case 55:return[0,x,88];case 56:return[0,x,87];case 57:return[0,x,89];case 58:return[0,x,91];case 59:return[0,x,11];case 60:return[0,x,82];case 61:return[0,x,tt];case 62:return[0,x,ln];case 63:var d0=r[6];XY(r);var A0=ql(x,d0,r[3]);UR(r,d0);var M=n1(r),L0=FY(x,M),V0=L0[2],B0=L0[1],vx=Ex(V0,op);if(0<=vx){if(0>=vx)return[0,B0,Ps];var b0=Ex(V0,_x);if(0<=b0){if(0>=b0)return[0,B0,G3];if(!N(V0,Ts))return[0,B0,31];if(!N(V0,ws))return[0,B0,46];if(!N(V0,G5))return[0,B0,Ra];if(!N(V0,g5))return[0,B0,qr];if(!N(V0,gs))return[0,B0,Ef]}else{if(!N(V0,I8))return[0,B0,Rt];if(!N(V0,lv))return[0,B0,29];if(!N(V0,ka))return[0,B0,aa];if(!N(V0,Ta))return[0,B0,U4];if(!N(V0,De))return[0,B0,42];if(!N(V0,La))return[0,B0,xl]}}else{var hx=Ex(V0,Ic);if(0<=hx){if(0>=hx)return[0,B0,41];if(!N(V0,As))return[0,B0,30];if(!N(V0,PD))return[0,B0,Jr];if(!N(V0,F2))return[0,B0,53];if(!N(V0,al))return[0,B0,m1];if(!N(V0,N8))return[0,B0,gi]}else{if(!N(V0,n5))return[0,B0,Vi];if(!N(V0,da))return[0,B0,yl];if(!N(V0,pv))return[0,B0,pa];if(!N(V0,S5))return[0,B0,kn0];if(!N(V0,F3))return[0,B0,mn0];if(!N(V0,ce))return[0,B0,Ns]}}return[0,B0,[4,A0,V0,Zl(M)]];case 64:var W0=x[4]?k2(x,Yr(x,r),95):x;return[0,W0,Er];default:return[0,x,[7,Kx(r)]]}},Gl=function(x){return function(r){for(var e=0,t=r;;){var u=p(x,t,t[2]);switch(u[0]){case 0:var i=u[2],f=u[1],o=WY(f,i),a=e===0?0:gx(e),y=f[6];if(y===0)return[0,[0,f[1],f[2],f[3],f[4],f[5],f[6],o],[0,i,o,0,a]];var h=[0,i,o,gx(y),a];return[0,[0,f[1],f[2],f[3],f[4],f[5],pY,o],h];case 1:var k=u[2],A=u[1],e=[0,k,e],t=[0,A[1],A[2],A[3],A[4],A[5],A[6],k[1]];continue;default:var t=u[1];continue}}}},FT0=Gl(WT0),QT0=Gl(VT0),HT0=Gl(ZT0),qT0=Gl($T0),GT0=Gl(BT0),h2=uY([0,fT0]),bl=function(x,r){return[0,0,0,r,yY(x)]},Jd=function(x){var r=x[4];switch(x[3]){case 0:var Y=l(GT0,r);break;case 1:var Y=l(qT0,r);break;case 2:var Y=l(QT0,r);break;case 3:var e=pe(r,r[2]),t=Zr(Jr),u=Zr(Jr),i=r[2];pr(i);var f=m(i),o=Rt>>0)var a=w(i);else switch(o){case 0:var a=1;break;case 1:var a=4;break;case 2:var a=0;break;case 3:r0(i,0);var a=le(m(i))===0?0:w(i);break;case 4:var a=2;break;default:var a=3}if(4
    >>0)var y=Rx(Tn0);else switch(a){case 0:var h=Kx(i);vr(u,h),vr(t,h);var k=bY(Y2(r,i),t,u,i),A=pe(k,i),g=z1(t),I=z1(u),y=[0,k,[9,[0,k[1],e,A],g,I]];break;case 1:var y=[0,r,Er];break;case 2:var y=[0,r,98];break;case 3:var y=[0,r,0];break;default:$a(i);var C=bY(r,t,u,i),R=pe(C,i),L=z1(t),U=z1(u),y=[0,C,[9,[0,C[1],e,R],L,U]]}var B=y[2],X=y[1],J=WY(X,B),e0=X[6];if(e0===0)var j=[0,X,[0,B,J,0,0]];else var i0=[0,B,J,gx(e0),0],j=[0,[0,X[1],X[2],X[3],X[4],X[5],0,X[7]],i0];var Y=j;break;case 4:var Y=l(HT0,r);break;default:var Y=l(FT0,r)}var z=Y[1],F=Y[2],t0=[0,yY(z),F];return x[4]=z,x[1]?x[2]=[0,t0]:x[1]=[0,t0],t0},xB=function(x){var r=x[1];return r?r[1][2]:Jd(x)[2]},ba=function(x){return Ol(x[24][1])},T1=function(x){return x[28][4]},ex=function(x,r){var e=r[2];x[1][1]=[0,[0,r[1],e],x[1][1]];var t=x[23];return t?p(t[1],x,e):0},x6=function(x,r){return x[31][1]=r,0},Ro=function(x,r){if(x===0)return xB(r[26][1]);if(x!==1)throw q0([0,Tr,rs0],1);var e=r[26][1];e[1]||Jd(e);var t=e[2];return t?t[1][2]:Jd(e)[2]},Qs=function(x,r){return x===r[5]?r:[0,r[1],r[2],r[3],r[4],x,r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},rB=function(x,r){return x===r[10]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],x,r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},GR=function(x,r){return x===r[18]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],x,r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},bR=function(x,r){return x===r[19]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],x,r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},eB=function(x,r){return x===r[20]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],x,r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},Yv=function(x,r){return x===r[22]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],x,r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},xO=function(x,r){return x===r[14]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],x,r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},r6=function(x,r){return x===r[8]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],x,r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},e6=function(x,r){return x===r[12]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],x,r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},Bv=function(x,r){return x===r[15]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],x,r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},rO=function(x,r){return x===r[16]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],x,r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},tB=function(x,r){return x===r[6]?r:[0,r[1],r[2],r[3],r[4],r[5],x,r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},nB=function(x,r){return x===r[7]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],x,r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},eO=function(x,r){return x===r[13]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],x,r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},Yd=function(x,r){return[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],[0,x],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},tO=function(x){function r(e){return ex(x,e)}return function(e){return S2(r,e)}},x3=function(x){var r=x[4][1];return r?[0,r[1][2]]:0},uB=function(x){var r=x[4][1];return r?[0,r[1][1]]:0},iB=function(x){return[0,x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14],x[15],x[16],x[17],x[18],x[19],x[20],x[21],x[22],0,x[24],x[25],x[26],x[27],x[28],x[29],x[30],x[31]]},fB=function(x,r,e,t){return[0,x[1],x[2],h2[1],x[4],x[5],0,0,0,0,0,1,x[12],x[13],x[14],x[15],x[16],x[17],e,r,x[20],t,x[22],x[23],x[24],x[25],x[26],x[27],x[28],x[29],x[30],x[31]]},r3=function(x){return N(x,dv)&&N(x,F2)&&N(x,ya)&&N(x,Zp)&&N(x,kl)&&N(x,W3)&&N(x,j3)&&N(x,De)&&N(x,U2)?0:1},Xv=function(x){return N(x,hN)&&N(x,"eval")?0:1},Bd=function(x){var r=Ex(x,Hp),e=0;if(0<=r){if(0>>0){if(fe>=t+1>>>0)return 1}else if(t===6)return 0}return n6(x,r)},e3=function(x){return oB(0,x)},Oo=function(x,r){var e=hr(x,r),t=0;if(typeof e=="number")switch(e){case 28:case 42:case 52:case 53:case 54:case 55:case 56:case 57:case 58:var u=1;break;default:t=1}else if(e[0]===4)var u=r3(e[2]);else t=1;if(t)var u=0;if(u)return 1;var i=0;if(typeof e=="number")switch(e){case 14:case 48:case 60:case 61:case 62:case 63:case 64:case 65:case 126:i=1;break}else e[0]===4&&(i=1);return i?1:0},Xd=function(x,r){return cB(r,hr(x,r))},vB=function(x,r){var e=Oo(x,r);return e||Xd(x,r)},es=function(x){return Oo(0,x)},Lo=function(x){var r=W(x)===15?1:0;if(r)var e=r;else{var t=W(x)===64?1:0;if(t){var u=hr(1,x)===15?1:0;if(u)var i=t6(1,x)[2][1],e=Nx(x)[3][1]===i?1:0;else var e=u}else var e=t}return e},u6=function(x){var r=W(x);if(typeof r=="number")switch(r){case 13:case 40:return 1}else if(r[0]===4&&!N(r[3],Zh)&&hr(1,x)===40)return 1;return 0},iO=function(x){var r=x[28][1];if(r){var e=W(x);if(typeof e!="number"&&e[0]===4&&!N(e[3],vo)&&Oo(1,x))return 1;var t=0}else var t=r;return t},fO=function(x){var r=W(x);return typeof r!="number"&&r[0]===4&&!N(r[3],$1)?1:0},Bx=function(x,r){return ex(x,[0,Nx(x),r])},aB=function(x,r){var e=ZR(0,r);return x?[25,e,x[1]]:[23,e]},S1=function(x,r){var e=uO(r);return l(tO(r),e),Bx(r,aB(x,W(r)))},Wd=function(x){function r(e){return ex(x,[0,e[1],fe])}return function(e){return S2(r,e)}},lB=function(x,r){var e=x[6]?G0(Ar(Gc0),r,r,r):bc0;return S1([0,e],x)},Xt=function(x,r){var e=x[5];return e&&Bx(x,r)},vt=function(x,r){var e=x[5],t=r[2],u=r[1];return e&&ex(x,[0,u,t])},Wv=function(x,r){return ex(x,[0,r,[14,x[5]]])},$0=function(x){var r=x[27][1];if(r){var e=r[1],t=ba(x),u=W(x);l(e,[0,Nx(x),u,t])}var i=x[26][1],f=i[1],o=f?f[1][1]:Jd(i)[1];x[25][1]=o;var a=uO(x);l(tO(x),a);var y=x[2][1],h=Qc(Ro(0,x)[4],y);x[2][1]=h;var k=[0,Ro(0,x)];x[4][1]=k;var A=x[26][1];return A[2]?(A[1]=A[2],A[2]=0,0):(xB(A),A[1]=0,0)},v1=function(x,r){var e=p(BR,W(x),r);return e&&$0(x),e},J1=function(x,r){x[24][1]=[0,r,x[24][1]];var e=ba(x),t=bl(x[25][1],e);return x[26][1]=t,0},W1=function(x){var r=x[24][1],e=r?r[2]:Rx(qc0);x[24][1]=e;var t=ba(x),u=bl(x[25][1],t);return x[26][1]=u,0},mx=function(x){var r=Nx(x);if(W(x)===9&&n6(1,x)){var e=w0(x),t=Ro(1,x)[4],u=Fx(e,l(Ul(function(f){return f[1][2][1]<=r[3][1]?1:0}),t));return x6(x,[0,r[3][1]+1|0,0]),u}var i=w0(x);return x6(x,r[3]),i},Uo=function(x){var r=x[4][1];if(!r)return 0;var e=r[1][2],t=w0(x),u=l(Ul(function(i){return i[1][2][1]<=e[3][1]?1:0}),t);return x6(x,[0,e[3][1]+1|0,0]),u},Hs=function(x,r){return S1([0,ZR(Fc0,r)],x)},u0=function(x,r){return 1-p(BR,W(x),r)&&Hs(x,r),$0(x)},pB=function(x,r){var e=v1(x,r);return 1-e&&Hs(x,r),e},Vd=function(x,r){return pB(x,r),0},ts=function(x,r){var e=W(x),t=0;return typeof e!="number"&&e[0]===4&&Nr(e[3],r)&&(t=1),t||S1([0,l(Ar($c0),r)],x),$0(x)},ns=[Qr,fs0,zs(0)],yB=function(x,r,e){if(!e)return 0;var t=e[1],u=t[1],i=t[2];if(r[27][1]=[0,u],!x)return x;for(var f=i[2];;){if(!f)return 0;var o=f[2];l(u,f[1]);var f=o}},cO=function(x,r){var e=x[27][1];if(e){var t=e[1],u=xJ(0),i=[0,function(B){return iR(B,u)}];x[27][1]=i;var f=[0,[0,t,u]]}else var f=0;var o=x[31][1],a=x[25][1],y=x[24][1],h=x[4][1],k=x[2][1],A=x[1][1];try{var g=l(r,x);yB(1,x,f);var I=[0,g];return I}catch(U){var C=R1(U);if(C!==ns)throw q0(C,0);yB(0,x,f),x[1][1]=A,x[2][1]=k,x[4][1]=h,x[24][1]=y,x[25][1]=a,x[31][1]=o;var R=ba(x),L=bl(x[25][1],R);return x[26][1]=L,0}},Zd=function(x,r,e){var t=cO(x,e);return t?t[1]:r},i6=function(x,r){var e=gx(r);if(!e)return r;var t=e[1],u=e[2],i=l(x,t);return t===i?r:gx([0,i,u])},dB=id(as0,function(x){var r=PR(x,ss0),e=NR(x,vs0),t=e[24],u=e[28],i=e[41],f=e[90],o=e[OT],a=e[pA],y=e[yv],h=e[Uj],k=e[iM],A=e[aj],g=e[6],I=e[7],C=e[10],R=e[17],L=e[23],U=e[29],B=e[39],X=e[42],J=e[52],e0=e[60],i0=e[Ue],j=e[wv],Y=e[Ps],z=e[aa],F=e[pa],t0=e[lh],$=e[k_],f0=e[zM],c0=e[dj],v0=e[zS],s0=e[DN],o0=e[RT],E0=e[e5],k0=e[mk],M0=e[ey],D0=e[Bw],cx=e[Fg],g0=e[dT],Z0=e[$5],n0=e[V4],nx=e[Pv],xx=e[ZM],yx=e[YM],px=e[Dj],Tx=e[Hx],O0=e[TM],P0=e[tz],N0=e[ek],J0=e[sj],I0=e[ED],Q=RR(x,0,0,BK,zR,1)[1];function G(x0,S0,H){var h0=H[2],Y0=h0[2],U0=h0[1],tx=H[1];if(Y0){var Wx=Y0[1],Lx=function(Vx){return[0,tx,[0,U0,[0,Vx]]]};return Q0(l(x0[1][1+a],x0),Wx,H,Lx)}function ur(Vx){return[0,tx,[0,Vx,Y0]]}return Q0(p(x0[1][1+g],x0,S0),U0,H,ur)}function V(x0,S0,H){var h0=H[2],Y0=H[1],U0=Y0[3],tx=Y0[2],Wx=Y0[1];if(U0)var Lx=i6(l(x0[1][1+u],x0),U0),ur=tx;else var Lx=0,ur=p(x0[1][1+u],x0,tx);var Vx=p(x0[1][1+i],x0,h0);return tx===ur&&U0===Lx&&h0===Vx?H:[0,[0,Wx,ur,Lx],Vx]}function l0(x0,S0){var H=S0[2],h0=H[2],Y0=H[1],U0=S0[1];function tx(Wx){return[0,U0,[0,Y0,Wx]]}return Q0(l(x0[1][1+i],x0),h0,S0,tx)}function d0(x0,S0,H){var h0=H[3];function Y0(U0){return[0,H[1],H[2],U0]}return Q0(l(x0[1][1+i],x0),h0,H,Y0)}function A0(x0,S0){var H=S0[2];function h0(Y0){return[0,S0[1],Y0]}return Q0(l(x0[1][1+i],x0),H,S0,h0)}function M(x0,S0,H){var h0=H[3];function Y0(U0){return[0,H[1],H[2],U0]}return Q0(l(x0[1][1+i],x0),h0,H,Y0)}function L0(x0,S0,H){var h0=H[2],Y0=H[1],U0=i6(l(x0[1][1+a],x0),Y0),tx=p(x0[1][1+i],x0,h0);return Y0===U0&&h0===tx?H:[0,U0,tx]}function V0(x0,S0){var H=S0[2],h0=H[2],Y0=H[1],U0=S0[1];function tx(Wx){return[0,U0,[0,Y0,Wx]]}return Q0(l(x0[1][1+i],x0),h0,S0,tx)}function B0(x0,S0,H){var h0=H[4];function Y0(U0){return[0,H[1],H[2],H[3],U0]}return Q0(l(x0[1][1+i],x0),h0,H,Y0)}function vx(x0,S0,H){var h0=H[2];function Y0(U0){return[0,H[1],U0]}return Q0(l(x0[1][1+i],x0),h0,H,Y0)}function b0(x0,S0,H){var h0=H[3],Y0=H[2],U0=p(x0[1][1+Y],x0,Y0),tx=p(x0[1][1+i],x0,h0);return Y0===U0&&h0===tx?H:[0,H[1],U0,tx]}function hx(x0,S0,H){var h0=H[4],Y0=H[3],U0=H[2],tx=H[1],Wx=p(x0[1][1+i],x0,h0);if(Y0){var Lx=Yx(l(x0[1][1+A],x0),Y0);return Y0===Lx&&h0===Wx?H:[0,H[1],H[2],Lx,Wx]}if(U0){var ur=Yx(l(x0[1][1+k],x0),U0);return U0===ur&&h0===Wx?H:[0,H[1],ur,H[3],Wx]}var Vx=p(x0[1][1+a],x0,tx);return tx===Vx&&h0===Wx?H:[0,Vx,H[2],H[3],Wx]}function W0(x0,S0,H){var h0=H[4],Y0=H[3],U0=p(x0[1][1+a],x0,Y0),tx=p(x0[1][1+i],x0,h0);return Y0===U0&&h0===tx?H:[0,H[1],H[2],U0,tx]}function T(x0,S0,H){var h0=H[4];function Y0(U0){return[0,H[1],H[2],H[3],U0]}return Q0(l(x0[1][1+i],x0),h0,H,Y0)}function K(x0,S0,H){var h0=H[4];function Y0(U0){return[0,H[1],H[2],H[3],U0]}return Q0(l(x0[1][1+i],x0),h0,H,Y0)}function H0(x0,S0,H){var h0=H[2],Y0=H[1],U0=Y0[3],tx=Y0[2],Wx=Y0[1];if(U0)var Lx=i6(l(x0[1][1+u],x0),U0),ur=tx;else var Lx=0,ur=p(x0[1][1+u],x0,tx);var Vx=p(x0[1][1+i],x0,h0);return tx===ur&&U0===Lx&&h0===Vx?H:[0,[0,Wx,ur,Lx],Vx]}function sx(x0,S0,H){var h0=H[3],Y0=H[1],U0=r2(l(x0[1][1+f],x0),Y0),tx=p(x0[1][1+i],x0,h0);return Y0===U0&&h0===tx?H:[0,U0,H[2],tx]}function ux(x0,S0,H){var h0=H[2];function Y0(U0){return[0,H[1],U0]}return Q0(l(x0[1][1+i],x0),h0,H,Y0)}function z0(x0,S0){if(S0[0]===0){var H=S0[1],h0=function(ur){return[0,ur]};return Q0(l(x0[1][1+o],x0),H,S0,h0)}var Y0=S0[1],U0=Y0[2],tx=U0[2],Wx=Y0[1],Lx=p(x0[1][1+o],x0,tx);return tx===Lx?S0:[1,[0,Wx,[0,U0[1],Lx]]]}function Px(x0,S0,H){var h0=H[4],Y0=H[3],U0=p(x0[1][1+o0],x0,Y0),tx=p(x0[1][1+i],x0,h0);return Y0===U0&&h0===tx?H:[0,H[1],H[2],U0,tx]}function kx(x0,S0){var H=S0[2],h0=S0[1],Y0=H[4];function U0(tx){return[0,h0,[0,H[1],H[2],H[3],tx]]}return Q0(l(x0[1][1+i],x0),Y0,[0,h0,H],U0)}function $x(x0,S0,H){var h0=H[9],Y0=H[3],U0=p(x0[1][1+M0],x0,Y0),tx=p(x0[1][1+i],x0,h0);return Y0===U0&&h0===tx?H:[0,H[1],H[2],U0,H[4],H[5],H[6],H[7],H[8],tx,H[10]]}function Qx(x0,S0,H){var h0=H[4],Y0=H[3],U0=p(x0[1][1+a],x0,Y0),tx=p(x0[1][1+i],x0,h0);return Y0===U0&&h0===tx?H:[0,H[1],H[2],U0,tx]}function j0(x0,S0){var H=S0[2],h0=H[2],Y0=H[1],U0=S0[1];function tx(Wx){return[0,U0,[0,Y0,Wx]]}return Q0(l(x0[1][1+i],x0),h0,S0,tx)}function rr(x0,S0){var H=S0[2],h0=S0[1],Y0=H[3];function U0(tx){return[0,h0,[0,H[1],H[2],tx]]}return Q0(l(x0[1][1+i],x0),Y0,[0,h0,H],U0)}function zx(x0,S0,H){var h0=H[6],Y0=H[5],U0=p(x0[1][1+nx],x0,Y0),tx=p(x0[1][1+i],x0,h0);return Y0===U0&&h0===tx?H:[0,H[1],H[2],H[3],H[4],U0,tx,H[7]]}function X0(x0,S0){var H=S0[2],h0=H[2],Y0=H[1],U0=S0[1];if(h0===0){var tx=function(ur){return[0,U0,[0,ur,h0]]};return Q0(l(x0[1][1+o],x0),Y0,S0,tx)}function Wx(ur){return[0,U0,[0,Y0,ur]]}var Lx=l(x0[1][1+t],x0);return Q0(function(ur){return Yx(Lx,ur)},h0,S0,Wx)}function ir(x0,S0){var H=S0[2],h0=H[2],Y0=H[1],U0=S0[1];function tx(Lx){return[0,U0,[0,Lx,h0]]}var Wx=l(x0[1][1+y],x0);return Q0(function(Lx){return i6(Wx,Lx)},Y0,S0,tx)}function K0(x0,S0,H){var h0=H[2],Y0=H[1];if(h0===0){var U0=function(Lx){return[0,Lx,H[2],H[3]]};return Q0(l(x0[1][1+a],x0),Y0,H,U0)}function tx(Lx){return[0,H[1],Lx,H[3]]}var Wx=l(x0[1][1+t],x0);return Q0(function(Lx){return Yx(Wx,Lx)},h0,H,tx)}function Sr(x0,S0){var H=S0[2],h0=H[2],Y0=H[1],U0=S0[1];function tx(Wx){return[0,U0,[0,Y0,Wx]]}return Q0(l(x0[1][1+i],x0),h0,S0,tx)}function Dr(x0,S0,H){var h0=H[7],Y0=H[2],U0=p(x0[1][1+h],x0,Y0),tx=p(x0[1][1+i],x0,h0);return Y0===U0&&h0===tx?H:[0,H[1],U0,H[3],H[4],H[5],H[6],tx]}function ax(x0,S0){var H=S0[2],h0=H[2],Y0=H[1],U0=S0[1];function tx(Wx){return[0,U0,[0,Y0,Wx]]}return Q0(l(x0[1][1+i],x0),h0,S0,tx)}function br(x0,S0){var H=S0[2],h0=H[2],Y0=H[1],U0=S0[1];function tx(Wx){return[0,U0,[0,Y0,Wx]]}return Q0(l(x0[1][1+i],x0),h0,S0,tx)}function t2(x0,S0,H){var h0=H[4],Y0=H[3],U0=p(x0[1][1+A],x0,Y0),tx=p(x0[1][1+i],x0,h0);return Y0===U0&&h0===tx?H:[0,H[1],H[2],U0,tx]}function k1(x0,S0,H){var h0=H[2];function Y0(U0){return[0,H[1],U0]}return Q0(l(x0[1][1+i],x0),h0,H,Y0)}function Rr(x0,S0,H){var h0=H[4],Y0=H[3],U0=p(x0[1][1+a],x0,Y0),tx=p(x0[1][1+i],x0,h0);return Y0===U0&&h0===tx?H:[0,H[1],H[2],U0,tx]}function U1(x0,S0,H){var h0=H[4],Y0=H[3],U0=p(x0[1][1+a],x0,Y0),tx=p(x0[1][1+i],x0,h0);return Y0===U0&&h0===tx?H:[0,H[1],H[2],U0,tx]}function _(x0,S0){var H=S0[2];function h0(Y0){return[0,S0[1],Y0]}return Q0(l(x0[1][1+i],x0),H,S0,h0)}function b(x0,S0,H){var h0=H[2];function Y0(U0){return[0,H[1],U0]}return Q0(l(x0[1][1+i],x0),h0,H,Y0)}return LR(x,[0,X,function(x0,S0){var H=S0[2],h0=l(Ul(function(U0){return Fs(U0[1][2],x0[1+r])<0?1:0}),H),Y0=Fc(h0);return Fc(H)===Y0?S0:[0,S0[1],h0,S0[3]]},I0,b,J0,_,N0,U1,P0,Rr,O0,k1,Tx,t2,A,br,k,ax,px,Dr,h,Sr,yx,K0,xx,ir,y,X0,n0,zx,Z0,rr,g0,j0,cx,Qx,D0,$x,k0,kx,E0,Px,s0,z0,v0,ux,c0,sx,f0,H0,$,K,t0,T,F,W0,j,hx,z,b0,i0,vx,f,B0,e0,V0,J,L0,B,M,U,A0,L,d0,R,l0,C,V,I,G]),function(x0,S0,H){var h0=fd(S0,x);return h0[1+r]=H,l(Q,h0),OR(S0,h0,x)}}),$d=function(x){var r=x3(x);if(r)var e=r[1],t=sB(x)?(x6(x,e[3]),[0,p(dB[1],0,e[3])]):0,u=t;else var u=0;return[0,0,function(i,f){return u?p(f,u[1],i):i}]},f6=function(x){var r=x3(x);if(r){var e=r[1];if(sB(x)){x6(x,e[3]);var t=Uo(x),u=[0,p(dB[1],0,[0,e[3][1]+1|0,0])],i=t}else var u=0,i=Uo(x)}else var u=0,i=0;return[0,i,function(f,o){return u?p(o,u[1],f):f}]},I1=function(x){return b2(x)?f6(x):$d(x)},Tn=function(x,r){var e=I1(x)[2];return p(e,r,function(t,u){return p(qx(t,Na,2),t,u)})},xe=function(x,r){if(!r)return 0;var e=r[1],t=I1(x)[2];return[0,p(t,e,function(u,i){return p(qx(u,WP,5),u,i)})]},sO=function(x,r){var e=I1(x)[2];return p(e,r,function(t,u){return p(qx(t,pM,7),t,u)})},t3=function(x,r){var e=I1(x)[2];return p(e,r,function(t,u){return p(qx(t,-1045824777,8),t,u)})},c6=function(x,r){var e=I1(x)[2];return p(e,r,function(t,u){return p(qx(t,-455772979,9),t,u)})},mB=function(x,r){if(!r)return 0;var e=r[1],t=I1(x)[2];return[0,p(t,e,function(u,i){return p(qx(u,VD,12),u,i)})]},Sn=function(x,r){var e=I1(x)[2];return p(e,r,function(t,u){return p(qx(t,GU,13),t,u)})},kB=function(x,r){var e=I1(x)[2];return p(e,r,function(t,u){var i=l(qx(t,zj,15),t);return i6(function(f){return r2(i,f)},u)})},hB=function(x,r){var e=I1(x)[2];return p(e,r,function(t,u){return p(qx(t,-21476009,16),t,u)})},bT0=function(x,r){var e=x[2],t=x[1];function u(br){return g2(br,r)}switch(e[0]){case 0:var i=e[1],f=JR(i[2],r),ax=[0,[0,i[1],f]];break;case 1:var o=e[1],a=u(o[2]),ax=[1,[0,o[1],a]];break;case 2:var y=e[1],h=u(y[7]),ax=[2,[0,y[1],y[2],y[3],y[4],y[5],y[6],h]];break;case 3:var k=e[1],A=k[7],g=u(k[6]),ax=[3,[0,k[1],k[2],k[3],k[4],k[5],g,A]];break;case 4:var I=e[1],C=u(I[2]),ax=[4,[0,I[1],C]];break;case 5:var ax=[5,[0,u(e[1][1])]];break;case 6:var R=e[1],L=u(R[7]),ax=[6,[0,R[1],R[2],R[3],R[4],R[5],R[6],L]];break;case 7:var U=e[1],B=u(U[5]),ax=[7,[0,U[1],U[2],U[3],U[4],B]];break;case 8:var X=e[1],J=u(X[3]),ax=[8,[0,X[1],X[2],J]];break;case 9:var e0=e[1],i0=u(e0[5]),ax=[9,[0,e0[1],e0[2],e0[3],e0[4],i0]];break;case 10:var j=e[1],Y=u(j[4]),ax=[10,[0,j[1],j[2],j[3],Y]];break;case 11:var z=e[1],F=u(z[5]),ax=[11,[0,z[1],z[2],z[3],z[4],F]];break;case 12:var t0=e[1],$=u(t0[4]),ax=[12,[0,t0[1],t0[2],t0[3],$]];break;case 13:var f0=e[1],c0=u(f0[2]),ax=[13,[0,f0[1],c0]];break;case 14:var v0=e[1],s0=u(v0[4]),ax=[14,[0,v0[1],v0[2],v0[3],s0]];break;case 15:var o0=e[1],E0=u(o0[5]),ax=[15,[0,o0[1],o0[2],o0[3],o0[4],E0]];break;case 16:var k0=e[1],M0=u(k0[4]),ax=[16,[0,k0[1],k0[2],k0[3],M0]];break;case 17:var D0=e[1],cx=u(D0[3]),ax=[17,[0,D0[1],D0[2],cx]];break;case 18:var ax=[18,[0,u(e[1][1])]];break;case 19:var g0=e[1],Z0=u(g0[3]),ax=[19,[0,g0[1],g0[2],Z0]];break;case 20:var n0=e[1],nx=u(n0[3]),ax=[20,[0,n0[1],n0[2],nx]];break;case 21:var xx=e[1],yx=u(xx[5]),ax=[21,[0,xx[1],xx[2],xx[3],xx[4],yx]];break;case 22:var px=e[1],Tx=u(px[3]),ax=[22,[0,px[1],px[2],Tx]];break;case 23:var O0=e[1],P0=u(O0[5]),ax=[23,[0,O0[1],O0[2],O0[3],O0[4],P0]];break;case 24:var N0=e[1],J0=u(N0[5]),ax=[24,[0,N0[1],N0[2],N0[3],N0[4],J0]];break;case 25:var I0=e[1],Q=u(I0[5]),ax=[25,[0,I0[1],I0[2],I0[3],I0[4],Q]];break;case 26:var G=e[1],V=G[10],l0=u(G[9]),ax=[26,[0,G[1],G[2],G[3],G[4],G[5],G[6],G[7],G[8],l0,V]];break;case 27:var d0=e[1],A0=u(d0[4]),ax=[27,[0,d0[1],d0[2],d0[3],A0]];break;case 28:var M=e[1],L0=u(M[5]),ax=[28,[0,M[1],M[2],M[3],M[4],L0]];break;case 29:var V0=e[1],B0=u(V0[5]),ax=[29,[0,V0[1],V0[2],V0[3],V0[4],B0]];break;case 30:var vx=e[1],b0=u(vx[3]),ax=[30,[0,vx[1],vx[2],b0]];break;case 31:var hx=e[1],W0=hx[3],T=u(hx[2]),ax=[31,[0,hx[1],T,W0]];break;case 32:var K=e[1],H0=K[4],sx=u(K[3]),ax=[32,[0,K[1],K[2],sx,H0]];break;case 33:var ux=e[1],z0=u(ux[2]),ax=[33,[0,ux[1],z0]];break;case 34:var Px=e[1],kx=u(Px[4]),ax=[34,[0,Px[1],Px[2],Px[3],kx]];break;case 35:var $x=e[1],Qx=u($x[4]),ax=[35,[0,$x[1],$x[2],$x[3],Qx]];break;case 36:var j0=e[1],rr=u(j0[5]),ax=[36,[0,j0[1],j0[2],j0[3],j0[4],rr]];break;case 37:var zx=e[1],X0=u(zx[3]),ax=[37,[0,zx[1],zx[2],X0]];break;case 38:var ir=e[1],K0=u(ir[3]),ax=[38,[0,ir[1],ir[2],K0]];break;default:var Sr=e[1],Dr=u(Sr[3]),ax=[39,[0,Sr[1],Sr[2],Dr]]}return[0,t,ax]};id(ls0,function(x){var r=PR(x,cs0),e=CR(os0),t=e.length-1,u=YK.length-1,i=za(t+u|0,0),f=t-1|0,o=0;if(f>=0)for(var a=o;;){var y=Xl(x,X1(e,a)[1+a]);X1(i,a)[1+a]=y;var h=a+1|0;if(f!==a){var a=h;continue}break}var k=u-1|0,A=0;if(k>=0)for(var g=A;;){var I=g+t|0,C=PR(x,X1(YK,g)[1+g]);X1(i,I)[1+I]=C;var R=g+1|0;if(k!==g){var g=R;continue}break}var L=i[4],U=i[5],B=i[B3],X=i[yv],J=i[292],e0=i[293],i0=i[44],j=i[H8],Y=i[Jz],z=RR(x,0,0,BK,zR,1)[1];function F(s0,o0,E0){return p(s0[1][1+B],s0,E0[2]),E0}function t0(s0,o0){return p(s0[1][1+X],s0,o0),o0}function $(s0,o0){var E0=o0[1],k0=s0[1+e0];if(k0){var M0=Fs(k0[1][1][2],E0[2])<0?1:0,D0=M0&&(s0[1+e0]=[0,o0],0);return D0}var cx=0<=Fs(E0[2],s0[1+r][3])?1:0,g0=cx&&(s0[1+e0]=[0,o0],0);return g0}function f0(s0,o0){var E0=o0[1],k0=s0[1+J];if(k0){var M0=Fs(E0[2],k0[1][1][2])<0?1:0,D0=M0&&(s0[1+J]=[0,o0],0);return D0}var cx=Fs(E0[2],s0[1+r][2])<0?1:0,g0=cx&&(s0[1+J]=[0,o0],0);return g0}function c0(s0,o0){return o0?p(s0[1][1+X],s0,o0[1]):0}function v0(s0,o0){var E0=o0[2],k0=o0[1];return S2(l(s0[1][1+U],s0),k0),S2(l(s0[1][1+L],s0),E0)}return LR(x,[0,j,function(s0){return[0,s0[1+J],s0[1+e0]]},X,v0,B,c0,U,f0,L,$,i0,t0,Y,F]),function(s0,o0,E0){var k0=fd(o0,x);return k0[1+r]=E0,l(z,k0),k0[1+J]=0,k0[1+e0]=0,OR(o0,k0,x)}});var _B=function(x){var r=W(x),e=0;if(typeof r=="number"){var t=r;if(49<=t)switch(t){case 49:var u=Fs0;break;case 50:var u=Qs0;break;case 51:var u=Hs0;break;case 52:var u=qs0;break;case 53:var u=Gs0;break;case 54:var u=bs0;break;case 55:var u=xo0;break;case 56:var u=ro0;break;case 57:var u=eo0;break;case 58:var u=to0;break;case 59:var u=no0;break;case 60:var u=uo0;break;case 61:var u=io0;break;case 62:var u=fo0;break;case 63:var u=co0;break;case 64:var u=so0;break;case 65:var u=oo0;break;case 114:var u=vo0;break;case 115:var u=ao0;break;case 116:var u=lo0;break;case 117:var u=po0;break;case 118:var u=yo0;break;case 119:var u=do0;break;case 120:var u=mo0;break;case 121:var u=ko0;break;case 122:var u=ho0;break;case 123:var u=_o0;break;case 124:var u=wo0;break;case 125:var u=To0;break;case 126:var u=So0;break;case 128:var u=Eo0;break;case 129:var u=Ao0;break;default:e=1}else switch(t){case 15:var u=ps0;break;case 16:var u=ys0;break;case 17:var u=ds0;break;case 18:var u=ms0;break;case 19:var u=ks0;break;case 20:var u=hs0;break;case 21:var u=_s0;break;case 22:var u=ws0;break;case 23:var u=Ts0;break;case 24:var u=Ss0;break;case 25:var u=Es0;break;case 26:var u=As0;break;case 27:var u=gs0;break;case 28:var u=Ns0;break;case 29:var u=Is0;break;case 30:var u=Ps0;break;case 31:var u=Cs0;break;case 32:var u=Rs0;break;case 33:var u=Os0;break;case 34:var u=Ls0;break;case 35:var u=Us0;break;case 36:var u=Ms0;break;case 37:var u=Ds0;break;case 38:var u=js0;break;case 39:var u=zs0;break;case 40:var u=Ks0;break;case 41:var u=Js0;break;case 42:var u=Ys0;break;case 43:var u=Bs0;break;case 44:var u=Xs0;break;case 45:var u=Ws0;break;case 46:var u=Vs0;break;case 47:var u=Zs0;break;case 48:var u=$s0;break;default:e=1}}else switch(r[0]){case 4:var u=r[2];break;case 11:var i=r[1]?go0:No0,u=i;break;default:e=1}if(e){S1(Io0,x);var u=Po0}return $0(x),u},_2=function(x){var r=Nx(x),e=w0(x),t=_B(x);return[0,r,[0,t,m0([0,e],[0,mx(x)],0)]]},wB=function(x){var r=Nx(x),e=w0(x);u0(x,14);var t=Nx(x),u=_B(x),i=m0([0,e],[0,mx(x)],0),f=i1(r,t),o=t[2],a=r[3],y=a[1]===o[1]?1:0,h=y&&(a[2]===o[2]?1:0);return 1-h&&ex(x,[0,f,Vi]),[0,f,[0,u,i]]},Vv=function(x){var r=x[2],e=r[3]===0?1:0,t=r[2];if(!e)return e;for(var u=t;;){if(!u)return 1;var i=u[1][2],f=0,o=u[2];if(i[1][2][0]===2&&!i[2]){var a=1;f=1}if(!f)var a=0;if(!a)return a;var u=o}},s6=function(x){for(var r=x;;){var e=r[2];if(e[0]!==30)return 0;var t=e[1][2];if(t[2][0]===26)return 1;var r=t}},Fd=function(x,r,e){var t=e[2][1],u=e[1];if(!N(t,_v)){var i=r[19];return i&&ex(r,[0,u,6])}if(N(t,ya)){if(!N(t,U2))return r[18]?ex(r,[0,u,99]):vt(r,[0,u,84])}else if(r[14])return ex(r,[0,u,[23,pd(t)]]);if(r3(t))return vt(r,[0,u,84]);if(Bd(t))return ex(r,[0,u,99]);if(x){var f=x[1];if(Xv(t))return vt(r,[0,u,f])}return 0},a0=function(x,r,e){var t=x?x[1]:Nx(e),u=l(r,e),i=x3(e),f=i?i1(t,i[1]):t;return[0,f,u]},Qd=function(x,r,e){var t=a0(x,r,e),u=t[2];return[0,[0,t[1],u[1]],u[2]]},Hd=function(x){J1(x,0);var r=W(x);W1(x);var e=hr(1,x),t=0;if(typeof r=="number")r===21&&(t=1);else if(r[0]===4)if(N(r[3],da))t=1;else{var u=0;typeof e=="number"?e===21&&(u=1):e[0]===4&&(u=1),t=u?2:1}var i=0;switch(t){case 1:typeof e=="number"?m1===e&&(i=1):e[0]===4&&!N(e[3],al)&&(i=1);break;case 0:break;default:i=1}return i?1:0},TB=function(x){switch(x){case 3:return 2;case 4:return 1;case 5:return 1;case 6:return 1;case 7:return 1;default:return 1}},oO=function(x,r,e){if(e){var t=e[1],u=0;if(t===8232||H1===t)u=1;else var i=t===10?6:t===13?5:b3<=t?3:vP<=t?2:m1<=t?1:0;if(u)var i=7;var f=i}else var f=4;return[0,f,x]},xS0=[Qr,fv0,zs(0)],SB=function(x,r,e,t){try{var u=X1(x,r)[1+r];return u}catch(f){var i=R1(f);throw i[1]===qC?q0([0,xS0,e,G0(Ar(uv0),t,r,x.length-1)],1):q0(i,0)}},qd=function(x,r){if(r[1]===0&&r[2]===0)return 0;var e=SB(x,r[1]-1|0,r,tv0);return SB(e,r[2],r,nv0)},EB=function(x){var r=[0,Ov0,h2[1],0,0];function e(o){var a=W(o);if(typeof a=="number"){var y=0;if(8<=a?10>a&&(y=1):a===1&&(y=1),y)return 1}return 0}function t(o){var a=Nx(o),y=w0(o),h=W(o);if(typeof h=="number")switch(h){case 30:case 31:$0(o);var k=mx(o);return e(o)?[1,a,[0,h===31?1:0,m0([0,y],[0,k],0)]]:[0,a]}else switch(h[0]){case 0:var A=h[2],g=G0(x[24],o,h[1],A),I=mx(o);return e(o)?[2,a,[0,g,A,m0([0,y],[0,I],0)]]:[0,a];case 1:var C=h[2],R=G0(x[26],o,h[1],C),L=mx(o);return e(o)?[4,a,[0,R,C,m0([0,y],[0,L],0)]]:[0,a];case 2:var U=h[1],B=U[1],X=U[3],J=U[2];U[4]&&Xt(o,80),$0(o);var e0=mx(o);return e(o)?[3,B,[0,J,X,m0([0,y],[0,e0],0)]]:[0,B]}return $0(o),[0,a]}function u(o){var a=_2(o),y=W(o),h=0;if(typeof y=="number")if(y===82){u0(o,82);var k=t(o)}else if(y===86){Bx(o,[8,a[2][1]]),u0(o,86);var k=t(o)}else h=1;else h=1;if(h)var k=0;return[0,a,k]}var i=0;function f(o,a,y,h,k,A,g){var I=Fc(k),C=Fc(A);function R(U){return[2,[0,[0,A],y,h,g]]}function L(U){return[2,[0,[1,k],y,h,g]]}return I===0?R(0):C===0?L(0):I>>0){if(fe>=i0+1>>>0){var j=J[3],Y=J[4],z=gx(J[1][5]),F=gx(J[1][4]),t0=gx(J[1][3]),$=gx(J[1][2]),f0=gx(J[1][1]),c0=Fx(Y,w0(C));u0(C,1);var v0=W(C),s0=0;if(typeof v0=="number"){var o0=0;if(v0===1||Er===v0?o0=1:s0=1,o0)var E0=mx(C)}else s0=1;if(s0)var E0=b2(C)?Uo(C):0;var k0=K1([0,X],[0,E0],c0,0);if(B){switch(B[1]){case 0:var M0=[0,[0,f0,1,j,k0]];break;case 1:var M0=[1,[0,$,1,j,k0]];break;case 2:var M0=f(C,A,1,j,t0,z,k0);break;case 3:var M0=[3,[0,z,j,k0]];break;default:var M0=[4,[0,F,1,j,k0]]}var D0=M0}else{var cx=Fc(f0),g0=Fc($),Z0=Fc(t0),n0=Fc(z),nx=function(b){return[2,[0,gv0,0,j,k0]]},xx=0;if(cx===0&&g0===0){var yx=0;if(Z0===0&&n0===0)var px=nx(0);else yx=1;if(yx)var px=f(C,A,0,j,t0,z,k0)}else xx=1;if(xx){var Tx=0;if(g0===0&&Z0===0&&n0<=cx){S2(function(x0){return ex(C,[0,x0[1],[3,A,x0[2][1][2][1]]])},z);var px=[0,[0,f0,0,j,k0]];Tx=1}if(!Tx){var O0=0;if(cx===0&&Z0===0&&n0<=g0){S2(function(x0){return ex(C,[0,x0[1],[11,A,x0[2][1][2][1]]])},z);var px=[1,[0,$,0,j,k0]];O0=1}if(!O0){ex(C,[0,g,[5,A]]);var px=nx(0)}}}var D0=px}return D0}}else if(i0===10){var P0=Nx(C),N0=w0(C);$0(C);var J0=W(C),I0=0;if(typeof J0=="number"){var Q=J0-2|0,G=0;if(P1>>0)fe>=Q+1>>>0&&(G=1);else if(Q===7){u0(C,9);var V=W(C),l0=0;if(typeof V=="number"){var d0=0;if((V===1||Er===V)&&(d0=1),d0){var A0=1;l0=1}}if(!l0)var A0=0;ex(C,[0,P0,[6,A0]]),G=1}G&&(I0=1)}I0||ex(C,[0,P0,Av0]);var J=[0,J[1],J[2],1,N0];continue}}var M=J[2],L0=J[1],V0=a0(i,u,C),B0=V0[2],vx=B0[2],b0=B0[1],hx=V0[1],W0=b0[2][1],T=b0[1];if(Nr(W0,wx))var K=J;else{var H0=C1(W0,0),sx=97<=H0?1:0,ux=sx&&(H0<=qr?1:0);ux&&ex(C,[0,T,[10,A,W0]]),p(h2[3],W0,M)&&ex(C,[0,T,[4,A,W0]]);var z0=J[4],Px=J[3],kx=p(h2[4],W0,M),$x=[0,J[1],kx,Px,z0],Qx=function(_){return function(b,x0){return B&&B[1]!==b?ex(C,[0,x0,[9,A,B,_]]):0}}(W0);if(typeof vx=="number"){var j0=0;if(B)switch(B[1]){case 0:ex(C,[0,hx,[3,A,W0]]);var K=$x;break;case 1:ex(C,[0,hx,[11,A,W0]]);var K=$x;break;case 4:ex(C,[0,hx,[2,A,W0]]);var K=$x;break;default:j0=1}else j0=1;if(j0)var K=[0,[0,L0[1],L0[2],L0[3],L0[4],[0,[0,hx,[0,b0]],L0[5]]],kx,Px,z0]}else switch(vx[0]){case 0:ex(C,[0,vx[1],[9,A,B,W0]]);var K=$x;break;case 1:var rr=vx[1],zx=vx[2];Qx(0,rr);var K=[0,[0,[0,[0,hx,[0,b0,[0,rr,zx]]],L0[1]],L0[2],L0[3],L0[4],L0[5]],kx,Px,z0];break;case 2:var X0=vx[1],ir=vx[2];Qx(1,X0);var K=[0,[0,L0[1],[0,[0,hx,[0,b0,[0,X0,ir]]],L0[2]],L0[3],L0[4],L0[5]],kx,Px,z0];break;case 3:var K0=vx[1],Sr=vx[2];Qx(2,K0);var K=[0,[0,L0[1],L0[2],[0,[0,hx,[0,b0,[0,K0,Sr]]],L0[3]],L0[4],L0[5]],kx,Px,z0];break;default:var Dr=vx[1],ax=vx[2];Qx(4,Dr);var K=[0,[0,L0[1],L0[2],L0[3],[0,[0,hx,[0,b0,[0,Dr,ax]]],L0[4]],L0[5]],kx,Px,z0]}}var br=W(C),t2=0;if(typeof br=="number"){var k1=br-2|0,Rr=0;P1>>0?fe>=k1+1>>>0&&(Rr=1):k1===6&&(Bx(C,22),u0(C,8),Rr=1),Rr&&(t2=1)}t2||u0(C,9);var J=K}},a);return[0,k,I,m0([0,h],0,0)]}]},Gd=function(x,r,e){if(typeof e=="number")return[0,x,r];if(e[0]===0){var t=e[1],u=Ex(x,t),i=e[2];return u===0?i===r?e:[0,t,r]:0<=u?[1,2,x,r,e,0]:[1,2,x,r,0,e]}var f=e[5],o=e[4],a=e[3],y=e[2],h=Ex(x,y),k=e[1];if(h===0)return a===r?e:[1,k,x,r,o,f];if(0<=h){var A=Gd(x,r,f);return f===A?e:qJ(o,y,a,A)}var g=Gd(x,r,o);return o===g?e:qJ(g,y,a,f)},n3=function(x){return[0,wn(x)]},vO=uY([0,function(x,r){var e=r[2],t=x[2],u=vY(x[1],r[1]);return u===0?p(aY,t,e):u}]),o6=function(x,r,e){var t=e[2][1],u=e[1];return Nr(t,wx)?r:p(h2[3],t,r)?(ex(x,[0,u,[0,t]]),r):p(h2[4],t,r)},aO=function(x){return function(r){var e=r[2];switch(e[0]){case 0:var t=e[1][1];return b1(function(i,f){var o=f[0]===0?f[1][2][2]:f[1][2][1];return l(aO(i),o)},x,t);case 1:var u=e[1][1];return b1(function(i,f){if(f[0]===2)return i;var o=f[1][2][1];return l(aO(i),o)},x,u);case 2:return[0,e[1][1],x];default:return Rx(Ul0)}}},lx=UJ(Dl0,Ml0[1]),bd=function(x,r,e){var t=x?x[1]:0,u=r?r[1]:0,i=Nx(e),f=W(e);if(typeof f=="number")switch(f){case 103:var o=w0(e);return $0(e),[0,[0,i,[0,0,m0([0,o],0,0)]]];case 104:var a=w0(e);return $0(e),[0,[0,i,[0,1,m0([0,a],0,0)]]];case 126:if(t){var y=w0(e);return $0(e),[0,[0,i,[0,2,m0([0,y],0,0)]]]}break}else if(f[0]===4){var h=f[3];if(N(h,mo)){if(!N(h,__)&&u&&Xd(1,e)){var k=w0(e);return $0(e),[0,[0,i,[0,4,m0([0,k],0,0)]]]}}else if(u&&Xd(1,e)){var A=w0(e);$0(e);var g=W(e),I=0;if(typeof g!="number"&&g[0]===4&&!N(g[3],__)){var C=Nx(e);$0(e);var R=i1(i,C),L=5;I=1}if(!I)var R=i,L=3;return[0,[0,R,[0,L,m0([0,A],0,0)]]]}}return 0},AB=function(x,r,e,t,u){r===1&&Xt(u,80);var i=w0(u);$0(u);var f=mx(u);if(x)var o=m0([0,Fx(x[1],i)],[0,f],0),a=o,y=Zx(ev0,t),h=-e;else var a=m0([0,i],[0,f],0),y=t,h=e;return[29,[0,h,y,a]]},gB=function(x,r,e,t){var u=w0(t);$0(t);var i=mx(t);if(x)var f=m0([0,Fx(x[1],u)],[0,i],0),o=Zx(rv0,e),a=f,y=o,h=Fy(BC,r);else var a=m0([0,u],[0,i],0),y=e,h=r;return[30,[0,h,y,a]]},Gr=function x(r){return x.fun(r)},u3=function x(r){return x.fun(r)},NB=function x(r){return x.fun(r)},IB=function x(r){return x.fun(r)},lO=function x(r,e,t){return x.fun(r,e,t)},xm=function x(r){return x.fun(r)},pO=function x(r,e,t,u){return x.fun(r,e,t,u)},yO=function x(r){return x.fun(r)},dO=function x(r,e,t,u){return x.fun(r,e,t,u)},mO=function x(r){return x.fun(r)},kO=function x(r,e){return x.fun(r,e)},hO=function x(r){return x.fun(r)},PB=function x(r){return x.fun(r)},rm=function x(r,e,t,u){return x.fun(r,e,t,u)},em=function x(r,e,t,u,i){return x.fun(r,e,t,u,i)},CB=function x(r){return x.fun(r)},RB=function x(r,e){return x.fun(r,e)},_O=function x(r){return x.fun(r)},OB=function x(r){return x.fun(r)},LB=function x(r){return x.fun(r)},UB=function x(r){return x.fun(r)},MB=function x(r){return x.fun(r)},wO=function x(r,e){return x.fun(r,e)},DB=function x(r){return x.fun(r)},jB=function x(r){return x.fun(r)},v6=function x(r,e){return x.fun(r,e)},zB=function x(r){return x.fun(r)},Zv=function x(r){return x.fun(r)},tm=function x(r){return x.fun(r)},KB=function x(r,e){return x.fun(r,e)},TO=function x(r){return x.fun(r)},JB=function x(r){return x.fun(r)},YB=function x(r){return x.fun(r)},BB=function x(r){return x.fun(r)},XB=function x(r){return x.fun(r)},nm=function x(r,e,t,u){return x.fun(r,e,t,u)},SO=function x(r){return x.fun(r)},um=function x(r){return x.fun(r)},EO=function x(r,e){return x.fun(r,e)},im=function x(r,e,t,u){return x.fun(r,e,t,u)},AO=function x(r){return x.fun(r)},Mo=function x(r){return x.fun(r)},WB=function x(r){return x.fun(r)},$v=function x(r){return x.fun(r)},gO=function x(r){return x.fun(r)},fm=function x(r){return x.fun(r)},NO=function x(r,e){return x.fun(r,e)},VB=function x(r,e){return x.fun(r,e)},ZB=function x(r){return x.fun(r)},$B=function x(r){return x.fun(r)},IO=function x(r){return x.fun(r)},FB=function x(r,e,t){return x.fun(r,e,t)};C0(Gr,function(x){return l(IB,x)}),C0(u3,function(x){return 1-T1(x)&&Bx(x,_1),a0(0,function(r){return u0(r,86),l(Gr,r)},x)}),C0(NB,function(x){1-T1(x)&&Bx(x,_1);var r=Nx(x);return u0(x,86),Hd(x)?[2,p(EO,x,r)]:[1,a0([0,r],Gr,x)]}),C0(IB,function(x){var r=Nx(x),e=rO(0,x);return G0(lO,e,r,l(xm,e))}),C0(lO,function(x,r,e){var t=W(x);return typeof t=="number"&&t===41?a0([0,r],function(u){u0(u,41);var i=l(xm,rO(1,u));Vd(u,85);var f=l(Gr,u);Vd(u,86);var o=l(Gr,u);return[17,[0,e,i,f,o,m0(0,[0,mx(u)],0)]]},x):e}),C0(xm,function(x){var r=Nx(x);if(W(x)===89){var e=w0(x);$0(x);var t=e}else var t=0;return oe(pO,x,[0,t],r,l(yO,x))}),C0(pO,function(x,r,e,t){var u=r?r[1]:0;if(W(x)!==89)return t;var i=[0,t,0];return a0([0,e],function(f){for(var o=i;;){if(v1(f,89)){var o=[0,l(yO,f),o];continue}var a=gx(o);if(a){var y=a[2];if(y){var h=y[2],k=y[1],A=a[1];return[22,[0,[0,A,k,h],m0([0,u],0,0)]]}}throw q0([0,Tr,xv0],1)}},x)}),C0(yO,function(x){var r=Nx(x);if(W(x)===91){var e=w0(x);$0(x);var t=e}else var t=0;return oe(dO,x,[0,t],r,l(mO,x))}),C0(dO,function(x,r,e,t){var u=r?r[1]:0;if(W(x)!==91)return t;var i=[0,t,0];return a0([0,e],function(f){for(var o=i;;){if(v1(f,91)){var o=[0,l(mO,f),o];continue}var a=gx(o);if(a){var y=a[2];if(y){var h=y[2],k=y[1],A=a[1];return[23,[0,[0,A,k,h],m0([0,u],0,0)]]}}throw q0([0,Tr,bo0],1)}},x)}),C0(mO,function(x){return p(kO,x,l(hO,x))}),C0(kO,function(x,r){var e=W(x);if(typeof e=="number"&&e===11&&!x[15]){var t=p(v6,x,r);return oe(nm,x,t[1],0,[0,t[1],[0,0,[0,t,0],0,0]])}return r}),C0(hO,function(x){var r=W(x);return typeof r=="number"&&r===85?a0(0,function(e){var t=w0(e);u0(e,85);var u=m0([0,t],0,0);return[11,[0,l(hO,e),u]]},x):l(PB,x)}),C0(PB,function(x){var r=Nx(x);return oe(rm,0,x,r,l(LB,x))}),C0(rm,function(x,r,e,t){var u=x?x[1]:0;if(b2(r))return t;var i=W(r);if(typeof i=="number"){if(i===6)return $0(r),Je(em,u,0,r,e,t);if(i===10){var f=hr(1,r);return typeof f=="number"&&f===6?(Bx(r,qo0),u0(r,10),u0(r,6),Je(em,u,0,r,e,t)):(Bx(r,Go0),t)}if(i===83)return $0(r),W(r)!==6&&Bx(r,45),u0(r,6),Je(em,1,1,r,e,t)}return t}),C0(em,function(x,r,e,t,u){return oe(rm,[0,x],e,t,a0([0,t],function(i){if(!r&&v1(i,7))return[16,[0,u,m0(0,[0,mx(i)],0)]];var f=l(Gr,i);u0(i,7);var o=[0,u,f,m0(0,[0,mx(i)],0)];return x?[21,[0,o,r]]:[20,o]},e))}),C0(CB,function(x){return p(RB,x,p(lx[13],0,x))}),C0(RB,function(x,r){for(var e=[0,r[1],[0,r]];;){var t=e[2],u=e[1];if(W(x)===10&&vB(1,x)){var i=a0([0,u],function(a){return function(y){return u0(y,10),[0,a,_2(y)]}}(t),x),f=i[1],e=[0,f,[1,[0,f,i[2]]]];continue}return t}}),C0(_O,function(x){if(J1(x,0),W(x)===4){$0(x);var r=l(_O,x);u0(x,5);var e=r}else var e=es(x)?[0,l(CB,x)]:(Bx(x,50),0);return W1(x),e}),C0(OB,function(x){return a0(0,function(r){var e=w0(r);u0(r,46);var t=l(_O,r);if(!t)return Ho0;var u=t[1];return[24,[0,u,m0([0,e],0,0)]]},x)}),C0(LB,function(x){var r=Nx(x),e=W(x),t=0;if(typeof e=="number")switch(e){case 4:return l(BB,x);case 6:return l(jB,x);case 46:return l(OB,x);case 53:return a0(0,function(J){var e0=w0(J);$0(J);var i0=l(AO,J),j=i0[2],Y=i0[1];return[15,[0,j,Y,m0([0,e0],0,0)]]},x);case 98:return l(XB,x);case 104:return a0(0,UB,x);case 106:var u=w0(x);return $0(x),[0,r,[10,m0([0,u],[0,mx(x)],0)]];case 125:return a0(0,function(J){var e0=w0(J);$0(J);var i0=mx(J),j=l(Gr,J);return[25,[0,j,m0([0,e0],[0,i0],0)]]},x);case 126:return a0(0,function(J){var e0=w0(J);$0(J);var i0=mx(J),j=l(Gr,J);return[26,[0,j,m0([0,e0],[0,i0],0)]]},x);case 127:return a0(0,function(J){var e0=w0(J);$0(J);var i0=mx(J),j=a0(0,function(Y){var z=l(Mo,Y);function F(t0){if(1-v1(t0,41))throw q0(ns,1);var $=l(xm,t0);if(!t0[16]&&W(t0)===85)throw q0(ns,1);return[1,[0,$[1],$]]}return[0,z,Zd(Y,[0,Nx(Y)],F),1,0,0]},J);return[18,[0,j,m0([0,e0],[0,i0],0)]]},x);case 0:case 2:var i=oe(im,0,1,1,x);return[0,i[1],[14,i[2]]];case 41:case 42:t=1;break;case 30:case 31:var f=w0(x);return $0(x),[0,r,[31,[0,e===31?1:0,m0([0,f],[0,mx(x)],0)]]]}else switch(e[0]){case 2:var o=e[1],a=o[3],y=o[2],h=o[1];o[4]&&Xt(x,80);var k=w0(x);return $0(x),[0,h,[28,[0,y,a,m0([0,k],[0,mx(x)],0)]]];case 4:if(N(e[3],vo))t=1;else{if(x[28][1])return a0(0,function(J){var e0=w0(J);ts(J,Zo0);var i0=xe(J,l($v,J)),j=l(TO,J);if(fO(J))var F=sO(J,l(IO,J)),t0=j;else var Y=[0,wn(J)],z=I1(J)[2],F=Y,t0=p(z,j,function($,f0){return p(qx($,420776873,11),$,f0)});return[13,[0,i0,t0,F,m0([0,e0],0,0)]]},x);t=1}break;case 7:if(!N(e[1],D3))return Bx(x,88),[0,r,$o0];break;case 12:var A=e[3],g=e[2],I=e[1],C=0;return a0(0,function(J){return AB(C,I,g,A,J)},x);case 13:var R=e[3],L=e[2],U=0;return a0(0,function(J){return gB(U,L,R,J)},x)}if(t){var B=l(fm,x);return[0,B[1],[19,B[2]]]}var X=l(DB,x);return X?[0,r,X[1]]:(S1(Fo0,x),[0,r,Qo0])}),C0(UB,function(x){var r=w0(x);$0(x);var e=W(x);if(typeof e!="number")switch(e[0]){case 12:return AB([0,r],e[1],e[2],e[3],x);case 13:return gB([0,r],e[2],e[3],x)}return S1(Wo0,x),Vo0}),C0(MB,function(x){var r=0;if(typeof x=="number")switch(x){case 29:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 124:r=1;break}else x[0]===11&&(r=1);return r?1:0}),C0(wO,function(x,r){var e=w0(x),t=a0(0,$0,x)[1],u=m0([0,e],[0,mx(x)],0);return[0,[19,[0,[0,hn(0,[0,t,r])],0,u]]]}),C0(DB,function(x){var r=w0(x),e=W(x);if(typeof e=="number")switch(e){case 29:return $0(x),[0,[4,m0([0,r],[0,mx(x)],0)]];case 114:return $0(x),[0,[0,m0([0,r],[0,mx(x)],0)]];case 115:return $0(x),[0,[1,m0([0,r],[0,mx(x)],0)]];case 116:return $0(x),[0,[2,m0([0,r],[0,mx(x)],0)]];case 117:return $0(x),[0,[5,m0([0,r],[0,mx(x)],0)]];case 118:return $0(x),[0,[6,m0([0,r],[0,mx(x)],0)]];case 119:return $0(x),[0,[7,m0([0,r],[0,mx(x)],0)]];case 120:return $0(x),[0,[3,m0([0,r],[0,mx(x)],0)]];case 121:return $0(x),[0,[9,m0([0,r],[0,mx(x)],0)]];case 122:return $0(x),[0,[32,m0([0,r],[0,mx(x)],0)]];case 123:return $0(x),[0,[33,m0([0,r],[0,mx(x)],0)]];case 124:return $0(x),[0,[34,m0([0,r],[0,mx(x)],0)]];case 128:return p(wO,x,Bo0);case 129:return p(wO,x,Xo0)}else if(e[0]===11){var t=e[1];$0(x);var u=mx(x),i=t?-883944824:737456202;return[0,[8,i,m0([0,r],[0,u],0)]]}return 0}),C0(jB,function(x){return a0(0,function(r){var e=w0(r);u0(r,6);for(var t=Bv(0,r),u=0;;){var i=W(t);if(typeof i=="number"){var f=0;if(i!==7&&Er!==i&&(f=1),!f){var o=gx(u);return u0(r,7),[27,[0,o,m0([0,e],[0,mx(r)],0)]]}}var a=[0,a0(0,function(h){if(!v1(h,12)){var k=W(h),A=0;if(typeof k=="number"&&(tt===k||ln===k&&Oo(1,h))){var g=bd(0,0,h);A=1}if(!A)var g=0;var I=es(h),C=hr(1,h);if(I&&typeof C=="number"&&1>=C+Ev>>>0){var R=_2(h),L=v1(h,85);return u0(h,86),[1,[0,R,l(Gr,h),g,L]]}var U=g?1:0;return U&&Bx(h,49),[0,l(Gr,h)]}var B=es(h),X=hr(1,h),J=0;if(B&&typeof X=="number"&&1>=X+Ev>>>0){var e0=_2(h);W(h)===85&&(Bx(h,48),$0(h)),u0(h,86);var i0=[0,e0];J=1}if(!J)var i0=0;return[2,[0,i0,l(Gr,h)]]},t),u];W(t)!==7&&u0(t,9);var u=a}},x)}),C0(v6,function(x,r){return[0,r[1],[0,0,r,0]]}),C0(zB,function(x){return a0(0,function(r){J1(r,0);var e=p(lx[13],0,r);W1(r),1-T1(r)&&Bx(r,_1);var t=v1(r,85);return u0(r,86),[0,[0,e],l(Gr,r),t]},x)});var QB=function(x){var r=hr(1,x);return typeof r=="number"&&1>=r+Ev>>>0?l(zB,x):p(v6,x,l(Gr,x))};C0(Zv,function(x){var r=0;return function(e){for(var t=r,u=e;;){var i=W(x);if(typeof i=="number")switch(i){case 5:case 12:case 113:var f=i===12?[0,a0(0,function(g){var I=w0(g);u0(g,12);var C=m0([0,I],0,0);return[0,QB(g),C]},x)]:0;return[0,t,gx(u),f,0]}else if(i[0]===4&&!N(i[3],fv)){var o=0;if(hr(1,x)!==86&&hr(1,x)!==85&&(o=1),!o){var a=t!==0?1:0,y=a||(u!==0?1:0);y&&Bx(x,93);var h=a0(0,function(I){var C=w0(I);$0(I),W(I)===85&&Bx(I,92);var R=m0([0,C],0,0);return[0,l(u3,I),R]},x);W(x)!==5&&u0(x,9);var t=[0,h];continue}}var k=[0,QB(x),u];W(x)!==5&&u0(x,9);var u=k}}}),C0(tm,function(x){return a0(0,function(r){var e=w0(r);u0(r,4);var t=p(Zv,r,0),u=w0(r);u0(r,5);var i=K1([0,e],[0,mx(r)],u,0);return[0,t[1],t[2],t[3],i]},x)}),C0(KB,function(x,r){for(var e=r;;){var t=W(x);if(typeof t=="number"){var u=t-5|0,i=0;if(7>>0?fn===u&&(i=1):5>>0&&(i=1),i){var f=t===12?[0,a0(0,function(y){var h=w0(y);u0(y,12);var k=hr(1,y),A=0;if(typeof k=="number")if(k===85){J1(y,0);var g=p(lx[13],0,y);W1(y),u0(y,85),u0(y,86);var C=1,R=[0,g]}else if(k===86){J1(y,0);var I=p(lx[13],0,y);W1(y),u0(y,86);var C=0,R=[0,I]}else A=1;else A=1;if(A)var C=0,R=0;var L=l(Gr,y);return[0,R,L,C,m0([0,h],0,0)]},x)]:0;return[0,gx(e),f,0]}}var o=[0,a0(0,function(y){var h=W(y),k=0;if(typeof h!="number"&&h[0]===2){var A=h[1],g=A[4],I=A[3],C=A[2],R=A[1];g&&Xt(y,80),u0(y,[2,[0,R,C,I,g]]);var L=[1,[0,R,[0,C,I,m0(0,[0,mx(y)],0)]]];k=1}if(!k){J1(y,0);var U=p(lx[13],0,y);W1(y);var L=[0,U]}var B=v1(y,85);return[0,L,l(u3,y),B]},x),e];W(x)!==5&&u0(x,9);var e=o}}),C0(TO,function(x){return a0(0,function(r){var e=w0(r);u0(r,4);var t=p(KB,r,0),u=w0(r);u0(r,5);var i=K1([0,e],[0,mx(r)],u,0);return[0,t[1],t[2],i]},x)}),C0(JB,function(x){var r=w0(x);u0(x,4);var e=Bv(0,x),t=W(e),u=0;if(typeof t=="number")switch(t){case 5:var i=Yo0;break;case 42:u=2;break;case 12:case 113:var i=[0,p(Zv,e,0)];break;default:u=1}else t[0]===4?u=2:u=1;switch(u){case 1:if(l(MB,t)){var f=hr(1,e),o=0;if(typeof f=="number"&&1>=f+Ev>>>0){var a=[0,p(Zv,e,0)];o=1}if(!o)var a=[1,l(Gr,e)];var i=a}else var i=[1,l(Gr,e)];break;case 2:var i=l(YB,e);break}if(i[0]===0)var y=i;else{var h=i[1];if(x[15])var k=i;else{var A=W(x),g=0;if(typeof A=="number")if(A===5)var I=hr(1,x)===11?[0,p(Zv,x,[0,p(v6,x,h),0])]:[1,h];else if(A===9){u0(x,9);var I=[0,p(Zv,x,[0,p(v6,x,h),0])]}else g=1;else g=1;if(g)var I=i;var k=I}var y=k}var C=w0(x);u0(x,5);var R=mx(x);if(y[0]===0)var L=y[1],U=K1([0,r],[0,R],C,0),B=[0,[0,L[1],L[2],L[3],U]];else var B=[1,G0(FB,y[1],r,R)];return B}),C0(YB,function(x){var r=hr(1,x);if(typeof r=="number"&&1>=r+Ev>>>0)return[0,p(Zv,x,0)];var e=Nx(x),t=p(VB,x,l(Mo,x)),u=l(G0(rm,0,x,e),t),i=l(l(kO,x),u),f=l(p(l(dO,x),0,e),i),o=l(p(l(pO,x),0,e),f);return[1,l(p(lO,rO(0,x),e),o)]}),C0(BB,function(x){var r=Nx(x),e=a0(0,JB,x),t=e[2],u=e[1];return t[0]===0?oe(nm,x,r,0,[0,u,t[1]]):t[1]}),C0(XB,function(x){var r=Nx(x),e=xe(x,l($v,x));return oe(nm,x,r,e,l(tm,x))}),C0(nm,function(x,r,e,t){return a0([0,r],function(u){return u0(u,11),[12,[0,e,t,l(SO,u),0]]},x)}),C0(SO,function(x){return Hd(x)?[1,l(um,x)]:[0,l(Gr,x)]}),C0(um,function(x){return a0(0,function(r){var e=w0(r),t=v1(r,yl);J1(r,0);var u=_2(r);W1(r);var i=W(r),f=0;if(typeof i=="number"&&m1===i){var o=w0(r);u0(r,m1);var a=Fx(o,w0(r)),y=a,h=[0,l(Gr,r)];f=1}if(!f)var y=0,h=0;return[0,t,[0,u,h],K1([0,e],0,y,0)]},x)}),C0(EO,function(x,r){return a0([0,r],um,x)});var cm=function(x,r,e){return a0([0,r],function(t){var u=l(tm,t);return u0(t,86),[0,e,u,l(SO,t),0]},x)},HB=function(x,r,e,t,u){var i=Sn(x,t),f=cm(x,r,xe(x,l($v,x))),o=[0,f[1],[12,f[2]]],a=[0,i,[0,o],0,e!==0?1:0,0,1,0,m0([0,u],0,0)];return[0,[0,o[1],a]]},sm=function(x,r,e,t,u,i,f){var o=f[2],a=f[1];return 1-T1(x)&&Bx(x,_1),[0,a0([0,r],function(y){var h=v1(y,85),k=pB(y,86)?l(Gr,y):[0,a,Jo0];return[0,o,[0,k],h,t!==0?1:0,u!==0?1:0,0,e,m0([0,i],0,0)]},x)]},a6=function(x,r){var e=W(r);if(typeof e=="number"&&10>e)switch(e){case 1:if(!x)return 0;break;case 3:if(x)return 0;break;case 8:case 9:return $0(r)}return Hs(r,9)},l6=function(x,r){return r?ex(x,[0,r[1][1],ut]):0},p6=function(x,r){return r?ex(x,[0,r[1],98]):0},rS0=function(x,r,e,t,u,i,f,o,a){for(var y=e,h=t,k=u,A=i,g=f,I=o;;){var C=W(x);if(typeof C=="number")switch(C){case 6:p6(x,g);var R=hr(1,x);if(typeof R=="number"&&R===6)return l6(x,k),[4,a0([0,a],function(O0){var P0=Fx(I,w0(O0));u0(O0,6),u0(O0,6);var N0=_2(O0);u0(O0,7),u0(O0,7);var J0=W(O0),I0=0;if(typeof J0=="number"){var Q=0;if((J0===4||J0===98)&&(Q=1),Q){var G=cm(O0,a,xe(O0,l($v,O0))),V=0,l0=[0,G[1],[12,G[2]]],d0=1,A0=0;I0=1}}if(!I0){var M=v1(O0,85),L0=mx(O0);u0(O0,86);var V=L0,l0=l(Gr,O0),d0=0,A0=M}return[0,N0,l0,A0,A!==0?1:0,d0,m0([0,P0],[0,V],0)]},x)];var L=Fx(I,w0(x));u0(x,6);var U=hr(1,x);return typeof U!="number"&&U[0]===4&&!N(U[3],mo)&&A===0?[5,a0([0,a],function(O0){var P0=l(Mo,O0),N0=P0[1];$0(O0);var J0=l(Gr,O0);u0(O0,7);var I0=W(O0),Q=0,G=[0,P0,[0,N0],0,0,0];if(typeof I0=="number"){var V=I0+MN|0,l0=0;if(1>>0)if(V===-18){$0(O0);var d0=2}else l0=1;else var d0=V?($0(O0),u0(O0,85),1):($0(O0),u0(O0,85),0);if(!l0){var A0=d0;Q=1}}if(!Q)var A0=3;u0(O0,86);var M=l(Gr,O0);return[0,[0,N0,G],M,J0,k,A0,m0([0,L],[0,mx(O0)],0)]},x)]:[2,a0([0,a],function(O0){if(hr(1,O0)===86){var P0=_2(O0);u0(O0,86);var N0=[0,P0]}else var N0=0;var J0=l(Gr,O0);u0(O0,7);var I0=mx(O0);u0(O0,86);var Q=l(Gr,O0);return[0,N0,J0,Q,A!==0?1:0,k,m0([0,L],[0,I0],0)]},x)];case 42:if(y){if(k!==0)throw q0([0,Tr,Lo0],1);var B=[0,Nx(x)],X=Fx(I,w0(x));$0(x);var y=0,h=0,A=B,I=X;continue}break;case 126:if(k===0){var J=0;if((Oo(1,x)||hr(1,x)===6)&&(J=1),J){var y=0,h=0,k=bd(Uo0,0,x);continue}}break;case 103:case 104:if(k===0){var y=0,h=0,k=bd(0,0,x);continue}break;case 4:case 98:return p6(x,g),l6(x,k),[3,a0([0,a],function(O0){var P0=Nx(O0),N0=cm(O0,P0,xe(O0,l($v,O0)));return[0,N0,A!==0?1:0,m0([0,I],0,0)]},x)]}else if(C[0]===4&&!N(C[3],RP)&&h){if(k!==0)throw q0([0,Tr,Mo0],1);var e0=[0,Nx(x)],i0=Fx(I,w0(x));$0(x);var y=0,h=0,g=e0,I=i0;continue}if(A){var j=A[1];if(g)return Rx(Do0);if(typeof C=="number"&&1>=C+Ev>>>0)return sm(x,a,k,0,g,0,[0,j,[3,hn(m0([0,I],0,0),[0,j,jo0])]])}else if(g){var Y=g[1];if(typeof C=="number"&&1>=C+Ev>>>0)return sm(x,a,k,A,0,0,[0,Y,[3,hn(m0([0,I],0,0),[0,Y,zo0])]])}var z=function(O0){J1(O0,0);var P0=p(lx[20],0,O0);return W1(O0),P0},F=w0(x),t0=z(x),$=t0[1],f0=t0[2];if(f0[0]===3){var c0=f0[1][2][1],v0=0;if(N(c0,Tv)&&N(c0,Oa)&&(v0=1),!v0){var s0=W(x);if(typeof s0=="number"){var o0=s0-5|0;if(92>>0){if(94>=o0+1>>>0)return p6(x,g),l6(x,k),HB(x,a,A,f0,I)}else if(1>=o0+QM>>>0)return sm(x,a,k,A,g,I,[0,$,f0])}Sn(x,f0);var E0=z(x),k0=Nr(c0,Tv),M0=Fx(I,F);return p6(x,g),l6(x,k),[0,a0([0,a],function(O0){var P0=E0[1],N0=Sn(O0,E0[2]),J0=cm(O0,a,0),I0=J0[2][2];if(k0){var Q=I0[2],G=0;if(Q[1])ex(O0,[0,P0,28]),G=1;else{var V=0;Q[2]||Q[3]?V=1:G=1,V&&ex(O0,[0,P0,27])}}else{var l0=I0[2],d0=0;if(l0[1])ex(O0,[0,P0,70]);else{var A0=l0[2],M=0;if(l0[3])ex(O0,[0,P0,69]),M=1;else{var L0=0;A0&&!A0[2]?M=1:L0=1,L0&&(ex(O0,[0,P0,69]),d0=1)}}}var V0=m0([0,M0],0,0),B0=0,vx=0,b0=0,hx=A!==0?1:0,W0=0,T=k0?[1,J0]:[2,J0];return[0,N0,T,W0,hx,b0,vx,B0,V0]},x)]}}var D0=t0[2],cx=W(x);if(typeof cx=="number"){var g0=0;if(cx!==4&&cx!==98&&(g0=1),!g0)return p6(x,g),l6(x,k),HB(x,a,A,D0,I)}var Z0=A!==0?1:0,n0=0;if(D0[0]===3){var nx=D0[1],xx=nx[2][1],yx=0,px=nx[1];if(r){var Tx=0;(Nr(kv,xx)||Z0&&Nr(yo,xx))&&(Tx=1),Tx&&(ex(x,[0,px,[15,xx,Z0,0,0]]),n0=1,yx=1)}}return sm(x,a,k,A,g,I,[0,$,D0])}};C0(im,function(x,r,e,t){var u=r&&(W(t)===2?1:0),i=r&&1-u;return a0(0,function(f){var o=w0(f),a=u?2:0;u0(f,a);for(var y=Bv(0,f),h=Ko0;;){var k=h[3],A=h[2],g=h[1];if(x&&e)throw q0([0,Tr,Ro0],1);if(i&&!e)throw q0([0,Tr,Oo0],1);var I=Nx(y),C=W(y);if(typeof C=="number"){var R=0;if(13<=C){if(Er===C){var L=[0,gx(g),A,k];R=1}}else if(C)switch(C-1|0){case 0:if(!u){var L=[0,gx(g),A,k];R=1}break;case 2:if(u){var L=[0,gx(g),A,k];R=1}break;case 11:if(!e){$0(y);var U=W(y);if(typeof U=="number"&&10>U)switch(U){case 1:case 3:case 8:case 9:ex(y,[0,I,36]),a6(u,y);continue}var B=uO(y);l(tO(y),B),ex(y,[0,I,Pt]),$0(y),a6(u,y);continue}var X=w0(y);$0(y);var J=W(y),e0=0;if(typeof J=="number"&&10>J)switch(J){case 1:case 3:case 8:case 9:a6(u,y);var i0=W(y),j=0;if(typeof i0=="number"){var Y=i0-1|0;if(2>=Y>>>0)switch(Y){case 0:if(i){var L=[0,gx(g),1,X];R=1,e0=1,j=1}break;case 1:break;default:ex(y,[0,I,35]);var L=[0,gx(g),A,k];R=1,e0=1,j=1}}if(!j){ex(y,[0,I,96]);continue}break}if(!e0){var z=[1,a0([0,I],function(E0){return function(k0){var M0=m0([0,E0],0,0);return[0,l(Gr,k0),M0]}}(X),y)];a6(u,y);var h=[0,[0,z,g],A,k];continue}break}if(R){var F=L[3],t0=L[2],$=L[1],f0=Fx(F,w0(f)),c0=u?3:1;return u0(f,c0),[0,u,t0,$,K1([0,o],[0,mx(f)],f0,0)]}}var v0=rS0(y,x,x,x,0,0,0,0,I);a6(u,y);var h=[0,[0,v0,g],A,k]}},t)}),C0(AO,function(x){if(v1(x,41))for(var r=0;;){var e=[0,l(fm,x),r],t=W(x);if(typeof t=="number"&&t===9){u0(x,9);var r=e;continue}var u=kB(x,gx(e));break}else var u=0;return[0,u,oe(im,0,0,0,x)]}),C0(Mo,function(x){var r=_2(x),e=r[2],t=e[1],u=r[1],i=e[2];return nO(t)&&ex(x,[0,u,Uc]),[0,u,[0,t,i]]}),C0(WB,function(x){return a0(0,function(r){var e=l(Mo,r),t=W(r),u=0;if(typeof t=="number")if(t===41)var i=1,f=i,o=[1,a0(0,function(a){return $0(a),l(Gr,a)},r)];else if(t===86)var f=0,o=[1,l(u3,r)];else u=1;else u=1;if(u)var f=0,o=[0,wn(r)];return[0,e,o,f]},x)});var qB=function(x,r){var e=cB(x,r);if(e)var t=e;else{var u=0;if(typeof r=="number"&&1>=r+MN>>>0){var i=1;u=1}if(!u)var i=0;if(!i){var f=0;if(typeof r=="number")switch(r){case 15:case 29:case 30:case 31:case 41:case 42:case 46:case 53:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 124:case 125:case 126:f=1;break}else switch(r[0]){case 4:if(nO(r[3]))return 1;break;case 11:f=1;break}return f?1:0}var t=i}return t};C0($v,function(x){if(W(x)!==98)return 0;1-T1(x)&&Bx(x,_1);var r=a0(0,function(t){var u=w0(t);u0(t,98);for(var i=0,f=0;;){if(qB(t,W(t)))var o=Qd(0,function(J){return function(e0){var i0=bd(0,Co0,e0),j=l(WB,e0),Y=j[2],z=Y[3],F=Y[2],t0=Y[1],$=j[1],f0=W(e0),c0=0;if(typeof f0=="number"&&f0===82){$0(e0);var v0=1,s0=[0,l(Gr,e0)];c0=1}if(!c0){J&&ex(e0,[0,$,56]);var v0=J,s0=0}return[0,[0,t0,F,z,i0,s0],v0]}}(i),t),a=o[2],y=[0,o[1],f];else var a=i,y=f;var h=W(t),k=0;if(typeof h=="number"){var A=h+yz|0;if(14>>0){if(A===-90){$0(t);var i=a,f=y;continue}}else if(12>>0){var g=gx(y);k=1}}if(!k){var I=0;if(typeof h=="number")switch(h){case 4:case 82:I=2;break}else if(h[0]===4){var C=h[3],R=0;if(Bd(C))R=1;else{var L=0;if(N(C,_v)&&N(C,U2)){var U=0;L=1}if(!L)var U=1;if(U)R=1;else if(N(C,cl))(!N(C,dv)||!N(C,bu))&&(I=2);else if(t[28][2]){var B=1;I=1}}if(R){var B=1;I=1}}switch(I){case 0:var B=0;break;case 2:var B=1;break}if(!B){if(qB(t,h)){Hs(t,9);var i=a,f=y;continue}u0(t,9);var i=a,f=y;continue}Hs(t,99);var g=gx(y)}var X=w0(t);return Vd(t,99),[0,g,K1([0,u],[0,mx(t)],X,0)]}},x),e=r[1];return r[2][1]||ex(x,[0,e,55]),[0,r]}),C0(gO,function(x){return W(x)===98?[0,a0(0,function(r){var e=w0(r);u0(r,98);for(var t=Bv(0,r),u=0;;){var i=W(t);if(typeof i=="number"){var f=0;if(i!==99&&Er!==i&&(f=1),!f){var o=gx(u),a=w0(t);return u0(t,99),[0,o,K1([0,e],[0,mx(t)],a,0)]}}var y=[0,l(Gr,t),u];W(t)!==99&&u0(t,9);var u=y}},x)]:0}),C0(fm,function(x){return p(NO,x,l(Mo,x))}),C0(NO,function(x,r){function e(t){for(var u=[0,r[1],[0,r]];;){var i=u[2],f=u[1];if(W(t)===10&&Xd(1,t)){var o=a0([0,f],function(A){return function(g){return u0(g,10),[0,A,l(Mo,g)]}}(i),t),a=o[1],u=[0,a,[1,[0,a,o[2]]]];continue}if(W(t)===98)var y=I1(t)[2],h=p(y,i,function(k,A){return p(qx(k,-860373976,60),k,A)});else var h=i;return[0,h,l(gO,t),0]}}return a0([0,r[1]],e,x)}),C0(VB,function(x,r){var e=p(NO,x,r);return[0,e[1],[19,e[2]]]}),C0(ZB,function(x){var r=W(x);return typeof r=="number"&&r===86?l(NB,x):[0,wn(x)]}),C0($B,function(x){var r=W(x);return typeof r=="number"&&r===86?[1,l(u3,x)]:[0,wn(x)]}),C0(IO,function(x){var r=W(x);return typeof r!="number"&&r[0]===4&&!N(r[3],$1)?(1-T1(x)&&Bx(x,_1),$0(x),[1,a0(0,function(e){return l(Gr,e)},x)]):[0,wn(x)]}),C0(FB,function(x,r,e){var t=x[2],u=x[1];function i(Q){return g2(Q,m0([0,r],[0,e],0))}switch(t[0]){case 0:var I0=[0,i(t[1])];break;case 1:var I0=[1,i(t[1])];break;case 2:var I0=[2,i(t[1])];break;case 3:var I0=[3,i(t[1])];break;case 4:var I0=[4,i(t[1])];break;case 5:var I0=[5,i(t[1])];break;case 6:var I0=[6,i(t[1])];break;case 7:var I0=[7,i(t[1])];break;case 8:var f=i(t[2]),I0=[8,t[1],f];break;case 9:var I0=[9,i(t[1])];break;case 10:var I0=[10,i(t[1])];break;case 11:var o=t[1],a=i(o[2]),I0=[11,[0,o[1],a]];break;case 12:var y=t[1],h=i(y[4]),I0=[12,[0,y[1],y[2],y[3],h]];break;case 13:var k=t[1],A=i(k[4]),I0=[13,[0,k[1],k[2],k[3],A]];break;case 14:var g=t[1],I=g[4],C=JR(I,m0([0,r],[0,e],0)),I0=[14,[0,g[1],g[2],g[3],C]];break;case 15:var R=t[1],L=i(R[3]),I0=[15,[0,R[1],R[2],L]];break;case 16:var U=t[1],B=i(U[2]),I0=[16,[0,U[1],B]];break;case 17:var X=t[1],J=i(X[5]),I0=[17,[0,X[1],X[2],X[3],X[4],J]];break;case 18:var e0=t[1],i0=i(e0[2]),I0=[18,[0,e0[1],i0]];break;case 19:var j=t[1],Y=i(j[3]),I0=[19,[0,j[1],j[2],Y]];break;case 20:var z=t[1],F=i(z[3]),I0=[20,[0,z[1],z[2],F]];break;case 21:var t0=t[1],$=t0[1],f0=t0[2],c0=i($[3]),I0=[21,[0,[0,$[1],$[2],c0],f0]];break;case 22:var v0=t[1],s0=i(v0[2]),I0=[22,[0,v0[1],s0]];break;case 23:var o0=t[1],E0=i(o0[2]),I0=[23,[0,o0[1],E0]];break;case 24:var k0=t[1],M0=i(k0[2]),I0=[24,[0,k0[1],M0]];break;case 25:var D0=t[1],cx=i(D0[2]),I0=[25,[0,D0[1],cx]];break;case 26:var g0=t[1],Z0=i(g0[2]),I0=[26,[0,g0[1],Z0]];break;case 27:var n0=t[1],nx=i(n0[2]),I0=[27,[0,n0[1],nx]];break;case 28:var xx=t[1],yx=i(xx[3]),I0=[28,[0,xx[1],xx[2],yx]];break;case 29:var px=t[1],Tx=i(px[3]),I0=[29,[0,px[1],px[2],Tx]];break;case 30:var O0=t[1],P0=i(O0[3]),I0=[30,[0,O0[1],O0[2],P0]];break;case 31:var N0=t[1],J0=i(N0[2]),I0=[31,[0,N0[1],J0]];break;case 32:var I0=[32,i(t[1])];break;case 33:var I0=[33,i(t[1])];break;default:var I0=[34,i(t[1])]}return[0,u,I0]});var GB=function(x,r){if(W(x)!==4)return[0,0,m0([0,r],[0,mx(x)],0)];var e=Fx(r,w0(x));u0(x,4),J1(x,0);var t=l(lx[9],x);return W1(x),u0(x,5),[0,[0,t],m0([0,e],[0,mx(x)],0)]},eS0=function(x){var r=w0(x);return u0(x,66),GB(x,r)},tS0=0,bB=function(x){var r=Bv(0,x),e=W(r);return typeof e=="number"&&e===66?[0,a0(tS0,eS0,r)]:0},nS0=function(x){var r=W(x);if(typeof r=="number"&&r===86){1-T1(x)&&Bx(x,_1);var e=wn(x),t=Nx(x);u0(x,86);var u=W(x);if(typeof u=="number"&&u===66){var i=Bv(0,x);return[0,[0,e],[0,a0([0,t],function(a){var y=w0(a);return u0(a,66),GB(a,y)},i)]]}if(Hd(x))return[0,[2,p(EO,x,t)],0];var f=[1,a0([0,t],Gr,x)],o=W(x)===66?t3(x,f):f;return[0,o,bB(x)]}return[0,[0,wn(x)],0]},ye=function(x,r){var e=Qs(1,r);J1(e,1);var t=l(x,e);return W1(e),t},qs=function(x){return ye(Gr,x)},us=function(x){return ye(Mo,x)},Ve=function(x){return ye($v,x)},xX=function(x){return ye(gO,x)},Fv=function(x){return ye(u3,x)},rX=function(x){return ye($B,x)},PO=function(x){return ye(ZB,x)},CO=function(x){return ye(nS0,x)},eX=function(x){return ye(fm,x)},tX=function(x){return ye(IO,x)},uS0=EB(lx),Do=function(x,r){var e=r[2],t=r[1],u=x[1];switch(e[0]){case 0:return b1(iS0,x,e[1][1]);case 1:return b1(fS0,x,e[1][1]);case 2:var i=e[1][1],f=i[2][1],o=x[2],a=x[1],y=i[1];p(h2[3],f,o)&&ex(a,[0,y,81]);var h=i[2][1],k=i[1];return Xv(h)&&vt(a,[0,k,82]),r3(h)&&vt(a,[0,k,84]),[0,a,p(h2[4],f,o)];default:return ex(u,[0,t,24]),x}},iS0=function(x){return function(r){return r[0]===0?Do(x,r[1][2][2]):Do(x,r[1][2][1])}},fS0=function(x){return function(r){switch(r[0]){case 0:return Do(x,r[1][2][1]);case 1:return Do(x,r[1][2][1]);default:return x}}},nX=function(x,r){var e=r[2],t=e[3],u=e[2],i=[0,x,h2[1]],f=b1(function(o,a){return Do(o,a[2][1])},i,u);return t&&Do(f,t[1][2][1]),0},uX=function(x,r,e,t){var u=x[5],i=t[0]===0?Vv(t[1]):0,f=Qs(u?0:r,x),o=r||u||1-i;if(!o)return o;if(e){var a=e[1],y=a[2][1],h=a[1];Xv(y)&&vt(f,[0,h,74]),r3(y)&&vt(f,[0,h,84])}if(t[0]===0)return nX(f,t[1]);var k=t[1][2],A=k[2],g=k[1],I=[0,Ja,[0,[0,Hc(function(R){var L=R[2],U=L[1],B=L[4],X=L[3],J=L[2],e0=U[0]===0?[3,U[1]]:[0,[0,Ja,U[1][2]]];return[0,[0,Ja,[0,e0,J,X,B]]]},g),[0,Ja],0]]],C=Do([0,f,h2[1]],I);return A&&Do(C,A[1][2][1]),0},i3=function(x,r,e,t){return uX(x,r,e,[0,t])},iX=function(x,r){if(r!==12)return 0;var e=w0(x),t=a0(0,function(f){return u0(f,12),p(lx[18],f,82)},x),u=t[2],i=t[1];return[0,[0,i,u,m0([0,e],0,0)]]},RO=function x(r,e){return x.fun(r,e)},cS0=function(x){W(x)===21&&Bx(x,93);var r=p(lx[18],x,82),e=W(x)===82?(u0(x,82),[0,l(lx[10],x)]):0;return[0,r,e]},sS0=0;C0(RO,function(x,r){var e=W(x);if(typeof e=="number"){var t=e-5|0,u=0;if(7>>0?fn===t&&(u=1):5>>0&&(u=1),u){var i=iX(x,e),f=Fy(function(a){return[0,a[1],[0,a[2],a[3]]]},i);return W(x)!==5&&Bx(x,65),[0,gx(r),f]}}var o=a0(sS0,cS0,x);return W(x)!==5&&u0(x,9),p(RO,x,[0,o,r])});var f3=function(x,r){function e(u){var i=rB(1,GR(r,bR(x,u))),f=w0(i);u0(i,4);var o=0;if(T1(i)&&W(i)===21){var a=w0(i),y=a0(0,function(B){return u0(B,21),W(B)===86?[0,Fv(B)]:(Bx(B,89),0)},i),h=y[2],k=y[1];if(h){var A=h[1];W(i)===9&&$0(i);var g=[0,[0,k,[0,A,m0([0,a],0,0)]]]}else var g=0}else o=1;if(o)var g=0;var I=p(RO,i,0),C=I[2],R=I[1],L=w0(i);return u0(i,5),[0,g,R,C,K1([0,f],[0,mx(i)],L,0)]}var t=0;return function(u){return a0(t,e,u)}},fX=function(x,r,e,t,u){var i=fB(x,r,e,u);return p(lx[16],t,i)},y6=function(x,r,e,t,u){var i=fX(x,r,e,t,u);return[0,[0,i[1]],i[2]]},c3=function(x){if(_1!==W(x))return Bv0;var r=w0(x);return $0(x),[0,1,r]},om=function(x){if(W(x)===64&&!n6(1,x)){var r=w0(x);return $0(x),[0,1,r]}return Yv0},oS0=function(x){var r=om(x),e=r[1],t=r[2],u=a0(0,function(R){var L=w0(R);u0(R,15);var U=c3(R),B=U[1],X=Ll([0,t,[0,L,[0,U[2],0]]]),J=R[7],e0=W(R),i0=0;if(J&&typeof e0=="number"){if(e0===4){var F=0,t0=0;i0=1}else if(e0===98){var j=xe(R,Ve(R)),Y=W(R)===4?0:[0,Tn(R,p(lx[13],jv0,R))],F=Y,t0=j;i0=1}}if(!i0)var z=es(R)?Tn(R,p(lx[13],zv0,R)):(lB(R,Kv0),[0,Nx(R),Jv0]),F=[0,z],t0=xe(R,Ve(R));var $=l(f3(e,B),R),f0=W(R)===86?$:c6(R,$),c0=CO(R),v0=c0[2],s0=c0[1];if(v0)var o0=mB(R,v0),E0=s0;else var o0=v0,E0=t3(R,s0);return[0,B,t0,F,f0,E0,o0,X]},x),i=u[2],f=i[4],o=i[3],a=i[1],y=i[7],h=i[6],k=i[5],A=i[2],g=u[1],I=y6(x,e,a,0,Vv(f)),C=I[1];return i3(x,I[2],o,f),[26,[0,o,f,C,e,a,h,k,A,m0([0,y],0,0),g]]},vS0=0,d6=function(x){return a0(vS0,oS0,x)},OO=function(x,r){var e=w0(r);u0(r,x);var t=r[28][2];if(t)var u=x===27?1:0,i=u&&(W(r)===48?1:0);else var i=t;i&&Bx(r,23);for(var f=0,o=0;;){var a=a0(0,function(I){var C=p(lx[18],I,85);if(v1(I,82))var R=0,L=[0,l(lx[10],I)];else{var U=C[1];if(C[2][0]===2)var R=0,L=0;else var R=[0,[0,U,62]],L=0}return[0,[0,C,L],R]},r),y=a[2],h=y[2],k=[0,[0,a[1],y[1]],f],A=h?[0,h[1],o]:o;if(v1(r,9)){var f=k,o=A;continue}var g=gx(A);return[0,gx(k),e,g]}},aS0=24,cX=function(x){return OO(aS0,x)},sX=function(x){var r=OO(27,xO(1,x)),e=r[1],t=r[3],u=r[2];return[0,e,u,gx(b1(function(i,f){return f[2][2]?i:[0,[0,f[1],61],i]},t,e))]},oX=function(x){return OO(28,xO(1,x))},vX=function(x){function r(t){return[19,p(uS0[1],x,t)]}var e=0;return function(t){return a0(e,r,t)}},LO=function x(r,e){return x.fun(r,e)},lS0=function(x){var r=w0(x),e=W(x),t=hr(1,x),u=0;if(typeof e!="number"&&e[0]===2&&typeof t!="number"&&t[0]===4){var i=e[1],f=i[4],o=i[3],a=i[2],y=i[1];if(!N(t[3],Ct)){f&&Xt(x,80),u0(x,[2,[0,y,a,o,f]]);var h=[1,[0,y,[0,a,o,m0([0,r],[0,mx(x)],0)]]];ts(x,Mv0);var k=0,A=p(lx[18],x,82),g=h;u=1}}if(!u){var I=0;if(typeof t!="number"&&t[0]===4&&!N(t[3],Ct)){var C=[0,_2(x)];ts(x,Dv0);var k=0,A=p(lx[18],x,82),g=C;I=1}if(!I)var R=G0(lx[14],x,0,82),L=R[2],k=1,A=[0,R[1],[2,L]],g=[0,L[1]]}var U=W(x)===82?(u0(x,82),[0,l(lx[10],x)]):0;return[0,g,A,U,k]},pS0=0;C0(LO,function(x,r){var e=W(x);if(typeof e=="number"){var t=e-5|0,u=0;if(7>>0?fn===t&&(u=1):5>>0&&(u=1),u){var i=iX(x,e),f=Fy(function(a){return[0,a[1],[0,a[2],a[3]]]},i);return W(x)!==5&&Bx(x,65),[0,gx(r),f]}}var o=a0(pS0,lS0,x);return W(x)!==5&&u0(x,9),p(LO,x,[0,o,r])});var yS0=function(x){var r=rB(1,x),e=w0(r);u0(r,4);var t=p(LO,r,0),u=t[2],i=t[1],f=w0(r);return u0(r,5),[0,i,u,K1([0,e],[0,mx(r)],f,0)]},dS0=0,mS0=function(x){var r=a0(0,function(k){var A=w0(k);ts(k,Lv0);var g=Tn(k,p(lx[13],Uv0,k)),I=xe(k,Ve(k)),C=a0(dS0,yS0,k);if(fO(k))var L=C;else var R=I1(k)[2],L=p(R,C,function(U,B){return p(qx(U,842685896,10),U,B)});return[0,I,g,L,sO(k,tX(k)),A]},x),e=r[2],t=e[3],u=e[2],i=e[5],f=e[4],o=e[1],a=r[1],y=fX(x,0,0,0,0),h=y[1];return uX(x,y[2],[0,u],[1,t]),[3,[0,u,o,t,f,h,m0([0,i],0,0),a]]},kS0=0,UO=function(x){return a0(kS0,mS0,x)},v2=function(x,r){if(r[0]===0)return r[1];var e=r[2][1],t=r[1];return S2(function(u){return ex(x,u)},e),t},MO=function(x,r,e){var t=x?x[1]:40;if(e[0]===0)var u=e[1];else{var i=e[2][2],f=e[1];S2(function(k){return ex(r,k)},i);var u=f}1-l(lx[23],u)&&ex(r,[0,u[1],t]);var o=u[2],a=0;if(o[0]===8){var y=u[1];Xv(o[1][2][1])&&(vt(r,[0,y,75]),a=1)}return p(lx[19],r,u)},DO=function(x,r){var e=Qc(x[2],r[2]);return[0,Qc(x[1],r[1]),e]},aX=function(x){var r=gx(x[2]);return[0,gx(x[1]),r]},lX=function(x,r){var e=x[0]===0?x[1]:x[1]-1|0,t=(r[0]===0,r[1]);return t<=e?1:0},s3=function x(r){return x.fun(r)},Wt=function x(r){return x.fun(r)},pX=function x(r){return x.fun(r)},jO=function x(r){return x.fun(r)},yX=function x(r){return x.fun(r)},zO=function x(r){return x.fun(r)},dX=function x(r){return x.fun(r)},mX=function x(r){return x.fun(r)},m6=function x(r){return x.fun(r)},KO=function x(r){return x.fun(r)},JO=function x(r){return x.fun(r)},YO=function x(r){return x.fun(r)},kX=function x(r){return x.fun(r)},BO=function x(r){return x.fun(r)},vm=function x(r){return x.fun(r)},XO=function x(r){return x.fun(r)},hX=function x(r){return x.fun(r)},Qv=function x(r,e,t,u,i){return x.fun(r,e,t,u,i)},WO=function x(r,e,t,u){return x.fun(r,e,t,u)},VO=function x(r){return x.fun(r)},am=function x(r){return x.fun(r)},ZO=function x(r){return x.fun(r)},$O=function x(r,e,t,u,i){return x.fun(r,e,t,u,i)},_X=function x(r,e,t,u){return x.fun(r,e,t,u)},FO=function x(r){return x.fun(r)},lm=function x(r,e,t){return x.fun(r,e,t)},wX=function x(r){return x.fun(r)},pm=function x(r,e,t){return x.fun(r,e,t)},QO=function x(r){return x.fun(r)},TX=function x(r){return x.fun(r)},HO=function x(r,e){return x.fun(r,e)},qO=function x(r,e,t,u){return x.fun(r,e,t,u)},SX=function x(r){return x.fun(r)},GO=function x(r,e,t){return x.fun(r,e,t)},EX=function x(r){return x.fun(r)},AX=function x(r){return x.fun(r)},bO=function x(r){return x.fun(r)},ym=function x(r,e,t){return x.fun(r,e,t)},hS0=function(x){var r=x[2];switch(r[0]){case 21:var e=r[1],t=e[1][2][1];if(N(t,R2)){if(!N(t,iv)&&!N(e[2][2][1],CS))return 0}else if(!N(e[2][2][1],pl))return 0;break;case 0:case 8:case 20:case 23:break;default:return 0}return 1},xL=function(x){var r=Nx(x),e=l(zO,x),t=l(yX,x);if(!t)return e;var u=t[1];return[0,a0([0,r],function(i){var f=MO(0,i,e);return[2,[0,u,f,l(Wt,i),0]]},x)]},_S0=function(x,r){if(typeof r=="number"&&r===84)return 0;throw q0(ns,1)},gX=function(x){var r=Yd(_S0,x),e=xL(r),t=W(r);if(typeof t=="number"){if(t===11)throw q0(ns,1);if(t===86){var u=uB(r),i=0;if(u){var f=u[1];if(typeof f=="number"&&f===5){var o=1;i=1}}if(!i)var o=0;if(o)throw q0(ns,1)}}if(!es(r))return e;if(e[0]===0){var a=e[1][2];if(a[0]===8&&!N(a[1][2][1],ko)&&!b2(r))throw q0(ns,1)}return e};C0(s3,function(x){var r=es(x);if(r){var e=W(x),t=0;if(typeof e=="number"){if(e===58){if(x[18]){var u=0;t=1}}else if(e===65&&x[19]){var u=0;t=1}}if(!t)var u=1;var i=u}else var i=r;var f=W(x),o=0;if(typeof f=="number"){var a=0;if(22<=f)if(f===58){if(x[18])return[0,l(pX,x)];a=1}else f!==98&&(a=1);else f!==4&&21>f&&(a=1);a||(o=1)}if(!o&&!i)return xL(x);var y=0;if(f===64&&T1(x)&&hr(1,x)===98){var h=gX,k=bO;y=1}if(!y)var h=bO,k=gX;var A=cO(x,k);if(A)return A[1];var g=cO(x,h);return g?g[1]:xL(x)}),C0(Wt,function(x){return v2(x,l(s3,x))}),C0(pX,function(x){return a0(0,function(r){r[10]&&Bx(r,Ns);var e=w0(r),t=Nx(r);u0(r,58);var u=Nx(r);if(e3(r))var i=0,f=0;else{var o=v1(r,_1),a=W(r),y=0;if(typeof a=="number"){var h=0;if(a===86)h=1;else if(10>a)switch(a){case 0:case 2:case 3:case 4:case 6:break;default:h=1}if(h){var k=0;y=1}}if(!y)var k=1;var A=0;if(!o&&!k){var g=0;A=1}if(!A)var g=[0,l(Wt,r)];var i=o,f=g}var I=f?0:mx(r),C=i1(t,u);return[35,[0,f,m0([0,e],[0,I],0),i,C]]},x)}),C0(jO,function(x){var r=x[2];switch(r[0]){case 21:var e=r[1],t=e[1][2][1];if(N(t,R2)){if(!N(t,iv)&&!N(e[2][2][1],CS))return 0}else if(!N(e[2][2][1],pl))return 0;break;case 8:case 20:break;default:return 0}return 1}),C0(yX,function(x){var r=W(x),e=0;if(typeof r=="number"){var t=r-67|0;if(15>=t>>>0){switch(t){case 0:var u=t30;break;case 1:var u=n30;break;case 2:var u=u30;break;case 3:var u=i30;break;case 4:var u=f30;break;case 5:var u=c30;break;case 6:var u=s30;break;case 7:var u=o30;break;case 8:var u=v30;break;case 9:var u=a30;break;case 10:var u=l30;break;case 11:var u=p30;break;case 12:var u=y30;break;case 13:var u=d30;break;case 14:var u=m30;break;default:var u=k30}var i=u;e=1}}if(!e)var i=0;return i!==0&&$0(x),i}),C0(zO,function(x){var r=Nx(x),e=l(mX,x);if(W(x)!==85)return e;$0(x);var t=l(Wt,e6(0,x));u0(x,86);var u=a0([0,r],Wt,x),i=u[2],f=u[1];return[0,[0,f,[6,[0,v2(x,e),t,i,0]]]]}),C0(dX,function(x){return v2(x,l(zO,x))});var rL=function(x,r,e,t,u){var i=v2(x,r);return[0,[0,u,[19,[0,t,i,v2(x,e),0]]]]},eL=function(x,r,e){for(var t=r,u=e;;){var i=W(x);if(typeof i=="number"&&i===88){$0(x);var f=a0(0,m6,x),o=f[2],a=i1(u,f[1]),y=tL(0,x,rL(x,t,o,1,a),a),t=y[2],u=y[1];continue}return[0,u,t]}},NX=function(x,r,e){for(var t=r,u=e;;){var i=W(x);if(typeof i=="number"&&i===87){$0(x);var f=a0(0,m6,x),o=eL(x,f[2],f[1]),a=o[2],y=i1(u,o[1]),h=tL(0,x,rL(x,t,a,0,y),y),t=h[2],u=h[1];continue}return[0,u,t]}},tL=function(x,r,e,t){for(var u=x,i=e,f=t;;){var o=W(r);if(typeof o=="number"&&o===84){1-u&&Bx(r,e30),u0(r,84);var a=a0(0,m6,r),y=a[2],h=a[1],k=W(r),A=0;if(typeof k=="number"&&1>=k-87>>>0){Bx(r,[19,VR(k)]);var g=eL(r,y,h),I=NX(r,g[2],g[1]),C=I[2],R=I[1];A=1}if(!A)var C=y,R=h;var L=i1(f,R),u=1,i=rL(r,i,C,2,L),f=L;continue}return[0,f,i]}};C0(mX,function(x){var r=a0(0,m6,x),e=r[2],t=r[1],u=W(x),i=0;if(typeof u=="number"&&u===84){var o=tL(1,x,e,t);i=1}if(!i)var f=eL(x,e,t),o=NX(x,f[2],f[1]);return o[2]});var nL=function(x,r,e,t){return[0,t,[3,[0,e,x,r,0]]]},wS0=function(x,r){var e=r;x:for(;;){var t=a0(0,function(b0){var hx=l(KO,b0)!==0?1:0;return[0,hx,l(JO,e6(0,b0))]},x),u=t[2],i=u[2],f=u[1],o=t[1],a=W(x);if(a===98){var y=0;i[0]===0&&i[1][2][0]===10&&(Bx(x,2),y=1)}var h=0;if(typeof a!="number"&&a[0]===4){var k=a[3],A=0;if((!N(k,Ct)||!N(k,XD))&&(A=1),A&&T1(x)){$0(x);var g=v2(x,i),I=0;if(e){var C=e[1],R=C[2],L=e[2],U=C[3],B=R[1],X=C[1];if(lX(R[2],La0)){var J=nL(X,g,B,i1(U,o)),e0=L;I=1}}if(!I)var J=g,e0=e;var i0=J[1];if(Nr(k,XD))var j=qs(x),F=j[1],t0=[1,j];else if(W(x)===27){var Y=Nx(x);$0(x);var F=Y,t0=0}else var z=qs(x),F=z[1],t0=[0,z];var $=[0,[0,i1(i0,F),[32,[0,J,t0,0]]]],f0=e0;h=1}}if(!h)var $=i,f0=e;var c0=W(x),v0=0;if(typeof c0=="number"){var s0=c0-17|0,o0=0;if(1>>0)if(72<=s0){var E0=0;switch(s0-72|0){case 0:var k0=Ua0;break;case 1:var k0=Ma0;break;case 2:var k0=Da0;break;case 3:var k0=ja0;break;case 4:var k0=za0;break;case 5:var k0=Ka0;break;case 6:var k0=Ja0;break;case 7:var k0=Ya0;break;case 8:var k0=Ba0;break;case 9:var k0=Xa0;break;case 10:var k0=Wa0;break;case 11:var k0=Va0;break;case 12:var k0=Za0;break;case 13:var k0=$a0;break;case 14:var k0=Fa0;break;case 15:var k0=Qa0;break;case 16:var k0=Ha0;break;case 17:var k0=qa0;break;case 18:var k0=Ga0;break;case 19:var k0=ba0;break;default:o0=1,E0=1}if(!E0)var M0=k0}else o0=1;else var M0=s0?x30:x[12]?0:r30;if(!o0){var D0=M0;v0=1}}if(!v0)var D0=0;if(D0!==0&&$0(x),!f0&&!D0)return $;if(!D0)for(var cx=v2(x,$),g0=o,Z0=f0;;){if(!Z0)return[0,cx];var n0=Z0[1],nx=Z0[2],xx=n0[2][1],yx=n0[1],px=i1(n0[3],g0),cx=nL(yx,cx,xx,px),g0=px,Z0=nx}var Tx=D0[1],O0=Tx[1],P0=Tx[2],N0=f&&(O0===14?1:0);N0&&ex(x,[0,o,41]);for(var J0=v2(x,$),I0=[0,O0,P0],Q=o,G=f0;;){var V=I0[2],l0=I0[1];if(G){var d0=G[1],A0=d0[2],M=G[2],L0=d0[3],V0=A0[1],B0=d0[1];if(lX(A0[2],V)){var vx=i1(L0,Q),J0=nL(B0,J0,V0,vx),I0=[0,l0,V],Q=vx,G=M;continue}}var e=[0,[0,J0,[0,l0,V],Q],G];continue x}}};C0(m6,function(x){return wS0(x,0)}),C0(KO,function(x){var r=W(x);if(typeof r=="number"){if(48<=r){if(tt<=r){if(ut>r)switch(r+MN|0){case 0:return Aa0;case 1:return ga0;case 6:return Na0;case 7:return Ia0}}else if(r===65&&x[19])return x[10]&&Bx(x,7),Pa0}else if(45<=r)switch(r+dE|0){case 0:return Ca0;case 1:return Ra0;default:return Oa0}}return 0}),C0(JO,function(x){var r=Nx(x),e=w0(x),t=l(KO,x);if(t){var u=t[1];$0(x);var i=a0([0,r],YO,x),f=i[2],o=i[1],a=0;if(u===6){var y=f[2],h=0;switch(y[0]){case 8:vt(x,[0,o,72]),h=1;break;case 20:y[1][2][0]===1&&ex(x,[0,o,66]),h=1;break}h&&(a=1)}return[0,[0,o,[33,[0,u,f,m0([0,e],0,0)]]]]}var k=W(x),A=0;if(typeof k=="number")if(ut===k)var g=Ea0;else if(fe===k)var g=Sa0;else A=1;else A=1;if(A)var g=0;if(!g)return l(kX,x);var I=g[1];$0(x);var C=a0([0,r],YO,x),R=C[2],L=C[1];1-l(jO,R)&&ex(x,[0,R[1],40]);var U=R[2],B=0;return U[0]===8&&Xv(U[1][2][1])&&(Xt(x,77),B=1),[0,[0,L,[34,[0,I,R,1,m0([0,e],0,0)]]]]}),C0(YO,function(x){return v2(x,l(JO,x))}),C0(kX,function(x){var r=l(BO,x);if(b2(x))return r;var e=W(x),t=0;if(typeof e=="number")if(ut===e)var u=Ta0;else if(fe===e)var u=wa0;else t=1;else t=1;if(t)var u=0;if(!u)return r;var i=u[1],f=v2(x,r);1-l(jO,f)&&ex(x,[0,f[1],40]);var o=f[2],a=0;o[0]===8&&Xv(o[1][2][1])&&(Xt(x,76),a=1);var y=Nx(x);$0(x);var h=mx(x),k=i1(f[1],y);return[0,[0,k,[34,[0,i,f,0,m0(0,[0,h],0)]]]]}),C0(BO,function(x){var r=Nx(x),e=1-x[17],t=0,u=x[17]===0?x:[0,x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14],x[15],x[16],t,x[18],x[19],x[20],x[21],x[22],x[23],x[24],x[25],x[26],x[27],x[28],x[29],x[30],x[31]],i=W(u),f=0;if(typeof i=="number"){var o=i-44|0;if(7>=o>>>0){var a=0;switch(o){case 0:if(e)var y=[0,l(VO,u)];else a=1;break;case 6:var y=[0,l(hX,u)];break;case 7:var y=[0,l(XO,u)];break;default:a=1}if(!a){var h=y;f=1}}}if(!f)var h=Lo(u)?[0,l(FO,u)]:l(QO,u);return Je(Qv,0,0,u,r,h)}),C0(vm,function(x){return v2(x,l(BO,x))}),C0(XO,function(x){switch(x[22]){case 0:var r=0,e=0;break;case 1:var r=0,e=1;break;default:var r=1,e=1}var t=Nx(x),u=w0(x);u0(x,51);var i=[0,t,[27,[0,m0([0,u],[0,mx(x)],0)]]],f=W(x);if(typeof f=="number"&&11>f)switch(f){case 4:var o=r?i:(ex(x,[0,t,ln]),[0,t,[8,hn(0,[0,t,ka0])]]);return oe(WO,0,x,t,o);case 6:case 10:var a=e?i:(ex(x,[0,t,tt]),[0,t,[8,hn(0,[0,t,_a0])]]);return oe(WO,0,x,t,a)}return e?S1(ha0,x):ex(x,[0,t,tt]),i}),C0(hX,function(x){return a0(0,function(r){var e=w0(r),t=Nx(r);if(u0(r,50),v1(r,10)){var u=hn(0,[0,t,ya0]),i=Nx(r);ts(r,da0);var f=hn(0,[0,i,ma0]);return[21,[0,u,f,m0([0,e],[0,mx(r)],0)]]}var o=w0(r);u0(r,4);var a=G0(GO,[0,o],0,l(Wt,e6(0,r)));return u0(r,5),[9,[0,a,m0([0,e],[0,mx(r)],0)]]},x)}),C0(Qv,function(x,r,e,t,u){var i=x?x[1]:1,f=r?r[1]:0,o=Je($O,[0,i],[0,f],e,t,u),a=uB(e),y=0;if(a){var h=a[1];if(typeof h=="number"&&h===83){var k=1;y=1}}if(!y)var k=0;function A(L){var U=I1(L)[2];function B(X,J){return p(qx(X,an,61),X,J)}return p(U,v2(L,o),B)}function g(L,U,B){var X=l(ZO,U),J=X[1],e0=X[2],i0=i1(t,J),j=[0,B,L,[0,J,e0],0],Y=0;if(!k&&!f){var z=[4,j];Y=1}if(!Y)var z=[24,[0,j,i0,k]];var F=f||k;return Je(Qv,[0,i],[0,F],U,t,[0,[0,i0,z]])}if(e[13])return o;var I=W(e);if(typeof I=="number"){var C=I-98|0;if(2>>0){if(C===-94)return g(0,e,A(e))}else if(C!==1&&T1(e)){var R=Yd(function(L,U){throw q0(ns,1)},e);return Zd(R,o,function(L){var U=A(L);return g(l(am,L),L,U)})}}return o}),C0(WO,function(x,r,e,t){var u=x?x[1]:1;return v2(r,Je(Qv,[0,u],0,r,e,[0,t]))}),C0(VO,function(x){return a0(0,function(r){var e=Nx(r),t=w0(r);if(u0(r,44),r[11]&&W(r)===10){var u=mx(r);$0(r);var i=hn(m0([0,t],[0,u],0),[0,e,aa0]),f=W(r);return typeof f!="number"&&f[0]===4&&!N(f[3],CS)?[21,[0,i,p(lx[13],0,r),0]]:(S1(la0,r),$0(r),[8,i])}var o=Nx(r),a=W(r),y=0;if(typeof a=="number")if(a===44)var h=l(VO,r);else if(a===51)var h=l(XO,eO(1,r));else y=1;else y=1;if(y)var h=Lo(r)?l(FO,r):l(TX,r);var k=oe(_X,pa0,eO(1,r),o,h),A=W(r),g=0;if(typeof A!="number"&&A[0]===3){var I=oe(qO,r,o,k,A[1]);g=1}if(!g)var I=k;var C=0;if(W(r)!==4){var R=0;if((!T1(r)||W(r)!==98)&&(R=1),R){var U=I;C=1}}if(!C)var L=I1(r)[2],U=p(L,I,function(i0,j){return p(qx(i0,an,62),i0,j)});var B=T1(r)?Zd(Yd(function(i0,j){throw q0(ns,1)},r),0,am):0,X=W(r),J=0;if(typeof X=="number"&&X===4){var e0=[0,l(ZO,r)];J=1}if(!J)var e0=0;return[22,[0,U,B,e0,m0([0,t],0,0)]]},x)});var TS0=function(x){var r=w0(x);u0(x,98);for(var e=0;;){var t=W(x);if(typeof t=="number"){var u=0;if(t!==99&&Er!==t&&(u=1),!u){var i=gx(e),f=w0(x);u0(x,99);var o=W(x)===4?I1(x)[1]:mx(x);return[0,i,K1([0,r],[0,o],f,0)]}}var a=W(x),y=0;if(typeof a!="number"&&a[0]===4&&!N(a[2],ga)){var h=Nx(x),k=w0(x);ts(x,va0);var A=[1,[0,h,[0,m0([0,k],[0,mx(x)],0)]]];y=1}if(!y)var A=[0,qs(x)];var g=[0,A,e];W(x)!==99&&u0(x,9);var e=g}};C0(am,function(x){J1(x,1);var r=W(x)===98?[0,a0(0,TS0,x)]:0;return W1(x),r});var SS0=function(x){var r=w0(x);u0(x,12);var e=l(Wt,x);return[0,e,m0([0,r],0,0)]};C0(ZO,function(x){return a0(0,function(r){var e=w0(r);u0(r,4);for(var t=0;;){var u=W(r);if(typeof u=="number"){var i=0;if(u!==5&&Er!==u&&(i=1),!i){var f=gx(t),o=w0(r);return u0(r,5),[0,f,K1([0,e],[0,mx(r)],o,0)]}}var a=W(r),y=0;if(typeof a=="number"&&a===12){var h=[1,a0(0,SS0,r)];y=1}if(!y)var h=[0,l(Wt,r)];var k=[0,h,t];W(r)!==5&&u0(r,9);var t=k}},x)});var IX=function(x,r,e,t,u,i){var f=x?x[1]:1,o=r?r[1]:0,a=e?e[1]:0,y=eO(0,t),h=l(lx[7],y),k=Nx(t);u0(t,7);var A=mx(t),g=i1(u,k),I=m0(0,[0,A],0),C=[0,v2(t,i),[2,h],I],R=o?[25,[0,C,g,a]]:[20,C];return Je(Qv,[0,f],[0,o],t,u,[0,[0,g,R]])},PX=function(x,r,e,t,u,i){var f=x?x[1]:1,o=r?r[1]:0,a=e?e[1]:0,y=W(t),h=0;if(typeof y=="number"&&y===14){var k=wB(t),A=k[1],g=t[30][1],I=k[2][1];if(g){var C=g[1];t[30][1]=[0,[0,C[1],[0,[0,I,A],C[2]]],g[2]]}else ex(t,[0,A,67]);var L=[1,k],U=A;h=1}if(!h)var R=_2(t),L=[0,R],U=R[1];var B=i1(u,U),X=0;i[0]===0&&i[1][2][0]===27&&L[0]===1&&(ex(t,[0,B,86]),X=1);var J=[0,v2(t,i),L,0],e0=o?[25,[0,J,B,a]]:[20,J];return Je(Qv,[0,f],[0,o],t,u,[0,[0,B,e0]])};C0($O,function(x,r,e,t,u){var i=x?x[1]:1,f=r?r[1]:0,o=W(e);if(typeof o=="number")switch(o){case 6:return $0(e),IX([0,i],[0,f],0,e,t,u);case 10:return $0(e),PX([0,i],[0,f],0,e,t,u);case 83:1-i&&Bx(e,63),u0(e,83);var a=W(e);if(typeof a=="number")switch(a){case 4:return u;case 6:return $0(e),IX([0,i],fa0,ia0,e,t,u);case 98:if(T1(e))return u;break}else if(a[0]===3)return Bx(e,64),u;return PX([0,i],sa0,ca0,e,t,u)}else if(o[0]===3){var y=o[1];return f&&Bx(e,64),Je(Qv,oa0,0,e,t,[0,oe(qO,e,t,v2(e,u),y)])}return u}),C0(_X,function(x,r,e,t){var u=x?x[1]:1;return v2(r,Je($O,[0,u],0,r,e,[0,t]))}),C0(FO,function(x){return a0(0,function(r){var e=om(r),t=e[1],u=e[2],i=a0(0,function(L){var U=w0(L);u0(L,15);var B=c3(L),X=B[1],J=Ll([0,u,[0,U,[0,B[2],0]]]);if(W(L)===4)var e0=0,i0=0;else{var j=W(L),Y=0;if(typeof j=="number"&&j===98){var F=0;Y=1}if(!Y)var z=GR(X,bR(t,L)),F=[0,Tn(z,p(lx[13],ua0,z))];var e0=xe(L,Ve(L)),i0=F}var t0=Yv(0,L),$=t||t0[19],f0=l(f3($,X),t0),c0=W(t0)===86?f0:c6(t0,f0),v0=CO(t0),s0=v0[2],o0=v0[1];if(s0)var E0=mB(t0,s0),k0=o0;else var E0=s0,k0=t3(t0,o0);return[0,i0,c0,X,E0,k0,e0,J]},r),f=i[2],o=f[3],a=f[2],y=f[1],h=f[7],k=f[6],A=f[5],g=f[4],I=i[1],C=y6(r,t,o,1,Vv(a)),R=C[1];return i3(r,C[2],y,a),[7,[0,y,a,R,t,o,g,A,k,m0([0,h],0,0),I]]},x)}),C0(lm,function(x,r,e){switch(r){case 1:Xt(x,80);try{var t=By(Sl(Zx(xa0,e))),u=t}catch(A){var i=R1(A);if(i[1]!==mn)throw q0(i,0);var u=Rx(Zx(ra0,e))}break;case 2:Xt(x,79);try{var f=zC(e),u=f}catch(A){var o=R1(A);if(o[1]!==mn)throw q0(o,0);var u=Rx(Zx(ea0,e))}break;case 4:try{var a=zC(e),u=a}catch(A){var y=R1(A);if(y[1]!==mn)throw q0(y,0);var u=Rx(Zx(ta0,e))}break;default:try{var h=By(Sl(e)),u=h}catch(A){var k=R1(A);if(k[1]!==mn)throw q0(k,0);var u=Rx(Zx(na0,e))}}return u0(x,[0,r,e]),u}),C0(wX,function(x){var r=Gx(x),e=0;if(r!==0&&P1===C1(x,r-1|0)){var t=z2(x,0,r-1|0);e=1}if(!e)var t=x;return t}),C0(pm,function(x,r,e){var t=bK(l(wX,e));return u0(x,[1,r,e]),t}),C0(QO,function(x){var r=Nx(x),e=w0(x),t=W(x);if(typeof t=="number")switch(t){case 0:var u=l(lx[12],x);return[1,[0,u[1],[23,u[2]]],u[3]];case 4:return[0,l(SX,x)];case 6:var i=a0(0,EX,x),f=i[2];return[1,[0,i[1],[0,f[1]]],f[2]];case 21:return $0(x),[0,[0,r,[30,[0,m0([0,e],[0,mx(x)],0)]]]];case 29:return $0(x),[0,[0,r,[14,m0([0,e],[0,mx(x)],0)]]];case 40:return[0,l(lx[22],x)];case 98:var o=l(lx[17],x),a=o[2],y=o[1],h=tn<=a[1]?[11,a[2]]:[10,a[2]];return[0,[0,y,h]];case 30:case 31:return $0(x),[0,[0,r,[13,[0,t===31?1:0,m0([0,e],[0,mx(x)],0)]]]];case 74:case 105:return[0,l(AX,x)]}else switch(t[0]){case 0:var k=t[2],A=G0(lm,x,t[1],k);return[0,[0,r,[15,[0,A,k,m0([0,e],[0,mx(x)],0)]]]];case 1:var g=t[2],I=G0(pm,x,t[1],g);return[0,[0,r,[16,[0,I,g,m0([0,e],[0,mx(x)],0)]]]];case 2:var C=t[1],R=C[3],L=C[2],U=C[1];C[4]&&Xt(x,80),$0(x);var B=m0([0,e],[0,mx(x)],0),X=x[28],J=X[6],e0=X[7],i0=0;if(J){var j=J[1];if(qK(j,L))var Y=[18,[0,L,U,Gx(j),0,R,B]];else i0=1}else i0=1;if(i0){var z=0;if(e0){var F=e0[1];if(qK(F,L)){var Y=[18,[0,L,U,Gx(F),1,R,B]];z=1}}if(!z)var Y=[12,[0,L,R,B]]}return[0,[0,U,Y]];case 3:var t0=p(HO,x,t[1]);return[0,[0,t0[1],[29,t0[2]]]];case 4:if(!N(t[3],Zh)&&hr(1,x)===40)return[0,l(lx[22],x)];break}if(es(x)){var $=p(lx[13],0,x);return[0,[0,$[1],[8,$]]]}S1(0,x);var f0=0;return typeof t!="number"&&t[0]===7&&($0(x),f0=1),[0,[0,r,[14,m0([0,e],bv0,0)]]]}),C0(TX,function(x){return v2(x,l(QO,x))}),C0(HO,function(x,r){var e=r[5],t=r[1],u=r[3],i=r[2],f=w0(x);u0(x,[3,r]);var o=[0,t,[0,[0,u,i],e]];if(e)var a=0,y=[0,o,0],h=t;else for(var k=[0,o,0],A=0;;){var g=l(lx[7],x),I=[0,g,A],C=W(x),R=0;if(typeof C=="number"&&C===1){J1(x,4);var L=W(x),U=0;if(typeof L=="number"||L[0]!==3)U=1;else{var B=L[1],X=B[5],J=B[1],e0=B[3],i0=B[2];$0(x),W1(x);var j=[0,[0,J,[0,[0,e0,i0],X]],k];if(!X){var k=j,A=I;continue}var Y=gx(I),z=[0,J,gx(j),Y];R=1}if(U)throw q0([0,Tr,Hv0],1)}if(!R){S1(qv0,x);var F=[0,g[1],Gv0],t0=gx(I),$=gx([0,F,k]),z=[0,g[1],$,t0]}var a=z[3],y=z[2],h=z[1];break}var f0=mx(x),c0=i1(t,h);return[0,c0,[0,y,a,m0([0,f],[0,f0],0)]]}),C0(qO,function(x,r,e,t){var u=I1(x)[2],i=p(u,e,function(o,a){return p(qx(o,an,3),o,a)}),f=p(HO,x,t);return[0,i1(r,f[1]),[28,[0,i,f,0]]]}),C0(SX,function(x){var r=w0(x),e=a0(0,function(o){u0(o,4);var a=Nx(o),y=l(Wt,o),h=W(o),k=0;if(typeof h=="number")if(h===9)var A=[0,G0(ym,o,a,[0,y,0])];else if(h===86)var A=[1,[0,y,Fv(o),0]];else k=1;else k=1;if(k)var A=[0,y];return u0(o,5),A},x),t=e[2],u=e[1],i=mx(x),f=t[0]===0?t[1]:[0,u,[31,t[1]]];return G0(GO,[0,r],[0,i],f)}),C0(GO,function(x,r,e){var t=e[2],u=e[1],i=x?x[1]:0,f=r?r[1]:0;function o(br){return g2(br,m0([0,i],[0,f],0))}function a(br){return JR(br,m0([0,i],[0,f],0))}switch(t[0]){case 0:var y=t[1],h=a(y[2]),ax=[0,[0,y[1],h]];break;case 1:var k=t[1],A=k[10],g=o(k[9]),ax=[1,[0,k[1],k[2],k[3],k[4],k[5],k[6],k[7],k[8],g,A]];break;case 2:var I=t[1],C=o(I[4]),ax=[2,[0,I[1],I[2],I[3],C]];break;case 3:var R=t[1],L=o(R[4]),ax=[3,[0,R[1],R[2],R[3],L]];break;case 4:var U=t[1],B=o(U[4]),ax=[4,[0,U[1],U[2],U[3],B]];break;case 5:var X=t[1],J=o(X[7]),ax=[5,[0,X[1],X[2],X[3],X[4],X[5],X[6],J]];break;case 6:var e0=t[1],i0=o(e0[4]),ax=[6,[0,e0[1],e0[2],e0[3],i0]];break;case 7:var j=t[1],Y=j[10],z=o(j[9]),ax=[7,[0,j[1],j[2],j[3],j[4],j[5],j[6],j[7],j[8],z,Y]];break;case 8:var F=t[1],t0=F[2],$=F[1],f0=o(t0[2]),ax=[8,[0,$,[0,t0[1],f0]]];break;case 9:var c0=t[1],v0=o(c0[2]),ax=[9,[0,c0[1],v0]];break;case 10:var s0=t[1],o0=o(s0[4]),ax=[10,[0,s0[1],s0[2],s0[3],o0]];break;case 11:var E0=t[1],k0=o(E0[4]),ax=[11,[0,E0[1],E0[2],E0[3],k0]];break;case 12:var M0=t[1],D0=o(M0[3]),ax=[12,[0,M0[1],M0[2],D0]];break;case 13:var cx=t[1],g0=o(cx[2]),ax=[13,[0,cx[1],g0]];break;case 14:var ax=[14,o(t[1])];break;case 15:var Z0=t[1],n0=o(Z0[3]),ax=[15,[0,Z0[1],Z0[2],n0]];break;case 16:var nx=t[1],xx=o(nx[3]),ax=[16,[0,nx[1],nx[2],xx]];break;case 17:var yx=t[1],px=o(yx[4]),ax=[17,[0,yx[1],yx[2],yx[3],px]];break;case 18:var Tx=t[1],O0=o(Tx[6]),ax=[18,[0,Tx[1],Tx[2],Tx[3],Tx[4],Tx[5],O0]];break;case 19:var P0=t[1],N0=o(P0[4]),ax=[19,[0,P0[1],P0[2],P0[3],N0]];break;case 20:var J0=t[1],I0=o(J0[3]),ax=[20,[0,J0[1],J0[2],I0]];break;case 21:var Q=t[1],G=o(Q[3]),ax=[21,[0,Q[1],Q[2],G]];break;case 22:var V=t[1],l0=o(V[4]),ax=[22,[0,V[1],V[2],V[3],l0]];break;case 23:var d0=t[1],A0=a(d0[2]),ax=[23,[0,d0[1],A0]];break;case 24:var M=t[1],L0=M[1],V0=M[3],B0=M[2],vx=o(L0[4]),ax=[24,[0,[0,L0[1],L0[2],L0[3],vx],B0,V0]];break;case 25:var b0=t[1],hx=b0[1],W0=b0[3],T=b0[2],K=o(hx[3]),ax=[25,[0,[0,hx[1],hx[2],K],T,W0]];break;case 26:var H0=t[1],sx=o(H0[2]),ax=[26,[0,H0[1],sx]];break;case 27:var ax=[27,[0,o(t[1][1])]];break;case 28:var ux=t[1],z0=o(ux[3]),ax=[28,[0,ux[1],ux[2],z0]];break;case 29:var Px=t[1],kx=o(Px[3]),ax=[29,[0,Px[1],Px[2],kx]];break;case 30:var ax=[30,[0,o(t[1][1])]];break;case 31:var $x=t[1],Qx=o($x[3]),ax=[31,[0,$x[1],$x[2],Qx]];break;case 32:var ax=t;break;case 33:var j0=t[1],rr=o(j0[3]),ax=[33,[0,j0[1],j0[2],rr]];break;case 34:var zx=t[1],X0=o(zx[4]),ax=[34,[0,zx[1],zx[2],zx[3],X0]];break;default:var ir=t[1],K0=ir[4],Sr=ir[3],Dr=o(ir[2]),ax=[35,[0,ir[1],Dr,Sr,K0]]}return[0,u,ax]}),C0(EX,function(x){var r=w0(x);u0(x,6);for(var e=[0,0,kn];;){var t=e[2],u=e[1],i=W(x);if(typeof i=="number"){var f=0;if(13<=i)Er===i&&(f=1);else if(7<=i)switch(i-7|0){case 0:f=1;break;case 2:var o=Nx(x);$0(x);var e=[0,[0,[2,o],u],t];continue;case 5:var a=w0(x),y=a0(0,function(z){$0(z);var F=l(s3,z);return F[0]===0?[0,F[1],kn]:[0,F[1],F[2]]},x),h=y[2],k=h[2],A=y[1],g=h[1],I=[1,[0,A,[0,g,m0([0,a],0,0)]]],C=W(x)===7?1:0,R=0;if(!C&&hr(1,x)===7){var L=[0,k[1],[0,[0,A,20],k[2]]];R=1}if(!R)var L=k;1-C&&u0(x,9);var e=[0,[0,I,u],DO(L,t)];continue}if(f){var U=aX(t),B=gx(u),X=w0(x);return u0(x,7),[0,[0,B,K1([0,r],[0,mx(x)],X,0)],U]}}var J=l(s3,x);if(J[0]===0)var e0=kn,i0=J[1];else var e0=J[2],i0=J[1];W(x)!==7&&u0(x,9);var e=[0,[0,[0,i0],u],DO(e0,t)]}}),C0(AX,function(x){J1(x,5);var r=Nx(x),e=w0(x),t=W(x),u=0;if(typeof t!="number"&&t[0]===5){var i=t[3],f=t[2];$0(x);var o=mx(x),a=o,y=i,h=f,k=Zx(Vv0,Zx(f,Zx(Wv0,i)));u=1}if(!u){S1(Zv0,x);var a=0,y=$v0,h=Fv0,k=Qv0}W1(x);var A=Zr(Gx(y)),g=Gx(y)-1|0,I=0;if(g>=0)for(var C=I;;){var R=ix(y,C),L=R-100|0,U=0;if(21>=L>>>0)switch(L){case 0:case 3:case 5:case 9:case 15:case 17:case 21:ct(A,R),U=1;break}var B=C+1|0;if(g!==C){var C=B;continue}break}var X=z1(A);return N(X,y)&&Bx(x,[17,y]),[0,r,[17,[0,h,X,k,m0([0,e],[0,a],0)]]]});var ES0=function(x){return function(r){if(typeof r=="number"){var e=0;if(65<=r){var t=r+lM|0;if(49>>0)e=1;else{var u=t-15|0;if(9>=u>>>0)switch(u){case 0:case 1:case 3:case 9:e=1;break}}}else 8<=r?r===59&&(e=1):6<=r&&(e=1);if(e)return 0}throw q0(ns,1)}},AS0=function(x){var r=W(x);if(typeof r=="number"&&!r){var e=p(lx[16],1,x);return[0,[0,e[1]],e[2]]}return[0,[1,l(lx[10],x)],0]};C0(bO,function(x){var r=Yd(ES0,x),e=Nx(r);if(hr(1,r)===11)var u=0,i=0;else var t=om(r),u=t[2],i=t[1];var f=i||r[19],o=bR(f,r),a=o[18],y=a0(0,function(o0){var E0=xe(o0,Ve(o0));if(es(o0)&&E0===0){var k0=p(lx[13],Xv0,o0),M0=k0[1],D0=[0,M0,[0,[0,M0,[2,[0,k0,[0,wn(o0)],0]]],0]];return[0,E0,[0,M0,[0,0,[0,D0,0],0,0]],[0,[0,M0[1],M0[3],M0[3]]],0]}var cx=l(f3(f,a),o0);nX(o0,cx);var g0=CO(Bv(1,o0));return[0,E0,cx,g0[1],g0[2]]},o),h=y[2],k=h[2],A=k[2],g=0,I=h[4],C=h[3],R=h[1],L=y[1];if(!A[1]){var U=0,B=A[2];if((A[3]||!B)&&(U=1),U){var X=iB(o);g=1}}if(!g)var X=o;var J=k[2],e0=J[1];if(e0){var i0=k[1];ex(X,[0,e0[1][1],90]);var j=[0,i0,[0,0,J[2],J[3],J[4]]]}else var j=k;var Y=Vv(j),z=b2(X),F=z&&(W(X)===11?1:0);F&&Bx(X,59),u0(X,11);var t0=fB(iB(X),i,0,Y),$=a0(0,AS0,t0),f0=$[2],c0=f0[1],v0=$[1];i3(t0,f0[2],0,j);var s0=i1(e,v0);return[0,[0,s0,[1,[0,0,j,c0,i,0,I,C,R,m0([0,u],0,0),L]]]]}),C0(ym,function(x,r,e){return a0([0,r],function(t){for(var u=e;;){var i=W(t);if(typeof i=="number"&&i===9){$0(t);var u=[0,l(Wt,t),u];continue}return[26,[0,gx(u),0]]}},x)});var gS0=function(x){var r=w0(x);$0(x);var e=m0([0,r],0,0),t=l(vm,x),u=b2(x)?f6(x):$d(x),i=u[2];return[0,p(i,t,function(f,o){return p(qx(f,an,63),f,o)}),e]},uL=function(x){if(!x[28][3])return 0;for(var r=0;;){var e=W(x);if(typeof e=="number"&&e===13){var r=[0,a0(0,gS0,x),r];continue}return gx(r)}},jo=function(x,r){var e=x?x[1]:0,t=w0(r),u=W(r);if(typeof u=="number")switch(u){case 6:var i=a0(0,function(v0){var s0=w0(v0);u0(v0,6);var o0=e6(0,v0),E0=l(lx[10],o0);return u0(v0,7),[0,E0,m0([0,s0],[0,mx(v0)],0)]},r),f=i[1];return[0,f,[5,[0,f,i[2]]]];case 14:if(!e){var o=a0(0,function(v0){return $0(v0),[3,_2(v0)]},r),a=o[1],y=o[2];return ex(r,[0,a,67]),[0,a,y]}var h=wB(r),k=r[30][1],A=h[2][1],g=h[1];if(k){var I=k[1],C=k[2],R=I[2],L=[0,[0,p(h2[4],A,I[1]),R],C];r[30][1]=L}else Rx(es0);return[0,g,[4,h]]}else switch(u[0]){case 0:var U=u[2],B=u[1],X=Nx(r),J=G0(lm,r,B,U);return[0,X,[1,[0,X,[0,J,U,m0([0,t],[0,mx(r)],0)]]]];case 1:var e0=u[2],i0=u[1],j=Nx(r),Y=G0(pm,r,i0,e0);return[0,j,[2,[0,j,[0,Y,e0,m0([0,t],[0,mx(r)],0)]]]];case 2:var z=u[1],F=z[4],t0=z[3],$=z[2],f0=z[1];return F&&Xt(r,80),u0(r,[2,[0,f0,$,t0,F]]),[0,f0,[0,[0,f0,[0,$,t0,m0([0,t],[0,mx(r)],0)]]]]}var c0=_2(r);return[0,c0[1],[3,c0]]},dm=function(x,r,e){var t=c3(x),u=t[1],i=t[2],f=jo([0,r],x),o=f[1],a=0,y=Sn(x,f[2]);return[0,y,a0(0,function(h){var k=Yv(1,h),A=a0(0,function(X){var J=l(f3(0,0),X),e0=0,i0=W(X)===86?J:c6(X,J);if(e){var j=i0[2],Y=0;if(j[1])ex(X,[0,o,28]),Y=1;else{var z=0;j[2]||j[3]?z=1:Y=1,z&&ex(X,[0,o,27])}}else{var F=i0[2];if(F[1])ex(X,[0,o,70]);else{var t0=F[2],$=0;t0&&!t0[2]&&!F[3]&&($=1),$||(F[3]?ex(X,[0,o,69]):ex(X,[0,o,69]))}}return[0,e0,i0,t3(X,PO(X))]},k),g=A[2],I=g[2],C=g[3],R=g[1],L=A[1],U=y6(k,a,u,0,Vv(I)),B=U[1];return i3(k,U[2],0,I),[0,0,I,B,a,u,0,C,R,m0([0,i],0,0),L]},x)]},CX=function(x){var r=l(s3,x);return r[0]===0?[0,r[1],kn]:[0,r[1],r[2]]},RX=function(x,r){switch(r[0]){case 0:var e=r[1],t=e[1],u=e[2];return ex(x,[0,t,52]),[0,t,[12,u]];case 1:var i=r[1],f=i[1],o=i[2];return ex(x,[0,f,52]),[0,f,[15,o]];case 2:var a=r[1],y=a[1],h=a[2];return ex(x,[0,y,52]),[0,y,[16,h]];case 3:var k=r[1],A=k[2][1],g=k[1];return Bd(A)?ex(x,[0,g,99]):r3(A)&&vt(x,[0,g,84]),[0,g,[8,k]];case 4:return Rx(R30);default:var I=r[1][2][1];return ex(x,[0,I[1],8]),I}},OX=function(x,r,e){function t(i){var f=Yv(1,i),o=a0(0,function(C){var R=xe(C,Ve(C)),L=l(f3(x,r),C),U=W(C)===86?L:c6(C,L);return[0,R,U,t3(C,PO(C))]},f),a=o[2],y=a[2],h=a[3],k=a[1],A=o[1],g=y6(f,x,r,0,Vv(y)),I=g[1];return i3(f,g[2],0,y),[0,0,y,I,x,r,0,h,k,m0([0,e],0,0),A]}var u=0;return function(i){return a0(u,t,i)}},LX=function(x){return u0(x,86),CX(x)},iL=function(x,r,e,t,u,i){var f=a0([0,r],function(a){if(!t&&!u){var y=W(a);if(typeof y=="number"){var h=0;if(86<=y){if(y===98)h=1;else if(87>y){var k=LX(a);return[0,[0,e,k[1],0],k[2]]}}else{if(y===82){if(e[0]===3)var A=e[1],g=Nx(a),I=function(B){var X=w0(B);u0(B,82);var J=mx(B),e0=p(lx[19],B,[0,A[1],[8,A]]),i0=l(lx[10],B);return[2,[0,0,e0,i0,m0([0,X],[0,J],0)]]},C=a0([0,A[1]],I,a),R=[0,C,[0,[0,[0,g,[23,pd(C30)]],0],0]];else var R=LX(a);return[0,[0,e,R[1],1],R[2]]}if(10>y)switch(y){case 4:h=1;break;case 1:case 9:return[0,[0,e,RX(a,e),1],kn]}}if(h){var L=Sn(a,e);return[0,[1,L,l(OX(t,u,i),a)],kn]}}return[0,[0,e,RX(a,e),1],kn]}var U=Sn(a,e);return[0,[1,U,l(OX(t,u,i),a)],kn]},x),o=f[2];return[0,[0,[0,f[1],o[1]]],o[2]]},NS0=function(x){if(W(x)===12){var r=w0(x),e=a0(0,function(M0){return u0(M0,12),CX(M0)},x),t=e[2],u=t[2],i=t[1],f=e[1];return[0,[1,[0,f,[0,i,m0([0,r],0,0)]]],u]}var o=Nx(x),a=hr(1,x),y=0;if(typeof a=="number"){var h=0;if(86<=a)a!==98&&87<=a&&(h=1);else if(a!==82)if(10<=a)h=1;else switch(a){case 1:case 4:case 9:break;default:h=1}if(!h){var A=0,g=0;y=1}}if(!y)var k=om(x),A=k[2],g=k[1];var I=c3(x),C=I[1],R=Fx(A,I[2]),L=W(x);if(!g&&!C&&typeof L!="number"&&L[0]===4){var U=L[3];if(!N(U,Tv)){var B=w0(x),X=jo(0,x)[2],J=W(x);if(typeof J=="number"){var e0=0;if(86<=J)J!==98&&87<=J&&(e0=1);else if(J!==82)if(10<=J)e0=1;else switch(J){case 1:case 4:case 9:break;default:e0=1}if(!e0)return iL(x,o,X,0,0,0)}Sn(x,X);var i0=a0([0,o],function(M0){return dm(M0,0,1)},x),j=i0[2],Y=j[2],z=j[1],F=i0[1];return[0,[0,[0,F,[2,z,Y,m0([0,B],0,0)]]],kn]}if(!N(U,Oa)){var t0=w0(x),$=jo(0,x)[2],f0=W(x);if(typeof f0=="number"){var c0=0;if(86<=f0)f0!==98&&87<=f0&&(c0=1);else if(f0!==82)if(10<=f0)c0=1;else switch(f0){case 1:case 4:case 9:break;default:c0=1}if(!c0)return iL(x,o,$,0,0,0)}Sn(x,$);var v0=a0([0,o],function(M0){return dm(M0,0,0)},x),s0=v0[2],o0=s0[2],E0=s0[1],k0=v0[1];return[0,[0,[0,k0,[3,E0,o0,m0([0,t0],0,0)]]],kn]}}return iL(x,o,jo(0,x)[2],g,C,R)},IS0=function(x){var r=a0(0,function(t){var u=w0(t);u0(t,0);for(var i=0,f=[0,0,kn];;){var o=f[2],a=f[1],y=W(t);if(typeof y=="number"){var h=0;if(y!==1&&Er!==y&&(h=1),!h){var k=i?[0,o[1],[0,[0,i[1],94],o[2]]]:o,A=aX(k),g=gx(a),I=w0(t);return u0(t,1),[0,[0,g,K1([0,u],[0,mx(t)],I,0)],A]}}var C=NS0(t),R=C[1],L=0,U=C[2];if(R[0]===1&&W(t)===9){var B=[0,Nx(t)];L=1}if(!L)var B=0;var X=DO(U,o),J=W(t),e0=0;if(typeof J=="number"){var i0=J-2|0,j=0;if(P1>>0?fe>=i0+1>>>0&&(j=1):i0===7&&($0(t),j=1),j){var Y=X;e0=1}}if(!e0){var z=ZR(Qc0,9),F=aB([0,z],W(t)),t0=[0,Nx(t),F];v1(t,8);var Y=[0,[0,t0,X[1]],[0,t0,X[2]]]}var i=B,f=[0,[0,R,a],Y]}},x),e=r[2];return[0,r[1],e[1],e[2]]},mm=function(x,r,e,t){var u=e[2][1],i=e[1];if(Nr(u,kv))return ex(x,[0,i,[15,u,0,Oj===t?1:0,1]]),r;for(var f=r;;){if(typeof f=="number")var a=0;else if(f[0]===0)var o=f[2],a=Ex(u,f[1])===0?[0,o]:0;else{var y=Ex(u,f[2]),h=f[5],k=f[4],A=f[3];if(y!==0){var g=0<=y?h:k,f=g;continue}var a=[0,A]}if(!a)return Gd(u,t,r);var I=a[1],C=0;return IN===t?YP===I&&(C=1):YP===t&&IN===I&&(C=1),C||ex(x,[0,i,[1,u]]),Gd(u,MD,r)}},UX=function(x,r){return a0(0,function(e){var t=r?w0(e):0;u0(e,52);for(var u=0;;){var i=[0,a0(0,function(a){var y=us(a);if(W(a)===98)var h=I1(a)[2],k=p(h,y,function(A,g){return p(qx(A,Na,64),A,g)});else var k=y;return[0,k,xX(a)]},e),u],f=W(e);if(typeof f=="number"&&f===9){u0(e,9);var u=i;continue}var o=gx(i);return[0,o,m0([0,t],0,0)]}},x)},fL=function(x){switch(x[0]){case 0:case 3:var r=x[1];return[0,[0,r[1],r[2][1]]];default:return 0}},cL=function(x,r){return r?ex(x,[0,r[1][1],ut]):0},sL=function(x,r){return r?ex(x,[0,r[1],13]):0},MX=function(x,r,e,t,u,i,f,o){var a=a0([0,r],function(C){var R=rX(C),L=W(C);if(i){var U=0;if(typeof L=="number"&&L===82){Bx(C,14),$0(C);var B=0}else U=1;if(U)var B=0}else{var X=0;if(typeof L=="number"&&L===82){$0(C);var J=Yv(1,C),B=[0,l(lx[7],J)];X=1}if(!X)var B=1}var e0=W(C),i0=0;if(typeof e0=="number"&&9>e0)switch(e0){case 8:$0(C);var j=W(C),Y=0;if(typeof j=="number"){var z=0;if(j===1||Er===j?z=1:Y=1,z)var F=mx(C)}else Y=1;if(Y)var F=b2(C)?Uo(C):0;var t0=[0,t,R,B,F];i0=1;break;case 4:case 6:S1(0,C);var t0=[0,t,R,B,0];i0=1;break}if(!i0){var $=W(C),f0=0;if(typeof $=="number"){var c0=0;if($===1||Er===$?c0=1:f0=1,c0)var v0=[0,0,function(px,Tx){return px}]}else f0=1;if(f0)var v0=b2(C)?f6(C):$d(C);if(typeof B=="number")if(R[0]===0)var s0=function(yx,px){return p(qx(yx,GU,67),yx,px)},D0=B,cx=R,g0=p(v0[2],t,s0);else var o0=R[1],E0=function(yx,px){return p(qx(yx,KP,68),yx,px)},D0=B,cx=[1,p(v0[2],o0,E0)],g0=t;else var k0=B[1],M0=function(yx,px){return p(qx(yx,an,69),yx,px)},D0=[0,p(v0[2],k0,M0)],cx=R,g0=t;var t0=[0,g0,cx,D0,0]}var Z0=t0[3],n0=t0[2],nx=t0[1];return[0,nx,n0,Z0,m0([0,o],[0,t0[4]],0)]},x),y=a[2],h=y[4],k=y[3],A=y[2],g=y[1],I=a[1];return g[0]===4?[2,[0,I,[0,g[1],k,A,u,f,e,h]]]:[1,[0,I,[0,g,k,A,u,f,e,h]]]},oL=function(x,r,e,t,u,i,f,o,a,y){for(;;){var h=W(x);if(typeof h=="number"){var k=h-1|0,A=0;if(7>>0){var g=k-81|0;if(4>=g>>>0)switch(g){case 3:S1(0,x),$0(x);continue;case 0:case 4:A=1;break}}else 5>>0&&(A=1);if(A&&!u&&!i)return MX(x,r,e,t,f,o,a,y)}var I=W(x),C=0;if(typeof I=="number"&&(I===4||I===98))var R=0;else C=1;if(C)var R=e3(x)?1:0;if(R)return MX(x,r,e,t,f,o,a,y);sL(x,o),cL(x,a);var L=fL(t),U=0;if(f){if(L){var B=L[1],X=B[1];if(!N(B[2],yo)){ex(x,[0,X,[15,S30,f,1,0]]);var i0=Yv(1,x),j=1;U=1}}}else if(L){var J=L[1],e0=J[1];if(!N(J[2],kv)){u&&ex(x,[0,e0,10]),i&&ex(x,[0,e0,11]);var i0=Yv(2,x),j=0;U=1}}if(!U)var i0=Yv(1,x),j=1;var Y=Sn(i0,t),z=a0(0,function(t0){var $=a0(0,function(M0){var D0=xe(M0,Ve(M0)),cx=l(f3(u,i),M0),g0=W(M0)===86?cx:c6(M0,cx),Z0=g0[2],n0=Z0[1],nx=0;if(n0){var xx=n0[1][1],yx=g0[1];if(j===0){ex(M0,[0,xx,91]);var px=[0,yx,[0,0,Z0[2],Z0[3],Z0[4]]];nx=1}}if(!nx)var px=g0;return[0,D0,px,t3(M0,PO(M0))]},t0),f0=$[2],c0=f0[2],v0=f0[3],s0=f0[1],o0=$[1],E0=y6(t0,u,i,0,Vv(c0)),k0=E0[1];return i3(t0,E0[2],0,c0),[0,0,c0,k0,u,i,0,v0,s0,0,o0]},i0),F=[0,j,Y,z,f,e,m0([0,y],0,0)];return[0,[0,i1(r,z[1]),F]]}},vL=function(x,r){var e=hr(x,r);if(typeof e=="number"){var t=0;if(86<=e)e!==98&&87<=e&&(t=1);else if(e!==82)if(9<=e)t=1;else switch(e){case 1:case 4:case 8:break;default:t=1}if(!t)return 1}return 0},PS0=0,DX=function(x){return vL(PS0,x)},CS0=function(x){var r=Nx(x),e=uL(x),t=W(x),u=0;if(typeof t=="number"&&t===60&&!vL(1,x)){var i=[0,Nx(x)],f=w0(x);$0(x);var o=f,a=i;u=1}if(!u)var o=0,a=0;var y=W(x),h=0;if(typeof y=="number"&&2>=y+tj>>>0&&Oo(1,x)){var k=0;if(typeof y=="number"){var A=y+tj|0;if(2>=A>>>0){switch(A){case 0:var g=Wz;break;case 1:var g=rl;break;default:var g=ol}var I=g;k=1}}if(!k)var I=Rx(E30);Bx(x,[21,I]),$0(x),h=1}var C=W(x)===42?1:0;if(C){var R=hr(1,x),L=0;if(typeof R=="number"){var U=0;if(87<=R)R!==98&&Er!==R&&(U=1);else{var B=R-9|0;if(76>>0){if(77>B)switch(B+9|0){case 1:case 4:case 8:break;default:U=1}}else B!==73&&(U=1)}if(!U){var X=0;L=1}}if(!L)var X=1;var J=X}else var J=C;if(J){var e0=w0(x);$0(x);var i0=e0}else var i0=0;var j=W(x)===64?1:0;if(j)var Y=1-vL(1,x),z=Y&&1-n6(1,x);else var z=j;if(z){var F=w0(x);$0(x);var t0=F}else var t0=0;var $=c3(x),f0=$[1],c0=$[2],v0=Oo(1,x),s0=v0||(hr(1,x)===6?1:0),o0=Nx(x),E0=W(x),k0=0;if(typeof E0=="number")switch(E0){case 103:var M0=w0(x);$0(x);var g0=[0,[0,o0,[0,0,m0([0,M0],0,0)]]];k0=1;break;case 104:var D0=w0(x);$0(x);var g0=[0,[0,o0,[0,1,m0([0,D0],0,0)]]];k0=1;break}else if(E0[0]===4&&!N(E0[3],Ta)&&s0){var cx=w0(x);$0(x);var g0=[0,[0,o0,[0,2,m0([0,cx],0,0)]]];k0=1}if(!k0)var g0=0;var Z0=0;if(g0){var n0=0,nx=g0[1][1];if((z||f0)&&(n0=1),n0){ex(x,[0,nx,ut]);var xx=0;Z0=1}}if(!Z0)var xx=g0;var yx=0;if(!f0&&xx){var px=c3(x),Tx=px[2],O0=px[1];yx=1}if(!yx)var Tx=c0,O0=f0;var P0=Ll([0,o,[0,i0,[0,t0,[0,Tx,0]]]]),N0=W(x);if(!z&&!O0&&typeof N0!="number"&&N0[0]===4){var J0=N0[3];if(!N(J0,Tv)){var I0=w0(x),Q=jo(g30,x)[2];if(DX(x))return oL(x,r,e,Q,z,O0,J,a,xx,P0);sL(x,a),cL(x,xx),Sn(x,Q);var G=Fx(P0,I0),V=a0([0,r],function(X0){return dm(X0,1,1)},x),l0=V[2],d0=l0[1],A0=l0[2],M=V[1],L0=fL(d0),V0=0;if(J){if(L0){var B0=L0[1],vx=B0[1];N(B0[2],yo)||(ex(x,[0,vx,[15,P30,J,0,0]]),V0=1)}}else if(L0){var b0=L0[1],hx=b0[1];N(b0[2],kv)||(ex(x,[0,hx,9]),V0=1)}return[0,[0,M,[0,2,d0,A0,J,e,m0([0,G],0,0)]]]}if(!N(J0,Oa)){var W0=w0(x),T=jo(A30,x)[2];if(DX(x))return oL(x,r,e,T,z,O0,J,a,xx,P0);sL(x,a),cL(x,xx),Sn(x,T);var K=Fx(P0,W0),H0=a0([0,r],function(X0){return dm(X0,1,0)},x),sx=H0[2],ux=sx[1],z0=sx[2],Px=H0[1],kx=fL(ux),$x=0;if(J){if(kx){var Qx=kx[1],j0=Qx[1];N(Qx[2],yo)||(ex(x,[0,j0,[15,I30,J,0,0]]),$x=1)}}else if(kx){var rr=kx[1],zx=rr[1];N(rr[2],kv)||(ex(x,[0,zx,9]),$x=1)}return[0,[0,Px,[0,3,ux,z0,J,e,m0([0,K],0,0)]]]}}return oL(x,r,e,jo(N30,x)[2],z,O0,J,a,xx,P0)},jX=function(x,r,e,t){var u=x?x[1]:0,i=Qs(1,r),f=Fx(u,uL(i)),o=w0(i),a=W(i),y=0;typeof a!="number"&&a[0]===4&&!N(a[3],Zh)&&(Bx(i,87),$0(i),y=1),u0(i,40);var h=xO(1,i),k=W(h),A=0;if(e&&typeof k=="number"){var g=0;if(52<=k?k!==98&&53<=k&&(g=1):k!==41&&k&&(g=1),!g){var R=0;A=1}}if(!A)if(es(i))var I=p(lx[13],0,h),C=I1(i)[2],R=[0,p(C,I,function($,f0){return p(qx($,Na,71),$,f0)})];else{lB(i,h30);var R=[0,[0,Nx(i),_30]]}var L=Ve(i);if(L)var U=L[1],B=I1(i)[2],X=[0,p(B,U,function($,f0){return p(qx($,WP,70),$,f0)})];else var X=0;var J=w0(i);if(v1(i,41))var e0=a0(0,function($){var f0=l(vm,GR(0,$));if(W($)===98)var c0=I1($)[2],v0=p(c0,f0,function(o0,E0){return p(qx(o0,an,65),o0,E0)});else var v0=f0;var s0=xX($);return[0,v0,s0,m0([0,J],0,0)]},i),i0=e0[1],j=e0[2],Y=I1(i)[2],z=[0,[0,i0,p(Y,j,function($,f0){return G0(qx($,-663447790,66),$,i0,f0)})]];else var z=0;if(W(i)===52){1-T1(i)&&Bx(i,P1);var F=[0,hB(i,UX(i,1))]}else var F=0;var t0=a0(0,function($){var f0=w0($);if(!v1($,0))return Hs($,0),T30;$[30][1]=[0,[0,h2[1],0],$[30][1]];for(var c0=0,v0=RT0,s0=0;;){var o0=W($);if(typeof o0=="number"){var E0=o0-2|0;if(P1>>0){if(fe>=E0+1>>>0){var k0=gx(s0),M0=function(j0,rr){return l(Ul(function(zx){return 1-p(h2[3],zx[1],j0)}),rr)},D0=$[30][1];if(D0){var cx=D0[1],g0=cx[1];if(D0[2]){var Z0=D0[2],n0=M0(g0,cx[2]),nx=Ol(Z0),xx=nx[2],yx=nx[1],px=ZK(Z0),Tx=[0,[0,yx,Fx(xx,n0)],px];$[30][1]=Tx}else{var O0=M0(g0,cx[2]);S2(function(j0){return ex($,[0,j0[2],[22,j0[1]]])},O0),$[30][1]=0}}else Rx(ts0);u0($,1);var P0=W($),N0=0;if(!t){var J0=0;if((typeof P0!="number"||P0!==1&&Er!==P0)&&(J0=1),J0)if(b2($)){var I0=Uo($);N0=1}else{var I0=0;N0=1}}if(!N0)var I0=mx($);return[0,k0,m0([0,f0],[0,I0],0)]}}else if(E0===6){u0($,8);continue}}var Q=CS0($);switch(Q[0]){case 0:var G=Q[1],V=G[2],l0=G[1];switch(V[1]){case 0:if(V[4])var z0=v0,Px=c0;else{c0&&ex($,[0,l0,18]);var z0=v0,Px=1}break;case 1:var d0=V[2],A0=d0[0]===4?mm($,v0,d0[1],Oj):v0,z0=A0,Px=c0;break;case 2:var M=V[2],L0=M[0]===4?mm($,v0,M[1],IN):v0,z0=L0,Px=c0;break;default:var V0=V[2],B0=V0[0]===4?mm($,v0,V0[1],YP):v0,z0=B0,Px=c0}break;case 1:var vx=Q[1][2],b0=vx[4],hx=vx[1];switch(hx[0]){case 4:Rx(w30);break;case 0:case 3:var W0=hx[1],T=W0[2][1],K=Nr(T,kv),H0=W0[1];if(K)var ux=K;else var sx=Nr(T,yo),ux=sx&&b0;ux&&ex($,[0,H0,[15,T,b0,0,0]]);break}var z0=v0,Px=c0;break;default:var z0=mm($,v0,Q[1][2][1],MD),Px=c0}var c0=Px,v0=z0,s0=[0,Q,s0]}},i);return[0,R,t0,X,z,F,f,m0([0,o],0,0)]},km=function(x,r){return a0(0,function(e){return[2,jX([0,r],e,e[7],0)]},x)},RS0=function(x){return[5,jX(0,x,1,1)]},OS0=0,LS0=function(x){return a0(OS0,RS0,x)},zX=EB(lx),KX=function(x){var r=d6(x);if(x[5])Wv(x,r[1]);else{var e=r[2],t=0;if(e[0]===26){var u=e[1],i=r[1],f=0;u[4]?(ex(x,[0,i,5]),f=1):u[5]&&(ex(x,[0,i,26]),f=1),f&&(t=1)}}return r},hm=function(x,r){var e=r[4],t=r[3],u=r[2],i=r[1];e&&Xt(x,80);var f=w0(x);return u0(x,[2,[0,i,u,t,e]]),[0,i,[0,u,t,m0([0,f],[0,mx(x)],0)]]},e2=function(x,r,e){var t=x?x[1]:al0,u=r?r[1]:1,i=W(e);if(typeof i=="number"){var f=i-2|0;if(P1>>0){if(fe>=f+1>>>0){var o=function(h,k){return h};return[1,[0,mx(e),o]]}}else if(f===6){$0(e);var a=W(e);if(typeof a=="number"){var y=0;if(a!==1&&Er!==a&&(y=1),!y)return[0,mx(e)]}return b2(e)?[0,Uo(e)]:ll0}}return b2(e)?[1,f6(e)]:(u&&S1([0,t],e),pl0)},Gs=function(x){var r=W(x);if(typeof r=="number"){var e=0;if(r!==1&&Er!==r&&(e=1),!e){var t=function(u,i){return u};return[0,mx(x),t]}}return b2(x)?f6(x):$d(x)},aL=function(x,r,e){var t=e2(0,0,r);if(t[0]===0)return[0,t[1],e];var u=t[1][2],i=gx(e);if(i)var f=i[2],o=i[1],a=gx([0,p(u,o,function(y,h){return G0(qx(y,634872468,72),y,x,h)}),f]);else var a=0;return[0,0,a]},JX=function x(r){return x.fun(r)},YX=function x(r){return x.fun(r)},BX=function x(r){return x.fun(r)},XX=function x(r){return x.fun(r)},WX=function x(r){return x.fun(r)},k6=function x(r,e){return x.fun(r,e)},VX=function x(r){return x.fun(r)},ZX=function x(r){return x.fun(r)},h6=function x(r,e,t){return x.fun(r,e,t)},$X=function x(r){return x.fun(r)},FX=function x(r){return x.fun(r)},_6=function x(r,e){return x.fun(r,e)},QX=function x(r){return x.fun(r)},HX=function x(r){return x.fun(r)},_m=function x(r,e){return x.fun(r,e)},qX=function x(r){return x.fun(r)},wm=function x(r,e){return x.fun(r,e)},GX=function x(r){return x.fun(r)},bX=function x(r){return x.fun(r)},Tm=function x(r,e){return x.fun(r,e)},xW=function x(r){return x.fun(r)},w6=function x(r,e,t){return x.fun(r,e,t)},T6=function x(r,e){return x.fun(r,e)},rW=function x(r,e){return x.fun(r,e)},eW=function x(r,e){return x.fun(r,e)},lL=function x(r,e){return x.fun(r,e)},tW=function x(r){return x.fun(r)},o3=function x(r){return x.fun(r)},Sm=function x(r,e,t){return x.fun(r,e,t)},pL=function x(r,e){return x.fun(r,e)},nW=function x(r,e){return x.fun(r,e)},yL=function x(r){return x.fun(r)},US0=function(x){var r=w0(x);u0(x,59);var e=W(x)===8?mx(x):0,t=e2(0,0,x),u=t[0]===0?t[1]:t[1][1];return[5,[0,m0([0,r],[0,Fx(e,u)],0)]]},MS0=0,DS0=function(x){var r=w0(x);u0(x,37);var e=r6(1,x),t=l(lx[2],e),u=1-x[5],i=u&&s6(t);i&&Wv(x,t[1]);var f=mx(x);u0(x,25);var o=mx(x);u0(x,4);var a=l(lx[7],x);u0(x,5);var y=W(x)===8?mx(x):0,h=e2(0,vl0,x),k=h[0]===0?Fx(y,h[1]):h[1][1];return[17,[0,t,a,m0([0,r],[0,Fx(f,Fx(o,k))],0)]]},jS0=0,uW=function(x,r,e){var t=e[2][1],u=e[1];return t&&!t[1][2][2]&&!t[2]?0:ex(x,[0,u,r])},dL=function(x,r){return!x[5]&&s6(r)?Wv(x,r[1]):0},zS0=function(x){var r=w0(x);u0(x,39);var e=x[19],t=e&&v1(x,65),u=Fx(r,w0(x));u0(x,4);var i=m0([0,u],0,0),f=W(x),o=0;if(typeof f=="number"&&f===64){var a=1;o=1}if(!o)var a=0;var y=e6(1,x),h=W(y),k=0;if(typeof h=="number"){if(24<=h){if(29>h)switch(h+mT|0){case 0:var A=a0(0,cX,y),g=A[2],I=g[3],C=g[1],R=A[1],F=I,t0=[0,[1,[0,R,[0,C,0,m0([0,g[2]],0,0)]]]];k=1;break;case 3:var L=a0(0,sX,y),U=L[2],B=U[3],X=U[1],J=L[1],F=B,t0=[0,[1,[0,J,[0,X,2,m0([0,U[2]],0,0)]]]];k=1;break;case 4:if(hr(1,y)!==17){var e0=a0(0,oX,y),i0=e0[2],j=i0[3],Y=i0[1],z=e0[1],F=j,t0=[0,[1,[0,z,[0,Y,1,m0([0,i0[2]],0,0)]]]];k=1}break}}else if(h===8){var F=0,t0=0;k=1}}if(!k)var F=0,t0=[0,[0,l(lx[8],y)]];var $=W(x);if(typeof $=="number"){if($===17){if(!t0)throw q0([0,Tr,ol0],1);var f0=t0[1];if(f0[0]===0)var c0=[1,MO(sl0,x,f0[1])];else{var v0=f0[1];uW(x,42,v0);var c0=[0,v0]}t?u0(x,63):u0(x,17);var s0=l(lx[7],x);u0(x,5);var o0=r6(1,x),E0=l(lx[2],o0);return dL(x,E0),[24,[0,c0,s0,E0,0,i]]}if($===63){if(!t0)throw q0([0,Tr,cl0],1);var k0=t0[1];if(k0[0]===0){var M0=MO(fl0,x,k0[1]),D0=1-t,cx=D0&&a,g0=0;if(cx){var Z0=M0[2];if(Z0[0]===2){var n0=Z0[1][1],nx=n0[1];N(n0[2][1],ko)||(ex(x,[0,nx,43]),g0=1)}}var xx=[1,M0]}else{var yx=k0[1];uW(x,43,yx);var xx=[0,yx]}u0(x,63);var px=l(lx[10],x);u0(x,5);var Tx=r6(1,x),O0=l(lx[2],Tx);return dL(x,O0),[25,[0,xx,px,O0,t,i]]}}if(S2(function(L0){return ex(x,L0)},F),t?u0(x,63):u0(x,8),t0)var P0=t0[1],N0=P0[0]===0?[0,[1,v2(x,P0[1])]]:[0,[0,P0[1]]],J0=N0;else var J0=0;var I0=W(x),Q=0;if(typeof I0=="number"&&I0===8){var G=0;Q=1}if(!Q)var G=[0,l(lx[7],x)];u0(x,8);var V=W(x),l0=0;if(typeof V=="number"&&V===5){var d0=0;l0=1}if(!l0)var d0=[0,l(lx[7],x)];u0(x,5);var A0=r6(1,x),M=l(lx[2],A0);return dL(x,M),[23,[0,J0,G,d0,M,i]]},KS0=0,iW=function(x){var r=Lo(x)?KX(x):l(lx[2],x),e=1-x[5],t=e&&s6(r);return t&&Wv(x,r[1]),r},JS0=function(x){var r=w0(x);u0(x,43);var e=iW(x);return[0,e,m0([0,r],0,0)]},YS0=function(x){var r=w0(x);u0(x,16);var e=Fx(r,w0(x));u0(x,4);var t=l(lx[7],x);u0(x,5);var u=iW(x),i=W(x)===43?[0,a0(0,JS0,x)]:0;return[27,[0,t,u,i,m0([0,e],0,0)]]},BS0=0,fW=function(x){return a0(BS0,YS0,x)},XS0=function(x){1-x[11]&&Bx(x,31);var r=w0(x),e=Nx(x);u0(x,19);var t=W(x)===8?mx(x):0,u=0;if(W(x)!==8&&!e3(x)){var i=[0,l(lx[7],x)];u=1}if(!u)var i=0;var f=i1(e,Nx(x)),o=e2(0,0,x),a=0;if(o[0]===0)var y=o[1];else{var h=o[1],k=h[1];if(i){var A=i[1],g=h[2],I=[0,p(g,A,function(B,X){return p(qx(B,an,73),B,X)})],C=t;a=1}else var y=k}if(!a)var I=i,C=Fx(t,y);return[31,[0,I,m0([0,r],[0,C],0),f]]},WS0=0,VS0=function(x){var r=w0(x);u0(x,20),u0(x,4);var e=l(lx[7],x);u0(x,5),u0(x,0);for(var t=il0;;){var u=t[2],i=t[1],f=W(x);if(typeof f=="number"){var o=0;if(f!==1&&Er!==f&&(o=1),!o){var a=gx(u);u0(x,1);var y=Gs(x)[1],h=e[1];return[32,[0,e,a,m0([0,r],[0,y],0),h]]}}var k=Qd(0,function(g){return function(I){var C=w0(I),R=W(I),L=0;if(typeof R=="number"&&R===36){g&&Bx(I,57),u0(I,36);var U=mx(I),B=0;L=1}if(!L){u0(I,33);var U=0,B=[0,l(lx[7],I)]}var X=g||(B===0?1:0);u0(I,86);var J=Fx(U,Gs(I)[1]);function e0(z){if(typeof z=="number"){var F=z-1|0,t0=0;if(32>>0?F===35&&(t0=1):30>>0&&(t0=1),t0)return 1}return 0}var i0=1,j=I[9]===1?I:[0,I[1],I[2],I[3],I[4],I[5],I[6],I[7],I[8],i0,I[10],I[11],I[12],I[13],I[14],I[15],I[16],I[17],I[18],I[19],I[20],I[21],I[22],I[23],I[24],I[25],I[26],I[27],I[28],I[29],I[30],I[31]],Y=p(lx[4],e0,j);return[0,[0,B,Y,m0([0,C],[0,J],0)],X]}}(i),x),t=[0,k[2],[0,k[1],u]]}},ZS0=0,$S0=function(x){var r=w0(x),e=Nx(x);u0(x,22),b2(x)&&ex(x,[0,e,58]);var t=l(lx[7],x),u=e2(0,0,x);if(u[0]===0)var o=t,a=u[1];else var i=u[1][2],f=0,o=p(i,t,function(y,h){return p(qx(y,an,74),y,h)}),a=f;return[33,[0,o,m0([0,r],[0,a],0)]]},FS0=0,QS0=function(x){var r=w0(x);u0(x,23);var e=l(lx[15],x);if(W(x)===34)var t=I1(x)[2],u=p(t,e,function(L,U){var B=U[1];return[0,B,G0(qx(L,Vp,4),L,B,U[2])]});else var u=e;var i=W(x),f=0;if(typeof i=="number"&&i===34){var o=[0,a0(0,function(U){var B=w0(U);u0(U,34);var X=mx(U);if(W(U)===4){u0(U,4);var J=[0,p(lx[18],U,71)];u0(U,5);var e0=J}else var e0=0;var i0=l(lx[15],U);if(W(U)===38)var Y=i0;else var j=Gs(U)[2],Y=p(j,i0,function(z,F){var t0=F[1];return[0,t0,G0(qx(z,Vp,75),z,t0,F[2])]});return[0,e0,Y,m0([0,B],[0,X],0)]},x)];f=1}if(!f)var o=0;var a=W(x),y=0;if(typeof a=="number"&&a===38){u0(x,38);var h=l(lx[15],x),k=h[1],A=h[2],g=Gs(x)[2],I=[0,[0,k,p(g,A,function(U,B){return G0(qx(U,Vp,76),U,k,B)})]];y=1}if(!y)var I=0;var C=o===0?1:0,R=C&&(I===0?1:0);return R&&ex(x,[0,u[1],60]),[34,[0,u,o,I,m0([0,r],0,0)]]},HS0=0,qS0=function(x){var r=cX(x),e=r[3],t=r[2],u=aL(0,x,r[1]),i=0,f=u[2],o=u[1];return S2(function(a){return ex(x,a)},e),[37,[0,f,i,m0([0,t],[0,o],0)]]},GS0=0,bS0=function(x){var r=sX(x),e=r[3],t=r[2],u=aL(2,x,r[1]),i=2,f=u[2],o=u[1];return S2(function(a){return ex(x,a)},e),[37,[0,f,i,m0([0,t],[0,o],0)]]},xE0=0,rE0=function(x){var r=oX(x),e=r[3],t=r[2],u=aL(1,x,r[1]),i=1,f=u[2],o=u[1];return S2(function(a){return ex(x,a)},e),[37,[0,f,i,m0([0,t],[0,o],0)]]},eE0=0,tE0=function(x){var r=w0(x);u0(x,25);var e=Fx(r,w0(x));u0(x,4);var t=l(lx[7],x);u0(x,5);var u=r6(1,x),i=l(lx[2],u),f=1-x[5],o=f&&s6(i);return o&&Wv(x,i[1]),[38,[0,t,i,m0([0,e],0,0)]]},nE0=0,uE0=function(x){var r=w0(x),e=l(lx[7],x),t=W(x),u=e[2];if(u[0]===8&&typeof t=="number"&&t===86){var i=u[1],f=i[2][1],o=e[1];u0(x,86),p(h2[3],f,x[3])&&ex(x,[0,o,[20,nl0,f]]);var a=x[31],y=x[30],h=x[29],k=x[28],A=x[27],g=x[26],I=x[25],C=x[24],R=x[23],L=x[22],U=x[21],B=x[20],X=x[19],J=x[18],e0=x[17],i0=x[16],j=x[15],Y=x[14],z=x[13],F=x[12],t0=x[11],$=x[10],f0=x[9],c0=x[8],v0=x[7],s0=x[6],o0=x[5],E0=x[4],k0=p(h2[4],f,x[3]),M0=[0,x[1],x[2],k0,E0,o0,s0,v0,c0,f0,$,t0,F,z,Y,j,i0,e0,J,X,B,U,L,R,C,I,g,A,k,h,y,a],D0=Lo(M0)?KX(M0):l(lx[2],M0);return[30,[0,i,D0,m0([0,r],0,0)]]}var cx=e2(ul0,0,x);if(cx[0]===0)var n0=e,nx=cx[1];else var g0=cx[1][2],Z0=0,n0=p(g0,e,function(xx,yx){return p(qx(xx,an,77),xx,yx)}),nx=Z0;return[22,[0,n0,0,m0(0,[0,nx],0)]]},iE0=0,fE0=function(x){var r=l(lx[7],x),e=e2(tl0,0,x);if(e[0]===0)var i=r,f=e[1];else var t=e[1][2],u=0,i=p(t,r,function(I,C){return p(qx(I,an,78),I,C)}),f=u;if(x[20]){var o=i[2];if(o[0]===12){var a=o[1][2],y=0;if(1i)switch(i-53|0){case 0:return a0([0,u],function(a){1-T1(a)&&Bx(a,fn);var y=a0(0,l(_6,0),a),h=[0,y[1],[29,y[2]]];return[21,[0,[0,h],0,0,0,m0([0,t],0,0)]]},e);case 8:if(hr(1,e)!==0)return a0([0,u],function(a){1-T1(a)&&Bx(a,fn);var y=hr(1,a);if(typeof y=="number"){if(y===48)return Bx(a,21),u0(a,61),[21,[0,0,0,0,0,m0([0,t],0,0)]];if(_1===y){u0(a,61);var h=Nx(a);u0(a,_1);var k=l(o3,a),A=k[1];return[21,[0,0,[0,[1,[0,h,0]]],[0,A],0,m0([0,t],[0,k[2]],0)]]}}var g=a0(0,l(k6,0),a),I=[0,g[1],[35,g[2]]];return[21,[0,[0,I],0,0,0,m0([0,t],0,0)]]},e);break;case 9:return a0([0,u],function(a){var y=a0(0,function(k){return l(p(h6,0,0),k)},a),h=[0,y[1],[36,y[2]]];return[21,[0,[0,h],0,0,0,m0([0,t],0,0)]]},e)}}else if(i===36)return a0([0,u],function(a){var y=Fx(t,w0(a)),h=a0(0,function(X){return u0(X,36)},a)[1],k=nB(1,a);if(Lo(k))var A=0,g=[0,d6(k)];else if(u6(k))var A=0,g=[0,km(k,x)];else if(W(k)===48)var A=0,g=[0,l(vX(0),k)];else if(iO(k))var A=0,g=[0,UO(k)];else{var I=l(lx[10],k),C=e2(0,0,k);if(C[0]===0)var U=C[1],B=I;else var R=C[1][2],L=0,U=L,B=p(R,I,function(e0,i0){return p(qx(e0,an,96),e0,i0)});var A=U,g=[1,B]}return[20,[0,h,g,m0([0,y],[0,A],0)]]},e)}if(u6(e))return a0([0,u],function(a){var y=km(a,x);return[21,[0,[0,y],0,0,1,m0([0,t],0,0)]]},e);if(Lo(e))return a0([0,u],function(a){l(Wd(a),x);var y=d6(a);return[21,[0,[0,y],0,0,1,m0([0,t],0,0)]]},e);if(typeof i=="number"){var f=i+mT|0;if(4>>0){if(f===24&&e[28][2])return a0([0,u],function(a){var y=p(lx[3],[0,x],a);return[21,[0,[0,y],0,0,1,m0([0,t],0,0)]]},e)}else if(1>>0)return a0([0,u],function(a){var y=p(lx[3],[0,x],a);return[21,[0,[0,y],0,0,1,m0([0,t],0,0)]]},e)}if(iO(e))return a0([0,u],function(a){var y=UO(a);return[21,[0,[0,y],0,0,1,m0([0,t],0,0)]]},e);if(typeof i=="number"&&_1===i)return a0([0,u],function(a){var y=Nx(a);u0(a,_1);var h=W(a),k=0;if(typeof h!="number"&&h[0]===4&&!N(h[3],Ct)){$0(a);var A=[0,_2(a)];k=1}if(!k)var A=0;var g=l(o3,a),I=g[1];return[21,[0,0,[0,[1,[0,y,A]]],[0,I],1,m0([0,t],[0,g[2]],0)]]},e);var o=v1(e,61)?0:1;return v1(e,0)?a0([0,u],function(a){var y=G0(Sm,0,a,0);u0(a,1);var h=W(a),k=0;if(typeof h!="number"&&h[0]===4&&!N(h[3],il)){var A=l(o3,a),g=A[2],I=[0,A[1]];k=1}if(!k){p(pL,a,y);var C=e2(0,0,a),R=C[0]===0?C[1]:C[1][1],g=R,I=0}return[21,[0,0,[0,[0,y]],I,o,m0([0,t],[0,g],0)]]},e):(S1(U30,e),p(lx[3],[0,x],e))}),C0(yL,function(x){var r=x?x[1]:0;function e(u){1-T1(u)&&Bx(u,Rs);var i=w0(u);u0(u,60);var f=tB(1,Qs(1,u)),o=Fx(i,w0(f));u0(f,49);var a=W(f);if(typeof a=="number")switch(a){case 36:var y=Fx(o,w0(f)),h=a0(0,function(N0){return u0(N0,36)},f)[1],k=nB(1,f),A=W(k),g=0;if(typeof A=="number")switch(A){case 15:var I=0,C=I,R=[0,[1,a0(0,function(N0){return p(Tm,0,N0)},k)]];g=1;break;case 40:var C=0,R=[0,[2,a0(0,l(_m,0),k)]];g=1;break}else if(A[0]===4&&!N(A[3],vo)&&k[28][1]){var C=0,R=[0,[3,a0(0,l(wm,0),k)]];g=1}if(!g){var L=qs(k),U=e2(0,0,k);if(U[0]===0)var J=U[1],e0=L;else var B=U[1][2],X=0,J=X,e0=p(B,L,function(I0,Q){return p(qx(I0,Sa,97),I0,Q)});var C=J,R=[0,[4,e0]]}return[9,[0,[0,h],R,0,0,m0([0,y],[0,C],0)]];case 48:if(f[28][2]){var i0=zX[1],j=a0(0,function(N0){return p(i0,0,N0)},f);return[9,[0,0,[0,[8,j]],0,0,m0([0,o],0,0)]]}break;case 53:if(r){var Y=a0(0,l(_6,0),f);return[9,[0,0,[0,[7,Y]],0,0,m0([0,o],0,0)]]}break;case 61:if(r){var z=a0(0,l(k6,0),f);return[9,[0,0,[0,[5,z]],0,0,m0([0,o],0,0)]]}break;case 62:var F=a0(0,p(h6,O30,0),f);return[9,[0,0,[0,[6,F]],0,0,m0([0,o],0,0)]];case 106:var t0=Nx(f);u0(f,_1);var $=W(f),f0=0;if(typeof $!="number"&&$[0]===4&&!N($[3],Ct)){$0(f);var c0=[0,p(lx[13],0,f)];f0=1}if(!f0)var c0=0;var v0=l(o3,f),s0=v0[1];return[9,[0,0,0,[0,[1,[0,t0,c0]]],[0,s0],m0([0,o],[0,v0[2]],0)]];case 15:case 24:case 27:case 28:case 40:var o0=W(f);if(typeof o0=="number"){var E0=0;if(24<=o0){if(41>o0){var k0=0;switch(o0+mT|0){case 0:var M0=[0,[0,a0(0,function(N0){return G0(w6,0,N0,0)},f)]];break;case 3:var M0=[0,[0,a0(0,function(N0){return G0(w6,2,N0,0)},f)]];break;case 4:var M0=[0,[0,a0(0,function(N0){return G0(w6,1,N0,0)},f)]];break;case 16:var M0=[0,[2,a0(0,l(_m,0),f)]];break;default:k0=1}if(!k0){var D0=M0;E0=1}}}else if(o0===15){var D0=[0,[1,a0(0,function(J0){return p(Tm,0,J0)},f)]];E0=1}if(E0)return[9,[0,0,D0,0,0,m0([0,o],0,0)]]}throw q0([0,Tr,L30],1)}else if(a[0]===4&&!N(a[3],vo)&&f[28][1]){var cx=[0,[3,a0(0,l(wm,0),f)]];return[9,[0,0,cx,0,0,m0([0,o],0,0)]]}var g0=W(f),Z0=0;typeof g0=="number"?g0===53?Bx(f,15):g0===61?Bx(f,16):Z0=1:Z0=1,u0(f,0);var n0=G0(Sm,0,f,0);u0(f,1);var nx=W(f),xx=0;if(typeof nx!="number"&&nx[0]===4&&!N(nx[3],il)){var yx=l(o3,f),px=yx[2],Tx=[0,yx[1]];xx=1}if(!xx){p(pL,f,n0);var O0=e2(0,0,f),P0=O0[0]===0?O0[1]:O0[1][1],px=P0,Tx=0}return[9,[0,0,0,[0,[0,n0]],Tx,m0([0,o],[0,px],0)]]}var t=0;return function(u){return a0(t,e,u)}});var vW=function x(r,e){return x.fun(r,e)},aW=function x(r,e){return x.fun(r,e)},A6=function x(r,e){return x.fun(r,e)},gm=function(x,r){return function(e){if(!e)return gx(r);var t=e[1];if(t[0]!==0){var u=t[1],i=u[1];if(e[2]){var f=e[2];return ex(x,[0,i,68]),l(gm(x,r),f)}var o=u[2],a=o[2];return l(gm(x,[0,[1,[0,i,[0,p(A6,x,o[1]),a]]],r]),0)}var y=t[1],h=y[2],k=e[2],A=y[1];switch(h[0]){case 0:var g=h[2],I=h[1],C=h[3];switch(I[0]){case 0:var R=[0,I[1]];break;case 1:var R=[1,I[1]];break;case 2:var R=[2,I[1]];break;case 3:var R=[3,I[1]];break;case 4:var R=Rx(ml0);break;default:var R=[4,I[1]]}var L=g[2],U=0;if(L[0]===2){var B=L[1];if(!B[1]){var X=[0,B[3]],J=B[2];U=1}}if(!U)var X=0,J=p(A6,x,g);var e0=[0,[0,[0,A,[0,R,J,X,C]]],r];break;case 1:ex(x,[0,h[2][1],54]);var e0=r;break;default:ex(x,[0,h[2][1],kl0]);var e0=r}return l(gm(x,e0),k)}};C0(vW,function(x,r){var e=r[2],t=e[2],u=e[1],i=r[1],f=n3(x);return[0,i,[0,[0,l(gm(x,0),u),f,t]]]});var lW=function(x,r){var e=r[1];return l(lx[23],r)?[0,p(A6,x,r)]:(ex(x,[0,e,40]),0)},v3=function(x,r){return function(e){if(!e)return gx(r);var t=e[1];switch(t[0]){case 0:var u=t[1],i=u[2];if(i[0]===2){var f=i[1];if(!f[1]){var o=e[2];return l(v3(x,[0,[0,[0,u[1],[0,f[2],[0,f[3]]]]],r]),o)}}var a=e[2],y=lW(x,u);if(y)var h=y[1],k=[0,[0,[0,h[1],[0,h,0]]],r];else var k=r;return l(v3(x,k),a);case 1:var A=t[1],g=A[1];if(e[2]){var I=e[2];return ex(x,[0,g,20]),l(v3(x,r),I)}var C=A[2],R=C[2],L=lW(x,C[1]),U=L?[0,[1,[0,g,[0,L[1],R]]],r]:r;return l(v3(x,U),0);default:var B=e[2];return l(v3(x,[0,[2,t[1]],r]),B)}}};C0(aW,function(x,r){var e=r[2],t=e[2],u=e[1],i=r[1],f=n3(x);return[0,i,[1,[0,l(v3(x,0),u),f,t]]]}),C0(A6,function(x,r){var e=r[2],t=r[1];switch(e[0]){case 0:return p(aW,x,[0,t,e[1]]);case 8:var u=e[1],i=u[2][1],f=u[1],o=0;if(x[5]&&Xv(i)?ex(x,[0,f,75]):o=1,o&&1-x[5]){var a=0;if(x[18]&&Nr(i,U2)?ex(x,[0,f,Ps]):a=1,a){var y=x[19],h=y&&Nr(i,_v);h&&ex(x,[0,f,6])}}return[0,t,[2,[0,u,n3(x),0]]];case 23:return p(vW,x,[0,t,e[1]]);default:return[0,t,[3,[0,t,e]]]}});var g6=function(x,r){var e=W(x);if(typeof e=="number"){if(e===6)return a0(0,function(i){var f=w0(i);u0(i,6);for(var o=0;;){var a=W(i);if(typeof a=="number"){var y=0;if(13<=a)Er===a&&(y=1);else if(7<=a)switch(a-7|0){case 0:y=1;break;case 2:var h=Nx(i);u0(i,9);var o=[0,[2,h],o];continue;case 5:var k=w0(i),A=a0(0,function(j){return u0(j,12),g6(j,r)},i),g=A[1],I=A[2],C=[1,[0,g,[0,I,m0([0,k],0,0)]]];W(i)!==7&&(ex(i,[0,g,20]),W(i)===9&&$0(i));var o=[0,C,o];continue}if(y){var R=gx(o),L=w0(i);u0(i,7);var U=W(i)===86?[1,Fv(i)]:n3(i);return[1,[0,R,U,K1([0,f],[0,mx(i)],L,0)]]}}var B=a0(0,function(i0){var j=g6(i0,r),Y=W(i0),z=0;if(typeof Y=="number"&&Y===82){u0(i0,82);var F=[0,l(lx[10],i0)];z=1}if(!z)var F=0;return[0,j,F]},i),X=B[2],J=[0,[0,B[1],[0,X[1],X[2]]]];W(i)!==7&&u0(i,9);var o=[0,J,o]}},x);if(!e){var t=function(i){var f=W(i);return typeof f=="number"&&f===82?(u0(i,82),[0,l(lx[10],i)]):0};return a0(0,function(i){var f=w0(i);u0(i,0);for(var o=0,a=0,y=0;;){var h=W(i);if(typeof h=="number"){var k=0;if(h!==1&&Er!==h&&(k=1),!k){a&&ex(i,[0,a[1],94]);var A=gx(y),g=w0(i);u0(i,1);var I=mx(i),C=W(i)===86?[1,Fv(i)]:n3(i);return[0,[0,A,C,K1([0,f],[0,I],g,0)]]}}if(W(i)===12)var R=w0(i),L=a0(0,function(Tx){return u0(Tx,12),g6(Tx,r)},i),U=L[2],B=L[1],X=[0,[1,[0,B,[0,U,m0([0,R],0,0)]]]];else{var J=Nx(i),e0=p(lx[20],0,i),i0=W(i),j=0;if(typeof i0=="number"&&i0===86){u0(i,86);var Y=a0([0,J],function(O0){var P0=g6(O0,r);return[0,P0,t(O0)]},i),z=Y[2],F=e0[2],t0=z[2],$=z[1],f0=Y[1];switch(F[0]){case 0:var c0=[0,F[1]];break;case 1:var c0=[1,F[1]];break;case 2:var c0=[2,F[1]];break;case 3:var c0=[3,F[1]];break;case 4:var c0=Rx(yl0);break;default:var c0=[4,F[1]]}var X=[0,[0,[0,f0,[0,c0,$,t0,0]]]]}else j=1;if(j){var v0=e0[2];if(v0[0]===3){var s0=v0[1],o0=s0[2][1],E0=s0[1];Bd(o0)?ex(i,[0,E0,99]):r3(o0)&&vt(i,[0,E0,84]);var k0=a0([0,J],function(O0,P0){return function(N0){var J0=[0,P0,[2,[0,O0,n3(N0),0]]];return[0,J0,t(N0)]}}(s0,E0),i),M0=k0[2],X=[0,[0,[0,k0[1],[0,[3,s0],M0[1],M0[2],1]]]]}else{S1(dl0,i);var X=0}}}if(X){var D0=X[1],cx=D0[1][1],g0=o?(ex(i,[0,cx,68]),0):a;if(D0[0]===0)var n0=g0,nx=o;else var Z0=W(i)===9?[0,Nx(i)]:0,n0=Z0,nx=1;W(i)!==1&&u0(i,9);var o=nx,a=n0,y=[0,D0,y]}}},x)}}var u=G0(lx[14],x,0,r);return[0,u[1],[2,u[2]]]},Nm=function(x){var r=W(x);if(typeof r=="number"){var e=r+yz|0,t=0;if(6>>0?e===14&&(t=1):4>>0&&(t=1),t)return mx(x)}return b2(x)?Uo(x):0},pW=function(x){return W(x)===1?0:[0,l(lx[7],x)]},bs=function(x){var r=Nx(x),e=W(x),t=0;if(typeof e!="number"&&e[0]===8){var u=e[1];t=1}if(!t){S1(Al0,x);var u=gl0}var i=w0(x);$0(x);var f=W(x),o=0;if(typeof f=="number"){var a=f+CM|0,y=0;if(72>>0?a===76&&(y=1):70>>0&&(y=1),y){var h=mx(x);o=1}}if(!o)var h=Nm(x);return[0,r,[0,u,m0([0,i],[0,h],0)]]},yW=function(x){var r=hr(1,x);if(typeof r=="number"){if(r===10)for(var e=a0(0,function(i){var f=[0,bs(i)];return u0(i,10),[0,f,bs(i)]},x);;){var t=W(x);if(typeof t=="number"&&t===10){var u=e[1],e=a0([0,u],function(f){return function(o){return u0(o,10),[0,[1,f],bs(o)]}}(e),x);continue}return[2,e]}if(r===86)return[1,a0(0,function(i){var f=bs(i);return u0(i,86),[0,f,bs(i)]},x)]}return[0,bs(x)]},N6=function(x,r){return Nr(x[2][1],r[2][1])},dW=function(x,r){var e=x[2],t=e[1],u=r[2],i=u[1],f=0,o=e[2],a=u[2];if(t[0]===0){var y=t[1];if(i[0]===0)var k=N6(y,i[1]);else f=1}else{var h=t[1];if(i[0]===0)f=1;else var k=dW(h,i[1])}if(f)var k=0;return k&&N6(o,a)},Im=function(x,r){switch(x[0]){case 0:var e=x[1];if(r[0]===0)return N6(e,r[1]);break;case 1:var t=x[1];if(r[0]===1){var u=t[2],i=r[1][2],f=u[2],o=i[2],a=N6(u[1],i[1]);return a&&N6(f,o)}break;default:var y=x[1];if(r[0]===2)return dW(y,r[1])}return 0},hL=function(x){switch(x[0]){case 0:return x[1][1];case 1:return x[1][1];default:return x[1][1]}},mW=function x(r,e){return x.fun(r,e)},_L=function x(r,e){return x.fun(r,e)},wL=function x(r,e){return x.fun(r,e)};C0(mW,function(x,r){var e=W(r);if(typeof e=="number"){if(e===0){J1(r,0);var t=a0(0,function(A){u0(A,0);var g=W(A),I=0;if(typeof g=="number"&&g===12){var C=w0(A);u0(A,12);var R=l(lx[10],A),B=[3,[0,R,m0([0,C],0,0)]];I=1}if(!I)var L=pW(A),U=L?0:w0(A),B=[2,[0,L,K1(0,0,U,0)]];return u0(A,1),B},r),u=t[2],i=t[1];return W1(r),[0,i,u]}}else if(e[0]===9){var f=e[3],o=e[2],a=e[1];return u0(r,e),[0,a,[4,[0,o,f]]]}var y=p(wL,x,r),h=y[2],k=y[1];return tn<=h[1]?[0,k,[1,h[2]]]:[0,k,[0,h[2]]]});var Pm=function(x){switch(x[0]){case 0:return x[1][2][1];case 1:var r=x[1][2],e=r[1],t=Zx(hl0,r[2][2][1]);return Zx(e[2][1],t);default:var u=x[1][2],i=u[1],f=u[2],o=i[0]===0?i[1][2][1]:Pm([2,i[1]]);return Zx(o,Zx(_l0,f[2][1]))}};C0(_L,function(x,r){var e=w0(r),t=a0(0,function(Rr){u0(Rr,98);var U1=W(Rr);if(typeof U1=="number"){if(U1===99)return $0(Rr),Tl0}else if(U1[0]===8){var _=yW(Rr),b=0;if(T1(Rr)&&W(Rr)===98&&Ue!==hr(1,Rr)){var x0=Zd(Rr,0,am);b=1}if(!b)var x0=0;for(var S0=0;;){var H=W(Rr);if(typeof H=="number"){if(H===0){var h0=w0(Rr);J1(Rr,0);var Y0=a0(0,function(Vx){u0(Vx,0),u0(Vx,12);var er=l(lx[10],Vx);return u0(Vx,1),er},Rr),U0=Y0[2],tx=Y0[1];W1(Rr);var S0=[0,[1,[0,tx,[0,U0,m0([0,h0],[0,Nm(Rr)],0)]]],S0];continue}}else if(H[0]===8){var S0=[0,[0,a0(0,function(Vx){var er=hr(1,Vx),Jx=0;if(typeof er=="number"&&er===86){var Or=[1,a0(0,function(ke){var lt=bs(ke);return u0(ke,86),[0,lt,bs(ke)]},Vx)];Jx=1}if(!Jx)var Or=[0,bs(Vx)];var Xx=W(Vx),X2=0;if(typeof Xx=="number"&&Xx===82){u0(Vx,82);var at=w0(Vx),de=W(Vx),En=0;if(typeof de=="number")if(de===0){var ro=w0(Vx);J1(Vx,0);var An=a0(0,function(ke){u0(ke,0);var lt=pW(ke);return u0(ke,1),lt},Vx),fs=An[1],me=An[2];W1(Vx);var gn=[0,me,K1([0,ro],[0,Nm(Vx)],0,0)];gn[1]||ex(Vx,[0,fs,51]);var re=[0,[1,[0,fs,gn]]]}else En=1;else if(de[0]===10){var Vt=de[3],dr=de[2],Zt=de[1];u0(Vx,de);var re=[0,[0,[0,Zt,[0,dr,Vt,m0([0,at],[0,Nm(Vx)],0)]]]]}else En=1;if(En){Bx(Vx,39);var re=[0,[0,[0,Nx(Vx),El0]]]}var Nn=re;X2=1}if(!X2)var Nn=0;return[0,Or,Nn]},Rr)],S0];continue}var Wx=gx(S0),Lx=[0,ao,[0,_,x0,v1(Rr,Ue),Wx]];return v1(Rr,99)?[0,Lx]:(Hs(Rr,99),[1,Lx])}}return Hs(Rr,99),Sl0},r);W1(r);var u=t[2];if(u[0]===0)var i=u[1],f=typeof i=="number"?0:i[2][3];else var f=1;if(f)var o=Og,a=o,y=a0(0,function(Rr){return 0},r);else{J1(r,3);for(var h=t[2][1],k=typeof h=="number"?0:[0,h[2][1]],A=Nx(r),g=0;;){var I=x3(r),C=0;if(g&&k){var R=g[1],L=R[2],U=0,B=k[1],X=g[2];if(L[0]===0){var J=L[1],e0=J[2];if(e0)var i0=e0[1][2][1],j=1-Im(J[1][2][1],i0),Y=j&&Im(B,i0);else U=1}else U=1;if(U)var Y=0;if(Y){var z=R[2],F=0;if(z[0]===0){var t0=z[1],$=t0[2];if($){var f0=$[1],c0=i1(R[1],t0[3][1]),v0=[0,ao,f0],s0=[0,c0,[0,[0,t0[1],0,t0[3],t0[4]]]];F=1}}if(!F)var v0=Og,s0=R;W1(r);var o0=[0,gx([0,s0,X]),I,v0];C=1}}if(!C){var E0=W(r),k0=0;if(typeof E0=="number"){if(E0===98){J1(r,2);var M0=W(r),D0=hr(1,r),cx=0;if(typeof M0=="number"&&M0===98&&typeof D0=="number"){var g0=0;if((Ue===D0||Er===D0)&&(g0=1),g0){var Z0=a0(0,function(b){u0(b,98),u0(b,Ue);var x0=W(b);if(typeof x0=="number"){if(x0===99)return $0(b),tn}else if(x0[0]===8){var S0=yW(b);return Vd(b,99),[0,ao,[0,S0]]}return Hs(b,99),tn},r),n0=Z0[2],nx=Z0[1],xx=typeof n0=="number"?[0,tn,nx]:[0,ao,[0,nx,n0[2]]],yx=r[24][1],px=0;if(yx){var Tx=yx[2];if(Tx){var O0=Tx[2];px=1}}if(!px)var O0=Rx(Hc0);r[24][1]=O0;var P0=ba(r),N0=bl(r[25][1],P0);r[26][1]=N0;var o0=[0,gx(g),I,xx];k0=1,cx=1}}if(!cx){var J0=p(_L,k,r),I0=J0[2],Q=J0[1],G=tn<=I0[1]?[0,Q,[1,I0[2]]]:[0,Q,[0,I0[2]]],g=[0,G,g];continue}}else if(Er===E0){S1(0,r);var o0=[0,gx(g),I,Og];k0=1}}if(!k0){var g=[0,p(mW,k,r),g];continue}}var V=o0[3],l0=o0[1],d0=I?I[1]:A,a=V,y=[0,i1(A,d0),l0];break}}var A0=mx(r),M=0;if(typeof a!="number"){var L0=a[1],V0=0;if(ao===L0){var B0=a[2],vx=B0[2][1],b0=t[2],hx=B0[1];if(b0[0]===0){var W0=b0[1];if(typeof W0=="number")ex(r,[0,hL(vx),wl0]);else{var T=W0[2][1];if(1-Im(vx,T)){var K=0;if(x&&Im(x[1],vx)){var H0=[18,Pm(T)];ex(r,[0,hL(T),H0]),K=1}if(!K){var sx=[13,Pm(T)];ex(r,[0,hL(vx),sx])}}}}var ux=hx;V0=1}else if(tn===L0){var z0=a[2],Px=t[2];if(Px[0]===0){var kx=Px[1];typeof kx!="number"&&ex(r,[0,z0,[13,Pm(kx[2][1])]])}var ux=z0;V0=1}if(V0){var $x=ux;M=1}}if(!M)var $x=t[1];var Qx=t[2][1],j0=t[1];if(typeof Qx=="number"){var rr=0,zx=m0([0,e],[0,A0],0);if(typeof a!="number"){var X0=a[1],ir=0;if(ao===X0){var K0=a[2][1];ir=1}else if(tn===X0){var K0=a[2];ir=1}if(ir){var Sr=K0;rr=1}}if(!rr)var Sr=$x;var Dr=[0,tn,[0,j0,Sr,y,zx]]}else{var ax=Qx[2],br=0,t2=m0([0,e],[0,A0],0);if(typeof a!="number"&&ao===a[1]){var k1=[0,a[2]];br=1}if(!br)var k1=0;var Dr=[0,ao,[0,[0,j0,ax],k1,y,t2]]}return[0,i1(t[1],$x),Dr]}),C0(wL,function(x,r){return J1(r,2),p(_L,x,r)});var kW=function(x,r){var e=_2(r);return Fd(x,r,e),e},hW=function x(r){return x.fun(r)},TL=function x(r,e,t){return x.fun(r,e,t)},SL=function x(r){return x.fun(r)},_W=function x(r,e){return x.fun(r,e)},EL=function x(r,e){return x.fun(r,e)},AL=function x(r,e){return x.fun(r,e)},Cm=function x(r,e){return x.fun(r,e)},I6=function x(r,e){return x.fun(r,e)},Rm=function x(r){return x.fun(r)},wW=function x(r){return x.fun(r)},TW=function x(r){return x.fun(r)},SW=function x(r,e,t){return x.fun(r,e,t)},EW=function x(r){return x.fun(r)},AW=function x(r){return x.fun(r)},aE0=l(wL,0);C0(hW,function(x){var r=W(x),e=0;if(typeof r!="number"&&r[0]===6){var t=r[2],u=r[1];$0(x);var i=[0,[0,u,t]];e=1}if(!e)var i=0;var f=w0(x),o=gx(f),a=5;x:for(;;){if(o)for(var y=o[2],h=o[1],k=h[2],A=h[1],g=k[2],I=0,C=Gx(g);;){if(C<(I+5|0))var R=0;else{var L=Nr(z2(g,I,a),"@flow");if(!L){var I=I+1|0;continue}var R=L}if(!R){var o=y;continue x}x[31][1]=A[3];var U=gx([0,[0,A,k],y]);break}else var U=0;if(U===0){var B=0;if(f){var X=f[1],J=X[2];if(!J[1]){var e0=J[2],i0=0,j=X[1];if(1<=Gx(e0)&&C1(e0,0)===42){x[31][1]=j[3];var Y=[0,X,0];B=1}else i0=1}}if(!B)var Y=0}else var Y=U;var z=p(_W,x,function(v0){return 0}),F=Nx(x);u0(x,Er);var t0=h2[1];if(b1(function(v0,s0){var o0=s0[2];switch(o0[0]){case 20:return o6(x,v0,hn(0,[0,o0[1][1],Ll0]));case 21:var E0=o0[1],k0=E0[1];if(k0){if(!E0[2]){var M0=k0[1],D0=M0[2],cx=0,g0=M0[1];switch(D0[0]){case 37:var Z0=D0[1][1],n0=0,nx=b1(function(P0,N0){return b1(aO,P0,[0,N0[2][1],0])},n0,Z0);return b1(function(P0,N0){return o6(x,P0,N0)},v0,nx);case 2:case 26:var xx=D0[1][1];if(xx)var yx=xx[1];else cx=1;break;case 3:case 19:case 29:case 35:case 36:var yx=D0[1][1];break;default:cx=1}return cx?v0:o6(x,v0,hn(0,[0,g0,yx[2][1]]))}}else{var px=E0[2];if(px){var Tx=px[1];if(Tx[0]!==0)return v0;var O0=Tx[1];return b1(function(P0,N0){var J0=N0[2],I0=J0[2],Q=J0[1];return I0?o6(x,P0,I0[1]):o6(x,P0,Q)},v0,O0)}}return v0;default:return v0}},t0,z),z)var $=Ol(gx(z))[1],f0=i1(Ol(z)[1],$);else var f0=F;var c0=gx(x[2][1]);return[0,f0,[0,z,i,m0([0,Y],0,0),c0]]}});var lE0=function(x,r,e,t){for(var u=x,i=t;;){var f=i[3],o=i[2],a=i[1],y=W(u);if(typeof y=="number"&&Er===y)return[0,u,a,o,f];if(l(r,y))return[0,u,a,o,f];if(typeof y!="number"&&y[0]===2){var h=l(e,u),k=[0,h,o],A=h[2];if(A[0]===22){var g=A[1][2];if(g){var I=Nr(g[1],"use strict"),C=h[1],R=I&&1-u[21];R&&ex(u,[0,C,83]);var L=I?Qs(1,u):u,U=[0,y,a],B=f||I,u=L,i=[0,U,k,B];continue}}return[0,u,a,k,f]}return[0,u,a,o,f]}};C0(TL,function(x,r,e){var t=lE0(eB(1,x),r,e,Cl0),u=t[4],i=t[3],f=t[2],o=eB(0,t[1]),a=gx(f);return S2(function(y){if(typeof y!="number"&&y[0]===2){var h=y[1],k=h[4],A=h[1];return k&&vt(o,[0,A,80])}return Rx(Zx(Ol0,Zx(kY(y),Rl0)))},a),[0,o,i,u]}),C0(SL,function(x){var r=uL(x),e=W(x);if(typeof e=="number"){var t=e-49|0;if(11>=t>>>0)switch(t){case 0:return p(nW,r,x);case 1:l(Wd(x),r);var u=hr(1,x),i=0;if(typeof u=="number"){var f=0;if((u===4||u===10)&&(f=1),f){var o=S6(x);i=1}}if(!i)var o=kL(x);return o;case 11:if(hr(1,x)===49)return l(Wd(x),r),p(yL,0,x);break}}return p(I6,[0,r],x)}),C0(_W,function(x,r){var e=G0(TL,x,r,SL),t=e[2],u=p(EL,r,e[1]);return b1(function(i,f){return[0,f,i]},u,t)}),C0(EL,function(x,r){for(var e=0;;){var t=W(r);if(typeof t=="number"&&Er===t||l(x,t))return gx(e);var e=[0,l(SL,r),e]}}),C0(AL,function(x,r){var e=G0(TL,r,x,function(f){return p(I6,0,f)}),t=e[3],u=e[2],i=p(Cm,x,e[1]);return[0,b1(function(f,o){return[0,o,f]},i,u),t]}),C0(Cm,function(x,r){for(var e=0;;){var t=W(r);if(typeof t=="number"&&Er===t||l(x,t))return gx(e);var e=[0,p(I6,0,r),e]}}),C0(I6,function(x,r){var e=x?x[1]:0;1-u6(r)&&l(Wd(r),e);var t=W(r);if(typeof t=="number"){if(t===27)return a0(xE0,bS0,r);if(t===28)return a0(eE0,rE0,r)}if(Lo(r))return d6(r);if(u6(r))return km(r,e);if(typeof t=="number"){var u=t+B1|0;if(14>=u>>>0)switch(u){case 0:if(r[28][2])return l(vX(0),r);break;case 5:return l(HX,r);case 12:return p(lL,0,r);case 13:return l(ZX,r);case 14:return l(FX,r)}}return iO(r)?UO(r):l(Rm,r)}),C0(Rm,function(x){var r=W(x);if(typeof r=="number"&&Vi>r)switch(r){case 0:return l(WX,x);case 8:return l(JX,x);case 16:return fW(x);case 19:return a0(WS0,XS0,x);case 20:return a0(ZS0,VS0,x);case 22:return a0(FS0,$S0,x);case 23:return a0(HS0,QS0,x);case 24:return a0(GS0,qS0,x);case 25:return a0(nE0,tE0,x);case 26:return l(XX,x);case 32:return l(YX,x);case 35:return l(BX,x);case 37:return a0(jS0,DS0,x);case 39:return a0(KS0,zS0,x);case 43:return fW(x);case 59:return a0(MS0,US0,x);case 113:return S1(Nl0,x),[0,Nx(x),Il0];case 1:case 5:case 7:case 9:case 10:case 11:case 12:case 17:case 18:case 33:case 34:case 36:case 38:case 41:case 42:case 49:case 83:case 86:return S1(Pl0,x),$0(x),l(Rm,x)}if(Lo(x)){var e=d6(x);return Wv(x,e[1]),e}if(typeof r=="number"&&r===28&&hr(1,x)===6){var t=t6(1,x);return ex(x,[0,i1(Nx(x),t),4]),S6(x)}return es(x)?a0(iE0,uE0,x):(u6(x)&&(S1(0,x),$0(x)),S6(x))}),C0(wW,function(x){var r=Nx(x),e=l(Wt,x),t=W(x);return typeof t=="number"&&t===9?G0(ym,x,r,[0,e,0]):e}),C0(TW,function(x){var r=Nx(x),e=l(s3,x),t=W(x);return typeof t=="number"&&t===9?[0,G0(ym,x,r,[0,v2(x,e),0])]:e}),C0(SW,function(x,r,e){var t=r?r[1]:0;return a0(0,function(u){var i=1-t,f=kW([0,e],u),o=i&&(W(u)===85?1:0);return o&&(1-T1(u)&&Bx(u,_1),u0(u,85)),[0,f,rX(u),o]},x)}),C0(EW,function(x){var r=Nx(x),e=w0(x);u0(x,0);var t=p(Cm,function(o){return o===1?1:0},x),u=Nx(x),i=t===0?w0(x):0;u0(x,1);var f=[0,t,K1([0,e],[0,mx(x)],i,0)];return[0,i1(r,u),f]}),C0(AW,function(x){function r(t){var u=w0(t);u0(t,0);var i=p(AL,function(g){return g===1?1:0},t),f=i[1],o=i[2],a=f===0?w0(t):0;u0(t,1);var y=W(t),h=0;if(!x){var k=0;if((typeof y!="number"||y!==1&&Er!==y)&&(k=1),k)if(b2(t)){var A=Uo(t);h=1}else{var A=0;h=1}}if(!h)var A=mx(t);return[0,[0,f,K1([0,u],[0,A],a,0)],o]}var e=0;return function(t){return Qd(e,r,t)}}),MJ(jl0[1],lx,[0,hW,Rm,I6,Cm,AL,EL,wW,TW,dX,Wt,vm,IS0,kW,SW,EW,AW,aE0,g6,A6,jo,km,LS0,hS0,lm,Fv,pm]);var gL=[Qr,$w0,zs(0)],NL=[0,gL,[0]],pE0=id(Zw0,function(x){var r=NR(x,Vw0)[41],e=RR(x,0,0,Ww0,zR,1)[1];return LJ(x,r,function(t,u){return 0}),function(t,u){var i=fd(u,x);return l(e,i),OR(u,i,x)}}),yE0=Ov(NL)===Qr?NL:NL[1];FC(UE,yE0);var xo=p0,B2=null,gW=void 0,dE0=function(x){throw x},Om=function(x){return x!==gW?1:0};xo.String,xo.RegExp,xo.Object,xo.Date,xo.Math;var mE0=xo.Array,kE0=xo.Error,NW=function(x){return l(dE0,x)};xo.JSON,sJ(function(x){return x[1]===gL?[0,Mt(x[2].toString())]:0}),sJ(function(x){return x instanceof mE0?0:[0,Mt(x.toString())]});var IW=[0,0],hE0=nr,is=function(x){return UV(Ml(x))},Y1=function(x){return LV(Ml(x))},Lr=function(x,r){return Y1(gx(Qy(x,r)))},Ox=function(x,r){return r?l(x,r[1]):B2},zo=function(x,r){return r[0]===0?B2:l(x,r[1])},PW=function(x){return is([0,[0,Xw0,x[1]],[0,[0,Bw0,x[2]],0]])},CW=function(x){var r=x[1],e=r?nr(r[1][1]):B2,t=[0,[0,Kw0,PW(x[3])],0];return is([0,[0,Yw0,e],[0,[0,Jw0,PW(x[2])],t]])},E1=function(x){if(!x)return 0;var r=x[1],e=r[1];return m0([0,e],[0,Fx(r[3],r[2])],0)},P6=function(x,r,e){var t=r[e];return Om(t)?t|0:x},_E0=function(x,r){var e=jy(r,gW)?{}:r,t=Mt(x),u=P6(Pl[5],e,Qw0),i=P6(Pl[4],e,Hw0),f=P6(Pl[3],e,qw0),o=P6(Pl[2],e,Gw0),a=[0,P6(Pl[1],e,bw0),o,f,i,u,0,0],y=e[aM],h=Om(y),k=h&&y|0,A=e[XU],g=Om(A)?A|0:1,I=e.all_comments,C=Om(I)?I|0:1,R=[0,0],L=k?[0,function(dt){return R[1]=[0,dt,R[1]],0}]:0,U=Fw0[1],B=0;try{var X=0,J=QJ(t),e0=X,i0=J}catch(dt){var j=R1(dt);if(j!==To)throw q0(j,0);var Y=[0,[0,[0,B,Ja[2],Ja[3]],53],0],e0=Y,i0=QJ(ns0)}var z=[0,B,i0,Z00,0,a[4],pY,$00],F=[0,bl(z,0)],t0=[0,[0,e0],[0,0],h2[1],[0,0],a[5],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,[0,is0],[0,z],F,[0,L],a,B,[0,0],[0,us0]],$=l(lx[1],t0),f0=gx(t0[1][1]),c0=[0,vO[1],0],v0=gx(b1(function(dt,m3){var q=dt[2],P=dt[1];return p(vO[3],m3,P)?[0,P,q]:[0,p(vO[4],m3,P),[0,m3,q]]},c0,f0)[2]);if(v0){var s0=v0[2],o0=v0[1];if(U)throw q0([0,jT0,o0,s0],1)}IW[1]=0;for(var E0=Gx(t)-0|0,k0=Vc(t),M0=0,D0=0;;){if(D0===E0)var cx=M0;else{var g0=se(k0,D0),Z0=0;if(0<=g0&&!(Jr=g0){var n0=4;yx=1}if(!yx)var n0=0}}}if(n0===0){var M0=oO(M0,D0,0),D0=D0+1|0;continue}if((E0-D0|0)>=n0){var px=n0-1|0,Tx=D0+n0|0;if(3>>0)throw q0([0,Tr,KQ],1);switch(px){case 0:var O0=se(k0,D0);break;case 1:var O0=(se(k0,D0)&31)<<6|se(k0,D0+1|0)&63;break;case 2:var O0=(se(k0,D0)&15)<<12|(se(k0,D0+1|0)&63)<<6|se(k0,D0+2|0)&63;break;default:var O0=(se(k0,D0)&7)<<18|(se(k0,D0+1|0)&63)<<12|(se(k0,D0+2|0)&63)<<6|se(k0,D0+3|0)&63}var M0=oO(M0,D0,[0,O0]),D0=Tx;continue}var cx=oO(M0,D0,0)}for(var P0=iv0,N0=gx([0,6,cx]);;){var J0=P0[3],I0=P0[2],Q=P0[1];if(!N0){var G=Ml(gx(J0));if(g)var l0=$;else var V=l(pE0[1],0),l0=p(qx(V,-201766268,98),V,$);if(C)var A0=l0;else var d0=l0[2],A0=[0,l0[1],[0,d0[1],d0[2],d0[3],0]];var M=function(q,P,D,T0){var R0=[0,qd(G,P[3]),0],rx=[0,[0,zl0,Y1([0,qd(G,P[2]),R0])],0],Sx=Fx(rx,[0,[0,Kl0,CW(P)],0]);if(D){var Dx=D[1],jx=Dx[1];if(jx){var bx=Dx[2];if(bx)var mr=[0,[0,Jl0,Pn(bx)],0],or=[0,[0,Yl0,Pn(jx)],mr];else var or=[0,[0,Bl0,Pn(jx)],0];var sr=or}else var _r=Dx[2],cr=_r?[0,[0,Xl0,Pn(_r)],0]:0,sr=cr;var Pr=sr}else var Pr=0;return is(Qc(Fx(Sx,Fx(Pr,[0,[0,Wl0,nr(q)],0])),T0))},L0=function(q){return Lr(z0,q)},V0=function(q){var P=q[2],D=P[3],T0=P[1],R0=q[1],rx=[0,[0,T90,nr(An(P[2]))],0];return M(E90,R0,D,[0,[0,S90,Lr(fs,T0)],rx])},B0=function(q){var P=q[2],D=P[5],T0=P[4],R0=P[2],rx=P[1],Sx=q[1],Dx=[0,[0,Kd0,Lr(U0,P[3])],0],jx=[0,[0,Jd0,re(0,T0)],Dx],bx=[0,[0,Yd0,Ox(a2,R0)],jx];return M(Xd0,Sx,D,[0,[0,Bd0,X0(rx)],bx])},vx=function(q,P){var D=P[2],T0=D[7],R0=D[5],rx=D[4],Sx=D[2],Dx=D[6],jx=D[3],bx=D[1],mr=P[1];if(rx)var or=rx[1][2],_r=or[2],cr=or[1],sr=g2(or[3],T0),Pr=_r,$r=[0,cr];else var sr=T0,Pr=0,$r=0;if(R0)var Wr=R0[1][2],Vr=Wr[1],Ur=g2(Wr[2],sr),Fr=Ur,x1=Lr(S0,Vr);else var Fr=sr,x1=Y1(0);var l1=[0,[0,q50,x1],[0,[0,H50,Lr(x0,Dx)],0]],p1=[0,[0,G50,Ox(In,Pr)],l1],f1=[0,[0,b50,Ox(K0,$r)],p1],h1=[0,[0,xy0,Ox(a2,jx)],f1],Cr=Sx[2],D1=Cr[2],n2=Sx[1],A1=[0,[0,ry0,M(sy0,n2,D1,[0,[0,cy0,Lr(H,Cr[1])],0])],h1];return M(q,mr,Fr,[0,[0,ey0,Ox(X0,bx)],A1])},b0=function(q,P){var D=P[2],T0=D[5],R0=D[4],rx=D[3],Sx=D[2],Dx=D[1],jx=P[1],bx=q?B50:X50,mr=[0,[0,W50,Ox(dr,R0)],0],or=[0,[0,V50,Ox(dr,rx)],mr],_r=[0,[0,Z50,Ox(a2,Sx)],or];return M(bx,jx,T0,[0,[0,$50,X0(Dx)],_r])},hx=function(q){var P=q[2],D=P[4],T0=P[2],R0=P[1],rx=q[1],Sx=[0,[0,z50,dr(P[3])],0],Dx=[0,[0,K50,Ox(a2,T0)],Sx];return M(Y50,rx,D,[0,[0,J50,X0(R0)],Dx])},W0=function(q){var P=q[2],D=P[3],T0=P[1],R0=q[1],rx=[0,[0,T50,Y0(P[2])],0];return M(E50,R0,D,[0,[0,S50,X0(T0)],rx])},T=function(q){var P=q[2],D=P[3],T0=q[1],R0=P[5],rx=P[4],Sx=P[2],Dx=P[1],jx=g2(E1(D[2][3]),R0),bx=D[2],mr=bx[1],or=bx[2],_r=[0,[0,i50,Ox(a2,Sx)],0],cr=[0,[0,f50,zo(Jx,rx)],_r],sr=[0,[0,c50,k1(mr)],cr],Pr=[0,[0,s50,Ox(U1,or)],sr],$r=[0,[0,o50,k1(mr)],Pr];return M(a50,T0,jx,[0,[0,v50,X0(Dx)],$r])},K=function(q){var P=q[2],D=P[6],T0=P[4],R0=P[7],rx=P[5],Sx=P[3],Dx=P[2],jx=P[1],bx=q[1],mr=Y1(T0?[0,U0(T0[1]),0]:0),or=D?Lr(S0,D[1][2][1]):Y1(0),_r=[0,[0,r50,mr],[0,[0,x50,or],[0,[0,b80,Lr(U0,rx)],0]]],cr=[0,[0,e50,re(0,Sx)],_r],sr=[0,[0,t50,Ox(a2,Dx)],cr];return M(u50,bx,R0,[0,[0,n50,X0(jx)],sr])},H0=function(q){var P=q[2],D=P[2],T0=P[1],R0=P[4],rx=P[3],Sx=q[1],Dx=i1(T0[1],D[1]),jx=[0,[0,H80,Ox(fo,rx)],0];return M(G80,Sx,R0,[0,[0,q80,Dr(Dx,[0,T0,[1,D],0])],jx])},sx=function(q){var P=q[2],D=P[2],T0=P[1],R0=P[4],rx=P[3],Sx=q[1],Dx=i1(T0[1],D[1]),jx=[0,[0,$80,nr(An(rx))],0];return M(Q80,Sx,R0,[0,[0,F80,Dr(Dx,[0,T0,[1,D],0])],jx])},ux=function(q){var P=q[2],D=P[2],T0=q[1],R0=[0,[0,V80,L0(P[1])],0];return M(Z80,T0,E1(D),R0)},z0=function(q){var P=q[2],D=q[1];switch(P[0]){case 0:return ux([0,D,P[1]]);case 1:var T0=P[1],R0=T0[2];return M(Gl0,D,R0,[0,[0,ql0,Ox(X0,T0[1])],0]);case 2:return vx(F50,[0,D,P[1]]);case 3:var rx=P[1],Sx=rx[4],Dx=rx[3],jx=rx[6],bx=rx[5],mr=Dx[2][3],or=rx[2],_r=rx[1],cr=Sx[0]===0?0:[0,Sx[1]],sr=g2(E1(mr),jx),Pr=[0,[0,Jy0,Ox(a2,or)],0],$r=[0,[0,Yy0,Ox(Jx,cr)],Pr],Wr=Dx[2],Vr=Wr[2],Ur=Wr[1];if(Vr)var Fr=Vr[1],x1=Fr[2],l1=x1[2],p1=Fr[1],f1=M($y0,p1,l1,[0,[0,Zy0,tx(x1[1])],0]),h1=Y1(gx([0,f1,Qy(h0,Ur)]));else var h1=Y1(Hc(h0,Ur));var Cr=[0,[0,Xy0,X0(_r)],[0,[0,By0,h1],$r]];return M(Vy0,D,sr,[0,[0,Wy0,ux(bx)],Cr]);case 4:var D1=P[1],n2=D1[2];return M(x60,D,n2,[0,[0,bl0,Ox(X0,D1[1])],0]);case 5:return M(r60,D,P[1][1],0);case 6:return K([0,D,P[1]]);case 7:return T([0,D,P[1]]);case 8:return W0([0,D,P[1]]);case 9:var A1=P[1],W2=A1[5],ee=A1[4],Ax=A1[3],Kr=A1[2],r1=A1[1];if(Ax){var lr=Ax[1];if(lr[0]!==0&&!lr[1][2])return M(t60,D,W2,[0,[0,e60,Ox(j0,ee)],0])}if(Kr){var Br=Kr[1];switch(Br[0]){case 0:var V1=sx(Br[1]);break;case 1:var V1=H0(Br[1]);break;case 2:var V1=K(Br[1]);break;case 3:var V1=T(Br[1]);break;case 4:var V1=dr(Br[1]);break;case 5:var V1=hx(Br[1]);break;case 6:var V1=b0(1,Br[1]);break;case 7:var V1=B0(Br[1]);break;default:var V1=W0(Br[1])}var he=V1}else var he=B2;var V2=[0,[0,n60,Ox(j0,ee)],0],_e=[0,[0,i60,he],[0,[0,u60,b(Ax)],V2]],$t=r1?1:0;return M(c60,D,W2,[0,[0,f60,!!$t],_e]);case 10:return H0([0,D,P[1]]);case 11:var N2=P[1],u2=N2[5],I2=N2[4],l2=N2[2],mt=N2[1],P2=[0,[0,A50,Lr(U0,N2[3])],0],kt=[0,[0,g50,re(0,I2)],P2],Ze=[0,[0,N50,Ox(a2,l2)],kt];return M(P50,D,u2,[0,[0,I50,X0(mt)],Ze]);case 12:var we=P[1],Te=we[1],Se=we[4],Ee=we[3],Ae=we[2],Z1=Te[0]===0?X0(Te[1]):j0(Te[1]),ge=0,ht=Ee?"ES":"CommonJS";return M(a60,D,Se,[0,[0,v60,Z1],[0,[0,o60,ux(Ae)],[0,[0,s60,ht],ge]]]);case 13:var $e=P[1],te=$e[2];return M(p60,D,te,[0,[0,l60,Jx($e[1])],0]);case 14:var C2=P[1],Ft=C2[4],os=C2[2],_t=C2[1],wt=[0,[0,U50,dr(C2[3])],0],Qt=[0,[0,M50,Ox(a2,os)],wt];return M(j50,D,Ft,[0,[0,D50,X0(_t)],Qt]);case 15:return b0(1,[0,D,P[1]]);case 16:return sx([0,D,P[1]]);case 17:var ne=P[1],Tt=ne[3],Ht=ne[1],ue=[0,[0,y60,K0(ne[2])],0];return M(m60,D,Tt,[0,[0,d60,z0(Ht)],ue]);case 18:return M(k60,D,P[1][1],0);case 19:var qt=P[1],Cn=qt[3],Gt=qt[1],Rn=[0,[0,Dd0,Y0(qt[2])],0];return M(zd0,D,Cn,[0,[0,jd0,X0(Gt)],Rn]);case 20:var bt=P[1],On=bt[2],$o=bt[3],xn=On[0]===0?z0(On[1]):K0(On[1]);return M(w60,D,$o,[0,[0,_60,xn],[0,[0,h60,nr(_(1))],0]]);case 21:var St=P[1],vs=St[5],as=St[4],ls=St[3],Fo=St[2],k3=St[1];if(Fo){var co=Fo[1];if(co[0]!==0){var Qo=co[1][2],ea=[0,[0,T60,nr(_(as))],0],h3=[0,[0,S60,Ox(X0,Qo)],ea];return M(A60,D,vs,[0,[0,E60,Ox(j0,ls)],h3])}}var _3=[0,[0,g60,nr(_(as))],0],ta=[0,[0,N60,Ox(j0,ls)],_3],na=[0,[0,I60,b(Fo)],ta];return M(C60,D,vs,[0,[0,P60,Ox(z0,k3)],na]);case 22:var Ln=P[1],w3=Ln[3],T3=Ln[1],S3=[0,[0,R60,Ox(hE0,Ln[2])],0];return M(L60,D,w3,[0,[0,O60,K0(T3)],S3]);case 23:var Ne=P[1],E3=Ne[5],A3=Ne[4],ua=Ne[3],ps=Ne[2],so=Ne[1],Ho=function(K6){return K6[0]===0?V0(K6[1]):K0(K6[1])},qo=[0,[0,U60,z0(A3)],0],g3=[0,[0,M60,Ox(K0,ua)],qo],ia=[0,[0,D60,Ox(K0,ps)],g3];return M(z60,D,E3,[0,[0,j60,Ox(Ho,so)],ia]);case 24:var ys=P[1],oo=ys[1],Go=ys[5],Et=ys[4],Fe=ys[3],ds=ys[2],At=oo[0]===0?V0(oo[1]):tx(oo[1]),rn=[0,[0,J60,z0(Fe)],[0,[0,K60,!!Et],0]];return M(X60,D,Go,[0,[0,B60,At],[0,[0,Y60,K0(ds)],rn]]);case 25:var en=P[1],bo=en[1],N3=en[5],I3=en[4],xv=en[3],P3=en[2],fa=bo[0]===0?V0(bo[1]):tx(bo[1]),Km=[0,[0,V60,z0(xv)],[0,[0,W60,!!I3],0]];return M(F60,D,N3,[0,[0,$60,fa],[0,[0,Z60,K0(P3)],Km]]);case 26:var Un=P[1],Jm=Un[3],Ym=Un[2],IL=Un[9],PL=Un[8],CL=Un[7],RL=Un[6],OL=Un[5],LL=Un[4],UL=Ym[2][4],ML=Un[1],DL=Jm[0]===0?Jm[1]:Rx(u80),jL=g2(E1(UL),IL),zL=[0,[0,i80,Ox(a2,PL)],0],KL=[0,[0,c80,!1],[0,[0,f80,Or(CL)],zL]],JL=[0,[0,v80,!!LL],[0,[0,o80,!!OL],[0,[0,s80,Ox(fo,RL)],KL]]],YL=[0,[0,a80,ux(DL)],JL],BL=[0,[0,l80,ur(Ym)],YL];return M(y80,D,jL,[0,[0,p80,Ox(X0,ML)],BL]);case 27:var C3=P[1],Bm=C3[3],XL=C3[4],WL=C3[2],VL=C3[1];if(Bm)var Xm=Bm[1][2],Wm=z0(bT0(Xm[1],Xm[2]));else var Wm=B2;var ZL=[0,[0,H60,z0(WL)],[0,[0,Q60,Wm],0]];return M(G60,D,XL,[0,[0,q60,K0(VL)],ZL]);case 28:var ca=P[1],Vm=ca[4],Zm=ca[3],$L=ca[5],FL=ca[2],QL=ca[1];if(Vm){var O6=Vm[1];if(O6[0]===0)var HL=O6[1],Fm=Hc(function(J6){var O3=J6[3],L3=J6[2],bm=J6[1],hU=L3?i1(O3[1],L3[1][1]):O3[1],_U=L3?L3[1]:O3,x9=0,wU=0;if(bm){var Y6=0;switch(bm[1]){case 0:var r9=bu;Y6=1;break;case 1:var r9=ws;Y6=1;break}if(Y6){var e9=r9;x9=1}}if(!x9)var e9=B2;var TU=[0,[0,Tw0,X0(_U)],[0,[0,ww0,e9],wU]];return M(Ew0,hU,0,[0,[0,Sw0,X0(O3)],TU])},HL);else var $m=O6[1],qL=$m[1],Fm=[0,M(_w0,qL,0,[0,[0,hw0,X0($m[2])],0]),0];var L6=Fm}else var L6=0;if(Zm)var Qm=Zm[1][1],GL=[0,[0,mw0,X0(Qm)],0],Hm=[0,M(kw0,Qm[1],0,GL),L6];else var Hm=L6;switch(QL){case 0:var U6=b60;break;case 1:var U6=x40;break;default:var U6=r40}var bL=[0,[0,t40,j0(FL)],[0,[0,e40,nr(U6)],0]];return M(u40,D,$L,[0,[0,n40,Y1(Hm)],bL]);case 29:return B0([0,D,P[1]]);case 30:var M6=P[1],xU=M6[3],rU=M6[1],eU=[0,[0,i40,z0(M6[2])],0];return M(c40,D,xU,[0,[0,f40,X0(rU)],eU]);case 31:var qm=P[1],tU=qm[2];return M(o40,D,tU,[0,[0,s40,Ox(K0,qm[1])],0]);case 32:var D6=P[1],nU=D6[3],uU=D6[1],iU=[0,[0,v40,Lr(br,D6[2])],0];return M(l40,D,nU,[0,[0,a40,K0(uU)],iU]);case 33:var Gm=P[1],fU=Gm[2];return M(y40,D,fU,[0,[0,p40,K0(Gm[1])],0]);case 34:var R3=P[1],cU=R3[4],sU=R3[2],oU=R3[1],vU=[0,[0,d40,Ox(ux,R3[3])],0],aU=[0,[0,m40,Ox(t2,sU)],vU];return M(h40,D,cU,[0,[0,k40,ux(oU)],aU]);case 35:return hx([0,D,P[1]]);case 36:return b0(0,[0,D,P[1]]);case 37:return V0([0,D,P[1]]);case 38:var j6=P[1],lU=j6[3],pU=j6[1],yU=[0,[0,_40,z0(j6[2])],0];return M(T40,D,lU,[0,[0,w40,K0(pU)],yU]);default:var z6=P[1],dU=z6[3],mU=z6[1],kU=[0,[0,S40,z0(z6[2])],0];return M(A40,D,dU,[0,[0,E40,K0(mU)],kU])}},Px=function(q){var P=q[2],D=P[4],T0=P[3][2],R0=P[1],rx=q[1],Sx=[0,[0,U_0,M(Z_0,P[2],0,0)],0],Dx=[0,[0,M_0,Lr(uo,T0)],Sx];return M(j_0,rx,D,[0,[0,D_0,M(X_0,R0,0,0)],Dx])},kx=function(q){var P=q[2],D=P[1],T0=P[4],R0=P[2],rx=q[1],Sx=[0,[0,C_0,Lr(uo,P[3][2])],0],Dx=[0,[0,R_0,Ox(qv,R0)],Sx],jx=D[2],bx=jx[2],mr=jx[4],or=jx[3],_r=jx[1],cr=D[1],sr=bx?[0,[0,z_0,pt(bx[1])],0]:0,Pr=[0,[0,J_0,Lr(no,mr)],[0,[0,K_0,!!or],0]];return M(L_0,rx,T0,[0,[0,O_0,M(B_0,cr,0,Fx([0,[0,Y_0,io(_r)],Pr],sr))],Dx])},$x=function(q){var P=q[2],D=P[3],T0=P[1],R0=q[1],rx=[0,[0,c90,Lr(K0,P[2])],0];return M(o90,R0,D,[0,[0,s90,Lr(ro,T0)],rx])},Qx=function(q){var P=q[2],D=P[1],T0=P[2],R0=q[1],rx=D?Fm0:Qm0;return M(Gm0,R0,T0,[0,[0,qm0,!!D],[0,[0,Hm0,nr(rx)],0]])},j0=function(q){var P=q[2];return M($m0,q[1],P[3],[0,[0,Zm0,nr(P[1])],[0,[0,Vm0,nr(P[2])],0]])},rr=function(q){var P=q[2],D=P[2],T0=P[3],R0=q[1];return M(Wm0,R0,T0,[0,[0,Xm0,B2],[0,[0,Bm0,nr(z2(D,0,Gx(D)-1|0))],[0,[0,Ym0,nr(D)],0]]])},zx=function(q){var P=q[2];return M(Jm0,q[1],P[3],[0,[0,Km0,P[1]],[0,[0,zm0,nr(P[2])],0]])},X0=function(q){var P=q[2];return M(C80,q[1],P[2],[0,[0,P80,nr(P[1])],[0,[0,I80,B2],[0,[0,N80,!1],0]]])},ir=function(q){var P=q[2],D=P[3],T0=P[2],R0=P[9],rx=P[8],Sx=P[7],Dx=P[6],jx=P[5],bx=P[4],mr=T0[2][4],or=P[1],_r=q[1],cr=D[0]===0?D[1]:Rx(d80),sr=g2(E1(mr),R0),Pr=[0,[0,m80,Ox(a2,rx)],0],$r=[0,[0,h80,!1],[0,[0,k80,Or(Sx)],Pr]],Wr=[0,[0,T80,!!bx],[0,[0,w80,!!jx],[0,[0,_80,Ox(fo,Dx)],$r]]],Vr=[0,[0,S80,ux(cr)],Wr],Ur=[0,[0,E80,ur(T0)],Vr];return M(g80,_r,sr,[0,[0,A80,Ox(X0,or)],Ur])},K0=function(q){var P=q[2],D=q[1];switch(P[0]){case 0:var T0=P[1],R0=T0[2],rx=[0,[0,g40,Lr(En,T0[1])],0];return M(N40,D,E1(R0),rx);case 1:var Sx=P[1],Dx=Sx[3],jx=Sx[2],bx=Sx[9],mr=Sx[8],or=Sx[7],_r=Sx[6],cr=Sx[4],sr=jx[2][4];if(Dx[0]===0)var Pr=0,$r=ux(Dx[1]);else var Pr=1,$r=K0(Dx[1]);var Wr=g2(E1(sr),bx),Vr=[0,[0,I40,Ox(a2,mr)],0],Ur=[0,[0,C40,!!Pr],[0,[0,P40,Or(or)],Vr]],Fr=[0,[0,U40,$r],[0,[0,L40,!!cr],[0,[0,O40,!1],[0,[0,R40,Ox(fo,_r)],Ur]]]];return M(j40,D,Wr,[0,[0,D40,B2],[0,[0,M40,ur(jx)],Fr]]);case 2:var x1=P[1],l1=x1[1],p1=x1[4],f1=x1[3],h1=x1[2];if(l1){switch(l1[1]){case 0:var Cr=QH;break;case 1:var Cr=HH;break;case 2:var Cr=qH;break;case 3:var Cr=GH;break;case 4:var Cr=bH;break;case 5:var Cr=xq;break;case 6:var Cr=rq;break;case 7:var Cr=eq;break;case 8:var Cr=tq;break;case 9:var Cr=nq;break;case 10:var Cr=uq;break;case 11:var Cr=iq;break;case 12:var Cr=fq;break;case 13:var Cr=cq;break;default:var Cr=sq}var D1=Cr}else var D1=z40;var n2=[0,[0,K40,K0(f1)],0];return M(B40,D,p1,[0,[0,Y40,nr(D1)],[0,[0,J40,tx(h1)],n2]]);case 3:var A1=P[1],W2=A1[4],ee=A1[2],Ax=A1[1],Kr=[0,[0,X40,K0(A1[3])],0],r1=[0,[0,W40,K0(ee)],Kr];switch(Ax){case 0:var lr=NH;break;case 1:var lr=IH;break;case 2:var lr=PH;break;case 3:var lr=CH;break;case 4:var lr=RH;break;case 5:var lr=OH;break;case 6:var lr=LH;break;case 7:var lr=UH;break;case 8:var lr=MH;break;case 9:var lr=DH;break;case 10:var lr=jH;break;case 11:var lr=zH;break;case 12:var lr=KH;break;case 13:var lr=JH;break;case 14:var lr=YH;break;case 15:var lr=BH;break;case 16:var lr=XH;break;case 17:var lr=WH;break;case 18:var lr=VH;break;case 19:var lr=ZH;break;case 20:var lr=$H;break;default:var lr=FH}return M(Z40,D,W2,[0,[0,V40,nr(lr)],r1]);case 4:var Br=P[1],V1=Br[4],he=g2(E1(Br[3][2][2]),V1);return M($40,D,he,Wo(Br));case 5:return vx(Q50,[0,D,P[1]]);case 6:var V2=P[1],_e=V2[4],$t=V2[2],N2=V2[1],u2=[0,[0,F40,K0(V2[3])],0],I2=[0,[0,Q40,K0($t)],u2];return M(q40,D,_e,[0,[0,H40,K0(N2)],I2]);case 7:return ir([0,D,P[1]]);case 8:return X0(P[1]);case 9:var l2=P[1],mt=l2[2];return M(b40,D,mt,[0,[0,G40,K0(l2[1])],0]);case 10:return kx([0,D,P[1]]);case 11:return Px([0,D,P[1]]);case 12:return j0([0,D,P[1]]);case 13:return Qx([0,D,P[1]]);case 14:return M(f90,D,P[1],[0,[0,i90,B2],[0,[0,u90,lv],0]]);case 15:return zx([0,D,P[1]]);case 16:return rr([0,D,P[1]]);case 17:var P2=P[1],kt=P2[2],Ze=P2[1],we=P2[4],Te=P2[3];try{var Se=new RegExp(nr(Ze),nr(kt)),Ee=Se}catch{var Ee=B2}return M(n90,D,we,[0,[0,t90,Ee],[0,[0,e90,nr(Te)],[0,[0,r90,is([0,[0,x90,nr(Ze)],[0,[0,bm0,nr(kt)],0]])],0]]]);case 18:var Ae=P[1];return j0([0,D,[0,Ae[1],Ae[5],Ae[6]]]);case 19:var Z1=P[1],ge=Z1[4],ht=Z1[3],$e=Z1[2];switch(Z1[1]){case 0:var te=xp0;break;case 1:var te=rp0;break;default:var te=ep0}var C2=[0,[0,tp0,K0(ht)],0];return M(ip0,D,ge,[0,[0,up0,nr(te)],[0,[0,np0,K0($e)],C2]]);case 20:var Ft=P[1],os=Ft[3];return M(fp0,D,os,bv(Ft));case 21:var _t=P[1],wt=_t[3],Qt=_t[1],ne=[0,[0,cp0,X0(_t[2])],0];return M(op0,D,wt,[0,[0,sp0,X0(Qt)],ne]);case 22:var Tt=P[1],Ht=Tt[4],ue=Tt[3],qt=Tt[2],Cn=Tt[1];if(ue)var Gt=ue[1],Rn=g2(E1(Gt[2][2]),Ht),bt=Rn,On=ax(Gt);else var bt=Ht,On=Y1(0);var $o=[0,[0,ap0,Ox(pt,qt)],[0,[0,vp0,On],0]];return M(pp0,D,bt,[0,[0,lp0,K0(Cn)],$o]);case 23:var xn=P[1],St=xn[2],vs=[0,[0,yp0,Lr(Xx,xn[1])],0];return M(dp0,D,E1(St),vs);case 24:var as=P[1],ls=as[1],Fo=as[3],k3=ls[4],co=g2(E1(ls[3][2][2]),k3);return M(kp0,D,co,Fx(Wo(ls),[0,[0,mp0,!!Fo],0]));case 25:var Qo=P[1],ea=Qo[1],h3=ea[3],_3=[0,[0,hp0,!!Qo[3]],0];return M(_p0,D,h3,Fx(bv(ea),_3));case 26:var ta=P[1],na=ta[2];return M(Tp0,D,na,[0,[0,wp0,Lr(K0,ta[1])],0]);case 27:return M(Sp0,D,P[1][1],0);case 28:var Ln=P[1],w3=Ln[3],T3=Ln[1],S3=[0,[0,d90,$x(Ln[2])],0];return M(k90,D,w3,[0,[0,m90,K0(T3)],S3]);case 29:return $x([0,D,P[1]]);case 30:return M(Ep0,D,P[1][1],0);case 31:var Ne=P[1],E3=Ne[3],A3=Ne[1],ua=[0,[0,Ap0,Jx(Ne[2])],0];return M(Np0,D,E3,[0,[0,gp0,K0(A3)],ua]);case 32:var ps=P[1],so=ps[2],Ho=ps[1];if(typeof so=="number"){var qo=ps[3];return M(Pp0,D,qo,[0,[0,Ip0,K0(Ho)],0])}if(so[0]===0){var g3=ps[3],ia=[0,[0,Cp0,dr(so[1])],0];return M(Op0,D,g3,[0,[0,Rp0,K0(Ho)],ia])}var ys=ps[3],oo=[0,[0,Lp0,dr(so[1])],0];return M(Mp0,D,ys,[0,[0,Up0,K0(Ho)],oo]);case 33:var Go=P[1],Et=Go[3],Fe=Go[2],ds=Go[1];if(7<=ds)return M(jp0,D,Et,[0,[0,Dp0,K0(Fe)],0]);switch(ds){case 0:var At=zp0;break;case 1:var At=Kp0;break;case 2:var At=Jp0;break;case 3:var At=Yp0;break;case 4:var At=Bp0;break;case 5:var At=Xp0;break;case 6:var At=Wp0;break;default:var At=Rx(Vp0)}return M(Qp0,D,Et,[0,[0,Fp0,nr(At)],[0,[0,$p0,!0],[0,[0,Zp0,K0(Fe)],0]]]);case 34:var rn=P[1],en=rn[4],bo=rn[3],N3=rn[2],I3=rn[1]?Hp0:qp0;return M(r80,D,en,[0,[0,x80,nr(I3)],[0,[0,bp0,K0(N3)],[0,[0,Gp0,!!bo],0]]]);default:var xv=P[1],P3=xv[2],fa=[0,[0,e80,!!xv[3]],0];return M(n80,D,P3,[0,[0,t80,Ox(K0,xv[1])],fa])}},Sr=function(q){var P=q[2];return M(U80,q[1],P[2],[0,[0,L80,nr(P[1])],[0,[0,O80,B2],[0,[0,R80,!1],0]]])},Dr=function(q,P){var D=P[1][2],T0=D[2],R0=D[1],rx=[0,[0,M80,!!P[3]],0];return M(z80,q,T0,[0,[0,j80,nr(R0)],[0,[0,D80,zo(Jx,P[2])],rx]])},ax=function(q){return Lr(de,q[2][1])},br=function(q){var P=q[2],D=P[3],T0=P[1],R0=q[1],rx=[0,[0,K80,Lr(z0,P[2])],0];return M(Y80,R0,D,[0,[0,J80,Ox(K0,T0)],rx])},t2=function(q){var P=q[2],D=P[3],T0=P[1],R0=q[1],rx=[0,[0,B80,ux(P[2])],0];return M(W80,R0,D,[0,[0,X80,Ox(tx,T0)],rx])},k1=function(q){return Y1(Hc(function(P){var D=P[2];return Rr(0,D[3],P[1],[0,D[1]],D[2][2])},q))},Rr=function(q,P,D,T0,R0){if(T0)var rx=T0[1],Sx=rx[0]===0?Ox(X0,[0,rx[1]]):Ox(j0,[0,rx[1]]),Dx=Sx;else var Dx=Ox(X0,0);return M(w50,D,q,[0,[0,_50,Dx],[0,[0,h50,dr(R0)],[0,[0,k50,!!P],0]]])},U1=function(q){var P=q[2],D=P[4],T0=P[3],R0=P[2],rx=P[1],Sx=q[1];return Rr(D,T0,Sx,Fy(function(Dx){return[0,Dx]},rx),R0)},_=function(q){return q?C50:R50},b=function(q){if(!q)return Y1(0);var P=q[1];if(P[0]===0)return Lr(Xo,P[1]);var D=P[1],T0=D[2],R0=D[1];return Y1(T0?[0,M(L50,R0,0,[0,[0,O50,X0(T0[1])],0]),0]:0)},x0=function(q){var P=q[2],D=P[2],T0=q[1];return M(ny0,T0,D,[0,[0,ty0,K0(P[1])],0])},S0=function(q){var P=q[2],D=P[1],T0=q[1],R0=[0,[0,uy0,Ox(In,P[2])],0];return M(fy0,T0,0,[0,[0,iy0,X0(D)],R0])},H=function(q){switch(q[0]){case 0:var P=q[1],D=P[2],T0=D[6],R0=D[2],rx=D[5],Sx=D[4],Dx=D[3],jx=D[1],bx=P[1];switch(R0[0]){case 0:var cr=T0,sr=0,Pr=j0(R0[1]);break;case 1:var cr=T0,sr=0,Pr=zx(R0[1]);break;case 2:var cr=T0,sr=0,Pr=rr(R0[1]);break;case 3:var cr=T0,sr=0,Pr=X0(R0[1]);break;case 4:var cr=T0,sr=0,Pr=Sr(R0[1]);break;default:var mr=R0[1][2],or=mr[1],_r=g2(mr[2],T0),cr=_r,sr=1,Pr=K0(or)}switch(jx){case 0:var $r=oy0;break;case 1:var $r=vy0;break;case 2:var $r=ay0;break;default:var $r=ly0}var Wr=[0,[0,my0,nr($r)],[0,[0,dy0,!!Sx],[0,[0,yy0,!!sr],[0,[0,py0,Lr(x0,rx)],0]]]];return M(_y0,bx,cr,[0,[0,hy0,Pr],[0,[0,ky0,ir(Dx)],Wr]]);case 1:var Vr=q[1],Ur=Vr[2],Fr=Ur[7],x1=Ur[6],l1=Ur[2],p1=Ur[1],f1=Ur[5],h1=Ur[4],Cr=Ur[3],D1=Vr[1];switch(p1[0]){case 0:var Ax=Fr,Kr=0,r1=j0(p1[1]);break;case 1:var Ax=Fr,Kr=0,r1=zx(p1[1]);break;case 2:var Ax=Fr,Kr=0,r1=rr(p1[1]);break;case 3:var Ax=Fr,Kr=0,r1=X0(p1[1]);break;case 4:var n2=Rx(Cy0),Ax=n2[3],Kr=n2[2],r1=n2[1];break;default:var A1=p1[1][2],W2=A1[1],ee=g2(A1[2],Fr),Ax=ee,Kr=1,r1=K0(W2)}if(typeof l1=="number")if(l1)var lr=0,Br=0;else var lr=1,Br=0;else var lr=0,Br=[0,l1[1]];var V1=lr?[0,[0,Ry0,!!lr],0]:0,he=x1===0?0:[0,[0,Oy0,Lr(x0,x1)],0],V2=Fx(he,V1),_e=[0,[0,My0,!!Kr],[0,[0,Uy0,!!h1],[0,[0,Ly0,Ox(me,f1)],0]]],$t=[0,[0,Dy0,zo(Jx,Cr)],_e];return M(Ky0,D1,Ax,Fx([0,[0,zy0,r1],[0,[0,jy0,Ox(K0,Br)],$t]],V2));default:var N2=q[1],u2=N2[2],I2=u2[6],l2=u2[2],mt=u2[7],P2=u2[5],kt=u2[4],Ze=u2[3],we=u2[1],Te=N2[1];if(typeof l2=="number")if(l2)var Se=0,Ee=0;else var Se=1,Ee=0;else var Se=0,Ee=[0,l2[1]];var Ae=Se?[0,[0,wy0,!!Se],0]:0,Z1=I2===0?0:[0,[0,Ty0,Lr(x0,I2)],0],ge=Fx(Z1,Ae),ht=[0,[0,Ay0,!1],[0,[0,Ey0,!!kt],[0,[0,Sy0,Ox(me,P2)],0]]],$e=[0,[0,gy0,zo(Jx,Ze)],ht],te=[0,[0,Ny0,Ox(K0,Ee)],$e];return M(Py0,Te,mt,Fx([0,[0,Iy0,Sr(we)],te],ge))}},h0=function(q){var P=q[2],D=P[3],T0=P[2],R0=P[1],rx=q[1],Sx=P[4],Dx=R0[0]===0?X0(R0[1]):j0(R0[1]);if(D)var jx=[0,[0,Fy0,K0(D[1])],0],bx=M(Hy0,rx,0,[0,[0,Qy0,tx(T0)],jx]);else var bx=tx(T0);return M(xd0,rx,0,[0,[0,by0,Dx],[0,[0,Gy0,bx],[0,[0,qy0,!!Sx],0]]])},Y0=function(q){var P=q[2],D=q[1];switch(P[0]){case 0:var T0=P[1],R0=T0[4],rx=T0[1],Sx=[0,[0,kd0,!!T0[2]],[0,[0,md0,!!T0[3]],0]],Dx=[0,[0,hd0,Lr(function(Ax){var Kr=Ax[2],r1=Kr[1],lr=Ax[1],Br=[0,[0,pd0,Qx(Kr[2])],0];return M(dd0,lr,0,[0,[0,yd0,X0(r1)],Br])},rx)],Sx];return M(_d0,D,E1(R0),Dx);case 1:var jx=P[1],bx=jx[4],mr=jx[1],or=[0,[0,Td0,!!jx[2]],[0,[0,wd0,!!jx[3]],0]],_r=[0,[0,Sd0,Lr(function(Ax){var Kr=Ax[2],r1=Kr[1],lr=Ax[1],Br=[0,[0,vd0,zx(Kr[2])],0];return M(ld0,lr,0,[0,[0,ad0,X0(r1)],Br])},mr)],or];return M(Ed0,D,E1(bx),_r);case 2:var cr=P[1],sr=cr[1],Pr=cr[4],$r=cr[3],Wr=cr[2];if(sr[0]===0)var Vr=sr[1],Fr=Hc(function(Ax){var Kr=Ax[1];return M(od0,Kr,0,[0,[0,sd0,X0(Ax[2][1])],0])},Vr);else var Ur=sr[1],Fr=Hc(function(Ax){var Kr=Ax[2],r1=Kr[1],lr=Ax[1],Br=[0,[0,id0,j0(Kr[2])],0];return M(cd0,lr,0,[0,[0,fd0,X0(r1)],Br])},Ur);var x1=[0,[0,Nd0,Y1(Fr)],[0,[0,gd0,!!Wr],[0,[0,Ad0,!!$r],0]]];return M(Id0,D,E1(Pr),x1);case 3:var l1=P[1],p1=l1[3],f1=l1[1],h1=[0,[0,Pd0,!!l1[2]],0],Cr=[0,[0,Cd0,Lr(function(Ax){var Kr=Ax[1];return M(ud0,Kr,0,[0,[0,nd0,X0(Ax[2][1])],0])},f1)],h1];return M(Rd0,D,E1(p1),Cr);default:var D1=P[1],n2=D1[4],A1=D1[1],W2=[0,[0,Ld0,!!D1[2]],[0,[0,Od0,!!D1[3]],0]],ee=[0,[0,Ud0,Lr(function(Ax){var Kr=Ax[2],r1=Kr[1],lr=Ax[1],Br=[0,[0,rd0,rr(Kr[2])],0];return M(td0,lr,0,[0,[0,ed0,X0(r1)],Br])},A1)],W2];return M(Md0,D,E1(n2),ee)}},U0=function(q){var P=q[2],D=P[1],T0=P[3],R0=P[2],rx=q[1],Sx=D[0]===0?X0(D[1]):lt(D[1]);return M(Zd0,rx,T0,[0,[0,Vd0,Sx],[0,[0,Wd0,Ox(In,R0)],0]])},tx=function(q){var P=q[2],D=q[1];switch(P[0]){case 0:var T0=P[1],R0=T0[3],rx=T0[1],Sx=[0,[0,$d0,zo(Jx,T0[2])],0],Dx=[0,[0,Fd0,Lr(X2,rx)],Sx];return M(Qd0,D,E1(R0),Dx);case 1:var jx=P[1],bx=jx[3],mr=jx[1],or=[0,[0,Hd0,zo(Jx,jx[2])],0],_r=[0,[0,qd0,Lr(er,mr)],or];return M(Gd0,D,E1(bx),_r);case 2:return Dr(D,P[1]);default:return K0(P[1])}},Wx=function(q){var P=q[2],D=P[2],T0=P[1],R0=q[1];if(!D)return tx(T0);var rx=[0,[0,bd0,K0(D[1])],0];return M(rm0,R0,0,[0,[0,xm0,tx(T0)],rx])},Lx=function(q){var P=q[2],D=P[2],T0=q[1];return M(nm0,T0,D,[0,[0,tm0,fv],[0,[0,em0,Jx(P[1])],0]])},ur=function(q){var P=q[2],D=P[3],T0=P[2],R0=P[1];if(D){var rx=D[1],Sx=rx[2],Dx=Sx[2],jx=rx[1],bx=M(im0,jx,Dx,[0,[0,um0,tx(Sx[1])],0]),mr=gx([0,bx,Qy(Wx,T0)]),or=R0?[0,Lx(R0[1]),mr]:mr;return Y1(or)}var _r=Hc(Wx,T0),cr=R0?[0,Lx(R0[1]),_r]:_r;return Y1(cr)},Vx=function(q,P){var D=P[2];return M(cm0,q,D,[0,[0,fm0,tx(P[1])],0])},er=function(q){switch(q[0]){case 0:var P=q[1],D=P[2],T0=D[2],R0=D[1],rx=P[1];if(!T0)return tx(R0);var Sx=[0,[0,sm0,K0(T0[1])],0];return M(vm0,rx,0,[0,[0,om0,tx(R0)],Sx]);case 1:var Dx=q[1];return Vx(Dx[1],Dx[2]);default:return B2}},Jx=function(q){var P=q[1];return M(p_0,P,0,[0,[0,l_0,dr(q[2])],0])},Or=function(q){switch(q[0]){case 0:return B2;case 1:return Jx(q[1]);default:var P=q[1],D=P[2],T0=P[1];return M(d_0,T0,0,[0,[0,y_0,Zt([0,D[1],D[2]])],0])}},Xx=function(q){if(q[0]===0){var P=q[1],D=P[2],T0=P[1];switch(D[0]){case 0:var R0=D[3],rx=D[1],sr=0,Pr=R0,$r=0,Wr=am0,Vr=K0(D[2]),Ur=rx;break;case 1:var Sx=D[2],Dx=D[1],sr=0,Pr=0,$r=1,Wr=lm0,Vr=ir([0,Sx[1],Sx[2]]),Ur=Dx;break;case 2:var jx=D[2],bx=D[3],mr=D[1],sr=bx,Pr=0,$r=0,Wr=pm0,Vr=ir([0,jx[1],jx[2]]),Ur=mr;break;default:var or=D[2],_r=D[3],cr=D[1],sr=_r,Pr=0,$r=0,Wr=ym0,Vr=ir([0,or[1],or[2]]),Ur=cr}switch(Ur[0]){case 0:var f1=sr,h1=0,Cr=j0(Ur[1]);break;case 1:var f1=sr,h1=0,Cr=zx(Ur[1]);break;case 2:var f1=sr,h1=0,Cr=rr(Ur[1]);break;case 3:var f1=sr,h1=0,Cr=X0(Ur[1]);break;case 4:var Fr=Rx(dm0),f1=Fr[3],h1=Fr[2],Cr=Fr[1];break;default:var x1=Ur[1][2],l1=x1[1],p1=g2(x1[2],sr),f1=p1,h1=1,Cr=K0(l1)}return M(Sm0,T0,f1,[0,[0,Tm0,Cr],[0,[0,wm0,Vr],[0,[0,_m0,nr(Wr)],[0,[0,hm0,!!$r],[0,[0,km0,!!Pr],[0,[0,mm0,!!h1],0]]]]]])}var D1=q[1],n2=D1[2],A1=n2[2],W2=D1[1];return M(Am0,W2,A1,[0,[0,Em0,K0(n2[1])],0])},X2=function(q){if(q[0]!==0){var P=q[1];return Vx(P[1],P[2])}var D=q[1],T0=D[2],R0=T0[3],rx=T0[2],Sx=T0[1],Dx=T0[4],jx=D[1];switch(Sx[0]){case 0:var or=0,_r=0,cr=j0(Sx[1]);break;case 1:var or=0,_r=0,cr=zx(Sx[1]);break;case 2:var or=0,_r=0,cr=rr(Sx[1]);break;case 3:var or=0,_r=0,cr=X0(Sx[1]);break;default:var bx=Sx[1][2],mr=bx[2],or=mr,_r=1,cr=K0(bx[1])}if(R0)var sr=R0[1],Pr=i1(rx[1],sr[1]),$r=[0,[0,gm0,K0(sr)],0],Wr=M(Im0,Pr,0,[0,[0,Nm0,tx(rx)],$r]);else var Wr=tx(rx);return M(Mm0,jx,or,[0,[0,Um0,cr],[0,[0,Lm0,Wr],[0,[0,Om0,vu],[0,[0,Rm0,!1],[0,[0,Cm0,!!Dx],[0,[0,Pm0,!!_r],0]]]]]])},at=function(q){var P=q[2],D=P[2],T0=q[1];return M(jm0,T0,D,[0,[0,Dm0,K0(P[1])],0])},de=function(q){return q[0]===0?K0(q[1]):at(q[1])},En=function(q){switch(q[0]){case 0:return K0(q[1]);case 1:return at(q[1]);default:return B2}},ro=function(q){var P=q[2],D=P[1],T0=P[2],R0=q[1];return M(y90,R0,0,[0,[0,p90,is([0,[0,a90,nr(D[1])],[0,[0,v90,nr(D[2])],0]])],[0,[0,l90,!!T0],0]])},An=function(q){switch(q){case 0:return h90;case 1:return _90;default:return w90}},fs=function(q){var P=q[2],D=P[1],T0=q[1],R0=[0,[0,A90,Ox(K0,P[2])],0];return M(N90,T0,0,[0,[0,g90,tx(D)],R0])},me=function(q){var P=q[2],D=P[2],T0=q[1];switch(P[1]){case 0:var R0=I90;break;case 1:var R0=P90;break;case 2:var R0=C90;break;case 3:var R0=R90;break;case 4:var R0=O90;break;default:var R0=L90}return M(M90,T0,D,[0,[0,U90,nr(R0)],0])},gn=function(q){var P=q[2],D=P[1],T0=P[3],R0=P[2],rx=q[1],Sx=D[0]===0?X0(D[1]):lt(D[1]);return M(Sh0,rx,T0,[0,[0,Th0,Sx],[0,[0,wh0,Ox(In,R0)],0]])},re=function(q,P){var D=P[2],T0=D[4],R0=D[3],rx=D[2],Sx=D[1],Dx=P[1],jx=b1(function(Wr,Vr){var Ur=Wr[4],Fr=Wr[3],x1=Wr[2],l1=Wr[1];switch(Vr[0]){case 0:var p1=Vr[1],f1=p1[2],h1=f1[2],Cr=f1[1],D1=f1[8],n2=f1[7],A1=f1[6],W2=f1[5],ee=f1[4],Ax=f1[3],Kr=p1[1];switch(Cr[0]){case 0:var r1=j0(Cr[1]);break;case 1:var r1=zx(Cr[1]);break;case 2:var r1=rr(Cr[1]);break;case 3:var r1=X0(Cr[1]);break;case 4:var r1=Rx(Sk0);break;default:var r1=Rx(Ek0)}switch(h1[0]){case 0:var V1=Ak0,he=dr(h1[1]);break;case 1:var lr=h1[1],V1=gk0,he=Vt([0,lr[1],lr[2]]);break;default:var Br=h1[1],V1=Nk0,he=Vt([0,Br[1],Br[2]])}return[0,[0,M(Dk0,Kr,D1,[0,[0,Mk0,r1],[0,[0,Uk0,he],[0,[0,Lk0,!!A1],[0,[0,Ok0,!!Ax],[0,[0,Rk0,!!ee],[0,[0,Ck0,!!W2],[0,[0,Pk0,Ox(me,n2)],[0,[0,Ik0,nr(V1)],0]]]]]]]]),l1],x1,Fr,Ur];case 1:var V2=Vr[1],_e=V2[2],$t=_e[2],N2=V2[1];return[0,[0,M(zk0,N2,$t,[0,[0,jk0,dr(_e[1])],0]),l1],x1,Fr,Ur];case 2:var u2=Vr[1],I2=u2[2],l2=I2[6],mt=I2[4],P2=I2[3],kt=I2[2],Ze=I2[1],we=u2[1],Te=[0,[0,Jk0,!!mt],[0,[0,Kk0,Ox(me,I2[5])],0]],Se=[0,[0,Yk0,dr(P2)],Te],Ee=[0,[0,Bk0,dr(kt)],Se];return[0,l1,[0,M(Wk0,we,l2,[0,[0,Xk0,Ox(X0,Ze)],Ee]),x1],Fr,Ur];case 3:var Ae=Vr[1],Z1=Ae[2],ge=Z1[3],ht=Ae[1],$e=[0,[0,Vk0,!!Z1[2]],0];return[0,l1,x1,[0,M($k0,ht,ge,[0,[0,Zk0,Vt(Z1[1])],$e]),Fr],Ur];case 4:var te=Vr[1],C2=te[2],Ft=C2[6],os=C2[5],_t=C2[4],wt=C2[3],Qt=C2[1],ne=te[1],Tt=[0,[0,th0,!!wt],[0,[0,eh0,!!_t],[0,[0,rh0,!!os],[0,[0,xh0,dr(C2[2])],0]]]];return[0,l1,x1,Fr,[0,M(uh0,ne,Ft,[0,[0,nh0,X0(Qt)],Tt]),Ur]];default:var Ht=Vr[1],ue=Ht[2],qt=ue[6],Cn=ue[4],Gt=ue[3],Rn=ue[2],bt=ue[1],On=Ht[1],$o=0;switch(ue[5]){case 0:var xn="PlusOptional";break;case 1:var xn="MinusOptional";break;case 2:var xn="Optional";break;default:var xn=B2}var St=[0,[0,Qk0,Ox(me,Cn)],[0,[0,Fk0,xn],$o]],vs=[0,[0,Hk0,dr(Gt)],St],as=[0,[0,qk0,dr(Rn)],vs];return[0,[0,M(bk0,On,qt,[0,[0,Gk0,to(bt)],as]),l1],x1,Fr,Ur]}},yk0,R0),bx=jx[3],mr=jx[2],or=jx[1],_r=[0,[0,dk0,Y1(gx(jx[4]))],0],cr=[0,[0,mk0,Y1(gx(bx))],_r],sr=[0,[0,kk0,Y1(gx(mr))],cr],Pr=[0,[0,_k0,!!Sx],[0,[0,hk0,Y1(gx(or))],sr]],$r=q?[0,[0,wk0,!!rx],Pr]:Pr;return M(Tk0,Dx,E1(T0),$r)},Vt=function(q){var P=q[2],D=P[3],T0=P[2][2],R0=P[4],rx=T0[3],Sx=T0[2],Dx=T0[1],jx=P[1],bx=q[1],mr=g2(E1(T0[4]),R0),or=[0,[0,rk0,Ox(a2,jx)],0],_r=[0,[0,ek0,Ox(Hv,rx)],or],cr=D[0]===0?dr(D[1]):Zt(D[1]),sr=[0,[0,nk0,Ox(ke,Dx)],[0,[0,tk0,cr],_r]];return M(ik0,bx,mr,[0,[0,uk0,Lr(function(Pr){return Nn(0,Pr)},Sx)],sr])},dr=function(q){var P=q[2],D=q[1];switch(P[0]){case 0:return M(D90,D,P[1],0);case 1:return M(j90,D,P[1],0);case 2:return M(z90,D,P[1],0);case 3:return M(K90,D,P[1],0);case 4:return M(J90,D,P[1],0);case 5:return M(B90,D,P[1],0);case 6:return M(X90,D,P[1],0);case 7:return M(W90,D,P[1],0);case 8:return M(V90,D,P[2],0);case 9:return M(Y90,D,P[1],0);case 10:return M(a_0,D,P[1],0);case 11:var T0=P[1],R0=T0[2];return M($90,D,R0,[0,[0,Z90,dr(T0[1])],0]);case 12:return Vt([0,D,P[1]]);case 13:var rx=P[1],Sx=rx[2],Dx=rx[4],jx=rx[3],bx=rx[1],mr=g2(E1(Sx[2][3]),Dx),or=Sx[2],_r=or[2],cr=or[1],sr=[0,[0,l50,Ox(a2,bx)],0],Pr=[0,[0,p50,zo(Jx,jx)],sr],$r=[0,[0,y50,Ox(U1,_r)],Pr];return M(m50,D,mr,[0,[0,d50,k1(cr)],$r]);case 14:return re(1,[0,D,P[1]]);case 15:var Wr=P[1],Vr=Wr[3],Ur=Wr[2],Fr=[0,[0,ih0,re(0,Wr[1])],0];return M(ch0,D,Vr,[0,[0,fh0,Lr(U0,Ur)],Fr]);case 16:var x1=P[1],l1=x1[2];return M(oh0,D,l1,[0,[0,sh0,dr(x1[1])],0]);case 17:var p1=P[1],f1=p1[5],h1=p1[3],Cr=p1[2],D1=p1[1],n2=[0,[0,vh0,dr(p1[4])],0],A1=[0,[0,ah0,dr(h1)],n2],W2=[0,[0,lh0,dr(Cr)],A1];return M(yh0,D,f1,[0,[0,ph0,dr(D1)],W2]);case 18:var ee=P[1],Ax=ee[2];return M(mh0,D,Ax,[0,[0,dh0,to(ee[1])],0]);case 19:return gn([0,D,P[1]]);case 20:var Kr=P[1],r1=Kr[3];return M(gh0,D,r1,Ko(Kr));case 21:var lr=P[1],Br=lr[1],V1=Br[3],he=[0,[0,Nh0,!!lr[2]],0];return M(Ih0,D,V1,Fx(Ko(Br),he));case 22:var V2=P[1],_e=V2[1],$t=V2[2];return M(Ch0,D,$t,[0,[0,Ph0,Lr(dr,[0,_e[1],[0,_e[2],_e[3]]])],0]);case 23:var N2=P[1],u2=N2[1],I2=N2[2];return M(Oh0,D,I2,[0,[0,Rh0,Lr(dr,[0,u2[1],[0,u2[2],u2[3]]])],0]);case 24:var l2=P[1],mt=l2[2];return M(Uh0,D,mt,[0,[0,Lh0,eo(l2[1])],0]);case 25:var P2=P[1],kt=P2[2];return M(Kh0,D,kt,[0,[0,zh0,dr(P2[1])],0]);case 26:var Ze=P[1],we=Ze[2];return M(Yh0,D,we,[0,[0,Jh0,dr(Ze[1])],0]);case 27:var Te=P[1],Se=Te[2],Ee=Te[1],Ae=0;return M(Xh0,D,Se,[0,[0,Bh0,Lr(function(_t){var wt=_t[2],Qt=_t[1];switch(wt[0]){case 0:return dr(wt[1]);case 1:var ne=wt[1],Tt=ne[2],Ht=ne[1],ue=[0,[0,Wh0,!!ne[4]],0],qt=[0,[0,Vh0,Ox(me,ne[3])],ue],Cn=[0,[0,Zh0,dr(Tt)],qt];return M(Fh0,Qt,0,[0,[0,$h0,X0(Ht)],Cn]);default:var Gt=wt[1],Rn=Gt[1],bt=[0,[0,Qh0,dr(Gt[2])],0];return M(qh0,Qt,0,[0,[0,Hh0,Ox(X0,Rn)],bt])}},Ee)],Ae]);case 28:var Z1=P[1];return M(x_0,D,Z1[3],[0,[0,bh0,nr(Z1[1])],[0,[0,Gh0,nr(Z1[2])],0]]);case 29:var ge=P[1];return M(t_0,D,ge[3],[0,[0,e_0,ge[1]],[0,[0,r_0,nr(ge[2])],0]]);case 30:var ht=P[1];return M(i_0,D,ht[3],[0,[0,u_0,B2],[0,[0,n_0,nr(ht[2])],0]]);case 31:var $e=P[1],te=$e[1],C2=$e[2],Ft=0,os=te?f_0:c_0;return M(v_0,D,C2,[0,[0,o_0,!!te],[0,[0,s_0,nr(os)],Ft]]);case 32:return M(F90,D,P[1],0);case 33:return M(Q90,D,P[1],0);default:return M(H90,D,P[1],0)}},Zt=function(q){var P=q[2],D=P[2],T0=P[3],R0=D[1],rx=q[1],Sx=[0,[0,q90,!!P[1]],0],Dx=[0,[0,G90,Ox(dr,D[2])],Sx],jx=[0,[0,b90,X0(R0)],Dx];return M(xk0,rx,E1(T0),jx)},Nn=function(q,P){var D=P[2],T0=D[1],R0=P[1],rx=[0,[0,fk0,!!D[3]],0],Sx=[0,[0,ck0,dr(D[2])],rx];return M(ok0,R0,q,[0,[0,sk0,Ox(X0,T0)],Sx])},Hv=function(q){var P=q[2];return Nn(P[2],P[1])},ke=function(q){var P=q[2],D=P[2],T0=q[1],R0=[0,[0,ak0,dr(P[1][2])],[0,[0,vk0,!1],0]];return M(pk0,T0,D,[0,[0,lk0,Ox(X0,0)],R0])},lt=function(q){var P=q[2],D=P[1],T0=P[2],R0=q[1],rx=D[0]===0?X0(D[1]):lt(D[1]);return M(_h0,R0,0,[0,[0,hh0,rx],[0,[0,kh0,X0(T0)],0]])},Ko=function(q){var P=q[1],D=[0,[0,Eh0,dr(q[2])],0];return[0,[0,Ah0,dr(P)],D]},eo=function(q){if(q[0]===0)return X0(q[1]);var P=q[1],D=P[2],T0=D[2],R0=P[1],rx=eo(D[1]);return M(jh0,R0,0,[0,[0,Dh0,rx],[0,[0,Mh0,X0(T0)],0]])},a2=function(q){var P=q[2],D=P[2],T0=q[1],R0=[0,[0,m_0,Lr(to,P[1])],0];return M(k_0,T0,E1(D),R0)},to=function(q){var P=q[2],D=P[1][2],T0=P[5],R0=P[4],rx=P[2],Sx=D[2],Dx=D[1],jx=q[1],bx=P[3]?[0,[0,h_0,!0],0]:0,mr=[0,[0,__0,Ox(dr,T0)],0],or=[0,[0,w_0,Ox(me,R0)],mr];return M(E_0,jx,Sx,Fx([0,[0,S_0,nr(Dx)],[0,[0,T_0,zo(Jx,rx)],or]],bx))},In=function(q){var P=q[2],D=P[2],T0=q[1],R0=[0,[0,A_0,Lr(dr,P[1])],0];return M(g_0,T0,E1(D),R0)},pt=function(q){var P=q[2],D=P[2],T0=q[1],R0=[0,[0,N_0,Lr(Jo,P[1])],0];return M(I_0,T0,E1(D),R0)},Jo=function(q){if(q[0]===0)return dr(q[1]);var P=q[1],D=P[1],T0=P[2][1];return gn([0,D,[0,[0,hn(0,[0,D,P_0])],0,T0]])},no=function(q){if(q[0]===0){var P=q[1],D=P[2],T0=D[1],R0=D[2],rx=P[1],Sx=T0[0]===0?yt(T0[1]):cs(T0[1]);return M(Q_0,rx,0,[0,[0,F_0,Sx],[0,[0,$_0,Ox(a3,R0)],0]])}var Dx=q[1],jx=Dx[2],bx=jx[2],mr=Dx[1];return M(q_0,mr,bx,[0,[0,H_0,K0(jx[1])],0])},qv=function(q){var P=q[1];return M(V_0,P,0,[0,[0,W_0,io(q[2][1])],0])},Yo=function(q){var P=q[2],D=P[1],T0=q[1],R0=P[2],rx=D?K0(D[1]):M(G_0,[0,T0[1],[0,T0[2][1],T0[2][2]+1|0],[0,T0[3][1],T0[3][2]-1|0]],0,0);return M(xw0,T0,E1(R0),[0,[0,b_0,rx],0])},uo=function(q){var P=q[2],D=q[1];switch(P[0]){case 0:return kx([0,D,P[1]]);case 1:return Px([0,D,P[1]]);case 2:return Yo([0,D,P[1]]);case 3:var T0=P[1],R0=T0[2];return M(ew0,D,R0,[0,[0,rw0,K0(T0[1])],0]);default:var rx=P[1];return M(uw0,D,0,[0,[0,nw0,nr(rx[1])],[0,[0,tw0,nr(rx[2])],0]])}},yt=function(q){var P=q[2];return M(lw0,q[1],P[2],[0,[0,aw0,nr(P[1])],0])},cs=function(q){var P=q[2],D=P[1],T0=q[1],R0=[0,[0,sw0,yt(P[2])],0];return M(vw0,T0,0,[0,[0,ow0,yt(D)],R0])},Bo=function(q){var P=q[2],D=P[1],T0=P[2],R0=q[1],rx=D[0]===0?yt(D[1]):Bo(D[1]);return M(cw0,R0,0,[0,[0,fw0,rx],[0,[0,iw0,yt(T0)],0]])},io=function(q){switch(q[0]){case 0:return yt(q[1]);case 1:return cs(q[1]);default:return Bo(q[1])}},a3=function(q){if(q[0]===0){var P=q[1];return j0([0,P[1],P[2]])}var D=q[1];return Yo([0,D[1],D[2]])},Xo=function(q){var P=q[2],D=P[2],T0=P[1],R0=q[1],rx=X0(D?D[1]:T0);return M(dw0,R0,0,[0,[0,yw0,X0(T0)],[0,[0,pw0,rx],0]])},Pn=function(q){return Lr(Gv,q)},Gv=function(q){var P=q[2],D=q[1];if(P[1])var T0=P[2],R0=Aw0;else var T0=P[2],R0=gw0;return M(R0,D,0,[0,[0,Nw0,nr(T0)],0])},fo=function(q){var P=q[2],D=P[1],T0=P[2],R0=q[1];if(D)var rx=[0,[0,Iw0,K0(D[1])],0],Sx=Pw0;else var rx=0,Sx=Cw0;return M(Sx,R0,T0,rx)},Wo=function(q){var P=q[2],D=q[1],T0=[0,[0,Rw0,ax(q[3])],0],R0=[0,[0,Ow0,Ox(pt,P)],T0];return[0,[0,Lw0,K0(D)],R0]},bv=function(q){var P=q[2],D=q[1];switch(P[0]){case 0:var T0=0,R0=X0(P[1]);break;case 1:var T0=0,R0=Sr(P[1]);break;default:var T0=1,R0=K0(P[1])}return[0,[0,Dw0,K0(D)],[0,[0,Mw0,R0],[0,[0,Uw0,!!T0],0]]]},ss=A0[2],Vo=ss[2],Zo=ss[4],xa=ss[3],l3=A0[1],Lm=L0(ss[1]),p3=[0,[0,Zl0,Lm],[0,[0,Vl0,Pn(Zo)],0]];if(Vo)var C6=Vo[1],R6=Fx(p3,[0,[0,Ql0,M(Fl0,C6[1],0,[0,[0,$l0,nr(C6[2])],0])],0]);else var R6=p3;var y3=M(Hl0,l3,xa,R6),Um=Fx(v0,IW[1]);if(y3.errors=Lr(function(q){var P=q[1],D=[0,[0,jw0,nr(zT0(q[2]))],0];return is([0,[0,zw0,CW(P)],D])},Um),k){var Mm=R[1];y3[aM]=Y1(Qy(function(q){var P=q[2],D=q[1],T0=q[3],R0=[0,[0,cv0,nr(VR(P))],0],rx=[0,qd(G,D[3]),0],Sx=[0,[0,sv0,Y1([0,qd(G,D[2]),rx])],R0],Dx=[0,[0,av0,is([0,[0,vv0,D[3][1]],[0,[0,ov0,D[3][2]],0]])],0],jx=[0,[0,dv0,is([0,[0,yv0,is([0,[0,pv0,D[2][1]],[0,[0,lv0,D[2][2]],0]])],Dx])],Sx];switch(T0){case 0:var bx=mv0;break;case 1:var bx=kv0;break;case 2:var bx=hv0;break;case 3:var bx=_v0;break;case 4:var bx=wv0;break;default:var bx=Tv0}return is([0,[0,Ev0,nr(kY(P))],[0,[0,Sv0,nr(bx)],jx]])},Mm))}return y3}var ra=N0[1];if(ra===5){var d3=N0[2];if(d3&&d3[1]===6){var Dm=d3[2],P0=[0,Q+2|0,0,[0,Ml(gx([0,Q,I0])),J0]],N0=Dm;continue}}else if(6>ra){var jm=N0[2],P0=[0,Q+TB(ra)|0,[0,Q,I0],J0],N0=jm;continue}var zm=N0[2],M1=[0,Ml(gx([0,Q,I0])),J0],P0=[0,Q+TB(ra)|0,0,M1],N0=zm}}};if(typeof EU<"u")var RW=EU;else{var OW={};xo.flow=OW;var RW=OW}RW.parse=DV(function(x,r){try{var e=_E0(x,r);return e}catch(u){var t=R1(u);return t[1]===gL?NW(t[2]):NW(new kE0(nr(Zx(xT0,rd(t)))))}}),rR(0);return}}})(globalThis)});var XW=LW(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});sa.extract=NI0;sa.parse=PI0;sa.parseWithComments=BW;sa.print=CI0;sa.strip=II0;var TI0=/\*\/$/,SI0=/^\/\*\*?/,JW=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,EI0=/(^|\s+)\/\/([^\r\n]*)/g,jW=/^(\r?\n)+/,AI0=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,zW=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,gI0=/(\r?\n|^) *\* ?/g,YW=[];function NI0(p0){let _x=p0.match(JW);return _x?_x[0].trimLeft():""}function II0(p0){let _x=p0.match(JW);return _x&&_x[0]?p0.substring(_x[0].length):p0}function PI0(p0){return BW(p0).pragmas}function BW(p0){let _x=` -`;p0=p0.replace(SI0,"").replace(TI0,"").replace(gI0,"$1");let Hx="";for(;Hx!==p0;)Hx=p0,p0=p0.replace(AI0,`${_x}$1 $2${_x}`);p0=p0.replace(jW,"").trimRight();let kr=Object.create(null),$1=p0.replace(zW,"").replace(jW,"").trimRight(),tr;for(;tr=zW.exec(p0);){let xr=tr[2].replace(EI0,"");typeof kr[tr[1]]=="string"||Array.isArray(kr[tr[1]])?kr[tr[1]]=YW.concat(kr[tr[1]],xr):kr[tr[1]]=xr}return{comments:$1,pragmas:kr}}function CI0({comments:p0="",pragmas:_x={}}){let Hx=` -`,kr="/**",$1=" *",tr=" */",xr=Object.keys(_x),e1=xr.map(F1=>KW(F1,_x[F1])).reduce((F1,M3)=>F1.concat(M3),[]).map(F1=>`${$1} ${F1}${Hx}`).join("");if(!p0){if(xr.length===0)return"";if(xr.length===1&&!Array.isArray(_x[xr[0]])){let F1=_x[xr[0]];return`${kr} ${KW(xr[0],F1)[0]}${tr}`}}let ev=p0.split(Hx).map(F1=>`${$1} ${F1}`).join(Hx)+Hx;return kr+Hx+(p0?ev:"")+(p0&&xr.length?$1+Hx:"")+e1+tr}function KW(p0,_x){return YW.concat(_x).map(Hx=>`@${p0} ${Hx}`.trim())}});var CU={};UW(CU,{parsers:()=>i9});var i9={};UW(i9,{flow:()=>QI0});var rV=MW(DW(),1);function wI0(p0,_x){let Hx=new SyntaxError(p0+" ("+_x.loc.start.line+":"+_x.loc.start.column+")");return Object.assign(Hx,_x)}var t9=wI0;var U3=MW(XW(),1);function RI0(p0){if(!p0.startsWith("#!"))return"";let _x=p0.indexOf(` -`);return _x===-1?p0:p0.slice(0,_x)}var WW=RI0;function OI0(p0){let _x=WW(p0);_x&&(p0=p0.slice(_x.length+1));let Hx=(0,U3.extract)(p0),{pragmas:kr,comments:$1}=(0,U3.parseWithComments)(Hx);return{shebang:_x,text:p0,pragmas:kr,comments:$1}}function VW(p0){let{pragmas:_x}=OI0(p0);return Object.prototype.hasOwnProperty.call(_x,"prettier")||Object.prototype.hasOwnProperty.call(_x,"format")}function LI0(p0){return Array.isArray(p0)&&p0.length>0}var N4=LI0;function Nt(p0){var kr;let _x=p0.range?p0.range[0]:p0.start,Hx=((kr=p0.declaration)==null?void 0:kr.decorators)??p0.decorators;return N4(Hx)?Math.min(Nt(Hx[0]),_x):_x}function _s(p0){return p0.range?p0.range[1]:p0.end}function UI0(p0){return p0=typeof p0=="function"?{parse:p0}:p0,{astFormat:"estree",hasPragma:VW,locStart:Nt,locEnd:_s,...p0}}var ZW=UI0;function MI0(p0){return p0.charAt(0)==="#"&&p0.charAt(1)==="!"?"//"+p0.slice(2):p0}var $W=MI0;var DI0=(p0,_x,Hx)=>{if(!(p0&&_x==null))return Array.isArray(_x)||typeof _x=="string"?_x[Hx<0?_x.length+Hx:Hx]:_x.at(Hx)},AU=DI0;function jI0(p0){return p0=new Set(p0),_x=>p0.has(_x==null?void 0:_x.type)}var FW=jI0;var zI0=FW(["Block","CommentBlock","MultiLine"]),I4=zI0;function KI0(p0){return I4(p0)&&p0.value[0]==="*"&&/@(?:type|satisfies)\b/.test(p0.value)}var QW=KI0;function JI0(p0){let _x=`*${p0.value}*`.split(` -`);return _x.length>1&&_x.every(Hx=>Hx.trimStart()[0]==="*")}var gU=JI0;var P4=null;function C4(p0){if(P4!==null&&typeof P4.property){let _x=P4;return P4=C4.prototype=null,_x}return P4=C4.prototype=p0??Object.create(null),new C4}var YI0=10;for(let p0=0;p0<=YI0;p0++)C4();function NU(p0){return C4(p0)}function BI0(p0,_x="type"){NU(p0);function Hx(kr){let $1=kr[_x],tr=p0[$1];if(!Array.isArray(tr))throw Object.assign(new Error(`Missing visitor keys for '${$1}'.`),{node:kr});return tr}return Hx}var HW=BI0;var qW={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ExportAllDeclaration:["source","attributes","assertions","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes","assertions"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes","assertions"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","parameter"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ImportExpression:["source","attributes"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareEnum:["id","body"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]};var XI0=HW(qW),GW=XI0;function IU(p0,_x){if(!(p0!==null&&typeof p0=="object"))return p0;if(Array.isArray(p0)){for(let kr=0;kr{var e1;(e1=xr.leadingComments)!=null&&e1.some(QW)&&tr.add(Nt(xr))}),p0=n9(p0,xr=>{if(xr.type==="ParenthesizedExpression"){let{expression:e1}=xr;if(e1.type==="TypeCastExpression")return e1.range=xr.range,e1;let ev=Nt(xr);if(!tr.has(ev))return e1.extra={...e1.extra,parenthesized:!0},e1}})}if(p0=n9(p0,tr=>{switch(tr.type){case"LogicalExpression":if(bW(tr))return PU(tr);break;case"VariableDeclaration":{let xr=AU(!1,tr.declarations,-1);xr!=null&&xr.init&&$1(tr,xr);break}case"TSParenthesizedType":return tr.typeAnnotation;case"TSTypeParameter":if(typeof tr.name=="string"){let xr=Nt(tr);tr.name={type:"Identifier",name:tr.name,range:[xr,xr+tr.name.length]}}break;case"ObjectExpression":if(Hx==="typescript"){let xr=tr.properties.find(e1=>e1.type==="Property"&&e1.value.type==="TSEmptyBodyFunctionExpression");xr&&u9(xr.value,"Unexpected token.")}break;case"TSInterfaceDeclaration":N4(tr.implements)&&u9(tr.implements[0],"Interface declaration cannot have 'implements' clause.");break;case"TSPropertySignature":tr.initializer&&u9(tr.initializer,"An interface property cannot have an initializer.");break;case"TopicReference":p0.extra={...p0.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":{let{exported:xr}=tr;if(Hx==="meriyah"&&(xr==null?void 0:xr.type)==="Identifier"){let e1=kr.slice(Nt(xr),_s(xr));(e1.startsWith('"')||e1.startsWith("'"))&&(tr.exported={...tr.exported,type:"Literal",value:tr.exported.name,raw:e1})}break}case"TSUnionType":case"TSIntersectionType":if(tr.types.length===1)return tr.types[0];break}}),N4(p0.comments)){let tr=AU(!1,p0.comments,-1);for(let xr=p0.comments.length-2;xr>=0;xr--){let e1=p0.comments[xr];_s(e1)===Nt(tr)&&I4(e1)&&I4(tr)&&gU(e1)&&gU(tr)&&(p0.comments.splice(xr+1,1),e1.value+="*//*"+tr.value,e1.range=[Nt(e1),_s(tr)]),tr=e1}}return p0.type==="Program"&&(p0.range=[0,kr.length]),p0;function $1(tr,xr){kr[_s(xr)]!==";"&&(tr.range=[Nt(tr),_s(xr)])}}function bW(p0){return p0.type==="LogicalExpression"&&p0.right.type==="LogicalExpression"&&p0.operator===p0.right.operator}function PU(p0){return bW(p0)?PU({type:"LogicalExpression",operator:p0.operator,left:PU({type:"LogicalExpression",operator:p0.operator,left:p0.left,right:p0.right.left,range:[Nt(p0.left),_s(p0.right.left)]}),right:p0.right.right,range:[Nt(p0),_s(p0)]}):p0}var xV=VI0;var ZI0={comments:!1,enums:!0,esproposal_decorators:!0,esproposal_export_star_as:!0,tokens:!0};function $I0(p0){let{message:_x,loc:{start:Hx,end:kr}}=p0;return t9(_x,{loc:{start:{line:Hx.line,column:Hx.column+1},end:{line:kr.line,column:kr.column+1}},cause:p0})}function FI0(p0){let _x=rV.default.parse($W(p0),ZI0),[Hx]=_x.errors;if(Hx)throw $I0(Hx);return xV(_x,{text:p0})}var QI0=ZW(FI0);var GP0=CU;export{GP0 as default,i9 as parsers}; + -- too many open files. Try running with OCAMLRUNPARAM=b=2)`],TQ=[3,0,3],SQ=bf,EQ=$3,gQ="{"],qQ=[0,[12,32,0],Mt],HQ=[0,[12,32,0],Mt],bQ=[0,[17,[0,"@,",0,0],[12,Ci,[17,0,0]]],"@,}@]"],xG=[0,"src/hack_forked/utils/collections/third-party/flow_set.ml",379,14],rG=F3,eG=ka,tG=La,nG=wx,uG=kv,iG=[0,[12,40,[18,[1,[0,[11,Ie,0],Ie]],[11,"File_key.LibFile",[17,[0,ce,1,0],0]]]],"(@[<2>File_key.LibFile@ "],fG=[0,[3,0,0],J3],cG=[0,[17,0,[12,41,0]],b4],sG=[0,[12,40,[18,[1,[0,[11,Ie,0],Ie]],[11,"File_key.SourceFile",[17,[0,ce,1,0],0]]]],"(@[<2>File_key.SourceFile@ "],oG=[0,[3,0,0],J3],vG=[0,[17,0,[12,41,0]],b4],aG=[0,[12,40,[18,[1,[0,[11,Ie,0],Ie]],[11,"File_key.JsonFile",[17,[0,ce,1,0],0]]]],"(@[<2>File_key.JsonFile@ "],lG=[0,[3,0,0],J3],pG=[0,[17,0,[12,41,0]],b4],dG=[0,[12,40,[18,[1,[0,[11,Ie,0],Ie]],[11,"File_key.ResourceFile",[17,[0,ce,1,0],0]]]],"(@[<2>File_key.ResourceFile@ "],yG=[0,[3,0,0],J3],mG=[0,[17,0,[12,41,0]],b4],kG=[0,1],hG=[0,0],_G=[0,1],wG=[0,2],TG=[0,0],SG=[0,1],EG=[0,1],gG=[0,1],AG=[0,1],PG=[0,1],NG=[0,1],CG=[0,0,0],IG=[0,0,0],OG=[0,j2,ni,lf,Df,U2,Pi,Kc,xi,$7,bn,Pc,Wu,li,j7,E7,G7,Kf,Zf,gi,J7,Kn,di,Uc,T7,Mc,yi,zf,Ti,qn,Zn,nc,Tu,zi,of,Vc,Xe,Sf,Ai,Cc,yf,Lf,Q7,Pu,Ye,xf,_7,Wi,Ki,gc,I7,Zu,yc,Ue,O7,Fi,mu,Ru,ou,mc,Je,au,dc,Uf,_u,Yc,Xf,eu,Gf,oc,Iu,Di,d7,o7,Uu,Z7,A7,Ec,pc,X7,Nu,Rc,kn,gf,Bu,e7,Hf,b7,ai,ec,ui,_f,ii,n7,Dc,ff,Jc,$i,nu,Bf,Mf,Ri,C7,hf,B7,Nc,Vu,Ic,Lc,s7,Gu,kc,Lu,si,c7,ur,bi,iu,zn,R7,Ii,Wn,Du,U7,xc,Qi,Ff,Qf,Fn,xu,f7,L7,ci,jc,ti,hu,mf,t7,ic,Ac,Ku,ji,$1,du,ru,Zc,cu,Xi,jf,Hn,bu,Q2,N7,Yf,vu,af,v7,Xu,uu,hi,M2,S7,i7,w7,Ct,Au,lu,_i,yu,Bi,Xc,wi,Vn,pf,ri,If,qu,Hu,M7,Bn,h7,fc,Yn,q7,tc,Fu,su,Eu,Mu,Li,tu,F7,kf,Rf,l7,K7,Qn,Qu,mi,F1,V7,Vf,p7,Tf,Gn,m7,nf,ju,Cu,vc,wc,ef,Ui,Ou,u7,Su,Hi,sf,x7,Mi,se,Ni,Sc,Ef,uc,vf,rc,Yu,Of,k7,Ji,hc,df,Ju,Re,Oe,Gi,lc,sc,$n,$f,uf,pi,_c,$u,z7,Bc,a7,fu,Zi,qf,oi,Si,rf,ki,gu,W7,zc,qi,Yi,wu,Y7,cf,r7,Tc,Wc,vi,g7,Wf,tf,H7,P7,Me,ac,zu,on,Cf,Vi,D7,cc,ku,Oi,Pf,y7,fi,Nf,wf],RG=[0,gc,$1,qu,Au,Vn,P7,Ic,Bf,ci,Hn,zu,Mc,ec,Ye,b7,Vf,cf,ff,ic,s7,N7,Ku,Hi,Ui,ni,A7,yu,Eu,o7,xc,_c,_i,Su,Lu,Ct,Df,Rf,oc,Of,tf,Hu,Wf,mf,ju,au,Xc,Mu,Pu,Ri,i7,Wi,af,sf,U7,kc,Yi,rf,gf,wf,Yc,a7,di,nu,Uf,xu,W7,ui,Je,Dc,pf,Bu,si,jc,t7,lu,R7,lc,zf,wc,f7,Ii,If,Gf,y7,rc,m7,bi,mu,Rc,fi,Mi,H7,yc,U2,dc,hc,G7,O7,S7,D7,su,Vc,Zc,Y7,B7,Q7,se,F7,yi,j2,Wn,of,Ji,Xf,Wu,X7,df,Ru,cc,Pc,Si,k7,Vu,xi,Ac,Zn,jf,Ou,Qn,ai,p7,Du,pc,l7,Zf,qn,fu,Pi,nc,I7,Kf,_7,bn,zc,Yf,Li,ki,zn,ri,Zi,$7,oi,Nc,Ff,ku,iu,Wc,wu,z7,Ec,Qf,Bc,ur,M2,Ue,E7,gi,xf,Z7,Xe,Re,Lc,w7,Hf,mi,ji,kn,ac,fc,u7,vu,gu,V7,M7,du,wi,j7,ef,mc,tc,uu,vc,Gn,$f,hf,Zu,Mf,v7,ii,Di,Ti,$i,_u,n7,J7,vf,vi,Yu,Cf,cu,Lf,x7,Tu,Bi,ou,hi,Jc,Tc,C7,hu,qi,bu,Ni,T7,Nf,Kc,Sc,g7,Uc,Ef,ti,ru,sc,Qi,d7,Gu,Xi,K7,Fn,Kn,Cc,Oi,uf,Uu,Vi,F1,Nu,qf,Qu,zi,Yn,q7,Ki,Oe,Bn,$u,eu,nf,uc,Ai,yf,Fu,Tf,li,tu,e7,on,Xu,r7,L7,_f,h7,Ju,Cu,Me,Pf,Q2,Gi,lf,pi,Fi,kf,$n,Iu,Sf,c7],LG=nD,MG=VD,DG=eD,UG=JD,jG=JT,JG=gD,XG=$3,YG=kj,VG=HM,zG=yD,KG=jM,BG=Ls,WG=Lt,ZG=dJ,$G=LD,FG=F2,QG=KD,GG=oX,qG=m8,HG=I4,bG=wo,xq=Z3,rq=mD,eq=cX,tq=tU,nq=vD,uq=rX,iq=LM,fq=Ej,cq=kD,sq=lJ,oq=NU,vq=ZJ,aq=fD,lq=zU,pq=bJ,dq=Wj,yq=[0,[18,[1,[0,[11,Ie,0],Ie]],[11,xU,0]],zJ],mq="Loc.line",kq=[0,[18,[1,[0,0,kx]],[2,0,[11,K3,[17,[0,ce,1,0],0]]]],Y3],hq=[0,[4,0,0,0,0],hl],_q=[0,[17,0,0],va],wq=[0,[12,59,[17,[0,ce,1,0],0]],rp],Tq=ll,Sq=[0,[18,[1,[0,0,kx]],[2,0,[11,K3,[17,[0,ce,1,0],0]]]],Y3],Eq=[0,[4,0,0,0,0],hl],gq=[0,[17,0,0],va],Aq=[0,[17,[0,ce,1,0],[12,Ci,[17,0,0]]],oU],Pq=[0,[15,0],MU],Nq="(Some ",Cq=JS,Iq="None",Oq=[0,[18,[1,[0,[11,Ie,0],Ie]],[11,xU,0]],zJ],Rq="Loc.source",Lq=[0,[18,[1,[0,0,kx]],[2,0,[11,K3,[17,[0,ce,1,0],0]]]],Y3],Mq=[0,[17,0,0],va],Dq=[0,[12,59,[17,[0,ce,1,0],0]],rp],Uq=_9,jq=[0,[18,[1,[0,0,kx]],[2,0,[11,K3,[17,[0,ce,1,0],0]]]],Y3],Jq=[0,[17,0,0],va],Xq=[0,[12,59,[17,[0,ce,1,0],0]],rp],Yq="_end",Vq=[0,[18,[1,[0,0,kx]],[2,0,[11,K3,[17,[0,ce,1,0],0]]]],Y3],zq=[0,[17,0,0],va],Kq=[0,[17,[0,ce,1,0],[12,Ci,[17,0,0]]],oU],Bq="Object literal may not have data and accessor property with the same name",Wq="Object literal may not have multiple get/set accessors with the same name",Zq="Unexpected token <. Remember, adjacent JSX elements must be wrapped in an enclosing parent tag",$q="Modules can only have 1 since they are either an ES module xor they are a CommonJS module.",Fq="Found both `declare module.exports` and `declare export` in the same module. ",Qq="`let [` is ambiguous in this position because it is either a `let` binding pattern, or a member expression.",Gq="Async functions can only be declared at top level or immediately within another function.",qq="`await` is an invalid identifier in async functions",Hq="`await` is not allowed in async function parameters.",bq="Computed properties must have a value.",xH="Constructor can't be an accessor.",rH="Constructor can't be an async function.",eH="Constructor can't be a generator.",tH="It is sufficient for your declare function to just have a Promise return type.",nH="async is an implementation detail and isn't necessary for your declare function statement. ",uH="`declare` modifier can only appear on class fields.",iH="Unexpected token `=`. Initializers are not allowed in a `declare`.",fH="`declare export interface` is not supported. Use `export interface` instead.",cH="`declare export type` is not supported. Use `export type` instead.",sH="Unexpected token `=`. Initializers are not allowed in a `declare opaque type`.",oH="Classes may only have one constructor",vH="Duplicate `declare module.exports` statement!",aH="Rest element must be final element of an array pattern",lH="Cannot export an enum with `export type`, try `export enum E {}` or `module.exports = E;` instead.",pH="Enum members are separated with `,`. Replace `;` with `,`.",dH="`const` enums are not supported. Flow Enums are designed to allow for inlining, however the inlining itself needs to be part of the build system (whatever you use) rather than Flow itself.",yH="Expected an object pattern, array pattern, or an identifier but found an expression instead",mH="Missing comma between export specifiers",kH="Generators can only be declared at top level or immediately within another function.",hH="Getter should have zero parameters",_H="A getter cannot have a `this` parameter.",wH="Illegal break statement",TH="Illegal continue statement",SH="Illegal return statement",EH="Illegal Unicode escape",gH="Missing comma between import specifiers",AH="It cannot be used with `import type` or `import typeof` statements",PH="The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. ",NH="Explicit inexact syntax cannot appear inside an explicit exact object type",CH="Explicit inexact syntax can only appear inside an object type",IH="Component params must be an identifier. If you'd like to destructure, you should use `name as {destructure}`",OH="Components use `renders` instead of `:` to annotate the render type of a component.",RH="A bigint literal must be an integer",LH="JSX value should be either an expression or a quoted JSX text",MH="Invalid left-hand side in assignment",DH="Invalid left-hand side in exponentiation expression",UH="Invalid left-hand side in for-in",jH="Invalid left-hand side in for-of",JH="Imports within a `declare module` body must always be `import type` or `import typeof`!",XH="Invalid optional indexed access. Indexed access uses bracket notation. Use the format `T?.[K]`.",YH="Invalid regular expression",VH="A bigint literal cannot use exponential notation",zH="Tuple spread elements cannot be optional.",KH="Tuple variance annotations can only be used with labeled tuple elements, e.g. `[+foo: number]`",BH="`typeof` can only be used to get the type of variables.",WH="JSX attributes must only be assigned a non-empty expression",ZH="Literals cannot be used as shorthand properties.",$H="Malformed unicode",FH="Object pattern can't contain methods",QH="Expected at least one type parameter.",GH="Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",qH="More than one default clause in switch statement",HH="Illegal newline after throw",bH="Illegal newline before arrow",xb="Missing catch or finally after try",rb="Const must be initialized",eb="Destructuring assignment must be initialized",tb="An optional chain may not be used in a `new` expression.",nb="Template literals may not be used in an optional chain.",ub="Rest parameter must be final parameter of an argument list",ib="Private fields may not be deleted.",fb="Private fields can only be referenced from within a class.",cb="Rest property must be final property of an object pattern",sb="Setter should have exactly one parameter",ob="A setter cannot have a `this` parameter.",vb="Catch variable may not be eval or arguments in strict mode",ab="Delete of an unqualified identifier in strict mode.",lb="Duplicate data property in object literal not allowed in strict mode",pb="Function name may not be eval or arguments in strict mode",db="Assignment to eval or arguments is not allowed in strict mode",yb="Postfix increment/decrement may not have eval or arguments operand in strict mode",mb="Prefix increment/decrement may not have eval or arguments operand in strict mode",kb="Strict mode code may not include a with statement",hb="Number literals with leading zeros are not allowed in strict mode.",_b="Octal literals are not allowed in strict mode.",wb="Strict mode function may not have duplicate parameter names",Tb="Parameter name eval or arguments is not allowed in strict mode",Sb='Illegal "use strict" directive in function with non-simple parameter list',Eb="Use of reserved word in strict mode",gb="Variable name may not be eval or arguments in strict mode",Ab="You may not access a private field through the `super` keyword.",Pb="Flow does not support abstract classes.",Nb="Flow does not support template literal types.",Cb="A type annotation is required for the `this` parameter.",Ib="Arrow functions cannot have a `this` parameter; arrow functions automatically bind `this` when declared.",Ob="Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",Rb="The `this` parameter cannot be optional.",Lb="The `this` parameter must be the first function parameter.",Mb="A trailing comma is not permitted after the rest element",Db="Unexpected end of input",Ub="Explicit inexact syntax must come at the end of an object type",jb="Opaque type aliases are not allowed in untyped mode",Jb="Unexpected proto modifier",Xb="Unexpected reserved word",Yb="Unexpected reserved type",Vb="Spreading a type is only allowed inside an object type",zb="Unexpected static modifier",Kb="Unexpected `super` outside of a class method",Bb="`super()` is only valid in a class constructor",Wb="Type aliases are not allowed in untyped mode",Zb="Type annotations are not allowed in untyped mode",$b="Type declarations are not allowed in untyped mode",Fb="Type exports are not allowed in untyped mode",Qb="Type imports are not allowed in untyped mode",Gb="Interfaces are not allowed in untyped mode",qb="Unexpected variance sigil",Hb="Found a decorator in an unsupported position.",bb="Invalid regular expression: missing /",x00="Unexpected whitespace between `#` and identifier",r00="`yield` is an invalid identifier in generators",e00="Yield expression not allowed in formal parameter",t00=[0,[11,"Duplicate export for `",[2,0,[12,96,0]]],"Duplicate export for `%s`"],n00=[0,[11,"Private fields may only be declared once. `#",[2,0,[11,"` is declared more than once.",0]]],"Private fields may only be declared once. `#%s` is declared more than once."],u00=[0,[11,"bigint enum members need to be initialized, e.g. `",[2,0,[11," = 1n,` in enum `",[2,0,[11,gs,0]]]]],"bigint enum members need to be initialized, e.g. `%s = 1n,` in enum `%s`."],i00=[0,[11,"Boolean enum members need to be initialized. Use either `",[2,0,[11," = true,` or `",[2,0,[11," = false,` in enum `",[2,0,[11,gs,0]]]]]]],"Boolean enum members need to be initialized. Use either `%s = true,` or `%s = false,` in enum `%s`."],f00=[0,[11,"Enum member names need to be unique, but the name `",[2,0,[11,"` has already been used before in enum `",[2,0,[11,gs,0]]]]],"Enum member names need to be unique, but the name `%s` has already been used before in enum `%s`."],c00=[0,[11,TD,[2,0,[11,"` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.",0]]],"Enum `%s` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers."],s00="The `...` must come at the end of the enum body. Remove the trailing comma.",o00="The `...` must come after all enum members. Move it to the end of the enum body.",v00=[0,[11,"Use one of `boolean`, `number`, `string`, `symbol`, or `bigint` in enum `",[2,0,[11,gs,0]]],"Use one of `boolean`, `number`, `string`, `symbol`, or `bigint` in enum `%s`."],a00=[0,[11,"Enum type `",[2,0,[11,"` is not valid. ",[2,0,0]]]],"Enum type `%s` is not valid. %s"],l00=[0,[11,"Supplied enum type is not valid. ",[2,0,0]],"Supplied enum type is not valid. %s"],p00=[0,[11,"Enum member names and initializers are separated with `=`. Replace `",[2,0,[11,":` with `",[2,0,[11," =`.",0]]]]],"Enum member names and initializers are separated with `=`. Replace `%s:` with `%s =`."],d00=[0,[11,TD,[2,0,[11,"` has type `",[2,0,[11,"`, so the initializer of `",[2,0,[11,"` needs to be a ",[2,0,[11," literal.",0]]]]]]]]],"Enum `%s` has type `%s`, so the initializer of `%s` needs to be a %s literal."],y00=[0,[11,"Symbol enum members cannot be initialized. Use `",[2,0,[11,",` in enum `",[2,0,[11,gs,0]]]]],"Symbol enum members cannot be initialized. Use `%s,` in enum `%s`."],m00=[0,[11,"The enum member initializer for `",[2,0,[11,"` needs to be a literal (either a boolean, number, or string) in enum `",[2,0,[11,gs,0]]]]],"The enum member initializer for `%s` needs to be a literal (either a boolean, number, or string) in enum `%s`."],k00=[0,[11,"Enum member names cannot start with lowercase 'a' through 'z'. Instead of using `",[2,0,[11,"`, consider using `",[2,0,[11,"`, in enum `",[2,0,[11,gs,0]]]]]]],"Enum member names cannot start with lowercase 'a' through 'z'. Instead of using `%s`, consider using `%s`, in enum `%s`."],h00=[0,[11,"Number enum members need to be initialized, e.g. `",[2,0,[11," = 1,` in enum `",[2,0,[11,gs,0]]]]],"Number enum members need to be initialized, e.g. `%s = 1,` in enum `%s`."],_00=[0,[11,"String enum members need to consistently either all use initializers, or use no initializers, in enum ",[2,0,[12,46,0]]],"String enum members need to consistently either all use initializers, or use no initializers, in enum %s."],w00=[0,[11,"Expected corresponding JSX closing tag for ",[2,0,0]],"Expected corresponding JSX closing tag for %s"],T00="immediately within another function.",S00="In strict mode code, functions can only be declared at top level or ",E00="inside a block, or as the body of an if statement.",g00="In non-strict mode code, functions can only be declared at top level, ",A00="static ",P00=kx,N00="methods",C00="fields",I00=YM,O00=[0,[11,"Classes may not have ",[2,0,[2,0,[11," named `",[2,0,[11,gs,0]]]]]],"Classes may not have %s%s named `%s`."],R00=Bj,L00=kx,M00=[0,[11,"String params require local bindings using `as` renaming. You can use `'",[2,0,[11,"' as ",[2,0,[2,0,[11,": ` ",0]]]]]],"String params require local bindings using `as` renaming. You can use `'%s' as %s%s: ` "],D00="Remove the period.",U00="Indexed access uses bracket notation.",j00=[0,[11,"Invalid indexed access. ",[2,0,[11," Use the format `T[K]`.",0]]],"Invalid indexed access. %s Use the format `T[K]`."],J00=[0,[11,"Invalid flags supplied to RegExp constructor '",[2,0,[12,39,0]]],"Invalid flags supplied to RegExp constructor '%s'"],X00=[0,[11,"JSX element ",[2,0,[11," has no corresponding closing tag.",0]]],"JSX element %s has no corresponding closing tag."],Y00=[0,[11,PD,[2,0,[11,"`. Parentheses are required to combine `??` with `&&` or `||` expressions.",0]]],"Unexpected token `%s`. Parentheses are required to combine `??` with `&&` or `||` expressions."],V00=[0,[2,0,[11," '",[2,0,[11,"' has already been declared",0]]]],"%s '%s' has already been declared"],z00=kx,K00=B3,B00=" You can try using JavaScript private fields by prepending `#` to the field name.",W00=kl,Z00=" Fields and methods are public by default. You can simply omit the `public` keyword.",$00=j3,F00=[0,[11,"Flow does not support using `",[2,0,[11,"` in classes.",[2,0,0]]]],"Flow does not support using `%s` in classes.%s"],Q00=[0,[11,"Private fields must be declared before they can be referenced. `#",[2,0,[11,"` has not been declared.",0]]],"Private fields must be declared before they can be referenced. `#%s` has not been declared."],G00=[0,[11,sj,[2,0,0]],"Unexpected %s"],q00=[0,[11,PD,[2,0,[11,"`. Did you mean `",[2,0,[11,"`?",0]]]]],"Unexpected token `%s`. Did you mean `%s`?"],H00=[0,[11,sj,[2,0,[11,", expected ",[2,0,0]]]],"Unexpected %s, expected %s"],b00=[0,[11,"Undefined label '",[2,0,[12,39,0]]],"Undefined label '%s'"],xx0="Parse_error.Error",rx0=[0,[0,36,37],[0,48,58],[0,65,91],[0,95,96],[0,97,Rt],[0,B9,Nk],[0,SI,Fk],[0,rd,IN],[0,Qh,bE],[0,ma,gT],[0,ZN,X8],[0,Gr,706],[0,WD,722],[0,736,741],[0,748,749],[0,750,751],[0,768,885],[0,886,888],[0,890,894],[0,895,896],[0,902,907],[0,908,909],[0,910,930],[0,DJ,1014],[0,1015,1154],[0,1155,1160],[0,1162,1328],[0,1329,1367],[0,1369,1370],[0,1376,1417],[0,1425,1470],[0,1471,1472],[0,1473,1475],[0,1476,1478],[0,1479,1480],[0,1488,1515],[0,1519,1523],[0,1552,1563],[0,1568,1642],[0,1646,1748],[0,1749,1757],[0,1759,1769],[0,1770,1789],[0,1791,1792],[0,1808,1867],[0,1869,1970],[0,1984,2038],[0,2042,2043],[0,2045,2046],[0,sC,2094],[0,2112,2140],[0,2144,2155],[0,2208,2229],[0,2230,2238],[0,2259,2274],[0,2275,2404],[0,2406,2416],[0,2417,2436],[0,2437,2445],[0,2447,2449],[0,2451,2473],[0,2474,2481],[0,2482,2483],[0,2486,2490],[0,2492,2501],[0,2503,2505],[0,2507,2511],[0,2519,2520],[0,2524,2526],[0,2527,2532],[0,2534,2546],[0,2556,2557],[0,2558,2559],[0,2561,2564],[0,2565,2571],[0,2575,2577],[0,2579,2601],[0,2602,2609],[0,2610,2612],[0,2613,2615],[0,2616,2618],[0,2620,2621],[0,2622,2627],[0,2631,2633],[0,2635,2638],[0,2641,2642],[0,2649,2653],[0,2654,2655],[0,2662,2678],[0,2689,2692],[0,2693,2702],[0,2703,2706],[0,2707,2729],[0,2730,2737],[0,2738,2740],[0,2741,2746],[0,2748,2758],[0,2759,2762],[0,2763,2766],[0,2768,2769],[0,2784,2788],[0,2790,2800],[0,2809,2816],[0,2817,2820],[0,2821,2829],[0,2831,2833],[0,2835,2857],[0,2858,2865],[0,2866,2868],[0,2869,2874],[0,2876,2885],[0,2887,2889],[0,2891,2894],[0,2902,2904],[0,2908,2910],[0,2911,2916],[0,2918,2928],[0,2929,2930],[0,2946,2948],[0,2949,2955],[0,2958,2961],[0,2962,2966],[0,2969,2971],[0,2972,2973],[0,2974,2976],[0,2979,2981],[0,2984,2987],[0,2990,3002],[0,3006,3011],[0,3014,3017],[0,3018,3022],[0,3024,3025],[0,3031,3032],[0,3046,3056],[0,3072,3085],[0,3086,3089],[0,3090,3113],[0,3114,3130],[0,3133,3141],[0,3142,3145],[0,3146,3150],[0,3157,3159],[0,3160,3163],[0,3168,3172],[0,3174,3184],[0,3200,3204],[0,3205,3213],[0,3214,3217],[0,3218,3241],[0,3242,3252],[0,3253,3258],[0,3260,3269],[0,3270,3273],[0,3274,3278],[0,3285,3287],[0,3294,3295],[0,3296,3300],[0,3302,3312],[0,3313,3315],[0,3328,3332],[0,3333,3341],[0,3342,3345],[0,3346,3397],[0,3398,3401],[0,3402,3407],[0,3412,3416],[0,3423,3428],[0,3430,3440],[0,3450,3456],[0,3458,3460],[0,3461,3479],[0,3482,3506],[0,3507,3516],[0,3517,3518],[0,3520,3527],[0,3530,3531],[0,3535,3541],[0,3542,3543],[0,3544,3552],[0,3558,3568],[0,3570,3572],[0,3585,3643],[0,3648,3663],[0,3664,3674],[0,3713,3715],[0,3716,3717],[0,3718,3723],[0,3724,3748],[0,3749,3750],[0,3751,3774],[0,3776,3781],[0,3782,3783],[0,3784,3790],[0,3792,3802],[0,3804,3808],[0,3840,3841],[0,3864,3866],[0,3872,3882],[0,3893,3894],[0,3895,3896],[0,3897,3898],[0,3902,3912],[0,3913,3949],[0,3953,3973],[0,3974,3992],[0,3993,4029],[0,4038,4039],[0,xj,4170],[0,4176,4254],[0,4256,4294],[0,4295,4296],[0,4301,4302],[0,4304,4347],[0,4348,4681],[0,4682,4686],[0,4688,4695],[0,4696,4697],[0,4698,4702],[0,4704,4745],[0,4746,4750],[0,4752,4785],[0,4786,4790],[0,4792,4799],[0,4800,4801],[0,4802,4806],[0,4808,4823],[0,4824,4881],[0,4882,4886],[0,4888,4955],[0,4957,4960],[0,4969,4978],[0,4992,5008],[0,5024,5110],[0,5112,5118],[0,5121,5741],[0,5743,ZT],[0,5761,5787],[0,5792,5867],[0,5870,5881],[0,5888,5901],[0,5902,5909],[0,5920,5941],[0,5952,5972],[0,5984,5997],[0,5998,6001],[0,6002,6004],[0,6016,6100],[0,6103,6104],[0,6108,6110],[0,6112,6122],[0,6155,6158],[0,6160,6170],[0,6176,6265],[0,6272,6315],[0,6320,6390],[0,6400,6431],[0,6432,6444],[0,6448,6460],[0,6470,6510],[0,6512,6517],[0,6528,6572],[0,6576,6602],[0,6608,6619],[0,6656,6684],[0,6688,6751],[0,6752,6781],[0,6783,6794],[0,6800,6810],[0,6823,6824],[0,6832,6846],[0,6912,6988],[0,6992,7002],[0,7019,7028],[0,7040,7156],[0,7168,7224],[0,7232,7242],[0,7245,7294],[0,7296,7305],[0,7312,7355],[0,7357,7360],[0,7376,7379],[0,7380,7419],[0,7424,7674],[0,7675,7958],[0,7960,7966],[0,7968,8006],[0,8008,8014],[0,8016,8024],[0,8025,8026],[0,8027,8028],[0,8029,8030],[0,8031,8062],[0,8064,8117],[0,8118,8125],[0,8126,8127],[0,8130,8133],[0,8134,8141],[0,8144,8148],[0,8150,8156],[0,8160,8173],[0,8178,8181],[0,8182,8189],[0,Mj,BU],[0,8255,8257],[0,8276,8277],[0,M8,8306],[0,H5,8320],[0,8336,8349],[0,8400,8413],[0,8417,8418],[0,8421,8433],[0,md,8451],[0,N5,8456],[0,8458,g8],[0,Gp,8470],[0,UJ,8478],[0,Ed,op],[0,c8,s8],[0,Up,Yp],[0,8490,8506],[0,8508,8512],[0,8517,8522],[0,u8,8527],[0,8544,8585],[0,11264,11311],[0,11312,11359],[0,11360,11493],[0,11499,11508],[0,11520,j4],[0,L8,11560],[0,U4,11566],[0,11568,11624],[0,A5,11632],[0,B8,11671],[0,11680,mp],[0,11688,l8],[0,11696,W4],[0,11704,w8],[0,11712,z5],[0,11720,D5],[0,11728,Rp],[0,11736,11743],[0,11744,11776],[0,12293,12296],[0,12321,D4],[0,12337,12342],[0,12344,12349],[0,12353,12439],[0,12441,j5],[0,12449,od],[0,12540,12544],[0,12549,S5],[0,12593,12687],[0,12704,12731],[0,12784,12800],[0,13312,19894],[0,19968,40944],[0,40960,42125],[0,42192,42238],[0,42240,42509],[0,42512,42540],[0,42560,42608],[0,42612,B5],[0,42623,42738],[0,42775,42784],[0,42786,42889],[0,42891,42944],[0,42946,42951],[0,D8,43048],[0,43072,43124],[0,43136,43206],[0,43216,43226],[0,43232,43256],[0,L5,$5],[0,43261,43310],[0,43312,43348],[0,43360,43389],[0,43392,43457],[0,Sp,43482],[0,43488,cd],[0,43520,43575],[0,43584,43598],[0,43600,43610],[0,43616,43639],[0,T8,43715],[0,43739,43742],[0,43744,43760],[0,43762,43767],[0,43777,43783],[0,43785,43791],[0,43793,43799],[0,43808,H8],[0,43816,e8],[0,43824,e5],[0,43868,i8],[0,43888,44011],[0,44012,44014],[0,44016,44026],[0,44032,55204],[0,55216,55239],[0,55243,55292],[0,63744,64110],[0,64112,64218],[0,64256,64263],[0,64275,64280],[0,Np,V8],[0,64298,sd],[0,64312,Q5],[0,Z8,np],[0,64320,Tp],[0,64323,o5],[0,64326,64434],[0,64467,64830],[0,64848,64912],[0,64914,64968],[0,65008,65020],[0,65024,65040],[0,65056,65072],[0,65075,65077],[0,65101,65104],[0,65136,wp],[0,65142,65277],[0,65296,65306],[0,65313,65339],[0,65343,O5],[0,65345,65371],[0,65382,65471],[0,65474,65480],[0,65482,65488],[0,65490,65496],[0,65498,65501],[0,b3,v8],[0,65549,y8],[0,65576,ap],[0,65596,l5],[0,65599,65614],[0,65616,65630],[0,65664,65787],[0,65856,65909],[0,66045,66046],[0,66176,66205],[0,66208,66257],[0,66272,66273],[0,66304,66336],[0,66349,66379],[0,66384,66427],[0,66432,66462],[0,66464,66500],[0,66504,c5],[0,66513,66518],[0,66560,66718],[0,66720,66730],[0,66736,66772],[0,66776,66812],[0,66816,66856],[0,66864,66916],[0,67072,67383],[0,67392,67414],[0,67424,67432],[0,67584,67590],[0,fd,v5],[0,67594,Y5],[0,67639,67641],[0,F5,67645],[0,67647,67670],[0,67680,67703],[0,67712,67743],[0,67808,kd],[0,67828,67830],[0,67840,67862],[0,67872,67898],[0,67968,68024],[0,68030,68032],[0,Cd,68100],[0,68101,68103],[0,68108,fp],[0,68117,wd],[0,68121,68150],[0,68152,68155],[0,68159,68160],[0,68192,68221],[0,68224,68253],[0,68288,V4],[0,68297,68327],[0,68352,68406],[0,68416,68438],[0,68448,68467],[0,68480,68498],[0,68608,68681],[0,68736,68787],[0,68800,68851],[0,68864,68904],[0,68912,68922],[0,69376,69405],[0,f8,69416],[0,69424,69457],[0,69600,69623],[0,69632,69703],[0,69734,kp],[0,69759,69819],[0,69840,69865],[0,69872,69882],[0,69888,69941],[0,69942,69952],[0,j8,o8],[0,69968,70004],[0,F4,70007],[0,70016,70085],[0,70089,70093],[0,70096,K4],[0,Td,70109],[0,70144,xd],[0,70163,70200],[0,70206,70207],[0,70272,_8],[0,i5,cp],[0,70282,q8],[0,70287,H4],[0,70303,70313],[0,70320,70379],[0,70384,70394],[0,70400,N8],[0,70405,70413],[0,70415,70417],[0,70419,C8],[0,70442,pp],[0,70450,_d],[0,70453,70458],[0,70459,70469],[0,70471,70473],[0,70475,70478],[0,Sd,70481],[0,70487,70488],[0,70493,70500],[0,70502,70509],[0,70512,70517],[0,70656,70731],[0,70736,70746],[0,V5,70752],[0,70784,_5],[0,y5,70856],[0,70864,70874],[0,71040,71094],[0,71096,71105],[0,71128,71134],[0,71168,71233],[0,Kp,71237],[0,71248,71258],[0,71296,71353],[0,71360,71370],[0,71424,71451],[0,71453,71468],[0,71472,71482],[0,71680,71739],[0,71840,71914],[0,71935,71936],[0,72096,72104],[0,72106,72152],[0,72154,E8],[0,O4,72165],[0,ed,72255],[0,72263,72264],[0,u5,72346],[0,t8,72350],[0,72384,72441],[0,72704,x5],[0,72714,72759],[0,72760,72769],[0,72784,72794],[0,72818,72848],[0,72850,72872],[0,72873,72887],[0,72960,$4],[0,72968,h5],[0,72971,73015],[0,73018,73019],[0,73020,73022],[0,73023,73032],[0,73040,73050],[0,73056,id],[0,73063,I8],[0,73066,73103],[0,73104,73106],[0,73107,73113],[0,73120,73130],[0,73440,73463],[0,73728,74650],[0,74752,74863],[0,74880,75076],[0,77824,78895],[0,82944,83527],[0,92160,92729],[0,92736,92767],[0,92768,92778],[0,92880,92910],[0,92912,92917],[0,92928,92983],[0,92992,92996],[0,93008,93018],[0,93027,93048],[0,93053,93072],[0,93760,93824],[0,93952,94027],[0,U8,94088],[0,94095,94112],[0,94176,qp],[0,Op,94180],[0,94208,100344],[0,100352,101107],[0,110592,110879],[0,110928,110931],[0,110948,110952],[0,110960,111356],[0,113664,113771],[0,113776,113789],[0,113792,113801],[0,113808,113818],[0,113821,113823],[0,119141,119146],[0,119149,119155],[0,119163,119171],[0,119173,119180],[0,119210,119214],[0,119362,119365],[0,119808,M4],[0,119894,O8],[0,119966,119968],[0,Nd,119971],[0,119973,119975],[0,119977,Zp],[0,119982,Cp],[0,I5,k5],[0,119997,n5],[0,120005,Ap],[0,120071,120075],[0,120077,$p],[0,120086,s5],[0,120094,r8],[0,120123,Jp],[0,120128,b5],[0,Lp,120135],[0,120138,Dp],[0,120146,120486],[0,120488,vd],[0,120514,k8],[0,120540,b8],[0,120572,Y4],[0,120598,G4],[0,120630,nd],[0,120656,U5],[0,120688,gd],[0,120714,F8],[0,120746,yd],[0,120772,120780],[0,120782,120832],[0,121344,121399],[0,121403,121453],[0,121461,121462],[0,121476,121477],[0,121499,121504],[0,121505,121520],[0,122880,122887],[0,122888,122905],[0,122907,122914],[0,122915,122917],[0,122918,122923],[0,123136,123181],[0,123184,123198],[0,123200,123210],[0,hp,123215],[0,123584,123642],[0,124928,125125],[0,125136,125143],[0,125184,125260],[0,125264,125274],[0,126464,E5],[0,126469,pd],[0,126497,J5],[0,jp,126501],[0,q4,p5],[0,126505,xp],[0,126516,Vp],[0,R4,W8],[0,z8,126524],[0,R5,126531],[0,M5,_p],[0,m5,a5],[0,ad,C5],[0,126541,S8],[0,126545,dp],[0,gr,126549],[0,d5,ld],[0,lp,n8],[0,Fp,Ad],[0,X4,G5],[0,Q4,dd],[0,126561,zp],[0,Z4,126565],[0,126567,W5],[0,126572,z4],[0,126580,a8],[0,126585,Ep],[0,up,Pd],[0,126592,$8],[0,126603,126620],[0,126625,R8],[0,126629,Y8],[0,126635,126652],[0,131072,173783],[0,173824,177973],[0,177984,178206],[0,178208,183970],[0,183984,191457],[0,194560,195102],[0,917760,918e3]],ex0=[0,1,0],tx0=[0,0,[0,1,0],[0,1,0]],nx0=fj,ux0="end of input",ix0=yl,fx0="template literal part",cx0=yl,sx0=HU,ox0=fj,vx0=yl,ax0=ka,lx0=yl,px0=kv,dx0=yl,yx0=La,mx0="an",kx0=Ct,hx0=Mt,_x0=[0,[11,"token `",[2,0,[12,96,0]]],"token `%s`"],wx0="{",Tx0=J8,Sx0="{|",Ex0="|}",gx0=DM,Ax0=JS,Px0="[",Nx0="]",Cx0=hT,Ix0=VM,Ox0=bf,Rx0="=>",Lx0="...",Mx0=kU,Dx0=YM,Ux0=la,jx0=Qp,Jx0=wo,Xx0=Z3,Yx0=Ue,Vx0=Ye,zx0=vv,Kx0=Xe,Bx0=td,Wx0=sl,Zx0=Mp,$x0=vp,Fx0=nl,Qx0=da,Gx0=mv,qx0=As,Hx0=Ss,bx0=Me,xr0=Xp,rr0=K8,er0=Oe,tr0=av,nr0=K5,ur0=gp,ir0=d8,fr0=V3,cr0=Oc,sr0=je,or0=Ip,vr0=ov,ar0=el,lr0=Ts,pr0=Ps,dr0=cl,yr0=x8,mr0=M2,kr0=Na,hr0=_v,_r0=Q2,wr0=Wp,Tr0=kl,Sr0=B3,Er0=j3,gr0=j2,Ar0=Re,Pr0=Q3,Nr0=ei,Cr0=Ch,Ir0=Xh,Or0=To,Rr0=Ev,Lr0="%checks",Mr0=lJ,Dr0=kD,Ur0=Ej,jr0=ZJ,Jr0=NU,Xr0=fD,Yr0=LM,Vr0=rX,zr0=tU,Kr0=vD,Br0=cX,Wr0=mD,Zr0=zU,$r0=bJ,Fr0=Wj,Qr0=R_,Gr0="?.",qr0=i9,Hr0=Bj,br0=Cv,x10=lU,r10=tX,e10=oX,t10=m8,n10=I4,u10=nD,i10=VD,f10=eD,c10=JD,s10=gD,o10=kj,v10=JT,a10=$3,l10=HM,p10=yD,d10=jM,y10=Ls,m10=Lt,k10=F2,h10=dJ,_10=LD,w10=KD,T10=MD,S10=Hj,E10=OJ,g10=SU,A10=kx,P10=t5,N10=sp,C10=se,I10=ka,O10=kv,R10=La,L10=Ps,M10=wx,D10=g5,U10=P8,j10=q5,J10=A8,X10=Ta,Y10=RU,V10=al,z10=ya,K10=U3,B10=U3,W10=eX,Z10=U3,$10=U3,F10=J8,Q10=J8,G10=eX,q10=F2,H10=F2,b10=F3,x20=T5,r20="T_LCURLY",e20="T_RCURLY",t20="T_LCURLYBAR",n20="T_RCURLYBAR",u20="T_LPAREN",i20="T_RPAREN",f20="T_LBRACKET",c20="T_RBRACKET",s20="T_SEMICOLON",o20="T_COMMA",v20="T_PERIOD",a20="T_ARROW",l20="T_ELLIPSIS",p20="T_AT",d20="T_POUND",y20="T_FUNCTION",m20="T_IF",k20="T_IN",h20="T_INSTANCEOF",_20="T_RETURN",w20="T_SWITCH",T20="T_THIS",S20="T_THROW",E20="T_TRY",g20="T_VAR",A20="T_WHILE",P20="T_WITH",N20="T_CONST",C20="T_LET",I20="T_NULL",O20="T_FALSE",R20="T_TRUE",L20="T_BREAK",M20="T_CASE",D20="T_CATCH",U20="T_CONTINUE",j20="T_DEFAULT",J20="T_DO",X20="T_FINALLY",Y20="T_FOR",V20="T_CLASS",z20="T_EXTENDS",K20="T_STATIC",B20="T_ELSE",W20="T_NEW",Z20="T_DELETE",$20="T_TYPEOF",F20="T_VOID",Q20="T_ENUM",G20="T_EXPORT",q20="T_IMPORT",H20="T_SUPER",b20="T_IMPLEMENTS",xe0="T_INTERFACE",re0="T_PACKAGE",ee0="T_PRIVATE",te0="T_PROTECTED",ne0="T_PUBLIC",ue0="T_YIELD",ie0="T_DEBUGGER",fe0="T_DECLARE",ce0="T_TYPE",se0="T_OPAQUE",oe0="T_OF",ve0="T_ASYNC",ae0="T_AWAIT",le0="T_CHECKS",pe0="T_RSHIFT3_ASSIGN",de0="T_RSHIFT_ASSIGN",ye0="T_LSHIFT_ASSIGN",me0="T_BIT_XOR_ASSIGN",ke0="T_BIT_OR_ASSIGN",he0="T_BIT_AND_ASSIGN",_e0="T_MOD_ASSIGN",we0="T_DIV_ASSIGN",Te0="T_MULT_ASSIGN",Se0="T_EXP_ASSIGN",Ee0="T_MINUS_ASSIGN",ge0="T_PLUS_ASSIGN",Ae0="T_NULLISH_ASSIGN",Pe0="T_AND_ASSIGN",Ne0="T_OR_ASSIGN",Ce0="T_ASSIGN",Ie0="T_PLING_PERIOD",Oe0="T_PLING_PLING",Re0="T_PLING",Le0="T_COLON",Me0="T_OR",De0="T_AND",Ue0="T_BIT_OR",je0="T_BIT_XOR",Je0="T_BIT_AND",Xe0="T_EQUAL",Ye0="T_NOT_EQUAL",Ve0="T_STRICT_EQUAL",ze0="T_STRICT_NOT_EQUAL",Ke0="T_LESS_THAN_EQUAL",Be0="T_GREATER_THAN_EQUAL",We0="T_LESS_THAN",Ze0="T_GREATER_THAN",$e0="T_LSHIFT",Fe0="T_RSHIFT",Qe0="T_RSHIFT3",Ge0="T_PLUS",qe0="T_MINUS",He0="T_DIV",be0="T_MULT",xt0="T_EXP",rt0="T_MOD",et0="T_NOT",tt0="T_BIT_NOT",nt0="T_INCR",ut0="T_DECR",it0="T_EOF",ft0="T_ANY_TYPE",ct0="T_MIXED_TYPE",st0="T_EMPTY_TYPE",ot0="T_NUMBER_TYPE",vt0="T_BIGINT_TYPE",at0="T_STRING_TYPE",lt0="T_VOID_TYPE",pt0="T_SYMBOL_TYPE",dt0="T_UNKNOWN_TYPE",yt0="T_NEVER_TYPE",mt0="T_UNDEFINED_TYPE",kt0="T_KEYOF",ht0="T_READONLY",_t0="T_INFER",wt0="T_IS",Tt0="T_ASSERTS",St0="T_NUMBER",Et0="T_BIGINT",gt0="T_STRING",At0="T_TEMPLATE_PART",Pt0="T_IDENTIFIER",Nt0="T_REGEXP",Ct0="T_INTERPRETER",It0="T_ERROR",Ot0="T_JSX_IDENTIFIER",Rt0=HJ,Lt0=HJ,Mt0="T_BOOLEAN_TYPE",Dt0="T_NUMBER_SINGLETON_TYPE",Ut0="T_BIGINT_SINGLETON_TYPE",jt0=[0,QU,CS,9],Jt0=[0,QU,BT,9],Xt0=sU,Yt0="*/",Vt0=sU,zt0="unreachable line_comment",Kt0="unreachable string_quote",Bt0="\\",Wt0="unreachable template_part",Zt0=`\r +`,$t0=vT,Ft0="unreachable regexp_class",Qt0=SJ,Gt0="unreachable regexp_body",qt0=kx,Ht0=kx,bt0=kx,xn0=kx,rn0=pJ,en0="{'>'}",tn0=$3,nn0="{'}'}",un0=J8,in0=mo,fn0=hT,cn0=I4,sn0=pJ,on0=mo,vn0=hT,an0=I4,ln0="unreachable type_token wholenumber",pn0="unreachable type_token wholebigint",dn0="unreachable type_token floatbigint",yn0="unreachable type_token scinumber",mn0="unreachable type_token scibigint",kn0="unreachable type_token hexnumber",hn0="unreachable type_token hexbigint",_n0="unreachable type_token legacyoctnumber",wn0="unreachable type_token octnumber",Tn0="unreachable type_token octbigint",Sn0="unreachable type_token binnumber",En0="unreachable type_token bigbigint",gn0="unreachable type_token",An0=wJ,Pn0=[11,1],Nn0=[11,0],Cn0="unreachable template_tail",In0=kx,On0=kx,Rn0="unreachable jsx_child",Ln0="unreachable jsx_tag",Mn0=[0,aD],Dn0=[0,913],Un0=[0,ma],jn0=[0,dh],Jn0=[0,YD],Xn0=[0,FJ],Yn0=[0,8747],Vn0=[0,oJ],zn0=[0,916],Kn0=[0,8225],Bn0=[0,935],Wn0=[0,ag],Zn0=[0,914],$n0=[0,Pj],Fn0=[0,jD],Qn0=[0,jJ],Gn0=[0,915],qn0=[0,BJ],Hn0=[0,919],bn0=[0,917],x70=[0,vX],r70=[0,eJ],e70=[0,AD],t70=[0,924],n70=[0,923],u70=[0,922],i70=[0,nX],f70=[0,921],c70=[0,$D],s70=[0,BT],o70=[0,zM],v70=[0,ZN],a70=[0,927],l70=[0,937],p70=[0,GJ],d70=[0,iE],y70=[0,BD],m70=[0,338],k70=[0,352],h70=[0,929],_70=[0,936],w70=[0,8243],T70=[0,928],S70=[0,934],E70=[0,Qj],g70=[0,UM],A70=[0,933],P70=[0,Cj],N70=[0,bj],C70=[0,JJ],I70=[0,920],O70=[0,932],R70=[0,$M],L70=[0,KU],M70=[0,UU],D70=[0,wj],U70=[0,918],j70=[0,376],J70=[0,$U],X70=[0,926],Y70=[0,Sj],V70=[0,DJ],z70=[0,925],K70=[0,39],B70=[0,8736],W70=[0,8743],Z70=[0,38],$70=[0,945],F70=[0,8501],Q70=[0,ga],G70=[0,8226],q70=[0,LU],H70=[0,946],b70=[0,8222],xu0=[0,Tj],ru0=[0,qJ],eu0=[0,8776],tu0=[0,yJ],nu0=[0,8773],uu0=[0,9827],iu0=[0,WD],fu0=[0,967],cu0=[0,VU],su0=[0,IN],ou0=[0,tj],vu0=[0,vU],au0=[0,8595],lu0=[0,8224],pu0=[0,8659],du0=[0,IT],yu0=[0,8746],mu0=[0,8629],ku0=[0,r5],hu0=[0,8745],_u0=[0,8195],wu0=[0,8709],Tu0=[0,iX],Su0=[0,sX],Eu0=[0,wU],gu0=[0,X8],Au0=[0,9830],Pu0=[0,8707],Nu0=[0,8364],Cu0=[0,CJ],Iu0=[0,ha],Ou0=[0,951],Ru0=[0,8801],Lu0=[0,949],Mu0=[0,8194],Du0=[0,8805],Uu0=[0,947],ju0=[0,8260],Ju0=[0,hD],Xu0=[0,lj],Yu0=[0,CS],Vu0=[0,8704],zu0=[0,pT],Ku0=[0,ZA],Bu0=[0,8230],Wu0=[0,9829],Zu0=[0,8596],$u0=[0,8660],Fu0=[0,62],Qu0=[0,402],Gu0=[0,948],qu0=[0,IU],Hu0=[0,QS],bu0=[0,8712],xi0=[0,ej],ri0=[0,953],ei0=[0,8734],ti0=[0,8465],ni0=[0,VJ],ui0=[0,8220],ii0=[0,8968],fi0=[0,8592],ci0=[0,Nk],si0=[0,10216],oi0=[0,955],vi0=[0,8656],ai0=[0,954],li0=[0,60],pi0=[0,8216],di0=[0,8249],yi0=[0,BU],mi0=[0,9674],ki0=[0,8727],hi0=[0,8970],_i0=[0,US],wi0=[0,8711],Ti0=[0,956],Si0=[0,8722],Ei0=[0,rd],gi0=[0,SI],Ai0=[0,8212],Pi0=[0,dk],Ni0=[0,8804],Ci0=[0,957],Ii0=[0,MM],Oi0=[0,8836],Ri0=[0,8713],Li0=[0,DU],Mi0=[0,8715],Di0=[0,8800],Ui0=[0,8853],ji0=[0,959],Ji0=[0,969],Xi0=[0,8254],Yi0=[0,aJ],Vi0=[0,339],zi0=[0,Z5],Ki0=[0,Jj],Bi0=[0,Fk],Wi0=[0,h8],Zi0=[0,8855],$i0=[0,dS],Fi0=[0,Gr],Qi0=[0,Qh],Gi0=[0,B9],qi0=[0,RJ],Hi0=[0,wD],bi0=[0,982],xf0=[0,960],rf0=[0,966],ef0=[0,8869],tf0=[0,8240],nf0=[0,8706],uf0=[0,8744],if0=[0,8211],ff0=[0,10217],cf0=[0,8730],sf0=[0,8658],of0=[0,34],vf0=[0,968],af0=[0,8733],lf0=[0,8719],pf0=[0,961],df0=[0,8971],yf0=[0,xX],mf0=[0,8476],kf0=[0,8221],hf0=[0,8969],_f0=[0,8594],wf0=[0,bE],Tf0=[0,Nj],Sf0=[0,MP],Ef0=[0,8901],gf0=[0,353],Af0=[0,8218],Pf0=[0,8217],Nf0=[0,8250],Cf0=[0,8835],If0=[0,8721],Of0=[0,8838],Rf0=[0,8834],Lf0=[0,9824],Mf0=[0,8764],Df0=[0,962],Uf0=[0,963],jf0=[0,8207],Jf0=[0,952],Xf0=[0,8756],Yf0=[0,964],Vf0=[0,bp],zf0=[0,8839],Kf0=[0,JM],Bf0=[0,rJ],Wf0=[0,Ov],Zf0=[0,8657],$f0=[0,8482],Ff0=[0,gT],Qf0=[0,732],Gf0=[0,Ca],qf0=[0,8201],Hf0=[0,977],bf0=[0,UJ],xc0=[0,Ea],rc0=[0,965],ec0=[0,978],tc0=[0,CT],nc0=[0,B4],uc0=[0,pj],ic0=[0,Mj],fc0=[0,8205],cc0=[0,950],sc0=[0,z3],oc0=[0,AJ],vc0=[0,Q8],ac0=[0,958],lc0=[0,8593],pc0=[0,Yw],dc0=[0,8242],yc0=[0,qU],mc0="unreachable regexp",kc0="unreachable token wholenumber",hc0="unreachable token wholebigint",_c0="unreachable token floatbigint",wc0="unreachable token scinumber",Tc0="unreachable token scibigint",Sc0="unreachable token hexnumber",Ec0="unreachable token hexbigint",gc0="unreachable token legacyoctnumber",Ac0="unreachable token legacynonoctnumber",Pc0="unreachable token octnumber",Nc0="unreachable token octbigint",Cc0="unreachable token bignumber",Ic0="unreachable token bigint",Oc0="unreachable token",Rc0=wJ,Lc0=[7,"#!"],Mc0="expected ?",Dc0="unreachable string_escape",Uc0=q2,jc0=X3,Jc0=X3,Xc0=q2,Yc0=ZE,Vc0=Zj,zc0="n",Kc0="r",Bc0="t",Wc0=UD,Zc0=X3,$c0=mo,Fc0=mo,Qc0="unreachable id_char",Gc0=mo,qc0=mo,Hc0=X3,bc0=ND,xs0=CU,rs0=qT,es0=[24,"token ILLEGAL"],ts0=[0,[11,"the identifier `",[2,0,[12,96,0]]],"the identifier `%s`"],ns0=[0,1],us0=[0,1],is0=cU,fs0=cU,cs0=[0,[11,"an identifier. When exporting a ",[2,0,[11," as a named export, you must specify a ",[2,0,[11," name. Did you mean `export default ",[2,0,[11," ...`?",0]]]]]]],"an identifier. When exporting a %s as a named export, you must specify a %s name. Did you mean `export default %s ...`?"],ss0=ip,os0="Peeking current location when not available",vs0=[0,"src/parser/parser_env.ml",351,9],as0="Internal Error: Tried to add_declared_private with outside of class scope.",ls0="Internal Error: `exit_class` called before a matching `enter_class`",ps0=kx,ds0=[0,0,0],ys0=[0,0,0],ms0="Parser_env.Try.Rollback",ks0=kx,hs0=kx,_s0=[0,j2,ni,lf,nU,TU,Df,U2,Pi,Kc,xi,$7,bn,Pc,Wu,li,j7,E7,G7,Kf,Zf,gi,J7,Kn,di,Uc,T7,Mc,yi,zf,Ti,qn,Zn,nc,Tu,zi,of,Vc,Xe,Sf,Ai,Cc,yf,Lf,Q7,Pu,Ye,xf,_7,Wi,Ki,gc,I7,Zu,yc,Ue,O7,Fi,mu,Ru,ou,mc,Je,au,dc,Uf,_u,Yc,Xf,eu,Gf,oc,Iu,Di,d7,o7,Uu,Z7,A7,Ec,pc,X7,Nu,Rc,kn,gf,Bu,e7,Hf,b7,ai,ec,ui,_f,ii,n7,Dc,ff,Jc,$i,nu,Bf,Mf,Ri,C7,hf,B7,Nc,Vu,Ic,Lc,s7,Gu,kc,Lu,si,c7,ur,bi,iu,zn,R7,Ii,Wn,Du,U7,xc,Qi,Ff,Qf,Fn,xu,f7,L7,ci,jc,ti,hu,mf,t7,ic,Ac,Ku,ji,$1,du,ru,Zc,cu,Xi,jf,Hn,bu,Q2,N7,Yf,vu,af,v7,Xu,uu,hi,M2,S7,i7,w7,Ct,Au,lu,_i,yu,Bi,Xc,wi,Vn,pf,ri,If,qu,Hu,M7,Bn,h7,fc,Yn,q7,tc,Fu,su,Eu,Mu,Li,tu,F7,kf,Rf,l7,K7,Qn,Qu,mi,F1,V7,Vf,p7,Tf,Gn,m7,nf,ju,Cu,vc,wc,ef,Ui,Ou,u7,Su,Hi,sf,x7,Mi,se,Ni,Sc,Ef,uc,vf,rc,Yu,Of,k7,Ji,hc,df,Ju,Re,Oe,Gi,lc,sc,$n,$f,uf,pi,_c,$u,z7,Bc,a7,fu,Zi,qf,uj,oi,qj,GD,Si,rf,ki,gu,W7,zc,qi,Yi,wu,Y7,cf,r7,Tc,Wc,vi,g7,Wf,tf,H7,P7,Me,ac,zu,on,Cf,Vi,D7,cc,ku,Oi,Pf,y7,fi,Nf,wf],ws0=[0,j2,ni,lf,Df,U2,Pi,Kc,xi,$7,bn,Pc,Wu,li,j7,E7,G7,Kf,Zf,gi,J7,Kn,di,Uc,T7,Mc,yi,zf,Ti,qn,Zn,nc,Tu,zi,of,Vc,Xe,Sf,Ai,Cc,yf,Lf,Q7,Pu,Ye,xf,_7,Wi,Ki,gc,I7,Zu,yc,Ue,O7,Fi,mu,Ru,ou,mc,Je,au,dc,Uf,_u,Yc,Xf,eu,Gf,oc,Iu,Di,d7,o7,Uu,Z7,A7,Ec,pc,X7,Nu,Rc,kn,gf,Bu,e7,Hf,b7,ai,ec,ui,_f,ii,n7,Dc,ff,Jc,$i,nu,Bf,Mf,Ri,C7,hf,B7,Nc,Vu,Ic,Lc,s7,Gu,kc,Lu,si,c7,ur,bi,iu,zn,R7,Ii,Wn,Du,U7,xc,Qi,Ff,Qf,Fn,xu,f7,L7,ci,jc,ti,hu,mf,t7,ic,Ac,Ku,ji,$1,du,ru,Zc,cu,Xi,jf,Hn,bu,Q2,N7,Yf,vu,af,v7,Xu,uu,hi,M2,S7,i7,w7,Ct,Au,lu,_i,yu,Bi,Xc,wi,Vn,pf,ri,If,qu,Hu,M7,Bn,h7,fc,Yn,q7,tc,Fu,su,Eu,Mu,Li,tu,F7,kf,Rf,l7,K7,Qn,Qu,mi,F1,V7,Vf,p7,Tf,Gn,m7,nf,ju,Cu,vc,wc,ef,Ui,Ou,u7,Su,Hi,sf,x7,Mi,se,Ni,Sc,Ef,uc,vf,rc,Yu,Of,k7,Ji,hc,df,Ju,Re,Oe,Gi,lc,sc,$n,$f,uf,pi,_c,$u,z7,Bc,a7,fu,Zi,qf,oi,Si,rf,ki,gu,W7,zc,qi,Yi,wu,Y7,cf,r7,Tc,Wc,vi,g7,Wf,tf,H7,P7,Me,ac,zu,on,Cf,Vi,D7,cc,ku,Oi,Pf,y7,fi,Nf,wf],Ts0=[0,gc,$1,qu,Au,Vn,P7,Ic,Bf,ci,Hn,zu,Mc,ec,Ye,b7,Vf,cf,ff,ic,s7,N7,Ku,Hi,Ui,ni,A7,yu,Eu,o7,xc,_c,_i,Su,Lu,Ct,Df,Rf,oc,Of,tf,Hu,Wf,mf,ju,au,Xc,Mu,Pu,Ri,i7,Wi,af,sf,U7,kc,Yi,rf,gf,wf,Yc,a7,di,nu,Uf,xu,W7,ui,Je,Dc,pf,Bu,si,jc,t7,lu,R7,lc,zf,wc,f7,Ii,If,Gf,y7,rc,m7,bi,mu,Rc,fi,Mi,H7,yc,U2,dc,hc,G7,O7,S7,D7,su,Vc,Zc,Y7,B7,Q7,se,F7,yi,j2,Wn,of,Ji,Xf,Wu,X7,df,Ru,cc,Pc,Si,k7,Vu,xi,Ac,Zn,jf,Ou,Qn,ai,p7,Du,pc,l7,Zf,qn,fu,Pi,nc,I7,Kf,_7,bn,zc,Yf,Li,ki,zn,ri,Zi,$7,oi,Nc,Ff,ku,iu,Wc,wu,z7,Ec,Qf,Bc,ur,M2,Ue,E7,gi,xf,Z7,Xe,Re,Lc,w7,Hf,mi,ji,kn,ac,fc,u7,vu,gu,V7,M7,du,wi,j7,ef,mc,tc,uu,vc,Gn,$f,hf,Zu,Mf,v7,ii,Di,Ti,$i,_u,n7,J7,vf,vi,Yu,Cf,cu,Lf,x7,Tu,Bi,ou,hi,Jc,Tc,C7,hu,qi,bu,Ni,T7,Nf,Kc,Sc,g7,Uc,Ef,ti,ru,sc,Qi,d7,Gu,Xi,K7,Fn,Kn,Cc,Oi,uf,Uu,Vi,F1,Nu,qf,Qu,zi,Yn,q7,Ki,Oe,Bn,$u,eu,nf,uc,Ai,yf,Fu,Tf,li,tu,e7,on,Xu,r7,L7,_f,h7,Ju,Cu,Me,Pf,Q2,Gi,lf,pi,Fi,kf,$n,Iu,Sf,c7],Ss0=[0,gc,$1,qu,Au,Vn,P7,Ic,Bf,ci,Hn,zu,Mc,ec,Ye,b7,Vf,cf,ff,ic,s7,N7,Ku,Hi,Ui,ni,A7,yu,Eu,o7,xc,_c,_i,Su,Lu,Ct,Df,TU,Rf,oc,Of,tf,Hu,Wf,mf,ju,au,Xc,Mu,Pu,Ri,i7,Wi,af,sf,U7,kc,Yi,rf,gf,wf,Yc,a7,qj,di,nu,Uf,xu,W7,ui,Je,Dc,pf,Bu,si,jc,t7,lu,R7,lc,zf,wc,f7,Ii,If,Gf,y7,rc,m7,bi,mu,Rc,fi,Mi,H7,yc,U2,dc,hc,G7,O7,S7,D7,su,Vc,Zc,Y7,B7,Q7,se,F7,yi,j2,Wn,of,Ji,Xf,Wu,X7,df,Ru,cc,Pc,Si,k7,Vu,xi,Ac,Zn,jf,Ou,Qn,ai,p7,Du,pc,l7,Zf,qn,fu,Pi,nc,I7,Kf,_7,bn,zc,Yf,Li,ki,zn,ri,Zi,$7,oi,Nc,Ff,ku,iu,Wc,wu,z7,Ec,Qf,Bc,ur,M2,Ue,E7,gi,xf,Z7,Xe,Re,Lc,w7,Hf,mi,ji,kn,ac,fc,u7,vu,gu,V7,M7,du,wi,j7,ef,mc,tc,uu,vc,Gn,$f,hf,Zu,Mf,v7,ii,Di,Ti,$i,_u,n7,J7,vf,vi,Yu,Cf,cu,GD,Lf,x7,Tu,Bi,ou,hi,Jc,Tc,C7,hu,qi,bu,Ni,T7,uj,Nf,Kc,Sc,g7,Uc,nU,Ef,ti,ru,sc,Qi,d7,Gu,Xi,K7,Fn,Kn,Cc,Oi,uf,Uu,Vi,F1,Nu,qf,Qu,zi,Yn,q7,Ki,Oe,Bn,$u,eu,nf,uc,Ai,yf,Fu,Tf,li,tu,e7,on,Xu,r7,L7,_f,h7,Ju,Cu,Me,Pf,Q2,Gi,lf,pi,Fi,kf,$n,Iu,Sf,c7],Es0=la,gs0=Qp,As0=wo,Ps0=Z3,Ns0=Ue,Cs0=Ye,Is0=vv,Os0=Xe,Rs0=td,Ls0=sl,Ms0=Mp,Ds0=vp,Us0=nl,js0=da,Js0=mv,Xs0=As,Ys0=Ss,Vs0=Me,zs0=Xp,Ks0=K8,Bs0=Oe,Ws0=av,Zs0=K5,$s0=gp,Fs0=d8,Qs0=V3,Gs0=Oc,qs0=je,Hs0=Ip,bs0=ov,xo0=el,ro0=Ts,eo0=Ps,to0=cl,no0=x8,uo0=M2,io0=Na,fo0=_v,co0=Q2,so0=Wp,oo0=kl,vo0=B3,ao0=j3,lo0=j2,po0=Re,do0=Q3,yo0=ei,mo0=Ch,ko0=Xh,ho0=To,_o0=Ev,wo0=t5,To0=sp,So0=se,Eo0=ka,go0=kv,Ao0=La,Po0=Ps,No0=wx,Co0=g5,Io0=P8,Oo0=q5,Ro0=A8,Lo0=Ta,Mo0=al,Do0=ya,Uo0=F3,jo0=T5,Jo0=[0,ip],Xo0=kx,Yo0=[0,1],Vo0=[0,_a,1371,6],zo0=[0,_a,1374,6],Ko0=[0,_a,1477,8],Bo0=[0,1],Wo0=[0,_a,1494,8],Zo0="Can not have both `static` and `proto`",$o0=je,Fo0=CC,Qo0=[0,0,0,0],Go0=[0,0],qo0=[0,[0,0,0,0,0]],Ho0=al,bo0=ya,xv0=[0,"a number literal type"],rv0=[0,0],ev0=lo,tv0=[0,0],nv0=[0,"a type"],uv0=[0,0],iv0=[0,0],fv0=[17,1],cv0=[17,0],sv0=[0,_a,dS,15],ov0=[0,_a,iE,15],vv0=Lt,av0=Lt,lv0=P5,pv0=ll,dv0=[0,[11,"Failure while looking up ",[2,0,[11,". Index: ",[4,0,0,0,[11,". Length: ",[4,0,0,0,[12,46,0]]]]]]],"Failure while looking up %s. Index: %d. Length: %d."],yv0=[0,0,0,0],mv0="Offset_utils.Offset_lookup_failed",kv0=v1,hv0=OU,_v0=ll,wv0=P5,Tv0=_j,Sv0=ll,Ev0=P5,gv0=_9,Av0=Eg,Pv0="normal",Nv0=ei,Cv0="jsxTag",Iv0="jsxChild",Ov0="template",Rv0=HU,Lv0="context",Mv0=ei,Dv0=[6,0],Uv0=[0,0],jv0=[0,1],Jv0=[0,4],Xv0=[0,2],Yv0=[0,3],Vv0=[0,0],zv0=[0,0,0,0,0,0],Kv0=lo,Bv0=[0,75],Wv0=[0,kx,0],Zv0=ln,$v0=[0,75],Fv0=[0,75],Qv0=la,Gv0=[0,kx,0],qv0=[0,0,0],Hv0=[0,0,0],bv0=[0,83],xa0=F2,ra0=F2,ea0=[0,"a regular expression"],ta0=kx,na0=kx,ua0=kx,ia0=[0,"src/parser/expression_parser.ml",1368,17],fa0=[0,"a template literal part"],ca0=[0,[0,kx,kx],1],sa0=[0,0],oa0=X3,va0=ND,aa0=qT,la0=qT,pa0=CU,da0=[0,75],ya0=[0,1],ma0=[0,1],ka0=[0,1],ha0=[0,1],_a0=[0,1],wa0=Aa,Ta0=ov,Sa0=[0,"the identifier `target`"],Ea0=[0,0],ga0=M2,Aa0=pl,Pa0=pl,Na0=Na,Ca0=[0,"either a call or access of `super`"],Ia0=Na,Oa0=[0,1],Ra0=[0,0],La0=[0,1],Ma0=[0,0],Da0=[0,1],Ua0=[0,0],ja0=[0,2],Ja0=[0,3],Xa0=[0,7],Ya0=[0,6],Va0=[0,4],za0=[0,5],Ka0=[0,6],Ba0=[0,[0,17,[0,2]]],Wa0=[0,[0,18,[0,3]]],Za0=[0,[0,19,[0,4]]],$a0=[0,[0,0,[0,5]]],Fa0=[0,[0,1,[0,5]]],Qa0=[0,[0,2,[0,5]]],Ga0=[0,[0,3,[0,5]]],qa0=[0,[0,5,[0,6]]],Ha0=[0,[0,7,[0,6]]],ba0=[0,[0,4,[0,6]]],x30=[0,[0,6,[0,6]]],r30=[0,[0,8,[0,7]]],e30=[0,[0,9,[0,7]]],t30=[0,[0,10,[0,7]]],n30=[0,[0,11,[0,8]]],u30=[0,[0,12,[0,8]]],i30=[0,[0,15,[0,9]]],f30=[0,[0,13,[0,9]]],c30=[0,[0,14,[1,10]]],s30=[0,[0,16,[0,9]]],o30=[0,[0,21,[0,6]]],v30=[0,[0,20,[0,6]]],a30=[20,i9],l30=[0,[0,8]],p30=[0,[0,7]],d30=[0,[0,6]],y30=[0,[0,10]],m30=[0,[0,9]],k30=[0,[0,11]],h30=[0,[0,5]],_30=[0,[0,4]],w30=[0,[0,2]],T30=[0,[0,3]],S30=[0,[0,1]],E30=[0,[0,0]],g30=[0,[0,12]],A30=[0,[0,13]],P30=[0,[0,14]],N30=[0,0],C30=V3,I30=[0,kx,0],O30="unexpected PrivateName in Property, expected a PrivateField",R30=[0,0,0],L30=_o,M30="Must be one of the above",D30=[0,1],U30=[0,1],j30=[0,1],J30=_o,X30=_o,Y30=R_,V30="Internal Error: private name found in object props",z30=[0,1],K30=[0,Xk,1852,21],B30=[0,"a declaration, statement or export specifiers"],W30=[0,86],Z30=il,$30=[0,kx,kx,0],F30=[0,qM],Q30="exports",G30=[0,1],q30=[0,1],H30=[0,0],b30=tJ,xl0=[0,86],rl0=lo,el0=[0,75],tl0=[0,0],nl0=[0,1],ul0=[0,"the keyword `as`"],il0=[0,34],fl0=[0,34],cl0=[0,0],sl0=[0,1],ol0=[0,qM],vl0=[0,"the keyword `from`"],al0=[0,kx,kx,0],ll0=[0,zj],pl0="Label",dl0=[0,zj],yl0=[0,0,0],ml0=[0,44],kl0=[0,Xk,429,22],hl0=[0,43],_l0=[0,Xk,448,22],wl0=[0,0],Tl0="the token `;`",Sl0=[0,0],El0=[0,0],gl0=ID,Al0=[0,ip],Pl0=ID,Nl0=[24,Ct],Cl0=Cv,Il0=bf,Ol0=[13,"JSX fragment"],Rl0=[0,cn],Ll0=[1,cn],Ml0=[0,kx,kx,0],Dl0=[0,ip],Ul0=kx,jl0=[0,XU],Jl0=[18,[0,0]],Xl0=[0,XU],Yl0=[0,0,0,0],Vl0=vT,zl0="Nooo: ",Kl0=av,Bl0="Parser error: No such thing as an expression pattern!",Wl0=[0,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]],Zl0=[0,"src/parser/parser_flow.ml",r5,28],$l0=[0,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]],Fl0=OU,Ql0=Eg,Gl0=aU,ql0=Lj,Hl0=Lj,bl0=aU,x60=ei,r60=WM,e60=D1,t60=v1,n60="InterpreterDirective",u60="interpreter",i60="Program",f60=ml,c60="BreakStatement",s60=ml,o60="ContinueStatement",v60="DebuggerStatement",a60=Iv,l60="DeclareExportAllDeclaration",p60=Iv,d60=hw,y60=KN,m60=av,k60="DeclareExportDeclaration",h60=ho,_60=D1,w60=qr,T60="DeclareModule",S60=i2,E60="DeclareModuleExports",g60=wa,A60=D1,P60="DoWhileStatement",N60="EmptyStatement",C60=Lh,I60=KN,O60="ExportDefaultDeclaration",R60=Lh,L60=TT,M60=Iv,D60="ExportAllDeclaration",U60=Lh,j60=Iv,J60=hw,X60=KN,Y60="ExportNamedDeclaration",V60="directive",z60=F1,K60="ExpressionStatement",B60=D1,W60="update",Z60=wa,$60=pu,F60="ForStatement",Q60="each",G60=D1,q60=yn,H60=Es,b60="ForInStatement",x40=Ev,r40=D1,e40=yn,t40=Es,n40="ForOfStatement",u40=nJ,i40=tN,f40=wa,c40="IfStatement",s40=ei,o40=Ts,v40=v1,a40=ED,l40=Iv,p40=hw,d40="ImportDeclaration",y40=D1,m40=ml,k40="LabeledStatement",h40=$2,_40="ReturnStatement",w40="cases",T40="discriminant",S40="SwitchStatement",E40=$2,g40="ThrowStatement",A40="finalizer",P40="handler",N40=on,C40="TryStatement",I40=D1,O40=wa,R40="WhileStatement",L40=D1,M40=Fw,D40="WithStatement",U40=gU,j40="ArrayExpression",J40=D2,X40=w5,Y40=F1,V40=Je,z40=VE,K40=To,B40=D1,W40=pn,Z40=qr,$40="ArrowFunctionExpression",F40=R_,Q40=yn,G40=Es,q40=tl,H40="AssignmentExpression",b40=yn,xp0=Es,rp0=tl,ep0="BinaryExpression",tp0="CallExpression",np0=nJ,up0=tN,ip0=wa,fp0="ConditionalExpression",cp0=Iv,sp0="ImportExpression",op0=lU,vp0=tX,ap0=i9,lp0=yn,pp0=Es,dp0=tl,yp0="LogicalExpression",mp0="MemberExpression",kp0=jP,hp0=pl,_p0="MetaProperty",wp0=mP,Tp0=Vh,Sp0=XJ,Ep0="NewExpression",gp0=s9,Ap0="ObjectExpression",Pp0=nt,Np0="OptionalCallExpression",Cp0=nt,Ip0="OptionalMemberExpression",Op0=PJ,Rp0="SequenceExpression",Lp0="Super",Mp0="ThisExpression",Dp0=i2,Up0=F1,jp0="TypeCastExpression",Jp0=F1,Xp0="AsConstExpression",Yp0=i2,Vp0=F1,zp0="AsExpression",Kp0=i2,Bp0=F1,Wp0="SatisfiesExpression",Zp0=$2,$p0="AwaitExpression",Fp0=Lt,Qp0=Ls,Gp0=MD,qp0=Hj,Hp0=Ts,bp0=Ps,x80=el,r80="matched above",e80=$2,t80=bM,n80=tl,u80="UnaryExpression",i80=SU,f80=OJ,c80=bM,s80=$2,o80=tl,v80="UpdateExpression",a80="delegate",l80=$2,p80="YieldExpression",d80="Unexpected FunctionDeclaration with BodyExpression",y80=D2,m80=w5,k80=F1,h80=Je,_80=VE,w80=To,T80=D1,S80=pn,E80=qr,g80="FunctionDeclaration",A80="Unexpected FunctionExpression with BodyExpression",P80=D2,N80=w5,C80=F1,I80=Je,O80=VE,R80=To,L80=D1,M80=pn,D80=qr,U80="FunctionExpression",j80=nt,J80=i2,X80=Le,Y80=Sg,V80=nt,z80=i2,K80=Le,B80="PrivateIdentifier",W80=nt,Z80=i2,$80=Le,F80=Sg,Q80=tN,G80=wa,q80="SwitchCase",H80=D1,b80="param",x50="CatchClause",r50=D1,e50="BlockStatement",t50=ho,n50=qr,u50="DeclareVariable",i50=Je,f50=qr,c50="DeclareFunction",s50=pU,o50=_v,v50=Oc,a50=D1,l50=D2,p50=qr,d50="DeclareClass",y50=D2,m50=V_,k50=pn,h50=ow,_50=pn,w50=qr,T50="DeclareComponent",S50=D2,E50=V_,g50=ow,A50=pn,P50="ComponentTypeAnnotation",N50=nt,C50=i2,I50=Le,O50="ComponentTypeParameter",R50=D1,L50=qr,M50="DeclareEnum",D50=Oc,U50=D1,j50=D2,J50=qr,X50="DeclareInterface",Y50=v1,V50=ei,z50=TT,K50="ExportNamespaceSpecifier",B50=yn,W50=D2,Z50=qr,$50="DeclareTypeAlias",F50=yn,Q50=D2,G50=qr,q50="TypeAlias",H50="DeclareOpaqueType",b50="OpaqueType",xd0="supertype",rd0="impltype",ed0=D2,td0=qr,nd0="ClassDeclaration",ud0="ClassExpression",id0=ud,fd0=_v,cd0="superTypeParameters",sd0="superClass",od0=D2,vd0=D1,ad0=qr,ld0=F1,pd0="Decorator",dd0=D2,yd0=qr,md0="ClassImplements",kd0=D1,hd0="ClassBody",_d0=Tv,wd0=q3,Td0=gv,Sd0=Ra,Ed0=ud,gd0=Ia,Ad0=je,Pd0=ho,Nd0=v1,Cd0=pv,Id0="MethodDefinition",Od0=Q3,Rd0=ud,Ld0=U2,Md0=je,Dd0=Ia,Ud0=i2,jd0=v1,Jd0=pv,Xd0=fU,Yd0="Internal Error: Private name found in class prop",Vd0=Q3,zd0=ud,Kd0=U2,Bd0=je,Wd0=Ia,Zd0=i2,$d0=v1,Fd0=pv,Qd0=fU,Gd0=D2,qd0=V_,Hd0=pn,bd0=qr,xy0=D1,ry0="ComponentDeclaration",ey0=$2,ty0=k9,ny0=yn,uy0=Es,iy0=Pp,fy0=wS,cy0=fl,sy0=Le,oy0="ComponentParameter",vy0=pu,ay0=qr,ly0="EnumBigIntMember",py0=qr,dy0=tD,yy0=pu,my0=qr,ky0="EnumStringMember",hy0=qr,_y0=tD,wy0=pu,Ty0=qr,Sy0="EnumNumberMember",Ey0=pu,gy0=qr,Ay0="EnumBooleanMember",Py0=W3,Ny0=hd,Cy0=G3,Iy0="EnumBooleanBody",Oy0=W3,Ry0=hd,Ly0=G3,My0="EnumNumberBody",Dy0=W3,Uy0=hd,jy0=G3,Jy0="EnumStringBody",Xy0=W3,Yy0=G3,Vy0="EnumSymbolBody",zy0=W3,Ky0=hd,By0=G3,Wy0="EnumBigIntBody",Zy0=D1,$y0=qr,Fy0="EnumDeclaration",Qy0=Oc,Gy0=D1,qy0=D2,Hy0=qr,by0="InterfaceDeclaration",xm0=D2,rm0=qr,em0="InterfaceExtends",tm0=i2,nm0=s9,um0="ObjectPattern",im0=i2,fm0=gU,cm0="ArrayPattern",sm0=yn,om0=Es,vm0=Pp,am0=i2,lm0=Le,pm0=Sg,dm0=$2,ym0=k9,mm0=$2,km0=k9,hm0=yn,_m0=Es,wm0=Pp,Tm0=pu,Sm0=pu,Em0=gv,gm0=Ra,Am0=$j,Pm0=Ia,Nm0=wS,Cm0=q3,Im0=ho,Om0=v1,Rm0=pv,Lm0=cj,Mm0=$2,Dm0=xJ,Um0=yn,jm0=Es,Jm0=Pp,Xm0=Ia,Ym0=wS,Vm0=q3,zm0=ho,Km0=v1,Bm0=pv,Wm0=cj,Zm0=$2,$m0=xJ,Fm0=Ut,Qm0=v1,Gm0=aa,qm0=Ut,Hm0=kv,bm0=v1,x90=aa,r90=Ut,e90=v1,t90=aa,n90=Ss,u90=As,i90=Ut,f90=v1,c90=aa,s90="flags",o90=kn,v90="regex",a90=Ut,l90=v1,p90=aa,d90=Ut,y90=v1,m90=aa,k90=PJ,h90="quasis",_90="TemplateLiteral",w90="cooked",T90=Ut,S90="tail",E90=v1,g90="TemplateElement",A90="quasi",P90="tag",N90="TaggedTemplateExpression",C90=sl,I90=da,O90=nl,R90=ho,L90="declarations",M90="VariableDeclaration",D90=pu,U90=qr,j90="VariableDeclarator",J90="plus",X90=CD,Y90=Ta,V90=wo,z90=k_,K90="in-out",B90=ho,W90="Variance",Z90="AnyTypeAnnotation",$90="MixedTypeAnnotation",F90="EmptyTypeAnnotation",Q90="VoidTypeAnnotation",G90="NullLiteralTypeAnnotation",q90="SymbolTypeAnnotation",H90="NumberTypeAnnotation",b90="BigIntTypeAnnotation",xk0="StringTypeAnnotation",rk0="BooleanTypeAnnotation",ek0=i2,tk0="NullableTypeAnnotation",nk0="UnknownTypeAnnotation",uk0="NeverTypeAnnotation",ik0="UndefinedTypeAnnotation",fk0=ya,ck0=i2,sk0="parameterName",ok0="TypePredicate",vk0=D2,ak0=ow,lk0=w5,pk0=vv,dk0=pn,yk0="FunctionTypeAnnotation",mk0=nt,kk0=i2,hk0=Le,_k0=RD,wk0=nt,Tk0=i2,Sk0=Le,Ek0=RD,gk0=[0,0,0,0,0],Ak0="internalSlots",Pk0="callProperties",Nk0="indexers",Ck0=s9,Ik0="exact",Ok0="inexact",Rk0="ObjectTypeAnnotation",Lk0=$j,Mk0="There should not be computed object type property keys",Dk0=pu,Uk0=gv,jk0=Ra,Jk0=ho,Xk0=U2,Yk0=CC,Vk0=je,zk0=nt,Kk0=q3,Bk0=v1,Wk0=pv,Zk0="ObjectTypeProperty",$k0=$2,Fk0="ObjectTypeSpreadProperty",Qk0=U2,Gk0=je,qk0=v1,Hk0=pv,bk0=qr,xh0="ObjectTypeIndexer",rh0=je,eh0=v1,th0="ObjectTypeCallProperty",nh0=nt,uh0=U2,ih0="sourceType",fh0="propType",ch0="keyTparam",sh0="ObjectTypeMappedTypeProperty",oh0=v1,vh0=q3,ah0=je,lh0=nt,ph0=qr,dh0="ObjectTypeInternalSlot",yh0=D1,mh0=Oc,kh0="InterfaceTypeAnnotation",hh0=YU,_h0="ArrayTypeAnnotation",wh0="falseType",Th0="trueType",Sh0="extendsType",Eh0="checkType",gh0="ConditionalTypeAnnotation",Ah0="typeParameter",Ph0="InferTypeAnnotation",Nh0=qr,Ch0=LJ,Ih0="QualifiedTypeIdentifier",Oh0=D2,Rh0=qr,Lh0="GenericTypeAnnotation",Mh0="indexType",Dh0="objectType",Uh0="IndexedAccessType",jh0=nt,Jh0="OptionalIndexedAccessType",Xh0=fg,Yh0="UnionTypeAnnotation",Vh0=fg,zh0="IntersectionTypeAnnotation",Kh0=$2,Bh0="TypeofTypeAnnotation",Wh0=qr,Zh0=LJ,$h0="QualifiedTypeofIdentifier",Fh0=$2,Qh0="KeyofTypeAnnotation",Gh0=$2,qh0="ReadOnlyTypeAnnotation",Hh0="elementTypes",bh0="TupleTypeAnnotation",x_0=nt,r_0=U2,e_0=YU,t_0=ml,n_0="TupleTypeLabeledElement",u_0=i2,i_0=ml,f_0="TupleTypeSpreadElement",c_0=Ut,s_0=v1,o_0="StringLiteralTypeAnnotation",v_0=Ut,a_0=v1,l_0="NumberLiteralTypeAnnotation",p_0=Ut,d_0=v1,y_0="BigIntLiteralTypeAnnotation",m_0=Ss,k_0=As,h_0=Ut,__0=v1,w_0="BooleanLiteralTypeAnnotation",T_0="ExistsTypeAnnotation",S_0=i2,E_0=lD,g_0=i2,A_0=lD,P_0=pn,N_0="TypeParameterDeclaration",C_0="usesExtendsBound",I_0=av,O_0=U2,R_0="bound",L_0=Le,M_0="TypeParameter",D_0=pn,U_0=oD,j_0=pn,J_0=oD,X_0=Aa,Y_0=Gj,V_0="closingElement",z_0="openingElement",K_0="JSXElement",B_0="closingFragment",W_0=Gj,Z_0="openingFragment",$_0="JSXFragment",F_0=Vh,Q_0="selfClosing",G_0="attributes",q_0=Le,H_0="JSXOpeningElement",b_0="JSXOpeningFragment",xw0=Le,rw0="JSXClosingElement",ew0="JSXClosingFragment",tw0=v1,nw0=Le,uw0="JSXAttribute",iw0=$2,fw0="JSXSpreadAttribute",cw0="JSXEmptyExpression",sw0=F1,ow0="JSXExpressionContainer",vw0=F1,aw0="JSXSpreadChild",lw0=Ut,pw0=v1,dw0="JSXText",yw0=jP,mw0=Fw,kw0="JSXMemberExpression",hw0=Le,_w0="namespace",ww0="JSXNamespacedName",Tw0=Le,Sw0="JSXIdentifier",Ew0=TT,gw0=fl,Aw0="ExportSpecifier",Pw0=fl,Nw0="ImportDefaultSpecifier",Cw0=fl,Iw0="ImportNamespaceSpecifier",Ow0=ED,Rw0=fl,Lw0="imported",Mw0="ImportSpecifier",Dw0="Line",Uw0="Block",jw0=v1,Jw0=v1,Xw0="DeclaredPredicate",Yw0="InferredPredicate",Vw0=mP,zw0=Vh,Kw0=XJ,Bw0=Ia,Ww0=jP,Zw0=Fw,$w0="message",Fw0=Eg,Qw0=_j,Gw0=_9,qw0=Iv,Hw0=ll,bw0=P5,xT0=[0,wf,Nf,fi,y7,Pf,Oi,ku,cc,D7,Vi,Cf,on,zu,ac,Me,P7,H7,tf,Wf,g7,vi,Wc,Tc,r7,cf,Y7,wu,Yi,qi,zc,W7,gu,ki,rf,Si,oi,qf,Zi,fu,a7,Bc,z7,$u,_c,pi,uf,$f,$n,sc,lc,Gi,Oe,Re,Ju,df,hc,Ji,k7,Of,Yu,rc,vf,uc,Ef,Sc,Ni,se,Mi,x7,sf,Hi,Su,u7,Ou,Ui,ef,wc,vc,Cu,ju,nf,m7,Gn,Tf,p7,Vf,V7,F1,mi,Qu,Qn,K7,l7,Rf,kf,F7,tu,Li,Mu,Eu,su,Fu,tc,q7,Yn,fc,h7,Bn,M7,Hu,qu,If,ri,pf,Vn,wi,Xc,Bi,yu,_i,lu,Au,Ct,w7,i7,S7,M2,hi,uu,Xu,v7,af,vu,Yf,N7,Q2,bu,Hn,jf,Xi,cu,Zc,ru,du,$1,ji,Ku,Ac,ic,t7,mf,hu,ti,jc,ci,L7,f7,xu,Fn,Qf,Ff,Qi,xc,U7,Du,Wn,Ii,R7,zn,iu,bi,ur,c7,si,Lu,kc,Gu,s7,Lc,Ic,Vu,Nc,B7,hf,C7,Ri,Mf,Bf,nu,$i,Jc,ff,Dc,n7,ii,_f,ui,ec,ai,b7,Hf,e7,Bu,gf,kn,Rc,Nu,X7,pc,Ec,A7,Z7,Uu,o7,d7,Di,Iu,oc,Gf,eu,Xf,Yc,_u,Uf,dc,au,Je,mc,ou,Ru,mu,Fi,O7,Ue,yc,Zu,I7,gc,Ki,Wi,_7,xf,Ye,Pu,Q7,Lf,yf,Cc,Ai,Sf,Xe,Vc,of,zi,Tu,nc,Zn,qn,Ti,zf,yi,Mc,T7,Uc,di,Kn,J7,gi,Zf,Kf,G7,E7,j7,li,Wu,Pc,bn,$7,xi,Kc,Pi,U2,Df,lf,ni,j2],rT0=[0,j2,ni,lf,Df,U2,Pi,Kc,xi,$7,bn,Pc,Wu,li,j7,E7,G7,Kf,Zf,gi,J7,Kn,di,Uc,T7,Mc,yi,zf,Ti,qn,Zn,nc,Tu,zi,of,Vc,Xe,Sf,Ai,Cc,yf,Lf,Q7,Pu,Ye,xf,_7,Wi,Ki,gc,I7,Zu,yc,Ue,O7,Fi,mu,Ru,ou,mc,Je,au,dc,Uf,_u,Yc,Xf,eu,Gf,oc,Iu,Di,d7,o7,Uu,Z7,A7,Ec,pc,X7,Nu,Rc,kn,gf,Bu,e7,Hf,b7,ai,ec,ui,_f,ii,n7,Dc,ff,Jc,$i,nu,Bf,Mf,Ri,C7,hf,B7,Nc,Vu,Ic,Lc,s7,Gu,kc,Lu,si,c7,ur,bi,iu,zn,R7,Ii,Wn,Du,U7,xc,Qi,Ff,Qf,Fn,xu,f7,L7,ci,jc,ti,hu,mf,t7,ic,Ac,Ku,ji,$1,du,ru,Zc,cu,Xi,jf,Hn,bu,Q2,N7,Yf,vu,af,v7,Xu,uu,hi,M2,S7,i7,w7,Ct,Au,lu,_i,yu,Bi,Xc,wi,Vn,pf,ri,If,qu,Hu,M7,Bn,h7,fc,Yn,q7,tc,Fu,su,Eu,Mu,Li,tu,F7,kf,Rf,l7,K7,Qn,Qu,mi,F1,V7,Vf,p7,Tf,Gn,m7,nf,ju,Cu,vc,wc,ef,Ui,Ou,u7,Su,Hi,sf,x7,Mi,se,Ni,Sc,Ef,uc,vf,rc,Yu,Of,k7,Ji,hc,df,Ju,Re,Oe,Gi,lc,sc,$n,$f,uf,pi,_c,$u,z7,Bc,a7,fu,Zi,qf,oi,Si,rf,ki,gu,W7,zc,qi,Yi,wu,Y7,cf,r7,Tc,Wc,vi,g7,Wf,tf,H7,P7,Me,ac,zu,on,Cf,Vi,D7,cc,ku,Oi,Pf,y7,fi,Nf,wf],eT0=[0,gc,$1,qu,Au,Vn,P7,Ic,Bf,ci,Hn,zu,Mc,ec,Ye,b7,Vf,cf,ff,ic,s7,N7,Ku,Hi,Ui,ni,A7,yu,Eu,o7,xc,_c,_i,Su,Lu,Ct,Df,Rf,oc,Of,tf,Hu,Wf,mf,ju,au,Xc,Mu,Pu,Ri,i7,Wi,af,sf,U7,kc,Yi,rf,gf,wf,Yc,a7,di,nu,Uf,xu,W7,ui,Je,Dc,pf,Bu,si,jc,t7,lu,R7,lc,zf,wc,f7,Ii,If,Gf,y7,rc,m7,bi,mu,Rc,fi,Mi,H7,yc,U2,dc,hc,G7,O7,S7,D7,su,Vc,Zc,Y7,B7,Q7,se,F7,yi,j2,Wn,of,Ji,Xf,Wu,X7,df,Ru,cc,Pc,Si,k7,Vu,xi,Ac,Zn,jf,Ou,Qn,ai,p7,Du,pc,l7,Zf,qn,fu,Pi,nc,I7,Kf,_7,bn,zc,Yf,Li,ki,zn,ri,Zi,$7,oi,Nc,Ff,ku,iu,Wc,wu,z7,Ec,Qf,Bc,ur,M2,Ue,E7,gi,xf,Z7,Xe,Re,Lc,w7,Hf,mi,ji,kn,ac,fc,u7,vu,gu,V7,M7,du,wi,j7,ef,mc,tc,uu,vc,Gn,$f,hf,Zu,Mf,v7,ii,Di,Ti,$i,_u,n7,J7,vf,vi,Yu,Cf,cu,Lf,x7,Tu,Bi,ou,hi,Jc,Tc,C7,hu,qi,bu,Ni,T7,Nf,Kc,Sc,g7,Uc,Ef,ti,ru,sc,Qi,d7,Gu,Xi,K7,Fn,Kn,Cc,Oi,uf,Uu,Vi,F1,Nu,qf,Qu,zi,Yn,q7,Ki,Oe,Bn,$u,eu,nf,uc,Ai,yf,Fu,Tf,li,tu,e7,on,Xu,r7,L7,_f,h7,Ju,Cu,Me,Pf,Q2,Gi,lf,pi,Fi,kf,$n,Iu,Sf,c7],tT0="Jsoo_runtime.Error.Exn",nT0=[0,0],uT0="use_strict",iT0=fg,fT0="esproposal_decorators",cT0="enums",sT0="components",oT0="Internal error: ";function I1(x){if(typeof x=="number")return 0;switch(x[0]){case 0:return[0,I1(x[1])];case 1:return[1,I1(x[1])];case 2:return[2,I1(x[1])];case 3:return[3,I1(x[1])];case 4:return[4,I1(x[1])];case 5:return[5,I1(x[1])];case 6:return[6,I1(x[1])];case 7:return[7,I1(x[1])];case 8:var r=x[1];return[8,r,I1(x[2])];case 9:var e=x[1];return[9,e,e,I1(x[3])];case 10:return[10,I1(x[1])];case 11:return[11,I1(x[1])];case 12:return[12,I1(x[1])];case 13:return[13,I1(x[1])];default:return[14,I1(x[1])]}}function b2(x,r){if(typeof x=="number")return r;switch(x[0]){case 0:return[0,b2(x[1],r)];case 1:return[1,b2(x[1],r)];case 2:return[2,b2(x[1],r)];case 3:return[3,b2(x[1],r)];case 4:return[4,b2(x[1],r)];case 5:return[5,b2(x[1],r)];case 6:return[6,b2(x[1],r)];case 7:return[7,b2(x[1],r)];case 8:var e=x[1];return[8,e,b2(x[2],r)];case 9:var t=x[2],u=x[1];return[9,u,t,b2(x[3],r)];case 10:return[10,b2(x[1],r)];case 11:return[11,b2(x[1],r)];case 12:return[12,b2(x[1],r)];case 13:return[13,b2(x[1],r)];default:return[14,b2(x[1],r)]}}function T1(x,r){if(typeof x=="number")return r;switch(x[0]){case 0:return[0,T1(x[1],r)];case 1:return[1,T1(x[1],r)];case 2:var e=x[1];return[2,e,T1(x[2],r)];case 3:var t=x[1];return[3,t,T1(x[2],r)];case 4:var u=x[3],i=x[2],f=x[1];return[4,f,i,u,T1(x[4],r)];case 5:var o=x[3],l=x[2],d=x[1];return[5,d,l,o,T1(x[4],r)];case 6:var k=x[3],h=x[2],g=x[1];return[6,g,h,k,T1(x[4],r)];case 7:var A=x[3],N=x[2],C=x[1];return[7,C,N,A,T1(x[4],r)];case 8:var O=x[3],L=x[2],M=x[1];return[8,M,L,O,T1(x[4],r)];case 9:var V=x[1];return[9,V,T1(x[2],r)];case 10:return[10,T1(x[1],r)];case 11:var z=x[1];return[11,z,T1(x[2],r)];case 12:var Y=x[1];return[12,Y,T1(x[2],r)];case 13:var t0=x[2],i0=x[1];return[13,i0,t0,T1(x[3],r)];case 14:var j=x[2],K=x[1];return[14,K,j,T1(x[3],r)];case 15:return[15,T1(x[1],r)];case 16:return[16,T1(x[1],r)];case 17:var J=x[1];return[17,J,T1(x[2],r)];case 18:var Q=x[1];return[18,Q,T1(x[2],r)];case 19:return[19,T1(x[1],r)];case 20:var x0=x[2],$=x[1];return[20,$,x0,T1(x[3],r)];case 21:var f0=x[1];return[21,f0,T1(x[2],r)];case 22:return[22,T1(x[1],r)];case 23:var s0=x[1];return[23,s0,T1(x[2],r)];default:var v0=x[2],o0=x[1];return[24,o0,v0,T1(x[3],r)]}}function qI(x,r,e){return x[1]===r?(x[1]=e,1):0}function Ox(x){throw q0([0,_n,x],1)}function y2(x){throw q0([0,QI,x],1)}function Zd(x){return 0<=x?x:-x|0}var vT0=FM;function Fx(x,r){var e=Xx(x),t=Xx(r),u=w1(e+t|0);return Fc(x,0,u,0,e),Fc(r,0,u,e,t),S2(u)}function aT0(x){return x?lZ:pZ}function Qx(x,r){if(!x)return r;var e=x[1];return[0,e,Qx(x[2],r)]}QW(0);var lT0=XX(1),Gc=XX(2);function pT0(x){for(var r=GW(0);;){if(!r)return 0;var e=r[2],t=r[1];try{Qc(t)}catch(f){var u=C1(f);if(u[1]!==KX)throw q0(u,0)}var r=e}}function Il(x,r){return BI(x,r,0,Xx(r))}function FX(x){return Il(Gc,x),YX(Gc,10),Qc(Gc)}var HI=[0,pT0];function bI(x){return a(HI[1],0)}ZI(qD,bI);var QX=nZ(0)[1],Ol=(4*eZ(0)|0)-1|0,dT0=[Gr,dZ,Js(0)];function yT0(x){throw q0(dT0,1)}function $d(x,r){return r?[0,a(x,r[1])]:0}function GX(x){return 25>>0?x:x+KM|0}function qc(x){for(var r=0,e=x;;){if(!e)return r;var r=r+1|0,e=e[2]}}function Rl(x){return x?x[1]:Ox(EZ)}function qX(x){return x?x[2]:Ox(SZ)}function Hc(x,r){for(var e=x,t=r;;){if(!e)return t;var u=[0,e[1],t],e=e[2],t=u}}function Ax(x){return Hc(x,0)}function Ll(x){if(!x)return 0;var r=x[1];return Qx(r,Ll(x[2]))}function Tn(x,r){if(!r)return 0;var e=r[2],t=a(x,r[1]);return[0,t,Tn(x,e)]}function Fd(x,r){for(var e=0,t=r;;){if(!t)return e;var u=t[2],e=[0,a(x,t[1]),e],t=u}}function g2(x,r){for(var e=r;;){if(!e)return 0;var t=e[2];a(x,e[1]);var e=t}}function H1(x,r,e){for(var t=r,u=e;;){if(!u)return t;var i=u[2],t=p(x,t,u[1]),u=i}}function xO(x,r,e){if(!r)return e;var t=r[1];return p(x,t,xO(x,r[2],e))}function HX(x,r,e){for(var t=r,u=e;;){if(t){if(u){var i=u[2],f=t[2];p(x,t[1],u[1]);var t=f,u=i;continue}}else if(!u)return 0;return y2(TZ)}}function rO(x,r){for(var e=r;;){if(!e)return 0;var t=e[2],u=a(x,e[1]);if(u)return u;var e=t}}function eO(x,r){for(var e=r;;){if(!e)return 0;var t=e[2],u=CX(e[1],x)===0?1:0;if(u)return u;var e=t}}function Ml(x){var r=0;return function(e){for(var t=r,u=e;;){if(!u)return Ax(t);var i=u[2],f=u[1];if(a(x,f)){var t=[0,f,t],u=i;continue}var u=i}}}function Mv(x,r){var e=w1(x);return CW(e,0,x,r),e}function bX(x){var r=ct(x),e=w1(r);return Ms(x,0,e,0,r),e}function xY(x,r,e){if(0<=r&&0<=e&&(ct(x)-e|0)>=r){var t=w1(e);return Ms(x,r,t,0,e),t}return y2(PZ)}function Va(x,r,e){return S2(xY(x,r,e))}function rY(x,r,e,t,u){return 0<=u&&0<=r&&(ct(x)-u|0)>=r&&0<=t&&(ct(e)-u|0)>=t?Ms(x,r,e,t,u):y2(AZ)}function zs(x,r,e,t,u){return 0<=u&&0<=r&&(Xx(x)-u|0)>=r&&0<=t&&(ct(e)-u|0)>=t?Fc(x,r,e,t,u):y2(gZ)}function Qd(x,r){return S2(Mv(x,r))}function m2(x,r,e){return S2(xY($c(x),r,e))}function eY(x){var r=$c(x);if(ct(r)===0)var e=r;else{var t=bX(r);Kr(t,0,GX(oe(r,0)));var e=t}return S2(e)}function tY(x,r){var e=Xx(x),t=e<=Xx(r)?1:0;if(!t)return t;for(var u=0;;){if(u===e)return 1;if(fx(r,u)!==fx(x,u))return 0;var u=u+1|0}}var mT0=Tx;function nY(x,r){var e=r.length-1-1|0,t=0;if(e>=0)for(var u=t;;){a(x,r[1+u]);var i=u+1|0;if(e!==u){var u=i;continue}break}return 0}function Gd(x,r){var e=r.length-1;if(e===0)return[0];var t=Ja(e,a(x,r[1])),u=e-1|0,i=1;if(u>=1)for(var f=i;;){t[1+f]=a(x,r[1+f]);var o=f+1|0;if(u!==f){var f=o;continue}break}return t}function Dl(x){if(!x)return[0];for(var r=0,e=x,t=x[2],u=x[1];;){if(e){var r=r+1|0,e=e[2];continue}for(var i=Ja(r,u),f=1,o=t;;){if(!o)return i;var l=o[2];i[1+f]=o[1];var f=f+1|0,o=l}}}function uY(x){try{var r=[0,Sl(x)];return r}catch(t){var e=C1(t);if(e[1]===_n)return 0;throw q0(e,0)}}function tO(x){function r(F){return F?F[5]:0}function e(F,H,B,a0){var m0=r(F),P0=r(a0),D=P0<=m0?m0+1|0:P0+1|0;return[0,F,H,B,a0,D]}function t(F,H){return[0,0,F,H,0,1]}function u(F,H,B,a0){var m0=F?F[5]:0,P0=a0?a0[5]:0;if((P0+2|0)=P0){var X=P0<=m0?m0+1|0:P0+1|0;return[0,F,H,B,a0,X]}if(!a0)return y2(JZ);var F0=a0[4],sx=a0[3],ex=a0[2],U0=a0[1],Nx=r(U0);if(Nx<=r(F0))return e(e(F,H,B,U0),ex,sx,F0);if(!U0)return y2(jZ);var mx=U0[3],Bx=U0[2],Gx=U0[1],J0=e(U0[4],ex,sx,F0);return e(e(F,H,B,Gx),Bx,mx,J0)}var i=0;function f(F){return F?0:1}function o(F,H,B){if(!B)return[0,0,F,H,0,1];var a0=B[4],m0=B[3],P0=B[2],D=B[1],O0=B[5],K0=p(x[1],F,P0);if(K0===0)return m0===H?B:[0,D,F,H,a0,O0];if(0<=K0){var j0=o(F,H,a0);return a0===j0?B:u(D,P0,m0,j0)}var ox=o(F,H,D);return D===ox?B:u(ox,P0,m0,a0)}function l(F,H){for(var B=H;;){if(!B)throw q0(E2,1);var a0=B[4],m0=B[3],P0=B[1],D=p(x[1],F,B[2]);if(D===0)return m0;var O0=0<=D?a0:P0,B=O0}}function d(F,H){for(var B=H;;){if(!B)throw q0(E2,1);var a0=B[2],m0=B[4],P0=B[3],D=B[1];if(!a(F,a0)){var B=m0;continue}for(var O0=a0,K0=P0,j0=D;;){if(!j0)return[0,O0,K0];var ox=j0[2],b0=j0[4],_x=j0[3],B0=j0[1];if(a(F,ox)){var O0=ox,K0=_x,j0=B0;continue}var j0=b0}}}function k(F,H){for(var B=H;;){if(!B)return 0;var a0=B[2],m0=B[4],P0=B[3],D=B[1];if(!a(F,a0)){var B=m0;continue}for(var O0=a0,K0=P0,j0=D;;){if(!j0)return[0,[0,O0,K0]];var ox=j0[2],b0=j0[4],_x=j0[3],B0=j0[1];if(a(F,ox)){var O0=ox,K0=_x,j0=B0;continue}var j0=b0}}}function h(F,H){for(var B=H;;){if(!B)throw q0(E2,1);var a0=B[2],m0=B[4],P0=B[3],D=B[1];if(!a(F,a0)){var B=D;continue}for(var O0=a0,K0=P0,j0=m0;;){if(!j0)return[0,O0,K0];var ox=j0[2],b0=j0[4],_x=j0[3],B0=j0[1];if(a(F,ox)){var O0=ox,K0=_x,j0=b0;continue}var j0=B0}}}function g(F,H){for(var B=H;;){if(!B)return 0;var a0=B[2],m0=B[4],P0=B[3],D=B[1];if(!a(F,a0)){var B=D;continue}for(var O0=a0,K0=P0,j0=m0;;){if(!j0)return[0,[0,O0,K0]];var ox=j0[2],b0=j0[4],_x=j0[3],B0=j0[1];if(a(F,ox)){var O0=ox,K0=_x,j0=b0;continue}var j0=B0}}}function A(F,H){for(var B=H;;){if(!B)return 0;var a0=B[4],m0=B[3],P0=B[1],D=p(x[1],F,B[2]);if(D===0)return[0,m0];var O0=0<=D?a0:P0,B=O0}}function N(F,H){for(var B=H;;){if(!B)return 0;var a0=B[4],m0=B[1],P0=p(x[1],F,B[2]),D=P0===0?1:0;if(D)return D;var O0=0<=P0?a0:m0,B=O0}}function C(F){for(var H=F;;){if(!H)throw q0(E2,1);var B=H[1];if(!B)return[0,H[2],H[3]];var H=B}}function O(F){for(var H=F;;){if(!H)return 0;var B=H[1];if(!B)return[0,[0,H[2],H[3]]];var H=B}}function L(F){for(var H=F;;){if(!H)throw q0(E2,1);if(!H[4])return[0,H[2],H[3]];var H=H[4]}}function M(F){for(var H=F;;){if(!H)return 0;if(!H[4])return[0,[0,H[2],H[3]]];var H=H[4]}}function V(F){if(!F)return y2(OZ);var H=F[1];if(!H)return F[4];var B=F[4],a0=F[3],m0=F[2];return u(V(H),m0,a0,B)}function z(F,H){if(!F)return H;if(!H)return F;var B=C(H),a0=B[2],m0=B[1];return u(F,m0,a0,V(H))}function Y(F,H){if(!H)return 0;var B=H[4],a0=H[3],m0=H[2],P0=H[1],D=p(x[1],F,m0);if(D===0)return z(P0,B);if(0<=D){var O0=Y(F,B);return B===O0?H:u(P0,m0,a0,O0)}var K0=Y(F,P0);return P0===K0?H:u(K0,m0,a0,B)}function t0(F,H,B){if(!B){var a0=a(H,0);return a0?[0,0,F,a0[1],0,1]:0}var m0=B[4],P0=B[3],D=B[2],O0=B[1],K0=B[5],j0=p(x[1],F,D);if(j0===0){var ox=a(H,[0,P0]);if(!ox)return z(O0,m0);var b0=ox[1];return P0===b0?B:[0,O0,F,b0,m0,K0]}if(0<=j0){var _x=t0(F,H,m0);return m0===_x?B:u(O0,D,P0,_x)}var B0=t0(F,H,O0);return O0===B0?B:u(B0,D,P0,m0)}function i0(F,H){for(var B=H;;){if(!B)return 0;var a0=B[4],m0=B[3],P0=B[2];i0(F,B[1]),p(F,P0,m0);var B=a0}}function j(F,H){if(!H)return 0;var B=H[5],a0=H[4],m0=H[3],P0=H[2],D=j(F,H[1]),O0=a(F,m0);return[0,D,P0,O0,j(F,a0),B]}function K(F,H){if(!H)return 0;var B=H[2],a0=H[5],m0=H[4],P0=H[3],D=K(F,H[1]),O0=p(F,B,P0);return[0,D,B,O0,K(F,m0),a0]}function J(F,H,B){for(var a0=H,m0=B;;){if(!a0)return m0;var P0=a0[4],D=a0[3],O0=a0[2],K0=H0(F,O0,D,J(F,a0[1],m0)),a0=P0,m0=K0}}function Q(F,H){for(var B=H;;){if(!B)return 1;var a0=B[4],m0=B[1],P0=p(F,B[2],B[3]);if(P0){var D=Q(F,m0);if(D){var B=a0;continue}var O0=D}else var O0=P0;return O0}}function x0(F,H){for(var B=H;;){if(!B)return 0;var a0=B[4],m0=B[1],P0=p(F,B[2],B[3]);if(P0)var D=P0;else{var O0=x0(F,m0);if(!O0){var B=a0;continue}var D=O0}return D}}function $(F,H,B){if(!B)return t(F,H);var a0=B[4],m0=B[3],P0=B[2];return u($(F,H,B[1]),P0,m0,a0)}function f0(F,H,B){if(!B)return t(F,H);var a0=B[3],m0=B[2],P0=B[1];return u(P0,m0,a0,f0(F,H,B[4]))}function s0(F,H,B,a0){if(!F)return $(H,B,a0);if(!a0)return f0(H,B,F);var m0=a0[5],P0=F[5],D=a0[4],O0=a0[3],K0=a0[2],j0=a0[1],ox=F[4],b0=F[3],_x=F[2],B0=F[1];return(m0+2|0)x[3])throw q0([0,wr,zZ],1);if((e+r|0)<=x[3])return 0;throw q0([0,wr,KZ],1)}}function st(x,r){var e=x[2];return x[3]<=e&&iO(x,1),Kr(x[1],e,r),x[2]=e+1|0,0}function fY(x,r,e,t){var u=e<0?1:0;if(u)var f=u;else var i=t<0?1:0,f=i||((Xx(r)-t|0)=u+X5>>>0&&(i=1):65<=u&&(i=1);else{var f=0;if(u===32)f=1;else if(43<=u)switch(u+P9|0){case 5:if(t<(e+2|0)&&1>>0?33>>0&&(i=1):u===2&&(i=1),!i){var r=r+1|0;continue}var f=$c(x),o=[0,0],l=ct(f)-1|0,d=0;if(l>=0)for(var k=d;;){var h=oe(f,k),g=0;if(32<=h){var A=h-34|0,N=0;if(58>>0?93>A&&(N=1):56>>0?g=1:N=1,N){var C=1;g=2}}else 11<=h?h===13&&(g=1):8<=h&&(g=1);switch(g){case 0:var C=4;break;case 1:var C=2;break}o[1]=o[1]+C|0;var O=k+1|0;if(l!==k){var k=O;continue}break}if(o[1]===ct(f))var L=bX(f);else{var M=w1(o[1]);o[1]=0;var V=ct(f)-1|0,z=0;if(V>=0)for(var Y=z;;){var t0=oe(f,Y),i0=0;if(35<=t0)t0===92?i0=2:Yr<=t0?i0=1:i0=3;else if(32<=t0)34<=t0?i0=2:i0=3;else if(14<=t0)i0=1;else switch(t0){case 8:Kr(M,o[1],92),o[1]++,Kr(M,o[1],98);break;case 9:Kr(M,o[1],92),o[1]++,Kr(M,o[1],Ns);break;case 10:Kr(M,o[1],92),o[1]++,Kr(M,o[1],V1);break;case 13:Kr(M,o[1],92),o[1]++,Kr(M,o[1],ut);break;default:i0=1}switch(i0){case 1:Kr(M,o[1],92),o[1]++,Kr(M,o[1],48+(t0/it|0)|0),o[1]++,Kr(M,o[1],48+((t0/10|0)%10|0)|0),o[1]++,Kr(M,o[1],48+(t0%10|0)|0);break;case 2:Kr(M,o[1],92),o[1]++,Kr(M,o[1],t0);break;case 3:Kr(M,o[1],t0);break}o[1]++;var j=Y+1|0;if(V!==Y){var Y=j;continue}break}var L=M}var t=S2(L)}var K=Xx(t),J=Mv(K+2|0,34);return Fc(t,0,J,1,K),S2(J)}}function aY(x,r){var e=Zd(r),t=Y$[1];switch(x[2]){case 0:var u=Jf;break;case 1:var u=It;break;case 2:var u=69;break;case 3:var u=fn;break;case 4:var u=71;break;case 5:var u=t;break;case 6:var u=Dt;break;case 7:var u=72;break;default:var u=70}var i=cY(16);switch(Ba(i,37),x[1]){case 0:break;case 1:Ba(i,43);break;default:Ba(i,32)}return 8<=x[2]&&Ba(i,35),Ba(i,46),A2(i,kx+e),Ba(i,u),oY(i)}function Hd(x,r){if(13>x)return r;var e=[0,0],t=Xx(r)-1|0,u=0;if(t>=0)for(var i=u;;){9>=fx(r,i)+Y1>>>0&&e[1]++;var f=i+1|0;if(t!==i){var i=f;continue}break}var o=e[1],l=w1(Xx(r)+((o-1|0)/3|0)|0),d=[0,0];function k(L){return Ua(l,d[1],L),d[1]++,0}var h=[0,((o-1|0)%3|0)+1|0],g=Xx(r)-1|0,A=0;if(g>=0)for(var N=A;;){var C=fx(r,N);9>>0||(h[1]===0&&(k(95),h[1]=3),h[1]+=-1),k(C);var O=N+1|0;if(g!==N){var N=O;continue}break}return S2(l)}function _T0(x,r){switch(x){case 1:var e=AF;break;case 2:var e=PF;break;case 4:var e=NF;break;case 5:var e=CF;break;case 6:var e=IF;break;case 7:var e=OF;break;case 8:var e=RF;break;case 9:var e=LF;break;case 10:var e=MF;break;case 11:var e=DF;break;case 0:case 13:var e=UF;break;case 3:case 14:var e=jF;break;default:var e=JF}return Hd(x,jd(e,r))}function wT0(x,r){switch(x){case 1:var e=xF;break;case 2:var e=rF;break;case 4:var e=eF;break;case 5:var e=tF;break;case 6:var e=nF;break;case 7:var e=uF;break;case 8:var e=iF;break;case 9:var e=fF;break;case 10:var e=cF;break;case 11:var e=sF;break;case 0:case 13:var e=oF;break;case 3:case 14:var e=vF;break;default:var e=aF}return Hd(x,jd(e,r))}function TT0(x,r){switch(x){case 1:var e=V$;break;case 2:var e=z$;break;case 4:var e=K$;break;case 5:var e=B$;break;case 6:var e=W$;break;case 7:var e=Z$;break;case 8:var e=$$;break;case 9:var e=F$;break;case 10:var e=Q$;break;case 11:var e=G$;break;case 0:case 13:var e=q$;break;case 3:case 14:var e=H$;break;default:var e=b$}return Hd(x,jd(e,r))}function ST0(x,r){switch(x){case 1:var e=lF;break;case 2:var e=pF;break;case 4:var e=dF;break;case 5:var e=yF;break;case 6:var e=mF;break;case 7:var e=kF;break;case 8:var e=hF;break;case 9:var e=_F;break;case 10:var e=wF;break;case 11:var e=TF;break;case 0:case 13:var e=SF;break;case 3:case 14:var e=EF;break;default:var e=gF}return Hd(x,DW(e,r))}function Ks(x,r,e){function t(z){switch(x[1]){case 0:var Y=45;break;case 1:var Y=43;break;default:var Y=32}return OW(e,r,Y)}function u(z){var Y=lW(e);return Y===3?e<0?j$:J$:4<=Y?U$:z}switch(x[2]){case 5:for(var i=XI(aY(x,r),e),f=0,o=Xx(i);;){if(f===o)var l=0;else{var d=N1(i,f)+Nv|0,k=0;if(23>>0?d===55&&(k=1):21>>0&&(k=1),!k){var f=f+1|0;continue}var l=1}var h=l?i:Fx(i,X$);return u(h)}case 6:return t(0);case 7:var g=$c(t(0)),A=ct(g);if(A===0)var N=g;else{var C=w1(A),O=A-1|0,L=0;if(O>=0)for(var M=L;;){Kr(C,M,GX(oe(g,M)));var V=M+1|0;if(O!==M){var M=V;continue}break}var N=C}return S2(N);case 8:return u(t(0));default:return XI(aY(x,r),e)}}function bd(x,r,e,t,u,i,f){if(typeof t=="number"){if(typeof u=="number")return u?function(A,N){return jr(x,[4,r,Wa(A,p(i,f,N))],e)}:function(A){return jr(x,[4,r,p(i,f,A)],e)};var o=u[1];return function(A){return jr(x,[4,r,Wa(o,p(i,f,A))],e)}}if(t[0]===0){var l=t[2],d=t[1];if(typeof u=="number")return u?function(A,N){return jr(x,[4,r,Ke(d,l,Wa(A,p(i,f,N)))],e)}:function(A){return jr(x,[4,r,Ke(d,l,p(i,f,A))],e)};var k=u[1];return function(A){return jr(x,[4,r,Ke(d,l,Wa(k,p(i,f,A)))],e)}}var h=t[1];if(typeof u=="number")return u?function(A,N,C){return jr(x,[4,r,Ke(h,A,Wa(N,p(i,f,C)))],e)}:function(A,N){return jr(x,[4,r,Ke(h,A,p(i,f,N))],e)};var g=u[1];return function(A,N){return jr(x,[4,r,Ke(h,A,Wa(g,p(i,f,N)))],e)}}function oO(x,r,e,t,u){if(typeof t=="number")return function(l){return jr(x,[4,r,a(u,l)],e)};if(t[0]===0){var i=t[2],f=t[1];return function(l){return jr(x,[4,r,Ke(f,i,a(u,l))],e)}}var o=t[1];return function(l,d){return jr(x,[4,r,Ke(o,l,a(u,d))],e)}}function Xl(x,r,e,t){for(var u=r,i=e,f=t;;){if(typeof f=="number")return a(u,i);switch(f[0]){case 0:var o=f[1];return function(N0){return jr(u,[5,i,N0],o)};case 1:var l=f[1];return function(N0){var A0=0;if(40<=N0)if(N0===92)var Y0=yZ;else Yr<=N0?A0=1:A0=2;else if(32<=N0)if(39<=N0)var Y0=mZ;else A0=2;else if(14<=N0)A0=1;else switch(N0){case 8:var Y0=kZ;break;case 9:var Y0=hZ;break;case 10:var Y0=_Z;break;case 13:var Y0=wZ;break;default:A0=1}switch(A0){case 1:var C0=w1(4);Kr(C0,0,92),Kr(C0,1,48+(N0/it|0)|0),Kr(C0,2,48+((N0/10|0)%10|0)|0),Kr(C0,3,48+(N0%10|0)|0);var Y0=S2(C0);break;case 2:var F=w1(1);Kr(F,0,N0);var Y0=S2(F);break}var H=Xx(Y0),B=Mv(H+2|0,39);return Fc(Y0,0,B,1,H),jr(u,[4,i,S2(B)],l)};case 2:var d=f[2],k=f[1];return oO(u,i,d,k,function(N0){return N0});case 3:return oO(u,i,f[2],f[1],hT0);case 4:return bd(u,i,f[4],f[2],f[3],_T0,f[1]);case 5:return bd(u,i,f[4],f[2],f[3],wT0,f[1]);case 6:return bd(u,i,f[4],f[2],f[3],TT0,f[1]);case 7:return bd(u,i,f[4],f[2],f[3],ST0,f[1]);case 8:var h=f[4],g=f[3],A=f[2],N=f[1];if(typeof A=="number"){if(typeof g=="number")return g?function(N0,A0){return jr(u,[4,i,Ks(N,N0,A0)],h)}:function(N0){return jr(u,[4,i,Ks(N,cO(N),N0)],h)};var C=g[1];return function(N0){return jr(u,[4,i,Ks(N,C,N0)],h)}}if(A[0]===0){var O=A[2],L=A[1];if(typeof g=="number")return g?function(N0,A0){return jr(u,[4,i,Ke(L,O,Ks(N,N0,A0))],h)}:function(N0){return jr(u,[4,i,Ke(L,O,Ks(N,cO(N),N0))],h)};var M=g[1];return function(N0){return jr(u,[4,i,Ke(L,O,Ks(N,M,N0))],h)}}var V=A[1];if(typeof g=="number")return g?function(N0,A0,Y0){return jr(u,[4,i,Ke(V,N0,Ks(N,A0,Y0))],h)}:function(N0,A0){return jr(u,[4,i,Ke(V,N0,Ks(N,cO(N),A0))],h)};var z=g[1];return function(N0,A0){return jr(u,[4,i,Ke(V,N0,Ks(N,z,A0))],h)};case 9:return oO(u,i,f[2],f[1],aT0);case 10:var i=[7,i],f=f[1];continue;case 11:var i=[2,i,f[1]],f=f[2];continue;case 12:var i=[3,i,f[1]],f=f[2];continue;case 13:var Y=f[3],t0=f[2],i0=cY(16);sO(i0,t0);var j=oY(i0);return function(N0){return jr(u,[4,i,j],Y)};case 14:var K=f[3],J=f[2];return function(N0){var A0=N0[1],Y0=s1(A0,I1(b1(J)));if(typeof Y0[2]=="number")return jr(u,i,T1(Y0[1],K));throw q0(k2,1)};case 15:var Q=f[1];return function(N0,A0){return jr(u,[6,i,function(Y0){return p(N0,Y0,A0)}],Q)};case 16:var x0=f[1];return function(N0){return jr(u,[6,i,N0],x0)};case 17:var i=[0,i,f[1]],f=f[2];continue;case 18:var $=f[1];if($[0]===0){var f0=f[2],s0=$[1][1],v0=0,u=function(C0,F,H){return function(B){return jr(F,[1,C0,[0,B]],H)}}(i,u,f0),i=v0,f=s0;continue}var o0=f[2],c0=$[1][1],d0=0,u=function(N0,A0,Y0){return function(C0){return jr(A0,[1,N0,[1,C0]],Y0)}}(i,u,o0),i=d0,f=c0;continue;case 19:throw q0([0,wr,E$],1);case 20:var E0=f[3],L0=[8,i,g$];return function(N0){return jr(u,L0,E0)};case 21:var X0=f[2];return function(N0){return jr(u,[4,i,jd(rj,N0)],X0)};case 22:var xx=f[1];return function(N0){return jr(u,[5,i,N0],xx)};case 23:var g0=f[2],$0=f[1];if(typeof $0=="number")switch($0){case 0:return x<50?e1(x+1|0,u,i,g0):d2(e1,[0,u,i,g0]);case 1:return x<50?e1(x+1|0,u,i,g0):d2(e1,[0,u,i,g0]);case 2:throw q0([0,wr,A$],1);default:return x<50?e1(x+1|0,u,i,g0):d2(e1,[0,u,i,g0])}switch($0[0]){case 0:return x<50?e1(x+1|0,u,i,g0):d2(e1,[0,u,i,g0]);case 1:return x<50?e1(x+1|0,u,i,g0):d2(e1,[0,u,i,g0]);case 2:return x<50?e1(x+1|0,u,i,g0):d2(e1,[0,u,i,g0]);case 3:return x<50?e1(x+1|0,u,i,g0):d2(e1,[0,u,i,g0]);case 4:return x<50?e1(x+1|0,u,i,g0):d2(e1,[0,u,i,g0]);case 5:return x<50?e1(x+1|0,u,i,g0):d2(e1,[0,u,i,g0]);case 6:return x<50?e1(x+1|0,u,i,g0):d2(e1,[0,u,i,g0]);case 7:return x<50?e1(x+1|0,u,i,g0):d2(e1,[0,u,i,g0]);case 8:return x<50?e1(x+1|0,u,i,g0):d2(e1,[0,u,i,g0]);case 9:var n0=$0[2];return x<50?vO(x+1|0,u,i,n0,g0):d2(vO,[0,u,i,n0,g0]);case 10:return x<50?e1(x+1|0,u,i,g0):d2(e1,[0,u,i,g0]);default:return x<50?e1(x+1|0,u,i,g0):d2(e1,[0,u,i,g0])}default:var ix=f[3],rx=f[1],dx=a(f[2],0);return x<50?aO(x+1|0,u,i,ix,rx,dx):d2(aO,[0,u,i,ix,rx,dx])}}}function vO(x,r,e,t,u){if(typeof t=="number")return x<50?e1(x+1|0,r,e,u):d2(e1,[0,r,e,u]);switch(t[0]){case 0:var i=t[1];return function(z){return ot(r,e,i,u)};case 1:var f=t[1];return function(z){return ot(r,e,f,u)};case 2:var o=t[1];return function(z){return ot(r,e,o,u)};case 3:var l=t[1];return function(z){return ot(r,e,l,u)};case 4:var d=t[1];return function(z){return ot(r,e,d,u)};case 5:var k=t[1];return function(z){return ot(r,e,k,u)};case 6:var h=t[1];return function(z){return ot(r,e,h,u)};case 7:var g=t[1];return function(z){return ot(r,e,g,u)};case 8:var A=t[2];return function(z){return ot(r,e,A,u)};case 9:var N=t[3],C=t[2],O=s2(b1(t[1]),C);return function(z){return ot(r,e,b2(O,N),u)};case 10:var L=t[1];return function(z,Y){return ot(r,e,L,u)};case 11:var M=t[1];return function(z){return ot(r,e,M,u)};case 12:var V=t[1];return function(z){return ot(r,e,V,u)};case 13:throw q0([0,wr,P$],1);default:throw q0([0,wr,N$],1)}}function e1(x,r,e,t){var u=[8,e,C$];return x<50?Xl(x+1|0,r,u,t):d2(Xl,[0,r,u,t])}function aO(x,r,e,t,u,i){if(u){var f=u[1];return function(l){return ET0(r,e,t,f,a(i,l))}}var o=[4,e,i];return x<50?Xl(x+1|0,r,o,t):d2(Xl,[0,r,o,t])}function jr(x,r,e){return $I(Xl(0,x,r,e))}function ot(x,r,e,t){return $I(vO(0,x,r,e,t))}function ET0(x,r,e,t,u){return $I(aO(0,x,r,e,t,u))}function Bs(x,r){for(var e=r;;){if(typeof e=="number")return 0;switch(e[0]){case 0:var t=e[1],u=vY(e[2]);return Bs(x,t),Il(x,u);case 1:var i=e[2],f=e[1];if(i[0]===0){var o=i[1];Bs(x,f),Il(x,I$);var e=o;continue}var l=i[1];Bs(x,f),Il(x,O$);var e=l;continue;case 6:var d=e[2];return Bs(x,e[1]),a(d,x);case 7:return Bs(x,e[1]),Qc(x);case 8:var k=e[2];return Bs(x,e[1]),y2(k);case 2:case 4:var h=e[2];return Bs(x,e[1]),Il(x,h);default:var g=e[2];return Bs(x,e[1]),YX(x,g)}}}function Ws(x,r){for(var e=r;;){if(typeof e=="number")return 0;switch(e[0]){case 0:var t=e[1],u=vY(e[2]);return Ws(x,t),vr(x,u);case 1:var i=e[2],f=e[1];if(i[0]===0){var o=i[1];Ws(x,f),vr(x,R$);var e=o;continue}var l=i[1];Ws(x,f),vr(x,L$);var e=l;continue;case 6:var d=e[2];return Ws(x,e[1]),vr(x,a(d,0));case 7:var e=e[1];continue;case 8:var k=e[2];return Ws(x,e[1]),y2(k);case 2:case 4:var h=e[2];return Ws(x,e[1]),vr(x,h);default:var g=e[2];return Ws(x,e[1]),st(x,g)}}}function lY(x,r){var e=r[1],t=0;return jr(function(u){return Bs(x,u),0},t,e)}function lO(x){return lY(Gc,x)}function Tr(x){var r=x[1];return jr(function(e){var t=Zr(64);return Ws(t,e),U1(t)},0,r)}var pO=[0,0];function dO(x,r){var e=x[1+r];if(!(1-(typeof e=="number"?1:0)))return a(Tr(kQ),e);if(Lv(e)===Ea)return a(Tr(hQ),e);if(Lv(e)!==Q8)return _Q;for(var t=XI("%.12g",e),u=0,i=Xx(t);;){if(i<=u)return Fx(t,aZ);var f=N1(t,u),o=0;if(48<=f?58>f&&(o=1):f===45&&(o=1),!o)return t;var u=u+1|0}}function pY(x,r){if(x.length-1<=r)return FF;var e=pY(x,r+1|0),t=dO(x,r);return p(Tr(QF),t,e)}function xy(x){for(var r=pO[1];;){if(r){var e=0,t=r[2],u=r[1];try{var i=a(u,x)}catch{e=1}var f=0;if(e||!i)f=1;else var o=[0,i[1]];if(f){var r=t;continue}}else var o=0;if(o)return o[1];if(x===FI)return sQ;if(x===WX)return oQ;if(x[1]===BX){var l=x[2],d=l[3],k=l[2],h=l[1];return Ve(Tr(GI),h,k,d,d+5|0,vQ)}if(x[1]===wr){var g=x[2],A=g[3],N=g[2],C=g[1];return Ve(Tr(GI),C,N,A,A+6|0,aQ)}if(x[1]===Nl){var O=x[2],L=O[3],M=O[2],V=O[1];return Ve(Tr(GI),V,M,L,L+6|0,lQ)}if(Lv(x)!==0)return x[1];var z=x.length-1,Y=x[1][1];if(2>>0)var t0=pY(x,2),i0=dO(x,1),j=p(Tr(pQ),i0,t0);else switch(z){case 0:var j=dQ;break;case 1:var j=yQ;break;default:var K=dO(x,1),j=a(Tr(mQ),K)}return Fx(Y,j)}}function yO(x,r){var e=NW(r),t=e.length-1-1|0,u=0;if(t>=0)for(var i=u;;){var f=z1(e,i)[1+i],o=function(V){return function(z){return z?V===0?rQ:eQ:V===0?tQ:nQ}}(i);if(f[0]===0)var l=f[5],d=f[4],k=f[3],h=f[6]?uQ:iQ,g=f[2],A=f[7],N=o(f[1]),O=[0,sZ(Tr(fQ),N,A,g,h,k,d,l)];else if(f[1])var O=0;else var C=o(0),O=[0,a(Tr(cQ),C)];if(O){var L=O[1];a(lY(x,xQ),L)}var M=i+1|0;if(t!==i){var i=M;continue}break}return 0}function dY(x){for(;;){var r=pO[1],e=1-qI(pO,r,[0,x,r]);if(!e)return e}}var gT0=wQ.slice(),AT0=[0];ZI(uD,function(x,r){try{try{var e=r?AT0:OX(0);try{bI(0)}catch{}try{var t=xy(x);a(lO(bF),t),yO(Gc,e);var u=KW(0);if(u<0){var i=Zd(u);FX(z1(gT0,i)[1+i])}var f=Qc(Gc),o=f}catch(A){var l=C1(A),d=xy(x);a(lO(GF),d),yO(Gc,e);var k=xy(l);a(lO(qF),k),yO(Gc,OX(0));var o=Qc(Gc)}var h=o}catch(A){var g=C1(A);if(g!==FI)throw q0(g,0);var h=FX(HF)}return h}catch{return 0}});var mO=[Gr,VQ,Js(0)],ry=0,yY=-1;function Yl(x,r){return x[13]=x[13]+r[3]|0,uO(r,x[28])}var mY=1000000010;function kO(x,r){return H0(x[17],r,0,Xx(r))}function ey(x){return a(x[19],0)}function kY(x,r,e){return x[9]=x[9]-r|0,kO(x,e),x[11]=0,0}function ty(x,r){var e=P(r,kx);return e&&kY(x,Xx(r),r)}function Uv(x,r,e){var t=r[3],u=r[2];ty(x,r[1]),ey(x),x[11]=1;var i=(x[6]-e|0)+u|0,f=x[8],o=f<=i?f:i;return x[10]=o,x[9]=x[6]-x[10]|0,a(x[21],x[10]),ty(x,t)}function hY(x,r){return Uv(x,YQ,r)}function Za(x,r){var e=r[2],t=r[3];return ty(x,r[1]),x[9]=x[9]-e|0,a(x[20],e),ty(x,t)}function PT0(x,r,e){if(typeof e=="number")switch(e){case 0:var t=Ka(x[3]);if(!t)return 0;var u=t[1][1],i=function(dx,ax){if(!ax)return[0,dx,0];var Sx=ax[1],D0=ax[2];return zW(dx,Sx)?[0,dx,ax]:[0,Sx,i(dx,D0)]};return u[1]=i(x[6]-x[9]|0,u[1]),0;case 1:return za(x[2]),0;case 2:return za(x[3]),0;case 3:var f=Ka(x[2]);return f?hY(x,f[1][2]):ey(x);case 4:var o=x[10]!==(x[6]-x[9]|0)?1:0;if(!o)return o;var l=x[28],d=l[2];if(d){var k=d[1];if(d[2]){var h=d[2];l[1]=l[1]-1|0,l[2]=h;var g=[0,k]}else{nO(l);var g=[0,k]}}else var g=0;if(!g)return 0;var A=g[1],N=A[1];return x[12]=x[12]-A[3]|0,x[9]=x[9]+N|0,0;default:var C=za(x[5]);return C?kO(x,a(x[25],C[1])):0}switch(e[0]){case 0:return kY(x,r,e[1]);case 1:var O=e[2],L=e[1],M=O[1],V=O[2],z=Ka(x[2]);if(!z)return 0;var Y=z[1],t0=Y[2];switch(Y[1]){case 0:return Za(x,L);case 1:return Uv(x,O,t0);case 2:return Uv(x,O,t0);case 3:return x[9]<(r+Xx(M)|0)?Uv(x,O,t0):Za(x,L);case 4:return x[11]?Za(x,L):x[9]<(r+Xx(M)|0)||((x[6]-t0|0)+V|0)s0){var $=v0;continue}var o0=s0}else var o0=f0;var c0=o0;break}else var c0=i0;var d0=c0-i0|0;return 0<=d0?Za(x,[0,jQ,d0+K|0,UQ]):Uv(x,[0,XQ,c0+j|0,JQ],x[6]);case 3:var E0=e[2],L0=e[1];if(x[8]<(x[6]-x[9]|0)){var X0=Ka(x[2]);if(X0){var xx=X0[1],g0=xx[2],$0=xx[1];x[9]=$0-1>>>0&&hY(x,g0)}else ey(x)}var n0=x[9]-L0|0,ix=E0===1?1:x[9]=e)return H0(x[17],NY,0,e);H0(x[17],NY,0,80);var e=e+HD|0}}function NT0(x){return x[1]===mO?Fx(NQ,Fx(x[2],PQ)):CQ}function CT0(x){return x[1]===mO?Fx(gQ,Fx(x[2],EQ)):AQ}function IT0(x){return 0}function OT0(x){return 0}function IY(x,r){function e(g){return 0}function t(g){return 0}function u(g){return 0}var i=iY(0),f=[0,yY,TQ,0];uO(f,i);var o=Ul(0);hO(o),Dv([0,1,f],o);var l=Ul(0),d=Ul(0),k=Ul(0),h=[0,o,Ul(0),k,d,l,78,10,68,78,0,1,1,1,1,vT0,SQ,x,r,u,t,e,0,0,NT0,CT0,IT0,OT0,i];return h[19]=function(g){return H0(h[17],IQ,0,1)},h[20]=function(g){return CY(h,g)},h[21]=function(g){return CY(h,g)},h}function OY(x){function r(e){return Qc(x)}return IY(function(e,t,u){return 0<=t&&0<=u&&(Xx(e)-u|0)>=t?BI(x,e,t,u):y2(vZ)},r)}function SO(x){function r(e){return 0}return IY(function(e,t,u){return fY(x,e,t,u)},r)}var RT0=vw;function RY(x){return Zr(RT0)}var LT0=RY(0),MT0=OY(lT0),DT0=OY(Gc);SO(LT0);function LY(x,r){var e=Zr(16),t=SO(e);p(x,t,r),zl(t,0);var u=e[2];if(2>u)return U1(e);var i=u-2|0,f=1;return 0<=i&&(e[2]-i|0)>=1?Va(e[1],f,i):y2(BZ)}function Be(x,r){var e=0;if(typeof r=="number")return 0;switch(r[0]){case 0:var t=r[2];if(Be(x,r[1]),typeof t=="number")switch(t){case 0:return gY(x,0);case 1:return AY(x,0);case 2:return zl(x,0);case 3:var u=x[14]=N1(M,j)+X5>>>0){var j=j+1|0;continue}for(var K=m2(M,i0,j-i0|0),J=t0(j),Q=J;;){if(Q!==z){var x0=N1(M,Q),$=0;if(48<=x0?58>x0&&($=1):x0===45&&($=1),$){var Q=Q+1|0;continue}}if(J===Q)var f0=0;else try{var s0=ft(m2(M,J,Q-J|0)),f0=s0}catch(b0){var v0=C1(b0);if(v0[1]!==_n)throw q0(v0,0);var f0=Y(0)}t0(Q)!==z&&Y(0);var o0=0;if(P(K,kx)&&P(K,ZE))var c0=P(K,"h")?P(K,"hov")?P(K,"hv")?P(K,UD)?Y(0):1:2:3:0;else o0=1;if(o0)var c0=4;var V=[0,f0,c0];break}break}return EY(x,V[1],V[2]);case 2:var d0=r[1],E0=0;if(typeof d0=="number"||d0[0]!==0)E0=1;else{var L0=d0[2],X0=0;if(typeof L0=="number"||L0[0]!==1)X0=1;else var xx=r[2],g0=L0[2],$0=d0[1];X0&&(E0=1)}if(E0){var n0=r[2],ix=d0;e=2}break;case 3:var rx=r[1],dx=0;if(typeof rx=="number"||rx[0]!==0)dx=1;else{var ax=rx[2],Sx=0;if(typeof ax=="number"||ax[0]!==1)Sx=1;else{var D0=r[2],N0=ax[2],A0=rx[1];e=1}Sx&&(dx=1)}if(dx){var Y0=r[2],C0=rx;e=3}break;case 4:var F=r[1],H=0;if(typeof F=="number"||F[0]!==0)H=1;else{var B=F[2],a0=0;if(typeof B=="number"||B[0]!==1)a0=1;else var xx=r[2],g0=B[2],$0=F[1];a0&&(H=1)}if(H){var n0=r[2],ix=F;e=2}break;case 5:var m0=r[1],P0=0;if(typeof m0=="number"||m0[0]!==0)P0=1;else{var D=m0[2],O0=0;if(typeof D=="number"||D[0]!==1)O0=1;else{var D0=r[2],N0=D[2],A0=m0[1];e=1}O0&&(P0=1)}if(P0){var Y0=r[2],C0=m0;e=3}break;case 6:var K0=r[2];return Be(x,r[1]),a(K0,x);case 7:return Be(x,r[1]),zl(x,0);default:var j0=r[2];return Be(x,r[1]),y2(j0)}switch(e){case 0:return Be(x,$0),TO(x,g0,xx);case 1:return Be(x,A0),TO(x,N0,Qd(1,D0));case 2:return Be(x,ix),ny(x,n0);default:return Be(x,C0),Vl(x,Y0)}}function Jr(x){return function(r){var e=r[1],t=0;return jr(function(u){return Be(x,u),0},t,e)}}for(;;){var MY=HI[1],UT0=[0,1];if(!(1-qI(HI,MY,function(x,r){return function(e){return qI(x,1,0)&&(zl(MT0,0),zl(DT0,0)),a(r,0)}}(UT0,MY)))){var jT0=2,JT0=function(x){var r=[0,0],e=Xx(x)-1|0,t=0;if(e>=0)for(var u=t;;){var i=N1(x,u);r[1]=(bp*r[1]|0)+i|0;var f=u+1|0;if(e!==u){var u=f;continue}break}r[1]=r[1]&FM;var o=1073741823=0)for(var f=i;;){var o=(f*2|0)+3|0,l=z1(x,f)[1+f];z1(e,o)[1+o]=l;var d=f+1|0;if(u!==f){var f=d;continue}break}return[0,jT0,e,jv[1],go[1],0,0,Zs[1],0]},EO=function(x,r){var e=x[2].length-1,t=e=0&&(u.length-1-e|0)>=0&&(fW(i,0,u,0,e),f=1),f||y2(CZ),x[2]=u;var o=0}else var o=t;return o},JY=[0,0],YT0=[0,0],gO=function(x){var r=x[2].length-1;return EO(x,r+1|0),r},Kl=function(x,r){try{var e=p(jv[28],r,x[3]);return e}catch(i){var t=C1(i);if(t!==E2)throw q0(t,0);var u=gO(x);return x[3]=H0(jv[4],r,u,x[3]),x[4]=H0(go[4],u,1,x[4]),u}},AO=function(x,r){return Gd(function(e){return Kl(x,e)},r)},XY=function(x,r,e){return YT0[1]++,p(go[28],r,x[4])?(EO(x,r+1|0),z1(x[2],r)[1+r]=e,0):(x[6]=[0,[0,r,e],x[6]],0)},PO=function(x){if(x===0)return 0;for(var r=x.length-1-1|0,e=0;;){if(0>r)return e;var t=[0,x[1+r],e],r=r-1|0,e=t}},NO=function(x,r){try{var e=p(Zs[28],r,x[7]);return e}catch(i){var t=C1(i);if(t!==E2)throw q0(t,0);var u=x[1];return x[1]=u+1|0,P(r,kx)&&(x[7]=H0(Zs[4],r,u,x[7])),u}},CO=function(x){return Ud(x,0)?[0]:x},IO=function(x,r,e,t,u,i){var f=u[2],o=u[4],l=PO(r),d=PO(e),k=PO(t),h=Tn(function(o0){return Kl(x,o0)},d),g=Tn(function(o0){return Kl(x,o0)},k);x[5]=[0,[0,x[3],x[4],x[6],x[7],h,l],x[5]];var A=Zs[1],N=x[7];function C(o0,c0,d0){return eO(o0,l)?H0(Zs[4],o0,c0,d0):d0}x[7]=H0(Zs[13],C,N,A);var O=[0,jv[1]],L=[0,go[1]];HX(function(o0,c0){O[1]=H0(jv[4],o0,c0,O[1]);var d0=L[1];try{var E0=p(go[28],c0,x[4]),L0=E0}catch(xx){var X0=C1(xx);if(X0!==E2)throw q0(X0,0);var L0=1}return L[1]=H0(go[4],c0,L0,d0),0},k,g),HX(function(o0,c0){return O[1]=H0(jv[4],o0,c0,O[1]),L[1]=H0(go[4],c0,0,L[1]),0},d,h),x[3]=O[1],x[4]=L[1];var M=0,V=x[6];x[6]=xO(function(o0,c0){return eO(o0[1],h)?c0:[0,o0,c0]},V,M);var z=i?p(f,x,o):a(f,x),Y=Rl(x[5]),t0=Y[6],i0=Y[5],j=Y[4],K=Y[3],J=Y[2],Q=Y[1];x[5]=qX(x[5]),x[7]=H1(function(o0,c0){var d0=p(Zs[28],c0,x[7]);return H0(Zs[4],c0,d0,o0)},j,t0),x[3]=Q,x[4]=J;var x0=x[6];x[6]=xO(function(o0,c0){return eO(o0[1],i0)?c0:[0,o0,c0]},x0,K);var $=0,f0=CO(t),s0=[0,Gd(function(o0){var c0=Kl(x,o0);try{for(var d0=x[6];;){if(!d0)throw q0(E2,1);var E0=d0[1],L0=d0[2],X0=E0[2];if(CX(E0[1],c0)===0)return X0;var d0=L0}}catch(g0){var xx=C1(g0);if(xx===E2)return z1(x[2],c0)[1+c0];throw q0(xx,0)}},f0),$],v0=CO(r);return cW([0,[0,z],[0,Gd(function(o0){try{var c0=p(Zs[28],o0,x[7]);return c0}catch(E0){var d0=C1(E0);throw d0===E2?q0([0,wr,zQ],1):q0(d0,0)}},v0),s0]])},uy=function(x,r){if(x===0)var e=jY([0]);else{var t=jY(Gd(JT0,x)),u=x.length-1-1|0,i=0;if(u>=0)for(var f=i;;){var o=(f*2|0)+2|0;t[3]=H0(jv[4],x[1+f],o,t[3]),t[4]=H0(go[4],o,1,t[4]);var l=f+1|0;if(u!==f){var f=l;continue}break}var e=t}var d=a(r,e);return JY[1]=(JY[1]+e[1]|0)-1|0,e[8]=Ax(e[8]),EO(e,3+((z1(e[2],1)[2]*16|0)/32|0)|0),[0,a(d,0),r,d,0]},iy=function(x,r){if(x)return x;var e=WI(Gr,r[1]);return e[1]=r[2],xZ(e)},OO=function(x,r,e){if(x)return r;var t=e[8];if(t!==0)for(var u=t;;){if(u){var i=u[2];a(u[1],r);var u=i;continue}break}return r},fy=function(x){var r=gO(x),e=0;if(r%2|0&&(2+((z1(x[2],1)[2]*16|0)/32|0)|0)>=r){var t=gO(x);e=1}if(!e)var t=r;return z1(x[2],t)[1+t]=0,t},RO=function(x,r){for(var e=[0,0],t=r.length-1;;){if(e[1]>=t)return 0;var u=e[1],i=z1(r,u)[1+u],f=function(_x){e[1]++;var B0=e[1];return z1(r,B0)[1+B0]},o=f(0);if(typeof o=="number")switch(o){case 0:var l=f(0),b0=function(B0){return function(T){return B0}}(l);break;case 1:var d=f(0),b0=function(B0){return function(T){return T[1+B0]}}(d);break;case 2:var k=f(0),h=f(0),b0=function(B0,T){return function(X){return X[1+B0][1+T]}}(k,h);break;case 3:var g=f(0),b0=function(B0){return function(T){return a(T[1][1+B0],T)}}(g);break;case 4:var A=f(0),b0=function(B0){return function(T,X){return T[1+B0]=X,0}}(A);break;case 5:var N=f(0),C=f(0),b0=function(B0,T){return function(X){return a(B0,T)}}(N,C);break;case 6:var O=f(0),L=f(0),b0=function(B0,T){return function(X){return a(B0,X[1+T])}}(O,L);break;case 7:var M=f(0),V=f(0),z=f(0),b0=function(B0,T,X){return function(F0){return a(B0,F0[1+T][1+X])}}(M,V,z);break;case 8:var Y=f(0),t0=f(0),b0=function(B0,T){return function(X){return a(B0,a(X[1][1+T],X))}}(Y,t0);break;case 9:var i0=f(0),j=f(0),K=f(0),b0=function(B0,T,X){return function(F0){return p(B0,T,X)}}(i0,j,K);break;case 10:var J=f(0),Q=f(0),x0=f(0),b0=function(B0,T,X){return function(F0){return p(B0,T,F0[1+X])}}(J,Q,x0);break;case 11:var $=f(0),f0=f(0),s0=f(0),v0=f(0),b0=function(B0,T,X,F0){return function(sx){return p(B0,T,sx[1+X][1+F0])}}($,f0,s0,v0);break;case 12:var o0=f(0),c0=f(0),d0=f(0),b0=function(B0,T,X){return function(F0){return p(B0,T,a(F0[1][1+X],F0))}}(o0,c0,d0);break;case 13:var E0=f(0),L0=f(0),X0=f(0),b0=function(B0,T,X){return function(F0){return p(B0,F0[1+T],X)}}(E0,L0,X0);break;case 14:var xx=f(0),g0=f(0),$0=f(0),n0=f(0),b0=function(B0,T,X,F0){return function(sx){return p(B0,sx[1+T][1+X],F0)}}(xx,g0,$0,n0);break;case 15:var ix=f(0),rx=f(0),dx=f(0),b0=function(B0,T,X){return function(F0){return p(B0,a(F0[1][1+T],F0),X)}}(ix,rx,dx);break;case 16:var ax=f(0),Sx=f(0),b0=function(B0,T){return function(X){return p(X[1][1+B0],X,T)}}(ax,Sx);break;case 17:var D0=f(0),N0=f(0),b0=function(B0,T){return function(X){return p(X[1][1+B0],X,X[1+T])}}(D0,N0);break;case 18:var A0=f(0),Y0=f(0),C0=f(0),b0=function(B0,T,X){return function(F0){return p(F0[1][1+B0],F0,F0[1+T][1+X])}}(A0,Y0,C0);break;case 19:var F=f(0),H=f(0),b0=function(B0,T){return function(X){var F0=a(X[1][1+T],X);return p(X[1][1+B0],X,F0)}}(F,H);break;case 20:var B=f(0),a0=f(0);fy(x);var b0=function(B0,T){return function(X){return a(qx(T,B0,0),T)}}(B,a0);break;case 21:var m0=f(0),P0=f(0);fy(x);var b0=function(B0,T){return function(X){var F0=X[1+T];return a(qx(F0,B0,0),F0)}}(m0,P0);break;case 22:var D=f(0),O0=f(0),K0=f(0);fy(x);var b0=function(B0,T,X){return function(F0){var sx=F0[1+T][1+X];return a(qx(sx,B0,0),sx)}}(D,O0,K0);break;default:var j0=f(0),ox=f(0);fy(x);var b0=function(B0,T){return function(X){var F0=a(X[1][1+T],X);return a(qx(F0,B0,0),F0)}}(j0,ox)}else var b0=o;XY(x,i,b0),e[1]++}},YY=function(x,r){var e=r.length-1,t=WI(0,e),u=e-1|0,i=0;if(u>=0)for(var f=i;;){var o=z1(r,f)[1+f];if(typeof o=="number")switch(o){case 0:var k=function(A){function N(C){var O=t[1+A];if(N===O)throw q0([0,Nl,x],1);return a(O,C)}return N}(f);break;case 1:var l=[];I0(l,[h8,function(A,N){return function(C){var O=t[1+N];if(A===O)throw q0([0,Nl,x],1);var L=Lv(O);if(Ov===L)return O[1];if(h8!==L)return O;var M=O[1];O[1]=yT0;try{var V=a(M,0);return HW(O,V),V}catch(Y){var z=C1(Y);throw O[1]=function(t0){throw q0(z,0)},q0(z,0)}}}(l,f)]);var k=l;break;default:var d=function(A){throw q0([0,Nl,x],1)},k=[0,d,d,d,0]}else var k=o[0]===0?YY(x,o[1]):o[1];t[1+f]=k;var h=f+1|0;if(u!==f){var f=h;continue}break}return t},VY=function(x,r,e){if(Lv(e)===0&&x.length-1<=e.length-1){var t=x.length-1-1|0,u=0;if(t>=0)for(var i=u;;){var f=e[1+i],o=z1(x,i)[1+i];if(typeof o=="number")if(o===2){var l=0;if(Lv(f)===0&&f.length-1===4)for(var d=0,k=r[1+i];;){k[1+d]=f[1+d];var h=d+1|0;if(d!==3){var d=h;continue}break}else l=1;if(l)throw q0([0,wr,KQ],1)}else r[1+i]=f;else o[0]===0&&VY(o[1],r[1+i],f);var g=i+1|0;if(t!==i){var i=g;continue}break}return 0}throw q0([0,wr,BQ],1)};try{VX("TMPDIR")}catch(x){var zY=C1(x);if(zY!==E2)throw q0(zY,0)}try{VX("TEMP")}catch(x){var KY=C1(x);if(KY!==E2)throw q0(KY,0)}P(QX,EJ)&&P(QX,"Win32");var bc=function(x,r){function e(t){return st(x,t)}return b3<=r?(e(ha|r>>>18|0),e(m1|(r>>>12|0)&63),e(m1|(r>>>6|0)&63),e(m1|r&63)):sC<=r?(e(ga|r>>>12|0),e(m1|(r>>>6|0)&63),e(m1|r&63)):m1<=r?(e(ma|r>>>6|0),e(m1|r&63)):e(r)},Ao=[Gr,$Q,Js(0)],BY=0,WY=0,ZY=0,$Y=0,FY=0,QY=0,GY=0,qY=0,HY=0,bY=0,m=function(x){if(x[3]===x[2])return-1;var r=x[1][1+x[3]];return x[3]=x[3]+1|0,r===10&&(x[5]!==0&&(x[5]=x[5]+1|0),x[4]=x[3]),r},e0=function(x,r){return x[9]=x[3],x[10]=x[4],x[11]=x[5],x[12]=r,0},pr=function(x){return x[6]=x[3],x[7]=x[4],x[8]=x[5],e0(x,-1)},w=function(x){return x[3]=x[9],x[4]=x[10],x[5]=x[11],x[12]},$a=function(x){return x[3]=x[6],x[4]=x[7],x[5]=x[8],0},LO=function(x,r){return x[6]=r,0},cy=function(x){return x[3]-x[6]|0},t1=function(x){var r=x[3]-x[6]|0,e=x[6],t=x[1];return 0<=e&&0<=r&&(t.length-1-r|0)>=e?sW(t,e,r):y2(IZ)},xV=function(x){var r=x[6];return z1(x[1],r)[1+r]},Bl=function(x,r,e,t){for(var u=[0,r],i=[0,e],f=[0,0];;){if(0>=i[1])return f[1];var o=x[1+u[1]];if(0>o)throw q0(Ao,1);if(Yr>>18|0),Kr(t,f[1]+1|0,m1|(o>>>12|0)&63),Kr(t,f[1]+2|0,m1|(o>>>6|0)&63),Kr(t,f[1]+3|0,m1|o&63),f[1]=f[1]+4|0}else Kr(t,f[1],ga|o>>>12|0),Kr(t,f[1]+1|0,m1|(o>>>6|0)&63),Kr(t,f[1]+2|0,m1|o&63),f[1]=f[1]+3|0;else Kr(t,f[1],ma|o>>>6|0),Kr(t,f[1]+1|0,m1|o&63),f[1]=f[1]+2|0;else Kr(t,f[1],o),f[1]++;u[1]++,i[1]+=-1}},rV=function(x){for(var r=Xx(x),e=Ja(r,0),t=[0,0],u=[0,0];;){if(t[1]>=r)return[0,e,u[1],bY,HY,qY,GY,QY,FY,$Y,ZY,WY,BY];var i=fx(x,t[1]),f=0;if(ma<=i)if(ha<=i)if(Gr<=i)f=1;else{var o=fx(x,t[1]+1|0),l=fx(x,t[1]+2|0),d=fx(x,t[1]+3|0),k=(o>>>6|0)!==2?1:0;if(k)var g=k;else var h=(l>>>6|0)!==2?1:0,g=h||((d>>>6|0)!==2?1:0);if(g)throw q0(Ao,1);var A=(i&7)<<18|(o&63)<<12|(l&63)<<6|d&63;if(f5>>6|0)!==2?1:0,M=L||((C>>>6|0)!==2?1:0);if(M)var z=M;else var V=55296<=O?1:0,z=V&&(O<=57343?1:0);if(z)throw q0(Ao,1);e[1+u[1]]=O,t[1]=t[1]+3|0}else{var Y=fx(x,t[1]+1|0);if((Y>>>6|0)!==2)throw q0(Ao,1);e[1+u[1]]=(i&31)<<6|Y&63,t[1]=t[1]+2|0}else m1<=i?f=1:(e[1+u[1]]=i,t[1]++);if(f)throw q0(Ao,1);u[1]++}},Wl=function(x,r,e){var t=x[6]+r|0,u=w1(e*4|0),i=x[1];if((t+e|0)<=i.length-1)return Va(u,0,Bl(i,t,e,u));throw q0([0,wr,ZQ],1)},Yx=function(x){var r=x[6],e=x[3]-r|0,t=w1(e*4|0);return Va(t,0,Bl(x[1],r,e,t))},sy=function(x,r){var e=x[6],t=x[3]-e|0,u=w1(t*4|0);return fO(r,u,0,Bl(x[1],e,t,u))},Zl=function(x){var r=x.length-1,e=w1(r*4|0);return Va(e,0,Bl(x,0,r,e))},eV=function(x,r){return x[3]=x[3]-r|0,0},xs=function(x){return typeof x=="number"?0:x[0]===0?1:x[1]},Jv=function(x,r,e,t){var u=xs(x),i=xs(t),f=i<=u?u+1|0:i+1|0;return f===1?[0,r,e]:[1,f,r,e,x,t]},oy=function(x,r,e,t){var u=xs(x),i=xs(t),f=i<=u?u+1|0:i+1|0;return[1,f,r,e,x,t]},tV=function(x,r,e,t){var u=xs(x),i=xs(t);if((i+2|0)=i)return Jv(x,r,e,t);var C=t[5],O=t[4],L=t[3],M=t[2],V=xs(O);if(V<=xs(C))return oy(Jv(x,r,e,O),M,L,C);var z=O[4],Y=O[3],t0=O[2],i0=Jv(O[5],M,L,C);return oy(Jv(x,r,e,z),t0,Y,i0)},VT0=0,Fa=function(x,r){for(var e=x,t=r;;){if(typeof e=="number")return t;if(e[0]===0)return[0,e[1],0,t];var u=[0,e[2],e[4],t],e=e[3],t=u}},nV=function(x,r){if(!x)return 0;var e=x[1],t=Fa(x[2],x[3]);return[0,e,function(u){return nV(t,u)}]},zT0=function(x){var r=Fa(x,0);return function(e){return nV(r,e)}},$s=function(x){return typeof x=="number"?0:x[0]===0?1:x[1]},KT0=function(x){return[0,x]},We=function(x,r,e){var t=0;if(typeof x=="number"){if(typeof e=="number")return[0,r];e[0]===1&&(t=1)}else if(x[0]===0)typeof e!="number"&&e[0]===1&&(t=1);else{var u=x[1];if(typeof e!="number"&&e[0]===1){var i=e[1],f=i<=u?u+1|0:i+1|0;return[1,f,r,x,e]}var o=u;t=2}switch(t){case 1:var o=e[1];break;case 0:return[1,2,r,x,e]}return[1,o+1|0,r,x,e]},Po=function(x,r,e){var t=$s(x),u=$s(e),i=u<=t?t+1|0:u+1|0;return[1,i,r,x,e]},vy=function(x,r){if(r===0)return 0;if(r===1)return[0,a(x,0)];var e=r>>>1|0,t=vy(x,e),u=a(x,0),i=vy(x,(r-e|0)-1|0);return[1,$s(t)+1|0,u,t,i]},BT0=function(x){var r=[0,0],e=x.length-1;return vy(function(t){var u=r[1],i=z1(x,u)[1+u];return r[1]++,i},e)},Yt=function(x,r,e){var t=$s(x),u=$s(e);if((u+2|0)=u)return We(x,r,e);var g=e[4],A=e[3],N=e[2],C=$s(A);if(C<=$s(g))return Po(We(x,r,A),N,g);var O=A[3],L=A[2],M=We(A[4],N,g);return Po(We(x,r,O),L,M)},uV=function(x,r){if(typeof r=="number")return[0,x];if(r[0]===0)return We([0,x],r[1],0);var e=r[4],t=r[2];return Yt(uV(x,r[3]),t,e)},iV=function(x,r){if(typeof r=="number")return[0,x];if(r[0]===0)return We(0,r[1],[0,x]);var e=r[3],t=r[2];return Yt(e,t,iV(x,r[4]))},Y2=function(x,r,e){if(typeof x=="number")return uV(r,e);if(x[0]===0){if(typeof e!="number"){if(e[0]===0)return We(x,r,e);var t=e[4],u=e[3],i=e[2];return 3>1,T=d0(B0,$0),X=T[1],F0=d0(g0-B0|0,T[2]),sx=X,ex=F0[1],U0=0,Nx=F0[2];;){if(sx){if(ex){var mx=ex[2],Bx=ex[1],Gx=sx[2],J0=sx[1],bx=p(o0,J0,Bx);if(bx===0){var sx=Gx,ex=mx,U0=[0,J0,U0];continue}if(0>1,T=c0(B0,$0),X=T[1],F0=c0(g0-B0|0,T[2]),sx=X,ex=F0[1],U0=0,Nx=F0[2];;){if(sx){if(ex){var mx=ex[2],Bx=ex[1],Gx=sx[2],J0=sx[1],bx=p(o0,J0,Bx);if(bx===0){var sx=Gx,ex=mx,U0=[0,J0,U0];continue}if(0<=bx){var ex=mx,U0=[0,Bx,U0];continue}var sx=Gx,U0=[0,J0,U0];continue}var Jx=Hc(sx,U0)}else var Jx=Hc(ex,U0);return[0,Jx,Nx]}},E0=qc(j),L0=2<=E0?c0(E0,j)[1]:j,X0=function(g0,$0){if(3>=g0>>>0)switch(g0){case 0:return[0,0,$0];case 1:if($0)return[0,[0,$0[1]],$0[2]];break;case 2:if($0){var n0=$0[2];if(n0)return[0,[1,2,n0[1],[0,$0[1]],0],n0[2]]}break;default:if($0){var ix=$0[2];if(ix){var rx=ix[2];if(rx)return[0,[1,2,ix[1],[0,$0[1]],[0,rx[1]]],rx[2]]}}}var dx=g0/2|0,ax=X0(dx,$0),Sx=ax[2],D0=ax[1];if(!Sx)throw q0([0,wr,xG],1);var N0=Sx[1],A0=X0((g0-dx|0)-1|0,Sx[2]),Y0=A0[2];return[0,Po(D0,N0,A0[1]),Y0]};return X0(qc(L0),L0)[1]}var xx=s0[1];return r(xx,r(v0,r(f0,r(x0,[0,J]))))}function i0(j,K,J){a(Jr(K),GQ);var Q=oV(J);Q&&a(Jr(K),qQ);var x0=0;return H1(function($,f0){return $&&a(Jr(K),QQ),p(j,K,f0),1},x0,Q),Q&&a(Jr(K),HQ),a(Jr(K),bQ)}return[0,n1,UO,t,r,KT0,u,i,f,l,d,k,h,g,A,Y,N,C,O,L,M,DO,oV,$l,fV,cV,WT0,$l,fV,V,z,zT0,t0,i0,vy,BT0,function(j,K){for(var J=K;;){if(typeof J=="number")return 0;if(J[0]===0){var Q=J[1];return a(j,Q)?[0,Q]:0}var x0=J[2],$=J[4],f0=J[3];if(!a(j,x0)){var J=$;continue}for(var s0=x0,v0=f0;;){if(typeof v0=="number")return[0,s0];if(v0[0]===0){var o0=v0[1];return a(j,o0)?[0,o0]:[0,s0]}var c0=v0[2],d0=v0[4],E0=v0[3];if(a(j,c0)){var s0=c0,v0=E0;continue}var v0=d0}}}]},aV=function(x){switch(x[0]){case 0:return 1;case 1:return 2;case 2:return 2;default:return 3}},Kx=function(x,r){if(!r)return r;var e=r[1],t=a(x,e);return e===t?r:[0,t]},cx=function(x,r,e,t,u){var i=p(x,r,e);return e===i?t:a(u,i)},G0=function(x,r,e,t){var u=a(x,r);return r===u?e:a(t,u)},x2=function(x,r){var e=r[1],t=r[2];return cx(x,e,t,r,function(u){return[0,e,u]})},lV=function(x,r){return Kx(function(e){var t=e[1],u=e[2];return cx(x,t,u,e,function(i){return[0,t,i]})},r)},Er=function(x,r){var e=H1(function(u,i){var f=u[2],o=u[1],l=a(x,i),d=f||(l!==i?1:0);return[0,[0,l,o],d]},IG,r),t=e[1];return e[2]?Ax(t):r},jO=uy(RG,function(x){var r=AO(x,OG),e=r[1],t=r[2],u=r[3],i=r[4],f=r[5],o=r[6],l=r[7],d=r[8],k=r[9],h=r[10],g=r[11],A=r[12],N=r[13],C=r[14],O=r[15],L=r[16],M=r[17],V=r[18],z=r[19],Y=r[20],t0=r[21],i0=r[22],j=r[23],K=r[24],J=r[25],Q=r[26],x0=r[27],$=r[28],f0=r[29],s0=r[30],v0=r[31],o0=r[32],c0=r[33],d0=r[34],E0=r[35],L0=r[36],X0=r[37],xx=r[38],g0=r[39],$0=r[40],n0=r[41],ix=r[42],rx=r[43],dx=r[44],ax=r[45],Sx=r[46],D0=r[47],N0=r[48],A0=r[49],Y0=r[50],C0=r[51],F=r[52],H=r[53],B=r[54],a0=r[55],m0=r[56],P0=r[58],D=r[59],O0=r[60],K0=r[61],j0=r[62],ox=r[63],b0=r[64],_x=r[65],B0=r[66],T=r[67],X=r[68],F0=r[69],sx=r[70],ex=r[71],U0=r[72],Nx=r[73],mx=r[74],Bx=r[75],Gx=r[76],J0=r[77],bx=r[78],Jx=r[79],W0=r[80],nr=r[81],V0=r[82],Sr=r[83],Ur=r[84],lx=r[85],br=r[86],e2=r[87],h1=r[88],Ir=r[89],R1=r[90],_=r[91],b=r[92],r0=r[93],S0=r[94],G=r[95],h0=r[96],z0=r[97],M0=r[98],ux=r[99],Zx=r[it],Lx=r[It],tr=r[Jf],$x=r[fn],xr=r[Dt],zx=r[De],Or=r[l2],Wx=r[G2],B2=r[vn],lt=r[Is],me=r[V1],Pn=r[Ot],to=r[L2],Nn=r[Rr],cs=r[ut],ke=r[Os],Cn=r[Ns],te=r[po],Ft=r[pa],yr=r[xl],Qt=r[Af],In=r[H3],qv=r[Hr],he=r[Rt],pt=r[Oa],Ko=r[Ci],no=r[L4],v2=r[Yr],uo=r[m1],On=r[dl],dt=r[vJ],Bo=r[vh],io=r[kJ],Hv=r[QM],Wo=r[Aj],fo=r[uX],yt=r[jU],ss=r[y_],Zo=r[bD],co=r[hU],a3=r[sJ],$o=r[WU],Rn=r[iU],bv=r[Oj],so=r[_J],Fo=r[ZD],xa=r[146],os=r[147],Qo=r[XD],Go=r[hj],ra=r[150],l3=r[151],Lm=r[152],p3=r[153],I6=r[154],O6=r[155],d3=r[156],Mm=r[157],Dm=r[158],ea=r[159],y3=r[US],Um=r[qU],jm=r[VU],Jm=r[RJ],L1=r[IT],mt=r[AJ],m3=r[LU],q=r[MP],I=r[CT],U=r[r5],T0=r[B9],R0=r[Nk],tx=r[DU],Ex=r[Nj],Ux=r[xX],jx=r[dk],Hx=r[vU],mr=r[wD],or=r[rJ],hr=r[JM],cr=r[KU],sr=r[SI],Nr=r[Fk],Fr=r[rd],Br=r[IN],Wr=r[Yw],Mr=r[Qh],Qr=r[bE],x1=r[lj],a1=r[CS],l1=r[hD],i1=r[ej],_1=r[ma],Cr=r[YD],M1=r[dh],t2=r[jD],g1=r[Pj],W2=r[aD],ne=r[FJ],gx=r[ag],Xr=r[vX],r1=r[zM],lr=r[eJ],zr=r[BJ],B1=r[$D],_e=r[jJ],Z2=r[BT],we=r[nX],Gt=r[oJ],C2=r[AD],n2=r[GJ],I2=r[BD],a2=r[iE],kt=r[UM],O2=r[Qj],ht=r[gT],$e=r[ZN],Te=r[Cj],Se=r[JJ],Ee=r[bj],ge=r[Sj],Ae=r[$U],W1=r[$M],Pe=r[bp],_t=r[ga],Fe=r[wj],ue=r[UU],R2=r[qJ],qt=r[Tj],vs=r[yJ],wt=r[IU],Tt=r[tj],Ht=r[iX],ie=r[wU],St=r[sX],bt=r[CJ],fe=r[VJ],xn=r[ZA],Ln=r[pT],rn=r[QS],Mn=r[ha],en=r[MM],Dn=r[aJ],qo=r[Jj],tn=r[Z5],Et=r[dS],as=r[h8],ls=r[X8],ps=r[Gr],Ho=r[B4],k3=r[Ov],oo=r[pj],bo=r[Ea],ta=r[Q8],h3=r[Ca],_3=r[z3],na=r[hv],ua=r[FD],Un=r[258],w3=r[zD],T3=r[260],S3=r[261],Ne=r[262],E3=r[263],g3=r[jj],ia=r[Xj],ds=r[266],vo=r[267],xv=r[268],rv=r[cD],A3=r[270],fa=r[rr],ys=r[272],ao=r[273],ev=r[274],gt=r[SD],Qe=r[276],ms=r[277],At=r[fJ],nn=r[279],un=r[WJ],tv=r[xk],P3=r[282],N3=r[aj],nv=r[284],C3=r[PU],ca=r[dj],Xm=r[57];function jn(n,s,c){var v=c[2],y=c[1],S=c[4],E=c[3],R=Kx(a(n[1][1+gx],n),y),Z=p(n[1][1+n0],n,v);return v===Z&&y===R?c:[0,R,Z,E,S]}function Ym(n,s,c){var v=c[4],y=c[3],S=c[2],E=c[1],R=p(n[1][1+Qe],n,E),Z=Kx(a(n[1][1+M],n),S),y0=p(n[1][1+$],n,y),_0=p(n[1][1+n0],n,v);return E===R&&y===y0&&S===Z&&v===_0?c:[0,R,Z,y0,_0]}function Vm(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+gx],n,S),R=p(n[1][1+A0],n,y),Z=p(n[1][1+n0],n,v);return S===E&&y===R&&v===Z?c:[0,E,R,Z]}function CL(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+D],n,S),R=p(n[1][1+A0],n,y),Z=p(n[1][1+n0],n,v);return S===E&&y===R&&v===Z?c:[0,E,R,Z]}function IL(n,s,c){var v=c[2],y=v[2],S=v[1],E=c[1],R=H0(n[1][1+o],n,s,S),Z=Kx(a(n[1][1+gx],n),y);return S===R&&y===Z?c:[0,E,[0,R,Z]]}function OL(n,s,c){var v=c[3],y=c[2],S=c[1],E=Er(p(n[1][1+l],n,y),S),R=p(n[1][1+n0],n,v);return S===E&&v===R?c:[0,E,y,R]}function RL(n,s,c){var v=c[4],y=c[2],S=p(n[1][1+gx],n,y),E=p(n[1][1+n0],n,v);return y===S&&v===E?c:[0,c[1],S,c[3],E]}function LL(n,s,c){var v=c[3],y=c[2],S=p(n[1][1+gx],n,y),E=p(n[1][1+n0],n,v);return y===S&&v===E?c:[0,c[1],S,E]}function ML(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+gx],n,S);if(typeof y=="number")var Ix=y;else if(y[0]===0)var R=y[1],Z=p(n[1][1+$],n,R),y0=R===Z?y:[0,Z],Ix=y0;else var _0=y[1],Q0=p(n[1][1+$],n,_0),vx=_0===Q0?y:[1,Q0],Ix=vx;var yx=p(n[1][1+n0],n,v);return E===S&&yx===v?c:[0,E,Ix,yx]}function DL(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+gx],n,S),R=p(n[1][1+Q],n,y),Z=p(n[1][1+n0],n,v);return E===S&&R===y&&Z===v?c:[0,E,R,Z]}function UL(n,s,c){var v=c[4],y=c[3],S=c[2],E=c[1],R=x2(a(n[1][1+gt],n),E);if(S)var Z=S[1],y0=Z[1],_0=Z[2],Q0=function(d1){return[0,[0,y0,d1]]},vx=cx(a(n[1][1+vo],n),y0,_0,S,Q0);else var vx=S;if(y)var Ix=y[1],yx=Ix[1],_r=Ix[2],f1=function(d1){return[0,[0,yx,d1]]},c1=cx(a(n[1][1+gt],n),yx,_r,y,f1);else var c1=y;var p1=p(n[1][1+n0],n,v);return E===R&&S===vx&&y===c1&&v===p1?c:[0,R,vx,c1,p1]}function jL(n,s,c){var v=c[2],y=c[1],S=p(n[1][1+gx],n,y),E=p(n[1][1+n0],n,v);return y===S&&v===E?c:[0,S,E]}function JL(n,s,c){var v=c[1],y=p(n[1][1+n0],n,v);return v===y?c:[0,y]}function XL(n,s){return s}function YL(n,s,c){var v=c[3],y=c[2],S=c[1],E=Er(a(n[1][1+xx],n),S),R=Er(a(n[1][1+gx],n),y),Z=p(n[1][1+n0],n,v);return S===E&&y===R&&v===Z?c:[0,E,R,Z]}function VL(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+gx],n,S),R=x2(a(n[1][1+g0],n),y),Z=p(n[1][1+n0],n,v);return S===E&&y===R&&v===Z?c:[0,E,R,Z]}function zL(n,s){var c=s[2],v=c[3],y=c[2],S=c[1],E=s[1],R=Kx(a(n[1][1+gx],n),S),Z=p(n[1][1+D0],n,y),y0=p(n[1][1+n0],n,v);return S===R&&y===Z&&v===y0?s:[0,E,[0,R,Z,y0]]}function KL(n,s,c){var v=c[3],y=c[2],S=c[1],E=c[4],R=p(n[1][1+gx],n,S),Z=Er(a(n[1][1+rx],n),y),y0=p(n[1][1+n0],n,v);return S===R&&y===Z&&v===y0?c:[0,R,Z,y0,E]}function I3(n,s,c){var v=c[1],y=p(n[1][1+n0],n,v);return v===y?c:[0,y]}function zm(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+gx],n,y),R=p(n[1][1+n0],n,v);return y===E&&v===R?s:[0,S,[0,E,R]]}function BL(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+gx],n,y),R=p(n[1][1+n0],n,v);return y===E&&v===R?s:[0,S,[0,E,R]]}function WL(n,s){return[0,p(n[1][1+A0],n,s),0]}function ZL(n,s){var c=a(n[1][1+N0],n),v=H1(function(S,E){var R=S[2],Z=S[1],y0=a(c,E);if(!y0)return[0,Z,1];if(y0[2])return[0,Hc(y0,Z),1];var _0=y0[1],Q0=R||(E!==_0?1:0);return[0,[0,_0,Z],Q0]},CG,s),y=v[1];return v[2]?Ax(y):s}function Km(n,s){return p(n[1][1+D0],n,s)}function Bm(n,s,c){var v=c[2],y=c[1],S=Er(a(n[1][1+gx],n),y),E=p(n[1][1+n0],n,v);return y===S&&v===E?c:[0,S,E]}function $L(n,s,c){var v=c[2],y=c[1],S=c[3],E=Kx(a(n[1][1+gx],n),y),R=p(n[1][1+n0],n,v);return y===E&&v===R?c:[0,E,R,S]}function sa(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+mr],n,y),R=p(n[1][1+n0],n,v);return y===E&&v===R?s:[0,S,[0,E,R]]}function Wm(n,s){var c=s[2],v=c[3],y=c[2],S=y[2],E=y[1],R=c[1],Z=s[1],y0=p(n[1][1+L1],n,E),_0=Kx(a(n[1][1+$],n),S),Q0=p(n[1][1+n0],n,v);return y0===E&&_0===S&&Q0===v?s:[0,Z,[0,R,[0,y0,_0],Q0]]}function Zm(n,s){var c=s[2],v=s[1],y=p(n[1][1+i0],n,c);return Ud(y,c)?s:[0,v,y]}function FL(n,s){return p(n[1][1+gx],n,s)}function QL(n,s){var c=s[2],v=c[2],y=c[1],S=s[1];if(y)var E=y[1],R=function(_0){return[0,_0]},Z=G0(a(n[1][1+gx],n),E,y,R);else var Z=y;var y0=p(n[1][1+n0],n,v);return y===Z&&v===y0?s:[0,S,[0,Z,y0]]}function GL(n,s){return p(n[1][1+gx],n,s)}function R6(n,s,c){return H0(n[1][1+V0],n,s,c)}function qL(n,s,c){var v=c[2],y=v[2],S=v[1],E=c[1],R=H0(n[1][1+J0],n,s,S),Z=p(n[1][1+n0],n,y);return R===S&&y===Z?c:[0,E,[0,R,Z]]}function $m(n,s,c){return H0(n[1][1+V0],n,s,c)}function HL(n,s,c){var v=c[2],y=v[2],S=v[1],E=c[1],R=H0(n[1][1+Jx],n,s,S),Z=p(n[1][1+W1],n,y);return S===R&&y===Z?c:[0,E,[0,R,Z]]}function Fm(n,s,c){switch(c[0]){case 0:var v=c[1],y=function(R){return[0,R]};return G0(p(n[1][1+W0],n,s),v,c,y);case 1:var S=c[1],E=function(R){return[1,R]};return G0(p(n[1][1+bx],n,s),S,c,E);default:return c}}function L6(n,s,c){return H0(n[1][1+V0],n,s,c)}function Qm(n,s,c){return H0(n[1][1+V0],n,s,c)}function bL(n,s,c){var v=c[2],y=v[2],S=v[1],E=c[1],R=H0(n[1][1+j0],n,s,S),Z=p(n[1][1+n0],n,y);return R===S&&y===Z?c:[0,E,[0,R,Z]]}function Gm(n,s,c){return p(n[1][1+Ln],n,c)}function M6(n,s,c){return H0(n[1][1+mx],n,s,c)}function xM(n,s,c){var v=c[1],y=c[2];function S(E){return[0,v,E]}return cx(p(n[1][1+Gx],n,s),v,y,c,S)}function D6(n,s,c){var v=c[1],y=c[2];function S(E){return[0,v,E]}return cx(p(n[1][1+Nx],n,s),v,y,c,S)}function rM(n,s,c){var v=c[1],y=c[2];function S(E){return[0,v,E]}return cx(p(n[1][1+K0],n,s),v,y,c,S)}function eM(n,s,c){switch(c[0]){case 0:var v=c[1],y=function(Ix){return[0,Ix]};return G0(p(n[1][1+b0],n,s),v,c,y);case 1:var S=c[1],E=function(Ix){return[1,Ix]};return G0(p(n[1][1+B0],n,s),S,c,E);case 2:var R=c[1],Z=function(Ix){return[2,Ix]};return G0(p(n[1][1+sx],n,s),R,c,Z);case 3:var y0=c[1],_0=function(Ix){return[3,Ix]};return G0(p(n[1][1+X],n,s),y0,c,_0);default:var Q0=c[1],vx=function(Ix){return[4,Ix]};return G0(p(n[1][1+F0],n,s),Q0,c,vx)}}function tM(n,s,c){var v=c[2],y=v[4],S=v[3],E=v[2],R=v[1],Z=c[1],y0=H0(n[1][1+T],n,s,R),_0=H0(n[1][1+_x],n,s,E),Q0=p(n[1][1+W1],n,S);if(y){var vx=0;if(y0[0]===3){var Ix=_0[2];if(Ix[0]===2)var _r=Ar(y0[1][2][1],Ix[1][1][2][1]);else vx=1}else vx=1;if(vx)var yx=R===y0?1:0,_r=yx&&(E===_0?1:0)}else var _r=y;return y0===R&&_0===E&&Q0===S&&y===_r?c:[0,Z,[0,y0,_0,Q0,_r]]}function qm(n,s,c){if(c[0]===0){var v=c[1],y=function(R){return[0,R]};return G0(p(n[1][1+ex],n,s),v,c,y)}var S=c[1];function E(R){return[1,R]}return G0(p(n[1][1+ox],n,s),S,c,E)}function nM(n,s,c,v){return H0(n[1][1+nn],n,c,v)}function U6(n,s,c,v){return H0(n[1][1+Or],n,c,v)}function uM(n,s,c,v){return H0(n[1][1+Sx],n,c,v)}function iM(n,s,c){return p(n[1][1+L1],n,c)}function fM(n,s,c){var v=c[2],y=c[1];switch(v[0]){case 0:var S=v[1],E=S[3],R=S[2],Z=S[1],y0=Er(p(n[1][1+U0],n,s),Z),_0=p(n[1][1+J],n,R),Q0=p(n[1][1+n0],n,E),vx=0;if(y0===Z&&_0===R&&Q0===E){var Ix=v;vx=1}if(!vx)var Ix=[0,[0,y0,_0,Q0]];var tt=Ix;break;case 1:var yx=v[1],_r=yx[3],f1=yx[2],c1=yx[1],p1=Er(p(n[1][1+nr],n,s),c1),d1=p(n[1][1+J],n,f1),Ge=p(n[1][1+n0],n,_r),qe=0;if(_r===Ge&&p1===c1&&d1===f1){var He=v;qe=1}if(!qe)var He=[1,[0,p1,d1,Ge]];var tt=He;break;case 2:var Ce=v[1],be=Ce[2],xt=Ce[1],Pt=Ce[3],rt=H0(n[1][1+mx],n,s,xt),et=p(n[1][1+J],n,be),Jn=0;if(xt===rt&&be===et){var Xn=v;Jn=1}if(!Jn)var Xn=[2,[0,rt,et,Pt]];var tt=Xn;break;default:var ks=v[1],hs=function(_s){return[3,_s]},tt=G0(a(n[1][1+Bx],n),ks,v,hs)}return v===tt?c:[0,y,tt]}function Hm(n,s){return H0(n[1][1+V0],n,0,s)}function cM(n,s,c){var v=s?s[1]:0;return H0(n[1][1+V0],n,[0,v],c)}function O3(n,s){return p(n[1][1+un],n,s)}function sM(n,s){return p(n[1][1+un],n,s)}function oM(n,s){return H0(n[1][1+ms],n,NG,s)}function vM(n,s,c){return H0(n[1][1+ms],n,[0,s],c)}function aM(n,s){return H0(n[1][1+ms],n,PG,s)}function lM(n,s,c){var v=c[5],y=c[4],S=c[3],E=c[2],R=c[1],Z=p(n[1][1+Qe],n,R),y0=Kx(a(n[1][1+M],n),E),_0=Kx(a(n[1][1+$],n),S),Q0=Kx(a(n[1][1+$],n),y),vx=p(n[1][1+n0],n,v);return R===Z&&S===_0&&E===y0&&S===_0&&y===Q0&&v===vx?c:[0,Z,y0,_0,Q0,vx]}function j6(n,s){return p(n[1][1+Ln],n,s)}function pM(n,s){return p(n[1][1+L1],n,s)}function dM(n,s){var c=s[1],v=s[2];function y(S){return[0,c,S]}return cx(a(n[1][1+nn],n),c,v,s,y)}function yM(n,s){var c=s[1],v=s[2];function y(S){return[0,c,S]}return cx(a(n[1][1+Or],n),c,v,s,y)}function J6(n,s){var c=s[1],v=s[2];function y(S){return[0,c,S]}return cx(a(n[1][1+Sx],n),c,v,s,y)}function mM(n,s){switch(s[0]){case 0:var c=s[1],v=function(yx){return[0,yx]};return G0(a(n[1][1+h0],n),c,s,v);case 1:var y=s[1],S=function(yx){return[1,yx]};return G0(a(n[1][1+z0],n),y,s,S);case 2:var E=s[1],R=function(yx){return[2,yx]};return G0(a(n[1][1+Zx],n),E,s,R);case 3:var Z=s[1],y0=function(yx){return[3,yx]};return G0(a(n[1][1+M0],n),Z,s,y0);case 4:var _0=s[1],Q0=function(yx){return[4,yx]};return G0(a(n[1][1+P0],n),_0,s,Q0);default:var vx=s[1],Ix=function(yx){return[5,yx]};return G0(a(n[1][1+ux],n),vx,s,Ix)}}function kM(n,s){var c=s[2],v=s[1];switch(c[0]){case 0:var y=c[3],S=c[2],E=c[1],R=p(n[1][1+Lx],n,E),Z=p(n[1][1+gx],n,S);if(y){var y0=0;if(R[0]===3){var _0=Z[2];if(_0[0]===8)var vx=Ar(R[1][2][1],_0[1][2][1]);else y0=1}else y0=1;if(y0)var Q0=E===R?1:0,vx=Q0&&(S===Z?1:0)}else var vx=y;return E===R&&S===Z&&y===vx?s:[0,v,[0,R,Z,vx]];case 1:var Ix=c[2],yx=c[1],_r=p(n[1][1+Lx],n,yx),f1=x2(a(n[1][1+cr],n),Ix);return yx===_r&&Ix===f1?s:[0,v,[1,_r,f1]];case 2:var c1=c[3],p1=c[2],d1=c[1],Ge=p(n[1][1+Lx],n,d1),qe=x2(a(n[1][1+cr],n),p1),He=p(n[1][1+n0],n,c1);return d1===Ge&&p1===qe&&c1===He?s:[0,v,[2,Ge,qe,He]];default:var Ce=c[3],be=c[2],xt=c[1],Pt=p(n[1][1+Lx],n,xt),rt=x2(a(n[1][1+cr],n),be),et=p(n[1][1+n0],n,Ce);return xt===Pt&&be===rt&&Ce===et?s:[0,v,[3,Pt,rt,et]]}}function hM(n,s,c){var v=c[2],y=c[1],S=Er(function(R){if(R[0]===0){var Z=R[1],y0=p(n[1][1+S0],n,Z);return Z===y0?R:[0,y0]}var _0=R[1],Q0=p(n[1][1+Y0],n,_0);return _0===Q0?R:[1,Q0]},y),E=p(n[1][1+n0],n,v);return y===S&&v===E?c:[0,S,E]}function X6(n,s,c){var v=c[4],y=c[3],S=c[2],E=c[1],R=p(n[1][1+gx],n,E),Z=Kx(a(n[1][1+rv],n),S),y0=Kx(a(n[1][1+ca],n),y),_0=p(n[1][1+n0],n,v);return E===R&&S===Z&&y===y0&&v===_0?c:[0,R,Z,y0,_0]}function Y6(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+L1],n,S),R=p(n[1][1+L1],n,y),Z=p(n[1][1+n0],n,v);return S===E&&y===R&&v===Z?c:[0,E,R,Z]}function R3(n,s){return p(n[1][1+gx],n,s)}function L3(n,s){return p(n[1][1+P0],n,s)}function bm(n,s){return p(n[1][1+L1],n,s)}function _M(n,s){switch(s[0]){case 0:var c=s[1],v=function(Z){return[0,Z]};return G0(a(n[1][1+Nn],n),c,s,v);case 1:var y=s[1],S=function(Z){return[1,Z]};return G0(a(n[1][1+Cn],n),y,s,S);default:var E=s[1],R=function(Z){return[2,Z]};return G0(a(n[1][1+cs],n),E,s,R)}}function wM(n,s,c){var v=c[1],y=H0(n[1][1+te],n,s,v);return v===y?c:[0,y,c[2],c[3]]}function x9(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+gx],n,S),R=p(n[1][1+ke],n,y),Z=p(n[1][1+n0],n,v);return S===E&&y===R&&v===Z?c:[0,E,R,Z]}function TM(n,s,c){var v=c[4],y=c[3],S=c[2],E=p(n[1][1+gx],n,S),R=p(n[1][1+gx],n,y),Z=p(n[1][1+n0],n,v);return S===E&&y===R&&v===Z?c:[0,c[1],E,R,Z]}function V6(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+Qt],n,S),R=p(n[1][1+A0],n,y),Z=p(n[1][1+n0],n,v);return S===E&&y===R&&v===Z?c:[0,E,R,Z]}function r9(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+n0],n,v);return v===E?s:[0,S,[0,y,E]]}function e9(n,s){return p(n[1][1+fo],n,s)}function SM(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return G0(a(n[1][1+uo],n),c,s,v)}var y=s[1];function S(E){return[1,E]}return G0(a(n[1][1+On],n),y,s,S)}function LE0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+v2],n,y),R=p(n[1][1+dt],n,v);return y===E&&v===R?s:[0,S,[0,E,R]]}function ME0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+dt],n,y),R=p(n[1][1+dt],n,v);return y===E&&v===R?s:[0,S,[0,E,R]]}function DE0(n,s){return p(n[1][1+On],n,s)}function UE0(n,s){return p(n[1][1+no],n,s)}function jE0(n,s){return p(n[1][1+dt],n,s)}function JE0(n,s){switch(s[0]){case 0:var c=s[1],v=function(Z){return[0,Z]};return G0(a(n[1][1+fo],n),c,s,v);case 1:var y=s[1],S=function(Z){return[1,Z]};return G0(a(n[1][1+Hv],n),y,s,S);default:var E=s[1],R=function(Z){return[2,Z]};return G0(a(n[1][1+Wo],n),E,s,R)}}function XE0(n,s){var c=s[2],v=s[1],y=p(n[1][1+gx],n,v),S=p(n[1][1+n0],n,c);return v===y&&c===S?s:[0,y,S]}function YE0(n,s,c){var v=c[2],y=c[1],S=p(n[1][1+n0],n,v);if(!y)return v===S?c:[0,0,S];var E=y[1],R=p(n[1][1+gx],n,E);return E===R&&v===S?c:[0,[0,R],S]}function VE0(n,s){var c=s[2],v=s[1];switch(c[0]){case 0:var y=c[1],S=function(vx){return[0,v,[0,vx]]};return cx(a(n[1][1+ss],n),v,y,s,S);case 1:var E=c[1],R=function(vx){return[0,v,[1,vx]]};return cx(a(n[1][1+Bo],n),v,E,s,R);case 2:var Z=c[1],y0=function(vx){return[0,v,[2,vx]]};return cx(a(n[1][1+io],n),v,Z,s,y0);case 3:var _0=c[1],Q0=function(vx){return[0,v,[3,vx]]};return G0(a(n[1][1+qv],n),_0,s,Q0);default:return s}}function zE0(n,s){var c=s[2],v=s[1],y=Er(a(n[1][1+a3],n),c);return c===y?s:[0,v,y]}function KE0(n,s,c){return H0(n[1][1+Sx],n,s,c)}function BE0(n,s,c){return H0(n[1][1+io],n,s,c)}function WE0(n,s){if(s[0]===0){var c=s[1],v=c[1],y=c[2],S=function(_0){return[0,[0,v,_0]]};return cx(a(n[1][1+$o],n),v,y,s,S)}var E=s[1],R=E[1],Z=E[2];function y0(_0){return[1,[0,R,_0]]}return cx(a(n[1][1+Rn],n),R,Z,s,y0)}function ZE0(n,s){return p(n[1][1+no],n,s)}function $E0(n,s){return p(n[1][1+dt],n,s)}function FE0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return G0(a(n[1][1+Fo],n),c,s,v)}var y=s[1];function S(E){return[1,E]}return G0(a(n[1][1+so],n),y,s,S)}function QE0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+xa],n,y),R=Kx(a(n[1][1+bv],n),v);return y===E&&v===R?s:[0,S,[0,E,R]]}function GE0(n,s,c){var v=c[2],y=c[1],S=p(n[1][1+gx],n,y),E=p(n[1][1+n0],n,v);return y===S&&v===E?c:[0,S,E]}function qE0(n,s){if(s[0]===0){var c=s[1],v=function(Z){return[0,Z]};return G0(a(n[1][1+os],n),c,s,v)}var y=s[1],S=y[1],E=y[2];function R(Z){return[1,[0,S,Z]]}return cx(a(n[1][1+he],n),S,E,s,R)}function HE0(n,s){var c=s[2][1],v=s[1],y=p(n[1][1+yt],n,c);return c===y?s:[0,v,[0,y]]}function bE0(n,s){var c=s[2],v=c[4],y=c[2],S=c[1],E=c[3],R=s[1],Z=p(n[1][1+yt],n,S),y0=Kx(a(n[1][1+rv],n),y),_0=Er(a(n[1][1+Ko],n),v);return S===Z&&y===y0&&v===_0?s:[0,R,[0,Z,y0,E,_0]]}function xg0(n,s,c){var v=c[4],y=c[3],S=p(n[1][1+co],n,y),E=p(n[1][1+n0],n,v);return y===S&&v===E?c:[0,c[1],c[2],S,E]}function rg0(n,s,c){var v=c[4],y=c[3],S=c[2],E=c[1],R=p(n[1][1+pt],n,E),Z=Kx(a(n[1][1+Zo],n),S),y0=p(n[1][1+co],n,y),_0=p(n[1][1+n0],n,v);return E===R&&S===Z&&y===y0&&v===_0?c:[0,R,Z,y0,_0]}function eg0(n,s,c,v){var y=2<=s?p(n[1][1+mx],n,AG):a(n[1][1+Qe],n);return a(y,v)}function tg0(n,s,c){var v=2<=s?p(n[1][1+mx],n,gG):a(n[1][1+Qe],n);return a(v,c)}function ng0(n,s,c){var v=c[3],y=c[2],S=c[1],E=0,R=c[4];if(s){var Z=0;if(S)switch(S[1]){case 0:E=1;break;case 1:Z=2;break;default:Z=1}else Z=1;var y0=0;switch(Z){case 0:break;case 1:if(2<=s)var _0=0,Q0=0;else y0=1;break;default:y0=1}if(y0)var _0=1,Q0=0}else E=1;if(E)var _0=1,Q0=1;var vx=y?p(n[1][1+B],n,v):Q0?p(n[1][1+Qe],n,v):H0(n[1][1+mx],n,SG,v);if(y)var Ix=y[1],yx=_0?a(n[1][1+Qe],n):p(n[1][1+mx],n,EG),_r=G0(yx,Ix,y,function(f1){return[0,f1]});else var _r=0;return y===_r&&v===vx?c:[0,S,_r,vx,R]}function ug0(n,s){return p(n[1][1+L1],n,s)}function ig0(n,s,c){if(c[0]===0){var v=c[1],y=Er(p(n[1][1+Mm],n,s),v);return v===y?c:[0,y]}var S=c[1],E=S[1],R=S[2];function Z(y0){return[1,[0,E,y0]]}return cx(p(n[1][1+d3],n,s),E,R,c,Z)}function fg0(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+n0],n,v);return v===E?c:[0,S,y,E]}function cg0(n,s,c){var v=c[5],y=c[4],S=c[3],E=c[2],R=c[1],Z=x2(a(n[1][1+O6],n),E),y0=Kx(p(n[1][1+I6],n,R),y),_0=Kx(function(vx){var Ix=vx[1],yx=vx[2],_r=H0(n[1][1+Dm],n,R,Ix);return _r===Ix?vx:[0,_r,yx]},S),Q0=p(n[1][1+n0],n,v);return E===Z&&y===y0&&S===_0&&v===Q0?c:[0,R,Z,_0,y0,Q0]}function sg0(n,s,c){var v=c[4],y=c[3],S=c[2],E=c[1],R=p(n[1][1+D],n,E),Z=H0(n[1][1+jm],n,y!==0?1:0,S),y0=a(n[1][1+Jm],n),_0=Kx(function(vx){return x2(y0,vx)},y),Q0=p(n[1][1+n0],n,v);return E===R&&S===Z&&y===_0&&v===Q0?c:[0,R,Z,_0,Q0]}function og0(n,s,c){var v=c[2],y=c[1],S=p(n[1][1+A0],n,y),E=p(n[1][1+n0],n,v);return y===S&&v===E?c:[0,S,E]}function vg0(n,s,c){return p(n[1][1+A0],n,c)}function ag0(n,s,c){var v=c[2],y=c[1],S=p(n[1][1+gx],n,y),E=p(n[1][1+n0],n,v);return y===S&&v===E?c:[0,S,E]}function lg0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+gx],n,y),R=p(n[1][1+n0],n,v);return y===E&&v===R?s:[0,S,[0,E,R]]}function pg0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+n0],n,v);return v===E?s:[0,S,[0,y,E]]}function dg0(n,s,c){return H0(n[1][1+l3],n,s,c)}function yg0(n,s,c){var v=c[5],y=c[4],S=c[3],E=c[2],R=c[1],Z=p(n[1][1+Qe],n,R),y0=Kx(a(n[1][1+M],n),E),_0=a(n[1][1+mt],n),Q0=Er(function(yx){return x2(_0,yx)},S),vx=x2(a(n[1][1+R1],n),y),Ix=p(n[1][1+n0],n,v);return Z===R&&y0===E&&Q0===S&&vx===y&&Ix===v?c:[0,Z,y0,Q0,vx,Ix]}function mg0(n,s){return p(n[1][1+Y],n,s)}function kg0(n,s){return p(n[1][1+Y],n,s)}function hg0(n,s){return p(n[1][1+L1],n,s)}function _g0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+n0],n,v);return v===E?s:[0,S,[0,y,E]]}function wg0(n,s){return H0(n[1][1+mx],n,TG,s)}function Tg0(n,s){return p(n[1][1+gx],n,s)}function Sg0(n,s){var c=s[1],v=s[2];function y(S){return[0,c,S]}return cx(a(n[1][1+gt],n),c,v,s,y)}function Eg0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return G0(a(n[1][1+Br],n),c,s,v)}var y=s[1];function S(E){return[1,E]}return G0(a(n[1][1+ev],n),y,s,S)}function gg0(n,s){switch(s[0]){case 0:return s;case 1:var c=s[1],v=function(E){return[1,E]};return G0(a(n[1][1+Q],n),c,s,v);default:var y=s[1],S=function(E){return[2,E]};return G0(a(n[1][1+t0],n),y,s,S)}}function Ag0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+mr],n,y),R=p(n[1][1+W1],n,v);return y===E&&v===R?s:[0,S,[0,E,R]]}function Pg0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+Q],n,y),R=p(n[1][1+n0],n,v);return E===y&&R===v?s:[0,S,[0,E,R]]}function Ng0(n,s){var c=s[2],v=c[4],y=c[3],S=c[2],E=c[1],R=s[1],Z=Er(a(n[1][1+or],n),S),y0=Kx(a(n[1][1+Ux],n),y),_0=Kx(a(n[1][1+R0],n),E),Q0=p(n[1][1+n0],n,v);return S===Z&&y===y0&&v===Q0&&E===_0?s:[0,R,[0,_0,Z,y0,Q0]]}function Cg0(n,s,c){var v=c[9],y=c[8],S=c[7],E=c[6],R=c[3],Z=c[2],y0=c[1],_0=c[10],Q0=c[5],vx=c[4],Ix=Kx(a(n[1][1+hr],n),y0),yx=Kx(a(n[1][1+M],n),y),_r=p(n[1][1+jx],n,Z),f1=p(n[1][1+tx],n,S),c1=p(n[1][1+Fr],n,R),p1=Kx(a(n[1][1+O0],n),E),d1=p(n[1][1+n0],n,v);return y0===Ix&&Z===_r&&R===c1&&E===p1&&S===f1&&y===yx&&v===d1?c:[0,Ix,_r,c1,vx,Q0,p1,f1,yx,d1,_0]}function Ig0(n,s,c){return H0(n[1][1+Wr],n,s,c)}function Og0(n,s,c){return H0(n[1][1+cr],n,s,c)}function Rg0(n,s,c){return H0(n[1][1+Wr],n,s,c)}function Lg0(n,s){if(s[0]===0)return s;var c=s[1];function v(y){return[1,y]}return G0(a(n[1][1+Q],n),c,s,v)}function Mg0(n,s){var c=s[2],v=s[1];function y(S){return[0,v,S]}return G0(a(n[1][1+$],n),c,s,y)}function Dg0(n,s){var c=s[2],v=s[1];switch(c[0]){case 0:var y=c[1],S=function(Mx){return[0,v,[0,Mx]]};return G0(a(n[1][1+n0],n),y,s,S);case 1:var E=c[1],R=function(Mx){return[0,v,[1,Mx]]};return G0(a(n[1][1+n0],n),E,s,R);case 2:var Z=c[1],y0=function(Mx){return[0,v,[2,Mx]]};return G0(a(n[1][1+n0],n),Z,s,y0);case 3:var _0=c[1],Q0=function(Mx){return[0,v,[3,Mx]]};return G0(a(n[1][1+n0],n),_0,s,Q0);case 4:var vx=c[1],Ix=function(Mx){return[0,v,[4,Mx]]};return G0(a(n[1][1+n0],n),vx,s,Ix);case 5:var yx=c[1],_r=function(Mx){return[0,v,[5,Mx]]};return G0(a(n[1][1+n0],n),yx,s,_r);case 6:var f1=c[1],c1=function(Mx){return[0,v,[6,Mx]]};return G0(a(n[1][1+n0],n),f1,s,c1);case 7:var p1=c[1],d1=function(Mx){return[0,v,[7,Mx]]};return G0(a(n[1][1+n0],n),p1,s,d1);case 8:var Ge=c[2],qe=c[1],He=function(Mx){return[0,v,[8,qe,Mx]]};return G0(a(n[1][1+n0],n),Ge,s,He);case 9:var Ce=c[1],be=function(Mx){return[0,v,[9,Mx]]};return G0(a(n[1][1+n0],n),Ce,s,be);case 10:var xt=c[1],Pt=function(Mx){return[0,v,[10,Mx]]};return G0(a(n[1][1+n0],n),xt,s,Pt);case 11:var rt=c[1],et=function(Mx){return[0,v,[11,Mx]]};return G0(a(n[1][1+Wx],n),rt,s,et);case 12:var Jn=c[1],Xn=function(Mx){return[0,v,[12,Mx]]};return cx(a(n[1][1+U],n),v,Jn,s,Xn);case 13:var ks=c[1],hs=function(Mx){return[0,v,[13,Mx]]};return cx(a(n[1][1+Dn],n),v,ks,s,hs);case 14:var tt=c[1],_s=function(Mx){return[0,v,[14,Mx]]};return cx(a(n[1][1+R1],n),v,tt,s,_s);case 15:var uv=c[1],z6=function(Mx){return[0,v,[15,Mx]]};return cx(a(n[1][1+Go],n),v,uv,s,z6);case 16:var K6=c[1],B6=function(Mx){return[0,v,[16,Mx]]};return G0(a(n[1][1+N3],n),K6,s,B6);case 17:var W6=c[1],Z6=function(Mx){return[0,v,[17,Mx]]};return G0(a(n[1][1+fe],n),W6,s,Z6);case 18:var $6=c[1],F6=function(Mx){return[0,v,[18,Mx]]};return G0(a(n[1][1+Lm],n),$6,s,F6);case 19:var Q6=c[1],G6=function(Mx){return[0,v,[19,Mx]]};return cx(a(n[1][1+mt],n),v,Q6,s,G6);case 20:var q6=c[1],H6=function(Mx){return[0,v,[20,Mx]]};return cx(a(n[1][1+p3],n),v,q6,s,H6);case 21:var b6=c[1],x4=function(Mx){return[0,v,[21,Mx]]};return cx(a(n[1][1+Ur],n),v,b6,s,x4);case 22:var r4=c[1],e4=function(Mx){return[0,v,[22,Mx]]};return cx(a(n[1][1+h],n),v,r4,s,e4);case 23:var t4=c[1],n4=function(Mx){return[0,v,[23,Mx]]};return cx(a(n[1][1+Qo],n),v,t4,s,n4);case 24:var u4=c[1],i4=function(Mx){return[0,v,[24,Mx]]};return G0(a(n[1][1+A],n),u4,s,i4);case 25:var f4=c[1],c4=function(Mx){return[0,v,[25,Mx]]};return G0(a(n[1][1+In],n),f4,s,c4);case 26:var s4=c[1],o4=function(Mx){return[0,v,[26,Mx]]};return G0(a(n[1][1+m0],n),s4,s,o4);case 27:var v4=c[1],a4=function(Mx){return[0,v,[27,Mx]]};return G0(a(n[1][1+f0],n),v4,s,a4);case 28:var l4=c[1],p4=function(Mx){return[0,v,[28,Mx]]};return cx(a(n[1][1+Sx],n),v,l4,s,p4);case 29:var d4=c[1],y4=function(Mx){return[0,v,[29,Mx]]};return cx(a(n[1][1+Or],n),v,d4,s,y4);case 30:var m4=c[1],k4=function(Mx){return[0,v,[30,Mx]]};return cx(a(n[1][1+nn],n),v,m4,s,k4);case 31:var h4=c[1],_4=function(Mx){return[0,v,[31,Mx]]};return cx(a(n[1][1+ao],n),v,h4,s,_4);case 32:var w4=c[1],T4=function(Mx){return[0,v,[32,Mx]]};return G0(a(n[1][1+n0],n),w4,s,T4);case 33:var S4=c[1],E4=function(Mx){return[0,v,[33,Mx]]};return G0(a(n[1][1+n0],n),S4,s,E4);default:var g4=c[1],A4=function(Mx){return[0,v,[34,Mx]]};return G0(a(n[1][1+n0],n),g4,s,A4)}}function Ug0(n,s,c){var v=c[2],y=c[1],S=y[3],E=y[2],R=y[1],Z=p(n[1][1+$],n,R),y0=p(n[1][1+$],n,E),_0=Er(a(n[1][1+$],n),S),Q0=p(n[1][1+n0],n,v);return Z===R&&y0===E&&_0===S&&Q0===v?c:[0,[0,Z,y0,_0],Q0]}function jg0(n,s,c){var v=c[2],y=c[1],S=y[3],E=y[2],R=y[1],Z=p(n[1][1+$],n,R),y0=p(n[1][1+$],n,E),_0=Er(a(n[1][1+$],n),S),Q0=p(n[1][1+n0],n,v);return Z===R&&y0===E&&_0===S&&Q0===v?c:[0,[0,Z,y0,_0],Q0]}function Jg0(n,s){var c=s[2],v=s[1],y=p(n[1][1+$],n,v),S=p(n[1][1+n0],n,c);return v===y&&c===S?s:[0,y,S]}function Xg0(n,s){var c=s[2],v=s[1],y=p(n[1][1+$],n,c);return y===c?s:[0,v,y]}function Yg0(n,s){var c=s[3],v=s[2],y=s[4],S=s[1],E=p(n[1][1+$],n,v),R=p(n[1][1+i],n,c);return E===v&&R===c?s:[0,S,E,R,y]}function Vg0(n,s){var c=s[2],v=s[1];switch(c[0]){case 0:var y=c[1],S=function(_0){return[0,v,[0,_0]]};return G0(a(n[1][1+$],n),y,s,S);case 1:var E=c[1],R=function(_0){return[0,v,[1,_0]]};return G0(a(n[1][1+v0],n),E,s,R);default:var Z=c[1],y0=function(_0){return[0,v,[2,_0]]};return G0(a(n[1][1+s0],n),Z,s,y0)}}function zg0(n,s){var c=s[2],v=s[1],y=Er(a(n[1][1+o0],n),v),S=p(n[1][1+n0],n,c);return v===y&&c===S?s:[0,y,S]}function Kg0(n,s){var c=s[2],v=s[1],y=p(n[1][1+$],n,v),S=p(n[1][1+n0],n,c);return v===y&&c===S?s:[0,y,S]}function Bg0(n,s){var c=s[2],v=s[1],y=p(n[1][1+$],n,v),S=p(n[1][1+n0],n,c);return v===y&&c===S?s:[0,y,S]}function Wg0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+L],n,y),R=p(n[1][1+C],n,v);return E===y&&R===v?s:[0,S,[0,E,R]]}function Zg0(n,s){return p(n[1][1+L1],n,s)}function $g0(n,s){return p(n[1][1+L1],n,s)}function Fg0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return G0(a(n[1][1+O],n),c,s,v)}var y=s[1];function S(E){return[1,E]}return G0(a(n[1][1+N],n),y,s,S)}function Qg0(n,s){var c=s[2],v=s[1],y=p(n[1][1+L],n,v),S=p(n[1][1+n0],n,c);return v===y&&c===S?s:[0,y,S]}function Gg0(n,s){var c=s[2],v=s[1],y=p(n[1][1+V],n,v),S=p(n[1][1+n0],n,c);return v===y&&c===S?s:[0,y,S]}function qg0(n,s){var c=s[5],v=s[4],y=s[3],S=s[2],E=s[1],R=p(n[1][1+$],n,E),Z=p(n[1][1+$],n,S),y0=p(n[1][1+$],n,y),_0=p(n[1][1+$],n,v),Q0=p(n[1][1+n0],n,c);return E===R&&S===Z&&y===y0&&v===_0&&c===Q0?s:[0,R,Z,y0,_0,Q0]}function Hg0(n,s){var c=s[2],v=s[1],y=p(n[1][1+$],n,v),S=p(n[1][1+n0],n,c);return v===y&&c===S?s:[0,y,S]}function bg0(n,s,c){var v=c[6],y=c[5],S=c[4],E=c[3],R=c[2],Z=c[1];return v===p(n[1][1+n0],n,v)?c:[0,Z,R,E,S,y,v]}function xA0(n,s,c){var v=c[4],y=c[3],S=c[2],E=c[1],R=p(n[1][1+n0],n,v);return v===R?c:[0,E,S,y,R]}function rA0(n,s,c){return p(n[1][1+n0],n,c)}function eA0(n,s,c){var v=c[2],y=c[1],S=p(n[1][1+n0],n,v);return v===S?c:[0,y,S]}function tA0(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+n0],n,v);return v===E?c:[0,S,y,E]}function nA0(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+n0],n,v);return v===E?c:[0,S,y,E]}function uA0(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+n0],n,v);return v===E?c:[0,S,y,E]}function iA0(n,s,c){var v=c[1],y=c[2],S=H0(n[1][1+p3],n,s,v);return S===v?c:[0,S,y]}function fA0(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+$],n,S),R=p(n[1][1+$],n,y),Z=p(n[1][1+n0],n,v);return E===S&&R===y&&Z===v?c:[0,E,R,Z]}function cA0(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+q],n,S),R=Kx(a(n[1][1+K],n),y),Z=p(n[1][1+n0],n,v);return E===S&&R===y&&Z===v?c:[0,E,R,Z]}function sA0(n,s){var c=s[2],v=c[5],y=c[4],S=c[2],E=c[1],R=c[3],Z=s[1],y0=p(n[1][1+J],n,S),_0=p(n[1][1+i],n,y),Q0=Kx(a(n[1][1+$],n),v),vx=p(n[1][1+Qe],n,E);return vx===E&&y0===S&&_0===y&&Q0===v?s:[0,Z,[0,vx,y0,R,_0,Q0]]}function oA0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=Er(a(n[1][1+V],n),y),R=p(n[1][1+n0],n,v);return E===y&&R===v?s:[0,S,[0,E,R]]}function vA0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=Er(a(n[1][1+$],n),y),R=p(n[1][1+n0],n,v);return y===E&&v===R?s:[0,S,[0,E,R]]}function aA0(n,s){return Kx(a(n[1][1+f],n),s)}function lA0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+n0],n,v);return v===E?s:[0,S,[0,y,E]]}function pA0(n,s){return p(n[1][1+L1],n,s)}function dA0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+q],n,y),R=p(n[1][1+to],n,v);return E===y&&R===v?s:[0,S,[0,E,R]]}function yA0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return G0(a(n[1][1+z],n),c,s,v)}var y=s[1];function S(E){return[1,E]}return G0(a(n[1][1+m3],n),y,s,S)}function mA0(n,s,c){var v=c[3],y=c[2],S=c[1],E=a(n[1][1+mt],n),R=Er(function(_0){return x2(E,_0)},y),Z=x2(a(n[1][1+R1],n),S),y0=p(n[1][1+n0],n,v);return R===y&&Z===S&&v===y0?c:[0,Z,R,y0]}function kA0(n,s){switch(s[0]){case 0:var c=s[1],v=function(yx){return[0,yx]};return G0(a(n[1][1+r0],n),c,s,v);case 1:var y=s[1],S=function(yx){return[1,yx]};return G0(a(n[1][1+_],n),y,s,S);case 2:var E=s[1],R=function(yx){return[2,yx]};return G0(a(n[1][1+$x],n),E,s,R);case 3:var Z=s[1],y0=function(yx){return[3,yx]};return G0(a(n[1][1+xr],n),Z,s,y0);case 4:var _0=s[1],Q0=function(yx){return[4,yx]};return G0(a(n[1][1+tr],n),_0,s,Q0);default:var vx=s[1],Ix=function(yx){return[5,yx]};return G0(a(n[1][1+G],n),vx,s,Ix)}}function hA0(n,s,c){var v=c[4],y=c[3],S=c[2],E=c[1],R=Er(a(n[1][1+Ir],n),y),Z=p(n[1][1+n0],n,v);return R===y&&v===Z?c:[0,E,S,R,Z]}function _A0(n,s){var c=s[2],v=c[6],y=c[4],S=c[3],E=c[2],R=c[1],Z=c[5],y0=s[1],_0=p(n[1][1+V],n,R),Q0=p(n[1][1+$],n,E),vx=p(n[1][1+$],n,S),Ix=p(n[1][1+i],n,y),yx=p(n[1][1+n0],n,v);return _0===R&&Q0===E&&vx===S&&Ix===y&&yx===v?s:[0,y0,[0,_0,Q0,vx,Ix,Z,yx]]}function wA0(n,s){var c=s[2],v=c[3],y=c[1],S=y[2],E=y[1],R=c[2],Z=s[1],y0=H0(n[1][1+U],n,E,S),_0=p(n[1][1+n0],n,v);return S===y0&&v===_0?s:[0,Z,[0,[0,E,y0],R,_0]]}function TA0(n,s){var c=s[2],v=c[6],y=c[2],S=c[1],E=c[5],R=c[4],Z=c[3],y0=s[1],_0=p(n[1][1+L1],n,S),Q0=p(n[1][1+$],n,y),vx=p(n[1][1+n0],n,v);return S===_0&&y===Q0&&v===vx?s:[0,y0,[0,_0,Q0,Z,R,E,vx]]}function SA0(n,s){var c=s[2],v=c[6],y=c[5],S=c[3],E=c[2],R=c[4],Z=c[1],y0=s[1],_0=p(n[1][1+$],n,E),Q0=p(n[1][1+$],n,S),vx=p(n[1][1+i],n,y),Ix=p(n[1][1+n0],n,v);return _0===E&&Q0===S&&vx===y&&Ix===v?s:[0,y0,[0,Z,_0,Q0,R,vx,Ix]]}function EA0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+$],n,y),R=p(n[1][1+n0],n,v);return E===y&&v===R?s:[0,S,[0,E,R]]}function gA0(n,s){var c=s[2],v=c[8],y=c[7],S=c[2],E=c[1],R=c[6],Z=c[5],y0=c[4],_0=c[3],Q0=s[1],vx=p(n[1][1+Lx],n,E),Ix=p(n[1][1+b],n,S),yx=p(n[1][1+i],n,y),_r=p(n[1][1+n0],n,v);return vx===E&&Ix===S&&yx===y&&_r===v?s:[0,Q0,[0,vx,Ix,_0,y0,Z,R,yx,_r]]}function AA0(n,s){var c=s[1],v=s[2];function y(S){return[0,c,S]}return cx(a(n[1][1+U],n),c,v,s,y)}function PA0(n,s){var c=s[1],v=s[2];function y(S){return[0,c,S]}return cx(a(n[1][1+U],n),c,v,s,y)}function NA0(n,s){switch(s[0]){case 0:var c=s[1],v=function(Z){return[0,Z]};return G0(a(n[1][1+$],n),c,s,v);case 1:var y=s[1],S=function(Z){return[1,Z]};return G0(a(n[1][1+h1],n),y,s,S);default:var E=s[1],R=function(Z){return[2,Z]};return G0(a(n[1][1+e2],n),E,s,R)}}function CA0(n,s){return p(n[1][1+L1],n,s)}function IA0(n,s,c){var v=c[4],y=c[3],S=c[2],E=S[2],R=E[4],Z=E[3],y0=E[2],_0=E[1],Q0=c[1],vx=S[1],Ix=Kx(a(n[1][1+M],n),Q0),yx=Kx(a(n[1][1+T0],n),_0),_r=Er(a(n[1][1+Hx],n),y0),f1=Kx(a(n[1][1+Ex],n),Z),c1=p(n[1][1+I],n,y),p1=p(n[1][1+n0],n,v),d1=p(n[1][1+n0],n,R);return _r===y0&&f1===Z&&c1===y&&Ix===Q0&&p1===v&&d1===R&&yx===_0?c:[0,Ix,[0,vx,[0,yx,_r,f1,d1]],c1,p1]}function OA0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return G0(a(n[1][1+$],n),c,s,v)}var y=s[1];function S(E){return[1,E]}return G0(a(n[1][1+i0],n),y,s,S)}function RA0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+Q],n,y),R=p(n[1][1+n0],n,v);return E===y&&R===v?s:[0,S,[0,E,R]]}function LA0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+Hx],n,y),R=p(n[1][1+n0],n,v);return E===y&&R===v?s:[0,S,[0,E,R]]}function MA0(n,s){var c=s[2],v=c[2],y=c[1],S=c[3],E=s[1],R=p(n[1][1+$],n,v),Z=Kx(a(n[1][1+L1],n),y);return R===v&&Z===y?s:[0,E,[0,Z,R,S]]}function DA0(n,s){var c=s[1],v=s[2];function y(S){return[0,c,S]}return cx(a(n[1][1+d],n),c,v,s,y)}function UA0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return G0(a(n[1][1+_1],n),c,s,v)}var y=s[1];function S(E){return[1,E]}return G0(a(n[1][1+gx],n),y,s,S)}function jA0(n,s,c){var v=c[5],y=c[4],S=c[3],E=c[2],R=c[1],Z=Kx(a(n[1][1+Mr],n),R),y0=Kx(a(n[1][1+D],n),E),_0=Kx(a(n[1][1+gx],n),S),Q0=p(n[1][1+A0],n,y),vx=p(n[1][1+n0],n,v);return R===Z&&E===y0&&S===_0&&y===Q0&&v===vx?c:[0,Z,y0,_0,Q0,vx]}function JA0(n,s){var c=s[1],v=s[2];function y(S){return[0,c,S]}return cx(a(n[1][1+d],n),c,v,s,y)}function XA0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return G0(a(n[1][1+l1],n),c,s,v)}var y=s[1];function S(E){return[1,E]}return G0(a(n[1][1+i1],n),y,s,S)}function YA0(n,s,c){var v=c[5],y=c[3],S=c[2],E=c[1],R=c[4],Z=p(n[1][1+x1],n,E),y0=p(n[1][1+gx],n,S),_0=p(n[1][1+A0],n,y),Q0=p(n[1][1+n0],n,v);return E===Z&&S===y0&&y===_0&&v===Q0?c:[0,Z,y0,_0,R,Q0]}function VA0(n,s){var c=s[1],v=s[2];function y(S){return[0,c,S]}return cx(a(n[1][1+d],n),c,v,s,y)}function zA0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return G0(a(n[1][1+t2],n),c,s,v)}var y=s[1];function S(E){return[1,E]}return G0(a(n[1][1+g1],n),y,s,S)}function KA0(n,s,c){var v=c[5],y=c[3],S=c[2],E=c[1],R=c[4],Z=p(n[1][1+Cr],n,E),y0=p(n[1][1+gx],n,S),_0=p(n[1][1+A0],n,y),Q0=p(n[1][1+n0],n,v);return E===Z&&S===y0&&y===_0&&v===Q0?c:[0,Z,y0,_0,R,Q0]}function BA0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return G0(a(n[1][1+gx],n),c,s,v)}var y=s[1];function S(E){return[1,E]}return G0(a(n[1][1+C0],n),y,s,S)}function WA0(n,s,c){var v=c[3],y=c[1],S=c[2],E=p(n[1][1+gx],n,y),R=p(n[1][1+n0],n,v);return y===E&&v===R?c:[0,E,S,R]}function ZA0(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+n0],n,v);return v===E?c:[0,S,y,E]}function $A0(n,s){if(s[0]===0){var c=s[1],v=Er(a(n[1][1+lr],n),c);return c===v?s:[0,v]}var y=s[1],S=p(n[1][1+Z2],n,y);return y===S?s:[1,S]}function FA0(n,s){var c=s[2],v=s[1],y=Kx(a(n[1][1+L1],n),c);return c===y?s:[0,v,y]}function QA0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+L1],n,y),R=Kx(a(n[1][1+L1],n),v);return y===E&&v===R?s:[0,S,[0,E,R]]}function GA0(n,s,c){var v=c[5],y=c[3],S=c[2],E=c[1],R=c[4],Z=lV(a(n[1][1+Xr],n),y),y0=Kx(a(n[1][1+r1],n),S),_0=Kx(a(n[1][1+A0],n),E),Q0=p(n[1][1+n0],n,v);return y===Z&&S===y0&&E===_0&&v===Q0?c:[0,_0,y0,Z,R,Q0]}function qA0(n,s){if(s[0]===0){var c=s[1],v=function(E){return[0,E]};return G0(a(n[1][1+A0],n),c,s,v)}var y=s[1];function S(E){return[1,E]}return G0(a(n[1][1+gx],n),y,s,S)}function HA0(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+B1],n,y),R=p(n[1][1+n0],n,v);return E===y&&R===v?c:[0,S,E,R]}function bA0(n,s){return p(n[1][1+L1],n,s)}function xP0(n,s){var c=s[2],v=c[1],y=c[2],S=s[1],E=p(n[1][1+a2],n,v);return v===E?s:[0,S,[0,E,y]]}function rP0(n,s){var c=s[2],v=c[1],y=c[2],S=s[1],E=p(n[1][1+a2],n,v);return v===E?s:[0,S,[0,E,y]]}function eP0(n,s){var c=s[2],v=c[1],y=c[2],S=s[1],E=p(n[1][1+a2],n,v);return v===E?s:[0,S,[0,E,y]]}function tP0(n,s){var c=s[2],v=c[1],y=c[2],S=s[1],E=p(n[1][1+a2],n,v);return v===E?s:[0,S,[0,E,y]]}function nP0(n,s){var c=s[2][1],v=s[1],y=p(n[1][1+a2],n,c);return c===y?s:[0,v,[0,y]]}function uP0(n,s){var c=s[4],v=s[1],y=Er(a(n[1][1+Se],n),v),S=p(n[1][1+n0],n,c);return v===y&&c===S?s:[0,y,s[2],s[3],S]}function iP0(n,s){var c=s[3],v=s[1],y=Er(a(n[1][1+kt],n),v),S=p(n[1][1+n0],n,c);return v===y&&c===S?s:[0,y,s[2],S]}function fP0(n,s){var c=s[4],v=s[1];if(v[0]===0)var y=v[1],S=function(vx){return[0,vx]},E=a(n[1][1+kt],n),_0=G0(function(vx){return Er(E,vx)},y,v,S);else var R=v[1],Z=function(vx){return[1,vx]},y0=a(n[1][1+Gt],n),_0=G0(function(vx){return Er(y0,vx)},R,v,Z);var Q0=p(n[1][1+n0],n,c);return v===_0&&c===Q0?s:[0,_0,s[2],s[3],Q0]}function cP0(n,s){var c=s[4],v=s[1],y=Er(a(n[1][1+n2],n),v),S=p(n[1][1+n0],n,c);return v===y&&c===S?s:[0,y,s[2],s[3],S]}function sP0(n,s){var c=s[4],v=s[1],y=Er(a(n[1][1+ht],n),v),S=p(n[1][1+n0],n,c);return v===y&&c===S?s:[0,y,s[2],s[3],S]}function oP0(n,s){var c=s[2],v=s[1];switch(c[0]){case 0:var y=c[1],S=function(yx){return[0,v,[0,yx]]};return G0(a(n[1][1+$e],n),y,s,S);case 1:var E=c[1],R=function(yx){return[0,v,[1,yx]]};return G0(a(n[1][1+I2],n),E,s,R);case 2:var Z=c[1],y0=function(yx){return[0,v,[2,yx]]};return G0(a(n[1][1+C2],n),Z,s,y0);case 3:var _0=c[1],Q0=function(yx){return[0,v,[3,yx]]};return G0(a(n[1][1+we],n),_0,s,Q0);default:var vx=c[1],Ix=function(yx){return[0,v,[4,yx]]};return G0(a(n[1][1+Ee],n),vx,s,Ix)}}function vP0(n,s,c){var v=c[3],y=c[2],S=c[1],E=H0(n[1][1+mx],n,wG,S),R=p(n[1][1+Te],n,y),Z=p(n[1][1+n0],n,v);return S===E&&y===R&&v===Z?c:[0,E,R,Z]}function aP0(n,s,c){var v=c[1],y=p(n[1][1+n0],n,v);return v===y?c:[0,y]}function lP0(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+A0],n,S),R=p(n[1][1+D],n,y),Z=p(n[1][1+n0],n,v);return S===E&&y===R&&v===Z?c:[0,E,R,Z]}function pP0(n,s,c){var v=c[4],y=c[3],S=c[2],E=c[1],R=H0(n[1][1+mx],n,[0,y],E),Z=p(n[1][1+Q],n,S),y0=p(n[1][1+n0],n,v);return R===E&&Z===S&&y0===v?c:[0,R,Z,y,y0]}function dP0(n,s,c){return H0(n[1][1+x0],n,s,c)}function yP0(n,s,c){var v=c[2],y=c[1],S=p(n[1][1+Q],n,y),E=p(n[1][1+n0],n,v);return y===S&&v===E?c:[0,S,E]}function mP0(n,s,c){var v=c[4],y=c[2],S=c[3],E=c[1],R=x2(a(n[1][1+gt],n),y),Z=p(n[1][1+n0],n,v);return R===y&&v===Z?c:[0,E,R,S,Z]}function kP0(n,s,c){return H0(n[1][1+l3],n,s,c)}function hP0(n,s,c){var v=c[4],y=c[3],S=c[2],E=c[1],R=p(n[1][1+hr],n,E),Z=p(n[1][1+Q],n,S),y0=Kx(a(n[1][1+O0],n),y),_0=p(n[1][1+n0],n,v);return R===E&&Z===S&&y0===y&&_0===v?c:[0,R,Z,y0,_0]}function _P0(n,s){switch(s[0]){case 0:var c=s[1],v=c[2],y=c[1],S=H0(n[1][1+Pe],n,y,v);return S===v?s:[0,[0,y,S]];case 1:var E=s[1],R=E[2],Z=E[1],y0=H0(n[1][1+qt],n,Z,R);return y0===R?s:[1,[0,Z,y0]];case 2:var _0=s[1],Q0=_0[2],vx=_0[1],Ix=H0(n[1][1+ie],n,vx,Q0);return Ix===Q0?s:[2,[0,vx,Ix]];case 3:var yx=s[1],_r=yx[2],f1=yx[1],c1=H0(n[1][1+Ht],n,f1,_r);return c1===_r?s:[3,[0,f1,c1]];case 4:var p1=s[1],d1=p(n[1][1+$],n,p1);return d1===p1?s:[4,d1];case 5:var Ge=s[1],qe=Ge[2],He=Ge[1],Ce=H0(n[1][1+x0],n,He,qe);return Ce===qe?s:[5,[0,He,Ce]];case 6:var be=s[1],xt=be[2],Pt=be[1],rt=H0(n[1][1+br],n,Pt,xt);return rt===xt?s:[6,[0,Pt,rt]];case 7:var et=s[1],Jn=et[2],Xn=et[1],ks=H0(n[1][1+l3],n,Xn,Jn);return ks===Jn?s:[7,[0,Xn,ks]];default:var hs=s[1],tt=hs[2],_s=hs[1],uv=H0(n[1][1+O2],n,_s,tt);return uv===tt?s:[8,[0,_s,uv]]}}function wP0(n,s,c){var v=c[5],y=c[4],S=c[3],E=c[2],R=c[1],Z=lV(a(n[1][1+Xr],n),y),y0=Kx(a(n[1][1+r1],n),S),_0=Kx(a(n[1][1+vs],n),E),Q0=p(n[1][1+n0],n,v);return y===Z&&S===y0&&E===_0&&v===Q0?c:[0,R,_0,y0,Z,Q0]}function TP0(n,s,c){return H0(n[1][1+O2],n,s,c)}function SP0(n,s){var c=s[2],v=c[4],y=c[2],S=c[1],E=c[3],R=s[1],Z=Kx(a(n[1][1+L1],n),S),y0=p(n[1][1+$],n,y),_0=p(n[1][1+n0],n,v);return S===Z&&y===y0&&v===_0?s:[0,R,[0,Z,y0,E,_0]]}function EP0(n,s){var c=s[2],v=c[2],y=c[1],S=c[3],E=s[1],R=p(n[1][1+as],n,y),Z=p(n[1][1+Q],n,v);return y===R&&v===Z?s:[0,E,[0,R,Z,S]]}function gP0(n,s){var c=s[2],v=c[3],y=c[2],S=c[1],E=s[1],R=Er(a(n[1][1+en],n),S),Z=Kx(a(n[1][1+rn],n),y),y0=p(n[1][1+n0],n,v);return S===R&&y===Z&&v===y0?s:[0,E,[0,R,Z,y0]]}function AP0(n,s,c){var v=c[4],y=c[3],S=c[2],E=c[1],R=Kx(a(n[1][1+M],n),E),Z=p(n[1][1+Mn],n,S),y0=p(n[1][1+J],n,y),_0=p(n[1][1+n0],n,v);return E===R&&S===Z&&y===y0&&v===_0?c:[0,R,Z,y0,_0]}function PP0(n,s,c){var v=c[5],y=c[4],S=c[3],E=c[2],R=c[1],Z=p(n[1][1+ps],n,R),y0=Kx(a(n[1][1+M],n),E),_0=p(n[1][1+Mn],n,S),Q0=p(n[1][1+J],n,y),vx=p(n[1][1+n0],n,v);return R===Z&&E===y0&&S===_0&&y===Q0&&v===vx?c:[0,Z,y0,_0,Q0,vx]}function NP0(n,s,c){var v=c[7],y=c[6],S=c[5],E=c[4],R=c[3],Z=c[2],y0=c[1],_0=p(n[1][1+Un],n,y0),Q0=Kx(a(n[1][1+M],n),Z),vx=x2(a(n[1][1+R1],n),R),Ix=a(n[1][1+mt],n),yx=Kx(function(d1){return x2(Ix,d1)},E),_r=a(n[1][1+mt],n),f1=Er(function(d1){return x2(_r,d1)},S),c1=Kx(a(n[1][1+ua],n),y),p1=p(n[1][1+n0],n,v);return _0===y0&&Q0===Z&&vx===R&&yx===E&&f1===S&&c1===y&&p1===v?c:[0,_0,Q0,vx,yx,f1,c1,p1]}function CP0(n,s,c){var v=c[1],y=p(n[1][1+n0],n,v);return v===y?c:[0,y]}function IP0(n,s,c){var v=c[2],y=c[1],S=Kx(a(n[1][1+Qt],n),y),E=p(n[1][1+n0],n,v);return y===S&&v===E?c:[0,S,E]}function OP0(n,s,c){var v=c[4],y=c[3],S=c[2],E=c[1],R=p(n[1][1+D],n,E),Z=p(n[1][1+gx],n,S),y0=p(n[1][1+gx],n,y),_0=p(n[1][1+n0],n,v);return E===R&&S===Z&&y===y0&&v===_0?c:[0,R,Z,y0,_0]}function RP0(n,s){var c=s[1],v=s[2];function y(S){return[0,c,S]}return cx(a(n[1][1+gt],n),c,v,s,y)}function LP0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+Et],n,y),R=p(n[1][1+n0],n,v);return y===E&&v===R?s:[0,S,[0,E,R]]}function MP0(n,s){return H0(n[1][1+ms],n,_G,s)}function DP0(n,s){if(s[0]===0)return[0,p(n[1][1+L1],n,s[1])];var c=s[1],v=c[1];return[1,[0,v,H0(n[1][1+Sx],n,v,c[2])]]}function UP0(n,s){var c=s[2],v=c[3],y=c[2],S=c[1],E=c[4],R=s[1],Z=p(n[1][1+as],n,S),y0=p(n[1][1+Et],n,y),_0=p(n[1][1+W1],n,v);return S===Z&&y===y0&&v===_0?s:[0,R,[0,Z,y0,_0,E]]}function jP0(n,s){var c=s[2],v=c[3],y=c[2],S=c[1],E=s[1],R=Er(a(n[1][1+ls],n),S),Z=Kx(a(n[1][1+qo],n),y),y0=p(n[1][1+n0],n,v);return S===R&&y===Z&&v===y0?s:[0,E,[0,R,Z,y0]]}function JP0(n,s){return H0(n[1][1+mx],n,hG,s)}function XP0(n,s,c){var v=c[6],y=c[5],S=c[4],E=c[3],R=c[2],Z=c[1],y0=c[7],_0=p(n[1][1+ps],n,Z),Q0=Kx(a(n[1][1+M],n),R),vx=p(n[1][1+tn],n,E),Ix=p(n[1][1+k3],n,y),yx=p(n[1][1+J],n,S),_r=p(n[1][1+n0],n,v);return Z===_0&&R===Q0&&E===vx&&y===Ix&&S===yx&&v===_r?c:[0,_0,Q0,vx,yx,Ix,_r,y0]}function YP0(n,s){return Kx(a(n[1][1+gx],n),s)}function VP0(n,s,c){var v=c[7],y=c[6],S=c[5],E=c[3],R=c[2],Z=c[1],y0=p(n[1][1+P0],n,Z),_0=p(n[1][1+bo],n,R),Q0=p(n[1][1+J],n,E),vx=p(n[1][1+i],n,S),Ix=Er(a(n[1][1+Ne],n),y),yx=p(n[1][1+n0],n,v);return Z===y0&&R===_0&&Q0===E&&vx===S&&Ix===y&&yx===v?c:[0,y0,_0,Q0,c[4],vx,Ix,yx]}function zP0(n,s){if(typeof s=="number")return s;var c=s[1],v=p(n[1][1+gx],n,c);return c===v?s:[0,v]}function KP0(n,s,c){var v=c[7],y=c[6],S=c[5],E=c[3],R=c[2],Z=c[1],y0=p(n[1][1+Lx],n,Z),_0=p(n[1][1+bo],n,R),Q0=p(n[1][1+J],n,E),vx=p(n[1][1+i],n,S),Ix=Er(a(n[1][1+Ne],n),y),yx=p(n[1][1+n0],n,v);return Z===y0&&R===_0&&Q0===E&&vx===S&&Ix===y&&yx===v?c:[0,y0,_0,Q0,c[4],vx,Ix,yx]}function BP0(n,s,c){var v=c[6],y=c[5],S=c[3],E=c[2],R=p(n[1][1+Lx],n,E),Z=x2(a(n[1][1+cr],n),S),y0=Er(a(n[1][1+Ne],n),y),_0=p(n[1][1+n0],n,v);return E===R&&S===Z&&y===y0&&v===_0?c:[0,c[1],R,Z,c[4],y0,_0]}function WP0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+z],n,y),R=Kx(a(n[1][1+K],n),v);return y===E&&v===R?s:[0,S,[0,E,R]]}function ZP0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=Er(a(n[1][1+na],n),y),R=p(n[1][1+n0],n,v);return y===E&&v===R?s:[0,S,[0,E,R]]}function $P0(n,s){switch(s[0]){case 0:var c=s[1],v=c[1],y=c[2],S=function(yx){return[0,[0,v,yx]]};return cx(a(n[1][1+_3],n),v,y,s,S);case 1:var E=s[1],R=E[1],Z=E[2],y0=function(yx){return[1,[0,R,yx]]};return cx(a(n[1][1+ta],n),R,Z,s,y0);default:var _0=s[1],Q0=_0[1],vx=_0[2],Ix=function(yx){return[2,[0,Q0,yx]]};return cx(a(n[1][1+h3],n),Q0,vx,s,Ix)}}function FP0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=p(n[1][1+gx],n,y),R=p(n[1][1+n0],n,v);return y===E&&v===R?s:[0,S,[0,E,R]]}function QP0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=Er(a(n[1][1+S3],n),y),R=p(n[1][1+n0],n,v);return y===E&&v===R?s:[0,S,[0,E,R]]}function GP0(n,s){return H0(n[1][1+mx],n,kG,s)}function qP0(n,s,c){var v=c[3],y=c[2],S=c[1],E=p(n[1][1+gx],n,S),R=Kx(a(n[1][1+K],n),y),Z=p(n[1][1+n0],n,v);return S===E&&y===R&&v===Z?c:[0,E,R,Z]}function HP0(n,s,c){var v=c[7],y=c[6],S=c[5],E=c[4],R=c[3],Z=c[2],y0=c[1],_0=Kx(a(n[1][1+Un],n),y0),Q0=Kx(a(n[1][1+M],n),R),vx=p(n[1][1+g3],n,Z),Ix=a(n[1][1+w3],n),yx=Kx(function(p1){return x2(Ix,p1)},E),_r=Kx(a(n[1][1+ua],n),S),f1=Er(a(n[1][1+Ne],n),y),c1=p(n[1][1+n0],n,v);return y0===_0&&Z===vx&&E===yx&&S===_r&&y===f1&&v===c1&&R===Q0?c:[0,_0,vx,Q0,yx,_r,f1,c1]}function bP0(n,s,c){return H0(n[1][1+ia],n,s,c)}function xN0(n,s,c){return H0(n[1][1+ia],n,s,c)}function rN0(n,s,c){var v=c[3],y=c[2],S=c[1],E=Kx(a(n[1][1+ds],n),S),R=p(n[1][1+xv],n,y),Z=p(n[1][1+n0],n,v);return S===E&&y===R&&v===Z?c:[0,E,R,Z]}function eN0(n,s){return x2(a(n[1][1+gt],n),s)}function tN0(n,s){if(s[0]===0){var c=s[1],v=p(n[1][1+$],n,c);return v===c?s:[0,v]}var y=s[1],S=y[2][1],E=y[1],R=p(n[1][1+n0],n,S);return S===R?s:[1,[0,E,[0,R]]]}function nN0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=Er(a(n[1][1+A3],n),y),R=p(n[1][1+n0],n,v);return y===E&&v===R?s:[0,S,[0,E,R]]}function uN0(n,s,c){var v=c[1],y=H0(n[1][1+fa],n,s,v);return v===y?c:[0,y,c[2],c[3]]}function iN0(n,s){var c=s[2],v=c[2],y=c[1],S=s[1],E=Er(a(n[1][1+ne],n),y),R=p(n[1][1+n0],n,v);return y===E&&v===R?s:[0,S,[0,E,R]]}function fN0(n,s,c){var v=c[4],y=c[3],S=c[2],E=c[1],R=p(n[1][1+gx],n,E),Z=Kx(a(n[1][1+rv],n),S),y0=p(n[1][1+ca],n,y),_0=p(n[1][1+n0],n,v);return E===R&&S===Z&&y===y0&&v===_0?c:[0,R,Z,y0,_0]}function cN0(n,s,c){var v=c[2],y=c[1],S=Kx(a(n[1][1+Qt],n),y),E=p(n[1][1+n0],n,v);return y===S&&v===E?c:[0,S,E]}function sN0(n,s,c){var v=c[2],y=c[1],S=p(n[1][1+D0],n,y),E=p(n[1][1+n0],n,v);return y===S&&v===E?c:[0,S,E]}function oN0(n,s,c){var v=c[4],y=c[3],S=c[2],E=p(n[1][1+gx],n,S),R=p(n[1][1+gx],n,y),Z=p(n[1][1+n0],n,v);return S===E&&y===R&&v===Z?c:[0,c[1],E,R,Z]}function vN0(n,s,c){var v=c[4],y=c[3],S=c[2],E=p(n[1][1+un],n,S),R=p(n[1][1+gx],n,y),Z=p(n[1][1+n0],n,v);return S===E&&y===R&&v===Z?c:[0,c[1],E,R,Z]}function aN0(n,s,c){return H0(n[1][1+Wr],n,s,c)}function lN0(n,s){switch(s[0]){case 0:var c=s[1],v=function(E){return[0,E]};return G0(a(n[1][1+gx],n),c,s,v);case 1:var y=s[1],S=function(E){return[1,E]};return G0(a(n[1][1+C0],n),y,s,S);default:return s}}function pN0(n,s,c){var v=c[2],y=c[1],S=Er(a(n[1][1+nv],n),y),E=p(n[1][1+n0],n,v);return y===S&&v===E?c:[0,S,E]}function dN0(n,s){var c=s[2],v=s[1];switch(c[0]){case 0:var y=c[1],S=function(Dx){return[0,v,[0,Dx]]};return cx(a(n[1][1+C3],n),v,y,s,S);case 1:var E=c[1],R=function(Dx){return[0,v,[1,Dx]]};return cx(a(n[1][1+P3],n),v,E,s,R);case 2:var Z=c[1],y0=function(Dx){return[0,v,[2,Dx]]};return cx(a(n[1][1+tv],n),v,Z,s,y0);case 3:var _0=c[1],Q0=function(Dx){return[0,v,[3,Dx]]};return cx(a(n[1][1+At],n),v,_0,s,Q0);case 4:var vx=c[1],Ix=function(Dx){return[0,v,[4,Dx]]};return cx(a(n[1][1+fa],n),v,vx,s,Ix);case 5:var yx=c[1],_r=function(Dx){return[0,v,[5,Dx]]};return cx(a(n[1][1+T3],n),v,yx,s,_r);case 6:var f1=c[1],c1=function(Dx){return[0,v,[6,Dx]]};return cx(a(n[1][1+xn],n),v,f1,s,c1);case 7:var p1=c[1],d1=function(Dx){return[0,v,[7,Dx]]};return cx(a(n[1][1+sr],n),v,p1,s,d1);case 8:var Ge=c[1],qe=function(Dx){return[0,v,[8,Dx]]};return G0(a(n[1][1+L1],n),Ge,s,qe);case 9:var He=c[1],Ce=function(Dx){return[0,v,[9,Dx]]};return G0(p(n[1][1+y3],n,v),He,s,Ce);case 10:var be=c[1],xt=function(Dx){return[0,v,[10,Dx]]};return cx(a(n[1][1+ss],n),v,be,s,xt);case 11:var Pt=c[1],rt=function(Dx){return[0,v,[11,Dx]]};return cx(a(n[1][1+Bo],n),v,Pt,s,rt);case 12:var et=c[1],Jn=function(Dx){return[0,v,[12,Dx]]};return cx(a(n[1][1+Sx],n),v,et,s,Jn);case 13:var Xn=c[1],ks=function(Dx){return[0,v,[13,Dx]]};return cx(a(n[1][1+ao],n),v,Xn,s,ks);case 14:var hs=c[1],tt=function(Dx){return[0,v,[14,Dx]]};return cx(a(n[1][1+B2],n),v,hs,s,tt);case 15:var _s=c[1],uv=function(Dx){return[0,v,[15,Dx]]};return cx(a(n[1][1+Or],n),v,_s,s,uv);case 16:var z6=c[1],K6=function(Dx){return[0,v,[16,Dx]]};return cx(a(n[1][1+nn],n),v,z6,s,K6);case 17:var B6=c[1],W6=function(Dx){return[0,v,[17,Dx]]};return cx(a(n[1][1+a0],n),v,B6,s,W6);case 18:var Z6=c[1],$6=function(Dx){return[0,v,[18,Dx]]};return cx(a(n[1][1+me],n),v,Z6,s,$6);case 19:var F6=c[1],Q6=function(Dx){return[0,v,[19,Dx]]};return cx(a(n[1][1+Ft],n),v,F6,s,Q6);case 20:var G6=c[1],q6=function(Dx){return[0,v,[20,Dx]]};return cx(a(n[1][1+te],n),v,G6,s,q6);case 21:var H6=c[1],b6=function(Dx){return[0,v,[21,Dx]]};return cx(a(n[1][1+Pn],n),v,H6,s,b6);case 22:var x4=c[1],r4=function(Dx){return[0,v,[22,Dx]]};return cx(a(n[1][1+lt],n),v,x4,s,r4);case 23:var e4=c[1],t4=function(Dx){return[0,v,[23,Dx]]};return cx(a(n[1][1+zx],n),v,e4,s,t4);case 24:var n4=c[1],u4=function(Dx){return[0,v,[24,Dx]]};return G0(p(n[1][1+lx],n,v),n4,s,u4);case 25:var i4=c[1],f4=function(Dx){return[0,v,[25,Dx]]};return cx(a(n[1][1+Sr],n),v,i4,s,f4);case 26:var c4=c[1],s4=function(Dx){return[0,v,[26,Dx]]};return cx(a(n[1][1+F],n),v,c4,s,s4);case 27:var o4=c[1],v4=function(Dx){return[0,v,[27,Dx]]};return cx(a(n[1][1+ax],n),v,o4,s,v4);case 28:var a4=c[1],l4=function(Dx){return[0,v,[28,Dx]]};return cx(a(n[1][1+$0],n),v,a4,s,l4);case 29:var p4=c[1],d4=function(Dx){return[0,v,[29,Dx]]};return cx(a(n[1][1+g0],n),v,p4,s,d4);case 30:var y4=c[1],m4=function(Dx){return[0,v,[30,Dx]]};return cx(a(n[1][1+X0],n),v,y4,s,m4);case 31:var k4=c[1],h4=function(Dx){return[0,v,[31,Dx]]};return cx(a(n[1][1+j],n),v,k4,s,h4);case 32:var _4=c[1],w4=function(Dx){return[0,v,[32,Dx]]};return cx(a(n[1][1+c0],n),v,_4,s,w4);case 33:var T4=c[1],S4=function(Dx){return[0,v,[33,Dx]]};return cx(a(n[1][1+g],n),v,T4,s,S4);case 34:var E4=c[1],g4=function(Dx){return[0,v,[34,Dx]]};return cx(a(n[1][1+k],n),v,E4,s,g4);default:var A4=c[1],Mx=function(Dx){return[0,v,[35,Dx]]};return cx(a(n[1][1+e],n),v,A4,s,Mx)}}function yN0(n,s){var c=s[2],v=s[1],y=s[3],S=Er(a(n[1][1+oo],n),v),E=Er(a(n[1][1+oo],n),c);return v===S&&c===E?s:[0,S,E,y]}function mN0(n){var s=a(n[1][1+ix],n);return function(c){return Kx(s,c)}}function kN0(n,s){return s}function hN0(n,s){var c=s[2],v=s[1];switch(c[0]){case 0:var y=c[1],S=function(Cx){return[0,v,[0,Cx]]};return cx(a(n[1][1+gt],n),v,y,s,S);case 1:var E=c[1],R=function(Cx){return[0,v,[1,Cx]]};return cx(a(n[1][1+ys],n),v,E,s,R);case 2:var Z=c[1],y0=function(Cx){return[0,v,[2,Cx]]};return cx(a(n[1][1+E3],n),v,Z,s,y0);case 3:var _0=c[1],Q0=function(Cx){return[0,v,[3,Cx]]};return cx(a(n[1][1+Ho],n),v,_0,s,Q0);case 4:var vx=c[1],Ix=function(Cx){return[0,v,[4,Cx]]};return cx(a(n[1][1+bt],n),v,vx,s,Ix);case 5:var yx=c[1],_r=function(Cx){return[0,v,[5,Cx]]};return cx(a(n[1][1+St],n),v,yx,s,_r);case 6:var f1=c[1],c1=function(Cx){return[0,v,[6,Cx]]};return cx(a(n[1][1+ie],n),v,f1,s,c1);case 7:var p1=c[1],d1=function(Cx){return[0,v,[7,Cx]]};return cx(a(n[1][1+Ht],n),v,p1,s,d1);case 8:var Ge=c[1],qe=function(Cx){return[0,v,[8,Cx]]};return cx(a(n[1][1+Tt],n),v,Ge,s,qe);case 9:var He=c[1],Ce=function(Cx){return[0,v,[9,Cx]]};return cx(a(n[1][1+wt],n),v,He,s,Ce);case 10:var be=c[1],xt=function(Cx){return[0,v,[10,Cx]]};return cx(a(n[1][1+qt],n),v,be,s,xt);case 11:var Pt=c[1],rt=function(Cx){return[0,v,[11,Cx]]};return cx(a(n[1][1+R2],n),v,Pt,s,rt);case 12:var et=c[1],Jn=function(Cx){return[0,v,[12,Cx]]};return cx(a(n[1][1+ue],n),v,et,s,Jn);case 13:var Xn=c[1],ks=function(Cx){return[0,v,[13,Cx]]};return cx(a(n[1][1+Fe],n),v,Xn,s,ks);case 14:var hs=c[1],tt=function(Cx){return[0,v,[14,Cx]]};return cx(a(n[1][1+_t],n),v,hs,s,tt);case 15:var _s=c[1],uv=function(Cx){return[0,v,[15,Cx]]};return cx(a(n[1][1+br],n),v,_s,s,uv);case 16:var z6=c[1],K6=function(Cx){return[0,v,[16,Cx]]};return cx(a(n[1][1+Pe],n),v,z6,s,K6);case 17:var B6=c[1],W6=function(Cx){return[0,v,[17,Cx]]};return cx(a(n[1][1+Ae],n),v,B6,s,W6);case 18:var Z6=c[1],$6=function(Cx){return[0,v,[18,Cx]]};return cx(a(n[1][1+ge],n),v,Z6,s,$6);case 19:var F6=c[1],Q6=function(Cx){return[0,v,[19,Cx]]};return cx(a(n[1][1+O2],n),v,F6,s,Q6);case 20:var G6=c[1],q6=function(Cx){return[0,v,[20,Cx]]};return cx(a(n[1][1+_e],n),v,G6,s,q6);case 21:var H6=c[1],b6=function(Cx){return[0,v,[21,Cx]]};return cx(a(n[1][1+zr],n),v,H6,s,b6);case 22:var x4=c[1],r4=function(Cx){return[0,v,[22,Cx]]};return cx(a(n[1][1+W2],n),v,x4,s,r4);case 23:var e4=c[1],t4=function(Cx){return[0,v,[23,Cx]]};return cx(a(n[1][1+Qr],n),v,e4,s,t4);case 24:var n4=c[1],u4=function(Cx){return[0,v,[24,Cx]]};return cx(a(n[1][1+M1],n),v,n4,s,u4);case 25:var i4=c[1],f4=function(Cx){return[0,v,[25,Cx]]};return cx(a(n[1][1+a1],n),v,i4,s,f4);case 26:var c4=c[1],s4=function(Cx){return[0,v,[26,Cx]]};return cx(a(n[1][1+Nr],n),v,c4,s,s4);case 27:var o4=c[1],v4=function(Cx){return[0,v,[27,Cx]]};return cx(a(n[1][1+Um],n),v,o4,s,v4);case 28:var a4=c[1],l4=function(Cx){return[0,v,[28,Cx]]};return cx(a(n[1][1+ea],n),v,a4,s,l4);case 29:var p4=c[1],d4=function(Cx){return[0,v,[29,Cx]]};return cx(a(n[1][1+ra],n),v,p4,s,d4);case 30:var y4=c[1],m4=function(Cx){return[0,v,[30,Cx]]};return cx(a(n[1][1+yr],n),v,y4,s,m4);case 31:var k4=c[1],h4=function(Cx){return[0,v,[31,Cx]]};return cx(a(n[1][1+H],n),v,k4,s,h4);case 32:var _4=c[1],w4=function(Cx){return[0,v,[32,Cx]]};return cx(a(n[1][1+dx],n),v,_4,s,w4);case 33:var T4=c[1],S4=function(Cx){return[0,v,[33,Cx]]};return cx(a(n[1][1+L0],n),v,T4,s,S4);case 34:var E4=c[1],g4=function(Cx){return[0,v,[34,Cx]]};return cx(a(n[1][1+d0],n),v,E4,s,g4);case 35:var A4=c[1],Mx=function(Cx){return[0,v,[35,Cx]]};return cx(a(n[1][1+x0],n),v,A4,s,Mx);case 36:var Dx=c[1],_N0=function(Cx){return[0,v,[36,Cx]]};return cx(a(n[1][1+br],n),v,Dx,s,_N0);case 37:var wN0=c[1],TN0=function(Cx){return[0,v,[37,Cx]]};return cx(a(n[1][1+d],n),v,wN0,s,TN0);case 38:var SN0=c[1],EN0=function(Cx){return[0,v,[38,Cx]]};return cx(a(n[1][1+u],n),v,SN0,s,EN0);default:var gN0=c[1],AN0=function(Cx){return[0,v,[39,Cx]]};return cx(a(n[1][1+t],n),v,gN0,s,AN0)}}return RO(x,[0,Xm,function(n,s){var c=s[2],v=c[4],y=c[3],S=c[1],E=c[2],R=s[1],Z=p(n[1][1+E0],n,S),y0=p(n[1][1+n0],n,y),_0=Er(a(n[1][1+oo],n),v);return S===Z&&y===y0&&v===_0?s:[0,R,[0,Z,E,y0,_0]]},A0,hN0,oo,kN0,n0,mN0,ix,yN0,gx,dN0,C3,pN0,nv,lN0,P3,aN0,tv,vN0,At,oN0,gt,sN0,ys,cN0,fa,fN0,ca,iN0,lx,uN0,rv,nN0,A3,tN0,xv,eN0,vo,rN0,E3,xN0,T3,bP0,ia,HP0,w3,qP0,Un,GP0,g3,QP0,Ne,FP0,S3,$P0,ua,ZP0,na,WP0,_3,BP0,ta,KP0,bo,zP0,h3,VP0,W1,YP0,Ho,XP0,ps,JP0,tn,jP0,ls,UP0,as,DP0,Et,MP0,qo,LP0,k3,RP0,xn,OP0,bt,IP0,St,CP0,ie,NP0,Ht,PP0,Dn,AP0,Mn,gP0,en,EP0,rn,SP0,Tt,TP0,wt,wP0,vs,_P0,qt,hP0,R2,kP0,ue,mP0,Fe,yP0,_t,dP0,Pe,pP0,Ae,lP0,ge,aP0,O2,vP0,Te,oP0,$e,sP0,I2,cP0,C2,fP0,we,iP0,Ee,uP0,kt,nP0,ht,tP0,n2,eP0,Gt,rP0,Se,xP0,a2,bA0,_e,HA0,B1,qA0,zr,GA0,lr,QA0,Z2,FA0,r1,$A0,Xr,ZA0,W2,WA0,ne,BA0,M1,KA0,Cr,zA0,t2,VA0,a1,YA0,x1,XA0,l1,JA0,Qr,jA0,Mr,UA0,_1,DA0,Hx,MA0,Ex,LA0,T0,RA0,I,OA0,U,IA0,Qt,CA0,b,NA0,h1,PA0,e2,AA0,r0,gA0,_,EA0,$x,SA0,tr,TA0,xr,wA0,G,_A0,R1,hA0,Ir,kA0,Go,mA0,q,yA0,m3,dA0,to,pA0,f,lA0,i,aA0,K,vA0,M,oA0,V,sA0,mt,cA0,p3,fA0,Ur,iA0,Sx,uA0,Or,nA0,nn,tA0,ao,eA0,B2,rA0,a0,xA0,me,bg0,Wx,Hg0,fe,qg0,Lm,Gg0,A,Qg0,L,Fg0,O,$g0,C,Zg0,N,Wg0,In,Bg0,m0,Kg0,f0,zg0,o0,Vg0,v0,Yg0,s0,Xg0,N3,Jg0,h,jg0,Qo,Ug0,$,Dg0,Q,Mg0,J,Lg0,Nr,Rg0,sr,Og0,cr,Ig0,Wr,Cg0,jx,Ng0,R0,Pg0,or,Ag0,tx,gg0,Fr,Eg0,Br,Sg0,ev,Tg0,hr,wg0,L1,_g0,Y,hg0,z,kg0,Qe,mg0,l3,yg0,ra,dg0,P0,pg0,Ln,lg0,y3,ag0,jm,vg0,Jm,og0,Um,sg0,ea,cg0,O6,fg0,I6,ig0,B,ug0,Mm,ng0,Dm,tg0,d3,eg0,ss,rg0,Bo,xg0,pt,bE0,Zo,HE0,Ko,qE0,he,GE0,os,QE0,xa,FE0,Fo,$E0,so,ZE0,bv,WE0,Rn,BE0,$o,KE0,co,zE0,a3,VE0,io,YE0,qv,XE0,yt,JE0,fo,jE0,Hv,UE0,Wo,DE0,no,ME0,On,LE0,v2,SM,uo,e9,dt,r9,yr,V6,Ft,TM,te,x9,Sr,wM,ke,_M,Nn,bm,Cn,L3,cs,R3,Pn,Y6,lt,X6,zx,hM,S0,kM,Lx,mM,h0,J6,z0,yM,Zx,dM,M0,pM,ux,j6,br,lM,mr,aM,o,vM,ds,oM,g1,sM,i1,O3,ms,cM,un,Hm,V0,fM,mx,iM,K0,uM,Nx,U6,Gx,nM,U0,qm,ex,tM,T,eM,b0,rM,B0,D6,sx,xM,X,M6,F0,Gm,ox,bL,_x,Qm,j0,L6,nr,Fm,W0,HL,Jx,$m,bx,qL,J0,R6,Bx,GL,O0,QL,D,FL,t0,Zm,i0,Wm,Ux,sa,H,$L,F,Bm,E0,Km,D0,ZL,N0,WL,C0,BL,Y0,zm,ax,I3,dx,KL,rx,zL,$0,VL,g0,YL,xx,XL,X0,JL,L0,jL,d0,UL,j,DL,c0,ML,g,LL,k,RL,d,OL,l,IL,u,CL,t,Vm,x0,Ym,e,jn]),function(n,s){return iy(s,x)}}),JO=function x(r,e,t){return x.fun(r,e,t)};I0(JO,function(x,r,e){var t=e[2];switch(t[0]){case 0:var u=t[1][1];return H1(function(f){return function(o){var l=o[0]===0?o[1][2][2]:o[1][2][1];return H0(JO,x,f,l)}},r,u);case 1:var i=t[1][1];return H1(function(f){return function(o){return o[0]===2?f:H0(JO,x,f,o[1][2][1])}},r,i);case 2:return p(x,r,t[1][1]);default:return r}});var XO=function x(r){return x.fun(r)},ZT0=function(x){var r=x[0]===0?x[1][2][2]:x[1][2][1];return a(XO,r)},$T0=function(x){return x[0]===2?0:a(XO,x[1][2][1])};I0(XO,function(x){var r=x[2];switch(r[0]){case 0:return rO(ZT0,r[1][1]);case 1:return rO($T0,r[1][1]);case 2:return 1;default:return 0}});var Sn=function(x,r){return[0,r[1],[0,r[2],x]]},pV=function(x,r,e){var t=x?x[1]:0,u=r?r[1]:0;return[0,t,u,e]},k0=function(x,r,e){var t=x?x[1]:0,u=r?r[1]:0;return!t&&!u?0:[0,pV([0,t],[0,u],0)]},j1=function(x,r,e,t){var u=x?x[1]:0,i=r?r[1]:0;return!u&&!i&&!e?0:[0,pV([0,u],[0,i],e)]},N2=function(x,r){if(x){if(r){var e=r[1],t=x[1],u=[0,Qx(t[2],e[2])];return k0([0,Qx(e[1],t[1])],u,0)}var i=x}else var i=r;return i},YO=function(x,r){if(!r)return x;if(x){var e=r[1],t=x[1],u=e[1],i=t[3],f=t[1],o=[0,Qx(t[2],e[2])];return j1([0,Qx(u,f)],o,i,0)}var l=r[1];return j1([0,l[1]],[0,l[2]],0,0)},dV=function(x,r){a(Jr(x),yq),p(Jr(x),kq,mq);var e=r[1];a(a(Jr(x),hq),e),a(Jr(x),_q),a(Jr(x),wq),p(Jr(x),Sq,Tq);var t=r[2];return a(a(Jr(x),Eq),t),a(Jr(x),gq),a(Jr(x),Aq)},yV=function x(r,e){return x.fun(r,e)},FT0=function x(r){return x.fun(r)};I0(yV,function(x,r){a(Jr(x),Oq),p(Jr(x),Lq,Rq);var e=r[1];if(e){var t=e[1];switch(ny(x,Nq),t[0]){case 0:var u=t[1];a(Jr(x),iG),a(a(Jr(x),fG),u),a(Jr(x),cG);break;case 1:var i=t[1];a(Jr(x),sG),a(a(Jr(x),oG),i),a(Jr(x),vG);break;case 2:var f=t[1];a(Jr(x),aG),a(a(Jr(x),lG),f),a(Jr(x),pG);break;default:var o=t[1];a(Jr(x),dG),a(a(Jr(x),yG),o),a(Jr(x),mG)}ny(x,Cq)}else ny(x,Iq);return a(Jr(x),Mq),a(Jr(x),Dq),p(Jr(x),jq,Uq),dV(x,r[2]),a(Jr(x),Jq),a(Jr(x),Xq),p(Jr(x),Vq,Yq),dV(x,r[3]),a(Jr(x),zq),a(Jr(x),Kq)}),I0(FT0,function(x){var r=Pq[1],e=RY(0),t=SO(e);return p(jr(function(u){Be(t,u),wO(t,0);var i=U1(e);return e[2]=0,e[1]=e[4],e[3]=ct(e[1]),i},0,r),yV,x)});var u1=function(x,r){return[0,x[1],x[2],r[3]]},Fs=function(x,r){var e=x[1]-r[1]|0;return e===0?x[2]-r[2]|0:e},mV=function(x,r){var e=r[1],t=x[1];if(t){var u=t[1];if(e)var i=e[1],f=aV(i),o=aV(u)-f|0,l=o===0?Tx(u[1],i[1]):o;else var l=-1}else var l=e?1:0;if(l!==0)return l;var d=Fs(x[2],r[2]);return d===0?Fs(x[3],r[3]):d},No=function(x,r){return mV(x,r)===0?1:0},kV=function x(r,e){return x.fun(r,e)};I0(kV,function(x,r){if(typeof x=="number"){var e=x;if(59<=e)switch(e){case 59:if(typeof r=="number"&&r===59)return 0;break;case 60:if(typeof r=="number"&&r===60)return 0;break;case 61:if(typeof r=="number"&&r===61)return 0;break;case 62:if(typeof r=="number"&&r===62)return 0;break;case 63:if(typeof r=="number"&&r===63)return 0;break;case 64:if(typeof r=="number"&&r===64)return 0;break;case 65:if(typeof r=="number"&&r===65)return 0;break;case 66:if(typeof r=="number"&&r===66)return 0;break;case 67:if(typeof r=="number"&&r===67)return 0;break;case 68:if(typeof r=="number"&&r===68)return 0;break;case 69:if(typeof r=="number"&&r===69)return 0;break;case 70:if(typeof r=="number"&&r===70)return 0;break;case 71:if(typeof r=="number"&&r===71)return 0;break;case 72:if(typeof r=="number"&&r===72)return 0;break;case 73:if(typeof r=="number"&&r===73)return 0;break;case 74:if(typeof r=="number"&&r===74)return 0;break;case 75:if(typeof r=="number"&&r===75)return 0;break;case 76:if(typeof r=="number"&&r===76)return 0;break;case 77:if(typeof r=="number"&&r===77)return 0;break;case 78:if(typeof r=="number"&&r===78)return 0;break;case 79:if(typeof r=="number"&&r===79)return 0;break;case 80:if(typeof r=="number"&&r===80)return 0;break;case 81:if(typeof r=="number"&&r===81)return 0;break;case 82:if(typeof r=="number"&&r===82)return 0;break;case 83:if(typeof r=="number"&&r===83)return 0;break;case 84:if(typeof r=="number"&&r===84)return 0;break;case 85:if(typeof r=="number"&&r===85)return 0;break;case 86:if(typeof r=="number"&&r===86)return 0;break;case 87:if(typeof r=="number"&&r===87)return 0;break;case 88:if(typeof r=="number"&&r===88)return 0;break;case 89:if(typeof r=="number"&&r===89)return 0;break;case 90:if(typeof r=="number"&&r===90)return 0;break;case 91:if(typeof r=="number"&&r===91)return 0;break;case 92:if(typeof r=="number"&&r===92)return 0;break;case 93:if(typeof r=="number"&&r===93)return 0;break;case 94:if(typeof r=="number"&&r===94)return 0;break;case 95:if(typeof r=="number"&&r===95)return 0;break;case 96:if(typeof r=="number"&&r===96)return 0;break;case 97:if(typeof r=="number"&&r===97)return 0;break;case 98:if(typeof r=="number"&&r===98)return 0;break;case 99:if(typeof r=="number"&&r===99)return 0;break;case 100:if(typeof r=="number"&&it===r)return 0;break;case 101:if(typeof r=="number"&&It===r)return 0;break;case 102:if(typeof r=="number"&&Jf===r)return 0;break;case 103:if(typeof r=="number"&&fn===r)return 0;break;case 104:if(typeof r=="number"&&Dt===r)return 0;break;case 105:if(typeof r=="number"&&De===r)return 0;break;case 106:if(typeof r=="number"&&l2===r)return 0;break;case 107:if(typeof r=="number"&&G2===r)return 0;break;case 108:if(typeof r=="number"&&vn===r)return 0;break;case 109:if(typeof r=="number"&&Is===r)return 0;break;case 110:if(typeof r=="number"&&V1===r)return 0;break;case 111:if(typeof r=="number"&&Ot===r)return 0;break;case 112:if(typeof r=="number"&&L2===r)return 0;break;case 113:if(typeof r=="number"&&Rr===r)return 0;break;case 114:if(typeof r=="number"&&ut===r)return 0;break;case 115:if(typeof r=="number"&&Os===r)return 0;break;case 116:if(typeof r=="number"&&Ns===r)return 0;break;default:if(typeof r=="number"&&po<=r)return 0}else switch(e){case 0:if(typeof r=="number"&&!r)return 0;break;case 1:if(typeof r=="number"&&r===1)return 0;break;case 2:if(typeof r=="number"&&r===2)return 0;break;case 3:if(typeof r=="number"&&r===3)return 0;break;case 4:if(typeof r=="number"&&r===4)return 0;break;case 5:if(typeof r=="number"&&r===5)return 0;break;case 6:if(typeof r=="number"&&r===6)return 0;break;case 7:if(typeof r=="number"&&r===7)return 0;break;case 8:if(typeof r=="number"&&r===8)return 0;break;case 9:if(typeof r=="number"&&r===9)return 0;break;case 10:if(typeof r=="number"&&r===10)return 0;break;case 11:if(typeof r=="number"&&r===11)return 0;break;case 12:if(typeof r=="number"&&r===12)return 0;break;case 13:if(typeof r=="number"&&r===13)return 0;break;case 14:if(typeof r=="number"&&r===14)return 0;break;case 15:if(typeof r=="number"&&r===15)return 0;break;case 16:if(typeof r=="number"&&r===16)return 0;break;case 17:if(typeof r=="number"&&r===17)return 0;break;case 18:if(typeof r=="number"&&r===18)return 0;break;case 19:if(typeof r=="number"&&r===19)return 0;break;case 20:if(typeof r=="number"&&r===20)return 0;break;case 21:if(typeof r=="number"&&r===21)return 0;break;case 22:if(typeof r=="number"&&r===22)return 0;break;case 23:if(typeof r=="number"&&r===23)return 0;break;case 24:if(typeof r=="number"&&r===24)return 0;break;case 25:if(typeof r=="number"&&r===25)return 0;break;case 26:if(typeof r=="number"&&r===26)return 0;break;case 27:if(typeof r=="number"&&r===27)return 0;break;case 28:if(typeof r=="number"&&r===28)return 0;break;case 29:if(typeof r=="number"&&r===29)return 0;break;case 30:if(typeof r=="number"&&r===30)return 0;break;case 31:if(typeof r=="number"&&r===31)return 0;break;case 32:if(typeof r=="number"&&r===32)return 0;break;case 33:if(typeof r=="number"&&r===33)return 0;break;case 34:if(typeof r=="number"&&r===34)return 0;break;case 35:if(typeof r=="number"&&r===35)return 0;break;case 36:if(typeof r=="number"&&r===36)return 0;break;case 37:if(typeof r=="number"&&r===37)return 0;break;case 38:if(typeof r=="number"&&r===38)return 0;break;case 39:if(typeof r=="number"&&r===39)return 0;break;case 40:if(typeof r=="number"&&r===40)return 0;break;case 41:if(typeof r=="number"&&r===41)return 0;break;case 42:if(typeof r=="number"&&r===42)return 0;break;case 43:if(typeof r=="number"&&r===43)return 0;break;case 44:if(typeof r=="number"&&r===44)return 0;break;case 45:if(typeof r=="number"&&r===45)return 0;break;case 46:if(typeof r=="number"&&r===46)return 0;break;case 47:if(typeof r=="number"&&r===47)return 0;break;case 48:if(typeof r=="number"&&r===48)return 0;break;case 49:if(typeof r=="number"&&r===49)return 0;break;case 50:if(typeof r=="number"&&r===50)return 0;break;case 51:if(typeof r=="number"&&r===51)return 0;break;case 52:if(typeof r=="number"&&r===52)return 0;break;case 53:if(typeof r=="number"&&r===53)return 0;break;case 54:if(typeof r=="number"&&r===54)return 0;break;case 55:if(typeof r=="number"&&r===55)return 0;break;case 56:if(typeof r=="number"&&r===56)return 0;break;case 57:if(typeof r=="number"&&r===57)return 0;break;default:if(typeof r=="number"&&r===58)return 0}}else switch(x[0]){case 0:if(typeof r!="number"&&r[0]===0)return Tx(x[1],r[1]);break;case 1:if(typeof r!="number"&&r[0]===1)return Tx(x[1],r[1]);break;case 2:if(typeof r!="number"&&r[0]===2){var t=Tx(x[1],r[1]),u=r[2],i=x[2];return t===0?Tx(i,u):t}break;case 3:if(typeof r!="number"&&r[0]===3){var f=Tx(x[1],r[1]),o=r[2],l=x[2];return f===0?Tx(l,o):f}break;case 4:if(typeof r!="number"&&r[0]===4){var d=Tx(x[1],r[1]),k=r[2],h=x[2];return d===0?Tx(h,k):d}break;case 5:if(typeof r!="number"&&r[0]===5)return Tx(x[1],r[1]);break;case 6:if(typeof r!="number"&&r[0]===6)return jt(x[1],r[1]);break;case 7:if(typeof r!="number"&&r[0]===7){var g=r[2],A=x[2],N=Tx(x[1],r[1]);if(N!==0)return N;if(!A)return g?-1:0;var C=A[1];return g?Tx(C,g[1]):1}break;case 8:if(typeof r!="number"&&r[0]===8)return Tx(x[1],r[1]);break;case 9:if(typeof r!="number"&&r[0]===9){var O=r[2],L=x[2],M=Tx(x[1],r[1]),V=r[3],z=x[3];if(M!==0)return M;if(L){var Y=L[1];if(O){var t0=O[1],i0=0;switch(Y){case 0:if(t0)i0=1;else var J=0;break;case 1:if(t0===1)var J=0;else i0=1;break;case 2:if(t0===2)var J=0;else i0=1;break;case 3:if(t0===3)var J=0;else i0=1;break;default:if(4<=t0)var J=0;else i0=1}if(i0)var j=function(ox){switch(ox){case 0:return 0;case 1:return 1;case 2:return 2;case 3:return 3;default:return 4}},K=j(t0),J=jt(j(Y),K);var Q=J}else var Q=1}else var Q=O?-1:0;return Q===0?Tx(z,V):Q}break;case 10:if(typeof r!="number"&&r[0]===10){var x0=Tx(x[1],r[1]),$=r[2],f0=x[2];return x0===0?Tx(f0,$):x0}break;case 11:if(typeof r!="number"&&r[0]===11){var s0=Tx(x[1],r[1]),v0=r[2],o0=x[2];return s0===0?Tx(o0,v0):s0}break;case 12:if(typeof r!="number"&&r[0]===12)return Tx(x[1],r[1]);break;case 13:if(typeof r!="number"&&r[0]===13)return Tx(x[1],r[1]);break;case 14:if(typeof r!="number"&&r[0]===14)return jt(x[1],r[1]);break;case 15:if(typeof r!="number"&&r[0]===15){var c0=Tx(x[1],r[1]),d0=r[4],E0=r[3],L0=r[2],X0=x[4],xx=x[3],g0=x[2];if(c0!==0)return c0;var $0=jt(g0,L0);if($0!==0)return $0;var n0=jt(xx,E0);return n0===0?jt(X0,d0):n0}break;case 16:if(typeof r!="number"&&r[0]===16){var ix=jt(x[1],r[1]),rx=r[2],dx=x[2];return ix===0?Tx(dx,rx):ix}break;case 17:if(typeof r!="number"&&r[0]===17)return jt(x[1],r[1]);break;case 18:if(typeof r!="number"&&r[0]===18)return Tx(x[1],r[1]);break;case 19:if(typeof r!="number"&&r[0]===19)return Tx(x[1],r[1]);break;case 20:if(typeof r!="number"&&r[0]===20)return Tx(x[1],r[1]);break;case 21:if(typeof r!="number"&&r[0]===21){var ax=Tx(x[1],r[1]),Sx=r[2],D0=x[2];return ax===0?Tx(D0,Sx):ax}break;case 22:if(typeof r!="number"&&r[0]===22){var N0=r[1],A0=x[1];if(ol===A0){if(ol===N0)return 0}else if(rl<=A0){if(rl===N0)return 0}else if(QJ===N0)return 0;var Y0=function(K0){return ol===K0?0:rl<=K0?2:1},C0=Y0(N0);return jt(Y0(A0),C0)}break;case 23:if(typeof r!="number"&&r[0]===23)return Tx(x[1],r[1]);break;case 24:if(typeof r!="number"&&r[0]===24)return Tx(x[1],r[1]);break;case 25:if(typeof r!="number"&&r[0]===25){var F=Tx(x[1],r[1]),H=r[2],B=x[2];return F===0?Tx(B,H):F}break;case 26:if(typeof r!="number"&&r[0]===26){var a0=Tx(x[1],r[1]),m0=r[2],P0=x[2];return a0===0?Tx(P0,m0):a0}break;default:if(typeof r!="number"&&r[0]===27)return Tx(x[1],r[1])}function D(K0){if(typeof K0!="number")switch(K0[0]){case 0:return 20;case 1:return 21;case 2:return 23;case 3:return 24;case 4:return 25;case 5:return 26;case 6:return 27;case 7:return 28;case 8:return 30;case 9:return 31;case 10:return 32;case 11:return 34;case 12:return 35;case 13:return 37;case 14:return 40;case 15:return 52;case 16:return 55;case 17:return 57;case 18:return 66;case 19:return 75;case 20:return 84;case 21:return 91;case 22:return Ot;case 23:return xl;case 24:return Af;case 25:return vh;case 26:return hU;default:return sJ}var j0=K0;if(59<=j0)switch(j0){case 59:return 79;case 60:return 80;case 61:return 81;case 62:return 82;case 63:return 83;case 64:return 85;case 65:return 86;case 66:return 87;case 67:return 88;case 68:return 89;case 69:return 90;case 70:return 92;case 71:return 93;case 72:return 94;case 73:return 95;case 74:return 96;case 75:return 97;case 76:return 98;case 77:return 99;case 78:return it;case 79:return It;case 80:return Jf;case 81:return fn;case 82:return Dt;case 83:return De;case 84:return l2;case 85:return G2;case 86:return vn;case 87:return Is;case 88:return V1;case 89:return L2;case 90:return Rr;case 91:return ut;case 92:return Os;case 93:return Ns;case 94:return po;case 95:return pa;case 96:return H3;case 97:return Hr;case 98:return Rt;case 99:return Oa;case 100:return Ci;case 101:return L4;case 102:return Yr;case 103:return m1;case 104:return dl;case 105:return vJ;case 106:return kJ;case 107:return QM;case 108:return Aj;case 109:return uX;case 110:return jU;case 111:return y_;case 112:return bD;case 113:return WU;case 114:return iU;case 115:return Oj;case 116:return _J;default:return ZD}switch(j0){case 0:return 0;case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7;case 8:return 8;case 9:return 9;case 10:return 10;case 11:return 11;case 12:return 12;case 13:return 13;case 14:return 14;case 15:return 15;case 16:return 16;case 17:return 17;case 18:return 18;case 19:return 19;case 20:return 22;case 21:return 29;case 22:return 33;case 23:return 36;case 24:return 38;case 25:return 39;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 53;case 38:return 54;case 39:return 56;case 40:return 58;case 41:return 59;case 42:return 60;case 43:return 61;case 44:return 62;case 45:return 63;case 46:return 64;case 47:return 65;case 48:return 67;case 49:return 68;case 50:return 69;case 51:return 70;case 52:return 71;case 53:return 72;case 54:return 73;case 55:return 74;case 56:return 76;case 57:return 77;default:return 78}}var O0=D(r);return jt(D(x),O0)});var QT0=[Gr,xx0,Js(0)],GT0=function(x){if(typeof x=="number"){var r=x;if(59<=r)switch(r){case 59:return HH;case 60:return bH;case 61:return xb;case 62:return rb;case 63:return eb;case 64:return tb;case 65:return nb;case 66:return ub;case 67:return ib;case 68:return fb;case 69:return cb;case 70:return sb;case 71:return ob;case 72:return vb;case 73:return ab;case 74:return lb;case 75:return pb;case 76:return db;case 77:return yb;case 78:return mb;case 79:return kb;case 80:return hb;case 81:return _b;case 82:return wb;case 83:return Tb;case 84:return Sb;case 85:return Eb;case 86:return gb;case 87:return Ab;case 88:return Pb;case 89:return Nb;case 90:return Cb;case 91:return Ib;case 92:return Ob;case 93:return Rb;case 94:return Lb;case 95:return Mb;case 96:return Db;case 97:return Ub;case 98:return jb;case 99:return Jb;case 100:return Xb;case 101:return Yb;case 102:return Vb;case 103:return zb;case 104:return Kb;case 105:return Bb;case 106:return Wb;case 107:return Zb;case 108:return $b;case 109:return Fb;case 110:return Qb;case 111:return Gb;case 112:return qb;case 113:return Hb;case 114:return bb;case 115:return x00;case 116:return r00;default:return e00}switch(r){case 0:return Bq;case 1:return Wq;case 2:return Zq;case 3:return Fx(Fq,$q);case 4:return Qq;case 5:return Gq;case 6:return qq;case 7:return Hq;case 8:return bq;case 9:return xH;case 10:return rH;case 11:return eH;case 12:return Fx(nH,tH);case 13:return uH;case 14:return iH;case 15:return fH;case 16:return cH;case 17:return sH;case 18:return oH;case 19:return vH;case 20:return aH;case 21:return lH;case 22:return pH;case 23:return dH;case 24:return yH;case 25:return mH;case 26:return kH;case 27:return hH;case 28:return _H;case 29:return wH;case 30:return TH;case 31:return SH;case 32:return EH;case 33:return gH;case 34:return Fx(PH,AH);case 35:return NH;case 36:return CH;case 37:return IH;case 38:return OH;case 39:return RH;case 40:return LH;case 41:return MH;case 42:return DH;case 43:return UH;case 44:return jH;case 45:return JH;case 46:return XH;case 47:return YH;case 48:return VH;case 49:return zH;case 50:return KH;case 51:return BH;case 52:return WH;case 53:return ZH;case 54:return $H;case 55:return FH;case 56:return QH;case 57:return GH;default:return qH}}switch(x[0]){case 0:var e=x[1];return a(Tr(t00),e);case 1:var t=x[1];return a(Tr(n00),t);case 2:var u=x[2],i=x[1];return p(Tr(u00),u,i);case 3:var f=x[2],o=x[1];return H0(Tr(i00),f,f,o);case 4:var l=x[2],d=x[1];return p(Tr(f00),l,d);case 5:var k=x[1];return a(Tr(c00),k);case 6:return x[1]?s00:o00;case 7:var h=x[2],g=x[1],A=a(Tr(v00),g);if(!h)return a(Tr(l00),A);var N=h[1];return p(Tr(a00),N,A);case 8:var C=x[1];return p(Tr(p00),C,C);case 9:var O=x[3],L=x[2],M=x[1];if(!L)return p(Tr(m00),O,M);var V=L[1];if(V===3)return p(Tr(y00),O,M);switch(V){case 0:var z=rG;break;case 1:var z=eG;break;case 2:var z=tG;break;case 3:var z=nG;break;default:var z=uG}return ve(Tr(d00),M,z,O,z);case 10:var Y=x[2],t0=x[1],i0=eY(Y);return H0(Tr(k00),Y,i0,t0);case 11:var j=x[2],K=x[1];return p(Tr(h00),j,K);case 12:var J=x[1];return a(Tr(_00),J);case 13:var Q=x[1];return a(Tr(w00),Q);case 14:return x[1]?Fx(S00,T00):Fx(g00,E00);case 15:var x0=x[1],$=x[4],f0=x[3],s0=x[2]?A00:P00,v0=f0?N00:C00,o0=$?Fx(I00,x0):x0;return H0(Tr(O00),s0,v0,o0);case 16:var c0=x[2],d0=[0,0],E0=[0,Xx(c0)],L0=Xx(c0)-1|0,X0=x[1];if(L0>=0)for(var xx=L0;;){if(fx(c0,xx)===45){var g0=d0[1];d0[1]=[0,m2(c0,xx+1|0,(E0[1]-xx|0)-1|0),g0],E0[1]=xx}var $0=xx-1|0;if(xx!==0){var xx=$0;continue}break}var n0=d0[1],ix=m2(c0,0,E0[1]);if(n0)for(var rx=[0,ix,Tn(eY,n0)],dx=0,ax=rx,Sx=0;;){if(ax){var D0=ax[1];if(ax[2]){var N0=(Xx(D0)|0)+dx|0,A0=ax[2],Y0=dx<=N0?N0:y2(NZ),dx=Y0,ax=A0;continue}var C0=Xx(D0)+dx|0}else var C0=dx;for(var F=w1(C0),H=Sx,B=rx;;){if(B){var a0=B[1];if(B[2]){var m0=B[2];Fc(a0,0,F,H,Xx(a0)),Fc(kx,0,F,H+Xx(a0)|0,0);var H=H+Xx(a0)|0|0,B=m0;continue}Fc(a0,0,F,H,Xx(a0))}var P0=S2(F);break}break}else var P0=ix;var D=X0?R00:L00;return H0(Tr(M00),c0,P0,D);case 17:var O0=x[1]?D00:U00;return a(Tr(j00),O0);case 18:var K0=x[1];return a(Tr(J00),K0);case 19:var j0=x[1];return a(Tr(X00),j0);case 20:var ox=x[1];return a(Tr(Y00),ox);case 21:var b0=x[2],_x=x[1];return p(Tr(V00),_x,b0);case 22:var B0=x[1];if(ol===B0)var T=Z00,X=$00;else if(rl<=B0)var T=z00,X=K00;else var T=B00,X=W00;return p(Tr(F00),X,T);case 23:var F0=x[1];return a(Tr(Q00),F0);case 24:var sx=x[1];return a(Tr(G00),sx);case 25:var ex=x[2],U0=x[1];return p(Tr(q00),U0,ex);case 26:var Nx=x[2],mx=x[1];return p(Tr(H00),mx,Nx);default:var Bx=x[1];return a(Tr(b00),Bx)}},hV=rx0.slice(),VO=function(x){for(var r=0,e=hV.length-1-1|0;;){if(ex)return 1;var r=t+1|0}},_V=0,wV=function(x){var r=x[2];return[0,x[1],[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12]],x[3],x[4],x[5],x[6],x[7]]},TV=function(x){return x[3][1]},ay=function(x,r){return x!==r[4]?[0,r[1],r[2],r[3],x,r[5],r[6],r[7]]:r},zO=function x(r,e){return x.fun(r,e)},SV=function x(r,e){return x.fun(r,e)},KO=function x(r,e){return x.fun(r,e)},BO=function x(r,e){return x.fun(r,e)};I0(zO,function(x,r){if(typeof x=="number"){var e=x;if(65<=e)if(98<=e)switch(e){case 98:if(typeof r=="number"&&r===98)return 1;break;case 99:if(typeof r=="number"&&r===99)return 1;break;case 100:if(typeof r=="number"&&it===r)return 1;break;case 101:if(typeof r=="number"&&It===r)return 1;break;case 102:if(typeof r=="number"&&Jf===r)return 1;break;case 103:if(typeof r=="number"&&fn===r)return 1;break;case 104:if(typeof r=="number"&&Dt===r)return 1;break;case 105:if(typeof r=="number"&&De===r)return 1;break;case 106:if(typeof r=="number"&&l2===r)return 1;break;case 107:if(typeof r=="number"&&G2===r)return 1;break;case 108:if(typeof r=="number"&&vn===r)return 1;break;case 109:if(typeof r=="number"&&Is===r)return 1;break;case 110:if(typeof r=="number"&&V1===r)return 1;break;case 111:if(typeof r=="number"&&Ot===r)return 1;break;case 112:if(typeof r=="number"&&L2===r)return 1;break;case 113:if(typeof r=="number"&&Rr===r)return 1;break;case 114:if(typeof r=="number"&&ut===r)return 1;break;case 115:if(typeof r=="number"&&Os===r)return 1;break;case 116:if(typeof r=="number"&&Ns===r)return 1;break;case 117:if(typeof r=="number"&&po===r)return 1;break;case 118:if(typeof r=="number"&&pa===r)return 1;break;case 119:if(typeof r=="number"&&xl===r)return 1;break;case 120:if(typeof r=="number"&&Af===r)return 1;break;case 121:if(typeof r=="number"&&H3===r)return 1;break;case 122:if(typeof r=="number"&&Hr===r)return 1;break;case 123:if(typeof r=="number"&&Rt===r)return 1;break;case 124:if(typeof r=="number"&&Oa===r)return 1;break;case 125:if(typeof r=="number"&&Ci===r)return 1;break;case 126:if(typeof r=="number"&&L4===r)return 1;break;case 127:if(typeof r=="number"&&Yr===r)return 1;break;case 128:if(typeof r=="number"&&m1===r)return 1;break;default:if(typeof r=="number"&&dl<=r)return 1}else switch(e){case 65:if(typeof r=="number"&&r===65)return 1;break;case 66:if(typeof r=="number"&&r===66)return 1;break;case 67:if(typeof r=="number"&&r===67)return 1;break;case 68:if(typeof r=="number"&&r===68)return 1;break;case 69:if(typeof r=="number"&&r===69)return 1;break;case 70:if(typeof r=="number"&&r===70)return 1;break;case 71:if(typeof r=="number"&&r===71)return 1;break;case 72:if(typeof r=="number"&&r===72)return 1;break;case 73:if(typeof r=="number"&&r===73)return 1;break;case 74:if(typeof r=="number"&&r===74)return 1;break;case 75:if(typeof r=="number"&&r===75)return 1;break;case 76:if(typeof r=="number"&&r===76)return 1;break;case 77:if(typeof r=="number"&&r===77)return 1;break;case 78:if(typeof r=="number"&&r===78)return 1;break;case 79:if(typeof r=="number"&&r===79)return 1;break;case 80:if(typeof r=="number"&&r===80)return 1;break;case 81:if(typeof r=="number"&&r===81)return 1;break;case 82:if(typeof r=="number"&&r===82)return 1;break;case 83:if(typeof r=="number"&&r===83)return 1;break;case 84:if(typeof r=="number"&&r===84)return 1;break;case 85:if(typeof r=="number"&&r===85)return 1;break;case 86:if(typeof r=="number"&&r===86)return 1;break;case 87:if(typeof r=="number"&&r===87)return 1;break;case 88:if(typeof r=="number"&&r===88)return 1;break;case 89:if(typeof r=="number"&&r===89)return 1;break;case 90:if(typeof r=="number"&&r===90)return 1;break;case 91:if(typeof r=="number"&&r===91)return 1;break;case 92:if(typeof r=="number"&&r===92)return 1;break;case 93:if(typeof r=="number"&&r===93)return 1;break;case 94:if(typeof r=="number"&&r===94)return 1;break;case 95:if(typeof r=="number"&&r===95)return 1;break;case 96:if(typeof r=="number"&&r===96)return 1;break;default:if(typeof r=="number"&&r===97)return 1}else if(33<=e)switch(e){case 33:if(typeof r=="number"&&r===33)return 1;break;case 34:if(typeof r=="number"&&r===34)return 1;break;case 35:if(typeof r=="number"&&r===35)return 1;break;case 36:if(typeof r=="number"&&r===36)return 1;break;case 37:if(typeof r=="number"&&r===37)return 1;break;case 38:if(typeof r=="number"&&r===38)return 1;break;case 39:if(typeof r=="number"&&r===39)return 1;break;case 40:if(typeof r=="number"&&r===40)return 1;break;case 41:if(typeof r=="number"&&r===41)return 1;break;case 42:if(typeof r=="number"&&r===42)return 1;break;case 43:if(typeof r=="number"&&r===43)return 1;break;case 44:if(typeof r=="number"&&r===44)return 1;break;case 45:if(typeof r=="number"&&r===45)return 1;break;case 46:if(typeof r=="number"&&r===46)return 1;break;case 47:if(typeof r=="number"&&r===47)return 1;break;case 48:if(typeof r=="number"&&r===48)return 1;break;case 49:if(typeof r=="number"&&r===49)return 1;break;case 50:if(typeof r=="number"&&r===50)return 1;break;case 51:if(typeof r=="number"&&r===51)return 1;break;case 52:if(typeof r=="number"&&r===52)return 1;break;case 53:if(typeof r=="number"&&r===53)return 1;break;case 54:if(typeof r=="number"&&r===54)return 1;break;case 55:if(typeof r=="number"&&r===55)return 1;break;case 56:if(typeof r=="number"&&r===56)return 1;break;case 57:if(typeof r=="number"&&r===57)return 1;break;case 58:if(typeof r=="number"&&r===58)return 1;break;case 59:if(typeof r=="number"&&r===59)return 1;break;case 60:if(typeof r=="number"&&r===60)return 1;break;case 61:if(typeof r=="number"&&r===61)return 1;break;case 62:if(typeof r=="number"&&r===62)return 1;break;case 63:if(typeof r=="number"&&r===63)return 1;break;default:if(typeof r=="number"&&r===64)return 1}else switch(e){case 0:if(typeof r=="number"&&!r)return 1;break;case 1:if(typeof r=="number"&&r===1)return 1;break;case 2:if(typeof r=="number"&&r===2)return 1;break;case 3:if(typeof r=="number"&&r===3)return 1;break;case 4:if(typeof r=="number"&&r===4)return 1;break;case 5:if(typeof r=="number"&&r===5)return 1;break;case 6:if(typeof r=="number"&&r===6)return 1;break;case 7:if(typeof r=="number"&&r===7)return 1;break;case 8:if(typeof r=="number"&&r===8)return 1;break;case 9:if(typeof r=="number"&&r===9)return 1;break;case 10:if(typeof r=="number"&&r===10)return 1;break;case 11:if(typeof r=="number"&&r===11)return 1;break;case 12:if(typeof r=="number"&&r===12)return 1;break;case 13:if(typeof r=="number"&&r===13)return 1;break;case 14:if(typeof r=="number"&&r===14)return 1;break;case 15:if(typeof r=="number"&&r===15)return 1;break;case 16:if(typeof r=="number"&&r===16)return 1;break;case 17:if(typeof r=="number"&&r===17)return 1;break;case 18:if(typeof r=="number"&&r===18)return 1;break;case 19:if(typeof r=="number"&&r===19)return 1;break;case 20:if(typeof r=="number"&&r===20)return 1;break;case 21:if(typeof r=="number"&&r===21)return 1;break;case 22:if(typeof r=="number"&&r===22)return 1;break;case 23:if(typeof r=="number"&&r===23)return 1;break;case 24:if(typeof r=="number"&&r===24)return 1;break;case 25:if(typeof r=="number"&&r===25)return 1;break;case 26:if(typeof r=="number"&&r===26)return 1;break;case 27:if(typeof r=="number"&&r===27)return 1;break;case 28:if(typeof r=="number"&&r===28)return 1;break;case 29:if(typeof r=="number"&&r===29)return 1;break;case 30:if(typeof r=="number"&&r===30)return 1;break;case 31:if(typeof r=="number"&&r===31)return 1;break;default:if(typeof r=="number"&&r===32)return 1}}else switch(x[0]){case 0:if(typeof r!="number"&&r[0]===0){var t=r[2],u=r[1],i=x[2],f=a(a(KO,x[1]),u);return f&&Ar(i,t)}break;case 1:if(typeof r!="number"&&r[0]===1){var o=r[2],l=r[1],d=x[2],k=a(a(BO,x[1]),l);return k&&Ar(d,o)}break;case 2:if(typeof r!="number"&&r[0]===2){var h=r[1],g=x[1],A=h[4],N=h[3],C=h[2],O=g[4],L=g[3],M=g[2],V=No(g[1],h[1]),z=V&&Ar(M,C),Y=z&&Ar(L,N);return Y&&(O===A?1:0)}break;case 3:if(typeof r!="number"&&r[0]===3){var t0=r[1],i0=x[1],j=t0[5],K=t0[4],J=t0[3],Q=t0[2],x0=i0[5],$=i0[4],f0=i0[3],s0=i0[2],v0=No(i0[1],t0[1]),o0=v0&&Ar(s0,Q),c0=o0&&Ar(f0,J),d0=c0&&($===K?1:0);return d0&&(x0===j?1:0)}break;case 4:if(typeof r!="number"&&r[0]===4){var E0=r[3],L0=r[2],X0=x[3],xx=x[2],g0=No(x[1],r[1]),$0=g0&&Ar(xx,L0);return $0&&Ar(X0,E0)}break;case 5:if(typeof r!="number"&&r[0]===5){var n0=r[3],ix=r[2],rx=x[3],dx=x[2],ax=No(x[1],r[1]),Sx=ax&&Ar(dx,ix);return Sx&&Ar(rx,n0)}break;case 6:if(typeof r!="number"&&r[0]===6){var D0=r[2],N0=x[2],A0=No(x[1],r[1]);return A0&&Ar(N0,D0)}break;case 7:if(typeof r!="number"&&r[0]===7)return Ar(x[1],r[1]);break;case 8:if(typeof r!="number"&&r[0]===8){var Y0=Ar(x[1],r[1]),C0=r[2],F=x[2];return Y0&&No(F,C0)}break;case 9:if(typeof r!="number"&&r[0]===9){var H=r[3],B=r[2],a0=x[3],m0=x[2],P0=No(x[1],r[1]),D=P0&&Ar(m0,B);return D&&Ar(a0,H)}break;case 10:if(typeof r!="number"&&r[0]===10){var O0=r[3],K0=r[2],j0=x[3],ox=x[2],b0=No(x[1],r[1]),_x=b0&&Ar(ox,K0);return _x&&Ar(j0,O0)}break;case 11:if(typeof r!="number"&&r[0]===11){var B0=r[1];return a(a(SV,x[1]),B0)}break;case 12:if(typeof r!="number"&&r[0]===12){var T=r[3],X=r[2],F0=r[1],sx=x[3],ex=x[2],U0=a(a(KO,x[1]),F0),Nx=U0&&(ex==X?1:0);return Nx&&Ar(sx,T)}break;default:if(typeof r!="number"&&r[0]===13){var mx=r[2],Bx=x[2],Gx=r[3],J0=r[1],bx=x[3],Jx=a(a(BO,x[1]),J0);if(Jx){var W0=0;if(Bx)if(mx)var nr=Ud(Bx[1],mx[1]);else W0=1;else if(mx)W0=1;else var nr=1;if(W0)var nr=0;var V0=nr}else var V0=Jx;return V0&&Ar(bx,Gx)}}return 0}),I0(SV,function(x,r){if(x){if(r)return 1}else if(!r)return 1;return 0}),I0(KO,function(x,r){switch(x){case 0:if(!r)return 1;break;case 1:if(r===1)return 1;break;case 2:if(r===2)return 1;break;case 3:if(r===3)return 1;break;default:if(4<=r)return 1}return 0}),I0(BO,function(x,r){switch(x){case 0:if(!r)return 1;break;case 1:if(r===1)return 1;break;default:if(2<=r)return 1}return 0});var EV=function(x){if(typeof x!="number")switch(x[0]){case 0:return St0;case 1:return Et0;case 2:return gt0;case 3:return At0;case 4:return Pt0;case 5:return Nt0;case 6:return Ct0;case 7:return It0;case 8:return Ot0;case 9:return Rt0;case 10:return Lt0;case 11:return Mt0;case 12:return Dt0;default:return Ut0}var r=x;if(65<=r){if(98<=r)switch(r){case 98:return We0;case 99:return Ze0;case 100:return $e0;case 101:return Fe0;case 102:return Qe0;case 103:return Ge0;case 104:return qe0;case 105:return He0;case 106:return be0;case 107:return xt0;case 108:return rt0;case 109:return et0;case 110:return tt0;case 111:return nt0;case 112:return ut0;case 113:return it0;case 114:return ft0;case 115:return ct0;case 116:return st0;case 117:return ot0;case 118:return vt0;case 119:return at0;case 120:return lt0;case 121:return pt0;case 122:return dt0;case 123:return yt0;case 124:return mt0;case 125:return kt0;case 126:return ht0;case 127:return _t0;case 128:return wt0;default:return Tt0}switch(r){case 65:return ae0;case 66:return le0;case 67:return pe0;case 68:return de0;case 69:return ye0;case 70:return me0;case 71:return ke0;case 72:return he0;case 73:return _e0;case 74:return we0;case 75:return Te0;case 76:return Se0;case 77:return Ee0;case 78:return ge0;case 79:return Ae0;case 80:return Pe0;case 81:return Ne0;case 82:return Ce0;case 83:return Ie0;case 84:return Oe0;case 85:return Re0;case 86:return Le0;case 87:return Me0;case 88:return De0;case 89:return Ue0;case 90:return je0;case 91:return Je0;case 92:return Xe0;case 93:return Ye0;case 94:return Ve0;case 95:return ze0;case 96:return Ke0;default:return Be0}}if(33<=r)switch(r){case 33:return M20;case 34:return D20;case 35:return U20;case 36:return j20;case 37:return J20;case 38:return X20;case 39:return Y20;case 40:return V20;case 41:return z20;case 42:return K20;case 43:return B20;case 44:return W20;case 45:return Z20;case 46:return $20;case 47:return F20;case 48:return Q20;case 49:return G20;case 50:return q20;case 51:return H20;case 52:return b20;case 53:return xe0;case 54:return re0;case 55:return ee0;case 56:return te0;case 57:return ne0;case 58:return ue0;case 59:return ie0;case 60:return fe0;case 61:return ce0;case 62:return se0;case 63:return oe0;default:return ve0}switch(r){case 0:return r20;case 1:return e20;case 2:return t20;case 3:return n20;case 4:return u20;case 5:return i20;case 6:return f20;case 7:return c20;case 8:return s20;case 9:return o20;case 10:return v20;case 11:return a20;case 12:return l20;case 13:return p20;case 14:return d20;case 15:return y20;case 16:return m20;case 17:return k20;case 18:return h20;case 19:return _20;case 20:return w20;case 21:return T20;case 22:return S20;case 23:return E20;case 24:return g20;case 25:return A20;case 26:return P20;case 27:return N20;case 28:return C20;case 29:return I20;case 30:return O20;case 31:return R20;default:return L20}},WO=function(x){if(typeof x!="number")switch(x[0]){case 0:return x[2];case 1:return x[2];case 2:return x[1][3];case 3:var r=x[1],e=r[5],t=r[4],u=r[3];return t&&e?Fx(B10,Fx(u,K10)):t?Fx(Z10,Fx(u,W10)):e?Fx(F10,Fx(u,$10)):Fx(G10,Fx(u,Q10));case 4:return x[3];case 5:var i=x[2];return Fx(H10,Fx(i,Fx(q10,x[3])));case 6:return x[2];case 7:return x[1];case 8:return x[1];case 9:return x[3];case 10:return x[3];case 11:return x[1]?b10:x20;case 12:return x[3];default:return x[3]}var f=x;if(65<=f){if(98<=f)switch(f){case 98:return v10;case 99:return a10;case 100:return l10;case 101:return p10;case 102:return d10;case 103:return y10;case 104:return m10;case 105:return k10;case 106:return h10;case 107:return _10;case 108:return w10;case 109:return T10;case 110:return S10;case 111:return E10;case 112:return g10;case 113:return A10;case 114:return P10;case 115:return N10;case 116:return C10;case 117:return I10;case 118:return O10;case 119:return R10;case 120:return L10;case 121:return M10;case 122:return D10;case 123:return U10;case 124:return j10;case 125:return J10;case 126:return X10;case 127:return Y10;case 128:return V10;default:return z10}switch(f){case 65:return Rr0;case 66:return Lr0;case 67:return Mr0;case 68:return Dr0;case 69:return Ur0;case 70:return jr0;case 71:return Jr0;case 72:return Xr0;case 73:return Yr0;case 74:return Vr0;case 75:return zr0;case 76:return Kr0;case 77:return Br0;case 78:return Wr0;case 79:return Zr0;case 80:return $r0;case 81:return Fr0;case 82:return Qr0;case 83:return Gr0;case 84:return qr0;case 85:return Hr0;case 86:return br0;case 87:return x10;case 88:return r10;case 89:return e10;case 90:return t10;case 91:return n10;case 92:return u10;case 93:return i10;case 94:return f10;case 95:return c10;case 96:return s10;default:return o10}}if(33<=f)switch(f){case 33:return xr0;case 34:return rr0;case 35:return er0;case 36:return tr0;case 37:return nr0;case 38:return ur0;case 39:return ir0;case 40:return fr0;case 41:return cr0;case 42:return sr0;case 43:return or0;case 44:return vr0;case 45:return ar0;case 46:return lr0;case 47:return pr0;case 48:return dr0;case 49:return yr0;case 50:return mr0;case 51:return kr0;case 52:return hr0;case 53:return _r0;case 54:return wr0;case 55:return Tr0;case 56:return Sr0;case 57:return Er0;case 58:return gr0;case 59:return Ar0;case 60:return Pr0;case 61:return Nr0;case 62:return Cr0;case 63:return Ir0;default:return Or0}switch(f){case 0:return wx0;case 1:return Tx0;case 2:return Sx0;case 3:return Ex0;case 4:return gx0;case 5:return Ax0;case 6:return Px0;case 7:return Nx0;case 8:return Cx0;case 9:return Ix0;case 10:return Ox0;case 11:return Rx0;case 12:return Lx0;case 13:return Mx0;case 14:return Dx0;case 15:return Ux0;case 16:return jx0;case 17:return Jx0;case 18:return Xx0;case 19:return Yx0;case 20:return Vx0;case 21:return zx0;case 22:return Kx0;case 23:return Bx0;case 24:return Wx0;case 25:return Zx0;case 26:return $x0;case 27:return Fx0;case 28:return Qx0;case 29:return Gx0;case 30:return qx0;case 31:return Hx0;default:return bx0}},ly=function(x){return a(Tr(_x0),x)},ZO=function(x,r){var e=x?x[1]:0,t=0;if(typeof r=="number")if(Rr===r)var u=nx0,i=ux0;else t=1;else switch(r[0]){case 3:var u=ix0,i=fx0;break;case 5:var u=cx0,i=sx0;break;case 0:case 12:var u=vx0,i=ax0;break;case 1:case 13:var u=lx0,i=px0;break;case 4:case 8:var u=mx0,i=kx0;break;case 6:case 7:case 11:t=1;break;default:var u=dx0,i=yx0}if(t)var u=ox0,i=ly(WO(r));return e?Fx(u,Fx(hx0,i)):i},qT0=function(x){return Pv>>0)var t=w(x);else switch(e){case 0:var t=1;break;case 1:var t=2;break;case 2:var t=0;break;default:if(e0(x,2),Mo(m(x))===0){var u=Yv(m(x));if(u===0)var t=Pr(m(x))===0&&Pr(m(x))===0&&Pr(m(x))===0?0:w(x);else if(u===1&&Pr(m(x))===0)for(;;){var i=Xv(m(x));if(i!==0){var t=i===1?0:w(x);break}}else var t=w(x)}else var t=w(x)}if(2>>0)throw q0([0,wr,jt0],1);switch(t){case 0:continue;case 1:return 1;default:if(VO(xV(x)))continue;return eV(x,1),0}}},Jy=function(x,r){var e=r-x[3][2]|0;return[0,TV(x),e]},ql=function(x,r,e){var t=Jy(x,e),u=Jy(x,r);return[0,x[1],u,t]},h2=function(x,r){return Jy(x,r[6])},de=function(x,r){return Jy(x,r[3])},Vr=function(x,r){return ql(x,r[6],r[3])},GV=function(x,r){var e=0;if(typeof r=="number")e=1;else switch(r[0]){case 2:var t=r[1][1];break;case 3:return r[1][1];case 4:var t=r[1];break;case 5:return r[1];case 8:var t=r[2];break;case 9:return r[1];case 10:return r[1];default:e=1}return e?Vr(x,x[2]):t},_2=function(x,r,e){return[0,x[1],x[2],x[3],x[4],x[5],[0,[0,r,e],x[6]],x[7]]},qV=function(x,r,e){return _2(x,r,[24,ly(e)])},qO=function(x,r,e,t){return _2(x,r,[25,e,t])},vt=function(x,r){return _2(x,r,es0)},z2=function(x,r){var e=r[3],t=[0,TV(x)+1|0,e];return[0,x[1],x[2],t,x[4],x[5],x[6],x[7]]},Kt=function(x,r,e,t,u){var i=[0,x[1],r,e],f=U1(t),o=u?0:1;return[0,i,[0,o,f,x[7][3][1]>>0)var l=w(t);else switch(o){case 0:var l=2;break;case 1:for(;;){e0(t,3);var d=m(t),k=-1>>0)return Ox(Qc0);switch(l){case 0:var A=bV(i,e,t,2,0),N=A[1],C=ft(Fx(Gc0,A[2])),O=0<=C?1:0,L=O&&(C<=55295?1:0);if(L)var V=L;else var M=57344<=C?1:0,V=M&&(C<=f5?1:0);var z=V?HV(i,N,C):_2(i,N,32);bc(u,C);var i=z;continue;case 1:var Y=bV(i,e,t,3,1),t0=Y[1],i0=ft(Fx(qc0,Y[2])),j=HV(i,t0,i0);bc(u,i0);var i=j;continue;case 2:return[0,i,U1(u)];default:sy(t,u);continue}}},A1=function(x,r,e){var t=vt(x,Vr(x,r));return $a(r),p(e,t,r)},Vv=function(x,r,e){for(var t=x;;){pr(e);var u=m(e),i=-1>>0)var f=w(e);else switch(i){case 0:for(;;){e0(e,3);var o=m(e),l=-1>>0){var h=vt(t,Vr(t,e));return[0,h,de(h,e)]}switch(f){case 0:var g=z2(t,e);sy(e,r);var t=g;continue;case 1:var A=t[4]?qO(t,Vr(t,e),Yt0,Xt0):t;return[0,A,de(A,e)];case 2:if(t[4])return[0,t,de(t,e)];vr(r,Vt0);continue;default:sy(e,r);continue}}},Ha=function(x,r,e){for(;;){pr(e);var t=m(e),u=13>>0)var i=w(e);else switch(u){case 0:var i=0;break;case 1:for(;;){e0(e,2);var f=m(e),o=-1>>0)return Ox(zt0);switch(i){case 0:return[0,x,de(x,e)];case 1:var l=de(x,e),d=l[2],k=l[1],h=z2(x,e);return[0,h,[0,k,d-cy(e)|0]];default:sy(e,r);continue}}},rz=function(x,r){function e(t0){return e0(t0,3),V2(m(t0))===0?2:w(t0)}pr(r);var t=m(r),u=Af>>0)var i=w(r);else switch(u){case 0:var i=0;break;case 1:var i=16;break;case 2:var i=15;break;case 3:e0(r,15);var i=pe(m(r))===0?15:w(r);break;case 4:e0(r,4);var i=V2(m(r))===0?e(r):w(r);break;case 5:e0(r,11);var i=V2(m(r))===0?e(r):w(r);break;case 6:var i=0;break;case 7:var i=5;break;case 8:var i=6;break;case 9:var i=7;break;case 10:var i=8;break;case 11:var i=9;break;case 12:e0(r,14);var f=Yv(m(r));if(f===0)var i=Pr(m(r))===0&&Pr(m(r))===0&&Pr(m(r))===0?12:w(r);else if(f===1&&Pr(m(r))===0)for(;;){var o=Xv(m(r));if(o!==0){var i=o===1?13:w(r);break}}else var i=w(r);break;case 13:var i=10;break;default:e0(r,14);var i=Pr(m(r))===0&&Pr(m(r))===0?1:w(r)}if(16>>0)return Ox(Dc0);switch(i){case 0:var l=Yx(r);return[0,x,l,t1(r),0];case 1:var d=Yx(r);return[0,x,d,[0,ft(Fx(Uc0,d))],0];case 2:var k=Yx(r),h=ft(Fx(jc0,k));return hv<=h?[0,x,k,[0,h>>>3|0,48+(h&7)|0],1]:[0,x,k,[0,h],1];case 3:var g=Yx(r);return[0,x,g,[0,ft(Fx(Jc0,g))],1];case 4:return[0,x,Xc0,[0,0],0];case 5:return[0,x,Yc0,[0,8],0];case 6:return[0,x,Vc0,[0,12],0];case 7:return[0,x,zc0,[0,10],0];case 8:return[0,x,Kc0,[0,13],0];case 9:return[0,x,Bc0,[0,9],0];case 10:return[0,x,Wc0,[0,11],0];case 11:var A=Yx(r);return[0,x,A,[0,ft(Fx(Zc0,A))],1];case 12:var N=Yx(r);return[0,x,N,[0,ft(Fx($c0,m2(N,1,Xx(N)-1|0)))],0];case 13:var C=Yx(r),O=ft(Fx(Fc0,m2(C,2,Xx(C)-3|0))),L=f5>>0)var k=w(i);else switch(d){case 0:var k=3;break;case 1:for(;;){e0(i,4);var h=m(i),g=-1>>0)return Ox(Kt0);switch(k){case 0:var A=Yx(i);if(vr(t,A),Ar(r,A))return[0,f,de(f,i),o];vr(e,A);continue;case 1:vr(t,Bt0);var N=rz(f,i),C=N[4],O=N[3],L=N[2],M=N[1],V=C||o;vr(t,L),nY(function(f0){return bc(e,f0)},O);var f=M,o=V;continue;case 2:var z=Yx(i);vr(t,z);var Y=z2(vt(f,Vr(f,i)),i);return vr(e,z),[0,Y,de(Y,i),o];case 3:var t0=Yx(i);vr(t,t0);var i0=vt(f,Vr(f,i));return vr(e,t0),[0,i0,de(i0,i),o];default:var j=i[6],K=i[3]-j|0,J=w1(K*4|0),Q=Bl(i[1],j,K,J);fO(t,J,0,Q),fO(e,J,0,Q);continue}}},tz=function(x,r,e,t){for(var u=x;;){pr(t);var i=m(t),f=96>>0)var o=w(t);else switch(f){case 0:var o=0;break;case 1:for(;;){e0(t,6);var l=m(t),d=-1>>0)return Ox(Wt0);switch(o){case 0:return[0,vt(u,Vr(u,t)),1];case 1:return[0,u,1];case 2:return[0,u,0];case 3:st(e,92);var g=rz(u,t),A=g[3],N=g[1];vr(e,g[2]),nY(function(L){return bc(r,L)},A);var u=N;continue;case 4:vr(e,Zt0),vr(r,$t0);var u=z2(u,t);continue;case 5:vr(e,Yx(t)),st(r,10);var u=z2(u,t);continue;default:var C=Yx(t);vr(e,C),vr(r,C);continue}}},xS0=function(x,r){function e(_){for(;;)if(e0(_,33),ar(m(_))!==0)return w(_)}function t(_){e0(_,32);var b=O1(m(_));if(b!==0)return b===1?e(_):w(_);for(;;)if(e0(_,30),ar(m(_))!==0)return w(_)}function u(_){e0(_,31);var b=O1(m(_));if(b!==0)return b===1?e(_):w(_);for(;;)if(e0(_,29),ar(m(_))!==0)return w(_)}function i(_){e0(_,34);var b=Qa(m(_));if(2>>0)return w(_);switch(b){case 0:return e(_);case 1:for(;;){e0(_,34);var r0=ts(m(_));if(3>>0)return w(_);switch(r0){case 0:return e(_);case 1:continue;case 2:x:for(;;){if(dr(m(_))!==0)return w(_);for(;;){e0(_,34);var S0=ts(m(_));if(3>>0)return w(_);switch(S0){case 0:return e(_);case 1:continue;case 2:continue x;default:return u(_)}}}default:return u(_)}}default:return u(_)}}function f(_){x:for(;;){if(dr(m(_))!==0)return w(_);for(;;){e0(_,34);var b=YV(m(_));if(4>>0)return w(_);switch(b){case 0:return e(_);case 1:return i(_);case 2:continue;case 3:continue x;default:return t(_)}}}}function o(_){for(;;)if(e0(_,23),ar(m(_))!==0)return w(_)}function l(_){for(;;)if(e0(_,23),ar(m(_))!==0)return w(_)}function d(_){for(;;)if(e0(_,15),ar(m(_))!==0)return w(_)}function k(_){for(;;)if(e0(_,15),ar(m(_))!==0)return w(_)}function h(_){for(;;)if(e0(_,11),ar(m(_))!==0)return w(_)}function g(_){for(;;)if(e0(_,11),ar(m(_))!==0)return w(_)}function A(_){for(;;)if(e0(_,17),ar(m(_))!==0)return w(_)}function N(_){for(;;)if(e0(_,17),ar(m(_))!==0)return w(_)}function C(_){for(;;)if(e0(_,19),ar(m(_))!==0)return w(_)}function O(_){for(;;)if(e0(_,27),ar(m(_))!==0)return w(_)}function L(_){e0(_,26);var b=O1(m(_));if(b!==0)return b===1?O(_):w(_);for(;;)if(e0(_,25),ar(m(_))!==0)return w(_)}function M(_){for(;;)if(e0(_,27),ar(m(_))!==0)return w(_)}function V(_){e0(_,26);var b=O1(m(_));if(b!==0)return b===1?M(_):w(_);for(;;)if(e0(_,25),ar(m(_))!==0)return w(_)}function z(_){x:for(;;){if(dr(m(_))!==0)return w(_);for(;;){e0(_,28);var b=ts(m(_));if(3>>0)return w(_);switch(b){case 0:return M(_);case 1:continue;case 2:continue x;default:return V(_)}}}}function Y(_){e0(_,33);var b=zV(m(_));if(3>>0)return w(_);switch(b){case 0:return e(_);case 1:var r0=Io(m(_));if(r0===0)for(;;){e0(_,28);var S0=Qa(m(_));if(2>>0)return w(_);switch(S0){case 0:return M(_);case 1:continue;default:return V(_)}}if(r0!==1)return w(_);for(;;){e0(_,28);var G=ts(m(_));if(3>>0)return w(_);switch(G){case 0:return M(_);case 1:continue;case 2:return z(_);default:return V(_)}}case 2:for(;;){e0(_,28);var h0=Qa(m(_));if(2>>0)return w(_);switch(h0){case 0:return O(_);case 1:continue;default:return L(_)}}default:for(;;){e0(_,28);var z0=ts(m(_));if(3>>0)return w(_);switch(z0){case 0:return O(_);case 1:continue;case 2:return z(_);default:return L(_)}}}}function t0(_){e0(_,34);var b=OV(m(_));if(3>>0)return w(_);switch(b){case 0:return e(_);case 1:for(;;){e0(_,34);var r0=Oo(m(_));if(4>>0)return w(_);switch(r0){case 0:return e(_);case 1:continue;case 2:return Y(_);case 3:x:for(;;){if(dr(m(_))!==0)return w(_);for(;;){e0(_,34);var S0=Oo(m(_));if(4>>0)return w(_);switch(S0){case 0:return e(_);case 1:continue;case 2:return Y(_);case 3:continue x;default:return u(_)}}}default:return u(_)}}case 2:return Y(_);default:return u(_)}}function i0(_){return Iy(m(_))===0&&Ay(m(_))===0&&BV(m(_))===0&&LV(m(_))===0&&MV(m(_))===0&&GO(m(_))===0&&Ql(m(_))===0&&Iy(m(_))===0&&Mo(m(_))===0&&DV(m(_))===0&&Gl(m(_))===0?3:w(_)}function j(_){return e0(_,3),$V(m(_))===0?3:w(_)}function K(_){var b=qT0(m(_));if(36>>0)return w(_);switch(b){case 0:return 98;case 1:return 99;case 2:if(e0(_,1),rs(m(_))!==0)return w(_);for(;;)if(e0(_,1),rs(m(_))!==0)return w(_);case 3:return 0;case 4:return e0(_,0),pe(m(_))===0?0:w(_);case 5:return e0(_,88),En(m(_))===0?(e0(_,58),En(m(_))===0?54:w(_)):w(_);case 6:return 7;case 7:e0(_,95);var r0=m(_),S0=32>>0)return w(_);switch(z0){case 0:return e0(_,83),En(m(_))===0?70:w(_);case 1:return 4;default:return 69}case 14:e0(_,80);var M0=m(_),ux=42>>0)return w(_);switch($x){case 0:return e(_);case 1:continue;case 2:return Y(_);case 3:x:for(;;){if(dr(m(_))!==0)return w(_);for(;;){e0(_,34);var xr=Oo(m(_));if(4>>0)return w(_);switch(xr){case 0:return e(_);case 1:continue;case 2:return Y(_);case 3:continue x;default:return u(_)}}}default:return u(_)}}case 18:e0(_,93);var zx=RV(m(_));if(2>>0)return w(_);switch(zx){case 0:e0(_,2);var Or=_y(m(_));if(2>>0)return w(_);switch(Or){case 0:for(;;){var Wx=_y(m(_));if(2>>0)return w(_);switch(Wx){case 0:continue;case 1:return j(_);default:return i0(_)}}case 1:return j(_);default:return i0(_)}case 1:return 5;default:return 92}case 19:e0(_,34);var B2=jV(m(_));if(8>>0)return w(_);switch(B2){case 0:return e(_);case 1:return t0(_);case 2:for(;;){e0(_,20);var lt=KV(m(_));if(4>>0)return w(_);switch(lt){case 0:return C(_);case 1:return i(_);case 2:continue;case 3:for(;;){e0(_,18);var me=hy(m(_));if(3>>0)return w(_);switch(me){case 0:return N(_);case 1:return i(_);case 2:continue;default:e0(_,17);var Pn=O1(m(_));if(Pn!==0)return Pn===1?N(_):w(_);for(;;)if(e0(_,17),ar(m(_))!==0)return w(_)}}default:e0(_,19);var to=O1(m(_));if(to!==0)return to===1?C(_):w(_);for(;;)if(e0(_,19),ar(m(_))!==0)return w(_)}}case 3:for(;;){e0(_,18);var Nn=hy(m(_));if(3>>0)return w(_);switch(Nn){case 0:return A(_);case 1:return i(_);case 2:continue;default:e0(_,17);var cs=O1(m(_));if(cs!==0)return cs===1?A(_):w(_);for(;;)if(e0(_,17),ar(m(_))!==0)return w(_)}}case 4:e0(_,33);var ke=UV(m(_));if(ke===0)return e(_);if(ke!==1)return w(_);for(;;){e0(_,12);var Cn=Dy(m(_));if(3>>0)return w(_);switch(Cn){case 0:return g(_);case 1:continue;case 2:x:for(;;){if(es(m(_))!==0)return w(_);for(;;){e0(_,12);var te=Dy(m(_));if(3>>0)return w(_);switch(te){case 0:return h(_);case 1:continue;case 2:continue x;default:e0(_,10);var Ft=O1(m(_));if(Ft!==0)return Ft===1?h(_):w(_);for(;;)if(e0(_,9),ar(m(_))!==0)return w(_)}}}default:e0(_,10);var yr=O1(m(_));if(yr!==0)return yr===1?g(_):w(_);for(;;)if(e0(_,9),ar(m(_))!==0)return w(_)}}case 5:return Y(_);case 6:e0(_,33);var Qt=JV(m(_));if(Qt===0)return e(_);if(Qt!==1)return w(_);for(;;){e0(_,16);var In=Ly(m(_));if(3>>0)return w(_);switch(In){case 0:return k(_);case 1:continue;case 2:x:for(;;){if(V2(m(_))!==0)return w(_);for(;;){e0(_,16);var qv=Ly(m(_));if(3>>0)return w(_);switch(qv){case 0:return d(_);case 1:continue;case 2:continue x;default:e0(_,14);var he=O1(m(_));if(he!==0)return he===1?d(_):w(_);for(;;)if(e0(_,13),ar(m(_))!==0)return w(_)}}}default:e0(_,14);var pt=O1(m(_));if(pt!==0)return pt===1?k(_):w(_);for(;;)if(e0(_,13),ar(m(_))!==0)return w(_)}}case 7:e0(_,33);var Ko=PV(m(_));if(Ko===0)return e(_);if(Ko!==1)return w(_);for(;;){e0(_,24);var no=Uy(m(_));if(3>>0)return w(_);switch(no){case 0:return l(_);case 1:continue;case 2:x:for(;;){if(Pr(m(_))!==0)return w(_);for(;;){e0(_,24);var v2=Uy(m(_));if(3>>0)return w(_);switch(v2){case 0:return o(_);case 1:continue;case 2:continue x;default:e0(_,22);var uo=O1(m(_));if(uo!==0)return uo===1?o(_):w(_);for(;;)if(e0(_,21),ar(m(_))!==0)return w(_)}}}default:e0(_,22);var On=O1(m(_));if(On!==0)return On===1?l(_):w(_);for(;;)if(e0(_,21),ar(m(_))!==0)return w(_)}}default:return t(_)}case 20:e0(_,34);var dt=Ty(m(_));if(5
    >>0)return w(_);switch(dt){case 0:return e(_);case 1:return t0(_);case 2:for(;;){e0(_,34);var Bo=Ty(m(_));if(5>>0)return w(_);switch(Bo){case 0:return e(_);case 1:return t0(_);case 2:continue;case 3:return Y(_);case 4:return f(_);default:return t(_)}}case 3:return Y(_);case 4:return f(_);default:return t(_)}case 21:return 46;case 22:return 44;case 23:e0(_,78);var io=m(_),Hv=59>>0)return Ox(Oc0);var Q=J;if(50>Q)switch(Q){case 0:return[2,z2(x,r)];case 1:return[2,x];case 2:var x0=h2(x,r),$=Zr(Yr),f0=Vv(x,$,r),s0=f0[1];return[1,s0,Kt(s0,x0,f0[2],$,1)];case 3:var v0=Yx(r);if(!x[5]){var o0=h2(x,r),c0=Zr(Yr);vr(c0,m2(v0,2,Xx(v0)-2|0));var d0=Vv(x,c0,r),E0=d0[1];return[1,E0,Kt(E0,o0,d0[2],c0,1)]}var L0=x[4]?qV(x,Vr(x,r),v0):x,X0=ay(1,L0),xx=cy(r);return Ar(Wl(r,xx-1|0,1),Cv)&&P(Wl(r,xx-2|0,1),Cv)?[0,X0,86]:[2,X0];case 4:if(x[4])return[2,ay(0,x)];$a(r),pr(r);var g0=IV(m(r))===0?0:w(r);return g0===0?[0,x,l2]:Ox(Rc0);case 5:var $0=h2(x,r),n0=Zr(Yr),ix=Ha(x,n0,r),rx=ix[1];return[1,rx,Kt(rx,$0,ix[2],n0,0)];case 6:if(r[6]!==0)return[0,x,Lc0];var dx=h2(x,r),ax=Zr(Yr),Sx=Ha(x,ax,r),D0=Sx[1],N0=[0,D0[1],dx,Sx[2]];return[0,D0,[6,N0,U1(ax)]];case 7:var A0=Yx(r),Y0=h2(x,r),C0=Zr(Yr),F=Zr(Yr);vr(F,A0);var H=ez(x,A0,C0,F,0,r),B=H[1],a0=H[3],m0=[0,B[1],Y0,H[2]],P0=U1(F);return[0,B,[2,[0,m0,U1(C0),P0,a0]]];case 8:var D=Zr(Yr),O0=Zr(Yr),K0=h2(x,r),j0=tz(x,D,O0,r),ox=j0[1],b0=j0[2],_x=de(ox,r),B0=[0,ox[1],K0,_x],T=U1(O0);return[0,ox,[3,[0,B0,U1(D),T,1,b0]]];case 9:return A1(x,r,function(_,b){if(pr(b),le(m(b))===0&&Ey(m(b))===0&&es(m(b))===0)for(;;){var r0=my(m(b));if(2>>0)var h0=w(b);else switch(r0){case 0:continue;case 1:x:for(;;){if(es(m(b))===0)for(;;){var S0=my(m(b));if(2>>0)var G=w(b);else switch(S0){case 0:continue;case 1:continue x;default:var G=0}break}else var G=w(b);var h0=G;break}break;default:var h0=0}break}else var h0=w(b);return h0===0?[0,_,[1,0,Yx(b)]]:Ox(Ic0)});case 10:return[0,x,[1,0,Yx(r)]];case 11:return A1(x,r,function(_,b){if(pr(b),le(m(b))===0&&Ey(m(b))===0&&es(m(b))===0)for(;;){e0(b,0);var r0=yy(m(b));if(r0!==0){if(r0===1)x:for(;;){if(es(m(b))===0)for(;;){e0(b,0);var S0=yy(m(b));if(S0!==0){if(S0===1)continue x;var G=w(b);break}}else var G=w(b);var h0=G;break}else var h0=w(b);break}}else var h0=w(b);return h0===0?[0,_,[0,0,Yx(b)]]:Ox(Cc0)});case 12:return[0,x,[0,0,Yx(r)]];case 13:return A1(x,r,function(_,b){if(pr(b),le(m(b))===0&&Ny(m(b))===0&&V2(m(b))===0)for(;;){var r0=Sy(m(b));if(2>>0)var h0=w(b);else switch(r0){case 0:continue;case 1:x:for(;;){if(V2(m(b))===0)for(;;){var S0=Sy(m(b));if(2>>0)var G=w(b);else switch(S0){case 0:continue;case 1:continue x;default:var G=0}break}else var G=w(b);var h0=G;break}break;default:var h0=0}break}else var h0=w(b);return h0===0?[0,_,[1,1,Yx(b)]]:Ox(Nc0)});case 14:return[0,x,[1,1,Yx(r)]];case 15:return A1(x,r,function(_,b){if(pr(b),le(m(b))===0&&Ny(m(b))===0&&V2(m(b))===0)for(;;){e0(b,0);var r0=wy(m(b));if(r0!==0){if(r0===1)x:for(;;){if(V2(m(b))===0)for(;;){e0(b,0);var S0=wy(m(b));if(S0!==0){if(S0===1)continue x;var G=w(b);break}}else var G=w(b);var h0=G;break}else var h0=w(b);break}}else var h0=w(b);return h0===0?[0,_,[0,3,Yx(b)]]:Ox(Pc0)});case 16:return[0,x,[0,3,Yx(r)]];case 17:return A1(x,r,function(_,b){if(pr(b),le(m(b))===0)for(;;){var r0=m(b),S0=47>>0)var h0=w(b);else switch(r0){case 0:continue;case 1:x:for(;;){if(Pr(m(b))===0)for(;;){var S0=ky(m(b));if(2>>0)var G=w(b);else switch(S0){case 0:continue;case 1:continue x;default:var G=0}break}else var G=w(b);var h0=G;break}break;default:var h0=0}break}else var h0=w(b);return h0===0?[0,_,[1,2,Yx(b)]]:Ox(Ec0)});case 22:return[0,x,[1,2,Yx(r)]];case 23:return A1(x,r,function(_,b){if(pr(b),le(m(b))===0&&py(m(b))===0&&Pr(m(b))===0)for(;;){e0(b,0);var r0=Oy(m(b));if(r0!==0){if(r0===1)x:for(;;){if(Pr(m(b))===0)for(;;){e0(b,0);var S0=Oy(m(b));if(S0!==0){if(S0===1)continue x;var G=w(b);break}}else var G=w(b);var h0=G;break}else var h0=w(b);break}}else var h0=w(b);return h0===0?[0,_,[0,4,Yx(b)]]:Ox(Sc0)});case 24:return[0,x,[0,4,Yx(r)]];case 25:return A1(x,r,function(_,b){function r0(zx){for(;;){var Or=Vt(m(zx));if(2>>0)return w(zx);switch(Or){case 0:continue;case 1:x:for(;;){if(dr(m(zx))!==0)return w(zx);for(;;){var Wx=Vt(m(zx));if(2>>0)return w(zx);switch(Wx){case 0:continue;case 1:continue x;default:return 0}}}default:return 0}}}function S0(zx){for(;;){var Or=Ga(m(zx));if(Or!==0)return Or===1?0:w(zx)}}function G(zx){var Or=jy(m(zx));if(2>>0)return w(zx);switch(Or){case 0:var Wx=Io(m(zx));return Wx===0?S0(zx):Wx===1?r0(zx):w(zx);case 1:return S0(zx);default:return r0(zx)}}function h0(zx){var Or=Cy(m(zx));if(Or!==0)return Or===1?G(zx):w(zx);for(;;){var Wx=xe(m(zx));if(2>>0)return w(zx);switch(Wx){case 0:continue;case 1:return G(zx);default:x:for(;;){if(dr(m(zx))!==0)return w(zx);for(;;){var B2=xe(m(zx));if(2>>0)return w(zx);switch(B2){case 0:continue;case 1:return G(zx);default:continue x}}}}}}pr(b);var z0=Co(m(b));if(2>>0)var M0=w(b);else switch(z0){case 0:if(dr(m(b))===0)for(;;){var ux=xe(m(b));if(2>>0)var M0=w(b);else switch(ux){case 0:continue;case 1:var M0=G(b);break;default:x:for(;;){if(dr(m(b))===0)for(;;){var Zx=xe(m(b));if(2>>0)var Lx=w(b);else switch(Zx){case 0:continue;case 1:var Lx=G(b);break;default:continue x}break}else var Lx=w(b);var M0=Lx;break}}break}else var M0=w(b);break;case 1:var tr=dy(m(b)),M0=tr===0?h0(b):tr===1?G(b):w(b);break;default:for(;;){var $x=Py(m(b));if(2<$x>>>0)var M0=w(b);else switch($x){case 0:var M0=h0(b);break;case 1:continue;default:var M0=G(b)}break}}if(M0!==0)return Ox(Tc0);var xr=_2(_,Vr(_,b),48);return[0,xr,[1,2,Yx(b)]]});case 26:var X=_2(x,Vr(x,r),48);return[0,X,[1,2,Yx(r)]];case 27:return A1(x,r,function(_,b){function r0(xr){for(;;){e0(xr,0);var zx=Ro(m(xr));if(zx!==0){if(zx!==1)return w(xr);x:for(;;){if(dr(m(xr))!==0)return w(xr);for(;;){e0(xr,0);var Or=Ro(m(xr));if(Or!==0){if(Or===1)continue x;return w(xr)}}}}}}function S0(xr){for(;;)if(e0(xr,0),dr(m(xr))!==0)return w(xr)}function G(xr){var zx=jy(m(xr));if(2>>0)return w(xr);switch(zx){case 0:var Or=Io(m(xr));return Or===0?S0(xr):Or===1?r0(xr):w(xr);case 1:return S0(xr);default:return r0(xr)}}function h0(xr){var zx=Cy(m(xr));if(zx!==0)return zx===1?G(xr):w(xr);for(;;){var Or=xe(m(xr));if(2>>0)return w(xr);switch(Or){case 0:continue;case 1:return G(xr);default:x:for(;;){if(dr(m(xr))!==0)return w(xr);for(;;){var Wx=xe(m(xr));if(2>>0)return w(xr);switch(Wx){case 0:continue;case 1:return G(xr);default:continue x}}}}}}pr(b);var z0=Co(m(b));if(2>>0)var M0=w(b);else switch(z0){case 0:if(dr(m(b))===0)for(;;){var ux=xe(m(b));if(2>>0)var M0=w(b);else switch(ux){case 0:continue;case 1:var M0=G(b);break;default:x:for(;;){if(dr(m(b))===0)for(;;){var Zx=xe(m(b));if(2>>0)var Lx=w(b);else switch(Zx){case 0:continue;case 1:var Lx=G(b);break;default:continue x}break}else var Lx=w(b);var M0=Lx;break}}break}else var M0=w(b);break;case 1:var tr=dy(m(b)),M0=tr===0?h0(b):tr===1?G(b):w(b);break;default:for(;;){var $x=Py(m(b));if(2<$x>>>0)var M0=w(b);else switch($x){case 0:var M0=h0(b);break;case 1:continue;default:var M0=G(b)}break}}return M0===0?[0,_,[0,4,Yx(b)]]:Ox(wc0)});case 28:return[0,x,[0,4,Yx(r)]];case 29:return A1(x,r,function(_,b){function r0(tr){for(;;){var $x=Vt(m(tr));if(2<$x>>>0)return w(tr);switch($x){case 0:continue;case 1:x:for(;;){if(dr(m(tr))!==0)return w(tr);for(;;){var xr=Vt(m(tr));if(2>>0)return w(tr);switch(xr){case 0:continue;case 1:continue x;default:return 0}}}default:return 0}}}function S0(tr){var $x=Ga(m(tr));return $x===0?r0(tr):$x===1?0:w(tr)}pr(b);var G=Co(m(b));if(2>>0)var h0=w(b);else switch(G){case 0:var h0=dr(m(b))===0?r0(b):w(b);break;case 1:for(;;){var z0=qa(m(b));if(z0===0)var h0=S0(b);else{if(z0===1)continue;var h0=w(b)}break}break;default:for(;;){var M0=Lo(m(b));if(2>>0)var h0=w(b);else switch(M0){case 0:var h0=S0(b);break;case 1:continue;default:x:for(;;){if(dr(m(b))===0)for(;;){var ux=Lo(m(b));if(2>>0)var Zx=w(b);else switch(ux){case 0:var Zx=S0(b);break;case 1:continue;default:continue x}break}else var Zx=w(b);var h0=Zx;break}}break}}if(h0!==0)return Ox(_c0);var Lx=_2(_,Vr(_,b),39);return[0,Lx,[1,2,Yx(b)]]});case 30:return A1(x,r,function(_,b){pr(b);var r0=Io(m(b));if(r0===0)for(;;){var S0=Ga(m(b));if(S0!==0){var M0=S0===1?0:w(b);break}}else if(r0===1)for(;;){var G=Vt(m(b));if(2>>0)var M0=w(b);else switch(G){case 0:continue;case 1:x:for(;;){if(dr(m(b))===0)for(;;){var h0=Vt(m(b));if(2>>0)var z0=w(b);else switch(h0){case 0:continue;case 1:continue x;default:var z0=0}break}else var z0=w(b);var M0=z0;break}break;default:var M0=0}break}else var M0=w(b);return M0===0?[0,_,[1,2,Yx(b)]]:Ox(hc0)});case 31:var F0=_2(x,Vr(x,r),39);return[0,F0,[1,2,Yx(r)]];case 32:return[0,x,[1,2,Yx(r)]];case 33:return A1(x,r,function(_,b){function r0(Lx){for(;;){e0(Lx,0);var tr=Ro(m(Lx));if(tr!==0){if(tr!==1)return w(Lx);x:for(;;){if(dr(m(Lx))!==0)return w(Lx);for(;;){e0(Lx,0);var $x=Ro(m(Lx));if($x!==0){if($x===1)continue x;return w(Lx)}}}}}}function S0(Lx){return e0(Lx,0),dr(m(Lx))===0?r0(Lx):w(Lx)}pr(b);var G=Co(m(b));if(2>>0)var h0=w(b);else switch(G){case 0:var h0=dr(m(b))===0?r0(b):w(b);break;case 1:for(;;){e0(b,0);var z0=qa(m(b));if(z0===0)var h0=S0(b);else{if(z0===1)continue;var h0=w(b)}break}break;default:for(;;){e0(b,0);var M0=Lo(m(b));if(2>>0)var h0=w(b);else switch(M0){case 0:var h0=S0(b);break;case 1:continue;default:x:for(;;){if(dr(m(b))===0)for(;;){e0(b,0);var ux=Lo(m(b));if(2>>0)var Zx=w(b);else switch(ux){case 0:var Zx=S0(b);break;case 1:continue;default:continue x}break}else var Zx=w(b);var h0=Zx;break}}break}}return h0===0?[0,_,[0,4,Yx(b)]]:Ox(kc0)});case 34:return[0,x,[0,4,Yx(r)]];case 35:var sx=Vr(x,r),ex=Yx(r);return[0,x,[4,sx,ex,ex]];case 36:return[0,x,0];case 37:return[0,x,1];case 38:return[0,x,4];case 39:return[0,x,5];case 40:return[0,x,6];case 41:return[0,x,7];case 42:return[0,x,12];case 43:return[0,x,10];case 44:return[0,x,8];case 45:return[0,x,9];case 46:return[0,x,86];case 47:$a(r),pr(r);var U0=m(r),Nx=62=bx)return[0,x,18];var Jx=Tx(J0,Na);if(0<=Jx){if(0>=Jx)return[0,x,51];var W0=Tx(J0,Ts);if(0<=W0){if(0>=W0)return[0,x,46];if(!P(J0,sl))return[0,x,24];if(!P(J0,Ps))return[0,x,47];if(!P(J0,Mp))return[0,x,25];if(!P(J0,vp))return[0,x,26];if(!P(J0,j2))return[0,x,58]}else{if(!P(J0,Ye))return[0,x,20];if(!P(J0,vv))return[0,x,21];if(!P(J0,Xe))return[0,x,22];if(!P(J0,Ss))return[0,x,31];if(!P(J0,td))return[0,x,23];if(!P(J0,ei))return[0,x,61]}}else{var nr=Tx(J0,Wp);if(0<=nr){if(0>=nr)return[0,x,54];if(!P(J0,kl))return[0,x,55];if(!P(J0,B3))return[0,x,56];if(!P(J0,j3))return[0,x,57];if(!P(J0,Ue))return[0,x,19];if(!P(J0,je))return[0,x,42]}else{if(!P(J0,Q2))return[0,x,53];if(!P(J0,da))return[0,x,28];if(!P(J0,ov))return[0,x,44];if(!P(J0,mv))return[0,x,29];if(!P(J0,Xh))return[0,x,63];if(!P(J0,Ch))return[0,x,62]}}}else{var V0=Tx(J0,K5);if(0<=V0){if(0>=V0)return[0,x,37];var Sr=Tx(J0,d8);if(0<=Sr){if(0>=Sr)return[0,x,39];if(!P(J0,la))return[0,x,15];if(!P(J0,Qp))return[0,x,16];if(!P(J0,_v))return[0,x,52];if(!P(J0,M2))return[0,x,50];if(!P(J0,wo))return[0,x,17]}else{if(!P(J0,Ip))return[0,x,43];if(!P(J0,cl))return[0,x,48];if(!P(J0,x8))return[0,x,49];if(!P(J0,Oc))return[0,x,41];if(!P(J0,As))return[0,x,30];if(!P(J0,gp))return[0,x,38]}}else{var Ur=Tx(J0,nl);if(0<=Ur){if(0>=Ur)return[0,x,27];if(!P(J0,Oe))return[0,x,35];if(!P(J0,Re))return[0,x,59];if(!P(J0,Q3))return[0,x,60];if(!P(J0,av))return[0,x,36];if(!P(J0,el))return[0,x,45]}else{if(!P(J0,To))return[0,x,64];if(!P(J0,Ev))return[0,x,65];if(!P(J0,Me))return[0,x,32];if(!P(J0,Xp))return[0,x,33];if(!P(J0,K8))return[0,x,34];if(!P(J0,V3))return[0,x,40]}}}var lx=t1(r),br=xz(x,lx),e2=br[2],h1=br[1];return[0,h1,[4,Gx,e2,Zl(lx)]];case 98:var Ir=x[4]?_2(x,Vr(x,r),96):x;return[0,Ir,Rr];default:var R1=vt(x,Vr(x,r));return[0,R1,[7,Yx(r)]]}},rS0=function(x,r,e){var t=x;x:for(;;){pr(e);var u=m(e),i=92>>0)var f=w(e);else switch(i){case 0:var f=0;break;case 1:for(;;){e0(e,7);var o=m(e),l=-1>>0)var f=w(e);else switch(k){case 0:var f=2;break;case 1:var f=1;break;default:e0(e,1);var f=pe(m(e))===0?1:w(e)}}if(7>>0)return Ox(Gt0);switch(f){case 0:return[0,_2(t,Vr(t,e),ut),qt0];case 1:return[0,z2(_2(t,Vr(t,e),ut),e),Ht0];case 2:vr(r,Yx(e));continue;case 3:var h=Yx(e);return[0,t,m2(h,1,Xx(h)-1|0)];case 4:return[0,t,bt0];case 5:for(st(r,91);;){pr(e);var g=m(e),A=93>>0)var N=w(e);else switch(A){case 0:var N=0;break;case 1:for(;;){e0(e,5);var C=m(e),O=-1>>0)var V=Ox(Ft0);else switch(N){case 0:var V=t;break;case 1:vr(r,Qt0);continue;case 2:st(r,92),st(r,93);continue;case 3:st(r,93);var V=t;break;case 4:var V=z2(_2(t,Vr(t,e),ut),e);break;default:vr(r,Yx(e));continue}var t=V;continue x}case 6:return[0,z2(_2(t,Vr(t,e),ut),e),xn0];default:vr(r,Yx(e));continue}}},eS0=function(x,r){pr(r);var e=m(r),t=Pv>>0)var u=w(r);else switch(t){case 0:var u=0;break;case 1:var u=6;break;case 2:if(e0(r,2),rs(m(r))===0){for(;;)if(e0(r,2),rs(m(r))!==0){var u=w(r);break}}else var u=w(r);break;case 3:var u=1;break;case 4:e0(r,1);var u=pe(m(r))===0?1:w(r);break;default:e0(r,5);var i=My(m(r)),u=i===0?4:i===1?3:w(r)}if(6>>0)return Ox(mc0);switch(u){case 0:return[0,x,Rr];case 1:return[2,z2(x,r)];case 2:return[2,x];case 3:var f=h2(x,r),o=Zr(Yr),l=Ha(x,o,r),d=l[1];return[1,d,Kt(d,f,l[2],o,0)];case 4:var k=h2(x,r),h=Zr(Yr),g=Vv(x,h,r),A=g[1];return[1,A,Kt(A,k,g[2],h,1)];case 5:var N=h2(x,r),C=Zr(Yr),O=rS0(x,C,r),L=O[1],M=O[2],V=de(L,r),z=[0,L[1],N,V];return[0,L,[5,z,U1(C),M]];default:var Y=vt(x,Vr(x,r));return[0,Y,[7,Yx(r)]]}},nz=function(x){var r=Tx(x,"iexcl");if(0<=r){if(0>=r)return yc0;var e=Tx(x,"prime");if(0<=e){if(0>=e)return dc0;var t=Tx(x,"sup1");if(0<=t){if(0>=t)return pc0;var u=Tx(x,"uarr");if(0<=u){if(0>=u)return lc0;var i=Tx(x,"xi");if(0<=i){if(0>=i)return ac0;if(!P(x,"yacute"))return vc0;if(!P(x,"yen"))return oc0;if(!P(x,"yuml"))return sc0;if(!P(x,"zeta"))return cc0;if(!P(x,"zwj"))return fc0;if(!P(x,"zwnj"))return ic0}else{if(!P(x,"ucirc"))return uc0;if(!P(x,"ugrave"))return nc0;if(!P(x,"uml"))return tc0;if(!P(x,"upsih"))return ec0;if(!P(x,"upsilon"))return rc0;if(!P(x,"uuml"))return xc0;if(!P(x,"weierp"))return bf0}}else{var f=Tx(x,"thetasym");if(0<=f){if(0>=f)return Hf0;if(!P(x,"thinsp"))return qf0;if(!P(x,"thorn"))return Gf0;if(!P(x,"tilde"))return Qf0;if(!P(x,"times"))return Ff0;if(!P(x,"trade"))return $f0;if(!P(x,"uArr"))return Zf0;if(!P(x,"uacute"))return Wf0}else{if(!P(x,"sup2"))return Bf0;if(!P(x,"sup3"))return Kf0;if(!P(x,"supe"))return zf0;if(!P(x,"szlig"))return Vf0;if(!P(x,"tau"))return Yf0;if(!P(x,"there4"))return Xf0;if(!P(x,"theta"))return Jf0}}}else{var o=Tx(x,"rlm");if(0<=o){if(0>=o)return jf0;var l=Tx(x,"sigma");if(0<=l){if(0>=l)return Uf0;if(!P(x,"sigmaf"))return Df0;if(!P(x,"sim"))return Mf0;if(!P(x,"spades"))return Lf0;if(!P(x,"sub"))return Rf0;if(!P(x,"sube"))return Of0;if(!P(x,"sum"))return If0;if(!P(x,"sup"))return Cf0}else{if(!P(x,"rsaquo"))return Nf0;if(!P(x,"rsquo"))return Pf0;if(!P(x,"sbquo"))return Af0;if(!P(x,"scaron"))return gf0;if(!P(x,"sdot"))return Ef0;if(!P(x,"sect"))return Sf0;if(!P(x,"shy"))return Tf0}}else{var d=Tx(x,"raquo");if(0<=d){if(0>=d)return wf0;if(!P(x,"rarr"))return _f0;if(!P(x,"rceil"))return hf0;if(!P(x,"rdquo"))return kf0;if(!P(x,"real"))return mf0;if(!P(x,"reg"))return yf0;if(!P(x,"rfloor"))return df0;if(!P(x,"rho"))return pf0}else{if(!P(x,"prod"))return lf0;if(!P(x,"prop"))return af0;if(!P(x,"psi"))return vf0;if(!P(x,"quot"))return of0;if(!P(x,"rArr"))return sf0;if(!P(x,"radic"))return cf0;if(!P(x,"rang"))return ff0}}}}else{var k=Tx(x,"ndash");if(0<=k){if(0>=k)return if0;var h=Tx(x,"or");if(0<=h){if(0>=h)return uf0;var g=Tx(x,"part");if(0<=g){if(0>=g)return nf0;if(!P(x,"permil"))return tf0;if(!P(x,"perp"))return ef0;if(!P(x,"phi"))return rf0;if(!P(x,"pi"))return xf0;if(!P(x,"piv"))return bi0;if(!P(x,"plusmn"))return Hi0;if(!P(x,"pound"))return qi0}else{if(!P(x,"ordf"))return Gi0;if(!P(x,"ordm"))return Qi0;if(!P(x,"oslash"))return Fi0;if(!P(x,"otilde"))return $i0;if(!P(x,"otimes"))return Zi0;if(!P(x,"ouml"))return Wi0;if(!P(x,"para"))return Bi0}}else{var A=Tx(x,"oacute");if(0<=A){if(0>=A)return Ki0;if(!P(x,"ocirc"))return zi0;if(!P(x,"oelig"))return Vi0;if(!P(x,"ograve"))return Yi0;if(!P(x,"oline"))return Xi0;if(!P(x,"omega"))return Ji0;if(!P(x,"omicron"))return ji0;if(!P(x,"oplus"))return Ui0}else{if(!P(x,"ne"))return Di0;if(!P(x,"ni"))return Mi0;if(!P(x,"not"))return Li0;if(!P(x,"notin"))return Ri0;if(!P(x,"nsub"))return Oi0;if(!P(x,"ntilde"))return Ii0;if(!P(x,"nu"))return Ci0}}}else{var N=Tx(x,"le");if(0<=N){if(0>=N)return Ni0;var C=Tx(x,"macr");if(0<=C){if(0>=C)return Pi0;if(!P(x,"mdash"))return Ai0;if(!P(x,"micro"))return gi0;if(!P(x,"middot"))return Ei0;if(!P(x,CD))return Si0;if(!P(x,"mu"))return Ti0;if(!P(x,"nabla"))return wi0;if(!P(x,"nbsp"))return _i0}else{if(!P(x,"lfloor"))return hi0;if(!P(x,"lowast"))return ki0;if(!P(x,"loz"))return mi0;if(!P(x,"lrm"))return yi0;if(!P(x,"lsaquo"))return di0;if(!P(x,"lsquo"))return pi0;if(!P(x,"lt"))return li0}}else{var O=Tx(x,"kappa");if(0<=O){if(0>=O)return ai0;if(!P(x,"lArr"))return vi0;if(!P(x,"lambda"))return oi0;if(!P(x,"lang"))return si0;if(!P(x,"laquo"))return ci0;if(!P(x,"larr"))return fi0;if(!P(x,"lceil"))return ii0;if(!P(x,"ldquo"))return ui0}else{if(!P(x,"igrave"))return ni0;if(!P(x,"image"))return ti0;if(!P(x,"infin"))return ei0;if(!P(x,"iota"))return ri0;if(!P(x,"iquest"))return xi0;if(!P(x,"isin"))return bu0;if(!P(x,"iuml"))return Hu0}}}}}else{var L=Tx(x,"aelig");if(0<=L){if(0>=L)return qu0;var M=Tx(x,"delta");if(0<=M){if(0>=M)return Gu0;var V=Tx(x,"fnof");if(0<=V){if(0>=V)return Qu0;var z=Tx(x,"gt");if(0<=z){if(0>=z)return Fu0;if(!P(x,"hArr"))return $u0;if(!P(x,"harr"))return Zu0;if(!P(x,"hearts"))return Wu0;if(!P(x,"hellip"))return Bu0;if(!P(x,"iacute"))return Ku0;if(!P(x,"icirc"))return zu0}else{if(!P(x,"forall"))return Vu0;if(!P(x,"frac12"))return Yu0;if(!P(x,"frac14"))return Xu0;if(!P(x,"frac34"))return Ju0;if(!P(x,"frasl"))return ju0;if(!P(x,"gamma"))return Uu0;if(!P(x,"ge"))return Du0}}else{var Y=Tx(x,"ensp");if(0<=Y){if(0>=Y)return Mu0;if(!P(x,"epsilon"))return Lu0;if(!P(x,"equiv"))return Ru0;if(!P(x,"eta"))return Ou0;if(!P(x,"eth"))return Iu0;if(!P(x,"euml"))return Cu0;if(!P(x,"euro"))return Nu0;if(!P(x,"exist"))return Pu0}else{if(!P(x,"diams"))return Au0;if(!P(x,"divide"))return gu0;if(!P(x,"eacute"))return Eu0;if(!P(x,"ecirc"))return Su0;if(!P(x,"egrave"))return Tu0;if(!P(x,se))return wu0;if(!P(x,"emsp"))return _u0}}}else{var t0=Tx(x,"cap");if(0<=t0){if(0>=t0)return hu0;var i0=Tx(x,"copy");if(0<=i0){if(0>=i0)return ku0;if(!P(x,"crarr"))return mu0;if(!P(x,"cup"))return yu0;if(!P(x,"curren"))return du0;if(!P(x,"dArr"))return pu0;if(!P(x,"dagger"))return lu0;if(!P(x,"darr"))return au0;if(!P(x,"deg"))return vu0}else{if(!P(x,"ccedil"))return ou0;if(!P(x,"cedil"))return su0;if(!P(x,"cent"))return cu0;if(!P(x,"chi"))return fu0;if(!P(x,"circ"))return iu0;if(!P(x,"clubs"))return uu0;if(!P(x,"cong"))return nu0}}else{var j=Tx(x,"aring");if(0<=j){if(0>=j)return tu0;if(!P(x,"asymp"))return eu0;if(!P(x,"atilde"))return ru0;if(!P(x,"auml"))return xu0;if(!P(x,"bdquo"))return b70;if(!P(x,"beta"))return H70;if(!P(x,"brvbar"))return q70;if(!P(x,"bull"))return G70}else{if(!P(x,"agrave"))return Q70;if(!P(x,"alefsym"))return F70;if(!P(x,"alpha"))return $70;if(!P(x,"amp"))return Z70;if(!P(x,"and"))return W70;if(!P(x,"ang"))return B70;if(!P(x,"apos"))return K70}}}}else{var K=Tx(x,"Nu");if(0<=K){if(0>=K)return z70;var J=Tx(x,"Sigma");if(0<=J){if(0>=J)return V70;var Q=Tx(x,"Uuml");if(0<=Q){if(0>=Q)return Y70;if(!P(x,"Xi"))return X70;if(!P(x,"Yacute"))return J70;if(!P(x,"Yuml"))return j70;if(!P(x,"Zeta"))return U70;if(!P(x,"aacute"))return D70;if(!P(x,"acirc"))return M70;if(!P(x,"acute"))return L70}else{if(!P(x,"THORN"))return R70;if(!P(x,"Tau"))return O70;if(!P(x,"Theta"))return I70;if(!P(x,"Uacute"))return C70;if(!P(x,"Ucirc"))return N70;if(!P(x,"Ugrave"))return P70;if(!P(x,"Upsilon"))return A70}}else{var x0=Tx(x,"Otilde");if(0<=x0){if(0>=x0)return g70;if(!P(x,"Ouml"))return E70;if(!P(x,"Phi"))return S70;if(!P(x,"Pi"))return T70;if(!P(x,"Prime"))return w70;if(!P(x,"Psi"))return _70;if(!P(x,"Rho"))return h70;if(!P(x,"Scaron"))return k70}else{if(!P(x,"OElig"))return m70;if(!P(x,"Oacute"))return y70;if(!P(x,"Ocirc"))return d70;if(!P(x,"Ograve"))return p70;if(!P(x,"Omega"))return l70;if(!P(x,"Omicron"))return a70;if(!P(x,"Oslash"))return v70}}}else{var $=Tx(x,"Eacute");if(0<=$){if(0>=$)return o70;var f0=Tx(x,"Icirc");if(0<=f0){if(0>=f0)return s70;if(!P(x,"Igrave"))return c70;if(!P(x,"Iota"))return f70;if(!P(x,"Iuml"))return i70;if(!P(x,"Kappa"))return u70;if(!P(x,"Lambda"))return n70;if(!P(x,"Mu"))return t70;if(!P(x,"Ntilde"))return e70}else{if(!P(x,"Ecirc"))return r70;if(!P(x,"Egrave"))return x70;if(!P(x,"Epsilon"))return bn0;if(!P(x,"Eta"))return Hn0;if(!P(x,"Euml"))return qn0;if(!P(x,"Gamma"))return Gn0;if(!P(x,"Iacute"))return Qn0}}else{var s0=Tx(x,"Atilde");if(0<=s0){if(0>=s0)return Fn0;if(!P(x,"Auml"))return $n0;if(!P(x,"Beta"))return Zn0;if(!P(x,"Ccedil"))return Wn0;if(!P(x,"Chi"))return Bn0;if(!P(x,"Dagger"))return Kn0;if(!P(x,"Delta"))return zn0;if(!P(x,"ETH"))return Vn0}else{if(!P(x,"'int'"))return Yn0;if(!P(x,"AElig"))return Xn0;if(!P(x,"Aacute"))return Jn0;if(!P(x,"Acirc"))return jn0;if(!P(x,"Agrave"))return Un0;if(!P(x,"Alpha"))return Dn0;if(!P(x,"Aring"))return Mn0}}}}}return 0},uz=function(x,r,e,t){for(var u=x;;){var i=function(x0){for(;;)if(e0(x0,8),FO(m(x0))!==0)return w(x0)};pr(t);var f=m(t),o=Ci>>0)var l=w(t);else switch(o){case 0:var l=3;break;case 1:var l=i(t);break;case 2:var l=4;break;case 3:e0(t,4);var l=pe(m(t))===0?4:w(t);break;case 4:e0(t,8);var d=FV(m(t));if(d===0){var k=gV(m(t));if(k===0)for(;;){var h=AV(m(t));if(h!==0){var l=h===1?6:w(t);break}}else if(k===1&&Pr(m(t))===0)for(;;){var g=WV(m(t));if(g!==0){var l=g===1?5:w(t);break}}else var l=w(t)}else if(d===1&&ar(m(t))===0){var A=zt(m(t));if(A===0){var N=zt(m(t));if(N===0){var C=zt(m(t));if(C===0){var O=zt(m(t));if(O===0){var L=zt(m(t));if(L===0)var M=zt(m(t)),l=M===0?VV(m(t))===0?7:w(t):M===1?7:w(t);else var l=L===1?7:w(t)}else var l=O===1?7:w(t)}else var l=C===1?7:w(t)}else var l=N===1?7:w(t)}else var l=A===1?7:w(t)}else var l=w(t);break;case 5:var l=0;break;case 6:e0(t,1);var l=FO(m(t))===0?i(t):w(t);break;default:e0(t,2);var l=FO(m(t))===0?i(t):w(t)}if(8>>0)return Ox(rn0);switch(l){case 0:return $a(t),u;case 1:return qO(u,Vr(u,t),tn0,en0);case 2:return qO(u,Vr(u,t),un0,nn0);case 3:return vt(u,Vr(u,t));case 4:var V=Yx(t);vr(e,V),vr(r,V);var u=z2(u,t);continue;case 5:var z=Yx(t),Y=m2(z,3,Xx(z)-4|0);vr(e,z),bc(r,ft(Fx(in0,Y)));continue;case 6:var t0=Yx(t),i0=m2(t0,2,Xx(t0)-3|0);vr(e,t0),bc(r,ft(i0));continue;case 7:var j=Yx(t),K=m2(j,1,Xx(j)-2|0);vr(e,j);var J=nz(K);J?bc(r,J[1]):vr(r,Fx(cn0,Fx(K,fn0)));continue;default:var Q=Yx(t);vr(e,Q),vr(r,Q);continue}}},tS0=function(x,r){pr(r);var e=bT0(m(r));if(14>>0)var t=w(r);else switch(e){case 0:var t=0;break;case 1:var t=14;break;case 2:if(e0(r,2),rs(m(r))===0){for(;;)if(e0(r,2),rs(m(r))!==0){var t=w(r);break}}else var t=w(r);break;case 3:var t=1;break;case 4:e0(r,1);var t=pe(m(r))===0?1:w(r);break;case 5:var t=12;break;case 6:var t=13;break;case 7:var t=10;break;case 8:e0(r,6);var u=My(m(r)),t=u===0?4:u===1?3:w(r);break;case 9:var t=9;break;case 10:var t=5;break;case 11:var t=11;break;case 12:var t=7;break;case 13:if(e0(r,14),Mo(m(r))===0){var i=Yv(m(r));if(i===0)var t=Pr(m(r))===0&&Pr(m(r))===0&&Pr(m(r))===0?13:w(r);else if(i===1&&Pr(m(r))===0)for(;;){var f=Xv(m(r));if(f!==0){var t=f===1?13:w(r);break}}else var t=w(r)}else var t=w(r);break;default:var t=8}if(14>>0)return Ox(Ln0);switch(t){case 0:return[0,x,Rr];case 1:return[2,z2(x,r)];case 2:return[2,x];case 3:var o=h2(x,r),l=Zr(Yr),d=Ha(x,l,r),k=d[1];return[1,k,Kt(k,o,d[2],l,0)];case 4:var h=h2(x,r),g=Zr(Yr),A=Vv(x,g,r),N=A[1];return[1,N,Kt(N,h,A[2],g,1)];case 5:return[0,x,98];case 6:return[0,x,De];case 7:return[0,x,99];case 8:return[0,x,0];case 9:return[0,x,86];case 10:return[0,x,10];case 11:return[0,x,82];case 12:var C=Yx(r),O=h2(x,r),L=Zr(Yr),M=Zr(Yr);vr(M,C);for(var V=Ar(C,"'"),z=x;;){pr(r);var Y=m(r),t0=39>>0)var i0=w(r);else switch(t0){case 0:var i0=2;break;case 1:for(;;){e0(r,7);var j=m(r),K=-1>>0)var E0=Ox(sn0);else switch(i0){case 0:if(!V){st(M,39),st(L,39);continue}var E0=z;break;case 1:if(V){st(M,34),st(L,34);continue}var E0=z;break;case 2:var E0=vt(z,Vr(z,r));break;case 3:var L0=Yx(r);vr(M,L0),vr(L,L0);var z=z2(z,r);continue;case 4:var X0=Yx(r),xx=m2(X0,3,Xx(X0)-4|0);vr(M,X0),bc(L,ft(Fx(on0,xx)));continue;case 5:var g0=Yx(r),$0=m2(g0,2,Xx(g0)-3|0);vr(M,g0),bc(L,ft($0));continue;case 6:var n0=Yx(r),ix=m2(n0,1,Xx(n0)-2|0);vr(M,n0);var rx=nz(ix);rx?bc(L,rx[1]):vr(L,Fx(an0,Fx(ix,vn0)));continue;default:var dx=Yx(r);vr(M,dx),vr(L,dx);continue}var ax=de(E0,r);vr(M,C);var Sx=U1(L),D0=U1(M);return[0,E0,[10,[0,E0[1],O,ax],Sx,D0]]}case 13:for(var N0=r[6];;){pr(r);var A0=m(r),Y0=Hr>>0)var C0=w(r);else switch(Y0){case 0:var C0=1;break;case 1:var C0=2;break;case 2:var C0=0;break;default:if(e0(r,2),Mo(m(r))===0){var F=Yv(m(r));if(F===0)var C0=Pr(m(r))===0&&Pr(m(r))===0&&Pr(m(r))===0?0:w(r);else if(F===1&&Pr(m(r))===0)for(;;){var H=Xv(m(r));if(H!==0){var C0=H===1?0:w(r);break}}else var C0=w(r)}else var C0=w(r)}if(2>>0)throw q0([0,wr,Jt0],1);switch(C0){case 0:continue;case 1:break;default:if(VO(xV(r)))continue;eV(r,1)}var B=r[3];LO(r,N0);var a0=t1(r),m0=ql(x,N0,B);return[0,x,[8,Zl(a0),m0]]}default:return[0,x,[7,Yx(r)]]}},nS0=function(x,r){pr(r);var e=m(r),t=-1>>0)var u=w(r);else switch(t){case 0:var u=5;break;case 1:if(e0(r,1),rs(m(r))===0){for(;;)if(e0(r,1),rs(m(r))!==0){var u=w(r);break}}else var u=w(r);break;case 2:var u=0;break;case 3:e0(r,0);var u=pe(m(r))===0?0:w(r);break;case 4:e0(r,5);var i=My(m(r)),u=i===0?3:i===1?2:w(r);break;default:var u=4}if(5>>0)return Ox(Cn0);switch(u){case 0:return[2,z2(x,r)];case 1:return[2,x];case 2:var f=h2(x,r),o=Zr(Yr),l=Ha(x,o,r),d=l[1];return[1,d,Kt(d,f,l[2],o,0)];case 3:var k=h2(x,r),h=Zr(Yr),g=Vv(x,h,r),A=g[1];return[1,A,Kt(A,k,g[2],h,1)];case 4:var N=h2(x,r),C=Zr(Yr),O=Zr(Yr),L=tz(x,C,O,r),M=L[1],V=L[2],z=de(M,r),Y=[0,M[1],N,z],t0=U1(O);return[0,M,[3,[0,Y,U1(C),t0,0,V]]];default:var i0=vt(x,Vr(x,r));return[0,i0,[3,[0,Vr(i0,r),On0,In0,0,1]]]}},uS0=function(x,r){function e(T){for(;;)if(e0(T,29),ar(m(T))!==0)return w(T)}function t(T){e0(T,28);var X=O1(m(T));if(X!==0)return X===1?e(T):w(T);for(;;)if(e0(T,26),ar(m(T))!==0)return w(T)}function u(T){e0(T,27);var X=O1(m(T));if(X!==0)return X===1?e(T):w(T);for(;;)if(e0(T,25),ar(m(T))!==0)return w(T)}function i(T){e0(T,30);var X=Qa(m(T));if(2>>0)return w(T);switch(X){case 0:return e(T);case 1:for(;;){e0(T,30);var F0=ts(m(T));if(3>>0)return w(T);switch(F0){case 0:return e(T);case 1:continue;case 2:x:for(;;){if(dr(m(T))!==0)return w(T);for(;;){e0(T,30);var sx=ts(m(T));if(3>>0)return w(T);switch(sx){case 0:return e(T);case 1:continue;case 2:continue x;default:return u(T)}}}default:return u(T)}}default:return u(T)}}function f(T){x:for(;;){if(dr(m(T))!==0)return w(T);for(;;){e0(T,30);var X=YV(m(T));if(4>>0)return w(T);switch(X){case 0:return e(T);case 1:return i(T);case 2:continue;case 3:continue x;default:return t(T)}}}}function o(T){for(;;)if(e0(T,19),ar(m(T))!==0)return w(T)}function l(T){for(;;)if(e0(T,19),ar(m(T))!==0)return w(T)}function d(T){for(;;)if(e0(T,13),ar(m(T))!==0)return w(T)}function k(T){for(;;)if(e0(T,13),ar(m(T))!==0)return w(T)}function h(T){for(;;)if(e0(T,9),ar(m(T))!==0)return w(T)}function g(T){for(;;)if(e0(T,9),ar(m(T))!==0)return w(T)}function A(T){for(;;)if(e0(T,15),ar(m(T))!==0)return w(T)}function N(T){e0(T,15);var X=O1(m(T));if(X!==0)return X===1?A(T):w(T);for(;;)if(e0(T,15),ar(m(T))!==0)return w(T)}function C(T){for(;;)if(e0(T,23),ar(m(T))!==0)return w(T)}function O(T){e0(T,22);var X=O1(m(T));if(X!==0)return X===1?C(T):w(T);for(;;)if(e0(T,21),ar(m(T))!==0)return w(T)}function L(T){for(;;)if(e0(T,23),ar(m(T))!==0)return w(T)}function M(T){e0(T,22);var X=O1(m(T));if(X!==0)return X===1?L(T):w(T);for(;;)if(e0(T,21),ar(m(T))!==0)return w(T)}function V(T){x:for(;;){if(dr(m(T))!==0)return w(T);for(;;){e0(T,24);var X=ts(m(T));if(3>>0)return w(T);switch(X){case 0:return L(T);case 1:continue;case 2:continue x;default:return M(T)}}}}function z(T){e0(T,29);var X=zV(m(T));if(3>>0)return w(T);switch(X){case 0:return e(T);case 1:var F0=Io(m(T));if(F0===0)for(;;){e0(T,24);var sx=Qa(m(T));if(2>>0)return w(T);switch(sx){case 0:return L(T);case 1:continue;default:return M(T)}}if(F0!==1)return w(T);for(;;){e0(T,24);var ex=ts(m(T));if(3>>0)return w(T);switch(ex){case 0:return L(T);case 1:continue;case 2:return V(T);default:return M(T)}}case 2:for(;;){e0(T,24);var U0=Qa(m(T));if(2>>0)return w(T);switch(U0){case 0:return C(T);case 1:continue;default:return O(T)}}default:for(;;){e0(T,24);var Nx=ts(m(T));if(3>>0)return w(T);switch(Nx){case 0:return C(T);case 1:continue;case 2:return V(T);default:return O(T)}}}}function Y(T){e0(T,30);var X=OV(m(T));if(3>>0)return w(T);switch(X){case 0:return e(T);case 1:for(;;){e0(T,30);var F0=Oo(m(T));if(4>>0)return w(T);switch(F0){case 0:return e(T);case 1:continue;case 2:return z(T);case 3:x:for(;;){if(dr(m(T))!==0)return w(T);for(;;){e0(T,30);var sx=Oo(m(T));if(4>>0)return w(T);switch(sx){case 0:return e(T);case 1:continue;case 2:return z(T);case 3:continue x;default:return u(T)}}}default:return u(T)}}case 2:return z(T);default:return u(T)}}function t0(T){return Iy(m(T))===0&&Ay(m(T))===0&&BV(m(T))===0&&LV(m(T))===0&&MV(m(T))===0&&GO(m(T))===0&&Ql(m(T))===0&&Iy(m(T))===0&&Mo(m(T))===0&&DV(m(T))===0&&Gl(m(T))===0?3:w(T)}function i0(T){return e0(T,3),$V(m(T))===0?3:w(T)}function j(T){var X=HT0(m(T));if(30>>0)return w(T);switch(X){case 0:return 64;case 1:return 65;case 2:if(e0(T,1),rs(m(T))!==0)return w(T);for(;;)if(e0(T,1),rs(m(T))!==0)return w(T);case 3:return 0;case 4:return e0(T,0),pe(m(T))===0?0:w(T);case 5:return 6;case 6:return 63;case 7:if(e0(T,65),Ql(m(T))!==0)return w(T);var F0=m(T),sx=fn>>0)return w(T);switch(Gx){case 0:return e(T);case 1:continue;case 2:return z(T);case 3:x:for(;;){if(dr(m(T))!==0)return w(T);for(;;){e0(T,30);var J0=Oo(m(T));if(4>>0)return w(T);switch(J0){case 0:return e(T);case 1:continue;case 2:return z(T);case 3:continue x;default:return u(T)}}}default:return u(T)}}case 16:e0(T,65);var bx=My(m(T));if(bx!==0)return bx===1?5:w(T);e0(T,2);var Jx=_y(m(T));if(2>>0)return w(T);switch(Jx){case 0:for(;;){var W0=_y(m(T));if(2>>0)return w(T);switch(W0){case 0:continue;case 1:return i0(T);default:return t0(T)}}case 1:return i0(T);default:return t0(T)}case 17:e0(T,30);var nr=jV(m(T));if(8>>0)return w(T);switch(nr){case 0:return e(T);case 1:return Y(T);case 2:for(;;){e0(T,16);var V0=KV(m(T));if(4>>0)return w(T);switch(V0){case 0:return A(T);case 1:return i(T);case 2:continue;case 3:for(;;){e0(T,15);var Sr=hy(m(T));if(3>>0)return w(T);switch(Sr){case 0:return A(T);case 1:return i(T);case 2:continue;default:return N(T)}}default:return N(T)}}case 3:for(;;){e0(T,30);var Ur=hy(m(T));if(3>>0)return w(T);switch(Ur){case 0:return e(T);case 1:return i(T);case 2:continue;default:return t(T)}}case 4:e0(T,29);var lx=UV(m(T));if(lx===0)return e(T);if(lx!==1)return w(T);for(;;){e0(T,10);var br=Dy(m(T));if(3
    >>0)return w(T);switch(br){case 0:return g(T);case 1:continue;case 2:x:for(;;){if(es(m(T))!==0)return w(T);for(;;){e0(T,10);var e2=Dy(m(T));if(3>>0)return w(T);switch(e2){case 0:return h(T);case 1:continue;case 2:continue x;default:e0(T,8);var h1=O1(m(T));if(h1!==0)return h1===1?h(T):w(T);for(;;)if(e0(T,7),ar(m(T))!==0)return w(T)}}}default:e0(T,8);var Ir=O1(m(T));if(Ir!==0)return Ir===1?g(T):w(T);for(;;)if(e0(T,7),ar(m(T))!==0)return w(T)}}case 5:return z(T);case 6:e0(T,29);var R1=JV(m(T));if(R1===0)return e(T);if(R1!==1)return w(T);for(;;){e0(T,14);var _=Ly(m(T));if(3<_>>>0)return w(T);switch(_){case 0:return k(T);case 1:continue;case 2:x:for(;;){if(V2(m(T))!==0)return w(T);for(;;){e0(T,14);var b=Ly(m(T));if(3>>0)return w(T);switch(b){case 0:return d(T);case 1:continue;case 2:continue x;default:e0(T,12);var r0=O1(m(T));if(r0!==0)return r0===1?d(T):w(T);for(;;)if(e0(T,11),ar(m(T))!==0)return w(T)}}}default:e0(T,12);var S0=O1(m(T));if(S0!==0)return S0===1?k(T):w(T);for(;;)if(e0(T,11),ar(m(T))!==0)return w(T)}}case 7:e0(T,29);var G=PV(m(T));if(G===0)return e(T);if(G!==1)return w(T);for(;;){e0(T,20);var h0=Uy(m(T));if(3>>0)return w(T);switch(h0){case 0:return l(T);case 1:continue;case 2:x:for(;;){if(Pr(m(T))!==0)return w(T);for(;;){e0(T,20);var z0=Uy(m(T));if(3>>0)return w(T);switch(z0){case 0:return o(T);case 1:continue;case 2:continue x;default:e0(T,18);var M0=O1(m(T));if(M0!==0)return M0===1?o(T):w(T);for(;;)if(e0(T,17),ar(m(T))!==0)return w(T)}}}default:e0(T,18);var ux=O1(m(T));if(ux!==0)return ux===1?l(T):w(T);for(;;)if(e0(T,17),ar(m(T))!==0)return w(T)}}default:return t(T)}case 18:e0(T,30);var Zx=Ty(m(T));if(5>>0)return w(T);switch(Zx){case 0:return e(T);case 1:return Y(T);case 2:for(;;){e0(T,30);var Lx=Ty(m(T));if(5>>0)return w(T);switch(Lx){case 0:return e(T);case 1:return Y(T);case 2:continue;case 3:return z(T);case 4:return f(T);default:return t(T)}}case 3:return z(T);case 4:return f(T);default:return t(T)}case 19:return 44;case 20:return 42;case 21:return 49;case 22:e0(T,51);var tr=m(T),$x=61>>0)return Ox(gn0);var J=K;if(33>J)switch(J){case 0:return[2,z2(x,r)];case 1:return[2,x];case 2:var Q=h2(x,r),x0=Zr(Yr),$=Vv(x,x0,r),f0=$[1];return[1,f0,Kt(f0,Q,$[2],x0,1)];case 3:var s0=Yx(r);if(!x[5]){var v0=h2(x,r),o0=Zr(Yr);vr(o0,s0);var c0=Vv(x,o0,r),d0=c0[1];return[1,d0,Kt(d0,v0,c0[2],o0,1)]}var E0=x[4]?qV(x,Vr(x,r),s0):x,L0=ay(1,E0),X0=cy(r);return Ar(Wl(r,X0-1|0,1),Cv)&&P(Wl(r,X0-2|0,1),Cv)?[0,L0,86]:[2,L0];case 4:if(x[4])return[2,ay(0,x)];$a(r),pr(r);var xx=IV(m(r))===0?0:w(r);return xx===0?[0,x,l2]:Ox(An0);case 5:var g0=h2(x,r),$0=Zr(Yr),n0=Ha(x,$0,r),ix=n0[1];return[1,ix,Kt(ix,g0,n0[2],$0,0)];case 6:var rx=Yx(r),dx=h2(x,r),ax=Zr(Yr),Sx=Zr(Yr);vr(Sx,rx);var D0=ez(x,rx,ax,Sx,0,r),N0=D0[1],A0=D0[3],Y0=[0,N0[1],dx,D0[2]],C0=U1(Sx);return[0,N0,[2,[0,Y0,U1(ax),C0,A0]]];case 7:return A1(x,r,function(T,X){if(pr(X),le(m(X))===0&&Ey(m(X))===0&&es(m(X))===0)for(;;){var F0=my(m(X));if(2>>0)var U0=w(X);else switch(F0){case 0:continue;case 1:x:for(;;){if(es(m(X))===0)for(;;){var sx=my(m(X));if(2>>0)var ex=w(X);else switch(sx){case 0:continue;case 1:continue x;default:var ex=0}break}else var ex=w(X);var U0=ex;break}break;default:var U0=0}break}else var U0=w(X);return U0===0?[0,T,Wt(0,t1(X))]:Ox(En0)});case 8:return[0,x,Wt(0,t1(r))];case 9:return A1(x,r,function(T,X){if(pr(X),le(m(X))===0&&Ey(m(X))===0&&es(m(X))===0)for(;;){e0(X,0);var F0=yy(m(X));if(F0!==0){if(F0===1)x:for(;;){if(es(m(X))===0)for(;;){e0(X,0);var sx=yy(m(X));if(sx!==0){if(sx===1)continue x;var ex=w(X);break}}else var ex=w(X);var U0=ex;break}else var U0=w(X);break}}else var U0=w(X);return U0===0?[0,T,Bt(0,t1(X))]:Ox(Sn0)});case 10:return[0,x,Bt(0,t1(r))];case 11:return A1(x,r,function(T,X){if(pr(X),le(m(X))===0&&Ny(m(X))===0&&V2(m(X))===0)for(;;){var F0=Sy(m(X));if(2>>0)var U0=w(X);else switch(F0){case 0:continue;case 1:x:for(;;){if(V2(m(X))===0)for(;;){var sx=Sy(m(X));if(2>>0)var ex=w(X);else switch(sx){case 0:continue;case 1:continue x;default:var ex=0}break}else var ex=w(X);var U0=ex;break}break;default:var U0=0}break}else var U0=w(X);return U0===0?[0,T,Wt(1,t1(X))]:Ox(Tn0)});case 12:return[0,x,Wt(1,t1(r))];case 13:return A1(x,r,function(T,X){if(pr(X),le(m(X))===0&&Ny(m(X))===0&&V2(m(X))===0)for(;;){e0(X,0);var F0=wy(m(X));if(F0!==0){if(F0===1)x:for(;;){if(V2(m(X))===0)for(;;){e0(X,0);var sx=wy(m(X));if(sx!==0){if(sx===1)continue x;var ex=w(X);break}}else var ex=w(X);var U0=ex;break}else var U0=w(X);break}}else var U0=w(X);return U0===0?[0,T,Bt(3,t1(X))]:Ox(wn0)});case 14:return[0,x,Bt(3,t1(r))];case 15:return A1(x,r,function(T,X){if(pr(X),le(m(X))===0&&V2(m(X))===0){for(;;)if(e0(X,0),V2(m(X))!==0){var F0=w(X);break}}else var F0=w(X);return F0===0?[0,T,Bt(1,t1(X))]:Ox(_n0)});case 16:return[0,x,Bt(1,t1(r))];case 17:return A1(x,r,function(T,X){if(pr(X),le(m(X))===0&&py(m(X))===0&&Pr(m(X))===0)for(;;){var F0=ky(m(X));if(2>>0)var U0=w(X);else switch(F0){case 0:continue;case 1:x:for(;;){if(Pr(m(X))===0)for(;;){var sx=ky(m(X));if(2>>0)var ex=w(X);else switch(sx){case 0:continue;case 1:continue x;default:var ex=0}break}else var ex=w(X);var U0=ex;break}break;default:var U0=0}break}else var U0=w(X);return U0===0?[0,T,Wt(2,t1(X))]:Ox(hn0)});case 18:return[0,x,Wt(2,t1(r))];case 19:return A1(x,r,function(T,X){if(pr(X),le(m(X))===0&&py(m(X))===0&&Pr(m(X))===0)for(;;){e0(X,0);var F0=Oy(m(X));if(F0!==0){if(F0===1)x:for(;;){if(Pr(m(X))===0)for(;;){e0(X,0);var sx=Oy(m(X));if(sx!==0){if(sx===1)continue x;var ex=w(X);break}}else var ex=w(X);var U0=ex;break}else var U0=w(X);break}}else var U0=w(X);return U0===0?[0,T,Bt(4,t1(X))]:Ox(kn0)});case 20:return[0,x,Bt(4,t1(r))];case 21:return A1(x,r,function(T,X){function F0(V0){for(;;){var Sr=Vt(m(V0));if(2>>0)return w(V0);switch(Sr){case 0:continue;case 1:x:for(;;){if(dr(m(V0))!==0)return w(V0);for(;;){var Ur=Vt(m(V0));if(2>>0)return w(V0);switch(Ur){case 0:continue;case 1:continue x;default:return 0}}}default:return 0}}}function sx(V0){for(;;){var Sr=Ga(m(V0));if(Sr!==0)return Sr===1?0:w(V0)}}function ex(V0){var Sr=jy(m(V0));if(2>>0)return w(V0);switch(Sr){case 0:var Ur=Io(m(V0));return Ur===0?sx(V0):Ur===1?F0(V0):w(V0);case 1:return sx(V0);default:return F0(V0)}}function U0(V0){var Sr=Cy(m(V0));if(Sr!==0)return Sr===1?ex(V0):w(V0);for(;;){var Ur=xe(m(V0));if(2>>0)return w(V0);switch(Ur){case 0:continue;case 1:return ex(V0);default:x:for(;;){if(dr(m(V0))!==0)return w(V0);for(;;){var lx=xe(m(V0));if(2>>0)return w(V0);switch(lx){case 0:continue;case 1:return ex(V0);default:continue x}}}}}}pr(X);var Nx=Co(m(X));if(2>>0)var mx=w(X);else switch(Nx){case 0:if(dr(m(X))===0)for(;;){var Bx=xe(m(X));if(2>>0)var mx=w(X);else switch(Bx){case 0:continue;case 1:var mx=ex(X);break;default:x:for(;;){if(dr(m(X))===0)for(;;){var Gx=xe(m(X));if(2>>0)var J0=w(X);else switch(Gx){case 0:continue;case 1:var J0=ex(X);break;default:continue x}break}else var J0=w(X);var mx=J0;break}}break}else var mx=w(X);break;case 1:var bx=dy(m(X)),mx=bx===0?U0(X):bx===1?ex(X):w(X);break;default:for(;;){var Jx=Py(m(X));if(2>>0)var mx=w(X);else switch(Jx){case 0:var mx=U0(X);break;case 1:continue;default:var mx=ex(X)}break}}if(mx!==0)return Ox(mn0);var W0=t1(X),nr=_2(T,Vr(T,X),48);return[0,nr,Wt(2,W0)]});case 22:var F=t1(r),H=_2(x,Vr(x,r),48);return[0,H,Wt(2,F)];case 23:return A1(x,r,function(T,X){function F0(W0){for(;;){e0(W0,0);var nr=Ro(m(W0));if(nr!==0){if(nr!==1)return w(W0);x:for(;;){if(dr(m(W0))!==0)return w(W0);for(;;){e0(W0,0);var V0=Ro(m(W0));if(V0!==0){if(V0===1)continue x;return w(W0)}}}}}}function sx(W0){for(;;)if(e0(W0,0),dr(m(W0))!==0)return w(W0)}function ex(W0){var nr=jy(m(W0));if(2>>0)return w(W0);switch(nr){case 0:var V0=Io(m(W0));return V0===0?sx(W0):V0===1?F0(W0):w(W0);case 1:return sx(W0);default:return F0(W0)}}function U0(W0){var nr=Cy(m(W0));if(nr!==0)return nr===1?ex(W0):w(W0);for(;;){var V0=xe(m(W0));if(2>>0)return w(W0);switch(V0){case 0:continue;case 1:return ex(W0);default:x:for(;;){if(dr(m(W0))!==0)return w(W0);for(;;){var Sr=xe(m(W0));if(2>>0)return w(W0);switch(Sr){case 0:continue;case 1:return ex(W0);default:continue x}}}}}}pr(X);var Nx=Co(m(X));if(2>>0)var mx=w(X);else switch(Nx){case 0:if(dr(m(X))===0)for(;;){var Bx=xe(m(X));if(2>>0)var mx=w(X);else switch(Bx){case 0:continue;case 1:var mx=ex(X);break;default:x:for(;;){if(dr(m(X))===0)for(;;){var Gx=xe(m(X));if(2>>0)var J0=w(X);else switch(Gx){case 0:continue;case 1:var J0=ex(X);break;default:continue x}break}else var J0=w(X);var mx=J0;break}}break}else var mx=w(X);break;case 1:var bx=dy(m(X)),mx=bx===0?U0(X):bx===1?ex(X):w(X);break;default:for(;;){var Jx=Py(m(X));if(2>>0)var mx=w(X);else switch(Jx){case 0:var mx=U0(X);break;case 1:continue;default:var mx=ex(X)}break}}return mx===0?[0,T,Bt(4,t1(X))]:Ox(yn0)});case 24:return[0,x,Bt(4,t1(r))];case 25:return A1(x,r,function(T,X){function F0(Jx){for(;;){var W0=Vt(m(Jx));if(2>>0)return w(Jx);switch(W0){case 0:continue;case 1:x:for(;;){if(dr(m(Jx))!==0)return w(Jx);for(;;){var nr=Vt(m(Jx));if(2>>0)return w(Jx);switch(nr){case 0:continue;case 1:continue x;default:return 0}}}default:return 0}}}function sx(Jx){var W0=Ga(m(Jx));return W0===0?F0(Jx):W0===1?0:w(Jx)}pr(X);var ex=Co(m(X));if(2>>0)var U0=w(X);else switch(ex){case 0:var U0=dr(m(X))===0?F0(X):w(X);break;case 1:for(;;){var Nx=qa(m(X));if(Nx===0)var U0=sx(X);else{if(Nx===1)continue;var U0=w(X)}break}break;default:for(;;){var mx=Lo(m(X));if(2>>0)var U0=w(X);else switch(mx){case 0:var U0=sx(X);break;case 1:continue;default:x:for(;;){if(dr(m(X))===0)for(;;){var Bx=Lo(m(X));if(2>>0)var Gx=w(X);else switch(Bx){case 0:var Gx=sx(X);break;case 1:continue;default:continue x}break}else var Gx=w(X);var U0=Gx;break}}break}}if(U0!==0)return Ox(dn0);var J0=t1(X),bx=_2(T,Vr(T,X),39);return[0,bx,Wt(2,J0)]});case 26:return A1(x,r,function(T,X){pr(X);var F0=Io(m(X));if(F0===0)for(;;){var sx=Ga(m(X));if(sx!==0){var mx=sx===1?0:w(X);break}}else if(F0===1)for(;;){var ex=Vt(m(X));if(2>>0)var mx=w(X);else switch(ex){case 0:continue;case 1:x:for(;;){if(dr(m(X))===0)for(;;){var U0=Vt(m(X));if(2>>0)var Nx=w(X);else switch(U0){case 0:continue;case 1:continue x;default:var Nx=0}break}else var Nx=w(X);var mx=Nx;break}break;default:var mx=0}break}else var mx=w(X);return mx===0?[0,T,Wt(2,t1(X))]:Ox(pn0)});case 27:var B=t1(r),a0=_2(x,Vr(x,r),39);return[0,a0,Wt(2,B)];case 28:return[0,x,Wt(2,t1(r))];case 29:return A1(x,r,function(T,X){function F0(J0){for(;;){e0(J0,0);var bx=Ro(m(J0));if(bx!==0){if(bx!==1)return w(J0);x:for(;;){if(dr(m(J0))!==0)return w(J0);for(;;){e0(J0,0);var Jx=Ro(m(J0));if(Jx!==0){if(Jx===1)continue x;return w(J0)}}}}}}function sx(J0){return e0(J0,0),dr(m(J0))===0?F0(J0):w(J0)}pr(X);var ex=Co(m(X));if(2>>0)var U0=w(X);else switch(ex){case 0:var U0=dr(m(X))===0?F0(X):w(X);break;case 1:for(;;){e0(X,0);var Nx=qa(m(X));if(Nx===0)var U0=sx(X);else{if(Nx===1)continue;var U0=w(X)}break}break;default:for(;;){e0(X,0);var mx=Lo(m(X));if(2>>0)var U0=w(X);else switch(mx){case 0:var U0=sx(X);break;case 1:continue;default:x:for(;;){if(dr(m(X))===0)for(;;){e0(X,0);var Bx=Lo(m(X));if(2>>0)var Gx=w(X);else switch(Bx){case 0:var Gx=sx(X);break;case 1:continue;default:continue x}break}else var Gx=w(X);var U0=Gx;break}}break}}return U0===0?[0,T,Bt(4,t1(X))]:Ox(ln0)});case 30:return[0,x,Bt(4,t1(r))];case 31:return[0,x,66];default:return[0,x,6]}switch(J){case 33:return[0,x,7];case 34:return[0,x,0];case 35:return[0,x,1];case 36:return[0,x,2];case 37:return[0,x,3];case 38:return[0,x,4];case 39:return[0,x,5];case 40:return[0,x,12];case 41:return[0,x,10];case 42:return[0,x,8];case 43:return[0,x,9];case 44:return[0,x,86];case 45:return[0,x,83];case 46:return[0,x,85];case 47:return[0,x,6];case 48:return[0,x,7];case 49:return[0,x,98];case 50:return[0,x,99];case 51:return[0,x,82];case 52:return[0,x,85];case 53:return[0,x,l2];case 54:return[0,x,86];case 55:return[0,x,88];case 56:return[0,x,87];case 57:return[0,x,89];case 58:return[0,x,91];case 59:return[0,x,11];case 60:return[0,x,82];case 61:return[0,x,fn];case 62:return[0,x,Dt];case 63:var m0=r[6];QV(r);var P0=ql(x,m0,r[3]);LO(r,m0);var D=t1(r),O0=xz(x,D),K0=O0[2],j0=O0[1],ox=Tx(K0,sp);if(0<=ox){if(0>=ox)return[0,j0,Os];var b0=Tx(K0,wx);if(0<=b0){if(0>=b0)return[0,j0,H3];if(!P(K0,Ss))return[0,j0,31];if(!P(K0,Ts))return[0,j0,46];if(!P(K0,q5))return[0,j0,Oa];if(!P(K0,g5))return[0,j0,Hr];if(!P(K0,Ps))return[0,j0,Af]}else{if(!P(K0,P8))return[0,j0,Rt];if(!P(K0,mv))return[0,j0,29];if(!P(K0,ka))return[0,j0,po];if(!P(K0,Ta))return[0,j0,L4];if(!P(K0,je))return[0,j0,42];if(!P(K0,La))return[0,j0,xl]}}else{var _x=Tx(K0,Oc);if(0<=_x){if(0>=_x)return[0,j0,41];if(!P(K0,As))return[0,j0,30];if(!P(K0,RU))return[0,j0,Yr];if(!P(K0,Q2))return[0,j0,53];if(!P(K0,al))return[0,j0,m1];if(!P(K0,A8))return[0,j0,Ci]}else{if(!P(K0,t5))return[0,j0,ut];if(!P(K0,ya))return[0,j0,dl];if(!P(K0,kv))return[0,j0,pa];if(!P(K0,T5))return[0,j0,Nn0];if(!P(K0,F3))return[0,j0,Pn0];if(!P(K0,se))return[0,j0,Ns]}}return[0,j0,[4,P0,K0,Zl(D)]];case 64:var B0=x[4]?_2(x,Vr(x,r),96):x;return[0,B0,Rr];default:return[0,x,[7,Yx(r)]]}},Hl=function(x){return function(r){for(var e=0,t=r;;){var u=p(x,t,t[2]);switch(u[0]){case 0:var i=u[2],f=u[1],o=GV(f,i),l=e===0?0:Ax(e),d=f[6];if(d===0)return[0,[0,f[1],f[2],f[3],f[4],f[5],f[6],o],[0,i,o,0,l]];var k=[0,i,o,Ax(d),l];return[0,[0,f[1],f[2],f[3],f[4],f[5],_V,o],k];case 1:var h=u[2],g=u[1],e=[0,h,e],t=[0,g[1],g[2],g[3],g[4],g[5],g[6],h[1]];continue;default:var t=u[1];continue}}}},iS0=Hl(eS0),fS0=Hl(tS0),cS0=Hl(nS0),sS0=Hl(uS0),oS0=Hl(xS0),w2=vV([0,mT0]),bl=function(x,r){return[0,0,0,r,wV(x)]},Xy=function(x){var r=x[4];switch(x[3]){case 0:var K=a(oS0,r);break;case 1:var K=a(sS0,r);break;case 2:var K=a(fS0,r);break;case 3:var e=de(r,r[2]),t=Zr(Yr),u=Zr(Yr),i=r[2];pr(i);var f=m(i),o=Rt>>0)var l=w(i);else switch(o){case 0:var l=1;break;case 1:var l=4;break;case 2:var l=0;break;case 3:e0(i,0);var l=pe(m(i))===0?0:w(i);break;case 4:var l=2;break;default:var l=3}if(4>>0)var d=Ox(Rn0);else switch(l){case 0:var k=Yx(i);vr(u,k),vr(t,k);var h=uz(z2(r,i),t,u,i),g=de(h,i),A=U1(t),N=U1(u),d=[0,h,[9,[0,h[1],e,g],A,N]];break;case 1:var d=[0,r,Rr];break;case 2:var d=[0,r,98];break;case 3:var d=[0,r,0];break;default:$a(i);var C=uz(r,t,u,i),O=de(C,i),L=U1(t),M=U1(u),d=[0,C,[9,[0,C[1],e,O],L,M]]}var V=d[2],z=d[1],Y=GV(z,V),t0=z[6];if(t0===0)var j=[0,z,[0,V,Y,0,0]];else var i0=[0,V,Y,Ax(t0),0],j=[0,[0,z[1],z[2],z[3],z[4],z[5],0,z[7]],i0];var K=j;break;case 4:var K=a(cS0,r);break;default:var K=a(iS0,r)}var J=K[1],Q=K[2],x0=[0,wV(J),Q];return x[4]=J,x[1]?x[2]=[0,x0]:x[1]=[0,x0],x0},iz=function(x){var r=x[1];return r?r[1][2]:Xy(x)[2]},ba=function(x){return Rl(x[24][1])},k1=function(x){return x[28][4]},nx=function(x,r){var e=r[2];x[1][1]=[0,[0,r[1],e],x[1][1]];var t=x[23];return t?p(t[1],x,e):0},x6=function(x,r){return x[31][1]=r,0},Do=function(x,r){if(x===0)return iz(r[26][1]);if(x!==1)throw q0([0,wr,vs0],1);var e=r[26][1];e[1]||Xy(e);var t=e[2];return t?t[1][2]:Xy(e)[2]},Qs=function(x,r){return x===r[5]?r:[0,r[1],r[2],r[3],r[4],x,r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},fz=function(x,r){return x===r[10]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],x,r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},HO=function(x,r){return x===r[18]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],x,r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},bO=function(x,r){return x===r[19]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],x,r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},cz=function(x,r){return x===r[20]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],x,r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},zv=function(x,r){return x===r[22]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],x,r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},xR=function(x,r){return x===r[14]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],x,r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},r6=function(x,r){return x===r[8]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],x,r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},e6=function(x,r){return x===r[12]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],x,r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},Kv=function(x,r){return x===r[15]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],x,r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},rR=function(x,r){return x===r[16]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],x,r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},sz=function(x,r){return x===r[6]?r:[0,r[1],r[2],r[3],r[4],r[5],x,r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},oz=function(x,r){return x===r[7]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],x,r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},eR=function(x,r){return x===r[13]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],x,r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},Yy=function(x,r){return[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],[0,x],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]},tR=function(x){function r(e){return nx(x,e)}return function(e){return g2(r,e)}},x3=function(x){var r=x[4][1];return r?[0,r[1][2]]:0},vz=function(x){var r=x[4][1];return r?[0,r[1][1]]:0},az=function(x){return[0,x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14],x[15],x[16],x[17],x[18],x[19],x[20],x[21],x[22],0,x[24],x[25],x[26],x[27],x[28],x[29],x[30],x[31]]},lz=function(x,r,e,t){return[0,x[1],x[2],w2[1],x[4],x[5],0,0,0,0,0,1,x[12],x[13],x[14],x[15],x[16],x[17],e,r,x[20],t,x[22],x[23],x[24],x[25],x[26],x[27],x[28],x[29],x[30],x[31]]},r3=function(x){return P(x,_v)&&P(x,Q2)&&P(x,da)&&P(x,Wp)&&P(x,kl)&&P(x,B3)&&P(x,j3)&&P(x,je)&&P(x,j2)?0:1},Bv=function(x){return P(x,mP)&&P(x,"eval")?0:1},Vy=function(x){var r=Tx(x,Qp),e=0;if(0<=r){if(0>>0){if(L2>=t+1>>>0)return 1}else if(t===6)return 0}return n6(x,r)},e3=function(x){return yz(0,x)},Uo=function(x,r){var e=kr(x,r),t=0;if(typeof e=="number")switch(e){case 28:case 42:case 52:case 53:case 54:case 55:case 56:case 57:case 58:var u=1;break;default:t=1}else if(e[0]===4)var u=r3(e[2]);else t=1;if(t)var u=0;if(u)return 1;var i=0;if(typeof e=="number")switch(e){case 14:case 48:case 60:case 61:case 62:case 63:case 64:case 65:case 126:i=1;break}else e[0]===4&&(i=1);return i?1:0},zy=function(x,r){return pz(r,kr(x,r))},mz=function(x,r){var e=Uo(x,r);return e||zy(x,r)},ns=function(x){return Uo(0,x)},jo=function(x){var r=W(x)===15?1:0;if(r)var e=r;else{var t=W(x)===64?1:0;if(t){var u=kr(1,x)===15?1:0;if(u)var i=t6(1,x)[2][1],e=Px(x)[3][1]===i?1:0;else var e=u}else var e=t}return e},u6=function(x){var r=W(x);if(typeof r=="number")switch(r){case 13:case 40:return 1}else if(r[0]===4&&!P(r[3],Bh)&&kr(1,x)===40)return 1;return 0},iR=function(x){var r=x[28][1];if(r){var e=W(x);if(typeof e!="number"&&e[0]===4&&!P(e[3],lo)&&Uo(1,x))return 1;var t=0}else var t=r;return t},fR=function(x){var r=W(x);return typeof r!="number"&&r[0]===4&&!P(r[3],Z1)?1:0},Vx=function(x,r){return nx(x,[0,Px(x),r])},kz=function(x,r){var e=ZO(0,r);return x?[26,e,x[1]]:[24,e]},S1=function(x,r){var e=uR(r);return a(tR(r),e),Vx(r,kz(x,W(r)))},Ky=function(x){function r(e){return nx(x,[0,e[1],Rr])}return function(e){return g2(r,e)}},hz=function(x,r){var e=x[6]?H0(Tr(cs0),r,r,r):ss0;return S1([0,e],x)},Zt=function(x,r){var e=x[5];return e&&Vx(x,r)},at=function(x,r){var e=x[5],t=r[2],u=r[1];return e&&nx(x,[0,u,t])},Wv=function(x,r){return nx(x,[0,r,[14,x[5]]])},Z0=function(x){var r=x[27][1];if(r){var e=r[1],t=ba(x),u=W(x);a(e,[0,Px(x),u,t])}var i=x[26][1],f=i[1],o=f?f[1][1]:Xy(i)[1];x[25][1]=o;var l=uR(x);a(tR(x),l);var d=x[2][1],k=Hc(Do(0,x)[4],d);x[2][1]=k;var h=[0,Do(0,x)];x[4][1]=h;var g=x[26][1];return g[2]?(g[1]=g[2],g[2]=0,0):(iz(g),g[1]=0,0)},o1=function(x,r){var e=p(zO,W(x),r);return e&&Z0(x),e},J1=function(x,r){x[24][1]=[0,r,x[24][1]];var e=ba(x),t=bl(x[25][1],e);return x[26][1]=t,0},K1=function(x){var r=x[24][1],e=r?r[2]:Ox(fs0);x[24][1]=e;var t=ba(x),u=bl(x[25][1],t);return x[26][1]=u,0},hx=function(x){var r=Px(x);if(W(x)===9&&n6(1,x)){var e=w0(x),t=Do(1,x)[4],u=Qx(e,a(Ml(function(f){return f[1][2][1]<=r[3][1]?1:0}),t));return x6(x,[0,r[3][1]+1|0,0]),u}var i=w0(x);return x6(x,r[3]),i},Jo=function(x){var r=x[4][1];if(!r)return 0;var e=r[1][2],t=w0(x),u=a(Ml(function(i){return i[1][2][1]<=e[3][1]?1:0}),t);return x6(x,[0,e[3][1]+1|0,0]),u},qs=function(x,r){return S1([0,ZO(ns0,r)],x)},u0=function(x,r){return 1-p(zO,W(x),r)&&qs(x,r),Z0(x)},_z=function(x,r){var e=o1(x,r);return 1-e&&qs(x,r),e},By=function(x,r){return _z(x,r),0},Hs=function(x,r){var e=W(x),t=0;return typeof e!="number"&&e[0]===4&&Ar(e[3],r)&&(t=1),t||S1([0,a(Tr(ts0),r)],x),Z0(x)},us=[Gr,ms0,Js(0)],wz=function(x,r,e){if(!e)return 0;var t=e[1],u=t[1],i=t[2];if(r[27][1]=[0,u],!x)return x;for(var f=i[2];;){if(!f)return 0;var o=f[2];a(u,f[1]);var f=o}},cR=function(x,r){var e=x[27][1];if(e){var t=e[1],u=iY(0),i=[0,function(V){return uO(V,u)}];x[27][1]=i;var f=[0,[0,t,u]]}else var f=0;var o=x[31][1],l=x[25][1],d=x[24][1],k=x[4][1],h=x[2][1],g=x[1][1];try{var A=a(r,x);wz(1,x,f);var N=[0,A];return N}catch(M){var C=C1(M);if(C!==us)throw q0(C,0);wz(0,x,f),x[1][1]=g,x[2][1]=h,x[4][1]=k,x[24][1]=d,x[25][1]=l,x[31][1]=o;var O=ba(x),L=bl(x[25][1],O);return x[26][1]=L,0}},Wy=function(x,r,e){var t=cR(x,e);return t?t[1]:r},i6=function(x,r){var e=Ax(r);if(!e)return r;var t=e[1],u=e[2],i=a(x,t);return t===i?r:Ax([0,i,u])},Tz=uy(Ts0,function(x){var r=NO(x,hs0),e=AO(x,ws0),t=e[24],u=e[28],i=e[41],f=e[90],o=e[IT],l=e[ag],d=e[hv],k=e[jj],h=e[cD],g=e[dj],A=e[6],N=e[7],C=e[10],O=e[17],L=e[23],M=e[29],V=e[39],z=e[42],Y=e[52],t0=e[60],i0=e[De],j=e[Is],K=e[Os],J=e[po],Q=e[pa],x0=e[vh],$=e[y_],f0=e[XD],s0=e[hj],v0=e[US],o0=e[MP],c0=e[CT],d0=e[r5],E0=e[dk],L0=e[rd],X0=e[Yw],xx=e[ZA],g0=e[pT],$0=e[Z5],n0=e[B4],ix=e[Ov],rx=e[FD],dx=e[zD],ax=e[Xj],Sx=e[rr],D0=e[SD],N0=e[fJ],A0=e[xk],Y0=e[aj],C0=e[PU],F=IO(x,0,0,$X,jO,1)[1];function H(r0,S0,G){var h0=G[2],z0=h0[2],M0=h0[1],ux=G[1];if(z0){var Zx=z0[1],Lx=function($x){return[0,ux,[0,M0,[0,$x]]]};return G0(a(r0[1][1+l],r0),Zx,G,Lx)}function tr($x){return[0,ux,[0,$x,z0]]}return G0(p(r0[1][1+A],r0,S0),M0,G,tr)}function B(r0,S0,G){var h0=G[2],z0=G[1],M0=z0[3],ux=z0[2],Zx=z0[1];if(M0)var Lx=i6(a(r0[1][1+u],r0),M0),tr=ux;else var Lx=0,tr=p(r0[1][1+u],r0,ux);var $x=p(r0[1][1+i],r0,h0);return ux===tr&&M0===Lx&&h0===$x?G:[0,[0,Zx,tr,Lx],$x]}function a0(r0,S0){var G=S0[2],h0=G[2],z0=G[1],M0=S0[1];function ux(Zx){return[0,M0,[0,z0,Zx]]}return G0(a(r0[1][1+i],r0),h0,S0,ux)}function m0(r0,S0,G){var h0=G[3];function z0(M0){return[0,G[1],G[2],M0]}return G0(a(r0[1][1+i],r0),h0,G,z0)}function P0(r0,S0){var G=S0[2];function h0(z0){return[0,S0[1],z0]}return G0(a(r0[1][1+i],r0),G,S0,h0)}function D(r0,S0,G){var h0=G[3];function z0(M0){return[0,G[1],G[2],M0]}return G0(a(r0[1][1+i],r0),h0,G,z0)}function O0(r0,S0,G){var h0=G[2],z0=G[1],M0=i6(a(r0[1][1+l],r0),z0),ux=p(r0[1][1+i],r0,h0);return z0===M0&&h0===ux?G:[0,M0,ux]}function K0(r0,S0){var G=S0[2],h0=G[2],z0=G[1],M0=S0[1];function ux(Zx){return[0,M0,[0,z0,Zx]]}return G0(a(r0[1][1+i],r0),h0,S0,ux)}function j0(r0,S0,G){var h0=G[4];function z0(M0){return[0,G[1],G[2],G[3],M0]}return G0(a(r0[1][1+i],r0),h0,G,z0)}function ox(r0,S0,G){var h0=G[2];function z0(M0){return[0,G[1],M0]}return G0(a(r0[1][1+i],r0),h0,G,z0)}function b0(r0,S0,G){var h0=G[3],z0=G[2],M0=p(r0[1][1+K],r0,z0),ux=p(r0[1][1+i],r0,h0);return z0===M0&&h0===ux?G:[0,G[1],M0,ux]}function _x(r0,S0,G){var h0=G[4],z0=G[3],M0=G[2],ux=G[1],Zx=p(r0[1][1+i],r0,h0);if(z0){var Lx=Kx(a(r0[1][1+g],r0),z0);return z0===Lx&&h0===Zx?G:[0,G[1],G[2],Lx,Zx]}if(M0){var tr=Kx(a(r0[1][1+h],r0),M0);return M0===tr&&h0===Zx?G:[0,G[1],tr,G[3],Zx]}var $x=p(r0[1][1+l],r0,ux);return ux===$x&&h0===Zx?G:[0,$x,G[2],G[3],Zx]}function B0(r0,S0,G){var h0=G[4],z0=G[3],M0=p(r0[1][1+l],r0,z0),ux=p(r0[1][1+i],r0,h0);return z0===M0&&h0===ux?G:[0,G[1],G[2],M0,ux]}function T(r0,S0,G){var h0=G[4];function z0(M0){return[0,G[1],G[2],G[3],M0]}return G0(a(r0[1][1+i],r0),h0,G,z0)}function X(r0,S0,G){var h0=G[4];function z0(M0){return[0,G[1],G[2],G[3],M0]}return G0(a(r0[1][1+i],r0),h0,G,z0)}function F0(r0,S0,G){var h0=G[2],z0=G[1],M0=z0[3],ux=z0[2],Zx=z0[1];if(M0)var Lx=i6(a(r0[1][1+u],r0),M0),tr=ux;else var Lx=0,tr=p(r0[1][1+u],r0,ux);var $x=p(r0[1][1+i],r0,h0);return ux===tr&&M0===Lx&&h0===$x?G:[0,[0,Zx,tr,Lx],$x]}function sx(r0,S0,G){var h0=G[3],z0=G[1],M0=x2(a(r0[1][1+f],r0),z0),ux=p(r0[1][1+i],r0,h0);return z0===M0&&h0===ux?G:[0,M0,G[2],ux]}function ex(r0,S0,G){var h0=G[2];function z0(M0){return[0,G[1],M0]}return G0(a(r0[1][1+i],r0),h0,G,z0)}function U0(r0,S0){if(S0[0]===0){var G=S0[1],h0=function(tr){return[0,tr]};return G0(a(r0[1][1+o],r0),G,S0,h0)}var z0=S0[1],M0=z0[2],ux=M0[2],Zx=z0[1],Lx=p(r0[1][1+o],r0,ux);return ux===Lx?S0:[1,[0,Zx,[0,M0[1],Lx]]]}function Nx(r0,S0,G){var h0=G[4],z0=G[3],M0=p(r0[1][1+c0],r0,z0),ux=p(r0[1][1+i],r0,h0);return z0===M0&&h0===ux?G:[0,G[1],G[2],M0,ux]}function mx(r0,S0){var G=S0[2],h0=S0[1],z0=G[4];function M0(ux){return[0,h0,[0,G[1],G[2],G[3],ux]]}return G0(a(r0[1][1+i],r0),z0,[0,h0,G],M0)}function Bx(r0,S0,G){var h0=G[9],z0=G[3],M0=p(r0[1][1+L0],r0,z0),ux=p(r0[1][1+i],r0,h0);return z0===M0&&h0===ux?G:[0,G[1],G[2],M0,G[4],G[5],G[6],G[7],G[8],ux,G[10]]}function Gx(r0,S0,G){var h0=G[4],z0=G[3],M0=p(r0[1][1+l],r0,z0),ux=p(r0[1][1+i],r0,h0);return z0===M0&&h0===ux?G:[0,G[1],G[2],M0,ux]}function J0(r0,S0){var G=S0[2],h0=G[2],z0=G[1],M0=S0[1];function ux(Zx){return[0,M0,[0,z0,Zx]]}return G0(a(r0[1][1+i],r0),h0,S0,ux)}function bx(r0,S0){var G=S0[2],h0=S0[1],z0=G[3];function M0(ux){return[0,h0,[0,G[1],G[2],ux]]}return G0(a(r0[1][1+i],r0),z0,[0,h0,G],M0)}function Jx(r0,S0,G){var h0=G[6],z0=G[5],M0=p(r0[1][1+ix],r0,z0),ux=p(r0[1][1+i],r0,h0);return z0===M0&&h0===ux?G:[0,G[1],G[2],G[3],G[4],M0,ux,G[7]]}function W0(r0,S0){var G=S0[2],h0=G[2],z0=G[1],M0=S0[1];if(h0===0){var ux=function(tr){return[0,M0,[0,tr,h0]]};return G0(a(r0[1][1+o],r0),z0,S0,ux)}function Zx(tr){return[0,M0,[0,z0,tr]]}var Lx=a(r0[1][1+t],r0);return G0(function(tr){return Kx(Lx,tr)},h0,S0,Zx)}function nr(r0,S0){var G=S0[2],h0=G[2],z0=G[1],M0=S0[1];function ux(Lx){return[0,M0,[0,Lx,h0]]}var Zx=a(r0[1][1+d],r0);return G0(function(Lx){return i6(Zx,Lx)},z0,S0,ux)}function V0(r0,S0,G){var h0=G[2],z0=G[1];if(h0===0){var M0=function(Lx){return[0,Lx,G[2],G[3]]};return G0(a(r0[1][1+l],r0),z0,G,M0)}function ux(Lx){return[0,G[1],Lx,G[3]]}var Zx=a(r0[1][1+t],r0);return G0(function(Lx){return Kx(Zx,Lx)},h0,G,ux)}function Sr(r0,S0){var G=S0[2],h0=G[2],z0=G[1],M0=S0[1];function ux(Zx){return[0,M0,[0,z0,Zx]]}return G0(a(r0[1][1+i],r0),h0,S0,ux)}function Ur(r0,S0,G){var h0=G[7],z0=G[2],M0=p(r0[1][1+k],r0,z0),ux=p(r0[1][1+i],r0,h0);return z0===M0&&h0===ux?G:[0,G[1],M0,G[3],G[4],G[5],G[6],ux]}function lx(r0,S0){var G=S0[2],h0=G[2],z0=G[1],M0=S0[1];function ux(Zx){return[0,M0,[0,z0,Zx]]}return G0(a(r0[1][1+i],r0),h0,S0,ux)}function br(r0,S0){var G=S0[2],h0=G[2],z0=G[1],M0=S0[1];function ux(Zx){return[0,M0,[0,z0,Zx]]}return G0(a(r0[1][1+i],r0),h0,S0,ux)}function e2(r0,S0,G){var h0=G[4],z0=G[3],M0=p(r0[1][1+g],r0,z0),ux=p(r0[1][1+i],r0,h0);return z0===M0&&h0===ux?G:[0,G[1],G[2],M0,ux]}function h1(r0,S0,G){var h0=G[2];function z0(M0){return[0,G[1],M0]}return G0(a(r0[1][1+i],r0),h0,G,z0)}function Ir(r0,S0,G){var h0=G[4],z0=G[3],M0=p(r0[1][1+l],r0,z0),ux=p(r0[1][1+i],r0,h0);return z0===M0&&h0===ux?G:[0,G[1],G[2],M0,ux]}function R1(r0,S0,G){var h0=G[4],z0=G[3],M0=p(r0[1][1+l],r0,z0),ux=p(r0[1][1+i],r0,h0);return z0===M0&&h0===ux?G:[0,G[1],G[2],M0,ux]}function _(r0,S0){var G=S0[2];function h0(z0){return[0,S0[1],z0]}return G0(a(r0[1][1+i],r0),G,S0,h0)}function b(r0,S0,G){var h0=G[2];function z0(M0){return[0,G[1],M0]}return G0(a(r0[1][1+i],r0),h0,G,z0)}return RO(x,[0,z,function(r0,S0){var G=S0[2],h0=a(Ml(function(M0){return Fs(M0[1][2],r0[1+r])<0?1:0}),G),z0=qc(h0);return qc(G)===z0?S0:[0,S0[1],h0,S0[3]]},C0,b,Y0,_,A0,R1,N0,Ir,D0,h1,Sx,e2,g,br,h,lx,ax,Ur,k,Sr,dx,V0,rx,nr,d,W0,n0,Jx,$0,bx,g0,J0,xx,Gx,X0,Bx,E0,mx,d0,Nx,o0,U0,v0,ex,s0,sx,f0,F0,$,X,x0,T,Q,B0,j,_x,J,b0,i0,ox,f,j0,t0,K0,Y,O0,V,D,M,P0,L,m0,O,a0,C,B,N,H]),function(r0,S0,G){var h0=iy(S0,x);return h0[1+r]=G,a(F,h0),OO(S0,h0,x)}}),Zy=function(x){var r=x3(x);if(r)var e=r[1],t=dz(x)?(x6(x,e[3]),[0,p(Tz[1],0,e[3])]):0,u=t;else var u=0;return[0,0,function(i,f){return u?p(f,u[1],i):i}]},f6=function(x){var r=x3(x);if(r){var e=r[1];if(dz(x)){x6(x,e[3]);var t=Jo(x),u=[0,p(Tz[1],0,[0,e[3][1]+1|0,0])],i=t}else var u=0,i=Jo(x)}else var u=0,i=0;return[0,i,function(f,o){return u?p(o,u[1],f):f}]},P1=function(x){return re(x)?f6(x):Zy(x)},gn=function(x,r){var e=P1(x)[2];return p(e,r,function(t,u){return p(qx(t,Pa,2),t,u)})},ee=function(x,r){if(!r)return 0;var e=r[1],t=P1(x)[2];return[0,p(t,e,function(u,i){return p(qx(u,zC,5),u,i)})]},sR=function(x,r){var e=P1(x)[2];return p(e,r,function(t,u){return p(qx(t,dD,7),t,u)})},t3=function(x,r){var e=P1(x)[2];return p(e,r,function(t,u){return p(qx(t,-1045824777,8),t,u)})},c6=function(x,r){var e=P1(x)[2];return p(e,r,function(t,u){return p(qx(t,-455772979,9),t,u)})},Sz=function(x,r){if(!r)return 0;var e=r[1],t=P1(x)[2];return[0,p(t,e,function(u,i){return p(qx(u,FU,12),u,i)})]},An=function(x,r){var e=P1(x)[2];return p(e,r,function(t,u){return p(qx(t,xD,13),t,u)})},Ez=function(x,r){var e=P1(x)[2];return p(e,r,function(t,u){var i=a(qx(t,Vj,15),t);return i6(function(f){return x2(i,f)},u)})},gz=function(x,r){var e=P1(x)[2];return p(e,r,function(t,u){return p(qx(t,-21476009,16),t,u)})},vS0=function(x,r){var e=x[2],t=x[1];function u(br){return N2(br,r)}switch(e[0]){case 0:var i=e[1],f=YO(i[2],r),lx=[0,[0,i[1],f]];break;case 1:var o=e[1],l=u(o[2]),lx=[1,[0,o[1],l]];break;case 2:var d=e[1],k=u(d[7]),lx=[2,[0,d[1],d[2],d[3],d[4],d[5],d[6],k]];break;case 3:var h=e[1],g=h[7],A=u(h[6]),lx=[3,[0,h[1],h[2],h[3],h[4],h[5],A,g]];break;case 4:var N=e[1],C=u(N[2]),lx=[4,[0,N[1],C]];break;case 5:var lx=[5,[0,u(e[1][1])]];break;case 6:var O=e[1],L=u(O[7]),lx=[6,[0,O[1],O[2],O[3],O[4],O[5],O[6],L]];break;case 7:var M=e[1],V=u(M[5]),lx=[7,[0,M[1],M[2],M[3],M[4],V]];break;case 8:var z=e[1],Y=u(z[3]),lx=[8,[0,z[1],z[2],Y]];break;case 9:var t0=e[1],i0=u(t0[5]),lx=[9,[0,t0[1],t0[2],t0[3],t0[4],i0]];break;case 10:var j=e[1],K=u(j[4]),lx=[10,[0,j[1],j[2],j[3],K]];break;case 11:var J=e[1],Q=u(J[5]),lx=[11,[0,J[1],J[2],J[3],J[4],Q]];break;case 12:var x0=e[1],$=u(x0[4]),lx=[12,[0,x0[1],x0[2],x0[3],$]];break;case 13:var f0=e[1],s0=u(f0[2]),lx=[13,[0,f0[1],s0]];break;case 14:var v0=e[1],o0=u(v0[4]),lx=[14,[0,v0[1],v0[2],v0[3],o0]];break;case 15:var c0=e[1],d0=u(c0[5]),lx=[15,[0,c0[1],c0[2],c0[3],c0[4],d0]];break;case 16:var E0=e[1],L0=u(E0[4]),lx=[16,[0,E0[1],E0[2],E0[3],L0]];break;case 17:var X0=e[1],xx=u(X0[3]),lx=[17,[0,X0[1],X0[2],xx]];break;case 18:var lx=[18,[0,u(e[1][1])]];break;case 19:var g0=e[1],$0=u(g0[3]),lx=[19,[0,g0[1],g0[2],$0]];break;case 20:var n0=e[1],ix=u(n0[3]),lx=[20,[0,n0[1],n0[2],ix]];break;case 21:var rx=e[1],dx=u(rx[5]),lx=[21,[0,rx[1],rx[2],rx[3],rx[4],dx]];break;case 22:var ax=e[1],Sx=u(ax[3]),lx=[22,[0,ax[1],ax[2],Sx]];break;case 23:var D0=e[1],N0=u(D0[5]),lx=[23,[0,D0[1],D0[2],D0[3],D0[4],N0]];break;case 24:var A0=e[1],Y0=u(A0[5]),lx=[24,[0,A0[1],A0[2],A0[3],A0[4],Y0]];break;case 25:var C0=e[1],F=u(C0[5]),lx=[25,[0,C0[1],C0[2],C0[3],C0[4],F]];break;case 26:var H=e[1],B=H[10],a0=u(H[9]),lx=[26,[0,H[1],H[2],H[3],H[4],H[5],H[6],H[7],H[8],a0,B]];break;case 27:var m0=e[1],P0=u(m0[4]),lx=[27,[0,m0[1],m0[2],m0[3],P0]];break;case 28:var D=e[1],O0=u(D[5]),lx=[28,[0,D[1],D[2],D[3],D[4],O0]];break;case 29:var K0=e[1],j0=u(K0[5]),lx=[29,[0,K0[1],K0[2],K0[3],K0[4],j0]];break;case 30:var ox=e[1],b0=u(ox[3]),lx=[30,[0,ox[1],ox[2],b0]];break;case 31:var _x=e[1],B0=_x[3],T=u(_x[2]),lx=[31,[0,_x[1],T,B0]];break;case 32:var X=e[1],F0=X[4],sx=u(X[3]),lx=[32,[0,X[1],X[2],sx,F0]];break;case 33:var ex=e[1],U0=u(ex[2]),lx=[33,[0,ex[1],U0]];break;case 34:var Nx=e[1],mx=u(Nx[4]),lx=[34,[0,Nx[1],Nx[2],Nx[3],mx]];break;case 35:var Bx=e[1],Gx=u(Bx[4]),lx=[35,[0,Bx[1],Bx[2],Bx[3],Gx]];break;case 36:var J0=e[1],bx=u(J0[5]),lx=[36,[0,J0[1],J0[2],J0[3],J0[4],bx]];break;case 37:var Jx=e[1],W0=u(Jx[3]),lx=[37,[0,Jx[1],Jx[2],W0]];break;case 38:var nr=e[1],V0=u(nr[3]),lx=[38,[0,nr[1],nr[2],V0]];break;default:var Sr=e[1],Ur=u(Sr[3]),lx=[39,[0,Sr[1],Sr[2],Ur]]}return[0,t,lx]};uy(Ss0,function(x){var r=NO(x,ks0),e=CO(_s0),t=e.length-1,u=ZX.length-1,i=Ja(t+u|0,0),f=t-1|0,o=0;if(f>=0)for(var l=o;;){var d=Kl(x,z1(e,l)[1+l]);z1(i,l)[1+l]=d;var k=l+1|0;if(f!==l){var l=k;continue}break}var h=u-1|0,g=0;if(h>=0)for(var A=g;;){var N=A+t|0,C=NO(x,z1(ZX,A)[1+A]);z1(i,N)[1+N]=C;var O=A+1|0;if(h!==A){var A=O;continue}break}var L=i[4],M=i[5],V=i[z3],z=i[hv],Y=i[292],t0=i[293],i0=i[44],j=i[Q8],K=i[WJ],J=IO(x,0,0,$X,jO,1)[1];function Q(o0,c0,d0){return p(o0[1][1+V],o0,d0[2]),d0}function x0(o0,c0){return p(o0[1][1+z],o0,c0),c0}function $(o0,c0){var d0=c0[1],E0=o0[1+t0];if(E0){var L0=Fs(E0[1][1][2],d0[2])<0?1:0,X0=L0&&(o0[1+t0]=[0,c0],0);return X0}var xx=0<=Fs(d0[2],o0[1+r][3])?1:0,g0=xx&&(o0[1+t0]=[0,c0],0);return g0}function f0(o0,c0){var d0=c0[1],E0=o0[1+Y];if(E0){var L0=Fs(d0[2],E0[1][1][2])<0?1:0,X0=L0&&(o0[1+Y]=[0,c0],0);return X0}var xx=Fs(d0[2],o0[1+r][2])<0?1:0,g0=xx&&(o0[1+Y]=[0,c0],0);return g0}function s0(o0,c0){return c0?p(o0[1][1+z],o0,c0[1]):0}function v0(o0,c0){var d0=c0[2],E0=c0[1];return g2(a(o0[1][1+M],o0),E0),g2(a(o0[1][1+L],o0),d0)}return RO(x,[0,j,function(o0){return[0,o0[1+Y],o0[1+t0]]},z,v0,V,s0,M,f0,L,$,i0,x0,K,Q]),function(o0,c0,d0){var E0=iy(c0,x);return E0[1+r]=d0,a(J,E0),E0[1+Y]=0,E0[1+t0]=0,OO(c0,E0,x)}});var Az=function(x){var r=W(x),e=0;if(typeof r=="number"){var t=r;if(49<=t)switch(t){case 49:var u=no0;break;case 50:var u=uo0;break;case 51:var u=io0;break;case 52:var u=fo0;break;case 53:var u=co0;break;case 54:var u=so0;break;case 55:var u=oo0;break;case 56:var u=vo0;break;case 57:var u=ao0;break;case 58:var u=lo0;break;case 59:var u=po0;break;case 60:var u=do0;break;case 61:var u=yo0;break;case 62:var u=mo0;break;case 63:var u=ko0;break;case 64:var u=ho0;break;case 65:var u=_o0;break;case 114:var u=wo0;break;case 115:var u=To0;break;case 116:var u=So0;break;case 117:var u=Eo0;break;case 118:var u=go0;break;case 119:var u=Ao0;break;case 120:var u=Po0;break;case 121:var u=No0;break;case 122:var u=Co0;break;case 123:var u=Io0;break;case 124:var u=Oo0;break;case 125:var u=Ro0;break;case 126:var u=Lo0;break;case 128:var u=Mo0;break;case 129:var u=Do0;break;default:e=1}else switch(t){case 15:var u=Es0;break;case 16:var u=gs0;break;case 17:var u=As0;break;case 18:var u=Ps0;break;case 19:var u=Ns0;break;case 20:var u=Cs0;break;case 21:var u=Is0;break;case 22:var u=Os0;break;case 23:var u=Rs0;break;case 24:var u=Ls0;break;case 25:var u=Ms0;break;case 26:var u=Ds0;break;case 27:var u=Us0;break;case 28:var u=js0;break;case 29:var u=Js0;break;case 30:var u=Xs0;break;case 31:var u=Ys0;break;case 32:var u=Vs0;break;case 33:var u=zs0;break;case 34:var u=Ks0;break;case 35:var u=Bs0;break;case 36:var u=Ws0;break;case 37:var u=Zs0;break;case 38:var u=$s0;break;case 39:var u=Fs0;break;case 40:var u=Qs0;break;case 41:var u=Gs0;break;case 42:var u=qs0;break;case 43:var u=Hs0;break;case 44:var u=bs0;break;case 45:var u=xo0;break;case 46:var u=ro0;break;case 47:var u=eo0;break;case 48:var u=to0;break;default:e=1}}else switch(r[0]){case 4:var u=r[2];break;case 11:var i=r[1]?Uo0:jo0,u=i;break;default:e=1}if(e){S1(Jo0,x);var u=Xo0}return Z0(x),u},T2=function(x){var r=Px(x),e=w0(x),t=Az(x);return[0,r,[0,t,k0([0,e],[0,hx(x)],0)]]},Pz=function(x){var r=Px(x),e=w0(x);u0(x,14);var t=Px(x),u=Az(x),i=k0([0,e],[0,hx(x)],0),f=u1(r,t),o=t[2],l=r[3],d=l[1]===o[1]?1:0,k=d&&(l[2]===o[2]?1:0);return 1-k&&nx(x,[0,f,Os]),[0,f,[0,u,i]]},Zv=function(x){var r=x[2],e=r[3]===0?1:0,t=r[2];if(!e)return e;for(var u=t;;){if(!u)return 1;var i=u[1][2],f=0,o=u[2];if(i[1][2][0]===2&&!i[2]){var l=1;f=1}if(!f)var l=0;if(!l)return l;var u=o}},s6=function(x){for(var r=x;;){var e=r[2];if(e[0]!==30)return 0;var t=e[1][2];if(t[2][0]===26)return 1;var r=t}},$y=function(x,r,e){var t=e[2][1],u=e[1];if(!P(t,Ev)){var i=r[19];return i&&nx(r,[0,u,6])}if(P(t,da)){if(!P(t,j2))return r[18]?nx(r,[0,u,it]):at(r,[0,u,85])}else if(r[14])return nx(r,[0,u,[24,ly(t)]]);if(r3(t))return at(r,[0,u,85]);if(Vy(t))return nx(r,[0,u,it]);if(x){var f=x[1];if(Bv(t))return at(r,[0,u,f])}return 0},l0=function(x,r,e){var t=x?x[1]:Px(e),u=a(r,e),i=x3(e),f=i?u1(t,i[1]):t;return[0,f,u]},Fy=function(x,r,e){var t=l0(x,r,e),u=t[2];return[0,[0,t[1],u[1]],u[2]]},Qy=function(x){J1(x,0);var r=W(x);K1(x);var e=kr(1,x),t=0;if(typeof r=="number")r===21&&(t=1);else if(r[0]===4)if(P(r[3],ya))t=1;else{var u=0;typeof e=="number"?e===21&&(u=1):e[0]===4&&(u=1),t=u?2:1}var i=0;switch(t){case 1:typeof e=="number"?m1===e&&(i=1):e[0]===4&&!P(e[3],al)&&(i=1);break;case 0:break;default:i=1}return i?1:0},Nz=function(x){switch(x){case 3:return 2;case 4:return 1;case 5:return 1;case 6:return 1;case 7:return 1;default:return 1}},oR=function(x,r,e){if(e){var t=e[1],u=0;if(t===8232||Q1===t)u=1;else var i=t===10?6:t===13?5:b3<=t?3:sC<=t?2:m1<=t?1:0;if(u)var i=7;var f=i}else var f=4;return[0,f,x]},aS0=[Gr,mv0,Js(0)],Cz=function(x,r,e,t){try{var u=z1(x,r)[1+r];return u}catch(f){var i=C1(f);throw i[1]===QI?q0([0,aS0,e,H0(Tr(dv0),t,r,x.length-1)],1):q0(i,0)}},Gy=function(x,r){if(r[1]===0&&r[2]===0)return 0;var e=Cz(x,r[1]-1|0,r,lv0);return Cz(e,r[2],r,pv0)},Iz=function(x){var r=[0,zv0,w2[1],0,0];function e(o){var l=W(o);if(typeof l=="number"){var d=0;if(8<=l?10>l&&(d=1):l===1&&(d=1),d)return 1}return 0}function t(o){var l=Px(o),d=w0(o),k=W(o);if(typeof k=="number")switch(k){case 30:case 31:Z0(o);var h=hx(o);return e(o)?[1,l,[0,k===31?1:0,k0([0,d],[0,h],0)]]:[0,l]}else switch(k[0]){case 0:var g=k[2],A=H0(x[24],o,k[1],g),N=hx(o);return e(o)?[2,l,[0,A,g,k0([0,d],[0,N],0)]]:[0,l];case 1:var C=k[2],O=H0(x[26],o,k[1],C),L=hx(o);return e(o)?[4,l,[0,O,C,k0([0,d],[0,L],0)]]:[0,l];case 2:var M=k[1],V=M[1],z=M[3],Y=M[2];M[4]&&Zt(o,81),Z0(o);var t0=hx(o);return e(o)?[3,V,[0,Y,z,k0([0,d],[0,t0],0)]]:[0,V]}return Z0(o),[0,l]}function u(o){var l=T2(o),d=W(o),k=0;if(typeof d=="number")if(d===82){u0(o,82);var h=t(o)}else if(d===86){Vx(o,[8,l[2][1]]),u0(o,86);var h=t(o)}else k=1;else k=1;if(k)var h=0;return[0,l,h]}var i=0;function f(o,l,d,k,h,g,A){var N=qc(h),C=qc(g);function O(M){return[2,[0,[0,g],d,k,A]]}function L(M){return[2,[0,[1,h],d,k,A]]}return N===0?O(0):C===0?L(0):N>>0){if(L2>=i0+1>>>0){var j=Y[3],K=Y[4],J=Ax(Y[1][5]),Q=Ax(Y[1][4]),x0=Ax(Y[1][3]),$=Ax(Y[1][2]),f0=Ax(Y[1][1]),s0=Qx(K,w0(C));u0(C,1);var v0=W(C),o0=0;if(typeof v0=="number"){var c0=0;if(v0===1||Rr===v0?c0=1:o0=1,c0)var d0=hx(C)}else o0=1;if(o0)var d0=re(C)?Jo(C):0;var E0=j1([0,z],[0,d0],s0,0);if(V){switch(V[1]){case 0:var L0=[0,[0,f0,1,j,E0]];break;case 1:var L0=[1,[0,$,1,j,E0]];break;case 2:var L0=f(C,g,1,j,x0,J,E0);break;case 3:var L0=[3,[0,J,j,E0]];break;default:var L0=[4,[0,Q,1,j,E0]]}var X0=L0}else{var xx=qc(f0),g0=qc($),$0=qc(x0),n0=qc(J),ix=function(b){return[2,[0,Uv0,0,j,E0]]},rx=0;if(xx===0&&g0===0){var dx=0;if($0===0&&n0===0)var ax=ix(0);else dx=1;if(dx)var ax=f(C,g,0,j,x0,J,E0)}else rx=1;if(rx){var Sx=0;if(g0===0&&$0===0&&n0<=xx){g2(function(r0){return nx(C,[0,r0[1],[3,g,r0[2][1][2][1]]])},J);var ax=[0,[0,f0,0,j,E0]];Sx=1}if(!Sx){var D0=0;if(xx===0&&$0===0&&n0<=g0){g2(function(r0){return nx(C,[0,r0[1],[11,g,r0[2][1][2][1]]])},J);var ax=[1,[0,$,0,j,E0]];D0=1}if(!D0){nx(C,[0,A,[5,g]]);var ax=ix(0)}}}var X0=ax}return X0}}else if(i0===10){var N0=Px(C),A0=w0(C);Z0(C);var Y0=W(C),C0=0;if(typeof Y0=="number"){var F=Y0-2|0,H=0;if(V1>>0)L2>=F+1>>>0&&(H=1);else if(F===7){u0(C,9);var B=W(C),a0=0;if(typeof B=="number"){var m0=0;if((B===1||Rr===B)&&(m0=1),m0){var P0=1;a0=1}}if(!a0)var P0=0;nx(C,[0,N0,[6,P0]]),H=1}H&&(C0=1)}C0||nx(C,[0,N0,Dv0]);var Y=[0,Y[1],Y[2],1,A0];continue}}var D=Y[2],O0=Y[1],K0=l0(i,u,C),j0=K0[2],ox=j0[2],b0=j0[1],_x=K0[1],B0=b0[2][1],T=b0[1];if(Ar(B0,kx))var X=Y;else{var F0=N1(B0,0),sx=97<=F0?1:0,ex=sx&&(F0<=Hr?1:0);ex&&nx(C,[0,T,[10,g,B0]]),p(w2[3],B0,D)&&nx(C,[0,T,[4,g,B0]]);var U0=Y[4],Nx=Y[3],mx=p(w2[4],B0,D),Bx=[0,Y[1],mx,Nx,U0],Gx=function(_){return function(b,r0){return V&&V[1]!==b?nx(C,[0,r0,[9,g,V,_]]):0}}(B0);if(typeof ox=="number"){var J0=0;if(V)switch(V[1]){case 0:nx(C,[0,_x,[3,g,B0]]);var X=Bx;break;case 1:nx(C,[0,_x,[11,g,B0]]);var X=Bx;break;case 4:nx(C,[0,_x,[2,g,B0]]);var X=Bx;break;default:J0=1}else J0=1;if(J0)var X=[0,[0,O0[1],O0[2],O0[3],O0[4],[0,[0,_x,[0,b0]],O0[5]]],mx,Nx,U0]}else switch(ox[0]){case 0:nx(C,[0,ox[1],[9,g,V,B0]]);var X=Bx;break;case 1:var bx=ox[1],Jx=ox[2];Gx(0,bx);var X=[0,[0,[0,[0,_x,[0,b0,[0,bx,Jx]]],O0[1]],O0[2],O0[3],O0[4],O0[5]],mx,Nx,U0];break;case 2:var W0=ox[1],nr=ox[2];Gx(1,W0);var X=[0,[0,O0[1],[0,[0,_x,[0,b0,[0,W0,nr]]],O0[2]],O0[3],O0[4],O0[5]],mx,Nx,U0];break;case 3:var V0=ox[1],Sr=ox[2];Gx(2,V0);var X=[0,[0,O0[1],O0[2],[0,[0,_x,[0,b0,[0,V0,Sr]]],O0[3]],O0[4],O0[5]],mx,Nx,U0];break;default:var Ur=ox[1],lx=ox[2];Gx(4,Ur);var X=[0,[0,O0[1],O0[2],O0[3],[0,[0,_x,[0,b0,[0,Ur,lx]]],O0[4]],O0[5]],mx,Nx,U0]}}var br=W(C),e2=0;if(typeof br=="number"){var h1=br-2|0,Ir=0;V1

    >>0?L2>=h1+1>>>0&&(Ir=1):h1===6&&(Vx(C,22),u0(C,8),Ir=1),Ir&&(e2=1)}e2||u0(C,9);var Y=X}},l);return[0,h,N,k0([0,k],0,0)]}]},qy=function(x,r,e){if(typeof e=="number")return[0,x,r];if(e[0]===0){var t=e[1],u=Tx(x,t),i=e[2];return u===0?i===r?e:[0,t,r]:0<=u?[1,2,x,r,e,0]:[1,2,x,r,0,e]}var f=e[5],o=e[4],l=e[3],d=e[2],k=Tx(x,d),h=e[1];if(k===0)return l===r?e:[1,h,x,r,o,f];if(0<=k){var g=qy(x,r,f);return f===g?e:tV(o,d,l,g)}var A=qy(x,r,o);return o===A?e:tV(A,d,l,f)},n3=function(x){return[0,Gs(x)]},vR=vV([0,function(x,r){var e=r[2],t=x[2],u=mV(x[1],r[1]);return u===0?p(kV,t,e):u}]),o6=function(x,r,e){var t=e[2][1],u=e[1];return Ar(t,kx)?r:p(w2[3],t,r)?(nx(x,[0,u,[0,t]]),r):p(w2[4],t,r)},aR=function(x){return function(r){var e=r[2];switch(e[0]){case 0:var t=e[1][1];return H1(function(i,f){var o=f[0]===0?f[1][2][2]:f[1][2][1];return a(aR(i),o)},x,t);case 1:var u=e[1][1];return H1(function(i,f){if(f[0]===2)return i;var o=f[1][2][1];return a(aR(i),o)},x,u);case 2:return[0,e[1][1],x];default:return Ox(Bl0)}}},px=YY(Zl0,Wl0[1]),Hy=function(x,r,e){var t=x?x[1]:0,u=r?r[1]:0,i=Px(e),f=W(e);if(typeof f=="number")switch(f){case 103:var o=w0(e);return Z0(e),[0,[0,i,[0,0,k0([0,o],0,0)]]];case 104:var l=w0(e);return Z0(e),[0,[0,i,[0,1,k0([0,l],0,0)]]];case 126:if(t){var d=w0(e);return Z0(e),[0,[0,i,[0,2,k0([0,d],0,0)]]]}break}else if(f[0]===4){var k=f[3];if(P(k,wo)){if(!P(k,k_)&&u&&zy(1,e)){var h=w0(e);return Z0(e),[0,[0,i,[0,4,k0([0,h],0,0)]]]}}else if(u&&zy(1,e)){var g=w0(e);Z0(e);var A=W(e),N=0;if(typeof A!="number"&&A[0]===4&&!P(A[3],k_)){var C=Px(e);Z0(e);var O=u1(i,C),L=5;N=1}if(!N)var O=i,L=3;return[0,[0,O,[0,L,k0([0,g],0,0)]]]}}return 0},Oz=function(x,r,e,t,u){r===1&&Zt(u,81);var i=w0(u);Z0(u);var f=hx(u);if(x)var o=k0([0,Qx(x[1],i)],[0,f],0),l=o,d=Fx(av0,t),k=-e;else var l=k0([0,i],[0,f],0),d=t,k=e;return[29,[0,k,d,l]]},Rz=function(x,r,e,t){var u=w0(t);Z0(t);var i=hx(t);if(x)var f=k0([0,Qx(x[1],u)],[0,i],0),o=Fx(vv0,e),l=f,d=o,k=$d(YI,r);else var l=k0([0,u],[0,i],0),d=e,k=r;return[30,[0,k,d,l]]},$r=function x(r){return x.fun(r)},u3=function x(r){return x.fun(r)},Lz=function x(r){return x.fun(r)},Mz=function x(r){return x.fun(r)},lR=function x(r,e,t){return x.fun(r,e,t)},by=function x(r){return x.fun(r)},pR=function x(r,e,t,u){return x.fun(r,e,t,u)},dR=function x(r){return x.fun(r)},yR=function x(r,e,t,u){return x.fun(r,e,t,u)},mR=function x(r){return x.fun(r)},kR=function x(r,e){return x.fun(r,e)},hR=function x(r){return x.fun(r)},Dz=function x(r){return x.fun(r)},xm=function x(r,e,t,u){return x.fun(r,e,t,u)},rm=function x(r,e,t,u,i){return x.fun(r,e,t,u,i)},Uz=function x(r){return x.fun(r)},jz=function x(r,e){return x.fun(r,e)},_R=function x(r){return x.fun(r)},Jz=function x(r){return x.fun(r)},Xz=function x(r){return x.fun(r)},Yz=function x(r){return x.fun(r)},Vz=function x(r){return x.fun(r)},wR=function x(r,e){return x.fun(r,e)},zz=function x(r){return x.fun(r)},Kz=function x(r){return x.fun(r)},v6=function x(r,e){return x.fun(r,e)},Bz=function x(r){return x.fun(r)},$v=function x(r){return x.fun(r)},em=function x(r){return x.fun(r)},Wz=function x(r,e){return x.fun(r,e)},TR=function x(r){return x.fun(r)},Zz=function x(r){return x.fun(r)},$z=function x(r){return x.fun(r)},Fz=function x(r){return x.fun(r)},Qz=function x(r){return x.fun(r)},tm=function x(r,e,t,u){return x.fun(r,e,t,u)},SR=function x(r){return x.fun(r)},nm=function x(r){return x.fun(r)},ER=function x(r,e){return x.fun(r,e)},um=function x(r,e,t,u){return x.fun(r,e,t,u)},gR=function x(r){return x.fun(r)},Xo=function x(r){return x.fun(r)},Gz=function x(r){return x.fun(r)},Fv=function x(r){return x.fun(r)},AR=function x(r){return x.fun(r)},im=function x(r){return x.fun(r)},PR=function x(r,e){return x.fun(r,e)},qz=function x(r,e){return x.fun(r,e)},Hz=function x(r){return x.fun(r)},bz=function x(r){return x.fun(r)},fm=function x(r){return x.fun(r)},xK=function x(r,e,t){return x.fun(r,e,t)};I0($r,function(x){return a(Mz,x)}),I0(u3,function(x){return 1-k1(x)&&Vx(x,G2),l0(0,function(r){return u0(r,86),a($r,r)},x)}),I0(Lz,function(x){1-k1(x)&&Vx(x,G2);var r=Px(x);return u0(x,86),Qy(x)?[2,p(ER,x,r)]:[1,l0([0,r],$r,x)]}),I0(Mz,function(x){var r=Px(x),e=rR(0,x);return H0(lR,e,r,a(by,e))}),I0(lR,function(x,r,e){var t=W(x);return typeof t=="number"&&t===41?l0([0,r],function(u){u0(u,41);var i=a(by,rR(1,u));By(u,85);var f=a($r,u);By(u,86);var o=a($r,u);return[17,[0,e,i,f,o,k0(0,[0,hx(u)],0)]]},x):e}),I0(by,function(x){var r=Px(x);if(W(x)===89){var e=w0(x);Z0(x);var t=e}else var t=0;return ve(pR,x,[0,t],r,a(dR,x))}),I0(pR,function(x,r,e,t){var u=r?r[1]:0;if(W(x)!==89)return t;var i=[0,t,0];return l0([0,e],function(f){for(var o=i;;){if(o1(f,89)){var o=[0,a(dR,f),o];continue}var l=Ax(o);if(l){var d=l[2];if(d){var k=d[2],h=d[1],g=l[1];return[22,[0,[0,g,h,k],k0([0,u],0,0)]]}}throw q0([0,wr,ov0],1)}},x)}),I0(dR,function(x){var r=Px(x);if(W(x)===91){var e=w0(x);Z0(x);var t=e}else var t=0;return ve(yR,x,[0,t],r,a(mR,x))}),I0(yR,function(x,r,e,t){var u=r?r[1]:0;if(W(x)!==91)return t;var i=[0,t,0];return l0([0,e],function(f){for(var o=i;;){if(o1(f,91)){var o=[0,a(mR,f),o];continue}var l=Ax(o);if(l){var d=l[2];if(d){var k=d[2],h=d[1],g=l[1];return[23,[0,[0,g,h,k],k0([0,u],0,0)]]}}throw q0([0,wr,sv0],1)}},x)}),I0(mR,function(x){return p(kR,x,a(hR,x))}),I0(kR,function(x,r){var e=W(x);if(typeof e=="number"&&e===11&&!x[15]){var t=p(v6,x,r);return ve(tm,x,t[1],0,[0,t[1],[0,0,[0,t,0],0,0]])}return r}),I0(hR,function(x){var r=W(x);return typeof r=="number"&&r===85?l0(0,function(e){var t=w0(e);u0(e,85);var u=k0([0,t],0,0);return[11,[0,a(hR,e),u]]},x):a(Dz,x)}),I0(Dz,function(x){var r=Px(x);return ve(xm,0,x,r,a(Xz,x))}),I0(xm,function(x,r,e,t){var u=x?x[1]:0;if(re(r))return t;var i=W(r);if(typeof i=="number"){if(i===6)return Z0(r),Ve(rm,u,0,r,e,t);if(i===10){var f=kr(1,r);return typeof f=="number"&&f===6?(Vx(r,fv0),u0(r,10),u0(r,6),Ve(rm,u,0,r,e,t)):(Vx(r,cv0),t)}if(i===83)return Z0(r),W(r)!==6&&Vx(r,46),u0(r,6),Ve(rm,1,1,r,e,t)}return t}),I0(rm,function(x,r,e,t,u){return ve(xm,[0,x],e,t,l0([0,t],function(i){if(!r&&o1(i,7))return[16,[0,u,k0(0,[0,hx(i)],0)]];var f=a($r,i);u0(i,7);var o=[0,u,f,k0(0,[0,hx(i)],0)];return x?[21,[0,o,r]]:[20,o]},e))}),I0(Uz,function(x){return p(jz,x,p(px[13],0,x))}),I0(jz,function(x,r){for(var e=[0,r[1],[0,r]];;){var t=e[2],u=e[1];if(W(x)===10&&mz(1,x)){var i=l0([0,u],function(l){return function(d){return u0(d,10),[0,l,T2(d)]}}(t),x),f=i[1],e=[0,f,[1,[0,f,i[2]]]];continue}return t}}),I0(_R,function(x){if(J1(x,0),W(x)===4){Z0(x);var r=a(_R,x);u0(x,5);var e=r}else var e=ns(x)?[0,a(Uz,x)]:(Vx(x,51),0);return K1(x),e}),I0(Jz,function(x){return l0(0,function(r){var e=w0(r);u0(r,46);var t=a(_R,r);if(!t)return iv0;var u=t[1];return[24,[0,u,k0([0,e],0,0)]]},x)}),I0(Xz,function(x){var r=Px(x),e=W(x),t=0;if(typeof e=="number")switch(e){case 4:return a(Fz,x);case 6:return a(Kz,x);case 46:return a(Jz,x);case 53:return l0(0,function(Y){var t0=w0(Y);Z0(Y);var i0=a(gR,Y),j=i0[2],K=i0[1];return[15,[0,j,K,k0([0,t0],0,0)]]},x);case 98:return a(Qz,x);case 104:return l0(0,Yz,x);case 106:var u=w0(x);return Z0(x),[0,r,[10,k0([0,u],[0,hx(x)],0)]];case 125:return l0(0,function(Y){var t0=w0(Y);Z0(Y);var i0=hx(Y),j=a($r,Y);return[25,[0,j,k0([0,t0],[0,i0],0)]]},x);case 126:return l0(0,function(Y){var t0=w0(Y);Z0(Y);var i0=hx(Y),j=a($r,Y);return[26,[0,j,k0([0,t0],[0,i0],0)]]},x);case 127:return l0(0,function(Y){var t0=w0(Y);Z0(Y);var i0=hx(Y),j=l0(0,function(K){var J=a(Xo,K);function Q(x0){if(1-o1(x0,41))throw q0(us,1);var $=a(by,x0);if(!x0[16]&&W(x0)===85)throw q0(us,1);return[1,[0,$[1],$]]}return[0,J,Wy(K,[0,Px(K)],Q),1,0,0]},Y);return[18,[0,j,k0([0,t0],[0,i0],0)]]},x);case 0:case 2:var i=ve(um,0,1,1,x);return[0,i[1],[14,i[2]]];case 41:case 42:t=1;break;case 30:case 31:var f=w0(x);return Z0(x),[0,r,[31,[0,e===31?1:0,k0([0,f],[0,hx(x)],0)]]]}else switch(e[0]){case 2:var o=e[1],l=o[3],d=o[2],k=o[1];o[4]&&Zt(x,81);var h=w0(x);return Z0(x),[0,k,[28,[0,d,l,k0([0,h],[0,hx(x)],0)]]];case 4:if(P(e[3],lo))t=1;else{if(x[28][1])return l0(0,function(Y){var t0=w0(Y);Hs(Y,ev0);var i0=ee(Y,a(Fv,Y)),j=a(TR,Y);if(fR(Y))var Q=sR(Y,a(fm,Y)),x0=j;else var K=a(fm,Y),J=P1(Y)[2],Q=K,x0=p(J,j,function($,f0){return p(qx($,420776873,11),$,f0)});return[13,[0,i0,x0,Q,k0([0,t0],0,0)]]},x);t=1}break;case 7:if(!P(e[1],U3))return Vx(x,89),[0,r,tv0];break;case 12:var g=e[3],A=e[2],N=e[1],C=0;return l0(0,function(Y){return Oz(C,N,A,g,Y)},x);case 13:var O=e[3],L=e[2],M=0;return l0(0,function(Y){return Rz(M,L,O,Y)},x)}if(t){var V=a(im,x);return[0,V[1],[19,V[2]]]}var z=a(zz,x);return z?[0,r,z[1]]:(S1(nv0,x),[0,r,uv0])}),I0(Yz,function(x){var r=w0(x);Z0(x);var e=W(x);if(typeof e!="number")switch(e[0]){case 12:return Oz([0,r],e[1],e[2],e[3],x);case 13:return Rz([0,r],e[2],e[3],x)}return S1(xv0,x),rv0}),I0(Vz,function(x){var r=0;if(typeof x=="number")switch(x){case 29:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 124:r=1;break}else x[0]===11&&(r=1);return r?1:0}),I0(wR,function(x,r){var e=w0(x),t=l0(0,Z0,x)[1],u=k0([0,e],[0,hx(x)],0);return[0,[19,[0,[0,Sn(0,[0,t,r])],0,u]]]}),I0(zz,function(x){var r=w0(x),e=W(x);if(typeof e=="number")switch(e){case 29:return Z0(x),[0,[4,k0([0,r],[0,hx(x)],0)]];case 114:return Z0(x),[0,[0,k0([0,r],[0,hx(x)],0)]];case 115:return Z0(x),[0,[1,k0([0,r],[0,hx(x)],0)]];case 116:return Z0(x),[0,[2,k0([0,r],[0,hx(x)],0)]];case 117:return Z0(x),[0,[5,k0([0,r],[0,hx(x)],0)]];case 118:return Z0(x),[0,[6,k0([0,r],[0,hx(x)],0)]];case 119:return Z0(x),[0,[7,k0([0,r],[0,hx(x)],0)]];case 120:return Z0(x),[0,[3,k0([0,r],[0,hx(x)],0)]];case 121:return Z0(x),[0,[9,k0([0,r],[0,hx(x)],0)]];case 122:return Z0(x),[0,[32,k0([0,r],[0,hx(x)],0)]];case 123:return Z0(x),[0,[33,k0([0,r],[0,hx(x)],0)]];case 124:return Z0(x),[0,[34,k0([0,r],[0,hx(x)],0)]];case 128:return p(wR,x,Ho0);case 129:return p(wR,x,bo0)}else if(e[0]===11){var t=e[1];Z0(x);var u=hx(x),i=t?-883944824:737456202;return[0,[8,i,k0([0,r],[0,u],0)]]}return 0}),I0(Kz,function(x){return l0(0,function(r){var e=w0(r);u0(r,6);for(var t=Kv(0,r),u=0;;){var i=W(t);if(typeof i=="number"){var f=0;if(i!==7&&Rr!==i&&(f=1),!f){var o=Ax(u);return u0(r,7),[27,[0,o,k0([0,e],[0,hx(r)],0)]]}}var l=[0,l0(0,function(k){if(!o1(k,12)){var h=W(k),g=0;if(typeof h=="number"&&(fn===h||Dt===h&&Uo(1,k))){var A=Hy(0,0,k);g=1}if(!g)var A=0;var N=ns(k),C=kr(1,k);if(N&&typeof C=="number"&&1>=C+ko>>>0){var O=T2(k),L=o1(k,85);return u0(k,86),[1,[0,O,a($r,k),A,L]]}var M=A?1:0;return M&&Vx(k,50),[0,a($r,k)]}var V=ns(k),z=kr(1,k),Y=0;if(V&&typeof z=="number"&&1>=z+ko>>>0){var t0=T2(k);W(k)===85&&(Vx(k,49),Z0(k)),u0(k,86);var i0=[0,t0];Y=1}if(!Y)var i0=0;return[2,[0,i0,a($r,k)]]},t),u];W(t)!==7&&u0(t,9);var u=l}},x)}),I0(v6,function(x,r){return[0,r[1],[0,0,r,0]]}),I0(Bz,function(x){return l0(0,function(r){J1(r,0);var e=p(px[13],0,r);K1(r),1-k1(r)&&Vx(r,G2);var t=o1(r,85);return u0(r,86),[0,[0,e],a($r,r),t]},x)});var rK=function(x){var r=kr(1,x);return typeof r=="number"&&1>=r+ko>>>0?a(Bz,x):p(v6,x,a($r,x))};I0($v,function(x){var r=0;return function(e){for(var t=r,u=e;;){var i=W(x);if(typeof i=="number")switch(i){case 5:case 12:case 113:var f=i===12?[0,l0(0,function(A){var N=w0(A);u0(A,12);var C=k0([0,N],0,0);return[0,rK(A),C]},x)]:0;return[0,t,Ax(u),f,0]}else if(i[0]===4&&!P(i[3],vv)){var o=0;if(kr(1,x)!==86&&kr(1,x)!==85&&(o=1),!o){var l=t!==0?1:0,d=l||(u!==0?1:0);d&&Vx(x,94);var k=l0(0,function(N){var C=w0(N);Z0(N),W(N)===85&&Vx(N,93);var O=k0([0,C],0,0);return[0,a(u3,N),O]},x);W(x)!==5&&u0(x,9);var t=[0,k];continue}}var h=[0,rK(x),u];W(x)!==5&&u0(x,9);var u=h}}}),I0(em,function(x){return l0(0,function(r){var e=w0(r);u0(r,4);var t=p($v,r,0),u=w0(r);u0(r,5);var i=j1([0,e],[0,hx(r)],u,0);return[0,t[1],t[2],t[3],i]},x)}),I0(Wz,function(x,r){for(var e=r;;){var t=W(x);if(typeof t=="number"){var u=t-5|0,i=0;if(7>>0?vn===u&&(i=1):5>>0&&(i=1),i){var f=t===12?[0,l0(0,function(d){var k=w0(d);u0(d,12);var h=kr(1,d),g=0;if(typeof h=="number")if(h===85){J1(d,0);var A=p(px[13],0,d);K1(d),u0(d,85),u0(d,86);var C=1,O=[0,A]}else if(h===86){J1(d,0);var N=p(px[13],0,d);K1(d),u0(d,86);var C=0,O=[0,N]}else g=1;else g=1;if(g)var C=0,O=0;var L=a($r,d);return[0,O,L,C,k0([0,k],0,0)]},x)]:0;return[0,Ax(e),f,0]}}var o=[0,l0(0,function(d){var k=W(d),h=0;if(typeof k!="number"&&k[0]===2){var g=k[1],A=g[4],N=g[3],C=g[2],O=g[1];A&&Zt(d,81),u0(d,[2,[0,O,C,N,A]]);var L=[1,[0,O,[0,C,N,k0(0,[0,hx(d)],0)]]];h=1}if(!h){J1(d,0);var M=p(px[13],0,d);K1(d);var L=[0,M]}var V=o1(d,85);return[0,L,a(u3,d),V]},x),e];W(x)!==5&&u0(x,9);var e=o}}),I0(TR,function(x){return l0(0,function(r){var e=w0(r);u0(r,4);var t=p(Wz,r,0),u=w0(r);u0(r,5);var i=j1([0,e],[0,hx(r)],u,0);return[0,t[1],t[2],i]},x)}),I0(Zz,function(x){var r=w0(x);u0(x,4);var e=Kv(0,x),t=W(e),u=0;if(typeof t=="number")switch(t){case 5:var i=qo0;break;case 42:u=2;break;case 12:case 113:var i=[0,p($v,e,0)];break;default:u=1}else t[0]===4?u=2:u=1;switch(u){case 1:if(a(Vz,t)){var f=kr(1,e),o=0;if(typeof f=="number"&&1>=f+ko>>>0){var l=[0,p($v,e,0)];o=1}if(!o)var l=[1,a($r,e)];var i=l}else var i=[1,a($r,e)];break;case 2:var i=a($z,e);break}if(i[0]===0)var d=i;else{var k=i[1];if(x[15])var h=i;else{var g=W(x),A=0;if(typeof g=="number")if(g===5)var N=kr(1,x)===11?[0,p($v,x,[0,p(v6,x,k),0])]:[1,k];else if(g===9){u0(x,9);var N=[0,p($v,x,[0,p(v6,x,k),0])]}else A=1;else A=1;if(A)var N=i;var h=N}var d=h}var C=w0(x);u0(x,5);var O=hx(x);if(d[0]===0)var L=d[1],M=j1([0,r],[0,O],C,0),V=[0,[0,L[1],L[2],L[3],M]];else var V=[1,H0(xK,d[1],r,O)];return V}),I0($z,function(x){var r=kr(1,x);if(typeof r=="number"&&1>=r+ko>>>0)return[0,p($v,x,0)];var e=Px(x),t=p(qz,x,a(Xo,x)),u=a(H0(xm,0,x,e),t),i=a(a(kR,x),u),f=a(p(a(yR,x),0,e),i),o=a(p(a(pR,x),0,e),f);return[1,a(p(lR,rR(0,x),e),o)]}),I0(Fz,function(x){var r=Px(x),e=l0(0,Zz,x),t=e[2],u=e[1];return t[0]===0?ve(tm,x,r,0,[0,u,t[1]]):t[1]}),I0(Qz,function(x){var r=Px(x),e=ee(x,a(Fv,x));return ve(tm,x,r,e,a(em,x))}),I0(tm,function(x,r,e,t){return l0([0,r],function(u){return u0(u,11),[12,[0,e,t,a(SR,u),0]]},x)}),I0(SR,function(x){return Qy(x)?[1,a(nm,x)]:[0,a($r,x)]}),I0(nm,function(x){return l0(0,function(r){var e=w0(r),t=o1(r,dl);J1(r,0);var u=T2(r);K1(r);var i=W(r),f=0;if(typeof i=="number"&&m1===i){var o=w0(r);u0(r,m1);var l=Qx(o,w0(r)),d=l,k=[0,a($r,r)];f=1}if(!f)var d=0,k=0;return[0,t,[0,u,k],j1([0,e],0,d,0)]},x)}),I0(ER,function(x,r){return l0([0,r],nm,x)});var cm=function(x,r,e){return l0([0,r],function(t){var u=a(em,t);return u0(t,86),[0,e,u,a(SR,t),0]},x)},eK=function(x,r,e,t,u){var i=An(x,t),f=cm(x,r,ee(x,a(Fv,x))),o=[0,f[1],[12,f[2]]],l=[0,i,[0,o],0,e!==0?1:0,0,1,0,k0([0,u],0,0)];return[0,[0,o[1],l]]},sm=function(x,r,e,t,u,i,f){var o=f[2],l=f[1];return 1-k1(x)&&Vx(x,G2),[0,l0([0,r],function(d){var k=o1(d,85),h=_z(d,86)?a($r,d):[0,l,Go0];return[0,o,[0,h],k,t!==0?1:0,u!==0?1:0,0,e,k0([0,i],0,0)]},x)]},a6=function(x,r){var e=W(r);if(typeof e=="number"&&10>e)switch(e){case 1:if(!x)return 0;break;case 3:if(x)return 0;break;case 8:case 9:return Z0(r)}return qs(r,9)},l6=function(x,r){return r?nx(x,[0,r[1][1],L2]):0},p6=function(x,r){return r?nx(x,[0,r[1],99]):0},lS0=function(x,r,e,t,u,i,f,o,l){for(var d=e,k=t,h=u,g=i,A=f,N=o;;){var C=W(x);if(typeof C=="number")switch(C){case 6:p6(x,A);var O=kr(1,x);if(typeof O=="number"&&O===6)return l6(x,h),[4,l0([0,l],function(D0){var N0=Qx(N,w0(D0));u0(D0,6),u0(D0,6);var A0=T2(D0);u0(D0,7),u0(D0,7);var Y0=W(D0),C0=0;if(typeof Y0=="number"){var F=0;if((Y0===4||Y0===98)&&(F=1),F){var H=cm(D0,l,ee(D0,a(Fv,D0))),B=0,a0=[0,H[1],[12,H[2]]],m0=1,P0=0;C0=1}}if(!C0){var D=o1(D0,85),O0=hx(D0);u0(D0,86);var B=O0,a0=a($r,D0),m0=0,P0=D}return[0,A0,a0,P0,g!==0?1:0,m0,k0([0,N0],[0,B],0)]},x)];var L=Qx(N,w0(x));u0(x,6);var M=kr(1,x);return typeof M!="number"&&M[0]===4&&!P(M[3],wo)&&g===0?[5,l0([0,l],function(D0){var N0=a(Xo,D0),A0=N0[1];Z0(D0);var Y0=a($r,D0);u0(D0,7);var C0=W(D0),F=0,H=[0,N0,[0,A0],0,0,0];if(typeof C0=="number"){var B=C0+LP|0,a0=0;if(1>>0)if(B===-18){Z0(D0);var m0=2}else a0=1;else var m0=B?(Z0(D0),u0(D0,85),1):(Z0(D0),u0(D0,85),0);if(!a0){var P0=m0;F=1}}if(!F)var P0=3;u0(D0,86);var D=a($r,D0);return[0,[0,A0,H],D,Y0,h,P0,k0([0,L],[0,hx(D0)],0)]},x)]:[2,l0([0,l],function(D0){if(kr(1,D0)===86){var N0=T2(D0);u0(D0,86);var A0=[0,N0]}else var A0=0;var Y0=a($r,D0);u0(D0,7);var C0=hx(D0);u0(D0,86);var F=a($r,D0);return[0,A0,Y0,F,g!==0?1:0,h,k0([0,L],[0,C0],0)]},x)];case 42:if(d){if(h!==0)throw q0([0,wr,Ko0],1);var V=[0,Px(x)],z=Qx(N,w0(x));Z0(x);var d=0,k=0,g=V,N=z;continue}break;case 126:if(h===0){var Y=0;if((Uo(1,x)||kr(1,x)===6)&&(Y=1),Y){var d=0,k=0,h=Hy(Bo0,0,x);continue}}break;case 103:case 104:if(h===0){var d=0,k=0,h=Hy(0,0,x);continue}break;case 4:case 98:return p6(x,A),l6(x,h),[3,l0([0,l],function(D0){var N0=Px(D0),A0=cm(D0,N0,ee(D0,a(Fv,D0)));return[0,A0,g!==0?1:0,k0([0,N],0,0)]},x)]}else if(C[0]===4&&!P(C[3],CC)&&k){if(h!==0)throw q0([0,wr,Wo0],1);var t0=[0,Px(x)],i0=Qx(N,w0(x));Z0(x);var d=0,k=0,A=t0,N=i0;continue}if(g){var j=g[1];if(A)return Ox(Zo0);if(typeof C=="number"&&1>=C+ko>>>0)return sm(x,l,h,0,A,0,[0,j,[3,Sn(k0([0,N],0,0),[0,j,$o0])]])}else if(A){var K=A[1];if(typeof C=="number"&&1>=C+ko>>>0)return sm(x,l,h,g,0,0,[0,K,[3,Sn(k0([0,N],0,0),[0,K,Fo0])]])}var J=function(D0){J1(D0,0);var N0=p(px[20],0,D0);return K1(D0),N0},Q=w0(x),x0=J(x),$=x0[1],f0=x0[2];if(f0[0]===3){var s0=f0[1][2][1],v0=0;if(P(s0,gv)&&P(s0,Ra)&&(v0=1),!v0){var o0=W(x);if(typeof o0=="number"){var c0=o0-5|0;if(92>>0){if(94>=c0+1>>>0)return p6(x,A),l6(x,h),eK(x,l,g,f0,N)}else if(1>=c0+HD>>>0)return sm(x,l,h,g,A,N,[0,$,f0])}An(x,f0);var d0=J(x),E0=Ar(s0,gv),L0=Qx(N,Q);return p6(x,A),l6(x,h),[0,l0([0,l],function(D0){var N0=d0[1],A0=An(D0,d0[2]),Y0=cm(D0,l,0),C0=Y0[2][2];if(E0){var F=C0[2],H=0;if(F[1])nx(D0,[0,N0,28]),H=1;else{var B=0;F[2]||F[3]?B=1:H=1,B&&nx(D0,[0,N0,27])}}else{var a0=C0[2],m0=0;if(a0[1])nx(D0,[0,N0,71]);else{var P0=a0[2],D=0;if(a0[3])nx(D0,[0,N0,70]),D=1;else{var O0=0;P0&&!P0[2]?D=1:O0=1,O0&&(nx(D0,[0,N0,70]),m0=1)}}}var K0=k0([0,L0],0,0),j0=0,ox=0,b0=0,_x=g!==0?1:0,B0=0,T=E0?[1,Y0]:[2,Y0];return[0,A0,T,B0,_x,b0,ox,j0,K0]},x)]}}var X0=x0[2],xx=W(x);if(typeof xx=="number"){var g0=0;if(xx!==4&&xx!==98&&(g0=1),!g0)return p6(x,A),l6(x,h),eK(x,l,g,X0,N)}var $0=g!==0?1:0,n0=0;if(X0[0]===3){var ix=X0[1],rx=ix[2][1],dx=0,ax=ix[1];if(r){var Sx=0;(Ar(Tv,rx)||$0&&Ar(_o,rx))&&(Sx=1),Sx&&(nx(x,[0,ax,[15,rx,$0,0,0]]),n0=1,dx=1)}}return sm(x,l,h,g,A,N,[0,$,X0])}};I0(um,function(x,r,e,t){var u=r&&(W(t)===2?1:0),i=r&&1-u;return l0(0,function(f){var o=w0(f),l=u?2:0;u0(f,l);for(var d=Kv(0,f),k=Qo0;;){var h=k[3],g=k[2],A=k[1];if(x&&e)throw q0([0,wr,Vo0],1);if(i&&!e)throw q0([0,wr,zo0],1);var N=Px(d),C=W(d);if(typeof C=="number"){var O=0;if(13<=C){if(Rr===C){var L=[0,Ax(A),g,h];O=1}}else if(C)switch(C-1|0){case 0:if(!u){var L=[0,Ax(A),g,h];O=1}break;case 2:if(u){var L=[0,Ax(A),g,h];O=1}break;case 11:if(!e){Z0(d);var M=W(d);if(typeof M=="number"&&10>M)switch(M){case 1:case 3:case 8:case 9:nx(d,[0,N,36]),a6(u,d);continue}var V=uR(d);a(tR(d),V),nx(d,[0,N,Jf]),Z0(d),a6(u,d);continue}var z=w0(d);Z0(d);var Y=W(d),t0=0;if(typeof Y=="number"&&10>Y)switch(Y){case 1:case 3:case 8:case 9:a6(u,d);var i0=W(d),j=0;if(typeof i0=="number"){var K=i0-1|0;if(2>=K>>>0)switch(K){case 0:if(i){var L=[0,Ax(A),1,z];O=1,t0=1,j=1}break;case 1:break;default:nx(d,[0,N,35]);var L=[0,Ax(A),g,h];O=1,t0=1,j=1}}if(!j){nx(d,[0,N,97]);continue}break}if(!t0){var J=[1,l0([0,N],function(d0){return function(E0){var L0=k0([0,d0],0,0);return[0,a($r,E0),L0]}}(z),d)];a6(u,d);var k=[0,[0,J,A],g,h];continue}break}if(O){var Q=L[3],x0=L[2],$=L[1],f0=Qx(Q,w0(f)),s0=u?3:1;return u0(f,s0),[0,u,x0,$,j1([0,o],[0,hx(f)],f0,0)]}}var v0=lS0(d,x,x,x,0,0,0,0,N);a6(u,d);var k=[0,[0,v0,A],g,h]}},t)}),I0(gR,function(x){if(o1(x,41))for(var r=0;;){var e=[0,a(im,x),r],t=W(x);if(typeof t=="number"&&t===9){u0(x,9);var r=e;continue}var u=Ez(x,Ax(e));break}else var u=0;return[0,u,ve(um,0,0,0,x)]}),I0(Xo,function(x){var r=T2(x),e=r[2],t=e[1],u=r[1],i=e[2];return nR(t)&&nx(x,[0,u,It]),[0,u,[0,t,i]]}),I0(Gz,function(x){return l0(0,function(r){var e=a(Xo,r),t=W(r),u=0;if(typeof t=="number")if(t===41)var i=1,f=i,o=[1,l0(0,function(l){return Z0(l),a($r,l)},r)];else if(t===86)var f=0,o=[1,a(u3,r)];else u=1;else u=1;if(u)var f=0,o=[0,Gs(r)];return[0,e,o,f]},x)});var tK=function(x,r){var e=pz(x,r);if(e)var t=e;else{var u=0;if(typeof r=="number"&&1>=r+LP>>>0){var i=1;u=1}if(!u)var i=0;if(!i){var f=0;if(typeof r=="number")switch(r){case 15:case 29:case 30:case 31:case 41:case 42:case 46:case 53:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 124:case 125:case 126:f=1;break}else switch(r[0]){case 4:if(nR(r[3]))return 1;break;case 11:f=1;break}return f?1:0}var t=i}return t};I0(Fv,function(x){if(W(x)!==98)return 0;1-k1(x)&&Vx(x,G2);var r=l0(0,function(t){var u=w0(t);u0(t,98);for(var i=0,f=0;;){if(tK(t,W(t)))var o=Fy(0,function(Y){return function(t0){var i0=Hy(0,Yo0,t0),j=a(Gz,t0),K=j[2],J=K[3],Q=K[2],x0=K[1],$=j[1],f0=W(t0),s0=0;if(typeof f0=="number"&&f0===82){Z0(t0);var v0=1,o0=[0,a($r,t0)];s0=1}if(!s0){Y&&nx(t0,[0,$,57]);var v0=Y,o0=0}return[0,[0,x0,Q,J,i0,o0],v0]}}(i),t),l=o[2],d=[0,o[1],f];else var l=i,d=f;var k=W(t),h=0;if(typeof k=="number"){var g=k+hJ|0;if(14>>0){if(g===-90){Z0(t);var i=l,f=d;continue}}else if(12>>0){var A=Ax(d);h=1}}if(!h){var N=0;if(typeof k=="number")switch(k){case 4:case 82:N=2;break}else if(k[0]===4){var C=k[3],O=0;if(Vy(C))O=1;else{var L=0;if(P(C,Ev)&&P(C,j2)){var M=0;L=1}if(!L)var M=1;if(M)O=1;else if(P(C,cl))(!P(C,_v)||!P(C,ei))&&(N=2);else if(t[28][2]){var V=1;N=1}}if(O){var V=1;N=1}}switch(N){case 0:var V=0;break;case 2:var V=1;break}if(!V){if(tK(t,k)){qs(t,9);var i=l,f=d;continue}u0(t,9);var i=l,f=d;continue}qs(t,99);var A=Ax(d)}var z=w0(t);return By(t,99),[0,A,j1([0,u],[0,hx(t)],z,0)]}},x),e=r[1];return r[2][1]||nx(x,[0,e,56]),[0,r]}),I0(AR,function(x){return W(x)===98?[0,l0(0,function(r){var e=w0(r);u0(r,98);for(var t=Kv(0,r),u=0;;){var i=W(t);if(typeof i=="number"){var f=0;if(i!==99&&Rr!==i&&(f=1),!f){var o=Ax(u),l=w0(t);return u0(t,99),[0,o,j1([0,e],[0,hx(t)],l,0)]}}var d=[0,a($r,t),u];W(t)!==99&&u0(t,9);var u=d}},x)]:0}),I0(im,function(x){return p(PR,x,a(Xo,x))}),I0(PR,function(x,r){function e(t){for(var u=[0,r[1],[0,r]];;){var i=u[2],f=u[1];if(W(t)===10&&zy(1,t)){var o=l0([0,f],function(g){return function(A){return u0(A,10),[0,g,a(Xo,A)]}}(i),t),l=o[1],u=[0,l,[1,[0,l,o[2]]]];continue}if(W(t)===98)var d=P1(t)[2],k=p(d,i,function(h,g){return p(qx(h,-860373976,60),h,g)});else var k=i;return[0,k,a(AR,t),0]}}return l0([0,r[1]],e,x)}),I0(qz,function(x,r){var e=p(PR,x,r);return[0,e[1],[19,e[2]]]}),I0(Hz,function(x){var r=W(x);return typeof r=="number"&&r===86?a(Lz,x):[0,Gs(x)]}),I0(bz,function(x){var r=W(x);return typeof r=="number"&&r===86?[1,a(u3,x)]:[0,Gs(x)]}),I0(fm,function(x){var r=W(x);if(typeof r=="number"){if(r===86)return 1-k1(x)&&Vx(x,G2),Vx(x,38),Z0(x),[1,l0(0,function(e){return a($r,e)},x)]}else if(r[0]===4&&!P(r[3],Z1))return 1-k1(x)&&Vx(x,G2),Z0(x),[1,l0(0,function(e){return a($r,e)},x)];return[0,Gs(x)]}),I0(xK,function(x,r,e){var t=x[2],u=x[1];function i(F){return N2(F,k0([0,r],[0,e],0))}switch(t[0]){case 0:var C0=[0,i(t[1])];break;case 1:var C0=[1,i(t[1])];break;case 2:var C0=[2,i(t[1])];break;case 3:var C0=[3,i(t[1])];break;case 4:var C0=[4,i(t[1])];break;case 5:var C0=[5,i(t[1])];break;case 6:var C0=[6,i(t[1])];break;case 7:var C0=[7,i(t[1])];break;case 8:var f=i(t[2]),C0=[8,t[1],f];break;case 9:var C0=[9,i(t[1])];break;case 10:var C0=[10,i(t[1])];break;case 11:var o=t[1],l=i(o[2]),C0=[11,[0,o[1],l]];break;case 12:var d=t[1],k=i(d[4]),C0=[12,[0,d[1],d[2],d[3],k]];break;case 13:var h=t[1],g=i(h[4]),C0=[13,[0,h[1],h[2],h[3],g]];break;case 14:var A=t[1],N=A[4],C=YO(N,k0([0,r],[0,e],0)),C0=[14,[0,A[1],A[2],A[3],C]];break;case 15:var O=t[1],L=i(O[3]),C0=[15,[0,O[1],O[2],L]];break;case 16:var M=t[1],V=i(M[2]),C0=[16,[0,M[1],V]];break;case 17:var z=t[1],Y=i(z[5]),C0=[17,[0,z[1],z[2],z[3],z[4],Y]];break;case 18:var t0=t[1],i0=i(t0[2]),C0=[18,[0,t0[1],i0]];break;case 19:var j=t[1],K=i(j[3]),C0=[19,[0,j[1],j[2],K]];break;case 20:var J=t[1],Q=i(J[3]),C0=[20,[0,J[1],J[2],Q]];break;case 21:var x0=t[1],$=x0[1],f0=x0[2],s0=i($[3]),C0=[21,[0,[0,$[1],$[2],s0],f0]];break;case 22:var v0=t[1],o0=i(v0[2]),C0=[22,[0,v0[1],o0]];break;case 23:var c0=t[1],d0=i(c0[2]),C0=[23,[0,c0[1],d0]];break;case 24:var E0=t[1],L0=i(E0[2]),C0=[24,[0,E0[1],L0]];break;case 25:var X0=t[1],xx=i(X0[2]),C0=[25,[0,X0[1],xx]];break;case 26:var g0=t[1],$0=i(g0[2]),C0=[26,[0,g0[1],$0]];break;case 27:var n0=t[1],ix=i(n0[2]),C0=[27,[0,n0[1],ix]];break;case 28:var rx=t[1],dx=i(rx[3]),C0=[28,[0,rx[1],rx[2],dx]];break;case 29:var ax=t[1],Sx=i(ax[3]),C0=[29,[0,ax[1],ax[2],Sx]];break;case 30:var D0=t[1],N0=i(D0[3]),C0=[30,[0,D0[1],D0[2],N0]];break;case 31:var A0=t[1],Y0=i(A0[2]),C0=[31,[0,A0[1],Y0]];break;case 32:var C0=[32,i(t[1])];break;case 33:var C0=[33,i(t[1])];break;default:var C0=[34,i(t[1])]}return[0,u,C0]});var nK=function(x,r){if(W(x)!==4)return[0,0,k0([0,r],[0,hx(x)],0)];var e=Qx(r,w0(x));u0(x,4),J1(x,0);var t=a(px[9],x);return K1(x),u0(x,5),[0,[0,t],k0([0,e],[0,hx(x)],0)]},pS0=function(x){var r=w0(x);return u0(x,66),nK(x,r)},dS0=0,uK=function(x){var r=Kv(0,x),e=W(r);return typeof e=="number"&&e===66?[0,l0(dS0,pS0,r)]:0},yS0=function(x){var r=W(x);if(typeof r=="number"&&r===86){1-k1(x)&&Vx(x,G2);var e=Gs(x),t=Px(x);u0(x,86);var u=W(x);if(typeof u=="number"&&u===66){var i=Kv(0,x);return[0,[0,e],[0,l0([0,t],function(l){var d=w0(l);return u0(l,66),nK(l,d)},i)]]}if(Qy(x))return[0,[2,p(ER,x,t)],0];var f=[1,l0([0,t],$r,x)],o=W(x)===66?t3(x,f):f;return[0,o,uK(x)]}return[0,[0,Gs(x)],0]},ye=function(x,r){var e=Qs(1,r);J1(e,1);var t=a(x,e);return K1(e),t},bs=function(x){return ye($r,x)},is=function(x){return ye(Xo,x)},Ze=function(x){return ye(Fv,x)},iK=function(x){return ye(AR,x)},Qv=function(x){return ye(u3,x)},NR=function(x){return ye(bz,x)},CR=function(x){return ye(Hz,x)},IR=function(x){return ye(yS0,x)},fK=function(x){return ye(im,x)},OR=function(x){return ye(fm,x)},mS0=Iz(px),Yo=function(x,r){var e=r[2],t=r[1],u=x[1];switch(e[0]){case 0:return H1(kS0,x,e[1][1]);case 1:return H1(hS0,x,e[1][1]);case 2:var i=e[1][1],f=i[2][1],o=x[2],l=x[1],d=i[1];p(w2[3],f,o)&&nx(l,[0,d,82]);var k=i[2][1],h=i[1];return Bv(k)&&at(l,[0,h,83]),r3(k)&&at(l,[0,h,85]),[0,l,p(w2[4],f,o)];default:return nx(u,[0,t,24]),x}},kS0=function(x){return function(r){return r[0]===0?Yo(x,r[1][2][2]):Yo(x,r[1][2][1])}},hS0=function(x){return function(r){switch(r[0]){case 0:return Yo(x,r[1][2][1]);case 1:return Yo(x,r[1][2][1]);default:return x}}},cK=function(x,r){var e=r[2],t=e[3],u=e[2],i=[0,x,w2[1]],f=H1(function(o,l){return Yo(o,l[2][1])},i,u);return t&&Yo(f,t[1][2][1]),0},sK=function(x,r,e,t){var u=x[5],i=t[0]===0?Zv(t[1]):0,f=Qs(u?0:r,x),o=r||u||1-i;if(!o)return o;if(e){var l=e[1],d=l[2][1],k=l[1];Bv(d)&&at(f,[0,k,75]),r3(d)&&at(f,[0,k,85])}if(t[0]===0)return cK(f,t[1]);var h=t[1][2],g=h[2],A=h[1],N=[0,Ya,[0,[0,Tn(function(O){var L=O[2],M=L[1],V=L[4],z=L[3],Y=L[2],t0=M[0]===0?[3,M[1]]:[0,[0,Ya,M[1][2]]];return[0,[0,Ya,[0,t0,Y,z,V]]]},A),[0,Ya],0]]],C=Yo([0,f,w2[1]],N);return g&&Yo(C,g[1][2][1]),0},i3=function(x,r,e,t){return sK(x,r,e,[0,t])},oK=function(x,r){if(r!==12)return 0;var e=w0(x),t=l0(0,function(f){return u0(f,12),p(px[18],f,83)},x),u=t[2],i=t[1];return[0,[0,i,u,k0([0,e],0,0)]]},RR=function x(r,e){return x.fun(r,e)},_S0=function(x){W(x)===21&&Vx(x,94);var r=p(px[18],x,83),e=W(x)===82?(u0(x,82),[0,a(px[10],x)]):0;return[0,r,e]},wS0=0;I0(RR,function(x,r){var e=W(x);if(typeof e=="number"){var t=e-5|0,u=0;if(7>>0?vn===t&&(u=1):5>>0&&(u=1),u){var i=oK(x,e),f=$d(function(l){return[0,l[1],[0,l[2],l[3]]]},i);return W(x)!==5&&Vx(x,66),[0,Ax(r),f]}}var o=l0(wS0,_S0,x);return W(x)!==5&&u0(x,9),p(RR,x,[0,o,r])});var f3=function(x,r){function e(u){var i=fz(1,HO(r,bO(x,u))),f=w0(i);u0(i,4);var o=0;if(k1(i)&&W(i)===21){var l=w0(i),d=l0(0,function(V){return u0(V,21),W(V)===86?[0,Qv(V)]:(Vx(V,90),0)},i),k=d[2],h=d[1];if(k){var g=k[1];W(i)===9&&Z0(i);var A=[0,[0,h,[0,g,k0([0,l],0,0)]]]}else var A=0}else o=1;if(o)var A=0;var N=p(RR,i,0),C=N[2],O=N[1],L=w0(i);return u0(i,5),[0,A,O,C,j1([0,f],[0,hx(i)],L,0)]}var t=0;return function(u){return l0(t,e,u)}},vK=function(x,r,e,t,u){var i=lz(x,r,e,u);return p(px[16],t,i)},d6=function(x,r,e,t,u){var i=vK(x,r,e,t,u);return[0,[0,i[1]],i[2]]},c3=function(x){if(l2!==W(x))return Hv0;var r=w0(x);return Z0(x),[0,1,r]},om=function(x){if(W(x)===64&&!n6(1,x)){var r=w0(x);return Z0(x),[0,1,r]}return qv0},TS0=function(x){var r=om(x),e=r[1],t=r[2],u=l0(0,function(O){var L=w0(O);u0(O,15);var M=c3(O),V=M[1],z=Ll([0,t,[0,L,[0,M[2],0]]]),Y=O[7],t0=W(O),i0=0;if(Y&&typeof t0=="number"){if(t0===4){var Q=0,x0=0;i0=1}else if(t0===98){var j=ee(O,Ze(O)),K=W(O)===4?0:[0,gn(O,p(px[13],$v0,O))],Q=K,x0=j;i0=1}}if(!i0)var J=ns(O)?gn(O,p(px[13],Fv0,O)):(hz(O,Qv0),[0,Px(O),Gv0]),Q=[0,J],x0=ee(O,Ze(O));var $=a(f3(e,V),O),f0=W(O)===86?$:c6(O,$),s0=IR(O),v0=s0[2],o0=s0[1];if(v0)var c0=Sz(O,v0),d0=o0;else var c0=v0,d0=t3(O,o0);return[0,V,x0,Q,f0,d0,c0,z]},x),i=u[2],f=i[4],o=i[3],l=i[1],d=i[7],k=i[6],h=i[5],g=i[2],A=u[1],N=d6(x,e,l,0,Zv(f)),C=N[1];return i3(x,N[2],o,f),[26,[0,o,f,C,e,l,k,h,g,k0([0,d],0,0),A]]},SS0=0,y6=function(x){return l0(SS0,TS0,x)},LR=function(x,r){var e=w0(r);u0(r,x);var t=r[28][2];if(t)var u=x===27?1:0,i=u&&(W(r)===48?1:0);else var i=t;i&&Vx(r,23);for(var f=0,o=0;;){var l=l0(0,function(N){var C=p(px[18],N,86);if(o1(N,82))var O=0,L=[0,a(px[10],N)];else{var M=C[1];if(C[2][0]===2)var O=0,L=0;else var O=[0,[0,M,63]],L=0}return[0,[0,C,L],O]},r),d=l[2],k=d[2],h=[0,[0,l[1],d[1]],f],g=k?[0,k[1],o]:o;if(o1(r,9)){var f=h,o=g;continue}var A=Ax(g);return[0,Ax(h),e,A]}},ES0=24,aK=function(x){return LR(ES0,x)},lK=function(x){var r=LR(27,xR(1,x)),e=r[1],t=r[3],u=r[2];return[0,e,u,Ax(H1(function(i,f){return f[2][2]?i:[0,[0,f[1],62],i]},t,e))]},pK=function(x){return LR(28,xR(1,x))},dK=function(x){function r(t){return[19,p(mS0[1],x,t)]}var e=0;return function(t){return l0(e,r,t)}},MR=function x(r,e){return x.fun(r,e)},gS0=function(x){var r=w0(x),e=W(x),t=kr(1,x),u=0;if(typeof e!="number"&&e[0]===2){var i=e[1],f=i[4],o=i[3],l=i[2],d=i[1],k=0;if(typeof t=="number")switch(t){case 85:case 86:k=2;break;default:k=1}else t[0]===4?P(t[3],ln)||(k=2):k=1;switch(k){case 0:break;case 1:break;default:f&&Zt(x,81),u0(x,[2,[0,d,l,o,f]]);var h=[1,[0,d,[0,l,o,k0([0,r],[0,hx(x)],0)]]],g=0;if(typeof t=="number"&&!(1>>0)){var A=t===85?1:0;Vx(x,[16,A,l]),A&&Z0(x);var N=Px(x),C=0,O=[0,N,[2,[0,[0,N,Wv0],NR(x),A]]],L=h;u=1}else g=1;if(g){Z0(x);var C=0,O=p(px[18],x,83),L=h;u=1}}}if(!u){var M=0;if(typeof t!="number"&&t[0]===4&&!P(t[3],ln)){var V=[0,T2(x)];Hs(x,Zv0);var C=0,O=p(px[18],x,83),L=V;M=1}if(!M)var z=H0(px[14],x,0,83),Y=z[2],C=1,O=[0,z[1],[2,Y]],L=[0,Y[1]]}var t0=W(x)===82?(u0(x,82),[0,a(px[10],x)]):0;return[0,L,O,t0,C]},AS0=0;I0(MR,function(x,r){var e=W(x);if(typeof e=="number"){var t=e-5|0,u=0;if(7>>0?vn===t&&(u=1):5>>0&&(u=1),u){var i=oK(x,e),f=$d(function(l){return[0,l[1],[0,l[2],l[3]]]},i);return W(x)!==5&&Vx(x,66),[0,Ax(r),f]}}var o=l0(AS0,gS0,x);return W(x)!==5&&u0(x,9),p(MR,x,[0,o,r])});var PS0=function(x){var r=fz(1,x),e=w0(r);u0(r,4);var t=p(MR,r,0),u=t[2],i=t[1],f=w0(r);return u0(r,5),[0,i,u,j1([0,e],[0,hx(r)],f,0)]},NS0=0,CS0=function(x){var r=l0(0,function(h){var g=w0(h);Hs(h,Kv0);var A=gn(h,p(px[13],Bv0,h)),N=ee(h,Ze(h)),C=l0(NS0,PS0,h);if(fR(h))var L=C;else var O=P1(h)[2],L=p(O,C,function(M,V){return p(qx(M,842685896,10),M,V)});return[0,N,A,L,sR(h,OR(h)),g]},x),e=r[2],t=e[3],u=e[2],i=e[5],f=e[4],o=e[1],l=r[1],d=vK(x,0,0,0,0),k=d[1];return sK(x,d[2],[0,u],[1,t]),[3,[0,u,o,t,f,k,k0([0,i],0,0),l]]},IS0=0,DR=function(x){return l0(IS0,CS0,x)},o2=function(x,r){if(r[0]===0)return r[1];var e=r[2][1],t=r[1];return g2(function(u){return nx(x,u)},e),t},UR=function(x,r,e){var t=x?x[1]:41;if(e[0]===0)var u=e[1];else{var i=e[2][2],f=e[1];g2(function(h){return nx(r,h)},i);var u=f}1-a(px[23],u)&&nx(r,[0,u[1],t]);var o=u[2],l=0;if(o[0]===8){var d=u[1];Bv(o[1][2][1])&&(at(r,[0,d,76]),l=1)}return p(px[19],r,u)},jR=function(x,r){var e=Hc(x[2],r[2]);return[0,Hc(x[1],r[1]),e]},yK=function(x){var r=Ax(x[2]);return[0,Ax(x[1]),r]},mK=function(x,r){var e=x[0]===0?x[1]:x[1]-1|0,t=(r[0]===0,r[1]);return t<=e?1:0},s3=function x(r){return x.fun(r)},$t=function x(r){return x.fun(r)},kK=function x(r){return x.fun(r)},JR=function x(r){return x.fun(r)},hK=function x(r){return x.fun(r)},XR=function x(r){return x.fun(r)},_K=function x(r){return x.fun(r)},wK=function x(r){return x.fun(r)},m6=function x(r){return x.fun(r)},YR=function x(r){return x.fun(r)},VR=function x(r){return x.fun(r)},zR=function x(r){return x.fun(r)},TK=function x(r){return x.fun(r)},KR=function x(r){return x.fun(r)},vm=function x(r){return x.fun(r)},BR=function x(r){return x.fun(r)},SK=function x(r){return x.fun(r)},Gv=function x(r,e,t,u,i){return x.fun(r,e,t,u,i)},WR=function x(r,e,t,u){return x.fun(r,e,t,u)},ZR=function x(r){return x.fun(r)},am=function x(r){return x.fun(r)},$R=function x(r){return x.fun(r)},FR=function x(r,e,t,u,i){return x.fun(r,e,t,u,i)},EK=function x(r,e,t,u){return x.fun(r,e,t,u)},QR=function x(r){return x.fun(r)},lm=function x(r,e,t){return x.fun(r,e,t)},gK=function x(r){return x.fun(r)},pm=function x(r,e,t){return x.fun(r,e,t)},GR=function x(r){return x.fun(r)},AK=function x(r){return x.fun(r)},qR=function x(r,e){return x.fun(r,e)},HR=function x(r,e,t,u){return x.fun(r,e,t,u)},PK=function x(r){return x.fun(r)},bR=function x(r,e,t){return x.fun(r,e,t)},NK=function x(r){return x.fun(r)},CK=function x(r){return x.fun(r)},xL=function x(r){return x.fun(r)},dm=function x(r,e,t){return x.fun(r,e,t)},OS0=function(x){var r=x[2];switch(r[0]){case 21:var e=r[1],t=e[1][2][1];if(P(t,M2)){if(!P(t,ov)&&!P(e[2][2][1],NS))return 0}else if(!P(e[2][2][1],pl))return 0;break;case 0:case 8:case 20:case 23:break;default:return 0}return 1},rL=function(x){var r=Px(x),e=a(XR,x),t=a(hK,x);if(!t)return e;var u=t[1];return[0,l0([0,r],function(i){var f=UR(0,i,e);return[2,[0,u,f,a($t,i),0]]},x)]},RS0=function(x,r){if(typeof r=="number"&&r===85)return 0;throw q0(us,1)},IK=function(x){var r=Yy(RS0,x),e=rL(r),t=W(r);if(typeof t=="number"){if(t===11)throw q0(us,1);if(t===86){var u=vz(r),i=0;if(u){var f=u[1];if(typeof f=="number"&&f===5){var o=1;i=1}}if(!i)var o=0;if(o)throw q0(us,1)}}if(!ns(r))return e;if(e[0]===0){var l=e[1][2];if(l[0]===8&&!P(l[1][2][1],To)&&!re(r))throw q0(us,1)}return e};I0(s3,function(x){var r=ns(x);if(r){var e=W(x),t=0;if(typeof e=="number"){if(e===58){if(x[18]){var u=0;t=1}}else if(e===65&&x[19]){var u=0;t=1}}if(!t)var u=1;var i=u}else var i=r;var f=W(x),o=0;if(typeof f=="number"){var l=0;if(22<=f)if(f===58){if(x[18])return[0,a(kK,x)];l=1}else f!==98&&(l=1);else f!==4&&21>f&&(l=1);l||(o=1)}if(!o&&!i)return rL(x);var d=0;if(f===64&&k1(x)&&kr(1,x)===98){var k=IK,h=xL;d=1}if(!d)var k=xL,h=IK;var g=cR(x,h);if(g)return g[1];var A=cR(x,k);return A?A[1]:rL(x)}),I0($t,function(x){return o2(x,a(s3,x))}),I0(kK,function(x){return l0(0,function(r){r[10]&&Vx(r,po);var e=w0(r),t=Px(r);u0(r,58);var u=Px(r);if(e3(r))var i=0,f=0;else{var o=o1(r,l2),l=W(r),d=0;if(typeof l=="number"){var k=0;if(l===86)k=1;else if(10>l)switch(l){case 0:case 2:case 3:case 4:case 6:break;default:k=1}if(k){var h=0;d=1}}if(!d)var h=1;var g=0;if(!o&&!h){var A=0;g=1}if(!g)var A=[0,a($t,r)];var i=o,f=A}var N=f?0:hx(r),C=u1(t,u);return[35,[0,f,k0([0,e],[0,N],0),i,C]]},x)}),I0(JR,function(x){var r=x[2];switch(r[0]){case 21:var e=r[1],t=e[1][2][1];if(P(t,M2)){if(!P(t,ov)&&!P(e[2][2][1],NS))return 0}else if(!P(e[2][2][1],pl))return 0;break;case 8:case 20:break;default:return 0}return 1}),I0(hK,function(x){var r=W(x),e=0;if(typeof r=="number"){var t=r+QD|0;if(15>=t>>>0){switch(t){case 0:var u=l30;break;case 1:var u=p30;break;case 2:var u=d30;break;case 3:var u=y30;break;case 4:var u=m30;break;case 5:var u=k30;break;case 6:var u=h30;break;case 7:var u=_30;break;case 8:var u=w30;break;case 9:var u=T30;break;case 10:var u=S30;break;case 11:var u=E30;break;case 12:var u=g30;break;case 13:var u=A30;break;case 14:var u=P30;break;default:var u=N30}var i=u;e=1}}if(!e)var i=0;return i!==0&&Z0(x),i}),I0(XR,function(x){var r=Px(x),e=a(wK,x);if(W(x)!==85)return e;Z0(x);var t=a($t,e6(0,x));u0(x,86);var u=l0([0,r],$t,x),i=u[2],f=u[1];return[0,[0,f,[6,[0,o2(x,e),t,i,0]]]]}),I0(_K,function(x){return o2(x,a(XR,x))});var eL=function(x,r,e,t,u){var i=o2(x,r);return[0,[0,u,[19,[0,t,i,o2(x,e),0]]]]},tL=function(x,r,e){for(var t=r,u=e;;){var i=W(x);if(typeof i=="number"&&i===88){Z0(x);var f=l0(0,m6,x),o=f[2],l=u1(u,f[1]),d=nL(0,x,eL(x,t,o,1,l),l),t=d[2],u=d[1];continue}return[0,u,t]}},OK=function(x,r,e){for(var t=r,u=e;;){var i=W(x);if(typeof i=="number"&&i===87){Z0(x);var f=l0(0,m6,x),o=tL(x,f[2],f[1]),l=o[2],d=u1(u,o[1]),k=nL(0,x,eL(x,t,l,0,d),d),t=k[2],u=k[1];continue}return[0,u,t]}},nL=function(x,r,e,t){for(var u=x,i=e,f=t;;){var o=W(r);if(typeof o=="number"&&o===84){1-u&&Vx(r,a30),u0(r,84);var l=l0(0,m6,r),d=l[2],k=l[1],h=W(r),g=0;if(typeof h=="number"&&1>=h-87>>>0){Vx(r,[20,WO(h)]);var A=tL(r,d,k),N=OK(r,A[2],A[1]),C=N[2],O=N[1];g=1}if(!g)var C=d,O=k;var L=u1(f,O),u=1,i=eL(r,i,C,2,L),f=L;continue}return[0,f,i]}};I0(wK,function(x){var r=l0(0,m6,x),e=r[2],t=r[1],u=W(x),i=0;if(typeof u=="number"&&u===84){var o=nL(1,x,e,t);i=1}if(!i)var f=tL(x,e,t),o=OK(x,f[2],f[1]);return o[2]});var uL=function(x,r,e,t){return[0,t,[3,[0,e,x,r,0]]]},LS0=function(x,r){var e=r;x:for(;;){var t=l0(0,function(ox){var b0=a(YR,ox)!==0?1:0;return[0,b0,a(VR,e6(0,ox))]},x),u=t[2],i=u[2],f=u[1],o=t[1];if(W(x)===98){var l=0;i[0]===0&&i[1][2][0]===10&&(Vx(x,2),l=1)}for(var d=e,k=i;;){var h=W(x);if(typeof h!="number"&&h[0]===4){var g=h[3],A=0;if(P(g,ln)&&P(g,ZU)&&(A=1),!A&&k1(x)){Z0(x);var N=o2(x,k),C=0;if(d){var O=d[1],L=O[2],M=d[2],V=O[3],z=L[1],Y=O[1];if(mK(L[2],Ka0)){var t0=uL(Y,N,z,u1(V,o)),i0=M;C=1}}if(!C)var t0=N,i0=d;var j=t0[1];if(Ar(g,ZU))var K=bs(x),x0=K[1],$=[1,K];else if(W(x)===27){var J=Px(x);Z0(x);var x0=J,$=0}else var Q=bs(x),x0=Q[1],$=[0,Q];var d=i0,k=[0,[0,u1(j,x0),[32,[0,t0,$,0]]]];continue}}var f0=W(x),s0=0;if(typeof f0=="number"){var v0=f0-17|0,o0=0;if(1>>0)if(72<=v0){var c0=0;switch(v0-72|0){case 0:var d0=Ba0;break;case 1:var d0=Wa0;break;case 2:var d0=Za0;break;case 3:var d0=$a0;break;case 4:var d0=Fa0;break;case 5:var d0=Qa0;break;case 6:var d0=Ga0;break;case 7:var d0=qa0;break;case 8:var d0=Ha0;break;case 9:var d0=ba0;break;case 10:var d0=x30;break;case 11:var d0=r30;break;case 12:var d0=e30;break;case 13:var d0=t30;break;case 14:var d0=n30;break;case 15:var d0=u30;break;case 16:var d0=i30;break;case 17:var d0=f30;break;case 18:var d0=c30;break;case 19:var d0=s30;break;default:o0=1,c0=1}if(!c0)var E0=d0}else o0=1;else var E0=v0?o30:x[12]?0:v30;if(!o0){var L0=E0;s0=1}}if(!s0)var L0=0;if(L0!==0&&Z0(x),!d&&!L0)return k;if(!L0)for(var X0=o2(x,k),xx=o,g0=d;;){if(!g0)return[0,X0];var $0=g0[1],n0=g0[2],ix=$0[2][1],rx=$0[1],dx=u1($0[3],xx),X0=uL(rx,X0,ix,dx),xx=dx,g0=n0}var ax=L0[1],Sx=ax[1],D0=ax[2],N0=f&&(Sx===14?1:0);N0&&nx(x,[0,o,42]);for(var A0=o2(x,k),Y0=[0,Sx,D0],C0=o,F=d;;){var H=Y0[2],B=Y0[1];if(F){var a0=F[1],m0=a0[2],P0=F[2],D=a0[3],O0=m0[1],K0=a0[1];if(mK(m0[2],H)){var j0=u1(D,C0),A0=uL(K0,A0,O0,j0),Y0=[0,B,H],C0=j0,F=P0;continue}}var e=[0,[0,A0,[0,B,H],C0],F];continue x}}}};I0(m6,function(x){return LS0(x,0)}),I0(YR,function(x){var r=W(x);if(typeof r=="number"){if(48<=r){if(fn<=r){if(Ot>r)switch(r+LP|0){case 0:return Da0;case 1:return Ua0;case 6:return ja0;case 7:return Ja0}}else if(r===65&&x[19])return x[10]&&Vx(x,7),Xa0}else if(45<=r)switch(r+pE|0){case 0:return Ya0;case 1:return Va0;default:return za0}}return 0}),I0(VR,function(x){var r=Px(x),e=w0(x),t=a(YR,x);if(t){var u=t[1];Z0(x);var i=l0([0,r],zR,x),f=i[2],o=i[1],l=0;if(u===6){var d=f[2],k=0;switch(d[0]){case 8:at(x,[0,o,73]),k=1;break;case 20:d[1][2][0]===1&&nx(x,[0,o,67]),k=1;break}k&&(l=1)}return[0,[0,o,[33,[0,u,f,k0([0,e],0,0)]]]]}var h=W(x),g=0;if(typeof h=="number")if(Ot===h)var A=Ma0;else if(L2===h)var A=La0;else g=1;else g=1;if(g)var A=0;if(!A)return a(TK,x);var N=A[1];Z0(x);var C=l0([0,r],zR,x),O=C[2],L=C[1];1-a(JR,O)&&nx(x,[0,O[1],41]);var M=O[2],V=0;return M[0]===8&&Bv(M[1][2][1])&&(Zt(x,78),V=1),[0,[0,L,[34,[0,N,O,1,k0([0,e],0,0)]]]]}),I0(zR,function(x){return o2(x,a(VR,x))}),I0(TK,function(x){var r=a(KR,x);if(re(x))return r;var e=W(x),t=0;if(typeof e=="number")if(Ot===e)var u=Ra0;else if(L2===e)var u=Oa0;else t=1;else t=1;if(t)var u=0;if(!u)return r;var i=u[1],f=o2(x,r);1-a(JR,f)&&nx(x,[0,f[1],41]);var o=f[2],l=0;o[0]===8&&Bv(o[1][2][1])&&(Zt(x,77),l=1);var d=Px(x);Z0(x);var k=hx(x),h=u1(f[1],d);return[0,[0,h,[34,[0,i,f,0,k0(0,[0,k],0)]]]]}),I0(KR,function(x){var r=Px(x),e=1-x[17],t=0,u=x[17]===0?x:[0,x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14],x[15],x[16],t,x[18],x[19],x[20],x[21],x[22],x[23],x[24],x[25],x[26],x[27],x[28],x[29],x[30],x[31]],i=W(u),f=0;if(typeof i=="number"){var o=i-44|0;if(7>=o>>>0){var l=0;switch(o){case 0:if(e)var d=[0,a(ZR,u)];else l=1;break;case 6:var d=[0,a(SK,u)];break;case 7:var d=[0,a(BR,u)];break;default:l=1}if(!l){var k=d;f=1}}}if(!f)var k=jo(u)?[0,a(QR,u)]:a(GR,u);return Ve(Gv,0,0,u,r,k)}),I0(vm,function(x){return o2(x,a(KR,x))}),I0(BR,function(x){switch(x[22]){case 0:var r=0,e=0;break;case 1:var r=0,e=1;break;default:var r=1,e=1}var t=Px(x),u=w0(x);u0(x,51);var i=[0,t,[27,[0,k0([0,u],[0,hx(x)],0)]]],f=W(x);if(typeof f=="number"&&11>f)switch(f){case 4:var o=r?i:(nx(x,[0,t,De]),[0,t,[8,Sn(0,[0,t,Na0])]]);return ve(WR,0,x,t,o);case 6:case 10:var l=e?i:(nx(x,[0,t,Dt]),[0,t,[8,Sn(0,[0,t,Ia0])]]);return ve(WR,0,x,t,l)}return e?S1(Ca0,x):nx(x,[0,t,Dt]),i}),I0(SK,function(x){return l0(0,function(r){var e=w0(r),t=Px(r);if(u0(r,50),o1(r,10)){var u=Sn(0,[0,t,ga0]),i=Px(r);Hs(r,Aa0);var f=Sn(0,[0,i,Pa0]);return[21,[0,u,f,k0([0,e],[0,hx(r)],0)]]}var o=w0(r);u0(r,4);var l=H0(bR,[0,o],0,a($t,e6(0,r)));return u0(r,5),[9,[0,l,k0([0,e],[0,hx(r)],0)]]},x)}),I0(Gv,function(x,r,e,t,u){var i=x?x[1]:1,f=r?r[1]:0,o=Ve(FR,[0,i],[0,f],e,t,u),l=vz(e),d=0;if(l){var k=l[1];if(typeof k=="number"&&k===83){var h=1;d=1}}if(!d)var h=0;function g(L){var M=P1(L)[2];function V(z,Y){return p(qx(z,mn,61),z,Y)}return p(M,o2(L,o),V)}function A(L,M,V){var z=a($R,M),Y=z[1],t0=z[2],i0=u1(t,Y),j=[0,V,L,[0,Y,t0],0],K=0;if(!h&&!f){var J=[4,j];K=1}if(!K)var J=[24,[0,j,i0,h]];var Q=f||h;return Ve(Gv,[0,i],[0,Q],M,t,[0,[0,i0,J]])}if(e[13])return o;var N=W(e);if(typeof N=="number"){var C=N-98|0;if(2>>0){if(C===-94)return A(0,e,g(e))}else if(C!==1&&k1(e)){var O=Yy(function(L,M){throw q0(us,1)},e);return Wy(O,o,function(L){var M=g(L);return A(a(am,L),L,M)})}}return o}),I0(WR,function(x,r,e,t){var u=x?x[1]:1;return o2(r,Ve(Gv,[0,u],0,r,e,[0,t]))}),I0(ZR,function(x){return l0(0,function(r){var e=Px(r),t=w0(r);if(u0(r,44),r[11]&&W(r)===10){var u=hx(r);Z0(r);var i=Sn(k0([0,t],[0,u],0),[0,e,Ta0]),f=W(r);return typeof f!="number"&&f[0]===4&&!P(f[3],NS)?[21,[0,i,p(px[13],0,r),0]]:(S1(Sa0,r),Z0(r),[8,i])}var o=Px(r),l=W(r),d=0;if(typeof l=="number")if(l===44)var k=a(ZR,r);else if(l===51)var k=a(BR,eR(1,r));else d=1;else d=1;if(d)var k=jo(r)?a(QR,r):a(AK,r);var h=ve(EK,Ea0,eR(1,r),o,k),g=W(r),A=0;if(typeof g!="number"&&g[0]===3){var N=ve(HR,r,o,h,g[1]);A=1}if(!A)var N=h;var C=0;if(W(r)!==4){var O=0;if((!k1(r)||W(r)!==98)&&(O=1),O){var M=N;C=1}}if(!C)var L=P1(r)[2],M=p(L,N,function(i0,j){return p(qx(i0,mn,62),i0,j)});var V=k1(r)?Wy(Yy(function(i0,j){throw q0(us,1)},r),0,am):0,z=W(r),Y=0;if(typeof z=="number"&&z===4){var t0=[0,a($R,r)];Y=1}if(!Y)var t0=0;return[22,[0,M,V,t0,k0([0,t],0,0)]]},x)});var MS0=function(x){var r=w0(x);u0(x,98);for(var e=0;;){var t=W(x);if(typeof t=="number"){var u=0;if(t!==99&&Rr!==t&&(u=1),!u){var i=Ax(e),f=w0(x);u0(x,99);var o=W(x)===4?P1(x)[1]:hx(x);return[0,i,j1([0,r],[0,o],f,0)]}}var l=W(x),d=0;if(typeof l!="number"&&l[0]===4&&!P(l[2],Aa)){var k=Px(x),h=w0(x);Hs(x,wa0);var g=[1,[0,k,[0,k0([0,h],[0,hx(x)],0)]]];d=1}if(!d)var g=[0,bs(x)];var A=[0,g,e];W(x)!==99&&u0(x,9);var e=A}};I0(am,function(x){J1(x,1);var r=W(x)===98?[0,l0(0,MS0,x)]:0;return K1(x),r});var DS0=function(x){var r=w0(x);u0(x,12);var e=a($t,x);return[0,e,k0([0,r],0,0)]};I0($R,function(x){return l0(0,function(r){var e=w0(r);u0(r,4);for(var t=0;;){var u=W(r);if(typeof u=="number"){var i=0;if(u!==5&&Rr!==u&&(i=1),!i){var f=Ax(t),o=w0(r);return u0(r,5),[0,f,j1([0,e],[0,hx(r)],o,0)]}}var l=W(r),d=0;if(typeof l=="number"&&l===12){var k=[1,l0(0,DS0,r)];d=1}if(!d)var k=[0,a($t,r)];var h=[0,k,t];W(r)!==5&&u0(r,9);var t=h}},x)});var RK=function(x,r,e,t,u,i){var f=x?x[1]:1,o=r?r[1]:0,l=e?e[1]:0,d=eR(0,t),k=a(px[7],d),h=Px(t);u0(t,7);var g=hx(t),A=u1(u,h),N=k0(0,[0,g],0),C=[0,o2(t,i),[2,k],N],O=o?[25,[0,C,A,l]]:[20,C];return Ve(Gv,[0,f],[0,o],t,u,[0,[0,A,O]])},LK=function(x,r,e,t,u,i){var f=x?x[1]:1,o=r?r[1]:0,l=e?e[1]:0,d=W(t),k=0;if(typeof d=="number"&&d===14){var h=Pz(t),g=h[1],A=t[30][1],N=h[2][1];if(A){var C=A[1];t[30][1]=[0,[0,C[1],[0,[0,N,g],C[2]]],A[2]]}else nx(t,[0,g,68]);var L=[1,h],M=g;k=1}if(!k)var O=T2(t),L=[0,O],M=O[1];var V=u1(u,M),z=0;i[0]===0&&i[1][2][0]===27&&L[0]===1&&(nx(t,[0,V,87]),z=1);var Y=[0,o2(t,i),L,0],t0=o?[25,[0,Y,V,l]]:[20,Y];return Ve(Gv,[0,f],[0,o],t,u,[0,[0,V,t0]])};I0(FR,function(x,r,e,t,u){var i=x?x[1]:1,f=r?r[1]:0,o=W(e);if(typeof o=="number")switch(o){case 6:return Z0(e),RK([0,i],[0,f],0,e,t,u);case 10:return Z0(e),LK([0,i],[0,f],0,e,t,u);case 83:1-i&&Vx(e,64),u0(e,83);var l=W(e);if(typeof l=="number")switch(l){case 4:return u;case 6:return Z0(e),RK([0,i],ma0,ya0,e,t,u);case 98:if(k1(e))return u;break}else if(l[0]===3)return Vx(e,65),u;return LK([0,i],ha0,ka0,e,t,u)}else if(o[0]===3){var d=o[1];return f&&Vx(e,65),Ve(Gv,_a0,0,e,t,[0,ve(HR,e,t,o2(e,u),d)])}return u}),I0(EK,function(x,r,e,t){var u=x?x[1]:1;return o2(r,Ve(FR,[0,u],0,r,e,[0,t]))}),I0(QR,function(x){return l0(0,function(r){var e=om(r),t=e[1],u=e[2],i=l0(0,function(L){var M=w0(L);u0(L,15);var V=c3(L),z=V[1],Y=Ll([0,u,[0,M,[0,V[2],0]]]);if(W(L)===4)var t0=0,i0=0;else{var j=W(L),K=0;if(typeof j=="number"&&j===98){var Q=0;K=1}if(!K)var J=HO(z,bO(t,L)),Q=[0,gn(J,p(px[13],da0,J))];var t0=ee(L,Ze(L)),i0=Q}var x0=zv(0,L),$=t||x0[19],f0=a(f3($,z),x0),s0=W(x0)===86?f0:c6(x0,f0),v0=IR(x0),o0=v0[2],c0=v0[1];if(o0)var d0=Sz(x0,o0),E0=c0;else var d0=o0,E0=t3(x0,c0);return[0,i0,s0,z,d0,E0,t0,Y]},r),f=i[2],o=f[3],l=f[2],d=f[1],k=f[7],h=f[6],g=f[5],A=f[4],N=i[1],C=d6(r,t,o,1,Zv(l)),O=C[1];return i3(r,C[2],d,l),[7,[0,d,l,O,t,o,A,g,h,k0([0,k],0,0),N]]},x)}),I0(lm,function(x,r,e){switch(r){case 1:Zt(x,81);try{var t=Vd(Sl(Fx(oa0,e))),u=t}catch(g){var i=C1(g);if(i[1]!==_n)throw q0(i,0);var u=Ox(Fx(va0,e))}break;case 2:Zt(x,80);try{var f=UI(e),u=f}catch(g){var o=C1(g);if(o[1]!==_n)throw q0(o,0);var u=Ox(Fx(aa0,e))}break;case 4:try{var l=UI(e),u=l}catch(g){var d=C1(g);if(d[1]!==_n)throw q0(d,0);var u=Ox(Fx(la0,e))}break;default:try{var k=Vd(Sl(e)),u=k}catch(g){var h=C1(g);if(h[1]!==_n)throw q0(h,0);var u=Ox(Fx(pa0,e))}}return u0(x,[0,r,e]),u}),I0(gK,function(x){var r=Xx(x),e=0;if(r!==0&&V1===N1(x,r-1|0)){var t=m2(x,0,r-1|0);e=1}if(!e)var t=x;return t}),I0(pm,function(x,r,e){var t=uY(a(gK,e));return u0(x,[1,r,e]),t}),I0(GR,function(x){var r=Px(x),e=w0(x),t=W(x);if(typeof t=="number")switch(t){case 0:var u=a(px[12],x);return[1,[0,u[1],[23,u[2]]],u[3]];case 4:return[0,a(PK,x)];case 6:var i=l0(0,NK,x),f=i[2];return[1,[0,i[1],[0,f[1]]],f[2]];case 21:return Z0(x),[0,[0,r,[30,[0,k0([0,e],[0,hx(x)],0)]]]];case 29:return Z0(x),[0,[0,r,[14,k0([0,e],[0,hx(x)],0)]]];case 40:return[0,a(px[22],x)];case 98:var o=a(px[17],x),l=o[2],d=o[1],k=cn<=l[1]?[11,l[2]]:[10,l[2]];return[0,[0,d,k]];case 30:case 31:return Z0(x),[0,[0,r,[13,[0,t===31?1:0,k0([0,e],[0,hx(x)],0)]]]];case 74:case 105:return[0,a(CK,x)]}else switch(t[0]){case 0:var h=t[2],g=H0(lm,x,t[1],h);return[0,[0,r,[15,[0,g,h,k0([0,e],[0,hx(x)],0)]]]];case 1:var A=t[2],N=H0(pm,x,t[1],A);return[0,[0,r,[16,[0,N,A,k0([0,e],[0,hx(x)],0)]]]];case 2:var C=t[1],O=C[3],L=C[2],M=C[1];C[4]&&Zt(x,81),Z0(x);var V=k0([0,e],[0,hx(x)],0),z=x[28],Y=z[6],t0=z[7],i0=0;if(Y){var j=Y[1];if(tY(j,L))var K=[18,[0,L,M,Xx(j),0,O,V]];else i0=1}else i0=1;if(i0){var J=0;if(t0){var Q=t0[1];if(tY(Q,L)){var K=[18,[0,L,M,Xx(Q),1,O,V]];J=1}}if(!J)var K=[12,[0,L,O,V]]}return[0,[0,M,K]];case 3:var x0=p(qR,x,t[1]);return[0,[0,x0[1],[29,x0[2]]]];case 4:if(!P(t[3],Bh)&&kr(1,x)===40)return[0,a(px[22],x)];break}if(ns(x)){var $=p(px[13],0,x);return[0,[0,$[1],[8,$]]]}S1(0,x);var f0=0;return typeof t!="number"&&t[0]===7&&(Z0(x),f0=1),[0,[0,r,[14,k0([0,e],sa0,0)]]]}),I0(AK,function(x){return o2(x,a(GR,x))}),I0(qR,function(x,r){var e=r[5],t=r[1],u=r[3],i=r[2],f=w0(x);u0(x,[3,r]);var o=[0,t,[0,[0,u,i],e]];if(e)var l=0,d=[0,o,0],k=t;else for(var h=[0,o,0],g=0;;){var A=a(px[7],x),N=[0,A,g],C=W(x),O=0;if(typeof C=="number"&&C===1){J1(x,4);var L=W(x),M=0;if(typeof L=="number"||L[0]!==3)M=1;else{var V=L[1],z=V[5],Y=V[1],t0=V[3],i0=V[2];Z0(x),K1(x);var j=[0,[0,Y,[0,[0,t0,i0],z]],h];if(!z){var h=j,g=N;continue}var K=Ax(N),J=[0,Y,Ax(j),K];O=1}if(M)throw q0([0,wr,ia0],1)}if(!O){S1(fa0,x);var Q=[0,A[1],ca0],x0=Ax(N),$=Ax([0,Q,h]),J=[0,A[1],$,x0]}var l=J[3],d=J[2],k=J[1];break}var f0=hx(x),s0=u1(t,k);return[0,s0,[0,d,l,k0([0,f],[0,f0],0)]]}),I0(HR,function(x,r,e,t){var u=P1(x)[2],i=p(u,e,function(o,l){return p(qx(o,mn,3),o,l)}),f=p(qR,x,t);return[0,u1(r,f[1]),[28,[0,i,f,0]]]}),I0(PK,function(x){var r=w0(x),e=l0(0,function(o){u0(o,4);var l=Px(o),d=a($t,o),k=W(o),h=0;if(typeof k=="number")if(k===9)var g=[0,H0(dm,o,l,[0,d,0])];else if(k===86)var g=[1,[0,d,Qv(o),0]];else h=1;else h=1;if(h)var g=[0,d];return u0(o,5),g},x),t=e[2],u=e[1],i=hx(x),f=t[0]===0?t[1]:[0,u,[31,t[1]]];return H0(bR,[0,r],[0,i],f)}),I0(bR,function(x,r,e){var t=e[2],u=e[1],i=x?x[1]:0,f=r?r[1]:0;function o(br){return N2(br,k0([0,i],[0,f],0))}function l(br){return YO(br,k0([0,i],[0,f],0))}switch(t[0]){case 0:var d=t[1],k=l(d[2]),lx=[0,[0,d[1],k]];break;case 1:var h=t[1],g=h[10],A=o(h[9]),lx=[1,[0,h[1],h[2],h[3],h[4],h[5],h[6],h[7],h[8],A,g]];break;case 2:var N=t[1],C=o(N[4]),lx=[2,[0,N[1],N[2],N[3],C]];break;case 3:var O=t[1],L=o(O[4]),lx=[3,[0,O[1],O[2],O[3],L]];break;case 4:var M=t[1],V=o(M[4]),lx=[4,[0,M[1],M[2],M[3],V]];break;case 5:var z=t[1],Y=o(z[7]),lx=[5,[0,z[1],z[2],z[3],z[4],z[5],z[6],Y]];break;case 6:var t0=t[1],i0=o(t0[4]),lx=[6,[0,t0[1],t0[2],t0[3],i0]];break;case 7:var j=t[1],K=j[10],J=o(j[9]),lx=[7,[0,j[1],j[2],j[3],j[4],j[5],j[6],j[7],j[8],J,K]];break;case 8:var Q=t[1],x0=Q[2],$=Q[1],f0=o(x0[2]),lx=[8,[0,$,[0,x0[1],f0]]];break;case 9:var s0=t[1],v0=o(s0[2]),lx=[9,[0,s0[1],v0]];break;case 10:var o0=t[1],c0=o(o0[4]),lx=[10,[0,o0[1],o0[2],o0[3],c0]];break;case 11:var d0=t[1],E0=o(d0[4]),lx=[11,[0,d0[1],d0[2],d0[3],E0]];break;case 12:var L0=t[1],X0=o(L0[3]),lx=[12,[0,L0[1],L0[2],X0]];break;case 13:var xx=t[1],g0=o(xx[2]),lx=[13,[0,xx[1],g0]];break;case 14:var lx=[14,o(t[1])];break;case 15:var $0=t[1],n0=o($0[3]),lx=[15,[0,$0[1],$0[2],n0]];break;case 16:var ix=t[1],rx=o(ix[3]),lx=[16,[0,ix[1],ix[2],rx]];break;case 17:var dx=t[1],ax=o(dx[4]),lx=[17,[0,dx[1],dx[2],dx[3],ax]];break;case 18:var Sx=t[1],D0=o(Sx[6]),lx=[18,[0,Sx[1],Sx[2],Sx[3],Sx[4],Sx[5],D0]];break;case 19:var N0=t[1],A0=o(N0[4]),lx=[19,[0,N0[1],N0[2],N0[3],A0]];break;case 20:var Y0=t[1],C0=o(Y0[3]),lx=[20,[0,Y0[1],Y0[2],C0]];break;case 21:var F=t[1],H=o(F[3]),lx=[21,[0,F[1],F[2],H]];break;case 22:var B=t[1],a0=o(B[4]),lx=[22,[0,B[1],B[2],B[3],a0]];break;case 23:var m0=t[1],P0=l(m0[2]),lx=[23,[0,m0[1],P0]];break;case 24:var D=t[1],O0=D[1],K0=D[3],j0=D[2],ox=o(O0[4]),lx=[24,[0,[0,O0[1],O0[2],O0[3],ox],j0,K0]];break;case 25:var b0=t[1],_x=b0[1],B0=b0[3],T=b0[2],X=o(_x[3]),lx=[25,[0,[0,_x[1],_x[2],X],T,B0]];break;case 26:var F0=t[1],sx=o(F0[2]),lx=[26,[0,F0[1],sx]];break;case 27:var lx=[27,[0,o(t[1][1])]];break;case 28:var ex=t[1],U0=o(ex[3]),lx=[28,[0,ex[1],ex[2],U0]];break;case 29:var Nx=t[1],mx=o(Nx[3]),lx=[29,[0,Nx[1],Nx[2],mx]];break;case 30:var lx=[30,[0,o(t[1][1])]];break;case 31:var Bx=t[1],Gx=o(Bx[3]),lx=[31,[0,Bx[1],Bx[2],Gx]];break;case 32:var lx=t;break;case 33:var J0=t[1],bx=o(J0[3]),lx=[33,[0,J0[1],J0[2],bx]];break;case 34:var Jx=t[1],W0=o(Jx[4]),lx=[34,[0,Jx[1],Jx[2],Jx[3],W0]];break;default:var nr=t[1],V0=nr[4],Sr=nr[3],Ur=o(nr[2]),lx=[35,[0,nr[1],Ur,Sr,V0]]}return[0,u,lx]}),I0(NK,function(x){var r=w0(x);u0(x,6);for(var e=[0,0,wn];;){var t=e[2],u=e[1],i=W(x);if(typeof i=="number"){var f=0;if(13<=i)Rr===i&&(f=1);else if(7<=i)switch(i-7|0){case 0:f=1;break;case 2:var o=Px(x);Z0(x);var e=[0,[0,[2,o],u],t];continue;case 5:var l=w0(x),d=l0(0,function(J){Z0(J);var Q=a(s3,J);return Q[0]===0?[0,Q[1],wn]:[0,Q[1],Q[2]]},x),k=d[2],h=k[2],g=d[1],A=k[1],N=[1,[0,g,[0,A,k0([0,l],0,0)]]],C=W(x)===7?1:0,O=0;if(!C&&kr(1,x)===7){var L=[0,h[1],[0,[0,g,20],h[2]]];O=1}if(!O)var L=h;1-C&&u0(x,9);var e=[0,[0,N,u],jR(L,t)];continue}if(f){var M=yK(t),V=Ax(u),z=w0(x);return u0(x,7),[0,[0,V,j1([0,r],[0,hx(x)],z,0)],M]}}var Y=a(s3,x);if(Y[0]===0)var t0=wn,i0=Y[1];else var t0=Y[2],i0=Y[1];W(x)!==7&&u0(x,9);var e=[0,[0,[0,i0],u],jR(t0,t)]}}),I0(CK,function(x){J1(x,5);var r=Px(x),e=w0(x),t=W(x),u=0;if(typeof t!="number"&&t[0]===5){var i=t[3],f=t[2];Z0(x);var o=hx(x),l=o,d=i,k=f,h=Fx(ra0,Fx(f,Fx(xa0,i)));u=1}if(!u){S1(ea0,x);var l=0,d=ta0,k=na0,h=ua0}K1(x);var g=Zr(Xx(d)),A=Xx(d)-1|0,N=0;if(A>=0)for(var C=N;;){var O=fx(d,C),L=O-100|0,M=0;if(21>=L>>>0)switch(L){case 0:case 3:case 5:case 9:case 15:case 17:case 21:st(g,O),M=1;break}var V=C+1|0;if(A!==C){var C=V;continue}break}var z=U1(g);return P(z,d)&&Vx(x,[18,d]),[0,r,[17,[0,k,z,h,k0([0,e],[0,l],0)]]]});var US0=function(x){return function(r){if(typeof r=="number"){var e=0;if(66<=r){var t=r+QD|0;if(49>>0)e=1;else{var u=t-15|0;if(9>=u>>>0)switch(u){case 0:case 1:case 3:case 9:e=1;break}}}else 8<=r?r===60&&(e=1):6<=r&&(e=1);if(e)return 0}throw q0(us,1)}},jS0=function(x){var r=W(x);if(typeof r=="number"&&!r){var e=p(px[16],1,x);return[0,[0,e[1]],e[2]]}return[0,[1,a(px[10],x)],0]};I0(xL,function(x){var r=Yy(US0,x),e=Px(r);if(kr(1,r)===11)var u=0,i=0;else var t=om(r),u=t[2],i=t[1];var f=i||r[19],o=bO(f,r),l=o[18],d=l0(0,function(c0){var d0=ee(c0,Ze(c0));if(ns(c0)&&d0===0){var E0=p(px[13],bv0,c0),L0=E0[1],X0=[0,L0,[0,[0,L0,[2,[0,E0,[0,Gs(c0)],0]]],0]];return[0,d0,[0,L0,[0,0,[0,X0,0],0,0]],[0,[0,L0[1],L0[3],L0[3]]],0]}var xx=a(f3(f,l),c0);cK(c0,xx);var g0=IR(Kv(1,c0));return[0,d0,xx,g0[1],g0[2]]},o),k=d[2],h=k[2],g=h[2],A=0,N=k[4],C=k[3],O=k[1],L=d[1];if(!g[1]){var M=0,V=g[2];if((g[3]||!V)&&(M=1),M){var z=az(o);A=1}}if(!A)var z=o;var Y=h[2],t0=Y[1];if(t0){var i0=h[1];nx(z,[0,t0[1][1],91]);var j=[0,i0,[0,0,Y[2],Y[3],Y[4]]]}else var j=h;var K=Zv(j),J=re(z),Q=J&&(W(z)===11?1:0);Q&&Vx(z,60),u0(z,11);var x0=lz(az(z),i,0,K),$=l0(0,jS0,x0),f0=$[2],s0=f0[1],v0=$[1];i3(x0,f0[2],0,j);var o0=u1(e,v0);return[0,[0,o0,[1,[0,0,j,s0,i,0,N,C,O,k0([0,u],0,0),L]]]]}),I0(dm,function(x,r,e){return l0([0,r],function(t){for(var u=e;;){var i=W(t);if(typeof i=="number"&&i===9){Z0(t);var u=[0,a($t,t),u];continue}return[26,[0,Ax(u),0]]}},x)});var JS0=function(x){var r=w0(x);Z0(x);var e=k0([0,r],0,0),t=a(vm,x),u=re(x)?f6(x):Zy(x),i=u[2];return[0,p(i,t,function(f,o){return p(qx(f,mn,63),f,o)}),e]},iL=function(x){if(!x[28][3])return 0;for(var r=0;;){var e=W(x);if(typeof e=="number"&&e===13){var r=[0,l0(0,JS0,x),r];continue}return Ax(r)}},Vo=function(x,r){var e=x?x[1]:0,t=w0(r),u=W(r);if(typeof u=="number")switch(u){case 6:var i=l0(0,function(v0){var o0=w0(v0);u0(v0,6);var c0=e6(0,v0),d0=a(px[10],c0);return u0(v0,7),[0,d0,k0([0,o0],[0,hx(v0)],0)]},r),f=i[1];return[0,f,[5,[0,f,i[2]]]];case 14:if(!e){var o=l0(0,function(v0){return Z0(v0),[3,T2(v0)]},r),l=o[1],d=o[2];return nx(r,[0,l,68]),[0,l,d]}var k=Pz(r),h=r[30][1],g=k[2][1],A=k[1];if(h){var N=h[1],C=h[2],O=N[2],L=[0,[0,p(w2[4],g,N[1]),O],C];r[30][1]=L}else Ox(as0);return[0,A,[4,k]]}else switch(u[0]){case 0:var M=u[2],V=u[1],z=Px(r),Y=H0(lm,r,V,M);return[0,z,[1,[0,z,[0,Y,M,k0([0,t],[0,hx(r)],0)]]]];case 1:var t0=u[2],i0=u[1],j=Px(r),K=H0(pm,r,i0,t0);return[0,j,[2,[0,j,[0,K,t0,k0([0,t],[0,hx(r)],0)]]]];case 2:var J=u[1],Q=J[4],x0=J[3],$=J[2],f0=J[1];return Q&&Zt(r,81),u0(r,[2,[0,f0,$,x0,Q]]),[0,f0,[0,[0,f0,[0,$,x0,k0([0,t],[0,hx(r)],0)]]]]}var s0=T2(r);return[0,s0[1],[3,s0]]},ym=function(x,r,e){var t=c3(x),u=t[1],i=t[2],f=Vo([0,r],x),o=f[1],l=0,d=An(x,f[2]);return[0,d,l0(0,function(k){var h=zv(1,k),g=l0(0,function(z){var Y=a(f3(0,0),z),t0=0,i0=W(z)===86?Y:c6(z,Y);if(e){var j=i0[2],K=0;if(j[1])nx(z,[0,o,28]),K=1;else{var J=0;j[2]||j[3]?J=1:K=1,J&&nx(z,[0,o,27])}}else{var Q=i0[2];if(Q[1])nx(z,[0,o,71]);else{var x0=Q[2],$=0;x0&&!x0[2]&&!Q[3]&&($=1),$||(Q[3]?nx(z,[0,o,70]):nx(z,[0,o,70]))}}return[0,t0,i0,t3(z,CR(z))]},h),A=g[2],N=A[2],C=A[3],O=A[1],L=g[1],M=d6(h,l,u,0,Zv(N)),V=M[1];return i3(h,M[2],0,N),[0,0,N,V,l,u,0,C,O,k0([0,i],0,0),L]},x)]},MK=function(x){var r=a(s3,x);return r[0]===0?[0,r[1],wn]:[0,r[1],r[2]]},DK=function(x,r){switch(r[0]){case 0:var e=r[1],t=e[1],u=e[2];return nx(x,[0,t,53]),[0,t,[12,u]];case 1:var i=r[1],f=i[1],o=i[2];return nx(x,[0,f,53]),[0,f,[15,o]];case 2:var l=r[1],d=l[1],k=l[2];return nx(x,[0,d,53]),[0,d,[16,k]];case 3:var h=r[1],g=h[2][1],A=h[1];return Vy(g)?nx(x,[0,A,it]):r3(g)&&at(x,[0,A,85]),[0,A,[8,h]];case 4:return Ox(V30);default:var N=r[1][2][1];return nx(x,[0,N[1],8]),N}},UK=function(x,r,e){function t(i){var f=zv(1,i),o=l0(0,function(C){var O=ee(C,Ze(C)),L=a(f3(x,r),C),M=W(C)===86?L:c6(C,L);return[0,O,M,t3(C,CR(C))]},f),l=o[2],d=l[2],k=l[3],h=l[1],g=o[1],A=d6(f,x,r,0,Zv(d)),N=A[1];return i3(f,A[2],0,d),[0,0,d,N,x,r,0,k,h,k0([0,e],0,0),g]}var u=0;return function(i){return l0(u,t,i)}},jK=function(x){return u0(x,86),MK(x)},fL=function(x,r,e,t,u,i){var f=l0([0,r],function(l){if(!t&&!u){var d=W(l);if(typeof d=="number"){var k=0;if(86<=d){if(d===98)k=1;else if(87>d){var h=jK(l);return[0,[0,e,h[1],0],h[2]]}}else{if(d===82){if(e[0]===3)var g=e[1],A=Px(l),N=function(V){var z=w0(V);u0(V,82);var Y=hx(V),t0=p(px[19],V,[0,g[1],[8,g]]),i0=a(px[10],V);return[2,[0,0,t0,i0,k0([0,z],[0,Y],0)]]},C=l0([0,g[1]],N,l),O=[0,C,[0,[0,[0,A,[24,ly(Y30)]],0],0]];else var O=jK(l);return[0,[0,e,O[1],1],O[2]]}if(10>d)switch(d){case 4:k=1;break;case 1:case 9:return[0,[0,e,DK(l,e),1],wn]}}if(k){var L=An(l,e);return[0,[1,L,a(UK(t,u,i),l)],wn]}}return[0,[0,e,DK(l,e),1],wn]}var M=An(l,e);return[0,[1,M,a(UK(t,u,i),l)],wn]},x),o=f[2];return[0,[0,[0,f[1],o[1]]],o[2]]},XS0=function(x){if(W(x)===12){var r=w0(x),e=l0(0,function(L0){return u0(L0,12),MK(L0)},x),t=e[2],u=t[2],i=t[1],f=e[1];return[0,[1,[0,f,[0,i,k0([0,r],0,0)]]],u]}var o=Px(x),l=kr(1,x),d=0;if(typeof l=="number"){var k=0;if(86<=l)l!==98&&87<=l&&(k=1);else if(l!==82)if(10<=l)k=1;else switch(l){case 1:case 4:case 9:break;default:k=1}if(!k){var g=0,A=0;d=1}}if(!d)var h=om(x),g=h[2],A=h[1];var N=c3(x),C=N[1],O=Qx(g,N[2]),L=W(x);if(!A&&!C&&typeof L!="number"&&L[0]===4){var M=L[3];if(!P(M,gv)){var V=w0(x),z=Vo(0,x)[2],Y=W(x);if(typeof Y=="number"){var t0=0;if(86<=Y)Y!==98&&87<=Y&&(t0=1);else if(Y!==82)if(10<=Y)t0=1;else switch(Y){case 1:case 4:case 9:break;default:t0=1}if(!t0)return fL(x,o,z,0,0,0)}An(x,z);var i0=l0([0,o],function(L0){return ym(L0,0,1)},x),j=i0[2],K=j[2],J=j[1],Q=i0[1];return[0,[0,[0,Q,[2,J,K,k0([0,V],0,0)]]],wn]}if(!P(M,Ra)){var x0=w0(x),$=Vo(0,x)[2],f0=W(x);if(typeof f0=="number"){var s0=0;if(86<=f0)f0!==98&&87<=f0&&(s0=1);else if(f0!==82)if(10<=f0)s0=1;else switch(f0){case 1:case 4:case 9:break;default:s0=1}if(!s0)return fL(x,o,$,0,0,0)}An(x,$);var v0=l0([0,o],function(L0){return ym(L0,0,0)},x),o0=v0[2],c0=o0[2],d0=o0[1],E0=v0[1];return[0,[0,[0,E0,[3,d0,c0,k0([0,x0],0,0)]]],wn]}}return fL(x,o,Vo(0,x)[2],A,C,O)},YS0=function(x){var r=l0(0,function(t){var u=w0(t);u0(t,0);for(var i=0,f=[0,0,wn];;){var o=f[2],l=f[1],d=W(t);if(typeof d=="number"){var k=0;if(d!==1&&Rr!==d&&(k=1),!k){var h=i?[0,o[1],[0,[0,i[1],95],o[2]]]:o,g=yK(h),A=Ax(l),N=w0(t);return u0(t,1),[0,[0,A,j1([0,u],[0,hx(t)],N,0)],g]}}var C=XS0(t),O=C[1],L=0,M=C[2];if(O[0]===1&&W(t)===9){var V=[0,Px(t)];L=1}if(!L)var V=0;var z=jR(M,o),Y=W(t),t0=0;if(typeof Y=="number"){var i0=Y-2|0,j=0;if(V1>>0?L2>=i0+1>>>0&&(j=1):i0===7&&(Z0(t),j=1),j){var K=z;t0=1}}if(!t0){var J=ZO(us0,9),Q=kz([0,J],W(t)),x0=[0,Px(t),Q];o1(t,8);var K=[0,[0,x0,z[1]],[0,x0,z[2]]]}var i=V,f=[0,[0,O,l],K]}},x),e=r[2];return[0,r[1],e[1],e[2]]},mm=function(x,r,e,t){var u=e[2][1],i=e[1];if(Ar(u,Tv))return nx(x,[0,i,[15,u,0,Dj===t?1:0,1]]),r;for(var f=r;;){if(typeof f=="number")var l=0;else if(f[0]===0)var o=f[2],l=Tx(u,f[1])===0?[0,o]:0;else{var d=Tx(u,f[2]),k=f[5],h=f[4],g=f[3];if(d!==0){var A=0<=d?k:h,f=A;continue}var l=[0,g]}if(!l)return qy(u,t,r);var N=l[1],C=0;return AP===t?XC===N&&(C=1):XC===t&&AP===N&&(C=1),C||nx(x,[0,i,[1,u]]),qy(u,JU,r)}},JK=function(x,r){return l0(0,function(e){var t=r?w0(e):0;u0(e,52);for(var u=0;;){var i=[0,l0(0,function(l){var d=is(l);if(W(l)===98)var k=P1(l)[2],h=p(k,d,function(g,A){return p(qx(g,Pa,64),g,A)});else var h=d;return[0,h,iK(l)]},e),u],f=W(e);if(typeof f=="number"&&f===9){u0(e,9);var u=i;continue}var o=Ax(i);return[0,o,k0([0,t],0,0)]}},x)},cL=function(x){switch(x[0]){case 0:case 3:var r=x[1];return[0,[0,r[1],r[2][1]]];default:return 0}},sL=function(x,r){return r?nx(x,[0,r[1][1],L2]):0},oL=function(x,r){return r?nx(x,[0,r[1],13]):0},XK=function(x,r,e,t,u,i,f,o){var l=l0([0,r],function(C){var O=NR(C),L=W(C);if(i){var M=0;if(typeof L=="number"&&L===82){Vx(C,14),Z0(C);var V=0}else M=1;if(M)var V=0}else{var z=0;if(typeof L=="number"&&L===82){Z0(C);var Y=zv(1,C),V=[0,a(px[7],Y)];z=1}if(!z)var V=1}var t0=W(C),i0=0;if(typeof t0=="number"&&9>t0)switch(t0){case 8:Z0(C);var j=W(C),K=0;if(typeof j=="number"){var J=0;if(j===1||Rr===j?J=1:K=1,J)var Q=hx(C)}else K=1;if(K)var Q=re(C)?Jo(C):0;var x0=[0,t,O,V,Q];i0=1;break;case 4:case 6:S1(0,C);var x0=[0,t,O,V,0];i0=1;break}if(!i0){var $=W(C),f0=0;if(typeof $=="number"){var s0=0;if($===1||Rr===$?s0=1:f0=1,s0)var v0=[0,0,function(ax,Sx){return ax}]}else f0=1;if(f0)var v0=re(C)?f6(C):Zy(C);if(typeof V=="number")if(O[0]===0)var o0=function(dx,ax){return p(qx(dx,xD,67),dx,ax)},X0=V,xx=O,g0=p(v0[2],t,o0);else var c0=O[1],d0=function(dx,ax){return p(qx(dx,jC,68),dx,ax)},X0=V,xx=[1,p(v0[2],c0,d0)],g0=t;else var E0=V[1],L0=function(dx,ax){return p(qx(dx,mn,69),dx,ax)},X0=[0,p(v0[2],E0,L0)],xx=O,g0=t;var x0=[0,g0,xx,X0,0]}var $0=x0[3],n0=x0[2],ix=x0[1];return[0,ix,n0,$0,k0([0,o],[0,x0[4]],0)]},x),d=l[2],k=d[4],h=d[3],g=d[2],A=d[1],N=l[1];return A[0]===4?[2,[0,N,[0,A[1],h,g,u,f,e,k]]]:[1,[0,N,[0,A,h,g,u,f,e,k]]]},vL=function(x,r,e,t,u,i,f,o,l,d){for(;;){var k=W(x);if(typeof k=="number"){var h=k-1|0,g=0;if(7>>0){var A=h-81|0;if(4>=A>>>0)switch(A){case 3:S1(0,x),Z0(x);continue;case 0:case 4:g=1;break}}else 5>>0&&(g=1);if(g&&!u&&!i)return XK(x,r,e,t,f,o,l,d)}var N=W(x),C=0;if(typeof N=="number"&&(N===4||N===98))var O=0;else C=1;if(C)var O=e3(x)?1:0;if(O)return XK(x,r,e,t,f,o,l,d);oL(x,o),sL(x,l);var L=cL(t),M=0;if(f){if(L){var V=L[1],z=V[1];if(!P(V[2],_o)){nx(x,[0,z,[15,L30,f,1,0]]);var i0=zv(1,x),j=1;M=1}}}else if(L){var Y=L[1],t0=Y[1];if(!P(Y[2],Tv)){u&&nx(x,[0,t0,10]),i&&nx(x,[0,t0,11]);var i0=zv(2,x),j=0;M=1}}if(!M)var i0=zv(1,x),j=1;var K=An(i0,t),J=l0(0,function(x0){var $=l0(0,function(L0){var X0=ee(L0,Ze(L0)),xx=a(f3(u,i),L0),g0=W(L0)===86?xx:c6(L0,xx),$0=g0[2],n0=$0[1],ix=0;if(n0){var rx=n0[1][1],dx=g0[1];if(j===0){nx(L0,[0,rx,92]);var ax=[0,dx,[0,0,$0[2],$0[3],$0[4]]];ix=1}}if(!ix)var ax=g0;return[0,X0,ax,t3(L0,CR(L0))]},x0),f0=$[2],s0=f0[2],v0=f0[3],o0=f0[1],c0=$[1],d0=d6(x0,u,i,0,Zv(s0)),E0=d0[1];return i3(x0,d0[2],0,s0),[0,0,s0,E0,u,i,0,v0,o0,0,c0]},i0),Q=[0,j,K,J,f,e,k0([0,d],0,0)];return[0,[0,u1(r,J[1]),Q]]}},aL=function(x,r){var e=kr(x,r);if(typeof e=="number"){var t=0;if(86<=e)e!==98&&87<=e&&(t=1);else if(e!==82)if(9<=e)t=1;else switch(e){case 1:case 4:case 8:break;default:t=1}if(!t)return 1}return 0},VS0=0,YK=function(x){return aL(VS0,x)},zS0=function(x){var r=Px(x),e=iL(x),t=W(x),u=0;if(typeof t=="number"&&t===60&&!aL(1,x)){var i=[0,Px(x)],f=w0(x);Z0(x);var o=f,l=i;u=1}if(!u)var o=0,l=0;var d=W(x),k=0;if(typeof d=="number"&&2>=d+ij>>>0&&Uo(1,x)){var h=0;if(typeof d=="number"){var g=d+ij|0;if(2>=g>>>0){switch(g){case 0:var A=QJ;break;case 1:var A=rl;break;default:var A=ol}var N=A;h=1}}if(!h)var N=Ox(M30);Vx(x,[22,N]),Z0(x),k=1}var C=W(x)===42?1:0;if(C){var O=kr(1,x),L=0;if(typeof O=="number"){var M=0;if(87<=O)O!==98&&Rr!==O&&(M=1);else{var V=O-9|0;if(76>>0){if(77>V)switch(V+9|0){case 1:case 4:case 8:break;default:M=1}}else V!==73&&(M=1)}if(!M){var z=0;L=1}}if(!L)var z=1;var Y=z}else var Y=C;if(Y){var t0=w0(x);Z0(x);var i0=t0}else var i0=0;var j=W(x)===64?1:0;if(j)var K=1-aL(1,x),J=K&&1-n6(1,x);else var J=j;if(J){var Q=w0(x);Z0(x);var x0=Q}else var x0=0;var $=c3(x),f0=$[1],s0=$[2],v0=Uo(1,x),o0=v0||(kr(1,x)===6?1:0),c0=Px(x),d0=W(x),E0=0;if(typeof d0=="number")switch(d0){case 103:var L0=w0(x);Z0(x);var g0=[0,[0,c0,[0,0,k0([0,L0],0,0)]]];E0=1;break;case 104:var X0=w0(x);Z0(x);var g0=[0,[0,c0,[0,1,k0([0,X0],0,0)]]];E0=1;break}else if(d0[0]===4&&!P(d0[3],Ta)&&o0){var xx=w0(x);Z0(x);var g0=[0,[0,c0,[0,2,k0([0,xx],0,0)]]];E0=1}if(!E0)var g0=0;var $0=0;if(g0){var n0=0,ix=g0[1][1];if((J||f0)&&(n0=1),n0){nx(x,[0,ix,L2]);var rx=0;$0=1}}if(!$0)var rx=g0;var dx=0;if(!f0&&rx){var ax=c3(x),Sx=ax[2],D0=ax[1];dx=1}if(!dx)var Sx=s0,D0=f0;var N0=Ll([0,o,[0,i0,[0,x0,[0,Sx,0]]]]),A0=W(x);if(!J&&!D0&&typeof A0!="number"&&A0[0]===4){var Y0=A0[3];if(!P(Y0,gv)){var C0=w0(x),F=Vo(U30,x)[2];if(YK(x))return vL(x,r,e,F,J,D0,Y,l,rx,N0);oL(x,l),sL(x,rx),An(x,F);var H=Qx(N0,C0),B=l0([0,r],function(W0){return ym(W0,1,1)},x),a0=B[2],m0=a0[1],P0=a0[2],D=B[1],O0=cL(m0),K0=0;if(Y){if(O0){var j0=O0[1],ox=j0[1];P(j0[2],_o)||(nx(x,[0,ox,[15,X30,Y,0,0]]),K0=1)}}else if(O0){var b0=O0[1],_x=b0[1];P(b0[2],Tv)||(nx(x,[0,_x,9]),K0=1)}return[0,[0,D,[0,2,m0,P0,Y,e,k0([0,H],0,0)]]]}if(!P(Y0,Ra)){var B0=w0(x),T=Vo(D30,x)[2];if(YK(x))return vL(x,r,e,T,J,D0,Y,l,rx,N0);oL(x,l),sL(x,rx),An(x,T);var X=Qx(N0,B0),F0=l0([0,r],function(W0){return ym(W0,1,0)},x),sx=F0[2],ex=sx[1],U0=sx[2],Nx=F0[1],mx=cL(ex),Bx=0;if(Y){if(mx){var Gx=mx[1],J0=Gx[1];P(Gx[2],_o)||(nx(x,[0,J0,[15,J30,Y,0,0]]),Bx=1)}}else if(mx){var bx=mx[1],Jx=bx[1];P(bx[2],Tv)||(nx(x,[0,Jx,9]),Bx=1)}return[0,[0,Nx,[0,3,ex,U0,Y,e,k0([0,X],0,0)]]]}}return vL(x,r,e,Vo(j30,x)[2],J,D0,Y,l,rx,N0)},VK=function(x,r,e,t){var u=x?x[1]:0,i=Qs(1,r),f=Qx(u,iL(i)),o=w0(i),l=W(i),d=0;typeof l!="number"&&l[0]===4&&!P(l[3],Bh)&&(Vx(i,88),Z0(i),d=1),u0(i,40);var k=xR(1,i),h=W(k),g=0;if(e&&typeof h=="number"){var A=0;if(52<=h?h!==98&&53<=h&&(A=1):h!==41&&h&&(A=1),!A){var O=0;g=1}}if(!g)if(ns(i))var N=p(px[13],0,k),C=P1(i)[2],O=[0,p(C,N,function($,f0){return p(qx($,Pa,71),$,f0)})];else{hz(i,C30);var O=[0,[0,Px(i),I30]]}var L=Ze(i);if(L)var M=L[1],V=P1(i)[2],z=[0,p(V,M,function($,f0){return p(qx($,zC,70),$,f0)})];else var z=0;var Y=w0(i);if(o1(i,41))var t0=l0(0,function($){var f0=a(vm,HO(0,$));if(W($)===98)var s0=P1($)[2],v0=p(s0,f0,function(c0,d0){return p(qx(c0,mn,65),c0,d0)});else var v0=f0;var o0=iK($);return[0,v0,o0,k0([0,Y],0,0)]},i),i0=t0[1],j=t0[2],K=P1(i)[2],J=[0,[0,i0,p(K,j,function($,f0){return H0(qx($,-663447790,66),$,i0,f0)})]];else var J=0;if(W(i)===52){1-k1(i)&&Vx(i,Ot);var Q=[0,gz(i,JK(i,1))]}else var Q=0;var x0=l0(0,function($){var f0=w0($);if(!o1($,0))return qs($,0),R30;$[30][1]=[0,[0,w2[1],0],$[30][1]];for(var s0=0,v0=VT0,o0=0;;){var c0=W($);if(typeof c0=="number"){var d0=c0-2|0;if(V1>>0){if(L2>=d0+1>>>0){var E0=Ax(o0),L0=function(J0,bx){return a(Ml(function(Jx){return 1-p(w2[3],Jx[1],J0)}),bx)},X0=$[30][1];if(X0){var xx=X0[1],g0=xx[1];if(X0[2]){var $0=X0[2],n0=L0(g0,xx[2]),ix=Rl($0),rx=ix[2],dx=ix[1],ax=qX($0),Sx=[0,[0,dx,Qx(rx,n0)],ax];$[30][1]=Sx}else{var D0=L0(g0,xx[2]);g2(function(J0){return nx($,[0,J0[2],[23,J0[1]]])},D0),$[30][1]=0}}else Ox(ls0);u0($,1);var N0=W($),A0=0;if(!t){var Y0=0;if((typeof N0!="number"||N0!==1&&Rr!==N0)&&(Y0=1),Y0)if(re($)){var C0=Jo($);A0=1}else{var C0=0;A0=1}}if(!A0)var C0=hx($);return[0,E0,k0([0,f0],[0,C0],0)]}}else if(d0===6){u0($,8);continue}}var F=zS0($);switch(F[0]){case 0:var H=F[1],B=H[2],a0=H[1];switch(B[1]){case 0:if(B[4])var U0=v0,Nx=s0;else{s0&&nx($,[0,a0,18]);var U0=v0,Nx=1}break;case 1:var m0=B[2],P0=m0[0]===4?mm($,v0,m0[1],Dj):v0,U0=P0,Nx=s0;break;case 2:var D=B[2],O0=D[0]===4?mm($,v0,D[1],AP):v0,U0=O0,Nx=s0;break;default:var K0=B[2],j0=K0[0]===4?mm($,v0,K0[1],XC):v0,U0=j0,Nx=s0}break;case 1:var ox=F[1][2],b0=ox[4],_x=ox[1];switch(_x[0]){case 4:Ox(O30);break;case 0:case 3:var B0=_x[1],T=B0[2][1],X=Ar(T,Tv),F0=B0[1];if(X)var ex=X;else var sx=Ar(T,_o),ex=sx&&b0;ex&&nx($,[0,F0,[15,T,b0,0,0]]);break}var U0=v0,Nx=s0;break;default:var U0=mm($,v0,F[1][2][1],JU),Nx=s0}var s0=Nx,v0=U0,o0=[0,F,o0]}},i);return[0,O,x0,z,J,Q,f,k0([0,o],0,0)]},km=function(x,r){return l0(0,function(e){return[2,VK([0,r],e,e[7],0)]},x)},KS0=function(x){return[5,VK(0,x,1,1)]},BS0=0,WS0=function(x){return l0(BS0,KS0,x)},zK=Iz(px),KK=function(x){var r=y6(x);if(x[5])Wv(x,r[1]);else{var e=r[2],t=0;if(e[0]===26){var u=e[1],i=r[1],f=0;u[4]?(nx(x,[0,i,5]),f=1):u[5]&&(nx(x,[0,i,26]),f=1),f&&(t=1)}}return r},hm=function(x,r){var e=r[4],t=r[3],u=r[2],i=r[1];e&&Zt(x,81);var f=w0(x);return u0(x,[2,[0,i,u,t,e]]),[0,i,[0,u,t,k0([0,f],[0,hx(x)],0)]]},r2=function(x,r,e){var t=x?x[1]:Tl0,u=r?r[1]:1,i=W(e);if(typeof i=="number"){var f=i-2|0;if(V1>>0){if(L2>=f+1>>>0){var o=function(k,h){return k};return[1,[0,hx(e),o]]}}else if(f===6){Z0(e);var l=W(e);if(typeof l=="number"){var d=0;if(l!==1&&Rr!==l&&(d=1),!d)return[0,hx(e)]}return re(e)?[0,Jo(e)]:Sl0}}return re(e)?[1,f6(e)]:(u&&S1([0,t],e),El0)},xo=function(x){var r=W(x);if(typeof r=="number"){var e=0;if(r!==1&&Rr!==r&&(e=1),!e){var t=function(u,i){return u};return[0,hx(x),t]}}return re(x)?f6(x):Zy(x)},lL=function(x,r,e){var t=r2(0,0,r);if(t[0]===0)return[0,t[1],e];var u=t[1][2],i=Ax(e);if(i)var f=i[2],o=i[1],l=Ax([0,p(u,o,function(d,k){return H0(qx(d,634872468,72),d,x,k)}),f]);else var l=0;return[0,0,l]},BK=function x(r){return x.fun(r)},WK=function x(r){return x.fun(r)},ZK=function x(r){return x.fun(r)},$K=function x(r){return x.fun(r)},FK=function x(r){return x.fun(r)},k6=function x(r,e){return x.fun(r,e)},QK=function x(r){return x.fun(r)},GK=function x(r){return x.fun(r)},h6=function x(r,e,t){return x.fun(r,e,t)},qK=function x(r){return x.fun(r)},HK=function x(r){return x.fun(r)},_6=function x(r,e){return x.fun(r,e)},bK=function x(r){return x.fun(r)},xB=function x(r){return x.fun(r)},_m=function x(r,e){return x.fun(r,e)},rB=function x(r){return x.fun(r)},wm=function x(r,e){return x.fun(r,e)},eB=function x(r){return x.fun(r)},tB=function x(r){return x.fun(r)},Tm=function x(r,e){return x.fun(r,e)},nB=function x(r){return x.fun(r)},w6=function x(r,e,t){return x.fun(r,e,t)},T6=function x(r,e){return x.fun(r,e)},uB=function x(r,e){return x.fun(r,e)},iB=function x(r,e){return x.fun(r,e)},pL=function x(r,e){return x.fun(r,e)},fB=function x(r){return x.fun(r)},o3=function x(r){return x.fun(r)},Sm=function x(r,e,t){return x.fun(r,e,t)},dL=function x(r,e){return x.fun(r,e)},cB=function x(r,e){return x.fun(r,e)},yL=function x(r){return x.fun(r)},ZS0=function(x){var r=w0(x);u0(x,59);var e=W(x)===8?hx(x):0,t=r2(0,0,x),u=t[0]===0?t[1]:t[1][1];return[5,[0,k0([0,r],[0,Qx(e,u)],0)]]},$S0=0,FS0=function(x){var r=w0(x);u0(x,37);var e=r6(1,x),t=a(px[2],e),u=1-x[5],i=u&&s6(t);i&&Wv(x,t[1]);var f=hx(x);u0(x,25);var o=hx(x);u0(x,4);var l=a(px[7],x);u0(x,5);var d=W(x)===8?hx(x):0,k=r2(0,wl0,x),h=k[0]===0?Qx(d,k[1]):k[1][1];return[17,[0,t,l,k0([0,r],[0,Qx(f,Qx(o,h))],0)]]},QS0=0,sB=function(x,r,e){var t=e[2][1],u=e[1];return t&&!t[1][2][2]&&!t[2]?0:nx(x,[0,u,r])},mL=function(x,r){return!x[5]&&s6(r)?Wv(x,r[1]):0},GS0=function(x){var r=w0(x);u0(x,39);var e=x[19],t=e&&o1(x,65),u=Qx(r,w0(x));u0(x,4);var i=k0([0,u],0,0),f=W(x),o=0;if(typeof f=="number"&&f===64){var l=1;o=1}if(!o)var l=0;var d=e6(1,x),k=W(d),h=0;if(typeof k=="number"){if(24<=k){if(29>k)switch(k+dT|0){case 0:var g=l0(0,aK,d),A=g[2],N=A[3],C=A[1],O=g[1],Q=N,x0=[0,[1,[0,O,[0,C,0,k0([0,A[2]],0,0)]]]];h=1;break;case 3:var L=l0(0,lK,d),M=L[2],V=M[3],z=M[1],Y=L[1],Q=V,x0=[0,[1,[0,Y,[0,z,2,k0([0,M[2]],0,0)]]]];h=1;break;case 4:if(kr(1,d)!==17){var t0=l0(0,pK,d),i0=t0[2],j=i0[3],K=i0[1],J=t0[1],Q=j,x0=[0,[1,[0,J,[0,K,1,k0([0,i0[2]],0,0)]]]];h=1}break}}else if(k===8){var Q=0,x0=0;h=1}}if(!h)var Q=0,x0=[0,[0,a(px[8],d)]];var $=W(x);if(typeof $=="number"){if($===17){if(!x0)throw q0([0,wr,_l0],1);var f0=x0[1];if(f0[0]===0)var s0=[1,UR(hl0,x,f0[1])];else{var v0=f0[1];sB(x,43,v0);var s0=[0,v0]}t?u0(x,63):u0(x,17);var o0=a(px[7],x);u0(x,5);var c0=r6(1,x),d0=a(px[2],c0);return mL(x,d0),[24,[0,s0,o0,d0,0,i]]}if($===63){if(!x0)throw q0([0,wr,kl0],1);var E0=x0[1];if(E0[0]===0){var L0=UR(ml0,x,E0[1]),X0=1-t,xx=X0&&l,g0=0;if(xx){var $0=L0[2];if($0[0]===2){var n0=$0[1][1],ix=n0[1];P(n0[2][1],To)||(nx(x,[0,ix,44]),g0=1)}}var rx=[1,L0]}else{var dx=E0[1];sB(x,44,dx);var rx=[0,dx]}u0(x,63);var ax=a(px[10],x);u0(x,5);var Sx=r6(1,x),D0=a(px[2],Sx);return mL(x,D0),[25,[0,rx,ax,D0,t,i]]}}if(g2(function(O0){return nx(x,O0)},Q),t?u0(x,63):u0(x,8),x0)var N0=x0[1],A0=N0[0]===0?[0,[1,o2(x,N0[1])]]:[0,[0,N0[1]]],Y0=A0;else var Y0=0;var C0=W(x),F=0;if(typeof C0=="number"&&C0===8){var H=0;F=1}if(!F)var H=[0,a(px[7],x)];u0(x,8);var B=W(x),a0=0;if(typeof B=="number"&&B===5){var m0=0;a0=1}if(!a0)var m0=[0,a(px[7],x)];u0(x,5);var P0=r6(1,x),D=a(px[2],P0);return mL(x,D),[23,[0,Y0,H,m0,D,i]]},qS0=0,oB=function(x){var r=jo(x)?KK(x):a(px[2],x),e=1-x[5],t=e&&s6(r);return t&&Wv(x,r[1]),r},HS0=function(x){var r=w0(x);u0(x,43);var e=oB(x);return[0,e,k0([0,r],0,0)]},bS0=function(x){var r=w0(x);u0(x,16);var e=Qx(r,w0(x));u0(x,4);var t=a(px[7],x);u0(x,5);var u=oB(x),i=W(x)===43?[0,l0(0,HS0,x)]:0;return[27,[0,t,u,i,k0([0,e],0,0)]]},xE0=0,vB=function(x){return l0(xE0,bS0,x)},rE0=function(x){1-x[11]&&Vx(x,31);var r=w0(x),e=Px(x);u0(x,19);var t=W(x)===8?hx(x):0,u=0;if(W(x)!==8&&!e3(x)){var i=[0,a(px[7],x)];u=1}if(!u)var i=0;var f=u1(e,Px(x)),o=r2(0,0,x),l=0;if(o[0]===0)var d=o[1];else{var k=o[1],h=k[1];if(i){var g=i[1],A=k[2],N=[0,p(A,g,function(V,z){return p(qx(V,mn,73),V,z)})],C=t;l=1}else var d=h}if(!l)var N=i,C=Qx(t,d);return[31,[0,N,k0([0,r],[0,C],0),f]]},eE0=0,tE0=function(x){var r=w0(x);u0(x,20),u0(x,4);var e=a(px[7],x);u0(x,5),u0(x,0);for(var t=yl0;;){var u=t[2],i=t[1],f=W(x);if(typeof f=="number"){var o=0;if(f!==1&&Rr!==f&&(o=1),!o){var l=Ax(u);u0(x,1);var d=xo(x)[1],k=e[1];return[32,[0,e,l,k0([0,r],[0,d],0),k]]}}var h=Fy(0,function(A){return function(N){var C=w0(N),O=W(N),L=0;if(typeof O=="number"&&O===36){A&&Vx(N,58),u0(N,36);var M=hx(N),V=0;L=1}if(!L){u0(N,33);var M=0,V=[0,a(px[7],N)]}var z=A||(V===0?1:0);u0(N,86);var Y=Qx(M,xo(N)[1]);function t0(J){if(typeof J=="number"){var Q=J-1|0,x0=0;if(32>>0?Q===35&&(x0=1):30>>0&&(x0=1),x0)return 1}return 0}var i0=1,j=N[9]===1?N:[0,N[1],N[2],N[3],N[4],N[5],N[6],N[7],N[8],i0,N[10],N[11],N[12],N[13],N[14],N[15],N[16],N[17],N[18],N[19],N[20],N[21],N[22],N[23],N[24],N[25],N[26],N[27],N[28],N[29],N[30],N[31]],K=p(px[4],t0,j);return[0,[0,V,K,k0([0,C],[0,Y],0)],z]}}(i),x),t=[0,h[2],[0,h[1],u]]}},nE0=0,uE0=function(x){var r=w0(x),e=Px(x);u0(x,22),re(x)&&nx(x,[0,e,59]);var t=a(px[7],x),u=r2(0,0,x);if(u[0]===0)var o=t,l=u[1];else var i=u[1][2],f=0,o=p(i,t,function(d,k){return p(qx(d,mn,74),d,k)}),l=f;return[33,[0,o,k0([0,r],[0,l],0)]]},iE0=0,fE0=function(x){var r=w0(x);u0(x,23);var e=a(px[15],x);if(W(x)===34)var t=P1(x)[2],u=p(t,e,function(L,M){var V=M[1];return[0,V,H0(qx(L,Bp,4),L,V,M[2])]});else var u=e;var i=W(x),f=0;if(typeof i=="number"&&i===34){var o=[0,l0(0,function(M){var V=w0(M);u0(M,34);var z=hx(M);if(W(M)===4){u0(M,4);var Y=[0,p(px[18],M,72)];u0(M,5);var t0=Y}else var t0=0;var i0=a(px[15],M);if(W(M)===38)var K=i0;else var j=xo(M)[2],K=p(j,i0,function(J,Q){var x0=Q[1];return[0,x0,H0(qx(J,Bp,75),J,x0,Q[2])]});return[0,t0,K,k0([0,V],[0,z],0)]},x)];f=1}if(!f)var o=0;var l=W(x),d=0;if(typeof l=="number"&&l===38){u0(x,38);var k=a(px[15],x),h=k[1],g=k[2],A=xo(x)[2],N=[0,[0,h,p(A,g,function(M,V){return H0(qx(M,Bp,76),M,h,V)})]];d=1}if(!d)var N=0;var C=o===0?1:0,O=C&&(N===0?1:0);return O&&nx(x,[0,u[1],61]),[34,[0,u,o,N,k0([0,r],0,0)]]},cE0=0,sE0=function(x){var r=aK(x),e=r[3],t=r[2],u=lL(0,x,r[1]),i=0,f=u[2],o=u[1];return g2(function(l){return nx(x,l)},e),[37,[0,f,i,k0([0,t],[0,o],0)]]},oE0=0,vE0=function(x){var r=lK(x),e=r[3],t=r[2],u=lL(2,x,r[1]),i=2,f=u[2],o=u[1];return g2(function(l){return nx(x,l)},e),[37,[0,f,i,k0([0,t],[0,o],0)]]},aE0=0,lE0=function(x){var r=pK(x),e=r[3],t=r[2],u=lL(1,x,r[1]),i=1,f=u[2],o=u[1];return g2(function(l){return nx(x,l)},e),[37,[0,f,i,k0([0,t],[0,o],0)]]},pE0=0,dE0=function(x){var r=w0(x);u0(x,25);var e=Qx(r,w0(x));u0(x,4);var t=a(px[7],x);u0(x,5);var u=r6(1,x),i=a(px[2],u),f=1-x[5],o=f&&s6(i);return o&&Wv(x,i[1]),[38,[0,t,i,k0([0,e],0,0)]]},yE0=0,mE0=function(x){var r=w0(x),e=a(px[7],x),t=W(x),u=e[2];if(u[0]===8&&typeof t=="number"&&t===86){var i=u[1],f=i[2][1],o=e[1];u0(x,86),p(w2[3],f,x[3])&&nx(x,[0,o,[21,pl0,f]]);var l=x[31],d=x[30],k=x[29],h=x[28],g=x[27],A=x[26],N=x[25],C=x[24],O=x[23],L=x[22],M=x[21],V=x[20],z=x[19],Y=x[18],t0=x[17],i0=x[16],j=x[15],K=x[14],J=x[13],Q=x[12],x0=x[11],$=x[10],f0=x[9],s0=x[8],v0=x[7],o0=x[6],c0=x[5],d0=x[4],E0=p(w2[4],f,x[3]),L0=[0,x[1],x[2],E0,d0,c0,o0,v0,s0,f0,$,x0,Q,J,K,j,i0,t0,Y,z,V,M,L,O,C,N,A,g,h,k,d,l],X0=jo(L0)?KK(L0):a(px[2],L0);return[30,[0,i,X0,k0([0,r],0,0)]]}var xx=r2(dl0,0,x);if(xx[0]===0)var n0=e,ix=xx[1];else var g0=xx[1][2],$0=0,n0=p(g0,e,function(rx,dx){return p(qx(rx,mn,77),rx,dx)}),ix=$0;return[22,[0,n0,0,k0(0,[0,ix],0)]]},kE0=0,hE0=function(x){var r=a(px[7],x),e=r2(ll0,0,x);if(e[0]===0)var i=r,f=e[1];else var t=e[1][2],u=0,i=p(t,r,function(N,C){return p(qx(N,mn,78),N,C)}),f=u;if(x[20]){var o=i[2];if(o[0]===12){var l=o[1][2],d=0;if(1i)switch(i-53|0){case 0:return l0([0,u],function(l){1-k1(l)&&Vx(l,Is);var d=l0(0,a(_6,0),l),k=[0,d[1],[29,d[2]]];return[21,[0,[0,k],0,0,0,k0([0,t],0,0)]]},e);case 8:if(kr(1,e)!==0)return l0([0,u],function(l){1-k1(l)&&Vx(l,Is);var d=kr(1,l);if(typeof d=="number"){if(d===48)return Vx(l,21),u0(l,61),[21,[0,0,0,0,0,k0([0,t],0,0)]];if(l2===d){u0(l,61);var k=Px(l);u0(l,l2);var h=a(o3,l),g=h[1];return[21,[0,0,[0,[1,[0,k,0]]],[0,g],0,k0([0,t],[0,h[2]],0)]]}}var A=l0(0,a(k6,0),l),N=[0,A[1],[35,A[2]]];return[21,[0,[0,N],0,0,0,k0([0,t],0,0)]]},e);break;case 9:return l0([0,u],function(l){var d=l0(0,function(h){return a(p(h6,0,0),h)},l),k=[0,d[1],[36,d[2]]];return[21,[0,[0,k],0,0,0,k0([0,t],0,0)]]},e)}}else if(i===36)return l0([0,u],function(l){var d=Qx(t,w0(l)),k=l0(0,function(z){return u0(z,36)},l)[1],h=oz(1,l);if(jo(h))var g=0,A=[0,y6(h)];else if(u6(h))var g=0,A=[0,km(h,x)];else if(W(h)===48)var g=0,A=[0,a(dK(0),h)];else if(iR(h))var g=0,A=[0,DR(h)];else{var N=a(px[10],h),C=r2(0,0,h);if(C[0]===0)var M=C[1],V=N;else var O=C[1][2],L=0,M=L,V=p(O,N,function(t0,i0){return p(qx(t0,mn,96),t0,i0)});var g=M,A=[1,V]}return[20,[0,k,A,k0([0,d],[0,g],0)]]},e)}if(u6(e))return l0([0,u],function(l){var d=km(l,x);return[21,[0,[0,d],0,0,1,k0([0,t],0,0)]]},e);if(jo(e))return l0([0,u],function(l){a(Ky(l),x);var d=y6(l);return[21,[0,[0,d],0,0,1,k0([0,t],0,0)]]},e);if(typeof i=="number"){var f=i+dT|0;if(4>>0){if(f===24&&e[28][2])return l0([0,u],function(l){var d=p(px[3],[0,x],l);return[21,[0,[0,d],0,0,1,k0([0,t],0,0)]]},e)}else if(1>>0)return l0([0,u],function(l){var d=p(px[3],[0,x],l);return[21,[0,[0,d],0,0,1,k0([0,t],0,0)]]},e)}if(iR(e))return l0([0,u],function(l){var d=DR(l);return[21,[0,[0,d],0,0,1,k0([0,t],0,0)]]},e);if(typeof i=="number"&&l2===i)return l0([0,u],function(l){var d=Px(l);u0(l,l2);var k=W(l),h=0;if(typeof k!="number"&&k[0]===4&&!P(k[3],ln)){Z0(l);var g=[0,T2(l)];h=1}if(!h)var g=0;var A=a(o3,l),N=A[1];return[21,[0,0,[0,[1,[0,d,g]]],[0,N],1,k0([0,t],[0,A[2]],0)]]},e);var o=o1(e,61)?0:1;return o1(e,0)?l0([0,u],function(l){var d=H0(Sm,0,l,0);u0(l,1);var k=W(l),h=0;if(typeof k!="number"&&k[0]===4&&!P(k[3],il)){var g=a(o3,l),A=g[2],N=[0,g[1]];h=1}if(!h){p(dL,l,d);var C=r2(0,0,l),O=C[0]===0?C[1]:C[1][1],A=O,N=0}return[21,[0,0,[0,[0,d]],N,o,k0([0,t],[0,A],0)]]},e):(S1(B30,e),p(px[3],[0,x],e))}),I0(yL,function(x){var r=x?x[1]:0;function e(u){1-k1(u)&&Vx(u,vn);var i=w0(u);u0(u,60);var f=sz(1,Qs(1,u)),o=Qx(i,w0(f));u0(f,49);var l=W(f);if(typeof l=="number")switch(l){case 36:var d=Qx(o,w0(f)),k=l0(0,function(A0){return u0(A0,36)},f)[1],h=oz(1,f),g=W(h),A=0;if(typeof g=="number")switch(g){case 15:var N=0,C=N,O=[0,[1,l0(0,function(A0){return p(Tm,0,A0)},h)]];A=1;break;case 40:var C=0,O=[0,[2,l0(0,a(_m,0),h)]];A=1;break}else if(g[0]===4&&!P(g[3],lo)&&h[28][1]){var C=0,O=[0,[3,l0(0,a(wm,0),h)]];A=1}if(!A){var L=bs(h),M=r2(0,0,h);if(M[0]===0)var Y=M[1],t0=L;else var V=M[1][2],z=0,Y=z,t0=p(V,L,function(C0,F){return p(qx(C0,Sa,97),C0,F)});var C=Y,O=[0,[4,t0]]}return[9,[0,[0,k],O,0,0,k0([0,d],[0,C],0)]];case 48:if(f[28][2]){var i0=zK[1],j=l0(0,function(A0){return p(i0,0,A0)},f);return[9,[0,0,[0,[8,j]],0,0,k0([0,o],0,0)]]}break;case 53:if(r){var K=l0(0,a(_6,0),f);return[9,[0,0,[0,[7,K]],0,0,k0([0,o],0,0)]]}break;case 61:if(r){var J=l0(0,a(k6,0),f);return[9,[0,0,[0,[5,J]],0,0,k0([0,o],0,0)]]}break;case 62:var Q=l0(0,p(h6,z30,0),f);return[9,[0,0,[0,[6,Q]],0,0,k0([0,o],0,0)]];case 106:var x0=Px(f);u0(f,l2);var $=W(f),f0=0;if(typeof $!="number"&&$[0]===4&&!P($[3],ln)){Z0(f);var s0=[0,p(px[13],0,f)];f0=1}if(!f0)var s0=0;var v0=a(o3,f),o0=v0[1];return[9,[0,0,0,[0,[1,[0,x0,s0]]],[0,o0],k0([0,o],[0,v0[2]],0)]];case 15:case 24:case 27:case 28:case 40:var c0=W(f);if(typeof c0=="number"){var d0=0;if(24<=c0){if(41>c0){var E0=0;switch(c0+dT|0){case 0:var L0=[0,[0,l0(0,function(A0){return H0(w6,0,A0,0)},f)]];break;case 3:var L0=[0,[0,l0(0,function(A0){return H0(w6,2,A0,0)},f)]];break;case 4:var L0=[0,[0,l0(0,function(A0){return H0(w6,1,A0,0)},f)]];break;case 16:var L0=[0,[2,l0(0,a(_m,0),f)]];break;default:E0=1}if(!E0){var X0=L0;d0=1}}}else if(c0===15){var X0=[0,[1,l0(0,function(Y0){return p(Tm,0,Y0)},f)]];d0=1}if(d0)return[9,[0,0,X0,0,0,k0([0,o],0,0)]]}throw q0([0,wr,K30],1)}else if(l[0]===4&&!P(l[3],lo)&&f[28][1]){var xx=[0,[3,l0(0,a(wm,0),f)]];return[9,[0,0,xx,0,0,k0([0,o],0,0)]]}var g0=W(f),$0=0;typeof g0=="number"?g0===53?Vx(f,15):g0===61?Vx(f,16):$0=1:$0=1,u0(f,0);var n0=H0(Sm,0,f,0);u0(f,1);var ix=W(f),rx=0;if(typeof ix!="number"&&ix[0]===4&&!P(ix[3],il)){var dx=a(o3,f),ax=dx[2],Sx=[0,dx[1]];rx=1}if(!rx){p(dL,f,n0);var D0=r2(0,0,f),N0=D0[0]===0?D0[1]:D0[1][1],ax=N0,Sx=0}return[9,[0,0,0,[0,[0,n0]],Sx,k0([0,o],[0,ax],0)]]}var t=0;return function(u){return l0(t,e,u)}});var dB=function x(r,e){return x.fun(r,e)},yB=function x(r,e){return x.fun(r,e)},g6=function x(r,e){return x.fun(r,e)},Am=function(x,r){return function(e){if(!e)return Ax(r);var t=e[1];if(t[0]!==0){var u=t[1],i=u[1];if(e[2]){var f=e[2];return nx(x,[0,i,69]),a(Am(x,r),f)}var o=u[2],l=o[2];return a(Am(x,[0,[1,[0,i,[0,p(g6,x,o[1]),l]]],r]),0)}var d=t[1],k=d[2],h=e[2],g=d[1];switch(k[0]){case 0:var A=k[2],N=k[1],C=k[3];switch(N[0]){case 0:var O=[0,N[1]];break;case 1:var O=[1,N[1]];break;case 2:var O=[2,N[1]];break;case 3:var O=[3,N[1]];break;case 4:var O=Ox(Pl0);break;default:var O=[4,N[1]]}var L=A[2],M=0;if(L[0]===2){var V=L[1];if(!V[1]){var z=[0,V[3]],Y=V[2];M=1}}if(!M)var z=0,Y=p(g6,x,A);var t0=[0,[0,[0,g,[0,O,Y,z,C]]],r];break;case 1:nx(x,[0,k[2][1],55]);var t0=r;break;default:nx(x,[0,k[2][1],Nl0]);var t0=r}return a(Am(x,t0),h)}};I0(dB,function(x,r){var e=r[2],t=e[2],u=e[1],i=r[1],f=n3(x);return[0,i,[0,[0,a(Am(x,0),u),f,t]]]});var mB=function(x,r){var e=r[1];return a(px[23],r)?[0,p(g6,x,r)]:(nx(x,[0,e,41]),0)},v3=function(x,r){return function(e){if(!e)return Ax(r);var t=e[1];switch(t[0]){case 0:var u=t[1],i=u[2];if(i[0]===2){var f=i[1];if(!f[1]){var o=e[2];return a(v3(x,[0,[0,[0,u[1],[0,f[2],[0,f[3]]]]],r]),o)}}var l=e[2],d=mB(x,u);if(d)var k=d[1],h=[0,[0,[0,k[1],[0,k,0]]],r];else var h=r;return a(v3(x,h),l);case 1:var g=t[1],A=g[1];if(e[2]){var N=e[2];return nx(x,[0,A,20]),a(v3(x,r),N)}var C=g[2],O=C[2],L=mB(x,C[1]),M=L?[0,[1,[0,A,[0,L[1],O]]],r]:r;return a(v3(x,M),0);default:var V=e[2];return a(v3(x,[0,[2,t[1]],r]),V)}}};I0(yB,function(x,r){var e=r[2],t=e[2],u=e[1],i=r[1],f=n3(x);return[0,i,[1,[0,a(v3(x,0),u),f,t]]]}),I0(g6,function(x,r){var e=r[2],t=r[1];switch(e[0]){case 0:return p(yB,x,[0,t,e[1]]);case 8:var u=e[1],i=u[2][1],f=u[1],o=0;if(x[5]&&Bv(i)?nx(x,[0,f,76]):o=1,o&&1-x[5]){var l=0;if(x[18]&&Ar(i,j2)?nx(x,[0,f,Ns]):l=1,l){var d=x[19],k=d&&Ar(i,Ev);k&&nx(x,[0,f,6])}}return[0,t,[2,[0,u,n3(x),0]]];case 23:return p(dB,x,[0,t,e[1]]);default:return[0,t,[3,[0,t,e]]]}});var A6=function(x,r){var e=W(x);if(typeof e=="number"){if(e===6)return l0(0,function(i){var f=w0(i);u0(i,6);for(var o=0;;){var l=W(i);if(typeof l=="number"){var d=0;if(13<=l)Rr===l&&(d=1);else if(7<=l)switch(l-7|0){case 0:d=1;break;case 2:var k=Px(i);u0(i,9);var o=[0,[2,k],o];continue;case 5:var h=w0(i),g=l0(0,function(j){return u0(j,12),A6(j,r)},i),A=g[1],N=g[2],C=[1,[0,A,[0,N,k0([0,h],0,0)]]];W(i)!==7&&(nx(i,[0,A,20]),W(i)===9&&Z0(i));var o=[0,C,o];continue}if(d){var O=Ax(o),L=w0(i);u0(i,7);var M=W(i)===86?[1,Qv(i)]:n3(i);return[1,[0,O,M,j1([0,f],[0,hx(i)],L,0)]]}}var V=l0(0,function(i0){var j=A6(i0,r),K=W(i0),J=0;if(typeof K=="number"&&K===82){u0(i0,82);var Q=[0,a(px[10],i0)];J=1}if(!J)var Q=0;return[0,j,Q]},i),z=V[2],Y=[0,[0,V[1],[0,z[1],z[2]]]];W(i)!==7&&u0(i,9);var o=[0,Y,o]}},x);if(!e){var t=function(i){var f=W(i);return typeof f=="number"&&f===82?(u0(i,82),[0,a(px[10],i)]):0};return l0(0,function(i){var f=w0(i);u0(i,0);for(var o=0,l=0,d=0;;){var k=W(i);if(typeof k=="number"){var h=0;if(k!==1&&Rr!==k&&(h=1),!h){l&&nx(i,[0,l[1],95]);var g=Ax(d),A=w0(i);u0(i,1);var N=hx(i),C=W(i)===86?[1,Qv(i)]:n3(i);return[0,[0,g,C,j1([0,f],[0,N],A,0)]]}}if(W(i)===12)var O=w0(i),L=l0(0,function(Sx){return u0(Sx,12),A6(Sx,r)},i),M=L[2],V=L[1],z=[0,[1,[0,V,[0,M,k0([0,O],0,0)]]]];else{var Y=Px(i),t0=p(px[20],0,i),i0=W(i),j=0;if(typeof i0=="number"&&i0===86){u0(i,86);var K=l0([0,Y],function(D0){var N0=A6(D0,r);return[0,N0,t(D0)]},i),J=K[2],Q=t0[2],x0=J[2],$=J[1],f0=K[1];switch(Q[0]){case 0:var s0=[0,Q[1]];break;case 1:var s0=[1,Q[1]];break;case 2:var s0=[2,Q[1]];break;case 3:var s0=[3,Q[1]];break;case 4:var s0=Ox(gl0);break;default:var s0=[4,Q[1]]}var z=[0,[0,[0,f0,[0,s0,$,x0,0]]]]}else j=1;if(j){var v0=t0[2];if(v0[0]===3){var o0=v0[1],c0=o0[2][1],d0=o0[1];Vy(c0)?nx(i,[0,d0,it]):r3(c0)&&at(i,[0,d0,85]);var E0=l0([0,Y],function(D0,N0){return function(A0){var Y0=[0,N0,[2,[0,D0,n3(A0),0]]];return[0,Y0,t(A0)]}}(o0,d0),i),L0=E0[2],z=[0,[0,[0,E0[1],[0,[3,o0],L0[1],L0[2],1]]]]}else{S1(Al0,i);var z=0}}}if(z){var X0=z[1],xx=X0[1][1],g0=o?(nx(i,[0,xx,69]),0):l;if(X0[0]===0)var n0=g0,ix=o;else var $0=W(i)===9?[0,Px(i)]:0,n0=$0,ix=1;W(i)!==1&&u0(i,9);var o=ix,l=n0,d=[0,X0,d]}}},x)}}var u=H0(px[14],x,0,r);return[0,u[1],[2,u[2]]]},Pm=function(x){var r=W(x);if(typeof r=="number"){var e=r+hJ|0,t=0;if(6>>0?e===14&&(t=1):4>>0&&(t=1),t)return hx(x)}return re(x)?Jo(x):0},kB=function(x){return W(x)===1?0:[0,a(px[7],x)]},ro=function(x){var r=Px(x),e=W(x),t=0;if(typeof e!="number"&&e[0]===8){var u=e[1];t=1}if(!t){S1(Dl0,x);var u=Ul0}var i=w0(x);Z0(x);var f=W(x),o=0;if(typeof f=="number"){var l=f+OD|0,d=0;if(72>>0?l===76&&(d=1):70>>0&&(d=1),d){var k=hx(x);o=1}}if(!o)var k=Pm(x);return[0,r,[0,u,k0([0,i],[0,k],0)]]},hB=function(x){var r=kr(1,x);if(typeof r=="number"){if(r===10)for(var e=l0(0,function(i){var f=[0,ro(i)];return u0(i,10),[0,f,ro(i)]},x);;){var t=W(x);if(typeof t=="number"&&t===10){var u=e[1],e=l0([0,u],function(f){return function(o){return u0(o,10),[0,[1,f],ro(o)]}}(e),x);continue}return[2,e]}if(r===86)return[1,l0(0,function(i){var f=ro(i);return u0(i,86),[0,f,ro(i)]},x)]}return[0,ro(x)]},P6=function(x,r){return Ar(x[2][1],r[2][1])},_B=function(x,r){var e=x[2],t=e[1],u=r[2],i=u[1],f=0,o=e[2],l=u[2];if(t[0]===0){var d=t[1];if(i[0]===0)var h=P6(d,i[1]);else f=1}else{var k=t[1];if(i[0]===0)f=1;else var h=_B(k,i[1])}if(f)var h=0;return h&&P6(o,l)},Nm=function(x,r){switch(x[0]){case 0:var e=x[1];if(r[0]===0)return P6(e,r[1]);break;case 1:var t=x[1];if(r[0]===1){var u=t[2],i=r[1][2],f=u[2],o=i[2],l=P6(u[1],i[1]);return l&&P6(f,o)}break;default:var d=x[1];if(r[0]===2)return _B(d,r[1])}return 0},_L=function(x){switch(x[0]){case 0:return x[1][1];case 1:return x[1][1];default:return x[1][1]}},wB=function x(r,e){return x.fun(r,e)},wL=function x(r,e){return x.fun(r,e)},TL=function x(r,e){return x.fun(r,e)};I0(wB,function(x,r){var e=W(r);if(typeof e=="number"){if(e===0){J1(r,0);var t=l0(0,function(g){u0(g,0);var A=W(g),N=0;if(typeof A=="number"&&A===12){var C=w0(g);u0(g,12);var O=a(px[10],g),V=[3,[0,O,k0([0,C],0,0)]];N=1}if(!N)var L=kB(g),M=L?0:w0(g),V=[2,[0,L,j1(0,0,M,0)]];return u0(g,1),V},r),u=t[2],i=t[1];return K1(r),[0,i,u]}}else if(e[0]===9){var f=e[3],o=e[2],l=e[1];return u0(r,e),[0,l,[4,[0,o,f]]]}var d=p(TL,x,r),k=d[2],h=d[1];return cn<=k[1]?[0,h,[1,k[2]]]:[0,h,[0,k[2]]]});var Cm=function(x){switch(x[0]){case 0:return x[1][2][1];case 1:var r=x[1][2],e=r[1],t=Fx(Cl0,r[2][2][1]);return Fx(e[2][1],t);default:var u=x[1][2],i=u[1],f=u[2],o=i[0]===0?i[1][2][1]:Cm([2,i[1]]);return Fx(o,Fx(Il0,f[2][1]))}};I0(wL,function(x,r){var e=w0(r),t=l0(0,function(Ir){u0(Ir,98);var R1=W(Ir);if(typeof R1=="number"){if(R1===99)return Z0(Ir),Rl0}else if(R1[0]===8){var _=hB(Ir),b=0;if(k1(Ir)&&W(Ir)===98&&De!==kr(1,Ir)){var r0=Wy(Ir,0,am);b=1}if(!b)var r0=0;for(var S0=0;;){var G=W(Ir);if(typeof G=="number"){if(G===0){var h0=w0(Ir);J1(Ir,0);var z0=l0(0,function($x){u0($x,0),u0($x,12);var xr=a(px[10],$x);return u0($x,1),xr},Ir),M0=z0[2],ux=z0[1];K1(Ir);var S0=[0,[1,[0,ux,[0,M0,k0([0,h0],[0,Pm(Ir)],0)]]],S0];continue}}else if(G[0]===8){var S0=[0,[0,l0(0,function($x){var xr=kr(1,$x),zx=0;if(typeof xr=="number"&&xr===86){var Or=[1,l0(0,function(he){var pt=ro(he);return u0(he,86),[0,pt,ro(he)]},$x)];zx=1}if(!zx)var Or=[0,ro($x)];var Wx=W($x),B2=0;if(typeof Wx=="number"&&Wx===82){u0($x,82);var lt=w0($x),me=W($x),Pn=0;if(typeof me=="number")if(me===0){var to=w0($x);J1($x,0);var Nn=l0(0,function(he){u0(he,0);var pt=kB(he);return u0(he,1),pt},$x),cs=Nn[1],ke=Nn[2];K1($x);var Cn=[0,ke,j1([0,to],[0,Pm($x)],0,0)];Cn[1]||nx($x,[0,cs,52]);var te=[0,[1,[0,cs,Cn]]]}else Pn=1;else if(me[0]===10){var Ft=me[3],yr=me[2],Qt=me[1];u0($x,me);var te=[0,[0,[0,Qt,[0,yr,Ft,k0([0,lt],[0,Pm($x)],0)]]]]}else Pn=1;if(Pn){Vx($x,40);var te=[0,[0,[0,Px($x),Ml0]]]}var In=te;B2=1}if(!B2)var In=0;return[0,Or,In]},Ir)],S0];continue}var Zx=Ax(S0),Lx=[0,yo,[0,_,r0,o1(Ir,De),Zx]];return o1(Ir,99)?[0,Lx]:(qs(Ir,99),[1,Lx])}}return qs(Ir,99),Ll0},r);K1(r);var u=t[2];if(u[0]===0)var i=u[1],f=typeof i=="number"?0:i[2][3];else var f=1;if(f)var o=IA,l=o,d=l0(0,function(Ir){return 0},r);else{J1(r,3);for(var k=t[2][1],h=typeof k=="number"?0:[0,k[2][1]],g=Px(r),A=0;;){var N=x3(r),C=0;if(A&&h){var O=A[1],L=O[2],M=0,V=h[1],z=A[2];if(L[0]===0){var Y=L[1],t0=Y[2];if(t0)var i0=t0[1][2][1],j=1-Nm(Y[1][2][1],i0),K=j&&Nm(V,i0);else M=1}else M=1;if(M)var K=0;if(K){var J=O[2],Q=0;if(J[0]===0){var x0=J[1],$=x0[2];if($){var f0=$[1],s0=u1(O[1],x0[3][1]),v0=[0,yo,f0],o0=[0,s0,[0,[0,x0[1],0,x0[3],x0[4]]]];Q=1}}if(!Q)var v0=IA,o0=O;K1(r);var c0=[0,Ax([0,o0,z]),N,v0];C=1}}if(!C){var d0=W(r),E0=0;if(typeof d0=="number"){if(d0===98){J1(r,2);var L0=W(r),X0=kr(1,r),xx=0;if(typeof L0=="number"&&L0===98&&typeof X0=="number"){var g0=0;if((De===X0||Rr===X0)&&(g0=1),g0){var $0=l0(0,function(b){u0(b,98),u0(b,De);var r0=W(b);if(typeof r0=="number"){if(r0===99)return Z0(b),cn}else if(r0[0]===8){var S0=hB(b);return By(b,99),[0,yo,[0,S0]]}return qs(b,99),cn},r),n0=$0[2],ix=$0[1],rx=typeof n0=="number"?[0,cn,ix]:[0,yo,[0,ix,n0[2]]],dx=r[24][1],ax=0;if(dx){var Sx=dx[2];if(Sx){var D0=Sx[2];ax=1}}if(!ax)var D0=Ox(is0);r[24][1]=D0;var N0=ba(r),A0=bl(r[25][1],N0);r[26][1]=A0;var c0=[0,Ax(A),N,rx];E0=1,xx=1}}if(!xx){var Y0=p(wL,h,r),C0=Y0[2],F=Y0[1],H=cn<=C0[1]?[0,F,[1,C0[2]]]:[0,F,[0,C0[2]]],A=[0,H,A];continue}}else if(Rr===d0){S1(0,r);var c0=[0,Ax(A),N,IA];E0=1}}if(!E0){var A=[0,p(wB,h,r),A];continue}}var B=c0[3],a0=c0[1],m0=N?N[1]:g,l=B,d=[0,u1(g,m0),a0];break}}var P0=hx(r),D=0;if(typeof l!="number"){var O0=l[1],K0=0;if(yo===O0){var j0=l[2],ox=j0[2][1],b0=t[2],_x=j0[1];if(b0[0]===0){var B0=b0[1];if(typeof B0=="number")nx(r,[0,_L(ox),Ol0]);else{var T=B0[2][1];if(1-Nm(ox,T)){var X=0;if(x&&Nm(x[1],ox)){var F0=[19,Cm(T)];nx(r,[0,_L(T),F0]),X=1}if(!X){var sx=[13,Cm(T)];nx(r,[0,_L(ox),sx])}}}}var ex=_x;K0=1}else if(cn===O0){var U0=l[2],Nx=t[2];if(Nx[0]===0){var mx=Nx[1];typeof mx!="number"&&nx(r,[0,U0,[13,Cm(mx[2][1])]])}var ex=U0;K0=1}if(K0){var Bx=ex;D=1}}if(!D)var Bx=t[1];var Gx=t[2][1],J0=t[1];if(typeof Gx=="number"){var bx=0,Jx=k0([0,e],[0,P0],0);if(typeof l!="number"){var W0=l[1],nr=0;if(yo===W0){var V0=l[2][1];nr=1}else if(cn===W0){var V0=l[2];nr=1}if(nr){var Sr=V0;bx=1}}if(!bx)var Sr=Bx;var Ur=[0,cn,[0,J0,Sr,d,Jx]]}else{var lx=Gx[2],br=0,e2=k0([0,e],[0,P0],0);if(typeof l!="number"&&yo===l[1]){var h1=[0,l[2]];br=1}if(!br)var h1=0;var Ur=[0,yo,[0,[0,J0,lx],h1,d,e2]]}return[0,u1(t[1],Bx),Ur]}),I0(TL,function(x,r){return J1(r,2),p(wL,x,r)});var TB=function(x,r){var e=T2(r);return $y(x,r,e),e},SB=function x(r){return x.fun(r)},SL=function x(r,e,t){return x.fun(r,e,t)},EL=function x(r){return x.fun(r)},EB=function x(r,e){return x.fun(r,e)},gL=function x(r,e){return x.fun(r,e)},AL=function x(r,e){return x.fun(r,e)},Im=function x(r,e){return x.fun(r,e)},N6=function x(r,e){return x.fun(r,e)},Om=function x(r){return x.fun(r)},gB=function x(r){return x.fun(r)},AB=function x(r){return x.fun(r)},PB=function x(r,e,t){return x.fun(r,e,t)},NB=function x(r){return x.fun(r)},CB=function x(r){return x.fun(r)},EE0=a(TL,0);I0(SB,function(x){var r=W(x),e=0;if(typeof r!="number"&&r[0]===6){var t=r[2],u=r[1];Z0(x);var i=[0,[0,u,t]];e=1}if(!e)var i=0;var f=w0(x),o=Ax(f),l=5;x:for(;;){if(o)for(var d=o[2],k=o[1],h=k[2],g=k[1],A=h[2],N=0,C=Xx(A);;){if(C<(N+5|0))var O=0;else{var L=Ar(m2(A,N,l),"@flow");if(!L){var N=N+1|0;continue}var O=L}if(!O){var o=d;continue x}x[31][1]=g[3];var M=Ax([0,[0,g,h],d]);break}else var M=0;if(M===0){var V=0;if(f){var z=f[1],Y=z[2];if(!Y[1]){var t0=Y[2],i0=0,j=z[1];if(1<=Xx(t0)&&N1(t0,0)===42){x[31][1]=j[3];var K=[0,z,0];V=1}else i0=1}}if(!V)var K=0}else var K=M;var J=p(EB,x,function(v0){return 0}),Q=Px(x);u0(x,Rr);var x0=w2[1];if(H1(function(v0,o0){var c0=o0[2];switch(c0[0]){case 20:return o6(x,v0,Sn(0,[0,c0[1][1],Kl0]));case 21:var d0=c0[1],E0=d0[1];if(E0){if(!d0[2]){var L0=E0[1],X0=L0[2],xx=0,g0=L0[1];switch(X0[0]){case 37:var $0=X0[1][1],n0=0,ix=H1(function(N0,A0){return H1(aR,N0,[0,A0[2][1],0])},n0,$0);return H1(function(N0,A0){return o6(x,N0,A0)},v0,ix);case 2:case 26:var rx=X0[1][1];if(rx)var dx=rx[1];else xx=1;break;case 3:case 19:case 29:case 35:case 36:var dx=X0[1][1];break;default:xx=1}return xx?v0:o6(x,v0,Sn(0,[0,g0,dx[2][1]]))}}else{var ax=d0[2];if(ax){var Sx=ax[1];if(Sx[0]!==0)return v0;var D0=Sx[1];return H1(function(N0,A0){var Y0=A0[2],C0=Y0[2],F=Y0[1];return C0?o6(x,N0,C0[1]):o6(x,N0,F)},v0,D0)}}return v0;default:return v0}},x0,J),J)var $=Rl(Ax(J))[1],f0=u1(Rl(J)[1],$);else var f0=Q;var s0=Ax(x[2][1]);return[0,f0,[0,J,i,k0([0,K],0,0),s0]]}});var gE0=function(x,r,e,t){for(var u=x,i=t;;){var f=i[3],o=i[2],l=i[1],d=W(u);if(typeof d=="number"&&Rr===d)return[0,u,l,o,f];if(a(r,d))return[0,u,l,o,f];if(typeof d!="number"&&d[0]===2){var k=a(e,u),h=[0,k,o],g=k[2];if(g[0]===22){var A=g[1][2];if(A){var N=Ar(A[1],"use strict"),C=k[1],O=N&&1-u[21];O&&nx(u,[0,C,84]);var L=N?Qs(1,u):u,M=[0,d,l],V=f||N,u=L,i=[0,M,h,V];continue}}return[0,u,l,h,f]}return[0,u,l,o,f]}};I0(SL,function(x,r,e){var t=gE0(cz(1,x),r,e,Yl0),u=t[4],i=t[3],f=t[2],o=cz(0,t[1]),l=Ax(f);return g2(function(d){if(typeof d!="number"&&d[0]===2){var k=d[1],h=k[4],g=k[1];return h&&at(o,[0,g,81])}return Ox(Fx(zl0,Fx(EV(d),Vl0)))},l),[0,o,i,u]}),I0(EL,function(x){var r=iL(x),e=W(x);if(typeof e=="number"){var t=e-49|0;if(11>=t>>>0)switch(t){case 0:return p(cB,r,x);case 1:a(Ky(x),r);var u=kr(1,x),i=0;if(typeof u=="number"){var f=0;if((u===4||u===10)&&(f=1),f){var o=S6(x);i=1}}if(!i)var o=hL(x);return o;case 11:if(kr(1,x)===49)return a(Ky(x),r),p(yL,0,x);break}}return p(N6,[0,r],x)}),I0(EB,function(x,r){var e=H0(SL,x,r,EL),t=e[2],u=p(gL,r,e[1]);return H1(function(i,f){return[0,f,i]},u,t)}),I0(gL,function(x,r){for(var e=0;;){var t=W(r);if(typeof t=="number"&&Rr===t||a(x,t))return Ax(e);var e=[0,a(EL,r),e]}}),I0(AL,function(x,r){var e=H0(SL,r,x,function(f){return p(N6,0,f)}),t=e[3],u=e[2],i=p(Im,x,e[1]);return[0,H1(function(f,o){return[0,o,f]},i,u),t]}),I0(Im,function(x,r){for(var e=0;;){var t=W(r);if(typeof t=="number"&&Rr===t||a(x,t))return Ax(e);var e=[0,p(N6,0,r),e]}}),I0(N6,function(x,r){var e=x?x[1]:0;1-u6(r)&&a(Ky(r),e);var t=W(r);if(typeof t=="number"){if(t===27)return l0(aE0,vE0,r);if(t===28)return l0(pE0,lE0,r)}if(jo(r))return y6(r);if(u6(r))return km(r,e);if(typeof t=="number"){var u=t+Y1|0;if(14>=u>>>0)switch(u){case 0:if(r[28][2])return a(dK(0),r);break;case 5:return a(xB,r);case 12:return p(pL,0,r);case 13:return a(GK,r);case 14:return a(HK,r)}}return iR(r)?DR(r):a(Om,r)}),I0(Om,function(x){var r=W(x);if(typeof r=="number"&&ut>r)switch(r){case 0:return a(FK,x);case 8:return a(BK,x);case 16:return vB(x);case 19:return l0(eE0,rE0,x);case 20:return l0(nE0,tE0,x);case 22:return l0(iE0,uE0,x);case 23:return l0(cE0,fE0,x);case 24:return l0(oE0,sE0,x);case 25:return l0(yE0,dE0,x);case 26:return a($K,x);case 32:return a(WK,x);case 35:return a(ZK,x);case 37:return l0(QS0,FS0,x);case 39:return l0(qS0,GS0,x);case 43:return vB(x);case 59:return l0($S0,ZS0,x);case 113:return S1(jl0,x),[0,Px(x),Jl0];case 1:case 5:case 7:case 9:case 10:case 11:case 12:case 17:case 18:case 33:case 34:case 36:case 38:case 41:case 42:case 49:case 83:case 86:return S1(Xl0,x),Z0(x),a(Om,x)}if(jo(x)){var e=y6(x);return Wv(x,e[1]),e}if(typeof r=="number"&&r===28&&kr(1,x)===6){var t=t6(1,x);return nx(x,[0,u1(Px(x),t),4]),S6(x)}return ns(x)?l0(kE0,mE0,x):(u6(x)&&(S1(0,x),Z0(x)),S6(x))}),I0(gB,function(x){var r=Px(x),e=a($t,x),t=W(x);return typeof t=="number"&&t===9?H0(dm,x,r,[0,e,0]):e}),I0(AB,function(x){var r=Px(x),e=a(s3,x),t=W(x);return typeof t=="number"&&t===9?[0,H0(dm,x,r,[0,o2(x,e),0])]:e}),I0(PB,function(x,r,e){var t=r?r[1]:0;return l0(0,function(u){var i=1-t,f=TB([0,e],u),o=i&&(W(u)===85?1:0);return o&&(1-k1(u)&&Vx(u,G2),u0(u,85)),[0,f,NR(u),o]},x)}),I0(NB,function(x){var r=Px(x),e=w0(x);u0(x,0);var t=p(Im,function(o){return o===1?1:0},x),u=Px(x),i=t===0?w0(x):0;u0(x,1);var f=[0,t,j1([0,e],[0,hx(x)],i,0)];return[0,u1(r,u),f]}),I0(CB,function(x){function r(t){var u=w0(t);u0(t,0);var i=p(AL,function(A){return A===1?1:0},t),f=i[1],o=i[2],l=f===0?w0(t):0;u0(t,1);var d=W(t),k=0;if(!x){var h=0;if((typeof d!="number"||d!==1&&Rr!==d)&&(h=1),h)if(re(t)){var g=Jo(t);k=1}else{var g=0;k=1}}if(!k)var g=hx(t);return[0,[0,f,j1([0,u],[0,g],l,0)],o]}var e=0;return function(t){return Fy(e,r,t)}}),VY($l0[1],px,[0,SB,Om,N6,Im,AL,gL,gB,AB,_K,$t,vm,YS0,TB,PB,NB,CB,EE0,A6,g6,Vo,km,WS0,OS0,lm,Qv,pm]);var PL=[Gr,tT0,Js(0)],NL=[0,PL,[0]],AE0=uy(eT0,function(x){var r=AO(x,rT0)[41],e=IO(x,0,0,xT0,jO,1)[1];return XY(x,r,function(t,u){return 0}),function(t,u){var i=iy(u,x);return a(e,i),OO(u,i,x)}}),PE0=Lv(NL)===Gr?NL:NL[1];ZI(RE,PE0);var eo=p0,K2=null,IB=void 0,NE0=function(x){throw x},Rm=function(x){return x!==IB?1:0};eo.String,eo.RegExp,eo.Object,eo.Date,eo.Math;var CE0=eo.Array,IE0=eo.Error,OB=function(x){return a(NE0,x)};eo.JSON,dY(function(x){return x[1]===PL?[0,Jt(x[2].toString())]:0}),dY(function(x){return x instanceof CE0?0:[0,Jt(x.toString())]});var RB=[0,0],OE0=er,fs=function(x){return XW(Dl(x))},X1=function(x){return JW(Dl(x))},Lr=function(x,r){return X1(Ax(Fd(x,r)))},Rx=function(x,r){return r?a(x,r[1]):K2},zo=function(x,r){return r[0]===0?K2:a(x,r[1])},LB=function(x){return fs([0,[0,bw0,x[1]],[0,[0,Hw0,x[2]],0]])},MB=function(x){var r=x[1],e=r?er(r[1][1]):K2,t=[0,[0,Qw0,LB(x[3])],0];return fs([0,[0,qw0,e],[0,[0,Gw0,LB(x[2])],t]])},E1=function(x){if(!x)return 0;var r=x[1],e=r[1];return k0([0,e],[0,Qx(r[3],r[2])],0)},C6=function(x,r,e){var t=r[e];return Rm(t)?t|0:x},RE0=function(x,r){var e=Ud(r,IB)?{}:r,t=Jt(x),u=C6(Cl[5],e,uT0),i=C6(Cl[4],e,iT0),f=C6(Cl[3],e,fT0),o=C6(Cl[2],e,cT0),l=[0,C6(Cl[1],e,sT0),o,f,i,u,0,0],d=e[pD],k=Rm(d),h=k&&d|0,g=e[WM],A=Rm(g)?g|0:1,N=e.all_comments,C=Rm(N)?N|0:1,O=[0,0],L=h?[0,function(mt){return O[1]=[0,mt,O[1]],0}]:0,M=nT0[1],V=0;try{var z=0,Y=rV(t),t0=z,i0=Y}catch(mt){var j=C1(mt);if(j!==Ao)throw q0(j,0);var K=[0,[0,[0,V,Ya[2],Ya[3]],54],0],t0=K,i0=rV(ps0)}var J=[0,V,i0,ex0,0,l[4],_V,tx0],Q=[0,bl(J,0)],x0=[0,[0,t0],[0,0],w2[1],[0,0],l[5],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,[0,ys0],[0,J],Q,[0,L],l,V,[0,0],[0,ds0]],$=a(px[1],x0),f0=Ax(x0[1][1]),s0=[0,vR[1],0],v0=Ax(H1(function(mt,m3){var q=mt[2],I=mt[1];return p(vR[3],m3,I)?[0,I,q]:[0,p(vR[4],m3,I),[0,m3,q]]},s0,f0)[2]);if(v0){var o0=v0[2],c0=v0[1];if(M)throw q0([0,QT0,c0,o0],1)}RB[1]=0;for(var d0=Xx(t)-0|0,E0=$c(t),L0=0,X0=0;;){if(X0===d0)var xx=L0;else{var g0=oe(E0,X0),$0=0;if(0<=g0&&!(Yr=g0){var n0=4;dx=1}if(!dx)var n0=0}}}if(n0===0){var L0=oR(L0,X0,0),X0=X0+1|0;continue}if((d0-X0|0)>=n0){var ax=n0-1|0,Sx=X0+n0|0;if(3>>0)throw q0([0,wr,WQ],1);switch(ax){case 0:var D0=oe(E0,X0);break;case 1:var D0=(oe(E0,X0)&31)<<6|oe(E0,X0+1|0)&63;break;case 2:var D0=(oe(E0,X0)&15)<<12|(oe(E0,X0+1|0)&63)<<6|oe(E0,X0+2|0)&63;break;default:var D0=(oe(E0,X0)&7)<<18|(oe(E0,X0+1|0)&63)<<12|(oe(E0,X0+2|0)&63)<<6|oe(E0,X0+3|0)&63}var L0=oR(L0,X0,[0,D0]),X0=Sx;continue}var xx=oR(L0,X0,0)}for(var N0=yv0,A0=Ax([0,6,xx]);;){var Y0=N0[3],C0=N0[2],F=N0[1];if(!A0){var H=Dl(Ax(Y0));if(A)var a0=$;else var B=a(AE0[1],0),a0=p(qx(B,-201766268,98),B,$);if(C)var P0=a0;else var m0=a0[2],P0=[0,a0[1],[0,m0[1],m0[2],m0[3],0]];var D=function(q,I,U,T0){var R0=[0,Gy(H,I[3]),0],tx=[0,[0,Fl0,X1([0,Gy(H,I[2]),R0])],0],Ex=Qx(tx,[0,[0,Ql0,MB(I)],0]);if(U){var Ux=U[1],jx=Ux[1];if(jx){var Hx=Ux[2];if(Hx)var mr=[0,[0,Gl0,Rn(Hx)],0],or=[0,[0,ql0,Rn(jx)],mr];else var or=[0,[0,Hl0,Rn(jx)],0];var sr=or}else var hr=Ux[2],cr=hr?[0,[0,bl0,Rn(hr)],0]:0,sr=cr;var Nr=sr}else var Nr=0;return fs(Hc(Qx(Ex,Qx(Nr,[0,[0,x60,er(q)],0])),T0))},O0=function(q){return Lr(U0,q)},K0=function(q){var I=q[2],U=I[3],T0=I[1],R0=q[1],tx=[0,[0,R90,er(Nn(I[2]))],0];return D(M90,R0,U,[0,[0,L90,Lr(cs,T0)],tx])},j0=function(q){var I=q[2],U=I[5],T0=I[4],R0=I[2],tx=I[1],Ex=q[1],Ux=[0,[0,Qy0,Lr(M0,I[3])],0],jx=[0,[0,Gy0,te(0,T0)],Ux],Hx=[0,[0,qy0,Rx(v2,R0)],jx];return D(by0,Ex,U,[0,[0,Hy0,W0(tx)],Hx])},ox=function(q,I){var U=I[2],T0=U[7],R0=U[5],tx=U[4],Ex=U[2],Ux=U[6],jx=U[3],Hx=U[1],mr=I[1];if(tx)var or=tx[1][2],hr=or[2],cr=or[1],sr=N2(or[3],T0),Nr=hr,Fr=[0,cr];else var sr=T0,Nr=0,Fr=0;if(R0)var Br=R0[1][2],Wr=Br[1],Mr=N2(Br[2],sr),Qr=Mr,x1=Lr(S0,Wr);else var Qr=sr,x1=X1(0);var a1=[0,[0,fd0,x1],[0,[0,id0,Lr(r0,Ux)],0]],l1=[0,[0,cd0,Rx(On,Nr)],a1],i1=[0,[0,sd0,Rx(V0,Fr)],l1],_1=[0,[0,od0,Rx(v2,jx)],i1],Cr=Ex[2],M1=Cr[2],t2=Ex[1],g1=[0,[0,vd0,D(hd0,t2,M1,[0,[0,kd0,Lr(G,Cr[1])],0])],_1];return D(q,mr,Qr,[0,[0,ad0,Rx(W0,Hx)],g1])},b0=function(q,I){var U=I[2],T0=U[5],R0=U[4],tx=U[3],Ex=U[2],Ux=U[1],jx=I[1],Hx=q?H50:b50,mr=[0,[0,xd0,Rx(yr,R0)],0],or=[0,[0,rd0,Rx(yr,tx)],mr],hr=[0,[0,ed0,Rx(v2,Ex)],or];return D(Hx,jx,T0,[0,[0,td0,W0(Ux)],hr])},_x=function(q){var I=q[2],U=I[4],T0=I[2],R0=I[1],tx=q[1],Ex=[0,[0,F50,yr(I[3])],0],Ux=[0,[0,Q50,Rx(v2,T0)],Ex];return D(q50,tx,U,[0,[0,G50,W0(R0)],Ux])},B0=function(q){var I=q[2],U=I[3],T0=I[1],R0=q[1],tx=[0,[0,R50,z0(I[2])],0];return D(M50,R0,U,[0,[0,L50,W0(T0)],tx])},T=function(q){var I=q[2],U=I[3],T0=q[1],R0=I[5],tx=I[4],Ex=I[2],Ux=I[1],jx=N2(E1(U[2][3]),R0),Hx=U[2],mr=Hx[1],or=Hx[2],hr=[0,[0,y50,Rx(v2,Ex)],0],cr=[0,[0,m50,zo(zx,tx)],hr],sr=[0,[0,k50,h1(mr)],cr],Nr=[0,[0,h50,Rx(R1,or)],sr],Fr=[0,[0,_50,h1(mr)],Nr];return D(T50,T0,jx,[0,[0,w50,W0(Ux)],Fr])},X=function(q){var I=q[2],U=I[6],T0=I[4],R0=I[7],tx=I[5],Ex=I[3],Ux=I[2],jx=I[1],Hx=q[1],mr=X1(T0?[0,M0(T0[1]),0]:0),or=U?Lr(S0,U[1][2][1]):X1(0),hr=[0,[0,v50,mr],[0,[0,o50,or],[0,[0,s50,Lr(M0,tx)],0]]],cr=[0,[0,a50,te(0,Ex)],hr],sr=[0,[0,l50,Rx(v2,Ux)],cr];return D(d50,Hx,R0,[0,[0,p50,W0(jx)],sr])},F0=function(q){var I=q[2],U=I[2],T0=I[1],R0=I[4],tx=I[3],Ex=q[1],Ux=u1(T0[1],U[1]),jx=[0,[0,i50,Rx(so,tx)],0];return D(c50,Ex,R0,[0,[0,f50,Ur(Ux,[0,T0,[1,U],0])],jx])},sx=function(q){var I=q[2],U=I[2],T0=I[1],R0=I[4],tx=I[3],Ex=q[1],Ux=u1(T0[1],U[1]),jx=[0,[0,t50,er(Nn(tx))],0];return D(u50,Ex,R0,[0,[0,n50,Ur(Ux,[0,T0,[1,U],0])],jx])},ex=function(q){var I=q[2],U=I[2],T0=q[1],R0=[0,[0,r50,O0(I[1])],0];return D(e50,T0,E1(U),R0)},U0=function(q){var I=q[2],U=q[1];switch(I[0]){case 0:return ex([0,U,I[1]]);case 1:var T0=I[1],R0=T0[2];return D(c60,U,R0,[0,[0,f60,Rx(W0,T0[1])],0]);case 2:return ox(nd0,[0,U,I[1]]);case 3:var tx=I[1],Ex=tx[4],Ux=tx[3],jx=tx[6],Hx=tx[5],mr=Ux[2][3],or=tx[2],hr=tx[1],cr=Ex[0]===0?0:[0,Ex[1]],sr=N2(E1(mr),jx),Nr=[0,[0,Gd0,Rx(v2,or)],0],Fr=[0,[0,qd0,Rx(zx,cr)],Nr],Br=Ux[2],Wr=Br[2],Mr=Br[1];if(Wr)var Qr=Wr[1],x1=Qr[2],a1=x1[2],l1=Qr[1],i1=D(ty0,l1,a1,[0,[0,ey0,ux(x1[1])],0]),_1=X1(Ax([0,i1,Fd(h0,Mr)]));else var _1=X1(Tn(h0,Mr));var Cr=[0,[0,bd0,W0(hr)],[0,[0,Hd0,_1],Fr]];return D(ry0,U,sr,[0,[0,xy0,ex(Hx)],Cr]);case 4:var M1=I[1],t2=M1[2];return D(o60,U,t2,[0,[0,s60,Rx(W0,M1[1])],0]);case 5:return D(v60,U,I[1][1],0);case 6:return X([0,U,I[1]]);case 7:return T([0,U,I[1]]);case 8:return B0([0,U,I[1]]);case 9:var g1=I[1],W2=g1[5],ne=g1[4],gx=g1[3],Xr=g1[2],r1=g1[1];if(gx){var lr=gx[1];if(lr[0]!==0&&!lr[1][2])return D(l60,U,W2,[0,[0,a60,Rx(J0,ne)],0])}if(Xr){var zr=Xr[1];switch(zr[0]){case 0:var B1=sx(zr[1]);break;case 1:var B1=F0(zr[1]);break;case 2:var B1=X(zr[1]);break;case 3:var B1=T(zr[1]);break;case 4:var B1=yr(zr[1]);break;case 5:var B1=_x(zr[1]);break;case 6:var B1=b0(1,zr[1]);break;case 7:var B1=j0(zr[1]);break;default:var B1=B0(zr[1])}var _e=B1}else var _e=K2;var Z2=[0,[0,p60,Rx(J0,ne)],0],we=[0,[0,y60,_e],[0,[0,d60,b(gx)],Z2]],Gt=r1?1:0;return D(k60,U,W2,[0,[0,m60,!!Gt],we]);case 10:return F0([0,U,I[1]]);case 11:var C2=I[1],n2=C2[5],I2=C2[4],a2=C2[2],kt=C2[1],O2=[0,[0,D50,Lr(M0,C2[3])],0],ht=[0,[0,U50,te(0,I2)],O2],$e=[0,[0,j50,Rx(v2,a2)],ht];return D(X50,U,n2,[0,[0,J50,W0(kt)],$e]);case 12:var Te=I[1],Se=Te[1],Ee=Te[4],ge=Te[3],Ae=Te[2],W1=Se[0]===0?W0(Se[1]):J0(Se[1]),Pe=0,_t=ge?"ES":"CommonJS";return D(T60,U,Ee,[0,[0,w60,W1],[0,[0,_60,ex(Ae)],[0,[0,h60,_t],Pe]]]);case 13:var Fe=I[1],ue=Fe[2];return D(E60,U,ue,[0,[0,S60,zx(Fe[1])],0]);case 14:var R2=I[1],qt=R2[4],vs=R2[2],wt=R2[1],Tt=[0,[0,B50,yr(R2[3])],0],Ht=[0,[0,W50,Rx(v2,vs)],Tt];return D($50,U,qt,[0,[0,Z50,W0(wt)],Ht]);case 15:return b0(1,[0,U,I[1]]);case 16:return sx([0,U,I[1]]);case 17:var ie=I[1],St=ie[3],bt=ie[1],fe=[0,[0,g60,V0(ie[2])],0];return D(P60,U,St,[0,[0,A60,U0(bt)],fe]);case 18:return D(N60,U,I[1][1],0);case 19:var xn=I[1],Ln=xn[3],rn=xn[1],Mn=[0,[0,Zy0,z0(xn[2])],0];return D(Fy0,U,Ln,[0,[0,$y0,W0(rn)],Mn]);case 20:var en=I[1],Dn=en[2],qo=en[3],tn=Dn[0]===0?U0(Dn[1]):V0(Dn[1]);return D(O60,U,qo,[0,[0,I60,tn],[0,[0,C60,er(_(1))],0]]);case 21:var Et=I[1],as=Et[5],ls=Et[4],ps=Et[3],Ho=Et[2],k3=Et[1];if(Ho){var oo=Ho[1];if(oo[0]!==0){var bo=oo[1][2],ta=[0,[0,R60,er(_(ls))],0],h3=[0,[0,L60,Rx(W0,bo)],ta];return D(D60,U,as,[0,[0,M60,Rx(J0,ps)],h3])}}var _3=[0,[0,U60,er(_(ls))],0],na=[0,[0,j60,Rx(J0,ps)],_3],ua=[0,[0,J60,b(Ho)],na];return D(Y60,U,as,[0,[0,X60,Rx(U0,k3)],ua]);case 22:var Un=I[1],w3=Un[3],T3=Un[1],S3=[0,[0,V60,Rx(OE0,Un[2])],0];return D(K60,U,w3,[0,[0,z60,V0(T3)],S3]);case 23:var Ne=I[1],E3=Ne[5],g3=Ne[4],ia=Ne[3],ds=Ne[2],vo=Ne[1],xv=function(X6){return X6[0]===0?K0(X6[1]):V0(X6[1])},rv=[0,[0,B60,U0(g3)],0],A3=[0,[0,W60,Rx(V0,ia)],rv],fa=[0,[0,Z60,Rx(V0,ds)],A3];return D(F60,U,E3,[0,[0,$60,Rx(xv,vo)],fa]);case 24:var ys=I[1],ao=ys[1],ev=ys[5],gt=ys[4],Qe=ys[3],ms=ys[2],At=ao[0]===0?K0(ao[1]):ux(ao[1]),nn=[0,[0,G60,U0(Qe)],[0,[0,Q60,!!gt],0]];return D(b60,U,ev,[0,[0,H60,At],[0,[0,q60,V0(ms)],nn]]);case 25:var un=I[1],tv=un[1],P3=un[5],N3=un[4],nv=un[3],C3=un[2],ca=tv[0]===0?K0(tv[1]):ux(tv[1]),Xm=[0,[0,r40,U0(nv)],[0,[0,x40,!!N3],0]];return D(n40,U,P3,[0,[0,t40,ca],[0,[0,e40,V0(C3)],Xm]]);case 26:var jn=I[1],Ym=jn[3],Vm=jn[2],CL=jn[9],IL=jn[8],OL=jn[7],RL=jn[6],LL=jn[5],ML=jn[4],DL=Vm[2][4],UL=jn[1],jL=Ym[0]===0?Ym[1]:Ox(d80),JL=N2(E1(DL),CL),XL=[0,[0,y80,Rx(v2,IL)],0],YL=[0,[0,k80,!1],[0,[0,m80,Or(OL)],XL]],VL=[0,[0,w80,!!ML],[0,[0,_80,!!LL],[0,[0,h80,Rx(so,RL)],YL]]],zL=[0,[0,T80,ex(jL)],VL],KL=[0,[0,S80,tr(Vm)],zL];return D(g80,U,JL,[0,[0,E80,Rx(W0,UL)],KL]);case 27:var I3=I[1],zm=I3[3],BL=I3[4],WL=I3[2],ZL=I3[1];if(zm)var Km=zm[1][2],Bm=U0(vS0(Km[1],Km[2]));else var Bm=K2;var $L=[0,[0,i40,U0(WL)],[0,[0,u40,Bm],0]];return D(c40,U,BL,[0,[0,f40,V0(ZL)],$L]);case 28:var sa=I[1],Wm=sa[4],Zm=sa[3],FL=sa[5],QL=sa[2],GL=sa[1];if(Wm){var R6=Wm[1];if(R6[0]===0)var qL=R6[1],Fm=Tn(function(Y6){var R3=Y6[3],L3=Y6[2],bm=Y6[1],_M=L3?u1(R3[1],L3[1][1]):R3[1],wM=L3?L3[1]:R3,x9=0,TM=0;if(bm){var V6=0;switch(bm[1]){case 0:var r9=ei;V6=1;break;case 1:var r9=Ts;V6=1;break}if(V6){var e9=r9;x9=1}}if(!x9)var e9=K2;var SM=[0,[0,Rw0,W0(wM)],[0,[0,Ow0,e9],TM]];return D(Mw0,_M,0,[0,[0,Lw0,W0(R3)],SM])},qL);else var $m=R6[1],HL=$m[1],Fm=[0,D(Iw0,HL,0,[0,[0,Cw0,W0($m[2])],0]),0];var L6=Fm}else var L6=0;if(Zm)var Qm=Zm[1][1],bL=[0,[0,Pw0,W0(Qm)],0],Gm=[0,D(Nw0,Qm[1],0,bL),L6];else var Gm=L6;switch(GL){case 0:var M6=s40;break;case 1:var M6=o40;break;default:var M6=v40}var xM=[0,[0,l40,J0(QL)],[0,[0,a40,er(M6)],0]];return D(d40,U,FL,[0,[0,p40,X1(Gm)],xM]);case 29:return j0([0,U,I[1]]);case 30:var D6=I[1],rM=D6[3],eM=D6[1],tM=[0,[0,y40,U0(D6[2])],0];return D(k40,U,rM,[0,[0,m40,W0(eM)],tM]);case 31:var qm=I[1],nM=qm[2];return D(_40,U,nM,[0,[0,h40,Rx(V0,qm[1])],0]);case 32:var U6=I[1],uM=U6[3],iM=U6[1],fM=[0,[0,w40,Lr(br,U6[2])],0];return D(S40,U,uM,[0,[0,T40,V0(iM)],fM]);case 33:var Hm=I[1],cM=Hm[2];return D(g40,U,cM,[0,[0,E40,V0(Hm[1])],0]);case 34:var O3=I[1],sM=O3[4],oM=O3[2],vM=O3[1],aM=[0,[0,A40,Rx(ex,O3[3])],0],lM=[0,[0,P40,Rx(e2,oM)],aM];return D(C40,U,sM,[0,[0,N40,ex(vM)],lM]);case 35:return _x([0,U,I[1]]);case 36:return b0(0,[0,U,I[1]]);case 37:return K0([0,U,I[1]]);case 38:var j6=I[1],pM=j6[3],dM=j6[1],yM=[0,[0,I40,U0(j6[2])],0];return D(R40,U,pM,[0,[0,O40,V0(dM)],yM]);default:var J6=I[1],mM=J6[3],kM=J6[1],hM=[0,[0,L40,U0(J6[2])],0];return D(D40,U,mM,[0,[0,M40,V0(kM)],hM])}},Nx=function(q){var I=q[2],U=I[4],T0=I[3][2],R0=I[1],tx=q[1],Ex=[0,[0,B_0,D(ew0,I[2],0,0)],0],Ux=[0,[0,W_0,Lr(fo,T0)],Ex];return D($_0,tx,U,[0,[0,Z_0,D(b_0,R0,0,0)],Ux])},mx=function(q){var I=q[2],U=I[1],T0=I[4],R0=I[2],tx=q[1],Ex=[0,[0,Y_0,Lr(fo,I[3][2])],0],Ux=[0,[0,V_0,Rx(Hv,R0)],Ex],jx=U[2],Hx=jx[2],mr=jx[4],or=jx[3],hr=jx[1],cr=U[1],sr=Hx?[0,[0,F_0,dt(Hx[1])],0]:0,Nr=[0,[0,G_0,Lr(io,mr)],[0,[0,Q_0,!!or],0]];return D(K_0,tx,T0,[0,[0,z_0,D(H_0,cr,0,Qx([0,[0,q_0,co(hr)],Nr],sr))],Ux])},Bx=function(q){var I=q[2],U=I[3],T0=I[1],R0=q[1],tx=[0,[0,k90,Lr(V0,I[2])],0];return D(_90,R0,U,[0,[0,h90,Lr(to,T0)],tx])},Gx=function(q){var I=q[2],U=I[1],T0=I[2],R0=q[1],tx=U?n90:u90;return D(c90,R0,T0,[0,[0,f90,!!U],[0,[0,i90,er(tx)],0]])},J0=function(q){var I=q[2];return D(t90,q[1],I[3],[0,[0,e90,er(I[1])],[0,[0,r90,er(I[2])],0]])},bx=function(q){var I=q[2],U=I[2],T0=I[3],R0=q[1];return D(x90,R0,T0,[0,[0,bm0,K2],[0,[0,Hm0,er(m2(U,0,Xx(U)-1|0))],[0,[0,qm0,er(U)],0]]])},Jx=function(q){var I=q[2];return D(Gm0,q[1],I[3],[0,[0,Qm0,I[1]],[0,[0,Fm0,er(I[2])],0]])},W0=function(q){var I=q[2];return D(Y80,q[1],I[2],[0,[0,X80,er(I[1])],[0,[0,J80,K2],[0,[0,j80,!1],0]]])},nr=function(q){var I=q[2],U=I[3],T0=I[2],R0=I[9],tx=I[8],Ex=I[7],Ux=I[6],jx=I[5],Hx=I[4],mr=T0[2][4],or=I[1],hr=q[1],cr=U[0]===0?U[1]:Ox(A80),sr=N2(E1(mr),R0),Nr=[0,[0,P80,Rx(v2,tx)],0],Fr=[0,[0,C80,!1],[0,[0,N80,Or(Ex)],Nr]],Br=[0,[0,R80,!!Hx],[0,[0,O80,!!jx],[0,[0,I80,Rx(so,Ux)],Fr]]],Wr=[0,[0,L80,ex(cr)],Br],Mr=[0,[0,M80,tr(T0)],Wr];return D(U80,hr,sr,[0,[0,D80,Rx(W0,or)],Mr])},V0=function(q){var I=q[2],U=q[1];switch(I[0]){case 0:var T0=I[1],R0=T0[2],tx=[0,[0,U40,Lr(Pn,T0[1])],0];return D(j40,U,E1(R0),tx);case 1:var Ex=I[1],Ux=Ex[3],jx=Ex[2],Hx=Ex[9],mr=Ex[8],or=Ex[7],hr=Ex[6],cr=Ex[4],sr=jx[2][4];if(Ux[0]===0)var Nr=0,Fr=ex(Ux[1]);else var Nr=1,Fr=V0(Ux[1]);var Br=N2(E1(sr),Hx),Wr=[0,[0,J40,Rx(v2,mr)],0],Mr=[0,[0,Y40,!!Nr],[0,[0,X40,Or(or)],Wr]],Qr=[0,[0,B40,Fr],[0,[0,K40,!!cr],[0,[0,z40,!1],[0,[0,V40,Rx(so,hr)],Mr]]]];return D($40,U,Br,[0,[0,Z40,K2],[0,[0,W40,tr(jx)],Qr]]);case 2:var x1=I[1],a1=x1[1],l1=x1[4],i1=x1[3],_1=x1[2];if(a1){switch(a1[1]){case 0:var Cr=rq;break;case 1:var Cr=eq;break;case 2:var Cr=tq;break;case 3:var Cr=nq;break;case 4:var Cr=uq;break;case 5:var Cr=iq;break;case 6:var Cr=fq;break;case 7:var Cr=cq;break;case 8:var Cr=sq;break;case 9:var Cr=oq;break;case 10:var Cr=vq;break;case 11:var Cr=aq;break;case 12:var Cr=lq;break;case 13:var Cr=pq;break;default:var Cr=dq}var M1=Cr}else var M1=F40;var t2=[0,[0,Q40,V0(i1)],0];return D(H40,U,l1,[0,[0,q40,er(M1)],[0,[0,G40,ux(_1)],t2]]);case 3:var g1=I[1],W2=g1[4],ne=g1[2],gx=g1[1],Xr=[0,[0,b40,V0(g1[3])],0],r1=[0,[0,xp0,V0(ne)],Xr];switch(gx){case 0:var lr=LG;break;case 1:var lr=MG;break;case 2:var lr=DG;break;case 3:var lr=UG;break;case 4:var lr=jG;break;case 5:var lr=JG;break;case 6:var lr=XG;break;case 7:var lr=YG;break;case 8:var lr=VG;break;case 9:var lr=zG;break;case 10:var lr=KG;break;case 11:var lr=BG;break;case 12:var lr=WG;break;case 13:var lr=ZG;break;case 14:var lr=$G;break;case 15:var lr=FG;break;case 16:var lr=QG;break;case 17:var lr=GG;break;case 18:var lr=qG;break;case 19:var lr=HG;break;case 20:var lr=bG;break;default:var lr=xq}return D(ep0,U,W2,[0,[0,rp0,er(lr)],r1]);case 4:var zr=I[1],B1=zr[4],_e=N2(E1(zr[3][2][2]),B1);return D(tp0,U,_e,Fo(zr));case 5:return ox(ud0,[0,U,I[1]]);case 6:var Z2=I[1],we=Z2[4],Gt=Z2[2],C2=Z2[1],n2=[0,[0,np0,V0(Z2[3])],0],I2=[0,[0,up0,V0(Gt)],n2];return D(fp0,U,we,[0,[0,ip0,V0(C2)],I2]);case 7:return nr([0,U,I[1]]);case 8:return W0(I[1]);case 9:var a2=I[1],kt=a2[2];return D(sp0,U,kt,[0,[0,cp0,V0(a2[1])],0]);case 10:return mx([0,U,I[1]]);case 11:return Nx([0,U,I[1]]);case 12:return J0([0,U,I[1]]);case 13:return Gx([0,U,I[1]]);case 14:return D(m90,U,I[1],[0,[0,y90,K2],[0,[0,d90,mv],0]]);case 15:return Jx([0,U,I[1]]);case 16:return bx([0,U,I[1]]);case 17:var O2=I[1],ht=O2[2],$e=O2[1],Te=O2[4],Se=O2[3];try{var Ee=new RegExp(er($e),er(ht)),ge=Ee}catch{var ge=K2}return D(p90,U,Te,[0,[0,l90,ge],[0,[0,a90,er(Se)],[0,[0,v90,fs([0,[0,o90,er($e)],[0,[0,s90,er(ht)],0]])],0]]]);case 18:var Ae=I[1];return J0([0,U,[0,Ae[1],Ae[5],Ae[6]]]);case 19:var W1=I[1],Pe=W1[4],_t=W1[3],Fe=W1[2];switch(W1[1]){case 0:var ue=op0;break;case 1:var ue=vp0;break;default:var ue=ap0}var R2=[0,[0,lp0,V0(_t)],0];return D(yp0,U,Pe,[0,[0,dp0,er(ue)],[0,[0,pp0,V0(Fe)],R2]]);case 20:var qt=I[1],vs=qt[3];return D(mp0,U,vs,xa(qt));case 21:var wt=I[1],Tt=wt[3],Ht=wt[1],ie=[0,[0,kp0,W0(wt[2])],0];return D(_p0,U,Tt,[0,[0,hp0,W0(Ht)],ie]);case 22:var St=I[1],bt=St[4],fe=St[3],xn=St[2],Ln=St[1];if(fe)var rn=fe[1],Mn=N2(E1(rn[2][2]),bt),en=Mn,Dn=lx(rn);else var en=bt,Dn=X1(0);var qo=[0,[0,Tp0,Rx(dt,xn)],[0,[0,wp0,Dn],0]];return D(Ep0,U,en,[0,[0,Sp0,V0(Ln)],qo]);case 23:var tn=I[1],Et=tn[2],as=[0,[0,gp0,Lr(Wx,tn[1])],0];return D(Ap0,U,E1(Et),as);case 24:var ls=I[1],ps=ls[1],Ho=ls[3],k3=ps[4],oo=N2(E1(ps[3][2][2]),k3);return D(Np0,U,oo,Qx(Fo(ps),[0,[0,Pp0,!!Ho],0]));case 25:var bo=I[1],ta=bo[1],h3=ta[3],_3=[0,[0,Cp0,!!bo[3]],0];return D(Ip0,U,h3,Qx(xa(ta),_3));case 26:var na=I[1],ua=na[2];return D(Rp0,U,ua,[0,[0,Op0,Lr(V0,na[1])],0]);case 27:return D(Lp0,U,I[1][1],0);case 28:var Un=I[1],w3=Un[3],T3=Un[1],S3=[0,[0,A90,Bx(Un[2])],0];return D(N90,U,w3,[0,[0,P90,V0(T3)],S3]);case 29:return Bx([0,U,I[1]]);case 30:return D(Mp0,U,I[1][1],0);case 31:var Ne=I[1],E3=Ne[3],g3=Ne[1],ia=[0,[0,Dp0,zx(Ne[2])],0];return D(jp0,U,E3,[0,[0,Up0,V0(g3)],ia]);case 32:var ds=I[1],vo=ds[2],xv=ds[1];if(typeof vo=="number"){var rv=ds[3];return D(Xp0,U,rv,[0,[0,Jp0,V0(xv)],0])}if(vo[0]===0){var A3=ds[3],fa=[0,[0,Yp0,yr(vo[1])],0];return D(zp0,U,A3,[0,[0,Vp0,V0(xv)],fa])}var ys=ds[3],ao=[0,[0,Kp0,yr(vo[1])],0];return D(Wp0,U,ys,[0,[0,Bp0,V0(xv)],ao]);case 33:var ev=I[1],gt=ev[3],Qe=ev[2],ms=ev[1];if(7<=ms)return D($p0,U,gt,[0,[0,Zp0,V0(Qe)],0]);switch(ms){case 0:var At=Fp0;break;case 1:var At=Qp0;break;case 2:var At=Gp0;break;case 3:var At=qp0;break;case 4:var At=Hp0;break;case 5:var At=bp0;break;case 6:var At=x80;break;default:var At=Ox(r80)}return D(u80,U,gt,[0,[0,n80,er(At)],[0,[0,t80,!0],[0,[0,e80,V0(Qe)],0]]]);case 34:var nn=I[1],un=nn[4],tv=nn[3],P3=nn[2],N3=nn[1]?i80:f80;return D(v80,U,un,[0,[0,o80,er(N3)],[0,[0,s80,V0(P3)],[0,[0,c80,!!tv],0]]]);default:var nv=I[1],C3=nv[2],ca=[0,[0,a80,!!nv[3]],0];return D(p80,U,C3,[0,[0,l80,Rx(V0,nv[1])],ca])}},Sr=function(q){var I=q[2];return D(B80,q[1],I[2],[0,[0,K80,er(I[1])],[0,[0,z80,K2],[0,[0,V80,!1],0]]])},Ur=function(q,I){var U=I[1][2],T0=U[2],R0=U[1],tx=[0,[0,W80,!!I[3]],0];return D(F80,q,T0,[0,[0,$80,er(R0)],[0,[0,Z80,zo(zx,I[2])],tx]])},lx=function(q){return Lr(me,q[2][1])},br=function(q){var I=q[2],U=I[3],T0=I[1],R0=q[1],tx=[0,[0,Q80,Lr(U0,I[2])],0];return D(q80,R0,U,[0,[0,G80,Rx(V0,T0)],tx])},e2=function(q){var I=q[2],U=I[3],T0=I[1],R0=q[1],tx=[0,[0,H80,ex(I[2])],0];return D(x50,R0,U,[0,[0,b80,Rx(ux,T0)],tx])},h1=function(q){return X1(Tn(function(I){var U=I[2];return Ir(0,U[3],I[1],[0,U[1]],U[2][2])},q))},Ir=function(q,I,U,T0,R0){if(T0)var tx=T0[1],Ex=tx[0]===0?Rx(W0,[0,tx[1]]):Rx(J0,[0,tx[1]]),Ux=Ex;else var Ux=Rx(W0,0);return D(O50,U,q,[0,[0,I50,Ux],[0,[0,C50,yr(R0)],[0,[0,N50,!!I],0]]])},R1=function(q){var I=q[2],U=I[4],T0=I[3],R0=I[2],tx=I[1],Ex=q[1];return Ir(U,T0,Ex,$d(function(Ux){return[0,Ux]},tx),R0)},_=function(q){return q?Y50:V50},b=function(q){if(!q)return X1(0);var I=q[1];if(I[0]===0)return Lr($o,I[1]);var U=I[1],T0=U[2],R0=U[1];return X1(T0?[0,D(K50,R0,0,[0,[0,z50,W0(T0[1])],0]),0]:0)},r0=function(q){var I=q[2],U=I[2],T0=q[1];return D(pd0,T0,U,[0,[0,ld0,V0(I[1])],0])},S0=function(q){var I=q[2],U=I[1],T0=q[1],R0=[0,[0,dd0,Rx(On,I[2])],0];return D(md0,T0,0,[0,[0,yd0,W0(U)],R0])},G=function(q){switch(q[0]){case 0:var I=q[1],U=I[2],T0=U[6],R0=U[2],tx=U[5],Ex=U[4],Ux=U[3],jx=U[1],Hx=I[1];switch(R0[0]){case 0:var cr=T0,sr=0,Nr=J0(R0[1]);break;case 1:var cr=T0,sr=0,Nr=Jx(R0[1]);break;case 2:var cr=T0,sr=0,Nr=bx(R0[1]);break;case 3:var cr=T0,sr=0,Nr=W0(R0[1]);break;case 4:var cr=T0,sr=0,Nr=Sr(R0[1]);break;default:var mr=R0[1][2],or=mr[1],hr=N2(mr[2],T0),cr=hr,sr=1,Nr=V0(or)}switch(jx){case 0:var Fr=_d0;break;case 1:var Fr=wd0;break;case 2:var Fr=Td0;break;default:var Fr=Sd0}var Br=[0,[0,Pd0,er(Fr)],[0,[0,Ad0,!!Ex],[0,[0,gd0,!!sr],[0,[0,Ed0,Lr(r0,tx)],0]]]];return D(Id0,Hx,cr,[0,[0,Cd0,Nr],[0,[0,Nd0,nr(Ux)],Br]]);case 1:var Wr=q[1],Mr=Wr[2],Qr=Mr[7],x1=Mr[6],a1=Mr[2],l1=Mr[1],i1=Mr[5],_1=Mr[4],Cr=Mr[3],M1=Wr[1];switch(l1[0]){case 0:var gx=Qr,Xr=0,r1=J0(l1[1]);break;case 1:var gx=Qr,Xr=0,r1=Jx(l1[1]);break;case 2:var gx=Qr,Xr=0,r1=bx(l1[1]);break;case 3:var gx=Qr,Xr=0,r1=W0(l1[1]);break;case 4:var t2=Ox(Yd0),gx=t2[3],Xr=t2[2],r1=t2[1];break;default:var g1=l1[1][2],W2=g1[1],ne=N2(g1[2],Qr),gx=ne,Xr=1,r1=V0(W2)}if(typeof a1=="number")if(a1)var lr=0,zr=0;else var lr=1,zr=0;else var lr=0,zr=[0,a1[1]];var B1=lr?[0,[0,Vd0,!!lr],0]:0,_e=x1===0?0:[0,[0,zd0,Lr(r0,x1)],0],Z2=Qx(_e,B1),we=[0,[0,Wd0,!!Xr],[0,[0,Bd0,!!_1],[0,[0,Kd0,Rx(ke,i1)],0]]],Gt=[0,[0,Zd0,zo(zx,Cr)],we];return D(Qd0,M1,gx,Qx([0,[0,Fd0,r1],[0,[0,$d0,Rx(V0,zr)],Gt]],Z2));default:var C2=q[1],n2=C2[2],I2=n2[6],a2=n2[2],kt=n2[7],O2=n2[5],ht=n2[4],$e=n2[3],Te=n2[1],Se=C2[1];if(typeof a2=="number")if(a2)var Ee=0,ge=0;else var Ee=1,ge=0;else var Ee=0,ge=[0,a2[1]];var Ae=Ee?[0,[0,Od0,!!Ee],0]:0,W1=I2===0?0:[0,[0,Rd0,Lr(r0,I2)],0],Pe=Qx(W1,Ae),_t=[0,[0,Dd0,!1],[0,[0,Md0,!!ht],[0,[0,Ld0,Rx(ke,O2)],0]]],Fe=[0,[0,Ud0,zo(zx,$e)],_t],ue=[0,[0,jd0,Rx(V0,ge)],Fe];return D(Xd0,Se,kt,Qx([0,[0,Jd0,Sr(Te)],ue],Pe))}},h0=function(q){var I=q[2],U=I[3],T0=I[2],R0=I[1],tx=q[1],Ex=I[4],Ux=R0[0]===0?W0(R0[1]):J0(R0[1]);if(U)var jx=[0,[0,ny0,V0(U[1])],0],Hx=D(iy0,tx,0,[0,[0,uy0,ux(T0)],jx]);else var Hx=ux(T0);return D(oy0,tx,0,[0,[0,sy0,Ux],[0,[0,cy0,Hx],[0,[0,fy0,!!Ex],0]]])},z0=function(q){var I=q[2],U=q[1];switch(I[0]){case 0:var T0=I[1],R0=T0[4],tx=T0[1],Ex=[0,[0,Ny0,!!T0[2]],[0,[0,Py0,!!T0[3]],0]],Ux=[0,[0,Cy0,Lr(function(gx){var Xr=gx[2],r1=Xr[1],lr=gx[1],zr=[0,[0,Ey0,Gx(Xr[2])],0];return D(Ay0,lr,0,[0,[0,gy0,W0(r1)],zr])},tx)],Ex];return D(Iy0,U,E1(R0),Ux);case 1:var jx=I[1],Hx=jx[4],mr=jx[1],or=[0,[0,Ry0,!!jx[2]],[0,[0,Oy0,!!jx[3]],0]],hr=[0,[0,Ly0,Lr(function(gx){var Xr=gx[2],r1=Xr[1],lr=gx[1],zr=[0,[0,wy0,Jx(Xr[2])],0];return D(Sy0,lr,0,[0,[0,Ty0,W0(r1)],zr])},mr)],or];return D(My0,U,E1(Hx),hr);case 2:var cr=I[1],sr=cr[1],Nr=cr[4],Fr=cr[3],Br=cr[2];if(sr[0]===0)var Wr=sr[1],Qr=Tn(function(gx){var Xr=gx[1];return D(_y0,Xr,0,[0,[0,hy0,W0(gx[2][1])],0])},Wr);else var Mr=sr[1],Qr=Tn(function(gx){var Xr=gx[2],r1=Xr[1],lr=gx[1],zr=[0,[0,yy0,J0(Xr[2])],0];return D(ky0,lr,0,[0,[0,my0,W0(r1)],zr])},Mr);var x1=[0,[0,jy0,X1(Qr)],[0,[0,Uy0,!!Br],[0,[0,Dy0,!!Fr],0]]];return D(Jy0,U,E1(Nr),x1);case 3:var a1=I[1],l1=a1[3],i1=a1[1],_1=[0,[0,Xy0,!!a1[2]],0],Cr=[0,[0,Yy0,Lr(function(gx){var Xr=gx[1];return D(dy0,Xr,0,[0,[0,py0,W0(gx[2][1])],0])},i1)],_1];return D(Vy0,U,E1(l1),Cr);default:var M1=I[1],t2=M1[4],g1=M1[1],W2=[0,[0,Ky0,!!M1[2]],[0,[0,zy0,!!M1[3]],0]],ne=[0,[0,By0,Lr(function(gx){var Xr=gx[2],r1=Xr[1],lr=gx[1],zr=[0,[0,vy0,bx(Xr[2])],0];return D(ly0,lr,0,[0,[0,ay0,W0(r1)],zr])},g1)],W2];return D(Wy0,U,E1(t2),ne)}},M0=function(q){var I=q[2],U=I[1],T0=I[3],R0=I[2],tx=q[1],Ex=U[0]===0?W0(U[1]):pt(U[1]);return D(em0,tx,T0,[0,[0,rm0,Ex],[0,[0,xm0,Rx(On,R0)],0]])},ux=function(q){var I=q[2],U=q[1];switch(I[0]){case 0:var T0=I[1],R0=T0[3],tx=T0[1],Ex=[0,[0,tm0,zo(zx,T0[2])],0],Ux=[0,[0,nm0,Lr(B2,tx)],Ex];return D(um0,U,E1(R0),Ux);case 1:var jx=I[1],Hx=jx[3],mr=jx[1],or=[0,[0,im0,zo(zx,jx[2])],0],hr=[0,[0,fm0,Lr(xr,mr)],or];return D(cm0,U,E1(Hx),hr);case 2:return Ur(U,I[1]);default:return V0(I[1])}},Zx=function(q){var I=q[2],U=I[2],T0=I[1],R0=q[1];if(!U)return ux(T0);var tx=[0,[0,sm0,V0(U[1])],0];return D(vm0,R0,0,[0,[0,om0,ux(T0)],tx])},Lx=function(q){var I=q[2],U=I[2],T0=q[1];return D(pm0,T0,U,[0,[0,lm0,vv],[0,[0,am0,zx(I[1])],0]])},tr=function(q){var I=q[2],U=I[3],T0=I[2],R0=I[1];if(U){var tx=U[1],Ex=tx[2],Ux=Ex[2],jx=tx[1],Hx=D(ym0,jx,Ux,[0,[0,dm0,ux(Ex[1])],0]),mr=Ax([0,Hx,Fd(Zx,T0)]),or=R0?[0,Lx(R0[1]),mr]:mr;return X1(or)}var hr=Tn(Zx,T0),cr=R0?[0,Lx(R0[1]),hr]:hr;return X1(cr)},$x=function(q,I){var U=I[2];return D(km0,q,U,[0,[0,mm0,ux(I[1])],0])},xr=function(q){switch(q[0]){case 0:var I=q[1],U=I[2],T0=U[2],R0=U[1],tx=I[1];if(!T0)return ux(R0);var Ex=[0,[0,hm0,V0(T0[1])],0];return D(wm0,tx,0,[0,[0,_m0,ux(R0)],Ex]);case 1:var Ux=q[1];return $x(Ux[1],Ux[2]);default:return K2}},zx=function(q){var I=q[1];return D(E_0,I,0,[0,[0,S_0,yr(q[2])],0])},Or=function(q){switch(q[0]){case 0:return K2;case 1:return zx(q[1]);default:var I=q[1],U=I[2],T0=I[1];return D(A_0,T0,0,[0,[0,g_0,Qt([0,U[1],U[2]])],0])}},Wx=function(q){if(q[0]===0){var I=q[1],U=I[2],T0=I[1];switch(U[0]){case 0:var R0=U[3],tx=U[1],sr=0,Nr=R0,Fr=0,Br=Tm0,Wr=V0(U[2]),Mr=tx;break;case 1:var Ex=U[2],Ux=U[1],sr=0,Nr=0,Fr=1,Br=Sm0,Wr=nr([0,Ex[1],Ex[2]]),Mr=Ux;break;case 2:var jx=U[2],Hx=U[3],mr=U[1],sr=Hx,Nr=0,Fr=0,Br=Em0,Wr=nr([0,jx[1],jx[2]]),Mr=mr;break;default:var or=U[2],hr=U[3],cr=U[1],sr=hr,Nr=0,Fr=0,Br=gm0,Wr=nr([0,or[1],or[2]]),Mr=cr}switch(Mr[0]){case 0:var i1=sr,_1=0,Cr=J0(Mr[1]);break;case 1:var i1=sr,_1=0,Cr=Jx(Mr[1]);break;case 2:var i1=sr,_1=0,Cr=bx(Mr[1]);break;case 3:var i1=sr,_1=0,Cr=W0(Mr[1]);break;case 4:var Qr=Ox(Am0),i1=Qr[3],_1=Qr[2],Cr=Qr[1];break;default:var x1=Mr[1][2],a1=x1[1],l1=N2(x1[2],sr),i1=l1,_1=1,Cr=V0(a1)}return D(Lm0,T0,i1,[0,[0,Rm0,Cr],[0,[0,Om0,Wr],[0,[0,Im0,er(Br)],[0,[0,Cm0,!!Fr],[0,[0,Nm0,!!Nr],[0,[0,Pm0,!!_1],0]]]]]])}var M1=q[1],t2=M1[2],g1=t2[2],W2=M1[1];return D(Dm0,W2,g1,[0,[0,Mm0,V0(t2[1])],0])},B2=function(q){if(q[0]!==0){var I=q[1];return $x(I[1],I[2])}var U=q[1],T0=U[2],R0=T0[3],tx=T0[2],Ex=T0[1],Ux=T0[4],jx=U[1];switch(Ex[0]){case 0:var or=0,hr=0,cr=J0(Ex[1]);break;case 1:var or=0,hr=0,cr=Jx(Ex[1]);break;case 2:var or=0,hr=0,cr=bx(Ex[1]);break;case 3:var or=0,hr=0,cr=W0(Ex[1]);break;default:var Hx=Ex[1][2],mr=Hx[2],or=mr,hr=1,cr=V0(Hx[1])}if(R0)var sr=R0[1],Nr=u1(tx[1],sr[1]),Fr=[0,[0,Um0,V0(sr)],0],Br=D(Jm0,Nr,0,[0,[0,jm0,ux(tx)],Fr]);else var Br=ux(tx);return D(Wm0,jx,or,[0,[0,Bm0,cr],[0,[0,Km0,Br],[0,[0,zm0,pu],[0,[0,Vm0,!1],[0,[0,Ym0,!!Ux],[0,[0,Xm0,!!hr],0]]]]]])},lt=function(q){var I=q[2],U=I[2],T0=q[1];return D($m0,T0,U,[0,[0,Zm0,V0(I[1])],0])},me=function(q){return q[0]===0?V0(q[1]):lt(q[1])},Pn=function(q){switch(q[0]){case 0:return V0(q[1]);case 1:return lt(q[1]);default:return K2}},to=function(q){var I=q[2],U=I[1],T0=I[2],R0=q[1];return D(g90,R0,0,[0,[0,E90,fs([0,[0,T90,er(U[1])],[0,[0,w90,er(U[2])],0]])],[0,[0,S90,!!T0],0]])},Nn=function(q){switch(q){case 0:return C90;case 1:return I90;default:return O90}},cs=function(q){var I=q[2],U=I[1],T0=q[1],R0=[0,[0,D90,Rx(V0,I[2])],0];return D(j90,T0,0,[0,[0,U90,ux(U)],R0])},ke=function(q){var I=q[2],U=I[2],T0=q[1];switch(I[1]){case 0:var R0=J90;break;case 1:var R0=X90;break;case 2:var R0=Y90;break;case 3:var R0=V90;break;case 4:var R0=z90;break;default:var R0=K90}return D(W90,T0,U,[0,[0,B90,er(R0)],0])},Cn=function(q){var I=q[2],U=I[1],T0=I[3],R0=I[2],tx=q[1],Ex=U[0]===0?W0(U[1]):pt(U[1]);return D(Lh0,tx,T0,[0,[0,Rh0,Ex],[0,[0,Oh0,Rx(On,R0)],0]])},te=function(q,I){var U=I[2],T0=U[4],R0=U[3],tx=U[2],Ex=U[1],Ux=I[1],jx=H1(function(Br,Wr){var Mr=Br[4],Qr=Br[3],x1=Br[2],a1=Br[1];switch(Wr[0]){case 0:var l1=Wr[1],i1=l1[2],_1=i1[2],Cr=i1[1],M1=i1[8],t2=i1[7],g1=i1[6],W2=i1[5],ne=i1[4],gx=i1[3],Xr=l1[1];switch(Cr[0]){case 0:var r1=J0(Cr[1]);break;case 1:var r1=Jx(Cr[1]);break;case 2:var r1=bx(Cr[1]);break;case 3:var r1=W0(Cr[1]);break;case 4:var r1=Ox(Lk0);break;default:var r1=Ox(Mk0)}switch(_1[0]){case 0:var B1=Dk0,_e=yr(_1[1]);break;case 1:var lr=_1[1],B1=Uk0,_e=Ft([0,lr[1],lr[2]]);break;default:var zr=_1[1],B1=jk0,_e=Ft([0,zr[1],zr[2]])}return[0,[0,D(Zk0,Xr,M1,[0,[0,Wk0,r1],[0,[0,Bk0,_e],[0,[0,Kk0,!!g1],[0,[0,zk0,!!gx],[0,[0,Vk0,!!ne],[0,[0,Yk0,!!W2],[0,[0,Xk0,Rx(ke,t2)],[0,[0,Jk0,er(B1)],0]]]]]]]]),a1],x1,Qr,Mr];case 1:var Z2=Wr[1],we=Z2[2],Gt=we[2],C2=Z2[1];return[0,[0,D(Fk0,C2,Gt,[0,[0,$k0,yr(we[1])],0]),a1],x1,Qr,Mr];case 2:var n2=Wr[1],I2=n2[2],a2=I2[6],kt=I2[4],O2=I2[3],ht=I2[2],$e=I2[1],Te=n2[1],Se=[0,[0,Gk0,!!kt],[0,[0,Qk0,Rx(ke,I2[5])],0]],Ee=[0,[0,qk0,yr(O2)],Se],ge=[0,[0,Hk0,yr(ht)],Ee];return[0,a1,[0,D(xh0,Te,a2,[0,[0,bk0,Rx(W0,$e)],ge]),x1],Qr,Mr];case 3:var Ae=Wr[1],W1=Ae[2],Pe=W1[3],_t=Ae[1],Fe=[0,[0,rh0,!!W1[2]],0];return[0,a1,x1,[0,D(th0,_t,Pe,[0,[0,eh0,Ft(W1[1])],Fe]),Qr],Mr];case 4:var ue=Wr[1],R2=ue[2],qt=R2[6],vs=R2[5],wt=R2[4],Tt=R2[3],Ht=R2[1],ie=ue[1],St=[0,[0,lh0,!!Tt],[0,[0,ah0,!!wt],[0,[0,vh0,!!vs],[0,[0,oh0,yr(R2[2])],0]]]];return[0,a1,x1,Qr,[0,D(dh0,ie,qt,[0,[0,ph0,W0(Ht)],St]),Mr]];default:var bt=Wr[1],fe=bt[2],xn=fe[6],Ln=fe[4],rn=fe[3],Mn=fe[2],en=fe[1],Dn=bt[1],qo=0;switch(fe[5]){case 0:var tn="PlusOptional";break;case 1:var tn="MinusOptional";break;case 2:var tn="Optional";break;default:var tn=K2}var Et=[0,[0,uh0,Rx(ke,Ln)],[0,[0,nh0,tn],qo]],as=[0,[0,ih0,yr(rn)],Et],ls=[0,[0,fh0,yr(Mn)],as];return[0,[0,D(sh0,Dn,xn,[0,[0,ch0,uo(en)],ls]),a1],x1,Qr,Mr]}},gk0,R0),Hx=jx[3],mr=jx[2],or=jx[1],hr=[0,[0,Ak0,X1(Ax(jx[4]))],0],cr=[0,[0,Pk0,X1(Ax(Hx))],hr],sr=[0,[0,Nk0,X1(Ax(mr))],cr],Nr=[0,[0,Ik0,!!Ex],[0,[0,Ck0,X1(Ax(or))],sr]],Fr=q?[0,[0,Ok0,!!tx],Nr]:Nr;return D(Rk0,Ux,E1(T0),Fr)},Ft=function(q){var I=q[2],U=I[3],T0=I[2][2],R0=I[4],tx=T0[3],Ex=T0[2],Ux=T0[1],jx=I[1],Hx=q[1],mr=N2(E1(T0[4]),R0),or=[0,[0,vk0,Rx(v2,jx)],0],hr=[0,[0,ak0,Rx(qv,tx)],or],cr=U[0]===0?yr(U[1]):Qt(U[1]),sr=[0,[0,pk0,Rx(he,Ux)],[0,[0,lk0,cr],hr]];return D(yk0,Hx,mr,[0,[0,dk0,Lr(function(Nr){return In(0,Nr)},Ex)],sr])},yr=function(q){var I=q[2],U=q[1];switch(I[0]){case 0:return D(Z90,U,I[1],0);case 1:return D($90,U,I[1],0);case 2:return D(F90,U,I[1],0);case 3:return D(Q90,U,I[1],0);case 4:return D(G90,U,I[1],0);case 5:return D(H90,U,I[1],0);case 6:return D(b90,U,I[1],0);case 7:return D(xk0,U,I[1],0);case 8:return D(rk0,U,I[2],0);case 9:return D(q90,U,I[1],0);case 10:return D(T_0,U,I[1],0);case 11:var T0=I[1],R0=T0[2];return D(tk0,U,R0,[0,[0,ek0,yr(T0[1])],0]);case 12:return Ft([0,U,I[1]]);case 13:var tx=I[1],Ex=tx[2],Ux=tx[4],jx=tx[3],Hx=tx[1],mr=N2(E1(Ex[2][3]),Ux),or=Ex[2],hr=or[2],cr=or[1],sr=[0,[0,S50,Rx(v2,Hx)],0],Nr=[0,[0,E50,zo(zx,jx)],sr],Fr=[0,[0,g50,Rx(R1,hr)],Nr];return D(P50,U,mr,[0,[0,A50,h1(cr)],Fr]);case 14:return te(1,[0,U,I[1]]);case 15:var Br=I[1],Wr=Br[3],Mr=Br[2],Qr=[0,[0,yh0,te(0,Br[1])],0];return D(kh0,U,Wr,[0,[0,mh0,Lr(M0,Mr)],Qr]);case 16:var x1=I[1],a1=x1[2];return D(_h0,U,a1,[0,[0,hh0,yr(x1[1])],0]);case 17:var l1=I[1],i1=l1[5],_1=l1[3],Cr=l1[2],M1=l1[1],t2=[0,[0,wh0,yr(l1[4])],0],g1=[0,[0,Th0,yr(_1)],t2],W2=[0,[0,Sh0,yr(Cr)],g1];return D(gh0,U,i1,[0,[0,Eh0,yr(M1)],W2]);case 18:var ne=I[1],gx=ne[2];return D(Ph0,U,gx,[0,[0,Ah0,uo(ne[1])],0]);case 19:return Cn([0,U,I[1]]);case 20:var Xr=I[1],r1=Xr[3];return D(Uh0,U,r1,Ko(Xr));case 21:var lr=I[1],zr=lr[1],B1=zr[3],_e=[0,[0,jh0,!!lr[2]],0];return D(Jh0,U,B1,Qx(Ko(zr),_e));case 22:var Z2=I[1],we=Z2[1],Gt=Z2[2];return D(Yh0,U,Gt,[0,[0,Xh0,Lr(yr,[0,we[1],[0,we[2],we[3]]])],0]);case 23:var C2=I[1],n2=C2[1],I2=C2[2];return D(zh0,U,I2,[0,[0,Vh0,Lr(yr,[0,n2[1],[0,n2[2],n2[3]]])],0]);case 24:var a2=I[1],kt=a2[2];return D(Bh0,U,kt,[0,[0,Kh0,no(a2[1])],0]);case 25:var O2=I[1],ht=O2[2];return D(Qh0,U,ht,[0,[0,Fh0,yr(O2[1])],0]);case 26:var $e=I[1],Te=$e[2];return D(qh0,U,Te,[0,[0,Gh0,yr($e[1])],0]);case 27:var Se=I[1],Ee=Se[2],ge=Se[1],Ae=0;return D(bh0,U,Ee,[0,[0,Hh0,Lr(function(wt){var Tt=wt[2],Ht=wt[1];switch(Tt[0]){case 0:return yr(Tt[1]);case 1:var ie=Tt[1],St=ie[2],bt=ie[1],fe=[0,[0,x_0,!!ie[4]],0],xn=[0,[0,r_0,Rx(ke,ie[3])],fe],Ln=[0,[0,e_0,yr(St)],xn];return D(n_0,Ht,0,[0,[0,t_0,W0(bt)],Ln]);default:var rn=Tt[1],Mn=rn[1],en=[0,[0,u_0,yr(rn[2])],0];return D(f_0,Ht,0,[0,[0,i_0,Rx(W0,Mn)],en])}},ge)],Ae]);case 28:var W1=I[1];return D(o_0,U,W1[3],[0,[0,s_0,er(W1[1])],[0,[0,c_0,er(W1[2])],0]]);case 29:var Pe=I[1];return D(l_0,U,Pe[3],[0,[0,a_0,Pe[1]],[0,[0,v_0,er(Pe[2])],0]]);case 30:var _t=I[1];return D(y_0,U,_t[3],[0,[0,d_0,K2],[0,[0,p_0,er(_t[2])],0]]);case 31:var Fe=I[1],ue=Fe[1],R2=Fe[2],qt=0,vs=ue?m_0:k_0;return D(w_0,U,R2,[0,[0,__0,!!ue],[0,[0,h_0,er(vs)],qt]]);case 32:return D(nk0,U,I[1],0);case 33:return D(uk0,U,I[1],0);default:return D(ik0,U,I[1],0)}},Qt=function(q){var I=q[2],U=I[2],T0=I[3],R0=U[1],tx=q[1],Ex=[0,[0,fk0,!!I[1]],0],Ux=[0,[0,ck0,Rx(yr,U[2])],Ex],jx=[0,[0,sk0,W0(R0)],Ux];return D(ok0,tx,E1(T0),jx)},In=function(q,I){var U=I[2],T0=U[1],R0=I[1],tx=[0,[0,mk0,!!U[3]],0],Ex=[0,[0,kk0,yr(U[2])],tx];return D(_k0,R0,q,[0,[0,hk0,Rx(W0,T0)],Ex])},qv=function(q){var I=q[2];return In(I[2],I[1])},he=function(q){var I=q[2],U=I[2],T0=q[1],R0=[0,[0,Tk0,yr(I[1][2])],[0,[0,wk0,!1],0]];return D(Ek0,T0,U,[0,[0,Sk0,Rx(W0,0)],R0])},pt=function(q){var I=q[2],U=I[1],T0=I[2],R0=q[1],tx=U[0]===0?W0(U[1]):pt(U[1]);return D(Ih0,R0,0,[0,[0,Ch0,tx],[0,[0,Nh0,W0(T0)],0]])},Ko=function(q){var I=q[1],U=[0,[0,Mh0,yr(q[2])],0];return[0,[0,Dh0,yr(I)],U]},no=function(q){if(q[0]===0)return W0(q[1]);var I=q[1],U=I[2],T0=U[2],R0=I[1],tx=no(U[1]);return D($h0,R0,0,[0,[0,Zh0,tx],[0,[0,Wh0,W0(T0)],0]])},v2=function(q){var I=q[2],U=I[2],T0=q[1],R0=[0,[0,P_0,Lr(uo,I[1])],0];return D(N_0,T0,E1(U),R0)},uo=function(q){var I=q[2],U=I[1][2],T0=I[5],R0=I[4],tx=I[2],Ex=U[2],Ux=U[1],jx=q[1],Hx=I[3]?[0,[0,C_0,!0],0]:0,mr=[0,[0,I_0,Rx(yr,T0)],0],or=[0,[0,O_0,Rx(ke,R0)],mr];return D(M_0,jx,Ex,Qx([0,[0,L_0,er(Ux)],[0,[0,R_0,zo(zx,tx)],or]],Hx))},On=function(q){var I=q[2],U=I[2],T0=q[1],R0=[0,[0,D_0,Lr(yr,I[1])],0];return D(U_0,T0,E1(U),R0)},dt=function(q){var I=q[2],U=I[2],T0=q[1],R0=[0,[0,j_0,Lr(Bo,I[1])],0];return D(J_0,T0,E1(U),R0)},Bo=function(q){if(q[0]===0)return yr(q[1]);var I=q[1],U=I[1],T0=I[2][1];return Cn([0,U,[0,[0,Sn(0,[0,U,X_0])],0,T0]])},io=function(q){if(q[0]===0){var I=q[1],U=I[2],T0=U[1],R0=U[2],tx=I[1],Ex=T0[0]===0?yt(T0[1]):ss(T0[1]);return D(uw0,tx,0,[0,[0,nw0,Ex],[0,[0,tw0,Rx(a3,R0)],0]])}var Ux=q[1],jx=Ux[2],Hx=jx[2],mr=Ux[1];return D(fw0,mr,Hx,[0,[0,iw0,V0(jx[1])],0])},Hv=function(q){var I=q[1];return D(rw0,I,0,[0,[0,xw0,co(q[2][1])],0])},Wo=function(q){var I=q[2],U=I[1],T0=q[1],R0=I[2],tx=U?V0(U[1]):D(cw0,[0,T0[1],[0,T0[2][1],T0[2][2]+1|0],[0,T0[3][1],T0[3][2]-1|0]],0,0);return D(ow0,T0,E1(R0),[0,[0,sw0,tx],0])},fo=function(q){var I=q[2],U=q[1];switch(I[0]){case 0:return mx([0,U,I[1]]);case 1:return Nx([0,U,I[1]]);case 2:return Wo([0,U,I[1]]);case 3:var T0=I[1],R0=T0[2];return D(aw0,U,R0,[0,[0,vw0,V0(T0[1])],0]);default:var tx=I[1];return D(dw0,U,0,[0,[0,pw0,er(tx[1])],[0,[0,lw0,er(tx[2])],0]])}},yt=function(q){var I=q[2];return D(Sw0,q[1],I[2],[0,[0,Tw0,er(I[1])],0])},ss=function(q){var I=q[2],U=I[1],T0=q[1],R0=[0,[0,hw0,yt(I[2])],0];return D(ww0,T0,0,[0,[0,_w0,yt(U)],R0])},Zo=function(q){var I=q[2],U=I[1],T0=I[2],R0=q[1],tx=U[0]===0?yt(U[1]):Zo(U[1]);return D(kw0,R0,0,[0,[0,mw0,tx],[0,[0,yw0,yt(T0)],0]])},co=function(q){switch(q[0]){case 0:return yt(q[1]);case 1:return ss(q[1]);default:return Zo(q[1])}},a3=function(q){if(q[0]===0){var I=q[1];return J0([0,I[1],I[2]])}var U=q[1];return Wo([0,U[1],U[2]])},$o=function(q){var I=q[2],U=I[2],T0=I[1],R0=q[1],tx=W0(U?U[1]:T0);return D(Aw0,R0,0,[0,[0,gw0,W0(T0)],[0,[0,Ew0,tx],0]])},Rn=function(q){return Lr(bv,q)},bv=function(q){var I=q[2],U=q[1];if(I[1])var T0=I[2],R0=Dw0;else var T0=I[2],R0=Uw0;return D(R0,U,0,[0,[0,jw0,er(T0)],0])},so=function(q){var I=q[2],U=I[1],T0=I[2],R0=q[1];if(U)var tx=[0,[0,Jw0,V0(U[1])],0],Ex=Xw0;else var tx=0,Ex=Yw0;return D(Ex,R0,T0,tx)},Fo=function(q){var I=q[2],U=q[1],T0=[0,[0,Vw0,lx(q[3])],0],R0=[0,[0,zw0,Rx(dt,I)],T0];return[0,[0,Kw0,V0(U)],R0]},xa=function(q){var I=q[2],U=q[1];switch(I[0]){case 0:var T0=0,R0=W0(I[1]);break;case 1:var T0=0,R0=Sr(I[1]);break;default:var T0=1,R0=V0(I[1])}return[0,[0,Zw0,V0(U)],[0,[0,Ww0,R0],[0,[0,Bw0,!!T0],0]]]},os=P0[2],Qo=os[2],Go=os[4],ra=os[3],l3=P0[1],Lm=O0(os[1]),p3=[0,[0,e60,Lm],[0,[0,r60,Rn(Go)],0]];if(Qo)var I6=Qo[1],O6=Qx(p3,[0,[0,u60,D(n60,I6[1],0,[0,[0,t60,er(I6[2])],0])],0]);else var O6=p3;var d3=D(i60,l3,ra,O6),Mm=Qx(v0,RB[1]);if(d3.errors=Lr(function(q){var I=q[1],U=[0,[0,$w0,er(GT0(q[2]))],0];return fs([0,[0,Fw0,MB(I)],U])},Mm),h){var Dm=O[1];d3[pD]=X1(Fd(function(q){var I=q[2],U=q[1],T0=q[3],R0=[0,[0,kv0,er(WO(I))],0],tx=[0,Gy(H,U[3]),0],Ex=[0,[0,hv0,X1([0,Gy(H,U[2]),tx])],R0],Ux=[0,[0,Tv0,fs([0,[0,wv0,U[3][1]],[0,[0,_v0,U[3][2]],0]])],0],jx=[0,[0,Av0,fs([0,[0,gv0,fs([0,[0,Ev0,U[2][1]],[0,[0,Sv0,U[2][2]],0]])],Ux])],Ex];switch(T0){case 0:var Hx=Pv0;break;case 1:var Hx=Nv0;break;case 2:var Hx=Cv0;break;case 3:var Hx=Iv0;break;case 4:var Hx=Ov0;break;default:var Hx=Rv0}return fs([0,[0,Mv0,er(EV(I))],[0,[0,Lv0,er(Hx)],jx]])},Dm))}return d3}var ea=A0[1];if(ea===5){var y3=A0[2];if(y3&&y3[1]===6){var Um=y3[2],N0=[0,F+2|0,0,[0,Dl(Ax([0,F,C0])),Y0]],A0=Um;continue}}else if(6>ea){var jm=A0[2],N0=[0,F+Nz(ea)|0,[0,F,C0],Y0],A0=jm;continue}var Jm=A0[2],L1=[0,Dl(Ax([0,F,C0])),Y0],N0=[0,F+Nz(ea)|0,0,L1],A0=Jm}}};if(typeof gM<"u")var DB=gM;else{var UB={};eo.flow=UB;var DB=UB}DB.parse=VW(function(x,r){try{var e=RE0(x,r);return e}catch(u){var t=C1(u);return t[1]===PL?OB(t[2]):OB(new IE0(er(Fx(oT0,xy(t)))))}}),bI(0);return}}})(globalThis)});var FB=jB(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});oa.extract=XN0;oa.parse=VN0;oa.parseWithComments=$B;oa.print=zN0;oa.strip=YN0;var MN0=/\*\/$/,DN0=/^\/\*\*?/,WB=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,UN0=/(^|\s+)\/\/([^\r\n]*)/g,zB=/^(\r?\n)+/,jN0=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,KB=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,JN0=/(\r?\n|^) *\* ?/g,ZB=[];function XN0(p0){let wx=p0.match(WB);return wx?wx[0].trimLeft():""}function YN0(p0){let wx=p0.match(WB);return wx&&wx[0]?p0.substring(wx[0].length):p0}function VN0(p0){return $B(p0).pragmas}function $B(p0){let wx=` +`;p0=p0.replace(DN0,"").replace(MN0,"").replace(JN0,"$1");let rr="";for(;rr!==p0;)rr=p0,p0=p0.replace(jN0,`${wx}$1 $2${wx}`);p0=p0.replace(zB,"").trimRight();let gr=Object.create(null),Z1=p0.replace(KB,"").replace(zB,"").trimRight(),ir;for(;ir=KB.exec(p0);){let ur=ir[2].replace(UN0,"");typeof gr[ir[1]]=="string"||Array.isArray(gr[ir[1]])?gr[ir[1]]=ZB.concat(gr[ir[1]],ur):gr[ir[1]]=ur}return{comments:Z1,pragmas:gr}}function zN0({comments:p0="",pragmas:wx={}}){let rr=` +`,gr="/**",Z1=" *",ir=" */",ur=Object.keys(wx),y1=ur.map($1=>BB($1,wx[$1])).reduce(($1,D3)=>$1.concat(D3),[]).map($1=>`${Z1} ${$1}${rr}`).join("");if(!p0){if(ur.length===0)return"";if(ur.length===1&&!Array.isArray(wx[ur[0]])){let $1=wx[ur[0]];return`${gr} ${BB(ur[0],$1)[0]}${ir}`}}let iv=p0.split(rr).map($1=>`${Z1} ${$1}`).join(rr)+rr;return gr+rr+(p0?iv:"")+(p0&&ur.length?Z1+rr:"")+y1+ir}function BB(p0,wx){return ZB.concat(wx).map(rr=>`@${p0} ${rr}`.trim())}});var RM={};JB(RM,{parsers:()=>OM});var OM={};JB(OM,{flow:()=>iC0});var iW=XB(YB(),1);function LN0(p0,wx){let rr=new SyntaxError(p0+" ("+wx.loc.start.line+":"+wx.loc.start.column+")");return Object.assign(rr,wx)}var VB=LN0;var M3=XB(FB(),1);function KN0(p0){if(!p0.startsWith("#!"))return"";let wx=p0.indexOf(` +`);return wx===-1?p0:p0.slice(0,wx)}var QB=KN0;function BN0(p0){let wx=QB(p0);wx&&(p0=p0.slice(wx.length+1));let rr=(0,M3.extract)(p0),{pragmas:gr,comments:Z1}=(0,M3.parseWithComments)(rr);return{shebang:wx,text:p0,pragmas:gr,comments:Z1}}function GB(p0){let{pragmas:wx}=BN0(p0);return Object.prototype.hasOwnProperty.call(wx,"prettier")||Object.prototype.hasOwnProperty.call(wx,"format")}function WN0(p0){return Array.isArray(p0)&&p0.length>0}var t9=WN0;function Nt(p0){var gr;let wx=p0.range?p0.range[0]:p0.start,rr=((gr=p0.declaration)==null?void 0:gr.decorators)??p0.decorators;return t9(rr)?Math.min(Nt(rr[0]),wx):wx}function ws(p0){return p0.range?p0.range[1]:p0.end}function ZN0(p0){return p0=typeof p0=="function"?{parse:p0}:p0,{astFormat:"estree",hasPragma:GB,locStart:Nt,locEnd:ws,...p0}}var qB=ZN0;function $N0(p0){return p0.charAt(0)==="#"&&p0.charAt(1)==="!"?"//"+p0.slice(2):p0}var HB=$N0;var FN0=(p0,wx,rr)=>{if(!(p0&&wx==null))return Array.isArray(wx)||typeof wx=="string"?wx[rr<0?wx.length+rr:rr]:wx.at(rr)},AM=FN0;function QN0(p0){return p0=new Set(p0),wx=>p0.has(wx==null?void 0:wx.type)}var bB=QN0;var GN0=bB(["Block","CommentBlock","MultiLine"]),P4=GN0;function qN0(p0){return P4(p0)&&p0.value[0]==="*"&&/@(?:type|satisfies)\b/.test(p0.value)}var xW=qN0;function HN0(p0){let wx=`*${p0.value}*`.split(` +`);return wx.length>1&&wx.every(rr=>rr.trimStart()[0]==="*")}var PM=HN0;var N4=null;function C4(p0){if(N4!==null&&typeof N4.property){let wx=N4;return N4=C4.prototype=null,wx}return N4=C4.prototype=p0??Object.create(null),new C4}var bN0=10;for(let p0=0;p0<=bN0;p0++)C4();function NM(p0){return C4(p0)}function xC0(p0,wx="type"){NM(p0);function rr(gr){let Z1=gr[wx],ir=p0[Z1];if(!Array.isArray(ir))throw Object.assign(new Error(`Missing visitor keys for '${Z1}'.`),{node:gr});return ir}return rr}var rW=xC0;var eW={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","assertions","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes","assertions"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes","assertions"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ImportExpression:["source","attributes"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareEnum:["id","body"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]};var rC0=rW(eW),tW=rC0;function CM(p0,wx){if(!(p0!==null&&typeof p0=="object"))return p0;if(Array.isArray(p0)){for(let gr=0;gr{var y1;(y1=ur.leadingComments)!=null&&y1.some(xW)&&ir.add(Nt(ur))}),p0=n9(p0,ur=>{if(ur.type==="ParenthesizedExpression"){let{expression:y1}=ur;if(y1.type==="TypeCastExpression")return y1.range=ur.range,y1;let iv=Nt(ur);if(!ir.has(iv))return y1.extra={...y1.extra,parenthesized:!0},y1}})}if(p0=n9(p0,ir=>{switch(ir.type){case"LogicalExpression":if(nW(ir))return IM(ir);break;case"VariableDeclaration":{let ur=AM(!1,ir.declarations,-1);ur!=null&&ur.init&&Z1(ir,ur);break}case"TSParenthesizedType":return ir.typeAnnotation;case"TSTypeParameter":if(typeof ir.name=="string"){let ur=Nt(ir);ir.name={type:"Identifier",name:ir.name,range:[ur,ur+ir.name.length]}}break;case"TopicReference":p0.extra={...p0.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":{let{exported:ur}=ir;if(rr==="meriyah"&&(ur==null?void 0:ur.type)==="Identifier"){let y1=gr.slice(Nt(ur),ws(ur));(y1.startsWith('"')||y1.startsWith("'"))&&(ir.exported={...ir.exported,type:"Literal",value:ir.exported.name,raw:y1})}break}case"TSUnionType":case"TSIntersectionType":if(ir.types.length===1)return ir.types[0];break}}),t9(p0.comments)){let ir=AM(!1,p0.comments,-1);for(let ur=p0.comments.length-2;ur>=0;ur--){let y1=p0.comments[ur];ws(y1)===Nt(ir)&&P4(y1)&&P4(ir)&&PM(y1)&&PM(ir)&&(p0.comments.splice(ur+1,1),y1.value+="*//*"+ir.value,y1.range=[Nt(y1),ws(ir)]),ir=y1}}return p0.type==="Program"&&(p0.range=[0,gr.length]),p0;function Z1(ir,ur){gr[ws(ur)]!==";"&&(ir.range=[Nt(ir),ws(ur)])}}function nW(p0){return p0.type==="LogicalExpression"&&p0.right.type==="LogicalExpression"&&p0.operator===p0.right.operator}function IM(p0){return nW(p0)?IM({type:"LogicalExpression",operator:p0.operator,left:IM({type:"LogicalExpression",operator:p0.operator,left:p0.left,right:p0.right.left,range:[Nt(p0.left),ws(p0.right.left)]}),right:p0.right.right,range:[Nt(p0),ws(p0)]}):p0}var uW=eC0;var tC0={comments:!1,enums:!0,esproposal_decorators:!0,esproposal_export_star_as:!0,tokens:!0};function nC0(p0){let{message:wx,loc:{start:rr,end:gr}}=p0;return VB(wx,{loc:{start:{line:rr.line,column:rr.column+1},end:{line:gr.line,column:gr.column+1}},cause:p0})}function uC0(p0){let wx=iW.default.parse(HB(p0),tC0),[rr]=wx.errors;if(rr)throw nC0(rr);return uW(wx,{text:p0})}var iC0=qB(uC0);var iI0=RM;export{iI0 as default,OM as parsers}; diff --git a/node_modules/prettier/plugins/glimmer.js b/node_modules/prettier/plugins/glimmer.js index 453ebc7..9859641 100644 --- a/node_modules/prettier/plugins/glimmer.js +++ b/node_modules/prettier/plugins/glimmer.js @@ -1,18 +1,18 @@ -(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.glimmer=e()}})(function(){"use strict";var Wt=Object.defineProperty;var Jn=Object.getOwnPropertyDescriptor;var Xn=Object.getOwnPropertyNames;var $n=Object.prototype.hasOwnProperty;var Kt=(t,e)=>{for(var r in e)Wt(t,r,{get:e[r],enumerable:!0})},Zn=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Xn(e))!$n.call(t,i)&&i!==r&&Wt(t,i,{get:()=>e[i],enumerable:!(n=Jn(e,i))||n.enumerable});return t};var ei=t=>Zn(Wt({},"__esModule",{value:!0}),t);var Br=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var $=(t,e,r)=>(Br(t,e,"read from private field"),r?r.call(t):e.get(t)),Rr=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},qr=(t,e,r,n)=>(Br(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);var na={};Kt(na,{languages:()=>Yn,parsers:()=>qt,printers:()=>ra});var ti=(t,e,r,n)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(r,n):r.global?e.replace(r,n):e.split(r).join(n)},jt=ti;var ze="string",We="array",Ke="cursor",De="indent",Oe="align",je="trim",Ie="group",Be="fill",Re="if-break",Qe="indent-if-break",Je="line-suffix",Xe="line-suffix-boundary",Z="line",$e="label",qe="break-parent",pt=new Set([Ke,De,Oe,je,Ie,Be,Re,Qe,Je,Xe,Z,$e,qe]);function ri(t){if(typeof t=="string")return ze;if(Array.isArray(t))return We;if(!t)return;let{type:e}=t;if(pt.has(e))return e}var Ze=ri;var ni=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function ii(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', +(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.glimmer=e()}})(function(){"use strict";var zt=Object.defineProperty;var Jn=Object.getOwnPropertyDescriptor;var Xn=Object.getOwnPropertyNames;var $n=Object.prototype.hasOwnProperty;var Wt=(t,e)=>{for(var r in e)zt(t,r,{get:e[r],enumerable:!0})},Zn=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Xn(e))!$n.call(t,i)&&i!==r&&zt(t,i,{get:()=>e[i],enumerable:!(n=Jn(e,i))||n.enumerable});return t};var ei=t=>Zn(zt({},"__esModule",{value:!0}),t);var Br=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var $=(t,e,r)=>(Br(t,e,"read from private field"),r?r.call(t):e.get(t)),Rr=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},qr=(t,e,r,n)=>(Br(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);var na={};Wt(na,{languages:()=>Yn,parsers:()=>_r,printers:()=>ra});var ti=(t,e,r,n)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(r,n):r.global?e.replace(r,n):e.split(r).join(n)},Kt=ti;var ze="string",We="array",Ke="cursor",De="indent",Oe="align",je="trim",Ie="group",Be="fill",Re="if-break",Qe="indent-if-break",Je="line-suffix",Xe="line-suffix-boundary",Z="line",$e="label",qe="break-parent",pt=new Set([Ke,De,Oe,je,Ie,Be,Re,Qe,Je,Xe,Z,$e,qe]);function ri(t){if(typeof t=="string")return ze;if(Array.isArray(t))return We;if(!t)return;let{type:e}=t;if(pt.has(e))return e}var Ze=ri;var ni=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function ii(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', Expected it to be 'string' or 'object'.`;if(Ze(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=ni([...pt].map(i=>`'${i}'`));return`Unexpected doc.type '${t.type}'. -Expected it to be ${n}.`}var Qt=class extends Error{name="InvalidDocError";constructor(e){super(ii(e)),this.doc=e}},Jt=Qt;var Vr=()=>{},Te=Vr,ft=Vr;function O(t){return Te(t),{type:De,contents:t}}function si(t,e){return Te(e),{type:Oe,contents:e,n:t}}function I(t,e={}){return Te(t),ft(e.expandedStates,!0),{type:Ie,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function Xt(t){return si(-1,t)}function $t(t){return ft(t),{type:Be,parts:t}}function Zt(t,e="",r={}){return Te(t),e!==""&&Te(e),{type:Re,breakContents:t,flatContents:e,groupId:r.groupId}}var Hr={type:qe};var ai={type:Z,hard:!0},oi={type:Z,hard:!0,literal:!0},_={type:Z},M={type:Z,soft:!0},ve=[ai,Hr],Ur=[oi,Hr];function we(t,e){Te(t),ft(e);let r=[];for(let n=0;n{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[r<0?e.length+r:r]:e.at(r)},he=li;function ci(t,e){if(typeof t=="string")return e(t);let r=new Map;return n(t);function n(s){if(r.has(s))return r.get(s);let a=i(s);return r.set(s,a),a}function i(s){switch(Ze(s)){case We:return e(s.map(n));case Be:return e({...s,parts:s.parts.map(n)});case Re:return e({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case Ie:{let{expandedStates:a,contents:l}=s;return a?(a=a.map(n),l=a[0]):l=n(l),e({...s,contents:l,expandedStates:a})}case Oe:case De:case Qe:case $e:case Je:return e({...s,contents:n(s.contents)});case ze:case Ke:case je:case Xe:case Z:case qe:return e(s);default:throw new Jt(s)}}}function Fr(t,e=Ur){return ci(t,r=>typeof r=="string"?we(e,r.split(` -`)):r)}var dt="'",Mr='"';function ui(t,e){let r=e===!0||e===dt?dt:Mr,n=r===dt?Mr:dt,i=0,s=0;for(let a of t)a===r?i++:a===n&&s++;return i>s?n:r}var mt=ui;function hi(t){return Array.isArray(t)&&t.length>0}var et=hi;var er=class extends Error{name="UnexpectedNodeError";constructor(e,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},Gr=er;function tr(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var U,rr=class{constructor(e){Rr(this,U,void 0);qr(this,U,new Set(e))}getLeadingWhitespaceCount(e){let r=$(this,U),n=0;for(let i=0;i=0&&r.has(e.charAt(i));i--)n++;return n}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return $(this,U).has(e.charAt(0))}hasTrailingWhitespace(e){return $(this,U).has(he(!1,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let n=`[${tr([...$(this,U)].join(""))}]+`,i=new RegExp(r?`(${n})`:n);return e.split(i)}hasWhitespaceCharacter(e){let r=$(this,U);return Array.prototype.some.call(e,n=>r.has(n))}hasNonWhitespaceCharacter(e){let r=$(this,U);return Array.prototype.some.call(e,n=>!r.has(n))}isWhitespaceOnly(e){let r=$(this,U);return Array.prototype.every.call(e,n=>r.has(n))}};U=new WeakMap;var Yr=rr;var pi=[" ",` -`,"\f","\r"," "],fi=new Yr(pi),G=fi;function xe(t){return t.loc.start.offset}function tt(t){return t.loc.end.offset}function zr(t,e){if(t.type==="TextNode"){let r=t.chars.trim();if(!r)return null;e.chars=G.split(r).join(" ")}t.type==="AttrNode"&&t.name.toLowerCase()==="class"&&delete e.value}zr.ignoredProperties=new Set(["loc","selfClosing"]);var Wr=zr;var Kr=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function Qr(t){return t.toUpperCase()===t}function di(t){return t.type==="ElementNode"&&typeof t.tag=="string"&&!t.tag.startsWith(":")&&(Qr(t.tag[0])||t.tag.includes("."))}var mi=new Set(Kr);function gi(t){return mi.has(t.toLowerCase())&&!Qr(t[0])}function nr(t){return t.selfClosing===!0||gi(t.tag)||di(t)&&t.children.every(e=>gt(e))}function gt(t){return t.type==="TextNode"&&!/\S/.test(t.chars)}function jr(t){return(t==null?void 0:t.type)==="MustacheCommentStatement"&&typeof t.value=="string"&&t.value.trim()==="prettier-ignore"}function Jr(t){return jr(t.node)||t.isInArray&&(t.key==="children"||t.key==="body"||t.key==="parts")&&jr(t.siblings[t.index-2])}var rt=null;function nt(t){if(rt!==null&&typeof rt.property){let e=rt;return rt=nt.prototype=null,e}return rt=nt.prototype=t??Object.create(null),new nt}var bi=10;for(let t=0;t<=bi;t++)nt();function ir(t){return nt(t)}function yi(t,e="type"){ir(t);function r(n){let i=n[e],s=t[i];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:n});return s}return r}var Xr=yi;var $r={Program:["body"],Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],PartialStatement:["name","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],PathHead:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"],NamedBlock:["attributes","modifiers","children","comments"],SimpleElement:["attributes","modifiers","children","comments"],Component:["head","attributes","modifiers","children","comments"]};var Si=Xr($r),Zr=Si;var ln=2;function Ei(t,e,r){var i,s,a,l,c,h,g,y,F;let{node:n}=t;switch(n.type){case"Block":case"Program":case"Template":return I(t.map(r,"body"));case"ElementNode":{let b=I(vi(t,r)),k=e.htmlWhitespaceSensitivity==="ignore"&&((i=t.next)==null?void 0:i.type)==="ElementNode"?M:"";if(nr(n))return[b,k];let N=[""];return n.children.length===0?[b,O(N),k]:e.htmlWhitespaceSensitivity==="ignore"?[b,O(en(t,e,r)),ve,O(N),k]:[b,O(I(en(t,e,r))),O(N),k]}case"BlockStatement":return Ci(t)?[Ai(t,r),nn(t,r,e),sn(t,r,e)]:[Pi(t,r),I([nn(t,r,e),sn(t,r,e),_i(t,r,e)])];case"ElementModifierStatement":return I(["{{",on(t,r),"}}"]);case"MustacheStatement":return I([bt(n),on(t,r),yt(n)]);case"SubExpression":return I(["(",qi(t,r),M,")"]);case"AttrNode":{let{name:b,value:k}=n,N=k.type==="TextNode";if(N&&k.chars===""&&xe(k)===tt(k))return b;let w=N?mt(k.chars,e.singleQuote):k.type==="ConcatStatement"?mt(k.parts.map(R=>R.type==="TextNode"?R.chars:"").join(""),e.singleQuote):"",se=r("value");return[b,"=",w,b==="class"&&w?I(O(se)):se,w]}case"ConcatStatement":return t.map(r,"parts");case"Hash":return we(_,t.map(r,"pairs"));case"HashPair":return[n.key,"=",r("value")];case"TextNode":{let b=jt(!1,n.chars,"{{","\\{{"),k=Di(t);if(k){if(k==="class"){let J=b.trim().split(/\s+/).join(" "),ae=!1,q=!1;return t.parent.type==="ConcatStatement"&&(((s=t.previous)==null?void 0:s.type)==="MustacheStatement"&&/^\s/.test(b)&&(ae=!0),((a=t.next)==null?void 0:a.type)==="MustacheStatement"&&/\s$/.test(b)&&J!==""&&(q=!0)),[ae?_:"",J,q?_:""]}return Fr(b)}let N=G.isWhitespaceOnly(b),{isFirst:B,isLast:w}=t;if(e.htmlWhitespaceSensitivity!=="ignore"){let J=w&&t.parent.type==="Template",ae=B&&t.parent.type==="Template";if(N){if(ae||J)return"";let A=[_],le=Ve(b);return le&&(A=it(le)),w&&(A=A.map(ct=>Xt(ct))),A}let q=G.getLeadingWhitespace(b),Ae=[];if(q){Ae=[_];let A=Ve(q);A&&(Ae=it(A)),b=b.slice(q.length)}let V=G.getTrailingWhitespace(b),oe=[];if(V){if(!J){oe=[_];let A=Ve(V);A&&(oe=it(A)),w&&(oe=oe.map(le=>Xt(le)))}b=b.slice(0,-V.length)}return[...Ae,$t(an(b)),...oe]}let se=Ve(b),R=Oi(b),Q=Ii(b);if((B||w)&&N&&(t.parent.type==="Block"||t.parent.type==="ElementNode"||t.parent.type==="Template"))return"";N&&se?(R=Math.min(se,ln),Q=0):((((l=t.next)==null?void 0:l.type)==="BlockStatement"||((c=t.next)==null?void 0:c.type)==="ElementNode")&&(Q=Math.max(Q,1)),(((h=t.previous)==null?void 0:h.type)==="BlockStatement"||((g=t.previous)==null?void 0:g.type)==="ElementNode")&&(R=Math.max(R,1)));let Ne="",Ce="";return Q===0&&((y=t.next)==null?void 0:y.type)==="MustacheStatement"&&(Ce=" "),R===0&&((F=t.previous)==null?void 0:F.type)==="MustacheStatement"&&(Ne=" "),B&&(R=0,Ne=""),w&&(Q=0,Ce=""),G.hasLeadingWhitespace(b)&&(b=Ne+G.trimStart(b)),G.hasTrailingWhitespace(b)&&(b=G.trimEnd(b)+Ce),[...it(R),$t(an(b)),...it(Q)]}case"MustacheCommentStatement":{let b=xe(n),k=tt(n),N=e.originalText.charAt(b+2)==="~",B=e.originalText.charAt(k-3)==="~",w=n.value.includes("}}")?"--":"";return["{{",N?"~":"","!",w,n.value,w,B?"~":"","}}"]}case"PathExpression":return n.original;case"BooleanLiteral":return String(n.value);case"CommentStatement":return[""];case"StringLiteral":return Bi(t,e);case"NumberLiteral":return String(n.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Gr(n,"Handlebars")}}function Ti(t,e){return xe(t)-xe(e)}function vi(t,e){let{node:r}=t,n=["attributes","modifiers","comments"].filter(s=>et(r[s])),i=n.flatMap(s=>r[s]).sort(Ti);for(let s of n)t.each(({node:a})=>{let l=i.indexOf(a);i.splice(l,1,[_,e()])},s);return et(r.blockParams)&&i.push(_,ar(r)),["<",r.tag,O(i),wi(r)]}function en(t,e,r){let{node:n}=t,i=n.children.every(s=>gt(s));return e.htmlWhitespaceSensitivity==="ignore"&&i?"":t.map(({isFirst:s})=>{let a=r();return s&&e.htmlWhitespaceSensitivity==="ignore"?[M,a]:a},"children")}function wi(t){return nr(t)?Zt([M,"/>"],[" />",M]):Zt([M,">"],">")}function bt(t){var n;let e=t.escaped===!1?"{{{":"{{",r=(n=t.strip)!=null&&n.open?"~":"";return[e,r]}function yt(t){var n;let e=t.escaped===!1?"}}}":"}}";return[(n=t.strip)!=null&&n.close?"~":"",e]}function xi(t){let e=bt(t),r=t.openStrip.open?"~":"";return[e,r,"#"]}function ki(t){let e=yt(t);return[t.openStrip.close?"~":"",e]}function tn(t){let e=bt(t),r=t.closeStrip.open?"~":"";return[e,r,"/"]}function rn(t){let e=yt(t);return[t.closeStrip.close?"~":"",e]}function cn(t){let e=bt(t),r=t.inverseStrip.open?"~":"";return[e,r]}function un(t){let e=yt(t);return[t.inverseStrip.close?"~":"",e]}function Pi(t,e){let{node:r}=t,n=[],i=St(t,e);return i&&n.push(I(i)),et(r.program.blockParams)&&n.push(ar(r.program)),I([xi(r),sr(t,e),n.length>0?O([_,we(_,n)]):"",M,ki(r)])}function Ni(t,e){return[e.htmlWhitespaceSensitivity==="ignore"?ve:"",cn(t),"else",un(t)]}function Ci(t){var n;let{grandparent:e,node:r}=t;return((n=e==null?void 0:e.inverse)==null?void 0:n.body.length)===1&&e.inverse.body[0]===r&&e.inverse.body[0].path.parts[0]===e.path.parts[0]}function Ai(t,e){let{node:r,grandparent:n}=t;return I([cn(n),["else"," ",n.inverse.body[0].path.parts[0]],O([_,I(St(t,e)),...et(r.program.blockParams)?[_,ar(r.program)]:[]]),M,un(n)])}function _i(t,e,r){let{node:n}=t;return r.htmlWhitespaceSensitivity==="ignore"?[hn(n)?M:ve,tn(n),e("path"),rn(n)]:[tn(n),e("path"),rn(n)]}function hn(t){return t.type==="BlockStatement"&&t.program.body.every(e=>gt(e))}function Li(t){return pn(t)&&t.inverse.body.length===1&&t.inverse.body[0].type==="BlockStatement"&&t.inverse.body[0].path.parts[0]===t.path.parts[0]}function pn(t){return t.type==="BlockStatement"&&t.inverse}function nn(t,e,r){let{node:n}=t;if(hn(n))return"";let i=e("program");return r.htmlWhitespaceSensitivity==="ignore"?O([ve,i]):O(i)}function sn(t,e,r){let{node:n}=t,i=e("inverse"),s=r.htmlWhitespaceSensitivity==="ignore"?[ve,i]:i;return Li(n)?s:pn(n)?[Ni(n,r),O(s)]:""}function an(t){return we(_,G.split(t))}function Di(t){for(let e=0;e<2;e++){let r=t.getParentNode(e);if((r==null?void 0:r.type)==="AttrNode")return r.name.toLowerCase()}}function Ve(t){return t=typeof t=="string"?t:"",t.split(` -`).length-1}function Oi(t){t=typeof t=="string"?t:"";let e=(t.match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"";return Ve(e)}function Ii(t){t=typeof t=="string"?t:"";let e=(t.match(/([\n\r][^\S\n\r]*)+$/g)||[])[0]||"";return Ve(e)}function it(t=0){return Array.from({length:Math.min(t,ln)}).fill(ve)}function Bi(t,e){let{node:{value:r}}=t,n=mt(r,Ri(t)?!e.singleQuote:e.singleQuote);return[n,jt(!1,r,n,`\\${n}`),n]}function Ri(t){let{ancestors:e}=t,r=e.findIndex(n=>n.type!=="SubExpression");return r!==-1&&e[r+1].type==="ConcatStatement"&&e[r+2].type==="AttrNode"}function qi(t,e){let r=sr(t,e),n=St(t,e);return n?O([r,_,I(n)]):r}function on(t,e){let r=sr(t,e),n=St(t,e);return n?[O([r,_,n]),M]:r}function sr(t,e){return e("path")}function St(t,e){var i;let{node:r}=t,n=[];return r.params.length>0&&n.push(...t.map(e,"params")),((i=r.hash)==null?void 0:i.pairs.length)>0&&n.push(e("hash")),n.length===0?"":we(_,n)}function ar(t){return["as |",t.blockParams.join(" "),"|"]}var Vi={print:Ei,massageAstNode:Wr,hasPrettierIgnore:Jr,getVisitorKeys:Zr},fn=Vi;var qt={};Kt(qt,{glimmer:()=>ta});var Hi=Object.freeze([]);function dn(){return Hi}var mo=dn(),go=dn();var pe=Object.assign;var No=function(){return typeof Symbol!="function"?!1:typeof Symbol()=="symbol"}();var T=(...t)=>t;function Fi(t){return t&-536870913}function Mi(t){return t|536870912}function Gi(t){return~t}function Yi(t){return~t}function zi(t){return t|=0,t<0?Fi(t):Gi(t)}function Wi(t){return t|=0,t>-536870913?Yi(t):Mi(t)}[1,2,3].forEach(t=>t);[1,-1].forEach(t=>Wi(zi(t)));function He(t){return t.length>0}function mn(t,e="unexpected empty list"){if(!He(t))throw new Error(e)}var Ki;if(!1){let t=n=>{let i=n.name;if(i===void 0){let s=Function.prototype.toString.call(n).match(/function (\w+)\s*\(/);i=s&&s[1]||""}return i.replace(/^bound /,"")},e=n=>{let i,s;return n.constructor&&typeof n.constructor=="function"&&(s=t(n.constructor)),"toString"in n&&n.toString!==Object.prototype.toString&&n.toString!==Function.prototype.toString&&(i=n.toString()),i&&i.match(/<.*:ember\d+>/)&&s&&s[0]!=="_"&&s.length>2&&s!=="Class"?i.replace(/<.*:/,`<${s}:`):i||s},r=n=>String(n);Ki=n=>typeof n=="function"?t(n)||"(unknown function)":typeof n=="object"&&n!==null?e(n)||"(unknown object)":r(n)}var gn=console;function bn(t,e="unexpected unreachable branch"){throw gn.log("unreachable",t),gn.log(`${e} :: ${JSON.stringify(t)} (${t})`),new Error("code reached unreachable")}var ji=function(){var t=function(ce,p,m,f){for(m=m||{},f=ce.length;f--;m[ce[f]]=p);return m},e=[2,44],r=[1,20],n=[5,14,15,19,29,34,39,44,47,48,52,56,60],i=[1,35],s=[1,38],a=[1,30],l=[1,31],c=[1,32],h=[1,33],g=[1,34],y=[1,37],F=[14,15,19,29,34,39,44,47,48,52,56,60],b=[14,15,19,29,34,44,47,48,52,56,60],k=[15,18],N=[14,15,19,29,34,47,48,52,56,60],B=[33,64,71,79,80,81,82,83,84],w=[23,33,55,64,67,71,74,79,80,81,82,83,84],se=[1,51],R=[23,33,55,64,67,71,74,79,80,81,82,83,84,86],Q=[2,43],Ne=[55,64,71,79,80,81,82,83,84],Ce=[1,58],J=[1,59],ae=[1,66],q=[33,64,71,74,79,80,81,82,83,84],Ae=[23,64,71,79,80,81,82,83,84],V=[1,76],oe=[64,67,71,79,80,81,82,83,84],A=[33,74],le=[23,33,55,67,71,74],ct=[1,106],Vt=[1,118],Lr=[71,76],Ht={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,expr:49,mustache_repetition0:50,mustache_option0:51,OPEN_UNESCAPED:52,mustache_repetition1:53,mustache_option1:54,CLOSE_UNESCAPED:55,OPEN_PARTIAL:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,sexpr:63,OPEN_SEXPR:64,sexpr_repetition0:65,sexpr_option0:66,CLOSE_SEXPR:67,hash:68,hash_repetition_plus0:69,hashSegment:70,ID:71,EQUALS:72,blockParams:73,OPEN_BLOCK_PARAMS:74,blockParams_repetition_plus0:75,CLOSE_BLOCK_PARAMS:76,path:77,dataName:78,STRING:79,NUMBER:80,BOOLEAN:81,UNDEFINED:82,NULL:83,DATA:84,pathSegments:85,SEP:86,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",52:"OPEN_UNESCAPED",55:"CLOSE_UNESCAPED",56:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",64:"OPEN_SEXPR",67:"CLOSE_SEXPR",71:"ID",72:"EQUALS",74:"OPEN_BLOCK_PARAMS",76:"CLOSE_BLOCK_PARAMS",79:"STRING",80:"NUMBER",81:"BOOLEAN",82:"UNDEFINED",83:"NULL",84:"DATA",86:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[49,1],[49,1],[63,5],[68,1],[70,3],[73,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[78,2],[77,1],[85,3],[85,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[50,0],[50,2],[51,0],[51,1],[53,0],[53,2],[54,0],[54,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[65,0],[65,2],[66,0],[66,1],[69,1],[69,2],[75,1],[75,2]],performAction:function(p,m,f,d,v,o,_e){var u=o.length-1;switch(v){case 1:return o[u-1];case 2:this.$=d.prepareProgram(o[u]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:this.$=o[u];break;case 9:this.$={type:"CommentStatement",value:d.stripComment(o[u]),strip:d.stripFlags(o[u],o[u]),loc:d.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:o[u],value:o[u],loc:d.locInfo(this._$)};break;case 11:this.$=d.prepareRawBlock(o[u-2],o[u-1],o[u],this._$);break;case 12:this.$={path:o[u-3],params:o[u-2],hash:o[u-1]};break;case 13:this.$=d.prepareBlock(o[u-3],o[u-2],o[u-1],o[u],!1,this._$);break;case 14:this.$=d.prepareBlock(o[u-3],o[u-2],o[u-1],o[u],!0,this._$);break;case 15:this.$={open:o[u-5],path:o[u-4],params:o[u-3],hash:o[u-2],blockParams:o[u-1],strip:d.stripFlags(o[u-5],o[u])};break;case 16:case 17:this.$={path:o[u-4],params:o[u-3],hash:o[u-2],blockParams:o[u-1],strip:d.stripFlags(o[u-5],o[u])};break;case 18:this.$={strip:d.stripFlags(o[u-1],o[u-1]),program:o[u]};break;case 19:var ue=d.prepareBlock(o[u-2],o[u-1],o[u],o[u],!1,this._$),Ye=d.prepareProgram([ue],o[u-1].loc);Ye.chained=!0,this.$={strip:o[u-2].strip,program:Ye,chain:!0};break;case 21:this.$={path:o[u-1],strip:d.stripFlags(o[u-2],o[u])};break;case 22:case 23:this.$=d.prepareMustache(o[u-3],o[u-2],o[u-1],o[u-4],d.stripFlags(o[u-4],o[u]),this._$);break;case 24:this.$={type:"PartialStatement",name:o[u-3],params:o[u-2],hash:o[u-1],indent:"",strip:d.stripFlags(o[u-4],o[u]),loc:d.locInfo(this._$)};break;case 25:this.$=d.preparePartialBlock(o[u-2],o[u-1],o[u],this._$);break;case 26:this.$={path:o[u-3],params:o[u-2],hash:o[u-1],strip:d.stripFlags(o[u-4],o[u])};break;case 29:this.$={type:"SubExpression",path:o[u-3],params:o[u-2],hash:o[u-1],loc:d.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:o[u],loc:d.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:d.id(o[u-2]),value:o[u],loc:d.locInfo(this._$)};break;case 32:this.$=d.id(o[u-1]);break;case 35:this.$={type:"StringLiteral",value:o[u],original:o[u],loc:d.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(o[u]),original:Number(o[u]),loc:d.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:o[u]==="true",original:o[u]==="true",loc:d.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:d.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:d.locInfo(this._$)};break;case 40:this.$=d.preparePath(!0,o[u],this._$);break;case 41:this.$=d.preparePath(!1,o[u],this._$);break;case 42:o[u-2].push({part:d.id(o[u]),original:o[u],separator:o[u-1]}),this.$=o[u-2];break;case 43:this.$=[{part:d.id(o[u]),original:o[u]}];break;case 44:case 46:case 48:case 56:case 62:case 68:case 76:case 80:case 84:case 88:case 92:this.$=[];break;case 45:case 47:case 49:case 57:case 63:case 69:case 77:case 81:case 85:case 89:case 93:case 97:case 99:o[u-1].push(o[u]);break;case 96:case 98:this.$=[o[u]];break}},table:[t([5,14,15,19,29,34,48,52,56,60],e,{3:1,4:2,6:3}),{1:[3]},{5:[1,4]},t([5,39,44,47],[2,2],{7:5,8:6,9:7,10:8,11:9,12:10,13:11,24:15,27:16,16:17,59:19,14:[1,12],15:r,19:[1,23],29:[1,21],34:[1,22],48:[1,13],52:[1,14],56:[1,18],60:[1,24]}),{1:[2,1]},t(n,[2,45]),t(n,[2,3]),t(n,[2,4]),t(n,[2,5]),t(n,[2,6]),t(n,[2,7]),t(n,[2,8]),t(n,[2,9]),{20:26,49:25,63:27,64:i,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{20:26,49:39,63:27,64:i,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(F,e,{6:3,4:40}),t(b,e,{6:3,4:41}),t(k,[2,46],{17:42}),{20:26,49:43,63:27,64:i,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(N,e,{6:3,4:44}),t([5,14,15,18,19,29,34,39,44,47,48,52,56,60],[2,10]),{20:45,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{20:46,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{20:47,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{20:26,49:48,63:27,64:i,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(B,[2,76],{50:49}),t(w,[2,27]),t(w,[2,28]),t(w,[2,33]),t(w,[2,34]),t(w,[2,35]),t(w,[2,36]),t(w,[2,37]),t(w,[2,38]),t(w,[2,39]),{20:26,49:50,63:27,64:i,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(w,[2,41],{86:se}),{71:s,85:52},t(R,Q),t(Ne,[2,80],{53:53}),{25:54,38:56,39:Ce,43:57,44:J,45:55,47:[2,52]},{28:60,43:61,44:J,47:[2,54]},{13:63,15:r,18:[1,62]},t(B,[2,84],{57:64}),{26:65,47:ae},t(q,[2,56],{30:67}),t(q,[2,62],{35:68}),t(Ae,[2,48],{21:69}),t(B,[2,88],{61:70}),{20:26,33:[2,78],49:72,51:71,63:27,64:i,68:73,69:74,70:75,71:V,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(oe,[2,92],{65:77}),{71:[1,78]},t(w,[2,40],{86:se}),{20:26,49:80,54:79,55:[2,82],63:27,64:i,68:81,69:74,70:75,71:V,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{26:82,47:ae},{47:[2,53]},t(F,e,{6:3,4:83}),{47:[2,20]},{20:84,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(N,e,{6:3,4:85}),{26:86,47:ae},{47:[2,55]},t(n,[2,11]),t(k,[2,47]),{20:26,33:[2,86],49:88,58:87,63:27,64:i,68:89,69:74,70:75,71:V,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(n,[2,25]),{20:90,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(A,[2,58],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,31:91,49:92,68:93,64:i,71:V,79:a,80:l,81:c,82:h,83:g,84:y}),t(A,[2,64],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,36:94,49:95,68:96,64:i,71:V,79:a,80:l,81:c,82:h,83:g,84:y}),{20:26,22:97,23:[2,50],49:98,63:27,64:i,68:99,69:74,70:75,71:V,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{20:26,33:[2,90],49:101,62:100,63:27,64:i,68:102,69:74,70:75,71:V,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{33:[1,103]},t(B,[2,77]),{33:[2,79]},t([23,33,55,67,74],[2,30],{70:104,71:[1,105]}),t(le,[2,96]),t(R,Q,{72:ct}),{20:26,49:108,63:27,64:i,66:107,67:[2,94],68:109,69:74,70:75,71:V,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(R,[2,42]),{55:[1,110]},t(Ne,[2,81]),{55:[2,83]},t(n,[2,13]),{38:56,39:Ce,43:57,44:J,45:112,46:111,47:[2,74]},t(q,[2,68],{40:113}),{47:[2,18]},t(n,[2,14]),{33:[1,114]},t(B,[2,85]),{33:[2,87]},{33:[1,115]},{32:116,33:[2,60],73:117,74:Vt},t(q,[2,57]),t(A,[2,59]),{33:[2,66],37:119,73:120,74:Vt},t(q,[2,63]),t(A,[2,65]),{23:[1,121]},t(Ae,[2,49]),{23:[2,51]},{33:[1,122]},t(B,[2,89]),{33:[2,91]},t(n,[2,22]),t(le,[2,97]),{72:ct},{20:26,49:123,63:27,64:i,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{67:[1,124]},t(oe,[2,93]),{67:[2,95]},t(n,[2,23]),{47:[2,19]},{47:[2,75]},t(A,[2,70],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,41:125,49:126,68:127,64:i,71:V,79:a,80:l,81:c,82:h,83:g,84:y}),t(n,[2,24]),t(n,[2,21]),{33:[1,128]},{33:[2,61]},{71:[1,130],75:129},{33:[1,131]},{33:[2,67]},t(k,[2,12]),t(N,[2,26]),t(le,[2,31]),t(w,[2,29]),{33:[2,72],42:132,73:133,74:Vt},t(q,[2,69]),t(A,[2,71]),t(F,[2,15]),{71:[1,135],76:[1,134]},t(Lr,[2,98]),t(b,[2,16]),{33:[1,136]},{33:[2,73]},{33:[2,32]},t(Lr,[2,99]),t(F,[2,17])],defaultActions:{4:[2,1],55:[2,53],57:[2,20],61:[2,55],73:[2,79],81:[2,83],85:[2,18],89:[2,87],99:[2,51],102:[2,91],109:[2,95],111:[2,19],112:[2,75],117:[2,61],120:[2,67],133:[2,73],134:[2,32]},parseError:function(p,m){if(m.recoverable)this.trace(p);else{var f=new Error(p);throw f.hash=m,f}},parse:function(p){var m=this,f=[0],d=[],v=[null],o=[],_e=this.table,u="",ue=0,Ye=0,Dr=0,Wn=2,Or=1,Kn=o.slice.call(arguments,1),C=Object.create(this.lexer),Se={yy:{}};for(var Ft in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ft)&&(Se.yy[Ft]=this.yy[Ft]);C.setInput(p,Se.yy),Se.yy.lexer=C,Se.yy.parser=this,typeof C.yylloc>"u"&&(C.yylloc={});var Mt=C.yylloc;o.push(Mt);var jn=C.options&&C.options.ranges;typeof Se.yy.parseError=="function"?this.parseError=Se.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ia(W){f.length=f.length-2*W,v.length=v.length-W,o.length=o.length-W}e:var Qn=function(){var W;return W=C.lex()||Or,typeof W!="number"&&(W=m.symbols_[W]||W),W};for(var D,Gt,Ee,H,sa,Yt,Le={},ut,X,Ir,ht;;){if(Ee=f[f.length-1],this.defaultActions[Ee]?H=this.defaultActions[Ee]:((D===null||typeof D>"u")&&(D=Qn()),H=_e[Ee]&&_e[Ee][D]),typeof H>"u"||!H.length||!H[0]){var zt="";ht=[];for(ut in _e[Ee])this.terminals_[ut]&&ut>Wn&&ht.push("'"+this.terminals_[ut]+"'");C.showPosition?zt="Parse error on line "+(ue+1)+`: +Expected it to be ${n}.`}var jt=class extends Error{name="InvalidDocError";constructor(e){super(ii(e)),this.doc=e}},Qt=jt;var Vr=()=>{},Te=Vr,ft=Vr;function O(t){return Te(t),{type:De,contents:t}}function si(t,e){return Te(e),{type:Oe,contents:e,n:t}}function I(t,e={}){return Te(t),ft(e.expandedStates,!0),{type:Ie,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function Jt(t){return si(-1,t)}function Xt(t){return ft(t),{type:Be,parts:t}}function $t(t,e="",r={}){return Te(t),e!==""&&Te(e),{type:Re,breakContents:t,flatContents:e,groupId:r.groupId}}var Hr={type:qe};var ai={type:Z,hard:!0},oi={type:Z,hard:!0,literal:!0},_={type:Z},M={type:Z,soft:!0},ve=[ai,Hr],Ur=[oi,Hr];function we(t,e){Te(t),ft(e);let r=[];for(let n=0;n{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[r<0?e.length+r:r]:e.at(r)},he=li;function ci(t,e){if(typeof t=="string")return e(t);let r=new Map;return n(t);function n(s){if(r.has(s))return r.get(s);let a=i(s);return r.set(s,a),a}function i(s){switch(Ze(s)){case We:return e(s.map(n));case Be:return e({...s,parts:s.parts.map(n)});case Re:return e({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case Ie:{let{expandedStates:a,contents:l}=s;return a?(a=a.map(n),l=a[0]):l=n(l),e({...s,contents:l,expandedStates:a})}case Oe:case De:case Qe:case $e:case Je:return e({...s,contents:n(s.contents)});case ze:case Ke:case je:case Xe:case Z:case qe:return e(s);default:throw new Qt(s)}}}function Fr(t,e=Ur){return ci(t,r=>typeof r=="string"?we(e,r.split(` +`)):r)}var dt="'",Mr='"';function ui(t,e){let r=e===!0||e===dt?dt:Mr,n=r===dt?Mr:dt,i=0,s=0;for(let a of t)a===r?i++:a===n&&s++;return i>s?n:r}var mt=ui;function hi(t){return Array.isArray(t)&&t.length>0}var et=hi;var Zt=class extends Error{name="UnexpectedNodeError";constructor(e,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},Gr=Zt;function er(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var U,tr=class{constructor(e){Rr(this,U,void 0);qr(this,U,new Set(e))}getLeadingWhitespaceCount(e){let r=$(this,U),n=0;for(let i=0;i=0&&r.has(e.charAt(i));i--)n++;return n}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return $(this,U).has(e.charAt(0))}hasTrailingWhitespace(e){return $(this,U).has(he(!1,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let n=`[${er([...$(this,U)].join(""))}]+`,i=new RegExp(r?`(${n})`:n);return e.split(i)}hasWhitespaceCharacter(e){let r=$(this,U);return Array.prototype.some.call(e,n=>r.has(n))}hasNonWhitespaceCharacter(e){let r=$(this,U);return Array.prototype.some.call(e,n=>!r.has(n))}isWhitespaceOnly(e){let r=$(this,U);return Array.prototype.every.call(e,n=>r.has(n))}};U=new WeakMap;var Yr=tr;var pi=[" ",` +`,"\f","\r"," "],fi=new Yr(pi),G=fi;function xe(t){return t.loc.start.offset}function tt(t){return t.loc.end.offset}function zr(t,e){if(t.type==="TextNode"){let r=t.chars.trim();if(!r)return null;e.chars=G.split(r).join(" ")}t.type==="AttrNode"&&t.name.toLowerCase()==="class"&&delete e.value}zr.ignoredProperties=new Set(["loc","selfClosing"]);var Wr=zr;var Kr=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function Qr(t){return t.toUpperCase()===t}function di(t){return t.type==="ElementNode"&&typeof t.tag=="string"&&!t.tag.startsWith(":")&&(Qr(t.tag[0])||t.tag.includes("."))}var mi=new Set(Kr);function gi(t){return mi.has(t.toLowerCase())&&!Qr(t[0])}function rr(t){return t.selfClosing===!0||gi(t.tag)||di(t)&&t.children.every(e=>gt(e))}function gt(t){return t.type==="TextNode"&&!/\S/.test(t.chars)}function jr(t){return(t==null?void 0:t.type)==="MustacheCommentStatement"&&typeof t.value=="string"&&t.value.trim()==="prettier-ignore"}function Jr(t){return jr(t.node)||t.isInArray&&(t.key==="children"||t.key==="body"||t.key==="parts")&&jr(t.siblings[t.index-2])}var rt=null;function nt(t){if(rt!==null&&typeof rt.property){let e=rt;return rt=nt.prototype=null,e}return rt=nt.prototype=t??Object.create(null),new nt}var bi=10;for(let t=0;t<=bi;t++)nt();function nr(t){return nt(t)}function yi(t,e="type"){nr(t);function r(n){let i=n[e],s=t[i];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:n});return s}return r}var Xr=yi;var $r={Program:["body"],Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],PartialStatement:["name","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],PathHead:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"],NamedBlock:["attributes","modifiers","children","comments"],SimpleElement:["attributes","modifiers","children","comments"],Component:["head","attributes","modifiers","children","comments"]};var Si=Xr($r),Zr=Si;var ln=2;function Ei(t,e,r){var i,s,a,l,c,h,g,y,F;let{node:n}=t;switch(n.type){case"Block":case"Program":case"Template":return I(t.map(r,"body"));case"ElementNode":{let b=I(vi(t,r)),k=e.htmlWhitespaceSensitivity==="ignore"&&((i=t.next)==null?void 0:i.type)==="ElementNode"?M:"";if(rr(n))return[b,k];let N=[""];return n.children.length===0?[b,O(N),k]:e.htmlWhitespaceSensitivity==="ignore"?[b,O(en(t,e,r)),ve,O(N),k]:[b,O(I(en(t,e,r))),O(N),k]}case"BlockStatement":return Ci(t)?[Ai(t,r),nn(t,r,e),sn(t,r,e)]:[Pi(t,r),I([nn(t,r,e),sn(t,r,e),_i(t,r,e)])];case"ElementModifierStatement":return I(["{{",on(t,r),"}}"]);case"MustacheStatement":return I([bt(n),on(t,r),yt(n)]);case"SubExpression":return I(["(",qi(t,r),M,")"]);case"AttrNode":{let{name:b,value:k}=n,N=k.type==="TextNode";if(N&&k.chars===""&&xe(k)===tt(k))return b;let w=N?mt(k.chars,e.singleQuote):k.type==="ConcatStatement"?mt(k.parts.map(R=>R.type==="TextNode"?R.chars:"").join(""),e.singleQuote):"",se=r("value");return[b,"=",w,b==="class"&&w?I(O(se)):se,w]}case"ConcatStatement":return t.map(r,"parts");case"Hash":return we(_,t.map(r,"pairs"));case"HashPair":return[n.key,"=",r("value")];case"TextNode":{let b=Kt(!1,n.chars,"{{","\\{{"),k=Di(t);if(k){if(k==="class"){let J=b.trim().split(/\s+/).join(" "),ae=!1,q=!1;return t.parent.type==="ConcatStatement"&&(((s=t.previous)==null?void 0:s.type)==="MustacheStatement"&&/^\s/.test(b)&&(ae=!0),((a=t.next)==null?void 0:a.type)==="MustacheStatement"&&/\s$/.test(b)&&J!==""&&(q=!0)),[ae?_:"",J,q?_:""]}return Fr(b)}let N=G.isWhitespaceOnly(b),{isFirst:B,isLast:w}=t;if(e.htmlWhitespaceSensitivity!=="ignore"){let J=w&&t.parent.type==="Template",ae=B&&t.parent.type==="Template";if(N){if(ae||J)return"";let A=[_],le=Ve(b);return le&&(A=it(le)),w&&(A=A.map(ct=>Jt(ct))),A}let q=G.getLeadingWhitespace(b),Ae=[];if(q){Ae=[_];let A=Ve(q);A&&(Ae=it(A)),b=b.slice(q.length)}let V=G.getTrailingWhitespace(b),oe=[];if(V){if(!J){oe=[_];let A=Ve(V);A&&(oe=it(A)),w&&(oe=oe.map(le=>Jt(le)))}b=b.slice(0,-V.length)}return[...Ae,Xt(an(b)),...oe]}let se=Ve(b),R=Oi(b),Q=Ii(b);if((B||w)&&N&&(t.parent.type==="Block"||t.parent.type==="ElementNode"||t.parent.type==="Template"))return"";N&&se?(R=Math.min(se,ln),Q=0):((((l=t.next)==null?void 0:l.type)==="BlockStatement"||((c=t.next)==null?void 0:c.type)==="ElementNode")&&(Q=Math.max(Q,1)),(((h=t.previous)==null?void 0:h.type)==="BlockStatement"||((g=t.previous)==null?void 0:g.type)==="ElementNode")&&(R=Math.max(R,1)));let Ne="",Ce="";return Q===0&&((y=t.next)==null?void 0:y.type)==="MustacheStatement"&&(Ce=" "),R===0&&((F=t.previous)==null?void 0:F.type)==="MustacheStatement"&&(Ne=" "),B&&(R=0,Ne=""),w&&(Q=0,Ce=""),G.hasLeadingWhitespace(b)&&(b=Ne+G.trimStart(b)),G.hasTrailingWhitespace(b)&&(b=G.trimEnd(b)+Ce),[...it(R),Xt(an(b)),...it(Q)]}case"MustacheCommentStatement":{let b=xe(n),k=tt(n),N=e.originalText.charAt(b+2)==="~",B=e.originalText.charAt(k-3)==="~",w=n.value.includes("}}")?"--":"";return["{{",N?"~":"","!",w,n.value,w,B?"~":"","}}"]}case"PathExpression":return n.original;case"BooleanLiteral":return String(n.value);case"CommentStatement":return[""];case"StringLiteral":return Bi(t,e);case"NumberLiteral":return String(n.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Gr(n,"Handlebars")}}function Ti(t,e){return xe(t)-xe(e)}function vi(t,e){let{node:r}=t,n=["attributes","modifiers","comments"].filter(s=>et(r[s])),i=n.flatMap(s=>r[s]).sort(Ti);for(let s of n)t.each(({node:a})=>{let l=i.indexOf(a);i.splice(l,1,[_,e()])},s);return et(r.blockParams)&&i.push(_,sr(r)),["<",r.tag,O(i),wi(r)]}function en(t,e,r){let{node:n}=t,i=n.children.every(s=>gt(s));return e.htmlWhitespaceSensitivity==="ignore"&&i?"":t.map(({isFirst:s})=>{let a=r();return s&&e.htmlWhitespaceSensitivity==="ignore"?[M,a]:a},"children")}function wi(t){return rr(t)?$t([M,"/>"],[" />",M]):$t([M,">"],">")}function bt(t){var n;let e=t.escaped===!1?"{{{":"{{",r=(n=t.strip)!=null&&n.open?"~":"";return[e,r]}function yt(t){var n;let e=t.escaped===!1?"}}}":"}}";return[(n=t.strip)!=null&&n.close?"~":"",e]}function xi(t){let e=bt(t),r=t.openStrip.open?"~":"";return[e,r,"#"]}function ki(t){let e=yt(t);return[t.openStrip.close?"~":"",e]}function tn(t){let e=bt(t),r=t.closeStrip.open?"~":"";return[e,r,"/"]}function rn(t){let e=yt(t);return[t.closeStrip.close?"~":"",e]}function cn(t){let e=bt(t),r=t.inverseStrip.open?"~":"";return[e,r]}function un(t){let e=yt(t);return[t.inverseStrip.close?"~":"",e]}function Pi(t,e){let{node:r}=t,n=[],i=St(t,e);return i&&n.push(I(i)),et(r.program.blockParams)&&n.push(sr(r.program)),I([xi(r),ir(t,e),n.length>0?O([_,we(_,n)]):"",M,ki(r)])}function Ni(t,e){return[e.htmlWhitespaceSensitivity==="ignore"?ve:"",cn(t),"else",un(t)]}function Ci(t){var n;let{grandparent:e,node:r}=t;return((n=e==null?void 0:e.inverse)==null?void 0:n.body.length)===1&&e.inverse.body[0]===r&&e.inverse.body[0].path.parts[0]===e.path.parts[0]}function Ai(t,e){let{node:r,grandparent:n}=t;return I([cn(n),["else"," ",n.inverse.body[0].path.parts[0]],O([_,I(St(t,e)),...et(r.program.blockParams)?[_,sr(r.program)]:[]]),M,un(n)])}function _i(t,e,r){let{node:n}=t;return r.htmlWhitespaceSensitivity==="ignore"?[hn(n)?M:ve,tn(n),e("path"),rn(n)]:[tn(n),e("path"),rn(n)]}function hn(t){return t.type==="BlockStatement"&&t.program.body.every(e=>gt(e))}function Li(t){return pn(t)&&t.inverse.body.length===1&&t.inverse.body[0].type==="BlockStatement"&&t.inverse.body[0].path.parts[0]===t.path.parts[0]}function pn(t){return t.type==="BlockStatement"&&t.inverse}function nn(t,e,r){let{node:n}=t;if(hn(n))return"";let i=e("program");return r.htmlWhitespaceSensitivity==="ignore"?O([ve,i]):O(i)}function sn(t,e,r){let{node:n}=t,i=e("inverse"),s=r.htmlWhitespaceSensitivity==="ignore"?[ve,i]:i;return Li(n)?s:pn(n)?[Ni(n,r),O(s)]:""}function an(t){return we(_,G.split(t))}function Di(t){for(let e=0;e<2;e++){let r=t.getParentNode(e);if((r==null?void 0:r.type)==="AttrNode")return r.name.toLowerCase()}}function Ve(t){return t=typeof t=="string"?t:"",t.split(` +`).length-1}function Oi(t){t=typeof t=="string"?t:"";let e=(t.match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"";return Ve(e)}function Ii(t){t=typeof t=="string"?t:"";let e=(t.match(/([\n\r][^\S\n\r]*)+$/g)||[])[0]||"";return Ve(e)}function it(t=0){return Array.from({length:Math.min(t,ln)}).fill(ve)}function Bi(t,e){let{node:{value:r}}=t,n=mt(r,Ri(t)?!e.singleQuote:e.singleQuote);return[n,Kt(!1,r,n,`\\${n}`),n]}function Ri(t){let{ancestors:e}=t,r=e.findIndex(n=>n.type!=="SubExpression");return r!==-1&&e[r+1].type==="ConcatStatement"&&e[r+2].type==="AttrNode"}function qi(t,e){let r=ir(t,e),n=St(t,e);return n?O([r,_,I(n)]):r}function on(t,e){let r=ir(t,e),n=St(t,e);return n?[O([r,_,n]),M]:r}function ir(t,e){return e("path")}function St(t,e){var i;let{node:r}=t,n=[];return r.params.length>0&&n.push(...t.map(e,"params")),((i=r.hash)==null?void 0:i.pairs.length)>0&&n.push(e("hash")),n.length===0?"":we(_,n)}function sr(t){return["as |",t.blockParams.join(" "),"|"]}var Vi={print:Ei,massageAstNode:Wr,hasPrettierIgnore:Jr,getVisitorKeys:Zr},fn=Vi;var _r={};Wt(_r,{glimmer:()=>ta});var Hi=Object.freeze([]);function dn(){return Hi}var mo=dn(),go=dn();var pe=Object.assign;var No=function(){return typeof Symbol!="function"?!1:typeof Symbol()=="symbol"}();var T=(...t)=>t;function Fi(t){return t&-536870913}function Mi(t){return t|536870912}function Gi(t){return~t}function Yi(t){return~t}function zi(t){return t|=0,t<0?Fi(t):Gi(t)}function Wi(t){return t|=0,t>-536870913?Yi(t):Mi(t)}[1,2,3].forEach(t=>t);[1,-1].forEach(t=>Wi(zi(t)));function He(t){return t.length>0}function mn(t,e="unexpected empty list"){if(!He(t))throw new Error(e)}var Ki;if(!1){let t=n=>{let i=n.name;if(i===void 0){let s=Function.prototype.toString.call(n).match(/function (\w+)\s*\(/);i=s&&s[1]||""}return i.replace(/^bound /,"")},e=n=>{let i,s;return n.constructor&&typeof n.constructor=="function"&&(s=t(n.constructor)),"toString"in n&&n.toString!==Object.prototype.toString&&n.toString!==Function.prototype.toString&&(i=n.toString()),i&&i.match(/<.*:ember\d+>/)&&s&&s[0]!=="_"&&s.length>2&&s!=="Class"?i.replace(/<.*:/,`<${s}:`):i||s},r=n=>String(n);Ki=n=>typeof n=="function"?t(n)||"(unknown function)":typeof n=="object"&&n!==null?e(n)||"(unknown object)":r(n)}var gn=console;function bn(t,e="unexpected unreachable branch"){throw gn.log("unreachable",t),gn.log(`${e} :: ${JSON.stringify(t)} (${t})`),new Error("code reached unreachable")}var ji=function(){var t=function(ce,p,m,f){for(m=m||{},f=ce.length;f--;m[ce[f]]=p);return m},e=[2,44],r=[1,20],n=[5,14,15,19,29,34,39,44,47,48,52,56,60],i=[1,35],s=[1,38],a=[1,30],l=[1,31],c=[1,32],h=[1,33],g=[1,34],y=[1,37],F=[14,15,19,29,34,39,44,47,48,52,56,60],b=[14,15,19,29,34,44,47,48,52,56,60],k=[15,18],N=[14,15,19,29,34,47,48,52,56,60],B=[33,64,71,79,80,81,82,83,84],w=[23,33,55,64,67,71,74,79,80,81,82,83,84],se=[1,51],R=[23,33,55,64,67,71,74,79,80,81,82,83,84,86],Q=[2,43],Ne=[55,64,71,79,80,81,82,83,84],Ce=[1,58],J=[1,59],ae=[1,66],q=[33,64,71,74,79,80,81,82,83,84],Ae=[23,64,71,79,80,81,82,83,84],V=[1,76],oe=[64,67,71,79,80,81,82,83,84],A=[33,74],le=[23,33,55,67,71,74],ct=[1,106],qt=[1,118],Lr=[71,76],Vt={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,expr:49,mustache_repetition0:50,mustache_option0:51,OPEN_UNESCAPED:52,mustache_repetition1:53,mustache_option1:54,CLOSE_UNESCAPED:55,OPEN_PARTIAL:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,sexpr:63,OPEN_SEXPR:64,sexpr_repetition0:65,sexpr_option0:66,CLOSE_SEXPR:67,hash:68,hash_repetition_plus0:69,hashSegment:70,ID:71,EQUALS:72,blockParams:73,OPEN_BLOCK_PARAMS:74,blockParams_repetition_plus0:75,CLOSE_BLOCK_PARAMS:76,path:77,dataName:78,STRING:79,NUMBER:80,BOOLEAN:81,UNDEFINED:82,NULL:83,DATA:84,pathSegments:85,SEP:86,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",52:"OPEN_UNESCAPED",55:"CLOSE_UNESCAPED",56:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",64:"OPEN_SEXPR",67:"CLOSE_SEXPR",71:"ID",72:"EQUALS",74:"OPEN_BLOCK_PARAMS",76:"CLOSE_BLOCK_PARAMS",79:"STRING",80:"NUMBER",81:"BOOLEAN",82:"UNDEFINED",83:"NULL",84:"DATA",86:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[49,1],[49,1],[63,5],[68,1],[70,3],[73,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[78,2],[77,1],[85,3],[85,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[50,0],[50,2],[51,0],[51,1],[53,0],[53,2],[54,0],[54,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[65,0],[65,2],[66,0],[66,1],[69,1],[69,2],[75,1],[75,2]],performAction:function(p,m,f,d,v,o,_e){var u=o.length-1;switch(v){case 1:return o[u-1];case 2:this.$=d.prepareProgram(o[u]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:this.$=o[u];break;case 9:this.$={type:"CommentStatement",value:d.stripComment(o[u]),strip:d.stripFlags(o[u],o[u]),loc:d.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:o[u],value:o[u],loc:d.locInfo(this._$)};break;case 11:this.$=d.prepareRawBlock(o[u-2],o[u-1],o[u],this._$);break;case 12:this.$={path:o[u-3],params:o[u-2],hash:o[u-1]};break;case 13:this.$=d.prepareBlock(o[u-3],o[u-2],o[u-1],o[u],!1,this._$);break;case 14:this.$=d.prepareBlock(o[u-3],o[u-2],o[u-1],o[u],!0,this._$);break;case 15:this.$={open:o[u-5],path:o[u-4],params:o[u-3],hash:o[u-2],blockParams:o[u-1],strip:d.stripFlags(o[u-5],o[u])};break;case 16:case 17:this.$={path:o[u-4],params:o[u-3],hash:o[u-2],blockParams:o[u-1],strip:d.stripFlags(o[u-5],o[u])};break;case 18:this.$={strip:d.stripFlags(o[u-1],o[u-1]),program:o[u]};break;case 19:var ue=d.prepareBlock(o[u-2],o[u-1],o[u],o[u],!1,this._$),Ye=d.prepareProgram([ue],o[u-1].loc);Ye.chained=!0,this.$={strip:o[u-2].strip,program:Ye,chain:!0};break;case 21:this.$={path:o[u-1],strip:d.stripFlags(o[u-2],o[u])};break;case 22:case 23:this.$=d.prepareMustache(o[u-3],o[u-2],o[u-1],o[u-4],d.stripFlags(o[u-4],o[u]),this._$);break;case 24:this.$={type:"PartialStatement",name:o[u-3],params:o[u-2],hash:o[u-1],indent:"",strip:d.stripFlags(o[u-4],o[u]),loc:d.locInfo(this._$)};break;case 25:this.$=d.preparePartialBlock(o[u-2],o[u-1],o[u],this._$);break;case 26:this.$={path:o[u-3],params:o[u-2],hash:o[u-1],strip:d.stripFlags(o[u-4],o[u])};break;case 29:this.$={type:"SubExpression",path:o[u-3],params:o[u-2],hash:o[u-1],loc:d.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:o[u],loc:d.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:d.id(o[u-2]),value:o[u],loc:d.locInfo(this._$)};break;case 32:this.$=d.id(o[u-1]);break;case 35:this.$={type:"StringLiteral",value:o[u],original:o[u],loc:d.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(o[u]),original:Number(o[u]),loc:d.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:o[u]==="true",original:o[u]==="true",loc:d.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:d.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:d.locInfo(this._$)};break;case 40:this.$=d.preparePath(!0,o[u],this._$);break;case 41:this.$=d.preparePath(!1,o[u],this._$);break;case 42:o[u-2].push({part:d.id(o[u]),original:o[u],separator:o[u-1]}),this.$=o[u-2];break;case 43:this.$=[{part:d.id(o[u]),original:o[u]}];break;case 44:case 46:case 48:case 56:case 62:case 68:case 76:case 80:case 84:case 88:case 92:this.$=[];break;case 45:case 47:case 49:case 57:case 63:case 69:case 77:case 81:case 85:case 89:case 93:case 97:case 99:o[u-1].push(o[u]);break;case 96:case 98:this.$=[o[u]];break}},table:[t([5,14,15,19,29,34,48,52,56,60],e,{3:1,4:2,6:3}),{1:[3]},{5:[1,4]},t([5,39,44,47],[2,2],{7:5,8:6,9:7,10:8,11:9,12:10,13:11,24:15,27:16,16:17,59:19,14:[1,12],15:r,19:[1,23],29:[1,21],34:[1,22],48:[1,13],52:[1,14],56:[1,18],60:[1,24]}),{1:[2,1]},t(n,[2,45]),t(n,[2,3]),t(n,[2,4]),t(n,[2,5]),t(n,[2,6]),t(n,[2,7]),t(n,[2,8]),t(n,[2,9]),{20:26,49:25,63:27,64:i,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{20:26,49:39,63:27,64:i,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(F,e,{6:3,4:40}),t(b,e,{6:3,4:41}),t(k,[2,46],{17:42}),{20:26,49:43,63:27,64:i,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(N,e,{6:3,4:44}),t([5,14,15,18,19,29,34,39,44,47,48,52,56,60],[2,10]),{20:45,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{20:46,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{20:47,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{20:26,49:48,63:27,64:i,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(B,[2,76],{50:49}),t(w,[2,27]),t(w,[2,28]),t(w,[2,33]),t(w,[2,34]),t(w,[2,35]),t(w,[2,36]),t(w,[2,37]),t(w,[2,38]),t(w,[2,39]),{20:26,49:50,63:27,64:i,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(w,[2,41],{86:se}),{71:s,85:52},t(R,Q),t(Ne,[2,80],{53:53}),{25:54,38:56,39:Ce,43:57,44:J,45:55,47:[2,52]},{28:60,43:61,44:J,47:[2,54]},{13:63,15:r,18:[1,62]},t(B,[2,84],{57:64}),{26:65,47:ae},t(q,[2,56],{30:67}),t(q,[2,62],{35:68}),t(Ae,[2,48],{21:69}),t(B,[2,88],{61:70}),{20:26,33:[2,78],49:72,51:71,63:27,64:i,68:73,69:74,70:75,71:V,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(oe,[2,92],{65:77}),{71:[1,78]},t(w,[2,40],{86:se}),{20:26,49:80,54:79,55:[2,82],63:27,64:i,68:81,69:74,70:75,71:V,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{26:82,47:ae},{47:[2,53]},t(F,e,{6:3,4:83}),{47:[2,20]},{20:84,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(N,e,{6:3,4:85}),{26:86,47:ae},{47:[2,55]},t(n,[2,11]),t(k,[2,47]),{20:26,33:[2,86],49:88,58:87,63:27,64:i,68:89,69:74,70:75,71:V,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(n,[2,25]),{20:90,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(A,[2,58],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,31:91,49:92,68:93,64:i,71:V,79:a,80:l,81:c,82:h,83:g,84:y}),t(A,[2,64],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,36:94,49:95,68:96,64:i,71:V,79:a,80:l,81:c,82:h,83:g,84:y}),{20:26,22:97,23:[2,50],49:98,63:27,64:i,68:99,69:74,70:75,71:V,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{20:26,33:[2,90],49:101,62:100,63:27,64:i,68:102,69:74,70:75,71:V,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{33:[1,103]},t(B,[2,77]),{33:[2,79]},t([23,33,55,67,74],[2,30],{70:104,71:[1,105]}),t(le,[2,96]),t(R,Q,{72:ct}),{20:26,49:108,63:27,64:i,66:107,67:[2,94],68:109,69:74,70:75,71:V,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(R,[2,42]),{55:[1,110]},t(Ne,[2,81]),{55:[2,83]},t(n,[2,13]),{38:56,39:Ce,43:57,44:J,45:112,46:111,47:[2,74]},t(q,[2,68],{40:113}),{47:[2,18]},t(n,[2,14]),{33:[1,114]},t(B,[2,85]),{33:[2,87]},{33:[1,115]},{32:116,33:[2,60],73:117,74:qt},t(q,[2,57]),t(A,[2,59]),{33:[2,66],37:119,73:120,74:qt},t(q,[2,63]),t(A,[2,65]),{23:[1,121]},t(Ae,[2,49]),{23:[2,51]},{33:[1,122]},t(B,[2,89]),{33:[2,91]},t(n,[2,22]),t(le,[2,97]),{72:ct},{20:26,49:123,63:27,64:i,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{67:[1,124]},t(oe,[2,93]),{67:[2,95]},t(n,[2,23]),{47:[2,19]},{47:[2,75]},t(A,[2,70],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,41:125,49:126,68:127,64:i,71:V,79:a,80:l,81:c,82:h,83:g,84:y}),t(n,[2,24]),t(n,[2,21]),{33:[1,128]},{33:[2,61]},{71:[1,130],75:129},{33:[1,131]},{33:[2,67]},t(k,[2,12]),t(N,[2,26]),t(le,[2,31]),t(w,[2,29]),{33:[2,72],42:132,73:133,74:qt},t(q,[2,69]),t(A,[2,71]),t(F,[2,15]),{71:[1,135],76:[1,134]},t(Lr,[2,98]),t(b,[2,16]),{33:[1,136]},{33:[2,73]},{33:[2,32]},t(Lr,[2,99]),t(F,[2,17])],defaultActions:{4:[2,1],55:[2,53],57:[2,20],61:[2,55],73:[2,79],81:[2,83],85:[2,18],89:[2,87],99:[2,51],102:[2,91],109:[2,95],111:[2,19],112:[2,75],117:[2,61],120:[2,67],133:[2,73],134:[2,32]},parseError:function(p,m){if(m.recoverable)this.trace(p);else{var f=new Error(p);throw f.hash=m,f}},parse:function(p){var m=this,f=[0],d=[],v=[null],o=[],_e=this.table,u="",ue=0,Ye=0,Dr=0,Wn=2,Or=1,Kn=o.slice.call(arguments,1),C=Object.create(this.lexer),Se={yy:{}};for(var Ut in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ut)&&(Se.yy[Ut]=this.yy[Ut]);C.setInput(p,Se.yy),Se.yy.lexer=C,Se.yy.parser=this,typeof C.yylloc>"u"&&(C.yylloc={});var Ft=C.yylloc;o.push(Ft);var jn=C.options&&C.options.ranges;typeof Se.yy.parseError=="function"?this.parseError=Se.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ia(W){f.length=f.length-2*W,v.length=v.length-W,o.length=o.length-W}for(var Qn=function(){var W;return W=C.lex()||Or,typeof W!="number"&&(W=m.symbols_[W]||W),W},D,Mt,Ee,H,sa,Gt,Le={},ut,X,Ir,ht;;){if(Ee=f[f.length-1],this.defaultActions[Ee]?H=this.defaultActions[Ee]:((D===null||typeof D>"u")&&(D=Qn()),H=_e[Ee]&&_e[Ee][D]),typeof H>"u"||!H.length||!H[0]){var Yt="";ht=[];for(ut in _e[Ee])this.terminals_[ut]&&ut>Wn&&ht.push("'"+this.terminals_[ut]+"'");C.showPosition?Yt="Parse error on line "+(ue+1)+`: `+C.showPosition()+` -Expecting `+ht.join(", ")+", got '"+(this.terminals_[D]||D)+"'":zt="Parse error on line "+(ue+1)+": Unexpected "+(D==Or?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(zt,{text:C.match,token:this.terminals_[D]||D,line:C.yylineno,loc:Mt,expected:ht})}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ee+", token: "+D);switch(H[0]){case 1:f.push(D),v.push(C.yytext),o.push(C.yylloc),f.push(H[1]),D=null,Gt?(D=Gt,Gt=null):(Ye=C.yyleng,u=C.yytext,ue=C.yylineno,Mt=C.yylloc,Dr>0&&Dr--);break;case 2:if(X=this.productions_[H[1]][1],Le.$=v[v.length-X],Le._$={first_line:o[o.length-(X||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(X||1)].first_column,last_column:o[o.length-1].last_column},jn&&(Le._$.range=[o[o.length-(X||1)].range[0],o[o.length-1].range[1]]),Yt=this.performAction.apply(Le,[u,Ye,ue,Se.yy,H[1],v,o].concat(Kn)),typeof Yt<"u")return Yt;X&&(f=f.slice(0,-1*X*2),v=v.slice(0,-1*X),o=o.slice(0,-1*X)),f.push(this.productions_[H[1]][0]),v.push(Le.$),o.push(Le._$),Ir=_e[f[f.length-2]][f[f.length-1]],f.push(Ir);break;case 3:return!0}}return!0}},zn=function(){var ce={EOF:1,parseError:function(m,f){if(this.yy.parser)this.yy.parser.parseError(m,f);else throw new Error(m)},setInput:function(p,m){return this.yy=m||this.yy||{},this._input=p,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var p=this._input[0];this.yytext+=p,this.yyleng++,this.offset++,this.match+=p,this.matched+=p;var m=p.match(/(?:\r\n?|\n).*/g);return m?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),p},unput:function(p){var m=p.length,f=p.split(/(?:\r\n?|\n)/g);this._input=p+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1&&(this.yylineno-=f.length-1);var v=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===d.length?this.yylloc.first_column:0)+d[d.length-f.length].length-f[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[v[0],v[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +Expecting `+ht.join(", ")+", got '"+(this.terminals_[D]||D)+"'":Yt="Parse error on line "+(ue+1)+": Unexpected "+(D==Or?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(Yt,{text:C.match,token:this.terminals_[D]||D,line:C.yylineno,loc:Ft,expected:ht})}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ee+", token: "+D);switch(H[0]){case 1:f.push(D),v.push(C.yytext),o.push(C.yylloc),f.push(H[1]),D=null,Mt?(D=Mt,Mt=null):(Ye=C.yyleng,u=C.yytext,ue=C.yylineno,Ft=C.yylloc,Dr>0&&Dr--);break;case 2:if(X=this.productions_[H[1]][1],Le.$=v[v.length-X],Le._$={first_line:o[o.length-(X||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(X||1)].first_column,last_column:o[o.length-1].last_column},jn&&(Le._$.range=[o[o.length-(X||1)].range[0],o[o.length-1].range[1]]),Gt=this.performAction.apply(Le,[u,Ye,ue,Se.yy,H[1],v,o].concat(Kn)),typeof Gt<"u")return Gt;X&&(f=f.slice(0,-1*X*2),v=v.slice(0,-1*X),o=o.slice(0,-1*X)),f.push(this.productions_[H[1]][0]),v.push(Le.$),o.push(Le._$),Ir=_e[f[f.length-2]][f[f.length-1]],f.push(Ir);break;case 3:return!0}}return!0}},zn=function(){var ce={EOF:1,parseError:function(m,f){if(this.yy.parser)this.yy.parser.parseError(m,f);else throw new Error(m)},setInput:function(p,m){return this.yy=m||this.yy||{},this._input=p,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var p=this._input[0];this.yytext+=p,this.yyleng++,this.offset++,this.match+=p,this.matched+=p;var m=p.match(/(?:\r\n?|\n).*/g);return m?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),p},unput:function(p){var m=p.length,f=p.split(/(?:\r\n?|\n)/g);this._input=p+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1&&(this.yylineno-=f.length-1);var v=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===d.length?this.yylloc.first_column:0)+d[d.length-f.length].length-f[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[v[0],v[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(p){this.unput(this.match.slice(p))},pastInput:function(){var p=this.matched.substr(0,this.matched.length-this.match.length);return(p.length>20?"...":"")+p.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var p=this.match;return p.length<20&&(p+=this._input.substr(0,20-p.length)),(p.substr(0,20)+(p.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var p=this.pastInput(),m=new Array(p.length+1).join("-");return p+this.upcomingInput()+` `+m+"^"},test_match:function(p,m){var f,d,v;if(this.options.backtrack_lexer&&(v={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(v.yylloc.range=this.yylloc.range.slice(0))),d=p[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+p[0].length},this.yytext+=p[0],this.match+=p[0],this.matches=p,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(p[0].length),this.matched+=p[0],f=this.performAction.call(this,this.yy,this,m,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),f)return f;if(this._backtrack){for(var o in v)this[o]=v[o];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var p,m,f,d;this._more||(this.yytext="",this.match="");for(var v=this._currentRules(),o=0;om[0].length)){if(m=f,d=o,this.options.backtrack_lexer){if(p=this.test_match(f,v[o]),p!==!1)return p;if(this._backtrack){m=!1;continue}else return!1}else if(!this.options.flex)break}return m?(p=this.test_match(m,v[d]),p!==!1?p:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var m=this.next();return m||this.lex()},begin:function(m){this.conditionStack.push(m)},popState:function(){var m=this.conditionStack.length-1;return m>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(m){return m=this.conditionStack.length-1-Math.abs(m||0),m>=0?this.conditionStack[m]:"INITIAL"},pushState:function(m){this.begin(m)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(m,f,d,v){function o(u,ue){return f.yytext=f.yytext.substring(u,f.yyleng-ue+u)}var _e=v;switch(d){case 0:if(f.yytext.slice(-2)==="\\\\"?(o(0,1),this.begin("mu")):f.yytext.slice(-1)==="\\"?(o(0,1),this.begin("emu")):this.begin("mu"),f.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(o(5,9),18);case 5:return 15;case 6:return this.popState(),14;break;case 7:return 64;case 8:return 67;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 56;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 52;case 20:return 48;case 21:this.unput(f.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 72;case 25:return 71;case 26:return 71;case 27:return 86;case 28:break;case 29:return this.popState(),55;break;case 30:return this.popState(),33;break;case 31:return f.yytext=o(1,2).replace(/\\"/g,'"'),79;break;case 32:return f.yytext=o(1,2).replace(/\\'/g,"'"),79;break;case 33:return 84;case 34:return 81;case 35:return 81;case 36:return 82;case 37:return 83;case 38:return 80;case 39:return 74;case 40:return 76;case 41:return 71;case 42:return f.yytext=f.yytext.replace(/\\([\\\]])/g,"$1"),71;break;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};return ce}();Ht.lexer=zn;function Ut(){this.yy={}}return Ut.prototype=Ht,Ht.Parser=Ut,new Ut}(),Et=ji;var or=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function lr(t,e){var r=e&&e.loc,n,i,s,a;r&&(n=r.start.line,i=r.end.line,s=r.start.column,a=r.end.column,t+=" - "+n+":"+s);for(var l=Error.prototype.constructor.call(this,t),c=0;cpr,id:()=>Qi,prepareBlock:()=>ts,prepareMustache:()=>Zi,preparePartialBlock:()=>ns,preparePath:()=>$i,prepareProgram:()=>rs,prepareRawBlock:()=>es,stripComment:()=>Xi,stripFlags:()=>Ji});function hr(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var r={loc:t.path.loc};throw new fe(t.path.original+" doesn't match "+e,r)}}function pr(t,e){this.source=t,this.start={line:e.first_line,column:e.first_column},this.end={line:e.last_line,column:e.last_column}}function Qi(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t}function Ji(t,e){return{open:t.charAt(2)==="~",close:e.charAt(e.length-3)==="~"}}function Xi(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function $i(t,e,r){r=this.locInfo(r);for(var n=t?"@":"",i=[],s=0,a=0,l=e.length;a0)throw new fe("Invalid path: "+n,{loc:r});c===".."&&s++}else i.push(c)}return{type:"PathExpression",data:t,depth:s,parts:i,original:n,loc:r}}function Zi(t,e,r,n,i,s){var a=n.charAt(3)||n.charAt(2),l=a!=="{"&&a!=="&",c=/\*/.test(n);return{type:c?"Decorator":"MustacheStatement",path:t,params:e,hash:r,escaped:l,strip:i,loc:this.locInfo(s)}}function es(t,e,r,n){hr(t,r),n=this.locInfo(n);var i={type:"Program",body:e,strip:{},loc:n};return{type:"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}function ts(t,e,r,n,i,s){n&&n.path&&hr(t,n);var a=/\*/.test(t.open);e.blockParams=t.blockParams;var l,c;if(r){if(a)throw new fe("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),c=r.strip,l=r.program}return i&&(i=l,l=e,e=i),{type:a?"DecoratorBlock":"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:e,inverse:l,openStrip:t.strip,inverseStrip:c,closeStrip:n&&n.strip,loc:this.locInfo(s)}}function rs(t,e){if(!e&&t.length){var r=t[0].loc,n=t[t.length-1].loc;r&&n&&(e={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:t,strip:{},loc:e}}function ns(t,e,r,n){return hr(t,r),{type:"PartialBlockStatement",name:t.path,params:t.params,hash:t.hash,program:e,openStrip:t.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}var vn={};for(wt in st)Object.prototype.hasOwnProperty.call(st,wt)&&(vn[wt]=st[wt]);var wt;function xt(t,e){if(t.type==="Program")return t;Et.yy=vn,Et.yy.locInfo=function(n){return new pr(e&&e.srcName,n)};var r=Et.parse(t);return r}function fr(t,e){var r=xt(t,e),n=new Tn(e);return n.accept(r)}var xn={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var m=this.next();return m||this.lex()},begin:function(m){this.conditionStack.push(m)},popState:function(){var m=this.conditionStack.length-1;return m>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(m){return m=this.conditionStack.length-1-Math.abs(m||0),m>=0?this.conditionStack[m]:"INITIAL"},pushState:function(m){this.begin(m)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(m,f,d,v){function o(u,ue){return f.yytext=f.yytext.substring(u,f.yyleng-ue+u)}var _e=v;switch(d){case 0:if(f.yytext.slice(-2)==="\\\\"?(o(0,1),this.begin("mu")):f.yytext.slice(-1)==="\\"?(o(0,1),this.begin("emu")):this.begin("mu"),f.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(o(5,9),18);case 5:return 15;case 6:return this.popState(),14;break;case 7:return 64;case 8:return 67;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 56;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 52;case 20:return 48;case 21:this.unput(f.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 72;case 25:return 71;case 26:return 71;case 27:return 86;case 28:break;case 29:return this.popState(),55;break;case 30:return this.popState(),33;break;case 31:return f.yytext=o(1,2).replace(/\\"/g,'"'),79;break;case 32:return f.yytext=o(1,2).replace(/\\'/g,"'"),79;break;case 33:return 84;case 34:return 81;case 35:return 81;case 36:return 82;case 37:return 83;case 38:return 80;case 39:return 74;case 40:return 76;case 41:return 71;case 42:return f.yytext=f.yytext.replace(/\\([\\\]])/g,"$1"),71;break;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};return ce}();Vt.lexer=zn;function Ht(){this.yy={}}return Ht.prototype=Vt,Vt.Parser=Ht,new Ht}(),Et=ji;var ar=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function or(t,e){var r=e&&e.loc,n,i,s,a;r&&(n=r.start.line,i=r.end.line,s=r.start.column,a=r.end.column,t+=" - "+n+":"+s);for(var l=Error.prototype.constructor.call(this,t),c=0;chr,id:()=>Qi,prepareBlock:()=>ts,prepareMustache:()=>Zi,preparePartialBlock:()=>ns,preparePath:()=>$i,prepareProgram:()=>rs,prepareRawBlock:()=>es,stripComment:()=>Xi,stripFlags:()=>Ji});function ur(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var r={loc:t.path.loc};throw new fe(t.path.original+" doesn't match "+e,r)}}function hr(t,e){this.source=t,this.start={line:e.first_line,column:e.first_column},this.end={line:e.last_line,column:e.last_column}}function Qi(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t}function Ji(t,e){return{open:t.charAt(2)==="~",close:e.charAt(e.length-3)==="~"}}function Xi(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function $i(t,e,r){r=this.locInfo(r);for(var n=t?"@":"",i=[],s=0,a=0,l=e.length;a0)throw new fe("Invalid path: "+n,{loc:r});c===".."&&s++}else i.push(c)}return{type:"PathExpression",data:t,depth:s,parts:i,original:n,loc:r}}function Zi(t,e,r,n,i,s){var a=n.charAt(3)||n.charAt(2),l=a!=="{"&&a!=="&",c=/\*/.test(n);return{type:c?"Decorator":"MustacheStatement",path:t,params:e,hash:r,escaped:l,strip:i,loc:this.locInfo(s)}}function es(t,e,r,n){ur(t,r),n=this.locInfo(n);var i={type:"Program",body:e,strip:{},loc:n};return{type:"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}function ts(t,e,r,n,i,s){n&&n.path&&ur(t,n);var a=/\*/.test(t.open);e.blockParams=t.blockParams;var l,c;if(r){if(a)throw new fe("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),c=r.strip,l=r.program}return i&&(i=l,l=e,e=i),{type:a?"DecoratorBlock":"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:e,inverse:l,openStrip:t.strip,inverseStrip:c,closeStrip:n&&n.strip,loc:this.locInfo(s)}}function rs(t,e){if(!e&&t.length){var r=t[0].loc,n=t[t.length-1].loc;r&&n&&(e={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:t,strip:{},loc:e}}function ns(t,e,r,n){return ur(t,r),{type:"PartialBlockStatement",name:t.path,params:t.params,hash:t.hash,program:e,openStrip:t.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}var vn={};for(wt in st)Object.prototype.hasOwnProperty.call(st,wt)&&(vn[wt]=st[wt]);var wt;function xt(t,e){if(t.type==="Program")return t;Et.yy=vn,Et.yy.locInfo=function(n){return new hr(e&&e.srcName,n)};var r=Et.parse(t);return r}function pr(t,e){var r=xt(t,e),n=new Tn(e);return n.accept(r)}var xn={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` `,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"},is=/^#[xX]([A-Fa-f0-9]+)$/,ss=/^#([0-9]+)$/,as=/^([A-Za-z0-9]+)$/,kt=function(){function t(e){this.named=e}return t.prototype.parse=function(e){if(e){var r=e.match(is);if(r)return String.fromCharCode(parseInt(r[1],16));if(r=e.match(ss),r)return String.fromCharCode(parseInt(r[1],10));if(r=e.match(as),r)return this.named[r[1]]}},t}(),os=/[\t\n\f ]/,ls=/[A-Za-z]/,cs=/\r\n?/g;function L(t){return os.test(t)}function wn(t){return ls.test(t)}function us(t){return t.replace(cs,` -`)}var dr=function(){function t(e,r,n){n===void 0&&(n="precompile"),this.delegate=e,this.entityParser=r,this.mode=n,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var i=this.peek();if(i==="<"&&!this.isIgnoredEndTag())this.transitionTo("tagOpen"),this.markTagStart(),this.consume();else{if(this.mode==="precompile"&&i===` +`)}var fr=function(){function t(e,r,n){n===void 0&&(n="precompile"),this.delegate=e,this.entityParser=r,this.mode=n,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var i=this.peek();if(i==="<"&&!this.isIgnoredEndTag())this.transitionTo("tagOpen"),this.markTagStart(),this.consume();else{if(this.mode==="precompile"&&i===` `){var s=this.tagNameBuffer.toLowerCase();(s==="pre"||s==="textarea")&&this.consume()}this.transitionTo("data"),this.delegate.beginData()}},data:function(){var i=this.peek(),s=this.tagNameBuffer;i==="<"&&!this.isIgnoredEndTag()?(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume()):i==="&"&&s!=="script"&&s!=="style"?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(i))},tagOpen:function(){var i=this.consume();i==="!"?this.transitionTo("markupDeclarationOpen"):i==="/"?this.transitionTo("endTagOpen"):(i==="@"||i===":"||wn(i))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(i))},markupDeclarationOpen:function(){var i=this.consume();if(i==="-"&&this.peek()==="-")this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment();else{var s=i.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase();s==="DOCTYPE"&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())}},doctype:function(){var i=this.consume();L(i)&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var i=this.consume();L(i)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(i.toLowerCase()))},doctypeName:function(){var i=this.consume();L(i)?this.transitionTo("afterDoctypeName"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(i.toLowerCase())},afterDoctypeName:function(){var i=this.consume();if(!L(i))if(i===">")this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var s=i.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),a=s.toUpperCase()==="PUBLIC",l=s.toUpperCase()==="SYSTEM";(a||l)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),a?this.transitionTo("afterDoctypePublicKeyword"):l&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var i=this.peek();L(i)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):i==='"'?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):i==="'"?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):i===">"&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var i=this.consume();i==='"'?this.transitionTo("afterDoctypePublicIdentifier"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(i)},doctypePublicIdentifierSingleQuoted:function(){var i=this.consume();i==="'"?this.transitionTo("afterDoctypePublicIdentifier"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(i)},afterDoctypePublicIdentifier:function(){var i=this.consume();L(i)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):i==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):i==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var i=this.consume();L(i)||(i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):i==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):i==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var i=this.consume();i==='"'?this.transitionTo("afterDoctypeSystemIdentifier"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(i)},doctypeSystemIdentifierSingleQuoted:function(){var i=this.consume();i==="'"?this.transitionTo("afterDoctypeSystemIdentifier"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(i)},afterDoctypeSystemIdentifier:function(){var i=this.consume();L(i)||i===">"&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var i=this.consume();i==="-"?this.transitionTo("commentStartDash"):i===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(i),this.transitionTo("comment"))},commentStartDash:function(){var i=this.consume();i==="-"?this.transitionTo("commentEnd"):i===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var i=this.consume();i==="-"?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(i)},commentEndDash:function(){var i=this.consume();i==="-"?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+i),this.transitionTo("comment"))},commentEnd:function(){var i=this.consume();i===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+i),this.transitionTo("comment"))},tagName:function(){var i=this.consume();L(i)?this.transitionTo("beforeAttributeName"):i==="/"?this.transitionTo("selfClosingStartTag"):i===">"?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(i)},endTagName:function(){var i=this.consume();L(i)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):i==="/"?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):i===">"?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(i)},beforeAttributeName:function(){var i=this.peek();if(L(i)){this.consume();return}else i==="/"?(this.transitionTo("selfClosingStartTag"),this.consume()):i===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):i==="="?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(i)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var i=this.peek();L(i)?(this.transitionTo("afterAttributeName"),this.consume()):i==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):i==="="?(this.transitionTo("beforeAttributeValue"),this.consume()):i===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):i==='"'||i==="'"||i==="<"?(this.delegate.reportSyntaxError(i+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(i)):(this.consume(),this.delegate.appendToAttributeName(i))},afterAttributeName:function(){var i=this.peek();if(L(i)){this.consume();return}else i==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):i==="="?(this.consume(),this.transitionTo("beforeAttributeValue")):i===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(i))},beforeAttributeValue:function(){var i=this.peek();L(i)?this.consume():i==='"'?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):i==="'"?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):i===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(i))},attributeValueDoubleQuoted:function(){var i=this.consume();i==='"'?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):i==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(i)},attributeValueSingleQuoted:function(){var i=this.consume();i==="'"?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):i==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(i)},attributeValueUnquoted:function(){var i=this.peek();L(i)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):i==="/"?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):i==="&"?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):i===">"?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(i))},afterAttributeValueQuoted:function(){var i=this.peek();L(i)?(this.consume(),this.transitionTo("beforeAttributeName")):i==="/"?(this.consume(),this.transitionTo("selfClosingStartTag")):i===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){var i=this.peek();i===">"?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var i=this.consume();(i==="@"||i===":"||wn(i))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(i))}},this.reset()}return t.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},t.prototype.transitionTo=function(e){this.state=e},t.prototype.tokenize=function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},t.prototype.tokenizePart=function(e){for(this.input+=us(e);this.index"||e==="style"&&this.input.substring(this.index,this.index+8)!==""||e==="script"&&this.input.substring(this.index,this.index+9)!=="<\/script>"},t}(),zl=function(){function t(e,r){r===void 0&&(r={}),this.options=r,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new dr(this,e,r.mode),this._currentAttribute=void 0}return t.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},t.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},t.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},t.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},t.prototype.current=function(){var e=this.token;if(e===null)throw new Error("token was unexpectedly null");if(arguments.length===0)return e;for(var r=0;r]/,jl=new RegExp(ps.source,"g");var Pt=Object.create(null),fs="area base br col command embed hr img input keygen link meta param source track wbr";fs.split(" ").forEach(t=>{Pt[t]=!0});var Y=Object.freeze({line:1,column:0}),kn=Object.freeze({source:"(synthetic)",start:Y,end:Y});var sc=Object.freeze({source:"(temporary)",start:Y,end:Y}),Fe=Object.freeze({source:"(nonexistent)",start:Y,end:Y}),ee=Object.freeze({source:"(broken)",start:Y,end:Y});var Nt=class t{constructor(e){this.loc=e.loc,this.chars=e.chars}static synthetic(e){let r=P.synthetic(e);return new t({loc:r,chars:e})}static load(e,r){return new t({loc:P.load(e,r[1]),chars:r[0]})}getString(){return this.chars}serialize(){return[this.chars,this.loc.serialize()]}};var Pe="MATCH_ANY",At="IS_INVISIBLE",mr=class{constructor(e){this._whens=e}first(e){for(let r of this._whens){let n=r.match(e);if(He(n))return n[0]}return null}},Ct=class{constructor(){this._map=new Map}get(e,r){let n=this._map.get(e);return n||(n=r(),this._map.set(e,n),n)}add(e,r){this._map.set(e,r)}match(e){let r=ds(e),n=[],i=this._map.get(r),s=this._map.get(Pe);return i&&n.push(i),s&&n.push(s),n}};function _t(t){return t(new gr).check()}var gr=class{constructor(){this._whens=new Ct}check(){return(e,r)=>this.matchFor(e.kind,r.kind)(e,r)}matchFor(e,r){let n=this._whens.match(e);return new mr(n).first(r)}when(e,r,n){return this._whens.get(e,()=>new Ct).add(r,n),this}};function ds(t){switch(t){case"Broken":case"InternalsSynthetic":case"NonExistent":return At;default:return t}}var te="BROKEN",me=class t{constructor(e){this.data=e}static forHbsPos(e,r){return new re(e,r,null).wrap()}static broken(e=Y){return new Me("Broken",e).wrap()}get offset(){let e=this.data.toCharPos();return e===null?null:e.offset}eql(e){return ms(this.data,e.data)}until(e){return z(this.data,e.data)}move(e){let r=this.data.toCharPos();if(r===null)return t.broken();{let n=r.offset+e;return r.source.check(n)?new ge(r.source,n).wrap():t.broken()}}collapsed(){return z(this.data,this.data)}toJSON(){return this.data.toJSON()}},ge=class{constructor(e,r){this.source=e,this.charPos=r,this.kind="CharPosition",this._locPos=null}toCharPos(){return this}toJSON(){let e=this.toHbsPos();return e===null?Y:e.toJSON()}wrap(){return new me(this)}get offset(){return this.charPos}toHbsPos(){let e=this._locPos;if(e===null){let r=this.source.hbsPosFor(this.charPos);r===null?this._locPos=e=te:this._locPos=e=new re(this.source,r,this.charPos)}return e===te?null:e}},re=class{constructor(e,r,n=null){this.source=e,this.hbsPos=r,this.kind="HbsPosition",this._charPos=n===null?null:new ge(e,n)}toCharPos(){let e=this._charPos;if(e===null){let r=this.source.charPosFor(this.hbsPos);r===null?this._charPos=e=te:this._charPos=e=new ge(this.source,r)}return e===te?null:e}toJSON(){return this.hbsPos}wrap(){return new me(this)}toHbsPos(){return this}},Me=class{constructor(e,r){this.kind=e,this.pos=r}toCharPos(){return null}toJSON(){return this.pos}wrap(){return new me(this)}get offset(){return null}},ms=_t(t=>t.when("HbsPosition","HbsPosition",({hbsPos:e},{hbsPos:r})=>e.column===r.column&&e.line===r.line).when("CharPosition","CharPosition",({charPos:e},{charPos:r})=>e===r).when("CharPosition","HbsPosition",({offset:e},r)=>{var n;return e===((n=r.toCharPos())===null||n===void 0?void 0:n.offset)}).when("HbsPosition","CharPosition",(e,{offset:r})=>{var n;return((n=e.toCharPos())===null||n===void 0?void 0:n.offset)===r}).when(Pe,Pe,()=>!1));var P=class t{constructor(e){this.data=e,this.isInvisible=e.kind!=="CharPosition"&&e.kind!=="HbsPosition"}static get NON_EXISTENT(){return new ne("NonExistent",Fe).wrap()}static load(e,r){if(typeof r=="number")return t.forCharPositions(e,r,r);if(typeof r=="string")return t.synthetic(r);if(Array.isArray(r))return t.forCharPositions(e,r[0],r[1]);if(r==="NonExistent")return t.NON_EXISTENT;if(r==="Broken")return t.broken(ee);bn(r)}static forHbsLoc(e,r){let n=new re(e,r.start),i=new re(e,r.end);return new ot(e,{start:n,end:i},r).wrap()}static forCharPositions(e,r,n){let i=new ge(e,r),s=new ge(e,n);return new at(e,{start:i,end:s}).wrap()}static synthetic(e){return new ne("InternalsSynthetic",Fe,e).wrap()}static broken(e=ee){return new ne("Broken",e).wrap()}getStart(){return this.data.getStart().wrap()}getEnd(){return this.data.getEnd().wrap()}get loc(){let e=this.data.toHbsSpan();return e===null?ee:e.toHbsLoc()}get module(){return this.data.getModule()}get startPosition(){return this.loc.start}get endPosition(){return this.loc.end}toJSON(){return this.loc}withStart(e){return z(e.data,this.data.getEnd())}withEnd(e){return z(this.data.getStart(),e.data)}asString(){return this.data.asString()}toSlice(e){let r=this.data.asString();return!1&&e!==void 0&&r!==e&&console.warn(`unexpectedly found ${JSON.stringify(r)} when slicing source, but expected ${JSON.stringify(e)}`),new Nt({loc:this,chars:e||r})}get start(){return this.loc.start}set start(e){this.data.locDidUpdate({start:e})}get end(){return this.loc.end}set end(e){this.data.locDidUpdate({end:e})}get source(){return this.module}collapse(e){switch(e){case"start":return this.getStart().collapsed();case"end":return this.getEnd().collapsed()}}extend(e){return z(this.data.getStart(),e.data.getEnd())}serialize(){return this.data.serialize()}slice({skipStart:e=0,skipEnd:r=0}){return z(this.getStart().move(e).data,this.getEnd().move(-r).data)}sliceStartChars({skipStart:e=0,chars:r}){return z(this.getStart().move(e).data,this.getStart().move(e+r).data)}sliceEndChars({skipEnd:e=0,chars:r}){return z(this.getEnd().move(e-r).data,this.getStart().move(-e).data)}},at=class{constructor(e,r){this.source=e,this.charPositions=r,this.kind="CharPosition",this._locPosSpan=null}wrap(){return new P(this)}asString(){return this.source.slice(this.charPositions.start.charPos,this.charPositions.end.charPos)}getModule(){return this.source.module}getStart(){return this.charPositions.start}getEnd(){return this.charPositions.end}locDidUpdate(){}toHbsSpan(){let e=this._locPosSpan;if(e===null){let r=this.charPositions.start.toHbsPos(),n=this.charPositions.end.toHbsPos();r===null||n===null?e=this._locPosSpan=te:e=this._locPosSpan=new ot(this.source,{start:r,end:n})}return e===te?null:e}serialize(){let{start:{charPos:e},end:{charPos:r}}=this.charPositions;return e===r?e:[e,r]}toCharPosSpan(){return this}},ot=class{constructor(e,r,n=null){this.source=e,this.hbsPositions=r,this.kind="HbsPosition",this._charPosSpan=null,this._providedHbsLoc=n}serialize(){let e=this.toCharPosSpan();return e===null?"Broken":e.wrap().serialize()}wrap(){return new P(this)}updateProvided(e,r){this._providedHbsLoc&&(this._providedHbsLoc[r]=e),this._charPosSpan=null,this._providedHbsLoc={start:e,end:e}}locDidUpdate({start:e,end:r}){e!==void 0&&(this.updateProvided(e,"start"),this.hbsPositions.start=new re(this.source,e,null)),r!==void 0&&(this.updateProvided(r,"end"),this.hbsPositions.end=new re(this.source,r,null))}asString(){let e=this.toCharPosSpan();return e===null?"":e.asString()}getModule(){return this.source.module}getStart(){return this.hbsPositions.start}getEnd(){return this.hbsPositions.end}toHbsLoc(){return{start:this.hbsPositions.start.hbsPos,end:this.hbsPositions.end.hbsPos}}toHbsSpan(){return this}toCharPosSpan(){let e=this._charPosSpan;if(e===null){let r=this.hbsPositions.start.toCharPos(),n=this.hbsPositions.end.toCharPos();if(r&&n)e=this._charPosSpan=new at(this.source,{start:r,end:n});else return e=this._charPosSpan=te,null}return e===te?null:e}},ne=class{constructor(e,r,n=null){this.kind=e,this.loc=r,this.string=n}serialize(){switch(this.kind){case"Broken":case"NonExistent":return this.kind;case"InternalsSynthetic":return this.string||""}}wrap(){return new P(this)}asString(){return this.string||""}locDidUpdate({start:e,end:r}){e!==void 0&&(this.loc.start=e),r!==void 0&&(this.loc.end=r)}getModule(){return"an unknown module"}getStart(){return new Me(this.kind,this.loc.start)}getEnd(){return new Me(this.kind,this.loc.end)}toCharPosSpan(){return this}toHbsSpan(){return null}toHbsLoc(){return ee}},z=_t(t=>t.when("HbsPosition","HbsPosition",(e,r)=>new ot(e.source,{start:e,end:r}).wrap()).when("CharPosition","CharPosition",(e,r)=>new at(e.source,{start:e,end:r}).wrap()).when("CharPosition","HbsPosition",(e,r)=>{let n=r.toCharPos();return n===null?new ne("Broken",ee).wrap():z(e,n)}).when("HbsPosition","CharPosition",(e,r)=>{let n=e.toCharPos();return n===null?new ne("Broken",ee).wrap():z(n,r)}).when(At,Pe,e=>new ne(e.kind,ee).wrap()).when(Pe,At,(e,r)=>new ne(r.kind,ee).wrap()));var ie=class{constructor(e,r="an unknown module"){this.source=e,this.module=r}check(e){return e>=0&&e<=this.source.length}slice(e,r){return this.source.slice(e,r)}offsetFor(e,r){return me.forHbsPos(this,{line:e,column:r})}spanFor({start:e,end:r}){return P.forHbsLoc(this,{start:{line:e.line,column:e.column},end:{line:r.line,column:r.column}})}hbsPosFor(e){let r=0,n=0;if(e>this.source.length)return null;for(;;){let i=this.source.indexOf(` +`?(this.line++,this.column=0):this.column++,e},t.prototype.consumeCharRef=function(){var e=this.input.indexOf(";",this.index);if(e!==-1){var r=this.input.slice(this.index,e),n=this.entityParser.parse(r);if(n){for(var i=r.length;i;)this.consume(),i--;return this.consume(),n}}},t.prototype.markTagStart=function(){this.delegate.tagOpen()},t.prototype.appendToTagName=function(e){this.tagNameBuffer+=e,this.delegate.appendToTagName(e)},t.prototype.isIgnoredEndTag=function(){var e=this.tagNameBuffer;return e==="title"&&this.input.substring(this.index,this.index+8)!==""||e==="style"&&this.input.substring(this.index,this.index+8)!==""||e==="script"&&this.input.substring(this.index,this.index+9)!=="<\/script>"},t}(),zl=function(){function t(e,r){r===void 0&&(r={}),this.options=r,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new fr(this,e,r.mode),this._currentAttribute=void 0}return t.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},t.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},t.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},t.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},t.prototype.current=function(){var e=this.token;if(e===null)throw new Error("token was unexpectedly null");if(arguments.length===0)return e;for(var r=0;r]/,jl=new RegExp(ps.source,"g");var Pt=Object.create(null),fs="area base br col command embed hr img input keygen link meta param source track wbr";fs.split(" ").forEach(t=>{Pt[t]=!0});var Y=Object.freeze({line:1,column:0}),kn=Object.freeze({source:"(synthetic)",start:Y,end:Y});var sc=Object.freeze({source:"(temporary)",start:Y,end:Y}),Fe=Object.freeze({source:"(nonexistent)",start:Y,end:Y}),ee=Object.freeze({source:"(broken)",start:Y,end:Y});var Nt=class t{constructor(e){this.loc=e.loc,this.chars=e.chars}static synthetic(e){let r=P.synthetic(e);return new t({loc:r,chars:e})}static load(e,r){return new t({loc:P.load(e,r[1]),chars:r[0]})}getString(){return this.chars}serialize(){return[this.chars,this.loc.serialize()]}};var Pe="MATCH_ANY",At="IS_INVISIBLE",dr=class{constructor(e){this._whens=e}first(e){for(let r of this._whens){let n=r.match(e);if(He(n))return n[0]}return null}},Ct=class{constructor(){this._map=new Map}get(e,r){let n=this._map.get(e);return n||(n=r(),this._map.set(e,n),n)}add(e,r){this._map.set(e,r)}match(e){let r=ds(e),n=[],i=this._map.get(r),s=this._map.get(Pe);return i&&n.push(i),s&&n.push(s),n}};function _t(t){return t(new mr).check()}var mr=class{constructor(){this._whens=new Ct}check(){return(e,r)=>this.matchFor(e.kind,r.kind)(e,r)}matchFor(e,r){let n=this._whens.match(e);return new dr(n).first(r)}when(e,r,n){return this._whens.get(e,()=>new Ct).add(r,n),this}};function ds(t){switch(t){case"Broken":case"InternalsSynthetic":case"NonExistent":return At;default:return t}}var te="BROKEN",me=class t{constructor(e){this.data=e}static forHbsPos(e,r){return new re(e,r,null).wrap()}static broken(e=Y){return new Me("Broken",e).wrap()}get offset(){let e=this.data.toCharPos();return e===null?null:e.offset}eql(e){return ms(this.data,e.data)}until(e){return z(this.data,e.data)}move(e){let r=this.data.toCharPos();if(r===null)return t.broken();{let n=r.offset+e;return r.source.check(n)?new ge(r.source,n).wrap():t.broken()}}collapsed(){return z(this.data,this.data)}toJSON(){return this.data.toJSON()}},ge=class{constructor(e,r){this.source=e,this.charPos=r,this.kind="CharPosition",this._locPos=null}toCharPos(){return this}toJSON(){let e=this.toHbsPos();return e===null?Y:e.toJSON()}wrap(){return new me(this)}get offset(){return this.charPos}toHbsPos(){let e=this._locPos;if(e===null){let r=this.source.hbsPosFor(this.charPos);r===null?this._locPos=e=te:this._locPos=e=new re(this.source,r,this.charPos)}return e===te?null:e}},re=class{constructor(e,r,n=null){this.source=e,this.hbsPos=r,this.kind="HbsPosition",this._charPos=n===null?null:new ge(e,n)}toCharPos(){let e=this._charPos;if(e===null){let r=this.source.charPosFor(this.hbsPos);r===null?this._charPos=e=te:this._charPos=e=new ge(this.source,r)}return e===te?null:e}toJSON(){return this.hbsPos}wrap(){return new me(this)}toHbsPos(){return this}},Me=class{constructor(e,r){this.kind=e,this.pos=r}toCharPos(){return null}toJSON(){return this.pos}wrap(){return new me(this)}get offset(){return null}},ms=_t(t=>t.when("HbsPosition","HbsPosition",({hbsPos:e},{hbsPos:r})=>e.column===r.column&&e.line===r.line).when("CharPosition","CharPosition",({charPos:e},{charPos:r})=>e===r).when("CharPosition","HbsPosition",({offset:e},r)=>{var n;return e===((n=r.toCharPos())===null||n===void 0?void 0:n.offset)}).when("HbsPosition","CharPosition",(e,{offset:r})=>{var n;return((n=e.toCharPos())===null||n===void 0?void 0:n.offset)===r}).when(Pe,Pe,()=>!1));var P=class t{constructor(e){this.data=e,this.isInvisible=e.kind!=="CharPosition"&&e.kind!=="HbsPosition"}static get NON_EXISTENT(){return new ne("NonExistent",Fe).wrap()}static load(e,r){if(typeof r=="number")return t.forCharPositions(e,r,r);if(typeof r=="string")return t.synthetic(r);if(Array.isArray(r))return t.forCharPositions(e,r[0],r[1]);if(r==="NonExistent")return t.NON_EXISTENT;if(r==="Broken")return t.broken(ee);bn(r)}static forHbsLoc(e,r){let n=new re(e,r.start),i=new re(e,r.end);return new ot(e,{start:n,end:i},r).wrap()}static forCharPositions(e,r,n){let i=new ge(e,r),s=new ge(e,n);return new at(e,{start:i,end:s}).wrap()}static synthetic(e){return new ne("InternalsSynthetic",Fe,e).wrap()}static broken(e=ee){return new ne("Broken",e).wrap()}getStart(){return this.data.getStart().wrap()}getEnd(){return this.data.getEnd().wrap()}get loc(){let e=this.data.toHbsSpan();return e===null?ee:e.toHbsLoc()}get module(){return this.data.getModule()}get startPosition(){return this.loc.start}get endPosition(){return this.loc.end}toJSON(){return this.loc}withStart(e){return z(e.data,this.data.getEnd())}withEnd(e){return z(this.data.getStart(),e.data)}asString(){return this.data.asString()}toSlice(e){let r=this.data.asString();return!1&&e!==void 0&&r!==e&&console.warn(`unexpectedly found ${JSON.stringify(r)} when slicing source, but expected ${JSON.stringify(e)}`),new Nt({loc:this,chars:e||r})}get start(){return this.loc.start}set start(e){this.data.locDidUpdate({start:e})}get end(){return this.loc.end}set end(e){this.data.locDidUpdate({end:e})}get source(){return this.module}collapse(e){switch(e){case"start":return this.getStart().collapsed();case"end":return this.getEnd().collapsed()}}extend(e){return z(this.data.getStart(),e.data.getEnd())}serialize(){return this.data.serialize()}slice({skipStart:e=0,skipEnd:r=0}){return z(this.getStart().move(e).data,this.getEnd().move(-r).data)}sliceStartChars({skipStart:e=0,chars:r}){return z(this.getStart().move(e).data,this.getStart().move(e+r).data)}sliceEndChars({skipEnd:e=0,chars:r}){return z(this.getEnd().move(e-r).data,this.getStart().move(-e).data)}},at=class{constructor(e,r){this.source=e,this.charPositions=r,this.kind="CharPosition",this._locPosSpan=null}wrap(){return new P(this)}asString(){return this.source.slice(this.charPositions.start.charPos,this.charPositions.end.charPos)}getModule(){return this.source.module}getStart(){return this.charPositions.start}getEnd(){return this.charPositions.end}locDidUpdate(){}toHbsSpan(){let e=this._locPosSpan;if(e===null){let r=this.charPositions.start.toHbsPos(),n=this.charPositions.end.toHbsPos();r===null||n===null?e=this._locPosSpan=te:e=this._locPosSpan=new ot(this.source,{start:r,end:n})}return e===te?null:e}serialize(){let{start:{charPos:e},end:{charPos:r}}=this.charPositions;return e===r?e:[e,r]}toCharPosSpan(){return this}},ot=class{constructor(e,r,n=null){this.source=e,this.hbsPositions=r,this.kind="HbsPosition",this._charPosSpan=null,this._providedHbsLoc=n}serialize(){let e=this.toCharPosSpan();return e===null?"Broken":e.wrap().serialize()}wrap(){return new P(this)}updateProvided(e,r){this._providedHbsLoc&&(this._providedHbsLoc[r]=e),this._charPosSpan=null,this._providedHbsLoc={start:e,end:e}}locDidUpdate({start:e,end:r}){e!==void 0&&(this.updateProvided(e,"start"),this.hbsPositions.start=new re(this.source,e,null)),r!==void 0&&(this.updateProvided(r,"end"),this.hbsPositions.end=new re(this.source,r,null))}asString(){let e=this.toCharPosSpan();return e===null?"":e.asString()}getModule(){return this.source.module}getStart(){return this.hbsPositions.start}getEnd(){return this.hbsPositions.end}toHbsLoc(){return{start:this.hbsPositions.start.hbsPos,end:this.hbsPositions.end.hbsPos}}toHbsSpan(){return this}toCharPosSpan(){let e=this._charPosSpan;if(e===null){let r=this.hbsPositions.start.toCharPos(),n=this.hbsPositions.end.toCharPos();if(r&&n)e=this._charPosSpan=new at(this.source,{start:r,end:n});else return e=this._charPosSpan=te,null}return e===te?null:e}},ne=class{constructor(e,r,n=null){this.kind=e,this.loc=r,this.string=n}serialize(){switch(this.kind){case"Broken":case"NonExistent":return this.kind;case"InternalsSynthetic":return this.string||""}}wrap(){return new P(this)}asString(){return this.string||""}locDidUpdate({start:e,end:r}){e!==void 0&&(this.loc.start=e),r!==void 0&&(this.loc.end=r)}getModule(){return"an unknown module"}getStart(){return new Me(this.kind,this.loc.start)}getEnd(){return new Me(this.kind,this.loc.end)}toCharPosSpan(){return this}toHbsSpan(){return null}toHbsLoc(){return ee}},z=_t(t=>t.when("HbsPosition","HbsPosition",(e,r)=>new ot(e.source,{start:e,end:r}).wrap()).when("CharPosition","CharPosition",(e,r)=>new at(e.source,{start:e,end:r}).wrap()).when("CharPosition","HbsPosition",(e,r)=>{let n=r.toCharPos();return n===null?new ne("Broken",ee).wrap():z(e,n)}).when("HbsPosition","CharPosition",(e,r)=>{let n=e.toCharPos();return n===null?new ne("Broken",ee).wrap():z(n,r)}).when(At,Pe,e=>new ne(e.kind,ee).wrap()).when(Pe,At,(e,r)=>new ne(r.kind,ee).wrap()));var ie=class{constructor(e,r="an unknown module"){this.source=e,this.module=r}check(e){return e>=0&&e<=this.source.length}slice(e,r){return this.source.slice(e,r)}offsetFor(e,r){return me.forHbsPos(this,{line:e,column:r})}spanFor({start:e,end:r}){return P.forHbsLoc(this,{start:{line:e.line,column:e.column},end:{line:r.line,column:r.column}})}hbsPosFor(e){let r=0,n=0;if(e>this.source.length)return null;for(;;){let i=this.source.indexOf(` `,n);if(e<=i||i===-1)return{line:r+1,column:e-n};r+=1,n=i+1}}charPosFor(e){let{line:r,column:n}=e,s=this.source.length,a=0,l=0;for(;;){if(l>=s)return s;let c=this.source.indexOf(` `,l);if(c===-1&&(c=this.source.length),a===r-1){if(l+n>c)return c;if(!1){let h=this.hbsPosFor(l+n)}return l+n}else{if(c===-1)return 0;a+=1,l=c+1}}}};function S(t,e){let{module:r,loc:n}=e,{line:i,column:s}=n.start,a=e.asString(),l=a?` @@ -22,9 +22,9 @@ Expecting `+ht.join(", ")+", got '"+(this.terminals_[D]||D)+"'":zt="Parse error | `)} | -`:"",c=new Error(`${t}: ${l}(error occurred in '${r}' @ line ${i} : column ${s})`);return c.name="SyntaxError",c.location=e,c.code=a,c}var gs={Program:T("body"),Template:T("body"),Block:T("body"),MustacheStatement:T("path","params","hash"),BlockStatement:T("path","params","hash","program","inverse"),ElementModifierStatement:T("path","params","hash"),PartialStatement:T("name","params","hash"),CommentStatement:T(),MustacheCommentStatement:T(),ElementNode:T("attributes","modifiers","children","comments"),AttrNode:T("value"),TextNode:T(),ConcatStatement:T("parts"),SubExpression:T("path","params","hash"),PathExpression:T(),PathHead:T(),StringLiteral:T(),BooleanLiteral:T(),NumberLiteral:T(),NullLiteral:T(),UndefinedLiteral:T(),Hash:T("pairs"),HashPair:T("value"),NamedBlock:T("attributes","modifiers","children","comments"),SimpleElement:T("attributes","modifiers","children","comments"),Component:T("head","attributes","modifiers","children","comments")},Pn=gs;var br=function(){t.prototype=Object.create(Error.prototype),t.prototype.constructor=t;function t(e,r,n,i){let s=Error.call(this,e);this.key=i,this.message=e,this.node=r,this.parent=n,this.stack=s.stack}return t}();function yr(t,e,r){return new br("Cannot remove a node unless it is part of an array",t,e,r)}function Nn(t,e,r){return new br("Cannot replace a node with multiple nodes unless it is part of an array",t,e,r)}function Sr(t,e){return new br("Replacing and removing in key handlers is not yet supported.",t,null,e)}var be=class{constructor(e,r=null,n=null){this.node=e,this.parent=r,this.parentKey=n}get parentNode(){return this.parent?this.parent.node:null}parents(){return{[Symbol.iterator]:()=>new Er(this)}}},Er=class{constructor(e){this.path=e}next(){return this.path.parent?(this.path=this.path.parent,{done:!1,value:this.path}):{done:!0,value:null}}};function An(t){return typeof t=="function"?t:t.enter}function _n(t){if(typeof t!="function")return t.exit}function bs(t,e){let r=typeof t!="function"?t.keys:void 0;if(r===void 0)return;let n=r[e];return n!==void 0?n:r.All}function ys(t,e){if((e==="Template"||e==="Block")&&t.Program)return t.Program;let r=t[e];return r!==void 0?r:t.All}function Lt(t,e){let{node:r,parent:n,parentKey:i}=e,s=ys(t,r.type),a,l;s!==void 0&&(a=An(s),l=_n(s));let c;if(a!==void 0&&(c=a(r,e)),c!=null)if(JSON.stringify(r)===JSON.stringify(c))c=void 0;else{if(Array.isArray(c))return Ln(t,c,n,i),c;{let h=new be(c,n,i);return Lt(t,h)||c}}if(c===void 0){let h=Pn[r.type];for(let g=0;g@\[-\^`\{-~]/;function Dn(t){let e=xs(t);e&&(t.blockParams=e)}function xs(t){let e=t.attributes.length,r=[];for(let i=0;i0&&r[r.length-1].charAt(0)==="|")throw S("Block parameters must be preceded by the `as` keyword, detected block parameters without `as`",t.loc);if(n!==-1&&e>n&&r[n+1].charAt(0)==="|"){let i=r.slice(n).join(" ");if(i.charAt(i.length-1)!=="|"||i.match(/\|/g).length!==2)throw S("Invalid block parameters syntax, '"+i+"'",t.loc);let s=[];for(let a=n+1;at.acceptNode(a)):[],i=n.length>0?n[n.length-1].loc:r.loc,s=e.hash?t.Hash(e.hash):{type:"Hash",pairs:[],loc:t.source.spanFor(i).collapse("end")};return{path:r,params:n,hash:s}}function Cr(t,e){let{path:r,params:n,hash:i,loc:s}=e;if(vr(r)){let l=`{{${On(r)}}}`,c=`<${t.name} ... ${l} ...`;throw S(`In ${c}, ${l} is not a valid modifier`,e.loc)}let a=x.elementModifier({path:r,params:n,hash:i,loc:s});t.modifiers.push(a)}var Ar=class extends Bt{constructor(){super(...arguments),this.tagOpenLine=0,this.tagOpenColumn=0}reset(){this.currentNode=null}beginComment(){this.currentNode=x.comment("",this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn))}appendToCommentData(e){this.currentComment.value+=e}finishComment(){ye(this.currentElement(),this.finish(this.currentComment))}beginData(){this.currentNode=x.text({chars:"",loc:this.offset().collapsed()})}appendToData(e){this.currentData.chars+=e}finishData(){this.currentData.loc=this.currentData.loc.withEnd(this.offset()),ye(this.currentElement(),this.currentData)}tagOpen(){this.tagOpenLine=this.tokenizer.line,this.tagOpenColumn=this.tokenizer.column}beginStartTag(){this.currentNode={type:"StartTag",name:"",attributes:[],modifiers:[],comments:[],selfClosing:!1,loc:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}beginEndTag(){this.currentNode={type:"EndTag",name:"",attributes:[],modifiers:[],comments:[],selfClosing:!1,loc:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}finishTag(){let e=this.finish(this.currentTag);if(e.type==="StartTag"){if(this.finishStartTag(),e.name===":")throw S("Invalid named block named detected, you may have created a named block without a name, or you may have began your name with a number. Named blocks must have names that are at least one character long, and begin with a lower case letter",this.source.spanFor({start:this.currentTag.loc.toJSON(),end:this.offset().toJSON()}));(Pt[e.name]||e.selfClosing)&&this.finishEndTag(!0)}else e.type==="EndTag"&&this.finishEndTag(!1)}finishStartTag(){let{name:e,attributes:r,modifiers:n,comments:i,selfClosing:s,loc:a}=this.finish(this.currentStartTag),l=x.element({tag:e,selfClosing:s,attrs:r,modifiers:n,comments:i,children:[],blockParams:[],loc:a});this.elementStack.push(l)}finishEndTag(e){let r=this.finish(this.currentTag),n=this.elementStack.pop(),i=this.currentElement();this.validateEndTag(r,n,e),n.loc=n.loc.withEnd(this.offset()),Dn(n),ye(i,n)}markTagAsSelfClosing(){this.currentTag.selfClosing=!0}appendToTagName(e){this.currentTag.name+=e}beginAttribute(){let e=this.offset();this.currentAttribute={name:"",parts:[],currentPart:null,isQuoted:!1,isDynamic:!1,start:e,valueSpan:e.collapsed()}}appendToAttributeName(e){this.currentAttr.name+=e}beginAttributeValue(e){this.currentAttr.isQuoted=e,this.startTextPart(),this.currentAttr.valueSpan=this.offset().collapsed()}appendToAttributeValue(e){let r=this.currentAttr.parts,n=r[r.length-1],i=this.currentAttr.currentPart;if(i)i.chars+=e,i.loc=i.loc.withEnd(this.offset());else{let s=this.offset();e===` -`?s=n?n.loc.getEnd():this.currentAttr.valueSpan.getStart():s=s.move(-1),this.currentAttr.currentPart=x.text({chars:e,loc:s.collapsed()})}}finishAttributeValue(){this.finalizeTextPart();let e=this.currentTag,r=this.offset();if(e.type==="EndTag")throw S("Invalid end tag: closing tag must not have attributes",this.source.spanFor({start:e.loc.toJSON(),end:r.toJSON()}));let{name:n,parts:i,start:s,isQuoted:a,isDynamic:l,valueSpan:c}=this.currentAttr,h=this.assembleAttributeValue(i,a,l,s.until(r));h.loc=c.withEnd(r);let g=x.attr({name:n,value:h,loc:s.until(r)});this.currentStartTag.attributes.push(g)}reportSyntaxError(e){throw S(e,this.offset().collapsed())}assembleConcatenatedValue(e){for(let i=0;i elements do not need end tags. You should remove it`:r.tag===void 0?i=`Closing tag without an open tag`:r.tag!==e.name&&(i=`Closing tag did not match last open tag <${r.tag}> (on line ${r.loc.startPosition.line})`),i)throw S(i,e.loc)}assembleAttributeValue(e,r,n,i){if(n){if(r)return this.assembleConcatenatedValue(e);if(e.length===1||e.length===2&&e[1].type==="TextNode"&&e[1].chars==="/")return e[0];throw S("An unquoted attribute value must be a string or a mustache, preceded by whitespace or a '=' character, and followed by whitespace, a '>' character, or '/>'",i)}else return e.length>0?e[0]:x.text({chars:"",loc:i})}},js={},_r=class extends kt{constructor(){super({})}parse(){}};function Un(t,e={}){var r,n,i;let s=e.mode||"precompile",a,l;typeof t=="string"?(a=new ie(t,(r=e.meta)===null||r===void 0?void 0:r.moduleName),s==="codemod"?l=xt(t,e.parseOptions):l=fr(t,e.parseOptions)):t instanceof ie?(a=t,s==="codemod"?l=xt(t.source,e.parseOptions):l=fr(t.source,e.parseOptions)):(a=new ie("",(n=e.meta)===null||n===void 0?void 0:n.moduleName),l=t);let c;s==="codemod"&&(c=new _r);let h=P.forCharPositions(a,0,a.source.length);l.loc={source:"(program)",start:h.startPosition,end:h.endPosition};let g=new Ar(a,c,s).acceptTemplate(l);if(e.strictMode&&(g.blockParams=(i=e.locals)!==null&&i!==void 0?i:[]),e&&e.plugins&&e.plugins.ast)for(let y=0,F=e.plugins.ast.length;ynew Sr(this)}}},Sr=class{constructor(e){this.path=e}next(){return this.path.parent?(this.path=this.path.parent,{done:!1,value:this.path}):{done:!0,value:null}}};function An(t){return typeof t=="function"?t:t.enter}function _n(t){if(typeof t!="function")return t.exit}function bs(t,e){let r=typeof t!="function"?t.keys:void 0;if(r===void 0)return;let n=r[e];return n!==void 0?n:r.All}function ys(t,e){if((e==="Template"||e==="Block")&&t.Program)return t.Program;let r=t[e];return r!==void 0?r:t.All}function Lt(t,e){let{node:r,parent:n,parentKey:i}=e,s=ys(t,r.type),a,l;s!==void 0&&(a=An(s),l=_n(s));let c;if(a!==void 0&&(c=a(r,e)),c!=null)if(JSON.stringify(r)===JSON.stringify(c))c=void 0;else{if(Array.isArray(c))return Ln(t,c,n,i),c;{let h=new be(c,n,i);return Lt(t,h)||c}}if(c===void 0){let h=Pn[r.type];for(let g=0;g@\[-\^`\{-~]/;function Dn(t){let e=xs(t);e&&(t.blockParams=e)}function xs(t){let e=t.attributes.length,r=[];for(let i=0;i0&&r[r.length-1].charAt(0)==="|")throw S("Block parameters must be preceded by the `as` keyword, detected block parameters without `as`",t.loc);if(n!==-1&&e>n&&r[n+1].charAt(0)==="|"){let i=r.slice(n).join(" ");if(i.charAt(i.length-1)!=="|"||i.match(/\|/g).length!==2)throw S("Invalid block parameters syntax, '"+i+"'",t.loc);let s=[];for(let a=n+1;at.acceptNode(a)):[],i=n.length>0?n[n.length-1].loc:r.loc,s=e.hash?t.Hash(e.hash):{type:"Hash",pairs:[],loc:t.source.spanFor(i).collapse("end")};return{path:r,params:n,hash:s}}function Nr(t,e){let{path:r,params:n,hash:i,loc:s}=e;if(Tr(r)){let l=`{{${On(r)}}}`,c=`<${t.name} ... ${l} ...`;throw S(`In ${c}, ${l} is not a valid modifier`,e.loc)}let a=x.elementModifier({path:r,params:n,hash:i,loc:s});t.modifiers.push(a)}var Cr=class extends Bt{constructor(){super(...arguments),this.tagOpenLine=0,this.tagOpenColumn=0}reset(){this.currentNode=null}beginComment(){this.currentNode=x.comment("",this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn))}appendToCommentData(e){this.currentComment.value+=e}finishComment(){ye(this.currentElement(),this.finish(this.currentComment))}beginData(){this.currentNode=x.text({chars:"",loc:this.offset().collapsed()})}appendToData(e){this.currentData.chars+=e}finishData(){this.currentData.loc=this.currentData.loc.withEnd(this.offset()),ye(this.currentElement(),this.currentData)}tagOpen(){this.tagOpenLine=this.tokenizer.line,this.tagOpenColumn=this.tokenizer.column}beginStartTag(){this.currentNode={type:"StartTag",name:"",attributes:[],modifiers:[],comments:[],selfClosing:!1,loc:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}beginEndTag(){this.currentNode={type:"EndTag",name:"",attributes:[],modifiers:[],comments:[],selfClosing:!1,loc:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}finishTag(){let e=this.finish(this.currentTag);if(e.type==="StartTag"){if(this.finishStartTag(),e.name===":")throw S("Invalid named block named detected, you may have created a named block without a name, or you may have began your name with a number. Named blocks must have names that are at least one character long, and begin with a lower case letter",this.source.spanFor({start:this.currentTag.loc.toJSON(),end:this.offset().toJSON()}));(Pt[e.name]||e.selfClosing)&&this.finishEndTag(!0)}else e.type==="EndTag"&&this.finishEndTag(!1)}finishStartTag(){let{name:e,attributes:r,modifiers:n,comments:i,selfClosing:s,loc:a}=this.finish(this.currentStartTag),l=x.element({tag:e,selfClosing:s,attrs:r,modifiers:n,comments:i,children:[],blockParams:[],loc:a});this.elementStack.push(l)}finishEndTag(e){let r=this.finish(this.currentTag),n=this.elementStack.pop(),i=this.currentElement();this.validateEndTag(r,n,e),n.loc=n.loc.withEnd(this.offset()),Dn(n),ye(i,n)}markTagAsSelfClosing(){this.currentTag.selfClosing=!0}appendToTagName(e){this.currentTag.name+=e}beginAttribute(){let e=this.offset();this.currentAttribute={name:"",parts:[],currentPart:null,isQuoted:!1,isDynamic:!1,start:e,valueSpan:e.collapsed()}}appendToAttributeName(e){this.currentAttr.name+=e}beginAttributeValue(e){this.currentAttr.isQuoted=e,this.startTextPart(),this.currentAttr.valueSpan=this.offset().collapsed()}appendToAttributeValue(e){let r=this.currentAttr.parts,n=r[r.length-1],i=this.currentAttr.currentPart;if(i)i.chars+=e,i.loc=i.loc.withEnd(this.offset());else{let s=this.offset();e===` +`?s=n?n.loc.getEnd():this.currentAttr.valueSpan.getStart():s=s.move(-1),this.currentAttr.currentPart=x.text({chars:e,loc:s.collapsed()})}}finishAttributeValue(){this.finalizeTextPart();let e=this.currentTag,r=this.offset();if(e.type==="EndTag")throw S("Invalid end tag: closing tag must not have attributes",this.source.spanFor({start:e.loc.toJSON(),end:r.toJSON()}));let{name:n,parts:i,start:s,isQuoted:a,isDynamic:l,valueSpan:c}=this.currentAttr,h=this.assembleAttributeValue(i,a,l,s.until(r));h.loc=c.withEnd(r);let g=x.attr({name:n,value:h,loc:s.until(r)});this.currentStartTag.attributes.push(g)}reportSyntaxError(e){throw S(e,this.offset().collapsed())}assembleConcatenatedValue(e){for(let i=0;i elements do not need end tags. You should remove it`:r.tag===void 0?i=`Closing tag without an open tag`:r.tag!==e.name&&(i=`Closing tag did not match last open tag <${r.tag}> (on line ${r.loc.startPosition.line})`),i)throw S(i,e.loc)}assembleAttributeValue(e,r,n,i){if(n){if(r)return this.assembleConcatenatedValue(e);if(e.length===1||e.length===2&&e[1].type==="TextNode"&&e[1].chars==="/")return e[0];throw S("An unquoted attribute value must be a string or a mustache, preceded by whitespace or a '=' character, and followed by whitespace, a '>' character, or '/>'",i)}else return e.length>0?e[0]:x.text({chars:"",loc:i})}},js={},Ar=class extends kt{constructor(){super({})}parse(){}};function Un(t,e={}){var r,n,i;let s=e.mode||"precompile",a,l;typeof t=="string"?(a=new ie(t,(r=e.meta)===null||r===void 0?void 0:r.moduleName),s==="codemod"?l=xt(t,e.parseOptions):l=pr(t,e.parseOptions)):t instanceof ie?(a=t,s==="codemod"?l=xt(t.source,e.parseOptions):l=pr(t.source,e.parseOptions)):(a=new ie("",(n=e.meta)===null||n===void 0?void 0:n.moduleName),l=t);let c;s==="codemod"&&(c=new Ar);let h=P.forCharPositions(a,0,a.source.length);l.loc={source:"(program)",start:h.startPosition,end:h.endPosition};let g=new Cr(a,c,s).acceptTemplate(l);if(e.strictMode&&(g.blockParams=(i=e.locals)!==null&&i!==void 0?i:[]),e&&e.plugins&&e.plugins.ast)for(let y=0,F=e.plugins.ast.length;ythis.length)return null;for(var r=0,n=this.offsets;n[r+1]<=e;)r++;var i=e-n[r];return{line:r,column:i}},t.prototype.indexForLocation=function(e){var r=e.line,n=e.column;return r<0||r>=this.offsets.length||n<0||n>this.lengthOfLine(r)?null:this.offsets[r]+n},t.prototype.lengthOfLine=function(e){var r=this.offsets[e],n=e===this.offsets.length-1?this.length:this.offsets[e+1];return n-r},t}();function Qs(t,e){let r=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)}var Gn=Qs;function Js(t){let e=t.children??t.body;if(e)for(let r=0;re.indexForLocation({line:i-1,column:s}),n=i=>{let{start:s,end:a}=i.loc;s.offset=r(s),a.offset=r(a)};return()=>({name:"prettierParsePlugin",visitor:{All(i){n(i),Js(i)}}})}function $s(t){let e;try{e=Un(t,{mode:"codemod",plugins:{ast:[Xs(t)]}})}catch(r){let n=ea(r);if(n){let i=Zs(r);throw Gn(i,{loc:n,cause:r})}throw r}return e}function Zs(t){let{message:e}=t,r=e.split(` `);return r.length>=4&&/^Parse error on line \d+:$/.test(r[0])&&/^-*\^$/.test(he(!1,r,-2))?he(!1,r,-1):r.length>=4&&/:\s?$/.test(r[0])&&/^\(error occurred in '.*?' @ line \d+ : column \d+\)$/.test(he(!1,r,-1))&&r[1]===""&&he(!1,r,-2)===""&&r.slice(2,-2).every(n=>n.startsWith("|"))?r[0].trim().slice(0,-1):e}function ea(t){let{location:e,hash:r}=t;if(e){let{start:n,end:i}=e;return typeof i.line!="number"?{start:n}:e}if(r){let{loc:{last_line:n,last_column:i}}=r;return{start:{line:n,column:i+1}}}}var ta={parse:$s,astFormat:"glimmer",locStart:xe,locEnd:tt};var Yn=[{linguistLanguageId:155,name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}];var ra={glimmer:fn};return ei(na);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/glimmer.mjs b/node_modules/prettier/plugins/glimmer.mjs index 5cfd41a..0c4ea4d 100644 --- a/node_modules/prettier/plugins/glimmer.mjs +++ b/node_modules/prettier/plugins/glimmer.mjs @@ -1,18 +1,18 @@ -var Jn=Object.defineProperty;var Wt=(t,e)=>{for(var r in e)Jn(t,r,{get:e[r],enumerable:!0})};var Br=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var $=(t,e,r)=>(Br(t,e,"read from private field"),r?r.call(t):e.get(t)),Rr=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},qr=(t,e,r,n)=>(Br(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);var _r={};Wt(_r,{languages:()=>Yn,parsers:()=>qt,printers:()=>$s});var Xn=(t,e,r,n)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(r,n):r.global?e.replace(r,n):e.split(r).join(n)},Kt=Xn;var ze="string",We="array",Ke="cursor",De="indent",Oe="align",je="trim",Ie="group",Be="fill",Re="if-break",Qe="indent-if-break",Je="line-suffix",Xe="line-suffix-boundary",Z="line",$e="label",qe="break-parent",pt=new Set([Ke,De,Oe,je,Ie,Be,Re,Qe,Je,Xe,Z,$e,qe]);function $n(t){if(typeof t=="string")return ze;if(Array.isArray(t))return We;if(!t)return;let{type:e}=t;if(pt.has(e))return e}var Ze=$n;var Zn=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function ei(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', +var Jn=Object.defineProperty;var zt=(t,e)=>{for(var r in e)Jn(t,r,{get:e[r],enumerable:!0})};var Br=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var $=(t,e,r)=>(Br(t,e,"read from private field"),r?r.call(t):e.get(t)),Rr=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},qr=(t,e,r,n)=>(Br(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);var _r={};zt(_r,{languages:()=>Yn,parsers:()=>Ar,printers:()=>$s});var Xn=(t,e,r,n)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(r,n):r.global?e.replace(r,n):e.split(r).join(n)},Wt=Xn;var ze="string",We="array",Ke="cursor",De="indent",Oe="align",je="trim",Ie="group",Be="fill",Re="if-break",Qe="indent-if-break",Je="line-suffix",Xe="line-suffix-boundary",Z="line",$e="label",qe="break-parent",pt=new Set([Ke,De,Oe,je,Ie,Be,Re,Qe,Je,Xe,Z,$e,qe]);function $n(t){if(typeof t=="string")return ze;if(Array.isArray(t))return We;if(!t)return;let{type:e}=t;if(pt.has(e))return e}var Ze=$n;var Zn=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function ei(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', Expected it to be 'string' or 'object'.`;if(Ze(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=Zn([...pt].map(i=>`'${i}'`));return`Unexpected doc.type '${t.type}'. -Expected it to be ${n}.`}var jt=class extends Error{name="InvalidDocError";constructor(e){super(ei(e)),this.doc=e}},Qt=jt;var Vr=()=>{},Te=Vr,ft=Vr;function O(t){return Te(t),{type:De,contents:t}}function ti(t,e){return Te(e),{type:Oe,contents:e,n:t}}function I(t,e={}){return Te(t),ft(e.expandedStates,!0),{type:Ie,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function Jt(t){return ti(-1,t)}function Xt(t){return ft(t),{type:Be,parts:t}}function $t(t,e="",r={}){return Te(t),e!==""&&Te(e),{type:Re,breakContents:t,flatContents:e,groupId:r.groupId}}var Hr={type:qe};var ri={type:Z,hard:!0},ni={type:Z,hard:!0,literal:!0},_={type:Z},M={type:Z,soft:!0},ve=[ri,Hr],Ur=[ni,Hr];function we(t,e){Te(t),ft(e);let r=[];for(let n=0;n{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[r<0?e.length+r:r]:e.at(r)},he=ii;function si(t,e){if(typeof t=="string")return e(t);let r=new Map;return n(t);function n(s){if(r.has(s))return r.get(s);let a=i(s);return r.set(s,a),a}function i(s){switch(Ze(s)){case We:return e(s.map(n));case Be:return e({...s,parts:s.parts.map(n)});case Re:return e({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case Ie:{let{expandedStates:a,contents:l}=s;return a?(a=a.map(n),l=a[0]):l=n(l),e({...s,contents:l,expandedStates:a})}case Oe:case De:case Qe:case $e:case Je:return e({...s,contents:n(s.contents)});case ze:case Ke:case je:case Xe:case Z:case qe:return e(s);default:throw new Qt(s)}}}function Fr(t,e=Ur){return si(t,r=>typeof r=="string"?we(e,r.split(` -`)):r)}var dt="'",Mr='"';function ai(t,e){let r=e===!0||e===dt?dt:Mr,n=r===dt?Mr:dt,i=0,s=0;for(let a of t)a===r?i++:a===n&&s++;return i>s?n:r}var mt=ai;function oi(t){return Array.isArray(t)&&t.length>0}var et=oi;var Zt=class extends Error{name="UnexpectedNodeError";constructor(e,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},Gr=Zt;function er(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var U,tr=class{constructor(e){Rr(this,U,void 0);qr(this,U,new Set(e))}getLeadingWhitespaceCount(e){let r=$(this,U),n=0;for(let i=0;i=0&&r.has(e.charAt(i));i--)n++;return n}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return $(this,U).has(e.charAt(0))}hasTrailingWhitespace(e){return $(this,U).has(he(!1,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let n=`[${er([...$(this,U)].join(""))}]+`,i=new RegExp(r?`(${n})`:n);return e.split(i)}hasWhitespaceCharacter(e){let r=$(this,U);return Array.prototype.some.call(e,n=>r.has(n))}hasNonWhitespaceCharacter(e){let r=$(this,U);return Array.prototype.some.call(e,n=>!r.has(n))}isWhitespaceOnly(e){let r=$(this,U);return Array.prototype.every.call(e,n=>r.has(n))}};U=new WeakMap;var Yr=tr;var li=[" ",` -`,"\f","\r"," "],ci=new Yr(li),G=ci;function xe(t){return t.loc.start.offset}function tt(t){return t.loc.end.offset}function zr(t,e){if(t.type==="TextNode"){let r=t.chars.trim();if(!r)return null;e.chars=G.split(r).join(" ")}t.type==="AttrNode"&&t.name.toLowerCase()==="class"&&delete e.value}zr.ignoredProperties=new Set(["loc","selfClosing"]);var Wr=zr;var Kr=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function Qr(t){return t.toUpperCase()===t}function ui(t){return t.type==="ElementNode"&&typeof t.tag=="string"&&!t.tag.startsWith(":")&&(Qr(t.tag[0])||t.tag.includes("."))}var hi=new Set(Kr);function pi(t){return hi.has(t.toLowerCase())&&!Qr(t[0])}function rr(t){return t.selfClosing===!0||pi(t.tag)||ui(t)&&t.children.every(e=>gt(e))}function gt(t){return t.type==="TextNode"&&!/\S/.test(t.chars)}function jr(t){return(t==null?void 0:t.type)==="MustacheCommentStatement"&&typeof t.value=="string"&&t.value.trim()==="prettier-ignore"}function Jr(t){return jr(t.node)||t.isInArray&&(t.key==="children"||t.key==="body"||t.key==="parts")&&jr(t.siblings[t.index-2])}var rt=null;function nt(t){if(rt!==null&&typeof rt.property){let e=rt;return rt=nt.prototype=null,e}return rt=nt.prototype=t??Object.create(null),new nt}var fi=10;for(let t=0;t<=fi;t++)nt();function nr(t){return nt(t)}function di(t,e="type"){nr(t);function r(n){let i=n[e],s=t[i];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:n});return s}return r}var Xr=di;var $r={Program:["body"],Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],PartialStatement:["name","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],PathHead:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"],NamedBlock:["attributes","modifiers","children","comments"],SimpleElement:["attributes","modifiers","children","comments"],Component:["head","attributes","modifiers","children","comments"]};var mi=Xr($r),Zr=mi;var ln=2;function gi(t,e,r){var i,s,a,l,c,h,g,y,F;let{node:n}=t;switch(n.type){case"Block":case"Program":case"Template":return I(t.map(r,"body"));case"ElementNode":{let b=I(yi(t,r)),k=e.htmlWhitespaceSensitivity==="ignore"&&((i=t.next)==null?void 0:i.type)==="ElementNode"?M:"";if(rr(n))return[b,k];let N=[""];return n.children.length===0?[b,O(N),k]:e.htmlWhitespaceSensitivity==="ignore"?[b,O(en(t,e,r)),ve,O(N),k]:[b,O(I(en(t,e,r))),O(N),k]}case"BlockStatement":return xi(t)?[ki(t,r),nn(t,r,e),sn(t,r,e)]:[vi(t,r),I([nn(t,r,e),sn(t,r,e),Pi(t,r,e)])];case"ElementModifierStatement":return I(["{{",on(t,r),"}}"]);case"MustacheStatement":return I([bt(n),on(t,r),yt(n)]);case"SubExpression":return I(["(",Oi(t,r),M,")"]);case"AttrNode":{let{name:b,value:k}=n,N=k.type==="TextNode";if(N&&k.chars===""&&xe(k)===tt(k))return b;let w=N?mt(k.chars,e.singleQuote):k.type==="ConcatStatement"?mt(k.parts.map(R=>R.type==="TextNode"?R.chars:"").join(""),e.singleQuote):"",se=r("value");return[b,"=",w,b==="class"&&w?I(O(se)):se,w]}case"ConcatStatement":return t.map(r,"parts");case"Hash":return we(_,t.map(r,"pairs"));case"HashPair":return[n.key,"=",r("value")];case"TextNode":{let b=Kt(!1,n.chars,"{{","\\{{"),k=Ci(t);if(k){if(k==="class"){let J=b.trim().split(/\s+/).join(" "),ae=!1,q=!1;return t.parent.type==="ConcatStatement"&&(((s=t.previous)==null?void 0:s.type)==="MustacheStatement"&&/^\s/.test(b)&&(ae=!0),((a=t.next)==null?void 0:a.type)==="MustacheStatement"&&/\s$/.test(b)&&J!==""&&(q=!0)),[ae?_:"",J,q?_:""]}return Fr(b)}let N=G.isWhitespaceOnly(b),{isFirst:B,isLast:w}=t;if(e.htmlWhitespaceSensitivity!=="ignore"){let J=w&&t.parent.type==="Template",ae=B&&t.parent.type==="Template";if(N){if(ae||J)return"";let A=[_],le=Ve(b);return le&&(A=it(le)),w&&(A=A.map(ct=>Jt(ct))),A}let q=G.getLeadingWhitespace(b),Ae=[];if(q){Ae=[_];let A=Ve(q);A&&(Ae=it(A)),b=b.slice(q.length)}let V=G.getTrailingWhitespace(b),oe=[];if(V){if(!J){oe=[_];let A=Ve(V);A&&(oe=it(A)),w&&(oe=oe.map(le=>Jt(le)))}b=b.slice(0,-V.length)}return[...Ae,Xt(an(b)),...oe]}let se=Ve(b),R=Ai(b),Q=_i(b);if((B||w)&&N&&(t.parent.type==="Block"||t.parent.type==="ElementNode"||t.parent.type==="Template"))return"";N&&se?(R=Math.min(se,ln),Q=0):((((l=t.next)==null?void 0:l.type)==="BlockStatement"||((c=t.next)==null?void 0:c.type)==="ElementNode")&&(Q=Math.max(Q,1)),(((h=t.previous)==null?void 0:h.type)==="BlockStatement"||((g=t.previous)==null?void 0:g.type)==="ElementNode")&&(R=Math.max(R,1)));let Ne="",Ce="";return Q===0&&((y=t.next)==null?void 0:y.type)==="MustacheStatement"&&(Ce=" "),R===0&&((F=t.previous)==null?void 0:F.type)==="MustacheStatement"&&(Ne=" "),B&&(R=0,Ne=""),w&&(Q=0,Ce=""),G.hasLeadingWhitespace(b)&&(b=Ne+G.trimStart(b)),G.hasTrailingWhitespace(b)&&(b=G.trimEnd(b)+Ce),[...it(R),Xt(an(b)),...it(Q)]}case"MustacheCommentStatement":{let b=xe(n),k=tt(n),N=e.originalText.charAt(b+2)==="~",B=e.originalText.charAt(k-3)==="~",w=n.value.includes("}}")?"--":"";return["{{",N?"~":"","!",w,n.value,w,B?"~":"","}}"]}case"PathExpression":return n.original;case"BooleanLiteral":return String(n.value);case"CommentStatement":return[""];case"StringLiteral":return Li(t,e);case"NumberLiteral":return String(n.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Gr(n,"Handlebars")}}function bi(t,e){return xe(t)-xe(e)}function yi(t,e){let{node:r}=t,n=["attributes","modifiers","comments"].filter(s=>et(r[s])),i=n.flatMap(s=>r[s]).sort(bi);for(let s of n)t.each(({node:a})=>{let l=i.indexOf(a);i.splice(l,1,[_,e()])},s);return et(r.blockParams)&&i.push(_,sr(r)),["<",r.tag,O(i),Si(r)]}function en(t,e,r){let{node:n}=t,i=n.children.every(s=>gt(s));return e.htmlWhitespaceSensitivity==="ignore"&&i?"":t.map(({isFirst:s})=>{let a=r();return s&&e.htmlWhitespaceSensitivity==="ignore"?[M,a]:a},"children")}function Si(t){return rr(t)?$t([M,"/>"],[" />",M]):$t([M,">"],">")}function bt(t){var n;let e=t.escaped===!1?"{{{":"{{",r=(n=t.strip)!=null&&n.open?"~":"";return[e,r]}function yt(t){var n;let e=t.escaped===!1?"}}}":"}}";return[(n=t.strip)!=null&&n.close?"~":"",e]}function Ei(t){let e=bt(t),r=t.openStrip.open?"~":"";return[e,r,"#"]}function Ti(t){let e=yt(t);return[t.openStrip.close?"~":"",e]}function tn(t){let e=bt(t),r=t.closeStrip.open?"~":"";return[e,r,"/"]}function rn(t){let e=yt(t);return[t.closeStrip.close?"~":"",e]}function cn(t){let e=bt(t),r=t.inverseStrip.open?"~":"";return[e,r]}function un(t){let e=yt(t);return[t.inverseStrip.close?"~":"",e]}function vi(t,e){let{node:r}=t,n=[],i=St(t,e);return i&&n.push(I(i)),et(r.program.blockParams)&&n.push(sr(r.program)),I([Ei(r),ir(t,e),n.length>0?O([_,we(_,n)]):"",M,Ti(r)])}function wi(t,e){return[e.htmlWhitespaceSensitivity==="ignore"?ve:"",cn(t),"else",un(t)]}function xi(t){var n;let{grandparent:e,node:r}=t;return((n=e==null?void 0:e.inverse)==null?void 0:n.body.length)===1&&e.inverse.body[0]===r&&e.inverse.body[0].path.parts[0]===e.path.parts[0]}function ki(t,e){let{node:r,grandparent:n}=t;return I([cn(n),["else"," ",n.inverse.body[0].path.parts[0]],O([_,I(St(t,e)),...et(r.program.blockParams)?[_,sr(r.program)]:[]]),M,un(n)])}function Pi(t,e,r){let{node:n}=t;return r.htmlWhitespaceSensitivity==="ignore"?[hn(n)?M:ve,tn(n),e("path"),rn(n)]:[tn(n),e("path"),rn(n)]}function hn(t){return t.type==="BlockStatement"&&t.program.body.every(e=>gt(e))}function Ni(t){return pn(t)&&t.inverse.body.length===1&&t.inverse.body[0].type==="BlockStatement"&&t.inverse.body[0].path.parts[0]===t.path.parts[0]}function pn(t){return t.type==="BlockStatement"&&t.inverse}function nn(t,e,r){let{node:n}=t;if(hn(n))return"";let i=e("program");return r.htmlWhitespaceSensitivity==="ignore"?O([ve,i]):O(i)}function sn(t,e,r){let{node:n}=t,i=e("inverse"),s=r.htmlWhitespaceSensitivity==="ignore"?[ve,i]:i;return Ni(n)?s:pn(n)?[wi(n,r),O(s)]:""}function an(t){return we(_,G.split(t))}function Ci(t){for(let e=0;e<2;e++){let r=t.getParentNode(e);if((r==null?void 0:r.type)==="AttrNode")return r.name.toLowerCase()}}function Ve(t){return t=typeof t=="string"?t:"",t.split(` -`).length-1}function Ai(t){t=typeof t=="string"?t:"";let e=(t.match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"";return Ve(e)}function _i(t){t=typeof t=="string"?t:"";let e=(t.match(/([\n\r][^\S\n\r]*)+$/g)||[])[0]||"";return Ve(e)}function it(t=0){return Array.from({length:Math.min(t,ln)}).fill(ve)}function Li(t,e){let{node:{value:r}}=t,n=mt(r,Di(t)?!e.singleQuote:e.singleQuote);return[n,Kt(!1,r,n,`\\${n}`),n]}function Di(t){let{ancestors:e}=t,r=e.findIndex(n=>n.type!=="SubExpression");return r!==-1&&e[r+1].type==="ConcatStatement"&&e[r+2].type==="AttrNode"}function Oi(t,e){let r=ir(t,e),n=St(t,e);return n?O([r,_,I(n)]):r}function on(t,e){let r=ir(t,e),n=St(t,e);return n?[O([r,_,n]),M]:r}function ir(t,e){return e("path")}function St(t,e){var i;let{node:r}=t,n=[];return r.params.length>0&&n.push(...t.map(e,"params")),((i=r.hash)==null?void 0:i.pairs.length)>0&&n.push(e("hash")),n.length===0?"":we(_,n)}function sr(t){return["as |",t.blockParams.join(" "),"|"]}var Ii={print:gi,massageAstNode:Wr,hasPrettierIgnore:Jr,getVisitorKeys:Zr},fn=Ii;var qt={};Wt(qt,{glimmer:()=>Xs});var Bi=Object.freeze([]);function dn(){return Bi}var co=dn(),uo=dn();var pe=Object.assign;var vo=function(){return typeof Symbol!="function"?!1:typeof Symbol()=="symbol"}();var T=(...t)=>t;function qi(t){return t&-536870913}function Vi(t){return t|536870912}function Hi(t){return~t}function Ui(t){return~t}function Fi(t){return t|=0,t<0?qi(t):Hi(t)}function Mi(t){return t|=0,t>-536870913?Ui(t):Vi(t)}[1,2,3].forEach(t=>t);[1,-1].forEach(t=>Mi(Fi(t)));function He(t){return t.length>0}function mn(t,e="unexpected empty list"){if(!He(t))throw new Error(e)}var Gi;if(!1){let t=n=>{let i=n.name;if(i===void 0){let s=Function.prototype.toString.call(n).match(/function (\w+)\s*\(/);i=s&&s[1]||""}return i.replace(/^bound /,"")},e=n=>{let i,s;return n.constructor&&typeof n.constructor=="function"&&(s=t(n.constructor)),"toString"in n&&n.toString!==Object.prototype.toString&&n.toString!==Function.prototype.toString&&(i=n.toString()),i&&i.match(/<.*:ember\d+>/)&&s&&s[0]!=="_"&&s.length>2&&s!=="Class"?i.replace(/<.*:/,`<${s}:`):i||s},r=n=>String(n);Gi=n=>typeof n=="function"?t(n)||"(unknown function)":typeof n=="object"&&n!==null?e(n)||"(unknown object)":r(n)}var gn=console;function bn(t,e="unexpected unreachable branch"){throw gn.log("unreachable",t),gn.log(`${e} :: ${JSON.stringify(t)} (${t})`),new Error("code reached unreachable")}var Yi=function(){var t=function(ce,p,m,f){for(m=m||{},f=ce.length;f--;m[ce[f]]=p);return m},e=[2,44],r=[1,20],n=[5,14,15,19,29,34,39,44,47,48,52,56,60],i=[1,35],s=[1,38],a=[1,30],l=[1,31],c=[1,32],h=[1,33],g=[1,34],y=[1,37],F=[14,15,19,29,34,39,44,47,48,52,56,60],b=[14,15,19,29,34,44,47,48,52,56,60],k=[15,18],N=[14,15,19,29,34,47,48,52,56,60],B=[33,64,71,79,80,81,82,83,84],w=[23,33,55,64,67,71,74,79,80,81,82,83,84],se=[1,51],R=[23,33,55,64,67,71,74,79,80,81,82,83,84,86],Q=[2,43],Ne=[55,64,71,79,80,81,82,83,84],Ce=[1,58],J=[1,59],ae=[1,66],q=[33,64,71,74,79,80,81,82,83,84],Ae=[23,64,71,79,80,81,82,83,84],V=[1,76],oe=[64,67,71,79,80,81,82,83,84],A=[33,74],le=[23,33,55,67,71,74],ct=[1,106],Vt=[1,118],Lr=[71,76],Ht={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,expr:49,mustache_repetition0:50,mustache_option0:51,OPEN_UNESCAPED:52,mustache_repetition1:53,mustache_option1:54,CLOSE_UNESCAPED:55,OPEN_PARTIAL:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,sexpr:63,OPEN_SEXPR:64,sexpr_repetition0:65,sexpr_option0:66,CLOSE_SEXPR:67,hash:68,hash_repetition_plus0:69,hashSegment:70,ID:71,EQUALS:72,blockParams:73,OPEN_BLOCK_PARAMS:74,blockParams_repetition_plus0:75,CLOSE_BLOCK_PARAMS:76,path:77,dataName:78,STRING:79,NUMBER:80,BOOLEAN:81,UNDEFINED:82,NULL:83,DATA:84,pathSegments:85,SEP:86,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",52:"OPEN_UNESCAPED",55:"CLOSE_UNESCAPED",56:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",64:"OPEN_SEXPR",67:"CLOSE_SEXPR",71:"ID",72:"EQUALS",74:"OPEN_BLOCK_PARAMS",76:"CLOSE_BLOCK_PARAMS",79:"STRING",80:"NUMBER",81:"BOOLEAN",82:"UNDEFINED",83:"NULL",84:"DATA",86:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[49,1],[49,1],[63,5],[68,1],[70,3],[73,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[78,2],[77,1],[85,3],[85,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[50,0],[50,2],[51,0],[51,1],[53,0],[53,2],[54,0],[54,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[65,0],[65,2],[66,0],[66,1],[69,1],[69,2],[75,1],[75,2]],performAction:function(p,m,f,d,v,o,_e){var u=o.length-1;switch(v){case 1:return o[u-1];case 2:this.$=d.prepareProgram(o[u]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:this.$=o[u];break;case 9:this.$={type:"CommentStatement",value:d.stripComment(o[u]),strip:d.stripFlags(o[u],o[u]),loc:d.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:o[u],value:o[u],loc:d.locInfo(this._$)};break;case 11:this.$=d.prepareRawBlock(o[u-2],o[u-1],o[u],this._$);break;case 12:this.$={path:o[u-3],params:o[u-2],hash:o[u-1]};break;case 13:this.$=d.prepareBlock(o[u-3],o[u-2],o[u-1],o[u],!1,this._$);break;case 14:this.$=d.prepareBlock(o[u-3],o[u-2],o[u-1],o[u],!0,this._$);break;case 15:this.$={open:o[u-5],path:o[u-4],params:o[u-3],hash:o[u-2],blockParams:o[u-1],strip:d.stripFlags(o[u-5],o[u])};break;case 16:case 17:this.$={path:o[u-4],params:o[u-3],hash:o[u-2],blockParams:o[u-1],strip:d.stripFlags(o[u-5],o[u])};break;case 18:this.$={strip:d.stripFlags(o[u-1],o[u-1]),program:o[u]};break;case 19:var ue=d.prepareBlock(o[u-2],o[u-1],o[u],o[u],!1,this._$),Ye=d.prepareProgram([ue],o[u-1].loc);Ye.chained=!0,this.$={strip:o[u-2].strip,program:Ye,chain:!0};break;case 21:this.$={path:o[u-1],strip:d.stripFlags(o[u-2],o[u])};break;case 22:case 23:this.$=d.prepareMustache(o[u-3],o[u-2],o[u-1],o[u-4],d.stripFlags(o[u-4],o[u]),this._$);break;case 24:this.$={type:"PartialStatement",name:o[u-3],params:o[u-2],hash:o[u-1],indent:"",strip:d.stripFlags(o[u-4],o[u]),loc:d.locInfo(this._$)};break;case 25:this.$=d.preparePartialBlock(o[u-2],o[u-1],o[u],this._$);break;case 26:this.$={path:o[u-3],params:o[u-2],hash:o[u-1],strip:d.stripFlags(o[u-4],o[u])};break;case 29:this.$={type:"SubExpression",path:o[u-3],params:o[u-2],hash:o[u-1],loc:d.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:o[u],loc:d.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:d.id(o[u-2]),value:o[u],loc:d.locInfo(this._$)};break;case 32:this.$=d.id(o[u-1]);break;case 35:this.$={type:"StringLiteral",value:o[u],original:o[u],loc:d.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(o[u]),original:Number(o[u]),loc:d.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:o[u]==="true",original:o[u]==="true",loc:d.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:d.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:d.locInfo(this._$)};break;case 40:this.$=d.preparePath(!0,o[u],this._$);break;case 41:this.$=d.preparePath(!1,o[u],this._$);break;case 42:o[u-2].push({part:d.id(o[u]),original:o[u],separator:o[u-1]}),this.$=o[u-2];break;case 43:this.$=[{part:d.id(o[u]),original:o[u]}];break;case 44:case 46:case 48:case 56:case 62:case 68:case 76:case 80:case 84:case 88:case 92:this.$=[];break;case 45:case 47:case 49:case 57:case 63:case 69:case 77:case 81:case 85:case 89:case 93:case 97:case 99:o[u-1].push(o[u]);break;case 96:case 98:this.$=[o[u]];break}},table:[t([5,14,15,19,29,34,48,52,56,60],e,{3:1,4:2,6:3}),{1:[3]},{5:[1,4]},t([5,39,44,47],[2,2],{7:5,8:6,9:7,10:8,11:9,12:10,13:11,24:15,27:16,16:17,59:19,14:[1,12],15:r,19:[1,23],29:[1,21],34:[1,22],48:[1,13],52:[1,14],56:[1,18],60:[1,24]}),{1:[2,1]},t(n,[2,45]),t(n,[2,3]),t(n,[2,4]),t(n,[2,5]),t(n,[2,6]),t(n,[2,7]),t(n,[2,8]),t(n,[2,9]),{20:26,49:25,63:27,64:i,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{20:26,49:39,63:27,64:i,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(F,e,{6:3,4:40}),t(b,e,{6:3,4:41}),t(k,[2,46],{17:42}),{20:26,49:43,63:27,64:i,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(N,e,{6:3,4:44}),t([5,14,15,18,19,29,34,39,44,47,48,52,56,60],[2,10]),{20:45,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{20:46,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{20:47,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{20:26,49:48,63:27,64:i,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(B,[2,76],{50:49}),t(w,[2,27]),t(w,[2,28]),t(w,[2,33]),t(w,[2,34]),t(w,[2,35]),t(w,[2,36]),t(w,[2,37]),t(w,[2,38]),t(w,[2,39]),{20:26,49:50,63:27,64:i,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(w,[2,41],{86:se}),{71:s,85:52},t(R,Q),t(Ne,[2,80],{53:53}),{25:54,38:56,39:Ce,43:57,44:J,45:55,47:[2,52]},{28:60,43:61,44:J,47:[2,54]},{13:63,15:r,18:[1,62]},t(B,[2,84],{57:64}),{26:65,47:ae},t(q,[2,56],{30:67}),t(q,[2,62],{35:68}),t(Ae,[2,48],{21:69}),t(B,[2,88],{61:70}),{20:26,33:[2,78],49:72,51:71,63:27,64:i,68:73,69:74,70:75,71:V,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(oe,[2,92],{65:77}),{71:[1,78]},t(w,[2,40],{86:se}),{20:26,49:80,54:79,55:[2,82],63:27,64:i,68:81,69:74,70:75,71:V,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{26:82,47:ae},{47:[2,53]},t(F,e,{6:3,4:83}),{47:[2,20]},{20:84,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(N,e,{6:3,4:85}),{26:86,47:ae},{47:[2,55]},t(n,[2,11]),t(k,[2,47]),{20:26,33:[2,86],49:88,58:87,63:27,64:i,68:89,69:74,70:75,71:V,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(n,[2,25]),{20:90,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(A,[2,58],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,31:91,49:92,68:93,64:i,71:V,79:a,80:l,81:c,82:h,83:g,84:y}),t(A,[2,64],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,36:94,49:95,68:96,64:i,71:V,79:a,80:l,81:c,82:h,83:g,84:y}),{20:26,22:97,23:[2,50],49:98,63:27,64:i,68:99,69:74,70:75,71:V,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{20:26,33:[2,90],49:101,62:100,63:27,64:i,68:102,69:74,70:75,71:V,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{33:[1,103]},t(B,[2,77]),{33:[2,79]},t([23,33,55,67,74],[2,30],{70:104,71:[1,105]}),t(le,[2,96]),t(R,Q,{72:ct}),{20:26,49:108,63:27,64:i,66:107,67:[2,94],68:109,69:74,70:75,71:V,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(R,[2,42]),{55:[1,110]},t(Ne,[2,81]),{55:[2,83]},t(n,[2,13]),{38:56,39:Ce,43:57,44:J,45:112,46:111,47:[2,74]},t(q,[2,68],{40:113}),{47:[2,18]},t(n,[2,14]),{33:[1,114]},t(B,[2,85]),{33:[2,87]},{33:[1,115]},{32:116,33:[2,60],73:117,74:Vt},t(q,[2,57]),t(A,[2,59]),{33:[2,66],37:119,73:120,74:Vt},t(q,[2,63]),t(A,[2,65]),{23:[1,121]},t(Ae,[2,49]),{23:[2,51]},{33:[1,122]},t(B,[2,89]),{33:[2,91]},t(n,[2,22]),t(le,[2,97]),{72:ct},{20:26,49:123,63:27,64:i,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{67:[1,124]},t(oe,[2,93]),{67:[2,95]},t(n,[2,23]),{47:[2,19]},{47:[2,75]},t(A,[2,70],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,41:125,49:126,68:127,64:i,71:V,79:a,80:l,81:c,82:h,83:g,84:y}),t(n,[2,24]),t(n,[2,21]),{33:[1,128]},{33:[2,61]},{71:[1,130],75:129},{33:[1,131]},{33:[2,67]},t(k,[2,12]),t(N,[2,26]),t(le,[2,31]),t(w,[2,29]),{33:[2,72],42:132,73:133,74:Vt},t(q,[2,69]),t(A,[2,71]),t(F,[2,15]),{71:[1,135],76:[1,134]},t(Lr,[2,98]),t(b,[2,16]),{33:[1,136]},{33:[2,73]},{33:[2,32]},t(Lr,[2,99]),t(F,[2,17])],defaultActions:{4:[2,1],55:[2,53],57:[2,20],61:[2,55],73:[2,79],81:[2,83],85:[2,18],89:[2,87],99:[2,51],102:[2,91],109:[2,95],111:[2,19],112:[2,75],117:[2,61],120:[2,67],133:[2,73],134:[2,32]},parseError:function(p,m){if(m.recoverable)this.trace(p);else{var f=new Error(p);throw f.hash=m,f}},parse:function(p){var m=this,f=[0],d=[],v=[null],o=[],_e=this.table,u="",ue=0,Ye=0,Dr=0,Wn=2,Or=1,Kn=o.slice.call(arguments,1),C=Object.create(this.lexer),Se={yy:{}};for(var Ft in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ft)&&(Se.yy[Ft]=this.yy[Ft]);C.setInput(p,Se.yy),Se.yy.lexer=C,Se.yy.parser=this,typeof C.yylloc>"u"&&(C.yylloc={});var Mt=C.yylloc;o.push(Mt);var jn=C.options&&C.options.ranges;typeof Se.yy.parseError=="function"?this.parseError=Se.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Zs(W){f.length=f.length-2*W,v.length=v.length-W,o.length=o.length-W}e:var Qn=function(){var W;return W=C.lex()||Or,typeof W!="number"&&(W=m.symbols_[W]||W),W};for(var D,Gt,Ee,H,ea,Yt,Le={},ut,X,Ir,ht;;){if(Ee=f[f.length-1],this.defaultActions[Ee]?H=this.defaultActions[Ee]:((D===null||typeof D>"u")&&(D=Qn()),H=_e[Ee]&&_e[Ee][D]),typeof H>"u"||!H.length||!H[0]){var zt="";ht=[];for(ut in _e[Ee])this.terminals_[ut]&&ut>Wn&&ht.push("'"+this.terminals_[ut]+"'");C.showPosition?zt="Parse error on line "+(ue+1)+`: +Expected it to be ${n}.`}var Kt=class extends Error{name="InvalidDocError";constructor(e){super(ei(e)),this.doc=e}},jt=Kt;var Vr=()=>{},Te=Vr,ft=Vr;function O(t){return Te(t),{type:De,contents:t}}function ti(t,e){return Te(e),{type:Oe,contents:e,n:t}}function I(t,e={}){return Te(t),ft(e.expandedStates,!0),{type:Ie,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function Qt(t){return ti(-1,t)}function Jt(t){return ft(t),{type:Be,parts:t}}function Xt(t,e="",r={}){return Te(t),e!==""&&Te(e),{type:Re,breakContents:t,flatContents:e,groupId:r.groupId}}var Hr={type:qe};var ri={type:Z,hard:!0},ni={type:Z,hard:!0,literal:!0},_={type:Z},M={type:Z,soft:!0},ve=[ri,Hr],Ur=[ni,Hr];function we(t,e){Te(t),ft(e);let r=[];for(let n=0;n{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[r<0?e.length+r:r]:e.at(r)},he=ii;function si(t,e){if(typeof t=="string")return e(t);let r=new Map;return n(t);function n(s){if(r.has(s))return r.get(s);let a=i(s);return r.set(s,a),a}function i(s){switch(Ze(s)){case We:return e(s.map(n));case Be:return e({...s,parts:s.parts.map(n)});case Re:return e({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case Ie:{let{expandedStates:a,contents:l}=s;return a?(a=a.map(n),l=a[0]):l=n(l),e({...s,contents:l,expandedStates:a})}case Oe:case De:case Qe:case $e:case Je:return e({...s,contents:n(s.contents)});case ze:case Ke:case je:case Xe:case Z:case qe:return e(s);default:throw new jt(s)}}}function Fr(t,e=Ur){return si(t,r=>typeof r=="string"?we(e,r.split(` +`)):r)}var dt="'",Mr='"';function ai(t,e){let r=e===!0||e===dt?dt:Mr,n=r===dt?Mr:dt,i=0,s=0;for(let a of t)a===r?i++:a===n&&s++;return i>s?n:r}var mt=ai;function oi(t){return Array.isArray(t)&&t.length>0}var et=oi;var $t=class extends Error{name="UnexpectedNodeError";constructor(e,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},Gr=$t;function Zt(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var U,er=class{constructor(e){Rr(this,U,void 0);qr(this,U,new Set(e))}getLeadingWhitespaceCount(e){let r=$(this,U),n=0;for(let i=0;i=0&&r.has(e.charAt(i));i--)n++;return n}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return $(this,U).has(e.charAt(0))}hasTrailingWhitespace(e){return $(this,U).has(he(!1,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let n=`[${Zt([...$(this,U)].join(""))}]+`,i=new RegExp(r?`(${n})`:n);return e.split(i)}hasWhitespaceCharacter(e){let r=$(this,U);return Array.prototype.some.call(e,n=>r.has(n))}hasNonWhitespaceCharacter(e){let r=$(this,U);return Array.prototype.some.call(e,n=>!r.has(n))}isWhitespaceOnly(e){let r=$(this,U);return Array.prototype.every.call(e,n=>r.has(n))}};U=new WeakMap;var Yr=er;var li=[" ",` +`,"\f","\r"," "],ci=new Yr(li),G=ci;function xe(t){return t.loc.start.offset}function tt(t){return t.loc.end.offset}function zr(t,e){if(t.type==="TextNode"){let r=t.chars.trim();if(!r)return null;e.chars=G.split(r).join(" ")}t.type==="AttrNode"&&t.name.toLowerCase()==="class"&&delete e.value}zr.ignoredProperties=new Set(["loc","selfClosing"]);var Wr=zr;var Kr=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function Qr(t){return t.toUpperCase()===t}function ui(t){return t.type==="ElementNode"&&typeof t.tag=="string"&&!t.tag.startsWith(":")&&(Qr(t.tag[0])||t.tag.includes("."))}var hi=new Set(Kr);function pi(t){return hi.has(t.toLowerCase())&&!Qr(t[0])}function tr(t){return t.selfClosing===!0||pi(t.tag)||ui(t)&&t.children.every(e=>gt(e))}function gt(t){return t.type==="TextNode"&&!/\S/.test(t.chars)}function jr(t){return(t==null?void 0:t.type)==="MustacheCommentStatement"&&typeof t.value=="string"&&t.value.trim()==="prettier-ignore"}function Jr(t){return jr(t.node)||t.isInArray&&(t.key==="children"||t.key==="body"||t.key==="parts")&&jr(t.siblings[t.index-2])}var rt=null;function nt(t){if(rt!==null&&typeof rt.property){let e=rt;return rt=nt.prototype=null,e}return rt=nt.prototype=t??Object.create(null),new nt}var fi=10;for(let t=0;t<=fi;t++)nt();function rr(t){return nt(t)}function di(t,e="type"){rr(t);function r(n){let i=n[e],s=t[i];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:n});return s}return r}var Xr=di;var $r={Program:["body"],Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],PartialStatement:["name","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],PathHead:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"],NamedBlock:["attributes","modifiers","children","comments"],SimpleElement:["attributes","modifiers","children","comments"],Component:["head","attributes","modifiers","children","comments"]};var mi=Xr($r),Zr=mi;var ln=2;function gi(t,e,r){var i,s,a,l,c,h,g,y,F;let{node:n}=t;switch(n.type){case"Block":case"Program":case"Template":return I(t.map(r,"body"));case"ElementNode":{let b=I(yi(t,r)),k=e.htmlWhitespaceSensitivity==="ignore"&&((i=t.next)==null?void 0:i.type)==="ElementNode"?M:"";if(tr(n))return[b,k];let N=[""];return n.children.length===0?[b,O(N),k]:e.htmlWhitespaceSensitivity==="ignore"?[b,O(en(t,e,r)),ve,O(N),k]:[b,O(I(en(t,e,r))),O(N),k]}case"BlockStatement":return xi(t)?[ki(t,r),nn(t,r,e),sn(t,r,e)]:[vi(t,r),I([nn(t,r,e),sn(t,r,e),Pi(t,r,e)])];case"ElementModifierStatement":return I(["{{",on(t,r),"}}"]);case"MustacheStatement":return I([bt(n),on(t,r),yt(n)]);case"SubExpression":return I(["(",Oi(t,r),M,")"]);case"AttrNode":{let{name:b,value:k}=n,N=k.type==="TextNode";if(N&&k.chars===""&&xe(k)===tt(k))return b;let w=N?mt(k.chars,e.singleQuote):k.type==="ConcatStatement"?mt(k.parts.map(R=>R.type==="TextNode"?R.chars:"").join(""),e.singleQuote):"",se=r("value");return[b,"=",w,b==="class"&&w?I(O(se)):se,w]}case"ConcatStatement":return t.map(r,"parts");case"Hash":return we(_,t.map(r,"pairs"));case"HashPair":return[n.key,"=",r("value")];case"TextNode":{let b=Wt(!1,n.chars,"{{","\\{{"),k=Ci(t);if(k){if(k==="class"){let J=b.trim().split(/\s+/).join(" "),ae=!1,q=!1;return t.parent.type==="ConcatStatement"&&(((s=t.previous)==null?void 0:s.type)==="MustacheStatement"&&/^\s/.test(b)&&(ae=!0),((a=t.next)==null?void 0:a.type)==="MustacheStatement"&&/\s$/.test(b)&&J!==""&&(q=!0)),[ae?_:"",J,q?_:""]}return Fr(b)}let N=G.isWhitespaceOnly(b),{isFirst:B,isLast:w}=t;if(e.htmlWhitespaceSensitivity!=="ignore"){let J=w&&t.parent.type==="Template",ae=B&&t.parent.type==="Template";if(N){if(ae||J)return"";let A=[_],le=Ve(b);return le&&(A=it(le)),w&&(A=A.map(ct=>Qt(ct))),A}let q=G.getLeadingWhitespace(b),Ae=[];if(q){Ae=[_];let A=Ve(q);A&&(Ae=it(A)),b=b.slice(q.length)}let V=G.getTrailingWhitespace(b),oe=[];if(V){if(!J){oe=[_];let A=Ve(V);A&&(oe=it(A)),w&&(oe=oe.map(le=>Qt(le)))}b=b.slice(0,-V.length)}return[...Ae,Jt(an(b)),...oe]}let se=Ve(b),R=Ai(b),Q=_i(b);if((B||w)&&N&&(t.parent.type==="Block"||t.parent.type==="ElementNode"||t.parent.type==="Template"))return"";N&&se?(R=Math.min(se,ln),Q=0):((((l=t.next)==null?void 0:l.type)==="BlockStatement"||((c=t.next)==null?void 0:c.type)==="ElementNode")&&(Q=Math.max(Q,1)),(((h=t.previous)==null?void 0:h.type)==="BlockStatement"||((g=t.previous)==null?void 0:g.type)==="ElementNode")&&(R=Math.max(R,1)));let Ne="",Ce="";return Q===0&&((y=t.next)==null?void 0:y.type)==="MustacheStatement"&&(Ce=" "),R===0&&((F=t.previous)==null?void 0:F.type)==="MustacheStatement"&&(Ne=" "),B&&(R=0,Ne=""),w&&(Q=0,Ce=""),G.hasLeadingWhitespace(b)&&(b=Ne+G.trimStart(b)),G.hasTrailingWhitespace(b)&&(b=G.trimEnd(b)+Ce),[...it(R),Jt(an(b)),...it(Q)]}case"MustacheCommentStatement":{let b=xe(n),k=tt(n),N=e.originalText.charAt(b+2)==="~",B=e.originalText.charAt(k-3)==="~",w=n.value.includes("}}")?"--":"";return["{{",N?"~":"","!",w,n.value,w,B?"~":"","}}"]}case"PathExpression":return n.original;case"BooleanLiteral":return String(n.value);case"CommentStatement":return[""];case"StringLiteral":return Li(t,e);case"NumberLiteral":return String(n.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Gr(n,"Handlebars")}}function bi(t,e){return xe(t)-xe(e)}function yi(t,e){let{node:r}=t,n=["attributes","modifiers","comments"].filter(s=>et(r[s])),i=n.flatMap(s=>r[s]).sort(bi);for(let s of n)t.each(({node:a})=>{let l=i.indexOf(a);i.splice(l,1,[_,e()])},s);return et(r.blockParams)&&i.push(_,ir(r)),["<",r.tag,O(i),Si(r)]}function en(t,e,r){let{node:n}=t,i=n.children.every(s=>gt(s));return e.htmlWhitespaceSensitivity==="ignore"&&i?"":t.map(({isFirst:s})=>{let a=r();return s&&e.htmlWhitespaceSensitivity==="ignore"?[M,a]:a},"children")}function Si(t){return tr(t)?Xt([M,"/>"],[" />",M]):Xt([M,">"],">")}function bt(t){var n;let e=t.escaped===!1?"{{{":"{{",r=(n=t.strip)!=null&&n.open?"~":"";return[e,r]}function yt(t){var n;let e=t.escaped===!1?"}}}":"}}";return[(n=t.strip)!=null&&n.close?"~":"",e]}function Ei(t){let e=bt(t),r=t.openStrip.open?"~":"";return[e,r,"#"]}function Ti(t){let e=yt(t);return[t.openStrip.close?"~":"",e]}function tn(t){let e=bt(t),r=t.closeStrip.open?"~":"";return[e,r,"/"]}function rn(t){let e=yt(t);return[t.closeStrip.close?"~":"",e]}function cn(t){let e=bt(t),r=t.inverseStrip.open?"~":"";return[e,r]}function un(t){let e=yt(t);return[t.inverseStrip.close?"~":"",e]}function vi(t,e){let{node:r}=t,n=[],i=St(t,e);return i&&n.push(I(i)),et(r.program.blockParams)&&n.push(ir(r.program)),I([Ei(r),nr(t,e),n.length>0?O([_,we(_,n)]):"",M,Ti(r)])}function wi(t,e){return[e.htmlWhitespaceSensitivity==="ignore"?ve:"",cn(t),"else",un(t)]}function xi(t){var n;let{grandparent:e,node:r}=t;return((n=e==null?void 0:e.inverse)==null?void 0:n.body.length)===1&&e.inverse.body[0]===r&&e.inverse.body[0].path.parts[0]===e.path.parts[0]}function ki(t,e){let{node:r,grandparent:n}=t;return I([cn(n),["else"," ",n.inverse.body[0].path.parts[0]],O([_,I(St(t,e)),...et(r.program.blockParams)?[_,ir(r.program)]:[]]),M,un(n)])}function Pi(t,e,r){let{node:n}=t;return r.htmlWhitespaceSensitivity==="ignore"?[hn(n)?M:ve,tn(n),e("path"),rn(n)]:[tn(n),e("path"),rn(n)]}function hn(t){return t.type==="BlockStatement"&&t.program.body.every(e=>gt(e))}function Ni(t){return pn(t)&&t.inverse.body.length===1&&t.inverse.body[0].type==="BlockStatement"&&t.inverse.body[0].path.parts[0]===t.path.parts[0]}function pn(t){return t.type==="BlockStatement"&&t.inverse}function nn(t,e,r){let{node:n}=t;if(hn(n))return"";let i=e("program");return r.htmlWhitespaceSensitivity==="ignore"?O([ve,i]):O(i)}function sn(t,e,r){let{node:n}=t,i=e("inverse"),s=r.htmlWhitespaceSensitivity==="ignore"?[ve,i]:i;return Ni(n)?s:pn(n)?[wi(n,r),O(s)]:""}function an(t){return we(_,G.split(t))}function Ci(t){for(let e=0;e<2;e++){let r=t.getParentNode(e);if((r==null?void 0:r.type)==="AttrNode")return r.name.toLowerCase()}}function Ve(t){return t=typeof t=="string"?t:"",t.split(` +`).length-1}function Ai(t){t=typeof t=="string"?t:"";let e=(t.match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"";return Ve(e)}function _i(t){t=typeof t=="string"?t:"";let e=(t.match(/([\n\r][^\S\n\r]*)+$/g)||[])[0]||"";return Ve(e)}function it(t=0){return Array.from({length:Math.min(t,ln)}).fill(ve)}function Li(t,e){let{node:{value:r}}=t,n=mt(r,Di(t)?!e.singleQuote:e.singleQuote);return[n,Wt(!1,r,n,`\\${n}`),n]}function Di(t){let{ancestors:e}=t,r=e.findIndex(n=>n.type!=="SubExpression");return r!==-1&&e[r+1].type==="ConcatStatement"&&e[r+2].type==="AttrNode"}function Oi(t,e){let r=nr(t,e),n=St(t,e);return n?O([r,_,I(n)]):r}function on(t,e){let r=nr(t,e),n=St(t,e);return n?[O([r,_,n]),M]:r}function nr(t,e){return e("path")}function St(t,e){var i;let{node:r}=t,n=[];return r.params.length>0&&n.push(...t.map(e,"params")),((i=r.hash)==null?void 0:i.pairs.length)>0&&n.push(e("hash")),n.length===0?"":we(_,n)}function ir(t){return["as |",t.blockParams.join(" "),"|"]}var Ii={print:gi,massageAstNode:Wr,hasPrettierIgnore:Jr,getVisitorKeys:Zr},fn=Ii;var Ar={};zt(Ar,{glimmer:()=>Xs});var Bi=Object.freeze([]);function dn(){return Bi}var co=dn(),uo=dn();var pe=Object.assign;var vo=function(){return typeof Symbol!="function"?!1:typeof Symbol()=="symbol"}();var T=(...t)=>t;function qi(t){return t&-536870913}function Vi(t){return t|536870912}function Hi(t){return~t}function Ui(t){return~t}function Fi(t){return t|=0,t<0?qi(t):Hi(t)}function Mi(t){return t|=0,t>-536870913?Ui(t):Vi(t)}[1,2,3].forEach(t=>t);[1,-1].forEach(t=>Mi(Fi(t)));function He(t){return t.length>0}function mn(t,e="unexpected empty list"){if(!He(t))throw new Error(e)}var Gi;if(!1){let t=n=>{let i=n.name;if(i===void 0){let s=Function.prototype.toString.call(n).match(/function (\w+)\s*\(/);i=s&&s[1]||""}return i.replace(/^bound /,"")},e=n=>{let i,s;return n.constructor&&typeof n.constructor=="function"&&(s=t(n.constructor)),"toString"in n&&n.toString!==Object.prototype.toString&&n.toString!==Function.prototype.toString&&(i=n.toString()),i&&i.match(/<.*:ember\d+>/)&&s&&s[0]!=="_"&&s.length>2&&s!=="Class"?i.replace(/<.*:/,`<${s}:`):i||s},r=n=>String(n);Gi=n=>typeof n=="function"?t(n)||"(unknown function)":typeof n=="object"&&n!==null?e(n)||"(unknown object)":r(n)}var gn=console;function bn(t,e="unexpected unreachable branch"){throw gn.log("unreachable",t),gn.log(`${e} :: ${JSON.stringify(t)} (${t})`),new Error("code reached unreachable")}var Yi=function(){var t=function(ce,p,m,f){for(m=m||{},f=ce.length;f--;m[ce[f]]=p);return m},e=[2,44],r=[1,20],n=[5,14,15,19,29,34,39,44,47,48,52,56,60],i=[1,35],s=[1,38],a=[1,30],l=[1,31],c=[1,32],h=[1,33],g=[1,34],y=[1,37],F=[14,15,19,29,34,39,44,47,48,52,56,60],b=[14,15,19,29,34,44,47,48,52,56,60],k=[15,18],N=[14,15,19,29,34,47,48,52,56,60],B=[33,64,71,79,80,81,82,83,84],w=[23,33,55,64,67,71,74,79,80,81,82,83,84],se=[1,51],R=[23,33,55,64,67,71,74,79,80,81,82,83,84,86],Q=[2,43],Ne=[55,64,71,79,80,81,82,83,84],Ce=[1,58],J=[1,59],ae=[1,66],q=[33,64,71,74,79,80,81,82,83,84],Ae=[23,64,71,79,80,81,82,83,84],V=[1,76],oe=[64,67,71,79,80,81,82,83,84],A=[33,74],le=[23,33,55,67,71,74],ct=[1,106],qt=[1,118],Lr=[71,76],Vt={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,expr:49,mustache_repetition0:50,mustache_option0:51,OPEN_UNESCAPED:52,mustache_repetition1:53,mustache_option1:54,CLOSE_UNESCAPED:55,OPEN_PARTIAL:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,sexpr:63,OPEN_SEXPR:64,sexpr_repetition0:65,sexpr_option0:66,CLOSE_SEXPR:67,hash:68,hash_repetition_plus0:69,hashSegment:70,ID:71,EQUALS:72,blockParams:73,OPEN_BLOCK_PARAMS:74,blockParams_repetition_plus0:75,CLOSE_BLOCK_PARAMS:76,path:77,dataName:78,STRING:79,NUMBER:80,BOOLEAN:81,UNDEFINED:82,NULL:83,DATA:84,pathSegments:85,SEP:86,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",52:"OPEN_UNESCAPED",55:"CLOSE_UNESCAPED",56:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",64:"OPEN_SEXPR",67:"CLOSE_SEXPR",71:"ID",72:"EQUALS",74:"OPEN_BLOCK_PARAMS",76:"CLOSE_BLOCK_PARAMS",79:"STRING",80:"NUMBER",81:"BOOLEAN",82:"UNDEFINED",83:"NULL",84:"DATA",86:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[49,1],[49,1],[63,5],[68,1],[70,3],[73,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[78,2],[77,1],[85,3],[85,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[50,0],[50,2],[51,0],[51,1],[53,0],[53,2],[54,0],[54,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[65,0],[65,2],[66,0],[66,1],[69,1],[69,2],[75,1],[75,2]],performAction:function(p,m,f,d,v,o,_e){var u=o.length-1;switch(v){case 1:return o[u-1];case 2:this.$=d.prepareProgram(o[u]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:this.$=o[u];break;case 9:this.$={type:"CommentStatement",value:d.stripComment(o[u]),strip:d.stripFlags(o[u],o[u]),loc:d.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:o[u],value:o[u],loc:d.locInfo(this._$)};break;case 11:this.$=d.prepareRawBlock(o[u-2],o[u-1],o[u],this._$);break;case 12:this.$={path:o[u-3],params:o[u-2],hash:o[u-1]};break;case 13:this.$=d.prepareBlock(o[u-3],o[u-2],o[u-1],o[u],!1,this._$);break;case 14:this.$=d.prepareBlock(o[u-3],o[u-2],o[u-1],o[u],!0,this._$);break;case 15:this.$={open:o[u-5],path:o[u-4],params:o[u-3],hash:o[u-2],blockParams:o[u-1],strip:d.stripFlags(o[u-5],o[u])};break;case 16:case 17:this.$={path:o[u-4],params:o[u-3],hash:o[u-2],blockParams:o[u-1],strip:d.stripFlags(o[u-5],o[u])};break;case 18:this.$={strip:d.stripFlags(o[u-1],o[u-1]),program:o[u]};break;case 19:var ue=d.prepareBlock(o[u-2],o[u-1],o[u],o[u],!1,this._$),Ye=d.prepareProgram([ue],o[u-1].loc);Ye.chained=!0,this.$={strip:o[u-2].strip,program:Ye,chain:!0};break;case 21:this.$={path:o[u-1],strip:d.stripFlags(o[u-2],o[u])};break;case 22:case 23:this.$=d.prepareMustache(o[u-3],o[u-2],o[u-1],o[u-4],d.stripFlags(o[u-4],o[u]),this._$);break;case 24:this.$={type:"PartialStatement",name:o[u-3],params:o[u-2],hash:o[u-1],indent:"",strip:d.stripFlags(o[u-4],o[u]),loc:d.locInfo(this._$)};break;case 25:this.$=d.preparePartialBlock(o[u-2],o[u-1],o[u],this._$);break;case 26:this.$={path:o[u-3],params:o[u-2],hash:o[u-1],strip:d.stripFlags(o[u-4],o[u])};break;case 29:this.$={type:"SubExpression",path:o[u-3],params:o[u-2],hash:o[u-1],loc:d.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:o[u],loc:d.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:d.id(o[u-2]),value:o[u],loc:d.locInfo(this._$)};break;case 32:this.$=d.id(o[u-1]);break;case 35:this.$={type:"StringLiteral",value:o[u],original:o[u],loc:d.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(o[u]),original:Number(o[u]),loc:d.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:o[u]==="true",original:o[u]==="true",loc:d.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:d.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:d.locInfo(this._$)};break;case 40:this.$=d.preparePath(!0,o[u],this._$);break;case 41:this.$=d.preparePath(!1,o[u],this._$);break;case 42:o[u-2].push({part:d.id(o[u]),original:o[u],separator:o[u-1]}),this.$=o[u-2];break;case 43:this.$=[{part:d.id(o[u]),original:o[u]}];break;case 44:case 46:case 48:case 56:case 62:case 68:case 76:case 80:case 84:case 88:case 92:this.$=[];break;case 45:case 47:case 49:case 57:case 63:case 69:case 77:case 81:case 85:case 89:case 93:case 97:case 99:o[u-1].push(o[u]);break;case 96:case 98:this.$=[o[u]];break}},table:[t([5,14,15,19,29,34,48,52,56,60],e,{3:1,4:2,6:3}),{1:[3]},{5:[1,4]},t([5,39,44,47],[2,2],{7:5,8:6,9:7,10:8,11:9,12:10,13:11,24:15,27:16,16:17,59:19,14:[1,12],15:r,19:[1,23],29:[1,21],34:[1,22],48:[1,13],52:[1,14],56:[1,18],60:[1,24]}),{1:[2,1]},t(n,[2,45]),t(n,[2,3]),t(n,[2,4]),t(n,[2,5]),t(n,[2,6]),t(n,[2,7]),t(n,[2,8]),t(n,[2,9]),{20:26,49:25,63:27,64:i,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{20:26,49:39,63:27,64:i,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(F,e,{6:3,4:40}),t(b,e,{6:3,4:41}),t(k,[2,46],{17:42}),{20:26,49:43,63:27,64:i,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(N,e,{6:3,4:44}),t([5,14,15,18,19,29,34,39,44,47,48,52,56,60],[2,10]),{20:45,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{20:46,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{20:47,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{20:26,49:48,63:27,64:i,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(B,[2,76],{50:49}),t(w,[2,27]),t(w,[2,28]),t(w,[2,33]),t(w,[2,34]),t(w,[2,35]),t(w,[2,36]),t(w,[2,37]),t(w,[2,38]),t(w,[2,39]),{20:26,49:50,63:27,64:i,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(w,[2,41],{86:se}),{71:s,85:52},t(R,Q),t(Ne,[2,80],{53:53}),{25:54,38:56,39:Ce,43:57,44:J,45:55,47:[2,52]},{28:60,43:61,44:J,47:[2,54]},{13:63,15:r,18:[1,62]},t(B,[2,84],{57:64}),{26:65,47:ae},t(q,[2,56],{30:67}),t(q,[2,62],{35:68}),t(Ae,[2,48],{21:69}),t(B,[2,88],{61:70}),{20:26,33:[2,78],49:72,51:71,63:27,64:i,68:73,69:74,70:75,71:V,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(oe,[2,92],{65:77}),{71:[1,78]},t(w,[2,40],{86:se}),{20:26,49:80,54:79,55:[2,82],63:27,64:i,68:81,69:74,70:75,71:V,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{26:82,47:ae},{47:[2,53]},t(F,e,{6:3,4:83}),{47:[2,20]},{20:84,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(N,e,{6:3,4:85}),{26:86,47:ae},{47:[2,55]},t(n,[2,11]),t(k,[2,47]),{20:26,33:[2,86],49:88,58:87,63:27,64:i,68:89,69:74,70:75,71:V,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(n,[2,25]),{20:90,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(A,[2,58],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,31:91,49:92,68:93,64:i,71:V,79:a,80:l,81:c,82:h,83:g,84:y}),t(A,[2,64],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,36:94,49:95,68:96,64:i,71:V,79:a,80:l,81:c,82:h,83:g,84:y}),{20:26,22:97,23:[2,50],49:98,63:27,64:i,68:99,69:74,70:75,71:V,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{20:26,33:[2,90],49:101,62:100,63:27,64:i,68:102,69:74,70:75,71:V,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{33:[1,103]},t(B,[2,77]),{33:[2,79]},t([23,33,55,67,74],[2,30],{70:104,71:[1,105]}),t(le,[2,96]),t(R,Q,{72:ct}),{20:26,49:108,63:27,64:i,66:107,67:[2,94],68:109,69:74,70:75,71:V,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},t(R,[2,42]),{55:[1,110]},t(Ne,[2,81]),{55:[2,83]},t(n,[2,13]),{38:56,39:Ce,43:57,44:J,45:112,46:111,47:[2,74]},t(q,[2,68],{40:113}),{47:[2,18]},t(n,[2,14]),{33:[1,114]},t(B,[2,85]),{33:[2,87]},{33:[1,115]},{32:116,33:[2,60],73:117,74:qt},t(q,[2,57]),t(A,[2,59]),{33:[2,66],37:119,73:120,74:qt},t(q,[2,63]),t(A,[2,65]),{23:[1,121]},t(Ae,[2,49]),{23:[2,51]},{33:[1,122]},t(B,[2,89]),{33:[2,91]},t(n,[2,22]),t(le,[2,97]),{72:ct},{20:26,49:123,63:27,64:i,71:s,77:28,78:29,79:a,80:l,81:c,82:h,83:g,84:y,85:36},{67:[1,124]},t(oe,[2,93]),{67:[2,95]},t(n,[2,23]),{47:[2,19]},{47:[2,75]},t(A,[2,70],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,41:125,49:126,68:127,64:i,71:V,79:a,80:l,81:c,82:h,83:g,84:y}),t(n,[2,24]),t(n,[2,21]),{33:[1,128]},{33:[2,61]},{71:[1,130],75:129},{33:[1,131]},{33:[2,67]},t(k,[2,12]),t(N,[2,26]),t(le,[2,31]),t(w,[2,29]),{33:[2,72],42:132,73:133,74:qt},t(q,[2,69]),t(A,[2,71]),t(F,[2,15]),{71:[1,135],76:[1,134]},t(Lr,[2,98]),t(b,[2,16]),{33:[1,136]},{33:[2,73]},{33:[2,32]},t(Lr,[2,99]),t(F,[2,17])],defaultActions:{4:[2,1],55:[2,53],57:[2,20],61:[2,55],73:[2,79],81:[2,83],85:[2,18],89:[2,87],99:[2,51],102:[2,91],109:[2,95],111:[2,19],112:[2,75],117:[2,61],120:[2,67],133:[2,73],134:[2,32]},parseError:function(p,m){if(m.recoverable)this.trace(p);else{var f=new Error(p);throw f.hash=m,f}},parse:function(p){var m=this,f=[0],d=[],v=[null],o=[],_e=this.table,u="",ue=0,Ye=0,Dr=0,Wn=2,Or=1,Kn=o.slice.call(arguments,1),C=Object.create(this.lexer),Se={yy:{}};for(var Ut in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ut)&&(Se.yy[Ut]=this.yy[Ut]);C.setInput(p,Se.yy),Se.yy.lexer=C,Se.yy.parser=this,typeof C.yylloc>"u"&&(C.yylloc={});var Ft=C.yylloc;o.push(Ft);var jn=C.options&&C.options.ranges;typeof Se.yy.parseError=="function"?this.parseError=Se.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Zs(W){f.length=f.length-2*W,v.length=v.length-W,o.length=o.length-W}for(var Qn=function(){var W;return W=C.lex()||Or,typeof W!="number"&&(W=m.symbols_[W]||W),W},D,Mt,Ee,H,ea,Gt,Le={},ut,X,Ir,ht;;){if(Ee=f[f.length-1],this.defaultActions[Ee]?H=this.defaultActions[Ee]:((D===null||typeof D>"u")&&(D=Qn()),H=_e[Ee]&&_e[Ee][D]),typeof H>"u"||!H.length||!H[0]){var Yt="";ht=[];for(ut in _e[Ee])this.terminals_[ut]&&ut>Wn&&ht.push("'"+this.terminals_[ut]+"'");C.showPosition?Yt="Parse error on line "+(ue+1)+`: `+C.showPosition()+` -Expecting `+ht.join(", ")+", got '"+(this.terminals_[D]||D)+"'":zt="Parse error on line "+(ue+1)+": Unexpected "+(D==Or?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(zt,{text:C.match,token:this.terminals_[D]||D,line:C.yylineno,loc:Mt,expected:ht})}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ee+", token: "+D);switch(H[0]){case 1:f.push(D),v.push(C.yytext),o.push(C.yylloc),f.push(H[1]),D=null,Gt?(D=Gt,Gt=null):(Ye=C.yyleng,u=C.yytext,ue=C.yylineno,Mt=C.yylloc,Dr>0&&Dr--);break;case 2:if(X=this.productions_[H[1]][1],Le.$=v[v.length-X],Le._$={first_line:o[o.length-(X||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(X||1)].first_column,last_column:o[o.length-1].last_column},jn&&(Le._$.range=[o[o.length-(X||1)].range[0],o[o.length-1].range[1]]),Yt=this.performAction.apply(Le,[u,Ye,ue,Se.yy,H[1],v,o].concat(Kn)),typeof Yt<"u")return Yt;X&&(f=f.slice(0,-1*X*2),v=v.slice(0,-1*X),o=o.slice(0,-1*X)),f.push(this.productions_[H[1]][0]),v.push(Le.$),o.push(Le._$),Ir=_e[f[f.length-2]][f[f.length-1]],f.push(Ir);break;case 3:return!0}}return!0}},zn=function(){var ce={EOF:1,parseError:function(m,f){if(this.yy.parser)this.yy.parser.parseError(m,f);else throw new Error(m)},setInput:function(p,m){return this.yy=m||this.yy||{},this._input=p,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var p=this._input[0];this.yytext+=p,this.yyleng++,this.offset++,this.match+=p,this.matched+=p;var m=p.match(/(?:\r\n?|\n).*/g);return m?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),p},unput:function(p){var m=p.length,f=p.split(/(?:\r\n?|\n)/g);this._input=p+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1&&(this.yylineno-=f.length-1);var v=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===d.length?this.yylloc.first_column:0)+d[d.length-f.length].length-f[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[v[0],v[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +Expecting `+ht.join(", ")+", got '"+(this.terminals_[D]||D)+"'":Yt="Parse error on line "+(ue+1)+": Unexpected "+(D==Or?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(Yt,{text:C.match,token:this.terminals_[D]||D,line:C.yylineno,loc:Ft,expected:ht})}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ee+", token: "+D);switch(H[0]){case 1:f.push(D),v.push(C.yytext),o.push(C.yylloc),f.push(H[1]),D=null,Mt?(D=Mt,Mt=null):(Ye=C.yyleng,u=C.yytext,ue=C.yylineno,Ft=C.yylloc,Dr>0&&Dr--);break;case 2:if(X=this.productions_[H[1]][1],Le.$=v[v.length-X],Le._$={first_line:o[o.length-(X||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(X||1)].first_column,last_column:o[o.length-1].last_column},jn&&(Le._$.range=[o[o.length-(X||1)].range[0],o[o.length-1].range[1]]),Gt=this.performAction.apply(Le,[u,Ye,ue,Se.yy,H[1],v,o].concat(Kn)),typeof Gt<"u")return Gt;X&&(f=f.slice(0,-1*X*2),v=v.slice(0,-1*X),o=o.slice(0,-1*X)),f.push(this.productions_[H[1]][0]),v.push(Le.$),o.push(Le._$),Ir=_e[f[f.length-2]][f[f.length-1]],f.push(Ir);break;case 3:return!0}}return!0}},zn=function(){var ce={EOF:1,parseError:function(m,f){if(this.yy.parser)this.yy.parser.parseError(m,f);else throw new Error(m)},setInput:function(p,m){return this.yy=m||this.yy||{},this._input=p,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var p=this._input[0];this.yytext+=p,this.yyleng++,this.offset++,this.match+=p,this.matched+=p;var m=p.match(/(?:\r\n?|\n).*/g);return m?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),p},unput:function(p){var m=p.length,f=p.split(/(?:\r\n?|\n)/g);this._input=p+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1&&(this.yylineno-=f.length-1);var v=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===d.length?this.yylloc.first_column:0)+d[d.length-f.length].length-f[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[v[0],v[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(p){this.unput(this.match.slice(p))},pastInput:function(){var p=this.matched.substr(0,this.matched.length-this.match.length);return(p.length>20?"...":"")+p.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var p=this.match;return p.length<20&&(p+=this._input.substr(0,20-p.length)),(p.substr(0,20)+(p.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var p=this.pastInput(),m=new Array(p.length+1).join("-");return p+this.upcomingInput()+` `+m+"^"},test_match:function(p,m){var f,d,v;if(this.options.backtrack_lexer&&(v={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(v.yylloc.range=this.yylloc.range.slice(0))),d=p[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+p[0].length},this.yytext+=p[0],this.match+=p[0],this.matches=p,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(p[0].length),this.matched+=p[0],f=this.performAction.call(this,this.yy,this,m,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),f)return f;if(this._backtrack){for(var o in v)this[o]=v[o];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var p,m,f,d;this._more||(this.yytext="",this.match="");for(var v=this._currentRules(),o=0;om[0].length)){if(m=f,d=o,this.options.backtrack_lexer){if(p=this.test_match(f,v[o]),p!==!1)return p;if(this._backtrack){m=!1;continue}else return!1}else if(!this.options.flex)break}return m?(p=this.test_match(m,v[d]),p!==!1?p:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var m=this.next();return m||this.lex()},begin:function(m){this.conditionStack.push(m)},popState:function(){var m=this.conditionStack.length-1;return m>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(m){return m=this.conditionStack.length-1-Math.abs(m||0),m>=0?this.conditionStack[m]:"INITIAL"},pushState:function(m){this.begin(m)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(m,f,d,v){function o(u,ue){return f.yytext=f.yytext.substring(u,f.yyleng-ue+u)}var _e=v;switch(d){case 0:if(f.yytext.slice(-2)==="\\\\"?(o(0,1),this.begin("mu")):f.yytext.slice(-1)==="\\"?(o(0,1),this.begin("emu")):this.begin("mu"),f.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(o(5,9),18);case 5:return 15;case 6:return this.popState(),14;break;case 7:return 64;case 8:return 67;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 56;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 52;case 20:return 48;case 21:this.unput(f.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 72;case 25:return 71;case 26:return 71;case 27:return 86;case 28:break;case 29:return this.popState(),55;break;case 30:return this.popState(),33;break;case 31:return f.yytext=o(1,2).replace(/\\"/g,'"'),79;break;case 32:return f.yytext=o(1,2).replace(/\\'/g,"'"),79;break;case 33:return 84;case 34:return 81;case 35:return 81;case 36:return 82;case 37:return 83;case 38:return 80;case 39:return 74;case 40:return 76;case 41:return 71;case 42:return f.yytext=f.yytext.replace(/\\([\\\]])/g,"$1"),71;break;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};return ce}();Ht.lexer=zn;function Ut(){this.yy={}}return Ut.prototype=Ht,Ht.Parser=Ut,new Ut}(),Et=Yi;var ar=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function or(t,e){var r=e&&e.loc,n,i,s,a;r&&(n=r.start.line,i=r.end.line,s=r.start.column,a=r.end.column,t+=" - "+n+":"+s);for(var l=Error.prototype.constructor.call(this,t),c=0;chr,id:()=>zi,prepareBlock:()=>Xi,prepareMustache:()=>Qi,preparePartialBlock:()=>Zi,preparePath:()=>ji,prepareProgram:()=>$i,prepareRawBlock:()=>Ji,stripComment:()=>Ki,stripFlags:()=>Wi});function ur(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var r={loc:t.path.loc};throw new fe(t.path.original+" doesn't match "+e,r)}}function hr(t,e){this.source=t,this.start={line:e.first_line,column:e.first_column},this.end={line:e.last_line,column:e.last_column}}function zi(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t}function Wi(t,e){return{open:t.charAt(2)==="~",close:e.charAt(e.length-3)==="~"}}function Ki(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function ji(t,e,r){r=this.locInfo(r);for(var n=t?"@":"",i=[],s=0,a=0,l=e.length;a0)throw new fe("Invalid path: "+n,{loc:r});c===".."&&s++}else i.push(c)}return{type:"PathExpression",data:t,depth:s,parts:i,original:n,loc:r}}function Qi(t,e,r,n,i,s){var a=n.charAt(3)||n.charAt(2),l=a!=="{"&&a!=="&",c=/\*/.test(n);return{type:c?"Decorator":"MustacheStatement",path:t,params:e,hash:r,escaped:l,strip:i,loc:this.locInfo(s)}}function Ji(t,e,r,n){ur(t,r),n=this.locInfo(n);var i={type:"Program",body:e,strip:{},loc:n};return{type:"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}function Xi(t,e,r,n,i,s){n&&n.path&&ur(t,n);var a=/\*/.test(t.open);e.blockParams=t.blockParams;var l,c;if(r){if(a)throw new fe("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),c=r.strip,l=r.program}return i&&(i=l,l=e,e=i),{type:a?"DecoratorBlock":"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:e,inverse:l,openStrip:t.strip,inverseStrip:c,closeStrip:n&&n.strip,loc:this.locInfo(s)}}function $i(t,e){if(!e&&t.length){var r=t[0].loc,n=t[t.length-1].loc;r&&n&&(e={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:t,strip:{},loc:e}}function Zi(t,e,r,n){return ur(t,r),{type:"PartialBlockStatement",name:t.path,params:t.params,hash:t.hash,program:e,openStrip:t.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}var vn={};for(wt in st)Object.prototype.hasOwnProperty.call(st,wt)&&(vn[wt]=st[wt]);var wt;function xt(t,e){if(t.type==="Program")return t;Et.yy=vn,Et.yy.locInfo=function(n){return new hr(e&&e.srcName,n)};var r=Et.parse(t);return r}function pr(t,e){var r=xt(t,e),n=new Tn(e);return n.accept(r)}var xn={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var m=this.next();return m||this.lex()},begin:function(m){this.conditionStack.push(m)},popState:function(){var m=this.conditionStack.length-1;return m>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(m){return m=this.conditionStack.length-1-Math.abs(m||0),m>=0?this.conditionStack[m]:"INITIAL"},pushState:function(m){this.begin(m)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(m,f,d,v){function o(u,ue){return f.yytext=f.yytext.substring(u,f.yyleng-ue+u)}var _e=v;switch(d){case 0:if(f.yytext.slice(-2)==="\\\\"?(o(0,1),this.begin("mu")):f.yytext.slice(-1)==="\\"?(o(0,1),this.begin("emu")):this.begin("mu"),f.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(o(5,9),18);case 5:return 15;case 6:return this.popState(),14;break;case 7:return 64;case 8:return 67;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 56;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 52;case 20:return 48;case 21:this.unput(f.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 72;case 25:return 71;case 26:return 71;case 27:return 86;case 28:break;case 29:return this.popState(),55;break;case 30:return this.popState(),33;break;case 31:return f.yytext=o(1,2).replace(/\\"/g,'"'),79;break;case 32:return f.yytext=o(1,2).replace(/\\'/g,"'"),79;break;case 33:return 84;case 34:return 81;case 35:return 81;case 36:return 82;case 37:return 83;case 38:return 80;case 39:return 74;case 40:return 76;case 41:return 71;case 42:return f.yytext=f.yytext.replace(/\\([\\\]])/g,"$1"),71;break;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};return ce}();Vt.lexer=zn;function Ht(){this.yy={}}return Ht.prototype=Vt,Vt.Parser=Ht,new Ht}(),Et=Yi;var sr=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function ar(t,e){var r=e&&e.loc,n,i,s,a;r&&(n=r.start.line,i=r.end.line,s=r.start.column,a=r.end.column,t+=" - "+n+":"+s);for(var l=Error.prototype.constructor.call(this,t),c=0;cur,id:()=>zi,prepareBlock:()=>Xi,prepareMustache:()=>Qi,preparePartialBlock:()=>Zi,preparePath:()=>ji,prepareProgram:()=>$i,prepareRawBlock:()=>Ji,stripComment:()=>Ki,stripFlags:()=>Wi});function cr(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var r={loc:t.path.loc};throw new fe(t.path.original+" doesn't match "+e,r)}}function ur(t,e){this.source=t,this.start={line:e.first_line,column:e.first_column},this.end={line:e.last_line,column:e.last_column}}function zi(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t}function Wi(t,e){return{open:t.charAt(2)==="~",close:e.charAt(e.length-3)==="~"}}function Ki(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function ji(t,e,r){r=this.locInfo(r);for(var n=t?"@":"",i=[],s=0,a=0,l=e.length;a0)throw new fe("Invalid path: "+n,{loc:r});c===".."&&s++}else i.push(c)}return{type:"PathExpression",data:t,depth:s,parts:i,original:n,loc:r}}function Qi(t,e,r,n,i,s){var a=n.charAt(3)||n.charAt(2),l=a!=="{"&&a!=="&",c=/\*/.test(n);return{type:c?"Decorator":"MustacheStatement",path:t,params:e,hash:r,escaped:l,strip:i,loc:this.locInfo(s)}}function Ji(t,e,r,n){cr(t,r),n=this.locInfo(n);var i={type:"Program",body:e,strip:{},loc:n};return{type:"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}function Xi(t,e,r,n,i,s){n&&n.path&&cr(t,n);var a=/\*/.test(t.open);e.blockParams=t.blockParams;var l,c;if(r){if(a)throw new fe("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),c=r.strip,l=r.program}return i&&(i=l,l=e,e=i),{type:a?"DecoratorBlock":"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:e,inverse:l,openStrip:t.strip,inverseStrip:c,closeStrip:n&&n.strip,loc:this.locInfo(s)}}function $i(t,e){if(!e&&t.length){var r=t[0].loc,n=t[t.length-1].loc;r&&n&&(e={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:t,strip:{},loc:e}}function Zi(t,e,r,n){return cr(t,r),{type:"PartialBlockStatement",name:t.path,params:t.params,hash:t.hash,program:e,openStrip:t.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}var vn={};for(wt in st)Object.prototype.hasOwnProperty.call(st,wt)&&(vn[wt]=st[wt]);var wt;function xt(t,e){if(t.type==="Program")return t;Et.yy=vn,Et.yy.locInfo=function(n){return new ur(e&&e.srcName,n)};var r=Et.parse(t);return r}function hr(t,e){var r=xt(t,e),n=new Tn(e);return n.accept(r)}var xn={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` `,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"},es=/^#[xX]([A-Fa-f0-9]+)$/,ts=/^#([0-9]+)$/,rs=/^([A-Za-z0-9]+)$/,kt=function(){function t(e){this.named=e}return t.prototype.parse=function(e){if(e){var r=e.match(es);if(r)return String.fromCharCode(parseInt(r[1],16));if(r=e.match(ts),r)return String.fromCharCode(parseInt(r[1],10));if(r=e.match(rs),r)return this.named[r[1]]}},t}(),ns=/[\t\n\f ]/,is=/[A-Za-z]/,ss=/\r\n?/g;function L(t){return ns.test(t)}function wn(t){return is.test(t)}function as(t){return t.replace(ss,` -`)}var fr=function(){function t(e,r,n){n===void 0&&(n="precompile"),this.delegate=e,this.entityParser=r,this.mode=n,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var i=this.peek();if(i==="<"&&!this.isIgnoredEndTag())this.transitionTo("tagOpen"),this.markTagStart(),this.consume();else{if(this.mode==="precompile"&&i===` +`)}var pr=function(){function t(e,r,n){n===void 0&&(n="precompile"),this.delegate=e,this.entityParser=r,this.mode=n,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var i=this.peek();if(i==="<"&&!this.isIgnoredEndTag())this.transitionTo("tagOpen"),this.markTagStart(),this.consume();else{if(this.mode==="precompile"&&i===` `){var s=this.tagNameBuffer.toLowerCase();(s==="pre"||s==="textarea")&&this.consume()}this.transitionTo("data"),this.delegate.beginData()}},data:function(){var i=this.peek(),s=this.tagNameBuffer;i==="<"&&!this.isIgnoredEndTag()?(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume()):i==="&"&&s!=="script"&&s!=="style"?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(i))},tagOpen:function(){var i=this.consume();i==="!"?this.transitionTo("markupDeclarationOpen"):i==="/"?this.transitionTo("endTagOpen"):(i==="@"||i===":"||wn(i))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(i))},markupDeclarationOpen:function(){var i=this.consume();if(i==="-"&&this.peek()==="-")this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment();else{var s=i.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase();s==="DOCTYPE"&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())}},doctype:function(){var i=this.consume();L(i)&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var i=this.consume();L(i)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(i.toLowerCase()))},doctypeName:function(){var i=this.consume();L(i)?this.transitionTo("afterDoctypeName"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(i.toLowerCase())},afterDoctypeName:function(){var i=this.consume();if(!L(i))if(i===">")this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var s=i.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),a=s.toUpperCase()==="PUBLIC",l=s.toUpperCase()==="SYSTEM";(a||l)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),a?this.transitionTo("afterDoctypePublicKeyword"):l&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var i=this.peek();L(i)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):i==='"'?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):i==="'"?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):i===">"&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var i=this.consume();i==='"'?this.transitionTo("afterDoctypePublicIdentifier"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(i)},doctypePublicIdentifierSingleQuoted:function(){var i=this.consume();i==="'"?this.transitionTo("afterDoctypePublicIdentifier"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(i)},afterDoctypePublicIdentifier:function(){var i=this.consume();L(i)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):i==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):i==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var i=this.consume();L(i)||(i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):i==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):i==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var i=this.consume();i==='"'?this.transitionTo("afterDoctypeSystemIdentifier"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(i)},doctypeSystemIdentifierSingleQuoted:function(){var i=this.consume();i==="'"?this.transitionTo("afterDoctypeSystemIdentifier"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(i)},afterDoctypeSystemIdentifier:function(){var i=this.consume();L(i)||i===">"&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var i=this.consume();i==="-"?this.transitionTo("commentStartDash"):i===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(i),this.transitionTo("comment"))},commentStartDash:function(){var i=this.consume();i==="-"?this.transitionTo("commentEnd"):i===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var i=this.consume();i==="-"?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(i)},commentEndDash:function(){var i=this.consume();i==="-"?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+i),this.transitionTo("comment"))},commentEnd:function(){var i=this.consume();i===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+i),this.transitionTo("comment"))},tagName:function(){var i=this.consume();L(i)?this.transitionTo("beforeAttributeName"):i==="/"?this.transitionTo("selfClosingStartTag"):i===">"?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(i)},endTagName:function(){var i=this.consume();L(i)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):i==="/"?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):i===">"?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(i)},beforeAttributeName:function(){var i=this.peek();if(L(i)){this.consume();return}else i==="/"?(this.transitionTo("selfClosingStartTag"),this.consume()):i===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):i==="="?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(i)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var i=this.peek();L(i)?(this.transitionTo("afterAttributeName"),this.consume()):i==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):i==="="?(this.transitionTo("beforeAttributeValue"),this.consume()):i===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):i==='"'||i==="'"||i==="<"?(this.delegate.reportSyntaxError(i+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(i)):(this.consume(),this.delegate.appendToAttributeName(i))},afterAttributeName:function(){var i=this.peek();if(L(i)){this.consume();return}else i==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):i==="="?(this.consume(),this.transitionTo("beforeAttributeValue")):i===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(i))},beforeAttributeValue:function(){var i=this.peek();L(i)?this.consume():i==='"'?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):i==="'"?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):i===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(i))},attributeValueDoubleQuoted:function(){var i=this.consume();i==='"'?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):i==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(i)},attributeValueSingleQuoted:function(){var i=this.consume();i==="'"?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):i==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(i)},attributeValueUnquoted:function(){var i=this.peek();L(i)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):i==="/"?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):i==="&"?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):i===">"?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(i))},afterAttributeValueQuoted:function(){var i=this.peek();L(i)?(this.consume(),this.transitionTo("beforeAttributeName")):i==="/"?(this.consume(),this.transitionTo("selfClosingStartTag")):i===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){var i=this.peek();i===">"?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var i=this.consume();(i==="@"||i===":"||wn(i))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(i))}},this.reset()}return t.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},t.prototype.transitionTo=function(e){this.state=e},t.prototype.tokenize=function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},t.prototype.tokenizePart=function(e){for(this.input+=as(e);this.index"||e==="style"&&this.input.substring(this.index,this.index+8)!==""||e==="script"&&this.input.substring(this.index,this.index+9)!=="<\/script>"},t}(),Ul=function(){function t(e,r){r===void 0&&(r={}),this.options=r,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new fr(this,e,r.mode),this._currentAttribute=void 0}return t.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},t.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},t.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},t.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},t.prototype.current=function(){var e=this.token;if(e===null)throw new Error("token was unexpectedly null");if(arguments.length===0)return e;for(var r=0;r]/,Gl=new RegExp(ls.source,"g");var Pt=Object.create(null),cs="area base br col command embed hr img input keygen link meta param source track wbr";cs.split(" ").forEach(t=>{Pt[t]=!0});var Y=Object.freeze({line:1,column:0}),kn=Object.freeze({source:"(synthetic)",start:Y,end:Y});var ec=Object.freeze({source:"(temporary)",start:Y,end:Y}),Fe=Object.freeze({source:"(nonexistent)",start:Y,end:Y}),ee=Object.freeze({source:"(broken)",start:Y,end:Y});var Nt=class t{constructor(e){this.loc=e.loc,this.chars=e.chars}static synthetic(e){let r=P.synthetic(e);return new t({loc:r,chars:e})}static load(e,r){return new t({loc:P.load(e,r[1]),chars:r[0]})}getString(){return this.chars}serialize(){return[this.chars,this.loc.serialize()]}};var Pe="MATCH_ANY",At="IS_INVISIBLE",dr=class{constructor(e){this._whens=e}first(e){for(let r of this._whens){let n=r.match(e);if(He(n))return n[0]}return null}},Ct=class{constructor(){this._map=new Map}get(e,r){let n=this._map.get(e);return n||(n=r(),this._map.set(e,n),n)}add(e,r){this._map.set(e,r)}match(e){let r=us(e),n=[],i=this._map.get(r),s=this._map.get(Pe);return i&&n.push(i),s&&n.push(s),n}};function _t(t){return t(new mr).check()}var mr=class{constructor(){this._whens=new Ct}check(){return(e,r)=>this.matchFor(e.kind,r.kind)(e,r)}matchFor(e,r){let n=this._whens.match(e);return new dr(n).first(r)}when(e,r,n){return this._whens.get(e,()=>new Ct).add(r,n),this}};function us(t){switch(t){case"Broken":case"InternalsSynthetic":case"NonExistent":return At;default:return t}}var te="BROKEN",me=class t{constructor(e){this.data=e}static forHbsPos(e,r){return new re(e,r,null).wrap()}static broken(e=Y){return new Me("Broken",e).wrap()}get offset(){let e=this.data.toCharPos();return e===null?null:e.offset}eql(e){return hs(this.data,e.data)}until(e){return z(this.data,e.data)}move(e){let r=this.data.toCharPos();if(r===null)return t.broken();{let n=r.offset+e;return r.source.check(n)?new ge(r.source,n).wrap():t.broken()}}collapsed(){return z(this.data,this.data)}toJSON(){return this.data.toJSON()}},ge=class{constructor(e,r){this.source=e,this.charPos=r,this.kind="CharPosition",this._locPos=null}toCharPos(){return this}toJSON(){let e=this.toHbsPos();return e===null?Y:e.toJSON()}wrap(){return new me(this)}get offset(){return this.charPos}toHbsPos(){let e=this._locPos;if(e===null){let r=this.source.hbsPosFor(this.charPos);r===null?this._locPos=e=te:this._locPos=e=new re(this.source,r,this.charPos)}return e===te?null:e}},re=class{constructor(e,r,n=null){this.source=e,this.hbsPos=r,this.kind="HbsPosition",this._charPos=n===null?null:new ge(e,n)}toCharPos(){let e=this._charPos;if(e===null){let r=this.source.charPosFor(this.hbsPos);r===null?this._charPos=e=te:this._charPos=e=new ge(this.source,r)}return e===te?null:e}toJSON(){return this.hbsPos}wrap(){return new me(this)}toHbsPos(){return this}},Me=class{constructor(e,r){this.kind=e,this.pos=r}toCharPos(){return null}toJSON(){return this.pos}wrap(){return new me(this)}get offset(){return null}},hs=_t(t=>t.when("HbsPosition","HbsPosition",({hbsPos:e},{hbsPos:r})=>e.column===r.column&&e.line===r.line).when("CharPosition","CharPosition",({charPos:e},{charPos:r})=>e===r).when("CharPosition","HbsPosition",({offset:e},r)=>{var n;return e===((n=r.toCharPos())===null||n===void 0?void 0:n.offset)}).when("HbsPosition","CharPosition",(e,{offset:r})=>{var n;return((n=e.toCharPos())===null||n===void 0?void 0:n.offset)===r}).when(Pe,Pe,()=>!1));var P=class t{constructor(e){this.data=e,this.isInvisible=e.kind!=="CharPosition"&&e.kind!=="HbsPosition"}static get NON_EXISTENT(){return new ne("NonExistent",Fe).wrap()}static load(e,r){if(typeof r=="number")return t.forCharPositions(e,r,r);if(typeof r=="string")return t.synthetic(r);if(Array.isArray(r))return t.forCharPositions(e,r[0],r[1]);if(r==="NonExistent")return t.NON_EXISTENT;if(r==="Broken")return t.broken(ee);bn(r)}static forHbsLoc(e,r){let n=new re(e,r.start),i=new re(e,r.end);return new ot(e,{start:n,end:i},r).wrap()}static forCharPositions(e,r,n){let i=new ge(e,r),s=new ge(e,n);return new at(e,{start:i,end:s}).wrap()}static synthetic(e){return new ne("InternalsSynthetic",Fe,e).wrap()}static broken(e=ee){return new ne("Broken",e).wrap()}getStart(){return this.data.getStart().wrap()}getEnd(){return this.data.getEnd().wrap()}get loc(){let e=this.data.toHbsSpan();return e===null?ee:e.toHbsLoc()}get module(){return this.data.getModule()}get startPosition(){return this.loc.start}get endPosition(){return this.loc.end}toJSON(){return this.loc}withStart(e){return z(e.data,this.data.getEnd())}withEnd(e){return z(this.data.getStart(),e.data)}asString(){return this.data.asString()}toSlice(e){let r=this.data.asString();return!1&&e!==void 0&&r!==e&&console.warn(`unexpectedly found ${JSON.stringify(r)} when slicing source, but expected ${JSON.stringify(e)}`),new Nt({loc:this,chars:e||r})}get start(){return this.loc.start}set start(e){this.data.locDidUpdate({start:e})}get end(){return this.loc.end}set end(e){this.data.locDidUpdate({end:e})}get source(){return this.module}collapse(e){switch(e){case"start":return this.getStart().collapsed();case"end":return this.getEnd().collapsed()}}extend(e){return z(this.data.getStart(),e.data.getEnd())}serialize(){return this.data.serialize()}slice({skipStart:e=0,skipEnd:r=0}){return z(this.getStart().move(e).data,this.getEnd().move(-r).data)}sliceStartChars({skipStart:e=0,chars:r}){return z(this.getStart().move(e).data,this.getStart().move(e+r).data)}sliceEndChars({skipEnd:e=0,chars:r}){return z(this.getEnd().move(e-r).data,this.getStart().move(-e).data)}},at=class{constructor(e,r){this.source=e,this.charPositions=r,this.kind="CharPosition",this._locPosSpan=null}wrap(){return new P(this)}asString(){return this.source.slice(this.charPositions.start.charPos,this.charPositions.end.charPos)}getModule(){return this.source.module}getStart(){return this.charPositions.start}getEnd(){return this.charPositions.end}locDidUpdate(){}toHbsSpan(){let e=this._locPosSpan;if(e===null){let r=this.charPositions.start.toHbsPos(),n=this.charPositions.end.toHbsPos();r===null||n===null?e=this._locPosSpan=te:e=this._locPosSpan=new ot(this.source,{start:r,end:n})}return e===te?null:e}serialize(){let{start:{charPos:e},end:{charPos:r}}=this.charPositions;return e===r?e:[e,r]}toCharPosSpan(){return this}},ot=class{constructor(e,r,n=null){this.source=e,this.hbsPositions=r,this.kind="HbsPosition",this._charPosSpan=null,this._providedHbsLoc=n}serialize(){let e=this.toCharPosSpan();return e===null?"Broken":e.wrap().serialize()}wrap(){return new P(this)}updateProvided(e,r){this._providedHbsLoc&&(this._providedHbsLoc[r]=e),this._charPosSpan=null,this._providedHbsLoc={start:e,end:e}}locDidUpdate({start:e,end:r}){e!==void 0&&(this.updateProvided(e,"start"),this.hbsPositions.start=new re(this.source,e,null)),r!==void 0&&(this.updateProvided(r,"end"),this.hbsPositions.end=new re(this.source,r,null))}asString(){let e=this.toCharPosSpan();return e===null?"":e.asString()}getModule(){return this.source.module}getStart(){return this.hbsPositions.start}getEnd(){return this.hbsPositions.end}toHbsLoc(){return{start:this.hbsPositions.start.hbsPos,end:this.hbsPositions.end.hbsPos}}toHbsSpan(){return this}toCharPosSpan(){let e=this._charPosSpan;if(e===null){let r=this.hbsPositions.start.toCharPos(),n=this.hbsPositions.end.toCharPos();if(r&&n)e=this._charPosSpan=new at(this.source,{start:r,end:n});else return e=this._charPosSpan=te,null}return e===te?null:e}},ne=class{constructor(e,r,n=null){this.kind=e,this.loc=r,this.string=n}serialize(){switch(this.kind){case"Broken":case"NonExistent":return this.kind;case"InternalsSynthetic":return this.string||""}}wrap(){return new P(this)}asString(){return this.string||""}locDidUpdate({start:e,end:r}){e!==void 0&&(this.loc.start=e),r!==void 0&&(this.loc.end=r)}getModule(){return"an unknown module"}getStart(){return new Me(this.kind,this.loc.start)}getEnd(){return new Me(this.kind,this.loc.end)}toCharPosSpan(){return this}toHbsSpan(){return null}toHbsLoc(){return ee}},z=_t(t=>t.when("HbsPosition","HbsPosition",(e,r)=>new ot(e.source,{start:e,end:r}).wrap()).when("CharPosition","CharPosition",(e,r)=>new at(e.source,{start:e,end:r}).wrap()).when("CharPosition","HbsPosition",(e,r)=>{let n=r.toCharPos();return n===null?new ne("Broken",ee).wrap():z(e,n)}).when("HbsPosition","CharPosition",(e,r)=>{let n=e.toCharPos();return n===null?new ne("Broken",ee).wrap():z(n,r)}).when(At,Pe,e=>new ne(e.kind,ee).wrap()).when(Pe,At,(e,r)=>new ne(r.kind,ee).wrap()));var ie=class{constructor(e,r="an unknown module"){this.source=e,this.module=r}check(e){return e>=0&&e<=this.source.length}slice(e,r){return this.source.slice(e,r)}offsetFor(e,r){return me.forHbsPos(this,{line:e,column:r})}spanFor({start:e,end:r}){return P.forHbsLoc(this,{start:{line:e.line,column:e.column},end:{line:r.line,column:r.column}})}hbsPosFor(e){let r=0,n=0;if(e>this.source.length)return null;for(;;){let i=this.source.indexOf(` +`?(this.line++,this.column=0):this.column++,e},t.prototype.consumeCharRef=function(){var e=this.input.indexOf(";",this.index);if(e!==-1){var r=this.input.slice(this.index,e),n=this.entityParser.parse(r);if(n){for(var i=r.length;i;)this.consume(),i--;return this.consume(),n}}},t.prototype.markTagStart=function(){this.delegate.tagOpen()},t.prototype.appendToTagName=function(e){this.tagNameBuffer+=e,this.delegate.appendToTagName(e)},t.prototype.isIgnoredEndTag=function(){var e=this.tagNameBuffer;return e==="title"&&this.input.substring(this.index,this.index+8)!==""||e==="style"&&this.input.substring(this.index,this.index+8)!==""||e==="script"&&this.input.substring(this.index,this.index+9)!=="<\/script>"},t}(),Ul=function(){function t(e,r){r===void 0&&(r={}),this.options=r,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new pr(this,e,r.mode),this._currentAttribute=void 0}return t.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},t.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},t.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},t.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},t.prototype.current=function(){var e=this.token;if(e===null)throw new Error("token was unexpectedly null");if(arguments.length===0)return e;for(var r=0;r]/,Gl=new RegExp(ls.source,"g");var Pt=Object.create(null),cs="area base br col command embed hr img input keygen link meta param source track wbr";cs.split(" ").forEach(t=>{Pt[t]=!0});var Y=Object.freeze({line:1,column:0}),kn=Object.freeze({source:"(synthetic)",start:Y,end:Y});var ec=Object.freeze({source:"(temporary)",start:Y,end:Y}),Fe=Object.freeze({source:"(nonexistent)",start:Y,end:Y}),ee=Object.freeze({source:"(broken)",start:Y,end:Y});var Nt=class t{constructor(e){this.loc=e.loc,this.chars=e.chars}static synthetic(e){let r=P.synthetic(e);return new t({loc:r,chars:e})}static load(e,r){return new t({loc:P.load(e,r[1]),chars:r[0]})}getString(){return this.chars}serialize(){return[this.chars,this.loc.serialize()]}};var Pe="MATCH_ANY",At="IS_INVISIBLE",fr=class{constructor(e){this._whens=e}first(e){for(let r of this._whens){let n=r.match(e);if(He(n))return n[0]}return null}},Ct=class{constructor(){this._map=new Map}get(e,r){let n=this._map.get(e);return n||(n=r(),this._map.set(e,n),n)}add(e,r){this._map.set(e,r)}match(e){let r=us(e),n=[],i=this._map.get(r),s=this._map.get(Pe);return i&&n.push(i),s&&n.push(s),n}};function _t(t){return t(new dr).check()}var dr=class{constructor(){this._whens=new Ct}check(){return(e,r)=>this.matchFor(e.kind,r.kind)(e,r)}matchFor(e,r){let n=this._whens.match(e);return new fr(n).first(r)}when(e,r,n){return this._whens.get(e,()=>new Ct).add(r,n),this}};function us(t){switch(t){case"Broken":case"InternalsSynthetic":case"NonExistent":return At;default:return t}}var te="BROKEN",me=class t{constructor(e){this.data=e}static forHbsPos(e,r){return new re(e,r,null).wrap()}static broken(e=Y){return new Me("Broken",e).wrap()}get offset(){let e=this.data.toCharPos();return e===null?null:e.offset}eql(e){return hs(this.data,e.data)}until(e){return z(this.data,e.data)}move(e){let r=this.data.toCharPos();if(r===null)return t.broken();{let n=r.offset+e;return r.source.check(n)?new ge(r.source,n).wrap():t.broken()}}collapsed(){return z(this.data,this.data)}toJSON(){return this.data.toJSON()}},ge=class{constructor(e,r){this.source=e,this.charPos=r,this.kind="CharPosition",this._locPos=null}toCharPos(){return this}toJSON(){let e=this.toHbsPos();return e===null?Y:e.toJSON()}wrap(){return new me(this)}get offset(){return this.charPos}toHbsPos(){let e=this._locPos;if(e===null){let r=this.source.hbsPosFor(this.charPos);r===null?this._locPos=e=te:this._locPos=e=new re(this.source,r,this.charPos)}return e===te?null:e}},re=class{constructor(e,r,n=null){this.source=e,this.hbsPos=r,this.kind="HbsPosition",this._charPos=n===null?null:new ge(e,n)}toCharPos(){let e=this._charPos;if(e===null){let r=this.source.charPosFor(this.hbsPos);r===null?this._charPos=e=te:this._charPos=e=new ge(this.source,r)}return e===te?null:e}toJSON(){return this.hbsPos}wrap(){return new me(this)}toHbsPos(){return this}},Me=class{constructor(e,r){this.kind=e,this.pos=r}toCharPos(){return null}toJSON(){return this.pos}wrap(){return new me(this)}get offset(){return null}},hs=_t(t=>t.when("HbsPosition","HbsPosition",({hbsPos:e},{hbsPos:r})=>e.column===r.column&&e.line===r.line).when("CharPosition","CharPosition",({charPos:e},{charPos:r})=>e===r).when("CharPosition","HbsPosition",({offset:e},r)=>{var n;return e===((n=r.toCharPos())===null||n===void 0?void 0:n.offset)}).when("HbsPosition","CharPosition",(e,{offset:r})=>{var n;return((n=e.toCharPos())===null||n===void 0?void 0:n.offset)===r}).when(Pe,Pe,()=>!1));var P=class t{constructor(e){this.data=e,this.isInvisible=e.kind!=="CharPosition"&&e.kind!=="HbsPosition"}static get NON_EXISTENT(){return new ne("NonExistent",Fe).wrap()}static load(e,r){if(typeof r=="number")return t.forCharPositions(e,r,r);if(typeof r=="string")return t.synthetic(r);if(Array.isArray(r))return t.forCharPositions(e,r[0],r[1]);if(r==="NonExistent")return t.NON_EXISTENT;if(r==="Broken")return t.broken(ee);bn(r)}static forHbsLoc(e,r){let n=new re(e,r.start),i=new re(e,r.end);return new ot(e,{start:n,end:i},r).wrap()}static forCharPositions(e,r,n){let i=new ge(e,r),s=new ge(e,n);return new at(e,{start:i,end:s}).wrap()}static synthetic(e){return new ne("InternalsSynthetic",Fe,e).wrap()}static broken(e=ee){return new ne("Broken",e).wrap()}getStart(){return this.data.getStart().wrap()}getEnd(){return this.data.getEnd().wrap()}get loc(){let e=this.data.toHbsSpan();return e===null?ee:e.toHbsLoc()}get module(){return this.data.getModule()}get startPosition(){return this.loc.start}get endPosition(){return this.loc.end}toJSON(){return this.loc}withStart(e){return z(e.data,this.data.getEnd())}withEnd(e){return z(this.data.getStart(),e.data)}asString(){return this.data.asString()}toSlice(e){let r=this.data.asString();return!1&&e!==void 0&&r!==e&&console.warn(`unexpectedly found ${JSON.stringify(r)} when slicing source, but expected ${JSON.stringify(e)}`),new Nt({loc:this,chars:e||r})}get start(){return this.loc.start}set start(e){this.data.locDidUpdate({start:e})}get end(){return this.loc.end}set end(e){this.data.locDidUpdate({end:e})}get source(){return this.module}collapse(e){switch(e){case"start":return this.getStart().collapsed();case"end":return this.getEnd().collapsed()}}extend(e){return z(this.data.getStart(),e.data.getEnd())}serialize(){return this.data.serialize()}slice({skipStart:e=0,skipEnd:r=0}){return z(this.getStart().move(e).data,this.getEnd().move(-r).data)}sliceStartChars({skipStart:e=0,chars:r}){return z(this.getStart().move(e).data,this.getStart().move(e+r).data)}sliceEndChars({skipEnd:e=0,chars:r}){return z(this.getEnd().move(e-r).data,this.getStart().move(-e).data)}},at=class{constructor(e,r){this.source=e,this.charPositions=r,this.kind="CharPosition",this._locPosSpan=null}wrap(){return new P(this)}asString(){return this.source.slice(this.charPositions.start.charPos,this.charPositions.end.charPos)}getModule(){return this.source.module}getStart(){return this.charPositions.start}getEnd(){return this.charPositions.end}locDidUpdate(){}toHbsSpan(){let e=this._locPosSpan;if(e===null){let r=this.charPositions.start.toHbsPos(),n=this.charPositions.end.toHbsPos();r===null||n===null?e=this._locPosSpan=te:e=this._locPosSpan=new ot(this.source,{start:r,end:n})}return e===te?null:e}serialize(){let{start:{charPos:e},end:{charPos:r}}=this.charPositions;return e===r?e:[e,r]}toCharPosSpan(){return this}},ot=class{constructor(e,r,n=null){this.source=e,this.hbsPositions=r,this.kind="HbsPosition",this._charPosSpan=null,this._providedHbsLoc=n}serialize(){let e=this.toCharPosSpan();return e===null?"Broken":e.wrap().serialize()}wrap(){return new P(this)}updateProvided(e,r){this._providedHbsLoc&&(this._providedHbsLoc[r]=e),this._charPosSpan=null,this._providedHbsLoc={start:e,end:e}}locDidUpdate({start:e,end:r}){e!==void 0&&(this.updateProvided(e,"start"),this.hbsPositions.start=new re(this.source,e,null)),r!==void 0&&(this.updateProvided(r,"end"),this.hbsPositions.end=new re(this.source,r,null))}asString(){let e=this.toCharPosSpan();return e===null?"":e.asString()}getModule(){return this.source.module}getStart(){return this.hbsPositions.start}getEnd(){return this.hbsPositions.end}toHbsLoc(){return{start:this.hbsPositions.start.hbsPos,end:this.hbsPositions.end.hbsPos}}toHbsSpan(){return this}toCharPosSpan(){let e=this._charPosSpan;if(e===null){let r=this.hbsPositions.start.toCharPos(),n=this.hbsPositions.end.toCharPos();if(r&&n)e=this._charPosSpan=new at(this.source,{start:r,end:n});else return e=this._charPosSpan=te,null}return e===te?null:e}},ne=class{constructor(e,r,n=null){this.kind=e,this.loc=r,this.string=n}serialize(){switch(this.kind){case"Broken":case"NonExistent":return this.kind;case"InternalsSynthetic":return this.string||""}}wrap(){return new P(this)}asString(){return this.string||""}locDidUpdate({start:e,end:r}){e!==void 0&&(this.loc.start=e),r!==void 0&&(this.loc.end=r)}getModule(){return"an unknown module"}getStart(){return new Me(this.kind,this.loc.start)}getEnd(){return new Me(this.kind,this.loc.end)}toCharPosSpan(){return this}toHbsSpan(){return null}toHbsLoc(){return ee}},z=_t(t=>t.when("HbsPosition","HbsPosition",(e,r)=>new ot(e.source,{start:e,end:r}).wrap()).when("CharPosition","CharPosition",(e,r)=>new at(e.source,{start:e,end:r}).wrap()).when("CharPosition","HbsPosition",(e,r)=>{let n=r.toCharPos();return n===null?new ne("Broken",ee).wrap():z(e,n)}).when("HbsPosition","CharPosition",(e,r)=>{let n=e.toCharPos();return n===null?new ne("Broken",ee).wrap():z(n,r)}).when(At,Pe,e=>new ne(e.kind,ee).wrap()).when(Pe,At,(e,r)=>new ne(r.kind,ee).wrap()));var ie=class{constructor(e,r="an unknown module"){this.source=e,this.module=r}check(e){return e>=0&&e<=this.source.length}slice(e,r){return this.source.slice(e,r)}offsetFor(e,r){return me.forHbsPos(this,{line:e,column:r})}spanFor({start:e,end:r}){return P.forHbsLoc(this,{start:{line:e.line,column:e.column},end:{line:r.line,column:r.column}})}hbsPosFor(e){let r=0,n=0;if(e>this.source.length)return null;for(;;){let i=this.source.indexOf(` `,n);if(e<=i||i===-1)return{line:r+1,column:e-n};r+=1,n=i+1}}charPosFor(e){let{line:r,column:n}=e,s=this.source.length,a=0,l=0;for(;;){if(l>=s)return s;let c=this.source.indexOf(` `,l);if(c===-1&&(c=this.source.length),a===r-1){if(l+n>c)return c;if(!1){let h=this.hbsPosFor(l+n)}return l+n}else{if(c===-1)return 0;a+=1,l=c+1}}}};function S(t,e){let{module:r,loc:n}=e,{line:i,column:s}=n.start,a=e.asString(),l=a?` @@ -22,9 +22,9 @@ Expecting `+ht.join(", ")+", got '"+(this.terminals_[D]||D)+"'":zt="Parse error | `)} | -`:"",c=new Error(`${t}: ${l}(error occurred in '${r}' @ line ${i} : column ${s})`);return c.name="SyntaxError",c.location=e,c.code=a,c}var ps={Program:T("body"),Template:T("body"),Block:T("body"),MustacheStatement:T("path","params","hash"),BlockStatement:T("path","params","hash","program","inverse"),ElementModifierStatement:T("path","params","hash"),PartialStatement:T("name","params","hash"),CommentStatement:T(),MustacheCommentStatement:T(),ElementNode:T("attributes","modifiers","children","comments"),AttrNode:T("value"),TextNode:T(),ConcatStatement:T("parts"),SubExpression:T("path","params","hash"),PathExpression:T(),PathHead:T(),StringLiteral:T(),BooleanLiteral:T(),NumberLiteral:T(),NullLiteral:T(),UndefinedLiteral:T(),Hash:T("pairs"),HashPair:T("value"),NamedBlock:T("attributes","modifiers","children","comments"),SimpleElement:T("attributes","modifiers","children","comments"),Component:T("head","attributes","modifiers","children","comments")},Pn=ps;var gr=function(){t.prototype=Object.create(Error.prototype),t.prototype.constructor=t;function t(e,r,n,i){let s=Error.call(this,e);this.key=i,this.message=e,this.node=r,this.parent=n,this.stack=s.stack}return t}();function br(t,e,r){return new gr("Cannot remove a node unless it is part of an array",t,e,r)}function Nn(t,e,r){return new gr("Cannot replace a node with multiple nodes unless it is part of an array",t,e,r)}function yr(t,e){return new gr("Replacing and removing in key handlers is not yet supported.",t,null,e)}var be=class{constructor(e,r=null,n=null){this.node=e,this.parent=r,this.parentKey=n}get parentNode(){return this.parent?this.parent.node:null}parents(){return{[Symbol.iterator]:()=>new Sr(this)}}},Sr=class{constructor(e){this.path=e}next(){return this.path.parent?(this.path=this.path.parent,{done:!1,value:this.path}):{done:!0,value:null}}};function An(t){return typeof t=="function"?t:t.enter}function _n(t){if(typeof t!="function")return t.exit}function fs(t,e){let r=typeof t!="function"?t.keys:void 0;if(r===void 0)return;let n=r[e];return n!==void 0?n:r.All}function ds(t,e){if((e==="Template"||e==="Block")&&t.Program)return t.Program;let r=t[e];return r!==void 0?r:t.All}function Lt(t,e){let{node:r,parent:n,parentKey:i}=e,s=ds(t,r.type),a,l;s!==void 0&&(a=An(s),l=_n(s));let c;if(a!==void 0&&(c=a(r,e)),c!=null)if(JSON.stringify(r)===JSON.stringify(c))c=void 0;else{if(Array.isArray(c))return Ln(t,c,n,i),c;{let h=new be(c,n,i);return Lt(t,h)||c}}if(c===void 0){let h=Pn[r.type];for(let g=0;g@\[-\^`\{-~]/;function Dn(t){let e=Es(t);e&&(t.blockParams=e)}function Es(t){let e=t.attributes.length,r=[];for(let i=0;i0&&r[r.length-1].charAt(0)==="|")throw S("Block parameters must be preceded by the `as` keyword, detected block parameters without `as`",t.loc);if(n!==-1&&e>n&&r[n+1].charAt(0)==="|"){let i=r.slice(n).join(" ");if(i.charAt(i.length-1)!=="|"||i.match(/\|/g).length!==2)throw S("Invalid block parameters syntax, '"+i+"'",t.loc);let s=[];for(let a=n+1;at.acceptNode(a)):[],i=n.length>0?n[n.length-1].loc:r.loc,s=e.hash?t.Hash(e.hash):{type:"Hash",pairs:[],loc:t.source.spanFor(i).collapse("end")};return{path:r,params:n,hash:s}}function Nr(t,e){let{path:r,params:n,hash:i,loc:s}=e;if(Tr(r)){let l=`{{${On(r)}}}`,c=`<${t.name} ... ${l} ...`;throw S(`In ${c}, ${l} is not a valid modifier`,e.loc)}let a=x.elementModifier({path:r,params:n,hash:i,loc:s});t.modifiers.push(a)}var Cr=class extends Bt{constructor(){super(...arguments),this.tagOpenLine=0,this.tagOpenColumn=0}reset(){this.currentNode=null}beginComment(){this.currentNode=x.comment("",this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn))}appendToCommentData(e){this.currentComment.value+=e}finishComment(){ye(this.currentElement(),this.finish(this.currentComment))}beginData(){this.currentNode=x.text({chars:"",loc:this.offset().collapsed()})}appendToData(e){this.currentData.chars+=e}finishData(){this.currentData.loc=this.currentData.loc.withEnd(this.offset()),ye(this.currentElement(),this.currentData)}tagOpen(){this.tagOpenLine=this.tokenizer.line,this.tagOpenColumn=this.tokenizer.column}beginStartTag(){this.currentNode={type:"StartTag",name:"",attributes:[],modifiers:[],comments:[],selfClosing:!1,loc:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}beginEndTag(){this.currentNode={type:"EndTag",name:"",attributes:[],modifiers:[],comments:[],selfClosing:!1,loc:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}finishTag(){let e=this.finish(this.currentTag);if(e.type==="StartTag"){if(this.finishStartTag(),e.name===":")throw S("Invalid named block named detected, you may have created a named block without a name, or you may have began your name with a number. Named blocks must have names that are at least one character long, and begin with a lower case letter",this.source.spanFor({start:this.currentTag.loc.toJSON(),end:this.offset().toJSON()}));(Pt[e.name]||e.selfClosing)&&this.finishEndTag(!0)}else e.type==="EndTag"&&this.finishEndTag(!1)}finishStartTag(){let{name:e,attributes:r,modifiers:n,comments:i,selfClosing:s,loc:a}=this.finish(this.currentStartTag),l=x.element({tag:e,selfClosing:s,attrs:r,modifiers:n,comments:i,children:[],blockParams:[],loc:a});this.elementStack.push(l)}finishEndTag(e){let r=this.finish(this.currentTag),n=this.elementStack.pop(),i=this.currentElement();this.validateEndTag(r,n,e),n.loc=n.loc.withEnd(this.offset()),Dn(n),ye(i,n)}markTagAsSelfClosing(){this.currentTag.selfClosing=!0}appendToTagName(e){this.currentTag.name+=e}beginAttribute(){let e=this.offset();this.currentAttribute={name:"",parts:[],currentPart:null,isQuoted:!1,isDynamic:!1,start:e,valueSpan:e.collapsed()}}appendToAttributeName(e){this.currentAttr.name+=e}beginAttributeValue(e){this.currentAttr.isQuoted=e,this.startTextPart(),this.currentAttr.valueSpan=this.offset().collapsed()}appendToAttributeValue(e){let r=this.currentAttr.parts,n=r[r.length-1],i=this.currentAttr.currentPart;if(i)i.chars+=e,i.loc=i.loc.withEnd(this.offset());else{let s=this.offset();e===` -`?s=n?n.loc.getEnd():this.currentAttr.valueSpan.getStart():s=s.move(-1),this.currentAttr.currentPart=x.text({chars:e,loc:s.collapsed()})}}finishAttributeValue(){this.finalizeTextPart();let e=this.currentTag,r=this.offset();if(e.type==="EndTag")throw S("Invalid end tag: closing tag must not have attributes",this.source.spanFor({start:e.loc.toJSON(),end:r.toJSON()}));let{name:n,parts:i,start:s,isQuoted:a,isDynamic:l,valueSpan:c}=this.currentAttr,h=this.assembleAttributeValue(i,a,l,s.until(r));h.loc=c.withEnd(r);let g=x.attr({name:n,value:h,loc:s.until(r)});this.currentStartTag.attributes.push(g)}reportSyntaxError(e){throw S(e,this.offset().collapsed())}assembleConcatenatedValue(e){for(let i=0;i elements do not need end tags. You should remove it`:r.tag===void 0?i=`Closing tag without an open tag`:r.tag!==e.name&&(i=`Closing tag did not match last open tag <${r.tag}> (on line ${r.loc.startPosition.line})`),i)throw S(i,e.loc)}assembleAttributeValue(e,r,n,i){if(n){if(r)return this.assembleConcatenatedValue(e);if(e.length===1||e.length===2&&e[1].type==="TextNode"&&e[1].chars==="/")return e[0];throw S("An unquoted attribute value must be a string or a mustache, preceded by whitespace or a '=' character, and followed by whitespace, a '>' character, or '/>'",i)}else return e.length>0?e[0]:x.text({chars:"",loc:i})}},Ys={},Ar=class extends kt{constructor(){super({})}parse(){}};function Un(t,e={}){var r,n,i;let s=e.mode||"precompile",a,l;typeof t=="string"?(a=new ie(t,(r=e.meta)===null||r===void 0?void 0:r.moduleName),s==="codemod"?l=xt(t,e.parseOptions):l=pr(t,e.parseOptions)):t instanceof ie?(a=t,s==="codemod"?l=xt(t.source,e.parseOptions):l=pr(t.source,e.parseOptions)):(a=new ie("",(n=e.meta)===null||n===void 0?void 0:n.moduleName),l=t);let c;s==="codemod"&&(c=new Ar);let h=P.forCharPositions(a,0,a.source.length);l.loc={source:"(program)",start:h.startPosition,end:h.endPosition};let g=new Cr(a,c,s).acceptTemplate(l);if(e.strictMode&&(g.blockParams=(i=e.locals)!==null&&i!==void 0?i:[]),e&&e.plugins&&e.plugins.ast)for(let y=0,F=e.plugins.ast.length;ynew yr(this)}}},yr=class{constructor(e){this.path=e}next(){return this.path.parent?(this.path=this.path.parent,{done:!1,value:this.path}):{done:!0,value:null}}};function An(t){return typeof t=="function"?t:t.enter}function _n(t){if(typeof t!="function")return t.exit}function fs(t,e){let r=typeof t!="function"?t.keys:void 0;if(r===void 0)return;let n=r[e];return n!==void 0?n:r.All}function ds(t,e){if((e==="Template"||e==="Block")&&t.Program)return t.Program;let r=t[e];return r!==void 0?r:t.All}function Lt(t,e){let{node:r,parent:n,parentKey:i}=e,s=ds(t,r.type),a,l;s!==void 0&&(a=An(s),l=_n(s));let c;if(a!==void 0&&(c=a(r,e)),c!=null)if(JSON.stringify(r)===JSON.stringify(c))c=void 0;else{if(Array.isArray(c))return Ln(t,c,n,i),c;{let h=new be(c,n,i);return Lt(t,h)||c}}if(c===void 0){let h=Pn[r.type];for(let g=0;g@\[-\^`\{-~]/;function Dn(t){let e=Es(t);e&&(t.blockParams=e)}function Es(t){let e=t.attributes.length,r=[];for(let i=0;i0&&r[r.length-1].charAt(0)==="|")throw S("Block parameters must be preceded by the `as` keyword, detected block parameters without `as`",t.loc);if(n!==-1&&e>n&&r[n+1].charAt(0)==="|"){let i=r.slice(n).join(" ");if(i.charAt(i.length-1)!=="|"||i.match(/\|/g).length!==2)throw S("Invalid block parameters syntax, '"+i+"'",t.loc);let s=[];for(let a=n+1;at.acceptNode(a)):[],i=n.length>0?n[n.length-1].loc:r.loc,s=e.hash?t.Hash(e.hash):{type:"Hash",pairs:[],loc:t.source.spanFor(i).collapse("end")};return{path:r,params:n,hash:s}}function Pr(t,e){let{path:r,params:n,hash:i,loc:s}=e;if(Er(r)){let l=`{{${On(r)}}}`,c=`<${t.name} ... ${l} ...`;throw S(`In ${c}, ${l} is not a valid modifier`,e.loc)}let a=x.elementModifier({path:r,params:n,hash:i,loc:s});t.modifiers.push(a)}var Nr=class extends Bt{constructor(){super(...arguments),this.tagOpenLine=0,this.tagOpenColumn=0}reset(){this.currentNode=null}beginComment(){this.currentNode=x.comment("",this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn))}appendToCommentData(e){this.currentComment.value+=e}finishComment(){ye(this.currentElement(),this.finish(this.currentComment))}beginData(){this.currentNode=x.text({chars:"",loc:this.offset().collapsed()})}appendToData(e){this.currentData.chars+=e}finishData(){this.currentData.loc=this.currentData.loc.withEnd(this.offset()),ye(this.currentElement(),this.currentData)}tagOpen(){this.tagOpenLine=this.tokenizer.line,this.tagOpenColumn=this.tokenizer.column}beginStartTag(){this.currentNode={type:"StartTag",name:"",attributes:[],modifiers:[],comments:[],selfClosing:!1,loc:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}beginEndTag(){this.currentNode={type:"EndTag",name:"",attributes:[],modifiers:[],comments:[],selfClosing:!1,loc:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}finishTag(){let e=this.finish(this.currentTag);if(e.type==="StartTag"){if(this.finishStartTag(),e.name===":")throw S("Invalid named block named detected, you may have created a named block without a name, or you may have began your name with a number. Named blocks must have names that are at least one character long, and begin with a lower case letter",this.source.spanFor({start:this.currentTag.loc.toJSON(),end:this.offset().toJSON()}));(Pt[e.name]||e.selfClosing)&&this.finishEndTag(!0)}else e.type==="EndTag"&&this.finishEndTag(!1)}finishStartTag(){let{name:e,attributes:r,modifiers:n,comments:i,selfClosing:s,loc:a}=this.finish(this.currentStartTag),l=x.element({tag:e,selfClosing:s,attrs:r,modifiers:n,comments:i,children:[],blockParams:[],loc:a});this.elementStack.push(l)}finishEndTag(e){let r=this.finish(this.currentTag),n=this.elementStack.pop(),i=this.currentElement();this.validateEndTag(r,n,e),n.loc=n.loc.withEnd(this.offset()),Dn(n),ye(i,n)}markTagAsSelfClosing(){this.currentTag.selfClosing=!0}appendToTagName(e){this.currentTag.name+=e}beginAttribute(){let e=this.offset();this.currentAttribute={name:"",parts:[],currentPart:null,isQuoted:!1,isDynamic:!1,start:e,valueSpan:e.collapsed()}}appendToAttributeName(e){this.currentAttr.name+=e}beginAttributeValue(e){this.currentAttr.isQuoted=e,this.startTextPart(),this.currentAttr.valueSpan=this.offset().collapsed()}appendToAttributeValue(e){let r=this.currentAttr.parts,n=r[r.length-1],i=this.currentAttr.currentPart;if(i)i.chars+=e,i.loc=i.loc.withEnd(this.offset());else{let s=this.offset();e===` +`?s=n?n.loc.getEnd():this.currentAttr.valueSpan.getStart():s=s.move(-1),this.currentAttr.currentPart=x.text({chars:e,loc:s.collapsed()})}}finishAttributeValue(){this.finalizeTextPart();let e=this.currentTag,r=this.offset();if(e.type==="EndTag")throw S("Invalid end tag: closing tag must not have attributes",this.source.spanFor({start:e.loc.toJSON(),end:r.toJSON()}));let{name:n,parts:i,start:s,isQuoted:a,isDynamic:l,valueSpan:c}=this.currentAttr,h=this.assembleAttributeValue(i,a,l,s.until(r));h.loc=c.withEnd(r);let g=x.attr({name:n,value:h,loc:s.until(r)});this.currentStartTag.attributes.push(g)}reportSyntaxError(e){throw S(e,this.offset().collapsed())}assembleConcatenatedValue(e){for(let i=0;i elements do not need end tags. You should remove it`:r.tag===void 0?i=`Closing tag without an open tag`:r.tag!==e.name&&(i=`Closing tag did not match last open tag <${r.tag}> (on line ${r.loc.startPosition.line})`),i)throw S(i,e.loc)}assembleAttributeValue(e,r,n,i){if(n){if(r)return this.assembleConcatenatedValue(e);if(e.length===1||e.length===2&&e[1].type==="TextNode"&&e[1].chars==="/")return e[0];throw S("An unquoted attribute value must be a string or a mustache, preceded by whitespace or a '=' character, and followed by whitespace, a '>' character, or '/>'",i)}else return e.length>0?e[0]:x.text({chars:"",loc:i})}},Ys={},Cr=class extends kt{constructor(){super({})}parse(){}};function Un(t,e={}){var r,n,i;let s=e.mode||"precompile",a,l;typeof t=="string"?(a=new ie(t,(r=e.meta)===null||r===void 0?void 0:r.moduleName),s==="codemod"?l=xt(t,e.parseOptions):l=hr(t,e.parseOptions)):t instanceof ie?(a=t,s==="codemod"?l=xt(t.source,e.parseOptions):l=hr(t.source,e.parseOptions)):(a=new ie("",(n=e.meta)===null||n===void 0?void 0:n.moduleName),l=t);let c;s==="codemod"&&(c=new Cr);let h=P.forCharPositions(a,0,a.source.length);l.loc={source:"(program)",start:h.startPosition,end:h.endPosition};let g=new Nr(a,c,s).acceptTemplate(l);if(e.strictMode&&(g.blockParams=(i=e.locals)!==null&&i!==void 0?i:[]),e&&e.plugins&&e.plugins.ast)for(let y=0,F=e.plugins.ast.length;ythis.length)return null;for(var r=0,n=this.offsets;n[r+1]<=e;)r++;var i=e-n[r];return{line:r,column:i}},t.prototype.indexForLocation=function(e){var r=e.line,n=e.column;return r<0||r>=this.offsets.length||n<0||n>this.lengthOfLine(r)?null:this.offsets[r]+n},t.prototype.lengthOfLine=function(e){var r=this.offsets[e],n=e===this.offsets.length-1?this.length:this.offsets[e+1];return n-r},t}();function zs(t,e){let r=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)}var Gn=zs;function Ws(t){let e=t.children??t.body;if(e)for(let r=0;re.indexForLocation({line:i-1,column:s}),n=i=>{let{start:s,end:a}=i.loc;s.offset=r(s),a.offset=r(a)};return()=>({name:"prettierParsePlugin",visitor:{All(i){n(i),Ws(i)}}})}function js(t){let e;try{e=Un(t,{mode:"codemod",plugins:{ast:[Ks(t)]}})}catch(r){let n=Js(r);if(n){let i=Qs(r);throw Gn(i,{loc:n,cause:r})}throw r}return e}function Qs(t){let{message:e}=t,r=e.split(` -`);return r.length>=4&&/^Parse error on line \d+:$/.test(r[0])&&/^-*\^$/.test(he(!1,r,-2))?he(!1,r,-1):r.length>=4&&/:\s?$/.test(r[0])&&/^\(error occurred in '.*?' @ line \d+ : column \d+\)$/.test(he(!1,r,-1))&&r[1]===""&&he(!1,r,-2)===""&&r.slice(2,-2).every(n=>n.startsWith("|"))?r[0].trim().slice(0,-1):e}function Js(t){let{location:e,hash:r}=t;if(e){let{start:n,end:i}=e;return typeof i.line!="number"?{start:n}:e}if(r){let{loc:{last_line:n,last_column:i}}=r;return{start:{line:n,column:i+1}}}}var Xs={parse:js,astFormat:"glimmer",locStart:xe,locEnd:tt};var Yn=[{linguistLanguageId:155,name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}];var $s={glimmer:fn};var Fu=_r;export{Fu as default,Yn as languages,qt as parsers,$s as printers}; +`);return r.length>=4&&/^Parse error on line \d+:$/.test(r[0])&&/^-*\^$/.test(he(!1,r,-2))?he(!1,r,-1):r.length>=4&&/:\s?$/.test(r[0])&&/^\(error occurred in '.*?' @ line \d+ : column \d+\)$/.test(he(!1,r,-1))&&r[1]===""&&he(!1,r,-2)===""&&r.slice(2,-2).every(n=>n.startsWith("|"))?r[0].trim().slice(0,-1):e}function Js(t){let{location:e,hash:r}=t;if(e){let{start:n,end:i}=e;return typeof i.line!="number"?{start:n}:e}if(r){let{loc:{last_line:n,last_column:i}}=r;return{start:{line:n,column:i+1}}}}var Xs={parse:js,astFormat:"glimmer",locStart:xe,locEnd:tt};var Yn=[{linguistLanguageId:155,name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}];var $s={glimmer:fn};var Fu=_r;export{Fu as default,Yn as languages,Ar as parsers,$s as printers}; diff --git a/node_modules/prettier/plugins/graphql.js b/node_modules/prettier/plugins/graphql.js index 04ef4c2..fcc1757 100644 --- a/node_modules/prettier/plugins/graphql.js +++ b/node_modules/prettier/plugins/graphql.js @@ -1,19 +1,19 @@ -(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.graphql=e()}})(function(){"use strict";var se=Object.defineProperty;var tt=Object.getOwnPropertyDescriptor;var nt=Object.getOwnPropertyNames;var it=Object.prototype.hasOwnProperty;var Ne=(e,t)=>{for(var n in t)se(e,n,{get:t[n],enumerable:!0})},rt=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of nt(t))!it.call(e,i)&&i!==n&&se(e,i,{get:()=>t[i],enumerable:!(r=tt(t,i))||r.enumerable});return e};var st=e=>rt(se({},"__esModule",{value:!0}),e);var un={};Ne(un,{languages:()=>Ke,options:()=>et,parsers:()=>ie,printers:()=>cn});var ot=(e,t,n,r)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(n,r):n.global?t.replace(n,r):t.split(n).join(r)},Y=ot;var oe="indent";var ae="group";var ce="if-break";var P="line";var ue="break-parent";var xe=()=>{},b=xe,le=xe;function x(e){return b(e),{type:oe,contents:e}}function y(e,t={}){return b(e),le(t.expandedStates,!0),{type:ae,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function O(e,t="",n={}){return b(e),t!==""&&b(t),{type:ce,breakContents:e,flatContents:t,groupId:n.groupId}}var xt={type:ue};var _t={type:P,hard:!0};var k={type:P},p={type:P,soft:!0},f=[_t,xt];function E(e,t){b(e),le(t);let n=[];for(let r=0;r{for(var n in t)re(e,n,{get:t[n],enumerable:!0})},rt=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of nt(t))!it.call(e,i)&&i!==n&&re(e,i,{get:()=>t[i],enumerable:!(r=tt(t,i))||r.enumerable});return e};var st=e=>rt(re({},"__esModule",{value:!0}),e);var un={};Ne(un,{languages:()=>Ke,options:()=>et,parsers:()=>Te,printers:()=>cn});var ot=(e,t,n,r)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(n,r):n.global?t.replace(n,r):t.split(n).join(r)},Y=ot;var se="indent";var oe="group";var ae="if-break";var P="line";var ce="break-parent";var xe=()=>{},b=xe,ue=xe;function x(e){return b(e),{type:se,contents:e}}function y(e,t={}){return b(e),ue(t.expandedStates,!0),{type:oe,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function O(e,t="",n={}){return b(e),t!==""&&b(t),{type:ae,breakContents:e,flatContents:t,groupId:n.groupId}}var xt={type:ce};var _t={type:P,hard:!0};var k={type:P},p={type:P,soft:!0},f=[_t,xt];function E(e,t){b(e),ue(t);let n=[];for(let r=0;r{let i=!!(r!=null&&r.backwards);if(n===!1)return!1;let{length:s}=t,a=n;for(;a>=0&&a0}var pe=At;var fe=class extends Error{name="UnexpectedNodeError";constructor(t,n,r="type"){super(`Unexpected ${n} node ${r}: ${JSON.stringify(t[r])}.`),this.node=t}},Ae=fe;function ke(e){return/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/.test(e)}function Ce(e){return`# @format +`||i==="\r"||i==="\u2028"||i==="\u2029")return t+1}return t}var j=yt;function G(e){return(t,n,r)=>{let i=!!(r!=null&&r.backwards);if(n===!1)return!1;let{length:s}=t,a=n;for(;a>=0&&a0}var le=At;var pe=class extends Error{name="UnexpectedNodeError";constructor(t,n,r="type"){super(`Unexpected ${n} node ${r}: ${JSON.stringify(t[r])}.`),this.node=t}},Ae=pe;function ke(e){return/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/.test(e)}function Ce(e){return`# @format -`+e}function J(e){return e.kind==="Comment"?e.start:e.loc.start}function X(e){return e.kind==="Comment"?e.end:e.loc.end}var F=null;function w(e){if(F!==null&&typeof F.property){let t=F;return F=w.prototype=null,t}return F=w.prototype=e??Object.create(null),new w}var kt=10;for(let e=0;e<=kt;e++)w();function he(e){return w(e)}function Ct(e,t="type"){he(e);function n(r){let i=r[t],s=e[i];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:r});return s}return n}var Se=Ct;var q=class{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},V=class{constructor(t,n,r,i,s,a){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=s,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},Q={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},zn=new Set(Object.keys(Q));var C;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(C||(C={}));var St=Se(Q,"kind"),ve=St;function vt(e,t,n){let{node:r}=e;if(!r.description)return"";let i=[n("description")];return r.kind==="InputValueDefinition"&&!r.description.block?i.push(k):i.push(f),i}var g=vt;function bt(e,t,n){let{node:r}=e;switch(r.kind){case"Document":return[...E(f,A(e,t,n,"definitions")),f];case"OperationDefinition":{let i=t.originalText[J(r)]!=="{",s=!!r.name;return[i?r.operation:"",i&&s?[" ",n("name")]:"",i&&!s&&pe(r.variableDefinitions)?" ":"",be(e,n),_(e,n,r),!i&&!s?"":" ",n("selectionSet")]}case"FragmentDefinition":return["fragment ",n("name"),be(e,n)," on ",n("typeCondition"),_(e,n,r)," ",n("selectionSet")];case"SelectionSet":return["{",x([f,E(f,A(e,t,n,"selections"))]),f,"}"];case"Field":return y([r.alias?[n("alias"),": "]:"",n("name"),r.arguments.length>0?y(["(",x([p,E([O("",", "),p],A(e,t,n,"arguments"))]),p,")"]):"",_(e,n,r),r.selectionSet?" ":"",n("selectionSet")]);case"Name":return r.value;case"StringValue":if(r.block){let i=Y(!1,r.value,'"""','\\"""').split(` +`+e}function J(e){return e.kind==="Comment"?e.start:e.loc.start}function X(e){return e.kind==="Comment"?e.end:e.loc.end}var F=null;function w(e){if(F!==null&&typeof F.property){let t=F;return F=w.prototype=null,t}return F=w.prototype=e??Object.create(null),new w}var kt=10;for(let e=0;e<=kt;e++)w();function fe(e){return w(e)}function Ct(e,t="type"){fe(e);function n(r){let i=r[t],s=e[i];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:r});return s}return n}var Se=Ct;var q=class{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},V=class{constructor(t,n,r,i,s,a){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=s,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},Q={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},zn=new Set(Object.keys(Q));var C;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(C||(C={}));var St=Se(Q,"kind"),ve=St;function vt(e,t,n){let{node:r}=e;if(!r.description)return"";let i=[n("description")];return r.kind==="InputValueDefinition"&&!r.description.block?i.push(k):i.push(f),i}var g=vt;function bt(e,t,n){let{node:r}=e;switch(r.kind){case"Document":return[...E(f,A(e,t,n,"definitions")),f];case"OperationDefinition":{let i=t.originalText[J(r)]!=="{",s=!!r.name;return[i?r.operation:"",i&&s?[" ",n("name")]:"",i&&!s&&le(r.variableDefinitions)?" ":"",be(e,n),_(e,n,r),!i&&!s?"":" ",n("selectionSet")]}case"FragmentDefinition":return["fragment ",n("name"),be(e,n)," on ",n("typeCondition"),_(e,n,r)," ",n("selectionSet")];case"SelectionSet":return["{",x([f,E(f,A(e,t,n,"selections"))]),f,"}"];case"Field":return y([r.alias?[n("alias"),": "]:"",n("name"),r.arguments.length>0?y(["(",x([p,E([O("",", "),p],A(e,t,n,"arguments"))]),p,")"]):"",_(e,n,r),r.selectionSet?" ":"",n("selectionSet")]);case"Name":return r.value;case"StringValue":if(r.block){let i=Y(!1,r.value,'"""','\\"""').split(` `);return i.length===1&&(i[0]=i[0].trim()),i.every(s=>s==="")&&(i.length=0),E(f,['"""',...i,'"""'])}return['"',Y(!1,Y(!1,r.value,/["\\]/g,"\\$&"),` -`,"\\n"),'"'];case"IntValue":case"FloatValue":case"EnumValue":return r.value;case"BooleanValue":return r.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",n("name")];case"ListValue":return y(["[",x([p,E([O("",", "),p],e.map(n,"values"))]),p,"]"]);case"ObjectValue":{let i=t.bracketSpacing&&r.fields.length>0?" ":"";return y(["{",i,x([p,E([O("",", "),p],e.map(n,"fields"))]),p,O("",i),"}"])}case"ObjectField":case"Argument":return[n("name"),": ",n("value")];case"Directive":return["@",n("name"),r.arguments.length>0?y(["(",x([p,E([O("",", "),p],A(e,t,n,"arguments"))]),p,")"]):""];case"NamedType":return n("name");case"VariableDefinition":return[n("variable"),": ",n("type"),r.defaultValue?[" = ",n("defaultValue")]:"",_(e,n,r)];case"ObjectTypeExtension":case"ObjectTypeDefinition":case"InputObjectTypeExtension":case"InputObjectTypeDefinition":case"InterfaceTypeExtension":case"InterfaceTypeDefinition":{let{kind:i}=r,s=[];return i.endsWith("TypeDefinition")?s.push(g(e,t,n)):s.push("extend "),i.startsWith("ObjectType")?s.push("type"):i.startsWith("InputObjectType")?s.push("input"):s.push("interface"),s.push(" ",n("name")),!i.startsWith("InputObjectType")&&r.interfaces.length>0&&s.push(" implements ",...Pt(e,t,n)),s.push(_(e,n,r)),r.fields.length>0&&s.push([" {",x([f,E(f,A(e,t,n,"fields"))]),f,"}"]),s}case"FieldDefinition":return[g(e,t,n),n("name"),r.arguments.length>0?y(["(",x([p,E([O("",", "),p],A(e,t,n,"arguments"))]),p,")"]):"",": ",n("type"),_(e,n,r)];case"DirectiveDefinition":return[g(e,t,n),"directive ","@",n("name"),r.arguments.length>0?y(["(",x([p,E([O("",", "),p],A(e,t,n,"arguments"))]),p,")"]):"",r.repeatable?" repeatable":""," on ",...E(" | ",e.map(n,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[g(e,t,n),r.kind==="EnumTypeExtension"?"extend ":"","enum ",n("name"),_(e,n,r),r.values.length>0?[" {",x([f,E(f,A(e,t,n,"values"))]),f,"}"]:""];case"EnumValueDefinition":return[g(e,t,n),n("name"),_(e,n,r)];case"InputValueDefinition":return[g(e,t,n),n("name"),": ",n("type"),r.defaultValue?[" = ",n("defaultValue")]:"",_(e,n,r)];case"SchemaExtension":return["extend schema",_(e,n,r),...r.operationTypes.length>0?[" {",x([f,E(f,A(e,t,n,"operationTypes"))]),f,"}"]:[]];case"SchemaDefinition":return[g(e,t,n),"schema",_(e,n,r)," {",r.operationTypes.length>0?x([f,E(f,A(e,t,n,"operationTypes"))]):"",f,"}"];case"OperationTypeDefinition":return[r.operation,": ",n("type")];case"FragmentSpread":return["...",n("name"),_(e,n,r)];case"InlineFragment":return["...",r.typeCondition?[" on ",n("typeCondition")]:"",_(e,n,r)," ",n("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return y([g(e,t,n),y([r.kind==="UnionTypeExtension"?"extend ":"","union ",n("name"),_(e,n,r),r.types.length>0?[" =",O(""," "),x([O([k," "]),E([k,"| "],e.map(n,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[g(e,t,n),r.kind==="ScalarTypeExtension"?"extend ":"","scalar ",n("name"),_(e,n,r)];case"NonNullType":return[n("type"),"!"];case"ListType":return["[",n("type"),"]"];default:throw new Ae(r,"Graphql","kind")}}function _(e,t,n){if(n.directives.length===0)return"";let r=E(k,e.map(t,"directives"));return n.kind==="FragmentDefinition"||n.kind==="OperationDefinition"?y([k,r]):[" ",y(x([p,r]))]}function A(e,t,n,r){return e.map(({isLast:i,node:s})=>{let a=n();return!i&&ge(t.originalText,X(s))?[a,f]:a},r)}function Lt(e){return e.kind!=="Comment"}function Rt(e){let t=e.node;if(t.kind==="Comment")return"#"+t.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(t))}function Pt(e,t,n){let{node:r}=e,i=[],{interfaces:s}=r,a=e.map(n,"interfaces");for(let u=0;ur.value.trim()==="prettier-ignore")}var wt={print:bt,massageAstNode:Le,hasPrettierIgnore:Ft,insertPragma:Ce,printComment:Rt,canAttachComment:Lt,getVisitorKeys:ve},Re=wt;var ie={};Ne(ie,{graphql:()=>on});function Pe(e){return typeof e=="object"&&e!==null}function Fe(e,t){if(!!!e)throw new Error(t??"Unexpected invariant triggered.")}var Vt=/\r\n|[\n\r]/g;function B(e,t){let n=0,r=1;for(let i of e.body.matchAll(Vt)){if(typeof i.index=="number"||Fe(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function Ve(e){return de(e.source,B(e.source,e.start))}function de(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,s=e.locationOffset.line-1,a=t.line+s,u=t.line===1?n:0,l=t.column+u,T=`${e.name}:${a}:${l} -`,h=r.split(/\r\n|[\n\r]/g),D=h[i];if(D.length>120){let I=Math.floor(l/80),re=l%80,N=[];for(let v=0;v["|",v]),["|","^".padStart(re)],["|",N[I+1]]])}return T+we([[`${a-1} |`,h[i-1]],[`${a} |`,D],["|","^".padStart(l)],[`${a+1} |`,h[i+1]]])}function we(e){let t=e.filter(([r,i])=>i!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join(` -`)}function Bt(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var W=class e extends Error{constructor(t,...n){var r,i,s;let{nodes:a,source:u,positions:l,path:T,originalError:h,extensions:D}=Bt(n);super(t),this.name="GraphQLError",this.path=T??void 0,this.originalError=h??void 0,this.nodes=Be(Array.isArray(a)?a:a?[a]:void 0);let I=Be((r=this.nodes)===null||r===void 0?void 0:r.map(N=>N.loc).filter(N=>N!=null));this.source=u??(I==null||(i=I[0])===null||i===void 0?void 0:i.source),this.positions=l??(I==null?void 0:I.map(N=>N.start)),this.locations=l&&u?l.map(N=>B(u,N)):I==null?void 0:I.map(N=>B(N.source,N.start));let re=Pe(h==null?void 0:h.extensions)?h==null?void 0:h.extensions:void 0;this.extensions=(s=D??re)!==null&&s!==void 0?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),h!=null&&h.stack?Object.defineProperty(this,"stack",{value:h.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(t+=` +`,"\\n"),'"'];case"IntValue":case"FloatValue":case"EnumValue":return r.value;case"BooleanValue":return r.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",n("name")];case"ListValue":return y(["[",x([p,E([O("",", "),p],e.map(n,"values"))]),p,"]"]);case"ObjectValue":{let i=t.bracketSpacing&&r.fields.length>0?" ":"";return y(["{",i,x([p,E([O("",", "),p],e.map(n,"fields"))]),p,O("",i),"}"])}case"ObjectField":case"Argument":return[n("name"),": ",n("value")];case"Directive":return["@",n("name"),r.arguments.length>0?y(["(",x([p,E([O("",", "),p],A(e,t,n,"arguments"))]),p,")"]):""];case"NamedType":return n("name");case"VariableDefinition":return[n("variable"),": ",n("type"),r.defaultValue?[" = ",n("defaultValue")]:"",_(e,n,r)];case"ObjectTypeExtension":case"ObjectTypeDefinition":case"InputObjectTypeExtension":case"InputObjectTypeDefinition":case"InterfaceTypeExtension":case"InterfaceTypeDefinition":{let{kind:i}=r,s=[];return i.endsWith("TypeDefinition")?s.push(g(e,t,n)):s.push("extend "),i.startsWith("ObjectType")?s.push("type"):i.startsWith("InputObjectType")?s.push("input"):s.push("interface"),s.push(" ",n("name")),!i.startsWith("InputObjectType")&&r.interfaces.length>0&&s.push(" implements ",...Pt(e,t,n)),s.push(_(e,n,r)),r.fields.length>0&&s.push([" {",x([f,E(f,A(e,t,n,"fields"))]),f,"}"]),s}case"FieldDefinition":return[g(e,t,n),n("name"),r.arguments.length>0?y(["(",x([p,E([O("",", "),p],A(e,t,n,"arguments"))]),p,")"]):"",": ",n("type"),_(e,n,r)];case"DirectiveDefinition":return[g(e,t,n),"directive ","@",n("name"),r.arguments.length>0?y(["(",x([p,E([O("",", "),p],A(e,t,n,"arguments"))]),p,")"]):"",r.repeatable?" repeatable":""," on ",...E(" | ",e.map(n,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[g(e,t,n),r.kind==="EnumTypeExtension"?"extend ":"","enum ",n("name"),_(e,n,r),r.values.length>0?[" {",x([f,E(f,A(e,t,n,"values"))]),f,"}"]:""];case"EnumValueDefinition":return[g(e,t,n),n("name"),_(e,n,r)];case"InputValueDefinition":return[g(e,t,n),n("name"),": ",n("type"),r.defaultValue?[" = ",n("defaultValue")]:"",_(e,n,r)];case"SchemaExtension":return["extend schema",_(e,n,r),...r.operationTypes.length>0?[" {",x([f,E(f,A(e,t,n,"operationTypes"))]),f,"}"]:[]];case"SchemaDefinition":return[g(e,t,n),"schema",_(e,n,r)," {",r.operationTypes.length>0?x([f,E(f,A(e,t,n,"operationTypes"))]):"",f,"}"];case"OperationTypeDefinition":return[r.operation,": ",n("type")];case"FragmentSpread":return["...",n("name"),_(e,n,r)];case"InlineFragment":return["...",r.typeCondition?[" on ",n("typeCondition")]:"",_(e,n,r)," ",n("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return y([g(e,t,n),y([r.kind==="UnionTypeExtension"?"extend ":"","union ",n("name"),_(e,n,r),r.types.length>0?[" =",O(""," "),x([O([k," "]),E([k,"| "],e.map(n,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[g(e,t,n),r.kind==="ScalarTypeExtension"?"extend ":"","scalar ",n("name"),_(e,n,r)];case"NonNullType":return[n("type"),"!"];case"ListType":return["[",n("type"),"]"];default:throw new Ae(r,"Graphql","kind")}}function _(e,t,n){if(n.directives.length===0)return"";let r=E(k,e.map(t,"directives"));return n.kind==="FragmentDefinition"||n.kind==="OperationDefinition"?y([k,r]):[" ",y(x([p,r]))]}function A(e,t,n,r){return e.map(({isLast:i,node:s})=>{let a=n();return!i&&ge(t.originalText,X(s))?[a,f]:a},r)}function Lt(e){return e.kind!=="Comment"}function Rt(e){let t=e.node;if(t.kind==="Comment")return"#"+t.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(t))}function Pt(e,t,n){let{node:r}=e,i=[],{interfaces:s}=r,a=e.map(n,"interfaces");for(let u=0;ur.value.trim()==="prettier-ignore")}var wt={print:bt,massageAstNode:Le,hasPrettierIgnore:Ft,insertPragma:Ce,printComment:Rt,canAttachComment:Lt,getVisitorKeys:ve},Re=wt;var Te={};Ne(Te,{graphql:()=>on});function Pe(e){return typeof e=="object"&&e!==null}function Fe(e,t){if(!!!e)throw new Error(t??"Unexpected invariant triggered.")}var Vt=/\r\n|[\n\r]/g;function B(e,t){let n=0,r=1;for(let i of e.body.matchAll(Vt)){if(typeof i.index=="number"||Fe(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function Ve(e){return he(e.source,B(e.source,e.start))}function he(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,s=e.locationOffset.line-1,a=t.line+s,u=t.line===1?n:0,l=t.column+u,T=`${e.name}:${a}:${l} +`,h=r.split(/\r\n|[\n\r]/g),D=h[i];if(D.length>120){let I=Math.floor(l/80),ie=l%80,N=[];for(let v=0;v["|",v]),["|","^".padStart(ie)],["|",N[I+1]]])}return T+we([[`${a-1} |`,h[i-1]],[`${a} |`,D],["|","^".padStart(l)],[`${a+1} |`,h[i+1]]])}function we(e){let t=e.filter(([r,i])=>i!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join(` +`)}function Bt(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var W=class e extends Error{constructor(t,...n){var r,i,s;let{nodes:a,source:u,positions:l,path:T,originalError:h,extensions:D}=Bt(n);super(t),this.name="GraphQLError",this.path=T??void 0,this.originalError=h??void 0,this.nodes=Be(Array.isArray(a)?a:a?[a]:void 0);let I=Be((r=this.nodes)===null||r===void 0?void 0:r.map(N=>N.loc).filter(N=>N!=null));this.source=u??(I==null||(i=I[0])===null||i===void 0?void 0:i.source),this.positions=l??(I==null?void 0:I.map(N=>N.start)),this.locations=l&&u?l.map(N=>B(u,N)):I==null?void 0:I.map(N=>B(N.source,N.start));let ie=Pe(h==null?void 0:h.extensions)?h==null?void 0:h.extensions:void 0;this.extensions=(s=D??ie)!==null&&s!==void 0?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),h!=null&&h.stack?Object.defineProperty(this,"stack",{value:h.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(t+=` `+Ve(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=` -`+de(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};function Be(e){return e===void 0||e.length===0?void 0:e}function d(e,t,n){return new W(`Syntax Error: ${n}`,{source:e,positions:[t]})}var H;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(H||(H={}));var c;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(c||(c={}));function Ue(e){return e===9||e===32}function L(e){return e>=48&&e<=57}function Me(e){return e>=97&&e<=122||e>=65&&e<=90}function me(e){return Me(e)||e===95}function Ye(e){return Me(e)||L(e)||e===95}function je(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let a=0;au===0?a:a.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function Ut(e){let t=0;for(;t=0&&e<=55295||e>=57344&&e<=1114111}function K(e,t){return Je(e.charCodeAt(t))&&Xe(e.charCodeAt(t+1))}function Je(e){return e>=55296&&e<=56319}function Xe(e){return e>=56320&&e<=57343}function S(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return o.EOF;if(n>=32&&n<=126){let r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function m(e,t,n,r,i){let s=e.line,a=1+n-e.lineStart;return new V(t,n,r,s,a,i)}function Mt(e,t){let n=e.source.body,r=n.length,i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Xt(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` +`+he(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};function Be(e){return e===void 0||e.length===0?void 0:e}function d(e,t,n){return new W(`Syntax Error: ${n}`,{source:e,positions:[t]})}var H;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(H||(H={}));var c;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(c||(c={}));function Ue(e){return e===9||e===32}function L(e){return e>=48&&e<=57}function Me(e){return e>=97&&e<=122||e>=65&&e<=90}function de(e){return Me(e)||e===95}function Ye(e){return Me(e)||L(e)||e===95}function je(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let a=0;au===0?a:a.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function Ut(e){let t=0;for(;t=0&&e<=55295||e>=57344&&e<=1114111}function K(e,t){return Je(e.charCodeAt(t))&&Xe(e.charCodeAt(t+1))}function Je(e){return e>=55296&&e<=56319}function Xe(e){return e>=56320&&e<=57343}function S(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return o.EOF;if(n>=32&&n<=126){let r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function m(e,t,n,r,i){let s=e.line,a=1+n-e.lineStart;return new V(t,n,r,s,a,i)}function Mt(e,t){let n=e.source.body,r=n.length,i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Xt(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` `,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw d(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function qt(e,t){let n=e.source.body,r=n.length,i=e.lineStart,s=t+3,a=s,u="",l=[];for(;s2?"["+Zt(e)+"]":"{ "+n.map(([i,s])=>i+": "+te(s,t)).join(", ")+" }"}function Kt(e,t){if(e.length===0)return"[]";if(t.length>2)return"[Array]";let n=Math.min(10,e.length),r=e.length-n,i=[];for(let s=0;s1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function Zt(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}var qe=globalThis.process&&globalThis.process.env.NODE_ENV==="production"?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var r;let i=n.prototype[Symbol.toStringTag],s=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(i===s){let a=ee(t);throw new Error(`Cannot use ${i} "${a}" from another module or realm. @@ -26,4 +26,4 @@ https://yarnpkg.com/en/docs/selective-version-resolutions Duplicate "graphql" modules cannot be used at the same time since different versions may have different capabilities and behavior. The data from one version used in the function from another could produce confusing and -spurious results.`)}}return!1};var M=class{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||Z(!1,`Body must be a string. Received: ${ee(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||Z(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Z(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};function Qe(e){return qe(e,M)}function We(e,t){return new Te(e,t).parseDocument()}var Te=class{constructor(t,n={}){let r=Qe(t)?t:new M(t);this._lexer=new z(r),this._options=n,this._tokenCounter=0}parseName(){let t=this.expectToken(o.NAME);return this.node(t,{kind:c.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:c.DOCUMENT,definitions:this.many(o.SOF,this.parseDefinition,o.EOF)})}parseDefinition(){if(this.peek(o.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===o.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw d(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(o.BRACE_L))return this.node(t,{kind:c.OPERATION_DEFINITION,operation:C.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType(),r;return this.peek(o.NAME)&&(r=this.parseName()),this.node(t,{kind:c.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(o.NAME);switch(t.value){case"query":return C.QUERY;case"mutation":return C.MUTATION;case"subscription":return C.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(o.PAREN_L,this.parseVariableDefinition,o.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:c.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(o.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(o.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(o.DOLLAR),this.node(t,{kind:c.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:c.SELECTION_SET,selections:this.many(o.BRACE_L,this.parseSelection,o.BRACE_R)})}parseSelection(){return this.peek(o.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),r,i;return this.expectOptionalToken(o.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:c.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(o.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(o.PAREN_L,n,o.PAREN_R)}parseArgument(t=!1){let n=this._lexer.token,r=this.parseName();return this.expectToken(o.COLON),this.node(n,{kind:c.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(o.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(o.NAME)?this.node(t,{kind:c.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:c.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:c.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:c.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){let n=this._lexer.token;switch(n.kind){case o.BRACKET_L:return this.parseList(t);case o.BRACE_L:return this.parseObject(t);case o.INT:return this.advanceLexer(),this.node(n,{kind:c.INT,value:n.value});case o.FLOAT:return this.advanceLexer(),this.node(n,{kind:c.FLOAT,value:n.value});case o.STRING:case o.BLOCK_STRING:return this.parseStringLiteral();case o.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:c.BOOLEAN,value:!0});case"false":return this.node(n,{kind:c.BOOLEAN,value:!1});case"null":return this.node(n,{kind:c.NULL});default:return this.node(n,{kind:c.ENUM,value:n.value})}case o.DOLLAR:if(t)if(this.expectToken(o.DOLLAR),this._lexer.token.kind===o.NAME){let r=this._lexer.token.value;throw d(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:c.STRING,value:t.value,block:t.kind===o.BLOCK_STRING})}parseList(t){let n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:c.LIST,values:this.any(o.BRACKET_L,n,o.BRACKET_R)})}parseObject(t){let n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:c.OBJECT,fields:this.any(o.BRACE_L,n,o.BRACE_R)})}parseObjectField(t){let n=this._lexer.token,r=this.parseName();return this.expectToken(o.COLON),this.node(n,{kind:c.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){let n=[];for(;this.peek(o.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let n=this._lexer.token;return this.expectToken(o.AT),this.node(n,{kind:c.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,n;if(this.expectOptionalToken(o.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(o.BRACKET_R),n=this.node(t,{kind:c.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(o.BANG)?this.node(t,{kind:c.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:c.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(o.STRING)||this.peek(o.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),i=this.many(o.BRACE_L,this.parseOperationTypeDefinition,o.BRACE_R);return this.node(t,{kind:c.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){let t=this._lexer.token,n=this.parseOperationType();this.expectToken(o.COLON);let r=this.parseNamedType();return this.node(t,{kind:c.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:c.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i})}parseObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:c.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(o.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(o.BRACE_L,this.parseFieldDefinition,o.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(o.COLON);let s=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(t,{kind:c.FIELD_DEFINITION,description:n,name:r,arguments:i,type:s,directives:a})}parseArgumentDefs(){return this.optionalMany(o.PAREN_L,this.parseInputValueDef,o.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(o.COLON);let i=this.parseTypeReference(),s;this.expectOptionalToken(o.EQUALS)&&(s=this.parseConstValueLiteral());let a=this.parseConstDirectives();return this.node(t,{kind:c.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:s,directives:a})}parseInterfaceTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:c.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:a})}parseUnionTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(t,{kind:c.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(o.EQUALS)?this.delimitedMany(o.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(t,{kind:c.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:s})}parseEnumValuesDefinition(){return this.optionalMany(o.BRACE_L,this.parseEnumValueDefinition,o.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:c.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw d(this._lexer.source,this._lexer.token.start,`${ne(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(t,{kind:c.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(o.BRACE_L,this.parseInputValueDef,o.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===o.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.optionalMany(o.BRACE_L,this.parseOperationTypeDefinition,o.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:c.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:c.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:c.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:c.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}parseUnionTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:c.UNION_TYPE_EXTENSION,name:n,directives:r,types:i})}parseEnumTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:c.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i})}parseInputObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:c.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(o.AT);let r=this.parseName(),i=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let a=this.parseDirectiveLocations();return this.node(t,{kind:c.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:s,locations:a})}parseDirectiveLocations(){return this.delimitedMany(o.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(H,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new q(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){let n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw d(this._lexer.source,n.start,`Expected ${He(t)}, found ${ne(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let n=this._lexer.token;if(n.kind===o.NAME&&n.value===t)this.advanceLexer();else throw d(this._lexer.source,n.start,`Expected "${t}", found ${ne(n)}.`)}expectOptionalKeyword(t){let n=this._lexer.token;return n.kind===o.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let n=t??this._lexer.token;return d(this._lexer.source,n.start,`Unexpected ${ne(n)}.`)}any(t,n,r){this.expectToken(t);let i=[];for(;!this.expectOptionalToken(r);)i.push(n.call(this));return i}optionalMany(t,n,r){if(this.expectOptionalToken(t)){let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}return[]}many(t,n,r){this.expectToken(t);let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(t,n){this.expectOptionalToken(t);let r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){let{maxTokens:t}=this._options,n=this._lexer.advance();if(t!==void 0&&n.kind!==o.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw d(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};function ne(e){let t=e.value;return He(e.kind)+(t!=null?` "${t}"`:"")}function He(e){return $e(e)?`"${e}"`:e}function en(e,t){let n=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(n,t)}var ze=en;function tn(e){let t=[],{startToken:n,endToken:r}=e.loc;for(let i=n;i!==r;i=i.next)i.kind==="Comment"&&t.push(i);return t}var nn={allowLegacyFragmentVariables:!0};function rn(e){if((e==null?void 0:e.name)==="GraphQLError"){let{message:t,locations:[n]}=e;return ze(t,{loc:{start:n},cause:e})}return e}function sn(e){let t;try{t=We(e,nn)}catch(n){throw rn(n)}return t.comments=tn(t),t}var on={parse:sn,astFormat:"graphql",hasPragma:ke,locStart:J,locEnd:X};var Ke=[{linguistLanguageId:139,name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",parsers:["graphql"],vscodeLanguageIds:["graphql"]}];var Ze={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var an={bracketSpacing:Ze.bracketSpacing},et=an;var cn={graphql:Re};return st(un);}); \ No newline at end of file +spurious results.`)}}return!1};var M=class{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||Z(!1,`Body must be a string. Received: ${ee(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||Z(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Z(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};function Qe(e){return qe(e,M)}function We(e,t){return new Ee(e,t).parseDocument()}var Ee=class{constructor(t,n={}){let r=Qe(t)?t:new M(t);this._lexer=new z(r),this._options=n,this._tokenCounter=0}parseName(){let t=this.expectToken(o.NAME);return this.node(t,{kind:c.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:c.DOCUMENT,definitions:this.many(o.SOF,this.parseDefinition,o.EOF)})}parseDefinition(){if(this.peek(o.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===o.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw d(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(o.BRACE_L))return this.node(t,{kind:c.OPERATION_DEFINITION,operation:C.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType(),r;return this.peek(o.NAME)&&(r=this.parseName()),this.node(t,{kind:c.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(o.NAME);switch(t.value){case"query":return C.QUERY;case"mutation":return C.MUTATION;case"subscription":return C.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(o.PAREN_L,this.parseVariableDefinition,o.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:c.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(o.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(o.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(o.DOLLAR),this.node(t,{kind:c.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:c.SELECTION_SET,selections:this.many(o.BRACE_L,this.parseSelection,o.BRACE_R)})}parseSelection(){return this.peek(o.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),r,i;return this.expectOptionalToken(o.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:c.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(o.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(o.PAREN_L,n,o.PAREN_R)}parseArgument(t=!1){let n=this._lexer.token,r=this.parseName();return this.expectToken(o.COLON),this.node(n,{kind:c.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(o.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(o.NAME)?this.node(t,{kind:c.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:c.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:c.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:c.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){let n=this._lexer.token;switch(n.kind){case o.BRACKET_L:return this.parseList(t);case o.BRACE_L:return this.parseObject(t);case o.INT:return this.advanceLexer(),this.node(n,{kind:c.INT,value:n.value});case o.FLOAT:return this.advanceLexer(),this.node(n,{kind:c.FLOAT,value:n.value});case o.STRING:case o.BLOCK_STRING:return this.parseStringLiteral();case o.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:c.BOOLEAN,value:!0});case"false":return this.node(n,{kind:c.BOOLEAN,value:!1});case"null":return this.node(n,{kind:c.NULL});default:return this.node(n,{kind:c.ENUM,value:n.value})}case o.DOLLAR:if(t)if(this.expectToken(o.DOLLAR),this._lexer.token.kind===o.NAME){let r=this._lexer.token.value;throw d(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:c.STRING,value:t.value,block:t.kind===o.BLOCK_STRING})}parseList(t){let n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:c.LIST,values:this.any(o.BRACKET_L,n,o.BRACKET_R)})}parseObject(t){let n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:c.OBJECT,fields:this.any(o.BRACE_L,n,o.BRACE_R)})}parseObjectField(t){let n=this._lexer.token,r=this.parseName();return this.expectToken(o.COLON),this.node(n,{kind:c.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){let n=[];for(;this.peek(o.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let n=this._lexer.token;return this.expectToken(o.AT),this.node(n,{kind:c.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,n;if(this.expectOptionalToken(o.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(o.BRACKET_R),n=this.node(t,{kind:c.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(o.BANG)?this.node(t,{kind:c.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:c.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(o.STRING)||this.peek(o.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),i=this.many(o.BRACE_L,this.parseOperationTypeDefinition,o.BRACE_R);return this.node(t,{kind:c.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){let t=this._lexer.token,n=this.parseOperationType();this.expectToken(o.COLON);let r=this.parseNamedType();return this.node(t,{kind:c.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:c.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i})}parseObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:c.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(o.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(o.BRACE_L,this.parseFieldDefinition,o.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(o.COLON);let s=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(t,{kind:c.FIELD_DEFINITION,description:n,name:r,arguments:i,type:s,directives:a})}parseArgumentDefs(){return this.optionalMany(o.PAREN_L,this.parseInputValueDef,o.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(o.COLON);let i=this.parseTypeReference(),s;this.expectOptionalToken(o.EQUALS)&&(s=this.parseConstValueLiteral());let a=this.parseConstDirectives();return this.node(t,{kind:c.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:s,directives:a})}parseInterfaceTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:c.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:a})}parseUnionTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(t,{kind:c.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(o.EQUALS)?this.delimitedMany(o.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(t,{kind:c.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:s})}parseEnumValuesDefinition(){return this.optionalMany(o.BRACE_L,this.parseEnumValueDefinition,o.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:c.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw d(this._lexer.source,this._lexer.token.start,`${ne(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(t,{kind:c.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(o.BRACE_L,this.parseInputValueDef,o.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===o.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.optionalMany(o.BRACE_L,this.parseOperationTypeDefinition,o.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:c.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:c.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:c.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:c.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}parseUnionTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:c.UNION_TYPE_EXTENSION,name:n,directives:r,types:i})}parseEnumTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:c.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i})}parseInputObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:c.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(o.AT);let r=this.parseName(),i=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let a=this.parseDirectiveLocations();return this.node(t,{kind:c.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:s,locations:a})}parseDirectiveLocations(){return this.delimitedMany(o.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(H,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new q(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){let n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw d(this._lexer.source,n.start,`Expected ${He(t)}, found ${ne(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let n=this._lexer.token;if(n.kind===o.NAME&&n.value===t)this.advanceLexer();else throw d(this._lexer.source,n.start,`Expected "${t}", found ${ne(n)}.`)}expectOptionalKeyword(t){let n=this._lexer.token;return n.kind===o.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let n=t??this._lexer.token;return d(this._lexer.source,n.start,`Unexpected ${ne(n)}.`)}any(t,n,r){this.expectToken(t);let i=[];for(;!this.expectOptionalToken(r);)i.push(n.call(this));return i}optionalMany(t,n,r){if(this.expectOptionalToken(t)){let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}return[]}many(t,n,r){this.expectToken(t);let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(t,n){this.expectOptionalToken(t);let r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){let{maxTokens:t}=this._options,n=this._lexer.advance();if(t!==void 0&&n.kind!==o.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw d(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};function ne(e){let t=e.value;return He(e.kind)+(t!=null?` "${t}"`:"")}function He(e){return $e(e)?`"${e}"`:e}function en(e,t){let n=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(n,t)}var ze=en;function tn(e){let t=[],{startToken:n,endToken:r}=e.loc;for(let i=n;i!==r;i=i.next)i.kind==="Comment"&&t.push(i);return t}var nn={allowLegacyFragmentVariables:!0};function rn(e){if((e==null?void 0:e.name)==="GraphQLError"){let{message:t,locations:[n]}=e;return ze(t,{loc:{start:n},cause:e})}return e}function sn(e){let t;try{t=We(e,nn)}catch(n){throw rn(n)}return t.comments=tn(t),t}var on={parse:sn,astFormat:"graphql",hasPragma:ke,locStart:J,locEnd:X};var Ke=[{linguistLanguageId:139,name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",parsers:["graphql"],vscodeLanguageIds:["graphql"]}];var Ze={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var an={bracketSpacing:Ze.bracketSpacing},et=an;var cn={graphql:Re};return st(un);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/graphql.mjs b/node_modules/prettier/plugins/graphql.mjs index e504fef..5122ef5 100644 --- a/node_modules/prettier/plugins/graphql.mjs +++ b/node_modules/prettier/plugins/graphql.mjs @@ -1,19 +1,19 @@ -var tt=Object.defineProperty;var Ne=(e,t)=>{for(var n in t)tt(e,n,{get:t[n],enumerable:!0})};var Te={};Ne(Te,{languages:()=>Ke,options:()=>et,parsers:()=>ie,printers:()=>rn});var nt=(e,t,n,r)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(n,r):n.global?t.replace(n,r):t.split(n).join(r)},Y=nt;var se="indent";var oe="group";var ae="if-break";var P="line";var ce="break-parent";var xe=()=>{},b=xe,ue=xe;function x(e){return b(e),{type:se,contents:e}}function y(e,t={}){return b(e),ue(t.expandedStates,!0),{type:oe,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function O(e,t="",n={}){return b(e),t!==""&&b(t),{type:ae,breakContents:e,flatContents:t,groupId:n.groupId}}var mt={type:ce};var Et={type:P,hard:!0};var k={type:P},p={type:P,soft:!0},f=[Et,mt];function E(e,t){b(e),ue(t);let n=[];for(let r=0;r{for(var n in t)tt(e,n,{get:t[n],enumerable:!0})};var Te={};Ne(Te,{languages:()=>Ke,options:()=>et,parsers:()=>Ee,printers:()=>rn});var nt=(e,t,n,r)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(n,r):n.global?t.replace(n,r):t.split(n).join(r)},Y=nt;var re="indent";var se="group";var oe="if-break";var P="line";var ae="break-parent";var xe=()=>{},b=xe,ce=xe;function x(e){return b(e),{type:re,contents:e}}function y(e,t={}){return b(e),ce(t.expandedStates,!0),{type:se,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function O(e,t="",n={}){return b(e),t!==""&&b(t),{type:oe,breakContents:e,flatContents:t,groupId:n.groupId}}var mt={type:ae};var Et={type:P,hard:!0};var k={type:P},p={type:P,soft:!0},f=[Et,mt];function E(e,t){b(e),ce(t);let n=[];for(let r=0;r{let i=!!(r!=null&&r.backwards);if(n===!1)return!1;let{length:s}=t,a=n;for(;a>=0&&a0}var le=It;var pe=class extends Error{name="UnexpectedNodeError";constructor(t,n,r="type"){super(`Unexpected ${n} node ${r}: ${JSON.stringify(t[r])}.`),this.node=t}},Ae=pe;function ke(e){return/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/.test(e)}function Ce(e){return`# @format +`||i==="\r"||i==="\u2028"||i==="\u2029")return t+1}return t}var j=Tt;function G(e){return(t,n,r)=>{let i=!!(r!=null&&r.backwards);if(n===!1)return!1;let{length:s}=t,a=n;for(;a>=0&&a0}var ue=It;var le=class extends Error{name="UnexpectedNodeError";constructor(t,n,r="type"){super(`Unexpected ${n} node ${r}: ${JSON.stringify(t[r])}.`),this.node=t}},Ae=le;function ke(e){return/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/.test(e)}function Ce(e){return`# @format -`+e}function J(e){return e.kind==="Comment"?e.start:e.loc.start}function X(e){return e.kind==="Comment"?e.end:e.loc.end}var F=null;function w(e){if(F!==null&&typeof F.property){let t=F;return F=w.prototype=null,t}return F=w.prototype=e??Object.create(null),new w}var Ot=10;for(let e=0;e<=Ot;e++)w();function fe(e){return w(e)}function Dt(e,t="type"){fe(e);function n(r){let i=r[t],s=e[i];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:r});return s}return n}var Se=Dt;var q=class{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},V=class{constructor(t,n,r,i,s,a){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=s,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},Q={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},Xn=new Set(Object.keys(Q));var C;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(C||(C={}));var gt=Se(Q,"kind"),ve=gt;function At(e,t,n){let{node:r}=e;if(!r.description)return"";let i=[n("description")];return r.kind==="InputValueDefinition"&&!r.description.block?i.push(k):i.push(f),i}var g=At;function kt(e,t,n){let{node:r}=e;switch(r.kind){case"Document":return[...E(f,A(e,t,n,"definitions")),f];case"OperationDefinition":{let i=t.originalText[J(r)]!=="{",s=!!r.name;return[i?r.operation:"",i&&s?[" ",n("name")]:"",i&&!s&&le(r.variableDefinitions)?" ":"",be(e,n),_(e,n,r),!i&&!s?"":" ",n("selectionSet")]}case"FragmentDefinition":return["fragment ",n("name"),be(e,n)," on ",n("typeCondition"),_(e,n,r)," ",n("selectionSet")];case"SelectionSet":return["{",x([f,E(f,A(e,t,n,"selections"))]),f,"}"];case"Field":return y([r.alias?[n("alias"),": "]:"",n("name"),r.arguments.length>0?y(["(",x([p,E([O("",", "),p],A(e,t,n,"arguments"))]),p,")"]):"",_(e,n,r),r.selectionSet?" ":"",n("selectionSet")]);case"Name":return r.value;case"StringValue":if(r.block){let i=Y(!1,r.value,'"""','\\"""').split(` +`+e}function J(e){return e.kind==="Comment"?e.start:e.loc.start}function X(e){return e.kind==="Comment"?e.end:e.loc.end}var F=null;function w(e){if(F!==null&&typeof F.property){let t=F;return F=w.prototype=null,t}return F=w.prototype=e??Object.create(null),new w}var Ot=10;for(let e=0;e<=Ot;e++)w();function pe(e){return w(e)}function Dt(e,t="type"){pe(e);function n(r){let i=r[t],s=e[i];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:r});return s}return n}var Se=Dt;var q=class{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},V=class{constructor(t,n,r,i,s,a){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=s,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},Q={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},Xn=new Set(Object.keys(Q));var C;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(C||(C={}));var gt=Se(Q,"kind"),ve=gt;function At(e,t,n){let{node:r}=e;if(!r.description)return"";let i=[n("description")];return r.kind==="InputValueDefinition"&&!r.description.block?i.push(k):i.push(f),i}var g=At;function kt(e,t,n){let{node:r}=e;switch(r.kind){case"Document":return[...E(f,A(e,t,n,"definitions")),f];case"OperationDefinition":{let i=t.originalText[J(r)]!=="{",s=!!r.name;return[i?r.operation:"",i&&s?[" ",n("name")]:"",i&&!s&&ue(r.variableDefinitions)?" ":"",be(e,n),_(e,n,r),!i&&!s?"":" ",n("selectionSet")]}case"FragmentDefinition":return["fragment ",n("name"),be(e,n)," on ",n("typeCondition"),_(e,n,r)," ",n("selectionSet")];case"SelectionSet":return["{",x([f,E(f,A(e,t,n,"selections"))]),f,"}"];case"Field":return y([r.alias?[n("alias"),": "]:"",n("name"),r.arguments.length>0?y(["(",x([p,E([O("",", "),p],A(e,t,n,"arguments"))]),p,")"]):"",_(e,n,r),r.selectionSet?" ":"",n("selectionSet")]);case"Name":return r.value;case"StringValue":if(r.block){let i=Y(!1,r.value,'"""','\\"""').split(` `);return i.length===1&&(i[0]=i[0].trim()),i.every(s=>s==="")&&(i.length=0),E(f,['"""',...i,'"""'])}return['"',Y(!1,Y(!1,r.value,/["\\]/g,"\\$&"),` -`,"\\n"),'"'];case"IntValue":case"FloatValue":case"EnumValue":return r.value;case"BooleanValue":return r.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",n("name")];case"ListValue":return y(["[",x([p,E([O("",", "),p],e.map(n,"values"))]),p,"]"]);case"ObjectValue":{let i=t.bracketSpacing&&r.fields.length>0?" ":"";return y(["{",i,x([p,E([O("",", "),p],e.map(n,"fields"))]),p,O("",i),"}"])}case"ObjectField":case"Argument":return[n("name"),": ",n("value")];case"Directive":return["@",n("name"),r.arguments.length>0?y(["(",x([p,E([O("",", "),p],A(e,t,n,"arguments"))]),p,")"]):""];case"NamedType":return n("name");case"VariableDefinition":return[n("variable"),": ",n("type"),r.defaultValue?[" = ",n("defaultValue")]:"",_(e,n,r)];case"ObjectTypeExtension":case"ObjectTypeDefinition":case"InputObjectTypeExtension":case"InputObjectTypeDefinition":case"InterfaceTypeExtension":case"InterfaceTypeDefinition":{let{kind:i}=r,s=[];return i.endsWith("TypeDefinition")?s.push(g(e,t,n)):s.push("extend "),i.startsWith("ObjectType")?s.push("type"):i.startsWith("InputObjectType")?s.push("input"):s.push("interface"),s.push(" ",n("name")),!i.startsWith("InputObjectType")&&r.interfaces.length>0&&s.push(" implements ",...vt(e,t,n)),s.push(_(e,n,r)),r.fields.length>0&&s.push([" {",x([f,E(f,A(e,t,n,"fields"))]),f,"}"]),s}case"FieldDefinition":return[g(e,t,n),n("name"),r.arguments.length>0?y(["(",x([p,E([O("",", "),p],A(e,t,n,"arguments"))]),p,")"]):"",": ",n("type"),_(e,n,r)];case"DirectiveDefinition":return[g(e,t,n),"directive ","@",n("name"),r.arguments.length>0?y(["(",x([p,E([O("",", "),p],A(e,t,n,"arguments"))]),p,")"]):"",r.repeatable?" repeatable":""," on ",...E(" | ",e.map(n,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[g(e,t,n),r.kind==="EnumTypeExtension"?"extend ":"","enum ",n("name"),_(e,n,r),r.values.length>0?[" {",x([f,E(f,A(e,t,n,"values"))]),f,"}"]:""];case"EnumValueDefinition":return[g(e,t,n),n("name"),_(e,n,r)];case"InputValueDefinition":return[g(e,t,n),n("name"),": ",n("type"),r.defaultValue?[" = ",n("defaultValue")]:"",_(e,n,r)];case"SchemaExtension":return["extend schema",_(e,n,r),...r.operationTypes.length>0?[" {",x([f,E(f,A(e,t,n,"operationTypes"))]),f,"}"]:[]];case"SchemaDefinition":return[g(e,t,n),"schema",_(e,n,r)," {",r.operationTypes.length>0?x([f,E(f,A(e,t,n,"operationTypes"))]):"",f,"}"];case"OperationTypeDefinition":return[r.operation,": ",n("type")];case"FragmentSpread":return["...",n("name"),_(e,n,r)];case"InlineFragment":return["...",r.typeCondition?[" on ",n("typeCondition")]:"",_(e,n,r)," ",n("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return y([g(e,t,n),y([r.kind==="UnionTypeExtension"?"extend ":"","union ",n("name"),_(e,n,r),r.types.length>0?[" =",O(""," "),x([O([k," "]),E([k,"| "],e.map(n,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[g(e,t,n),r.kind==="ScalarTypeExtension"?"extend ":"","scalar ",n("name"),_(e,n,r)];case"NonNullType":return[n("type"),"!"];case"ListType":return["[",n("type"),"]"];default:throw new Ae(r,"Graphql","kind")}}function _(e,t,n){if(n.directives.length===0)return"";let r=E(k,e.map(t,"directives"));return n.kind==="FragmentDefinition"||n.kind==="OperationDefinition"?y([k,r]):[" ",y(x([p,r]))]}function A(e,t,n,r){return e.map(({isLast:i,node:s})=>{let a=n();return!i&&ge(t.originalText,X(s))?[a,f]:a},r)}function Ct(e){return e.kind!=="Comment"}function St(e){let t=e.node;if(t.kind==="Comment")return"#"+t.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(t))}function vt(e,t,n){let{node:r}=e,i=[],{interfaces:s}=r,a=e.map(n,"interfaces");for(let u=0;ur.value.trim()==="prettier-ignore")}var Lt={print:kt,massageAstNode:Le,hasPrettierIgnore:bt,insertPragma:Ce,printComment:St,canAttachComment:Ct,getVisitorKeys:ve},Re=Lt;var ie={};Ne(ie,{graphql:()=>tn});function Pe(e){return typeof e=="object"&&e!==null}function Fe(e,t){if(!!!e)throw new Error(t??"Unexpected invariant triggered.")}var Rt=/\r\n|[\n\r]/g;function B(e,t){let n=0,r=1;for(let i of e.body.matchAll(Rt)){if(typeof i.index=="number"||Fe(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function Ve(e){return he(e.source,B(e.source,e.start))}function he(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,s=e.locationOffset.line-1,a=t.line+s,u=t.line===1?n:0,l=t.column+u,T=`${e.name}:${a}:${l} -`,h=r.split(/\r\n|[\n\r]/g),D=h[i];if(D.length>120){let I=Math.floor(l/80),re=l%80,N=[];for(let v=0;v["|",v]),["|","^".padStart(re)],["|",N[I+1]]])}return T+we([[`${a-1} |`,h[i-1]],[`${a} |`,D],["|","^".padStart(l)],[`${a+1} |`,h[i+1]]])}function we(e){let t=e.filter(([r,i])=>i!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join(` -`)}function Pt(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var W=class e extends Error{constructor(t,...n){var r,i,s;let{nodes:a,source:u,positions:l,path:T,originalError:h,extensions:D}=Pt(n);super(t),this.name="GraphQLError",this.path=T??void 0,this.originalError=h??void 0,this.nodes=Be(Array.isArray(a)?a:a?[a]:void 0);let I=Be((r=this.nodes)===null||r===void 0?void 0:r.map(N=>N.loc).filter(N=>N!=null));this.source=u??(I==null||(i=I[0])===null||i===void 0?void 0:i.source),this.positions=l??(I==null?void 0:I.map(N=>N.start)),this.locations=l&&u?l.map(N=>B(u,N)):I==null?void 0:I.map(N=>B(N.source,N.start));let re=Pe(h==null?void 0:h.extensions)?h==null?void 0:h.extensions:void 0;this.extensions=(s=D??re)!==null&&s!==void 0?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),h!=null&&h.stack?Object.defineProperty(this,"stack",{value:h.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(t+=` +`,"\\n"),'"'];case"IntValue":case"FloatValue":case"EnumValue":return r.value;case"BooleanValue":return r.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",n("name")];case"ListValue":return y(["[",x([p,E([O("",", "),p],e.map(n,"values"))]),p,"]"]);case"ObjectValue":{let i=t.bracketSpacing&&r.fields.length>0?" ":"";return y(["{",i,x([p,E([O("",", "),p],e.map(n,"fields"))]),p,O("",i),"}"])}case"ObjectField":case"Argument":return[n("name"),": ",n("value")];case"Directive":return["@",n("name"),r.arguments.length>0?y(["(",x([p,E([O("",", "),p],A(e,t,n,"arguments"))]),p,")"]):""];case"NamedType":return n("name");case"VariableDefinition":return[n("variable"),": ",n("type"),r.defaultValue?[" = ",n("defaultValue")]:"",_(e,n,r)];case"ObjectTypeExtension":case"ObjectTypeDefinition":case"InputObjectTypeExtension":case"InputObjectTypeDefinition":case"InterfaceTypeExtension":case"InterfaceTypeDefinition":{let{kind:i}=r,s=[];return i.endsWith("TypeDefinition")?s.push(g(e,t,n)):s.push("extend "),i.startsWith("ObjectType")?s.push("type"):i.startsWith("InputObjectType")?s.push("input"):s.push("interface"),s.push(" ",n("name")),!i.startsWith("InputObjectType")&&r.interfaces.length>0&&s.push(" implements ",...vt(e,t,n)),s.push(_(e,n,r)),r.fields.length>0&&s.push([" {",x([f,E(f,A(e,t,n,"fields"))]),f,"}"]),s}case"FieldDefinition":return[g(e,t,n),n("name"),r.arguments.length>0?y(["(",x([p,E([O("",", "),p],A(e,t,n,"arguments"))]),p,")"]):"",": ",n("type"),_(e,n,r)];case"DirectiveDefinition":return[g(e,t,n),"directive ","@",n("name"),r.arguments.length>0?y(["(",x([p,E([O("",", "),p],A(e,t,n,"arguments"))]),p,")"]):"",r.repeatable?" repeatable":""," on ",...E(" | ",e.map(n,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[g(e,t,n),r.kind==="EnumTypeExtension"?"extend ":"","enum ",n("name"),_(e,n,r),r.values.length>0?[" {",x([f,E(f,A(e,t,n,"values"))]),f,"}"]:""];case"EnumValueDefinition":return[g(e,t,n),n("name"),_(e,n,r)];case"InputValueDefinition":return[g(e,t,n),n("name"),": ",n("type"),r.defaultValue?[" = ",n("defaultValue")]:"",_(e,n,r)];case"SchemaExtension":return["extend schema",_(e,n,r),...r.operationTypes.length>0?[" {",x([f,E(f,A(e,t,n,"operationTypes"))]),f,"}"]:[]];case"SchemaDefinition":return[g(e,t,n),"schema",_(e,n,r)," {",r.operationTypes.length>0?x([f,E(f,A(e,t,n,"operationTypes"))]):"",f,"}"];case"OperationTypeDefinition":return[r.operation,": ",n("type")];case"FragmentSpread":return["...",n("name"),_(e,n,r)];case"InlineFragment":return["...",r.typeCondition?[" on ",n("typeCondition")]:"",_(e,n,r)," ",n("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return y([g(e,t,n),y([r.kind==="UnionTypeExtension"?"extend ":"","union ",n("name"),_(e,n,r),r.types.length>0?[" =",O(""," "),x([O([k," "]),E([k,"| "],e.map(n,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[g(e,t,n),r.kind==="ScalarTypeExtension"?"extend ":"","scalar ",n("name"),_(e,n,r)];case"NonNullType":return[n("type"),"!"];case"ListType":return["[",n("type"),"]"];default:throw new Ae(r,"Graphql","kind")}}function _(e,t,n){if(n.directives.length===0)return"";let r=E(k,e.map(t,"directives"));return n.kind==="FragmentDefinition"||n.kind==="OperationDefinition"?y([k,r]):[" ",y(x([p,r]))]}function A(e,t,n,r){return e.map(({isLast:i,node:s})=>{let a=n();return!i&&ge(t.originalText,X(s))?[a,f]:a},r)}function Ct(e){return e.kind!=="Comment"}function St(e){let t=e.node;if(t.kind==="Comment")return"#"+t.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(t))}function vt(e,t,n){let{node:r}=e,i=[],{interfaces:s}=r,a=e.map(n,"interfaces");for(let u=0;ur.value.trim()==="prettier-ignore")}var Lt={print:kt,massageAstNode:Le,hasPrettierIgnore:bt,insertPragma:Ce,printComment:St,canAttachComment:Ct,getVisitorKeys:ve},Re=Lt;var Ee={};Ne(Ee,{graphql:()=>tn});function Pe(e){return typeof e=="object"&&e!==null}function Fe(e,t){if(!!!e)throw new Error(t??"Unexpected invariant triggered.")}var Rt=/\r\n|[\n\r]/g;function B(e,t){let n=0,r=1;for(let i of e.body.matchAll(Rt)){if(typeof i.index=="number"||Fe(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function Ve(e){return fe(e.source,B(e.source,e.start))}function fe(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,s=e.locationOffset.line-1,a=t.line+s,u=t.line===1?n:0,l=t.column+u,T=`${e.name}:${a}:${l} +`,h=r.split(/\r\n|[\n\r]/g),D=h[i];if(D.length>120){let I=Math.floor(l/80),ie=l%80,N=[];for(let v=0;v["|",v]),["|","^".padStart(ie)],["|",N[I+1]]])}return T+we([[`${a-1} |`,h[i-1]],[`${a} |`,D],["|","^".padStart(l)],[`${a+1} |`,h[i+1]]])}function we(e){let t=e.filter(([r,i])=>i!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join(` +`)}function Pt(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var W=class e extends Error{constructor(t,...n){var r,i,s;let{nodes:a,source:u,positions:l,path:T,originalError:h,extensions:D}=Pt(n);super(t),this.name="GraphQLError",this.path=T??void 0,this.originalError=h??void 0,this.nodes=Be(Array.isArray(a)?a:a?[a]:void 0);let I=Be((r=this.nodes)===null||r===void 0?void 0:r.map(N=>N.loc).filter(N=>N!=null));this.source=u??(I==null||(i=I[0])===null||i===void 0?void 0:i.source),this.positions=l??(I==null?void 0:I.map(N=>N.start)),this.locations=l&&u?l.map(N=>B(u,N)):I==null?void 0:I.map(N=>B(N.source,N.start));let ie=Pe(h==null?void 0:h.extensions)?h==null?void 0:h.extensions:void 0;this.extensions=(s=D??ie)!==null&&s!==void 0?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),h!=null&&h.stack?Object.defineProperty(this,"stack",{value:h.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(t+=` `+Ve(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=` -`+he(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};function Be(e){return e===void 0||e.length===0?void 0:e}function d(e,t,n){return new W(`Syntax Error: ${n}`,{source:e,positions:[t]})}var H;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(H||(H={}));var c;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(c||(c={}));function Ue(e){return e===9||e===32}function L(e){return e>=48&&e<=57}function Me(e){return e>=97&&e<=122||e>=65&&e<=90}function de(e){return Me(e)||e===95}function Ye(e){return Me(e)||L(e)||e===95}function je(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let a=0;au===0?a:a.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function Ft(e){let t=0;for(;t=0&&e<=55295||e>=57344&&e<=1114111}function K(e,t){return Je(e.charCodeAt(t))&&Xe(e.charCodeAt(t+1))}function Je(e){return e>=55296&&e<=56319}function Xe(e){return e>=56320&&e<=57343}function S(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return o.EOF;if(n>=32&&n<=126){let r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function m(e,t,n,r,i){let s=e.line,a=1+n-e.lineStart;return new V(t,n,r,s,a,i)}function wt(e,t){let n=e.source.body,r=n.length,i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function jt(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` +`+fe(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};function Be(e){return e===void 0||e.length===0?void 0:e}function d(e,t,n){return new W(`Syntax Error: ${n}`,{source:e,positions:[t]})}var H;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(H||(H={}));var c;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(c||(c={}));function Ue(e){return e===9||e===32}function L(e){return e>=48&&e<=57}function Me(e){return e>=97&&e<=122||e>=65&&e<=90}function he(e){return Me(e)||e===95}function Ye(e){return Me(e)||L(e)||e===95}function je(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let a=0;au===0?a:a.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function Ft(e){let t=0;for(;t=0&&e<=55295||e>=57344&&e<=1114111}function K(e,t){return Je(e.charCodeAt(t))&&Xe(e.charCodeAt(t+1))}function Je(e){return e>=55296&&e<=56319}function Xe(e){return e>=56320&&e<=57343}function S(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return o.EOF;if(n>=32&&n<=126){let r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function m(e,t,n,r,i){let s=e.line,a=1+n-e.lineStart;return new V(t,n,r,s,a,i)}function wt(e,t){let n=e.source.body,r=n.length,i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function jt(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` `,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw d(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function Gt(e,t){let n=e.source.body,r=n.length,i=e.lineStart,s=t+3,a=s,u="",l=[];for(;s2?"["+Wt(e)+"]":"{ "+n.map(([i,s])=>i+": "+te(s,t)).join(", ")+" }"}function Qt(e,t){if(e.length===0)return"[]";if(t.length>2)return"[Array]";let n=Math.min(10,e.length),r=e.length-n,i=[];for(let s=0;s1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function Wt(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}var qe=globalThis.process&&globalThis.process.env.NODE_ENV==="production"?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var r;let i=n.prototype[Symbol.toStringTag],s=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(i===s){let a=ee(t);throw new Error(`Cannot use ${i} "${a}" from another module or realm. @@ -26,4 +26,4 @@ https://yarnpkg.com/en/docs/selective-version-resolutions Duplicate "graphql" modules cannot be used at the same time since different versions may have different capabilities and behavior. The data from one version used in the function from another could produce confusing and -spurious results.`)}}return!1};var M=class{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||Z(!1,`Body must be a string. Received: ${ee(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||Z(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Z(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};function Qe(e){return qe(e,M)}function We(e,t){return new Ee(e,t).parseDocument()}var Ee=class{constructor(t,n={}){let r=Qe(t)?t:new M(t);this._lexer=new z(r),this._options=n,this._tokenCounter=0}parseName(){let t=this.expectToken(o.NAME);return this.node(t,{kind:c.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:c.DOCUMENT,definitions:this.many(o.SOF,this.parseDefinition,o.EOF)})}parseDefinition(){if(this.peek(o.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===o.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw d(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(o.BRACE_L))return this.node(t,{kind:c.OPERATION_DEFINITION,operation:C.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType(),r;return this.peek(o.NAME)&&(r=this.parseName()),this.node(t,{kind:c.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(o.NAME);switch(t.value){case"query":return C.QUERY;case"mutation":return C.MUTATION;case"subscription":return C.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(o.PAREN_L,this.parseVariableDefinition,o.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:c.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(o.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(o.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(o.DOLLAR),this.node(t,{kind:c.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:c.SELECTION_SET,selections:this.many(o.BRACE_L,this.parseSelection,o.BRACE_R)})}parseSelection(){return this.peek(o.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),r,i;return this.expectOptionalToken(o.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:c.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(o.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(o.PAREN_L,n,o.PAREN_R)}parseArgument(t=!1){let n=this._lexer.token,r=this.parseName();return this.expectToken(o.COLON),this.node(n,{kind:c.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(o.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(o.NAME)?this.node(t,{kind:c.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:c.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:c.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:c.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){let n=this._lexer.token;switch(n.kind){case o.BRACKET_L:return this.parseList(t);case o.BRACE_L:return this.parseObject(t);case o.INT:return this.advanceLexer(),this.node(n,{kind:c.INT,value:n.value});case o.FLOAT:return this.advanceLexer(),this.node(n,{kind:c.FLOAT,value:n.value});case o.STRING:case o.BLOCK_STRING:return this.parseStringLiteral();case o.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:c.BOOLEAN,value:!0});case"false":return this.node(n,{kind:c.BOOLEAN,value:!1});case"null":return this.node(n,{kind:c.NULL});default:return this.node(n,{kind:c.ENUM,value:n.value})}case o.DOLLAR:if(t)if(this.expectToken(o.DOLLAR),this._lexer.token.kind===o.NAME){let r=this._lexer.token.value;throw d(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:c.STRING,value:t.value,block:t.kind===o.BLOCK_STRING})}parseList(t){let n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:c.LIST,values:this.any(o.BRACKET_L,n,o.BRACKET_R)})}parseObject(t){let n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:c.OBJECT,fields:this.any(o.BRACE_L,n,o.BRACE_R)})}parseObjectField(t){let n=this._lexer.token,r=this.parseName();return this.expectToken(o.COLON),this.node(n,{kind:c.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){let n=[];for(;this.peek(o.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let n=this._lexer.token;return this.expectToken(o.AT),this.node(n,{kind:c.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,n;if(this.expectOptionalToken(o.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(o.BRACKET_R),n=this.node(t,{kind:c.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(o.BANG)?this.node(t,{kind:c.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:c.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(o.STRING)||this.peek(o.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),i=this.many(o.BRACE_L,this.parseOperationTypeDefinition,o.BRACE_R);return this.node(t,{kind:c.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){let t=this._lexer.token,n=this.parseOperationType();this.expectToken(o.COLON);let r=this.parseNamedType();return this.node(t,{kind:c.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:c.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i})}parseObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:c.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(o.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(o.BRACE_L,this.parseFieldDefinition,o.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(o.COLON);let s=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(t,{kind:c.FIELD_DEFINITION,description:n,name:r,arguments:i,type:s,directives:a})}parseArgumentDefs(){return this.optionalMany(o.PAREN_L,this.parseInputValueDef,o.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(o.COLON);let i=this.parseTypeReference(),s;this.expectOptionalToken(o.EQUALS)&&(s=this.parseConstValueLiteral());let a=this.parseConstDirectives();return this.node(t,{kind:c.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:s,directives:a})}parseInterfaceTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:c.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:a})}parseUnionTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(t,{kind:c.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(o.EQUALS)?this.delimitedMany(o.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(t,{kind:c.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:s})}parseEnumValuesDefinition(){return this.optionalMany(o.BRACE_L,this.parseEnumValueDefinition,o.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:c.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw d(this._lexer.source,this._lexer.token.start,`${ne(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(t,{kind:c.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(o.BRACE_L,this.parseInputValueDef,o.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===o.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.optionalMany(o.BRACE_L,this.parseOperationTypeDefinition,o.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:c.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:c.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:c.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:c.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}parseUnionTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:c.UNION_TYPE_EXTENSION,name:n,directives:r,types:i})}parseEnumTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:c.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i})}parseInputObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:c.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(o.AT);let r=this.parseName(),i=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let a=this.parseDirectiveLocations();return this.node(t,{kind:c.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:s,locations:a})}parseDirectiveLocations(){return this.delimitedMany(o.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(H,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new q(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){let n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw d(this._lexer.source,n.start,`Expected ${He(t)}, found ${ne(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let n=this._lexer.token;if(n.kind===o.NAME&&n.value===t)this.advanceLexer();else throw d(this._lexer.source,n.start,`Expected "${t}", found ${ne(n)}.`)}expectOptionalKeyword(t){let n=this._lexer.token;return n.kind===o.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let n=t??this._lexer.token;return d(this._lexer.source,n.start,`Unexpected ${ne(n)}.`)}any(t,n,r){this.expectToken(t);let i=[];for(;!this.expectOptionalToken(r);)i.push(n.call(this));return i}optionalMany(t,n,r){if(this.expectOptionalToken(t)){let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}return[]}many(t,n,r){this.expectToken(t);let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(t,n){this.expectOptionalToken(t);let r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){let{maxTokens:t}=this._options,n=this._lexer.advance();if(t!==void 0&&n.kind!==o.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw d(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};function ne(e){let t=e.value;return He(e.kind)+(t!=null?` "${t}"`:"")}function He(e){return $e(e)?`"${e}"`:e}function Ht(e,t){let n=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(n,t)}var ze=Ht;function zt(e){let t=[],{startToken:n,endToken:r}=e.loc;for(let i=n;i!==r;i=i.next)i.kind==="Comment"&&t.push(i);return t}var Kt={allowLegacyFragmentVariables:!0};function Zt(e){if((e==null?void 0:e.name)==="GraphQLError"){let{message:t,locations:[n]}=e;return ze(t,{loc:{start:n},cause:e})}return e}function en(e){let t;try{t=We(e,Kt)}catch(n){throw Zt(n)}return t.comments=zt(t),t}var tn={parse:en,astFormat:"graphql",hasPragma:ke,locStart:J,locEnd:X};var Ke=[{linguistLanguageId:139,name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",parsers:["graphql"],vscodeLanguageIds:["graphql"]}];var Ze={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var nn={bracketSpacing:Ze.bracketSpacing},et=nn;var rn={graphql:Re};var pr=Te;export{pr as default,Ke as languages,et as options,ie as parsers,rn as printers}; +spurious results.`)}}return!1};var M=class{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||Z(!1,`Body must be a string. Received: ${ee(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||Z(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Z(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};function Qe(e){return qe(e,M)}function We(e,t){return new me(e,t).parseDocument()}var me=class{constructor(t,n={}){let r=Qe(t)?t:new M(t);this._lexer=new z(r),this._options=n,this._tokenCounter=0}parseName(){let t=this.expectToken(o.NAME);return this.node(t,{kind:c.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:c.DOCUMENT,definitions:this.many(o.SOF,this.parseDefinition,o.EOF)})}parseDefinition(){if(this.peek(o.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===o.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw d(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(o.BRACE_L))return this.node(t,{kind:c.OPERATION_DEFINITION,operation:C.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType(),r;return this.peek(o.NAME)&&(r=this.parseName()),this.node(t,{kind:c.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(o.NAME);switch(t.value){case"query":return C.QUERY;case"mutation":return C.MUTATION;case"subscription":return C.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(o.PAREN_L,this.parseVariableDefinition,o.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:c.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(o.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(o.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(o.DOLLAR),this.node(t,{kind:c.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:c.SELECTION_SET,selections:this.many(o.BRACE_L,this.parseSelection,o.BRACE_R)})}parseSelection(){return this.peek(o.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),r,i;return this.expectOptionalToken(o.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:c.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(o.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(o.PAREN_L,n,o.PAREN_R)}parseArgument(t=!1){let n=this._lexer.token,r=this.parseName();return this.expectToken(o.COLON),this.node(n,{kind:c.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(o.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(o.NAME)?this.node(t,{kind:c.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:c.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:c.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:c.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){let n=this._lexer.token;switch(n.kind){case o.BRACKET_L:return this.parseList(t);case o.BRACE_L:return this.parseObject(t);case o.INT:return this.advanceLexer(),this.node(n,{kind:c.INT,value:n.value});case o.FLOAT:return this.advanceLexer(),this.node(n,{kind:c.FLOAT,value:n.value});case o.STRING:case o.BLOCK_STRING:return this.parseStringLiteral();case o.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:c.BOOLEAN,value:!0});case"false":return this.node(n,{kind:c.BOOLEAN,value:!1});case"null":return this.node(n,{kind:c.NULL});default:return this.node(n,{kind:c.ENUM,value:n.value})}case o.DOLLAR:if(t)if(this.expectToken(o.DOLLAR),this._lexer.token.kind===o.NAME){let r=this._lexer.token.value;throw d(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:c.STRING,value:t.value,block:t.kind===o.BLOCK_STRING})}parseList(t){let n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:c.LIST,values:this.any(o.BRACKET_L,n,o.BRACKET_R)})}parseObject(t){let n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:c.OBJECT,fields:this.any(o.BRACE_L,n,o.BRACE_R)})}parseObjectField(t){let n=this._lexer.token,r=this.parseName();return this.expectToken(o.COLON),this.node(n,{kind:c.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){let n=[];for(;this.peek(o.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let n=this._lexer.token;return this.expectToken(o.AT),this.node(n,{kind:c.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,n;if(this.expectOptionalToken(o.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(o.BRACKET_R),n=this.node(t,{kind:c.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(o.BANG)?this.node(t,{kind:c.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:c.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(o.STRING)||this.peek(o.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),i=this.many(o.BRACE_L,this.parseOperationTypeDefinition,o.BRACE_R);return this.node(t,{kind:c.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){let t=this._lexer.token,n=this.parseOperationType();this.expectToken(o.COLON);let r=this.parseNamedType();return this.node(t,{kind:c.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:c.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i})}parseObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:c.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(o.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(o.BRACE_L,this.parseFieldDefinition,o.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(o.COLON);let s=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(t,{kind:c.FIELD_DEFINITION,description:n,name:r,arguments:i,type:s,directives:a})}parseArgumentDefs(){return this.optionalMany(o.PAREN_L,this.parseInputValueDef,o.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(o.COLON);let i=this.parseTypeReference(),s;this.expectOptionalToken(o.EQUALS)&&(s=this.parseConstValueLiteral());let a=this.parseConstDirectives();return this.node(t,{kind:c.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:s,directives:a})}parseInterfaceTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:c.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:a})}parseUnionTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(t,{kind:c.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(o.EQUALS)?this.delimitedMany(o.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(t,{kind:c.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:s})}parseEnumValuesDefinition(){return this.optionalMany(o.BRACE_L,this.parseEnumValueDefinition,o.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:c.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw d(this._lexer.source,this._lexer.token.start,`${ne(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(t,{kind:c.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(o.BRACE_L,this.parseInputValueDef,o.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===o.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.optionalMany(o.BRACE_L,this.parseOperationTypeDefinition,o.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:c.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:c.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:c.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:c.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}parseUnionTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:c.UNION_TYPE_EXTENSION,name:n,directives:r,types:i})}parseEnumTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:c.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i})}parseInputObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:c.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(o.AT);let r=this.parseName(),i=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let a=this.parseDirectiveLocations();return this.node(t,{kind:c.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:s,locations:a})}parseDirectiveLocations(){return this.delimitedMany(o.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(H,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new q(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){let n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw d(this._lexer.source,n.start,`Expected ${He(t)}, found ${ne(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let n=this._lexer.token;if(n.kind===o.NAME&&n.value===t)this.advanceLexer();else throw d(this._lexer.source,n.start,`Expected "${t}", found ${ne(n)}.`)}expectOptionalKeyword(t){let n=this._lexer.token;return n.kind===o.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let n=t??this._lexer.token;return d(this._lexer.source,n.start,`Unexpected ${ne(n)}.`)}any(t,n,r){this.expectToken(t);let i=[];for(;!this.expectOptionalToken(r);)i.push(n.call(this));return i}optionalMany(t,n,r){if(this.expectOptionalToken(t)){let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}return[]}many(t,n,r){this.expectToken(t);let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(t,n){this.expectOptionalToken(t);let r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){let{maxTokens:t}=this._options,n=this._lexer.advance();if(t!==void 0&&n.kind!==o.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw d(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};function ne(e){let t=e.value;return He(e.kind)+(t!=null?` "${t}"`:"")}function He(e){return $e(e)?`"${e}"`:e}function Ht(e,t){let n=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(n,t)}var ze=Ht;function zt(e){let t=[],{startToken:n,endToken:r}=e.loc;for(let i=n;i!==r;i=i.next)i.kind==="Comment"&&t.push(i);return t}var Kt={allowLegacyFragmentVariables:!0};function Zt(e){if((e==null?void 0:e.name)==="GraphQLError"){let{message:t,locations:[n]}=e;return ze(t,{loc:{start:n},cause:e})}return e}function en(e){let t;try{t=We(e,Kt)}catch(n){throw Zt(n)}return t.comments=zt(t),t}var tn={parse:en,astFormat:"graphql",hasPragma:ke,locStart:J,locEnd:X};var Ke=[{linguistLanguageId:139,name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",parsers:["graphql"],vscodeLanguageIds:["graphql"]}];var Ze={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var nn={bracketSpacing:Ze.bracketSpacing},et=nn;var rn={graphql:Re};var pr=Te;export{pr as default,Ke as languages,et as options,Ee as parsers,rn as printers}; diff --git a/node_modules/prettier/plugins/html.js b/node_modules/prettier/plugins/html.js index c086729..1cb8143 100644 --- a/node_modules/prettier/plugins/html.js +++ b/node_modules/prettier/plugins/html.js @@ -1,19 +1,19 @@ -(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.html=e()}})(function(){"use strict";var Jt=Object.defineProperty;var Ps=Object.getOwnPropertyDescriptor;var Is=Object.getOwnPropertyNames;var Rs=Object.prototype.hasOwnProperty;var qr=(t,e)=>{for(var r in e)Jt(t,r,{get:e[r],enumerable:!0})},$s=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Is(e))!Rs.call(t,s)&&s!==r&&Jt(t,s,{get:()=>e[s],enumerable:!(n=Ps(e,s))||n.enumerable});return t};var Ms=t=>$s(Jt({},"__esModule",{value:!0}),t);var Hr=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var z=(t,e,r)=>(Hr(t,e,"read from private field"),r?r.call(t):e.get(t)),Vr=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},Ur=(t,e,r,n)=>(Hr(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);var cu={};qr(cu,{languages:()=>Bs,options:()=>Fs,parsers:()=>Qt,printers:()=>lu});var Os=(t,e,r,n)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(r,n):r.global?e.replace(r,n):e.split(r).join(n)},v=Os;var Ae="string",_e="array",De="cursor",ne="indent",se="align",ve="trim",X="group",ie="fill",ae="if-break",ue="indent-if-break",ye="line-suffix",be="line-suffix-boundary",V="line",we="label",oe="break-parent",lt=new Set([De,ne,se,ve,X,ie,ae,ue,ye,be,V,we,oe]);function qs(t){if(typeof t=="string")return Ae;if(Array.isArray(t))return _e;if(!t)return;let{type:e}=t;if(lt.has(e))return e}var Te=qs;var Hs=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function Vs(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', -Expected it to be 'string' or 'object'.`;if(Te(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=Hs([...lt].map(s=>`'${s}'`));return`Unexpected doc.type '${t.type}'. -Expected it to be ${n}.`}var Zt=class extends Error{name="InvalidDocError";constructor(e){super(Vs(e)),this.doc=e}},ct=Zt;var Wr=()=>{},Q=Wr,pt=Wr;function U(t){return Q(t),{type:ne,contents:t}}function Gr(t,e){return Q(e),{type:se,contents:e,n:t}}function D(t,e={}){return Q(t),pt(e.expandedStates,!0),{type:X,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function zr(t){return Gr(Number.NEGATIVE_INFINITY,t)}function Yr(t){return Gr({type:"root"},t)}function ht(t){return pt(t),{type:ie,parts:t}}function le(t,e="",r={}){return Q(t),e!==""&&Q(e),{type:ae,breakContents:t,flatContents:e,groupId:r.groupId}}function jr(t,e){return Q(t),{type:ue,contents:t,groupId:e.groupId,negate:e.negate}}var J={type:oe};var Us={type:V,hard:!0},Ws={type:V,hard:!0,literal:!0},_={type:V},x={type:V,soft:!0},S=[Us,J],Kr=[Ws,J];function Z(t,e){Q(t),pt(e);let r=[];for(let n=0;n{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[r<0?e.length+r:r]:e.at(r)},xe=Gs;function ft(t,e){if(typeof t=="string")return e(t);let r=new Map;return n(t);function n(i){if(r.has(i))return r.get(i);let a=s(i);return r.set(i,a),a}function s(i){switch(Te(i)){case _e:return e(i.map(n));case ie:return e({...i,parts:i.parts.map(n)});case ae:return e({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case X:{let{expandedStates:a,contents:u}=i;return a?(a=a.map(n),u=a[0]):u=n(u),e({...i,contents:u,expandedStates:a})}case se:case ne:case ue:case we:case ye:return e({...i,contents:n(i.contents)});case Ae:case De:case ve:case be:case V:case oe:return e(i);default:throw new ct(i)}}}function zs(t){switch(Te(t)){case ie:if(t.parts.every(e=>e===""))return"";break;case X:if(!t.contents&&!t.id&&!t.break&&!t.expandedStates)return"";if(t.contents.type===X&&t.contents.id===t.id&&t.contents.break===t.break&&t.contents.expandedStates===t.expandedStates)return t.contents;break;case se:case ne:case ue:case ye:if(!t.contents)return"";break;case ae:if(!t.flatContents&&!t.breakContents)return"";break;case _e:{let e=[];for(let r of t){if(!r)continue;let[n,...s]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof xe(!1,e,-1)=="string"?e[e.length-1]+=n:e.push(n),e.push(...s)}return e.length===0?"":e.length===1?e[0]:e}case Ae:case De:case ve:case be:case V:case we:case oe:break;default:throw new ct(t)}return t}function Xr(t){return ft(t,e=>zs(e))}function T(t,e=Kr){return ft(t,r=>typeof r=="string"?Z(e,r.split(` -`)):r)}var er=class extends Error{name="UnexpectedNodeError";constructor(e,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},Qr=er;var mt="'",Jr='"';function Ys(t,e){let r=e===!0||e===mt?mt:Jr,n=r===mt?Jr:mt,s=0,i=0;for(let a of t)a===r?s++:a===n&&i++;return s>i?n:r}var Zr=Ys;function js(t){return(t==null?void 0:t.type)==="front-matter"}var ke=js;var Ks=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens"]);function en(t,e){if(t.type==="text"||t.type==="comment"||ke(t)||t.type==="yaml"||t.type==="toml")return null;t.type==="attribute"&&delete e.value,t.type==="docType"&&delete e.value}en.ignoredProperties=Ks;var tn=en;var Xs=t=>t.split(/[/\\]/).pop();function rn(t,e){if(!e)return;let r=Xs(e).toLowerCase();return t.find(n=>{var s,i;return((s=n.extensions)==null?void 0:s.some(a=>r.endsWith(a)))||((i=n.filenames)==null?void 0:i.some(a=>a.toLowerCase()===r))})}function Qs(t,e){if(e)return t.find(({name:r})=>r.toLowerCase()===e)??t.find(({aliases:r})=>r==null?void 0:r.includes(e))??t.find(({extensions:r})=>r==null?void 0:r.includes(`.${e}`))}function Js(t,e){let r=t.plugins.flatMap(s=>s.languages??[]),n=Qs(r,e.language)??rn(r,e.physicalFile)??rn(r,e.file)??(e.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var Be=Js;var nn="inline",sn={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",details:"block",summary:"block",dialog:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block",search:"block"},an="normal",un={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function tr(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var R,rr=class{constructor(e){Vr(this,R,void 0);Ur(this,R,new Set(e))}getLeadingWhitespaceCount(e){let r=z(this,R),n=0;for(let s=0;s=0&&r.has(e.charAt(s));s--)n++;return n}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return z(this,R).has(e.charAt(0))}hasTrailingWhitespace(e){return z(this,R).has(xe(!1,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let n=`[${tr([...z(this,R)].join(""))}]+`,s=new RegExp(r?`(${n})`:n);return e.split(s)}hasWhitespaceCharacter(e){let r=z(this,R);return Array.prototype.some.call(e,n=>r.has(n))}hasNonWhitespaceCharacter(e){let r=z(this,R);return Array.prototype.some.call(e,n=>!r.has(n))}isWhitespaceOnly(e){let r=z(this,R);return Array.prototype.every.call(e,n=>r.has(n))}};R=new WeakMap;var on=rr;var Zs=[" ",` -`,"\f","\r"," "],ei=new on(Zs),Y=ei;function ti(t){return t.type==="element"&&!t.hasExplicitNamespace&&!["html","svg"].includes(t.namespace)}var ce=ti;var ri=t=>v(!1,t,/^[\t\f\r ]*\n/g,""),nr=t=>ri(Y.trimEnd(t)),ln=t=>{let e=t,r=Y.getLeadingWhitespace(e);r&&(e=e.slice(r.length));let n=Y.getTrailingWhitespace(e);return n&&(e=e.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:e}};function dt(t,e){return!!(t.type==="ieConditionalComment"&&t.lastChild&&!t.lastChild.isSelfClosing&&!t.lastChild.endSourceSpan||t.type==="ieConditionalComment"&&!t.complete||pe(t)&&t.children.some(r=>r.type!=="text"&&r.type!=="interpolation")||St(t,e)&&!M(t)&&t.type!=="interpolation")}function He(t){return t.type==="attribute"||!t.parent||!t.prev?!1:ni(t.prev)}function ni(t){return t.type==="comment"&&t.value.trim()==="prettier-ignore"}function L(t){return t.type==="text"||t.type==="comment"}function M(t){return t.type==="element"&&(t.fullName==="script"||t.fullName==="style"||t.fullName==="svg:style"||t.fullName==="svg:script"||ce(t)&&(t.name==="script"||t.name==="style"))}function cn(t){return t.children&&!M(t)}function pn(t){return M(t)||t.type==="interpolation"||sr(t)}function sr(t){return Dn(t).startsWith("pre")}function hn(t,e){var s,i;let r=n();if(r&&!t.prev&&((i=(s=t.parent)==null?void 0:s.tagDefinition)!=null&&i.ignoreFirstLf))return t.type==="interpolation";return r;function n(){return ke(t)?!1:(t.type==="text"||t.type==="interpolation")&&t.prev&&(t.prev.type==="text"||t.prev.type==="interpolation")?!0:!t.parent||t.parent.cssDisplay==="none"?!1:pe(t.parent)?!0:!(!t.prev&&(t.parent.type==="root"||pe(t)&&t.parent||M(t.parent)||We(t.parent,e)||!li(t.parent.cssDisplay))||t.prev&&!hi(t.prev.cssDisplay))}}function fn(t,e){return ke(t)?!1:(t.type==="text"||t.type==="interpolation")&&t.next&&(t.next.type==="text"||t.next.type==="interpolation")?!0:!t.parent||t.parent.cssDisplay==="none"?!1:pe(t.parent)?!0:!(!t.next&&(t.parent.type==="root"||pe(t)&&t.parent||M(t.parent)||We(t.parent,e)||!ci(t.parent.cssDisplay))||t.next&&!pi(t.next.cssDisplay))}function mn(t){return fi(t.cssDisplay)&&!M(t)}function Ve(t){return ke(t)||t.next&&t.sourceSpan.end&&t.sourceSpan.end.line+10&&(["body","script","style"].includes(t.name)||t.children.some(e=>ii(e)))||t.firstChild&&t.firstChild===t.lastChild&&t.firstChild.type!=="text"&&Cn(t.firstChild)&&(!t.lastChild.isTrailingSpaceSensitive||Sn(t.lastChild))}function ir(t){return t.type==="element"&&t.children.length>0&&(["html","head","ul","ol","select"].includes(t.name)||t.cssDisplay.startsWith("table")&&t.cssDisplay!=="table-cell")}function gt(t){return En(t)||t.prev&&si(t.prev)||gn(t)}function si(t){return En(t)||t.type==="element"&&t.fullName==="br"||gn(t)}function gn(t){return Cn(t)&&Sn(t)}function Cn(t){return t.hasLeadingSpaces&&(t.prev?t.prev.sourceSpan.end.linet.sourceSpan.end.line:t.parent.type==="root"||t.parent.endSourceSpan&&t.parent.endSourceSpan.start.line>t.sourceSpan.end.line)}function En(t){switch(t.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(t.name)}return!1}function Ct(t){return t.lastChild?Ct(t.lastChild):t}function ii(t){var e;return(e=t.children)==null?void 0:e.some(r=>r.type!=="text")}function An(t){if(t)switch(t){case"module":case"text/javascript":case"text/babel":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(t.endsWith("json")||t.endsWith("importmap")||t==="speculationrules")return"json"}}function ai(t,e){let{name:r,attrMap:n}=t;if(r!=="script"||Object.prototype.hasOwnProperty.call(n,"src"))return;let{type:s,lang:i}=t.attrMap;return!i&&!s?"babel":Be(e,{language:i})??An(s)}function ui(t,e){if(!St(t,e))return;let{attrMap:r}=t;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:s}=r;return Be(e,{language:s})??An(n)}function oi(t,e){if(t.name!=="style")return;let{lang:r}=t.attrMap;return r?Be(e,{language:r}):"css"}function ar(t,e){return ai(t,e)??oi(t,e)??ui(t,e)}function Ue(t){return t==="block"||t==="list-item"||t.startsWith("table")}function li(t){return!Ue(t)&&t!=="inline-block"}function ci(t){return!Ue(t)&&t!=="inline-block"}function pi(t){return!Ue(t)}function hi(t){return!Ue(t)}function fi(t){return!Ue(t)&&t!=="inline-block"}function pe(t){return Dn(t).startsWith("pre")}function mi(t,e){let r=t;for(;r;){if(e(r))return!0;r=r.parent}return!1}function _n(t,e){var n;if(he(t,e))return"block";if(((n=t.prev)==null?void 0:n.type)==="comment"){let s=t.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(s)return s[1]}let r=!1;if(t.type==="element"&&t.namespace==="svg")if(mi(t,s=>s.fullName==="svg:foreignObject"))r=!0;else return t.name==="svg"?"inline-block":"block";switch(e.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return t.type==="element"&&(!t.namespace||r||ce(t))&&sn[t.name]||nn}}function Dn(t){return t.type==="element"&&(!t.namespace||ce(t))&&un[t.name]||an}function di(t){let e=Number.POSITIVE_INFINITY;for(let r of t.split(` -`)){if(r.length===0)continue;let n=Y.getLeadingWhitespaceCount(r);if(n===0)return 0;r.length!==n&&n{for(var r in e)Xt(t,r,{get:e[r],enumerable:!0})},Os=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of $s(e))!Ms.call(t,s)&&s!==r&&Xt(t,s,{get:()=>e[s],enumerable:!(n=Rs(e,s))||n.enumerable});return t};var qs=t=>Os(Xt({},"__esModule",{value:!0}),t);var Hr=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var Y=(t,e,r)=>(Hr(t,e,"read from private field"),r?r.call(t):e.get(t)),Vr=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},Ur=(t,e,r,n)=>(Hr(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);var fu={};qr(fu,{languages:()=>Fs,options:()=>Ns,parsers:()=>Ir,printers:()=>hu});var Hs=(t,e,r,n)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(r,n):r.global?e.replace(r,n):e.split(r).join(n)},v=Hs;var _e="string",De="array",ve="cursor",se="indent",ie="align",ye="trim",Q="group",ae="fill",ue="if-break",oe="indent-if-break",be="line-suffix",we="line-suffix-boundary",V="line",Te="label",le="break-parent",ot=new Set([ve,se,ie,ye,Q,ae,ue,oe,be,we,V,Te,le]);function Vs(t){if(typeof t=="string")return _e;if(Array.isArray(t))return De;if(!t)return;let{type:e}=t;if(ot.has(e))return e}var xe=Vs;var Us=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function Ws(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', +Expected it to be 'string' or 'object'.`;if(xe(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=Us([...ot].map(s=>`'${s}'`));return`Unexpected doc.type '${t.type}'. +Expected it to be ${n}.`}var Jt=class extends Error{name="InvalidDocError";constructor(e){super(Ws(e)),this.doc=e}},lt=Jt;var Wr=()=>{},X=Wr,ct=Wr;function U(t){return X(t),{type:se,contents:t}}function Gr(t,e){return X(e),{type:ie,contents:e,n:t}}function D(t,e={}){return X(t),ct(e.expandedStates,!0),{type:Q,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function Yr(t){return Gr(Number.NEGATIVE_INFINITY,t)}function zr(t){return Gr({type:"root"},t)}function pt(t){return ct(t),{type:ae,parts:t}}function ce(t,e="",r={}){return X(t),e!==""&&X(e),{type:ue,breakContents:t,flatContents:e,groupId:r.groupId}}function jr(t,e){return X(t),{type:oe,contents:t,groupId:e.groupId,negate:e.negate}}var J={type:le};var Gs={type:V,hard:!0},Ys={type:V,hard:!0,literal:!0},_={type:V},x={type:V,soft:!0},S=[Gs,J],Kr=[Ys,J];function Z(t,e){X(t),ct(e);let r=[];for(let n=0;n{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[r<0?e.length+r:r]:e.at(r)},ke=zs;function ht(t,e){if(typeof t=="string")return e(t);let r=new Map;return n(t);function n(i){if(r.has(i))return r.get(i);let a=s(i);return r.set(i,a),a}function s(i){switch(xe(i)){case De:return e(i.map(n));case ae:return e({...i,parts:i.parts.map(n)});case ue:return e({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case Q:{let{expandedStates:a,contents:u}=i;return a?(a=a.map(n),u=a[0]):u=n(u),e({...i,contents:u,expandedStates:a})}case ie:case se:case oe:case Te:case be:return e({...i,contents:n(i.contents)});case _e:case ve:case ye:case we:case V:case le:return e(i);default:throw new lt(i)}}}function js(t){switch(xe(t)){case ae:if(t.parts.every(e=>e===""))return"";break;case Q:if(!t.contents&&!t.id&&!t.break&&!t.expandedStates)return"";if(t.contents.type===Q&&t.contents.id===t.id&&t.contents.break===t.break&&t.contents.expandedStates===t.expandedStates)return t.contents;break;case ie:case se:case oe:case be:if(!t.contents)return"";break;case ue:if(!t.flatContents&&!t.breakContents)return"";break;case De:{let e=[];for(let r of t){if(!r)continue;let[n,...s]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof ke(!1,e,-1)=="string"?e[e.length-1]+=n:e.push(n),e.push(...s)}return e.length===0?"":e.length===1?e[0]:e}case _e:case ve:case ye:case we:case V:case Te:case le:break;default:throw new lt(t)}return t}function Qr(t){return ht(t,e=>js(e))}function w(t,e=Kr){return ht(t,r=>typeof r=="string"?Z(e,r.split(` +`)):r)}var Zt=class extends Error{name="UnexpectedNodeError";constructor(e,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},Xr=Zt;var ft="'",Jr='"';function Ks(t,e){let r=e===!0||e===ft?ft:Jr,n=r===ft?Jr:ft,s=0,i=0;for(let a of t)a===r?s++:a===n&&i++;return s>i?n:r}var Zr=Ks;function Qs(t){return(t==null?void 0:t.type)==="front-matter"}var Be=Qs;var Xs=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens"]);function en(t,e){if(t.type==="text"||t.type==="comment"||Be(t)||t.type==="yaml"||t.type==="toml")return null;t.type==="attribute"&&delete e.value,t.type==="docType"&&delete e.value}en.ignoredProperties=Xs;var tn=en;var Js=t=>t.split(/[/\\]/).pop();function rn(t,e){if(!e)return;let r=Js(e).toLowerCase();return t.find(n=>{var s,i;return((s=n.extensions)==null?void 0:s.some(a=>r.endsWith(a)))||((i=n.filenames)==null?void 0:i.some(a=>a.toLowerCase()===r))})}function Zs(t,e){if(e)return t.find(({name:r})=>r.toLowerCase()===e)??t.find(({aliases:r})=>r==null?void 0:r.includes(e))??t.find(({extensions:r})=>r==null?void 0:r.includes(`.${e}`))}function ei(t,e){let r=t.plugins.flatMap(s=>s.languages??[]),n=Zs(r,e.language)??rn(r,e.physicalFile)??rn(r,e.file)??(e.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var Le=ei;var nn="inline",sn={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",details:"block",summary:"block",dialog:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block",search:"block"},an="normal",un={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function er(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var R,tr=class{constructor(e){Vr(this,R,void 0);Ur(this,R,new Set(e))}getLeadingWhitespaceCount(e){let r=Y(this,R),n=0;for(let s=0;s=0&&r.has(e.charAt(s));s--)n++;return n}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return Y(this,R).has(e.charAt(0))}hasTrailingWhitespace(e){return Y(this,R).has(ke(!1,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let n=`[${er([...Y(this,R)].join(""))}]+`,s=new RegExp(r?`(${n})`:n);return e.split(s)}hasWhitespaceCharacter(e){let r=Y(this,R);return Array.prototype.some.call(e,n=>r.has(n))}hasNonWhitespaceCharacter(e){let r=Y(this,R);return Array.prototype.some.call(e,n=>!r.has(n))}isWhitespaceOnly(e){let r=Y(this,R);return Array.prototype.every.call(e,n=>r.has(n))}};R=new WeakMap;var on=tr;var ti=[" ",` +`,"\f","\r"," "],ri=new on(ti),z=ri;function ni(t){return t.type==="element"&&!t.hasExplicitNamespace&&!["html","svg"].includes(t.namespace)}var pe=ni;var si=t=>v(!1,t,/^[\t\f\r ]*\n/g,""),rr=t=>si(z.trimEnd(t)),ln=t=>{let e=t,r=z.getLeadingWhitespace(e);r&&(e=e.slice(r.length));let n=z.getTrailingWhitespace(e);return n&&(e=e.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:e}};function mt(t,e){return!!(t.type==="ieConditionalComment"&&t.lastChild&&!t.lastChild.isSelfClosing&&!t.lastChild.endSourceSpan||t.type==="ieConditionalComment"&&!t.complete||he(t)&&t.children.some(r=>r.type!=="text"&&r.type!=="interpolation")||Ct(t,e)&&!M(t)&&t.type!=="interpolation")}function He(t){return t.type==="attribute"||!t.parent||!t.prev?!1:ii(t.prev)}function ii(t){return t.type==="comment"&&t.value.trim()==="prettier-ignore"}function P(t){return t.type==="text"||t.type==="comment"}function M(t){return t.type==="element"&&(t.fullName==="script"||t.fullName==="style"||t.fullName==="svg:style"||t.fullName==="svg:script"||pe(t)&&(t.name==="script"||t.name==="style"))}function cn(t){return t.children&&!M(t)}function pn(t){return M(t)||t.type==="interpolation"||nr(t)}function nr(t){return Dn(t).startsWith("pre")}function hn(t,e){var s,i;let r=n();if(r&&!t.prev&&((i=(s=t.parent)==null?void 0:s.tagDefinition)!=null&&i.ignoreFirstLf))return t.type==="interpolation";return r;function n(){return Be(t)?!1:(t.type==="text"||t.type==="interpolation")&&t.prev&&(t.prev.type==="text"||t.prev.type==="interpolation")?!0:!t.parent||t.parent.cssDisplay==="none"?!1:he(t.parent)?!0:!(!t.prev&&(t.parent.type==="root"||he(t)&&t.parent||M(t.parent)||We(t.parent,e)||!pi(t.parent.cssDisplay))||t.prev&&!mi(t.prev.cssDisplay))}}function fn(t,e){return Be(t)?!1:(t.type==="text"||t.type==="interpolation")&&t.next&&(t.next.type==="text"||t.next.type==="interpolation")?!0:!t.parent||t.parent.cssDisplay==="none"?!1:he(t.parent)?!0:!(!t.next&&(t.parent.type==="root"||he(t)&&t.parent||M(t.parent)||We(t.parent,e)||!hi(t.parent.cssDisplay))||t.next&&!fi(t.next.cssDisplay))}function mn(t){return di(t.cssDisplay)&&!M(t)}function Ve(t){return Be(t)||t.next&&t.sourceSpan.end&&t.sourceSpan.end.line+10&&(["body","script","style"].includes(t.name)||t.children.some(e=>ui(e)))||t.firstChild&&t.firstChild===t.lastChild&&t.firstChild.type!=="text"&&Cn(t.firstChild)&&(!t.lastChild.isTrailingSpaceSensitive||Sn(t.lastChild))}function sr(t){return t.type==="element"&&t.children.length>0&&(["html","head","ul","ol","select"].includes(t.name)||t.cssDisplay.startsWith("table")&&t.cssDisplay!=="table-cell")}function dt(t){return En(t)||t.prev&&ai(t.prev)||gn(t)}function ai(t){return En(t)||t.type==="element"&&t.fullName==="br"||gn(t)}function gn(t){return Cn(t)&&Sn(t)}function Cn(t){return t.hasLeadingSpaces&&(t.prev?t.prev.sourceSpan.end.linet.sourceSpan.end.line:t.parent.type==="root"||t.parent.endSourceSpan&&t.parent.endSourceSpan.start.line>t.sourceSpan.end.line)}function En(t){switch(t.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(t.name)}return!1}function gt(t){return t.lastChild?gt(t.lastChild):t}function ui(t){var e;return(e=t.children)==null?void 0:e.some(r=>r.type!=="text")}function An(t){if(t)switch(t){case"module":case"text/javascript":case"text/babel":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(t.endsWith("json")||t.endsWith("importmap")||t==="speculationrules")return"json"}}function oi(t,e){let{name:r,attrMap:n}=t;if(r!=="script"||Object.prototype.hasOwnProperty.call(n,"src"))return;let{type:s,lang:i}=t.attrMap;return!i&&!s?"babel":Le(e,{language:i})??An(s)}function li(t,e){if(!Ct(t,e))return;let{attrMap:r}=t;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:s}=r;return Le(e,{language:s})??An(n)}function ci(t,e){if(t.name!=="style")return;let{lang:r}=t.attrMap;return r?Le(e,{language:r}):"css"}function ir(t,e){return oi(t,e)??ci(t,e)??li(t,e)}function Ue(t){return t==="block"||t==="list-item"||t.startsWith("table")}function pi(t){return!Ue(t)&&t!=="inline-block"}function hi(t){return!Ue(t)&&t!=="inline-block"}function fi(t){return!Ue(t)}function mi(t){return!Ue(t)}function di(t){return!Ue(t)&&t!=="inline-block"}function he(t){return Dn(t).startsWith("pre")}function gi(t,e){let r=t;for(;r;){if(e(r))return!0;r=r.parent}return!1}function _n(t,e){var n;if(fe(t,e))return"block";if(((n=t.prev)==null?void 0:n.type)==="comment"){let s=t.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(s)return s[1]}let r=!1;if(t.type==="element"&&t.namespace==="svg")if(gi(t,s=>s.fullName==="svg:foreignObject"))r=!0;else return t.name==="svg"?"inline-block":"block";switch(e.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return t.type==="element"&&(!t.namespace||r||pe(t))&&sn[t.name]||nn}}function Dn(t){return t.type==="element"&&(!t.namespace||pe(t))&&un[t.name]||an}function Ci(t){let e=Number.POSITIVE_INFINITY;for(let r of t.split(` +`)){if(r.length===0)continue;let n=z.getLeadingWhitespaceCount(r);if(n===0)return 0;r.length!==n&&nr.slice(e)).join(` -`)}function or(t){return v(!1,v(!1,t,"'","'"),""",'"')}function N(t){return or(t.value)}var gi=new Set(["template","style","script"]);function We(t,e){return he(t,e)&&!gi.has(t.fullName)}function he(t,e){return e.parser==="vue"&&t.type==="element"&&t.parent.type==="root"&&t.fullName.toLowerCase()!=="html"}function St(t,e){return he(t,e)&&(We(t,e)||t.attrMap.lang&&t.attrMap.lang!=="html")}function vn(t){let e=t.fullName;return e.charAt(0)==="#"||e==="slot-scope"||e==="v-slot"||e.startsWith("v-slot:")}function yn(t,e){let r=t.parent;if(!he(r,e))return!1;let n=r.fullName,s=t.fullName;return n==="script"&&s==="setup"||n==="style"&&s==="vars"}function Et(t,e=t.value){return t.parent.isWhitespaceSensitive?t.parent.isIndentationSensitive?T(e):T(ur(nr(e)),S):Z(_,Y.split(e))}function bn(t,e){return he(t,e)&&t.name==="script"}function lr(t){return t>=9&&t<=32||t==160}function Ci(t){return 48<=t&&t<=57}function cr(t){return t>=97&&t<=122||t>=65&&t<=90}function wn(t){return t>=97&&t<=102||t>=65&&t<=70||Ci(t)}function pr(t){return t===10||t===13}function hr(t){return 48<=t&&t<=55}function Tn(t){return t===39||t===34||t===96}var Si=/-+([a-z0-9])/g;function kn(t){return t.replace(Si,(...e)=>e[1].toUpperCase())}var ee=class t{constructor(e,r,n,s){this.file=e,this.offset=r,this.line=n,this.col=s}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let r=this.file.content,n=r.length,s=this.offset,i=this.line,a=this.col;for(;s>0&&e<0;)if(s--,e++,r.charCodeAt(s)==10){i--;let o=r.substring(0,s-1).lastIndexOf(String.fromCharCode(10));a=o>0?s-o:s}else a--;for(;s0;){let u=r.charCodeAt(s);s++,e--,u==10?(i++,a=0):a++}return new t(this.file,s,i,a)}getContext(e,r){let n=this.file.content,s=this.offset;if(s!=null){s>n.length-1&&(s=n.length-1);let i=s,a=0,u=0;for(;a0&&(s--,a++,!(n[s]==` +`)}function ur(t){return v(!1,v(!1,t,"'","'"),""",'"')}function k(t){return ur(t.value)}var Si=new Set(["template","style","script"]);function We(t,e){return fe(t,e)&&!Si.has(t.fullName)}function fe(t,e){return e.parser==="vue"&&t.type==="element"&&t.parent.type==="root"&&t.fullName.toLowerCase()!=="html"}function Ct(t,e){return fe(t,e)&&(We(t,e)||t.attrMap.lang&&t.attrMap.lang!=="html")}function vn(t){let e=t.fullName;return e.charAt(0)==="#"||e==="slot-scope"||e==="v-slot"||e.startsWith("v-slot:")}function yn(t,e){let r=t.parent;if(!fe(r,e))return!1;let n=r.fullName,s=t.fullName;return n==="script"&&s==="setup"||n==="style"&&s==="vars"}function St(t,e=t.value){return t.parent.isWhitespaceSensitive?t.parent.isIndentationSensitive?w(e):w(ar(rr(e)),S):Z(_,z.split(e))}function Et(t,e){return fe(t,e)&&t.name==="script"}function or(t){return t>=9&&t<=32||t==160}function Ei(t){return 48<=t&&t<=57}function lr(t){return t>=97&&t<=122||t>=65&&t<=90}function bn(t){return t>=97&&t<=102||t>=65&&t<=70||Ei(t)}function cr(t){return t===10||t===13}function pr(t){return 48<=t&&t<=55}function wn(t){return t===39||t===34||t===96}var Ai=/-+([a-z0-9])/g;function xn(t){return t.replace(Ai,(...e)=>e[1].toUpperCase())}var ee=class t{constructor(e,r,n,s){this.file=e,this.offset=r,this.line=n,this.col=s}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let r=this.file.content,n=r.length,s=this.offset,i=this.line,a=this.col;for(;s>0&&e<0;)if(s--,e++,r.charCodeAt(s)==10){i--;let o=r.substring(0,s-1).lastIndexOf(String.fromCharCode(10));a=o>0?s-o:s}else a--;for(;s0;){let u=r.charCodeAt(s);s++,e--,u==10?(i++,a=0):a++}return new t(this.file,s,i,a)}getContext(e,r){let n=this.file.content,s=this.offset;if(s!=null){s>n.length-1&&(s=n.length-1);let i=s,a=0,u=0;for(;a0&&(s--,a++,!(n[s]==` `&&++u==r)););for(a=0,u=0;a]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}};var Ei=[_i,Di,yi,wi,Ti,Bi,xi,ki,Li,bi];function Ai(t,e){for(let r of Ei)r(t,e);return t}function _i(t){t.walk(e=>{if(e.type==="element"&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&e.children[0].type==="text"&&e.children[0].value[0]===` -`){let r=e.children[0];r.value.length===1?e.removeChild(r):r.value=r.value.slice(1)}})}function Di(t){let e=r=>{var n,s;return r.type==="element"&&((n=r.prev)==null?void 0:n.type)==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&((s=r.firstChild)==null?void 0:s.type)==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset};t.walk(r=>{if(r.children)for(let n=0;n{if(n.children)for(let s=0;se.type==="cdata",e=>``)}function bi(t){let e=r=>{var n,s;return r.type==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.type==="text"&&!Y.hasWhitespaceCharacter(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&((n=r.prev)==null?void 0:n.type)==="text"&&((s=r.next)==null?void 0:s.type)==="text"};t.walk(r=>{if(r.children)for(let n=0;n`+s.firstChild.value+``+a.value,i.sourceSpan=new m(i.sourceSpan.start,a.sourceSpan.end),i.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,i.hasTrailingSpaces=a.hasTrailingSpaces,r.removeChild(s),n--,r.removeChild(a)}})}function wi(t,e){if(e.parser==="html")return;let r=/{{(.+?)}}/s;t.walk(n=>{if(cn(n))for(let s of n.children){if(s.type!=="text")continue;let i=s.sourceSpan.start,a=null,u=s.value.split(r);for(let o=0;o0&&n.insertChildBefore(s,{type:"text",value:p,sourceSpan:new m(i,a)});continue}a=i.moveBy(p.length+4),n.insertChildBefore(s,{type:"interpolation",sourceSpan:new m(i,a),children:p.length===0?[]:[{type:"text",value:p,sourceSpan:new m(i.moveBy(2),a.moveBy(-2))}]})}n.removeChild(s)}})}function Ti(t){t.walk(e=>{if(!e.children)return;if(e.children.length===0||e.children.length===1&&e.children[0].type==="text"&&Y.trim(e.children[0].value).length===0){e.hasDanglingSpaces=e.children.length>0,e.children=[];return}let r=pn(e),n=sr(e);if(!r)for(let s=0;s{e.isSelfClosing=!e.children||e.type==="element"&&(e.tagDefinition.isVoid||e.endSourceSpan&&e.startSourceSpan.start===e.endSourceSpan.start&&e.startSourceSpan.end===e.endSourceSpan.end)})}function ki(t,e){t.walk(r=>{r.type==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(e.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))})}function Bi(t,e){t.walk(r=>{r.cssDisplay=_n(r,e)})}function Li(t,e){t.walk(r=>{let{children:n}=r;if(n){if(n.length===0){r.isDanglingSpaceSensitive=mn(r);return}for(let s of n)s.isLeadingSpaceSensitive=hn(s,e),s.isTrailingSpaceSensitive=fn(s,e);for(let s=0;s/.test(t)}function Fn(t){return` +`&&++u==r)););return{before:n.substring(s,this.offset),after:n.substring(this.offset,i+1)}}return null}},me=class{constructor(e,r){this.content=e,this.url=r}},m=class{constructor(e,r,n=e,s=null){this.start=e,this.end=r,this.fullStart=n,this.details=s}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},At;(function(t){t[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR"})(At||(At={}));var Pe=class{constructor(e,r,n=At.ERROR){this.span=e,this.msg=r,this.level=n}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${At[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}};var _i=[vi,yi,wi,xi,ki,Fi,Bi,Li,Pi,Ti];function Di(t,e){for(let r of _i)r(t,e);return t}function vi(t){t.walk(e=>{if(e.type==="element"&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&e.children[0].type==="text"&&e.children[0].value[0]===` +`){let r=e.children[0];r.value.length===1?e.removeChild(r):r.value=r.value.slice(1)}})}function yi(t){let e=r=>{var n,s;return r.type==="element"&&((n=r.prev)==null?void 0:n.type)==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&((s=r.firstChild)==null?void 0:s.type)==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset};t.walk(r=>{if(r.children)for(let n=0;n{if(n.children)for(let s=0;se.type==="cdata",e=>``)}function Ti(t){let e=r=>{var n,s;return r.type==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.type==="text"&&!z.hasWhitespaceCharacter(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&((n=r.prev)==null?void 0:n.type)==="text"&&((s=r.next)==null?void 0:s.type)==="text"};t.walk(r=>{if(r.children)for(let n=0;n`+s.firstChild.value+``+a.value,i.sourceSpan=new m(i.sourceSpan.start,a.sourceSpan.end),i.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,i.hasTrailingSpaces=a.hasTrailingSpaces,r.removeChild(s),n--,r.removeChild(a)}})}function xi(t,e){if(e.parser==="html")return;let r=/{{(.+?)}}/s;t.walk(n=>{if(cn(n))for(let s of n.children){if(s.type!=="text")continue;let i=s.sourceSpan.start,a=null,u=s.value.split(r);for(let o=0;o0&&n.insertChildBefore(s,{type:"text",value:p,sourceSpan:new m(i,a)});continue}a=i.moveBy(p.length+4),n.insertChildBefore(s,{type:"interpolation",sourceSpan:new m(i,a),children:p.length===0?[]:[{type:"text",value:p,sourceSpan:new m(i.moveBy(2),a.moveBy(-2))}]})}n.removeChild(s)}})}function ki(t){t.walk(e=>{if(!e.children)return;if(e.children.length===0||e.children.length===1&&e.children[0].type==="text"&&z.trim(e.children[0].value).length===0){e.hasDanglingSpaces=e.children.length>0,e.children=[];return}let r=pn(e),n=nr(e);if(!r)for(let s=0;s{e.isSelfClosing=!e.children||e.type==="element"&&(e.tagDefinition.isVoid||e.endSourceSpan&&e.startSourceSpan.start===e.endSourceSpan.start&&e.startSourceSpan.end===e.endSourceSpan.end)})}function Li(t,e){t.walk(r=>{r.type==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(e.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))})}function Fi(t,e){t.walk(r=>{r.cssDisplay=_n(r,e)})}function Pi(t,e){t.walk(r=>{let{children:n}=r;if(n){if(n.length===0){r.isDanglingSpaceSensitive=mn(r);return}for(let s of n)s.isLeadingSpaceSensitive=hn(s,e),s.isTrailingSpaceSensitive=fn(s,e);for(let s=0;s/.test(t)}function Ln(t){return` -`+t}function te(t){return t.sourceSpan.start.offset}function re(t){return t.sourceSpan.end.offset}async function Fi(t,e){if(t.lang==="yaml"){let r=t.value.trim(),n=r?await e(r,{parser:"yaml"}):"";return Yr([t.startDelimiter,S,n,n?S:"",t.endDelimiter])}}var Nn=Fi;var Ge=()=>{};Ge.ok=Ge;Ge.strictEqual=Ge;var fr=Ge;function Ni(t){return Array.isArray(t)&&t.length>0}var Pn=Ni;function ze(t,e){return[t.isSelfClosing?"":Pi(t,e),Ye(t,e)]}function Pi(t,e){return t.lastChild&&ge(t.lastChild)?"":[Ii(t,e),_t(t,e)]}function Ye(t,e){return(t.next?W(t.next):de(t.parent))?"":[me(t,e),O(t,e)]}function Ii(t,e){return de(t)?me(t.lastChild,e):""}function O(t,e){return ge(t)?_t(t.parent,e):je(t)?Dt(t.next):""}function _t(t,e){if(fr(!t.isSelfClosing),In(t,e))return"";switch(t.type){case"ieConditionalComment":return"";case"ieConditionalStartComment":return"]>";case"interpolation":return"}}";case"element":if(t.isSelfClosing)return"/>";default:return">"}}function In(t,e){return!t.isSelfClosing&&!t.endSourceSpan&&(He(t)||dt(t.parent,e))}function W(t){return t.prev&&t.prev.type!=="docType"&&!L(t.prev)&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function de(t){var e;return((e=t.lastChild)==null?void 0:e.isTrailingSpaceSensitive)&&!t.lastChild.hasTrailingSpaces&&!L(Ct(t.lastChild))&&!pe(t)}function ge(t){return!t.next&&!t.hasTrailingSpaces&&t.isTrailingSpaceSensitive&&L(Ct(t))}function je(t){return t.next&&!L(t.next)&&L(t)&&t.isTrailingSpaceSensitive&&!t.hasTrailingSpaces}function Ri(t){let e=t.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return e?e[1]?e[1].split(/\s+/):!0:!1}function Ke(t){return!t.prev&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function $i(t,e,r){var g;let{node:n}=t;if(!Pn(n.attrs))return n.isSelfClosing?" ":"";let s=((g=n.prev)==null?void 0:g.type)==="comment"&&Ri(n.prev.value),i=typeof s=="boolean"?()=>s:Array.isArray(s)?h=>s.includes(h.rawName):()=>!1,a=t.map(({node:h})=>i(h)?T(e.originalText.slice(te(h),re(h))):r(),"attrs"),u=n.type==="element"&&n.fullName==="script"&&n.attrs.length===1&&n.attrs[0].fullName==="src"&&n.children.length===0,p=e.singleAttributePerLine&&n.attrs.length>1&&!he(n,e)?S:_,c=[U([u?" ":_,Z(p,a)])];return n.firstChild&&Ke(n.firstChild)||n.isSelfClosing&&de(n.parent)||u?c.push(n.isSelfClosing?" ":""):c.push(e.bracketSameLine?n.isSelfClosing?" ":"":n.isSelfClosing?_:x),c}function Mi(t){return t.firstChild&&Ke(t.firstChild)?"":vt(t)}function Xe(t,e,r){let{node:n}=t;return[Qe(n,e),$i(t,e,r),n.isSelfClosing?"":Mi(n)]}function Qe(t,e){return t.prev&&je(t.prev)?"":[q(t,e),Dt(t)]}function q(t,e){return Ke(t)?vt(t.parent):W(t)?me(t.prev,e):""}function Dt(t){switch(t.type){case"ieConditionalComment":case"ieConditionalStartComment":return`<${t.rawName}`;default:return`<${t.rawName}`}}function vt(t){switch(fr(!t.isSelfClosing),t.type){case"ieConditionalComment":return"]>";case"element":if(t.condition)return">";default:return">"}}var mr=new WeakMap;function Oi(t,e){let{root:r}=t;return mr.has(r)||mr.set(r,r.children.some(n=>bn(n,e)&&["ts","typescript"].includes(n.attrMap.lang))),mr.get(r)}var Ne=Oi;function qi(t,e){if(!t.endSourceSpan)return"";let r=t.startSourceSpan.end.offset;t.firstChild&&Ke(t.firstChild)&&(r-=vt(t).length);let n=t.endSourceSpan.start.offset;return t.lastChild&&ge(t.lastChild)?n+=_t(t,e).length:de(t)&&(n-=me(t.lastChild,e).length),e.originalText.slice(r,n)}var yt=qi;function Rn(t){return t===" "||t===` -`||t==="\f"||t==="\r"||t===" "}var Hi=/^[ \t\n\r\u000c]+/,Vi=/^[, \t\n\r\u000c]+/,Ui=/^[^ \t\n\r\u000c]+/,Wi=/[,]+$/,$n=/^\d+$/,Gi=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function zi(t){let e=t.length,r,n,s,i,a,u=0,o;function p(C){let E,A=C.exec(t.substring(u));if(A)return[E]=A,u+=E.length,E}let c=[];for(;;){if(p(Vi),u>=e){if(c.length===0)throw new Error("Must contain one or more image candidate strings.");return c}o=u,r=p(Ui),n=[],r.slice(-1)===","?(r=r.replace(Wi,""),h()):g()}function g(){for(p(Hi),s="",i="in descriptor";;){if(a=t.charAt(u),i==="in descriptor")if(Rn(a))s&&(n.push(s),s="",i="after descriptor");else if(a===","){u+=1,s&&n.push(s),h();return}else if(a==="(")s+=a,i="in parens";else if(a===""){s&&n.push(s),h();return}else s+=a;else if(i==="in parens")if(a===")")s+=a,i="in descriptor";else if(a===""){n.push(s),h();return}else s+=a;else if(i==="after descriptor"&&!Rn(a))if(a===""){h();return}else i="in descriptor",u-=1;u+=1}}function h(){let C=!1,E,A,B,y,l={},d,b,I,w,$;for(y=0;y{s=n(a,u)});let i=await e(t,r,e);return s?D(i):Ce(i)}function Yi(t){if(t.node.fullName==="srcset"&&(t.parent.fullName==="img"||t.parent.fullName==="source"))return()=>ji(N(t.node))}function ji(t){let e=Mn(t),r=e.some(({width:h})=>h),n=e.some(({height:h})=>h),s=e.some(({density:h})=>h);if(r+n+s>1)throw new Error("Mixed descriptor in srcset is not supported");let i=r?"width":n?"height":"density",a=r?"w":n?"h":"x",u=e.map(h=>h.source.value),o=Math.max(...u.map(h=>h.length)),p=e.map(h=>h[i]?String(h[i].value):""),c=p.map(h=>{let C=h.indexOf(".");return C===-1?h.length:C}),g=Math.max(...c);return Ce(Z([",",_],u.map((h,C)=>{let E=[h],A=p[C];if(A){let B=o-h.length+1,y=g-c[C],l=" ".repeat(B+y);E.push(le(l," "),A+a)}return E})))}var On=Yi;function Ki(t,e){let{node:r}=t,n=N(r);if(r.fullName==="class"&&!e.parentParser&&!n.includes("{{"))return()=>n.trim().split(/\s+/).join(" ")}var qn=Ki;function Hn(t,e){let{node:r}=t,n=N(t.node).trim();if(r.fullName==="style"&&!e.parentParser&&!n.includes("{{"))return async s=>Ce(await s(n,{parser:"css",__isHTMLStyleAttribute:!0}))}async function Vn(t,e,r,n){let s=N(r.node),{left:i,operator:a,right:u}=Xi(s),o=Ne(r,n);return[D(await P(`function _(${i}) {}`,t,{parser:o?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",a," ",await P(u,t,{parser:o?"__ts_expression":"__js_expression"})]}function Xi(t){let e=/(.*?)\s+(in|of)\s+(.*)/s,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/,n=/^\(|\)$/g,s=t.match(e);if(!s)return;let i={};if(i.for=s[3].trim(),!i.for)return;let a=v(!1,s[1].trim(),n,""),u=a.match(r);u?(i.alias=a.replace(r,""),i.iterator1=u[1].trim(),u[2]&&(i.iterator2=u[2].trim())):i.alias=a;let o=[i.alias,i.iterator1,i.iterator2];if(!o.some((p,c)=>!p&&(c===0||o.slice(c+1).some(Boolean))))return{left:o.filter(Boolean).join(","),operator:s[2],right:i.for}}function Un(t,e,{parseWithTs:r}){return P(`function _(${t}) {}`,e,{parser:r?"babel-ts":"babel",__isVueBindings:!0})}function Wn(t){let e=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/,r=/^[$A-Z_a-z][\w$]*(?:\.[$A-Z_a-z][\w$]*|\['[^']*']|\["[^"]*"]|\[\d+]|\[[$A-Z_a-z][\w$]*])*$/,n=t.trim();return e.test(n)||r.test(n)}function Qi(t,e){if(e.parser!=="vue")return;let{node:r}=t,n=r.fullName;if(n==="v-for")return Vn;let s=N(r),i=Ne(t,e);if(vn(r)||yn(r,e))return a=>Un(s,a,{parseWithTs:i});if(n.startsWith("@")||n.startsWith("v-on:"))return a=>Ji(s,a,{parseWithTs:i});if(n.startsWith(":")||n.startsWith("v-bind:"))return a=>Zi(s,a,{parseWithTs:i});if(n.startsWith("v-"))return a=>Gn(s,a,{parseWithTs:i})}function Ji(t,e,{parseWithTs:r}){return Wn(t)?Gn(t,e,{parseWithTs:r}):P(t,e,{parser:r?"__vue_ts_event_binding":"__vue_event_binding"},Pe)}function Zi(t,e,{parseWithTs:r}){return P(t,e,{parser:r?"__vue_ts_expression":"__vue_expression"},Pe)}function Gn(t,e,{parseWithTs:r}){return P(t,e,{parser:r?"__ts_expression":"__js_expression"},Pe)}var zn=Qi;var dr=/{{(.+?)}}/s;async function Yn(t,e){let r=[];for(let[n,s]of t.split(dr).entries())if(n%2===0)r.push(T(s));else try{r.push(D(["{{",U([_,await P(s,e,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0,trailingComma:"none"})]),_,"}}"]))}catch{r.push("{{",T(s),"}}")}return r}function gr({parser:t}){return(e,r,n)=>P(N(n.node),e,{parser:t,trailingComma:"none"},Pe)}var ea=gr({parser:"__ng_action"}),ta=gr({parser:"__ng_binding"}),ra=gr({parser:"__ng_directive"});function na(t,e){if(e.parser!=="angular")return;let{node:r}=t,n=r.fullName;if(n.startsWith("(")&&n.endsWith(")")||n.startsWith("on-"))return ea;if(n.startsWith("[")&&n.endsWith("]")||/^bind(?:on)?-/.test(n)||/^ng-(?:if|show|hide|class|style)$/.test(n))return ta;if(n.startsWith("*"))return ra;let s=N(r);if(/^i18n(?:-.+)?$/.test(n))return()=>Ce(ht(Et(r,s.trim())),!s.includes("@@"));if(dr.test(s))return i=>Yn(s,i)}var jn=na;function sa(t,e){let{node:r}=t;if(r.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(e.originalText.slice(r.valueSpan.start.offset,r.valueSpan.end.offset))||e.parser==="lwc"&&r.value.startsWith("{")&&r.value.endsWith("}"))return[r.rawName,"=",r.value];for(let n of[On,Hn,qn,zn,jn]){let s=n(t,e);if(s)return ia(s)}}}function ia(t){return async(e,r,n,s)=>{let i=await t(e,r,n,s);if(i)return i=ft(i,a=>typeof a=="string"?v(!1,a,'"',"""):a),[n.node.rawName,'="',D(i),'"']}}var Kn=sa;function aa(t,e){let{node:r}=t;switch(r.type){case"element":if(M(r)||r.type==="interpolation")return;if(!r.isSelfClosing&&St(r,e)){let n=ar(r,e);return n?async(s,i)=>{let a=yt(r,e),u=/^\s*$/.test(a),o="";return u||(o=await s(nr(a),{parser:n,__embeddedInHtml:!0}),u=o===""),[q(r,e),D(Xe(t,e,i)),u?"":S,o,u?"":S,ze(r,e),O(r,e)]}:void 0}break;case"text":if(M(r.parent)){let n=ar(r.parent,e);if(n)return async s=>{let i=n==="markdown"?ur(r.value.replace(/^[^\S\n]*\n/,"")):r.value,a={parser:n,__embeddedInHtml:!0};if(e.parser==="html"&&n==="babel"){let u="script",{attrMap:o}=r.parent;o&&(o.type==="module"||o.type==="text/babel"&&o["data-type"]==="module")&&(u="module"),a.__babelSourceType=u}return[J,q(r,e),await s(i,a,{stripTrailingHardline:!0}),O(r,e)]}}else if(r.parent.type==="interpolation")return async n=>{let s={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return e.parser==="angular"?(s.parser="__ng_interpolation",s.trailingComma="none"):e.parser==="vue"?s.parser=Ne(t,e)?"__vue_ts_expression":"__vue_expression":s.parser="__js_expression",[U([_,await n(r.value,s)]),r.parent.next&&W(r.parent.next)?" ":_]};break;case"attribute":return Kn(t,e);case"front-matter":return n=>Nn(r,n)}}var Xn=aa;function Je(t,e,r){let n=t.node;return He(n)?[q(n,e),T(e.originalText.slice(te(n)+(n.prev&&je(n.prev)?Dt(n).length:0),re(n)-(n.next&&W(n.next)?me(n,e).length:0))),O(n,e)]:r()}function bt(t,e){return L(t)&&L(e)?t.isTrailingSpaceSensitive?t.hasTrailingSpaces?gt(e)?S:_:"":gt(e)?S:x:je(t)&&(He(e)||e.firstChild||e.isSelfClosing||e.type==="element"&&e.attrs.length>0)||t.type==="element"&&t.isSelfClosing&&W(e)?"":!e.isLeadingSpaceSensitive||gt(e)||W(e)&&t.lastChild&&ge(t.lastChild)&&t.lastChild.lastChild&&ge(t.lastChild.lastChild)?S:e.hasLeadingSpaces?_:x}function wt(t,e,r){let{node:n}=t;if(ir(n))return[J,...t.map(i=>{let a=i.node,u=a.prev?bt(a.prev,a):"";return[u?[u,Ve(a.prev)?S:""]:"",Je(i,e,r)]},"children")];let s=n.children.map(()=>Symbol(""));return t.map((i,a)=>{let u=i.node;if(L(u)){if(u.prev&&L(u.prev)){let E=bt(u.prev,u);if(E)return Ve(u.prev)?[S,S,Je(i,e,r)]:[E,Je(i,e,r)]}return Je(i,e,r)}let o=[],p=[],c=[],g=[],h=u.prev?bt(u.prev,u):"",C=u.next?bt(u,u.next):"";return h&&(Ve(u.prev)?o.push(S,S):h===S?o.push(S):L(u.prev)?p.push(h):p.push(le("",x,{groupId:s[a-1]}))),C&&(Ve(u)?L(u.next)&&g.push(S,S):C===S?L(u.next)&&g.push(S):c.push(C)),[...o,D([...p,D([Je(i,e,r),...c],{id:s[a]})]),...g]},"children")}function Qn(t,e,r){let{node:n}=t;if(dt(n,e))return[q(n,e),D(Xe(t,e,r)),T(yt(n,e)),...ze(n,e),O(n,e)];let s=n.children.length===1&&n.firstChild.type==="interpolation"&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,i=Symbol("element-attr-group-id"),a=c=>D([D(Xe(t,e,r),{id:i}),c,ze(n,e)]),u=c=>s?jr(c,{groupId:i}):(M(n)||We(n,e))&&n.parent.type==="root"&&e.parser==="vue"&&!e.vueIndentScriptAndStyle?c:U(c),o=()=>s?le(x,"",{groupId:i}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?_:n.firstChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?zr(x):x,p=()=>(n.next?W(n.next):de(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":s?le(x,"",{groupId:i}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?_:(n.lastChild.type==="comment"||n.lastChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${e.tabWidth*(t.ancestors.length-1)}}$`).test(n.lastChild.value)?"":x;return n.children.length===0?a(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?_:""):a([dn(n)?J:"",u([o(),wt(t,e,r)]),p()])}var Ze=null;function et(t){if(Ze!==null&&typeof Ze.property){let e=Ze;return Ze=et.prototype=null,e}return Ze=et.prototype=t??Object.create(null),new et}var ua=10;for(let t=0;t<=ua;t++)et();function Cr(t){return et(t)}function oa(t,e="type"){Cr(t);function r(n){let s=n[e],i=t[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return i}return r}var Jn=oa;var la={"front-matter":[],root:["children"],element:["attrs","children"],ieConditionalComment:["children"],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:["children"],text:["children"],docType:[],comment:[],attribute:[],cdata:[]},Zn=la;var ca=Jn(Zn),es=ca;function pa(t,e,r){let{node:n}=t;switch(n.type){case"front-matter":return T(n.raw);case"root":return e.__onHtmlRoot&&e.__onHtmlRoot(n),[D(wt(t,e,r)),S];case"element":case"ieConditionalComment":return Qn(t,e,r);case"ieConditionalStartComment":case"ieConditionalEndComment":return[Qe(n),Ye(n)];case"interpolation":return[Qe(n,e),...t.map(r,"children"),Ye(n,e)];case"text":{if(n.parent.type==="interpolation"){let i=/\n[^\S\n]*$/,a=i.test(n.value),u=a?n.value.replace(i,""):n.value;return[T(u),a?S:""]}let s=Xr([q(n,e),...Et(n),O(n,e)]);return Array.isArray(s)?ht(s):s}case"docType":return[D([Qe(n,e)," ",v(!1,n.value.replace(/^html\b/i,"html"),/\s+/g," ")]),Ye(n,e)];case"comment":return[q(n,e),T(e.originalText.slice(te(n),re(n))),O(n,e)];case"attribute":{if(n.value===null)return n.rawName;let s=or(n.value),i=Zr(s,'"');return[n.rawName,"=",i,T(i==='"'?v(!1,s,'"',"""):v(!1,s,"'","'")),i]}case"cdata":default:throw new Qr(n,"HTML")}}var ha={preprocess:Bn,print:pa,insertPragma:Fn,massageAstNode:tn,embed:Xn,getVisitorKeys:es},ts=ha;var Qt={};qr(Qt,{angular:()=>iu,html:()=>su,lwc:()=>uu,vue:()=>au});var Ec=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g");var rs;(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"})(rs||(rs={}));var ns;(function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default"})(ns||(ns={}));var Sr={name:"custom-elements"},Er={name:"no-errors-schema"};var j;(function(t){t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL"})(j||(j={}));var ss;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"})(ss||(ss={}));var k;(function(t){t[t.RAW_TEXT=0]="RAW_TEXT",t[t.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t[t.PARSABLE_DATA=2]="PARSABLE_DATA"})(k||(k={}));function tt(t){if(t[0]!=":")return[null,t];let e=t.indexOf(":",1);if(e===-1)throw new Error(`Unsupported format "${t}" expecting ":namespace:name"`);return[t.slice(1,e),t.slice(e+1)]}function Ar(t){return tt(t)[1]==="ng-container"}function _r(t){return tt(t)[1]==="ng-content"}function Ie(t){return t===null?null:tt(t)[0]}function Re(t,e){return t?`:${t}:${e}`:e}var xt;function Dr(){return xt||(xt={},Tt(j.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Tt(j.STYLE,["*|style"]),Tt(j.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),Tt(j.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),xt}function Tt(t,e){for(let r of e)xt[r.toLowerCase()]=t}var kt=class{};var fa="boolean",ma="number",da="string",ga="object",Ca=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|"],is=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),Sa=Array.from(is).reduce((t,[e,r])=>(t.set(e,r),t),new Map),Bt=class extends kt{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,Ca.forEach(e=>{let r=new Map,n=new Set,[s,i]=e.split("|"),a=i.split(","),[u,o]=s.split("^");u.split(",").forEach(c=>{this._schema.set(c.toLowerCase(),r),this._eventSchema.set(c.toLowerCase(),n)});let p=o&&this._schema.get(o.toLowerCase());if(p){for(let[c,g]of p)r.set(c,g);for(let c of this._eventSchema.get(o.toLowerCase()))n.add(c)}a.forEach(c=>{if(c.length>0)switch(c[0]){case"*":n.add(c.substring(1));break;case"!":r.set(c.substring(1),fa);break;case"#":r.set(c.substring(1),ma);break;case"%":r.set(c.substring(1),ga);break;default:r.set(c,da)}})})}hasProperty(e,r,n){if(n.some(i=>i.name===Er.name))return!0;if(e.indexOf("-")>-1){if(Ar(e)||_r(e))return!1;if(n.some(i=>i.name===Sr.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(r)}hasElement(e,r){return r.some(n=>n.name===Er.name)||e.indexOf("-")>-1&&(Ar(e)||_r(e)||r.some(n=>n.name===Sr.name))?!0:this._schema.has(e.toLowerCase())}securityContext(e,r,n){n&&(r=this.getMappedPropName(r)),e=e.toLowerCase(),r=r.toLowerCase();let s=Dr()[e+"|"+r];return s||(s=Dr()["*|"+r],s||j.NONE)}getMappedPropName(e){return is.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=... -If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let r=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(r.keys()).map(n=>Sa.get(n)??n)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return kn(e)}normalizeAnimationStyleValue(e,r,n){let s="",i=n.toString().trim(),a=null;if(Ea(e)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let u=n.match(/^[+-]?[\d\.]+([a-z]*)$/);u&&u[1].length==0&&(a=`Please provide a CSS unit value for ${r}:${n}`)}return{error:a,value:i+s}}};function Ea(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var f=class{constructor({closedByChildren:e,implicitNamespacePrefix:r,contentType:n=k.PARSABLE_DATA,closedByParent:s=!1,isVoid:i=!1,ignoreFirstLf:a=!1,preventNamespaceInheritance:u=!1,canSelfClose:o=!1}={}){this.closedByChildren={},this.closedByParent=!1,e&&e.length>0&&e.forEach(p=>this.closedByChildren[p]=!0),this.isVoid=i,this.closedByParent=s||i,this.implicitNamespacePrefix=r||null,this.contentType=n,this.ignoreFirstLf=a,this.preventNamespaceInheritance=u,this.canSelfClose=o??i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType=="object"?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},as,rt;function $e(t){return rt||(as=new f({canSelfClose:!0}),rt={base:new f({isVoid:!0}),meta:new f({isVoid:!0}),area:new f({isVoid:!0}),embed:new f({isVoid:!0}),link:new f({isVoid:!0}),img:new f({isVoid:!0}),input:new f({isVoid:!0}),param:new f({isVoid:!0}),hr:new f({isVoid:!0}),br:new f({isVoid:!0}),source:new f({isVoid:!0}),track:new f({isVoid:!0}),wbr:new f({isVoid:!0}),p:new f({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new f({closedByChildren:["tbody","tfoot"]}),tbody:new f({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new f({closedByChildren:["tbody"],closedByParent:!0}),tr:new f({closedByChildren:["tr"],closedByParent:!0}),td:new f({closedByChildren:["td","th"],closedByParent:!0}),th:new f({closedByChildren:["td","th"],closedByParent:!0}),col:new f({isVoid:!0}),svg:new f({implicitNamespacePrefix:"svg"}),foreignObject:new f({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new f({implicitNamespacePrefix:"math"}),li:new f({closedByChildren:["li"],closedByParent:!0}),dt:new f({closedByChildren:["dt","dd"]}),dd:new f({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new f({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new f({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new f({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new f({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new f({closedByChildren:["optgroup"],closedByParent:!0}),option:new f({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new f({ignoreFirstLf:!0}),listing:new f({ignoreFirstLf:!0}),style:new f({contentType:k.RAW_TEXT}),script:new f({contentType:k.RAW_TEXT}),title:new f({contentType:{default:k.ESCAPABLE_RAW_TEXT,svg:k.PARSABLE_DATA}}),textarea:new f({contentType:k.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},new Bt().allKnownElementNames().forEach(e=>{!rt.hasOwnProperty(e)&&Ie(e)===null&&(rt[e]=new f({canSelfClose:!1}))})),rt[t]??as}var Se=class{constructor(e,r){this.sourceSpan=e,this.i18n=r}},Lt=class extends Se{constructor(e,r,n,s){super(r,s),this.value=e,this.tokens=n,this.type="text"}visit(e,r){return e.visitText(this,r)}},Ft=class extends Se{constructor(e,r,n,s){super(r,s),this.value=e,this.tokens=n,this.type="cdata"}visit(e,r){return e.visitCdata(this,r)}},Nt=class extends Se{constructor(e,r,n,s,i,a){super(s,a),this.switchValue=e,this.type=r,this.cases=n,this.switchValueSourceSpan=i}visit(e,r){return e.visitExpansion(this,r)}},Pt=class{constructor(e,r,n,s,i){this.value=e,this.expression=r,this.sourceSpan=n,this.valueSourceSpan=s,this.expSourceSpan=i}visit(e,r){return e.visitExpansionCase(this,r)}},It=class extends Se{constructor(e,r,n,s,i,a,u){super(n,u),this.name=e,this.value=r,this.keySpan=s,this.valueSpan=i,this.valueTokens=a,this.type="attribute"}visit(e,r){return e.visitAttribute(this,r)}get nameSpan(){return this.keySpan}},Rt=class extends Se{constructor(e,r,n,s,i,a=null,u=null,o){super(s,o),this.name=e,this.attrs=r,this.children=n,this.startSourceSpan=i,this.endSourceSpan=a,this.nameSpan=u,this.type="element"}visit(e,r){return e.visitElement(this,r)}},$t=class{constructor(e,r){this.value=e,this.sourceSpan=r,this.type="comment"}visit(e,r){return e.visitComment(this,r)}},Mt=class{constructor(e,r){this.value=e,this.sourceSpan=r,this.type="docType"}visit(e,r){return e.visitDocType(this,r)}};function Ot(t,e,r=null){let n=[],s=t.visit?i=>t.visit(i,r)||i.visit(t,r):i=>i.visit(t,r);return e.forEach(i=>{let a=s(i);a&&n.push(a)}),n}var nt=class{constructor(){}visitElement(e,r){this.visitChildren(r,n=>{n(e.attrs),n(e.children)})}visitAttribute(e,r){}visitText(e,r){}visitCdata(e,r){}visitComment(e,r){}visitDocType(e,r){}visitExpansion(e,r){return this.visitChildren(r,n=>{n(e.cases)})}visitExpansionCase(e,r){}visitChildren(e,r){let n=[],s=this;function i(a){a&&n.push(Ot(s,a,e))}return r(i),Array.prototype.concat.apply([],n)}};var Me={AElig:"\xC6",AMP:"&",amp:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",af:"\u2061",Aring:"\xC5",angst:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",colone:"\u2254",coloneq:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",setminus:"\u2216",setmn:"\u2216",smallsetminus:"\u2216",ssetmn:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",doublebarwedge:"\u2306",Bcy:"\u0411",Because:"\u2235",becaus:"\u2235",because:"\u2235",Bernoullis:"\u212C",Bscr:"\u212C",bernou:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",breve:"\u02D8",Bumpeq:"\u224E",HumpDownHump:"\u224E",bump:"\u224E",CHcy:"\u0427",COPY:"\xA9",copy:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",DD:"\u2145",Cayleys:"\u212D",Cfr:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",cedil:"\xB8",CenterDot:"\xB7",centerdot:"\xB7",middot:"\xB7",Chi:"\u03A7",CircleDot:"\u2299",odot:"\u2299",CircleMinus:"\u2296",ominus:"\u2296",CirclePlus:"\u2295",oplus:"\u2295",CircleTimes:"\u2297",otimes:"\u2297",ClockwiseContourIntegral:"\u2232",cwconint:"\u2232",CloseCurlyDoubleQuote:"\u201D",rdquo:"\u201D",rdquor:"\u201D",CloseCurlyQuote:"\u2019",rsquo:"\u2019",rsquor:"\u2019",Colon:"\u2237",Proportion:"\u2237",Colone:"\u2A74",Congruent:"\u2261",equiv:"\u2261",Conint:"\u222F",DoubleContourIntegral:"\u222F",ContourIntegral:"\u222E",conint:"\u222E",oint:"\u222E",Copf:"\u2102",complexes:"\u2102",Coproduct:"\u2210",coprod:"\u2210",CounterClockwiseContourIntegral:"\u2233",awconint:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",asympeq:"\u224D",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",ddagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",DoubleLeftTee:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",nabla:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",acute:"\xB4",DiacriticalDot:"\u02D9",dot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",dblac:"\u02DD",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"\u02DC",tilde:"\u02DC",Diamond:"\u22C4",diam:"\u22C4",diamond:"\u22C4",DifferentialD:"\u2146",dd:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DoubleDot:"\xA8",die:"\xA8",uml:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",doteq:"\u2250",esdot:"\u2250",DoubleDownArrow:"\u21D3",Downarrow:"\u21D3",dArr:"\u21D3",DoubleLeftArrow:"\u21D0",Leftarrow:"\u21D0",lArr:"\u21D0",DoubleLeftRightArrow:"\u21D4",Leftrightarrow:"\u21D4",hArr:"\u21D4",iff:"\u21D4",DoubleLongLeftArrow:"\u27F8",Longleftarrow:"\u27F8",xlArr:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",Longleftrightarrow:"\u27FA",xhArr:"\u27FA",DoubleLongRightArrow:"\u27F9",Longrightarrow:"\u27F9",xrArr:"\u27F9",DoubleRightArrow:"\u21D2",Implies:"\u21D2",Rightarrow:"\u21D2",rArr:"\u21D2",DoubleRightTee:"\u22A8",vDash:"\u22A8",DoubleUpArrow:"\u21D1",Uparrow:"\u21D1",uArr:"\u21D1",DoubleUpDownArrow:"\u21D5",Updownarrow:"\u21D5",vArr:"\u21D5",DoubleVerticalBar:"\u2225",par:"\u2225",parallel:"\u2225",shortparallel:"\u2225",spar:"\u2225",DownArrow:"\u2193",ShortDownArrow:"\u2193",darr:"\u2193",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",duarr:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",leftharpoondown:"\u21BD",lhard:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",rhard:"\u21C1",rightharpoondown:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",top:"\u22A4",DownTeeArrow:"\u21A7",mapstodown:"\u21A7",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",in:"\u2208",isin:"\u2208",isinv:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",eqsim:"\u2242",esim:"\u2242",Equilibrium:"\u21CC",rightleftharpoons:"\u21CC",rlhar:"\u21CC",Escr:"\u2130",expectation:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",exist:"\u2203",ExponentialE:"\u2147",ee:"\u2147",exponentiale:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",blacksquare:"\u25AA",squarf:"\u25AA",squf:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",forall:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",gt:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",ggg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",ge:"\u2265",geq:"\u2265",GreaterEqualLess:"\u22DB",gel:"\u22DB",gtreqless:"\u22DB",GreaterFullEqual:"\u2267",gE:"\u2267",geqq:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",gl:"\u2277",gtrless:"\u2277",GreaterSlantEqual:"\u2A7E",geqslant:"\u2A7E",ges:"\u2A7E",GreaterTilde:"\u2273",gsim:"\u2273",gtrsim:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",NestedGreaterGreater:"\u226B",gg:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",caron:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",Poincareplane:"\u210C",HilbertSpace:"\u210B",Hscr:"\u210B",hamilt:"\u210B",Hopf:"\u210D",quaternions:"\u210D",HorizontalLine:"\u2500",boxh:"\u2500",Hstrok:"\u0126",HumpEqual:"\u224F",bumpe:"\u224F",bumpeq:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Im:"\u2111",image:"\u2111",imagpart:"\u2111",Igrave:"\xCC",Imacr:"\u012A",ImaginaryI:"\u2148",ii:"\u2148",Int:"\u222C",Integral:"\u222B",int:"\u222B",Intersection:"\u22C2",bigcap:"\u22C2",xcap:"\u22C2",InvisibleComma:"\u2063",ic:"\u2063",InvisibleTimes:"\u2062",it:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",imagline:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",lt:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Lscr:"\u2112",lagran:"\u2112",Larr:"\u219E",twoheadleftarrow:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",lang:"\u27E8",langle:"\u27E8",LeftArrow:"\u2190",ShortLeftArrow:"\u2190",larr:"\u2190",leftarrow:"\u2190",slarr:"\u2190",LeftArrowBar:"\u21E4",larrb:"\u21E4",LeftArrowRightArrow:"\u21C6",leftrightarrows:"\u21C6",lrarr:"\u21C6",LeftCeiling:"\u2308",lceil:"\u2308",LeftDoubleBracket:"\u27E6",lobrk:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",dharl:"\u21C3",downharpoonleft:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",lfloor:"\u230A",LeftRightArrow:"\u2194",harr:"\u2194",leftrightarrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",dashv:"\u22A3",LeftTeeArrow:"\u21A4",mapstoleft:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",vartriangleleft:"\u22B2",vltri:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",ltrie:"\u22B4",trianglelefteq:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",uharl:"\u21BF",upharpoonleft:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",leftharpoonup:"\u21BC",lharu:"\u21BC",LeftVectorBar:"\u2952",LessEqualGreater:"\u22DA",leg:"\u22DA",lesseqgtr:"\u22DA",LessFullEqual:"\u2266",lE:"\u2266",leqq:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",lg:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",leqslant:"\u2A7D",les:"\u2A7D",LessTilde:"\u2272",lesssim:"\u2272",lsim:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",lAarr:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",longleftarrow:"\u27F5",xlarr:"\u27F5",LongLeftRightArrow:"\u27F7",longleftrightarrow:"\u27F7",xharr:"\u27F7",LongRightArrow:"\u27F6",longrightarrow:"\u27F6",xrarr:"\u27F6",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",swarr:"\u2199",swarrow:"\u2199",LowerRightArrow:"\u2198",searr:"\u2198",searrow:"\u2198",Lsh:"\u21B0",lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",NestedLessLess:"\u226A",ll:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mscr:"\u2133",phmmat:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",mnplus:"\u2213",mp:"\u2213",Mopf:"\u{1D544}",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",ZeroWidthSpace:"\u200B",NewLine:` -`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nbsp:"\xA0",Nopf:"\u2115",naturals:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",nequiv:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",npar:"\u2226",nparallel:"\u2226",nshortparallel:"\u2226",nspar:"\u2226",NotElement:"\u2209",notin:"\u2209",notinva:"\u2209",NotEqual:"\u2260",ne:"\u2260",NotEqualTilde:"\u2242\u0338",nesim:"\u2242\u0338",NotExists:"\u2204",nexist:"\u2204",nexists:"\u2204",NotGreater:"\u226F",ngt:"\u226F",ngtr:"\u226F",NotGreaterEqual:"\u2271",nge:"\u2271",ngeq:"\u2271",NotGreaterFullEqual:"\u2267\u0338",ngE:"\u2267\u0338",ngeqq:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",nGtv:"\u226B\u0338",NotGreaterLess:"\u2279",ntgl:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",NotGreaterTilde:"\u2275",ngsim:"\u2275",NotHumpDownHump:"\u224E\u0338",nbump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",nbumpe:"\u224F\u0338",NotLeftTriangle:"\u22EA",nltri:"\u22EA",ntriangleleft:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",nltrie:"\u22EC",ntrianglelefteq:"\u22EC",NotLess:"\u226E",nless:"\u226E",nlt:"\u226E",NotLessEqual:"\u2270",nle:"\u2270",nleq:"\u2270",NotLessGreater:"\u2278",ntlg:"\u2278",NotLessLess:"\u226A\u0338",nLtv:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",NotLessTilde:"\u2274",nlsim:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",npr:"\u2280",nprec:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",npre:"\u2AAF\u0338",npreceq:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",nprcue:"\u22E0",NotReverseElement:"\u220C",notni:"\u220C",notniva:"\u220C",NotRightTriangle:"\u22EB",nrtri:"\u22EB",ntriangleright:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",nrtrie:"\u22ED",ntrianglerighteq:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",nsqsube:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",nsqsupe:"\u22E3",NotSubset:"\u2282\u20D2",nsubset:"\u2282\u20D2",vnsub:"\u2282\u20D2",NotSubsetEqual:"\u2288",nsube:"\u2288",nsubseteq:"\u2288",NotSucceeds:"\u2281",nsc:"\u2281",nsucc:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",nsce:"\u2AB0\u0338",nsucceq:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",nsccue:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",nsupset:"\u2283\u20D2",vnsup:"\u2283\u20D2",NotSupersetEqual:"\u2289",nsupe:"\u2289",nsupseteq:"\u2289",NotTilde:"\u2241",nsim:"\u2241",NotTildeEqual:"\u2244",nsime:"\u2244",nsimeq:"\u2244",NotTildeFullEqual:"\u2247",ncong:"\u2247",NotTildeTilde:"\u2249",nap:"\u2249",napprox:"\u2249",NotVerticalBar:"\u2224",nmid:"\u2224",nshortmid:"\u2224",nsmid:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",ohm:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",ldquo:"\u201C",OpenCurlyQuote:"\u2018",lsquo:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",oline:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",tbrk:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",part:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",plusmn:"\xB1",pm:"\xB1",Popf:"\u2119",primes:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",pr:"\u227A",prec:"\u227A",PrecedesEqual:"\u2AAF",pre:"\u2AAF",preceq:"\u2AAF",PrecedesSlantEqual:"\u227C",prcue:"\u227C",preccurlyeq:"\u227C",PrecedesTilde:"\u227E",precsim:"\u227E",prsim:"\u227E",Prime:"\u2033",Product:"\u220F",prod:"\u220F",Proportional:"\u221D",prop:"\u221D",propto:"\u221D",varpropto:"\u221D",vprop:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',quot:'"',Qfr:"\u{1D514}",Qopf:"\u211A",rationals:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",drbkarow:"\u2910",REG:"\xAE",circledR:"\xAE",reg:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",twoheadrightarrow:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",Rfr:"\u211C",real:"\u211C",realpart:"\u211C",ReverseElement:"\u220B",SuchThat:"\u220B",ni:"\u220B",niv:"\u220B",ReverseEquilibrium:"\u21CB",leftrightharpoons:"\u21CB",lrhar:"\u21CB",ReverseUpEquilibrium:"\u296F",duhar:"\u296F",Rho:"\u03A1",RightAngleBracket:"\u27E9",rang:"\u27E9",rangle:"\u27E9",RightArrow:"\u2192",ShortRightArrow:"\u2192",rarr:"\u2192",rightarrow:"\u2192",srarr:"\u2192",RightArrowBar:"\u21E5",rarrb:"\u21E5",RightArrowLeftArrow:"\u21C4",rightleftarrows:"\u21C4",rlarr:"\u21C4",RightCeiling:"\u2309",rceil:"\u2309",RightDoubleBracket:"\u27E7",robrk:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",dharr:"\u21C2",downharpoonright:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rfloor:"\u230B",RightTee:"\u22A2",vdash:"\u22A2",RightTeeArrow:"\u21A6",map:"\u21A6",mapsto:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",vartriangleright:"\u22B3",vrtri:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",rtrie:"\u22B5",trianglerighteq:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",uharr:"\u21BE",upharpoonright:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",rharu:"\u21C0",rightharpoonup:"\u21C0",RightVectorBar:"\u2953",Ropf:"\u211D",reals:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",rAarr:"\u21DB",Rscr:"\u211B",realine:"\u211B",Rsh:"\u21B1",rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortUpArrow:"\u2191",UpArrow:"\u2191",uarr:"\u2191",uparrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",compfn:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",radic:"\u221A",Square:"\u25A1",squ:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",sqcap:"\u2293",SquareSubset:"\u228F",sqsub:"\u228F",sqsubset:"\u228F",SquareSubsetEqual:"\u2291",sqsube:"\u2291",sqsubseteq:"\u2291",SquareSuperset:"\u2290",sqsup:"\u2290",sqsupset:"\u2290",SquareSupersetEqual:"\u2292",sqsupe:"\u2292",sqsupseteq:"\u2292",SquareUnion:"\u2294",sqcup:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",sstarf:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",sube:"\u2286",subseteq:"\u2286",Succeeds:"\u227B",sc:"\u227B",succ:"\u227B",SucceedsEqual:"\u2AB0",sce:"\u2AB0",succeq:"\u2AB0",SucceedsSlantEqual:"\u227D",sccue:"\u227D",succcurlyeq:"\u227D",SucceedsTilde:"\u227F",scsim:"\u227F",succsim:"\u227F",Sum:"\u2211",sum:"\u2211",Sup:"\u22D1",Supset:"\u22D1",Superset:"\u2283",sup:"\u2283",supset:"\u2283",SupersetEqual:"\u2287",supe:"\u2287",supseteq:"\u2287",THORN:"\xDE",TRADE:"\u2122",trade:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",there4:"\u2234",therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",Tilde:"\u223C",sim:"\u223C",thicksim:"\u223C",thksim:"\u223C",TildeEqual:"\u2243",sime:"\u2243",simeq:"\u2243",TildeFullEqual:"\u2245",cong:"\u2245",TildeTilde:"\u2248",ap:"\u2248",approx:"\u2248",asymp:"\u2248",thickapprox:"\u2248",thkap:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",tdot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",lowbar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",bbrk:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",bigcup:"\u22C3",xcup:"\u22C3",UnionPlus:"\u228E",uplus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",udarr:"\u21C5",UpDownArrow:"\u2195",updownarrow:"\u2195",varr:"\u2195",UpEquilibrium:"\u296E",udhar:"\u296E",UpTee:"\u22A5",bot:"\u22A5",bottom:"\u22A5",perp:"\u22A5",UpTeeArrow:"\u21A5",mapstoup:"\u21A5",UpperLeftArrow:"\u2196",nwarr:"\u2196",nwarrow:"\u2196",UpperRightArrow:"\u2197",nearr:"\u2197",nearrow:"\u2197",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",bigvee:"\u22C1",xvee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",mid:"\u2223",shortmid:"\u2223",smid:"\u2223",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",VeryThinSpace:"\u200A",hairsp:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",bigwedge:"\u22C0",xwedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",Zeta:"\u0396",Zfr:"\u2128",zeetrf:"\u2128",Zopf:"\u2124",integers:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",mstpos:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acy:"\u0430",aelig:"\xE6",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",and:"\u2227",wedge:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",angle:"\u2220",ange:"\u29A4",angmsd:"\u2221",measuredangle:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",approxeq:"\u224A",apid:"\u224B",apos:"'",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",midast:"*",atilde:"\xE3",auml:"\xE4",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",bcong:"\u224C",backepsilon:"\u03F6",bepsi:"\u03F6",backprime:"\u2035",bprime:"\u2035",backsim:"\u223D",bsim:"\u223D",backsimeq:"\u22CD",bsime:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrktbrk:"\u23B6",bcy:"\u0431",bdquo:"\u201E",ldquor:"\u201E",bemptyv:"\u29B0",beta:"\u03B2",beth:"\u2136",between:"\u226C",twixt:"\u226C",bfr:"\u{1D51F}",bigcirc:"\u25EF",xcirc:"\u25EF",bigodot:"\u2A00",xodot:"\u2A00",bigoplus:"\u2A01",xoplus:"\u2A01",bigotimes:"\u2A02",xotime:"\u2A02",bigsqcup:"\u2A06",xsqcup:"\u2A06",bigstar:"\u2605",starf:"\u2605",bigtriangledown:"\u25BD",xdtri:"\u25BD",bigtriangleup:"\u25B3",xutri:"\u25B3",biguplus:"\u2A04",xuplus:"\u2A04",bkarow:"\u290D",rbarr:"\u290D",blacklozenge:"\u29EB",lozf:"\u29EB",blacktriangle:"\u25B4",utrif:"\u25B4",blacktriangledown:"\u25BE",dtrif:"\u25BE",blacktriangleleft:"\u25C2",ltrif:"\u25C2",blacktriangleright:"\u25B8",rtrif:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",minusb:"\u229F",boxplus:"\u229E",plusb:"\u229E",boxtimes:"\u22A0",timesb:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bumpE:"\u2AAE",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cemptyv:"\u29B2",cent:"\xA2",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",cire:"\u2257",circlearrowleft:"\u21BA",olarr:"\u21BA",circlearrowright:"\u21BB",orarr:"\u21BB",circledS:"\u24C8",oS:"\u24C8",circledast:"\u229B",oast:"\u229B",circledcirc:"\u229A",ocir:"\u229A",circleddash:"\u229D",odash:"\u229D",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",comma:",",commat:"@",comp:"\u2201",complement:"\u2201",congdot:"\u2A6D",copf:"\u{1D554}",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",curlyeqprec:"\u22DE",cuesc:"\u22DF",curlyeqsucc:"\u22DF",cularr:"\u21B6",curvearrowleft:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curvearrowright:"\u21B7",curarrm:"\u293C",curlyvee:"\u22CE",cuvee:"\u22CE",curlywedge:"\u22CF",cuwed:"\u22CF",curren:"\xA4",cwint:"\u2231",cylcty:"\u232D",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",dash:"\u2010",hyphen:"\u2010",dbkarow:"\u290F",rBarr:"\u290F",dcaron:"\u010F",dcy:"\u0434",ddarr:"\u21CA",downdownarrows:"\u21CA",ddotseq:"\u2A77",eDDot:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",diamondsuit:"\u2666",diams:"\u2666",digamma:"\u03DD",gammad:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",llcorner:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",doteqdot:"\u2251",eDot:"\u2251",dotminus:"\u2238",minusd:"\u2238",dotplus:"\u2214",plusdo:"\u2214",dotsquare:"\u22A1",sdotb:"\u22A1",drcorn:"\u231F",lrcorner:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",triangledown:"\u25BF",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",eqcirc:"\u2256",ecirc:"\xEA",ecolon:"\u2255",eqcolon:"\u2255",ecy:"\u044D",edot:"\u0117",efDot:"\u2252",fallingdotseq:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",eqslantgtr:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",eqslantless:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",straightepsilon:"\u03F5",varepsilon:"\u03F5",equals:"=",equest:"\u225F",questeq:"\u225F",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",risingdotseq:"\u2253",erarr:"\u2971",escr:"\u212F",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",fork:"\u22D4",pitchfork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",half:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",sfrown:"\u2322",fscr:"\u{1D4BB}",gEl:"\u2A8C",gtreqqless:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gap:"\u2A86",gtrapprox:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gimel:"\u2137",gjcy:"\u0453",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gneqq:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gnsim:"\u22E7",gopf:"\u{1D558}",gscr:"\u210A",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtrdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrarr:"\u2978",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hardcy:"\u044A",harrcir:"\u2948",harrw:"\u21AD",leftrightsquigarrow:"\u21AD",hbar:"\u210F",hslash:"\u210F",planck:"\u210F",plankv:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",mldr:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",searhk:"\u2925",hkswarow:"\u2926",swarhk:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",larrhk:"\u21A9",hookrightarrow:"\u21AA",rarrhk:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hstrok:"\u0127",hybull:"\u2043",iacute:"\xED",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",ifr:"\u{1D526}",igrave:"\xEC",iiiint:"\u2A0C",qint:"\u2A0C",iiint:"\u222D",tint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",imath:"\u0131",inodot:"\u0131",imof:"\u22B7",imped:"\u01B5",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",intcal:"\u22BA",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iquest:"\xBF",iscr:"\u{1D4BE}",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",varkappa:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAtail:"\u291B",lBarr:"\u290E",lEg:"\u2A8B",lesseqqgtr:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lambda:"\u03BB",langd:"\u2991",lap:"\u2A85",lessapprox:"\u2A85",laquo:"\xAB",larrbfs:"\u291F",larrfs:"\u291D",larrlp:"\u21AB",looparrowleft:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",leftarrowtail:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lcy:"\u043B",ldca:"\u2936",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leq:"\u2264",leftleftarrows:"\u21C7",llarr:"\u21C7",leftthreetimes:"\u22CB",lthree:"\u22CB",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessdot:"\u22D6",ltdot:"\u22D6",lfisht:"\u297C",lfr:"\u{1D529}",lgE:"\u2A91",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lneqq:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",longmapsto:"\u27FC",xmap:"\u27FC",looparrowright:"\u21AC",rarrlp:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",loz:"\u25CA",lozenge:"\u25CA",lpar:"(",lparlt:"\u2993",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsime:"\u2A8D",lsimg:"\u2A8F",lsquor:"\u201A",sbquo:"\u201A",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",triangleleft:"\u25C3",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",strns:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midcir:"\u2AF0",minus:"\u2212",minusdu:"\u2A2A",mlcp:"\u2ADB",models:"\u22A7",mopf:"\u{1D55E}",mscr:"\u{1D4C2}",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nLeftarrow:"\u21CD",nlArr:"\u21CD",nLeftrightarrow:"\u21CE",nhArr:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nRightarrow:"\u21CF",nrArr:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nacute:"\u0144",nang:"\u2220\u20D2",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",natur:"\u266E",natural:"\u266E",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",neArr:"\u21D7",nearhk:"\u2924",nedot:"\u2250\u0338",nesear:"\u2928",toea:"\u2928",nfr:"\u{1D52B}",nharr:"\u21AE",nleftrightarrow:"\u21AE",nhpar:"\u2AF2",nis:"\u22FC",nisd:"\u22FA",njcy:"\u045A",nlE:"\u2266\u0338",nleqq:"\u2266\u0338",nlarr:"\u219A",nleftarrow:"\u219A",nldr:"\u2025",nopf:"\u{1D55F}",not:"\xAC",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinvb:"\u22F7",notinvc:"\u22F6",notnivb:"\u22FE",notnivc:"\u22FD",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",nrarr:"\u219B",nrightarrow:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nscr:"\u{1D4C3}",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsubseteqq:"\u2AC5\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupseteqq:"\u2AC6\u0338",ntilde:"\xF1",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwnear:"\u2927",oacute:"\xF3",ocirc:"\xF4",ocy:"\u043E",odblac:"\u0151",odiv:"\u2A38",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",olcir:"\u29BE",olcross:"\u29BB",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",or:"\u2228",vee:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",oscr:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",para:"\xB6",parsim:"\u2AF3",parsl:"\u2AFD",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",straightphi:"\u03D5",varphi:"\u03D5",phone:"\u260E",pi:"\u03C0",piv:"\u03D6",varpi:"\u03D6",planckh:"\u210E",plus:"+",plusacir:"\u2A23",pluscir:"\u2A22",plusdu:"\u2A25",pluse:"\u2A72",plussim:"\u2A26",plustwo:"\u2A27",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",prE:"\u2AB3",prap:"\u2AB7",precapprox:"\u2AB7",precnapprox:"\u2AB9",prnap:"\u2AB9",precneqq:"\u2AB5",prnE:"\u2AB5",precnsim:"\u22E8",prnsim:"\u22E8",prime:"\u2032",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quatint:"\u2A16",quest:"?",rAtail:"\u291C",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",raemptyv:"\u29B3",rangd:"\u2992",range:"\u29A5",raquo:"\xBB",rarrap:"\u2975",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rightarrowtail:"\u21A3",rarrw:"\u219D",rightsquigarrow:"\u219D",ratail:"\u291A",ratio:"\u2236",rbbrk:"\u2773",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdsh:"\u21B3",rect:"\u25AD",rfisht:"\u297D",rfr:"\u{1D52F}",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",varrho:"\u03F1",rightrightarrows:"\u21C9",rrarr:"\u21C9",rightthreetimes:"\u22CC",rthree:"\u22CC",ring:"\u02DA",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rsaquo:"\u203A",rscr:"\u{1D4C7}",rtimes:"\u22CA",rtri:"\u25B9",triangleright:"\u25B9",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",scE:"\u2AB4",scap:"\u2AB8",succapprox:"\u2AB8",scaron:"\u0161",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",succneqq:"\u2AB6",scnap:"\u2ABA",succnapprox:"\u2ABA",scnsim:"\u22E9",succnsim:"\u22E9",scpolint:"\u2A13",scy:"\u0441",sdot:"\u22C5",sdote:"\u2A66",seArr:"\u21D8",sect:"\xA7",semi:";",seswar:"\u2929",tosa:"\u2929",sext:"\u2736",sfr:"\u{1D530}",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",varsigma:"\u03C2",simdot:"\u2A6A",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",smashp:"\u2A33",smeparsl:"\u29E4",smile:"\u2323",ssmile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",sqcaps:"\u2293\uFE00",sqcups:"\u2294\uFE00",sscr:"\u{1D4C8}",star:"\u2606",sub:"\u2282",subset:"\u2282",subE:"\u2AC5",subseteqq:"\u2AC5",subdot:"\u2ABD",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subsetneqq:"\u2ACB",subne:"\u228A",subsetneq:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supseteqq:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supsetneqq:"\u2ACC",supne:"\u228B",supsetneq:"\u228B",supplus:"\u2AC0",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",telrec:"\u2315",tfr:"\u{1D531}",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",vartheta:"\u03D1",thorn:"\xFE",times:"\xD7",timesbar:"\u2A31",timesd:"\u2A30",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tprime:"\u2034",triangle:"\u25B5",utri:"\u25B5",triangleq:"\u225C",trie:"\u225C",tridot:"\u25EC",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",uHar:"\u2963",uacute:"\xFA",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udblac:"\u0171",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uogon:"\u0173",uopf:"\u{1D566}",upsi:"\u03C5",upsilon:"\u03C5",upuparrows:"\u21C8",uuarr:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",uuml:"\xFC",uwangle:"\u29A7",vBar:"\u2AE8",vBarv:"\u2AE9",vangrt:"\u299C",varsubsetneq:"\u228A\uFE00",vsubne:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",vsubnE:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",vsupne:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vsupnE:"\u2ACC\uFE00",vcy:"\u0432",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",vfr:"\u{1D533}",vopf:"\u{1D567}",vscr:"\u{1D4CB}",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedgeq:"\u2259",weierp:"\u2118",wp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wscr:"\u{1D4CC}",xfr:"\u{1D535}",xi:"\u03BE",xnis:"\u22FB",xopf:"\u{1D569}",xscr:"\u{1D4CD}",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"},_a="\uE500";Me.ngsp=_a;var Da=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function us(t,e){if(e!=null&&!(Array.isArray(e)&&e.length==2))throw new Error(`Expected '${t}' to be an array, [start, end].`);if(e!=null){let r=e[0],n=e[1];Da.forEach(s=>{if(s.test(r)||s.test(n))throw new Error(`['${r}', '${n}'] contains unusable interpolation symbol.`)})}}var vr=class t{static fromArray(e){return e?(us("interpolation",e),new t(e[0],e[1])):yr}constructor(e,r){this.start=e,this.end=r}},yr=new vr("{{","}}");var at=class extends Fe{constructor(e,r,n){super(n,e),this.tokenType=r}},Tr=class{constructor(e,r,n){this.tokens=e,this.errors=r,this.nonNormalizedIcuExpressions=n}};function Ss(t,e,r,n={}){let s=new xr(new fe(t,e),r,n);return s.tokenize(),new Tr(Ya(s.tokens),s.errors,s.nonNormalizedIcuExpressions)}var qa=/\r\n?/g;function Oe(t){return`Unexpected character "${t===0?"EOF":String.fromCharCode(t)}"`}function ps(t){return`Unknown entity "${t}" - use the "&#;" or "&#x;" syntax`}function Ha(t,e){return`Unable to parse entity "${e}" - ${t} character reference entities must end with ";"`}var Ut;(function(t){t.HEX="hexadecimal",t.DEC="decimal"})(Ut||(Ut={}));var ut=class{constructor(e){this.error=e}},xr=class{constructor(e,r,n){this._getTagContentType=r,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=n.tokenizeExpansionForms||!1,this._interpolationConfig=n.interpolationConfig||yr,this._leadingTriviaCodePoints=n.leadingTriviaChars&&n.leadingTriviaChars.map(i=>i.codePointAt(0)||0),this._canSelfClose=n.canSelfClose||!1,this._allowHtmComponentClosingTags=n.allowHtmComponentClosingTags||!1;let s=n.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=n.escapedString?new kr(e,s):new Wt(e,s),this._preserveLineEndings=n.preserveLineEndings||!1,this._escapedString=n.escapedString||!1,this._i18nNormalizeLineEndingsInICUs=n.i18nNormalizeLineEndingsInICUs||!1;try{this._cursor.init()}catch(i){this.handleError(i)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(qa,` -`)}tokenize(){for(;this._cursor.peek()!==0;){let e=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else{let r=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=r,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(r){this.handleError(r)}}this._beginToken(25),this._endToken([])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(Ga(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,r=this._cursor.clone()){this._currentTokenStart=r,this._currentTokenType=e}_endToken(e,r){if(this._currentTokenStart===null)throw new at("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(r));if(this._currentTokenType===null)throw new at("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let n={type:this._currentTokenType,parts:e,sourceSpan:(r??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n}_createError(e,r){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let n=new at(e,this._currentTokenType,r);return this._currentTokenStart=null,this._currentTokenType=null,new ut(n)}handleError(e){if(e instanceof ot&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof ut)this.errors.push(e.error);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return za(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let r=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(Oe(this._cursor.peek()),this._cursor.getSpan(r))}_attemptStr(e){let r=e.length;if(this._cursor.charsLeft()this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(e){this._beginToken(10,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(11),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(12,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(18,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(19),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(){let e=this._cursor.clone(),r="";for(;this._cursor.peek()!==58&&!Va(this._cursor.peek());)this._cursor.advance();let n;this._cursor.peek()===58?(r=this._cursor.getChars(e),this._cursor.advance(),n=this._cursor.clone()):n=e,this._requireCharCodeUntilFn(hs,r===""?0:1);let s=this._cursor.getChars(n);return[r,s]}_consumeTagOpen(e){let r,n,s,i=[];try{if(!cr(this._cursor.peek()))throw this._createError(Oe(this._cursor.peek()),this._cursor.getSpan(e));for(s=this._consumeTagOpenStart(e),n=s.parts[0],r=s.parts[1],this._attemptCharCodeUntilFn(F);this._cursor.peek()!==47&&this._cursor.peek()!==62&&this._cursor.peek()!==60&&this._cursor.peek()!==0;){let[u,o]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(F),this._attemptCharCode(61)){this._attemptCharCodeUntilFn(F);let p=this._consumeAttributeValue();i.push({prefix:u,name:o,value:p})}else i.push({prefix:u,name:o});this._attemptCharCodeUntilFn(F)}this._consumeTagOpenEnd()}catch(u){if(u instanceof ut){s?s.type=4:(this._beginToken(5,e),this._endToken(["<"]));return}throw u}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===2)return;let a=this._getTagContentType(r,n,this._fullNameStack.length>0,i);this._handleFullNameStackForTagOpen(n,r),a===k.RAW_TEXT?this._consumeRawTextWithTagClose(n,r,!1):a===k.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,r,!0)}_consumeRawTextWithTagClose(e,r,n){this._consumeRawText(n,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(F),!this._attemptStrCaseInsensitive(e?`${e}:${r}`:r))?!1:(this._attemptCharCodeUntilFn(F),this._attemptCharCode(62))),this._beginToken(3),this._requireCharCodeUntilFn(s=>s===62,3),this._cursor.advance(),this._endToken([e,r]),this._handleFullNameStackForTagClose(e,r)}_consumeTagOpenStart(e){this._beginToken(0,e);let r=this._consumePrefixAndName();return this._endToken(r)}_consumeAttributeName(){let e=this._cursor.peek();if(e===39||e===34)throw this._createError(Oe(e),this._cursor.getSpan());this._beginToken(14);let r=this._consumePrefixAndName();return this._endToken(r),r}_consumeAttributeValue(){let e;if(this._cursor.peek()===39||this._cursor.peek()===34){let r=this._cursor.peek();this._consumeQuote(r);let n=()=>this._cursor.peek()===r;e=this._consumeWithInterpolation(16,17,n,n),this._consumeQuote(r)}else{let r=()=>hs(this._cursor.peek());e=this._consumeWithInterpolation(16,17,r,r)}return e}_consumeQuote(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?2:1;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){if(this._beginToken(3,e),this._attemptCharCodeUntilFn(F),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(F),this._requireCharCode(62),this._endToken([]);else{let[r,n]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(F),this._requireCharCode(62),this._endToken([r,n]),this._handleFullNameStackForTagClose(r,n)}}_consumeExpansionFormStart(){this._beginToken(20),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(20),this._beginToken(7);let e=this._readUntil(44),r=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([r]);else{let s=this._endToken([e]);r!==e&&this.nonNormalizedIcuExpressions.push(s)}this._requireCharCode(44),this._attemptCharCodeUntilFn(F),this._beginToken(7);let n=this._readUntil(44);this._endToken([n]),this._requireCharCode(44),this._attemptCharCodeUntilFn(F)}_consumeExpansionCaseStart(){this._beginToken(21);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(F),this._beginToken(22),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(F),this._expansionCaseStack.push(22)}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(F),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,r,n,s){this._beginToken(e);let i=[];for(;!n();){let u=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(i.join(""))],u),i.length=0,this._consumeInterpolation(r,u,s),this._beginToken(e)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(i.join(""))]),i.length=0,this._consumeEntity(e),this._beginToken(e)):i.push(this._readChar())}this._inInterpolation=!1;let a=this._processCarriageReturns(i.join(""));return this._endToken([a]),a}_consumeInterpolation(e,r,n){let s=[];this._beginToken(e,r),s.push(this._interpolationConfig.start);let i=this._cursor.clone(),a=null,u=!1;for(;this._cursor.peek()!==0&&(n===null||!n());){let o=this._cursor.clone();if(this._isTagStart()){this._cursor=o,s.push(this._getProcessedChars(i,o)),this._endToken(s);return}if(a===null)if(this._attemptStr(this._interpolationConfig.end)){s.push(this._getProcessedChars(i,o)),s.push(this._interpolationConfig.end),this._endToken(s);return}else this._attemptStr("//")&&(u=!0);let p=this._cursor.peek();this._cursor.advance(),p===92?this._cursor.advance():p===a?a=null:!u&&a===null&&Tn(p)&&(a=p)}s.push(this._getProcessedChars(i,this._cursor)),this._endToken(s)}_getProcessedChars(e,r){return this._processCarriageReturns(r.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase()))}_isTagStart(){if(this._cursor.peek()===60){let e=this._cursor.clone();e.advance();let r=e.peek();if(97<=r&&r<=122||65<=r&&r<=90||r===47||r===33)return!0}return!1}_readUntil(e){let r=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(r)}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===22}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===20}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;if(this._interpolationConfig){let e=this._cursor.clone(),r=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!r}return!0}_handleFullNameStackForTagOpen(e,r){let n=Re(e,r);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===n)&&this._fullNameStack.push(n)}_handleFullNameStackForTagClose(e,r){let n=Re(e,r);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===n&&this._fullNameStack.pop()}};function F(t){return!lr(t)||t===0}function hs(t){return lr(t)||t===62||t===60||t===47||t===39||t===34||t===61||t===0}function Va(t){return(t<97||12257)}function Ua(t){return t===59||t===0||!wn(t)}function Wa(t){return t===59||t===0||!cr(t)}function Ga(t){return t!==125}function za(t,e){return fs(t)===fs(e)}function fs(t){return t>=97&&t<=122?t-97+65:t}function Ya(t){let e=[],r;for(let n=0;n0&&r.indexOf(e.peek())!==-1;)n===e&&(e=e.clone()),e.advance();let s=this.locationFromCursor(e),i=this.locationFromCursor(this),a=n!==e?this.locationFromCursor(n):s;return new m(s,i,a)}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new ot('Unexpected character "EOF"',this);let r=this.charAt(e.offset);r===10?(e.line++,e.column=0):pr(r)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?0:this.charAt(e.offset)}locationFromCursor(e){return new ee(e.file,e.state.offset,e.state.line,e.state.column)}},kr=class t extends Wt{constructor(e,r){e instanceof t?(super(e),this.internalState={...e.internalState}):(super(e,r),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new t(this)}getChars(e){let r=e.clone(),n="";for(;r.internalState.offsetthis.internalState.peek;if(e()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),e()===110)this.state.peek=10;else if(e()===114)this.state.peek=13;else if(e()===118)this.state.peek=11;else if(e()===116)this.state.peek=9;else if(e()===98)this.state.peek=8;else if(e()===102)this.state.peek=12;else if(e()===117)if(this.advanceState(this.internalState),e()===123){this.advanceState(this.internalState);let r=this.clone(),n=0;for(;e()!==125;)this.advanceState(this.internalState),n++;this.state.peek=this.decodeHexDigits(r,n)}else{let r=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,4)}else if(e()===120){this.advanceState(this.internalState);let r=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,2)}else if(hr(e())){let r="",n=0,s=this.clone();for(;hr(e())&&n<3;)s=this.clone(),r+=String.fromCodePoint(e()),this.advanceState(this.internalState),n++;this.state.peek=parseInt(r,8),this.internalState=s.internalState}else pr(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,r){let n=this.input.slice(e.internalState.offset,e.internalState.offset+r),s=parseInt(n,16);if(isNaN(s))throw e.state=e.internalState,new ot("Invalid hexadecimal escape sequence",e);return s}},ot=class{constructor(e,r){this.msg=e,this.cursor=r}};var H=class t extends Fe{static create(e,r,n){return new t(e,r,n)}constructor(e,r,n){super(r,n),this.elementName=e}},Fr=class{constructor(e,r){this.rootNodes=e,this.errors=r}},Gt=class{constructor(e){this.getTagDefinition=e}parse(e,r,n,s=!1,i){let a=A=>(B,...y)=>A(B.toLowerCase(),...y),u=s?this.getTagDefinition:a(this.getTagDefinition),o=A=>u(A).getContentType(),p=s?i:a(i),g=Ss(e,r,i?(A,B,y,l)=>{let d=p(A,B,y,l);return d!==void 0?d:o(A)}:o,n),h=n&&n.canSelfClose||!1,C=n&&n.allowHtmComponentClosingTags||!1,E=new Nr(g.tokens,u,h,C,s);return E.build(),new Fr(E.rootNodes,g.errors.concat(E.errors))}},Nr=class t{constructor(e,r,n,s,i){this.tokens=e,this.getTagDefinition=r,this.canSelfClose=n,this.allowHtmComponentClosingTags=s,this.isTagNameCaseSensitive=i,this._index=-1,this._elementStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==25;)this._peek.type===0||this._peek.type===4?this._consumeStartTag(this._advance()):this._peek.type===3?(this._closeVoidElement(),this._consumeEndTag(this._advance())):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===20?this._consumeExpansion(this._advance()):this._peek.type===18?this._consumeDocType(this._advance()):this._advance()}_advance(){let e=this._peek;return this._index0)return this.errors=this.errors.concat(i.errors),null;let a=new m(e.sourceSpan.start,s.sourceSpan.end,e.sourceSpan.fullStart),u=new m(r.sourceSpan.start,s.sourceSpan.end,r.sourceSpan.fullStart);return new Pt(e.parts[0],i.rootNodes,a,e.sourceSpan,u)}_collectExpansionExpTokens(e){let r=[],n=[22];for(;;){if((this._peek.type===20||this._peek.type===22)&&n.push(this._peek.type),this._peek.type===23)if(Es(n,22)){if(n.pop(),n.length===0)return r}else return this.errors.push(H.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===24)if(Es(n,20))n.pop();else return this.errors.push(H.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===25)return this.errors.push(H.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.push(this._advance())}}_getText(e){let r=e.parts[0];if(r.length>0&&r[0]==` +`+t}function te(t){return t.sourceSpan.start.offset}function re(t){return t.sourceSpan.end.offset}async function Ni(t,e){if(t.lang==="yaml"){let r=t.value.trim(),n=r?await e(r,{parser:"yaml"}):"";return zr([t.startDelimiter,S,n,n?S:"",t.endDelimiter])}}var Fn=Ni;var Pn=new Proxy(()=>{},{get:()=>Pn}),hr=Pn;function Ii(t){return Array.isArray(t)&&t.length>0}var Nn=Ii;function Ge(t,e){return[t.isSelfClosing?"":Ri(t,e),Ye(t,e)]}function Ri(t,e){return t.lastChild&&Ce(t.lastChild)?"":[$i(t,e),_t(t,e)]}function Ye(t,e){return(t.next?W(t.next):ge(t.parent))?"":[de(t,e),O(t,e)]}function $i(t,e){return ge(t)?de(t.lastChild,e):""}function O(t,e){return Ce(t)?_t(t.parent,e):ze(t)?Dt(t.next):""}function _t(t,e){if(hr(!t.isSelfClosing),In(t,e))return"";switch(t.type){case"ieConditionalComment":return"";case"ieConditionalStartComment":return"]>";case"interpolation":return"}}";case"element":if(t.isSelfClosing)return"/>";default:return">"}}function In(t,e){return!t.isSelfClosing&&!t.endSourceSpan&&(He(t)||mt(t.parent,e))}function W(t){return t.prev&&t.prev.type!=="docType"&&!P(t.prev)&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function ge(t){var e;return((e=t.lastChild)==null?void 0:e.isTrailingSpaceSensitive)&&!t.lastChild.hasTrailingSpaces&&!P(gt(t.lastChild))&&!he(t)}function Ce(t){return!t.next&&!t.hasTrailingSpaces&&t.isTrailingSpaceSensitive&&P(gt(t))}function ze(t){return t.next&&!P(t.next)&&P(t)&&t.isTrailingSpaceSensitive&&!t.hasTrailingSpaces}function Mi(t){let e=t.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return e?e[1]?e[1].split(/\s+/):!0:!1}function je(t){return!t.prev&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function Oi(t,e,r){var f;let{node:n}=t;if(!Nn(n.attrs))return n.isSelfClosing?" ":"";let s=((f=n.prev)==null?void 0:f.type)==="comment"&&Mi(n.prev.value),i=typeof s=="boolean"?()=>s:Array.isArray(s)?d=>s.includes(d.rawName):()=>!1,a=t.map(({node:d})=>i(d)?w(e.originalText.slice(te(d),re(d))):r(),"attrs"),u=n.type==="element"&&n.fullName==="script"&&n.attrs.length===1&&n.attrs[0].fullName==="src"&&n.children.length===0,p=e.singleAttributePerLine&&n.attrs.length>1&&!fe(n,e)?S:_,l=[U([u?" ":_,Z(p,a)])];return n.firstChild&&je(n.firstChild)||n.isSelfClosing&&ge(n.parent)||u?l.push(n.isSelfClosing?" ":""):l.push(e.bracketSameLine?n.isSelfClosing?" ":"":n.isSelfClosing?_:x),l}function qi(t){return t.firstChild&&je(t.firstChild)?"":vt(t)}function Ke(t,e,r){let{node:n}=t;return[Qe(n,e),Oi(t,e,r),n.isSelfClosing?"":qi(n)]}function Qe(t,e){return t.prev&&ze(t.prev)?"":[q(t,e),Dt(t)]}function q(t,e){return je(t)?vt(t.parent):W(t)?de(t.prev,e):""}function Dt(t){switch(t.type){case"ieConditionalComment":case"ieConditionalStartComment":return`<${t.rawName}`;default:return`<${t.rawName}`}}function vt(t){switch(hr(!t.isSelfClosing),t.type){case"ieConditionalComment":return"]>";case"element":if(t.condition)return">";default:return">"}}var fr=new WeakMap;function Hi(t,e){let{root:r}=t;return fr.has(r)||fr.set(r,r.children.some(n=>Et(n,e)&&["ts","typescript"].includes(n.attrMap.lang))),fr.get(r)}var Ne=Hi;function Vi(t,e){if(!t.endSourceSpan)return"";let r=t.startSourceSpan.end.offset;t.firstChild&&je(t.firstChild)&&(r-=vt(t).length);let n=t.endSourceSpan.start.offset;return t.lastChild&&Ce(t.lastChild)?n+=_t(t,e).length:ge(t)&&(n-=de(t.lastChild,e).length),e.originalText.slice(r,n)}var yt=Vi;function Rn(t){return t===" "||t===` +`||t==="\f"||t==="\r"||t===" "}var Ui=/^[ \t\n\r\u000c]+/,Wi=/^[, \t\n\r\u000c]+/,Gi=/^[^ \t\n\r\u000c]+/,Yi=/[,]+$/,$n=/^\d+$/,zi=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function ji(t){let e=t.length,r,n,s,i,a,u=0,o;function p(C){let E,A=C.exec(t.substring(u));if(A)return[E]=A,u+=E.length,E}let l=[];for(;;){if(p(Wi),u>=e){if(l.length===0)throw new Error("Must contain one or more image candidate strings.");return l}o=u,r=p(Gi),n=[],r.slice(-1)===","?(r=r.replace(Yi,""),d()):f()}function f(){for(p(Ui),s="",i="in descriptor";;){if(a=t.charAt(u),i==="in descriptor")if(Rn(a))s&&(n.push(s),s="",i="after descriptor");else if(a===","){u+=1,s&&n.push(s),d();return}else if(a==="(")s+=a,i="in parens";else if(a===""){s&&n.push(s),d();return}else s+=a;else if(i==="in parens")if(a===")")s+=a,i="in descriptor";else if(a===""){n.push(s),d();return}else s+=a;else if(i==="after descriptor"&&!Rn(a))if(a===""){d();return}else i="in descriptor",u-=1;u+=1}}function d(){let C=!1,E,A,F,T,c={},g,y,I,b,$;for(T=0;T{s=n(a,u)});let i=await e(t,r,e);return s?D(i):Se(i)}function Ki(t){if(t.node.fullName==="srcset"&&(t.parent.fullName==="img"||t.parent.fullName==="source"))return()=>Xi(k(t.node))}var On={width:"w",height:"h",density:"x"},Qi=Object.keys(On);function Xi(t){let e=Mn(t),r=Qi.filter(l=>e.some(f=>Object.prototype.hasOwnProperty.call(f,l)));if(r.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[n]=r,s=On[n],i=e.map(l=>l.source.value),a=Math.max(...i.map(l=>l.length)),u=e.map(l=>l[n]?String(l[n].value):""),o=u.map(l=>{let f=l.indexOf(".");return f===-1?l.length:f}),p=Math.max(...o);return Se(Z([",",_],i.map((l,f)=>{let d=[l],C=u[f];if(C){let E=a-l.length+1,A=p-o[f],F=" ".repeat(E+A);d.push(ce(F," "),C+s)}return d})))}var qn=Ki;function Ji(t,e){let{node:r}=t,n=k(r);if(r.fullName==="class"&&!e.parentParser&&!n.includes("{{"))return()=>n.trim().split(/\s+/).join(" ")}var Hn=Ji;function Vn(t,e){let{node:r}=t,n=k(t.node).trim();if(r.fullName==="style"&&!e.parentParser&&!n.includes("{{"))return async s=>Se(await s(n,{parser:"css",__isHTMLStyleAttribute:!0}))}async function Un(t,e,r,n){let s=k(r.node),{left:i,operator:a,right:u}=Zi(s),o=Ne(r,n);return[D(await B(`function _(${i}) {}`,t,{parser:o?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",a," ",await B(u,t,{parser:o?"__ts_expression":"__js_expression"})]}function Zi(t){let e=/(.*?)\s+(in|of)\s+(.*)/s,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/,n=/^\(|\)$/g,s=t.match(e);if(!s)return;let i={};if(i.for=s[3].trim(),!i.for)return;let a=v(!1,s[1].trim(),n,""),u=a.match(r);u?(i.alias=a.replace(r,""),i.iterator1=u[1].trim(),u[2]&&(i.iterator2=u[2].trim())):i.alias=a;let o=[i.alias,i.iterator1,i.iterator2];if(!o.some((p,l)=>!p&&(l===0||o.slice(l+1).some(Boolean))))return{left:o.filter(Boolean).join(","),operator:s[2],right:i.for}}function Wn(t,e,r){let{node:n}=r,s=k(n);return B(`type T<${s}> = any`,t,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},ne)}function Gn(t,e,{parseWithTs:r}){return B(`function _(${t}) {}`,e,{parser:r?"babel-ts":"babel",__isVueBindings:!0})}function Yn(t){let e=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/,r=/^[$A-Z_a-z][\w$]*(?:\.[$A-Z_a-z][\w$]*|\['[^']*']|\["[^"]*"]|\[\d+]|\[[$A-Z_a-z][\w$]*])*$/,n=t.trim();return e.test(n)||r.test(n)}function ea(t,e){if(e.parser!=="vue")return;let{node:r}=t,n=r.fullName;if(n==="v-for")return Un;if(n==="generic"&&Et(r.parent,e))return Wn;let s=k(r),i=Ne(t,e);if(vn(r)||yn(r,e))return a=>Gn(s,a,{parseWithTs:i});if(n.startsWith("@")||n.startsWith("v-on:"))return a=>ta(s,a,{parseWithTs:i});if(n.startsWith(":")||n.startsWith("v-bind:"))return a=>ra(s,a,{parseWithTs:i});if(n.startsWith("v-"))return a=>zn(s,a,{parseWithTs:i})}function ta(t,e,{parseWithTs:r}){return Yn(t)?zn(t,e,{parseWithTs:r}):B(t,e,{parser:r?"__vue_ts_event_binding":"__vue_event_binding"},ne)}function ra(t,e,{parseWithTs:r}){return B(t,e,{parser:r?"__vue_ts_expression":"__vue_expression"},ne)}function zn(t,e,{parseWithTs:r}){return B(t,e,{parser:r?"__ts_expression":"__js_expression"},ne)}var jn=ea;var mr=/{{(.+?)}}/s;async function Kn(t,e){let r=[];for(let[n,s]of t.split(mr).entries())if(n%2===0)r.push(w(s));else try{r.push(D(["{{",U([_,await B(s,e,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0,trailingComma:"none"})]),_,"}}"]))}catch{r.push("{{",w(s),"}}")}return r}function dr({parser:t}){return(e,r,n)=>B(k(n.node),e,{parser:t,trailingComma:"none"},ne)}var na=dr({parser:"__ng_action"}),sa=dr({parser:"__ng_binding"}),ia=dr({parser:"__ng_directive"});function aa(t,e){if(e.parser!=="angular")return;let{node:r}=t,n=r.fullName;if(n.startsWith("(")&&n.endsWith(")")||n.startsWith("on-"))return na;if(n.startsWith("[")&&n.endsWith("]")||/^bind(?:on)?-/.test(n)||/^ng-(?:if|show|hide|class|style)$/.test(n))return sa;if(n.startsWith("*"))return ia;let s=k(r);if(/^i18n(?:-.+)?$/.test(n))return()=>Se(pt(St(r,s.trim())),!s.includes("@@"));if(mr.test(s))return i=>Kn(s,i)}var Qn=aa;function ua(t,e){let{node:r}=t;if(r.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(e.originalText.slice(r.valueSpan.start.offset,r.valueSpan.end.offset))||e.parser==="lwc"&&r.value.startsWith("{")&&r.value.endsWith("}"))return[r.rawName,"=",r.value];for(let n of[qn,Vn,Hn,jn,Qn]){let s=n(t,e);if(s)return oa(s)}}}function oa(t){return async(e,r,n,s)=>{let i=await t(e,r,n,s);if(i)return i=ht(i,a=>typeof a=="string"?v(!1,a,'"',"""):a),[n.node.rawName,'="',D(i),'"']}}var Xn=ua;function la(t,e){let{node:r}=t;switch(r.type){case"element":if(M(r)||r.type==="interpolation")return;if(!r.isSelfClosing&&Ct(r,e)){let n=ir(r,e);return n?async(s,i)=>{let a=yt(r,e),u=/^\s*$/.test(a),o="";return u||(o=await s(rr(a),{parser:n,__embeddedInHtml:!0}),u=o===""),[q(r,e),D(Ke(t,e,i)),u?"":S,o,u?"":S,Ge(r,e),O(r,e)]}:void 0}break;case"text":if(M(r.parent)){let n=ir(r.parent,e);if(n)return async s=>{let i=n==="markdown"?ar(r.value.replace(/^[^\S\n]*\n/,"")):r.value,a={parser:n,__embeddedInHtml:!0};if(e.parser==="html"&&n==="babel"){let u="script",{attrMap:o}=r.parent;o&&(o.type==="module"||o.type==="text/babel"&&o["data-type"]==="module")&&(u="module"),a.__babelSourceType=u}return[J,q(r,e),await s(i,a,{stripTrailingHardline:!0}),O(r,e)]}}else if(r.parent.type==="interpolation")return async n=>{let s={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return e.parser==="angular"?(s.parser="__ng_interpolation",s.trailingComma="none"):e.parser==="vue"?s.parser=Ne(t,e)?"__vue_ts_expression":"__vue_expression":s.parser="__js_expression",[U([_,await n(r.value,s)]),r.parent.next&&W(r.parent.next)?" ":_]};break;case"attribute":return Xn(t,e);case"front-matter":return n=>Fn(r,n)}}var Jn=la;function Xe(t,e,r){let n=t.node;return He(n)?[q(n,e),w(e.originalText.slice(te(n)+(n.prev&&ze(n.prev)?Dt(n).length:0),re(n)-(n.next&&W(n.next)?de(n,e).length:0))),O(n,e)]:r()}function bt(t,e){return P(t)&&P(e)?t.isTrailingSpaceSensitive?t.hasTrailingSpaces?dt(e)?S:_:"":dt(e)?S:x:ze(t)&&(He(e)||e.firstChild||e.isSelfClosing||e.type==="element"&&e.attrs.length>0)||t.type==="element"&&t.isSelfClosing&&W(e)?"":!e.isLeadingSpaceSensitive||dt(e)||W(e)&&t.lastChild&&Ce(t.lastChild)&&t.lastChild.lastChild&&Ce(t.lastChild.lastChild)?S:e.hasLeadingSpaces?_:x}function wt(t,e,r){let{node:n}=t;if(sr(n))return[J,...t.map(i=>{let a=i.node,u=a.prev?bt(a.prev,a):"";return[u?[u,Ve(a.prev)?S:""]:"",Xe(i,e,r)]},"children")];let s=n.children.map(()=>Symbol(""));return t.map((i,a)=>{let u=i.node;if(P(u)){if(u.prev&&P(u.prev)){let E=bt(u.prev,u);if(E)return Ve(u.prev)?[S,S,Xe(i,e,r)]:[E,Xe(i,e,r)]}return Xe(i,e,r)}let o=[],p=[],l=[],f=[],d=u.prev?bt(u.prev,u):"",C=u.next?bt(u,u.next):"";return d&&(Ve(u.prev)?o.push(S,S):d===S?o.push(S):P(u.prev)?p.push(d):p.push(ce("",x,{groupId:s[a-1]}))),C&&(Ve(u)?P(u.next)&&f.push(S,S):C===S?P(u.next)&&f.push(S):l.push(C)),[...o,D([...p,D([Xe(i,e,r),...l],{id:s[a]})]),...f]},"children")}function Zn(t,e,r){let{node:n}=t;if(mt(n,e))return[q(n,e),D(Ke(t,e,r)),w(yt(n,e)),...Ge(n,e),O(n,e)];let s=n.children.length===1&&n.firstChild.type==="interpolation"&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,i=Symbol("element-attr-group-id"),a=l=>D([D(Ke(t,e,r),{id:i}),l,Ge(n,e)]),u=l=>s?jr(l,{groupId:i}):(M(n)||We(n,e))&&n.parent.type==="root"&&e.parser==="vue"&&!e.vueIndentScriptAndStyle?l:U(l),o=()=>s?ce(x,"",{groupId:i}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?_:n.firstChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?Yr(x):x,p=()=>(n.next?W(n.next):ge(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":s?ce(x,"",{groupId:i}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?_:(n.lastChild.type==="comment"||n.lastChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${e.tabWidth*(t.ancestors.length-1)}}$`).test(n.lastChild.value)?"":x;return n.children.length===0?a(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?_:""):a([dn(n)?J:"",u([o(),wt(t,e,r)]),p()])}var Je=null;function Ze(t){if(Je!==null&&typeof Je.property){let e=Je;return Je=Ze.prototype=null,e}return Je=Ze.prototype=t??Object.create(null),new Ze}var ca=10;for(let t=0;t<=ca;t++)Ze();function gr(t){return Ze(t)}function pa(t,e="type"){gr(t);function r(n){let s=n[e],i=t[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return i}return r}var es=pa;var ha={"front-matter":[],root:["children"],element:["attrs","children"],ieConditionalComment:["children"],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:["children"],text:["children"],docType:[],comment:[],attribute:[],cdata:[]},ts=ha;var fa=es(ts),rs=fa;function ma(t,e,r){let{node:n}=t;switch(n.type){case"front-matter":return w(n.raw);case"root":return e.__onHtmlRoot&&e.__onHtmlRoot(n),[D(wt(t,e,r)),S];case"element":case"ieConditionalComment":return Zn(t,e,r);case"ieConditionalStartComment":case"ieConditionalEndComment":return[Qe(n),Ye(n)];case"interpolation":return[Qe(n,e),...t.map(r,"children"),Ye(n,e)];case"text":{if(n.parent.type==="interpolation"){let i=/\n[^\S\n]*$/,a=i.test(n.value),u=a?n.value.replace(i,""):n.value;return[w(u),a?S:""]}let s=Qr([q(n,e),...St(n),O(n,e)]);return Array.isArray(s)?pt(s):s}case"docType":return[D([Qe(n,e)," ",v(!1,n.value.replace(/^html\b/i,"html"),/\s+/g," ")]),Ye(n,e)];case"comment":return[q(n,e),w(e.originalText.slice(te(n),re(n))),O(n,e)];case"attribute":{if(n.value===null)return n.rawName;let s=ur(n.value),i=Zr(s,'"');return[n.rawName,"=",i,w(i==='"'?v(!1,s,'"',"""):v(!1,s,"'","'")),i]}case"cdata":default:throw new Xr(n,"HTML")}}var da={preprocess:kn,print:ma,insertPragma:Ln,massageAstNode:tn,embed:Jn,getVisitorKeys:rs},ns=da;var Ir={};qr(Ir,{angular:()=>ou,html:()=>uu,lwc:()=>cu,vue:()=>lu});var wc=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g");var ss;(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"})(ss||(ss={}));var is;(function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default"})(is||(is={}));var Cr={name:"custom-elements"},Sr={name:"no-errors-schema"};var j;(function(t){t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL"})(j||(j={}));var as;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"})(as||(as={}));var L;(function(t){t[t.RAW_TEXT=0]="RAW_TEXT",t[t.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t[t.PARSABLE_DATA=2]="PARSABLE_DATA"})(L||(L={}));function et(t){if(t[0]!=":")return[null,t];let e=t.indexOf(":",1);if(e===-1)throw new Error(`Unsupported format "${t}" expecting ":namespace:name"`);return[t.slice(1,e),t.slice(e+1)]}function Er(t){return et(t)[1]==="ng-container"}function Ar(t){return et(t)[1]==="ng-content"}function Ie(t){return t===null?null:et(t)[0]}function Re(t,e){return t?`:${t}:${e}`:e}var xt;function _r(){return xt||(xt={},Tt(j.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Tt(j.STYLE,["*|style"]),Tt(j.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),Tt(j.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),xt}function Tt(t,e){for(let r of e)xt[r.toLowerCase()]=t}var kt=class{};var ga="boolean",Ca="number",Sa="string",Ea="object",Aa=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|"],us=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),_a=Array.from(us).reduce((t,[e,r])=>(t.set(e,r),t),new Map),Bt=class extends kt{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,Aa.forEach(e=>{let r=new Map,n=new Set,[s,i]=e.split("|"),a=i.split(","),[u,o]=s.split("^");u.split(",").forEach(l=>{this._schema.set(l.toLowerCase(),r),this._eventSchema.set(l.toLowerCase(),n)});let p=o&&this._schema.get(o.toLowerCase());if(p){for(let[l,f]of p)r.set(l,f);for(let l of this._eventSchema.get(o.toLowerCase()))n.add(l)}a.forEach(l=>{if(l.length>0)switch(l[0]){case"*":n.add(l.substring(1));break;case"!":r.set(l.substring(1),ga);break;case"#":r.set(l.substring(1),Ca);break;case"%":r.set(l.substring(1),Ea);break;default:r.set(l,Sa)}})})}hasProperty(e,r,n){if(n.some(i=>i.name===Sr.name))return!0;if(e.indexOf("-")>-1){if(Er(e)||Ar(e))return!1;if(n.some(i=>i.name===Cr.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(r)}hasElement(e,r){return r.some(n=>n.name===Sr.name)||e.indexOf("-")>-1&&(Er(e)||Ar(e)||r.some(n=>n.name===Cr.name))?!0:this._schema.has(e.toLowerCase())}securityContext(e,r,n){n&&(r=this.getMappedPropName(r)),e=e.toLowerCase(),r=r.toLowerCase();let s=_r()[e+"|"+r];return s||(s=_r()["*|"+r],s||j.NONE)}getMappedPropName(e){return us.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=... +If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let r=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(r.keys()).map(n=>_a.get(n)??n)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return xn(e)}normalizeAnimationStyleValue(e,r,n){let s="",i=n.toString().trim(),a=null;if(Da(e)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let u=n.match(/^[+-]?[\d\.]+([a-z]*)$/);u&&u[1].length==0&&(a=`Please provide a CSS unit value for ${r}:${n}`)}return{error:a,value:i+s}}};function Da(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var h=class{constructor({closedByChildren:e,implicitNamespacePrefix:r,contentType:n=L.PARSABLE_DATA,closedByParent:s=!1,isVoid:i=!1,ignoreFirstLf:a=!1,preventNamespaceInheritance:u=!1,canSelfClose:o=!1}={}){this.closedByChildren={},this.closedByParent=!1,e&&e.length>0&&e.forEach(p=>this.closedByChildren[p]=!0),this.isVoid=i,this.closedByParent=s||i,this.implicitNamespacePrefix=r||null,this.contentType=n,this.ignoreFirstLf=a,this.preventNamespaceInheritance=u,this.canSelfClose=o??i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType=="object"?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},os,tt;function $e(t){return tt||(os=new h({canSelfClose:!0}),tt={base:new h({isVoid:!0}),meta:new h({isVoid:!0}),area:new h({isVoid:!0}),embed:new h({isVoid:!0}),link:new h({isVoid:!0}),img:new h({isVoid:!0}),input:new h({isVoid:!0}),param:new h({isVoid:!0}),hr:new h({isVoid:!0}),br:new h({isVoid:!0}),source:new h({isVoid:!0}),track:new h({isVoid:!0}),wbr:new h({isVoid:!0}),p:new h({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new h({closedByChildren:["tbody","tfoot"]}),tbody:new h({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new h({closedByChildren:["tbody"],closedByParent:!0}),tr:new h({closedByChildren:["tr"],closedByParent:!0}),td:new h({closedByChildren:["td","th"],closedByParent:!0}),th:new h({closedByChildren:["td","th"],closedByParent:!0}),col:new h({isVoid:!0}),svg:new h({implicitNamespacePrefix:"svg"}),foreignObject:new h({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new h({implicitNamespacePrefix:"math"}),li:new h({closedByChildren:["li"],closedByParent:!0}),dt:new h({closedByChildren:["dt","dd"]}),dd:new h({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new h({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new h({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new h({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new h({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new h({closedByChildren:["optgroup"],closedByParent:!0}),option:new h({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new h({ignoreFirstLf:!0}),listing:new h({ignoreFirstLf:!0}),style:new h({contentType:L.RAW_TEXT}),script:new h({contentType:L.RAW_TEXT}),title:new h({contentType:{default:L.ESCAPABLE_RAW_TEXT,svg:L.PARSABLE_DATA}}),textarea:new h({contentType:L.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},new Bt().allKnownElementNames().forEach(e=>{!tt.hasOwnProperty(e)&&Ie(e)===null&&(tt[e]=new h({canSelfClose:!1}))})),tt[t]??os}var Ee=class{constructor(e,r){this.sourceSpan=e,this.i18n=r}},Lt=class extends Ee{constructor(e,r,n,s){super(r,s),this.value=e,this.tokens=n,this.type="text"}visit(e,r){return e.visitText(this,r)}},Ft=class extends Ee{constructor(e,r,n,s){super(r,s),this.value=e,this.tokens=n,this.type="cdata"}visit(e,r){return e.visitCdata(this,r)}},Pt=class extends Ee{constructor(e,r,n,s,i,a){super(s,a),this.switchValue=e,this.type=r,this.cases=n,this.switchValueSourceSpan=i}visit(e,r){return e.visitExpansion(this,r)}},Nt=class{constructor(e,r,n,s,i){this.value=e,this.expression=r,this.sourceSpan=n,this.valueSourceSpan=s,this.expSourceSpan=i}visit(e,r){return e.visitExpansionCase(this,r)}},It=class extends Ee{constructor(e,r,n,s,i,a,u){super(n,u),this.name=e,this.value=r,this.keySpan=s,this.valueSpan=i,this.valueTokens=a,this.type="attribute"}visit(e,r){return e.visitAttribute(this,r)}get nameSpan(){return this.keySpan}},Rt=class extends Ee{constructor(e,r,n,s,i,a=null,u=null,o){super(s,o),this.name=e,this.attrs=r,this.children=n,this.startSourceSpan=i,this.endSourceSpan=a,this.nameSpan=u,this.type="element"}visit(e,r){return e.visitElement(this,r)}},$t=class{constructor(e,r){this.value=e,this.sourceSpan=r,this.type="comment"}visit(e,r){return e.visitComment(this,r)}},Mt=class{constructor(e,r){this.value=e,this.sourceSpan=r,this.type="docType"}visit(e,r){return e.visitDocType(this,r)}};function Ot(t,e,r=null){let n=[],s=t.visit?i=>t.visit(i,r)||i.visit(t,r):i=>i.visit(t,r);return e.forEach(i=>{let a=s(i);a&&n.push(a)}),n}var rt=class{constructor(){}visitElement(e,r){this.visitChildren(r,n=>{n(e.attrs),n(e.children)})}visitAttribute(e,r){}visitText(e,r){}visitCdata(e,r){}visitComment(e,r){}visitDocType(e,r){}visitExpansion(e,r){return this.visitChildren(r,n=>{n(e.cases)})}visitExpansionCase(e,r){}visitChildren(e,r){let n=[],s=this;function i(a){a&&n.push(Ot(s,a,e))}return r(i),Array.prototype.concat.apply([],n)}};var Me={AElig:"\xC6",AMP:"&",amp:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",af:"\u2061",Aring:"\xC5",angst:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",colone:"\u2254",coloneq:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",setminus:"\u2216",setmn:"\u2216",smallsetminus:"\u2216",ssetmn:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",doublebarwedge:"\u2306",Bcy:"\u0411",Because:"\u2235",becaus:"\u2235",because:"\u2235",Bernoullis:"\u212C",Bscr:"\u212C",bernou:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",breve:"\u02D8",Bumpeq:"\u224E",HumpDownHump:"\u224E",bump:"\u224E",CHcy:"\u0427",COPY:"\xA9",copy:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",DD:"\u2145",Cayleys:"\u212D",Cfr:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",cedil:"\xB8",CenterDot:"\xB7",centerdot:"\xB7",middot:"\xB7",Chi:"\u03A7",CircleDot:"\u2299",odot:"\u2299",CircleMinus:"\u2296",ominus:"\u2296",CirclePlus:"\u2295",oplus:"\u2295",CircleTimes:"\u2297",otimes:"\u2297",ClockwiseContourIntegral:"\u2232",cwconint:"\u2232",CloseCurlyDoubleQuote:"\u201D",rdquo:"\u201D",rdquor:"\u201D",CloseCurlyQuote:"\u2019",rsquo:"\u2019",rsquor:"\u2019",Colon:"\u2237",Proportion:"\u2237",Colone:"\u2A74",Congruent:"\u2261",equiv:"\u2261",Conint:"\u222F",DoubleContourIntegral:"\u222F",ContourIntegral:"\u222E",conint:"\u222E",oint:"\u222E",Copf:"\u2102",complexes:"\u2102",Coproduct:"\u2210",coprod:"\u2210",CounterClockwiseContourIntegral:"\u2233",awconint:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",asympeq:"\u224D",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",ddagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",DoubleLeftTee:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",nabla:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",acute:"\xB4",DiacriticalDot:"\u02D9",dot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",dblac:"\u02DD",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"\u02DC",tilde:"\u02DC",Diamond:"\u22C4",diam:"\u22C4",diamond:"\u22C4",DifferentialD:"\u2146",dd:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DoubleDot:"\xA8",die:"\xA8",uml:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",doteq:"\u2250",esdot:"\u2250",DoubleDownArrow:"\u21D3",Downarrow:"\u21D3",dArr:"\u21D3",DoubleLeftArrow:"\u21D0",Leftarrow:"\u21D0",lArr:"\u21D0",DoubleLeftRightArrow:"\u21D4",Leftrightarrow:"\u21D4",hArr:"\u21D4",iff:"\u21D4",DoubleLongLeftArrow:"\u27F8",Longleftarrow:"\u27F8",xlArr:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",Longleftrightarrow:"\u27FA",xhArr:"\u27FA",DoubleLongRightArrow:"\u27F9",Longrightarrow:"\u27F9",xrArr:"\u27F9",DoubleRightArrow:"\u21D2",Implies:"\u21D2",Rightarrow:"\u21D2",rArr:"\u21D2",DoubleRightTee:"\u22A8",vDash:"\u22A8",DoubleUpArrow:"\u21D1",Uparrow:"\u21D1",uArr:"\u21D1",DoubleUpDownArrow:"\u21D5",Updownarrow:"\u21D5",vArr:"\u21D5",DoubleVerticalBar:"\u2225",par:"\u2225",parallel:"\u2225",shortparallel:"\u2225",spar:"\u2225",DownArrow:"\u2193",ShortDownArrow:"\u2193",darr:"\u2193",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",duarr:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",leftharpoondown:"\u21BD",lhard:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",rhard:"\u21C1",rightharpoondown:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",top:"\u22A4",DownTeeArrow:"\u21A7",mapstodown:"\u21A7",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",in:"\u2208",isin:"\u2208",isinv:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",eqsim:"\u2242",esim:"\u2242",Equilibrium:"\u21CC",rightleftharpoons:"\u21CC",rlhar:"\u21CC",Escr:"\u2130",expectation:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",exist:"\u2203",ExponentialE:"\u2147",ee:"\u2147",exponentiale:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",blacksquare:"\u25AA",squarf:"\u25AA",squf:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",forall:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",gt:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",ggg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",ge:"\u2265",geq:"\u2265",GreaterEqualLess:"\u22DB",gel:"\u22DB",gtreqless:"\u22DB",GreaterFullEqual:"\u2267",gE:"\u2267",geqq:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",gl:"\u2277",gtrless:"\u2277",GreaterSlantEqual:"\u2A7E",geqslant:"\u2A7E",ges:"\u2A7E",GreaterTilde:"\u2273",gsim:"\u2273",gtrsim:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",NestedGreaterGreater:"\u226B",gg:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",caron:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",Poincareplane:"\u210C",HilbertSpace:"\u210B",Hscr:"\u210B",hamilt:"\u210B",Hopf:"\u210D",quaternions:"\u210D",HorizontalLine:"\u2500",boxh:"\u2500",Hstrok:"\u0126",HumpEqual:"\u224F",bumpe:"\u224F",bumpeq:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Im:"\u2111",image:"\u2111",imagpart:"\u2111",Igrave:"\xCC",Imacr:"\u012A",ImaginaryI:"\u2148",ii:"\u2148",Int:"\u222C",Integral:"\u222B",int:"\u222B",Intersection:"\u22C2",bigcap:"\u22C2",xcap:"\u22C2",InvisibleComma:"\u2063",ic:"\u2063",InvisibleTimes:"\u2062",it:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",imagline:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",lt:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Lscr:"\u2112",lagran:"\u2112",Larr:"\u219E",twoheadleftarrow:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",lang:"\u27E8",langle:"\u27E8",LeftArrow:"\u2190",ShortLeftArrow:"\u2190",larr:"\u2190",leftarrow:"\u2190",slarr:"\u2190",LeftArrowBar:"\u21E4",larrb:"\u21E4",LeftArrowRightArrow:"\u21C6",leftrightarrows:"\u21C6",lrarr:"\u21C6",LeftCeiling:"\u2308",lceil:"\u2308",LeftDoubleBracket:"\u27E6",lobrk:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",dharl:"\u21C3",downharpoonleft:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",lfloor:"\u230A",LeftRightArrow:"\u2194",harr:"\u2194",leftrightarrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",dashv:"\u22A3",LeftTeeArrow:"\u21A4",mapstoleft:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",vartriangleleft:"\u22B2",vltri:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",ltrie:"\u22B4",trianglelefteq:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",uharl:"\u21BF",upharpoonleft:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",leftharpoonup:"\u21BC",lharu:"\u21BC",LeftVectorBar:"\u2952",LessEqualGreater:"\u22DA",leg:"\u22DA",lesseqgtr:"\u22DA",LessFullEqual:"\u2266",lE:"\u2266",leqq:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",lg:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",leqslant:"\u2A7D",les:"\u2A7D",LessTilde:"\u2272",lesssim:"\u2272",lsim:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",lAarr:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",longleftarrow:"\u27F5",xlarr:"\u27F5",LongLeftRightArrow:"\u27F7",longleftrightarrow:"\u27F7",xharr:"\u27F7",LongRightArrow:"\u27F6",longrightarrow:"\u27F6",xrarr:"\u27F6",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",swarr:"\u2199",swarrow:"\u2199",LowerRightArrow:"\u2198",searr:"\u2198",searrow:"\u2198",Lsh:"\u21B0",lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",NestedLessLess:"\u226A",ll:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mscr:"\u2133",phmmat:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",mnplus:"\u2213",mp:"\u2213",Mopf:"\u{1D544}",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",ZeroWidthSpace:"\u200B",NewLine:` +`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nbsp:"\xA0",Nopf:"\u2115",naturals:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",nequiv:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",npar:"\u2226",nparallel:"\u2226",nshortparallel:"\u2226",nspar:"\u2226",NotElement:"\u2209",notin:"\u2209",notinva:"\u2209",NotEqual:"\u2260",ne:"\u2260",NotEqualTilde:"\u2242\u0338",nesim:"\u2242\u0338",NotExists:"\u2204",nexist:"\u2204",nexists:"\u2204",NotGreater:"\u226F",ngt:"\u226F",ngtr:"\u226F",NotGreaterEqual:"\u2271",nge:"\u2271",ngeq:"\u2271",NotGreaterFullEqual:"\u2267\u0338",ngE:"\u2267\u0338",ngeqq:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",nGtv:"\u226B\u0338",NotGreaterLess:"\u2279",ntgl:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",NotGreaterTilde:"\u2275",ngsim:"\u2275",NotHumpDownHump:"\u224E\u0338",nbump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",nbumpe:"\u224F\u0338",NotLeftTriangle:"\u22EA",nltri:"\u22EA",ntriangleleft:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",nltrie:"\u22EC",ntrianglelefteq:"\u22EC",NotLess:"\u226E",nless:"\u226E",nlt:"\u226E",NotLessEqual:"\u2270",nle:"\u2270",nleq:"\u2270",NotLessGreater:"\u2278",ntlg:"\u2278",NotLessLess:"\u226A\u0338",nLtv:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",NotLessTilde:"\u2274",nlsim:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",npr:"\u2280",nprec:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",npre:"\u2AAF\u0338",npreceq:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",nprcue:"\u22E0",NotReverseElement:"\u220C",notni:"\u220C",notniva:"\u220C",NotRightTriangle:"\u22EB",nrtri:"\u22EB",ntriangleright:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",nrtrie:"\u22ED",ntrianglerighteq:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",nsqsube:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",nsqsupe:"\u22E3",NotSubset:"\u2282\u20D2",nsubset:"\u2282\u20D2",vnsub:"\u2282\u20D2",NotSubsetEqual:"\u2288",nsube:"\u2288",nsubseteq:"\u2288",NotSucceeds:"\u2281",nsc:"\u2281",nsucc:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",nsce:"\u2AB0\u0338",nsucceq:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",nsccue:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",nsupset:"\u2283\u20D2",vnsup:"\u2283\u20D2",NotSupersetEqual:"\u2289",nsupe:"\u2289",nsupseteq:"\u2289",NotTilde:"\u2241",nsim:"\u2241",NotTildeEqual:"\u2244",nsime:"\u2244",nsimeq:"\u2244",NotTildeFullEqual:"\u2247",ncong:"\u2247",NotTildeTilde:"\u2249",nap:"\u2249",napprox:"\u2249",NotVerticalBar:"\u2224",nmid:"\u2224",nshortmid:"\u2224",nsmid:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",ohm:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",ldquo:"\u201C",OpenCurlyQuote:"\u2018",lsquo:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",oline:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",tbrk:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",part:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",plusmn:"\xB1",pm:"\xB1",Popf:"\u2119",primes:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",pr:"\u227A",prec:"\u227A",PrecedesEqual:"\u2AAF",pre:"\u2AAF",preceq:"\u2AAF",PrecedesSlantEqual:"\u227C",prcue:"\u227C",preccurlyeq:"\u227C",PrecedesTilde:"\u227E",precsim:"\u227E",prsim:"\u227E",Prime:"\u2033",Product:"\u220F",prod:"\u220F",Proportional:"\u221D",prop:"\u221D",propto:"\u221D",varpropto:"\u221D",vprop:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',quot:'"',Qfr:"\u{1D514}",Qopf:"\u211A",rationals:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",drbkarow:"\u2910",REG:"\xAE",circledR:"\xAE",reg:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",twoheadrightarrow:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",Rfr:"\u211C",real:"\u211C",realpart:"\u211C",ReverseElement:"\u220B",SuchThat:"\u220B",ni:"\u220B",niv:"\u220B",ReverseEquilibrium:"\u21CB",leftrightharpoons:"\u21CB",lrhar:"\u21CB",ReverseUpEquilibrium:"\u296F",duhar:"\u296F",Rho:"\u03A1",RightAngleBracket:"\u27E9",rang:"\u27E9",rangle:"\u27E9",RightArrow:"\u2192",ShortRightArrow:"\u2192",rarr:"\u2192",rightarrow:"\u2192",srarr:"\u2192",RightArrowBar:"\u21E5",rarrb:"\u21E5",RightArrowLeftArrow:"\u21C4",rightleftarrows:"\u21C4",rlarr:"\u21C4",RightCeiling:"\u2309",rceil:"\u2309",RightDoubleBracket:"\u27E7",robrk:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",dharr:"\u21C2",downharpoonright:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rfloor:"\u230B",RightTee:"\u22A2",vdash:"\u22A2",RightTeeArrow:"\u21A6",map:"\u21A6",mapsto:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",vartriangleright:"\u22B3",vrtri:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",rtrie:"\u22B5",trianglerighteq:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",uharr:"\u21BE",upharpoonright:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",rharu:"\u21C0",rightharpoonup:"\u21C0",RightVectorBar:"\u2953",Ropf:"\u211D",reals:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",rAarr:"\u21DB",Rscr:"\u211B",realine:"\u211B",Rsh:"\u21B1",rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortUpArrow:"\u2191",UpArrow:"\u2191",uarr:"\u2191",uparrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",compfn:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",radic:"\u221A",Square:"\u25A1",squ:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",sqcap:"\u2293",SquareSubset:"\u228F",sqsub:"\u228F",sqsubset:"\u228F",SquareSubsetEqual:"\u2291",sqsube:"\u2291",sqsubseteq:"\u2291",SquareSuperset:"\u2290",sqsup:"\u2290",sqsupset:"\u2290",SquareSupersetEqual:"\u2292",sqsupe:"\u2292",sqsupseteq:"\u2292",SquareUnion:"\u2294",sqcup:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",sstarf:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",sube:"\u2286",subseteq:"\u2286",Succeeds:"\u227B",sc:"\u227B",succ:"\u227B",SucceedsEqual:"\u2AB0",sce:"\u2AB0",succeq:"\u2AB0",SucceedsSlantEqual:"\u227D",sccue:"\u227D",succcurlyeq:"\u227D",SucceedsTilde:"\u227F",scsim:"\u227F",succsim:"\u227F",Sum:"\u2211",sum:"\u2211",Sup:"\u22D1",Supset:"\u22D1",Superset:"\u2283",sup:"\u2283",supset:"\u2283",SupersetEqual:"\u2287",supe:"\u2287",supseteq:"\u2287",THORN:"\xDE",TRADE:"\u2122",trade:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",there4:"\u2234",therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",Tilde:"\u223C",sim:"\u223C",thicksim:"\u223C",thksim:"\u223C",TildeEqual:"\u2243",sime:"\u2243",simeq:"\u2243",TildeFullEqual:"\u2245",cong:"\u2245",TildeTilde:"\u2248",ap:"\u2248",approx:"\u2248",asymp:"\u2248",thickapprox:"\u2248",thkap:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",tdot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",lowbar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",bbrk:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",bigcup:"\u22C3",xcup:"\u22C3",UnionPlus:"\u228E",uplus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",udarr:"\u21C5",UpDownArrow:"\u2195",updownarrow:"\u2195",varr:"\u2195",UpEquilibrium:"\u296E",udhar:"\u296E",UpTee:"\u22A5",bot:"\u22A5",bottom:"\u22A5",perp:"\u22A5",UpTeeArrow:"\u21A5",mapstoup:"\u21A5",UpperLeftArrow:"\u2196",nwarr:"\u2196",nwarrow:"\u2196",UpperRightArrow:"\u2197",nearr:"\u2197",nearrow:"\u2197",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",bigvee:"\u22C1",xvee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",mid:"\u2223",shortmid:"\u2223",smid:"\u2223",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",VeryThinSpace:"\u200A",hairsp:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",bigwedge:"\u22C0",xwedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",Zeta:"\u0396",Zfr:"\u2128",zeetrf:"\u2128",Zopf:"\u2124",integers:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",mstpos:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acy:"\u0430",aelig:"\xE6",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",and:"\u2227",wedge:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",angle:"\u2220",ange:"\u29A4",angmsd:"\u2221",measuredangle:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",approxeq:"\u224A",apid:"\u224B",apos:"'",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",midast:"*",atilde:"\xE3",auml:"\xE4",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",bcong:"\u224C",backepsilon:"\u03F6",bepsi:"\u03F6",backprime:"\u2035",bprime:"\u2035",backsim:"\u223D",bsim:"\u223D",backsimeq:"\u22CD",bsime:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrktbrk:"\u23B6",bcy:"\u0431",bdquo:"\u201E",ldquor:"\u201E",bemptyv:"\u29B0",beta:"\u03B2",beth:"\u2136",between:"\u226C",twixt:"\u226C",bfr:"\u{1D51F}",bigcirc:"\u25EF",xcirc:"\u25EF",bigodot:"\u2A00",xodot:"\u2A00",bigoplus:"\u2A01",xoplus:"\u2A01",bigotimes:"\u2A02",xotime:"\u2A02",bigsqcup:"\u2A06",xsqcup:"\u2A06",bigstar:"\u2605",starf:"\u2605",bigtriangledown:"\u25BD",xdtri:"\u25BD",bigtriangleup:"\u25B3",xutri:"\u25B3",biguplus:"\u2A04",xuplus:"\u2A04",bkarow:"\u290D",rbarr:"\u290D",blacklozenge:"\u29EB",lozf:"\u29EB",blacktriangle:"\u25B4",utrif:"\u25B4",blacktriangledown:"\u25BE",dtrif:"\u25BE",blacktriangleleft:"\u25C2",ltrif:"\u25C2",blacktriangleright:"\u25B8",rtrif:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",minusb:"\u229F",boxplus:"\u229E",plusb:"\u229E",boxtimes:"\u22A0",timesb:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bumpE:"\u2AAE",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cemptyv:"\u29B2",cent:"\xA2",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",cire:"\u2257",circlearrowleft:"\u21BA",olarr:"\u21BA",circlearrowright:"\u21BB",orarr:"\u21BB",circledS:"\u24C8",oS:"\u24C8",circledast:"\u229B",oast:"\u229B",circledcirc:"\u229A",ocir:"\u229A",circleddash:"\u229D",odash:"\u229D",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",comma:",",commat:"@",comp:"\u2201",complement:"\u2201",congdot:"\u2A6D",copf:"\u{1D554}",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",curlyeqprec:"\u22DE",cuesc:"\u22DF",curlyeqsucc:"\u22DF",cularr:"\u21B6",curvearrowleft:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curvearrowright:"\u21B7",curarrm:"\u293C",curlyvee:"\u22CE",cuvee:"\u22CE",curlywedge:"\u22CF",cuwed:"\u22CF",curren:"\xA4",cwint:"\u2231",cylcty:"\u232D",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",dash:"\u2010",hyphen:"\u2010",dbkarow:"\u290F",rBarr:"\u290F",dcaron:"\u010F",dcy:"\u0434",ddarr:"\u21CA",downdownarrows:"\u21CA",ddotseq:"\u2A77",eDDot:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",diamondsuit:"\u2666",diams:"\u2666",digamma:"\u03DD",gammad:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",llcorner:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",doteqdot:"\u2251",eDot:"\u2251",dotminus:"\u2238",minusd:"\u2238",dotplus:"\u2214",plusdo:"\u2214",dotsquare:"\u22A1",sdotb:"\u22A1",drcorn:"\u231F",lrcorner:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",triangledown:"\u25BF",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",eqcirc:"\u2256",ecirc:"\xEA",ecolon:"\u2255",eqcolon:"\u2255",ecy:"\u044D",edot:"\u0117",efDot:"\u2252",fallingdotseq:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",eqslantgtr:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",eqslantless:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",straightepsilon:"\u03F5",varepsilon:"\u03F5",equals:"=",equest:"\u225F",questeq:"\u225F",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",risingdotseq:"\u2253",erarr:"\u2971",escr:"\u212F",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",fork:"\u22D4",pitchfork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",half:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",sfrown:"\u2322",fscr:"\u{1D4BB}",gEl:"\u2A8C",gtreqqless:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gap:"\u2A86",gtrapprox:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gimel:"\u2137",gjcy:"\u0453",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gneqq:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gnsim:"\u22E7",gopf:"\u{1D558}",gscr:"\u210A",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtrdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrarr:"\u2978",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hardcy:"\u044A",harrcir:"\u2948",harrw:"\u21AD",leftrightsquigarrow:"\u21AD",hbar:"\u210F",hslash:"\u210F",planck:"\u210F",plankv:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",mldr:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",searhk:"\u2925",hkswarow:"\u2926",swarhk:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",larrhk:"\u21A9",hookrightarrow:"\u21AA",rarrhk:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hstrok:"\u0127",hybull:"\u2043",iacute:"\xED",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",ifr:"\u{1D526}",igrave:"\xEC",iiiint:"\u2A0C",qint:"\u2A0C",iiint:"\u222D",tint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",imath:"\u0131",inodot:"\u0131",imof:"\u22B7",imped:"\u01B5",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",intcal:"\u22BA",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iquest:"\xBF",iscr:"\u{1D4BE}",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",varkappa:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAtail:"\u291B",lBarr:"\u290E",lEg:"\u2A8B",lesseqqgtr:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lambda:"\u03BB",langd:"\u2991",lap:"\u2A85",lessapprox:"\u2A85",laquo:"\xAB",larrbfs:"\u291F",larrfs:"\u291D",larrlp:"\u21AB",looparrowleft:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",leftarrowtail:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lcy:"\u043B",ldca:"\u2936",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leq:"\u2264",leftleftarrows:"\u21C7",llarr:"\u21C7",leftthreetimes:"\u22CB",lthree:"\u22CB",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessdot:"\u22D6",ltdot:"\u22D6",lfisht:"\u297C",lfr:"\u{1D529}",lgE:"\u2A91",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lneqq:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",longmapsto:"\u27FC",xmap:"\u27FC",looparrowright:"\u21AC",rarrlp:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",loz:"\u25CA",lozenge:"\u25CA",lpar:"(",lparlt:"\u2993",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsime:"\u2A8D",lsimg:"\u2A8F",lsquor:"\u201A",sbquo:"\u201A",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",triangleleft:"\u25C3",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",strns:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midcir:"\u2AF0",minus:"\u2212",minusdu:"\u2A2A",mlcp:"\u2ADB",models:"\u22A7",mopf:"\u{1D55E}",mscr:"\u{1D4C2}",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nLeftarrow:"\u21CD",nlArr:"\u21CD",nLeftrightarrow:"\u21CE",nhArr:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nRightarrow:"\u21CF",nrArr:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nacute:"\u0144",nang:"\u2220\u20D2",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",natur:"\u266E",natural:"\u266E",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",neArr:"\u21D7",nearhk:"\u2924",nedot:"\u2250\u0338",nesear:"\u2928",toea:"\u2928",nfr:"\u{1D52B}",nharr:"\u21AE",nleftrightarrow:"\u21AE",nhpar:"\u2AF2",nis:"\u22FC",nisd:"\u22FA",njcy:"\u045A",nlE:"\u2266\u0338",nleqq:"\u2266\u0338",nlarr:"\u219A",nleftarrow:"\u219A",nldr:"\u2025",nopf:"\u{1D55F}",not:"\xAC",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinvb:"\u22F7",notinvc:"\u22F6",notnivb:"\u22FE",notnivc:"\u22FD",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",nrarr:"\u219B",nrightarrow:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nscr:"\u{1D4C3}",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsubseteqq:"\u2AC5\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupseteqq:"\u2AC6\u0338",ntilde:"\xF1",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwnear:"\u2927",oacute:"\xF3",ocirc:"\xF4",ocy:"\u043E",odblac:"\u0151",odiv:"\u2A38",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",olcir:"\u29BE",olcross:"\u29BB",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",or:"\u2228",vee:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",oscr:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",para:"\xB6",parsim:"\u2AF3",parsl:"\u2AFD",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",straightphi:"\u03D5",varphi:"\u03D5",phone:"\u260E",pi:"\u03C0",piv:"\u03D6",varpi:"\u03D6",planckh:"\u210E",plus:"+",plusacir:"\u2A23",pluscir:"\u2A22",plusdu:"\u2A25",pluse:"\u2A72",plussim:"\u2A26",plustwo:"\u2A27",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",prE:"\u2AB3",prap:"\u2AB7",precapprox:"\u2AB7",precnapprox:"\u2AB9",prnap:"\u2AB9",precneqq:"\u2AB5",prnE:"\u2AB5",precnsim:"\u22E8",prnsim:"\u22E8",prime:"\u2032",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quatint:"\u2A16",quest:"?",rAtail:"\u291C",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",raemptyv:"\u29B3",rangd:"\u2992",range:"\u29A5",raquo:"\xBB",rarrap:"\u2975",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rightarrowtail:"\u21A3",rarrw:"\u219D",rightsquigarrow:"\u219D",ratail:"\u291A",ratio:"\u2236",rbbrk:"\u2773",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdsh:"\u21B3",rect:"\u25AD",rfisht:"\u297D",rfr:"\u{1D52F}",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",varrho:"\u03F1",rightrightarrows:"\u21C9",rrarr:"\u21C9",rightthreetimes:"\u22CC",rthree:"\u22CC",ring:"\u02DA",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rsaquo:"\u203A",rscr:"\u{1D4C7}",rtimes:"\u22CA",rtri:"\u25B9",triangleright:"\u25B9",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",scE:"\u2AB4",scap:"\u2AB8",succapprox:"\u2AB8",scaron:"\u0161",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",succneqq:"\u2AB6",scnap:"\u2ABA",succnapprox:"\u2ABA",scnsim:"\u22E9",succnsim:"\u22E9",scpolint:"\u2A13",scy:"\u0441",sdot:"\u22C5",sdote:"\u2A66",seArr:"\u21D8",sect:"\xA7",semi:";",seswar:"\u2929",tosa:"\u2929",sext:"\u2736",sfr:"\u{1D530}",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",varsigma:"\u03C2",simdot:"\u2A6A",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",smashp:"\u2A33",smeparsl:"\u29E4",smile:"\u2323",ssmile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",sqcaps:"\u2293\uFE00",sqcups:"\u2294\uFE00",sscr:"\u{1D4C8}",star:"\u2606",sub:"\u2282",subset:"\u2282",subE:"\u2AC5",subseteqq:"\u2AC5",subdot:"\u2ABD",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subsetneqq:"\u2ACB",subne:"\u228A",subsetneq:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supseteqq:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supsetneqq:"\u2ACC",supne:"\u228B",supsetneq:"\u228B",supplus:"\u2AC0",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",telrec:"\u2315",tfr:"\u{1D531}",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",vartheta:"\u03D1",thorn:"\xFE",times:"\xD7",timesbar:"\u2A31",timesd:"\u2A30",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tprime:"\u2034",triangle:"\u25B5",utri:"\u25B5",triangleq:"\u225C",trie:"\u225C",tridot:"\u25EC",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",uHar:"\u2963",uacute:"\xFA",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udblac:"\u0171",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uogon:"\u0173",uopf:"\u{1D566}",upsi:"\u03C5",upsilon:"\u03C5",upuparrows:"\u21C8",uuarr:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",uuml:"\xFC",uwangle:"\u29A7",vBar:"\u2AE8",vBarv:"\u2AE9",vangrt:"\u299C",varsubsetneq:"\u228A\uFE00",vsubne:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",vsubnE:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",vsupne:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vsupnE:"\u2ACC\uFE00",vcy:"\u0432",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",vfr:"\u{1D533}",vopf:"\u{1D567}",vscr:"\u{1D4CB}",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedgeq:"\u2259",weierp:"\u2118",wp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wscr:"\u{1D4CC}",xfr:"\u{1D535}",xi:"\u03BE",xnis:"\u22FB",xopf:"\u{1D569}",xscr:"\u{1D4CD}",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"},ya="\uE500";Me.ngsp=ya;var ba=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function ls(t,e){if(e!=null&&!(Array.isArray(e)&&e.length==2))throw new Error(`Expected '${t}' to be an array, [start, end].`);if(e!=null){let r=e[0],n=e[1];ba.forEach(s=>{if(s.test(r)||s.test(n))throw new Error(`['${r}', '${n}'] contains unusable interpolation symbol.`)})}}var Dr=class t{static fromArray(e){return e?(ls("interpolation",e),new t(e[0],e[1])):vr}constructor(e,r){this.start=e,this.end=r}},vr=new Dr("{{","}}");var it=class extends Pe{constructor(e,r,n){super(n,e),this.tokenType=r}},wr=class{constructor(e,r,n){this.tokens=e,this.errors=r,this.nonNormalizedIcuExpressions=n}};function As(t,e,r,n={}){let s=new Tr(new me(t,e),r,n);return s.tokenize(),new wr(Qa(s.tokens),s.errors,s.nonNormalizedIcuExpressions)}var Ua=/\r\n?/g;function Oe(t){return`Unexpected character "${t===0?"EOF":String.fromCharCode(t)}"`}function fs(t){return`Unknown entity "${t}" - use the "&#;" or "&#x;" syntax`}function Wa(t,e){return`Unable to parse entity "${e}" - ${t} character reference entities must end with ";"`}var Ut;(function(t){t.HEX="hexadecimal",t.DEC="decimal"})(Ut||(Ut={}));var at=class{constructor(e){this.error=e}},Tr=class{constructor(e,r,n){this._getTagContentType=r,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=n.tokenizeExpansionForms||!1,this._interpolationConfig=n.interpolationConfig||vr,this._leadingTriviaCodePoints=n.leadingTriviaChars&&n.leadingTriviaChars.map(i=>i.codePointAt(0)||0),this._canSelfClose=n.canSelfClose||!1,this._allowHtmComponentClosingTags=n.allowHtmComponentClosingTags||!1;let s=n.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=n.escapedString?new xr(e,s):new Wt(e,s),this._preserveLineEndings=n.preserveLineEndings||!1,this._escapedString=n.escapedString||!1,this._i18nNormalizeLineEndingsInICUs=n.i18nNormalizeLineEndingsInICUs||!1;try{this._cursor.init()}catch(i){this.handleError(i)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(Ua,` +`)}tokenize(){for(;this._cursor.peek()!==0;){let e=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else{let r=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=r,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(r){this.handleError(r)}}this._beginToken(25),this._endToken([])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(ja(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,r=this._cursor.clone()){this._currentTokenStart=r,this._currentTokenType=e}_endToken(e,r){if(this._currentTokenStart===null)throw new it("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(r));if(this._currentTokenType===null)throw new it("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let n={type:this._currentTokenType,parts:e,sourceSpan:(r??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n}_createError(e,r){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let n=new it(e,this._currentTokenType,r);return this._currentTokenStart=null,this._currentTokenType=null,new at(n)}handleError(e){if(e instanceof ut&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof at)this.errors.push(e.error);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return Ka(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let r=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(Oe(this._cursor.peek()),this._cursor.getSpan(r))}_attemptStr(e){let r=e.length;if(this._cursor.charsLeft()this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(e){this._beginToken(10,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(11),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(12,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(18,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(19),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(){let e=this._cursor.clone(),r="";for(;this._cursor.peek()!==58&&!Ga(this._cursor.peek());)this._cursor.advance();let n;this._cursor.peek()===58?(r=this._cursor.getChars(e),this._cursor.advance(),n=this._cursor.clone()):n=e,this._requireCharCodeUntilFn(ms,r===""?0:1);let s=this._cursor.getChars(n);return[r,s]}_consumeTagOpen(e){let r,n,s,i=[];try{if(!lr(this._cursor.peek()))throw this._createError(Oe(this._cursor.peek()),this._cursor.getSpan(e));for(s=this._consumeTagOpenStart(e),n=s.parts[0],r=s.parts[1],this._attemptCharCodeUntilFn(N);this._cursor.peek()!==47&&this._cursor.peek()!==62&&this._cursor.peek()!==60&&this._cursor.peek()!==0;){let[u,o]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(N),this._attemptCharCode(61)){this._attemptCharCodeUntilFn(N);let p=this._consumeAttributeValue();i.push({prefix:u,name:o,value:p})}else i.push({prefix:u,name:o});this._attemptCharCodeUntilFn(N)}this._consumeTagOpenEnd()}catch(u){if(u instanceof at){s?s.type=4:(this._beginToken(5,e),this._endToken(["<"]));return}throw u}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===2)return;let a=this._getTagContentType(r,n,this._fullNameStack.length>0,i);this._handleFullNameStackForTagOpen(n,r),a===L.RAW_TEXT?this._consumeRawTextWithTagClose(n,r,!1):a===L.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,r,!0)}_consumeRawTextWithTagClose(e,r,n){this._consumeRawText(n,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(N),!this._attemptStrCaseInsensitive(e?`${e}:${r}`:r))?!1:(this._attemptCharCodeUntilFn(N),this._attemptCharCode(62))),this._beginToken(3),this._requireCharCodeUntilFn(s=>s===62,3),this._cursor.advance(),this._endToken([e,r]),this._handleFullNameStackForTagClose(e,r)}_consumeTagOpenStart(e){this._beginToken(0,e);let r=this._consumePrefixAndName();return this._endToken(r)}_consumeAttributeName(){let e=this._cursor.peek();if(e===39||e===34)throw this._createError(Oe(e),this._cursor.getSpan());this._beginToken(14);let r=this._consumePrefixAndName();return this._endToken(r),r}_consumeAttributeValue(){let e;if(this._cursor.peek()===39||this._cursor.peek()===34){let r=this._cursor.peek();this._consumeQuote(r);let n=()=>this._cursor.peek()===r;e=this._consumeWithInterpolation(16,17,n,n),this._consumeQuote(r)}else{let r=()=>ms(this._cursor.peek());e=this._consumeWithInterpolation(16,17,r,r)}return e}_consumeQuote(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?2:1;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){if(this._beginToken(3,e),this._attemptCharCodeUntilFn(N),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(N),this._requireCharCode(62),this._endToken([]);else{let[r,n]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(N),this._requireCharCode(62),this._endToken([r,n]),this._handleFullNameStackForTagClose(r,n)}}_consumeExpansionFormStart(){this._beginToken(20),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(20),this._beginToken(7);let e=this._readUntil(44),r=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([r]);else{let s=this._endToken([e]);r!==e&&this.nonNormalizedIcuExpressions.push(s)}this._requireCharCode(44),this._attemptCharCodeUntilFn(N),this._beginToken(7);let n=this._readUntil(44);this._endToken([n]),this._requireCharCode(44),this._attemptCharCodeUntilFn(N)}_consumeExpansionCaseStart(){this._beginToken(21);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(N),this._beginToken(22),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(N),this._expansionCaseStack.push(22)}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(N),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,r,n,s){this._beginToken(e);let i=[];for(;!n();){let u=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(i.join(""))],u),i.length=0,this._consumeInterpolation(r,u,s),this._beginToken(e)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(i.join(""))]),i.length=0,this._consumeEntity(e),this._beginToken(e)):i.push(this._readChar())}this._inInterpolation=!1;let a=this._processCarriageReturns(i.join(""));return this._endToken([a]),a}_consumeInterpolation(e,r,n){let s=[];this._beginToken(e,r),s.push(this._interpolationConfig.start);let i=this._cursor.clone(),a=null,u=!1;for(;this._cursor.peek()!==0&&(n===null||!n());){let o=this._cursor.clone();if(this._isTagStart()){this._cursor=o,s.push(this._getProcessedChars(i,o)),this._endToken(s);return}if(a===null)if(this._attemptStr(this._interpolationConfig.end)){s.push(this._getProcessedChars(i,o)),s.push(this._interpolationConfig.end),this._endToken(s);return}else this._attemptStr("//")&&(u=!0);let p=this._cursor.peek();this._cursor.advance(),p===92?this._cursor.advance():p===a?a=null:!u&&a===null&&wn(p)&&(a=p)}s.push(this._getProcessedChars(i,this._cursor)),this._endToken(s)}_getProcessedChars(e,r){return this._processCarriageReturns(r.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase()))}_isTagStart(){if(this._cursor.peek()===60){let e=this._cursor.clone();e.advance();let r=e.peek();if(97<=r&&r<=122||65<=r&&r<=90||r===47||r===33)return!0}return!1}_readUntil(e){let r=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(r)}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===22}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===20}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;if(this._interpolationConfig){let e=this._cursor.clone(),r=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!r}return!0}_handleFullNameStackForTagOpen(e,r){let n=Re(e,r);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===n)&&this._fullNameStack.push(n)}_handleFullNameStackForTagClose(e,r){let n=Re(e,r);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===n&&this._fullNameStack.pop()}};function N(t){return!or(t)||t===0}function ms(t){return or(t)||t===62||t===60||t===47||t===39||t===34||t===61||t===0}function Ga(t){return(t<97||12257)}function Ya(t){return t===59||t===0||!bn(t)}function za(t){return t===59||t===0||!lr(t)}function ja(t){return t!==125}function Ka(t,e){return ds(t)===ds(e)}function ds(t){return t>=97&&t<=122?t-97+65:t}function Qa(t){let e=[],r;for(let n=0;n0&&r.indexOf(e.peek())!==-1;)n===e&&(e=e.clone()),e.advance();let s=this.locationFromCursor(e),i=this.locationFromCursor(this),a=n!==e?this.locationFromCursor(n):s;return new m(s,i,a)}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new ut('Unexpected character "EOF"',this);let r=this.charAt(e.offset);r===10?(e.line++,e.column=0):cr(r)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?0:this.charAt(e.offset)}locationFromCursor(e){return new ee(e.file,e.state.offset,e.state.line,e.state.column)}},xr=class t extends Wt{constructor(e,r){e instanceof t?(super(e),this.internalState={...e.internalState}):(super(e,r),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new t(this)}getChars(e){let r=e.clone(),n="";for(;r.internalState.offsetthis.internalState.peek;if(e()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),e()===110)this.state.peek=10;else if(e()===114)this.state.peek=13;else if(e()===118)this.state.peek=11;else if(e()===116)this.state.peek=9;else if(e()===98)this.state.peek=8;else if(e()===102)this.state.peek=12;else if(e()===117)if(this.advanceState(this.internalState),e()===123){this.advanceState(this.internalState);let r=this.clone(),n=0;for(;e()!==125;)this.advanceState(this.internalState),n++;this.state.peek=this.decodeHexDigits(r,n)}else{let r=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,4)}else if(e()===120){this.advanceState(this.internalState);let r=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,2)}else if(pr(e())){let r="",n=0,s=this.clone();for(;pr(e())&&n<3;)s=this.clone(),r+=String.fromCodePoint(e()),this.advanceState(this.internalState),n++;this.state.peek=parseInt(r,8),this.internalState=s.internalState}else cr(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,r){let n=this.input.slice(e.internalState.offset,e.internalState.offset+r),s=parseInt(n,16);if(isNaN(s))throw e.state=e.internalState,new ut("Invalid hexadecimal escape sequence",e);return s}},ut=class{constructor(e,r){this.msg=e,this.cursor=r}};var H=class t extends Pe{static create(e,r,n){return new t(e,r,n)}constructor(e,r,n){super(r,n),this.elementName=e}},Lr=class{constructor(e,r){this.rootNodes=e,this.errors=r}},Gt=class{constructor(e){this.getTagDefinition=e}parse(e,r,n,s=!1,i){let a=A=>(F,...T)=>A(F.toLowerCase(),...T),u=s?this.getTagDefinition:a(this.getTagDefinition),o=A=>u(A).getContentType(),p=s?i:a(i),f=As(e,r,i?(A,F,T,c)=>{let g=p(A,F,T,c);return g!==void 0?g:o(A)}:o,n),d=n&&n.canSelfClose||!1,C=n&&n.allowHtmComponentClosingTags||!1,E=new Fr(f.tokens,u,d,C,s);return E.build(),new Lr(E.rootNodes,f.errors.concat(E.errors))}},Fr=class t{constructor(e,r,n,s,i){this.tokens=e,this.getTagDefinition=r,this.canSelfClose=n,this.allowHtmComponentClosingTags=s,this.isTagNameCaseSensitive=i,this._index=-1,this._elementStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==25;)this._peek.type===0||this._peek.type===4?this._consumeStartTag(this._advance()):this._peek.type===3?(this._closeVoidElement(),this._consumeEndTag(this._advance())):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===20?this._consumeExpansion(this._advance()):this._peek.type===18?this._consumeDocType(this._advance()):this._advance()}_advance(){let e=this._peek;return this._index0)return this.errors=this.errors.concat(i.errors),null;let a=new m(e.sourceSpan.start,s.sourceSpan.end,e.sourceSpan.fullStart),u=new m(r.sourceSpan.start,s.sourceSpan.end,r.sourceSpan.fullStart);return new Nt(e.parts[0],i.rootNodes,a,e.sourceSpan,u)}_collectExpansionExpTokens(e){let r=[],n=[22];for(;;){if((this._peek.type===20||this._peek.type===22)&&n.push(this._peek.type),this._peek.type===23)if(_s(n,22)){if(n.pop(),n.length===0)return r}else return this.errors.push(H.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===24)if(_s(n,20))n.pop();else return this.errors.push(H.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===25)return this.errors.push(H.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.push(this._advance())}}_getText(e){let r=e.parts[0];if(r.length>0&&r[0]==` `){let n=this._getParentElement();n!=null&&n.children.length==0&&this.getTagDefinition(n.name).ignoreFirstLf&&(r=r.substring(1))}return r}_consumeText(e){let r=[e],n=e.sourceSpan,s=e.parts[0];if(s.length>0&&s[0]===` -`){let i=this._getParentElement();i!=null&&i.children.length===0&&this.getTagDefinition(i.name).ignoreFirstLf&&(s=s.substring(1),r[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[s]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)e=this._advance(),r.push(e),e.type===8?s+=e.parts.join("").replace(/&([^;]+);/g,As):e.type===9?s+=e.parts[0]:s+=e.parts.join("");if(s.length>0){let i=e.sourceSpan;this._addToParent(new Lt(s,new m(n.start,i.end,n.fullStart,n.details),r))}}_closeVoidElement(){let e=this._getParentElement();e&&this.getTagDefinition(e.name).isVoid&&this._elementStack.pop()}_consumeStartTag(e){let[r,n]=e.parts,s=[];for(;this._peek.type===14;)s.push(this._consumeAttr(this._advance()));let i=this._getElementFullName(r,n,this._getParentElement()),a=!1;if(this._peek.type===2){this._advance(),a=!0;let h=this.getTagDefinition(i);this.canSelfClose||h.canSelfClose||Ie(i)!==null||h.isVoid||this.errors.push(H.create(i,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else this._peek.type===1&&(this._advance(),a=!1);let u=this._peek.sourceSpan.fullStart,o=new m(e.sourceSpan.start,u,e.sourceSpan.fullStart),p=new m(e.sourceSpan.start,u,e.sourceSpan.fullStart),c=new m(e.sourceSpan.start.moveBy(1),e.sourceSpan.end),g=new Rt(i,s,[],o,p,void 0,c);this._pushElement(g),a?this._popElement(i,o):e.type===4&&(this._popElement(i,null),this.errors.push(H.create(i,o,`Opening tag "${i}" not terminated.`)))}_pushElement(e){let r=this._getParentElement();r&&this.getTagDefinition(r.name).isClosedByChild(e.name)&&this._elementStack.pop(),this._addToParent(e),this._elementStack.push(e)}_consumeEndTag(e){let r=this.allowHtmComponentClosingTags&&e.parts.length===0?null:this._getElementFullName(e.parts[0],e.parts[1],this._getParentElement());if(r&&this.getTagDefinition(r).isVoid)this.errors.push(H.create(r,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popElement(r,e.sourceSpan)){let n=`Unexpected closing tag "${r}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(H.create(r,e.sourceSpan,n))}}_popElement(e,r){let n=!1;for(let s=this._elementStack.length-1;s>=0;s--){let i=this._elementStack[s];if(!e||(Ie(i.name)?i.name==e:i.name.toLowerCase()==e.toLowerCase()))return i.endSourceSpan=r,i.sourceSpan.end=r!==null?r.end:i.sourceSpan.end,this._elementStack.splice(s,this._elementStack.length-s),!n;this.getTagDefinition(i.name).closedByParent||(n=!0)}return!1}_consumeAttr(e){let r=Re(e.parts[0],e.parts[1]),n=e.sourceSpan.end,s;this._peek.type===15&&(s=this._advance());let i="",a=[],u,o;if(this._peek.type===16)for(u=this._peek.sourceSpan,o=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let g=this._advance();a.push(g),g.type===17?i+=g.parts.join("").replace(/&([^;]+);/g,As):g.type===9?i+=g.parts[0]:i+=g.parts.join(""),o=n=g.sourceSpan.end}this._peek.type===15&&(o=n=this._advance().sourceSpan.end);let c=u&&o&&new m((s==null?void 0:s.sourceSpan.start)??u.start,o,(s==null?void 0:s.sourceSpan.fullStart)??u.fullStart);return new It(r,i,new m(e.sourceSpan.start,n,e.sourceSpan.fullStart),e.sourceSpan,c,a.length>0?a:void 0,void 0)}_getParentElement(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null}_addToParent(e){let r=this._getParentElement();r!=null?r.children.push(e):this.rootNodes.push(e)}_getElementFullName(e,r,n){if(e===""&&(e=this.getTagDefinition(r).implicitNamespacePrefix||"",e===""&&n!=null)){let s=tt(n.name)[1];this.getTagDefinition(s).preventNamespaceInheritance||(e=Ie(n.name))}return Re(e,r)}};function Es(t,e){return t.length>0&&t[t.length-1]===e}function As(t,e){return Me[e]!==void 0?Me[e]||t:/^#x[a-f0-9]+$/i.test(e)?String.fromCodePoint(parseInt(e.slice(2),16)):/^#\d+$/.test(e)?String.fromCodePoint(parseInt(e.slice(1),10)):t}var zt=class extends Gt{constructor(){super($e)}parse(e,r,n,s=!1,i){return super.parse(e,r,n,s,i)}};var Pr=null,ja=()=>(Pr||(Pr=new zt),Pr);function Ir(t,e={}){let{canSelfClose:r=!1,allowHtmComponentClosingTags:n=!1,isTagNameCaseSensitive:s=!1,getTagContentType:i}=e;return ja().parse(t,"angular-html-parser",{tokenizeExpansionForms:!1,interpolationConfig:void 0,canSelfClose:r,allowHtmComponentClosingTags:n},s,i)}var Ka=new RegExp("^(?-{3}|\\+{3})(?[^\\n]*)\\n(?:|(?.*?)\\n)(?\\k|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function Xa(t){let e=t.match(Ka);if(!e)return{content:t};let{startDelimiter:r,language:n,value:s="",endDelimiter:i}=e.groups,a=n.trim()||"yaml";if(r==="+++"&&(a="toml"),a!=="yaml"&&r!==i)return{content:t};let[u]=e;return{frontMatter:{type:"front-matter",lang:a,value:s,startDelimiter:r,endDelimiter:i,raw:u.replace(/\n$/,"")},content:v(!1,u,/[^\n]/g," ")+t.slice(u.length)}}var _s=Xa;function Qa(t,e){let r=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)}var Ds=Qa;var vs=new Set(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]);var Yt=new Map([["*",new Set(["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","popover","slot","spellcheck","style","tabindex","title","translate"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["open"])],["dialog",new Set(["open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],["frame",new Set(["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"])],["frameset",new Set(["cols","rows"])],["h1",new Set(["align"])],["h2",new Set(["align"])],["h3",new Set(["align"])],["h4",new Set(["align"])],["h5",new Set(["align"])],["h6",new Set(["align"])],["head",new Set(["profile"])],["hr",new Set(["align","noshade","size","width"])],["html",new Set(["manifest","version"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","crossorigin","decoding","fetchpriority","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"])],["input",new Set(["accept","align","alt","autocomplete","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","usemap","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["prompt"])],["label",new Set(["for","form"])],["legend",new Set(["align"])],["li",new Set(["type","value"])],["link",new Set(["as","blocking","charset","color","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"])],["map",new Set(["name"])],["menu",new Set(["compact"])],["meta",new Set(["charset","content","http-equiv","media","name","scheme"])],["meter",new Set(["high","low","max","min","optimum","value"])],["object",new Set(["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"])],["ol",new Set(["compact","reversed","start","type"])],["optgroup",new Set(["disabled","label"])],["option",new Set(["disabled","label","selected","value"])],["output",new Set(["for","form","name"])],["p",new Set(["align"])],["param",new Set(["name","type","value","valuetype"])],["pre",new Set(["width"])],["progress",new Set(["max","value"])],["q",new Set(["cite"])],["script",new Set(["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","language","nomodule","referrerpolicy","src","type"])],["select",new Set(["autocomplete","disabled","form","multiple","name","required","size"])],["slot",new Set(["name"])],["source",new Set(["height","media","sizes","src","srcset","type","width"])],["style",new Set(["blocking","media","type"])],["table",new Set(["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"])],["tbody",new Set(["align","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","char","charoff","valign"])],["time",new Set(["datetime"])],["tr",new Set(["align","bgcolor","char","charoff","valign"])],["track",new Set(["default","kind","label","src","srclang"])],["ul",new Set(["compact","type"])],["video",new Set(["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"])]]);var jt={attrs:!0,children:!0},ys=new Set(["parent"]),Kt=class t{constructor(e={}){for(let r of new Set([...ys,...Object.keys(e)]))this.setProperty(r,e[r])}setProperty(e,r){if(this[e]!==r){if(e in jt&&(r=r.map(n=>this.createChild(n))),!ys.has(e)){this[e]=r;return}Object.defineProperty(this,e,{value:r,enumerable:!1,configurable:!0})}}map(e){let r;for(let n in jt){let s=this[n];if(s){let i=Ja(s,a=>a.map(e));r!==s&&(r||(r=new t({parent:this.parent})),r.setProperty(n,i))}}if(r)for(let n in this)n in jt||(r[n]=this[n]);return e(r||this)}walk(e){for(let r in jt){let n=this[r];if(n)for(let s=0;s[e.fullName,e.value]))}};function Ja(t,e){let r=t.map(e);return r.some((n,s)=>n!==t[s])?r:t}var Za=[{regex:/^(\[if([^\]]*)]>)(.*?){try{return[!0,e(i,u).children]}catch{return[!1,[{type:"text",value:i,sourceSpan:new m(u,o)}]]}})();return{type:"ieConditionalComment",complete:p,children:c,condition:v(!1,s.trim(),/\s+/g," "),sourceSpan:t.sourceSpan,startSourceSpan:new m(t.sourceSpan.start,u),endSourceSpan:new m(o,t.sourceSpan.end)}}function tu(t,e,r){let[,n]=r;return{type:"ieConditionalStartComment",condition:v(!1,n.trim(),/\s+/g," "),sourceSpan:t.sourceSpan}}function ru(t){return{type:"ieConditionalEndComment",sourceSpan:t.sourceSpan}}function Ts(t,e,r){let{name:n,canSelfClose:s=!0,normalizeTagName:i=!1,normalizeAttributeName:a=!1,allowHtmComponentClosingTags:u=!1,isTagNameCaseSensitive:o=!1,shouldParseAsRawText:p}=e,{rootNodes:c,errors:g}=Ir(t,{canSelfClose:s,allowHtmComponentClosingTags:u,isTagNameCaseSensitive:o,getTagContentType:p?(...l)=>p(...l)?k.RAW_TEXT:void 0:void 0});if(n==="vue"){if(c.some(w=>w.type==="docType"&&w.value==="html"||w.type==="element"&&w.name.toLowerCase()==="html"))return Ts(t,ks,r);let d,b=()=>d??(d=Ir(t,{canSelfClose:s,allowHtmComponentClosingTags:u,isTagNameCaseSensitive:o})),I=w=>b().rootNodes.find(({startSourceSpan:$})=>$&&$.start.offset===w.startSourceSpan.start.offset)??w;for(let[w,$]of c.entries()){let{endSourceSpan:$r,startSourceSpan:Ns}=$;if($r===null)g=b().errors,c[w]=I($);else if(nu($,r)){let Mr=b().errors.find(Or=>Or.span.start.offset>Ns.start.offset&&Or.span.start.offset<$r.end.offset);Mr&&ws(Mr),c[w]=I($)}}}g.length>0&&ws(g[0]);let h=l=>{let d=l.name.startsWith(":")?l.name.slice(1).split(":")[0]:null,b=l.nameSpan.toString(),I=d!==null&&b.startsWith(`${d}:`),w=I?b.slice(d.length+1):b;l.name=w,l.namespace=d,l.hasExplicitNamespace=I},C=l=>{switch(l.type){case"element":h(l);for(let d of l.attrs)h(d),d.valueSpan?(d.value=d.valueSpan.toString(),/["']/.test(d.value[0])&&(d.value=d.value.slice(1,-1))):d.value=null;break;case"comment":l.value=l.sourceSpan.toString().slice(4,-3);break;case"text":l.value=l.sourceSpan.toString();break}},E=(l,d)=>{let b=l.toLowerCase();return d(b)?b:l},A=l=>{if(l.type==="element"&&(i&&(!l.namespace||l.namespace===l.tagDefinition.implicitNamespacePrefix||ce(l))&&(l.name=E(l.name,d=>vs.has(d))),a))for(let d of l.attrs)d.namespace||(d.name=E(d.name,b=>Yt.has(l.name)&&(Yt.get("*").has(b)||Yt.get(l.name).has(b))))},B=l=>{l.sourceSpan&&l.endSourceSpan&&(l.sourceSpan=new m(l.sourceSpan.start,l.endSourceSpan.end))},y=l=>{if(l.type==="element"){let d=$e(o?l.name:l.name.toLowerCase());!l.namespace||l.namespace===d.implicitNamespacePrefix||ce(l)?l.tagDefinition=d:l.tagDefinition=$e("")}};return Ot(new class extends nt{visit(l){C(l),y(l),A(l),B(l)}},c),c}function nu(t,e){var n;if(t.type!=="element"||t.name!=="template")return!1;let r=(n=t.attrs.find(s=>s.name==="lang"))==null?void 0:n.value;return!r||Be(e,{language:r})==="html"}function ws(t){let{msg:e,span:{start:r,end:n}}=t;throw Ds(e,{loc:{start:{line:r.line+1,column:r.col+1},end:{line:n.line+1,column:n.col+1}},cause:t})}function xs(t,e,r={},n=!0){let{frontMatter:s,content:i}=n?_s(t):{frontMatter:null,content:t},a=new fe(t,r.filepath),u=new ee(a,0,0,0),o=u.moveBy(t.length),p={type:"root",sourceSpan:new m(u,o),children:Ts(i,e,r)};if(s){let h=new ee(a,0,0,0),C=h.moveBy(s.raw.length);s.sourceSpan=new m(h,C),p.children.unshift(s)}let c=new Kt(p),g=(h,C)=>{let{offset:E}=C,A=v(!1,t.slice(0,E),/[^\n\r]/g," "),y=xs(A+h,e,r,!1);y.sourceSpan=new m(C,xe(!1,y.children,-1).sourceSpan.end);let l=y.children[0];return l.length===E?y.children.shift():(l.sourceSpan=new m(l.sourceSpan.start.moveBy(E),l.sourceSpan.end),l.value=l.value.slice(E)),y};return c.walk(h=>{if(h.type==="comment"){let C=bs(h,g);C&&h.parent.replaceChild(h,C)}}),c}function Xt(t){return{parse:(e,r)=>xs(e,t,r),hasPragma:Ln,astFormat:"html",locStart:te,locEnd:re}}var ks={name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0},su=Xt(ks),iu=Xt({name:"angular"}),au=Xt({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(t,e,r,n){return t.toLowerCase()!=="html"&&!r&&(t!=="template"||n.some(({name:s,value:i})=>s==="lang"&&i!=="html"&&i!==""&&i!==void 0))}}),uu=Xt({name:"lwc",canSelfClose:!1});var Bs=[{linguistLanguageId:146,name:"Angular",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".component.html"],parsers:["angular"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:146,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml",".mjml"],parsers:["html"],vscodeLanguageIds:["html"]},{linguistLanguageId:146,name:"Lightning Web Components",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[],parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:391,name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"]}];var Rr={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Ls="HTML",ou={bracketSameLine:Rr.bracketSameLine,htmlWhitespaceSensitivity:{category:Ls,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:Rr.singleAttributePerLine,vueIndentScriptAndStyle:{category:Ls,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},Fs=ou;var lu={html:ts};return Ms(cu);}); \ No newline at end of file +`){let i=this._getParentElement();i!=null&&i.children.length===0&&this.getTagDefinition(i.name).ignoreFirstLf&&(s=s.substring(1),r[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[s]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)e=this._advance(),r.push(e),e.type===8?s+=e.parts.join("").replace(/&([^;]+);/g,Ds):e.type===9?s+=e.parts[0]:s+=e.parts.join("");if(s.length>0){let i=e.sourceSpan;this._addToParent(new Lt(s,new m(n.start,i.end,n.fullStart,n.details),r))}}_closeVoidElement(){let e=this._getParentElement();e&&this.getTagDefinition(e.name).isVoid&&this._elementStack.pop()}_consumeStartTag(e){let[r,n]=e.parts,s=[];for(;this._peek.type===14;)s.push(this._consumeAttr(this._advance()));let i=this._getElementFullName(r,n,this._getParentElement()),a=!1;if(this._peek.type===2){this._advance(),a=!0;let d=this.getTagDefinition(i);this.canSelfClose||d.canSelfClose||Ie(i)!==null||d.isVoid||this.errors.push(H.create(i,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else this._peek.type===1&&(this._advance(),a=!1);let u=this._peek.sourceSpan.fullStart,o=new m(e.sourceSpan.start,u,e.sourceSpan.fullStart),p=new m(e.sourceSpan.start,u,e.sourceSpan.fullStart),l=new m(e.sourceSpan.start.moveBy(1),e.sourceSpan.end),f=new Rt(i,s,[],o,p,void 0,l);this._pushElement(f),a?this._popElement(i,o):e.type===4&&(this._popElement(i,null),this.errors.push(H.create(i,o,`Opening tag "${i}" not terminated.`)))}_pushElement(e){let r=this._getParentElement();r&&this.getTagDefinition(r.name).isClosedByChild(e.name)&&this._elementStack.pop(),this._addToParent(e),this._elementStack.push(e)}_consumeEndTag(e){let r=this.allowHtmComponentClosingTags&&e.parts.length===0?null:this._getElementFullName(e.parts[0],e.parts[1],this._getParentElement());if(r&&this.getTagDefinition(r).isVoid)this.errors.push(H.create(r,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popElement(r,e.sourceSpan)){let n=`Unexpected closing tag "${r}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(H.create(r,e.sourceSpan,n))}}_popElement(e,r){let n=!1;for(let s=this._elementStack.length-1;s>=0;s--){let i=this._elementStack[s];if(!e||(Ie(i.name)?i.name==e:i.name.toLowerCase()==e.toLowerCase()))return i.endSourceSpan=r,i.sourceSpan.end=r!==null?r.end:i.sourceSpan.end,this._elementStack.splice(s,this._elementStack.length-s),!n;this.getTagDefinition(i.name).closedByParent||(n=!0)}return!1}_consumeAttr(e){let r=Re(e.parts[0],e.parts[1]),n=e.sourceSpan.end,s;this._peek.type===15&&(s=this._advance());let i="",a=[],u,o;if(this._peek.type===16)for(u=this._peek.sourceSpan,o=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let f=this._advance();a.push(f),f.type===17?i+=f.parts.join("").replace(/&([^;]+);/g,Ds):f.type===9?i+=f.parts[0]:i+=f.parts.join(""),o=n=f.sourceSpan.end}this._peek.type===15&&(o=n=this._advance().sourceSpan.end);let l=u&&o&&new m((s==null?void 0:s.sourceSpan.start)??u.start,o,(s==null?void 0:s.sourceSpan.fullStart)??u.fullStart);return new It(r,i,new m(e.sourceSpan.start,n,e.sourceSpan.fullStart),e.sourceSpan,l,a.length>0?a:void 0,void 0)}_getParentElement(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null}_addToParent(e){let r=this._getParentElement();r!=null?r.children.push(e):this.rootNodes.push(e)}_getElementFullName(e,r,n){if(e===""&&(e=this.getTagDefinition(r).implicitNamespacePrefix||"",e===""&&n!=null)){let s=et(n.name)[1];this.getTagDefinition(s).preventNamespaceInheritance||(e=Ie(n.name))}return Re(e,r)}};function _s(t,e){return t.length>0&&t[t.length-1]===e}function Ds(t,e){return Me[e]!==void 0?Me[e]||t:/^#x[a-f0-9]+$/i.test(e)?String.fromCodePoint(parseInt(e.slice(2),16)):/^#\d+$/.test(e)?String.fromCodePoint(parseInt(e.slice(1),10)):t}var Yt=class extends Gt{constructor(){super($e)}parse(e,r,n,s=!1,i){return super.parse(e,r,n,s,i)}};var Pr=null,Xa=()=>(Pr||(Pr=new Yt),Pr);function Nr(t,e={}){let{canSelfClose:r=!1,allowHtmComponentClosingTags:n=!1,isTagNameCaseSensitive:s=!1,getTagContentType:i}=e;return Xa().parse(t,"angular-html-parser",{tokenizeExpansionForms:!1,interpolationConfig:void 0,canSelfClose:r,allowHtmComponentClosingTags:n},s,i)}var Ja=new RegExp("^(?-{3}|\\+{3})(?[^\\n]*)\\n(?:|(?.*?)\\n)(?\\k|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function Za(t){let e=t.match(Ja);if(!e)return{content:t};let{startDelimiter:r,language:n,value:s="",endDelimiter:i}=e.groups,a=n.trim()||"yaml";if(r==="+++"&&(a="toml"),a!=="yaml"&&r!==i)return{content:t};let[u]=e;return{frontMatter:{type:"front-matter",lang:a,value:s,startDelimiter:r,endDelimiter:i,raw:u.replace(/\n$/,"")},content:v(!1,u,/[^\n]/g," ")+t.slice(u.length)}}var vs=Za;function eu(t,e){let r=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)}var ys=eu;var bs=new Set(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]);var zt=new Map([["*",new Set(["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","popover","slot","spellcheck","style","tabindex","title","translate"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["open"])],["dialog",new Set(["open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],["frame",new Set(["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"])],["frameset",new Set(["cols","rows"])],["h1",new Set(["align"])],["h2",new Set(["align"])],["h3",new Set(["align"])],["h4",new Set(["align"])],["h5",new Set(["align"])],["h6",new Set(["align"])],["head",new Set(["profile"])],["hr",new Set(["align","noshade","size","width"])],["html",new Set(["manifest","version"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","crossorigin","decoding","fetchpriority","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"])],["input",new Set(["accept","align","alt","autocomplete","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","usemap","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["prompt"])],["label",new Set(["for","form"])],["legend",new Set(["align"])],["li",new Set(["type","value"])],["link",new Set(["as","blocking","charset","color","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"])],["map",new Set(["name"])],["menu",new Set(["compact"])],["meta",new Set(["charset","content","http-equiv","media","name","scheme"])],["meter",new Set(["high","low","max","min","optimum","value"])],["object",new Set(["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"])],["ol",new Set(["compact","reversed","start","type"])],["optgroup",new Set(["disabled","label"])],["option",new Set(["disabled","label","selected","value"])],["output",new Set(["for","form","name"])],["p",new Set(["align"])],["param",new Set(["name","type","value","valuetype"])],["pre",new Set(["width"])],["progress",new Set(["max","value"])],["q",new Set(["cite"])],["script",new Set(["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","language","nomodule","referrerpolicy","src","type"])],["select",new Set(["autocomplete","disabled","form","multiple","name","required","size"])],["slot",new Set(["name"])],["source",new Set(["height","media","sizes","src","srcset","type","width"])],["style",new Set(["blocking","media","type"])],["table",new Set(["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"])],["tbody",new Set(["align","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","char","charoff","valign"])],["time",new Set(["datetime"])],["tr",new Set(["align","bgcolor","char","charoff","valign"])],["track",new Set(["default","kind","label","src","srclang"])],["ul",new Set(["compact","type"])],["video",new Set(["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"])]]);var jt={attrs:!0,children:!0},ws=new Set(["parent"]),Kt=class t{constructor(e={}){for(let r of new Set([...ws,...Object.keys(e)]))this.setProperty(r,e[r])}setProperty(e,r){if(this[e]!==r){if(e in jt&&(r=r.map(n=>this.createChild(n))),!ws.has(e)){this[e]=r;return}Object.defineProperty(this,e,{value:r,enumerable:!1,configurable:!0})}}map(e){let r;for(let n in jt){let s=this[n];if(s){let i=tu(s,a=>a.map(e));r!==s&&(r||(r=new t({parent:this.parent})),r.setProperty(n,i))}}if(r)for(let n in this)n in jt||(r[n]=this[n]);return e(r||this)}walk(e){for(let r in jt){let n=this[r];if(n)for(let s=0;s[e.fullName,e.value]))}};function tu(t,e){let r=t.map(e);return r.some((n,s)=>n!==t[s])?r:t}var ru=[{regex:/^(\[if([^\]]*)]>)(.*?){try{return[!0,e(i,u).children]}catch{return[!1,[{type:"text",value:i,sourceSpan:new m(u,o)}]]}})();return{type:"ieConditionalComment",complete:p,children:l,condition:v(!1,s.trim(),/\s+/g," "),sourceSpan:t.sourceSpan,startSourceSpan:new m(t.sourceSpan.start,u),endSourceSpan:new m(o,t.sourceSpan.end)}}function su(t,e,r){let[,n]=r;return{type:"ieConditionalStartComment",condition:v(!1,n.trim(),/\s+/g," "),sourceSpan:t.sourceSpan}}function iu(t){return{type:"ieConditionalEndComment",sourceSpan:t.sourceSpan}}function ks(t,e,r){let{name:n,canSelfClose:s=!0,normalizeTagName:i=!1,normalizeAttributeName:a=!1,allowHtmComponentClosingTags:u=!1,isTagNameCaseSensitive:o=!1,shouldParseAsRawText:p}=e,{rootNodes:l,errors:f}=Nr(t,{canSelfClose:s,allowHtmComponentClosingTags:u,isTagNameCaseSensitive:o,getTagContentType:p?(...c)=>p(...c)?L.RAW_TEXT:void 0:void 0});if(n==="vue"){if(l.some(b=>b.type==="docType"&&b.value==="html"||b.type==="element"&&b.name.toLowerCase()==="html"))return ks(t,Ls,r);let g,y=()=>g??(g=Nr(t,{canSelfClose:s,allowHtmComponentClosingTags:u,isTagNameCaseSensitive:o})),I=b=>y().rootNodes.find(({startSourceSpan:$})=>$&&$.start.offset===b.startSourceSpan.start.offset)??b;for(let[b,$]of l.entries()){let{endSourceSpan:$r,startSourceSpan:Is}=$;if($r===null)f=y().errors,l[b]=I($);else if(au($,r)){let Mr=y().errors.find(Or=>Or.span.start.offset>Is.start.offset&&Or.span.start.offset<$r.end.offset);Mr&&xs(Mr),l[b]=I($)}}}f.length>0&&xs(f[0]);let d=c=>{let g=c.name.startsWith(":")?c.name.slice(1).split(":")[0]:null,y=c.nameSpan.toString(),I=g!==null&&y.startsWith(`${g}:`),b=I?y.slice(g.length+1):y;c.name=b,c.namespace=g,c.hasExplicitNamespace=I},C=c=>{switch(c.type){case"element":d(c);for(let g of c.attrs)d(g),g.valueSpan?(g.value=g.valueSpan.toString(),/["']/.test(g.value[0])&&(g.value=g.value.slice(1,-1))):g.value=null;break;case"comment":c.value=c.sourceSpan.toString().slice(4,-3);break;case"text":c.value=c.sourceSpan.toString();break}},E=(c,g)=>{let y=c.toLowerCase();return g(y)?y:c},A=c=>{if(c.type==="element"&&(i&&(!c.namespace||c.namespace===c.tagDefinition.implicitNamespacePrefix||pe(c))&&(c.name=E(c.name,g=>bs.has(g))),a))for(let g of c.attrs)g.namespace||(g.name=E(g.name,y=>zt.has(c.name)&&(zt.get("*").has(y)||zt.get(c.name).has(y))))},F=c=>{c.sourceSpan&&c.endSourceSpan&&(c.sourceSpan=new m(c.sourceSpan.start,c.endSourceSpan.end))},T=c=>{if(c.type==="element"){let g=$e(o?c.name:c.name.toLowerCase());!c.namespace||c.namespace===g.implicitNamespacePrefix||pe(c)?c.tagDefinition=g:c.tagDefinition=$e("")}};return Ot(new class extends rt{visit(c){C(c),T(c),A(c),F(c)}},l),l}function au(t,e){var n;if(t.type!=="element"||t.name!=="template")return!1;let r=(n=t.attrs.find(s=>s.name==="lang"))==null?void 0:n.value;return!r||Le(e,{language:r})==="html"}function xs(t){let{msg:e,span:{start:r,end:n}}=t;throw ys(e,{loc:{start:{line:r.line+1,column:r.col+1},end:{line:n.line+1,column:n.col+1}},cause:t})}function Bs(t,e,r={},n=!0){let{frontMatter:s,content:i}=n?vs(t):{frontMatter:null,content:t},a=new me(t,r.filepath),u=new ee(a,0,0,0),o=u.moveBy(t.length),p={type:"root",sourceSpan:new m(u,o),children:ks(i,e,r)};if(s){let d=new ee(a,0,0,0),C=d.moveBy(s.raw.length);s.sourceSpan=new m(d,C),p.children.unshift(s)}let l=new Kt(p),f=(d,C)=>{let{offset:E}=C,A=v(!1,t.slice(0,E),/[^\n\r]/g," "),T=Bs(A+d,e,r,!1);T.sourceSpan=new m(C,ke(!1,T.children,-1).sourceSpan.end);let c=T.children[0];return c.length===E?T.children.shift():(c.sourceSpan=new m(c.sourceSpan.start.moveBy(E),c.sourceSpan.end),c.value=c.value.slice(E)),T};return l.walk(d=>{if(d.type==="comment"){let C=Ts(d,f);C&&d.parent.replaceChild(d,C)}}),l}function Qt(t){return{parse:(e,r)=>Bs(e,t,r),hasPragma:Bn,astFormat:"html",locStart:te,locEnd:re}}var Ls={name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0},uu=Qt(Ls),ou=Qt({name:"angular"}),lu=Qt({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(t,e,r,n){return t.toLowerCase()!=="html"&&!r&&(t!=="template"||n.some(({name:s,value:i})=>s==="lang"&&i!=="html"&&i!==""&&i!==void 0))}}),cu=Qt({name:"lwc",canSelfClose:!1});var Fs=[{linguistLanguageId:146,name:"Angular",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".component.html"],parsers:["angular"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:146,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml",".mjml"],parsers:["html"],vscodeLanguageIds:["html"]},{linguistLanguageId:146,name:"Lightning Web Components",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[],parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:391,name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"]}];var Rr={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Ps="HTML",pu={bracketSameLine:Rr.bracketSameLine,htmlWhitespaceSensitivity:{category:Ps,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:Rr.singleAttributePerLine,vueIndentScriptAndStyle:{category:Ps,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},Ns=pu;var hu={html:ns};return qs(fu);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/html.mjs b/node_modules/prettier/plugins/html.mjs index 8cea45a..ede874e 100644 --- a/node_modules/prettier/plugins/html.mjs +++ b/node_modules/prettier/plugins/html.mjs @@ -1,19 +1,19 @@ -var Ps=Object.defineProperty;var qr=(t,e)=>{for(var r in e)Ps(t,r,{get:e[r],enumerable:!0})};var Hr=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var z=(t,e,r)=>(Hr(t,e,"read from private field"),r?r.call(t):e.get(t)),Vr=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},Ur=(t,e,r,n)=>(Hr(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);var Rr={};qr(Rr,{languages:()=>Bs,options:()=>Fs,parsers:()=>Qt,printers:()=>iu});var Is=(t,e,r,n)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(r,n):r.global?e.replace(r,n):e.split(r).join(n)},v=Is;var Ae="string",_e="array",De="cursor",ne="indent",se="align",ve="trim",X="group",ie="fill",ae="if-break",ue="indent-if-break",ye="line-suffix",be="line-suffix-boundary",V="line",we="label",oe="break-parent",lt=new Set([De,ne,se,ve,X,ie,ae,ue,ye,be,V,we,oe]);function Rs(t){if(typeof t=="string")return Ae;if(Array.isArray(t))return _e;if(!t)return;let{type:e}=t;if(lt.has(e))return e}var Te=Rs;var $s=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function Ms(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', -Expected it to be 'string' or 'object'.`;if(Te(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=$s([...lt].map(s=>`'${s}'`));return`Unexpected doc.type '${t.type}'. -Expected it to be ${n}.`}var Jt=class extends Error{name="InvalidDocError";constructor(e){super(Ms(e)),this.doc=e}},ct=Jt;var Wr=()=>{},Q=Wr,pt=Wr;function U(t){return Q(t),{type:ne,contents:t}}function Gr(t,e){return Q(e),{type:se,contents:e,n:t}}function D(t,e={}){return Q(t),pt(e.expandedStates,!0),{type:X,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function zr(t){return Gr(Number.NEGATIVE_INFINITY,t)}function Yr(t){return Gr({type:"root"},t)}function ht(t){return pt(t),{type:ie,parts:t}}function le(t,e="",r={}){return Q(t),e!==""&&Q(e),{type:ae,breakContents:t,flatContents:e,groupId:r.groupId}}function jr(t,e){return Q(t),{type:ue,contents:t,groupId:e.groupId,negate:e.negate}}var J={type:oe};var Os={type:V,hard:!0},qs={type:V,hard:!0,literal:!0},_={type:V},x={type:V,soft:!0},S=[Os,J],Kr=[qs,J];function Z(t,e){Q(t),pt(e);let r=[];for(let n=0;n{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[r<0?e.length+r:r]:e.at(r)},xe=Hs;function ft(t,e){if(typeof t=="string")return e(t);let r=new Map;return n(t);function n(i){if(r.has(i))return r.get(i);let a=s(i);return r.set(i,a),a}function s(i){switch(Te(i)){case _e:return e(i.map(n));case ie:return e({...i,parts:i.parts.map(n)});case ae:return e({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case X:{let{expandedStates:a,contents:u}=i;return a?(a=a.map(n),u=a[0]):u=n(u),e({...i,contents:u,expandedStates:a})}case se:case ne:case ue:case we:case ye:return e({...i,contents:n(i.contents)});case Ae:case De:case ve:case be:case V:case oe:return e(i);default:throw new ct(i)}}}function Vs(t){switch(Te(t)){case ie:if(t.parts.every(e=>e===""))return"";break;case X:if(!t.contents&&!t.id&&!t.break&&!t.expandedStates)return"";if(t.contents.type===X&&t.contents.id===t.id&&t.contents.break===t.break&&t.contents.expandedStates===t.expandedStates)return t.contents;break;case se:case ne:case ue:case ye:if(!t.contents)return"";break;case ae:if(!t.flatContents&&!t.breakContents)return"";break;case _e:{let e=[];for(let r of t){if(!r)continue;let[n,...s]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof xe(!1,e,-1)=="string"?e[e.length-1]+=n:e.push(n),e.push(...s)}return e.length===0?"":e.length===1?e[0]:e}case Ae:case De:case ve:case be:case V:case we:case oe:break;default:throw new ct(t)}return t}function Xr(t){return ft(t,e=>Vs(e))}function T(t,e=Kr){return ft(t,r=>typeof r=="string"?Z(e,r.split(` -`)):r)}var Zt=class extends Error{name="UnexpectedNodeError";constructor(e,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},Qr=Zt;var mt="'",Jr='"';function Us(t,e){let r=e===!0||e===mt?mt:Jr,n=r===mt?Jr:mt,s=0,i=0;for(let a of t)a===r?s++:a===n&&i++;return s>i?n:r}var Zr=Us;function Ws(t){return(t==null?void 0:t.type)==="front-matter"}var ke=Ws;var Gs=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens"]);function en(t,e){if(t.type==="text"||t.type==="comment"||ke(t)||t.type==="yaml"||t.type==="toml")return null;t.type==="attribute"&&delete e.value,t.type==="docType"&&delete e.value}en.ignoredProperties=Gs;var tn=en;var zs=t=>t.split(/[/\\]/).pop();function rn(t,e){if(!e)return;let r=zs(e).toLowerCase();return t.find(n=>{var s,i;return((s=n.extensions)==null?void 0:s.some(a=>r.endsWith(a)))||((i=n.filenames)==null?void 0:i.some(a=>a.toLowerCase()===r))})}function Ys(t,e){if(e)return t.find(({name:r})=>r.toLowerCase()===e)??t.find(({aliases:r})=>r==null?void 0:r.includes(e))??t.find(({extensions:r})=>r==null?void 0:r.includes(`.${e}`))}function js(t,e){let r=t.plugins.flatMap(s=>s.languages??[]),n=Ys(r,e.language)??rn(r,e.physicalFile)??rn(r,e.file)??(e.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var Be=js;var nn="inline",sn={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",details:"block",summary:"block",dialog:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block",search:"block"},an="normal",un={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function er(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var R,tr=class{constructor(e){Vr(this,R,void 0);Ur(this,R,new Set(e))}getLeadingWhitespaceCount(e){let r=z(this,R),n=0;for(let s=0;s=0&&r.has(e.charAt(s));s--)n++;return n}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return z(this,R).has(e.charAt(0))}hasTrailingWhitespace(e){return z(this,R).has(xe(!1,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let n=`[${er([...z(this,R)].join(""))}]+`,s=new RegExp(r?`(${n})`:n);return e.split(s)}hasWhitespaceCharacter(e){let r=z(this,R);return Array.prototype.some.call(e,n=>r.has(n))}hasNonWhitespaceCharacter(e){let r=z(this,R);return Array.prototype.some.call(e,n=>!r.has(n))}isWhitespaceOnly(e){let r=z(this,R);return Array.prototype.every.call(e,n=>r.has(n))}};R=new WeakMap;var on=tr;var Ks=[" ",` -`,"\f","\r"," "],Xs=new on(Ks),Y=Xs;function Qs(t){return t.type==="element"&&!t.hasExplicitNamespace&&!["html","svg"].includes(t.namespace)}var ce=Qs;var Js=t=>v(!1,t,/^[\t\f\r ]*\n/g,""),rr=t=>Js(Y.trimEnd(t)),ln=t=>{let e=t,r=Y.getLeadingWhitespace(e);r&&(e=e.slice(r.length));let n=Y.getTrailingWhitespace(e);return n&&(e=e.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:e}};function dt(t,e){return!!(t.type==="ieConditionalComment"&&t.lastChild&&!t.lastChild.isSelfClosing&&!t.lastChild.endSourceSpan||t.type==="ieConditionalComment"&&!t.complete||pe(t)&&t.children.some(r=>r.type!=="text"&&r.type!=="interpolation")||St(t,e)&&!M(t)&&t.type!=="interpolation")}function He(t){return t.type==="attribute"||!t.parent||!t.prev?!1:Zs(t.prev)}function Zs(t){return t.type==="comment"&&t.value.trim()==="prettier-ignore"}function L(t){return t.type==="text"||t.type==="comment"}function M(t){return t.type==="element"&&(t.fullName==="script"||t.fullName==="style"||t.fullName==="svg:style"||t.fullName==="svg:script"||ce(t)&&(t.name==="script"||t.name==="style"))}function cn(t){return t.children&&!M(t)}function pn(t){return M(t)||t.type==="interpolation"||nr(t)}function nr(t){return Dn(t).startsWith("pre")}function hn(t,e){var s,i;let r=n();if(r&&!t.prev&&((i=(s=t.parent)==null?void 0:s.tagDefinition)!=null&&i.ignoreFirstLf))return t.type==="interpolation";return r;function n(){return ke(t)?!1:(t.type==="text"||t.type==="interpolation")&&t.prev&&(t.prev.type==="text"||t.prev.type==="interpolation")?!0:!t.parent||t.parent.cssDisplay==="none"?!1:pe(t.parent)?!0:!(!t.prev&&(t.parent.type==="root"||pe(t)&&t.parent||M(t.parent)||We(t.parent,e)||!ii(t.parent.cssDisplay))||t.prev&&!oi(t.prev.cssDisplay))}}function fn(t,e){return ke(t)?!1:(t.type==="text"||t.type==="interpolation")&&t.next&&(t.next.type==="text"||t.next.type==="interpolation")?!0:!t.parent||t.parent.cssDisplay==="none"?!1:pe(t.parent)?!0:!(!t.next&&(t.parent.type==="root"||pe(t)&&t.parent||M(t.parent)||We(t.parent,e)||!ai(t.parent.cssDisplay))||t.next&&!ui(t.next.cssDisplay))}function mn(t){return li(t.cssDisplay)&&!M(t)}function Ve(t){return ke(t)||t.next&&t.sourceSpan.end&&t.sourceSpan.end.line+10&&(["body","script","style"].includes(t.name)||t.children.some(e=>ti(e)))||t.firstChild&&t.firstChild===t.lastChild&&t.firstChild.type!=="text"&&Cn(t.firstChild)&&(!t.lastChild.isTrailingSpaceSensitive||Sn(t.lastChild))}function sr(t){return t.type==="element"&&t.children.length>0&&(["html","head","ul","ol","select"].includes(t.name)||t.cssDisplay.startsWith("table")&&t.cssDisplay!=="table-cell")}function gt(t){return En(t)||t.prev&&ei(t.prev)||gn(t)}function ei(t){return En(t)||t.type==="element"&&t.fullName==="br"||gn(t)}function gn(t){return Cn(t)&&Sn(t)}function Cn(t){return t.hasLeadingSpaces&&(t.prev?t.prev.sourceSpan.end.linet.sourceSpan.end.line:t.parent.type==="root"||t.parent.endSourceSpan&&t.parent.endSourceSpan.start.line>t.sourceSpan.end.line)}function En(t){switch(t.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(t.name)}return!1}function Ct(t){return t.lastChild?Ct(t.lastChild):t}function ti(t){var e;return(e=t.children)==null?void 0:e.some(r=>r.type!=="text")}function An(t){if(t)switch(t){case"module":case"text/javascript":case"text/babel":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(t.endsWith("json")||t.endsWith("importmap")||t==="speculationrules")return"json"}}function ri(t,e){let{name:r,attrMap:n}=t;if(r!=="script"||Object.prototype.hasOwnProperty.call(n,"src"))return;let{type:s,lang:i}=t.attrMap;return!i&&!s?"babel":Be(e,{language:i})??An(s)}function ni(t,e){if(!St(t,e))return;let{attrMap:r}=t;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:s}=r;return Be(e,{language:s})??An(n)}function si(t,e){if(t.name!=="style")return;let{lang:r}=t.attrMap;return r?Be(e,{language:r}):"css"}function ir(t,e){return ri(t,e)??si(t,e)??ni(t,e)}function Ue(t){return t==="block"||t==="list-item"||t.startsWith("table")}function ii(t){return!Ue(t)&&t!=="inline-block"}function ai(t){return!Ue(t)&&t!=="inline-block"}function ui(t){return!Ue(t)}function oi(t){return!Ue(t)}function li(t){return!Ue(t)&&t!=="inline-block"}function pe(t){return Dn(t).startsWith("pre")}function ci(t,e){let r=t;for(;r;){if(e(r))return!0;r=r.parent}return!1}function _n(t,e){var n;if(he(t,e))return"block";if(((n=t.prev)==null?void 0:n.type)==="comment"){let s=t.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(s)return s[1]}let r=!1;if(t.type==="element"&&t.namespace==="svg")if(ci(t,s=>s.fullName==="svg:foreignObject"))r=!0;else return t.name==="svg"?"inline-block":"block";switch(e.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return t.type==="element"&&(!t.namespace||r||ce(t))&&sn[t.name]||nn}}function Dn(t){return t.type==="element"&&(!t.namespace||ce(t))&&un[t.name]||an}function pi(t){let e=Number.POSITIVE_INFINITY;for(let r of t.split(` -`)){if(r.length===0)continue;let n=Y.getLeadingWhitespaceCount(r);if(n===0)return 0;r.length!==n&&n{for(var r in e)Rs(t,r,{get:e[r],enumerable:!0})};var Hr=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var Y=(t,e,r)=>(Hr(t,e,"read from private field"),r?r.call(t):e.get(t)),Vr=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},Ur=(t,e,r,n)=>(Hr(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);var Rr={};qr(Rr,{languages:()=>Fs,options:()=>Ns,parsers:()=>Nr,printers:()=>ou});var $s=(t,e,r,n)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(r,n):r.global?e.replace(r,n):e.split(r).join(n)},v=$s;var _e="string",De="array",ve="cursor",se="indent",ie="align",ye="trim",Q="group",ae="fill",ue="if-break",oe="indent-if-break",be="line-suffix",we="line-suffix-boundary",V="line",Te="label",le="break-parent",ot=new Set([ve,se,ie,ye,Q,ae,ue,oe,be,we,V,Te,le]);function Ms(t){if(typeof t=="string")return _e;if(Array.isArray(t))return De;if(!t)return;let{type:e}=t;if(ot.has(e))return e}var xe=Ms;var Os=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function qs(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', +Expected it to be 'string' or 'object'.`;if(xe(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=Os([...ot].map(s=>`'${s}'`));return`Unexpected doc.type '${t.type}'. +Expected it to be ${n}.`}var Xt=class extends Error{name="InvalidDocError";constructor(e){super(qs(e)),this.doc=e}},lt=Xt;var Wr=()=>{},X=Wr,ct=Wr;function U(t){return X(t),{type:se,contents:t}}function Gr(t,e){return X(e),{type:ie,contents:e,n:t}}function D(t,e={}){return X(t),ct(e.expandedStates,!0),{type:Q,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function Yr(t){return Gr(Number.NEGATIVE_INFINITY,t)}function zr(t){return Gr({type:"root"},t)}function pt(t){return ct(t),{type:ae,parts:t}}function ce(t,e="",r={}){return X(t),e!==""&&X(e),{type:ue,breakContents:t,flatContents:e,groupId:r.groupId}}function jr(t,e){return X(t),{type:oe,contents:t,groupId:e.groupId,negate:e.negate}}var J={type:le};var Hs={type:V,hard:!0},Vs={type:V,hard:!0,literal:!0},_={type:V},x={type:V,soft:!0},S=[Hs,J],Kr=[Vs,J];function Z(t,e){X(t),ct(e);let r=[];for(let n=0;n{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[r<0?e.length+r:r]:e.at(r)},ke=Us;function ht(t,e){if(typeof t=="string")return e(t);let r=new Map;return n(t);function n(i){if(r.has(i))return r.get(i);let a=s(i);return r.set(i,a),a}function s(i){switch(xe(i)){case De:return e(i.map(n));case ae:return e({...i,parts:i.parts.map(n)});case ue:return e({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case Q:{let{expandedStates:a,contents:u}=i;return a?(a=a.map(n),u=a[0]):u=n(u),e({...i,contents:u,expandedStates:a})}case ie:case se:case oe:case Te:case be:return e({...i,contents:n(i.contents)});case _e:case ve:case ye:case we:case V:case le:return e(i);default:throw new lt(i)}}}function Ws(t){switch(xe(t)){case ae:if(t.parts.every(e=>e===""))return"";break;case Q:if(!t.contents&&!t.id&&!t.break&&!t.expandedStates)return"";if(t.contents.type===Q&&t.contents.id===t.id&&t.contents.break===t.break&&t.contents.expandedStates===t.expandedStates)return t.contents;break;case ie:case se:case oe:case be:if(!t.contents)return"";break;case ue:if(!t.flatContents&&!t.breakContents)return"";break;case De:{let e=[];for(let r of t){if(!r)continue;let[n,...s]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof ke(!1,e,-1)=="string"?e[e.length-1]+=n:e.push(n),e.push(...s)}return e.length===0?"":e.length===1?e[0]:e}case _e:case ve:case ye:case we:case V:case Te:case le:break;default:throw new lt(t)}return t}function Qr(t){return ht(t,e=>Ws(e))}function w(t,e=Kr){return ht(t,r=>typeof r=="string"?Z(e,r.split(` +`)):r)}var Jt=class extends Error{name="UnexpectedNodeError";constructor(e,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},Xr=Jt;var ft="'",Jr='"';function Gs(t,e){let r=e===!0||e===ft?ft:Jr,n=r===ft?Jr:ft,s=0,i=0;for(let a of t)a===r?s++:a===n&&i++;return s>i?n:r}var Zr=Gs;function Ys(t){return(t==null?void 0:t.type)==="front-matter"}var Be=Ys;var zs=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens"]);function en(t,e){if(t.type==="text"||t.type==="comment"||Be(t)||t.type==="yaml"||t.type==="toml")return null;t.type==="attribute"&&delete e.value,t.type==="docType"&&delete e.value}en.ignoredProperties=zs;var tn=en;var js=t=>t.split(/[/\\]/).pop();function rn(t,e){if(!e)return;let r=js(e).toLowerCase();return t.find(n=>{var s,i;return((s=n.extensions)==null?void 0:s.some(a=>r.endsWith(a)))||((i=n.filenames)==null?void 0:i.some(a=>a.toLowerCase()===r))})}function Ks(t,e){if(e)return t.find(({name:r})=>r.toLowerCase()===e)??t.find(({aliases:r})=>r==null?void 0:r.includes(e))??t.find(({extensions:r})=>r==null?void 0:r.includes(`.${e}`))}function Qs(t,e){let r=t.plugins.flatMap(s=>s.languages??[]),n=Ks(r,e.language)??rn(r,e.physicalFile)??rn(r,e.file)??(e.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var Le=Qs;var nn="inline",sn={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",details:"block",summary:"block",dialog:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block",search:"block"},an="normal",un={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function Zt(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var R,er=class{constructor(e){Vr(this,R,void 0);Ur(this,R,new Set(e))}getLeadingWhitespaceCount(e){let r=Y(this,R),n=0;for(let s=0;s=0&&r.has(e.charAt(s));s--)n++;return n}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return Y(this,R).has(e.charAt(0))}hasTrailingWhitespace(e){return Y(this,R).has(ke(!1,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let n=`[${Zt([...Y(this,R)].join(""))}]+`,s=new RegExp(r?`(${n})`:n);return e.split(s)}hasWhitespaceCharacter(e){let r=Y(this,R);return Array.prototype.some.call(e,n=>r.has(n))}hasNonWhitespaceCharacter(e){let r=Y(this,R);return Array.prototype.some.call(e,n=>!r.has(n))}isWhitespaceOnly(e){let r=Y(this,R);return Array.prototype.every.call(e,n=>r.has(n))}};R=new WeakMap;var on=er;var Xs=[" ",` +`,"\f","\r"," "],Js=new on(Xs),z=Js;function Zs(t){return t.type==="element"&&!t.hasExplicitNamespace&&!["html","svg"].includes(t.namespace)}var pe=Zs;var ei=t=>v(!1,t,/^[\t\f\r ]*\n/g,""),tr=t=>ei(z.trimEnd(t)),ln=t=>{let e=t,r=z.getLeadingWhitespace(e);r&&(e=e.slice(r.length));let n=z.getTrailingWhitespace(e);return n&&(e=e.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:e}};function mt(t,e){return!!(t.type==="ieConditionalComment"&&t.lastChild&&!t.lastChild.isSelfClosing&&!t.lastChild.endSourceSpan||t.type==="ieConditionalComment"&&!t.complete||he(t)&&t.children.some(r=>r.type!=="text"&&r.type!=="interpolation")||Ct(t,e)&&!M(t)&&t.type!=="interpolation")}function He(t){return t.type==="attribute"||!t.parent||!t.prev?!1:ti(t.prev)}function ti(t){return t.type==="comment"&&t.value.trim()==="prettier-ignore"}function P(t){return t.type==="text"||t.type==="comment"}function M(t){return t.type==="element"&&(t.fullName==="script"||t.fullName==="style"||t.fullName==="svg:style"||t.fullName==="svg:script"||pe(t)&&(t.name==="script"||t.name==="style"))}function cn(t){return t.children&&!M(t)}function pn(t){return M(t)||t.type==="interpolation"||rr(t)}function rr(t){return Dn(t).startsWith("pre")}function hn(t,e){var s,i;let r=n();if(r&&!t.prev&&((i=(s=t.parent)==null?void 0:s.tagDefinition)!=null&&i.ignoreFirstLf))return t.type==="interpolation";return r;function n(){return Be(t)?!1:(t.type==="text"||t.type==="interpolation")&&t.prev&&(t.prev.type==="text"||t.prev.type==="interpolation")?!0:!t.parent||t.parent.cssDisplay==="none"?!1:he(t.parent)?!0:!(!t.prev&&(t.parent.type==="root"||he(t)&&t.parent||M(t.parent)||We(t.parent,e)||!ui(t.parent.cssDisplay))||t.prev&&!ci(t.prev.cssDisplay))}}function fn(t,e){return Be(t)?!1:(t.type==="text"||t.type==="interpolation")&&t.next&&(t.next.type==="text"||t.next.type==="interpolation")?!0:!t.parent||t.parent.cssDisplay==="none"?!1:he(t.parent)?!0:!(!t.next&&(t.parent.type==="root"||he(t)&&t.parent||M(t.parent)||We(t.parent,e)||!oi(t.parent.cssDisplay))||t.next&&!li(t.next.cssDisplay))}function mn(t){return pi(t.cssDisplay)&&!M(t)}function Ve(t){return Be(t)||t.next&&t.sourceSpan.end&&t.sourceSpan.end.line+10&&(["body","script","style"].includes(t.name)||t.children.some(e=>ni(e)))||t.firstChild&&t.firstChild===t.lastChild&&t.firstChild.type!=="text"&&Cn(t.firstChild)&&(!t.lastChild.isTrailingSpaceSensitive||Sn(t.lastChild))}function nr(t){return t.type==="element"&&t.children.length>0&&(["html","head","ul","ol","select"].includes(t.name)||t.cssDisplay.startsWith("table")&&t.cssDisplay!=="table-cell")}function dt(t){return En(t)||t.prev&&ri(t.prev)||gn(t)}function ri(t){return En(t)||t.type==="element"&&t.fullName==="br"||gn(t)}function gn(t){return Cn(t)&&Sn(t)}function Cn(t){return t.hasLeadingSpaces&&(t.prev?t.prev.sourceSpan.end.linet.sourceSpan.end.line:t.parent.type==="root"||t.parent.endSourceSpan&&t.parent.endSourceSpan.start.line>t.sourceSpan.end.line)}function En(t){switch(t.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(t.name)}return!1}function gt(t){return t.lastChild?gt(t.lastChild):t}function ni(t){var e;return(e=t.children)==null?void 0:e.some(r=>r.type!=="text")}function An(t){if(t)switch(t){case"module":case"text/javascript":case"text/babel":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(t.endsWith("json")||t.endsWith("importmap")||t==="speculationrules")return"json"}}function si(t,e){let{name:r,attrMap:n}=t;if(r!=="script"||Object.prototype.hasOwnProperty.call(n,"src"))return;let{type:s,lang:i}=t.attrMap;return!i&&!s?"babel":Le(e,{language:i})??An(s)}function ii(t,e){if(!Ct(t,e))return;let{attrMap:r}=t;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:s}=r;return Le(e,{language:s})??An(n)}function ai(t,e){if(t.name!=="style")return;let{lang:r}=t.attrMap;return r?Le(e,{language:r}):"css"}function sr(t,e){return si(t,e)??ai(t,e)??ii(t,e)}function Ue(t){return t==="block"||t==="list-item"||t.startsWith("table")}function ui(t){return!Ue(t)&&t!=="inline-block"}function oi(t){return!Ue(t)&&t!=="inline-block"}function li(t){return!Ue(t)}function ci(t){return!Ue(t)}function pi(t){return!Ue(t)&&t!=="inline-block"}function he(t){return Dn(t).startsWith("pre")}function hi(t,e){let r=t;for(;r;){if(e(r))return!0;r=r.parent}return!1}function _n(t,e){var n;if(fe(t,e))return"block";if(((n=t.prev)==null?void 0:n.type)==="comment"){let s=t.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(s)return s[1]}let r=!1;if(t.type==="element"&&t.namespace==="svg")if(hi(t,s=>s.fullName==="svg:foreignObject"))r=!0;else return t.name==="svg"?"inline-block":"block";switch(e.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return t.type==="element"&&(!t.namespace||r||pe(t))&&sn[t.name]||nn}}function Dn(t){return t.type==="element"&&(!t.namespace||pe(t))&&un[t.name]||an}function fi(t){let e=Number.POSITIVE_INFINITY;for(let r of t.split(` +`)){if(r.length===0)continue;let n=z.getLeadingWhitespaceCount(r);if(n===0)return 0;r.length!==n&&nr.slice(e)).join(` -`)}function ur(t){return v(!1,v(!1,t,"'","'"),""",'"')}function N(t){return ur(t.value)}var hi=new Set(["template","style","script"]);function We(t,e){return he(t,e)&&!hi.has(t.fullName)}function he(t,e){return e.parser==="vue"&&t.type==="element"&&t.parent.type==="root"&&t.fullName.toLowerCase()!=="html"}function St(t,e){return he(t,e)&&(We(t,e)||t.attrMap.lang&&t.attrMap.lang!=="html")}function vn(t){let e=t.fullName;return e.charAt(0)==="#"||e==="slot-scope"||e==="v-slot"||e.startsWith("v-slot:")}function yn(t,e){let r=t.parent;if(!he(r,e))return!1;let n=r.fullName,s=t.fullName;return n==="script"&&s==="setup"||n==="style"&&s==="vars"}function Et(t,e=t.value){return t.parent.isWhitespaceSensitive?t.parent.isIndentationSensitive?T(e):T(ar(rr(e)),S):Z(_,Y.split(e))}function bn(t,e){return he(t,e)&&t.name==="script"}function or(t){return t>=9&&t<=32||t==160}function fi(t){return 48<=t&&t<=57}function lr(t){return t>=97&&t<=122||t>=65&&t<=90}function wn(t){return t>=97&&t<=102||t>=65&&t<=70||fi(t)}function cr(t){return t===10||t===13}function pr(t){return 48<=t&&t<=55}function Tn(t){return t===39||t===34||t===96}var mi=/-+([a-z0-9])/g;function kn(t){return t.replace(mi,(...e)=>e[1].toUpperCase())}var ee=class t{constructor(e,r,n,s){this.file=e,this.offset=r,this.line=n,this.col=s}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let r=this.file.content,n=r.length,s=this.offset,i=this.line,a=this.col;for(;s>0&&e<0;)if(s--,e++,r.charCodeAt(s)==10){i--;let o=r.substring(0,s-1).lastIndexOf(String.fromCharCode(10));a=o>0?s-o:s}else a--;for(;s0;){let u=r.charCodeAt(s);s++,e--,u==10?(i++,a=0):a++}return new t(this.file,s,i,a)}getContext(e,r){let n=this.file.content,s=this.offset;if(s!=null){s>n.length-1&&(s=n.length-1);let i=s,a=0,u=0;for(;a0&&(s--,a++,!(n[s]==` +`)}function ar(t){return v(!1,v(!1,t,"'","'"),""",'"')}function k(t){return ar(t.value)}var mi=new Set(["template","style","script"]);function We(t,e){return fe(t,e)&&!mi.has(t.fullName)}function fe(t,e){return e.parser==="vue"&&t.type==="element"&&t.parent.type==="root"&&t.fullName.toLowerCase()!=="html"}function Ct(t,e){return fe(t,e)&&(We(t,e)||t.attrMap.lang&&t.attrMap.lang!=="html")}function vn(t){let e=t.fullName;return e.charAt(0)==="#"||e==="slot-scope"||e==="v-slot"||e.startsWith("v-slot:")}function yn(t,e){let r=t.parent;if(!fe(r,e))return!1;let n=r.fullName,s=t.fullName;return n==="script"&&s==="setup"||n==="style"&&s==="vars"}function St(t,e=t.value){return t.parent.isWhitespaceSensitive?t.parent.isIndentationSensitive?w(e):w(ir(tr(e)),S):Z(_,z.split(e))}function Et(t,e){return fe(t,e)&&t.name==="script"}function ur(t){return t>=9&&t<=32||t==160}function di(t){return 48<=t&&t<=57}function or(t){return t>=97&&t<=122||t>=65&&t<=90}function bn(t){return t>=97&&t<=102||t>=65&&t<=70||di(t)}function lr(t){return t===10||t===13}function cr(t){return 48<=t&&t<=55}function wn(t){return t===39||t===34||t===96}var gi=/-+([a-z0-9])/g;function xn(t){return t.replace(gi,(...e)=>e[1].toUpperCase())}var ee=class t{constructor(e,r,n,s){this.file=e,this.offset=r,this.line=n,this.col=s}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let r=this.file.content,n=r.length,s=this.offset,i=this.line,a=this.col;for(;s>0&&e<0;)if(s--,e++,r.charCodeAt(s)==10){i--;let o=r.substring(0,s-1).lastIndexOf(String.fromCharCode(10));a=o>0?s-o:s}else a--;for(;s0;){let u=r.charCodeAt(s);s++,e--,u==10?(i++,a=0):a++}return new t(this.file,s,i,a)}getContext(e,r){let n=this.file.content,s=this.offset;if(s!=null){s>n.length-1&&(s=n.length-1);let i=s,a=0,u=0;for(;a0&&(s--,a++,!(n[s]==` `&&++u==r)););for(a=0,u=0;a]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}};var di=[Ci,Si,Ai,Di,vi,wi,yi,bi,Ti,_i];function gi(t,e){for(let r of di)r(t,e);return t}function Ci(t){t.walk(e=>{if(e.type==="element"&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&e.children[0].type==="text"&&e.children[0].value[0]===` -`){let r=e.children[0];r.value.length===1?e.removeChild(r):r.value=r.value.slice(1)}})}function Si(t){let e=r=>{var n,s;return r.type==="element"&&((n=r.prev)==null?void 0:n.type)==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&((s=r.firstChild)==null?void 0:s.type)==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset};t.walk(r=>{if(r.children)for(let n=0;n{if(n.children)for(let s=0;se.type==="cdata",e=>``)}function _i(t){let e=r=>{var n,s;return r.type==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.type==="text"&&!Y.hasWhitespaceCharacter(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&((n=r.prev)==null?void 0:n.type)==="text"&&((s=r.next)==null?void 0:s.type)==="text"};t.walk(r=>{if(r.children)for(let n=0;n`+s.firstChild.value+``+a.value,i.sourceSpan=new m(i.sourceSpan.start,a.sourceSpan.end),i.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,i.hasTrailingSpaces=a.hasTrailingSpaces,r.removeChild(s),n--,r.removeChild(a)}})}function Di(t,e){if(e.parser==="html")return;let r=/{{(.+?)}}/s;t.walk(n=>{if(cn(n))for(let s of n.children){if(s.type!=="text")continue;let i=s.sourceSpan.start,a=null,u=s.value.split(r);for(let o=0;o0&&n.insertChildBefore(s,{type:"text",value:p,sourceSpan:new m(i,a)});continue}a=i.moveBy(p.length+4),n.insertChildBefore(s,{type:"interpolation",sourceSpan:new m(i,a),children:p.length===0?[]:[{type:"text",value:p,sourceSpan:new m(i.moveBy(2),a.moveBy(-2))}]})}n.removeChild(s)}})}function vi(t){t.walk(e=>{if(!e.children)return;if(e.children.length===0||e.children.length===1&&e.children[0].type==="text"&&Y.trim(e.children[0].value).length===0){e.hasDanglingSpaces=e.children.length>0,e.children=[];return}let r=pn(e),n=nr(e);if(!r)for(let s=0;s{e.isSelfClosing=!e.children||e.type==="element"&&(e.tagDefinition.isVoid||e.endSourceSpan&&e.startSourceSpan.start===e.endSourceSpan.start&&e.startSourceSpan.end===e.endSourceSpan.end)})}function bi(t,e){t.walk(r=>{r.type==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(e.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))})}function wi(t,e){t.walk(r=>{r.cssDisplay=_n(r,e)})}function Ti(t,e){t.walk(r=>{let{children:n}=r;if(n){if(n.length===0){r.isDanglingSpaceSensitive=mn(r);return}for(let s of n)s.isLeadingSpaceSensitive=hn(s,e),s.isTrailingSpaceSensitive=fn(s,e);for(let s=0;s/.test(t)}function Fn(t){return` +`&&++u==r)););return{before:n.substring(s,this.offset),after:n.substring(this.offset,i+1)}}return null}},me=class{constructor(e,r){this.content=e,this.url=r}},m=class{constructor(e,r,n=e,s=null){this.start=e,this.end=r,this.fullStart=n,this.details=s}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},At;(function(t){t[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR"})(At||(At={}));var Pe=class{constructor(e,r,n=At.ERROR){this.span=e,this.msg=r,this.level=n}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${At[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}};var Ci=[Ei,Ai,Di,yi,bi,xi,wi,Ti,ki,vi];function Si(t,e){for(let r of Ci)r(t,e);return t}function Ei(t){t.walk(e=>{if(e.type==="element"&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&e.children[0].type==="text"&&e.children[0].value[0]===` +`){let r=e.children[0];r.value.length===1?e.removeChild(r):r.value=r.value.slice(1)}})}function Ai(t){let e=r=>{var n,s;return r.type==="element"&&((n=r.prev)==null?void 0:n.type)==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&((s=r.firstChild)==null?void 0:s.type)==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset};t.walk(r=>{if(r.children)for(let n=0;n{if(n.children)for(let s=0;se.type==="cdata",e=>``)}function vi(t){let e=r=>{var n,s;return r.type==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.type==="text"&&!z.hasWhitespaceCharacter(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&((n=r.prev)==null?void 0:n.type)==="text"&&((s=r.next)==null?void 0:s.type)==="text"};t.walk(r=>{if(r.children)for(let n=0;n`+s.firstChild.value+``+a.value,i.sourceSpan=new m(i.sourceSpan.start,a.sourceSpan.end),i.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,i.hasTrailingSpaces=a.hasTrailingSpaces,r.removeChild(s),n--,r.removeChild(a)}})}function yi(t,e){if(e.parser==="html")return;let r=/{{(.+?)}}/s;t.walk(n=>{if(cn(n))for(let s of n.children){if(s.type!=="text")continue;let i=s.sourceSpan.start,a=null,u=s.value.split(r);for(let o=0;o0&&n.insertChildBefore(s,{type:"text",value:p,sourceSpan:new m(i,a)});continue}a=i.moveBy(p.length+4),n.insertChildBefore(s,{type:"interpolation",sourceSpan:new m(i,a),children:p.length===0?[]:[{type:"text",value:p,sourceSpan:new m(i.moveBy(2),a.moveBy(-2))}]})}n.removeChild(s)}})}function bi(t){t.walk(e=>{if(!e.children)return;if(e.children.length===0||e.children.length===1&&e.children[0].type==="text"&&z.trim(e.children[0].value).length===0){e.hasDanglingSpaces=e.children.length>0,e.children=[];return}let r=pn(e),n=rr(e);if(!r)for(let s=0;s{e.isSelfClosing=!e.children||e.type==="element"&&(e.tagDefinition.isVoid||e.endSourceSpan&&e.startSourceSpan.start===e.endSourceSpan.start&&e.startSourceSpan.end===e.endSourceSpan.end)})}function Ti(t,e){t.walk(r=>{r.type==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(e.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))})}function xi(t,e){t.walk(r=>{r.cssDisplay=_n(r,e)})}function ki(t,e){t.walk(r=>{let{children:n}=r;if(n){if(n.length===0){r.isDanglingSpaceSensitive=mn(r);return}for(let s of n)s.isLeadingSpaceSensitive=hn(s,e),s.isTrailingSpaceSensitive=fn(s,e);for(let s=0;s/.test(t)}function Ln(t){return` -`+t}function te(t){return t.sourceSpan.start.offset}function re(t){return t.sourceSpan.end.offset}async function xi(t,e){if(t.lang==="yaml"){let r=t.value.trim(),n=r?await e(r,{parser:"yaml"}):"";return Yr([t.startDelimiter,S,n,n?S:"",t.endDelimiter])}}var Nn=xi;var Ge=()=>{};Ge.ok=Ge;Ge.strictEqual=Ge;var hr=Ge;function ki(t){return Array.isArray(t)&&t.length>0}var Pn=ki;function ze(t,e){return[t.isSelfClosing?"":Bi(t,e),Ye(t,e)]}function Bi(t,e){return t.lastChild&&ge(t.lastChild)?"":[Li(t,e),_t(t,e)]}function Ye(t,e){return(t.next?W(t.next):de(t.parent))?"":[me(t,e),O(t,e)]}function Li(t,e){return de(t)?me(t.lastChild,e):""}function O(t,e){return ge(t)?_t(t.parent,e):je(t)?Dt(t.next):""}function _t(t,e){if(hr(!t.isSelfClosing),In(t,e))return"";switch(t.type){case"ieConditionalComment":return"";case"ieConditionalStartComment":return"]>";case"interpolation":return"}}";case"element":if(t.isSelfClosing)return"/>";default:return">"}}function In(t,e){return!t.isSelfClosing&&!t.endSourceSpan&&(He(t)||dt(t.parent,e))}function W(t){return t.prev&&t.prev.type!=="docType"&&!L(t.prev)&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function de(t){var e;return((e=t.lastChild)==null?void 0:e.isTrailingSpaceSensitive)&&!t.lastChild.hasTrailingSpaces&&!L(Ct(t.lastChild))&&!pe(t)}function ge(t){return!t.next&&!t.hasTrailingSpaces&&t.isTrailingSpaceSensitive&&L(Ct(t))}function je(t){return t.next&&!L(t.next)&&L(t)&&t.isTrailingSpaceSensitive&&!t.hasTrailingSpaces}function Fi(t){let e=t.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return e?e[1]?e[1].split(/\s+/):!0:!1}function Ke(t){return!t.prev&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function Ni(t,e,r){var g;let{node:n}=t;if(!Pn(n.attrs))return n.isSelfClosing?" ":"";let s=((g=n.prev)==null?void 0:g.type)==="comment"&&Fi(n.prev.value),i=typeof s=="boolean"?()=>s:Array.isArray(s)?h=>s.includes(h.rawName):()=>!1,a=t.map(({node:h})=>i(h)?T(e.originalText.slice(te(h),re(h))):r(),"attrs"),u=n.type==="element"&&n.fullName==="script"&&n.attrs.length===1&&n.attrs[0].fullName==="src"&&n.children.length===0,p=e.singleAttributePerLine&&n.attrs.length>1&&!he(n,e)?S:_,c=[U([u?" ":_,Z(p,a)])];return n.firstChild&&Ke(n.firstChild)||n.isSelfClosing&&de(n.parent)||u?c.push(n.isSelfClosing?" ":""):c.push(e.bracketSameLine?n.isSelfClosing?" ":"":n.isSelfClosing?_:x),c}function Pi(t){return t.firstChild&&Ke(t.firstChild)?"":vt(t)}function Xe(t,e,r){let{node:n}=t;return[Qe(n,e),Ni(t,e,r),n.isSelfClosing?"":Pi(n)]}function Qe(t,e){return t.prev&&je(t.prev)?"":[q(t,e),Dt(t)]}function q(t,e){return Ke(t)?vt(t.parent):W(t)?me(t.prev,e):""}function Dt(t){switch(t.type){case"ieConditionalComment":case"ieConditionalStartComment":return`<${t.rawName}`;default:return`<${t.rawName}`}}function vt(t){switch(hr(!t.isSelfClosing),t.type){case"ieConditionalComment":return"]>";case"element":if(t.condition)return">";default:return">"}}var fr=new WeakMap;function Ii(t,e){let{root:r}=t;return fr.has(r)||fr.set(r,r.children.some(n=>bn(n,e)&&["ts","typescript"].includes(n.attrMap.lang))),fr.get(r)}var Ne=Ii;function Ri(t,e){if(!t.endSourceSpan)return"";let r=t.startSourceSpan.end.offset;t.firstChild&&Ke(t.firstChild)&&(r-=vt(t).length);let n=t.endSourceSpan.start.offset;return t.lastChild&&ge(t.lastChild)?n+=_t(t,e).length:de(t)&&(n-=me(t.lastChild,e).length),e.originalText.slice(r,n)}var yt=Ri;function Rn(t){return t===" "||t===` -`||t==="\f"||t==="\r"||t===" "}var $i=/^[ \t\n\r\u000c]+/,Mi=/^[, \t\n\r\u000c]+/,Oi=/^[^ \t\n\r\u000c]+/,qi=/[,]+$/,$n=/^\d+$/,Hi=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function Vi(t){let e=t.length,r,n,s,i,a,u=0,o;function p(C){let E,A=C.exec(t.substring(u));if(A)return[E]=A,u+=E.length,E}let c=[];for(;;){if(p(Mi),u>=e){if(c.length===0)throw new Error("Must contain one or more image candidate strings.");return c}o=u,r=p(Oi),n=[],r.slice(-1)===","?(r=r.replace(qi,""),h()):g()}function g(){for(p($i),s="",i="in descriptor";;){if(a=t.charAt(u),i==="in descriptor")if(Rn(a))s&&(n.push(s),s="",i="after descriptor");else if(a===","){u+=1,s&&n.push(s),h();return}else if(a==="(")s+=a,i="in parens";else if(a===""){s&&n.push(s),h();return}else s+=a;else if(i==="in parens")if(a===")")s+=a,i="in descriptor";else if(a===""){n.push(s),h();return}else s+=a;else if(i==="after descriptor"&&!Rn(a))if(a===""){h();return}else i="in descriptor",u-=1;u+=1}}function h(){let C=!1,E,A,B,y,l={},d,b,I,w,$;for(y=0;y{s=n(a,u)});let i=await e(t,r,e);return s?D(i):Ce(i)}function Ui(t){if(t.node.fullName==="srcset"&&(t.parent.fullName==="img"||t.parent.fullName==="source"))return()=>Wi(N(t.node))}function Wi(t){let e=Mn(t),r=e.some(({width:h})=>h),n=e.some(({height:h})=>h),s=e.some(({density:h})=>h);if(r+n+s>1)throw new Error("Mixed descriptor in srcset is not supported");let i=r?"width":n?"height":"density",a=r?"w":n?"h":"x",u=e.map(h=>h.source.value),o=Math.max(...u.map(h=>h.length)),p=e.map(h=>h[i]?String(h[i].value):""),c=p.map(h=>{let C=h.indexOf(".");return C===-1?h.length:C}),g=Math.max(...c);return Ce(Z([",",_],u.map((h,C)=>{let E=[h],A=p[C];if(A){let B=o-h.length+1,y=g-c[C],l=" ".repeat(B+y);E.push(le(l," "),A+a)}return E})))}var On=Ui;function Gi(t,e){let{node:r}=t,n=N(r);if(r.fullName==="class"&&!e.parentParser&&!n.includes("{{"))return()=>n.trim().split(/\s+/).join(" ")}var qn=Gi;function Hn(t,e){let{node:r}=t,n=N(t.node).trim();if(r.fullName==="style"&&!e.parentParser&&!n.includes("{{"))return async s=>Ce(await s(n,{parser:"css",__isHTMLStyleAttribute:!0}))}async function Vn(t,e,r,n){let s=N(r.node),{left:i,operator:a,right:u}=zi(s),o=Ne(r,n);return[D(await P(`function _(${i}) {}`,t,{parser:o?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",a," ",await P(u,t,{parser:o?"__ts_expression":"__js_expression"})]}function zi(t){let e=/(.*?)\s+(in|of)\s+(.*)/s,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/,n=/^\(|\)$/g,s=t.match(e);if(!s)return;let i={};if(i.for=s[3].trim(),!i.for)return;let a=v(!1,s[1].trim(),n,""),u=a.match(r);u?(i.alias=a.replace(r,""),i.iterator1=u[1].trim(),u[2]&&(i.iterator2=u[2].trim())):i.alias=a;let o=[i.alias,i.iterator1,i.iterator2];if(!o.some((p,c)=>!p&&(c===0||o.slice(c+1).some(Boolean))))return{left:o.filter(Boolean).join(","),operator:s[2],right:i.for}}function Un(t,e,{parseWithTs:r}){return P(`function _(${t}) {}`,e,{parser:r?"babel-ts":"babel",__isVueBindings:!0})}function Wn(t){let e=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/,r=/^[$A-Z_a-z][\w$]*(?:\.[$A-Z_a-z][\w$]*|\['[^']*']|\["[^"]*"]|\[\d+]|\[[$A-Z_a-z][\w$]*])*$/,n=t.trim();return e.test(n)||r.test(n)}function Yi(t,e){if(e.parser!=="vue")return;let{node:r}=t,n=r.fullName;if(n==="v-for")return Vn;let s=N(r),i=Ne(t,e);if(vn(r)||yn(r,e))return a=>Un(s,a,{parseWithTs:i});if(n.startsWith("@")||n.startsWith("v-on:"))return a=>ji(s,a,{parseWithTs:i});if(n.startsWith(":")||n.startsWith("v-bind:"))return a=>Ki(s,a,{parseWithTs:i});if(n.startsWith("v-"))return a=>Gn(s,a,{parseWithTs:i})}function ji(t,e,{parseWithTs:r}){return Wn(t)?Gn(t,e,{parseWithTs:r}):P(t,e,{parser:r?"__vue_ts_event_binding":"__vue_event_binding"},Pe)}function Ki(t,e,{parseWithTs:r}){return P(t,e,{parser:r?"__vue_ts_expression":"__vue_expression"},Pe)}function Gn(t,e,{parseWithTs:r}){return P(t,e,{parser:r?"__ts_expression":"__js_expression"},Pe)}var zn=Yi;var mr=/{{(.+?)}}/s;async function Yn(t,e){let r=[];for(let[n,s]of t.split(mr).entries())if(n%2===0)r.push(T(s));else try{r.push(D(["{{",U([_,await P(s,e,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0,trailingComma:"none"})]),_,"}}"]))}catch{r.push("{{",T(s),"}}")}return r}function dr({parser:t}){return(e,r,n)=>P(N(n.node),e,{parser:t,trailingComma:"none"},Pe)}var Xi=dr({parser:"__ng_action"}),Qi=dr({parser:"__ng_binding"}),Ji=dr({parser:"__ng_directive"});function Zi(t,e){if(e.parser!=="angular")return;let{node:r}=t,n=r.fullName;if(n.startsWith("(")&&n.endsWith(")")||n.startsWith("on-"))return Xi;if(n.startsWith("[")&&n.endsWith("]")||/^bind(?:on)?-/.test(n)||/^ng-(?:if|show|hide|class|style)$/.test(n))return Qi;if(n.startsWith("*"))return Ji;let s=N(r);if(/^i18n(?:-.+)?$/.test(n))return()=>Ce(ht(Et(r,s.trim())),!s.includes("@@"));if(mr.test(s))return i=>Yn(s,i)}var jn=Zi;function ea(t,e){let{node:r}=t;if(r.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(e.originalText.slice(r.valueSpan.start.offset,r.valueSpan.end.offset))||e.parser==="lwc"&&r.value.startsWith("{")&&r.value.endsWith("}"))return[r.rawName,"=",r.value];for(let n of[On,Hn,qn,zn,jn]){let s=n(t,e);if(s)return ta(s)}}}function ta(t){return async(e,r,n,s)=>{let i=await t(e,r,n,s);if(i)return i=ft(i,a=>typeof a=="string"?v(!1,a,'"',"""):a),[n.node.rawName,'="',D(i),'"']}}var Kn=ea;function ra(t,e){let{node:r}=t;switch(r.type){case"element":if(M(r)||r.type==="interpolation")return;if(!r.isSelfClosing&&St(r,e)){let n=ir(r,e);return n?async(s,i)=>{let a=yt(r,e),u=/^\s*$/.test(a),o="";return u||(o=await s(rr(a),{parser:n,__embeddedInHtml:!0}),u=o===""),[q(r,e),D(Xe(t,e,i)),u?"":S,o,u?"":S,ze(r,e),O(r,e)]}:void 0}break;case"text":if(M(r.parent)){let n=ir(r.parent,e);if(n)return async s=>{let i=n==="markdown"?ar(r.value.replace(/^[^\S\n]*\n/,"")):r.value,a={parser:n,__embeddedInHtml:!0};if(e.parser==="html"&&n==="babel"){let u="script",{attrMap:o}=r.parent;o&&(o.type==="module"||o.type==="text/babel"&&o["data-type"]==="module")&&(u="module"),a.__babelSourceType=u}return[J,q(r,e),await s(i,a,{stripTrailingHardline:!0}),O(r,e)]}}else if(r.parent.type==="interpolation")return async n=>{let s={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return e.parser==="angular"?(s.parser="__ng_interpolation",s.trailingComma="none"):e.parser==="vue"?s.parser=Ne(t,e)?"__vue_ts_expression":"__vue_expression":s.parser="__js_expression",[U([_,await n(r.value,s)]),r.parent.next&&W(r.parent.next)?" ":_]};break;case"attribute":return Kn(t,e);case"front-matter":return n=>Nn(r,n)}}var Xn=ra;function Je(t,e,r){let n=t.node;return He(n)?[q(n,e),T(e.originalText.slice(te(n)+(n.prev&&je(n.prev)?Dt(n).length:0),re(n)-(n.next&&W(n.next)?me(n,e).length:0))),O(n,e)]:r()}function bt(t,e){return L(t)&&L(e)?t.isTrailingSpaceSensitive?t.hasTrailingSpaces?gt(e)?S:_:"":gt(e)?S:x:je(t)&&(He(e)||e.firstChild||e.isSelfClosing||e.type==="element"&&e.attrs.length>0)||t.type==="element"&&t.isSelfClosing&&W(e)?"":!e.isLeadingSpaceSensitive||gt(e)||W(e)&&t.lastChild&&ge(t.lastChild)&&t.lastChild.lastChild&&ge(t.lastChild.lastChild)?S:e.hasLeadingSpaces?_:x}function wt(t,e,r){let{node:n}=t;if(sr(n))return[J,...t.map(i=>{let a=i.node,u=a.prev?bt(a.prev,a):"";return[u?[u,Ve(a.prev)?S:""]:"",Je(i,e,r)]},"children")];let s=n.children.map(()=>Symbol(""));return t.map((i,a)=>{let u=i.node;if(L(u)){if(u.prev&&L(u.prev)){let E=bt(u.prev,u);if(E)return Ve(u.prev)?[S,S,Je(i,e,r)]:[E,Je(i,e,r)]}return Je(i,e,r)}let o=[],p=[],c=[],g=[],h=u.prev?bt(u.prev,u):"",C=u.next?bt(u,u.next):"";return h&&(Ve(u.prev)?o.push(S,S):h===S?o.push(S):L(u.prev)?p.push(h):p.push(le("",x,{groupId:s[a-1]}))),C&&(Ve(u)?L(u.next)&&g.push(S,S):C===S?L(u.next)&&g.push(S):c.push(C)),[...o,D([...p,D([Je(i,e,r),...c],{id:s[a]})]),...g]},"children")}function Qn(t,e,r){let{node:n}=t;if(dt(n,e))return[q(n,e),D(Xe(t,e,r)),T(yt(n,e)),...ze(n,e),O(n,e)];let s=n.children.length===1&&n.firstChild.type==="interpolation"&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,i=Symbol("element-attr-group-id"),a=c=>D([D(Xe(t,e,r),{id:i}),c,ze(n,e)]),u=c=>s?jr(c,{groupId:i}):(M(n)||We(n,e))&&n.parent.type==="root"&&e.parser==="vue"&&!e.vueIndentScriptAndStyle?c:U(c),o=()=>s?le(x,"",{groupId:i}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?_:n.firstChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?zr(x):x,p=()=>(n.next?W(n.next):de(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":s?le(x,"",{groupId:i}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?_:(n.lastChild.type==="comment"||n.lastChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${e.tabWidth*(t.ancestors.length-1)}}$`).test(n.lastChild.value)?"":x;return n.children.length===0?a(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?_:""):a([dn(n)?J:"",u([o(),wt(t,e,r)]),p()])}var Ze=null;function et(t){if(Ze!==null&&typeof Ze.property){let e=Ze;return Ze=et.prototype=null,e}return Ze=et.prototype=t??Object.create(null),new et}var na=10;for(let t=0;t<=na;t++)et();function gr(t){return et(t)}function sa(t,e="type"){gr(t);function r(n){let s=n[e],i=t[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return i}return r}var Jn=sa;var ia={"front-matter":[],root:["children"],element:["attrs","children"],ieConditionalComment:["children"],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:["children"],text:["children"],docType:[],comment:[],attribute:[],cdata:[]},Zn=ia;var aa=Jn(Zn),es=aa;function ua(t,e,r){let{node:n}=t;switch(n.type){case"front-matter":return T(n.raw);case"root":return e.__onHtmlRoot&&e.__onHtmlRoot(n),[D(wt(t,e,r)),S];case"element":case"ieConditionalComment":return Qn(t,e,r);case"ieConditionalStartComment":case"ieConditionalEndComment":return[Qe(n),Ye(n)];case"interpolation":return[Qe(n,e),...t.map(r,"children"),Ye(n,e)];case"text":{if(n.parent.type==="interpolation"){let i=/\n[^\S\n]*$/,a=i.test(n.value),u=a?n.value.replace(i,""):n.value;return[T(u),a?S:""]}let s=Xr([q(n,e),...Et(n),O(n,e)]);return Array.isArray(s)?ht(s):s}case"docType":return[D([Qe(n,e)," ",v(!1,n.value.replace(/^html\b/i,"html"),/\s+/g," ")]),Ye(n,e)];case"comment":return[q(n,e),T(e.originalText.slice(te(n),re(n))),O(n,e)];case"attribute":{if(n.value===null)return n.rawName;let s=ur(n.value),i=Zr(s,'"');return[n.rawName,"=",i,T(i==='"'?v(!1,s,'"',"""):v(!1,s,"'","'")),i]}case"cdata":default:throw new Qr(n,"HTML")}}var oa={preprocess:Bn,print:ua,insertPragma:Fn,massageAstNode:tn,embed:Xn,getVisitorKeys:es},ts=oa;var Qt={};qr(Qt,{angular:()=>tu,html:()=>eu,lwc:()=>nu,vue:()=>ru});var mc=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g");var rs;(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"})(rs||(rs={}));var ns;(function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default"})(ns||(ns={}));var Cr={name:"custom-elements"},Sr={name:"no-errors-schema"};var j;(function(t){t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL"})(j||(j={}));var ss;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"})(ss||(ss={}));var k;(function(t){t[t.RAW_TEXT=0]="RAW_TEXT",t[t.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t[t.PARSABLE_DATA=2]="PARSABLE_DATA"})(k||(k={}));function tt(t){if(t[0]!=":")return[null,t];let e=t.indexOf(":",1);if(e===-1)throw new Error(`Unsupported format "${t}" expecting ":namespace:name"`);return[t.slice(1,e),t.slice(e+1)]}function Er(t){return tt(t)[1]==="ng-container"}function Ar(t){return tt(t)[1]==="ng-content"}function Ie(t){return t===null?null:tt(t)[0]}function Re(t,e){return t?`:${t}:${e}`:e}var xt;function _r(){return xt||(xt={},Tt(j.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Tt(j.STYLE,["*|style"]),Tt(j.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),Tt(j.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),xt}function Tt(t,e){for(let r of e)xt[r.toLowerCase()]=t}var kt=class{};var la="boolean",ca="number",pa="string",ha="object",fa=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|"],is=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),ma=Array.from(is).reduce((t,[e,r])=>(t.set(e,r),t),new Map),Bt=class extends kt{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,fa.forEach(e=>{let r=new Map,n=new Set,[s,i]=e.split("|"),a=i.split(","),[u,o]=s.split("^");u.split(",").forEach(c=>{this._schema.set(c.toLowerCase(),r),this._eventSchema.set(c.toLowerCase(),n)});let p=o&&this._schema.get(o.toLowerCase());if(p){for(let[c,g]of p)r.set(c,g);for(let c of this._eventSchema.get(o.toLowerCase()))n.add(c)}a.forEach(c=>{if(c.length>0)switch(c[0]){case"*":n.add(c.substring(1));break;case"!":r.set(c.substring(1),la);break;case"#":r.set(c.substring(1),ca);break;case"%":r.set(c.substring(1),ha);break;default:r.set(c,pa)}})})}hasProperty(e,r,n){if(n.some(i=>i.name===Sr.name))return!0;if(e.indexOf("-")>-1){if(Er(e)||Ar(e))return!1;if(n.some(i=>i.name===Cr.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(r)}hasElement(e,r){return r.some(n=>n.name===Sr.name)||e.indexOf("-")>-1&&(Er(e)||Ar(e)||r.some(n=>n.name===Cr.name))?!0:this._schema.has(e.toLowerCase())}securityContext(e,r,n){n&&(r=this.getMappedPropName(r)),e=e.toLowerCase(),r=r.toLowerCase();let s=_r()[e+"|"+r];return s||(s=_r()["*|"+r],s||j.NONE)}getMappedPropName(e){return is.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=... -If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let r=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(r.keys()).map(n=>ma.get(n)??n)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return kn(e)}normalizeAnimationStyleValue(e,r,n){let s="",i=n.toString().trim(),a=null;if(da(e)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let u=n.match(/^[+-]?[\d\.]+([a-z]*)$/);u&&u[1].length==0&&(a=`Please provide a CSS unit value for ${r}:${n}`)}return{error:a,value:i+s}}};function da(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var f=class{constructor({closedByChildren:e,implicitNamespacePrefix:r,contentType:n=k.PARSABLE_DATA,closedByParent:s=!1,isVoid:i=!1,ignoreFirstLf:a=!1,preventNamespaceInheritance:u=!1,canSelfClose:o=!1}={}){this.closedByChildren={},this.closedByParent=!1,e&&e.length>0&&e.forEach(p=>this.closedByChildren[p]=!0),this.isVoid=i,this.closedByParent=s||i,this.implicitNamespacePrefix=r||null,this.contentType=n,this.ignoreFirstLf=a,this.preventNamespaceInheritance=u,this.canSelfClose=o??i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType=="object"?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},as,rt;function $e(t){return rt||(as=new f({canSelfClose:!0}),rt={base:new f({isVoid:!0}),meta:new f({isVoid:!0}),area:new f({isVoid:!0}),embed:new f({isVoid:!0}),link:new f({isVoid:!0}),img:new f({isVoid:!0}),input:new f({isVoid:!0}),param:new f({isVoid:!0}),hr:new f({isVoid:!0}),br:new f({isVoid:!0}),source:new f({isVoid:!0}),track:new f({isVoid:!0}),wbr:new f({isVoid:!0}),p:new f({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new f({closedByChildren:["tbody","tfoot"]}),tbody:new f({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new f({closedByChildren:["tbody"],closedByParent:!0}),tr:new f({closedByChildren:["tr"],closedByParent:!0}),td:new f({closedByChildren:["td","th"],closedByParent:!0}),th:new f({closedByChildren:["td","th"],closedByParent:!0}),col:new f({isVoid:!0}),svg:new f({implicitNamespacePrefix:"svg"}),foreignObject:new f({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new f({implicitNamespacePrefix:"math"}),li:new f({closedByChildren:["li"],closedByParent:!0}),dt:new f({closedByChildren:["dt","dd"]}),dd:new f({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new f({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new f({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new f({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new f({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new f({closedByChildren:["optgroup"],closedByParent:!0}),option:new f({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new f({ignoreFirstLf:!0}),listing:new f({ignoreFirstLf:!0}),style:new f({contentType:k.RAW_TEXT}),script:new f({contentType:k.RAW_TEXT}),title:new f({contentType:{default:k.ESCAPABLE_RAW_TEXT,svg:k.PARSABLE_DATA}}),textarea:new f({contentType:k.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},new Bt().allKnownElementNames().forEach(e=>{!rt.hasOwnProperty(e)&&Ie(e)===null&&(rt[e]=new f({canSelfClose:!1}))})),rt[t]??as}var Se=class{constructor(e,r){this.sourceSpan=e,this.i18n=r}},Lt=class extends Se{constructor(e,r,n,s){super(r,s),this.value=e,this.tokens=n,this.type="text"}visit(e,r){return e.visitText(this,r)}},Ft=class extends Se{constructor(e,r,n,s){super(r,s),this.value=e,this.tokens=n,this.type="cdata"}visit(e,r){return e.visitCdata(this,r)}},Nt=class extends Se{constructor(e,r,n,s,i,a){super(s,a),this.switchValue=e,this.type=r,this.cases=n,this.switchValueSourceSpan=i}visit(e,r){return e.visitExpansion(this,r)}},Pt=class{constructor(e,r,n,s,i){this.value=e,this.expression=r,this.sourceSpan=n,this.valueSourceSpan=s,this.expSourceSpan=i}visit(e,r){return e.visitExpansionCase(this,r)}},It=class extends Se{constructor(e,r,n,s,i,a,u){super(n,u),this.name=e,this.value=r,this.keySpan=s,this.valueSpan=i,this.valueTokens=a,this.type="attribute"}visit(e,r){return e.visitAttribute(this,r)}get nameSpan(){return this.keySpan}},Rt=class extends Se{constructor(e,r,n,s,i,a=null,u=null,o){super(s,o),this.name=e,this.attrs=r,this.children=n,this.startSourceSpan=i,this.endSourceSpan=a,this.nameSpan=u,this.type="element"}visit(e,r){return e.visitElement(this,r)}},$t=class{constructor(e,r){this.value=e,this.sourceSpan=r,this.type="comment"}visit(e,r){return e.visitComment(this,r)}},Mt=class{constructor(e,r){this.value=e,this.sourceSpan=r,this.type="docType"}visit(e,r){return e.visitDocType(this,r)}};function Ot(t,e,r=null){let n=[],s=t.visit?i=>t.visit(i,r)||i.visit(t,r):i=>i.visit(t,r);return e.forEach(i=>{let a=s(i);a&&n.push(a)}),n}var nt=class{constructor(){}visitElement(e,r){this.visitChildren(r,n=>{n(e.attrs),n(e.children)})}visitAttribute(e,r){}visitText(e,r){}visitCdata(e,r){}visitComment(e,r){}visitDocType(e,r){}visitExpansion(e,r){return this.visitChildren(r,n=>{n(e.cases)})}visitExpansionCase(e,r){}visitChildren(e,r){let n=[],s=this;function i(a){a&&n.push(Ot(s,a,e))}return r(i),Array.prototype.concat.apply([],n)}};var Me={AElig:"\xC6",AMP:"&",amp:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",af:"\u2061",Aring:"\xC5",angst:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",colone:"\u2254",coloneq:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",setminus:"\u2216",setmn:"\u2216",smallsetminus:"\u2216",ssetmn:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",doublebarwedge:"\u2306",Bcy:"\u0411",Because:"\u2235",becaus:"\u2235",because:"\u2235",Bernoullis:"\u212C",Bscr:"\u212C",bernou:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",breve:"\u02D8",Bumpeq:"\u224E",HumpDownHump:"\u224E",bump:"\u224E",CHcy:"\u0427",COPY:"\xA9",copy:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",DD:"\u2145",Cayleys:"\u212D",Cfr:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",cedil:"\xB8",CenterDot:"\xB7",centerdot:"\xB7",middot:"\xB7",Chi:"\u03A7",CircleDot:"\u2299",odot:"\u2299",CircleMinus:"\u2296",ominus:"\u2296",CirclePlus:"\u2295",oplus:"\u2295",CircleTimes:"\u2297",otimes:"\u2297",ClockwiseContourIntegral:"\u2232",cwconint:"\u2232",CloseCurlyDoubleQuote:"\u201D",rdquo:"\u201D",rdquor:"\u201D",CloseCurlyQuote:"\u2019",rsquo:"\u2019",rsquor:"\u2019",Colon:"\u2237",Proportion:"\u2237",Colone:"\u2A74",Congruent:"\u2261",equiv:"\u2261",Conint:"\u222F",DoubleContourIntegral:"\u222F",ContourIntegral:"\u222E",conint:"\u222E",oint:"\u222E",Copf:"\u2102",complexes:"\u2102",Coproduct:"\u2210",coprod:"\u2210",CounterClockwiseContourIntegral:"\u2233",awconint:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",asympeq:"\u224D",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",ddagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",DoubleLeftTee:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",nabla:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",acute:"\xB4",DiacriticalDot:"\u02D9",dot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",dblac:"\u02DD",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"\u02DC",tilde:"\u02DC",Diamond:"\u22C4",diam:"\u22C4",diamond:"\u22C4",DifferentialD:"\u2146",dd:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DoubleDot:"\xA8",die:"\xA8",uml:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",doteq:"\u2250",esdot:"\u2250",DoubleDownArrow:"\u21D3",Downarrow:"\u21D3",dArr:"\u21D3",DoubleLeftArrow:"\u21D0",Leftarrow:"\u21D0",lArr:"\u21D0",DoubleLeftRightArrow:"\u21D4",Leftrightarrow:"\u21D4",hArr:"\u21D4",iff:"\u21D4",DoubleLongLeftArrow:"\u27F8",Longleftarrow:"\u27F8",xlArr:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",Longleftrightarrow:"\u27FA",xhArr:"\u27FA",DoubleLongRightArrow:"\u27F9",Longrightarrow:"\u27F9",xrArr:"\u27F9",DoubleRightArrow:"\u21D2",Implies:"\u21D2",Rightarrow:"\u21D2",rArr:"\u21D2",DoubleRightTee:"\u22A8",vDash:"\u22A8",DoubleUpArrow:"\u21D1",Uparrow:"\u21D1",uArr:"\u21D1",DoubleUpDownArrow:"\u21D5",Updownarrow:"\u21D5",vArr:"\u21D5",DoubleVerticalBar:"\u2225",par:"\u2225",parallel:"\u2225",shortparallel:"\u2225",spar:"\u2225",DownArrow:"\u2193",ShortDownArrow:"\u2193",darr:"\u2193",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",duarr:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",leftharpoondown:"\u21BD",lhard:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",rhard:"\u21C1",rightharpoondown:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",top:"\u22A4",DownTeeArrow:"\u21A7",mapstodown:"\u21A7",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",in:"\u2208",isin:"\u2208",isinv:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",eqsim:"\u2242",esim:"\u2242",Equilibrium:"\u21CC",rightleftharpoons:"\u21CC",rlhar:"\u21CC",Escr:"\u2130",expectation:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",exist:"\u2203",ExponentialE:"\u2147",ee:"\u2147",exponentiale:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",blacksquare:"\u25AA",squarf:"\u25AA",squf:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",forall:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",gt:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",ggg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",ge:"\u2265",geq:"\u2265",GreaterEqualLess:"\u22DB",gel:"\u22DB",gtreqless:"\u22DB",GreaterFullEqual:"\u2267",gE:"\u2267",geqq:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",gl:"\u2277",gtrless:"\u2277",GreaterSlantEqual:"\u2A7E",geqslant:"\u2A7E",ges:"\u2A7E",GreaterTilde:"\u2273",gsim:"\u2273",gtrsim:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",NestedGreaterGreater:"\u226B",gg:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",caron:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",Poincareplane:"\u210C",HilbertSpace:"\u210B",Hscr:"\u210B",hamilt:"\u210B",Hopf:"\u210D",quaternions:"\u210D",HorizontalLine:"\u2500",boxh:"\u2500",Hstrok:"\u0126",HumpEqual:"\u224F",bumpe:"\u224F",bumpeq:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Im:"\u2111",image:"\u2111",imagpart:"\u2111",Igrave:"\xCC",Imacr:"\u012A",ImaginaryI:"\u2148",ii:"\u2148",Int:"\u222C",Integral:"\u222B",int:"\u222B",Intersection:"\u22C2",bigcap:"\u22C2",xcap:"\u22C2",InvisibleComma:"\u2063",ic:"\u2063",InvisibleTimes:"\u2062",it:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",imagline:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",lt:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Lscr:"\u2112",lagran:"\u2112",Larr:"\u219E",twoheadleftarrow:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",lang:"\u27E8",langle:"\u27E8",LeftArrow:"\u2190",ShortLeftArrow:"\u2190",larr:"\u2190",leftarrow:"\u2190",slarr:"\u2190",LeftArrowBar:"\u21E4",larrb:"\u21E4",LeftArrowRightArrow:"\u21C6",leftrightarrows:"\u21C6",lrarr:"\u21C6",LeftCeiling:"\u2308",lceil:"\u2308",LeftDoubleBracket:"\u27E6",lobrk:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",dharl:"\u21C3",downharpoonleft:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",lfloor:"\u230A",LeftRightArrow:"\u2194",harr:"\u2194",leftrightarrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",dashv:"\u22A3",LeftTeeArrow:"\u21A4",mapstoleft:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",vartriangleleft:"\u22B2",vltri:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",ltrie:"\u22B4",trianglelefteq:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",uharl:"\u21BF",upharpoonleft:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",leftharpoonup:"\u21BC",lharu:"\u21BC",LeftVectorBar:"\u2952",LessEqualGreater:"\u22DA",leg:"\u22DA",lesseqgtr:"\u22DA",LessFullEqual:"\u2266",lE:"\u2266",leqq:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",lg:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",leqslant:"\u2A7D",les:"\u2A7D",LessTilde:"\u2272",lesssim:"\u2272",lsim:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",lAarr:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",longleftarrow:"\u27F5",xlarr:"\u27F5",LongLeftRightArrow:"\u27F7",longleftrightarrow:"\u27F7",xharr:"\u27F7",LongRightArrow:"\u27F6",longrightarrow:"\u27F6",xrarr:"\u27F6",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",swarr:"\u2199",swarrow:"\u2199",LowerRightArrow:"\u2198",searr:"\u2198",searrow:"\u2198",Lsh:"\u21B0",lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",NestedLessLess:"\u226A",ll:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mscr:"\u2133",phmmat:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",mnplus:"\u2213",mp:"\u2213",Mopf:"\u{1D544}",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",ZeroWidthSpace:"\u200B",NewLine:` -`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nbsp:"\xA0",Nopf:"\u2115",naturals:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",nequiv:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",npar:"\u2226",nparallel:"\u2226",nshortparallel:"\u2226",nspar:"\u2226",NotElement:"\u2209",notin:"\u2209",notinva:"\u2209",NotEqual:"\u2260",ne:"\u2260",NotEqualTilde:"\u2242\u0338",nesim:"\u2242\u0338",NotExists:"\u2204",nexist:"\u2204",nexists:"\u2204",NotGreater:"\u226F",ngt:"\u226F",ngtr:"\u226F",NotGreaterEqual:"\u2271",nge:"\u2271",ngeq:"\u2271",NotGreaterFullEqual:"\u2267\u0338",ngE:"\u2267\u0338",ngeqq:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",nGtv:"\u226B\u0338",NotGreaterLess:"\u2279",ntgl:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",NotGreaterTilde:"\u2275",ngsim:"\u2275",NotHumpDownHump:"\u224E\u0338",nbump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",nbumpe:"\u224F\u0338",NotLeftTriangle:"\u22EA",nltri:"\u22EA",ntriangleleft:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",nltrie:"\u22EC",ntrianglelefteq:"\u22EC",NotLess:"\u226E",nless:"\u226E",nlt:"\u226E",NotLessEqual:"\u2270",nle:"\u2270",nleq:"\u2270",NotLessGreater:"\u2278",ntlg:"\u2278",NotLessLess:"\u226A\u0338",nLtv:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",NotLessTilde:"\u2274",nlsim:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",npr:"\u2280",nprec:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",npre:"\u2AAF\u0338",npreceq:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",nprcue:"\u22E0",NotReverseElement:"\u220C",notni:"\u220C",notniva:"\u220C",NotRightTriangle:"\u22EB",nrtri:"\u22EB",ntriangleright:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",nrtrie:"\u22ED",ntrianglerighteq:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",nsqsube:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",nsqsupe:"\u22E3",NotSubset:"\u2282\u20D2",nsubset:"\u2282\u20D2",vnsub:"\u2282\u20D2",NotSubsetEqual:"\u2288",nsube:"\u2288",nsubseteq:"\u2288",NotSucceeds:"\u2281",nsc:"\u2281",nsucc:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",nsce:"\u2AB0\u0338",nsucceq:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",nsccue:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",nsupset:"\u2283\u20D2",vnsup:"\u2283\u20D2",NotSupersetEqual:"\u2289",nsupe:"\u2289",nsupseteq:"\u2289",NotTilde:"\u2241",nsim:"\u2241",NotTildeEqual:"\u2244",nsime:"\u2244",nsimeq:"\u2244",NotTildeFullEqual:"\u2247",ncong:"\u2247",NotTildeTilde:"\u2249",nap:"\u2249",napprox:"\u2249",NotVerticalBar:"\u2224",nmid:"\u2224",nshortmid:"\u2224",nsmid:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",ohm:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",ldquo:"\u201C",OpenCurlyQuote:"\u2018",lsquo:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",oline:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",tbrk:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",part:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",plusmn:"\xB1",pm:"\xB1",Popf:"\u2119",primes:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",pr:"\u227A",prec:"\u227A",PrecedesEqual:"\u2AAF",pre:"\u2AAF",preceq:"\u2AAF",PrecedesSlantEqual:"\u227C",prcue:"\u227C",preccurlyeq:"\u227C",PrecedesTilde:"\u227E",precsim:"\u227E",prsim:"\u227E",Prime:"\u2033",Product:"\u220F",prod:"\u220F",Proportional:"\u221D",prop:"\u221D",propto:"\u221D",varpropto:"\u221D",vprop:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',quot:'"',Qfr:"\u{1D514}",Qopf:"\u211A",rationals:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",drbkarow:"\u2910",REG:"\xAE",circledR:"\xAE",reg:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",twoheadrightarrow:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",Rfr:"\u211C",real:"\u211C",realpart:"\u211C",ReverseElement:"\u220B",SuchThat:"\u220B",ni:"\u220B",niv:"\u220B",ReverseEquilibrium:"\u21CB",leftrightharpoons:"\u21CB",lrhar:"\u21CB",ReverseUpEquilibrium:"\u296F",duhar:"\u296F",Rho:"\u03A1",RightAngleBracket:"\u27E9",rang:"\u27E9",rangle:"\u27E9",RightArrow:"\u2192",ShortRightArrow:"\u2192",rarr:"\u2192",rightarrow:"\u2192",srarr:"\u2192",RightArrowBar:"\u21E5",rarrb:"\u21E5",RightArrowLeftArrow:"\u21C4",rightleftarrows:"\u21C4",rlarr:"\u21C4",RightCeiling:"\u2309",rceil:"\u2309",RightDoubleBracket:"\u27E7",robrk:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",dharr:"\u21C2",downharpoonright:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rfloor:"\u230B",RightTee:"\u22A2",vdash:"\u22A2",RightTeeArrow:"\u21A6",map:"\u21A6",mapsto:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",vartriangleright:"\u22B3",vrtri:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",rtrie:"\u22B5",trianglerighteq:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",uharr:"\u21BE",upharpoonright:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",rharu:"\u21C0",rightharpoonup:"\u21C0",RightVectorBar:"\u2953",Ropf:"\u211D",reals:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",rAarr:"\u21DB",Rscr:"\u211B",realine:"\u211B",Rsh:"\u21B1",rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortUpArrow:"\u2191",UpArrow:"\u2191",uarr:"\u2191",uparrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",compfn:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",radic:"\u221A",Square:"\u25A1",squ:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",sqcap:"\u2293",SquareSubset:"\u228F",sqsub:"\u228F",sqsubset:"\u228F",SquareSubsetEqual:"\u2291",sqsube:"\u2291",sqsubseteq:"\u2291",SquareSuperset:"\u2290",sqsup:"\u2290",sqsupset:"\u2290",SquareSupersetEqual:"\u2292",sqsupe:"\u2292",sqsupseteq:"\u2292",SquareUnion:"\u2294",sqcup:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",sstarf:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",sube:"\u2286",subseteq:"\u2286",Succeeds:"\u227B",sc:"\u227B",succ:"\u227B",SucceedsEqual:"\u2AB0",sce:"\u2AB0",succeq:"\u2AB0",SucceedsSlantEqual:"\u227D",sccue:"\u227D",succcurlyeq:"\u227D",SucceedsTilde:"\u227F",scsim:"\u227F",succsim:"\u227F",Sum:"\u2211",sum:"\u2211",Sup:"\u22D1",Supset:"\u22D1",Superset:"\u2283",sup:"\u2283",supset:"\u2283",SupersetEqual:"\u2287",supe:"\u2287",supseteq:"\u2287",THORN:"\xDE",TRADE:"\u2122",trade:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",there4:"\u2234",therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",Tilde:"\u223C",sim:"\u223C",thicksim:"\u223C",thksim:"\u223C",TildeEqual:"\u2243",sime:"\u2243",simeq:"\u2243",TildeFullEqual:"\u2245",cong:"\u2245",TildeTilde:"\u2248",ap:"\u2248",approx:"\u2248",asymp:"\u2248",thickapprox:"\u2248",thkap:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",tdot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",lowbar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",bbrk:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",bigcup:"\u22C3",xcup:"\u22C3",UnionPlus:"\u228E",uplus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",udarr:"\u21C5",UpDownArrow:"\u2195",updownarrow:"\u2195",varr:"\u2195",UpEquilibrium:"\u296E",udhar:"\u296E",UpTee:"\u22A5",bot:"\u22A5",bottom:"\u22A5",perp:"\u22A5",UpTeeArrow:"\u21A5",mapstoup:"\u21A5",UpperLeftArrow:"\u2196",nwarr:"\u2196",nwarrow:"\u2196",UpperRightArrow:"\u2197",nearr:"\u2197",nearrow:"\u2197",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",bigvee:"\u22C1",xvee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",mid:"\u2223",shortmid:"\u2223",smid:"\u2223",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",VeryThinSpace:"\u200A",hairsp:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",bigwedge:"\u22C0",xwedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",Zeta:"\u0396",Zfr:"\u2128",zeetrf:"\u2128",Zopf:"\u2124",integers:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",mstpos:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acy:"\u0430",aelig:"\xE6",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",and:"\u2227",wedge:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",angle:"\u2220",ange:"\u29A4",angmsd:"\u2221",measuredangle:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",approxeq:"\u224A",apid:"\u224B",apos:"'",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",midast:"*",atilde:"\xE3",auml:"\xE4",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",bcong:"\u224C",backepsilon:"\u03F6",bepsi:"\u03F6",backprime:"\u2035",bprime:"\u2035",backsim:"\u223D",bsim:"\u223D",backsimeq:"\u22CD",bsime:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrktbrk:"\u23B6",bcy:"\u0431",bdquo:"\u201E",ldquor:"\u201E",bemptyv:"\u29B0",beta:"\u03B2",beth:"\u2136",between:"\u226C",twixt:"\u226C",bfr:"\u{1D51F}",bigcirc:"\u25EF",xcirc:"\u25EF",bigodot:"\u2A00",xodot:"\u2A00",bigoplus:"\u2A01",xoplus:"\u2A01",bigotimes:"\u2A02",xotime:"\u2A02",bigsqcup:"\u2A06",xsqcup:"\u2A06",bigstar:"\u2605",starf:"\u2605",bigtriangledown:"\u25BD",xdtri:"\u25BD",bigtriangleup:"\u25B3",xutri:"\u25B3",biguplus:"\u2A04",xuplus:"\u2A04",bkarow:"\u290D",rbarr:"\u290D",blacklozenge:"\u29EB",lozf:"\u29EB",blacktriangle:"\u25B4",utrif:"\u25B4",blacktriangledown:"\u25BE",dtrif:"\u25BE",blacktriangleleft:"\u25C2",ltrif:"\u25C2",blacktriangleright:"\u25B8",rtrif:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",minusb:"\u229F",boxplus:"\u229E",plusb:"\u229E",boxtimes:"\u22A0",timesb:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bumpE:"\u2AAE",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cemptyv:"\u29B2",cent:"\xA2",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",cire:"\u2257",circlearrowleft:"\u21BA",olarr:"\u21BA",circlearrowright:"\u21BB",orarr:"\u21BB",circledS:"\u24C8",oS:"\u24C8",circledast:"\u229B",oast:"\u229B",circledcirc:"\u229A",ocir:"\u229A",circleddash:"\u229D",odash:"\u229D",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",comma:",",commat:"@",comp:"\u2201",complement:"\u2201",congdot:"\u2A6D",copf:"\u{1D554}",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",curlyeqprec:"\u22DE",cuesc:"\u22DF",curlyeqsucc:"\u22DF",cularr:"\u21B6",curvearrowleft:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curvearrowright:"\u21B7",curarrm:"\u293C",curlyvee:"\u22CE",cuvee:"\u22CE",curlywedge:"\u22CF",cuwed:"\u22CF",curren:"\xA4",cwint:"\u2231",cylcty:"\u232D",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",dash:"\u2010",hyphen:"\u2010",dbkarow:"\u290F",rBarr:"\u290F",dcaron:"\u010F",dcy:"\u0434",ddarr:"\u21CA",downdownarrows:"\u21CA",ddotseq:"\u2A77",eDDot:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",diamondsuit:"\u2666",diams:"\u2666",digamma:"\u03DD",gammad:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",llcorner:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",doteqdot:"\u2251",eDot:"\u2251",dotminus:"\u2238",minusd:"\u2238",dotplus:"\u2214",plusdo:"\u2214",dotsquare:"\u22A1",sdotb:"\u22A1",drcorn:"\u231F",lrcorner:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",triangledown:"\u25BF",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",eqcirc:"\u2256",ecirc:"\xEA",ecolon:"\u2255",eqcolon:"\u2255",ecy:"\u044D",edot:"\u0117",efDot:"\u2252",fallingdotseq:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",eqslantgtr:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",eqslantless:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",straightepsilon:"\u03F5",varepsilon:"\u03F5",equals:"=",equest:"\u225F",questeq:"\u225F",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",risingdotseq:"\u2253",erarr:"\u2971",escr:"\u212F",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",fork:"\u22D4",pitchfork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",half:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",sfrown:"\u2322",fscr:"\u{1D4BB}",gEl:"\u2A8C",gtreqqless:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gap:"\u2A86",gtrapprox:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gimel:"\u2137",gjcy:"\u0453",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gneqq:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gnsim:"\u22E7",gopf:"\u{1D558}",gscr:"\u210A",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtrdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrarr:"\u2978",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hardcy:"\u044A",harrcir:"\u2948",harrw:"\u21AD",leftrightsquigarrow:"\u21AD",hbar:"\u210F",hslash:"\u210F",planck:"\u210F",plankv:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",mldr:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",searhk:"\u2925",hkswarow:"\u2926",swarhk:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",larrhk:"\u21A9",hookrightarrow:"\u21AA",rarrhk:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hstrok:"\u0127",hybull:"\u2043",iacute:"\xED",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",ifr:"\u{1D526}",igrave:"\xEC",iiiint:"\u2A0C",qint:"\u2A0C",iiint:"\u222D",tint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",imath:"\u0131",inodot:"\u0131",imof:"\u22B7",imped:"\u01B5",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",intcal:"\u22BA",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iquest:"\xBF",iscr:"\u{1D4BE}",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",varkappa:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAtail:"\u291B",lBarr:"\u290E",lEg:"\u2A8B",lesseqqgtr:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lambda:"\u03BB",langd:"\u2991",lap:"\u2A85",lessapprox:"\u2A85",laquo:"\xAB",larrbfs:"\u291F",larrfs:"\u291D",larrlp:"\u21AB",looparrowleft:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",leftarrowtail:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lcy:"\u043B",ldca:"\u2936",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leq:"\u2264",leftleftarrows:"\u21C7",llarr:"\u21C7",leftthreetimes:"\u22CB",lthree:"\u22CB",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessdot:"\u22D6",ltdot:"\u22D6",lfisht:"\u297C",lfr:"\u{1D529}",lgE:"\u2A91",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lneqq:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",longmapsto:"\u27FC",xmap:"\u27FC",looparrowright:"\u21AC",rarrlp:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",loz:"\u25CA",lozenge:"\u25CA",lpar:"(",lparlt:"\u2993",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsime:"\u2A8D",lsimg:"\u2A8F",lsquor:"\u201A",sbquo:"\u201A",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",triangleleft:"\u25C3",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",strns:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midcir:"\u2AF0",minus:"\u2212",minusdu:"\u2A2A",mlcp:"\u2ADB",models:"\u22A7",mopf:"\u{1D55E}",mscr:"\u{1D4C2}",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nLeftarrow:"\u21CD",nlArr:"\u21CD",nLeftrightarrow:"\u21CE",nhArr:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nRightarrow:"\u21CF",nrArr:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nacute:"\u0144",nang:"\u2220\u20D2",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",natur:"\u266E",natural:"\u266E",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",neArr:"\u21D7",nearhk:"\u2924",nedot:"\u2250\u0338",nesear:"\u2928",toea:"\u2928",nfr:"\u{1D52B}",nharr:"\u21AE",nleftrightarrow:"\u21AE",nhpar:"\u2AF2",nis:"\u22FC",nisd:"\u22FA",njcy:"\u045A",nlE:"\u2266\u0338",nleqq:"\u2266\u0338",nlarr:"\u219A",nleftarrow:"\u219A",nldr:"\u2025",nopf:"\u{1D55F}",not:"\xAC",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinvb:"\u22F7",notinvc:"\u22F6",notnivb:"\u22FE",notnivc:"\u22FD",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",nrarr:"\u219B",nrightarrow:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nscr:"\u{1D4C3}",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsubseteqq:"\u2AC5\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupseteqq:"\u2AC6\u0338",ntilde:"\xF1",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwnear:"\u2927",oacute:"\xF3",ocirc:"\xF4",ocy:"\u043E",odblac:"\u0151",odiv:"\u2A38",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",olcir:"\u29BE",olcross:"\u29BB",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",or:"\u2228",vee:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",oscr:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",para:"\xB6",parsim:"\u2AF3",parsl:"\u2AFD",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",straightphi:"\u03D5",varphi:"\u03D5",phone:"\u260E",pi:"\u03C0",piv:"\u03D6",varpi:"\u03D6",planckh:"\u210E",plus:"+",plusacir:"\u2A23",pluscir:"\u2A22",plusdu:"\u2A25",pluse:"\u2A72",plussim:"\u2A26",plustwo:"\u2A27",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",prE:"\u2AB3",prap:"\u2AB7",precapprox:"\u2AB7",precnapprox:"\u2AB9",prnap:"\u2AB9",precneqq:"\u2AB5",prnE:"\u2AB5",precnsim:"\u22E8",prnsim:"\u22E8",prime:"\u2032",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quatint:"\u2A16",quest:"?",rAtail:"\u291C",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",raemptyv:"\u29B3",rangd:"\u2992",range:"\u29A5",raquo:"\xBB",rarrap:"\u2975",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rightarrowtail:"\u21A3",rarrw:"\u219D",rightsquigarrow:"\u219D",ratail:"\u291A",ratio:"\u2236",rbbrk:"\u2773",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdsh:"\u21B3",rect:"\u25AD",rfisht:"\u297D",rfr:"\u{1D52F}",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",varrho:"\u03F1",rightrightarrows:"\u21C9",rrarr:"\u21C9",rightthreetimes:"\u22CC",rthree:"\u22CC",ring:"\u02DA",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rsaquo:"\u203A",rscr:"\u{1D4C7}",rtimes:"\u22CA",rtri:"\u25B9",triangleright:"\u25B9",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",scE:"\u2AB4",scap:"\u2AB8",succapprox:"\u2AB8",scaron:"\u0161",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",succneqq:"\u2AB6",scnap:"\u2ABA",succnapprox:"\u2ABA",scnsim:"\u22E9",succnsim:"\u22E9",scpolint:"\u2A13",scy:"\u0441",sdot:"\u22C5",sdote:"\u2A66",seArr:"\u21D8",sect:"\xA7",semi:";",seswar:"\u2929",tosa:"\u2929",sext:"\u2736",sfr:"\u{1D530}",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",varsigma:"\u03C2",simdot:"\u2A6A",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",smashp:"\u2A33",smeparsl:"\u29E4",smile:"\u2323",ssmile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",sqcaps:"\u2293\uFE00",sqcups:"\u2294\uFE00",sscr:"\u{1D4C8}",star:"\u2606",sub:"\u2282",subset:"\u2282",subE:"\u2AC5",subseteqq:"\u2AC5",subdot:"\u2ABD",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subsetneqq:"\u2ACB",subne:"\u228A",subsetneq:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supseteqq:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supsetneqq:"\u2ACC",supne:"\u228B",supsetneq:"\u228B",supplus:"\u2AC0",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",telrec:"\u2315",tfr:"\u{1D531}",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",vartheta:"\u03D1",thorn:"\xFE",times:"\xD7",timesbar:"\u2A31",timesd:"\u2A30",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tprime:"\u2034",triangle:"\u25B5",utri:"\u25B5",triangleq:"\u225C",trie:"\u225C",tridot:"\u25EC",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",uHar:"\u2963",uacute:"\xFA",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udblac:"\u0171",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uogon:"\u0173",uopf:"\u{1D566}",upsi:"\u03C5",upsilon:"\u03C5",upuparrows:"\u21C8",uuarr:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",uuml:"\xFC",uwangle:"\u29A7",vBar:"\u2AE8",vBarv:"\u2AE9",vangrt:"\u299C",varsubsetneq:"\u228A\uFE00",vsubne:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",vsubnE:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",vsupne:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vsupnE:"\u2ACC\uFE00",vcy:"\u0432",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",vfr:"\u{1D533}",vopf:"\u{1D567}",vscr:"\u{1D4CB}",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedgeq:"\u2259",weierp:"\u2118",wp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wscr:"\u{1D4CC}",xfr:"\u{1D535}",xi:"\u03BE",xnis:"\u22FB",xopf:"\u{1D569}",xscr:"\u{1D4CD}",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"},Ca="\uE500";Me.ngsp=Ca;var Sa=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function us(t,e){if(e!=null&&!(Array.isArray(e)&&e.length==2))throw new Error(`Expected '${t}' to be an array, [start, end].`);if(e!=null){let r=e[0],n=e[1];Sa.forEach(s=>{if(s.test(r)||s.test(n))throw new Error(`['${r}', '${n}'] contains unusable interpolation symbol.`)})}}var Dr=class t{static fromArray(e){return e?(us("interpolation",e),new t(e[0],e[1])):vr}constructor(e,r){this.start=e,this.end=r}},vr=new Dr("{{","}}");var at=class extends Fe{constructor(e,r,n){super(n,e),this.tokenType=r}},wr=class{constructor(e,r,n){this.tokens=e,this.errors=r,this.nonNormalizedIcuExpressions=n}};function Ss(t,e,r,n={}){let s=new Tr(new fe(t,e),r,n);return s.tokenize(),new wr(Ua(s.tokens),s.errors,s.nonNormalizedIcuExpressions)}var Ra=/\r\n?/g;function Oe(t){return`Unexpected character "${t===0?"EOF":String.fromCharCode(t)}"`}function ps(t){return`Unknown entity "${t}" - use the "&#;" or "&#x;" syntax`}function $a(t,e){return`Unable to parse entity "${e}" - ${t} character reference entities must end with ";"`}var Ut;(function(t){t.HEX="hexadecimal",t.DEC="decimal"})(Ut||(Ut={}));var ut=class{constructor(e){this.error=e}},Tr=class{constructor(e,r,n){this._getTagContentType=r,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=n.tokenizeExpansionForms||!1,this._interpolationConfig=n.interpolationConfig||vr,this._leadingTriviaCodePoints=n.leadingTriviaChars&&n.leadingTriviaChars.map(i=>i.codePointAt(0)||0),this._canSelfClose=n.canSelfClose||!1,this._allowHtmComponentClosingTags=n.allowHtmComponentClosingTags||!1;let s=n.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=n.escapedString?new xr(e,s):new Wt(e,s),this._preserveLineEndings=n.preserveLineEndings||!1,this._escapedString=n.escapedString||!1,this._i18nNormalizeLineEndingsInICUs=n.i18nNormalizeLineEndingsInICUs||!1;try{this._cursor.init()}catch(i){this.handleError(i)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(Ra,` -`)}tokenize(){for(;this._cursor.peek()!==0;){let e=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else{let r=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=r,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(r){this.handleError(r)}}this._beginToken(25),this._endToken([])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(Ha(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,r=this._cursor.clone()){this._currentTokenStart=r,this._currentTokenType=e}_endToken(e,r){if(this._currentTokenStart===null)throw new at("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(r));if(this._currentTokenType===null)throw new at("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let n={type:this._currentTokenType,parts:e,sourceSpan:(r??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n}_createError(e,r){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let n=new at(e,this._currentTokenType,r);return this._currentTokenStart=null,this._currentTokenType=null,new ut(n)}handleError(e){if(e instanceof ot&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof ut)this.errors.push(e.error);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return Va(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let r=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(Oe(this._cursor.peek()),this._cursor.getSpan(r))}_attemptStr(e){let r=e.length;if(this._cursor.charsLeft()this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(e){this._beginToken(10,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(11),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(12,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(18,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(19),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(){let e=this._cursor.clone(),r="";for(;this._cursor.peek()!==58&&!Ma(this._cursor.peek());)this._cursor.advance();let n;this._cursor.peek()===58?(r=this._cursor.getChars(e),this._cursor.advance(),n=this._cursor.clone()):n=e,this._requireCharCodeUntilFn(hs,r===""?0:1);let s=this._cursor.getChars(n);return[r,s]}_consumeTagOpen(e){let r,n,s,i=[];try{if(!lr(this._cursor.peek()))throw this._createError(Oe(this._cursor.peek()),this._cursor.getSpan(e));for(s=this._consumeTagOpenStart(e),n=s.parts[0],r=s.parts[1],this._attemptCharCodeUntilFn(F);this._cursor.peek()!==47&&this._cursor.peek()!==62&&this._cursor.peek()!==60&&this._cursor.peek()!==0;){let[u,o]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(F),this._attemptCharCode(61)){this._attemptCharCodeUntilFn(F);let p=this._consumeAttributeValue();i.push({prefix:u,name:o,value:p})}else i.push({prefix:u,name:o});this._attemptCharCodeUntilFn(F)}this._consumeTagOpenEnd()}catch(u){if(u instanceof ut){s?s.type=4:(this._beginToken(5,e),this._endToken(["<"]));return}throw u}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===2)return;let a=this._getTagContentType(r,n,this._fullNameStack.length>0,i);this._handleFullNameStackForTagOpen(n,r),a===k.RAW_TEXT?this._consumeRawTextWithTagClose(n,r,!1):a===k.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,r,!0)}_consumeRawTextWithTagClose(e,r,n){this._consumeRawText(n,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(F),!this._attemptStrCaseInsensitive(e?`${e}:${r}`:r))?!1:(this._attemptCharCodeUntilFn(F),this._attemptCharCode(62))),this._beginToken(3),this._requireCharCodeUntilFn(s=>s===62,3),this._cursor.advance(),this._endToken([e,r]),this._handleFullNameStackForTagClose(e,r)}_consumeTagOpenStart(e){this._beginToken(0,e);let r=this._consumePrefixAndName();return this._endToken(r)}_consumeAttributeName(){let e=this._cursor.peek();if(e===39||e===34)throw this._createError(Oe(e),this._cursor.getSpan());this._beginToken(14);let r=this._consumePrefixAndName();return this._endToken(r),r}_consumeAttributeValue(){let e;if(this._cursor.peek()===39||this._cursor.peek()===34){let r=this._cursor.peek();this._consumeQuote(r);let n=()=>this._cursor.peek()===r;e=this._consumeWithInterpolation(16,17,n,n),this._consumeQuote(r)}else{let r=()=>hs(this._cursor.peek());e=this._consumeWithInterpolation(16,17,r,r)}return e}_consumeQuote(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?2:1;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){if(this._beginToken(3,e),this._attemptCharCodeUntilFn(F),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(F),this._requireCharCode(62),this._endToken([]);else{let[r,n]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(F),this._requireCharCode(62),this._endToken([r,n]),this._handleFullNameStackForTagClose(r,n)}}_consumeExpansionFormStart(){this._beginToken(20),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(20),this._beginToken(7);let e=this._readUntil(44),r=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([r]);else{let s=this._endToken([e]);r!==e&&this.nonNormalizedIcuExpressions.push(s)}this._requireCharCode(44),this._attemptCharCodeUntilFn(F),this._beginToken(7);let n=this._readUntil(44);this._endToken([n]),this._requireCharCode(44),this._attemptCharCodeUntilFn(F)}_consumeExpansionCaseStart(){this._beginToken(21);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(F),this._beginToken(22),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(F),this._expansionCaseStack.push(22)}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(F),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,r,n,s){this._beginToken(e);let i=[];for(;!n();){let u=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(i.join(""))],u),i.length=0,this._consumeInterpolation(r,u,s),this._beginToken(e)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(i.join(""))]),i.length=0,this._consumeEntity(e),this._beginToken(e)):i.push(this._readChar())}this._inInterpolation=!1;let a=this._processCarriageReturns(i.join(""));return this._endToken([a]),a}_consumeInterpolation(e,r,n){let s=[];this._beginToken(e,r),s.push(this._interpolationConfig.start);let i=this._cursor.clone(),a=null,u=!1;for(;this._cursor.peek()!==0&&(n===null||!n());){let o=this._cursor.clone();if(this._isTagStart()){this._cursor=o,s.push(this._getProcessedChars(i,o)),this._endToken(s);return}if(a===null)if(this._attemptStr(this._interpolationConfig.end)){s.push(this._getProcessedChars(i,o)),s.push(this._interpolationConfig.end),this._endToken(s);return}else this._attemptStr("//")&&(u=!0);let p=this._cursor.peek();this._cursor.advance(),p===92?this._cursor.advance():p===a?a=null:!u&&a===null&&Tn(p)&&(a=p)}s.push(this._getProcessedChars(i,this._cursor)),this._endToken(s)}_getProcessedChars(e,r){return this._processCarriageReturns(r.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase()))}_isTagStart(){if(this._cursor.peek()===60){let e=this._cursor.clone();e.advance();let r=e.peek();if(97<=r&&r<=122||65<=r&&r<=90||r===47||r===33)return!0}return!1}_readUntil(e){let r=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(r)}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===22}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===20}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;if(this._interpolationConfig){let e=this._cursor.clone(),r=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!r}return!0}_handleFullNameStackForTagOpen(e,r){let n=Re(e,r);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===n)&&this._fullNameStack.push(n)}_handleFullNameStackForTagClose(e,r){let n=Re(e,r);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===n&&this._fullNameStack.pop()}};function F(t){return!or(t)||t===0}function hs(t){return or(t)||t===62||t===60||t===47||t===39||t===34||t===61||t===0}function Ma(t){return(t<97||12257)}function Oa(t){return t===59||t===0||!wn(t)}function qa(t){return t===59||t===0||!lr(t)}function Ha(t){return t!==125}function Va(t,e){return fs(t)===fs(e)}function fs(t){return t>=97&&t<=122?t-97+65:t}function Ua(t){let e=[],r;for(let n=0;n0&&r.indexOf(e.peek())!==-1;)n===e&&(e=e.clone()),e.advance();let s=this.locationFromCursor(e),i=this.locationFromCursor(this),a=n!==e?this.locationFromCursor(n):s;return new m(s,i,a)}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new ot('Unexpected character "EOF"',this);let r=this.charAt(e.offset);r===10?(e.line++,e.column=0):cr(r)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?0:this.charAt(e.offset)}locationFromCursor(e){return new ee(e.file,e.state.offset,e.state.line,e.state.column)}},xr=class t extends Wt{constructor(e,r){e instanceof t?(super(e),this.internalState={...e.internalState}):(super(e,r),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new t(this)}getChars(e){let r=e.clone(),n="";for(;r.internalState.offsetthis.internalState.peek;if(e()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),e()===110)this.state.peek=10;else if(e()===114)this.state.peek=13;else if(e()===118)this.state.peek=11;else if(e()===116)this.state.peek=9;else if(e()===98)this.state.peek=8;else if(e()===102)this.state.peek=12;else if(e()===117)if(this.advanceState(this.internalState),e()===123){this.advanceState(this.internalState);let r=this.clone(),n=0;for(;e()!==125;)this.advanceState(this.internalState),n++;this.state.peek=this.decodeHexDigits(r,n)}else{let r=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,4)}else if(e()===120){this.advanceState(this.internalState);let r=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,2)}else if(pr(e())){let r="",n=0,s=this.clone();for(;pr(e())&&n<3;)s=this.clone(),r+=String.fromCodePoint(e()),this.advanceState(this.internalState),n++;this.state.peek=parseInt(r,8),this.internalState=s.internalState}else cr(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,r){let n=this.input.slice(e.internalState.offset,e.internalState.offset+r),s=parseInt(n,16);if(isNaN(s))throw e.state=e.internalState,new ot("Invalid hexadecimal escape sequence",e);return s}},ot=class{constructor(e,r){this.msg=e,this.cursor=r}};var H=class t extends Fe{static create(e,r,n){return new t(e,r,n)}constructor(e,r,n){super(r,n),this.elementName=e}},Lr=class{constructor(e,r){this.rootNodes=e,this.errors=r}},Gt=class{constructor(e){this.getTagDefinition=e}parse(e,r,n,s=!1,i){let a=A=>(B,...y)=>A(B.toLowerCase(),...y),u=s?this.getTagDefinition:a(this.getTagDefinition),o=A=>u(A).getContentType(),p=s?i:a(i),g=Ss(e,r,i?(A,B,y,l)=>{let d=p(A,B,y,l);return d!==void 0?d:o(A)}:o,n),h=n&&n.canSelfClose||!1,C=n&&n.allowHtmComponentClosingTags||!1,E=new Fr(g.tokens,u,h,C,s);return E.build(),new Lr(E.rootNodes,g.errors.concat(E.errors))}},Fr=class t{constructor(e,r,n,s,i){this.tokens=e,this.getTagDefinition=r,this.canSelfClose=n,this.allowHtmComponentClosingTags=s,this.isTagNameCaseSensitive=i,this._index=-1,this._elementStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==25;)this._peek.type===0||this._peek.type===4?this._consumeStartTag(this._advance()):this._peek.type===3?(this._closeVoidElement(),this._consumeEndTag(this._advance())):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===20?this._consumeExpansion(this._advance()):this._peek.type===18?this._consumeDocType(this._advance()):this._advance()}_advance(){let e=this._peek;return this._index0)return this.errors=this.errors.concat(i.errors),null;let a=new m(e.sourceSpan.start,s.sourceSpan.end,e.sourceSpan.fullStart),u=new m(r.sourceSpan.start,s.sourceSpan.end,r.sourceSpan.fullStart);return new Pt(e.parts[0],i.rootNodes,a,e.sourceSpan,u)}_collectExpansionExpTokens(e){let r=[],n=[22];for(;;){if((this._peek.type===20||this._peek.type===22)&&n.push(this._peek.type),this._peek.type===23)if(Es(n,22)){if(n.pop(),n.length===0)return r}else return this.errors.push(H.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===24)if(Es(n,20))n.pop();else return this.errors.push(H.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===25)return this.errors.push(H.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.push(this._advance())}}_getText(e){let r=e.parts[0];if(r.length>0&&r[0]==` +`+t}function te(t){return t.sourceSpan.start.offset}function re(t){return t.sourceSpan.end.offset}async function Bi(t,e){if(t.lang==="yaml"){let r=t.value.trim(),n=r?await e(r,{parser:"yaml"}):"";return zr([t.startDelimiter,S,n,n?S:"",t.endDelimiter])}}var Fn=Bi;var Pn=new Proxy(()=>{},{get:()=>Pn}),pr=Pn;function Li(t){return Array.isArray(t)&&t.length>0}var Nn=Li;function Ge(t,e){return[t.isSelfClosing?"":Fi(t,e),Ye(t,e)]}function Fi(t,e){return t.lastChild&&Ce(t.lastChild)?"":[Pi(t,e),_t(t,e)]}function Ye(t,e){return(t.next?W(t.next):ge(t.parent))?"":[de(t,e),O(t,e)]}function Pi(t,e){return ge(t)?de(t.lastChild,e):""}function O(t,e){return Ce(t)?_t(t.parent,e):ze(t)?Dt(t.next):""}function _t(t,e){if(pr(!t.isSelfClosing),In(t,e))return"";switch(t.type){case"ieConditionalComment":return"";case"ieConditionalStartComment":return"]>";case"interpolation":return"}}";case"element":if(t.isSelfClosing)return"/>";default:return">"}}function In(t,e){return!t.isSelfClosing&&!t.endSourceSpan&&(He(t)||mt(t.parent,e))}function W(t){return t.prev&&t.prev.type!=="docType"&&!P(t.prev)&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function ge(t){var e;return((e=t.lastChild)==null?void 0:e.isTrailingSpaceSensitive)&&!t.lastChild.hasTrailingSpaces&&!P(gt(t.lastChild))&&!he(t)}function Ce(t){return!t.next&&!t.hasTrailingSpaces&&t.isTrailingSpaceSensitive&&P(gt(t))}function ze(t){return t.next&&!P(t.next)&&P(t)&&t.isTrailingSpaceSensitive&&!t.hasTrailingSpaces}function Ni(t){let e=t.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return e?e[1]?e[1].split(/\s+/):!0:!1}function je(t){return!t.prev&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function Ii(t,e,r){var f;let{node:n}=t;if(!Nn(n.attrs))return n.isSelfClosing?" ":"";let s=((f=n.prev)==null?void 0:f.type)==="comment"&&Ni(n.prev.value),i=typeof s=="boolean"?()=>s:Array.isArray(s)?d=>s.includes(d.rawName):()=>!1,a=t.map(({node:d})=>i(d)?w(e.originalText.slice(te(d),re(d))):r(),"attrs"),u=n.type==="element"&&n.fullName==="script"&&n.attrs.length===1&&n.attrs[0].fullName==="src"&&n.children.length===0,p=e.singleAttributePerLine&&n.attrs.length>1&&!fe(n,e)?S:_,l=[U([u?" ":_,Z(p,a)])];return n.firstChild&&je(n.firstChild)||n.isSelfClosing&&ge(n.parent)||u?l.push(n.isSelfClosing?" ":""):l.push(e.bracketSameLine?n.isSelfClosing?" ":"":n.isSelfClosing?_:x),l}function Ri(t){return t.firstChild&&je(t.firstChild)?"":vt(t)}function Ke(t,e,r){let{node:n}=t;return[Qe(n,e),Ii(t,e,r),n.isSelfClosing?"":Ri(n)]}function Qe(t,e){return t.prev&&ze(t.prev)?"":[q(t,e),Dt(t)]}function q(t,e){return je(t)?vt(t.parent):W(t)?de(t.prev,e):""}function Dt(t){switch(t.type){case"ieConditionalComment":case"ieConditionalStartComment":return`<${t.rawName}`;default:return`<${t.rawName}`}}function vt(t){switch(pr(!t.isSelfClosing),t.type){case"ieConditionalComment":return"]>";case"element":if(t.condition)return">";default:return">"}}var hr=new WeakMap;function $i(t,e){let{root:r}=t;return hr.has(r)||hr.set(r,r.children.some(n=>Et(n,e)&&["ts","typescript"].includes(n.attrMap.lang))),hr.get(r)}var Ne=$i;function Mi(t,e){if(!t.endSourceSpan)return"";let r=t.startSourceSpan.end.offset;t.firstChild&&je(t.firstChild)&&(r-=vt(t).length);let n=t.endSourceSpan.start.offset;return t.lastChild&&Ce(t.lastChild)?n+=_t(t,e).length:ge(t)&&(n-=de(t.lastChild,e).length),e.originalText.slice(r,n)}var yt=Mi;function Rn(t){return t===" "||t===` +`||t==="\f"||t==="\r"||t===" "}var Oi=/^[ \t\n\r\u000c]+/,qi=/^[, \t\n\r\u000c]+/,Hi=/^[^ \t\n\r\u000c]+/,Vi=/[,]+$/,$n=/^\d+$/,Ui=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function Wi(t){let e=t.length,r,n,s,i,a,u=0,o;function p(C){let E,A=C.exec(t.substring(u));if(A)return[E]=A,u+=E.length,E}let l=[];for(;;){if(p(qi),u>=e){if(l.length===0)throw new Error("Must contain one or more image candidate strings.");return l}o=u,r=p(Hi),n=[],r.slice(-1)===","?(r=r.replace(Vi,""),d()):f()}function f(){for(p(Oi),s="",i="in descriptor";;){if(a=t.charAt(u),i==="in descriptor")if(Rn(a))s&&(n.push(s),s="",i="after descriptor");else if(a===","){u+=1,s&&n.push(s),d();return}else if(a==="(")s+=a,i="in parens";else if(a===""){s&&n.push(s),d();return}else s+=a;else if(i==="in parens")if(a===")")s+=a,i="in descriptor";else if(a===""){n.push(s),d();return}else s+=a;else if(i==="after descriptor"&&!Rn(a))if(a===""){d();return}else i="in descriptor",u-=1;u+=1}}function d(){let C=!1,E,A,F,T,c={},g,y,I,b,$;for(T=0;T{s=n(a,u)});let i=await e(t,r,e);return s?D(i):Se(i)}function Gi(t){if(t.node.fullName==="srcset"&&(t.parent.fullName==="img"||t.parent.fullName==="source"))return()=>zi(k(t.node))}var On={width:"w",height:"h",density:"x"},Yi=Object.keys(On);function zi(t){let e=Mn(t),r=Yi.filter(l=>e.some(f=>Object.prototype.hasOwnProperty.call(f,l)));if(r.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[n]=r,s=On[n],i=e.map(l=>l.source.value),a=Math.max(...i.map(l=>l.length)),u=e.map(l=>l[n]?String(l[n].value):""),o=u.map(l=>{let f=l.indexOf(".");return f===-1?l.length:f}),p=Math.max(...o);return Se(Z([",",_],i.map((l,f)=>{let d=[l],C=u[f];if(C){let E=a-l.length+1,A=p-o[f],F=" ".repeat(E+A);d.push(ce(F," "),C+s)}return d})))}var qn=Gi;function ji(t,e){let{node:r}=t,n=k(r);if(r.fullName==="class"&&!e.parentParser&&!n.includes("{{"))return()=>n.trim().split(/\s+/).join(" ")}var Hn=ji;function Vn(t,e){let{node:r}=t,n=k(t.node).trim();if(r.fullName==="style"&&!e.parentParser&&!n.includes("{{"))return async s=>Se(await s(n,{parser:"css",__isHTMLStyleAttribute:!0}))}async function Un(t,e,r,n){let s=k(r.node),{left:i,operator:a,right:u}=Ki(s),o=Ne(r,n);return[D(await B(`function _(${i}) {}`,t,{parser:o?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",a," ",await B(u,t,{parser:o?"__ts_expression":"__js_expression"})]}function Ki(t){let e=/(.*?)\s+(in|of)\s+(.*)/s,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/,n=/^\(|\)$/g,s=t.match(e);if(!s)return;let i={};if(i.for=s[3].trim(),!i.for)return;let a=v(!1,s[1].trim(),n,""),u=a.match(r);u?(i.alias=a.replace(r,""),i.iterator1=u[1].trim(),u[2]&&(i.iterator2=u[2].trim())):i.alias=a;let o=[i.alias,i.iterator1,i.iterator2];if(!o.some((p,l)=>!p&&(l===0||o.slice(l+1).some(Boolean))))return{left:o.filter(Boolean).join(","),operator:s[2],right:i.for}}function Wn(t,e,r){let{node:n}=r,s=k(n);return B(`type T<${s}> = any`,t,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},ne)}function Gn(t,e,{parseWithTs:r}){return B(`function _(${t}) {}`,e,{parser:r?"babel-ts":"babel",__isVueBindings:!0})}function Yn(t){let e=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/,r=/^[$A-Z_a-z][\w$]*(?:\.[$A-Z_a-z][\w$]*|\['[^']*']|\["[^"]*"]|\[\d+]|\[[$A-Z_a-z][\w$]*])*$/,n=t.trim();return e.test(n)||r.test(n)}function Qi(t,e){if(e.parser!=="vue")return;let{node:r}=t,n=r.fullName;if(n==="v-for")return Un;if(n==="generic"&&Et(r.parent,e))return Wn;let s=k(r),i=Ne(t,e);if(vn(r)||yn(r,e))return a=>Gn(s,a,{parseWithTs:i});if(n.startsWith("@")||n.startsWith("v-on:"))return a=>Xi(s,a,{parseWithTs:i});if(n.startsWith(":")||n.startsWith("v-bind:"))return a=>Ji(s,a,{parseWithTs:i});if(n.startsWith("v-"))return a=>zn(s,a,{parseWithTs:i})}function Xi(t,e,{parseWithTs:r}){return Yn(t)?zn(t,e,{parseWithTs:r}):B(t,e,{parser:r?"__vue_ts_event_binding":"__vue_event_binding"},ne)}function Ji(t,e,{parseWithTs:r}){return B(t,e,{parser:r?"__vue_ts_expression":"__vue_expression"},ne)}function zn(t,e,{parseWithTs:r}){return B(t,e,{parser:r?"__ts_expression":"__js_expression"},ne)}var jn=Qi;var fr=/{{(.+?)}}/s;async function Kn(t,e){let r=[];for(let[n,s]of t.split(fr).entries())if(n%2===0)r.push(w(s));else try{r.push(D(["{{",U([_,await B(s,e,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0,trailingComma:"none"})]),_,"}}"]))}catch{r.push("{{",w(s),"}}")}return r}function mr({parser:t}){return(e,r,n)=>B(k(n.node),e,{parser:t,trailingComma:"none"},ne)}var Zi=mr({parser:"__ng_action"}),ea=mr({parser:"__ng_binding"}),ta=mr({parser:"__ng_directive"});function ra(t,e){if(e.parser!=="angular")return;let{node:r}=t,n=r.fullName;if(n.startsWith("(")&&n.endsWith(")")||n.startsWith("on-"))return Zi;if(n.startsWith("[")&&n.endsWith("]")||/^bind(?:on)?-/.test(n)||/^ng-(?:if|show|hide|class|style)$/.test(n))return ea;if(n.startsWith("*"))return ta;let s=k(r);if(/^i18n(?:-.+)?$/.test(n))return()=>Se(pt(St(r,s.trim())),!s.includes("@@"));if(fr.test(s))return i=>Kn(s,i)}var Qn=ra;function na(t,e){let{node:r}=t;if(r.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(e.originalText.slice(r.valueSpan.start.offset,r.valueSpan.end.offset))||e.parser==="lwc"&&r.value.startsWith("{")&&r.value.endsWith("}"))return[r.rawName,"=",r.value];for(let n of[qn,Vn,Hn,jn,Qn]){let s=n(t,e);if(s)return sa(s)}}}function sa(t){return async(e,r,n,s)=>{let i=await t(e,r,n,s);if(i)return i=ht(i,a=>typeof a=="string"?v(!1,a,'"',"""):a),[n.node.rawName,'="',D(i),'"']}}var Xn=na;function ia(t,e){let{node:r}=t;switch(r.type){case"element":if(M(r)||r.type==="interpolation")return;if(!r.isSelfClosing&&Ct(r,e)){let n=sr(r,e);return n?async(s,i)=>{let a=yt(r,e),u=/^\s*$/.test(a),o="";return u||(o=await s(tr(a),{parser:n,__embeddedInHtml:!0}),u=o===""),[q(r,e),D(Ke(t,e,i)),u?"":S,o,u?"":S,Ge(r,e),O(r,e)]}:void 0}break;case"text":if(M(r.parent)){let n=sr(r.parent,e);if(n)return async s=>{let i=n==="markdown"?ir(r.value.replace(/^[^\S\n]*\n/,"")):r.value,a={parser:n,__embeddedInHtml:!0};if(e.parser==="html"&&n==="babel"){let u="script",{attrMap:o}=r.parent;o&&(o.type==="module"||o.type==="text/babel"&&o["data-type"]==="module")&&(u="module"),a.__babelSourceType=u}return[J,q(r,e),await s(i,a,{stripTrailingHardline:!0}),O(r,e)]}}else if(r.parent.type==="interpolation")return async n=>{let s={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return e.parser==="angular"?(s.parser="__ng_interpolation",s.trailingComma="none"):e.parser==="vue"?s.parser=Ne(t,e)?"__vue_ts_expression":"__vue_expression":s.parser="__js_expression",[U([_,await n(r.value,s)]),r.parent.next&&W(r.parent.next)?" ":_]};break;case"attribute":return Xn(t,e);case"front-matter":return n=>Fn(r,n)}}var Jn=ia;function Xe(t,e,r){let n=t.node;return He(n)?[q(n,e),w(e.originalText.slice(te(n)+(n.prev&&ze(n.prev)?Dt(n).length:0),re(n)-(n.next&&W(n.next)?de(n,e).length:0))),O(n,e)]:r()}function bt(t,e){return P(t)&&P(e)?t.isTrailingSpaceSensitive?t.hasTrailingSpaces?dt(e)?S:_:"":dt(e)?S:x:ze(t)&&(He(e)||e.firstChild||e.isSelfClosing||e.type==="element"&&e.attrs.length>0)||t.type==="element"&&t.isSelfClosing&&W(e)?"":!e.isLeadingSpaceSensitive||dt(e)||W(e)&&t.lastChild&&Ce(t.lastChild)&&t.lastChild.lastChild&&Ce(t.lastChild.lastChild)?S:e.hasLeadingSpaces?_:x}function wt(t,e,r){let{node:n}=t;if(nr(n))return[J,...t.map(i=>{let a=i.node,u=a.prev?bt(a.prev,a):"";return[u?[u,Ve(a.prev)?S:""]:"",Xe(i,e,r)]},"children")];let s=n.children.map(()=>Symbol(""));return t.map((i,a)=>{let u=i.node;if(P(u)){if(u.prev&&P(u.prev)){let E=bt(u.prev,u);if(E)return Ve(u.prev)?[S,S,Xe(i,e,r)]:[E,Xe(i,e,r)]}return Xe(i,e,r)}let o=[],p=[],l=[],f=[],d=u.prev?bt(u.prev,u):"",C=u.next?bt(u,u.next):"";return d&&(Ve(u.prev)?o.push(S,S):d===S?o.push(S):P(u.prev)?p.push(d):p.push(ce("",x,{groupId:s[a-1]}))),C&&(Ve(u)?P(u.next)&&f.push(S,S):C===S?P(u.next)&&f.push(S):l.push(C)),[...o,D([...p,D([Xe(i,e,r),...l],{id:s[a]})]),...f]},"children")}function Zn(t,e,r){let{node:n}=t;if(mt(n,e))return[q(n,e),D(Ke(t,e,r)),w(yt(n,e)),...Ge(n,e),O(n,e)];let s=n.children.length===1&&n.firstChild.type==="interpolation"&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,i=Symbol("element-attr-group-id"),a=l=>D([D(Ke(t,e,r),{id:i}),l,Ge(n,e)]),u=l=>s?jr(l,{groupId:i}):(M(n)||We(n,e))&&n.parent.type==="root"&&e.parser==="vue"&&!e.vueIndentScriptAndStyle?l:U(l),o=()=>s?ce(x,"",{groupId:i}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?_:n.firstChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?Yr(x):x,p=()=>(n.next?W(n.next):ge(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":s?ce(x,"",{groupId:i}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?_:(n.lastChild.type==="comment"||n.lastChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${e.tabWidth*(t.ancestors.length-1)}}$`).test(n.lastChild.value)?"":x;return n.children.length===0?a(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?_:""):a([dn(n)?J:"",u([o(),wt(t,e,r)]),p()])}var Je=null;function Ze(t){if(Je!==null&&typeof Je.property){let e=Je;return Je=Ze.prototype=null,e}return Je=Ze.prototype=t??Object.create(null),new Ze}var aa=10;for(let t=0;t<=aa;t++)Ze();function dr(t){return Ze(t)}function ua(t,e="type"){dr(t);function r(n){let s=n[e],i=t[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return i}return r}var es=ua;var oa={"front-matter":[],root:["children"],element:["attrs","children"],ieConditionalComment:["children"],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:["children"],text:["children"],docType:[],comment:[],attribute:[],cdata:[]},ts=oa;var la=es(ts),rs=la;function ca(t,e,r){let{node:n}=t;switch(n.type){case"front-matter":return w(n.raw);case"root":return e.__onHtmlRoot&&e.__onHtmlRoot(n),[D(wt(t,e,r)),S];case"element":case"ieConditionalComment":return Zn(t,e,r);case"ieConditionalStartComment":case"ieConditionalEndComment":return[Qe(n),Ye(n)];case"interpolation":return[Qe(n,e),...t.map(r,"children"),Ye(n,e)];case"text":{if(n.parent.type==="interpolation"){let i=/\n[^\S\n]*$/,a=i.test(n.value),u=a?n.value.replace(i,""):n.value;return[w(u),a?S:""]}let s=Qr([q(n,e),...St(n),O(n,e)]);return Array.isArray(s)?pt(s):s}case"docType":return[D([Qe(n,e)," ",v(!1,n.value.replace(/^html\b/i,"html"),/\s+/g," ")]),Ye(n,e)];case"comment":return[q(n,e),w(e.originalText.slice(te(n),re(n))),O(n,e)];case"attribute":{if(n.value===null)return n.rawName;let s=ar(n.value),i=Zr(s,'"');return[n.rawName,"=",i,w(i==='"'?v(!1,s,'"',"""):v(!1,s,"'","'")),i]}case"cdata":default:throw new Xr(n,"HTML")}}var pa={preprocess:kn,print:ca,insertPragma:Ln,massageAstNode:tn,embed:Jn,getVisitorKeys:rs},ns=pa;var Nr={};qr(Nr,{angular:()=>su,html:()=>nu,lwc:()=>au,vue:()=>iu});var _c=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g");var ss;(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"})(ss||(ss={}));var is;(function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default"})(is||(is={}));var gr={name:"custom-elements"},Cr={name:"no-errors-schema"};var j;(function(t){t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL"})(j||(j={}));var as;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"})(as||(as={}));var L;(function(t){t[t.RAW_TEXT=0]="RAW_TEXT",t[t.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t[t.PARSABLE_DATA=2]="PARSABLE_DATA"})(L||(L={}));function et(t){if(t[0]!=":")return[null,t];let e=t.indexOf(":",1);if(e===-1)throw new Error(`Unsupported format "${t}" expecting ":namespace:name"`);return[t.slice(1,e),t.slice(e+1)]}function Sr(t){return et(t)[1]==="ng-container"}function Er(t){return et(t)[1]==="ng-content"}function Ie(t){return t===null?null:et(t)[0]}function Re(t,e){return t?`:${t}:${e}`:e}var xt;function Ar(){return xt||(xt={},Tt(j.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Tt(j.STYLE,["*|style"]),Tt(j.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),Tt(j.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),xt}function Tt(t,e){for(let r of e)xt[r.toLowerCase()]=t}var kt=class{};var ha="boolean",fa="number",ma="string",da="object",ga=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|"],us=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),Ca=Array.from(us).reduce((t,[e,r])=>(t.set(e,r),t),new Map),Bt=class extends kt{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,ga.forEach(e=>{let r=new Map,n=new Set,[s,i]=e.split("|"),a=i.split(","),[u,o]=s.split("^");u.split(",").forEach(l=>{this._schema.set(l.toLowerCase(),r),this._eventSchema.set(l.toLowerCase(),n)});let p=o&&this._schema.get(o.toLowerCase());if(p){for(let[l,f]of p)r.set(l,f);for(let l of this._eventSchema.get(o.toLowerCase()))n.add(l)}a.forEach(l=>{if(l.length>0)switch(l[0]){case"*":n.add(l.substring(1));break;case"!":r.set(l.substring(1),ha);break;case"#":r.set(l.substring(1),fa);break;case"%":r.set(l.substring(1),da);break;default:r.set(l,ma)}})})}hasProperty(e,r,n){if(n.some(i=>i.name===Cr.name))return!0;if(e.indexOf("-")>-1){if(Sr(e)||Er(e))return!1;if(n.some(i=>i.name===gr.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(r)}hasElement(e,r){return r.some(n=>n.name===Cr.name)||e.indexOf("-")>-1&&(Sr(e)||Er(e)||r.some(n=>n.name===gr.name))?!0:this._schema.has(e.toLowerCase())}securityContext(e,r,n){n&&(r=this.getMappedPropName(r)),e=e.toLowerCase(),r=r.toLowerCase();let s=Ar()[e+"|"+r];return s||(s=Ar()["*|"+r],s||j.NONE)}getMappedPropName(e){return us.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=... +If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let r=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(r.keys()).map(n=>Ca.get(n)??n)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return xn(e)}normalizeAnimationStyleValue(e,r,n){let s="",i=n.toString().trim(),a=null;if(Sa(e)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let u=n.match(/^[+-]?[\d\.]+([a-z]*)$/);u&&u[1].length==0&&(a=`Please provide a CSS unit value for ${r}:${n}`)}return{error:a,value:i+s}}};function Sa(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var h=class{constructor({closedByChildren:e,implicitNamespacePrefix:r,contentType:n=L.PARSABLE_DATA,closedByParent:s=!1,isVoid:i=!1,ignoreFirstLf:a=!1,preventNamespaceInheritance:u=!1,canSelfClose:o=!1}={}){this.closedByChildren={},this.closedByParent=!1,e&&e.length>0&&e.forEach(p=>this.closedByChildren[p]=!0),this.isVoid=i,this.closedByParent=s||i,this.implicitNamespacePrefix=r||null,this.contentType=n,this.ignoreFirstLf=a,this.preventNamespaceInheritance=u,this.canSelfClose=o??i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType=="object"?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},os,tt;function $e(t){return tt||(os=new h({canSelfClose:!0}),tt={base:new h({isVoid:!0}),meta:new h({isVoid:!0}),area:new h({isVoid:!0}),embed:new h({isVoid:!0}),link:new h({isVoid:!0}),img:new h({isVoid:!0}),input:new h({isVoid:!0}),param:new h({isVoid:!0}),hr:new h({isVoid:!0}),br:new h({isVoid:!0}),source:new h({isVoid:!0}),track:new h({isVoid:!0}),wbr:new h({isVoid:!0}),p:new h({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new h({closedByChildren:["tbody","tfoot"]}),tbody:new h({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new h({closedByChildren:["tbody"],closedByParent:!0}),tr:new h({closedByChildren:["tr"],closedByParent:!0}),td:new h({closedByChildren:["td","th"],closedByParent:!0}),th:new h({closedByChildren:["td","th"],closedByParent:!0}),col:new h({isVoid:!0}),svg:new h({implicitNamespacePrefix:"svg"}),foreignObject:new h({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new h({implicitNamespacePrefix:"math"}),li:new h({closedByChildren:["li"],closedByParent:!0}),dt:new h({closedByChildren:["dt","dd"]}),dd:new h({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new h({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new h({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new h({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new h({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new h({closedByChildren:["optgroup"],closedByParent:!0}),option:new h({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new h({ignoreFirstLf:!0}),listing:new h({ignoreFirstLf:!0}),style:new h({contentType:L.RAW_TEXT}),script:new h({contentType:L.RAW_TEXT}),title:new h({contentType:{default:L.ESCAPABLE_RAW_TEXT,svg:L.PARSABLE_DATA}}),textarea:new h({contentType:L.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},new Bt().allKnownElementNames().forEach(e=>{!tt.hasOwnProperty(e)&&Ie(e)===null&&(tt[e]=new h({canSelfClose:!1}))})),tt[t]??os}var Ee=class{constructor(e,r){this.sourceSpan=e,this.i18n=r}},Lt=class extends Ee{constructor(e,r,n,s){super(r,s),this.value=e,this.tokens=n,this.type="text"}visit(e,r){return e.visitText(this,r)}},Ft=class extends Ee{constructor(e,r,n,s){super(r,s),this.value=e,this.tokens=n,this.type="cdata"}visit(e,r){return e.visitCdata(this,r)}},Pt=class extends Ee{constructor(e,r,n,s,i,a){super(s,a),this.switchValue=e,this.type=r,this.cases=n,this.switchValueSourceSpan=i}visit(e,r){return e.visitExpansion(this,r)}},Nt=class{constructor(e,r,n,s,i){this.value=e,this.expression=r,this.sourceSpan=n,this.valueSourceSpan=s,this.expSourceSpan=i}visit(e,r){return e.visitExpansionCase(this,r)}},It=class extends Ee{constructor(e,r,n,s,i,a,u){super(n,u),this.name=e,this.value=r,this.keySpan=s,this.valueSpan=i,this.valueTokens=a,this.type="attribute"}visit(e,r){return e.visitAttribute(this,r)}get nameSpan(){return this.keySpan}},Rt=class extends Ee{constructor(e,r,n,s,i,a=null,u=null,o){super(s,o),this.name=e,this.attrs=r,this.children=n,this.startSourceSpan=i,this.endSourceSpan=a,this.nameSpan=u,this.type="element"}visit(e,r){return e.visitElement(this,r)}},$t=class{constructor(e,r){this.value=e,this.sourceSpan=r,this.type="comment"}visit(e,r){return e.visitComment(this,r)}},Mt=class{constructor(e,r){this.value=e,this.sourceSpan=r,this.type="docType"}visit(e,r){return e.visitDocType(this,r)}};function Ot(t,e,r=null){let n=[],s=t.visit?i=>t.visit(i,r)||i.visit(t,r):i=>i.visit(t,r);return e.forEach(i=>{let a=s(i);a&&n.push(a)}),n}var rt=class{constructor(){}visitElement(e,r){this.visitChildren(r,n=>{n(e.attrs),n(e.children)})}visitAttribute(e,r){}visitText(e,r){}visitCdata(e,r){}visitComment(e,r){}visitDocType(e,r){}visitExpansion(e,r){return this.visitChildren(r,n=>{n(e.cases)})}visitExpansionCase(e,r){}visitChildren(e,r){let n=[],s=this;function i(a){a&&n.push(Ot(s,a,e))}return r(i),Array.prototype.concat.apply([],n)}};var Me={AElig:"\xC6",AMP:"&",amp:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",af:"\u2061",Aring:"\xC5",angst:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",colone:"\u2254",coloneq:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",setminus:"\u2216",setmn:"\u2216",smallsetminus:"\u2216",ssetmn:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",doublebarwedge:"\u2306",Bcy:"\u0411",Because:"\u2235",becaus:"\u2235",because:"\u2235",Bernoullis:"\u212C",Bscr:"\u212C",bernou:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",breve:"\u02D8",Bumpeq:"\u224E",HumpDownHump:"\u224E",bump:"\u224E",CHcy:"\u0427",COPY:"\xA9",copy:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",DD:"\u2145",Cayleys:"\u212D",Cfr:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",cedil:"\xB8",CenterDot:"\xB7",centerdot:"\xB7",middot:"\xB7",Chi:"\u03A7",CircleDot:"\u2299",odot:"\u2299",CircleMinus:"\u2296",ominus:"\u2296",CirclePlus:"\u2295",oplus:"\u2295",CircleTimes:"\u2297",otimes:"\u2297",ClockwiseContourIntegral:"\u2232",cwconint:"\u2232",CloseCurlyDoubleQuote:"\u201D",rdquo:"\u201D",rdquor:"\u201D",CloseCurlyQuote:"\u2019",rsquo:"\u2019",rsquor:"\u2019",Colon:"\u2237",Proportion:"\u2237",Colone:"\u2A74",Congruent:"\u2261",equiv:"\u2261",Conint:"\u222F",DoubleContourIntegral:"\u222F",ContourIntegral:"\u222E",conint:"\u222E",oint:"\u222E",Copf:"\u2102",complexes:"\u2102",Coproduct:"\u2210",coprod:"\u2210",CounterClockwiseContourIntegral:"\u2233",awconint:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",asympeq:"\u224D",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",ddagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",DoubleLeftTee:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",nabla:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",acute:"\xB4",DiacriticalDot:"\u02D9",dot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",dblac:"\u02DD",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"\u02DC",tilde:"\u02DC",Diamond:"\u22C4",diam:"\u22C4",diamond:"\u22C4",DifferentialD:"\u2146",dd:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DoubleDot:"\xA8",die:"\xA8",uml:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",doteq:"\u2250",esdot:"\u2250",DoubleDownArrow:"\u21D3",Downarrow:"\u21D3",dArr:"\u21D3",DoubleLeftArrow:"\u21D0",Leftarrow:"\u21D0",lArr:"\u21D0",DoubleLeftRightArrow:"\u21D4",Leftrightarrow:"\u21D4",hArr:"\u21D4",iff:"\u21D4",DoubleLongLeftArrow:"\u27F8",Longleftarrow:"\u27F8",xlArr:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",Longleftrightarrow:"\u27FA",xhArr:"\u27FA",DoubleLongRightArrow:"\u27F9",Longrightarrow:"\u27F9",xrArr:"\u27F9",DoubleRightArrow:"\u21D2",Implies:"\u21D2",Rightarrow:"\u21D2",rArr:"\u21D2",DoubleRightTee:"\u22A8",vDash:"\u22A8",DoubleUpArrow:"\u21D1",Uparrow:"\u21D1",uArr:"\u21D1",DoubleUpDownArrow:"\u21D5",Updownarrow:"\u21D5",vArr:"\u21D5",DoubleVerticalBar:"\u2225",par:"\u2225",parallel:"\u2225",shortparallel:"\u2225",spar:"\u2225",DownArrow:"\u2193",ShortDownArrow:"\u2193",darr:"\u2193",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",duarr:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",leftharpoondown:"\u21BD",lhard:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",rhard:"\u21C1",rightharpoondown:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",top:"\u22A4",DownTeeArrow:"\u21A7",mapstodown:"\u21A7",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",in:"\u2208",isin:"\u2208",isinv:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",eqsim:"\u2242",esim:"\u2242",Equilibrium:"\u21CC",rightleftharpoons:"\u21CC",rlhar:"\u21CC",Escr:"\u2130",expectation:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",exist:"\u2203",ExponentialE:"\u2147",ee:"\u2147",exponentiale:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",blacksquare:"\u25AA",squarf:"\u25AA",squf:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",forall:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",gt:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",ggg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",ge:"\u2265",geq:"\u2265",GreaterEqualLess:"\u22DB",gel:"\u22DB",gtreqless:"\u22DB",GreaterFullEqual:"\u2267",gE:"\u2267",geqq:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",gl:"\u2277",gtrless:"\u2277",GreaterSlantEqual:"\u2A7E",geqslant:"\u2A7E",ges:"\u2A7E",GreaterTilde:"\u2273",gsim:"\u2273",gtrsim:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",NestedGreaterGreater:"\u226B",gg:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",caron:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",Poincareplane:"\u210C",HilbertSpace:"\u210B",Hscr:"\u210B",hamilt:"\u210B",Hopf:"\u210D",quaternions:"\u210D",HorizontalLine:"\u2500",boxh:"\u2500",Hstrok:"\u0126",HumpEqual:"\u224F",bumpe:"\u224F",bumpeq:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Im:"\u2111",image:"\u2111",imagpart:"\u2111",Igrave:"\xCC",Imacr:"\u012A",ImaginaryI:"\u2148",ii:"\u2148",Int:"\u222C",Integral:"\u222B",int:"\u222B",Intersection:"\u22C2",bigcap:"\u22C2",xcap:"\u22C2",InvisibleComma:"\u2063",ic:"\u2063",InvisibleTimes:"\u2062",it:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",imagline:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",lt:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Lscr:"\u2112",lagran:"\u2112",Larr:"\u219E",twoheadleftarrow:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",lang:"\u27E8",langle:"\u27E8",LeftArrow:"\u2190",ShortLeftArrow:"\u2190",larr:"\u2190",leftarrow:"\u2190",slarr:"\u2190",LeftArrowBar:"\u21E4",larrb:"\u21E4",LeftArrowRightArrow:"\u21C6",leftrightarrows:"\u21C6",lrarr:"\u21C6",LeftCeiling:"\u2308",lceil:"\u2308",LeftDoubleBracket:"\u27E6",lobrk:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",dharl:"\u21C3",downharpoonleft:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",lfloor:"\u230A",LeftRightArrow:"\u2194",harr:"\u2194",leftrightarrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",dashv:"\u22A3",LeftTeeArrow:"\u21A4",mapstoleft:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",vartriangleleft:"\u22B2",vltri:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",ltrie:"\u22B4",trianglelefteq:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",uharl:"\u21BF",upharpoonleft:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",leftharpoonup:"\u21BC",lharu:"\u21BC",LeftVectorBar:"\u2952",LessEqualGreater:"\u22DA",leg:"\u22DA",lesseqgtr:"\u22DA",LessFullEqual:"\u2266",lE:"\u2266",leqq:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",lg:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",leqslant:"\u2A7D",les:"\u2A7D",LessTilde:"\u2272",lesssim:"\u2272",lsim:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",lAarr:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",longleftarrow:"\u27F5",xlarr:"\u27F5",LongLeftRightArrow:"\u27F7",longleftrightarrow:"\u27F7",xharr:"\u27F7",LongRightArrow:"\u27F6",longrightarrow:"\u27F6",xrarr:"\u27F6",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",swarr:"\u2199",swarrow:"\u2199",LowerRightArrow:"\u2198",searr:"\u2198",searrow:"\u2198",Lsh:"\u21B0",lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",NestedLessLess:"\u226A",ll:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mscr:"\u2133",phmmat:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",mnplus:"\u2213",mp:"\u2213",Mopf:"\u{1D544}",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",ZeroWidthSpace:"\u200B",NewLine:` +`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nbsp:"\xA0",Nopf:"\u2115",naturals:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",nequiv:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",npar:"\u2226",nparallel:"\u2226",nshortparallel:"\u2226",nspar:"\u2226",NotElement:"\u2209",notin:"\u2209",notinva:"\u2209",NotEqual:"\u2260",ne:"\u2260",NotEqualTilde:"\u2242\u0338",nesim:"\u2242\u0338",NotExists:"\u2204",nexist:"\u2204",nexists:"\u2204",NotGreater:"\u226F",ngt:"\u226F",ngtr:"\u226F",NotGreaterEqual:"\u2271",nge:"\u2271",ngeq:"\u2271",NotGreaterFullEqual:"\u2267\u0338",ngE:"\u2267\u0338",ngeqq:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",nGtv:"\u226B\u0338",NotGreaterLess:"\u2279",ntgl:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",NotGreaterTilde:"\u2275",ngsim:"\u2275",NotHumpDownHump:"\u224E\u0338",nbump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",nbumpe:"\u224F\u0338",NotLeftTriangle:"\u22EA",nltri:"\u22EA",ntriangleleft:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",nltrie:"\u22EC",ntrianglelefteq:"\u22EC",NotLess:"\u226E",nless:"\u226E",nlt:"\u226E",NotLessEqual:"\u2270",nle:"\u2270",nleq:"\u2270",NotLessGreater:"\u2278",ntlg:"\u2278",NotLessLess:"\u226A\u0338",nLtv:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",NotLessTilde:"\u2274",nlsim:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",npr:"\u2280",nprec:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",npre:"\u2AAF\u0338",npreceq:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",nprcue:"\u22E0",NotReverseElement:"\u220C",notni:"\u220C",notniva:"\u220C",NotRightTriangle:"\u22EB",nrtri:"\u22EB",ntriangleright:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",nrtrie:"\u22ED",ntrianglerighteq:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",nsqsube:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",nsqsupe:"\u22E3",NotSubset:"\u2282\u20D2",nsubset:"\u2282\u20D2",vnsub:"\u2282\u20D2",NotSubsetEqual:"\u2288",nsube:"\u2288",nsubseteq:"\u2288",NotSucceeds:"\u2281",nsc:"\u2281",nsucc:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",nsce:"\u2AB0\u0338",nsucceq:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",nsccue:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",nsupset:"\u2283\u20D2",vnsup:"\u2283\u20D2",NotSupersetEqual:"\u2289",nsupe:"\u2289",nsupseteq:"\u2289",NotTilde:"\u2241",nsim:"\u2241",NotTildeEqual:"\u2244",nsime:"\u2244",nsimeq:"\u2244",NotTildeFullEqual:"\u2247",ncong:"\u2247",NotTildeTilde:"\u2249",nap:"\u2249",napprox:"\u2249",NotVerticalBar:"\u2224",nmid:"\u2224",nshortmid:"\u2224",nsmid:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",ohm:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",ldquo:"\u201C",OpenCurlyQuote:"\u2018",lsquo:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",oline:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",tbrk:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",part:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",plusmn:"\xB1",pm:"\xB1",Popf:"\u2119",primes:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",pr:"\u227A",prec:"\u227A",PrecedesEqual:"\u2AAF",pre:"\u2AAF",preceq:"\u2AAF",PrecedesSlantEqual:"\u227C",prcue:"\u227C",preccurlyeq:"\u227C",PrecedesTilde:"\u227E",precsim:"\u227E",prsim:"\u227E",Prime:"\u2033",Product:"\u220F",prod:"\u220F",Proportional:"\u221D",prop:"\u221D",propto:"\u221D",varpropto:"\u221D",vprop:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',quot:'"',Qfr:"\u{1D514}",Qopf:"\u211A",rationals:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",drbkarow:"\u2910",REG:"\xAE",circledR:"\xAE",reg:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",twoheadrightarrow:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",Rfr:"\u211C",real:"\u211C",realpart:"\u211C",ReverseElement:"\u220B",SuchThat:"\u220B",ni:"\u220B",niv:"\u220B",ReverseEquilibrium:"\u21CB",leftrightharpoons:"\u21CB",lrhar:"\u21CB",ReverseUpEquilibrium:"\u296F",duhar:"\u296F",Rho:"\u03A1",RightAngleBracket:"\u27E9",rang:"\u27E9",rangle:"\u27E9",RightArrow:"\u2192",ShortRightArrow:"\u2192",rarr:"\u2192",rightarrow:"\u2192",srarr:"\u2192",RightArrowBar:"\u21E5",rarrb:"\u21E5",RightArrowLeftArrow:"\u21C4",rightleftarrows:"\u21C4",rlarr:"\u21C4",RightCeiling:"\u2309",rceil:"\u2309",RightDoubleBracket:"\u27E7",robrk:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",dharr:"\u21C2",downharpoonright:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rfloor:"\u230B",RightTee:"\u22A2",vdash:"\u22A2",RightTeeArrow:"\u21A6",map:"\u21A6",mapsto:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",vartriangleright:"\u22B3",vrtri:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",rtrie:"\u22B5",trianglerighteq:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",uharr:"\u21BE",upharpoonright:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",rharu:"\u21C0",rightharpoonup:"\u21C0",RightVectorBar:"\u2953",Ropf:"\u211D",reals:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",rAarr:"\u21DB",Rscr:"\u211B",realine:"\u211B",Rsh:"\u21B1",rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortUpArrow:"\u2191",UpArrow:"\u2191",uarr:"\u2191",uparrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",compfn:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",radic:"\u221A",Square:"\u25A1",squ:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",sqcap:"\u2293",SquareSubset:"\u228F",sqsub:"\u228F",sqsubset:"\u228F",SquareSubsetEqual:"\u2291",sqsube:"\u2291",sqsubseteq:"\u2291",SquareSuperset:"\u2290",sqsup:"\u2290",sqsupset:"\u2290",SquareSupersetEqual:"\u2292",sqsupe:"\u2292",sqsupseteq:"\u2292",SquareUnion:"\u2294",sqcup:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",sstarf:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",sube:"\u2286",subseteq:"\u2286",Succeeds:"\u227B",sc:"\u227B",succ:"\u227B",SucceedsEqual:"\u2AB0",sce:"\u2AB0",succeq:"\u2AB0",SucceedsSlantEqual:"\u227D",sccue:"\u227D",succcurlyeq:"\u227D",SucceedsTilde:"\u227F",scsim:"\u227F",succsim:"\u227F",Sum:"\u2211",sum:"\u2211",Sup:"\u22D1",Supset:"\u22D1",Superset:"\u2283",sup:"\u2283",supset:"\u2283",SupersetEqual:"\u2287",supe:"\u2287",supseteq:"\u2287",THORN:"\xDE",TRADE:"\u2122",trade:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",there4:"\u2234",therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",Tilde:"\u223C",sim:"\u223C",thicksim:"\u223C",thksim:"\u223C",TildeEqual:"\u2243",sime:"\u2243",simeq:"\u2243",TildeFullEqual:"\u2245",cong:"\u2245",TildeTilde:"\u2248",ap:"\u2248",approx:"\u2248",asymp:"\u2248",thickapprox:"\u2248",thkap:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",tdot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",lowbar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",bbrk:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",bigcup:"\u22C3",xcup:"\u22C3",UnionPlus:"\u228E",uplus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",udarr:"\u21C5",UpDownArrow:"\u2195",updownarrow:"\u2195",varr:"\u2195",UpEquilibrium:"\u296E",udhar:"\u296E",UpTee:"\u22A5",bot:"\u22A5",bottom:"\u22A5",perp:"\u22A5",UpTeeArrow:"\u21A5",mapstoup:"\u21A5",UpperLeftArrow:"\u2196",nwarr:"\u2196",nwarrow:"\u2196",UpperRightArrow:"\u2197",nearr:"\u2197",nearrow:"\u2197",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",bigvee:"\u22C1",xvee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",mid:"\u2223",shortmid:"\u2223",smid:"\u2223",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",VeryThinSpace:"\u200A",hairsp:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",bigwedge:"\u22C0",xwedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",Zeta:"\u0396",Zfr:"\u2128",zeetrf:"\u2128",Zopf:"\u2124",integers:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",mstpos:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acy:"\u0430",aelig:"\xE6",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",and:"\u2227",wedge:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",angle:"\u2220",ange:"\u29A4",angmsd:"\u2221",measuredangle:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",approxeq:"\u224A",apid:"\u224B",apos:"'",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",midast:"*",atilde:"\xE3",auml:"\xE4",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",bcong:"\u224C",backepsilon:"\u03F6",bepsi:"\u03F6",backprime:"\u2035",bprime:"\u2035",backsim:"\u223D",bsim:"\u223D",backsimeq:"\u22CD",bsime:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrktbrk:"\u23B6",bcy:"\u0431",bdquo:"\u201E",ldquor:"\u201E",bemptyv:"\u29B0",beta:"\u03B2",beth:"\u2136",between:"\u226C",twixt:"\u226C",bfr:"\u{1D51F}",bigcirc:"\u25EF",xcirc:"\u25EF",bigodot:"\u2A00",xodot:"\u2A00",bigoplus:"\u2A01",xoplus:"\u2A01",bigotimes:"\u2A02",xotime:"\u2A02",bigsqcup:"\u2A06",xsqcup:"\u2A06",bigstar:"\u2605",starf:"\u2605",bigtriangledown:"\u25BD",xdtri:"\u25BD",bigtriangleup:"\u25B3",xutri:"\u25B3",biguplus:"\u2A04",xuplus:"\u2A04",bkarow:"\u290D",rbarr:"\u290D",blacklozenge:"\u29EB",lozf:"\u29EB",blacktriangle:"\u25B4",utrif:"\u25B4",blacktriangledown:"\u25BE",dtrif:"\u25BE",blacktriangleleft:"\u25C2",ltrif:"\u25C2",blacktriangleright:"\u25B8",rtrif:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",minusb:"\u229F",boxplus:"\u229E",plusb:"\u229E",boxtimes:"\u22A0",timesb:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bumpE:"\u2AAE",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cemptyv:"\u29B2",cent:"\xA2",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",cire:"\u2257",circlearrowleft:"\u21BA",olarr:"\u21BA",circlearrowright:"\u21BB",orarr:"\u21BB",circledS:"\u24C8",oS:"\u24C8",circledast:"\u229B",oast:"\u229B",circledcirc:"\u229A",ocir:"\u229A",circleddash:"\u229D",odash:"\u229D",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",comma:",",commat:"@",comp:"\u2201",complement:"\u2201",congdot:"\u2A6D",copf:"\u{1D554}",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",curlyeqprec:"\u22DE",cuesc:"\u22DF",curlyeqsucc:"\u22DF",cularr:"\u21B6",curvearrowleft:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curvearrowright:"\u21B7",curarrm:"\u293C",curlyvee:"\u22CE",cuvee:"\u22CE",curlywedge:"\u22CF",cuwed:"\u22CF",curren:"\xA4",cwint:"\u2231",cylcty:"\u232D",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",dash:"\u2010",hyphen:"\u2010",dbkarow:"\u290F",rBarr:"\u290F",dcaron:"\u010F",dcy:"\u0434",ddarr:"\u21CA",downdownarrows:"\u21CA",ddotseq:"\u2A77",eDDot:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",diamondsuit:"\u2666",diams:"\u2666",digamma:"\u03DD",gammad:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",llcorner:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",doteqdot:"\u2251",eDot:"\u2251",dotminus:"\u2238",minusd:"\u2238",dotplus:"\u2214",plusdo:"\u2214",dotsquare:"\u22A1",sdotb:"\u22A1",drcorn:"\u231F",lrcorner:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",triangledown:"\u25BF",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",eqcirc:"\u2256",ecirc:"\xEA",ecolon:"\u2255",eqcolon:"\u2255",ecy:"\u044D",edot:"\u0117",efDot:"\u2252",fallingdotseq:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",eqslantgtr:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",eqslantless:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",straightepsilon:"\u03F5",varepsilon:"\u03F5",equals:"=",equest:"\u225F",questeq:"\u225F",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",risingdotseq:"\u2253",erarr:"\u2971",escr:"\u212F",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",fork:"\u22D4",pitchfork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",half:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",sfrown:"\u2322",fscr:"\u{1D4BB}",gEl:"\u2A8C",gtreqqless:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gap:"\u2A86",gtrapprox:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gimel:"\u2137",gjcy:"\u0453",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gneqq:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gnsim:"\u22E7",gopf:"\u{1D558}",gscr:"\u210A",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtrdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrarr:"\u2978",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hardcy:"\u044A",harrcir:"\u2948",harrw:"\u21AD",leftrightsquigarrow:"\u21AD",hbar:"\u210F",hslash:"\u210F",planck:"\u210F",plankv:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",mldr:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",searhk:"\u2925",hkswarow:"\u2926",swarhk:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",larrhk:"\u21A9",hookrightarrow:"\u21AA",rarrhk:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hstrok:"\u0127",hybull:"\u2043",iacute:"\xED",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",ifr:"\u{1D526}",igrave:"\xEC",iiiint:"\u2A0C",qint:"\u2A0C",iiint:"\u222D",tint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",imath:"\u0131",inodot:"\u0131",imof:"\u22B7",imped:"\u01B5",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",intcal:"\u22BA",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iquest:"\xBF",iscr:"\u{1D4BE}",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",varkappa:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAtail:"\u291B",lBarr:"\u290E",lEg:"\u2A8B",lesseqqgtr:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lambda:"\u03BB",langd:"\u2991",lap:"\u2A85",lessapprox:"\u2A85",laquo:"\xAB",larrbfs:"\u291F",larrfs:"\u291D",larrlp:"\u21AB",looparrowleft:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",leftarrowtail:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lcy:"\u043B",ldca:"\u2936",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leq:"\u2264",leftleftarrows:"\u21C7",llarr:"\u21C7",leftthreetimes:"\u22CB",lthree:"\u22CB",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessdot:"\u22D6",ltdot:"\u22D6",lfisht:"\u297C",lfr:"\u{1D529}",lgE:"\u2A91",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lneqq:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",longmapsto:"\u27FC",xmap:"\u27FC",looparrowright:"\u21AC",rarrlp:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",loz:"\u25CA",lozenge:"\u25CA",lpar:"(",lparlt:"\u2993",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsime:"\u2A8D",lsimg:"\u2A8F",lsquor:"\u201A",sbquo:"\u201A",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",triangleleft:"\u25C3",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",strns:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midcir:"\u2AF0",minus:"\u2212",minusdu:"\u2A2A",mlcp:"\u2ADB",models:"\u22A7",mopf:"\u{1D55E}",mscr:"\u{1D4C2}",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nLeftarrow:"\u21CD",nlArr:"\u21CD",nLeftrightarrow:"\u21CE",nhArr:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nRightarrow:"\u21CF",nrArr:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nacute:"\u0144",nang:"\u2220\u20D2",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",natur:"\u266E",natural:"\u266E",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",neArr:"\u21D7",nearhk:"\u2924",nedot:"\u2250\u0338",nesear:"\u2928",toea:"\u2928",nfr:"\u{1D52B}",nharr:"\u21AE",nleftrightarrow:"\u21AE",nhpar:"\u2AF2",nis:"\u22FC",nisd:"\u22FA",njcy:"\u045A",nlE:"\u2266\u0338",nleqq:"\u2266\u0338",nlarr:"\u219A",nleftarrow:"\u219A",nldr:"\u2025",nopf:"\u{1D55F}",not:"\xAC",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinvb:"\u22F7",notinvc:"\u22F6",notnivb:"\u22FE",notnivc:"\u22FD",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",nrarr:"\u219B",nrightarrow:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nscr:"\u{1D4C3}",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsubseteqq:"\u2AC5\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupseteqq:"\u2AC6\u0338",ntilde:"\xF1",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwnear:"\u2927",oacute:"\xF3",ocirc:"\xF4",ocy:"\u043E",odblac:"\u0151",odiv:"\u2A38",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",olcir:"\u29BE",olcross:"\u29BB",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",or:"\u2228",vee:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",oscr:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",para:"\xB6",parsim:"\u2AF3",parsl:"\u2AFD",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",straightphi:"\u03D5",varphi:"\u03D5",phone:"\u260E",pi:"\u03C0",piv:"\u03D6",varpi:"\u03D6",planckh:"\u210E",plus:"+",plusacir:"\u2A23",pluscir:"\u2A22",plusdu:"\u2A25",pluse:"\u2A72",plussim:"\u2A26",plustwo:"\u2A27",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",prE:"\u2AB3",prap:"\u2AB7",precapprox:"\u2AB7",precnapprox:"\u2AB9",prnap:"\u2AB9",precneqq:"\u2AB5",prnE:"\u2AB5",precnsim:"\u22E8",prnsim:"\u22E8",prime:"\u2032",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quatint:"\u2A16",quest:"?",rAtail:"\u291C",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",raemptyv:"\u29B3",rangd:"\u2992",range:"\u29A5",raquo:"\xBB",rarrap:"\u2975",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rightarrowtail:"\u21A3",rarrw:"\u219D",rightsquigarrow:"\u219D",ratail:"\u291A",ratio:"\u2236",rbbrk:"\u2773",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdsh:"\u21B3",rect:"\u25AD",rfisht:"\u297D",rfr:"\u{1D52F}",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",varrho:"\u03F1",rightrightarrows:"\u21C9",rrarr:"\u21C9",rightthreetimes:"\u22CC",rthree:"\u22CC",ring:"\u02DA",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rsaquo:"\u203A",rscr:"\u{1D4C7}",rtimes:"\u22CA",rtri:"\u25B9",triangleright:"\u25B9",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",scE:"\u2AB4",scap:"\u2AB8",succapprox:"\u2AB8",scaron:"\u0161",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",succneqq:"\u2AB6",scnap:"\u2ABA",succnapprox:"\u2ABA",scnsim:"\u22E9",succnsim:"\u22E9",scpolint:"\u2A13",scy:"\u0441",sdot:"\u22C5",sdote:"\u2A66",seArr:"\u21D8",sect:"\xA7",semi:";",seswar:"\u2929",tosa:"\u2929",sext:"\u2736",sfr:"\u{1D530}",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",varsigma:"\u03C2",simdot:"\u2A6A",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",smashp:"\u2A33",smeparsl:"\u29E4",smile:"\u2323",ssmile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",sqcaps:"\u2293\uFE00",sqcups:"\u2294\uFE00",sscr:"\u{1D4C8}",star:"\u2606",sub:"\u2282",subset:"\u2282",subE:"\u2AC5",subseteqq:"\u2AC5",subdot:"\u2ABD",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subsetneqq:"\u2ACB",subne:"\u228A",subsetneq:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supseteqq:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supsetneqq:"\u2ACC",supne:"\u228B",supsetneq:"\u228B",supplus:"\u2AC0",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",telrec:"\u2315",tfr:"\u{1D531}",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",vartheta:"\u03D1",thorn:"\xFE",times:"\xD7",timesbar:"\u2A31",timesd:"\u2A30",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tprime:"\u2034",triangle:"\u25B5",utri:"\u25B5",triangleq:"\u225C",trie:"\u225C",tridot:"\u25EC",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",uHar:"\u2963",uacute:"\xFA",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udblac:"\u0171",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uogon:"\u0173",uopf:"\u{1D566}",upsi:"\u03C5",upsilon:"\u03C5",upuparrows:"\u21C8",uuarr:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",uuml:"\xFC",uwangle:"\u29A7",vBar:"\u2AE8",vBarv:"\u2AE9",vangrt:"\u299C",varsubsetneq:"\u228A\uFE00",vsubne:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",vsubnE:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",vsupne:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vsupnE:"\u2ACC\uFE00",vcy:"\u0432",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",vfr:"\u{1D533}",vopf:"\u{1D567}",vscr:"\u{1D4CB}",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedgeq:"\u2259",weierp:"\u2118",wp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wscr:"\u{1D4CC}",xfr:"\u{1D535}",xi:"\u03BE",xnis:"\u22FB",xopf:"\u{1D569}",xscr:"\u{1D4CD}",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"},Aa="\uE500";Me.ngsp=Aa;var _a=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function ls(t,e){if(e!=null&&!(Array.isArray(e)&&e.length==2))throw new Error(`Expected '${t}' to be an array, [start, end].`);if(e!=null){let r=e[0],n=e[1];_a.forEach(s=>{if(s.test(r)||s.test(n))throw new Error(`['${r}', '${n}'] contains unusable interpolation symbol.`)})}}var _r=class t{static fromArray(e){return e?(ls("interpolation",e),new t(e[0],e[1])):Dr}constructor(e,r){this.start=e,this.end=r}},Dr=new _r("{{","}}");var it=class extends Pe{constructor(e,r,n){super(n,e),this.tokenType=r}},br=class{constructor(e,r,n){this.tokens=e,this.errors=r,this.nonNormalizedIcuExpressions=n}};function As(t,e,r,n={}){let s=new wr(new me(t,e),r,n);return s.tokenize(),new br(Ya(s.tokens),s.errors,s.nonNormalizedIcuExpressions)}var Oa=/\r\n?/g;function Oe(t){return`Unexpected character "${t===0?"EOF":String.fromCharCode(t)}"`}function fs(t){return`Unknown entity "${t}" - use the "&#;" or "&#x;" syntax`}function qa(t,e){return`Unable to parse entity "${e}" - ${t} character reference entities must end with ";"`}var Ut;(function(t){t.HEX="hexadecimal",t.DEC="decimal"})(Ut||(Ut={}));var at=class{constructor(e){this.error=e}},wr=class{constructor(e,r,n){this._getTagContentType=r,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=n.tokenizeExpansionForms||!1,this._interpolationConfig=n.interpolationConfig||Dr,this._leadingTriviaCodePoints=n.leadingTriviaChars&&n.leadingTriviaChars.map(i=>i.codePointAt(0)||0),this._canSelfClose=n.canSelfClose||!1,this._allowHtmComponentClosingTags=n.allowHtmComponentClosingTags||!1;let s=n.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=n.escapedString?new Tr(e,s):new Wt(e,s),this._preserveLineEndings=n.preserveLineEndings||!1,this._escapedString=n.escapedString||!1,this._i18nNormalizeLineEndingsInICUs=n.i18nNormalizeLineEndingsInICUs||!1;try{this._cursor.init()}catch(i){this.handleError(i)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(Oa,` +`)}tokenize(){for(;this._cursor.peek()!==0;){let e=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else{let r=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=r,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(r){this.handleError(r)}}this._beginToken(25),this._endToken([])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(Wa(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,r=this._cursor.clone()){this._currentTokenStart=r,this._currentTokenType=e}_endToken(e,r){if(this._currentTokenStart===null)throw new it("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(r));if(this._currentTokenType===null)throw new it("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let n={type:this._currentTokenType,parts:e,sourceSpan:(r??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n}_createError(e,r){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let n=new it(e,this._currentTokenType,r);return this._currentTokenStart=null,this._currentTokenType=null,new at(n)}handleError(e){if(e instanceof ut&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof at)this.errors.push(e.error);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return Ga(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let r=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(Oe(this._cursor.peek()),this._cursor.getSpan(r))}_attemptStr(e){let r=e.length;if(this._cursor.charsLeft()this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(e){this._beginToken(10,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(11),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(12,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(18,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(19),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(){let e=this._cursor.clone(),r="";for(;this._cursor.peek()!==58&&!Ha(this._cursor.peek());)this._cursor.advance();let n;this._cursor.peek()===58?(r=this._cursor.getChars(e),this._cursor.advance(),n=this._cursor.clone()):n=e,this._requireCharCodeUntilFn(ms,r===""?0:1);let s=this._cursor.getChars(n);return[r,s]}_consumeTagOpen(e){let r,n,s,i=[];try{if(!or(this._cursor.peek()))throw this._createError(Oe(this._cursor.peek()),this._cursor.getSpan(e));for(s=this._consumeTagOpenStart(e),n=s.parts[0],r=s.parts[1],this._attemptCharCodeUntilFn(N);this._cursor.peek()!==47&&this._cursor.peek()!==62&&this._cursor.peek()!==60&&this._cursor.peek()!==0;){let[u,o]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(N),this._attemptCharCode(61)){this._attemptCharCodeUntilFn(N);let p=this._consumeAttributeValue();i.push({prefix:u,name:o,value:p})}else i.push({prefix:u,name:o});this._attemptCharCodeUntilFn(N)}this._consumeTagOpenEnd()}catch(u){if(u instanceof at){s?s.type=4:(this._beginToken(5,e),this._endToken(["<"]));return}throw u}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===2)return;let a=this._getTagContentType(r,n,this._fullNameStack.length>0,i);this._handleFullNameStackForTagOpen(n,r),a===L.RAW_TEXT?this._consumeRawTextWithTagClose(n,r,!1):a===L.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,r,!0)}_consumeRawTextWithTagClose(e,r,n){this._consumeRawText(n,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(N),!this._attemptStrCaseInsensitive(e?`${e}:${r}`:r))?!1:(this._attemptCharCodeUntilFn(N),this._attemptCharCode(62))),this._beginToken(3),this._requireCharCodeUntilFn(s=>s===62,3),this._cursor.advance(),this._endToken([e,r]),this._handleFullNameStackForTagClose(e,r)}_consumeTagOpenStart(e){this._beginToken(0,e);let r=this._consumePrefixAndName();return this._endToken(r)}_consumeAttributeName(){let e=this._cursor.peek();if(e===39||e===34)throw this._createError(Oe(e),this._cursor.getSpan());this._beginToken(14);let r=this._consumePrefixAndName();return this._endToken(r),r}_consumeAttributeValue(){let e;if(this._cursor.peek()===39||this._cursor.peek()===34){let r=this._cursor.peek();this._consumeQuote(r);let n=()=>this._cursor.peek()===r;e=this._consumeWithInterpolation(16,17,n,n),this._consumeQuote(r)}else{let r=()=>ms(this._cursor.peek());e=this._consumeWithInterpolation(16,17,r,r)}return e}_consumeQuote(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?2:1;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){if(this._beginToken(3,e),this._attemptCharCodeUntilFn(N),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(N),this._requireCharCode(62),this._endToken([]);else{let[r,n]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(N),this._requireCharCode(62),this._endToken([r,n]),this._handleFullNameStackForTagClose(r,n)}}_consumeExpansionFormStart(){this._beginToken(20),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(20),this._beginToken(7);let e=this._readUntil(44),r=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([r]);else{let s=this._endToken([e]);r!==e&&this.nonNormalizedIcuExpressions.push(s)}this._requireCharCode(44),this._attemptCharCodeUntilFn(N),this._beginToken(7);let n=this._readUntil(44);this._endToken([n]),this._requireCharCode(44),this._attemptCharCodeUntilFn(N)}_consumeExpansionCaseStart(){this._beginToken(21);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(N),this._beginToken(22),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(N),this._expansionCaseStack.push(22)}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(N),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,r,n,s){this._beginToken(e);let i=[];for(;!n();){let u=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(i.join(""))],u),i.length=0,this._consumeInterpolation(r,u,s),this._beginToken(e)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(i.join(""))]),i.length=0,this._consumeEntity(e),this._beginToken(e)):i.push(this._readChar())}this._inInterpolation=!1;let a=this._processCarriageReturns(i.join(""));return this._endToken([a]),a}_consumeInterpolation(e,r,n){let s=[];this._beginToken(e,r),s.push(this._interpolationConfig.start);let i=this._cursor.clone(),a=null,u=!1;for(;this._cursor.peek()!==0&&(n===null||!n());){let o=this._cursor.clone();if(this._isTagStart()){this._cursor=o,s.push(this._getProcessedChars(i,o)),this._endToken(s);return}if(a===null)if(this._attemptStr(this._interpolationConfig.end)){s.push(this._getProcessedChars(i,o)),s.push(this._interpolationConfig.end),this._endToken(s);return}else this._attemptStr("//")&&(u=!0);let p=this._cursor.peek();this._cursor.advance(),p===92?this._cursor.advance():p===a?a=null:!u&&a===null&&wn(p)&&(a=p)}s.push(this._getProcessedChars(i,this._cursor)),this._endToken(s)}_getProcessedChars(e,r){return this._processCarriageReturns(r.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase()))}_isTagStart(){if(this._cursor.peek()===60){let e=this._cursor.clone();e.advance();let r=e.peek();if(97<=r&&r<=122||65<=r&&r<=90||r===47||r===33)return!0}return!1}_readUntil(e){let r=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(r)}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===22}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===20}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;if(this._interpolationConfig){let e=this._cursor.clone(),r=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!r}return!0}_handleFullNameStackForTagOpen(e,r){let n=Re(e,r);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===n)&&this._fullNameStack.push(n)}_handleFullNameStackForTagClose(e,r){let n=Re(e,r);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===n&&this._fullNameStack.pop()}};function N(t){return!ur(t)||t===0}function ms(t){return ur(t)||t===62||t===60||t===47||t===39||t===34||t===61||t===0}function Ha(t){return(t<97||12257)}function Va(t){return t===59||t===0||!bn(t)}function Ua(t){return t===59||t===0||!or(t)}function Wa(t){return t!==125}function Ga(t,e){return ds(t)===ds(e)}function ds(t){return t>=97&&t<=122?t-97+65:t}function Ya(t){let e=[],r;for(let n=0;n0&&r.indexOf(e.peek())!==-1;)n===e&&(e=e.clone()),e.advance();let s=this.locationFromCursor(e),i=this.locationFromCursor(this),a=n!==e?this.locationFromCursor(n):s;return new m(s,i,a)}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new ut('Unexpected character "EOF"',this);let r=this.charAt(e.offset);r===10?(e.line++,e.column=0):lr(r)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?0:this.charAt(e.offset)}locationFromCursor(e){return new ee(e.file,e.state.offset,e.state.line,e.state.column)}},Tr=class t extends Wt{constructor(e,r){e instanceof t?(super(e),this.internalState={...e.internalState}):(super(e,r),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new t(this)}getChars(e){let r=e.clone(),n="";for(;r.internalState.offsetthis.internalState.peek;if(e()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),e()===110)this.state.peek=10;else if(e()===114)this.state.peek=13;else if(e()===118)this.state.peek=11;else if(e()===116)this.state.peek=9;else if(e()===98)this.state.peek=8;else if(e()===102)this.state.peek=12;else if(e()===117)if(this.advanceState(this.internalState),e()===123){this.advanceState(this.internalState);let r=this.clone(),n=0;for(;e()!==125;)this.advanceState(this.internalState),n++;this.state.peek=this.decodeHexDigits(r,n)}else{let r=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,4)}else if(e()===120){this.advanceState(this.internalState);let r=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,2)}else if(cr(e())){let r="",n=0,s=this.clone();for(;cr(e())&&n<3;)s=this.clone(),r+=String.fromCodePoint(e()),this.advanceState(this.internalState),n++;this.state.peek=parseInt(r,8),this.internalState=s.internalState}else lr(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,r){let n=this.input.slice(e.internalState.offset,e.internalState.offset+r),s=parseInt(n,16);if(isNaN(s))throw e.state=e.internalState,new ut("Invalid hexadecimal escape sequence",e);return s}},ut=class{constructor(e,r){this.msg=e,this.cursor=r}};var H=class t extends Pe{static create(e,r,n){return new t(e,r,n)}constructor(e,r,n){super(r,n),this.elementName=e}},Br=class{constructor(e,r){this.rootNodes=e,this.errors=r}},Gt=class{constructor(e){this.getTagDefinition=e}parse(e,r,n,s=!1,i){let a=A=>(F,...T)=>A(F.toLowerCase(),...T),u=s?this.getTagDefinition:a(this.getTagDefinition),o=A=>u(A).getContentType(),p=s?i:a(i),f=As(e,r,i?(A,F,T,c)=>{let g=p(A,F,T,c);return g!==void 0?g:o(A)}:o,n),d=n&&n.canSelfClose||!1,C=n&&n.allowHtmComponentClosingTags||!1,E=new Lr(f.tokens,u,d,C,s);return E.build(),new Br(E.rootNodes,f.errors.concat(E.errors))}},Lr=class t{constructor(e,r,n,s,i){this.tokens=e,this.getTagDefinition=r,this.canSelfClose=n,this.allowHtmComponentClosingTags=s,this.isTagNameCaseSensitive=i,this._index=-1,this._elementStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==25;)this._peek.type===0||this._peek.type===4?this._consumeStartTag(this._advance()):this._peek.type===3?(this._closeVoidElement(),this._consumeEndTag(this._advance())):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===20?this._consumeExpansion(this._advance()):this._peek.type===18?this._consumeDocType(this._advance()):this._advance()}_advance(){let e=this._peek;return this._index0)return this.errors=this.errors.concat(i.errors),null;let a=new m(e.sourceSpan.start,s.sourceSpan.end,e.sourceSpan.fullStart),u=new m(r.sourceSpan.start,s.sourceSpan.end,r.sourceSpan.fullStart);return new Nt(e.parts[0],i.rootNodes,a,e.sourceSpan,u)}_collectExpansionExpTokens(e){let r=[],n=[22];for(;;){if((this._peek.type===20||this._peek.type===22)&&n.push(this._peek.type),this._peek.type===23)if(_s(n,22)){if(n.pop(),n.length===0)return r}else return this.errors.push(H.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===24)if(_s(n,20))n.pop();else return this.errors.push(H.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===25)return this.errors.push(H.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.push(this._advance())}}_getText(e){let r=e.parts[0];if(r.length>0&&r[0]==` `){let n=this._getParentElement();n!=null&&n.children.length==0&&this.getTagDefinition(n.name).ignoreFirstLf&&(r=r.substring(1))}return r}_consumeText(e){let r=[e],n=e.sourceSpan,s=e.parts[0];if(s.length>0&&s[0]===` -`){let i=this._getParentElement();i!=null&&i.children.length===0&&this.getTagDefinition(i.name).ignoreFirstLf&&(s=s.substring(1),r[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[s]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)e=this._advance(),r.push(e),e.type===8?s+=e.parts.join("").replace(/&([^;]+);/g,As):e.type===9?s+=e.parts[0]:s+=e.parts.join("");if(s.length>0){let i=e.sourceSpan;this._addToParent(new Lt(s,new m(n.start,i.end,n.fullStart,n.details),r))}}_closeVoidElement(){let e=this._getParentElement();e&&this.getTagDefinition(e.name).isVoid&&this._elementStack.pop()}_consumeStartTag(e){let[r,n]=e.parts,s=[];for(;this._peek.type===14;)s.push(this._consumeAttr(this._advance()));let i=this._getElementFullName(r,n,this._getParentElement()),a=!1;if(this._peek.type===2){this._advance(),a=!0;let h=this.getTagDefinition(i);this.canSelfClose||h.canSelfClose||Ie(i)!==null||h.isVoid||this.errors.push(H.create(i,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else this._peek.type===1&&(this._advance(),a=!1);let u=this._peek.sourceSpan.fullStart,o=new m(e.sourceSpan.start,u,e.sourceSpan.fullStart),p=new m(e.sourceSpan.start,u,e.sourceSpan.fullStart),c=new m(e.sourceSpan.start.moveBy(1),e.sourceSpan.end),g=new Rt(i,s,[],o,p,void 0,c);this._pushElement(g),a?this._popElement(i,o):e.type===4&&(this._popElement(i,null),this.errors.push(H.create(i,o,`Opening tag "${i}" not terminated.`)))}_pushElement(e){let r=this._getParentElement();r&&this.getTagDefinition(r.name).isClosedByChild(e.name)&&this._elementStack.pop(),this._addToParent(e),this._elementStack.push(e)}_consumeEndTag(e){let r=this.allowHtmComponentClosingTags&&e.parts.length===0?null:this._getElementFullName(e.parts[0],e.parts[1],this._getParentElement());if(r&&this.getTagDefinition(r).isVoid)this.errors.push(H.create(r,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popElement(r,e.sourceSpan)){let n=`Unexpected closing tag "${r}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(H.create(r,e.sourceSpan,n))}}_popElement(e,r){let n=!1;for(let s=this._elementStack.length-1;s>=0;s--){let i=this._elementStack[s];if(!e||(Ie(i.name)?i.name==e:i.name.toLowerCase()==e.toLowerCase()))return i.endSourceSpan=r,i.sourceSpan.end=r!==null?r.end:i.sourceSpan.end,this._elementStack.splice(s,this._elementStack.length-s),!n;this.getTagDefinition(i.name).closedByParent||(n=!0)}return!1}_consumeAttr(e){let r=Re(e.parts[0],e.parts[1]),n=e.sourceSpan.end,s;this._peek.type===15&&(s=this._advance());let i="",a=[],u,o;if(this._peek.type===16)for(u=this._peek.sourceSpan,o=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let g=this._advance();a.push(g),g.type===17?i+=g.parts.join("").replace(/&([^;]+);/g,As):g.type===9?i+=g.parts[0]:i+=g.parts.join(""),o=n=g.sourceSpan.end}this._peek.type===15&&(o=n=this._advance().sourceSpan.end);let c=u&&o&&new m((s==null?void 0:s.sourceSpan.start)??u.start,o,(s==null?void 0:s.sourceSpan.fullStart)??u.fullStart);return new It(r,i,new m(e.sourceSpan.start,n,e.sourceSpan.fullStart),e.sourceSpan,c,a.length>0?a:void 0,void 0)}_getParentElement(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null}_addToParent(e){let r=this._getParentElement();r!=null?r.children.push(e):this.rootNodes.push(e)}_getElementFullName(e,r,n){if(e===""&&(e=this.getTagDefinition(r).implicitNamespacePrefix||"",e===""&&n!=null)){let s=tt(n.name)[1];this.getTagDefinition(s).preventNamespaceInheritance||(e=Ie(n.name))}return Re(e,r)}};function Es(t,e){return t.length>0&&t[t.length-1]===e}function As(t,e){return Me[e]!==void 0?Me[e]||t:/^#x[a-f0-9]+$/i.test(e)?String.fromCodePoint(parseInt(e.slice(2),16)):/^#\d+$/.test(e)?String.fromCodePoint(parseInt(e.slice(1),10)):t}var zt=class extends Gt{constructor(){super($e)}parse(e,r,n,s=!1,i){return super.parse(e,r,n,s,i)}};var Nr=null,Wa=()=>(Nr||(Nr=new zt),Nr);function Pr(t,e={}){let{canSelfClose:r=!1,allowHtmComponentClosingTags:n=!1,isTagNameCaseSensitive:s=!1,getTagContentType:i}=e;return Wa().parse(t,"angular-html-parser",{tokenizeExpansionForms:!1,interpolationConfig:void 0,canSelfClose:r,allowHtmComponentClosingTags:n},s,i)}var Ga=new RegExp("^(?-{3}|\\+{3})(?[^\\n]*)\\n(?:|(?.*?)\\n)(?\\k|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function za(t){let e=t.match(Ga);if(!e)return{content:t};let{startDelimiter:r,language:n,value:s="",endDelimiter:i}=e.groups,a=n.trim()||"yaml";if(r==="+++"&&(a="toml"),a!=="yaml"&&r!==i)return{content:t};let[u]=e;return{frontMatter:{type:"front-matter",lang:a,value:s,startDelimiter:r,endDelimiter:i,raw:u.replace(/\n$/,"")},content:v(!1,u,/[^\n]/g," ")+t.slice(u.length)}}var _s=za;function Ya(t,e){let r=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)}var Ds=Ya;var vs=new Set(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]);var Yt=new Map([["*",new Set(["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","popover","slot","spellcheck","style","tabindex","title","translate"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["open"])],["dialog",new Set(["open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],["frame",new Set(["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"])],["frameset",new Set(["cols","rows"])],["h1",new Set(["align"])],["h2",new Set(["align"])],["h3",new Set(["align"])],["h4",new Set(["align"])],["h5",new Set(["align"])],["h6",new Set(["align"])],["head",new Set(["profile"])],["hr",new Set(["align","noshade","size","width"])],["html",new Set(["manifest","version"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","crossorigin","decoding","fetchpriority","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"])],["input",new Set(["accept","align","alt","autocomplete","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","usemap","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["prompt"])],["label",new Set(["for","form"])],["legend",new Set(["align"])],["li",new Set(["type","value"])],["link",new Set(["as","blocking","charset","color","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"])],["map",new Set(["name"])],["menu",new Set(["compact"])],["meta",new Set(["charset","content","http-equiv","media","name","scheme"])],["meter",new Set(["high","low","max","min","optimum","value"])],["object",new Set(["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"])],["ol",new Set(["compact","reversed","start","type"])],["optgroup",new Set(["disabled","label"])],["option",new Set(["disabled","label","selected","value"])],["output",new Set(["for","form","name"])],["p",new Set(["align"])],["param",new Set(["name","type","value","valuetype"])],["pre",new Set(["width"])],["progress",new Set(["max","value"])],["q",new Set(["cite"])],["script",new Set(["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","language","nomodule","referrerpolicy","src","type"])],["select",new Set(["autocomplete","disabled","form","multiple","name","required","size"])],["slot",new Set(["name"])],["source",new Set(["height","media","sizes","src","srcset","type","width"])],["style",new Set(["blocking","media","type"])],["table",new Set(["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"])],["tbody",new Set(["align","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","char","charoff","valign"])],["time",new Set(["datetime"])],["tr",new Set(["align","bgcolor","char","charoff","valign"])],["track",new Set(["default","kind","label","src","srclang"])],["ul",new Set(["compact","type"])],["video",new Set(["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"])]]);var jt={attrs:!0,children:!0},ys=new Set(["parent"]),Kt=class t{constructor(e={}){for(let r of new Set([...ys,...Object.keys(e)]))this.setProperty(r,e[r])}setProperty(e,r){if(this[e]!==r){if(e in jt&&(r=r.map(n=>this.createChild(n))),!ys.has(e)){this[e]=r;return}Object.defineProperty(this,e,{value:r,enumerable:!1,configurable:!0})}}map(e){let r;for(let n in jt){let s=this[n];if(s){let i=ja(s,a=>a.map(e));r!==s&&(r||(r=new t({parent:this.parent})),r.setProperty(n,i))}}if(r)for(let n in this)n in jt||(r[n]=this[n]);return e(r||this)}walk(e){for(let r in jt){let n=this[r];if(n)for(let s=0;s[e.fullName,e.value]))}};function ja(t,e){let r=t.map(e);return r.some((n,s)=>n!==t[s])?r:t}var Ka=[{regex:/^(\[if([^\]]*)]>)(.*?){try{return[!0,e(i,u).children]}catch{return[!1,[{type:"text",value:i,sourceSpan:new m(u,o)}]]}})();return{type:"ieConditionalComment",complete:p,children:c,condition:v(!1,s.trim(),/\s+/g," "),sourceSpan:t.sourceSpan,startSourceSpan:new m(t.sourceSpan.start,u),endSourceSpan:new m(o,t.sourceSpan.end)}}function Qa(t,e,r){let[,n]=r;return{type:"ieConditionalStartComment",condition:v(!1,n.trim(),/\s+/g," "),sourceSpan:t.sourceSpan}}function Ja(t){return{type:"ieConditionalEndComment",sourceSpan:t.sourceSpan}}function Ts(t,e,r){let{name:n,canSelfClose:s=!0,normalizeTagName:i=!1,normalizeAttributeName:a=!1,allowHtmComponentClosingTags:u=!1,isTagNameCaseSensitive:o=!1,shouldParseAsRawText:p}=e,{rootNodes:c,errors:g}=Pr(t,{canSelfClose:s,allowHtmComponentClosingTags:u,isTagNameCaseSensitive:o,getTagContentType:p?(...l)=>p(...l)?k.RAW_TEXT:void 0:void 0});if(n==="vue"){if(c.some(w=>w.type==="docType"&&w.value==="html"||w.type==="element"&&w.name.toLowerCase()==="html"))return Ts(t,ks,r);let d,b=()=>d??(d=Pr(t,{canSelfClose:s,allowHtmComponentClosingTags:u,isTagNameCaseSensitive:o})),I=w=>b().rootNodes.find(({startSourceSpan:$})=>$&&$.start.offset===w.startSourceSpan.start.offset)??w;for(let[w,$]of c.entries()){let{endSourceSpan:$r,startSourceSpan:Ns}=$;if($r===null)g=b().errors,c[w]=I($);else if(Za($,r)){let Mr=b().errors.find(Or=>Or.span.start.offset>Ns.start.offset&&Or.span.start.offset<$r.end.offset);Mr&&ws(Mr),c[w]=I($)}}}g.length>0&&ws(g[0]);let h=l=>{let d=l.name.startsWith(":")?l.name.slice(1).split(":")[0]:null,b=l.nameSpan.toString(),I=d!==null&&b.startsWith(`${d}:`),w=I?b.slice(d.length+1):b;l.name=w,l.namespace=d,l.hasExplicitNamespace=I},C=l=>{switch(l.type){case"element":h(l);for(let d of l.attrs)h(d),d.valueSpan?(d.value=d.valueSpan.toString(),/["']/.test(d.value[0])&&(d.value=d.value.slice(1,-1))):d.value=null;break;case"comment":l.value=l.sourceSpan.toString().slice(4,-3);break;case"text":l.value=l.sourceSpan.toString();break}},E=(l,d)=>{let b=l.toLowerCase();return d(b)?b:l},A=l=>{if(l.type==="element"&&(i&&(!l.namespace||l.namespace===l.tagDefinition.implicitNamespacePrefix||ce(l))&&(l.name=E(l.name,d=>vs.has(d))),a))for(let d of l.attrs)d.namespace||(d.name=E(d.name,b=>Yt.has(l.name)&&(Yt.get("*").has(b)||Yt.get(l.name).has(b))))},B=l=>{l.sourceSpan&&l.endSourceSpan&&(l.sourceSpan=new m(l.sourceSpan.start,l.endSourceSpan.end))},y=l=>{if(l.type==="element"){let d=$e(o?l.name:l.name.toLowerCase());!l.namespace||l.namespace===d.implicitNamespacePrefix||ce(l)?l.tagDefinition=d:l.tagDefinition=$e("")}};return Ot(new class extends nt{visit(l){C(l),y(l),A(l),B(l)}},c),c}function Za(t,e){var n;if(t.type!=="element"||t.name!=="template")return!1;let r=(n=t.attrs.find(s=>s.name==="lang"))==null?void 0:n.value;return!r||Be(e,{language:r})==="html"}function ws(t){let{msg:e,span:{start:r,end:n}}=t;throw Ds(e,{loc:{start:{line:r.line+1,column:r.col+1},end:{line:n.line+1,column:n.col+1}},cause:t})}function xs(t,e,r={},n=!0){let{frontMatter:s,content:i}=n?_s(t):{frontMatter:null,content:t},a=new fe(t,r.filepath),u=new ee(a,0,0,0),o=u.moveBy(t.length),p={type:"root",sourceSpan:new m(u,o),children:Ts(i,e,r)};if(s){let h=new ee(a,0,0,0),C=h.moveBy(s.raw.length);s.sourceSpan=new m(h,C),p.children.unshift(s)}let c=new Kt(p),g=(h,C)=>{let{offset:E}=C,A=v(!1,t.slice(0,E),/[^\n\r]/g," "),y=xs(A+h,e,r,!1);y.sourceSpan=new m(C,xe(!1,y.children,-1).sourceSpan.end);let l=y.children[0];return l.length===E?y.children.shift():(l.sourceSpan=new m(l.sourceSpan.start.moveBy(E),l.sourceSpan.end),l.value=l.value.slice(E)),y};return c.walk(h=>{if(h.type==="comment"){let C=bs(h,g);C&&h.parent.replaceChild(h,C)}}),c}function Xt(t){return{parse:(e,r)=>xs(e,t,r),hasPragma:Ln,astFormat:"html",locStart:te,locEnd:re}}var ks={name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0},eu=Xt(ks),tu=Xt({name:"angular"}),ru=Xt({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(t,e,r,n){return t.toLowerCase()!=="html"&&!r&&(t!=="template"||n.some(({name:s,value:i})=>s==="lang"&&i!=="html"&&i!==""&&i!==void 0))}}),nu=Xt({name:"lwc",canSelfClose:!1});var Bs=[{linguistLanguageId:146,name:"Angular",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".component.html"],parsers:["angular"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:146,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml",".mjml"],parsers:["html"],vscodeLanguageIds:["html"]},{linguistLanguageId:146,name:"Lightning Web Components",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[],parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:391,name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"]}];var Ir={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Ls="HTML",su={bracketSameLine:Ir.bracketSameLine,htmlWhitespaceSensitivity:{category:Ls,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:Ir.singleAttributePerLine,vueIndentScriptAndStyle:{category:Ls,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},Fs=su;var iu={html:ts};var Np=Rr;export{Np as default,Bs as languages,Fs as options,Qt as parsers,iu as printers}; +`){let i=this._getParentElement();i!=null&&i.children.length===0&&this.getTagDefinition(i.name).ignoreFirstLf&&(s=s.substring(1),r[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[s]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)e=this._advance(),r.push(e),e.type===8?s+=e.parts.join("").replace(/&([^;]+);/g,Ds):e.type===9?s+=e.parts[0]:s+=e.parts.join("");if(s.length>0){let i=e.sourceSpan;this._addToParent(new Lt(s,new m(n.start,i.end,n.fullStart,n.details),r))}}_closeVoidElement(){let e=this._getParentElement();e&&this.getTagDefinition(e.name).isVoid&&this._elementStack.pop()}_consumeStartTag(e){let[r,n]=e.parts,s=[];for(;this._peek.type===14;)s.push(this._consumeAttr(this._advance()));let i=this._getElementFullName(r,n,this._getParentElement()),a=!1;if(this._peek.type===2){this._advance(),a=!0;let d=this.getTagDefinition(i);this.canSelfClose||d.canSelfClose||Ie(i)!==null||d.isVoid||this.errors.push(H.create(i,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else this._peek.type===1&&(this._advance(),a=!1);let u=this._peek.sourceSpan.fullStart,o=new m(e.sourceSpan.start,u,e.sourceSpan.fullStart),p=new m(e.sourceSpan.start,u,e.sourceSpan.fullStart),l=new m(e.sourceSpan.start.moveBy(1),e.sourceSpan.end),f=new Rt(i,s,[],o,p,void 0,l);this._pushElement(f),a?this._popElement(i,o):e.type===4&&(this._popElement(i,null),this.errors.push(H.create(i,o,`Opening tag "${i}" not terminated.`)))}_pushElement(e){let r=this._getParentElement();r&&this.getTagDefinition(r.name).isClosedByChild(e.name)&&this._elementStack.pop(),this._addToParent(e),this._elementStack.push(e)}_consumeEndTag(e){let r=this.allowHtmComponentClosingTags&&e.parts.length===0?null:this._getElementFullName(e.parts[0],e.parts[1],this._getParentElement());if(r&&this.getTagDefinition(r).isVoid)this.errors.push(H.create(r,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popElement(r,e.sourceSpan)){let n=`Unexpected closing tag "${r}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(H.create(r,e.sourceSpan,n))}}_popElement(e,r){let n=!1;for(let s=this._elementStack.length-1;s>=0;s--){let i=this._elementStack[s];if(!e||(Ie(i.name)?i.name==e:i.name.toLowerCase()==e.toLowerCase()))return i.endSourceSpan=r,i.sourceSpan.end=r!==null?r.end:i.sourceSpan.end,this._elementStack.splice(s,this._elementStack.length-s),!n;this.getTagDefinition(i.name).closedByParent||(n=!0)}return!1}_consumeAttr(e){let r=Re(e.parts[0],e.parts[1]),n=e.sourceSpan.end,s;this._peek.type===15&&(s=this._advance());let i="",a=[],u,o;if(this._peek.type===16)for(u=this._peek.sourceSpan,o=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let f=this._advance();a.push(f),f.type===17?i+=f.parts.join("").replace(/&([^;]+);/g,Ds):f.type===9?i+=f.parts[0]:i+=f.parts.join(""),o=n=f.sourceSpan.end}this._peek.type===15&&(o=n=this._advance().sourceSpan.end);let l=u&&o&&new m((s==null?void 0:s.sourceSpan.start)??u.start,o,(s==null?void 0:s.sourceSpan.fullStart)??u.fullStart);return new It(r,i,new m(e.sourceSpan.start,n,e.sourceSpan.fullStart),e.sourceSpan,l,a.length>0?a:void 0,void 0)}_getParentElement(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null}_addToParent(e){let r=this._getParentElement();r!=null?r.children.push(e):this.rootNodes.push(e)}_getElementFullName(e,r,n){if(e===""&&(e=this.getTagDefinition(r).implicitNamespacePrefix||"",e===""&&n!=null)){let s=et(n.name)[1];this.getTagDefinition(s).preventNamespaceInheritance||(e=Ie(n.name))}return Re(e,r)}};function _s(t,e){return t.length>0&&t[t.length-1]===e}function Ds(t,e){return Me[e]!==void 0?Me[e]||t:/^#x[a-f0-9]+$/i.test(e)?String.fromCodePoint(parseInt(e.slice(2),16)):/^#\d+$/.test(e)?String.fromCodePoint(parseInt(e.slice(1),10)):t}var Yt=class extends Gt{constructor(){super($e)}parse(e,r,n,s=!1,i){return super.parse(e,r,n,s,i)}};var Fr=null,za=()=>(Fr||(Fr=new Yt),Fr);function Pr(t,e={}){let{canSelfClose:r=!1,allowHtmComponentClosingTags:n=!1,isTagNameCaseSensitive:s=!1,getTagContentType:i}=e;return za().parse(t,"angular-html-parser",{tokenizeExpansionForms:!1,interpolationConfig:void 0,canSelfClose:r,allowHtmComponentClosingTags:n},s,i)}var ja=new RegExp("^(?-{3}|\\+{3})(?[^\\n]*)\\n(?:|(?.*?)\\n)(?\\k|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function Ka(t){let e=t.match(ja);if(!e)return{content:t};let{startDelimiter:r,language:n,value:s="",endDelimiter:i}=e.groups,a=n.trim()||"yaml";if(r==="+++"&&(a="toml"),a!=="yaml"&&r!==i)return{content:t};let[u]=e;return{frontMatter:{type:"front-matter",lang:a,value:s,startDelimiter:r,endDelimiter:i,raw:u.replace(/\n$/,"")},content:v(!1,u,/[^\n]/g," ")+t.slice(u.length)}}var vs=Ka;function Qa(t,e){let r=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)}var ys=Qa;var bs=new Set(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]);var zt=new Map([["*",new Set(["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","popover","slot","spellcheck","style","tabindex","title","translate"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["open"])],["dialog",new Set(["open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],["frame",new Set(["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"])],["frameset",new Set(["cols","rows"])],["h1",new Set(["align"])],["h2",new Set(["align"])],["h3",new Set(["align"])],["h4",new Set(["align"])],["h5",new Set(["align"])],["h6",new Set(["align"])],["head",new Set(["profile"])],["hr",new Set(["align","noshade","size","width"])],["html",new Set(["manifest","version"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","crossorigin","decoding","fetchpriority","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"])],["input",new Set(["accept","align","alt","autocomplete","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","usemap","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["prompt"])],["label",new Set(["for","form"])],["legend",new Set(["align"])],["li",new Set(["type","value"])],["link",new Set(["as","blocking","charset","color","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"])],["map",new Set(["name"])],["menu",new Set(["compact"])],["meta",new Set(["charset","content","http-equiv","media","name","scheme"])],["meter",new Set(["high","low","max","min","optimum","value"])],["object",new Set(["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"])],["ol",new Set(["compact","reversed","start","type"])],["optgroup",new Set(["disabled","label"])],["option",new Set(["disabled","label","selected","value"])],["output",new Set(["for","form","name"])],["p",new Set(["align"])],["param",new Set(["name","type","value","valuetype"])],["pre",new Set(["width"])],["progress",new Set(["max","value"])],["q",new Set(["cite"])],["script",new Set(["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","language","nomodule","referrerpolicy","src","type"])],["select",new Set(["autocomplete","disabled","form","multiple","name","required","size"])],["slot",new Set(["name"])],["source",new Set(["height","media","sizes","src","srcset","type","width"])],["style",new Set(["blocking","media","type"])],["table",new Set(["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"])],["tbody",new Set(["align","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","char","charoff","valign"])],["time",new Set(["datetime"])],["tr",new Set(["align","bgcolor","char","charoff","valign"])],["track",new Set(["default","kind","label","src","srclang"])],["ul",new Set(["compact","type"])],["video",new Set(["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"])]]);var jt={attrs:!0,children:!0},ws=new Set(["parent"]),Kt=class t{constructor(e={}){for(let r of new Set([...ws,...Object.keys(e)]))this.setProperty(r,e[r])}setProperty(e,r){if(this[e]!==r){if(e in jt&&(r=r.map(n=>this.createChild(n))),!ws.has(e)){this[e]=r;return}Object.defineProperty(this,e,{value:r,enumerable:!1,configurable:!0})}}map(e){let r;for(let n in jt){let s=this[n];if(s){let i=Xa(s,a=>a.map(e));r!==s&&(r||(r=new t({parent:this.parent})),r.setProperty(n,i))}}if(r)for(let n in this)n in jt||(r[n]=this[n]);return e(r||this)}walk(e){for(let r in jt){let n=this[r];if(n)for(let s=0;s[e.fullName,e.value]))}};function Xa(t,e){let r=t.map(e);return r.some((n,s)=>n!==t[s])?r:t}var Ja=[{regex:/^(\[if([^\]]*)]>)(.*?){try{return[!0,e(i,u).children]}catch{return[!1,[{type:"text",value:i,sourceSpan:new m(u,o)}]]}})();return{type:"ieConditionalComment",complete:p,children:l,condition:v(!1,s.trim(),/\s+/g," "),sourceSpan:t.sourceSpan,startSourceSpan:new m(t.sourceSpan.start,u),endSourceSpan:new m(o,t.sourceSpan.end)}}function eu(t,e,r){let[,n]=r;return{type:"ieConditionalStartComment",condition:v(!1,n.trim(),/\s+/g," "),sourceSpan:t.sourceSpan}}function tu(t){return{type:"ieConditionalEndComment",sourceSpan:t.sourceSpan}}function ks(t,e,r){let{name:n,canSelfClose:s=!0,normalizeTagName:i=!1,normalizeAttributeName:a=!1,allowHtmComponentClosingTags:u=!1,isTagNameCaseSensitive:o=!1,shouldParseAsRawText:p}=e,{rootNodes:l,errors:f}=Pr(t,{canSelfClose:s,allowHtmComponentClosingTags:u,isTagNameCaseSensitive:o,getTagContentType:p?(...c)=>p(...c)?L.RAW_TEXT:void 0:void 0});if(n==="vue"){if(l.some(b=>b.type==="docType"&&b.value==="html"||b.type==="element"&&b.name.toLowerCase()==="html"))return ks(t,Ls,r);let g,y=()=>g??(g=Pr(t,{canSelfClose:s,allowHtmComponentClosingTags:u,isTagNameCaseSensitive:o})),I=b=>y().rootNodes.find(({startSourceSpan:$})=>$&&$.start.offset===b.startSourceSpan.start.offset)??b;for(let[b,$]of l.entries()){let{endSourceSpan:$r,startSourceSpan:Is}=$;if($r===null)f=y().errors,l[b]=I($);else if(ru($,r)){let Mr=y().errors.find(Or=>Or.span.start.offset>Is.start.offset&&Or.span.start.offset<$r.end.offset);Mr&&xs(Mr),l[b]=I($)}}}f.length>0&&xs(f[0]);let d=c=>{let g=c.name.startsWith(":")?c.name.slice(1).split(":")[0]:null,y=c.nameSpan.toString(),I=g!==null&&y.startsWith(`${g}:`),b=I?y.slice(g.length+1):y;c.name=b,c.namespace=g,c.hasExplicitNamespace=I},C=c=>{switch(c.type){case"element":d(c);for(let g of c.attrs)d(g),g.valueSpan?(g.value=g.valueSpan.toString(),/["']/.test(g.value[0])&&(g.value=g.value.slice(1,-1))):g.value=null;break;case"comment":c.value=c.sourceSpan.toString().slice(4,-3);break;case"text":c.value=c.sourceSpan.toString();break}},E=(c,g)=>{let y=c.toLowerCase();return g(y)?y:c},A=c=>{if(c.type==="element"&&(i&&(!c.namespace||c.namespace===c.tagDefinition.implicitNamespacePrefix||pe(c))&&(c.name=E(c.name,g=>bs.has(g))),a))for(let g of c.attrs)g.namespace||(g.name=E(g.name,y=>zt.has(c.name)&&(zt.get("*").has(y)||zt.get(c.name).has(y))))},F=c=>{c.sourceSpan&&c.endSourceSpan&&(c.sourceSpan=new m(c.sourceSpan.start,c.endSourceSpan.end))},T=c=>{if(c.type==="element"){let g=$e(o?c.name:c.name.toLowerCase());!c.namespace||c.namespace===g.implicitNamespacePrefix||pe(c)?c.tagDefinition=g:c.tagDefinition=$e("")}};return Ot(new class extends rt{visit(c){C(c),T(c),A(c),F(c)}},l),l}function ru(t,e){var n;if(t.type!=="element"||t.name!=="template")return!1;let r=(n=t.attrs.find(s=>s.name==="lang"))==null?void 0:n.value;return!r||Le(e,{language:r})==="html"}function xs(t){let{msg:e,span:{start:r,end:n}}=t;throw ys(e,{loc:{start:{line:r.line+1,column:r.col+1},end:{line:n.line+1,column:n.col+1}},cause:t})}function Bs(t,e,r={},n=!0){let{frontMatter:s,content:i}=n?vs(t):{frontMatter:null,content:t},a=new me(t,r.filepath),u=new ee(a,0,0,0),o=u.moveBy(t.length),p={type:"root",sourceSpan:new m(u,o),children:ks(i,e,r)};if(s){let d=new ee(a,0,0,0),C=d.moveBy(s.raw.length);s.sourceSpan=new m(d,C),p.children.unshift(s)}let l=new Kt(p),f=(d,C)=>{let{offset:E}=C,A=v(!1,t.slice(0,E),/[^\n\r]/g," "),T=Bs(A+d,e,r,!1);T.sourceSpan=new m(C,ke(!1,T.children,-1).sourceSpan.end);let c=T.children[0];return c.length===E?T.children.shift():(c.sourceSpan=new m(c.sourceSpan.start.moveBy(E),c.sourceSpan.end),c.value=c.value.slice(E)),T};return l.walk(d=>{if(d.type==="comment"){let C=Ts(d,f);C&&d.parent.replaceChild(d,C)}}),l}function Qt(t){return{parse:(e,r)=>Bs(e,t,r),hasPragma:Bn,astFormat:"html",locStart:te,locEnd:re}}var Ls={name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0},nu=Qt(Ls),su=Qt({name:"angular"}),iu=Qt({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(t,e,r,n){return t.toLowerCase()!=="html"&&!r&&(t!=="template"||n.some(({name:s,value:i})=>s==="lang"&&i!=="html"&&i!==""&&i!==void 0))}}),au=Qt({name:"lwc",canSelfClose:!1});var Fs=[{linguistLanguageId:146,name:"Angular",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".component.html"],parsers:["angular"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:146,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml",".mjml"],parsers:["html"],vscodeLanguageIds:["html"]},{linguistLanguageId:146,name:"Lightning Web Components",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[],parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:391,name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"]}];var Ir={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Ps="HTML",uu={bracketSameLine:Ir.bracketSameLine,htmlWhitespaceSensitivity:{category:Ps,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:Ir.singleAttributePerLine,vueIndentScriptAndStyle:{category:Ps,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},Ns=uu;var ou={html:ns};var qp=Rr;export{qp as default,Fs as languages,Ns as options,Nr as parsers,ou as printers}; diff --git a/node_modules/prettier/plugins/markdown.js b/node_modules/prettier/plugins/markdown.js index 862aab1..d25d235 100644 --- a/node_modules/prettier/plugins/markdown.js +++ b/node_modules/prettier/plugins/markdown.js @@ -1,59 +1,59 @@ -(function(n){function e(){var i=n();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.markdown=e()}})(function(){"use strict";var rl=Object.create;var kr=Object.defineProperty;var tl=Object.getOwnPropertyDescriptor;var nl=Object.getOwnPropertyNames;var il=Object.getPrototypeOf,ul=Object.prototype.hasOwnProperty;var C=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),On=(e,r)=>{for(var n in r)kr(e,n,{get:r[n],enumerable:!0})},In=(e,r,n,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of nl(r))!ul.call(e,a)&&a!==n&&kr(e,a,{get:()=>r[a],enumerable:!(t=tl(r,a))||t.enumerable});return e};var Ie=(e,r,n)=>(n=e!=null?rl(il(e)):{},In(r||!e||!e.__esModule?kr(n,"default",{value:e,enumerable:!0}):n,e)),al=e=>In(kr({},"__esModule",{value:!0}),e);var wr=C((Sg,Nn)=>{"use strict";Nn.exports=cl;function cl(e){return String(e).replace(/\s+/g," ")}});var Pe=C((Lv,_i)=>{_i.exports=cf;var sf=Object.prototype.hasOwnProperty;function cf(){for(var e={},r=0;r{typeof Object.create=="function"?wt.exports=function(r,n){n&&(r.super_=n,r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:wt.exports=function(r,n){if(n){r.super_=n;var t=function(){};t.prototype=n.prototype,r.prototype=new t,r.prototype.constructor=r}}});var Ii=C((Iv,Oi)=>{"use strict";var lf=Pe(),Li=Pi();Oi.exports=ff;function ff(e){var r,n,t;Li(i,e),Li(a,i),r=i.prototype;for(n in r)t=r[n],t&&typeof t=="object"&&(r[n]="concat"in t?t.concat():lf(t));return i;function a(u){return e.apply(this,u)}function i(){return this instanceof i?e.apply(this,arguments):new a(arguments)}}});var Ri=C((Nv,Ni)=>{"use strict";Ni.exports=Df;function Df(e,r,n){return t;function t(){var a=n||this,i=a[e];return a[e]=!r,u;function u(){a[e]=i}}}});var Mi=C((Rv,zi)=>{"use strict";zi.exports=pf;function pf(e){for(var r=String(e),n=[],t=/\r?\n|\r/g;t.exec(r);)n.push(t.lastIndex);return n.push(r.length+1),{toPoint:a,toPosition:a,toOffset:i};function a(u){var o=-1;if(u>-1&&uu)return{line:o+1,column:u-(n[o-1]||0)+1,offset:u}}return{}}function i(u){var o=u&&u.line,s=u&&u.column,l;return!isNaN(o)&&!isNaN(s)&&o-1 in n&&(l=(n[o-2]||0)+s-1||0),l>-1&&l{"use strict";Ui.exports=df;var At="\\";function df(e,r){return n;function n(t){for(var a=0,i=t.indexOf(At),u=e[r],o=[],s;i!==-1;)o.push(t.slice(a,i)),a=i+1,s=t.charAt(a),(!s||u.indexOf(s)===-1)&&o.push(At),i=t.indexOf(At,a+1);return o.push(t.slice(a)),o.join("")}}});var Vi=C((Mv,hf)=>{hf.exports={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Acirc:"\xC2",Agrave:"\xC0",Aring:"\xC5",Atilde:"\xC3",Auml:"\xC4",COPY:"\xA9",Ccedil:"\xC7",ETH:"\xD0",Eacute:"\xC9",Ecirc:"\xCA",Egrave:"\xC8",Euml:"\xCB",GT:">",Iacute:"\xCD",Icirc:"\xCE",Igrave:"\xCC",Iuml:"\xCF",LT:"<",Ntilde:"\xD1",Oacute:"\xD3",Ocirc:"\xD4",Ograve:"\xD2",Oslash:"\xD8",Otilde:"\xD5",Ouml:"\xD6",QUOT:'"',REG:"\xAE",THORN:"\xDE",Uacute:"\xDA",Ucirc:"\xDB",Ugrave:"\xD9",Uuml:"\xDC",Yacute:"\xDD",aacute:"\xE1",acirc:"\xE2",acute:"\xB4",aelig:"\xE6",agrave:"\xE0",amp:"&",aring:"\xE5",atilde:"\xE3",auml:"\xE4",brvbar:"\xA6",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",eacute:"\xE9",ecirc:"\xEA",egrave:"\xE8",eth:"\xF0",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",iacute:"\xED",icirc:"\xEE",iexcl:"\xA1",igrave:"\xEC",iquest:"\xBF",iuml:"\xEF",laquo:"\xAB",lt:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",ntilde:"\xF1",oacute:"\xF3",ocirc:"\xF4",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",oslash:"\xF8",otilde:"\xF5",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',raquo:"\xBB",reg:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",thorn:"\xFE",times:"\xD7",uacute:"\xFA",ucirc:"\xFB",ugrave:"\xF9",uml:"\xA8",uuml:"\xFC",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}});var ji=C((Uv,mf)=>{mf.exports={"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}});var Le=C((Yv,$i)=>{"use strict";$i.exports=gf;function gf(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=48&&r<=57}});var Hi=C((Vv,Gi)=>{"use strict";Gi.exports=vf;function vf(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=97&&r<=102||r>=65&&r<=70||r>=48&&r<=57}});var ze=C((jv,Wi)=>{"use strict";Wi.exports=Ff;function Ff(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=97&&r<=122||r>=65&&r<=90}});var Ji=C(($v,Ki)=>{"use strict";var Ef=ze(),Cf=Le();Ki.exports=bf;function bf(e){return Ef(e)||Cf(e)}});var Xi=C((Gv,xf)=>{xf.exports={AEli:"\xC6",AElig:"\xC6",AM:"&",AMP:"&",Aacut:"\xC1",Aacute:"\xC1",Abreve:"\u0102",Acir:"\xC2",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrav:"\xC0",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Arin:"\xC5",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atild:"\xC3",Atilde:"\xC3",Aum:"\xC4",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COP:"\xA9",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedi:"\xC7",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ET:"\xD0",ETH:"\xD0",Eacut:"\xC9",Eacute:"\xC9",Ecaron:"\u011A",Ecir:"\xCA",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrav:"\xC8",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Eum:"\xCB",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",G:">",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacut:"\xCD",Iacute:"\xCD",Icir:"\xCE",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrav:"\xCC",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Ium:"\xCF",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",L:"<",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` -`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntild:"\xD1",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacut:"\xD3",Oacute:"\xD3",Ocir:"\xD4",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograv:"\xD2",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslas:"\xD8",Oslash:"\xD8",Otild:"\xD5",Otilde:"\xD5",Otimes:"\u2A37",Oum:"\xD6",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUO:'"',QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",RE:"\xAE",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THOR:"\xDE",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacut:"\xDA",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucir:"\xDB",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrav:"\xD9",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uum:"\xDC",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacut:"\xDD",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacut:"\xE1",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acir:"\xE2",acirc:"\xE2",acut:"\xB4",acute:"\xB4",acy:"\u0430",aeli:"\xE6",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrav:"\xE0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",am:"&",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",arin:"\xE5",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atild:"\xE3",atilde:"\xE3",aum:"\xE4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvba:"\xA6",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedi:"\xE7",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedi:"\xB8",cedil:"\xB8",cemptyv:"\u29B2",cen:"\xA2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",cop:"\xA9",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curre:"\xA4",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",de:"\xB0",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divid:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacut:"\xE9",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\xEA",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrav:"\xE8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",et:"\xF0",eth:"\xF0",eum:"\xEB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac1:"\xBC",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac3:"\xBE",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",g:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacut:"\xED",iacute:"\xED",ic:"\u2063",icir:"\xEE",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexc:"\xA1",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrav:"\xEC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iques:"\xBF",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",ium:"\xEF",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laqu:"\xAB",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",l:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",mac:"\xAF",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micr:"\xB5",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middo:"\xB7",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbs:"\xA0",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",no:"\xAC",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntild:"\xF1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacut:"\xF3",oacute:"\xF3",oast:"\u229B",ocir:"\xF4",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograv:"\xF2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\xBA",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslas:"\xF8",oslash:"\xF8",osol:"\u2298",otild:"\xF5",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",oum:"\xF6",ouml:"\xF6",ovbar:"\u233D",par:"\xB6",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusm:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",poun:"\xA3",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quo:'"',quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raqu:"\xBB",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",re:"\xAE",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sec:"\xA7",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",sh:"\xAD",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szli:"\xDF",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thor:"\xFE",thorn:"\xFE",tilde:"\u02DC",time:"\xD7",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacut:"\xFA",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucir:"\xFB",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrav:"\xF9",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",um:"\xA8",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uum:"\xFC",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacut:"\xFD",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",ye:"\xA5",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yum:"\xFF",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var eu=C((Hv,Zi)=>{"use strict";var Qi=Xi();Zi.exports=kf;var yf={}.hasOwnProperty;function kf(e){return yf.call(Qi,e)?Qi[e]:!1}});var lr=C((Wv,pu)=>{"use strict";var ru=Vi(),tu=ji(),wf=Le(),Af=Hi(),au=Ji(),Bf=eu();pu.exports=Uf;var qf={}.hasOwnProperty,Me=String.fromCharCode,Tf=Function.prototype,nu={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},Sf=9,iu=10,_f=12,Pf=32,uu=38,Lf=59,Of=60,If=61,Nf=35,Rf=88,zf=120,Mf=65533,Ue="named",qt="hexadecimal",Tt="decimal",St={};St[qt]=16;St[Tt]=10;var zr={};zr[Ue]=au;zr[Tt]=wf;zr[qt]=Af;var ou=1,su=2,cu=3,lu=4,fu=5,Bt=6,Du=7,xe={};xe[ou]="Named character references must be terminated by a semicolon";xe[su]="Numeric character references must be terminated by a semicolon";xe[cu]="Named character references cannot be empty";xe[lu]="Numeric character references cannot be empty";xe[fu]="Named character references must be known";xe[Bt]="Numeric character references cannot be disallowed";xe[Du]="Numeric character references cannot be outside the permissible Unicode range";function Uf(e,r){var n={},t,a;r||(r={});for(a in nu)t=r[a],n[a]=t??nu[a];return(n.position.indent||n.position.start)&&(n.indent=n.position.indent||[],n.position=n.position.start),Yf(e,n)}function Yf(e,r){var n=r.additional,t=r.nonTerminated,a=r.text,i=r.reference,u=r.warning,o=r.textContext,s=r.referenceContext,l=r.warningContext,c=r.position,f=r.indent||[],D=e.length,h=0,p=-1,d=c.column||1,m=c.line||1,g="",x=[],F,B,b,v,y,k,E,w,A,q,T,N,P,_,S,L,we,j,I;for(typeof n=="string"&&(n=n.charCodeAt(0)),L=J(),w=u?K:Tf,h--,D++;++h65535&&(k-=65536,q+=Me(k>>>10|55296),k=56320|k&1023),k=q+Me(k))):_!==Ue&&w(lu,j)),k?(me(),L=J(),h=I-1,d+=I-P+1,x.push(k),we=J(),we.offset++,i&&i.call(s,k,{start:L,end:we},e.slice(P-1,I)),L=we):(v=e.slice(P-1,I),g+=v,d+=v.length,h=I-1)}else y===10&&(m++,p++,d=0),y===y?(g+=Me(y),d++):me();return x.join("");function J(){return{line:m,column:d,offset:h+(c.offset||0)}}function K(ge,M){var Dt=J();Dt.column+=M,Dt.offset+=M,u.call(l,xe[ge],Dt,ge)}function me(){g&&(x.push(g),a&&a.call(o,g,{start:L,end:J()}),g="")}}function Vf(e){return e>=55296&&e<=57343||e>1114111}function jf(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}});var mu=C((Kv,hu)=>{"use strict";var $f=Pe(),du=lr();hu.exports=Gf;function Gf(e){return n.raw=t,n;function r(i){for(var u=e.offset,o=i.line,s=[];++o&&o in u;)s.push((u[o]||0)+1);return{start:i,indent:s}}function n(i,u,o){du(i,{position:r(u),warning:a,text:o,reference:o,textContext:e,referenceContext:e})}function t(i,u,o){return du(i,$f(o,{position:r(u),warning:a}))}function a(i,u,o){o!==3&&e.file.message(i,u)}}});var Fu=C((Jv,vu)=>{"use strict";vu.exports=Hf;function Hf(e){return r;function r(n,t){var a=this,i=a.offset,u=[],o=a[e+"Methods"],s=a[e+"Tokenizers"],l=t.line,c=t.column,f,D,h,p,d,m;if(!n)return u;for(k.now=F,k.file=a.file,g("");n;){for(f=-1,D=o.length,d=!1;++f()=>(r||e((r={exports:{}}).exports,r),r.exports),Ln=(e,r)=>{for(var n in r)kr(e,n,{get:r[n],enumerable:!0})},On=(e,r,n,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of tl(r))!il.call(e,a)&&a!==n&&kr(e,a,{get:()=>r[a],enumerable:!(t=rl(r,a))||t.enumerable});return e};var Ie=(e,r,n)=>(n=e!=null?el(nl(e)):{},On(r||!e||!e.__esModule?kr(n,"default",{value:e,enumerable:!0}):n,e)),ul=e=>On(kr({},"__esModule",{value:!0}),e);var wr=C((Sg,In)=>{"use strict";In.exports=sl;function sl(e){return String(e).replace(/\s+/g," ")}});var _e=C((Lv,Si)=>{Si.exports=cf;var sf=Object.prototype.hasOwnProperty;function cf(){for(var e={},r=0;r{typeof Object.create=="function"?yt.exports=function(r,n){n&&(r.super_=n,r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:yt.exports=function(r,n){if(n){r.super_=n;var t=function(){};t.prototype=n.prototype,r.prototype=new t,r.prototype.constructor=r}}});var Oi=C((Iv,Li)=>{"use strict";var lf=_e(),_i=Pi();Li.exports=ff;function ff(e){var r,n,t;_i(i,e),_i(a,i),r=i.prototype;for(n in r)t=r[n],t&&typeof t=="object"&&(r[n]="concat"in t?t.concat():lf(t));return i;function a(u){return e.apply(this,u)}function i(){return this instanceof i?e.apply(this,arguments):new a(arguments)}}});var Ni=C((Nv,Ii)=>{"use strict";Ii.exports=Df;function Df(e,r,n){return t;function t(){var a=n||this,i=a[e];return a[e]=!r,u;function u(){a[e]=i}}}});var zi=C((Rv,Ri)=>{"use strict";Ri.exports=pf;function pf(e){for(var r=String(e),n=[],t=/\r?\n|\r/g;t.exec(r);)n.push(t.lastIndex);return n.push(r.length+1),{toPoint:a,toPosition:a,toOffset:i};function a(u){var o=-1;if(u>-1&&uu)return{line:o+1,column:u-(n[o-1]||0)+1,offset:u}}return{}}function i(u){var o=u&&u.line,s=u&&u.column,l;return!isNaN(o)&&!isNaN(s)&&o-1 in n&&(l=(n[o-2]||0)+s-1||0),l>-1&&l{"use strict";Mi.exports=df;var kt="\\";function df(e,r){return n;function n(t){for(var a=0,i=t.indexOf(kt),u=e[r],o=[],s;i!==-1;)o.push(t.slice(a,i)),a=i+1,s=t.charAt(a),(!s||u.indexOf(s)===-1)&&o.push(kt),i=t.indexOf(kt,a+1);return o.push(t.slice(a)),o.join("")}}});var Yi=C((Mv,hf)=>{hf.exports={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Acirc:"\xC2",Agrave:"\xC0",Aring:"\xC5",Atilde:"\xC3",Auml:"\xC4",COPY:"\xA9",Ccedil:"\xC7",ETH:"\xD0",Eacute:"\xC9",Ecirc:"\xCA",Egrave:"\xC8",Euml:"\xCB",GT:">",Iacute:"\xCD",Icirc:"\xCE",Igrave:"\xCC",Iuml:"\xCF",LT:"<",Ntilde:"\xD1",Oacute:"\xD3",Ocirc:"\xD4",Ograve:"\xD2",Oslash:"\xD8",Otilde:"\xD5",Ouml:"\xD6",QUOT:'"',REG:"\xAE",THORN:"\xDE",Uacute:"\xDA",Ucirc:"\xDB",Ugrave:"\xD9",Uuml:"\xDC",Yacute:"\xDD",aacute:"\xE1",acirc:"\xE2",acute:"\xB4",aelig:"\xE6",agrave:"\xE0",amp:"&",aring:"\xE5",atilde:"\xE3",auml:"\xE4",brvbar:"\xA6",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",eacute:"\xE9",ecirc:"\xEA",egrave:"\xE8",eth:"\xF0",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",iacute:"\xED",icirc:"\xEE",iexcl:"\xA1",igrave:"\xEC",iquest:"\xBF",iuml:"\xEF",laquo:"\xAB",lt:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",ntilde:"\xF1",oacute:"\xF3",ocirc:"\xF4",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",oslash:"\xF8",otilde:"\xF5",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',raquo:"\xBB",reg:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",thorn:"\xFE",times:"\xD7",uacute:"\xFA",ucirc:"\xFB",ugrave:"\xF9",uml:"\xA8",uuml:"\xFC",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}});var Vi=C((Uv,mf)=>{mf.exports={"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}});var Le=C((Yv,ji)=>{"use strict";ji.exports=gf;function gf(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=48&&r<=57}});var Gi=C((Vv,$i)=>{"use strict";$i.exports=vf;function vf(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=97&&r<=102||r>=65&&r<=70||r>=48&&r<=57}});var ze=C((jv,Hi)=>{"use strict";Hi.exports=Ff;function Ff(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=97&&r<=122||r>=65&&r<=90}});var Ki=C(($v,Wi)=>{"use strict";var Ef=ze(),Cf=Le();Wi.exports=bf;function bf(e){return Ef(e)||Cf(e)}});var Ji=C((Gv,xf)=>{xf.exports={AEli:"\xC6",AElig:"\xC6",AM:"&",AMP:"&",Aacut:"\xC1",Aacute:"\xC1",Abreve:"\u0102",Acir:"\xC2",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrav:"\xC0",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Arin:"\xC5",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atild:"\xC3",Atilde:"\xC3",Aum:"\xC4",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COP:"\xA9",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedi:"\xC7",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ET:"\xD0",ETH:"\xD0",Eacut:"\xC9",Eacute:"\xC9",Ecaron:"\u011A",Ecir:"\xCA",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrav:"\xC8",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Eum:"\xCB",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",G:">",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacut:"\xCD",Iacute:"\xCD",Icir:"\xCE",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrav:"\xCC",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Ium:"\xCF",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",L:"<",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` +`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntild:"\xD1",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacut:"\xD3",Oacute:"\xD3",Ocir:"\xD4",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograv:"\xD2",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslas:"\xD8",Oslash:"\xD8",Otild:"\xD5",Otilde:"\xD5",Otimes:"\u2A37",Oum:"\xD6",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUO:'"',QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",RE:"\xAE",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THOR:"\xDE",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacut:"\xDA",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucir:"\xDB",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrav:"\xD9",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uum:"\xDC",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacut:"\xDD",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacut:"\xE1",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acir:"\xE2",acirc:"\xE2",acut:"\xB4",acute:"\xB4",acy:"\u0430",aeli:"\xE6",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrav:"\xE0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",am:"&",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",arin:"\xE5",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atild:"\xE3",atilde:"\xE3",aum:"\xE4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvba:"\xA6",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedi:"\xE7",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedi:"\xB8",cedil:"\xB8",cemptyv:"\u29B2",cen:"\xA2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",cop:"\xA9",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curre:"\xA4",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",de:"\xB0",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divid:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacut:"\xE9",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\xEA",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrav:"\xE8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",et:"\xF0",eth:"\xF0",eum:"\xEB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac1:"\xBC",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac3:"\xBE",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",g:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacut:"\xED",iacute:"\xED",ic:"\u2063",icir:"\xEE",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexc:"\xA1",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrav:"\xEC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iques:"\xBF",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",ium:"\xEF",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laqu:"\xAB",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",l:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",mac:"\xAF",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micr:"\xB5",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middo:"\xB7",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbs:"\xA0",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",no:"\xAC",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntild:"\xF1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacut:"\xF3",oacute:"\xF3",oast:"\u229B",ocir:"\xF4",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograv:"\xF2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\xBA",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslas:"\xF8",oslash:"\xF8",osol:"\u2298",otild:"\xF5",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",oum:"\xF6",ouml:"\xF6",ovbar:"\u233D",par:"\xB6",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusm:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",poun:"\xA3",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quo:'"',quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raqu:"\xBB",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",re:"\xAE",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sec:"\xA7",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",sh:"\xAD",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szli:"\xDF",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thor:"\xFE",thorn:"\xFE",tilde:"\u02DC",time:"\xD7",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacut:"\xFA",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucir:"\xFB",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrav:"\xF9",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",um:"\xA8",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uum:"\xFC",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacut:"\xFD",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",ye:"\xA5",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yum:"\xFF",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var Zi=C((Hv,Qi)=>{"use strict";var Xi=Ji();Qi.exports=kf;var yf={}.hasOwnProperty;function kf(e){return yf.call(Xi,e)?Xi[e]:!1}});var lr=C((Wv,Du)=>{"use strict";var eu=Yi(),ru=Vi(),wf=Le(),Af=Gi(),uu=Ki(),Bf=Zi();Du.exports=Uf;var qf={}.hasOwnProperty,Me=String.fromCharCode,Tf=Function.prototype,tu={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},Sf=9,nu=10,Pf=12,_f=32,iu=38,Lf=59,Of=60,If=61,Nf=35,Rf=88,zf=120,Mf=65533,Ue="named",At="hexadecimal",Bt="decimal",qt={};qt[At]=16;qt[Bt]=10;var Rr={};Rr[Ue]=uu;Rr[Bt]=wf;Rr[At]=Af;var au=1,ou=2,su=3,cu=4,lu=5,wt=6,fu=7,xe={};xe[au]="Named character references must be terminated by a semicolon";xe[ou]="Numeric character references must be terminated by a semicolon";xe[su]="Named character references cannot be empty";xe[cu]="Numeric character references cannot be empty";xe[lu]="Named character references must be known";xe[wt]="Numeric character references cannot be disallowed";xe[fu]="Numeric character references cannot be outside the permissible Unicode range";function Uf(e,r){var n={},t,a;r||(r={});for(a in tu)t=r[a],n[a]=t??tu[a];return(n.position.indent||n.position.start)&&(n.indent=n.position.indent||[],n.position=n.position.start),Yf(e,n)}function Yf(e,r){var n=r.additional,t=r.nonTerminated,a=r.text,i=r.reference,u=r.warning,o=r.textContext,s=r.referenceContext,l=r.warningContext,c=r.position,f=r.indent||[],D=e.length,h=0,p=-1,d=c.column||1,m=c.line||1,g="",x=[],F,B,b,v,y,k,E,w,A,q,T,N,_,P,S,L,we,j,I;for(typeof n=="string"&&(n=n.charCodeAt(0)),L=J(),w=u?K:Tf,h--,D++;++h65535&&(k-=65536,q+=Me(k>>>10|55296),k=56320|k&1023),k=q+Me(k))):P!==Ue&&w(cu,j)),k?(me(),L=J(),h=I-1,d+=I-_+1,x.push(k),we=J(),we.offset++,i&&i.call(s,k,{start:L,end:we},e.slice(_-1,I)),L=we):(v=e.slice(_-1,I),g+=v,d+=v.length,h=I-1)}else y===10&&(m++,p++,d=0),y===y?(g+=Me(y),d++):me();return x.join("");function J(){return{line:m,column:d,offset:h+(c.offset||0)}}function K(ge,M){var lt=J();lt.column+=M,lt.offset+=M,u.call(l,xe[ge],lt,ge)}function me(){g&&(x.push(g),a&&a.call(o,g,{start:L,end:J()}),g="")}}function Vf(e){return e>=55296&&e<=57343||e>1114111}function jf(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}});var hu=C((Kv,du)=>{"use strict";var $f=_e(),pu=lr();du.exports=Gf;function Gf(e){return n.raw=t,n;function r(i){for(var u=e.offset,o=i.line,s=[];++o&&o in u;)s.push((u[o]||0)+1);return{start:i,indent:s}}function n(i,u,o){pu(i,{position:r(u),warning:a,text:o,reference:o,textContext:e,referenceContext:e})}function t(i,u,o){return pu(i,$f(o,{position:r(u),warning:a}))}function a(i,u,o){o!==3&&e.file.message(i,u)}}});var vu=C((Jv,gu)=>{"use strict";gu.exports=Hf;function Hf(e){return r;function r(n,t){var a=this,i=a.offset,u=[],o=a[e+"Methods"],s=a[e+"Tokenizers"],l=t.line,c=t.column,f,D,h,p,d,m;if(!n)return u;for(k.now=F,k.file=a.file,g("");n;){for(f=-1,D=o.length,d=!1;++f{"use strict";Cu.exports=Mr;var _t=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],Pt=_t.concat(["~","|"]),Eu=Pt.concat([` -`,'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);Mr.default=_t;Mr.gfm=Pt;Mr.commonmark=Eu;function Mr(e){var r=e||{};return r.commonmark?Eu:r.gfm?Pt:_t}});var yu=C((Qv,xu)=>{"use strict";xu.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]});var Lt=C((Zv,ku)=>{"use strict";ku.exports={position:!0,gfm:!0,commonmark:!1,pedantic:!1,blocks:yu()}});var Au=C((eF,wu)=>{"use strict";var Jf=Pe(),Xf=bu(),Qf=Lt();wu.exports=Zf;function Zf(e){var r=this,n=r.options,t,a;if(e==null)e={};else if(typeof e=="object")e=Jf(e);else throw new Error("Invalid value `"+e+"` for setting `options`");for(t in Qf){if(a=e[t],a==null&&(a=n[t]),t!=="blocks"&&typeof a!="boolean"||t==="blocks"&&typeof a!="object")throw new Error("Invalid value `"+a+"` for setting `options."+t+"`");e[t]=a}return r.options=e,r.escape=Xf(e),r}});var Tu=C((rF,qu)=>{"use strict";qu.exports=Bu;function Bu(e){if(e==null)return nD;if(typeof e=="string")return tD(e);if(typeof e=="object")return"length"in e?rD(e):eD(e);if(typeof e=="function")return e;throw new Error("Expected function, string, or object as test")}function eD(e){return r;function r(n){var t;for(t in e)if(n[t]!==e[t])return!1;return!0}}function rD(e){for(var r=[],n=-1;++n{Su.exports=iD;function iD(e){return e}});var Iu=C((nF,Ou)=>{"use strict";Ou.exports=Ur;var uD=Tu(),aD=_u(),Pu=!0,Lu="skip",Ot=!1;Ur.CONTINUE=Pu;Ur.SKIP=Lu;Ur.EXIT=Ot;function Ur(e,r,n,t){var a,i;typeof r=="function"&&typeof n!="function"&&(t=n,n=r,r=null),i=uD(r),a=t?-1:1,u(e,null,[])();function u(o,s,l){var c=typeof o=="object"&&o!==null?o:{},f;return typeof c.type=="string"&&(f=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0,D.displayName="node ("+aD(c.type+(f?"<"+f+">":""))+")"),D;function D(){var h=l.concat(o),p=[],d,m;if((!r||i(o,s,l[l.length-1]||null))&&(p=oD(n(o,l)),p[0]===Ot))return p;if(o.children&&p[0]!==Lu)for(m=(t?o.children.length:-1)+a;m>-1&&m{"use strict";Nu.exports=Vr;var Yr=Iu(),sD=Yr.CONTINUE,cD=Yr.SKIP,lD=Yr.EXIT;Vr.CONTINUE=sD;Vr.SKIP=cD;Vr.EXIT=lD;function Vr(e,r,n,t){typeof r=="function"&&typeof n!="function"&&(t=n,n=r,r=null),Yr(e,r,a,t);function a(i,u){var o=u[u.length-1],s=o?o.children.indexOf(i):null;return n(i,s,o)}}});var Mu=C((uF,zu)=>{"use strict";var fD=Ru();zu.exports=DD;function DD(e,r){return fD(e,r?pD:dD),e}function pD(e){delete e.position}function dD(e){e.position=void 0}});var Vu=C((aF,Yu)=>{"use strict";var Uu=Pe(),hD=Mu();Yu.exports=vD;var mD=` -`,gD=/\r\n|\r/g;function vD(){var e=this,r=String(e.file),n={line:1,column:1,offset:0},t=Uu(n),a;return r=r.replace(gD,mD),r.charCodeAt(0)===65279&&(r=r.slice(1),t.column++,t.offset++),a={type:"root",children:e.tokenizeBlock(r,t),position:{start:n,end:e.eof||Uu(n)}},e.options.position||hD(a,!0),a}});var $u=C((oF,ju)=>{"use strict";var FD=/^[ \t]*(\n|$)/;ju.exports=ED;function ED(e,r,n){for(var t,a="",i=0,u=r.length;i{"use strict";var pe="",It;Gu.exports=CD;function CD(e,r){if(typeof e!="string")throw new TypeError("expected a string");if(r===1)return e;if(r===2)return e+e;var n=e.length*r;if(It!==e||typeof It>"u")It=e,pe="";else if(pe.length>=n)return pe.substr(0,n);for(;n>pe.length&&r>1;)r&1&&(pe+=e),r>>=1,e+=e;return pe+=e,pe=pe.substr(0,n),pe}});var Nt=C((cF,Hu)=>{"use strict";Hu.exports=bD;function bD(e){return String(e).replace(/\n+$/,"")}});var Ju=C((lF,Ku)=>{"use strict";var xD=jr(),yD=Nt();Ku.exports=AD;var Rt=` -`,Wu=" ",zt=" ",kD=4,wD=xD(zt,kD);function AD(e,r,n){for(var t=-1,a=r.length,i="",u="",o="",s="",l,c,f;++t{"use strict";Qu.exports=SD;var $r=` -`,fr=" ",Ye=" ",BD="~",Xu="`",qD=3,TD=4;function SD(e,r,n){var t=this,a=t.options.gfm,i=r.length+1,u=0,o="",s,l,c,f,D,h,p,d,m,g,x,F,B;if(a){for(;u=TD)){for(p="";u{Ve=ea.exports=_D;function _D(e){return e.trim?e.trim():Ve.right(Ve.left(e))}Ve.left=function(e){return e.trimLeft?e.trimLeft():e.replace(/^\s\s*/,"")};Ve.right=function(e){if(e.trimRight)return e.trimRight();for(var r=/\s/,n=e.length;r.test(e.charAt(--n)););return e.slice(0,n+1)}});var Gr=C((DF,ra)=>{"use strict";ra.exports=PD;function PD(e,r,n,t){for(var a=e.length,i=-1,u,o;++i{"use strict";var LD=Oe(),OD=Gr();ia.exports=ID;var Mt=` -`,ta=" ",Ut=" ",na=">";function ID(e,r,n){for(var t=this,a=t.offset,i=t.blockTokenizers,u=t.interruptBlockquote,o=e.now(),s=o.line,l=r.length,c=[],f=[],D=[],h,p=0,d,m,g,x,F,B,b,v;p{"use strict";oa.exports=RD;var aa=` -`,Dr=" ",pr=" ",dr="#",ND=6;function RD(e,r,n){for(var t=this,a=t.options.pedantic,i=r.length+1,u=-1,o=e.now(),s="",l="",c,f,D;++uND)&&!(!D||!a&&r.charAt(u+1)===dr)){for(i=r.length+1,f="";++u{"use strict";la.exports=$D;var zD=" ",MD=` -`,ca=" ",UD="*",YD="-",VD="_",jD=3;function $D(e,r,n){for(var t=-1,a=r.length+1,i="",u,o,s,l;++t=jD&&(!u||u===MD)?(i+=l,n?!0:e(i)({type:"thematicBreak"})):void 0}});var Yt=C((mF,pa)=>{"use strict";pa.exports=KD;var Da=" ",GD=" ",HD=1,WD=4;function KD(e){for(var r=0,n=0,t=e.charAt(r),a={},i,u=0;t===Da||t===GD;){for(i=t===Da?WD:HD,n+=i,i>1&&(n=Math.floor(n/i)*i);u{"use strict";var JD=Oe(),XD=jr(),QD=Yt();ha.exports=rp;var da=` -`,ZD=" ",ep="!";function rp(e,r){var n=e.split(da),t=n.length+1,a=1/0,i=[],u,o,s;for(n.unshift(XD(ZD,r)+ep);t--;)if(o=QD(n[t]),i[t]=o.stops,JD(n[t]).length!==0)if(o.indent)o.indent>0&&o.indent{"use strict";var tp=Oe(),np=jr(),ga=Le(),ip=Yt(),up=ma(),ap=Gr();Ca.exports=dp;var Vt="*",op="_",va="+",jt="-",Fa=".",de=" ",te=` -`,Hr=" ",Ea=")",sp="x",ye=4,cp=/\n\n(?!\s*$)/,lp=/^\[([ X\tx])][ \t]/,fp=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,Dp=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,pp=/^( {1,4}|\t)?/gm;function dp(e,r,n){for(var t=this,a=t.options.commonmark,i=t.options.pedantic,u=t.blockTokenizers,o=t.interruptList,s=0,l=r.length,c=null,f,D,h,p,d,m,g,x,F,B,b,v,y,k,E,w,A,q,T,N=!1,P,_,S,L;s=A.indent&&(L=!0),p=r.charAt(s),F=null,!L){if(p===Vt||p===va||p===jt)F=p,s++,f++;else{for(D="";s=A.indent||f>ye),x=!1,s=g;if(b=r.slice(g,m),B=g===s?b:r.slice(s,m),(F===Vt||F===op||F===jt)&&u.thematicBreak.call(t,e,b,!0))break;if(v=y,y=!x&&!tp(B).length,L&&A)A.value=A.value.concat(w,b),E=E.concat(w,b),w=[];else if(x)w.length!==0&&(N=!0,A.value.push(""),A.trail=w.concat()),A={value:[b],indent:f,trail:[]},k.push(A),E=E.concat(w,b),w=[];else if(y){if(v&&!a)break;w.push(b)}else{if(v||ap(o,u,t,[e,b,!0]))break;A.value=A.value.concat(w,b),E=E.concat(w,b),w=[]}s=m+1}for(P=e(E.join(te)).reset({type:"list",ordered:h,start:c,spread:N,children:[]}),q=t.enterList(),T=t.enterBlock(),s=-1,l=k.length;++s{"use strict";ka.exports=xp;var $t=` -`,vp=" ",xa=" ",ya="=",Fp="-",Ep=3,Cp=1,bp=2;function xp(e,r,n){for(var t=this,a=e.now(),i=r.length,u=-1,o="",s,l,c,f,D;++u=Ep){u--;break}o+=c}for(s="",l="";++u{"use strict";var yp="[a-zA-Z_:][a-zA-Z0-9:._-]*",kp="[^\"'=<>`\\u0000-\\u0020]+",wp="'[^']*'",Ap='"[^"]*"',Bp="(?:"+kp+"|"+wp+"|"+Ap+")",qp="(?:\\s+"+yp+"(?:\\s*=\\s*"+Bp+")?)",Aa="<[A-Za-z][A-Za-z0-9\\-]*"+qp+"*\\s*\\/?>",Ba="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Tp="|",Sp="<[?].*?[?]>",_p="]*>",Pp="";Gt.openCloseTag=new RegExp("^(?:"+Aa+"|"+Ba+")");Gt.tag=new RegExp("^(?:"+Aa+"|"+Ba+"|"+Tp+"|"+Sp+"|"+_p+"|"+Pp+")")});var _a=C((CF,Sa)=>{"use strict";var Lp=Ht().openCloseTag;Sa.exports=Kp;var Op=" ",Ip=" ",qa=` -`,Np="<",Rp=/^<(script|pre|style)(?=(\s|>|$))/i,zp=/<\/(script|pre|style)>/i,Mp=/^/,Yp=/^<\?/,Vp=/\?>/,jp=/^/,Gp=/^/,Ta=/^$/,Wp=new RegExp(Lp.source+"\\s*$");function Kp(e,r,n){for(var t=this,a=t.options.blocks.join("|"),i=new RegExp("^|$))","i"),u=r.length,o=0,s,l,c,f,D,h,p,d=[[Rp,zp,!0],[Mp,Up,!0],[Yp,Vp,!0],[jp,$p,!0],[Gp,Hp,!0],[i,Ta,!0],[Wp,Ta,!1]];o{"use strict";Pa.exports=Qp;var Jp=String.fromCharCode,Xp=/\s/;function Qp(e){return Xp.test(typeof e=="number"?Jp(e):e.charAt(0))}});var Wt=C((xF,La)=>{"use strict";var Zp=wr();La.exports=ed;function ed(e){return Zp(e).toLowerCase()}});var Ua=C((yF,Ma)=>{"use strict";var rd=ne(),td=Wt();Ma.exports=ad;var Oa='"',Ia="'",nd="\\",je=` -`,Wr=" ",Kr=" ",Jt="[",hr="]",id="(",ud=")",Na=":",Ra="<",za=">";function ad(e,r,n){for(var t=this,a=t.options.commonmark,i=0,u=r.length,o="",s,l,c,f,D,h,p,d;i{"use strict";var sd=ne();Va.exports=vd;var cd=" ",Jr=` -`,ld=" ",fd="-",Dd=":",pd="\\",Xt="|",dd=1,hd=2,Ya="left",md="center",gd="right";function vd(e,r,n){var t=this,a,i,u,o,s,l,c,f,D,h,p,d,m,g,x,F,B,b,v,y,k,E;if(t.options.gfm){for(a=0,F=0,l=r.length+1,c=[];ay){if(F1&&(D?(o+=f.slice(0,-1),f=f.charAt(f.length-1)):(o+=f,f="")),g=e.now(),e(o)({type:"tableCell",children:t.tokenizeInline(d,g)},s)),e(f+D),f="",d=""):(f&&(d+=f,f=""),d+=D,D===pd&&a!==l-2&&(d+=B.charAt(a+1),a++)),m=!1,a++}x||e(Jr+i)}return v}}}});var Ha=C((wF,Ga)=>{"use strict";var Fd=Oe(),Ed=Nt(),Cd=Gr();Ga.exports=yd;var bd=" ",mr=` -`,xd=" ",$a=4;function yd(e,r,n){for(var t=this,a=t.options,i=a.commonmark,u=t.blockTokenizers,o=t.interruptParagraph,s=r.indexOf(mr),l=r.length,c,f,D,h,p;s=$a&&D!==mr){s=r.indexOf(mr,s+1);continue}}if(f=r.slice(s+1),Cd(o,u,t,[e,f,!0]))break;if(c=s,s=r.indexOf(mr,s+1),s!==-1&&Fd(r.slice(c,s))===""){s=c;break}}return f=r.slice(0,s),n?!0:(p=e.now(),f=Ed(f),e(f)({type:"paragraph",children:t.tokenizeInline(f,p)}))}});var Ka=C((AF,Wa)=>{"use strict";Wa.exports=kd;function kd(e,r){return e.indexOf("\\",r)}});var Za=C((BF,Qa)=>{"use strict";var wd=Ka();Qa.exports=Xa;Xa.locator=wd;var Ad=` -`,Ja="\\";function Xa(e,r,n){var t=this,a,i;if(r.charAt(0)===Ja&&(a=r.charAt(1),t.escape.indexOf(a)!==-1))return n?!0:(a===Ad?i={type:"break"}:i={type:"text",value:a},e(Ja+a)(i))}});var Qt=C((qF,eo)=>{"use strict";eo.exports=Bd;function Bd(e,r){return e.indexOf("<",r)}});var uo=C((TF,io)=>{"use strict";var ro=ne(),qd=lr(),Td=Qt();io.exports=tn;tn.locator=Td;tn.notInLink=!0;var to="<",Zt=">",no="@",en="/",rn="mailto:",Xr=rn.length;function tn(e,r,n){var t=this,a="",i=r.length,u=0,o="",s=!1,l="",c,f,D,h,p;if(r.charAt(0)===to){for(u++,a=to;u{"use strict";ao.exports=Sd;function Sd(e,r){var n=String(e),t=0,a;if(typeof r!="string")throw new Error("Expected character");for(a=n.indexOf(r);a!==-1;)t++,a=n.indexOf(r,a+r.length);return t}});var lo=C((_F,co)=>{"use strict";co.exports=_d;var so=["www.","http://","https://"];function _d(e,r){var n=-1,t,a,i;if(!this.options.gfm)return n;for(a=so.length,t=-1;++t{"use strict";var fo=oo(),Pd=lr(),Ld=Le(),nn=ze(),Od=ne(),Id=lo();ho.exports=an;an.locator=Id;an.notInLink=!0;var Nd=33,Rd=38,zd=41,Md=42,Ud=44,Yd=45,un=46,Vd=58,jd=59,$d=63,Gd=60,Do=95,Hd=126,Wd="(",po=")";function an(e,r,n){var t=this,a=t.options.gfm,i=t.inlineTokenizers,u=r.length,o=-1,s=!1,l,c,f,D,h,p,d,m,g,x,F,B,b,v;if(a){if(r.slice(0,4)==="www.")s=!0,D=4;else if(r.slice(0,7).toLowerCase()==="http://")D=7;else if(r.slice(0,8).toLowerCase()==="https://")D=8;else return;for(o=D-1,f=D,l=[];Dg;)D=h+p.lastIndexOf(po),p=r.slice(h,D),x--;if(r.charCodeAt(D-1)===jd&&(D--,nn(r.charCodeAt(D-1)))){for(m=D-2;nn(r.charCodeAt(m));)m--;r.charCodeAt(m)===Rd&&(D=m)}return F=r.slice(0,D),b=Pd(F,{nonTerminated:!1}),s&&(b="http://"+b),v=t.enterLink(),t.inlineTokenizers={text:i.text},B=t.tokenizeInline(F,e.now()),t.inlineTokenizers=i,v(),e(F)({type:"link",title:null,url:b,children:B})}}}});var Eo=C((LF,Fo)=>{"use strict";var Kd=Le(),Jd=ze(),Xd=43,Qd=45,Zd=46,eh=95;Fo.exports=vo;function vo(e,r){var n=this,t,a;if(!this.options.gfm||(t=e.indexOf("@",r),t===-1))return-1;if(a=t,a===r||!go(e.charCodeAt(a-1)))return vo.call(n,e,t+1);for(;a>r&&go(e.charCodeAt(a-1));)a--;return a}function go(e){return Kd(e)||Jd(e)||e===Xd||e===Qd||e===Zd||e===eh}});var yo=C((OF,xo)=>{"use strict";var rh=lr(),Co=Le(),bo=ze(),th=Eo();xo.exports=cn;cn.locator=th;cn.notInLink=!0;var nh=43,on=45,Qr=46,ih=64,sn=95;function cn(e,r,n){var t=this,a=t.options.gfm,i=t.inlineTokenizers,u=0,o=r.length,s=-1,l,c,f,D;if(a){for(l=r.charCodeAt(u);Co(l)||bo(l)||l===nh||l===on||l===Qr||l===sn;)l=r.charCodeAt(++u);if(u!==0&&l===ih){for(u++;u{"use strict";var uh=ze(),ah=Qt(),oh=Ht().tag;wo.exports=ko;ko.locator=ah;var sh="<",ch="?",lh="!",fh="/",Dh=/^/i;function ko(e,r,n){var t=this,a=r.length,i,u;if(!(r.charAt(0)!==sh||a<3)&&(i=r.charAt(1),!(!uh(i)&&i!==ch&&i!==lh&&i!==fh)&&(u=r.match(oh),!!u)))return n?!0:(u=u[0],!t.inLink&&Dh.test(u)?t.inLink=!0:t.inLink&&ph.test(u)&&(t.inLink=!1),e(u)({type:"html",value:u}))}});var ln=C((NF,Bo)=>{"use strict";Bo.exports=dh;function dh(e,r){var n=e.indexOf("[",r),t=e.indexOf("![",r);return t===-1||n{"use strict";var gr=ne(),hh=ln();Lo.exports=Po;Po.locator=hh;var mh=` -`,gh="!",qo='"',To="'",$e="(",vr=")",fn="<",Dn=">",So="[",Fr="\\",vh="]",_o="`";function Po(e,r,n){var t=this,a="",i=0,u=r.charAt(0),o=t.options.pedantic,s=t.options.commonmark,l=t.options.gfm,c,f,D,h,p,d,m,g,x,F,B,b,v,y,k,E,w,A;if(u===gh&&(g=!0,a=u,u=r.charAt(++i)),u===So&&!(!g&&t.inLink)){for(a+=u,y="",i++,B=r.length,E=e.now(),v=0,E.column+=i,E.offset+=i;i=D&&(D=0):D=f}else if(u===Fr)i++,d+=r.charAt(i);else if((!D||l)&&u===So)v++;else if((!D||l)&&u===vh)if(v)v--;else{if(r.charAt(i+1)!==$e)return;d+=$e,c=!0,i++;break}y+=d,d="",i++}if(c){for(x=y,a+=y+d,i++;i{"use strict";var Fh=ne(),Eh=ln(),Ch=Wt();No.exports=Io;Io.locator=Eh;var pn="link",bh="image",xh="shortcut",yh="collapsed",dn="full",kh="!",Zr="[",et="\\",rt="]";function Io(e,r,n){var t=this,a=t.options.commonmark,i=r.charAt(0),u=0,o=r.length,s="",l="",c=pn,f=xh,D,h,p,d,m,g,x,F;if(i===kh&&(c=bh,l=i,i=r.charAt(++u)),i===Zr){for(u++,l+=i,g="",F=0;u{"use strict";zo.exports=wh;function wh(e,r){var n=e.indexOf("**",r),t=e.indexOf("__",r);return t===-1?n:n===-1||t{"use strict";var Ah=Oe(),Uo=ne(),Bh=Mo();Vo.exports=Yo;Yo.locator=Bh;var qh="\\",Th="*",Sh="_";function Yo(e,r,n){var t=this,a=0,i=r.charAt(a),u,o,s,l,c,f,D;if(!(i!==Th&&i!==Sh||r.charAt(++a)!==i)&&(o=t.options.pedantic,s=i,c=s+s,f=r.length,a++,l="",i="",!(o&&Uo(r.charAt(a)))))for(;a{"use strict";$o.exports=Lh;var _h=String.fromCharCode,Ph=/\w/;function Lh(e){return Ph.test(typeof e=="number"?_h(e):e.charAt(0))}});var Wo=C((VF,Ho)=>{"use strict";Ho.exports=Oh;function Oh(e,r){var n=e.indexOf("*",r),t=e.indexOf("_",r);return t===-1?n:n===-1||t{"use strict";var Ih=Oe(),Nh=Go(),Ko=ne(),Rh=Wo();Qo.exports=Xo;Xo.locator=Rh;var zh="*",Jo="_",Mh="\\";function Xo(e,r,n){var t=this,a=0,i=r.charAt(a),u,o,s,l,c,f,D;if(!(i!==zh&&i!==Jo)&&(o=t.options.pedantic,c=i,s=i,f=r.length,a++,l="",i="",!(o&&Ko(r.charAt(a)))))for(;a{"use strict";es.exports=Uh;function Uh(e,r){return e.indexOf("~~",r)}});var as=C((GF,us)=>{"use strict";var ts=ne(),Yh=rs();us.exports=is;is.locator=Yh;var tt="~",ns="~~";function is(e,r,n){var t=this,a="",i="",u="",o="",s,l,c;if(!(!t.options.gfm||r.charAt(0)!==tt||r.charAt(1)!==tt||ts(r.charAt(2))))for(s=1,l=r.length,c=e.now(),c.column+=2,c.offset+=2;++s{"use strict";os.exports=Vh;function Vh(e,r){return e.indexOf("`",r)}});var fs=C((WF,ls)=>{"use strict";var jh=ss();ls.exports=cs;cs.locator=jh;var hn=10,mn=32,gn=96;function cs(e,r,n){for(var t=r.length,a=0,i,u,o,s,l,c;a2&&(s===mn||s===hn)&&(l===mn||l===hn)){for(a++,t--;a{"use strict";Ds.exports=$h;function $h(e,r){for(var n=e.indexOf(` -`,r);n>r&&e.charAt(n-1)===" ";)n--;return n}});var ms=C((JF,hs)=>{"use strict";var Gh=ps();hs.exports=ds;ds.locator=Gh;var Hh=" ",Wh=` -`,Kh=2;function ds(e,r,n){for(var t=r.length,a=-1,i="",u;++a{"use strict";gs.exports=Jh;function Jh(e,r,n){var t=this,a,i,u,o,s,l,c,f,D,h;if(n)return!0;for(a=t.inlineMethods,o=a.length,i=t.inlineTokenizers,u=-1,D=r.length;++u{"use strict";var Xh=Pe(),nt=Ri(),Qh=Mi(),Zh=Yi(),em=mu(),vn=Fu();Cs.exports=Fs;function Fs(e,r){this.file=r,this.offset={},this.options=Xh(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=Qh(r).toOffset,this.unescape=Zh(this,"escape"),this.decode=em(this)}var z=Fs.prototype;z.setOptions=Au();z.parse=Vu();z.options=Lt();z.exitStart=nt("atStart",!0);z.enterList=nt("inList",!1);z.enterLink=nt("inLink",!1);z.enterBlock=nt("inBlock",!1);z.interruptParagraph=[["thematicBreak"],["list"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}]];z.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}]];z.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}]];z.blockTokenizers={blankLine:$u(),indentedCode:Ju(),fencedCode:Zu(),blockquote:ua(),atxHeading:sa(),thematicBreak:fa(),list:ba(),setextHeading:wa(),html:_a(),definition:Ua(),table:ja(),paragraph:Ha()};z.inlineTokenizers={escape:Za(),autoLink:uo(),url:mo(),email:yo(),html:Ao(),link:Oo(),reference:Ro(),strong:jo(),emphasis:Zo(),deletion:as(),code:fs(),break:ms(),text:vs()};z.blockMethods=Es(z.blockTokenizers);z.inlineMethods=Es(z.inlineTokenizers);z.tokenizeBlock=vn("block");z.tokenizeInline=vn("inline");z.tokenizeFactory=vn;function Es(e){var r=[],n;for(n in e)r.push(n);return r}});var ws=C((ZF,ks)=>{"use strict";var rm=Ii(),tm=Pe(),xs=bs();ks.exports=ys;ys.Parser=xs;function ys(e){var r=this.data("settings"),n=rm(xs);n.prototype.options=tm(n.prototype.options,r,e),this.Parser=n}});var Bs=C((eE,As)=>{"use strict";As.exports=nm;function nm(e){if(e)throw e}});var Fn=C((rE,qs)=>{qs.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var Rs=C((tE,Ns)=>{"use strict";var it=Object.prototype.hasOwnProperty,Is=Object.prototype.toString,Ts=Object.defineProperty,Ss=Object.getOwnPropertyDescriptor,_s=function(r){return typeof Array.isArray=="function"?Array.isArray(r):Is.call(r)==="[object Array]"},Ps=function(r){if(!r||Is.call(r)!=="[object Object]")return!1;var n=it.call(r,"constructor"),t=r.constructor&&r.constructor.prototype&&it.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!n&&!t)return!1;var a;for(a in r);return typeof a>"u"||it.call(r,a)},Ls=function(r,n){Ts&&n.name==="__proto__"?Ts(r,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):r[n.name]=n.newValue},Os=function(r,n){if(n==="__proto__")if(it.call(r,n)){if(Ss)return Ss(r,n).value}else return;return r[n]};Ns.exports=function e(){var r,n,t,a,i,u,o=arguments[0],s=1,l=arguments.length,c=!1;for(typeof o=="boolean"&&(c=o,o=arguments[1]||{},s=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});s{"use strict";zs.exports=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}});var Ys=C((iE,Us)=>{"use strict";var im=[].slice;Us.exports=um;function um(e,r){var n;return t;function t(){var u=im.call(arguments,0),o=e.length>u.length,s;o&&u.push(a);try{s=e.apply(null,u)}catch(l){if(o&&n)throw l;return a(l)}o||(s&&typeof s.then=="function"?s.then(i,a):s instanceof Error?a(s):i(s))}function a(){n||(n=!0,r.apply(null,arguments))}function i(u){a(null,u)}}});var Hs=C((uE,Gs)=>{"use strict";var js=Ys();Gs.exports=$s;$s.wrap=js;var Vs=[].slice;function $s(){var e=[],r={};return r.run=n,r.use=t,r;function n(){var a=-1,i=Vs.call(arguments,0,-1),u=arguments[arguments.length-1];if(typeof u!="function")throw new Error("Expected function as last argument, not "+u);o.apply(null,[null].concat(i));function o(s){var l=e[++a],c=Vs.call(arguments,0),f=c.slice(1),D=i.length,h=-1;if(s){u(s);return}for(;++h{"use strict";var Ge={}.hasOwnProperty;Js.exports=am;function am(e){return!e||typeof e!="object"?"":Ge.call(e,"position")||Ge.call(e,"type")?Ws(e.position):Ge.call(e,"start")||Ge.call(e,"end")?Ws(e):Ge.call(e,"line")||Ge.call(e,"column")?En(e):""}function En(e){return(!e||typeof e!="object")&&(e={}),Ks(e.line)+":"+Ks(e.column)}function Ws(e){return(!e||typeof e!="object")&&(e={}),En(e.start)+"-"+En(e.end)}function Ks(e){return e&&typeof e=="number"?e:1}});var ec=C((oE,Zs)=>{"use strict";var om=Xs();Zs.exports=Cn;function Qs(){}Qs.prototype=Error.prototype;Cn.prototype=new Qs;var ke=Cn.prototype;ke.file="";ke.name="";ke.reason="";ke.message="";ke.stack="";ke.fatal=null;ke.column=null;ke.line=null;function Cn(e,r,n){var t,a,i;typeof r=="string"&&(n=r,r=null),t=sm(n),a=om(r)||"1:1",i={start:{line:null,column:null},end:{line:null,column:null}},r&&r.position&&(r=r.position),r&&(r.start?(i=r,r=r.start):i.start=r),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=a,this.reason=e,this.line=r?r.line:null,this.column=r?r.column:null,this.location=i,this.source=t[0],this.ruleId=t[1]}function sm(e){var r=[null,null],n;return typeof e=="string"&&(n=e.indexOf(":"),n===-1?r[1]=e:(r[0]=e.slice(0,n),r[1]=e.slice(n+1))),r}});var rc=C(He=>{"use strict";He.basename=cm;He.dirname=lm;He.extname=fm;He.join=Dm;He.sep="/";function cm(e,r){var n=0,t=-1,a,i,u,o;if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');if(Er(e),a=e.length,r===void 0||!r.length||r.length>e.length){for(;a--;)if(e.charCodeAt(a)===47){if(u){n=a+1;break}}else t<0&&(u=!0,t=a+1);return t<0?"":e.slice(n,t)}if(r===e)return"";for(i=-1,o=r.length-1;a--;)if(e.charCodeAt(a)===47){if(u){n=a+1;break}}else i<0&&(u=!0,i=a+1),o>-1&&(e.charCodeAt(a)===r.charCodeAt(o--)?o<0&&(t=a):(o=-1,t=i));return n===t?t=i:t<0&&(t=e.length),e.slice(n,t)}function lm(e){var r,n,t;if(Er(e),!e.length)return".";for(r=-1,t=e.length;--t;)if(e.charCodeAt(t)===47){if(n){r=t;break}}else n||(n=!0);return r<0?e.charCodeAt(0)===47?"/":".":r===1&&e.charCodeAt(0)===47?"//":e.slice(0,r)}function fm(e){var r=-1,n=0,t=-1,a=0,i,u,o;for(Er(e),o=e.length;o--;){if(u=e.charCodeAt(o),u===47){if(i){n=o+1;break}continue}t<0&&(i=!0,t=o+1),u===46?r<0?r=o:a!==1&&(a=1):r>-1&&(a=-1)}return r<0||t<0||a===0||a===1&&r===t-1&&r===n+1?"":e.slice(r,t)}function Dm(){for(var e=-1,r;++e2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",t=0):(n=n.slice(0,s),t=n.length-1-n.lastIndexOf("/")),a=u,i=0;continue}}else if(n.length){n="",t=0,a=u,i=0;continue}}r&&(n=n.length?n+"/..":"..",t=2)}else n.length?n+="/"+e.slice(a+1,u):n=e.slice(a+1,u),t=u-a-1;a=u,i=0}else o===46&&i>-1?i++:i=-1}return n}function Er(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}});var nc=C(tc=>{"use strict";tc.cwd=hm;function hm(){return"/"}});var ac=C((lE,uc)=>{"use strict";var ie=rc(),mm=nc(),gm=Fn();uc.exports=he;var vm={}.hasOwnProperty,bn=["history","path","basename","stem","extname","dirname"];he.prototype.toString=qm;Object.defineProperty(he.prototype,"path",{get:Fm,set:Em});Object.defineProperty(he.prototype,"dirname",{get:Cm,set:bm});Object.defineProperty(he.prototype,"basename",{get:xm,set:ym});Object.defineProperty(he.prototype,"extname",{get:km,set:wm});Object.defineProperty(he.prototype,"stem",{get:Am,set:Bm});function he(e){var r,n;if(!e)e={};else if(typeof e=="string"||gm(e))e={contents:e};else if("message"in e&&"messages"in e)return e;if(!(this instanceof he))return new he(e);for(this.data={},this.messages=[],this.history=[],this.cwd=mm.cwd(),n=-1;++n-1)throw new Error("`extname` cannot contain multiple dots")}this.path=ie.join(this.dirname,this.stem+(e||""))}function Am(){return typeof this.path=="string"?ie.basename(this.path,this.extname):void 0}function Bm(e){yn(e,"stem"),xn(e,"stem"),this.path=ie.join(this.dirname||"",e+(this.extname||""))}function qm(e){return(this.contents||"").toString(e)}function xn(e,r){if(e&&e.indexOf(ie.sep)>-1)throw new Error("`"+r+"` cannot be a path: did not expect `"+ie.sep+"`")}function yn(e,r){if(!e)throw new Error("`"+r+"` cannot be empty")}function ic(e,r){if(!e)throw new Error("Setting `"+r+"` requires `path` to be set too")}});var sc=C((fE,oc)=>{"use strict";var Tm=ec(),ut=ac();oc.exports=ut;ut.prototype.message=Sm;ut.prototype.info=Pm;ut.prototype.fail=_m;function Sm(e,r,n){var t=new Tm(e,r,n);return this.path&&(t.name=this.path+":"+t.name,t.file=this.path),t.fatal=!1,this.messages.push(t),t}function _m(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}function Pm(){var e=this.message.apply(this,arguments);return e.fatal=null,e}});var lc=C((DE,cc)=>{"use strict";cc.exports=sc()});var Fc=C((pE,vc)=>{"use strict";var fc=Bs(),Lm=Fn(),at=Rs(),Dc=Ms(),mc=Hs(),Cr=lc();vc.exports=gc().freeze();var Om=[].slice,Im={}.hasOwnProperty,Nm=mc().use(Rm).use(zm).use(Mm);function Rm(e,r){r.tree=e.parse(r.file)}function zm(e,r,n){e.run(r.tree,r.file,t);function t(a,i,u){a?n(a):(r.tree=i,r.file=u,n())}}function Mm(e,r){var n=e.stringify(r.tree,r.file);n==null||(typeof n=="string"||Lm(n)?("value"in r.file&&(r.file.value=n),r.file.contents=n):r.file.result=n)}function gc(){var e=[],r=mc(),n={},t=-1,a;return i.data=o,i.freeze=u,i.attachers=e,i.use=s,i.parse=c,i.stringify=h,i.run=f,i.runSync=D,i.process=p,i.processSync=d,i;function i(){for(var m=gc(),g=-1;++g{Bn.isRemarkParser=Ym;Bn.isRemarkCompiler=Vm;function Ym(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function Vm(e){return!!(e&&e.prototype&&e.prototype.visitors)}});var wc=C((hE,kc)=>{var Ec=qn();kc.exports=Hm;var Cc=9,bc=32,ot=36,jm=48,$m=57,xc=92,Gm=["math","math-inline"],yc="math-display";function Hm(e){let r=this.Parser,n=this.Compiler;Ec.isRemarkParser(r)&&Wm(r,e),Ec.isRemarkCompiler(n)&&Km(n,e)}function Wm(e,r){let n=e.prototype,t=n.inlineMethods;i.locator=a,n.inlineTokenizers.math=i,t.splice(t.indexOf("text"),0,"math");function a(u,o){return u.indexOf("$",o)}function i(u,o,s){let l=o.length,c=!1,f=!1,D=0,h,p,d,m,g,x,F;if(o.charCodeAt(D)===xc&&(f=!0,D++),o.charCodeAt(D)===ot){if(D++,f)return s?!0:u(o.slice(0,D))({type:"text",value:"$"});if(o.charCodeAt(D)===ot&&(c=!0,D++),d=o.charCodeAt(D),!(d===bc||d===Cc)){for(m=D;D$m)&&(!c||d===ot)){g=D-1,D++,c&&D++,x=D;break}}else p===xc&&(D++,d=o.charCodeAt(D+1));D++}if(x!==void 0)return s?!0:(F=o.slice(m,g+1),u(o.slice(0,x))({type:"inlineMath",value:F,data:{hName:"span",hProperties:{className:Gm.concat(c&&r.inlineMathDouble?[yc]:[])},hChildren:[{type:"text",value:F}]}}))}}}}function Km(e){let r=e.prototype;r.visitors.inlineMath=n;function n(t){let a="$";return(t.data&&t.data.hProperties&&t.data.hProperties.className||[]).includes(yc)&&(a="$$"),a+t.value+a}}});var Sc=C((mE,Tc)=>{var Ac=qn();Tc.exports=Zm;var Bc=10,br=32,Tn=36,qc=` -`,Jm="$",Xm=2,Qm=["math","math-display"];function Zm(){let e=this.Parser,r=this.Compiler;Ac.isRemarkParser(e)&&eg(e),Ac.isRemarkCompiler(r)&&rg(r)}function eg(e){let r=e.prototype,n=r.blockMethods,t=r.interruptParagraph,a=r.interruptList,i=r.interruptBlockquote;r.blockTokenizers.math=u,n.splice(n.indexOf("fencedCode")+1,0,"math"),t.splice(t.indexOf("fencedCode")+1,0,["math"]),a.splice(a.indexOf("fencedCode")+1,0,["math"]),i.splice(i.indexOf("fencedCode")+1,0,["math"]);function u(o,s,l){var c=s.length,f=0;let D,h,p,d,m,g,x,F,B,b,v;for(;fb&&s.charCodeAt(d-1)===br;)d--;for(;d>b&&s.charCodeAt(d-1)===Tn;)B++,d--;for(g<=B&&s.indexOf(Jm,b)===d&&(F=!0,v=d);b<=v&&b-fb&&s.charCodeAt(v-1)===br;)v--;if((!F||b!==v)&&h.push(s.slice(b,v)),F)break;f=p+1,p=s.indexOf(qc,f+1),p=p===-1?c:p}return h=h.join(` +`,A+1);w===-1?c+=E.length:c=E.length-w,l in i&&(w!==-1?c+=i[l]:c<=i[l]&&(c=i[l]+1))}function x(){var E=[],w=l+1;return function(){for(var A=l+1;w{"use strict";Eu.exports=zr;var Tt=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],St=Tt.concat(["~","|"]),Fu=St.concat([` +`,'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);zr.default=Tt;zr.gfm=St;zr.commonmark=Fu;function zr(e){var r=e||{};return r.commonmark?Fu:r.gfm?St:Tt}});var xu=C((Qv,bu)=>{"use strict";bu.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]});var Pt=C((Zv,yu)=>{"use strict";yu.exports={position:!0,gfm:!0,commonmark:!1,pedantic:!1,blocks:xu()}});var wu=C((eF,ku)=>{"use strict";var Jf=_e(),Xf=Cu(),Qf=Pt();ku.exports=Zf;function Zf(e){var r=this,n=r.options,t,a;if(e==null)e={};else if(typeof e=="object")e=Jf(e);else throw new Error("Invalid value `"+e+"` for setting `options`");for(t in Qf){if(a=e[t],a==null&&(a=n[t]),t!=="blocks"&&typeof a!="boolean"||t==="blocks"&&typeof a!="object")throw new Error("Invalid value `"+a+"` for setting `options."+t+"`");e[t]=a}return r.options=e,r.escape=Xf(e),r}});var qu=C((rF,Bu)=>{"use strict";Bu.exports=Au;function Au(e){if(e==null)return nD;if(typeof e=="string")return tD(e);if(typeof e=="object")return"length"in e?rD(e):eD(e);if(typeof e=="function")return e;throw new Error("Expected function, string, or object as test")}function eD(e){return r;function r(n){var t;for(t in e)if(n[t]!==e[t])return!1;return!0}}function rD(e){for(var r=[],n=-1;++n{Tu.exports=iD;function iD(e){return e}});var Ou=C((nF,Lu)=>{"use strict";Lu.exports=Mr;var uD=qu(),aD=Su(),Pu=!0,_u="skip",_t=!1;Mr.CONTINUE=Pu;Mr.SKIP=_u;Mr.EXIT=_t;function Mr(e,r,n,t){var a,i;typeof r=="function"&&typeof n!="function"&&(t=n,n=r,r=null),i=uD(r),a=t?-1:1,u(e,null,[])();function u(o,s,l){var c=typeof o=="object"&&o!==null?o:{},f;return typeof c.type=="string"&&(f=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0,D.displayName="node ("+aD(c.type+(f?"<"+f+">":""))+")"),D;function D(){var h=l.concat(o),p=[],d,m;if((!r||i(o,s,l[l.length-1]||null))&&(p=oD(n(o,l)),p[0]===_t))return p;if(o.children&&p[0]!==_u)for(m=(t?o.children.length:-1)+a;m>-1&&m{"use strict";Iu.exports=Yr;var Ur=Ou(),sD=Ur.CONTINUE,cD=Ur.SKIP,lD=Ur.EXIT;Yr.CONTINUE=sD;Yr.SKIP=cD;Yr.EXIT=lD;function Yr(e,r,n,t){typeof r=="function"&&typeof n!="function"&&(t=n,n=r,r=null),Ur(e,r,a,t);function a(i,u){var o=u[u.length-1],s=o?o.children.indexOf(i):null;return n(i,s,o)}}});var zu=C((uF,Ru)=>{"use strict";var fD=Nu();Ru.exports=DD;function DD(e,r){return fD(e,r?pD:dD),e}function pD(e){delete e.position}function dD(e){e.position=void 0}});var Yu=C((aF,Uu)=>{"use strict";var Mu=_e(),hD=zu();Uu.exports=vD;var mD=` +`,gD=/\r\n|\r/g;function vD(){var e=this,r=String(e.file),n={line:1,column:1,offset:0},t=Mu(n),a;return r=r.replace(gD,mD),r.charCodeAt(0)===65279&&(r=r.slice(1),t.column++,t.offset++),a={type:"root",children:e.tokenizeBlock(r,t),position:{start:n,end:e.eof||Mu(n)}},e.options.position||hD(a,!0),a}});var ju=C((oF,Vu)=>{"use strict";var FD=/^[ \t]*(\n|$)/;Vu.exports=ED;function ED(e,r,n){for(var t,a="",i=0,u=r.length;i{"use strict";var pe="",Lt;$u.exports=CD;function CD(e,r){if(typeof e!="string")throw new TypeError("expected a string");if(r===1)return e;if(r===2)return e+e;var n=e.length*r;if(Lt!==e||typeof Lt>"u")Lt=e,pe="";else if(pe.length>=n)return pe.substr(0,n);for(;n>pe.length&&r>1;)r&1&&(pe+=e),r>>=1,e+=e;return pe+=e,pe=pe.substr(0,n),pe}});var Ot=C((cF,Gu)=>{"use strict";Gu.exports=bD;function bD(e){return String(e).replace(/\n+$/,"")}});var Ku=C((lF,Wu)=>{"use strict";var xD=Vr(),yD=Ot();Wu.exports=AD;var It=` +`,Hu=" ",Nt=" ",kD=4,wD=xD(Nt,kD);function AD(e,r,n){for(var t=-1,a=r.length,i="",u="",o="",s="",l,c,f;++t{"use strict";Xu.exports=SD;var jr=` +`,fr=" ",Ye=" ",BD="~",Ju="`",qD=3,TD=4;function SD(e,r,n){var t=this,a=t.options.gfm,i=r.length+1,u=0,o="",s,l,c,f,D,h,p,d,m,g,x,F,B;if(a){for(;u=TD)){for(p="";u{Ve=Zu.exports=PD;function PD(e){return e.trim?e.trim():Ve.right(Ve.left(e))}Ve.left=function(e){return e.trimLeft?e.trimLeft():e.replace(/^\s\s*/,"")};Ve.right=function(e){if(e.trimRight)return e.trimRight();for(var r=/\s/,n=e.length;r.test(e.charAt(--n)););return e.slice(0,n+1)}});var $r=C((DF,ea)=>{"use strict";ea.exports=_D;function _D(e,r,n,t){for(var a=e.length,i=-1,u,o;++i{"use strict";var LD=Oe(),OD=$r();na.exports=ID;var Rt=` +`,ra=" ",zt=" ",ta=">";function ID(e,r,n){for(var t=this,a=t.offset,i=t.blockTokenizers,u=t.interruptBlockquote,o=e.now(),s=o.line,l=r.length,c=[],f=[],D=[],h,p=0,d,m,g,x,F,B,b,v;p{"use strict";aa.exports=RD;var ua=` +`,Dr=" ",pr=" ",dr="#",ND=6;function RD(e,r,n){for(var t=this,a=t.options.pedantic,i=r.length+1,u=-1,o=e.now(),s="",l="",c,f,D;++uND)&&!(!D||!a&&r.charAt(u+1)===dr)){for(i=r.length+1,f="";++u{"use strict";ca.exports=$D;var zD=" ",MD=` +`,sa=" ",UD="*",YD="-",VD="_",jD=3;function $D(e,r,n){for(var t=-1,a=r.length+1,i="",u,o,s,l;++t=jD&&(!u||u===MD)?(i+=l,n?!0:e(i)({type:"thematicBreak"})):void 0}});var Mt=C((mF,Da)=>{"use strict";Da.exports=KD;var fa=" ",GD=" ",HD=1,WD=4;function KD(e){for(var r=0,n=0,t=e.charAt(r),a={},i,u=0;t===fa||t===GD;){for(i=t===fa?WD:HD,n+=i,i>1&&(n=Math.floor(n/i)*i);u{"use strict";var JD=Oe(),XD=Vr(),QD=Mt();da.exports=rp;var pa=` +`,ZD=" ",ep="!";function rp(e,r){var n=e.split(pa),t=n.length+1,a=1/0,i=[],u,o,s;for(n.unshift(XD(ZD,r)+ep);t--;)if(o=QD(n[t]),i[t]=o.stops,JD(n[t]).length!==0)if(o.indent)o.indent>0&&o.indent{"use strict";var tp=Oe(),np=Vr(),ma=Le(),ip=Mt(),up=ha(),ap=$r();Ea.exports=dp;var Ut="*",op="_",ga="+",Yt="-",va=".",de=" ",te=` +`,Gr=" ",Fa=")",sp="x",ye=4,cp=/\n\n(?!\s*$)/,lp=/^\[([ X\tx])][ \t]/,fp=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,Dp=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,pp=/^( {1,4}|\t)?/gm;function dp(e,r,n){for(var t=this,a=t.options.commonmark,i=t.options.pedantic,u=t.blockTokenizers,o=t.interruptList,s=0,l=r.length,c=null,f,D,h,p,d,m,g,x,F,B,b,v,y,k,E,w,A,q,T,N=!1,_,P,S,L;s=A.indent&&(L=!0),p=r.charAt(s),F=null,!L){if(p===Ut||p===ga||p===Yt)F=p,s++,f++;else{for(D="";s=A.indent||f>ye),x=!1,s=g;if(b=r.slice(g,m),B=g===s?b:r.slice(s,m),(F===Ut||F===op||F===Yt)&&u.thematicBreak.call(t,e,b,!0))break;if(v=y,y=!x&&!tp(B).length,L&&A)A.value=A.value.concat(w,b),E=E.concat(w,b),w=[];else if(x)w.length!==0&&(N=!0,A.value.push(""),A.trail=w.concat()),A={value:[b],indent:f,trail:[]},k.push(A),E=E.concat(w,b),w=[];else if(y){if(v&&!a)break;w.push(b)}else{if(v||ap(o,u,t,[e,b,!0]))break;A.value=A.value.concat(w,b),E=E.concat(w,b),w=[]}s=m+1}for(_=e(E.join(te)).reset({type:"list",ordered:h,start:c,spread:N,children:[]}),q=t.enterList(),T=t.enterBlock(),s=-1,l=k.length;++s{"use strict";ya.exports=xp;var Vt=` +`,vp=" ",ba=" ",xa="=",Fp="-",Ep=3,Cp=1,bp=2;function xp(e,r,n){for(var t=this,a=e.now(),i=r.length,u=-1,o="",s,l,c,f,D;++u=Ep){u--;break}o+=c}for(s="",l="";++u{"use strict";var yp="[a-zA-Z_:][a-zA-Z0-9:._-]*",kp="[^\"'=<>`\\u0000-\\u0020]+",wp="'[^']*'",Ap='"[^"]*"',Bp="(?:"+kp+"|"+wp+"|"+Ap+")",qp="(?:\\s+"+yp+"(?:\\s*=\\s*"+Bp+")?)",wa="<[A-Za-z][A-Za-z0-9\\-]*"+qp+"*\\s*\\/?>",Aa="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Tp="|",Sp="<[?].*?[?]>",Pp="]*>",_p="";jt.openCloseTag=new RegExp("^(?:"+wa+"|"+Aa+")");jt.tag=new RegExp("^(?:"+wa+"|"+Aa+"|"+Tp+"|"+Sp+"|"+Pp+"|"+_p+")")});var Sa=C((CF,Ta)=>{"use strict";var Lp=$t().openCloseTag;Ta.exports=Kp;var Op=" ",Ip=" ",Ba=` +`,Np="<",Rp=/^<(script|pre|style)(?=(\s|>|$))/i,zp=/<\/(script|pre|style)>/i,Mp=/^/,Yp=/^<\?/,Vp=/\?>/,jp=/^/,Gp=/^/,qa=/^$/,Wp=new RegExp(Lp.source+"\\s*$");function Kp(e,r,n){for(var t=this,a=t.options.blocks.join("|"),i=new RegExp("^|$))","i"),u=r.length,o=0,s,l,c,f,D,h,p,d=[[Rp,zp,!0],[Mp,Up,!0],[Yp,Vp,!0],[jp,$p,!0],[Gp,Hp,!0],[i,qa,!0],[Wp,qa,!1]];o{"use strict";Pa.exports=Qp;var Jp=String.fromCharCode,Xp=/\s/;function Qp(e){return Xp.test(typeof e=="number"?Jp(e):e.charAt(0))}});var Gt=C((xF,_a)=>{"use strict";var Zp=wr();_a.exports=ed;function ed(e){return Zp(e).toLowerCase()}});var Ma=C((yF,za)=>{"use strict";var rd=ne(),td=Gt();za.exports=ad;var La='"',Oa="'",nd="\\",je=` +`,Hr=" ",Wr=" ",Wt="[",hr="]",id="(",ud=")",Ia=":",Na="<",Ra=">";function ad(e,r,n){for(var t=this,a=t.options.commonmark,i=0,u=r.length,o="",s,l,c,f,D,h,p,d;i{"use strict";var sd=ne();Ya.exports=vd;var cd=" ",Kr=` +`,ld=" ",fd="-",Dd=":",pd="\\",Kt="|",dd=1,hd=2,Ua="left",md="center",gd="right";function vd(e,r,n){var t=this,a,i,u,o,s,l,c,f,D,h,p,d,m,g,x,F,B,b,v,y,k,E;if(t.options.gfm){for(a=0,F=0,l=r.length+1,c=[];ay){if(F1&&(D?(o+=f.slice(0,-1),f=f.charAt(f.length-1)):(o+=f,f="")),g=e.now(),e(o)({type:"tableCell",children:t.tokenizeInline(d,g)},s)),e(f+D),f="",d=""):(f&&(d+=f,f=""),d+=D,D===pd&&a!==l-2&&(d+=B.charAt(a+1),a++)),m=!1,a++}x||e(Kr+i)}return v}}}});var Ga=C((wF,$a)=>{"use strict";var Fd=Oe(),Ed=Ot(),Cd=$r();$a.exports=yd;var bd=" ",mr=` +`,xd=" ",ja=4;function yd(e,r,n){for(var t=this,a=t.options,i=a.commonmark,u=t.blockTokenizers,o=t.interruptParagraph,s=r.indexOf(mr),l=r.length,c,f,D,h,p;s=ja&&D!==mr){s=r.indexOf(mr,s+1);continue}}if(f=r.slice(s+1),Cd(o,u,t,[e,f,!0]))break;if(c=s,s=r.indexOf(mr,s+1),s!==-1&&Fd(r.slice(c,s))===""){s=c;break}}return f=r.slice(0,s),n?!0:(p=e.now(),f=Ed(f),e(f)({type:"paragraph",children:t.tokenizeInline(f,p)}))}});var Wa=C((AF,Ha)=>{"use strict";Ha.exports=kd;function kd(e,r){return e.indexOf("\\",r)}});var Qa=C((BF,Xa)=>{"use strict";var wd=Wa();Xa.exports=Ja;Ja.locator=wd;var Ad=` +`,Ka="\\";function Ja(e,r,n){var t=this,a,i;if(r.charAt(0)===Ka&&(a=r.charAt(1),t.escape.indexOf(a)!==-1))return n?!0:(a===Ad?i={type:"break"}:i={type:"text",value:a},e(Ka+a)(i))}});var Jt=C((qF,Za)=>{"use strict";Za.exports=Bd;function Bd(e,r){return e.indexOf("<",r)}});var io=C((TF,no)=>{"use strict";var eo=ne(),qd=lr(),Td=Jt();no.exports=en;en.locator=Td;en.notInLink=!0;var ro="<",Xt=">",to="@",Qt="/",Zt="mailto:",Jr=Zt.length;function en(e,r,n){var t=this,a="",i=r.length,u=0,o="",s=!1,l="",c,f,D,h,p;if(r.charAt(0)===ro){for(u++,a=ro;u{"use strict";uo.exports=Sd;function Sd(e,r){var n=String(e),t=0,a;if(typeof r!="string")throw new Error("Expected character");for(a=n.indexOf(r);a!==-1;)t++,a=n.indexOf(r,a+r.length);return t}});var co=C((PF,so)=>{"use strict";so.exports=Pd;var oo=["www.","http://","https://"];function Pd(e,r){var n=-1,t,a,i;if(!this.options.gfm)return n;for(a=oo.length,t=-1;++t{"use strict";var lo=ao(),_d=lr(),Ld=Le(),rn=ze(),Od=ne(),Id=co();po.exports=nn;nn.locator=Id;nn.notInLink=!0;var Nd=33,Rd=38,zd=41,Md=42,Ud=44,Yd=45,tn=46,Vd=58,jd=59,$d=63,Gd=60,fo=95,Hd=126,Wd="(",Do=")";function nn(e,r,n){var t=this,a=t.options.gfm,i=t.inlineTokenizers,u=r.length,o=-1,s=!1,l,c,f,D,h,p,d,m,g,x,F,B,b,v;if(a){if(r.slice(0,4)==="www.")s=!0,D=4;else if(r.slice(0,7).toLowerCase()==="http://")D=7;else if(r.slice(0,8).toLowerCase()==="https://")D=8;else return;for(o=D-1,f=D,l=[];Dg;)D=h+p.lastIndexOf(Do),p=r.slice(h,D),x--;if(r.charCodeAt(D-1)===jd&&(D--,rn(r.charCodeAt(D-1)))){for(m=D-2;rn(r.charCodeAt(m));)m--;r.charCodeAt(m)===Rd&&(D=m)}return F=r.slice(0,D),b=_d(F,{nonTerminated:!1}),s&&(b="http://"+b),v=t.enterLink(),t.inlineTokenizers={text:i.text},B=t.tokenizeInline(F,e.now()),t.inlineTokenizers=i,v(),e(F)({type:"link",title:null,url:b,children:B})}}}});var Fo=C((LF,vo)=>{"use strict";var Kd=Le(),Jd=ze(),Xd=43,Qd=45,Zd=46,eh=95;vo.exports=go;function go(e,r){var n=this,t,a;if(!this.options.gfm||(t=e.indexOf("@",r),t===-1))return-1;if(a=t,a===r||!mo(e.charCodeAt(a-1)))return go.call(n,e,t+1);for(;a>r&&mo(e.charCodeAt(a-1));)a--;return a}function mo(e){return Kd(e)||Jd(e)||e===Xd||e===Qd||e===Zd||e===eh}});var xo=C((OF,bo)=>{"use strict";var rh=lr(),Eo=Le(),Co=ze(),th=Fo();bo.exports=on;on.locator=th;on.notInLink=!0;var nh=43,un=45,Xr=46,ih=64,an=95;function on(e,r,n){var t=this,a=t.options.gfm,i=t.inlineTokenizers,u=0,o=r.length,s=-1,l,c,f,D;if(a){for(l=r.charCodeAt(u);Eo(l)||Co(l)||l===nh||l===un||l===Xr||l===an;)l=r.charCodeAt(++u);if(u!==0&&l===ih){for(u++;u{"use strict";var uh=ze(),ah=Jt(),oh=$t().tag;ko.exports=yo;yo.locator=ah;var sh="<",ch="?",lh="!",fh="/",Dh=/^/i;function yo(e,r,n){var t=this,a=r.length,i,u;if(!(r.charAt(0)!==sh||a<3)&&(i=r.charAt(1),!(!uh(i)&&i!==ch&&i!==lh&&i!==fh)&&(u=r.match(oh),!!u)))return n?!0:(u=u[0],!t.inLink&&Dh.test(u)?t.inLink=!0:t.inLink&&ph.test(u)&&(t.inLink=!1),e(u)({type:"html",value:u}))}});var sn=C((NF,Ao)=>{"use strict";Ao.exports=dh;function dh(e,r){var n=e.indexOf("[",r),t=e.indexOf("![",r);return t===-1||n{"use strict";var gr=ne(),hh=sn();_o.exports=Po;Po.locator=hh;var mh=` +`,gh="!",Bo='"',qo="'",$e="(",vr=")",cn="<",ln=">",To="[",Fr="\\",vh="]",So="`";function Po(e,r,n){var t=this,a="",i=0,u=r.charAt(0),o=t.options.pedantic,s=t.options.commonmark,l=t.options.gfm,c,f,D,h,p,d,m,g,x,F,B,b,v,y,k,E,w,A;if(u===gh&&(g=!0,a=u,u=r.charAt(++i)),u===To&&!(!g&&t.inLink)){for(a+=u,y="",i++,B=r.length,E=e.now(),v=0,E.column+=i,E.offset+=i;i=D&&(D=0):D=f}else if(u===Fr)i++,d+=r.charAt(i);else if((!D||l)&&u===To)v++;else if((!D||l)&&u===vh)if(v)v--;else{if(r.charAt(i+1)!==$e)return;d+=$e,c=!0,i++;break}y+=d,d="",i++}if(c){for(x=y,a+=y+d,i++;i{"use strict";var Fh=ne(),Eh=sn(),Ch=Gt();Io.exports=Oo;Oo.locator=Eh;var fn="link",bh="image",xh="shortcut",yh="collapsed",Dn="full",kh="!",Qr="[",Zr="\\",et="]";function Oo(e,r,n){var t=this,a=t.options.commonmark,i=r.charAt(0),u=0,o=r.length,s="",l="",c=fn,f=xh,D,h,p,d,m,g,x,F;if(i===kh&&(c=bh,l=i,i=r.charAt(++u)),i===Qr){for(u++,l+=i,g="",F=0;u{"use strict";Ro.exports=wh;function wh(e,r){var n=e.indexOf("**",r),t=e.indexOf("__",r);return t===-1?n:n===-1||t{"use strict";var Ah=Oe(),Mo=ne(),Bh=zo();Yo.exports=Uo;Uo.locator=Bh;var qh="\\",Th="*",Sh="_";function Uo(e,r,n){var t=this,a=0,i=r.charAt(a),u,o,s,l,c,f,D;if(!(i!==Th&&i!==Sh||r.charAt(++a)!==i)&&(o=t.options.pedantic,s=i,c=s+s,f=r.length,a++,l="",i="",!(o&&Mo(r.charAt(a)))))for(;a{"use strict";jo.exports=Lh;var Ph=String.fromCharCode,_h=/\w/;function Lh(e){return _h.test(typeof e=="number"?Ph(e):e.charAt(0))}});var Ho=C((VF,Go)=>{"use strict";Go.exports=Oh;function Oh(e,r){var n=e.indexOf("*",r),t=e.indexOf("_",r);return t===-1?n:n===-1||t{"use strict";var Ih=Oe(),Nh=$o(),Wo=ne(),Rh=Ho();Xo.exports=Jo;Jo.locator=Rh;var zh="*",Ko="_",Mh="\\";function Jo(e,r,n){var t=this,a=0,i=r.charAt(a),u,o,s,l,c,f,D;if(!(i!==zh&&i!==Ko)&&(o=t.options.pedantic,c=i,s=i,f=r.length,a++,l="",i="",!(o&&Wo(r.charAt(a)))))for(;a{"use strict";Zo.exports=Uh;function Uh(e,r){return e.indexOf("~~",r)}});var us=C((GF,is)=>{"use strict";var rs=ne(),Yh=es();is.exports=ns;ns.locator=Yh;var rt="~",ts="~~";function ns(e,r,n){var t=this,a="",i="",u="",o="",s,l,c;if(!(!t.options.gfm||r.charAt(0)!==rt||r.charAt(1)!==rt||rs(r.charAt(2))))for(s=1,l=r.length,c=e.now(),c.column+=2,c.offset+=2;++s{"use strict";as.exports=Vh;function Vh(e,r){return e.indexOf("`",r)}});var ls=C((WF,cs)=>{"use strict";var jh=os();cs.exports=ss;ss.locator=jh;var pn=10,dn=32,hn=96;function ss(e,r,n){for(var t=r.length,a=0,i,u,o,s,l,c;a2&&(s===dn||s===pn)&&(l===dn||l===pn)){for(a++,t--;a{"use strict";fs.exports=$h;function $h(e,r){for(var n=e.indexOf(` +`,r);n>r&&e.charAt(n-1)===" ";)n--;return n}});var hs=C((JF,ds)=>{"use strict";var Gh=Ds();ds.exports=ps;ps.locator=Gh;var Hh=" ",Wh=` +`,Kh=2;function ps(e,r,n){for(var t=r.length,a=-1,i="",u;++a{"use strict";ms.exports=Jh;function Jh(e,r,n){var t=this,a,i,u,o,s,l,c,f,D,h;if(n)return!0;for(a=t.inlineMethods,o=a.length,i=t.inlineTokenizers,u=-1,D=r.length;++u{"use strict";var Xh=_e(),tt=Ni(),Qh=zi(),Zh=Ui(),em=hu(),mn=vu();Es.exports=vs;function vs(e,r){this.file=r,this.offset={},this.options=Xh(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=Qh(r).toOffset,this.unescape=Zh(this,"escape"),this.decode=em(this)}var z=vs.prototype;z.setOptions=wu();z.parse=Yu();z.options=Pt();z.exitStart=tt("atStart",!0);z.enterList=tt("inList",!1);z.enterLink=tt("inLink",!1);z.enterBlock=tt("inBlock",!1);z.interruptParagraph=[["thematicBreak"],["list"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}]];z.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}]];z.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}]];z.blockTokenizers={blankLine:ju(),indentedCode:Ku(),fencedCode:Qu(),blockquote:ia(),atxHeading:oa(),thematicBreak:la(),list:Ca(),setextHeading:ka(),html:Sa(),definition:Ma(),table:Va(),paragraph:Ga()};z.inlineTokenizers={escape:Qa(),autoLink:io(),url:ho(),email:xo(),html:wo(),link:Lo(),reference:No(),strong:Vo(),emphasis:Qo(),deletion:us(),code:ls(),break:hs(),text:gs()};z.blockMethods=Fs(z.blockTokenizers);z.inlineMethods=Fs(z.inlineTokenizers);z.tokenizeBlock=mn("block");z.tokenizeInline=mn("inline");z.tokenizeFactory=mn;function Fs(e){var r=[],n;for(n in e)r.push(n);return r}});var ks=C((ZF,ys)=>{"use strict";var rm=Oi(),tm=_e(),bs=Cs();ys.exports=xs;xs.Parser=bs;function xs(e){var r=this.data("settings"),n=rm(bs);n.prototype.options=tm(n.prototype.options,r,e),this.Parser=n}});var As=C((eE,ws)=>{"use strict";ws.exports=nm;function nm(e){if(e)throw e}});var gn=C((rE,Bs)=>{Bs.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var Ns=C((tE,Is)=>{"use strict";var nt=Object.prototype.hasOwnProperty,Os=Object.prototype.toString,qs=Object.defineProperty,Ts=Object.getOwnPropertyDescriptor,Ss=function(r){return typeof Array.isArray=="function"?Array.isArray(r):Os.call(r)==="[object Array]"},Ps=function(r){if(!r||Os.call(r)!=="[object Object]")return!1;var n=nt.call(r,"constructor"),t=r.constructor&&r.constructor.prototype&&nt.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!n&&!t)return!1;var a;for(a in r);return typeof a>"u"||nt.call(r,a)},_s=function(r,n){qs&&n.name==="__proto__"?qs(r,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):r[n.name]=n.newValue},Ls=function(r,n){if(n==="__proto__")if(nt.call(r,n)){if(Ts)return Ts(r,n).value}else return;return r[n]};Is.exports=function e(){var r,n,t,a,i,u,o=arguments[0],s=1,l=arguments.length,c=!1;for(typeof o=="boolean"&&(c=o,o=arguments[1]||{},s=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});s{"use strict";Rs.exports=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}});var Us=C((iE,Ms)=>{"use strict";var im=[].slice;Ms.exports=um;function um(e,r){var n;return t;function t(){var u=im.call(arguments,0),o=e.length>u.length,s;o&&u.push(a);try{s=e.apply(null,u)}catch(l){if(o&&n)throw l;return a(l)}o||(s&&typeof s.then=="function"?s.then(i,a):s instanceof Error?a(s):i(s))}function a(){n||(n=!0,r.apply(null,arguments))}function i(u){a(null,u)}}});var Gs=C((uE,$s)=>{"use strict";var Vs=Us();$s.exports=js;js.wrap=Vs;var Ys=[].slice;function js(){var e=[],r={};return r.run=n,r.use=t,r;function n(){var a=-1,i=Ys.call(arguments,0,-1),u=arguments[arguments.length-1];if(typeof u!="function")throw new Error("Expected function as last argument, not "+u);o.apply(null,[null].concat(i));function o(s){var l=e[++a],c=Ys.call(arguments,0),f=c.slice(1),D=i.length,h=-1;if(s){u(s);return}for(;++h{"use strict";var Ge={}.hasOwnProperty;Ks.exports=am;function am(e){return!e||typeof e!="object"?"":Ge.call(e,"position")||Ge.call(e,"type")?Hs(e.position):Ge.call(e,"start")||Ge.call(e,"end")?Hs(e):Ge.call(e,"line")||Ge.call(e,"column")?vn(e):""}function vn(e){return(!e||typeof e!="object")&&(e={}),Ws(e.line)+":"+Ws(e.column)}function Hs(e){return(!e||typeof e!="object")&&(e={}),vn(e.start)+"-"+vn(e.end)}function Ws(e){return e&&typeof e=="number"?e:1}});var Zs=C((oE,Qs)=>{"use strict";var om=Js();Qs.exports=Fn;function Xs(){}Xs.prototype=Error.prototype;Fn.prototype=new Xs;var ke=Fn.prototype;ke.file="";ke.name="";ke.reason="";ke.message="";ke.stack="";ke.fatal=null;ke.column=null;ke.line=null;function Fn(e,r,n){var t,a,i;typeof r=="string"&&(n=r,r=null),t=sm(n),a=om(r)||"1:1",i={start:{line:null,column:null},end:{line:null,column:null}},r&&r.position&&(r=r.position),r&&(r.start?(i=r,r=r.start):i.start=r),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=a,this.reason=e,this.line=r?r.line:null,this.column=r?r.column:null,this.location=i,this.source=t[0],this.ruleId=t[1]}function sm(e){var r=[null,null],n;return typeof e=="string"&&(n=e.indexOf(":"),n===-1?r[1]=e:(r[0]=e.slice(0,n),r[1]=e.slice(n+1))),r}});var ec=C(He=>{"use strict";He.basename=cm;He.dirname=lm;He.extname=fm;He.join=Dm;He.sep="/";function cm(e,r){var n=0,t=-1,a,i,u,o;if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');if(Er(e),a=e.length,r===void 0||!r.length||r.length>e.length){for(;a--;)if(e.charCodeAt(a)===47){if(u){n=a+1;break}}else t<0&&(u=!0,t=a+1);return t<0?"":e.slice(n,t)}if(r===e)return"";for(i=-1,o=r.length-1;a--;)if(e.charCodeAt(a)===47){if(u){n=a+1;break}}else i<0&&(u=!0,i=a+1),o>-1&&(e.charCodeAt(a)===r.charCodeAt(o--)?o<0&&(t=a):(o=-1,t=i));return n===t?t=i:t<0&&(t=e.length),e.slice(n,t)}function lm(e){var r,n,t;if(Er(e),!e.length)return".";for(r=-1,t=e.length;--t;)if(e.charCodeAt(t)===47){if(n){r=t;break}}else n||(n=!0);return r<0?e.charCodeAt(0)===47?"/":".":r===1&&e.charCodeAt(0)===47?"//":e.slice(0,r)}function fm(e){var r=-1,n=0,t=-1,a=0,i,u,o;for(Er(e),o=e.length;o--;){if(u=e.charCodeAt(o),u===47){if(i){n=o+1;break}continue}t<0&&(i=!0,t=o+1),u===46?r<0?r=o:a!==1&&(a=1):r>-1&&(a=-1)}return r<0||t<0||a===0||a===1&&r===t-1&&r===n+1?"":e.slice(r,t)}function Dm(){for(var e=-1,r;++e2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",t=0):(n=n.slice(0,s),t=n.length-1-n.lastIndexOf("/")),a=u,i=0;continue}}else if(n.length){n="",t=0,a=u,i=0;continue}}r&&(n=n.length?n+"/..":"..",t=2)}else n.length?n+="/"+e.slice(a+1,u):n=e.slice(a+1,u),t=u-a-1;a=u,i=0}else o===46&&i>-1?i++:i=-1}return n}function Er(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}});var tc=C(rc=>{"use strict";rc.cwd=hm;function hm(){return"/"}});var uc=C((lE,ic)=>{"use strict";var ie=ec(),mm=tc(),gm=gn();ic.exports=he;var vm={}.hasOwnProperty,En=["history","path","basename","stem","extname","dirname"];he.prototype.toString=qm;Object.defineProperty(he.prototype,"path",{get:Fm,set:Em});Object.defineProperty(he.prototype,"dirname",{get:Cm,set:bm});Object.defineProperty(he.prototype,"basename",{get:xm,set:ym});Object.defineProperty(he.prototype,"extname",{get:km,set:wm});Object.defineProperty(he.prototype,"stem",{get:Am,set:Bm});function he(e){var r,n;if(!e)e={};else if(typeof e=="string"||gm(e))e={contents:e};else if("message"in e&&"messages"in e)return e;if(!(this instanceof he))return new he(e);for(this.data={},this.messages=[],this.history=[],this.cwd=mm.cwd(),n=-1;++n-1)throw new Error("`extname` cannot contain multiple dots")}this.path=ie.join(this.dirname,this.stem+(e||""))}function Am(){return typeof this.path=="string"?ie.basename(this.path,this.extname):void 0}function Bm(e){bn(e,"stem"),Cn(e,"stem"),this.path=ie.join(this.dirname||"",e+(this.extname||""))}function qm(e){return(this.contents||"").toString(e)}function Cn(e,r){if(e&&e.indexOf(ie.sep)>-1)throw new Error("`"+r+"` cannot be a path: did not expect `"+ie.sep+"`")}function bn(e,r){if(!e)throw new Error("`"+r+"` cannot be empty")}function nc(e,r){if(!e)throw new Error("Setting `"+r+"` requires `path` to be set too")}});var oc=C((fE,ac)=>{"use strict";var Tm=Zs(),it=uc();ac.exports=it;it.prototype.message=Sm;it.prototype.info=_m;it.prototype.fail=Pm;function Sm(e,r,n){var t=new Tm(e,r,n);return this.path&&(t.name=this.path+":"+t.name,t.file=this.path),t.fatal=!1,this.messages.push(t),t}function Pm(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}function _m(){var e=this.message.apply(this,arguments);return e.fatal=null,e}});var cc=C((DE,sc)=>{"use strict";sc.exports=oc()});var vc=C((pE,gc)=>{"use strict";var lc=As(),Lm=gn(),ut=Ns(),fc=zs(),hc=Gs(),Cr=cc();gc.exports=mc().freeze();var Om=[].slice,Im={}.hasOwnProperty,Nm=hc().use(Rm).use(zm).use(Mm);function Rm(e,r){r.tree=e.parse(r.file)}function zm(e,r,n){e.run(r.tree,r.file,t);function t(a,i,u){a?n(a):(r.tree=i,r.file=u,n())}}function Mm(e,r){var n=e.stringify(r.tree,r.file);n==null||(typeof n=="string"||Lm(n)?("value"in r.file&&(r.file.value=n),r.file.contents=n):r.file.result=n)}function mc(){var e=[],r=hc(),n={},t=-1,a;return i.data=o,i.freeze=u,i.attachers=e,i.use=s,i.parse=c,i.stringify=h,i.run=f,i.runSync=D,i.process=p,i.processSync=d,i;function i(){for(var m=mc(),g=-1;++g{wn.isRemarkParser=Ym;wn.isRemarkCompiler=Vm;function Ym(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function Vm(e){return!!(e&&e.prototype&&e.prototype.visitors)}});var kc=C((hE,yc)=>{var Fc=An();yc.exports=Hm;var Ec=9,Cc=32,at=36,jm=48,$m=57,bc=92,Gm=["math","math-inline"],xc="math-display";function Hm(e){let r=this.Parser,n=this.Compiler;Fc.isRemarkParser(r)&&Wm(r,e),Fc.isRemarkCompiler(n)&&Km(n,e)}function Wm(e,r){let n=e.prototype,t=n.inlineMethods;i.locator=a,n.inlineTokenizers.math=i,t.splice(t.indexOf("text"),0,"math");function a(u,o){return u.indexOf("$",o)}function i(u,o,s){let l=o.length,c=!1,f=!1,D=0,h,p,d,m,g,x,F;if(o.charCodeAt(D)===bc&&(f=!0,D++),o.charCodeAt(D)===at){if(D++,f)return s?!0:u(o.slice(0,D))({type:"text",value:"$"});if(o.charCodeAt(D)===at&&(c=!0,D++),d=o.charCodeAt(D),!(d===Cc||d===Ec)){for(m=D;D$m)&&(!c||d===at)){g=D-1,D++,c&&D++,x=D;break}}else p===bc&&(D++,d=o.charCodeAt(D+1));D++}if(x!==void 0)return s?!0:(F=o.slice(m,g+1),u(o.slice(0,x))({type:"inlineMath",value:F,data:{hName:"span",hProperties:{className:Gm.concat(c&&r.inlineMathDouble?[xc]:[])},hChildren:[{type:"text",value:F}]}}))}}}}function Km(e){let r=e.prototype;r.visitors.inlineMath=n;function n(t){let a="$";return(t.data&&t.data.hProperties&&t.data.hProperties.className||[]).includes(xc)&&(a="$$"),a+t.value+a}}});var Tc=C((mE,qc)=>{var wc=An();qc.exports=Zm;var Ac=10,br=32,Bn=36,Bc=` +`,Jm="$",Xm=2,Qm=["math","math-display"];function Zm(){let e=this.Parser,r=this.Compiler;wc.isRemarkParser(e)&&eg(e),wc.isRemarkCompiler(r)&&rg(r)}function eg(e){let r=e.prototype,n=r.blockMethods,t=r.interruptParagraph,a=r.interruptList,i=r.interruptBlockquote;r.blockTokenizers.math=u,n.splice(n.indexOf("fencedCode")+1,0,"math"),t.splice(t.indexOf("fencedCode")+1,0,["math"]),a.splice(a.indexOf("fencedCode")+1,0,["math"]),i.splice(i.indexOf("fencedCode")+1,0,["math"]);function u(o,s,l){var c=s.length,f=0;let D,h,p,d,m,g,x,F,B,b,v;for(;fb&&s.charCodeAt(d-1)===br;)d--;for(;d>b&&s.charCodeAt(d-1)===Bn;)B++,d--;for(g<=B&&s.indexOf(Jm,b)===d&&(F=!0,v=d);b<=v&&b-fb&&s.charCodeAt(v-1)===br;)v--;if((!F||b!==v)&&h.push(s.slice(b,v)),F)break;f=p+1,p=s.indexOf(Bc,f+1),p=p===-1?c:p}return h=h.join(` `),o(s.slice(0,p))({type:"math",value:h,data:{hName:"div",hProperties:{className:Qm.concat()},hChildren:[{type:"text",value:h}]}})}}}}function rg(e){let r=e.prototype;r.visitors.math=n;function n(t){return`$$ `+t.value+` -$$`}}});var Pc=C((gE,_c)=>{var tg=wc(),ng=Sc();_c.exports=ig;function ig(e){var r=e||{};ng.call(this,r),tg.call(this,r)}});var Oc=C((vE,Lc)=>{"use strict";Lc.exports=cg;var xr=9,st=10,We=32,ug=33,ag=58,Ke=91,og=92,Sn=93,yr=94,ct=96,lt=4,sg=1024;function cg(e){var r=this.Parser,n=this.Compiler;lg(r)&&Dg(r,e),fg(n)&&pg(n)}function lg(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function fg(e){return!!(e&&e.prototype&&e.prototype.visitors)}function Dg(e,r){for(var n=r||{},t=e.prototype,a=t.blockTokenizers,i=t.inlineTokenizers,u=t.blockMethods,o=t.inlineMethods,s=a.definition,l=i.reference,c=[],f=-1,D=u.length,h;++flt&&(K=void 0,me=q);else{if(K0&&(M=ge[A-1],M.contentStart===M.contentEnd);)A--;for(we=b(v.slice(0,M.contentEnd));++q{var tg=kc(),ng=Tc();Sc.exports=ig;function ig(e){var r=e||{};ng.call(this,r),tg.call(this,r)}});var Lc=C((vE,_c)=>{"use strict";_c.exports=cg;var xr=9,ot=10,We=32,ug=33,ag=58,Ke=91,og=92,qn=93,yr=94,st=96,ct=4,sg=1024;function cg(e){var r=this.Parser,n=this.Compiler;lg(r)&&Dg(r,e),fg(n)&&pg(n)}function lg(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function fg(e){return!!(e&&e.prototype&&e.prototype.visitors)}function Dg(e,r){for(var n=r||{},t=e.prototype,a=t.blockTokenizers,i=t.inlineTokenizers,u=t.blockMethods,o=t.inlineMethods,s=a.definition,l=i.reference,c=[],f=-1,D=u.length,h;++fct&&(K=void 0,me=q);else{if(K0&&(M=ge[A-1],M.contentStart===M.contentEnd);)A--;for(we=b(v.slice(0,M.contentEnd));++qZc,options:()=>el,parsers:()=>ft,printers:()=>wg});var ol=(e,r,n,t)=>{if(!(e&&r==null))return r.replaceAll?r.replaceAll(n,t):n.global?r.replace(n,t):r.split(n).join(t)},R=ol;var sl=(e,r,n)=>{if(!(e&&r==null))return Array.isArray(r)||typeof r=="string"?r[n<0?r.length+n:n]:r.at(n)},U=sl;var Ti=Ie(wr(),1);function Je(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function ll(e,r){let n=e.match(new RegExp(`(${Je(r)})+`,"g"));if(n===null)return 0;let t=new Map,a=0;for(let i of n){let u=i.length/r.length;t.set(u,!0),u>a&&(a=u)}for(let i=1;iMath.max(t,a.length/r.length),0)}var Ar=fl;var zn=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;var Mn={eastAsianWidth(e){var r=e.charCodeAt(0),n=e.length==2?e.charCodeAt(1):0,t=r;return 55296<=r&&r<=56319&&56320<=n&&n<=57343&&(r&=1023,n&=1023,t=r<<10|n,t+=65536),t==12288||65281<=t&&t<=65376||65504<=t&&t<=65510?"F":4352<=t&&t<=4447||4515<=t&&t<=4519||4602<=t&&t<=4607||9001<=t&&t<=9002||11904<=t&&t<=11929||11931<=t&&t<=12019||12032<=t&&t<=12245||12272<=t&&t<=12283||12289<=t&&t<=12350||12353<=t&&t<=12438||12441<=t&&t<=12543||12549<=t&&t<=12589||12593<=t&&t<=12686||12688<=t&&t<=12730||12736<=t&&t<=12771||12784<=t&&t<=12830||12832<=t&&t<=12871||12880<=t&&t<=13054||13056<=t&&t<=19903||19968<=t&&t<=42124||42128<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||55216<=t&&t<=55238||55243<=t&&t<=55291||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65106||65108<=t&&t<=65126||65128<=t&&t<=65131||110592<=t&&t<=110593||127488<=t&&t<=127490||127504<=t&&t<=127546||127552<=t&&t<=127560||127568<=t&&t<=127569||131072<=t&&t<=194367||177984<=t&&t<=196605||196608<=t&&t<=262141?"W":"N"}};var Dl=/[^\x20-\x7F]/;function pl(e){if(!e)return 0;if(!Dl.test(e))return e.length;e=e.replace(zn()," ");let r=0;for(let n of e){let t=n.codePointAt(0);if(t<=31||t>=127&&t<=159||t>=768&&t<=879)continue;let a=Mn.eastAsianWidth(n);r+=a==="F"||a==="W"?2:1}return r}var Xe=pl;var Br="'",Un='"';function dl(e,r){let n=r===!0||r===Br?Br:Un,t=n===Br?Un:Br,a=0,i=0;for(let u of e)u===n?a++:u===t&&i++;return a>i?t:n}var Yn=dl;var ue="string",X="array",ve="cursor",Q="indent",Z="align",ae="trim",G="group",H="fill",W="if-break",oe="indent-if-break",se="line-suffix",ce="line-suffix-boundary",$="line",le="label",ee="break-parent",qr=new Set([ve,Q,Z,ae,G,H,W,oe,se,ce,$,le,ee]);function hl(e){if(typeof e=="string")return ue;if(Array.isArray(e))return X;if(!e)return;let{type:r}=e;if(qr.has(r))return r}var fe=hl;var ml=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function gl(e){let r=e===null?"null":typeof e;if(r!=="string"&&r!=="object")return`Unexpected doc '${r}', -Expected it to be 'string' or 'object'.`;if(fe(e))throw new Error("doc is valid.");let n=Object.prototype.toString.call(e);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let t=ml([...qr].map(a=>`'${a}'`));return`Unexpected doc.type '${e.type}'. -Expected it to be ${t}.`}var pt=class extends Error{name="InvalidDocError";constructor(r){super(gl(r)),this.doc=r}},Ae=pt;var Vn={};function vl(e,r,n,t){let a=[e];for(;a.length>0;){let i=a.pop();if(i===Vn){n(a.pop());continue}n&&a.push(i,Vn);let u=fe(i);if(!u)throw new Ae(i);if((r==null?void 0:r(i))!==!1)switch(u){case X:case H:{let o=u===X?i:i.parts;for(let s=o.length,l=s-1;l>=0;--l)a.push(o[l]);break}case W:a.push(i.flatContents,i.breakContents);break;case G:if(t&&i.expandedStates)for(let o=i.expandedStates.length,s=o-1;s>=0;--s)a.push(i.expandedStates[s]);else a.push(i.contents);break;case Z:case Q:case oe:case le:case se:a.push(i.contents);break;case ue:case ve:case ae:case ce:case $:case ee:break;default:throw new Ae(i)}}}var jn=vl;var $n=()=>{},Be=$n,Tr=$n;function Qe(e){return Be(e),{type:Q,contents:e}}function Fe(e,r){return Be(r),{type:Z,contents:r,n:e}}function Ze(e,r={}){return Be(e),Tr(r.expandedStates,!0),{type:G,id:r.id,contents:e,break:!!r.shouldBreak,expandedStates:r.expandedStates}}function qe(e){return Fe({type:"root"},e)}function Sr(e){return Tr(e),{type:H,parts:e}}function Gn(e,r="",n={}){return Be(e),r!==""&&Be(r),{type:W,breakContents:e,flatContents:r,groupId:n.groupId}}var er={type:ee};var Ne={type:$,hard:!0},Fl={type:$,hard:!0,literal:!0},_r={type:$},rr={type:$,soft:!0},O=[Ne,er],tr=[Fl,er];function nr(e,r){Be(e),Tr(r);let n=[];for(let t=0;t{if(Array.isArray(e))return e;if(e.type!==H)throw new Error(`Expect doc to be 'array' or '${H}'.`);return e.parts};function Jn(e,r){if(typeof e=="string")return r(e);let n=new Map;return t(e);function t(i){if(n.has(i))return n.get(i);let u=a(i);return n.set(i,u),u}function a(i){switch(fe(i)){case X:return r(i.map(t));case H:return r({...i,parts:i.parts.map(t)});case W:return r({...i,breakContents:t(i.breakContents),flatContents:t(i.flatContents)});case G:{let{expandedStates:u,contents:o}=i;return u?(u=u.map(t),o=u[0]):o=t(o),r({...i,contents:o,expandedStates:u})}case Z:case Q:case oe:case le:case se:return r({...i,contents:t(i.contents)});case ue:case ve:case ae:case ce:case $:case ee:return r(i);default:throw new Ae(i)}}}function Hn(e){if(e.length>0){let r=U(!1,e,-1);!r.expandedStates&&!r.break&&(r.break="propagated")}return null}function Xn(e){let r=new Set,n=[];function t(i){if(i.type===ee&&Hn(n),i.type===G){if(n.push(i),r.has(i))return!1;r.add(i)}}function a(i){i.type===G&&n.pop().break&&Hn(n)}jn(e,t,a,!0)}function Wn(e){let r=[],n=e.filter(Boolean);for(;n.length>0;){let t=n.shift();if(t){if(Array.isArray(t)){n.unshift(...t);continue}if(r.length>0&&typeof U(!1,r,-1)=="string"&&typeof t=="string"){r[r.length-1]+=t;continue}r.push(t)}}return r}function Qn(e){return Jn(e,r=>Array.isArray(r)?Wn(r):r.parts?{...r,parts:Wn(r.parts)}:r)}function Ee(e,r=tr){return Jn(e,n=>typeof n=="string"?nr(r,n.split(` -`)):n)}function Zn(e){switch(e){case"cr":return"\r";case"crlf":return`\r +`)}}function Tn(e,r,n){e.splice(e.indexOf(r),0,n)}function dg(e,r,n,t){for(var a=e.length,i=-1;++iQc,options:()=>Zc,parsers:()=>Pn,printers:()=>wg});var al=(e,r,n,t)=>{if(!(e&&r==null))return r.replaceAll?r.replaceAll(n,t):n.global?r.replace(n,t):r.split(n).join(t)},R=al;var ol=(e,r,n)=>{if(!(e&&r==null))return Array.isArray(r)||typeof r=="string"?r[n<0?r.length+n:n]:r.at(n)},U=ol;var qi=Ie(wr(),1);function Je(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function cl(e,r){let n=e.match(new RegExp(`(${Je(r)})+`,"g"));if(n===null)return 0;let t=new Map,a=0;for(let i of n){let u=i.length/r.length;t.set(u,!0),u>a&&(a=u)}for(let i=1;iMath.max(t,a.length/r.length),0)}var Ar=ll;var Rn=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;var zn={eastAsianWidth(e){var r=e.charCodeAt(0),n=e.length==2?e.charCodeAt(1):0,t=r;return 55296<=r&&r<=56319&&56320<=n&&n<=57343&&(r&=1023,n&=1023,t=r<<10|n,t+=65536),t==12288||65281<=t&&t<=65376||65504<=t&&t<=65510?"F":4352<=t&&t<=4447||4515<=t&&t<=4519||4602<=t&&t<=4607||9001<=t&&t<=9002||11904<=t&&t<=11929||11931<=t&&t<=12019||12032<=t&&t<=12245||12272<=t&&t<=12283||12289<=t&&t<=12350||12353<=t&&t<=12438||12441<=t&&t<=12543||12549<=t&&t<=12589||12593<=t&&t<=12686||12688<=t&&t<=12730||12736<=t&&t<=12771||12784<=t&&t<=12830||12832<=t&&t<=12871||12880<=t&&t<=13054||13056<=t&&t<=19903||19968<=t&&t<=42124||42128<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||55216<=t&&t<=55238||55243<=t&&t<=55291||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65106||65108<=t&&t<=65126||65128<=t&&t<=65131||110592<=t&&t<=110593||127488<=t&&t<=127490||127504<=t&&t<=127546||127552<=t&&t<=127560||127568<=t&&t<=127569||131072<=t&&t<=194367||177984<=t&&t<=196605||196608<=t&&t<=262141?"W":"N"}};var fl=/[^\x20-\x7F]/;function Dl(e){if(!e)return 0;if(!fl.test(e))return e.length;e=e.replace(Rn()," ");let r=0;for(let n of e){let t=n.codePointAt(0);if(t<=31||t>=127&&t<=159||t>=768&&t<=879)continue;let a=zn.eastAsianWidth(n);r+=a==="F"||a==="W"?2:1}return r}var Xe=Dl;var Br="'",Mn='"';function pl(e,r){let n=r===!0||r===Br?Br:Mn,t=n===Br?Mn:Br,a=0,i=0;for(let u of e)u===n?a++:u===t&&i++;return a>i?t:n}var Un=pl;var ue="string",X="array",ve="cursor",Q="indent",Z="align",ae="trim",G="group",H="fill",W="if-break",oe="indent-if-break",se="line-suffix",ce="line-suffix-boundary",$="line",le="label",ee="break-parent",qr=new Set([ve,Q,Z,ae,G,H,W,oe,se,ce,$,le,ee]);function dl(e){if(typeof e=="string")return ue;if(Array.isArray(e))return X;if(!e)return;let{type:r}=e;if(qr.has(r))return r}var fe=dl;var hl=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function ml(e){let r=e===null?"null":typeof e;if(r!=="string"&&r!=="object")return`Unexpected doc '${r}', +Expected it to be 'string' or 'object'.`;if(fe(e))throw new Error("doc is valid.");let n=Object.prototype.toString.call(e);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let t=hl([...qr].map(a=>`'${a}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${t}.`}var ft=class extends Error{name="InvalidDocError";constructor(r){super(ml(r)),this.doc=r}},Ae=ft;var Yn={};function gl(e,r,n,t){let a=[e];for(;a.length>0;){let i=a.pop();if(i===Yn){n(a.pop());continue}n&&a.push(i,Yn);let u=fe(i);if(!u)throw new Ae(i);if((r==null?void 0:r(i))!==!1)switch(u){case X:case H:{let o=u===X?i:i.parts;for(let s=o.length,l=s-1;l>=0;--l)a.push(o[l]);break}case W:a.push(i.flatContents,i.breakContents);break;case G:if(t&&i.expandedStates)for(let o=i.expandedStates.length,s=o-1;s>=0;--s)a.push(i.expandedStates[s]);else a.push(i.contents);break;case Z:case Q:case oe:case le:case se:a.push(i.contents);break;case ue:case ve:case ae:case ce:case $:case ee:break;default:throw new Ae(i)}}}var Vn=gl;var jn=()=>{},Be=jn,Tr=jn;function Qe(e){return Be(e),{type:Q,contents:e}}function Fe(e,r){return Be(r),{type:Z,contents:r,n:e}}function Ze(e,r={}){return Be(e),Tr(r.expandedStates,!0),{type:G,id:r.id,contents:e,break:!!r.shouldBreak,expandedStates:r.expandedStates}}function qe(e){return Fe({type:"root"},e)}function Sr(e){return Tr(e),{type:H,parts:e}}function $n(e,r="",n={}){return Be(e),r!==""&&Be(r),{type:W,breakContents:e,flatContents:r,groupId:n.groupId}}var er={type:ee};var Ne={type:$,hard:!0},vl={type:$,hard:!0,literal:!0},Pr={type:$},rr={type:$,soft:!0},O=[Ne,er],tr=[vl,er];function nr(e,r){Be(e),Tr(r);let n=[];for(let t=0;t{if(Array.isArray(e))return e;if(e.type!==H)throw new Error(`Expect doc to be 'array' or '${H}'.`);return e.parts};function Kn(e,r){if(typeof e=="string")return r(e);let n=new Map;return t(e);function t(i){if(n.has(i))return n.get(i);let u=a(i);return n.set(i,u),u}function a(i){switch(fe(i)){case X:return r(i.map(t));case H:return r({...i,parts:i.parts.map(t)});case W:return r({...i,breakContents:t(i.breakContents),flatContents:t(i.flatContents)});case G:{let{expandedStates:u,contents:o}=i;return u?(u=u.map(t),o=u[0]):o=t(o),r({...i,contents:o,expandedStates:u})}case Z:case Q:case oe:case le:case se:return r({...i,contents:t(i.contents)});case ue:case ve:case ae:case ce:case $:case ee:return r(i);default:throw new Ae(i)}}}function Gn(e){if(e.length>0){let r=U(!1,e,-1);!r.expandedStates&&!r.break&&(r.break="propagated")}return null}function Jn(e){let r=new Set,n=[];function t(i){if(i.type===ee&&Gn(n),i.type===G){if(n.push(i),r.has(i))return!1;r.add(i)}}function a(i){i.type===G&&n.pop().break&&Gn(n)}Vn(e,t,a,!0)}function Hn(e){let r=[],n=e.filter(Boolean);for(;n.length>0;){let t=n.shift();if(t){if(Array.isArray(t)){n.unshift(...t);continue}if(r.length>0&&typeof U(!1,r,-1)=="string"&&typeof t=="string"){r[r.length-1]+=t;continue}r.push(t)}}return r}function Xn(e){return Kn(e,r=>Array.isArray(r)?Hn(r):r.parts?{...r,parts:Hn(r.parts)}:r)}function Ee(e,r=tr){return Kn(e,n=>typeof n=="string"?nr(r,n.split(` +`)):n)}function Qn(e){switch(e){case"cr":return"\r";case"crlf":return`\r `;default:return` -`}}var V=Symbol("MODE_BREAK"),re=Symbol("MODE_FLAT"),ir=Symbol("cursor");function ei(){return{value:"",length:0,queue:[]}}function El(e,r){return dt(e,{type:"indent"},r)}function Cl(e,r,n){return r===Number.NEGATIVE_INFINITY?e.root||ei():r<0?dt(e,{type:"dedent"},n):r?r.type==="root"?{...e,root:e}:dt(e,{type:typeof r=="string"?"stringAlign":"numberAlign",n:r},n):e}function dt(e,r,n){let t=r.type==="dedent"?e.queue.slice(0,-1):[...e.queue,r],a="",i=0,u=0,o=0;for(let p of t)switch(p.type){case"indent":c(),n.useTabs?s(1):l(n.tabWidth);break;case"stringAlign":c(),a+=p.n,i+=p.n.length;break;case"numberAlign":u+=1,o+=p.n;break;default:throw new Error(`Unexpected type '${p.type}'`)}return D(),{...e,value:a,length:i,queue:t};function s(p){a+=" ".repeat(p),i+=n.tabWidth*p}function l(p){a+=" ".repeat(p),i+=p}function c(){n.useTabs?f():D()}function f(){u>0&&s(u),h()}function D(){o>0&&l(o),h()}function h(){u=0,o=0}}function ht(e){let r=0,n=0,t=e.length;e:for(;t--;){let a=e[t];if(a===ir){n++;continue}for(let i=a.length-1;i>=0;i--){let u=a[i];if(u===" "||u===" ")r++;else{e[t]=a.slice(0,i+1);break e}}}if(r>0||n>0)for(e.length=t+1;n-- >0;)e.push(ir);return r}function Pr(e,r,n,t,a,i){if(n===Number.POSITIVE_INFINITY)return!0;let u=r.length,o=[e],s=[];for(;n>=0;){if(o.length===0){if(u===0)return!0;o.push(r[--u]);continue}let{mode:l,doc:c}=o.pop();switch(fe(c)){case ue:s.push(c),n-=Xe(c);break;case X:case H:{let f=Kn(c);for(let D=f.length-1;D>=0;D--)o.push({mode:l,doc:f[D]});break}case Q:case Z:case oe:case le:o.push({mode:l,doc:c.contents});break;case ae:n+=ht(s);break;case G:{if(i&&c.break)return!1;let f=c.break?V:l,D=c.expandedStates&&f===V?U(!1,c.expandedStates,-1):c.contents;o.push({mode:f,doc:D});break}case W:{let D=(c.groupId?a[c.groupId]||re:l)===V?c.breakContents:c.flatContents;D&&o.push({mode:l,doc:D});break}case $:if(l===V||c.hard)return!0;c.soft||(s.push(" "),n--);break;case se:t=!0;break;case ce:if(t)return!1;break}}return!1}function ri(e,r){let n={},t=r.printWidth,a=Zn(r.endOfLine),i=0,u=[{ind:ei(),mode:V,doc:e}],o=[],s=!1,l=[],c=0;for(Xn(e);u.length>0;){let{ind:D,mode:h,doc:p}=u.pop();switch(fe(p)){case ue:{let d=a!==` +`}}var V=Symbol("MODE_BREAK"),re=Symbol("MODE_FLAT"),ir=Symbol("cursor");function Zn(){return{value:"",length:0,queue:[]}}function Fl(e,r){return Dt(e,{type:"indent"},r)}function El(e,r,n){return r===Number.NEGATIVE_INFINITY?e.root||Zn():r<0?Dt(e,{type:"dedent"},n):r?r.type==="root"?{...e,root:e}:Dt(e,{type:typeof r=="string"?"stringAlign":"numberAlign",n:r},n):e}function Dt(e,r,n){let t=r.type==="dedent"?e.queue.slice(0,-1):[...e.queue,r],a="",i=0,u=0,o=0;for(let p of t)switch(p.type){case"indent":c(),n.useTabs?s(1):l(n.tabWidth);break;case"stringAlign":c(),a+=p.n,i+=p.n.length;break;case"numberAlign":u+=1,o+=p.n;break;default:throw new Error(`Unexpected type '${p.type}'`)}return D(),{...e,value:a,length:i,queue:t};function s(p){a+=" ".repeat(p),i+=n.tabWidth*p}function l(p){a+=" ".repeat(p),i+=p}function c(){n.useTabs?f():D()}function f(){u>0&&s(u),h()}function D(){o>0&&l(o),h()}function h(){u=0,o=0}}function pt(e){let r=0,n=0,t=e.length;e:for(;t--;){let a=e[t];if(a===ir){n++;continue}for(let i=a.length-1;i>=0;i--){let u=a[i];if(u===" "||u===" ")r++;else{e[t]=a.slice(0,i+1);break e}}}if(r>0||n>0)for(e.length=t+1;n-- >0;)e.push(ir);return r}function _r(e,r,n,t,a,i){if(n===Number.POSITIVE_INFINITY)return!0;let u=r.length,o=[e],s=[];for(;n>=0;){if(o.length===0){if(u===0)return!0;o.push(r[--u]);continue}let{mode:l,doc:c}=o.pop();switch(fe(c)){case ue:s.push(c),n-=Xe(c);break;case X:case H:{let f=Wn(c);for(let D=f.length-1;D>=0;D--)o.push({mode:l,doc:f[D]});break}case Q:case Z:case oe:case le:o.push({mode:l,doc:c.contents});break;case ae:n+=pt(s);break;case G:{if(i&&c.break)return!1;let f=c.break?V:l,D=c.expandedStates&&f===V?U(!1,c.expandedStates,-1):c.contents;o.push({mode:f,doc:D});break}case W:{let D=(c.groupId?a[c.groupId]||re:l)===V?c.breakContents:c.flatContents;D&&o.push({mode:l,doc:D});break}case $:if(l===V||c.hard)return!0;c.soft||(s.push(" "),n--);break;case se:t=!0;break;case ce:if(t)return!1;break}}return!1}function ei(e,r){let n={},t=r.printWidth,a=Qn(r.endOfLine),i=0,u=[{ind:Zn(),mode:V,doc:e}],o=[],s=!1,l=[],c=0;for(Jn(e);u.length>0;){let{ind:D,mode:h,doc:p}=u.pop();switch(fe(p)){case ue:{let d=a!==` `?R(!1,p,` -`,a):p;o.push(d),u.length>0&&(i+=Xe(d));break}case X:for(let d=p.length-1;d>=0;d--)u.push({ind:D,mode:h,doc:p[d]});break;case ve:if(c>=2)throw new Error("There are too many 'cursor' in doc.");o.push(ir),c++;break;case Q:u.push({ind:El(D,r),mode:h,doc:p.contents});break;case Z:u.push({ind:Cl(D,p.n,r),mode:h,doc:p.contents});break;case ae:i-=ht(o);break;case G:switch(h){case re:if(!s){u.push({ind:D,mode:p.break?V:re,doc:p.contents});break}case V:{s=!1;let d={ind:D,mode:re,doc:p.contents},m=t-i,g=l.length>0;if(!p.break&&Pr(d,u,m,g,n))u.push(d);else if(p.expandedStates){let x=U(!1,p.expandedStates,-1);if(p.break){u.push({ind:D,mode:V,doc:x});break}else for(let F=1;F=p.expandedStates.length){u.push({ind:D,mode:V,doc:x});break}else{let B=p.expandedStates[F],b={ind:D,mode:re,doc:B};if(Pr(b,u,m,g,n)){u.push(b);break}}}else u.push({ind:D,mode:V,doc:p.contents});break}}p.id&&(n[p.id]=U(!1,u,-1).mode);break;case H:{let d=t-i,{parts:m}=p;if(m.length===0)break;let[g,x]=m,F={ind:D,mode:re,doc:g},B={ind:D,mode:V,doc:g},b=Pr(F,[],d,l.length>0,n,!0);if(m.length===1){b?u.push(F):u.push(B);break}let v={ind:D,mode:re,doc:x},y={ind:D,mode:V,doc:x};if(m.length===2){b?u.push(v,F):u.push(y,B);break}m.splice(0,2);let k={ind:D,mode:h,doc:Sr(m)},E=m[0];Pr({ind:D,mode:re,doc:[g,x,E]},[],d,l.length>0,n,!0)?u.push(k,v,F):b?u.push(k,y,F):u.push(k,y,B);break}case W:case oe:{let d=p.groupId?n[p.groupId]:h;if(d===V){let m=p.type===W?p.breakContents:p.negate?p.contents:Qe(p.contents);m&&u.push({ind:D,mode:h,doc:m})}if(d===re){let m=p.type===W?p.flatContents:p.negate?Qe(p.contents):p.contents;m&&u.push({ind:D,mode:h,doc:m})}break}case se:l.push({ind:D,mode:h,doc:p.contents});break;case ce:l.length>0&&u.push({ind:D,mode:h,doc:Ne});break;case $:switch(h){case re:if(p.hard)s=!0;else{p.soft||(o.push(" "),i+=1);break}case V:if(l.length>0){u.push({ind:D,mode:h,doc:p},...l.reverse()),l.length=0;break}p.literal?D.root?(o.push(a,D.root.value),i=D.root.length):(o.push(a),i=0):(i-=ht(o),o.push(a+D.value),i=D.length);break}break;case le:u.push({ind:D,mode:h,doc:p.contents});break;case ee:break;default:throw new Ae(p)}u.length===0&&l.length>0&&(u.push(...l.reverse()),l.length=0)}let f=o.indexOf(ir);if(f!==-1){let D=o.indexOf(ir,f+1),h=o.slice(0,f).join(""),p=o.slice(f+1,D).join(""),d=o.slice(D+1).join("");return{formatted:h+p+d,cursorNodeStart:h.length,cursorNodeText:p}}return{formatted:o.join("")}}var mt=class extends Error{name="UnexpectedNodeError";constructor(r,n,t="type"){super(`Unexpected ${n} node ${t}: ${JSON.stringify(r[t])}.`),this.node=r}},ti=mt;async function bl(e,r){if(e.lang==="yaml"){let n=e.value.trim(),t=n?await r(n,{parser:"yaml"}):"";return qe([e.startDelimiter,O,t,t?O:"",e.endDelimiter])}}var ni=bl;var xl=e=>e.split(/[/\\]/).pop();function ii(e,r){if(!r)return;let n=xl(r).toLowerCase();return e.find(t=>{var a,i;return((a=t.extensions)==null?void 0:a.some(u=>n.endsWith(u)))||((i=t.filenames)==null?void 0:i.some(u=>u.toLowerCase()===n))})}function yl(e,r){if(r)return e.find(({name:n})=>n.toLowerCase()===r)??e.find(({aliases:n})=>n==null?void 0:n.includes(r))??e.find(({extensions:n})=>n==null?void 0:n.includes(`.${r}`))}function kl(e,r){let n=e.plugins.flatMap(a=>a.languages??[]),t=yl(n,r.language)??ii(n,r.physicalFile)??ii(n,r.file)??(r.physicalFile,void 0);return t==null?void 0:t.parsers[0]}var ui=kl;var Lr=()=>{};Lr.ok=Lr;Lr.strictEqual=Lr;function Te(e){return e.position.start.offset}function Se(e){return e.position.end.offset}var ai="(?:[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u2ff0-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fef\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879][\\udc00-\\udfff]|\\ud82c[\\udc00-\\udd1e\\udd50-\\udd52\\udd64-\\udd67]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\uded6\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf34\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d])(?:[\\ufe00-\\ufe0f]|\\udb40[\\udd00-\\uddef])?",oi=new RegExp("[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",""),ur="[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061e-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0a76\\u0af0\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e4f\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud803[\\udf55-\\udf59]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]";var vt=new Set(["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"]),Or=new Set([...vt,"tableCell","paragraph","heading"]),gt=new RegExp(ur),_e="non-cjk",De="cj-letter",Ce="k-letter",ar="cjk-punctuation";function Ir(e){let r=[],n=e.split(/([\t\n ]+)/);for(let[a,i]of n.entries()){if(a%2===1){r.push({type:"whitespace",value:/\n/.test(i)?` -`:" "});continue}if((a===0||a===n.length-1)&&i==="")continue;let u=i.split(new RegExp(`(${ai})`));for(let[o,s]of u.entries())if(!((o===0||o===u.length-1)&&s==="")){if(o%2===0){s!==""&&t({type:"word",value:s,kind:_e,hasLeadingPunctuation:gt.test(s[0]),hasTrailingPunctuation:gt.test(U(!1,s,-1))});continue}t(gt.test(s)?{type:"word",value:s,kind:ar,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:s,kind:oi.test(s)?Ce:De,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return r;function t(a){let i=U(!1,r,-1);(i==null?void 0:i.type)==="word"&&!u(_e,ar)&&![i.value,a.value].some(o=>/\u3000/.test(o))&&r.push({type:"whitespace",value:""}),r.push(a);function u(o,s){return i.kind===o&&a.kind===s||i.kind===s&&a.kind===o}}}function Re(e,r){let[,n,t,a]=r.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:n,marker:t,leadingSpaces:a}}function si(e,r){if(!e.ordered||e.children.length<2)return!1;let n=Number(Re(e.children[0],r.originalText).numberText),t=Number(Re(e.children[1],r.originalText).numberText);if(n===0&&e.children.length>2){let a=Number(Re(e.children[2],r.originalText).numberText);return t===1&&a===1}return t===1}function Nr(e,r){let{value:n}=e;return e.position.end.offset===r.length&&n.endsWith(` +`,a):p;o.push(d),u.length>0&&(i+=Xe(d));break}case X:for(let d=p.length-1;d>=0;d--)u.push({ind:D,mode:h,doc:p[d]});break;case ve:if(c>=2)throw new Error("There are too many 'cursor' in doc.");o.push(ir),c++;break;case Q:u.push({ind:Fl(D,r),mode:h,doc:p.contents});break;case Z:u.push({ind:El(D,p.n,r),mode:h,doc:p.contents});break;case ae:i-=pt(o);break;case G:switch(h){case re:if(!s){u.push({ind:D,mode:p.break?V:re,doc:p.contents});break}case V:{s=!1;let d={ind:D,mode:re,doc:p.contents},m=t-i,g=l.length>0;if(!p.break&&_r(d,u,m,g,n))u.push(d);else if(p.expandedStates){let x=U(!1,p.expandedStates,-1);if(p.break){u.push({ind:D,mode:V,doc:x});break}else for(let F=1;F=p.expandedStates.length){u.push({ind:D,mode:V,doc:x});break}else{let B=p.expandedStates[F],b={ind:D,mode:re,doc:B};if(_r(b,u,m,g,n)){u.push(b);break}}}else u.push({ind:D,mode:V,doc:p.contents});break}}p.id&&(n[p.id]=U(!1,u,-1).mode);break;case H:{let d=t-i,{parts:m}=p;if(m.length===0)break;let[g,x]=m,F={ind:D,mode:re,doc:g},B={ind:D,mode:V,doc:g},b=_r(F,[],d,l.length>0,n,!0);if(m.length===1){b?u.push(F):u.push(B);break}let v={ind:D,mode:re,doc:x},y={ind:D,mode:V,doc:x};if(m.length===2){b?u.push(v,F):u.push(y,B);break}m.splice(0,2);let k={ind:D,mode:h,doc:Sr(m)},E=m[0];_r({ind:D,mode:re,doc:[g,x,E]},[],d,l.length>0,n,!0)?u.push(k,v,F):b?u.push(k,y,F):u.push(k,y,B);break}case W:case oe:{let d=p.groupId?n[p.groupId]:h;if(d===V){let m=p.type===W?p.breakContents:p.negate?p.contents:Qe(p.contents);m&&u.push({ind:D,mode:h,doc:m})}if(d===re){let m=p.type===W?p.flatContents:p.negate?Qe(p.contents):p.contents;m&&u.push({ind:D,mode:h,doc:m})}break}case se:l.push({ind:D,mode:h,doc:p.contents});break;case ce:l.length>0&&u.push({ind:D,mode:h,doc:Ne});break;case $:switch(h){case re:if(p.hard)s=!0;else{p.soft||(o.push(" "),i+=1);break}case V:if(l.length>0){u.push({ind:D,mode:h,doc:p},...l.reverse()),l.length=0;break}p.literal?D.root?(o.push(a,D.root.value),i=D.root.length):(o.push(a),i=0):(i-=pt(o),o.push(a+D.value),i=D.length);break}break;case le:u.push({ind:D,mode:h,doc:p.contents});break;case ee:break;default:throw new Ae(p)}u.length===0&&l.length>0&&(u.push(...l.reverse()),l.length=0)}let f=o.indexOf(ir);if(f!==-1){let D=o.indexOf(ir,f+1),h=o.slice(0,f).join(""),p=o.slice(f+1,D).join(""),d=o.slice(D+1).join("");return{formatted:h+p+d,cursorNodeStart:h.length,cursorNodeText:p}}return{formatted:o.join("")}}var dt=class extends Error{name="UnexpectedNodeError";constructor(r,n,t="type"){super(`Unexpected ${n} node ${t}: ${JSON.stringify(r[t])}.`),this.node=r}},ri=dt;async function Cl(e,r){if(e.lang==="yaml"){let n=e.value.trim(),t=n?await r(n,{parser:"yaml"}):"";return qe([e.startDelimiter,O,t,t?O:"",e.endDelimiter])}}var ti=Cl;var bl=e=>e.split(/[/\\]/).pop();function ni(e,r){if(!r)return;let n=bl(r).toLowerCase();return e.find(t=>{var a,i;return((a=t.extensions)==null?void 0:a.some(u=>n.endsWith(u)))||((i=t.filenames)==null?void 0:i.some(u=>u.toLowerCase()===n))})}function xl(e,r){if(r)return e.find(({name:n})=>n.toLowerCase()===r)??e.find(({aliases:n})=>n==null?void 0:n.includes(r))??e.find(({extensions:n})=>n==null?void 0:n.includes(`.${r}`))}function yl(e,r){let n=e.plugins.flatMap(a=>a.languages??[]),t=xl(n,r.language)??ni(n,r.physicalFile)??ni(n,r.file)??(r.physicalFile,void 0);return t==null?void 0:t.parsers[0]}var ii=yl;var kl=new Proxy(()=>{},{get:()=>kl});function Te(e){return e.position.start.offset}function Se(e){return e.position.end.offset}var ui="(?:[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u2ff0-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4dbf\\u4e00-\\u9fff\\ua700-\\ua707\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879\\ud880-\\ud883\\ud885-\\ud887][\\udc00-\\udfff]|\\ud81b[\\udfe3]|\\ud82b[\\udff0-\\udff3\\udff5-\\udffb\\udffd-\\udffe]|\\ud82c[\\udc00-\\udd22\\udd32\\udd50-\\udd52\\udd55\\udd64-\\udd67]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\udedf\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf39\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d]|\\ud884[\\udc00-\\udf4a\\udf50-\\udfff]|\\ud888[\\udc00-\\udfaf])(?:[\\ufe00-\\ufe0f]|\\udb40[\\udd00-\\uddef])?",ai=new RegExp("[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",""),ur="[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061d-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0a76\\u0af0\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1b7d-\\u1b7e\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e4f\\u2e52-\\u2e5d\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud803[\\udead\\udf55-\\udf59\\udf86-\\udf89]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5a-\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udeb9\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udd44-\\udd46\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2\\udf00-\\udf09]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udf43-\\udf4f\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud80b[\\udff1-\\udff2]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]";var mt=new Set(["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"]),Lr=new Set([...mt,"tableCell","paragraph","heading"]),ht=new RegExp(ur),Pe="non-cjk",De="cj-letter",Ce="k-letter",ar="cjk-punctuation";function Or(e){let r=[],n=e.split(/([\t\n ]+)/);for(let[a,i]of n.entries()){if(a%2===1){r.push({type:"whitespace",value:/\n/.test(i)?` +`:" "});continue}if((a===0||a===n.length-1)&&i==="")continue;let u=i.split(new RegExp(`(${ui})`));for(let[o,s]of u.entries())if(!((o===0||o===u.length-1)&&s==="")){if(o%2===0){s!==""&&t({type:"word",value:s,kind:Pe,hasLeadingPunctuation:ht.test(s[0]),hasTrailingPunctuation:ht.test(U(!1,s,-1))});continue}t(ht.test(s)?{type:"word",value:s,kind:ar,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:s,kind:ai.test(s)?Ce:De,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return r;function t(a){let i=U(!1,r,-1);(i==null?void 0:i.type)==="word"&&!u(Pe,ar)&&![i.value,a.value].some(o=>/\u3000/.test(o))&&r.push({type:"whitespace",value:""}),r.push(a);function u(o,s){return i.kind===o&&a.kind===s||i.kind===s&&a.kind===o}}}function Re(e,r){let[,n,t,a]=r.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:n,marker:t,leadingSpaces:a}}function oi(e,r){if(!e.ordered||e.children.length<2)return!1;let n=Number(Re(e.children[0],r.originalText).numberText),t=Number(Re(e.children[1],r.originalText).numberText);if(n===0&&e.children.length>2){let a=Number(Re(e.children[2],r.originalText).numberText);return t===1&&a===1}return t===1}function Ir(e,r){let{value:n}=e;return e.position.end.offset===r.length&&n.endsWith(` `)&&r.endsWith(` -`)?n.slice(0,-1):n}function be(e,r){return function n(t,a,i){let u={...r(t,a,i)};return u.children&&(u.children=u.children.map((o,s)=>n(o,s,[u,...i]))),u}(e,null,[])}function Ft(e){if((e==null?void 0:e.type)!=="link"||e.children.length!==1)return!1;let[r]=e.children;return Te(e)===Te(r)&&Se(e)===Se(r)}function wl(e,r){let{node:n}=e;if(n.type==="code"&&n.lang!==null){let t=ui(r,{language:n.lang});if(t)return async a=>{let i=r.__inJsTemplate?"~":"`",u=i.repeat(Math.max(3,Ar(n.value,i)+1)),o={parser:t};n.lang==="tsx"&&(o.filepath="dummy.tsx");let s=await a(Nr(n,r.originalText),o);return qe([u,n.lang,n.meta?" "+n.meta:"",O,Ee(s),O,u])}}switch(n.type){case"front-matter":return t=>ni(n,t);case"import":case"export":return t=>t(n.value,{parser:"babel"});case"jsx":return t=>t(`<$>${n.value}`,{parser:"__js_expression",rootMarker:"mdx"})}return null}var ci=wl;var Al=new RegExp("^(?-{3}|\\+{3})(?[^\\n]*)\\n(?:|(?.*?)\\n)(?\\k|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function Bl(e){let r=e.match(Al);if(!r)return{content:e};let{startDelimiter:n,language:t,value:a="",endDelimiter:i}=r.groups,u=t.trim()||"yaml";if(n==="+++"&&(u="toml"),u!=="yaml"&&n!==i)return{content:e};let[o]=r;return{frontMatter:{type:"front-matter",lang:u,value:a,startDelimiter:n,endDelimiter:i,raw:o.replace(/\n$/,"")},content:R(!1,o,/[^\n]/g," ")+e.slice(o.length)}}var or=Bl;var li=["format","prettier"];function Et(e){let r=`@(${li.join("|")})`,n=new RegExp([``,`{\\s*\\/\\*\\s*${r}\\s*\\*\\/\\s*}`,``,`{\\s*\\/\\*\\s*${r}\\s*\\*\\/\\s*}`,``].join("|"),"m"),t=e.match(n);return(t==null?void 0:t.index)===0}var fi=e=>Et(or(e).content.trimStart()),Di=e=>{let r=or(e),n=``;return r.frontMatter?`${r.frontMatter.raw} +.*-->`].join("|"),"m"),t=e.match(n);return(t==null?void 0:t.index)===0}var li=e=>vt(or(e).content.trimStart()),fi=e=>{let r=or(e),n=``;return r.frontMatter?`${r.frontMatter.raw} ${n} ${r.content}`:`${n} -${r.content}`};var ql=/^.$/su;function Tl(e,r){return e=Sl(e,r),e=Pl(e),e=Ol(e,r),e=Il(e,r),e=Ll(e),e}function Sl(e,r){return be(e,n=>n.type!=="text"||n.value==="*"||n.value==="_"||!ql.test(n.value)||n.position.end.offset-n.position.start.offset===n.value.length?n:{...n,value:r.originalText.slice(n.position.start.offset,n.position.end.offset)})}function _l(e,r,n){return be(e,t=>{if(!t.children)return t;let a=t.children.reduce((i,u)=>{let o=U(!1,i,-1);return o&&r(o,u)?i.splice(-1,1,n(o,u)):i.push(u),i},[]);return{...t,children:a}})}function Pl(e){return _l(e,(r,n)=>r.type==="text"&&n.type==="text",(r,n)=>({type:"text",value:r.value+n.value,position:{start:r.position.start,end:n.position.end}}))}function Ll(e){return be(e,(r,n,[t])=>{if(r.type!=="text")return r;let{value:a}=r;return t.type==="paragraph"&&(n===0&&(a=a.trimStart()),n===t.children.length-1&&(a=a.trimEnd())),{type:"sentence",position:r.position,children:Ir(a)}})}function Ol(e,r){return be(e,(n,t,a)=>{if(n.type==="code"){let i=/^\n?(?: {4,}|\t)/.test(r.originalText.slice(n.position.start.offset,n.position.end.offset));if(n.isIndented=i,i)for(let u=0;u{if(a.type==="list"&&a.children.length>0){for(let o=0;o1)return!0;let s=n(i);if(s===-1)return!1;if(a.children.length===1)return s%r.tabWidth===0;let l=n(u);return s!==l?!1:s%r.tabWidth===0?!0:Re(u,r.originalText).leadingSpaces.length>1}}var pi=Tl;var hi=Ie(wr(),1);function Nl(e){return(e==null?void 0:e.type)==="front-matter"}var di=Nl;var Rl=new Set(["position","raw"]);function mi(e,r,n){if((e.type==="front-matter"||e.type==="code"||e.type==="yaml"||e.type==="import"||e.type==="export"||e.type==="jsx")&&delete r.value,e.type==="list"&&delete r.isAligned,(e.type==="list"||e.type==="listItem")&&delete r.spread,e.type==="text"||(e.type==="inlineCode"&&(r.value=R(!1,e.value,` -`," ")),e.type==="wikiLink"&&(r.value=R(!1,e.value.trim(),/[\t\n]+/g," ")),(e.type==="definition"||e.type==="linkReference"||e.type==="imageReference")&&(r.label=(0,hi.default)(e.label)),(e.type==="definition"||e.type==="link"||e.type==="image")&&e.title&&(r.title=R(!1,e.title,/\\(?=["')])/g,"")),(n==null?void 0:n.type)==="root"&&n.children.length>0&&(n.children[0]===e||di(n.children[0])&&n.children[1]===e)&&e.type==="html"&&Et(e.value)))return null}mi.ignoredProperties=Rl;var gi=mi;var sr=null;function cr(e){if(sr!==null&&typeof sr.property){let r=sr;return sr=cr.prototype=null,r}return sr=cr.prototype=e??Object.create(null),new cr}var zl=10;for(let e=0;e<=zl;e++)cr();function Ct(e){return cr(e)}function Ml(e,r="type"){Ct(e);function n(t){let a=t[r],i=e[a];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${a}'.`),{node:t});return i}return n}var vi=Ml;var Ul={"front-matter":[],root:["children"],paragraph:["children"],sentence:["children"],word:[],whitespace:[],emphasis:["children"],strong:["children"],delete:["children"],inlineCode:[],wikiLink:[],link:["children"],image:[],blockquote:["children"],heading:["children"],code:[],html:[],list:["children"],thematicBreak:[],linkReference:["children"],imageReference:[],definition:[],footnote:["children"],footnoteReference:[],footnoteDefinition:["children"],table:["children"],tableCell:["children"],break:[],liquidNode:[],import:[],export:[],esComment:[],jsx:[],math:[],inlineMath:[],tableRow:["children"],listItem:["children"],text:[]},Fi=Ul;var Yl=vi(Fi),Ei=Yl;var Vl=new Set(["heading","tableCell","link","wikiLink"]),jl=new Set(`$(\xA3\xA5\xB7'"\u3008\u300A\u300C\u300E\u3010\u3014\u3016\u301D\uFE59\uFE5B\uFF04\uFF08\uFF3B\uFF5B\uFFE1\uFFE5[{\u2035\uFE34\uFE35\uFE37\uFE39\uFE3B\uFE3D\uFE3F\uFE41\uFE43\uFE4F\u3018\uFF5F\xAB`),$l=new Set(`!%),.:;?]}\xA2\xB0\xB7'"\u2020\u2021\u203A\u2103\u2236\u3001\u3002\u3003\u3006\u3015\u3017\u301E\uFE5A\uFE5C\uFF01\uFF02\uFF05\uFF07\uFF09\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF3D\uFF5D\uFF5E\u2013\u2014\u2022\u3009\u300B\u300D\uFE30\uFE31\uFE32\uFE33\uFE50\uFE51\uFE52\uFE53\uFE54\uFE55\uFE56\uFE58\uFE36\uFE38\uFE3A\uFE3C\uFE3E\uFE40\uFE42\uFE57\uFF5C\uFF64\u300F\u3011\u3019\u301F\uFF60\xBB\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\u2010\u30A0\u301C\uFF5E\u203C\u2047\u2048\u2049\u30FB`),Ci=new Set("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");function Gl({parent:e}){if(e.usesCJSpaces===void 0){let r={" ":0,"":0},{children:n}=e;for(let t=1;tr[""]}return e.usesCJSpaces}function Hl(e,r){if(r)return!0;let{previous:n,next:t}=e;if(!n||!t)return!0;let a=n.kind,i=t.kind;return xi(a)&&xi(i)||a===Ce&&i===De||i===Ce&&a===De?!0:a===ar||i===ar||a===De&&i===De?!1:Ci.has(t.value[0])||Ci.has(U(!1,n.value,-1))?!0:n.hasTrailingPunctuation||t.hasLeadingPunctuation?!1:Gl(e)}function bi(e){return e===_e||e===De||e===Ce}function xi(e){return e===_e||e===Ce}function Wl(e,r,n,t,a){if(n!=="always"||e.hasAncestor(s=>Vl.has(s.type)))return!1;if(t)return r!=="";if(r===" ")return!0;let{previous:i,next:u}=e;return!(r===""&&((i==null?void 0:i.kind)===Ce&&bi(u==null?void 0:u.kind)||(u==null?void 0:u.kind)===Ce&&bi(i==null?void 0:i.kind))||!a&&(u&&$l.has(u.value[0])||i&&jl.has(U(!1,i.value,-1))))}function bt(e,r,n,t){if(n==="preserve"&&r===` +${r.content}`};var ql=/^.$/su;function Tl(e,r){return e=Sl(e,r),e=_l(e),e=Ol(e,r),e=Il(e,r),e=Ll(e),e}function Sl(e,r){return be(e,n=>n.type!=="text"||n.value==="*"||n.value==="_"||!ql.test(n.value)||n.position.end.offset-n.position.start.offset===n.value.length?n:{...n,value:r.originalText.slice(n.position.start.offset,n.position.end.offset)})}function Pl(e,r,n){return be(e,t=>{if(!t.children)return t;let a=t.children.reduce((i,u)=>{let o=U(!1,i,-1);return o&&r(o,u)?i.splice(-1,1,n(o,u)):i.push(u),i},[]);return{...t,children:a}})}function _l(e){return Pl(e,(r,n)=>r.type==="text"&&n.type==="text",(r,n)=>({type:"text",value:r.value+n.value,position:{start:r.position.start,end:n.position.end}}))}function Ll(e){return be(e,(r,n,[t])=>{if(r.type!=="text")return r;let{value:a}=r;return t.type==="paragraph"&&(n===0&&(a=a.trimStart()),n===t.children.length-1&&(a=a.trimEnd())),{type:"sentence",position:r.position,children:Or(a)}})}function Ol(e,r){return be(e,(n,t,a)=>{if(n.type==="code"){let i=/^\n?(?: {4,}|\t)/.test(r.originalText.slice(n.position.start.offset,n.position.end.offset));if(n.isIndented=i,i)for(let u=0;u{if(a.type==="list"&&a.children.length>0){for(let o=0;o1)return!0;let s=n(i);if(s===-1)return!1;if(a.children.length===1)return s%r.tabWidth===0;let l=n(u);return s!==l?!1:s%r.tabWidth===0?!0:Re(u,r.originalText).leadingSpaces.length>1}}var Di=Tl;var di=Ie(wr(),1);function Nl(e){return(e==null?void 0:e.type)==="front-matter"}var pi=Nl;var Rl=new Set(["position","raw"]);function hi(e,r,n){if((e.type==="front-matter"||e.type==="code"||e.type==="yaml"||e.type==="import"||e.type==="export"||e.type==="jsx")&&delete r.value,e.type==="list"&&delete r.isAligned,(e.type==="list"||e.type==="listItem")&&delete r.spread,e.type==="text"||(e.type==="inlineCode"&&(r.value=R(!1,e.value,` +`," ")),e.type==="wikiLink"&&(r.value=R(!1,e.value.trim(),/[\t\n]+/g," ")),(e.type==="definition"||e.type==="linkReference"||e.type==="imageReference")&&(r.label=(0,di.default)(e.label)),(e.type==="definition"||e.type==="link"||e.type==="image")&&e.title&&(r.title=R(!1,e.title,/\\(?=["')])/g,"")),(n==null?void 0:n.type)==="root"&&n.children.length>0&&(n.children[0]===e||pi(n.children[0])&&n.children[1]===e)&&e.type==="html"&&vt(e.value)))return null}hi.ignoredProperties=Rl;var mi=hi;var sr=null;function cr(e){if(sr!==null&&typeof sr.property){let r=sr;return sr=cr.prototype=null,r}return sr=cr.prototype=e??Object.create(null),new cr}var zl=10;for(let e=0;e<=zl;e++)cr();function Ft(e){return cr(e)}function Ml(e,r="type"){Ft(e);function n(t){let a=t[r],i=e[a];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${a}'.`),{node:t});return i}return n}var gi=Ml;var Ul={"front-matter":[],root:["children"],paragraph:["children"],sentence:["children"],word:[],whitespace:[],emphasis:["children"],strong:["children"],delete:["children"],inlineCode:[],wikiLink:[],link:["children"],image:[],blockquote:["children"],heading:["children"],code:[],html:[],list:["children"],thematicBreak:[],linkReference:["children"],imageReference:[],definition:[],footnote:["children"],footnoteReference:[],footnoteDefinition:["children"],table:["children"],tableCell:["children"],break:[],liquidNode:[],import:[],export:[],esComment:[],jsx:[],math:[],inlineMath:[],tableRow:["children"],listItem:["children"],text:[]},vi=Ul;var Yl=gi(vi),Fi=Yl;var Vl=new Set(["heading","tableCell","link","wikiLink"]),jl=new Set(`$(\xA3\xA5\xB7'"\u3008\u300A\u300C\u300E\u3010\u3014\u3016\u301D\uFE59\uFE5B\uFF04\uFF08\uFF3B\uFF5B\uFFE1\uFFE5[{\u2035\uFE34\uFE35\uFE37\uFE39\uFE3B\uFE3D\uFE3F\uFE41\uFE43\uFE4F\u3018\uFF5F\xAB`),$l=new Set(`!%),.:;?]}\xA2\xB0\xB7'"\u2020\u2021\u203A\u2103\u2236\u3001\u3002\u3003\u3006\u3015\u3017\u301E\uFE5A\uFE5C\uFF01\uFF02\uFF05\uFF07\uFF09\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF3D\uFF5D\uFF5E\u2013\u2014\u2022\u3009\u300B\u300D\uFE30\uFE31\uFE32\uFE33\uFE50\uFE51\uFE52\uFE53\uFE54\uFE55\uFE56\uFE58\uFE36\uFE38\uFE3A\uFE3C\uFE3E\uFE40\uFE42\uFE57\uFF5C\uFF64\u300F\u3011\u3019\u301F\uFF60\xBB\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\u2010\u30A0\u301C\uFF5E\u203C\u2047\u2048\u2049\u30FB`),Ei=new Set("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");function Gl({parent:e}){if(e.usesCJSpaces===void 0){let r={" ":0,"":0},{children:n}=e;for(let t=1;tr[""]}return e.usesCJSpaces}function Hl(e,r){if(r)return!0;let{previous:n,next:t}=e;if(!n||!t)return!0;let a=n.kind,i=t.kind;return bi(a)&&bi(i)||a===Ce&&i===De||i===Ce&&a===De?!0:a===ar||i===ar||a===De&&i===De?!1:Ei.has(t.value[0])||Ei.has(U(!1,n.value,-1))?!0:n.hasTrailingPunctuation||t.hasLeadingPunctuation?!1:Gl(e)}function Ci(e){return e===Pe||e===De||e===Ce}function bi(e){return e===Pe||e===Ce}function Wl(e,r,n,t,a){if(n!=="always"||e.hasAncestor(s=>Vl.has(s.type)))return!1;if(t)return r!=="";if(r===" ")return!0;let{previous:i,next:u}=e;return!(r===""&&((i==null?void 0:i.kind)===Ce&&Ci(u==null?void 0:u.kind)||(u==null?void 0:u.kind)===Ce&&Ci(i==null?void 0:i.kind))||!a&&(u&&$l.has(u.value[0])||i&&jl.has(U(!1,i.value,-1))))}function Et(e,r,n,t){if(n==="preserve"&&r===` `)return O;let a=r===" "||r===` -`&&Hl(e,t);return Wl(e,r,n,t,a)?a?_r:rr:a?" ":""}var Kl=new Set(["listItem","definition","footnoteDefinition"]);function Jl(e,r,n){var a,i,u;let{node:t}=e;if(nf(e))return Ir(r.originalText.slice(t.position.start.offset,t.position.end.offset)).map(o=>o.type==="word"?o.value:bt(e,o.value,r.proseWrap,!0));switch(t.type){case"front-matter":return r.originalText.slice(t.position.start.offset,t.position.end.offset);case"root":return t.children.length===0?"":[Qn(ef(e,r,n)),O];case"paragraph":return Y(e,r,n,{postprocessor:Sr});case"sentence":return Y(e,r,n);case"word":{let o=R(!1,R(!1,t.value,"*","\\*"),new RegExp([`(^|${ur})(_+)`,`(_+)(${ur}|$)`].join("|"),"g"),(c,f,D,h,p)=>R(!1,D?`${f}${D}`:`${h}${p}`,"_","\\_")),s=(c,f,D)=>c.type==="sentence"&&D===0,l=(c,f,D)=>Ft(c.children[D-1]);return o!==t.value&&(e.match(void 0,s,l)||e.match(void 0,s,(c,f,D)=>c.type==="emphasis"&&D===0,l))&&(o=o.replace(/^(\\?[*_])+/,c=>R(!1,c,"\\",""))),o}case"whitespace":{let{next:o}=e,s=o&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/.test(o.value)?"never":r.proseWrap;return bt(e,t.value,s)}case"emphasis":{let o;if(Ft(t.children[0]))o=r.originalText[t.position.start.offset];else{let{previous:s,next:l}=e;o=(s==null?void 0:s.type)==="sentence"&&((a=U(!1,s.children,-1))==null?void 0:a.type)==="word"&&!U(!1,s.children,-1).hasTrailingPunctuation||(l==null?void 0:l.type)==="sentence"&&((i=l.children[0])==null?void 0:i.type)==="word"&&!l.children[0].hasLeadingPunctuation||e.hasAncestor(f=>f.type==="emphasis")?"*":"_"}return[o,Y(e,r,n),o]}case"strong":return["**",Y(e,r,n),"**"];case"delete":return["~~",Y(e,r,n),"~~"];case"inlineCode":{let o=r.proseWrap==="preserve"?t.value:R(!1,t.value,` -`," "),s=Rn(o,"`"),l="`".repeat(s||1),c=o.startsWith("`")||o.endsWith("`")||/^[\n ]/.test(o)&&/[\n ]$/.test(o)&&/[^\n ]/.test(o)?" ":"";return[l,c,o,c,l]}case"wikiLink":{let o="";return r.proseWrap==="preserve"?o=t.value:o=R(!1,t.value,/[\t\n]+/g," "),["[[",o,"]]"]}case"link":switch(r.originalText[t.position.start.offset]){case"<":{let o="mailto:";return["<",t.url.startsWith(o)&&r.originalText.slice(t.position.start.offset+1,t.position.start.offset+1+o.length)!==o?t.url.slice(o.length):t.url,">"]}case"[":return["[",Y(e,r,n),"](",xt(t.url,")"),Rr(t.title,r),")"];default:return r.originalText.slice(t.position.start.offset,t.position.end.offset)}case"image":return["![",t.alt||"","](",xt(t.url,")"),Rr(t.title,r),")"];case"blockquote":return["> ",Fe("> ",Y(e,r,n))];case"heading":return["#".repeat(t.depth)+" ",Y(e,r,n)];case"code":{if(t.isIndented){let l=" ".repeat(4);return Fe(l,[l,Ee(t.value,O)])}let o=r.__inJsTemplate?"~":"`",s=o.repeat(Math.max(3,Ar(t.value,o)+1));return[s,t.lang||"",t.meta?" "+t.meta:"",O,Ee(Nr(t,r.originalText),O),O,s]}case"html":{let{parent:o,isLast:s}=e,l=o.type==="root"&&s?t.value.trimEnd():t.value,c=/^$/s.test(l);return Ee(l,c?O:qe(tr))}case"list":{let o=ki(t,e.parent),s=si(t,r);return Y(e,r,n,{processor(l){let c=D(),f=l.node;if(f.children.length===2&&f.children[1].type==="html"&&f.children[0].position.start.column!==f.children[1].position.start.column)return[c,yi(l,r,n,c)];return[c,Fe(" ".repeat(c.length),yi(l,r,n,c))];function D(){let h=t.ordered?(l.isFirst?t.start:s?1:t.start+l.index)+(o%2===0?". ":") "):o%2===0?"- ":"* ";return t.isAligned||t.hasIndentedCodeblock?Xl(h,r):h}}})}case"thematicBreak":{let{ancestors:o}=e,s=o.findIndex(c=>c.type==="list");return s===-1?"---":ki(o[s],o[s+1])%2===0?"***":"---"}case"linkReference":return["[",Y(e,r,n),"]",t.referenceType==="full"?yt(t):t.referenceType==="collapsed"?"[]":""];case"imageReference":switch(t.referenceType){case"full":return["![",t.alt||"","]",yt(t)];default:return["![",t.alt,"]",t.referenceType==="collapsed"?"[]":""]}case"definition":{let o=r.proseWrap==="always"?_r:" ";return Ze([yt(t),":",Qe([o,xt(t.url),t.title===null?"":[o,Rr(t.title,r,!1)]])])}case"footnote":return["[^",Y(e,r,n),"]"];case"footnoteReference":return qi(t);case"footnoteDefinition":{let o=t.children.length===1&&t.children[0].type==="paragraph"&&(r.proseWrap==="never"||r.proseWrap==="preserve"&&t.children[0].position.start.line===t.children[0].position.end.line);return[qi(t),": ",o?Y(e,r,n):Ze([Fe(" ".repeat(4),Y(e,r,n,{processor:({isFirst:s})=>s?Ze([rr,n()]):n()})),((u=e.next)==null?void 0:u.type)==="footnoteDefinition"?rr:""])]}case"table":return Zl(e,r,n);case"tableCell":return Y(e,r,n);case"break":return/\s/.test(r.originalText[t.position.start.offset])?[" ",qe(tr)]:["\\",O];case"liquidNode":return Ee(t.value,O);case"import":case"export":case"jsx":return t.value;case"esComment":return["{/* ",t.value," */}"];case"math":return["$$",O,t.value?[Ee(t.value,O),O]:"","$$"];case"inlineMath":return r.originalText.slice(Te(t),Se(t));case"tableRow":case"listItem":case"text":default:throw new ti(t,"Markdown")}}function yi(e,r,n,t){let{node:a}=e,i=a.checked===null?"":a.checked?"[x] ":"[ ] ";return[i,Y(e,r,n,{processor({node:u,isFirst:o}){if(o&&u.type!=="list")return Fe(" ".repeat(i.length),n());let s=" ".repeat(uf(r.tabWidth-t.length,0,3));return[s,Fe(s,n())]}})]}function Xl(e,r){let n=t();return e+" ".repeat(n>=4?0:n);function t(){let a=e.length%r.tabWidth;return a===0?0:r.tabWidth-a}}function ki(e,r){return Ql(e,r,n=>n.ordered===e.ordered)}function Ql(e,r,n){let t=-1;for(let a of r.children)if(a.type===e.type&&n(a)?t++:t=-1,a===e)return t}function Zl(e,r,n){let{node:t}=e,a=[],i=e.map(()=>e.map(({index:f})=>{let D=ri(n(),r).formatted,h=Xe(D);return a[f]=Math.max(a[f]||3,h),{text:D,width:h}},"children"),"children"),u=s(!1);if(r.proseWrap!=="never")return[er,u];let o=s(!0);return[er,Ze(Gn(o,u))];function s(f){let D=[c(i[0],f),l(f)];return i.length>1&&D.push(nr(Ne,i.slice(1).map(h=>c(h,f)))),nr(Ne,D)}function l(f){return`| ${a.map((h,p)=>{let d=t.align[p],m=d==="center"||d==="left"?":":"-",g=d==="center"||d==="right"?":":"-",x=f?"-":"-".repeat(h-2);return`${m}${x}${g}`}).join(" | ")} |`}function c(f,D){return`| ${f.map(({text:p,width:d},m)=>{if(D)return p;let g=a[m]-d,x=t.align[m],F=0;x==="right"?F=g:x==="center"&&(F=Math.floor(g/2));let B=g-F;return`${" ".repeat(F)}${p}${" ".repeat(B)}`}).join(" | ")} |`}}function ef(e,r,n){let t=[],a=null,{children:i}=e.node;for(let[u,o]of i.entries())switch(kt(o)){case"start":a===null&&(a={index:u,offset:o.position.end.offset});break;case"end":a!==null&&(t.push({start:a,end:{index:u,offset:o.position.start.offset}}),a=null);break;default:break}return Y(e,r,n,{processor({index:u}){if(t.length>0){let o=t[0];if(u===o.start.index)return[wi(i[o.start.index]),r.originalText.slice(o.start.offset,o.end.offset),wi(i[o.end.index])];if(o.start.indexo,processor:i=()=>n()}=t,u=[];return e.each(()=>{let o=i(e);o!==!1&&(u.length>0&&rf(e)&&(u.push(O),(tf(e,r)||Bi(e))&&u.push(O),Bi(e)&&u.push(O)),u.push(o))},"children"),a(u)}function wi(e){if(e.type==="html")return e.value;if(e.type==="paragraph"&&Array.isArray(e.children)&&e.children.length===1&&e.children[0].type==="esComment")return["{/* ",e.children[0].value," */}"]}function kt(e){let r;if(e.type==="html")r=e.value.match(/^$/);else{let n;e.type==="esComment"?n=e:e.type==="paragraph"&&e.children.length===1&&e.children[0].type==="esComment"&&(n=e.children[0]),n&&(r=n.value.match(/^prettier-ignore(?:-(start|end))?$/))}return r?r[1]||"next":!1}function rf({node:e,parent:r}){let n=vt.has(e.type),t=e.type==="html"&&Or.has(r.type);return!n&&!t}function Ai(e,r){return e.type==="listItem"&&(e.spread||r.originalText.charAt(e.position.end.offset-1)===` -`)}function tf({node:e,previous:r,parent:n},t){if(Ai(r,t))return!0;let u=r.type===e.type&&Kl.has(e.type),o=n.type==="listItem"&&!Ai(n,t),s=kt(r)==="next",l=e.type==="html"&&r.type==="html"&&r.position.end.line+1===e.position.start.line,c=e.type==="html"&&n.type==="listItem"&&r.type==="paragraph"&&r.position.end.line+1===e.position.start.line;return!(u||o||s||l||c)}function Bi({node:e,previous:r}){let n=r.type==="list",t=e.type==="code"&&e.isIndented;return n&&t}function nf(e){let r=e.findAncestor(n=>n.type==="linkReference"||n.type==="imageReference");return r&&(r.type!=="linkReference"||r.referenceType!=="full")}function xt(e,r=[]){let n=[" ",...Array.isArray(r)?r:[r]];return new RegExp(n.map(t=>`\\${t}`).join("|")).test(e)?`<${e}>`:e}function Rr(e,r,n=!0){if(!e)return"";if(n)return" "+Rr(e,r,!1);if(e=R(!1,e,/\\(?=["')])/g,""),e.includes('"')&&e.includes("'")&&!e.includes(")"))return`(${e})`;let t=Yn(e,r.singleQuote);return e=R(!1,e,"\\","\\\\"),e=R(!1,e,t,`\\${t}`),`${t}${e}${t}`}function uf(e,r,n){return en?n:e}function af(e){return e.index>0&&kt(e.previous)==="next"}function yt(e){return`[${(0,Ti.default)(e.label)}]`}function qi(e){return`[^${e.label}]`}var of={preprocess:pi,print:Jl,embed:ci,massageAstNode:gi,hasPrettierIgnore:af,insertPragma:Di,getVisitorKeys:Ei},Si=of;var ft={};On(ft,{markdown:()=>xg,mdx:()=>yg,remark:()=>xg});var Hc=Ie(ws(),1),Wc=Ie(Fc(),1),Kc=Ie(Pc(),1),Jc=Ie(Oc(),1);var hg=/^import\s/,mg=/^export\s/,Ic="[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)*|",Nc=/|/,gg=/^{\s*\/\*(.*)\*\/\s*}/,vg=` +`&&Hl(e,t);return Wl(e,r,n,t,a)?a?Pr:rr:a?" ":""}var Kl=new Set(["listItem","definition","footnoteDefinition"]);function Jl(e,r,n){var a,i,u;let{node:t}=e;if(nf(e))return Or(r.originalText.slice(t.position.start.offset,t.position.end.offset)).map(o=>o.type==="word"?o.value:Et(e,o.value,r.proseWrap,!0));switch(t.type){case"front-matter":return r.originalText.slice(t.position.start.offset,t.position.end.offset);case"root":return t.children.length===0?"":[Xn(ef(e,r,n)),O];case"paragraph":return Y(e,r,n,{postprocessor:Sr});case"sentence":return Y(e,r,n);case"word":{let o=R(!1,R(!1,t.value,"*","\\*"),new RegExp([`(^|${ur})(_+)`,`(_+)(${ur}|$)`].join("|"),"g"),(c,f,D,h,p)=>R(!1,D?`${f}${D}`:`${h}${p}`,"_","\\_")),s=(c,f,D)=>c.type==="sentence"&&D===0,l=(c,f,D)=>gt(c.children[D-1]);return o!==t.value&&(e.match(void 0,s,l)||e.match(void 0,s,(c,f,D)=>c.type==="emphasis"&&D===0,l))&&(o=o.replace(/^(\\?[*_])+/,c=>R(!1,c,"\\",""))),o}case"whitespace":{let{next:o}=e,s=o&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/.test(o.value)?"never":r.proseWrap;return Et(e,t.value,s)}case"emphasis":{let o;if(gt(t.children[0]))o=r.originalText[t.position.start.offset];else{let{previous:s,next:l}=e;o=(s==null?void 0:s.type)==="sentence"&&((a=U(!1,s.children,-1))==null?void 0:a.type)==="word"&&!U(!1,s.children,-1).hasTrailingPunctuation||(l==null?void 0:l.type)==="sentence"&&((i=l.children[0])==null?void 0:i.type)==="word"&&!l.children[0].hasLeadingPunctuation||e.hasAncestor(f=>f.type==="emphasis")?"*":"_"}return[o,Y(e,r,n),o]}case"strong":return["**",Y(e,r,n),"**"];case"delete":return["~~",Y(e,r,n),"~~"];case"inlineCode":{let o=r.proseWrap==="preserve"?t.value:R(!1,t.value,` +`," "),s=Nn(o,"`"),l="`".repeat(s||1),c=o.startsWith("`")||o.endsWith("`")||/^[\n ]/.test(o)&&/[\n ]$/.test(o)&&/[^\n ]/.test(o)?" ":"";return[l,c,o,c,l]}case"wikiLink":{let o="";return r.proseWrap==="preserve"?o=t.value:o=R(!1,t.value,/[\t\n]+/g," "),["[[",o,"]]"]}case"link":switch(r.originalText[t.position.start.offset]){case"<":{let o="mailto:";return["<",t.url.startsWith(o)&&r.originalText.slice(t.position.start.offset+1,t.position.start.offset+1+o.length)!==o?t.url.slice(o.length):t.url,">"]}case"[":return["[",Y(e,r,n),"](",Ct(t.url,")"),Nr(t.title,r),")"];default:return r.originalText.slice(t.position.start.offset,t.position.end.offset)}case"image":return["![",t.alt||"","](",Ct(t.url,")"),Nr(t.title,r),")"];case"blockquote":return["> ",Fe("> ",Y(e,r,n))];case"heading":return["#".repeat(t.depth)+" ",Y(e,r,n)];case"code":{if(t.isIndented){let l=" ".repeat(4);return Fe(l,[l,Ee(t.value,O)])}let o=r.__inJsTemplate?"~":"`",s=o.repeat(Math.max(3,Ar(t.value,o)+1));return[s,t.lang||"",t.meta?" "+t.meta:"",O,Ee(Ir(t,r.originalText),O),O,s]}case"html":{let{parent:o,isLast:s}=e,l=o.type==="root"&&s?t.value.trimEnd():t.value,c=/^$/s.test(l);return Ee(l,c?O:qe(tr))}case"list":{let o=yi(t,e.parent),s=oi(t,r);return Y(e,r,n,{processor(l){let c=D(),f=l.node;if(f.children.length===2&&f.children[1].type==="html"&&f.children[0].position.start.column!==f.children[1].position.start.column)return[c,xi(l,r,n,c)];return[c,Fe(" ".repeat(c.length),xi(l,r,n,c))];function D(){let h=t.ordered?(l.isFirst?t.start:s?1:t.start+l.index)+(o%2===0?". ":") "):o%2===0?"- ":"* ";return t.isAligned||t.hasIndentedCodeblock?Xl(h,r):h}}})}case"thematicBreak":{let{ancestors:o}=e,s=o.findIndex(c=>c.type==="list");return s===-1?"---":yi(o[s],o[s+1])%2===0?"***":"---"}case"linkReference":return["[",Y(e,r,n),"]",t.referenceType==="full"?bt(t):t.referenceType==="collapsed"?"[]":""];case"imageReference":switch(t.referenceType){case"full":return["![",t.alt||"","]",bt(t)];default:return["![",t.alt,"]",t.referenceType==="collapsed"?"[]":""]}case"definition":{let o=r.proseWrap==="always"?Pr:" ";return Ze([bt(t),":",Qe([o,Ct(t.url),t.title===null?"":[o,Nr(t.title,r,!1)]])])}case"footnote":return["[^",Y(e,r,n),"]"];case"footnoteReference":return Bi(t);case"footnoteDefinition":{let o=t.children.length===1&&t.children[0].type==="paragraph"&&(r.proseWrap==="never"||r.proseWrap==="preserve"&&t.children[0].position.start.line===t.children[0].position.end.line);return[Bi(t),": ",o?Y(e,r,n):Ze([Fe(" ".repeat(4),Y(e,r,n,{processor:({isFirst:s})=>s?Ze([rr,n()]):n()})),((u=e.next)==null?void 0:u.type)==="footnoteDefinition"?rr:""])]}case"table":return Zl(e,r,n);case"tableCell":return Y(e,r,n);case"break":return/\s/.test(r.originalText[t.position.start.offset])?[" ",qe(tr)]:["\\",O];case"liquidNode":return Ee(t.value,O);case"import":case"export":case"jsx":return t.value;case"esComment":return["{/* ",t.value," */}"];case"math":return["$$",O,t.value?[Ee(t.value,O),O]:"","$$"];case"inlineMath":return r.originalText.slice(Te(t),Se(t));case"tableRow":case"listItem":case"text":default:throw new ri(t,"Markdown")}}function xi(e,r,n,t){let{node:a}=e,i=a.checked===null?"":a.checked?"[x] ":"[ ] ";return[i,Y(e,r,n,{processor({node:u,isFirst:o}){if(o&&u.type!=="list")return Fe(" ".repeat(i.length),n());let s=" ".repeat(uf(r.tabWidth-t.length,0,3));return[s,Fe(s,n())]}})]}function Xl(e,r){let n=t();return e+" ".repeat(n>=4?0:n);function t(){let a=e.length%r.tabWidth;return a===0?0:r.tabWidth-a}}function yi(e,r){return Ql(e,r,n=>n.ordered===e.ordered)}function Ql(e,r,n){let t=-1;for(let a of r.children)if(a.type===e.type&&n(a)?t++:t=-1,a===e)return t}function Zl(e,r,n){let{node:t}=e,a=[],i=e.map(()=>e.map(({index:f})=>{let D=ei(n(),r).formatted,h=Xe(D);return a[f]=Math.max(a[f]||3,h),{text:D,width:h}},"children"),"children"),u=s(!1);if(r.proseWrap!=="never")return[er,u];let o=s(!0);return[er,Ze($n(o,u))];function s(f){let D=[c(i[0],f),l(f)];return i.length>1&&D.push(nr(Ne,i.slice(1).map(h=>c(h,f)))),nr(Ne,D)}function l(f){return`| ${a.map((h,p)=>{let d=t.align[p],m=d==="center"||d==="left"?":":"-",g=d==="center"||d==="right"?":":"-",x=f?"-":"-".repeat(h-2);return`${m}${x}${g}`}).join(" | ")} |`}function c(f,D){return`| ${f.map(({text:p,width:d},m)=>{if(D)return p;let g=a[m]-d,x=t.align[m],F=0;x==="right"?F=g:x==="center"&&(F=Math.floor(g/2));let B=g-F;return`${" ".repeat(F)}${p}${" ".repeat(B)}`}).join(" | ")} |`}}function ef(e,r,n){let t=[],a=null,{children:i}=e.node;for(let[u,o]of i.entries())switch(xt(o)){case"start":a===null&&(a={index:u,offset:o.position.end.offset});break;case"end":a!==null&&(t.push({start:a,end:{index:u,offset:o.position.start.offset}}),a=null);break;default:break}return Y(e,r,n,{processor({index:u}){if(t.length>0){let o=t[0];if(u===o.start.index)return[ki(i[o.start.index]),r.originalText.slice(o.start.offset,o.end.offset),ki(i[o.end.index])];if(o.start.indexo,processor:i=()=>n()}=t,u=[];return e.each(()=>{let o=i(e);o!==!1&&(u.length>0&&rf(e)&&(u.push(O),(tf(e,r)||Ai(e))&&u.push(O),Ai(e)&&u.push(O)),u.push(o))},"children"),a(u)}function ki(e){if(e.type==="html")return e.value;if(e.type==="paragraph"&&Array.isArray(e.children)&&e.children.length===1&&e.children[0].type==="esComment")return["{/* ",e.children[0].value," */}"]}function xt(e){let r;if(e.type==="html")r=e.value.match(/^$/);else{let n;e.type==="esComment"?n=e:e.type==="paragraph"&&e.children.length===1&&e.children[0].type==="esComment"&&(n=e.children[0]),n&&(r=n.value.match(/^prettier-ignore(?:-(start|end))?$/))}return r?r[1]||"next":!1}function rf({node:e,parent:r}){let n=mt.has(e.type),t=e.type==="html"&&Lr.has(r.type);return!n&&!t}function wi(e,r){return e.type==="listItem"&&(e.spread||r.originalText.charAt(e.position.end.offset-1)===` +`)}function tf({node:e,previous:r,parent:n},t){if(wi(r,t))return!0;let u=r.type===e.type&&Kl.has(e.type),o=n.type==="listItem"&&!wi(n,t),s=xt(r)==="next",l=e.type==="html"&&r.type==="html"&&r.position.end.line+1===e.position.start.line,c=e.type==="html"&&n.type==="listItem"&&r.type==="paragraph"&&r.position.end.line+1===e.position.start.line;return!(u||o||s||l||c)}function Ai({node:e,previous:r}){let n=r.type==="list",t=e.type==="code"&&e.isIndented;return n&&t}function nf(e){let r=e.findAncestor(n=>n.type==="linkReference"||n.type==="imageReference");return r&&(r.type!=="linkReference"||r.referenceType!=="full")}function Ct(e,r=[]){let n=[" ",...Array.isArray(r)?r:[r]];return new RegExp(n.map(t=>`\\${t}`).join("|")).test(e)?`<${e}>`:e}function Nr(e,r,n=!0){if(!e)return"";if(n)return" "+Nr(e,r,!1);if(e=R(!1,e,/\\(?=["')])/g,""),e.includes('"')&&e.includes("'")&&!e.includes(")"))return`(${e})`;let t=Un(e,r.singleQuote);return e=R(!1,e,"\\","\\\\"),e=R(!1,e,t,`\\${t}`),`${t}${e}${t}`}function uf(e,r,n){return en?n:e}function af(e){return e.index>0&&xt(e.previous)==="next"}function bt(e){return`[${(0,qi.default)(e.label)}]`}function Bi(e){return`[^${e.label}]`}var of={preprocess:Di,print:Jl,embed:si,massageAstNode:mi,hasPrettierIgnore:af,insertPragma:fi,getVisitorKeys:Fi},Ti=of;var Pn={};Ln(Pn,{markdown:()=>xg,mdx:()=>yg,remark:()=>xg});var Gc=Ie(ks(),1),Hc=Ie(vc(),1),Wc=Ie(Pc(),1),Kc=Ie(Lc(),1);var hg=/^import\s/,mg=/^export\s/,Oc="[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)*|",Ic=/|/,gg=/^{\s*\/\*(.*)\*\/\s*}/,vg=` -`,Rc=e=>hg.test(e),Pn=e=>mg.test(e),zc=(e,r)=>{let n=r.indexOf(vg),t=r.slice(0,n);if(Pn(t)||Rc(t))return e(t)({type:Pn(t)?"export":"import",value:t})},Mc=(e,r)=>{let n=gg.exec(r);if(n)return e(n[0])({type:"esComment",value:n[1].trim()})};zc.locator=e=>Pn(e)||Rc(e)?-1:1;Mc.locator=(e,r)=>e.indexOf("{",r);var Uc=function(){let{Parser:e}=this,{blockTokenizers:r,blockMethods:n,inlineTokenizers:t,inlineMethods:a}=e.prototype;r.esSyntax=zc,t.esComment=Mc,n.splice(n.indexOf("paragraph"),0,"esSyntax"),a.splice(a.indexOf("text"),0,"esComment")};function Fg(){return e=>be(e,(r,n,[t])=>r.type!=="html"||Nc.test(r.value)||Or.has(t.type)?r:{...r,type:"jsx"})}var Yc=Fg;var Eg=function(){let e=this.Parser.prototype;e.blockMethods=["frontMatter",...e.blockMethods],e.blockTokenizers.frontMatter=r;function r(n,t){let a=or(t);if(a.frontMatter)return n(a.frontMatter.raw)(a.frontMatter)}r.onlyAtStart=!0},Vc=Eg;var Cg=function(){let e=this.Parser.prototype,r=e.inlineMethods;r.splice(r.indexOf("text"),0,"liquid"),e.inlineTokenizers.liquid=n;function n(t,a){let i=a.match(/^({%.*?%}|{{.*?}})/s);if(i)return t(i[0])({type:"liquidNode",value:i[0]})}n.locator=function(t,a){return t.indexOf("{",a)}},jc=Cg;var bg=function(){let e="wikiLink",r=/^\[\[(?.+?)]]/s,n=this.Parser.prototype,t=n.inlineMethods;t.splice(t.indexOf("link"),0,e),n.inlineTokenizers.wikiLink=a;function a(i,u){let o=r.exec(u);if(o){let s=o.groups.linkContents.trim();return i(o[0])({type:e,value:s})}}a.locator=function(i,u){return i.indexOf("[",u)}},$c=bg;function Xc({isMDX:e}){return r=>{let n=(0,Wc.default)().use(Hc.default,{commonmark:!0,...e&&{blocks:[Ic]}}).use(Jc.default).use(Vc).use(Kc.default).use(e?Uc:Gc).use(jc).use(e?Yc:Gc).use($c);return n.run(n.parse(r))}}function Gc(){}var Qc={astFormat:"mdast",hasPragma:fi,locStart:Te,locEnd:Se},xg={...Qc,parse:Xc({isMDX:!1})},yg={...Qc,parse:Xc({isMDX:!0})};var Zc=[{linguistLanguageId:222,name:"Markdown",type:"prose",color:"#083fa1",aliases:["pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"source.gfm",parsers:["markdown"],vscodeLanguageIds:["markdown"]},{linguistLanguageId:222,name:"MDX",type:"prose",color:"#083fa1",aliases:["pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".mdx"],filenames:[],tmScope:"source.gfm",parsers:["mdx"],vscodeLanguageIds:["mdx"]}];var Ln={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var kg={proseWrap:Ln.proseWrap,singleQuote:Ln.singleQuote},el=kg;var wg={mdast:Si};return al(Ag);}); \ No newline at end of file +`,Nc=e=>hg.test(e),Sn=e=>mg.test(e),Rc=(e,r)=>{let n=r.indexOf(vg),t=r.slice(0,n);if(Sn(t)||Nc(t))return e(t)({type:Sn(t)?"export":"import",value:t})},zc=(e,r)=>{let n=gg.exec(r);if(n)return e(n[0])({type:"esComment",value:n[1].trim()})};Rc.locator=e=>Sn(e)||Nc(e)?-1:1;zc.locator=(e,r)=>e.indexOf("{",r);var Mc=function(){let{Parser:e}=this,{blockTokenizers:r,blockMethods:n,inlineTokenizers:t,inlineMethods:a}=e.prototype;r.esSyntax=Rc,t.esComment=zc,n.splice(n.indexOf("paragraph"),0,"esSyntax"),a.splice(a.indexOf("text"),0,"esComment")};function Fg(){return e=>be(e,(r,n,[t])=>r.type!=="html"||Ic.test(r.value)||Lr.has(t.type)?r:{...r,type:"jsx"})}var Uc=Fg;var Eg=function(){let e=this.Parser.prototype;e.blockMethods=["frontMatter",...e.blockMethods],e.blockTokenizers.frontMatter=r;function r(n,t){let a=or(t);if(a.frontMatter)return n(a.frontMatter.raw)(a.frontMatter)}r.onlyAtStart=!0},Yc=Eg;var Cg=function(){let e=this.Parser.prototype,r=e.inlineMethods;r.splice(r.indexOf("text"),0,"liquid"),e.inlineTokenizers.liquid=n;function n(t,a){let i=a.match(/^({%.*?%}|{{.*?}})/s);if(i)return t(i[0])({type:"liquidNode",value:i[0]})}n.locator=function(t,a){return t.indexOf("{",a)}},Vc=Cg;var bg=function(){let e="wikiLink",r=/^\[\[(?.+?)]]/s,n=this.Parser.prototype,t=n.inlineMethods;t.splice(t.indexOf("link"),0,e),n.inlineTokenizers.wikiLink=a;function a(i,u){let o=r.exec(u);if(o){let s=o.groups.linkContents.trim();return i(o[0])({type:e,value:s})}}a.locator=function(i,u){return i.indexOf("[",u)}},jc=bg;function Jc({isMDX:e}){return r=>{let n=(0,Hc.default)().use(Gc.default,{commonmark:!0,...e&&{blocks:[Oc]}}).use(Kc.default).use(Yc).use(Wc.default).use(e?Mc:$c).use(Vc).use(e?Uc:$c).use(jc);return n.run(n.parse(r))}}function $c(){}var Xc={astFormat:"mdast",hasPragma:li,locStart:Te,locEnd:Se},xg={...Xc,parse:Jc({isMDX:!1})},yg={...Xc,parse:Jc({isMDX:!0})};var Qc=[{linguistLanguageId:222,name:"Markdown",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"text.md",parsers:["markdown"],vscodeLanguageIds:["markdown"]},{linguistLanguageId:222,name:"MDX",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".mdx"],filenames:[],tmScope:"text.md",parsers:["mdx"],vscodeLanguageIds:["mdx"]}];var _n={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var kg={proseWrap:_n.proseWrap,singleQuote:_n.singleQuote},Zc=kg;var wg={mdast:Ti};return ul(Ag);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/markdown.mjs b/node_modules/prettier/plugins/markdown.mjs index e15fa35..3c4a5a4 100644 --- a/node_modules/prettier/plugins/markdown.mjs +++ b/node_modules/prettier/plugins/markdown.mjs @@ -1,59 +1,59 @@ -var rl=Object.create;var Dt=Object.defineProperty;var tl=Object.getOwnPropertyDescriptor;var nl=Object.getOwnPropertyNames;var il=Object.getPrototypeOf,ul=Object.prototype.hasOwnProperty;var C=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),In=(e,r)=>{for(var n in r)Dt(e,n,{get:r[n],enumerable:!0})},al=(e,r,n,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of nl(r))!ul.call(e,a)&&a!==n&&Dt(e,a,{get:()=>r[a],enumerable:!(t=tl(r,a))||t.enumerable});return e};var Ie=(e,r,n)=>(n=e!=null?rl(il(e)):{},al(r||!e||!e.__esModule?Dt(n,"default",{value:e,enumerable:!0}):n,e));var kr=C((Tg,Nn)=>{"use strict";Nn.exports=cl;function cl(e){return String(e).replace(/\s+/g," ")}});var Pe=C((Pv,_i)=>{_i.exports=cf;var sf=Object.prototype.hasOwnProperty;function cf(){for(var e={},r=0;r{typeof Object.create=="function"?wt.exports=function(r,n){n&&(r.super_=n,r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:wt.exports=function(r,n){if(n){r.super_=n;var t=function(){};t.prototype=n.prototype,r.prototype=new t,r.prototype.constructor=r}}});var Ii=C((Ov,Oi)=>{"use strict";var lf=Pe(),Li=Pi();Oi.exports=ff;function ff(e){var r,n,t;Li(i,e),Li(a,i),r=i.prototype;for(n in r)t=r[n],t&&typeof t=="object"&&(r[n]="concat"in t?t.concat():lf(t));return i;function a(u){return e.apply(this,u)}function i(){return this instanceof i?e.apply(this,arguments):new a(arguments)}}});var Ri=C((Iv,Ni)=>{"use strict";Ni.exports=Df;function Df(e,r,n){return t;function t(){var a=n||this,i=a[e];return a[e]=!r,u;function u(){a[e]=i}}}});var Mi=C((Nv,zi)=>{"use strict";zi.exports=pf;function pf(e){for(var r=String(e),n=[],t=/\r?\n|\r/g;t.exec(r);)n.push(t.lastIndex);return n.push(r.length+1),{toPoint:a,toPosition:a,toOffset:i};function a(u){var o=-1;if(u>-1&&uu)return{line:o+1,column:u-(n[o-1]||0)+1,offset:u}}return{}}function i(u){var o=u&&u.line,s=u&&u.column,l;return!isNaN(o)&&!isNaN(s)&&o-1 in n&&(l=(n[o-2]||0)+s-1||0),l>-1&&l{"use strict";Ui.exports=df;var At="\\";function df(e,r){return n;function n(t){for(var a=0,i=t.indexOf(At),u=e[r],o=[],s;i!==-1;)o.push(t.slice(a,i)),a=i+1,s=t.charAt(a),(!s||u.indexOf(s)===-1)&&o.push(At),i=t.indexOf(At,a+1);return o.push(t.slice(a)),o.join("")}}});var Vi=C((zv,hf)=>{hf.exports={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Acirc:"\xC2",Agrave:"\xC0",Aring:"\xC5",Atilde:"\xC3",Auml:"\xC4",COPY:"\xA9",Ccedil:"\xC7",ETH:"\xD0",Eacute:"\xC9",Ecirc:"\xCA",Egrave:"\xC8",Euml:"\xCB",GT:">",Iacute:"\xCD",Icirc:"\xCE",Igrave:"\xCC",Iuml:"\xCF",LT:"<",Ntilde:"\xD1",Oacute:"\xD3",Ocirc:"\xD4",Ograve:"\xD2",Oslash:"\xD8",Otilde:"\xD5",Ouml:"\xD6",QUOT:'"',REG:"\xAE",THORN:"\xDE",Uacute:"\xDA",Ucirc:"\xDB",Ugrave:"\xD9",Uuml:"\xDC",Yacute:"\xDD",aacute:"\xE1",acirc:"\xE2",acute:"\xB4",aelig:"\xE6",agrave:"\xE0",amp:"&",aring:"\xE5",atilde:"\xE3",auml:"\xE4",brvbar:"\xA6",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",eacute:"\xE9",ecirc:"\xEA",egrave:"\xE8",eth:"\xF0",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",iacute:"\xED",icirc:"\xEE",iexcl:"\xA1",igrave:"\xEC",iquest:"\xBF",iuml:"\xEF",laquo:"\xAB",lt:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",ntilde:"\xF1",oacute:"\xF3",ocirc:"\xF4",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",oslash:"\xF8",otilde:"\xF5",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',raquo:"\xBB",reg:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",thorn:"\xFE",times:"\xD7",uacute:"\xFA",ucirc:"\xFB",ugrave:"\xF9",uml:"\xA8",uuml:"\xFC",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}});var ji=C((Mv,mf)=>{mf.exports={"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}});var Le=C((Uv,$i)=>{"use strict";$i.exports=gf;function gf(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=48&&r<=57}});var Hi=C((Yv,Gi)=>{"use strict";Gi.exports=vf;function vf(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=97&&r<=102||r>=65&&r<=70||r>=48&&r<=57}});var ze=C((Vv,Wi)=>{"use strict";Wi.exports=Ff;function Ff(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=97&&r<=122||r>=65&&r<=90}});var Ji=C((jv,Ki)=>{"use strict";var Ef=ze(),Cf=Le();Ki.exports=bf;function bf(e){return Ef(e)||Cf(e)}});var Xi=C(($v,xf)=>{xf.exports={AEli:"\xC6",AElig:"\xC6",AM:"&",AMP:"&",Aacut:"\xC1",Aacute:"\xC1",Abreve:"\u0102",Acir:"\xC2",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrav:"\xC0",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Arin:"\xC5",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atild:"\xC3",Atilde:"\xC3",Aum:"\xC4",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COP:"\xA9",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedi:"\xC7",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ET:"\xD0",ETH:"\xD0",Eacut:"\xC9",Eacute:"\xC9",Ecaron:"\u011A",Ecir:"\xCA",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrav:"\xC8",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Eum:"\xCB",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",G:">",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacut:"\xCD",Iacute:"\xCD",Icir:"\xCE",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrav:"\xCC",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Ium:"\xCF",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",L:"<",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` -`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntild:"\xD1",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacut:"\xD3",Oacute:"\xD3",Ocir:"\xD4",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograv:"\xD2",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslas:"\xD8",Oslash:"\xD8",Otild:"\xD5",Otilde:"\xD5",Otimes:"\u2A37",Oum:"\xD6",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUO:'"',QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",RE:"\xAE",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THOR:"\xDE",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacut:"\xDA",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucir:"\xDB",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrav:"\xD9",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uum:"\xDC",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacut:"\xDD",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacut:"\xE1",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acir:"\xE2",acirc:"\xE2",acut:"\xB4",acute:"\xB4",acy:"\u0430",aeli:"\xE6",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrav:"\xE0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",am:"&",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",arin:"\xE5",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atild:"\xE3",atilde:"\xE3",aum:"\xE4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvba:"\xA6",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedi:"\xE7",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedi:"\xB8",cedil:"\xB8",cemptyv:"\u29B2",cen:"\xA2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",cop:"\xA9",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curre:"\xA4",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",de:"\xB0",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divid:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacut:"\xE9",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\xEA",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrav:"\xE8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",et:"\xF0",eth:"\xF0",eum:"\xEB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac1:"\xBC",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac3:"\xBE",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",g:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacut:"\xED",iacute:"\xED",ic:"\u2063",icir:"\xEE",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexc:"\xA1",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrav:"\xEC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iques:"\xBF",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",ium:"\xEF",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laqu:"\xAB",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",l:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",mac:"\xAF",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micr:"\xB5",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middo:"\xB7",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbs:"\xA0",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",no:"\xAC",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntild:"\xF1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacut:"\xF3",oacute:"\xF3",oast:"\u229B",ocir:"\xF4",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograv:"\xF2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\xBA",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslas:"\xF8",oslash:"\xF8",osol:"\u2298",otild:"\xF5",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",oum:"\xF6",ouml:"\xF6",ovbar:"\u233D",par:"\xB6",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusm:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",poun:"\xA3",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quo:'"',quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raqu:"\xBB",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",re:"\xAE",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sec:"\xA7",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",sh:"\xAD",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szli:"\xDF",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thor:"\xFE",thorn:"\xFE",tilde:"\u02DC",time:"\xD7",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacut:"\xFA",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucir:"\xFB",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrav:"\xF9",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",um:"\xA8",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uum:"\xFC",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacut:"\xFD",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",ye:"\xA5",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yum:"\xFF",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var eu=C((Gv,Zi)=>{"use strict";var Qi=Xi();Zi.exports=kf;var yf={}.hasOwnProperty;function kf(e){return yf.call(Qi,e)?Qi[e]:!1}});var lr=C((Hv,pu)=>{"use strict";var ru=Vi(),tu=ji(),wf=Le(),Af=Hi(),au=Ji(),Bf=eu();pu.exports=Uf;var qf={}.hasOwnProperty,Me=String.fromCharCode,Tf=Function.prototype,nu={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},Sf=9,iu=10,_f=12,Pf=32,uu=38,Lf=59,Of=60,If=61,Nf=35,Rf=88,zf=120,Mf=65533,Ue="named",qt="hexadecimal",Tt="decimal",St={};St[qt]=16;St[Tt]=10;var Rr={};Rr[Ue]=au;Rr[Tt]=wf;Rr[qt]=Af;var ou=1,su=2,cu=3,lu=4,fu=5,Bt=6,Du=7,xe={};xe[ou]="Named character references must be terminated by a semicolon";xe[su]="Numeric character references must be terminated by a semicolon";xe[cu]="Named character references cannot be empty";xe[lu]="Numeric character references cannot be empty";xe[fu]="Named character references must be known";xe[Bt]="Numeric character references cannot be disallowed";xe[Du]="Numeric character references cannot be outside the permissible Unicode range";function Uf(e,r){var n={},t,a;r||(r={});for(a in nu)t=r[a],n[a]=t??nu[a];return(n.position.indent||n.position.start)&&(n.indent=n.position.indent||[],n.position=n.position.start),Yf(e,n)}function Yf(e,r){var n=r.additional,t=r.nonTerminated,a=r.text,i=r.reference,u=r.warning,o=r.textContext,s=r.referenceContext,l=r.warningContext,c=r.position,f=r.indent||[],D=e.length,h=0,p=-1,d=c.column||1,m=c.line||1,g="",x=[],F,B,b,v,y,k,E,w,A,q,T,N,P,_,S,L,we,j,I;for(typeof n=="string"&&(n=n.charCodeAt(0)),L=J(),w=u?K:Tf,h--,D++;++h65535&&(k-=65536,q+=Me(k>>>10|55296),k=56320|k&1023),k=q+Me(k))):_!==Ue&&w(lu,j)),k?(me(),L=J(),h=I-1,d+=I-P+1,x.push(k),we=J(),we.offset++,i&&i.call(s,k,{start:L,end:we},e.slice(P-1,I)),L=we):(v=e.slice(P-1,I),g+=v,d+=v.length,h=I-1)}else y===10&&(m++,p++,d=0),y===y?(g+=Me(y),d++):me();return x.join("");function J(){return{line:m,column:d,offset:h+(c.offset||0)}}function K(ge,M){var ft=J();ft.column+=M,ft.offset+=M,u.call(l,xe[ge],ft,ge)}function me(){g&&(x.push(g),a&&a.call(o,g,{start:L,end:J()}),g="")}}function Vf(e){return e>=55296&&e<=57343||e>1114111}function jf(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}});var mu=C((Wv,hu)=>{"use strict";var $f=Pe(),du=lr();hu.exports=Gf;function Gf(e){return n.raw=t,n;function r(i){for(var u=e.offset,o=i.line,s=[];++o&&o in u;)s.push((u[o]||0)+1);return{start:i,indent:s}}function n(i,u,o){du(i,{position:r(u),warning:a,text:o,reference:o,textContext:e,referenceContext:e})}function t(i,u,o){return du(i,$f(o,{position:r(u),warning:a}))}function a(i,u,o){o!==3&&e.file.message(i,u)}}});var Fu=C((Kv,vu)=>{"use strict";vu.exports=Hf;function Hf(e){return r;function r(n,t){var a=this,i=a.offset,u=[],o=a[e+"Methods"],s=a[e+"Tokenizers"],l=t.line,c=t.column,f,D,h,p,d,m;if(!n)return u;for(k.now=F,k.file=a.file,g("");n;){for(f=-1,D=o.length,d=!1;++f()=>(r||e((r={exports:{}}).exports,r),r.exports),On=(e,r)=>{for(var n in r)lt(e,n,{get:r[n],enumerable:!0})},ul=(e,r,n,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of tl(r))!il.call(e,a)&&a!==n&<(e,a,{get:()=>r[a],enumerable:!(t=rl(r,a))||t.enumerable});return e};var Ie=(e,r,n)=>(n=e!=null?el(nl(e)):{},ul(r||!e||!e.__esModule?lt(n,"default",{value:e,enumerable:!0}):n,e));var kr=C((Tg,In)=>{"use strict";In.exports=sl;function sl(e){return String(e).replace(/\s+/g," ")}});var _e=C((_v,Si)=>{Si.exports=cf;var sf=Object.prototype.hasOwnProperty;function cf(){for(var e={},r=0;r{typeof Object.create=="function"?yt.exports=function(r,n){n&&(r.super_=n,r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:yt.exports=function(r,n){if(n){r.super_=n;var t=function(){};t.prototype=n.prototype,r.prototype=new t,r.prototype.constructor=r}}});var Oi=C((Ov,Li)=>{"use strict";var lf=_e(),_i=Pi();Li.exports=ff;function ff(e){var r,n,t;_i(i,e),_i(a,i),r=i.prototype;for(n in r)t=r[n],t&&typeof t=="object"&&(r[n]="concat"in t?t.concat():lf(t));return i;function a(u){return e.apply(this,u)}function i(){return this instanceof i?e.apply(this,arguments):new a(arguments)}}});var Ni=C((Iv,Ii)=>{"use strict";Ii.exports=Df;function Df(e,r,n){return t;function t(){var a=n||this,i=a[e];return a[e]=!r,u;function u(){a[e]=i}}}});var zi=C((Nv,Ri)=>{"use strict";Ri.exports=pf;function pf(e){for(var r=String(e),n=[],t=/\r?\n|\r/g;t.exec(r);)n.push(t.lastIndex);return n.push(r.length+1),{toPoint:a,toPosition:a,toOffset:i};function a(u){var o=-1;if(u>-1&&uu)return{line:o+1,column:u-(n[o-1]||0)+1,offset:u}}return{}}function i(u){var o=u&&u.line,s=u&&u.column,l;return!isNaN(o)&&!isNaN(s)&&o-1 in n&&(l=(n[o-2]||0)+s-1||0),l>-1&&l{"use strict";Mi.exports=df;var kt="\\";function df(e,r){return n;function n(t){for(var a=0,i=t.indexOf(kt),u=e[r],o=[],s;i!==-1;)o.push(t.slice(a,i)),a=i+1,s=t.charAt(a),(!s||u.indexOf(s)===-1)&&o.push(kt),i=t.indexOf(kt,a+1);return o.push(t.slice(a)),o.join("")}}});var Yi=C((zv,hf)=>{hf.exports={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Acirc:"\xC2",Agrave:"\xC0",Aring:"\xC5",Atilde:"\xC3",Auml:"\xC4",COPY:"\xA9",Ccedil:"\xC7",ETH:"\xD0",Eacute:"\xC9",Ecirc:"\xCA",Egrave:"\xC8",Euml:"\xCB",GT:">",Iacute:"\xCD",Icirc:"\xCE",Igrave:"\xCC",Iuml:"\xCF",LT:"<",Ntilde:"\xD1",Oacute:"\xD3",Ocirc:"\xD4",Ograve:"\xD2",Oslash:"\xD8",Otilde:"\xD5",Ouml:"\xD6",QUOT:'"',REG:"\xAE",THORN:"\xDE",Uacute:"\xDA",Ucirc:"\xDB",Ugrave:"\xD9",Uuml:"\xDC",Yacute:"\xDD",aacute:"\xE1",acirc:"\xE2",acute:"\xB4",aelig:"\xE6",agrave:"\xE0",amp:"&",aring:"\xE5",atilde:"\xE3",auml:"\xE4",brvbar:"\xA6",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",eacute:"\xE9",ecirc:"\xEA",egrave:"\xE8",eth:"\xF0",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",iacute:"\xED",icirc:"\xEE",iexcl:"\xA1",igrave:"\xEC",iquest:"\xBF",iuml:"\xEF",laquo:"\xAB",lt:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",ntilde:"\xF1",oacute:"\xF3",ocirc:"\xF4",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",oslash:"\xF8",otilde:"\xF5",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',raquo:"\xBB",reg:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",thorn:"\xFE",times:"\xD7",uacute:"\xFA",ucirc:"\xFB",ugrave:"\xF9",uml:"\xA8",uuml:"\xFC",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}});var Vi=C((Mv,mf)=>{mf.exports={"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}});var Le=C((Uv,ji)=>{"use strict";ji.exports=gf;function gf(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=48&&r<=57}});var Gi=C((Yv,$i)=>{"use strict";$i.exports=vf;function vf(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=97&&r<=102||r>=65&&r<=70||r>=48&&r<=57}});var ze=C((Vv,Hi)=>{"use strict";Hi.exports=Ff;function Ff(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=97&&r<=122||r>=65&&r<=90}});var Ki=C((jv,Wi)=>{"use strict";var Ef=ze(),Cf=Le();Wi.exports=bf;function bf(e){return Ef(e)||Cf(e)}});var Ji=C(($v,xf)=>{xf.exports={AEli:"\xC6",AElig:"\xC6",AM:"&",AMP:"&",Aacut:"\xC1",Aacute:"\xC1",Abreve:"\u0102",Acir:"\xC2",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrav:"\xC0",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Arin:"\xC5",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atild:"\xC3",Atilde:"\xC3",Aum:"\xC4",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COP:"\xA9",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedi:"\xC7",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ET:"\xD0",ETH:"\xD0",Eacut:"\xC9",Eacute:"\xC9",Ecaron:"\u011A",Ecir:"\xCA",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrav:"\xC8",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Eum:"\xCB",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",G:">",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacut:"\xCD",Iacute:"\xCD",Icir:"\xCE",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrav:"\xCC",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Ium:"\xCF",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",L:"<",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` +`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntild:"\xD1",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacut:"\xD3",Oacute:"\xD3",Ocir:"\xD4",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograv:"\xD2",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslas:"\xD8",Oslash:"\xD8",Otild:"\xD5",Otilde:"\xD5",Otimes:"\u2A37",Oum:"\xD6",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUO:'"',QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",RE:"\xAE",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THOR:"\xDE",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacut:"\xDA",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucir:"\xDB",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrav:"\xD9",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uum:"\xDC",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacut:"\xDD",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacut:"\xE1",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acir:"\xE2",acirc:"\xE2",acut:"\xB4",acute:"\xB4",acy:"\u0430",aeli:"\xE6",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrav:"\xE0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",am:"&",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",arin:"\xE5",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atild:"\xE3",atilde:"\xE3",aum:"\xE4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvba:"\xA6",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedi:"\xE7",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedi:"\xB8",cedil:"\xB8",cemptyv:"\u29B2",cen:"\xA2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",cop:"\xA9",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curre:"\xA4",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",de:"\xB0",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divid:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacut:"\xE9",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\xEA",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrav:"\xE8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",et:"\xF0",eth:"\xF0",eum:"\xEB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac1:"\xBC",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac3:"\xBE",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",g:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacut:"\xED",iacute:"\xED",ic:"\u2063",icir:"\xEE",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexc:"\xA1",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrav:"\xEC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iques:"\xBF",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",ium:"\xEF",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laqu:"\xAB",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",l:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",mac:"\xAF",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micr:"\xB5",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middo:"\xB7",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbs:"\xA0",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",no:"\xAC",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntild:"\xF1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacut:"\xF3",oacute:"\xF3",oast:"\u229B",ocir:"\xF4",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograv:"\xF2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\xBA",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslas:"\xF8",oslash:"\xF8",osol:"\u2298",otild:"\xF5",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",oum:"\xF6",ouml:"\xF6",ovbar:"\u233D",par:"\xB6",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusm:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",poun:"\xA3",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quo:'"',quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raqu:"\xBB",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",re:"\xAE",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sec:"\xA7",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",sh:"\xAD",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szli:"\xDF",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thor:"\xFE",thorn:"\xFE",tilde:"\u02DC",time:"\xD7",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacut:"\xFA",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucir:"\xFB",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrav:"\xF9",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",um:"\xA8",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uum:"\xFC",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacut:"\xFD",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",ye:"\xA5",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yum:"\xFF",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var Zi=C((Gv,Qi)=>{"use strict";var Xi=Ji();Qi.exports=kf;var yf={}.hasOwnProperty;function kf(e){return yf.call(Xi,e)?Xi[e]:!1}});var lr=C((Hv,Du)=>{"use strict";var eu=Yi(),ru=Vi(),wf=Le(),Af=Gi(),uu=Ki(),Bf=Zi();Du.exports=Uf;var qf={}.hasOwnProperty,Me=String.fromCharCode,Tf=Function.prototype,tu={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},Sf=9,nu=10,Pf=12,_f=32,iu=38,Lf=59,Of=60,If=61,Nf=35,Rf=88,zf=120,Mf=65533,Ue="named",At="hexadecimal",Bt="decimal",qt={};qt[At]=16;qt[Bt]=10;var Nr={};Nr[Ue]=uu;Nr[Bt]=wf;Nr[At]=Af;var au=1,ou=2,su=3,cu=4,lu=5,wt=6,fu=7,xe={};xe[au]="Named character references must be terminated by a semicolon";xe[ou]="Numeric character references must be terminated by a semicolon";xe[su]="Named character references cannot be empty";xe[cu]="Numeric character references cannot be empty";xe[lu]="Named character references must be known";xe[wt]="Numeric character references cannot be disallowed";xe[fu]="Numeric character references cannot be outside the permissible Unicode range";function Uf(e,r){var n={},t,a;r||(r={});for(a in tu)t=r[a],n[a]=t??tu[a];return(n.position.indent||n.position.start)&&(n.indent=n.position.indent||[],n.position=n.position.start),Yf(e,n)}function Yf(e,r){var n=r.additional,t=r.nonTerminated,a=r.text,i=r.reference,u=r.warning,o=r.textContext,s=r.referenceContext,l=r.warningContext,c=r.position,f=r.indent||[],D=e.length,h=0,p=-1,d=c.column||1,m=c.line||1,g="",x=[],F,B,b,v,y,k,E,w,A,q,T,N,_,P,S,L,we,j,I;for(typeof n=="string"&&(n=n.charCodeAt(0)),L=J(),w=u?K:Tf,h--,D++;++h65535&&(k-=65536,q+=Me(k>>>10|55296),k=56320|k&1023),k=q+Me(k))):P!==Ue&&w(cu,j)),k?(me(),L=J(),h=I-1,d+=I-_+1,x.push(k),we=J(),we.offset++,i&&i.call(s,k,{start:L,end:we},e.slice(_-1,I)),L=we):(v=e.slice(_-1,I),g+=v,d+=v.length,h=I-1)}else y===10&&(m++,p++,d=0),y===y?(g+=Me(y),d++):me();return x.join("");function J(){return{line:m,column:d,offset:h+(c.offset||0)}}function K(ge,M){var ct=J();ct.column+=M,ct.offset+=M,u.call(l,xe[ge],ct,ge)}function me(){g&&(x.push(g),a&&a.call(o,g,{start:L,end:J()}),g="")}}function Vf(e){return e>=55296&&e<=57343||e>1114111}function jf(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}});var hu=C((Wv,du)=>{"use strict";var $f=_e(),pu=lr();du.exports=Gf;function Gf(e){return n.raw=t,n;function r(i){for(var u=e.offset,o=i.line,s=[];++o&&o in u;)s.push((u[o]||0)+1);return{start:i,indent:s}}function n(i,u,o){pu(i,{position:r(u),warning:a,text:o,reference:o,textContext:e,referenceContext:e})}function t(i,u,o){return pu(i,$f(o,{position:r(u),warning:a}))}function a(i,u,o){o!==3&&e.file.message(i,u)}}});var vu=C((Kv,gu)=>{"use strict";gu.exports=Hf;function Hf(e){return r;function r(n,t){var a=this,i=a.offset,u=[],o=a[e+"Methods"],s=a[e+"Tokenizers"],l=t.line,c=t.column,f,D,h,p,d,m;if(!n)return u;for(k.now=F,k.file=a.file,g("");n;){for(f=-1,D=o.length,d=!1;++f{"use strict";Cu.exports=zr;var _t=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],Pt=_t.concat(["~","|"]),Eu=Pt.concat([` -`,'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);zr.default=_t;zr.gfm=Pt;zr.commonmark=Eu;function zr(e){var r=e||{};return r.commonmark?Eu:r.gfm?Pt:_t}});var yu=C((Xv,xu)=>{"use strict";xu.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]});var Lt=C((Qv,ku)=>{"use strict";ku.exports={position:!0,gfm:!0,commonmark:!1,pedantic:!1,blocks:yu()}});var Au=C((Zv,wu)=>{"use strict";var Jf=Pe(),Xf=bu(),Qf=Lt();wu.exports=Zf;function Zf(e){var r=this,n=r.options,t,a;if(e==null)e={};else if(typeof e=="object")e=Jf(e);else throw new Error("Invalid value `"+e+"` for setting `options`");for(t in Qf){if(a=e[t],a==null&&(a=n[t]),t!=="blocks"&&typeof a!="boolean"||t==="blocks"&&typeof a!="object")throw new Error("Invalid value `"+a+"` for setting `options."+t+"`");e[t]=a}return r.options=e,r.escape=Xf(e),r}});var Tu=C((eF,qu)=>{"use strict";qu.exports=Bu;function Bu(e){if(e==null)return nD;if(typeof e=="string")return tD(e);if(typeof e=="object")return"length"in e?rD(e):eD(e);if(typeof e=="function")return e;throw new Error("Expected function, string, or object as test")}function eD(e){return r;function r(n){var t;for(t in e)if(n[t]!==e[t])return!1;return!0}}function rD(e){for(var r=[],n=-1;++n{Su.exports=iD;function iD(e){return e}});var Iu=C((tF,Ou)=>{"use strict";Ou.exports=Mr;var uD=Tu(),aD=_u(),Pu=!0,Lu="skip",Ot=!1;Mr.CONTINUE=Pu;Mr.SKIP=Lu;Mr.EXIT=Ot;function Mr(e,r,n,t){var a,i;typeof r=="function"&&typeof n!="function"&&(t=n,n=r,r=null),i=uD(r),a=t?-1:1,u(e,null,[])();function u(o,s,l){var c=typeof o=="object"&&o!==null?o:{},f;return typeof c.type=="string"&&(f=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0,D.displayName="node ("+aD(c.type+(f?"<"+f+">":""))+")"),D;function D(){var h=l.concat(o),p=[],d,m;if((!r||i(o,s,l[l.length-1]||null))&&(p=oD(n(o,l)),p[0]===Ot))return p;if(o.children&&p[0]!==Lu)for(m=(t?o.children.length:-1)+a;m>-1&&m{"use strict";Nu.exports=Yr;var Ur=Iu(),sD=Ur.CONTINUE,cD=Ur.SKIP,lD=Ur.EXIT;Yr.CONTINUE=sD;Yr.SKIP=cD;Yr.EXIT=lD;function Yr(e,r,n,t){typeof r=="function"&&typeof n!="function"&&(t=n,n=r,r=null),Ur(e,r,a,t);function a(i,u){var o=u[u.length-1],s=o?o.children.indexOf(i):null;return n(i,s,o)}}});var Mu=C((iF,zu)=>{"use strict";var fD=Ru();zu.exports=DD;function DD(e,r){return fD(e,r?pD:dD),e}function pD(e){delete e.position}function dD(e){e.position=void 0}});var Vu=C((uF,Yu)=>{"use strict";var Uu=Pe(),hD=Mu();Yu.exports=vD;var mD=` -`,gD=/\r\n|\r/g;function vD(){var e=this,r=String(e.file),n={line:1,column:1,offset:0},t=Uu(n),a;return r=r.replace(gD,mD),r.charCodeAt(0)===65279&&(r=r.slice(1),t.column++,t.offset++),a={type:"root",children:e.tokenizeBlock(r,t),position:{start:n,end:e.eof||Uu(n)}},e.options.position||hD(a,!0),a}});var $u=C((aF,ju)=>{"use strict";var FD=/^[ \t]*(\n|$)/;ju.exports=ED;function ED(e,r,n){for(var t,a="",i=0,u=r.length;i{"use strict";var pe="",It;Gu.exports=CD;function CD(e,r){if(typeof e!="string")throw new TypeError("expected a string");if(r===1)return e;if(r===2)return e+e;var n=e.length*r;if(It!==e||typeof It>"u")It=e,pe="";else if(pe.length>=n)return pe.substr(0,n);for(;n>pe.length&&r>1;)r&1&&(pe+=e),r>>=1,e+=e;return pe+=e,pe=pe.substr(0,n),pe}});var Nt=C((sF,Hu)=>{"use strict";Hu.exports=bD;function bD(e){return String(e).replace(/\n+$/,"")}});var Ju=C((cF,Ku)=>{"use strict";var xD=Vr(),yD=Nt();Ku.exports=AD;var Rt=` -`,Wu=" ",zt=" ",kD=4,wD=xD(zt,kD);function AD(e,r,n){for(var t=-1,a=r.length,i="",u="",o="",s="",l,c,f;++t{"use strict";Qu.exports=SD;var jr=` -`,fr=" ",Ye=" ",BD="~",Xu="`",qD=3,TD=4;function SD(e,r,n){var t=this,a=t.options.gfm,i=r.length+1,u=0,o="",s,l,c,f,D,h,p,d,m,g,x,F,B;if(a){for(;u=TD)){for(p="";u{Ve=ea.exports=_D;function _D(e){return e.trim?e.trim():Ve.right(Ve.left(e))}Ve.left=function(e){return e.trimLeft?e.trimLeft():e.replace(/^\s\s*/,"")};Ve.right=function(e){if(e.trimRight)return e.trimRight();for(var r=/\s/,n=e.length;r.test(e.charAt(--n)););return e.slice(0,n+1)}});var $r=C((fF,ra)=>{"use strict";ra.exports=PD;function PD(e,r,n,t){for(var a=e.length,i=-1,u,o;++i{"use strict";var LD=Oe(),OD=$r();ia.exports=ID;var Mt=` -`,ta=" ",Ut=" ",na=">";function ID(e,r,n){for(var t=this,a=t.offset,i=t.blockTokenizers,u=t.interruptBlockquote,o=e.now(),s=o.line,l=r.length,c=[],f=[],D=[],h,p=0,d,m,g,x,F,B,b,v;p{"use strict";oa.exports=RD;var aa=` -`,Dr=" ",pr=" ",dr="#",ND=6;function RD(e,r,n){for(var t=this,a=t.options.pedantic,i=r.length+1,u=-1,o=e.now(),s="",l="",c,f,D;++uND)&&!(!D||!a&&r.charAt(u+1)===dr)){for(i=r.length+1,f="";++u{"use strict";la.exports=$D;var zD=" ",MD=` -`,ca=" ",UD="*",YD="-",VD="_",jD=3;function $D(e,r,n){for(var t=-1,a=r.length+1,i="",u,o,s,l;++t=jD&&(!u||u===MD)?(i+=l,n?!0:e(i)({type:"thematicBreak"})):void 0}});var Yt=C((hF,pa)=>{"use strict";pa.exports=KD;var Da=" ",GD=" ",HD=1,WD=4;function KD(e){for(var r=0,n=0,t=e.charAt(r),a={},i,u=0;t===Da||t===GD;){for(i=t===Da?WD:HD,n+=i,i>1&&(n=Math.floor(n/i)*i);u{"use strict";var JD=Oe(),XD=Vr(),QD=Yt();ha.exports=rp;var da=` -`,ZD=" ",ep="!";function rp(e,r){var n=e.split(da),t=n.length+1,a=1/0,i=[],u,o,s;for(n.unshift(XD(ZD,r)+ep);t--;)if(o=QD(n[t]),i[t]=o.stops,JD(n[t]).length!==0)if(o.indent)o.indent>0&&o.indent{"use strict";var tp=Oe(),np=Vr(),ga=Le(),ip=Yt(),up=ma(),ap=$r();Ca.exports=dp;var Vt="*",op="_",va="+",jt="-",Fa=".",de=" ",te=` -`,Gr=" ",Ea=")",sp="x",ye=4,cp=/\n\n(?!\s*$)/,lp=/^\[([ X\tx])][ \t]/,fp=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,Dp=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,pp=/^( {1,4}|\t)?/gm;function dp(e,r,n){for(var t=this,a=t.options.commonmark,i=t.options.pedantic,u=t.blockTokenizers,o=t.interruptList,s=0,l=r.length,c=null,f,D,h,p,d,m,g,x,F,B,b,v,y,k,E,w,A,q,T,N=!1,P,_,S,L;s=A.indent&&(L=!0),p=r.charAt(s),F=null,!L){if(p===Vt||p===va||p===jt)F=p,s++,f++;else{for(D="";s=A.indent||f>ye),x=!1,s=g;if(b=r.slice(g,m),B=g===s?b:r.slice(s,m),(F===Vt||F===op||F===jt)&&u.thematicBreak.call(t,e,b,!0))break;if(v=y,y=!x&&!tp(B).length,L&&A)A.value=A.value.concat(w,b),E=E.concat(w,b),w=[];else if(x)w.length!==0&&(N=!0,A.value.push(""),A.trail=w.concat()),A={value:[b],indent:f,trail:[]},k.push(A),E=E.concat(w,b),w=[];else if(y){if(v&&!a)break;w.push(b)}else{if(v||ap(o,u,t,[e,b,!0]))break;A.value=A.value.concat(w,b),E=E.concat(w,b),w=[]}s=m+1}for(P=e(E.join(te)).reset({type:"list",ordered:h,start:c,spread:N,children:[]}),q=t.enterList(),T=t.enterBlock(),s=-1,l=k.length;++s{"use strict";ka.exports=xp;var $t=` -`,vp=" ",xa=" ",ya="=",Fp="-",Ep=3,Cp=1,bp=2;function xp(e,r,n){for(var t=this,a=e.now(),i=r.length,u=-1,o="",s,l,c,f,D;++u=Ep){u--;break}o+=c}for(s="",l="";++u{"use strict";var yp="[a-zA-Z_:][a-zA-Z0-9:._-]*",kp="[^\"'=<>`\\u0000-\\u0020]+",wp="'[^']*'",Ap='"[^"]*"',Bp="(?:"+kp+"|"+wp+"|"+Ap+")",qp="(?:\\s+"+yp+"(?:\\s*=\\s*"+Bp+")?)",Aa="<[A-Za-z][A-Za-z0-9\\-]*"+qp+"*\\s*\\/?>",Ba="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Tp="|",Sp="<[?].*?[?]>",_p="]*>",Pp="";Gt.openCloseTag=new RegExp("^(?:"+Aa+"|"+Ba+")");Gt.tag=new RegExp("^(?:"+Aa+"|"+Ba+"|"+Tp+"|"+Sp+"|"+_p+"|"+Pp+")")});var _a=C((EF,Sa)=>{"use strict";var Lp=Ht().openCloseTag;Sa.exports=Kp;var Op=" ",Ip=" ",qa=` -`,Np="<",Rp=/^<(script|pre|style)(?=(\s|>|$))/i,zp=/<\/(script|pre|style)>/i,Mp=/^/,Yp=/^<\?/,Vp=/\?>/,jp=/^/,Gp=/^/,Ta=/^$/,Wp=new RegExp(Lp.source+"\\s*$");function Kp(e,r,n){for(var t=this,a=t.options.blocks.join("|"),i=new RegExp("^|$))","i"),u=r.length,o=0,s,l,c,f,D,h,p,d=[[Rp,zp,!0],[Mp,Up,!0],[Yp,Vp,!0],[jp,$p,!0],[Gp,Hp,!0],[i,Ta,!0],[Wp,Ta,!1]];o{"use strict";Pa.exports=Qp;var Jp=String.fromCharCode,Xp=/\s/;function Qp(e){return Xp.test(typeof e=="number"?Jp(e):e.charAt(0))}});var Wt=C((bF,La)=>{"use strict";var Zp=kr();La.exports=ed;function ed(e){return Zp(e).toLowerCase()}});var Ua=C((xF,Ma)=>{"use strict";var rd=ne(),td=Wt();Ma.exports=ad;var Oa='"',Ia="'",nd="\\",je=` -`,Hr=" ",Wr=" ",Jt="[",hr="]",id="(",ud=")",Na=":",Ra="<",za=">";function ad(e,r,n){for(var t=this,a=t.options.commonmark,i=0,u=r.length,o="",s,l,c,f,D,h,p,d;i{"use strict";var sd=ne();Va.exports=vd;var cd=" ",Kr=` -`,ld=" ",fd="-",Dd=":",pd="\\",Xt="|",dd=1,hd=2,Ya="left",md="center",gd="right";function vd(e,r,n){var t=this,a,i,u,o,s,l,c,f,D,h,p,d,m,g,x,F,B,b,v,y,k,E;if(t.options.gfm){for(a=0,F=0,l=r.length+1,c=[];ay){if(F1&&(D?(o+=f.slice(0,-1),f=f.charAt(f.length-1)):(o+=f,f="")),g=e.now(),e(o)({type:"tableCell",children:t.tokenizeInline(d,g)},s)),e(f+D),f="",d=""):(f&&(d+=f,f=""),d+=D,D===pd&&a!==l-2&&(d+=B.charAt(a+1),a++)),m=!1,a++}x||e(Kr+i)}return v}}}});var Ha=C((kF,Ga)=>{"use strict";var Fd=Oe(),Ed=Nt(),Cd=$r();Ga.exports=yd;var bd=" ",mr=` -`,xd=" ",$a=4;function yd(e,r,n){for(var t=this,a=t.options,i=a.commonmark,u=t.blockTokenizers,o=t.interruptParagraph,s=r.indexOf(mr),l=r.length,c,f,D,h,p;s=$a&&D!==mr){s=r.indexOf(mr,s+1);continue}}if(f=r.slice(s+1),Cd(o,u,t,[e,f,!0]))break;if(c=s,s=r.indexOf(mr,s+1),s!==-1&&Fd(r.slice(c,s))===""){s=c;break}}return f=r.slice(0,s),n?!0:(p=e.now(),f=Ed(f),e(f)({type:"paragraph",children:t.tokenizeInline(f,p)}))}});var Ka=C((wF,Wa)=>{"use strict";Wa.exports=kd;function kd(e,r){return e.indexOf("\\",r)}});var Za=C((AF,Qa)=>{"use strict";var wd=Ka();Qa.exports=Xa;Xa.locator=wd;var Ad=` -`,Ja="\\";function Xa(e,r,n){var t=this,a,i;if(r.charAt(0)===Ja&&(a=r.charAt(1),t.escape.indexOf(a)!==-1))return n?!0:(a===Ad?i={type:"break"}:i={type:"text",value:a},e(Ja+a)(i))}});var Qt=C((BF,eo)=>{"use strict";eo.exports=Bd;function Bd(e,r){return e.indexOf("<",r)}});var uo=C((qF,io)=>{"use strict";var ro=ne(),qd=lr(),Td=Qt();io.exports=tn;tn.locator=Td;tn.notInLink=!0;var to="<",Zt=">",no="@",en="/",rn="mailto:",Jr=rn.length;function tn(e,r,n){var t=this,a="",i=r.length,u=0,o="",s=!1,l="",c,f,D,h,p;if(r.charAt(0)===to){for(u++,a=to;u{"use strict";ao.exports=Sd;function Sd(e,r){var n=String(e),t=0,a;if(typeof r!="string")throw new Error("Expected character");for(a=n.indexOf(r);a!==-1;)t++,a=n.indexOf(r,a+r.length);return t}});var lo=C((SF,co)=>{"use strict";co.exports=_d;var so=["www.","http://","https://"];function _d(e,r){var n=-1,t,a,i;if(!this.options.gfm)return n;for(a=so.length,t=-1;++t{"use strict";var fo=oo(),Pd=lr(),Ld=Le(),nn=ze(),Od=ne(),Id=lo();ho.exports=an;an.locator=Id;an.notInLink=!0;var Nd=33,Rd=38,zd=41,Md=42,Ud=44,Yd=45,un=46,Vd=58,jd=59,$d=63,Gd=60,Do=95,Hd=126,Wd="(",po=")";function an(e,r,n){var t=this,a=t.options.gfm,i=t.inlineTokenizers,u=r.length,o=-1,s=!1,l,c,f,D,h,p,d,m,g,x,F,B,b,v;if(a){if(r.slice(0,4)==="www.")s=!0,D=4;else if(r.slice(0,7).toLowerCase()==="http://")D=7;else if(r.slice(0,8).toLowerCase()==="https://")D=8;else return;for(o=D-1,f=D,l=[];Dg;)D=h+p.lastIndexOf(po),p=r.slice(h,D),x--;if(r.charCodeAt(D-1)===jd&&(D--,nn(r.charCodeAt(D-1)))){for(m=D-2;nn(r.charCodeAt(m));)m--;r.charCodeAt(m)===Rd&&(D=m)}return F=r.slice(0,D),b=Pd(F,{nonTerminated:!1}),s&&(b="http://"+b),v=t.enterLink(),t.inlineTokenizers={text:i.text},B=t.tokenizeInline(F,e.now()),t.inlineTokenizers=i,v(),e(F)({type:"link",title:null,url:b,children:B})}}}});var Eo=C((PF,Fo)=>{"use strict";var Kd=Le(),Jd=ze(),Xd=43,Qd=45,Zd=46,eh=95;Fo.exports=vo;function vo(e,r){var n=this,t,a;if(!this.options.gfm||(t=e.indexOf("@",r),t===-1))return-1;if(a=t,a===r||!go(e.charCodeAt(a-1)))return vo.call(n,e,t+1);for(;a>r&&go(e.charCodeAt(a-1));)a--;return a}function go(e){return Kd(e)||Jd(e)||e===Xd||e===Qd||e===Zd||e===eh}});var yo=C((LF,xo)=>{"use strict";var rh=lr(),Co=Le(),bo=ze(),th=Eo();xo.exports=cn;cn.locator=th;cn.notInLink=!0;var nh=43,on=45,Xr=46,ih=64,sn=95;function cn(e,r,n){var t=this,a=t.options.gfm,i=t.inlineTokenizers,u=0,o=r.length,s=-1,l,c,f,D;if(a){for(l=r.charCodeAt(u);Co(l)||bo(l)||l===nh||l===on||l===Xr||l===sn;)l=r.charCodeAt(++u);if(u!==0&&l===ih){for(u++;u{"use strict";var uh=ze(),ah=Qt(),oh=Ht().tag;wo.exports=ko;ko.locator=ah;var sh="<",ch="?",lh="!",fh="/",Dh=/^/i;function ko(e,r,n){var t=this,a=r.length,i,u;if(!(r.charAt(0)!==sh||a<3)&&(i=r.charAt(1),!(!uh(i)&&i!==ch&&i!==lh&&i!==fh)&&(u=r.match(oh),!!u)))return n?!0:(u=u[0],!t.inLink&&Dh.test(u)?t.inLink=!0:t.inLink&&ph.test(u)&&(t.inLink=!1),e(u)({type:"html",value:u}))}});var ln=C((IF,Bo)=>{"use strict";Bo.exports=dh;function dh(e,r){var n=e.indexOf("[",r),t=e.indexOf("![",r);return t===-1||n{"use strict";var gr=ne(),hh=ln();Lo.exports=Po;Po.locator=hh;var mh=` -`,gh="!",qo='"',To="'",$e="(",vr=")",fn="<",Dn=">",So="[",Fr="\\",vh="]",_o="`";function Po(e,r,n){var t=this,a="",i=0,u=r.charAt(0),o=t.options.pedantic,s=t.options.commonmark,l=t.options.gfm,c,f,D,h,p,d,m,g,x,F,B,b,v,y,k,E,w,A;if(u===gh&&(g=!0,a=u,u=r.charAt(++i)),u===So&&!(!g&&t.inLink)){for(a+=u,y="",i++,B=r.length,E=e.now(),v=0,E.column+=i,E.offset+=i;i=D&&(D=0):D=f}else if(u===Fr)i++,d+=r.charAt(i);else if((!D||l)&&u===So)v++;else if((!D||l)&&u===vh)if(v)v--;else{if(r.charAt(i+1)!==$e)return;d+=$e,c=!0,i++;break}y+=d,d="",i++}if(c){for(x=y,a+=y+d,i++;i{"use strict";var Fh=ne(),Eh=ln(),Ch=Wt();No.exports=Io;Io.locator=Eh;var pn="link",bh="image",xh="shortcut",yh="collapsed",dn="full",kh="!",Qr="[",Zr="\\",et="]";function Io(e,r,n){var t=this,a=t.options.commonmark,i=r.charAt(0),u=0,o=r.length,s="",l="",c=pn,f=xh,D,h,p,d,m,g,x,F;if(i===kh&&(c=bh,l=i,i=r.charAt(++u)),i===Qr){for(u++,l+=i,g="",F=0;u{"use strict";zo.exports=wh;function wh(e,r){var n=e.indexOf("**",r),t=e.indexOf("__",r);return t===-1?n:n===-1||t{"use strict";var Ah=Oe(),Uo=ne(),Bh=Mo();Vo.exports=Yo;Yo.locator=Bh;var qh="\\",Th="*",Sh="_";function Yo(e,r,n){var t=this,a=0,i=r.charAt(a),u,o,s,l,c,f,D;if(!(i!==Th&&i!==Sh||r.charAt(++a)!==i)&&(o=t.options.pedantic,s=i,c=s+s,f=r.length,a++,l="",i="",!(o&&Uo(r.charAt(a)))))for(;a{"use strict";$o.exports=Lh;var _h=String.fromCharCode,Ph=/\w/;function Lh(e){return Ph.test(typeof e=="number"?_h(e):e.charAt(0))}});var Wo=C((YF,Ho)=>{"use strict";Ho.exports=Oh;function Oh(e,r){var n=e.indexOf("*",r),t=e.indexOf("_",r);return t===-1?n:n===-1||t{"use strict";var Ih=Oe(),Nh=Go(),Ko=ne(),Rh=Wo();Qo.exports=Xo;Xo.locator=Rh;var zh="*",Jo="_",Mh="\\";function Xo(e,r,n){var t=this,a=0,i=r.charAt(a),u,o,s,l,c,f,D;if(!(i!==zh&&i!==Jo)&&(o=t.options.pedantic,c=i,s=i,f=r.length,a++,l="",i="",!(o&&Ko(r.charAt(a)))))for(;a{"use strict";es.exports=Uh;function Uh(e,r){return e.indexOf("~~",r)}});var as=C(($F,us)=>{"use strict";var ts=ne(),Yh=rs();us.exports=is;is.locator=Yh;var rt="~",ns="~~";function is(e,r,n){var t=this,a="",i="",u="",o="",s,l,c;if(!(!t.options.gfm||r.charAt(0)!==rt||r.charAt(1)!==rt||ts(r.charAt(2))))for(s=1,l=r.length,c=e.now(),c.column+=2,c.offset+=2;++s{"use strict";os.exports=Vh;function Vh(e,r){return e.indexOf("`",r)}});var fs=C((HF,ls)=>{"use strict";var jh=ss();ls.exports=cs;cs.locator=jh;var hn=10,mn=32,gn=96;function cs(e,r,n){for(var t=r.length,a=0,i,u,o,s,l,c;a2&&(s===mn||s===hn)&&(l===mn||l===hn)){for(a++,t--;a{"use strict";Ds.exports=$h;function $h(e,r){for(var n=e.indexOf(` -`,r);n>r&&e.charAt(n-1)===" ";)n--;return n}});var ms=C((KF,hs)=>{"use strict";var Gh=ps();hs.exports=ds;ds.locator=Gh;var Hh=" ",Wh=` -`,Kh=2;function ds(e,r,n){for(var t=r.length,a=-1,i="",u;++a{"use strict";gs.exports=Jh;function Jh(e,r,n){var t=this,a,i,u,o,s,l,c,f,D,h;if(n)return!0;for(a=t.inlineMethods,o=a.length,i=t.inlineTokenizers,u=-1,D=r.length;++u{"use strict";var Xh=Pe(),tt=Ri(),Qh=Mi(),Zh=Yi(),em=mu(),vn=Fu();Cs.exports=Fs;function Fs(e,r){this.file=r,this.offset={},this.options=Xh(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=Qh(r).toOffset,this.unescape=Zh(this,"escape"),this.decode=em(this)}var z=Fs.prototype;z.setOptions=Au();z.parse=Vu();z.options=Lt();z.exitStart=tt("atStart",!0);z.enterList=tt("inList",!1);z.enterLink=tt("inLink",!1);z.enterBlock=tt("inBlock",!1);z.interruptParagraph=[["thematicBreak"],["list"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}]];z.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}]];z.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}]];z.blockTokenizers={blankLine:$u(),indentedCode:Ju(),fencedCode:Zu(),blockquote:ua(),atxHeading:sa(),thematicBreak:fa(),list:ba(),setextHeading:wa(),html:_a(),definition:Ua(),table:ja(),paragraph:Ha()};z.inlineTokenizers={escape:Za(),autoLink:uo(),url:mo(),email:yo(),html:Ao(),link:Oo(),reference:Ro(),strong:jo(),emphasis:Zo(),deletion:as(),code:fs(),break:ms(),text:vs()};z.blockMethods=Es(z.blockTokenizers);z.inlineMethods=Es(z.inlineTokenizers);z.tokenizeBlock=vn("block");z.tokenizeInline=vn("inline");z.tokenizeFactory=vn;function Es(e){var r=[],n;for(n in e)r.push(n);return r}});var ws=C((QF,ks)=>{"use strict";var rm=Ii(),tm=Pe(),xs=bs();ks.exports=ys;ys.Parser=xs;function ys(e){var r=this.data("settings"),n=rm(xs);n.prototype.options=tm(n.prototype.options,r,e),this.Parser=n}});var Bs=C((ZF,As)=>{"use strict";As.exports=nm;function nm(e){if(e)throw e}});var Fn=C((eE,qs)=>{qs.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var Rs=C((rE,Ns)=>{"use strict";var nt=Object.prototype.hasOwnProperty,Is=Object.prototype.toString,Ts=Object.defineProperty,Ss=Object.getOwnPropertyDescriptor,_s=function(r){return typeof Array.isArray=="function"?Array.isArray(r):Is.call(r)==="[object Array]"},Ps=function(r){if(!r||Is.call(r)!=="[object Object]")return!1;var n=nt.call(r,"constructor"),t=r.constructor&&r.constructor.prototype&&nt.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!n&&!t)return!1;var a;for(a in r);return typeof a>"u"||nt.call(r,a)},Ls=function(r,n){Ts&&n.name==="__proto__"?Ts(r,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):r[n.name]=n.newValue},Os=function(r,n){if(n==="__proto__")if(nt.call(r,n)){if(Ss)return Ss(r,n).value}else return;return r[n]};Ns.exports=function e(){var r,n,t,a,i,u,o=arguments[0],s=1,l=arguments.length,c=!1;for(typeof o=="boolean"&&(c=o,o=arguments[1]||{},s=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});s{"use strict";zs.exports=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}});var Ys=C((nE,Us)=>{"use strict";var im=[].slice;Us.exports=um;function um(e,r){var n;return t;function t(){var u=im.call(arguments,0),o=e.length>u.length,s;o&&u.push(a);try{s=e.apply(null,u)}catch(l){if(o&&n)throw l;return a(l)}o||(s&&typeof s.then=="function"?s.then(i,a):s instanceof Error?a(s):i(s))}function a(){n||(n=!0,r.apply(null,arguments))}function i(u){a(null,u)}}});var Hs=C((iE,Gs)=>{"use strict";var js=Ys();Gs.exports=$s;$s.wrap=js;var Vs=[].slice;function $s(){var e=[],r={};return r.run=n,r.use=t,r;function n(){var a=-1,i=Vs.call(arguments,0,-1),u=arguments[arguments.length-1];if(typeof u!="function")throw new Error("Expected function as last argument, not "+u);o.apply(null,[null].concat(i));function o(s){var l=e[++a],c=Vs.call(arguments,0),f=c.slice(1),D=i.length,h=-1;if(s){u(s);return}for(;++h{"use strict";var Ge={}.hasOwnProperty;Js.exports=am;function am(e){return!e||typeof e!="object"?"":Ge.call(e,"position")||Ge.call(e,"type")?Ws(e.position):Ge.call(e,"start")||Ge.call(e,"end")?Ws(e):Ge.call(e,"line")||Ge.call(e,"column")?En(e):""}function En(e){return(!e||typeof e!="object")&&(e={}),Ks(e.line)+":"+Ks(e.column)}function Ws(e){return(!e||typeof e!="object")&&(e={}),En(e.start)+"-"+En(e.end)}function Ks(e){return e&&typeof e=="number"?e:1}});var ec=C((aE,Zs)=>{"use strict";var om=Xs();Zs.exports=Cn;function Qs(){}Qs.prototype=Error.prototype;Cn.prototype=new Qs;var ke=Cn.prototype;ke.file="";ke.name="";ke.reason="";ke.message="";ke.stack="";ke.fatal=null;ke.column=null;ke.line=null;function Cn(e,r,n){var t,a,i;typeof r=="string"&&(n=r,r=null),t=sm(n),a=om(r)||"1:1",i={start:{line:null,column:null},end:{line:null,column:null}},r&&r.position&&(r=r.position),r&&(r.start?(i=r,r=r.start):i.start=r),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=a,this.reason=e,this.line=r?r.line:null,this.column=r?r.column:null,this.location=i,this.source=t[0],this.ruleId=t[1]}function sm(e){var r=[null,null],n;return typeof e=="string"&&(n=e.indexOf(":"),n===-1?r[1]=e:(r[0]=e.slice(0,n),r[1]=e.slice(n+1))),r}});var rc=C(He=>{"use strict";He.basename=cm;He.dirname=lm;He.extname=fm;He.join=Dm;He.sep="/";function cm(e,r){var n=0,t=-1,a,i,u,o;if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');if(Er(e),a=e.length,r===void 0||!r.length||r.length>e.length){for(;a--;)if(e.charCodeAt(a)===47){if(u){n=a+1;break}}else t<0&&(u=!0,t=a+1);return t<0?"":e.slice(n,t)}if(r===e)return"";for(i=-1,o=r.length-1;a--;)if(e.charCodeAt(a)===47){if(u){n=a+1;break}}else i<0&&(u=!0,i=a+1),o>-1&&(e.charCodeAt(a)===r.charCodeAt(o--)?o<0&&(t=a):(o=-1,t=i));return n===t?t=i:t<0&&(t=e.length),e.slice(n,t)}function lm(e){var r,n,t;if(Er(e),!e.length)return".";for(r=-1,t=e.length;--t;)if(e.charCodeAt(t)===47){if(n){r=t;break}}else n||(n=!0);return r<0?e.charCodeAt(0)===47?"/":".":r===1&&e.charCodeAt(0)===47?"//":e.slice(0,r)}function fm(e){var r=-1,n=0,t=-1,a=0,i,u,o;for(Er(e),o=e.length;o--;){if(u=e.charCodeAt(o),u===47){if(i){n=o+1;break}continue}t<0&&(i=!0,t=o+1),u===46?r<0?r=o:a!==1&&(a=1):r>-1&&(a=-1)}return r<0||t<0||a===0||a===1&&r===t-1&&r===n+1?"":e.slice(r,t)}function Dm(){for(var e=-1,r;++e2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",t=0):(n=n.slice(0,s),t=n.length-1-n.lastIndexOf("/")),a=u,i=0;continue}}else if(n.length){n="",t=0,a=u,i=0;continue}}r&&(n=n.length?n+"/..":"..",t=2)}else n.length?n+="/"+e.slice(a+1,u):n=e.slice(a+1,u),t=u-a-1;a=u,i=0}else o===46&&i>-1?i++:i=-1}return n}function Er(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}});var nc=C(tc=>{"use strict";tc.cwd=hm;function hm(){return"/"}});var ac=C((cE,uc)=>{"use strict";var ie=rc(),mm=nc(),gm=Fn();uc.exports=he;var vm={}.hasOwnProperty,bn=["history","path","basename","stem","extname","dirname"];he.prototype.toString=qm;Object.defineProperty(he.prototype,"path",{get:Fm,set:Em});Object.defineProperty(he.prototype,"dirname",{get:Cm,set:bm});Object.defineProperty(he.prototype,"basename",{get:xm,set:ym});Object.defineProperty(he.prototype,"extname",{get:km,set:wm});Object.defineProperty(he.prototype,"stem",{get:Am,set:Bm});function he(e){var r,n;if(!e)e={};else if(typeof e=="string"||gm(e))e={contents:e};else if("message"in e&&"messages"in e)return e;if(!(this instanceof he))return new he(e);for(this.data={},this.messages=[],this.history=[],this.cwd=mm.cwd(),n=-1;++n-1)throw new Error("`extname` cannot contain multiple dots")}this.path=ie.join(this.dirname,this.stem+(e||""))}function Am(){return typeof this.path=="string"?ie.basename(this.path,this.extname):void 0}function Bm(e){yn(e,"stem"),xn(e,"stem"),this.path=ie.join(this.dirname||"",e+(this.extname||""))}function qm(e){return(this.contents||"").toString(e)}function xn(e,r){if(e&&e.indexOf(ie.sep)>-1)throw new Error("`"+r+"` cannot be a path: did not expect `"+ie.sep+"`")}function yn(e,r){if(!e)throw new Error("`"+r+"` cannot be empty")}function ic(e,r){if(!e)throw new Error("Setting `"+r+"` requires `path` to be set too")}});var sc=C((lE,oc)=>{"use strict";var Tm=ec(),it=ac();oc.exports=it;it.prototype.message=Sm;it.prototype.info=Pm;it.prototype.fail=_m;function Sm(e,r,n){var t=new Tm(e,r,n);return this.path&&(t.name=this.path+":"+t.name,t.file=this.path),t.fatal=!1,this.messages.push(t),t}function _m(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}function Pm(){var e=this.message.apply(this,arguments);return e.fatal=null,e}});var lc=C((fE,cc)=>{"use strict";cc.exports=sc()});var Fc=C((DE,vc)=>{"use strict";var fc=Bs(),Lm=Fn(),ut=Rs(),Dc=Ms(),mc=Hs(),Cr=lc();vc.exports=gc().freeze();var Om=[].slice,Im={}.hasOwnProperty,Nm=mc().use(Rm).use(zm).use(Mm);function Rm(e,r){r.tree=e.parse(r.file)}function zm(e,r,n){e.run(r.tree,r.file,t);function t(a,i,u){a?n(a):(r.tree=i,r.file=u,n())}}function Mm(e,r){var n=e.stringify(r.tree,r.file);n==null||(typeof n=="string"||Lm(n)?("value"in r.file&&(r.file.value=n),r.file.contents=n):r.file.result=n)}function gc(){var e=[],r=mc(),n={},t=-1,a;return i.data=o,i.freeze=u,i.attachers=e,i.use=s,i.parse=c,i.stringify=h,i.run=f,i.runSync=D,i.process=p,i.processSync=d,i;function i(){for(var m=gc(),g=-1;++g{Bn.isRemarkParser=Ym;Bn.isRemarkCompiler=Vm;function Ym(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function Vm(e){return!!(e&&e.prototype&&e.prototype.visitors)}});var wc=C((dE,kc)=>{var Ec=qn();kc.exports=Hm;var Cc=9,bc=32,at=36,jm=48,$m=57,xc=92,Gm=["math","math-inline"],yc="math-display";function Hm(e){let r=this.Parser,n=this.Compiler;Ec.isRemarkParser(r)&&Wm(r,e),Ec.isRemarkCompiler(n)&&Km(n,e)}function Wm(e,r){let n=e.prototype,t=n.inlineMethods;i.locator=a,n.inlineTokenizers.math=i,t.splice(t.indexOf("text"),0,"math");function a(u,o){return u.indexOf("$",o)}function i(u,o,s){let l=o.length,c=!1,f=!1,D=0,h,p,d,m,g,x,F;if(o.charCodeAt(D)===xc&&(f=!0,D++),o.charCodeAt(D)===at){if(D++,f)return s?!0:u(o.slice(0,D))({type:"text",value:"$"});if(o.charCodeAt(D)===at&&(c=!0,D++),d=o.charCodeAt(D),!(d===bc||d===Cc)){for(m=D;D$m)&&(!c||d===at)){g=D-1,D++,c&&D++,x=D;break}}else p===xc&&(D++,d=o.charCodeAt(D+1));D++}if(x!==void 0)return s?!0:(F=o.slice(m,g+1),u(o.slice(0,x))({type:"inlineMath",value:F,data:{hName:"span",hProperties:{className:Gm.concat(c&&r.inlineMathDouble?[yc]:[])},hChildren:[{type:"text",value:F}]}}))}}}}function Km(e){let r=e.prototype;r.visitors.inlineMath=n;function n(t){let a="$";return(t.data&&t.data.hProperties&&t.data.hProperties.className||[]).includes(yc)&&(a="$$"),a+t.value+a}}});var Sc=C((hE,Tc)=>{var Ac=qn();Tc.exports=Zm;var Bc=10,br=32,Tn=36,qc=` -`,Jm="$",Xm=2,Qm=["math","math-display"];function Zm(){let e=this.Parser,r=this.Compiler;Ac.isRemarkParser(e)&&eg(e),Ac.isRemarkCompiler(r)&&rg(r)}function eg(e){let r=e.prototype,n=r.blockMethods,t=r.interruptParagraph,a=r.interruptList,i=r.interruptBlockquote;r.blockTokenizers.math=u,n.splice(n.indexOf("fencedCode")+1,0,"math"),t.splice(t.indexOf("fencedCode")+1,0,["math"]),a.splice(a.indexOf("fencedCode")+1,0,["math"]),i.splice(i.indexOf("fencedCode")+1,0,["math"]);function u(o,s,l){var c=s.length,f=0;let D,h,p,d,m,g,x,F,B,b,v;for(;fb&&s.charCodeAt(d-1)===br;)d--;for(;d>b&&s.charCodeAt(d-1)===Tn;)B++,d--;for(g<=B&&s.indexOf(Jm,b)===d&&(F=!0,v=d);b<=v&&b-fb&&s.charCodeAt(v-1)===br;)v--;if((!F||b!==v)&&h.push(s.slice(b,v)),F)break;f=p+1,p=s.indexOf(qc,f+1),p=p===-1?c:p}return h=h.join(` +`,A+1);w===-1?c+=E.length:c=E.length-w,l in i&&(w!==-1?c+=i[l]:c<=i[l]&&(c=i[l]+1))}function x(){var E=[],w=l+1;return function(){for(var A=l+1;w{"use strict";Eu.exports=Rr;var Tt=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],St=Tt.concat(["~","|"]),Fu=St.concat([` +`,'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);Rr.default=Tt;Rr.gfm=St;Rr.commonmark=Fu;function Rr(e){var r=e||{};return r.commonmark?Fu:r.gfm?St:Tt}});var xu=C((Xv,bu)=>{"use strict";bu.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]});var Pt=C((Qv,yu)=>{"use strict";yu.exports={position:!0,gfm:!0,commonmark:!1,pedantic:!1,blocks:xu()}});var wu=C((Zv,ku)=>{"use strict";var Jf=_e(),Xf=Cu(),Qf=Pt();ku.exports=Zf;function Zf(e){var r=this,n=r.options,t,a;if(e==null)e={};else if(typeof e=="object")e=Jf(e);else throw new Error("Invalid value `"+e+"` for setting `options`");for(t in Qf){if(a=e[t],a==null&&(a=n[t]),t!=="blocks"&&typeof a!="boolean"||t==="blocks"&&typeof a!="object")throw new Error("Invalid value `"+a+"` for setting `options."+t+"`");e[t]=a}return r.options=e,r.escape=Xf(e),r}});var qu=C((eF,Bu)=>{"use strict";Bu.exports=Au;function Au(e){if(e==null)return nD;if(typeof e=="string")return tD(e);if(typeof e=="object")return"length"in e?rD(e):eD(e);if(typeof e=="function")return e;throw new Error("Expected function, string, or object as test")}function eD(e){return r;function r(n){var t;for(t in e)if(n[t]!==e[t])return!1;return!0}}function rD(e){for(var r=[],n=-1;++n{Tu.exports=iD;function iD(e){return e}});var Ou=C((tF,Lu)=>{"use strict";Lu.exports=zr;var uD=qu(),aD=Su(),Pu=!0,_u="skip",_t=!1;zr.CONTINUE=Pu;zr.SKIP=_u;zr.EXIT=_t;function zr(e,r,n,t){var a,i;typeof r=="function"&&typeof n!="function"&&(t=n,n=r,r=null),i=uD(r),a=t?-1:1,u(e,null,[])();function u(o,s,l){var c=typeof o=="object"&&o!==null?o:{},f;return typeof c.type=="string"&&(f=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0,D.displayName="node ("+aD(c.type+(f?"<"+f+">":""))+")"),D;function D(){var h=l.concat(o),p=[],d,m;if((!r||i(o,s,l[l.length-1]||null))&&(p=oD(n(o,l)),p[0]===_t))return p;if(o.children&&p[0]!==_u)for(m=(t?o.children.length:-1)+a;m>-1&&m{"use strict";Iu.exports=Ur;var Mr=Ou(),sD=Mr.CONTINUE,cD=Mr.SKIP,lD=Mr.EXIT;Ur.CONTINUE=sD;Ur.SKIP=cD;Ur.EXIT=lD;function Ur(e,r,n,t){typeof r=="function"&&typeof n!="function"&&(t=n,n=r,r=null),Mr(e,r,a,t);function a(i,u){var o=u[u.length-1],s=o?o.children.indexOf(i):null;return n(i,s,o)}}});var zu=C((iF,Ru)=>{"use strict";var fD=Nu();Ru.exports=DD;function DD(e,r){return fD(e,r?pD:dD),e}function pD(e){delete e.position}function dD(e){e.position=void 0}});var Yu=C((uF,Uu)=>{"use strict";var Mu=_e(),hD=zu();Uu.exports=vD;var mD=` +`,gD=/\r\n|\r/g;function vD(){var e=this,r=String(e.file),n={line:1,column:1,offset:0},t=Mu(n),a;return r=r.replace(gD,mD),r.charCodeAt(0)===65279&&(r=r.slice(1),t.column++,t.offset++),a={type:"root",children:e.tokenizeBlock(r,t),position:{start:n,end:e.eof||Mu(n)}},e.options.position||hD(a,!0),a}});var ju=C((aF,Vu)=>{"use strict";var FD=/^[ \t]*(\n|$)/;Vu.exports=ED;function ED(e,r,n){for(var t,a="",i=0,u=r.length;i{"use strict";var pe="",Lt;$u.exports=CD;function CD(e,r){if(typeof e!="string")throw new TypeError("expected a string");if(r===1)return e;if(r===2)return e+e;var n=e.length*r;if(Lt!==e||typeof Lt>"u")Lt=e,pe="";else if(pe.length>=n)return pe.substr(0,n);for(;n>pe.length&&r>1;)r&1&&(pe+=e),r>>=1,e+=e;return pe+=e,pe=pe.substr(0,n),pe}});var Ot=C((sF,Gu)=>{"use strict";Gu.exports=bD;function bD(e){return String(e).replace(/\n+$/,"")}});var Ku=C((cF,Wu)=>{"use strict";var xD=Yr(),yD=Ot();Wu.exports=AD;var It=` +`,Hu=" ",Nt=" ",kD=4,wD=xD(Nt,kD);function AD(e,r,n){for(var t=-1,a=r.length,i="",u="",o="",s="",l,c,f;++t{"use strict";Xu.exports=SD;var Vr=` +`,fr=" ",Ye=" ",BD="~",Ju="`",qD=3,TD=4;function SD(e,r,n){var t=this,a=t.options.gfm,i=r.length+1,u=0,o="",s,l,c,f,D,h,p,d,m,g,x,F,B;if(a){for(;u=TD)){for(p="";u{Ve=Zu.exports=PD;function PD(e){return e.trim?e.trim():Ve.right(Ve.left(e))}Ve.left=function(e){return e.trimLeft?e.trimLeft():e.replace(/^\s\s*/,"")};Ve.right=function(e){if(e.trimRight)return e.trimRight();for(var r=/\s/,n=e.length;r.test(e.charAt(--n)););return e.slice(0,n+1)}});var jr=C((fF,ea)=>{"use strict";ea.exports=_D;function _D(e,r,n,t){for(var a=e.length,i=-1,u,o;++i{"use strict";var LD=Oe(),OD=jr();na.exports=ID;var Rt=` +`,ra=" ",zt=" ",ta=">";function ID(e,r,n){for(var t=this,a=t.offset,i=t.blockTokenizers,u=t.interruptBlockquote,o=e.now(),s=o.line,l=r.length,c=[],f=[],D=[],h,p=0,d,m,g,x,F,B,b,v;p{"use strict";aa.exports=RD;var ua=` +`,Dr=" ",pr=" ",dr="#",ND=6;function RD(e,r,n){for(var t=this,a=t.options.pedantic,i=r.length+1,u=-1,o=e.now(),s="",l="",c,f,D;++uND)&&!(!D||!a&&r.charAt(u+1)===dr)){for(i=r.length+1,f="";++u{"use strict";ca.exports=$D;var zD=" ",MD=` +`,sa=" ",UD="*",YD="-",VD="_",jD=3;function $D(e,r,n){for(var t=-1,a=r.length+1,i="",u,o,s,l;++t=jD&&(!u||u===MD)?(i+=l,n?!0:e(i)({type:"thematicBreak"})):void 0}});var Mt=C((hF,Da)=>{"use strict";Da.exports=KD;var fa=" ",GD=" ",HD=1,WD=4;function KD(e){for(var r=0,n=0,t=e.charAt(r),a={},i,u=0;t===fa||t===GD;){for(i=t===fa?WD:HD,n+=i,i>1&&(n=Math.floor(n/i)*i);u{"use strict";var JD=Oe(),XD=Yr(),QD=Mt();da.exports=rp;var pa=` +`,ZD=" ",ep="!";function rp(e,r){var n=e.split(pa),t=n.length+1,a=1/0,i=[],u,o,s;for(n.unshift(XD(ZD,r)+ep);t--;)if(o=QD(n[t]),i[t]=o.stops,JD(n[t]).length!==0)if(o.indent)o.indent>0&&o.indent{"use strict";var tp=Oe(),np=Yr(),ma=Le(),ip=Mt(),up=ha(),ap=jr();Ea.exports=dp;var Ut="*",op="_",ga="+",Yt="-",va=".",de=" ",te=` +`,$r=" ",Fa=")",sp="x",ye=4,cp=/\n\n(?!\s*$)/,lp=/^\[([ X\tx])][ \t]/,fp=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,Dp=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,pp=/^( {1,4}|\t)?/gm;function dp(e,r,n){for(var t=this,a=t.options.commonmark,i=t.options.pedantic,u=t.blockTokenizers,o=t.interruptList,s=0,l=r.length,c=null,f,D,h,p,d,m,g,x,F,B,b,v,y,k,E,w,A,q,T,N=!1,_,P,S,L;s=A.indent&&(L=!0),p=r.charAt(s),F=null,!L){if(p===Ut||p===ga||p===Yt)F=p,s++,f++;else{for(D="";s=A.indent||f>ye),x=!1,s=g;if(b=r.slice(g,m),B=g===s?b:r.slice(s,m),(F===Ut||F===op||F===Yt)&&u.thematicBreak.call(t,e,b,!0))break;if(v=y,y=!x&&!tp(B).length,L&&A)A.value=A.value.concat(w,b),E=E.concat(w,b),w=[];else if(x)w.length!==0&&(N=!0,A.value.push(""),A.trail=w.concat()),A={value:[b],indent:f,trail:[]},k.push(A),E=E.concat(w,b),w=[];else if(y){if(v&&!a)break;w.push(b)}else{if(v||ap(o,u,t,[e,b,!0]))break;A.value=A.value.concat(w,b),E=E.concat(w,b),w=[]}s=m+1}for(_=e(E.join(te)).reset({type:"list",ordered:h,start:c,spread:N,children:[]}),q=t.enterList(),T=t.enterBlock(),s=-1,l=k.length;++s{"use strict";ya.exports=xp;var Vt=` +`,vp=" ",ba=" ",xa="=",Fp="-",Ep=3,Cp=1,bp=2;function xp(e,r,n){for(var t=this,a=e.now(),i=r.length,u=-1,o="",s,l,c,f,D;++u=Ep){u--;break}o+=c}for(s="",l="";++u{"use strict";var yp="[a-zA-Z_:][a-zA-Z0-9:._-]*",kp="[^\"'=<>`\\u0000-\\u0020]+",wp="'[^']*'",Ap='"[^"]*"',Bp="(?:"+kp+"|"+wp+"|"+Ap+")",qp="(?:\\s+"+yp+"(?:\\s*=\\s*"+Bp+")?)",wa="<[A-Za-z][A-Za-z0-9\\-]*"+qp+"*\\s*\\/?>",Aa="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Tp="|",Sp="<[?].*?[?]>",Pp="]*>",_p="";jt.openCloseTag=new RegExp("^(?:"+wa+"|"+Aa+")");jt.tag=new RegExp("^(?:"+wa+"|"+Aa+"|"+Tp+"|"+Sp+"|"+Pp+"|"+_p+")")});var Sa=C((EF,Ta)=>{"use strict";var Lp=$t().openCloseTag;Ta.exports=Kp;var Op=" ",Ip=" ",Ba=` +`,Np="<",Rp=/^<(script|pre|style)(?=(\s|>|$))/i,zp=/<\/(script|pre|style)>/i,Mp=/^/,Yp=/^<\?/,Vp=/\?>/,jp=/^/,Gp=/^/,qa=/^$/,Wp=new RegExp(Lp.source+"\\s*$");function Kp(e,r,n){for(var t=this,a=t.options.blocks.join("|"),i=new RegExp("^|$))","i"),u=r.length,o=0,s,l,c,f,D,h,p,d=[[Rp,zp,!0],[Mp,Up,!0],[Yp,Vp,!0],[jp,$p,!0],[Gp,Hp,!0],[i,qa,!0],[Wp,qa,!1]];o{"use strict";Pa.exports=Qp;var Jp=String.fromCharCode,Xp=/\s/;function Qp(e){return Xp.test(typeof e=="number"?Jp(e):e.charAt(0))}});var Gt=C((bF,_a)=>{"use strict";var Zp=kr();_a.exports=ed;function ed(e){return Zp(e).toLowerCase()}});var Ma=C((xF,za)=>{"use strict";var rd=ne(),td=Gt();za.exports=ad;var La='"',Oa="'",nd="\\",je=` +`,Gr=" ",Hr=" ",Wt="[",hr="]",id="(",ud=")",Ia=":",Na="<",Ra=">";function ad(e,r,n){for(var t=this,a=t.options.commonmark,i=0,u=r.length,o="",s,l,c,f,D,h,p,d;i{"use strict";var sd=ne();Ya.exports=vd;var cd=" ",Wr=` +`,ld=" ",fd="-",Dd=":",pd="\\",Kt="|",dd=1,hd=2,Ua="left",md="center",gd="right";function vd(e,r,n){var t=this,a,i,u,o,s,l,c,f,D,h,p,d,m,g,x,F,B,b,v,y,k,E;if(t.options.gfm){for(a=0,F=0,l=r.length+1,c=[];ay){if(F1&&(D?(o+=f.slice(0,-1),f=f.charAt(f.length-1)):(o+=f,f="")),g=e.now(),e(o)({type:"tableCell",children:t.tokenizeInline(d,g)},s)),e(f+D),f="",d=""):(f&&(d+=f,f=""),d+=D,D===pd&&a!==l-2&&(d+=B.charAt(a+1),a++)),m=!1,a++}x||e(Wr+i)}return v}}}});var Ga=C((kF,$a)=>{"use strict";var Fd=Oe(),Ed=Ot(),Cd=jr();$a.exports=yd;var bd=" ",mr=` +`,xd=" ",ja=4;function yd(e,r,n){for(var t=this,a=t.options,i=a.commonmark,u=t.blockTokenizers,o=t.interruptParagraph,s=r.indexOf(mr),l=r.length,c,f,D,h,p;s=ja&&D!==mr){s=r.indexOf(mr,s+1);continue}}if(f=r.slice(s+1),Cd(o,u,t,[e,f,!0]))break;if(c=s,s=r.indexOf(mr,s+1),s!==-1&&Fd(r.slice(c,s))===""){s=c;break}}return f=r.slice(0,s),n?!0:(p=e.now(),f=Ed(f),e(f)({type:"paragraph",children:t.tokenizeInline(f,p)}))}});var Wa=C((wF,Ha)=>{"use strict";Ha.exports=kd;function kd(e,r){return e.indexOf("\\",r)}});var Qa=C((AF,Xa)=>{"use strict";var wd=Wa();Xa.exports=Ja;Ja.locator=wd;var Ad=` +`,Ka="\\";function Ja(e,r,n){var t=this,a,i;if(r.charAt(0)===Ka&&(a=r.charAt(1),t.escape.indexOf(a)!==-1))return n?!0:(a===Ad?i={type:"break"}:i={type:"text",value:a},e(Ka+a)(i))}});var Jt=C((BF,Za)=>{"use strict";Za.exports=Bd;function Bd(e,r){return e.indexOf("<",r)}});var io=C((qF,no)=>{"use strict";var eo=ne(),qd=lr(),Td=Jt();no.exports=en;en.locator=Td;en.notInLink=!0;var ro="<",Xt=">",to="@",Qt="/",Zt="mailto:",Kr=Zt.length;function en(e,r,n){var t=this,a="",i=r.length,u=0,o="",s=!1,l="",c,f,D,h,p;if(r.charAt(0)===ro){for(u++,a=ro;u{"use strict";uo.exports=Sd;function Sd(e,r){var n=String(e),t=0,a;if(typeof r!="string")throw new Error("Expected character");for(a=n.indexOf(r);a!==-1;)t++,a=n.indexOf(r,a+r.length);return t}});var co=C((SF,so)=>{"use strict";so.exports=Pd;var oo=["www.","http://","https://"];function Pd(e,r){var n=-1,t,a,i;if(!this.options.gfm)return n;for(a=oo.length,t=-1;++t{"use strict";var lo=ao(),_d=lr(),Ld=Le(),rn=ze(),Od=ne(),Id=co();po.exports=nn;nn.locator=Id;nn.notInLink=!0;var Nd=33,Rd=38,zd=41,Md=42,Ud=44,Yd=45,tn=46,Vd=58,jd=59,$d=63,Gd=60,fo=95,Hd=126,Wd="(",Do=")";function nn(e,r,n){var t=this,a=t.options.gfm,i=t.inlineTokenizers,u=r.length,o=-1,s=!1,l,c,f,D,h,p,d,m,g,x,F,B,b,v;if(a){if(r.slice(0,4)==="www.")s=!0,D=4;else if(r.slice(0,7).toLowerCase()==="http://")D=7;else if(r.slice(0,8).toLowerCase()==="https://")D=8;else return;for(o=D-1,f=D,l=[];Dg;)D=h+p.lastIndexOf(Do),p=r.slice(h,D),x--;if(r.charCodeAt(D-1)===jd&&(D--,rn(r.charCodeAt(D-1)))){for(m=D-2;rn(r.charCodeAt(m));)m--;r.charCodeAt(m)===Rd&&(D=m)}return F=r.slice(0,D),b=_d(F,{nonTerminated:!1}),s&&(b="http://"+b),v=t.enterLink(),t.inlineTokenizers={text:i.text},B=t.tokenizeInline(F,e.now()),t.inlineTokenizers=i,v(),e(F)({type:"link",title:null,url:b,children:B})}}}});var Fo=C((_F,vo)=>{"use strict";var Kd=Le(),Jd=ze(),Xd=43,Qd=45,Zd=46,eh=95;vo.exports=go;function go(e,r){var n=this,t,a;if(!this.options.gfm||(t=e.indexOf("@",r),t===-1))return-1;if(a=t,a===r||!mo(e.charCodeAt(a-1)))return go.call(n,e,t+1);for(;a>r&&mo(e.charCodeAt(a-1));)a--;return a}function mo(e){return Kd(e)||Jd(e)||e===Xd||e===Qd||e===Zd||e===eh}});var xo=C((LF,bo)=>{"use strict";var rh=lr(),Eo=Le(),Co=ze(),th=Fo();bo.exports=on;on.locator=th;on.notInLink=!0;var nh=43,un=45,Jr=46,ih=64,an=95;function on(e,r,n){var t=this,a=t.options.gfm,i=t.inlineTokenizers,u=0,o=r.length,s=-1,l,c,f,D;if(a){for(l=r.charCodeAt(u);Eo(l)||Co(l)||l===nh||l===un||l===Jr||l===an;)l=r.charCodeAt(++u);if(u!==0&&l===ih){for(u++;u{"use strict";var uh=ze(),ah=Jt(),oh=$t().tag;ko.exports=yo;yo.locator=ah;var sh="<",ch="?",lh="!",fh="/",Dh=/^/i;function yo(e,r,n){var t=this,a=r.length,i,u;if(!(r.charAt(0)!==sh||a<3)&&(i=r.charAt(1),!(!uh(i)&&i!==ch&&i!==lh&&i!==fh)&&(u=r.match(oh),!!u)))return n?!0:(u=u[0],!t.inLink&&Dh.test(u)?t.inLink=!0:t.inLink&&ph.test(u)&&(t.inLink=!1),e(u)({type:"html",value:u}))}});var sn=C((IF,Ao)=>{"use strict";Ao.exports=dh;function dh(e,r){var n=e.indexOf("[",r),t=e.indexOf("![",r);return t===-1||n{"use strict";var gr=ne(),hh=sn();_o.exports=Po;Po.locator=hh;var mh=` +`,gh="!",Bo='"',qo="'",$e="(",vr=")",cn="<",ln=">",To="[",Fr="\\",vh="]",So="`";function Po(e,r,n){var t=this,a="",i=0,u=r.charAt(0),o=t.options.pedantic,s=t.options.commonmark,l=t.options.gfm,c,f,D,h,p,d,m,g,x,F,B,b,v,y,k,E,w,A;if(u===gh&&(g=!0,a=u,u=r.charAt(++i)),u===To&&!(!g&&t.inLink)){for(a+=u,y="",i++,B=r.length,E=e.now(),v=0,E.column+=i,E.offset+=i;i=D&&(D=0):D=f}else if(u===Fr)i++,d+=r.charAt(i);else if((!D||l)&&u===To)v++;else if((!D||l)&&u===vh)if(v)v--;else{if(r.charAt(i+1)!==$e)return;d+=$e,c=!0,i++;break}y+=d,d="",i++}if(c){for(x=y,a+=y+d,i++;i{"use strict";var Fh=ne(),Eh=sn(),Ch=Gt();Io.exports=Oo;Oo.locator=Eh;var fn="link",bh="image",xh="shortcut",yh="collapsed",Dn="full",kh="!",Xr="[",Qr="\\",Zr="]";function Oo(e,r,n){var t=this,a=t.options.commonmark,i=r.charAt(0),u=0,o=r.length,s="",l="",c=fn,f=xh,D,h,p,d,m,g,x,F;if(i===kh&&(c=bh,l=i,i=r.charAt(++u)),i===Xr){for(u++,l+=i,g="",F=0;u{"use strict";Ro.exports=wh;function wh(e,r){var n=e.indexOf("**",r),t=e.indexOf("__",r);return t===-1?n:n===-1||t{"use strict";var Ah=Oe(),Mo=ne(),Bh=zo();Yo.exports=Uo;Uo.locator=Bh;var qh="\\",Th="*",Sh="_";function Uo(e,r,n){var t=this,a=0,i=r.charAt(a),u,o,s,l,c,f,D;if(!(i!==Th&&i!==Sh||r.charAt(++a)!==i)&&(o=t.options.pedantic,s=i,c=s+s,f=r.length,a++,l="",i="",!(o&&Mo(r.charAt(a)))))for(;a{"use strict";jo.exports=Lh;var Ph=String.fromCharCode,_h=/\w/;function Lh(e){return _h.test(typeof e=="number"?Ph(e):e.charAt(0))}});var Ho=C((YF,Go)=>{"use strict";Go.exports=Oh;function Oh(e,r){var n=e.indexOf("*",r),t=e.indexOf("_",r);return t===-1?n:n===-1||t{"use strict";var Ih=Oe(),Nh=$o(),Wo=ne(),Rh=Ho();Xo.exports=Jo;Jo.locator=Rh;var zh="*",Ko="_",Mh="\\";function Jo(e,r,n){var t=this,a=0,i=r.charAt(a),u,o,s,l,c,f,D;if(!(i!==zh&&i!==Ko)&&(o=t.options.pedantic,c=i,s=i,f=r.length,a++,l="",i="",!(o&&Wo(r.charAt(a)))))for(;a{"use strict";Zo.exports=Uh;function Uh(e,r){return e.indexOf("~~",r)}});var us=C(($F,is)=>{"use strict";var rs=ne(),Yh=es();is.exports=ns;ns.locator=Yh;var et="~",ts="~~";function ns(e,r,n){var t=this,a="",i="",u="",o="",s,l,c;if(!(!t.options.gfm||r.charAt(0)!==et||r.charAt(1)!==et||rs(r.charAt(2))))for(s=1,l=r.length,c=e.now(),c.column+=2,c.offset+=2;++s{"use strict";as.exports=Vh;function Vh(e,r){return e.indexOf("`",r)}});var ls=C((HF,cs)=>{"use strict";var jh=os();cs.exports=ss;ss.locator=jh;var pn=10,dn=32,hn=96;function ss(e,r,n){for(var t=r.length,a=0,i,u,o,s,l,c;a2&&(s===dn||s===pn)&&(l===dn||l===pn)){for(a++,t--;a{"use strict";fs.exports=$h;function $h(e,r){for(var n=e.indexOf(` +`,r);n>r&&e.charAt(n-1)===" ";)n--;return n}});var hs=C((KF,ds)=>{"use strict";var Gh=Ds();ds.exports=ps;ps.locator=Gh;var Hh=" ",Wh=` +`,Kh=2;function ps(e,r,n){for(var t=r.length,a=-1,i="",u;++a{"use strict";ms.exports=Jh;function Jh(e,r,n){var t=this,a,i,u,o,s,l,c,f,D,h;if(n)return!0;for(a=t.inlineMethods,o=a.length,i=t.inlineTokenizers,u=-1,D=r.length;++u{"use strict";var Xh=_e(),rt=Ni(),Qh=zi(),Zh=Ui(),em=hu(),mn=vu();Es.exports=vs;function vs(e,r){this.file=r,this.offset={},this.options=Xh(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=Qh(r).toOffset,this.unescape=Zh(this,"escape"),this.decode=em(this)}var z=vs.prototype;z.setOptions=wu();z.parse=Yu();z.options=Pt();z.exitStart=rt("atStart",!0);z.enterList=rt("inList",!1);z.enterLink=rt("inLink",!1);z.enterBlock=rt("inBlock",!1);z.interruptParagraph=[["thematicBreak"],["list"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}]];z.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}]];z.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}]];z.blockTokenizers={blankLine:ju(),indentedCode:Ku(),fencedCode:Qu(),blockquote:ia(),atxHeading:oa(),thematicBreak:la(),list:Ca(),setextHeading:ka(),html:Sa(),definition:Ma(),table:Va(),paragraph:Ga()};z.inlineTokenizers={escape:Qa(),autoLink:io(),url:ho(),email:xo(),html:wo(),link:Lo(),reference:No(),strong:Vo(),emphasis:Qo(),deletion:us(),code:ls(),break:hs(),text:gs()};z.blockMethods=Fs(z.blockTokenizers);z.inlineMethods=Fs(z.inlineTokenizers);z.tokenizeBlock=mn("block");z.tokenizeInline=mn("inline");z.tokenizeFactory=mn;function Fs(e){var r=[],n;for(n in e)r.push(n);return r}});var ks=C((QF,ys)=>{"use strict";var rm=Oi(),tm=_e(),bs=Cs();ys.exports=xs;xs.Parser=bs;function xs(e){var r=this.data("settings"),n=rm(bs);n.prototype.options=tm(n.prototype.options,r,e),this.Parser=n}});var As=C((ZF,ws)=>{"use strict";ws.exports=nm;function nm(e){if(e)throw e}});var gn=C((eE,Bs)=>{Bs.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var Ns=C((rE,Is)=>{"use strict";var tt=Object.prototype.hasOwnProperty,Os=Object.prototype.toString,qs=Object.defineProperty,Ts=Object.getOwnPropertyDescriptor,Ss=function(r){return typeof Array.isArray=="function"?Array.isArray(r):Os.call(r)==="[object Array]"},Ps=function(r){if(!r||Os.call(r)!=="[object Object]")return!1;var n=tt.call(r,"constructor"),t=r.constructor&&r.constructor.prototype&&tt.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!n&&!t)return!1;var a;for(a in r);return typeof a>"u"||tt.call(r,a)},_s=function(r,n){qs&&n.name==="__proto__"?qs(r,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):r[n.name]=n.newValue},Ls=function(r,n){if(n==="__proto__")if(tt.call(r,n)){if(Ts)return Ts(r,n).value}else return;return r[n]};Is.exports=function e(){var r,n,t,a,i,u,o=arguments[0],s=1,l=arguments.length,c=!1;for(typeof o=="boolean"&&(c=o,o=arguments[1]||{},s=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});s{"use strict";Rs.exports=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}});var Us=C((nE,Ms)=>{"use strict";var im=[].slice;Ms.exports=um;function um(e,r){var n;return t;function t(){var u=im.call(arguments,0),o=e.length>u.length,s;o&&u.push(a);try{s=e.apply(null,u)}catch(l){if(o&&n)throw l;return a(l)}o||(s&&typeof s.then=="function"?s.then(i,a):s instanceof Error?a(s):i(s))}function a(){n||(n=!0,r.apply(null,arguments))}function i(u){a(null,u)}}});var Gs=C((iE,$s)=>{"use strict";var Vs=Us();$s.exports=js;js.wrap=Vs;var Ys=[].slice;function js(){var e=[],r={};return r.run=n,r.use=t,r;function n(){var a=-1,i=Ys.call(arguments,0,-1),u=arguments[arguments.length-1];if(typeof u!="function")throw new Error("Expected function as last argument, not "+u);o.apply(null,[null].concat(i));function o(s){var l=e[++a],c=Ys.call(arguments,0),f=c.slice(1),D=i.length,h=-1;if(s){u(s);return}for(;++h{"use strict";var Ge={}.hasOwnProperty;Ks.exports=am;function am(e){return!e||typeof e!="object"?"":Ge.call(e,"position")||Ge.call(e,"type")?Hs(e.position):Ge.call(e,"start")||Ge.call(e,"end")?Hs(e):Ge.call(e,"line")||Ge.call(e,"column")?vn(e):""}function vn(e){return(!e||typeof e!="object")&&(e={}),Ws(e.line)+":"+Ws(e.column)}function Hs(e){return(!e||typeof e!="object")&&(e={}),vn(e.start)+"-"+vn(e.end)}function Ws(e){return e&&typeof e=="number"?e:1}});var Zs=C((aE,Qs)=>{"use strict";var om=Js();Qs.exports=Fn;function Xs(){}Xs.prototype=Error.prototype;Fn.prototype=new Xs;var ke=Fn.prototype;ke.file="";ke.name="";ke.reason="";ke.message="";ke.stack="";ke.fatal=null;ke.column=null;ke.line=null;function Fn(e,r,n){var t,a,i;typeof r=="string"&&(n=r,r=null),t=sm(n),a=om(r)||"1:1",i={start:{line:null,column:null},end:{line:null,column:null}},r&&r.position&&(r=r.position),r&&(r.start?(i=r,r=r.start):i.start=r),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=a,this.reason=e,this.line=r?r.line:null,this.column=r?r.column:null,this.location=i,this.source=t[0],this.ruleId=t[1]}function sm(e){var r=[null,null],n;return typeof e=="string"&&(n=e.indexOf(":"),n===-1?r[1]=e:(r[0]=e.slice(0,n),r[1]=e.slice(n+1))),r}});var ec=C(He=>{"use strict";He.basename=cm;He.dirname=lm;He.extname=fm;He.join=Dm;He.sep="/";function cm(e,r){var n=0,t=-1,a,i,u,o;if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');if(Er(e),a=e.length,r===void 0||!r.length||r.length>e.length){for(;a--;)if(e.charCodeAt(a)===47){if(u){n=a+1;break}}else t<0&&(u=!0,t=a+1);return t<0?"":e.slice(n,t)}if(r===e)return"";for(i=-1,o=r.length-1;a--;)if(e.charCodeAt(a)===47){if(u){n=a+1;break}}else i<0&&(u=!0,i=a+1),o>-1&&(e.charCodeAt(a)===r.charCodeAt(o--)?o<0&&(t=a):(o=-1,t=i));return n===t?t=i:t<0&&(t=e.length),e.slice(n,t)}function lm(e){var r,n,t;if(Er(e),!e.length)return".";for(r=-1,t=e.length;--t;)if(e.charCodeAt(t)===47){if(n){r=t;break}}else n||(n=!0);return r<0?e.charCodeAt(0)===47?"/":".":r===1&&e.charCodeAt(0)===47?"//":e.slice(0,r)}function fm(e){var r=-1,n=0,t=-1,a=0,i,u,o;for(Er(e),o=e.length;o--;){if(u=e.charCodeAt(o),u===47){if(i){n=o+1;break}continue}t<0&&(i=!0,t=o+1),u===46?r<0?r=o:a!==1&&(a=1):r>-1&&(a=-1)}return r<0||t<0||a===0||a===1&&r===t-1&&r===n+1?"":e.slice(r,t)}function Dm(){for(var e=-1,r;++e2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",t=0):(n=n.slice(0,s),t=n.length-1-n.lastIndexOf("/")),a=u,i=0;continue}}else if(n.length){n="",t=0,a=u,i=0;continue}}r&&(n=n.length?n+"/..":"..",t=2)}else n.length?n+="/"+e.slice(a+1,u):n=e.slice(a+1,u),t=u-a-1;a=u,i=0}else o===46&&i>-1?i++:i=-1}return n}function Er(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}});var tc=C(rc=>{"use strict";rc.cwd=hm;function hm(){return"/"}});var uc=C((cE,ic)=>{"use strict";var ie=ec(),mm=tc(),gm=gn();ic.exports=he;var vm={}.hasOwnProperty,En=["history","path","basename","stem","extname","dirname"];he.prototype.toString=qm;Object.defineProperty(he.prototype,"path",{get:Fm,set:Em});Object.defineProperty(he.prototype,"dirname",{get:Cm,set:bm});Object.defineProperty(he.prototype,"basename",{get:xm,set:ym});Object.defineProperty(he.prototype,"extname",{get:km,set:wm});Object.defineProperty(he.prototype,"stem",{get:Am,set:Bm});function he(e){var r,n;if(!e)e={};else if(typeof e=="string"||gm(e))e={contents:e};else if("message"in e&&"messages"in e)return e;if(!(this instanceof he))return new he(e);for(this.data={},this.messages=[],this.history=[],this.cwd=mm.cwd(),n=-1;++n-1)throw new Error("`extname` cannot contain multiple dots")}this.path=ie.join(this.dirname,this.stem+(e||""))}function Am(){return typeof this.path=="string"?ie.basename(this.path,this.extname):void 0}function Bm(e){bn(e,"stem"),Cn(e,"stem"),this.path=ie.join(this.dirname||"",e+(this.extname||""))}function qm(e){return(this.contents||"").toString(e)}function Cn(e,r){if(e&&e.indexOf(ie.sep)>-1)throw new Error("`"+r+"` cannot be a path: did not expect `"+ie.sep+"`")}function bn(e,r){if(!e)throw new Error("`"+r+"` cannot be empty")}function nc(e,r){if(!e)throw new Error("Setting `"+r+"` requires `path` to be set too")}});var oc=C((lE,ac)=>{"use strict";var Tm=Zs(),nt=uc();ac.exports=nt;nt.prototype.message=Sm;nt.prototype.info=_m;nt.prototype.fail=Pm;function Sm(e,r,n){var t=new Tm(e,r,n);return this.path&&(t.name=this.path+":"+t.name,t.file=this.path),t.fatal=!1,this.messages.push(t),t}function Pm(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}function _m(){var e=this.message.apply(this,arguments);return e.fatal=null,e}});var cc=C((fE,sc)=>{"use strict";sc.exports=oc()});var vc=C((DE,gc)=>{"use strict";var lc=As(),Lm=gn(),it=Ns(),fc=zs(),hc=Gs(),Cr=cc();gc.exports=mc().freeze();var Om=[].slice,Im={}.hasOwnProperty,Nm=hc().use(Rm).use(zm).use(Mm);function Rm(e,r){r.tree=e.parse(r.file)}function zm(e,r,n){e.run(r.tree,r.file,t);function t(a,i,u){a?n(a):(r.tree=i,r.file=u,n())}}function Mm(e,r){var n=e.stringify(r.tree,r.file);n==null||(typeof n=="string"||Lm(n)?("value"in r.file&&(r.file.value=n),r.file.contents=n):r.file.result=n)}function mc(){var e=[],r=hc(),n={},t=-1,a;return i.data=o,i.freeze=u,i.attachers=e,i.use=s,i.parse=c,i.stringify=h,i.run=f,i.runSync=D,i.process=p,i.processSync=d,i;function i(){for(var m=mc(),g=-1;++g{wn.isRemarkParser=Ym;wn.isRemarkCompiler=Vm;function Ym(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function Vm(e){return!!(e&&e.prototype&&e.prototype.visitors)}});var kc=C((dE,yc)=>{var Fc=An();yc.exports=Hm;var Ec=9,Cc=32,ut=36,jm=48,$m=57,bc=92,Gm=["math","math-inline"],xc="math-display";function Hm(e){let r=this.Parser,n=this.Compiler;Fc.isRemarkParser(r)&&Wm(r,e),Fc.isRemarkCompiler(n)&&Km(n,e)}function Wm(e,r){let n=e.prototype,t=n.inlineMethods;i.locator=a,n.inlineTokenizers.math=i,t.splice(t.indexOf("text"),0,"math");function a(u,o){return u.indexOf("$",o)}function i(u,o,s){let l=o.length,c=!1,f=!1,D=0,h,p,d,m,g,x,F;if(o.charCodeAt(D)===bc&&(f=!0,D++),o.charCodeAt(D)===ut){if(D++,f)return s?!0:u(o.slice(0,D))({type:"text",value:"$"});if(o.charCodeAt(D)===ut&&(c=!0,D++),d=o.charCodeAt(D),!(d===Cc||d===Ec)){for(m=D;D$m)&&(!c||d===ut)){g=D-1,D++,c&&D++,x=D;break}}else p===bc&&(D++,d=o.charCodeAt(D+1));D++}if(x!==void 0)return s?!0:(F=o.slice(m,g+1),u(o.slice(0,x))({type:"inlineMath",value:F,data:{hName:"span",hProperties:{className:Gm.concat(c&&r.inlineMathDouble?[xc]:[])},hChildren:[{type:"text",value:F}]}}))}}}}function Km(e){let r=e.prototype;r.visitors.inlineMath=n;function n(t){let a="$";return(t.data&&t.data.hProperties&&t.data.hProperties.className||[]).includes(xc)&&(a="$$"),a+t.value+a}}});var Tc=C((hE,qc)=>{var wc=An();qc.exports=Zm;var Ac=10,br=32,Bn=36,Bc=` +`,Jm="$",Xm=2,Qm=["math","math-display"];function Zm(){let e=this.Parser,r=this.Compiler;wc.isRemarkParser(e)&&eg(e),wc.isRemarkCompiler(r)&&rg(r)}function eg(e){let r=e.prototype,n=r.blockMethods,t=r.interruptParagraph,a=r.interruptList,i=r.interruptBlockquote;r.blockTokenizers.math=u,n.splice(n.indexOf("fencedCode")+1,0,"math"),t.splice(t.indexOf("fencedCode")+1,0,["math"]),a.splice(a.indexOf("fencedCode")+1,0,["math"]),i.splice(i.indexOf("fencedCode")+1,0,["math"]);function u(o,s,l){var c=s.length,f=0;let D,h,p,d,m,g,x,F,B,b,v;for(;fb&&s.charCodeAt(d-1)===br;)d--;for(;d>b&&s.charCodeAt(d-1)===Bn;)B++,d--;for(g<=B&&s.indexOf(Jm,b)===d&&(F=!0,v=d);b<=v&&b-fb&&s.charCodeAt(v-1)===br;)v--;if((!F||b!==v)&&h.push(s.slice(b,v)),F)break;f=p+1,p=s.indexOf(Bc,f+1),p=p===-1?c:p}return h=h.join(` `),o(s.slice(0,p))({type:"math",value:h,data:{hName:"div",hProperties:{className:Qm.concat()},hChildren:[{type:"text",value:h}]}})}}}}function rg(e){let r=e.prototype;r.visitors.math=n;function n(t){return`$$ `+t.value+` -$$`}}});var Pc=C((mE,_c)=>{var tg=wc(),ng=Sc();_c.exports=ig;function ig(e){var r=e||{};ng.call(this,r),tg.call(this,r)}});var Oc=C((gE,Lc)=>{"use strict";Lc.exports=cg;var xr=9,ot=10,We=32,ug=33,ag=58,Ke=91,og=92,Sn=93,yr=94,st=96,ct=4,sg=1024;function cg(e){var r=this.Parser,n=this.Compiler;lg(r)&&Dg(r,e),fg(n)&&pg(n)}function lg(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function fg(e){return!!(e&&e.prototype&&e.prototype.visitors)}function Dg(e,r){for(var n=r||{},t=e.prototype,a=t.blockTokenizers,i=t.inlineTokenizers,u=t.blockMethods,o=t.inlineMethods,s=a.definition,l=i.reference,c=[],f=-1,D=u.length,h;++fct&&(K=void 0,me=q);else{if(K0&&(M=ge[A-1],M.contentStart===M.contentEnd);)A--;for(we=b(v.slice(0,M.contentEnd));++q{var tg=kc(),ng=Tc();Sc.exports=ig;function ig(e){var r=e||{};ng.call(this,r),tg.call(this,r)}});var Lc=C((gE,_c)=>{"use strict";_c.exports=cg;var xr=9,at=10,We=32,ug=33,ag=58,Ke=91,og=92,qn=93,yr=94,ot=96,st=4,sg=1024;function cg(e){var r=this.Parser,n=this.Compiler;lg(r)&&Dg(r,e),fg(n)&&pg(n)}function lg(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function fg(e){return!!(e&&e.prototype&&e.prototype.visitors)}function Dg(e,r){for(var n=r||{},t=e.prototype,a=t.blockTokenizers,i=t.inlineTokenizers,u=t.blockMethods,o=t.inlineMethods,s=a.definition,l=i.reference,c=[],f=-1,D=u.length,h;++fst&&(K=void 0,me=q);else{if(K0&&(M=ge[A-1],M.contentStart===M.contentEnd);)A--;for(we=b(v.slice(0,M.contentEnd));++qZc,options:()=>el,parsers:()=>lt,printers:()=>wg});var ol=(e,r,n,t)=>{if(!(e&&r==null))return r.replaceAll?r.replaceAll(n,t):n.global?r.replace(n,t):r.split(n).join(t)},R=ol;var sl=(e,r,n)=>{if(!(e&&r==null))return Array.isArray(r)||typeof r=="string"?r[n<0?r.length+n:n]:r.at(n)},U=sl;var Ti=Ie(kr(),1);function Je(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function ll(e,r){let n=e.match(new RegExp(`(${Je(r)})+`,"g"));if(n===null)return 0;let t=new Map,a=0;for(let i of n){let u=i.length/r.length;t.set(u,!0),u>a&&(a=u)}for(let i=1;iMath.max(t,a.length/r.length),0)}var wr=fl;var zn=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;var Mn={eastAsianWidth(e){var r=e.charCodeAt(0),n=e.length==2?e.charCodeAt(1):0,t=r;return 55296<=r&&r<=56319&&56320<=n&&n<=57343&&(r&=1023,n&=1023,t=r<<10|n,t+=65536),t==12288||65281<=t&&t<=65376||65504<=t&&t<=65510?"F":4352<=t&&t<=4447||4515<=t&&t<=4519||4602<=t&&t<=4607||9001<=t&&t<=9002||11904<=t&&t<=11929||11931<=t&&t<=12019||12032<=t&&t<=12245||12272<=t&&t<=12283||12289<=t&&t<=12350||12353<=t&&t<=12438||12441<=t&&t<=12543||12549<=t&&t<=12589||12593<=t&&t<=12686||12688<=t&&t<=12730||12736<=t&&t<=12771||12784<=t&&t<=12830||12832<=t&&t<=12871||12880<=t&&t<=13054||13056<=t&&t<=19903||19968<=t&&t<=42124||42128<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||55216<=t&&t<=55238||55243<=t&&t<=55291||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65106||65108<=t&&t<=65126||65128<=t&&t<=65131||110592<=t&&t<=110593||127488<=t&&t<=127490||127504<=t&&t<=127546||127552<=t&&t<=127560||127568<=t&&t<=127569||131072<=t&&t<=194367||177984<=t&&t<=196605||196608<=t&&t<=262141?"W":"N"}};var Dl=/[^\x20-\x7F]/;function pl(e){if(!e)return 0;if(!Dl.test(e))return e.length;e=e.replace(zn()," ");let r=0;for(let n of e){let t=n.codePointAt(0);if(t<=31||t>=127&&t<=159||t>=768&&t<=879)continue;let a=Mn.eastAsianWidth(n);r+=a==="F"||a==="W"?2:1}return r}var Xe=pl;var Ar="'",Un='"';function dl(e,r){let n=r===!0||r===Ar?Ar:Un,t=n===Ar?Un:Ar,a=0,i=0;for(let u of e)u===n?a++:u===t&&i++;return a>i?t:n}var Yn=dl;var ue="string",X="array",ve="cursor",Q="indent",Z="align",ae="trim",G="group",H="fill",W="if-break",oe="indent-if-break",se="line-suffix",ce="line-suffix-boundary",$="line",le="label",ee="break-parent",Br=new Set([ve,Q,Z,ae,G,H,W,oe,se,ce,$,le,ee]);function hl(e){if(typeof e=="string")return ue;if(Array.isArray(e))return X;if(!e)return;let{type:r}=e;if(Br.has(r))return r}var fe=hl;var ml=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function gl(e){let r=e===null?"null":typeof e;if(r!=="string"&&r!=="object")return`Unexpected doc '${r}', -Expected it to be 'string' or 'object'.`;if(fe(e))throw new Error("doc is valid.");let n=Object.prototype.toString.call(e);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let t=ml([...Br].map(a=>`'${a}'`));return`Unexpected doc.type '${e.type}'. -Expected it to be ${t}.`}var pt=class extends Error{name="InvalidDocError";constructor(r){super(gl(r)),this.doc=r}},Ae=pt;var Vn={};function vl(e,r,n,t){let a=[e];for(;a.length>0;){let i=a.pop();if(i===Vn){n(a.pop());continue}n&&a.push(i,Vn);let u=fe(i);if(!u)throw new Ae(i);if((r==null?void 0:r(i))!==!1)switch(u){case X:case H:{let o=u===X?i:i.parts;for(let s=o.length,l=s-1;l>=0;--l)a.push(o[l]);break}case W:a.push(i.flatContents,i.breakContents);break;case G:if(t&&i.expandedStates)for(let o=i.expandedStates.length,s=o-1;s>=0;--s)a.push(i.expandedStates[s]);else a.push(i.contents);break;case Z:case Q:case oe:case le:case se:a.push(i.contents);break;case ue:case ve:case ae:case ce:case $:case ee:break;default:throw new Ae(i)}}}var jn=vl;var $n=()=>{},Be=$n,qr=$n;function Qe(e){return Be(e),{type:Q,contents:e}}function Fe(e,r){return Be(r),{type:Z,contents:r,n:e}}function Ze(e,r={}){return Be(e),qr(r.expandedStates,!0),{type:G,id:r.id,contents:e,break:!!r.shouldBreak,expandedStates:r.expandedStates}}function qe(e){return Fe({type:"root"},e)}function Tr(e){return qr(e),{type:H,parts:e}}function Gn(e,r="",n={}){return Be(e),r!==""&&Be(r),{type:W,breakContents:e,flatContents:r,groupId:n.groupId}}var er={type:ee};var Ne={type:$,hard:!0},Fl={type:$,hard:!0,literal:!0},Sr={type:$},rr={type:$,soft:!0},O=[Ne,er],tr=[Fl,er];function nr(e,r){Be(e),qr(r);let n=[];for(let t=0;t{if(Array.isArray(e))return e;if(e.type!==H)throw new Error(`Expect doc to be 'array' or '${H}'.`);return e.parts};function Jn(e,r){if(typeof e=="string")return r(e);let n=new Map;return t(e);function t(i){if(n.has(i))return n.get(i);let u=a(i);return n.set(i,u),u}function a(i){switch(fe(i)){case X:return r(i.map(t));case H:return r({...i,parts:i.parts.map(t)});case W:return r({...i,breakContents:t(i.breakContents),flatContents:t(i.flatContents)});case G:{let{expandedStates:u,contents:o}=i;return u?(u=u.map(t),o=u[0]):o=t(o),r({...i,contents:o,expandedStates:u})}case Z:case Q:case oe:case le:case se:return r({...i,contents:t(i.contents)});case ue:case ve:case ae:case ce:case $:case ee:return r(i);default:throw new Ae(i)}}}function Hn(e){if(e.length>0){let r=U(!1,e,-1);!r.expandedStates&&!r.break&&(r.break="propagated")}return null}function Xn(e){let r=new Set,n=[];function t(i){if(i.type===ee&&Hn(n),i.type===G){if(n.push(i),r.has(i))return!1;r.add(i)}}function a(i){i.type===G&&n.pop().break&&Hn(n)}jn(e,t,a,!0)}function Wn(e){let r=[],n=e.filter(Boolean);for(;n.length>0;){let t=n.shift();if(t){if(Array.isArray(t)){n.unshift(...t);continue}if(r.length>0&&typeof U(!1,r,-1)=="string"&&typeof t=="string"){r[r.length-1]+=t;continue}r.push(t)}}return r}function Qn(e){return Jn(e,r=>Array.isArray(r)?Wn(r):r.parts?{...r,parts:Wn(r.parts)}:r)}function Ee(e,r=tr){return Jn(e,n=>typeof n=="string"?nr(r,n.split(` -`)):n)}function Zn(e){switch(e){case"cr":return"\r";case"crlf":return`\r +`)}}function Tn(e,r,n){e.splice(e.indexOf(r),0,n)}function dg(e,r,n,t){for(var a=e.length,i=-1;++iQc,options:()=>Zc,parsers:()=>Pn,printers:()=>wg});var al=(e,r,n,t)=>{if(!(e&&r==null))return r.replaceAll?r.replaceAll(n,t):n.global?r.replace(n,t):r.split(n).join(t)},R=al;var ol=(e,r,n)=>{if(!(e&&r==null))return Array.isArray(r)||typeof r=="string"?r[n<0?r.length+n:n]:r.at(n)},U=ol;var qi=Ie(kr(),1);function Je(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function cl(e,r){let n=e.match(new RegExp(`(${Je(r)})+`,"g"));if(n===null)return 0;let t=new Map,a=0;for(let i of n){let u=i.length/r.length;t.set(u,!0),u>a&&(a=u)}for(let i=1;iMath.max(t,a.length/r.length),0)}var wr=ll;var Rn=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;var zn={eastAsianWidth(e){var r=e.charCodeAt(0),n=e.length==2?e.charCodeAt(1):0,t=r;return 55296<=r&&r<=56319&&56320<=n&&n<=57343&&(r&=1023,n&=1023,t=r<<10|n,t+=65536),t==12288||65281<=t&&t<=65376||65504<=t&&t<=65510?"F":4352<=t&&t<=4447||4515<=t&&t<=4519||4602<=t&&t<=4607||9001<=t&&t<=9002||11904<=t&&t<=11929||11931<=t&&t<=12019||12032<=t&&t<=12245||12272<=t&&t<=12283||12289<=t&&t<=12350||12353<=t&&t<=12438||12441<=t&&t<=12543||12549<=t&&t<=12589||12593<=t&&t<=12686||12688<=t&&t<=12730||12736<=t&&t<=12771||12784<=t&&t<=12830||12832<=t&&t<=12871||12880<=t&&t<=13054||13056<=t&&t<=19903||19968<=t&&t<=42124||42128<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||55216<=t&&t<=55238||55243<=t&&t<=55291||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65106||65108<=t&&t<=65126||65128<=t&&t<=65131||110592<=t&&t<=110593||127488<=t&&t<=127490||127504<=t&&t<=127546||127552<=t&&t<=127560||127568<=t&&t<=127569||131072<=t&&t<=194367||177984<=t&&t<=196605||196608<=t&&t<=262141?"W":"N"}};var fl=/[^\x20-\x7F]/;function Dl(e){if(!e)return 0;if(!fl.test(e))return e.length;e=e.replace(Rn()," ");let r=0;for(let n of e){let t=n.codePointAt(0);if(t<=31||t>=127&&t<=159||t>=768&&t<=879)continue;let a=zn.eastAsianWidth(n);r+=a==="F"||a==="W"?2:1}return r}var Xe=Dl;var Ar="'",Mn='"';function pl(e,r){let n=r===!0||r===Ar?Ar:Mn,t=n===Ar?Mn:Ar,a=0,i=0;for(let u of e)u===n?a++:u===t&&i++;return a>i?t:n}var Un=pl;var ue="string",X="array",ve="cursor",Q="indent",Z="align",ae="trim",G="group",H="fill",W="if-break",oe="indent-if-break",se="line-suffix",ce="line-suffix-boundary",$="line",le="label",ee="break-parent",Br=new Set([ve,Q,Z,ae,G,H,W,oe,se,ce,$,le,ee]);function dl(e){if(typeof e=="string")return ue;if(Array.isArray(e))return X;if(!e)return;let{type:r}=e;if(Br.has(r))return r}var fe=dl;var hl=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function ml(e){let r=e===null?"null":typeof e;if(r!=="string"&&r!=="object")return`Unexpected doc '${r}', +Expected it to be 'string' or 'object'.`;if(fe(e))throw new Error("doc is valid.");let n=Object.prototype.toString.call(e);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let t=hl([...Br].map(a=>`'${a}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${t}.`}var ft=class extends Error{name="InvalidDocError";constructor(r){super(ml(r)),this.doc=r}},Ae=ft;var Yn={};function gl(e,r,n,t){let a=[e];for(;a.length>0;){let i=a.pop();if(i===Yn){n(a.pop());continue}n&&a.push(i,Yn);let u=fe(i);if(!u)throw new Ae(i);if((r==null?void 0:r(i))!==!1)switch(u){case X:case H:{let o=u===X?i:i.parts;for(let s=o.length,l=s-1;l>=0;--l)a.push(o[l]);break}case W:a.push(i.flatContents,i.breakContents);break;case G:if(t&&i.expandedStates)for(let o=i.expandedStates.length,s=o-1;s>=0;--s)a.push(i.expandedStates[s]);else a.push(i.contents);break;case Z:case Q:case oe:case le:case se:a.push(i.contents);break;case ue:case ve:case ae:case ce:case $:case ee:break;default:throw new Ae(i)}}}var Vn=gl;var jn=()=>{},Be=jn,qr=jn;function Qe(e){return Be(e),{type:Q,contents:e}}function Fe(e,r){return Be(r),{type:Z,contents:r,n:e}}function Ze(e,r={}){return Be(e),qr(r.expandedStates,!0),{type:G,id:r.id,contents:e,break:!!r.shouldBreak,expandedStates:r.expandedStates}}function qe(e){return Fe({type:"root"},e)}function Tr(e){return qr(e),{type:H,parts:e}}function $n(e,r="",n={}){return Be(e),r!==""&&Be(r),{type:W,breakContents:e,flatContents:r,groupId:n.groupId}}var er={type:ee};var Ne={type:$,hard:!0},vl={type:$,hard:!0,literal:!0},Sr={type:$},rr={type:$,soft:!0},O=[Ne,er],tr=[vl,er];function nr(e,r){Be(e),qr(r);let n=[];for(let t=0;t{if(Array.isArray(e))return e;if(e.type!==H)throw new Error(`Expect doc to be 'array' or '${H}'.`);return e.parts};function Kn(e,r){if(typeof e=="string")return r(e);let n=new Map;return t(e);function t(i){if(n.has(i))return n.get(i);let u=a(i);return n.set(i,u),u}function a(i){switch(fe(i)){case X:return r(i.map(t));case H:return r({...i,parts:i.parts.map(t)});case W:return r({...i,breakContents:t(i.breakContents),flatContents:t(i.flatContents)});case G:{let{expandedStates:u,contents:o}=i;return u?(u=u.map(t),o=u[0]):o=t(o),r({...i,contents:o,expandedStates:u})}case Z:case Q:case oe:case le:case se:return r({...i,contents:t(i.contents)});case ue:case ve:case ae:case ce:case $:case ee:return r(i);default:throw new Ae(i)}}}function Gn(e){if(e.length>0){let r=U(!1,e,-1);!r.expandedStates&&!r.break&&(r.break="propagated")}return null}function Jn(e){let r=new Set,n=[];function t(i){if(i.type===ee&&Gn(n),i.type===G){if(n.push(i),r.has(i))return!1;r.add(i)}}function a(i){i.type===G&&n.pop().break&&Gn(n)}Vn(e,t,a,!0)}function Hn(e){let r=[],n=e.filter(Boolean);for(;n.length>0;){let t=n.shift();if(t){if(Array.isArray(t)){n.unshift(...t);continue}if(r.length>0&&typeof U(!1,r,-1)=="string"&&typeof t=="string"){r[r.length-1]+=t;continue}r.push(t)}}return r}function Xn(e){return Kn(e,r=>Array.isArray(r)?Hn(r):r.parts?{...r,parts:Hn(r.parts)}:r)}function Ee(e,r=tr){return Kn(e,n=>typeof n=="string"?nr(r,n.split(` +`)):n)}function Qn(e){switch(e){case"cr":return"\r";case"crlf":return`\r `;default:return` -`}}var V=Symbol("MODE_BREAK"),re=Symbol("MODE_FLAT"),ir=Symbol("cursor");function ei(){return{value:"",length:0,queue:[]}}function El(e,r){return dt(e,{type:"indent"},r)}function Cl(e,r,n){return r===Number.NEGATIVE_INFINITY?e.root||ei():r<0?dt(e,{type:"dedent"},n):r?r.type==="root"?{...e,root:e}:dt(e,{type:typeof r=="string"?"stringAlign":"numberAlign",n:r},n):e}function dt(e,r,n){let t=r.type==="dedent"?e.queue.slice(0,-1):[...e.queue,r],a="",i=0,u=0,o=0;for(let p of t)switch(p.type){case"indent":c(),n.useTabs?s(1):l(n.tabWidth);break;case"stringAlign":c(),a+=p.n,i+=p.n.length;break;case"numberAlign":u+=1,o+=p.n;break;default:throw new Error(`Unexpected type '${p.type}'`)}return D(),{...e,value:a,length:i,queue:t};function s(p){a+=" ".repeat(p),i+=n.tabWidth*p}function l(p){a+=" ".repeat(p),i+=p}function c(){n.useTabs?f():D()}function f(){u>0&&s(u),h()}function D(){o>0&&l(o),h()}function h(){u=0,o=0}}function ht(e){let r=0,n=0,t=e.length;e:for(;t--;){let a=e[t];if(a===ir){n++;continue}for(let i=a.length-1;i>=0;i--){let u=a[i];if(u===" "||u===" ")r++;else{e[t]=a.slice(0,i+1);break e}}}if(r>0||n>0)for(e.length=t+1;n-- >0;)e.push(ir);return r}function _r(e,r,n,t,a,i){if(n===Number.POSITIVE_INFINITY)return!0;let u=r.length,o=[e],s=[];for(;n>=0;){if(o.length===0){if(u===0)return!0;o.push(r[--u]);continue}let{mode:l,doc:c}=o.pop();switch(fe(c)){case ue:s.push(c),n-=Xe(c);break;case X:case H:{let f=Kn(c);for(let D=f.length-1;D>=0;D--)o.push({mode:l,doc:f[D]});break}case Q:case Z:case oe:case le:o.push({mode:l,doc:c.contents});break;case ae:n+=ht(s);break;case G:{if(i&&c.break)return!1;let f=c.break?V:l,D=c.expandedStates&&f===V?U(!1,c.expandedStates,-1):c.contents;o.push({mode:f,doc:D});break}case W:{let D=(c.groupId?a[c.groupId]||re:l)===V?c.breakContents:c.flatContents;D&&o.push({mode:l,doc:D});break}case $:if(l===V||c.hard)return!0;c.soft||(s.push(" "),n--);break;case se:t=!0;break;case ce:if(t)return!1;break}}return!1}function ri(e,r){let n={},t=r.printWidth,a=Zn(r.endOfLine),i=0,u=[{ind:ei(),mode:V,doc:e}],o=[],s=!1,l=[],c=0;for(Xn(e);u.length>0;){let{ind:D,mode:h,doc:p}=u.pop();switch(fe(p)){case ue:{let d=a!==` +`}}var V=Symbol("MODE_BREAK"),re=Symbol("MODE_FLAT"),ir=Symbol("cursor");function Zn(){return{value:"",length:0,queue:[]}}function Fl(e,r){return Dt(e,{type:"indent"},r)}function El(e,r,n){return r===Number.NEGATIVE_INFINITY?e.root||Zn():r<0?Dt(e,{type:"dedent"},n):r?r.type==="root"?{...e,root:e}:Dt(e,{type:typeof r=="string"?"stringAlign":"numberAlign",n:r},n):e}function Dt(e,r,n){let t=r.type==="dedent"?e.queue.slice(0,-1):[...e.queue,r],a="",i=0,u=0,o=0;for(let p of t)switch(p.type){case"indent":c(),n.useTabs?s(1):l(n.tabWidth);break;case"stringAlign":c(),a+=p.n,i+=p.n.length;break;case"numberAlign":u+=1,o+=p.n;break;default:throw new Error(`Unexpected type '${p.type}'`)}return D(),{...e,value:a,length:i,queue:t};function s(p){a+=" ".repeat(p),i+=n.tabWidth*p}function l(p){a+=" ".repeat(p),i+=p}function c(){n.useTabs?f():D()}function f(){u>0&&s(u),h()}function D(){o>0&&l(o),h()}function h(){u=0,o=0}}function pt(e){let r=0,n=0,t=e.length;e:for(;t--;){let a=e[t];if(a===ir){n++;continue}for(let i=a.length-1;i>=0;i--){let u=a[i];if(u===" "||u===" ")r++;else{e[t]=a.slice(0,i+1);break e}}}if(r>0||n>0)for(e.length=t+1;n-- >0;)e.push(ir);return r}function Pr(e,r,n,t,a,i){if(n===Number.POSITIVE_INFINITY)return!0;let u=r.length,o=[e],s=[];for(;n>=0;){if(o.length===0){if(u===0)return!0;o.push(r[--u]);continue}let{mode:l,doc:c}=o.pop();switch(fe(c)){case ue:s.push(c),n-=Xe(c);break;case X:case H:{let f=Wn(c);for(let D=f.length-1;D>=0;D--)o.push({mode:l,doc:f[D]});break}case Q:case Z:case oe:case le:o.push({mode:l,doc:c.contents});break;case ae:n+=pt(s);break;case G:{if(i&&c.break)return!1;let f=c.break?V:l,D=c.expandedStates&&f===V?U(!1,c.expandedStates,-1):c.contents;o.push({mode:f,doc:D});break}case W:{let D=(c.groupId?a[c.groupId]||re:l)===V?c.breakContents:c.flatContents;D&&o.push({mode:l,doc:D});break}case $:if(l===V||c.hard)return!0;c.soft||(s.push(" "),n--);break;case se:t=!0;break;case ce:if(t)return!1;break}}return!1}function ei(e,r){let n={},t=r.printWidth,a=Qn(r.endOfLine),i=0,u=[{ind:Zn(),mode:V,doc:e}],o=[],s=!1,l=[],c=0;for(Jn(e);u.length>0;){let{ind:D,mode:h,doc:p}=u.pop();switch(fe(p)){case ue:{let d=a!==` `?R(!1,p,` -`,a):p;o.push(d),u.length>0&&(i+=Xe(d));break}case X:for(let d=p.length-1;d>=0;d--)u.push({ind:D,mode:h,doc:p[d]});break;case ve:if(c>=2)throw new Error("There are too many 'cursor' in doc.");o.push(ir),c++;break;case Q:u.push({ind:El(D,r),mode:h,doc:p.contents});break;case Z:u.push({ind:Cl(D,p.n,r),mode:h,doc:p.contents});break;case ae:i-=ht(o);break;case G:switch(h){case re:if(!s){u.push({ind:D,mode:p.break?V:re,doc:p.contents});break}case V:{s=!1;let d={ind:D,mode:re,doc:p.contents},m=t-i,g=l.length>0;if(!p.break&&_r(d,u,m,g,n))u.push(d);else if(p.expandedStates){let x=U(!1,p.expandedStates,-1);if(p.break){u.push({ind:D,mode:V,doc:x});break}else for(let F=1;F=p.expandedStates.length){u.push({ind:D,mode:V,doc:x});break}else{let B=p.expandedStates[F],b={ind:D,mode:re,doc:B};if(_r(b,u,m,g,n)){u.push(b);break}}}else u.push({ind:D,mode:V,doc:p.contents});break}}p.id&&(n[p.id]=U(!1,u,-1).mode);break;case H:{let d=t-i,{parts:m}=p;if(m.length===0)break;let[g,x]=m,F={ind:D,mode:re,doc:g},B={ind:D,mode:V,doc:g},b=_r(F,[],d,l.length>0,n,!0);if(m.length===1){b?u.push(F):u.push(B);break}let v={ind:D,mode:re,doc:x},y={ind:D,mode:V,doc:x};if(m.length===2){b?u.push(v,F):u.push(y,B);break}m.splice(0,2);let k={ind:D,mode:h,doc:Tr(m)},E=m[0];_r({ind:D,mode:re,doc:[g,x,E]},[],d,l.length>0,n,!0)?u.push(k,v,F):b?u.push(k,y,F):u.push(k,y,B);break}case W:case oe:{let d=p.groupId?n[p.groupId]:h;if(d===V){let m=p.type===W?p.breakContents:p.negate?p.contents:Qe(p.contents);m&&u.push({ind:D,mode:h,doc:m})}if(d===re){let m=p.type===W?p.flatContents:p.negate?Qe(p.contents):p.contents;m&&u.push({ind:D,mode:h,doc:m})}break}case se:l.push({ind:D,mode:h,doc:p.contents});break;case ce:l.length>0&&u.push({ind:D,mode:h,doc:Ne});break;case $:switch(h){case re:if(p.hard)s=!0;else{p.soft||(o.push(" "),i+=1);break}case V:if(l.length>0){u.push({ind:D,mode:h,doc:p},...l.reverse()),l.length=0;break}p.literal?D.root?(o.push(a,D.root.value),i=D.root.length):(o.push(a),i=0):(i-=ht(o),o.push(a+D.value),i=D.length);break}break;case le:u.push({ind:D,mode:h,doc:p.contents});break;case ee:break;default:throw new Ae(p)}u.length===0&&l.length>0&&(u.push(...l.reverse()),l.length=0)}let f=o.indexOf(ir);if(f!==-1){let D=o.indexOf(ir,f+1),h=o.slice(0,f).join(""),p=o.slice(f+1,D).join(""),d=o.slice(D+1).join("");return{formatted:h+p+d,cursorNodeStart:h.length,cursorNodeText:p}}return{formatted:o.join("")}}var mt=class extends Error{name="UnexpectedNodeError";constructor(r,n,t="type"){super(`Unexpected ${n} node ${t}: ${JSON.stringify(r[t])}.`),this.node=r}},ti=mt;async function bl(e,r){if(e.lang==="yaml"){let n=e.value.trim(),t=n?await r(n,{parser:"yaml"}):"";return qe([e.startDelimiter,O,t,t?O:"",e.endDelimiter])}}var ni=bl;var xl=e=>e.split(/[/\\]/).pop();function ii(e,r){if(!r)return;let n=xl(r).toLowerCase();return e.find(t=>{var a,i;return((a=t.extensions)==null?void 0:a.some(u=>n.endsWith(u)))||((i=t.filenames)==null?void 0:i.some(u=>u.toLowerCase()===n))})}function yl(e,r){if(r)return e.find(({name:n})=>n.toLowerCase()===r)??e.find(({aliases:n})=>n==null?void 0:n.includes(r))??e.find(({extensions:n})=>n==null?void 0:n.includes(`.${r}`))}function kl(e,r){let n=e.plugins.flatMap(a=>a.languages??[]),t=yl(n,r.language)??ii(n,r.physicalFile)??ii(n,r.file)??(r.physicalFile,void 0);return t==null?void 0:t.parsers[0]}var ui=kl;var Pr=()=>{};Pr.ok=Pr;Pr.strictEqual=Pr;function Te(e){return e.position.start.offset}function Se(e){return e.position.end.offset}var ai="(?:[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u2ff0-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fef\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879][\\udc00-\\udfff]|\\ud82c[\\udc00-\\udd1e\\udd50-\\udd52\\udd64-\\udd67]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\uded6\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf34\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d])(?:[\\ufe00-\\ufe0f]|\\udb40[\\udd00-\\uddef])?",oi=new RegExp("[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",""),ur="[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061e-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0a76\\u0af0\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e4f\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud803[\\udf55-\\udf59]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]";var vt=new Set(["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"]),Lr=new Set([...vt,"tableCell","paragraph","heading"]),gt=new RegExp(ur),_e="non-cjk",De="cj-letter",Ce="k-letter",ar="cjk-punctuation";function Or(e){let r=[],n=e.split(/([\t\n ]+)/);for(let[a,i]of n.entries()){if(a%2===1){r.push({type:"whitespace",value:/\n/.test(i)?` -`:" "});continue}if((a===0||a===n.length-1)&&i==="")continue;let u=i.split(new RegExp(`(${ai})`));for(let[o,s]of u.entries())if(!((o===0||o===u.length-1)&&s==="")){if(o%2===0){s!==""&&t({type:"word",value:s,kind:_e,hasLeadingPunctuation:gt.test(s[0]),hasTrailingPunctuation:gt.test(U(!1,s,-1))});continue}t(gt.test(s)?{type:"word",value:s,kind:ar,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:s,kind:oi.test(s)?Ce:De,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return r;function t(a){let i=U(!1,r,-1);(i==null?void 0:i.type)==="word"&&!u(_e,ar)&&![i.value,a.value].some(o=>/\u3000/.test(o))&&r.push({type:"whitespace",value:""}),r.push(a);function u(o,s){return i.kind===o&&a.kind===s||i.kind===s&&a.kind===o}}}function Re(e,r){let[,n,t,a]=r.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:n,marker:t,leadingSpaces:a}}function si(e,r){if(!e.ordered||e.children.length<2)return!1;let n=Number(Re(e.children[0],r.originalText).numberText),t=Number(Re(e.children[1],r.originalText).numberText);if(n===0&&e.children.length>2){let a=Number(Re(e.children[2],r.originalText).numberText);return t===1&&a===1}return t===1}function Ir(e,r){let{value:n}=e;return e.position.end.offset===r.length&&n.endsWith(` +`,a):p;o.push(d),u.length>0&&(i+=Xe(d));break}case X:for(let d=p.length-1;d>=0;d--)u.push({ind:D,mode:h,doc:p[d]});break;case ve:if(c>=2)throw new Error("There are too many 'cursor' in doc.");o.push(ir),c++;break;case Q:u.push({ind:Fl(D,r),mode:h,doc:p.contents});break;case Z:u.push({ind:El(D,p.n,r),mode:h,doc:p.contents});break;case ae:i-=pt(o);break;case G:switch(h){case re:if(!s){u.push({ind:D,mode:p.break?V:re,doc:p.contents});break}case V:{s=!1;let d={ind:D,mode:re,doc:p.contents},m=t-i,g=l.length>0;if(!p.break&&Pr(d,u,m,g,n))u.push(d);else if(p.expandedStates){let x=U(!1,p.expandedStates,-1);if(p.break){u.push({ind:D,mode:V,doc:x});break}else for(let F=1;F=p.expandedStates.length){u.push({ind:D,mode:V,doc:x});break}else{let B=p.expandedStates[F],b={ind:D,mode:re,doc:B};if(Pr(b,u,m,g,n)){u.push(b);break}}}else u.push({ind:D,mode:V,doc:p.contents});break}}p.id&&(n[p.id]=U(!1,u,-1).mode);break;case H:{let d=t-i,{parts:m}=p;if(m.length===0)break;let[g,x]=m,F={ind:D,mode:re,doc:g},B={ind:D,mode:V,doc:g},b=Pr(F,[],d,l.length>0,n,!0);if(m.length===1){b?u.push(F):u.push(B);break}let v={ind:D,mode:re,doc:x},y={ind:D,mode:V,doc:x};if(m.length===2){b?u.push(v,F):u.push(y,B);break}m.splice(0,2);let k={ind:D,mode:h,doc:Tr(m)},E=m[0];Pr({ind:D,mode:re,doc:[g,x,E]},[],d,l.length>0,n,!0)?u.push(k,v,F):b?u.push(k,y,F):u.push(k,y,B);break}case W:case oe:{let d=p.groupId?n[p.groupId]:h;if(d===V){let m=p.type===W?p.breakContents:p.negate?p.contents:Qe(p.contents);m&&u.push({ind:D,mode:h,doc:m})}if(d===re){let m=p.type===W?p.flatContents:p.negate?Qe(p.contents):p.contents;m&&u.push({ind:D,mode:h,doc:m})}break}case se:l.push({ind:D,mode:h,doc:p.contents});break;case ce:l.length>0&&u.push({ind:D,mode:h,doc:Ne});break;case $:switch(h){case re:if(p.hard)s=!0;else{p.soft||(o.push(" "),i+=1);break}case V:if(l.length>0){u.push({ind:D,mode:h,doc:p},...l.reverse()),l.length=0;break}p.literal?D.root?(o.push(a,D.root.value),i=D.root.length):(o.push(a),i=0):(i-=pt(o),o.push(a+D.value),i=D.length);break}break;case le:u.push({ind:D,mode:h,doc:p.contents});break;case ee:break;default:throw new Ae(p)}u.length===0&&l.length>0&&(u.push(...l.reverse()),l.length=0)}let f=o.indexOf(ir);if(f!==-1){let D=o.indexOf(ir,f+1),h=o.slice(0,f).join(""),p=o.slice(f+1,D).join(""),d=o.slice(D+1).join("");return{formatted:h+p+d,cursorNodeStart:h.length,cursorNodeText:p}}return{formatted:o.join("")}}var dt=class extends Error{name="UnexpectedNodeError";constructor(r,n,t="type"){super(`Unexpected ${n} node ${t}: ${JSON.stringify(r[t])}.`),this.node=r}},ri=dt;async function Cl(e,r){if(e.lang==="yaml"){let n=e.value.trim(),t=n?await r(n,{parser:"yaml"}):"";return qe([e.startDelimiter,O,t,t?O:"",e.endDelimiter])}}var ti=Cl;var bl=e=>e.split(/[/\\]/).pop();function ni(e,r){if(!r)return;let n=bl(r).toLowerCase();return e.find(t=>{var a,i;return((a=t.extensions)==null?void 0:a.some(u=>n.endsWith(u)))||((i=t.filenames)==null?void 0:i.some(u=>u.toLowerCase()===n))})}function xl(e,r){if(r)return e.find(({name:n})=>n.toLowerCase()===r)??e.find(({aliases:n})=>n==null?void 0:n.includes(r))??e.find(({extensions:n})=>n==null?void 0:n.includes(`.${r}`))}function yl(e,r){let n=e.plugins.flatMap(a=>a.languages??[]),t=xl(n,r.language)??ni(n,r.physicalFile)??ni(n,r.file)??(r.physicalFile,void 0);return t==null?void 0:t.parsers[0]}var ii=yl;var kl=new Proxy(()=>{},{get:()=>kl});function Te(e){return e.position.start.offset}function Se(e){return e.position.end.offset}var ui="(?:[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u2ff0-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4dbf\\u4e00-\\u9fff\\ua700-\\ua707\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879\\ud880-\\ud883\\ud885-\\ud887][\\udc00-\\udfff]|\\ud81b[\\udfe3]|\\ud82b[\\udff0-\\udff3\\udff5-\\udffb\\udffd-\\udffe]|\\ud82c[\\udc00-\\udd22\\udd32\\udd50-\\udd52\\udd55\\udd64-\\udd67]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\udedf\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf39\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d]|\\ud884[\\udc00-\\udf4a\\udf50-\\udfff]|\\ud888[\\udc00-\\udfaf])(?:[\\ufe00-\\ufe0f]|\\udb40[\\udd00-\\uddef])?",ai=new RegExp("[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",""),ur="[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061d-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0a76\\u0af0\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1b7d-\\u1b7e\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e4f\\u2e52-\\u2e5d\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud803[\\udead\\udf55-\\udf59\\udf86-\\udf89]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5a-\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udeb9\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udd44-\\udd46\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2\\udf00-\\udf09]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udf43-\\udf4f\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud80b[\\udff1-\\udff2]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]";var mt=new Set(["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"]),_r=new Set([...mt,"tableCell","paragraph","heading"]),ht=new RegExp(ur),Pe="non-cjk",De="cj-letter",Ce="k-letter",ar="cjk-punctuation";function Lr(e){let r=[],n=e.split(/([\t\n ]+)/);for(let[a,i]of n.entries()){if(a%2===1){r.push({type:"whitespace",value:/\n/.test(i)?` +`:" "});continue}if((a===0||a===n.length-1)&&i==="")continue;let u=i.split(new RegExp(`(${ui})`));for(let[o,s]of u.entries())if(!((o===0||o===u.length-1)&&s==="")){if(o%2===0){s!==""&&t({type:"word",value:s,kind:Pe,hasLeadingPunctuation:ht.test(s[0]),hasTrailingPunctuation:ht.test(U(!1,s,-1))});continue}t(ht.test(s)?{type:"word",value:s,kind:ar,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:s,kind:ai.test(s)?Ce:De,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return r;function t(a){let i=U(!1,r,-1);(i==null?void 0:i.type)==="word"&&!u(Pe,ar)&&![i.value,a.value].some(o=>/\u3000/.test(o))&&r.push({type:"whitespace",value:""}),r.push(a);function u(o,s){return i.kind===o&&a.kind===s||i.kind===s&&a.kind===o}}}function Re(e,r){let[,n,t,a]=r.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:n,marker:t,leadingSpaces:a}}function oi(e,r){if(!e.ordered||e.children.length<2)return!1;let n=Number(Re(e.children[0],r.originalText).numberText),t=Number(Re(e.children[1],r.originalText).numberText);if(n===0&&e.children.length>2){let a=Number(Re(e.children[2],r.originalText).numberText);return t===1&&a===1}return t===1}function Or(e,r){let{value:n}=e;return e.position.end.offset===r.length&&n.endsWith(` `)&&r.endsWith(` -`)?n.slice(0,-1):n}function be(e,r){return function n(t,a,i){let u={...r(t,a,i)};return u.children&&(u.children=u.children.map((o,s)=>n(o,s,[u,...i]))),u}(e,null,[])}function Ft(e){if((e==null?void 0:e.type)!=="link"||e.children.length!==1)return!1;let[r]=e.children;return Te(e)===Te(r)&&Se(e)===Se(r)}function wl(e,r){let{node:n}=e;if(n.type==="code"&&n.lang!==null){let t=ui(r,{language:n.lang});if(t)return async a=>{let i=r.__inJsTemplate?"~":"`",u=i.repeat(Math.max(3,wr(n.value,i)+1)),o={parser:t};n.lang==="tsx"&&(o.filepath="dummy.tsx");let s=await a(Ir(n,r.originalText),o);return qe([u,n.lang,n.meta?" "+n.meta:"",O,Ee(s),O,u])}}switch(n.type){case"front-matter":return t=>ni(n,t);case"import":case"export":return t=>t(n.value,{parser:"babel"});case"jsx":return t=>t(`<$>${n.value}`,{parser:"__js_expression",rootMarker:"mdx"})}return null}var ci=wl;var Al=new RegExp("^(?-{3}|\\+{3})(?[^\\n]*)\\n(?:|(?.*?)\\n)(?\\k|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function Bl(e){let r=e.match(Al);if(!r)return{content:e};let{startDelimiter:n,language:t,value:a="",endDelimiter:i}=r.groups,u=t.trim()||"yaml";if(n==="+++"&&(u="toml"),u!=="yaml"&&n!==i)return{content:e};let[o]=r;return{frontMatter:{type:"front-matter",lang:u,value:a,startDelimiter:n,endDelimiter:i,raw:o.replace(/\n$/,"")},content:R(!1,o,/[^\n]/g," ")+e.slice(o.length)}}var or=Bl;var li=["format","prettier"];function Et(e){let r=`@(${li.join("|")})`,n=new RegExp([``,`{\\s*\\/\\*\\s*${r}\\s*\\*\\/\\s*}`,``,`{\\s*\\/\\*\\s*${r}\\s*\\*\\/\\s*}`,``].join("|"),"m"),t=e.match(n);return(t==null?void 0:t.index)===0}var fi=e=>Et(or(e).content.trimStart()),Di=e=>{let r=or(e),n=``;return r.frontMatter?`${r.frontMatter.raw} +.*-->`].join("|"),"m"),t=e.match(n);return(t==null?void 0:t.index)===0}var li=e=>vt(or(e).content.trimStart()),fi=e=>{let r=or(e),n=``;return r.frontMatter?`${r.frontMatter.raw} ${n} ${r.content}`:`${n} -${r.content}`};var ql=/^.$/su;function Tl(e,r){return e=Sl(e,r),e=Pl(e),e=Ol(e,r),e=Il(e,r),e=Ll(e),e}function Sl(e,r){return be(e,n=>n.type!=="text"||n.value==="*"||n.value==="_"||!ql.test(n.value)||n.position.end.offset-n.position.start.offset===n.value.length?n:{...n,value:r.originalText.slice(n.position.start.offset,n.position.end.offset)})}function _l(e,r,n){return be(e,t=>{if(!t.children)return t;let a=t.children.reduce((i,u)=>{let o=U(!1,i,-1);return o&&r(o,u)?i.splice(-1,1,n(o,u)):i.push(u),i},[]);return{...t,children:a}})}function Pl(e){return _l(e,(r,n)=>r.type==="text"&&n.type==="text",(r,n)=>({type:"text",value:r.value+n.value,position:{start:r.position.start,end:n.position.end}}))}function Ll(e){return be(e,(r,n,[t])=>{if(r.type!=="text")return r;let{value:a}=r;return t.type==="paragraph"&&(n===0&&(a=a.trimStart()),n===t.children.length-1&&(a=a.trimEnd())),{type:"sentence",position:r.position,children:Or(a)}})}function Ol(e,r){return be(e,(n,t,a)=>{if(n.type==="code"){let i=/^\n?(?: {4,}|\t)/.test(r.originalText.slice(n.position.start.offset,n.position.end.offset));if(n.isIndented=i,i)for(let u=0;u{if(a.type==="list"&&a.children.length>0){for(let o=0;o1)return!0;let s=n(i);if(s===-1)return!1;if(a.children.length===1)return s%r.tabWidth===0;let l=n(u);return s!==l?!1:s%r.tabWidth===0?!0:Re(u,r.originalText).leadingSpaces.length>1}}var pi=Tl;var hi=Ie(kr(),1);function Nl(e){return(e==null?void 0:e.type)==="front-matter"}var di=Nl;var Rl=new Set(["position","raw"]);function mi(e,r,n){if((e.type==="front-matter"||e.type==="code"||e.type==="yaml"||e.type==="import"||e.type==="export"||e.type==="jsx")&&delete r.value,e.type==="list"&&delete r.isAligned,(e.type==="list"||e.type==="listItem")&&delete r.spread,e.type==="text"||(e.type==="inlineCode"&&(r.value=R(!1,e.value,` -`," ")),e.type==="wikiLink"&&(r.value=R(!1,e.value.trim(),/[\t\n]+/g," ")),(e.type==="definition"||e.type==="linkReference"||e.type==="imageReference")&&(r.label=(0,hi.default)(e.label)),(e.type==="definition"||e.type==="link"||e.type==="image")&&e.title&&(r.title=R(!1,e.title,/\\(?=["')])/g,"")),(n==null?void 0:n.type)==="root"&&n.children.length>0&&(n.children[0]===e||di(n.children[0])&&n.children[1]===e)&&e.type==="html"&&Et(e.value)))return null}mi.ignoredProperties=Rl;var gi=mi;var sr=null;function cr(e){if(sr!==null&&typeof sr.property){let r=sr;return sr=cr.prototype=null,r}return sr=cr.prototype=e??Object.create(null),new cr}var zl=10;for(let e=0;e<=zl;e++)cr();function Ct(e){return cr(e)}function Ml(e,r="type"){Ct(e);function n(t){let a=t[r],i=e[a];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${a}'.`),{node:t});return i}return n}var vi=Ml;var Ul={"front-matter":[],root:["children"],paragraph:["children"],sentence:["children"],word:[],whitespace:[],emphasis:["children"],strong:["children"],delete:["children"],inlineCode:[],wikiLink:[],link:["children"],image:[],blockquote:["children"],heading:["children"],code:[],html:[],list:["children"],thematicBreak:[],linkReference:["children"],imageReference:[],definition:[],footnote:["children"],footnoteReference:[],footnoteDefinition:["children"],table:["children"],tableCell:["children"],break:[],liquidNode:[],import:[],export:[],esComment:[],jsx:[],math:[],inlineMath:[],tableRow:["children"],listItem:["children"],text:[]},Fi=Ul;var Yl=vi(Fi),Ei=Yl;var Vl=new Set(["heading","tableCell","link","wikiLink"]),jl=new Set(`$(\xA3\xA5\xB7'"\u3008\u300A\u300C\u300E\u3010\u3014\u3016\u301D\uFE59\uFE5B\uFF04\uFF08\uFF3B\uFF5B\uFFE1\uFFE5[{\u2035\uFE34\uFE35\uFE37\uFE39\uFE3B\uFE3D\uFE3F\uFE41\uFE43\uFE4F\u3018\uFF5F\xAB`),$l=new Set(`!%),.:;?]}\xA2\xB0\xB7'"\u2020\u2021\u203A\u2103\u2236\u3001\u3002\u3003\u3006\u3015\u3017\u301E\uFE5A\uFE5C\uFF01\uFF02\uFF05\uFF07\uFF09\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF3D\uFF5D\uFF5E\u2013\u2014\u2022\u3009\u300B\u300D\uFE30\uFE31\uFE32\uFE33\uFE50\uFE51\uFE52\uFE53\uFE54\uFE55\uFE56\uFE58\uFE36\uFE38\uFE3A\uFE3C\uFE3E\uFE40\uFE42\uFE57\uFF5C\uFF64\u300F\u3011\u3019\u301F\uFF60\xBB\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\u2010\u30A0\u301C\uFF5E\u203C\u2047\u2048\u2049\u30FB`),Ci=new Set("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");function Gl({parent:e}){if(e.usesCJSpaces===void 0){let r={" ":0,"":0},{children:n}=e;for(let t=1;tr[""]}return e.usesCJSpaces}function Hl(e,r){if(r)return!0;let{previous:n,next:t}=e;if(!n||!t)return!0;let a=n.kind,i=t.kind;return xi(a)&&xi(i)||a===Ce&&i===De||i===Ce&&a===De?!0:a===ar||i===ar||a===De&&i===De?!1:Ci.has(t.value[0])||Ci.has(U(!1,n.value,-1))?!0:n.hasTrailingPunctuation||t.hasLeadingPunctuation?!1:Gl(e)}function bi(e){return e===_e||e===De||e===Ce}function xi(e){return e===_e||e===Ce}function Wl(e,r,n,t,a){if(n!=="always"||e.hasAncestor(s=>Vl.has(s.type)))return!1;if(t)return r!=="";if(r===" ")return!0;let{previous:i,next:u}=e;return!(r===""&&((i==null?void 0:i.kind)===Ce&&bi(u==null?void 0:u.kind)||(u==null?void 0:u.kind)===Ce&&bi(i==null?void 0:i.kind))||!a&&(u&&$l.has(u.value[0])||i&&jl.has(U(!1,i.value,-1))))}function bt(e,r,n,t){if(n==="preserve"&&r===` +${r.content}`};var ql=/^.$/su;function Tl(e,r){return e=Sl(e,r),e=_l(e),e=Ol(e,r),e=Il(e,r),e=Ll(e),e}function Sl(e,r){return be(e,n=>n.type!=="text"||n.value==="*"||n.value==="_"||!ql.test(n.value)||n.position.end.offset-n.position.start.offset===n.value.length?n:{...n,value:r.originalText.slice(n.position.start.offset,n.position.end.offset)})}function Pl(e,r,n){return be(e,t=>{if(!t.children)return t;let a=t.children.reduce((i,u)=>{let o=U(!1,i,-1);return o&&r(o,u)?i.splice(-1,1,n(o,u)):i.push(u),i},[]);return{...t,children:a}})}function _l(e){return Pl(e,(r,n)=>r.type==="text"&&n.type==="text",(r,n)=>({type:"text",value:r.value+n.value,position:{start:r.position.start,end:n.position.end}}))}function Ll(e){return be(e,(r,n,[t])=>{if(r.type!=="text")return r;let{value:a}=r;return t.type==="paragraph"&&(n===0&&(a=a.trimStart()),n===t.children.length-1&&(a=a.trimEnd())),{type:"sentence",position:r.position,children:Lr(a)}})}function Ol(e,r){return be(e,(n,t,a)=>{if(n.type==="code"){let i=/^\n?(?: {4,}|\t)/.test(r.originalText.slice(n.position.start.offset,n.position.end.offset));if(n.isIndented=i,i)for(let u=0;u{if(a.type==="list"&&a.children.length>0){for(let o=0;o1)return!0;let s=n(i);if(s===-1)return!1;if(a.children.length===1)return s%r.tabWidth===0;let l=n(u);return s!==l?!1:s%r.tabWidth===0?!0:Re(u,r.originalText).leadingSpaces.length>1}}var Di=Tl;var di=Ie(kr(),1);function Nl(e){return(e==null?void 0:e.type)==="front-matter"}var pi=Nl;var Rl=new Set(["position","raw"]);function hi(e,r,n){if((e.type==="front-matter"||e.type==="code"||e.type==="yaml"||e.type==="import"||e.type==="export"||e.type==="jsx")&&delete r.value,e.type==="list"&&delete r.isAligned,(e.type==="list"||e.type==="listItem")&&delete r.spread,e.type==="text"||(e.type==="inlineCode"&&(r.value=R(!1,e.value,` +`," ")),e.type==="wikiLink"&&(r.value=R(!1,e.value.trim(),/[\t\n]+/g," ")),(e.type==="definition"||e.type==="linkReference"||e.type==="imageReference")&&(r.label=(0,di.default)(e.label)),(e.type==="definition"||e.type==="link"||e.type==="image")&&e.title&&(r.title=R(!1,e.title,/\\(?=["')])/g,"")),(n==null?void 0:n.type)==="root"&&n.children.length>0&&(n.children[0]===e||pi(n.children[0])&&n.children[1]===e)&&e.type==="html"&&vt(e.value)))return null}hi.ignoredProperties=Rl;var mi=hi;var sr=null;function cr(e){if(sr!==null&&typeof sr.property){let r=sr;return sr=cr.prototype=null,r}return sr=cr.prototype=e??Object.create(null),new cr}var zl=10;for(let e=0;e<=zl;e++)cr();function Ft(e){return cr(e)}function Ml(e,r="type"){Ft(e);function n(t){let a=t[r],i=e[a];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${a}'.`),{node:t});return i}return n}var gi=Ml;var Ul={"front-matter":[],root:["children"],paragraph:["children"],sentence:["children"],word:[],whitespace:[],emphasis:["children"],strong:["children"],delete:["children"],inlineCode:[],wikiLink:[],link:["children"],image:[],blockquote:["children"],heading:["children"],code:[],html:[],list:["children"],thematicBreak:[],linkReference:["children"],imageReference:[],definition:[],footnote:["children"],footnoteReference:[],footnoteDefinition:["children"],table:["children"],tableCell:["children"],break:[],liquidNode:[],import:[],export:[],esComment:[],jsx:[],math:[],inlineMath:[],tableRow:["children"],listItem:["children"],text:[]},vi=Ul;var Yl=gi(vi),Fi=Yl;var Vl=new Set(["heading","tableCell","link","wikiLink"]),jl=new Set(`$(\xA3\xA5\xB7'"\u3008\u300A\u300C\u300E\u3010\u3014\u3016\u301D\uFE59\uFE5B\uFF04\uFF08\uFF3B\uFF5B\uFFE1\uFFE5[{\u2035\uFE34\uFE35\uFE37\uFE39\uFE3B\uFE3D\uFE3F\uFE41\uFE43\uFE4F\u3018\uFF5F\xAB`),$l=new Set(`!%),.:;?]}\xA2\xB0\xB7'"\u2020\u2021\u203A\u2103\u2236\u3001\u3002\u3003\u3006\u3015\u3017\u301E\uFE5A\uFE5C\uFF01\uFF02\uFF05\uFF07\uFF09\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF3D\uFF5D\uFF5E\u2013\u2014\u2022\u3009\u300B\u300D\uFE30\uFE31\uFE32\uFE33\uFE50\uFE51\uFE52\uFE53\uFE54\uFE55\uFE56\uFE58\uFE36\uFE38\uFE3A\uFE3C\uFE3E\uFE40\uFE42\uFE57\uFF5C\uFF64\u300F\u3011\u3019\u301F\uFF60\xBB\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\u2010\u30A0\u301C\uFF5E\u203C\u2047\u2048\u2049\u30FB`),Ei=new Set("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");function Gl({parent:e}){if(e.usesCJSpaces===void 0){let r={" ":0,"":0},{children:n}=e;for(let t=1;tr[""]}return e.usesCJSpaces}function Hl(e,r){if(r)return!0;let{previous:n,next:t}=e;if(!n||!t)return!0;let a=n.kind,i=t.kind;return bi(a)&&bi(i)||a===Ce&&i===De||i===Ce&&a===De?!0:a===ar||i===ar||a===De&&i===De?!1:Ei.has(t.value[0])||Ei.has(U(!1,n.value,-1))?!0:n.hasTrailingPunctuation||t.hasLeadingPunctuation?!1:Gl(e)}function Ci(e){return e===Pe||e===De||e===Ce}function bi(e){return e===Pe||e===Ce}function Wl(e,r,n,t,a){if(n!=="always"||e.hasAncestor(s=>Vl.has(s.type)))return!1;if(t)return r!=="";if(r===" ")return!0;let{previous:i,next:u}=e;return!(r===""&&((i==null?void 0:i.kind)===Ce&&Ci(u==null?void 0:u.kind)||(u==null?void 0:u.kind)===Ce&&Ci(i==null?void 0:i.kind))||!a&&(u&&$l.has(u.value[0])||i&&jl.has(U(!1,i.value,-1))))}function Et(e,r,n,t){if(n==="preserve"&&r===` `)return O;let a=r===" "||r===` -`&&Hl(e,t);return Wl(e,r,n,t,a)?a?Sr:rr:a?" ":""}var Kl=new Set(["listItem","definition","footnoteDefinition"]);function Jl(e,r,n){var a,i,u;let{node:t}=e;if(nf(e))return Or(r.originalText.slice(t.position.start.offset,t.position.end.offset)).map(o=>o.type==="word"?o.value:bt(e,o.value,r.proseWrap,!0));switch(t.type){case"front-matter":return r.originalText.slice(t.position.start.offset,t.position.end.offset);case"root":return t.children.length===0?"":[Qn(ef(e,r,n)),O];case"paragraph":return Y(e,r,n,{postprocessor:Tr});case"sentence":return Y(e,r,n);case"word":{let o=R(!1,R(!1,t.value,"*","\\*"),new RegExp([`(^|${ur})(_+)`,`(_+)(${ur}|$)`].join("|"),"g"),(c,f,D,h,p)=>R(!1,D?`${f}${D}`:`${h}${p}`,"_","\\_")),s=(c,f,D)=>c.type==="sentence"&&D===0,l=(c,f,D)=>Ft(c.children[D-1]);return o!==t.value&&(e.match(void 0,s,l)||e.match(void 0,s,(c,f,D)=>c.type==="emphasis"&&D===0,l))&&(o=o.replace(/^(\\?[*_])+/,c=>R(!1,c,"\\",""))),o}case"whitespace":{let{next:o}=e,s=o&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/.test(o.value)?"never":r.proseWrap;return bt(e,t.value,s)}case"emphasis":{let o;if(Ft(t.children[0]))o=r.originalText[t.position.start.offset];else{let{previous:s,next:l}=e;o=(s==null?void 0:s.type)==="sentence"&&((a=U(!1,s.children,-1))==null?void 0:a.type)==="word"&&!U(!1,s.children,-1).hasTrailingPunctuation||(l==null?void 0:l.type)==="sentence"&&((i=l.children[0])==null?void 0:i.type)==="word"&&!l.children[0].hasLeadingPunctuation||e.hasAncestor(f=>f.type==="emphasis")?"*":"_"}return[o,Y(e,r,n),o]}case"strong":return["**",Y(e,r,n),"**"];case"delete":return["~~",Y(e,r,n),"~~"];case"inlineCode":{let o=r.proseWrap==="preserve"?t.value:R(!1,t.value,` -`," "),s=Rn(o,"`"),l="`".repeat(s||1),c=o.startsWith("`")||o.endsWith("`")||/^[\n ]/.test(o)&&/[\n ]$/.test(o)&&/[^\n ]/.test(o)?" ":"";return[l,c,o,c,l]}case"wikiLink":{let o="";return r.proseWrap==="preserve"?o=t.value:o=R(!1,t.value,/[\t\n]+/g," "),["[[",o,"]]"]}case"link":switch(r.originalText[t.position.start.offset]){case"<":{let o="mailto:";return["<",t.url.startsWith(o)&&r.originalText.slice(t.position.start.offset+1,t.position.start.offset+1+o.length)!==o?t.url.slice(o.length):t.url,">"]}case"[":return["[",Y(e,r,n),"](",xt(t.url,")"),Nr(t.title,r),")"];default:return r.originalText.slice(t.position.start.offset,t.position.end.offset)}case"image":return["![",t.alt||"","](",xt(t.url,")"),Nr(t.title,r),")"];case"blockquote":return["> ",Fe("> ",Y(e,r,n))];case"heading":return["#".repeat(t.depth)+" ",Y(e,r,n)];case"code":{if(t.isIndented){let l=" ".repeat(4);return Fe(l,[l,Ee(t.value,O)])}let o=r.__inJsTemplate?"~":"`",s=o.repeat(Math.max(3,wr(t.value,o)+1));return[s,t.lang||"",t.meta?" "+t.meta:"",O,Ee(Ir(t,r.originalText),O),O,s]}case"html":{let{parent:o,isLast:s}=e,l=o.type==="root"&&s?t.value.trimEnd():t.value,c=/^$/s.test(l);return Ee(l,c?O:qe(tr))}case"list":{let o=ki(t,e.parent),s=si(t,r);return Y(e,r,n,{processor(l){let c=D(),f=l.node;if(f.children.length===2&&f.children[1].type==="html"&&f.children[0].position.start.column!==f.children[1].position.start.column)return[c,yi(l,r,n,c)];return[c,Fe(" ".repeat(c.length),yi(l,r,n,c))];function D(){let h=t.ordered?(l.isFirst?t.start:s?1:t.start+l.index)+(o%2===0?". ":") "):o%2===0?"- ":"* ";return t.isAligned||t.hasIndentedCodeblock?Xl(h,r):h}}})}case"thematicBreak":{let{ancestors:o}=e,s=o.findIndex(c=>c.type==="list");return s===-1?"---":ki(o[s],o[s+1])%2===0?"***":"---"}case"linkReference":return["[",Y(e,r,n),"]",t.referenceType==="full"?yt(t):t.referenceType==="collapsed"?"[]":""];case"imageReference":switch(t.referenceType){case"full":return["![",t.alt||"","]",yt(t)];default:return["![",t.alt,"]",t.referenceType==="collapsed"?"[]":""]}case"definition":{let o=r.proseWrap==="always"?Sr:" ";return Ze([yt(t),":",Qe([o,xt(t.url),t.title===null?"":[o,Nr(t.title,r,!1)]])])}case"footnote":return["[^",Y(e,r,n),"]"];case"footnoteReference":return qi(t);case"footnoteDefinition":{let o=t.children.length===1&&t.children[0].type==="paragraph"&&(r.proseWrap==="never"||r.proseWrap==="preserve"&&t.children[0].position.start.line===t.children[0].position.end.line);return[qi(t),": ",o?Y(e,r,n):Ze([Fe(" ".repeat(4),Y(e,r,n,{processor:({isFirst:s})=>s?Ze([rr,n()]):n()})),((u=e.next)==null?void 0:u.type)==="footnoteDefinition"?rr:""])]}case"table":return Zl(e,r,n);case"tableCell":return Y(e,r,n);case"break":return/\s/.test(r.originalText[t.position.start.offset])?[" ",qe(tr)]:["\\",O];case"liquidNode":return Ee(t.value,O);case"import":case"export":case"jsx":return t.value;case"esComment":return["{/* ",t.value," */}"];case"math":return["$$",O,t.value?[Ee(t.value,O),O]:"","$$"];case"inlineMath":return r.originalText.slice(Te(t),Se(t));case"tableRow":case"listItem":case"text":default:throw new ti(t,"Markdown")}}function yi(e,r,n,t){let{node:a}=e,i=a.checked===null?"":a.checked?"[x] ":"[ ] ";return[i,Y(e,r,n,{processor({node:u,isFirst:o}){if(o&&u.type!=="list")return Fe(" ".repeat(i.length),n());let s=" ".repeat(uf(r.tabWidth-t.length,0,3));return[s,Fe(s,n())]}})]}function Xl(e,r){let n=t();return e+" ".repeat(n>=4?0:n);function t(){let a=e.length%r.tabWidth;return a===0?0:r.tabWidth-a}}function ki(e,r){return Ql(e,r,n=>n.ordered===e.ordered)}function Ql(e,r,n){let t=-1;for(let a of r.children)if(a.type===e.type&&n(a)?t++:t=-1,a===e)return t}function Zl(e,r,n){let{node:t}=e,a=[],i=e.map(()=>e.map(({index:f})=>{let D=ri(n(),r).formatted,h=Xe(D);return a[f]=Math.max(a[f]||3,h),{text:D,width:h}},"children"),"children"),u=s(!1);if(r.proseWrap!=="never")return[er,u];let o=s(!0);return[er,Ze(Gn(o,u))];function s(f){let D=[c(i[0],f),l(f)];return i.length>1&&D.push(nr(Ne,i.slice(1).map(h=>c(h,f)))),nr(Ne,D)}function l(f){return`| ${a.map((h,p)=>{let d=t.align[p],m=d==="center"||d==="left"?":":"-",g=d==="center"||d==="right"?":":"-",x=f?"-":"-".repeat(h-2);return`${m}${x}${g}`}).join(" | ")} |`}function c(f,D){return`| ${f.map(({text:p,width:d},m)=>{if(D)return p;let g=a[m]-d,x=t.align[m],F=0;x==="right"?F=g:x==="center"&&(F=Math.floor(g/2));let B=g-F;return`${" ".repeat(F)}${p}${" ".repeat(B)}`}).join(" | ")} |`}}function ef(e,r,n){let t=[],a=null,{children:i}=e.node;for(let[u,o]of i.entries())switch(kt(o)){case"start":a===null&&(a={index:u,offset:o.position.end.offset});break;case"end":a!==null&&(t.push({start:a,end:{index:u,offset:o.position.start.offset}}),a=null);break;default:break}return Y(e,r,n,{processor({index:u}){if(t.length>0){let o=t[0];if(u===o.start.index)return[wi(i[o.start.index]),r.originalText.slice(o.start.offset,o.end.offset),wi(i[o.end.index])];if(o.start.indexo,processor:i=()=>n()}=t,u=[];return e.each(()=>{let o=i(e);o!==!1&&(u.length>0&&rf(e)&&(u.push(O),(tf(e,r)||Bi(e))&&u.push(O),Bi(e)&&u.push(O)),u.push(o))},"children"),a(u)}function wi(e){if(e.type==="html")return e.value;if(e.type==="paragraph"&&Array.isArray(e.children)&&e.children.length===1&&e.children[0].type==="esComment")return["{/* ",e.children[0].value," */}"]}function kt(e){let r;if(e.type==="html")r=e.value.match(/^$/);else{let n;e.type==="esComment"?n=e:e.type==="paragraph"&&e.children.length===1&&e.children[0].type==="esComment"&&(n=e.children[0]),n&&(r=n.value.match(/^prettier-ignore(?:-(start|end))?$/))}return r?r[1]||"next":!1}function rf({node:e,parent:r}){let n=vt.has(e.type),t=e.type==="html"&&Lr.has(r.type);return!n&&!t}function Ai(e,r){return e.type==="listItem"&&(e.spread||r.originalText.charAt(e.position.end.offset-1)===` -`)}function tf({node:e,previous:r,parent:n},t){if(Ai(r,t))return!0;let u=r.type===e.type&&Kl.has(e.type),o=n.type==="listItem"&&!Ai(n,t),s=kt(r)==="next",l=e.type==="html"&&r.type==="html"&&r.position.end.line+1===e.position.start.line,c=e.type==="html"&&n.type==="listItem"&&r.type==="paragraph"&&r.position.end.line+1===e.position.start.line;return!(u||o||s||l||c)}function Bi({node:e,previous:r}){let n=r.type==="list",t=e.type==="code"&&e.isIndented;return n&&t}function nf(e){let r=e.findAncestor(n=>n.type==="linkReference"||n.type==="imageReference");return r&&(r.type!=="linkReference"||r.referenceType!=="full")}function xt(e,r=[]){let n=[" ",...Array.isArray(r)?r:[r]];return new RegExp(n.map(t=>`\\${t}`).join("|")).test(e)?`<${e}>`:e}function Nr(e,r,n=!0){if(!e)return"";if(n)return" "+Nr(e,r,!1);if(e=R(!1,e,/\\(?=["')])/g,""),e.includes('"')&&e.includes("'")&&!e.includes(")"))return`(${e})`;let t=Yn(e,r.singleQuote);return e=R(!1,e,"\\","\\\\"),e=R(!1,e,t,`\\${t}`),`${t}${e}${t}`}function uf(e,r,n){return en?n:e}function af(e){return e.index>0&&kt(e.previous)==="next"}function yt(e){return`[${(0,Ti.default)(e.label)}]`}function qi(e){return`[^${e.label}]`}var of={preprocess:pi,print:Jl,embed:ci,massageAstNode:gi,hasPrettierIgnore:af,insertPragma:Di,getVisitorKeys:Ei},Si=of;var lt={};In(lt,{markdown:()=>xg,mdx:()=>yg,remark:()=>xg});var Hc=Ie(ws(),1),Wc=Ie(Fc(),1),Kc=Ie(Pc(),1),Jc=Ie(Oc(),1);var hg=/^import\s/,mg=/^export\s/,Ic="[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)*|",Nc=/|/,gg=/^{\s*\/\*(.*)\*\/\s*}/,vg=` +`&&Hl(e,t);return Wl(e,r,n,t,a)?a?Sr:rr:a?" ":""}var Kl=new Set(["listItem","definition","footnoteDefinition"]);function Jl(e,r,n){var a,i,u;let{node:t}=e;if(nf(e))return Lr(r.originalText.slice(t.position.start.offset,t.position.end.offset)).map(o=>o.type==="word"?o.value:Et(e,o.value,r.proseWrap,!0));switch(t.type){case"front-matter":return r.originalText.slice(t.position.start.offset,t.position.end.offset);case"root":return t.children.length===0?"":[Xn(ef(e,r,n)),O];case"paragraph":return Y(e,r,n,{postprocessor:Tr});case"sentence":return Y(e,r,n);case"word":{let o=R(!1,R(!1,t.value,"*","\\*"),new RegExp([`(^|${ur})(_+)`,`(_+)(${ur}|$)`].join("|"),"g"),(c,f,D,h,p)=>R(!1,D?`${f}${D}`:`${h}${p}`,"_","\\_")),s=(c,f,D)=>c.type==="sentence"&&D===0,l=(c,f,D)=>gt(c.children[D-1]);return o!==t.value&&(e.match(void 0,s,l)||e.match(void 0,s,(c,f,D)=>c.type==="emphasis"&&D===0,l))&&(o=o.replace(/^(\\?[*_])+/,c=>R(!1,c,"\\",""))),o}case"whitespace":{let{next:o}=e,s=o&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/.test(o.value)?"never":r.proseWrap;return Et(e,t.value,s)}case"emphasis":{let o;if(gt(t.children[0]))o=r.originalText[t.position.start.offset];else{let{previous:s,next:l}=e;o=(s==null?void 0:s.type)==="sentence"&&((a=U(!1,s.children,-1))==null?void 0:a.type)==="word"&&!U(!1,s.children,-1).hasTrailingPunctuation||(l==null?void 0:l.type)==="sentence"&&((i=l.children[0])==null?void 0:i.type)==="word"&&!l.children[0].hasLeadingPunctuation||e.hasAncestor(f=>f.type==="emphasis")?"*":"_"}return[o,Y(e,r,n),o]}case"strong":return["**",Y(e,r,n),"**"];case"delete":return["~~",Y(e,r,n),"~~"];case"inlineCode":{let o=r.proseWrap==="preserve"?t.value:R(!1,t.value,` +`," "),s=Nn(o,"`"),l="`".repeat(s||1),c=o.startsWith("`")||o.endsWith("`")||/^[\n ]/.test(o)&&/[\n ]$/.test(o)&&/[^\n ]/.test(o)?" ":"";return[l,c,o,c,l]}case"wikiLink":{let o="";return r.proseWrap==="preserve"?o=t.value:o=R(!1,t.value,/[\t\n]+/g," "),["[[",o,"]]"]}case"link":switch(r.originalText[t.position.start.offset]){case"<":{let o="mailto:";return["<",t.url.startsWith(o)&&r.originalText.slice(t.position.start.offset+1,t.position.start.offset+1+o.length)!==o?t.url.slice(o.length):t.url,">"]}case"[":return["[",Y(e,r,n),"](",Ct(t.url,")"),Ir(t.title,r),")"];default:return r.originalText.slice(t.position.start.offset,t.position.end.offset)}case"image":return["![",t.alt||"","](",Ct(t.url,")"),Ir(t.title,r),")"];case"blockquote":return["> ",Fe("> ",Y(e,r,n))];case"heading":return["#".repeat(t.depth)+" ",Y(e,r,n)];case"code":{if(t.isIndented){let l=" ".repeat(4);return Fe(l,[l,Ee(t.value,O)])}let o=r.__inJsTemplate?"~":"`",s=o.repeat(Math.max(3,wr(t.value,o)+1));return[s,t.lang||"",t.meta?" "+t.meta:"",O,Ee(Or(t,r.originalText),O),O,s]}case"html":{let{parent:o,isLast:s}=e,l=o.type==="root"&&s?t.value.trimEnd():t.value,c=/^$/s.test(l);return Ee(l,c?O:qe(tr))}case"list":{let o=yi(t,e.parent),s=oi(t,r);return Y(e,r,n,{processor(l){let c=D(),f=l.node;if(f.children.length===2&&f.children[1].type==="html"&&f.children[0].position.start.column!==f.children[1].position.start.column)return[c,xi(l,r,n,c)];return[c,Fe(" ".repeat(c.length),xi(l,r,n,c))];function D(){let h=t.ordered?(l.isFirst?t.start:s?1:t.start+l.index)+(o%2===0?". ":") "):o%2===0?"- ":"* ";return t.isAligned||t.hasIndentedCodeblock?Xl(h,r):h}}})}case"thematicBreak":{let{ancestors:o}=e,s=o.findIndex(c=>c.type==="list");return s===-1?"---":yi(o[s],o[s+1])%2===0?"***":"---"}case"linkReference":return["[",Y(e,r,n),"]",t.referenceType==="full"?bt(t):t.referenceType==="collapsed"?"[]":""];case"imageReference":switch(t.referenceType){case"full":return["![",t.alt||"","]",bt(t)];default:return["![",t.alt,"]",t.referenceType==="collapsed"?"[]":""]}case"definition":{let o=r.proseWrap==="always"?Sr:" ";return Ze([bt(t),":",Qe([o,Ct(t.url),t.title===null?"":[o,Ir(t.title,r,!1)]])])}case"footnote":return["[^",Y(e,r,n),"]"];case"footnoteReference":return Bi(t);case"footnoteDefinition":{let o=t.children.length===1&&t.children[0].type==="paragraph"&&(r.proseWrap==="never"||r.proseWrap==="preserve"&&t.children[0].position.start.line===t.children[0].position.end.line);return[Bi(t),": ",o?Y(e,r,n):Ze([Fe(" ".repeat(4),Y(e,r,n,{processor:({isFirst:s})=>s?Ze([rr,n()]):n()})),((u=e.next)==null?void 0:u.type)==="footnoteDefinition"?rr:""])]}case"table":return Zl(e,r,n);case"tableCell":return Y(e,r,n);case"break":return/\s/.test(r.originalText[t.position.start.offset])?[" ",qe(tr)]:["\\",O];case"liquidNode":return Ee(t.value,O);case"import":case"export":case"jsx":return t.value;case"esComment":return["{/* ",t.value," */}"];case"math":return["$$",O,t.value?[Ee(t.value,O),O]:"","$$"];case"inlineMath":return r.originalText.slice(Te(t),Se(t));case"tableRow":case"listItem":case"text":default:throw new ri(t,"Markdown")}}function xi(e,r,n,t){let{node:a}=e,i=a.checked===null?"":a.checked?"[x] ":"[ ] ";return[i,Y(e,r,n,{processor({node:u,isFirst:o}){if(o&&u.type!=="list")return Fe(" ".repeat(i.length),n());let s=" ".repeat(uf(r.tabWidth-t.length,0,3));return[s,Fe(s,n())]}})]}function Xl(e,r){let n=t();return e+" ".repeat(n>=4?0:n);function t(){let a=e.length%r.tabWidth;return a===0?0:r.tabWidth-a}}function yi(e,r){return Ql(e,r,n=>n.ordered===e.ordered)}function Ql(e,r,n){let t=-1;for(let a of r.children)if(a.type===e.type&&n(a)?t++:t=-1,a===e)return t}function Zl(e,r,n){let{node:t}=e,a=[],i=e.map(()=>e.map(({index:f})=>{let D=ei(n(),r).formatted,h=Xe(D);return a[f]=Math.max(a[f]||3,h),{text:D,width:h}},"children"),"children"),u=s(!1);if(r.proseWrap!=="never")return[er,u];let o=s(!0);return[er,Ze($n(o,u))];function s(f){let D=[c(i[0],f),l(f)];return i.length>1&&D.push(nr(Ne,i.slice(1).map(h=>c(h,f)))),nr(Ne,D)}function l(f){return`| ${a.map((h,p)=>{let d=t.align[p],m=d==="center"||d==="left"?":":"-",g=d==="center"||d==="right"?":":"-",x=f?"-":"-".repeat(h-2);return`${m}${x}${g}`}).join(" | ")} |`}function c(f,D){return`| ${f.map(({text:p,width:d},m)=>{if(D)return p;let g=a[m]-d,x=t.align[m],F=0;x==="right"?F=g:x==="center"&&(F=Math.floor(g/2));let B=g-F;return`${" ".repeat(F)}${p}${" ".repeat(B)}`}).join(" | ")} |`}}function ef(e,r,n){let t=[],a=null,{children:i}=e.node;for(let[u,o]of i.entries())switch(xt(o)){case"start":a===null&&(a={index:u,offset:o.position.end.offset});break;case"end":a!==null&&(t.push({start:a,end:{index:u,offset:o.position.start.offset}}),a=null);break;default:break}return Y(e,r,n,{processor({index:u}){if(t.length>0){let o=t[0];if(u===o.start.index)return[ki(i[o.start.index]),r.originalText.slice(o.start.offset,o.end.offset),ki(i[o.end.index])];if(o.start.indexo,processor:i=()=>n()}=t,u=[];return e.each(()=>{let o=i(e);o!==!1&&(u.length>0&&rf(e)&&(u.push(O),(tf(e,r)||Ai(e))&&u.push(O),Ai(e)&&u.push(O)),u.push(o))},"children"),a(u)}function ki(e){if(e.type==="html")return e.value;if(e.type==="paragraph"&&Array.isArray(e.children)&&e.children.length===1&&e.children[0].type==="esComment")return["{/* ",e.children[0].value," */}"]}function xt(e){let r;if(e.type==="html")r=e.value.match(/^$/);else{let n;e.type==="esComment"?n=e:e.type==="paragraph"&&e.children.length===1&&e.children[0].type==="esComment"&&(n=e.children[0]),n&&(r=n.value.match(/^prettier-ignore(?:-(start|end))?$/))}return r?r[1]||"next":!1}function rf({node:e,parent:r}){let n=mt.has(e.type),t=e.type==="html"&&_r.has(r.type);return!n&&!t}function wi(e,r){return e.type==="listItem"&&(e.spread||r.originalText.charAt(e.position.end.offset-1)===` +`)}function tf({node:e,previous:r,parent:n},t){if(wi(r,t))return!0;let u=r.type===e.type&&Kl.has(e.type),o=n.type==="listItem"&&!wi(n,t),s=xt(r)==="next",l=e.type==="html"&&r.type==="html"&&r.position.end.line+1===e.position.start.line,c=e.type==="html"&&n.type==="listItem"&&r.type==="paragraph"&&r.position.end.line+1===e.position.start.line;return!(u||o||s||l||c)}function Ai({node:e,previous:r}){let n=r.type==="list",t=e.type==="code"&&e.isIndented;return n&&t}function nf(e){let r=e.findAncestor(n=>n.type==="linkReference"||n.type==="imageReference");return r&&(r.type!=="linkReference"||r.referenceType!=="full")}function Ct(e,r=[]){let n=[" ",...Array.isArray(r)?r:[r]];return new RegExp(n.map(t=>`\\${t}`).join("|")).test(e)?`<${e}>`:e}function Ir(e,r,n=!0){if(!e)return"";if(n)return" "+Ir(e,r,!1);if(e=R(!1,e,/\\(?=["')])/g,""),e.includes('"')&&e.includes("'")&&!e.includes(")"))return`(${e})`;let t=Un(e,r.singleQuote);return e=R(!1,e,"\\","\\\\"),e=R(!1,e,t,`\\${t}`),`${t}${e}${t}`}function uf(e,r,n){return en?n:e}function af(e){return e.index>0&&xt(e.previous)==="next"}function bt(e){return`[${(0,qi.default)(e.label)}]`}function Bi(e){return`[^${e.label}]`}var of={preprocess:Di,print:Jl,embed:si,massageAstNode:mi,hasPrettierIgnore:af,insertPragma:fi,getVisitorKeys:Fi},Ti=of;var Pn={};On(Pn,{markdown:()=>xg,mdx:()=>yg,remark:()=>xg});var Gc=Ie(ks(),1),Hc=Ie(vc(),1),Wc=Ie(Pc(),1),Kc=Ie(Lc(),1);var hg=/^import\s/,mg=/^export\s/,Oc="[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)*|",Ic=/|/,gg=/^{\s*\/\*(.*)\*\/\s*}/,vg=` -`,Rc=e=>hg.test(e),Pn=e=>mg.test(e),zc=(e,r)=>{let n=r.indexOf(vg),t=r.slice(0,n);if(Pn(t)||Rc(t))return e(t)({type:Pn(t)?"export":"import",value:t})},Mc=(e,r)=>{let n=gg.exec(r);if(n)return e(n[0])({type:"esComment",value:n[1].trim()})};zc.locator=e=>Pn(e)||Rc(e)?-1:1;Mc.locator=(e,r)=>e.indexOf("{",r);var Uc=function(){let{Parser:e}=this,{blockTokenizers:r,blockMethods:n,inlineTokenizers:t,inlineMethods:a}=e.prototype;r.esSyntax=zc,t.esComment=Mc,n.splice(n.indexOf("paragraph"),0,"esSyntax"),a.splice(a.indexOf("text"),0,"esComment")};function Fg(){return e=>be(e,(r,n,[t])=>r.type!=="html"||Nc.test(r.value)||Lr.has(t.type)?r:{...r,type:"jsx"})}var Yc=Fg;var Eg=function(){let e=this.Parser.prototype;e.blockMethods=["frontMatter",...e.blockMethods],e.blockTokenizers.frontMatter=r;function r(n,t){let a=or(t);if(a.frontMatter)return n(a.frontMatter.raw)(a.frontMatter)}r.onlyAtStart=!0},Vc=Eg;var Cg=function(){let e=this.Parser.prototype,r=e.inlineMethods;r.splice(r.indexOf("text"),0,"liquid"),e.inlineTokenizers.liquid=n;function n(t,a){let i=a.match(/^({%.*?%}|{{.*?}})/s);if(i)return t(i[0])({type:"liquidNode",value:i[0]})}n.locator=function(t,a){return t.indexOf("{",a)}},jc=Cg;var bg=function(){let e="wikiLink",r=/^\[\[(?.+?)]]/s,n=this.Parser.prototype,t=n.inlineMethods;t.splice(t.indexOf("link"),0,e),n.inlineTokenizers.wikiLink=a;function a(i,u){let o=r.exec(u);if(o){let s=o.groups.linkContents.trim();return i(o[0])({type:e,value:s})}}a.locator=function(i,u){return i.indexOf("[",u)}},$c=bg;function Xc({isMDX:e}){return r=>{let n=(0,Wc.default)().use(Hc.default,{commonmark:!0,...e&&{blocks:[Ic]}}).use(Jc.default).use(Vc).use(Kc.default).use(e?Uc:Gc).use(jc).use(e?Yc:Gc).use($c);return n.run(n.parse(r))}}function Gc(){}var Qc={astFormat:"mdast",hasPragma:fi,locStart:Te,locEnd:Se},xg={...Qc,parse:Xc({isMDX:!1})},yg={...Qc,parse:Xc({isMDX:!0})};var Zc=[{linguistLanguageId:222,name:"Markdown",type:"prose",color:"#083fa1",aliases:["pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"source.gfm",parsers:["markdown"],vscodeLanguageIds:["markdown"]},{linguistLanguageId:222,name:"MDX",type:"prose",color:"#083fa1",aliases:["pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".mdx"],filenames:[],tmScope:"source.gfm",parsers:["mdx"],vscodeLanguageIds:["mdx"]}];var Ln={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var kg={proseWrap:Ln.proseWrap,singleQuote:Ln.singleQuote},el=kg;var wg={mdast:Si};var YE=On;export{YE as default,Zc as languages,el as options,lt as parsers,wg as printers}; +`,Nc=e=>hg.test(e),Sn=e=>mg.test(e),Rc=(e,r)=>{let n=r.indexOf(vg),t=r.slice(0,n);if(Sn(t)||Nc(t))return e(t)({type:Sn(t)?"export":"import",value:t})},zc=(e,r)=>{let n=gg.exec(r);if(n)return e(n[0])({type:"esComment",value:n[1].trim()})};Rc.locator=e=>Sn(e)||Nc(e)?-1:1;zc.locator=(e,r)=>e.indexOf("{",r);var Mc=function(){let{Parser:e}=this,{blockTokenizers:r,blockMethods:n,inlineTokenizers:t,inlineMethods:a}=e.prototype;r.esSyntax=Rc,t.esComment=zc,n.splice(n.indexOf("paragraph"),0,"esSyntax"),a.splice(a.indexOf("text"),0,"esComment")};function Fg(){return e=>be(e,(r,n,[t])=>r.type!=="html"||Ic.test(r.value)||_r.has(t.type)?r:{...r,type:"jsx"})}var Uc=Fg;var Eg=function(){let e=this.Parser.prototype;e.blockMethods=["frontMatter",...e.blockMethods],e.blockTokenizers.frontMatter=r;function r(n,t){let a=or(t);if(a.frontMatter)return n(a.frontMatter.raw)(a.frontMatter)}r.onlyAtStart=!0},Yc=Eg;var Cg=function(){let e=this.Parser.prototype,r=e.inlineMethods;r.splice(r.indexOf("text"),0,"liquid"),e.inlineTokenizers.liquid=n;function n(t,a){let i=a.match(/^({%.*?%}|{{.*?}})/s);if(i)return t(i[0])({type:"liquidNode",value:i[0]})}n.locator=function(t,a){return t.indexOf("{",a)}},Vc=Cg;var bg=function(){let e="wikiLink",r=/^\[\[(?.+?)]]/s,n=this.Parser.prototype,t=n.inlineMethods;t.splice(t.indexOf("link"),0,e),n.inlineTokenizers.wikiLink=a;function a(i,u){let o=r.exec(u);if(o){let s=o.groups.linkContents.trim();return i(o[0])({type:e,value:s})}}a.locator=function(i,u){return i.indexOf("[",u)}},jc=bg;function Jc({isMDX:e}){return r=>{let n=(0,Hc.default)().use(Gc.default,{commonmark:!0,...e&&{blocks:[Oc]}}).use(Kc.default).use(Yc).use(Wc.default).use(e?Mc:$c).use(Vc).use(e?Uc:$c).use(jc);return n.run(n.parse(r))}}function $c(){}var Xc={astFormat:"mdast",hasPragma:li,locStart:Te,locEnd:Se},xg={...Xc,parse:Jc({isMDX:!1})},yg={...Xc,parse:Jc({isMDX:!0})};var Qc=[{linguistLanguageId:222,name:"Markdown",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"text.md",parsers:["markdown"],vscodeLanguageIds:["markdown"]},{linguistLanguageId:222,name:"MDX",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".mdx"],filenames:[],tmScope:"text.md",parsers:["mdx"],vscodeLanguageIds:["mdx"]}];var _n={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var kg={proseWrap:_n.proseWrap,singleQuote:_n.singleQuote},Zc=kg;var wg={mdast:Ti};var YE=Ln;export{YE as default,Qc as languages,Zc as options,Pn as parsers,wg as printers}; diff --git a/node_modules/prettier/plugins/meriyah.js b/node_modules/prettier/plugins/meriyah.js index b8cf4bf..6776ad9 100644 --- a/node_modules/prettier/plugins/meriyah.js +++ b/node_modules/prettier/plugins/meriyah.js @@ -1,5 +1,5 @@ -(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.meriyah=e()}})(function(){"use strict";var Nu=Object.create;var I2=Object.defineProperty;var Vu=Object.getOwnPropertyDescriptor;var Ru=Object.getOwnPropertyNames;var Ou=Object.getPrototypeOf,Uu=Object.prototype.hasOwnProperty;var Mu=(e,u)=>()=>(u||e((u={exports:{}}).exports,u),u.exports),we=(e,u)=>{for(var n in u)I2(e,n,{get:u[n],enumerable:!0})},Se=(e,u,n,i)=>{if(u&&typeof u=="object"||typeof u=="function")for(let t of Ru(u))!Uu.call(e,t)&&t!==n&&I2(e,t,{get:()=>u[t],enumerable:!(i=Vu(u,t))||i.enumerable});return e};var Ju=(e,u,n)=>(n=e!=null?Nu(Ou(e)):{},Se(u||!e||!e.__esModule?I2(n,"default",{value:e,enumerable:!0}):n,e)),ju=e=>Se(I2({},"__esModule",{value:!0}),e);var Cu=Mu(a2=>{"use strict";Object.defineProperty(a2,"__esModule",{value:!0});a2.extract=A0;a2.parse=P0;a2.parseWithComments=Au;a2.print=E0;a2.strip=C0;var y0=/\*\/$/,k0=/^\/\*\*?/,Du=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,h0=/(^|\s+)\/\/([^\r\n]*)/g,yu=/^(\r?\n)+/,D0=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,ku=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,b0=/(\r?\n|^) *\* ?/g,bu=[];function A0(e){let u=e.match(Du);return u?u[0].trimLeft():""}function C0(e){let u=e.match(Du);return u&&u[0]?e.substring(u[0].length):e}function P0(e){return Au(e).pragmas}function Au(e){let u=` -`;e=e.replace(k0,"").replace(y0,"").replace(b0,"$1");let n="";for(;n!==e;)n=e,e=e.replace(D0,`${u}$1 $2${u}`);e=e.replace(yu,"").trimRight();let i=Object.create(null),t=e.replace(ku,"").replace(yu,"").trimRight(),o;for(;o=ku.exec(e);){let l=o[2].replace(h0,"");typeof i[o[1]]=="string"||Array.isArray(i[o[1]])?i[o[1]]=bu.concat(i[o[1]],l):i[o[1]]=l}return{comments:t,pragmas:i}}function E0({comments:e="",pragmas:u={}}){let n=` -`,i="/**",t=" *",o=" */",l=Object.keys(u),f=l.map(a=>hu(a,u[a])).reduce((a,g)=>a.concat(g),[]).map(a=>`${t} ${a}${n}`).join("");if(!e){if(l.length===0)return"";if(l.length===1&&!Array.isArray(u[l[0]])){let a=u[l[0]];return`${i} ${hu(l[0],a)[0]}${o}`}}let c=e.split(n).map(a=>`${t} ${a}`).join(n)+n;return i+n+(e?c:"")+(e&&l.length?t+n:"")+f+o}function hu(e,u){return bu.concat(u).map(n=>`@${e} ${n}`.trim())}});var K0={};we(K0,{parsers:()=>G2});var G2={};we(G2,{meriyah:()=>H0});var Xu={0:"Unexpected token",28:"Unexpected token: '%0'",1:"Octal escape sequences are not allowed in strict mode",2:"Octal escape sequences are not allowed in template strings",3:"Unexpected token `#`",4:"Illegal Unicode escape sequence",5:"Invalid code point %0",6:"Invalid hexadecimal escape sequence",8:"Octal literals are not allowed in strict mode",7:"Decimal integer literals with a leading zero are forbidden in strict mode",9:"Expected number in radix %0",146:"Invalid left-hand side assignment to a destructible right-hand side",10:"Non-number found after exponent indicator",11:"Invalid BigIntLiteral",12:"No identifiers allowed directly after numeric literal",13:"Escapes \\8 or \\9 are not syntactically valid escapes",14:"Unterminated string literal",15:"Unterminated template literal",16:"Multiline comment was not closed properly",17:"The identifier contained dynamic unicode escape that was not closed",18:"Illegal character '%0'",19:"Missing hexadecimal digits",20:"Invalid implicit octal",21:"Invalid line break in string literal",22:"Only unicode escapes are legal in identifier names",23:"Expected '%0'",24:"Invalid left-hand side in assignment",25:"Invalid left-hand side in async arrow",26:'Calls to super must be in the "constructor" method of a class expression or class declaration that has a superclass',27:"Member access on super must be in a method",29:"Await expression not allowed in formal parameter",30:"Yield expression not allowed in formal parameter",93:"Unexpected token: 'escaped keyword'",31:"Unary expressions as the left operand of an exponentiation expression must be disambiguated with parentheses",120:"Async functions can only be declared at the top level or inside a block",32:"Unterminated regular expression",33:"Unexpected regular expression flag",34:"Duplicate regular expression flag '%0'",35:"%0 functions must have exactly %1 argument%2",36:"Setter function argument must not be a rest parameter",37:"%0 declaration must have a name in this context",38:"Function name may not contain any reserved words or be eval or arguments in strict mode",39:"The rest operator is missing an argument",40:"A getter cannot be a generator",41:"A setter cannot be a generator",42:"A computed property name must be followed by a colon or paren",131:"Object literal keys that are strings or numbers must be a method or have a colon",44:"Found `* async x(){}` but this should be `async * x(){}`",43:"Getters and setters can not be generators",45:"'%0' can not be generator method",46:"No line break is allowed after '=>'",47:"The left-hand side of the arrow can only be destructed through assignment",48:"The binding declaration is not destructible",49:"Async arrow can not be followed by new expression",50:"Classes may not have a static property named 'prototype'",51:"Class constructor may not be a %0",52:"Duplicate constructor method in class",53:"Invalid increment/decrement operand",54:"Invalid use of `new` keyword on an increment/decrement expression",55:"`=>` is an invalid assignment target",56:"Rest element may not have a trailing comma",57:"Missing initializer in %0 declaration",58:"'for-%0' loop head declarations can not have an initializer",59:"Invalid left-hand side in for-%0 loop: Must have a single binding",60:"Invalid shorthand property initializer",61:"Property name __proto__ appears more than once in object literal",62:"Let is disallowed as a lexically bound name",63:"Invalid use of '%0' inside new expression",64:"Illegal 'use strict' directive in function with non-simple parameter list",65:'Identifier "let" disallowed as left-hand side expression in strict mode',66:"Illegal continue statement",67:"Illegal break statement",68:"Cannot have `let[...]` as a var name in strict mode",69:"Invalid destructuring assignment target",70:"Rest parameter may not have a default initializer",71:"The rest argument must the be last parameter",72:"Invalid rest argument",74:"In strict mode code, functions can only be declared at top level or inside a block",75:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement",76:"Without web compatibility enabled functions can not be declared at top level, inside a block, or as the body of an if statement",77:"Class declaration can't appear in single-statement context",78:"Invalid left-hand side in for-%0",79:"Invalid assignment in for-%0",80:"for await (... of ...) is only valid in async functions and async generators",81:"The first token after the template expression should be a continuation of the template",83:"`let` declaration not allowed here and `let` cannot be a regular var name in strict mode",82:"`let \n [` is a restricted production at the start of a statement",84:"Catch clause requires exactly one parameter, not more (and no trailing comma)",85:"Catch clause parameter does not support default values",86:"Missing catch or finally after try",87:"More than one default clause in switch statement",88:"Illegal newline after throw",89:"Strict mode code may not include a with statement",90:"Illegal return statement",91:"The left hand side of the for-header binding declaration is not destructible",92:"new.target only allowed within functions",94:"'#' not followed by identifier",100:"Invalid keyword",99:"Can not use 'let' as a class name",98:"'A lexical declaration can't define a 'let' binding",97:"Can not use `let` as variable name in strict mode",95:"'%0' may not be used as an identifier in this context",96:"Await is only valid in async functions",101:"The %0 keyword can only be used with the module goal",102:"Unicode codepoint must not be greater than 0x10FFFF",103:"%0 source must be string",104:"Only a identifier can be used to indicate alias",105:"Only '*' or '{...}' can be imported after default",106:"Trailing decorator may be followed by method",107:"Decorators can't be used with a constructor",109:"HTML comments are only allowed with web compatibility (Annex B)",110:"The identifier 'let' must not be in expression position in strict mode",111:"Cannot assign to `eval` and `arguments` in strict mode",112:"The left-hand side of a for-of loop may not start with 'let'",113:"Block body arrows can not be immediately invoked without a group",114:"Block body arrows can not be immediately accessed without a group",115:"Unexpected strict mode reserved word",116:"Unexpected eval or arguments in strict mode",117:"Decorators must not be followed by a semicolon",118:"Calling delete on expression not allowed in strict mode",119:"Pattern can not have a tail",121:"Can not have a `yield` expression on the left side of a ternary",122:"An arrow function can not have a postfix update operator",123:"Invalid object literal key character after generator star",124:"Private fields can not be deleted",126:"Classes may not have a field called constructor",125:"Classes may not have a private element named constructor",127:"A class field initializer may not contain arguments",128:"Generators can only be declared at the top level or inside a block",129:"Async methods are a restricted production and cannot have a newline following it",130:"Unexpected character after object literal property name",132:"Invalid key token",133:"Label '%0' has already been declared",134:"continue statement must be nested within an iteration statement",135:"Undefined label '%0'",136:"Trailing comma is disallowed inside import(...) arguments",137:"import() requires exactly one argument",138:"Cannot use new with import(...)",139:"... is not allowed in import()",140:"Expected '=>'",141:"Duplicate binding '%0'",142:"Cannot export a duplicate name '%0'",145:"Duplicate %0 for-binding",143:"Exported binding '%0' needs to refer to a top-level declared variable",144:"Unexpected private field",148:"Numeric separators are not allowed at the end of numeric literals",147:"Only one underscore is allowed as numeric separator",149:"JSX value should be either an expression or a quoted JSX text",150:"Expected corresponding JSX closing tag for %0",151:"Adjacent JSX elements must be wrapped in an enclosing tag",152:"JSX attributes must only be assigned a non-empty 'expression'",153:"'%0' has already been declared",154:"'%0' shadowed a catch clause binding",155:"Dot property must be an identifier",156:"Encountered invalid input after spread/rest argument",157:"Catch without try",158:"Finally without try",159:"Expected corresponding closing tag for JSX fragment",160:"Coalescing and logical operators used together in the same expression must be disambiguated with parentheses",161:"Invalid tagged template on optional chain",162:"Invalid optional chain from super property",163:"Invalid optional chain from new expression",164:'Cannot use "import.meta" outside a module',165:"Leading decorators must be attached to a class declaration"},k2=class extends SyntaxError{constructor(u,n,i,t,...o){let l="["+n+":"+i+"]: "+Xu[t].replace(/%(\d+)/g,(f,c)=>o[c]);super(`${l}`),this.index=u,this.line=n,this.column=i,this.description=l,this.loc={line:n,column:i}}};function d(e,u,...n){throw new k2(e.index,e.line,e.column,u,...n)}function H2(e){throw new k2(e.index,e.line,e.column,e.type,e.params)}function h2(e,u,n,i,...t){throw new k2(e,u,n,i,...t)}function D2(e,u,n,i){throw new k2(e,u,n,i)}var E2=((e,u)=>{let n=new Uint32Array(104448),i=0,t=0;for(;i<3540;){let o=e[i++];if(o<0)t-=o;else{let l=e[i++];o&2&&(l=u[l]),o&1?n.fill(l,t,t+=e[i++]):n[t++]=l}}return n})([-1,2,24,2,25,2,5,-1,0,77595648,3,44,2,3,0,14,2,57,2,58,3,0,3,0,3168796671,0,4294956992,2,1,2,0,2,59,3,0,4,0,4294966523,3,0,4,2,16,2,60,2,0,0,4294836735,0,3221225471,0,4294901942,2,61,0,134152192,3,0,2,0,4294951935,3,0,2,0,2683305983,0,2684354047,2,17,2,0,0,4294961151,3,0,2,2,19,2,0,0,608174079,2,0,2,131,2,6,2,56,-1,2,37,0,4294443263,2,1,3,0,3,0,4294901711,2,39,0,4089839103,0,2961209759,0,1342439375,0,4294543342,0,3547201023,0,1577204103,0,4194240,0,4294688750,2,2,0,80831,0,4261478351,0,4294549486,2,2,0,2967484831,0,196559,0,3594373100,0,3288319768,0,8469959,2,194,2,3,0,3825204735,0,123747807,0,65487,0,4294828015,0,4092591615,0,1080049119,0,458703,2,3,2,0,0,2163244511,0,4227923919,0,4236247022,2,66,0,4284449919,0,851904,2,4,2,11,0,67076095,-1,2,67,0,1073741743,0,4093591391,-1,0,50331649,0,3265266687,2,32,0,4294844415,0,4278190047,2,18,2,129,-1,3,0,2,2,21,2,0,2,9,2,0,2,14,2,15,3,0,10,2,69,2,0,2,70,2,71,2,72,2,0,2,73,2,0,2,10,0,261632,2,23,3,0,2,2,12,2,4,3,0,18,2,74,2,5,3,0,2,2,75,0,2088959,2,27,2,8,0,909311,3,0,2,0,814743551,2,41,0,67057664,3,0,2,2,40,2,0,2,28,2,0,2,29,2,7,0,268374015,2,26,2,49,2,0,2,76,0,134153215,-1,2,6,2,0,2,7,0,2684354559,0,67044351,0,3221160064,0,1,-1,3,0,2,2,42,0,1046528,3,0,3,2,8,2,0,2,51,0,4294960127,2,9,2,38,2,10,0,4294377472,2,11,3,0,7,0,4227858431,3,0,8,2,12,2,0,2,78,2,9,2,0,2,79,2,80,2,81,-1,2,124,0,1048577,2,82,2,13,-1,2,13,0,131042,2,83,2,84,2,85,2,0,2,33,-83,2,0,2,53,2,7,3,0,4,0,1046559,2,0,2,14,2,0,0,2147516671,2,20,3,86,2,2,0,-16,2,87,0,524222462,2,4,2,0,0,4269801471,2,4,2,0,2,15,2,77,2,16,3,0,2,2,47,2,0,-1,2,17,-16,3,0,206,-2,3,0,655,2,18,3,0,36,2,68,-1,2,17,2,9,3,0,8,2,89,2,121,2,0,0,3220242431,3,0,3,2,19,2,90,2,91,3,0,2,2,92,2,0,2,93,2,94,2,0,0,4351,2,0,2,8,3,0,2,0,67043391,0,3909091327,2,0,2,22,2,8,2,18,3,0,2,0,67076097,2,7,2,0,2,20,0,67059711,0,4236247039,3,0,2,0,939524103,0,8191999,2,97,2,98,2,15,2,21,3,0,3,0,67057663,3,0,349,2,99,2,100,2,6,-264,3,0,11,2,22,3,0,2,2,31,-1,0,3774349439,2,101,2,102,3,0,2,2,19,2,103,3,0,10,2,9,2,17,2,0,2,45,2,0,2,30,2,104,2,23,0,1638399,2,172,2,105,3,0,3,2,18,2,24,2,25,2,5,2,26,2,0,2,7,2,106,-1,2,107,2,108,2,109,-1,3,0,3,2,11,-2,2,0,2,27,-3,2,150,-4,2,18,2,0,2,35,0,1,2,0,2,62,2,28,2,11,2,9,2,0,2,110,-1,3,0,4,2,9,2,21,2,111,2,6,2,0,2,112,2,0,2,48,-4,3,0,9,2,20,2,29,2,30,-4,2,113,2,114,2,29,2,20,2,7,-2,2,115,2,29,2,31,-2,2,0,2,116,-2,0,4277137519,0,2269118463,-1,3,18,2,-1,2,32,2,36,2,0,3,29,2,2,34,2,19,-3,3,0,2,2,33,-1,2,0,2,34,2,0,2,34,2,0,2,46,-10,2,0,0,203775,-2,2,18,2,43,2,35,-2,2,17,2,117,2,20,3,0,2,2,36,0,2147549120,2,0,2,11,2,17,2,135,2,0,2,37,2,52,0,5242879,3,0,2,0,402644511,-1,2,120,0,1090519039,-2,2,122,2,38,2,0,0,67045375,2,39,0,4226678271,0,3766565279,0,2039759,-4,3,0,2,0,3288270847,0,3,3,0,2,0,67043519,-5,2,0,0,4282384383,0,1056964609,-1,3,0,2,0,67043345,-1,2,0,2,40,2,41,-1,2,10,2,42,-6,2,0,2,11,-3,3,0,2,0,2147484671,2,125,0,4190109695,2,50,-2,2,126,0,4244635647,0,27,2,0,2,7,2,43,2,0,2,63,-1,2,0,2,40,-8,2,54,2,44,0,67043329,2,127,2,45,0,8388351,-2,2,128,0,3028287487,2,46,2,130,0,33259519,2,41,-9,2,20,-5,2,64,-2,3,0,28,2,31,-3,3,0,3,2,47,3,0,6,2,48,-85,3,0,33,2,47,-126,3,0,18,2,36,-269,3,0,17,2,40,2,7,2,41,-2,2,17,2,49,2,0,2,20,2,50,2,132,2,23,-21,3,0,2,-4,3,0,2,0,4294936575,2,0,0,4294934783,-2,0,196635,3,0,191,2,51,3,0,38,2,29,-1,2,33,-279,3,0,8,2,7,-1,2,133,2,52,3,0,11,2,6,-72,3,0,3,2,134,0,1677656575,-166,0,4161266656,0,4071,0,15360,-4,0,28,-13,3,0,2,2,37,2,0,2,136,2,137,2,55,2,0,2,138,2,139,2,140,3,0,10,2,141,2,142,2,15,3,37,2,3,53,2,3,54,2,0,4294954999,2,0,-16,2,0,2,88,2,0,0,2105343,0,4160749584,0,65534,-42,0,4194303871,0,2011,-6,2,0,0,1073684479,0,17407,-11,2,0,2,31,-40,3,0,6,0,8323103,-1,3,0,2,2,42,-37,2,55,2,144,2,145,2,146,2,147,2,148,-105,2,24,-32,3,0,1334,2,9,-1,3,0,129,2,27,3,0,6,2,9,3,0,180,2,149,3,0,233,0,1,-96,3,0,16,2,9,-47,3,0,154,2,56,-22381,3,0,7,2,23,-6130,3,5,2,-1,0,69207040,3,44,2,3,0,14,2,57,2,58,-3,0,3168731136,0,4294956864,2,1,2,0,2,59,3,0,4,0,4294966275,3,0,4,2,16,2,60,2,0,2,33,-1,2,17,2,61,-1,2,0,2,56,0,4294885376,3,0,2,0,3145727,0,2617294944,0,4294770688,2,23,2,62,3,0,2,0,131135,2,95,0,70256639,0,71303167,0,272,2,40,2,56,-1,2,37,2,30,-1,2,96,2,63,0,4278255616,0,4294836227,0,4294549473,0,600178175,0,2952806400,0,268632067,0,4294543328,0,57540095,0,1577058304,0,1835008,0,4294688736,2,65,2,64,0,33554435,2,123,2,65,2,151,0,131075,0,3594373096,0,67094296,2,64,-1,0,4294828e3,0,603979263,2,160,0,3,0,4294828001,0,602930687,2,183,0,393219,0,4294828016,0,671088639,0,2154840064,0,4227858435,0,4236247008,2,66,2,36,-1,2,4,0,917503,2,36,-1,2,67,0,537788335,0,4026531935,-1,0,1,-1,2,32,2,68,0,7936,-3,2,0,0,2147485695,0,1010761728,0,4292984930,0,16387,2,0,2,14,2,15,3,0,10,2,69,2,0,2,70,2,71,2,72,2,0,2,73,2,0,2,11,-1,2,23,3,0,2,2,12,2,4,3,0,18,2,74,2,5,3,0,2,2,75,0,253951,3,19,2,0,122879,2,0,2,8,0,276824064,-2,3,0,2,2,40,2,0,0,4294903295,2,0,2,29,2,7,-1,2,17,2,49,2,0,2,76,2,41,-1,2,20,2,0,2,27,-2,0,128,-2,2,77,2,8,0,4064,-1,2,119,0,4227907585,2,0,2,118,2,0,2,48,2,173,2,9,2,38,2,10,-1,0,74440192,3,0,6,-2,3,0,8,2,12,2,0,2,78,2,9,2,0,2,79,2,80,2,81,-3,2,82,2,13,-3,2,83,2,84,2,85,2,0,2,33,-83,2,0,2,53,2,7,3,0,4,0,817183,2,0,2,14,2,0,0,33023,2,20,3,86,2,-17,2,87,0,524157950,2,4,2,0,2,88,2,4,2,0,2,15,2,77,2,16,3,0,2,2,47,2,0,-1,2,17,-16,3,0,206,-2,3,0,655,2,18,3,0,36,2,68,-1,2,17,2,9,3,0,8,2,89,0,3072,2,0,0,2147516415,2,9,3,0,2,2,23,2,90,2,91,3,0,2,2,92,2,0,2,93,2,94,0,4294965179,0,7,2,0,2,8,2,91,2,8,-1,0,1761345536,2,95,0,4294901823,2,36,2,18,2,96,2,34,2,166,0,2080440287,2,0,2,33,2,143,0,3296722943,2,0,0,1046675455,0,939524101,0,1837055,2,97,2,98,2,15,2,21,3,0,3,0,7,3,0,349,2,99,2,100,2,6,-264,3,0,11,2,22,3,0,2,2,31,-1,0,2700607615,2,101,2,102,3,0,2,2,19,2,103,3,0,10,2,9,2,17,2,0,2,45,2,0,2,30,2,104,-3,2,105,3,0,3,2,18,-1,3,5,2,2,26,2,0,2,7,2,106,-1,2,107,2,108,2,109,-1,3,0,3,2,11,-2,2,0,2,27,-8,2,18,2,0,2,35,-1,2,0,2,62,2,28,2,29,2,9,2,0,2,110,-1,3,0,4,2,9,2,17,2,111,2,6,2,0,2,112,2,0,2,48,-4,3,0,9,2,20,2,29,2,30,-4,2,113,2,114,2,29,2,20,2,7,-2,2,115,2,29,2,31,-2,2,0,2,116,-2,0,4277075969,2,29,-1,3,18,2,-1,2,32,2,117,2,0,3,29,2,2,34,2,19,-3,3,0,2,2,33,-1,2,0,2,34,2,0,2,34,2,0,2,48,-10,2,0,0,197631,-2,2,18,2,43,2,118,-2,2,17,2,117,2,20,2,119,2,51,-2,2,119,2,23,2,17,2,33,2,119,2,36,0,4294901904,0,4718591,2,119,2,34,0,335544350,-1,2,120,2,121,-2,2,122,2,38,2,7,-1,2,123,2,65,0,3758161920,0,3,-4,2,0,2,27,0,2147485568,0,3,2,0,2,23,0,176,-5,2,0,2,47,2,186,-1,2,0,2,23,2,197,-1,2,0,0,16779263,-2,2,11,-7,2,0,2,121,-3,3,0,2,2,124,2,125,0,2147549183,0,2,-2,2,126,2,35,0,10,0,4294965249,0,67633151,0,4026597376,2,0,0,536871935,-1,2,0,2,40,-8,2,54,2,47,0,1,2,127,2,23,-3,2,128,2,35,2,129,2,130,0,16778239,-10,2,34,-5,2,64,-2,3,0,28,2,31,-3,3,0,3,2,47,3,0,6,2,48,-85,3,0,33,2,47,-126,3,0,18,2,36,-269,3,0,17,2,40,2,7,-3,2,17,2,131,2,0,2,23,2,48,2,132,2,23,-21,3,0,2,-4,3,0,2,0,67583,-1,2,103,-2,0,11,3,0,191,2,51,3,0,38,2,29,-1,2,33,-279,3,0,8,2,7,-1,2,133,2,52,3,0,11,2,6,-72,3,0,3,2,134,2,135,-187,3,0,2,2,37,2,0,2,136,2,137,2,55,2,0,2,138,2,139,2,140,3,0,10,2,141,2,142,2,15,3,37,2,3,53,2,3,54,2,2,143,-73,2,0,0,1065361407,0,16384,-11,2,0,2,121,-40,3,0,6,2,117,-1,3,0,2,0,2063,-37,2,55,2,144,2,145,2,146,2,147,2,148,-138,3,0,1334,2,9,-1,3,0,129,2,27,3,0,6,2,9,3,0,180,2,149,3,0,233,0,1,-96,3,0,16,2,9,-47,3,0,154,2,56,-28517,2,0,0,1,-1,2,124,2,0,0,8193,-21,2,193,0,10255,0,4,-11,2,64,2,171,-1,0,71680,-1,2,161,0,4292900864,0,805306431,-5,2,150,-1,2,157,-1,0,6144,-2,2,127,-1,2,154,-1,0,2147532800,2,151,2,165,2,0,2,164,0,524032,0,4,-4,2,190,0,205128192,0,1333757536,0,2147483696,0,423953,0,747766272,0,2717763192,0,4286578751,0,278545,2,152,0,4294886464,0,33292336,0,417809,2,152,0,1327482464,0,4278190128,0,700594195,0,1006647527,0,4286497336,0,4160749631,2,153,0,469762560,0,4171219488,0,8323120,2,153,0,202375680,0,3214918176,0,4294508592,2,153,-1,0,983584,0,48,0,58720273,0,3489923072,0,10517376,0,4293066815,0,1,0,2013265920,2,177,2,0,0,2089,0,3221225552,0,201375904,2,0,-2,0,256,0,122880,0,16777216,2,150,0,4160757760,2,0,-6,2,167,-11,0,3263218176,-1,0,49664,0,2160197632,0,8388802,-1,0,12713984,-1,2,154,2,159,2,178,-2,2,162,-20,0,3758096385,-2,2,155,0,4292878336,2,90,2,169,0,4294057984,-2,2,163,2,156,2,175,-2,2,155,-1,2,182,-1,2,170,2,124,0,4026593280,0,14,0,4292919296,-1,2,158,0,939588608,-1,0,805306368,-1,2,124,0,1610612736,2,156,2,157,2,4,2,0,-2,2,158,2,159,-3,0,267386880,-1,2,160,0,7168,-1,0,65024,2,154,2,161,2,179,-7,2,168,-8,2,162,-1,0,1426112704,2,163,-1,2,164,0,271581216,0,2149777408,2,23,2,161,2,124,0,851967,2,180,-1,2,23,2,181,-4,2,158,-20,2,195,2,165,-56,0,3145728,2,185,-4,2,166,2,124,-4,0,32505856,-1,2,167,-1,0,2147385088,2,90,1,2155905152,2,-3,2,103,2,0,2,168,-2,2,169,-6,2,170,0,4026597375,0,1,-1,0,1,-1,2,171,-3,2,117,2,64,-2,2,166,-2,2,176,2,124,-878,2,159,-36,2,172,-1,2,201,-10,2,188,-5,2,174,-6,0,4294965251,2,27,-1,2,173,-1,2,174,-2,0,4227874752,-3,0,2146435072,2,159,-2,0,1006649344,2,124,-1,2,90,0,201375744,-3,0,134217720,2,90,0,4286677377,0,32896,-1,2,158,-3,2,175,-349,2,176,0,1920,2,177,3,0,264,-11,2,157,-2,2,178,2,0,0,520617856,0,2692743168,0,36,-3,0,524284,-11,2,23,-1,2,187,-1,2,184,0,3221291007,2,178,-1,2,202,0,2158720,-3,2,159,0,1,-4,2,124,0,3808625411,0,3489628288,2,200,0,1207959680,0,3221274624,2,0,-3,2,179,0,120,0,7340032,-2,2,180,2,4,2,23,2,163,3,0,4,2,159,-1,2,181,2,177,-1,0,8176,2,182,2,179,2,183,-1,0,4290773232,2,0,-4,2,163,2,189,0,15728640,2,177,-1,2,161,-1,0,4294934512,3,0,4,-9,2,90,2,170,2,184,3,0,4,0,704,0,1849688064,2,185,-1,2,124,0,4294901887,2,0,0,130547712,0,1879048192,2,199,3,0,2,-1,2,186,2,187,-1,0,17829776,0,2025848832,0,4261477888,-2,2,0,-1,0,4286580608,-1,0,29360128,2,192,0,16252928,0,3791388672,2,38,3,0,2,-2,2,196,2,0,-1,2,103,-1,0,66584576,-1,2,191,3,0,9,2,124,-1,0,4294755328,3,0,2,-1,2,161,2,178,3,0,2,2,23,2,188,2,90,-2,0,245760,0,2147418112,-1,2,150,2,203,0,4227923456,-1,2,164,2,161,2,90,-3,0,4292870145,0,262144,2,124,3,0,2,0,1073758848,2,189,-1,0,4227921920,2,190,0,68289024,0,528402016,0,4292927536,3,0,4,-2,0,268435456,2,91,-2,2,191,3,0,5,-1,2,192,2,163,2,0,-2,0,4227923936,2,62,-1,2,155,2,95,2,0,2,154,2,158,3,0,6,-1,2,177,3,0,3,-2,0,2146959360,0,9440640,0,104857600,0,4227923840,3,0,2,0,768,2,193,2,77,-2,2,161,-2,2,119,-1,2,155,3,0,8,0,512,0,8388608,2,194,2,172,2,187,0,4286578944,3,0,2,0,1152,0,1266679808,2,191,0,576,0,4261707776,2,95,3,0,9,2,155,3,0,5,2,16,-1,0,2147221504,-28,2,178,3,0,3,-3,0,4292902912,-6,2,96,3,0,85,-33,0,4294934528,3,0,126,-18,2,195,3,0,269,-17,2,155,2,124,2,198,3,0,2,2,23,0,4290822144,-2,0,67174336,0,520093700,2,17,3,0,21,-2,2,179,3,0,3,-2,0,30720,-1,0,32512,3,0,2,0,4294770656,-191,2,174,-38,2,170,2,0,2,196,3,0,279,-8,2,124,2,0,0,4294508543,0,65295,-11,2,177,3,0,72,-3,0,3758159872,0,201391616,3,0,155,-7,2,170,-1,0,384,-1,0,133693440,-3,2,196,-2,2,26,3,0,4,2,169,-2,2,90,2,155,3,0,4,-2,2,164,-1,2,150,0,335552923,2,197,-1,0,538974272,0,2214592512,0,132e3,-10,0,192,-8,0,12288,-21,0,134213632,0,4294901761,3,0,42,0,100663424,0,4294965284,3,0,6,-1,0,3221282816,2,198,3,0,11,-1,2,199,3,0,40,-6,0,4286578784,2,0,-2,0,1006694400,3,0,24,2,35,-1,2,94,3,0,2,0,1,2,163,3,0,6,2,197,0,4110942569,0,1432950139,0,2701658217,0,4026532864,0,4026532881,2,0,2,45,3,0,8,-1,2,158,-2,2,169,0,98304,0,65537,2,170,-5,0,4294950912,2,0,2,118,0,65528,2,177,0,4294770176,2,26,3,0,4,-30,2,174,0,3758153728,-3,2,169,-2,2,155,2,188,2,158,-1,2,191,-1,2,161,0,4294754304,3,0,2,-3,0,33554432,-2,2,200,-3,2,169,0,4175478784,2,201,0,4286643712,0,4286644216,2,0,-4,2,202,-1,2,165,0,4227923967,3,0,32,-1334,2,163,2,0,-129,2,94,-6,2,163,-180,2,203,-233,2,4,3,0,96,-16,2,163,3,0,47,-154,2,165,3,0,22381,-7,2,17,3,0,6128],[4294967295,4294967291,4092460543,4294828031,4294967294,134217726,268435455,2147483647,1048575,1073741823,3892314111,134217727,1061158911,536805376,4294910143,4160749567,4294901759,4294901760,536870911,262143,8388607,4294902783,4294918143,65535,67043328,2281701374,4294967232,2097151,4294903807,4194303,255,67108863,4294967039,511,524287,131071,127,4292870143,4294902271,4294549487,33554431,1023,67047423,4294901888,4286578687,4294770687,67043583,32767,15,2047999,67043343,16777215,4294902e3,4294934527,4294966783,4294967279,2047,262083,20511,4290772991,41943039,493567,4294959104,603979775,65536,602799615,805044223,4294965206,8191,1031749119,4294917631,2134769663,4286578493,4282253311,4294942719,33540095,4294905855,4294967264,2868854591,1608515583,265232348,534519807,2147614720,1060109444,4093640016,17376,2139062143,224,4169138175,4294909951,4286578688,4294967292,4294965759,2044,4292870144,4294966272,4294967280,8289918,4294934399,4294901775,4294965375,1602223615,4294967259,4294443008,268369920,4292804608,486341884,4294963199,3087007615,1073692671,4128527,4279238655,4294902015,4294966591,2445279231,3670015,3238002687,31,63,4294967288,4294705151,4095,3221208447,4294549472,2147483648,4285526655,4294966527,4294705152,4294966143,64,4294966719,16383,3774873592,458752,536807423,67043839,3758096383,3959414372,3755993023,2080374783,4294835295,4294967103,4160749565,4087,184024726,2862017156,1593309078,268434431,268434414,4294901763,536870912,2952790016,202506752,139264,402653184,4261412864,4227922944,49152,61440,3758096384,117440512,65280,3233808384,3221225472,2097152,4294965248,32768,57152,67108864,4293918720,4290772992,25165824,57344,4227915776,4278190080,4227907584,65520,4026531840,4227858432,4160749568,3758129152,4294836224,63488,1073741824,4294967040,4194304,251658240,196608,4294963200,64512,417808,4227923712,12582912,50331648,65472,4294967168,4294966784,16,4294917120,2080374784,4096,65408,524288,65532]);function h(e){return e.column++,e.currentChar=e.source.charCodeAt(++e.index)}function zu(e,u){if((u&64512)!==55296)return 0;let n=e.source.charCodeAt(e.index+1);return(n&64512)!==56320?0:(u=e.currentChar=65536+((u&1023)<<10)+(n&1023),E2[(u>>>5)+0]>>>u&31&1||d(e,18,G(u)),e.index++,e.column++,1)}function ie(e,u){e.currentChar=e.source.charCodeAt(++e.index),e.flags|=1,u&4||(e.column=0,e.line++)}function c2(e){e.flags|=1,e.currentChar=e.source.charCodeAt(++e.index),e.column=0,e.line++}function Hu(e){return e===160||e===65279||e===133||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===8201||e===65519}function G(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(e>>>10)+String.fromCharCode(e&1023)}function H(e){return e<65?e-48:e-65+10&15}function Ku(e){switch(e){case 134283266:return"NumericLiteral";case 134283267:return"StringLiteral";case 86021:case 86022:return"BooleanLiteral";case 86023:return"NullLiteral";case 65540:return"RegularExpression";case 67174408:case 67174409:case 132:return"TemplateLiteral";default:return(e&143360)===143360?"Identifier":(e&4096)===4096?"Keyword":"Punctuator"}}var L=[0,0,0,0,0,0,0,0,0,0,1032,0,0,2056,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8192,0,3,0,0,8192,0,0,0,256,0,33024,0,0,242,242,114,114,114,114,114,114,594,594,0,0,16384,0,0,0,0,67,67,67,67,67,67,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,0,1,0,0,4099,0,71,71,71,71,71,71,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,16384,0,0,0,0],$u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Ve=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0];function x2(e){return e<=127?$u[e]:E2[(e>>>5)+34816]>>>e&31&1}function M2(e){return e<=127?Ve[e]:E2[(e>>>5)+0]>>>e&31&1||e===8204||e===8205}var Re=["SingleLine","MultiLine","HTMLOpen","HTMLClose","HashbangComment"];function Wu(e){let u=e.source;e.currentChar===35&&u.charCodeAt(e.index+1)===33&&(h(e),h(e),te(e,u,0,4,e.tokenPos,e.linePos,e.colPos))}function ve(e,u,n,i,t,o,l,f){return i&2048&&d(e,0),te(e,u,n,t,o,l,f)}function te(e,u,n,i,t,o,l){let{index:f}=e;for(e.tokenPos=e.index,e.linePos=e.line,e.colPos=e.column;e.index=e.source.length)return d(e,32)}let t=e.index-1,o=0,l=e.currentChar,{index:f}=e;for(;M2(l);){switch(l){case 103:o&2&&d(e,34,"g"),o|=2;break;case 105:o&1&&d(e,34,"i"),o|=1;break;case 109:o&4&&d(e,34,"m"),o|=4;break;case 117:o&16&&d(e,34,"u"),o|=16;break;case 121:o&8&&d(e,34,"y"),o|=8;break;case 115:o&32&&d(e,34,"s"),o|=32;break;case 100:o&64&&d(e,34,"d"),o|=64;break;default:d(e,33)}l=h(e)}let c=e.source.slice(f,e.index),a=e.source.slice(n,t);return e.tokenRegExp={pattern:a,flags:c},u&512&&(e.tokenRaw=e.source.slice(e.tokenPos,e.index)),e.tokenValue=Yu(e,a,c),65540}function Yu(e,u,n){try{return new RegExp(u,n)}catch{try{return new RegExp(u,n.replace("d","")),null}catch{d(e,32)}}}function Qu(e,u,n){let{index:i}=e,t="",o=h(e),l=e.index;for(;!(L[o]&8);){if(o===n)return t+=e.source.slice(l,e.index),h(e),u&512&&(e.tokenRaw=e.source.slice(i,e.index)),e.tokenValue=t,134283267;if((o&8)===8&&o===92){if(t+=e.source.slice(l,e.index),o=h(e),o<127||o===8232||o===8233){let f=Oe(e,u,o);f>=0?t+=G(f):Ue(e,f,0)}else t+=G(o);l=e.index+1}e.index>=e.end&&d(e,14),o=h(e)}d(e,14)}function Oe(e,u,n){switch(n){case 98:return 8;case 102:return 12;case 114:return 13;case 110:return 10;case 116:return 9;case 118:return 11;case 13:if(e.index1114111)return-5;return e.currentChar<1||e.currentChar!==125?-4:t}else{if(!(L[i]&64))return-4;let t=e.source.charCodeAt(e.index+1);if(!(L[t]&64))return-4;let o=e.source.charCodeAt(e.index+2);if(!(L[o]&64))return-4;let l=e.source.charCodeAt(e.index+3);return L[l]&64?(e.index+=3,e.column+=3,e.currentChar=e.source.charCodeAt(e.index),H(i)<<12|H(t)<<8|H(o)<<4|H(l)):-4}}case 56:case 57:if(!(u&256))return-3;default:return n}}function Ue(e,u,n){switch(u){case-1:return;case-2:d(e,n?2:1);case-3:d(e,13);case-4:d(e,6);case-5:d(e,102)}}function Me(e,u){let{index:n}=e,i=67174409,t="",o=h(e);for(;o!==96;){if(o===36&&e.source.charCodeAt(e.index+1)===123){h(e),i=67174408;break}else if((o&8)===8&&o===92)if(o=h(e),o>126)t+=G(o);else{let l=Oe(e,u|1024,o);if(l>=0)t+=G(l);else if(l!==-1&&u&65536){t=void 0,o=Zu(e,o),o<0&&(i=67174408);break}else Ue(e,l,1)}else e.index=e.end&&d(e,15),o=h(e)}return h(e),e.tokenValue=t,e.tokenRaw=e.source.slice(n+1,e.index-(i===67174409?1:2)),i}function Zu(e,u){for(;u!==96;){switch(u){case 36:{let n=e.index+1;if(n=e.end&&d(e,15),u=h(e)}return u}function Gu(e,u){return e.index>=e.end&&d(e,0),e.index--,e.column--,Me(e,u)}function Be(e,u,n){let i=e.currentChar,t=0,o=9,l=n&64?0:1,f=0,c=0;if(n&64)t="."+N2(e,i),i=e.currentChar,i===110&&d(e,11);else{if(i===48)if(i=h(e),(i|32)===120){for(n=136,i=h(e);L[i]&4160;){if(i===95){c||d(e,147),c=0,i=h(e);continue}c=1,t=t*16+H(i),f++,i=h(e)}(f===0||!c)&&d(e,f===0?19:148)}else if((i|32)===111){for(n=132,i=h(e);L[i]&4128;){if(i===95){c||d(e,147),c=0,i=h(e);continue}c=1,t=t*8+(i-48),f++,i=h(e)}(f===0||!c)&&d(e,f===0?0:148)}else if((i|32)===98){for(n=130,i=h(e);L[i]&4224;){if(i===95){c||d(e,147),c=0,i=h(e);continue}c=1,t=t*2+(i-48),f++,i=h(e)}(f===0||!c)&&d(e,f===0?0:148)}else if(L[i]&32)for(u&1024&&d(e,1),n=1;L[i]&16;){if(L[i]&512){n=32,l=0;break}t=t*8+(i-48),i=h(e)}else L[i]&512?(u&1024&&d(e,1),e.flags|=64,n=32):i===95&&d(e,0);if(n&48){if(l){for(;o>=0&&L[i]&4112;){if(i===95){i=h(e),(i===95||n&32)&&D2(e.index,e.line,e.index+1,147),c=1;continue}c=0,t=10*t+(i-48),i=h(e),--o}if(c&&D2(e.index,e.line,e.index+1,148),o>=0&&!x2(i)&&i!==46)return e.tokenValue=t,u&512&&(e.tokenRaw=e.source.slice(e.tokenPos,e.index)),134283266}t+=N2(e,i),i=e.currentChar,i===46&&(h(e)===95&&d(e,0),n=64,t+="."+N2(e,e.currentChar),i=e.currentChar)}}let a=e.index,g=0;if(i===110&&n&128)g=1,i=h(e);else if((i|32)===101){i=h(e),L[i]&256&&(i=h(e));let{index:m}=e;L[i]&16||d(e,10),t+=e.source.substring(a,m)+N2(e,i),i=e.currentChar}return(e.index","(","{",".","...","}",")",";",",","[","]",":","?","'",'"',"","++","--","=","<<=",">>=",">>>=","**=","+=","-=","*=","/=","%=","^=","|=","&=","||=","&&=","??=","typeof","delete","void","!","~","+","-","in","instanceof","*","%","/","**","&&","||","===","!==","==","!=","<=",">=","<",">","<<",">>",">>>","&","|","^","var","let","const","break","case","catch","class","continue","debugger","default","do","else","export","extends","finally","for","function","if","import","new","return","super","switch","this","throw","try","while","with","implements","interface","package","private","protected","public","static","yield","as","async","await","constructor","get","set","from","of","enum","eval","arguments","escaped keyword","escaped future reserved keyword","reserved if strict","#","BigIntLiteral","??","?.","WhiteSpace","Illegal","LineTerminator","PrivateField","Template","@","target","meta","LineFeed","Escaped","JSXText"],Je=Object.create(null,{this:{value:86113},function:{value:86106},if:{value:20571},return:{value:20574},var:{value:86090},else:{value:20565},for:{value:20569},new:{value:86109},in:{value:8738868},typeof:{value:16863277},while:{value:20580},case:{value:20558},break:{value:20557},try:{value:20579},catch:{value:20559},delete:{value:16863278},throw:{value:86114},switch:{value:86112},continue:{value:20561},default:{value:20563},instanceof:{value:8476725},do:{value:20564},void:{value:16863279},finally:{value:20568},async:{value:209007},await:{value:209008},class:{value:86096},const:{value:86092},constructor:{value:12401},debugger:{value:20562},export:{value:20566},extends:{value:20567},false:{value:86021},from:{value:12404},get:{value:12402},implements:{value:36966},import:{value:86108},interface:{value:36967},let:{value:241739},null:{value:86023},of:{value:274549},package:{value:36968},private:{value:36969},protected:{value:36970},public:{value:36971},set:{value:12403},static:{value:36972},super:{value:86111},true:{value:86022},with:{value:20581},yield:{value:241773},enum:{value:86134},eval:{value:537079927},as:{value:77934},arguments:{value:537079928},target:{value:143494},meta:{value:143495}});function Te(e,u,n){for(;Ve[h(e)];);return e.tokenValue=e.source.slice(e.tokenPos,e.index),e.currentChar!==92&&e.currentChar<=126?Je[e.tokenValue]||208897:oe(e,u,0,n)}function xu(e,u){let n=je(e);return M2(n)||d(e,4),e.tokenValue=G(n),oe(e,u,1,L[n]&4)}function oe(e,u,n,i){let t=e.index;for(;e.index=2&&o<=11){let l=Je[e.tokenValue];return l===void 0?208897:n?l===209008?u&4196352?121:l:u&1024?l===36972||(l&36864)===36864?122:(l&20480)===20480?u&1073741824&&!(u&8192)?l:121:143483:u&1073741824&&!(u&8192)&&(l&20480)===20480?l:l===241773?u&1073741824?143483:u&2097152?121:l:l===209007?143483:(l&36864)===36864?l:121:l}return 208897}function pu(e){return x2(h(e))||d(e,94),131}function je(e){return e.source.charCodeAt(e.index+1)!==117&&d(e,4),e.currentChar=e.source.charCodeAt(e.index+=2),e1(e)}function e1(e){let u=0,n=e.currentChar;if(n===123){let l=e.index-2;for(;L[h(e)]&64;)u=u<<4|H(e.currentChar),u>1114111&&D2(l,e.line,e.index+1,102);return e.currentChar!==125&&D2(l,e.line,e.index-1,6),h(e),u}L[n]&64||d(e,6);let i=e.source.charCodeAt(e.index+1);L[i]&64||d(e,6);let t=e.source.charCodeAt(e.index+2);L[t]&64||d(e,6);let o=e.source.charCodeAt(e.index+3);return L[o]&64||d(e,6),u=H(n)<<12|H(i)<<8|H(t)<<4|H(o),e.currentChar=e.source.charCodeAt(e.index+=4),u}var Xe=[129,129,129,129,129,129,129,129,129,128,136,128,128,130,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,128,16842800,134283267,131,208897,8457015,8455751,134283267,67174411,16,8457014,25233970,18,25233971,67108877,8457016,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,21,1074790417,8456258,1077936157,8456259,22,133,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,69271571,137,20,8455497,208897,132,4096,4096,4096,4096,4096,4096,4096,208897,4096,208897,208897,4096,208897,4096,208897,4096,208897,4096,4096,4096,208897,4096,4096,208897,4096,4096,2162700,8455240,1074790415,16842801,129];function b(e,u){if(e.flags=(e.flags|1)^1,e.startPos=e.index,e.startColumn=e.column,e.startLine=e.line,e.token=ze(e,u,0),e.onToken&&e.token!==1048576){let n={start:{line:e.linePos,column:e.colPos},end:{line:e.line,column:e.column}};e.onToken(Ku(e.token),e.tokenPos,e.index,n)}}function ze(e,u,n){let i=e.index===0,t=e.source,o=e.index,l=e.line,f=e.column;for(;e.index=e.end)return 8457014;let s=e.currentChar;return s===61?(h(e),4194340):s!==42?8457014:h(e)!==61?8457273:(h(e),4194337)}case 8455497:return h(e)!==61?8455497:(h(e),4194343);case 25233970:{h(e);let s=e.currentChar;return s===43?(h(e),33619995):s===61?(h(e),4194338):25233970}case 25233971:{h(e);let s=e.currentChar;if(s===45){if(h(e),(n&1||i)&&e.currentChar===62){u&256||d(e,109),h(e),n=ve(e,t,n,u,3,o,l,f),o=e.tokenPos,l=e.linePos,f=e.colPos;continue}return 33619996}return s===61?(h(e),4194339):25233971}case 8457016:{if(h(e),e.index=48&&m<=57)return Be(e,u,80);if(m===46){let s=e.index+1;if(s=48&&s<=57)))return h(e),67108991}return 22}}}else{if((c^8232)<=1){n=n&-5|1,c2(e);continue}if((c&64512)===55296||E2[(c>>>5)+34816]>>>c&31&1)return(c&64512)===56320&&(c=(c&1023)<<10|c&1023|65536,E2[(c>>>5)+0]>>>c&31&1||d(e,18,G(c)),e.index++,e.currentChar=c),e.column++,e.tokenValue="",oe(e,u,0,0);if(Hu(c)){h(e);continue}d(e,18,G(c))}}return 1048576}function u1(e,u){return e.startPos=e.tokenPos=e.index,e.startColumn=e.colPos=e.column,e.startLine=e.linePos=e.line,e.token=L[e.currentChar]&8192?n1(e,u):ze(e,u,0),e.token}function n1(e,u){let n=e.currentChar,i=h(e),t=e.index;for(;i!==n;)e.index>=e.end&&d(e,14),i=h(e);return i!==n&&d(e,14),e.tokenValue=e.source.slice(t,e.index),h(e),u&512&&(e.tokenRaw=e.source.slice(e.tokenPos,e.index)),134283267}function d2(e,u){if(e.startPos=e.tokenPos=e.index,e.startColumn=e.colPos=e.column,e.startLine=e.linePos=e.line,e.index>=e.end)return e.token=1048576;switch(Xe[e.source.charCodeAt(e.index)]){case 8456258:{h(e),e.currentChar===47?(h(e),e.token=25):e.token=8456258;break}case 2162700:{h(e),e.token=2162700;break}default:{let i=0;for(;e.index1&&t&32&&e.token&262144&&d(e,59,U[e.token&255]),l}function qe(e,u,n,i,t){let{token:o,tokenPos:l,linePos:f,colPos:c}=e,a=null,g=cu(e,u,n,i,t,l,f,c);return e.token===1077936157?(b(e,u|32768),a=R(e,u,1,0,0,e.tokenPos,e.linePos,e.colPos),(t&32||!(o&2097152))&&(e.token===274549||e.token===8738868&&(o&2097152||!(i&4)||u&1024))&&h2(l,e.line,e.index-3,58,e.token===274549?"of":"in")):(i&16||(o&2097152)>0)&&(e.token&262144)!==262144&&d(e,57,i&16?"const":"destructuring"),y(e,u,l,f,c,{type:"VariableDeclarator",id:g,init:a})}function q1(e,u,n,i,t,o,l){b(e,u);let f=((u&4194304)>0||(u&2048)>0&&(u&8192)>0)&&q(e,u,209008);P(e,u|32768,67174411),n&&(n=J(n,1));let c=null,a=null,g=0,m=null,s=e.token===86090||e.token===241739||e.token===86092,k,{token:C,tokenPos:A,linePos:E,colPos:w}=e;if(s?C===241739?(m=I(e,u,0),e.token&2240512?(e.token===8738868?u&1024&&d(e,65):m=y(e,u,A,E,w,{type:"VariableDeclaration",kind:"let",declarations:y2(e,u|134217728,n,8,32)}),e.assignable=1):u&1024?d(e,65):(s=!1,e.assignable=1,m=N(e,u,m,0,0,A,E,w),e.token===274549&&d(e,112))):(b(e,u),m=y(e,u,A,E,w,C===86090?{type:"VariableDeclaration",kind:"var",declarations:y2(e,u|134217728,n,4,32)}:{type:"VariableDeclaration",kind:"const",declarations:y2(e,u|134217728,n,16,32)}),e.assignable=1):C===1074790417?f&&d(e,80):(C&2097152)===2097152?(m=C===2162700?r(e,u,void 0,1,0,0,2,32,A,E,w):_(e,u,void 0,1,0,0,2,32,A,E,w),g=e.destructible,u&256&&g&64&&d(e,61),e.assignable=g&16?2:1,m=N(e,u|134217728,m,0,0,e.tokenPos,e.linePos,e.colPos)):m=W(e,u|134217728,1,0,1,A,E,w),(e.token&262144)===262144){if(e.token===274549){e.assignable&2&&d(e,78,f?"await":"of"),Z(e,m),b(e,u|32768),k=R(e,u,1,0,0,e.tokenPos,e.linePos,e.colPos),P(e,u|32768,16);let S=P2(e,u,n,i);return y(e,u,t,o,l,{type:"ForOfStatement",left:m,right:k,body:S,await:f})}e.assignable&2&&d(e,78,"in"),Z(e,m),b(e,u|32768),f&&d(e,80),k=j(e,u,0,1,e.tokenPos,e.linePos,e.colPos),P(e,u|32768,16);let M=P2(e,u,n,i);return y(e,u,t,o,l,{type:"ForInStatement",body:M,left:m,right:k})}f&&d(e,80),s||(g&8&&e.token!==1077936157&&d(e,78,"loop"),m=O(e,u|134217728,0,0,A,E,w,m)),e.token===18&&(m=u2(e,u,0,e.tokenPos,e.linePos,e.colPos,m)),P(e,u|32768,1074790417),e.token!==1074790417&&(c=j(e,u,0,1,e.tokenPos,e.linePos,e.colPos)),P(e,u|32768,1074790417),e.token!==16&&(a=j(e,u,0,1,e.tokenPos,e.linePos,e.colPos)),P(e,u|32768,16);let B=P2(e,u,n,i);return y(e,u,t,o,l,{type:"ForStatement",init:m,test:c,update:a,body:B})}function Qe(e,u,n){return fe(u,e.token)||d(e,115),(e.token&537079808)===537079808&&d(e,116),n&&t2(e,u,n,e.tokenValue,8,0),I(e,u,0)}function L1(e,u,n){let i=e.tokenPos,t=e.linePos,o=e.colPos;b(e,u);let l=null,{tokenPos:f,linePos:c,colPos:a}=e,g=[];if(e.token===134283267)l=X(e,u);else{if(e.token&143360){let m=Qe(e,u,n);if(g=[y(e,u,f,c,a,{type:"ImportDefaultSpecifier",local:m})],q(e,u,18))switch(e.token){case 8457014:g.push(Le(e,u,n));break;case 2162700:Ie(e,u,n,g);break;default:d(e,105)}}else switch(e.token){case 8457014:g=[Le(e,u,n)];break;case 2162700:Ie(e,u,n,g);break;case 67174411:return Ge(e,u,i,t,o);case 67108877:return Ze(e,u,i,t,o);default:d(e,28,U[e.token&255])}l=I1(e,u)}return z(e,u|32768),y(e,u,i,t,o,{type:"ImportDeclaration",specifiers:g,source:l})}function Le(e,u,n){let{tokenPos:i,linePos:t,colPos:o}=e;return b(e,u),P(e,u,77934),(e.token&134217728)===134217728&&h2(i,e.line,e.index,28,U[e.token&255]),y(e,u,i,t,o,{type:"ImportNamespaceSpecifier",local:Qe(e,u,n)})}function I1(e,u){return q(e,u,12404),e.token!==134283267&&d(e,103,"Import"),X(e,u)}function Ie(e,u,n,i){for(b(e,u);e.token&143360;){let{token:t,tokenValue:o,tokenPos:l,linePos:f,colPos:c}=e,a=I(e,u,0),g;q(e,u,77934)?((e.token&134217728)===134217728||e.token===18?d(e,104):J2(e,u,16,e.token,0),o=e.tokenValue,g=I(e,u,0)):(J2(e,u,16,t,0),g=a),n&&t2(e,u,n,o,8,0),i.push(y(e,u,l,f,c,{type:"ImportSpecifier",local:g,imported:a})),e.token!==1074790415&&P(e,u,18)}return P(e,u,1074790415),i}function Ze(e,u,n,i,t){let o=pe(e,u,y(e,u,n,i,t,{type:"Identifier",name:"import"}),n,i,t);return o=N(e,u,o,0,0,n,i,t),o=O(e,u,0,0,n,i,t,o),b2(e,u,o,n,i,t)}function Ge(e,u,n,i,t){let o=eu(e,u,0,n,i,t);return o=N(e,u,o,0,0,n,i,t),e.token===18&&(o=u2(e,u,0,n,i,t,o)),b2(e,u,o,n,i,t)}function N1(e,u,n){let i=e.tokenPos,t=e.linePos,o=e.colPos;b(e,u|32768);let l=[],f=null,c=null,a;if(q(e,u|32768,20563)){switch(e.token){case 86106:{f=i2(e,u,n,4,1,1,0,e.tokenPos,e.linePos,e.colPos);break}case 133:case 86096:f=ne(e,u,n,1,e.tokenPos,e.linePos,e.colPos);break;case 209007:let{tokenPos:g,linePos:m,colPos:s}=e;f=I(e,u,0);let{flags:k}=e;k&1||(e.token===86106?f=i2(e,u,n,4,1,1,1,g,m,s):e.token===67174411?(f=ke(e,u,f,1,1,0,k,g,m,s),f=N(e,u,f,0,0,g,m,s),f=O(e,u,0,0,g,m,s,f)):e.token&143360&&(n&&(n=K2(e,u,e.tokenValue)),f=I(e,u,0),f=B2(e,u,n,[f],1,g,m,s)));break;default:f=R(e,u,1,0,0,e.tokenPos,e.linePos,e.colPos),z(e,u|32768)}return n&&l2(e,"default"),y(e,u,i,t,o,{type:"ExportDefaultDeclaration",declaration:f})}switch(e.token){case 8457014:{b(e,u);let k=null;return q(e,u,77934)&&(n&&l2(e,e.tokenValue),k=I(e,u,0)),P(e,u,12404),e.token!==134283267&&d(e,103,"Export"),c=X(e,u),z(e,u|32768),y(e,u,i,t,o,{type:"ExportAllDeclaration",source:c,exported:k})}case 2162700:{b(e,u);let k=[],C=[];for(;e.token&143360;){let{tokenPos:A,tokenValue:E,linePos:w,colPos:B}=e,M=I(e,u,0),S;e.token===77934?(b(e,u),(e.token&134217728)===134217728&&d(e,104),n&&(k.push(e.tokenValue),C.push(E)),S=I(e,u,0)):(n&&(k.push(e.tokenValue),C.push(e.tokenValue)),S=M),l.push(y(e,u,A,w,B,{type:"ExportSpecifier",local:M,exported:S})),e.token!==1074790415&&P(e,u,18)}if(P(e,u,1074790415),q(e,u,12404))e.token!==134283267&&d(e,103,"Export"),c=X(e,u);else if(n){let A=0,E=k.length;for(;A0)&8738868,g,m;for(e.assignable=2;e.token&8454144&&(g=e.token,m=g&3840,(g&524288&&f&268435456||f&524288&&g&268435456)&&d(e,160),!(m+((g===8457273)<<8)-((a===g)<<12)<=l));)b(e,u|32768),c=y(e,u,i,t,o,{type:g&524288||g&268435456?"LogicalExpression":"BinaryExpression",left:c,right:n2(e,u,n,e.tokenPos,e.linePos,e.colPos,m,g,W(e,u,0,n,1,e.tokenPos,e.linePos,e.colPos)),operator:U[g&255]});return e.token===1077936157&&d(e,24),c}function V1(e,u,n,i,t,o,l){n||d(e,0);let f=e.token;b(e,u|32768);let c=W(e,u,0,l,1,e.tokenPos,e.linePos,e.colPos);return e.token===8457273&&d(e,31),u&1024&&f===16863278&&(c.type==="Identifier"?d(e,118):i1(c)&&d(e,124)),e.assignable=2,y(e,u,i,t,o,{type:"UnaryExpression",operator:U[f&255],argument:c,prefix:!0})}function R1(e,u,n,i,t,o,l,f,c,a){let{token:g}=e,m=I(e,u,o),{flags:s}=e;if(!(s&1)){if(e.token===86106)return nu(e,u,1,n,f,c,a);if((e.token&143360)===143360)return i||d(e,0),ou(e,u,t,f,c,a)}return!l&&e.token===67174411?ke(e,u,m,t,1,0,s,f,c,a):e.token===10?(ce(e,u,g,1),l&&d(e,49),W2(e,u,e.tokenValue,m,l,t,0,f,c,a)):m}function O1(e,u,n,i,t,o,l){if(n&&(e.destructible|=256),u&2097152){b(e,u|32768),u&8388608&&d(e,30),i||d(e,24),e.token===22&&d(e,121);let f=null,c=!1;return e.flags&1||(c=q(e,u|32768,8457014),(e.token&77824||c)&&(f=R(e,u,1,0,0,e.tokenPos,e.linePos,e.colPos))),e.assignable=2,y(e,u,t,o,l,{type:"YieldExpression",argument:f,delegate:c})}return u&1024&&d(e,95,"yield"),ye(e,u,t,o,l)}function U1(e,u,n,i,t,o,l){if(i&&(e.destructible|=128),u&4194304||u&2048&&u&8192){n&&d(e,0),u&8388608&&h2(e.index,e.line,e.index,29),b(e,u|32768);let f=W(e,u,0,0,1,e.tokenPos,e.linePos,e.colPos);return e.token===8457273&&d(e,31),e.assignable=2,y(e,u,t,o,l,{type:"AwaitExpression",argument:f})}return u&2048&&d(e,96),ye(e,u,t,o,l)}function $2(e,u,n,i,t,o){let{tokenPos:l,linePos:f,colPos:c}=e;P(e,u|32768,2162700);let a=[],g=u;if(e.token!==1074790415){for(;e.token===134283267;){let{index:m,tokenPos:s,tokenValue:k,token:C}=e,A=X(e,u);He(e,m,s,k)&&(u|=1024,e.flags&128&&h2(e.index,e.line,e.tokenPos,64),e.flags&64&&h2(e.index,e.line,e.tokenPos,8)),a.push(se(e,u,A,C,s,e.linePos,e.colPos))}u&1024&&(t&&((t&537079808)===537079808&&d(e,116),(t&36864)===36864&&d(e,38)),e.flags&512&&d(e,116),e.flags&256&&d(e,115)),u&64&&n&&o!==void 0&&!(g&1024)&&!(u&8192)&&H2(o)}for(e.flags=(e.flags|512|256|64)^832,e.destructible=(e.destructible|256)^256;e.token!==1074790415;)a.push(S2(e,u,n,4,{}));return P(e,i&24?u|32768:u,1074790415),e.flags&=-193,e.token===1077936157&&d(e,24),y(e,u,l,f,c,{type:"BlockStatement",body:a})}function M1(e,u,n,i,t){switch(b(e,u),e.token){case 67108991:d(e,162);case 67174411:{u&524288||d(e,26),u&16384&&d(e,27),e.assignable=2;break}case 69271571:case 67108877:{u&262144||d(e,27),u&16384&&d(e,27),e.assignable=1;break}default:d(e,28,"super")}return y(e,u,n,i,t,{type:"Super"})}function W(e,u,n,i,t,o,l,f){let c=K(e,u,2,0,n,0,i,t,o,l,f);return N(e,u,c,i,0,o,l,f)}function J1(e,u,n,i,t,o){e.assignable&2&&d(e,53);let{token:l}=e;return b(e,u),e.assignable=2,y(e,u,i,t,o,{type:"UpdateExpression",argument:n,operator:U[l&255],prefix:!1})}function N(e,u,n,i,t,o,l,f){if((e.token&33619968)===33619968&&!(e.flags&1))n=J1(e,u,n,o,l,f);else if((e.token&67108864)===67108864){switch(u=(u|134217728)^134217728,e.token){case 67108877:{b(e,(u|1073741824|8192)^8192),e.assignable=1;let c=xe(e,u);n=y(e,u,o,l,f,{type:"MemberExpression",object:n,computed:!1,property:c});break}case 69271571:{let c=!1;(e.flags&2048)===2048&&(c=!0,e.flags=(e.flags|2048)^2048),b(e,u|32768);let{tokenPos:a,linePos:g,colPos:m}=e,s=j(e,u,i,1,a,g,m);P(e,u,20),e.assignable=1,n=y(e,u,o,l,f,{type:"MemberExpression",object:n,computed:!0,property:s}),c&&(e.flags|=2048);break}case 67174411:{if((e.flags&1024)===1024)return e.flags=(e.flags|1024)^1024,n;let c=!1;(e.flags&2048)===2048&&(c=!0,e.flags=(e.flags|2048)^2048);let a=ge(e,u,i);e.assignable=2,n=y(e,u,o,l,f,{type:"CallExpression",callee:n,arguments:a}),c&&(e.flags|=2048);break}case 67108991:{b(e,(u|1073741824|8192)^8192),e.flags|=2048,e.assignable=2,n=j1(e,u,n,o,l,f);break}default:(e.flags&2048)===2048&&d(e,161),e.assignable=2,n=y(e,u,o,l,f,{type:"TaggedTemplateExpression",tag:n,quasi:e.token===67174408?me(e,u|65536):ae(e,u,e.tokenPos,e.linePos,e.colPos)})}n=N(e,u,n,0,1,o,l,f)}return t===0&&(e.flags&2048)===2048&&(e.flags=(e.flags|2048)^2048,n=y(e,u,o,l,f,{type:"ChainExpression",expression:n})),n}function j1(e,u,n,i,t,o){let l=!1,f;if((e.token===69271571||e.token===67174411)&&(e.flags&2048)===2048&&(l=!0,e.flags=(e.flags|2048)^2048),e.token===69271571){b(e,u|32768);let{tokenPos:c,linePos:a,colPos:g}=e,m=j(e,u,0,1,c,a,g);P(e,u,20),e.assignable=2,f=y(e,u,i,t,o,{type:"MemberExpression",object:n,computed:!0,optional:!0,property:m})}else if(e.token===67174411){let c=ge(e,u,0);e.assignable=2,f=y(e,u,i,t,o,{type:"CallExpression",callee:n,arguments:c,optional:!0})}else{e.token&143360||d(e,155);let c=I(e,u,0);e.assignable=2,f=y(e,u,i,t,o,{type:"MemberExpression",object:n,computed:!1,optional:!0,property:c})}return l&&(e.flags|=2048),f}function xe(e,u){return!(e.token&143360)&&e.token!==131&&d(e,155),u&1&&e.token===131?z2(e,u,e.tokenPos,e.linePos,e.colPos):I(e,u,0)}function X1(e,u,n,i,t,o,l){n&&d(e,54),i||d(e,0);let{token:f}=e;b(e,u|32768);let c=W(e,u,0,0,1,e.tokenPos,e.linePos,e.colPos);return e.assignable&2&&d(e,53),e.assignable=2,y(e,u,t,o,l,{type:"UpdateExpression",argument:c,operator:U[f&255],prefix:!0})}function K(e,u,n,i,t,o,l,f,c,a,g){if((e.token&143360)===143360){switch(e.token){case 209008:return U1(e,u,i,l,c,a,g);case 241773:return O1(e,u,l,t,c,a,g);case 209007:return R1(e,u,l,f,t,o,i,c,a,g)}let{token:m,tokenValue:s}=e,k=I(e,u|65536,o);return e.token===10?(f||d(e,0),ce(e,u,m,1),W2(e,u,s,k,i,t,0,c,a,g)):(u&16384&&m===537079928&&d(e,127),m===241739&&(u&1024&&d(e,110),n&24&&d(e,98)),e.assignable=u&1024&&(m&537079808)===537079808?2:1,k)}if((e.token&134217728)===134217728)return X(e,u);switch(e.token){case 33619995:case 33619996:return X1(e,u,i,f,c,a,g);case 16863278:case 16842800:case 16842801:case 25233970:case 25233971:case 16863277:case 16863279:return V1(e,u,f,c,a,g,l);case 86106:return nu(e,u,0,l,c,a,g);case 2162700:return _1(e,u,t?0:1,l,c,a,g);case 69271571:return W1(e,u,t?0:1,l,c,a,g);case 67174411:return Y1(e,u,t,1,0,c,a,g);case 86021:case 86022:case 86023:return K1(e,u,c,a,g);case 86113:return $1(e,u);case 65540:return G1(e,u,c,a,g);case 133:case 86096:return x1(e,u,l,c,a,g);case 86111:return M1(e,u,c,a,g);case 67174409:return ae(e,u,c,a,g);case 67174408:return me(e,u);case 86109:return Q1(e,u,l,c,a,g);case 134283389:return uu(e,u,c,a,g);case 131:return z2(e,u,c,a,g);case 86108:return z1(e,u,i,l,c,a,g);case 8456258:if(u&16)return De(e,u,1,c,a,g);default:if(fe(u,e.token))return ye(e,u,c,a,g);d(e,28,U[e.token&255])}}function z1(e,u,n,i,t,o,l){let f=I(e,u,0);return e.token===67108877?pe(e,u,f,t,o,l):(n&&d(e,138),f=eu(e,u,i,t,o,l),e.assignable=2,N(e,u,f,i,0,t,o,l))}function pe(e,u,n,i,t,o){return u&2048||d(e,164),b(e,u),e.token!==143495&&e.tokenValue!=="meta"&&d(e,28,U[e.token&255]),e.assignable=2,y(e,u,i,t,o,{type:"MetaProperty",meta:n,property:I(e,u,0)})}function eu(e,u,n,i,t,o){P(e,u|32768,67174411),e.token===14&&d(e,139);let l=R(e,u,1,0,n,e.tokenPos,e.linePos,e.colPos);return P(e,u,16),y(e,u,i,t,o,{type:"ImportExpression",source:l})}function uu(e,u,n,i,t){let{tokenRaw:o,tokenValue:l}=e;return b(e,u),e.assignable=2,y(e,u,n,i,t,u&512?{type:"Literal",value:l,bigint:o.slice(0,-1),raw:o}:{type:"Literal",value:l,bigint:o.slice(0,-1)})}function ae(e,u,n,i,t){e.assignable=2;let{tokenValue:o,tokenRaw:l,tokenPos:f,linePos:c,colPos:a}=e;P(e,u,67174409);let g=[O2(e,u,o,l,f,c,a,!0)];return y(e,u,n,i,t,{type:"TemplateLiteral",expressions:[],quasis:g})}function me(e,u){u=(u|134217728)^134217728;let{tokenValue:n,tokenRaw:i,tokenPos:t,linePos:o,colPos:l}=e;P(e,u|32768,67174408);let f=[O2(e,u,n,i,t,o,l,!1)],c=[j(e,u,0,1,e.tokenPos,e.linePos,e.colPos)];for(e.token!==1074790415&&d(e,81);(e.token=Gu(e,u))!==67174409;){let{tokenValue:a,tokenRaw:g,tokenPos:m,linePos:s,colPos:k}=e;P(e,u|32768,67174408),f.push(O2(e,u,a,g,m,s,k,!1)),c.push(j(e,u,0,1,e.tokenPos,e.linePos,e.colPos)),e.token!==1074790415&&d(e,81)}{let{tokenValue:a,tokenRaw:g,tokenPos:m,linePos:s,colPos:k}=e;P(e,u,67174409),f.push(O2(e,u,a,g,m,s,k,!0))}return y(e,u,t,o,l,{type:"TemplateLiteral",expressions:c,quasis:f})}function O2(e,u,n,i,t,o,l,f){let c=y(e,u,t,o,l,{type:"TemplateElement",value:{cooked:n,raw:i},tail:f}),a=f?1:2;return u&2&&(c.start+=1,c.range[0]+=1,c.end-=a,c.range[1]-=a),u&4&&(c.loc.start.column+=1,c.loc.end.column-=a),c}function H1(e,u,n,i,t){u=(u|134217728)^134217728,P(e,u|32768,14);let o=R(e,u,1,0,0,e.tokenPos,e.linePos,e.colPos);return e.assignable=1,y(e,u,n,i,t,{type:"SpreadElement",argument:o})}function ge(e,u,n){b(e,u|32768);let i=[];if(e.token===16)return b(e,u),i;for(;e.token!==16&&(e.token===14?i.push(H1(e,u,e.tokenPos,e.linePos,e.colPos)):i.push(R(e,u,1,0,n,e.tokenPos,e.linePos,e.colPos)),!(e.token!==18||(b(e,u|32768),e.token===16))););return P(e,u,16),i}function I(e,u,n){let{tokenValue:i,tokenPos:t,linePos:o,colPos:l}=e;return b(e,u),y(e,u,t,o,l,u&268435456?{type:"Identifier",name:i,pattern:n===1}:{type:"Identifier",name:i})}function X(e,u){let{tokenValue:n,tokenRaw:i,tokenPos:t,linePos:o,colPos:l}=e;return e.token===134283389?uu(e,u,t,o,l):(b(e,u),e.assignable=2,y(e,u,t,o,l,u&512?{type:"Literal",value:n,raw:i}:{type:"Literal",value:n}))}function K1(e,u,n,i,t){let o=U[e.token&255],l=e.token===86023?null:o==="true";return b(e,u),e.assignable=2,y(e,u,n,i,t,u&512?{type:"Literal",value:l,raw:o}:{type:"Literal",value:l})}function $1(e,u){let{tokenPos:n,linePos:i,colPos:t}=e;return b(e,u),e.assignable=2,y(e,u,n,i,t,{type:"ThisExpression"})}function i2(e,u,n,i,t,o,l,f,c,a){b(e,u|32768);let g=t?le(e,u,8457014):0,m=null,s,k=n?s2():void 0;if(e.token===67174411)o&1||d(e,37,"Function");else{let E=i&4&&(!(u&8192)||!(u&2048))?4:64;Ke(e,u|(u&3072)<<11,e.token),n&&(E&4?_e(e,u,n,e.tokenValue,E):t2(e,u,n,e.tokenValue,E,i),k=J(k,256),o&&o&2&&l2(e,e.tokenValue)),s=e.token,e.token&143360?m=I(e,u,0):d(e,28,U[e.token&255])}u=(u|32243712)^32243712|67108864|l*2+g<<21|(g?0:1073741824),n&&(k=J(k,512));let C=tu(e,u|8388608,k,0,1),A=$2(e,(u|8192|4096|131072)^143360,n?J(k,128):k,8,s,n?k.scopeError:void 0);return y(e,u,f,c,a,{type:"FunctionDeclaration",id:m,params:C,body:A,async:l===1,generator:g===1})}function nu(e,u,n,i,t,o,l){b(e,u|32768);let f=le(e,u,8457014),c=n*2+f<<21,a=null,g,m=u&64?s2():void 0;(e.token&176128)>0&&(Ke(e,(u|32243712)^32243712|c,e.token),m&&(m=J(m,256)),g=e.token,a=I(e,u,0)),u=(u|32243712)^32243712|67108864|c|(f?0:1073741824),m&&(m=J(m,512));let s=tu(e,u|8388608,m,i,1),k=$2(e,u&-134377473,m&&J(m,128),0,g,void 0);return e.assignable=2,y(e,u,t,o,l,{type:"FunctionExpression",id:a,params:s,body:k,async:n===1,generator:f===1})}function W1(e,u,n,i,t,o,l){let f=_(e,u,void 0,n,i,0,2,0,t,o,l);return u&256&&e.destructible&64&&d(e,61),e.destructible&8&&d(e,60),f}function _(e,u,n,i,t,o,l,f,c,a,g){b(e,u|32768);let m=[],s=0;for(u=(u|134217728)^134217728;e.token!==20;)if(q(e,u|32768,18))m.push(null);else{let C,{token:A,tokenPos:E,linePos:w,colPos:B,tokenValue:M}=e;if(A&143360)if(C=K(e,u,l,0,1,0,t,1,E,w,B),e.token===1077936157){e.assignable&2&&d(e,24),b(e,u|32768),n&&e2(e,u,n,M,l,f);let S=R(e,u,1,1,t,e.tokenPos,e.linePos,e.colPos);C=y(e,u,E,w,B,o?{type:"AssignmentPattern",left:C,right:S}:{type:"AssignmentExpression",operator:"=",left:C,right:S}),s|=e.destructible&256?256:0|e.destructible&128?128:0}else e.token===18||e.token===20?(e.assignable&2?s|=16:n&&e2(e,u,n,M,l,f),s|=e.destructible&256?256:0|e.destructible&128?128:0):(s|=l&1?32:l&2?0:16,C=N(e,u,C,t,0,E,w,B),e.token!==18&&e.token!==20?(e.token!==1077936157&&(s|=16),C=O(e,u,t,o,E,w,B,C)):e.token!==1077936157&&(s|=e.assignable&2?16:32));else A&2097152?(C=e.token===2162700?r(e,u,n,0,t,o,l,f,E,w,B):_(e,u,n,0,t,o,l,f,E,w,B),s|=e.destructible,e.assignable=e.destructible&16?2:1,e.token===18||e.token===20?e.assignable&2&&(s|=16):e.destructible&8?d(e,69):(C=N(e,u,C,t,0,E,w,B),s=e.assignable&2?16:0,e.token!==18&&e.token!==20?C=O(e,u,t,o,E,w,B,C):e.token!==1077936157&&(s|=e.assignable&2?16:32))):A===14?(C=A2(e,u,n,20,l,f,0,t,o,E,w,B),s|=e.destructible,e.token!==18&&e.token!==20&&d(e,28,U[e.token&255])):(C=W(e,u,1,0,1,E,w,B),e.token!==18&&e.token!==20?(C=O(e,u,t,o,E,w,B,C),!(l&3)&&A===67174411&&(s|=16)):e.assignable&2?s|=16:A===67174411&&(s|=e.assignable&1&&l&3?32:16));if(m.push(C),q(e,u|32768,18)){if(e.token===20)break}else break}P(e,u,20);let k=y(e,u,c,a,g,{type:o?"ArrayPattern":"ArrayExpression",elements:m});return!i&&e.token&4194304?iu(e,u,s,t,o,c,a,g,k):(e.destructible=s,k)}function iu(e,u,n,i,t,o,l,f,c){e.token!==1077936157&&d(e,24),b(e,u|32768),n&16&&d(e,24),t||Z(e,c);let{tokenPos:a,linePos:g,colPos:m}=e,s=R(e,u,1,1,i,a,g,m);return e.destructible=(n|64|8)^72|(e.destructible&128?128:0)|(e.destructible&256?256:0),y(e,u,o,l,f,t?{type:"AssignmentPattern",left:c,right:s}:{type:"AssignmentExpression",left:c,operator:"=",right:s})}function A2(e,u,n,i,t,o,l,f,c,a,g,m){b(e,u|32768);let s=null,k=0,{token:C,tokenValue:A,tokenPos:E,linePos:w,colPos:B}=e;if(C&143360)e.assignable=1,s=K(e,u,t,0,1,0,f,1,E,w,B),C=e.token,s=N(e,u,s,f,0,E,w,B),e.token!==18&&e.token!==i&&(e.assignable&2&&e.token===1077936157&&d(e,69),k|=16,s=O(e,u,f,c,E,w,B,s)),e.assignable&2?k|=16:C===i||C===18?n&&e2(e,u,n,A,t,o):k|=32,k|=e.destructible&128?128:0;else if(C===i)d(e,39);else if(C&2097152)s=e.token===2162700?r(e,u,n,1,f,c,t,o,E,w,B):_(e,u,n,1,f,c,t,o,E,w,B),C=e.token,C!==1077936157&&C!==i&&C!==18?(e.destructible&8&&d(e,69),s=N(e,u,s,f,0,E,w,B),k|=e.assignable&2?16:0,(e.token&4194304)===4194304?(e.token!==1077936157&&(k|=16),s=O(e,u,f,c,E,w,B,s)):((e.token&8454144)===8454144&&(s=n2(e,u,1,E,w,B,4,C,s)),q(e,u|32768,22)&&(s=f2(e,u,s,E,w,B)),k|=e.assignable&2?16:32)):k|=i===1074790415&&C!==1077936157?16:e.destructible;else{k|=32,s=W(e,u,1,f,1,e.tokenPos,e.linePos,e.colPos);let{token:M,tokenPos:S,linePos:V,colPos:D}=e;return M===1077936157&&M!==i&&M!==18?(e.assignable&2&&d(e,24),s=O(e,u,f,c,S,V,D,s),k|=16):(M===18?k|=16:M!==i&&(s=O(e,u,f,c,S,V,D,s)),k|=e.assignable&1?32:16),e.destructible=k,e.token!==i&&e.token!==18&&d(e,156),y(e,u,a,g,m,{type:c?"RestElement":"SpreadElement",argument:s})}if(e.token!==i)if(t&1&&(k|=l?16:32),q(e,u|32768,1077936157)){k&16&&d(e,24),Z(e,s);let M=R(e,u,1,1,f,e.tokenPos,e.linePos,e.colPos);s=y(e,u,E,w,B,c?{type:"AssignmentPattern",left:s,right:M}:{type:"AssignmentExpression",left:s,operator:"=",right:M}),k=16}else k|=16;return e.destructible=k,y(e,u,a,g,m,{type:c?"RestElement":"SpreadElement",argument:s})}function Q(e,u,n,i,t,o,l){let f=n&64?14680064:31981568;u=(u|f)^f|(n&88)<<18|100925440;let c=u&64?J(s2(),512):void 0,a=r1(e,u|8388608,c,n,1,i);c&&(c=J(c,128));let g=$2(e,u&-134230017,c,0,void 0,void 0);return y(e,u,t,o,l,{type:"FunctionExpression",params:a,body:g,async:(n&16)>0,generator:(n&8)>0,id:null})}function _1(e,u,n,i,t,o,l){let f=r(e,u,void 0,n,i,0,2,0,t,o,l);return u&256&&e.destructible&64&&d(e,61),e.destructible&8&&d(e,60),f}function r(e,u,n,i,t,o,l,f,c,a,g){b(e,u);let m=[],s=0,k=0;for(u=(u|134217728)^134217728;e.token!==1074790415;){let{token:A,tokenValue:E,linePos:w,colPos:B,tokenPos:M}=e;if(A===14)m.push(A2(e,u,n,1074790415,l,f,0,t,o,M,w,B));else{let S=0,V=null,D,Y=e.token;if(e.token&143360||e.token===121)if(V=I(e,u,0),e.token===18||e.token===1074790415||e.token===1077936157)if(S|=4,u&1024&&(A&537079808)===537079808?s|=16:J2(e,u,l,A,0),n&&e2(e,u,n,E,l,f),q(e,u|32768,1077936157)){s|=8;let v=R(e,u,1,1,t,e.tokenPos,e.linePos,e.colPos);s|=e.destructible&256?256:0|e.destructible&128?128:0,D=y(e,u,M,w,B,{type:"AssignmentPattern",left:u&-2147483648?Object.assign({},V):V,right:v})}else s|=(A===209008?128:0)|(A===121?16:0),D=u&-2147483648?Object.assign({},V):V;else if(q(e,u|32768,21)){let{tokenPos:v,linePos:F,colPos:T}=e;if(E==="__proto__"&&k++,e.token&143360){let o2=e.token,m2=e.tokenValue;s|=Y===121?16:0,D=K(e,u,l,0,1,0,t,1,v,F,T);let{token:x}=e;D=N(e,u,D,t,0,v,F,T),e.token===18||e.token===1074790415?x===1077936157||x===1074790415||x===18?(s|=e.destructible&128?128:0,e.assignable&2?s|=16:n&&(o2&143360)===143360&&e2(e,u,n,m2,l,f)):s|=e.assignable&1?32:16:(e.token&4194304)===4194304?(e.assignable&2?s|=16:x!==1077936157?s|=32:n&&e2(e,u,n,m2,l,f),D=O(e,u,t,o,v,F,T,D)):(s|=16,(e.token&8454144)===8454144&&(D=n2(e,u,1,v,F,T,4,x,D)),q(e,u|32768,22)&&(D=f2(e,u,D,v,F,T)))}else(e.token&2097152)===2097152?(D=e.token===69271571?_(e,u,n,0,t,o,l,f,v,F,T):r(e,u,n,0,t,o,l,f,v,F,T),s=e.destructible,e.assignable=s&16?2:1,e.token===18||e.token===1074790415?e.assignable&2&&(s|=16):e.destructible&8?d(e,69):(D=N(e,u,D,t,0,v,F,T),s=e.assignable&2?16:0,(e.token&4194304)===4194304?D=V2(e,u,t,o,v,F,T,D):((e.token&8454144)===8454144&&(D=n2(e,u,1,v,F,T,4,A,D)),q(e,u|32768,22)&&(D=f2(e,u,D,v,F,T)),s|=e.assignable&2?16:32))):(D=W(e,u,1,t,1,v,F,T),s|=e.assignable&1?32:16,e.token===18||e.token===1074790415?e.assignable&2&&(s|=16):(D=N(e,u,D,t,0,v,F,T),s=e.assignable&2?16:0,e.token!==18&&A!==1074790415&&(e.token!==1077936157&&(s|=16),D=O(e,u,t,o,v,F,T,D))))}else e.token===69271571?(s|=16,A===209007&&(S|=16),S|=(A===12402?256:A===12403?512:1)|2,V=g2(e,u,t),s|=e.assignable,D=Q(e,u,S,t,e.tokenPos,e.linePos,e.colPos)):e.token&143360?(s|=16,A===121&&d(e,93),A===209007&&(e.flags&1&&d(e,129),S|=16),V=I(e,u,0),S|=A===12402?256:A===12403?512:1,D=Q(e,u,S,t,e.tokenPos,e.linePos,e.colPos)):e.token===67174411?(s|=16,S|=1,D=Q(e,u,S,t,e.tokenPos,e.linePos,e.colPos)):e.token===8457014?(s|=16,A===12402?d(e,40):A===12403?d(e,41):A===143483&&d(e,93),b(e,u),S|=9|(A===209007?16:0),e.token&143360?V=I(e,u,0):(e.token&134217728)===134217728?V=X(e,u):e.token===69271571?(S|=2,V=g2(e,u,t),s|=e.assignable):d(e,28,U[e.token&255]),D=Q(e,u,S,t,e.tokenPos,e.linePos,e.colPos)):(e.token&134217728)===134217728?(A===209007&&(S|=16),S|=A===12402?256:A===12403?512:1,s|=16,V=X(e,u),D=Q(e,u,S,t,e.tokenPos,e.linePos,e.colPos)):d(e,130);else if((e.token&134217728)===134217728)if(V=X(e,u),e.token===21){P(e,u|32768,21);let{tokenPos:v,linePos:F,colPos:T}=e;if(E==="__proto__"&&k++,e.token&143360){D=K(e,u,l,0,1,0,t,1,v,F,T);let{token:o2,tokenValue:m2}=e;D=N(e,u,D,t,0,v,F,T),e.token===18||e.token===1074790415?o2===1077936157||o2===1074790415||o2===18?e.assignable&2?s|=16:n&&e2(e,u,n,m2,l,f):s|=e.assignable&1?32:16:e.token===1077936157?(e.assignable&2&&(s|=16),D=O(e,u,t,o,v,F,T,D)):(s|=16,D=O(e,u,t,o,v,F,T,D))}else(e.token&2097152)===2097152?(D=e.token===69271571?_(e,u,n,0,t,o,l,f,v,F,T):r(e,u,n,0,t,o,l,f,v,F,T),s=e.destructible,e.assignable=s&16?2:1,e.token===18||e.token===1074790415?e.assignable&2&&(s|=16):(e.destructible&8)!==8&&(D=N(e,u,D,t,0,v,F,T),s=e.assignable&2?16:0,(e.token&4194304)===4194304?D=V2(e,u,t,o,v,F,T,D):((e.token&8454144)===8454144&&(D=n2(e,u,1,v,F,T,4,A,D)),q(e,u|32768,22)&&(D=f2(e,u,D,v,F,T)),s|=e.assignable&2?16:32))):(D=W(e,u,1,0,1,v,F,T),s|=e.assignable&1?32:16,e.token===18||e.token===1074790415?e.assignable&2&&(s|=16):(D=N(e,u,D,t,0,v,F,T),s=e.assignable&1?0:16,e.token!==18&&e.token!==1074790415&&(e.token!==1077936157&&(s|=16),D=O(e,u,t,o,v,F,T,D))))}else e.token===67174411?(S|=1,D=Q(e,u,S,t,e.tokenPos,e.linePos,e.colPos),s=e.assignable|16):d(e,131);else if(e.token===69271571)if(V=g2(e,u,t),s|=e.destructible&256?256:0,S|=2,e.token===21){b(e,u|32768);let{tokenPos:v,linePos:F,colPos:T,tokenValue:o2,token:m2}=e;if(e.token&143360){D=K(e,u,l,0,1,0,t,1,v,F,T);let{token:x}=e;D=N(e,u,D,t,0,v,F,T),(e.token&4194304)===4194304?(s|=e.assignable&2?16:x===1077936157?0:32,D=V2(e,u,t,o,v,F,T,D)):e.token===18||e.token===1074790415?x===1077936157||x===1074790415||x===18?e.assignable&2?s|=16:n&&(m2&143360)===143360&&e2(e,u,n,o2,l,f):s|=e.assignable&1?32:16:(s|=16,D=O(e,u,t,o,v,F,T,D))}else(e.token&2097152)===2097152?(D=e.token===69271571?_(e,u,n,0,t,o,l,f,v,F,T):r(e,u,n,0,t,o,l,f,v,F,T),s=e.destructible,e.assignable=s&16?2:1,e.token===18||e.token===1074790415?e.assignable&2&&(s|=16):s&8?d(e,60):(D=N(e,u,D,t,0,v,F,T),s=e.assignable&2?s|16:0,(e.token&4194304)===4194304?(e.token!==1077936157&&(s|=16),D=V2(e,u,t,o,v,F,T,D)):((e.token&8454144)===8454144&&(D=n2(e,u,1,v,F,T,4,A,D)),q(e,u|32768,22)&&(D=f2(e,u,D,v,F,T)),s|=e.assignable&2?16:32))):(D=W(e,u,1,0,1,v,F,T),s|=e.assignable&1?32:16,e.token===18||e.token===1074790415?e.assignable&2&&(s|=16):(D=N(e,u,D,t,0,v,F,T),s=e.assignable&1?0:16,e.token!==18&&e.token!==1074790415&&(e.token!==1077936157&&(s|=16),D=O(e,u,t,o,v,F,T,D))))}else e.token===67174411?(S|=1,D=Q(e,u,S,t,e.tokenPos,w,B),s=16):d(e,42);else if(A===8457014)if(P(e,u|32768,8457014),S|=8,e.token&143360){let{token:v,line:F,index:T}=e;V=I(e,u,0),S|=1,e.token===67174411?(s|=16,D=Q(e,u,S,t,e.tokenPos,e.linePos,e.colPos)):h2(T,F,T,v===209007?44:v===12402||e.token===12403?43:45,U[v&255])}else(e.token&134217728)===134217728?(s|=16,V=X(e,u),S|=1,D=Q(e,u,S,t,M,w,B)):e.token===69271571?(s|=16,S|=3,V=g2(e,u,t),D=Q(e,u,S,t,e.tokenPos,e.linePos,e.colPos)):d(e,123);else d(e,28,U[A&255]);s|=e.destructible&128?128:0,e.destructible=s,m.push(y(e,u,M,w,B,{type:"Property",key:V,value:D,kind:S&768?S&512?"set":"get":"init",computed:(S&2)>0,method:(S&1)>0,shorthand:(S&4)>0}))}if(s|=e.destructible,e.token!==18)break;b(e,u)}P(e,u,1074790415),k>1&&(s|=64);let C=y(e,u,c,a,g,{type:o?"ObjectPattern":"ObjectExpression",properties:m});return!i&&e.token&4194304?iu(e,u,s,t,o,c,a,g,C):(e.destructible=s,C)}function r1(e,u,n,i,t,o){P(e,u,67174411);let l=[];if(e.flags=(e.flags|128)^128,e.token===16)return i&512&&d(e,35,"Setter","one",""),b(e,u),l;i&256&&d(e,35,"Getter","no","s"),i&512&&e.token===14&&d(e,36),u=(u|134217728)^134217728;let f=0,c=0;for(;e.token!==18;){let a=null,{tokenPos:g,linePos:m,colPos:s}=e;if(e.token&143360?(u&1024||((e.token&36864)===36864&&(e.flags|=256),(e.token&537079808)===537079808&&(e.flags|=512)),a=he(e,u,n,i|1,0,g,m,s)):(e.token===2162700?a=r(e,u,n,1,o,1,t,0,g,m,s):e.token===69271571?a=_(e,u,n,1,o,1,t,0,g,m,s):e.token===14&&(a=A2(e,u,n,16,t,0,0,o,1,g,m,s)),c=1,e.destructible&48&&d(e,48)),e.token===1077936157){b(e,u|32768),c=1;let k=R(e,u,1,1,0,e.tokenPos,e.linePos,e.colPos);a=y(e,u,g,m,s,{type:"AssignmentPattern",left:a,right:k})}if(f++,l.push(a),!q(e,u,18)||e.token===16)break}return i&512&&f!==1&&d(e,35,"Setter","one",""),n&&n.scopeError!==void 0&&H2(n.scopeError),c&&(e.flags|=128),P(e,u,16),l}function g2(e,u,n){b(e,u|32768);let i=R(e,(u|134217728)^134217728,1,0,n,e.tokenPos,e.linePos,e.colPos);return P(e,u,20),i}function Y1(e,u,n,i,t,o,l,f){e.flags=(e.flags|128)^128;let{tokenPos:c,linePos:a,colPos:g}=e;b(e,u|32768|1073741824);let m=u&64?J(s2(),1024):void 0;if(u=(u|134217728)^134217728,q(e,u,16))return X2(e,u,m,[],n,0,o,l,f);let s=0;e.destructible&=-385;let k,C=[],A=0,E=0,{tokenPos:w,linePos:B,colPos:M}=e;for(e.assignable=1;e.token!==16;){let{token:S,tokenPos:V,linePos:D,colPos:Y}=e;if(S&143360)m&&t2(e,u,m,e.tokenValue,1,0),k=K(e,u,i,0,1,0,1,1,V,D,Y),e.token===16||e.token===18?e.assignable&2?(s|=16,E=1):((S&537079808)===537079808||(S&36864)===36864)&&(E=1):(e.token===1077936157?E=1:s|=16,k=N(e,u,k,1,0,V,D,Y),e.token!==16&&e.token!==18&&(k=O(e,u,1,0,V,D,Y,k)));else if((S&2097152)===2097152)k=S===2162700?r(e,u|1073741824,m,0,1,0,i,t,V,D,Y):_(e,u|1073741824,m,0,1,0,i,t,V,D,Y),s|=e.destructible,E=1,e.assignable=2,e.token!==16&&e.token!==18&&(s&8&&d(e,119),k=N(e,u,k,0,0,V,D,Y),s|=16,e.token!==16&&e.token!==18&&(k=O(e,u,0,0,V,D,Y,k)));else if(S===14){k=A2(e,u,m,16,i,t,0,1,0,V,D,Y),e.destructible&16&&d(e,72),E=1,A&&(e.token===16||e.token===18)&&C.push(k),s|=8;break}else{if(s|=16,k=R(e,u,1,0,1,V,D,Y),A&&(e.token===16||e.token===18)&&C.push(k),e.token===18&&(A||(A=1,C=[k])),A){for(;q(e,u|32768,18);)C.push(R(e,u,1,0,1,e.tokenPos,e.linePos,e.colPos));e.assignable=2,k=y(e,u,w,B,M,{type:"SequenceExpression",expressions:C})}return P(e,u,16),e.destructible=s,k}if(A&&(e.token===16||e.token===18)&&C.push(k),!q(e,u|32768,18))break;if(A||(A=1,C=[k]),e.token===16){s|=8;break}}return A&&(e.assignable=2,k=y(e,u,w,B,M,{type:"SequenceExpression",expressions:C})),P(e,u,16),s&16&&s&8&&d(e,146),s|=e.destructible&256?256:0|e.destructible&128?128:0,e.token===10?(s&48&&d(e,47),u&4196352&&s&128&&d(e,29),u&2098176&&s&256&&d(e,30),E&&(e.flags|=128),X2(e,u,m,A?C:[k],n,0,o,l,f)):(s&8&&d(e,140),e.destructible=(e.destructible|256)^256|s,u&128?y(e,u,c,a,g,{type:"ParenthesizedExpression",expression:k}):k)}function ye(e,u,n,i,t){let{tokenValue:o}=e,l=I(e,u,0);if(e.assignable=1,e.token===10){let f;return u&64&&(f=K2(e,u,o)),e.flags=(e.flags|128)^128,B2(e,u,f,[l],0,n,i,t)}return l}function W2(e,u,n,i,t,o,l,f,c,a){o||d(e,55),t&&d(e,49),e.flags&=-129;let g=u&64?K2(e,u,n):void 0;return B2(e,u,g,[i],l,f,c,a)}function X2(e,u,n,i,t,o,l,f,c){t||d(e,55);for(let a=0;a0&&e.tokenValue==="constructor"&&d(e,107),e.token===1074790415&&d(e,106),q(e,u,1074790417)){k>0&&d(e,117);continue}m.push(fu(e,u,i,n,t,s,0,l,e.tokenPos,e.linePos,e.colPos))}return P(e,o&8?u|32768:u,1074790415),e.flags=e.flags&-33|g,y(e,u,f,c,a,{type:"ClassBody",body:m})}function fu(e,u,n,i,t,o,l,f,c,a,g){let m=l?32:0,s=null,{token:k,tokenPos:C,linePos:A,colPos:E}=e;if(k&176128)switch(s=I(e,u,0),k){case 36972:if(!l&&e.token!==67174411&&(e.token&1048576)!==1048576&&e.token!==1077936157)return fu(e,u,n,i,t,o,1,f,c,a,g);break;case 209007:if(e.token!==67174411&&!(e.flags&1)){if(u&1&&(e.token&1073741824)===1073741824)return R2(e,u,s,m,o,C,A,E);m|=16|(le(e,u,8457014)?8:0)}break;case 12402:if(e.token!==67174411){if(u&1&&(e.token&1073741824)===1073741824)return R2(e,u,s,m,o,C,A,E);m|=256}break;case 12403:if(e.token!==67174411){if(u&1&&(e.token&1073741824)===1073741824)return R2(e,u,s,m,o,C,A,E);m|=512}break}else if(k===69271571)m|=2,s=g2(e,i,f);else if((k&134217728)===134217728)s=X(e,u);else if(k===8457014)m|=8,b(e,u);else if(u&1&&e.token===131)m|=4096,s=z2(e,u|16384,C,A,E);else if(u&1&&(e.token&1073741824)===1073741824)m|=128;else{if(l&&k===2162700)return B1(e,u,n,C,A,E);k===122?(s=I(e,u,0),e.token!==67174411&&d(e,28,U[e.token&255])):d(e,28,U[e.token&255])}if(m&792&&(e.token&143360?s=I(e,u,0):(e.token&134217728)===134217728?s=X(e,u):e.token===69271571?(m|=2,s=g2(e,u,0)):e.token===122?s=I(e,u,0):u&1&&e.token===131?(m|=4096,s=z2(e,u,C,A,E)):d(e,132)),m&2||(e.tokenValue==="constructor"?((e.token&1073741824)===1073741824?d(e,126):!(m&32)&&e.token===67174411&&(m&920?d(e,51,"accessor"):u&524288||(e.flags&32?d(e,52):e.flags|=32)),m|=64):!(m&4096)&&m&824&&e.tokenValue==="prototype"&&d(e,50)),u&1&&e.token!==67174411)return R2(e,u,s,m,o,C,A,E);let w=Q(e,u,m,f,e.tokenPos,e.linePos,e.colPos);return y(e,u,c,a,g,u&1?{type:"MethodDefinition",kind:!(m&32)&&m&64?"constructor":m&256?"get":m&512?"set":"method",static:(m&32)>0,computed:(m&2)>0,key:s,decorators:o,value:w}:{type:"MethodDefinition",kind:!(m&32)&&m&64?"constructor":m&256?"get":m&512?"set":"method",static:(m&32)>0,computed:(m&2)>0,key:s,value:w})}function z2(e,u,n,i,t){b(e,u);let{tokenValue:o}=e;return o==="constructor"&&d(e,125),b(e,u),y(e,u,n,i,t,{type:"PrivateIdentifier",name:o})}function R2(e,u,n,i,t,o,l,f){let c=null;if(i&8&&d(e,0),e.token===1077936157){b(e,u|32768);let{tokenPos:a,linePos:g,colPos:m}=e;e.token===537079928&&d(e,116),c=K(e,u|16384,2,0,1,0,0,1,a,g,m),(e.token&1073741824)!==1073741824&&(c=N(e,u|16384,c,0,0,a,g,m),c=O(e,u|16384,0,0,a,g,m,c),e.token===18&&(c=u2(e,u,0,o,l,f,c)))}return y(e,u,o,l,f,{type:"PropertyDefinition",key:n,value:c,static:(i&32)>0,computed:(i&2)>0,decorators:t})}function cu(e,u,n,i,t,o,l,f){if(e.token&143360)return he(e,u,n,i,t,o,l,f);(e.token&2097152)!==2097152&&d(e,28,U[e.token&255]);let c=e.token===69271571?_(e,u,n,1,0,1,i,t,o,l,f):r(e,u,n,1,0,1,i,t,o,l,f);return e.destructible&16&&d(e,48),e.destructible&32&&d(e,48),c}function he(e,u,n,i,t,o,l,f){let{tokenValue:c,token:a}=e;return u&1024&&((a&537079808)===537079808?d(e,116):(a&36864)===36864&&d(e,115)),(a&20480)===20480&&d(e,100),u&2099200&&a===241773&&d(e,30),a===241739&&i&24&&d(e,98),u&4196352&&a===209008&&d(e,96),b(e,u),n&&e2(e,u,n,c,i,t),y(e,u,o,l,f,{type:"Identifier",name:c})}function De(e,u,n,i,t,o){if(b(e,u),e.token===8456259)return y(e,u,i,t,o,{type:"JSXFragment",openingFragment:e0(e,u,i,t,o),children:Ne(e,u),closingFragment:n0(e,u,n,e.tokenPos,e.linePos,e.colPos)});let l=null,f=[],c=o0(e,u,n,i,t,o);if(!c.selfClosing){f=Ne(e,u),l=u0(e,u,n,e.tokenPos,e.linePos,e.colPos);let a=j2(l.name);j2(c.name)!==a&&d(e,150,a)}return y(e,u,i,t,o,{type:"JSXElement",children:f,openingElement:c,closingElement:l})}function e0(e,u,n,i,t){return d2(e,u),y(e,u,n,i,t,{type:"JSXOpeningFragment"})}function u0(e,u,n,i,t,o){P(e,u,25);let l=du(e,u,e.tokenPos,e.linePos,e.colPos);return n?P(e,u,8456259):e.token=d2(e,u),y(e,u,i,t,o,{type:"JSXClosingElement",name:l})}function n0(e,u,n,i,t,o){return P(e,u,25),P(e,u,8456259),y(e,u,i,t,o,{type:"JSXClosingFragment"})}function Ne(e,u){let n=[];for(;e.token!==25;)e.index=e.tokenPos=e.startPos,e.column=e.colPos=e.startColumn,e.line=e.linePos=e.startLine,d2(e,u),n.push(i0(e,u,e.tokenPos,e.linePos,e.colPos));return n}function i0(e,u,n,i,t){if(e.token===138)return t0(e,u,n,i,t);if(e.token===2162700)return au(e,u,0,0,n,i,t);if(e.token===8456258)return De(e,u,0,n,i,t);d(e,0)}function t0(e,u,n,i,t){d2(e,u);let o={type:"JSXText",value:e.tokenValue};return u&512&&(o.raw=e.tokenRaw),y(e,u,n,i,t,o)}function o0(e,u,n,i,t,o){(e.token&143360)!==143360&&(e.token&4096)!==4096&&d(e,0);let l=du(e,u,e.tokenPos,e.linePos,e.colPos),f=f0(e,u),c=e.token===8457016;return e.token===8456259?d2(e,u):(P(e,u,8457016),n?P(e,u,8456259):d2(e,u)),y(e,u,i,t,o,{type:"JSXOpeningElement",name:l,attributes:f,selfClosing:c})}function du(e,u,n,i,t){p2(e);let o=r2(e,u,n,i,t);if(e.token===21)return su(e,u,o,n,i,t);for(;q(e,u,67108877);)p2(e),o=l0(e,u,o,n,i,t);return o}function l0(e,u,n,i,t,o){let l=r2(e,u,e.tokenPos,e.linePos,e.colPos);return y(e,u,i,t,o,{type:"JSXMemberExpression",object:n,property:l})}function f0(e,u){let n=[];for(;e.token!==8457016&&e.token!==8456259&&e.token!==1048576;)n.push(d0(e,u,e.tokenPos,e.linePos,e.colPos));return n}function c0(e,u,n,i,t){b(e,u),P(e,u,14);let o=R(e,u,1,0,0,e.tokenPos,e.linePos,e.colPos);return P(e,u,1074790415),y(e,u,n,i,t,{type:"JSXSpreadAttribute",argument:o})}function d0(e,u,n,i,t){if(e.token===2162700)return c0(e,u,n,i,t);p2(e);let o=null,l=r2(e,u,n,i,t);if(e.token===21&&(l=su(e,u,l,n,i,t)),e.token===1077936157){let f=u1(e,u),{tokenPos:c,linePos:a,colPos:g}=e;switch(f){case 134283267:o=X(e,u);break;case 8456258:o=De(e,u,1,c,a,g);break;case 2162700:o=au(e,u,1,1,c,a,g);break;default:d(e,149)}}return y(e,u,n,i,t,{type:"JSXAttribute",value:o,name:l})}function su(e,u,n,i,t,o){P(e,u,21);let l=r2(e,u,e.tokenPos,e.linePos,e.colPos);return y(e,u,i,t,o,{type:"JSXNamespacedName",namespace:n,name:l})}function au(e,u,n,i,t,o,l){b(e,u|32768);let{tokenPos:f,linePos:c,colPos:a}=e;if(e.token===14)return s0(e,u,t,o,l);let g=null;return e.token===1074790415?(i&&d(e,152),g=a0(e,u,e.startPos,e.startLine,e.startColumn)):g=R(e,u,1,0,0,f,c,a),n?P(e,u,1074790415):d2(e,u),y(e,u,t,o,l,{type:"JSXExpressionContainer",expression:g})}function s0(e,u,n,i,t){P(e,u,14);let o=R(e,u,1,0,0,e.tokenPos,e.linePos,e.colPos);return P(e,u,1074790415),y(e,u,n,i,t,{type:"JSXSpreadChild",expression:o})}function a0(e,u,n,i,t){return e.startPos=e.tokenPos,e.startLine=e.linePos,e.startColumn=e.colPos,y(e,u,n,i,t,{type:"JSXEmptyExpression"})}function r2(e,u,n,i,t){let{tokenValue:o}=e;return b(e,u),y(e,u,n,i,t,{type:"JSXIdentifier",name:o})}function mu(e,u){return d1(e,u,0)}function m0(e,u){let n=new SyntaxError(e+" ("+u.loc.start.line+":"+u.loc.start.column+")");return Object.assign(n,u)}var Y2=m0;function g0(e){let u=[];for(let n of e)try{return n()}catch(i){u.push(i)}throw Object.assign(new Error("All combinations failed"),{errors:u})}var gu=g0;var C2=Ju(Cu(),1);function w0(e){if(!e.startsWith("#!"))return"";let u=e.indexOf(` -`);return u===-1?e:e.slice(0,u)}var Pu=w0;function S0(e){let u=Pu(e);u&&(e=e.slice(u.length+1));let n=(0,C2.extract)(e),{pragmas:i,comments:t}=(0,C2.parseWithComments)(n);return{shebang:u,text:e,pragmas:i,comments:t}}function Eu(e){let{pragmas:u}=S0(e);return Object.prototype.hasOwnProperty.call(u,"prettier")||Object.prototype.hasOwnProperty.call(u,"format")}function v0(e){return Array.isArray(e)&&e.length>0}var T2=v0;function $(e){var i;let u=e.range?e.range[0]:e.start,n=((i=e.declaration)==null?void 0:i.decorators)??e.decorators;return T2(n)?Math.min($(n[0]),u):u}function p(e){return e.range?e.range[1]:e.end}function B0(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:Eu,locStart:$,locEnd:p,...e}}var wu=B0;var T0=(e,u,n)=>{if(!(e&&u==null))return Array.isArray(u)||typeof u=="string"?u[n<0?u.length+n:n]:u.at(n)},be=T0;function F0(e){return e=new Set(e),u=>e.has(u==null?void 0:u.type)}var Su=F0;var q0=Su(["Block","CommentBlock","MultiLine"]),F2=q0;function L0(e){return F2(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/.test(e.value)}var vu=L0;function I0(e){let u=`*${e.value}*`.split(` -`);return u.length>1&&u.every(n=>n.trimStart()[0]==="*")}var Ae=I0;var q2=null;function L2(e){if(q2!==null&&typeof q2.property){let u=q2;return q2=L2.prototype=null,u}return q2=L2.prototype=e??Object.create(null),new L2}var N0=10;for(let e=0;e<=N0;e++)L2();function Ce(e){return L2(e)}function V0(e,u="type"){Ce(e);function n(i){let t=i[u],o=e[t];if(!Array.isArray(o))throw Object.assign(new Error(`Missing visitor keys for '${t}'.`),{node:i});return o}return n}var Bu=V0;var Tu={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ExportAllDeclaration:["source","attributes","assertions","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes","assertions"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes","assertions"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","parameter"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ImportExpression:["source","attributes"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareEnum:["id","body"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]};var R0=Bu(Tu),Fu=R0;function Pe(e,u){if(!(e!==null&&typeof e=="object"))return e;if(Array.isArray(e)){for(let i=0;i{var f;(f=l.leadingComments)!=null&&f.some(vu)&&o.add($(l))}),e=Q2(e,l=>{if(l.type==="ParenthesizedExpression"){let{expression:f}=l;if(f.type==="TypeCastExpression")return f.range=l.range,f;let c=$(l);if(!o.has(c))return f.extra={...f.extra,parenthesized:!0},f}})}if(e=Q2(e,o=>{switch(o.type){case"LogicalExpression":if(qu(o))return Ee(o);break;case"VariableDeclaration":{let l=be(!1,o.declarations,-1);l!=null&&l.init&&t(o,l);break}case"TSParenthesizedType":return o.typeAnnotation;case"TSTypeParameter":if(typeof o.name=="string"){let l=$(o);o.name={type:"Identifier",name:o.name,range:[l,l+o.name.length]}}break;case"ObjectExpression":if(n==="typescript"){let l=o.properties.find(f=>f.type==="Property"&&f.value.type==="TSEmptyBodyFunctionExpression");l&&Z2(l.value,"Unexpected token.")}break;case"TSInterfaceDeclaration":T2(o.implements)&&Z2(o.implements[0],"Interface declaration cannot have 'implements' clause.");break;case"TSPropertySignature":o.initializer&&Z2(o.initializer,"An interface property cannot have an initializer.");break;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":{let{exported:l}=o;if(n==="meriyah"&&(l==null?void 0:l.type)==="Identifier"){let f=i.slice($(l),p(l));(f.startsWith('"')||f.startsWith("'"))&&(o.exported={...o.exported,type:"Literal",value:o.exported.name,raw:f})}break}case"TSUnionType":case"TSIntersectionType":if(o.types.length===1)return o.types[0];break}}),T2(e.comments)){let o=be(!1,e.comments,-1);for(let l=e.comments.length-2;l>=0;l--){let f=e.comments[l];p(f)===$(o)&&F2(f)&&F2(o)&&Ae(f)&&Ae(o)&&(e.comments.splice(l+1,1),f.value+="*//*"+o.value,f.range=[$(f),p(o)]),o=f}}return e.type==="Program"&&(e.range=[0,i.length]),e;function t(o,l){i[p(l)]!==";"&&(o.range=[$(o),p(l)])}}function qu(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function Ee(e){return qu(e)?Ee({type:"LogicalExpression",operator:e.operator,left:Ee({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[$(e.left),p(e.right.left)]}),right:e.right.right,range:[$(e),p(e)]}):e}var Lu=U0;function M0(e){let{filepath:u}=e;if(u){if(u=u.toLowerCase(),u.endsWith(".cjs"))return"script";if(u.endsWith(".mjs"))return"module"}}var Iu=M0;var J0={next:!0,ranges:!0,webcompat:!0,loc:!0,raw:!0,directives:!0,globalReturn:!0,impliedStrict:!1,preserveParens:!1,lexical:!1,identifierPattern:!1,jsx:!0,specDeviation:!0,uniqueKeyInPattern:!1};function j0(e,u){let n=[],i=[],t=mu(e,{...J0,module:u==="module",onComment:n,onToken:i});return t.comments=n,t.tokens=i,t}function X0(e){var o;let{message:u,line:n,column:i}=e,t=(o=u.match(/^\[(?\d+):(?\d+)]: (?.*)$/))==null?void 0:o.groups;return t&&(u=t.message,typeof n!="number"&&(n=Number(t.line),i=Number(t.column))),typeof n!="number"?e:Y2(u,{loc:{start:{line:n,column:i}},cause:e})}function z0(e,u={}){let n=Iu(u),i=(n?[n]:["module","script"]).map(o=>()=>j0(e,o)),t;try{t=gu(i)}catch({errors:[o]}){throw X0(o)}return Lu(t,{parser:"meriyah",text:e})}var H0=wu(z0);return ju(K0);}); \ No newline at end of file +(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.meriyah=e()}})(function(){"use strict";var Ie=Object.create;var L2=Object.defineProperty;var Ne=Object.getOwnPropertyDescriptor;var Ve=Object.getOwnPropertyNames;var Re=Object.getPrototypeOf,Oe=Object.prototype.hasOwnProperty;var Ue=(u,e)=>()=>(e||u((e={exports:{}}).exports,e),e.exports),Pu=(u,e)=>{for(var n in e)L2(u,n,{get:e[n],enumerable:!0})},Eu=(u,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of Ve(e))!Oe.call(u,t)&&t!==n&&L2(u,t,{get:()=>e[t],enumerable:!(i=Ne(e,t))||i.enumerable});return u};var Me=(u,e,n)=>(n=u!=null?Ie(Re(u)):{},Eu(e||!u||!u.__esModule?L2(n,"default",{value:u,enumerable:!0}):n,u)),Je=u=>Eu(L2({},"__esModule",{value:!0}),u);var be=Ue(a2=>{"use strict";Object.defineProperty(a2,"__esModule",{value:!0});a2.extract=A0;a2.parse=C0;a2.parseWithComments=Ae;a2.print=P0;a2.strip=b0;var g0=/\*\/$/,y0=/^\/\*\*?/,he=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,k0=/(^|\s+)\/\/([^\r\n]*)/g,ge=/^(\r?\n)+/,h0=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,ye=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,D0=/(\r?\n|^) *\* ?/g,De=[];function A0(u){let e=u.match(he);return e?e[0].trimLeft():""}function b0(u){let e=u.match(he);return e&&e[0]?u.substring(e[0].length):u}function C0(u){return Ae(u).pragmas}function Ae(u){let e=` +`;u=u.replace(y0,"").replace(g0,"").replace(D0,"$1");let n="";for(;n!==u;)n=u,u=u.replace(h0,`${e}$1 $2${e}`);u=u.replace(ge,"").trimRight();let i=Object.create(null),t=u.replace(ye,"").replace(ge,"").trimRight(),o;for(;o=ye.exec(u);){let l=o[2].replace(k0,"");typeof i[o[1]]=="string"||Array.isArray(i[o[1]])?i[o[1]]=De.concat(i[o[1]],l):i[o[1]]=l}return{comments:t,pragmas:i}}function P0({comments:u="",pragmas:e={}}){let n=` +`,i="/**",t=" *",o=" */",l=Object.keys(e),f=l.map(a=>ke(a,e[a])).reduce((a,g)=>a.concat(g),[]).map(a=>`${t} ${a}${n}`).join("");if(!u){if(l.length===0)return"";if(l.length===1&&!Array.isArray(e[l[0]])){let a=e[l[0]];return`${i} ${ke(l[0],a)[0]}${o}`}}let c=u.split(n).map(a=>`${t} ${a}`).join(n)+n;return i+n+(u?c:"")+(u&&l.length?t+n:"")+f+o}function ke(u,e){return De.concat(e).map(n=>`@${u} ${n}`.trim())}});var z0={};Pu(z0,{parsers:()=>Cu});var Cu={};Pu(Cu,{meriyah:()=>X0});var je={0:"Unexpected token",28:"Unexpected token: '%0'",1:"Octal escape sequences are not allowed in strict mode",2:"Octal escape sequences are not allowed in template strings",3:"Unexpected token `#`",4:"Illegal Unicode escape sequence",5:"Invalid code point %0",6:"Invalid hexadecimal escape sequence",8:"Octal literals are not allowed in strict mode",7:"Decimal integer literals with a leading zero are forbidden in strict mode",9:"Expected number in radix %0",146:"Invalid left-hand side assignment to a destructible right-hand side",10:"Non-number found after exponent indicator",11:"Invalid BigIntLiteral",12:"No identifiers allowed directly after numeric literal",13:"Escapes \\8 or \\9 are not syntactically valid escapes",14:"Unterminated string literal",15:"Unterminated template literal",16:"Multiline comment was not closed properly",17:"The identifier contained dynamic unicode escape that was not closed",18:"Illegal character '%0'",19:"Missing hexadecimal digits",20:"Invalid implicit octal",21:"Invalid line break in string literal",22:"Only unicode escapes are legal in identifier names",23:"Expected '%0'",24:"Invalid left-hand side in assignment",25:"Invalid left-hand side in async arrow",26:'Calls to super must be in the "constructor" method of a class expression or class declaration that has a superclass',27:"Member access on super must be in a method",29:"Await expression not allowed in formal parameter",30:"Yield expression not allowed in formal parameter",93:"Unexpected token: 'escaped keyword'",31:"Unary expressions as the left operand of an exponentiation expression must be disambiguated with parentheses",120:"Async functions can only be declared at the top level or inside a block",32:"Unterminated regular expression",33:"Unexpected regular expression flag",34:"Duplicate regular expression flag '%0'",35:"%0 functions must have exactly %1 argument%2",36:"Setter function argument must not be a rest parameter",37:"%0 declaration must have a name in this context",38:"Function name may not contain any reserved words or be eval or arguments in strict mode",39:"The rest operator is missing an argument",40:"A getter cannot be a generator",41:"A setter cannot be a generator",42:"A computed property name must be followed by a colon or paren",131:"Object literal keys that are strings or numbers must be a method or have a colon",44:"Found `* async x(){}` but this should be `async * x(){}`",43:"Getters and setters can not be generators",45:"'%0' can not be generator method",46:"No line break is allowed after '=>'",47:"The left-hand side of the arrow can only be destructed through assignment",48:"The binding declaration is not destructible",49:"Async arrow can not be followed by new expression",50:"Classes may not have a static property named 'prototype'",51:"Class constructor may not be a %0",52:"Duplicate constructor method in class",53:"Invalid increment/decrement operand",54:"Invalid use of `new` keyword on an increment/decrement expression",55:"`=>` is an invalid assignment target",56:"Rest element may not have a trailing comma",57:"Missing initializer in %0 declaration",58:"'for-%0' loop head declarations can not have an initializer",59:"Invalid left-hand side in for-%0 loop: Must have a single binding",60:"Invalid shorthand property initializer",61:"Property name __proto__ appears more than once in object literal",62:"Let is disallowed as a lexically bound name",63:"Invalid use of '%0' inside new expression",64:"Illegal 'use strict' directive in function with non-simple parameter list",65:'Identifier "let" disallowed as left-hand side expression in strict mode',66:"Illegal continue statement",67:"Illegal break statement",68:"Cannot have `let[...]` as a var name in strict mode",69:"Invalid destructuring assignment target",70:"Rest parameter may not have a default initializer",71:"The rest argument must the be last parameter",72:"Invalid rest argument",74:"In strict mode code, functions can only be declared at top level or inside a block",75:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement",76:"Without web compatibility enabled functions can not be declared at top level, inside a block, or as the body of an if statement",77:"Class declaration can't appear in single-statement context",78:"Invalid left-hand side in for-%0",79:"Invalid assignment in for-%0",80:"for await (... of ...) is only valid in async functions and async generators",81:"The first token after the template expression should be a continuation of the template",83:"`let` declaration not allowed here and `let` cannot be a regular var name in strict mode",82:"`let \n [` is a restricted production at the start of a statement",84:"Catch clause requires exactly one parameter, not more (and no trailing comma)",85:"Catch clause parameter does not support default values",86:"Missing catch or finally after try",87:"More than one default clause in switch statement",88:"Illegal newline after throw",89:"Strict mode code may not include a with statement",90:"Illegal return statement",91:"The left hand side of the for-header binding declaration is not destructible",92:"new.target only allowed within functions",94:"'#' not followed by identifier",100:"Invalid keyword",99:"Can not use 'let' as a class name",98:"'A lexical declaration can't define a 'let' binding",97:"Can not use `let` as variable name in strict mode",95:"'%0' may not be used as an identifier in this context",96:"Await is only valid in async functions",101:"The %0 keyword can only be used with the module goal",102:"Unicode codepoint must not be greater than 0x10FFFF",103:"%0 source must be string",104:"Only a identifier can be used to indicate alias",105:"Only '*' or '{...}' can be imported after default",106:"Trailing decorator may be followed by method",107:"Decorators can't be used with a constructor",109:"HTML comments are only allowed with web compatibility (Annex B)",110:"The identifier 'let' must not be in expression position in strict mode",111:"Cannot assign to `eval` and `arguments` in strict mode",112:"The left-hand side of a for-of loop may not start with 'let'",113:"Block body arrows can not be immediately invoked without a group",114:"Block body arrows can not be immediately accessed without a group",115:"Unexpected strict mode reserved word",116:"Unexpected eval or arguments in strict mode",117:"Decorators must not be followed by a semicolon",118:"Calling delete on expression not allowed in strict mode",119:"Pattern can not have a tail",121:"Can not have a `yield` expression on the left side of a ternary",122:"An arrow function can not have a postfix update operator",123:"Invalid object literal key character after generator star",124:"Private fields can not be deleted",126:"Classes may not have a field called constructor",125:"Classes may not have a private element named constructor",127:"A class field initializer may not contain arguments",128:"Generators can only be declared at the top level or inside a block",129:"Async methods are a restricted production and cannot have a newline following it",130:"Unexpected character after object literal property name",132:"Invalid key token",133:"Label '%0' has already been declared",134:"continue statement must be nested within an iteration statement",135:"Undefined label '%0'",136:"Trailing comma is disallowed inside import(...) arguments",137:"import() requires exactly one argument",138:"Cannot use new with import(...)",139:"... is not allowed in import()",140:"Expected '=>'",141:"Duplicate binding '%0'",142:"Cannot export a duplicate name '%0'",145:"Duplicate %0 for-binding",143:"Exported binding '%0' needs to refer to a top-level declared variable",144:"Unexpected private field",148:"Numeric separators are not allowed at the end of numeric literals",147:"Only one underscore is allowed as numeric separator",149:"JSX value should be either an expression or a quoted JSX text",150:"Expected corresponding JSX closing tag for %0",151:"Adjacent JSX elements must be wrapped in an enclosing tag",152:"JSX attributes must only be assigned a non-empty 'expression'",153:"'%0' has already been declared",154:"'%0' shadowed a catch clause binding",155:"Dot property must be an identifier",156:"Encountered invalid input after spread/rest argument",157:"Catch without try",158:"Finally without try",159:"Expected corresponding closing tag for JSX fragment",160:"Coalescing and logical operators used together in the same expression must be disambiguated with parentheses",161:"Invalid tagged template on optional chain",162:"Invalid optional chain from super property",163:"Invalid optional chain from new expression",164:'Cannot use "import.meta" outside a module',165:"Leading decorators must be attached to a class declaration"},k2=class extends SyntaxError{constructor(e,n,i,t,...o){let l="["+n+":"+i+"]: "+je[t].replace(/%(\d+)/g,(f,c)=>o[c]);super(`${l}`),this.index=e,this.line=n,this.column=i,this.description=l,this.loc={line:n,column:i}}};function d(u,e,...n){throw new k2(u.index,u.line,u.column,e,...n)}function z2(u){throw new k2(u.index,u.line,u.column,u.type,u.params)}function h2(u,e,n,i,...t){throw new k2(u,e,n,i,...t)}function D2(u,e,n,i){throw new k2(u,e,n,i)}var E2=((u,e)=>{let n=new Uint32Array(104448),i=0,t=0;for(;i<3540;){let o=u[i++];if(o<0)t-=o;else{let l=u[i++];o&2&&(l=e[l]),o&1?n.fill(l,t,t+=u[i++]):n[t++]=l}}return n})([-1,2,24,2,25,2,5,-1,0,77595648,3,44,2,3,0,14,2,57,2,58,3,0,3,0,3168796671,0,4294956992,2,1,2,0,2,59,3,0,4,0,4294966523,3,0,4,2,16,2,60,2,0,0,4294836735,0,3221225471,0,4294901942,2,61,0,134152192,3,0,2,0,4294951935,3,0,2,0,2683305983,0,2684354047,2,17,2,0,0,4294961151,3,0,2,2,19,2,0,0,608174079,2,0,2,131,2,6,2,56,-1,2,37,0,4294443263,2,1,3,0,3,0,4294901711,2,39,0,4089839103,0,2961209759,0,1342439375,0,4294543342,0,3547201023,0,1577204103,0,4194240,0,4294688750,2,2,0,80831,0,4261478351,0,4294549486,2,2,0,2967484831,0,196559,0,3594373100,0,3288319768,0,8469959,2,194,2,3,0,3825204735,0,123747807,0,65487,0,4294828015,0,4092591615,0,1080049119,0,458703,2,3,2,0,0,2163244511,0,4227923919,0,4236247022,2,66,0,4284449919,0,851904,2,4,2,11,0,67076095,-1,2,67,0,1073741743,0,4093591391,-1,0,50331649,0,3265266687,2,32,0,4294844415,0,4278190047,2,18,2,129,-1,3,0,2,2,21,2,0,2,9,2,0,2,14,2,15,3,0,10,2,69,2,0,2,70,2,71,2,72,2,0,2,73,2,0,2,10,0,261632,2,23,3,0,2,2,12,2,4,3,0,18,2,74,2,5,3,0,2,2,75,0,2088959,2,27,2,8,0,909311,3,0,2,0,814743551,2,41,0,67057664,3,0,2,2,40,2,0,2,28,2,0,2,29,2,7,0,268374015,2,26,2,49,2,0,2,76,0,134153215,-1,2,6,2,0,2,7,0,2684354559,0,67044351,0,3221160064,0,1,-1,3,0,2,2,42,0,1046528,3,0,3,2,8,2,0,2,51,0,4294960127,2,9,2,38,2,10,0,4294377472,2,11,3,0,7,0,4227858431,3,0,8,2,12,2,0,2,78,2,9,2,0,2,79,2,80,2,81,-1,2,124,0,1048577,2,82,2,13,-1,2,13,0,131042,2,83,2,84,2,85,2,0,2,33,-83,2,0,2,53,2,7,3,0,4,0,1046559,2,0,2,14,2,0,0,2147516671,2,20,3,86,2,2,0,-16,2,87,0,524222462,2,4,2,0,0,4269801471,2,4,2,0,2,15,2,77,2,16,3,0,2,2,47,2,0,-1,2,17,-16,3,0,206,-2,3,0,655,2,18,3,0,36,2,68,-1,2,17,2,9,3,0,8,2,89,2,121,2,0,0,3220242431,3,0,3,2,19,2,90,2,91,3,0,2,2,92,2,0,2,93,2,94,2,0,0,4351,2,0,2,8,3,0,2,0,67043391,0,3909091327,2,0,2,22,2,8,2,18,3,0,2,0,67076097,2,7,2,0,2,20,0,67059711,0,4236247039,3,0,2,0,939524103,0,8191999,2,97,2,98,2,15,2,21,3,0,3,0,67057663,3,0,349,2,99,2,100,2,6,-264,3,0,11,2,22,3,0,2,2,31,-1,0,3774349439,2,101,2,102,3,0,2,2,19,2,103,3,0,10,2,9,2,17,2,0,2,45,2,0,2,30,2,104,2,23,0,1638399,2,172,2,105,3,0,3,2,18,2,24,2,25,2,5,2,26,2,0,2,7,2,106,-1,2,107,2,108,2,109,-1,3,0,3,2,11,-2,2,0,2,27,-3,2,150,-4,2,18,2,0,2,35,0,1,2,0,2,62,2,28,2,11,2,9,2,0,2,110,-1,3,0,4,2,9,2,21,2,111,2,6,2,0,2,112,2,0,2,48,-4,3,0,9,2,20,2,29,2,30,-4,2,113,2,114,2,29,2,20,2,7,-2,2,115,2,29,2,31,-2,2,0,2,116,-2,0,4277137519,0,2269118463,-1,3,18,2,-1,2,32,2,36,2,0,3,29,2,2,34,2,19,-3,3,0,2,2,33,-1,2,0,2,34,2,0,2,34,2,0,2,46,-10,2,0,0,203775,-2,2,18,2,43,2,35,-2,2,17,2,117,2,20,3,0,2,2,36,0,2147549120,2,0,2,11,2,17,2,135,2,0,2,37,2,52,0,5242879,3,0,2,0,402644511,-1,2,120,0,1090519039,-2,2,122,2,38,2,0,0,67045375,2,39,0,4226678271,0,3766565279,0,2039759,-4,3,0,2,0,3288270847,0,3,3,0,2,0,67043519,-5,2,0,0,4282384383,0,1056964609,-1,3,0,2,0,67043345,-1,2,0,2,40,2,41,-1,2,10,2,42,-6,2,0,2,11,-3,3,0,2,0,2147484671,2,125,0,4190109695,2,50,-2,2,126,0,4244635647,0,27,2,0,2,7,2,43,2,0,2,63,-1,2,0,2,40,-8,2,54,2,44,0,67043329,2,127,2,45,0,8388351,-2,2,128,0,3028287487,2,46,2,130,0,33259519,2,41,-9,2,20,-5,2,64,-2,3,0,28,2,31,-3,3,0,3,2,47,3,0,6,2,48,-85,3,0,33,2,47,-126,3,0,18,2,36,-269,3,0,17,2,40,2,7,2,41,-2,2,17,2,49,2,0,2,20,2,50,2,132,2,23,-21,3,0,2,-4,3,0,2,0,4294936575,2,0,0,4294934783,-2,0,196635,3,0,191,2,51,3,0,38,2,29,-1,2,33,-279,3,0,8,2,7,-1,2,133,2,52,3,0,11,2,6,-72,3,0,3,2,134,0,1677656575,-166,0,4161266656,0,4071,0,15360,-4,0,28,-13,3,0,2,2,37,2,0,2,136,2,137,2,55,2,0,2,138,2,139,2,140,3,0,10,2,141,2,142,2,15,3,37,2,3,53,2,3,54,2,0,4294954999,2,0,-16,2,0,2,88,2,0,0,2105343,0,4160749584,0,65534,-42,0,4194303871,0,2011,-6,2,0,0,1073684479,0,17407,-11,2,0,2,31,-40,3,0,6,0,8323103,-1,3,0,2,2,42,-37,2,55,2,144,2,145,2,146,2,147,2,148,-105,2,24,-32,3,0,1334,2,9,-1,3,0,129,2,27,3,0,6,2,9,3,0,180,2,149,3,0,233,0,1,-96,3,0,16,2,9,-47,3,0,154,2,56,-22381,3,0,7,2,23,-6130,3,5,2,-1,0,69207040,3,44,2,3,0,14,2,57,2,58,-3,0,3168731136,0,4294956864,2,1,2,0,2,59,3,0,4,0,4294966275,3,0,4,2,16,2,60,2,0,2,33,-1,2,17,2,61,-1,2,0,2,56,0,4294885376,3,0,2,0,3145727,0,2617294944,0,4294770688,2,23,2,62,3,0,2,0,131135,2,95,0,70256639,0,71303167,0,272,2,40,2,56,-1,2,37,2,30,-1,2,96,2,63,0,4278255616,0,4294836227,0,4294549473,0,600178175,0,2952806400,0,268632067,0,4294543328,0,57540095,0,1577058304,0,1835008,0,4294688736,2,65,2,64,0,33554435,2,123,2,65,2,151,0,131075,0,3594373096,0,67094296,2,64,-1,0,4294828e3,0,603979263,2,160,0,3,0,4294828001,0,602930687,2,183,0,393219,0,4294828016,0,671088639,0,2154840064,0,4227858435,0,4236247008,2,66,2,36,-1,2,4,0,917503,2,36,-1,2,67,0,537788335,0,4026531935,-1,0,1,-1,2,32,2,68,0,7936,-3,2,0,0,2147485695,0,1010761728,0,4292984930,0,16387,2,0,2,14,2,15,3,0,10,2,69,2,0,2,70,2,71,2,72,2,0,2,73,2,0,2,11,-1,2,23,3,0,2,2,12,2,4,3,0,18,2,74,2,5,3,0,2,2,75,0,253951,3,19,2,0,122879,2,0,2,8,0,276824064,-2,3,0,2,2,40,2,0,0,4294903295,2,0,2,29,2,7,-1,2,17,2,49,2,0,2,76,2,41,-1,2,20,2,0,2,27,-2,0,128,-2,2,77,2,8,0,4064,-1,2,119,0,4227907585,2,0,2,118,2,0,2,48,2,173,2,9,2,38,2,10,-1,0,74440192,3,0,6,-2,3,0,8,2,12,2,0,2,78,2,9,2,0,2,79,2,80,2,81,-3,2,82,2,13,-3,2,83,2,84,2,85,2,0,2,33,-83,2,0,2,53,2,7,3,0,4,0,817183,2,0,2,14,2,0,0,33023,2,20,3,86,2,-17,2,87,0,524157950,2,4,2,0,2,88,2,4,2,0,2,15,2,77,2,16,3,0,2,2,47,2,0,-1,2,17,-16,3,0,206,-2,3,0,655,2,18,3,0,36,2,68,-1,2,17,2,9,3,0,8,2,89,0,3072,2,0,0,2147516415,2,9,3,0,2,2,23,2,90,2,91,3,0,2,2,92,2,0,2,93,2,94,0,4294965179,0,7,2,0,2,8,2,91,2,8,-1,0,1761345536,2,95,0,4294901823,2,36,2,18,2,96,2,34,2,166,0,2080440287,2,0,2,33,2,143,0,3296722943,2,0,0,1046675455,0,939524101,0,1837055,2,97,2,98,2,15,2,21,3,0,3,0,7,3,0,349,2,99,2,100,2,6,-264,3,0,11,2,22,3,0,2,2,31,-1,0,2700607615,2,101,2,102,3,0,2,2,19,2,103,3,0,10,2,9,2,17,2,0,2,45,2,0,2,30,2,104,-3,2,105,3,0,3,2,18,-1,3,5,2,2,26,2,0,2,7,2,106,-1,2,107,2,108,2,109,-1,3,0,3,2,11,-2,2,0,2,27,-8,2,18,2,0,2,35,-1,2,0,2,62,2,28,2,29,2,9,2,0,2,110,-1,3,0,4,2,9,2,17,2,111,2,6,2,0,2,112,2,0,2,48,-4,3,0,9,2,20,2,29,2,30,-4,2,113,2,114,2,29,2,20,2,7,-2,2,115,2,29,2,31,-2,2,0,2,116,-2,0,4277075969,2,29,-1,3,18,2,-1,2,32,2,117,2,0,3,29,2,2,34,2,19,-3,3,0,2,2,33,-1,2,0,2,34,2,0,2,34,2,0,2,48,-10,2,0,0,197631,-2,2,18,2,43,2,118,-2,2,17,2,117,2,20,2,119,2,51,-2,2,119,2,23,2,17,2,33,2,119,2,36,0,4294901904,0,4718591,2,119,2,34,0,335544350,-1,2,120,2,121,-2,2,122,2,38,2,7,-1,2,123,2,65,0,3758161920,0,3,-4,2,0,2,27,0,2147485568,0,3,2,0,2,23,0,176,-5,2,0,2,47,2,186,-1,2,0,2,23,2,197,-1,2,0,0,16779263,-2,2,11,-7,2,0,2,121,-3,3,0,2,2,124,2,125,0,2147549183,0,2,-2,2,126,2,35,0,10,0,4294965249,0,67633151,0,4026597376,2,0,0,536871935,-1,2,0,2,40,-8,2,54,2,47,0,1,2,127,2,23,-3,2,128,2,35,2,129,2,130,0,16778239,-10,2,34,-5,2,64,-2,3,0,28,2,31,-3,3,0,3,2,47,3,0,6,2,48,-85,3,0,33,2,47,-126,3,0,18,2,36,-269,3,0,17,2,40,2,7,-3,2,17,2,131,2,0,2,23,2,48,2,132,2,23,-21,3,0,2,-4,3,0,2,0,67583,-1,2,103,-2,0,11,3,0,191,2,51,3,0,38,2,29,-1,2,33,-279,3,0,8,2,7,-1,2,133,2,52,3,0,11,2,6,-72,3,0,3,2,134,2,135,-187,3,0,2,2,37,2,0,2,136,2,137,2,55,2,0,2,138,2,139,2,140,3,0,10,2,141,2,142,2,15,3,37,2,3,53,2,3,54,2,2,143,-73,2,0,0,1065361407,0,16384,-11,2,0,2,121,-40,3,0,6,2,117,-1,3,0,2,0,2063,-37,2,55,2,144,2,145,2,146,2,147,2,148,-138,3,0,1334,2,9,-1,3,0,129,2,27,3,0,6,2,9,3,0,180,2,149,3,0,233,0,1,-96,3,0,16,2,9,-47,3,0,154,2,56,-28517,2,0,0,1,-1,2,124,2,0,0,8193,-21,2,193,0,10255,0,4,-11,2,64,2,171,-1,0,71680,-1,2,161,0,4292900864,0,805306431,-5,2,150,-1,2,157,-1,0,6144,-2,2,127,-1,2,154,-1,0,2147532800,2,151,2,165,2,0,2,164,0,524032,0,4,-4,2,190,0,205128192,0,1333757536,0,2147483696,0,423953,0,747766272,0,2717763192,0,4286578751,0,278545,2,152,0,4294886464,0,33292336,0,417809,2,152,0,1327482464,0,4278190128,0,700594195,0,1006647527,0,4286497336,0,4160749631,2,153,0,469762560,0,4171219488,0,8323120,2,153,0,202375680,0,3214918176,0,4294508592,2,153,-1,0,983584,0,48,0,58720273,0,3489923072,0,10517376,0,4293066815,0,1,0,2013265920,2,177,2,0,0,2089,0,3221225552,0,201375904,2,0,-2,0,256,0,122880,0,16777216,2,150,0,4160757760,2,0,-6,2,167,-11,0,3263218176,-1,0,49664,0,2160197632,0,8388802,-1,0,12713984,-1,2,154,2,159,2,178,-2,2,162,-20,0,3758096385,-2,2,155,0,4292878336,2,90,2,169,0,4294057984,-2,2,163,2,156,2,175,-2,2,155,-1,2,182,-1,2,170,2,124,0,4026593280,0,14,0,4292919296,-1,2,158,0,939588608,-1,0,805306368,-1,2,124,0,1610612736,2,156,2,157,2,4,2,0,-2,2,158,2,159,-3,0,267386880,-1,2,160,0,7168,-1,0,65024,2,154,2,161,2,179,-7,2,168,-8,2,162,-1,0,1426112704,2,163,-1,2,164,0,271581216,0,2149777408,2,23,2,161,2,124,0,851967,2,180,-1,2,23,2,181,-4,2,158,-20,2,195,2,165,-56,0,3145728,2,185,-4,2,166,2,124,-4,0,32505856,-1,2,167,-1,0,2147385088,2,90,1,2155905152,2,-3,2,103,2,0,2,168,-2,2,169,-6,2,170,0,4026597375,0,1,-1,0,1,-1,2,171,-3,2,117,2,64,-2,2,166,-2,2,176,2,124,-878,2,159,-36,2,172,-1,2,201,-10,2,188,-5,2,174,-6,0,4294965251,2,27,-1,2,173,-1,2,174,-2,0,4227874752,-3,0,2146435072,2,159,-2,0,1006649344,2,124,-1,2,90,0,201375744,-3,0,134217720,2,90,0,4286677377,0,32896,-1,2,158,-3,2,175,-349,2,176,0,1920,2,177,3,0,264,-11,2,157,-2,2,178,2,0,0,520617856,0,2692743168,0,36,-3,0,524284,-11,2,23,-1,2,187,-1,2,184,0,3221291007,2,178,-1,2,202,0,2158720,-3,2,159,0,1,-4,2,124,0,3808625411,0,3489628288,2,200,0,1207959680,0,3221274624,2,0,-3,2,179,0,120,0,7340032,-2,2,180,2,4,2,23,2,163,3,0,4,2,159,-1,2,181,2,177,-1,0,8176,2,182,2,179,2,183,-1,0,4290773232,2,0,-4,2,163,2,189,0,15728640,2,177,-1,2,161,-1,0,4294934512,3,0,4,-9,2,90,2,170,2,184,3,0,4,0,704,0,1849688064,2,185,-1,2,124,0,4294901887,2,0,0,130547712,0,1879048192,2,199,3,0,2,-1,2,186,2,187,-1,0,17829776,0,2025848832,0,4261477888,-2,2,0,-1,0,4286580608,-1,0,29360128,2,192,0,16252928,0,3791388672,2,38,3,0,2,-2,2,196,2,0,-1,2,103,-1,0,66584576,-1,2,191,3,0,9,2,124,-1,0,4294755328,3,0,2,-1,2,161,2,178,3,0,2,2,23,2,188,2,90,-2,0,245760,0,2147418112,-1,2,150,2,203,0,4227923456,-1,2,164,2,161,2,90,-3,0,4292870145,0,262144,2,124,3,0,2,0,1073758848,2,189,-1,0,4227921920,2,190,0,68289024,0,528402016,0,4292927536,3,0,4,-2,0,268435456,2,91,-2,2,191,3,0,5,-1,2,192,2,163,2,0,-2,0,4227923936,2,62,-1,2,155,2,95,2,0,2,154,2,158,3,0,6,-1,2,177,3,0,3,-2,0,2146959360,0,9440640,0,104857600,0,4227923840,3,0,2,0,768,2,193,2,77,-2,2,161,-2,2,119,-1,2,155,3,0,8,0,512,0,8388608,2,194,2,172,2,187,0,4286578944,3,0,2,0,1152,0,1266679808,2,191,0,576,0,4261707776,2,95,3,0,9,2,155,3,0,5,2,16,-1,0,2147221504,-28,2,178,3,0,3,-3,0,4292902912,-6,2,96,3,0,85,-33,0,4294934528,3,0,126,-18,2,195,3,0,269,-17,2,155,2,124,2,198,3,0,2,2,23,0,4290822144,-2,0,67174336,0,520093700,2,17,3,0,21,-2,2,179,3,0,3,-2,0,30720,-1,0,32512,3,0,2,0,4294770656,-191,2,174,-38,2,170,2,0,2,196,3,0,279,-8,2,124,2,0,0,4294508543,0,65295,-11,2,177,3,0,72,-3,0,3758159872,0,201391616,3,0,155,-7,2,170,-1,0,384,-1,0,133693440,-3,2,196,-2,2,26,3,0,4,2,169,-2,2,90,2,155,3,0,4,-2,2,164,-1,2,150,0,335552923,2,197,-1,0,538974272,0,2214592512,0,132e3,-10,0,192,-8,0,12288,-21,0,134213632,0,4294901761,3,0,42,0,100663424,0,4294965284,3,0,6,-1,0,3221282816,2,198,3,0,11,-1,2,199,3,0,40,-6,0,4286578784,2,0,-2,0,1006694400,3,0,24,2,35,-1,2,94,3,0,2,0,1,2,163,3,0,6,2,197,0,4110942569,0,1432950139,0,2701658217,0,4026532864,0,4026532881,2,0,2,45,3,0,8,-1,2,158,-2,2,169,0,98304,0,65537,2,170,-5,0,4294950912,2,0,2,118,0,65528,2,177,0,4294770176,2,26,3,0,4,-30,2,174,0,3758153728,-3,2,169,-2,2,155,2,188,2,158,-1,2,191,-1,2,161,0,4294754304,3,0,2,-3,0,33554432,-2,2,200,-3,2,169,0,4175478784,2,201,0,4286643712,0,4286644216,2,0,-4,2,202,-1,2,165,0,4227923967,3,0,32,-1334,2,163,2,0,-129,2,94,-6,2,163,-180,2,203,-233,2,4,3,0,96,-16,2,163,3,0,47,-154,2,165,3,0,22381,-7,2,17,3,0,6128],[4294967295,4294967291,4092460543,4294828031,4294967294,134217726,268435455,2147483647,1048575,1073741823,3892314111,134217727,1061158911,536805376,4294910143,4160749567,4294901759,4294901760,536870911,262143,8388607,4294902783,4294918143,65535,67043328,2281701374,4294967232,2097151,4294903807,4194303,255,67108863,4294967039,511,524287,131071,127,4292870143,4294902271,4294549487,33554431,1023,67047423,4294901888,4286578687,4294770687,67043583,32767,15,2047999,67043343,16777215,4294902e3,4294934527,4294966783,4294967279,2047,262083,20511,4290772991,41943039,493567,4294959104,603979775,65536,602799615,805044223,4294965206,8191,1031749119,4294917631,2134769663,4286578493,4282253311,4294942719,33540095,4294905855,4294967264,2868854591,1608515583,265232348,534519807,2147614720,1060109444,4093640016,17376,2139062143,224,4169138175,4294909951,4286578688,4294967292,4294965759,2044,4292870144,4294966272,4294967280,8289918,4294934399,4294901775,4294965375,1602223615,4294967259,4294443008,268369920,4292804608,486341884,4294963199,3087007615,1073692671,4128527,4279238655,4294902015,4294966591,2445279231,3670015,3238002687,31,63,4294967288,4294705151,4095,3221208447,4294549472,2147483648,4285526655,4294966527,4294705152,4294966143,64,4294966719,16383,3774873592,458752,536807423,67043839,3758096383,3959414372,3755993023,2080374783,4294835295,4294967103,4160749565,4087,184024726,2862017156,1593309078,268434431,268434414,4294901763,536870912,2952790016,202506752,139264,402653184,4261412864,4227922944,49152,61440,3758096384,117440512,65280,3233808384,3221225472,2097152,4294965248,32768,57152,67108864,4293918720,4290772992,25165824,57344,4227915776,4278190080,4227907584,65520,4026531840,4227858432,4160749568,3758129152,4294836224,63488,1073741824,4294967040,4194304,251658240,196608,4294963200,64512,417808,4227923712,12582912,50331648,65472,4294967168,4294966784,16,4294917120,2080374784,4096,65408,524288,65532]);function h(u){return u.column++,u.currentChar=u.source.charCodeAt(++u.index)}function Xe(u,e){if((e&64512)!==55296)return 0;let n=u.source.charCodeAt(u.index+1);return(n&64512)!==56320?0:(e=u.currentChar=65536+((e&1023)<<10)+(n&1023),E2[(e>>>5)+0]>>>e&31&1||d(u,18,G(e)),u.index++,u.column++,1)}function uu(u,e){u.currentChar=u.source.charCodeAt(++u.index),u.flags|=1,e&4||(u.column=0,u.line++)}function c2(u){u.flags|=1,u.currentChar=u.source.charCodeAt(++u.index),u.column=0,u.line++}function ze(u){return u===160||u===65279||u===133||u===5760||u>=8192&&u<=8203||u===8239||u===8287||u===12288||u===8201||u===65519}function G(u){return u<=65535?String.fromCharCode(u):String.fromCharCode(u>>>10)+String.fromCharCode(u&1023)}function H(u){return u<65?u-48:u-65+10&15}function He(u){switch(u){case 134283266:return"NumericLiteral";case 134283267:return"StringLiteral";case 86021:case 86022:return"BooleanLiteral";case 86023:return"NullLiteral";case 65540:return"RegularExpression";case 67174408:case 67174409:case 132:return"TemplateLiteral";default:return(u&143360)===143360?"Identifier":(u&4096)===4096?"Keyword":"Punctuator"}}var L=[0,0,0,0,0,0,0,0,0,0,1032,0,0,2056,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8192,0,3,0,0,8192,0,0,0,256,0,33024,0,0,242,242,114,114,114,114,114,114,594,594,0,0,16384,0,0,0,0,67,67,67,67,67,67,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,0,1,0,0,4099,0,71,71,71,71,71,71,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,16384,0,0,0,0],Ke=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Iu=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0];function Z2(u){return u<=127?Ke[u]:E2[(u>>>5)+34816]>>>u&31&1}function U2(u){return u<=127?Iu[u]:E2[(u>>>5)+0]>>>u&31&1||u===8204||u===8205}var Nu=["SingleLine","MultiLine","HTMLOpen","HTMLClose","HashbangComment"];function $e(u){let e=u.source;u.currentChar===35&&e.charCodeAt(u.index+1)===33&&(h(u),h(u),eu(u,e,0,4,u.tokenPos,u.linePos,u.colPos))}function wu(u,e,n,i,t,o,l,f){return i&2048&&d(u,0),eu(u,e,n,t,o,l,f)}function eu(u,e,n,i,t,o,l){let{index:f}=u;for(u.tokenPos=u.index,u.linePos=u.line,u.colPos=u.column;u.index=u.source.length)return d(u,32)}let t=u.index-1,o=0,l=u.currentChar,{index:f}=u;for(;U2(l);){switch(l){case 103:o&2&&d(u,34,"g"),o|=2;break;case 105:o&1&&d(u,34,"i"),o|=1;break;case 109:o&4&&d(u,34,"m"),o|=4;break;case 117:o&16&&d(u,34,"u"),o|=16;break;case 121:o&8&&d(u,34,"y"),o|=8;break;case 115:o&32&&d(u,34,"s"),o|=32;break;case 100:o&64&&d(u,34,"d"),o|=64;break;default:d(u,33)}l=h(u)}let c=u.source.slice(f,u.index),a=u.source.slice(n,t);return u.tokenRegExp={pattern:a,flags:c},e&512&&(u.tokenRaw=u.source.slice(u.tokenPos,u.index)),u.tokenValue=Ye(u,a,c),65540}function Ye(u,e,n){try{return new RegExp(e,n)}catch{try{return new RegExp(e,n.replace("d","")),null}catch{d(u,32)}}}function Qe(u,e,n){let{index:i}=u,t="",o=h(u),l=u.index;for(;!(L[o]&8);){if(o===n)return t+=u.source.slice(l,u.index),h(u),e&512&&(u.tokenRaw=u.source.slice(i,u.index)),u.tokenValue=t,134283267;if((o&8)===8&&o===92){if(t+=u.source.slice(l,u.index),o=h(u),o<127||o===8232||o===8233){let f=Vu(u,e,o);f>=0?t+=G(f):Ru(u,f,0)}else t+=G(o);l=u.index+1}u.index>=u.end&&d(u,14),o=h(u)}d(u,14)}function Vu(u,e,n){switch(n){case 98:return 8;case 102:return 12;case 114:return 13;case 110:return 10;case 116:return 9;case 118:return 11;case 13:if(u.index1114111)return-5;return u.currentChar<1||u.currentChar!==125?-4:t}else{if(!(L[i]&64))return-4;let t=u.source.charCodeAt(u.index+1);if(!(L[t]&64))return-4;let o=u.source.charCodeAt(u.index+2);if(!(L[o]&64))return-4;let l=u.source.charCodeAt(u.index+3);return L[l]&64?(u.index+=3,u.column+=3,u.currentChar=u.source.charCodeAt(u.index),H(i)<<12|H(t)<<8|H(o)<<4|H(l)):-4}}case 56:case 57:if(!(e&256))return-3;default:return n}}function Ru(u,e,n){switch(e){case-1:return;case-2:d(u,n?2:1);case-3:d(u,13);case-4:d(u,6);case-5:d(u,102)}}function Ou(u,e){let{index:n}=u,i=67174409,t="",o=h(u);for(;o!==96;){if(o===36&&u.source.charCodeAt(u.index+1)===123){h(u),i=67174408;break}else if((o&8)===8&&o===92)if(o=h(u),o>126)t+=G(o);else{let l=Vu(u,e|1024,o);if(l>=0)t+=G(l);else if(l!==-1&&e&65536){t=void 0,o=Ze(u,o),o<0&&(i=67174408);break}else Ru(u,l,1)}else u.index=u.end&&d(u,15),o=h(u)}return h(u),u.tokenValue=t,u.tokenRaw=u.source.slice(n+1,u.index-(i===67174409?1:2)),i}function Ze(u,e){for(;e!==96;){switch(e){case 36:{let n=u.index+1;if(n=u.end&&d(u,15),e=h(u)}return e}function re(u,e){return u.index>=u.end&&d(u,0),u.index--,u.column--,Ou(u,e)}function Su(u,e,n){let i=u.currentChar,t=0,o=9,l=n&64?0:1,f=0,c=0;if(n&64)t="."+I2(u,i),i=u.currentChar,i===110&&d(u,11);else{if(i===48)if(i=h(u),(i|32)===120){for(n=136,i=h(u);L[i]&4160;){if(i===95){c||d(u,147),c=0,i=h(u);continue}c=1,t=t*16+H(i),f++,i=h(u)}(f===0||!c)&&d(u,f===0?19:148)}else if((i|32)===111){for(n=132,i=h(u);L[i]&4128;){if(i===95){c||d(u,147),c=0,i=h(u);continue}c=1,t=t*8+(i-48),f++,i=h(u)}(f===0||!c)&&d(u,f===0?0:148)}else if((i|32)===98){for(n=130,i=h(u);L[i]&4224;){if(i===95){c||d(u,147),c=0,i=h(u);continue}c=1,t=t*2+(i-48),f++,i=h(u)}(f===0||!c)&&d(u,f===0?0:148)}else if(L[i]&32)for(e&1024&&d(u,1),n=1;L[i]&16;){if(L[i]&512){n=32,l=0;break}t=t*8+(i-48),i=h(u)}else L[i]&512?(e&1024&&d(u,1),u.flags|=64,n=32):i===95&&d(u,0);if(n&48){if(l){for(;o>=0&&L[i]&4112;){if(i===95){i=h(u),(i===95||n&32)&&D2(u.index,u.line,u.index+1,147),c=1;continue}c=0,t=10*t+(i-48),i=h(u),--o}if(c&&D2(u.index,u.line,u.index+1,148),o>=0&&!Z2(i)&&i!==46)return u.tokenValue=t,e&512&&(u.tokenRaw=u.source.slice(u.tokenPos,u.index)),134283266}t+=I2(u,i),i=u.currentChar,i===46&&(h(u)===95&&d(u,0),n=64,t+="."+I2(u,u.currentChar),i=u.currentChar)}}let a=u.index,g=0;if(i===110&&n&128)g=1,i=h(u);else if((i|32)===101){i=h(u),L[i]&256&&(i=h(u));let{index:m}=u;L[i]&16||d(u,10),t+=u.source.substring(a,m)+I2(u,i),i=u.currentChar}return(u.index","(","{",".","...","}",")",";",",","[","]",":","?","'",'"',"","++","--","=","<<=",">>=",">>>=","**=","+=","-=","*=","/=","%=","^=","|=","&=","||=","&&=","??=","typeof","delete","void","!","~","+","-","in","instanceof","*","%","/","**","&&","||","===","!==","==","!=","<=",">=","<",">","<<",">>",">>>","&","|","^","var","let","const","break","case","catch","class","continue","debugger","default","do","else","export","extends","finally","for","function","if","import","new","return","super","switch","this","throw","try","while","with","implements","interface","package","private","protected","public","static","yield","as","async","await","constructor","get","set","from","of","enum","eval","arguments","escaped keyword","escaped future reserved keyword","reserved if strict","#","BigIntLiteral","??","?.","WhiteSpace","Illegal","LineTerminator","PrivateField","Template","@","target","meta","LineFeed","Escaped","JSXText"],Uu=Object.create(null,{this:{value:86113},function:{value:86106},if:{value:20571},return:{value:20574},var:{value:86090},else:{value:20565},for:{value:20569},new:{value:86109},in:{value:8738868},typeof:{value:16863277},while:{value:20580},case:{value:20558},break:{value:20557},try:{value:20579},catch:{value:20559},delete:{value:16863278},throw:{value:86114},switch:{value:86112},continue:{value:20561},default:{value:20563},instanceof:{value:8476725},do:{value:20564},void:{value:16863279},finally:{value:20568},async:{value:209007},await:{value:209008},class:{value:86096},const:{value:86092},constructor:{value:12401},debugger:{value:20562},export:{value:20566},extends:{value:20567},false:{value:86021},from:{value:12404},get:{value:12402},implements:{value:36966},import:{value:86108},interface:{value:36967},let:{value:241739},null:{value:86023},of:{value:274549},package:{value:36968},private:{value:36969},protected:{value:36970},public:{value:36971},set:{value:12403},static:{value:36972},super:{value:86111},true:{value:86022},with:{value:20581},yield:{value:241773},enum:{value:86134},eval:{value:537079927},as:{value:77934},arguments:{value:537079928},target:{value:143494},meta:{value:143495}});function Bu(u,e,n){for(;Iu[h(u)];);return u.tokenValue=u.source.slice(u.tokenPos,u.index),u.currentChar!==92&&u.currentChar<=126?Uu[u.tokenValue]||208897:nu(u,e,0,n)}function Ge(u,e){let n=Mu(u);return U2(n)||d(u,4),u.tokenValue=G(n),nu(u,e,1,L[n]&4)}function nu(u,e,n,i){let t=u.index;for(;u.index=2&&o<=11){let l=Uu[u.tokenValue];return l===void 0?208897:n?l===209008?e&4196352?121:l:e&1024?l===36972||(l&36864)===36864?122:(l&20480)===20480?e&1073741824&&!(e&8192)?l:121:143483:e&1073741824&&!(e&8192)&&(l&20480)===20480?l:l===241773?e&1073741824?143483:e&2097152?121:l:l===209007?143483:(l&36864)===36864?l:121:l}return 208897}function xe(u){return Z2(h(u))||d(u,94),131}function Mu(u){return u.source.charCodeAt(u.index+1)!==117&&d(u,4),u.currentChar=u.source.charCodeAt(u.index+=2),pe(u)}function pe(u){let e=0,n=u.currentChar;if(n===123){let l=u.index-2;for(;L[h(u)]&64;)e=e<<4|H(u.currentChar),e>1114111&&D2(l,u.line,u.index+1,102);return u.currentChar!==125&&D2(l,u.line,u.index-1,6),h(u),e}L[n]&64||d(u,6);let i=u.source.charCodeAt(u.index+1);L[i]&64||d(u,6);let t=u.source.charCodeAt(u.index+2);L[t]&64||d(u,6);let o=u.source.charCodeAt(u.index+3);return L[o]&64||d(u,6),e=H(n)<<12|H(i)<<8|H(t)<<4|H(o),u.currentChar=u.source.charCodeAt(u.index+=4),e}var Ju=[129,129,129,129,129,129,129,129,129,128,136,128,128,130,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,128,16842800,134283267,131,208897,8457015,8455751,134283267,67174411,16,8457014,25233970,18,25233971,67108877,8457016,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,21,1074790417,8456258,1077936157,8456259,22,133,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,69271571,137,20,8455497,208897,132,4096,4096,4096,4096,4096,4096,4096,208897,4096,208897,208897,4096,208897,4096,208897,4096,208897,4096,4096,4096,208897,4096,4096,208897,4096,4096,2162700,8455240,1074790415,16842801,129];function A(u,e){if(u.flags=(u.flags|1)^1,u.startPos=u.index,u.startColumn=u.column,u.startLine=u.line,u.token=ju(u,e,0),u.onToken&&u.token!==1048576){let n={start:{line:u.linePos,column:u.colPos},end:{line:u.line,column:u.column}};u.onToken(He(u.token),u.tokenPos,u.index,n)}}function ju(u,e,n){let i=u.index===0,t=u.source,o=u.index,l=u.line,f=u.column;for(;u.index=u.end)return 8457014;let s=u.currentChar;return s===61?(h(u),4194340):s!==42?8457014:h(u)!==61?8457273:(h(u),4194337)}case 8455497:return h(u)!==61?8455497:(h(u),4194343);case 25233970:{h(u);let s=u.currentChar;return s===43?(h(u),33619995):s===61?(h(u),4194338):25233970}case 25233971:{h(u);let s=u.currentChar;if(s===45){if(h(u),(n&1||i)&&u.currentChar===62){e&256||d(u,109),h(u),n=wu(u,t,n,e,3,o,l,f),o=u.tokenPos,l=u.linePos,f=u.colPos;continue}return 33619996}return s===61?(h(u),4194339):25233971}case 8457016:{if(h(u),u.index=48&&m<=57)return Su(u,e,80);if(m===46){let s=u.index+1;if(s=48&&s<=57)))return h(u),67108991}return 22}}}else{if((c^8232)<=1){n=n&-5|1,c2(u);continue}if((c&64512)===55296||E2[(c>>>5)+34816]>>>c&31&1)return(c&64512)===56320&&(c=(c&1023)<<10|c&1023|65536,E2[(c>>>5)+0]>>>c&31&1||d(u,18,G(c)),u.index++,u.currentChar=c),u.column++,u.tokenValue="",nu(u,e,0,0);if(ze(c)){h(u);continue}d(u,18,G(c))}}return 1048576}function u1(u,e){return u.startPos=u.tokenPos=u.index,u.startColumn=u.colPos=u.column,u.startLine=u.linePos=u.line,u.token=L[u.currentChar]&8192?e1(u,e):ju(u,e,0),u.token}function e1(u,e){let n=u.currentChar,i=h(u),t=u.index;for(;i!==n;)u.index>=u.end&&d(u,14),i=h(u);return i!==n&&d(u,14),u.tokenValue=u.source.slice(t,u.index),h(u),e&512&&(u.tokenRaw=u.source.slice(u.tokenPos,u.index)),134283267}function d2(u,e){if(u.startPos=u.tokenPos=u.index,u.startColumn=u.colPos=u.column,u.startLine=u.linePos=u.line,u.index>=u.end)return u.token=1048576;switch(Ju[u.source.charCodeAt(u.index)]){case 8456258:{h(u),u.currentChar===47?(h(u),u.token=25):u.token=8456258;break}case 2162700:{h(u),u.token=2162700;break}default:{let i=0;for(;u.index1&&t&32&&u.token&262144&&d(u,59,U[u.token&255]),l}function Tu(u,e,n,i,t){let{token:o,tokenPos:l,linePos:f,colPos:c}=u,a=null,g=le(u,e,n,i,t,l,f,c);return u.token===1077936157?(A(u,e|32768),a=R(u,e,1,0,0,u.tokenPos,u.linePos,u.colPos),(t&32||!(o&2097152))&&(u.token===274549||u.token===8738868&&(o&2097152||!(i&4)||e&1024))&&h2(l,u.line,u.index-3,58,u.token===274549?"of":"in")):(i&16||(o&2097152)>0)&&(u.token&262144)!==262144&&d(u,57,i&16?"const":"destructuring"),y(u,e,l,f,c,{type:"VariableDeclarator",id:g,init:a})}function F1(u,e,n,i,t,o,l){A(u,e);let f=((e&4194304)>0||(e&2048)>0&&(e&8192)>0)&&q(u,e,209008);P(u,e|32768,67174411),n&&(n=J(n,1));let c=null,a=null,g=0,m=null,s=u.token===86090||u.token===241739||u.token===86092,k,{token:C,tokenPos:b,linePos:E,colPos:w}=u;if(s?C===241739?(m=I(u,e,0),u.token&2240512?(u.token===8738868?e&1024&&d(u,65):m=y(u,e,b,E,w,{type:"VariableDeclaration",kind:"let",declarations:y2(u,e|134217728,n,8,32)}),u.assignable=1):e&1024?d(u,65):(s=!1,u.assignable=1,m=N(u,e,m,0,0,b,E,w),u.token===274549&&d(u,112))):(A(u,e),m=y(u,e,b,E,w,C===86090?{type:"VariableDeclaration",kind:"var",declarations:y2(u,e|134217728,n,4,32)}:{type:"VariableDeclaration",kind:"const",declarations:y2(u,e|134217728,n,16,32)}),u.assignable=1):C===1074790417?f&&d(u,80):(C&2097152)===2097152?(m=C===2162700?Y(u,e,void 0,1,0,0,2,32,b,E,w):_(u,e,void 0,1,0,0,2,32,b,E,w),g=u.destructible,e&256&&g&64&&d(u,61),u.assignable=g&16?2:1,m=N(u,e|134217728,m,0,0,u.tokenPos,u.linePos,u.colPos)):m=W(u,e|134217728,1,0,1,b,E,w),(u.token&262144)===262144){if(u.token===274549){u.assignable&2&&d(u,78,f?"await":"of"),r(u,m),A(u,e|32768),k=R(u,e,1,0,0,u.tokenPos,u.linePos,u.colPos),P(u,e|32768,16);let S=P2(u,e,n,i);return y(u,e,t,o,l,{type:"ForOfStatement",left:m,right:k,body:S,await:f})}u.assignable&2&&d(u,78,"in"),r(u,m),A(u,e|32768),f&&d(u,80),k=j(u,e,0,1,u.tokenPos,u.linePos,u.colPos),P(u,e|32768,16);let M=P2(u,e,n,i);return y(u,e,t,o,l,{type:"ForInStatement",body:M,left:m,right:k})}f&&d(u,80),s||(g&8&&u.token!==1077936157&&d(u,78,"loop"),m=O(u,e|134217728,0,0,b,E,w,m)),u.token===18&&(m=e2(u,e,0,u.tokenPos,u.linePos,u.colPos,m)),P(u,e|32768,1074790417),u.token!==1074790417&&(c=j(u,e,0,1,u.tokenPos,u.linePos,u.colPos)),P(u,e|32768,1074790417),u.token!==16&&(a=j(u,e,0,1,u.tokenPos,u.linePos,u.colPos)),P(u,e|32768,16);let v=P2(u,e,n,i);return y(u,e,t,o,l,{type:"ForStatement",init:m,test:c,update:a,body:v})}function Yu(u,e,n){return tu(e,u.token)||d(u,115),(u.token&537079808)===537079808&&d(u,116),n&&t2(u,e,n,u.tokenValue,8,0),I(u,e,0)}function q1(u,e,n){let i=u.tokenPos,t=u.linePos,o=u.colPos;A(u,e);let l=null,{tokenPos:f,linePos:c,colPos:a}=u,g=[];if(u.token===134283267)l=X(u,e);else{if(u.token&143360){let m=Yu(u,e,n);if(g=[y(u,e,f,c,a,{type:"ImportDefaultSpecifier",local:m})],q(u,e,18))switch(u.token){case 8457014:g.push(Fu(u,e,n));break;case 2162700:qu(u,e,n,g);break;default:d(u,105)}}else switch(u.token){case 8457014:g=[Fu(u,e,n)];break;case 2162700:qu(u,e,n,g);break;case 67174411:return Zu(u,e,i,t,o);case 67108877:return Qu(u,e,i,t,o);default:d(u,28,U[u.token&255])}l=L1(u,e)}return z(u,e|32768),y(u,e,i,t,o,{type:"ImportDeclaration",specifiers:g,source:l})}function Fu(u,e,n){let{tokenPos:i,linePos:t,colPos:o}=u;return A(u,e),P(u,e,77934),(u.token&134217728)===134217728&&h2(i,u.line,u.index,28,U[u.token&255]),y(u,e,i,t,o,{type:"ImportNamespaceSpecifier",local:Yu(u,e,n)})}function L1(u,e){return q(u,e,12404),u.token!==134283267&&d(u,103,"Import"),X(u,e)}function qu(u,e,n,i){for(A(u,e);u.token&143360;){let{token:t,tokenValue:o,tokenPos:l,linePos:f,colPos:c}=u,a=I(u,e,0),g;q(u,e,77934)?((u.token&134217728)===134217728||u.token===18?d(u,104):M2(u,e,16,u.token,0),o=u.tokenValue,g=I(u,e,0)):(M2(u,e,16,t,0),g=a),n&&t2(u,e,n,o,8,0),i.push(y(u,e,l,f,c,{type:"ImportSpecifier",local:g,imported:a})),u.token!==1074790415&&P(u,e,18)}return P(u,e,1074790415),i}function Qu(u,e,n,i,t){let o=Gu(u,e,y(u,e,n,i,t,{type:"Identifier",name:"import"}),n,i,t);return o=N(u,e,o,0,0,n,i,t),o=O(u,e,0,0,n,i,t,o),A2(u,e,o,n,i,t)}function Zu(u,e,n,i,t){let o=xu(u,e,0,n,i,t);return o=N(u,e,o,0,0,n,i,t),u.token===18&&(o=e2(u,e,0,n,i,t,o)),A2(u,e,o,n,i,t)}function I1(u,e,n){let i=u.tokenPos,t=u.linePos,o=u.colPos;A(u,e|32768);let l=[],f=null,c=null,a;if(q(u,e|32768,20563)){switch(u.token){case 86106:{f=i2(u,e,n,4,1,1,0,u.tokenPos,u.linePos,u.colPos);break}case 133:case 86096:f=p2(u,e,n,1,u.tokenPos,u.linePos,u.colPos);break;case 209007:let{tokenPos:g,linePos:m,colPos:s}=u;f=I(u,e,0);let{flags:k}=u;k&1||(u.token===86106?f=i2(u,e,n,4,1,1,1,g,m,s):u.token===67174411?(f=mu(u,e,f,1,1,0,k,g,m,s),f=N(u,e,f,0,0,g,m,s),f=O(u,e,0,0,g,m,s,f)):u.token&143360&&(n&&(n=H2(u,e,u.tokenValue)),f=I(u,e,0),f=v2(u,e,n,[f],1,g,m,s)));break;default:f=R(u,e,1,0,0,u.tokenPos,u.linePos,u.colPos),z(u,e|32768)}return n&&l2(u,"default"),y(u,e,i,t,o,{type:"ExportDefaultDeclaration",declaration:f})}switch(u.token){case 8457014:{A(u,e);let k=null;return q(u,e,77934)&&(n&&l2(u,u.tokenValue),k=I(u,e,0)),P(u,e,12404),u.token!==134283267&&d(u,103,"Export"),c=X(u,e),z(u,e|32768),y(u,e,i,t,o,{type:"ExportAllDeclaration",source:c,exported:k})}case 2162700:{A(u,e);let k=[],C=[];for(;u.token&143360;){let{tokenPos:b,tokenValue:E,linePos:w,colPos:v}=u,M=I(u,e,0),S;u.token===77934?(A(u,e),(u.token&134217728)===134217728&&d(u,104),n&&(k.push(u.tokenValue),C.push(E)),S=I(u,e,0)):(n&&(k.push(u.tokenValue),C.push(u.tokenValue)),S=M),l.push(y(u,e,b,w,v,{type:"ExportSpecifier",local:M,exported:S})),u.token!==1074790415&&P(u,e,18)}if(P(u,e,1074790415),q(u,e,12404))u.token!==134283267&&d(u,103,"Export"),c=X(u,e);else if(n){let b=0,E=k.length;for(;b0)&8738868,g,m;for(u.assignable=2;u.token&8454144&&(g=u.token,m=g&3840,(g&524288&&f&268435456||f&524288&&g&268435456)&&d(u,160),!(m+((g===8457273)<<8)-((a===g)<<12)<=l));)A(u,e|32768),c=y(u,e,i,t,o,{type:g&524288||g&268435456?"LogicalExpression":"BinaryExpression",left:c,right:n2(u,e,n,u.tokenPos,u.linePos,u.colPos,m,g,W(u,e,0,n,1,u.tokenPos,u.linePos,u.colPos)),operator:U[g&255]});return u.token===1077936157&&d(u,24),c}function N1(u,e,n,i,t,o,l){n||d(u,0);let f=u.token;A(u,e|32768);let c=W(u,e,0,l,1,u.tokenPos,u.linePos,u.colPos);return u.token===8457273&&d(u,31),e&1024&&f===16863278&&(c.type==="Identifier"?d(u,118):n1(c)&&d(u,124)),u.assignable=2,y(u,e,i,t,o,{type:"UnaryExpression",operator:U[f&255],argument:c,prefix:!0})}function V1(u,e,n,i,t,o,l,f,c,a){let{token:g}=u,m=I(u,e,o),{flags:s}=u;if(!(s&1)){if(u.token===86106)return ue(u,e,1,n,f,c,a);if((u.token&143360)===143360)return i||d(u,0),ie(u,e,t,f,c,a)}return!l&&u.token===67174411?mu(u,e,m,t,1,0,s,f,c,a):u.token===10?(ou(u,e,g,1),l&&d(u,49),$2(u,e,u.tokenValue,m,l,t,0,f,c,a)):m}function R1(u,e,n,i,t,o,l){if(n&&(u.destructible|=256),e&2097152){A(u,e|32768),e&8388608&&d(u,30),i||d(u,24),u.token===22&&d(u,121);let f=null,c=!1;return u.flags&1||(c=q(u,e|32768,8457014),(u.token&77824||c)&&(f=R(u,e,1,0,0,u.tokenPos,u.linePos,u.colPos))),u.assignable=2,y(u,e,t,o,l,{type:"YieldExpression",argument:f,delegate:c})}return e&1024&&d(u,95,"yield"),au(u,e,t,o,l)}function O1(u,e,n,i,t,o,l){if(i&&(u.destructible|=128),e&4194304||e&2048&&e&8192){n&&d(u,0),e&8388608&&h2(u.index,u.line,u.index,29),A(u,e|32768);let f=W(u,e,0,0,1,u.tokenPos,u.linePos,u.colPos);return u.token===8457273&&d(u,31),u.assignable=2,y(u,e,t,o,l,{type:"AwaitExpression",argument:f})}return e&2048&&d(u,96),au(u,e,t,o,l)}function K2(u,e,n,i,t,o){let{tokenPos:l,linePos:f,colPos:c}=u;P(u,e|32768,2162700);let a=[],g=e;if(u.token!==1074790415){for(;u.token===134283267;){let{index:m,tokenPos:s,tokenValue:k,token:C}=u,b=X(u,e);Xu(u,m,s,k)&&(e|=1024,u.flags&128&&h2(u.index,u.line,u.tokenPos,64),u.flags&64&&h2(u.index,u.line,u.tokenPos,8)),a.push(fu(u,e,b,C,s,u.linePos,u.colPos))}e&1024&&(t&&((t&537079808)===537079808&&d(u,116),(t&36864)===36864&&d(u,38)),u.flags&512&&d(u,116),u.flags&256&&d(u,115)),e&64&&n&&o!==void 0&&!(g&1024)&&!(e&8192)&&z2(o)}for(u.flags=(u.flags|512|256|64)^832,u.destructible=(u.destructible|256)^256;u.token!==1074790415;)a.push(S2(u,e,n,4,{}));return P(u,i&24?e|32768:e,1074790415),u.flags&=-193,u.token===1077936157&&d(u,24),y(u,e,l,f,c,{type:"BlockStatement",body:a})}function U1(u,e,n,i,t){switch(A(u,e),u.token){case 67108991:d(u,162);case 67174411:{e&524288||d(u,26),e&16384&&d(u,27),u.assignable=2;break}case 69271571:case 67108877:{e&262144||d(u,27),e&16384&&d(u,27),u.assignable=1;break}default:d(u,28,"super")}return y(u,e,n,i,t,{type:"Super"})}function W(u,e,n,i,t,o,l,f){let c=K(u,e,2,0,n,0,i,t,o,l,f);return N(u,e,c,i,0,o,l,f)}function M1(u,e,n,i,t,o){u.assignable&2&&d(u,53);let{token:l}=u;return A(u,e),u.assignable=2,y(u,e,i,t,o,{type:"UpdateExpression",argument:n,operator:U[l&255],prefix:!1})}function N(u,e,n,i,t,o,l,f){if((u.token&33619968)===33619968&&!(u.flags&1))n=M1(u,e,n,o,l,f);else if((u.token&67108864)===67108864){switch(e=(e|134217728)^134217728,u.token){case 67108877:{A(u,(e|1073741824|8192)^8192),u.assignable=1;let c=ru(u,e);n=y(u,e,o,l,f,{type:"MemberExpression",object:n,computed:!1,property:c});break}case 69271571:{let c=!1;(u.flags&2048)===2048&&(c=!0,u.flags=(u.flags|2048)^2048),A(u,e|32768);let{tokenPos:a,linePos:g,colPos:m}=u,s=j(u,e,i,1,a,g,m);P(u,e,20),u.assignable=1,n=y(u,e,o,l,f,{type:"MemberExpression",object:n,computed:!0,property:s}),c&&(u.flags|=2048);break}case 67174411:{if((u.flags&1024)===1024)return u.flags=(u.flags|1024)^1024,n;let c=!1;(u.flags&2048)===2048&&(c=!0,u.flags=(u.flags|2048)^2048);let a=su(u,e,i);u.assignable=2,n=y(u,e,o,l,f,{type:"CallExpression",callee:n,arguments:a}),c&&(u.flags|=2048);break}case 67108991:{A(u,(e|1073741824|8192)^8192),u.flags|=2048,u.assignable=2,n=J1(u,e,n,o,l,f);break}default:(u.flags&2048)===2048&&d(u,161),u.assignable=2,n=y(u,e,o,l,f,{type:"TaggedTemplateExpression",tag:n,quasi:u.token===67174408?du(u,e|65536):cu(u,e,u.tokenPos,u.linePos,u.colPos)})}n=N(u,e,n,0,1,o,l,f)}return t===0&&(u.flags&2048)===2048&&(u.flags=(u.flags|2048)^2048,n=y(u,e,o,l,f,{type:"ChainExpression",expression:n})),n}function J1(u,e,n,i,t,o){let l=!1,f;if((u.token===69271571||u.token===67174411)&&(u.flags&2048)===2048&&(l=!0,u.flags=(u.flags|2048)^2048),u.token===69271571){A(u,e|32768);let{tokenPos:c,linePos:a,colPos:g}=u,m=j(u,e,0,1,c,a,g);P(u,e,20),u.assignable=2,f=y(u,e,i,t,o,{type:"MemberExpression",object:n,computed:!0,optional:!0,property:m})}else if(u.token===67174411){let c=su(u,e,0);u.assignable=2,f=y(u,e,i,t,o,{type:"CallExpression",callee:n,arguments:c,optional:!0})}else{u.token&143360||d(u,155);let c=I(u,e,0);u.assignable=2,f=y(u,e,i,t,o,{type:"MemberExpression",object:n,computed:!1,optional:!0,property:c})}return l&&(u.flags|=2048),f}function ru(u,e){return!(u.token&143360)&&u.token!==131&&d(u,155),e&1&&u.token===131?X2(u,e,u.tokenPos,u.linePos,u.colPos):I(u,e,0)}function j1(u,e,n,i,t,o,l){n&&d(u,54),i||d(u,0);let{token:f}=u;A(u,e|32768);let c=W(u,e,0,0,1,u.tokenPos,u.linePos,u.colPos);return u.assignable&2&&d(u,53),u.assignable=2,y(u,e,t,o,l,{type:"UpdateExpression",argument:c,operator:U[f&255],prefix:!0})}function K(u,e,n,i,t,o,l,f,c,a,g){if((u.token&143360)===143360){switch(u.token){case 209008:return O1(u,e,i,l,c,a,g);case 241773:return R1(u,e,l,t,c,a,g);case 209007:return V1(u,e,l,f,t,o,i,c,a,g)}let{token:m,tokenValue:s}=u,k=I(u,e|65536,o);return u.token===10?(f||d(u,0),ou(u,e,m,1),$2(u,e,s,k,i,t,0,c,a,g)):(e&16384&&m===537079928&&d(u,127),m===241739&&(e&1024&&d(u,110),n&24&&d(u,98)),u.assignable=e&1024&&(m&537079808)===537079808?2:1,k)}if((u.token&134217728)===134217728)return X(u,e);switch(u.token){case 33619995:case 33619996:return j1(u,e,i,f,c,a,g);case 16863278:case 16842800:case 16842801:case 25233970:case 25233971:case 16863277:case 16863279:return N1(u,e,f,c,a,g,l);case 86106:return ue(u,e,0,l,c,a,g);case 2162700:return W1(u,e,t?0:1,l,c,a,g);case 69271571:return $1(u,e,t?0:1,l,c,a,g);case 67174411:return Y1(u,e,t,1,0,c,a,g);case 86021:case 86022:case 86023:return H1(u,e,c,a,g);case 86113:return K1(u,e);case 65540:return r1(u,e,c,a,g);case 133:case 86096:return G1(u,e,l,c,a,g);case 86111:return U1(u,e,c,a,g);case 67174409:return cu(u,e,c,a,g);case 67174408:return du(u,e);case 86109:return Q1(u,e,l,c,a,g);case 134283389:return pu(u,e,c,a,g);case 131:return X2(u,e,c,a,g);case 86108:return X1(u,e,i,l,c,a,g);case 8456258:if(e&16)return yu(u,e,1,c,a,g);default:if(tu(e,u.token))return au(u,e,c,a,g);d(u,28,U[u.token&255])}}function X1(u,e,n,i,t,o,l){let f=I(u,e,0);return u.token===67108877?Gu(u,e,f,t,o,l):(n&&d(u,138),f=xu(u,e,i,t,o,l),u.assignable=2,N(u,e,f,i,0,t,o,l))}function Gu(u,e,n,i,t,o){return e&2048||d(u,164),A(u,e),u.token!==143495&&u.tokenValue!=="meta"&&d(u,28,U[u.token&255]),u.assignable=2,y(u,e,i,t,o,{type:"MetaProperty",meta:n,property:I(u,e,0)})}function xu(u,e,n,i,t,o){P(u,e|32768,67174411),u.token===14&&d(u,139);let l=R(u,e,1,0,n,u.tokenPos,u.linePos,u.colPos);return P(u,e,16),y(u,e,i,t,o,{type:"ImportExpression",source:l})}function pu(u,e,n,i,t){let{tokenRaw:o,tokenValue:l}=u;return A(u,e),u.assignable=2,y(u,e,n,i,t,e&512?{type:"Literal",value:l,bigint:o.slice(0,-1),raw:o}:{type:"Literal",value:l,bigint:o.slice(0,-1)})}function cu(u,e,n,i,t){u.assignable=2;let{tokenValue:o,tokenRaw:l,tokenPos:f,linePos:c,colPos:a}=u;P(u,e,67174409);let g=[R2(u,e,o,l,f,c,a,!0)];return y(u,e,n,i,t,{type:"TemplateLiteral",expressions:[],quasis:g})}function du(u,e){e=(e|134217728)^134217728;let{tokenValue:n,tokenRaw:i,tokenPos:t,linePos:o,colPos:l}=u;P(u,e|32768,67174408);let f=[R2(u,e,n,i,t,o,l,!1)],c=[j(u,e,0,1,u.tokenPos,u.linePos,u.colPos)];for(u.token!==1074790415&&d(u,81);(u.token=re(u,e))!==67174409;){let{tokenValue:a,tokenRaw:g,tokenPos:m,linePos:s,colPos:k}=u;P(u,e|32768,67174408),f.push(R2(u,e,a,g,m,s,k,!1)),c.push(j(u,e,0,1,u.tokenPos,u.linePos,u.colPos)),u.token!==1074790415&&d(u,81)}{let{tokenValue:a,tokenRaw:g,tokenPos:m,linePos:s,colPos:k}=u;P(u,e,67174409),f.push(R2(u,e,a,g,m,s,k,!0))}return y(u,e,t,o,l,{type:"TemplateLiteral",expressions:c,quasis:f})}function R2(u,e,n,i,t,o,l,f){let c=y(u,e,t,o,l,{type:"TemplateElement",value:{cooked:n,raw:i},tail:f}),a=f?1:2;return e&2&&(c.start+=1,c.range[0]+=1,c.end-=a,c.range[1]-=a),e&4&&(c.loc.start.column+=1,c.loc.end.column-=a),c}function z1(u,e,n,i,t){e=(e|134217728)^134217728,P(u,e|32768,14);let o=R(u,e,1,0,0,u.tokenPos,u.linePos,u.colPos);return u.assignable=1,y(u,e,n,i,t,{type:"SpreadElement",argument:o})}function su(u,e,n){A(u,e|32768);let i=[];if(u.token===16)return A(u,e),i;for(;u.token!==16&&(u.token===14?i.push(z1(u,e,u.tokenPos,u.linePos,u.colPos)):i.push(R(u,e,1,0,n,u.tokenPos,u.linePos,u.colPos)),!(u.token!==18||(A(u,e|32768),u.token===16))););return P(u,e,16),i}function I(u,e,n){let{tokenValue:i,tokenPos:t,linePos:o,colPos:l}=u;return A(u,e),y(u,e,t,o,l,e&268435456?{type:"Identifier",name:i,pattern:n===1}:{type:"Identifier",name:i})}function X(u,e){let{tokenValue:n,tokenRaw:i,tokenPos:t,linePos:o,colPos:l}=u;return u.token===134283389?pu(u,e,t,o,l):(A(u,e),u.assignable=2,y(u,e,t,o,l,e&512?{type:"Literal",value:n,raw:i}:{type:"Literal",value:n}))}function H1(u,e,n,i,t){let o=U[u.token&255],l=u.token===86023?null:o==="true";return A(u,e),u.assignable=2,y(u,e,n,i,t,e&512?{type:"Literal",value:l,raw:o}:{type:"Literal",value:l})}function K1(u,e){let{tokenPos:n,linePos:i,colPos:t}=u;return A(u,e),u.assignable=2,y(u,e,n,i,t,{type:"ThisExpression"})}function i2(u,e,n,i,t,o,l,f,c,a){A(u,e|32768);let g=t?iu(u,e,8457014):0,m=null,s,k=n?s2():void 0;if(u.token===67174411)o&1||d(u,37,"Function");else{let E=i&4&&(!(e&8192)||!(e&2048))?4:64;zu(u,e|(e&3072)<<11,u.token),n&&(E&4?$u(u,e,n,u.tokenValue,E):t2(u,e,n,u.tokenValue,E,i),k=J(k,256),o&&o&2&&l2(u,u.tokenValue)),s=u.token,u.token&143360?m=I(u,e,0):d(u,28,U[u.token&255])}e=(e|32243712)^32243712|67108864|l*2+g<<21|(g?0:1073741824),n&&(k=J(k,512));let C=ne(u,e|8388608,k,0,1),b=K2(u,(e|8192|4096|131072)^143360,n?J(k,128):k,8,s,n?k.scopeError:void 0);return y(u,e,f,c,a,{type:"FunctionDeclaration",id:m,params:C,body:b,async:l===1,generator:g===1})}function ue(u,e,n,i,t,o,l){A(u,e|32768);let f=iu(u,e,8457014),c=n*2+f<<21,a=null,g,m=e&64?s2():void 0;(u.token&176128)>0&&(zu(u,(e|32243712)^32243712|c,u.token),m&&(m=J(m,256)),g=u.token,a=I(u,e,0)),e=(e|32243712)^32243712|67108864|c|(f?0:1073741824),m&&(m=J(m,512));let s=ne(u,e|8388608,m,i,1),k=K2(u,e&-134377473,m&&J(m,128),0,g,void 0);return u.assignable=2,y(u,e,t,o,l,{type:"FunctionExpression",id:a,params:s,body:k,async:n===1,generator:f===1})}function $1(u,e,n,i,t,o,l){let f=_(u,e,void 0,n,i,0,2,0,t,o,l);return e&256&&u.destructible&64&&d(u,61),u.destructible&8&&d(u,60),f}function _(u,e,n,i,t,o,l,f,c,a,g){A(u,e|32768);let m=[],s=0;for(e=(e|134217728)^134217728;u.token!==20;)if(q(u,e|32768,18))m.push(null);else{let C,{token:b,tokenPos:E,linePos:w,colPos:v,tokenValue:M}=u;if(b&143360)if(C=K(u,e,l,0,1,0,t,1,E,w,v),u.token===1077936157){u.assignable&2&&d(u,24),A(u,e|32768),n&&u2(u,e,n,M,l,f);let S=R(u,e,1,1,t,u.tokenPos,u.linePos,u.colPos);C=y(u,e,E,w,v,o?{type:"AssignmentPattern",left:C,right:S}:{type:"AssignmentExpression",operator:"=",left:C,right:S}),s|=u.destructible&256?256:0|u.destructible&128?128:0}else u.token===18||u.token===20?(u.assignable&2?s|=16:n&&u2(u,e,n,M,l,f),s|=u.destructible&256?256:0|u.destructible&128?128:0):(s|=l&1?32:l&2?0:16,C=N(u,e,C,t,0,E,w,v),u.token!==18&&u.token!==20?(u.token!==1077936157&&(s|=16),C=O(u,e,t,o,E,w,v,C)):u.token!==1077936157&&(s|=u.assignable&2?16:32));else b&2097152?(C=u.token===2162700?Y(u,e,n,0,t,o,l,f,E,w,v):_(u,e,n,0,t,o,l,f,E,w,v),s|=u.destructible,u.assignable=u.destructible&16?2:1,u.token===18||u.token===20?u.assignable&2&&(s|=16):u.destructible&8?d(u,69):(C=N(u,e,C,t,0,E,w,v),s=u.assignable&2?16:0,u.token!==18&&u.token!==20?C=O(u,e,t,o,E,w,v,C):u.token!==1077936157&&(s|=u.assignable&2?16:32))):b===14?(C=b2(u,e,n,20,l,f,0,t,o,E,w,v),s|=u.destructible,u.token!==18&&u.token!==20&&d(u,28,U[u.token&255])):(C=W(u,e,1,0,1,E,w,v),u.token!==18&&u.token!==20?(C=O(u,e,t,o,E,w,v,C),!(l&3)&&b===67174411&&(s|=16)):u.assignable&2?s|=16:b===67174411&&(s|=u.assignable&1&&l&3?32:16));if(m.push(C),q(u,e|32768,18)){if(u.token===20)break}else break}P(u,e,20);let k=y(u,e,c,a,g,{type:o?"ArrayPattern":"ArrayExpression",elements:m});return!i&&u.token&4194304?ee(u,e,s,t,o,c,a,g,k):(u.destructible=s,k)}function ee(u,e,n,i,t,o,l,f,c){u.token!==1077936157&&d(u,24),A(u,e|32768),n&16&&d(u,24),t||r(u,c);let{tokenPos:a,linePos:g,colPos:m}=u,s=R(u,e,1,1,i,a,g,m);return u.destructible=(n|64|8)^72|(u.destructible&128?128:0)|(u.destructible&256?256:0),y(u,e,o,l,f,t?{type:"AssignmentPattern",left:c,right:s}:{type:"AssignmentExpression",left:c,operator:"=",right:s})}function b2(u,e,n,i,t,o,l,f,c,a,g,m){A(u,e|32768);let s=null,k=0,{token:C,tokenValue:b,tokenPos:E,linePos:w,colPos:v}=u;if(C&143360)u.assignable=1,s=K(u,e,t,0,1,0,f,1,E,w,v),C=u.token,s=N(u,e,s,f,0,E,w,v),u.token!==18&&u.token!==i&&(u.assignable&2&&u.token===1077936157&&d(u,69),k|=16,s=O(u,e,f,c,E,w,v,s)),u.assignable&2?k|=16:C===i||C===18?n&&u2(u,e,n,b,t,o):k|=32,k|=u.destructible&128?128:0;else if(C===i)d(u,39);else if(C&2097152)s=u.token===2162700?Y(u,e,n,1,f,c,t,o,E,w,v):_(u,e,n,1,f,c,t,o,E,w,v),C=u.token,C!==1077936157&&C!==i&&C!==18?(u.destructible&8&&d(u,69),s=N(u,e,s,f,0,E,w,v),k|=u.assignable&2?16:0,(u.token&4194304)===4194304?(u.token!==1077936157&&(k|=16),s=O(u,e,f,c,E,w,v,s)):((u.token&8454144)===8454144&&(s=n2(u,e,1,E,w,v,4,C,s)),q(u,e|32768,22)&&(s=f2(u,e,s,E,w,v)),k|=u.assignable&2?16:32)):k|=i===1074790415&&C!==1077936157?16:u.destructible;else{k|=32,s=W(u,e,1,f,1,u.tokenPos,u.linePos,u.colPos);let{token:M,tokenPos:S,linePos:V,colPos:D}=u;return M===1077936157&&M!==i&&M!==18?(u.assignable&2&&d(u,24),s=O(u,e,f,c,S,V,D,s),k|=16):(M===18?k|=16:M!==i&&(s=O(u,e,f,c,S,V,D,s)),k|=u.assignable&1?32:16),u.destructible=k,u.token!==i&&u.token!==18&&d(u,156),y(u,e,a,g,m,{type:c?"RestElement":"SpreadElement",argument:s})}if(u.token!==i)if(t&1&&(k|=l?16:32),q(u,e|32768,1077936157)){k&16&&d(u,24),r(u,s);let M=R(u,e,1,1,f,u.tokenPos,u.linePos,u.colPos);s=y(u,e,E,w,v,c?{type:"AssignmentPattern",left:s,right:M}:{type:"AssignmentExpression",left:s,operator:"=",right:M}),k=16}else k|=16;return u.destructible=k,y(u,e,a,g,m,{type:c?"RestElement":"SpreadElement",argument:s})}function Z(u,e,n,i,t,o,l){let f=n&64?14680064:31981568;e=(e|f)^f|(n&88)<<18|100925440;let c=e&64?J(s2(),512):void 0,a=_1(u,e|8388608,c,n,1,i);c&&(c=J(c,128));let g=K2(u,e&-134230017,c,0,void 0,void 0);return y(u,e,t,o,l,{type:"FunctionExpression",params:a,body:g,async:(n&16)>0,generator:(n&8)>0,id:null})}function W1(u,e,n,i,t,o,l){let f=Y(u,e,void 0,n,i,0,2,0,t,o,l);return e&256&&u.destructible&64&&d(u,61),u.destructible&8&&d(u,60),f}function Y(u,e,n,i,t,o,l,f,c,a,g){A(u,e);let m=[],s=0,k=0;for(e=(e|134217728)^134217728;u.token!==1074790415;){let{token:b,tokenValue:E,linePos:w,colPos:v,tokenPos:M}=u;if(b===14)m.push(b2(u,e,n,1074790415,l,f,0,t,o,M,w,v));else{let S=0,V=null,D,Q=u.token;if(u.token&143360||u.token===121)if(V=I(u,e,0),u.token===18||u.token===1074790415||u.token===1077936157)if(S|=4,e&1024&&(b&537079808)===537079808?s|=16:M2(u,e,l,b,0),n&&u2(u,e,n,E,l,f),q(u,e|32768,1077936157)){s|=8;let B=R(u,e,1,1,t,u.tokenPos,u.linePos,u.colPos);s|=u.destructible&256?256:0|u.destructible&128?128:0,D=y(u,e,M,w,v,{type:"AssignmentPattern",left:e&-2147483648?Object.assign({},V):V,right:B})}else s|=(b===209008?128:0)|(b===121?16:0),D=e&-2147483648?Object.assign({},V):V;else if(q(u,e|32768,21)){let{tokenPos:B,linePos:F,colPos:T}=u;if(E==="__proto__"&&k++,u.token&143360){let o2=u.token,m2=u.tokenValue;s|=Q===121?16:0,D=K(u,e,l,0,1,0,t,1,B,F,T);let{token:x}=u;D=N(u,e,D,t,0,B,F,T),u.token===18||u.token===1074790415?x===1077936157||x===1074790415||x===18?(s|=u.destructible&128?128:0,u.assignable&2?s|=16:n&&(o2&143360)===143360&&u2(u,e,n,m2,l,f)):s|=u.assignable&1?32:16:(u.token&4194304)===4194304?(u.assignable&2?s|=16:x!==1077936157?s|=32:n&&u2(u,e,n,m2,l,f),D=O(u,e,t,o,B,F,T,D)):(s|=16,(u.token&8454144)===8454144&&(D=n2(u,e,1,B,F,T,4,x,D)),q(u,e|32768,22)&&(D=f2(u,e,D,B,F,T)))}else(u.token&2097152)===2097152?(D=u.token===69271571?_(u,e,n,0,t,o,l,f,B,F,T):Y(u,e,n,0,t,o,l,f,B,F,T),s=u.destructible,u.assignable=s&16?2:1,u.token===18||u.token===1074790415?u.assignable&2&&(s|=16):u.destructible&8?d(u,69):(D=N(u,e,D,t,0,B,F,T),s=u.assignable&2?16:0,(u.token&4194304)===4194304?D=N2(u,e,t,o,B,F,T,D):((u.token&8454144)===8454144&&(D=n2(u,e,1,B,F,T,4,b,D)),q(u,e|32768,22)&&(D=f2(u,e,D,B,F,T)),s|=u.assignable&2?16:32))):(D=W(u,e,1,t,1,B,F,T),s|=u.assignable&1?32:16,u.token===18||u.token===1074790415?u.assignable&2&&(s|=16):(D=N(u,e,D,t,0,B,F,T),s=u.assignable&2?16:0,u.token!==18&&b!==1074790415&&(u.token!==1077936157&&(s|=16),D=O(u,e,t,o,B,F,T,D))))}else u.token===69271571?(s|=16,b===209007&&(S|=16),S|=(b===12402?256:b===12403?512:1)|2,V=g2(u,e,t),s|=u.assignable,D=Z(u,e,S,t,u.tokenPos,u.linePos,u.colPos)):u.token&143360?(s|=16,b===121&&d(u,93),b===209007&&(u.flags&1&&d(u,129),S|=16),V=I(u,e,0),S|=b===12402?256:b===12403?512:1,D=Z(u,e,S,t,u.tokenPos,u.linePos,u.colPos)):u.token===67174411?(s|=16,S|=1,D=Z(u,e,S,t,u.tokenPos,u.linePos,u.colPos)):u.token===8457014?(s|=16,b===12402?d(u,40):b===12403?d(u,41):b===143483&&d(u,93),A(u,e),S|=9|(b===209007?16:0),u.token&143360?V=I(u,e,0):(u.token&134217728)===134217728?V=X(u,e):u.token===69271571?(S|=2,V=g2(u,e,t),s|=u.assignable):d(u,28,U[u.token&255]),D=Z(u,e,S,t,u.tokenPos,u.linePos,u.colPos)):(u.token&134217728)===134217728?(b===209007&&(S|=16),S|=b===12402?256:b===12403?512:1,s|=16,V=X(u,e),D=Z(u,e,S,t,u.tokenPos,u.linePos,u.colPos)):d(u,130);else if((u.token&134217728)===134217728)if(V=X(u,e),u.token===21){P(u,e|32768,21);let{tokenPos:B,linePos:F,colPos:T}=u;if(E==="__proto__"&&k++,u.token&143360){D=K(u,e,l,0,1,0,t,1,B,F,T);let{token:o2,tokenValue:m2}=u;D=N(u,e,D,t,0,B,F,T),u.token===18||u.token===1074790415?o2===1077936157||o2===1074790415||o2===18?u.assignable&2?s|=16:n&&u2(u,e,n,m2,l,f):s|=u.assignable&1?32:16:u.token===1077936157?(u.assignable&2&&(s|=16),D=O(u,e,t,o,B,F,T,D)):(s|=16,D=O(u,e,t,o,B,F,T,D))}else(u.token&2097152)===2097152?(D=u.token===69271571?_(u,e,n,0,t,o,l,f,B,F,T):Y(u,e,n,0,t,o,l,f,B,F,T),s=u.destructible,u.assignable=s&16?2:1,u.token===18||u.token===1074790415?u.assignable&2&&(s|=16):(u.destructible&8)!==8&&(D=N(u,e,D,t,0,B,F,T),s=u.assignable&2?16:0,(u.token&4194304)===4194304?D=N2(u,e,t,o,B,F,T,D):((u.token&8454144)===8454144&&(D=n2(u,e,1,B,F,T,4,b,D)),q(u,e|32768,22)&&(D=f2(u,e,D,B,F,T)),s|=u.assignable&2?16:32))):(D=W(u,e,1,0,1,B,F,T),s|=u.assignable&1?32:16,u.token===18||u.token===1074790415?u.assignable&2&&(s|=16):(D=N(u,e,D,t,0,B,F,T),s=u.assignable&1?0:16,u.token!==18&&u.token!==1074790415&&(u.token!==1077936157&&(s|=16),D=O(u,e,t,o,B,F,T,D))))}else u.token===67174411?(S|=1,D=Z(u,e,S,t,u.tokenPos,u.linePos,u.colPos),s=u.assignable|16):d(u,131);else if(u.token===69271571)if(V=g2(u,e,t),s|=u.destructible&256?256:0,S|=2,u.token===21){A(u,e|32768);let{tokenPos:B,linePos:F,colPos:T,tokenValue:o2,token:m2}=u;if(u.token&143360){D=K(u,e,l,0,1,0,t,1,B,F,T);let{token:x}=u;D=N(u,e,D,t,0,B,F,T),(u.token&4194304)===4194304?(s|=u.assignable&2?16:x===1077936157?0:32,D=N2(u,e,t,o,B,F,T,D)):u.token===18||u.token===1074790415?x===1077936157||x===1074790415||x===18?u.assignable&2?s|=16:n&&(m2&143360)===143360&&u2(u,e,n,o2,l,f):s|=u.assignable&1?32:16:(s|=16,D=O(u,e,t,o,B,F,T,D))}else(u.token&2097152)===2097152?(D=u.token===69271571?_(u,e,n,0,t,o,l,f,B,F,T):Y(u,e,n,0,t,o,l,f,B,F,T),s=u.destructible,u.assignable=s&16?2:1,u.token===18||u.token===1074790415?u.assignable&2&&(s|=16):s&8?d(u,60):(D=N(u,e,D,t,0,B,F,T),s=u.assignable&2?s|16:0,(u.token&4194304)===4194304?(u.token!==1077936157&&(s|=16),D=N2(u,e,t,o,B,F,T,D)):((u.token&8454144)===8454144&&(D=n2(u,e,1,B,F,T,4,b,D)),q(u,e|32768,22)&&(D=f2(u,e,D,B,F,T)),s|=u.assignable&2?16:32))):(D=W(u,e,1,0,1,B,F,T),s|=u.assignable&1?32:16,u.token===18||u.token===1074790415?u.assignable&2&&(s|=16):(D=N(u,e,D,t,0,B,F,T),s=u.assignable&1?0:16,u.token!==18&&u.token!==1074790415&&(u.token!==1077936157&&(s|=16),D=O(u,e,t,o,B,F,T,D))))}else u.token===67174411?(S|=1,D=Z(u,e,S,t,u.tokenPos,w,v),s=16):d(u,42);else if(b===8457014)if(P(u,e|32768,8457014),S|=8,u.token&143360){let{token:B,line:F,index:T}=u;V=I(u,e,0),S|=1,u.token===67174411?(s|=16,D=Z(u,e,S,t,u.tokenPos,u.linePos,u.colPos)):h2(T,F,T,B===209007?44:B===12402||u.token===12403?43:45,U[B&255])}else(u.token&134217728)===134217728?(s|=16,V=X(u,e),S|=1,D=Z(u,e,S,t,M,w,v)):u.token===69271571?(s|=16,S|=3,V=g2(u,e,t),D=Z(u,e,S,t,u.tokenPos,u.linePos,u.colPos)):d(u,123);else d(u,28,U[b&255]);s|=u.destructible&128?128:0,u.destructible=s,m.push(y(u,e,M,w,v,{type:"Property",key:V,value:D,kind:S&768?S&512?"set":"get":"init",computed:(S&2)>0,method:(S&1)>0,shorthand:(S&4)>0}))}if(s|=u.destructible,u.token!==18)break;A(u,e)}P(u,e,1074790415),k>1&&(s|=64);let C=y(u,e,c,a,g,{type:o?"ObjectPattern":"ObjectExpression",properties:m});return!i&&u.token&4194304?ee(u,e,s,t,o,c,a,g,C):(u.destructible=s,C)}function _1(u,e,n,i,t,o){P(u,e,67174411);let l=[];if(u.flags=(u.flags|128)^128,u.token===16)return i&512&&d(u,35,"Setter","one",""),A(u,e),l;i&256&&d(u,35,"Getter","no","s"),i&512&&u.token===14&&d(u,36),e=(e|134217728)^134217728;let f=0,c=0;for(;u.token!==18;){let a=null,{tokenPos:g,linePos:m,colPos:s}=u;if(u.token&143360?(e&1024||((u.token&36864)===36864&&(u.flags|=256),(u.token&537079808)===537079808&&(u.flags|=512)),a=gu(u,e,n,i|1,0,g,m,s)):(u.token===2162700?a=Y(u,e,n,1,o,1,t,0,g,m,s):u.token===69271571?a=_(u,e,n,1,o,1,t,0,g,m,s):u.token===14&&(a=b2(u,e,n,16,t,0,0,o,1,g,m,s)),c=1,u.destructible&48&&d(u,48)),u.token===1077936157){A(u,e|32768),c=1;let k=R(u,e,1,1,0,u.tokenPos,u.linePos,u.colPos);a=y(u,e,g,m,s,{type:"AssignmentPattern",left:a,right:k})}if(f++,l.push(a),!q(u,e,18)||u.token===16)break}return i&512&&f!==1&&d(u,35,"Setter","one",""),n&&n.scopeError!==void 0&&z2(n.scopeError),c&&(u.flags|=128),P(u,e,16),l}function g2(u,e,n){A(u,e|32768);let i=R(u,(e|134217728)^134217728,1,0,n,u.tokenPos,u.linePos,u.colPos);return P(u,e,20),i}function Y1(u,e,n,i,t,o,l,f){u.flags=(u.flags|128)^128;let{tokenPos:c,linePos:a,colPos:g}=u;A(u,e|32768|1073741824);let m=e&64?J(s2(),1024):void 0;if(e=(e|134217728)^134217728,q(u,e,16))return j2(u,e,m,[],n,0,o,l,f);let s=0;u.destructible&=-385;let k,C=[],b=0,E=0,{tokenPos:w,linePos:v,colPos:M}=u;for(u.assignable=1;u.token!==16;){let{token:S,tokenPos:V,linePos:D,colPos:Q}=u;if(S&143360)m&&t2(u,e,m,u.tokenValue,1,0),k=K(u,e,i,0,1,0,1,1,V,D,Q),u.token===16||u.token===18?u.assignable&2?(s|=16,E=1):((S&537079808)===537079808||(S&36864)===36864)&&(E=1):(u.token===1077936157?E=1:s|=16,k=N(u,e,k,1,0,V,D,Q),u.token!==16&&u.token!==18&&(k=O(u,e,1,0,V,D,Q,k)));else if((S&2097152)===2097152)k=S===2162700?Y(u,e|1073741824,m,0,1,0,i,t,V,D,Q):_(u,e|1073741824,m,0,1,0,i,t,V,D,Q),s|=u.destructible,E=1,u.assignable=2,u.token!==16&&u.token!==18&&(s&8&&d(u,119),k=N(u,e,k,0,0,V,D,Q),s|=16,u.token!==16&&u.token!==18&&(k=O(u,e,0,0,V,D,Q,k)));else if(S===14){k=b2(u,e,m,16,i,t,0,1,0,V,D,Q),u.destructible&16&&d(u,72),E=1,b&&(u.token===16||u.token===18)&&C.push(k),s|=8;break}else{if(s|=16,k=R(u,e,1,0,1,V,D,Q),b&&(u.token===16||u.token===18)&&C.push(k),u.token===18&&(b||(b=1,C=[k])),b){for(;q(u,e|32768,18);)C.push(R(u,e,1,0,1,u.tokenPos,u.linePos,u.colPos));u.assignable=2,k=y(u,e,w,v,M,{type:"SequenceExpression",expressions:C})}return P(u,e,16),u.destructible=s,k}if(b&&(u.token===16||u.token===18)&&C.push(k),!q(u,e|32768,18))break;if(b||(b=1,C=[k]),u.token===16){s|=8;break}}return b&&(u.assignable=2,k=y(u,e,w,v,M,{type:"SequenceExpression",expressions:C})),P(u,e,16),s&16&&s&8&&d(u,146),s|=u.destructible&256?256:0|u.destructible&128?128:0,u.token===10?(s&48&&d(u,47),e&4196352&&s&128&&d(u,29),e&2098176&&s&256&&d(u,30),E&&(u.flags|=128),j2(u,e,m,b?C:[k],n,0,o,l,f)):(s&8&&d(u,140),u.destructible=(u.destructible|256)^256|s,e&128?y(u,e,c,a,g,{type:"ParenthesizedExpression",expression:k}):k)}function au(u,e,n,i,t){let{tokenValue:o}=u,l=I(u,e,0);if(u.assignable=1,u.token===10){let f;return e&64&&(f=H2(u,e,o)),u.flags=(u.flags|128)^128,v2(u,e,f,[l],0,n,i,t)}return l}function $2(u,e,n,i,t,o,l,f,c,a){o||d(u,55),t&&d(u,49),u.flags&=-129;let g=e&64?H2(u,e,n):void 0;return v2(u,e,g,[i],l,f,c,a)}function j2(u,e,n,i,t,o,l,f,c){t||d(u,55);for(let a=0;a0&&u.tokenValue==="constructor"&&d(u,107),u.token===1074790415&&d(u,106),q(u,e,1074790417)){k>0&&d(u,117);continue}m.push(oe(u,e,i,n,t,s,0,l,u.tokenPos,u.linePos,u.colPos))}return P(u,o&8?e|32768:e,1074790415),u.flags=u.flags&-33|g,y(u,e,f,c,a,{type:"ClassBody",body:m})}function oe(u,e,n,i,t,o,l,f,c,a,g){let m=l?32:0,s=null,{token:k,tokenPos:C,linePos:b,colPos:E}=u;if(k&176128)switch(s=I(u,e,0),k){case 36972:if(!l&&u.token!==67174411&&(u.token&1048576)!==1048576&&u.token!==1077936157)return oe(u,e,n,i,t,o,1,f,c,a,g);break;case 209007:if(u.token!==67174411&&!(u.flags&1)){if(e&1&&(u.token&1073741824)===1073741824)return V2(u,e,s,m,o,C,b,E);m|=16|(iu(u,e,8457014)?8:0)}break;case 12402:if(u.token!==67174411){if(e&1&&(u.token&1073741824)===1073741824)return V2(u,e,s,m,o,C,b,E);m|=256}break;case 12403:if(u.token!==67174411){if(e&1&&(u.token&1073741824)===1073741824)return V2(u,e,s,m,o,C,b,E);m|=512}break}else if(k===69271571)m|=2,s=g2(u,i,f);else if((k&134217728)===134217728)s=X(u,e);else if(k===8457014)m|=8,A(u,e);else if(e&1&&u.token===131)m|=4096,s=X2(u,e|16384,C,b,E);else if(e&1&&(u.token&1073741824)===1073741824)m|=128;else{if(l&&k===2162700)return B1(u,e,n,C,b,E);k===122?(s=I(u,e,0),u.token!==67174411&&d(u,28,U[u.token&255])):d(u,28,U[u.token&255])}if(m&792&&(u.token&143360?s=I(u,e,0):(u.token&134217728)===134217728?s=X(u,e):u.token===69271571?(m|=2,s=g2(u,e,0)):u.token===122?s=I(u,e,0):e&1&&u.token===131?(m|=4096,s=X2(u,e,C,b,E)):d(u,132)),m&2||(u.tokenValue==="constructor"?((u.token&1073741824)===1073741824?d(u,126):!(m&32)&&u.token===67174411&&(m&920?d(u,51,"accessor"):e&524288||(u.flags&32?d(u,52):u.flags|=32)),m|=64):!(m&4096)&&m&824&&u.tokenValue==="prototype"&&d(u,50)),e&1&&u.token!==67174411)return V2(u,e,s,m,o,C,b,E);let w=Z(u,e,m,f,u.tokenPos,u.linePos,u.colPos);return y(u,e,c,a,g,e&1?{type:"MethodDefinition",kind:!(m&32)&&m&64?"constructor":m&256?"get":m&512?"set":"method",static:(m&32)>0,computed:(m&2)>0,key:s,decorators:o,value:w}:{type:"MethodDefinition",kind:!(m&32)&&m&64?"constructor":m&256?"get":m&512?"set":"method",static:(m&32)>0,computed:(m&2)>0,key:s,value:w})}function X2(u,e,n,i,t){A(u,e);let{tokenValue:o}=u;return o==="constructor"&&d(u,125),A(u,e),y(u,e,n,i,t,{type:"PrivateIdentifier",name:o})}function V2(u,e,n,i,t,o,l,f){let c=null;if(i&8&&d(u,0),u.token===1077936157){A(u,e|32768);let{tokenPos:a,linePos:g,colPos:m}=u;u.token===537079928&&d(u,116),c=K(u,e|16384,2,0,1,0,0,1,a,g,m),(u.token&1073741824)!==1073741824&&(c=N(u,e|16384,c,0,0,a,g,m),c=O(u,e|16384,0,0,a,g,m,c),u.token===18&&(c=e2(u,e,0,o,l,f,c)))}return y(u,e,o,l,f,{type:"PropertyDefinition",key:n,value:c,static:(i&32)>0,computed:(i&2)>0,decorators:t})}function le(u,e,n,i,t,o,l,f){if(u.token&143360)return gu(u,e,n,i,t,o,l,f);(u.token&2097152)!==2097152&&d(u,28,U[u.token&255]);let c=u.token===69271571?_(u,e,n,1,0,1,i,t,o,l,f):Y(u,e,n,1,0,1,i,t,o,l,f);return u.destructible&16&&d(u,48),u.destructible&32&&d(u,48),c}function gu(u,e,n,i,t,o,l,f){let{tokenValue:c,token:a}=u;return e&1024&&((a&537079808)===537079808?d(u,116):(a&36864)===36864&&d(u,115)),(a&20480)===20480&&d(u,100),e&2099200&&a===241773&&d(u,30),a===241739&&i&24&&d(u,98),e&4196352&&a===209008&&d(u,96),A(u,e),n&&u2(u,e,n,c,i,t),y(u,e,o,l,f,{type:"Identifier",name:c})}function yu(u,e,n,i,t,o){if(A(u,e),u.token===8456259)return y(u,e,i,t,o,{type:"JSXFragment",openingFragment:p1(u,e,i,t,o),children:Lu(u,e),closingFragment:e0(u,e,n,u.tokenPos,u.linePos,u.colPos)});let l=null,f=[],c=t0(u,e,n,i,t,o);if(!c.selfClosing){f=Lu(u,e),l=u0(u,e,n,u.tokenPos,u.linePos,u.colPos);let a=J2(l.name);J2(c.name)!==a&&d(u,150,a)}return y(u,e,i,t,o,{type:"JSXElement",children:f,openingElement:c,closingElement:l})}function p1(u,e,n,i,t){return d2(u,e),y(u,e,n,i,t,{type:"JSXOpeningFragment"})}function u0(u,e,n,i,t,o){P(u,e,25);let l=fe(u,e,u.tokenPos,u.linePos,u.colPos);return n?P(u,e,8456259):u.token=d2(u,e),y(u,e,i,t,o,{type:"JSXClosingElement",name:l})}function e0(u,e,n,i,t,o){return P(u,e,25),P(u,e,8456259),y(u,e,i,t,o,{type:"JSXClosingFragment"})}function Lu(u,e){let n=[];for(;u.token!==25;)u.index=u.tokenPos=u.startPos,u.column=u.colPos=u.startColumn,u.line=u.linePos=u.startLine,d2(u,e),n.push(n0(u,e,u.tokenPos,u.linePos,u.colPos));return n}function n0(u,e,n,i,t){if(u.token===138)return i0(u,e,n,i,t);if(u.token===2162700)return de(u,e,0,0,n,i,t);if(u.token===8456258)return yu(u,e,0,n,i,t);d(u,0)}function i0(u,e,n,i,t){d2(u,e);let o={type:"JSXText",value:u.tokenValue};return e&512&&(o.raw=u.tokenRaw),y(u,e,n,i,t,o)}function t0(u,e,n,i,t,o){(u.token&143360)!==143360&&(u.token&4096)!==4096&&d(u,0);let l=fe(u,e,u.tokenPos,u.linePos,u.colPos),f=l0(u,e),c=u.token===8457016;return u.token===8456259?d2(u,e):(P(u,e,8457016),n?P(u,e,8456259):d2(u,e)),y(u,e,i,t,o,{type:"JSXOpeningElement",name:l,attributes:f,selfClosing:c})}function fe(u,e,n,i,t){r2(u);let o=_2(u,e,n,i,t);if(u.token===21)return ce(u,e,o,n,i,t);for(;q(u,e,67108877);)r2(u),o=o0(u,e,o,n,i,t);return o}function o0(u,e,n,i,t,o){let l=_2(u,e,u.tokenPos,u.linePos,u.colPos);return y(u,e,i,t,o,{type:"JSXMemberExpression",object:n,property:l})}function l0(u,e){let n=[];for(;u.token!==8457016&&u.token!==8456259&&u.token!==1048576;)n.push(c0(u,e,u.tokenPos,u.linePos,u.colPos));return n}function f0(u,e,n,i,t){A(u,e),P(u,e,14);let o=R(u,e,1,0,0,u.tokenPos,u.linePos,u.colPos);return P(u,e,1074790415),y(u,e,n,i,t,{type:"JSXSpreadAttribute",argument:o})}function c0(u,e,n,i,t){if(u.token===2162700)return f0(u,e,n,i,t);r2(u);let o=null,l=_2(u,e,n,i,t);if(u.token===21&&(l=ce(u,e,l,n,i,t)),u.token===1077936157){let f=u1(u,e),{tokenPos:c,linePos:a,colPos:g}=u;switch(f){case 134283267:o=X(u,e);break;case 8456258:o=yu(u,e,1,c,a,g);break;case 2162700:o=de(u,e,1,1,c,a,g);break;default:d(u,149)}}return y(u,e,n,i,t,{type:"JSXAttribute",value:o,name:l})}function ce(u,e,n,i,t,o){P(u,e,21);let l=_2(u,e,u.tokenPos,u.linePos,u.colPos);return y(u,e,i,t,o,{type:"JSXNamespacedName",namespace:n,name:l})}function de(u,e,n,i,t,o,l){A(u,e|32768);let{tokenPos:f,linePos:c,colPos:a}=u;if(u.token===14)return d0(u,e,t,o,l);let g=null;return u.token===1074790415?(i&&d(u,152),g=s0(u,e,u.startPos,u.startLine,u.startColumn)):g=R(u,e,1,0,0,f,c,a),n?P(u,e,1074790415):d2(u,e),y(u,e,t,o,l,{type:"JSXExpressionContainer",expression:g})}function d0(u,e,n,i,t){P(u,e,14);let o=R(u,e,1,0,0,u.tokenPos,u.linePos,u.colPos);return P(u,e,1074790415),y(u,e,n,i,t,{type:"JSXSpreadChild",expression:o})}function s0(u,e,n,i,t){return u.startPos=u.tokenPos,u.startLine=u.linePos,u.startColumn=u.colPos,y(u,e,n,i,t,{type:"JSXEmptyExpression"})}function _2(u,e,n,i,t){let{tokenValue:o}=u;return A(u,e),y(u,e,n,i,t,{type:"JSXIdentifier",name:o})}function se(u,e){return c1(u,e,0)}function a0(u,e){let n=new SyntaxError(u+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(n,e)}var ae=a0;function m0(u){let e=[];for(let n of u)try{return n()}catch(i){e.push(i)}throw Object.assign(new Error("All combinations failed"),{errors:e})}var me=m0;var C2=Me(be(),1);function E0(u){if(!u.startsWith("#!"))return"";let e=u.indexOf(` +`);return e===-1?u:u.slice(0,e)}var Ce=E0;function w0(u){let e=Ce(u);e&&(u=u.slice(e.length+1));let n=(0,C2.extract)(u),{pragmas:i,comments:t}=(0,C2.parseWithComments)(n);return{shebang:e,text:u,pragmas:i,comments:t}}function Pe(u){let{pragmas:e}=w0(u);return Object.prototype.hasOwnProperty.call(e,"prettier")||Object.prototype.hasOwnProperty.call(e,"format")}function S0(u){return Array.isArray(u)&&u.length>0}var Y2=S0;function $(u){var i;let e=u.range?u.range[0]:u.start,n=((i=u.declaration)==null?void 0:i.decorators)??u.decorators;return Y2(n)?Math.min($(n[0]),e):e}function p(u){return u.range?u.range[1]:u.end}function B0(u){return u=typeof u=="function"?{parse:u}:u,{astFormat:"estree",hasPragma:Pe,locStart:$,locEnd:p,...u}}var Ee=B0;var v0=(u,e,n)=>{if(!(u&&e==null))return Array.isArray(e)||typeof e=="string"?e[n<0?e.length+n:n]:e.at(n)},ku=v0;function T0(u){return u=new Set(u),e=>u.has(e==null?void 0:e.type)}var we=T0;var F0=we(["Block","CommentBlock","MultiLine"]),T2=F0;function q0(u){return T2(u)&&u.value[0]==="*"&&/@(?:type|satisfies)\b/.test(u.value)}var Se=q0;function L0(u){let e=`*${u.value}*`.split(` +`);return e.length>1&&e.every(n=>n.trimStart()[0]==="*")}var hu=L0;var F2=null;function q2(u){if(F2!==null&&typeof F2.property){let e=F2;return F2=q2.prototype=null,e}return F2=q2.prototype=u??Object.create(null),new q2}var I0=10;for(let u=0;u<=I0;u++)q2();function Du(u){return q2(u)}function N0(u,e="type"){Du(u);function n(i){let t=i[e],o=u[t];if(!Array.isArray(o))throw Object.assign(new Error(`Missing visitor keys for '${t}'.`),{node:i});return o}return n}var Be=N0;var ve={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","assertions","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes","assertions"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes","assertions"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ImportExpression:["source","attributes"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareEnum:["id","body"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]};var V0=Be(ve),Te=V0;function Au(u,e){if(!(u!==null&&typeof u=="object"))return u;if(Array.isArray(u)){for(let i=0;i{var f;(f=l.leadingComments)!=null&&f.some(Se)&&o.add($(l))}),u=Q2(u,l=>{if(l.type==="ParenthesizedExpression"){let{expression:f}=l;if(f.type==="TypeCastExpression")return f.range=l.range,f;let c=$(l);if(!o.has(c))return f.extra={...f.extra,parenthesized:!0},f}})}if(u=Q2(u,o=>{switch(o.type){case"LogicalExpression":if(Fe(o))return bu(o);break;case"VariableDeclaration":{let l=ku(!1,o.declarations,-1);l!=null&&l.init&&t(o,l);break}case"TSParenthesizedType":return o.typeAnnotation;case"TSTypeParameter":if(typeof o.name=="string"){let l=$(o);o.name={type:"Identifier",name:o.name,range:[l,l+o.name.length]}}break;case"TopicReference":u.extra={...u.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":{let{exported:l}=o;if(n==="meriyah"&&(l==null?void 0:l.type)==="Identifier"){let f=i.slice($(l),p(l));(f.startsWith('"')||f.startsWith("'"))&&(o.exported={...o.exported,type:"Literal",value:o.exported.name,raw:f})}break}case"TSUnionType":case"TSIntersectionType":if(o.types.length===1)return o.types[0];break}}),Y2(u.comments)){let o=ku(!1,u.comments,-1);for(let l=u.comments.length-2;l>=0;l--){let f=u.comments[l];p(f)===$(o)&&T2(f)&&T2(o)&&hu(f)&&hu(o)&&(u.comments.splice(l+1,1),f.value+="*//*"+o.value,f.range=[$(f),p(o)]),o=f}}return u.type==="Program"&&(u.range=[0,i.length]),u;function t(o,l){i[p(l)]!==";"&&(o.range=[$(o),p(l)])}}function Fe(u){return u.type==="LogicalExpression"&&u.right.type==="LogicalExpression"&&u.operator===u.right.operator}function bu(u){return Fe(u)?bu({type:"LogicalExpression",operator:u.operator,left:bu({type:"LogicalExpression",operator:u.operator,left:u.left,right:u.right.left,range:[$(u.left),p(u.right.left)]}),right:u.right.right,range:[$(u),p(u)]}):u}var qe=R0;function O0(u){let{filepath:e}=u;if(e){if(e=e.toLowerCase(),e.endsWith(".cjs"))return"script";if(e.endsWith(".mjs"))return"module"}}var Le=O0;var U0={next:!0,ranges:!0,webcompat:!0,loc:!0,raw:!0,directives:!0,globalReturn:!0,impliedStrict:!1,preserveParens:!1,lexical:!1,identifierPattern:!1,jsx:!0,specDeviation:!0,uniqueKeyInPattern:!1};function M0(u,e){let n=[],i=[],t=se(u,{...U0,module:e==="module",onComment:n,onToken:i});return t.comments=n,t.tokens=i,t}function J0(u){var o;let{message:e,line:n,column:i}=u,t=(o=e.match(/^\[(?\d+):(?\d+)]: (?.*)$/))==null?void 0:o.groups;return t&&(e=t.message,typeof n!="number"&&(n=Number(t.line),i=Number(t.column))),typeof n!="number"?u:ae(e,{loc:{start:{line:n,column:i}},cause:u})}function j0(u,e={}){let n=Le(e),i=(n?[n]:["module","script"]).map(o=>()=>M0(u,o)),t;try{t=me(i)}catch({errors:[o]}){throw J0(o)}return qe(t,{parser:"meriyah",text:u})}var X0=Ee(j0);return Je(z0);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/meriyah.mjs b/node_modules/prettier/plugins/meriyah.mjs index 20791e5..5b2d231 100644 --- a/node_modules/prettier/plugins/meriyah.mjs +++ b/node_modules/prettier/plugins/meriyah.mjs @@ -1,5 +1,5 @@ -var Nu=Object.create;var G2=Object.defineProperty;var Vu=Object.getOwnPropertyDescriptor;var Ru=Object.getOwnPropertyNames;var Ou=Object.getPrototypeOf,Uu=Object.prototype.hasOwnProperty;var Mu=(e,u)=>()=>(u||e((u={exports:{}}).exports,u),u.exports),Se=(e,u)=>{for(var n in u)G2(e,n,{get:u[n],enumerable:!0})},Ju=(e,u,n,i)=>{if(u&&typeof u=="object"||typeof u=="function")for(let t of Ru(u))!Uu.call(e,t)&&t!==n&&G2(e,t,{get:()=>u[t],enumerable:!(i=Vu(u,t))||i.enumerable});return e};var ju=(e,u,n)=>(n=e!=null?Nu(Ou(e)):{},Ju(u||!e||!e.__esModule?G2(n,"default",{value:e,enumerable:!0}):n,e));var Cu=Mu(a2=>{"use strict";Object.defineProperty(a2,"__esModule",{value:!0});a2.extract=A0;a2.parse=P0;a2.parseWithComments=Au;a2.print=E0;a2.strip=C0;var y0=/\*\/$/,k0=/^\/\*\*?/,Du=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,h0=/(^|\s+)\/\/([^\r\n]*)/g,yu=/^(\r?\n)+/,D0=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,ku=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,b0=/(\r?\n|^) *\* ?/g,bu=[];function A0(e){let u=e.match(Du);return u?u[0].trimLeft():""}function C0(e){let u=e.match(Du);return u&&u[0]?e.substring(u[0].length):e}function P0(e){return Au(e).pragmas}function Au(e){let u=` -`;e=e.replace(k0,"").replace(y0,"").replace(b0,"$1");let n="";for(;n!==e;)n=e,e=e.replace(D0,`${u}$1 $2${u}`);e=e.replace(yu,"").trimRight();let i=Object.create(null),t=e.replace(ku,"").replace(yu,"").trimRight(),o;for(;o=ku.exec(e);){let l=o[2].replace(h0,"");typeof i[o[1]]=="string"||Array.isArray(i[o[1]])?i[o[1]]=bu.concat(i[o[1]],l):i[o[1]]=l}return{comments:t,pragmas:i}}function E0({comments:e="",pragmas:u={}}){let n=` -`,i="/**",t=" *",o=" */",l=Object.keys(u),f=l.map(a=>hu(a,u[a])).reduce((a,g)=>a.concat(g),[]).map(a=>`${t} ${a}${n}`).join("");if(!e){if(l.length===0)return"";if(l.length===1&&!Array.isArray(u[l[0]])){let a=u[l[0]];return`${i} ${hu(l[0],a)[0]}${o}`}}let c=e.split(n).map(a=>`${t} ${a}`).join(n)+n;return i+n+(e?c:"")+(e&&l.length?t+n:"")+f+o}function hu(e,u){return bu.concat(u).map(n=>`@${e} ${n}`.trim())}});var we={};Se(we,{parsers:()=>Z2});var Z2={};Se(Z2,{meriyah:()=>H0});var Xu={0:"Unexpected token",28:"Unexpected token: '%0'",1:"Octal escape sequences are not allowed in strict mode",2:"Octal escape sequences are not allowed in template strings",3:"Unexpected token `#`",4:"Illegal Unicode escape sequence",5:"Invalid code point %0",6:"Invalid hexadecimal escape sequence",8:"Octal literals are not allowed in strict mode",7:"Decimal integer literals with a leading zero are forbidden in strict mode",9:"Expected number in radix %0",146:"Invalid left-hand side assignment to a destructible right-hand side",10:"Non-number found after exponent indicator",11:"Invalid BigIntLiteral",12:"No identifiers allowed directly after numeric literal",13:"Escapes \\8 or \\9 are not syntactically valid escapes",14:"Unterminated string literal",15:"Unterminated template literal",16:"Multiline comment was not closed properly",17:"The identifier contained dynamic unicode escape that was not closed",18:"Illegal character '%0'",19:"Missing hexadecimal digits",20:"Invalid implicit octal",21:"Invalid line break in string literal",22:"Only unicode escapes are legal in identifier names",23:"Expected '%0'",24:"Invalid left-hand side in assignment",25:"Invalid left-hand side in async arrow",26:'Calls to super must be in the "constructor" method of a class expression or class declaration that has a superclass',27:"Member access on super must be in a method",29:"Await expression not allowed in formal parameter",30:"Yield expression not allowed in formal parameter",93:"Unexpected token: 'escaped keyword'",31:"Unary expressions as the left operand of an exponentiation expression must be disambiguated with parentheses",120:"Async functions can only be declared at the top level or inside a block",32:"Unterminated regular expression",33:"Unexpected regular expression flag",34:"Duplicate regular expression flag '%0'",35:"%0 functions must have exactly %1 argument%2",36:"Setter function argument must not be a rest parameter",37:"%0 declaration must have a name in this context",38:"Function name may not contain any reserved words or be eval or arguments in strict mode",39:"The rest operator is missing an argument",40:"A getter cannot be a generator",41:"A setter cannot be a generator",42:"A computed property name must be followed by a colon or paren",131:"Object literal keys that are strings or numbers must be a method or have a colon",44:"Found `* async x(){}` but this should be `async * x(){}`",43:"Getters and setters can not be generators",45:"'%0' can not be generator method",46:"No line break is allowed after '=>'",47:"The left-hand side of the arrow can only be destructed through assignment",48:"The binding declaration is not destructible",49:"Async arrow can not be followed by new expression",50:"Classes may not have a static property named 'prototype'",51:"Class constructor may not be a %0",52:"Duplicate constructor method in class",53:"Invalid increment/decrement operand",54:"Invalid use of `new` keyword on an increment/decrement expression",55:"`=>` is an invalid assignment target",56:"Rest element may not have a trailing comma",57:"Missing initializer in %0 declaration",58:"'for-%0' loop head declarations can not have an initializer",59:"Invalid left-hand side in for-%0 loop: Must have a single binding",60:"Invalid shorthand property initializer",61:"Property name __proto__ appears more than once in object literal",62:"Let is disallowed as a lexically bound name",63:"Invalid use of '%0' inside new expression",64:"Illegal 'use strict' directive in function with non-simple parameter list",65:'Identifier "let" disallowed as left-hand side expression in strict mode',66:"Illegal continue statement",67:"Illegal break statement",68:"Cannot have `let[...]` as a var name in strict mode",69:"Invalid destructuring assignment target",70:"Rest parameter may not have a default initializer",71:"The rest argument must the be last parameter",72:"Invalid rest argument",74:"In strict mode code, functions can only be declared at top level or inside a block",75:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement",76:"Without web compatibility enabled functions can not be declared at top level, inside a block, or as the body of an if statement",77:"Class declaration can't appear in single-statement context",78:"Invalid left-hand side in for-%0",79:"Invalid assignment in for-%0",80:"for await (... of ...) is only valid in async functions and async generators",81:"The first token after the template expression should be a continuation of the template",83:"`let` declaration not allowed here and `let` cannot be a regular var name in strict mode",82:"`let \n [` is a restricted production at the start of a statement",84:"Catch clause requires exactly one parameter, not more (and no trailing comma)",85:"Catch clause parameter does not support default values",86:"Missing catch or finally after try",87:"More than one default clause in switch statement",88:"Illegal newline after throw",89:"Strict mode code may not include a with statement",90:"Illegal return statement",91:"The left hand side of the for-header binding declaration is not destructible",92:"new.target only allowed within functions",94:"'#' not followed by identifier",100:"Invalid keyword",99:"Can not use 'let' as a class name",98:"'A lexical declaration can't define a 'let' binding",97:"Can not use `let` as variable name in strict mode",95:"'%0' may not be used as an identifier in this context",96:"Await is only valid in async functions",101:"The %0 keyword can only be used with the module goal",102:"Unicode codepoint must not be greater than 0x10FFFF",103:"%0 source must be string",104:"Only a identifier can be used to indicate alias",105:"Only '*' or '{...}' can be imported after default",106:"Trailing decorator may be followed by method",107:"Decorators can't be used with a constructor",109:"HTML comments are only allowed with web compatibility (Annex B)",110:"The identifier 'let' must not be in expression position in strict mode",111:"Cannot assign to `eval` and `arguments` in strict mode",112:"The left-hand side of a for-of loop may not start with 'let'",113:"Block body arrows can not be immediately invoked without a group",114:"Block body arrows can not be immediately accessed without a group",115:"Unexpected strict mode reserved word",116:"Unexpected eval or arguments in strict mode",117:"Decorators must not be followed by a semicolon",118:"Calling delete on expression not allowed in strict mode",119:"Pattern can not have a tail",121:"Can not have a `yield` expression on the left side of a ternary",122:"An arrow function can not have a postfix update operator",123:"Invalid object literal key character after generator star",124:"Private fields can not be deleted",126:"Classes may not have a field called constructor",125:"Classes may not have a private element named constructor",127:"A class field initializer may not contain arguments",128:"Generators can only be declared at the top level or inside a block",129:"Async methods are a restricted production and cannot have a newline following it",130:"Unexpected character after object literal property name",132:"Invalid key token",133:"Label '%0' has already been declared",134:"continue statement must be nested within an iteration statement",135:"Undefined label '%0'",136:"Trailing comma is disallowed inside import(...) arguments",137:"import() requires exactly one argument",138:"Cannot use new with import(...)",139:"... is not allowed in import()",140:"Expected '=>'",141:"Duplicate binding '%0'",142:"Cannot export a duplicate name '%0'",145:"Duplicate %0 for-binding",143:"Exported binding '%0' needs to refer to a top-level declared variable",144:"Unexpected private field",148:"Numeric separators are not allowed at the end of numeric literals",147:"Only one underscore is allowed as numeric separator",149:"JSX value should be either an expression or a quoted JSX text",150:"Expected corresponding JSX closing tag for %0",151:"Adjacent JSX elements must be wrapped in an enclosing tag",152:"JSX attributes must only be assigned a non-empty 'expression'",153:"'%0' has already been declared",154:"'%0' shadowed a catch clause binding",155:"Dot property must be an identifier",156:"Encountered invalid input after spread/rest argument",157:"Catch without try",158:"Finally without try",159:"Expected corresponding closing tag for JSX fragment",160:"Coalescing and logical operators used together in the same expression must be disambiguated with parentheses",161:"Invalid tagged template on optional chain",162:"Invalid optional chain from super property",163:"Invalid optional chain from new expression",164:'Cannot use "import.meta" outside a module',165:"Leading decorators must be attached to a class declaration"},k2=class extends SyntaxError{constructor(u,n,i,t,...o){let l="["+n+":"+i+"]: "+Xu[t].replace(/%(\d+)/g,(f,c)=>o[c]);super(`${l}`),this.index=u,this.line=n,this.column=i,this.description=l,this.loc={line:n,column:i}}};function d(e,u,...n){throw new k2(e.index,e.line,e.column,u,...n)}function z2(e){throw new k2(e.index,e.line,e.column,e.type,e.params)}function h2(e,u,n,i,...t){throw new k2(e,u,n,i,...t)}function D2(e,u,n,i){throw new k2(e,u,n,i)}var E2=((e,u)=>{let n=new Uint32Array(104448),i=0,t=0;for(;i<3540;){let o=e[i++];if(o<0)t-=o;else{let l=e[i++];o&2&&(l=u[l]),o&1?n.fill(l,t,t+=e[i++]):n[t++]=l}}return n})([-1,2,24,2,25,2,5,-1,0,77595648,3,44,2,3,0,14,2,57,2,58,3,0,3,0,3168796671,0,4294956992,2,1,2,0,2,59,3,0,4,0,4294966523,3,0,4,2,16,2,60,2,0,0,4294836735,0,3221225471,0,4294901942,2,61,0,134152192,3,0,2,0,4294951935,3,0,2,0,2683305983,0,2684354047,2,17,2,0,0,4294961151,3,0,2,2,19,2,0,0,608174079,2,0,2,131,2,6,2,56,-1,2,37,0,4294443263,2,1,3,0,3,0,4294901711,2,39,0,4089839103,0,2961209759,0,1342439375,0,4294543342,0,3547201023,0,1577204103,0,4194240,0,4294688750,2,2,0,80831,0,4261478351,0,4294549486,2,2,0,2967484831,0,196559,0,3594373100,0,3288319768,0,8469959,2,194,2,3,0,3825204735,0,123747807,0,65487,0,4294828015,0,4092591615,0,1080049119,0,458703,2,3,2,0,0,2163244511,0,4227923919,0,4236247022,2,66,0,4284449919,0,851904,2,4,2,11,0,67076095,-1,2,67,0,1073741743,0,4093591391,-1,0,50331649,0,3265266687,2,32,0,4294844415,0,4278190047,2,18,2,129,-1,3,0,2,2,21,2,0,2,9,2,0,2,14,2,15,3,0,10,2,69,2,0,2,70,2,71,2,72,2,0,2,73,2,0,2,10,0,261632,2,23,3,0,2,2,12,2,4,3,0,18,2,74,2,5,3,0,2,2,75,0,2088959,2,27,2,8,0,909311,3,0,2,0,814743551,2,41,0,67057664,3,0,2,2,40,2,0,2,28,2,0,2,29,2,7,0,268374015,2,26,2,49,2,0,2,76,0,134153215,-1,2,6,2,0,2,7,0,2684354559,0,67044351,0,3221160064,0,1,-1,3,0,2,2,42,0,1046528,3,0,3,2,8,2,0,2,51,0,4294960127,2,9,2,38,2,10,0,4294377472,2,11,3,0,7,0,4227858431,3,0,8,2,12,2,0,2,78,2,9,2,0,2,79,2,80,2,81,-1,2,124,0,1048577,2,82,2,13,-1,2,13,0,131042,2,83,2,84,2,85,2,0,2,33,-83,2,0,2,53,2,7,3,0,4,0,1046559,2,0,2,14,2,0,0,2147516671,2,20,3,86,2,2,0,-16,2,87,0,524222462,2,4,2,0,0,4269801471,2,4,2,0,2,15,2,77,2,16,3,0,2,2,47,2,0,-1,2,17,-16,3,0,206,-2,3,0,655,2,18,3,0,36,2,68,-1,2,17,2,9,3,0,8,2,89,2,121,2,0,0,3220242431,3,0,3,2,19,2,90,2,91,3,0,2,2,92,2,0,2,93,2,94,2,0,0,4351,2,0,2,8,3,0,2,0,67043391,0,3909091327,2,0,2,22,2,8,2,18,3,0,2,0,67076097,2,7,2,0,2,20,0,67059711,0,4236247039,3,0,2,0,939524103,0,8191999,2,97,2,98,2,15,2,21,3,0,3,0,67057663,3,0,349,2,99,2,100,2,6,-264,3,0,11,2,22,3,0,2,2,31,-1,0,3774349439,2,101,2,102,3,0,2,2,19,2,103,3,0,10,2,9,2,17,2,0,2,45,2,0,2,30,2,104,2,23,0,1638399,2,172,2,105,3,0,3,2,18,2,24,2,25,2,5,2,26,2,0,2,7,2,106,-1,2,107,2,108,2,109,-1,3,0,3,2,11,-2,2,0,2,27,-3,2,150,-4,2,18,2,0,2,35,0,1,2,0,2,62,2,28,2,11,2,9,2,0,2,110,-1,3,0,4,2,9,2,21,2,111,2,6,2,0,2,112,2,0,2,48,-4,3,0,9,2,20,2,29,2,30,-4,2,113,2,114,2,29,2,20,2,7,-2,2,115,2,29,2,31,-2,2,0,2,116,-2,0,4277137519,0,2269118463,-1,3,18,2,-1,2,32,2,36,2,0,3,29,2,2,34,2,19,-3,3,0,2,2,33,-1,2,0,2,34,2,0,2,34,2,0,2,46,-10,2,0,0,203775,-2,2,18,2,43,2,35,-2,2,17,2,117,2,20,3,0,2,2,36,0,2147549120,2,0,2,11,2,17,2,135,2,0,2,37,2,52,0,5242879,3,0,2,0,402644511,-1,2,120,0,1090519039,-2,2,122,2,38,2,0,0,67045375,2,39,0,4226678271,0,3766565279,0,2039759,-4,3,0,2,0,3288270847,0,3,3,0,2,0,67043519,-5,2,0,0,4282384383,0,1056964609,-1,3,0,2,0,67043345,-1,2,0,2,40,2,41,-1,2,10,2,42,-6,2,0,2,11,-3,3,0,2,0,2147484671,2,125,0,4190109695,2,50,-2,2,126,0,4244635647,0,27,2,0,2,7,2,43,2,0,2,63,-1,2,0,2,40,-8,2,54,2,44,0,67043329,2,127,2,45,0,8388351,-2,2,128,0,3028287487,2,46,2,130,0,33259519,2,41,-9,2,20,-5,2,64,-2,3,0,28,2,31,-3,3,0,3,2,47,3,0,6,2,48,-85,3,0,33,2,47,-126,3,0,18,2,36,-269,3,0,17,2,40,2,7,2,41,-2,2,17,2,49,2,0,2,20,2,50,2,132,2,23,-21,3,0,2,-4,3,0,2,0,4294936575,2,0,0,4294934783,-2,0,196635,3,0,191,2,51,3,0,38,2,29,-1,2,33,-279,3,0,8,2,7,-1,2,133,2,52,3,0,11,2,6,-72,3,0,3,2,134,0,1677656575,-166,0,4161266656,0,4071,0,15360,-4,0,28,-13,3,0,2,2,37,2,0,2,136,2,137,2,55,2,0,2,138,2,139,2,140,3,0,10,2,141,2,142,2,15,3,37,2,3,53,2,3,54,2,0,4294954999,2,0,-16,2,0,2,88,2,0,0,2105343,0,4160749584,0,65534,-42,0,4194303871,0,2011,-6,2,0,0,1073684479,0,17407,-11,2,0,2,31,-40,3,0,6,0,8323103,-1,3,0,2,2,42,-37,2,55,2,144,2,145,2,146,2,147,2,148,-105,2,24,-32,3,0,1334,2,9,-1,3,0,129,2,27,3,0,6,2,9,3,0,180,2,149,3,0,233,0,1,-96,3,0,16,2,9,-47,3,0,154,2,56,-22381,3,0,7,2,23,-6130,3,5,2,-1,0,69207040,3,44,2,3,0,14,2,57,2,58,-3,0,3168731136,0,4294956864,2,1,2,0,2,59,3,0,4,0,4294966275,3,0,4,2,16,2,60,2,0,2,33,-1,2,17,2,61,-1,2,0,2,56,0,4294885376,3,0,2,0,3145727,0,2617294944,0,4294770688,2,23,2,62,3,0,2,0,131135,2,95,0,70256639,0,71303167,0,272,2,40,2,56,-1,2,37,2,30,-1,2,96,2,63,0,4278255616,0,4294836227,0,4294549473,0,600178175,0,2952806400,0,268632067,0,4294543328,0,57540095,0,1577058304,0,1835008,0,4294688736,2,65,2,64,0,33554435,2,123,2,65,2,151,0,131075,0,3594373096,0,67094296,2,64,-1,0,4294828e3,0,603979263,2,160,0,3,0,4294828001,0,602930687,2,183,0,393219,0,4294828016,0,671088639,0,2154840064,0,4227858435,0,4236247008,2,66,2,36,-1,2,4,0,917503,2,36,-1,2,67,0,537788335,0,4026531935,-1,0,1,-1,2,32,2,68,0,7936,-3,2,0,0,2147485695,0,1010761728,0,4292984930,0,16387,2,0,2,14,2,15,3,0,10,2,69,2,0,2,70,2,71,2,72,2,0,2,73,2,0,2,11,-1,2,23,3,0,2,2,12,2,4,3,0,18,2,74,2,5,3,0,2,2,75,0,253951,3,19,2,0,122879,2,0,2,8,0,276824064,-2,3,0,2,2,40,2,0,0,4294903295,2,0,2,29,2,7,-1,2,17,2,49,2,0,2,76,2,41,-1,2,20,2,0,2,27,-2,0,128,-2,2,77,2,8,0,4064,-1,2,119,0,4227907585,2,0,2,118,2,0,2,48,2,173,2,9,2,38,2,10,-1,0,74440192,3,0,6,-2,3,0,8,2,12,2,0,2,78,2,9,2,0,2,79,2,80,2,81,-3,2,82,2,13,-3,2,83,2,84,2,85,2,0,2,33,-83,2,0,2,53,2,7,3,0,4,0,817183,2,0,2,14,2,0,0,33023,2,20,3,86,2,-17,2,87,0,524157950,2,4,2,0,2,88,2,4,2,0,2,15,2,77,2,16,3,0,2,2,47,2,0,-1,2,17,-16,3,0,206,-2,3,0,655,2,18,3,0,36,2,68,-1,2,17,2,9,3,0,8,2,89,0,3072,2,0,0,2147516415,2,9,3,0,2,2,23,2,90,2,91,3,0,2,2,92,2,0,2,93,2,94,0,4294965179,0,7,2,0,2,8,2,91,2,8,-1,0,1761345536,2,95,0,4294901823,2,36,2,18,2,96,2,34,2,166,0,2080440287,2,0,2,33,2,143,0,3296722943,2,0,0,1046675455,0,939524101,0,1837055,2,97,2,98,2,15,2,21,3,0,3,0,7,3,0,349,2,99,2,100,2,6,-264,3,0,11,2,22,3,0,2,2,31,-1,0,2700607615,2,101,2,102,3,0,2,2,19,2,103,3,0,10,2,9,2,17,2,0,2,45,2,0,2,30,2,104,-3,2,105,3,0,3,2,18,-1,3,5,2,2,26,2,0,2,7,2,106,-1,2,107,2,108,2,109,-1,3,0,3,2,11,-2,2,0,2,27,-8,2,18,2,0,2,35,-1,2,0,2,62,2,28,2,29,2,9,2,0,2,110,-1,3,0,4,2,9,2,17,2,111,2,6,2,0,2,112,2,0,2,48,-4,3,0,9,2,20,2,29,2,30,-4,2,113,2,114,2,29,2,20,2,7,-2,2,115,2,29,2,31,-2,2,0,2,116,-2,0,4277075969,2,29,-1,3,18,2,-1,2,32,2,117,2,0,3,29,2,2,34,2,19,-3,3,0,2,2,33,-1,2,0,2,34,2,0,2,34,2,0,2,48,-10,2,0,0,197631,-2,2,18,2,43,2,118,-2,2,17,2,117,2,20,2,119,2,51,-2,2,119,2,23,2,17,2,33,2,119,2,36,0,4294901904,0,4718591,2,119,2,34,0,335544350,-1,2,120,2,121,-2,2,122,2,38,2,7,-1,2,123,2,65,0,3758161920,0,3,-4,2,0,2,27,0,2147485568,0,3,2,0,2,23,0,176,-5,2,0,2,47,2,186,-1,2,0,2,23,2,197,-1,2,0,0,16779263,-2,2,11,-7,2,0,2,121,-3,3,0,2,2,124,2,125,0,2147549183,0,2,-2,2,126,2,35,0,10,0,4294965249,0,67633151,0,4026597376,2,0,0,536871935,-1,2,0,2,40,-8,2,54,2,47,0,1,2,127,2,23,-3,2,128,2,35,2,129,2,130,0,16778239,-10,2,34,-5,2,64,-2,3,0,28,2,31,-3,3,0,3,2,47,3,0,6,2,48,-85,3,0,33,2,47,-126,3,0,18,2,36,-269,3,0,17,2,40,2,7,-3,2,17,2,131,2,0,2,23,2,48,2,132,2,23,-21,3,0,2,-4,3,0,2,0,67583,-1,2,103,-2,0,11,3,0,191,2,51,3,0,38,2,29,-1,2,33,-279,3,0,8,2,7,-1,2,133,2,52,3,0,11,2,6,-72,3,0,3,2,134,2,135,-187,3,0,2,2,37,2,0,2,136,2,137,2,55,2,0,2,138,2,139,2,140,3,0,10,2,141,2,142,2,15,3,37,2,3,53,2,3,54,2,2,143,-73,2,0,0,1065361407,0,16384,-11,2,0,2,121,-40,3,0,6,2,117,-1,3,0,2,0,2063,-37,2,55,2,144,2,145,2,146,2,147,2,148,-138,3,0,1334,2,9,-1,3,0,129,2,27,3,0,6,2,9,3,0,180,2,149,3,0,233,0,1,-96,3,0,16,2,9,-47,3,0,154,2,56,-28517,2,0,0,1,-1,2,124,2,0,0,8193,-21,2,193,0,10255,0,4,-11,2,64,2,171,-1,0,71680,-1,2,161,0,4292900864,0,805306431,-5,2,150,-1,2,157,-1,0,6144,-2,2,127,-1,2,154,-1,0,2147532800,2,151,2,165,2,0,2,164,0,524032,0,4,-4,2,190,0,205128192,0,1333757536,0,2147483696,0,423953,0,747766272,0,2717763192,0,4286578751,0,278545,2,152,0,4294886464,0,33292336,0,417809,2,152,0,1327482464,0,4278190128,0,700594195,0,1006647527,0,4286497336,0,4160749631,2,153,0,469762560,0,4171219488,0,8323120,2,153,0,202375680,0,3214918176,0,4294508592,2,153,-1,0,983584,0,48,0,58720273,0,3489923072,0,10517376,0,4293066815,0,1,0,2013265920,2,177,2,0,0,2089,0,3221225552,0,201375904,2,0,-2,0,256,0,122880,0,16777216,2,150,0,4160757760,2,0,-6,2,167,-11,0,3263218176,-1,0,49664,0,2160197632,0,8388802,-1,0,12713984,-1,2,154,2,159,2,178,-2,2,162,-20,0,3758096385,-2,2,155,0,4292878336,2,90,2,169,0,4294057984,-2,2,163,2,156,2,175,-2,2,155,-1,2,182,-1,2,170,2,124,0,4026593280,0,14,0,4292919296,-1,2,158,0,939588608,-1,0,805306368,-1,2,124,0,1610612736,2,156,2,157,2,4,2,0,-2,2,158,2,159,-3,0,267386880,-1,2,160,0,7168,-1,0,65024,2,154,2,161,2,179,-7,2,168,-8,2,162,-1,0,1426112704,2,163,-1,2,164,0,271581216,0,2149777408,2,23,2,161,2,124,0,851967,2,180,-1,2,23,2,181,-4,2,158,-20,2,195,2,165,-56,0,3145728,2,185,-4,2,166,2,124,-4,0,32505856,-1,2,167,-1,0,2147385088,2,90,1,2155905152,2,-3,2,103,2,0,2,168,-2,2,169,-6,2,170,0,4026597375,0,1,-1,0,1,-1,2,171,-3,2,117,2,64,-2,2,166,-2,2,176,2,124,-878,2,159,-36,2,172,-1,2,201,-10,2,188,-5,2,174,-6,0,4294965251,2,27,-1,2,173,-1,2,174,-2,0,4227874752,-3,0,2146435072,2,159,-2,0,1006649344,2,124,-1,2,90,0,201375744,-3,0,134217720,2,90,0,4286677377,0,32896,-1,2,158,-3,2,175,-349,2,176,0,1920,2,177,3,0,264,-11,2,157,-2,2,178,2,0,0,520617856,0,2692743168,0,36,-3,0,524284,-11,2,23,-1,2,187,-1,2,184,0,3221291007,2,178,-1,2,202,0,2158720,-3,2,159,0,1,-4,2,124,0,3808625411,0,3489628288,2,200,0,1207959680,0,3221274624,2,0,-3,2,179,0,120,0,7340032,-2,2,180,2,4,2,23,2,163,3,0,4,2,159,-1,2,181,2,177,-1,0,8176,2,182,2,179,2,183,-1,0,4290773232,2,0,-4,2,163,2,189,0,15728640,2,177,-1,2,161,-1,0,4294934512,3,0,4,-9,2,90,2,170,2,184,3,0,4,0,704,0,1849688064,2,185,-1,2,124,0,4294901887,2,0,0,130547712,0,1879048192,2,199,3,0,2,-1,2,186,2,187,-1,0,17829776,0,2025848832,0,4261477888,-2,2,0,-1,0,4286580608,-1,0,29360128,2,192,0,16252928,0,3791388672,2,38,3,0,2,-2,2,196,2,0,-1,2,103,-1,0,66584576,-1,2,191,3,0,9,2,124,-1,0,4294755328,3,0,2,-1,2,161,2,178,3,0,2,2,23,2,188,2,90,-2,0,245760,0,2147418112,-1,2,150,2,203,0,4227923456,-1,2,164,2,161,2,90,-3,0,4292870145,0,262144,2,124,3,0,2,0,1073758848,2,189,-1,0,4227921920,2,190,0,68289024,0,528402016,0,4292927536,3,0,4,-2,0,268435456,2,91,-2,2,191,3,0,5,-1,2,192,2,163,2,0,-2,0,4227923936,2,62,-1,2,155,2,95,2,0,2,154,2,158,3,0,6,-1,2,177,3,0,3,-2,0,2146959360,0,9440640,0,104857600,0,4227923840,3,0,2,0,768,2,193,2,77,-2,2,161,-2,2,119,-1,2,155,3,0,8,0,512,0,8388608,2,194,2,172,2,187,0,4286578944,3,0,2,0,1152,0,1266679808,2,191,0,576,0,4261707776,2,95,3,0,9,2,155,3,0,5,2,16,-1,0,2147221504,-28,2,178,3,0,3,-3,0,4292902912,-6,2,96,3,0,85,-33,0,4294934528,3,0,126,-18,2,195,3,0,269,-17,2,155,2,124,2,198,3,0,2,2,23,0,4290822144,-2,0,67174336,0,520093700,2,17,3,0,21,-2,2,179,3,0,3,-2,0,30720,-1,0,32512,3,0,2,0,4294770656,-191,2,174,-38,2,170,2,0,2,196,3,0,279,-8,2,124,2,0,0,4294508543,0,65295,-11,2,177,3,0,72,-3,0,3758159872,0,201391616,3,0,155,-7,2,170,-1,0,384,-1,0,133693440,-3,2,196,-2,2,26,3,0,4,2,169,-2,2,90,2,155,3,0,4,-2,2,164,-1,2,150,0,335552923,2,197,-1,0,538974272,0,2214592512,0,132e3,-10,0,192,-8,0,12288,-21,0,134213632,0,4294901761,3,0,42,0,100663424,0,4294965284,3,0,6,-1,0,3221282816,2,198,3,0,11,-1,2,199,3,0,40,-6,0,4286578784,2,0,-2,0,1006694400,3,0,24,2,35,-1,2,94,3,0,2,0,1,2,163,3,0,6,2,197,0,4110942569,0,1432950139,0,2701658217,0,4026532864,0,4026532881,2,0,2,45,3,0,8,-1,2,158,-2,2,169,0,98304,0,65537,2,170,-5,0,4294950912,2,0,2,118,0,65528,2,177,0,4294770176,2,26,3,0,4,-30,2,174,0,3758153728,-3,2,169,-2,2,155,2,188,2,158,-1,2,191,-1,2,161,0,4294754304,3,0,2,-3,0,33554432,-2,2,200,-3,2,169,0,4175478784,2,201,0,4286643712,0,4286644216,2,0,-4,2,202,-1,2,165,0,4227923967,3,0,32,-1334,2,163,2,0,-129,2,94,-6,2,163,-180,2,203,-233,2,4,3,0,96,-16,2,163,3,0,47,-154,2,165,3,0,22381,-7,2,17,3,0,6128],[4294967295,4294967291,4092460543,4294828031,4294967294,134217726,268435455,2147483647,1048575,1073741823,3892314111,134217727,1061158911,536805376,4294910143,4160749567,4294901759,4294901760,536870911,262143,8388607,4294902783,4294918143,65535,67043328,2281701374,4294967232,2097151,4294903807,4194303,255,67108863,4294967039,511,524287,131071,127,4292870143,4294902271,4294549487,33554431,1023,67047423,4294901888,4286578687,4294770687,67043583,32767,15,2047999,67043343,16777215,4294902e3,4294934527,4294966783,4294967279,2047,262083,20511,4290772991,41943039,493567,4294959104,603979775,65536,602799615,805044223,4294965206,8191,1031749119,4294917631,2134769663,4286578493,4282253311,4294942719,33540095,4294905855,4294967264,2868854591,1608515583,265232348,534519807,2147614720,1060109444,4093640016,17376,2139062143,224,4169138175,4294909951,4286578688,4294967292,4294965759,2044,4292870144,4294966272,4294967280,8289918,4294934399,4294901775,4294965375,1602223615,4294967259,4294443008,268369920,4292804608,486341884,4294963199,3087007615,1073692671,4128527,4279238655,4294902015,4294966591,2445279231,3670015,3238002687,31,63,4294967288,4294705151,4095,3221208447,4294549472,2147483648,4285526655,4294966527,4294705152,4294966143,64,4294966719,16383,3774873592,458752,536807423,67043839,3758096383,3959414372,3755993023,2080374783,4294835295,4294967103,4160749565,4087,184024726,2862017156,1593309078,268434431,268434414,4294901763,536870912,2952790016,202506752,139264,402653184,4261412864,4227922944,49152,61440,3758096384,117440512,65280,3233808384,3221225472,2097152,4294965248,32768,57152,67108864,4293918720,4290772992,25165824,57344,4227915776,4278190080,4227907584,65520,4026531840,4227858432,4160749568,3758129152,4294836224,63488,1073741824,4294967040,4194304,251658240,196608,4294963200,64512,417808,4227923712,12582912,50331648,65472,4294967168,4294966784,16,4294917120,2080374784,4096,65408,524288,65532]);function h(e){return e.column++,e.currentChar=e.source.charCodeAt(++e.index)}function zu(e,u){if((u&64512)!==55296)return 0;let n=e.source.charCodeAt(e.index+1);return(n&64512)!==56320?0:(u=e.currentChar=65536+((u&1023)<<10)+(n&1023),E2[(u>>>5)+0]>>>u&31&1||d(e,18,G(u)),e.index++,e.column++,1)}function ie(e,u){e.currentChar=e.source.charCodeAt(++e.index),e.flags|=1,u&4||(e.column=0,e.line++)}function c2(e){e.flags|=1,e.currentChar=e.source.charCodeAt(++e.index),e.column=0,e.line++}function Hu(e){return e===160||e===65279||e===133||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===8201||e===65519}function G(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(e>>>10)+String.fromCharCode(e&1023)}function H(e){return e<65?e-48:e-65+10&15}function Ku(e){switch(e){case 134283266:return"NumericLiteral";case 134283267:return"StringLiteral";case 86021:case 86022:return"BooleanLiteral";case 86023:return"NullLiteral";case 65540:return"RegularExpression";case 67174408:case 67174409:case 132:return"TemplateLiteral";default:return(e&143360)===143360?"Identifier":(e&4096)===4096?"Keyword":"Punctuator"}}var L=[0,0,0,0,0,0,0,0,0,0,1032,0,0,2056,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8192,0,3,0,0,8192,0,0,0,256,0,33024,0,0,242,242,114,114,114,114,114,114,594,594,0,0,16384,0,0,0,0,67,67,67,67,67,67,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,0,1,0,0,4099,0,71,71,71,71,71,71,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,16384,0,0,0,0],$u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Ve=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0];function x2(e){return e<=127?$u[e]:E2[(e>>>5)+34816]>>>e&31&1}function U2(e){return e<=127?Ve[e]:E2[(e>>>5)+0]>>>e&31&1||e===8204||e===8205}var Re=["SingleLine","MultiLine","HTMLOpen","HTMLClose","HashbangComment"];function ru(e){let u=e.source;e.currentChar===35&&u.charCodeAt(e.index+1)===33&&(h(e),h(e),te(e,u,0,4,e.tokenPos,e.linePos,e.colPos))}function ve(e,u,n,i,t,o,l,f){return i&2048&&d(e,0),te(e,u,n,t,o,l,f)}function te(e,u,n,i,t,o,l){let{index:f}=e;for(e.tokenPos=e.index,e.linePos=e.line,e.colPos=e.column;e.index=e.source.length)return d(e,32)}let t=e.index-1,o=0,l=e.currentChar,{index:f}=e;for(;U2(l);){switch(l){case 103:o&2&&d(e,34,"g"),o|=2;break;case 105:o&1&&d(e,34,"i"),o|=1;break;case 109:o&4&&d(e,34,"m"),o|=4;break;case 117:o&16&&d(e,34,"u"),o|=16;break;case 121:o&8&&d(e,34,"y"),o|=8;break;case 115:o&32&&d(e,34,"s"),o|=32;break;case 100:o&64&&d(e,34,"d"),o|=64;break;default:d(e,33)}l=h(e)}let c=e.source.slice(f,e.index),a=e.source.slice(n,t);return e.tokenRegExp={pattern:a,flags:c},u&512&&(e.tokenRaw=e.source.slice(e.tokenPos,e.index)),e.tokenValue=Yu(e,a,c),65540}function Yu(e,u,n){try{return new RegExp(u,n)}catch{try{return new RegExp(u,n.replace("d","")),null}catch{d(e,32)}}}function Qu(e,u,n){let{index:i}=e,t="",o=h(e),l=e.index;for(;!(L[o]&8);){if(o===n)return t+=e.source.slice(l,e.index),h(e),u&512&&(e.tokenRaw=e.source.slice(i,e.index)),e.tokenValue=t,134283267;if((o&8)===8&&o===92){if(t+=e.source.slice(l,e.index),o=h(e),o<127||o===8232||o===8233){let f=Oe(e,u,o);f>=0?t+=G(f):Ue(e,f,0)}else t+=G(o);l=e.index+1}e.index>=e.end&&d(e,14),o=h(e)}d(e,14)}function Oe(e,u,n){switch(n){case 98:return 8;case 102:return 12;case 114:return 13;case 110:return 10;case 116:return 9;case 118:return 11;case 13:if(e.index1114111)return-5;return e.currentChar<1||e.currentChar!==125?-4:t}else{if(!(L[i]&64))return-4;let t=e.source.charCodeAt(e.index+1);if(!(L[t]&64))return-4;let o=e.source.charCodeAt(e.index+2);if(!(L[o]&64))return-4;let l=e.source.charCodeAt(e.index+3);return L[l]&64?(e.index+=3,e.column+=3,e.currentChar=e.source.charCodeAt(e.index),H(i)<<12|H(t)<<8|H(o)<<4|H(l)):-4}}case 56:case 57:if(!(u&256))return-3;default:return n}}function Ue(e,u,n){switch(u){case-1:return;case-2:d(e,n?2:1);case-3:d(e,13);case-4:d(e,6);case-5:d(e,102)}}function Me(e,u){let{index:n}=e,i=67174409,t="",o=h(e);for(;o!==96;){if(o===36&&e.source.charCodeAt(e.index+1)===123){h(e),i=67174408;break}else if((o&8)===8&&o===92)if(o=h(e),o>126)t+=G(o);else{let l=Oe(e,u|1024,o);if(l>=0)t+=G(l);else if(l!==-1&&u&65536){t=void 0,o=Zu(e,o),o<0&&(i=67174408);break}else Ue(e,l,1)}else e.index=e.end&&d(e,15),o=h(e)}return h(e),e.tokenValue=t,e.tokenRaw=e.source.slice(n+1,e.index-(i===67174409?1:2)),i}function Zu(e,u){for(;u!==96;){switch(u){case 36:{let n=e.index+1;if(n=e.end&&d(e,15),u=h(e)}return u}function Gu(e,u){return e.index>=e.end&&d(e,0),e.index--,e.column--,Me(e,u)}function Be(e,u,n){let i=e.currentChar,t=0,o=9,l=n&64?0:1,f=0,c=0;if(n&64)t="."+I2(e,i),i=e.currentChar,i===110&&d(e,11);else{if(i===48)if(i=h(e),(i|32)===120){for(n=136,i=h(e);L[i]&4160;){if(i===95){c||d(e,147),c=0,i=h(e);continue}c=1,t=t*16+H(i),f++,i=h(e)}(f===0||!c)&&d(e,f===0?19:148)}else if((i|32)===111){for(n=132,i=h(e);L[i]&4128;){if(i===95){c||d(e,147),c=0,i=h(e);continue}c=1,t=t*8+(i-48),f++,i=h(e)}(f===0||!c)&&d(e,f===0?0:148)}else if((i|32)===98){for(n=130,i=h(e);L[i]&4224;){if(i===95){c||d(e,147),c=0,i=h(e);continue}c=1,t=t*2+(i-48),f++,i=h(e)}(f===0||!c)&&d(e,f===0?0:148)}else if(L[i]&32)for(u&1024&&d(e,1),n=1;L[i]&16;){if(L[i]&512){n=32,l=0;break}t=t*8+(i-48),i=h(e)}else L[i]&512?(u&1024&&d(e,1),e.flags|=64,n=32):i===95&&d(e,0);if(n&48){if(l){for(;o>=0&&L[i]&4112;){if(i===95){i=h(e),(i===95||n&32)&&D2(e.index,e.line,e.index+1,147),c=1;continue}c=0,t=10*t+(i-48),i=h(e),--o}if(c&&D2(e.index,e.line,e.index+1,148),o>=0&&!x2(i)&&i!==46)return e.tokenValue=t,u&512&&(e.tokenRaw=e.source.slice(e.tokenPos,e.index)),134283266}t+=I2(e,i),i=e.currentChar,i===46&&(h(e)===95&&d(e,0),n=64,t+="."+I2(e,e.currentChar),i=e.currentChar)}}let a=e.index,g=0;if(i===110&&n&128)g=1,i=h(e);else if((i|32)===101){i=h(e),L[i]&256&&(i=h(e));let{index:m}=e;L[i]&16||d(e,10),t+=e.source.substring(a,m)+I2(e,i),i=e.currentChar}return(e.index","(","{",".","...","}",")",";",",","[","]",":","?","'",'"',"","++","--","=","<<=",">>=",">>>=","**=","+=","-=","*=","/=","%=","^=","|=","&=","||=","&&=","??=","typeof","delete","void","!","~","+","-","in","instanceof","*","%","/","**","&&","||","===","!==","==","!=","<=",">=","<",">","<<",">>",">>>","&","|","^","var","let","const","break","case","catch","class","continue","debugger","default","do","else","export","extends","finally","for","function","if","import","new","return","super","switch","this","throw","try","while","with","implements","interface","package","private","protected","public","static","yield","as","async","await","constructor","get","set","from","of","enum","eval","arguments","escaped keyword","escaped future reserved keyword","reserved if strict","#","BigIntLiteral","??","?.","WhiteSpace","Illegal","LineTerminator","PrivateField","Template","@","target","meta","LineFeed","Escaped","JSXText"],Je=Object.create(null,{this:{value:86113},function:{value:86106},if:{value:20571},return:{value:20574},var:{value:86090},else:{value:20565},for:{value:20569},new:{value:86109},in:{value:8738868},typeof:{value:16863277},while:{value:20580},case:{value:20558},break:{value:20557},try:{value:20579},catch:{value:20559},delete:{value:16863278},throw:{value:86114},switch:{value:86112},continue:{value:20561},default:{value:20563},instanceof:{value:8476725},do:{value:20564},void:{value:16863279},finally:{value:20568},async:{value:209007},await:{value:209008},class:{value:86096},const:{value:86092},constructor:{value:12401},debugger:{value:20562},export:{value:20566},extends:{value:20567},false:{value:86021},from:{value:12404},get:{value:12402},implements:{value:36966},import:{value:86108},interface:{value:36967},let:{value:241739},null:{value:86023},of:{value:274549},package:{value:36968},private:{value:36969},protected:{value:36970},public:{value:36971},set:{value:12403},static:{value:36972},super:{value:86111},true:{value:86022},with:{value:20581},yield:{value:241773},enum:{value:86134},eval:{value:537079927},as:{value:77934},arguments:{value:537079928},target:{value:143494},meta:{value:143495}});function Te(e,u,n){for(;Ve[h(e)];);return e.tokenValue=e.source.slice(e.tokenPos,e.index),e.currentChar!==92&&e.currentChar<=126?Je[e.tokenValue]||208897:oe(e,u,0,n)}function xu(e,u){let n=je(e);return U2(n)||d(e,4),e.tokenValue=G(n),oe(e,u,1,L[n]&4)}function oe(e,u,n,i){let t=e.index;for(;e.index=2&&o<=11){let l=Je[e.tokenValue];return l===void 0?208897:n?l===209008?u&4196352?121:l:u&1024?l===36972||(l&36864)===36864?122:(l&20480)===20480?u&1073741824&&!(u&8192)?l:121:143483:u&1073741824&&!(u&8192)&&(l&20480)===20480?l:l===241773?u&1073741824?143483:u&2097152?121:l:l===209007?143483:(l&36864)===36864?l:121:l}return 208897}function pu(e){return x2(h(e))||d(e,94),131}function je(e){return e.source.charCodeAt(e.index+1)!==117&&d(e,4),e.currentChar=e.source.charCodeAt(e.index+=2),e1(e)}function e1(e){let u=0,n=e.currentChar;if(n===123){let l=e.index-2;for(;L[h(e)]&64;)u=u<<4|H(e.currentChar),u>1114111&&D2(l,e.line,e.index+1,102);return e.currentChar!==125&&D2(l,e.line,e.index-1,6),h(e),u}L[n]&64||d(e,6);let i=e.source.charCodeAt(e.index+1);L[i]&64||d(e,6);let t=e.source.charCodeAt(e.index+2);L[t]&64||d(e,6);let o=e.source.charCodeAt(e.index+3);return L[o]&64||d(e,6),u=H(n)<<12|H(i)<<8|H(t)<<4|H(o),e.currentChar=e.source.charCodeAt(e.index+=4),u}var Xe=[129,129,129,129,129,129,129,129,129,128,136,128,128,130,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,128,16842800,134283267,131,208897,8457015,8455751,134283267,67174411,16,8457014,25233970,18,25233971,67108877,8457016,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,21,1074790417,8456258,1077936157,8456259,22,133,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,69271571,137,20,8455497,208897,132,4096,4096,4096,4096,4096,4096,4096,208897,4096,208897,208897,4096,208897,4096,208897,4096,208897,4096,4096,4096,208897,4096,4096,208897,4096,4096,2162700,8455240,1074790415,16842801,129];function b(e,u){if(e.flags=(e.flags|1)^1,e.startPos=e.index,e.startColumn=e.column,e.startLine=e.line,e.token=ze(e,u,0),e.onToken&&e.token!==1048576){let n={start:{line:e.linePos,column:e.colPos},end:{line:e.line,column:e.column}};e.onToken(Ku(e.token),e.tokenPos,e.index,n)}}function ze(e,u,n){let i=e.index===0,t=e.source,o=e.index,l=e.line,f=e.column;for(;e.index=e.end)return 8457014;let s=e.currentChar;return s===61?(h(e),4194340):s!==42?8457014:h(e)!==61?8457273:(h(e),4194337)}case 8455497:return h(e)!==61?8455497:(h(e),4194343);case 25233970:{h(e);let s=e.currentChar;return s===43?(h(e),33619995):s===61?(h(e),4194338):25233970}case 25233971:{h(e);let s=e.currentChar;if(s===45){if(h(e),(n&1||i)&&e.currentChar===62){u&256||d(e,109),h(e),n=ve(e,t,n,u,3,o,l,f),o=e.tokenPos,l=e.linePos,f=e.colPos;continue}return 33619996}return s===61?(h(e),4194339):25233971}case 8457016:{if(h(e),e.index=48&&m<=57)return Be(e,u,80);if(m===46){let s=e.index+1;if(s=48&&s<=57)))return h(e),67108991}return 22}}}else{if((c^8232)<=1){n=n&-5|1,c2(e);continue}if((c&64512)===55296||E2[(c>>>5)+34816]>>>c&31&1)return(c&64512)===56320&&(c=(c&1023)<<10|c&1023|65536,E2[(c>>>5)+0]>>>c&31&1||d(e,18,G(c)),e.index++,e.currentChar=c),e.column++,e.tokenValue="",oe(e,u,0,0);if(Hu(c)){h(e);continue}d(e,18,G(c))}}return 1048576}function u1(e,u){return e.startPos=e.tokenPos=e.index,e.startColumn=e.colPos=e.column,e.startLine=e.linePos=e.line,e.token=L[e.currentChar]&8192?n1(e,u):ze(e,u,0),e.token}function n1(e,u){let n=e.currentChar,i=h(e),t=e.index;for(;i!==n;)e.index>=e.end&&d(e,14),i=h(e);return i!==n&&d(e,14),e.tokenValue=e.source.slice(t,e.index),h(e),u&512&&(e.tokenRaw=e.source.slice(e.tokenPos,e.index)),134283267}function d2(e,u){if(e.startPos=e.tokenPos=e.index,e.startColumn=e.colPos=e.column,e.startLine=e.linePos=e.line,e.index>=e.end)return e.token=1048576;switch(Xe[e.source.charCodeAt(e.index)]){case 8456258:{h(e),e.currentChar===47?(h(e),e.token=25):e.token=8456258;break}case 2162700:{h(e),e.token=2162700;break}default:{let i=0;for(;e.index1&&t&32&&e.token&262144&&d(e,59,U[e.token&255]),l}function qe(e,u,n,i,t){let{token:o,tokenPos:l,linePos:f,colPos:c}=e,a=null,g=cu(e,u,n,i,t,l,f,c);return e.token===1077936157?(b(e,u|32768),a=R(e,u,1,0,0,e.tokenPos,e.linePos,e.colPos),(t&32||!(o&2097152))&&(e.token===274549||e.token===8738868&&(o&2097152||!(i&4)||u&1024))&&h2(l,e.line,e.index-3,58,e.token===274549?"of":"in")):(i&16||(o&2097152)>0)&&(e.token&262144)!==262144&&d(e,57,i&16?"const":"destructuring"),y(e,u,l,f,c,{type:"VariableDeclarator",id:g,init:a})}function q1(e,u,n,i,t,o,l){b(e,u);let f=((u&4194304)>0||(u&2048)>0&&(u&8192)>0)&&q(e,u,209008);P(e,u|32768,67174411),n&&(n=J(n,1));let c=null,a=null,g=0,m=null,s=e.token===86090||e.token===241739||e.token===86092,k,{token:C,tokenPos:A,linePos:E,colPos:w}=e;if(s?C===241739?(m=I(e,u,0),e.token&2240512?(e.token===8738868?u&1024&&d(e,65):m=y(e,u,A,E,w,{type:"VariableDeclaration",kind:"let",declarations:y2(e,u|134217728,n,8,32)}),e.assignable=1):u&1024?d(e,65):(s=!1,e.assignable=1,m=N(e,u,m,0,0,A,E,w),e.token===274549&&d(e,112))):(b(e,u),m=y(e,u,A,E,w,C===86090?{type:"VariableDeclaration",kind:"var",declarations:y2(e,u|134217728,n,4,32)}:{type:"VariableDeclaration",kind:"const",declarations:y2(e,u|134217728,n,16,32)}),e.assignable=1):C===1074790417?f&&d(e,80):(C&2097152)===2097152?(m=C===2162700?_(e,u,void 0,1,0,0,2,32,A,E,w):W(e,u,void 0,1,0,0,2,32,A,E,w),g=e.destructible,u&256&&g&64&&d(e,61),e.assignable=g&16?2:1,m=N(e,u|134217728,m,0,0,e.tokenPos,e.linePos,e.colPos)):m=r(e,u|134217728,1,0,1,A,E,w),(e.token&262144)===262144){if(e.token===274549){e.assignable&2&&d(e,78,f?"await":"of"),Z(e,m),b(e,u|32768),k=R(e,u,1,0,0,e.tokenPos,e.linePos,e.colPos),P(e,u|32768,16);let S=P2(e,u,n,i);return y(e,u,t,o,l,{type:"ForOfStatement",left:m,right:k,body:S,await:f})}e.assignable&2&&d(e,78,"in"),Z(e,m),b(e,u|32768),f&&d(e,80),k=j(e,u,0,1,e.tokenPos,e.linePos,e.colPos),P(e,u|32768,16);let M=P2(e,u,n,i);return y(e,u,t,o,l,{type:"ForInStatement",body:M,left:m,right:k})}f&&d(e,80),s||(g&8&&e.token!==1077936157&&d(e,78,"loop"),m=O(e,u|134217728,0,0,A,E,w,m)),e.token===18&&(m=u2(e,u,0,e.tokenPos,e.linePos,e.colPos,m)),P(e,u|32768,1074790417),e.token!==1074790417&&(c=j(e,u,0,1,e.tokenPos,e.linePos,e.colPos)),P(e,u|32768,1074790417),e.token!==16&&(a=j(e,u,0,1,e.tokenPos,e.linePos,e.colPos)),P(e,u|32768,16);let B=P2(e,u,n,i);return y(e,u,t,o,l,{type:"ForStatement",init:m,test:c,update:a,body:B})}function Qe(e,u,n){return fe(u,e.token)||d(e,115),(e.token&537079808)===537079808&&d(e,116),n&&t2(e,u,n,e.tokenValue,8,0),I(e,u,0)}function L1(e,u,n){let i=e.tokenPos,t=e.linePos,o=e.colPos;b(e,u);let l=null,{tokenPos:f,linePos:c,colPos:a}=e,g=[];if(e.token===134283267)l=X(e,u);else{if(e.token&143360){let m=Qe(e,u,n);if(g=[y(e,u,f,c,a,{type:"ImportDefaultSpecifier",local:m})],q(e,u,18))switch(e.token){case 8457014:g.push(Le(e,u,n));break;case 2162700:Ie(e,u,n,g);break;default:d(e,105)}}else switch(e.token){case 8457014:g=[Le(e,u,n)];break;case 2162700:Ie(e,u,n,g);break;case 67174411:return Ge(e,u,i,t,o);case 67108877:return Ze(e,u,i,t,o);default:d(e,28,U[e.token&255])}l=I1(e,u)}return z(e,u|32768),y(e,u,i,t,o,{type:"ImportDeclaration",specifiers:g,source:l})}function Le(e,u,n){let{tokenPos:i,linePos:t,colPos:o}=e;return b(e,u),P(e,u,77934),(e.token&134217728)===134217728&&h2(i,e.line,e.index,28,U[e.token&255]),y(e,u,i,t,o,{type:"ImportNamespaceSpecifier",local:Qe(e,u,n)})}function I1(e,u){return q(e,u,12404),e.token!==134283267&&d(e,103,"Import"),X(e,u)}function Ie(e,u,n,i){for(b(e,u);e.token&143360;){let{token:t,tokenValue:o,tokenPos:l,linePos:f,colPos:c}=e,a=I(e,u,0),g;q(e,u,77934)?((e.token&134217728)===134217728||e.token===18?d(e,104):M2(e,u,16,e.token,0),o=e.tokenValue,g=I(e,u,0)):(M2(e,u,16,t,0),g=a),n&&t2(e,u,n,o,8,0),i.push(y(e,u,l,f,c,{type:"ImportSpecifier",local:g,imported:a})),e.token!==1074790415&&P(e,u,18)}return P(e,u,1074790415),i}function Ze(e,u,n,i,t){let o=pe(e,u,y(e,u,n,i,t,{type:"Identifier",name:"import"}),n,i,t);return o=N(e,u,o,0,0,n,i,t),o=O(e,u,0,0,n,i,t,o),b2(e,u,o,n,i,t)}function Ge(e,u,n,i,t){let o=eu(e,u,0,n,i,t);return o=N(e,u,o,0,0,n,i,t),e.token===18&&(o=u2(e,u,0,n,i,t,o)),b2(e,u,o,n,i,t)}function N1(e,u,n){let i=e.tokenPos,t=e.linePos,o=e.colPos;b(e,u|32768);let l=[],f=null,c=null,a;if(q(e,u|32768,20563)){switch(e.token){case 86106:{f=i2(e,u,n,4,1,1,0,e.tokenPos,e.linePos,e.colPos);break}case 133:case 86096:f=ne(e,u,n,1,e.tokenPos,e.linePos,e.colPos);break;case 209007:let{tokenPos:g,linePos:m,colPos:s}=e;f=I(e,u,0);let{flags:k}=e;k&1||(e.token===86106?f=i2(e,u,n,4,1,1,1,g,m,s):e.token===67174411?(f=ke(e,u,f,1,1,0,k,g,m,s),f=N(e,u,f,0,0,g,m,s),f=O(e,u,0,0,g,m,s,f)):e.token&143360&&(n&&(n=H2(e,u,e.tokenValue)),f=I(e,u,0),f=B2(e,u,n,[f],1,g,m,s)));break;default:f=R(e,u,1,0,0,e.tokenPos,e.linePos,e.colPos),z(e,u|32768)}return n&&l2(e,"default"),y(e,u,i,t,o,{type:"ExportDefaultDeclaration",declaration:f})}switch(e.token){case 8457014:{b(e,u);let k=null;return q(e,u,77934)&&(n&&l2(e,e.tokenValue),k=I(e,u,0)),P(e,u,12404),e.token!==134283267&&d(e,103,"Export"),c=X(e,u),z(e,u|32768),y(e,u,i,t,o,{type:"ExportAllDeclaration",source:c,exported:k})}case 2162700:{b(e,u);let k=[],C=[];for(;e.token&143360;){let{tokenPos:A,tokenValue:E,linePos:w,colPos:B}=e,M=I(e,u,0),S;e.token===77934?(b(e,u),(e.token&134217728)===134217728&&d(e,104),n&&(k.push(e.tokenValue),C.push(E)),S=I(e,u,0)):(n&&(k.push(e.tokenValue),C.push(e.tokenValue)),S=M),l.push(y(e,u,A,w,B,{type:"ExportSpecifier",local:M,exported:S})),e.token!==1074790415&&P(e,u,18)}if(P(e,u,1074790415),q(e,u,12404))e.token!==134283267&&d(e,103,"Export"),c=X(e,u);else if(n){let A=0,E=k.length;for(;A0)&8738868,g,m;for(e.assignable=2;e.token&8454144&&(g=e.token,m=g&3840,(g&524288&&f&268435456||f&524288&&g&268435456)&&d(e,160),!(m+((g===8457273)<<8)-((a===g)<<12)<=l));)b(e,u|32768),c=y(e,u,i,t,o,{type:g&524288||g&268435456?"LogicalExpression":"BinaryExpression",left:c,right:n2(e,u,n,e.tokenPos,e.linePos,e.colPos,m,g,r(e,u,0,n,1,e.tokenPos,e.linePos,e.colPos)),operator:U[g&255]});return e.token===1077936157&&d(e,24),c}function V1(e,u,n,i,t,o,l){n||d(e,0);let f=e.token;b(e,u|32768);let c=r(e,u,0,l,1,e.tokenPos,e.linePos,e.colPos);return e.token===8457273&&d(e,31),u&1024&&f===16863278&&(c.type==="Identifier"?d(e,118):i1(c)&&d(e,124)),e.assignable=2,y(e,u,i,t,o,{type:"UnaryExpression",operator:U[f&255],argument:c,prefix:!0})}function R1(e,u,n,i,t,o,l,f,c,a){let{token:g}=e,m=I(e,u,o),{flags:s}=e;if(!(s&1)){if(e.token===86106)return nu(e,u,1,n,f,c,a);if((e.token&143360)===143360)return i||d(e,0),ou(e,u,t,f,c,a)}return!l&&e.token===67174411?ke(e,u,m,t,1,0,s,f,c,a):e.token===10?(ce(e,u,g,1),l&&d(e,49),$2(e,u,e.tokenValue,m,l,t,0,f,c,a)):m}function O1(e,u,n,i,t,o,l){if(n&&(e.destructible|=256),u&2097152){b(e,u|32768),u&8388608&&d(e,30),i||d(e,24),e.token===22&&d(e,121);let f=null,c=!1;return e.flags&1||(c=q(e,u|32768,8457014),(e.token&77824||c)&&(f=R(e,u,1,0,0,e.tokenPos,e.linePos,e.colPos))),e.assignable=2,y(e,u,t,o,l,{type:"YieldExpression",argument:f,delegate:c})}return u&1024&&d(e,95,"yield"),ye(e,u,t,o,l)}function U1(e,u,n,i,t,o,l){if(i&&(e.destructible|=128),u&4194304||u&2048&&u&8192){n&&d(e,0),u&8388608&&h2(e.index,e.line,e.index,29),b(e,u|32768);let f=r(e,u,0,0,1,e.tokenPos,e.linePos,e.colPos);return e.token===8457273&&d(e,31),e.assignable=2,y(e,u,t,o,l,{type:"AwaitExpression",argument:f})}return u&2048&&d(e,96),ye(e,u,t,o,l)}function K2(e,u,n,i,t,o){let{tokenPos:l,linePos:f,colPos:c}=e;P(e,u|32768,2162700);let a=[],g=u;if(e.token!==1074790415){for(;e.token===134283267;){let{index:m,tokenPos:s,tokenValue:k,token:C}=e,A=X(e,u);He(e,m,s,k)&&(u|=1024,e.flags&128&&h2(e.index,e.line,e.tokenPos,64),e.flags&64&&h2(e.index,e.line,e.tokenPos,8)),a.push(se(e,u,A,C,s,e.linePos,e.colPos))}u&1024&&(t&&((t&537079808)===537079808&&d(e,116),(t&36864)===36864&&d(e,38)),e.flags&512&&d(e,116),e.flags&256&&d(e,115)),u&64&&n&&o!==void 0&&!(g&1024)&&!(u&8192)&&z2(o)}for(e.flags=(e.flags|512|256|64)^832,e.destructible=(e.destructible|256)^256;e.token!==1074790415;)a.push(S2(e,u,n,4,{}));return P(e,i&24?u|32768:u,1074790415),e.flags&=-193,e.token===1077936157&&d(e,24),y(e,u,l,f,c,{type:"BlockStatement",body:a})}function M1(e,u,n,i,t){switch(b(e,u),e.token){case 67108991:d(e,162);case 67174411:{u&524288||d(e,26),u&16384&&d(e,27),e.assignable=2;break}case 69271571:case 67108877:{u&262144||d(e,27),u&16384&&d(e,27),e.assignable=1;break}default:d(e,28,"super")}return y(e,u,n,i,t,{type:"Super"})}function r(e,u,n,i,t,o,l,f){let c=K(e,u,2,0,n,0,i,t,o,l,f);return N(e,u,c,i,0,o,l,f)}function J1(e,u,n,i,t,o){e.assignable&2&&d(e,53);let{token:l}=e;return b(e,u),e.assignable=2,y(e,u,i,t,o,{type:"UpdateExpression",argument:n,operator:U[l&255],prefix:!1})}function N(e,u,n,i,t,o,l,f){if((e.token&33619968)===33619968&&!(e.flags&1))n=J1(e,u,n,o,l,f);else if((e.token&67108864)===67108864){switch(u=(u|134217728)^134217728,e.token){case 67108877:{b(e,(u|1073741824|8192)^8192),e.assignable=1;let c=xe(e,u);n=y(e,u,o,l,f,{type:"MemberExpression",object:n,computed:!1,property:c});break}case 69271571:{let c=!1;(e.flags&2048)===2048&&(c=!0,e.flags=(e.flags|2048)^2048),b(e,u|32768);let{tokenPos:a,linePos:g,colPos:m}=e,s=j(e,u,i,1,a,g,m);P(e,u,20),e.assignable=1,n=y(e,u,o,l,f,{type:"MemberExpression",object:n,computed:!0,property:s}),c&&(e.flags|=2048);break}case 67174411:{if((e.flags&1024)===1024)return e.flags=(e.flags|1024)^1024,n;let c=!1;(e.flags&2048)===2048&&(c=!0,e.flags=(e.flags|2048)^2048);let a=ge(e,u,i);e.assignable=2,n=y(e,u,o,l,f,{type:"CallExpression",callee:n,arguments:a}),c&&(e.flags|=2048);break}case 67108991:{b(e,(u|1073741824|8192)^8192),e.flags|=2048,e.assignable=2,n=j1(e,u,n,o,l,f);break}default:(e.flags&2048)===2048&&d(e,161),e.assignable=2,n=y(e,u,o,l,f,{type:"TaggedTemplateExpression",tag:n,quasi:e.token===67174408?me(e,u|65536):ae(e,u,e.tokenPos,e.linePos,e.colPos)})}n=N(e,u,n,0,1,o,l,f)}return t===0&&(e.flags&2048)===2048&&(e.flags=(e.flags|2048)^2048,n=y(e,u,o,l,f,{type:"ChainExpression",expression:n})),n}function j1(e,u,n,i,t,o){let l=!1,f;if((e.token===69271571||e.token===67174411)&&(e.flags&2048)===2048&&(l=!0,e.flags=(e.flags|2048)^2048),e.token===69271571){b(e,u|32768);let{tokenPos:c,linePos:a,colPos:g}=e,m=j(e,u,0,1,c,a,g);P(e,u,20),e.assignable=2,f=y(e,u,i,t,o,{type:"MemberExpression",object:n,computed:!0,optional:!0,property:m})}else if(e.token===67174411){let c=ge(e,u,0);e.assignable=2,f=y(e,u,i,t,o,{type:"CallExpression",callee:n,arguments:c,optional:!0})}else{e.token&143360||d(e,155);let c=I(e,u,0);e.assignable=2,f=y(e,u,i,t,o,{type:"MemberExpression",object:n,computed:!1,optional:!0,property:c})}return l&&(e.flags|=2048),f}function xe(e,u){return!(e.token&143360)&&e.token!==131&&d(e,155),u&1&&e.token===131?X2(e,u,e.tokenPos,e.linePos,e.colPos):I(e,u,0)}function X1(e,u,n,i,t,o,l){n&&d(e,54),i||d(e,0);let{token:f}=e;b(e,u|32768);let c=r(e,u,0,0,1,e.tokenPos,e.linePos,e.colPos);return e.assignable&2&&d(e,53),e.assignable=2,y(e,u,t,o,l,{type:"UpdateExpression",argument:c,operator:U[f&255],prefix:!0})}function K(e,u,n,i,t,o,l,f,c,a,g){if((e.token&143360)===143360){switch(e.token){case 209008:return U1(e,u,i,l,c,a,g);case 241773:return O1(e,u,l,t,c,a,g);case 209007:return R1(e,u,l,f,t,o,i,c,a,g)}let{token:m,tokenValue:s}=e,k=I(e,u|65536,o);return e.token===10?(f||d(e,0),ce(e,u,m,1),$2(e,u,s,k,i,t,0,c,a,g)):(u&16384&&m===537079928&&d(e,127),m===241739&&(u&1024&&d(e,110),n&24&&d(e,98)),e.assignable=u&1024&&(m&537079808)===537079808?2:1,k)}if((e.token&134217728)===134217728)return X(e,u);switch(e.token){case 33619995:case 33619996:return X1(e,u,i,f,c,a,g);case 16863278:case 16842800:case 16842801:case 25233970:case 25233971:case 16863277:case 16863279:return V1(e,u,f,c,a,g,l);case 86106:return nu(e,u,0,l,c,a,g);case 2162700:return W1(e,u,t?0:1,l,c,a,g);case 69271571:return r1(e,u,t?0:1,l,c,a,g);case 67174411:return Y1(e,u,t,1,0,c,a,g);case 86021:case 86022:case 86023:return K1(e,u,c,a,g);case 86113:return $1(e,u);case 65540:return G1(e,u,c,a,g);case 133:case 86096:return x1(e,u,l,c,a,g);case 86111:return M1(e,u,c,a,g);case 67174409:return ae(e,u,c,a,g);case 67174408:return me(e,u);case 86109:return Q1(e,u,l,c,a,g);case 134283389:return uu(e,u,c,a,g);case 131:return X2(e,u,c,a,g);case 86108:return z1(e,u,i,l,c,a,g);case 8456258:if(u&16)return De(e,u,1,c,a,g);default:if(fe(u,e.token))return ye(e,u,c,a,g);d(e,28,U[e.token&255])}}function z1(e,u,n,i,t,o,l){let f=I(e,u,0);return e.token===67108877?pe(e,u,f,t,o,l):(n&&d(e,138),f=eu(e,u,i,t,o,l),e.assignable=2,N(e,u,f,i,0,t,o,l))}function pe(e,u,n,i,t,o){return u&2048||d(e,164),b(e,u),e.token!==143495&&e.tokenValue!=="meta"&&d(e,28,U[e.token&255]),e.assignable=2,y(e,u,i,t,o,{type:"MetaProperty",meta:n,property:I(e,u,0)})}function eu(e,u,n,i,t,o){P(e,u|32768,67174411),e.token===14&&d(e,139);let l=R(e,u,1,0,n,e.tokenPos,e.linePos,e.colPos);return P(e,u,16),y(e,u,i,t,o,{type:"ImportExpression",source:l})}function uu(e,u,n,i,t){let{tokenRaw:o,tokenValue:l}=e;return b(e,u),e.assignable=2,y(e,u,n,i,t,u&512?{type:"Literal",value:l,bigint:o.slice(0,-1),raw:o}:{type:"Literal",value:l,bigint:o.slice(0,-1)})}function ae(e,u,n,i,t){e.assignable=2;let{tokenValue:o,tokenRaw:l,tokenPos:f,linePos:c,colPos:a}=e;P(e,u,67174409);let g=[R2(e,u,o,l,f,c,a,!0)];return y(e,u,n,i,t,{type:"TemplateLiteral",expressions:[],quasis:g})}function me(e,u){u=(u|134217728)^134217728;let{tokenValue:n,tokenRaw:i,tokenPos:t,linePos:o,colPos:l}=e;P(e,u|32768,67174408);let f=[R2(e,u,n,i,t,o,l,!1)],c=[j(e,u,0,1,e.tokenPos,e.linePos,e.colPos)];for(e.token!==1074790415&&d(e,81);(e.token=Gu(e,u))!==67174409;){let{tokenValue:a,tokenRaw:g,tokenPos:m,linePos:s,colPos:k}=e;P(e,u|32768,67174408),f.push(R2(e,u,a,g,m,s,k,!1)),c.push(j(e,u,0,1,e.tokenPos,e.linePos,e.colPos)),e.token!==1074790415&&d(e,81)}{let{tokenValue:a,tokenRaw:g,tokenPos:m,linePos:s,colPos:k}=e;P(e,u,67174409),f.push(R2(e,u,a,g,m,s,k,!0))}return y(e,u,t,o,l,{type:"TemplateLiteral",expressions:c,quasis:f})}function R2(e,u,n,i,t,o,l,f){let c=y(e,u,t,o,l,{type:"TemplateElement",value:{cooked:n,raw:i},tail:f}),a=f?1:2;return u&2&&(c.start+=1,c.range[0]+=1,c.end-=a,c.range[1]-=a),u&4&&(c.loc.start.column+=1,c.loc.end.column-=a),c}function H1(e,u,n,i,t){u=(u|134217728)^134217728,P(e,u|32768,14);let o=R(e,u,1,0,0,e.tokenPos,e.linePos,e.colPos);return e.assignable=1,y(e,u,n,i,t,{type:"SpreadElement",argument:o})}function ge(e,u,n){b(e,u|32768);let i=[];if(e.token===16)return b(e,u),i;for(;e.token!==16&&(e.token===14?i.push(H1(e,u,e.tokenPos,e.linePos,e.colPos)):i.push(R(e,u,1,0,n,e.tokenPos,e.linePos,e.colPos)),!(e.token!==18||(b(e,u|32768),e.token===16))););return P(e,u,16),i}function I(e,u,n){let{tokenValue:i,tokenPos:t,linePos:o,colPos:l}=e;return b(e,u),y(e,u,t,o,l,u&268435456?{type:"Identifier",name:i,pattern:n===1}:{type:"Identifier",name:i})}function X(e,u){let{tokenValue:n,tokenRaw:i,tokenPos:t,linePos:o,colPos:l}=e;return e.token===134283389?uu(e,u,t,o,l):(b(e,u),e.assignable=2,y(e,u,t,o,l,u&512?{type:"Literal",value:n,raw:i}:{type:"Literal",value:n}))}function K1(e,u,n,i,t){let o=U[e.token&255],l=e.token===86023?null:o==="true";return b(e,u),e.assignable=2,y(e,u,n,i,t,u&512?{type:"Literal",value:l,raw:o}:{type:"Literal",value:l})}function $1(e,u){let{tokenPos:n,linePos:i,colPos:t}=e;return b(e,u),e.assignable=2,y(e,u,n,i,t,{type:"ThisExpression"})}function i2(e,u,n,i,t,o,l,f,c,a){b(e,u|32768);let g=t?le(e,u,8457014):0,m=null,s,k=n?s2():void 0;if(e.token===67174411)o&1||d(e,37,"Function");else{let E=i&4&&(!(u&8192)||!(u&2048))?4:64;Ke(e,u|(u&3072)<<11,e.token),n&&(E&4?We(e,u,n,e.tokenValue,E):t2(e,u,n,e.tokenValue,E,i),k=J(k,256),o&&o&2&&l2(e,e.tokenValue)),s=e.token,e.token&143360?m=I(e,u,0):d(e,28,U[e.token&255])}u=(u|32243712)^32243712|67108864|l*2+g<<21|(g?0:1073741824),n&&(k=J(k,512));let C=tu(e,u|8388608,k,0,1),A=K2(e,(u|8192|4096|131072)^143360,n?J(k,128):k,8,s,n?k.scopeError:void 0);return y(e,u,f,c,a,{type:"FunctionDeclaration",id:m,params:C,body:A,async:l===1,generator:g===1})}function nu(e,u,n,i,t,o,l){b(e,u|32768);let f=le(e,u,8457014),c=n*2+f<<21,a=null,g,m=u&64?s2():void 0;(e.token&176128)>0&&(Ke(e,(u|32243712)^32243712|c,e.token),m&&(m=J(m,256)),g=e.token,a=I(e,u,0)),u=(u|32243712)^32243712|67108864|c|(f?0:1073741824),m&&(m=J(m,512));let s=tu(e,u|8388608,m,i,1),k=K2(e,u&-134377473,m&&J(m,128),0,g,void 0);return e.assignable=2,y(e,u,t,o,l,{type:"FunctionExpression",id:a,params:s,body:k,async:n===1,generator:f===1})}function r1(e,u,n,i,t,o,l){let f=W(e,u,void 0,n,i,0,2,0,t,o,l);return u&256&&e.destructible&64&&d(e,61),e.destructible&8&&d(e,60),f}function W(e,u,n,i,t,o,l,f,c,a,g){b(e,u|32768);let m=[],s=0;for(u=(u|134217728)^134217728;e.token!==20;)if(q(e,u|32768,18))m.push(null);else{let C,{token:A,tokenPos:E,linePos:w,colPos:B,tokenValue:M}=e;if(A&143360)if(C=K(e,u,l,0,1,0,t,1,E,w,B),e.token===1077936157){e.assignable&2&&d(e,24),b(e,u|32768),n&&e2(e,u,n,M,l,f);let S=R(e,u,1,1,t,e.tokenPos,e.linePos,e.colPos);C=y(e,u,E,w,B,o?{type:"AssignmentPattern",left:C,right:S}:{type:"AssignmentExpression",operator:"=",left:C,right:S}),s|=e.destructible&256?256:0|e.destructible&128?128:0}else e.token===18||e.token===20?(e.assignable&2?s|=16:n&&e2(e,u,n,M,l,f),s|=e.destructible&256?256:0|e.destructible&128?128:0):(s|=l&1?32:l&2?0:16,C=N(e,u,C,t,0,E,w,B),e.token!==18&&e.token!==20?(e.token!==1077936157&&(s|=16),C=O(e,u,t,o,E,w,B,C)):e.token!==1077936157&&(s|=e.assignable&2?16:32));else A&2097152?(C=e.token===2162700?_(e,u,n,0,t,o,l,f,E,w,B):W(e,u,n,0,t,o,l,f,E,w,B),s|=e.destructible,e.assignable=e.destructible&16?2:1,e.token===18||e.token===20?e.assignable&2&&(s|=16):e.destructible&8?d(e,69):(C=N(e,u,C,t,0,E,w,B),s=e.assignable&2?16:0,e.token!==18&&e.token!==20?C=O(e,u,t,o,E,w,B,C):e.token!==1077936157&&(s|=e.assignable&2?16:32))):A===14?(C=A2(e,u,n,20,l,f,0,t,o,E,w,B),s|=e.destructible,e.token!==18&&e.token!==20&&d(e,28,U[e.token&255])):(C=r(e,u,1,0,1,E,w,B),e.token!==18&&e.token!==20?(C=O(e,u,t,o,E,w,B,C),!(l&3)&&A===67174411&&(s|=16)):e.assignable&2?s|=16:A===67174411&&(s|=e.assignable&1&&l&3?32:16));if(m.push(C),q(e,u|32768,18)){if(e.token===20)break}else break}P(e,u,20);let k=y(e,u,c,a,g,{type:o?"ArrayPattern":"ArrayExpression",elements:m});return!i&&e.token&4194304?iu(e,u,s,t,o,c,a,g,k):(e.destructible=s,k)}function iu(e,u,n,i,t,o,l,f,c){e.token!==1077936157&&d(e,24),b(e,u|32768),n&16&&d(e,24),t||Z(e,c);let{tokenPos:a,linePos:g,colPos:m}=e,s=R(e,u,1,1,i,a,g,m);return e.destructible=(n|64|8)^72|(e.destructible&128?128:0)|(e.destructible&256?256:0),y(e,u,o,l,f,t?{type:"AssignmentPattern",left:c,right:s}:{type:"AssignmentExpression",left:c,operator:"=",right:s})}function A2(e,u,n,i,t,o,l,f,c,a,g,m){b(e,u|32768);let s=null,k=0,{token:C,tokenValue:A,tokenPos:E,linePos:w,colPos:B}=e;if(C&143360)e.assignable=1,s=K(e,u,t,0,1,0,f,1,E,w,B),C=e.token,s=N(e,u,s,f,0,E,w,B),e.token!==18&&e.token!==i&&(e.assignable&2&&e.token===1077936157&&d(e,69),k|=16,s=O(e,u,f,c,E,w,B,s)),e.assignable&2?k|=16:C===i||C===18?n&&e2(e,u,n,A,t,o):k|=32,k|=e.destructible&128?128:0;else if(C===i)d(e,39);else if(C&2097152)s=e.token===2162700?_(e,u,n,1,f,c,t,o,E,w,B):W(e,u,n,1,f,c,t,o,E,w,B),C=e.token,C!==1077936157&&C!==i&&C!==18?(e.destructible&8&&d(e,69),s=N(e,u,s,f,0,E,w,B),k|=e.assignable&2?16:0,(e.token&4194304)===4194304?(e.token!==1077936157&&(k|=16),s=O(e,u,f,c,E,w,B,s)):((e.token&8454144)===8454144&&(s=n2(e,u,1,E,w,B,4,C,s)),q(e,u|32768,22)&&(s=f2(e,u,s,E,w,B)),k|=e.assignable&2?16:32)):k|=i===1074790415&&C!==1077936157?16:e.destructible;else{k|=32,s=r(e,u,1,f,1,e.tokenPos,e.linePos,e.colPos);let{token:M,tokenPos:S,linePos:V,colPos:D}=e;return M===1077936157&&M!==i&&M!==18?(e.assignable&2&&d(e,24),s=O(e,u,f,c,S,V,D,s),k|=16):(M===18?k|=16:M!==i&&(s=O(e,u,f,c,S,V,D,s)),k|=e.assignable&1?32:16),e.destructible=k,e.token!==i&&e.token!==18&&d(e,156),y(e,u,a,g,m,{type:c?"RestElement":"SpreadElement",argument:s})}if(e.token!==i)if(t&1&&(k|=l?16:32),q(e,u|32768,1077936157)){k&16&&d(e,24),Z(e,s);let M=R(e,u,1,1,f,e.tokenPos,e.linePos,e.colPos);s=y(e,u,E,w,B,c?{type:"AssignmentPattern",left:s,right:M}:{type:"AssignmentExpression",left:s,operator:"=",right:M}),k=16}else k|=16;return e.destructible=k,y(e,u,a,g,m,{type:c?"RestElement":"SpreadElement",argument:s})}function Q(e,u,n,i,t,o,l){let f=n&64?14680064:31981568;u=(u|f)^f|(n&88)<<18|100925440;let c=u&64?J(s2(),512):void 0,a=_1(e,u|8388608,c,n,1,i);c&&(c=J(c,128));let g=K2(e,u&-134230017,c,0,void 0,void 0);return y(e,u,t,o,l,{type:"FunctionExpression",params:a,body:g,async:(n&16)>0,generator:(n&8)>0,id:null})}function W1(e,u,n,i,t,o,l){let f=_(e,u,void 0,n,i,0,2,0,t,o,l);return u&256&&e.destructible&64&&d(e,61),e.destructible&8&&d(e,60),f}function _(e,u,n,i,t,o,l,f,c,a,g){b(e,u);let m=[],s=0,k=0;for(u=(u|134217728)^134217728;e.token!==1074790415;){let{token:A,tokenValue:E,linePos:w,colPos:B,tokenPos:M}=e;if(A===14)m.push(A2(e,u,n,1074790415,l,f,0,t,o,M,w,B));else{let S=0,V=null,D,Y=e.token;if(e.token&143360||e.token===121)if(V=I(e,u,0),e.token===18||e.token===1074790415||e.token===1077936157)if(S|=4,u&1024&&(A&537079808)===537079808?s|=16:M2(e,u,l,A,0),n&&e2(e,u,n,E,l,f),q(e,u|32768,1077936157)){s|=8;let v=R(e,u,1,1,t,e.tokenPos,e.linePos,e.colPos);s|=e.destructible&256?256:0|e.destructible&128?128:0,D=y(e,u,M,w,B,{type:"AssignmentPattern",left:u&-2147483648?Object.assign({},V):V,right:v})}else s|=(A===209008?128:0)|(A===121?16:0),D=u&-2147483648?Object.assign({},V):V;else if(q(e,u|32768,21)){let{tokenPos:v,linePos:F,colPos:T}=e;if(E==="__proto__"&&k++,e.token&143360){let o2=e.token,m2=e.tokenValue;s|=Y===121?16:0,D=K(e,u,l,0,1,0,t,1,v,F,T);let{token:x}=e;D=N(e,u,D,t,0,v,F,T),e.token===18||e.token===1074790415?x===1077936157||x===1074790415||x===18?(s|=e.destructible&128?128:0,e.assignable&2?s|=16:n&&(o2&143360)===143360&&e2(e,u,n,m2,l,f)):s|=e.assignable&1?32:16:(e.token&4194304)===4194304?(e.assignable&2?s|=16:x!==1077936157?s|=32:n&&e2(e,u,n,m2,l,f),D=O(e,u,t,o,v,F,T,D)):(s|=16,(e.token&8454144)===8454144&&(D=n2(e,u,1,v,F,T,4,x,D)),q(e,u|32768,22)&&(D=f2(e,u,D,v,F,T)))}else(e.token&2097152)===2097152?(D=e.token===69271571?W(e,u,n,0,t,o,l,f,v,F,T):_(e,u,n,0,t,o,l,f,v,F,T),s=e.destructible,e.assignable=s&16?2:1,e.token===18||e.token===1074790415?e.assignable&2&&(s|=16):e.destructible&8?d(e,69):(D=N(e,u,D,t,0,v,F,T),s=e.assignable&2?16:0,(e.token&4194304)===4194304?D=N2(e,u,t,o,v,F,T,D):((e.token&8454144)===8454144&&(D=n2(e,u,1,v,F,T,4,A,D)),q(e,u|32768,22)&&(D=f2(e,u,D,v,F,T)),s|=e.assignable&2?16:32))):(D=r(e,u,1,t,1,v,F,T),s|=e.assignable&1?32:16,e.token===18||e.token===1074790415?e.assignable&2&&(s|=16):(D=N(e,u,D,t,0,v,F,T),s=e.assignable&2?16:0,e.token!==18&&A!==1074790415&&(e.token!==1077936157&&(s|=16),D=O(e,u,t,o,v,F,T,D))))}else e.token===69271571?(s|=16,A===209007&&(S|=16),S|=(A===12402?256:A===12403?512:1)|2,V=g2(e,u,t),s|=e.assignable,D=Q(e,u,S,t,e.tokenPos,e.linePos,e.colPos)):e.token&143360?(s|=16,A===121&&d(e,93),A===209007&&(e.flags&1&&d(e,129),S|=16),V=I(e,u,0),S|=A===12402?256:A===12403?512:1,D=Q(e,u,S,t,e.tokenPos,e.linePos,e.colPos)):e.token===67174411?(s|=16,S|=1,D=Q(e,u,S,t,e.tokenPos,e.linePos,e.colPos)):e.token===8457014?(s|=16,A===12402?d(e,40):A===12403?d(e,41):A===143483&&d(e,93),b(e,u),S|=9|(A===209007?16:0),e.token&143360?V=I(e,u,0):(e.token&134217728)===134217728?V=X(e,u):e.token===69271571?(S|=2,V=g2(e,u,t),s|=e.assignable):d(e,28,U[e.token&255]),D=Q(e,u,S,t,e.tokenPos,e.linePos,e.colPos)):(e.token&134217728)===134217728?(A===209007&&(S|=16),S|=A===12402?256:A===12403?512:1,s|=16,V=X(e,u),D=Q(e,u,S,t,e.tokenPos,e.linePos,e.colPos)):d(e,130);else if((e.token&134217728)===134217728)if(V=X(e,u),e.token===21){P(e,u|32768,21);let{tokenPos:v,linePos:F,colPos:T}=e;if(E==="__proto__"&&k++,e.token&143360){D=K(e,u,l,0,1,0,t,1,v,F,T);let{token:o2,tokenValue:m2}=e;D=N(e,u,D,t,0,v,F,T),e.token===18||e.token===1074790415?o2===1077936157||o2===1074790415||o2===18?e.assignable&2?s|=16:n&&e2(e,u,n,m2,l,f):s|=e.assignable&1?32:16:e.token===1077936157?(e.assignable&2&&(s|=16),D=O(e,u,t,o,v,F,T,D)):(s|=16,D=O(e,u,t,o,v,F,T,D))}else(e.token&2097152)===2097152?(D=e.token===69271571?W(e,u,n,0,t,o,l,f,v,F,T):_(e,u,n,0,t,o,l,f,v,F,T),s=e.destructible,e.assignable=s&16?2:1,e.token===18||e.token===1074790415?e.assignable&2&&(s|=16):(e.destructible&8)!==8&&(D=N(e,u,D,t,0,v,F,T),s=e.assignable&2?16:0,(e.token&4194304)===4194304?D=N2(e,u,t,o,v,F,T,D):((e.token&8454144)===8454144&&(D=n2(e,u,1,v,F,T,4,A,D)),q(e,u|32768,22)&&(D=f2(e,u,D,v,F,T)),s|=e.assignable&2?16:32))):(D=r(e,u,1,0,1,v,F,T),s|=e.assignable&1?32:16,e.token===18||e.token===1074790415?e.assignable&2&&(s|=16):(D=N(e,u,D,t,0,v,F,T),s=e.assignable&1?0:16,e.token!==18&&e.token!==1074790415&&(e.token!==1077936157&&(s|=16),D=O(e,u,t,o,v,F,T,D))))}else e.token===67174411?(S|=1,D=Q(e,u,S,t,e.tokenPos,e.linePos,e.colPos),s=e.assignable|16):d(e,131);else if(e.token===69271571)if(V=g2(e,u,t),s|=e.destructible&256?256:0,S|=2,e.token===21){b(e,u|32768);let{tokenPos:v,linePos:F,colPos:T,tokenValue:o2,token:m2}=e;if(e.token&143360){D=K(e,u,l,0,1,0,t,1,v,F,T);let{token:x}=e;D=N(e,u,D,t,0,v,F,T),(e.token&4194304)===4194304?(s|=e.assignable&2?16:x===1077936157?0:32,D=N2(e,u,t,o,v,F,T,D)):e.token===18||e.token===1074790415?x===1077936157||x===1074790415||x===18?e.assignable&2?s|=16:n&&(m2&143360)===143360&&e2(e,u,n,o2,l,f):s|=e.assignable&1?32:16:(s|=16,D=O(e,u,t,o,v,F,T,D))}else(e.token&2097152)===2097152?(D=e.token===69271571?W(e,u,n,0,t,o,l,f,v,F,T):_(e,u,n,0,t,o,l,f,v,F,T),s=e.destructible,e.assignable=s&16?2:1,e.token===18||e.token===1074790415?e.assignable&2&&(s|=16):s&8?d(e,60):(D=N(e,u,D,t,0,v,F,T),s=e.assignable&2?s|16:0,(e.token&4194304)===4194304?(e.token!==1077936157&&(s|=16),D=N2(e,u,t,o,v,F,T,D)):((e.token&8454144)===8454144&&(D=n2(e,u,1,v,F,T,4,A,D)),q(e,u|32768,22)&&(D=f2(e,u,D,v,F,T)),s|=e.assignable&2?16:32))):(D=r(e,u,1,0,1,v,F,T),s|=e.assignable&1?32:16,e.token===18||e.token===1074790415?e.assignable&2&&(s|=16):(D=N(e,u,D,t,0,v,F,T),s=e.assignable&1?0:16,e.token!==18&&e.token!==1074790415&&(e.token!==1077936157&&(s|=16),D=O(e,u,t,o,v,F,T,D))))}else e.token===67174411?(S|=1,D=Q(e,u,S,t,e.tokenPos,w,B),s=16):d(e,42);else if(A===8457014)if(P(e,u|32768,8457014),S|=8,e.token&143360){let{token:v,line:F,index:T}=e;V=I(e,u,0),S|=1,e.token===67174411?(s|=16,D=Q(e,u,S,t,e.tokenPos,e.linePos,e.colPos)):h2(T,F,T,v===209007?44:v===12402||e.token===12403?43:45,U[v&255])}else(e.token&134217728)===134217728?(s|=16,V=X(e,u),S|=1,D=Q(e,u,S,t,M,w,B)):e.token===69271571?(s|=16,S|=3,V=g2(e,u,t),D=Q(e,u,S,t,e.tokenPos,e.linePos,e.colPos)):d(e,123);else d(e,28,U[A&255]);s|=e.destructible&128?128:0,e.destructible=s,m.push(y(e,u,M,w,B,{type:"Property",key:V,value:D,kind:S&768?S&512?"set":"get":"init",computed:(S&2)>0,method:(S&1)>0,shorthand:(S&4)>0}))}if(s|=e.destructible,e.token!==18)break;b(e,u)}P(e,u,1074790415),k>1&&(s|=64);let C=y(e,u,c,a,g,{type:o?"ObjectPattern":"ObjectExpression",properties:m});return!i&&e.token&4194304?iu(e,u,s,t,o,c,a,g,C):(e.destructible=s,C)}function _1(e,u,n,i,t,o){P(e,u,67174411);let l=[];if(e.flags=(e.flags|128)^128,e.token===16)return i&512&&d(e,35,"Setter","one",""),b(e,u),l;i&256&&d(e,35,"Getter","no","s"),i&512&&e.token===14&&d(e,36),u=(u|134217728)^134217728;let f=0,c=0;for(;e.token!==18;){let a=null,{tokenPos:g,linePos:m,colPos:s}=e;if(e.token&143360?(u&1024||((e.token&36864)===36864&&(e.flags|=256),(e.token&537079808)===537079808&&(e.flags|=512)),a=he(e,u,n,i|1,0,g,m,s)):(e.token===2162700?a=_(e,u,n,1,o,1,t,0,g,m,s):e.token===69271571?a=W(e,u,n,1,o,1,t,0,g,m,s):e.token===14&&(a=A2(e,u,n,16,t,0,0,o,1,g,m,s)),c=1,e.destructible&48&&d(e,48)),e.token===1077936157){b(e,u|32768),c=1;let k=R(e,u,1,1,0,e.tokenPos,e.linePos,e.colPos);a=y(e,u,g,m,s,{type:"AssignmentPattern",left:a,right:k})}if(f++,l.push(a),!q(e,u,18)||e.token===16)break}return i&512&&f!==1&&d(e,35,"Setter","one",""),n&&n.scopeError!==void 0&&z2(n.scopeError),c&&(e.flags|=128),P(e,u,16),l}function g2(e,u,n){b(e,u|32768);let i=R(e,(u|134217728)^134217728,1,0,n,e.tokenPos,e.linePos,e.colPos);return P(e,u,20),i}function Y1(e,u,n,i,t,o,l,f){e.flags=(e.flags|128)^128;let{tokenPos:c,linePos:a,colPos:g}=e;b(e,u|32768|1073741824);let m=u&64?J(s2(),1024):void 0;if(u=(u|134217728)^134217728,q(e,u,16))return j2(e,u,m,[],n,0,o,l,f);let s=0;e.destructible&=-385;let k,C=[],A=0,E=0,{tokenPos:w,linePos:B,colPos:M}=e;for(e.assignable=1;e.token!==16;){let{token:S,tokenPos:V,linePos:D,colPos:Y}=e;if(S&143360)m&&t2(e,u,m,e.tokenValue,1,0),k=K(e,u,i,0,1,0,1,1,V,D,Y),e.token===16||e.token===18?e.assignable&2?(s|=16,E=1):((S&537079808)===537079808||(S&36864)===36864)&&(E=1):(e.token===1077936157?E=1:s|=16,k=N(e,u,k,1,0,V,D,Y),e.token!==16&&e.token!==18&&(k=O(e,u,1,0,V,D,Y,k)));else if((S&2097152)===2097152)k=S===2162700?_(e,u|1073741824,m,0,1,0,i,t,V,D,Y):W(e,u|1073741824,m,0,1,0,i,t,V,D,Y),s|=e.destructible,E=1,e.assignable=2,e.token!==16&&e.token!==18&&(s&8&&d(e,119),k=N(e,u,k,0,0,V,D,Y),s|=16,e.token!==16&&e.token!==18&&(k=O(e,u,0,0,V,D,Y,k)));else if(S===14){k=A2(e,u,m,16,i,t,0,1,0,V,D,Y),e.destructible&16&&d(e,72),E=1,A&&(e.token===16||e.token===18)&&C.push(k),s|=8;break}else{if(s|=16,k=R(e,u,1,0,1,V,D,Y),A&&(e.token===16||e.token===18)&&C.push(k),e.token===18&&(A||(A=1,C=[k])),A){for(;q(e,u|32768,18);)C.push(R(e,u,1,0,1,e.tokenPos,e.linePos,e.colPos));e.assignable=2,k=y(e,u,w,B,M,{type:"SequenceExpression",expressions:C})}return P(e,u,16),e.destructible=s,k}if(A&&(e.token===16||e.token===18)&&C.push(k),!q(e,u|32768,18))break;if(A||(A=1,C=[k]),e.token===16){s|=8;break}}return A&&(e.assignable=2,k=y(e,u,w,B,M,{type:"SequenceExpression",expressions:C})),P(e,u,16),s&16&&s&8&&d(e,146),s|=e.destructible&256?256:0|e.destructible&128?128:0,e.token===10?(s&48&&d(e,47),u&4196352&&s&128&&d(e,29),u&2098176&&s&256&&d(e,30),E&&(e.flags|=128),j2(e,u,m,A?C:[k],n,0,o,l,f)):(s&8&&d(e,140),e.destructible=(e.destructible|256)^256|s,u&128?y(e,u,c,a,g,{type:"ParenthesizedExpression",expression:k}):k)}function ye(e,u,n,i,t){let{tokenValue:o}=e,l=I(e,u,0);if(e.assignable=1,e.token===10){let f;return u&64&&(f=H2(e,u,o)),e.flags=(e.flags|128)^128,B2(e,u,f,[l],0,n,i,t)}return l}function $2(e,u,n,i,t,o,l,f,c,a){o||d(e,55),t&&d(e,49),e.flags&=-129;let g=u&64?H2(e,u,n):void 0;return B2(e,u,g,[i],l,f,c,a)}function j2(e,u,n,i,t,o,l,f,c){t||d(e,55);for(let a=0;a0&&e.tokenValue==="constructor"&&d(e,107),e.token===1074790415&&d(e,106),q(e,u,1074790417)){k>0&&d(e,117);continue}m.push(fu(e,u,i,n,t,s,0,l,e.tokenPos,e.linePos,e.colPos))}return P(e,o&8?u|32768:u,1074790415),e.flags=e.flags&-33|g,y(e,u,f,c,a,{type:"ClassBody",body:m})}function fu(e,u,n,i,t,o,l,f,c,a,g){let m=l?32:0,s=null,{token:k,tokenPos:C,linePos:A,colPos:E}=e;if(k&176128)switch(s=I(e,u,0),k){case 36972:if(!l&&e.token!==67174411&&(e.token&1048576)!==1048576&&e.token!==1077936157)return fu(e,u,n,i,t,o,1,f,c,a,g);break;case 209007:if(e.token!==67174411&&!(e.flags&1)){if(u&1&&(e.token&1073741824)===1073741824)return V2(e,u,s,m,o,C,A,E);m|=16|(le(e,u,8457014)?8:0)}break;case 12402:if(e.token!==67174411){if(u&1&&(e.token&1073741824)===1073741824)return V2(e,u,s,m,o,C,A,E);m|=256}break;case 12403:if(e.token!==67174411){if(u&1&&(e.token&1073741824)===1073741824)return V2(e,u,s,m,o,C,A,E);m|=512}break}else if(k===69271571)m|=2,s=g2(e,i,f);else if((k&134217728)===134217728)s=X(e,u);else if(k===8457014)m|=8,b(e,u);else if(u&1&&e.token===131)m|=4096,s=X2(e,u|16384,C,A,E);else if(u&1&&(e.token&1073741824)===1073741824)m|=128;else{if(l&&k===2162700)return B1(e,u,n,C,A,E);k===122?(s=I(e,u,0),e.token!==67174411&&d(e,28,U[e.token&255])):d(e,28,U[e.token&255])}if(m&792&&(e.token&143360?s=I(e,u,0):(e.token&134217728)===134217728?s=X(e,u):e.token===69271571?(m|=2,s=g2(e,u,0)):e.token===122?s=I(e,u,0):u&1&&e.token===131?(m|=4096,s=X2(e,u,C,A,E)):d(e,132)),m&2||(e.tokenValue==="constructor"?((e.token&1073741824)===1073741824?d(e,126):!(m&32)&&e.token===67174411&&(m&920?d(e,51,"accessor"):u&524288||(e.flags&32?d(e,52):e.flags|=32)),m|=64):!(m&4096)&&m&824&&e.tokenValue==="prototype"&&d(e,50)),u&1&&e.token!==67174411)return V2(e,u,s,m,o,C,A,E);let w=Q(e,u,m,f,e.tokenPos,e.linePos,e.colPos);return y(e,u,c,a,g,u&1?{type:"MethodDefinition",kind:!(m&32)&&m&64?"constructor":m&256?"get":m&512?"set":"method",static:(m&32)>0,computed:(m&2)>0,key:s,decorators:o,value:w}:{type:"MethodDefinition",kind:!(m&32)&&m&64?"constructor":m&256?"get":m&512?"set":"method",static:(m&32)>0,computed:(m&2)>0,key:s,value:w})}function X2(e,u,n,i,t){b(e,u);let{tokenValue:o}=e;return o==="constructor"&&d(e,125),b(e,u),y(e,u,n,i,t,{type:"PrivateIdentifier",name:o})}function V2(e,u,n,i,t,o,l,f){let c=null;if(i&8&&d(e,0),e.token===1077936157){b(e,u|32768);let{tokenPos:a,linePos:g,colPos:m}=e;e.token===537079928&&d(e,116),c=K(e,u|16384,2,0,1,0,0,1,a,g,m),(e.token&1073741824)!==1073741824&&(c=N(e,u|16384,c,0,0,a,g,m),c=O(e,u|16384,0,0,a,g,m,c),e.token===18&&(c=u2(e,u,0,o,l,f,c)))}return y(e,u,o,l,f,{type:"PropertyDefinition",key:n,value:c,static:(i&32)>0,computed:(i&2)>0,decorators:t})}function cu(e,u,n,i,t,o,l,f){if(e.token&143360)return he(e,u,n,i,t,o,l,f);(e.token&2097152)!==2097152&&d(e,28,U[e.token&255]);let c=e.token===69271571?W(e,u,n,1,0,1,i,t,o,l,f):_(e,u,n,1,0,1,i,t,o,l,f);return e.destructible&16&&d(e,48),e.destructible&32&&d(e,48),c}function he(e,u,n,i,t,o,l,f){let{tokenValue:c,token:a}=e;return u&1024&&((a&537079808)===537079808?d(e,116):(a&36864)===36864&&d(e,115)),(a&20480)===20480&&d(e,100),u&2099200&&a===241773&&d(e,30),a===241739&&i&24&&d(e,98),u&4196352&&a===209008&&d(e,96),b(e,u),n&&e2(e,u,n,c,i,t),y(e,u,o,l,f,{type:"Identifier",name:c})}function De(e,u,n,i,t,o){if(b(e,u),e.token===8456259)return y(e,u,i,t,o,{type:"JSXFragment",openingFragment:e0(e,u,i,t,o),children:Ne(e,u),closingFragment:n0(e,u,n,e.tokenPos,e.linePos,e.colPos)});let l=null,f=[],c=o0(e,u,n,i,t,o);if(!c.selfClosing){f=Ne(e,u),l=u0(e,u,n,e.tokenPos,e.linePos,e.colPos);let a=J2(l.name);J2(c.name)!==a&&d(e,150,a)}return y(e,u,i,t,o,{type:"JSXElement",children:f,openingElement:c,closingElement:l})}function e0(e,u,n,i,t){return d2(e,u),y(e,u,n,i,t,{type:"JSXOpeningFragment"})}function u0(e,u,n,i,t,o){P(e,u,25);let l=du(e,u,e.tokenPos,e.linePos,e.colPos);return n?P(e,u,8456259):e.token=d2(e,u),y(e,u,i,t,o,{type:"JSXClosingElement",name:l})}function n0(e,u,n,i,t,o){return P(e,u,25),P(e,u,8456259),y(e,u,i,t,o,{type:"JSXClosingFragment"})}function Ne(e,u){let n=[];for(;e.token!==25;)e.index=e.tokenPos=e.startPos,e.column=e.colPos=e.startColumn,e.line=e.linePos=e.startLine,d2(e,u),n.push(i0(e,u,e.tokenPos,e.linePos,e.colPos));return n}function i0(e,u,n,i,t){if(e.token===138)return t0(e,u,n,i,t);if(e.token===2162700)return au(e,u,0,0,n,i,t);if(e.token===8456258)return De(e,u,0,n,i,t);d(e,0)}function t0(e,u,n,i,t){d2(e,u);let o={type:"JSXText",value:e.tokenValue};return u&512&&(o.raw=e.tokenRaw),y(e,u,n,i,t,o)}function o0(e,u,n,i,t,o){(e.token&143360)!==143360&&(e.token&4096)!==4096&&d(e,0);let l=du(e,u,e.tokenPos,e.linePos,e.colPos),f=f0(e,u),c=e.token===8457016;return e.token===8456259?d2(e,u):(P(e,u,8457016),n?P(e,u,8456259):d2(e,u)),y(e,u,i,t,o,{type:"JSXOpeningElement",name:l,attributes:f,selfClosing:c})}function du(e,u,n,i,t){p2(e);let o=W2(e,u,n,i,t);if(e.token===21)return su(e,u,o,n,i,t);for(;q(e,u,67108877);)p2(e),o=l0(e,u,o,n,i,t);return o}function l0(e,u,n,i,t,o){let l=W2(e,u,e.tokenPos,e.linePos,e.colPos);return y(e,u,i,t,o,{type:"JSXMemberExpression",object:n,property:l})}function f0(e,u){let n=[];for(;e.token!==8457016&&e.token!==8456259&&e.token!==1048576;)n.push(d0(e,u,e.tokenPos,e.linePos,e.colPos));return n}function c0(e,u,n,i,t){b(e,u),P(e,u,14);let o=R(e,u,1,0,0,e.tokenPos,e.linePos,e.colPos);return P(e,u,1074790415),y(e,u,n,i,t,{type:"JSXSpreadAttribute",argument:o})}function d0(e,u,n,i,t){if(e.token===2162700)return c0(e,u,n,i,t);p2(e);let o=null,l=W2(e,u,n,i,t);if(e.token===21&&(l=su(e,u,l,n,i,t)),e.token===1077936157){let f=u1(e,u),{tokenPos:c,linePos:a,colPos:g}=e;switch(f){case 134283267:o=X(e,u);break;case 8456258:o=De(e,u,1,c,a,g);break;case 2162700:o=au(e,u,1,1,c,a,g);break;default:d(e,149)}}return y(e,u,n,i,t,{type:"JSXAttribute",value:o,name:l})}function su(e,u,n,i,t,o){P(e,u,21);let l=W2(e,u,e.tokenPos,e.linePos,e.colPos);return y(e,u,i,t,o,{type:"JSXNamespacedName",namespace:n,name:l})}function au(e,u,n,i,t,o,l){b(e,u|32768);let{tokenPos:f,linePos:c,colPos:a}=e;if(e.token===14)return s0(e,u,t,o,l);let g=null;return e.token===1074790415?(i&&d(e,152),g=a0(e,u,e.startPos,e.startLine,e.startColumn)):g=R(e,u,1,0,0,f,c,a),n?P(e,u,1074790415):d2(e,u),y(e,u,t,o,l,{type:"JSXExpressionContainer",expression:g})}function s0(e,u,n,i,t){P(e,u,14);let o=R(e,u,1,0,0,e.tokenPos,e.linePos,e.colPos);return P(e,u,1074790415),y(e,u,n,i,t,{type:"JSXSpreadChild",expression:o})}function a0(e,u,n,i,t){return e.startPos=e.tokenPos,e.startLine=e.linePos,e.startColumn=e.colPos,y(e,u,n,i,t,{type:"JSXEmptyExpression"})}function W2(e,u,n,i,t){let{tokenValue:o}=e;return b(e,u),y(e,u,n,i,t,{type:"JSXIdentifier",name:o})}function mu(e,u){return d1(e,u,0)}function m0(e,u){let n=new SyntaxError(e+" ("+u.loc.start.line+":"+u.loc.start.column+")");return Object.assign(n,u)}var _2=m0;function g0(e){let u=[];for(let n of e)try{return n()}catch(i){u.push(i)}throw Object.assign(new Error("All combinations failed"),{errors:u})}var gu=g0;var C2=ju(Cu(),1);function w0(e){if(!e.startsWith("#!"))return"";let u=e.indexOf(` -`);return u===-1?e:e.slice(0,u)}var Pu=w0;function S0(e){let u=Pu(e);u&&(e=e.slice(u.length+1));let n=(0,C2.extract)(e),{pragmas:i,comments:t}=(0,C2.parseWithComments)(n);return{shebang:u,text:e,pragmas:i,comments:t}}function Eu(e){let{pragmas:u}=S0(e);return Object.prototype.hasOwnProperty.call(u,"prettier")||Object.prototype.hasOwnProperty.call(u,"format")}function v0(e){return Array.isArray(e)&&e.length>0}var T2=v0;function $(e){var i;let u=e.range?e.range[0]:e.start,n=((i=e.declaration)==null?void 0:i.decorators)??e.decorators;return T2(n)?Math.min($(n[0]),u):u}function p(e){return e.range?e.range[1]:e.end}function B0(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:Eu,locStart:$,locEnd:p,...e}}var wu=B0;var T0=(e,u,n)=>{if(!(e&&u==null))return Array.isArray(u)||typeof u=="string"?u[n<0?u.length+n:n]:u.at(n)},be=T0;function F0(e){return e=new Set(e),u=>e.has(u==null?void 0:u.type)}var Su=F0;var q0=Su(["Block","CommentBlock","MultiLine"]),F2=q0;function L0(e){return F2(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/.test(e.value)}var vu=L0;function I0(e){let u=`*${e.value}*`.split(` -`);return u.length>1&&u.every(n=>n.trimStart()[0]==="*")}var Ae=I0;var q2=null;function L2(e){if(q2!==null&&typeof q2.property){let u=q2;return q2=L2.prototype=null,u}return q2=L2.prototype=e??Object.create(null),new L2}var N0=10;for(let e=0;e<=N0;e++)L2();function Ce(e){return L2(e)}function V0(e,u="type"){Ce(e);function n(i){let t=i[u],o=e[t];if(!Array.isArray(o))throw Object.assign(new Error(`Missing visitor keys for '${t}'.`),{node:i});return o}return n}var Bu=V0;var Tu={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ExportAllDeclaration:["source","attributes","assertions","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes","assertions"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes","assertions"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","parameter"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ImportExpression:["source","attributes"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareEnum:["id","body"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]};var R0=Bu(Tu),Fu=R0;function Pe(e,u){if(!(e!==null&&typeof e=="object"))return e;if(Array.isArray(e)){for(let i=0;i{var f;(f=l.leadingComments)!=null&&f.some(vu)&&o.add($(l))}),e=Y2(e,l=>{if(l.type==="ParenthesizedExpression"){let{expression:f}=l;if(f.type==="TypeCastExpression")return f.range=l.range,f;let c=$(l);if(!o.has(c))return f.extra={...f.extra,parenthesized:!0},f}})}if(e=Y2(e,o=>{switch(o.type){case"LogicalExpression":if(qu(o))return Ee(o);break;case"VariableDeclaration":{let l=be(!1,o.declarations,-1);l!=null&&l.init&&t(o,l);break}case"TSParenthesizedType":return o.typeAnnotation;case"TSTypeParameter":if(typeof o.name=="string"){let l=$(o);o.name={type:"Identifier",name:o.name,range:[l,l+o.name.length]}}break;case"ObjectExpression":if(n==="typescript"){let l=o.properties.find(f=>f.type==="Property"&&f.value.type==="TSEmptyBodyFunctionExpression");l&&Q2(l.value,"Unexpected token.")}break;case"TSInterfaceDeclaration":T2(o.implements)&&Q2(o.implements[0],"Interface declaration cannot have 'implements' clause.");break;case"TSPropertySignature":o.initializer&&Q2(o.initializer,"An interface property cannot have an initializer.");break;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":{let{exported:l}=o;if(n==="meriyah"&&(l==null?void 0:l.type)==="Identifier"){let f=i.slice($(l),p(l));(f.startsWith('"')||f.startsWith("'"))&&(o.exported={...o.exported,type:"Literal",value:o.exported.name,raw:f})}break}case"TSUnionType":case"TSIntersectionType":if(o.types.length===1)return o.types[0];break}}),T2(e.comments)){let o=be(!1,e.comments,-1);for(let l=e.comments.length-2;l>=0;l--){let f=e.comments[l];p(f)===$(o)&&F2(f)&&F2(o)&&Ae(f)&&Ae(o)&&(e.comments.splice(l+1,1),f.value+="*//*"+o.value,f.range=[$(f),p(o)]),o=f}}return e.type==="Program"&&(e.range=[0,i.length]),e;function t(o,l){i[p(l)]!==";"&&(o.range=[$(o),p(l)])}}function qu(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function Ee(e){return qu(e)?Ee({type:"LogicalExpression",operator:e.operator,left:Ee({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[$(e.left),p(e.right.left)]}),right:e.right.right,range:[$(e),p(e)]}):e}var Lu=U0;function M0(e){let{filepath:u}=e;if(u){if(u=u.toLowerCase(),u.endsWith(".cjs"))return"script";if(u.endsWith(".mjs"))return"module"}}var Iu=M0;var J0={next:!0,ranges:!0,webcompat:!0,loc:!0,raw:!0,directives:!0,globalReturn:!0,impliedStrict:!1,preserveParens:!1,lexical:!1,identifierPattern:!1,jsx:!0,specDeviation:!0,uniqueKeyInPattern:!1};function j0(e,u){let n=[],i=[],t=mu(e,{...J0,module:u==="module",onComment:n,onToken:i});return t.comments=n,t.tokens=i,t}function X0(e){var o;let{message:u,line:n,column:i}=e,t=(o=u.match(/^\[(?\d+):(?\d+)]: (?.*)$/))==null?void 0:o.groups;return t&&(u=t.message,typeof n!="number"&&(n=Number(t.line),i=Number(t.column))),typeof n!="number"?e:_2(u,{loc:{start:{line:n,column:i}},cause:e})}function z0(e,u={}){let n=Iu(u),i=(n?[n]:["module","script"]).map(o=>()=>j0(e,o)),t;try{t=gu(i)}catch({errors:[o]}){throw X0(o)}return Lu(t,{parser:"meriyah",text:e})}var H0=wu(z0);var $n=we;export{$n as default,Z2 as parsers}; +var Ie=Object.create;var Q2=Object.defineProperty;var Ne=Object.getOwnPropertyDescriptor;var Ve=Object.getOwnPropertyNames;var Re=Object.getPrototypeOf,Oe=Object.prototype.hasOwnProperty;var Ue=(u,e)=>()=>(e||u((e={exports:{}}).exports,e),e.exports),Eu=(u,e)=>{for(var n in e)Q2(u,n,{get:e[n],enumerable:!0})},Me=(u,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of Ve(e))!Oe.call(u,t)&&t!==n&&Q2(u,t,{get:()=>e[t],enumerable:!(i=Ne(e,t))||i.enumerable});return u};var Je=(u,e,n)=>(n=u!=null?Ie(Re(u)):{},Me(e||!u||!u.__esModule?Q2(n,"default",{value:u,enumerable:!0}):n,u));var be=Ue(a2=>{"use strict";Object.defineProperty(a2,"__esModule",{value:!0});a2.extract=A0;a2.parse=C0;a2.parseWithComments=Ae;a2.print=P0;a2.strip=b0;var g0=/\*\/$/,y0=/^\/\*\*?/,he=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,k0=/(^|\s+)\/\/([^\r\n]*)/g,ge=/^(\r?\n)+/,h0=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,ye=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,D0=/(\r?\n|^) *\* ?/g,De=[];function A0(u){let e=u.match(he);return e?e[0].trimLeft():""}function b0(u){let e=u.match(he);return e&&e[0]?u.substring(e[0].length):u}function C0(u){return Ae(u).pragmas}function Ae(u){let e=` +`;u=u.replace(y0,"").replace(g0,"").replace(D0,"$1");let n="";for(;n!==u;)n=u,u=u.replace(h0,`${e}$1 $2${e}`);u=u.replace(ge,"").trimRight();let i=Object.create(null),t=u.replace(ye,"").replace(ge,"").trimRight(),o;for(;o=ye.exec(u);){let l=o[2].replace(k0,"");typeof i[o[1]]=="string"||Array.isArray(i[o[1]])?i[o[1]]=De.concat(i[o[1]],l):i[o[1]]=l}return{comments:t,pragmas:i}}function P0({comments:u="",pragmas:e={}}){let n=` +`,i="/**",t=" *",o=" */",l=Object.keys(e),f=l.map(a=>ke(a,e[a])).reduce((a,g)=>a.concat(g),[]).map(a=>`${t} ${a}${n}`).join("");if(!u){if(l.length===0)return"";if(l.length===1&&!Array.isArray(e[l[0]])){let a=e[l[0]];return`${i} ${ke(l[0],a)[0]}${o}`}}let c=u.split(n).map(a=>`${t} ${a}`).join(n)+n;return i+n+(u?c:"")+(u&&l.length?t+n:"")+f+o}function ke(u,e){return De.concat(e).map(n=>`@${u} ${n}`.trim())}});var Pu={};Eu(Pu,{parsers:()=>Cu});var Cu={};Eu(Cu,{meriyah:()=>X0});var je={0:"Unexpected token",28:"Unexpected token: '%0'",1:"Octal escape sequences are not allowed in strict mode",2:"Octal escape sequences are not allowed in template strings",3:"Unexpected token `#`",4:"Illegal Unicode escape sequence",5:"Invalid code point %0",6:"Invalid hexadecimal escape sequence",8:"Octal literals are not allowed in strict mode",7:"Decimal integer literals with a leading zero are forbidden in strict mode",9:"Expected number in radix %0",146:"Invalid left-hand side assignment to a destructible right-hand side",10:"Non-number found after exponent indicator",11:"Invalid BigIntLiteral",12:"No identifiers allowed directly after numeric literal",13:"Escapes \\8 or \\9 are not syntactically valid escapes",14:"Unterminated string literal",15:"Unterminated template literal",16:"Multiline comment was not closed properly",17:"The identifier contained dynamic unicode escape that was not closed",18:"Illegal character '%0'",19:"Missing hexadecimal digits",20:"Invalid implicit octal",21:"Invalid line break in string literal",22:"Only unicode escapes are legal in identifier names",23:"Expected '%0'",24:"Invalid left-hand side in assignment",25:"Invalid left-hand side in async arrow",26:'Calls to super must be in the "constructor" method of a class expression or class declaration that has a superclass',27:"Member access on super must be in a method",29:"Await expression not allowed in formal parameter",30:"Yield expression not allowed in formal parameter",93:"Unexpected token: 'escaped keyword'",31:"Unary expressions as the left operand of an exponentiation expression must be disambiguated with parentheses",120:"Async functions can only be declared at the top level or inside a block",32:"Unterminated regular expression",33:"Unexpected regular expression flag",34:"Duplicate regular expression flag '%0'",35:"%0 functions must have exactly %1 argument%2",36:"Setter function argument must not be a rest parameter",37:"%0 declaration must have a name in this context",38:"Function name may not contain any reserved words or be eval or arguments in strict mode",39:"The rest operator is missing an argument",40:"A getter cannot be a generator",41:"A setter cannot be a generator",42:"A computed property name must be followed by a colon or paren",131:"Object literal keys that are strings or numbers must be a method or have a colon",44:"Found `* async x(){}` but this should be `async * x(){}`",43:"Getters and setters can not be generators",45:"'%0' can not be generator method",46:"No line break is allowed after '=>'",47:"The left-hand side of the arrow can only be destructed through assignment",48:"The binding declaration is not destructible",49:"Async arrow can not be followed by new expression",50:"Classes may not have a static property named 'prototype'",51:"Class constructor may not be a %0",52:"Duplicate constructor method in class",53:"Invalid increment/decrement operand",54:"Invalid use of `new` keyword on an increment/decrement expression",55:"`=>` is an invalid assignment target",56:"Rest element may not have a trailing comma",57:"Missing initializer in %0 declaration",58:"'for-%0' loop head declarations can not have an initializer",59:"Invalid left-hand side in for-%0 loop: Must have a single binding",60:"Invalid shorthand property initializer",61:"Property name __proto__ appears more than once in object literal",62:"Let is disallowed as a lexically bound name",63:"Invalid use of '%0' inside new expression",64:"Illegal 'use strict' directive in function with non-simple parameter list",65:'Identifier "let" disallowed as left-hand side expression in strict mode',66:"Illegal continue statement",67:"Illegal break statement",68:"Cannot have `let[...]` as a var name in strict mode",69:"Invalid destructuring assignment target",70:"Rest parameter may not have a default initializer",71:"The rest argument must the be last parameter",72:"Invalid rest argument",74:"In strict mode code, functions can only be declared at top level or inside a block",75:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement",76:"Without web compatibility enabled functions can not be declared at top level, inside a block, or as the body of an if statement",77:"Class declaration can't appear in single-statement context",78:"Invalid left-hand side in for-%0",79:"Invalid assignment in for-%0",80:"for await (... of ...) is only valid in async functions and async generators",81:"The first token after the template expression should be a continuation of the template",83:"`let` declaration not allowed here and `let` cannot be a regular var name in strict mode",82:"`let \n [` is a restricted production at the start of a statement",84:"Catch clause requires exactly one parameter, not more (and no trailing comma)",85:"Catch clause parameter does not support default values",86:"Missing catch or finally after try",87:"More than one default clause in switch statement",88:"Illegal newline after throw",89:"Strict mode code may not include a with statement",90:"Illegal return statement",91:"The left hand side of the for-header binding declaration is not destructible",92:"new.target only allowed within functions",94:"'#' not followed by identifier",100:"Invalid keyword",99:"Can not use 'let' as a class name",98:"'A lexical declaration can't define a 'let' binding",97:"Can not use `let` as variable name in strict mode",95:"'%0' may not be used as an identifier in this context",96:"Await is only valid in async functions",101:"The %0 keyword can only be used with the module goal",102:"Unicode codepoint must not be greater than 0x10FFFF",103:"%0 source must be string",104:"Only a identifier can be used to indicate alias",105:"Only '*' or '{...}' can be imported after default",106:"Trailing decorator may be followed by method",107:"Decorators can't be used with a constructor",109:"HTML comments are only allowed with web compatibility (Annex B)",110:"The identifier 'let' must not be in expression position in strict mode",111:"Cannot assign to `eval` and `arguments` in strict mode",112:"The left-hand side of a for-of loop may not start with 'let'",113:"Block body arrows can not be immediately invoked without a group",114:"Block body arrows can not be immediately accessed without a group",115:"Unexpected strict mode reserved word",116:"Unexpected eval or arguments in strict mode",117:"Decorators must not be followed by a semicolon",118:"Calling delete on expression not allowed in strict mode",119:"Pattern can not have a tail",121:"Can not have a `yield` expression on the left side of a ternary",122:"An arrow function can not have a postfix update operator",123:"Invalid object literal key character after generator star",124:"Private fields can not be deleted",126:"Classes may not have a field called constructor",125:"Classes may not have a private element named constructor",127:"A class field initializer may not contain arguments",128:"Generators can only be declared at the top level or inside a block",129:"Async methods are a restricted production and cannot have a newline following it",130:"Unexpected character after object literal property name",132:"Invalid key token",133:"Label '%0' has already been declared",134:"continue statement must be nested within an iteration statement",135:"Undefined label '%0'",136:"Trailing comma is disallowed inside import(...) arguments",137:"import() requires exactly one argument",138:"Cannot use new with import(...)",139:"... is not allowed in import()",140:"Expected '=>'",141:"Duplicate binding '%0'",142:"Cannot export a duplicate name '%0'",145:"Duplicate %0 for-binding",143:"Exported binding '%0' needs to refer to a top-level declared variable",144:"Unexpected private field",148:"Numeric separators are not allowed at the end of numeric literals",147:"Only one underscore is allowed as numeric separator",149:"JSX value should be either an expression or a quoted JSX text",150:"Expected corresponding JSX closing tag for %0",151:"Adjacent JSX elements must be wrapped in an enclosing tag",152:"JSX attributes must only be assigned a non-empty 'expression'",153:"'%0' has already been declared",154:"'%0' shadowed a catch clause binding",155:"Dot property must be an identifier",156:"Encountered invalid input after spread/rest argument",157:"Catch without try",158:"Finally without try",159:"Expected corresponding closing tag for JSX fragment",160:"Coalescing and logical operators used together in the same expression must be disambiguated with parentheses",161:"Invalid tagged template on optional chain",162:"Invalid optional chain from super property",163:"Invalid optional chain from new expression",164:'Cannot use "import.meta" outside a module',165:"Leading decorators must be attached to a class declaration"},k2=class extends SyntaxError{constructor(e,n,i,t,...o){let l="["+n+":"+i+"]: "+je[t].replace(/%(\d+)/g,(f,c)=>o[c]);super(`${l}`),this.index=e,this.line=n,this.column=i,this.description=l,this.loc={line:n,column:i}}};function d(u,e,...n){throw new k2(u.index,u.line,u.column,e,...n)}function X2(u){throw new k2(u.index,u.line,u.column,u.type,u.params)}function h2(u,e,n,i,...t){throw new k2(u,e,n,i,...t)}function D2(u,e,n,i){throw new k2(u,e,n,i)}var E2=((u,e)=>{let n=new Uint32Array(104448),i=0,t=0;for(;i<3540;){let o=u[i++];if(o<0)t-=o;else{let l=u[i++];o&2&&(l=e[l]),o&1?n.fill(l,t,t+=u[i++]):n[t++]=l}}return n})([-1,2,24,2,25,2,5,-1,0,77595648,3,44,2,3,0,14,2,57,2,58,3,0,3,0,3168796671,0,4294956992,2,1,2,0,2,59,3,0,4,0,4294966523,3,0,4,2,16,2,60,2,0,0,4294836735,0,3221225471,0,4294901942,2,61,0,134152192,3,0,2,0,4294951935,3,0,2,0,2683305983,0,2684354047,2,17,2,0,0,4294961151,3,0,2,2,19,2,0,0,608174079,2,0,2,131,2,6,2,56,-1,2,37,0,4294443263,2,1,3,0,3,0,4294901711,2,39,0,4089839103,0,2961209759,0,1342439375,0,4294543342,0,3547201023,0,1577204103,0,4194240,0,4294688750,2,2,0,80831,0,4261478351,0,4294549486,2,2,0,2967484831,0,196559,0,3594373100,0,3288319768,0,8469959,2,194,2,3,0,3825204735,0,123747807,0,65487,0,4294828015,0,4092591615,0,1080049119,0,458703,2,3,2,0,0,2163244511,0,4227923919,0,4236247022,2,66,0,4284449919,0,851904,2,4,2,11,0,67076095,-1,2,67,0,1073741743,0,4093591391,-1,0,50331649,0,3265266687,2,32,0,4294844415,0,4278190047,2,18,2,129,-1,3,0,2,2,21,2,0,2,9,2,0,2,14,2,15,3,0,10,2,69,2,0,2,70,2,71,2,72,2,0,2,73,2,0,2,10,0,261632,2,23,3,0,2,2,12,2,4,3,0,18,2,74,2,5,3,0,2,2,75,0,2088959,2,27,2,8,0,909311,3,0,2,0,814743551,2,41,0,67057664,3,0,2,2,40,2,0,2,28,2,0,2,29,2,7,0,268374015,2,26,2,49,2,0,2,76,0,134153215,-1,2,6,2,0,2,7,0,2684354559,0,67044351,0,3221160064,0,1,-1,3,0,2,2,42,0,1046528,3,0,3,2,8,2,0,2,51,0,4294960127,2,9,2,38,2,10,0,4294377472,2,11,3,0,7,0,4227858431,3,0,8,2,12,2,0,2,78,2,9,2,0,2,79,2,80,2,81,-1,2,124,0,1048577,2,82,2,13,-1,2,13,0,131042,2,83,2,84,2,85,2,0,2,33,-83,2,0,2,53,2,7,3,0,4,0,1046559,2,0,2,14,2,0,0,2147516671,2,20,3,86,2,2,0,-16,2,87,0,524222462,2,4,2,0,0,4269801471,2,4,2,0,2,15,2,77,2,16,3,0,2,2,47,2,0,-1,2,17,-16,3,0,206,-2,3,0,655,2,18,3,0,36,2,68,-1,2,17,2,9,3,0,8,2,89,2,121,2,0,0,3220242431,3,0,3,2,19,2,90,2,91,3,0,2,2,92,2,0,2,93,2,94,2,0,0,4351,2,0,2,8,3,0,2,0,67043391,0,3909091327,2,0,2,22,2,8,2,18,3,0,2,0,67076097,2,7,2,0,2,20,0,67059711,0,4236247039,3,0,2,0,939524103,0,8191999,2,97,2,98,2,15,2,21,3,0,3,0,67057663,3,0,349,2,99,2,100,2,6,-264,3,0,11,2,22,3,0,2,2,31,-1,0,3774349439,2,101,2,102,3,0,2,2,19,2,103,3,0,10,2,9,2,17,2,0,2,45,2,0,2,30,2,104,2,23,0,1638399,2,172,2,105,3,0,3,2,18,2,24,2,25,2,5,2,26,2,0,2,7,2,106,-1,2,107,2,108,2,109,-1,3,0,3,2,11,-2,2,0,2,27,-3,2,150,-4,2,18,2,0,2,35,0,1,2,0,2,62,2,28,2,11,2,9,2,0,2,110,-1,3,0,4,2,9,2,21,2,111,2,6,2,0,2,112,2,0,2,48,-4,3,0,9,2,20,2,29,2,30,-4,2,113,2,114,2,29,2,20,2,7,-2,2,115,2,29,2,31,-2,2,0,2,116,-2,0,4277137519,0,2269118463,-1,3,18,2,-1,2,32,2,36,2,0,3,29,2,2,34,2,19,-3,3,0,2,2,33,-1,2,0,2,34,2,0,2,34,2,0,2,46,-10,2,0,0,203775,-2,2,18,2,43,2,35,-2,2,17,2,117,2,20,3,0,2,2,36,0,2147549120,2,0,2,11,2,17,2,135,2,0,2,37,2,52,0,5242879,3,0,2,0,402644511,-1,2,120,0,1090519039,-2,2,122,2,38,2,0,0,67045375,2,39,0,4226678271,0,3766565279,0,2039759,-4,3,0,2,0,3288270847,0,3,3,0,2,0,67043519,-5,2,0,0,4282384383,0,1056964609,-1,3,0,2,0,67043345,-1,2,0,2,40,2,41,-1,2,10,2,42,-6,2,0,2,11,-3,3,0,2,0,2147484671,2,125,0,4190109695,2,50,-2,2,126,0,4244635647,0,27,2,0,2,7,2,43,2,0,2,63,-1,2,0,2,40,-8,2,54,2,44,0,67043329,2,127,2,45,0,8388351,-2,2,128,0,3028287487,2,46,2,130,0,33259519,2,41,-9,2,20,-5,2,64,-2,3,0,28,2,31,-3,3,0,3,2,47,3,0,6,2,48,-85,3,0,33,2,47,-126,3,0,18,2,36,-269,3,0,17,2,40,2,7,2,41,-2,2,17,2,49,2,0,2,20,2,50,2,132,2,23,-21,3,0,2,-4,3,0,2,0,4294936575,2,0,0,4294934783,-2,0,196635,3,0,191,2,51,3,0,38,2,29,-1,2,33,-279,3,0,8,2,7,-1,2,133,2,52,3,0,11,2,6,-72,3,0,3,2,134,0,1677656575,-166,0,4161266656,0,4071,0,15360,-4,0,28,-13,3,0,2,2,37,2,0,2,136,2,137,2,55,2,0,2,138,2,139,2,140,3,0,10,2,141,2,142,2,15,3,37,2,3,53,2,3,54,2,0,4294954999,2,0,-16,2,0,2,88,2,0,0,2105343,0,4160749584,0,65534,-42,0,4194303871,0,2011,-6,2,0,0,1073684479,0,17407,-11,2,0,2,31,-40,3,0,6,0,8323103,-1,3,0,2,2,42,-37,2,55,2,144,2,145,2,146,2,147,2,148,-105,2,24,-32,3,0,1334,2,9,-1,3,0,129,2,27,3,0,6,2,9,3,0,180,2,149,3,0,233,0,1,-96,3,0,16,2,9,-47,3,0,154,2,56,-22381,3,0,7,2,23,-6130,3,5,2,-1,0,69207040,3,44,2,3,0,14,2,57,2,58,-3,0,3168731136,0,4294956864,2,1,2,0,2,59,3,0,4,0,4294966275,3,0,4,2,16,2,60,2,0,2,33,-1,2,17,2,61,-1,2,0,2,56,0,4294885376,3,0,2,0,3145727,0,2617294944,0,4294770688,2,23,2,62,3,0,2,0,131135,2,95,0,70256639,0,71303167,0,272,2,40,2,56,-1,2,37,2,30,-1,2,96,2,63,0,4278255616,0,4294836227,0,4294549473,0,600178175,0,2952806400,0,268632067,0,4294543328,0,57540095,0,1577058304,0,1835008,0,4294688736,2,65,2,64,0,33554435,2,123,2,65,2,151,0,131075,0,3594373096,0,67094296,2,64,-1,0,4294828e3,0,603979263,2,160,0,3,0,4294828001,0,602930687,2,183,0,393219,0,4294828016,0,671088639,0,2154840064,0,4227858435,0,4236247008,2,66,2,36,-1,2,4,0,917503,2,36,-1,2,67,0,537788335,0,4026531935,-1,0,1,-1,2,32,2,68,0,7936,-3,2,0,0,2147485695,0,1010761728,0,4292984930,0,16387,2,0,2,14,2,15,3,0,10,2,69,2,0,2,70,2,71,2,72,2,0,2,73,2,0,2,11,-1,2,23,3,0,2,2,12,2,4,3,0,18,2,74,2,5,3,0,2,2,75,0,253951,3,19,2,0,122879,2,0,2,8,0,276824064,-2,3,0,2,2,40,2,0,0,4294903295,2,0,2,29,2,7,-1,2,17,2,49,2,0,2,76,2,41,-1,2,20,2,0,2,27,-2,0,128,-2,2,77,2,8,0,4064,-1,2,119,0,4227907585,2,0,2,118,2,0,2,48,2,173,2,9,2,38,2,10,-1,0,74440192,3,0,6,-2,3,0,8,2,12,2,0,2,78,2,9,2,0,2,79,2,80,2,81,-3,2,82,2,13,-3,2,83,2,84,2,85,2,0,2,33,-83,2,0,2,53,2,7,3,0,4,0,817183,2,0,2,14,2,0,0,33023,2,20,3,86,2,-17,2,87,0,524157950,2,4,2,0,2,88,2,4,2,0,2,15,2,77,2,16,3,0,2,2,47,2,0,-1,2,17,-16,3,0,206,-2,3,0,655,2,18,3,0,36,2,68,-1,2,17,2,9,3,0,8,2,89,0,3072,2,0,0,2147516415,2,9,3,0,2,2,23,2,90,2,91,3,0,2,2,92,2,0,2,93,2,94,0,4294965179,0,7,2,0,2,8,2,91,2,8,-1,0,1761345536,2,95,0,4294901823,2,36,2,18,2,96,2,34,2,166,0,2080440287,2,0,2,33,2,143,0,3296722943,2,0,0,1046675455,0,939524101,0,1837055,2,97,2,98,2,15,2,21,3,0,3,0,7,3,0,349,2,99,2,100,2,6,-264,3,0,11,2,22,3,0,2,2,31,-1,0,2700607615,2,101,2,102,3,0,2,2,19,2,103,3,0,10,2,9,2,17,2,0,2,45,2,0,2,30,2,104,-3,2,105,3,0,3,2,18,-1,3,5,2,2,26,2,0,2,7,2,106,-1,2,107,2,108,2,109,-1,3,0,3,2,11,-2,2,0,2,27,-8,2,18,2,0,2,35,-1,2,0,2,62,2,28,2,29,2,9,2,0,2,110,-1,3,0,4,2,9,2,17,2,111,2,6,2,0,2,112,2,0,2,48,-4,3,0,9,2,20,2,29,2,30,-4,2,113,2,114,2,29,2,20,2,7,-2,2,115,2,29,2,31,-2,2,0,2,116,-2,0,4277075969,2,29,-1,3,18,2,-1,2,32,2,117,2,0,3,29,2,2,34,2,19,-3,3,0,2,2,33,-1,2,0,2,34,2,0,2,34,2,0,2,48,-10,2,0,0,197631,-2,2,18,2,43,2,118,-2,2,17,2,117,2,20,2,119,2,51,-2,2,119,2,23,2,17,2,33,2,119,2,36,0,4294901904,0,4718591,2,119,2,34,0,335544350,-1,2,120,2,121,-2,2,122,2,38,2,7,-1,2,123,2,65,0,3758161920,0,3,-4,2,0,2,27,0,2147485568,0,3,2,0,2,23,0,176,-5,2,0,2,47,2,186,-1,2,0,2,23,2,197,-1,2,0,0,16779263,-2,2,11,-7,2,0,2,121,-3,3,0,2,2,124,2,125,0,2147549183,0,2,-2,2,126,2,35,0,10,0,4294965249,0,67633151,0,4026597376,2,0,0,536871935,-1,2,0,2,40,-8,2,54,2,47,0,1,2,127,2,23,-3,2,128,2,35,2,129,2,130,0,16778239,-10,2,34,-5,2,64,-2,3,0,28,2,31,-3,3,0,3,2,47,3,0,6,2,48,-85,3,0,33,2,47,-126,3,0,18,2,36,-269,3,0,17,2,40,2,7,-3,2,17,2,131,2,0,2,23,2,48,2,132,2,23,-21,3,0,2,-4,3,0,2,0,67583,-1,2,103,-2,0,11,3,0,191,2,51,3,0,38,2,29,-1,2,33,-279,3,0,8,2,7,-1,2,133,2,52,3,0,11,2,6,-72,3,0,3,2,134,2,135,-187,3,0,2,2,37,2,0,2,136,2,137,2,55,2,0,2,138,2,139,2,140,3,0,10,2,141,2,142,2,15,3,37,2,3,53,2,3,54,2,2,143,-73,2,0,0,1065361407,0,16384,-11,2,0,2,121,-40,3,0,6,2,117,-1,3,0,2,0,2063,-37,2,55,2,144,2,145,2,146,2,147,2,148,-138,3,0,1334,2,9,-1,3,0,129,2,27,3,0,6,2,9,3,0,180,2,149,3,0,233,0,1,-96,3,0,16,2,9,-47,3,0,154,2,56,-28517,2,0,0,1,-1,2,124,2,0,0,8193,-21,2,193,0,10255,0,4,-11,2,64,2,171,-1,0,71680,-1,2,161,0,4292900864,0,805306431,-5,2,150,-1,2,157,-1,0,6144,-2,2,127,-1,2,154,-1,0,2147532800,2,151,2,165,2,0,2,164,0,524032,0,4,-4,2,190,0,205128192,0,1333757536,0,2147483696,0,423953,0,747766272,0,2717763192,0,4286578751,0,278545,2,152,0,4294886464,0,33292336,0,417809,2,152,0,1327482464,0,4278190128,0,700594195,0,1006647527,0,4286497336,0,4160749631,2,153,0,469762560,0,4171219488,0,8323120,2,153,0,202375680,0,3214918176,0,4294508592,2,153,-1,0,983584,0,48,0,58720273,0,3489923072,0,10517376,0,4293066815,0,1,0,2013265920,2,177,2,0,0,2089,0,3221225552,0,201375904,2,0,-2,0,256,0,122880,0,16777216,2,150,0,4160757760,2,0,-6,2,167,-11,0,3263218176,-1,0,49664,0,2160197632,0,8388802,-1,0,12713984,-1,2,154,2,159,2,178,-2,2,162,-20,0,3758096385,-2,2,155,0,4292878336,2,90,2,169,0,4294057984,-2,2,163,2,156,2,175,-2,2,155,-1,2,182,-1,2,170,2,124,0,4026593280,0,14,0,4292919296,-1,2,158,0,939588608,-1,0,805306368,-1,2,124,0,1610612736,2,156,2,157,2,4,2,0,-2,2,158,2,159,-3,0,267386880,-1,2,160,0,7168,-1,0,65024,2,154,2,161,2,179,-7,2,168,-8,2,162,-1,0,1426112704,2,163,-1,2,164,0,271581216,0,2149777408,2,23,2,161,2,124,0,851967,2,180,-1,2,23,2,181,-4,2,158,-20,2,195,2,165,-56,0,3145728,2,185,-4,2,166,2,124,-4,0,32505856,-1,2,167,-1,0,2147385088,2,90,1,2155905152,2,-3,2,103,2,0,2,168,-2,2,169,-6,2,170,0,4026597375,0,1,-1,0,1,-1,2,171,-3,2,117,2,64,-2,2,166,-2,2,176,2,124,-878,2,159,-36,2,172,-1,2,201,-10,2,188,-5,2,174,-6,0,4294965251,2,27,-1,2,173,-1,2,174,-2,0,4227874752,-3,0,2146435072,2,159,-2,0,1006649344,2,124,-1,2,90,0,201375744,-3,0,134217720,2,90,0,4286677377,0,32896,-1,2,158,-3,2,175,-349,2,176,0,1920,2,177,3,0,264,-11,2,157,-2,2,178,2,0,0,520617856,0,2692743168,0,36,-3,0,524284,-11,2,23,-1,2,187,-1,2,184,0,3221291007,2,178,-1,2,202,0,2158720,-3,2,159,0,1,-4,2,124,0,3808625411,0,3489628288,2,200,0,1207959680,0,3221274624,2,0,-3,2,179,0,120,0,7340032,-2,2,180,2,4,2,23,2,163,3,0,4,2,159,-1,2,181,2,177,-1,0,8176,2,182,2,179,2,183,-1,0,4290773232,2,0,-4,2,163,2,189,0,15728640,2,177,-1,2,161,-1,0,4294934512,3,0,4,-9,2,90,2,170,2,184,3,0,4,0,704,0,1849688064,2,185,-1,2,124,0,4294901887,2,0,0,130547712,0,1879048192,2,199,3,0,2,-1,2,186,2,187,-1,0,17829776,0,2025848832,0,4261477888,-2,2,0,-1,0,4286580608,-1,0,29360128,2,192,0,16252928,0,3791388672,2,38,3,0,2,-2,2,196,2,0,-1,2,103,-1,0,66584576,-1,2,191,3,0,9,2,124,-1,0,4294755328,3,0,2,-1,2,161,2,178,3,0,2,2,23,2,188,2,90,-2,0,245760,0,2147418112,-1,2,150,2,203,0,4227923456,-1,2,164,2,161,2,90,-3,0,4292870145,0,262144,2,124,3,0,2,0,1073758848,2,189,-1,0,4227921920,2,190,0,68289024,0,528402016,0,4292927536,3,0,4,-2,0,268435456,2,91,-2,2,191,3,0,5,-1,2,192,2,163,2,0,-2,0,4227923936,2,62,-1,2,155,2,95,2,0,2,154,2,158,3,0,6,-1,2,177,3,0,3,-2,0,2146959360,0,9440640,0,104857600,0,4227923840,3,0,2,0,768,2,193,2,77,-2,2,161,-2,2,119,-1,2,155,3,0,8,0,512,0,8388608,2,194,2,172,2,187,0,4286578944,3,0,2,0,1152,0,1266679808,2,191,0,576,0,4261707776,2,95,3,0,9,2,155,3,0,5,2,16,-1,0,2147221504,-28,2,178,3,0,3,-3,0,4292902912,-6,2,96,3,0,85,-33,0,4294934528,3,0,126,-18,2,195,3,0,269,-17,2,155,2,124,2,198,3,0,2,2,23,0,4290822144,-2,0,67174336,0,520093700,2,17,3,0,21,-2,2,179,3,0,3,-2,0,30720,-1,0,32512,3,0,2,0,4294770656,-191,2,174,-38,2,170,2,0,2,196,3,0,279,-8,2,124,2,0,0,4294508543,0,65295,-11,2,177,3,0,72,-3,0,3758159872,0,201391616,3,0,155,-7,2,170,-1,0,384,-1,0,133693440,-3,2,196,-2,2,26,3,0,4,2,169,-2,2,90,2,155,3,0,4,-2,2,164,-1,2,150,0,335552923,2,197,-1,0,538974272,0,2214592512,0,132e3,-10,0,192,-8,0,12288,-21,0,134213632,0,4294901761,3,0,42,0,100663424,0,4294965284,3,0,6,-1,0,3221282816,2,198,3,0,11,-1,2,199,3,0,40,-6,0,4286578784,2,0,-2,0,1006694400,3,0,24,2,35,-1,2,94,3,0,2,0,1,2,163,3,0,6,2,197,0,4110942569,0,1432950139,0,2701658217,0,4026532864,0,4026532881,2,0,2,45,3,0,8,-1,2,158,-2,2,169,0,98304,0,65537,2,170,-5,0,4294950912,2,0,2,118,0,65528,2,177,0,4294770176,2,26,3,0,4,-30,2,174,0,3758153728,-3,2,169,-2,2,155,2,188,2,158,-1,2,191,-1,2,161,0,4294754304,3,0,2,-3,0,33554432,-2,2,200,-3,2,169,0,4175478784,2,201,0,4286643712,0,4286644216,2,0,-4,2,202,-1,2,165,0,4227923967,3,0,32,-1334,2,163,2,0,-129,2,94,-6,2,163,-180,2,203,-233,2,4,3,0,96,-16,2,163,3,0,47,-154,2,165,3,0,22381,-7,2,17,3,0,6128],[4294967295,4294967291,4092460543,4294828031,4294967294,134217726,268435455,2147483647,1048575,1073741823,3892314111,134217727,1061158911,536805376,4294910143,4160749567,4294901759,4294901760,536870911,262143,8388607,4294902783,4294918143,65535,67043328,2281701374,4294967232,2097151,4294903807,4194303,255,67108863,4294967039,511,524287,131071,127,4292870143,4294902271,4294549487,33554431,1023,67047423,4294901888,4286578687,4294770687,67043583,32767,15,2047999,67043343,16777215,4294902e3,4294934527,4294966783,4294967279,2047,262083,20511,4290772991,41943039,493567,4294959104,603979775,65536,602799615,805044223,4294965206,8191,1031749119,4294917631,2134769663,4286578493,4282253311,4294942719,33540095,4294905855,4294967264,2868854591,1608515583,265232348,534519807,2147614720,1060109444,4093640016,17376,2139062143,224,4169138175,4294909951,4286578688,4294967292,4294965759,2044,4292870144,4294966272,4294967280,8289918,4294934399,4294901775,4294965375,1602223615,4294967259,4294443008,268369920,4292804608,486341884,4294963199,3087007615,1073692671,4128527,4279238655,4294902015,4294966591,2445279231,3670015,3238002687,31,63,4294967288,4294705151,4095,3221208447,4294549472,2147483648,4285526655,4294966527,4294705152,4294966143,64,4294966719,16383,3774873592,458752,536807423,67043839,3758096383,3959414372,3755993023,2080374783,4294835295,4294967103,4160749565,4087,184024726,2862017156,1593309078,268434431,268434414,4294901763,536870912,2952790016,202506752,139264,402653184,4261412864,4227922944,49152,61440,3758096384,117440512,65280,3233808384,3221225472,2097152,4294965248,32768,57152,67108864,4293918720,4290772992,25165824,57344,4227915776,4278190080,4227907584,65520,4026531840,4227858432,4160749568,3758129152,4294836224,63488,1073741824,4294967040,4194304,251658240,196608,4294963200,64512,417808,4227923712,12582912,50331648,65472,4294967168,4294966784,16,4294917120,2080374784,4096,65408,524288,65532]);function h(u){return u.column++,u.currentChar=u.source.charCodeAt(++u.index)}function Xe(u,e){if((e&64512)!==55296)return 0;let n=u.source.charCodeAt(u.index+1);return(n&64512)!==56320?0:(e=u.currentChar=65536+((e&1023)<<10)+(n&1023),E2[(e>>>5)+0]>>>e&31&1||d(u,18,G(e)),u.index++,u.column++,1)}function uu(u,e){u.currentChar=u.source.charCodeAt(++u.index),u.flags|=1,e&4||(u.column=0,u.line++)}function c2(u){u.flags|=1,u.currentChar=u.source.charCodeAt(++u.index),u.column=0,u.line++}function ze(u){return u===160||u===65279||u===133||u===5760||u>=8192&&u<=8203||u===8239||u===8287||u===12288||u===8201||u===65519}function G(u){return u<=65535?String.fromCharCode(u):String.fromCharCode(u>>>10)+String.fromCharCode(u&1023)}function H(u){return u<65?u-48:u-65+10&15}function He(u){switch(u){case 134283266:return"NumericLiteral";case 134283267:return"StringLiteral";case 86021:case 86022:return"BooleanLiteral";case 86023:return"NullLiteral";case 65540:return"RegularExpression";case 67174408:case 67174409:case 132:return"TemplateLiteral";default:return(u&143360)===143360?"Identifier":(u&4096)===4096?"Keyword":"Punctuator"}}var L=[0,0,0,0,0,0,0,0,0,0,1032,0,0,2056,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8192,0,3,0,0,8192,0,0,0,256,0,33024,0,0,242,242,114,114,114,114,114,114,594,594,0,0,16384,0,0,0,0,67,67,67,67,67,67,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,0,1,0,0,4099,0,71,71,71,71,71,71,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,16384,0,0,0,0],Ke=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Iu=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0];function Z2(u){return u<=127?Ke[u]:E2[(u>>>5)+34816]>>>u&31&1}function O2(u){return u<=127?Iu[u]:E2[(u>>>5)+0]>>>u&31&1||u===8204||u===8205}var Nu=["SingleLine","MultiLine","HTMLOpen","HTMLClose","HashbangComment"];function $e(u){let e=u.source;u.currentChar===35&&e.charCodeAt(u.index+1)===33&&(h(u),h(u),eu(u,e,0,4,u.tokenPos,u.linePos,u.colPos))}function wu(u,e,n,i,t,o,l,f){return i&2048&&d(u,0),eu(u,e,n,t,o,l,f)}function eu(u,e,n,i,t,o,l){let{index:f}=u;for(u.tokenPos=u.index,u.linePos=u.line,u.colPos=u.column;u.index=u.source.length)return d(u,32)}let t=u.index-1,o=0,l=u.currentChar,{index:f}=u;for(;O2(l);){switch(l){case 103:o&2&&d(u,34,"g"),o|=2;break;case 105:o&1&&d(u,34,"i"),o|=1;break;case 109:o&4&&d(u,34,"m"),o|=4;break;case 117:o&16&&d(u,34,"u"),o|=16;break;case 121:o&8&&d(u,34,"y"),o|=8;break;case 115:o&32&&d(u,34,"s"),o|=32;break;case 100:o&64&&d(u,34,"d"),o|=64;break;default:d(u,33)}l=h(u)}let c=u.source.slice(f,u.index),a=u.source.slice(n,t);return u.tokenRegExp={pattern:a,flags:c},e&512&&(u.tokenRaw=u.source.slice(u.tokenPos,u.index)),u.tokenValue=Ye(u,a,c),65540}function Ye(u,e,n){try{return new RegExp(e,n)}catch{try{return new RegExp(e,n.replace("d","")),null}catch{d(u,32)}}}function Qe(u,e,n){let{index:i}=u,t="",o=h(u),l=u.index;for(;!(L[o]&8);){if(o===n)return t+=u.source.slice(l,u.index),h(u),e&512&&(u.tokenRaw=u.source.slice(i,u.index)),u.tokenValue=t,134283267;if((o&8)===8&&o===92){if(t+=u.source.slice(l,u.index),o=h(u),o<127||o===8232||o===8233){let f=Vu(u,e,o);f>=0?t+=G(f):Ru(u,f,0)}else t+=G(o);l=u.index+1}u.index>=u.end&&d(u,14),o=h(u)}d(u,14)}function Vu(u,e,n){switch(n){case 98:return 8;case 102:return 12;case 114:return 13;case 110:return 10;case 116:return 9;case 118:return 11;case 13:if(u.index1114111)return-5;return u.currentChar<1||u.currentChar!==125?-4:t}else{if(!(L[i]&64))return-4;let t=u.source.charCodeAt(u.index+1);if(!(L[t]&64))return-4;let o=u.source.charCodeAt(u.index+2);if(!(L[o]&64))return-4;let l=u.source.charCodeAt(u.index+3);return L[l]&64?(u.index+=3,u.column+=3,u.currentChar=u.source.charCodeAt(u.index),H(i)<<12|H(t)<<8|H(o)<<4|H(l)):-4}}case 56:case 57:if(!(e&256))return-3;default:return n}}function Ru(u,e,n){switch(e){case-1:return;case-2:d(u,n?2:1);case-3:d(u,13);case-4:d(u,6);case-5:d(u,102)}}function Ou(u,e){let{index:n}=u,i=67174409,t="",o=h(u);for(;o!==96;){if(o===36&&u.source.charCodeAt(u.index+1)===123){h(u),i=67174408;break}else if((o&8)===8&&o===92)if(o=h(u),o>126)t+=G(o);else{let l=Vu(u,e|1024,o);if(l>=0)t+=G(l);else if(l!==-1&&e&65536){t=void 0,o=Ze(u,o),o<0&&(i=67174408);break}else Ru(u,l,1)}else u.index=u.end&&d(u,15),o=h(u)}return h(u),u.tokenValue=t,u.tokenRaw=u.source.slice(n+1,u.index-(i===67174409?1:2)),i}function Ze(u,e){for(;e!==96;){switch(e){case 36:{let n=u.index+1;if(n=u.end&&d(u,15),e=h(u)}return e}function re(u,e){return u.index>=u.end&&d(u,0),u.index--,u.column--,Ou(u,e)}function Su(u,e,n){let i=u.currentChar,t=0,o=9,l=n&64?0:1,f=0,c=0;if(n&64)t="."+L2(u,i),i=u.currentChar,i===110&&d(u,11);else{if(i===48)if(i=h(u),(i|32)===120){for(n=136,i=h(u);L[i]&4160;){if(i===95){c||d(u,147),c=0,i=h(u);continue}c=1,t=t*16+H(i),f++,i=h(u)}(f===0||!c)&&d(u,f===0?19:148)}else if((i|32)===111){for(n=132,i=h(u);L[i]&4128;){if(i===95){c||d(u,147),c=0,i=h(u);continue}c=1,t=t*8+(i-48),f++,i=h(u)}(f===0||!c)&&d(u,f===0?0:148)}else if((i|32)===98){for(n=130,i=h(u);L[i]&4224;){if(i===95){c||d(u,147),c=0,i=h(u);continue}c=1,t=t*2+(i-48),f++,i=h(u)}(f===0||!c)&&d(u,f===0?0:148)}else if(L[i]&32)for(e&1024&&d(u,1),n=1;L[i]&16;){if(L[i]&512){n=32,l=0;break}t=t*8+(i-48),i=h(u)}else L[i]&512?(e&1024&&d(u,1),u.flags|=64,n=32):i===95&&d(u,0);if(n&48){if(l){for(;o>=0&&L[i]&4112;){if(i===95){i=h(u),(i===95||n&32)&&D2(u.index,u.line,u.index+1,147),c=1;continue}c=0,t=10*t+(i-48),i=h(u),--o}if(c&&D2(u.index,u.line,u.index+1,148),o>=0&&!Z2(i)&&i!==46)return u.tokenValue=t,e&512&&(u.tokenRaw=u.source.slice(u.tokenPos,u.index)),134283266}t+=L2(u,i),i=u.currentChar,i===46&&(h(u)===95&&d(u,0),n=64,t+="."+L2(u,u.currentChar),i=u.currentChar)}}let a=u.index,g=0;if(i===110&&n&128)g=1,i=h(u);else if((i|32)===101){i=h(u),L[i]&256&&(i=h(u));let{index:m}=u;L[i]&16||d(u,10),t+=u.source.substring(a,m)+L2(u,i),i=u.currentChar}return(u.index","(","{",".","...","}",")",";",",","[","]",":","?","'",'"',"","++","--","=","<<=",">>=",">>>=","**=","+=","-=","*=","/=","%=","^=","|=","&=","||=","&&=","??=","typeof","delete","void","!","~","+","-","in","instanceof","*","%","/","**","&&","||","===","!==","==","!=","<=",">=","<",">","<<",">>",">>>","&","|","^","var","let","const","break","case","catch","class","continue","debugger","default","do","else","export","extends","finally","for","function","if","import","new","return","super","switch","this","throw","try","while","with","implements","interface","package","private","protected","public","static","yield","as","async","await","constructor","get","set","from","of","enum","eval","arguments","escaped keyword","escaped future reserved keyword","reserved if strict","#","BigIntLiteral","??","?.","WhiteSpace","Illegal","LineTerminator","PrivateField","Template","@","target","meta","LineFeed","Escaped","JSXText"],Uu=Object.create(null,{this:{value:86113},function:{value:86106},if:{value:20571},return:{value:20574},var:{value:86090},else:{value:20565},for:{value:20569},new:{value:86109},in:{value:8738868},typeof:{value:16863277},while:{value:20580},case:{value:20558},break:{value:20557},try:{value:20579},catch:{value:20559},delete:{value:16863278},throw:{value:86114},switch:{value:86112},continue:{value:20561},default:{value:20563},instanceof:{value:8476725},do:{value:20564},void:{value:16863279},finally:{value:20568},async:{value:209007},await:{value:209008},class:{value:86096},const:{value:86092},constructor:{value:12401},debugger:{value:20562},export:{value:20566},extends:{value:20567},false:{value:86021},from:{value:12404},get:{value:12402},implements:{value:36966},import:{value:86108},interface:{value:36967},let:{value:241739},null:{value:86023},of:{value:274549},package:{value:36968},private:{value:36969},protected:{value:36970},public:{value:36971},set:{value:12403},static:{value:36972},super:{value:86111},true:{value:86022},with:{value:20581},yield:{value:241773},enum:{value:86134},eval:{value:537079927},as:{value:77934},arguments:{value:537079928},target:{value:143494},meta:{value:143495}});function Bu(u,e,n){for(;Iu[h(u)];);return u.tokenValue=u.source.slice(u.tokenPos,u.index),u.currentChar!==92&&u.currentChar<=126?Uu[u.tokenValue]||208897:nu(u,e,0,n)}function Ge(u,e){let n=Mu(u);return O2(n)||d(u,4),u.tokenValue=G(n),nu(u,e,1,L[n]&4)}function nu(u,e,n,i){let t=u.index;for(;u.index=2&&o<=11){let l=Uu[u.tokenValue];return l===void 0?208897:n?l===209008?e&4196352?121:l:e&1024?l===36972||(l&36864)===36864?122:(l&20480)===20480?e&1073741824&&!(e&8192)?l:121:143483:e&1073741824&&!(e&8192)&&(l&20480)===20480?l:l===241773?e&1073741824?143483:e&2097152?121:l:l===209007?143483:(l&36864)===36864?l:121:l}return 208897}function xe(u){return Z2(h(u))||d(u,94),131}function Mu(u){return u.source.charCodeAt(u.index+1)!==117&&d(u,4),u.currentChar=u.source.charCodeAt(u.index+=2),pe(u)}function pe(u){let e=0,n=u.currentChar;if(n===123){let l=u.index-2;for(;L[h(u)]&64;)e=e<<4|H(u.currentChar),e>1114111&&D2(l,u.line,u.index+1,102);return u.currentChar!==125&&D2(l,u.line,u.index-1,6),h(u),e}L[n]&64||d(u,6);let i=u.source.charCodeAt(u.index+1);L[i]&64||d(u,6);let t=u.source.charCodeAt(u.index+2);L[t]&64||d(u,6);let o=u.source.charCodeAt(u.index+3);return L[o]&64||d(u,6),e=H(n)<<12|H(i)<<8|H(t)<<4|H(o),u.currentChar=u.source.charCodeAt(u.index+=4),e}var Ju=[129,129,129,129,129,129,129,129,129,128,136,128,128,130,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,128,16842800,134283267,131,208897,8457015,8455751,134283267,67174411,16,8457014,25233970,18,25233971,67108877,8457016,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,21,1074790417,8456258,1077936157,8456259,22,133,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,69271571,137,20,8455497,208897,132,4096,4096,4096,4096,4096,4096,4096,208897,4096,208897,208897,4096,208897,4096,208897,4096,208897,4096,4096,4096,208897,4096,4096,208897,4096,4096,2162700,8455240,1074790415,16842801,129];function A(u,e){if(u.flags=(u.flags|1)^1,u.startPos=u.index,u.startColumn=u.column,u.startLine=u.line,u.token=ju(u,e,0),u.onToken&&u.token!==1048576){let n={start:{line:u.linePos,column:u.colPos},end:{line:u.line,column:u.column}};u.onToken(He(u.token),u.tokenPos,u.index,n)}}function ju(u,e,n){let i=u.index===0,t=u.source,o=u.index,l=u.line,f=u.column;for(;u.index=u.end)return 8457014;let s=u.currentChar;return s===61?(h(u),4194340):s!==42?8457014:h(u)!==61?8457273:(h(u),4194337)}case 8455497:return h(u)!==61?8455497:(h(u),4194343);case 25233970:{h(u);let s=u.currentChar;return s===43?(h(u),33619995):s===61?(h(u),4194338):25233970}case 25233971:{h(u);let s=u.currentChar;if(s===45){if(h(u),(n&1||i)&&u.currentChar===62){e&256||d(u,109),h(u),n=wu(u,t,n,e,3,o,l,f),o=u.tokenPos,l=u.linePos,f=u.colPos;continue}return 33619996}return s===61?(h(u),4194339):25233971}case 8457016:{if(h(u),u.index=48&&m<=57)return Su(u,e,80);if(m===46){let s=u.index+1;if(s=48&&s<=57)))return h(u),67108991}return 22}}}else{if((c^8232)<=1){n=n&-5|1,c2(u);continue}if((c&64512)===55296||E2[(c>>>5)+34816]>>>c&31&1)return(c&64512)===56320&&(c=(c&1023)<<10|c&1023|65536,E2[(c>>>5)+0]>>>c&31&1||d(u,18,G(c)),u.index++,u.currentChar=c),u.column++,u.tokenValue="",nu(u,e,0,0);if(ze(c)){h(u);continue}d(u,18,G(c))}}return 1048576}function u1(u,e){return u.startPos=u.tokenPos=u.index,u.startColumn=u.colPos=u.column,u.startLine=u.linePos=u.line,u.token=L[u.currentChar]&8192?e1(u,e):ju(u,e,0),u.token}function e1(u,e){let n=u.currentChar,i=h(u),t=u.index;for(;i!==n;)u.index>=u.end&&d(u,14),i=h(u);return i!==n&&d(u,14),u.tokenValue=u.source.slice(t,u.index),h(u),e&512&&(u.tokenRaw=u.source.slice(u.tokenPos,u.index)),134283267}function d2(u,e){if(u.startPos=u.tokenPos=u.index,u.startColumn=u.colPos=u.column,u.startLine=u.linePos=u.line,u.index>=u.end)return u.token=1048576;switch(Ju[u.source.charCodeAt(u.index)]){case 8456258:{h(u),u.currentChar===47?(h(u),u.token=25):u.token=8456258;break}case 2162700:{h(u),u.token=2162700;break}default:{let i=0;for(;u.index1&&t&32&&u.token&262144&&d(u,59,U[u.token&255]),l}function Tu(u,e,n,i,t){let{token:o,tokenPos:l,linePos:f,colPos:c}=u,a=null,g=le(u,e,n,i,t,l,f,c);return u.token===1077936157?(A(u,e|32768),a=R(u,e,1,0,0,u.tokenPos,u.linePos,u.colPos),(t&32||!(o&2097152))&&(u.token===274549||u.token===8738868&&(o&2097152||!(i&4)||e&1024))&&h2(l,u.line,u.index-3,58,u.token===274549?"of":"in")):(i&16||(o&2097152)>0)&&(u.token&262144)!==262144&&d(u,57,i&16?"const":"destructuring"),y(u,e,l,f,c,{type:"VariableDeclarator",id:g,init:a})}function F1(u,e,n,i,t,o,l){A(u,e);let f=((e&4194304)>0||(e&2048)>0&&(e&8192)>0)&&q(u,e,209008);P(u,e|32768,67174411),n&&(n=J(n,1));let c=null,a=null,g=0,m=null,s=u.token===86090||u.token===241739||u.token===86092,k,{token:C,tokenPos:b,linePos:E,colPos:w}=u;if(s?C===241739?(m=I(u,e,0),u.token&2240512?(u.token===8738868?e&1024&&d(u,65):m=y(u,e,b,E,w,{type:"VariableDeclaration",kind:"let",declarations:y2(u,e|134217728,n,8,32)}),u.assignable=1):e&1024?d(u,65):(s=!1,u.assignable=1,m=N(u,e,m,0,0,b,E,w),u.token===274549&&d(u,112))):(A(u,e),m=y(u,e,b,E,w,C===86090?{type:"VariableDeclaration",kind:"var",declarations:y2(u,e|134217728,n,4,32)}:{type:"VariableDeclaration",kind:"const",declarations:y2(u,e|134217728,n,16,32)}),u.assignable=1):C===1074790417?f&&d(u,80):(C&2097152)===2097152?(m=C===2162700?Y(u,e,void 0,1,0,0,2,32,b,E,w):_(u,e,void 0,1,0,0,2,32,b,E,w),g=u.destructible,e&256&&g&64&&d(u,61),u.assignable=g&16?2:1,m=N(u,e|134217728,m,0,0,u.tokenPos,u.linePos,u.colPos)):m=W(u,e|134217728,1,0,1,b,E,w),(u.token&262144)===262144){if(u.token===274549){u.assignable&2&&d(u,78,f?"await":"of"),r(u,m),A(u,e|32768),k=R(u,e,1,0,0,u.tokenPos,u.linePos,u.colPos),P(u,e|32768,16);let S=P2(u,e,n,i);return y(u,e,t,o,l,{type:"ForOfStatement",left:m,right:k,body:S,await:f})}u.assignable&2&&d(u,78,"in"),r(u,m),A(u,e|32768),f&&d(u,80),k=j(u,e,0,1,u.tokenPos,u.linePos,u.colPos),P(u,e|32768,16);let M=P2(u,e,n,i);return y(u,e,t,o,l,{type:"ForInStatement",body:M,left:m,right:k})}f&&d(u,80),s||(g&8&&u.token!==1077936157&&d(u,78,"loop"),m=O(u,e|134217728,0,0,b,E,w,m)),u.token===18&&(m=e2(u,e,0,u.tokenPos,u.linePos,u.colPos,m)),P(u,e|32768,1074790417),u.token!==1074790417&&(c=j(u,e,0,1,u.tokenPos,u.linePos,u.colPos)),P(u,e|32768,1074790417),u.token!==16&&(a=j(u,e,0,1,u.tokenPos,u.linePos,u.colPos)),P(u,e|32768,16);let v=P2(u,e,n,i);return y(u,e,t,o,l,{type:"ForStatement",init:m,test:c,update:a,body:v})}function Yu(u,e,n){return tu(e,u.token)||d(u,115),(u.token&537079808)===537079808&&d(u,116),n&&t2(u,e,n,u.tokenValue,8,0),I(u,e,0)}function q1(u,e,n){let i=u.tokenPos,t=u.linePos,o=u.colPos;A(u,e);let l=null,{tokenPos:f,linePos:c,colPos:a}=u,g=[];if(u.token===134283267)l=X(u,e);else{if(u.token&143360){let m=Yu(u,e,n);if(g=[y(u,e,f,c,a,{type:"ImportDefaultSpecifier",local:m})],q(u,e,18))switch(u.token){case 8457014:g.push(Fu(u,e,n));break;case 2162700:qu(u,e,n,g);break;default:d(u,105)}}else switch(u.token){case 8457014:g=[Fu(u,e,n)];break;case 2162700:qu(u,e,n,g);break;case 67174411:return Zu(u,e,i,t,o);case 67108877:return Qu(u,e,i,t,o);default:d(u,28,U[u.token&255])}l=L1(u,e)}return z(u,e|32768),y(u,e,i,t,o,{type:"ImportDeclaration",specifiers:g,source:l})}function Fu(u,e,n){let{tokenPos:i,linePos:t,colPos:o}=u;return A(u,e),P(u,e,77934),(u.token&134217728)===134217728&&h2(i,u.line,u.index,28,U[u.token&255]),y(u,e,i,t,o,{type:"ImportNamespaceSpecifier",local:Yu(u,e,n)})}function L1(u,e){return q(u,e,12404),u.token!==134283267&&d(u,103,"Import"),X(u,e)}function qu(u,e,n,i){for(A(u,e);u.token&143360;){let{token:t,tokenValue:o,tokenPos:l,linePos:f,colPos:c}=u,a=I(u,e,0),g;q(u,e,77934)?((u.token&134217728)===134217728||u.token===18?d(u,104):U2(u,e,16,u.token,0),o=u.tokenValue,g=I(u,e,0)):(U2(u,e,16,t,0),g=a),n&&t2(u,e,n,o,8,0),i.push(y(u,e,l,f,c,{type:"ImportSpecifier",local:g,imported:a})),u.token!==1074790415&&P(u,e,18)}return P(u,e,1074790415),i}function Qu(u,e,n,i,t){let o=Gu(u,e,y(u,e,n,i,t,{type:"Identifier",name:"import"}),n,i,t);return o=N(u,e,o,0,0,n,i,t),o=O(u,e,0,0,n,i,t,o),A2(u,e,o,n,i,t)}function Zu(u,e,n,i,t){let o=xu(u,e,0,n,i,t);return o=N(u,e,o,0,0,n,i,t),u.token===18&&(o=e2(u,e,0,n,i,t,o)),A2(u,e,o,n,i,t)}function I1(u,e,n){let i=u.tokenPos,t=u.linePos,o=u.colPos;A(u,e|32768);let l=[],f=null,c=null,a;if(q(u,e|32768,20563)){switch(u.token){case 86106:{f=i2(u,e,n,4,1,1,0,u.tokenPos,u.linePos,u.colPos);break}case 133:case 86096:f=p2(u,e,n,1,u.tokenPos,u.linePos,u.colPos);break;case 209007:let{tokenPos:g,linePos:m,colPos:s}=u;f=I(u,e,0);let{flags:k}=u;k&1||(u.token===86106?f=i2(u,e,n,4,1,1,1,g,m,s):u.token===67174411?(f=mu(u,e,f,1,1,0,k,g,m,s),f=N(u,e,f,0,0,g,m,s),f=O(u,e,0,0,g,m,s,f)):u.token&143360&&(n&&(n=z2(u,e,u.tokenValue)),f=I(u,e,0),f=v2(u,e,n,[f],1,g,m,s)));break;default:f=R(u,e,1,0,0,u.tokenPos,u.linePos,u.colPos),z(u,e|32768)}return n&&l2(u,"default"),y(u,e,i,t,o,{type:"ExportDefaultDeclaration",declaration:f})}switch(u.token){case 8457014:{A(u,e);let k=null;return q(u,e,77934)&&(n&&l2(u,u.tokenValue),k=I(u,e,0)),P(u,e,12404),u.token!==134283267&&d(u,103,"Export"),c=X(u,e),z(u,e|32768),y(u,e,i,t,o,{type:"ExportAllDeclaration",source:c,exported:k})}case 2162700:{A(u,e);let k=[],C=[];for(;u.token&143360;){let{tokenPos:b,tokenValue:E,linePos:w,colPos:v}=u,M=I(u,e,0),S;u.token===77934?(A(u,e),(u.token&134217728)===134217728&&d(u,104),n&&(k.push(u.tokenValue),C.push(E)),S=I(u,e,0)):(n&&(k.push(u.tokenValue),C.push(u.tokenValue)),S=M),l.push(y(u,e,b,w,v,{type:"ExportSpecifier",local:M,exported:S})),u.token!==1074790415&&P(u,e,18)}if(P(u,e,1074790415),q(u,e,12404))u.token!==134283267&&d(u,103,"Export"),c=X(u,e);else if(n){let b=0,E=k.length;for(;b0)&8738868,g,m;for(u.assignable=2;u.token&8454144&&(g=u.token,m=g&3840,(g&524288&&f&268435456||f&524288&&g&268435456)&&d(u,160),!(m+((g===8457273)<<8)-((a===g)<<12)<=l));)A(u,e|32768),c=y(u,e,i,t,o,{type:g&524288||g&268435456?"LogicalExpression":"BinaryExpression",left:c,right:n2(u,e,n,u.tokenPos,u.linePos,u.colPos,m,g,W(u,e,0,n,1,u.tokenPos,u.linePos,u.colPos)),operator:U[g&255]});return u.token===1077936157&&d(u,24),c}function N1(u,e,n,i,t,o,l){n||d(u,0);let f=u.token;A(u,e|32768);let c=W(u,e,0,l,1,u.tokenPos,u.linePos,u.colPos);return u.token===8457273&&d(u,31),e&1024&&f===16863278&&(c.type==="Identifier"?d(u,118):n1(c)&&d(u,124)),u.assignable=2,y(u,e,i,t,o,{type:"UnaryExpression",operator:U[f&255],argument:c,prefix:!0})}function V1(u,e,n,i,t,o,l,f,c,a){let{token:g}=u,m=I(u,e,o),{flags:s}=u;if(!(s&1)){if(u.token===86106)return ue(u,e,1,n,f,c,a);if((u.token&143360)===143360)return i||d(u,0),ie(u,e,t,f,c,a)}return!l&&u.token===67174411?mu(u,e,m,t,1,0,s,f,c,a):u.token===10?(ou(u,e,g,1),l&&d(u,49),K2(u,e,u.tokenValue,m,l,t,0,f,c,a)):m}function R1(u,e,n,i,t,o,l){if(n&&(u.destructible|=256),e&2097152){A(u,e|32768),e&8388608&&d(u,30),i||d(u,24),u.token===22&&d(u,121);let f=null,c=!1;return u.flags&1||(c=q(u,e|32768,8457014),(u.token&77824||c)&&(f=R(u,e,1,0,0,u.tokenPos,u.linePos,u.colPos))),u.assignable=2,y(u,e,t,o,l,{type:"YieldExpression",argument:f,delegate:c})}return e&1024&&d(u,95,"yield"),au(u,e,t,o,l)}function O1(u,e,n,i,t,o,l){if(i&&(u.destructible|=128),e&4194304||e&2048&&e&8192){n&&d(u,0),e&8388608&&h2(u.index,u.line,u.index,29),A(u,e|32768);let f=W(u,e,0,0,1,u.tokenPos,u.linePos,u.colPos);return u.token===8457273&&d(u,31),u.assignable=2,y(u,e,t,o,l,{type:"AwaitExpression",argument:f})}return e&2048&&d(u,96),au(u,e,t,o,l)}function H2(u,e,n,i,t,o){let{tokenPos:l,linePos:f,colPos:c}=u;P(u,e|32768,2162700);let a=[],g=e;if(u.token!==1074790415){for(;u.token===134283267;){let{index:m,tokenPos:s,tokenValue:k,token:C}=u,b=X(u,e);Xu(u,m,s,k)&&(e|=1024,u.flags&128&&h2(u.index,u.line,u.tokenPos,64),u.flags&64&&h2(u.index,u.line,u.tokenPos,8)),a.push(fu(u,e,b,C,s,u.linePos,u.colPos))}e&1024&&(t&&((t&537079808)===537079808&&d(u,116),(t&36864)===36864&&d(u,38)),u.flags&512&&d(u,116),u.flags&256&&d(u,115)),e&64&&n&&o!==void 0&&!(g&1024)&&!(e&8192)&&X2(o)}for(u.flags=(u.flags|512|256|64)^832,u.destructible=(u.destructible|256)^256;u.token!==1074790415;)a.push(S2(u,e,n,4,{}));return P(u,i&24?e|32768:e,1074790415),u.flags&=-193,u.token===1077936157&&d(u,24),y(u,e,l,f,c,{type:"BlockStatement",body:a})}function U1(u,e,n,i,t){switch(A(u,e),u.token){case 67108991:d(u,162);case 67174411:{e&524288||d(u,26),e&16384&&d(u,27),u.assignable=2;break}case 69271571:case 67108877:{e&262144||d(u,27),e&16384&&d(u,27),u.assignable=1;break}default:d(u,28,"super")}return y(u,e,n,i,t,{type:"Super"})}function W(u,e,n,i,t,o,l,f){let c=K(u,e,2,0,n,0,i,t,o,l,f);return N(u,e,c,i,0,o,l,f)}function M1(u,e,n,i,t,o){u.assignable&2&&d(u,53);let{token:l}=u;return A(u,e),u.assignable=2,y(u,e,i,t,o,{type:"UpdateExpression",argument:n,operator:U[l&255],prefix:!1})}function N(u,e,n,i,t,o,l,f){if((u.token&33619968)===33619968&&!(u.flags&1))n=M1(u,e,n,o,l,f);else if((u.token&67108864)===67108864){switch(e=(e|134217728)^134217728,u.token){case 67108877:{A(u,(e|1073741824|8192)^8192),u.assignable=1;let c=ru(u,e);n=y(u,e,o,l,f,{type:"MemberExpression",object:n,computed:!1,property:c});break}case 69271571:{let c=!1;(u.flags&2048)===2048&&(c=!0,u.flags=(u.flags|2048)^2048),A(u,e|32768);let{tokenPos:a,linePos:g,colPos:m}=u,s=j(u,e,i,1,a,g,m);P(u,e,20),u.assignable=1,n=y(u,e,o,l,f,{type:"MemberExpression",object:n,computed:!0,property:s}),c&&(u.flags|=2048);break}case 67174411:{if((u.flags&1024)===1024)return u.flags=(u.flags|1024)^1024,n;let c=!1;(u.flags&2048)===2048&&(c=!0,u.flags=(u.flags|2048)^2048);let a=su(u,e,i);u.assignable=2,n=y(u,e,o,l,f,{type:"CallExpression",callee:n,arguments:a}),c&&(u.flags|=2048);break}case 67108991:{A(u,(e|1073741824|8192)^8192),u.flags|=2048,u.assignable=2,n=J1(u,e,n,o,l,f);break}default:(u.flags&2048)===2048&&d(u,161),u.assignable=2,n=y(u,e,o,l,f,{type:"TaggedTemplateExpression",tag:n,quasi:u.token===67174408?du(u,e|65536):cu(u,e,u.tokenPos,u.linePos,u.colPos)})}n=N(u,e,n,0,1,o,l,f)}return t===0&&(u.flags&2048)===2048&&(u.flags=(u.flags|2048)^2048,n=y(u,e,o,l,f,{type:"ChainExpression",expression:n})),n}function J1(u,e,n,i,t,o){let l=!1,f;if((u.token===69271571||u.token===67174411)&&(u.flags&2048)===2048&&(l=!0,u.flags=(u.flags|2048)^2048),u.token===69271571){A(u,e|32768);let{tokenPos:c,linePos:a,colPos:g}=u,m=j(u,e,0,1,c,a,g);P(u,e,20),u.assignable=2,f=y(u,e,i,t,o,{type:"MemberExpression",object:n,computed:!0,optional:!0,property:m})}else if(u.token===67174411){let c=su(u,e,0);u.assignable=2,f=y(u,e,i,t,o,{type:"CallExpression",callee:n,arguments:c,optional:!0})}else{u.token&143360||d(u,155);let c=I(u,e,0);u.assignable=2,f=y(u,e,i,t,o,{type:"MemberExpression",object:n,computed:!1,optional:!0,property:c})}return l&&(u.flags|=2048),f}function ru(u,e){return!(u.token&143360)&&u.token!==131&&d(u,155),e&1&&u.token===131?j2(u,e,u.tokenPos,u.linePos,u.colPos):I(u,e,0)}function j1(u,e,n,i,t,o,l){n&&d(u,54),i||d(u,0);let{token:f}=u;A(u,e|32768);let c=W(u,e,0,0,1,u.tokenPos,u.linePos,u.colPos);return u.assignable&2&&d(u,53),u.assignable=2,y(u,e,t,o,l,{type:"UpdateExpression",argument:c,operator:U[f&255],prefix:!0})}function K(u,e,n,i,t,o,l,f,c,a,g){if((u.token&143360)===143360){switch(u.token){case 209008:return O1(u,e,i,l,c,a,g);case 241773:return R1(u,e,l,t,c,a,g);case 209007:return V1(u,e,l,f,t,o,i,c,a,g)}let{token:m,tokenValue:s}=u,k=I(u,e|65536,o);return u.token===10?(f||d(u,0),ou(u,e,m,1),K2(u,e,s,k,i,t,0,c,a,g)):(e&16384&&m===537079928&&d(u,127),m===241739&&(e&1024&&d(u,110),n&24&&d(u,98)),u.assignable=e&1024&&(m&537079808)===537079808?2:1,k)}if((u.token&134217728)===134217728)return X(u,e);switch(u.token){case 33619995:case 33619996:return j1(u,e,i,f,c,a,g);case 16863278:case 16842800:case 16842801:case 25233970:case 25233971:case 16863277:case 16863279:return N1(u,e,f,c,a,g,l);case 86106:return ue(u,e,0,l,c,a,g);case 2162700:return W1(u,e,t?0:1,l,c,a,g);case 69271571:return $1(u,e,t?0:1,l,c,a,g);case 67174411:return Y1(u,e,t,1,0,c,a,g);case 86021:case 86022:case 86023:return H1(u,e,c,a,g);case 86113:return K1(u,e);case 65540:return r1(u,e,c,a,g);case 133:case 86096:return G1(u,e,l,c,a,g);case 86111:return U1(u,e,c,a,g);case 67174409:return cu(u,e,c,a,g);case 67174408:return du(u,e);case 86109:return Q1(u,e,l,c,a,g);case 134283389:return pu(u,e,c,a,g);case 131:return j2(u,e,c,a,g);case 86108:return X1(u,e,i,l,c,a,g);case 8456258:if(e&16)return yu(u,e,1,c,a,g);default:if(tu(e,u.token))return au(u,e,c,a,g);d(u,28,U[u.token&255])}}function X1(u,e,n,i,t,o,l){let f=I(u,e,0);return u.token===67108877?Gu(u,e,f,t,o,l):(n&&d(u,138),f=xu(u,e,i,t,o,l),u.assignable=2,N(u,e,f,i,0,t,o,l))}function Gu(u,e,n,i,t,o){return e&2048||d(u,164),A(u,e),u.token!==143495&&u.tokenValue!=="meta"&&d(u,28,U[u.token&255]),u.assignable=2,y(u,e,i,t,o,{type:"MetaProperty",meta:n,property:I(u,e,0)})}function xu(u,e,n,i,t,o){P(u,e|32768,67174411),u.token===14&&d(u,139);let l=R(u,e,1,0,n,u.tokenPos,u.linePos,u.colPos);return P(u,e,16),y(u,e,i,t,o,{type:"ImportExpression",source:l})}function pu(u,e,n,i,t){let{tokenRaw:o,tokenValue:l}=u;return A(u,e),u.assignable=2,y(u,e,n,i,t,e&512?{type:"Literal",value:l,bigint:o.slice(0,-1),raw:o}:{type:"Literal",value:l,bigint:o.slice(0,-1)})}function cu(u,e,n,i,t){u.assignable=2;let{tokenValue:o,tokenRaw:l,tokenPos:f,linePos:c,colPos:a}=u;P(u,e,67174409);let g=[V2(u,e,o,l,f,c,a,!0)];return y(u,e,n,i,t,{type:"TemplateLiteral",expressions:[],quasis:g})}function du(u,e){e=(e|134217728)^134217728;let{tokenValue:n,tokenRaw:i,tokenPos:t,linePos:o,colPos:l}=u;P(u,e|32768,67174408);let f=[V2(u,e,n,i,t,o,l,!1)],c=[j(u,e,0,1,u.tokenPos,u.linePos,u.colPos)];for(u.token!==1074790415&&d(u,81);(u.token=re(u,e))!==67174409;){let{tokenValue:a,tokenRaw:g,tokenPos:m,linePos:s,colPos:k}=u;P(u,e|32768,67174408),f.push(V2(u,e,a,g,m,s,k,!1)),c.push(j(u,e,0,1,u.tokenPos,u.linePos,u.colPos)),u.token!==1074790415&&d(u,81)}{let{tokenValue:a,tokenRaw:g,tokenPos:m,linePos:s,colPos:k}=u;P(u,e,67174409),f.push(V2(u,e,a,g,m,s,k,!0))}return y(u,e,t,o,l,{type:"TemplateLiteral",expressions:c,quasis:f})}function V2(u,e,n,i,t,o,l,f){let c=y(u,e,t,o,l,{type:"TemplateElement",value:{cooked:n,raw:i},tail:f}),a=f?1:2;return e&2&&(c.start+=1,c.range[0]+=1,c.end-=a,c.range[1]-=a),e&4&&(c.loc.start.column+=1,c.loc.end.column-=a),c}function z1(u,e,n,i,t){e=(e|134217728)^134217728,P(u,e|32768,14);let o=R(u,e,1,0,0,u.tokenPos,u.linePos,u.colPos);return u.assignable=1,y(u,e,n,i,t,{type:"SpreadElement",argument:o})}function su(u,e,n){A(u,e|32768);let i=[];if(u.token===16)return A(u,e),i;for(;u.token!==16&&(u.token===14?i.push(z1(u,e,u.tokenPos,u.linePos,u.colPos)):i.push(R(u,e,1,0,n,u.tokenPos,u.linePos,u.colPos)),!(u.token!==18||(A(u,e|32768),u.token===16))););return P(u,e,16),i}function I(u,e,n){let{tokenValue:i,tokenPos:t,linePos:o,colPos:l}=u;return A(u,e),y(u,e,t,o,l,e&268435456?{type:"Identifier",name:i,pattern:n===1}:{type:"Identifier",name:i})}function X(u,e){let{tokenValue:n,tokenRaw:i,tokenPos:t,linePos:o,colPos:l}=u;return u.token===134283389?pu(u,e,t,o,l):(A(u,e),u.assignable=2,y(u,e,t,o,l,e&512?{type:"Literal",value:n,raw:i}:{type:"Literal",value:n}))}function H1(u,e,n,i,t){let o=U[u.token&255],l=u.token===86023?null:o==="true";return A(u,e),u.assignable=2,y(u,e,n,i,t,e&512?{type:"Literal",value:l,raw:o}:{type:"Literal",value:l})}function K1(u,e){let{tokenPos:n,linePos:i,colPos:t}=u;return A(u,e),u.assignable=2,y(u,e,n,i,t,{type:"ThisExpression"})}function i2(u,e,n,i,t,o,l,f,c,a){A(u,e|32768);let g=t?iu(u,e,8457014):0,m=null,s,k=n?s2():void 0;if(u.token===67174411)o&1||d(u,37,"Function");else{let E=i&4&&(!(e&8192)||!(e&2048))?4:64;zu(u,e|(e&3072)<<11,u.token),n&&(E&4?$u(u,e,n,u.tokenValue,E):t2(u,e,n,u.tokenValue,E,i),k=J(k,256),o&&o&2&&l2(u,u.tokenValue)),s=u.token,u.token&143360?m=I(u,e,0):d(u,28,U[u.token&255])}e=(e|32243712)^32243712|67108864|l*2+g<<21|(g?0:1073741824),n&&(k=J(k,512));let C=ne(u,e|8388608,k,0,1),b=H2(u,(e|8192|4096|131072)^143360,n?J(k,128):k,8,s,n?k.scopeError:void 0);return y(u,e,f,c,a,{type:"FunctionDeclaration",id:m,params:C,body:b,async:l===1,generator:g===1})}function ue(u,e,n,i,t,o,l){A(u,e|32768);let f=iu(u,e,8457014),c=n*2+f<<21,a=null,g,m=e&64?s2():void 0;(u.token&176128)>0&&(zu(u,(e|32243712)^32243712|c,u.token),m&&(m=J(m,256)),g=u.token,a=I(u,e,0)),e=(e|32243712)^32243712|67108864|c|(f?0:1073741824),m&&(m=J(m,512));let s=ne(u,e|8388608,m,i,1),k=H2(u,e&-134377473,m&&J(m,128),0,g,void 0);return u.assignable=2,y(u,e,t,o,l,{type:"FunctionExpression",id:a,params:s,body:k,async:n===1,generator:f===1})}function $1(u,e,n,i,t,o,l){let f=_(u,e,void 0,n,i,0,2,0,t,o,l);return e&256&&u.destructible&64&&d(u,61),u.destructible&8&&d(u,60),f}function _(u,e,n,i,t,o,l,f,c,a,g){A(u,e|32768);let m=[],s=0;for(e=(e|134217728)^134217728;u.token!==20;)if(q(u,e|32768,18))m.push(null);else{let C,{token:b,tokenPos:E,linePos:w,colPos:v,tokenValue:M}=u;if(b&143360)if(C=K(u,e,l,0,1,0,t,1,E,w,v),u.token===1077936157){u.assignable&2&&d(u,24),A(u,e|32768),n&&u2(u,e,n,M,l,f);let S=R(u,e,1,1,t,u.tokenPos,u.linePos,u.colPos);C=y(u,e,E,w,v,o?{type:"AssignmentPattern",left:C,right:S}:{type:"AssignmentExpression",operator:"=",left:C,right:S}),s|=u.destructible&256?256:0|u.destructible&128?128:0}else u.token===18||u.token===20?(u.assignable&2?s|=16:n&&u2(u,e,n,M,l,f),s|=u.destructible&256?256:0|u.destructible&128?128:0):(s|=l&1?32:l&2?0:16,C=N(u,e,C,t,0,E,w,v),u.token!==18&&u.token!==20?(u.token!==1077936157&&(s|=16),C=O(u,e,t,o,E,w,v,C)):u.token!==1077936157&&(s|=u.assignable&2?16:32));else b&2097152?(C=u.token===2162700?Y(u,e,n,0,t,o,l,f,E,w,v):_(u,e,n,0,t,o,l,f,E,w,v),s|=u.destructible,u.assignable=u.destructible&16?2:1,u.token===18||u.token===20?u.assignable&2&&(s|=16):u.destructible&8?d(u,69):(C=N(u,e,C,t,0,E,w,v),s=u.assignable&2?16:0,u.token!==18&&u.token!==20?C=O(u,e,t,o,E,w,v,C):u.token!==1077936157&&(s|=u.assignable&2?16:32))):b===14?(C=b2(u,e,n,20,l,f,0,t,o,E,w,v),s|=u.destructible,u.token!==18&&u.token!==20&&d(u,28,U[u.token&255])):(C=W(u,e,1,0,1,E,w,v),u.token!==18&&u.token!==20?(C=O(u,e,t,o,E,w,v,C),!(l&3)&&b===67174411&&(s|=16)):u.assignable&2?s|=16:b===67174411&&(s|=u.assignable&1&&l&3?32:16));if(m.push(C),q(u,e|32768,18)){if(u.token===20)break}else break}P(u,e,20);let k=y(u,e,c,a,g,{type:o?"ArrayPattern":"ArrayExpression",elements:m});return!i&&u.token&4194304?ee(u,e,s,t,o,c,a,g,k):(u.destructible=s,k)}function ee(u,e,n,i,t,o,l,f,c){u.token!==1077936157&&d(u,24),A(u,e|32768),n&16&&d(u,24),t||r(u,c);let{tokenPos:a,linePos:g,colPos:m}=u,s=R(u,e,1,1,i,a,g,m);return u.destructible=(n|64|8)^72|(u.destructible&128?128:0)|(u.destructible&256?256:0),y(u,e,o,l,f,t?{type:"AssignmentPattern",left:c,right:s}:{type:"AssignmentExpression",left:c,operator:"=",right:s})}function b2(u,e,n,i,t,o,l,f,c,a,g,m){A(u,e|32768);let s=null,k=0,{token:C,tokenValue:b,tokenPos:E,linePos:w,colPos:v}=u;if(C&143360)u.assignable=1,s=K(u,e,t,0,1,0,f,1,E,w,v),C=u.token,s=N(u,e,s,f,0,E,w,v),u.token!==18&&u.token!==i&&(u.assignable&2&&u.token===1077936157&&d(u,69),k|=16,s=O(u,e,f,c,E,w,v,s)),u.assignable&2?k|=16:C===i||C===18?n&&u2(u,e,n,b,t,o):k|=32,k|=u.destructible&128?128:0;else if(C===i)d(u,39);else if(C&2097152)s=u.token===2162700?Y(u,e,n,1,f,c,t,o,E,w,v):_(u,e,n,1,f,c,t,o,E,w,v),C=u.token,C!==1077936157&&C!==i&&C!==18?(u.destructible&8&&d(u,69),s=N(u,e,s,f,0,E,w,v),k|=u.assignable&2?16:0,(u.token&4194304)===4194304?(u.token!==1077936157&&(k|=16),s=O(u,e,f,c,E,w,v,s)):((u.token&8454144)===8454144&&(s=n2(u,e,1,E,w,v,4,C,s)),q(u,e|32768,22)&&(s=f2(u,e,s,E,w,v)),k|=u.assignable&2?16:32)):k|=i===1074790415&&C!==1077936157?16:u.destructible;else{k|=32,s=W(u,e,1,f,1,u.tokenPos,u.linePos,u.colPos);let{token:M,tokenPos:S,linePos:V,colPos:D}=u;return M===1077936157&&M!==i&&M!==18?(u.assignable&2&&d(u,24),s=O(u,e,f,c,S,V,D,s),k|=16):(M===18?k|=16:M!==i&&(s=O(u,e,f,c,S,V,D,s)),k|=u.assignable&1?32:16),u.destructible=k,u.token!==i&&u.token!==18&&d(u,156),y(u,e,a,g,m,{type:c?"RestElement":"SpreadElement",argument:s})}if(u.token!==i)if(t&1&&(k|=l?16:32),q(u,e|32768,1077936157)){k&16&&d(u,24),r(u,s);let M=R(u,e,1,1,f,u.tokenPos,u.linePos,u.colPos);s=y(u,e,E,w,v,c?{type:"AssignmentPattern",left:s,right:M}:{type:"AssignmentExpression",left:s,operator:"=",right:M}),k=16}else k|=16;return u.destructible=k,y(u,e,a,g,m,{type:c?"RestElement":"SpreadElement",argument:s})}function Z(u,e,n,i,t,o,l){let f=n&64?14680064:31981568;e=(e|f)^f|(n&88)<<18|100925440;let c=e&64?J(s2(),512):void 0,a=_1(u,e|8388608,c,n,1,i);c&&(c=J(c,128));let g=H2(u,e&-134230017,c,0,void 0,void 0);return y(u,e,t,o,l,{type:"FunctionExpression",params:a,body:g,async:(n&16)>0,generator:(n&8)>0,id:null})}function W1(u,e,n,i,t,o,l){let f=Y(u,e,void 0,n,i,0,2,0,t,o,l);return e&256&&u.destructible&64&&d(u,61),u.destructible&8&&d(u,60),f}function Y(u,e,n,i,t,o,l,f,c,a,g){A(u,e);let m=[],s=0,k=0;for(e=(e|134217728)^134217728;u.token!==1074790415;){let{token:b,tokenValue:E,linePos:w,colPos:v,tokenPos:M}=u;if(b===14)m.push(b2(u,e,n,1074790415,l,f,0,t,o,M,w,v));else{let S=0,V=null,D,Q=u.token;if(u.token&143360||u.token===121)if(V=I(u,e,0),u.token===18||u.token===1074790415||u.token===1077936157)if(S|=4,e&1024&&(b&537079808)===537079808?s|=16:U2(u,e,l,b,0),n&&u2(u,e,n,E,l,f),q(u,e|32768,1077936157)){s|=8;let B=R(u,e,1,1,t,u.tokenPos,u.linePos,u.colPos);s|=u.destructible&256?256:0|u.destructible&128?128:0,D=y(u,e,M,w,v,{type:"AssignmentPattern",left:e&-2147483648?Object.assign({},V):V,right:B})}else s|=(b===209008?128:0)|(b===121?16:0),D=e&-2147483648?Object.assign({},V):V;else if(q(u,e|32768,21)){let{tokenPos:B,linePos:F,colPos:T}=u;if(E==="__proto__"&&k++,u.token&143360){let o2=u.token,m2=u.tokenValue;s|=Q===121?16:0,D=K(u,e,l,0,1,0,t,1,B,F,T);let{token:x}=u;D=N(u,e,D,t,0,B,F,T),u.token===18||u.token===1074790415?x===1077936157||x===1074790415||x===18?(s|=u.destructible&128?128:0,u.assignable&2?s|=16:n&&(o2&143360)===143360&&u2(u,e,n,m2,l,f)):s|=u.assignable&1?32:16:(u.token&4194304)===4194304?(u.assignable&2?s|=16:x!==1077936157?s|=32:n&&u2(u,e,n,m2,l,f),D=O(u,e,t,o,B,F,T,D)):(s|=16,(u.token&8454144)===8454144&&(D=n2(u,e,1,B,F,T,4,x,D)),q(u,e|32768,22)&&(D=f2(u,e,D,B,F,T)))}else(u.token&2097152)===2097152?(D=u.token===69271571?_(u,e,n,0,t,o,l,f,B,F,T):Y(u,e,n,0,t,o,l,f,B,F,T),s=u.destructible,u.assignable=s&16?2:1,u.token===18||u.token===1074790415?u.assignable&2&&(s|=16):u.destructible&8?d(u,69):(D=N(u,e,D,t,0,B,F,T),s=u.assignable&2?16:0,(u.token&4194304)===4194304?D=I2(u,e,t,o,B,F,T,D):((u.token&8454144)===8454144&&(D=n2(u,e,1,B,F,T,4,b,D)),q(u,e|32768,22)&&(D=f2(u,e,D,B,F,T)),s|=u.assignable&2?16:32))):(D=W(u,e,1,t,1,B,F,T),s|=u.assignable&1?32:16,u.token===18||u.token===1074790415?u.assignable&2&&(s|=16):(D=N(u,e,D,t,0,B,F,T),s=u.assignable&2?16:0,u.token!==18&&b!==1074790415&&(u.token!==1077936157&&(s|=16),D=O(u,e,t,o,B,F,T,D))))}else u.token===69271571?(s|=16,b===209007&&(S|=16),S|=(b===12402?256:b===12403?512:1)|2,V=g2(u,e,t),s|=u.assignable,D=Z(u,e,S,t,u.tokenPos,u.linePos,u.colPos)):u.token&143360?(s|=16,b===121&&d(u,93),b===209007&&(u.flags&1&&d(u,129),S|=16),V=I(u,e,0),S|=b===12402?256:b===12403?512:1,D=Z(u,e,S,t,u.tokenPos,u.linePos,u.colPos)):u.token===67174411?(s|=16,S|=1,D=Z(u,e,S,t,u.tokenPos,u.linePos,u.colPos)):u.token===8457014?(s|=16,b===12402?d(u,40):b===12403?d(u,41):b===143483&&d(u,93),A(u,e),S|=9|(b===209007?16:0),u.token&143360?V=I(u,e,0):(u.token&134217728)===134217728?V=X(u,e):u.token===69271571?(S|=2,V=g2(u,e,t),s|=u.assignable):d(u,28,U[u.token&255]),D=Z(u,e,S,t,u.tokenPos,u.linePos,u.colPos)):(u.token&134217728)===134217728?(b===209007&&(S|=16),S|=b===12402?256:b===12403?512:1,s|=16,V=X(u,e),D=Z(u,e,S,t,u.tokenPos,u.linePos,u.colPos)):d(u,130);else if((u.token&134217728)===134217728)if(V=X(u,e),u.token===21){P(u,e|32768,21);let{tokenPos:B,linePos:F,colPos:T}=u;if(E==="__proto__"&&k++,u.token&143360){D=K(u,e,l,0,1,0,t,1,B,F,T);let{token:o2,tokenValue:m2}=u;D=N(u,e,D,t,0,B,F,T),u.token===18||u.token===1074790415?o2===1077936157||o2===1074790415||o2===18?u.assignable&2?s|=16:n&&u2(u,e,n,m2,l,f):s|=u.assignable&1?32:16:u.token===1077936157?(u.assignable&2&&(s|=16),D=O(u,e,t,o,B,F,T,D)):(s|=16,D=O(u,e,t,o,B,F,T,D))}else(u.token&2097152)===2097152?(D=u.token===69271571?_(u,e,n,0,t,o,l,f,B,F,T):Y(u,e,n,0,t,o,l,f,B,F,T),s=u.destructible,u.assignable=s&16?2:1,u.token===18||u.token===1074790415?u.assignable&2&&(s|=16):(u.destructible&8)!==8&&(D=N(u,e,D,t,0,B,F,T),s=u.assignable&2?16:0,(u.token&4194304)===4194304?D=I2(u,e,t,o,B,F,T,D):((u.token&8454144)===8454144&&(D=n2(u,e,1,B,F,T,4,b,D)),q(u,e|32768,22)&&(D=f2(u,e,D,B,F,T)),s|=u.assignable&2?16:32))):(D=W(u,e,1,0,1,B,F,T),s|=u.assignable&1?32:16,u.token===18||u.token===1074790415?u.assignable&2&&(s|=16):(D=N(u,e,D,t,0,B,F,T),s=u.assignable&1?0:16,u.token!==18&&u.token!==1074790415&&(u.token!==1077936157&&(s|=16),D=O(u,e,t,o,B,F,T,D))))}else u.token===67174411?(S|=1,D=Z(u,e,S,t,u.tokenPos,u.linePos,u.colPos),s=u.assignable|16):d(u,131);else if(u.token===69271571)if(V=g2(u,e,t),s|=u.destructible&256?256:0,S|=2,u.token===21){A(u,e|32768);let{tokenPos:B,linePos:F,colPos:T,tokenValue:o2,token:m2}=u;if(u.token&143360){D=K(u,e,l,0,1,0,t,1,B,F,T);let{token:x}=u;D=N(u,e,D,t,0,B,F,T),(u.token&4194304)===4194304?(s|=u.assignable&2?16:x===1077936157?0:32,D=I2(u,e,t,o,B,F,T,D)):u.token===18||u.token===1074790415?x===1077936157||x===1074790415||x===18?u.assignable&2?s|=16:n&&(m2&143360)===143360&&u2(u,e,n,o2,l,f):s|=u.assignable&1?32:16:(s|=16,D=O(u,e,t,o,B,F,T,D))}else(u.token&2097152)===2097152?(D=u.token===69271571?_(u,e,n,0,t,o,l,f,B,F,T):Y(u,e,n,0,t,o,l,f,B,F,T),s=u.destructible,u.assignable=s&16?2:1,u.token===18||u.token===1074790415?u.assignable&2&&(s|=16):s&8?d(u,60):(D=N(u,e,D,t,0,B,F,T),s=u.assignable&2?s|16:0,(u.token&4194304)===4194304?(u.token!==1077936157&&(s|=16),D=I2(u,e,t,o,B,F,T,D)):((u.token&8454144)===8454144&&(D=n2(u,e,1,B,F,T,4,b,D)),q(u,e|32768,22)&&(D=f2(u,e,D,B,F,T)),s|=u.assignable&2?16:32))):(D=W(u,e,1,0,1,B,F,T),s|=u.assignable&1?32:16,u.token===18||u.token===1074790415?u.assignable&2&&(s|=16):(D=N(u,e,D,t,0,B,F,T),s=u.assignable&1?0:16,u.token!==18&&u.token!==1074790415&&(u.token!==1077936157&&(s|=16),D=O(u,e,t,o,B,F,T,D))))}else u.token===67174411?(S|=1,D=Z(u,e,S,t,u.tokenPos,w,v),s=16):d(u,42);else if(b===8457014)if(P(u,e|32768,8457014),S|=8,u.token&143360){let{token:B,line:F,index:T}=u;V=I(u,e,0),S|=1,u.token===67174411?(s|=16,D=Z(u,e,S,t,u.tokenPos,u.linePos,u.colPos)):h2(T,F,T,B===209007?44:B===12402||u.token===12403?43:45,U[B&255])}else(u.token&134217728)===134217728?(s|=16,V=X(u,e),S|=1,D=Z(u,e,S,t,M,w,v)):u.token===69271571?(s|=16,S|=3,V=g2(u,e,t),D=Z(u,e,S,t,u.tokenPos,u.linePos,u.colPos)):d(u,123);else d(u,28,U[b&255]);s|=u.destructible&128?128:0,u.destructible=s,m.push(y(u,e,M,w,v,{type:"Property",key:V,value:D,kind:S&768?S&512?"set":"get":"init",computed:(S&2)>0,method:(S&1)>0,shorthand:(S&4)>0}))}if(s|=u.destructible,u.token!==18)break;A(u,e)}P(u,e,1074790415),k>1&&(s|=64);let C=y(u,e,c,a,g,{type:o?"ObjectPattern":"ObjectExpression",properties:m});return!i&&u.token&4194304?ee(u,e,s,t,o,c,a,g,C):(u.destructible=s,C)}function _1(u,e,n,i,t,o){P(u,e,67174411);let l=[];if(u.flags=(u.flags|128)^128,u.token===16)return i&512&&d(u,35,"Setter","one",""),A(u,e),l;i&256&&d(u,35,"Getter","no","s"),i&512&&u.token===14&&d(u,36),e=(e|134217728)^134217728;let f=0,c=0;for(;u.token!==18;){let a=null,{tokenPos:g,linePos:m,colPos:s}=u;if(u.token&143360?(e&1024||((u.token&36864)===36864&&(u.flags|=256),(u.token&537079808)===537079808&&(u.flags|=512)),a=gu(u,e,n,i|1,0,g,m,s)):(u.token===2162700?a=Y(u,e,n,1,o,1,t,0,g,m,s):u.token===69271571?a=_(u,e,n,1,o,1,t,0,g,m,s):u.token===14&&(a=b2(u,e,n,16,t,0,0,o,1,g,m,s)),c=1,u.destructible&48&&d(u,48)),u.token===1077936157){A(u,e|32768),c=1;let k=R(u,e,1,1,0,u.tokenPos,u.linePos,u.colPos);a=y(u,e,g,m,s,{type:"AssignmentPattern",left:a,right:k})}if(f++,l.push(a),!q(u,e,18)||u.token===16)break}return i&512&&f!==1&&d(u,35,"Setter","one",""),n&&n.scopeError!==void 0&&X2(n.scopeError),c&&(u.flags|=128),P(u,e,16),l}function g2(u,e,n){A(u,e|32768);let i=R(u,(e|134217728)^134217728,1,0,n,u.tokenPos,u.linePos,u.colPos);return P(u,e,20),i}function Y1(u,e,n,i,t,o,l,f){u.flags=(u.flags|128)^128;let{tokenPos:c,linePos:a,colPos:g}=u;A(u,e|32768|1073741824);let m=e&64?J(s2(),1024):void 0;if(e=(e|134217728)^134217728,q(u,e,16))return J2(u,e,m,[],n,0,o,l,f);let s=0;u.destructible&=-385;let k,C=[],b=0,E=0,{tokenPos:w,linePos:v,colPos:M}=u;for(u.assignable=1;u.token!==16;){let{token:S,tokenPos:V,linePos:D,colPos:Q}=u;if(S&143360)m&&t2(u,e,m,u.tokenValue,1,0),k=K(u,e,i,0,1,0,1,1,V,D,Q),u.token===16||u.token===18?u.assignable&2?(s|=16,E=1):((S&537079808)===537079808||(S&36864)===36864)&&(E=1):(u.token===1077936157?E=1:s|=16,k=N(u,e,k,1,0,V,D,Q),u.token!==16&&u.token!==18&&(k=O(u,e,1,0,V,D,Q,k)));else if((S&2097152)===2097152)k=S===2162700?Y(u,e|1073741824,m,0,1,0,i,t,V,D,Q):_(u,e|1073741824,m,0,1,0,i,t,V,D,Q),s|=u.destructible,E=1,u.assignable=2,u.token!==16&&u.token!==18&&(s&8&&d(u,119),k=N(u,e,k,0,0,V,D,Q),s|=16,u.token!==16&&u.token!==18&&(k=O(u,e,0,0,V,D,Q,k)));else if(S===14){k=b2(u,e,m,16,i,t,0,1,0,V,D,Q),u.destructible&16&&d(u,72),E=1,b&&(u.token===16||u.token===18)&&C.push(k),s|=8;break}else{if(s|=16,k=R(u,e,1,0,1,V,D,Q),b&&(u.token===16||u.token===18)&&C.push(k),u.token===18&&(b||(b=1,C=[k])),b){for(;q(u,e|32768,18);)C.push(R(u,e,1,0,1,u.tokenPos,u.linePos,u.colPos));u.assignable=2,k=y(u,e,w,v,M,{type:"SequenceExpression",expressions:C})}return P(u,e,16),u.destructible=s,k}if(b&&(u.token===16||u.token===18)&&C.push(k),!q(u,e|32768,18))break;if(b||(b=1,C=[k]),u.token===16){s|=8;break}}return b&&(u.assignable=2,k=y(u,e,w,v,M,{type:"SequenceExpression",expressions:C})),P(u,e,16),s&16&&s&8&&d(u,146),s|=u.destructible&256?256:0|u.destructible&128?128:0,u.token===10?(s&48&&d(u,47),e&4196352&&s&128&&d(u,29),e&2098176&&s&256&&d(u,30),E&&(u.flags|=128),J2(u,e,m,b?C:[k],n,0,o,l,f)):(s&8&&d(u,140),u.destructible=(u.destructible|256)^256|s,e&128?y(u,e,c,a,g,{type:"ParenthesizedExpression",expression:k}):k)}function au(u,e,n,i,t){let{tokenValue:o}=u,l=I(u,e,0);if(u.assignable=1,u.token===10){let f;return e&64&&(f=z2(u,e,o)),u.flags=(u.flags|128)^128,v2(u,e,f,[l],0,n,i,t)}return l}function K2(u,e,n,i,t,o,l,f,c,a){o||d(u,55),t&&d(u,49),u.flags&=-129;let g=e&64?z2(u,e,n):void 0;return v2(u,e,g,[i],l,f,c,a)}function J2(u,e,n,i,t,o,l,f,c){t||d(u,55);for(let a=0;a0&&u.tokenValue==="constructor"&&d(u,107),u.token===1074790415&&d(u,106),q(u,e,1074790417)){k>0&&d(u,117);continue}m.push(oe(u,e,i,n,t,s,0,l,u.tokenPos,u.linePos,u.colPos))}return P(u,o&8?e|32768:e,1074790415),u.flags=u.flags&-33|g,y(u,e,f,c,a,{type:"ClassBody",body:m})}function oe(u,e,n,i,t,o,l,f,c,a,g){let m=l?32:0,s=null,{token:k,tokenPos:C,linePos:b,colPos:E}=u;if(k&176128)switch(s=I(u,e,0),k){case 36972:if(!l&&u.token!==67174411&&(u.token&1048576)!==1048576&&u.token!==1077936157)return oe(u,e,n,i,t,o,1,f,c,a,g);break;case 209007:if(u.token!==67174411&&!(u.flags&1)){if(e&1&&(u.token&1073741824)===1073741824)return N2(u,e,s,m,o,C,b,E);m|=16|(iu(u,e,8457014)?8:0)}break;case 12402:if(u.token!==67174411){if(e&1&&(u.token&1073741824)===1073741824)return N2(u,e,s,m,o,C,b,E);m|=256}break;case 12403:if(u.token!==67174411){if(e&1&&(u.token&1073741824)===1073741824)return N2(u,e,s,m,o,C,b,E);m|=512}break}else if(k===69271571)m|=2,s=g2(u,i,f);else if((k&134217728)===134217728)s=X(u,e);else if(k===8457014)m|=8,A(u,e);else if(e&1&&u.token===131)m|=4096,s=j2(u,e|16384,C,b,E);else if(e&1&&(u.token&1073741824)===1073741824)m|=128;else{if(l&&k===2162700)return B1(u,e,n,C,b,E);k===122?(s=I(u,e,0),u.token!==67174411&&d(u,28,U[u.token&255])):d(u,28,U[u.token&255])}if(m&792&&(u.token&143360?s=I(u,e,0):(u.token&134217728)===134217728?s=X(u,e):u.token===69271571?(m|=2,s=g2(u,e,0)):u.token===122?s=I(u,e,0):e&1&&u.token===131?(m|=4096,s=j2(u,e,C,b,E)):d(u,132)),m&2||(u.tokenValue==="constructor"?((u.token&1073741824)===1073741824?d(u,126):!(m&32)&&u.token===67174411&&(m&920?d(u,51,"accessor"):e&524288||(u.flags&32?d(u,52):u.flags|=32)),m|=64):!(m&4096)&&m&824&&u.tokenValue==="prototype"&&d(u,50)),e&1&&u.token!==67174411)return N2(u,e,s,m,o,C,b,E);let w=Z(u,e,m,f,u.tokenPos,u.linePos,u.colPos);return y(u,e,c,a,g,e&1?{type:"MethodDefinition",kind:!(m&32)&&m&64?"constructor":m&256?"get":m&512?"set":"method",static:(m&32)>0,computed:(m&2)>0,key:s,decorators:o,value:w}:{type:"MethodDefinition",kind:!(m&32)&&m&64?"constructor":m&256?"get":m&512?"set":"method",static:(m&32)>0,computed:(m&2)>0,key:s,value:w})}function j2(u,e,n,i,t){A(u,e);let{tokenValue:o}=u;return o==="constructor"&&d(u,125),A(u,e),y(u,e,n,i,t,{type:"PrivateIdentifier",name:o})}function N2(u,e,n,i,t,o,l,f){let c=null;if(i&8&&d(u,0),u.token===1077936157){A(u,e|32768);let{tokenPos:a,linePos:g,colPos:m}=u;u.token===537079928&&d(u,116),c=K(u,e|16384,2,0,1,0,0,1,a,g,m),(u.token&1073741824)!==1073741824&&(c=N(u,e|16384,c,0,0,a,g,m),c=O(u,e|16384,0,0,a,g,m,c),u.token===18&&(c=e2(u,e,0,o,l,f,c)))}return y(u,e,o,l,f,{type:"PropertyDefinition",key:n,value:c,static:(i&32)>0,computed:(i&2)>0,decorators:t})}function le(u,e,n,i,t,o,l,f){if(u.token&143360)return gu(u,e,n,i,t,o,l,f);(u.token&2097152)!==2097152&&d(u,28,U[u.token&255]);let c=u.token===69271571?_(u,e,n,1,0,1,i,t,o,l,f):Y(u,e,n,1,0,1,i,t,o,l,f);return u.destructible&16&&d(u,48),u.destructible&32&&d(u,48),c}function gu(u,e,n,i,t,o,l,f){let{tokenValue:c,token:a}=u;return e&1024&&((a&537079808)===537079808?d(u,116):(a&36864)===36864&&d(u,115)),(a&20480)===20480&&d(u,100),e&2099200&&a===241773&&d(u,30),a===241739&&i&24&&d(u,98),e&4196352&&a===209008&&d(u,96),A(u,e),n&&u2(u,e,n,c,i,t),y(u,e,o,l,f,{type:"Identifier",name:c})}function yu(u,e,n,i,t,o){if(A(u,e),u.token===8456259)return y(u,e,i,t,o,{type:"JSXFragment",openingFragment:p1(u,e,i,t,o),children:Lu(u,e),closingFragment:e0(u,e,n,u.tokenPos,u.linePos,u.colPos)});let l=null,f=[],c=t0(u,e,n,i,t,o);if(!c.selfClosing){f=Lu(u,e),l=u0(u,e,n,u.tokenPos,u.linePos,u.colPos);let a=M2(l.name);M2(c.name)!==a&&d(u,150,a)}return y(u,e,i,t,o,{type:"JSXElement",children:f,openingElement:c,closingElement:l})}function p1(u,e,n,i,t){return d2(u,e),y(u,e,n,i,t,{type:"JSXOpeningFragment"})}function u0(u,e,n,i,t,o){P(u,e,25);let l=fe(u,e,u.tokenPos,u.linePos,u.colPos);return n?P(u,e,8456259):u.token=d2(u,e),y(u,e,i,t,o,{type:"JSXClosingElement",name:l})}function e0(u,e,n,i,t,o){return P(u,e,25),P(u,e,8456259),y(u,e,i,t,o,{type:"JSXClosingFragment"})}function Lu(u,e){let n=[];for(;u.token!==25;)u.index=u.tokenPos=u.startPos,u.column=u.colPos=u.startColumn,u.line=u.linePos=u.startLine,d2(u,e),n.push(n0(u,e,u.tokenPos,u.linePos,u.colPos));return n}function n0(u,e,n,i,t){if(u.token===138)return i0(u,e,n,i,t);if(u.token===2162700)return de(u,e,0,0,n,i,t);if(u.token===8456258)return yu(u,e,0,n,i,t);d(u,0)}function i0(u,e,n,i,t){d2(u,e);let o={type:"JSXText",value:u.tokenValue};return e&512&&(o.raw=u.tokenRaw),y(u,e,n,i,t,o)}function t0(u,e,n,i,t,o){(u.token&143360)!==143360&&(u.token&4096)!==4096&&d(u,0);let l=fe(u,e,u.tokenPos,u.linePos,u.colPos),f=l0(u,e),c=u.token===8457016;return u.token===8456259?d2(u,e):(P(u,e,8457016),n?P(u,e,8456259):d2(u,e)),y(u,e,i,t,o,{type:"JSXOpeningElement",name:l,attributes:f,selfClosing:c})}function fe(u,e,n,i,t){r2(u);let o=W2(u,e,n,i,t);if(u.token===21)return ce(u,e,o,n,i,t);for(;q(u,e,67108877);)r2(u),o=o0(u,e,o,n,i,t);return o}function o0(u,e,n,i,t,o){let l=W2(u,e,u.tokenPos,u.linePos,u.colPos);return y(u,e,i,t,o,{type:"JSXMemberExpression",object:n,property:l})}function l0(u,e){let n=[];for(;u.token!==8457016&&u.token!==8456259&&u.token!==1048576;)n.push(c0(u,e,u.tokenPos,u.linePos,u.colPos));return n}function f0(u,e,n,i,t){A(u,e),P(u,e,14);let o=R(u,e,1,0,0,u.tokenPos,u.linePos,u.colPos);return P(u,e,1074790415),y(u,e,n,i,t,{type:"JSXSpreadAttribute",argument:o})}function c0(u,e,n,i,t){if(u.token===2162700)return f0(u,e,n,i,t);r2(u);let o=null,l=W2(u,e,n,i,t);if(u.token===21&&(l=ce(u,e,l,n,i,t)),u.token===1077936157){let f=u1(u,e),{tokenPos:c,linePos:a,colPos:g}=u;switch(f){case 134283267:o=X(u,e);break;case 8456258:o=yu(u,e,1,c,a,g);break;case 2162700:o=de(u,e,1,1,c,a,g);break;default:d(u,149)}}return y(u,e,n,i,t,{type:"JSXAttribute",value:o,name:l})}function ce(u,e,n,i,t,o){P(u,e,21);let l=W2(u,e,u.tokenPos,u.linePos,u.colPos);return y(u,e,i,t,o,{type:"JSXNamespacedName",namespace:n,name:l})}function de(u,e,n,i,t,o,l){A(u,e|32768);let{tokenPos:f,linePos:c,colPos:a}=u;if(u.token===14)return d0(u,e,t,o,l);let g=null;return u.token===1074790415?(i&&d(u,152),g=s0(u,e,u.startPos,u.startLine,u.startColumn)):g=R(u,e,1,0,0,f,c,a),n?P(u,e,1074790415):d2(u,e),y(u,e,t,o,l,{type:"JSXExpressionContainer",expression:g})}function d0(u,e,n,i,t){P(u,e,14);let o=R(u,e,1,0,0,u.tokenPos,u.linePos,u.colPos);return P(u,e,1074790415),y(u,e,n,i,t,{type:"JSXSpreadChild",expression:o})}function s0(u,e,n,i,t){return u.startPos=u.tokenPos,u.startLine=u.linePos,u.startColumn=u.colPos,y(u,e,n,i,t,{type:"JSXEmptyExpression"})}function W2(u,e,n,i,t){let{tokenValue:o}=u;return A(u,e),y(u,e,n,i,t,{type:"JSXIdentifier",name:o})}function se(u,e){return c1(u,e,0)}function a0(u,e){let n=new SyntaxError(u+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(n,e)}var ae=a0;function m0(u){let e=[];for(let n of u)try{return n()}catch(i){e.push(i)}throw Object.assign(new Error("All combinations failed"),{errors:e})}var me=m0;var C2=Je(be(),1);function E0(u){if(!u.startsWith("#!"))return"";let e=u.indexOf(` +`);return e===-1?u:u.slice(0,e)}var Ce=E0;function w0(u){let e=Ce(u);e&&(u=u.slice(e.length+1));let n=(0,C2.extract)(u),{pragmas:i,comments:t}=(0,C2.parseWithComments)(n);return{shebang:e,text:u,pragmas:i,comments:t}}function Pe(u){let{pragmas:e}=w0(u);return Object.prototype.hasOwnProperty.call(e,"prettier")||Object.prototype.hasOwnProperty.call(e,"format")}function S0(u){return Array.isArray(u)&&u.length>0}var _2=S0;function $(u){var i;let e=u.range?u.range[0]:u.start,n=((i=u.declaration)==null?void 0:i.decorators)??u.decorators;return _2(n)?Math.min($(n[0]),e):e}function p(u){return u.range?u.range[1]:u.end}function B0(u){return u=typeof u=="function"?{parse:u}:u,{astFormat:"estree",hasPragma:Pe,locStart:$,locEnd:p,...u}}var Ee=B0;var v0=(u,e,n)=>{if(!(u&&e==null))return Array.isArray(e)||typeof e=="string"?e[n<0?e.length+n:n]:e.at(n)},ku=v0;function T0(u){return u=new Set(u),e=>u.has(e==null?void 0:e.type)}var we=T0;var F0=we(["Block","CommentBlock","MultiLine"]),T2=F0;function q0(u){return T2(u)&&u.value[0]==="*"&&/@(?:type|satisfies)\b/.test(u.value)}var Se=q0;function L0(u){let e=`*${u.value}*`.split(` +`);return e.length>1&&e.every(n=>n.trimStart()[0]==="*")}var hu=L0;var F2=null;function q2(u){if(F2!==null&&typeof F2.property){let e=F2;return F2=q2.prototype=null,e}return F2=q2.prototype=u??Object.create(null),new q2}var I0=10;for(let u=0;u<=I0;u++)q2();function Du(u){return q2(u)}function N0(u,e="type"){Du(u);function n(i){let t=i[e],o=u[t];if(!Array.isArray(o))throw Object.assign(new Error(`Missing visitor keys for '${t}'.`),{node:i});return o}return n}var Be=N0;var ve={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","assertions","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes","assertions"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes","assertions"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ImportExpression:["source","attributes"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareEnum:["id","body"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]};var V0=Be(ve),Te=V0;function Au(u,e){if(!(u!==null&&typeof u=="object"))return u;if(Array.isArray(u)){for(let i=0;i{var f;(f=l.leadingComments)!=null&&f.some(Se)&&o.add($(l))}),u=Y2(u,l=>{if(l.type==="ParenthesizedExpression"){let{expression:f}=l;if(f.type==="TypeCastExpression")return f.range=l.range,f;let c=$(l);if(!o.has(c))return f.extra={...f.extra,parenthesized:!0},f}})}if(u=Y2(u,o=>{switch(o.type){case"LogicalExpression":if(Fe(o))return bu(o);break;case"VariableDeclaration":{let l=ku(!1,o.declarations,-1);l!=null&&l.init&&t(o,l);break}case"TSParenthesizedType":return o.typeAnnotation;case"TSTypeParameter":if(typeof o.name=="string"){let l=$(o);o.name={type:"Identifier",name:o.name,range:[l,l+o.name.length]}}break;case"TopicReference":u.extra={...u.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":{let{exported:l}=o;if(n==="meriyah"&&(l==null?void 0:l.type)==="Identifier"){let f=i.slice($(l),p(l));(f.startsWith('"')||f.startsWith("'"))&&(o.exported={...o.exported,type:"Literal",value:o.exported.name,raw:f})}break}case"TSUnionType":case"TSIntersectionType":if(o.types.length===1)return o.types[0];break}}),_2(u.comments)){let o=ku(!1,u.comments,-1);for(let l=u.comments.length-2;l>=0;l--){let f=u.comments[l];p(f)===$(o)&&T2(f)&&T2(o)&&hu(f)&&hu(o)&&(u.comments.splice(l+1,1),f.value+="*//*"+o.value,f.range=[$(f),p(o)]),o=f}}return u.type==="Program"&&(u.range=[0,i.length]),u;function t(o,l){i[p(l)]!==";"&&(o.range=[$(o),p(l)])}}function Fe(u){return u.type==="LogicalExpression"&&u.right.type==="LogicalExpression"&&u.operator===u.right.operator}function bu(u){return Fe(u)?bu({type:"LogicalExpression",operator:u.operator,left:bu({type:"LogicalExpression",operator:u.operator,left:u.left,right:u.right.left,range:[$(u.left),p(u.right.left)]}),right:u.right.right,range:[$(u),p(u)]}):u}var qe=R0;function O0(u){let{filepath:e}=u;if(e){if(e=e.toLowerCase(),e.endsWith(".cjs"))return"script";if(e.endsWith(".mjs"))return"module"}}var Le=O0;var U0={next:!0,ranges:!0,webcompat:!0,loc:!0,raw:!0,directives:!0,globalReturn:!0,impliedStrict:!1,preserveParens:!1,lexical:!1,identifierPattern:!1,jsx:!0,specDeviation:!0,uniqueKeyInPattern:!1};function M0(u,e){let n=[],i=[],t=se(u,{...U0,module:e==="module",onComment:n,onToken:i});return t.comments=n,t.tokens=i,t}function J0(u){var o;let{message:e,line:n,column:i}=u,t=(o=e.match(/^\[(?\d+):(?\d+)]: (?.*)$/))==null?void 0:o.groups;return t&&(e=t.message,typeof n!="number"&&(n=Number(t.line),i=Number(t.column))),typeof n!="number"?u:ae(e,{loc:{start:{line:n,column:i}},cause:u})}function j0(u,e={}){let n=Le(e),i=(n?[n]:["module","script"]).map(o=>()=>M0(u,o)),t;try{t=me(i)}catch({errors:[o]}){throw J0(o)}return qe(t,{parser:"meriyah",text:u})}var X0=Ee(j0);var jn=Pu;export{jn as default,Cu as parsers}; diff --git a/node_modules/prettier/plugins/postcss.js b/node_modules/prettier/plugins/postcss.js index d747188..95b0365 100644 --- a/node_modules/prettier/plugins/postcss.js +++ b/node_modules/prettier/plugins/postcss.js @@ -1,38 +1,38 @@ (function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.postcss=e()}})(function(){"use strict";var Vl=Object.create;var Et=Object.defineProperty;var Yl=Object.getOwnPropertyDescriptor;var Gl=Object.getOwnPropertyNames;var Kl=Object.getPrototypeOf,Hl=Object.prototype.hasOwnProperty;var y=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Cs=(t,e)=>{for(var n in e)Et(t,n,{get:e[n],enumerable:!0})},Os=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Gl(e))!Hl.call(t,s)&&s!==n&&Et(t,s,{get:()=>e[s],enumerable:!(r=Yl(e,s))||r.enumerable});return t};var ue=(t,e,n)=>(n=t!=null?Vl(Kl(t)):{},Os(e||!t||!t.__esModule?Et(n,"default",{value:t,enumerable:!0}):n,t)),Ql=t=>Os(Et({},"__esModule",{value:!0}),t);var Qs=y(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.extract=gc;pe.parse=vc;pe.parseWithComments=Hs;pe.print=xc;pe.strip=wc;var pc=/\*\/$/,hc=/^\/\*\*?/,Gs=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,dc=/(^|\s+)\/\/([^\r\n]*)/g,zs=/^(\r?\n)+/,mc=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,Vs=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,yc=/(\r?\n|^) *\* ?/g,Ks=[];function gc(t){let e=t.match(Gs);return e?e[0].trimLeft():""}function wc(t){let e=t.match(Gs);return e&&e[0]?t.substring(e[0].length):t}function vc(t){return Hs(t).pragmas}function Hs(t){let e=` `;t=t.replace(hc,"").replace(pc,"").replace(yc,"$1");let n="";for(;n!==t;)n=t,t=t.replace(mc,`${e}$1 $2${e}`);t=t.replace(zs,"").trimRight();let r=Object.create(null),s=t.replace(Vs,"").replace(zs,"").trimRight(),i;for(;i=Vs.exec(t);){let o=i[2].replace(dc,"");typeof r[i[1]]=="string"||Array.isArray(r[i[1]])?r[i[1]]=Ks.concat(r[i[1]],o):r[i[1]]=o}return{comments:s,pragmas:r}}function xc({comments:t="",pragmas:e={}}){let n=` -`,r="/**",s=" *",i=" */",o=Object.keys(e),a=o.map(c=>Ys(c,e[c])).reduce((c,f)=>c.concat(f),[]).map(c=>`${s} ${c}${n}`).join("");if(!t){if(o.length===0)return"";if(o.length===1&&!Array.isArray(e[o[0]])){let c=e[o[0]];return`${r} ${Ys(o[0],c)[0]}${i}`}}let u=t.split(n).map(c=>`${s} ${c}`).join(n)+n;return r+n+(t?u:"")+(t&&o.length?s+n:"")+a+i}function Ys(t,e){return Ks.concat(e).map(n=>`@${t} ${n}`.trim())}});var Vt=y((mx,wn)=>{"use strict";wn.exports.isClean=Symbol("isClean");wn.exports.my=Symbol("my")});var Ui=y((yx,vn)=>{var E=String,$i=function(){return{isColorSupported:!1,reset:E,bold:E,dim:E,italic:E,underline:E,inverse:E,hidden:E,strikethrough:E,black:E,red:E,green:E,yellow:E,blue:E,magenta:E,cyan:E,white:E,gray:E,bgBlack:E,bgRed:E,bgGreen:E,bgYellow:E,bgBlue:E,bgMagenta:E,bgCyan:E,bgWhite:E}};vn.exports=$i();vn.exports.createColors=$i});var xn=y(()=>{});var Yt=y((vx,Vi)=>{"use strict";var Wi=Ui(),zi=xn(),st=class t extends Error{constructor(e,n,r,s,i,o){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),s&&(this.source=s),o&&(this.plugin=o),typeof n<"u"&&typeof r<"u"&&(typeof n=="number"?(this.line=n,this.column=r):(this.line=n.line,this.column=n.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let n=this.source;e==null&&(e=Wi.isColorSupported),zi&&e&&(n=zi(n));let r=n.split(/\r?\n/),s=Math.max(this.line-3,0),i=Math.min(this.line+2,r.length),o=String(i).length,a,u;if(e){let{bold:c,red:f,gray:p}=Wi.createColors(!0);a=l=>c(f(l)),u=l=>p(l)}else a=u=c=>c;return r.slice(s,i).map((c,f)=>{let p=s+1+f,l=" "+(" "+p).slice(-o)+" | ";if(p===this.line){let g=u(l.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+u(l)+c+` +`,r="/**",s=" *",i=" */",o=Object.keys(e),a=o.map(c=>Ys(c,e[c])).reduce((c,f)=>c.concat(f),[]).map(c=>`${s} ${c}${n}`).join("");if(!t){if(o.length===0)return"";if(o.length===1&&!Array.isArray(e[o[0]])){let c=e[o[0]];return`${r} ${Ys(o[0],c)[0]}${i}`}}let u=t.split(n).map(c=>`${s} ${c}`).join(n)+n;return r+n+(t?u:"")+(t&&o.length?s+n:"")+a+i}function Ys(t,e){return Ks.concat(e).map(n=>`@${t} ${n}`.trim())}});var Vt=y((mx,gn)=>{"use strict";gn.exports.isClean=Symbol("isClean");gn.exports.my=Symbol("my")});var Ui=y((yx,wn)=>{var E=String,$i=function(){return{isColorSupported:!1,reset:E,bold:E,dim:E,italic:E,underline:E,inverse:E,hidden:E,strikethrough:E,black:E,red:E,green:E,yellow:E,blue:E,magenta:E,cyan:E,white:E,gray:E,bgBlack:E,bgRed:E,bgGreen:E,bgYellow:E,bgBlue:E,bgMagenta:E,bgCyan:E,bgWhite:E}};wn.exports=$i();wn.exports.createColors=$i});var vn=y(()=>{});var Yt=y((vx,Vi)=>{"use strict";var Wi=Ui(),zi=vn(),st=class t extends Error{constructor(e,n,r,s,i,o){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),s&&(this.source=s),o&&(this.plugin=o),typeof n<"u"&&typeof r<"u"&&(typeof n=="number"?(this.line=n,this.column=r):(this.line=n.line,this.column=n.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let n=this.source;e==null&&(e=Wi.isColorSupported),zi&&e&&(n=zi(n));let r=n.split(/\r?\n/),s=Math.max(this.line-3,0),i=Math.min(this.line+2,r.length),o=String(i).length,a,u;if(e){let{bold:c,gray:f,red:p}=Wi.createColors(!0);a=l=>c(p(l)),u=l=>f(l)}else a=u=c=>c;return r.slice(s,i).map((c,f)=>{let p=s+1+f,l=" "+(" "+p).slice(-o)+" | ";if(p===this.line){let g=u(l.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+u(l)+c+` `+g+a("^")}return" "+u(l)+c}).join(` `)}toString(){let e=this.showSourceCode();return e&&(e=` `+e+` -`),this.name+": "+this.message+e}};Vi.exports=st;st.default=st});var Gt=y((xx,Gi)=>{"use strict";var Yi={colon:": ",indent:" ",beforeDecl:` -`,beforeRule:` -`,beforeOpen:" ",beforeClose:` +`),this.name+": "+this.message+e}};Vi.exports=st;st.default=st});var Gt=y((xx,Gi)=>{"use strict";var Yi={after:` +`,beforeClose:` `,beforeComment:` -`,after:` -`,emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};function Qc(t){return t[0].toUpperCase()+t.slice(1)}var it=class{constructor(e){this.builder=e}stringify(e,n){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,n)}document(e){this.body(e)}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}comment(e){let n=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+n+e.text+r+"*/",e)}decl(e,n){let r=this.raw(e,"between","colon"),s=e.prop+r+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),n&&(s+=";"),this.builder(s,e)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}atrule(e,n){let r="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:s&&(r+=" "),e.nodes)this.block(e,r+s);else{let i=(e.raws.between||"")+(n?";":"");this.builder(r+s+i,e)}}body(e){let n=e.nodes.length-1;for(;n>0&&e.nodes[n].type==="comment";)n-=1;let r=this.raw(e,"semicolon");for(let s=0;s{if(s=u.raws[n],typeof s<"u")return!1})}return typeof s>"u"&&(s=Yi[r]),o.rawCache[r]=s,s}rawSemicolon(e){let n;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(n=r.raws.semicolon,typeof n<"u"))return!1}),n}rawEmptyBody(e){let n;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(n=r.raws.after,typeof n<"u"))return!1}),n}rawIndent(e){if(e.raws.indent)return e.raws.indent;let n;return e.walk(r=>{let s=r.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof r.raws.before<"u"){let i=r.raws.before.split(` -`);return n=i[i.length-1],n=n.replace(/\S/g,""),!1}}),n}rawBeforeComment(e,n){let r;return e.walkComments(s=>{if(typeof s.raws.before<"u")return r=s.raws.before,r.includes(` +`,beforeDecl:` +`,beforeOpen:" ",beforeRule:` +`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Qc(t){return t[0].toUpperCase()+t.slice(1)}var it=class{constructor(e){this.builder=e}atrule(e,n){let r="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:s&&(r+=" "),e.nodes)this.block(e,r+s);else{let i=(e.raws.between||"")+(n?";":"");this.builder(r+s+i,e)}}beforeAfter(e,n){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):n==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let s=e.parent,i=0;for(;s&&s.type!=="root";)i+=1,s=s.parent;if(r.includes(` +`)){let o=this.raw(e,null,"indent");if(o.length)for(let a=0;a0&&e.nodes[n].type==="comment";)n-=1;let r=this.raw(e,"semicolon");for(let s=0;s{if(s=u.raws[n],typeof s<"u")return!1})}return typeof s>"u"&&(s=Yi[r]),o.rawCache[r]=s,s}rawBeforeClose(e){let n;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return n=r.raws.after,n.includes(` +`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeComment(e,n){let r;return e.walkComments(s=>{if(typeof s.raws.before<"u")return r=s.raws.before,r.includes(` `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(n,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,n){let r;return e.walkDecls(s=>{if(typeof s.raws.before<"u")return r=s.raws.before,r.includes(` -`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(n,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeRule(e){let n;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return n=r.raws.before,n.includes(` -`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeClose(e){let n;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return n=r.raws.after,n.includes(` -`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let n;return e.walk(r=>{if(r.type!=="decl"&&(n=r.raws.between,typeof n<"u"))return!1}),n}rawColon(e){let n;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return n=r.raws.between.replace(/[^\s:]/g,""),!1}),n}beforeAfter(e,n){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):n==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let s=e.parent,i=0;for(;s&&s.type!=="root";)i+=1,s=s.parent;if(r.includes(` -`)){let o=this.raw(e,null,"indent");if(o.length)for(let a=0;a{"use strict";var jc=Gt();function bn(t,e){new jc(e).stringify(t)}Ki.exports=bn;bn.default=bn});var ut=y((kx,Hi)=>{"use strict";var{isClean:Kt,my:Jc}=Vt(),Xc=Yt(),Zc=Gt(),ef=ot();function kn(t,e){let n=new t.constructor;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||r==="proxyCache")continue;let s=t[r],i=typeof s;r==="parent"&&i==="object"?e&&(n[r]=e):r==="source"?n[r]=s:Array.isArray(s)?n[r]=s.map(o=>kn(o,n)):(i==="object"&&s!==null&&(s=kn(s)),n[r]=s)}return n}var at=class{constructor(e={}){this.raws={},this[Kt]=!1,this[Jc]=!0;for(let n in e)if(n==="nodes"){this.nodes=[];for(let r of e[n])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[n]=e[n]}error(e,n={}){if(this.source){let{start:r,end:s}=this.rangeBy(n);return this.source.input.error(e,{line:r.line,column:r.column},{line:s.line,column:s.column},n)}return new Xc(e)}warn(e,n,r){let s={node:this};for(let i in r)s[i]=r[i];return e.warn(n,s)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(e=ef){e.stringify&&(e=e.stringify);let n="";return e(this,r=>{n+=r}),n}assign(e={}){for(let n in e)this[n]=e[n];return this}clone(e={}){let n=kn(this);for(let r in e)n[r]=e[r];return n}cloneBefore(e={}){let n=this.clone(e);return this.parent.insertBefore(this,n),n}cloneAfter(e={}){let n=this.clone(e);return this.parent.insertAfter(this,n),n}replaceWith(...e){if(this.parent){let n=this,r=!1;for(let s of e)s===this?r=!0:r?(this.parent.insertAfter(n,s),n=s):this.parent.insertBefore(n,s);r||this.remove()}return this}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}before(e){return this.parent.insertBefore(this,e),this}after(e){return this.parent.insertAfter(this,e),this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}raw(e,n){return new Zc().raw(this,e,n)}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}toJSON(e,n){let r={},s=n==null;n=n||new Map;let i=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let a=this[o];if(Array.isArray(a))r[o]=a.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,n):u);else if(typeof a=="object"&&a.toJSON)r[o]=a.toJSON(null,n);else if(o==="source"){let u=n.get(a.input);u==null&&(u=i,n.set(a.input,i),i++),r[o]={inputId:u,start:a.start,end:a.end}}else r[o]=a}return s&&(r.inputs=[...n.keys()].map(o=>o.toJSON())),r}positionInside(e){let n=this.toString(),r=this.source.start.column,s=this.source.start.line;for(let i=0;ie.root().toProxy():e[n]}}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let n=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${n.input.from}:${n.start.line}:${n.start.column}$&`)}return e}markDirty(){if(this[Kt]){this[Kt]=!1;let e=this;for(;e=e.parent;)e[Kt]=!1}}get proxyOf(){return this}};Hi.exports=at;at.default=at});var ct=y((_x,Qi)=>{"use strict";var tf=ut(),lt=class extends tf{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};Qi.exports=lt;lt.default=lt});var Ae=y((Tx,ji)=>{"use strict";var rf=ut(),ft=class extends rf{constructor(e){super(e),this.type="comment"}};ji.exports=ft;ft.default=ft});var se=y((Ex,io)=>{"use strict";var{isClean:Ji,my:Xi}=Vt(),Zi=ct(),eo=Ae(),nf=ut(),to,_n,Tn,ro;function no(t){return t.map(e=>(e.nodes&&(e.nodes=no(e.nodes)),delete e.source,e))}function so(t){if(t[Ji]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)so(e)}var z=class t extends nf{push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}each(e){if(!this.proxyOf.nodes)return;let n=this.getIterator(),r,s;for(;this.indexes[n]{let s;try{s=e(n,r)}catch(i){throw n.addToError(i)}return s!==!1&&n.walk&&(s=n.walk(e)),s})}walkDecls(e,n){return n?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="decl"&&e.test(r.prop))return n(r,s)}):this.walk((r,s)=>{if(r.type==="decl"&&r.prop===e)return n(r,s)}):(n=e,this.walk((r,s)=>{if(r.type==="decl")return n(r,s)}))}walkRules(e,n){return n?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="rule"&&e.test(r.selector))return n(r,s)}):this.walk((r,s)=>{if(r.type==="rule"&&r.selector===e)return n(r,s)}):(n=e,this.walk((r,s)=>{if(r.type==="rule")return n(r,s)}))}walkAtRules(e,n){return n?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="atrule"&&e.test(r.name))return n(r,s)}):this.walk((r,s)=>{if(r.type==="atrule"&&r.name===e)return n(r,s)}):(n=e,this.walk((r,s)=>{if(r.type==="atrule")return n(r,s)}))}walkComments(e){return this.walk((n,r)=>{if(n.type==="comment")return e(n,r)})}append(...e){for(let n of e){let r=this.normalize(n,this.last);for(let s of r)this.proxyOf.nodes.push(s)}return this.markDirty(),this}prepend(...e){e=e.reverse();for(let n of e){let r=this.normalize(n,this.first,"prepend").reverse();for(let s of r)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+r.length}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let n of this.nodes)n.cleanRaws(e)}insertBefore(e,n){let r=this.index(e),s=r===0?"prepend":!1,i=this.normalize(n,this.proxyOf.nodes[r],s).reverse();r=this.index(e);for(let a of i)this.proxyOf.nodes.splice(r,0,a);let o;for(let a in this.indexes)o=this.indexes[a],r<=o&&(this.indexes[a]=o+i.length);return this.markDirty(),this}insertAfter(e,n){let r=this.index(e),s=this.normalize(n,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of s)this.proxyOf.nodes.splice(r+1,0,o);let i;for(let o in this.indexes)i=this.indexes[o],r=e&&(this.indexes[r]=n-1);return this.markDirty(),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(e,n,r){return r||(r=n,n={}),this.walkDecls(s=>{n.props&&!n.props.includes(s.prop)||n.fast&&!s.value.includes(n.fast)||(s.value=s.value.replace(e,r))}),this.markDirty(),this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}normalize(e,n){if(typeof e=="string")e=no(to(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Zi(e)]}else if(e.selector)e=[new _n(e)];else if(e.name)e=[new Tn(e)];else if(e.text)e=[new eo(e)];else throw new Error("Unknown node type in node creation");return e.map(s=>(s[Xi]||t.rebuild(s),s=s.proxyOf,s.parent&&s.parent.removeChild(s),s[Ji]&&so(s),typeof s.raws.before>"u"&&n&&typeof n.raws.before<"u"&&(s.raws.before=n.raws.before.replace(/\S/g,"")),s.parent=this.proxyOf,s))}getProxyProcessor(){return{set(e,n,r){return e[n]===r||(e[n]=r,(n==="name"||n==="params"||n==="selector")&&e.markDirty()),!0},get(e,n){return n==="proxyOf"?e:e[n]?n==="each"||typeof n=="string"&&n.startsWith("walk")?(...r)=>e[n](...r.map(s=>typeof s=="function"?(i,o)=>s(i.toProxy(),o):s)):n==="every"||n==="some"?r=>e[n]((s,...i)=>r(s.toProxy(),...i)):n==="root"?()=>e.root().toProxy():n==="nodes"?e.nodes.map(r=>r.toProxy()):n==="first"||n==="last"?e[n].toProxy():e[n]:e[n]}}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}};z.registerParse=t=>{to=t};z.registerRule=t=>{_n=t};z.registerAtRule=t=>{Tn=t};z.registerRoot=t=>{ro=t};io.exports=z;z.default=z;z.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,Tn.prototype):t.type==="rule"?Object.setPrototypeOf(t,_n.prototype):t.type==="decl"?Object.setPrototypeOf(t,Zi.prototype):t.type==="comment"?Object.setPrototypeOf(t,eo.prototype):t.type==="root"&&Object.setPrototypeOf(t,ro.prototype),t[Xi]=!0,t.nodes&&t.nodes.forEach(e=>{z.rebuild(e)})}});var tr=y((Sx,lo)=>{"use strict";var En="'".charCodeAt(0),oo='"'.charCodeAt(0),Ht="\\".charCodeAt(0),ao="/".charCodeAt(0),Qt=` -`.charCodeAt(0),pt=" ".charCodeAt(0),jt="\f".charCodeAt(0),Jt=" ".charCodeAt(0),Xt="\r".charCodeAt(0),sf="[".charCodeAt(0),of="]".charCodeAt(0),af="(".charCodeAt(0),uf=")".charCodeAt(0),lf="{".charCodeAt(0),cf="}".charCodeAt(0),ff=";".charCodeAt(0),pf="*".charCodeAt(0),hf=":".charCodeAt(0),df="@".charCodeAt(0),Zt=/[\t\n\f\r "#'()/;[\\\]{}]/g,er=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,mf=/.[\n"'(/\\]/,uo=/[\da-f]/i;lo.exports=function(e,n={}){let r=e.css.valueOf(),s=n.ignoreErrors,i,o,a,u,c,f,p,l,g,x,h=r.length,d=0,m=[],b=[];function w(){return d}function v(U){throw e.error("Unclosed "+U,d)}function N(){return b.length===0&&d>=h}function $(U){if(b.length)return b.pop();if(d>=h)return;let S=U?U.ignoreUnclosed:!1;switch(i=r.charCodeAt(d),i){case Qt:case pt:case Jt:case Xt:case jt:{o=d;do o+=1,i=r.charCodeAt(o);while(i===pt||i===Qt||i===Jt||i===Xt||i===jt);x=["space",r.slice(d,o)],d=o-1;break}case sf:case of:case lf:case cf:case hf:case ff:case uf:{let C=String.fromCharCode(i);x=[C,C,d];break}case af:{if(l=m.length?m.pop()[1]:"",g=r.charCodeAt(d+1),l==="url"&&g!==En&&g!==oo&&g!==pt&&g!==Qt&&g!==Jt&&g!==jt&&g!==Xt){o=d;do{if(f=!1,o=r.indexOf(")",o+1),o===-1)if(s||S){o=d;break}else v("bracket");for(p=o;r.charCodeAt(p-1)===Ht;)p-=1,f=!f}while(f);x=["brackets",r.slice(d,o+1),d,o],d=o}else o=r.indexOf(")",d+1),u=r.slice(d,o+1),o===-1||mf.test(u)?x=["(","(",d]:(x=["brackets",u,d,o],d=o);break}case En:case oo:{a=i===En?"'":'"',o=d;do{if(f=!1,o=r.indexOf(a,o+1),o===-1)if(s||S){o=d+1;break}else v("string");for(p=o;r.charCodeAt(p-1)===Ht;)p-=1,f=!f}while(f);x=["string",r.slice(d,o+1),d,o],d=o;break}case df:{Zt.lastIndex=d+1,Zt.test(r),Zt.lastIndex===0?o=r.length-1:o=Zt.lastIndex-2,x=["at-word",r.slice(d,o+1),d,o],d=o;break}case Ht:{for(o=d,c=!0;r.charCodeAt(o+1)===Ht;)o+=1,c=!c;if(i=r.charCodeAt(o+1),c&&i!==ao&&i!==pt&&i!==Qt&&i!==Jt&&i!==Xt&&i!==jt&&(o+=1,uo.test(r.charAt(o)))){for(;uo.test(r.charAt(o+1));)o+=1;r.charCodeAt(o+1)===pt&&(o+=1)}x=["word",r.slice(d,o+1),d,o],d=o;break}default:{i===ao&&r.charCodeAt(d+1)===pf?(o=r.indexOf("*/",d+2)+1,o===0&&(s||S?o=r.length:v("comment")),x=["comment",r.slice(d,o+1),d,o],d=o):(er.lastIndex=d+1,er.test(r),er.lastIndex===0?o=r.length-1:o=er.lastIndex-2,x=["word",r.slice(d,o+1),d,o],m.push(x),d=o);break}}return d++,x}function H(U){b.push(U)}return{back:H,nextToken:$,endOfFile:N,position:w}}});var rr=y((Cx,fo)=>{"use strict";var co=se(),Ne=class extends co{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};fo.exports=Ne;Ne.default=Ne;co.registerAtRule(Ne)});var Pe=y((Ox,yo)=>{"use strict";var po=se(),ho,mo,ie=class extends po{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}removeChild(e,n){let r=this.index(e);return!n&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}normalize(e,n,r){let s=super.normalize(e);if(n){if(r==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(let i of s)i.raws.before=n.raws.before}return s}toResult(e={}){return new ho(new mo,this,e).stringify()}};ie.registerLazyResult=t=>{ho=t};ie.registerProcessor=t=>{mo=t};yo.exports=ie;ie.default=ie;po.registerRoot(ie)});var Sn=y((Ax,go)=>{"use strict";var ht={split(t,e,n){let r=[],s="",i=!1,o=0,a=!1,u="",c=!1;for(let f of t)c?c=!1:f==="\\"?c=!0:a?f===u&&(a=!1):f==='"'||f==="'"?(a=!0,u=f):f==="("?o+=1:f===")"?o>0&&(o-=1):o===0&&e.includes(f)&&(i=!0),i?(s!==""&&r.push(s.trim()),s="",i=!1):s+=f;return(n||s!=="")&&r.push(s.trim()),r},space(t){let e=[" ",` -`," "];return ht.split(t,e)},comma(t){return ht.split(t,[","],!0)}};go.exports=ht;ht.default=ht});var nr=y((Nx,vo)=>{"use strict";var wo=se(),yf=Sn(),Re=class extends wo{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return yf.comma(this.selector)}set selectors(e){let n=this.selector?this.selector.match(/,\s*/):null,r=n?n[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};vo.exports=Re;Re.default=Re;wo.registerRule(Re)});var sr=y((Px,ko)=>{"use strict";var gf=ct(),wf=tr(),vf=Ae(),xf=rr(),bf=Pe(),xo=nr(),bo={empty:!0,space:!0};function kf(t){for(let e=t.length-1;e>=0;e--){let n=t[e],r=n[3]||n[2];if(r)return r}}var Cn=class{constructor(e){this.input=e,this.root=new bf,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=wf(this.input)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}comment(e){let n=new vf;this.init(n,e[2]),n.source.end=this.getPosition(e[3]||e[2]);let r=e[1].slice(2,-2);if(/^\s*$/.test(r))n.text="",n.raws.left=r,n.raws.right="";else{let s=r.match(/^(\s*)([^]*\S)(\s*)$/);n.text=s[2],n.raws.left=s[1],n.raws.right=s[3]}}emptyRule(e){let n=new xo;this.init(n,e[2]),n.selector="",n.raws.between="",this.current=n}other(e){let n=!1,r=null,s=!1,i=null,o=[],a=e[1].startsWith("--"),u=[],c=e;for(;c;){if(r=c[0],u.push(c),r==="("||r==="[")i||(i=c),o.push(r==="("?")":"]");else if(a&&s&&r==="{")i||(i=c),o.push("}");else if(o.length===0)if(r===";")if(s){this.decl(u,a);return}else break;else if(r==="{"){this.rule(u);return}else if(r==="}"){this.tokenizer.back(u.pop()),n=!0;break}else r===":"&&(s=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),o.length>0&&this.unclosedBracket(i),n&&s){if(!a)for(;u.length&&(c=u[u.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,a)}else this.unknownWord(u)}rule(e){e.pop();let n=new xo;this.init(n,e[0][2]),n.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(n,"selector",e),this.current=n}decl(e,n){let r=new gf;this.init(r,e[0][2]);let s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(s[3]||s[2]||kf(e));e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let i;for(;e.length;)if(i=e.shift(),i[0]===":"){r.raws.between+=i[1];break}else i[0]==="word"&&/\w/.test(i[1])&&this.unknownWord([i]),r.raws.between+=i[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(i=e[c],i[1].toLowerCase()==="!important"){r.important=!0;let f=this.stringFrom(e,c);f=this.spacesFromEnd(e)+f,f!==" !important"&&(r.raws.important=f);break}else if(i[1].toLowerCase()==="important"){let f=e.slice(0),p="";for(let l=c;l>0;l--){let g=f[l][0];if(p.trim().indexOf("!")===0&&g!=="space")break;p=f.pop()[1]+p}p.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=p,e=f)}if(i[0]!=="space"&&i[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(r.raws.between+=o.map(c=>c[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),n),r.value.includes(":")&&!n&&this.checkMissedSemicolon(e)}atrule(e){let n=new xf;n.name=e[1].slice(1),n.name===""&&this.unnamedAtrule(n,e),this.init(n,e[2]);let r,s,i,o=!1,a=!1,u=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?c.push(r==="("?")":"]"):r==="{"&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),c.length===0)if(r===";"){n.source.end=this.getPosition(e[2]),this.semicolon=!0;break}else if(r==="{"){a=!0;break}else if(r==="}"){if(u.length>0){for(i=u.length-1,s=u[i];s&&s[0]==="space";)s=u[--i];s&&(n.source.end=this.getPosition(s[3]||s[2]))}this.end(e);break}else u.push(e);else u.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(n.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(n,"params",u),o&&(e=u[u.length-1],n.source.end=this.getPosition(e[3]||e[2]),this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),a&&(n.nodes=[],this.current=n)}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let n=this.current.nodes[this.current.nodes.length-1];n&&n.type==="rule"&&!n.raws.ownSemicolon&&(n.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let n=this.input.fromOffset(e);return{offset:e,line:n.line,column:n.col}}init(e,n){this.current.push(e),e.source={start:this.getPosition(n),input:this.input},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}raw(e,n,r,s){let i,o,a=r.length,u="",c=!0,f,p;for(let l=0;lg+x[1],"");e.raws[n]={value:u,raw:l}}e[n]=u}spacesAndCommentsFromEnd(e){let n,r="";for(;e.length&&(n=e[e.length-1][0],!(n!=="space"&&n!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let n,r="";for(;e.length&&(n=e[0][0],!(n!=="space"&&n!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let n,r="";for(;e.length&&(n=e[e.length-1][0],n==="space");)r=e.pop()[1]+r;return r}stringFrom(e,n){let r="";for(let s=n;s=0&&(s=e[i],!(s[0]!=="space"&&(r+=1,r===2)));i--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}};ko.exports=Cn});var _o=y(()=>{});var Eo=y((qx,To)=>{var _f="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Tf=(t,e=21)=>(n=e)=>{let r="",s=n;for(;s--;)r+=t[Math.random()*t.length|0];return r},Ef=(t=21)=>{let e="",n=t;for(;n--;)e+=_f[Math.random()*64|0];return e};To.exports={nanoid:Ef,customAlphabet:Tf}});var On=y((Dx,So)=>{So.exports=class{}});var qe=y((Mx,No)=>{"use strict";var{SourceMapConsumer:Sf,SourceMapGenerator:Cf}=_o(),{fileURLToPath:Co,pathToFileURL:ir}={},{resolve:Pn,isAbsolute:Rn}={},{nanoid:Of}=Eo(),An=xn(),Oo=Yt(),Af=On(),Nn=Symbol("fromOffsetCache"),Nf=!!(Sf&&Cf),Ao=!!(Pn&&Rn),Ie=class{constructor(e,n={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,n.from&&(!Ao||/^\w+:\/\//.test(n.from)||Rn(n.from)?this.file=n.from:this.file=Pn(n.from)),Ao&&Nf){let r=new Af(this.css,n);if(r.text){this.map=r;let s=r.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}fromOffset(e){let n,r;if(this[Nn])r=this[Nn];else{let i=this.css.split(` -`);r=new Array(i.length);let o=0;for(let a=0,u=i.length;a=n)s=r.length-1;else{let i=r.length-2,o;for(;s>1),e=r[o+1])s=o+1;else{s=o;break}}return{line:s+1,col:e-r[s]+1}}error(e,n,r,s={}){let i,o,a;if(n&&typeof n=="object"){let c=n,f=r;if(typeof c.offset=="number"){let p=this.fromOffset(c.offset);n=p.line,r=p.col}else n=c.line,r=c.column;if(typeof f.offset=="number"){let p=this.fromOffset(f.offset);o=p.line,a=p.col}else o=f.line,a=f.column}else if(!r){let c=this.fromOffset(n);n=c.line,r=c.col}let u=this.origin(n,r,o,a);return u?i=new Oo(e,u.endLine===void 0?u.line:{line:u.line,column:u.column},u.endLine===void 0?u.column:{line:u.endLine,column:u.endColumn},u.source,u.file,s.plugin):i=new Oo(e,o===void 0?n:{line:n,column:r},o===void 0?r:{line:o,column:a},this.css,this.file,s.plugin),i.input={line:n,column:r,endLine:o,endColumn:a,source:this.css},this.file&&(ir&&(i.input.url=ir(this.file).toString()),i.input.file=this.file),i}origin(e,n,r,s){if(!this.map)return!1;let i=this.map.consumer(),o=i.originalPositionFor({line:e,column:n});if(!o.source)return!1;let a;typeof r=="number"&&(a=i.originalPositionFor({line:r,column:s}));let u;Rn(o.source)?u=ir(o.source):u=new URL(o.source,this.map.consumer().sourceRoot||ir(this.map.mapFile));let c={url:u.toString(),line:o.line,column:o.column,endLine:a&&a.line,endColumn:a&&a.column};if(u.protocol==="file:")if(Co)c.file=Co(u);else throw new Error("file: protocol is not available in this PostCSS build");let f=i.sourceContentFor(o.source);return f&&(c.source=f),c}mapResolve(e){return/^\w+:\/\//.test(e)?e:Pn(this.map.consumer().sourceRoot||this.map.root||".",e)}get from(){return this.file||this.id}toJSON(){let e={};for(let n of["hasBOM","css","file","id"])this[n]!=null&&(e[n]=this[n]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};No.exports=Ie;Ie.default=Ie;An&&An.registerInput&&An.registerInput(Ie)});var dt=y((Bx,Po)=>{"use strict";var Pf=se(),Rf=sr(),If=qe();function or(t,e){let n=new If(t,e),r=new Rf(n);try{r.parse()}catch(s){throw s}return r.root}Po.exports=or;or.default=or;Pf.registerParse(or)});var Ro=y((Fx,In)=>{var qf=tr(),Df=qe();In.exports={isInlineComment(t){if(t[0]==="word"&&t[1].slice(0,2)==="//"){let e=t,n=[],r,s;for(;t;){if(/\r?\n/.test(t[1])){if(/['"].*\r?\n/.test(t[1])){n.push(t[1].substring(0,t[1].indexOf(` +`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(n,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let n;return e.walk(r=>{if(r.type!=="decl"&&(n=r.raws.between,typeof n<"u"))return!1}),n}rawBeforeRule(e){let n;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return n=r.raws.before,n.includes(` +`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawColon(e){let n;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return n=r.raws.between.replace(/[^\s:]/g,""),!1}),n}rawEmptyBody(e){let n;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(n=r.raws.after,typeof n<"u"))return!1}),n}rawIndent(e){if(e.raws.indent)return e.raws.indent;let n;return e.walk(r=>{let s=r.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof r.raws.before<"u"){let i=r.raws.before.split(` +`);return n=i[i.length-1],n=n.replace(/\S/g,""),!1}}),n}rawSemicolon(e){let n;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(n=r.raws.semicolon,typeof n<"u"))return!1}),n}rawValue(e,n){let r=e[n],s=e.raws[n];return s&&s.value===r?s.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,n){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,n)}};Gi.exports=it;it.default=it});var ot=y((bx,Ki)=>{"use strict";var jc=Gt();function xn(t,e){new jc(e).stringify(t)}Ki.exports=xn;xn.default=xn});var ut=y((kx,Hi)=>{"use strict";var{isClean:Kt,my:Jc}=Vt(),Xc=Yt(),Zc=Gt(),ef=ot();function bn(t,e){let n=new t.constructor;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||r==="proxyCache")continue;let s=t[r],i=typeof s;r==="parent"&&i==="object"?e&&(n[r]=e):r==="source"?n[r]=s:Array.isArray(s)?n[r]=s.map(o=>bn(o,n)):(i==="object"&&s!==null&&(s=bn(s)),n[r]=s)}return n}var at=class{constructor(e={}){this.raws={},this[Kt]=!1,this[Jc]=!0;for(let n in e)if(n==="nodes"){this.nodes=[];for(let r of e[n])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[n]=e[n]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let n=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${n.input.from}:${n.start.line}:${n.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let n in e)this[n]=e[n];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let n=bn(this);for(let r in e)n[r]=e[r];return n}cloneAfter(e={}){let n=this.clone(e);return this.parent.insertAfter(this,n),n}cloneBefore(e={}){let n=this.clone(e);return this.parent.insertBefore(this,n),n}error(e,n={}){if(this.source){let{end:r,start:s}=this.rangeBy(n);return this.source.input.error(e,{column:s.column,line:s.line},{column:r.column,line:r.line},n)}return new Xc(e)}getProxyProcessor(){return{get(e,n){return n==="proxyOf"?e:n==="root"?()=>e.root().toProxy():e[n]},set(e,n,r){return e[n]===r||(e[n]=r,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&e.markDirty()),!0}}}markDirty(){if(this[Kt]){this[Kt]=!1;let e=this;for(;e=e.parent;)e[Kt]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,n){let r=this.source.start;if(e.index)r=this.positionInside(e.index,n);else if(e.word){n=this.toString();let s=n.indexOf(e.word);s!==-1&&(r=this.positionInside(s,n))}return r}positionInside(e,n){let r=n||this.toString(),s=this.source.start.column,i=this.source.start.line;for(let o=0;otypeof u=="object"&&u.toJSON?u.toJSON(null,n):u);else if(typeof a=="object"&&a.toJSON)r[o]=a.toJSON(null,n);else if(o==="source"){let u=n.get(a.input);u==null&&(u=i,n.set(a.input,i),i++),r[o]={end:a.end,inputId:u,start:a.start}}else r[o]=a}return s&&(r.inputs=[...n.keys()].map(o=>o.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=ef){e.stringify&&(e=e.stringify);let n="";return e(this,r=>{n+=r}),n}warn(e,n,r){let s={node:this};for(let i in r)s[i]=r[i];return e.warn(n,s)}};Hi.exports=at;at.default=at});var ct=y((_x,Qi)=>{"use strict";var tf=ut(),lt=class extends tf{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};Qi.exports=lt;lt.default=lt});var Ae=y((Tx,ji)=>{"use strict";var rf=ut(),ft=class extends rf{constructor(e){super(e),this.type="comment"}};ji.exports=ft;ft.default=ft});var se=y((Ex,io)=>{"use strict";var{isClean:Ji,my:Xi}=Vt(),Zi=ct(),eo=Ae(),nf=ut(),to,kn,_n,ro;function no(t){return t.map(e=>(e.nodes&&(e.nodes=no(e.nodes)),delete e.source,e))}function so(t){if(t[Ji]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)so(e)}var z=class t extends nf{append(...e){for(let n of e){let r=this.normalize(n,this.last);for(let s of r)this.proxyOf.nodes.push(s)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let n of this.nodes)n.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let n=this.getIterator(),r,s;for(;this.indexes[n]e[n](...r.map(s=>typeof s=="function"?(i,o)=>s(i.toProxy(),o):s)):n==="every"||n==="some"?r=>e[n]((s,...i)=>r(s.toProxy(),...i)):n==="root"?()=>e.root().toProxy():n==="nodes"?e.nodes.map(r=>r.toProxy()):n==="first"||n==="last"?e[n].toProxy():e[n]:e[n]},set(e,n,r){return e[n]===r||(e[n]=r,(n==="name"||n==="params"||n==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,n){let r=this.index(e),s=this.normalize(n,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of s)this.proxyOf.nodes.splice(r+1,0,o);let i;for(let o in this.indexes)i=this.indexes[o],r"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Zi(e)]}else if(e.selector)e=[new kn(e)];else if(e.name)e=[new _n(e)];else if(e.text)e=[new eo(e)];else throw new Error("Unknown node type in node creation");return e.map(s=>(s[Xi]||t.rebuild(s),s=s.proxyOf,s.parent&&s.parent.removeChild(s),s[Ji]&&so(s),typeof s.raws.before>"u"&&n&&typeof n.raws.before<"u"&&(s.raws.before=n.raws.before.replace(/\S/g,"")),s.parent=this.proxyOf,s))}prepend(...e){e=e.reverse();for(let n of e){let r=this.normalize(n,this.first,"prepend").reverse();for(let s of r)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let n;for(let r in this.indexes)n=this.indexes[r],n>=e&&(this.indexes[r]=n-1);return this.markDirty(),this}replaceValues(e,n,r){return r||(r=n,n={}),this.walkDecls(s=>{n.props&&!n.props.includes(s.prop)||n.fast&&!s.value.includes(n.fast)||(s.value=s.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((n,r)=>{let s;try{s=e(n,r)}catch(i){throw n.addToError(i)}return s!==!1&&n.walk&&(s=n.walk(e)),s})}walkAtRules(e,n){return n?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="atrule"&&e.test(r.name))return n(r,s)}):this.walk((r,s)=>{if(r.type==="atrule"&&r.name===e)return n(r,s)}):(n=e,this.walk((r,s)=>{if(r.type==="atrule")return n(r,s)}))}walkComments(e){return this.walk((n,r)=>{if(n.type==="comment")return e(n,r)})}walkDecls(e,n){return n?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="decl"&&e.test(r.prop))return n(r,s)}):this.walk((r,s)=>{if(r.type==="decl"&&r.prop===e)return n(r,s)}):(n=e,this.walk((r,s)=>{if(r.type==="decl")return n(r,s)}))}walkRules(e,n){return n?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="rule"&&e.test(r.selector))return n(r,s)}):this.walk((r,s)=>{if(r.type==="rule"&&r.selector===e)return n(r,s)}):(n=e,this.walk((r,s)=>{if(r.type==="rule")return n(r,s)}))}};z.registerParse=t=>{to=t};z.registerRule=t=>{kn=t};z.registerAtRule=t=>{_n=t};z.registerRoot=t=>{ro=t};io.exports=z;z.default=z;z.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,_n.prototype):t.type==="rule"?Object.setPrototypeOf(t,kn.prototype):t.type==="decl"?Object.setPrototypeOf(t,Zi.prototype):t.type==="comment"?Object.setPrototypeOf(t,eo.prototype):t.type==="root"&&Object.setPrototypeOf(t,ro.prototype),t[Xi]=!0,t.nodes&&t.nodes.forEach(e=>{z.rebuild(e)})}});var tr=y((Sx,lo)=>{"use strict";var Tn="'".charCodeAt(0),oo='"'.charCodeAt(0),Ht="\\".charCodeAt(0),ao="/".charCodeAt(0),Qt=` +`.charCodeAt(0),pt=" ".charCodeAt(0),jt="\f".charCodeAt(0),Jt=" ".charCodeAt(0),Xt="\r".charCodeAt(0),sf="[".charCodeAt(0),of="]".charCodeAt(0),af="(".charCodeAt(0),uf=")".charCodeAt(0),lf="{".charCodeAt(0),cf="}".charCodeAt(0),ff=";".charCodeAt(0),pf="*".charCodeAt(0),hf=":".charCodeAt(0),df="@".charCodeAt(0),Zt=/[\t\n\f\r "#'()/;[\\\]{}]/g,er=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,mf=/.[\n"'(/\\]/,uo=/[\da-f]/i;lo.exports=function(e,n={}){let r=e.css.valueOf(),s=n.ignoreErrors,i,o,a,u,c,f,p,l,g,x,h=r.length,d=0,m=[],b=[];function w(){return d}function v(U){throw e.error("Unclosed "+U,d)}function N(){return b.length===0&&d>=h}function $(U){if(b.length)return b.pop();if(d>=h)return;let S=U?U.ignoreUnclosed:!1;switch(i=r.charCodeAt(d),i){case Qt:case pt:case Jt:case Xt:case jt:{o=d;do o+=1,i=r.charCodeAt(o);while(i===pt||i===Qt||i===Jt||i===Xt||i===jt);x=["space",r.slice(d,o)],d=o-1;break}case sf:case of:case lf:case cf:case hf:case ff:case uf:{let C=String.fromCharCode(i);x=[C,C,d];break}case af:{if(l=m.length?m.pop()[1]:"",g=r.charCodeAt(d+1),l==="url"&&g!==Tn&&g!==oo&&g!==pt&&g!==Qt&&g!==Jt&&g!==jt&&g!==Xt){o=d;do{if(f=!1,o=r.indexOf(")",o+1),o===-1)if(s||S){o=d;break}else v("bracket");for(p=o;r.charCodeAt(p-1)===Ht;)p-=1,f=!f}while(f);x=["brackets",r.slice(d,o+1),d,o],d=o}else o=r.indexOf(")",d+1),u=r.slice(d,o+1),o===-1||mf.test(u)?x=["(","(",d]:(x=["brackets",u,d,o],d=o);break}case Tn:case oo:{a=i===Tn?"'":'"',o=d;do{if(f=!1,o=r.indexOf(a,o+1),o===-1)if(s||S){o=d+1;break}else v("string");for(p=o;r.charCodeAt(p-1)===Ht;)p-=1,f=!f}while(f);x=["string",r.slice(d,o+1),d,o],d=o;break}case df:{Zt.lastIndex=d+1,Zt.test(r),Zt.lastIndex===0?o=r.length-1:o=Zt.lastIndex-2,x=["at-word",r.slice(d,o+1),d,o],d=o;break}case Ht:{for(o=d,c=!0;r.charCodeAt(o+1)===Ht;)o+=1,c=!c;if(i=r.charCodeAt(o+1),c&&i!==ao&&i!==pt&&i!==Qt&&i!==Jt&&i!==Xt&&i!==jt&&(o+=1,uo.test(r.charAt(o)))){for(;uo.test(r.charAt(o+1));)o+=1;r.charCodeAt(o+1)===pt&&(o+=1)}x=["word",r.slice(d,o+1),d,o],d=o;break}default:{i===ao&&r.charCodeAt(d+1)===pf?(o=r.indexOf("*/",d+2)+1,o===0&&(s||S?o=r.length:v("comment")),x=["comment",r.slice(d,o+1),d,o],d=o):(er.lastIndex=d+1,er.test(r),er.lastIndex===0?o=r.length-1:o=er.lastIndex-2,x=["word",r.slice(d,o+1),d,o],m.push(x),d=o);break}}return d++,x}function H(U){b.push(U)}return{back:H,endOfFile:N,nextToken:$,position:w}}});var rr=y((Cx,fo)=>{"use strict";var co=se(),Ne=class extends co{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};fo.exports=Ne;Ne.default=Ne;co.registerAtRule(Ne)});var Pe=y((Ox,yo)=>{"use strict";var po=se(),ho,mo,ie=class extends po{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,n,r){let s=super.normalize(e);if(n){if(r==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(let i of s)i.raws.before=n.raws.before}return s}removeChild(e,n){let r=this.index(e);return!n&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new ho(new mo,this,e).stringify()}};ie.registerLazyResult=t=>{ho=t};ie.registerProcessor=t=>{mo=t};yo.exports=ie;ie.default=ie;po.registerRoot(ie)});var En=y((Ax,go)=>{"use strict";var ht={comma(t){return ht.split(t,[","],!0)},space(t){let e=[" ",` +`," "];return ht.split(t,e)},split(t,e,n){let r=[],s="",i=!1,o=0,a=!1,u="",c=!1;for(let f of t)c?c=!1:f==="\\"?c=!0:a?f===u&&(a=!1):f==='"'||f==="'"?(a=!0,u=f):f==="("?o+=1:f===")"?o>0&&(o-=1):o===0&&e.includes(f)&&(i=!0),i?(s!==""&&r.push(s.trim()),s="",i=!1):s+=f;return(n||s!=="")&&r.push(s.trim()),r}};go.exports=ht;ht.default=ht});var nr=y((Nx,vo)=>{"use strict";var wo=se(),yf=En(),Re=class extends wo{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return yf.comma(this.selector)}set selectors(e){let n=this.selector?this.selector.match(/,\s*/):null,r=n?n[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};vo.exports=Re;Re.default=Re;wo.registerRule(Re)});var sr=y((Px,ko)=>{"use strict";var gf=ct(),wf=tr(),vf=Ae(),xf=rr(),bf=Pe(),xo=nr(),bo={empty:!0,space:!0};function kf(t){for(let e=t.length-1;e>=0;e--){let n=t[e],r=n[3]||n[2];if(r)return r}}var Sn=class{constructor(e){this.input=e,this.root=new bf,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let n=new xf;n.name=e[1].slice(1),n.name===""&&this.unnamedAtrule(n,e),this.init(n,e[2]);let r,s,i,o=!1,a=!1,u=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?c.push(r==="("?")":"]"):r==="{"&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),c.length===0)if(r===";"){n.source.end=this.getPosition(e[2]),this.semicolon=!0;break}else if(r==="{"){a=!0;break}else if(r==="}"){if(u.length>0){for(i=u.length-1,s=u[i];s&&s[0]==="space";)s=u[--i];s&&(n.source.end=this.getPosition(s[3]||s[2]))}this.end(e);break}else u.push(e);else u.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(n.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(n,"params",u),o&&(e=u[u.length-1],n.source.end=this.getPosition(e[3]||e[2]),this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),a&&(n.nodes=[],this.current=n)}checkMissedSemicolon(e){let n=this.colon(e);if(n===!1)return;let r=0,s;for(let i=n-1;i>=0&&(s=e[i],!(s[0]!=="space"&&(r+=1,r===2)));i--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(e){let n=0,r,s,i;for(let[o,a]of e.entries()){if(r=a,s=r[0],s==="("&&(n+=1),s===")"&&(n-=1),n===0&&s===":")if(!i)this.doubleColon(r);else{if(i[0]==="word"&&i[1]==="progid")continue;return o}i=r}return!1}comment(e){let n=new vf;this.init(n,e[2]),n.source.end=this.getPosition(e[3]||e[2]);let r=e[1].slice(2,-2);if(/^\s*$/.test(r))n.text="",n.raws.left=r,n.raws.right="";else{let s=r.match(/^(\s*)([^]*\S)(\s*)$/);n.text=s[2],n.raws.left=s[1],n.raws.right=s[3]}}createTokenizer(){this.tokenizer=wf(this.input)}decl(e,n){let r=new gf;this.init(r,e[0][2]);let s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(s[3]||s[2]||kf(e));e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let i;for(;e.length;)if(i=e.shift(),i[0]===":"){r.raws.between+=i[1];break}else i[0]==="word"&&/\w/.test(i[1])&&this.unknownWord([i]),r.raws.between+=i[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(i=e[c],i[1].toLowerCase()==="!important"){r.important=!0;let f=this.stringFrom(e,c);f=this.spacesFromEnd(e)+f,f!==" !important"&&(r.raws.important=f);break}else if(i[1].toLowerCase()==="important"){let f=e.slice(0),p="";for(let l=c;l>0;l--){let g=f[l][0];if(p.trim().indexOf("!")===0&&g!=="space")break;p=f.pop()[1]+p}p.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=p,e=f)}if(i[0]!=="space"&&i[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(r.raws.between+=o.map(c=>c[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),n),r.value.includes(":")&&!n&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let n=new xo;this.init(n,e[2]),n.selector="",n.raws.between="",this.current=n}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let n=this.current.nodes[this.current.nodes.length-1];n&&n.type==="rule"&&!n.raws.ownSemicolon&&(n.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let n=this.input.fromOffset(e);return{column:n.col,line:n.line,offset:e}}init(e,n){this.current.push(e),e.source={input:this.input,start:this.getPosition(n)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let n=!1,r=null,s=!1,i=null,o=[],a=e[1].startsWith("--"),u=[],c=e;for(;c;){if(r=c[0],u.push(c),r==="("||r==="[")i||(i=c),o.push(r==="("?")":"]");else if(a&&s&&r==="{")i||(i=c),o.push("}");else if(o.length===0)if(r===";")if(s){this.decl(u,a);return}else break;else if(r==="{"){this.rule(u);return}else if(r==="}"){this.tokenizer.back(u.pop()),n=!0;break}else r===":"&&(s=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),o.length>0&&this.unclosedBracket(i),n&&s){if(!a)for(;u.length&&(c=u[u.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,a)}else this.unknownWord(u)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,n,r,s){let i,o,a=r.length,u="",c=!0,f,p;for(let l=0;lg+x[1],"");e.raws[n]={raw:l,value:u}}e[n]=u}rule(e){e.pop();let n=new xo;this.init(n,e[0][2]),n.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(n,"selector",e),this.current=n}spacesAndCommentsFromEnd(e){let n,r="";for(;e.length&&(n=e[e.length-1][0],!(n!=="space"&&n!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let n,r="";for(;e.length&&(n=e[0][0],!(n!=="space"&&n!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let n,r="";for(;e.length&&(n=e[e.length-1][0],n==="space");)r=e.pop()[1]+r;return r}stringFrom(e,n){let r="";for(let s=n;s{});var Eo=y((qx,To)=>{var _f="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Tf=(t,e=21)=>(n=e)=>{let r="",s=n;for(;s--;)r+=t[Math.random()*t.length|0];return r},Ef=(t=21)=>{let e="",n=t;for(;n--;)e+=_f[Math.random()*64|0];return e};To.exports={nanoid:Ef,customAlphabet:Tf}});var Cn=y((Dx,So)=>{So.exports=class{}});var qe=y((Mx,No)=>{"use strict";var{SourceMapConsumer:Sf,SourceMapGenerator:Cf}=_o(),{fileURLToPath:Co,pathToFileURL:ir}={},{isAbsolute:Nn,resolve:Pn}={},{nanoid:Of}=Eo(),On=vn(),Oo=Yt(),Af=Cn(),An=Symbol("fromOffsetCache"),Nf=!!(Sf&&Cf),Ao=!!(Pn&&Nn),Ie=class{constructor(e,n={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,n.from&&(!Ao||/^\w+:\/\//.test(n.from)||Nn(n.from)?this.file=n.from:this.file=Pn(n.from)),Ao&&Nf){let r=new Af(this.css,n);if(r.text){this.map=r;let s=r.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}error(e,n,r,s={}){let i,o,a;if(n&&typeof n=="object"){let c=n,f=r;if(typeof c.offset=="number"){let p=this.fromOffset(c.offset);n=p.line,r=p.col}else n=c.line,r=c.column;if(typeof f.offset=="number"){let p=this.fromOffset(f.offset);o=p.line,a=p.col}else o=f.line,a=f.column}else if(!r){let c=this.fromOffset(n);n=c.line,r=c.col}let u=this.origin(n,r,o,a);return u?i=new Oo(e,u.endLine===void 0?u.line:{column:u.column,line:u.line},u.endLine===void 0?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,s.plugin):i=new Oo(e,o===void 0?n:{column:r,line:n},o===void 0?r:{column:a,line:o},this.css,this.file,s.plugin),i.input={column:r,endColumn:a,endLine:o,line:n,source:this.css},this.file&&(ir&&(i.input.url=ir(this.file).toString()),i.input.file=this.file),i}get from(){return this.file||this.id}fromOffset(e){let n,r;if(this[An])r=this[An];else{let i=this.css.split(` +`);r=new Array(i.length);let o=0;for(let a=0,u=i.length;a=n)s=r.length-1;else{let i=r.length-2,o;for(;s>1),e=r[o+1])s=o+1;else{s=o;break}}return{col:e-r[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Pn(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,n,r,s){if(!this.map)return!1;let i=this.map.consumer(),o=i.originalPositionFor({column:n,line:e});if(!o.source)return!1;let a;typeof r=="number"&&(a=i.originalPositionFor({column:s,line:r}));let u;Nn(o.source)?u=ir(o.source):u=new URL(o.source,this.map.consumer().sourceRoot||ir(this.map.mapFile));let c={column:o.column,endColumn:a&&a.column,endLine:a&&a.line,line:o.line,url:u.toString()};if(u.protocol==="file:")if(Co)c.file=Co(u);else throw new Error("file: protocol is not available in this PostCSS build");let f=i.sourceContentFor(o.source);return f&&(c.source=f),c}toJSON(){let e={};for(let n of["hasBOM","css","file","id"])this[n]!=null&&(e[n]=this[n]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};No.exports=Ie;Ie.default=Ie;On&&On.registerInput&&On.registerInput(Ie)});var dt=y((Bx,Po)=>{"use strict";var Pf=se(),Rf=sr(),If=qe();function or(t,e){let n=new If(t,e),r=new Rf(n);try{r.parse()}catch(s){throw s}return r.root}Po.exports=or;or.default=or;Pf.registerParse(or)});var Ro=y((Fx,Rn)=>{var qf=tr(),Df=qe();Rn.exports={isInlineComment(t){if(t[0]==="word"&&t[1].slice(0,2)==="//"){let e=t,n=[],r,s;for(;t;){if(/\r?\n/.test(t[1])){if(/['"].*\r?\n/.test(t[1])){n.push(t[1].substring(0,t[1].indexOf(` `))),s=t[1].substring(t[1].indexOf(` -`));let o=this.input.css.valueOf().substring(this.tokenizer.position());s+=o,r=t[3]+o.length-s.length}else this.tokenizer.back(t);break}n.push(t[1]),r=t[2],t=this.tokenizer.nextToken({ignoreUnclosed:!0})}let i=["comment",n.join(""),e[2],r];return this.inlineComment(i),s&&(this.input=new Df(s),this.tokenizer=qf(this.input)),!0}else if(t[1]==="/"){let e=this.tokenizer.nextToken({ignoreUnclosed:!0});if(e[0]==="comment"&&/^\/\*/.test(e[1]))return e[0]="word",e[1]=e[1].slice(1),t[1]="//",this.tokenizer.back(e),In.exports.isInlineComment.bind(this)(t)}return!1}}});var qo=y(($x,Io)=>{Io.exports={interpolation(t){let e=[t,this.tokenizer.nextToken()],n=["word","}"];if(e[0][1].length>1||e[1][0]!=="{")return this.tokenizer.back(e[1]),!1;for(t=this.tokenizer.nextToken();t&&n.includes(t[0]);)e.push(t),t=this.tokenizer.nextToken();let r=e.map(a=>a[1]),[s]=e,i=e.pop(),o=["word",r.join(""),s[2],i[2]];return this.tokenizer.back(t),this.tokenizer.back(o),!0}}});var Lo=y((Ux,Do)=>{var Lf=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,Mf=/\.[0-9]/,Bf=t=>{let[,e]=t,[n]=e;return(n==="."||n==="#")&&Lf.test(e)===!1&&Mf.test(e)===!1};Do.exports={isMixinToken:Bf}});var Bo=y((Wx,Mo)=>{var Ff=tr(),$f=/^url\((.+)\)/;Mo.exports=t=>{let{name:e,params:n=""}=t;if(e==="import"&&n.length){t.import=!0;let r=Ff({css:n});for(t.filename=n.replace($f,"$1");!r.endOfFile();){let[s,i]=r.nextToken();if(s==="word"&&i==="url")return;if(s==="brackets"){t.options=i,t.filename=n.replace(i,"").trim();break}}}}});var Wo=y((zx,Uo)=>{var Fo=/:$/,$o=/^:(\s+)?/;Uo.exports=t=>{let{name:e,params:n=""}=t;if(t.name.slice(-1)===":"){if(Fo.test(e)){let[r]=e.match(Fo);t.name=e.replace(r,""),t.raws.afterName=r+(t.raws.afterName||""),t.variable=!0,t.value=t.params}if($o.test(n)){let[r]=n.match($o);t.value=n.replace(r,""),t.raws.afterName=(t.raws.afterName||"")+r,t.variable=!0}}}});var Yo=y((Yx,Vo)=>{var Uf=Ae(),Wf=sr(),{isInlineComment:zf}=Ro(),{interpolation:zo}=qo(),{isMixinToken:Vf}=Lo(),Yf=Bo(),Gf=Wo(),Kf=/(!\s*important)$/i;Vo.exports=class extends Wf{constructor(...e){super(...e),this.lastNode=null}atrule(e){zo.bind(this)(e)||(super.atrule(e),Yf(this.lastNode),Gf(this.lastNode))}decl(...e){super.decl(...e),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(e){e[0][1]=` ${e[0][1]}`;let n=e.findIndex(a=>a[0]==="("),r=e.reverse().find(a=>a[0]===")"),s=e.reverse().indexOf(r),o=e.splice(n,s).map(a=>a[1]).join("");for(let a of e.reverse())this.tokenizer.back(a);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=o}init(e,n,r){super.init(e,n,r),this.lastNode=e}inlineComment(e){let n=new Uf,r=e[1].slice(2);if(this.init(n,e[2]),n.source.end=this.getPosition(e[3]||e[2]),n.inline=!0,n.raws.begin="//",/^\s*$/.test(r))n.text="",n.raws.left=r,n.raws.right="";else{let s=r.match(/^(\s*)([^]*[^\s])(\s*)$/);[,n.raws.left,n.text,n.raws.right]=s}}mixin(e){let[n]=e,r=n[1].slice(0,1),s=e.findIndex(c=>c[0]==="brackets"),i=e.findIndex(c=>c[0]==="("),o="";if((s<0||s>3)&&i>0){let c=e.reduce((w,v,N)=>v[0]===")"?N:w),p=e.slice(i,c+i).map(w=>w[1]).join(""),[l]=e.slice(i),g=[l[2],l[3]],[x]=e.slice(c,c+1),h=[x[2],x[3]],d=["brackets",p].concat(g,h),m=e.slice(0,i),b=e.slice(c+1);e=m,e.push(d),e=e.concat(b)}let a=[];for(let c of e)if((c[1]==="!"||a.length)&&a.push(c),c[1]==="important")break;if(a.length){let[c]=a,f=e.indexOf(c),p=a[a.length-1],l=[c[2],c[3]],g=[p[4],p[5]],h=["word",a.map(d=>d[1]).join("")].concat(l,g);e.splice(f,a.length,h)}let u=e.findIndex(c=>Kf.test(c[1]));u>0&&([,o]=e[u],e.splice(u,1));for(let c of e.reverse())this.tokenizer.back(c);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=r,o&&(this.lastNode.important=!0,this.lastNode.raws.important=o)}other(e){zf.bind(this)(e)||super.other(e)}rule(e){let n=e[e.length-1],r=e[e.length-2];if(r[0]==="at-word"&&n[0]==="{"&&(this.tokenizer.back(n),zo.bind(this)(r))){let i=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([i]);for(let o of e.reverse())this.tokenizer.back(o);return}super.rule(e),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(e){let[n]=e;if(e[0][1]==="each"&&e[1][0]==="("){this.each(e);return}if(Vf(n)){this.mixin(e);return}super.unknownWord(e)}}});var Ko=y((Kx,Go)=>{var Hf=Gt();Go.exports=class extends Hf{atrule(e,n){if(!e.mixin&&!e.variable&&!e.function){super.atrule(e,n);return}let s=`${e.function?"":e.raws.identifier||"@"}${e.name}`,i=e.params?this.rawValue(e,"params"):"",o=e.raws.important||"";if(e.variable&&(i=e.value),typeof e.raws.afterName<"u"?s+=e.raws.afterName:i&&(s+=" "),e.nodes)this.block(e,s+i+o);else{let a=(e.raws.between||"")+o+(n?";":"");this.builder(s+i+a,e)}}comment(e){if(e.inline){let n=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder(`//${n}${e.text}${r}`,e)}else super.comment(e)}}});var Ho=y((Hx,qn)=>{var Qf=qe(),jf=Yo(),Jf=Ko();qn.exports={parse(t,e){let n=new Qf(t,e),r=new jf(n);return r.parse(),r.root.walk(s=>{let i=n.css.lastIndexOf(s.source.input.css);if(i===0)return;if(i+s.source.input.css.length!==n.css.length)throw new Error("Invalid state detected in postcss-less");let o=i+s.source.start.offset,a=n.fromOffset(i+s.source.start.offset);if(s.source.start={offset:o,line:a.line,column:a.col},s.source.end){let u=i+s.source.end.offset,c=n.fromOffset(i+s.source.end.offset);s.source.end={offset:u,line:c.line,column:c.col}}}),r.root},stringify(t,e){new Jf(e).stringify(t)},nodeToString(t){let e="";return qn.exports.stringify(t,n=>{e+=n}),e}}});var Dn=y((Qx,Qo)=>{Qo.exports=class{generate(){}}});var ar=y((Jx,Xo)=>{"use strict";var Xf=se(),jo,Jo,ye=class extends Xf{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new jo(new Jo,this,e).stringify()}};ye.registerLazyResult=t=>{jo=t};ye.registerProcessor=t=>{Jo=t};Xo.exports=ye;ye.default=ye});var Ln=y((Xx,ea)=>{"use strict";var Zo={};ea.exports=function(e){Zo[e]||(Zo[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var Mn=y((Zx,ta)=>{"use strict";var mt=class{constructor(e,n={}){if(this.type="warning",this.text=e,n.node&&n.node.source){let r=n.node.rangeBy(n);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in n)this[r]=n[r]}toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};ta.exports=mt;mt.default=mt});var ur=y((eb,ra)=>{"use strict";var Zf=Mn(),yt=class{constructor(e,n,r){this.processor=e,this.messages=[],this.root=n,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let r=new Zf(e,n);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};ra.exports=yt;yt.default=yt});var $n=y((rb,oa)=>{"use strict";var{isClean:K,my:ep}=Vt(),tp=Dn(),rp=ot(),np=se(),sp=ar(),tb=Ln(),na=ur(),ip=dt(),op=Pe(),ap={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},up={postcssPlugin:!0,prepare:!0,Once:!0,Document:!0,Root:!0,Declaration:!0,Rule:!0,AtRule:!0,Comment:!0,DeclarationExit:!0,RuleExit:!0,AtRuleExit:!0,CommentExit:!0,RootExit:!0,DocumentExit:!0,OnceExit:!0},lp={postcssPlugin:!0,prepare:!0,Once:!0},De=0;function gt(t){return typeof t=="object"&&typeof t.then=="function"}function ia(t){let e=!1,n=ap[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[n,n+"-"+e,De,n+"Exit",n+"Exit-"+e]:e?[n,n+"-"+e,n+"Exit",n+"Exit-"+e]:t.append?[n,De,n+"Exit"]:[n,n+"Exit"]}function sa(t){let e;return t.type==="document"?e=["Document",De,"DocumentExit"]:t.type==="root"?e=["Root",De,"RootExit"]:e=ia(t),{node:t,events:e,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function Bn(t){return t[K]=!1,t.nodes&&t.nodes.forEach(e=>Bn(e)),t}var Fn={},oe=class t{constructor(e,n,r){this.stringified=!1,this.processed=!1;let s;if(typeof n=="object"&&n!==null&&(n.type==="root"||n.type==="document"))s=Bn(n);else if(n instanceof t||n instanceof na)s=Bn(n.root),n.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{let i=ip;r.syntax&&(i=r.syntax.parse),r.parser&&(i=r.parser),i.parse&&(i=i.parse);try{s=i(n,r)}catch(o){this.processed=!0,this.error=o}s&&!s[ep]&&np.rebuild(s)}this.result=new na(e,s,r),this.helpers={...Fn,result:this.result,postcss:Fn},this.plugins=this.processor.plugins.map(i=>typeof i=="object"&&i.prepare?{...i,...i.prepare(this.result)}:i)}get[Symbol.toStringTag](){return"LazyResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(e,n){return this.async().then(e,n)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let n=this.runOnRoot(e);if(gt(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[K];)e[K]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let n of e.nodes)this.visitSync(this.listeners.OnceExit,n);else this.visitSync(this.listeners.OnceExit,e)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,n=rp;e.syntax&&(n=e.syntax.stringify),e.stringifier&&(n=e.stringifier),n.stringify&&(n=n.stringify);let s=new tp(n,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[1],this.result}walkSync(e){e[K]=!0;let n=ia(e);for(let r of n)if(r===De)e.nodes&&e.each(s=>{s[K]||this.walkSync(s)});else{let s=this.listeners[r];if(s&&this.visitSync(s,e.toProxy()))return}}visitSync(e,n){for(let[r,s]of e){this.result.lastPlugin=r;let i;try{i=s(n,this.helpers)}catch(o){throw this.handleError(o,n.proxyOf)}if(n.type!=="root"&&n.type!=="document"&&!n.parent)return!0;if(gt(i))throw this.getAsyncError()}}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let n=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return gt(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(n){throw this.handleError(n)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,n){let r=this.result.lastPlugin;try{n&&n.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(s){console&&console.error&&console.error(s)}return e}async runAsync(){this.plugin=0;for(let e=0;e0;){let r=this.visitTick(n);if(gt(r))try{await r}catch(s){let i=n[n.length-1].node;throw this.handleError(s,i)}}}if(this.listeners.OnceExit)for(let[n,r]of this.listeners.OnceExit){this.result.lastPlugin=n;try{if(e.type==="document"){let s=e.nodes.map(i=>r(i,this.helpers));await Promise.all(s)}else await r(e,this.helpers)}catch(s){throw this.handleError(s)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(n,r,s)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([n,s])};for(let n of this.plugins)if(typeof n=="object")for(let r in n){if(!up[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${n.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!lp[r])if(typeof n[r]=="object")for(let s in n[r])s==="*"?e(n,r,n[r][s]):e(n,r+"-"+s.toLowerCase(),n[r][s]);else typeof n[r]=="function"&&e(n,r,n[r])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let n=e[e.length-1],{node:r,visitors:s}=n;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(s.length>0&&n.visitorIndex{Fn=t};oa.exports=oe;oe.default=oe;op.registerLazyResult(oe);sp.registerLazyResult(oe)});var ua=y((sb,aa)=>{"use strict";var cp=Dn(),fp=ot(),nb=Ln(),pp=dt(),hp=ur(),wt=class{constructor(e,n,r){n=n.toString(),this.stringified=!1,this._processor=e,this._css=n,this._opts=r,this._map=void 0;let s,i=fp;this.result=new hp(this._processor,s,this._opts),this.result.css=n;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new cp(i,s,this._opts,n);if(a.isMap()){let[u,c]=a.generate();u&&(this.result.css=u),c&&(this.result.map=c)}}get[Symbol.toStringTag](){return"NoWorkResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.result.css}get content(){return this.result.css}get map(){return this.result.map}get root(){if(this._root)return this._root;let e,n=pp;try{e=n(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(e,n){return this.async().then(e,n)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}sync(){if(this.error)throw this.error;return this.result}};aa.exports=wt;wt.default=wt});var ca=y((ib,la)=>{"use strict";var dp=ua(),mp=$n(),yp=ar(),gp=Pe(),ge=class{constructor(e=[]){this.version="8.4.24",this.plugins=this.normalize(e)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}process(e,n={}){return this.plugins.length===0&&typeof n.parser>"u"&&typeof n.stringifier>"u"&&typeof n.syntax>"u"?new dp(this,e,n):new mp(this,e,n)}normalize(e){let n=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))n=n.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)n.push(r);else if(typeof r=="function")n.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return n}};la.exports=ge;ge.default=ge;gp.registerProcessor(ge);yp.registerProcessor(ge)});var pa=y((ob,fa)=>{"use strict";var wp=ct(),vp=On(),xp=Ae(),bp=rr(),kp=qe(),_p=Pe(),Tp=nr();function vt(t,e){if(Array.isArray(t))return t.map(s=>vt(s));let{inputs:n,...r}=t;if(n){e=[];for(let s of n){let i={...s,__proto__:kp.prototype};i.map&&(i.map={...i.map,__proto__:vp.prototype}),e.push(i)}}if(r.nodes&&(r.nodes=t.nodes.map(s=>vt(s,e))),r.source){let{inputId:s,...i}=r.source;r.source=i,s!=null&&(r.source.input=e[s])}if(r.type==="root")return new _p(r);if(r.type==="decl")return new wp(r);if(r.type==="rule")return new Tp(r);if(r.type==="comment")return new xp(r);if(r.type==="atrule")return new bp(r);throw new Error("Unknown node type: "+t.type)}fa.exports=vt;vt.default=vt});var lr=y((ab,va)=>{"use strict";var Ep=Yt(),ha=ct(),Sp=$n(),Cp=se(),Un=ca(),Op=ot(),Ap=pa(),da=ar(),Np=Mn(),ma=Ae(),ya=rr(),Pp=ur(),Rp=qe(),Ip=dt(),qp=Sn(),ga=nr(),wa=Pe(),Dp=ut();function k(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new Un(t)}k.plugin=function(e,n){let r=!1;function s(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide: -https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let a=n(...o);return a.postcssPlugin=e,a.postcssVersion=new Un().version,a}let i;return Object.defineProperty(s,"postcss",{get(){return i||(i=s()),i}}),s.process=function(o,a,u){return k([s(u)]).process(o,a)},s};k.stringify=Op;k.parse=Ip;k.fromJSON=Ap;k.list=qp;k.comment=t=>new ma(t);k.atRule=t=>new ya(t);k.decl=t=>new ha(t);k.rule=t=>new ga(t);k.root=t=>new wa(t);k.document=t=>new da(t);k.CssSyntaxError=Ep;k.Declaration=ha;k.Container=Cp;k.Processor=Un;k.Document=da;k.Comment=ma;k.Warning=Np;k.AtRule=ya;k.Result=Pp;k.Input=Rp;k.Rule=ga;k.Root=wa;k.Node=Dp;Sp.registerPostcss(k);va.exports=k;k.default=k});var ba=y((ub,xa)=>{var{Container:Lp}=lr(),Wn=class extends Lp{constructor(e){super(e),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};xa.exports=Wn});var Ca=y((lb,Sa)=>{"use strict";var zn="'".charCodeAt(0),Vn='"'.charCodeAt(0),xt="\\".charCodeAt(0),cr="/".charCodeAt(0),Yn=` -`.charCodeAt(0),fr=" ".charCodeAt(0),Gn="\f".charCodeAt(0),Kn=" ".charCodeAt(0),Hn="\r".charCodeAt(0),Mp="[".charCodeAt(0),Bp="]".charCodeAt(0),ka="(".charCodeAt(0),_a=")".charCodeAt(0),pr="{".charCodeAt(0),Ta="}".charCodeAt(0),Fp=";".charCodeAt(0),$p="*".charCodeAt(0),Up=":".charCodeAt(0),Wp="@".charCodeAt(0),zp=",".charCodeAt(0),Qn="#".charCodeAt(0),hr=/[\t\n\f\r "#'()/;[\\\]{}]/g,dr=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Vp=/.[\n"'(/\\]/,Ea=/[\da-f]/i,mr=/[\n\f\r]/g;Sa.exports=function(e,n={}){let r=e.css.valueOf(),s=n.ignoreErrors,i,o,a,u,c,f,p,l,g,x=r.length,h=0,d=[],m=[],b;function w(){return h}function v(S){throw e.error("Unclosed "+S,h)}function N(){return m.length===0&&h>=x}function $(){let S=1,C=!1,O=!1;for(;S>0;)o+=1,r.length<=o&&v("interpolation"),i=r.charCodeAt(o),l=r.charCodeAt(o+1),C?!O&&i===C?(C=!1,O=!1):i===xt?O=!O:O&&(O=!1):i===zn||i===Vn?C=i:i===Ta?S-=1:i===Qn&&l===pr&&(S+=1)}function H(S){if(m.length)return m.pop();if(h>=x)return;let C=S?S.ignoreUnclosed:!1;switch(i=r.charCodeAt(h),i){case Yn:case fr:case Kn:case Hn:case Gn:{o=h;do o+=1,i=r.charCodeAt(o);while(i===fr||i===Yn||i===Kn||i===Hn||i===Gn);g=["space",r.slice(h,o)],h=o-1;break}case Mp:case Bp:case pr:case Ta:case Up:case Fp:case _a:{let O=String.fromCharCode(i);g=[O,O,h];break}case zp:{g=["word",",",h,h+1];break}case ka:{if(p=d.length?d.pop()[1]:"",l=r.charCodeAt(h+1),p==="url"&&l!==zn&&l!==Vn){for(b=1,f=!1,o=h+1;o<=r.length-1;){if(l=r.charCodeAt(o),l===xt)f=!f;else if(l===ka)b+=1;else if(l===_a&&(b-=1,b===0))break;o+=1}u=r.slice(h,o+1),g=["brackets",u,h,o],h=o}else o=r.indexOf(")",h+1),u=r.slice(h,o+1),o===-1||Vp.test(u)?g=["(","(",h]:(g=["brackets",u,h,o],h=o);break}case zn:case Vn:{for(a=i,o=h,f=!1;o{var{Comment:Yp}=lr(),Gp=sr(),Kp=ba(),Hp=Ca(),jn=class extends Gp{createTokenizer(){this.tokenizer=Hp(this.input)}rule(e){let n=!1,r=0,s="";for(let i of e)if(n)i[0]!=="comment"&&i[0]!=="{"&&(s+=i[1]);else{if(i[0]==="space"&&i[1].includes(` -`))break;i[0]==="("?r+=1:i[0]===")"?r-=1:r===0&&i[0]===":"&&(n=!0)}if(!n||s.trim()===""||/^[#:A-Za-z-]/.test(s))super.rule(e);else{e.pop();let i=new Kp;this.init(i,e[0][2]);let o;for(let u=e.length-1;u>=0;u--)if(e[u][0]!=="space"){o=e[u];break}if(o[3]){let u=this.input.fromOffset(o[3]);i.source.end={offset:o[3],line:u.line,column:u.col}}else{let u=this.input.fromOffset(o[2]);i.source.end={offset:o[2],line:u.line,column:u.col}}for(;e[0][0]!=="word";)i.raws.before+=e.shift()[1];if(e[0][2]){let u=this.input.fromOffset(e[0][2]);i.source.start={offset:e[0][2],line:u.line,column:u.col}}for(i.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let a;for(;e.length;)if(a=e.shift(),a[0]===":"){i.raws.between+=a[1];break}else i.raws.between+=a[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1)),i.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(let u=e.length-1;u>0;u--){if(a=e[u],a[1]==="!important"){i.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(i.raws.important=c);break}else if(a[1]==="important"){let c=e.slice(0),f="";for(let p=u;p>0;p--){let l=c[p][0];if(f.trim().indexOf("!")===0&&l!=="space")break;f=c.pop()[1]+f}f.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=f,e=c)}if(a[0]!=="space"&&a[0]!=="comment")break}this.raw(i,"value",e),i.value.includes(":")&&this.checkMissedSemicolon(e),this.current=i}}comment(e){if(e[4]==="inline"){let n=new Yp;this.init(n,e[2]),n.raws.inline=!0;let r=this.input.fromOffset(e[3]);n.source.end={offset:e[3],line:r.line,column:r.col};let s=e[1].slice(2);if(/^\s*$/.test(s))n.text="",n.raws.left=s,n.raws.right="";else{let i=s.match(/^(\s*)([^]*\S)(\s*)$/),o=i[2].replace(/(\*\/|\/\*)/g,"*//*");n.text=o,n.raws.left=i[1],n.raws.right=i[3],n.raws.text=i[2]}}else super.comment(e)}atrule(e){let n=e[1],r=e;for(;!this.tokenizer.endOfFile();){let s=this.tokenizer.nextToken();if(s[0]==="word"&&s[2]===r[3]+1)n+=s[1],r=s;else{this.tokenizer.back(s);break}}super.atrule(["at-word",n,e[2],r[3]])}raw(e,n,r,s){if(super.raw(e,n,r,s),e.raws[n]){let i=e.raws[n].raw;e.raws[n].raw=r.reduce((o,a)=>{if(a[0]==="comment"&&a[4]==="inline"){let u=a[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return o+"/*"+u+"*/"}else return o+a[1]},""),i!==e.raws[n].raw&&(e.raws[n].scss=i)}}};Oa.exports=jn});var Pa=y((fb,Na)=>{var{Input:Qp}=lr(),jp=Aa();Na.exports=function(e,n){let r=new Qp(e,n),s=new jp(r);return s.parse(),s.root}});var V=y((yb,Da)=>{"use strict";var Jn=function(t,e){let n=new t.constructor;for(let r in t){if(!t.hasOwnProperty(r))continue;let s=t[r],i=typeof s;r==="parent"&&i==="object"?e&&(n[r]=e):r==="source"?n[r]=s:s instanceof Array?n[r]=s.map(o=>Jn(o,n)):r!=="before"&&r!=="after"&&r!=="between"&&r!=="semicolon"&&(i==="object"&&s!==null&&(s=Jn(s)),n[r]=s)}return n};Da.exports=class{constructor(e){e=e||{},this.raws={before:"",after:""};for(let n in e)this[n]=e[n]}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return[this.raws.before,String(this.value),this.raws.after].join("")}clone(e){e=e||{};let n=Jn(this);for(let r in e)n[r]=e[r];return n}cloneBefore(e){e=e||{};let n=this.clone(e);return this.parent.insertBefore(this,n),n}cloneAfter(e){e=e||{};let n=this.clone(e);return this.parent.insertAfter(this,n),n}replaceWith(){let e=Array.prototype.slice.call(arguments);if(this.parent){for(let n of e)this.parent.insertBefore(this,n);this.remove()}return this}moveTo(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.append(this),this}moveBefore(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertBefore(e,this),this}moveAfter(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertAfter(e,this),this}next(){let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){let e=this.parent.index(this);return this.parent.nodes[e-1]}toJSON(){let e={};for(let n in this){if(!this.hasOwnProperty(n)||n==="parent")continue;let r=this[n];r instanceof Array?e[n]=r.map(s=>typeof s=="object"&&s.toJSON?s.toJSON():s):typeof r=="object"&&r.toJSON?e[n]=r.toJSON():e[n]=r}return e}root(){let e=this;for(;e.parent;)e=e.parent;return e}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}positionInside(e){let n=this.toString(),r=this.source.start.column,s=this.source.start.line;for(let i=0;i{"use strict";var th=V(),Le=class extends th{constructor(e){super(e),this.nodes||(this.nodes=[])}push(e){return e.parent=this,this.nodes.push(e),this}each(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let n=this.lastEach,r,s;if(this.indexes[n]=0,!!this.nodes){for(;this.indexes[n]{let s=e(n,r);return s!==!1&&n.walk&&(s=n.walk(e)),s})}walkType(e,n){if(!e||!n)throw new Error("Parameters {type} and {callback} are required.");let r=typeof e=="function";return this.walk((s,i)=>{if(r&&s instanceof e||!r&&s.type===e)return n.call(this,s,i)})}append(e){return e.parent=this,this.nodes.push(e),this}prepend(e){return e.parent=this,this.nodes.unshift(e),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let n of this.nodes)n.cleanRaws(e)}insertAfter(e,n){let r=this.index(e),s;this.nodes.splice(r+1,0,n);for(let i in this.indexes)s=this.indexes[i],r<=s&&(this.indexes[i]=s+this.nodes.length);return this}insertBefore(e,n){let r=this.index(e),s;this.nodes.splice(r,0,n);for(let i in this.indexes)s=this.indexes[i],r<=s&&(this.indexes[i]=s+this.nodes.length);return this}removeChild(e){e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1);let n;for(let r in this.indexes)n=this.indexes[r],n>=e&&(this.indexes[r]=n-1);return this}removeAll(){for(let e of this.nodes)e.parent=void 0;return this.nodes=[],this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return typeof e=="number"?e:this.nodes.indexOf(e)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let e=this.nodes.map(String).join("");return this.value&&(e=this.value+e),this.raws.before&&(e=this.raws.before+e),this.raws.after&&(e+=this.raws.after),e}};Le.registerWalker=t=>{let e="walk"+t.name;e.lastIndexOf("s")!==e.length-1&&(e+="s"),!Le.prototype[e]&&(Le.prototype[e]=function(n){return this.walkType(t,n)})};La.exports=Le});var Ba=y((vb,Ma)=>{"use strict";var rh=B();Ma.exports=class extends rh{constructor(e){super(e),this.type="root"}}});var $a=y((bb,Fa)=>{"use strict";var nh=B();Fa.exports=class extends nh{constructor(e){super(e),this.type="value",this.unbalanced=0}}});var za=y((kb,Wa)=>{"use strict";var Ua=B(),yr=class extends Ua{constructor(e){super(e),this.type="atword"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};Ua.registerWalker(yr);Wa.exports=yr});var Ya=y((_b,Va)=>{"use strict";var sh=B(),ih=V(),gr=class extends ih{constructor(e){super(e),this.type="colon"}};sh.registerWalker(gr);Va.exports=gr});var Ka=y((Tb,Ga)=>{"use strict";var oh=B(),ah=V(),wr=class extends ah{constructor(e){super(e),this.type="comma"}};oh.registerWalker(wr);Ga.exports=wr});var Qa=y((Eb,Ha)=>{"use strict";var uh=B(),lh=V(),vr=class extends lh{constructor(e){super(e),this.type="comment",this.inline=Object(e).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};uh.registerWalker(vr);Ha.exports=vr});var Xa=y((Sb,Ja)=>{"use strict";var ja=B(),xr=class extends ja{constructor(e){super(e),this.type="func",this.unbalanced=-1}};ja.registerWalker(xr);Ja.exports=xr});var eu=y((Cb,Za)=>{"use strict";var ch=B(),fh=V(),br=class extends fh{constructor(e){super(e),this.type="number",this.unit=Object(e).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};ch.registerWalker(br);Za.exports=br});var ru=y((Ob,tu)=>{"use strict";var ph=B(),hh=V(),kr=class extends hh{constructor(e){super(e),this.type="operator"}};ph.registerWalker(kr);tu.exports=kr});var su=y((Ab,nu)=>{"use strict";var dh=B(),mh=V(),_r=class extends mh{constructor(e){super(e),this.type="paren",this.parenType=""}};dh.registerWalker(_r);nu.exports=_r});var ou=y((Nb,iu)=>{"use strict";var yh=B(),gh=V(),Tr=class extends gh{constructor(e){super(e),this.type="string"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,e,this.value+"",e,this.raws.after].join("")}};yh.registerWalker(Tr);iu.exports=Tr});var uu=y((Pb,au)=>{"use strict";var wh=B(),vh=V(),Er=class extends vh{constructor(e){super(e),this.type="word"}};wh.registerWalker(Er);au.exports=Er});var cu=y((Rb,lu)=>{"use strict";var xh=B(),bh=V(),Sr=class extends bh{constructor(e){super(e),this.type="unicode-range"}};xh.registerWalker(Sr);lu.exports=Sr});var pu=y((Ib,fu)=>{"use strict";var Xn=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while tokzenizing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};fu.exports=Xn});var vu=y((qb,wu)=>{"use strict";var kh="{".charCodeAt(0),_h="}".charCodeAt(0),Th="(".charCodeAt(0),Eh=")".charCodeAt(0),hu="'".charCodeAt(0),Sh='"'.charCodeAt(0),du="\\".charCodeAt(0),Cr="/".charCodeAt(0),Ch=".".charCodeAt(0),Oh=",".charCodeAt(0),Ah=":".charCodeAt(0),Zn="*".charCodeAt(0),Or="-".charCodeAt(0),es="+".charCodeAt(0),Nh="#".charCodeAt(0),bt=` -`.charCodeAt(0),ts=" ".charCodeAt(0),rs="\f".charCodeAt(0),ns=" ".charCodeAt(0),ss="\r".charCodeAt(0),Ph="@".charCodeAt(0),Rh="e".charCodeAt(0),Ih="E".charCodeAt(0),mu="0".charCodeAt(0),yu="9".charCodeAt(0),qh="u".charCodeAt(0),Dh="U".charCodeAt(0),Ar=/[ \n\t\r\{\(\)'"\\;,/]/g,Lh=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,Me=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,Mh=/^[a-z0-9]/i,Bh=/^[a-f0-9?\-]/i,gu=pu();wu.exports=function(e,n){n=n||{};let r=[],s=e.valueOf(),i=s.length,o=-1,a=1,u=0,c=0,f=null,p,l,g,x,h,d,m,b,w,v,N,$;function H(S){let C=`Unclosed ${S} at line: ${a}, column: ${u-o}, token: ${u}`;throw new gu(C)}function U(){let S=`Syntax error at line: ${a}, column: ${u-o}, token: ${u}`;throw new gu(S)}for(;u0&&r[r.length-1][0]==="word"&&r[r.length-1][1]==="url",r.push(["(","(",a,u-o,a,l-o,u]);break;case Eh:c--,f=f&&c>0,r.push([")",")",a,u-o,a,l-o,u]);break;case hu:case Sh:g=p===hu?"'":'"',l=u;do for(v=!1,l=s.indexOf(g,l+1),l===-1&&H("quote",g),N=l;s.charCodeAt(N-1)===du;)N-=1,v=!v;while(v);r.push(["string",s.slice(u,l+1),a,u-o,a,l-o,u]),u=l;break;case Ph:Ar.lastIndex=u+1,Ar.test(s),Ar.lastIndex===0?l=s.length-1:l=Ar.lastIndex-2,r.push(["atword",s.slice(u,l+1),a,u-o,a,l-o,u]),u=l;break;case du:l=u,p=s.charCodeAt(l+1),m&&p!==Cr&&p!==ts&&p!==bt&&p!==ns&&p!==ss&&p!==rs&&(l+=1),r.push(["word",s.slice(u,l+1),a,u-o,a,l-o,u]),u=l;break;case es:case Or:case Zn:l=u+1,$=s.slice(u+1,l+1);let S=s.slice(u-1,u);if(p===Or&&$.charCodeAt(0)===Or){l++,r.push(["word",s.slice(u,l),a,u-o,a,l-o,u]),u=l-1;break}r.push(["operator",s.slice(u,l),a,u-o,a,l-o,u]),u=l-1;break;default:if(p===Cr&&(s.charCodeAt(u+1)===Zn||n.loose&&!f&&s.charCodeAt(u+1)===Cr)){if(s.charCodeAt(u+1)===Zn)l=s.indexOf("*/",u+2)+1,l===0&&H("comment","*/");else{let O=s.indexOf(` +`));let o=this.input.css.valueOf().substring(this.tokenizer.position());s+=o,r=t[3]+o.length-s.length}else this.tokenizer.back(t);break}n.push(t[1]),r=t[2],t=this.tokenizer.nextToken({ignoreUnclosed:!0})}let i=["comment",n.join(""),e[2],r];return this.inlineComment(i),s&&(this.input=new Df(s),this.tokenizer=qf(this.input)),!0}else if(t[1]==="/"){let e=this.tokenizer.nextToken({ignoreUnclosed:!0});if(e[0]==="comment"&&/^\/\*/.test(e[1]))return e[0]="word",e[1]=e[1].slice(1),t[1]="//",this.tokenizer.back(e),Rn.exports.isInlineComment.bind(this)(t)}return!1}}});var qo=y(($x,Io)=>{Io.exports={interpolation(t){let e=[t,this.tokenizer.nextToken()],n=["word","}"];if(e[0][1].length>1||e[1][0]!=="{")return this.tokenizer.back(e[1]),!1;for(t=this.tokenizer.nextToken();t&&n.includes(t[0]);)e.push(t),t=this.tokenizer.nextToken();let r=e.map(a=>a[1]),[s]=e,i=e.pop(),o=["word",r.join(""),s[2],i[2]];return this.tokenizer.back(t),this.tokenizer.back(o),!0}}});var Lo=y((Ux,Do)=>{var Lf=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,Mf=/\.[0-9]/,Bf=t=>{let[,e]=t,[n]=e;return(n==="."||n==="#")&&Lf.test(e)===!1&&Mf.test(e)===!1};Do.exports={isMixinToken:Bf}});var Bo=y((Wx,Mo)=>{var Ff=tr(),$f=/^url\((.+)\)/;Mo.exports=t=>{let{name:e,params:n=""}=t;if(e==="import"&&n.length){t.import=!0;let r=Ff({css:n});for(t.filename=n.replace($f,"$1");!r.endOfFile();){let[s,i]=r.nextToken();if(s==="word"&&i==="url")return;if(s==="brackets"){t.options=i,t.filename=n.replace(i,"").trim();break}}}}});var Wo=y((zx,Uo)=>{var Fo=/:$/,$o=/^:(\s+)?/;Uo.exports=t=>{let{name:e,params:n=""}=t;if(t.name.slice(-1)===":"){if(Fo.test(e)){let[r]=e.match(Fo);t.name=e.replace(r,""),t.raws.afterName=r+(t.raws.afterName||""),t.variable=!0,t.value=t.params}if($o.test(n)){let[r]=n.match($o);t.value=n.replace(r,""),t.raws.afterName=(t.raws.afterName||"")+r,t.variable=!0}}}});var Yo=y((Yx,Vo)=>{var Uf=Ae(),Wf=sr(),{isInlineComment:zf}=Ro(),{interpolation:zo}=qo(),{isMixinToken:Vf}=Lo(),Yf=Bo(),Gf=Wo(),Kf=/(!\s*important)$/i;Vo.exports=class extends Wf{constructor(...e){super(...e),this.lastNode=null}atrule(e){zo.bind(this)(e)||(super.atrule(e),Yf(this.lastNode),Gf(this.lastNode))}decl(...e){super.decl(...e),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(e){e[0][1]=` ${e[0][1]}`;let n=e.findIndex(a=>a[0]==="("),r=e.reverse().find(a=>a[0]===")"),s=e.reverse().indexOf(r),o=e.splice(n,s).map(a=>a[1]).join("");for(let a of e.reverse())this.tokenizer.back(a);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=o}init(e,n,r){super.init(e,n,r),this.lastNode=e}inlineComment(e){let n=new Uf,r=e[1].slice(2);if(this.init(n,e[2]),n.source.end=this.getPosition(e[3]||e[2]),n.inline=!0,n.raws.begin="//",/^\s*$/.test(r))n.text="",n.raws.left=r,n.raws.right="";else{let s=r.match(/^(\s*)([^]*[^\s])(\s*)$/);[,n.raws.left,n.text,n.raws.right]=s}}mixin(e){let[n]=e,r=n[1].slice(0,1),s=e.findIndex(c=>c[0]==="brackets"),i=e.findIndex(c=>c[0]==="("),o="";if((s<0||s>3)&&i>0){let c=e.reduce((w,v,N)=>v[0]===")"?N:w),p=e.slice(i,c+i).map(w=>w[1]).join(""),[l]=e.slice(i),g=[l[2],l[3]],[x]=e.slice(c,c+1),h=[x[2],x[3]],d=["brackets",p].concat(g,h),m=e.slice(0,i),b=e.slice(c+1);e=m,e.push(d),e=e.concat(b)}let a=[];for(let c of e)if((c[1]==="!"||a.length)&&a.push(c),c[1]==="important")break;if(a.length){let[c]=a,f=e.indexOf(c),p=a[a.length-1],l=[c[2],c[3]],g=[p[4],p[5]],h=["word",a.map(d=>d[1]).join("")].concat(l,g);e.splice(f,a.length,h)}let u=e.findIndex(c=>Kf.test(c[1]));u>0&&([,o]=e[u],e.splice(u,1));for(let c of e.reverse())this.tokenizer.back(c);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=r,o&&(this.lastNode.important=!0,this.lastNode.raws.important=o)}other(e){zf.bind(this)(e)||super.other(e)}rule(e){let n=e[e.length-1],r=e[e.length-2];if(r[0]==="at-word"&&n[0]==="{"&&(this.tokenizer.back(n),zo.bind(this)(r))){let i=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([i]);for(let o of e.reverse())this.tokenizer.back(o);return}super.rule(e),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(e){let[n]=e;if(e[0][1]==="each"&&e[1][0]==="("){this.each(e);return}if(Vf(n)){this.mixin(e);return}super.unknownWord(e)}}});var Ko=y((Kx,Go)=>{var Hf=Gt();Go.exports=class extends Hf{atrule(e,n){if(!e.mixin&&!e.variable&&!e.function){super.atrule(e,n);return}let s=`${e.function?"":e.raws.identifier||"@"}${e.name}`,i=e.params?this.rawValue(e,"params"):"",o=e.raws.important||"";if(e.variable&&(i=e.value),typeof e.raws.afterName<"u"?s+=e.raws.afterName:i&&(s+=" "),e.nodes)this.block(e,s+i+o);else{let a=(e.raws.between||"")+o+(n?";":"");this.builder(s+i+a,e)}}comment(e){if(e.inline){let n=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder(`//${n}${e.text}${r}`,e)}else super.comment(e)}}});var Ho=y((Hx,In)=>{var Qf=qe(),jf=Yo(),Jf=Ko();In.exports={parse(t,e){let n=new Qf(t,e),r=new jf(n);return r.parse(),r.root.walk(s=>{let i=n.css.lastIndexOf(s.source.input.css);if(i===0)return;if(i+s.source.input.css.length!==n.css.length)throw new Error("Invalid state detected in postcss-less");let o=i+s.source.start.offset,a=n.fromOffset(i+s.source.start.offset);if(s.source.start={offset:o,line:a.line,column:a.col},s.source.end){let u=i+s.source.end.offset,c=n.fromOffset(i+s.source.end.offset);s.source.end={offset:u,line:c.line,column:c.col}}}),r.root},stringify(t,e){new Jf(e).stringify(t)},nodeToString(t){let e="";return In.exports.stringify(t,n=>{e+=n}),e}}});var qn=y((Qx,Qo)=>{Qo.exports=class{generate(){}}});var ar=y((Jx,Xo)=>{"use strict";var Xf=se(),jo,Jo,ye=class extends Xf{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new jo(new Jo,this,e).stringify()}};ye.registerLazyResult=t=>{jo=t};ye.registerProcessor=t=>{Jo=t};Xo.exports=ye;ye.default=ye});var Dn=y((Xx,ea)=>{"use strict";var Zo={};ea.exports=function(e){Zo[e]||(Zo[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var Ln=y((Zx,ta)=>{"use strict";var mt=class{constructor(e,n={}){if(this.type="warning",this.text=e,n.node&&n.node.source){let r=n.node.rangeBy(n);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in n)this[r]=n[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};ta.exports=mt;mt.default=mt});var ur=y((eb,ra)=>{"use strict";var Zf=Ln(),yt=class{constructor(e,n,r){this.processor=e,this.messages=[],this.root=n,this.opts=r,this.css=void 0,this.map=void 0}get content(){return this.css}toString(){return this.css}warn(e,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let r=new Zf(e,n);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}};ra.exports=yt;yt.default=yt});var Fn=y((rb,oa)=>{"use strict";var{isClean:K,my:ep}=Vt(),tp=qn(),rp=ot(),np=se(),sp=ar(),tb=Dn(),na=ur(),ip=dt(),op=Pe(),ap={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},up={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},lp={Once:!0,postcssPlugin:!0,prepare:!0},De=0;function gt(t){return typeof t=="object"&&typeof t.then=="function"}function ia(t){let e=!1,n=ap[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[n,n+"-"+e,De,n+"Exit",n+"Exit-"+e]:e?[n,n+"-"+e,n+"Exit",n+"Exit-"+e]:t.append?[n,De,n+"Exit"]:[n,n+"Exit"]}function sa(t){let e;return t.type==="document"?e=["Document",De,"DocumentExit"]:t.type==="root"?e=["Root",De,"RootExit"]:e=ia(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function Mn(t){return t[K]=!1,t.nodes&&t.nodes.forEach(e=>Mn(e)),t}var Bn={},oe=class t{constructor(e,n,r){this.stringified=!1,this.processed=!1;let s;if(typeof n=="object"&&n!==null&&(n.type==="root"||n.type==="document"))s=Mn(n);else if(n instanceof t||n instanceof na)s=Mn(n.root),n.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{let i=ip;r.syntax&&(i=r.syntax.parse),r.parser&&(i=r.parser),i.parse&&(i=i.parse);try{s=i(n,r)}catch(o){this.processed=!0,this.error=o}s&&!s[ep]&&np.rebuild(s)}this.result=new na(e,s,r),this.helpers={...Bn,postcss:Bn,result:this.result},this.plugins=this.processor.plugins.map(i=>typeof i=="object"&&i.prepare?{...i,...i.prepare(this.result)}:i)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}get content(){return this.stringify().content}get css(){return this.stringify().css}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,n){let r=this.result.lastPlugin;try{n&&n.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(s){console&&console.error&&console.error(s)}return e}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}prepareVisitors(){this.listeners={};let e=(n,r,s)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([n,s])};for(let n of this.plugins)if(typeof n=="object")for(let r in n){if(!up[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${n.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!lp[r])if(typeof n[r]=="object")for(let s in n[r])s==="*"?e(n,r,n[r][s]):e(n,r+"-"+s.toLowerCase(),n[r][s]);else typeof n[r]=="function"&&e(n,r,n[r])}this.hasListener=Object.keys(this.listeners).length>0}get processor(){return this.result.processor}get root(){return this.sync().root}async runAsync(){this.plugin=0;for(let e=0;e0;){let r=this.visitTick(n);if(gt(r))try{await r}catch(s){let i=n[n.length-1].node;throw this.handleError(s,i)}}}if(this.listeners.OnceExit)for(let[n,r]of this.listeners.OnceExit){this.result.lastPlugin=n;try{if(e.type==="document"){let s=e.nodes.map(i=>r(i,this.helpers));await Promise.all(s)}else await r(e,this.helpers)}catch(s){throw this.handleError(s)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let n=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return gt(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(n){throw this.handleError(n)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,n=rp;e.syntax&&(n=e.syntax.stringify),e.stringifier&&(n=e.stringifier),n.stringify&&(n=n.stringify);let s=new tp(n,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[1],this.result}get[Symbol.toStringTag](){return"LazyResult"}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let n=this.runOnRoot(e);if(gt(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[K];)e[K]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let n of e.nodes)this.visitSync(this.listeners.OnceExit,n);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,n){return this.async().then(e,n)}toString(){return this.css}visitSync(e,n){for(let[r,s]of e){this.result.lastPlugin=r;let i;try{i=s(n,this.helpers)}catch(o){throw this.handleError(o,n.proxyOf)}if(n.type!=="root"&&n.type!=="document"&&!n.parent)return!0;if(gt(i))throw this.getAsyncError()}}visitTick(e){let n=e[e.length-1],{node:r,visitors:s}=n;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(s.length>0&&n.visitorIndex{s[K]||this.walkSync(s)});else{let s=this.listeners[r];if(s&&this.visitSync(s,e.toProxy()))return}}warnings(){return this.sync().warnings()}};oe.registerPostcss=t=>{Bn=t};oa.exports=oe;oe.default=oe;op.registerLazyResult(oe);sp.registerLazyResult(oe)});var ua=y((sb,aa)=>{"use strict";var cp=qn(),fp=ot(),nb=Dn(),pp=dt(),hp=ur(),wt=class{constructor(e,n,r){n=n.toString(),this.stringified=!1,this._processor=e,this._css=n,this._opts=r,this._map=void 0;let s,i=fp;this.result=new hp(this._processor,s,this._opts),this.result.css=n;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new cp(i,s,this._opts,n);if(a.isMap()){let[u,c]=a.generate();u&&(this.result.css=u),c&&(this.result.map=c)}}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}get content(){return this.result.css}get css(){return this.result.css}finally(e){return this.async().then(e,e)}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,n=pp;try{e=n(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}sync(){if(this.error)throw this.error;return this.result}then(e,n){return this.async().then(e,n)}toString(){return this._css}warnings(){return[]}};aa.exports=wt;wt.default=wt});var ca=y((ib,la)=>{"use strict";var dp=ua(),mp=Fn(),yp=ar(),gp=Pe(),ge=class{constructor(e=[]){this.version="8.4.28",this.plugins=this.normalize(e)}normalize(e){let n=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))n=n.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)n.push(r);else if(typeof r=="function")n.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return n}process(e,n={}){return this.plugins.length===0&&typeof n.parser>"u"&&typeof n.stringifier>"u"&&typeof n.syntax>"u"?new dp(this,e,n):new mp(this,e,n)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};la.exports=ge;ge.default=ge;gp.registerProcessor(ge);yp.registerProcessor(ge)});var pa=y((ob,fa)=>{"use strict";var wp=ct(),vp=Cn(),xp=Ae(),bp=rr(),kp=qe(),_p=Pe(),Tp=nr();function vt(t,e){if(Array.isArray(t))return t.map(s=>vt(s));let{inputs:n,...r}=t;if(n){e=[];for(let s of n){let i={...s,__proto__:kp.prototype};i.map&&(i.map={...i.map,__proto__:vp.prototype}),e.push(i)}}if(r.nodes&&(r.nodes=t.nodes.map(s=>vt(s,e))),r.source){let{inputId:s,...i}=r.source;r.source=i,s!=null&&(r.source.input=e[s])}if(r.type==="root")return new _p(r);if(r.type==="decl")return new wp(r);if(r.type==="rule")return new Tp(r);if(r.type==="comment")return new xp(r);if(r.type==="atrule")return new bp(r);throw new Error("Unknown node type: "+t.type)}fa.exports=vt;vt.default=vt});var lr=y((ab,va)=>{"use strict";var Ep=Yt(),ha=ct(),Sp=Fn(),Cp=se(),$n=ca(),Op=ot(),Ap=pa(),da=ar(),Np=Ln(),ma=Ae(),ya=rr(),Pp=ur(),Rp=qe(),Ip=dt(),qp=En(),ga=nr(),wa=Pe(),Dp=ut();function k(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new $n(t)}k.plugin=function(e,n){let r=!1;function s(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide: +https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let a=n(...o);return a.postcssPlugin=e,a.postcssVersion=new $n().version,a}let i;return Object.defineProperty(s,"postcss",{get(){return i||(i=s()),i}}),s.process=function(o,a,u){return k([s(u)]).process(o,a)},s};k.stringify=Op;k.parse=Ip;k.fromJSON=Ap;k.list=qp;k.comment=t=>new ma(t);k.atRule=t=>new ya(t);k.decl=t=>new ha(t);k.rule=t=>new ga(t);k.root=t=>new wa(t);k.document=t=>new da(t);k.CssSyntaxError=Ep;k.Declaration=ha;k.Container=Cp;k.Processor=$n;k.Document=da;k.Comment=ma;k.Warning=Np;k.AtRule=ya;k.Result=Pp;k.Input=Rp;k.Rule=ga;k.Root=wa;k.Node=Dp;Sp.registerPostcss(k);va.exports=k;k.default=k});var ba=y((ub,xa)=>{var{Container:Lp}=lr(),Un=class extends Lp{constructor(e){super(e),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};xa.exports=Un});var Ca=y((lb,Sa)=>{"use strict";var Wn="'".charCodeAt(0),zn='"'.charCodeAt(0),xt="\\".charCodeAt(0),cr="/".charCodeAt(0),Vn=` +`.charCodeAt(0),fr=" ".charCodeAt(0),Yn="\f".charCodeAt(0),Gn=" ".charCodeAt(0),Kn="\r".charCodeAt(0),Mp="[".charCodeAt(0),Bp="]".charCodeAt(0),ka="(".charCodeAt(0),_a=")".charCodeAt(0),pr="{".charCodeAt(0),Ta="}".charCodeAt(0),Fp=";".charCodeAt(0),$p="*".charCodeAt(0),Up=":".charCodeAt(0),Wp="@".charCodeAt(0),zp=",".charCodeAt(0),Hn="#".charCodeAt(0),hr=/[\t\n\f\r "#'()/;[\\\]{}]/g,dr=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Vp=/.[\n"'(/\\]/,Ea=/[\da-f]/i,mr=/[\n\f\r]/g;Sa.exports=function(e,n={}){let r=e.css.valueOf(),s=n.ignoreErrors,i,o,a,u,c,f,p,l,g,x=r.length,h=0,d=[],m=[],b;function w(){return h}function v(S){throw e.error("Unclosed "+S,h)}function N(){return m.length===0&&h>=x}function $(){let S=1,C=!1,O=!1;for(;S>0;)o+=1,r.length<=o&&v("interpolation"),i=r.charCodeAt(o),l=r.charCodeAt(o+1),C?!O&&i===C?(C=!1,O=!1):i===xt?O=!O:O&&(O=!1):i===Wn||i===zn?C=i:i===Ta?S-=1:i===Hn&&l===pr&&(S+=1)}function H(S){if(m.length)return m.pop();if(h>=x)return;let C=S?S.ignoreUnclosed:!1;switch(i=r.charCodeAt(h),i){case Vn:case fr:case Gn:case Kn:case Yn:{o=h;do o+=1,i=r.charCodeAt(o);while(i===fr||i===Vn||i===Gn||i===Kn||i===Yn);g=["space",r.slice(h,o)],h=o-1;break}case Mp:case Bp:case pr:case Ta:case Up:case Fp:case _a:{let O=String.fromCharCode(i);g=[O,O,h];break}case zp:{g=["word",",",h,h+1];break}case ka:{if(p=d.length?d.pop()[1]:"",l=r.charCodeAt(h+1),p==="url"&&l!==Wn&&l!==zn){for(b=1,f=!1,o=h+1;o<=r.length-1;){if(l=r.charCodeAt(o),l===xt)f=!f;else if(l===ka)b+=1;else if(l===_a&&(b-=1,b===0))break;o+=1}u=r.slice(h,o+1),g=["brackets",u,h,o],h=o}else o=r.indexOf(")",h+1),u=r.slice(h,o+1),o===-1||Vp.test(u)?g=["(","(",h]:(g=["brackets",u,h,o],h=o);break}case Wn:case zn:{for(a=i,o=h,f=!1;o{var{Comment:Yp}=lr(),Gp=sr(),Kp=ba(),Hp=Ca(),Qn=class extends Gp{atrule(e){let n=e[1],r=e;for(;!this.tokenizer.endOfFile();){let s=this.tokenizer.nextToken();if(s[0]==="word"&&s[2]===r[3]+1)n+=s[1],r=s;else{this.tokenizer.back(s);break}}super.atrule(["at-word",n,e[2],r[3]])}comment(e){if(e[4]==="inline"){let n=new Yp;this.init(n,e[2]),n.raws.inline=!0;let r=this.input.fromOffset(e[3]);n.source.end={column:r.col,line:r.line,offset:e[3]};let s=e[1].slice(2);if(/^\s*$/.test(s))n.text="",n.raws.left=s,n.raws.right="";else{let i=s.match(/^(\s*)([^]*\S)(\s*)$/),o=i[2].replace(/(\*\/|\/\*)/g,"*//*");n.text=o,n.raws.left=i[1],n.raws.right=i[3],n.raws.text=i[2]}}else super.comment(e)}createTokenizer(){this.tokenizer=Hp(this.input)}raw(e,n,r,s){if(super.raw(e,n,r,s),e.raws[n]){let i=e.raws[n].raw;e.raws[n].raw=r.reduce((o,a)=>{if(a[0]==="comment"&&a[4]==="inline"){let u=a[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return o+"/*"+u+"*/"}else return o+a[1]},""),i!==e.raws[n].raw&&(e.raws[n].scss=i)}}rule(e){let n=!1,r=0,s="";for(let i of e)if(n)i[0]!=="comment"&&i[0]!=="{"&&(s+=i[1]);else{if(i[0]==="space"&&i[1].includes(` +`))break;i[0]==="("?r+=1:i[0]===")"?r-=1:r===0&&i[0]===":"&&(n=!0)}if(!n||s.trim()===""||/^[#:A-Za-z-]/.test(s))super.rule(e);else{e.pop();let i=new Kp;this.init(i,e[0][2]);let o;for(let u=e.length-1;u>=0;u--)if(e[u][0]!=="space"){o=e[u];break}if(o[3]){let u=this.input.fromOffset(o[3]);i.source.end={column:u.col,line:u.line,offset:o[3]}}else{let u=this.input.fromOffset(o[2]);i.source.end={column:u.col,line:u.line,offset:o[2]}}for(;e[0][0]!=="word";)i.raws.before+=e.shift()[1];if(e[0][2]){let u=this.input.fromOffset(e[0][2]);i.source.start={column:u.col,line:u.line,offset:e[0][2]}}for(i.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let a;for(;e.length;)if(a=e.shift(),a[0]===":"){i.raws.between+=a[1];break}else i.raws.between+=a[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1)),i.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(let u=e.length-1;u>0;u--){if(a=e[u],a[1]==="!important"){i.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(i.raws.important=c);break}else if(a[1]==="important"){let c=e.slice(0),f="";for(let p=u;p>0;p--){let l=c[p][0];if(f.trim().indexOf("!")===0&&l!=="space")break;f=c.pop()[1]+f}f.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=f,e=c)}if(a[0]!=="space"&&a[0]!=="comment")break}this.raw(i,"value",e),i.value.includes(":")&&this.checkMissedSemicolon(e),this.current=i}}};Oa.exports=Qn});var Pa=y((fb,Na)=>{var{Input:Qp}=lr(),jp=Aa();Na.exports=function(e,n){let r=new Qp(e,n),s=new jp(r);return s.parse(),s.root}});var V=y((yb,Da)=>{"use strict";var jn=function(t,e){let n=new t.constructor;for(let r in t){if(!t.hasOwnProperty(r))continue;let s=t[r],i=typeof s;r==="parent"&&i==="object"?e&&(n[r]=e):r==="source"?n[r]=s:s instanceof Array?n[r]=s.map(o=>jn(o,n)):r!=="before"&&r!=="after"&&r!=="between"&&r!=="semicolon"&&(i==="object"&&s!==null&&(s=jn(s)),n[r]=s)}return n};Da.exports=class{constructor(e){e=e||{},this.raws={before:"",after:""};for(let n in e)this[n]=e[n]}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return[this.raws.before,String(this.value),this.raws.after].join("")}clone(e){e=e||{};let n=jn(this);for(let r in e)n[r]=e[r];return n}cloneBefore(e){e=e||{};let n=this.clone(e);return this.parent.insertBefore(this,n),n}cloneAfter(e){e=e||{};let n=this.clone(e);return this.parent.insertAfter(this,n),n}replaceWith(){let e=Array.prototype.slice.call(arguments);if(this.parent){for(let n of e)this.parent.insertBefore(this,n);this.remove()}return this}moveTo(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.append(this),this}moveBefore(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertBefore(e,this),this}moveAfter(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertAfter(e,this),this}next(){let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){let e=this.parent.index(this);return this.parent.nodes[e-1]}toJSON(){let e={};for(let n in this){if(!this.hasOwnProperty(n)||n==="parent")continue;let r=this[n];r instanceof Array?e[n]=r.map(s=>typeof s=="object"&&s.toJSON?s.toJSON():s):typeof r=="object"&&r.toJSON?e[n]=r.toJSON():e[n]=r}return e}root(){let e=this;for(;e.parent;)e=e.parent;return e}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}positionInside(e){let n=this.toString(),r=this.source.start.column,s=this.source.start.line;for(let i=0;i{"use strict";var th=V(),Le=class extends th{constructor(e){super(e),this.nodes||(this.nodes=[])}push(e){return e.parent=this,this.nodes.push(e),this}each(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let n=this.lastEach,r,s;if(this.indexes[n]=0,!!this.nodes){for(;this.indexes[n]{let s=e(n,r);return s!==!1&&n.walk&&(s=n.walk(e)),s})}walkType(e,n){if(!e||!n)throw new Error("Parameters {type} and {callback} are required.");let r=typeof e=="function";return this.walk((s,i)=>{if(r&&s instanceof e||!r&&s.type===e)return n.call(this,s,i)})}append(e){return e.parent=this,this.nodes.push(e),this}prepend(e){return e.parent=this,this.nodes.unshift(e),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let n of this.nodes)n.cleanRaws(e)}insertAfter(e,n){let r=this.index(e),s;this.nodes.splice(r+1,0,n);for(let i in this.indexes)s=this.indexes[i],r<=s&&(this.indexes[i]=s+this.nodes.length);return this}insertBefore(e,n){let r=this.index(e),s;this.nodes.splice(r,0,n);for(let i in this.indexes)s=this.indexes[i],r<=s&&(this.indexes[i]=s+this.nodes.length);return this}removeChild(e){e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1);let n;for(let r in this.indexes)n=this.indexes[r],n>=e&&(this.indexes[r]=n-1);return this}removeAll(){for(let e of this.nodes)e.parent=void 0;return this.nodes=[],this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return typeof e=="number"?e:this.nodes.indexOf(e)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let e=this.nodes.map(String).join("");return this.value&&(e=this.value+e),this.raws.before&&(e=this.raws.before+e),this.raws.after&&(e+=this.raws.after),e}};Le.registerWalker=t=>{let e="walk"+t.name;e.lastIndexOf("s")!==e.length-1&&(e+="s"),!Le.prototype[e]&&(Le.prototype[e]=function(n){return this.walkType(t,n)})};La.exports=Le});var Ba=y((vb,Ma)=>{"use strict";var rh=B();Ma.exports=class extends rh{constructor(e){super(e),this.type="root"}}});var $a=y((bb,Fa)=>{"use strict";var nh=B();Fa.exports=class extends nh{constructor(e){super(e),this.type="value",this.unbalanced=0}}});var za=y((kb,Wa)=>{"use strict";var Ua=B(),yr=class extends Ua{constructor(e){super(e),this.type="atword"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};Ua.registerWalker(yr);Wa.exports=yr});var Ya=y((_b,Va)=>{"use strict";var sh=B(),ih=V(),gr=class extends ih{constructor(e){super(e),this.type="colon"}};sh.registerWalker(gr);Va.exports=gr});var Ka=y((Tb,Ga)=>{"use strict";var oh=B(),ah=V(),wr=class extends ah{constructor(e){super(e),this.type="comma"}};oh.registerWalker(wr);Ga.exports=wr});var Qa=y((Eb,Ha)=>{"use strict";var uh=B(),lh=V(),vr=class extends lh{constructor(e){super(e),this.type="comment",this.inline=Object(e).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};uh.registerWalker(vr);Ha.exports=vr});var Xa=y((Sb,Ja)=>{"use strict";var ja=B(),xr=class extends ja{constructor(e){super(e),this.type="func",this.unbalanced=-1}};ja.registerWalker(xr);Ja.exports=xr});var eu=y((Cb,Za)=>{"use strict";var ch=B(),fh=V(),br=class extends fh{constructor(e){super(e),this.type="number",this.unit=Object(e).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};ch.registerWalker(br);Za.exports=br});var ru=y((Ob,tu)=>{"use strict";var ph=B(),hh=V(),kr=class extends hh{constructor(e){super(e),this.type="operator"}};ph.registerWalker(kr);tu.exports=kr});var su=y((Ab,nu)=>{"use strict";var dh=B(),mh=V(),_r=class extends mh{constructor(e){super(e),this.type="paren",this.parenType=""}};dh.registerWalker(_r);nu.exports=_r});var ou=y((Nb,iu)=>{"use strict";var yh=B(),gh=V(),Tr=class extends gh{constructor(e){super(e),this.type="string"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,e,this.value+"",e,this.raws.after].join("")}};yh.registerWalker(Tr);iu.exports=Tr});var uu=y((Pb,au)=>{"use strict";var wh=B(),vh=V(),Er=class extends vh{constructor(e){super(e),this.type="word"}};wh.registerWalker(Er);au.exports=Er});var cu=y((Rb,lu)=>{"use strict";var xh=B(),bh=V(),Sr=class extends bh{constructor(e){super(e),this.type="unicode-range"}};xh.registerWalker(Sr);lu.exports=Sr});var pu=y((Ib,fu)=>{"use strict";var Jn=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while tokzenizing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};fu.exports=Jn});var vu=y((qb,wu)=>{"use strict";var kh="{".charCodeAt(0),_h="}".charCodeAt(0),Th="(".charCodeAt(0),Eh=")".charCodeAt(0),hu="'".charCodeAt(0),Sh='"'.charCodeAt(0),du="\\".charCodeAt(0),Cr="/".charCodeAt(0),Ch=".".charCodeAt(0),Oh=",".charCodeAt(0),Ah=":".charCodeAt(0),Xn="*".charCodeAt(0),Or="-".charCodeAt(0),Zn="+".charCodeAt(0),Nh="#".charCodeAt(0),bt=` +`.charCodeAt(0),es=" ".charCodeAt(0),ts="\f".charCodeAt(0),rs=" ".charCodeAt(0),ns="\r".charCodeAt(0),Ph="@".charCodeAt(0),Rh="e".charCodeAt(0),Ih="E".charCodeAt(0),mu="0".charCodeAt(0),yu="9".charCodeAt(0),qh="u".charCodeAt(0),Dh="U".charCodeAt(0),Ar=/[ \n\t\r\{\(\)'"\\;,/]/g,Lh=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,Me=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,Mh=/^[a-z0-9]/i,Bh=/^[a-f0-9?\-]/i,gu=pu();wu.exports=function(e,n){n=n||{};let r=[],s=e.valueOf(),i=s.length,o=-1,a=1,u=0,c=0,f=null,p,l,g,x,h,d,m,b,w,v,N,$;function H(S){let C=`Unclosed ${S} at line: ${a}, column: ${u-o}, token: ${u}`;throw new gu(C)}function U(){let S=`Syntax error at line: ${a}, column: ${u-o}, token: ${u}`;throw new gu(S)}for(;u0&&r[r.length-1][0]==="word"&&r[r.length-1][1]==="url",r.push(["(","(",a,u-o,a,l-o,u]);break;case Eh:c--,f=f&&c>0,r.push([")",")",a,u-o,a,l-o,u]);break;case hu:case Sh:g=p===hu?"'":'"',l=u;do for(v=!1,l=s.indexOf(g,l+1),l===-1&&H("quote",g),N=l;s.charCodeAt(N-1)===du;)N-=1,v=!v;while(v);r.push(["string",s.slice(u,l+1),a,u-o,a,l-o,u]),u=l;break;case Ph:Ar.lastIndex=u+1,Ar.test(s),Ar.lastIndex===0?l=s.length-1:l=Ar.lastIndex-2,r.push(["atword",s.slice(u,l+1),a,u-o,a,l-o,u]),u=l;break;case du:l=u,p=s.charCodeAt(l+1),m&&p!==Cr&&p!==es&&p!==bt&&p!==rs&&p!==ns&&p!==ts&&(l+=1),r.push(["word",s.slice(u,l+1),a,u-o,a,l-o,u]),u=l;break;case Zn:case Or:case Xn:l=u+1,$=s.slice(u+1,l+1);let S=s.slice(u-1,u);if(p===Or&&$.charCodeAt(0)===Or){l++,r.push(["word",s.slice(u,l),a,u-o,a,l-o,u]),u=l-1;break}r.push(["operator",s.slice(u,l),a,u-o,a,l-o,u]),u=l-1;break;default:if(p===Cr&&(s.charCodeAt(u+1)===Xn||n.loose&&!f&&s.charCodeAt(u+1)===Cr)){if(s.charCodeAt(u+1)===Xn)l=s.indexOf("*/",u+2)+1,l===0&&H("comment","*/");else{let O=s.indexOf(` `,u+2);l=O!==-1?O-1:i}d=s.slice(u,l+1),x=d.split(` -`),h=x.length-1,h>0?(b=a+h,w=l-x[h].length):(b=a,w=o),r.push(["comment",d,a,u-o,b,l-w,u]),o=w,a=b,u=l}else if(p===Nh&&!Mh.test(s.slice(u+1,u+2)))l=u+1,r.push(["#",s.slice(u,l),a,u-o,a,l-o,u]),u=l-1;else if((p===qh||p===Dh)&&s.charCodeAt(u+1)===es){l=u+2;do l+=1,p=s.charCodeAt(l);while(l=mu&&p<=yu&&(C=Me),C.lastIndex=u+1,C.test(s),C.lastIndex===0?l=s.length-1:l=C.lastIndex-2,C===Me||p===Ch){let O=s.charCodeAt(l),ve=s.charCodeAt(l+1),Ss=s.charCodeAt(l+2);(O===Rh||O===Ih)&&(ve===Or||ve===es)&&Ss>=mu&&Ss<=yu&&(Me.lastIndex=l+2,Me.test(s),Me.lastIndex===0?l=s.length-1:l=Me.lastIndex-2)}r.push(["word",s.slice(u,l+1),a,u-o,a,l-o,u]),u=l}break}u++}return r}});var is=y((Db,xu)=>{xu.exports=function(e,n){if(n=typeof n=="number"?n:1/0,!n)return Array.isArray(e)?e.map(function(s){return s}):e;return r(e,1);function r(s,i){return s.reduce(function(o,a){return Array.isArray(a)&&i{bu.exports=function(t,e){for(var n=-1,r=[];(n=t.indexOf(e,n+1))!==-1;)r.push(n);return r}});var as=y((Mb,ku)=>{"use strict";function Fh(t,e){for(var n=1,r=t.length,s=t[0],i=t[0],o=1;o{"use strict";var us=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};_u.exports=us});var Ou=y(($b,Cu)=>{"use strict";var Wh=Ba(),zh=$a(),Vh=za(),Yh=Ya(),Gh=Ka(),Kh=Qa(),Hh=Xa(),Qh=eu(),jh=ru(),Eu=su(),Jh=ou(),Su=uu(),Xh=cu(),Zh=vu(),ed=is(),td=os(),rd=as(),nd=Tu();function sd(t){return t.sort((e,n)=>e-n)}Cu.exports=class{constructor(e,n){let r={loose:!1};this.cache=[],this.input=e,this.options=Object.assign({},r,n),this.position=0,this.unbalanced=0,this.root=new Wh;let s=new zh;this.root.append(s),this.current=s,this.tokens=Zh(e,this.options)}parse(){return this.loop()}colon(){let e=this.currToken;this.newNode(new Yh({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comma(){let e=this.currToken;this.newNode(new Gh({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comment(){let e=!1,n=this.currToken[1].replace(/\/\*|\*\//g,""),r;this.options.loose&&n.startsWith("//")&&(n=n.substring(2),e=!0),r=new Kh({value:n,inline:e,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(r),this.position++}error(e,n){throw new nd(e+` at line: ${n[2]}, column ${n[3]}`)}loop(){for(;this.position0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.currToken):this.nextToken[0]!=="space"&&this.nextToken[0]!=="word"?this.error("Syntax Error",this.currToken):this.nextToken[0]==="word"&&this.current.last.type!=="operator"&&this.current.last.value!=="("&&this.error("Syntax Error",this.currToken):(this.nextToken[0]==="space"||this.nextToken[0]==="operator"||this.prevToken[0]==="operator")&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type==="operator")&&this.nextToken[0]==="word")return this.word()}else if(this.nextToken[0]==="word")return this.word()}return n=new jh({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(n)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case"operator":this.operator();break;case"string":this.string();break;case"unicoderange":this.unicodeRange();break;default:this.word();break}}parenOpen(){let e=1,n=this.position+1,r=this.currToken,s;for(;n=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error("Expected opening parenthesis",e),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let e=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.raws.after+=e[1],this.position++):(this.spaces=e[1],this.position++)}unicodeRange(){let e=this.currToken;this.newNode(new Xh({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}splitWord(){let e=this.nextToken,n=this.currToken[1],r=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,s=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,i,o;if(!s.test(n))for(;e&&e[0]==="word";){this.position++;let a=this.currToken[1];n+=a,e=this.nextToken}i=td(n,"@"),o=sd(rd(ed([[0],i]))),o.forEach((a,u)=>{let c=o[u+1]||n.length,f=n.slice(a,c),p;if(~i.indexOf(a))p=new Vh({value:f.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+a},end:{line:this.currToken[4],column:this.currToken[3]+(c-1)}},sourceIndex:this.currToken[6]+o[u]});else if(r.test(this.currToken[1])){let l=f.replace(r,"");p=new Qh({value:f.replace(l,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+a},end:{line:this.currToken[4],column:this.currToken[3]+(c-1)}},sourceIndex:this.currToken[6]+o[u],unit:l})}else p=new(e&&e[0]==="("?Hh:Su)({value:f,source:{start:{line:this.currToken[2],column:this.currToken[3]+a},end:{line:this.currToken[4],column:this.currToken[3]+(c-1)}},sourceIndex:this.currToken[6]+o[u]}),p.type==="word"?(p.isHex=/^#(.+)/.test(f),p.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(f)):this.cache.push(this.current);this.newNode(p)}),this.position++}string(){let e=this.currToken,n=this.currToken[1],r=/^(\"|\')/,s=r.test(n),i="",o;s&&(i=n.match(r)[0],n=n.slice(1,n.length-1)),o=new Jh({value:n,source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6],quoted:s}),o.raws.quote=i,this.newNode(o),this.position++}word(){return this.splitWord()}newNode(e){return this.spaces&&(e.raws.before+=this.spaces,this.spaces=""),this.current.append(e)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}});var we=y((Pr,qu)=>{"use strict";Pr.__esModule=!0;var Iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function cd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var fd=function t(e,n){if((typeof e>"u"?"undefined":Iu(e))!=="object")return e;var r=new e.constructor;for(var s in e)if(e.hasOwnProperty(s)){var i=e[s],o=typeof i>"u"?"undefined":Iu(i);s==="parent"&&o==="object"?n&&(r[s]=n):i instanceof Array?r[s]=i.map(function(a){return t(a,r)}):r[s]=t(i,r)}return r},pd=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};cd(this,t);for(var n in e)this[n]=e[n];var r=e.spaces;r=r===void 0?{}:r;var s=r.before,i=s===void 0?"":s,o=r.after,a=o===void 0?"":o;this.spaces={before:i,after:a}}return t.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.prototype.replaceWith=function(){if(this.parent){for(var n in arguments)this.parent.insertBefore(this,arguments[n]);this.remove()}return this},t.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},t.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},t.prototype.clone=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=fd(this);for(var s in n)r[s]=n[s];return r},t.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join("")},t}();Pr.default=pd;qu.exports=Pr.default});var L=y(F=>{"use strict";F.__esModule=!0;var Hb=F.TAG="tag",Qb=F.STRING="string",jb=F.SELECTOR="selector",Jb=F.ROOT="root",Xb=F.PSEUDO="pseudo",Zb=F.NESTING="nesting",ek=F.ID="id",tk=F.COMMENT="comment",rk=F.COMBINATOR="combinator",nk=F.CLASS="class",sk=F.ATTRIBUTE="attribute",ik=F.UNIVERSAL="universal"});var Ir=y((Rr,Du)=>{"use strict";Rr.__esModule=!0;var hd=function(){function t(e,n){for(var r=0;r=r&&(this.indexes[i]=s-1);return this},e.prototype.removeAll=function(){for(var i=this.nodes,r=Array.isArray(i),s=0,i=r?i:i[Symbol.iterator]();;){var o;if(r){if(s>=i.length)break;o=i[s++]}else{if(s=i.next(),s.done)break;o=s.value}var a=o;a.parent=void 0}return this.nodes=[],this},e.prototype.empty=function(){return this.removeAll()},e.prototype.insertAfter=function(r,s){var i=this.index(r);this.nodes.splice(i+1,0,s);var o=void 0;for(var a in this.indexes)o=this.indexes[a],i<=o&&(this.indexes[a]=o+this.nodes.length);return this},e.prototype.insertBefore=function(r,s){var i=this.index(r);this.nodes.splice(i,0,s);var o=void 0;for(var a in this.indexes)o=this.indexes[a],i<=o&&(this.indexes[a]=o+this.nodes.length);return this},e.prototype.each=function(r){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var s=this.lastEach;if(this.indexes[s]=0,!!this.length){for(var i=void 0,o=void 0;this.indexes[s]{"use strict";qr.__esModule=!0;var _d=Ir(),Td=Sd(_d),Ed=L();function Sd(t){return t&&t.__esModule?t:{default:t}}function Cd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Od(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Ad(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Nd=function(t){Ad(e,t);function e(n){Cd(this,e);var r=Od(this,t.call(this,n));return r.type=Ed.ROOT,r}return e.prototype.toString=function(){var r=this.reduce(function(s,i){var o=String(i);return o?s+o+",":""},"").slice(0,-1);return this.trailingComma?r+",":r},e}(Td.default);qr.default=Nd;Lu.exports=qr.default});var Fu=y((Dr,Bu)=>{"use strict";Dr.__esModule=!0;var Pd=Ir(),Rd=qd(Pd),Id=L();function qd(t){return t&&t.__esModule?t:{default:t}}function Dd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ld(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Md(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Bd=function(t){Md(e,t);function e(n){Dd(this,e);var r=Ld(this,t.call(this,n));return r.type=Id.SELECTOR,r}return e}(Rd.default);Dr.default=Bd;Bu.exports=Dr.default});var Be=y((Lr,$u)=>{"use strict";Lr.__esModule=!0;var Fd=function(){function t(e,n){for(var r=0;r{"use strict";Mr.__esModule=!0;var Kd=Be(),Hd=jd(Kd),Qd=L();function jd(t){return t&&t.__esModule?t:{default:t}}function Jd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Xd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Zd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var em=function(t){Zd(e,t);function e(n){Jd(this,e);var r=Xd(this,t.call(this,n));return r.type=Qd.CLASS,r}return e.prototype.toString=function(){return[this.spaces.before,this.ns,"."+this.value,this.spaces.after].join("")},e}(Hd.default);Mr.default=em;Uu.exports=Mr.default});var Vu=y((Br,zu)=>{"use strict";Br.__esModule=!0;var tm=we(),rm=sm(tm),nm=L();function sm(t){return t&&t.__esModule?t:{default:t}}function im(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function om(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function am(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var um=function(t){am(e,t);function e(n){im(this,e);var r=om(this,t.call(this,n));return r.type=nm.COMMENT,r}return e}(rm.default);Br.default=um;zu.exports=Br.default});var Gu=y((Fr,Yu)=>{"use strict";Fr.__esModule=!0;var lm=Be(),cm=pm(lm),fm=L();function pm(t){return t&&t.__esModule?t:{default:t}}function hm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dm(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function mm(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var ym=function(t){mm(e,t);function e(n){hm(this,e);var r=dm(this,t.call(this,n));return r.type=fm.ID,r}return e.prototype.toString=function(){return[this.spaces.before,this.ns,"#"+this.value,this.spaces.after].join("")},e}(cm.default);Fr.default=ym;Yu.exports=Fr.default});var Hu=y(($r,Ku)=>{"use strict";$r.__esModule=!0;var gm=Be(),wm=xm(gm),vm=L();function xm(t){return t&&t.__esModule?t:{default:t}}function bm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function km(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function _m(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Tm=function(t){_m(e,t);function e(n){bm(this,e);var r=km(this,t.call(this,n));return r.type=vm.TAG,r}return e}(wm.default);$r.default=Tm;Ku.exports=$r.default});var ju=y((Ur,Qu)=>{"use strict";Ur.__esModule=!0;var Em=we(),Sm=Om(Em),Cm=L();function Om(t){return t&&t.__esModule?t:{default:t}}function Am(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nm(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Pm(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Rm=function(t){Pm(e,t);function e(n){Am(this,e);var r=Nm(this,t.call(this,n));return r.type=Cm.STRING,r}return e}(Sm.default);Ur.default=Rm;Qu.exports=Ur.default});var Xu=y((Wr,Ju)=>{"use strict";Wr.__esModule=!0;var Im=Ir(),qm=Lm(Im),Dm=L();function Lm(t){return t&&t.__esModule?t:{default:t}}function Mm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bm(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Fm(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var $m=function(t){Fm(e,t);function e(n){Mm(this,e);var r=Bm(this,t.call(this,n));return r.type=Dm.PSEUDO,r}return e.prototype.toString=function(){var r=this.length?"("+this.map(String).join(",")+")":"";return[this.spaces.before,String(this.value),r,this.spaces.after].join("")},e}(qm.default);Wr.default=$m;Ju.exports=Wr.default});var el=y((zr,Zu)=>{"use strict";zr.__esModule=!0;var Um=Be(),Wm=Vm(Um),zm=L();function Vm(t){return t&&t.__esModule?t:{default:t}}function Ym(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Gm(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Km(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Hm=function(t){Km(e,t);function e(n){Ym(this,e);var r=Gm(this,t.call(this,n));return r.type=zm.ATTRIBUTE,r.raws={},r}return e.prototype.toString=function(){var r=[this.spaces.before,"[",this.ns,this.attribute];return this.operator&&r.push(this.operator),this.value&&r.push(this.value),this.raws.insensitive?r.push(this.raws.insensitive):this.insensitive&&r.push(" i"),r.push("]"),r.concat(this.spaces.after).join("")},e}(Wm.default);zr.default=Hm;Zu.exports=zr.default});var rl=y((Vr,tl)=>{"use strict";Vr.__esModule=!0;var Qm=Be(),jm=Xm(Qm),Jm=L();function Xm(t){return t&&t.__esModule?t:{default:t}}function Zm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ey(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function ty(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var ry=function(t){ty(e,t);function e(n){Zm(this,e);var r=ey(this,t.call(this,n));return r.type=Jm.UNIVERSAL,r.value="*",r}return e}(jm.default);Vr.default=ry;tl.exports=Vr.default});var sl=y((Yr,nl)=>{"use strict";Yr.__esModule=!0;var ny=we(),sy=oy(ny),iy=L();function oy(t){return t&&t.__esModule?t:{default:t}}function ay(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function uy(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function ly(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var cy=function(t){ly(e,t);function e(n){ay(this,e);var r=uy(this,t.call(this,n));return r.type=iy.COMBINATOR,r}return e}(sy.default);Yr.default=cy;nl.exports=Yr.default});var ol=y((Gr,il)=>{"use strict";Gr.__esModule=!0;var fy=we(),py=dy(fy),hy=L();function dy(t){return t&&t.__esModule?t:{default:t}}function my(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yy(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function gy(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var wy=function(t){gy(e,t);function e(n){my(this,e);var r=yy(this,t.call(this,n));return r.type=hy.NESTING,r.value="&",r}return e}(py.default);Gr.default=wy;il.exports=Gr.default});var ul=y((Kr,al)=>{"use strict";Kr.__esModule=!0;Kr.default=vy;function vy(t){return t.sort(function(e,n){return e-n})}al.exports=Kr.default});var gl=y((jr,yl)=>{"use strict";jr.__esModule=!0;jr.default=Ny;var ll=39,xy=34,ls=92,cl=47,kt=10,cs=32,fs=12,ps=9,hs=13,fl=43,pl=62,hl=126,dl=124,by=44,ky=40,_y=41,Ty=91,Ey=93,Sy=59,ml=42,Cy=58,Oy=38,Ay=64,Hr=/[ \n\t\r\{\(\)'"\\;/]/g,Qr=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function Ny(t){for(var e=[],n=t.css.valueOf(),r=void 0,s=void 0,i=void 0,o=void 0,a=void 0,u=void 0,c=void 0,f=void 0,p=void 0,l=void 0,g=void 0,x=n.length,h=-1,d=1,m=0,b=function(v,N){if(t.safe)n+=N,s=n.length-1;else throw t.error("Unclosed "+v,d,m-h,m)};m0?(f=d+a,p=s-o[a].length):(f=d,p=h),e.push(["comment",u,d,m-h,f,s-p,m]),h=p,d=f,m=s):(Qr.lastIndex=m+1,Qr.test(n),Qr.lastIndex===0?s=n.length-1:s=Qr.lastIndex-2,e.push(["word",n.slice(m,s+1),d,m-h,d,s-h,m]),m=s);break}m++}return e}yl.exports=jr.default});var xl=y((Jr,vl)=>{"use strict";Jr.__esModule=!0;var Py=function(){function t(e,n){for(var r=0;r1?(o[0]===""&&(o[0]=!0),a.attribute=this.parseValue(o[2]),a.namespace=this.parseNamespace(o[0])):a.attribute=this.parseValue(i[0]),r=new Zy.default(a),i[2]){var u=i[2].split(/(\s+i\s*?)$/),c=u[0].trim();r.value=this.lossy?c:u[0],u[1]&&(r.insensitive=!0,this.lossy||(r.raws.insensitive=u[1])),r.quoted=c[0]==="'"||c[0]==='"',r.raws.unquoted=r.quoted?c.slice(1,-1):c}this.newNode(r),this.position++},t.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var n=new ng.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position1&&n.nextToken&&n.nextToken[0]==="("&&n.error("Misplaced parenthesis.")})}else this.error('Unexpected "'+this.currToken[0]+'" found.')},t.prototype.space=function(){var n=this.currToken;this.position===0||this.prevToken[0]===","||this.prevToken[0]==="("?(this.spaces=this.parseSpace(n[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.spaces.after=this.parseSpace(n[1]),this.position++):this.combinator()},t.prototype.string=function(){var n=this.currToken;this.newNode(new Qy.default({value:this.currToken[1],source:{start:{line:n[2],column:n[3]},end:{line:n[4],column:n[5]}},sourceIndex:n[6]})),this.position++},t.prototype.universal=function(n){var r=this.nextToken;if(r&&r[1]==="|")return this.position++,this.namespace();this.newNode(new tg.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),n),this.position++},t.prototype.splitWord=function(n,r){for(var s=this,i=this.nextToken,o=this.currToken[1];i&&i[0]==="word";){this.position++;var a=this.currToken[1];if(o+=a,a.lastIndexOf("\\")===a.length-1){var u=this.nextToken;u&&u[0]==="space"&&(o+=this.parseSpace(u[1]," "),this.position++)}i=this.nextToken}var c=(0,ds.default)(o,"."),f=(0,ds.default)(o,"#"),p=(0,ds.default)(o,"#{");p.length&&(f=f.filter(function(g){return!~p.indexOf(g)}));var l=(0,ag.default)((0,Ly.default)((0,Iy.default)([[0],c,f])));l.forEach(function(g,x){var h=l[x+1]||o.length,d=o.slice(g,h);if(x===0&&r)return r.call(s,d,l.length);var m=void 0;~c.indexOf(g)?m=new Uy.default({value:d.slice(1),source:{start:{line:s.currToken[2],column:s.currToken[3]+g},end:{line:s.currToken[4],column:s.currToken[3]+(h-1)}},sourceIndex:s.currToken[6]+l[x]}):~f.indexOf(g)?m=new Yy.default({value:d.slice(1),source:{start:{line:s.currToken[2],column:s.currToken[3]+g},end:{line:s.currToken[4],column:s.currToken[3]+(h-1)}},sourceIndex:s.currToken[6]+l[x]}):m=new Ky.default({value:d,source:{start:{line:s.currToken[2],column:s.currToken[3]+g},end:{line:s.currToken[4],column:s.currToken[3]+(h-1)}},sourceIndex:s.currToken[6]+l[x]}),s.newNode(m,n)}),this.position++},t.prototype.word=function(n){var r=this.nextToken;return r&&r[1]==="|"?(this.position++,this.namespace()):this.splitWord(n)},t.prototype.loop=function(){for(;this.position{"use strict";Xr.__esModule=!0;var dg=function(){function t(e,n){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},s=new yg.default({css:n,error:function(o){throw new Error(o)},options:r});return this.res=s,this.func(s),this},dg(t,[{key:"result",get:function(){return String(this.res)}}]),t}();Xr.default=vg;bl.exports=Xr.default});var ws=y(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});function _g(t){this.after=t.after,this.before=t.before,this.type=t.type,this.value=t.value,this.sourceIndex=t.sourceIndex}gs.default=_g});var xs=y(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});var Tg=ws(),Sl=Eg(Tg);function Eg(t){return t&&t.__esModule?t:{default:t}}function _t(t){var e=this;this.constructor(t),this.nodes=t.nodes,this.after===void 0&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),this.before===void 0&&(this.before=this.nodes.length>0?this.nodes[0].before:""),this.sourceIndex===void 0&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(n){n.parent=e})}_t.prototype=Object.create(Sl.default.prototype);_t.constructor=Sl.default;_t.prototype.walk=function(e,n){for(var r=typeof e=="string"||e instanceof RegExp,s=r?n:e,i=typeof e=="string"?new RegExp(e):e,o=0;o{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.parseMediaFeature=Al;Tt.parseMediaQuery=ks;Tt.parseMediaList=Og;var Sg=ws(),Cl=Ol(Sg),Cg=xs(),bs=Ol(Cg);function Ol(t){return t&&t.__esModule?t:{default:t}}function Al(t){var e=arguments.length<=1||arguments[1]===void 0?0:arguments[1],n=[{mode:"normal",character:null}],r=[],s=0,i="",o=null,a=null,u=e,c=t;t[0]==="("&&t[t.length-1]===")"&&(c=t.substring(1,t.length-1),u++);for(var f=0;f0&&(n[c-1].after=i.before),i.type===void 0){if(c>0){if(n[c-1].type==="media-feature-expression"){i.type="keyword";continue}if(n[c-1].value==="not"||n[c-1].value==="only"){i.type="media-type";continue}if(n[c-1].value==="and"){i.type="media-feature-expression";continue}n[c-1].type==="media-type"&&(n[c+1]?i.type=n[c+1].type==="media-feature-expression"?"keyword":"media-feature-expression":i.type="media-feature-expression")}if(c===0){if(!n[c+1]){i.type="media-type";continue}if(n[c+1]&&(n[c+1].type==="media-feature-expression"||n[c+1].type==="keyword")){i.type="media-type";continue}if(n[c+2]){if(n[c+2].type==="media-feature-expression"){i.type="media-type",n[c+1].type="keyword";continue}if(n[c+2].type==="keyword"){i.type="keyword",n[c+1].type="media-type";continue}}if(n[c+3]&&n[c+3].type==="media-feature-expression"){i.type="keyword",n[c+1].type="media-type",n[c+2].type="keyword";continue}}}return n}function Og(t){var e=[],n=0,r=0,s=/^(\s*)url\s*\(/.exec(t);if(s!==null){for(var i=s[0].length,o=1;o>0;){var a=t[i];a==="("&&o++,a===")"&&o--,i++}e.unshift(new Cl.default({type:"url",value:t.substring(0,i).trim(),sourceIndex:s[1].length,before:s[1],after:/^(\s*)/.exec(t.substring(i))[1]})),n=i}for(var u=n;u{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.default=Ig;var Ag=xs(),Ng=Rg(Ag),Pg=Nl();function Rg(t){return t&&t.__esModule?t:{default:t}}function Ig(t){return new Ng.default({nodes:(0,Pg.parseMediaList)(t),type:"media-query-list",value:t.trim()})}});var zg={};Cs(zg,{languages:()=>Ul,options:()=>zl,parsers:()=>en,printers:()=>Wg});var jl=(t,e,n,r)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(n,r):n.global?e.replace(n,r):e.split(n).join(r)},T=jl;var St="'",As='"';function Jl(t,e){let n=e===!0||e===St?St:As,r=n===St?As:St,s=0,i=0;for(let o of t)o===n?s++:o===r&&i++;return s>i?r:n}var Ns=Jl;function Xl(t,e,n){let r=e==='"'?"'":'"',i=T(!1,t,/\\(.)|(["'])/gs,(o,a,u)=>a===r?a:u===e?"\\"+u:u||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(a)?a:"\\"+a));return e+i+e}var Ps=Xl;function Zl(t,e){let n=t.slice(1,-1),r=e.parser==="json"||e.parser==="json5"&&e.quoteProps==="preserve"&&!e.singleQuote?'"':e.__isInHtmlAttribute?"'":Ns(n,e.singleQuote);return Ps(n,r,!(e.parser==="css"||e.parser==="less"||e.parser==="scss"||e.__embeddedInHtml))}var Ct=Zl;function ec(t){return Array.isArray(t)&&t.length>0}var ee=ec;var Fe="string",$e="array",Ue="cursor",xe="indent",be="align",We="trim",ke="group",te="fill",le="if-break",ze="indent-if-break",Ve="line-suffix",Ye="line-suffix-boundary",Q="line",Ge="label",_e="break-parent",Ot=new Set([Ue,xe,be,We,ke,te,le,ze,Ve,Ye,Q,Ge,_e]);function tc(t){if(typeof t=="string")return Fe;if(Array.isArray(t))return $e;if(!t)return;let{type:e}=t;if(Ot.has(e))return e}var Ke=tc;var rc=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function nc(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', +`),h=x.length-1,h>0?(b=a+h,w=l-x[h].length):(b=a,w=o),r.push(["comment",d,a,u-o,b,l-w,u]),o=w,a=b,u=l}else if(p===Nh&&!Mh.test(s.slice(u+1,u+2)))l=u+1,r.push(["#",s.slice(u,l),a,u-o,a,l-o,u]),u=l-1;else if((p===qh||p===Dh)&&s.charCodeAt(u+1)===Zn){l=u+2;do l+=1,p=s.charCodeAt(l);while(l=mu&&p<=yu&&(C=Me),C.lastIndex=u+1,C.test(s),C.lastIndex===0?l=s.length-1:l=C.lastIndex-2,C===Me||p===Ch){let O=s.charCodeAt(l),ve=s.charCodeAt(l+1),Ss=s.charCodeAt(l+2);(O===Rh||O===Ih)&&(ve===Or||ve===Zn)&&Ss>=mu&&Ss<=yu&&(Me.lastIndex=l+2,Me.test(s),Me.lastIndex===0?l=s.length-1:l=Me.lastIndex-2)}r.push(["word",s.slice(u,l+1),a,u-o,a,l-o,u]),u=l}break}u++}return r}});var ss=y((Db,xu)=>{xu.exports=function(e,n){if(n=typeof n=="number"?n:1/0,!n)return Array.isArray(e)?e.map(function(s){return s}):e;return r(e,1);function r(s,i){return s.reduce(function(o,a){return Array.isArray(a)&&i{bu.exports=function(t,e){for(var n=-1,r=[];(n=t.indexOf(e,n+1))!==-1;)r.push(n);return r}});var os=y((Mb,ku)=>{"use strict";function Fh(t,e){for(var n=1,r=t.length,s=t[0],i=t[0],o=1;o{"use strict";var as=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};_u.exports=as});var Ou=y(($b,Cu)=>{"use strict";var Wh=Ba(),zh=$a(),Vh=za(),Yh=Ya(),Gh=Ka(),Kh=Qa(),Hh=Xa(),Qh=eu(),jh=ru(),Eu=su(),Jh=ou(),Su=uu(),Xh=cu(),Zh=vu(),ed=ss(),td=is(),rd=os(),nd=Tu();function sd(t){return t.sort((e,n)=>e-n)}Cu.exports=class{constructor(e,n){let r={loose:!1};this.cache=[],this.input=e,this.options=Object.assign({},r,n),this.position=0,this.unbalanced=0,this.root=new Wh;let s=new zh;this.root.append(s),this.current=s,this.tokens=Zh(e,this.options)}parse(){return this.loop()}colon(){let e=this.currToken;this.newNode(new Yh({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comma(){let e=this.currToken;this.newNode(new Gh({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comment(){let e=!1,n=this.currToken[1].replace(/\/\*|\*\//g,""),r;this.options.loose&&n.startsWith("//")&&(n=n.substring(2),e=!0),r=new Kh({value:n,inline:e,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(r),this.position++}error(e,n){throw new nd(e+` at line: ${n[2]}, column ${n[3]}`)}loop(){for(;this.position0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.currToken):this.nextToken[0]!=="space"&&this.nextToken[0]!=="word"?this.error("Syntax Error",this.currToken):this.nextToken[0]==="word"&&this.current.last.type!=="operator"&&this.current.last.value!=="("&&this.error("Syntax Error",this.currToken):(this.nextToken[0]==="space"||this.nextToken[0]==="operator"||this.prevToken[0]==="operator")&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type==="operator")&&this.nextToken[0]==="word")return this.word()}else if(this.nextToken[0]==="word")return this.word()}return n=new jh({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(n)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case"operator":this.operator();break;case"string":this.string();break;case"unicoderange":this.unicodeRange();break;default:this.word();break}}parenOpen(){let e=1,n=this.position+1,r=this.currToken,s;for(;n=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error("Expected opening parenthesis",e),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let e=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.raws.after+=e[1],this.position++):(this.spaces=e[1],this.position++)}unicodeRange(){let e=this.currToken;this.newNode(new Xh({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}splitWord(){let e=this.nextToken,n=this.currToken[1],r=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,s=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,i,o;if(!s.test(n))for(;e&&e[0]==="word";){this.position++;let a=this.currToken[1];n+=a,e=this.nextToken}i=td(n,"@"),o=sd(rd(ed([[0],i]))),o.forEach((a,u)=>{let c=o[u+1]||n.length,f=n.slice(a,c),p;if(~i.indexOf(a))p=new Vh({value:f.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+a},end:{line:this.currToken[4],column:this.currToken[3]+(c-1)}},sourceIndex:this.currToken[6]+o[u]});else if(r.test(this.currToken[1])){let l=f.replace(r,"");p=new Qh({value:f.replace(l,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+a},end:{line:this.currToken[4],column:this.currToken[3]+(c-1)}},sourceIndex:this.currToken[6]+o[u],unit:l})}else p=new(e&&e[0]==="("?Hh:Su)({value:f,source:{start:{line:this.currToken[2],column:this.currToken[3]+a},end:{line:this.currToken[4],column:this.currToken[3]+(c-1)}},sourceIndex:this.currToken[6]+o[u]}),p.type==="word"?(p.isHex=/^#(.+)/.test(f),p.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(f)):this.cache.push(this.current);this.newNode(p)}),this.position++}string(){let e=this.currToken,n=this.currToken[1],r=/^(\"|\')/,s=r.test(n),i="",o;s&&(i=n.match(r)[0],n=n.slice(1,n.length-1)),o=new Jh({value:n,source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6],quoted:s}),o.raws.quote=i,this.newNode(o),this.position++}word(){return this.splitWord()}newNode(e){return this.spaces&&(e.raws.before+=this.spaces,this.spaces=""),this.current.append(e)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}});var we=y((Pr,qu)=>{"use strict";Pr.__esModule=!0;var Iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function cd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var fd=function t(e,n){if((typeof e>"u"?"undefined":Iu(e))!=="object")return e;var r=new e.constructor;for(var s in e)if(e.hasOwnProperty(s)){var i=e[s],o=typeof i>"u"?"undefined":Iu(i);s==="parent"&&o==="object"?n&&(r[s]=n):i instanceof Array?r[s]=i.map(function(a){return t(a,r)}):r[s]=t(i,r)}return r},pd=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};cd(this,t);for(var n in e)this[n]=e[n];var r=e.spaces;r=r===void 0?{}:r;var s=r.before,i=s===void 0?"":s,o=r.after,a=o===void 0?"":o;this.spaces={before:i,after:a}}return t.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.prototype.replaceWith=function(){if(this.parent){for(var n in arguments)this.parent.insertBefore(this,arguments[n]);this.remove()}return this},t.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},t.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},t.prototype.clone=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=fd(this);for(var s in n)r[s]=n[s];return r},t.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join("")},t}();Pr.default=pd;qu.exports=Pr.default});var L=y(F=>{"use strict";F.__esModule=!0;var Hb=F.TAG="tag",Qb=F.STRING="string",jb=F.SELECTOR="selector",Jb=F.ROOT="root",Xb=F.PSEUDO="pseudo",Zb=F.NESTING="nesting",ek=F.ID="id",tk=F.COMMENT="comment",rk=F.COMBINATOR="combinator",nk=F.CLASS="class",sk=F.ATTRIBUTE="attribute",ik=F.UNIVERSAL="universal"});var Ir=y((Rr,Du)=>{"use strict";Rr.__esModule=!0;var hd=function(){function t(e,n){for(var r=0;r=r&&(this.indexes[i]=s-1);return this},e.prototype.removeAll=function(){for(var i=this.nodes,r=Array.isArray(i),s=0,i=r?i:i[Symbol.iterator]();;){var o;if(r){if(s>=i.length)break;o=i[s++]}else{if(s=i.next(),s.done)break;o=s.value}var a=o;a.parent=void 0}return this.nodes=[],this},e.prototype.empty=function(){return this.removeAll()},e.prototype.insertAfter=function(r,s){var i=this.index(r);this.nodes.splice(i+1,0,s);var o=void 0;for(var a in this.indexes)o=this.indexes[a],i<=o&&(this.indexes[a]=o+this.nodes.length);return this},e.prototype.insertBefore=function(r,s){var i=this.index(r);this.nodes.splice(i,0,s);var o=void 0;for(var a in this.indexes)o=this.indexes[a],i<=o&&(this.indexes[a]=o+this.nodes.length);return this},e.prototype.each=function(r){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var s=this.lastEach;if(this.indexes[s]=0,!!this.length){for(var i=void 0,o=void 0;this.indexes[s]{"use strict";qr.__esModule=!0;var _d=Ir(),Td=Sd(_d),Ed=L();function Sd(t){return t&&t.__esModule?t:{default:t}}function Cd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Od(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Ad(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Nd=function(t){Ad(e,t);function e(n){Cd(this,e);var r=Od(this,t.call(this,n));return r.type=Ed.ROOT,r}return e.prototype.toString=function(){var r=this.reduce(function(s,i){var o=String(i);return o?s+o+",":""},"").slice(0,-1);return this.trailingComma?r+",":r},e}(Td.default);qr.default=Nd;Lu.exports=qr.default});var Fu=y((Dr,Bu)=>{"use strict";Dr.__esModule=!0;var Pd=Ir(),Rd=qd(Pd),Id=L();function qd(t){return t&&t.__esModule?t:{default:t}}function Dd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ld(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Md(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Bd=function(t){Md(e,t);function e(n){Dd(this,e);var r=Ld(this,t.call(this,n));return r.type=Id.SELECTOR,r}return e}(Rd.default);Dr.default=Bd;Bu.exports=Dr.default});var Be=y((Lr,$u)=>{"use strict";Lr.__esModule=!0;var Fd=function(){function t(e,n){for(var r=0;r{"use strict";Mr.__esModule=!0;var Kd=Be(),Hd=jd(Kd),Qd=L();function jd(t){return t&&t.__esModule?t:{default:t}}function Jd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Xd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Zd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var em=function(t){Zd(e,t);function e(n){Jd(this,e);var r=Xd(this,t.call(this,n));return r.type=Qd.CLASS,r}return e.prototype.toString=function(){return[this.spaces.before,this.ns,"."+this.value,this.spaces.after].join("")},e}(Hd.default);Mr.default=em;Uu.exports=Mr.default});var Vu=y((Br,zu)=>{"use strict";Br.__esModule=!0;var tm=we(),rm=sm(tm),nm=L();function sm(t){return t&&t.__esModule?t:{default:t}}function im(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function om(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function am(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var um=function(t){am(e,t);function e(n){im(this,e);var r=om(this,t.call(this,n));return r.type=nm.COMMENT,r}return e}(rm.default);Br.default=um;zu.exports=Br.default});var Gu=y((Fr,Yu)=>{"use strict";Fr.__esModule=!0;var lm=Be(),cm=pm(lm),fm=L();function pm(t){return t&&t.__esModule?t:{default:t}}function hm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dm(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function mm(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var ym=function(t){mm(e,t);function e(n){hm(this,e);var r=dm(this,t.call(this,n));return r.type=fm.ID,r}return e.prototype.toString=function(){return[this.spaces.before,this.ns,"#"+this.value,this.spaces.after].join("")},e}(cm.default);Fr.default=ym;Yu.exports=Fr.default});var Hu=y(($r,Ku)=>{"use strict";$r.__esModule=!0;var gm=Be(),wm=xm(gm),vm=L();function xm(t){return t&&t.__esModule?t:{default:t}}function bm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function km(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function _m(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Tm=function(t){_m(e,t);function e(n){bm(this,e);var r=km(this,t.call(this,n));return r.type=vm.TAG,r}return e}(wm.default);$r.default=Tm;Ku.exports=$r.default});var ju=y((Ur,Qu)=>{"use strict";Ur.__esModule=!0;var Em=we(),Sm=Om(Em),Cm=L();function Om(t){return t&&t.__esModule?t:{default:t}}function Am(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nm(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Pm(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Rm=function(t){Pm(e,t);function e(n){Am(this,e);var r=Nm(this,t.call(this,n));return r.type=Cm.STRING,r}return e}(Sm.default);Ur.default=Rm;Qu.exports=Ur.default});var Xu=y((Wr,Ju)=>{"use strict";Wr.__esModule=!0;var Im=Ir(),qm=Lm(Im),Dm=L();function Lm(t){return t&&t.__esModule?t:{default:t}}function Mm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bm(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Fm(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var $m=function(t){Fm(e,t);function e(n){Mm(this,e);var r=Bm(this,t.call(this,n));return r.type=Dm.PSEUDO,r}return e.prototype.toString=function(){var r=this.length?"("+this.map(String).join(",")+")":"";return[this.spaces.before,String(this.value),r,this.spaces.after].join("")},e}(qm.default);Wr.default=$m;Ju.exports=Wr.default});var el=y((zr,Zu)=>{"use strict";zr.__esModule=!0;var Um=Be(),Wm=Vm(Um),zm=L();function Vm(t){return t&&t.__esModule?t:{default:t}}function Ym(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Gm(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Km(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Hm=function(t){Km(e,t);function e(n){Ym(this,e);var r=Gm(this,t.call(this,n));return r.type=zm.ATTRIBUTE,r.raws={},r}return e.prototype.toString=function(){var r=[this.spaces.before,"[",this.ns,this.attribute];return this.operator&&r.push(this.operator),this.value&&r.push(this.value),this.raws.insensitive?r.push(this.raws.insensitive):this.insensitive&&r.push(" i"),r.push("]"),r.concat(this.spaces.after).join("")},e}(Wm.default);zr.default=Hm;Zu.exports=zr.default});var rl=y((Vr,tl)=>{"use strict";Vr.__esModule=!0;var Qm=Be(),jm=Xm(Qm),Jm=L();function Xm(t){return t&&t.__esModule?t:{default:t}}function Zm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ey(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function ty(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var ry=function(t){ty(e,t);function e(n){Zm(this,e);var r=ey(this,t.call(this,n));return r.type=Jm.UNIVERSAL,r.value="*",r}return e}(jm.default);Vr.default=ry;tl.exports=Vr.default});var sl=y((Yr,nl)=>{"use strict";Yr.__esModule=!0;var ny=we(),sy=oy(ny),iy=L();function oy(t){return t&&t.__esModule?t:{default:t}}function ay(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function uy(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function ly(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var cy=function(t){ly(e,t);function e(n){ay(this,e);var r=uy(this,t.call(this,n));return r.type=iy.COMBINATOR,r}return e}(sy.default);Yr.default=cy;nl.exports=Yr.default});var ol=y((Gr,il)=>{"use strict";Gr.__esModule=!0;var fy=we(),py=dy(fy),hy=L();function dy(t){return t&&t.__esModule?t:{default:t}}function my(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yy(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function gy(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var wy=function(t){gy(e,t);function e(n){my(this,e);var r=yy(this,t.call(this,n));return r.type=hy.NESTING,r.value="&",r}return e}(py.default);Gr.default=wy;il.exports=Gr.default});var ul=y((Kr,al)=>{"use strict";Kr.__esModule=!0;Kr.default=vy;function vy(t){return t.sort(function(e,n){return e-n})}al.exports=Kr.default});var gl=y((jr,yl)=>{"use strict";jr.__esModule=!0;jr.default=Ny;var ll=39,xy=34,us=92,cl=47,kt=10,ls=32,cs=12,fs=9,ps=13,fl=43,pl=62,hl=126,dl=124,by=44,ky=40,_y=41,Ty=91,Ey=93,Sy=59,ml=42,Cy=58,Oy=38,Ay=64,Hr=/[ \n\t\r\{\(\)'"\\;/]/g,Qr=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function Ny(t){for(var e=[],n=t.css.valueOf(),r=void 0,s=void 0,i=void 0,o=void 0,a=void 0,u=void 0,c=void 0,f=void 0,p=void 0,l=void 0,g=void 0,x=n.length,h=-1,d=1,m=0,b=function(v,N){if(t.safe)n+=N,s=n.length-1;else throw t.error("Unclosed "+v,d,m-h,m)};m0?(f=d+a,p=s-o[a].length):(f=d,p=h),e.push(["comment",u,d,m-h,f,s-p,m]),h=p,d=f,m=s):(Qr.lastIndex=m+1,Qr.test(n),Qr.lastIndex===0?s=n.length-1:s=Qr.lastIndex-2,e.push(["word",n.slice(m,s+1),d,m-h,d,s-h,m]),m=s);break}m++}return e}yl.exports=jr.default});var xl=y((Jr,vl)=>{"use strict";Jr.__esModule=!0;var Py=function(){function t(e,n){for(var r=0;r1?(o[0]===""&&(o[0]=!0),a.attribute=this.parseValue(o[2]),a.namespace=this.parseNamespace(o[0])):a.attribute=this.parseValue(i[0]),r=new Zy.default(a),i[2]){var u=i[2].split(/(\s+i\s*?)$/),c=u[0].trim();r.value=this.lossy?c:u[0],u[1]&&(r.insensitive=!0,this.lossy||(r.raws.insensitive=u[1])),r.quoted=c[0]==="'"||c[0]==='"',r.raws.unquoted=r.quoted?c.slice(1,-1):c}this.newNode(r),this.position++},t.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var n=new ng.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position1&&n.nextToken&&n.nextToken[0]==="("&&n.error("Misplaced parenthesis.")})}else this.error('Unexpected "'+this.currToken[0]+'" found.')},t.prototype.space=function(){var n=this.currToken;this.position===0||this.prevToken[0]===","||this.prevToken[0]==="("?(this.spaces=this.parseSpace(n[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.spaces.after=this.parseSpace(n[1]),this.position++):this.combinator()},t.prototype.string=function(){var n=this.currToken;this.newNode(new Qy.default({value:this.currToken[1],source:{start:{line:n[2],column:n[3]},end:{line:n[4],column:n[5]}},sourceIndex:n[6]})),this.position++},t.prototype.universal=function(n){var r=this.nextToken;if(r&&r[1]==="|")return this.position++,this.namespace();this.newNode(new tg.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),n),this.position++},t.prototype.splitWord=function(n,r){for(var s=this,i=this.nextToken,o=this.currToken[1];i&&i[0]==="word";){this.position++;var a=this.currToken[1];if(o+=a,a.lastIndexOf("\\")===a.length-1){var u=this.nextToken;u&&u[0]==="space"&&(o+=this.parseSpace(u[1]," "),this.position++)}i=this.nextToken}var c=(0,hs.default)(o,"."),f=(0,hs.default)(o,"#"),p=(0,hs.default)(o,"#{");p.length&&(f=f.filter(function(g){return!~p.indexOf(g)}));var l=(0,ag.default)((0,Ly.default)((0,Iy.default)([[0],c,f])));l.forEach(function(g,x){var h=l[x+1]||o.length,d=o.slice(g,h);if(x===0&&r)return r.call(s,d,l.length);var m=void 0;~c.indexOf(g)?m=new Uy.default({value:d.slice(1),source:{start:{line:s.currToken[2],column:s.currToken[3]+g},end:{line:s.currToken[4],column:s.currToken[3]+(h-1)}},sourceIndex:s.currToken[6]+l[x]}):~f.indexOf(g)?m=new Yy.default({value:d.slice(1),source:{start:{line:s.currToken[2],column:s.currToken[3]+g},end:{line:s.currToken[4],column:s.currToken[3]+(h-1)}},sourceIndex:s.currToken[6]+l[x]}):m=new Ky.default({value:d,source:{start:{line:s.currToken[2],column:s.currToken[3]+g},end:{line:s.currToken[4],column:s.currToken[3]+(h-1)}},sourceIndex:s.currToken[6]+l[x]}),s.newNode(m,n)}),this.position++},t.prototype.word=function(n){var r=this.nextToken;return r&&r[1]==="|"?(this.position++,this.namespace()):this.splitWord(n)},t.prototype.loop=function(){for(;this.position{"use strict";Xr.__esModule=!0;var dg=function(){function t(e,n){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},s=new yg.default({css:n,error:function(o){throw new Error(o)},options:r});return this.res=s,this.func(s),this},dg(t,[{key:"result",get:function(){return String(this.res)}}]),t}();Xr.default=vg;bl.exports=Xr.default});var gs=y(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});function _g(t){this.after=t.after,this.before=t.before,this.type=t.type,this.value=t.value,this.sourceIndex=t.sourceIndex}ys.default=_g});var vs=y(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});var Tg=gs(),Sl=Eg(Tg);function Eg(t){return t&&t.__esModule?t:{default:t}}function _t(t){var e=this;this.constructor(t),this.nodes=t.nodes,this.after===void 0&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),this.before===void 0&&(this.before=this.nodes.length>0?this.nodes[0].before:""),this.sourceIndex===void 0&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(n){n.parent=e})}_t.prototype=Object.create(Sl.default.prototype);_t.constructor=Sl.default;_t.prototype.walk=function(e,n){for(var r=typeof e=="string"||e instanceof RegExp,s=r?n:e,i=typeof e=="string"?new RegExp(e):e,o=0;o{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.parseMediaFeature=Al;Tt.parseMediaQuery=bs;Tt.parseMediaList=Og;var Sg=gs(),Cl=Ol(Sg),Cg=vs(),xs=Ol(Cg);function Ol(t){return t&&t.__esModule?t:{default:t}}function Al(t){var e=arguments.length<=1||arguments[1]===void 0?0:arguments[1],n=[{mode:"normal",character:null}],r=[],s=0,i="",o=null,a=null,u=e,c=t;t[0]==="("&&t[t.length-1]===")"&&(c=t.substring(1,t.length-1),u++);for(var f=0;f0&&(n[c-1].after=i.before),i.type===void 0){if(c>0){if(n[c-1].type==="media-feature-expression"){i.type="keyword";continue}if(n[c-1].value==="not"||n[c-1].value==="only"){i.type="media-type";continue}if(n[c-1].value==="and"){i.type="media-feature-expression";continue}n[c-1].type==="media-type"&&(n[c+1]?i.type=n[c+1].type==="media-feature-expression"?"keyword":"media-feature-expression":i.type="media-feature-expression")}if(c===0){if(!n[c+1]){i.type="media-type";continue}if(n[c+1]&&(n[c+1].type==="media-feature-expression"||n[c+1].type==="keyword")){i.type="media-type";continue}if(n[c+2]){if(n[c+2].type==="media-feature-expression"){i.type="media-type",n[c+1].type="keyword";continue}if(n[c+2].type==="keyword"){i.type="keyword",n[c+1].type="media-type";continue}}if(n[c+3]&&n[c+3].type==="media-feature-expression"){i.type="keyword",n[c+1].type="media-type",n[c+2].type="keyword";continue}}}return n}function Og(t){var e=[],n=0,r=0,s=/^(\s*)url\s*\(/.exec(t);if(s!==null){for(var i=s[0].length,o=1;o>0;){var a=t[i];a==="("&&o++,a===")"&&o--,i++}e.unshift(new Cl.default({type:"url",value:t.substring(0,i).trim(),sourceIndex:s[1].length,before:s[1],after:/^(\s*)/.exec(t.substring(i))[1]})),n=i}for(var u=n;u{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.default=Ig;var Ag=vs(),Ng=Rg(Ag),Pg=Nl();function Rg(t){return t&&t.__esModule?t:{default:t}}function Ig(t){return new Ng.default({nodes:(0,Pg.parseMediaList)(t),type:"media-query-list",value:t.trim()})}});var zg={};Cs(zg,{languages:()=>Ul,options:()=>zl,parsers:()=>Es,printers:()=>Wg});var jl=(t,e,n,r)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(n,r):n.global?e.replace(n,r):e.split(n).join(r)},T=jl;var St="'",As='"';function Jl(t,e){let n=e===!0||e===St?St:As,r=n===St?As:St,s=0,i=0;for(let o of t)o===n?s++:o===r&&i++;return s>i?r:n}var Ns=Jl;function Xl(t,e,n){let r=e==='"'?"'":'"',i=T(!1,t,/\\(.)|(["'])/gs,(o,a,u)=>a===r?a:u===e?"\\"+u:u||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(a)?a:"\\"+a));return e+i+e}var Ps=Xl;function Zl(t,e){let n=t.slice(1,-1),r=e.parser==="json"||e.parser==="json5"&&e.quoteProps==="preserve"&&!e.singleQuote?'"':e.__isInHtmlAttribute?"'":Ns(n,e.singleQuote);return Ps(n,r,!(e.parser==="css"||e.parser==="less"||e.parser==="scss"||e.__embeddedInHtml))}var Ct=Zl;function ec(t){return Array.isArray(t)&&t.length>0}var ee=ec;var Fe="string",$e="array",Ue="cursor",xe="indent",be="align",We="trim",ke="group",te="fill",le="if-break",ze="indent-if-break",Ve="line-suffix",Ye="line-suffix-boundary",Q="line",Ge="label",_e="break-parent",Ot=new Set([Ue,xe,be,We,ke,te,le,ze,Ve,Ye,Q,Ge,_e]);function tc(t){if(typeof t=="string")return Fe;if(Array.isArray(t))return $e;if(!t)return;let{type:e}=t;if(Ot.has(e))return e}var Ke=tc;var rc=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function nc(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', Expected it to be 'string' or 'object'.`;if(Ke(t))throw new Error("doc is valid.");let n=Object.prototype.toString.call(t);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let r=rc([...Ot].map(s=>`'${s}'`));return`Unexpected doc.type '${t.type}'. -Expected it to be ${r}.`}var tn=class extends Error{name="InvalidDocError";constructor(e){super(nc(e)),this.doc=e}},rn=tn;var Rs=()=>{},ce=Rs,At=Rs;function q(t){return ce(t),{type:xe,contents:t}}function Is(t,e){return ce(e),{type:be,contents:e,n:t}}function D(t,e={}){return ce(t),At(e.expandedStates,!0),{type:ke,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function qs(t){return Is({type:"root"},t)}function fe(t){return Is(-1,t)}function He(t){return At(t),{type:te,parts:t}}function Nt(t,e="",n={}){return ce(t),e!==""&&ce(e),{type:le,breakContents:t,flatContents:e,groupId:n.groupId}}var Qe={type:_e};var sc={type:Q,hard:!0};var A={type:Q},M={type:Q,soft:!0},_=[sc,Qe];function Y(t,e){ce(t),At(e);let n=[];for(let r=0;r{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[n<0?e.length+n:n]:e.at(n)},G=ic;var Ds=t=>{if(Array.isArray(t))return t;if(t.type!==te)throw new Error(`Expect doc to be 'array' or '${te}'.`);return t.parts};function oc(t,e){if(typeof t=="string")return e(t);let n=new Map;return r(t);function r(i){if(n.has(i))return n.get(i);let o=s(i);return n.set(i,o),o}function s(i){switch(Ke(i)){case $e:return e(i.map(r));case te:return e({...i,parts:i.parts.map(r)});case le:return e({...i,breakContents:r(i.breakContents),flatContents:r(i.flatContents)});case ke:{let{expandedStates:o,contents:a}=i;return o?(o=o.map(r),a=o[0]):a=r(a),e({...i,contents:a,expandedStates:o})}case be:case xe:case ze:case Ge:case Ve:return e({...i,contents:r(i.contents)});case Fe:case Ue:case We:case Ye:case Q:case _e:return e(i);default:throw new rn(i)}}}function ac(t){return t.type===Q&&!t.hard?t.soft?"":" ":t.type===le?t.flatContents:t}function Ls(t){return oc(t,ac)}var nn=class extends Error{name="UnexpectedNodeError";constructor(e,n,r="type"){super(`Unexpected ${n} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},Ms=nn;function uc(t){return(t==null?void 0:t.type)==="front-matter"}var Te=uc;var lc=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function Bs(t,e,n){if(Te(t)&&t.lang==="yaml"&&delete e.value,t.type==="css-comment"&&n.type==="css-root"&&n.nodes.length>0&&((n.nodes[0]===t||Te(n.nodes[0])&&n.nodes[1]===t)&&(delete e.text,/^\*\s*@(?:format|prettier)\s*$/.test(t.text))||n.type==="css-root"&&G(!1,n.nodes,-1)===t))return null;if(t.type==="value-root"&&delete e.text,(t.type==="media-query"||t.type==="media-query-list"||t.type==="media-feature-expression")&&delete e.value,t.type==="css-rule"&&delete e.params,t.type==="selector-combinator"&&(e.value=T(!1,e.value,/\s+/g," ")),t.type==="media-feature"&&(e.value=T(!1,e.value," ","")),(t.type==="value-word"&&(t.isColor&&t.isHex||["initial","inherit","unset","revert"].includes(e.value.toLowerCase()))||t.type==="media-feature"||t.type==="selector-root-invalid"||t.type==="selector-pseudo")&&(e.value=e.value.toLowerCase()),t.type==="css-decl"&&(e.prop=e.prop.toLowerCase()),(t.type==="css-atrule"||t.type==="css-import")&&(e.name=e.name.toLowerCase()),t.type==="value-number"&&(e.unit=e.unit.toLowerCase()),t.type==="value-unknown"&&(e.value=T(!1,e.value,/;$/g,"")),(t.type==="media-feature"||t.type==="media-keyword"||t.type==="media-type"||t.type==="media-unknown"||t.type==="media-url"||t.type==="media-value"||t.type==="selector-attribute"||t.type==="selector-string"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="value-string")&&e.value&&(e.value=cc(e.value)),t.type==="selector-attribute"&&(e.attribute=e.attribute.trim(),e.namespace&&typeof e.namespace=="string"&&(e.namespace=e.namespace.trim(),e.namespace.length===0&&(e.namespace=!0)),e.value&&(e.value=T(!1,e.value.trim(),/^["']|["']$/g,""),delete e.quoted)),(t.type==="media-value"||t.type==="media-type"||t.type==="value-number"||t.type==="selector-root-invalid"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="selector-tag")&&e.value&&(e.value=T(!1,e.value,/([\d+.Ee-]+)([A-Za-z]*)/g,(r,s,i)=>{let o=Number(s);return Number.isNaN(o)?r:o+i.toLowerCase()})),t.type==="selector-tag"){let r=t.value.toLowerCase();["from","to"].includes(r)&&(e.value=r)}if(t.type==="css-atrule"&&t.name.toLowerCase()==="supports"&&delete e.value,t.type==="selector-unknown"&&delete e.value,t.type==="value-comma_group"){let r=t.groups.findIndex(s=>s.type==="value-number"&&s.unit==="...");r!==-1&&(e.groups[r].unit="",e.groups.splice(r+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(t.type==="value-comma_group"&&t.groups.some(r=>r.type==="value-atword"&&r.value.endsWith("[")||r.type==="value-word"&&r.value.startsWith("]")))return{type:"value-atword",value:t.groups.map(r=>r.value).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}}Bs.ignoredProperties=lc;function cc(t){return T(!1,T(!1,t,"'",'"'),/\\([^\dA-Fa-f])/g,"$1")}var Fs=Bs;async function fc(t,e){if(t.lang==="yaml"){let n=t.value.trim(),r=n?await e(n,{parser:"yaml"}):"";return qs([t.startDelimiter,_,r,r?_:"",t.endDelimiter])}}var $s=fc;function Us(t){let{node:e}=t;if(e.type==="front-matter")return async n=>{let r=await $s(e,n);return r?[r,_]:void 0}}Us.getVisitorKeys=t=>t.type==="css-root"?["frontMatter"]:[];var Ws=Us;var re=ue(Qs(),1);function bc(t){if(!t.startsWith("#!"))return"";let e=t.indexOf(` +Expected it to be ${r}.`}var en=class extends Error{name="InvalidDocError";constructor(e){super(nc(e)),this.doc=e}},tn=en;var Rs=()=>{},ce=Rs,At=Rs;function q(t){return ce(t),{type:xe,contents:t}}function Is(t,e){return ce(e),{type:be,contents:e,n:t}}function D(t,e={}){return ce(t),At(e.expandedStates,!0),{type:ke,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function qs(t){return Is({type:"root"},t)}function fe(t){return Is(-1,t)}function He(t){return At(t),{type:te,parts:t}}function Nt(t,e="",n={}){return ce(t),e!==""&&ce(e),{type:le,breakContents:t,flatContents:e,groupId:n.groupId}}var Qe={type:_e};var sc={type:Q,hard:!0};var A={type:Q},M={type:Q,soft:!0},_=[sc,Qe];function Y(t,e){ce(t),At(e);let n=[];for(let r=0;r{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[n<0?e.length+n:n]:e.at(n)},G=ic;var Ds=t=>{if(Array.isArray(t))return t;if(t.type!==te)throw new Error(`Expect doc to be 'array' or '${te}'.`);return t.parts};function oc(t,e){if(typeof t=="string")return e(t);let n=new Map;return r(t);function r(i){if(n.has(i))return n.get(i);let o=s(i);return n.set(i,o),o}function s(i){switch(Ke(i)){case $e:return e(i.map(r));case te:return e({...i,parts:i.parts.map(r)});case le:return e({...i,breakContents:r(i.breakContents),flatContents:r(i.flatContents)});case ke:{let{expandedStates:o,contents:a}=i;return o?(o=o.map(r),a=o[0]):a=r(a),e({...i,contents:a,expandedStates:o})}case be:case xe:case ze:case Ge:case Ve:return e({...i,contents:r(i.contents)});case Fe:case Ue:case We:case Ye:case Q:case _e:return e(i);default:throw new tn(i)}}}function ac(t){return t.type===Q&&!t.hard?t.soft?"":" ":t.type===le?t.flatContents:t}function Ls(t){return oc(t,ac)}var rn=class extends Error{name="UnexpectedNodeError";constructor(e,n,r="type"){super(`Unexpected ${n} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},Ms=rn;function uc(t){return(t==null?void 0:t.type)==="front-matter"}var Te=uc;var lc=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function Bs(t,e,n){if(Te(t)&&t.lang==="yaml"&&delete e.value,t.type==="css-comment"&&n.type==="css-root"&&n.nodes.length>0&&((n.nodes[0]===t||Te(n.nodes[0])&&n.nodes[1]===t)&&(delete e.text,/^\*\s*@(?:format|prettier)\s*$/.test(t.text))||n.type==="css-root"&&G(!1,n.nodes,-1)===t))return null;if(t.type==="value-root"&&delete e.text,(t.type==="media-query"||t.type==="media-query-list"||t.type==="media-feature-expression")&&delete e.value,t.type==="css-rule"&&delete e.params,t.type==="selector-combinator"&&(e.value=T(!1,e.value,/\s+/g," ")),t.type==="media-feature"&&(e.value=T(!1,e.value," ","")),(t.type==="value-word"&&(t.isColor&&t.isHex||["initial","inherit","unset","revert"].includes(e.value.toLowerCase()))||t.type==="media-feature"||t.type==="selector-root-invalid"||t.type==="selector-pseudo")&&(e.value=e.value.toLowerCase()),t.type==="css-decl"&&(e.prop=e.prop.toLowerCase()),(t.type==="css-atrule"||t.type==="css-import")&&(e.name=e.name.toLowerCase()),t.type==="value-number"&&(e.unit=e.unit.toLowerCase()),t.type==="value-unknown"&&(e.value=T(!1,e.value,/;$/g,"")),(t.type==="media-feature"||t.type==="media-keyword"||t.type==="media-type"||t.type==="media-unknown"||t.type==="media-url"||t.type==="media-value"||t.type==="selector-attribute"||t.type==="selector-string"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="value-string")&&e.value&&(e.value=cc(e.value)),t.type==="selector-attribute"&&(e.attribute=e.attribute.trim(),e.namespace&&typeof e.namespace=="string"&&(e.namespace=e.namespace.trim(),e.namespace.length===0&&(e.namespace=!0)),e.value&&(e.value=T(!1,e.value.trim(),/^["']|["']$/g,""),delete e.quoted)),(t.type==="media-value"||t.type==="media-type"||t.type==="value-number"||t.type==="selector-root-invalid"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="selector-tag")&&e.value&&(e.value=T(!1,e.value,/([\d+.Ee-]+)([A-Za-z]*)/g,(r,s,i)=>{let o=Number(s);return Number.isNaN(o)?r:o+i.toLowerCase()})),t.type==="selector-tag"){let r=t.value.toLowerCase();["from","to"].includes(r)&&(e.value=r)}if(t.type==="css-atrule"&&t.name.toLowerCase()==="supports"&&delete e.value,t.type==="selector-unknown"&&delete e.value,t.type==="value-comma_group"){let r=t.groups.findIndex(s=>s.type==="value-number"&&s.unit==="...");r!==-1&&(e.groups[r].unit="",e.groups.splice(r+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(t.type==="value-comma_group"&&t.groups.some(r=>r.type==="value-atword"&&r.value.endsWith("[")||r.type==="value-word"&&r.value.startsWith("]")))return{type:"value-atword",value:t.groups.map(r=>r.value).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}}Bs.ignoredProperties=lc;function cc(t){return T(!1,T(!1,t,"'",'"'),/\\([^\dA-Fa-f])/g,"$1")}var Fs=Bs;async function fc(t,e){if(t.lang==="yaml"){let n=t.value.trim(),r=n?await e(n,{parser:"yaml"}):"";return qs([t.startDelimiter,_,r,r?_:"",t.endDelimiter])}}var $s=fc;function Us(t){let{node:e}=t;if(e.type==="front-matter")return async n=>{let r=await $s(e,n);return r?[r,_]:void 0}}Us.getVisitorKeys=t=>t.type==="css-root"?["frontMatter"]:[];var Ws=Us;var re=ue(Qs(),1);function bc(t){if(!t.startsWith("#!"))return"";let e=t.indexOf(` `);return e===-1?t:t.slice(0,e)}var js=bc;function Js(t){let e=js(t);e&&(t=t.slice(e.length+1));let n=(0,re.extract)(t),{pragmas:r,comments:s}=(0,re.parseWithComments)(n);return{shebang:e,text:t,pragmas:r,comments:s}}function Xs(t){let{pragmas:e}=Js(t);return Object.prototype.hasOwnProperty.call(e,"prettier")||Object.prototype.hasOwnProperty.call(e,"format")}function Zs(t){let{shebang:e,text:n,pragmas:r,comments:s}=Js(t),i=(0,re.strip)(n),o=(0,re.print)({pragmas:{format:"",...r},comments:s.trimStart()});return(e?`${e} `:"")+o+(i.startsWith(` `)?` @@ -40,13 +40,13 @@ Expected it to be ${r}.`}var tn=class extends Error{name="InvalidDocError";const `)+i}var kc=new RegExp("^(?-{3}|\\+{3})(?[^\\n]*)\\n(?:|(?.*?)\\n)(?\\k|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function _c(t){let e=t.match(kc);if(!e)return{content:t};let{startDelimiter:n,language:r,value:s="",endDelimiter:i}=e.groups,o=r.trim()||"yaml";if(n==="+++"&&(o="toml"),o!=="yaml"&&n!==i)return{content:t};let[a]=e;return{frontMatter:{type:"front-matter",lang:o,value:s,startDelimiter:n,endDelimiter:i,raw:a.replace(/\n$/,"")},content:T(!1,a,/[^\n]/g," ")+t.slice(a.length)}}var je=_c;function ei(t){return Xs(je(t).content)}function ti(t){let{frontMatter:e,content:n}=je(t);return(e?e.raw+` -`:"")+Zs(n)}var Je=null;function Xe(t){if(Je!==null&&typeof Je.property){let e=Je;return Je=Xe.prototype=null,e}return Je=Xe.prototype=t??Object.create(null),new Xe}var Tc=10;for(let t=0;t<=Tc;t++)Xe();function sn(t){return Xe(t)}function Ec(t,e="type"){sn(t);function n(r){let s=r[e],i=t[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:r});return i}return n}var ri=Ec;var Sc={"front-matter":[],"css-root":["frontMatter","nodes"],"css-comment":[],"css-rule":["selector","nodes"],"css-decl":["value","selector","nodes"],"css-atrule":["selector","params","value","nodes"],"media-query-list":["nodes"],"media-query":["nodes"],"media-type":[],"media-feature-expression":["nodes"],"media-feature":[],"media-colon":[],"media-value":[],"media-keyword":[],"media-url":[],"media-unknown":[],"selector-root":["nodes"],"selector-selector":["nodes"],"selector-comment":[],"selector-string":[],"selector-tag":[],"selector-id":[],"selector-class":[],"selector-attribute":[],"selector-combinator":["nodes"],"selector-universal":[],"selector-pseudo":["nodes"],"selector-nesting":[],"selector-unknown":[],"value-value":["group"],"value-root":["group"],"value-comment":[],"value-comma_group":["groups"],"value-paren_group":["open","groups","close"],"value-func":["group"],"value-paren":[],"value-number":[],"value-operator":[],"value-word":[],"value-colon":[],"value-comma":[],"value-string":[],"value-atword":[],"value-unicode-range":[],"value-unknown":[]},ni=Sc;var Cc=ri(ni),si=Cc;var Oc=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function ii(t){var e,n;return(n=(e=t.findAncestor(r=>r.type==="css-decl"))==null?void 0:e.prop)==null?void 0:n.toLowerCase()}var Ac=new Set(["initial","inherit","unset","revert"]);function oi(t){return Ac.has(t.toLowerCase())}function ai(t,e){var r;let n=t.findAncestor(s=>s.type==="css-atrule");return((r=n==null?void 0:n.name)==null?void 0:r.toLowerCase().endsWith("keyframes"))&&["from","to"].includes(e.toLowerCase())}function ne(t){return t.includes("$")||t.includes("@")||t.includes("#")||t.startsWith("%")||t.startsWith("--")||t.startsWith(":--")||t.includes("(")&&t.includes(")")?t:t.toLowerCase()}function Ee(t,e){var r;let n=t.findAncestor(s=>s.type==="value-func");return((r=n==null?void 0:n.value)==null?void 0:r.toLowerCase())===e}function ui(t){var r;let e=t.findAncestor(s=>s.type==="css-rule"),n=(r=e==null?void 0:e.raws)==null?void 0:r.selector;return n&&(n.startsWith(":import")||n.startsWith(":export"))}function Se(t,e){let n=Array.isArray(e)?e:[e],r=t.findAncestor(s=>s.type==="css-atrule");return r&&n.includes(r.name.toLowerCase())}function li(t){var n;let{node:e}=t;return e.groups[0].value==="url"&&e.groups.length===2&&((n=t.findAncestor(r=>r.type==="css-atrule"))==null?void 0:n.name)==="import"}function ci(t){return t.type==="value-func"&&t.value.toLowerCase()==="url"}function fi(t){return t.type==="value-func"&&t.value.toLowerCase()==="var"}function Pt(t,e){var r;let n=(r=t.parent)==null?void 0:r.nodes;return n&&n.indexOf(e)===n.length-1}function pi(t){let{selector:e}=t;return e?typeof e=="string"&&/^@.+:.*$/.test(e)||e.value&&/^@.+:.*$/.test(e.value):!1}function hi(t){return t.type==="value-word"&&["from","through","end"].includes(t.value)}function di(t){return t.type==="value-word"&&["and","or","not"].includes(t.value)}function mi(t){return t.type==="value-word"&&t.value==="in"}function Rt(t){return t.type==="value-operator"&&t.value==="*"}function Ze(t){return t.type==="value-operator"&&t.value==="/"}function j(t){return t.type==="value-operator"&&t.value==="+"}function he(t){return t.type==="value-operator"&&t.value==="-"}function Nc(t){return t.type==="value-operator"&&t.value==="%"}function It(t){return Rt(t)||Ze(t)||j(t)||he(t)||Nc(t)}function yi(t){return t.type==="value-word"&&["==","!="].includes(t.value)}function gi(t){return t.type==="value-word"&&["<",">","<=",">="].includes(t.value)}function et(t,e){return e.parser==="scss"&&t.type==="css-atrule"&&["if","else","for","each","while"].includes(t.name)}function an(t){var e;return((e=t.raws)==null?void 0:e.params)&&/^\(\s*\)$/.test(t.raws.params)}function un(t){return t.name.startsWith("prettier-placeholder")}function wi(t){return t.prop.startsWith("@prettier-placeholder")}function vi(t,e){return t.value==="$$"&&t.type==="value-func"&&(e==null?void 0:e.type)==="value-word"&&!e.raws.before}function xi(t){var e,n;return((e=t.value)==null?void 0:e.type)==="value-root"&&((n=t.value.group)==null?void 0:n.type)==="value-value"&&t.prop.toLowerCase()==="composes"}function bi(t){var e,n,r;return((r=(n=(e=t.value)==null?void 0:e.group)==null?void 0:n.group)==null?void 0:r.type)==="value-paren_group"&&t.value.group.group.open!==null&&t.value.group.group.close!==null}function de(t){var e;return((e=t.raws)==null?void 0:e.before)===""}function qt(t){var e,n;return t.type==="value-comma_group"&&((n=(e=t.groups)==null?void 0:e[1])==null?void 0:n.type)==="value-colon"}function on(t){var e;return t.type==="value-paren_group"&&((e=t.groups)==null?void 0:e[0])&&qt(t.groups[0])}function ln(t,e){var i;if(e.parser!=="scss")return!1;let{node:n}=t;if(n.groups.length===0)return!1;let r=t.grandparent;if(!on(n)&&!(r&&on(r)))return!1;let s=t.findAncestor(o=>o.type==="css-decl");return!!((i=s==null?void 0:s.prop)!=null&&i.startsWith("$")||on(r)||r.type==="value-func")}function cn(t){return t.type==="value-comment"&&t.inline}function Dt(t){return t.type==="value-word"&&t.value==="#"}function fn(t){return t.type==="value-word"&&t.value==="{"}function Lt(t){return t.type==="value-word"&&t.value==="}"}function tt(t){return["value-word","value-atword"].includes(t.type)}function Mt(t){return(t==null?void 0:t.type)==="value-colon"}function ki(t,e){if(!qt(e))return!1;let{groups:n}=e,r=n.indexOf(t);return r===-1?!1:Mt(n[r+1])}function _i(t){return t.value&&["not","and","or"].includes(t.value.toLowerCase())}function Ti(t){return t.type!=="value-func"?!1:Oc.has(t.value.toLowerCase())}function Ce(t){return/\/\//.test(t.split(/[\n\r]/).pop())}function rt(t){return(t==null?void 0:t.type)==="value-atword"&&t.value.startsWith("prettier-placeholder-")}function Ei(t,e){var n,r;if(((n=t.open)==null?void 0:n.value)!=="("||((r=t.close)==null?void 0:r.value)!==")"||t.groups.some(s=>s.type!=="value-comma_group"))return!1;if(e.type==="value-comma_group"){let s=e.groups.indexOf(t)-1,i=e.groups[s];if((i==null?void 0:i.type)==="value-word"&&i.value==="with")return!0}return!1}function nt(t){var e,n;return t.type==="value-paren_group"&&((e=t.open)==null?void 0:e.value)==="("&&((n=t.close)==null?void 0:n.value)===")"}function Bt(t){return(e,n,r)=>{let s=!!(r!=null&&r.backwards);if(n===!1)return!1;let{length:i}=e,o=n;for(;o>=0&&or.type==="css-decl"))==null?void 0:e.prop)==null?void 0:n.toLowerCase()}var Ac=new Set(["initial","inherit","unset","revert"]);function oi(t){return Ac.has(t.toLowerCase())}function ai(t,e){var r;let n=t.findAncestor(s=>s.type==="css-atrule");return((r=n==null?void 0:n.name)==null?void 0:r.toLowerCase().endsWith("keyframes"))&&["from","to"].includes(e.toLowerCase())}function ne(t){return t.includes("$")||t.includes("@")||t.includes("#")||t.startsWith("%")||t.startsWith("--")||t.startsWith(":--")||t.includes("(")&&t.includes(")")?t:t.toLowerCase()}function Ee(t,e){var r;let n=t.findAncestor(s=>s.type==="value-func");return((r=n==null?void 0:n.value)==null?void 0:r.toLowerCase())===e}function ui(t){var r;let e=t.findAncestor(s=>s.type==="css-rule"),n=(r=e==null?void 0:e.raws)==null?void 0:r.selector;return n&&(n.startsWith(":import")||n.startsWith(":export"))}function Se(t,e){let n=Array.isArray(e)?e:[e],r=t.findAncestor(s=>s.type==="css-atrule");return r&&n.includes(r.name.toLowerCase())}function li(t){var n;let{node:e}=t;return e.groups[0].value==="url"&&e.groups.length===2&&((n=t.findAncestor(r=>r.type==="css-atrule"))==null?void 0:n.name)==="import"}function ci(t){return t.type==="value-func"&&t.value.toLowerCase()==="url"}function fi(t){return t.type==="value-func"&&t.value.toLowerCase()==="var"}function Pt(t,e){var r;let n=(r=t.parent)==null?void 0:r.nodes;return n&&n.indexOf(e)===n.length-1}function pi(t){let{selector:e}=t;return e?typeof e=="string"&&/^@.+:.*$/.test(e)||e.value&&/^@.+:.*$/.test(e.value):!1}function hi(t){return t.type==="value-word"&&["from","through","end"].includes(t.value)}function di(t){return t.type==="value-word"&&["and","or","not"].includes(t.value)}function mi(t){return t.type==="value-word"&&t.value==="in"}function Rt(t){return t.type==="value-operator"&&t.value==="*"}function Ze(t){return t.type==="value-operator"&&t.value==="/"}function j(t){return t.type==="value-operator"&&t.value==="+"}function he(t){return t.type==="value-operator"&&t.value==="-"}function Nc(t){return t.type==="value-operator"&&t.value==="%"}function It(t){return Rt(t)||Ze(t)||j(t)||he(t)||Nc(t)}function yi(t){return t.type==="value-word"&&["==","!="].includes(t.value)}function gi(t){return t.type==="value-word"&&["<",">","<=",">="].includes(t.value)}function et(t,e){return e.parser==="scss"&&t.type==="css-atrule"&&["if","else","for","each","while"].includes(t.name)}function on(t){var e;return((e=t.raws)==null?void 0:e.params)&&/^\(\s*\)$/.test(t.raws.params)}function an(t){return t.name.startsWith("prettier-placeholder")}function wi(t){return t.prop.startsWith("@prettier-placeholder")}function vi(t,e){return t.value==="$$"&&t.type==="value-func"&&(e==null?void 0:e.type)==="value-word"&&!e.raws.before}function xi(t){var e,n;return((e=t.value)==null?void 0:e.type)==="value-root"&&((n=t.value.group)==null?void 0:n.type)==="value-value"&&t.prop.toLowerCase()==="composes"}function bi(t){var e,n,r;return((r=(n=(e=t.value)==null?void 0:e.group)==null?void 0:n.group)==null?void 0:r.type)==="value-paren_group"&&t.value.group.group.open!==null&&t.value.group.group.close!==null}function de(t){var e;return((e=t.raws)==null?void 0:e.before)===""}function qt(t){var e,n;return t.type==="value-comma_group"&&((n=(e=t.groups)==null?void 0:e[1])==null?void 0:n.type)==="value-colon"}function sn(t){var e;return t.type==="value-paren_group"&&((e=t.groups)==null?void 0:e[0])&&qt(t.groups[0])}function un(t,e){var i;if(e.parser!=="scss")return!1;let{node:n}=t;if(n.groups.length===0)return!1;let r=t.grandparent;if(!sn(n)&&!(r&&sn(r)))return!1;let s=t.findAncestor(o=>o.type==="css-decl");return!!((i=s==null?void 0:s.prop)!=null&&i.startsWith("$")||sn(r)||r.type==="value-func")}function ln(t){return t.type==="value-comment"&&t.inline}function Dt(t){return t.type==="value-word"&&t.value==="#"}function cn(t){return t.type==="value-word"&&t.value==="{"}function Lt(t){return t.type==="value-word"&&t.value==="}"}function tt(t){return["value-word","value-atword"].includes(t.type)}function Mt(t){return(t==null?void 0:t.type)==="value-colon"}function ki(t,e){if(!qt(e))return!1;let{groups:n}=e,r=n.indexOf(t);return r===-1?!1:Mt(n[r+1])}function _i(t){return t.value&&["not","and","or"].includes(t.value.toLowerCase())}function Ti(t){return t.type!=="value-func"?!1:Oc.has(t.value.toLowerCase())}function Ce(t){return/\/\//.test(t.split(/[\n\r]/).pop())}function rt(t){return(t==null?void 0:t.type)==="value-atword"&&t.value.startsWith("prettier-placeholder-")}function Ei(t,e){var n,r;if(((n=t.open)==null?void 0:n.value)!=="("||((r=t.close)==null?void 0:r.value)!==")"||t.groups.some(s=>s.type!=="value-comma_group"))return!1;if(e.type==="value-comma_group"){let s=e.groups.indexOf(t)-1,i=e.groups[s];if((i==null?void 0:i.type)==="value-word"&&i.value==="with")return!0}return!1}function nt(t){var e,n;return t.type==="value-paren_group"&&((e=t.open)==null?void 0:e.value)==="("&&((n=t.close)==null?void 0:n.value)===")"}function Bt(t){return(e,n,r)=>{let s=!!(r!=null&&r.backwards);if(n===!1)return!1;let{length:i}=e,o=n;for(;o>=0&&oCt(n,e))}function Ii(t,e){let n=e.singleQuote?"'":'"';return t.includes('"')||t.includes("'")?t:n+t+n}function me(t){return T(!1,t,Mc,(e,n,r,s,i)=>!r&&s?yn(s)+ne(i||""):e)}function yn(t){return Ni(t).replace(/\.0(?=$|e)/,"")}function qi(t){return t.trailingComma==="es5"||t.trailingComma==="all"}function Bc(t,e,n){var d;let{node:r}=t,s=t.parent,i=t.grandparent,o=ii(t),a=o&&s.type==="value-value"&&(o==="grid"||o.startsWith("grid-template")),u=t.findAncestor(m=>m.type==="css-atrule"),c=u&&et(u,e),f=r.groups.some(m=>cn(m)),p=t.map(n,"groups"),l=[],g=Ee(t,"url"),x=!1,h=!1;for(let m=0;mve:O!==-1?x=!0:ve!==-1&&(x=!1)}if(x||Mt(w)||Mt(v)||w.type==="value-atword"&&(w.value===""||w.value.endsWith("["))||v.type==="value-word"&&v.value.startsWith("]")||w.value==="~"||w.type!=="value-string"&&w.value&&w.value.includes("\\")&&v&&v.type!=="value-comment"||b!=null&&b.value&&b.value.indexOf("\\")===b.value.length-1&&w.type==="value-operator"&&w.value==="/"||w.value==="\\"||vi(w,v)||Dt(w)||fn(w)||Lt(v)||fn(v)&&de(v)||Lt(w)&&de(v)||w.value==="--"&&Dt(v))continue;let $=It(w),H=It(v);if(($&&Dt(v)||H&&Lt(w))&&de(v)||!b&&Ze(w)||Ee(t,"calc")&&(j(w)||j(v)||he(w)||he(v))&&de(v))continue;let U=(j(w)||he(w))&&m===0&&(v.type==="value-number"||v.isHex)&&i&&Ti(i)&&!de(v),S=(N==null?void 0:N.type)==="value-func"||N&&tt(N)||w.type==="value-func"||tt(w),C=v.type==="value-func"||tt(v)||(b==null?void 0:b.type)==="value-func"||b&&tt(b);if(!(!(Rt(v)||Rt(w))&&!Ee(t,"calc")&&!U&&(Ze(v)&&!S||Ze(w)&&!C||j(v)&&!S||j(w)&&!C||he(v)||he(w))&&(de(v)||$&&(!b||b&&It(b))))&&!((e.parser==="scss"||e.parser==="less")&&$&&w.value==="-"&&nt(v)&&R(w)===P(v.open)&&v.open.value==="(")){if(cn(w)){if(s.type==="value-paren_group"){l.push(fe(_));continue}l.push(_);continue}if(c&&(yi(v)||gi(v)||di(v)||mi(w)||hi(w))){l.push(" ");continue}if(u&&u.name.toLowerCase()==="namespace"){l.push(" ");continue}if(a){w.source&&v.source&&w.source.start.line!==v.source.start.line?(l.push(_),h=!0):l.push(" ");continue}if(H){l.push(" ");continue}if((v==null?void 0:v.value)!=="..."&&!(rt(w)&&rt(v)&&R(w)===P(v))){if(rt(w)&&nt(v)&&R(w)===P(v.open)){l.push(M);continue}if(w.value==="with"&&nt(v)){l.push(" ");continue}(d=w.value)!=null&&d.endsWith("#")&&v.value==="{"&&nt(v.group)||l.push(A)}}}return f&&l.push(Qe),h&&l.unshift(_),c?D(q(l)):li(t)?D(He(l)):D(q(He(l)))}var Di=Bc;function Fc(t,e,n){let r=!!(n!=null&&n.backwards);if(e===!1)return!1;let s=t.charAt(e);if(r){if(t.charAt(e-1)==="\r"&&s===` +`||a==="\r")&&(s&&i.push([r,o]),e="initial",s=!1);continue}}for(let[o,a]of i)t=t.slice(0,o)+T(!1,t.slice(o,a),/["'*]/g," ")+t.slice(a);return t}function P(t){var e;return(e=t.source)==null?void 0:e.startOffset}function R(t){var e;return(e=t.source)==null?void 0:e.endOffset}function Ic(t){return t.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}var Ni=Ic;var dn=new Map([["em","em"],["rem","rem"],["ex","ex"],["rex","rex"],["cap","cap"],["rcap","rcap"],["ch","ch"],["rch","rch"],["ic","ic"],["ric","ric"],["lh","lh"],["rlh","rlh"],["vw","vw"],["svw","svw"],["lvw","lvw"],["dvw","dvw"],["vh","vh"],["svh","svh"],["lvh","lvh"],["dvh","dvh"],["vi","vi"],["svi","svi"],["lvi","lvi"],["dvi","dvi"],["vb","vb"],["svb","svb"],["lvb","lvb"],["dvb","dvb"],["vmin","vmin"],["svmin","svmin"],["lvmin","lvmin"],["dvmin","dvmin"],["vmax","vmax"],["svmax","svmax"],["lvmax","lvmax"],["dvmax","dvmax"],["cm","cm"],["mm","mm"],["q","Q"],["in","in"],["pt","pt"],["pc","pc"],["px","px"],["deg","deg"],["grad","grad"],["rad","rad"],["turn","turn"],["s","s"],["ms","ms"],["hz","Hz"],["khz","kHz"],["dpi","dpi"],["dpcm","dpcm"],["dppx","dppx"],["x","x"],["cqw","cqw"],["cqh","cqh"],["cqi","cqi"],["cqb","cqb"],["cqmin","cqmin"],["cqmax","cqmax"]]);function Pi(t){let e=t.toLowerCase();return dn.has(e)?dn.get(e):t}var Ri=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gs,qc=/(?:\d*\.\d+|\d+\.?)(?:[Ee][+-]?\d+)?/g,Dc=/[A-Za-z]+/g,Lc=/[$@]?[A-Z_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/g,Mc=new RegExp(Ri.source+`|(${Lc.source})?(${qc.source})(${Dc.source})?`,"g");function W(t,e){return T(!1,t,Ri,n=>Ct(n,e))}function Ii(t,e){let n=e.singleQuote?"'":'"';return t.includes('"')||t.includes("'")?t:n+t+n}function me(t){return T(!1,t,Mc,(e,n,r,s,i)=>!r&&s?mn(s)+ne(i||""):e)}function mn(t){return Ni(t).replace(/\.0(?=$|e)/,"")}function qi(t){return t.trailingComma==="es5"||t.trailingComma==="all"}function Bc(t,e,n){var d;let{node:r}=t,s=t.parent,i=t.grandparent,o=ii(t),a=o&&s.type==="value-value"&&(o==="grid"||o.startsWith("grid-template")),u=t.findAncestor(m=>m.type==="css-atrule"),c=u&&et(u,e),f=r.groups.some(m=>ln(m)),p=t.map(n,"groups"),l=[],g=Ee(t,"url"),x=!1,h=!1;for(let m=0;mve:O!==-1?x=!0:ve!==-1&&(x=!1)}if(x||Mt(w)||Mt(v)||w.type==="value-atword"&&(w.value===""||w.value.endsWith("["))||v.type==="value-word"&&v.value.startsWith("]")||w.value==="~"||w.type!=="value-string"&&w.value&&w.value.includes("\\")&&v&&v.type!=="value-comment"||b!=null&&b.value&&b.value.indexOf("\\")===b.value.length-1&&w.type==="value-operator"&&w.value==="/"||w.value==="\\"||vi(w,v)||Dt(w)||cn(w)||Lt(v)||cn(v)&&de(v)||Lt(w)&&de(v)||w.value==="--"&&Dt(v))continue;let $=It(w),H=It(v);if(($&&Dt(v)||H&&Lt(w))&&de(v)||!b&&Ze(w)||Ee(t,"calc")&&(j(w)||j(v)||he(w)||he(v))&&de(v))continue;let U=(j(w)||he(w))&&m===0&&(v.type==="value-number"||v.isHex)&&i&&Ti(i)&&!de(v),S=(N==null?void 0:N.type)==="value-func"||N&&tt(N)||w.type==="value-func"||tt(w),C=v.type==="value-func"||tt(v)||(b==null?void 0:b.type)==="value-func"||b&&tt(b);if(e.parser==="scss"&&$&&w.value==="-"&&v.type==="value-func"){l.push(" ");continue}if(!(!(Rt(v)||Rt(w))&&!Ee(t,"calc")&&!U&&(Ze(v)&&!S||Ze(w)&&!C||j(v)&&!S||j(w)&&!C||he(v)||he(w))&&(de(v)||$&&(!b||b&&It(b))))&&!((e.parser==="scss"||e.parser==="less")&&$&&w.value==="-"&&nt(v)&&R(w)===P(v.open)&&v.open.value==="(")){if(ln(w)){if(s.type==="value-paren_group"){l.push(fe(_));continue}l.push(_);continue}if(c&&(yi(v)||gi(v)||di(v)||mi(w)||hi(w))){l.push(" ");continue}if(u&&u.name.toLowerCase()==="namespace"){l.push(" ");continue}if(a){w.source&&v.source&&w.source.start.line!==v.source.start.line?(l.push(_),h=!0):l.push(" ");continue}if(H){l.push(" ");continue}if((v==null?void 0:v.value)!=="..."&&!(rt(w)&&rt(v)&&R(w)===P(v))){if(rt(w)&&nt(v)&&R(w)===P(v.open)){l.push(M);continue}if(w.value==="with"&&nt(v)){l.push(" ");continue}(d=w.value)!=null&&d.endsWith("#")&&v.value==="{"&&nt(v.group)||l.push(A)}}}return f&&l.push(Qe),h&&l.unshift(_),c?D(q(l)):li(t)?D(He(l)):D(q(He(l)))}var Di=Bc;function Fc(t,e,n){let r=!!(n!=null&&n.backwards);if(e===!1)return!1;let s=t.charAt(e);if(r){if(t.charAt(e-1)==="\r"&&s===` `)return e-2;if(s===` `||s==="\r"||s==="\u2028"||s==="\u2029")return e-1}else{if(s==="\r"&&t.charAt(e+1)===` `)return e+2;if(s===` -`||s==="\r"||s==="\u2028"||s==="\u2029")return e+1}return e}var Ut=Fc;function $c(t,e){if(e===!1)return!1;if(t.charAt(e)==="/"&&t.charAt(e+1)==="*"){for(let n=e+2;nln(t,e))?Nt(","):""}function Bi(t,e,n){let{node:r,parent:s}=t,i=t.map(({node:g})=>typeof g=="string"?g:n(),"groups");if(s&&ci(s)&&(r.groups.length===1||r.groups.length>0&&r.groups[0].type==="value-comma_group"&&r.groups[0].groups.length>0&&r.groups[0].groups[0].type==="value-word"&&r.groups[0].groups[0].value.startsWith("data:")))return[r.open?n("open"):"",Y(",",i),r.close?n("close"):""];if(!r.open){let g=gn(t),x=Y([",",g?_:A],i);return q(g?[_,x]:D(He(x)))}let o=t.map(({node:g,isLast:x,index:h})=>{var b;let d=i[h];if(qt(g)&&g.type==="value-comma_group"&&g.groups&&g.groups[0].type!=="value-paren_group"&&((b=g.groups[2])==null?void 0:b.type)==="value-paren_group"){let w=Ds(d.contents.contents);w[1]=D(w[1]),d=D(fe(d))}let m=[d,x?Yc(t,e):","];if(!x&&g.type==="value-comma_group"&&ee(g.groups)){let w=G(!1,g.groups,-1);!w.source&&w.close&&(w=w.close),w.source&&zt(e.originalText,R(w))&&m.push(_)}return m},"groups"),a=ki(r,s),u=Ei(r,s),c=ln(t,e),f=u||c&&!a,p=u||a,l=D([r.open?n("open"):"",q([M,Y(A,o)]),M,r.close?n("close"):""],{shouldBreak:f});return p?fe(l):l}function gn(t){return t.match(e=>e.type==="value-paren_group"&&!e.open&&e.groups.some(n=>n.type==="value-comma_group"),(e,n)=>n==="group"&&e.type==="value-value",(e,n)=>n==="group"&&e.type==="value-root",(e,n)=>n==="value"&&(e.type==="css-decl"&&!e.prop.startsWith("--")||e.type==="css-atrule"&&e.variable))}function Gc(t,e,n){let r=[];return t.each(()=>{let{node:s,previous:i}=t;if((i==null?void 0:i.type)==="css-comment"&&i.text.trim()==="prettier-ignore"?r.push(e.originalText.slice(P(s),R(s))):r.push(n()),t.isLast)return;let{next:o}=t;o.type==="css-comment"&&!Wt(e.originalText,P(o),{backwards:!0})&&!Te(s)||o.type==="css-atrule"&&o.name==="else"&&s.type!=="css-comment"?r.push(" "):(r.push(e.__isHTMLStyleAttribute?A:_),zt(e.originalText,R(s))&&!Te(s)&&r.push(_))},"nodes"),r}var Oe=Gc;function Kc(t,e,n){var s,i,o,a,u,c;let{node:r}=t;switch(r.type){case"front-matter":return[r.raw,_];case"css-root":{let f=Oe(t,e,n),p=r.raws.after.trim();return p.startsWith(";")&&(p=p.slice(1).trim()),[r.frontMatter?[n("frontMatter"),_]:"",f,p?` ${p}`:"",r.nodes.length>0?_:""]}case"css-comment":{let f=r.inline||r.raws.inline,p=e.originalText.slice(P(r),R(r));return f?p.trimEnd():p}case"css-rule":return[n("selector"),r.important?" !important":"",r.nodes?[((s=r.selector)==null?void 0:s.type)==="selector-unknown"&&Ce(r.selector.value)?A:r.selector?" ":"","{",r.nodes.length>0?q([_,Oe(t,e,n)]):"",_,"}",pi(r)?";":""]:";"];case"css-decl":{let f=t.parent,{between:p}=r.raws,l=p.trim(),g=l===":",x=typeof r.value=="string"&&/^ *$/.test(r.value),h=typeof r.value=="string"?r.value:n("value");return h=xi(r)?Ls(h):h,!g&&Ce(l)&&!((o=(i=r.value)==null?void 0:i.group)!=null&&o.group&&t.call(()=>gn(t),"value","group","group"))&&(h=q([_,fe(h)])),[T(!1,r.raws.before,/[\s;]/g,""),f.type==="css-atrule"&&f.variable||ui(t)?r.prop:ne(r.prop),l.startsWith("//")?" ":"",l,r.extend||x?"":" ",e.parser==="less"&&r.extend&&r.selector?["extend(",n("selector"),")"]:"",h,r.raws.important?r.raws.important.replace(/\s*!\s*important/i," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/i," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/i," !global"):r.scssGlobal?" !global":"",r.nodes?[" {",q([M,Oe(t,e,n)]),M,"}"]:wi(r)&&!f.raws.semicolon&&e.originalText[R(r)-1]!==";"?"":e.__isHTMLStyleAttribute&&Pt(t,r)?Nt(";"):";"]}case"css-atrule":{let f=t.parent,p=un(r)&&!f.raws.semicolon&&e.originalText[R(r)-1]!==";";if(e.parser==="less"){if(r.mixin)return[n("selector"),r.important?" !important":"",p?"":";"];if(r.function)return[r.name,typeof r.params=="string"?r.params:n("params"),p?"":";"];if(r.variable)return["@",r.name,": ",r.value?n("value"):"",r.raws.between.trim()?r.raws.between.trim()+" ":"",r.nodes?["{",q([r.nodes.length>0?M:"",Oe(t,e,n)]),M,"}"]:"",p?"":";"]}let l=r.name==="import"&&((a=r.params)==null?void 0:a.type)==="value-unknown"&&r.params.value.endsWith(";");return["@",an(r)||r.name.endsWith(":")?r.name:ne(r.name),r.params?[an(r)?"":un(r)?r.raws.afterName===""?"":r.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(r.raws.afterName)?[_,_]:/^\s*\n/.test(r.raws.afterName)?_:" ":" ",typeof r.params=="string"?r.params:n("params")]:"",r.selector?q([" ",n("selector")]):"",r.value?D([" ",n("value"),et(r,e)?bi(r)?" ":A:""]):r.name==="else"?" ":"",r.nodes?[et(r,e)?"":r.selector&&!r.selector.nodes&&typeof r.selector.value=="string"&&Ce(r.selector.value)||!r.selector&&typeof r.params=="string"&&Ce(r.params)?A:" ","{",q([r.nodes.length>0?M:"",Oe(t,e,n)]),M,"}"]:p||l?"":";"]}case"media-query-list":{let f=[];return t.each(({node:p})=>{p.type==="media-query"&&p.value===""||f.push(n())},"nodes"),D(q(Y(A,f)))}case"media-query":return[Y(" ",t.map(n,"nodes")),Pt(t,r)?"":","];case"media-type":return me(W(r.value,e));case"media-feature-expression":return r.nodes?["(",...t.map(n,"nodes"),")"]:r.value;case"media-feature":return ne(W(T(!1,r.value,/ +/g," "),e));case"media-colon":return[r.value," "];case"media-value":return me(W(r.value,e));case"media-keyword":return W(r.value,e);case"media-url":return W(T(!1,T(!1,r.value,/^url\(\s+/gi,"url("),/\s+\)$/g,")"),e);case"media-unknown":return r.value;case"selector-root":return D([Se(t,"custom-selector")?[t.findAncestor(f=>f.type==="css-atrule").customSelector,A]:"",Y([",",Se(t,["extend","custom-selector","nest"])?A:_],t.map(n,"nodes"))]);case"selector-selector":return D(q(t.map(n,"nodes")));case"selector-comment":return r.value;case"selector-string":return W(r.value,e);case"selector-tag":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",((u=t.previous)==null?void 0:u.type)==="selector-nesting"?r.value:me(ai(t,r.value)?r.value.toLowerCase():r.value)];case"selector-id":return["#",r.value];case"selector-class":return[".",me(W(r.value,e))];case"selector-attribute":return["[",r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.attribute.trim(),r.operator??"",r.value?Ii(W(r.value.trim(),e),e):"",r.insensitive?" i":"","]"];case"selector-combinator":{if(r.value==="+"||r.value===">"||r.value==="~"||r.value===">>>"){let l=t.parent;return[l.type==="selector-selector"&&l.nodes[0]===r?"":A,r.value,Pt(t,r)?"":" "]}let f=r.value.trim().startsWith("(")?A:"",p=me(W(r.value.trim(),e))||A;return[f,p]}case"selector-universal":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.value];case"selector-pseudo":return[ne(r.value),ee(r.nodes)?D(["(",q([M,Y([",",A],t.map(n,"nodes"))]),M,")"]):""];case"selector-nesting":return r.value;case"selector-unknown":{let f=t.findAncestor(g=>g.type==="css-rule");if(f!=null&&f.isSCSSNesterProperty)return me(W(ne(r.value),e));let p=t.parent;if((c=p.raws)!=null&&c.selector){let g=P(p),x=g+p.raws.selector.length;return e.originalText.slice(g,x).trim()}let l=t.grandparent;if(p.type==="value-paren_group"&&(l==null?void 0:l.type)==="value-func"&&l.value==="selector"){let g=R(p.open)+1,x=P(p.close),h=e.originalText.slice(g,x).trim();return Ce(h)?[Qe,h]:h}return r.value}case"value-value":case"value-root":return n("group");case"value-comment":return e.originalText.slice(P(r),R(r));case"value-comma_group":return Di(t,e,n);case"value-paren_group":return Bi(t,e,n);case"value-func":return[r.value,Se(t,"supports")&&_i(r)?" ":"",n("group")];case"value-paren":return r.value;case"value-number":return[yn(r.value),Pi(r.unit)];case"value-operator":return r.value;case"value-word":return r.isColor&&r.isHex||oi(r.value)?r.value.toLowerCase():r.value;case"value-colon":{let{previous:f}=t;return[r.value,typeof(f==null?void 0:f.value)=="string"&&f.value.endsWith("\\")||Ee(t,"url")?"":A]}case"value-string":return Ct(r.raws.quote+r.value+r.raws.quote,e);case"value-atword":return["@",r.value];case"value-unicode-range":return r.value;case"value-unknown":return r.value;case"value-comma":default:throw new Ms(r,"PostCSS")}}var Hc={print:Kc,embed:Ws,insertPragma:ti,massageAstNode:Fs,getVisitorKeys:si},Fi=Hc;var en={};Cs(en,{css:()=>Bg,less:()=>Fg,scss:()=>$g});var ql=ue(dt(),1),Dl=ue(Ho(),1),Ll=ue(Pa(),1);function Jp(t,e){let n=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(n,e)}var Ra=Jp;function Xp(t,e){return e.parser!=="scss"||!t.selector?!1:t.selector.replace(/\/\*.*?\*\//,"").replace(/\/\/.*\n/,"").trim().endsWith(":")}var Ia=Xp;var Zp=new Set(["import","use","forward"]);function eh(t){return Zp.has(t)}var qa=eh;var Tl=ue(Ou(),1);var id=t=>{for(;t.parent;)t=t.parent;return t},Nr=id;function od(t){return Nr(t).text.slice(t.group.open.sourceIndex+1,t.group.close.sourceIndex).trim()}var Au=od;function ad(t){if(ee(t)){for(let e=t.length-1;e>0;e--)if(t[e].type==="word"&&t[e].value==="{"&&t[e-1].type==="word"&&t[e-1].value.endsWith("#"))return!0}return!1}var Nu=ad;function ud(t){return t.some(e=>e.type==="string"||e.type==="func"&&!e.value.endsWith("\\"))}var Pu=ud;function ld(t,e){return!!(e.parser==="scss"&&(t==null?void 0:t.type)==="word"&&t.value.startsWith("$"))}var Ru=ld;var _l=ue(kl(),1);function X(t,e,n){if(t&&typeof t=="object"){delete t.parent;for(let r in t)X(t[r],e,n),r==="type"&&typeof t[r]=="string"&&!t[r].startsWith(e)&&(!n||!n.test(t[r]))&&(t[r]=e+t[r])}return t}function ys(t){if(t&&typeof t=="object"){delete t.parent;for(let e in t)ys(t[e]);!Array.isArray(t)&&t.value&&!t.type&&(t.type="unknown")}return t}function xg(t){if(/\/\/|\/\*/.test(t))return{type:"selector-unknown",value:t.trim()};let e;try{new _l.default(n=>{e=n}).process(t)}catch{return{type:"selector-unknown",value:t}}return X(e,"selector-")}var Z=xg;function bg(t,e){var u;let{nodes:n}=t,r={open:null,close:null,groups:[],type:"paren_group"},s=[r],i=r,o={groups:[],type:"comma_group"},a=[o];for(let c=0;c0&&r.groups.push(o),r.close=f,a.length===1)throw new Error("Unbalanced parenthesis");a.pop(),o=G(!1,a,-1),o.groups.push(r),s.pop(),r=G(!1,s,-1)}else f.type==="comma"?(r.groups.push(o),o={groups:[],type:"comma_group"},a[a.length-1]=o):o.groups.push(f)}return o.groups.length>0&&r.groups.push(o),i}function Zr(t){return t.type==="paren_group"&&!t.open&&!t.close&&t.groups.length===1||t.type==="comma_group"&&t.groups.length===1?Zr(t.groups[0]):t.type==="paren_group"||t.type==="comma_group"?{...t,groups:t.groups.map(Zr)}:t}function El(t,e){if(t&&typeof t=="object")for(let n in t)n!=="parent"&&(El(t[n],e),n==="nodes"&&(t.group=Zr(bg(t,e)),delete t[n]));return t}function kg(t,e){if(e.parser==="less"&&t.startsWith("~`"))return{type:"value-unknown",value:t};let n=null;try{n=new Tl.default(t,{loose:!0}).parse()}catch{return{type:"value-unknown",value:t}}n.text=t;let r=El(n,e);return X(r,"value-",/^selector-/)}var ae=kg;var Rl=ue(Pl(),1);var qg=Rl.default.default;function Dg(t){let e;try{e=qg(t)}catch{return{type:"selector-unknown",value:t}}return X(ys(e),"media-")}var Il=Dg;var Lg=/(\s*)(!default).*$/,Mg=/(\s*)(!global).*$/;function Ml(t,e){var n,r;if(t&&typeof t=="object"){delete t.parent;for(let a in t)Ml(t[a],e);if(!t.type)return t;if(t.raws??(t.raws={}),t.type==="css-decl"&&typeof t.prop=="string"&&t.prop.startsWith("--")&&typeof t.value=="string"&&t.value.startsWith("{")){let a;if(t.value.trimEnd().endsWith("}")){let u=e.originalText.slice(0,t.source.start.offset),c="a".repeat(t.prop.length)+e.originalText.slice(t.source.start.offset+t.prop.length,t.source.end.offset+1),f=T(!1,u,/[^\n]/g," ")+c,p;e.parser==="scss"?p=$l:e.parser==="less"?p=Fl:p=Bl;let l;try{l=p(f,{...e})}catch{}((n=l==null?void 0:l.nodes)==null?void 0:n.length)===1&&l.nodes[0].type==="css-rule"&&(a=l.nodes[0].nodes)}return a?t.value={type:"css-rule",nodes:a}:t.value={type:"value-unknown",value:t.raws.value.raw},t}let s="";typeof t.selector=="string"&&(s=t.raws.selector?t.raws.selector.scss??t.raws.selector.raw:t.selector,t.raws.between&&t.raws.between.trim().length>0&&(s+=t.raws.between),t.raws.selector=s);let i="";typeof t.value=="string"&&(i=t.raws.value?t.raws.value.scss??t.raws.value.raw:t.value,i=i.trim(),t.raws.value=i);let o="";if(typeof t.params=="string"&&(o=t.raws.params?t.raws.params.scss??t.raws.params.raw:t.params,t.raws.afterName&&t.raws.afterName.trim().length>0&&(o=t.raws.afterName+o),t.raws.between&&t.raws.between.trim().length>0&&(o=o+t.raws.between),o=o.trim(),t.raws.params=o),s.trim().length>0)return s.startsWith("@")&&s.endsWith(":")?t:t.mixin?(t.selector=ae(s,e),t):(Ia(t,e)&&(t.isSCSSNesterProperty=!0),t.selector=Z(s),t);if(i.length>0){let a=i.match(Lg);a&&(i=i.slice(0,a.index),t.scssDefault=!0,a[0].trim()!=="!default"&&(t.raws.scssDefault=a[0]));let u=i.match(Mg);if(u&&(i=i.slice(0,u.index),t.scssGlobal=!0,u[0].trim()!=="!global"&&(t.raws.scssGlobal=u[0])),i.startsWith("progid:"))return{type:"value-unknown",value:i};t.value=ae(i,e)}if(e.parser==="less"&&t.type==="css-decl"&&i.startsWith("extend(")&&(t.extend||(t.extend=t.raws.between===":"),t.extend&&!t.selector&&(delete t.value,t.selector=Z(i.slice(7,-1)))),t.type==="css-atrule"){if(e.parser==="less"){if(t.mixin){let a=t.raws.identifier+t.name+t.raws.afterName+t.raws.params;return t.selector=Z(a),delete t.params,t}if(t.function)return t}if(e.parser==="css"&&t.name==="custom-selector"){let a=t.params.match(/:--\S+\s+/)[0].trim();return t.customSelector=a,t.selector=Z(t.params.slice(a.length).trim()),delete t.params,t}if(e.parser==="less"){if(t.name.includes(":")&&!t.params){t.variable=!0;let a=t.name.split(":");t.name=a[0],t.value=ae(a.slice(1).join(":"),e)}if(!["page","nest","keyframes"].includes(t.name)&&((r=t.params)==null?void 0:r[0])===":"){t.variable=!0;let a=t.params.slice(1);a&&(t.value=ae(a,e)),t.raws.afterName+=":"}if(t.variable)return delete t.params,t.value||delete t.value,t}}if(t.type==="css-atrule"&&o.length>0){let{name:a}=t,u=t.name.toLowerCase();return a==="warn"||a==="error"?(t.params={type:"media-unknown",value:o},t):a==="extend"||a==="nest"?(t.selector=Z(o),delete t.params,t):a==="at-root"?(/^\(\s*(?:without|with)\s*:.+\)$/s.test(o)?t.params=ae(o,e):(t.selector=Z(o),delete t.params),t):qa(u)?(t.import=!0,delete t.filename,t.params=ae(o,e),t):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(a)?(o=o.replace(/(\$\S+?)(\s+)?\.{3}/,"$1...$2"),o=o.replace(/^(?!if)(\S+)(\s+)\(/,"$1($2"),t.value=ae(o,e),delete t.params,t):["media","custom-media"].includes(u)?o.includes("#{")?{type:"media-unknown",value:o}:(t.params=Il(o),t):(t.params=o,t)}}return t}function Ts(t,e,n){let r=je(e),{frontMatter:s}=r;e=r.content;let i;try{i=t(e,{map:!1})}catch(o){let{name:a,reason:u,line:c,column:f}=o;throw typeof c!="number"?o:Ra(`${a}: ${u}`,{loc:{start:{line:c,column:f}},cause:o})}return n.originalText=e,i=Ml(X(i,"css-"),n),dn(i,e),s&&(s.source={startOffset:0,endOffset:s.raw.length},i.frontMatter=s),i}function Bl(t,e={}){return Ts(ql.default.default,t,e)}function Fl(t,e={}){return Ts(n=>Dl.default.parse(Ai(n)),t,e)}function $l(t,e={}){return Ts(Ll.default,t,e)}var Es={astFormat:"postcss",hasPragma:ei,locStart:P,locEnd:R},Bg={...Es,parse:Bl},Fg={...Es,parse:Fl},$g={...Es,parse:$l};var Ul=[{linguistLanguageId:50,name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css",".wxss"],parsers:["css"],vscodeLanguageIds:["css"]},{linguistLanguageId:262764437,name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",parsers:["css"],vscodeLanguageIds:["postcss"]},{linguistLanguageId:198,name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["less"],vscodeLanguageIds:["less"]},{linguistLanguageId:329,name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],parsers:["scss"],vscodeLanguageIds:["scss"]}];var Wl={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Ug={singleQuote:Wl.singleQuote},zl=Ug;var Wg={postcss:Fi};return Ql(zg);}); \ No newline at end of file +`||s==="\r"||s==="\u2028"||s==="\u2029")return e+1}return e}var Ut=Fc;function $c(t,e){if(e===!1)return!1;if(t.charAt(e)==="/"&&t.charAt(e+1)==="*"){for(let n=e+2;nn.type==="value-comment"))&&qi(e)&&t.callParent(()=>un(t,e))?Nt(","):""}function Bi(t,e,n){let{node:r,parent:s}=t,i=t.map(({node:g})=>typeof g=="string"?g:n(),"groups");if(s&&ci(s)&&(r.groups.length===1||r.groups.length>0&&r.groups[0].type==="value-comma_group"&&r.groups[0].groups.length>0&&r.groups[0].groups[0].type==="value-word"&&r.groups[0].groups[0].value.startsWith("data:")))return[r.open?n("open"):"",Y(",",i),r.close?n("close"):""];if(!r.open){let g=yn(t),x=Y([",",g?_:A],i);return q(g?[_,x]:D(He(x)))}let o=t.map(({node:g,isLast:x,index:h})=>{var b;let d=i[h];if(qt(g)&&g.type==="value-comma_group"&&g.groups&&g.groups[0].type!=="value-paren_group"&&((b=g.groups[2])==null?void 0:b.type)==="value-paren_group"){let w=Ds(d.contents.contents);w[1]=D(w[1]),d=D(fe(d))}let m=[d,x?Yc(t,e):","];if(!x&&g.type==="value-comma_group"&&ee(g.groups)){let w=G(!1,g.groups,-1);!w.source&&w.close&&(w=w.close),w.source&&zt(e.originalText,R(w))&&m.push(_)}return m},"groups"),a=ki(r,s),u=Ei(r,s),c=un(t,e),f=u||c&&!a,p=u||a,l=D([r.open?n("open"):"",q([M,Y(A,o)]),M,r.close?n("close"):""],{shouldBreak:f});return p?fe(l):l}function yn(t){return t.match(e=>e.type==="value-paren_group"&&!e.open&&e.groups.some(n=>n.type==="value-comma_group"),(e,n)=>n==="group"&&e.type==="value-value",(e,n)=>n==="group"&&e.type==="value-root",(e,n)=>n==="value"&&(e.type==="css-decl"&&!e.prop.startsWith("--")||e.type==="css-atrule"&&e.variable))}function Gc(t,e,n){let r=[];return t.each(()=>{let{node:s,previous:i}=t;if((i==null?void 0:i.type)==="css-comment"&&i.text.trim()==="prettier-ignore"?r.push(e.originalText.slice(P(s),R(s))):r.push(n()),t.isLast)return;let{next:o}=t;o.type==="css-comment"&&!Wt(e.originalText,P(o),{backwards:!0})&&!Te(s)||o.type==="css-atrule"&&o.name==="else"&&s.type!=="css-comment"?r.push(" "):(r.push(e.__isHTMLStyleAttribute?A:_),zt(e.originalText,R(s))&&!Te(s)&&r.push(_))},"nodes"),r}var Oe=Gc;function Kc(t,e,n){var s,i,o,a,u,c;let{node:r}=t;switch(r.type){case"front-matter":return[r.raw,_];case"css-root":{let f=Oe(t,e,n),p=r.raws.after.trim();return p.startsWith(";")&&(p=p.slice(1).trim()),[r.frontMatter?[n("frontMatter"),_]:"",f,p?` ${p}`:"",r.nodes.length>0?_:""]}case"css-comment":{let f=r.inline||r.raws.inline,p=e.originalText.slice(P(r),R(r));return f?p.trimEnd():p}case"css-rule":return[n("selector"),r.important?" !important":"",r.nodes?[((s=r.selector)==null?void 0:s.type)==="selector-unknown"&&Ce(r.selector.value)?A:r.selector?" ":"","{",r.nodes.length>0?q([_,Oe(t,e,n)]):"",_,"}",pi(r)?";":""]:";"];case"css-decl":{let f=t.parent,{between:p}=r.raws,l=p.trim(),g=l===":",x=typeof r.value=="string"&&/^ *$/.test(r.value),h=typeof r.value=="string"?r.value:n("value");return h=xi(r)?Ls(h):h,!g&&Ce(l)&&!((o=(i=r.value)==null?void 0:i.group)!=null&&o.group&&t.call(()=>yn(t),"value","group","group"))&&(h=q([_,fe(h)])),[T(!1,r.raws.before,/[\s;]/g,""),f.type==="css-atrule"&&f.variable||ui(t)?r.prop:ne(r.prop),l.startsWith("//")?" ":"",l,r.extend||x?"":" ",e.parser==="less"&&r.extend&&r.selector?["extend(",n("selector"),")"]:"",h,r.raws.important?r.raws.important.replace(/\s*!\s*important/i," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/i," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/i," !global"):r.scssGlobal?" !global":"",r.nodes?[" {",q([M,Oe(t,e,n)]),M,"}"]:wi(r)&&!f.raws.semicolon&&e.originalText[R(r)-1]!==";"?"":e.__isHTMLStyleAttribute&&Pt(t,r)?Nt(";"):";"]}case"css-atrule":{let f=t.parent,p=an(r)&&!f.raws.semicolon&&e.originalText[R(r)-1]!==";";if(e.parser==="less"){if(r.mixin)return[n("selector"),r.important?" !important":"",p?"":";"];if(r.function)return[r.name,typeof r.params=="string"?r.params:n("params"),p?"":";"];if(r.variable)return["@",r.name,": ",r.value?n("value"):"",r.raws.between.trim()?r.raws.between.trim()+" ":"",r.nodes?["{",q([r.nodes.length>0?M:"",Oe(t,e,n)]),M,"}"]:"",p?"":";"]}let l=r.name==="import"&&((a=r.params)==null?void 0:a.type)==="value-unknown"&&r.params.value.endsWith(";");return["@",on(r)||r.name.endsWith(":")?r.name:ne(r.name),r.params?[on(r)?"":an(r)?r.raws.afterName===""?"":r.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(r.raws.afterName)?[_,_]:/^\s*\n/.test(r.raws.afterName)?_:" ":" ",typeof r.params=="string"?r.params:n("params")]:"",r.selector?q([" ",n("selector")]):"",r.value?D([" ",n("value"),et(r,e)?bi(r)?" ":A:""]):r.name==="else"?" ":"",r.nodes?[et(r,e)?"":r.selector&&!r.selector.nodes&&typeof r.selector.value=="string"&&Ce(r.selector.value)||!r.selector&&typeof r.params=="string"&&Ce(r.params)?A:" ","{",q([r.nodes.length>0?M:"",Oe(t,e,n)]),M,"}"]:p||l?"":";"]}case"media-query-list":{let f=[];return t.each(({node:p})=>{p.type==="media-query"&&p.value===""||f.push(n())},"nodes"),D(q(Y(A,f)))}case"media-query":return[Y(" ",t.map(n,"nodes")),Pt(t,r)?"":","];case"media-type":return me(W(r.value,e));case"media-feature-expression":return r.nodes?["(",...t.map(n,"nodes"),")"]:r.value;case"media-feature":return ne(W(T(!1,r.value,/ +/g," "),e));case"media-colon":return[r.value," "];case"media-value":return me(W(r.value,e));case"media-keyword":return W(r.value,e);case"media-url":return W(T(!1,T(!1,r.value,/^url\(\s+/gi,"url("),/\s+\)$/g,")"),e);case"media-unknown":return r.value;case"selector-root":return D([Se(t,"custom-selector")?[t.findAncestor(f=>f.type==="css-atrule").customSelector,A]:"",Y([",",Se(t,["extend","custom-selector","nest"])?A:_],t.map(n,"nodes"))]);case"selector-selector":return D(q(t.map(n,"nodes")));case"selector-comment":return r.value;case"selector-string":return W(r.value,e);case"selector-tag":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",((u=t.previous)==null?void 0:u.type)==="selector-nesting"?r.value:me(ai(t,r.value)?r.value.toLowerCase():r.value)];case"selector-id":return["#",r.value];case"selector-class":return[".",me(W(r.value,e))];case"selector-attribute":return["[",r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.attribute.trim(),r.operator??"",r.value?Ii(W(r.value.trim(),e),e):"",r.insensitive?" i":"","]"];case"selector-combinator":{if(r.value==="+"||r.value===">"||r.value==="~"||r.value===">>>"){let l=t.parent;return[l.type==="selector-selector"&&l.nodes[0]===r?"":A,r.value,Pt(t,r)?"":" "]}let f=r.value.trim().startsWith("(")?A:"",p=me(W(r.value.trim(),e))||A;return[f,p]}case"selector-universal":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.value];case"selector-pseudo":return[ne(r.value),ee(r.nodes)?D(["(",q([M,Y([",",A],t.map(n,"nodes"))]),M,")"]):""];case"selector-nesting":return r.value;case"selector-unknown":{let f=t.findAncestor(g=>g.type==="css-rule");if(f!=null&&f.isSCSSNesterProperty)return me(W(ne(r.value),e));let p=t.parent;if((c=p.raws)!=null&&c.selector){let g=P(p),x=g+p.raws.selector.length;return e.originalText.slice(g,x).trim()}let l=t.grandparent;if(p.type==="value-paren_group"&&(l==null?void 0:l.type)==="value-func"&&l.value==="selector"){let g=R(p.open)+1,x=P(p.close),h=e.originalText.slice(g,x).trim();return Ce(h)?[Qe,h]:h}return r.value}case"value-value":case"value-root":return n("group");case"value-comment":return e.originalText.slice(P(r),R(r));case"value-comma_group":return Di(t,e,n);case"value-paren_group":return Bi(t,e,n);case"value-func":return[r.value,Se(t,"supports")&&_i(r)?" ":"",n("group")];case"value-paren":return r.value;case"value-number":return[mn(r.value),Pi(r.unit)];case"value-operator":return r.value;case"value-word":return r.isColor&&r.isHex||oi(r.value)?r.value.toLowerCase():r.value;case"value-colon":{let{previous:f}=t;return[r.value,typeof(f==null?void 0:f.value)=="string"&&f.value.endsWith("\\")||Ee(t,"url")?"":A]}case"value-string":return Ct(r.raws.quote+r.value+r.raws.quote,e);case"value-atword":return["@",r.value];case"value-unicode-range":return r.value;case"value-unknown":return r.value;case"value-comma":default:throw new Ms(r,"PostCSS")}}var Hc={print:Kc,embed:Ws,insertPragma:ti,massageAstNode:Fs,getVisitorKeys:si},Fi=Hc;var Es={};Cs(Es,{css:()=>Bg,less:()=>Fg,scss:()=>$g});var ql=ue(dt(),1),Dl=ue(Ho(),1),Ll=ue(Pa(),1);function Jp(t,e){let n=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(n,e)}var Ra=Jp;function Xp(t,e){return e.parser!=="scss"||!t.selector?!1:t.selector.replace(/\/\*.*?\*\//,"").replace(/\/\/.*\n/,"").trim().endsWith(":")}var Ia=Xp;var Zp=new Set(["import","use","forward"]);function eh(t){return Zp.has(t)}var qa=eh;var Tl=ue(Ou(),1);var id=t=>{for(;t.parent;)t=t.parent;return t},Nr=id;function od(t){return Nr(t).text.slice(t.group.open.sourceIndex+1,t.group.close.sourceIndex).trim()}var Au=od;function ad(t){if(ee(t)){for(let e=t.length-1;e>0;e--)if(t[e].type==="word"&&t[e].value==="{"&&t[e-1].type==="word"&&t[e-1].value.endsWith("#"))return!0}return!1}var Nu=ad;function ud(t){return t.some(e=>e.type==="string"||e.type==="func"&&!e.value.endsWith("\\"))}var Pu=ud;function ld(t,e){return!!(e.parser==="scss"&&(t==null?void 0:t.type)==="word"&&t.value.startsWith("$"))}var Ru=ld;var _l=ue(kl(),1);function X(t,e,n){if(t&&typeof t=="object"){delete t.parent;for(let r in t)X(t[r],e,n),r==="type"&&typeof t[r]=="string"&&!t[r].startsWith(e)&&(!n||!n.test(t[r]))&&(t[r]=e+t[r])}return t}function ms(t){if(t&&typeof t=="object"){delete t.parent;for(let e in t)ms(t[e]);!Array.isArray(t)&&t.value&&!t.type&&(t.type="unknown")}return t}function xg(t){if(/\/\/|\/\*/.test(t))return{type:"selector-unknown",value:t.trim()};let e;try{new _l.default(n=>{e=n}).process(t)}catch{return{type:"selector-unknown",value:t}}return X(e,"selector-")}var Z=xg;function bg(t,e){var u;let{nodes:n}=t,r={open:null,close:null,groups:[],type:"paren_group"},s=[r],i=r,o={groups:[],type:"comma_group"},a=[o];for(let c=0;c0&&r.groups.push(o),r.close=f,a.length===1)throw new Error("Unbalanced parenthesis");a.pop(),o=G(!1,a,-1),o.groups.push(r),s.pop(),r=G(!1,s,-1)}else f.type==="comma"?(r.groups.push(o),o={groups:[],type:"comma_group"},a[a.length-1]=o):o.groups.push(f)}return o.groups.length>0&&r.groups.push(o),i}function Zr(t){return t.type==="paren_group"&&!t.open&&!t.close&&t.groups.length===1||t.type==="comma_group"&&t.groups.length===1?Zr(t.groups[0]):t.type==="paren_group"||t.type==="comma_group"?{...t,groups:t.groups.map(Zr)}:t}function El(t,e){if(t&&typeof t=="object")for(let n in t)n!=="parent"&&(El(t[n],e),n==="nodes"&&(t.group=Zr(bg(t,e)),delete t[n]));return t}function kg(t,e){if(e.parser==="less"&&t.startsWith("~`"))return{type:"value-unknown",value:t};let n=null;try{n=new Tl.default(t,{loose:!0}).parse()}catch{return{type:"value-unknown",value:t}}n.text=t;let r=El(n,e);return X(r,"value-",/^selector-/)}var ae=kg;var Rl=ue(Pl(),1);var qg=Rl.default.default;function Dg(t){let e;try{e=qg(t)}catch{return{type:"selector-unknown",value:t}}return X(ms(e),"media-")}var Il=Dg;var Lg=/(\s*)(!default).*$/,Mg=/(\s*)(!global).*$/;function Ml(t,e){var n,r;if(t&&typeof t=="object"){delete t.parent;for(let a in t)Ml(t[a],e);if(!t.type)return t;if(t.raws??(t.raws={}),t.type==="css-decl"&&typeof t.prop=="string"&&t.prop.startsWith("--")&&typeof t.value=="string"&&t.value.startsWith("{")){let a;if(t.value.trimEnd().endsWith("}")){let u=e.originalText.slice(0,t.source.start.offset),c="a".repeat(t.prop.length)+e.originalText.slice(t.source.start.offset+t.prop.length,t.source.end.offset+1),f=T(!1,u,/[^\n]/g," ")+c,p;e.parser==="scss"?p=$l:e.parser==="less"?p=Fl:p=Bl;let l;try{l=p(f,{...e})}catch{}((n=l==null?void 0:l.nodes)==null?void 0:n.length)===1&&l.nodes[0].type==="css-rule"&&(a=l.nodes[0].nodes)}return a?t.value={type:"css-rule",nodes:a}:t.value={type:"value-unknown",value:t.raws.value.raw},t}let s="";typeof t.selector=="string"&&(s=t.raws.selector?t.raws.selector.scss??t.raws.selector.raw:t.selector,t.raws.between&&t.raws.between.trim().length>0&&(s+=t.raws.between),t.raws.selector=s);let i="";typeof t.value=="string"&&(i=t.raws.value?t.raws.value.scss??t.raws.value.raw:t.value,i=i.trim(),t.raws.value=i);let o="";if(typeof t.params=="string"&&(o=t.raws.params?t.raws.params.scss??t.raws.params.raw:t.params,t.raws.afterName&&t.raws.afterName.trim().length>0&&(o=t.raws.afterName+o),t.raws.between&&t.raws.between.trim().length>0&&(o=o+t.raws.between),o=o.trim(),t.raws.params=o),s.trim().length>0)return s.startsWith("@")&&s.endsWith(":")?t:t.mixin?(t.selector=ae(s,e),t):(Ia(t,e)&&(t.isSCSSNesterProperty=!0),t.selector=Z(s),t);if(i.length>0){let a=i.match(Lg);a&&(i=i.slice(0,a.index),t.scssDefault=!0,a[0].trim()!=="!default"&&(t.raws.scssDefault=a[0]));let u=i.match(Mg);if(u&&(i=i.slice(0,u.index),t.scssGlobal=!0,u[0].trim()!=="!global"&&(t.raws.scssGlobal=u[0])),i.startsWith("progid:"))return{type:"value-unknown",value:i};t.value=ae(i,e)}if(e.parser==="less"&&t.type==="css-decl"&&i.startsWith("extend(")&&(t.extend||(t.extend=t.raws.between===":"),t.extend&&!t.selector&&(delete t.value,t.selector=Z(i.slice(7,-1)))),t.type==="css-atrule"){if(e.parser==="less"){if(t.mixin){let a=t.raws.identifier+t.name+t.raws.afterName+t.raws.params;return t.selector=Z(a),delete t.params,t}if(t.function)return t}if(e.parser==="css"&&t.name==="custom-selector"){let a=t.params.match(/:--\S+\s+/)[0].trim();return t.customSelector=a,t.selector=Z(t.params.slice(a.length).trim()),delete t.params,t}if(e.parser==="less"){if(t.name.includes(":")&&!t.params){t.variable=!0;let a=t.name.split(":");t.name=a[0],t.value=ae(a.slice(1).join(":"),e)}if(!["page","nest","keyframes"].includes(t.name)&&((r=t.params)==null?void 0:r[0])===":"){t.variable=!0;let a=t.params.slice(1);a&&(t.value=ae(a,e)),t.raws.afterName+=":"}if(t.variable)return delete t.params,t.value||delete t.value,t}}if(t.type==="css-atrule"&&o.length>0){let{name:a}=t,u=t.name.toLowerCase();return a==="warn"||a==="error"?(t.params={type:"media-unknown",value:o},t):a==="extend"||a==="nest"?(t.selector=Z(o),delete t.params,t):a==="at-root"?(/^\(\s*(?:without|with)\s*:.+\)$/s.test(o)?t.params=ae(o,e):(t.selector=Z(o),delete t.params),t):qa(u)?(t.import=!0,delete t.filename,t.params=ae(o,e),t):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(a)?(o=o.replace(/(\$\S+?)(\s+)?\.{3}/,"$1...$2"),o=o.replace(/^(?!if)(\S+)(\s+)\(/,"$1($2"),t.value=ae(o,e),delete t.params,t):["media","custom-media"].includes(u)?o.includes("#{")?{type:"media-unknown",value:o}:(t.params=Il(o),t):(t.params=o,t)}}return t}function _s(t,e,n){let r=je(e),{frontMatter:s}=r;e=r.content;let i;try{i=t(e,{map:!1})}catch(o){let{name:a,reason:u,line:c,column:f}=o;throw typeof c!="number"?o:Ra(`${a}: ${u}`,{loc:{start:{line:c,column:f}},cause:o})}return n.originalText=e,i=Ml(X(i,"css-"),n),hn(i,e),s&&(s.source={startOffset:0,endOffset:s.raw.length},i.frontMatter=s),i}function Bl(t,e={}){return _s(ql.default.default,t,e)}function Fl(t,e={}){return _s(n=>Dl.default.parse(Ai(n)),t,e)}function $l(t,e={}){return _s(Ll.default,t,e)}var Ts={astFormat:"postcss",hasPragma:ei,locStart:P,locEnd:R},Bg={...Ts,parse:Bl},Fg={...Ts,parse:Fl},$g={...Ts,parse:$l};var Ul=[{linguistLanguageId:50,name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css",".wxss"],parsers:["css"],vscodeLanguageIds:["css"]},{linguistLanguageId:262764437,name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",parsers:["css"],vscodeLanguageIds:["postcss"]},{linguistLanguageId:198,name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["less"],vscodeLanguageIds:["less"]},{linguistLanguageId:329,name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],parsers:["scss"],vscodeLanguageIds:["scss"]}];var Wl={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Ug={singleQuote:Wl.singleQuote},zl=Ug;var Wg={postcss:Fi};return Ql(zg);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/postcss.mjs b/node_modules/prettier/plugins/postcss.mjs index c8edf33..a5e16a1 100644 --- a/node_modules/prettier/plugins/postcss.mjs +++ b/node_modules/prettier/plugins/postcss.mjs @@ -1,38 +1,38 @@ -var Vl=Object.create;var en=Object.defineProperty;var Yl=Object.getOwnPropertyDescriptor;var Gl=Object.getOwnPropertyNames;var Kl=Object.getPrototypeOf,Hl=Object.prototype.hasOwnProperty;var y=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Os=(t,e)=>{for(var n in e)en(t,n,{get:e[n],enumerable:!0})},Ql=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Gl(e))!Hl.call(t,s)&&s!==n&&en(t,s,{get:()=>e[s],enumerable:!(r=Yl(e,s))||r.enumerable});return t};var ue=(t,e,n)=>(n=t!=null?Vl(Kl(t)):{},Ql(e||!t||!t.__esModule?en(n,"default",{value:t,enumerable:!0}):n,t));var Qs=y(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.extract=gc;pe.parse=vc;pe.parseWithComments=Hs;pe.print=xc;pe.strip=wc;var pc=/\*\/$/,hc=/^\/\*\*?/,Gs=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,dc=/(^|\s+)\/\/([^\r\n]*)/g,zs=/^(\r?\n)+/,mc=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,Vs=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,yc=/(\r?\n|^) *\* ?/g,Ks=[];function gc(t){let e=t.match(Gs);return e?e[0].trimLeft():""}function wc(t){let e=t.match(Gs);return e&&e[0]?t.substring(e[0].length):t}function vc(t){return Hs(t).pragmas}function Hs(t){let e=` +var Vl=Object.create;var Zr=Object.defineProperty;var Yl=Object.getOwnPropertyDescriptor;var Gl=Object.getOwnPropertyNames;var Kl=Object.getPrototypeOf,Hl=Object.prototype.hasOwnProperty;var y=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Os=(t,e)=>{for(var n in e)Zr(t,n,{get:e[n],enumerable:!0})},Ql=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Gl(e))!Hl.call(t,s)&&s!==n&&Zr(t,s,{get:()=>e[s],enumerable:!(r=Yl(e,s))||r.enumerable});return t};var ue=(t,e,n)=>(n=t!=null?Vl(Kl(t)):{},Ql(e||!t||!t.__esModule?Zr(n,"default",{value:t,enumerable:!0}):n,t));var Qs=y(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.extract=gc;pe.parse=vc;pe.parseWithComments=Hs;pe.print=xc;pe.strip=wc;var pc=/\*\/$/,hc=/^\/\*\*?/,Gs=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,dc=/(^|\s+)\/\/([^\r\n]*)/g,zs=/^(\r?\n)+/,mc=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,Vs=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,yc=/(\r?\n|^) *\* ?/g,Ks=[];function gc(t){let e=t.match(Gs);return e?e[0].trimLeft():""}function wc(t){let e=t.match(Gs);return e&&e[0]?t.substring(e[0].length):t}function vc(t){return Hs(t).pragmas}function Hs(t){let e=` `;t=t.replace(hc,"").replace(pc,"").replace(yc,"$1");let n="";for(;n!==t;)n=t,t=t.replace(mc,`${e}$1 $2${e}`);t=t.replace(zs,"").trimRight();let r=Object.create(null),s=t.replace(Vs,"").replace(zs,"").trimRight(),i;for(;i=Vs.exec(t);){let o=i[2].replace(dc,"");typeof r[i[1]]=="string"||Array.isArray(r[i[1]])?r[i[1]]=Ks.concat(r[i[1]],o):r[i[1]]=o}return{comments:s,pragmas:r}}function xc({comments:t="",pragmas:e={}}){let n=` -`,r="/**",s=" *",i=" */",o=Object.keys(e),a=o.map(c=>Ys(c,e[c])).reduce((c,f)=>c.concat(f),[]).map(c=>`${s} ${c}${n}`).join("");if(!t){if(o.length===0)return"";if(o.length===1&&!Array.isArray(e[o[0]])){let c=e[o[0]];return`${r} ${Ys(o[0],c)[0]}${i}`}}let u=t.split(n).map(c=>`${s} ${c}`).join(n)+n;return r+n+(t?u:"")+(t&&o.length?s+n:"")+a+i}function Ys(t,e){return Ks.concat(e).map(n=>`@${t} ${n}`.trim())}});var zt=y((dx,wn)=>{"use strict";wn.exports.isClean=Symbol("isClean");wn.exports.my=Symbol("my")});var Ui=y((mx,vn)=>{var E=String,$i=function(){return{isColorSupported:!1,reset:E,bold:E,dim:E,italic:E,underline:E,inverse:E,hidden:E,strikethrough:E,black:E,red:E,green:E,yellow:E,blue:E,magenta:E,cyan:E,white:E,gray:E,bgBlack:E,bgRed:E,bgGreen:E,bgYellow:E,bgBlue:E,bgMagenta:E,bgCyan:E,bgWhite:E}};vn.exports=$i();vn.exports.createColors=$i});var xn=y(()=>{});var Vt=y((wx,Vi)=>{"use strict";var Wi=Ui(),zi=xn(),st=class t extends Error{constructor(e,n,r,s,i,o){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),s&&(this.source=s),o&&(this.plugin=o),typeof n<"u"&&typeof r<"u"&&(typeof n=="number"?(this.line=n,this.column=r):(this.line=n.line,this.column=n.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let n=this.source;e==null&&(e=Wi.isColorSupported),zi&&e&&(n=zi(n));let r=n.split(/\r?\n/),s=Math.max(this.line-3,0),i=Math.min(this.line+2,r.length),o=String(i).length,a,u;if(e){let{bold:c,red:f,gray:p}=Wi.createColors(!0);a=l=>c(f(l)),u=l=>p(l)}else a=u=c=>c;return r.slice(s,i).map((c,f)=>{let p=s+1+f,l=" "+(" "+p).slice(-o)+" | ";if(p===this.line){let g=u(l.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+u(l)+c+` +`,r="/**",s=" *",i=" */",o=Object.keys(e),a=o.map(c=>Ys(c,e[c])).reduce((c,f)=>c.concat(f),[]).map(c=>`${s} ${c}${n}`).join("");if(!t){if(o.length===0)return"";if(o.length===1&&!Array.isArray(e[o[0]])){let c=e[o[0]];return`${r} ${Ys(o[0],c)[0]}${i}`}}let u=t.split(n).map(c=>`${s} ${c}`).join(n)+n;return r+n+(t?u:"")+(t&&o.length?s+n:"")+a+i}function Ys(t,e){return Ks.concat(e).map(n=>`@${t} ${n}`.trim())}});var zt=y((dx,gn)=>{"use strict";gn.exports.isClean=Symbol("isClean");gn.exports.my=Symbol("my")});var Ui=y((mx,wn)=>{var E=String,$i=function(){return{isColorSupported:!1,reset:E,bold:E,dim:E,italic:E,underline:E,inverse:E,hidden:E,strikethrough:E,black:E,red:E,green:E,yellow:E,blue:E,magenta:E,cyan:E,white:E,gray:E,bgBlack:E,bgRed:E,bgGreen:E,bgYellow:E,bgBlue:E,bgMagenta:E,bgCyan:E,bgWhite:E}};wn.exports=$i();wn.exports.createColors=$i});var vn=y(()=>{});var Vt=y((wx,Vi)=>{"use strict";var Wi=Ui(),zi=vn(),st=class t extends Error{constructor(e,n,r,s,i,o){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),s&&(this.source=s),o&&(this.plugin=o),typeof n<"u"&&typeof r<"u"&&(typeof n=="number"?(this.line=n,this.column=r):(this.line=n.line,this.column=n.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let n=this.source;e==null&&(e=Wi.isColorSupported),zi&&e&&(n=zi(n));let r=n.split(/\r?\n/),s=Math.max(this.line-3,0),i=Math.min(this.line+2,r.length),o=String(i).length,a,u;if(e){let{bold:c,gray:f,red:p}=Wi.createColors(!0);a=l=>c(p(l)),u=l=>f(l)}else a=u=c=>c;return r.slice(s,i).map((c,f)=>{let p=s+1+f,l=" "+(" "+p).slice(-o)+" | ";if(p===this.line){let g=u(l.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+u(l)+c+` `+g+a("^")}return" "+u(l)+c}).join(` `)}toString(){let e=this.showSourceCode();return e&&(e=` `+e+` -`),this.name+": "+this.message+e}};Vi.exports=st;st.default=st});var Yt=y((vx,Gi)=>{"use strict";var Yi={colon:": ",indent:" ",beforeDecl:` -`,beforeRule:` -`,beforeOpen:" ",beforeClose:` +`),this.name+": "+this.message+e}};Vi.exports=st;st.default=st});var Yt=y((vx,Gi)=>{"use strict";var Yi={after:` +`,beforeClose:` `,beforeComment:` -`,after:` -`,emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};function Qc(t){return t[0].toUpperCase()+t.slice(1)}var it=class{constructor(e){this.builder=e}stringify(e,n){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,n)}document(e){this.body(e)}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}comment(e){let n=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+n+e.text+r+"*/",e)}decl(e,n){let r=this.raw(e,"between","colon"),s=e.prop+r+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),n&&(s+=";"),this.builder(s,e)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}atrule(e,n){let r="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:s&&(r+=" "),e.nodes)this.block(e,r+s);else{let i=(e.raws.between||"")+(n?";":"");this.builder(r+s+i,e)}}body(e){let n=e.nodes.length-1;for(;n>0&&e.nodes[n].type==="comment";)n-=1;let r=this.raw(e,"semicolon");for(let s=0;s{if(s=u.raws[n],typeof s<"u")return!1})}return typeof s>"u"&&(s=Yi[r]),o.rawCache[r]=s,s}rawSemicolon(e){let n;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(n=r.raws.semicolon,typeof n<"u"))return!1}),n}rawEmptyBody(e){let n;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(n=r.raws.after,typeof n<"u"))return!1}),n}rawIndent(e){if(e.raws.indent)return e.raws.indent;let n;return e.walk(r=>{let s=r.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof r.raws.before<"u"){let i=r.raws.before.split(` -`);return n=i[i.length-1],n=n.replace(/\S/g,""),!1}}),n}rawBeforeComment(e,n){let r;return e.walkComments(s=>{if(typeof s.raws.before<"u")return r=s.raws.before,r.includes(` +`,beforeDecl:` +`,beforeOpen:" ",beforeRule:` +`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Qc(t){return t[0].toUpperCase()+t.slice(1)}var it=class{constructor(e){this.builder=e}atrule(e,n){let r="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:s&&(r+=" "),e.nodes)this.block(e,r+s);else{let i=(e.raws.between||"")+(n?";":"");this.builder(r+s+i,e)}}beforeAfter(e,n){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):n==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let s=e.parent,i=0;for(;s&&s.type!=="root";)i+=1,s=s.parent;if(r.includes(` +`)){let o=this.raw(e,null,"indent");if(o.length)for(let a=0;a0&&e.nodes[n].type==="comment";)n-=1;let r=this.raw(e,"semicolon");for(let s=0;s{if(s=u.raws[n],typeof s<"u")return!1})}return typeof s>"u"&&(s=Yi[r]),o.rawCache[r]=s,s}rawBeforeClose(e){let n;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return n=r.raws.after,n.includes(` +`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeComment(e,n){let r;return e.walkComments(s=>{if(typeof s.raws.before<"u")return r=s.raws.before,r.includes(` `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(n,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,n){let r;return e.walkDecls(s=>{if(typeof s.raws.before<"u")return r=s.raws.before,r.includes(` -`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(n,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeRule(e){let n;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return n=r.raws.before,n.includes(` -`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeClose(e){let n;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return n=r.raws.after,n.includes(` -`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let n;return e.walk(r=>{if(r.type!=="decl"&&(n=r.raws.between,typeof n<"u"))return!1}),n}rawColon(e){let n;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return n=r.raws.between.replace(/[^\s:]/g,""),!1}),n}beforeAfter(e,n){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):n==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let s=e.parent,i=0;for(;s&&s.type!=="root";)i+=1,s=s.parent;if(r.includes(` -`)){let o=this.raw(e,null,"indent");if(o.length)for(let a=0;a{"use strict";var jc=Yt();function bn(t,e){new jc(e).stringify(t)}Ki.exports=bn;bn.default=bn});var ut=y((bx,Hi)=>{"use strict";var{isClean:Gt,my:Jc}=zt(),Xc=Vt(),Zc=Yt(),ef=ot();function kn(t,e){let n=new t.constructor;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||r==="proxyCache")continue;let s=t[r],i=typeof s;r==="parent"&&i==="object"?e&&(n[r]=e):r==="source"?n[r]=s:Array.isArray(s)?n[r]=s.map(o=>kn(o,n)):(i==="object"&&s!==null&&(s=kn(s)),n[r]=s)}return n}var at=class{constructor(e={}){this.raws={},this[Gt]=!1,this[Jc]=!0;for(let n in e)if(n==="nodes"){this.nodes=[];for(let r of e[n])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[n]=e[n]}error(e,n={}){if(this.source){let{start:r,end:s}=this.rangeBy(n);return this.source.input.error(e,{line:r.line,column:r.column},{line:s.line,column:s.column},n)}return new Xc(e)}warn(e,n,r){let s={node:this};for(let i in r)s[i]=r[i];return e.warn(n,s)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(e=ef){e.stringify&&(e=e.stringify);let n="";return e(this,r=>{n+=r}),n}assign(e={}){for(let n in e)this[n]=e[n];return this}clone(e={}){let n=kn(this);for(let r in e)n[r]=e[r];return n}cloneBefore(e={}){let n=this.clone(e);return this.parent.insertBefore(this,n),n}cloneAfter(e={}){let n=this.clone(e);return this.parent.insertAfter(this,n),n}replaceWith(...e){if(this.parent){let n=this,r=!1;for(let s of e)s===this?r=!0:r?(this.parent.insertAfter(n,s),n=s):this.parent.insertBefore(n,s);r||this.remove()}return this}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}before(e){return this.parent.insertBefore(this,e),this}after(e){return this.parent.insertAfter(this,e),this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}raw(e,n){return new Zc().raw(this,e,n)}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}toJSON(e,n){let r={},s=n==null;n=n||new Map;let i=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let a=this[o];if(Array.isArray(a))r[o]=a.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,n):u);else if(typeof a=="object"&&a.toJSON)r[o]=a.toJSON(null,n);else if(o==="source"){let u=n.get(a.input);u==null&&(u=i,n.set(a.input,i),i++),r[o]={inputId:u,start:a.start,end:a.end}}else r[o]=a}return s&&(r.inputs=[...n.keys()].map(o=>o.toJSON())),r}positionInside(e){let n=this.toString(),r=this.source.start.column,s=this.source.start.line;for(let i=0;ie.root().toProxy():e[n]}}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let n=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${n.input.from}:${n.start.line}:${n.start.column}$&`)}return e}markDirty(){if(this[Gt]){this[Gt]=!1;let e=this;for(;e=e.parent;)e[Gt]=!1}}get proxyOf(){return this}};Hi.exports=at;at.default=at});var ct=y((kx,Qi)=>{"use strict";var tf=ut(),lt=class extends tf{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};Qi.exports=lt;lt.default=lt});var Ae=y((_x,ji)=>{"use strict";var rf=ut(),ft=class extends rf{constructor(e){super(e),this.type="comment"}};ji.exports=ft;ft.default=ft});var se=y((Tx,io)=>{"use strict";var{isClean:Ji,my:Xi}=zt(),Zi=ct(),eo=Ae(),nf=ut(),to,_n,Tn,ro;function no(t){return t.map(e=>(e.nodes&&(e.nodes=no(e.nodes)),delete e.source,e))}function so(t){if(t[Ji]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)so(e)}var z=class t extends nf{push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}each(e){if(!this.proxyOf.nodes)return;let n=this.getIterator(),r,s;for(;this.indexes[n]{let s;try{s=e(n,r)}catch(i){throw n.addToError(i)}return s!==!1&&n.walk&&(s=n.walk(e)),s})}walkDecls(e,n){return n?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="decl"&&e.test(r.prop))return n(r,s)}):this.walk((r,s)=>{if(r.type==="decl"&&r.prop===e)return n(r,s)}):(n=e,this.walk((r,s)=>{if(r.type==="decl")return n(r,s)}))}walkRules(e,n){return n?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="rule"&&e.test(r.selector))return n(r,s)}):this.walk((r,s)=>{if(r.type==="rule"&&r.selector===e)return n(r,s)}):(n=e,this.walk((r,s)=>{if(r.type==="rule")return n(r,s)}))}walkAtRules(e,n){return n?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="atrule"&&e.test(r.name))return n(r,s)}):this.walk((r,s)=>{if(r.type==="atrule"&&r.name===e)return n(r,s)}):(n=e,this.walk((r,s)=>{if(r.type==="atrule")return n(r,s)}))}walkComments(e){return this.walk((n,r)=>{if(n.type==="comment")return e(n,r)})}append(...e){for(let n of e){let r=this.normalize(n,this.last);for(let s of r)this.proxyOf.nodes.push(s)}return this.markDirty(),this}prepend(...e){e=e.reverse();for(let n of e){let r=this.normalize(n,this.first,"prepend").reverse();for(let s of r)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+r.length}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let n of this.nodes)n.cleanRaws(e)}insertBefore(e,n){let r=this.index(e),s=r===0?"prepend":!1,i=this.normalize(n,this.proxyOf.nodes[r],s).reverse();r=this.index(e);for(let a of i)this.proxyOf.nodes.splice(r,0,a);let o;for(let a in this.indexes)o=this.indexes[a],r<=o&&(this.indexes[a]=o+i.length);return this.markDirty(),this}insertAfter(e,n){let r=this.index(e),s=this.normalize(n,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of s)this.proxyOf.nodes.splice(r+1,0,o);let i;for(let o in this.indexes)i=this.indexes[o],r=e&&(this.indexes[r]=n-1);return this.markDirty(),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(e,n,r){return r||(r=n,n={}),this.walkDecls(s=>{n.props&&!n.props.includes(s.prop)||n.fast&&!s.value.includes(n.fast)||(s.value=s.value.replace(e,r))}),this.markDirty(),this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}normalize(e,n){if(typeof e=="string")e=no(to(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Zi(e)]}else if(e.selector)e=[new _n(e)];else if(e.name)e=[new Tn(e)];else if(e.text)e=[new eo(e)];else throw new Error("Unknown node type in node creation");return e.map(s=>(s[Xi]||t.rebuild(s),s=s.proxyOf,s.parent&&s.parent.removeChild(s),s[Ji]&&so(s),typeof s.raws.before>"u"&&n&&typeof n.raws.before<"u"&&(s.raws.before=n.raws.before.replace(/\S/g,"")),s.parent=this.proxyOf,s))}getProxyProcessor(){return{set(e,n,r){return e[n]===r||(e[n]=r,(n==="name"||n==="params"||n==="selector")&&e.markDirty()),!0},get(e,n){return n==="proxyOf"?e:e[n]?n==="each"||typeof n=="string"&&n.startsWith("walk")?(...r)=>e[n](...r.map(s=>typeof s=="function"?(i,o)=>s(i.toProxy(),o):s)):n==="every"||n==="some"?r=>e[n]((s,...i)=>r(s.toProxy(),...i)):n==="root"?()=>e.root().toProxy():n==="nodes"?e.nodes.map(r=>r.toProxy()):n==="first"||n==="last"?e[n].toProxy():e[n]:e[n]}}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}};z.registerParse=t=>{to=t};z.registerRule=t=>{_n=t};z.registerAtRule=t=>{Tn=t};z.registerRoot=t=>{ro=t};io.exports=z;z.default=z;z.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,Tn.prototype):t.type==="rule"?Object.setPrototypeOf(t,_n.prototype):t.type==="decl"?Object.setPrototypeOf(t,Zi.prototype):t.type==="comment"?Object.setPrototypeOf(t,eo.prototype):t.type==="root"&&Object.setPrototypeOf(t,ro.prototype),t[Xi]=!0,t.nodes&&t.nodes.forEach(e=>{z.rebuild(e)})}});var er=y((Ex,lo)=>{"use strict";var En="'".charCodeAt(0),oo='"'.charCodeAt(0),Kt="\\".charCodeAt(0),ao="/".charCodeAt(0),Ht=` -`.charCodeAt(0),pt=" ".charCodeAt(0),Qt="\f".charCodeAt(0),jt=" ".charCodeAt(0),Jt="\r".charCodeAt(0),sf="[".charCodeAt(0),of="]".charCodeAt(0),af="(".charCodeAt(0),uf=")".charCodeAt(0),lf="{".charCodeAt(0),cf="}".charCodeAt(0),ff=";".charCodeAt(0),pf="*".charCodeAt(0),hf=":".charCodeAt(0),df="@".charCodeAt(0),Xt=/[\t\n\f\r "#'()/;[\\\]{}]/g,Zt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,mf=/.[\n"'(/\\]/,uo=/[\da-f]/i;lo.exports=function(e,n={}){let r=e.css.valueOf(),s=n.ignoreErrors,i,o,a,u,c,f,p,l,g,x,h=r.length,d=0,m=[],b=[];function w(){return d}function v(U){throw e.error("Unclosed "+U,d)}function N(){return b.length===0&&d>=h}function $(U){if(b.length)return b.pop();if(d>=h)return;let S=U?U.ignoreUnclosed:!1;switch(i=r.charCodeAt(d),i){case Ht:case pt:case jt:case Jt:case Qt:{o=d;do o+=1,i=r.charCodeAt(o);while(i===pt||i===Ht||i===jt||i===Jt||i===Qt);x=["space",r.slice(d,o)],d=o-1;break}case sf:case of:case lf:case cf:case hf:case ff:case uf:{let C=String.fromCharCode(i);x=[C,C,d];break}case af:{if(l=m.length?m.pop()[1]:"",g=r.charCodeAt(d+1),l==="url"&&g!==En&&g!==oo&&g!==pt&&g!==Ht&&g!==jt&&g!==Qt&&g!==Jt){o=d;do{if(f=!1,o=r.indexOf(")",o+1),o===-1)if(s||S){o=d;break}else v("bracket");for(p=o;r.charCodeAt(p-1)===Kt;)p-=1,f=!f}while(f);x=["brackets",r.slice(d,o+1),d,o],d=o}else o=r.indexOf(")",d+1),u=r.slice(d,o+1),o===-1||mf.test(u)?x=["(","(",d]:(x=["brackets",u,d,o],d=o);break}case En:case oo:{a=i===En?"'":'"',o=d;do{if(f=!1,o=r.indexOf(a,o+1),o===-1)if(s||S){o=d+1;break}else v("string");for(p=o;r.charCodeAt(p-1)===Kt;)p-=1,f=!f}while(f);x=["string",r.slice(d,o+1),d,o],d=o;break}case df:{Xt.lastIndex=d+1,Xt.test(r),Xt.lastIndex===0?o=r.length-1:o=Xt.lastIndex-2,x=["at-word",r.slice(d,o+1),d,o],d=o;break}case Kt:{for(o=d,c=!0;r.charCodeAt(o+1)===Kt;)o+=1,c=!c;if(i=r.charCodeAt(o+1),c&&i!==ao&&i!==pt&&i!==Ht&&i!==jt&&i!==Jt&&i!==Qt&&(o+=1,uo.test(r.charAt(o)))){for(;uo.test(r.charAt(o+1));)o+=1;r.charCodeAt(o+1)===pt&&(o+=1)}x=["word",r.slice(d,o+1),d,o],d=o;break}default:{i===ao&&r.charCodeAt(d+1)===pf?(o=r.indexOf("*/",d+2)+1,o===0&&(s||S?o=r.length:v("comment")),x=["comment",r.slice(d,o+1),d,o],d=o):(Zt.lastIndex=d+1,Zt.test(r),Zt.lastIndex===0?o=r.length-1:o=Zt.lastIndex-2,x=["word",r.slice(d,o+1),d,o],m.push(x),d=o);break}}return d++,x}function H(U){b.push(U)}return{back:H,nextToken:$,endOfFile:N,position:w}}});var tr=y((Sx,fo)=>{"use strict";var co=se(),Ne=class extends co{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};fo.exports=Ne;Ne.default=Ne;co.registerAtRule(Ne)});var Pe=y((Cx,yo)=>{"use strict";var po=se(),ho,mo,ie=class extends po{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}removeChild(e,n){let r=this.index(e);return!n&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}normalize(e,n,r){let s=super.normalize(e);if(n){if(r==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(let i of s)i.raws.before=n.raws.before}return s}toResult(e={}){return new ho(new mo,this,e).stringify()}};ie.registerLazyResult=t=>{ho=t};ie.registerProcessor=t=>{mo=t};yo.exports=ie;ie.default=ie;po.registerRoot(ie)});var Sn=y((Ox,go)=>{"use strict";var ht={split(t,e,n){let r=[],s="",i=!1,o=0,a=!1,u="",c=!1;for(let f of t)c?c=!1:f==="\\"?c=!0:a?f===u&&(a=!1):f==='"'||f==="'"?(a=!0,u=f):f==="("?o+=1:f===")"?o>0&&(o-=1):o===0&&e.includes(f)&&(i=!0),i?(s!==""&&r.push(s.trim()),s="",i=!1):s+=f;return(n||s!=="")&&r.push(s.trim()),r},space(t){let e=[" ",` -`," "];return ht.split(t,e)},comma(t){return ht.split(t,[","],!0)}};go.exports=ht;ht.default=ht});var rr=y((Ax,vo)=>{"use strict";var wo=se(),yf=Sn(),Re=class extends wo{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return yf.comma(this.selector)}set selectors(e){let n=this.selector?this.selector.match(/,\s*/):null,r=n?n[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};vo.exports=Re;Re.default=Re;wo.registerRule(Re)});var nr=y((Nx,ko)=>{"use strict";var gf=ct(),wf=er(),vf=Ae(),xf=tr(),bf=Pe(),xo=rr(),bo={empty:!0,space:!0};function kf(t){for(let e=t.length-1;e>=0;e--){let n=t[e],r=n[3]||n[2];if(r)return r}}var Cn=class{constructor(e){this.input=e,this.root=new bf,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=wf(this.input)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}comment(e){let n=new vf;this.init(n,e[2]),n.source.end=this.getPosition(e[3]||e[2]);let r=e[1].slice(2,-2);if(/^\s*$/.test(r))n.text="",n.raws.left=r,n.raws.right="";else{let s=r.match(/^(\s*)([^]*\S)(\s*)$/);n.text=s[2],n.raws.left=s[1],n.raws.right=s[3]}}emptyRule(e){let n=new xo;this.init(n,e[2]),n.selector="",n.raws.between="",this.current=n}other(e){let n=!1,r=null,s=!1,i=null,o=[],a=e[1].startsWith("--"),u=[],c=e;for(;c;){if(r=c[0],u.push(c),r==="("||r==="[")i||(i=c),o.push(r==="("?")":"]");else if(a&&s&&r==="{")i||(i=c),o.push("}");else if(o.length===0)if(r===";")if(s){this.decl(u,a);return}else break;else if(r==="{"){this.rule(u);return}else if(r==="}"){this.tokenizer.back(u.pop()),n=!0;break}else r===":"&&(s=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),o.length>0&&this.unclosedBracket(i),n&&s){if(!a)for(;u.length&&(c=u[u.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,a)}else this.unknownWord(u)}rule(e){e.pop();let n=new xo;this.init(n,e[0][2]),n.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(n,"selector",e),this.current=n}decl(e,n){let r=new gf;this.init(r,e[0][2]);let s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(s[3]||s[2]||kf(e));e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let i;for(;e.length;)if(i=e.shift(),i[0]===":"){r.raws.between+=i[1];break}else i[0]==="word"&&/\w/.test(i[1])&&this.unknownWord([i]),r.raws.between+=i[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(i=e[c],i[1].toLowerCase()==="!important"){r.important=!0;let f=this.stringFrom(e,c);f=this.spacesFromEnd(e)+f,f!==" !important"&&(r.raws.important=f);break}else if(i[1].toLowerCase()==="important"){let f=e.slice(0),p="";for(let l=c;l>0;l--){let g=f[l][0];if(p.trim().indexOf("!")===0&&g!=="space")break;p=f.pop()[1]+p}p.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=p,e=f)}if(i[0]!=="space"&&i[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(r.raws.between+=o.map(c=>c[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),n),r.value.includes(":")&&!n&&this.checkMissedSemicolon(e)}atrule(e){let n=new xf;n.name=e[1].slice(1),n.name===""&&this.unnamedAtrule(n,e),this.init(n,e[2]);let r,s,i,o=!1,a=!1,u=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?c.push(r==="("?")":"]"):r==="{"&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),c.length===0)if(r===";"){n.source.end=this.getPosition(e[2]),this.semicolon=!0;break}else if(r==="{"){a=!0;break}else if(r==="}"){if(u.length>0){for(i=u.length-1,s=u[i];s&&s[0]==="space";)s=u[--i];s&&(n.source.end=this.getPosition(s[3]||s[2]))}this.end(e);break}else u.push(e);else u.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(n.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(n,"params",u),o&&(e=u[u.length-1],n.source.end=this.getPosition(e[3]||e[2]),this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),a&&(n.nodes=[],this.current=n)}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let n=this.current.nodes[this.current.nodes.length-1];n&&n.type==="rule"&&!n.raws.ownSemicolon&&(n.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let n=this.input.fromOffset(e);return{offset:e,line:n.line,column:n.col}}init(e,n){this.current.push(e),e.source={start:this.getPosition(n),input:this.input},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}raw(e,n,r,s){let i,o,a=r.length,u="",c=!0,f,p;for(let l=0;lg+x[1],"");e.raws[n]={value:u,raw:l}}e[n]=u}spacesAndCommentsFromEnd(e){let n,r="";for(;e.length&&(n=e[e.length-1][0],!(n!=="space"&&n!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let n,r="";for(;e.length&&(n=e[0][0],!(n!=="space"&&n!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let n,r="";for(;e.length&&(n=e[e.length-1][0],n==="space");)r=e.pop()[1]+r;return r}stringFrom(e,n){let r="";for(let s=n;s=0&&(s=e[i],!(s[0]!=="space"&&(r+=1,r===2)));i--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}};ko.exports=Cn});var _o=y(()=>{});var Eo=y((Ix,To)=>{var _f="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Tf=(t,e=21)=>(n=e)=>{let r="",s=n;for(;s--;)r+=t[Math.random()*t.length|0];return r},Ef=(t=21)=>{let e="",n=t;for(;n--;)e+=_f[Math.random()*64|0];return e};To.exports={nanoid:Ef,customAlphabet:Tf}});var On=y((qx,So)=>{So.exports=class{}});var qe=y((Lx,No)=>{"use strict";var{SourceMapConsumer:Sf,SourceMapGenerator:Cf}=_o(),{fileURLToPath:Co,pathToFileURL:sr}={},{resolve:Pn,isAbsolute:Rn}={},{nanoid:Of}=Eo(),An=xn(),Oo=Vt(),Af=On(),Nn=Symbol("fromOffsetCache"),Nf=!!(Sf&&Cf),Ao=!!(Pn&&Rn),Ie=class{constructor(e,n={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,n.from&&(!Ao||/^\w+:\/\//.test(n.from)||Rn(n.from)?this.file=n.from:this.file=Pn(n.from)),Ao&&Nf){let r=new Af(this.css,n);if(r.text){this.map=r;let s=r.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}fromOffset(e){let n,r;if(this[Nn])r=this[Nn];else{let i=this.css.split(` -`);r=new Array(i.length);let o=0;for(let a=0,u=i.length;a=n)s=r.length-1;else{let i=r.length-2,o;for(;s>1),e=r[o+1])s=o+1;else{s=o;break}}return{line:s+1,col:e-r[s]+1}}error(e,n,r,s={}){let i,o,a;if(n&&typeof n=="object"){let c=n,f=r;if(typeof c.offset=="number"){let p=this.fromOffset(c.offset);n=p.line,r=p.col}else n=c.line,r=c.column;if(typeof f.offset=="number"){let p=this.fromOffset(f.offset);o=p.line,a=p.col}else o=f.line,a=f.column}else if(!r){let c=this.fromOffset(n);n=c.line,r=c.col}let u=this.origin(n,r,o,a);return u?i=new Oo(e,u.endLine===void 0?u.line:{line:u.line,column:u.column},u.endLine===void 0?u.column:{line:u.endLine,column:u.endColumn},u.source,u.file,s.plugin):i=new Oo(e,o===void 0?n:{line:n,column:r},o===void 0?r:{line:o,column:a},this.css,this.file,s.plugin),i.input={line:n,column:r,endLine:o,endColumn:a,source:this.css},this.file&&(sr&&(i.input.url=sr(this.file).toString()),i.input.file=this.file),i}origin(e,n,r,s){if(!this.map)return!1;let i=this.map.consumer(),o=i.originalPositionFor({line:e,column:n});if(!o.source)return!1;let a;typeof r=="number"&&(a=i.originalPositionFor({line:r,column:s}));let u;Rn(o.source)?u=sr(o.source):u=new URL(o.source,this.map.consumer().sourceRoot||sr(this.map.mapFile));let c={url:u.toString(),line:o.line,column:o.column,endLine:a&&a.line,endColumn:a&&a.column};if(u.protocol==="file:")if(Co)c.file=Co(u);else throw new Error("file: protocol is not available in this PostCSS build");let f=i.sourceContentFor(o.source);return f&&(c.source=f),c}mapResolve(e){return/^\w+:\/\//.test(e)?e:Pn(this.map.consumer().sourceRoot||this.map.root||".",e)}get from(){return this.file||this.id}toJSON(){let e={};for(let n of["hasBOM","css","file","id"])this[n]!=null&&(e[n]=this[n]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};No.exports=Ie;Ie.default=Ie;An&&An.registerInput&&An.registerInput(Ie)});var dt=y((Mx,Po)=>{"use strict";var Pf=se(),Rf=nr(),If=qe();function ir(t,e){let n=new If(t,e),r=new Rf(n);try{r.parse()}catch(s){throw s}return r.root}Po.exports=ir;ir.default=ir;Pf.registerParse(ir)});var Ro=y((Bx,In)=>{var qf=er(),Df=qe();In.exports={isInlineComment(t){if(t[0]==="word"&&t[1].slice(0,2)==="//"){let e=t,n=[],r,s;for(;t;){if(/\r?\n/.test(t[1])){if(/['"].*\r?\n/.test(t[1])){n.push(t[1].substring(0,t[1].indexOf(` +`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(n,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let n;return e.walk(r=>{if(r.type!=="decl"&&(n=r.raws.between,typeof n<"u"))return!1}),n}rawBeforeRule(e){let n;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return n=r.raws.before,n.includes(` +`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawColon(e){let n;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return n=r.raws.between.replace(/[^\s:]/g,""),!1}),n}rawEmptyBody(e){let n;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(n=r.raws.after,typeof n<"u"))return!1}),n}rawIndent(e){if(e.raws.indent)return e.raws.indent;let n;return e.walk(r=>{let s=r.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof r.raws.before<"u"){let i=r.raws.before.split(` +`);return n=i[i.length-1],n=n.replace(/\S/g,""),!1}}),n}rawSemicolon(e){let n;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(n=r.raws.semicolon,typeof n<"u"))return!1}),n}rawValue(e,n){let r=e[n],s=e.raws[n];return s&&s.value===r?s.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,n){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,n)}};Gi.exports=it;it.default=it});var ot=y((xx,Ki)=>{"use strict";var jc=Yt();function xn(t,e){new jc(e).stringify(t)}Ki.exports=xn;xn.default=xn});var ut=y((bx,Hi)=>{"use strict";var{isClean:Gt,my:Jc}=zt(),Xc=Vt(),Zc=Yt(),ef=ot();function bn(t,e){let n=new t.constructor;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||r==="proxyCache")continue;let s=t[r],i=typeof s;r==="parent"&&i==="object"?e&&(n[r]=e):r==="source"?n[r]=s:Array.isArray(s)?n[r]=s.map(o=>bn(o,n)):(i==="object"&&s!==null&&(s=bn(s)),n[r]=s)}return n}var at=class{constructor(e={}){this.raws={},this[Gt]=!1,this[Jc]=!0;for(let n in e)if(n==="nodes"){this.nodes=[];for(let r of e[n])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[n]=e[n]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let n=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${n.input.from}:${n.start.line}:${n.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let n in e)this[n]=e[n];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let n=bn(this);for(let r in e)n[r]=e[r];return n}cloneAfter(e={}){let n=this.clone(e);return this.parent.insertAfter(this,n),n}cloneBefore(e={}){let n=this.clone(e);return this.parent.insertBefore(this,n),n}error(e,n={}){if(this.source){let{end:r,start:s}=this.rangeBy(n);return this.source.input.error(e,{column:s.column,line:s.line},{column:r.column,line:r.line},n)}return new Xc(e)}getProxyProcessor(){return{get(e,n){return n==="proxyOf"?e:n==="root"?()=>e.root().toProxy():e[n]},set(e,n,r){return e[n]===r||(e[n]=r,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&e.markDirty()),!0}}}markDirty(){if(this[Gt]){this[Gt]=!1;let e=this;for(;e=e.parent;)e[Gt]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,n){let r=this.source.start;if(e.index)r=this.positionInside(e.index,n);else if(e.word){n=this.toString();let s=n.indexOf(e.word);s!==-1&&(r=this.positionInside(s,n))}return r}positionInside(e,n){let r=n||this.toString(),s=this.source.start.column,i=this.source.start.line;for(let o=0;otypeof u=="object"&&u.toJSON?u.toJSON(null,n):u);else if(typeof a=="object"&&a.toJSON)r[o]=a.toJSON(null,n);else if(o==="source"){let u=n.get(a.input);u==null&&(u=i,n.set(a.input,i),i++),r[o]={end:a.end,inputId:u,start:a.start}}else r[o]=a}return s&&(r.inputs=[...n.keys()].map(o=>o.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=ef){e.stringify&&(e=e.stringify);let n="";return e(this,r=>{n+=r}),n}warn(e,n,r){let s={node:this};for(let i in r)s[i]=r[i];return e.warn(n,s)}};Hi.exports=at;at.default=at});var ct=y((kx,Qi)=>{"use strict";var tf=ut(),lt=class extends tf{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};Qi.exports=lt;lt.default=lt});var Ae=y((_x,ji)=>{"use strict";var rf=ut(),ft=class extends rf{constructor(e){super(e),this.type="comment"}};ji.exports=ft;ft.default=ft});var se=y((Tx,io)=>{"use strict";var{isClean:Ji,my:Xi}=zt(),Zi=ct(),eo=Ae(),nf=ut(),to,kn,_n,ro;function no(t){return t.map(e=>(e.nodes&&(e.nodes=no(e.nodes)),delete e.source,e))}function so(t){if(t[Ji]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)so(e)}var z=class t extends nf{append(...e){for(let n of e){let r=this.normalize(n,this.last);for(let s of r)this.proxyOf.nodes.push(s)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let n of this.nodes)n.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let n=this.getIterator(),r,s;for(;this.indexes[n]e[n](...r.map(s=>typeof s=="function"?(i,o)=>s(i.toProxy(),o):s)):n==="every"||n==="some"?r=>e[n]((s,...i)=>r(s.toProxy(),...i)):n==="root"?()=>e.root().toProxy():n==="nodes"?e.nodes.map(r=>r.toProxy()):n==="first"||n==="last"?e[n].toProxy():e[n]:e[n]},set(e,n,r){return e[n]===r||(e[n]=r,(n==="name"||n==="params"||n==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,n){let r=this.index(e),s=this.normalize(n,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of s)this.proxyOf.nodes.splice(r+1,0,o);let i;for(let o in this.indexes)i=this.indexes[o],r"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Zi(e)]}else if(e.selector)e=[new kn(e)];else if(e.name)e=[new _n(e)];else if(e.text)e=[new eo(e)];else throw new Error("Unknown node type in node creation");return e.map(s=>(s[Xi]||t.rebuild(s),s=s.proxyOf,s.parent&&s.parent.removeChild(s),s[Ji]&&so(s),typeof s.raws.before>"u"&&n&&typeof n.raws.before<"u"&&(s.raws.before=n.raws.before.replace(/\S/g,"")),s.parent=this.proxyOf,s))}prepend(...e){e=e.reverse();for(let n of e){let r=this.normalize(n,this.first,"prepend").reverse();for(let s of r)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let n;for(let r in this.indexes)n=this.indexes[r],n>=e&&(this.indexes[r]=n-1);return this.markDirty(),this}replaceValues(e,n,r){return r||(r=n,n={}),this.walkDecls(s=>{n.props&&!n.props.includes(s.prop)||n.fast&&!s.value.includes(n.fast)||(s.value=s.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((n,r)=>{let s;try{s=e(n,r)}catch(i){throw n.addToError(i)}return s!==!1&&n.walk&&(s=n.walk(e)),s})}walkAtRules(e,n){return n?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="atrule"&&e.test(r.name))return n(r,s)}):this.walk((r,s)=>{if(r.type==="atrule"&&r.name===e)return n(r,s)}):(n=e,this.walk((r,s)=>{if(r.type==="atrule")return n(r,s)}))}walkComments(e){return this.walk((n,r)=>{if(n.type==="comment")return e(n,r)})}walkDecls(e,n){return n?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="decl"&&e.test(r.prop))return n(r,s)}):this.walk((r,s)=>{if(r.type==="decl"&&r.prop===e)return n(r,s)}):(n=e,this.walk((r,s)=>{if(r.type==="decl")return n(r,s)}))}walkRules(e,n){return n?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="rule"&&e.test(r.selector))return n(r,s)}):this.walk((r,s)=>{if(r.type==="rule"&&r.selector===e)return n(r,s)}):(n=e,this.walk((r,s)=>{if(r.type==="rule")return n(r,s)}))}};z.registerParse=t=>{to=t};z.registerRule=t=>{kn=t};z.registerAtRule=t=>{_n=t};z.registerRoot=t=>{ro=t};io.exports=z;z.default=z;z.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,_n.prototype):t.type==="rule"?Object.setPrototypeOf(t,kn.prototype):t.type==="decl"?Object.setPrototypeOf(t,Zi.prototype):t.type==="comment"?Object.setPrototypeOf(t,eo.prototype):t.type==="root"&&Object.setPrototypeOf(t,ro.prototype),t[Xi]=!0,t.nodes&&t.nodes.forEach(e=>{z.rebuild(e)})}});var er=y((Ex,lo)=>{"use strict";var Tn="'".charCodeAt(0),oo='"'.charCodeAt(0),Kt="\\".charCodeAt(0),ao="/".charCodeAt(0),Ht=` +`.charCodeAt(0),pt=" ".charCodeAt(0),Qt="\f".charCodeAt(0),jt=" ".charCodeAt(0),Jt="\r".charCodeAt(0),sf="[".charCodeAt(0),of="]".charCodeAt(0),af="(".charCodeAt(0),uf=")".charCodeAt(0),lf="{".charCodeAt(0),cf="}".charCodeAt(0),ff=";".charCodeAt(0),pf="*".charCodeAt(0),hf=":".charCodeAt(0),df="@".charCodeAt(0),Xt=/[\t\n\f\r "#'()/;[\\\]{}]/g,Zt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,mf=/.[\n"'(/\\]/,uo=/[\da-f]/i;lo.exports=function(e,n={}){let r=e.css.valueOf(),s=n.ignoreErrors,i,o,a,u,c,f,p,l,g,x,h=r.length,d=0,m=[],b=[];function w(){return d}function v(U){throw e.error("Unclosed "+U,d)}function N(){return b.length===0&&d>=h}function $(U){if(b.length)return b.pop();if(d>=h)return;let S=U?U.ignoreUnclosed:!1;switch(i=r.charCodeAt(d),i){case Ht:case pt:case jt:case Jt:case Qt:{o=d;do o+=1,i=r.charCodeAt(o);while(i===pt||i===Ht||i===jt||i===Jt||i===Qt);x=["space",r.slice(d,o)],d=o-1;break}case sf:case of:case lf:case cf:case hf:case ff:case uf:{let C=String.fromCharCode(i);x=[C,C,d];break}case af:{if(l=m.length?m.pop()[1]:"",g=r.charCodeAt(d+1),l==="url"&&g!==Tn&&g!==oo&&g!==pt&&g!==Ht&&g!==jt&&g!==Qt&&g!==Jt){o=d;do{if(f=!1,o=r.indexOf(")",o+1),o===-1)if(s||S){o=d;break}else v("bracket");for(p=o;r.charCodeAt(p-1)===Kt;)p-=1,f=!f}while(f);x=["brackets",r.slice(d,o+1),d,o],d=o}else o=r.indexOf(")",d+1),u=r.slice(d,o+1),o===-1||mf.test(u)?x=["(","(",d]:(x=["brackets",u,d,o],d=o);break}case Tn:case oo:{a=i===Tn?"'":'"',o=d;do{if(f=!1,o=r.indexOf(a,o+1),o===-1)if(s||S){o=d+1;break}else v("string");for(p=o;r.charCodeAt(p-1)===Kt;)p-=1,f=!f}while(f);x=["string",r.slice(d,o+1),d,o],d=o;break}case df:{Xt.lastIndex=d+1,Xt.test(r),Xt.lastIndex===0?o=r.length-1:o=Xt.lastIndex-2,x=["at-word",r.slice(d,o+1),d,o],d=o;break}case Kt:{for(o=d,c=!0;r.charCodeAt(o+1)===Kt;)o+=1,c=!c;if(i=r.charCodeAt(o+1),c&&i!==ao&&i!==pt&&i!==Ht&&i!==jt&&i!==Jt&&i!==Qt&&(o+=1,uo.test(r.charAt(o)))){for(;uo.test(r.charAt(o+1));)o+=1;r.charCodeAt(o+1)===pt&&(o+=1)}x=["word",r.slice(d,o+1),d,o],d=o;break}default:{i===ao&&r.charCodeAt(d+1)===pf?(o=r.indexOf("*/",d+2)+1,o===0&&(s||S?o=r.length:v("comment")),x=["comment",r.slice(d,o+1),d,o],d=o):(Zt.lastIndex=d+1,Zt.test(r),Zt.lastIndex===0?o=r.length-1:o=Zt.lastIndex-2,x=["word",r.slice(d,o+1),d,o],m.push(x),d=o);break}}return d++,x}function H(U){b.push(U)}return{back:H,endOfFile:N,nextToken:$,position:w}}});var tr=y((Sx,fo)=>{"use strict";var co=se(),Ne=class extends co{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};fo.exports=Ne;Ne.default=Ne;co.registerAtRule(Ne)});var Pe=y((Cx,yo)=>{"use strict";var po=se(),ho,mo,ie=class extends po{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,n,r){let s=super.normalize(e);if(n){if(r==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(let i of s)i.raws.before=n.raws.before}return s}removeChild(e,n){let r=this.index(e);return!n&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new ho(new mo,this,e).stringify()}};ie.registerLazyResult=t=>{ho=t};ie.registerProcessor=t=>{mo=t};yo.exports=ie;ie.default=ie;po.registerRoot(ie)});var En=y((Ox,go)=>{"use strict";var ht={comma(t){return ht.split(t,[","],!0)},space(t){let e=[" ",` +`," "];return ht.split(t,e)},split(t,e,n){let r=[],s="",i=!1,o=0,a=!1,u="",c=!1;for(let f of t)c?c=!1:f==="\\"?c=!0:a?f===u&&(a=!1):f==='"'||f==="'"?(a=!0,u=f):f==="("?o+=1:f===")"?o>0&&(o-=1):o===0&&e.includes(f)&&(i=!0),i?(s!==""&&r.push(s.trim()),s="",i=!1):s+=f;return(n||s!=="")&&r.push(s.trim()),r}};go.exports=ht;ht.default=ht});var rr=y((Ax,vo)=>{"use strict";var wo=se(),yf=En(),Re=class extends wo{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return yf.comma(this.selector)}set selectors(e){let n=this.selector?this.selector.match(/,\s*/):null,r=n?n[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};vo.exports=Re;Re.default=Re;wo.registerRule(Re)});var nr=y((Nx,ko)=>{"use strict";var gf=ct(),wf=er(),vf=Ae(),xf=tr(),bf=Pe(),xo=rr(),bo={empty:!0,space:!0};function kf(t){for(let e=t.length-1;e>=0;e--){let n=t[e],r=n[3]||n[2];if(r)return r}}var Sn=class{constructor(e){this.input=e,this.root=new bf,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let n=new xf;n.name=e[1].slice(1),n.name===""&&this.unnamedAtrule(n,e),this.init(n,e[2]);let r,s,i,o=!1,a=!1,u=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?c.push(r==="("?")":"]"):r==="{"&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),c.length===0)if(r===";"){n.source.end=this.getPosition(e[2]),this.semicolon=!0;break}else if(r==="{"){a=!0;break}else if(r==="}"){if(u.length>0){for(i=u.length-1,s=u[i];s&&s[0]==="space";)s=u[--i];s&&(n.source.end=this.getPosition(s[3]||s[2]))}this.end(e);break}else u.push(e);else u.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(n.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(n,"params",u),o&&(e=u[u.length-1],n.source.end=this.getPosition(e[3]||e[2]),this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),a&&(n.nodes=[],this.current=n)}checkMissedSemicolon(e){let n=this.colon(e);if(n===!1)return;let r=0,s;for(let i=n-1;i>=0&&(s=e[i],!(s[0]!=="space"&&(r+=1,r===2)));i--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(e){let n=0,r,s,i;for(let[o,a]of e.entries()){if(r=a,s=r[0],s==="("&&(n+=1),s===")"&&(n-=1),n===0&&s===":")if(!i)this.doubleColon(r);else{if(i[0]==="word"&&i[1]==="progid")continue;return o}i=r}return!1}comment(e){let n=new vf;this.init(n,e[2]),n.source.end=this.getPosition(e[3]||e[2]);let r=e[1].slice(2,-2);if(/^\s*$/.test(r))n.text="",n.raws.left=r,n.raws.right="";else{let s=r.match(/^(\s*)([^]*\S)(\s*)$/);n.text=s[2],n.raws.left=s[1],n.raws.right=s[3]}}createTokenizer(){this.tokenizer=wf(this.input)}decl(e,n){let r=new gf;this.init(r,e[0][2]);let s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(s[3]||s[2]||kf(e));e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let i;for(;e.length;)if(i=e.shift(),i[0]===":"){r.raws.between+=i[1];break}else i[0]==="word"&&/\w/.test(i[1])&&this.unknownWord([i]),r.raws.between+=i[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(i=e[c],i[1].toLowerCase()==="!important"){r.important=!0;let f=this.stringFrom(e,c);f=this.spacesFromEnd(e)+f,f!==" !important"&&(r.raws.important=f);break}else if(i[1].toLowerCase()==="important"){let f=e.slice(0),p="";for(let l=c;l>0;l--){let g=f[l][0];if(p.trim().indexOf("!")===0&&g!=="space")break;p=f.pop()[1]+p}p.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=p,e=f)}if(i[0]!=="space"&&i[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(r.raws.between+=o.map(c=>c[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),n),r.value.includes(":")&&!n&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let n=new xo;this.init(n,e[2]),n.selector="",n.raws.between="",this.current=n}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let n=this.current.nodes[this.current.nodes.length-1];n&&n.type==="rule"&&!n.raws.ownSemicolon&&(n.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let n=this.input.fromOffset(e);return{column:n.col,line:n.line,offset:e}}init(e,n){this.current.push(e),e.source={input:this.input,start:this.getPosition(n)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let n=!1,r=null,s=!1,i=null,o=[],a=e[1].startsWith("--"),u=[],c=e;for(;c;){if(r=c[0],u.push(c),r==="("||r==="[")i||(i=c),o.push(r==="("?")":"]");else if(a&&s&&r==="{")i||(i=c),o.push("}");else if(o.length===0)if(r===";")if(s){this.decl(u,a);return}else break;else if(r==="{"){this.rule(u);return}else if(r==="}"){this.tokenizer.back(u.pop()),n=!0;break}else r===":"&&(s=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),o.length>0&&this.unclosedBracket(i),n&&s){if(!a)for(;u.length&&(c=u[u.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,a)}else this.unknownWord(u)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,n,r,s){let i,o,a=r.length,u="",c=!0,f,p;for(let l=0;lg+x[1],"");e.raws[n]={raw:l,value:u}}e[n]=u}rule(e){e.pop();let n=new xo;this.init(n,e[0][2]),n.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(n,"selector",e),this.current=n}spacesAndCommentsFromEnd(e){let n,r="";for(;e.length&&(n=e[e.length-1][0],!(n!=="space"&&n!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let n,r="";for(;e.length&&(n=e[0][0],!(n!=="space"&&n!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let n,r="";for(;e.length&&(n=e[e.length-1][0],n==="space");)r=e.pop()[1]+r;return r}stringFrom(e,n){let r="";for(let s=n;s{});var Eo=y((Ix,To)=>{var _f="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Tf=(t,e=21)=>(n=e)=>{let r="",s=n;for(;s--;)r+=t[Math.random()*t.length|0];return r},Ef=(t=21)=>{let e="",n=t;for(;n--;)e+=_f[Math.random()*64|0];return e};To.exports={nanoid:Ef,customAlphabet:Tf}});var Cn=y((qx,So)=>{So.exports=class{}});var qe=y((Lx,No)=>{"use strict";var{SourceMapConsumer:Sf,SourceMapGenerator:Cf}=_o(),{fileURLToPath:Co,pathToFileURL:sr}={},{isAbsolute:Nn,resolve:Pn}={},{nanoid:Of}=Eo(),On=vn(),Oo=Vt(),Af=Cn(),An=Symbol("fromOffsetCache"),Nf=!!(Sf&&Cf),Ao=!!(Pn&&Nn),Ie=class{constructor(e,n={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,n.from&&(!Ao||/^\w+:\/\//.test(n.from)||Nn(n.from)?this.file=n.from:this.file=Pn(n.from)),Ao&&Nf){let r=new Af(this.css,n);if(r.text){this.map=r;let s=r.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}error(e,n,r,s={}){let i,o,a;if(n&&typeof n=="object"){let c=n,f=r;if(typeof c.offset=="number"){let p=this.fromOffset(c.offset);n=p.line,r=p.col}else n=c.line,r=c.column;if(typeof f.offset=="number"){let p=this.fromOffset(f.offset);o=p.line,a=p.col}else o=f.line,a=f.column}else if(!r){let c=this.fromOffset(n);n=c.line,r=c.col}let u=this.origin(n,r,o,a);return u?i=new Oo(e,u.endLine===void 0?u.line:{column:u.column,line:u.line},u.endLine===void 0?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,s.plugin):i=new Oo(e,o===void 0?n:{column:r,line:n},o===void 0?r:{column:a,line:o},this.css,this.file,s.plugin),i.input={column:r,endColumn:a,endLine:o,line:n,source:this.css},this.file&&(sr&&(i.input.url=sr(this.file).toString()),i.input.file=this.file),i}get from(){return this.file||this.id}fromOffset(e){let n,r;if(this[An])r=this[An];else{let i=this.css.split(` +`);r=new Array(i.length);let o=0;for(let a=0,u=i.length;a=n)s=r.length-1;else{let i=r.length-2,o;for(;s>1),e=r[o+1])s=o+1;else{s=o;break}}return{col:e-r[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Pn(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,n,r,s){if(!this.map)return!1;let i=this.map.consumer(),o=i.originalPositionFor({column:n,line:e});if(!o.source)return!1;let a;typeof r=="number"&&(a=i.originalPositionFor({column:s,line:r}));let u;Nn(o.source)?u=sr(o.source):u=new URL(o.source,this.map.consumer().sourceRoot||sr(this.map.mapFile));let c={column:o.column,endColumn:a&&a.column,endLine:a&&a.line,line:o.line,url:u.toString()};if(u.protocol==="file:")if(Co)c.file=Co(u);else throw new Error("file: protocol is not available in this PostCSS build");let f=i.sourceContentFor(o.source);return f&&(c.source=f),c}toJSON(){let e={};for(let n of["hasBOM","css","file","id"])this[n]!=null&&(e[n]=this[n]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};No.exports=Ie;Ie.default=Ie;On&&On.registerInput&&On.registerInput(Ie)});var dt=y((Mx,Po)=>{"use strict";var Pf=se(),Rf=nr(),If=qe();function ir(t,e){let n=new If(t,e),r=new Rf(n);try{r.parse()}catch(s){throw s}return r.root}Po.exports=ir;ir.default=ir;Pf.registerParse(ir)});var Ro=y((Bx,Rn)=>{var qf=er(),Df=qe();Rn.exports={isInlineComment(t){if(t[0]==="word"&&t[1].slice(0,2)==="//"){let e=t,n=[],r,s;for(;t;){if(/\r?\n/.test(t[1])){if(/['"].*\r?\n/.test(t[1])){n.push(t[1].substring(0,t[1].indexOf(` `))),s=t[1].substring(t[1].indexOf(` -`));let o=this.input.css.valueOf().substring(this.tokenizer.position());s+=o,r=t[3]+o.length-s.length}else this.tokenizer.back(t);break}n.push(t[1]),r=t[2],t=this.tokenizer.nextToken({ignoreUnclosed:!0})}let i=["comment",n.join(""),e[2],r];return this.inlineComment(i),s&&(this.input=new Df(s),this.tokenizer=qf(this.input)),!0}else if(t[1]==="/"){let e=this.tokenizer.nextToken({ignoreUnclosed:!0});if(e[0]==="comment"&&/^\/\*/.test(e[1]))return e[0]="word",e[1]=e[1].slice(1),t[1]="//",this.tokenizer.back(e),In.exports.isInlineComment.bind(this)(t)}return!1}}});var qo=y((Fx,Io)=>{Io.exports={interpolation(t){let e=[t,this.tokenizer.nextToken()],n=["word","}"];if(e[0][1].length>1||e[1][0]!=="{")return this.tokenizer.back(e[1]),!1;for(t=this.tokenizer.nextToken();t&&n.includes(t[0]);)e.push(t),t=this.tokenizer.nextToken();let r=e.map(a=>a[1]),[s]=e,i=e.pop(),o=["word",r.join(""),s[2],i[2]];return this.tokenizer.back(t),this.tokenizer.back(o),!0}}});var Lo=y(($x,Do)=>{var Lf=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,Mf=/\.[0-9]/,Bf=t=>{let[,e]=t,[n]=e;return(n==="."||n==="#")&&Lf.test(e)===!1&&Mf.test(e)===!1};Do.exports={isMixinToken:Bf}});var Bo=y((Ux,Mo)=>{var Ff=er(),$f=/^url\((.+)\)/;Mo.exports=t=>{let{name:e,params:n=""}=t;if(e==="import"&&n.length){t.import=!0;let r=Ff({css:n});for(t.filename=n.replace($f,"$1");!r.endOfFile();){let[s,i]=r.nextToken();if(s==="word"&&i==="url")return;if(s==="brackets"){t.options=i,t.filename=n.replace(i,"").trim();break}}}}});var Wo=y((Wx,Uo)=>{var Fo=/:$/,$o=/^:(\s+)?/;Uo.exports=t=>{let{name:e,params:n=""}=t;if(t.name.slice(-1)===":"){if(Fo.test(e)){let[r]=e.match(Fo);t.name=e.replace(r,""),t.raws.afterName=r+(t.raws.afterName||""),t.variable=!0,t.value=t.params}if($o.test(n)){let[r]=n.match($o);t.value=n.replace(r,""),t.raws.afterName=(t.raws.afterName||"")+r,t.variable=!0}}}});var Yo=y((Vx,Vo)=>{var Uf=Ae(),Wf=nr(),{isInlineComment:zf}=Ro(),{interpolation:zo}=qo(),{isMixinToken:Vf}=Lo(),Yf=Bo(),Gf=Wo(),Kf=/(!\s*important)$/i;Vo.exports=class extends Wf{constructor(...e){super(...e),this.lastNode=null}atrule(e){zo.bind(this)(e)||(super.atrule(e),Yf(this.lastNode),Gf(this.lastNode))}decl(...e){super.decl(...e),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(e){e[0][1]=` ${e[0][1]}`;let n=e.findIndex(a=>a[0]==="("),r=e.reverse().find(a=>a[0]===")"),s=e.reverse().indexOf(r),o=e.splice(n,s).map(a=>a[1]).join("");for(let a of e.reverse())this.tokenizer.back(a);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=o}init(e,n,r){super.init(e,n,r),this.lastNode=e}inlineComment(e){let n=new Uf,r=e[1].slice(2);if(this.init(n,e[2]),n.source.end=this.getPosition(e[3]||e[2]),n.inline=!0,n.raws.begin="//",/^\s*$/.test(r))n.text="",n.raws.left=r,n.raws.right="";else{let s=r.match(/^(\s*)([^]*[^\s])(\s*)$/);[,n.raws.left,n.text,n.raws.right]=s}}mixin(e){let[n]=e,r=n[1].slice(0,1),s=e.findIndex(c=>c[0]==="brackets"),i=e.findIndex(c=>c[0]==="("),o="";if((s<0||s>3)&&i>0){let c=e.reduce((w,v,N)=>v[0]===")"?N:w),p=e.slice(i,c+i).map(w=>w[1]).join(""),[l]=e.slice(i),g=[l[2],l[3]],[x]=e.slice(c,c+1),h=[x[2],x[3]],d=["brackets",p].concat(g,h),m=e.slice(0,i),b=e.slice(c+1);e=m,e.push(d),e=e.concat(b)}let a=[];for(let c of e)if((c[1]==="!"||a.length)&&a.push(c),c[1]==="important")break;if(a.length){let[c]=a,f=e.indexOf(c),p=a[a.length-1],l=[c[2],c[3]],g=[p[4],p[5]],h=["word",a.map(d=>d[1]).join("")].concat(l,g);e.splice(f,a.length,h)}let u=e.findIndex(c=>Kf.test(c[1]));u>0&&([,o]=e[u],e.splice(u,1));for(let c of e.reverse())this.tokenizer.back(c);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=r,o&&(this.lastNode.important=!0,this.lastNode.raws.important=o)}other(e){zf.bind(this)(e)||super.other(e)}rule(e){let n=e[e.length-1],r=e[e.length-2];if(r[0]==="at-word"&&n[0]==="{"&&(this.tokenizer.back(n),zo.bind(this)(r))){let i=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([i]);for(let o of e.reverse())this.tokenizer.back(o);return}super.rule(e),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(e){let[n]=e;if(e[0][1]==="each"&&e[1][0]==="("){this.each(e);return}if(Vf(n)){this.mixin(e);return}super.unknownWord(e)}}});var Ko=y((Gx,Go)=>{var Hf=Yt();Go.exports=class extends Hf{atrule(e,n){if(!e.mixin&&!e.variable&&!e.function){super.atrule(e,n);return}let s=`${e.function?"":e.raws.identifier||"@"}${e.name}`,i=e.params?this.rawValue(e,"params"):"",o=e.raws.important||"";if(e.variable&&(i=e.value),typeof e.raws.afterName<"u"?s+=e.raws.afterName:i&&(s+=" "),e.nodes)this.block(e,s+i+o);else{let a=(e.raws.between||"")+o+(n?";":"");this.builder(s+i+a,e)}}comment(e){if(e.inline){let n=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder(`//${n}${e.text}${r}`,e)}else super.comment(e)}}});var Ho=y((Kx,qn)=>{var Qf=qe(),jf=Yo(),Jf=Ko();qn.exports={parse(t,e){let n=new Qf(t,e),r=new jf(n);return r.parse(),r.root.walk(s=>{let i=n.css.lastIndexOf(s.source.input.css);if(i===0)return;if(i+s.source.input.css.length!==n.css.length)throw new Error("Invalid state detected in postcss-less");let o=i+s.source.start.offset,a=n.fromOffset(i+s.source.start.offset);if(s.source.start={offset:o,line:a.line,column:a.col},s.source.end){let u=i+s.source.end.offset,c=n.fromOffset(i+s.source.end.offset);s.source.end={offset:u,line:c.line,column:c.col}}}),r.root},stringify(t,e){new Jf(e).stringify(t)},nodeToString(t){let e="";return qn.exports.stringify(t,n=>{e+=n}),e}}});var Dn=y((Hx,Qo)=>{Qo.exports=class{generate(){}}});var or=y((jx,Xo)=>{"use strict";var Xf=se(),jo,Jo,ye=class extends Xf{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new jo(new Jo,this,e).stringify()}};ye.registerLazyResult=t=>{jo=t};ye.registerProcessor=t=>{Jo=t};Xo.exports=ye;ye.default=ye});var Ln=y((Jx,ea)=>{"use strict";var Zo={};ea.exports=function(e){Zo[e]||(Zo[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var Mn=y((Xx,ta)=>{"use strict";var mt=class{constructor(e,n={}){if(this.type="warning",this.text=e,n.node&&n.node.source){let r=n.node.rangeBy(n);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in n)this[r]=n[r]}toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};ta.exports=mt;mt.default=mt});var ar=y((Zx,ra)=>{"use strict";var Zf=Mn(),yt=class{constructor(e,n,r){this.processor=e,this.messages=[],this.root=n,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let r=new Zf(e,n);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};ra.exports=yt;yt.default=yt});var $n=y((tb,oa)=>{"use strict";var{isClean:K,my:ep}=zt(),tp=Dn(),rp=ot(),np=se(),sp=or(),eb=Ln(),na=ar(),ip=dt(),op=Pe(),ap={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},up={postcssPlugin:!0,prepare:!0,Once:!0,Document:!0,Root:!0,Declaration:!0,Rule:!0,AtRule:!0,Comment:!0,DeclarationExit:!0,RuleExit:!0,AtRuleExit:!0,CommentExit:!0,RootExit:!0,DocumentExit:!0,OnceExit:!0},lp={postcssPlugin:!0,prepare:!0,Once:!0},De=0;function gt(t){return typeof t=="object"&&typeof t.then=="function"}function ia(t){let e=!1,n=ap[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[n,n+"-"+e,De,n+"Exit",n+"Exit-"+e]:e?[n,n+"-"+e,n+"Exit",n+"Exit-"+e]:t.append?[n,De,n+"Exit"]:[n,n+"Exit"]}function sa(t){let e;return t.type==="document"?e=["Document",De,"DocumentExit"]:t.type==="root"?e=["Root",De,"RootExit"]:e=ia(t),{node:t,events:e,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function Bn(t){return t[K]=!1,t.nodes&&t.nodes.forEach(e=>Bn(e)),t}var Fn={},oe=class t{constructor(e,n,r){this.stringified=!1,this.processed=!1;let s;if(typeof n=="object"&&n!==null&&(n.type==="root"||n.type==="document"))s=Bn(n);else if(n instanceof t||n instanceof na)s=Bn(n.root),n.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{let i=ip;r.syntax&&(i=r.syntax.parse),r.parser&&(i=r.parser),i.parse&&(i=i.parse);try{s=i(n,r)}catch(o){this.processed=!0,this.error=o}s&&!s[ep]&&np.rebuild(s)}this.result=new na(e,s,r),this.helpers={...Fn,result:this.result,postcss:Fn},this.plugins=this.processor.plugins.map(i=>typeof i=="object"&&i.prepare?{...i,...i.prepare(this.result)}:i)}get[Symbol.toStringTag](){return"LazyResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(e,n){return this.async().then(e,n)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let n=this.runOnRoot(e);if(gt(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[K];)e[K]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let n of e.nodes)this.visitSync(this.listeners.OnceExit,n);else this.visitSync(this.listeners.OnceExit,e)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,n=rp;e.syntax&&(n=e.syntax.stringify),e.stringifier&&(n=e.stringifier),n.stringify&&(n=n.stringify);let s=new tp(n,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[1],this.result}walkSync(e){e[K]=!0;let n=ia(e);for(let r of n)if(r===De)e.nodes&&e.each(s=>{s[K]||this.walkSync(s)});else{let s=this.listeners[r];if(s&&this.visitSync(s,e.toProxy()))return}}visitSync(e,n){for(let[r,s]of e){this.result.lastPlugin=r;let i;try{i=s(n,this.helpers)}catch(o){throw this.handleError(o,n.proxyOf)}if(n.type!=="root"&&n.type!=="document"&&!n.parent)return!0;if(gt(i))throw this.getAsyncError()}}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let n=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return gt(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(n){throw this.handleError(n)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,n){let r=this.result.lastPlugin;try{n&&n.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(s){console&&console.error&&console.error(s)}return e}async runAsync(){this.plugin=0;for(let e=0;e0;){let r=this.visitTick(n);if(gt(r))try{await r}catch(s){let i=n[n.length-1].node;throw this.handleError(s,i)}}}if(this.listeners.OnceExit)for(let[n,r]of this.listeners.OnceExit){this.result.lastPlugin=n;try{if(e.type==="document"){let s=e.nodes.map(i=>r(i,this.helpers));await Promise.all(s)}else await r(e,this.helpers)}catch(s){throw this.handleError(s)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(n,r,s)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([n,s])};for(let n of this.plugins)if(typeof n=="object")for(let r in n){if(!up[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${n.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!lp[r])if(typeof n[r]=="object")for(let s in n[r])s==="*"?e(n,r,n[r][s]):e(n,r+"-"+s.toLowerCase(),n[r][s]);else typeof n[r]=="function"&&e(n,r,n[r])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let n=e[e.length-1],{node:r,visitors:s}=n;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(s.length>0&&n.visitorIndex{Fn=t};oa.exports=oe;oe.default=oe;op.registerLazyResult(oe);sp.registerLazyResult(oe)});var ua=y((nb,aa)=>{"use strict";var cp=Dn(),fp=ot(),rb=Ln(),pp=dt(),hp=ar(),wt=class{constructor(e,n,r){n=n.toString(),this.stringified=!1,this._processor=e,this._css=n,this._opts=r,this._map=void 0;let s,i=fp;this.result=new hp(this._processor,s,this._opts),this.result.css=n;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new cp(i,s,this._opts,n);if(a.isMap()){let[u,c]=a.generate();u&&(this.result.css=u),c&&(this.result.map=c)}}get[Symbol.toStringTag](){return"NoWorkResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.result.css}get content(){return this.result.css}get map(){return this.result.map}get root(){if(this._root)return this._root;let e,n=pp;try{e=n(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(e,n){return this.async().then(e,n)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}sync(){if(this.error)throw this.error;return this.result}};aa.exports=wt;wt.default=wt});var ca=y((sb,la)=>{"use strict";var dp=ua(),mp=$n(),yp=or(),gp=Pe(),ge=class{constructor(e=[]){this.version="8.4.24",this.plugins=this.normalize(e)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}process(e,n={}){return this.plugins.length===0&&typeof n.parser>"u"&&typeof n.stringifier>"u"&&typeof n.syntax>"u"?new dp(this,e,n):new mp(this,e,n)}normalize(e){let n=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))n=n.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)n.push(r);else if(typeof r=="function")n.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return n}};la.exports=ge;ge.default=ge;gp.registerProcessor(ge);yp.registerProcessor(ge)});var pa=y((ib,fa)=>{"use strict";var wp=ct(),vp=On(),xp=Ae(),bp=tr(),kp=qe(),_p=Pe(),Tp=rr();function vt(t,e){if(Array.isArray(t))return t.map(s=>vt(s));let{inputs:n,...r}=t;if(n){e=[];for(let s of n){let i={...s,__proto__:kp.prototype};i.map&&(i.map={...i.map,__proto__:vp.prototype}),e.push(i)}}if(r.nodes&&(r.nodes=t.nodes.map(s=>vt(s,e))),r.source){let{inputId:s,...i}=r.source;r.source=i,s!=null&&(r.source.input=e[s])}if(r.type==="root")return new _p(r);if(r.type==="decl")return new wp(r);if(r.type==="rule")return new Tp(r);if(r.type==="comment")return new xp(r);if(r.type==="atrule")return new bp(r);throw new Error("Unknown node type: "+t.type)}fa.exports=vt;vt.default=vt});var ur=y((ob,va)=>{"use strict";var Ep=Vt(),ha=ct(),Sp=$n(),Cp=se(),Un=ca(),Op=ot(),Ap=pa(),da=or(),Np=Mn(),ma=Ae(),ya=tr(),Pp=ar(),Rp=qe(),Ip=dt(),qp=Sn(),ga=rr(),wa=Pe(),Dp=ut();function k(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new Un(t)}k.plugin=function(e,n){let r=!1;function s(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide: -https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let a=n(...o);return a.postcssPlugin=e,a.postcssVersion=new Un().version,a}let i;return Object.defineProperty(s,"postcss",{get(){return i||(i=s()),i}}),s.process=function(o,a,u){return k([s(u)]).process(o,a)},s};k.stringify=Op;k.parse=Ip;k.fromJSON=Ap;k.list=qp;k.comment=t=>new ma(t);k.atRule=t=>new ya(t);k.decl=t=>new ha(t);k.rule=t=>new ga(t);k.root=t=>new wa(t);k.document=t=>new da(t);k.CssSyntaxError=Ep;k.Declaration=ha;k.Container=Cp;k.Processor=Un;k.Document=da;k.Comment=ma;k.Warning=Np;k.AtRule=ya;k.Result=Pp;k.Input=Rp;k.Rule=ga;k.Root=wa;k.Node=Dp;Sp.registerPostcss(k);va.exports=k;k.default=k});var ba=y((ab,xa)=>{var{Container:Lp}=ur(),Wn=class extends Lp{constructor(e){super(e),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};xa.exports=Wn});var Ca=y((ub,Sa)=>{"use strict";var zn="'".charCodeAt(0),Vn='"'.charCodeAt(0),xt="\\".charCodeAt(0),lr="/".charCodeAt(0),Yn=` -`.charCodeAt(0),cr=" ".charCodeAt(0),Gn="\f".charCodeAt(0),Kn=" ".charCodeAt(0),Hn="\r".charCodeAt(0),Mp="[".charCodeAt(0),Bp="]".charCodeAt(0),ka="(".charCodeAt(0),_a=")".charCodeAt(0),fr="{".charCodeAt(0),Ta="}".charCodeAt(0),Fp=";".charCodeAt(0),$p="*".charCodeAt(0),Up=":".charCodeAt(0),Wp="@".charCodeAt(0),zp=",".charCodeAt(0),Qn="#".charCodeAt(0),pr=/[\t\n\f\r "#'()/;[\\\]{}]/g,hr=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Vp=/.[\n"'(/\\]/,Ea=/[\da-f]/i,dr=/[\n\f\r]/g;Sa.exports=function(e,n={}){let r=e.css.valueOf(),s=n.ignoreErrors,i,o,a,u,c,f,p,l,g,x=r.length,h=0,d=[],m=[],b;function w(){return h}function v(S){throw e.error("Unclosed "+S,h)}function N(){return m.length===0&&h>=x}function $(){let S=1,C=!1,O=!1;for(;S>0;)o+=1,r.length<=o&&v("interpolation"),i=r.charCodeAt(o),l=r.charCodeAt(o+1),C?!O&&i===C?(C=!1,O=!1):i===xt?O=!O:O&&(O=!1):i===zn||i===Vn?C=i:i===Ta?S-=1:i===Qn&&l===fr&&(S+=1)}function H(S){if(m.length)return m.pop();if(h>=x)return;let C=S?S.ignoreUnclosed:!1;switch(i=r.charCodeAt(h),i){case Yn:case cr:case Kn:case Hn:case Gn:{o=h;do o+=1,i=r.charCodeAt(o);while(i===cr||i===Yn||i===Kn||i===Hn||i===Gn);g=["space",r.slice(h,o)],h=o-1;break}case Mp:case Bp:case fr:case Ta:case Up:case Fp:case _a:{let O=String.fromCharCode(i);g=[O,O,h];break}case zp:{g=["word",",",h,h+1];break}case ka:{if(p=d.length?d.pop()[1]:"",l=r.charCodeAt(h+1),p==="url"&&l!==zn&&l!==Vn){for(b=1,f=!1,o=h+1;o<=r.length-1;){if(l=r.charCodeAt(o),l===xt)f=!f;else if(l===ka)b+=1;else if(l===_a&&(b-=1,b===0))break;o+=1}u=r.slice(h,o+1),g=["brackets",u,h,o],h=o}else o=r.indexOf(")",h+1),u=r.slice(h,o+1),o===-1||Vp.test(u)?g=["(","(",h]:(g=["brackets",u,h,o],h=o);break}case zn:case Vn:{for(a=i,o=h,f=!1;o{var{Comment:Yp}=ur(),Gp=nr(),Kp=ba(),Hp=Ca(),jn=class extends Gp{createTokenizer(){this.tokenizer=Hp(this.input)}rule(e){let n=!1,r=0,s="";for(let i of e)if(n)i[0]!=="comment"&&i[0]!=="{"&&(s+=i[1]);else{if(i[0]==="space"&&i[1].includes(` -`))break;i[0]==="("?r+=1:i[0]===")"?r-=1:r===0&&i[0]===":"&&(n=!0)}if(!n||s.trim()===""||/^[#:A-Za-z-]/.test(s))super.rule(e);else{e.pop();let i=new Kp;this.init(i,e[0][2]);let o;for(let u=e.length-1;u>=0;u--)if(e[u][0]!=="space"){o=e[u];break}if(o[3]){let u=this.input.fromOffset(o[3]);i.source.end={offset:o[3],line:u.line,column:u.col}}else{let u=this.input.fromOffset(o[2]);i.source.end={offset:o[2],line:u.line,column:u.col}}for(;e[0][0]!=="word";)i.raws.before+=e.shift()[1];if(e[0][2]){let u=this.input.fromOffset(e[0][2]);i.source.start={offset:e[0][2],line:u.line,column:u.col}}for(i.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let a;for(;e.length;)if(a=e.shift(),a[0]===":"){i.raws.between+=a[1];break}else i.raws.between+=a[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1)),i.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(let u=e.length-1;u>0;u--){if(a=e[u],a[1]==="!important"){i.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(i.raws.important=c);break}else if(a[1]==="important"){let c=e.slice(0),f="";for(let p=u;p>0;p--){let l=c[p][0];if(f.trim().indexOf("!")===0&&l!=="space")break;f=c.pop()[1]+f}f.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=f,e=c)}if(a[0]!=="space"&&a[0]!=="comment")break}this.raw(i,"value",e),i.value.includes(":")&&this.checkMissedSemicolon(e),this.current=i}}comment(e){if(e[4]==="inline"){let n=new Yp;this.init(n,e[2]),n.raws.inline=!0;let r=this.input.fromOffset(e[3]);n.source.end={offset:e[3],line:r.line,column:r.col};let s=e[1].slice(2);if(/^\s*$/.test(s))n.text="",n.raws.left=s,n.raws.right="";else{let i=s.match(/^(\s*)([^]*\S)(\s*)$/),o=i[2].replace(/(\*\/|\/\*)/g,"*//*");n.text=o,n.raws.left=i[1],n.raws.right=i[3],n.raws.text=i[2]}}else super.comment(e)}atrule(e){let n=e[1],r=e;for(;!this.tokenizer.endOfFile();){let s=this.tokenizer.nextToken();if(s[0]==="word"&&s[2]===r[3]+1)n+=s[1],r=s;else{this.tokenizer.back(s);break}}super.atrule(["at-word",n,e[2],r[3]])}raw(e,n,r,s){if(super.raw(e,n,r,s),e.raws[n]){let i=e.raws[n].raw;e.raws[n].raw=r.reduce((o,a)=>{if(a[0]==="comment"&&a[4]==="inline"){let u=a[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return o+"/*"+u+"*/"}else return o+a[1]},""),i!==e.raws[n].raw&&(e.raws[n].scss=i)}}};Oa.exports=jn});var Pa=y((cb,Na)=>{var{Input:Qp}=ur(),jp=Aa();Na.exports=function(e,n){let r=new Qp(e,n),s=new jp(r);return s.parse(),s.root}});var V=y((mb,Da)=>{"use strict";var Jn=function(t,e){let n=new t.constructor;for(let r in t){if(!t.hasOwnProperty(r))continue;let s=t[r],i=typeof s;r==="parent"&&i==="object"?e&&(n[r]=e):r==="source"?n[r]=s:s instanceof Array?n[r]=s.map(o=>Jn(o,n)):r!=="before"&&r!=="after"&&r!=="between"&&r!=="semicolon"&&(i==="object"&&s!==null&&(s=Jn(s)),n[r]=s)}return n};Da.exports=class{constructor(e){e=e||{},this.raws={before:"",after:""};for(let n in e)this[n]=e[n]}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return[this.raws.before,String(this.value),this.raws.after].join("")}clone(e){e=e||{};let n=Jn(this);for(let r in e)n[r]=e[r];return n}cloneBefore(e){e=e||{};let n=this.clone(e);return this.parent.insertBefore(this,n),n}cloneAfter(e){e=e||{};let n=this.clone(e);return this.parent.insertAfter(this,n),n}replaceWith(){let e=Array.prototype.slice.call(arguments);if(this.parent){for(let n of e)this.parent.insertBefore(this,n);this.remove()}return this}moveTo(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.append(this),this}moveBefore(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertBefore(e,this),this}moveAfter(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertAfter(e,this),this}next(){let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){let e=this.parent.index(this);return this.parent.nodes[e-1]}toJSON(){let e={};for(let n in this){if(!this.hasOwnProperty(n)||n==="parent")continue;let r=this[n];r instanceof Array?e[n]=r.map(s=>typeof s=="object"&&s.toJSON?s.toJSON():s):typeof r=="object"&&r.toJSON?e[n]=r.toJSON():e[n]=r}return e}root(){let e=this;for(;e.parent;)e=e.parent;return e}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}positionInside(e){let n=this.toString(),r=this.source.start.column,s=this.source.start.line;for(let i=0;i{"use strict";var th=V(),Le=class extends th{constructor(e){super(e),this.nodes||(this.nodes=[])}push(e){return e.parent=this,this.nodes.push(e),this}each(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let n=this.lastEach,r,s;if(this.indexes[n]=0,!!this.nodes){for(;this.indexes[n]{let s=e(n,r);return s!==!1&&n.walk&&(s=n.walk(e)),s})}walkType(e,n){if(!e||!n)throw new Error("Parameters {type} and {callback} are required.");let r=typeof e=="function";return this.walk((s,i)=>{if(r&&s instanceof e||!r&&s.type===e)return n.call(this,s,i)})}append(e){return e.parent=this,this.nodes.push(e),this}prepend(e){return e.parent=this,this.nodes.unshift(e),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let n of this.nodes)n.cleanRaws(e)}insertAfter(e,n){let r=this.index(e),s;this.nodes.splice(r+1,0,n);for(let i in this.indexes)s=this.indexes[i],r<=s&&(this.indexes[i]=s+this.nodes.length);return this}insertBefore(e,n){let r=this.index(e),s;this.nodes.splice(r,0,n);for(let i in this.indexes)s=this.indexes[i],r<=s&&(this.indexes[i]=s+this.nodes.length);return this}removeChild(e){e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1);let n;for(let r in this.indexes)n=this.indexes[r],n>=e&&(this.indexes[r]=n-1);return this}removeAll(){for(let e of this.nodes)e.parent=void 0;return this.nodes=[],this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return typeof e=="number"?e:this.nodes.indexOf(e)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let e=this.nodes.map(String).join("");return this.value&&(e=this.value+e),this.raws.before&&(e=this.raws.before+e),this.raws.after&&(e+=this.raws.after),e}};Le.registerWalker=t=>{let e="walk"+t.name;e.lastIndexOf("s")!==e.length-1&&(e+="s"),!Le.prototype[e]&&(Le.prototype[e]=function(n){return this.walkType(t,n)})};La.exports=Le});var Ba=y((wb,Ma)=>{"use strict";var rh=B();Ma.exports=class extends rh{constructor(e){super(e),this.type="root"}}});var $a=y((xb,Fa)=>{"use strict";var nh=B();Fa.exports=class extends nh{constructor(e){super(e),this.type="value",this.unbalanced=0}}});var za=y((bb,Wa)=>{"use strict";var Ua=B(),mr=class extends Ua{constructor(e){super(e),this.type="atword"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};Ua.registerWalker(mr);Wa.exports=mr});var Ya=y((kb,Va)=>{"use strict";var sh=B(),ih=V(),yr=class extends ih{constructor(e){super(e),this.type="colon"}};sh.registerWalker(yr);Va.exports=yr});var Ka=y((_b,Ga)=>{"use strict";var oh=B(),ah=V(),gr=class extends ah{constructor(e){super(e),this.type="comma"}};oh.registerWalker(gr);Ga.exports=gr});var Qa=y((Tb,Ha)=>{"use strict";var uh=B(),lh=V(),wr=class extends lh{constructor(e){super(e),this.type="comment",this.inline=Object(e).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};uh.registerWalker(wr);Ha.exports=wr});var Xa=y((Eb,Ja)=>{"use strict";var ja=B(),vr=class extends ja{constructor(e){super(e),this.type="func",this.unbalanced=-1}};ja.registerWalker(vr);Ja.exports=vr});var eu=y((Sb,Za)=>{"use strict";var ch=B(),fh=V(),xr=class extends fh{constructor(e){super(e),this.type="number",this.unit=Object(e).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};ch.registerWalker(xr);Za.exports=xr});var ru=y((Cb,tu)=>{"use strict";var ph=B(),hh=V(),br=class extends hh{constructor(e){super(e),this.type="operator"}};ph.registerWalker(br);tu.exports=br});var su=y((Ob,nu)=>{"use strict";var dh=B(),mh=V(),kr=class extends mh{constructor(e){super(e),this.type="paren",this.parenType=""}};dh.registerWalker(kr);nu.exports=kr});var ou=y((Ab,iu)=>{"use strict";var yh=B(),gh=V(),_r=class extends gh{constructor(e){super(e),this.type="string"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,e,this.value+"",e,this.raws.after].join("")}};yh.registerWalker(_r);iu.exports=_r});var uu=y((Nb,au)=>{"use strict";var wh=B(),vh=V(),Tr=class extends vh{constructor(e){super(e),this.type="word"}};wh.registerWalker(Tr);au.exports=Tr});var cu=y((Pb,lu)=>{"use strict";var xh=B(),bh=V(),Er=class extends bh{constructor(e){super(e),this.type="unicode-range"}};xh.registerWalker(Er);lu.exports=Er});var pu=y((Rb,fu)=>{"use strict";var Xn=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while tokzenizing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};fu.exports=Xn});var vu=y((Ib,wu)=>{"use strict";var kh="{".charCodeAt(0),_h="}".charCodeAt(0),Th="(".charCodeAt(0),Eh=")".charCodeAt(0),hu="'".charCodeAt(0),Sh='"'.charCodeAt(0),du="\\".charCodeAt(0),Sr="/".charCodeAt(0),Ch=".".charCodeAt(0),Oh=",".charCodeAt(0),Ah=":".charCodeAt(0),Zn="*".charCodeAt(0),Cr="-".charCodeAt(0),es="+".charCodeAt(0),Nh="#".charCodeAt(0),bt=` -`.charCodeAt(0),ts=" ".charCodeAt(0),rs="\f".charCodeAt(0),ns=" ".charCodeAt(0),ss="\r".charCodeAt(0),Ph="@".charCodeAt(0),Rh="e".charCodeAt(0),Ih="E".charCodeAt(0),mu="0".charCodeAt(0),yu="9".charCodeAt(0),qh="u".charCodeAt(0),Dh="U".charCodeAt(0),Or=/[ \n\t\r\{\(\)'"\\;,/]/g,Lh=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,Me=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,Mh=/^[a-z0-9]/i,Bh=/^[a-f0-9?\-]/i,gu=pu();wu.exports=function(e,n){n=n||{};let r=[],s=e.valueOf(),i=s.length,o=-1,a=1,u=0,c=0,f=null,p,l,g,x,h,d,m,b,w,v,N,$;function H(S){let C=`Unclosed ${S} at line: ${a}, column: ${u-o}, token: ${u}`;throw new gu(C)}function U(){let S=`Syntax error at line: ${a}, column: ${u-o}, token: ${u}`;throw new gu(S)}for(;u0&&r[r.length-1][0]==="word"&&r[r.length-1][1]==="url",r.push(["(","(",a,u-o,a,l-o,u]);break;case Eh:c--,f=f&&c>0,r.push([")",")",a,u-o,a,l-o,u]);break;case hu:case Sh:g=p===hu?"'":'"',l=u;do for(v=!1,l=s.indexOf(g,l+1),l===-1&&H("quote",g),N=l;s.charCodeAt(N-1)===du;)N-=1,v=!v;while(v);r.push(["string",s.slice(u,l+1),a,u-o,a,l-o,u]),u=l;break;case Ph:Or.lastIndex=u+1,Or.test(s),Or.lastIndex===0?l=s.length-1:l=Or.lastIndex-2,r.push(["atword",s.slice(u,l+1),a,u-o,a,l-o,u]),u=l;break;case du:l=u,p=s.charCodeAt(l+1),m&&p!==Sr&&p!==ts&&p!==bt&&p!==ns&&p!==ss&&p!==rs&&(l+=1),r.push(["word",s.slice(u,l+1),a,u-o,a,l-o,u]),u=l;break;case es:case Cr:case Zn:l=u+1,$=s.slice(u+1,l+1);let S=s.slice(u-1,u);if(p===Cr&&$.charCodeAt(0)===Cr){l++,r.push(["word",s.slice(u,l),a,u-o,a,l-o,u]),u=l-1;break}r.push(["operator",s.slice(u,l),a,u-o,a,l-o,u]),u=l-1;break;default:if(p===Sr&&(s.charCodeAt(u+1)===Zn||n.loose&&!f&&s.charCodeAt(u+1)===Sr)){if(s.charCodeAt(u+1)===Zn)l=s.indexOf("*/",u+2)+1,l===0&&H("comment","*/");else{let O=s.indexOf(` +`));let o=this.input.css.valueOf().substring(this.tokenizer.position());s+=o,r=t[3]+o.length-s.length}else this.tokenizer.back(t);break}n.push(t[1]),r=t[2],t=this.tokenizer.nextToken({ignoreUnclosed:!0})}let i=["comment",n.join(""),e[2],r];return this.inlineComment(i),s&&(this.input=new Df(s),this.tokenizer=qf(this.input)),!0}else if(t[1]==="/"){let e=this.tokenizer.nextToken({ignoreUnclosed:!0});if(e[0]==="comment"&&/^\/\*/.test(e[1]))return e[0]="word",e[1]=e[1].slice(1),t[1]="//",this.tokenizer.back(e),Rn.exports.isInlineComment.bind(this)(t)}return!1}}});var qo=y((Fx,Io)=>{Io.exports={interpolation(t){let e=[t,this.tokenizer.nextToken()],n=["word","}"];if(e[0][1].length>1||e[1][0]!=="{")return this.tokenizer.back(e[1]),!1;for(t=this.tokenizer.nextToken();t&&n.includes(t[0]);)e.push(t),t=this.tokenizer.nextToken();let r=e.map(a=>a[1]),[s]=e,i=e.pop(),o=["word",r.join(""),s[2],i[2]];return this.tokenizer.back(t),this.tokenizer.back(o),!0}}});var Lo=y(($x,Do)=>{var Lf=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,Mf=/\.[0-9]/,Bf=t=>{let[,e]=t,[n]=e;return(n==="."||n==="#")&&Lf.test(e)===!1&&Mf.test(e)===!1};Do.exports={isMixinToken:Bf}});var Bo=y((Ux,Mo)=>{var Ff=er(),$f=/^url\((.+)\)/;Mo.exports=t=>{let{name:e,params:n=""}=t;if(e==="import"&&n.length){t.import=!0;let r=Ff({css:n});for(t.filename=n.replace($f,"$1");!r.endOfFile();){let[s,i]=r.nextToken();if(s==="word"&&i==="url")return;if(s==="brackets"){t.options=i,t.filename=n.replace(i,"").trim();break}}}}});var Wo=y((Wx,Uo)=>{var Fo=/:$/,$o=/^:(\s+)?/;Uo.exports=t=>{let{name:e,params:n=""}=t;if(t.name.slice(-1)===":"){if(Fo.test(e)){let[r]=e.match(Fo);t.name=e.replace(r,""),t.raws.afterName=r+(t.raws.afterName||""),t.variable=!0,t.value=t.params}if($o.test(n)){let[r]=n.match($o);t.value=n.replace(r,""),t.raws.afterName=(t.raws.afterName||"")+r,t.variable=!0}}}});var Yo=y((Vx,Vo)=>{var Uf=Ae(),Wf=nr(),{isInlineComment:zf}=Ro(),{interpolation:zo}=qo(),{isMixinToken:Vf}=Lo(),Yf=Bo(),Gf=Wo(),Kf=/(!\s*important)$/i;Vo.exports=class extends Wf{constructor(...e){super(...e),this.lastNode=null}atrule(e){zo.bind(this)(e)||(super.atrule(e),Yf(this.lastNode),Gf(this.lastNode))}decl(...e){super.decl(...e),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(e){e[0][1]=` ${e[0][1]}`;let n=e.findIndex(a=>a[0]==="("),r=e.reverse().find(a=>a[0]===")"),s=e.reverse().indexOf(r),o=e.splice(n,s).map(a=>a[1]).join("");for(let a of e.reverse())this.tokenizer.back(a);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=o}init(e,n,r){super.init(e,n,r),this.lastNode=e}inlineComment(e){let n=new Uf,r=e[1].slice(2);if(this.init(n,e[2]),n.source.end=this.getPosition(e[3]||e[2]),n.inline=!0,n.raws.begin="//",/^\s*$/.test(r))n.text="",n.raws.left=r,n.raws.right="";else{let s=r.match(/^(\s*)([^]*[^\s])(\s*)$/);[,n.raws.left,n.text,n.raws.right]=s}}mixin(e){let[n]=e,r=n[1].slice(0,1),s=e.findIndex(c=>c[0]==="brackets"),i=e.findIndex(c=>c[0]==="("),o="";if((s<0||s>3)&&i>0){let c=e.reduce((w,v,N)=>v[0]===")"?N:w),p=e.slice(i,c+i).map(w=>w[1]).join(""),[l]=e.slice(i),g=[l[2],l[3]],[x]=e.slice(c,c+1),h=[x[2],x[3]],d=["brackets",p].concat(g,h),m=e.slice(0,i),b=e.slice(c+1);e=m,e.push(d),e=e.concat(b)}let a=[];for(let c of e)if((c[1]==="!"||a.length)&&a.push(c),c[1]==="important")break;if(a.length){let[c]=a,f=e.indexOf(c),p=a[a.length-1],l=[c[2],c[3]],g=[p[4],p[5]],h=["word",a.map(d=>d[1]).join("")].concat(l,g);e.splice(f,a.length,h)}let u=e.findIndex(c=>Kf.test(c[1]));u>0&&([,o]=e[u],e.splice(u,1));for(let c of e.reverse())this.tokenizer.back(c);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=r,o&&(this.lastNode.important=!0,this.lastNode.raws.important=o)}other(e){zf.bind(this)(e)||super.other(e)}rule(e){let n=e[e.length-1],r=e[e.length-2];if(r[0]==="at-word"&&n[0]==="{"&&(this.tokenizer.back(n),zo.bind(this)(r))){let i=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([i]);for(let o of e.reverse())this.tokenizer.back(o);return}super.rule(e),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(e){let[n]=e;if(e[0][1]==="each"&&e[1][0]==="("){this.each(e);return}if(Vf(n)){this.mixin(e);return}super.unknownWord(e)}}});var Ko=y((Gx,Go)=>{var Hf=Yt();Go.exports=class extends Hf{atrule(e,n){if(!e.mixin&&!e.variable&&!e.function){super.atrule(e,n);return}let s=`${e.function?"":e.raws.identifier||"@"}${e.name}`,i=e.params?this.rawValue(e,"params"):"",o=e.raws.important||"";if(e.variable&&(i=e.value),typeof e.raws.afterName<"u"?s+=e.raws.afterName:i&&(s+=" "),e.nodes)this.block(e,s+i+o);else{let a=(e.raws.between||"")+o+(n?";":"");this.builder(s+i+a,e)}}comment(e){if(e.inline){let n=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder(`//${n}${e.text}${r}`,e)}else super.comment(e)}}});var Ho=y((Kx,In)=>{var Qf=qe(),jf=Yo(),Jf=Ko();In.exports={parse(t,e){let n=new Qf(t,e),r=new jf(n);return r.parse(),r.root.walk(s=>{let i=n.css.lastIndexOf(s.source.input.css);if(i===0)return;if(i+s.source.input.css.length!==n.css.length)throw new Error("Invalid state detected in postcss-less");let o=i+s.source.start.offset,a=n.fromOffset(i+s.source.start.offset);if(s.source.start={offset:o,line:a.line,column:a.col},s.source.end){let u=i+s.source.end.offset,c=n.fromOffset(i+s.source.end.offset);s.source.end={offset:u,line:c.line,column:c.col}}}),r.root},stringify(t,e){new Jf(e).stringify(t)},nodeToString(t){let e="";return In.exports.stringify(t,n=>{e+=n}),e}}});var qn=y((Hx,Qo)=>{Qo.exports=class{generate(){}}});var or=y((jx,Xo)=>{"use strict";var Xf=se(),jo,Jo,ye=class extends Xf{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new jo(new Jo,this,e).stringify()}};ye.registerLazyResult=t=>{jo=t};ye.registerProcessor=t=>{Jo=t};Xo.exports=ye;ye.default=ye});var Dn=y((Jx,ea)=>{"use strict";var Zo={};ea.exports=function(e){Zo[e]||(Zo[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var Ln=y((Xx,ta)=>{"use strict";var mt=class{constructor(e,n={}){if(this.type="warning",this.text=e,n.node&&n.node.source){let r=n.node.rangeBy(n);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in n)this[r]=n[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};ta.exports=mt;mt.default=mt});var ar=y((Zx,ra)=>{"use strict";var Zf=Ln(),yt=class{constructor(e,n,r){this.processor=e,this.messages=[],this.root=n,this.opts=r,this.css=void 0,this.map=void 0}get content(){return this.css}toString(){return this.css}warn(e,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let r=new Zf(e,n);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}};ra.exports=yt;yt.default=yt});var Fn=y((tb,oa)=>{"use strict";var{isClean:K,my:ep}=zt(),tp=qn(),rp=ot(),np=se(),sp=or(),eb=Dn(),na=ar(),ip=dt(),op=Pe(),ap={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},up={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},lp={Once:!0,postcssPlugin:!0,prepare:!0},De=0;function gt(t){return typeof t=="object"&&typeof t.then=="function"}function ia(t){let e=!1,n=ap[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[n,n+"-"+e,De,n+"Exit",n+"Exit-"+e]:e?[n,n+"-"+e,n+"Exit",n+"Exit-"+e]:t.append?[n,De,n+"Exit"]:[n,n+"Exit"]}function sa(t){let e;return t.type==="document"?e=["Document",De,"DocumentExit"]:t.type==="root"?e=["Root",De,"RootExit"]:e=ia(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function Mn(t){return t[K]=!1,t.nodes&&t.nodes.forEach(e=>Mn(e)),t}var Bn={},oe=class t{constructor(e,n,r){this.stringified=!1,this.processed=!1;let s;if(typeof n=="object"&&n!==null&&(n.type==="root"||n.type==="document"))s=Mn(n);else if(n instanceof t||n instanceof na)s=Mn(n.root),n.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{let i=ip;r.syntax&&(i=r.syntax.parse),r.parser&&(i=r.parser),i.parse&&(i=i.parse);try{s=i(n,r)}catch(o){this.processed=!0,this.error=o}s&&!s[ep]&&np.rebuild(s)}this.result=new na(e,s,r),this.helpers={...Bn,postcss:Bn,result:this.result},this.plugins=this.processor.plugins.map(i=>typeof i=="object"&&i.prepare?{...i,...i.prepare(this.result)}:i)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}get content(){return this.stringify().content}get css(){return this.stringify().css}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,n){let r=this.result.lastPlugin;try{n&&n.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(s){console&&console.error&&console.error(s)}return e}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}prepareVisitors(){this.listeners={};let e=(n,r,s)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([n,s])};for(let n of this.plugins)if(typeof n=="object")for(let r in n){if(!up[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${n.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!lp[r])if(typeof n[r]=="object")for(let s in n[r])s==="*"?e(n,r,n[r][s]):e(n,r+"-"+s.toLowerCase(),n[r][s]);else typeof n[r]=="function"&&e(n,r,n[r])}this.hasListener=Object.keys(this.listeners).length>0}get processor(){return this.result.processor}get root(){return this.sync().root}async runAsync(){this.plugin=0;for(let e=0;e0;){let r=this.visitTick(n);if(gt(r))try{await r}catch(s){let i=n[n.length-1].node;throw this.handleError(s,i)}}}if(this.listeners.OnceExit)for(let[n,r]of this.listeners.OnceExit){this.result.lastPlugin=n;try{if(e.type==="document"){let s=e.nodes.map(i=>r(i,this.helpers));await Promise.all(s)}else await r(e,this.helpers)}catch(s){throw this.handleError(s)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let n=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return gt(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(n){throw this.handleError(n)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,n=rp;e.syntax&&(n=e.syntax.stringify),e.stringifier&&(n=e.stringifier),n.stringify&&(n=n.stringify);let s=new tp(n,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[1],this.result}get[Symbol.toStringTag](){return"LazyResult"}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let n=this.runOnRoot(e);if(gt(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[K];)e[K]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let n of e.nodes)this.visitSync(this.listeners.OnceExit,n);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,n){return this.async().then(e,n)}toString(){return this.css}visitSync(e,n){for(let[r,s]of e){this.result.lastPlugin=r;let i;try{i=s(n,this.helpers)}catch(o){throw this.handleError(o,n.proxyOf)}if(n.type!=="root"&&n.type!=="document"&&!n.parent)return!0;if(gt(i))throw this.getAsyncError()}}visitTick(e){let n=e[e.length-1],{node:r,visitors:s}=n;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(s.length>0&&n.visitorIndex{s[K]||this.walkSync(s)});else{let s=this.listeners[r];if(s&&this.visitSync(s,e.toProxy()))return}}warnings(){return this.sync().warnings()}};oe.registerPostcss=t=>{Bn=t};oa.exports=oe;oe.default=oe;op.registerLazyResult(oe);sp.registerLazyResult(oe)});var ua=y((nb,aa)=>{"use strict";var cp=qn(),fp=ot(),rb=Dn(),pp=dt(),hp=ar(),wt=class{constructor(e,n,r){n=n.toString(),this.stringified=!1,this._processor=e,this._css=n,this._opts=r,this._map=void 0;let s,i=fp;this.result=new hp(this._processor,s,this._opts),this.result.css=n;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new cp(i,s,this._opts,n);if(a.isMap()){let[u,c]=a.generate();u&&(this.result.css=u),c&&(this.result.map=c)}}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}get content(){return this.result.css}get css(){return this.result.css}finally(e){return this.async().then(e,e)}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,n=pp;try{e=n(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}sync(){if(this.error)throw this.error;return this.result}then(e,n){return this.async().then(e,n)}toString(){return this._css}warnings(){return[]}};aa.exports=wt;wt.default=wt});var ca=y((sb,la)=>{"use strict";var dp=ua(),mp=Fn(),yp=or(),gp=Pe(),ge=class{constructor(e=[]){this.version="8.4.28",this.plugins=this.normalize(e)}normalize(e){let n=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))n=n.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)n.push(r);else if(typeof r=="function")n.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return n}process(e,n={}){return this.plugins.length===0&&typeof n.parser>"u"&&typeof n.stringifier>"u"&&typeof n.syntax>"u"?new dp(this,e,n):new mp(this,e,n)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};la.exports=ge;ge.default=ge;gp.registerProcessor(ge);yp.registerProcessor(ge)});var pa=y((ib,fa)=>{"use strict";var wp=ct(),vp=Cn(),xp=Ae(),bp=tr(),kp=qe(),_p=Pe(),Tp=rr();function vt(t,e){if(Array.isArray(t))return t.map(s=>vt(s));let{inputs:n,...r}=t;if(n){e=[];for(let s of n){let i={...s,__proto__:kp.prototype};i.map&&(i.map={...i.map,__proto__:vp.prototype}),e.push(i)}}if(r.nodes&&(r.nodes=t.nodes.map(s=>vt(s,e))),r.source){let{inputId:s,...i}=r.source;r.source=i,s!=null&&(r.source.input=e[s])}if(r.type==="root")return new _p(r);if(r.type==="decl")return new wp(r);if(r.type==="rule")return new Tp(r);if(r.type==="comment")return new xp(r);if(r.type==="atrule")return new bp(r);throw new Error("Unknown node type: "+t.type)}fa.exports=vt;vt.default=vt});var ur=y((ob,va)=>{"use strict";var Ep=Vt(),ha=ct(),Sp=Fn(),Cp=se(),$n=ca(),Op=ot(),Ap=pa(),da=or(),Np=Ln(),ma=Ae(),ya=tr(),Pp=ar(),Rp=qe(),Ip=dt(),qp=En(),ga=rr(),wa=Pe(),Dp=ut();function k(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new $n(t)}k.plugin=function(e,n){let r=!1;function s(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide: +https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let a=n(...o);return a.postcssPlugin=e,a.postcssVersion=new $n().version,a}let i;return Object.defineProperty(s,"postcss",{get(){return i||(i=s()),i}}),s.process=function(o,a,u){return k([s(u)]).process(o,a)},s};k.stringify=Op;k.parse=Ip;k.fromJSON=Ap;k.list=qp;k.comment=t=>new ma(t);k.atRule=t=>new ya(t);k.decl=t=>new ha(t);k.rule=t=>new ga(t);k.root=t=>new wa(t);k.document=t=>new da(t);k.CssSyntaxError=Ep;k.Declaration=ha;k.Container=Cp;k.Processor=$n;k.Document=da;k.Comment=ma;k.Warning=Np;k.AtRule=ya;k.Result=Pp;k.Input=Rp;k.Rule=ga;k.Root=wa;k.Node=Dp;Sp.registerPostcss(k);va.exports=k;k.default=k});var ba=y((ab,xa)=>{var{Container:Lp}=ur(),Un=class extends Lp{constructor(e){super(e),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};xa.exports=Un});var Ca=y((ub,Sa)=>{"use strict";var Wn="'".charCodeAt(0),zn='"'.charCodeAt(0),xt="\\".charCodeAt(0),lr="/".charCodeAt(0),Vn=` +`.charCodeAt(0),cr=" ".charCodeAt(0),Yn="\f".charCodeAt(0),Gn=" ".charCodeAt(0),Kn="\r".charCodeAt(0),Mp="[".charCodeAt(0),Bp="]".charCodeAt(0),ka="(".charCodeAt(0),_a=")".charCodeAt(0),fr="{".charCodeAt(0),Ta="}".charCodeAt(0),Fp=";".charCodeAt(0),$p="*".charCodeAt(0),Up=":".charCodeAt(0),Wp="@".charCodeAt(0),zp=",".charCodeAt(0),Hn="#".charCodeAt(0),pr=/[\t\n\f\r "#'()/;[\\\]{}]/g,hr=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Vp=/.[\n"'(/\\]/,Ea=/[\da-f]/i,dr=/[\n\f\r]/g;Sa.exports=function(e,n={}){let r=e.css.valueOf(),s=n.ignoreErrors,i,o,a,u,c,f,p,l,g,x=r.length,h=0,d=[],m=[],b;function w(){return h}function v(S){throw e.error("Unclosed "+S,h)}function N(){return m.length===0&&h>=x}function $(){let S=1,C=!1,O=!1;for(;S>0;)o+=1,r.length<=o&&v("interpolation"),i=r.charCodeAt(o),l=r.charCodeAt(o+1),C?!O&&i===C?(C=!1,O=!1):i===xt?O=!O:O&&(O=!1):i===Wn||i===zn?C=i:i===Ta?S-=1:i===Hn&&l===fr&&(S+=1)}function H(S){if(m.length)return m.pop();if(h>=x)return;let C=S?S.ignoreUnclosed:!1;switch(i=r.charCodeAt(h),i){case Vn:case cr:case Gn:case Kn:case Yn:{o=h;do o+=1,i=r.charCodeAt(o);while(i===cr||i===Vn||i===Gn||i===Kn||i===Yn);g=["space",r.slice(h,o)],h=o-1;break}case Mp:case Bp:case fr:case Ta:case Up:case Fp:case _a:{let O=String.fromCharCode(i);g=[O,O,h];break}case zp:{g=["word",",",h,h+1];break}case ka:{if(p=d.length?d.pop()[1]:"",l=r.charCodeAt(h+1),p==="url"&&l!==Wn&&l!==zn){for(b=1,f=!1,o=h+1;o<=r.length-1;){if(l=r.charCodeAt(o),l===xt)f=!f;else if(l===ka)b+=1;else if(l===_a&&(b-=1,b===0))break;o+=1}u=r.slice(h,o+1),g=["brackets",u,h,o],h=o}else o=r.indexOf(")",h+1),u=r.slice(h,o+1),o===-1||Vp.test(u)?g=["(","(",h]:(g=["brackets",u,h,o],h=o);break}case Wn:case zn:{for(a=i,o=h,f=!1;o{var{Comment:Yp}=ur(),Gp=nr(),Kp=ba(),Hp=Ca(),Qn=class extends Gp{atrule(e){let n=e[1],r=e;for(;!this.tokenizer.endOfFile();){let s=this.tokenizer.nextToken();if(s[0]==="word"&&s[2]===r[3]+1)n+=s[1],r=s;else{this.tokenizer.back(s);break}}super.atrule(["at-word",n,e[2],r[3]])}comment(e){if(e[4]==="inline"){let n=new Yp;this.init(n,e[2]),n.raws.inline=!0;let r=this.input.fromOffset(e[3]);n.source.end={column:r.col,line:r.line,offset:e[3]};let s=e[1].slice(2);if(/^\s*$/.test(s))n.text="",n.raws.left=s,n.raws.right="";else{let i=s.match(/^(\s*)([^]*\S)(\s*)$/),o=i[2].replace(/(\*\/|\/\*)/g,"*//*");n.text=o,n.raws.left=i[1],n.raws.right=i[3],n.raws.text=i[2]}}else super.comment(e)}createTokenizer(){this.tokenizer=Hp(this.input)}raw(e,n,r,s){if(super.raw(e,n,r,s),e.raws[n]){let i=e.raws[n].raw;e.raws[n].raw=r.reduce((o,a)=>{if(a[0]==="comment"&&a[4]==="inline"){let u=a[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return o+"/*"+u+"*/"}else return o+a[1]},""),i!==e.raws[n].raw&&(e.raws[n].scss=i)}}rule(e){let n=!1,r=0,s="";for(let i of e)if(n)i[0]!=="comment"&&i[0]!=="{"&&(s+=i[1]);else{if(i[0]==="space"&&i[1].includes(` +`))break;i[0]==="("?r+=1:i[0]===")"?r-=1:r===0&&i[0]===":"&&(n=!0)}if(!n||s.trim()===""||/^[#:A-Za-z-]/.test(s))super.rule(e);else{e.pop();let i=new Kp;this.init(i,e[0][2]);let o;for(let u=e.length-1;u>=0;u--)if(e[u][0]!=="space"){o=e[u];break}if(o[3]){let u=this.input.fromOffset(o[3]);i.source.end={column:u.col,line:u.line,offset:o[3]}}else{let u=this.input.fromOffset(o[2]);i.source.end={column:u.col,line:u.line,offset:o[2]}}for(;e[0][0]!=="word";)i.raws.before+=e.shift()[1];if(e[0][2]){let u=this.input.fromOffset(e[0][2]);i.source.start={column:u.col,line:u.line,offset:e[0][2]}}for(i.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let a;for(;e.length;)if(a=e.shift(),a[0]===":"){i.raws.between+=a[1];break}else i.raws.between+=a[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1)),i.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(let u=e.length-1;u>0;u--){if(a=e[u],a[1]==="!important"){i.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(i.raws.important=c);break}else if(a[1]==="important"){let c=e.slice(0),f="";for(let p=u;p>0;p--){let l=c[p][0];if(f.trim().indexOf("!")===0&&l!=="space")break;f=c.pop()[1]+f}f.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=f,e=c)}if(a[0]!=="space"&&a[0]!=="comment")break}this.raw(i,"value",e),i.value.includes(":")&&this.checkMissedSemicolon(e),this.current=i}}};Oa.exports=Qn});var Pa=y((cb,Na)=>{var{Input:Qp}=ur(),jp=Aa();Na.exports=function(e,n){let r=new Qp(e,n),s=new jp(r);return s.parse(),s.root}});var V=y((mb,Da)=>{"use strict";var jn=function(t,e){let n=new t.constructor;for(let r in t){if(!t.hasOwnProperty(r))continue;let s=t[r],i=typeof s;r==="parent"&&i==="object"?e&&(n[r]=e):r==="source"?n[r]=s:s instanceof Array?n[r]=s.map(o=>jn(o,n)):r!=="before"&&r!=="after"&&r!=="between"&&r!=="semicolon"&&(i==="object"&&s!==null&&(s=jn(s)),n[r]=s)}return n};Da.exports=class{constructor(e){e=e||{},this.raws={before:"",after:""};for(let n in e)this[n]=e[n]}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return[this.raws.before,String(this.value),this.raws.after].join("")}clone(e){e=e||{};let n=jn(this);for(let r in e)n[r]=e[r];return n}cloneBefore(e){e=e||{};let n=this.clone(e);return this.parent.insertBefore(this,n),n}cloneAfter(e){e=e||{};let n=this.clone(e);return this.parent.insertAfter(this,n),n}replaceWith(){let e=Array.prototype.slice.call(arguments);if(this.parent){for(let n of e)this.parent.insertBefore(this,n);this.remove()}return this}moveTo(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.append(this),this}moveBefore(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertBefore(e,this),this}moveAfter(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertAfter(e,this),this}next(){let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){let e=this.parent.index(this);return this.parent.nodes[e-1]}toJSON(){let e={};for(let n in this){if(!this.hasOwnProperty(n)||n==="parent")continue;let r=this[n];r instanceof Array?e[n]=r.map(s=>typeof s=="object"&&s.toJSON?s.toJSON():s):typeof r=="object"&&r.toJSON?e[n]=r.toJSON():e[n]=r}return e}root(){let e=this;for(;e.parent;)e=e.parent;return e}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}positionInside(e){let n=this.toString(),r=this.source.start.column,s=this.source.start.line;for(let i=0;i{"use strict";var th=V(),Le=class extends th{constructor(e){super(e),this.nodes||(this.nodes=[])}push(e){return e.parent=this,this.nodes.push(e),this}each(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let n=this.lastEach,r,s;if(this.indexes[n]=0,!!this.nodes){for(;this.indexes[n]{let s=e(n,r);return s!==!1&&n.walk&&(s=n.walk(e)),s})}walkType(e,n){if(!e||!n)throw new Error("Parameters {type} and {callback} are required.");let r=typeof e=="function";return this.walk((s,i)=>{if(r&&s instanceof e||!r&&s.type===e)return n.call(this,s,i)})}append(e){return e.parent=this,this.nodes.push(e),this}prepend(e){return e.parent=this,this.nodes.unshift(e),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let n of this.nodes)n.cleanRaws(e)}insertAfter(e,n){let r=this.index(e),s;this.nodes.splice(r+1,0,n);for(let i in this.indexes)s=this.indexes[i],r<=s&&(this.indexes[i]=s+this.nodes.length);return this}insertBefore(e,n){let r=this.index(e),s;this.nodes.splice(r,0,n);for(let i in this.indexes)s=this.indexes[i],r<=s&&(this.indexes[i]=s+this.nodes.length);return this}removeChild(e){e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1);let n;for(let r in this.indexes)n=this.indexes[r],n>=e&&(this.indexes[r]=n-1);return this}removeAll(){for(let e of this.nodes)e.parent=void 0;return this.nodes=[],this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return typeof e=="number"?e:this.nodes.indexOf(e)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let e=this.nodes.map(String).join("");return this.value&&(e=this.value+e),this.raws.before&&(e=this.raws.before+e),this.raws.after&&(e+=this.raws.after),e}};Le.registerWalker=t=>{let e="walk"+t.name;e.lastIndexOf("s")!==e.length-1&&(e+="s"),!Le.prototype[e]&&(Le.prototype[e]=function(n){return this.walkType(t,n)})};La.exports=Le});var Ba=y((wb,Ma)=>{"use strict";var rh=B();Ma.exports=class extends rh{constructor(e){super(e),this.type="root"}}});var $a=y((xb,Fa)=>{"use strict";var nh=B();Fa.exports=class extends nh{constructor(e){super(e),this.type="value",this.unbalanced=0}}});var za=y((bb,Wa)=>{"use strict";var Ua=B(),mr=class extends Ua{constructor(e){super(e),this.type="atword"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};Ua.registerWalker(mr);Wa.exports=mr});var Ya=y((kb,Va)=>{"use strict";var sh=B(),ih=V(),yr=class extends ih{constructor(e){super(e),this.type="colon"}};sh.registerWalker(yr);Va.exports=yr});var Ka=y((_b,Ga)=>{"use strict";var oh=B(),ah=V(),gr=class extends ah{constructor(e){super(e),this.type="comma"}};oh.registerWalker(gr);Ga.exports=gr});var Qa=y((Tb,Ha)=>{"use strict";var uh=B(),lh=V(),wr=class extends lh{constructor(e){super(e),this.type="comment",this.inline=Object(e).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};uh.registerWalker(wr);Ha.exports=wr});var Xa=y((Eb,Ja)=>{"use strict";var ja=B(),vr=class extends ja{constructor(e){super(e),this.type="func",this.unbalanced=-1}};ja.registerWalker(vr);Ja.exports=vr});var eu=y((Sb,Za)=>{"use strict";var ch=B(),fh=V(),xr=class extends fh{constructor(e){super(e),this.type="number",this.unit=Object(e).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};ch.registerWalker(xr);Za.exports=xr});var ru=y((Cb,tu)=>{"use strict";var ph=B(),hh=V(),br=class extends hh{constructor(e){super(e),this.type="operator"}};ph.registerWalker(br);tu.exports=br});var su=y((Ob,nu)=>{"use strict";var dh=B(),mh=V(),kr=class extends mh{constructor(e){super(e),this.type="paren",this.parenType=""}};dh.registerWalker(kr);nu.exports=kr});var ou=y((Ab,iu)=>{"use strict";var yh=B(),gh=V(),_r=class extends gh{constructor(e){super(e),this.type="string"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,e,this.value+"",e,this.raws.after].join("")}};yh.registerWalker(_r);iu.exports=_r});var uu=y((Nb,au)=>{"use strict";var wh=B(),vh=V(),Tr=class extends vh{constructor(e){super(e),this.type="word"}};wh.registerWalker(Tr);au.exports=Tr});var cu=y((Pb,lu)=>{"use strict";var xh=B(),bh=V(),Er=class extends bh{constructor(e){super(e),this.type="unicode-range"}};xh.registerWalker(Er);lu.exports=Er});var pu=y((Rb,fu)=>{"use strict";var Jn=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while tokzenizing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};fu.exports=Jn});var vu=y((Ib,wu)=>{"use strict";var kh="{".charCodeAt(0),_h="}".charCodeAt(0),Th="(".charCodeAt(0),Eh=")".charCodeAt(0),hu="'".charCodeAt(0),Sh='"'.charCodeAt(0),du="\\".charCodeAt(0),Sr="/".charCodeAt(0),Ch=".".charCodeAt(0),Oh=",".charCodeAt(0),Ah=":".charCodeAt(0),Xn="*".charCodeAt(0),Cr="-".charCodeAt(0),Zn="+".charCodeAt(0),Nh="#".charCodeAt(0),bt=` +`.charCodeAt(0),es=" ".charCodeAt(0),ts="\f".charCodeAt(0),rs=" ".charCodeAt(0),ns="\r".charCodeAt(0),Ph="@".charCodeAt(0),Rh="e".charCodeAt(0),Ih="E".charCodeAt(0),mu="0".charCodeAt(0),yu="9".charCodeAt(0),qh="u".charCodeAt(0),Dh="U".charCodeAt(0),Or=/[ \n\t\r\{\(\)'"\\;,/]/g,Lh=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,Me=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,Mh=/^[a-z0-9]/i,Bh=/^[a-f0-9?\-]/i,gu=pu();wu.exports=function(e,n){n=n||{};let r=[],s=e.valueOf(),i=s.length,o=-1,a=1,u=0,c=0,f=null,p,l,g,x,h,d,m,b,w,v,N,$;function H(S){let C=`Unclosed ${S} at line: ${a}, column: ${u-o}, token: ${u}`;throw new gu(C)}function U(){let S=`Syntax error at line: ${a}, column: ${u-o}, token: ${u}`;throw new gu(S)}for(;u0&&r[r.length-1][0]==="word"&&r[r.length-1][1]==="url",r.push(["(","(",a,u-o,a,l-o,u]);break;case Eh:c--,f=f&&c>0,r.push([")",")",a,u-o,a,l-o,u]);break;case hu:case Sh:g=p===hu?"'":'"',l=u;do for(v=!1,l=s.indexOf(g,l+1),l===-1&&H("quote",g),N=l;s.charCodeAt(N-1)===du;)N-=1,v=!v;while(v);r.push(["string",s.slice(u,l+1),a,u-o,a,l-o,u]),u=l;break;case Ph:Or.lastIndex=u+1,Or.test(s),Or.lastIndex===0?l=s.length-1:l=Or.lastIndex-2,r.push(["atword",s.slice(u,l+1),a,u-o,a,l-o,u]),u=l;break;case du:l=u,p=s.charCodeAt(l+1),m&&p!==Sr&&p!==es&&p!==bt&&p!==rs&&p!==ns&&p!==ts&&(l+=1),r.push(["word",s.slice(u,l+1),a,u-o,a,l-o,u]),u=l;break;case Zn:case Cr:case Xn:l=u+1,$=s.slice(u+1,l+1);let S=s.slice(u-1,u);if(p===Cr&&$.charCodeAt(0)===Cr){l++,r.push(["word",s.slice(u,l),a,u-o,a,l-o,u]),u=l-1;break}r.push(["operator",s.slice(u,l),a,u-o,a,l-o,u]),u=l-1;break;default:if(p===Sr&&(s.charCodeAt(u+1)===Xn||n.loose&&!f&&s.charCodeAt(u+1)===Sr)){if(s.charCodeAt(u+1)===Xn)l=s.indexOf("*/",u+2)+1,l===0&&H("comment","*/");else{let O=s.indexOf(` `,u+2);l=O!==-1?O-1:i}d=s.slice(u,l+1),x=d.split(` -`),h=x.length-1,h>0?(b=a+h,w=l-x[h].length):(b=a,w=o),r.push(["comment",d,a,u-o,b,l-w,u]),o=w,a=b,u=l}else if(p===Nh&&!Mh.test(s.slice(u+1,u+2)))l=u+1,r.push(["#",s.slice(u,l),a,u-o,a,l-o,u]),u=l-1;else if((p===qh||p===Dh)&&s.charCodeAt(u+1)===es){l=u+2;do l+=1,p=s.charCodeAt(l);while(l=mu&&p<=yu&&(C=Me),C.lastIndex=u+1,C.test(s),C.lastIndex===0?l=s.length-1:l=C.lastIndex-2,C===Me||p===Ch){let O=s.charCodeAt(l),ve=s.charCodeAt(l+1),Cs=s.charCodeAt(l+2);(O===Rh||O===Ih)&&(ve===Cr||ve===es)&&Cs>=mu&&Cs<=yu&&(Me.lastIndex=l+2,Me.test(s),Me.lastIndex===0?l=s.length-1:l=Me.lastIndex-2)}r.push(["word",s.slice(u,l+1),a,u-o,a,l-o,u]),u=l}break}u++}return r}});var is=y((qb,xu)=>{xu.exports=function(e,n){if(n=typeof n=="number"?n:1/0,!n)return Array.isArray(e)?e.map(function(s){return s}):e;return r(e,1);function r(s,i){return s.reduce(function(o,a){return Array.isArray(a)&&i{bu.exports=function(t,e){for(var n=-1,r=[];(n=t.indexOf(e,n+1))!==-1;)r.push(n);return r}});var as=y((Lb,ku)=>{"use strict";function Fh(t,e){for(var n=1,r=t.length,s=t[0],i=t[0],o=1;o{"use strict";var us=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};_u.exports=us});var Ou=y((Fb,Cu)=>{"use strict";var Wh=Ba(),zh=$a(),Vh=za(),Yh=Ya(),Gh=Ka(),Kh=Qa(),Hh=Xa(),Qh=eu(),jh=ru(),Eu=su(),Jh=ou(),Su=uu(),Xh=cu(),Zh=vu(),ed=is(),td=os(),rd=as(),nd=Tu();function sd(t){return t.sort((e,n)=>e-n)}Cu.exports=class{constructor(e,n){let r={loose:!1};this.cache=[],this.input=e,this.options=Object.assign({},r,n),this.position=0,this.unbalanced=0,this.root=new Wh;let s=new zh;this.root.append(s),this.current=s,this.tokens=Zh(e,this.options)}parse(){return this.loop()}colon(){let e=this.currToken;this.newNode(new Yh({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comma(){let e=this.currToken;this.newNode(new Gh({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comment(){let e=!1,n=this.currToken[1].replace(/\/\*|\*\//g,""),r;this.options.loose&&n.startsWith("//")&&(n=n.substring(2),e=!0),r=new Kh({value:n,inline:e,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(r),this.position++}error(e,n){throw new nd(e+` at line: ${n[2]}, column ${n[3]}`)}loop(){for(;this.position0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.currToken):this.nextToken[0]!=="space"&&this.nextToken[0]!=="word"?this.error("Syntax Error",this.currToken):this.nextToken[0]==="word"&&this.current.last.type!=="operator"&&this.current.last.value!=="("&&this.error("Syntax Error",this.currToken):(this.nextToken[0]==="space"||this.nextToken[0]==="operator"||this.prevToken[0]==="operator")&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type==="operator")&&this.nextToken[0]==="word")return this.word()}else if(this.nextToken[0]==="word")return this.word()}return n=new jh({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(n)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case"operator":this.operator();break;case"string":this.string();break;case"unicoderange":this.unicodeRange();break;default:this.word();break}}parenOpen(){let e=1,n=this.position+1,r=this.currToken,s;for(;n=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error("Expected opening parenthesis",e),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let e=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.raws.after+=e[1],this.position++):(this.spaces=e[1],this.position++)}unicodeRange(){let e=this.currToken;this.newNode(new Xh({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}splitWord(){let e=this.nextToken,n=this.currToken[1],r=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,s=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,i,o;if(!s.test(n))for(;e&&e[0]==="word";){this.position++;let a=this.currToken[1];n+=a,e=this.nextToken}i=td(n,"@"),o=sd(rd(ed([[0],i]))),o.forEach((a,u)=>{let c=o[u+1]||n.length,f=n.slice(a,c),p;if(~i.indexOf(a))p=new Vh({value:f.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+a},end:{line:this.currToken[4],column:this.currToken[3]+(c-1)}},sourceIndex:this.currToken[6]+o[u]});else if(r.test(this.currToken[1])){let l=f.replace(r,"");p=new Qh({value:f.replace(l,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+a},end:{line:this.currToken[4],column:this.currToken[3]+(c-1)}},sourceIndex:this.currToken[6]+o[u],unit:l})}else p=new(e&&e[0]==="("?Hh:Su)({value:f,source:{start:{line:this.currToken[2],column:this.currToken[3]+a},end:{line:this.currToken[4],column:this.currToken[3]+(c-1)}},sourceIndex:this.currToken[6]+o[u]}),p.type==="word"?(p.isHex=/^#(.+)/.test(f),p.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(f)):this.cache.push(this.current);this.newNode(p)}),this.position++}string(){let e=this.currToken,n=this.currToken[1],r=/^(\"|\')/,s=r.test(n),i="",o;s&&(i=n.match(r)[0],n=n.slice(1,n.length-1)),o=new Jh({value:n,source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6],quoted:s}),o.raws.quote=i,this.newNode(o),this.position++}word(){return this.splitWord()}newNode(e){return this.spaces&&(e.raws.before+=this.spaces,this.spaces=""),this.current.append(e)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}});var we=y((Nr,qu)=>{"use strict";Nr.__esModule=!0;var Iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function cd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var fd=function t(e,n){if((typeof e>"u"?"undefined":Iu(e))!=="object")return e;var r=new e.constructor;for(var s in e)if(e.hasOwnProperty(s)){var i=e[s],o=typeof i>"u"?"undefined":Iu(i);s==="parent"&&o==="object"?n&&(r[s]=n):i instanceof Array?r[s]=i.map(function(a){return t(a,r)}):r[s]=t(i,r)}return r},pd=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};cd(this,t);for(var n in e)this[n]=e[n];var r=e.spaces;r=r===void 0?{}:r;var s=r.before,i=s===void 0?"":s,o=r.after,a=o===void 0?"":o;this.spaces={before:i,after:a}}return t.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.prototype.replaceWith=function(){if(this.parent){for(var n in arguments)this.parent.insertBefore(this,arguments[n]);this.remove()}return this},t.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},t.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},t.prototype.clone=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=fd(this);for(var s in n)r[s]=n[s];return r},t.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join("")},t}();Nr.default=pd;qu.exports=Nr.default});var L=y(F=>{"use strict";F.__esModule=!0;var Kb=F.TAG="tag",Hb=F.STRING="string",Qb=F.SELECTOR="selector",jb=F.ROOT="root",Jb=F.PSEUDO="pseudo",Xb=F.NESTING="nesting",Zb=F.ID="id",ek=F.COMMENT="comment",tk=F.COMBINATOR="combinator",rk=F.CLASS="class",nk=F.ATTRIBUTE="attribute",sk=F.UNIVERSAL="universal"});var Rr=y((Pr,Du)=>{"use strict";Pr.__esModule=!0;var hd=function(){function t(e,n){for(var r=0;r=r&&(this.indexes[i]=s-1);return this},e.prototype.removeAll=function(){for(var i=this.nodes,r=Array.isArray(i),s=0,i=r?i:i[Symbol.iterator]();;){var o;if(r){if(s>=i.length)break;o=i[s++]}else{if(s=i.next(),s.done)break;o=s.value}var a=o;a.parent=void 0}return this.nodes=[],this},e.prototype.empty=function(){return this.removeAll()},e.prototype.insertAfter=function(r,s){var i=this.index(r);this.nodes.splice(i+1,0,s);var o=void 0;for(var a in this.indexes)o=this.indexes[a],i<=o&&(this.indexes[a]=o+this.nodes.length);return this},e.prototype.insertBefore=function(r,s){var i=this.index(r);this.nodes.splice(i,0,s);var o=void 0;for(var a in this.indexes)o=this.indexes[a],i<=o&&(this.indexes[a]=o+this.nodes.length);return this},e.prototype.each=function(r){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var s=this.lastEach;if(this.indexes[s]=0,!!this.length){for(var i=void 0,o=void 0;this.indexes[s]{"use strict";Ir.__esModule=!0;var _d=Rr(),Td=Sd(_d),Ed=L();function Sd(t){return t&&t.__esModule?t:{default:t}}function Cd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Od(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Ad(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Nd=function(t){Ad(e,t);function e(n){Cd(this,e);var r=Od(this,t.call(this,n));return r.type=Ed.ROOT,r}return e.prototype.toString=function(){var r=this.reduce(function(s,i){var o=String(i);return o?s+o+",":""},"").slice(0,-1);return this.trailingComma?r+",":r},e}(Td.default);Ir.default=Nd;Lu.exports=Ir.default});var Fu=y((qr,Bu)=>{"use strict";qr.__esModule=!0;var Pd=Rr(),Rd=qd(Pd),Id=L();function qd(t){return t&&t.__esModule?t:{default:t}}function Dd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ld(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Md(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Bd=function(t){Md(e,t);function e(n){Dd(this,e);var r=Ld(this,t.call(this,n));return r.type=Id.SELECTOR,r}return e}(Rd.default);qr.default=Bd;Bu.exports=qr.default});var Be=y((Dr,$u)=>{"use strict";Dr.__esModule=!0;var Fd=function(){function t(e,n){for(var r=0;r{"use strict";Lr.__esModule=!0;var Kd=Be(),Hd=jd(Kd),Qd=L();function jd(t){return t&&t.__esModule?t:{default:t}}function Jd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Xd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Zd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var em=function(t){Zd(e,t);function e(n){Jd(this,e);var r=Xd(this,t.call(this,n));return r.type=Qd.CLASS,r}return e.prototype.toString=function(){return[this.spaces.before,this.ns,"."+this.value,this.spaces.after].join("")},e}(Hd.default);Lr.default=em;Uu.exports=Lr.default});var Vu=y((Mr,zu)=>{"use strict";Mr.__esModule=!0;var tm=we(),rm=sm(tm),nm=L();function sm(t){return t&&t.__esModule?t:{default:t}}function im(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function om(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function am(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var um=function(t){am(e,t);function e(n){im(this,e);var r=om(this,t.call(this,n));return r.type=nm.COMMENT,r}return e}(rm.default);Mr.default=um;zu.exports=Mr.default});var Gu=y((Br,Yu)=>{"use strict";Br.__esModule=!0;var lm=Be(),cm=pm(lm),fm=L();function pm(t){return t&&t.__esModule?t:{default:t}}function hm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dm(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function mm(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var ym=function(t){mm(e,t);function e(n){hm(this,e);var r=dm(this,t.call(this,n));return r.type=fm.ID,r}return e.prototype.toString=function(){return[this.spaces.before,this.ns,"#"+this.value,this.spaces.after].join("")},e}(cm.default);Br.default=ym;Yu.exports=Br.default});var Hu=y((Fr,Ku)=>{"use strict";Fr.__esModule=!0;var gm=Be(),wm=xm(gm),vm=L();function xm(t){return t&&t.__esModule?t:{default:t}}function bm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function km(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function _m(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Tm=function(t){_m(e,t);function e(n){bm(this,e);var r=km(this,t.call(this,n));return r.type=vm.TAG,r}return e}(wm.default);Fr.default=Tm;Ku.exports=Fr.default});var ju=y(($r,Qu)=>{"use strict";$r.__esModule=!0;var Em=we(),Sm=Om(Em),Cm=L();function Om(t){return t&&t.__esModule?t:{default:t}}function Am(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nm(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Pm(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Rm=function(t){Pm(e,t);function e(n){Am(this,e);var r=Nm(this,t.call(this,n));return r.type=Cm.STRING,r}return e}(Sm.default);$r.default=Rm;Qu.exports=$r.default});var Xu=y((Ur,Ju)=>{"use strict";Ur.__esModule=!0;var Im=Rr(),qm=Lm(Im),Dm=L();function Lm(t){return t&&t.__esModule?t:{default:t}}function Mm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bm(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Fm(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var $m=function(t){Fm(e,t);function e(n){Mm(this,e);var r=Bm(this,t.call(this,n));return r.type=Dm.PSEUDO,r}return e.prototype.toString=function(){var r=this.length?"("+this.map(String).join(",")+")":"";return[this.spaces.before,String(this.value),r,this.spaces.after].join("")},e}(qm.default);Ur.default=$m;Ju.exports=Ur.default});var el=y((Wr,Zu)=>{"use strict";Wr.__esModule=!0;var Um=Be(),Wm=Vm(Um),zm=L();function Vm(t){return t&&t.__esModule?t:{default:t}}function Ym(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Gm(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Km(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Hm=function(t){Km(e,t);function e(n){Ym(this,e);var r=Gm(this,t.call(this,n));return r.type=zm.ATTRIBUTE,r.raws={},r}return e.prototype.toString=function(){var r=[this.spaces.before,"[",this.ns,this.attribute];return this.operator&&r.push(this.operator),this.value&&r.push(this.value),this.raws.insensitive?r.push(this.raws.insensitive):this.insensitive&&r.push(" i"),r.push("]"),r.concat(this.spaces.after).join("")},e}(Wm.default);Wr.default=Hm;Zu.exports=Wr.default});var rl=y((zr,tl)=>{"use strict";zr.__esModule=!0;var Qm=Be(),jm=Xm(Qm),Jm=L();function Xm(t){return t&&t.__esModule?t:{default:t}}function Zm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ey(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function ty(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var ry=function(t){ty(e,t);function e(n){Zm(this,e);var r=ey(this,t.call(this,n));return r.type=Jm.UNIVERSAL,r.value="*",r}return e}(jm.default);zr.default=ry;tl.exports=zr.default});var sl=y((Vr,nl)=>{"use strict";Vr.__esModule=!0;var ny=we(),sy=oy(ny),iy=L();function oy(t){return t&&t.__esModule?t:{default:t}}function ay(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function uy(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function ly(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var cy=function(t){ly(e,t);function e(n){ay(this,e);var r=uy(this,t.call(this,n));return r.type=iy.COMBINATOR,r}return e}(sy.default);Vr.default=cy;nl.exports=Vr.default});var ol=y((Yr,il)=>{"use strict";Yr.__esModule=!0;var fy=we(),py=dy(fy),hy=L();function dy(t){return t&&t.__esModule?t:{default:t}}function my(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yy(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function gy(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var wy=function(t){gy(e,t);function e(n){my(this,e);var r=yy(this,t.call(this,n));return r.type=hy.NESTING,r.value="&",r}return e}(py.default);Yr.default=wy;il.exports=Yr.default});var ul=y((Gr,al)=>{"use strict";Gr.__esModule=!0;Gr.default=vy;function vy(t){return t.sort(function(e,n){return e-n})}al.exports=Gr.default});var gl=y((Qr,yl)=>{"use strict";Qr.__esModule=!0;Qr.default=Ny;var ll=39,xy=34,ls=92,cl=47,kt=10,cs=32,fs=12,ps=9,hs=13,fl=43,pl=62,hl=126,dl=124,by=44,ky=40,_y=41,Ty=91,Ey=93,Sy=59,ml=42,Cy=58,Oy=38,Ay=64,Kr=/[ \n\t\r\{\(\)'"\\;/]/g,Hr=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function Ny(t){for(var e=[],n=t.css.valueOf(),r=void 0,s=void 0,i=void 0,o=void 0,a=void 0,u=void 0,c=void 0,f=void 0,p=void 0,l=void 0,g=void 0,x=n.length,h=-1,d=1,m=0,b=function(v,N){if(t.safe)n+=N,s=n.length-1;else throw t.error("Unclosed "+v,d,m-h,m)};m0?(f=d+a,p=s-o[a].length):(f=d,p=h),e.push(["comment",u,d,m-h,f,s-p,m]),h=p,d=f,m=s):(Hr.lastIndex=m+1,Hr.test(n),Hr.lastIndex===0?s=n.length-1:s=Hr.lastIndex-2,e.push(["word",n.slice(m,s+1),d,m-h,d,s-h,m]),m=s);break}m++}return e}yl.exports=Qr.default});var xl=y((jr,vl)=>{"use strict";jr.__esModule=!0;var Py=function(){function t(e,n){for(var r=0;r1?(o[0]===""&&(o[0]=!0),a.attribute=this.parseValue(o[2]),a.namespace=this.parseNamespace(o[0])):a.attribute=this.parseValue(i[0]),r=new Zy.default(a),i[2]){var u=i[2].split(/(\s+i\s*?)$/),c=u[0].trim();r.value=this.lossy?c:u[0],u[1]&&(r.insensitive=!0,this.lossy||(r.raws.insensitive=u[1])),r.quoted=c[0]==="'"||c[0]==='"',r.raws.unquoted=r.quoted?c.slice(1,-1):c}this.newNode(r),this.position++},t.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var n=new ng.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position1&&n.nextToken&&n.nextToken[0]==="("&&n.error("Misplaced parenthesis.")})}else this.error('Unexpected "'+this.currToken[0]+'" found.')},t.prototype.space=function(){var n=this.currToken;this.position===0||this.prevToken[0]===","||this.prevToken[0]==="("?(this.spaces=this.parseSpace(n[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.spaces.after=this.parseSpace(n[1]),this.position++):this.combinator()},t.prototype.string=function(){var n=this.currToken;this.newNode(new Qy.default({value:this.currToken[1],source:{start:{line:n[2],column:n[3]},end:{line:n[4],column:n[5]}},sourceIndex:n[6]})),this.position++},t.prototype.universal=function(n){var r=this.nextToken;if(r&&r[1]==="|")return this.position++,this.namespace();this.newNode(new tg.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),n),this.position++},t.prototype.splitWord=function(n,r){for(var s=this,i=this.nextToken,o=this.currToken[1];i&&i[0]==="word";){this.position++;var a=this.currToken[1];if(o+=a,a.lastIndexOf("\\")===a.length-1){var u=this.nextToken;u&&u[0]==="space"&&(o+=this.parseSpace(u[1]," "),this.position++)}i=this.nextToken}var c=(0,ds.default)(o,"."),f=(0,ds.default)(o,"#"),p=(0,ds.default)(o,"#{");p.length&&(f=f.filter(function(g){return!~p.indexOf(g)}));var l=(0,ag.default)((0,Ly.default)((0,Iy.default)([[0],c,f])));l.forEach(function(g,x){var h=l[x+1]||o.length,d=o.slice(g,h);if(x===0&&r)return r.call(s,d,l.length);var m=void 0;~c.indexOf(g)?m=new Uy.default({value:d.slice(1),source:{start:{line:s.currToken[2],column:s.currToken[3]+g},end:{line:s.currToken[4],column:s.currToken[3]+(h-1)}},sourceIndex:s.currToken[6]+l[x]}):~f.indexOf(g)?m=new Yy.default({value:d.slice(1),source:{start:{line:s.currToken[2],column:s.currToken[3]+g},end:{line:s.currToken[4],column:s.currToken[3]+(h-1)}},sourceIndex:s.currToken[6]+l[x]}):m=new Ky.default({value:d,source:{start:{line:s.currToken[2],column:s.currToken[3]+g},end:{line:s.currToken[4],column:s.currToken[3]+(h-1)}},sourceIndex:s.currToken[6]+l[x]}),s.newNode(m,n)}),this.position++},t.prototype.word=function(n){var r=this.nextToken;return r&&r[1]==="|"?(this.position++,this.namespace()):this.splitWord(n)},t.prototype.loop=function(){for(;this.position{"use strict";Jr.__esModule=!0;var dg=function(){function t(e,n){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},s=new yg.default({css:n,error:function(o){throw new Error(o)},options:r});return this.res=s,this.func(s),this},dg(t,[{key:"result",get:function(){return String(this.res)}}]),t}();Jr.default=vg;bl.exports=Jr.default});var ws=y(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});function _g(t){this.after=t.after,this.before=t.before,this.type=t.type,this.value=t.value,this.sourceIndex=t.sourceIndex}gs.default=_g});var xs=y(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});var Tg=ws(),Sl=Eg(Tg);function Eg(t){return t&&t.__esModule?t:{default:t}}function _t(t){var e=this;this.constructor(t),this.nodes=t.nodes,this.after===void 0&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),this.before===void 0&&(this.before=this.nodes.length>0?this.nodes[0].before:""),this.sourceIndex===void 0&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(n){n.parent=e})}_t.prototype=Object.create(Sl.default.prototype);_t.constructor=Sl.default;_t.prototype.walk=function(e,n){for(var r=typeof e=="string"||e instanceof RegExp,s=r?n:e,i=typeof e=="string"?new RegExp(e):e,o=0;o{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.parseMediaFeature=Al;Tt.parseMediaQuery=ks;Tt.parseMediaList=Og;var Sg=ws(),Cl=Ol(Sg),Cg=xs(),bs=Ol(Cg);function Ol(t){return t&&t.__esModule?t:{default:t}}function Al(t){var e=arguments.length<=1||arguments[1]===void 0?0:arguments[1],n=[{mode:"normal",character:null}],r=[],s=0,i="",o=null,a=null,u=e,c=t;t[0]==="("&&t[t.length-1]===")"&&(c=t.substring(1,t.length-1),u++);for(var f=0;f0&&(n[c-1].after=i.before),i.type===void 0){if(c>0){if(n[c-1].type==="media-feature-expression"){i.type="keyword";continue}if(n[c-1].value==="not"||n[c-1].value==="only"){i.type="media-type";continue}if(n[c-1].value==="and"){i.type="media-feature-expression";continue}n[c-1].type==="media-type"&&(n[c+1]?i.type=n[c+1].type==="media-feature-expression"?"keyword":"media-feature-expression":i.type="media-feature-expression")}if(c===0){if(!n[c+1]){i.type="media-type";continue}if(n[c+1]&&(n[c+1].type==="media-feature-expression"||n[c+1].type==="keyword")){i.type="media-type";continue}if(n[c+2]){if(n[c+2].type==="media-feature-expression"){i.type="media-type",n[c+1].type="keyword";continue}if(n[c+2].type==="keyword"){i.type="keyword",n[c+1].type="media-type";continue}}if(n[c+3]&&n[c+3].type==="media-feature-expression"){i.type="keyword",n[c+1].type="media-type",n[c+2].type="keyword";continue}}}return n}function Og(t){var e=[],n=0,r=0,s=/^(\s*)url\s*\(/.exec(t);if(s!==null){for(var i=s[0].length,o=1;o>0;){var a=t[i];a==="("&&o++,a===")"&&o--,i++}e.unshift(new Cl.default({type:"url",value:t.substring(0,i).trim(),sourceIndex:s[1].length,before:s[1],after:/^(\s*)/.exec(t.substring(i))[1]})),n=i}for(var u=n;u{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.default=Ig;var Ag=xs(),Ng=Rg(Ag),Pg=Nl();function Rg(t){return t&&t.__esModule?t:{default:t}}function Ig(t){return new Ng.default({nodes:(0,Pg.parseMediaList)(t),type:"media-query-list",value:t.trim()})}});var Ss={};Os(Ss,{languages:()=>Ul,options:()=>zl,parsers:()=>Zr,printers:()=>Wg});var jl=(t,e,n,r)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(n,r):n.global?e.replace(n,r):e.split(n).join(r)},T=jl;var Et="'",As='"';function Jl(t,e){let n=e===!0||e===Et?Et:As,r=n===Et?As:Et,s=0,i=0;for(let o of t)o===n?s++:o===r&&i++;return s>i?r:n}var Ns=Jl;function Xl(t,e,n){let r=e==='"'?"'":'"',i=T(!1,t,/\\(.)|(["'])/gs,(o,a,u)=>a===r?a:u===e?"\\"+u:u||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(a)?a:"\\"+a));return e+i+e}var Ps=Xl;function Zl(t,e){let n=t.slice(1,-1),r=e.parser==="json"||e.parser==="json5"&&e.quoteProps==="preserve"&&!e.singleQuote?'"':e.__isInHtmlAttribute?"'":Ns(n,e.singleQuote);return Ps(n,r,!(e.parser==="css"||e.parser==="less"||e.parser==="scss"||e.__embeddedInHtml))}var St=Zl;function ec(t){return Array.isArray(t)&&t.length>0}var ee=ec;var Fe="string",$e="array",Ue="cursor",xe="indent",be="align",We="trim",ke="group",te="fill",le="if-break",ze="indent-if-break",Ve="line-suffix",Ye="line-suffix-boundary",Q="line",Ge="label",_e="break-parent",Ct=new Set([Ue,xe,be,We,ke,te,le,ze,Ve,Ye,Q,Ge,_e]);function tc(t){if(typeof t=="string")return Fe;if(Array.isArray(t))return $e;if(!t)return;let{type:e}=t;if(Ct.has(e))return e}var Ke=tc;var rc=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function nc(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', +`),h=x.length-1,h>0?(b=a+h,w=l-x[h].length):(b=a,w=o),r.push(["comment",d,a,u-o,b,l-w,u]),o=w,a=b,u=l}else if(p===Nh&&!Mh.test(s.slice(u+1,u+2)))l=u+1,r.push(["#",s.slice(u,l),a,u-o,a,l-o,u]),u=l-1;else if((p===qh||p===Dh)&&s.charCodeAt(u+1)===Zn){l=u+2;do l+=1,p=s.charCodeAt(l);while(l=mu&&p<=yu&&(C=Me),C.lastIndex=u+1,C.test(s),C.lastIndex===0?l=s.length-1:l=C.lastIndex-2,C===Me||p===Ch){let O=s.charCodeAt(l),ve=s.charCodeAt(l+1),Cs=s.charCodeAt(l+2);(O===Rh||O===Ih)&&(ve===Cr||ve===Zn)&&Cs>=mu&&Cs<=yu&&(Me.lastIndex=l+2,Me.test(s),Me.lastIndex===0?l=s.length-1:l=Me.lastIndex-2)}r.push(["word",s.slice(u,l+1),a,u-o,a,l-o,u]),u=l}break}u++}return r}});var ss=y((qb,xu)=>{xu.exports=function(e,n){if(n=typeof n=="number"?n:1/0,!n)return Array.isArray(e)?e.map(function(s){return s}):e;return r(e,1);function r(s,i){return s.reduce(function(o,a){return Array.isArray(a)&&i{bu.exports=function(t,e){for(var n=-1,r=[];(n=t.indexOf(e,n+1))!==-1;)r.push(n);return r}});var os=y((Lb,ku)=>{"use strict";function Fh(t,e){for(var n=1,r=t.length,s=t[0],i=t[0],o=1;o{"use strict";var as=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};_u.exports=as});var Ou=y((Fb,Cu)=>{"use strict";var Wh=Ba(),zh=$a(),Vh=za(),Yh=Ya(),Gh=Ka(),Kh=Qa(),Hh=Xa(),Qh=eu(),jh=ru(),Eu=su(),Jh=ou(),Su=uu(),Xh=cu(),Zh=vu(),ed=ss(),td=is(),rd=os(),nd=Tu();function sd(t){return t.sort((e,n)=>e-n)}Cu.exports=class{constructor(e,n){let r={loose:!1};this.cache=[],this.input=e,this.options=Object.assign({},r,n),this.position=0,this.unbalanced=0,this.root=new Wh;let s=new zh;this.root.append(s),this.current=s,this.tokens=Zh(e,this.options)}parse(){return this.loop()}colon(){let e=this.currToken;this.newNode(new Yh({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comma(){let e=this.currToken;this.newNode(new Gh({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comment(){let e=!1,n=this.currToken[1].replace(/\/\*|\*\//g,""),r;this.options.loose&&n.startsWith("//")&&(n=n.substring(2),e=!0),r=new Kh({value:n,inline:e,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(r),this.position++}error(e,n){throw new nd(e+` at line: ${n[2]}, column ${n[3]}`)}loop(){for(;this.position0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.currToken):this.nextToken[0]!=="space"&&this.nextToken[0]!=="word"?this.error("Syntax Error",this.currToken):this.nextToken[0]==="word"&&this.current.last.type!=="operator"&&this.current.last.value!=="("&&this.error("Syntax Error",this.currToken):(this.nextToken[0]==="space"||this.nextToken[0]==="operator"||this.prevToken[0]==="operator")&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type==="operator")&&this.nextToken[0]==="word")return this.word()}else if(this.nextToken[0]==="word")return this.word()}return n=new jh({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(n)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case"operator":this.operator();break;case"string":this.string();break;case"unicoderange":this.unicodeRange();break;default:this.word();break}}parenOpen(){let e=1,n=this.position+1,r=this.currToken,s;for(;n=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error("Expected opening parenthesis",e),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let e=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.raws.after+=e[1],this.position++):(this.spaces=e[1],this.position++)}unicodeRange(){let e=this.currToken;this.newNode(new Xh({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}splitWord(){let e=this.nextToken,n=this.currToken[1],r=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,s=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,i,o;if(!s.test(n))for(;e&&e[0]==="word";){this.position++;let a=this.currToken[1];n+=a,e=this.nextToken}i=td(n,"@"),o=sd(rd(ed([[0],i]))),o.forEach((a,u)=>{let c=o[u+1]||n.length,f=n.slice(a,c),p;if(~i.indexOf(a))p=new Vh({value:f.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+a},end:{line:this.currToken[4],column:this.currToken[3]+(c-1)}},sourceIndex:this.currToken[6]+o[u]});else if(r.test(this.currToken[1])){let l=f.replace(r,"");p=new Qh({value:f.replace(l,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+a},end:{line:this.currToken[4],column:this.currToken[3]+(c-1)}},sourceIndex:this.currToken[6]+o[u],unit:l})}else p=new(e&&e[0]==="("?Hh:Su)({value:f,source:{start:{line:this.currToken[2],column:this.currToken[3]+a},end:{line:this.currToken[4],column:this.currToken[3]+(c-1)}},sourceIndex:this.currToken[6]+o[u]}),p.type==="word"?(p.isHex=/^#(.+)/.test(f),p.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(f)):this.cache.push(this.current);this.newNode(p)}),this.position++}string(){let e=this.currToken,n=this.currToken[1],r=/^(\"|\')/,s=r.test(n),i="",o;s&&(i=n.match(r)[0],n=n.slice(1,n.length-1)),o=new Jh({value:n,source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6],quoted:s}),o.raws.quote=i,this.newNode(o),this.position++}word(){return this.splitWord()}newNode(e){return this.spaces&&(e.raws.before+=this.spaces,this.spaces=""),this.current.append(e)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}});var we=y((Nr,qu)=>{"use strict";Nr.__esModule=!0;var Iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function cd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var fd=function t(e,n){if((typeof e>"u"?"undefined":Iu(e))!=="object")return e;var r=new e.constructor;for(var s in e)if(e.hasOwnProperty(s)){var i=e[s],o=typeof i>"u"?"undefined":Iu(i);s==="parent"&&o==="object"?n&&(r[s]=n):i instanceof Array?r[s]=i.map(function(a){return t(a,r)}):r[s]=t(i,r)}return r},pd=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};cd(this,t);for(var n in e)this[n]=e[n];var r=e.spaces;r=r===void 0?{}:r;var s=r.before,i=s===void 0?"":s,o=r.after,a=o===void 0?"":o;this.spaces={before:i,after:a}}return t.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.prototype.replaceWith=function(){if(this.parent){for(var n in arguments)this.parent.insertBefore(this,arguments[n]);this.remove()}return this},t.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},t.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},t.prototype.clone=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=fd(this);for(var s in n)r[s]=n[s];return r},t.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join("")},t}();Nr.default=pd;qu.exports=Nr.default});var L=y(F=>{"use strict";F.__esModule=!0;var Kb=F.TAG="tag",Hb=F.STRING="string",Qb=F.SELECTOR="selector",jb=F.ROOT="root",Jb=F.PSEUDO="pseudo",Xb=F.NESTING="nesting",Zb=F.ID="id",ek=F.COMMENT="comment",tk=F.COMBINATOR="combinator",rk=F.CLASS="class",nk=F.ATTRIBUTE="attribute",sk=F.UNIVERSAL="universal"});var Rr=y((Pr,Du)=>{"use strict";Pr.__esModule=!0;var hd=function(){function t(e,n){for(var r=0;r=r&&(this.indexes[i]=s-1);return this},e.prototype.removeAll=function(){for(var i=this.nodes,r=Array.isArray(i),s=0,i=r?i:i[Symbol.iterator]();;){var o;if(r){if(s>=i.length)break;o=i[s++]}else{if(s=i.next(),s.done)break;o=s.value}var a=o;a.parent=void 0}return this.nodes=[],this},e.prototype.empty=function(){return this.removeAll()},e.prototype.insertAfter=function(r,s){var i=this.index(r);this.nodes.splice(i+1,0,s);var o=void 0;for(var a in this.indexes)o=this.indexes[a],i<=o&&(this.indexes[a]=o+this.nodes.length);return this},e.prototype.insertBefore=function(r,s){var i=this.index(r);this.nodes.splice(i,0,s);var o=void 0;for(var a in this.indexes)o=this.indexes[a],i<=o&&(this.indexes[a]=o+this.nodes.length);return this},e.prototype.each=function(r){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var s=this.lastEach;if(this.indexes[s]=0,!!this.length){for(var i=void 0,o=void 0;this.indexes[s]{"use strict";Ir.__esModule=!0;var _d=Rr(),Td=Sd(_d),Ed=L();function Sd(t){return t&&t.__esModule?t:{default:t}}function Cd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Od(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Ad(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Nd=function(t){Ad(e,t);function e(n){Cd(this,e);var r=Od(this,t.call(this,n));return r.type=Ed.ROOT,r}return e.prototype.toString=function(){var r=this.reduce(function(s,i){var o=String(i);return o?s+o+",":""},"").slice(0,-1);return this.trailingComma?r+",":r},e}(Td.default);Ir.default=Nd;Lu.exports=Ir.default});var Fu=y((qr,Bu)=>{"use strict";qr.__esModule=!0;var Pd=Rr(),Rd=qd(Pd),Id=L();function qd(t){return t&&t.__esModule?t:{default:t}}function Dd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ld(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Md(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Bd=function(t){Md(e,t);function e(n){Dd(this,e);var r=Ld(this,t.call(this,n));return r.type=Id.SELECTOR,r}return e}(Rd.default);qr.default=Bd;Bu.exports=qr.default});var Be=y((Dr,$u)=>{"use strict";Dr.__esModule=!0;var Fd=function(){function t(e,n){for(var r=0;r{"use strict";Lr.__esModule=!0;var Kd=Be(),Hd=jd(Kd),Qd=L();function jd(t){return t&&t.__esModule?t:{default:t}}function Jd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Xd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Zd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var em=function(t){Zd(e,t);function e(n){Jd(this,e);var r=Xd(this,t.call(this,n));return r.type=Qd.CLASS,r}return e.prototype.toString=function(){return[this.spaces.before,this.ns,"."+this.value,this.spaces.after].join("")},e}(Hd.default);Lr.default=em;Uu.exports=Lr.default});var Vu=y((Mr,zu)=>{"use strict";Mr.__esModule=!0;var tm=we(),rm=sm(tm),nm=L();function sm(t){return t&&t.__esModule?t:{default:t}}function im(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function om(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function am(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var um=function(t){am(e,t);function e(n){im(this,e);var r=om(this,t.call(this,n));return r.type=nm.COMMENT,r}return e}(rm.default);Mr.default=um;zu.exports=Mr.default});var Gu=y((Br,Yu)=>{"use strict";Br.__esModule=!0;var lm=Be(),cm=pm(lm),fm=L();function pm(t){return t&&t.__esModule?t:{default:t}}function hm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dm(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function mm(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var ym=function(t){mm(e,t);function e(n){hm(this,e);var r=dm(this,t.call(this,n));return r.type=fm.ID,r}return e.prototype.toString=function(){return[this.spaces.before,this.ns,"#"+this.value,this.spaces.after].join("")},e}(cm.default);Br.default=ym;Yu.exports=Br.default});var Hu=y((Fr,Ku)=>{"use strict";Fr.__esModule=!0;var gm=Be(),wm=xm(gm),vm=L();function xm(t){return t&&t.__esModule?t:{default:t}}function bm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function km(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function _m(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Tm=function(t){_m(e,t);function e(n){bm(this,e);var r=km(this,t.call(this,n));return r.type=vm.TAG,r}return e}(wm.default);Fr.default=Tm;Ku.exports=Fr.default});var ju=y(($r,Qu)=>{"use strict";$r.__esModule=!0;var Em=we(),Sm=Om(Em),Cm=L();function Om(t){return t&&t.__esModule?t:{default:t}}function Am(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nm(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Pm(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Rm=function(t){Pm(e,t);function e(n){Am(this,e);var r=Nm(this,t.call(this,n));return r.type=Cm.STRING,r}return e}(Sm.default);$r.default=Rm;Qu.exports=$r.default});var Xu=y((Ur,Ju)=>{"use strict";Ur.__esModule=!0;var Im=Rr(),qm=Lm(Im),Dm=L();function Lm(t){return t&&t.__esModule?t:{default:t}}function Mm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bm(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Fm(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var $m=function(t){Fm(e,t);function e(n){Mm(this,e);var r=Bm(this,t.call(this,n));return r.type=Dm.PSEUDO,r}return e.prototype.toString=function(){var r=this.length?"("+this.map(String).join(",")+")":"";return[this.spaces.before,String(this.value),r,this.spaces.after].join("")},e}(qm.default);Ur.default=$m;Ju.exports=Ur.default});var el=y((Wr,Zu)=>{"use strict";Wr.__esModule=!0;var Um=Be(),Wm=Vm(Um),zm=L();function Vm(t){return t&&t.__esModule?t:{default:t}}function Ym(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Gm(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Km(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Hm=function(t){Km(e,t);function e(n){Ym(this,e);var r=Gm(this,t.call(this,n));return r.type=zm.ATTRIBUTE,r.raws={},r}return e.prototype.toString=function(){var r=[this.spaces.before,"[",this.ns,this.attribute];return this.operator&&r.push(this.operator),this.value&&r.push(this.value),this.raws.insensitive?r.push(this.raws.insensitive):this.insensitive&&r.push(" i"),r.push("]"),r.concat(this.spaces.after).join("")},e}(Wm.default);Wr.default=Hm;Zu.exports=Wr.default});var rl=y((zr,tl)=>{"use strict";zr.__esModule=!0;var Qm=Be(),jm=Xm(Qm),Jm=L();function Xm(t){return t&&t.__esModule?t:{default:t}}function Zm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ey(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function ty(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var ry=function(t){ty(e,t);function e(n){Zm(this,e);var r=ey(this,t.call(this,n));return r.type=Jm.UNIVERSAL,r.value="*",r}return e}(jm.default);zr.default=ry;tl.exports=zr.default});var sl=y((Vr,nl)=>{"use strict";Vr.__esModule=!0;var ny=we(),sy=oy(ny),iy=L();function oy(t){return t&&t.__esModule?t:{default:t}}function ay(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function uy(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function ly(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var cy=function(t){ly(e,t);function e(n){ay(this,e);var r=uy(this,t.call(this,n));return r.type=iy.COMBINATOR,r}return e}(sy.default);Vr.default=cy;nl.exports=Vr.default});var ol=y((Yr,il)=>{"use strict";Yr.__esModule=!0;var fy=we(),py=dy(fy),hy=L();function dy(t){return t&&t.__esModule?t:{default:t}}function my(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yy(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function gy(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var wy=function(t){gy(e,t);function e(n){my(this,e);var r=yy(this,t.call(this,n));return r.type=hy.NESTING,r.value="&",r}return e}(py.default);Yr.default=wy;il.exports=Yr.default});var ul=y((Gr,al)=>{"use strict";Gr.__esModule=!0;Gr.default=vy;function vy(t){return t.sort(function(e,n){return e-n})}al.exports=Gr.default});var gl=y((Qr,yl)=>{"use strict";Qr.__esModule=!0;Qr.default=Ny;var ll=39,xy=34,us=92,cl=47,kt=10,ls=32,cs=12,fs=9,ps=13,fl=43,pl=62,hl=126,dl=124,by=44,ky=40,_y=41,Ty=91,Ey=93,Sy=59,ml=42,Cy=58,Oy=38,Ay=64,Kr=/[ \n\t\r\{\(\)'"\\;/]/g,Hr=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function Ny(t){for(var e=[],n=t.css.valueOf(),r=void 0,s=void 0,i=void 0,o=void 0,a=void 0,u=void 0,c=void 0,f=void 0,p=void 0,l=void 0,g=void 0,x=n.length,h=-1,d=1,m=0,b=function(v,N){if(t.safe)n+=N,s=n.length-1;else throw t.error("Unclosed "+v,d,m-h,m)};m0?(f=d+a,p=s-o[a].length):(f=d,p=h),e.push(["comment",u,d,m-h,f,s-p,m]),h=p,d=f,m=s):(Hr.lastIndex=m+1,Hr.test(n),Hr.lastIndex===0?s=n.length-1:s=Hr.lastIndex-2,e.push(["word",n.slice(m,s+1),d,m-h,d,s-h,m]),m=s);break}m++}return e}yl.exports=Qr.default});var xl=y((jr,vl)=>{"use strict";jr.__esModule=!0;var Py=function(){function t(e,n){for(var r=0;r1?(o[0]===""&&(o[0]=!0),a.attribute=this.parseValue(o[2]),a.namespace=this.parseNamespace(o[0])):a.attribute=this.parseValue(i[0]),r=new Zy.default(a),i[2]){var u=i[2].split(/(\s+i\s*?)$/),c=u[0].trim();r.value=this.lossy?c:u[0],u[1]&&(r.insensitive=!0,this.lossy||(r.raws.insensitive=u[1])),r.quoted=c[0]==="'"||c[0]==='"',r.raws.unquoted=r.quoted?c.slice(1,-1):c}this.newNode(r),this.position++},t.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var n=new ng.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position1&&n.nextToken&&n.nextToken[0]==="("&&n.error("Misplaced parenthesis.")})}else this.error('Unexpected "'+this.currToken[0]+'" found.')},t.prototype.space=function(){var n=this.currToken;this.position===0||this.prevToken[0]===","||this.prevToken[0]==="("?(this.spaces=this.parseSpace(n[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.spaces.after=this.parseSpace(n[1]),this.position++):this.combinator()},t.prototype.string=function(){var n=this.currToken;this.newNode(new Qy.default({value:this.currToken[1],source:{start:{line:n[2],column:n[3]},end:{line:n[4],column:n[5]}},sourceIndex:n[6]})),this.position++},t.prototype.universal=function(n){var r=this.nextToken;if(r&&r[1]==="|")return this.position++,this.namespace();this.newNode(new tg.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),n),this.position++},t.prototype.splitWord=function(n,r){for(var s=this,i=this.nextToken,o=this.currToken[1];i&&i[0]==="word";){this.position++;var a=this.currToken[1];if(o+=a,a.lastIndexOf("\\")===a.length-1){var u=this.nextToken;u&&u[0]==="space"&&(o+=this.parseSpace(u[1]," "),this.position++)}i=this.nextToken}var c=(0,hs.default)(o,"."),f=(0,hs.default)(o,"#"),p=(0,hs.default)(o,"#{");p.length&&(f=f.filter(function(g){return!~p.indexOf(g)}));var l=(0,ag.default)((0,Ly.default)((0,Iy.default)([[0],c,f])));l.forEach(function(g,x){var h=l[x+1]||o.length,d=o.slice(g,h);if(x===0&&r)return r.call(s,d,l.length);var m=void 0;~c.indexOf(g)?m=new Uy.default({value:d.slice(1),source:{start:{line:s.currToken[2],column:s.currToken[3]+g},end:{line:s.currToken[4],column:s.currToken[3]+(h-1)}},sourceIndex:s.currToken[6]+l[x]}):~f.indexOf(g)?m=new Yy.default({value:d.slice(1),source:{start:{line:s.currToken[2],column:s.currToken[3]+g},end:{line:s.currToken[4],column:s.currToken[3]+(h-1)}},sourceIndex:s.currToken[6]+l[x]}):m=new Ky.default({value:d,source:{start:{line:s.currToken[2],column:s.currToken[3]+g},end:{line:s.currToken[4],column:s.currToken[3]+(h-1)}},sourceIndex:s.currToken[6]+l[x]}),s.newNode(m,n)}),this.position++},t.prototype.word=function(n){var r=this.nextToken;return r&&r[1]==="|"?(this.position++,this.namespace()):this.splitWord(n)},t.prototype.loop=function(){for(;this.position{"use strict";Jr.__esModule=!0;var dg=function(){function t(e,n){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},s=new yg.default({css:n,error:function(o){throw new Error(o)},options:r});return this.res=s,this.func(s),this},dg(t,[{key:"result",get:function(){return String(this.res)}}]),t}();Jr.default=vg;bl.exports=Jr.default});var gs=y(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});function _g(t){this.after=t.after,this.before=t.before,this.type=t.type,this.value=t.value,this.sourceIndex=t.sourceIndex}ys.default=_g});var vs=y(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});var Tg=gs(),Sl=Eg(Tg);function Eg(t){return t&&t.__esModule?t:{default:t}}function _t(t){var e=this;this.constructor(t),this.nodes=t.nodes,this.after===void 0&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),this.before===void 0&&(this.before=this.nodes.length>0?this.nodes[0].before:""),this.sourceIndex===void 0&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(n){n.parent=e})}_t.prototype=Object.create(Sl.default.prototype);_t.constructor=Sl.default;_t.prototype.walk=function(e,n){for(var r=typeof e=="string"||e instanceof RegExp,s=r?n:e,i=typeof e=="string"?new RegExp(e):e,o=0;o{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.parseMediaFeature=Al;Tt.parseMediaQuery=bs;Tt.parseMediaList=Og;var Sg=gs(),Cl=Ol(Sg),Cg=vs(),xs=Ol(Cg);function Ol(t){return t&&t.__esModule?t:{default:t}}function Al(t){var e=arguments.length<=1||arguments[1]===void 0?0:arguments[1],n=[{mode:"normal",character:null}],r=[],s=0,i="",o=null,a=null,u=e,c=t;t[0]==="("&&t[t.length-1]===")"&&(c=t.substring(1,t.length-1),u++);for(var f=0;f0&&(n[c-1].after=i.before),i.type===void 0){if(c>0){if(n[c-1].type==="media-feature-expression"){i.type="keyword";continue}if(n[c-1].value==="not"||n[c-1].value==="only"){i.type="media-type";continue}if(n[c-1].value==="and"){i.type="media-feature-expression";continue}n[c-1].type==="media-type"&&(n[c+1]?i.type=n[c+1].type==="media-feature-expression"?"keyword":"media-feature-expression":i.type="media-feature-expression")}if(c===0){if(!n[c+1]){i.type="media-type";continue}if(n[c+1]&&(n[c+1].type==="media-feature-expression"||n[c+1].type==="keyword")){i.type="media-type";continue}if(n[c+2]){if(n[c+2].type==="media-feature-expression"){i.type="media-type",n[c+1].type="keyword";continue}if(n[c+2].type==="keyword"){i.type="keyword",n[c+1].type="media-type";continue}}if(n[c+3]&&n[c+3].type==="media-feature-expression"){i.type="keyword",n[c+1].type="media-type",n[c+2].type="keyword";continue}}}return n}function Og(t){var e=[],n=0,r=0,s=/^(\s*)url\s*\(/.exec(t);if(s!==null){for(var i=s[0].length,o=1;o>0;){var a=t[i];a==="("&&o++,a===")"&&o--,i++}e.unshift(new Cl.default({type:"url",value:t.substring(0,i).trim(),sourceIndex:s[1].length,before:s[1],after:/^(\s*)/.exec(t.substring(i))[1]})),n=i}for(var u=n;u{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.default=Ig;var Ag=vs(),Ng=Rg(Ag),Pg=Nl();function Rg(t){return t&&t.__esModule?t:{default:t}}function Ig(t){return new Ng.default({nodes:(0,Pg.parseMediaList)(t),type:"media-query-list",value:t.trim()})}});var Ss={};Os(Ss,{languages:()=>Ul,options:()=>zl,parsers:()=>Es,printers:()=>Wg});var jl=(t,e,n,r)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(n,r):n.global?e.replace(n,r):e.split(n).join(r)},T=jl;var Et="'",As='"';function Jl(t,e){let n=e===!0||e===Et?Et:As,r=n===Et?As:Et,s=0,i=0;for(let o of t)o===n?s++:o===r&&i++;return s>i?r:n}var Ns=Jl;function Xl(t,e,n){let r=e==='"'?"'":'"',i=T(!1,t,/\\(.)|(["'])/gs,(o,a,u)=>a===r?a:u===e?"\\"+u:u||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(a)?a:"\\"+a));return e+i+e}var Ps=Xl;function Zl(t,e){let n=t.slice(1,-1),r=e.parser==="json"||e.parser==="json5"&&e.quoteProps==="preserve"&&!e.singleQuote?'"':e.__isInHtmlAttribute?"'":Ns(n,e.singleQuote);return Ps(n,r,!(e.parser==="css"||e.parser==="less"||e.parser==="scss"||e.__embeddedInHtml))}var St=Zl;function ec(t){return Array.isArray(t)&&t.length>0}var ee=ec;var Fe="string",$e="array",Ue="cursor",xe="indent",be="align",We="trim",ke="group",te="fill",le="if-break",ze="indent-if-break",Ve="line-suffix",Ye="line-suffix-boundary",Q="line",Ge="label",_e="break-parent",Ct=new Set([Ue,xe,be,We,ke,te,le,ze,Ve,Ye,Q,Ge,_e]);function tc(t){if(typeof t=="string")return Fe;if(Array.isArray(t))return $e;if(!t)return;let{type:e}=t;if(Ct.has(e))return e}var Ke=tc;var rc=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function nc(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', Expected it to be 'string' or 'object'.`;if(Ke(t))throw new Error("doc is valid.");let n=Object.prototype.toString.call(t);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let r=rc([...Ct].map(s=>`'${s}'`));return`Unexpected doc.type '${t.type}'. -Expected it to be ${r}.`}var tn=class extends Error{name="InvalidDocError";constructor(e){super(nc(e)),this.doc=e}},rn=tn;var Rs=()=>{},ce=Rs,Ot=Rs;function q(t){return ce(t),{type:xe,contents:t}}function Is(t,e){return ce(e),{type:be,contents:e,n:t}}function D(t,e={}){return ce(t),Ot(e.expandedStates,!0),{type:ke,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function qs(t){return Is({type:"root"},t)}function fe(t){return Is(-1,t)}function He(t){return Ot(t),{type:te,parts:t}}function At(t,e="",n={}){return ce(t),e!==""&&ce(e),{type:le,breakContents:t,flatContents:e,groupId:n.groupId}}var Qe={type:_e};var sc={type:Q,hard:!0};var A={type:Q},M={type:Q,soft:!0},_=[sc,Qe];function Y(t,e){ce(t),Ot(e);let n=[];for(let r=0;r{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[n<0?e.length+n:n]:e.at(n)},G=ic;var Ds=t=>{if(Array.isArray(t))return t;if(t.type!==te)throw new Error(`Expect doc to be 'array' or '${te}'.`);return t.parts};function oc(t,e){if(typeof t=="string")return e(t);let n=new Map;return r(t);function r(i){if(n.has(i))return n.get(i);let o=s(i);return n.set(i,o),o}function s(i){switch(Ke(i)){case $e:return e(i.map(r));case te:return e({...i,parts:i.parts.map(r)});case le:return e({...i,breakContents:r(i.breakContents),flatContents:r(i.flatContents)});case ke:{let{expandedStates:o,contents:a}=i;return o?(o=o.map(r),a=o[0]):a=r(a),e({...i,contents:a,expandedStates:o})}case be:case xe:case ze:case Ge:case Ve:return e({...i,contents:r(i.contents)});case Fe:case Ue:case We:case Ye:case Q:case _e:return e(i);default:throw new rn(i)}}}function ac(t){return t.type===Q&&!t.hard?t.soft?"":" ":t.type===le?t.flatContents:t}function Ls(t){return oc(t,ac)}var nn=class extends Error{name="UnexpectedNodeError";constructor(e,n,r="type"){super(`Unexpected ${n} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},Ms=nn;function uc(t){return(t==null?void 0:t.type)==="front-matter"}var Te=uc;var lc=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function Bs(t,e,n){if(Te(t)&&t.lang==="yaml"&&delete e.value,t.type==="css-comment"&&n.type==="css-root"&&n.nodes.length>0&&((n.nodes[0]===t||Te(n.nodes[0])&&n.nodes[1]===t)&&(delete e.text,/^\*\s*@(?:format|prettier)\s*$/.test(t.text))||n.type==="css-root"&&G(!1,n.nodes,-1)===t))return null;if(t.type==="value-root"&&delete e.text,(t.type==="media-query"||t.type==="media-query-list"||t.type==="media-feature-expression")&&delete e.value,t.type==="css-rule"&&delete e.params,t.type==="selector-combinator"&&(e.value=T(!1,e.value,/\s+/g," ")),t.type==="media-feature"&&(e.value=T(!1,e.value," ","")),(t.type==="value-word"&&(t.isColor&&t.isHex||["initial","inherit","unset","revert"].includes(e.value.toLowerCase()))||t.type==="media-feature"||t.type==="selector-root-invalid"||t.type==="selector-pseudo")&&(e.value=e.value.toLowerCase()),t.type==="css-decl"&&(e.prop=e.prop.toLowerCase()),(t.type==="css-atrule"||t.type==="css-import")&&(e.name=e.name.toLowerCase()),t.type==="value-number"&&(e.unit=e.unit.toLowerCase()),t.type==="value-unknown"&&(e.value=T(!1,e.value,/;$/g,"")),(t.type==="media-feature"||t.type==="media-keyword"||t.type==="media-type"||t.type==="media-unknown"||t.type==="media-url"||t.type==="media-value"||t.type==="selector-attribute"||t.type==="selector-string"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="value-string")&&e.value&&(e.value=cc(e.value)),t.type==="selector-attribute"&&(e.attribute=e.attribute.trim(),e.namespace&&typeof e.namespace=="string"&&(e.namespace=e.namespace.trim(),e.namespace.length===0&&(e.namespace=!0)),e.value&&(e.value=T(!1,e.value.trim(),/^["']|["']$/g,""),delete e.quoted)),(t.type==="media-value"||t.type==="media-type"||t.type==="value-number"||t.type==="selector-root-invalid"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="selector-tag")&&e.value&&(e.value=T(!1,e.value,/([\d+.Ee-]+)([A-Za-z]*)/g,(r,s,i)=>{let o=Number(s);return Number.isNaN(o)?r:o+i.toLowerCase()})),t.type==="selector-tag"){let r=t.value.toLowerCase();["from","to"].includes(r)&&(e.value=r)}if(t.type==="css-atrule"&&t.name.toLowerCase()==="supports"&&delete e.value,t.type==="selector-unknown"&&delete e.value,t.type==="value-comma_group"){let r=t.groups.findIndex(s=>s.type==="value-number"&&s.unit==="...");r!==-1&&(e.groups[r].unit="",e.groups.splice(r+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(t.type==="value-comma_group"&&t.groups.some(r=>r.type==="value-atword"&&r.value.endsWith("[")||r.type==="value-word"&&r.value.startsWith("]")))return{type:"value-atword",value:t.groups.map(r=>r.value).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}}Bs.ignoredProperties=lc;function cc(t){return T(!1,T(!1,t,"'",'"'),/\\([^\dA-Fa-f])/g,"$1")}var Fs=Bs;async function fc(t,e){if(t.lang==="yaml"){let n=t.value.trim(),r=n?await e(n,{parser:"yaml"}):"";return qs([t.startDelimiter,_,r,r?_:"",t.endDelimiter])}}var $s=fc;function Us(t){let{node:e}=t;if(e.type==="front-matter")return async n=>{let r=await $s(e,n);return r?[r,_]:void 0}}Us.getVisitorKeys=t=>t.type==="css-root"?["frontMatter"]:[];var Ws=Us;var re=ue(Qs(),1);function bc(t){if(!t.startsWith("#!"))return"";let e=t.indexOf(` +Expected it to be ${r}.`}var en=class extends Error{name="InvalidDocError";constructor(e){super(nc(e)),this.doc=e}},tn=en;var Rs=()=>{},ce=Rs,Ot=Rs;function q(t){return ce(t),{type:xe,contents:t}}function Is(t,e){return ce(e),{type:be,contents:e,n:t}}function D(t,e={}){return ce(t),Ot(e.expandedStates,!0),{type:ke,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function qs(t){return Is({type:"root"},t)}function fe(t){return Is(-1,t)}function He(t){return Ot(t),{type:te,parts:t}}function At(t,e="",n={}){return ce(t),e!==""&&ce(e),{type:le,breakContents:t,flatContents:e,groupId:n.groupId}}var Qe={type:_e};var sc={type:Q,hard:!0};var A={type:Q},M={type:Q,soft:!0},_=[sc,Qe];function Y(t,e){ce(t),Ot(e);let n=[];for(let r=0;r{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[n<0?e.length+n:n]:e.at(n)},G=ic;var Ds=t=>{if(Array.isArray(t))return t;if(t.type!==te)throw new Error(`Expect doc to be 'array' or '${te}'.`);return t.parts};function oc(t,e){if(typeof t=="string")return e(t);let n=new Map;return r(t);function r(i){if(n.has(i))return n.get(i);let o=s(i);return n.set(i,o),o}function s(i){switch(Ke(i)){case $e:return e(i.map(r));case te:return e({...i,parts:i.parts.map(r)});case le:return e({...i,breakContents:r(i.breakContents),flatContents:r(i.flatContents)});case ke:{let{expandedStates:o,contents:a}=i;return o?(o=o.map(r),a=o[0]):a=r(a),e({...i,contents:a,expandedStates:o})}case be:case xe:case ze:case Ge:case Ve:return e({...i,contents:r(i.contents)});case Fe:case Ue:case We:case Ye:case Q:case _e:return e(i);default:throw new tn(i)}}}function ac(t){return t.type===Q&&!t.hard?t.soft?"":" ":t.type===le?t.flatContents:t}function Ls(t){return oc(t,ac)}var rn=class extends Error{name="UnexpectedNodeError";constructor(e,n,r="type"){super(`Unexpected ${n} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},Ms=rn;function uc(t){return(t==null?void 0:t.type)==="front-matter"}var Te=uc;var lc=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function Bs(t,e,n){if(Te(t)&&t.lang==="yaml"&&delete e.value,t.type==="css-comment"&&n.type==="css-root"&&n.nodes.length>0&&((n.nodes[0]===t||Te(n.nodes[0])&&n.nodes[1]===t)&&(delete e.text,/^\*\s*@(?:format|prettier)\s*$/.test(t.text))||n.type==="css-root"&&G(!1,n.nodes,-1)===t))return null;if(t.type==="value-root"&&delete e.text,(t.type==="media-query"||t.type==="media-query-list"||t.type==="media-feature-expression")&&delete e.value,t.type==="css-rule"&&delete e.params,t.type==="selector-combinator"&&(e.value=T(!1,e.value,/\s+/g," ")),t.type==="media-feature"&&(e.value=T(!1,e.value," ","")),(t.type==="value-word"&&(t.isColor&&t.isHex||["initial","inherit","unset","revert"].includes(e.value.toLowerCase()))||t.type==="media-feature"||t.type==="selector-root-invalid"||t.type==="selector-pseudo")&&(e.value=e.value.toLowerCase()),t.type==="css-decl"&&(e.prop=e.prop.toLowerCase()),(t.type==="css-atrule"||t.type==="css-import")&&(e.name=e.name.toLowerCase()),t.type==="value-number"&&(e.unit=e.unit.toLowerCase()),t.type==="value-unknown"&&(e.value=T(!1,e.value,/;$/g,"")),(t.type==="media-feature"||t.type==="media-keyword"||t.type==="media-type"||t.type==="media-unknown"||t.type==="media-url"||t.type==="media-value"||t.type==="selector-attribute"||t.type==="selector-string"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="value-string")&&e.value&&(e.value=cc(e.value)),t.type==="selector-attribute"&&(e.attribute=e.attribute.trim(),e.namespace&&typeof e.namespace=="string"&&(e.namespace=e.namespace.trim(),e.namespace.length===0&&(e.namespace=!0)),e.value&&(e.value=T(!1,e.value.trim(),/^["']|["']$/g,""),delete e.quoted)),(t.type==="media-value"||t.type==="media-type"||t.type==="value-number"||t.type==="selector-root-invalid"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="selector-tag")&&e.value&&(e.value=T(!1,e.value,/([\d+.Ee-]+)([A-Za-z]*)/g,(r,s,i)=>{let o=Number(s);return Number.isNaN(o)?r:o+i.toLowerCase()})),t.type==="selector-tag"){let r=t.value.toLowerCase();["from","to"].includes(r)&&(e.value=r)}if(t.type==="css-atrule"&&t.name.toLowerCase()==="supports"&&delete e.value,t.type==="selector-unknown"&&delete e.value,t.type==="value-comma_group"){let r=t.groups.findIndex(s=>s.type==="value-number"&&s.unit==="...");r!==-1&&(e.groups[r].unit="",e.groups.splice(r+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(t.type==="value-comma_group"&&t.groups.some(r=>r.type==="value-atword"&&r.value.endsWith("[")||r.type==="value-word"&&r.value.startsWith("]")))return{type:"value-atword",value:t.groups.map(r=>r.value).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}}Bs.ignoredProperties=lc;function cc(t){return T(!1,T(!1,t,"'",'"'),/\\([^\dA-Fa-f])/g,"$1")}var Fs=Bs;async function fc(t,e){if(t.lang==="yaml"){let n=t.value.trim(),r=n?await e(n,{parser:"yaml"}):"";return qs([t.startDelimiter,_,r,r?_:"",t.endDelimiter])}}var $s=fc;function Us(t){let{node:e}=t;if(e.type==="front-matter")return async n=>{let r=await $s(e,n);return r?[r,_]:void 0}}Us.getVisitorKeys=t=>t.type==="css-root"?["frontMatter"]:[];var Ws=Us;var re=ue(Qs(),1);function bc(t){if(!t.startsWith("#!"))return"";let e=t.indexOf(` `);return e===-1?t:t.slice(0,e)}var js=bc;function Js(t){let e=js(t);e&&(t=t.slice(e.length+1));let n=(0,re.extract)(t),{pragmas:r,comments:s}=(0,re.parseWithComments)(n);return{shebang:e,text:t,pragmas:r,comments:s}}function Xs(t){let{pragmas:e}=Js(t);return Object.prototype.hasOwnProperty.call(e,"prettier")||Object.prototype.hasOwnProperty.call(e,"format")}function Zs(t){let{shebang:e,text:n,pragmas:r,comments:s}=Js(t),i=(0,re.strip)(n),o=(0,re.print)({pragmas:{format:"",...r},comments:s.trimStart()});return(e?`${e} `:"")+o+(i.startsWith(` `)?` @@ -40,13 +40,13 @@ Expected it to be ${r}.`}var tn=class extends Error{name="InvalidDocError";const `)+i}var kc=new RegExp("^(?-{3}|\\+{3})(?[^\\n]*)\\n(?:|(?.*?)\\n)(?\\k|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function _c(t){let e=t.match(kc);if(!e)return{content:t};let{startDelimiter:n,language:r,value:s="",endDelimiter:i}=e.groups,o=r.trim()||"yaml";if(n==="+++"&&(o="toml"),o!=="yaml"&&n!==i)return{content:t};let[a]=e;return{frontMatter:{type:"front-matter",lang:o,value:s,startDelimiter:n,endDelimiter:i,raw:a.replace(/\n$/,"")},content:T(!1,a,/[^\n]/g," ")+t.slice(a.length)}}var je=_c;function ei(t){return Xs(je(t).content)}function ti(t){let{frontMatter:e,content:n}=je(t);return(e?e.raw+` -`:"")+Zs(n)}var Je=null;function Xe(t){if(Je!==null&&typeof Je.property){let e=Je;return Je=Xe.prototype=null,e}return Je=Xe.prototype=t??Object.create(null),new Xe}var Tc=10;for(let t=0;t<=Tc;t++)Xe();function sn(t){return Xe(t)}function Ec(t,e="type"){sn(t);function n(r){let s=r[e],i=t[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:r});return i}return n}var ri=Ec;var Sc={"front-matter":[],"css-root":["frontMatter","nodes"],"css-comment":[],"css-rule":["selector","nodes"],"css-decl":["value","selector","nodes"],"css-atrule":["selector","params","value","nodes"],"media-query-list":["nodes"],"media-query":["nodes"],"media-type":[],"media-feature-expression":["nodes"],"media-feature":[],"media-colon":[],"media-value":[],"media-keyword":[],"media-url":[],"media-unknown":[],"selector-root":["nodes"],"selector-selector":["nodes"],"selector-comment":[],"selector-string":[],"selector-tag":[],"selector-id":[],"selector-class":[],"selector-attribute":[],"selector-combinator":["nodes"],"selector-universal":[],"selector-pseudo":["nodes"],"selector-nesting":[],"selector-unknown":[],"value-value":["group"],"value-root":["group"],"value-comment":[],"value-comma_group":["groups"],"value-paren_group":["open","groups","close"],"value-func":["group"],"value-paren":[],"value-number":[],"value-operator":[],"value-word":[],"value-colon":[],"value-comma":[],"value-string":[],"value-atword":[],"value-unicode-range":[],"value-unknown":[]},ni=Sc;var Cc=ri(ni),si=Cc;var Oc=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function ii(t){var e,n;return(n=(e=t.findAncestor(r=>r.type==="css-decl"))==null?void 0:e.prop)==null?void 0:n.toLowerCase()}var Ac=new Set(["initial","inherit","unset","revert"]);function oi(t){return Ac.has(t.toLowerCase())}function ai(t,e){var r;let n=t.findAncestor(s=>s.type==="css-atrule");return((r=n==null?void 0:n.name)==null?void 0:r.toLowerCase().endsWith("keyframes"))&&["from","to"].includes(e.toLowerCase())}function ne(t){return t.includes("$")||t.includes("@")||t.includes("#")||t.startsWith("%")||t.startsWith("--")||t.startsWith(":--")||t.includes("(")&&t.includes(")")?t:t.toLowerCase()}function Ee(t,e){var r;let n=t.findAncestor(s=>s.type==="value-func");return((r=n==null?void 0:n.value)==null?void 0:r.toLowerCase())===e}function ui(t){var r;let e=t.findAncestor(s=>s.type==="css-rule"),n=(r=e==null?void 0:e.raws)==null?void 0:r.selector;return n&&(n.startsWith(":import")||n.startsWith(":export"))}function Se(t,e){let n=Array.isArray(e)?e:[e],r=t.findAncestor(s=>s.type==="css-atrule");return r&&n.includes(r.name.toLowerCase())}function li(t){var n;let{node:e}=t;return e.groups[0].value==="url"&&e.groups.length===2&&((n=t.findAncestor(r=>r.type==="css-atrule"))==null?void 0:n.name)==="import"}function ci(t){return t.type==="value-func"&&t.value.toLowerCase()==="url"}function fi(t){return t.type==="value-func"&&t.value.toLowerCase()==="var"}function Nt(t,e){var r;let n=(r=t.parent)==null?void 0:r.nodes;return n&&n.indexOf(e)===n.length-1}function pi(t){let{selector:e}=t;return e?typeof e=="string"&&/^@.+:.*$/.test(e)||e.value&&/^@.+:.*$/.test(e.value):!1}function hi(t){return t.type==="value-word"&&["from","through","end"].includes(t.value)}function di(t){return t.type==="value-word"&&["and","or","not"].includes(t.value)}function mi(t){return t.type==="value-word"&&t.value==="in"}function Pt(t){return t.type==="value-operator"&&t.value==="*"}function Ze(t){return t.type==="value-operator"&&t.value==="/"}function j(t){return t.type==="value-operator"&&t.value==="+"}function he(t){return t.type==="value-operator"&&t.value==="-"}function Nc(t){return t.type==="value-operator"&&t.value==="%"}function Rt(t){return Pt(t)||Ze(t)||j(t)||he(t)||Nc(t)}function yi(t){return t.type==="value-word"&&["==","!="].includes(t.value)}function gi(t){return t.type==="value-word"&&["<",">","<=",">="].includes(t.value)}function et(t,e){return e.parser==="scss"&&t.type==="css-atrule"&&["if","else","for","each","while"].includes(t.name)}function an(t){var e;return((e=t.raws)==null?void 0:e.params)&&/^\(\s*\)$/.test(t.raws.params)}function un(t){return t.name.startsWith("prettier-placeholder")}function wi(t){return t.prop.startsWith("@prettier-placeholder")}function vi(t,e){return t.value==="$$"&&t.type==="value-func"&&(e==null?void 0:e.type)==="value-word"&&!e.raws.before}function xi(t){var e,n;return((e=t.value)==null?void 0:e.type)==="value-root"&&((n=t.value.group)==null?void 0:n.type)==="value-value"&&t.prop.toLowerCase()==="composes"}function bi(t){var e,n,r;return((r=(n=(e=t.value)==null?void 0:e.group)==null?void 0:n.group)==null?void 0:r.type)==="value-paren_group"&&t.value.group.group.open!==null&&t.value.group.group.close!==null}function de(t){var e;return((e=t.raws)==null?void 0:e.before)===""}function It(t){var e,n;return t.type==="value-comma_group"&&((n=(e=t.groups)==null?void 0:e[1])==null?void 0:n.type)==="value-colon"}function on(t){var e;return t.type==="value-paren_group"&&((e=t.groups)==null?void 0:e[0])&&It(t.groups[0])}function ln(t,e){var i;if(e.parser!=="scss")return!1;let{node:n}=t;if(n.groups.length===0)return!1;let r=t.grandparent;if(!on(n)&&!(r&&on(r)))return!1;let s=t.findAncestor(o=>o.type==="css-decl");return!!((i=s==null?void 0:s.prop)!=null&&i.startsWith("$")||on(r)||r.type==="value-func")}function cn(t){return t.type==="value-comment"&&t.inline}function qt(t){return t.type==="value-word"&&t.value==="#"}function fn(t){return t.type==="value-word"&&t.value==="{"}function Dt(t){return t.type==="value-word"&&t.value==="}"}function tt(t){return["value-word","value-atword"].includes(t.type)}function Lt(t){return(t==null?void 0:t.type)==="value-colon"}function ki(t,e){if(!It(e))return!1;let{groups:n}=e,r=n.indexOf(t);return r===-1?!1:Lt(n[r+1])}function _i(t){return t.value&&["not","and","or"].includes(t.value.toLowerCase())}function Ti(t){return t.type!=="value-func"?!1:Oc.has(t.value.toLowerCase())}function Ce(t){return/\/\//.test(t.split(/[\n\r]/).pop())}function rt(t){return(t==null?void 0:t.type)==="value-atword"&&t.value.startsWith("prettier-placeholder-")}function Ei(t,e){var n,r;if(((n=t.open)==null?void 0:n.value)!=="("||((r=t.close)==null?void 0:r.value)!==")"||t.groups.some(s=>s.type!=="value-comma_group"))return!1;if(e.type==="value-comma_group"){let s=e.groups.indexOf(t)-1,i=e.groups[s];if((i==null?void 0:i.type)==="value-word"&&i.value==="with")return!0}return!1}function nt(t){var e,n;return t.type==="value-paren_group"&&((e=t.open)==null?void 0:e.value)==="("&&((n=t.close)==null?void 0:n.value)===")"}function Mt(t){return(e,n,r)=>{let s=!!(r!=null&&r.backwards);if(n===!1)return!1;let{length:i}=e,o=n;for(;o>=0&&or.type==="css-decl"))==null?void 0:e.prop)==null?void 0:n.toLowerCase()}var Ac=new Set(["initial","inherit","unset","revert"]);function oi(t){return Ac.has(t.toLowerCase())}function ai(t,e){var r;let n=t.findAncestor(s=>s.type==="css-atrule");return((r=n==null?void 0:n.name)==null?void 0:r.toLowerCase().endsWith("keyframes"))&&["from","to"].includes(e.toLowerCase())}function ne(t){return t.includes("$")||t.includes("@")||t.includes("#")||t.startsWith("%")||t.startsWith("--")||t.startsWith(":--")||t.includes("(")&&t.includes(")")?t:t.toLowerCase()}function Ee(t,e){var r;let n=t.findAncestor(s=>s.type==="value-func");return((r=n==null?void 0:n.value)==null?void 0:r.toLowerCase())===e}function ui(t){var r;let e=t.findAncestor(s=>s.type==="css-rule"),n=(r=e==null?void 0:e.raws)==null?void 0:r.selector;return n&&(n.startsWith(":import")||n.startsWith(":export"))}function Se(t,e){let n=Array.isArray(e)?e:[e],r=t.findAncestor(s=>s.type==="css-atrule");return r&&n.includes(r.name.toLowerCase())}function li(t){var n;let{node:e}=t;return e.groups[0].value==="url"&&e.groups.length===2&&((n=t.findAncestor(r=>r.type==="css-atrule"))==null?void 0:n.name)==="import"}function ci(t){return t.type==="value-func"&&t.value.toLowerCase()==="url"}function fi(t){return t.type==="value-func"&&t.value.toLowerCase()==="var"}function Nt(t,e){var r;let n=(r=t.parent)==null?void 0:r.nodes;return n&&n.indexOf(e)===n.length-1}function pi(t){let{selector:e}=t;return e?typeof e=="string"&&/^@.+:.*$/.test(e)||e.value&&/^@.+:.*$/.test(e.value):!1}function hi(t){return t.type==="value-word"&&["from","through","end"].includes(t.value)}function di(t){return t.type==="value-word"&&["and","or","not"].includes(t.value)}function mi(t){return t.type==="value-word"&&t.value==="in"}function Pt(t){return t.type==="value-operator"&&t.value==="*"}function Ze(t){return t.type==="value-operator"&&t.value==="/"}function j(t){return t.type==="value-operator"&&t.value==="+"}function he(t){return t.type==="value-operator"&&t.value==="-"}function Nc(t){return t.type==="value-operator"&&t.value==="%"}function Rt(t){return Pt(t)||Ze(t)||j(t)||he(t)||Nc(t)}function yi(t){return t.type==="value-word"&&["==","!="].includes(t.value)}function gi(t){return t.type==="value-word"&&["<",">","<=",">="].includes(t.value)}function et(t,e){return e.parser==="scss"&&t.type==="css-atrule"&&["if","else","for","each","while"].includes(t.name)}function on(t){var e;return((e=t.raws)==null?void 0:e.params)&&/^\(\s*\)$/.test(t.raws.params)}function an(t){return t.name.startsWith("prettier-placeholder")}function wi(t){return t.prop.startsWith("@prettier-placeholder")}function vi(t,e){return t.value==="$$"&&t.type==="value-func"&&(e==null?void 0:e.type)==="value-word"&&!e.raws.before}function xi(t){var e,n;return((e=t.value)==null?void 0:e.type)==="value-root"&&((n=t.value.group)==null?void 0:n.type)==="value-value"&&t.prop.toLowerCase()==="composes"}function bi(t){var e,n,r;return((r=(n=(e=t.value)==null?void 0:e.group)==null?void 0:n.group)==null?void 0:r.type)==="value-paren_group"&&t.value.group.group.open!==null&&t.value.group.group.close!==null}function de(t){var e;return((e=t.raws)==null?void 0:e.before)===""}function It(t){var e,n;return t.type==="value-comma_group"&&((n=(e=t.groups)==null?void 0:e[1])==null?void 0:n.type)==="value-colon"}function sn(t){var e;return t.type==="value-paren_group"&&((e=t.groups)==null?void 0:e[0])&&It(t.groups[0])}function un(t,e){var i;if(e.parser!=="scss")return!1;let{node:n}=t;if(n.groups.length===0)return!1;let r=t.grandparent;if(!sn(n)&&!(r&&sn(r)))return!1;let s=t.findAncestor(o=>o.type==="css-decl");return!!((i=s==null?void 0:s.prop)!=null&&i.startsWith("$")||sn(r)||r.type==="value-func")}function ln(t){return t.type==="value-comment"&&t.inline}function qt(t){return t.type==="value-word"&&t.value==="#"}function cn(t){return t.type==="value-word"&&t.value==="{"}function Dt(t){return t.type==="value-word"&&t.value==="}"}function tt(t){return["value-word","value-atword"].includes(t.type)}function Lt(t){return(t==null?void 0:t.type)==="value-colon"}function ki(t,e){if(!It(e))return!1;let{groups:n}=e,r=n.indexOf(t);return r===-1?!1:Lt(n[r+1])}function _i(t){return t.value&&["not","and","or"].includes(t.value.toLowerCase())}function Ti(t){return t.type!=="value-func"?!1:Oc.has(t.value.toLowerCase())}function Ce(t){return/\/\//.test(t.split(/[\n\r]/).pop())}function rt(t){return(t==null?void 0:t.type)==="value-atword"&&t.value.startsWith("prettier-placeholder-")}function Ei(t,e){var n,r;if(((n=t.open)==null?void 0:n.value)!=="("||((r=t.close)==null?void 0:r.value)!==")"||t.groups.some(s=>s.type!=="value-comma_group"))return!1;if(e.type==="value-comma_group"){let s=e.groups.indexOf(t)-1,i=e.groups[s];if((i==null?void 0:i.type)==="value-word"&&i.value==="with")return!0}return!1}function nt(t){var e,n;return t.type==="value-paren_group"&&((e=t.open)==null?void 0:e.value)==="("&&((n=t.close)==null?void 0:n.value)===")"}function Mt(t){return(e,n,r)=>{let s=!!(r!=null&&r.backwards);if(n===!1)return!1;let{length:i}=e,o=n;for(;o>=0&&oSt(n,e))}function Ii(t,e){let n=e.singleQuote?"'":'"';return t.includes('"')||t.includes("'")?t:n+t+n}function me(t){return T(!1,t,Mc,(e,n,r,s,i)=>!r&&s?yn(s)+ne(i||""):e)}function yn(t){return Ni(t).replace(/\.0(?=$|e)/,"")}function qi(t){return t.trailingComma==="es5"||t.trailingComma==="all"}function Bc(t,e,n){var d;let{node:r}=t,s=t.parent,i=t.grandparent,o=ii(t),a=o&&s.type==="value-value"&&(o==="grid"||o.startsWith("grid-template")),u=t.findAncestor(m=>m.type==="css-atrule"),c=u&&et(u,e),f=r.groups.some(m=>cn(m)),p=t.map(n,"groups"),l=[],g=Ee(t,"url"),x=!1,h=!1;for(let m=0;mve:O!==-1?x=!0:ve!==-1&&(x=!1)}if(x||Lt(w)||Lt(v)||w.type==="value-atword"&&(w.value===""||w.value.endsWith("["))||v.type==="value-word"&&v.value.startsWith("]")||w.value==="~"||w.type!=="value-string"&&w.value&&w.value.includes("\\")&&v&&v.type!=="value-comment"||b!=null&&b.value&&b.value.indexOf("\\")===b.value.length-1&&w.type==="value-operator"&&w.value==="/"||w.value==="\\"||vi(w,v)||qt(w)||fn(w)||Dt(v)||fn(v)&&de(v)||Dt(w)&&de(v)||w.value==="--"&&qt(v))continue;let $=Rt(w),H=Rt(v);if(($&&qt(v)||H&&Dt(w))&&de(v)||!b&&Ze(w)||Ee(t,"calc")&&(j(w)||j(v)||he(w)||he(v))&&de(v))continue;let U=(j(w)||he(w))&&m===0&&(v.type==="value-number"||v.isHex)&&i&&Ti(i)&&!de(v),S=(N==null?void 0:N.type)==="value-func"||N&&tt(N)||w.type==="value-func"||tt(w),C=v.type==="value-func"||tt(v)||(b==null?void 0:b.type)==="value-func"||b&&tt(b);if(!(!(Pt(v)||Pt(w))&&!Ee(t,"calc")&&!U&&(Ze(v)&&!S||Ze(w)&&!C||j(v)&&!S||j(w)&&!C||he(v)||he(w))&&(de(v)||$&&(!b||b&&Rt(b))))&&!((e.parser==="scss"||e.parser==="less")&&$&&w.value==="-"&&nt(v)&&R(w)===P(v.open)&&v.open.value==="(")){if(cn(w)){if(s.type==="value-paren_group"){l.push(fe(_));continue}l.push(_);continue}if(c&&(yi(v)||gi(v)||di(v)||mi(w)||hi(w))){l.push(" ");continue}if(u&&u.name.toLowerCase()==="namespace"){l.push(" ");continue}if(a){w.source&&v.source&&w.source.start.line!==v.source.start.line?(l.push(_),h=!0):l.push(" ");continue}if(H){l.push(" ");continue}if((v==null?void 0:v.value)!=="..."&&!(rt(w)&&rt(v)&&R(w)===P(v))){if(rt(w)&&nt(v)&&R(w)===P(v.open)){l.push(M);continue}if(w.value==="with"&&nt(v)){l.push(" ");continue}(d=w.value)!=null&&d.endsWith("#")&&v.value==="{"&&nt(v.group)||l.push(A)}}}return f&&l.push(Qe),h&&l.unshift(_),c?D(q(l)):li(t)?D(He(l)):D(q(He(l)))}var Di=Bc;function Fc(t,e,n){let r=!!(n!=null&&n.backwards);if(e===!1)return!1;let s=t.charAt(e);if(r){if(t.charAt(e-1)==="\r"&&s===` +`||a==="\r")&&(s&&i.push([r,o]),e="initial",s=!1);continue}}for(let[o,a]of i)t=t.slice(0,o)+T(!1,t.slice(o,a),/["'*]/g," ")+t.slice(a);return t}function P(t){var e;return(e=t.source)==null?void 0:e.startOffset}function R(t){var e;return(e=t.source)==null?void 0:e.endOffset}function Ic(t){return t.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}var Ni=Ic;var dn=new Map([["em","em"],["rem","rem"],["ex","ex"],["rex","rex"],["cap","cap"],["rcap","rcap"],["ch","ch"],["rch","rch"],["ic","ic"],["ric","ric"],["lh","lh"],["rlh","rlh"],["vw","vw"],["svw","svw"],["lvw","lvw"],["dvw","dvw"],["vh","vh"],["svh","svh"],["lvh","lvh"],["dvh","dvh"],["vi","vi"],["svi","svi"],["lvi","lvi"],["dvi","dvi"],["vb","vb"],["svb","svb"],["lvb","lvb"],["dvb","dvb"],["vmin","vmin"],["svmin","svmin"],["lvmin","lvmin"],["dvmin","dvmin"],["vmax","vmax"],["svmax","svmax"],["lvmax","lvmax"],["dvmax","dvmax"],["cm","cm"],["mm","mm"],["q","Q"],["in","in"],["pt","pt"],["pc","pc"],["px","px"],["deg","deg"],["grad","grad"],["rad","rad"],["turn","turn"],["s","s"],["ms","ms"],["hz","Hz"],["khz","kHz"],["dpi","dpi"],["dpcm","dpcm"],["dppx","dppx"],["x","x"],["cqw","cqw"],["cqh","cqh"],["cqi","cqi"],["cqb","cqb"],["cqmin","cqmin"],["cqmax","cqmax"]]);function Pi(t){let e=t.toLowerCase();return dn.has(e)?dn.get(e):t}var Ri=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gs,qc=/(?:\d*\.\d+|\d+\.?)(?:[Ee][+-]?\d+)?/g,Dc=/[A-Za-z]+/g,Lc=/[$@]?[A-Z_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/g,Mc=new RegExp(Ri.source+`|(${Lc.source})?(${qc.source})(${Dc.source})?`,"g");function W(t,e){return T(!1,t,Ri,n=>St(n,e))}function Ii(t,e){let n=e.singleQuote?"'":'"';return t.includes('"')||t.includes("'")?t:n+t+n}function me(t){return T(!1,t,Mc,(e,n,r,s,i)=>!r&&s?mn(s)+ne(i||""):e)}function mn(t){return Ni(t).replace(/\.0(?=$|e)/,"")}function qi(t){return t.trailingComma==="es5"||t.trailingComma==="all"}function Bc(t,e,n){var d;let{node:r}=t,s=t.parent,i=t.grandparent,o=ii(t),a=o&&s.type==="value-value"&&(o==="grid"||o.startsWith("grid-template")),u=t.findAncestor(m=>m.type==="css-atrule"),c=u&&et(u,e),f=r.groups.some(m=>ln(m)),p=t.map(n,"groups"),l=[],g=Ee(t,"url"),x=!1,h=!1;for(let m=0;mve:O!==-1?x=!0:ve!==-1&&(x=!1)}if(x||Lt(w)||Lt(v)||w.type==="value-atword"&&(w.value===""||w.value.endsWith("["))||v.type==="value-word"&&v.value.startsWith("]")||w.value==="~"||w.type!=="value-string"&&w.value&&w.value.includes("\\")&&v&&v.type!=="value-comment"||b!=null&&b.value&&b.value.indexOf("\\")===b.value.length-1&&w.type==="value-operator"&&w.value==="/"||w.value==="\\"||vi(w,v)||qt(w)||cn(w)||Dt(v)||cn(v)&&de(v)||Dt(w)&&de(v)||w.value==="--"&&qt(v))continue;let $=Rt(w),H=Rt(v);if(($&&qt(v)||H&&Dt(w))&&de(v)||!b&&Ze(w)||Ee(t,"calc")&&(j(w)||j(v)||he(w)||he(v))&&de(v))continue;let U=(j(w)||he(w))&&m===0&&(v.type==="value-number"||v.isHex)&&i&&Ti(i)&&!de(v),S=(N==null?void 0:N.type)==="value-func"||N&&tt(N)||w.type==="value-func"||tt(w),C=v.type==="value-func"||tt(v)||(b==null?void 0:b.type)==="value-func"||b&&tt(b);if(e.parser==="scss"&&$&&w.value==="-"&&v.type==="value-func"){l.push(" ");continue}if(!(!(Pt(v)||Pt(w))&&!Ee(t,"calc")&&!U&&(Ze(v)&&!S||Ze(w)&&!C||j(v)&&!S||j(w)&&!C||he(v)||he(w))&&(de(v)||$&&(!b||b&&Rt(b))))&&!((e.parser==="scss"||e.parser==="less")&&$&&w.value==="-"&&nt(v)&&R(w)===P(v.open)&&v.open.value==="(")){if(ln(w)){if(s.type==="value-paren_group"){l.push(fe(_));continue}l.push(_);continue}if(c&&(yi(v)||gi(v)||di(v)||mi(w)||hi(w))){l.push(" ");continue}if(u&&u.name.toLowerCase()==="namespace"){l.push(" ");continue}if(a){w.source&&v.source&&w.source.start.line!==v.source.start.line?(l.push(_),h=!0):l.push(" ");continue}if(H){l.push(" ");continue}if((v==null?void 0:v.value)!=="..."&&!(rt(w)&&rt(v)&&R(w)===P(v))){if(rt(w)&&nt(v)&&R(w)===P(v.open)){l.push(M);continue}if(w.value==="with"&&nt(v)){l.push(" ");continue}(d=w.value)!=null&&d.endsWith("#")&&v.value==="{"&&nt(v.group)||l.push(A)}}}return f&&l.push(Qe),h&&l.unshift(_),c?D(q(l)):li(t)?D(He(l)):D(q(He(l)))}var Di=Bc;function Fc(t,e,n){let r=!!(n!=null&&n.backwards);if(e===!1)return!1;let s=t.charAt(e);if(r){if(t.charAt(e-1)==="\r"&&s===` `)return e-2;if(s===` `||s==="\r"||s==="\u2028"||s==="\u2029")return e-1}else{if(s==="\r"&&t.charAt(e+1)===` `)return e+2;if(s===` -`||s==="\r"||s==="\u2028"||s==="\u2029")return e+1}return e}var $t=Fc;function $c(t,e){if(e===!1)return!1;if(t.charAt(e)==="/"&&t.charAt(e+1)==="*"){for(let n=e+2;nln(t,e))?At(","):""}function Bi(t,e,n){let{node:r,parent:s}=t,i=t.map(({node:g})=>typeof g=="string"?g:n(),"groups");if(s&&ci(s)&&(r.groups.length===1||r.groups.length>0&&r.groups[0].type==="value-comma_group"&&r.groups[0].groups.length>0&&r.groups[0].groups[0].type==="value-word"&&r.groups[0].groups[0].value.startsWith("data:")))return[r.open?n("open"):"",Y(",",i),r.close?n("close"):""];if(!r.open){let g=gn(t),x=Y([",",g?_:A],i);return q(g?[_,x]:D(He(x)))}let o=t.map(({node:g,isLast:x,index:h})=>{var b;let d=i[h];if(It(g)&&g.type==="value-comma_group"&&g.groups&&g.groups[0].type!=="value-paren_group"&&((b=g.groups[2])==null?void 0:b.type)==="value-paren_group"){let w=Ds(d.contents.contents);w[1]=D(w[1]),d=D(fe(d))}let m=[d,x?Yc(t,e):","];if(!x&&g.type==="value-comma_group"&&ee(g.groups)){let w=G(!1,g.groups,-1);!w.source&&w.close&&(w=w.close),w.source&&Wt(e.originalText,R(w))&&m.push(_)}return m},"groups"),a=ki(r,s),u=Ei(r,s),c=ln(t,e),f=u||c&&!a,p=u||a,l=D([r.open?n("open"):"",q([M,Y(A,o)]),M,r.close?n("close"):""],{shouldBreak:f});return p?fe(l):l}function gn(t){return t.match(e=>e.type==="value-paren_group"&&!e.open&&e.groups.some(n=>n.type==="value-comma_group"),(e,n)=>n==="group"&&e.type==="value-value",(e,n)=>n==="group"&&e.type==="value-root",(e,n)=>n==="value"&&(e.type==="css-decl"&&!e.prop.startsWith("--")||e.type==="css-atrule"&&e.variable))}function Gc(t,e,n){let r=[];return t.each(()=>{let{node:s,previous:i}=t;if((i==null?void 0:i.type)==="css-comment"&&i.text.trim()==="prettier-ignore"?r.push(e.originalText.slice(P(s),R(s))):r.push(n()),t.isLast)return;let{next:o}=t;o.type==="css-comment"&&!Ut(e.originalText,P(o),{backwards:!0})&&!Te(s)||o.type==="css-atrule"&&o.name==="else"&&s.type!=="css-comment"?r.push(" "):(r.push(e.__isHTMLStyleAttribute?A:_),Wt(e.originalText,R(s))&&!Te(s)&&r.push(_))},"nodes"),r}var Oe=Gc;function Kc(t,e,n){var s,i,o,a,u,c;let{node:r}=t;switch(r.type){case"front-matter":return[r.raw,_];case"css-root":{let f=Oe(t,e,n),p=r.raws.after.trim();return p.startsWith(";")&&(p=p.slice(1).trim()),[r.frontMatter?[n("frontMatter"),_]:"",f,p?` ${p}`:"",r.nodes.length>0?_:""]}case"css-comment":{let f=r.inline||r.raws.inline,p=e.originalText.slice(P(r),R(r));return f?p.trimEnd():p}case"css-rule":return[n("selector"),r.important?" !important":"",r.nodes?[((s=r.selector)==null?void 0:s.type)==="selector-unknown"&&Ce(r.selector.value)?A:r.selector?" ":"","{",r.nodes.length>0?q([_,Oe(t,e,n)]):"",_,"}",pi(r)?";":""]:";"];case"css-decl":{let f=t.parent,{between:p}=r.raws,l=p.trim(),g=l===":",x=typeof r.value=="string"&&/^ *$/.test(r.value),h=typeof r.value=="string"?r.value:n("value");return h=xi(r)?Ls(h):h,!g&&Ce(l)&&!((o=(i=r.value)==null?void 0:i.group)!=null&&o.group&&t.call(()=>gn(t),"value","group","group"))&&(h=q([_,fe(h)])),[T(!1,r.raws.before,/[\s;]/g,""),f.type==="css-atrule"&&f.variable||ui(t)?r.prop:ne(r.prop),l.startsWith("//")?" ":"",l,r.extend||x?"":" ",e.parser==="less"&&r.extend&&r.selector?["extend(",n("selector"),")"]:"",h,r.raws.important?r.raws.important.replace(/\s*!\s*important/i," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/i," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/i," !global"):r.scssGlobal?" !global":"",r.nodes?[" {",q([M,Oe(t,e,n)]),M,"}"]:wi(r)&&!f.raws.semicolon&&e.originalText[R(r)-1]!==";"?"":e.__isHTMLStyleAttribute&&Nt(t,r)?At(";"):";"]}case"css-atrule":{let f=t.parent,p=un(r)&&!f.raws.semicolon&&e.originalText[R(r)-1]!==";";if(e.parser==="less"){if(r.mixin)return[n("selector"),r.important?" !important":"",p?"":";"];if(r.function)return[r.name,typeof r.params=="string"?r.params:n("params"),p?"":";"];if(r.variable)return["@",r.name,": ",r.value?n("value"):"",r.raws.between.trim()?r.raws.between.trim()+" ":"",r.nodes?["{",q([r.nodes.length>0?M:"",Oe(t,e,n)]),M,"}"]:"",p?"":";"]}let l=r.name==="import"&&((a=r.params)==null?void 0:a.type)==="value-unknown"&&r.params.value.endsWith(";");return["@",an(r)||r.name.endsWith(":")?r.name:ne(r.name),r.params?[an(r)?"":un(r)?r.raws.afterName===""?"":r.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(r.raws.afterName)?[_,_]:/^\s*\n/.test(r.raws.afterName)?_:" ":" ",typeof r.params=="string"?r.params:n("params")]:"",r.selector?q([" ",n("selector")]):"",r.value?D([" ",n("value"),et(r,e)?bi(r)?" ":A:""]):r.name==="else"?" ":"",r.nodes?[et(r,e)?"":r.selector&&!r.selector.nodes&&typeof r.selector.value=="string"&&Ce(r.selector.value)||!r.selector&&typeof r.params=="string"&&Ce(r.params)?A:" ","{",q([r.nodes.length>0?M:"",Oe(t,e,n)]),M,"}"]:p||l?"":";"]}case"media-query-list":{let f=[];return t.each(({node:p})=>{p.type==="media-query"&&p.value===""||f.push(n())},"nodes"),D(q(Y(A,f)))}case"media-query":return[Y(" ",t.map(n,"nodes")),Nt(t,r)?"":","];case"media-type":return me(W(r.value,e));case"media-feature-expression":return r.nodes?["(",...t.map(n,"nodes"),")"]:r.value;case"media-feature":return ne(W(T(!1,r.value,/ +/g," "),e));case"media-colon":return[r.value," "];case"media-value":return me(W(r.value,e));case"media-keyword":return W(r.value,e);case"media-url":return W(T(!1,T(!1,r.value,/^url\(\s+/gi,"url("),/\s+\)$/g,")"),e);case"media-unknown":return r.value;case"selector-root":return D([Se(t,"custom-selector")?[t.findAncestor(f=>f.type==="css-atrule").customSelector,A]:"",Y([",",Se(t,["extend","custom-selector","nest"])?A:_],t.map(n,"nodes"))]);case"selector-selector":return D(q(t.map(n,"nodes")));case"selector-comment":return r.value;case"selector-string":return W(r.value,e);case"selector-tag":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",((u=t.previous)==null?void 0:u.type)==="selector-nesting"?r.value:me(ai(t,r.value)?r.value.toLowerCase():r.value)];case"selector-id":return["#",r.value];case"selector-class":return[".",me(W(r.value,e))];case"selector-attribute":return["[",r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.attribute.trim(),r.operator??"",r.value?Ii(W(r.value.trim(),e),e):"",r.insensitive?" i":"","]"];case"selector-combinator":{if(r.value==="+"||r.value===">"||r.value==="~"||r.value===">>>"){let l=t.parent;return[l.type==="selector-selector"&&l.nodes[0]===r?"":A,r.value,Nt(t,r)?"":" "]}let f=r.value.trim().startsWith("(")?A:"",p=me(W(r.value.trim(),e))||A;return[f,p]}case"selector-universal":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.value];case"selector-pseudo":return[ne(r.value),ee(r.nodes)?D(["(",q([M,Y([",",A],t.map(n,"nodes"))]),M,")"]):""];case"selector-nesting":return r.value;case"selector-unknown":{let f=t.findAncestor(g=>g.type==="css-rule");if(f!=null&&f.isSCSSNesterProperty)return me(W(ne(r.value),e));let p=t.parent;if((c=p.raws)!=null&&c.selector){let g=P(p),x=g+p.raws.selector.length;return e.originalText.slice(g,x).trim()}let l=t.grandparent;if(p.type==="value-paren_group"&&(l==null?void 0:l.type)==="value-func"&&l.value==="selector"){let g=R(p.open)+1,x=P(p.close),h=e.originalText.slice(g,x).trim();return Ce(h)?[Qe,h]:h}return r.value}case"value-value":case"value-root":return n("group");case"value-comment":return e.originalText.slice(P(r),R(r));case"value-comma_group":return Di(t,e,n);case"value-paren_group":return Bi(t,e,n);case"value-func":return[r.value,Se(t,"supports")&&_i(r)?" ":"",n("group")];case"value-paren":return r.value;case"value-number":return[yn(r.value),Pi(r.unit)];case"value-operator":return r.value;case"value-word":return r.isColor&&r.isHex||oi(r.value)?r.value.toLowerCase():r.value;case"value-colon":{let{previous:f}=t;return[r.value,typeof(f==null?void 0:f.value)=="string"&&f.value.endsWith("\\")||Ee(t,"url")?"":A]}case"value-string":return St(r.raws.quote+r.value+r.raws.quote,e);case"value-atword":return["@",r.value];case"value-unicode-range":return r.value;case"value-unknown":return r.value;case"value-comma":default:throw new Ms(r,"PostCSS")}}var Hc={print:Kc,embed:Ws,insertPragma:ti,massageAstNode:Fs,getVisitorKeys:si},Fi=Hc;var Zr={};Os(Zr,{css:()=>Bg,less:()=>Fg,scss:()=>$g});var ql=ue(dt(),1),Dl=ue(Ho(),1),Ll=ue(Pa(),1);function Jp(t,e){let n=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(n,e)}var Ra=Jp;function Xp(t,e){return e.parser!=="scss"||!t.selector?!1:t.selector.replace(/\/\*.*?\*\//,"").replace(/\/\/.*\n/,"").trim().endsWith(":")}var Ia=Xp;var Zp=new Set(["import","use","forward"]);function eh(t){return Zp.has(t)}var qa=eh;var Tl=ue(Ou(),1);var id=t=>{for(;t.parent;)t=t.parent;return t},Ar=id;function od(t){return Ar(t).text.slice(t.group.open.sourceIndex+1,t.group.close.sourceIndex).trim()}var Au=od;function ad(t){if(ee(t)){for(let e=t.length-1;e>0;e--)if(t[e].type==="word"&&t[e].value==="{"&&t[e-1].type==="word"&&t[e-1].value.endsWith("#"))return!0}return!1}var Nu=ad;function ud(t){return t.some(e=>e.type==="string"||e.type==="func"&&!e.value.endsWith("\\"))}var Pu=ud;function ld(t,e){return!!(e.parser==="scss"&&(t==null?void 0:t.type)==="word"&&t.value.startsWith("$"))}var Ru=ld;var _l=ue(kl(),1);function X(t,e,n){if(t&&typeof t=="object"){delete t.parent;for(let r in t)X(t[r],e,n),r==="type"&&typeof t[r]=="string"&&!t[r].startsWith(e)&&(!n||!n.test(t[r]))&&(t[r]=e+t[r])}return t}function ys(t){if(t&&typeof t=="object"){delete t.parent;for(let e in t)ys(t[e]);!Array.isArray(t)&&t.value&&!t.type&&(t.type="unknown")}return t}function xg(t){if(/\/\/|\/\*/.test(t))return{type:"selector-unknown",value:t.trim()};let e;try{new _l.default(n=>{e=n}).process(t)}catch{return{type:"selector-unknown",value:t}}return X(e,"selector-")}var Z=xg;function bg(t,e){var u;let{nodes:n}=t,r={open:null,close:null,groups:[],type:"paren_group"},s=[r],i=r,o={groups:[],type:"comma_group"},a=[o];for(let c=0;c0&&r.groups.push(o),r.close=f,a.length===1)throw new Error("Unbalanced parenthesis");a.pop(),o=G(!1,a,-1),o.groups.push(r),s.pop(),r=G(!1,s,-1)}else f.type==="comma"?(r.groups.push(o),o={groups:[],type:"comma_group"},a[a.length-1]=o):o.groups.push(f)}return o.groups.length>0&&r.groups.push(o),i}function Xr(t){return t.type==="paren_group"&&!t.open&&!t.close&&t.groups.length===1||t.type==="comma_group"&&t.groups.length===1?Xr(t.groups[0]):t.type==="paren_group"||t.type==="comma_group"?{...t,groups:t.groups.map(Xr)}:t}function El(t,e){if(t&&typeof t=="object")for(let n in t)n!=="parent"&&(El(t[n],e),n==="nodes"&&(t.group=Xr(bg(t,e)),delete t[n]));return t}function kg(t,e){if(e.parser==="less"&&t.startsWith("~`"))return{type:"value-unknown",value:t};let n=null;try{n=new Tl.default(t,{loose:!0}).parse()}catch{return{type:"value-unknown",value:t}}n.text=t;let r=El(n,e);return X(r,"value-",/^selector-/)}var ae=kg;var Rl=ue(Pl(),1);var qg=Rl.default.default;function Dg(t){let e;try{e=qg(t)}catch{return{type:"selector-unknown",value:t}}return X(ys(e),"media-")}var Il=Dg;var Lg=/(\s*)(!default).*$/,Mg=/(\s*)(!global).*$/;function Ml(t,e){var n,r;if(t&&typeof t=="object"){delete t.parent;for(let a in t)Ml(t[a],e);if(!t.type)return t;if(t.raws??(t.raws={}),t.type==="css-decl"&&typeof t.prop=="string"&&t.prop.startsWith("--")&&typeof t.value=="string"&&t.value.startsWith("{")){let a;if(t.value.trimEnd().endsWith("}")){let u=e.originalText.slice(0,t.source.start.offset),c="a".repeat(t.prop.length)+e.originalText.slice(t.source.start.offset+t.prop.length,t.source.end.offset+1),f=T(!1,u,/[^\n]/g," ")+c,p;e.parser==="scss"?p=$l:e.parser==="less"?p=Fl:p=Bl;let l;try{l=p(f,{...e})}catch{}((n=l==null?void 0:l.nodes)==null?void 0:n.length)===1&&l.nodes[0].type==="css-rule"&&(a=l.nodes[0].nodes)}return a?t.value={type:"css-rule",nodes:a}:t.value={type:"value-unknown",value:t.raws.value.raw},t}let s="";typeof t.selector=="string"&&(s=t.raws.selector?t.raws.selector.scss??t.raws.selector.raw:t.selector,t.raws.between&&t.raws.between.trim().length>0&&(s+=t.raws.between),t.raws.selector=s);let i="";typeof t.value=="string"&&(i=t.raws.value?t.raws.value.scss??t.raws.value.raw:t.value,i=i.trim(),t.raws.value=i);let o="";if(typeof t.params=="string"&&(o=t.raws.params?t.raws.params.scss??t.raws.params.raw:t.params,t.raws.afterName&&t.raws.afterName.trim().length>0&&(o=t.raws.afterName+o),t.raws.between&&t.raws.between.trim().length>0&&(o=o+t.raws.between),o=o.trim(),t.raws.params=o),s.trim().length>0)return s.startsWith("@")&&s.endsWith(":")?t:t.mixin?(t.selector=ae(s,e),t):(Ia(t,e)&&(t.isSCSSNesterProperty=!0),t.selector=Z(s),t);if(i.length>0){let a=i.match(Lg);a&&(i=i.slice(0,a.index),t.scssDefault=!0,a[0].trim()!=="!default"&&(t.raws.scssDefault=a[0]));let u=i.match(Mg);if(u&&(i=i.slice(0,u.index),t.scssGlobal=!0,u[0].trim()!=="!global"&&(t.raws.scssGlobal=u[0])),i.startsWith("progid:"))return{type:"value-unknown",value:i};t.value=ae(i,e)}if(e.parser==="less"&&t.type==="css-decl"&&i.startsWith("extend(")&&(t.extend||(t.extend=t.raws.between===":"),t.extend&&!t.selector&&(delete t.value,t.selector=Z(i.slice(7,-1)))),t.type==="css-atrule"){if(e.parser==="less"){if(t.mixin){let a=t.raws.identifier+t.name+t.raws.afterName+t.raws.params;return t.selector=Z(a),delete t.params,t}if(t.function)return t}if(e.parser==="css"&&t.name==="custom-selector"){let a=t.params.match(/:--\S+\s+/)[0].trim();return t.customSelector=a,t.selector=Z(t.params.slice(a.length).trim()),delete t.params,t}if(e.parser==="less"){if(t.name.includes(":")&&!t.params){t.variable=!0;let a=t.name.split(":");t.name=a[0],t.value=ae(a.slice(1).join(":"),e)}if(!["page","nest","keyframes"].includes(t.name)&&((r=t.params)==null?void 0:r[0])===":"){t.variable=!0;let a=t.params.slice(1);a&&(t.value=ae(a,e)),t.raws.afterName+=":"}if(t.variable)return delete t.params,t.value||delete t.value,t}}if(t.type==="css-atrule"&&o.length>0){let{name:a}=t,u=t.name.toLowerCase();return a==="warn"||a==="error"?(t.params={type:"media-unknown",value:o},t):a==="extend"||a==="nest"?(t.selector=Z(o),delete t.params,t):a==="at-root"?(/^\(\s*(?:without|with)\s*:.+\)$/s.test(o)?t.params=ae(o,e):(t.selector=Z(o),delete t.params),t):qa(u)?(t.import=!0,delete t.filename,t.params=ae(o,e),t):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(a)?(o=o.replace(/(\$\S+?)(\s+)?\.{3}/,"$1...$2"),o=o.replace(/^(?!if)(\S+)(\s+)\(/,"$1($2"),t.value=ae(o,e),delete t.params,t):["media","custom-media"].includes(u)?o.includes("#{")?{type:"media-unknown",value:o}:(t.params=Il(o),t):(t.params=o,t)}}return t}function Ts(t,e,n){let r=je(e),{frontMatter:s}=r;e=r.content;let i;try{i=t(e,{map:!1})}catch(o){let{name:a,reason:u,line:c,column:f}=o;throw typeof c!="number"?o:Ra(`${a}: ${u}`,{loc:{start:{line:c,column:f}},cause:o})}return n.originalText=e,i=Ml(X(i,"css-"),n),dn(i,e),s&&(s.source={startOffset:0,endOffset:s.raw.length},i.frontMatter=s),i}function Bl(t,e={}){return Ts(ql.default.default,t,e)}function Fl(t,e={}){return Ts(n=>Dl.default.parse(Ai(n)),t,e)}function $l(t,e={}){return Ts(Ll.default,t,e)}var Es={astFormat:"postcss",hasPragma:ei,locStart:P,locEnd:R},Bg={...Es,parse:Bl},Fg={...Es,parse:Fl},$g={...Es,parse:$l};var Ul=[{linguistLanguageId:50,name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css",".wxss"],parsers:["css"],vscodeLanguageIds:["css"]},{linguistLanguageId:262764437,name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",parsers:["css"],vscodeLanguageIds:["postcss"]},{linguistLanguageId:198,name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["less"],vscodeLanguageIds:["less"]},{linguistLanguageId:329,name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],parsers:["scss"],vscodeLanguageIds:["scss"]}];var Wl={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Ug={singleQuote:Wl.singleQuote},zl=Ug;var Wg={postcss:Fi};var Vk=Ss;export{Vk as default,Ul as languages,zl as options,Zr as parsers,Wg as printers}; +`||s==="\r"||s==="\u2028"||s==="\u2029")return e+1}return e}var $t=Fc;function $c(t,e){if(e===!1)return!1;if(t.charAt(e)==="/"&&t.charAt(e+1)==="*"){for(let n=e+2;nn.type==="value-comment"))&&qi(e)&&t.callParent(()=>un(t,e))?At(","):""}function Bi(t,e,n){let{node:r,parent:s}=t,i=t.map(({node:g})=>typeof g=="string"?g:n(),"groups");if(s&&ci(s)&&(r.groups.length===1||r.groups.length>0&&r.groups[0].type==="value-comma_group"&&r.groups[0].groups.length>0&&r.groups[0].groups[0].type==="value-word"&&r.groups[0].groups[0].value.startsWith("data:")))return[r.open?n("open"):"",Y(",",i),r.close?n("close"):""];if(!r.open){let g=yn(t),x=Y([",",g?_:A],i);return q(g?[_,x]:D(He(x)))}let o=t.map(({node:g,isLast:x,index:h})=>{var b;let d=i[h];if(It(g)&&g.type==="value-comma_group"&&g.groups&&g.groups[0].type!=="value-paren_group"&&((b=g.groups[2])==null?void 0:b.type)==="value-paren_group"){let w=Ds(d.contents.contents);w[1]=D(w[1]),d=D(fe(d))}let m=[d,x?Yc(t,e):","];if(!x&&g.type==="value-comma_group"&&ee(g.groups)){let w=G(!1,g.groups,-1);!w.source&&w.close&&(w=w.close),w.source&&Wt(e.originalText,R(w))&&m.push(_)}return m},"groups"),a=ki(r,s),u=Ei(r,s),c=un(t,e),f=u||c&&!a,p=u||a,l=D([r.open?n("open"):"",q([M,Y(A,o)]),M,r.close?n("close"):""],{shouldBreak:f});return p?fe(l):l}function yn(t){return t.match(e=>e.type==="value-paren_group"&&!e.open&&e.groups.some(n=>n.type==="value-comma_group"),(e,n)=>n==="group"&&e.type==="value-value",(e,n)=>n==="group"&&e.type==="value-root",(e,n)=>n==="value"&&(e.type==="css-decl"&&!e.prop.startsWith("--")||e.type==="css-atrule"&&e.variable))}function Gc(t,e,n){let r=[];return t.each(()=>{let{node:s,previous:i}=t;if((i==null?void 0:i.type)==="css-comment"&&i.text.trim()==="prettier-ignore"?r.push(e.originalText.slice(P(s),R(s))):r.push(n()),t.isLast)return;let{next:o}=t;o.type==="css-comment"&&!Ut(e.originalText,P(o),{backwards:!0})&&!Te(s)||o.type==="css-atrule"&&o.name==="else"&&s.type!=="css-comment"?r.push(" "):(r.push(e.__isHTMLStyleAttribute?A:_),Wt(e.originalText,R(s))&&!Te(s)&&r.push(_))},"nodes"),r}var Oe=Gc;function Kc(t,e,n){var s,i,o,a,u,c;let{node:r}=t;switch(r.type){case"front-matter":return[r.raw,_];case"css-root":{let f=Oe(t,e,n),p=r.raws.after.trim();return p.startsWith(";")&&(p=p.slice(1).trim()),[r.frontMatter?[n("frontMatter"),_]:"",f,p?` ${p}`:"",r.nodes.length>0?_:""]}case"css-comment":{let f=r.inline||r.raws.inline,p=e.originalText.slice(P(r),R(r));return f?p.trimEnd():p}case"css-rule":return[n("selector"),r.important?" !important":"",r.nodes?[((s=r.selector)==null?void 0:s.type)==="selector-unknown"&&Ce(r.selector.value)?A:r.selector?" ":"","{",r.nodes.length>0?q([_,Oe(t,e,n)]):"",_,"}",pi(r)?";":""]:";"];case"css-decl":{let f=t.parent,{between:p}=r.raws,l=p.trim(),g=l===":",x=typeof r.value=="string"&&/^ *$/.test(r.value),h=typeof r.value=="string"?r.value:n("value");return h=xi(r)?Ls(h):h,!g&&Ce(l)&&!((o=(i=r.value)==null?void 0:i.group)!=null&&o.group&&t.call(()=>yn(t),"value","group","group"))&&(h=q([_,fe(h)])),[T(!1,r.raws.before,/[\s;]/g,""),f.type==="css-atrule"&&f.variable||ui(t)?r.prop:ne(r.prop),l.startsWith("//")?" ":"",l,r.extend||x?"":" ",e.parser==="less"&&r.extend&&r.selector?["extend(",n("selector"),")"]:"",h,r.raws.important?r.raws.important.replace(/\s*!\s*important/i," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/i," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/i," !global"):r.scssGlobal?" !global":"",r.nodes?[" {",q([M,Oe(t,e,n)]),M,"}"]:wi(r)&&!f.raws.semicolon&&e.originalText[R(r)-1]!==";"?"":e.__isHTMLStyleAttribute&&Nt(t,r)?At(";"):";"]}case"css-atrule":{let f=t.parent,p=an(r)&&!f.raws.semicolon&&e.originalText[R(r)-1]!==";";if(e.parser==="less"){if(r.mixin)return[n("selector"),r.important?" !important":"",p?"":";"];if(r.function)return[r.name,typeof r.params=="string"?r.params:n("params"),p?"":";"];if(r.variable)return["@",r.name,": ",r.value?n("value"):"",r.raws.between.trim()?r.raws.between.trim()+" ":"",r.nodes?["{",q([r.nodes.length>0?M:"",Oe(t,e,n)]),M,"}"]:"",p?"":";"]}let l=r.name==="import"&&((a=r.params)==null?void 0:a.type)==="value-unknown"&&r.params.value.endsWith(";");return["@",on(r)||r.name.endsWith(":")?r.name:ne(r.name),r.params?[on(r)?"":an(r)?r.raws.afterName===""?"":r.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(r.raws.afterName)?[_,_]:/^\s*\n/.test(r.raws.afterName)?_:" ":" ",typeof r.params=="string"?r.params:n("params")]:"",r.selector?q([" ",n("selector")]):"",r.value?D([" ",n("value"),et(r,e)?bi(r)?" ":A:""]):r.name==="else"?" ":"",r.nodes?[et(r,e)?"":r.selector&&!r.selector.nodes&&typeof r.selector.value=="string"&&Ce(r.selector.value)||!r.selector&&typeof r.params=="string"&&Ce(r.params)?A:" ","{",q([r.nodes.length>0?M:"",Oe(t,e,n)]),M,"}"]:p||l?"":";"]}case"media-query-list":{let f=[];return t.each(({node:p})=>{p.type==="media-query"&&p.value===""||f.push(n())},"nodes"),D(q(Y(A,f)))}case"media-query":return[Y(" ",t.map(n,"nodes")),Nt(t,r)?"":","];case"media-type":return me(W(r.value,e));case"media-feature-expression":return r.nodes?["(",...t.map(n,"nodes"),")"]:r.value;case"media-feature":return ne(W(T(!1,r.value,/ +/g," "),e));case"media-colon":return[r.value," "];case"media-value":return me(W(r.value,e));case"media-keyword":return W(r.value,e);case"media-url":return W(T(!1,T(!1,r.value,/^url\(\s+/gi,"url("),/\s+\)$/g,")"),e);case"media-unknown":return r.value;case"selector-root":return D([Se(t,"custom-selector")?[t.findAncestor(f=>f.type==="css-atrule").customSelector,A]:"",Y([",",Se(t,["extend","custom-selector","nest"])?A:_],t.map(n,"nodes"))]);case"selector-selector":return D(q(t.map(n,"nodes")));case"selector-comment":return r.value;case"selector-string":return W(r.value,e);case"selector-tag":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",((u=t.previous)==null?void 0:u.type)==="selector-nesting"?r.value:me(ai(t,r.value)?r.value.toLowerCase():r.value)];case"selector-id":return["#",r.value];case"selector-class":return[".",me(W(r.value,e))];case"selector-attribute":return["[",r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.attribute.trim(),r.operator??"",r.value?Ii(W(r.value.trim(),e),e):"",r.insensitive?" i":"","]"];case"selector-combinator":{if(r.value==="+"||r.value===">"||r.value==="~"||r.value===">>>"){let l=t.parent;return[l.type==="selector-selector"&&l.nodes[0]===r?"":A,r.value,Nt(t,r)?"":" "]}let f=r.value.trim().startsWith("(")?A:"",p=me(W(r.value.trim(),e))||A;return[f,p]}case"selector-universal":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.value];case"selector-pseudo":return[ne(r.value),ee(r.nodes)?D(["(",q([M,Y([",",A],t.map(n,"nodes"))]),M,")"]):""];case"selector-nesting":return r.value;case"selector-unknown":{let f=t.findAncestor(g=>g.type==="css-rule");if(f!=null&&f.isSCSSNesterProperty)return me(W(ne(r.value),e));let p=t.parent;if((c=p.raws)!=null&&c.selector){let g=P(p),x=g+p.raws.selector.length;return e.originalText.slice(g,x).trim()}let l=t.grandparent;if(p.type==="value-paren_group"&&(l==null?void 0:l.type)==="value-func"&&l.value==="selector"){let g=R(p.open)+1,x=P(p.close),h=e.originalText.slice(g,x).trim();return Ce(h)?[Qe,h]:h}return r.value}case"value-value":case"value-root":return n("group");case"value-comment":return e.originalText.slice(P(r),R(r));case"value-comma_group":return Di(t,e,n);case"value-paren_group":return Bi(t,e,n);case"value-func":return[r.value,Se(t,"supports")&&_i(r)?" ":"",n("group")];case"value-paren":return r.value;case"value-number":return[mn(r.value),Pi(r.unit)];case"value-operator":return r.value;case"value-word":return r.isColor&&r.isHex||oi(r.value)?r.value.toLowerCase():r.value;case"value-colon":{let{previous:f}=t;return[r.value,typeof(f==null?void 0:f.value)=="string"&&f.value.endsWith("\\")||Ee(t,"url")?"":A]}case"value-string":return St(r.raws.quote+r.value+r.raws.quote,e);case"value-atword":return["@",r.value];case"value-unicode-range":return r.value;case"value-unknown":return r.value;case"value-comma":default:throw new Ms(r,"PostCSS")}}var Hc={print:Kc,embed:Ws,insertPragma:ti,massageAstNode:Fs,getVisitorKeys:si},Fi=Hc;var Es={};Os(Es,{css:()=>Bg,less:()=>Fg,scss:()=>$g});var ql=ue(dt(),1),Dl=ue(Ho(),1),Ll=ue(Pa(),1);function Jp(t,e){let n=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(n,e)}var Ra=Jp;function Xp(t,e){return e.parser!=="scss"||!t.selector?!1:t.selector.replace(/\/\*.*?\*\//,"").replace(/\/\/.*\n/,"").trim().endsWith(":")}var Ia=Xp;var Zp=new Set(["import","use","forward"]);function eh(t){return Zp.has(t)}var qa=eh;var Tl=ue(Ou(),1);var id=t=>{for(;t.parent;)t=t.parent;return t},Ar=id;function od(t){return Ar(t).text.slice(t.group.open.sourceIndex+1,t.group.close.sourceIndex).trim()}var Au=od;function ad(t){if(ee(t)){for(let e=t.length-1;e>0;e--)if(t[e].type==="word"&&t[e].value==="{"&&t[e-1].type==="word"&&t[e-1].value.endsWith("#"))return!0}return!1}var Nu=ad;function ud(t){return t.some(e=>e.type==="string"||e.type==="func"&&!e.value.endsWith("\\"))}var Pu=ud;function ld(t,e){return!!(e.parser==="scss"&&(t==null?void 0:t.type)==="word"&&t.value.startsWith("$"))}var Ru=ld;var _l=ue(kl(),1);function X(t,e,n){if(t&&typeof t=="object"){delete t.parent;for(let r in t)X(t[r],e,n),r==="type"&&typeof t[r]=="string"&&!t[r].startsWith(e)&&(!n||!n.test(t[r]))&&(t[r]=e+t[r])}return t}function ms(t){if(t&&typeof t=="object"){delete t.parent;for(let e in t)ms(t[e]);!Array.isArray(t)&&t.value&&!t.type&&(t.type="unknown")}return t}function xg(t){if(/\/\/|\/\*/.test(t))return{type:"selector-unknown",value:t.trim()};let e;try{new _l.default(n=>{e=n}).process(t)}catch{return{type:"selector-unknown",value:t}}return X(e,"selector-")}var Z=xg;function bg(t,e){var u;let{nodes:n}=t,r={open:null,close:null,groups:[],type:"paren_group"},s=[r],i=r,o={groups:[],type:"comma_group"},a=[o];for(let c=0;c0&&r.groups.push(o),r.close=f,a.length===1)throw new Error("Unbalanced parenthesis");a.pop(),o=G(!1,a,-1),o.groups.push(r),s.pop(),r=G(!1,s,-1)}else f.type==="comma"?(r.groups.push(o),o={groups:[],type:"comma_group"},a[a.length-1]=o):o.groups.push(f)}return o.groups.length>0&&r.groups.push(o),i}function Xr(t){return t.type==="paren_group"&&!t.open&&!t.close&&t.groups.length===1||t.type==="comma_group"&&t.groups.length===1?Xr(t.groups[0]):t.type==="paren_group"||t.type==="comma_group"?{...t,groups:t.groups.map(Xr)}:t}function El(t,e){if(t&&typeof t=="object")for(let n in t)n!=="parent"&&(El(t[n],e),n==="nodes"&&(t.group=Xr(bg(t,e)),delete t[n]));return t}function kg(t,e){if(e.parser==="less"&&t.startsWith("~`"))return{type:"value-unknown",value:t};let n=null;try{n=new Tl.default(t,{loose:!0}).parse()}catch{return{type:"value-unknown",value:t}}n.text=t;let r=El(n,e);return X(r,"value-",/^selector-/)}var ae=kg;var Rl=ue(Pl(),1);var qg=Rl.default.default;function Dg(t){let e;try{e=qg(t)}catch{return{type:"selector-unknown",value:t}}return X(ms(e),"media-")}var Il=Dg;var Lg=/(\s*)(!default).*$/,Mg=/(\s*)(!global).*$/;function Ml(t,e){var n,r;if(t&&typeof t=="object"){delete t.parent;for(let a in t)Ml(t[a],e);if(!t.type)return t;if(t.raws??(t.raws={}),t.type==="css-decl"&&typeof t.prop=="string"&&t.prop.startsWith("--")&&typeof t.value=="string"&&t.value.startsWith("{")){let a;if(t.value.trimEnd().endsWith("}")){let u=e.originalText.slice(0,t.source.start.offset),c="a".repeat(t.prop.length)+e.originalText.slice(t.source.start.offset+t.prop.length,t.source.end.offset+1),f=T(!1,u,/[^\n]/g," ")+c,p;e.parser==="scss"?p=$l:e.parser==="less"?p=Fl:p=Bl;let l;try{l=p(f,{...e})}catch{}((n=l==null?void 0:l.nodes)==null?void 0:n.length)===1&&l.nodes[0].type==="css-rule"&&(a=l.nodes[0].nodes)}return a?t.value={type:"css-rule",nodes:a}:t.value={type:"value-unknown",value:t.raws.value.raw},t}let s="";typeof t.selector=="string"&&(s=t.raws.selector?t.raws.selector.scss??t.raws.selector.raw:t.selector,t.raws.between&&t.raws.between.trim().length>0&&(s+=t.raws.between),t.raws.selector=s);let i="";typeof t.value=="string"&&(i=t.raws.value?t.raws.value.scss??t.raws.value.raw:t.value,i=i.trim(),t.raws.value=i);let o="";if(typeof t.params=="string"&&(o=t.raws.params?t.raws.params.scss??t.raws.params.raw:t.params,t.raws.afterName&&t.raws.afterName.trim().length>0&&(o=t.raws.afterName+o),t.raws.between&&t.raws.between.trim().length>0&&(o=o+t.raws.between),o=o.trim(),t.raws.params=o),s.trim().length>0)return s.startsWith("@")&&s.endsWith(":")?t:t.mixin?(t.selector=ae(s,e),t):(Ia(t,e)&&(t.isSCSSNesterProperty=!0),t.selector=Z(s),t);if(i.length>0){let a=i.match(Lg);a&&(i=i.slice(0,a.index),t.scssDefault=!0,a[0].trim()!=="!default"&&(t.raws.scssDefault=a[0]));let u=i.match(Mg);if(u&&(i=i.slice(0,u.index),t.scssGlobal=!0,u[0].trim()!=="!global"&&(t.raws.scssGlobal=u[0])),i.startsWith("progid:"))return{type:"value-unknown",value:i};t.value=ae(i,e)}if(e.parser==="less"&&t.type==="css-decl"&&i.startsWith("extend(")&&(t.extend||(t.extend=t.raws.between===":"),t.extend&&!t.selector&&(delete t.value,t.selector=Z(i.slice(7,-1)))),t.type==="css-atrule"){if(e.parser==="less"){if(t.mixin){let a=t.raws.identifier+t.name+t.raws.afterName+t.raws.params;return t.selector=Z(a),delete t.params,t}if(t.function)return t}if(e.parser==="css"&&t.name==="custom-selector"){let a=t.params.match(/:--\S+\s+/)[0].trim();return t.customSelector=a,t.selector=Z(t.params.slice(a.length).trim()),delete t.params,t}if(e.parser==="less"){if(t.name.includes(":")&&!t.params){t.variable=!0;let a=t.name.split(":");t.name=a[0],t.value=ae(a.slice(1).join(":"),e)}if(!["page","nest","keyframes"].includes(t.name)&&((r=t.params)==null?void 0:r[0])===":"){t.variable=!0;let a=t.params.slice(1);a&&(t.value=ae(a,e)),t.raws.afterName+=":"}if(t.variable)return delete t.params,t.value||delete t.value,t}}if(t.type==="css-atrule"&&o.length>0){let{name:a}=t,u=t.name.toLowerCase();return a==="warn"||a==="error"?(t.params={type:"media-unknown",value:o},t):a==="extend"||a==="nest"?(t.selector=Z(o),delete t.params,t):a==="at-root"?(/^\(\s*(?:without|with)\s*:.+\)$/s.test(o)?t.params=ae(o,e):(t.selector=Z(o),delete t.params),t):qa(u)?(t.import=!0,delete t.filename,t.params=ae(o,e),t):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(a)?(o=o.replace(/(\$\S+?)(\s+)?\.{3}/,"$1...$2"),o=o.replace(/^(?!if)(\S+)(\s+)\(/,"$1($2"),t.value=ae(o,e),delete t.params,t):["media","custom-media"].includes(u)?o.includes("#{")?{type:"media-unknown",value:o}:(t.params=Il(o),t):(t.params=o,t)}}return t}function _s(t,e,n){let r=je(e),{frontMatter:s}=r;e=r.content;let i;try{i=t(e,{map:!1})}catch(o){let{name:a,reason:u,line:c,column:f}=o;throw typeof c!="number"?o:Ra(`${a}: ${u}`,{loc:{start:{line:c,column:f}},cause:o})}return n.originalText=e,i=Ml(X(i,"css-"),n),hn(i,e),s&&(s.source={startOffset:0,endOffset:s.raw.length},i.frontMatter=s),i}function Bl(t,e={}){return _s(ql.default.default,t,e)}function Fl(t,e={}){return _s(n=>Dl.default.parse(Ai(n)),t,e)}function $l(t,e={}){return _s(Ll.default,t,e)}var Ts={astFormat:"postcss",hasPragma:ei,locStart:P,locEnd:R},Bg={...Ts,parse:Bl},Fg={...Ts,parse:Fl},$g={...Ts,parse:$l};var Ul=[{linguistLanguageId:50,name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css",".wxss"],parsers:["css"],vscodeLanguageIds:["css"]},{linguistLanguageId:262764437,name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",parsers:["css"],vscodeLanguageIds:["postcss"]},{linguistLanguageId:198,name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["less"],vscodeLanguageIds:["less"]},{linguistLanguageId:329,name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],parsers:["scss"],vscodeLanguageIds:["scss"]}];var Wl={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Ug={singleQuote:Wl.singleQuote},zl=Ug;var Wg={postcss:Fi};var Vk=Ss;export{Vk as default,Ul as languages,zl as options,Es as parsers,Wg as printers}; diff --git a/node_modules/prettier/plugins/typescript.js b/node_modules/prettier/plugins/typescript.js index 1b56dbb..3b39577 100644 --- a/node_modules/prettier/plugins/typescript.js +++ b/node_modules/prettier/plugins/typescript.js @@ -1,27 +1,25 @@ -(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.typescript=e()}})(function(){"use strict";var TC=Object.create;var Bd=Object.defineProperty;var xC=Object.getOwnPropertyDescriptor;var SC=Object.getOwnPropertyNames;var wC=Object.getPrototypeOf,EC=Object.prototype.hasOwnProperty;var X6=(e,t)=>()=>(e&&(t=e(e=0)),t);var tt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ud=(e,t)=>{for(var n in t)Bd(e,n,{get:t[n],enumerable:!0})},$6=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of SC(t))!EC.call(e,s)&&s!==n&&Bd(e,s,{get:()=>t[s],enumerable:!(i=xC(t,s))||i.enumerable});return e};var Xy=(e,t,n)=>(n=e!=null?TC(wC(e)):{},$6(t||!e||!e.__esModule?Bd(n,"default",{value:e,enumerable:!0}):n,e)),Er=e=>$6(Bd({},"__esModule",{value:!0}),e);var qd={};Ud(qd,{default:()=>kC});var CC,kC,zd=X6(()=>{CC=()=>()=>{},kC=CC});var Cn=tt((GK,z7)=>{var AC=Object.defineProperty,Ov=Object.getOwnPropertyNames,Ht=(e,t)=>function(){return e&&(t=(0,e[Ov(e)[0]])(e=0)),t},DC=(e,t)=>function(){return t||(0,e[Ov(e)[0]])((t={exports:{}}).exports,t),t.exports},PC=(e,t)=>{for(var n in t)AC(e,n,{get:t[n],enumerable:!0})},Mv,uf,nh,NC=Ht({"src/compiler/corePublic.ts"(){"use strict";Mv="5.1",uf="5.1.5",nh=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(nh||{})}});function Ha(e){return e?e.length:0}function hn(e,t){if(e)for(let n=0;n=0;n--){let i=t(e[n],n);if(i)return i}}function og(e,t){if(e!==void 0)for(let n=0;n=0;i--){let s=e[i];if(t(s,i))return s}}function el(e,t,n){if(e===void 0)return-1;for(let i=n??0;i=0;i--)if(t(e[i],i))return i;return-1}function RC(e,t){for(let n=0;nn(i,t[s]))}function Jv(e,t,n){for(let i=n||0;i{let l=t(s,i);if(l!==void 0){let[d,y]=l;d!==void 0&&y!==void 0&&n.set(d,y)}}),n}function KC(e,t,n){if(e.has(t))return e.get(t);let i=n();return e.set(t,i),i}function GC(e,t){return e.has(t)?!1:(e.add(t),!0)}function*XC(e){yield e}function $C(e,t,n){let i;if(e){i=[];let s=e.length,l,d,y=0,p=0;for(;y{let[l,d]=t(s,i);n.set(l,d)}),n}function ft(e,t){if(e)if(t){for(let n of e)if(t(n))return!0}else return e.length>0;return!1}function YC(e,t,n){let i;for(let s=0;se[d])}function t9(e,t){let n=[];for(let i of e)wl(n,i,t);return n}function jv(e,t,n){return e.length===0?[]:e.length===1?e.slice():n?e9(e,t,n):t9(e,t)}function n9(e,t){if(e.length===0)return Xe;let n=e[0],i=[n];for(let s=1;s0&&(s&=-2),s&2&&i(l,p)>0&&(s&=-3),l=p}return s}function o9(e,t,n=to){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let i=0;i0&&M.assertGreaterThanOrEqual(n(t[l],t[l-1]),0);t:for(let d=s;sd&&M.assertGreaterThanOrEqual(n(e[s],e[s-1]),0),n(t[l],e[s])){case-1:i.push(t[l]);continue e;case 0:continue e;case 1:continue t}}return i}function Tt(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function c9(e,t){return e===void 0?t:t===void 0?e:Wt(e)?Wt(t)?d_(e,t):Tt(e,t):Wt(t)?Tt(t,e):[e,t]}function ih(e,t){return t<0?e.length+t:t}function Mn(e,t,n,i){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(n,i);n=n===void 0?0:ih(t,n),i=i===void 0?t.length:ih(t,i);for(let s=n;sn(e[i],e[s])||wn(i,s))}function pf(e,t){return e.length===0?e:e.slice().sort(t)}function*l9(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function zv(e,t){let n=_g(e);return qv(e,n,t),n.map(i=>e[i])}function u9(e,t,n,i){for(;n>1),p=n(e[y],y);switch(i(p,t)){case-1:l=y+1;break;case 0:return y;case 1:d=y-1;break}}return~l}function em(e,t,n,i,s){if(e&&e.length>0){let l=e.length;if(l>0){let d=i===void 0||i<0?0:i,y=s===void 0||d+s>l-1?l-1:d+s,p;for(arguments.length<=2?(p=e[d],d++):p=n;d<=y;)p=t(p,e[d],d),d++;return p}}return n}function Xn(e,t){return Pr.call(e,t)}function h9(e,t){return Pr.call(e,t)?e[t]:void 0}function lg(e){let t=[];for(let n in e)Pr.call(e,n)&&t.push(n);return t}function g9(e){let t=[];do{let n=Object.getOwnPropertyNames(e);for(let i of n)wl(t,i)}while(e=Object.getPrototypeOf(e));return t}function b9(e){let t=[];for(let n in e)Pr.call(e,n)&&t.push(e[n]);return t}function v9(e,t){let n=new Array(e);for(let i=0;i100&&n>t.length>>1){let y=t.length-n;t.copyWithin(0,n),t.length=y,n=0}return d}return{enqueue:s,dequeue:l,isEmpty:i}}function I9(e,t){let n=new Map,i=0;function*s(){for(let d of n.values())Wt(d)?yield*d:yield d}let l={has(d){let y=e(d);if(!n.has(y))return!1;let p=n.get(y);if(!Wt(p))return t(p,d);for(let x of p)if(t(x,d))return!0;return!1},add(d){let y=e(d);if(n.has(y)){let p=n.get(y);if(Wt(p))ns(p,d,t)||(p.push(d),i++);else{let x=p;t(x,d)||(n.set(y,[x,d]),i++)}}else n.set(y,d),i++;return this},delete(d){let y=e(d);if(!n.has(y))return!1;let p=n.get(y);if(Wt(p)){for(let x=0;xs(),[Symbol.toStringTag]:n[Symbol.toStringTag]};return l}function Wt(e){return Array.isArray(e)}function Gd(e){return Wt(e)?e:[e]}function m_(e){return typeof e=="string"}function O9(e){return typeof e=="number"}function Ar(e,t){return e!==void 0&&t(e)?e:void 0}function mi(e,t){return e!==void 0&&t(e)?e:M.fail(`Invalid cast. The supplied value ${e} did not pass the test '${M.getFunctionName(t)}'.`)}function Nr(e){}function df(){return!1}function Kv(){return!0}function M9(){}function ht(e){return e}function Gv(e){return e.toLowerCase()}function Xv(e){return sh.test(e)?e.replace(sh,Gv):e}function L9(){throw new Error("Not implemented")}function ah(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function kr(e){let t=new Map;return n=>{let i=`${typeof n}:${n}`,s=t.get(i);return s===void 0&&!t.has(i)&&(s=e(n),t.set(i,s)),s}}function J9(e){let t=new WeakMap;return n=>{let i=t.get(n);return i===void 0&&!t.has(n)&&(i=e(n),t.set(n,i)),i}}function R9(e,t){return(...n)=>{let i=t.get(n);return i===void 0&&!t.has(n)&&(i=e(...n),t.set(n,i)),i}}function F9(e,t,n,i,s){if(s){let l=[];for(let d=0;dem(l,(y,p)=>p(y),d)}else return i?l=>i(n(t(e(l)))):n?l=>n(t(e(l))):t?l=>t(e(l)):e?l=>e(l):l=>l}function to(e,t){return e===t}function i_(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function Cl(e,t){return to(e,t)}function $v(e,t){return e===t?0:e===void 0?-1:t===void 0?1:et(n,i)===-1?n:i)}function rm(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),et?1:0)}function U9(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),et?1:0)}function xi(e,t){return $v(e,t)}function ug(e){return e?rm:xi}function q9(){return mf}function Qv(e){mf!==e&&(mf=e,ch=void 0)}function z9(e,t){return(ch||(ch=sT(mf)))(e,t)}function W9(e,t,n,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[n],t[n])}function V9(e,t){return wn(e?1:0,t?1:0)}function Yv(e,t,n){let i=Math.max(2,Math.floor(e.length*.34)),s=Math.floor(e.length*.4)+1,l;for(let d of t){let y=n(d);if(y!==void 0&&Math.abs(y.length-e.length)<=i){if(y===e||y.length<3&&y.toLowerCase()!==e.toLowerCase())continue;let p=H9(e,y,s-.1);if(p===void 0)continue;M.assert(pn?y-n:1),h=Math.floor(t.length>n+y?n+y:t.length);s[0]=y;let D=y;for(let g=1;gn)return;let w=i;i=s,s=w}let d=i[t.length];return d>n?void 0:d}function rs(e,t){let n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}function K9(e,t){return rs(e,t)?e.slice(0,e.length-t.length):e}function G9(e,t){return rs(e,t)?e.slice(0,e.length-t.length):void 0}function Ga(e,t){return e.indexOf(t)!==-1}function X9(e){let t=e.length;for(let n=t-1;n>0;n--){let i=e.charCodeAt(n);if(i>=48&&i<=57)do--n,i=e.charCodeAt(n);while(n>0&&i>=48&&i<=57);else if(n>4&&(i===110||i===78)){if(--n,i=e.charCodeAt(n),i!==105&&i!==73||(--n,i=e.charCodeAt(n),i!==109&&i!==77))break;--n,i=e.charCodeAt(n)}else break;if(i!==45&&i!==46)break;t=n}return t===e.length?e:e.slice(0,t)}function $9(e,t){for(let n=0;nn===t)}function Q9(e,t){for(let n=0;ns&&(s=d.prefix.length,i=l)}return i}function Jn(e,t){return e.lastIndexOf(t,0)===0}function e5(e,t){return Jn(e,t)?e.substr(t.length):e}function nT(e,t,n=ht){return Jn(n(e),n(t))?e.substring(t.length):void 0}function dg({prefix:e,suffix:t},n){return n.length>=e.length+t.length&&Jn(n,e)&&rs(n,t)}function t5(e,t){return n=>e(n)&&t(n)}function fg(...e){return(...t)=>{let n;for(let i of e)if(n=i(...t),n)return n;return n}}function n5(e){return(...t)=>!e(...t)}function r5(e){}function ff(e){return e===void 0?void 0:[e]}function i5(e,t,n,i,s,l){l=l||Nr;let d=0,y=0,p=e.length,x=t.length,h=!1;for(;d=0&&qi(e.charCodeAt(t));)t--;return e.slice(0,t+1)}function l5(){return!1}var Xe,mg,aT,oh,oT,Pr,sh,_h,sT,ch,mf,am,e_,ll,u5=Ht({"src/compiler/core.ts"(){"use strict";En(),Xe=[],mg=new Map,aT=new Set,oh=(e=>(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(oh||{}),oT=Array.prototype.at?(e,t)=>e==null?void 0:e.at(t):(e,t)=>{if(e&&(t=ih(e,t),t(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(_h||{}),sT=(()=>{let e,t,n=y();return p;function i(x,h,D){if(x===h)return 0;if(x===void 0)return-1;if(h===void 0)return 1;let w=D(x,h);return w<0?-1:w>0?1:0}function s(x){let h=new Intl.Collator(x,{usage:"sort",sensitivity:"variant"}).compare;return(D,w)=>i(D,w,h)}function l(x){if(x!==void 0)return d();return(D,w)=>i(D,w,h);function h(D,w){return D.localeCompare(w)}}function d(){return(D,w)=>i(D,w,x);function x(D,w){return h(D.toUpperCase(),w.toUpperCase())||h(D,w)}function h(D,w){return Dw?1:0}}function y(){return typeof Intl=="object"&&typeof Intl.Collator=="function"?s:typeof String.prototype.localeCompare=="function"&&typeof String.prototype.toLocaleUpperCase=="function"&&"a".localeCompare("B")<0?l:d}function p(x){return x===void 0?e||(e=n(x)):x==="en-US"?t||(t=n(x)):n(x)}})(),am=String.prototype.trim?e=>e.trim():e=>e_(ll(e)),e_=String.prototype.trimEnd?e=>e.trimEnd():c5,ll=String.prototype.trimStart?e=>e.trimStart():e=>e.replace(/^\s+/g,"")}}),lh,M,_T=Ht({"src/compiler/debug.ts"(){"use strict";En(),En(),lh=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(lh||{}),(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function n(H){return e.currentLogLevel<=H}e.shouldLog=n;function i(H,de){e.loggingHost&&n(H)&&e.loggingHost.log(H,de)}function s(H){i(3,H)}e.log=s,(H=>{function de(Qe){i(1,Qe)}H.error=de;function be(Qe){i(2,Qe)}H.warn=be;function Ee(Qe){i(3,Qe)}H.log=Ee;function et(Qe){i(4,Qe)}H.trace=et})(s=e.log||(e.log={}));let l={};function d(){return t}e.getAssertionLevel=d;function y(H){let de=t;if(t=H,H>de)for(let be of lg(l)){let Ee=l[be];Ee!==void 0&&e[be]!==Ee.assertion&&H>=Ee.level&&(e[be]=Ee,l[be]=void 0)}}e.setAssertionLevel=y;function p(H){return t>=H}e.shouldAssert=p;function x(H,de){return p(H)?!0:(l[de]={level:H,assertion:e[de]},e[de]=Nr,!1)}function h(H,de){debugger;let be=new Error(H?`Debug Failure. ${H}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(be,de||h),be}e.fail=h;function D(H,de,be){return h(`${de||"Unexpected node."}\r -Node ${Qt(H.kind)} was unexpected.`,be||D)}e.failBadSyntaxKind=D;function w(H,de,be,Ee){H||(de=de?`False expression: ${de}`:"False expression.",be&&(de+=`\r -Verbose Debug Information: `+(typeof be=="string"?be:be())),h(de,Ee||w))}e.assert=w;function g(H,de,be,Ee,et){if(H!==de){let Qe=be?Ee?`${be} ${Ee}`:be:"";h(`Expected ${H} === ${de}. ${Qe}`,et||g)}}e.assertEqual=g;function A(H,de,be,Ee){H>=de&&h(`Expected ${H} < ${de}. ${be||""}`,Ee||A)}e.assertLessThan=A;function B(H,de,be){H>de&&h(`Expected ${H} <= ${de}`,be||B)}e.assertLessThanOrEqual=B;function G(H,de,be){H= ${de}`,be||G)}e.assertGreaterThanOrEqual=G;function oe(H,de,be){H==null&&h(de,be||oe)}e.assertIsDefined=oe;function Q(H,de,be){return oe(H,de,be||Q),H}e.checkDefined=Q;function W(H,de,be){for(let Ee of H)oe(Ee,de,be||W)}e.assertEachIsDefined=W;function se(H,de,be){return W(H,de,be||se),H}e.checkEachDefined=se;function we(H,de="Illegal value:",be){let Ee=typeof H=="object"&&Xn(H,"kind")&&Xn(H,"pos")?"SyntaxKind: "+Qt(H.kind):JSON.stringify(H);return h(`${de} ${Ee}`,be||we)}e.assertNever=we;function Ze(H,de,be,Ee){x(1,"assertEachNode")&&w(de===void 0||eo(H,de),be||"Unexpected node.",()=>`Node array did not pass test '${_n(de)}'.`,Ee||Ze)}e.assertEachNode=Ze;function Ue(H,de,be,Ee){x(1,"assertNode")&&w(H!==void 0&&(de===void 0||de(H)),be||"Unexpected node.",()=>`Node ${Qt(H==null?void 0:H.kind)} did not pass test '${_n(de)}'.`,Ee||Ue)}e.assertNode=Ue;function rt(H,de,be,Ee){x(1,"assertNotNode")&&w(H===void 0||de===void 0||!de(H),be||"Unexpected node.",()=>`Node ${Qt(H.kind)} should not have passed test '${_n(de)}'.`,Ee||rt)}e.assertNotNode=rt;function ct(H,de,be,Ee){x(1,"assertOptionalNode")&&w(de===void 0||H===void 0||de(H),be||"Unexpected node.",()=>`Node ${Qt(H==null?void 0:H.kind)} did not pass test '${_n(de)}'.`,Ee||ct)}e.assertOptionalNode=ct;function Dn(H,de,be,Ee){x(1,"assertOptionalToken")&&w(de===void 0||H===void 0||H.kind===de,be||"Unexpected node.",()=>`Node ${Qt(H==null?void 0:H.kind)} was not a '${Qt(de)}' token.`,Ee||Dn)}e.assertOptionalToken=Dn;function sn(H,de,be){x(1,"assertMissingNode")&&w(H===void 0,de||"Unexpected node.",()=>`Node ${Qt(H.kind)} was unexpected'.`,be||sn)}e.assertMissingNode=sn;function ei(H){}e.type=ei;function _n(H){if(typeof H!="function")return"";if(Xn(H,"name"))return H.name;{let de=Function.prototype.toString.call(H),be=/^function\s+([\w\$]+)\s*\(/.exec(de);return be?be[1]:""}}e.getFunctionName=_n;function Pn(H){return`{ name: ${Xo(H.escapedName)}; flags: ${Un(H.flags)}; declarations: ${ga(H.declarations,de=>Qt(de.kind))} }`}e.formatSymbol=Pn;function $e(H=0,de,be){let Ee=jn(de);if(H===0)return Ee.length>0&&Ee[0][0]===0?Ee[0][1]:"0";if(be){let et=[],Qe=H;for(let[ee,Z]of Ee){if(ee>H)break;ee!==0&&ee&H&&(et.push(Z),Qe&=~ee)}if(Qe===0)return et.join("|")}else for(let[et,Qe]of Ee)if(et===H)return Qe;return H.toString()}e.formatEnum=$e;let $t=new Map;function jn(H){let de=$t.get(H);if(de)return de;let be=[];for(let et in H){let Qe=H[et];typeof Qe=="number"&&be.push([Qe,et])}let Ee=zv(be,(et,Qe)=>wn(et[0],Qe[0]));return $t.set(H,Ee),Ee}function Qt(H){return $e(H,bf,!1)}e.formatSyntaxKind=Qt;function fr(H){return $e(H,Pf,!1)}e.formatSnippetKind=fr;function Bn(H){return $e(H,vf,!0)}e.formatNodeFlags=Bn;function dn(H){return $e(H,Tf,!0)}e.formatModifierFlags=dn;function Yt(H){return $e(H,Df,!0)}e.formatTransformFlags=Yt;function vt(H){return $e(H,Nf,!0)}e.formatEmitFlags=vt;function Un(H){return $e(H,wf,!0)}e.formatSymbolFlags=Un;function qn(H){return $e(H,Ef,!0)}e.formatTypeFlags=qn;function gt(H){return $e(H,kf,!0)}e.formatSignatureFlags=gt;function lt(H){return $e(H,Cf,!0)}e.formatObjectFlags=lt;function Zt(H){return $e(H,ul,!0)}e.formatFlowFlags=Zt;function zn(H){return $e(H,xf,!0)}e.formatRelationComparisonResult=zn;function mt(H){return $e(H,CheckMode,!0)}e.formatCheckMode=mt;function mr(H){return $e(H,SignatureCheckMode,!0)}e.formatSignatureCheckMode=mr;function bt(H){return $e(H,TypeFacts,!0)}e.formatTypeFacts=bt;let cn=!1,dt;function Qn(H){"__debugFlowFlags"in H||Object.defineProperties(H,{__tsDebuggerDisplay:{value(){let de=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",be=this.flags&~(2048-1);return`${de}${be?` (${Zt(be)})`:""}`}},__debugFlowFlags:{get(){return $e(this.flags,ul,!0)}},__debugToString:{value(){return Ie(this)}}})}function ut(H){cn&&(typeof Object.setPrototypeOf=="function"?(dt||(dt=Object.create(Object.prototype),Qn(dt)),Object.setPrototypeOf(H,dt)):Qn(H))}e.attachFlowNodeDebugInfo=ut;let Jt;function ln(H){"__tsDebuggerDisplay"in H||Object.defineProperties(H,{__tsDebuggerDisplay:{value(de){return de=String(de).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${de}`}}})}function yr(H){cn&&(typeof Object.setPrototypeOf=="function"?(Jt||(Jt=Object.create(Array.prototype),ln(Jt)),Object.setPrototypeOf(H,Jt)):ln(H))}e.attachNodeArrayDebugInfo=yr;function Mr(){if(cn)return;let H=new WeakMap,de=new WeakMap;Object.defineProperties(xt.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let Ee=this.flags&33554432?"TransientSymbol":"Symbol",et=this.flags&-33554433;return`${Ee} '${Of(this)}'${et?` (${Un(et)})`:""}`}},__debugFlags:{get(){return Un(this.flags)}}}),Object.defineProperties(xt.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let Ee=this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&67359327?`IntrinsicType ${this.intrinsicName}`:this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",et=this.flags&524288?this.objectFlags&-1344:0;return`${Ee}${this.symbol?` '${Of(this.symbol)}'`:""}${et?` (${lt(et)})`:""}`}},__debugFlags:{get(){return qn(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?lt(this.objectFlags):""}},__debugTypeToString:{value(){let Ee=H.get(this);return Ee===void 0&&(Ee=this.checker.typeToString(this),H.set(this,Ee)),Ee}}}),Object.defineProperties(xt.getSignatureConstructor().prototype,{__debugFlags:{get(){return gt(this.flags)}},__debugSignatureToString:{value(){var Ee;return(Ee=this.checker)==null?void 0:Ee.signatureToString(this)}}});let be=[xt.getNodeConstructor(),xt.getIdentifierConstructor(),xt.getTokenConstructor(),xt.getSourceFileConstructor()];for(let Ee of be)Xn(Ee.prototype,"__debugKind")||Object.defineProperties(Ee.prototype,{__tsDebuggerDisplay:{value(){return`${ma(this)?"GeneratedIdentifier":Ce(this)?`Identifier '${Ot(this)}'`:Ln(this)?`PrivateIdentifier '${Ot(this)}'`:cr(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:ro(this)?`NumericLiteral ${this.text}`:cb(this)?`BigIntLiteral ${this.text}n`:Jo(this)?"TypeParameterDeclaration":io(this)?"ParameterDeclaration":P_(this)?"ConstructorDeclaration":Kl(this)?"GetAccessorDeclaration":N_(this)?"SetAccessorDeclaration":pb(this)?"CallSignatureDeclaration":_8(this)?"ConstructSignatureDeclaration":db(this)?"IndexSignatureDeclaration":c8(this)?"TypePredicateNode":I_(this)?"TypeReferenceNode":Gl(this)?"FunctionTypeNode":fb(this)?"ConstructorTypeNode":l8(this)?"TypeQueryNode":Hm(this)?"TypeLiteralNode":u8(this)?"ArrayTypeNode":p8(this)?"TupleTypeNode":d8(this)?"OptionalTypeNode":f8(this)?"RestTypeNode":m8(this)?"UnionTypeNode":y8(this)?"IntersectionTypeNode":h8(this)?"ConditionalTypeNode":g8(this)?"InferTypeNode":yb(this)?"ParenthesizedTypeNode":hb(this)?"ThisTypeNode":b8(this)?"TypeOperatorNode":v8(this)?"IndexedAccessTypeNode":T8(this)?"MappedTypeNode":gb(this)?"LiteralTypeNode":mb(this)?"NamedTupleMember":Xl(this)?"ImportTypeNode":Qt(this.kind)}${this.flags?` (${Bn(this.flags)})`:""}`}},__debugKind:{get(){return Qt(this.kind)}},__debugNodeFlags:{get(){return Bn(this.flags)}},__debugModifierFlags:{get(){return dn(k3(this))}},__debugTransformFlags:{get(){return Yt(this.transformFlags)}},__debugIsParseTreeNode:{get(){return dl(this)}},__debugEmitFlags:{get(){return vt(Vr(this))}},__debugGetText:{value(et){if(pa(this))return"";let Qe=de.get(this);if(Qe===void 0){let ee=Pl(this),Z=ee&&Kr(ee);Qe=Z?Yo(Z,ee,et):"",de.set(this,Qe)}return Qe}}});cn=!0}e.enableDebugInfo=Mr;function ti(H){let de=H&7,be=de===0?"in out":de===3?"[bivariant]":de===2?"in":de===1?"out":de===4?"[independent]":"";return H&8?be+=" (unmeasurable)":H&16&&(be+=" (unreliable)"),be}e.formatVariance=ti;class Wn{__debugToString(){var de;switch(this.kind){case 3:return((de=this.debugInfo)==null?void 0:de.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return rh(this.sources,this.targets||ga(this.sources,()=>"any"),(be,Ee)=>`${be.__debugTypeToString()} -> ${typeof Ee=="string"?Ee:Ee.__debugTypeToString()}`).join(", ");case 2:return rh(this.sources,this.targets,(be,Ee)=>`${be.__debugTypeToString()} -> ${Ee().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` +(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.typescript=e()}})(function(){"use strict";var T5=Object.create;var xf=Object.defineProperty;var S5=Object.getOwnPropertyDescriptor;var x5=Object.getOwnPropertyNames;var w5=Object.getPrototypeOf,C5=Object.prototype.hasOwnProperty;var E5=(e,t)=>()=>(e&&(t=e(e=0)),t);var ut=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Hh=(e,t)=>{for(var r in t)xf(e,r,{get:t[r],enumerable:!0})},Nb=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let _ of x5(t))!C5.call(e,_)&&_!==r&&xf(e,_,{get:()=>t[_],enumerable:!(a=S5(t,_))||a.enumerable});return e};var Ob=(e,t,r)=>(r=e!=null?T5(w5(e)):{},Nb(t||!e||!e.__esModule?xf(r,"default",{value:e,enumerable:!0}):r,e)),wf=e=>Nb(xf({},"__esModule",{value:!0}),e);var Cf={};Hh(Cf,{default:()=>k5});var A5,k5,Ef=E5(()=>{A5=()=>()=>{},k5=A5});var Dt=ut((QV,E7)=>{var D5=Object.defineProperty,hv=Object.getOwnPropertyNames,Vt=(e,t)=>function(){return e&&(t=(0,e[hv(e)[0]])(e=0)),t},P5=(e,t)=>function(){return t||(0,e[hv(e)[0]])((t={exports:{}}).exports,t),t.exports},I5=(e,t)=>{for(var r in t)D5(e,r,{get:t[r],enumerable:!0})},yv,Gf,Zh,N5=Vt({"src/compiler/corePublic.ts"(){"use strict";yv="5.2",Gf="5.2.2",Zh=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(Zh||{})}});function Ka(e){return e?e.length:0}function yr(e,t){if(e)for(let r=0;r=0;r--){let a=t(e[r],r);if(a)return a}}function ng(e,t){if(e!==void 0)for(let r=0;r=0;a--){let _=e[a];if(t(_,a))return _}}function _l(e,t,r){if(e===void 0)return-1;for(let a=r??0;a=0;a--)if(t(e[a],a))return a;return-1}function j5(e,t){for(let r=0;rr(a,t[_]))}function bv(e,t,r){for(let a=r||0;a{let p=t(_,a);if(p!==void 0){let[d,h]=p;d!==void 0&&h!==void 0&&r.set(d,h)}}),r}function X5(e,t,r){if(e.has(t))return e.get(t);let a=r();return e.set(t,a),a}function $5(e,t){return e.has(t)?!1:(e.add(t),!0)}function*Q5(e){yield e}function Y5(e,t,r){let a;if(e){a=[];let _=e.length,p,d,h=0,l=0;for(;h<_;){for(;l<_;){let v=e[l];if(d=t(v,l),l===0)p=d;else if(d!==p)break;l++}if(h{let[p,d]=t(_,a);r.set(p,d)}),r}function mt(e,t){if(e)if(t){for(let r of e)if(t(r))return!0}else return e.length>0;return!1}function Z5(e,t,r){let a;for(let _=0;_e[d])}function rC(e,t){let r=[];for(let a of e)Ol(r,a,t);return r}function Sv(e,t,r){return e.length===0?[]:e.length===1?e.slice():r?tC(e,t,r):rC(e,t)}function nC(e,t){if(e.length===0)return $e;let r=e[0],a=[r];for(let _=1;_0&&(_&=-2),_&2&&a(p,l)>0&&(_&=-3),p=l}return _}function sC(e,t,r=_o){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let a=0;a0&&N.assertGreaterThanOrEqual(r(t[p],t[p-1]),0);t:for(let d=_;_d&&N.assertGreaterThanOrEqual(r(e[_],e[_-1]),0),r(t[p],e[_])){case-1:a.push(t[p]);continue e;case 0:continue e;case 1:continue t}}return a}function xt(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function lC(e,t){return e===void 0?t:t===void 0?e:zt(e)?zt(t)?y_(e,t):xt(e,t):zt(t)?xt(t,e):[e,t]}function ty(e,t){return t<0?e.length+t:t}function Rr(e,t,r,a){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(r,a);r=r===void 0?0:ty(t,r),a=a===void 0?t.length:ty(t,a);for(let _=r;_r(e[a],e[_])||kr(a,_))}function Xf(e,t){return e.length===0?e:e.slice().sort(t)}function*uC(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function Ev(e,t){let r=ag(e);return Cv(e,r,t),r.map(a=>e[a])}function pC(e,t,r,a){for(;r>1),l=r(e[h],h);switch(a(l,t)){case-1:p=h+1;break;case 0:return h;case 1:d=h-1;break}}return~p}function Rd(e,t,r,a,_){if(e&&e.length>0){let p=e.length;if(p>0){let d=a===void 0||a<0?0:a,h=_===void 0||d+_>p-1?p-1:d+_,l;for(arguments.length<=2?(l=e[d],d++):l=r;d<=h;)l=t(l,e[d],d),d++;return l}}return r}function Qr(e,t){return Jn.call(e,t)}function gC(e,t){return Jn.call(e,t)?e[t]:void 0}function sg(e){let t=[];for(let r in e)Jn.call(e,r)&&t.push(r);return t}function bC(e){let t=[];do{let r=Object.getOwnPropertyNames(e);for(let a of r)Ol(t,a)}while(e=Object.getPrototypeOf(e));return t}function vC(e){let t=[];for(let r in e)Jn.call(e,r)&&t.push(e[r]);return t}function TC(e,t){let r=new Array(e);for(let a=0;a100&&r>t.length>>1){let h=t.length-r;t.copyWithin(0,r),t.length=h,r=0}return d}return{enqueue:_,dequeue:p,isEmpty:a}}function OC(e,t){let r=new Map,a=0;function*_(){for(let d of r.values())zt(d)?yield*d:yield d}let p={has(d){let h=e(d);if(!r.has(h))return!1;let l=r.get(h);if(!zt(l))return t(l,d);for(let v of l)if(t(v,d))return!0;return!1},add(d){let h=e(d);if(r.has(h)){let l=r.get(h);if(zt(l))es(l,d,t)||(l.push(d),a++);else{let v=l;t(v,d)||(r.set(h,[v,d]),a++)}}else r.set(h,d),a++;return this},delete(d){let h=e(d);if(!r.has(h))return!1;let l=r.get(h);if(zt(l)){for(let v=0;v_(),[Symbol.toStringTag]:r[Symbol.toStringTag]};return p}function zt(e){return Array.isArray(e)}function If(e){return zt(e)?e:[e]}function b_(e){return typeof e=="string"}function MC(e){return typeof e=="number"}function On(e,t){return e!==void 0&&t(e)?e:void 0}function gi(e,t){return e!==void 0&&t(e)?e:N.fail(`Invalid cast. The supplied value ${e} did not pass the test '${N.getFunctionName(t)}'.`)}function Rn(e){}function $f(){return!1}function Pv(){return!0}function LC(){}function bt(e){return e}function Iv(e){return e.toLowerCase()}function Nv(e){return iy.test(e)?e.replace(iy,Iv):e}function JC(){throw new Error("Not implemented")}function ry(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Nn(e){let t=new Map;return r=>{let a=`${typeof r}:${r}`,_=t.get(a);return _===void 0&&!t.has(a)&&(_=e(r),t.set(a,_)),_}}function RC(e){let t=new WeakMap;return r=>{let a=t.get(r);return a===void 0&&!t.has(r)&&(a=e(r),t.set(r,a)),a}}function jC(e,t){return(...r)=>{let a=t.get(r);return a===void 0&&!t.has(r)&&(a=e(...r),t.set(r,a)),a}}function FC(e,t,r,a,_){if(_){let p=[];for(let d=0;dRd(p,(h,l)=>l(h),d)}else return a?p=>a(r(t(e(p)))):r?p=>r(t(e(p))):t?p=>t(e(p)):e?p=>e(p):p=>p}function _o(e,t){return e===t}function s_(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function Ll(e,t){return _o(e,t)}function Ov(e,t){return e===t?0:e===void 0?-1:t===void 0?1:et(r,a)===-1?r:a)}function Bd(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),et?1:0)}function qC(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),et?1:0)}function Ci(e,t){return Ov(e,t)}function _g(e){return e?Bd:Ci}function zC(){return Yf}function Mv(e){Yf!==e&&(Yf=e,oy=void 0)}function WC(e,t){return(oy||(oy=Wv(Yf)))(e,t)}function VC(e,t,r,a){return e===t?0:e===void 0?-1:t===void 0?1:a(e[r],t[r])}function HC(e,t){return kr(e?1:0,t?1:0)}function Lv(e,t,r){let a=Math.max(2,Math.floor(e.length*.34)),_=Math.floor(e.length*.4)+1,p;for(let d of t){let h=r(d);if(h!==void 0&&Math.abs(h.length-e.length)<=a){if(h===e||h.length<3&&h.toLowerCase()!==e.toLowerCase())continue;let l=GC(e,h,_-.1);if(l===void 0)continue;N.assert(l<_),_=l,p=d}}return p}function GC(e,t,r){let a=new Array(t.length+1),_=new Array(t.length+1),p=r+.01;for(let h=0;h<=t.length;h++)a[h]=h;for(let h=1;h<=e.length;h++){let l=e.charCodeAt(h-1),v=Math.ceil(h>r?h-r:1),y=Math.floor(t.length>r+h?r+h:t.length);_[0]=h;let C=h;for(let k=1;kr)return;let S=a;a=_,_=S}let d=a[t.length];return d>r?void 0:d}function ts(e,t){let r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function XC(e,t){return ts(e,t)?e.slice(0,e.length-t.length):e}function $C(e,t){return ts(e,t)?e.slice(0,e.length-t.length):void 0}function eo(e,t){return e.indexOf(t)!==-1}function QC(e){let t=e.length;for(let r=t-1;r>0;r--){let a=e.charCodeAt(r);if(a>=48&&a<=57)do--r,a=e.charCodeAt(r);while(r>0&&a>=48&&a<=57);else if(r>4&&(a===110||a===78)){if(--r,a=e.charCodeAt(r),a!==105&&a!==73||(--r,a=e.charCodeAt(r),a!==109&&a!==77))break;--r,a=e.charCodeAt(r)}else break;if(a!==45&&a!==46)break;t=r}return t===e.length?e:e.slice(0,t)}function YC(e,t){for(let r=0;rr===t)}function KC(e,t){for(let r=0;r_&&(_=d.prefix.length,a=p)}return a}function Fr(e,t){return e.lastIndexOf(t,0)===0}function tE(e,t){return Fr(e,t)?e.substr(t.length):e}function Fv(e,t,r=bt){return Fr(r(e),r(t))?e.substring(t.length):void 0}function lg({prefix:e,suffix:t},r){return r.length>=e.length+t.length&&Fr(r,e)&&ts(r,t)}function rE(e,t){return r=>e(r)&&t(r)}function ug(...e){return(...t)=>{let r;for(let a of e)if(r=a(...t),r)return r;return r}}function nE(e){return(...t)=>!e(...t)}function iE(e){}function Qf(e){return e===void 0?void 0:[e]}function aE(e,t,r,a,_,p){p=p||Rn;let d=0,h=0,l=e.length,v=t.length,y=!1;for(;d=0&&Vi(e.charCodeAt(t));)t--;return e.slice(0,t+1)}function uE(){return!1}var $e,pg,qv,ny,zv,Jn,iy,ay,Wv,oy,Yf,qd,n_,gl,pE=Vt({"src/compiler/core.ts"(){"use strict";Dr(),$e=[],pg=new Map,qv=new Set,ny=(e=>(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(ny||{}),zv=Array.prototype.at?(e,t)=>e==null?void 0:e.at(t):(e,t)=>{if(e&&(t=ty(e,t),t(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(ay||{}),Wv=(()=>{let e,t,r=h();return l;function a(v,y,C){if(v===y)return 0;if(v===void 0)return-1;if(y===void 0)return 1;let S=C(v,y);return S<0?-1:S>0?1:0}function _(v){let y=new Intl.Collator(v,{usage:"sort",sensitivity:"variant"}).compare;return(C,S)=>a(C,S,y)}function p(v){if(v!==void 0)return d();return(C,S)=>a(C,S,y);function y(C,S){return C.localeCompare(S)}}function d(){return(C,S)=>a(C,S,v);function v(C,S){return y(C.toUpperCase(),S.toUpperCase())||y(C,S)}function y(C,S){return CS?1:0}}function h(){return typeof Intl=="object"&&typeof Intl.Collator=="function"?_:typeof String.prototype.localeCompare=="function"&&typeof String.prototype.toLocaleUpperCase=="function"&&"a".localeCompare("B")<0?p:d}function l(v){return v===void 0?e||(e=r(v)):v==="en-US"?t||(t=r(v)):r(v)}})(),qd=String.prototype.trim?e=>e.trim():e=>n_(gl(e)),n_=String.prototype.trimEnd?e=>e.trimEnd():lE,gl=String.prototype.trimStart?e=>e.trimStart():e=>e.replace(/^\s+/g,"")}}),sy,N,Vv=Vt({"src/compiler/debug.ts"(){"use strict";Dr(),Dr(),sy=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(sy||{}),(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r(q){return e.currentLogLevel<=q}e.shouldLog=r;function a(q,oe){e.loggingHost&&r(q)&&e.loggingHost.log(q,oe)}function _(q){a(3,q)}e.log=_,(q=>{function oe(z){a(1,z)}q.error=oe;function ge(z){a(2,z)}q.warn=ge;function Se(z){a(3,z)}q.log=Se;function nt(z){a(4,z)}q.trace=nt})(_=e.log||(e.log={}));let p={};function d(){return t}e.getAssertionLevel=d;function h(q){let oe=t;if(t=q,q>oe)for(let ge of sg(p)){let Se=p[ge];Se!==void 0&&e[ge]!==Se.assertion&&q>=Se.level&&(e[ge]=Se,p[ge]=void 0)}}e.setAssertionLevel=h;function l(q){return t>=q}e.shouldAssert=l;function v(q,oe){return l(q)?!0:(p[oe]={level:q,assertion:e[oe]},e[oe]=Rn,!1)}function y(q,oe){debugger;let ge=new Error(q?`Debug Failure. ${q}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(ge,oe||y),ge}e.fail=y;function C(q,oe,ge){return y(`${oe||"Unexpected node."}\r +Node ${Xt(q.kind)} was unexpected.`,ge||C)}e.failBadSyntaxKind=C;function S(q,oe,ge,Se){q||(oe=oe?`False expression: ${oe}`:"False expression.",ge&&(oe+=`\r +Verbose Debug Information: `+(typeof ge=="string"?ge:ge())),y(oe,Se||S))}e.assert=S;function k(q,oe,ge,Se,nt){if(q!==oe){let z=ge?Se?`${ge} ${Se}`:ge:"";y(`Expected ${q} === ${oe}. ${z}`,nt||k)}}e.assertEqual=k;function L(q,oe,ge,Se){q>=oe&&y(`Expected ${q} < ${oe}. ${ge||""}`,Se||L)}e.assertLessThan=L;function G(q,oe,ge){q>oe&&y(`Expected ${q} <= ${oe}`,ge||G)}e.assertLessThanOrEqual=G;function K(q,oe,ge){q= ${oe}`,ge||K)}e.assertGreaterThanOrEqual=K;function ue(q,oe,ge){q==null&&y(oe,ge||ue)}e.assertIsDefined=ue;function Y(q,oe,ge){return ue(q,oe,ge||Y),q}e.checkDefined=Y;function B(q,oe,ge){for(let Se of q)ue(Se,oe,ge||B)}e.assertEachIsDefined=B;function ae(q,oe,ge){return B(q,oe,ge||ae),q}e.checkEachDefined=ae;function Ce(q,oe="Illegal value:",ge){let Se=typeof q=="object"&&Qr(q,"kind")&&Qr(q,"pos")?"SyntaxKind: "+Xt(q.kind):JSON.stringify(q);return y(`${oe} ${Se}`,ge||Ce)}e.assertNever=Ce;function Ze(q,oe,ge,Se){v(1,"assertEachNode")&&S(oe===void 0||so(q,oe),ge||"Unexpected node.",()=>`Node array did not pass test '${or(oe)}'.`,Se||Ze)}e.assertEachNode=Ze;function qe(q,oe,ge,Se){v(1,"assertNode")&&S(q!==void 0&&(oe===void 0||oe(q)),ge||"Unexpected node.",()=>`Node ${Xt(q==null?void 0:q.kind)} did not pass test '${or(oe)}'.`,Se||qe)}e.assertNode=qe;function rt(q,oe,ge,Se){v(1,"assertNotNode")&&S(q===void 0||oe===void 0||!oe(q),ge||"Unexpected node.",()=>`Node ${Xt(q.kind)} should not have passed test '${or(oe)}'.`,Se||rt)}e.assertNotNode=rt;function it(q,oe,ge,Se){v(1,"assertOptionalNode")&&S(oe===void 0||q===void 0||oe(q),ge||"Unexpected node.",()=>`Node ${Xt(q==null?void 0:q.kind)} did not pass test '${or(oe)}'.`,Se||it)}e.assertOptionalNode=it;function Ir(q,oe,ge,Se){v(1,"assertOptionalToken")&&S(oe===void 0||q===void 0||q.kind===oe,ge||"Unexpected node.",()=>`Node ${Xt(q==null?void 0:q.kind)} was not a '${Xt(oe)}' token.`,Se||Ir)}e.assertOptionalToken=Ir;function ar(q,oe,ge){v(1,"assertMissingNode")&&S(q===void 0,oe||"Unexpected node.",()=>`Node ${Xt(q.kind)} was unexpected'.`,ge||ar)}e.assertMissingNode=ar;function ci(q){}e.type=ci;function or(q){if(typeof q!="function")return"";if(Qr(q,"name"))return q.name;{let oe=Function.prototype.toString.call(q),ge=/^function\s+([\w$]+)\s*\(/.exec(oe);return ge?ge[1]:""}}e.getFunctionName=or;function Nr(q){return`{ name: ${Vo(q.escapedName)}; flags: ${Tr(q.flags)}; declarations: ${Aa(q.declarations,oe=>Xt(oe.kind))} }`}e.formatSymbol=Nr;function Ge(q=0,oe,ge){let Se=Ur(oe);if(q===0)return Se.length>0&&Se[0][0]===0?Se[0][1]:"0";if(ge){let nt=[],z=q;for(let[X,ee]of Se){if(X>q)break;X!==0&&X&q&&(nt.push(ee),z&=~X)}if(z===0)return nt.join("|")}else for(let[nt,z]of Se)if(nt===q)return z;return q.toString()}e.formatEnum=Ge;let Gt=new Map;function Ur(q){let oe=Gt.get(q);if(oe)return oe;let ge=[];for(let nt in q){let z=q[nt];typeof z=="number"&&ge.push([z,nt])}let Se=Ev(ge,(nt,z)=>kr(nt[0],z[0]));return Gt.set(q,Se),Se}function Xt(q){return Ge(q,td,!1)}e.formatSyntaxKind=Xt;function Tn(q){return Ge(q,fd,!1)}e.formatSnippetKind=Tn;function Sn(q){return Ge(q,ud,!1)}e.formatScriptKind=Sn;function sr(q){return Ge(q,rd,!0)}e.formatNodeFlags=sr;function $t(q){return Ge(q,nd,!0)}e.formatModifierFlags=$t;function St(q){return Ge(q,pd,!0)}e.formatTransformFlags=St;function xn(q){return Ge(q,dd,!0)}e.formatEmitFlags=xn;function Tr(q){return Ge(q,od,!0)}e.formatSymbolFlags=Tr;function vt(q){return Ge(q,sd,!0)}e.formatTypeFlags=vt;function ct(q){return Ge(q,cd,!0)}e.formatSignatureFlags=ct;function Ut(q){return Ge(q,_d,!0)}e.formatObjectFlags=Ut;function fr(q){return Ge(q,bl,!0)}e.formatFlowFlags=fr;function ht(q){return Ge(q,id,!0)}e.formatRelationComparisonResult=ht;function wn(q){return Ge(q,CheckMode,!0)}e.formatCheckMode=wn;function Tt(q){return Ge(q,SignatureCheckMode,!0)}e.formatSignatureCheckMode=Tt;function Or(q){return Ge(q,TypeFacts,!0)}e.formatTypeFacts=Or;let pt=!1,Mr;function at(q){"__debugFlowFlags"in q||Object.defineProperties(q,{__tsDebuggerDisplay:{value(){let oe=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",ge=this.flags&~(2048-1);return`${oe}${ge?` (${fr(ge)})`:""}`}},__debugFlowFlags:{get(){return Ge(this.flags,bl,!0)}},__debugToString:{value(){return Ae(this)}}})}function er(q){pt&&(typeof Object.setPrototypeOf=="function"?(Mr||(Mr=Object.create(Object.prototype),at(Mr)),Object.setPrototypeOf(q,Mr)):at(q))}e.attachFlowNodeDebugInfo=er;let Qt;function tn(q){"__tsDebuggerDisplay"in q||Object.defineProperties(q,{__tsDebuggerDisplay:{value(oe){return oe=String(oe).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${oe}`}}})}function Bn(q){pt&&(typeof Object.setPrototypeOf=="function"?(Qt||(Qt=Object.create(Array.prototype),tn(Qt)),Object.setPrototypeOf(q,Qt)):tn(q))}e.attachNodeArrayDebugInfo=Bn;function Un(){if(pt)return;let q=new WeakMap,oe=new WeakMap;Object.defineProperties(wt.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let Se=this.flags&33554432?"TransientSymbol":"Symbol",nt=this.flags&-33554433;return`${Se} '${hd(this)}'${nt?` (${Tr(nt)})`:""}`}},__debugFlags:{get(){return Tr(this.flags)}}}),Object.defineProperties(wt.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let Se=this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&67359327?`IntrinsicType ${this.intrinsicName}`:this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",nt=this.flags&524288?this.objectFlags&-1344:0;return`${Se}${this.symbol?` '${hd(this.symbol)}'`:""}${nt?` (${Ut(nt)})`:""}`}},__debugFlags:{get(){return vt(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?Ut(this.objectFlags):""}},__debugTypeToString:{value(){let Se=q.get(this);return Se===void 0&&(Se=this.checker.typeToString(this),q.set(this,Se)),Se}}}),Object.defineProperties(wt.getSignatureConstructor().prototype,{__debugFlags:{get(){return ct(this.flags)}},__debugSignatureToString:{value(){var Se;return(Se=this.checker)==null?void 0:Se.signatureToString(this)}}});let ge=[wt.getNodeConstructor(),wt.getIdentifierConstructor(),wt.getTokenConstructor(),wt.getSourceFileConstructor()];for(let Se of ge)Qr(Se.prototype,"__debugKind")||Object.defineProperties(Se.prototype,{__tsDebuggerDisplay:{value(){return`${wa(this)?"GeneratedIdentifier":Ee(this)?`Identifier '${Ot(this)}'`:jr(this)?`PrivateIdentifier '${Ot(this)}'`:mn(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:lo(this)?`NumericLiteral ${this.text}`:o6(this)?`BigIntLiteral ${this.text}n`:No(this)?"TypeParameterDeclaration":Ma(this)?"ParameterDeclaration":J_(this)?"ConstructorDeclaration":m_(this)?"GetAccessorDeclaration":Qo(this)?"SetAccessorDeclaration":c6(this)?"CallSignatureDeclaration":Vx(this)?"ConstructSignatureDeclaration":l6(this)?"IndexSignatureDeclaration":Hx(this)?"TypePredicateNode":R_(this)?"TypeReferenceNode":tu(this)?"FunctionTypeNode":u6(this)?"ConstructorTypeNode":Gx(this)?"TypeQueryNode":Am(this)?"TypeLiteralNode":Xx(this)?"ArrayTypeNode":$x(this)?"TupleTypeNode":Qx(this)?"OptionalTypeNode":Yx(this)?"RestTypeNode":Kx(this)?"UnionTypeNode":Zx(this)?"IntersectionTypeNode":e8(this)?"ConditionalTypeNode":t8(this)?"InferTypeNode":f6(this)?"ParenthesizedTypeNode":d6(this)?"ThisTypeNode":r8(this)?"TypeOperatorNode":n8(this)?"IndexedAccessTypeNode":i8(this)?"MappedTypeNode":m6(this)?"LiteralTypeNode":p6(this)?"NamedTupleMember":ru(this)?"ImportTypeNode":Xt(this.kind)}${this.flags?` (${sr(this.flags)})`:""}`}},__debugKind:{get(){return Xt(this.kind)}},__debugNodeFlags:{get(){return sr(this.flags)}},__debugModifierFlags:{get(){return $t(lS(this))}},__debugTransformFlags:{get(){return St(this.transformFlags)}},__debugIsParseTreeNode:{get(){return Tl(this)}},__debugEmitFlags:{get(){return xn(ti(this))}},__debugGetText:{value(nt){if(Ta(this))return"";let z=oe.get(this);if(z===void 0){let X=Fl(this),ee=X&&ri(X);z=ee?Xo(ee,X,nt):"",oe.set(this,z)}return z}}});pt=!0}e.enableDebugInfo=Un;function rn(q){let oe=q&7,ge=oe===0?"in out":oe===3?"[bivariant]":oe===2?"in":oe===1?"out":oe===4?"[independent]":"";return q&8?ge+=" (unmeasurable)":q&16&&(ge+=" (unreliable)"),ge}e.formatVariance=rn;class nn{__debugToString(){var oe;switch(this.kind){case 3:return((oe=this.debugInfo)==null?void 0:oe.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return ey(this.sources,this.targets||Aa(this.sources,()=>"any"),(ge,Se)=>`${ge.__debugTypeToString()} -> ${typeof Se=="string"?Se:Se.__debugTypeToString()}`).join(", ");case 2:return ey(this.sources,this.targets,(ge,Se)=>`${ge.__debugTypeToString()} -> ${Se().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` `).join(` `)} m2: ${this.mapper2.__debugToString().split(` `).join(` - `)}`;default:return we(this)}}}e.DebugTypeMapper=Wn;function hr(H){return e.isDebugging?Object.setPrototypeOf(H,Wn.prototype):H}e.attachDebugPrototypeIfDebug=hr;function Ci(H){return console.log(Ie(H))}e.printControlFlowGraph=Ci;function Ie(H){let de=-1;function be(E){return E.id||(E.id=de,de--),E.id}let Ee;(E=>{E.lr="\u2500",E.ud="\u2502",E.dr="\u256D",E.dl="\u256E",E.ul="\u256F",E.ur="\u2570",E.udr="\u251C",E.udl="\u2524",E.dlr="\u252C",E.ulr="\u2534",E.udlr="\u256B"})(Ee||(Ee={}));let et;(E=>{E[E.None=0]="None",E[E.Up=1]="Up",E[E.Down=2]="Down",E[E.Left=4]="Left",E[E.Right=8]="Right",E[E.UpDown=3]="UpDown",E[E.LeftRight=12]="LeftRight",E[E.UpLeft=5]="UpLeft",E[E.UpRight=9]="UpRight",E[E.DownLeft=6]="DownLeft",E[E.DownRight=10]="DownRight",E[E.UpDownLeft=7]="UpDownLeft",E[E.UpDownRight=11]="UpDownRight",E[E.UpLeftRight=13]="UpLeftRight",E[E.DownLeftRight=14]="DownLeftRight",E[E.UpDownLeftRight=15]="UpDownLeftRight",E[E.NoChildren=16]="NoChildren"})(et||(et={}));let Qe=2032,ee=882,Z=Object.create(null),ae=[],Te=[],Oe=ri(H,new Set);for(let E of ae)E.text=Nn(E.flowNode,E.circular),Pa(E);let We=br(Oe),Re=ii(We);return ai(Oe,0),Fe();function Rt(E){return!!(E.flags&128)}function Nt(E){return!!(E.flags&12)&&!!E.antecedents}function Vn(E){return!!(E.flags&Qe)}function ta(E){return!!(E.flags&ee)}function gr(E){let S=[];for(let J of E.edges)J.source===E&&S.push(J.target);return S}function ni(E){let S=[];for(let J of E.edges)J.target===E&&S.push(J.source);return S}function ri(E,S){let J=be(E),m=Z[J];if(m&&S.has(E))return m.circular=!0,m={id:-1,flowNode:E,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},ae.push(m),m;if(S.add(E),!m)if(Z[J]=m={id:J,flowNode:E,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},ae.push(m),Nt(E))for(let ie of E.antecedents)na(m,ie,S);else Vn(E)&&na(m,E.antecedent,S);return S.delete(E),m}function na(E,S,J){let m=ri(S,J),ie={source:E,target:m};Te.push(ie),E.edges.push(ie),m.edges.push(ie)}function Pa(E){if(E.level!==-1)return E.level;let S=0;for(let J of ni(E))S=Math.max(S,Pa(J)+1);return E.level=S}function br(E){let S=0;for(let J of gr(E))S=Math.max(S,br(J));return S+1}function ii(E){let S=wt(Array(E),0);for(let J of ae)S[J.level]=Math.max(S[J.level],J.text.length);return S}function ai(E,S){if(E.lane===-1){E.lane=S,E.endLane=S;let J=gr(E);for(let m=0;m0&&S++;let ie=J[m];ai(ie,S),ie.endLane>E.endLane&&(S=ie.endLane)}E.endLane=S}}function ra(E){if(E&2)return"Start";if(E&4)return"Branch";if(E&8)return"Loop";if(E&16)return"Assignment";if(E&32)return"True";if(E&64)return"False";if(E&128)return"SwitchClause";if(E&256)return"ArrayMutation";if(E&512)return"Call";if(E&1024)return"ReduceLabel";if(E&1)return"Unreachable";throw new Error}function Lr(E){let S=Kr(E);return Yo(S,E,!1)}function Nn(E,S){let J=ra(E.flags);if(S&&(J=`${J}#${be(E)}`),ta(E))E.node&&(J+=` (${Lr(E.node)})`);else if(Rt(E)){let m=[];for(let ie=E.clauseStart;ieMath.max(R,me.lane),0)+1,J=wt(Array(S),""),m=Re.map(()=>Array(S)),ie=Re.map(()=>wt(Array(S),0));for(let R of ae){m[R.level][R.lane]=R;let me=gr(R);for(let ke=0;ke0&&(ot|=1),ke0&&(ot|=1),ke0?ie[R-1][me]:0,ke=me>0?ie[R][me-1]:0,De=ie[R][me];De||(Ae&8&&(De|=12),ke&2&&(De|=3),ie[R][me]=De)}for(let R=0;R{x.lr="\u2500",x.ud="\u2502",x.dr="\u256D",x.dl="\u256E",x.ul="\u256F",x.ur="\u2570",x.udr="\u251C",x.udl="\u2524",x.dlr="\u252C",x.ulr="\u2534",x.udlr="\u256B"})(Se||(Se={}));let nt;(x=>{x[x.None=0]="None",x[x.Up=1]="Up",x[x.Down=2]="Down",x[x.Left=4]="Left",x[x.Right=8]="Right",x[x.UpDown=3]="UpDown",x[x.LeftRight=12]="LeftRight",x[x.UpLeft=5]="UpLeft",x[x.UpRight=9]="UpRight",x[x.DownLeft=6]="DownLeft",x[x.DownRight=10]="DownRight",x[x.UpDownLeft=7]="UpDownLeft",x[x.UpDownRight=11]="UpDownRight",x[x.UpLeftRight=13]="UpLeftRight",x[x.DownLeftRight=14]="DownLeftRight",x[x.UpDownLeftRight=15]="UpDownLeftRight",x[x.NoChildren=16]="NoChildren"})(nt||(nt={}));let z=2032,X=882,ee=Object.create(null),xe=[],ke=[],Le=ia(q,new Set);for(let x of xe)x.text=oa(x.flowNode,x.circular),En(x);let lt=Ii(Le),yt=aa(lt);return Vn(Le,0),Mt();function jt(x){return!!(x.flags&128)}function qr(x){return!!(x.flags&12)&&!!x.antecedents}function na(x){return!!(x.flags&z)}function Cn(x){return!!(x.flags&X)}function zn(x){let f=[];for(let $ of x.edges)$.source===x&&f.push($.target);return f}function Pi(x){let f=[];for(let $ of x.edges)$.target===x&&f.push($.source);return f}function ia(x,f){let $=ge(x),Q=ee[$];if(Q&&f.has(x))return Q.circular=!0,Q={id:-1,flowNode:x,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},xe.push(Q),Q;if(f.add(x),!Q)if(ee[$]=Q={id:$,flowNode:x,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},xe.push(Q),qr(x))for(let O of x.antecedents)Wn(Q,O,f);else na(x)&&Wn(Q,x.antecedent,f);return f.delete(x),Q}function Wn(x,f,$){let Q=ia(f,$),O={source:x,target:Q};ke.push(O),x.edges.push(O),Q.edges.push(O)}function En(x){if(x.level!==-1)return x.level;let f=0;for(let $ of Pi(x))f=Math.max(f,En($)+1);return x.level=f}function Ii(x){let f=0;for(let $ of zn(x))f=Math.max(f,Ii($));return f+1}function aa(x){let f=j(Array(x),0);for(let $ of xe)f[$.level]=Math.max(f[$.level],$.text.length);return f}function Vn(x,f){if(x.lane===-1){x.lane=f,x.endLane=f;let $=zn(x);for(let Q=0;Q<$.length;Q++){Q>0&&f++;let O=$[Q];Vn(O,f),O.endLane>x.endLane&&(f=O.endLane)}x.endLane=f}}function Sr(x){if(x&2)return"Start";if(x&4)return"Branch";if(x&8)return"Loop";if(x&16)return"Assignment";if(x&32)return"True";if(x&64)return"False";if(x&128)return"SwitchClause";if(x&256)return"ArrayMutation";if(x&512)return"Call";if(x&1024)return"ReduceLabel";if(x&1)return"Unreachable";throw new Error}function Je(x){let f=ri(x);return Xo(f,x,!1)}function oa(x,f){let $=Sr(x.flags);if(f&&($=`${$}#${ge(x)}`),Cn(x))x.node&&($+=` (${Je(x.node)})`);else if(jt(x)){let Q=[];for(let O=x.clauseStart;OMath.max(be,he.lane),0)+1,$=j(Array(f),""),Q=yt.map(()=>Array(f)),O=yt.map(()=>j(Array(f),0));for(let be of xe){Q[be.level][be.lane]=be;let he=zn(be);for(let we=0;we0&&(Ye|=1),we0&&(Ye|=1),we0?O[be-1][he]:0,we=he>0?O[be][he-1]:0,et=O[be][he];et||(Re&8&&(et|=12),we&2&&(et|=3),O[be][he]=et)}for(let be=0;be0?E.repeat(S):"";let J="";for(;J.length{},d5=()=>{},f5=()=>{},da=Date.now,m5=()=>{},yf=new Proxy(()=>{},{get:()=>yf});function Q6(e){if(yg){let t=uh.get(e)??0;uh.set(e,t+1),gf.set(e,da()),hf==null||hf.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function y5(e,t,n){if(yg){let i=(n!==void 0?gf.get(n):void 0)??da(),s=(t!==void 0?gf.get(t):void 0)??cT,l=ph.get(e)||0;ph.set(e,l+(i-s)),hf==null||hf.measure(e,t,n)}}var hf,h5,yg,cT,gf,uh,ph,HK=Ht({"src/compiler/performance.ts"(){"use strict";En(),h5={enter:Nr,exit:Nr},yg=!1,cT=da(),gf=new Map,uh=new Map,ph=new Map}}),lT=()=>{},g5=()=>{},fa;function b5(e,t=!0){let n=Af[e.category];return t?n.toLowerCase():n}var bf,vf,Tf,dh,xf,fh,mh,ul,yh,Sf,hh,gh,bh,vh,Th,xh,Sh,wh,Eh,Ch,kh,Ah,Dh,Ph,Nh,wf,Ih,Oh,Mh,Lh,Ef,Cf,Jh,Rh,Fh,jh,Bh,Uh,kf,qh,zh,Wh,Vh,Hh,Kh,Af,Gh,Xh,$h,Qh,Yh,Zh,e0,t0,n0,r0,i0,a0,o0,s0,_0,Df,Pf,Nf,c0,l0,u0,p0,d0,f0,m0,y0,om,uT=Ht({"src/compiler/types.ts"(){"use strict";bf=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.FromKeyword=160]="FromKeyword",e[e.GlobalKeyword=161]="GlobalKeyword",e[e.BigIntKeyword=162]="BigIntKeyword",e[e.OverrideKeyword=163]="OverrideKeyword",e[e.OfKeyword=164]="OfKeyword",e[e.QualifiedName=165]="QualifiedName",e[e.ComputedPropertyName=166]="ComputedPropertyName",e[e.TypeParameter=167]="TypeParameter",e[e.Parameter=168]="Parameter",e[e.Decorator=169]="Decorator",e[e.PropertySignature=170]="PropertySignature",e[e.PropertyDeclaration=171]="PropertyDeclaration",e[e.MethodSignature=172]="MethodSignature",e[e.MethodDeclaration=173]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=174]="ClassStaticBlockDeclaration",e[e.Constructor=175]="Constructor",e[e.GetAccessor=176]="GetAccessor",e[e.SetAccessor=177]="SetAccessor",e[e.CallSignature=178]="CallSignature",e[e.ConstructSignature=179]="ConstructSignature",e[e.IndexSignature=180]="IndexSignature",e[e.TypePredicate=181]="TypePredicate",e[e.TypeReference=182]="TypeReference",e[e.FunctionType=183]="FunctionType",e[e.ConstructorType=184]="ConstructorType",e[e.TypeQuery=185]="TypeQuery",e[e.TypeLiteral=186]="TypeLiteral",e[e.ArrayType=187]="ArrayType",e[e.TupleType=188]="TupleType",e[e.OptionalType=189]="OptionalType",e[e.RestType=190]="RestType",e[e.UnionType=191]="UnionType",e[e.IntersectionType=192]="IntersectionType",e[e.ConditionalType=193]="ConditionalType",e[e.InferType=194]="InferType",e[e.ParenthesizedType=195]="ParenthesizedType",e[e.ThisType=196]="ThisType",e[e.TypeOperator=197]="TypeOperator",e[e.IndexedAccessType=198]="IndexedAccessType",e[e.MappedType=199]="MappedType",e[e.LiteralType=200]="LiteralType",e[e.NamedTupleMember=201]="NamedTupleMember",e[e.TemplateLiteralType=202]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=203]="TemplateLiteralTypeSpan",e[e.ImportType=204]="ImportType",e[e.ObjectBindingPattern=205]="ObjectBindingPattern",e[e.ArrayBindingPattern=206]="ArrayBindingPattern",e[e.BindingElement=207]="BindingElement",e[e.ArrayLiteralExpression=208]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=209]="ObjectLiteralExpression",e[e.PropertyAccessExpression=210]="PropertyAccessExpression",e[e.ElementAccessExpression=211]="ElementAccessExpression",e[e.CallExpression=212]="CallExpression",e[e.NewExpression=213]="NewExpression",e[e.TaggedTemplateExpression=214]="TaggedTemplateExpression",e[e.TypeAssertionExpression=215]="TypeAssertionExpression",e[e.ParenthesizedExpression=216]="ParenthesizedExpression",e[e.FunctionExpression=217]="FunctionExpression",e[e.ArrowFunction=218]="ArrowFunction",e[e.DeleteExpression=219]="DeleteExpression",e[e.TypeOfExpression=220]="TypeOfExpression",e[e.VoidExpression=221]="VoidExpression",e[e.AwaitExpression=222]="AwaitExpression",e[e.PrefixUnaryExpression=223]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=224]="PostfixUnaryExpression",e[e.BinaryExpression=225]="BinaryExpression",e[e.ConditionalExpression=226]="ConditionalExpression",e[e.TemplateExpression=227]="TemplateExpression",e[e.YieldExpression=228]="YieldExpression",e[e.SpreadElement=229]="SpreadElement",e[e.ClassExpression=230]="ClassExpression",e[e.OmittedExpression=231]="OmittedExpression",e[e.ExpressionWithTypeArguments=232]="ExpressionWithTypeArguments",e[e.AsExpression=233]="AsExpression",e[e.NonNullExpression=234]="NonNullExpression",e[e.MetaProperty=235]="MetaProperty",e[e.SyntheticExpression=236]="SyntheticExpression",e[e.SatisfiesExpression=237]="SatisfiesExpression",e[e.TemplateSpan=238]="TemplateSpan",e[e.SemicolonClassElement=239]="SemicolonClassElement",e[e.Block=240]="Block",e[e.EmptyStatement=241]="EmptyStatement",e[e.VariableStatement=242]="VariableStatement",e[e.ExpressionStatement=243]="ExpressionStatement",e[e.IfStatement=244]="IfStatement",e[e.DoStatement=245]="DoStatement",e[e.WhileStatement=246]="WhileStatement",e[e.ForStatement=247]="ForStatement",e[e.ForInStatement=248]="ForInStatement",e[e.ForOfStatement=249]="ForOfStatement",e[e.ContinueStatement=250]="ContinueStatement",e[e.BreakStatement=251]="BreakStatement",e[e.ReturnStatement=252]="ReturnStatement",e[e.WithStatement=253]="WithStatement",e[e.SwitchStatement=254]="SwitchStatement",e[e.LabeledStatement=255]="LabeledStatement",e[e.ThrowStatement=256]="ThrowStatement",e[e.TryStatement=257]="TryStatement",e[e.DebuggerStatement=258]="DebuggerStatement",e[e.VariableDeclaration=259]="VariableDeclaration",e[e.VariableDeclarationList=260]="VariableDeclarationList",e[e.FunctionDeclaration=261]="FunctionDeclaration",e[e.ClassDeclaration=262]="ClassDeclaration",e[e.InterfaceDeclaration=263]="InterfaceDeclaration",e[e.TypeAliasDeclaration=264]="TypeAliasDeclaration",e[e.EnumDeclaration=265]="EnumDeclaration",e[e.ModuleDeclaration=266]="ModuleDeclaration",e[e.ModuleBlock=267]="ModuleBlock",e[e.CaseBlock=268]="CaseBlock",e[e.NamespaceExportDeclaration=269]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=270]="ImportEqualsDeclaration",e[e.ImportDeclaration=271]="ImportDeclaration",e[e.ImportClause=272]="ImportClause",e[e.NamespaceImport=273]="NamespaceImport",e[e.NamedImports=274]="NamedImports",e[e.ImportSpecifier=275]="ImportSpecifier",e[e.ExportAssignment=276]="ExportAssignment",e[e.ExportDeclaration=277]="ExportDeclaration",e[e.NamedExports=278]="NamedExports",e[e.NamespaceExport=279]="NamespaceExport",e[e.ExportSpecifier=280]="ExportSpecifier",e[e.MissingDeclaration=281]="MissingDeclaration",e[e.ExternalModuleReference=282]="ExternalModuleReference",e[e.JsxElement=283]="JsxElement",e[e.JsxSelfClosingElement=284]="JsxSelfClosingElement",e[e.JsxOpeningElement=285]="JsxOpeningElement",e[e.JsxClosingElement=286]="JsxClosingElement",e[e.JsxFragment=287]="JsxFragment",e[e.JsxOpeningFragment=288]="JsxOpeningFragment",e[e.JsxClosingFragment=289]="JsxClosingFragment",e[e.JsxAttribute=290]="JsxAttribute",e[e.JsxAttributes=291]="JsxAttributes",e[e.JsxSpreadAttribute=292]="JsxSpreadAttribute",e[e.JsxExpression=293]="JsxExpression",e[e.JsxNamespacedName=294]="JsxNamespacedName",e[e.CaseClause=295]="CaseClause",e[e.DefaultClause=296]="DefaultClause",e[e.HeritageClause=297]="HeritageClause",e[e.CatchClause=298]="CatchClause",e[e.AssertClause=299]="AssertClause",e[e.AssertEntry=300]="AssertEntry",e[e.ImportTypeAssertionContainer=301]="ImportTypeAssertionContainer",e[e.PropertyAssignment=302]="PropertyAssignment",e[e.ShorthandPropertyAssignment=303]="ShorthandPropertyAssignment",e[e.SpreadAssignment=304]="SpreadAssignment",e[e.EnumMember=305]="EnumMember",e[e.UnparsedPrologue=306]="UnparsedPrologue",e[e.UnparsedPrepend=307]="UnparsedPrepend",e[e.UnparsedText=308]="UnparsedText",e[e.UnparsedInternalText=309]="UnparsedInternalText",e[e.UnparsedSyntheticReference=310]="UnparsedSyntheticReference",e[e.SourceFile=311]="SourceFile",e[e.Bundle=312]="Bundle",e[e.UnparsedSource=313]="UnparsedSource",e[e.InputFiles=314]="InputFiles",e[e.JSDocTypeExpression=315]="JSDocTypeExpression",e[e.JSDocNameReference=316]="JSDocNameReference",e[e.JSDocMemberName=317]="JSDocMemberName",e[e.JSDocAllType=318]="JSDocAllType",e[e.JSDocUnknownType=319]="JSDocUnknownType",e[e.JSDocNullableType=320]="JSDocNullableType",e[e.JSDocNonNullableType=321]="JSDocNonNullableType",e[e.JSDocOptionalType=322]="JSDocOptionalType",e[e.JSDocFunctionType=323]="JSDocFunctionType",e[e.JSDocVariadicType=324]="JSDocVariadicType",e[e.JSDocNamepathType=325]="JSDocNamepathType",e[e.JSDoc=326]="JSDoc",e[e.JSDocComment=326]="JSDocComment",e[e.JSDocText=327]="JSDocText",e[e.JSDocTypeLiteral=328]="JSDocTypeLiteral",e[e.JSDocSignature=329]="JSDocSignature",e[e.JSDocLink=330]="JSDocLink",e[e.JSDocLinkCode=331]="JSDocLinkCode",e[e.JSDocLinkPlain=332]="JSDocLinkPlain",e[e.JSDocTag=333]="JSDocTag",e[e.JSDocAugmentsTag=334]="JSDocAugmentsTag",e[e.JSDocImplementsTag=335]="JSDocImplementsTag",e[e.JSDocAuthorTag=336]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=337]="JSDocDeprecatedTag",e[e.JSDocClassTag=338]="JSDocClassTag",e[e.JSDocPublicTag=339]="JSDocPublicTag",e[e.JSDocPrivateTag=340]="JSDocPrivateTag",e[e.JSDocProtectedTag=341]="JSDocProtectedTag",e[e.JSDocReadonlyTag=342]="JSDocReadonlyTag",e[e.JSDocOverrideTag=343]="JSDocOverrideTag",e[e.JSDocCallbackTag=344]="JSDocCallbackTag",e[e.JSDocOverloadTag=345]="JSDocOverloadTag",e[e.JSDocEnumTag=346]="JSDocEnumTag",e[e.JSDocParameterTag=347]="JSDocParameterTag",e[e.JSDocReturnTag=348]="JSDocReturnTag",e[e.JSDocThisTag=349]="JSDocThisTag",e[e.JSDocTypeTag=350]="JSDocTypeTag",e[e.JSDocTemplateTag=351]="JSDocTemplateTag",e[e.JSDocTypedefTag=352]="JSDocTypedefTag",e[e.JSDocSeeTag=353]="JSDocSeeTag",e[e.JSDocPropertyTag=354]="JSDocPropertyTag",e[e.JSDocThrowsTag=355]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=356]="JSDocSatisfiesTag",e[e.SyntaxList=357]="SyntaxList",e[e.NotEmittedStatement=358]="NotEmittedStatement",e[e.PartiallyEmittedExpression=359]="PartiallyEmittedExpression",e[e.CommaListExpression=360]="CommaListExpression",e[e.SyntheticReferenceExpression=361]="SyntheticReferenceExpression",e[e.Count=362]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=164]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=181]="FirstTypeNode",e[e.LastTypeNode=204]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=164]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=242]="FirstStatement",e[e.LastStatement=258]="LastStatement",e[e.FirstNode=165]="FirstNode",e[e.FirstJSDocNode=315]="FirstJSDocNode",e[e.LastJSDocNode=356]="LastJSDocNode",e[e.FirstJSDocTagNode=333]="FirstJSDocTagNode",e[e.LastJSDocTagNode=356]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=164]="LastContextualKeyword",e))(bf||{}),vf=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.NestedNamespace=4]="NestedNamespace",e[e.Synthesized=8]="Synthesized",e[e.Namespace=16]="Namespace",e[e.OptionalChain=32]="OptionalChain",e[e.ExportContext=64]="ExportContext",e[e.ContainsThis=128]="ContainsThis",e[e.HasImplicitReturn=256]="HasImplicitReturn",e[e.HasExplicitReturn=512]="HasExplicitReturn",e[e.GlobalAugmentation=1024]="GlobalAugmentation",e[e.HasAsyncFunctions=2048]="HasAsyncFunctions",e[e.DisallowInContext=4096]="DisallowInContext",e[e.YieldContext=8192]="YieldContext",e[e.DecoratorContext=16384]="DecoratorContext",e[e.AwaitContext=32768]="AwaitContext",e[e.DisallowConditionalTypesContext=65536]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=131072]="ThisNodeHasError",e[e.JavaScriptFile=262144]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=524288]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=1048576]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=2097152]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=4194304]="PossiblyContainsImportMeta",e[e.JSDoc=8388608]="JSDoc",e[e.Ambient=16777216]="Ambient",e[e.InWithStatement=33554432]="InWithStatement",e[e.JsonFile=67108864]="JsonFile",e[e.TypeCached=134217728]="TypeCached",e[e.Deprecated=268435456]="Deprecated",e[e.BlockScoped=3]="BlockScoped",e[e.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",e[e.ContextFlags=50720768]="ContextFlags",e[e.TypeExcludesFlags=40960]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=6291456]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=128]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=2048]="IdentifierIsInJSDocNamespace",e))(vf||{}),Tf=(e=>(e[e.None=0]="None",e[e.Export=1]="Export",e[e.Ambient=2]="Ambient",e[e.Public=4]="Public",e[e.Private=8]="Private",e[e.Protected=16]="Protected",e[e.Static=32]="Static",e[e.Readonly=64]="Readonly",e[e.Accessor=128]="Accessor",e[e.Abstract=256]="Abstract",e[e.Async=512]="Async",e[e.Default=1024]="Default",e[e.Const=2048]="Const",e[e.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",e[e.Deprecated=8192]="Deprecated",e[e.Override=16384]="Override",e[e.In=32768]="In",e[e.Out=65536]="Out",e[e.Decorator=131072]="Decorator",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=28]="AccessibilityModifier",e[e.ParameterPropertyModifier=16476]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=117086]="TypeScriptModifier",e[e.ExportDefault=1025]="ExportDefault",e[e.All=258047]="All",e[e.Modifier=126975]="Modifier",e))(Tf||{}),dh=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(dh||{}),xf=(e=>(e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e))(xf||{}),fh=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(fh||{}),mh=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(mh||{}),ul=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(ul||{}),yh=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(yh||{}),Sf=class{},hh=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(hh||{}),gh=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(gh||{}),bh=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(bh||{}),vh=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(vh||{}),Th=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(Th||{}),xh=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(xh||{}),Sh=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(Sh||{}),wh=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(wh||{}),Eh=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.WriteComputedProps=1073741824]="WriteComputedProps",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(Eh||{}),Ch=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330091]="NodeBuilderFlagsMask",e))(Ch||{}),kh=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(kh||{}),Ah=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(Ah||{}),Dh=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(Dh||{}),Ph=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(Ph||{}),Nh=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(Nh||{}),wf=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=67108863]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(wf||{}),Ih=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(Ih||{}),Oh=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(Oh||{}),Mh=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e))(Mh||{}),Lh=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.ClassWithBodyScopedClassBinding=65536]="ClassWithBodyScopedClassBinding",e[e.BodyScopedClassBinding=131072]="BodyScopedClassBinding",e[e.NeedsLoopOutParameter=262144]="NeedsLoopOutParameter",e[e.AssignmentsMarked=524288]="AssignmentsMarked",e[e.ClassWithConstructorReference=1048576]="ClassWithConstructorReference",e[e.ConstructorReferenceInClass=2097152]="ConstructorReferenceInClass",e[e.ContainsClassWithPrivateIdentifiers=4194304]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=8388608]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=16777216]="InCheckIdentifier",e))(Lh||{}),Ef=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=138117121]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(Ef||{}),Cf=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e))(Cf||{}),Jh=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))(Jh||{}),Rh=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(Rh||{}),Fh=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(Fh||{}),jh=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(jh||{}),Bh=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(Bh||{}),Uh=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(Uh||{}),kf=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.PropagatingFlags=39]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(kf||{}),qh=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(qh||{}),zh=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(zh||{}),Wh=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(Wh||{}),Vh=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(Vh||{}),Hh=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(Hh||{}),Kh=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(Kh||{}),Af=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(Af||{}),Gh=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(Gh||{}),Xh=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(Xh||{}),$h=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))($h||{}),Qh=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(Qh||{}),Yh=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(Yh||{}),Zh=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.NodeNext=199]="NodeNext",e))(Zh||{}),e0=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(e0||{}),t0=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(t0||{}),n0=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(n0||{}),r0=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(r0||{}),i0=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(i0||{}),a0=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(a0||{}),o0=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(o0||{}),s0=(e=>(e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e.replacementCharacter=65533]="replacementCharacter",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(s0||{}),_0=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(_0||{}),Df=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(Df||{}),Pf=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(Pf||{}),Nf=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(Nf||{}),c0=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(c0||{}),l0=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.CreateBinding=4194304]="CreateBinding",e[e.SetFunctionName=8388608]="SetFunctionName",e[e.PropKey=16777216]="PropKey",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=16777216]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(l0||{}),u0=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e))(u0||{}),p0=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All",e[e.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",e))(p0||{}),d0=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(d0||{}),f0=(e=>(e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.TypeResolutionModeRequire="type-require",e.TypeResolutionModeImport="type-import",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal",e))(f0||{}),m0=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(m0||{}),y0=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(y0||{}),om={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}}}}),v5=()=>{},h0;function hg(e){return e===47||e===92}function T5(e){return kl(e)<0}function y_(e){return kl(e)>0}function x5(e){let t=kl(e);return t>0&&t===e.length}function gg(e){return kl(e)!==0}function is(e){return/^\.\.?($|[\\/])/.test(e)}function S5(e){return!gg(e)&&!is(e)}function pT(e){return Ga(h_(e),".")}function Ea(e,t){return e.length>t.length&&rs(e,t)}function Wr(e,t){for(let n of t)if(Ea(e,n))return!0;return!1}function sm(e){return e.length>0&&hg(e.charCodeAt(e.length-1))}function Y6(e){return e>=97&&e<=122||e>=65&&e<=90}function w5(e,t){let n=e.charCodeAt(t);if(n===58)return t+1;if(n===37&&e.charCodeAt(t+1)===51){let i=e.charCodeAt(t+2);if(i===97||i===65)return t+3}return-1}function kl(e){if(!e)return 0;let t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;let i=e.indexOf(t===47?_r:Sg,2);return i<0?e.length:i+1}if(Y6(t)&&e.charCodeAt(1)===58){let i=e.charCodeAt(2);if(i===47||i===92)return 3;if(e.length===2)return 2}let n=e.indexOf(b0);if(n!==-1){let i=n+b0.length,s=e.indexOf(_r,i);if(s!==-1){let l=e.slice(0,n),d=e.slice(i,s);if(l==="file"&&(d===""||d==="localhost")&&Y6(e.charCodeAt(s+1))){let y=w5(e,s+2);if(y!==-1){if(e.charCodeAt(y)===47)return~(y+1);if(y===e.length)return~y}}return~(s+1)}return~e.length}return 0}function Si(e){let t=kl(e);return t<0?~t:t}function Hi(e){e=Ho(e);let t=Si(e);return t===e.length?e:(e=g_(e),e.slice(0,Math.max(t,e.lastIndexOf(_r))))}function h_(e,t,n){if(e=Ho(e),Si(e)===e.length)return"";e=g_(e);let s=e.slice(Math.max(Si(e),e.lastIndexOf(_r)+1)),l=t!==void 0&&n!==void 0?If(s,t,n):void 0;return l?s.slice(0,s.length-l.length):s}function Z6(e,t,n){if(Jn(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){let i=e.slice(e.length-t.length);if(n(i,t))return i}}function E5(e,t,n){if(typeof t=="string")return Z6(e,t,n)||"";for(let i of t){let s=Z6(e,i,n);if(s)return s}return""}function If(e,t,n){if(t)return E5(g_(e),t,n?i_:Cl);let i=h_(e),s=i.lastIndexOf(".");return s>=0?i.substring(s):""}function C5(e,t){let n=e.substring(0,t),i=e.substring(t).split(_r);return i.length&&!Ti(i)&&i.pop(),[n,...i]}function wi(e,t=""){return e=yn(t,e),C5(e,Si(e))}function Vo(e,t){return e.length===0?"":(e[0]&&Ko(e[0]))+e.slice(1,t).join(_r)}function Ho(e){return e.indexOf("\\")!==-1?e.replace(hT,_r):e}function va(e){if(!ft(e))return[];let t=[e[0]];for(let n=1;n1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(i)}}return t}function yn(e,...t){e&&(e=Ho(e));for(let n of t)n&&(n=Ho(n),!e||Si(n)!==0?e=n:e=Ko(e)+n);return e}function g0(e,...t){return sr(ft(t)?yn(e,...t):Ho(e))}function _m(e,t){return va(wi(e,t))}function Ta(e,t){return Vo(_m(e,t))}function sr(e){if(e=Ho(e),!pl.test(e))return e;let t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!pl.test(e)))return e;let n=Vo(va(wi(e)));return n&&sm(e)?Ko(n):n}function k5(e){return e.length===0?"":e.slice(1).join(_r)}function A5(e,t){return k5(_m(e,t))}function vi(e,t,n){let i=y_(e)?sr(e):Ta(e,t);return n(i)}function g_(e){return sm(e)?e.substr(0,e.length-1):e}function Ko(e){return sm(e)?e:e+_r}function bg(e){return!gg(e)&&!is(e)?"./"+e:e}function dT(e,t,n,i){let s=n!==void 0&&i!==void 0?If(e,n,i):If(e);return s?e.slice(0,e.length-s.length)+(Jn(t,".")?t:"."+t):e}function vg(e,t,n){if(e===t)return 0;if(e===void 0)return-1;if(t===void 0)return 1;let i=e.substring(0,Si(e)),s=t.substring(0,Si(t)),l=rm(i,s);if(l!==0)return l;let d=e.substring(i.length),y=t.substring(s.length);if(!pl.test(d)&&!pl.test(y))return n(d,y);let p=va(wi(e)),x=va(wi(t)),h=Math.min(p.length,x.length);for(let D=1;D0==Si(t)>0,"Paths must either both be absolute or both be relative");let l=Tg(e,t,(typeof n=="boolean"?n:!1)?i_:Cl,typeof n=="function"?n:ht);return Vo(l)}function O5(e,t,n){return y_(e)?xg(t,e,t,n,!1):e}function M5(e,t,n){return bg(mT(Hi(e),t,n))}function xg(e,t,n,i,s){let l=Tg(g0(n,e),g0(n,t),Cl,i),d=l[0];if(s&&y_(d)){let y=d.charAt(0)===_r?"file://":"file:///";l[0]=y+d}return Vo(l)}function yT(e,t){for(;;){let n=t(e);if(n!==void 0)return n;let i=Hi(e);if(i===e)return;e=i}}function L5(e){return rs(e,"/node_modules")}var _r,Sg,b0,hT,pl,gT=Ht({"src/compiler/path.ts"(){"use strict";En(),_r="/",Sg="\\",b0="://",hT=/\\/g,pl=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function a(e,t,n,i,s,l,d){return{code:e,category:t,key:n,message:i,reportsUnnecessary:s,elidedInCompatabilityPyramid:l,reportsDeprecated:d}}var K,J5=Ht({"src/compiler/diagnosticInformationMap.generated.ts"(){"use strict";uT(),K={Unterminated_string_literal:a(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:a(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:a(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:a(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:a(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:a(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:a(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:a(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:a(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:a(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:a(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:a(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:a(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:a(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:a(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:a(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:a(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:a(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:a(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:a(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:a(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:a(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:a(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:a(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:a(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:a(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:a(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:a(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:a(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:a(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:a(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:a(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:a(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:a(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:a(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:a(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:a(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:a(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:a(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:a(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:a(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:a(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:a(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:a(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:a(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:a(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:a(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:a(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:a(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:a(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:a(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:a(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:a(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:a(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:a(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:a(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:a(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:a(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:a(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:a(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:a(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:a(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:a(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:a(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:a(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:a(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:a(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:a(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:a(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:a(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:a(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:a(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:a(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:a(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:a(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:a(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:a(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:a(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:a(1110,1,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:a(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:a(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:a(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:a(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:a(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:a(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:a(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:a(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:a(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:a(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:a(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:a(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:a(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:a(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:a(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:a(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:a(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:a(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:a(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:a(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:a(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:a(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:a(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:a(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:a(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:a(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:a(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:a(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:a(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:a(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:a(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:a(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:a(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:a(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),const_declarations_must_be_initialized:a(1155,1,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:a(1156,1,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:a(1157,1,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:a(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:a(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:a(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:a(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:a(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:a(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:a(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:a(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:a(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:a(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:a(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:a(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:a(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:a(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:a(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:a(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:a(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:a(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:a(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:a(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:a(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:a(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:a(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:a(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:a(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:a(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:a(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:a(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:a(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:a(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:a(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:a(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:a(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:a(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:a(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:a(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:a(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:a(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:a(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:a(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:a(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:a(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:a(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:a(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:a(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:a(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:a(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:a(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:a(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:a(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:a(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:a(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:a(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:a(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:a(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:a(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:a(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:a(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:a(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:a(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:a(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:a(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:a(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:a(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:a(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:a(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:a(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:a(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:a(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:a(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:a(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:a(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:a(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:a(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:a(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:a(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:a(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:a(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:a(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:a(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:a(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:a(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:a(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:a(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:a(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:a(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:a(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:a(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:a(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:a(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:a(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:a(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:a(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:a(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:a(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:a(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:a(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:a(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:a(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:a(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:a(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:a(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:a(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:a(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:a(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:a(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:a(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:a(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:a(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:a(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:a(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:a(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:a(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:a(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:a(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:a(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:a(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:a(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:a(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:a(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:a(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),with_statements_are_not_allowed_in_an_async_function_block:a(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:a(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:a(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:a(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:a(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:a(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:a(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:a(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:a(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:a(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:a(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:a(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:a(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:a(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:a(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:a(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:a(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:a(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:a(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:a(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:a(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:a(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:a(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:a(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:a(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:a(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:a(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:a(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:a(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:a(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:a(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:a(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:a(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:a(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:a(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:a(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:a(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:a(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:a(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:a(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:a(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:a(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:a(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:a(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:a(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:a(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:a(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:a(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:a(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:a(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:a(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:a(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:a(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:a(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:a(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:a(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:a(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:a(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:a(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:a(1371,1,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import:a(1373,3,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:a(1374,3,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:a(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:a(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:a(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:a(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:a(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:a(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:a(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:a(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:a(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:a(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:a(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:a(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:a(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:a(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:a(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:a(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:a(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:a(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:a(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:a(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:a(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:a(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:a(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:a(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:a(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:a(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:a(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:a(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:a(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:a(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:a(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:a(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:a(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:a(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:a(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:a(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:a(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:a(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:a(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:a(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:a(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:a(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:a(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:a(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:a(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:a(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:a(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:a(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:a(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:a(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:a(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:a(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:a(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:a(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:a(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:a(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:a(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:a(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:a(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:a(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:a(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:a(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:a(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:a(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:a(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:a(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:a(1444,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:a(1446,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:a(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:a(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments:a(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional assertion as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:a(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext:a(1452,1,"resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452","'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`."),resolution_mode_should_be_either_require_or_import:a(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:a(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:a(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:a(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:a(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:a(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:a(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:a(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:a(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:a(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:a(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:a(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:a(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:a(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:a(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:a(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:a(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:a(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:a(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:a(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:a(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:a(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:a(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:a(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:a(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:a(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:a(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:a(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:a(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:a(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),The_types_of_0_are_incompatible_between_these_types:a(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:a(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:a(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:a(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:a(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:a(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:a(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:a(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:a(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:a(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:a(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:a(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:a(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:a(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:a(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:a(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:a(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:a(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:a(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:a(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:a(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:a(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:a(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:a(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:a(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:a(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:a(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:a(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:a(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:a(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:a(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:a(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:a(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:a(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:a(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:a(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:a(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:a(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:a(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:a(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:a(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:a(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:a(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:a(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:a(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:a(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:a(2333,1,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:a(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:a(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:a(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:a(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:a(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:a(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:a(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:a(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:a(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:a(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:a(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:a(2346,1,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:a(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:a(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:a(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:a(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:a(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:a(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:a(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:a(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:a(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:a(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:a(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:a(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:a(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:a(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:a(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:a(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:a(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:a(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:a(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:a(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:a(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:a(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:a(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:a(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:a(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:a(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:a(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:a(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:a(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:a(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:a(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:a(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:a(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:a(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:a(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:a(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:a(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:a(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:a(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:a(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:a(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:a(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:a(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:a(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:a(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:a(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:a(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:a(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:a(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:a(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:a(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:a(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:a(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:a(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:a(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:a(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:a(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:a(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:a(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:a(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:a(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:a(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:a(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:a(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:a(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:a(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:a(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:a(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:a(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:a(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:a(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:a(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:a(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:a(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:a(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:a(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:a(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:a(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:a(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:a(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:a(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:a(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:a(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:a(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:a(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:a(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:a(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:a(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:a(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:a(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:a(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:a(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:a(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:a(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:a(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:a(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:a(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:a(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:a(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:a(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:a(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:a(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:a(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:a(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:a(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:a(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:a(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:a(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:a(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:a(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:a(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:a(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:a(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:a(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:a(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:a(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:a(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:a(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:a(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:a(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:a(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:a(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:a(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:a(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:a(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:a(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:a(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:a(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:a(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:a(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:a(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:a(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:a(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:a(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:a(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:a(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:a(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:a(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:a(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:a(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:a(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:a(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:a(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:a(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:a(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:a(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:a(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:a(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:a(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:a(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:a(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:a(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:a(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:a(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:a(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:a(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:a(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:a(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:a(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:a(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:a(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:a(2525,1,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:a(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:a(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:a(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:a(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:a(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:a(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:a(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:a(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:a(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:a(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:a(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:a(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:a(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:a(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:a(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:a(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:a(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:a(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:a(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:a(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:a(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:a(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:a(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:a(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:a(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:a(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:a(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:a(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:a(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:a(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:a(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:a(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:a(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:a(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:a(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:a(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:a(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:a(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:a(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:a(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:a(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:a(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:a(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:a(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:a(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:a(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:a(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:a(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:a(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:a(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:a(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:a(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:a(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:a(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:a(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:a(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:a(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:a(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:a(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:a(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:a(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:a(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:a(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:a(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:a(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:a(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:a(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:a(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:a(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:a(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:a(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:a(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:a(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:a(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:a(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:a(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:a(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:a(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:a(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:a(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:a(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:a(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:a(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:a(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:a(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:a(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:a(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:a(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:a(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:a(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:a(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:a(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:a(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:a(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:a(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:a(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:a(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:a(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:a(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:a(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:a(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:a(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:a(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:a(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:a(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:a(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:a(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:a(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:a(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:a(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:a(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:a(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:a(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:a(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:a(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:a(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:a(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:a(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:a(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:a(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:a(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:a(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:a(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:a(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:a(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:a(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:a(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:a(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:a(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:a(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:a(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:a(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:a(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:a(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:a(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:a(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:a(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:a(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:a(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:a(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:a(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:a(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:a(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:a(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:a(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:a(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:a(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:a(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:a(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:a(2705,1,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:a(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:a(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:a(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:a(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:a(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:a(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:a(2712,1,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:a(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:a(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:a(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:a(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:a(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:a(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:a(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:a(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:a(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:a(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:a(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:a(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:a(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:a(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:a(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:a(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:a(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:a(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:a(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:a(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:a(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:a(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:a(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:a(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:a(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:a(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:a(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:a(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:a(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:a(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:a(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:a(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:a(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:a(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:a(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:a(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:a(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:a(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:a(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:a(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:a(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:a(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:a(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:a(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:a(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:a(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:a(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:a(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:a(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:a(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:a(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:a(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:a(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:a(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:a(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:a(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:a(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:a(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:a(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:a(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:a(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:a(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:a(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:a(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:a(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:a(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:a(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:a(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:a(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:a(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:a(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:a(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:a(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:a(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:a(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:a(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:a(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:a(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:a(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:a(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:a(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:a(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:a(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:a(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:a(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:a(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:a(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:a(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:a(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:a(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:a(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:a(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:a(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:a(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:a(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:a(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:a(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:a(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:a(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:a(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:a(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:a(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:a(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:a(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:a(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:a(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:a(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:a(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821","Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:a(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Cannot_find_namespace_0_Did_you_mean_1:a(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:a(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:a(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:a(2836,1,"Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836","Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:a(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:a(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:a(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes:a(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840","An interface cannot extend a primitive type like '{0}'; an interface can only extend named types and classes"),The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:a(2841,1,"The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841","The type of this expression cannot be named without a 'resolution-mode' assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:a(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:a(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:a(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:a(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:a(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:a(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:a(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),Import_declaration_0_is_using_private_name_1:a(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:a(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:a(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:a(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:a(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:a(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:a(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:a(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:a(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:a(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:a(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:a(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:a(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:a(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:a(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:a(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:a(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:a(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:a(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:a(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:a(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:a(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:a(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:a(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:a(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:a(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:a(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:a(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:a(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:a(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:a(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:a(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:a(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:a(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:a(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:a(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:a(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:a(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:a(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:a(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:a(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:a(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:a(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:a(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:a(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:a(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:a(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:a(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:a(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:a(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:a(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:a(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:a(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:a(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:a(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:a(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:a(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:a(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:a(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:a(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:a(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:a(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:a(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:a(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:a(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:a(4090,1,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:a(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:a(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:a(4094,1,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:a(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:a(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:a(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:a(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:a(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:a(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:a(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:a(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:a(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:a(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:a(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:a(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:a(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:a(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:a(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:a(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:a(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:a(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:a(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:a(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:a(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:a(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:a(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:a(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:a(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:a(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:a(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:a(4125,1,"resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125","'resolution-mode' assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),The_current_host_does_not_support_the_0_option:a(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:a(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:a(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:a(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:a(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:a(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:a(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:a(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:a(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:a(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:a(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:a(5048,1,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:a(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:a(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:a(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:a(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:a(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:a(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:a(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:a(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:a(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:a(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:a(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:a(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:a(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:a(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:a(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:a(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:a(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:a(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:a(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:a(5071,1,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:a(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:a(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:a(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:a(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:a(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:a(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:a(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:a(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:a(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:a(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:a(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:a(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:a(5084,1,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:a(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:a(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:a(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:a(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:a(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:a(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:a(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:a(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:a(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:a(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later:a(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:a(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:a(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:a(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:a(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:a(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:a(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:a(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:a(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:a(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:a(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:a(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:a(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:a(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:a(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:a(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:a(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:a(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:a(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:a(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:a(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:a(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:a(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:a(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:a(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:a(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:a(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:a(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:a(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:a(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:a(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:a(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:a(6024,3,"options_6024","options"),file:a(6025,3,"file_6025","file"),Examples_Colon_0:a(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:a(6027,3,"Options_Colon_6027","Options:"),Version_0:a(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:a(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:a(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:a(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:a(6034,3,"KIND_6034","KIND"),FILE:a(6035,3,"FILE_6035","FILE"),VERSION:a(6036,3,"VERSION_6036","VERSION"),LOCATION:a(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:a(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:a(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:a(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:a(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:a(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:a(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:a(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:a(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:a(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:a(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:a(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:a(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:a(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:a(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:a(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:a(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:a(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:a(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:a(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:a(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:a(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:a(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:a(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:a(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:a(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:a(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:a(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:a(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:a(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:a(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:a(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:a(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:a(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:a(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:a(6081,3,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:a(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:a(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:a(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:a(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:a(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:a(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:a(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:a(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:a(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:a(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:a(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:a(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:a(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:a(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:a(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:a(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:a(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:a(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:a(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:a(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:a(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:a(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:a(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:a(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:a(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:a(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:a(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:a(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:a(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:a(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:a(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:a(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:a(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:a(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:a(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:a(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:a(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:a(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:a(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:a(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:a(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:a(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:a(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:a(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:a(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:a(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:a(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:a(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:a(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:a(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:a(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:a(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:a(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:a(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:a(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:a(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:a(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:a(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:a(6145,3,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:a(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:a(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:a(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:a(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:a(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:a(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:a(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:a(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:a(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:a(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:a(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:a(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:a(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:a(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:a(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:a(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:a(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:a(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:a(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:a(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:a(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:a(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:a(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:a(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:a(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:a(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:a(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:a(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:a(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:a(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:a(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:a(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:a(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:a(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:a(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:a(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:a(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:a(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:a(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:a(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:a(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:a(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:a(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:a(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:a(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:a(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:a(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:a(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:a(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:a(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:a(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:a(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:a(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:a(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:a(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:a(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:a(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:a(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:a(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:a(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:a(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:a(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:a(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:a(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:a(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:a(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:a(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:a(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:a(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:a(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:a(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:a(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:a(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:a(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:a(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:a(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:a(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:a(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:a(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:a(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:a(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:a(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:a(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:a(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:a(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:a(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:a(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:a(6244,3,"Modules_6244","Modules"),File_Management:a(6245,3,"File_Management_6245","File Management"),Emit:a(6246,3,"Emit_6246","Emit"),JavaScript_Support:a(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:a(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:a(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:a(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:a(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:a(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:a(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:a(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:a(6255,3,"Projects_6255","Projects"),Output_Formatting:a(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:a(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:a(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:a(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:a(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:a(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:a(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:a(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:a(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:a(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:a(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:a(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:a(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:a(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:a(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:a(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:a(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:a(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:a(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:a(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Enable_project_compilation:a(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:a(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:a(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:a(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:a(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:a(6308,1,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:a(6309,1,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:a(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:a(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:a(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:a(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:a(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:a(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:a(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:a(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:a(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:a(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:a(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:a(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:a(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:a(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:a(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:a(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:a(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:a(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:a(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:a(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:a(6372,3,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:a(6373,3,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:a(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:a(6375,3,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:a(6376,3,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:a(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:a(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:a(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:a(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:a(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:a(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:a(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:a(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:a(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:a(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:a(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:a(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:a(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:a(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:a(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:a(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:a(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:a(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:a(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:a(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:a(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:a(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:a(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:a(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:a(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:a(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:a(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:a(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:a(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:a(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:a(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:a(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:a(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:a(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:a(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:a(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:a(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:a(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:a(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:a(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:a(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:a(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:a(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:a(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:a(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:a(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:a(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:a(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:a(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:a(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:a(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:a(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:a(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:a(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:a(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:a(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:a(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:a(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:a(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:a(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:a(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:a(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:a(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:a(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:a(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:a(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:a(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:a(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:a(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:a(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:a(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:a(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:a(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:a(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:a(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:a(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:a(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:a(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:a(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:a(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:a(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:a(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:a(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:a(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:a(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:a(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:a(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:a(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:a(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:a(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:a(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:a(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:a(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:a(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:a(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:a(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:a(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:a(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:a(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:a(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:a(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:a(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:a(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:a(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:a(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:a(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:a(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:a(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:a(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:a(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:a(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:a(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:a(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:a(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:a(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:a(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:a(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:a(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:a(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:a(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:a(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:a(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:a(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:a(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:a(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:a(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:a(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:a(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:a(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:a(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:a(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:a(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:a(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:a(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:a(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:a(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:a(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:a(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:a(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:a(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:a(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:a(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:a(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:a(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:a(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:a(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:a(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:a(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:a(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:a(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:a(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:a(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:a(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:a(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:a(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:a(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:a(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:a(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:a(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:a(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Default_catch_clause_variables_as_unknown_instead_of_any:a(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:a(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),one_of_Colon:a(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:a(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:a(6902,3,"type_Colon_6902","type:"),default_Colon:a(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:a(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:a(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:a(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:a(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:a(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:a(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:a(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:a(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:a(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:a(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:a(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:a(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:a(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:a(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:a(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:a(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:a(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:a(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:a(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:a(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:a(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:a(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:a(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:a(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:a(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:a(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:a(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:a(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:a(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:a(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:a(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:a(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:a(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:a(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:a(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:a(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:a(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:a(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:a(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:a(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:a(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:a(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:a(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:a(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:a(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:a(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:a(7025,1,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:a(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:a(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:a(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:a(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:a(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:a(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:a(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:a(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:a(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:a(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:a(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:a(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:a(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:a(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:a(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:a(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:a(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:a(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:a(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:a(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:a(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:a(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:a(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:a(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:a(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:a(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:a(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:a(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:a(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:a(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:a(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:a(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:a(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:a(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:a(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:a(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:a(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:a(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:a(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:a(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:a(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:a(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:a(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:a(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:a(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:a(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:a(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:a(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:a(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:a(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Report_errors_in_js_files:a(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:a(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:a(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:a(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:a(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:a(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:a(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:a(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:a(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:a(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:a(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:a(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:a(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:a(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:a(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:a(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:a(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:a(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:a(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:a(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:a(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:a(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:a(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:a(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:a(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:a(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:a(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:a(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:a(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:a(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:a(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:a(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:a(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:a(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:a(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:a(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:a(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:a(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:a(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:a(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:a(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:a(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:a(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:a(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:a(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:a(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:a(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:a(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:a(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:a(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:a(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:a(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:a(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:a(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:a(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:a(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:a(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:a(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:a(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:a(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:a(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:a(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:a(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:a(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:a(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:a(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:a(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:a(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:a(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:a(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:a(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:a(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:a(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:a(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:a(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:a(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:a(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:a(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:a(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:a(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:a(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:a(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:a(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:a(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:a(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:a(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:a(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:a(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:a(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:a(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:a(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:a(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:a(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:a(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:a(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:a(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:a(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:a(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:a(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:a(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:a(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:a(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:a(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:a(95005,3,"Extract_function_95005","Extract function"),Extract_constant:a(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:a(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:a(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:a(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:a(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:a(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:a(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:a(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:a(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:a(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:a(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:a(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:a(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:a(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:a(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:a(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:a(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:a(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:a(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:a(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:a(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:a(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:a(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:a(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:a(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:a(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:a(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:a(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:a(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:a(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:a(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:a(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:a(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:a(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:a(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:a(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:a(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:a(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:a(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:a(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:a(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:a(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:a(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:a(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:a(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:a(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:a(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:a(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:a(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:a(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:a(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:a(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:a(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:a(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:a(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:a(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:a(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:a(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:a(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:a(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:a(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:a(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:a(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:a(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:a(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:a(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:a(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:a(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:a(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:a(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:a(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:a(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:a(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:a(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:a(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:a(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:a(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:a(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:a(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:a(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:a(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:a(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:a(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:a(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:a(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:a(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:a(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:a(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:a(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:a(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:a(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:a(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:a(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:a(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:a(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:a(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:a(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:a(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:a(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:a(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:a(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:a(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:a(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:a(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:a(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:a(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:a(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:a(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:a(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:a(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:a(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:a(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:a(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:a(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:a(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:a(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:a(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:a(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:a(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:a(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:a(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:a(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:a(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:a(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:a(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:a(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:a(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:a(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:a(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:a(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:a(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:a(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:a(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:a(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:a(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:a(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:a(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:a(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:a(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:a(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:a(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:a(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:a(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:a(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:a(95154,3,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:a(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:a(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:a(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:a(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:a(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:a(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:a(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:a(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:a(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:a(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:a(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:a(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:a(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:a(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:a(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:a(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:a(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:a(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:a(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:a(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:a(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:a(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:a(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:a(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:a(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:a(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:a(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:a(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:a(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:a(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:a(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:a(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:a(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:a(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:a(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:a(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:a(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:a(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:a(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:a(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:a(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:a(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:a(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:a(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:a(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:a(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:a(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:a(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:a(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:a(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:a(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),Await_expression_cannot_be_used_inside_a_class_static_block:a(18037,1,"Await_expression_cannot_be_used_inside_a_class_static_block_18037","Await expression cannot be used inside a class static block."),For_await_loops_cannot_be_used_inside_a_class_static_block:a(18038,1,"For_await_loops_cannot_be_used_inside_a_class_static_block_18038","'For await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:a(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:a(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:a(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:a(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:a(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:a(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:a(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:a(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:a(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:a(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:a(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:a(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Non_abstract_class_0_does_not_implement_all_abstract_members_of_1:a(18052,1,"Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052","Non-abstract class '{0}' does not implement all abstract members of '{1}'"),Its_type_0_is_not_a_valid_JSX_element_type:a(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type.")}}});function At(e){return e>=80}function bT(e){return e===32||At(e)}function t_(e,t){if(e=2?t_(e,NT):t===1?t_(e,DT):t_(e,kT)}function R5(e,t){return t>=2?t_(e,IT):t===1?t_(e,PT):t_(e,AT)}function F5(e){let t=[];return e.forEach((n,i)=>{t[n]=i}),t}function an(e){return LT[e]}function Al(e){return v0.get(e)}function cm(e){let t=[],n=0,i=0;for(;n127&&mn(s)&&(t.push(i),i=n);break}}return t.push(i),t}function j5(e,t,n,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,n,i):wg(xa(e),t,n,e.text,i)}function wg(e,t,n,i,s){(t<0||t>=e.length)&&(s?t=t<0?0:t>=e.length?e.length-1:t:M.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i!==void 0?Lv(e,cm(i)):"unknown"}`));let l=e[t]+n;return s?l>e[t+1]?e[t+1]:typeof i=="string"&&l>i.length?i.length:l:(t=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function mn(e){return e===10||e===13||e===8232||e===8233}function Po(e){return e>=48&&e<=57}function ev(e){return Po(e)||e>=65&&e<=70||e>=97&&e<=102}function B5(e){return e<=1114111}function Xd(e){return e>=48&&e<=55}function U5(e,t){let n=e.charCodeAt(t);switch(n){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return t===0;default:return n>127}}function It(e,t,n,i,s){if(wa(t))return t;let l=!1;for(;;){let d=e.charCodeAt(t);switch(d){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,n)return t;l=!!s;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(i)break;if(e.charCodeAt(t+1)===47){for(t+=2;t127&&qi(d)){t++;continue}break}return t}}function Io(e,t){if(M.assert(t>=0),t===0||mn(e.charCodeAt(t-1))){let n=e.charCodeAt(t);if(t+nl=0&&n127&&qi(A)){D&&mn(A)&&(h=!0),n++;continue}break e}}return D&&(g=s(y,p,x,h,l,g)),g}function q5(e,t,n,i){return lm(!1,e,t,!1,n,i)}function z5(e,t,n,i){return lm(!1,e,t,!0,n,i)}function TT(e,t,n,i,s){return lm(!0,e,t,!1,n,i,s)}function xT(e,t,n,i,s){return lm(!0,e,t,!0,n,i,s)}function ST(e,t,n,i,s,l=[]){return l.push({kind:n,pos:e,end:t,hasTrailingNewLine:i}),l}function Go(e,t){return TT(e,t,ST,void 0,void 0)}function wT(e,t){return xT(e,t,ST,void 0,void 0)}function ET(e){let t=um.exec(e);if(t)return t[0]}function or(e,t){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&vT(e,t)}function Wa(e,t,n){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===36||e===95||(n===1?e===45||e===58:!1)||e>127&&R5(e,t)}function Ag(e,t,n){let i=ir(e,0);if(!or(i,t))return!1;for(let s=Br(i);sh,getStartPos:()=>h,getTokenEnd:()=>p,getTextPos:()=>p,getToken:()=>w,getTokenStart:()=>D,getTokenPos:()=>D,getTokenText:()=>y.substring(D,p),getTokenValue:()=>g,hasUnicodeEscape:()=>(A&1024)!==0,hasExtendedUnicodeEscape:()=>(A&8)!==0,hasPrecedingLineBreak:()=>(A&1)!==0,hasPrecedingJSDocComment:()=>(A&2)!==0,isIdentifier:()=>w===80||w>118,isReservedWord:()=>w>=83&&w<=118,isUnterminated:()=>(A&4)!==0,getCommentDirectives:()=>B,getNumericLiteralFlags:()=>A&25584,getTokenFlags:()=>A,reScanGreaterToken:vt,reScanAsteriskEqualsToken:Un,reScanSlashToken:qn,reScanTemplateToken:Zt,reScanTemplateHeadOrNoSubstitutionTemplate:zn,scanJsxIdentifier:Qn,scanJsxAttributeValue:ut,reScanJsxAttributeValue:Jt,reScanJsxToken:mt,reScanLessThanToken:mr,reScanHashToken:bt,reScanQuestionToken:cn,reScanInvalidIdentifier:dn,scanJsxToken:dt,scanJsDocToken:yr,scanJSDocCommentTextToken:ln,scan:Bn,getText:Ci,clearCommentDirectives:Ie,setText:H,setScriptTarget:be,setLanguageVariant:Ee,setOnError:de,resetTokenState:et,setTextPos:et,setInJSDocType:Qe,tryScan:hr,lookAhead:Wn,scanRange:ti};return M.isDebugging&&Object.defineProperty(oe,"__debugShowCurrentPositionInText",{get:()=>{let ee=oe.getText();return ee.slice(0,oe.getTokenFullStart())+"\u2551"+ee.slice(oe.getTokenFullStart())}}),oe;function Q(ee,Z=p,ae,Te){if(s){let Oe=p;p=Z,s(ee,ae||0,Te),p=Oe}}function W(){let ee=p,Z=!1,ae=!1,Te="";for(;;){let Oe=y.charCodeAt(p);if(Oe===95){A|=512,Z?(Z=!1,ae=!0,Te+=y.substring(ee,p)):(A|=16384,Q(ae?K.Multiple_consecutive_numeric_separators_are_not_permitted:K.Numeric_separators_are_not_allowed_here,p,1)),p++,ee=p;continue}if(Po(Oe)){Z=!0,ae=!1,p++;continue}break}return y.charCodeAt(p-1)===95&&(A|=16384,Q(K.Numeric_separators_are_not_allowed_here,p-1,1)),Te+y.substring(ee,p)}function se(){let ee=p,Z;if(y.charCodeAt(p)===48)if(p++,y.charCodeAt(p)===95)A|=16896,Q(K.Numeric_separators_are_not_allowed_here,p,1),p--,Z=W();else if(!Ze())A|=8192,Z=""+ +g;else if(!g)Z="0";else{g=""+parseInt(g,8),A|=32;let Re=w===41,Rt=(Re?"-":"")+"0o"+(+g).toString(8);return Re&&ee--,Q(K.Octal_literals_are_not_allowed_Use_the_syntax_0,ee,p-ee,Rt),{type:9,value:g}}else Z=W();let ae,Te;y.charCodeAt(p)===46&&(p++,ae=W());let Oe=p;if(y.charCodeAt(p)===69||y.charCodeAt(p)===101){p++,A|=16,(y.charCodeAt(p)===43||y.charCodeAt(p)===45)&&p++;let Re=p,Rt=W();Rt?(Te=y.substring(Oe,Re)+Rt,Oe=p):Q(K.Digit_expected)}let We;if(A&512?(We=Z,ae&&(We+="."+ae),Te&&(We+=Te)):We=y.substring(ee,Oe),A&8192)return Q(K.Decimals_with_leading_zeros_are_not_allowed,ee,Oe-ee),{type:9,value:""+ +We};if(ae!==void 0||A&16)return we(ee,ae===void 0&&!!(A&16)),{type:9,value:""+ +We};{g=We;let Re=fr();return we(ee),{type:Re,value:g}}}function we(ee,Z){if(!or(ir(y,p),e))return;let ae=p,{length:Te}=$t();Te===1&&y[ae]==="n"?Q(Z?K.A_bigint_literal_cannot_use_exponential_notation:K.A_bigint_literal_must_be_an_integer,ee,ae-ee+1):(Q(K.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,ae,Te),p=ae)}function Ze(){let ee=p,Z=!0;for(;Po(y.charCodeAt(p));)Xd(y.charCodeAt(p))||(Z=!1),p++;return g=y.substring(ee,p),Z}function Ue(ee,Z){let ae=ct(ee,!1,Z);return ae?parseInt(ae,16):-1}function rt(ee,Z){return ct(ee,!0,Z)}function ct(ee,Z,ae){let Te=[],Oe=!1,We=!1;for(;Te.length=65&&Re<=70)Re+=97-65;else if(!(Re>=48&&Re<=57||Re>=97&&Re<=102))break;Te.push(Re),p++,We=!1}return Te.length=x){ae+=y.substring(Te,p),A|=4,Q(K.Unterminated_string_literal);break}let Oe=y.charCodeAt(p);if(Oe===Z){ae+=y.substring(Te,p),p++;break}if(Oe===92&&!ee){ae+=y.substring(Te,p),ae+=ei(!0),Te=p;continue}if(mn(Oe)&&!ee){ae+=y.substring(Te,p),A|=4,Q(K.Unterminated_string_literal);break}p++}return ae}function sn(ee){let Z=y.charCodeAt(p)===96;p++;let ae=p,Te="",Oe;for(;;){if(p>=x){Te+=y.substring(ae,p),A|=4,Q(K.Unterminated_template_literal),Oe=Z?15:18;break}let We=y.charCodeAt(p);if(We===96){Te+=y.substring(ae,p),p++,Oe=Z?15:18;break}if(We===36&&p+1=x)return Q(K.Unexpected_end_of_text),"";let ae=y.charCodeAt(p);switch(p++,ae){case 48:if(p>=x||!Po(y.charCodeAt(p)))return"\0";case 49:case 50:case 51:p=x?(A|=2048,ee&&Q(K.Unexpected_end_of_text),y.substring(Z,p)):y.charCodeAt(p)!==125?(A|=2048,ee&&Q(K.Unterminated_Unicode_escape_sequence),y.substring(Z,p)):(p++,A|=8,$d(Oe)):(A|=2048,ee&&Q(K.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),y.substring(Z,p))}for(;p1114111&&(Q(K.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),ae=!0),p>=x?(Q(K.Unexpected_end_of_text),ae=!0):y.charCodeAt(p)===125?p++:(Q(K.Unterminated_Unicode_escape_sequence),ae=!0),ae?"":$d(Z)}function Pn(){if(p+5=0&&Wa(ae,e)){p+=3,A|=8,ee+=_n(),Z=p;continue}if(ae=Pn(),!(ae>=0&&Wa(ae,e)))break;A|=1024,ee+=y.substring(Z,p),ee+=$d(ae),p+=6,Z=p}else break}return ee+=y.substring(Z,p),ee}function jn(){let ee=g.length;if(ee>=2&&ee<=12){let Z=g.charCodeAt(0);if(Z>=97&&Z<=122){let ae=CT.get(g);if(ae!==void 0)return w=ae}}return w=80}function Qt(ee){let Z="",ae=!1,Te=!1;for(;;){let Oe=y.charCodeAt(p);if(Oe===95){A|=512,ae?(ae=!1,Te=!0):Q(Te?K.Multiple_consecutive_numeric_separators_are_not_permitted:K.Numeric_separators_are_not_allowed_here,p,1),p++;continue}if(ae=!0,!Po(Oe)||Oe-48>=ee)break;Z+=y[p],p++,Te=!1}return y.charCodeAt(p-1)===95&&Q(K.Numeric_separators_are_not_allowed_here,p-1,1),Z}function fr(){return y.charCodeAt(p)===110?(g+="n",A&384&&(g=qm(g)+"n"),p++,10):(g=""+(A&128?parseInt(g.slice(2),2):A&256?parseInt(g.slice(2),8):+g),9)}function Bn(){h=p,A=0;let ee=!1;for(;;){if(D=p,p>=x)return w=1;let Z=ir(y,p);if(p===0){if(Z===65533)return Q(K.File_appears_to_be_binary),p=x,w=8;if(Z===35&&Cg(y,p)){if(p=kg(y,p),t)continue;return w=6}}switch(Z){case 10:case 13:if(A|=1,t){p++;continue}else return Z===13&&p+1=0&&or(ae,e))return p+=3,A|=8,g=_n()+$t(),w=jn();let Te=Pn();return Te>=0&&or(Te,e)?(p+=6,A|=1024,g=String.fromCharCode(Te)+$t(),w=jn()):(Q(K.Invalid_character),p++,w=0);case 35:if(p!==0&&y[p+1]==="!")return Q(K.can_only_be_used_at_the_start_of_a_file),p++,w=0;let Oe=ir(y,p+1);if(Oe===92){p++;let Rt=$e();if(Rt>=0&&or(Rt,e))return p+=3,A|=8,g="#"+_n()+$t(),w=81;let Nt=Pn();if(Nt>=0&&or(Nt,e))return p+=6,A|=1024,g="#"+String.fromCharCode(Nt)+$t(),w=81;p--}return or(Oe,e)?(p++,Yt(Oe,e)):(g="#",Q(K.Invalid_character,p++,Br(Z))),w=81;default:let We=Yt(Z,e);if(We)return w=We;if(Lo(Z)){p+=Br(Z);continue}else if(mn(Z)){A|=1,p+=Br(Z);continue}let Re=Br(Z);return Q(K.Invalid_character,p,Re),p+=Re,w=0}}}function dn(){M.assert(w===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),p=D=h,A=0;let ee=ir(y,p),Z=Yt(ee,99);return Z?w=Z:(p+=Br(ee),w)}function Yt(ee,Z){let ae=ee;if(or(ae,Z)){for(p+=Br(ae);p=x)return w=1;let Z=y.charCodeAt(p);if(Z===60)return y.charCodeAt(p+1)===47?(p+=2,w=31):(p++,w=30);if(Z===123)return p++,w=19;let ae=0;for(;p0)break;qi(Z)||(ae=p)}p++}return g=y.substring(h,p),ae===-1?13:12}function Qn(){if(At(w)){for(;p=x)return w=1;for(let Z=y.charCodeAt(p);p=0&&Lo(y.charCodeAt(p-1))&&!(p+1=x)return w=1;let ee=ir(y,p);switch(p+=Br(ee),ee){case 9:case 11:case 12:case 32:for(;p=0&&or(Z,e))return p+=3,A|=8,g=_n()+$t(),w=jn();let ae=Pn();return ae>=0&&or(ae,e)?(p+=6,A|=1024,g=String.fromCharCode(ae)+$t(),w=jn()):(p++,w=0)}if(or(ee,e)){let Z=ee;for(;p=0),p=ee,h=ee,D=ee,w=0,g=void 0,A=0}function Qe(ee){G+=ee?1:-1}}function Br(e){return e>=65536?2:1}function W5(e){if(M.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return String.fromCharCode(t,n)}function $d(e){return JT(e)}var tl,CT,v0,kT,AT,DT,PT,NT,IT,OT,MT,LT,nl,um,ir,JT,V5=Ht({"src/compiler/scanner.ts"(){"use strict";En(),tl={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:162,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:160,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:163,out:147,readonly:148,require:149,global:161,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:164},CT=new Map(Object.entries(tl)),v0=new Map(Object.entries({...tl,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),kT=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],AT=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],DT=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],PT=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],NT=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],IT=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],OT=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,MT=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,LT=F5(v0),nl=7,um=/^#!.*/,ir=String.prototype.codePointAt?(e,t)=>e.codePointAt(t):function(t,n){let i=t.length;if(n<0||n>=i)return;let s=t.charCodeAt(n);if(s>=55296&&s<=56319&&i>n+1){let l=t.charCodeAt(n+1);if(l>=56320&&l<=57343)return(s-55296)*1024+l-56320+65536}return s},JT=String.fromCodePoint?e=>String.fromCodePoint(e):W5}});function H5(e){return is(e)||y_(e)}function K5(e){return Bv(e,q2)}function RT(e){switch(Um(e)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function tn(e){return e.start+e.length}function FT(e){return e.length===0}function G5(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function $5(e,t){return t.start>=e.start&&tn(t)<=tn(e)}function Q5(e,t){return jT(e,t)!==void 0}function jT(e,t){let n=BT(e,t);return n&&n.length===0?void 0:n}function Y5(e,t){return Dg(e.start,e.length,t.start,t.length)}function Z5(e,t,n){return Dg(e.start,e.length,t,n)}function Dg(e,t,n,i){let s=e+t,l=n+i;return n<=s&&l>=e}function ek(e,t){return t<=tn(e)&&t>=e.start}function BT(e,t){let n=Math.max(e.start,t.start),i=Math.min(tn(e),tn(t));return n<=i?zi(n,i):void 0}function v_(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function zi(e,t){return v_(e,t-e)}function Ks(e){return v_(e.span.start,e.newLength)}function UT(e){return FT(e.span)&&e.newLength===0}function pm(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function tk(e){if(e.length===0)return Gg;if(e.length===1)return e[0];let t=e[0],n=t.span.start,i=tn(t.span),s=n+t.newLength;for(let l=1;lt.flags)}function ik(e,t,n){let i=e.toLowerCase(),s=/^([a-z]+)([_\-]([a-z]+))?$/.exec(i);if(!s){n&&n.push(al(K.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));return}let l=s[1],d=s[3];ns(Xg,i)&&!y(l,d,n)&&y(l,void 0,n),Qv(e);function y(p,x,h){let D=sr(t.getExecutingFilePath()),w=Hi(D),g=yn(w,p);if(x&&(g=g+"-"+x),g=t.resolvePath(yn(g,"diagnosticMessages.generated.json")),!t.fileExists(g))return!1;let A="";try{A=t.readFile(g)}catch{return h&&h.push(al(K.Unable_to_open_file_0,g)),!1}try{G3(JSON.parse(A))}catch{return h&&h.push(al(K.Corrupted_locale_file_0,g)),!1}return!0}}function Dl(e,t){if(e)for(;e.original!==void 0;)e=e.original;return!e||!t||t(e)?e:void 0}function Xr(e,t){for(;e;){let n=t(e);if(n==="quit")return;if(n)return e;e=e.parent}}function dl(e){return(e.flags&8)===0}function Pl(e,t){if(e===void 0||dl(e))return e;for(e=e.original;e;){if(dl(e))return!t||t(e)?e:void 0;e=e.original}}function Ur(e){return e.length>=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function Xo(e){let t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function Ot(e){return Xo(e.escapedText)}function HT(e){let t=Al(e.escapedText);return t?Ar(t,bi):void 0}function Of(e){return e.valueDeclaration&&Tx(e.valueDeclaration)?Ot(e.valueDeclaration.name):Xo(e.escapedName)}function KT(e){let t=e.parent.parent;if(t){if($o(t))return Wd(t);switch(t.kind){case 242:if(t.declarationList&&t.declarationList.declarations[0])return Wd(t.declarationList.declarations[0]);break;case 243:let n=t.expression;switch(n.kind===225&&n.operatorToken.kind===64&&(n=n.left),n.kind){case 210:return n.name;case 211:let i=n.argumentExpression;if(Ce(i))return i}break;case 216:return Wd(t.expression);case 255:{if($o(t.statement)||wm(t.statement))return Wd(t.statement);break}}}}function Wd(e){let t=Nl(e);return t&&Ce(t)?t:void 0}function GT(e,t){return!!(mm(e)&&Ce(e.name)&&Ot(e.name)===Ot(t)||_s(e)&&ft(e.declarationList.declarations,n=>GT(n,t)))}function XT(e){return e.name||KT(e)}function mm(e){return!!e.name}function ym(e){switch(e.kind){case 80:return e;case 354:case 347:{let{name:n}=e;if(n.kind===165)return n.right;break}case 212:case 225:{let n=e;switch(Ca(n)){case 1:case 4:case 5:case 3:return Im(n.left);case 7:case 8:case 9:return n.arguments[1];default:return}}case 352:return XT(e);case 346:return KT(e);case 276:{let{expression:n}=e;return Ce(n)?n:void 0}case 211:let t=e;if(y2(t))return t.argumentExpression}return e.name}function Nl(e){if(e!==void 0)return ym(e)||(Km(e)||Gm(e)||$m(e)?$T(e):void 0)}function $T(e){if(e.parent){if(us(e.parent)||$l(e.parent))return e.parent.name;if(St(e.parent)&&e===e.parent.right){if(Ce(e.parent.left))return e.parent.left;if(Zo(e.parent.left))return Im(e.parent.left)}else if(Ei(e.parent)&&Ce(e.parent.name))return e.parent.name}else return}function ak(e){if(gl(e))return Gn(e.modifiers,zl)}function Mf(e){if(gn(e,126975))return Gn(e.modifiers,Fg)}function QT(e,t){if(e.name)if(Ce(e.name)){let n=e.name.escapedText;return o_(e.parent,t).filter(i=>p_(i)&&Ce(i.name)&&i.name.escapedText===n)}else{let n=e.parent.parameters.indexOf(e);M.assert(n>-1,"Parameters should always be in their parents' parameter list");let i=o_(e.parent,t).filter(p_);if(nes(i)&&i.typeParameters.some(s=>s.name.escapedText===n))}function ex(e){return ZT(e,!1)}function tx(e){return ZT(e,!0)}function ok(e){return!!nn(e,p_)}function nx(e){return nn(e,t1)}function rx(e){return px(e,U8)}function sk(e){return nn(e,R8)}function _k(e){return nn(e,Mb)}function ix(e){return nn(e,Mb,!0)}function ck(e){return nn(e,Lb)}function ax(e){return nn(e,Lb,!0)}function lk(e){return nn(e,Jb)}function ox(e){return nn(e,Jb,!0)}function uk(e){return nn(e,Rb)}function sx(e){return nn(e,Rb,!0)}function _x(e){return nn(e,F8,!0)}function pk(e){return nn(e,jb)}function cx(e){return nn(e,jb,!0)}function dk(e){return nn(e,j8)}function fk(e){return nn(e,B8)}function lx(e){return nn(e,Bb)}function mk(e){return nn(e,es)}function Ng(e){return nn(e,Ub)}function gm(e){let t=nn(e,ru);if(t&&t.typeExpression&&t.typeExpression.type)return t}function bm(e){let t=nn(e,ru);return!t&&io(e)&&(t=$n(hm(e),n=>!!n.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function ux(e){let t=lx(e);if(t&&t.typeExpression)return t.typeExpression.type;let n=gm(e);if(n&&n.typeExpression){let i=n.typeExpression.type;if(Hm(i)){let s=$n(i.members,pb);return s&&s.type}if(Gl(i)||e1(i))return i.type}}function o_(e,t){var n;if(!Om(e))return Xe;let i=(n=e.jsDoc)==null?void 0:n.jsDocCache;if(i===void 0||t){let s=M4(e,t);M.assert(s.length<2||s[0]!==s[1]),i=Wo(s,l=>ps(l)?l.tags:l),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function Il(e){return o_(e,!1)}function yk(e){return o_(e,!0)}function nn(e,t,n){return $n(o_(e,n),t)}function px(e,t){return Il(e).filter(t)}function hk(e,t){return Il(e).filter(n=>n.kind===t)}function gk(e){return typeof e=="string"?e:e==null?void 0:e.map(t=>t.kind===327?t.text:bk(t)).join("")}function bk(e){let t=e.kind===330?"link":e.kind===331?"linkcode":"linkplain",n=e.name?hi(e.name):"",i=e.name&&e.text.startsWith("://")?"":" ";return`{@${t} ${n}${i}${e.text}}`}function vk(e){if(nu(e)){if(Fb(e.parent)){let t=T2(e.parent);if(t&&Ha(t.tags))return Wo(t.tags,n=>es(n)?n.typeParameters:void 0)}return Xe}if(Rl(e))return M.assert(e.parent.kind===326),Wo(e.parent.tags,t=>es(t)?t.typeParameters:void 0);if(e.typeParameters||t7(e)&&e.typeParameters)return e.typeParameters;if(Vt(e)){let t=y3(e);if(t.length)return t;let n=bm(e);if(n&&Gl(n)&&n.typeParameters)return n.typeParameters}return Xe}function Tk(e){return e.constraint?e.constraint:es(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function $a(e){return e.kind===80||e.kind===81}function xk(e){return e.kind===177||e.kind===176}function dx(e){return Rn(e)&&!!(e.flags&32)}function fx(e){return ka(e)&&!!(e.flags&32)}function T0(e){return O_(e)&&!!(e.flags&32)}function Ig(e){let t=e.kind;return!!(e.flags&32)&&(t===210||t===211||t===212||t===234)}function Og(e){return Ig(e)&&!qo(e)&&!!e.questionDotToken}function Sk(e){return Og(e.parent)&&e.parent.expression===e}function wk(e){return!Ig(e.parent)||Og(e.parent)||e!==e.parent.expression}function Ek(e){return e.kind===225&&e.operatorToken.kind===61}function mx(e){return I_(e)&&Ce(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function vm(e){return ds(e,8)}function yx(e){return qo(e)&&!!(e.flags&32)}function Ck(e){return e.kind===251||e.kind===250}function kk(e){return e.kind===279||e.kind===278}function hx(e){switch(e.kind){case 308:case 309:return!0;default:return!1}}function Ak(e){return hx(e)||e.kind===306||e.kind===310}function Mg(e){return e.kind===354||e.kind===347}function Dk(e){return Ol(e.kind)}function Ol(e){return e>=165}function gx(e){return e>=0&&e<=164}function Pk(e){return gx(e.kind)}function ua(e){return Xn(e,"pos")&&Xn(e,"end")}function Lg(e){return 9<=e&&e<=15}function Jg(e){return Lg(e.kind)}function Nk(e){switch(e.kind){case 209:case 208:case 14:case 217:case 230:return!0}return!1}function fl(e){return 15<=e&&e<=18}function Ik(e){return fl(e.kind)}function Ok(e){let t=e.kind;return t===17||t===18}function Mk(e){return D8(e)||N8(e)}function bx(e){switch(e.kind){case 275:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 273:return e.parent.isTypeOnly;case 272:case 270:return e.isTypeOnly}return!1}function vx(e){switch(e.kind){case 280:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 277:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 279:return e.parent.isTypeOnly}return!1}function Lk(e){return bx(e)||vx(e)}function Jk(e){return cr(e)||Ce(e)}function Rk(e){return e.kind===11||fl(e.kind)}function ma(e){var t;return Ce(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function Rg(e){var t;return Ln(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function Tx(e){return(os(e)||Bg(e))&&Ln(e.name)}function Fk(e){return Rn(e)&&Ln(e.name)}function yi(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 163:return!0}return!1}function xx(e){return!!(j2(e)&16476)}function Sx(e){return xx(e)||e===126||e===163||e===129}function Fg(e){return yi(e.kind)}function jk(e){let t=e.kind;return t===165||t===80}function Ml(e){let t=e.kind;return t===80||t===81||t===11||t===9||t===166}function Bk(e){let t=e.kind;return t===80||t===205||t===206}function Wi(e){return!!e&&jg(e.kind)}function Tm(e){return!!e&&(jg(e.kind)||Hl(e))}function wx(e){return e&&Ex(e.kind)}function Uk(e){return e.kind===112||e.kind===97}function Ex(e){switch(e){case 261:case 173:case 175:case 176:case 177:case 217:case 218:return!0;default:return!1}}function jg(e){switch(e){case 172:case 178:case 329:case 179:case 180:case 183:case 323:case 184:return!0;default:return Ex(e)}}function qk(e){return $r(e)||A8(e)||Yl(e)&&Wi(e.parent)}function Qa(e){let t=e.kind;return t===175||t===171||t===173||t===176||t===177||t===180||t===174||t===239}function Hr(e){return e&&(e.kind===262||e.kind===230)}function xm(e){return e&&(e.kind===176||e.kind===177)}function Cx(e){return os(e)&&x3(e)}function Bg(e){switch(e.kind){case 173:case 176:case 177:return!0;default:return!1}}function zk(e){switch(e.kind){case 173:case 176:case 177:case 171:return!0;default:return!1}}function Qd(e){return Fg(e)||zl(e)}function Ug(e){let t=e.kind;return t===179||t===178||t===170||t===172||t===180||t===176||t===177}function Wk(e){return Ug(e)||Qa(e)}function qg(e){let t=e.kind;return t===302||t===303||t===304||t===173||t===176||t===177}function x0(e){return H3(e.kind)}function Vk(e){switch(e.kind){case 183:case 184:return!0}return!1}function Sm(e){if(e){let t=e.kind;return t===206||t===205}return!1}function kx(e){let t=e.kind;return t===208||t===209}function Hk(e){let t=e.kind;return t===207||t===231}function zg(e){switch(e.kind){case 259:case 168:case 207:return!0}return!1}function Kk(e){return Ei(e)||io(e)||Dx(e)||Nx(e)}function Gk(e){return Ax(e)||Px(e)}function Ax(e){switch(e.kind){case 205:case 209:return!0}return!1}function Dx(e){switch(e.kind){case 207:case 302:case 303:case 304:return!0}return!1}function Px(e){switch(e.kind){case 206:case 208:return!0}return!1}function Nx(e){switch(e.kind){case 207:case 231:case 229:case 208:case 209:case 80:case 210:case 211:return!0}return Sa(e,!0)}function Xk(e){let t=e.kind;return t===210||t===165||t===204}function $k(e){let t=e.kind;return t===210||t===165}function Qk(e){switch(e.kind){case 285:case 284:case 212:case 213:case 214:case 169:return!0;default:return!1}}function Yk(e){return e.kind===212||e.kind===213}function Zk(e){let t=e.kind;return t===227||t===15}function jo(e){return Ix(vm(e).kind)}function Ix(e){switch(e){case 210:case 211:case 213:case 212:case 283:case 284:case 287:case 214:case 208:case 216:case 209:case 230:case 217:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 227:case 97:case 106:case 110:case 112:case 108:case 234:case 232:case 235:case 102:case 281:return!0;default:return!1}}function Ox(e){return Mx(vm(e).kind)}function Mx(e){switch(e){case 223:case 224:case 219:case 220:case 221:case 222:case 215:return!0;default:return Ix(e)}}function eA(e){switch(e.kind){case 224:return!0;case 223:return e.operator===46||e.operator===47;default:return!1}}function tA(e){switch(e.kind){case 106:case 112:case 97:case 223:return!0;default:return Jg(e)}}function wm(e){return nA(vm(e).kind)}function nA(e){switch(e){case 226:case 228:case 218:case 225:case 229:case 233:case 231:case 360:case 359:case 237:return!0;default:return Mx(e)}}function rA(e){let t=e.kind;return t===215||t===233}function iA(e){return Pb(e)||E8(e)}function Lx(e,t){switch(e.kind){case 247:case 248:case 249:case 245:case 246:return!0;case 255:return t&&Lx(e.statement,t)}return!1}function Jx(e){return ls(e)||L_(e)}function aA(e){return ft(e,Jx)}function oA(e){return!Dm(e)&&!ls(e)&&!gn(e,1)&&!km(e)}function sA(e){return Dm(e)||ls(e)||gn(e,1)}function _A(e){return e.kind===248||e.kind===249}function cA(e){return Yl(e)||wm(e)}function lA(e){return Yl(e)}function uA(e){return Sb(e)||wm(e)}function pA(e){let t=e.kind;return t===267||t===266||t===80}function dA(e){let t=e.kind;return t===267||t===266}function fA(e){let t=e.kind;return t===80||t===266}function mA(e){let t=e.kind;return t===274||t===273}function yA(e){return e.kind===266||e.kind===265}function hA(e){switch(e.kind){case 218:case 225:case 207:case 212:case 178:case 262:case 230:case 174:case 175:case 184:case 179:case 211:case 265:case 305:case 276:case 277:case 280:case 261:case 217:case 183:case 176:case 80:case 272:case 270:case 275:case 180:case 263:case 344:case 346:case 323:case 347:case 354:case 329:case 352:case 328:case 290:case 291:case 292:case 199:case 173:case 172:case 266:case 201:case 279:case 269:case 273:case 213:case 15:case 9:case 209:case 168:case 210:case 302:case 171:case 170:case 177:case 303:case 311:case 304:case 11:case 264:case 186:case 167:case 259:return!0;default:return!1}}function gA(e){switch(e.kind){case 218:case 240:case 178:case 268:case 298:case 174:case 193:case 175:case 184:case 179:case 247:case 248:case 249:case 261:case 217:case 183:case 176:case 180:case 344:case 346:case 323:case 329:case 352:case 199:case 173:case 172:case 266:case 177:case 311:case 264:return!0;default:return!1}}function bA(e){return e===218||e===207||e===262||e===230||e===174||e===175||e===265||e===305||e===280||e===261||e===217||e===176||e===272||e===270||e===275||e===263||e===290||e===173||e===172||e===266||e===269||e===273||e===279||e===168||e===302||e===171||e===170||e===177||e===303||e===264||e===167||e===259||e===352||e===344||e===354}function Wg(e){return e===261||e===281||e===262||e===263||e===264||e===265||e===266||e===271||e===270||e===277||e===276||e===269}function Vg(e){return e===251||e===250||e===258||e===245||e===243||e===241||e===248||e===249||e===247||e===244||e===255||e===252||e===254||e===256||e===257||e===242||e===246||e===253||e===358}function $o(e){return e.kind===167?e.parent&&e.parent.kind!==351||Vt(e):bA(e.kind)}function vA(e){return Wg(e.kind)}function TA(e){return Vg(e.kind)}function Rx(e){let t=e.kind;return Vg(t)||Wg(t)||xA(e)}function xA(e){return e.kind!==240||e.parent!==void 0&&(e.parent.kind===257||e.parent.kind===298)?!1:!u4(e)}function Fx(e){let t=e.kind;return Vg(t)||Wg(t)||t===240}function SA(e){let t=e.kind;return t===282||t===165||t===80}function wA(e){let t=e.kind;return t===110||t===80||t===210||t===294}function jx(e){let t=e.kind;return t===283||t===293||t===284||t===12||t===287}function EA(e){let t=e.kind;return t===290||t===292}function CA(e){let t=e.kind;return t===11||t===293}function Bx(e){let t=e.kind;return t===285||t===284}function kA(e){let t=e.kind;return t===295||t===296}function Hg(e){return e.kind>=315&&e.kind<=356}function Ux(e){return e.kind===326||e.kind===325||e.kind===327||rl(e)||Kg(e)||Ob(e)||nu(e)}function Kg(e){return e.kind>=333&&e.kind<=356}function Vc(e){return e.kind===177}function Hc(e){return e.kind===176}function Ui(e){if(!Om(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function AA(e){return!!e.type}function qx(e){return!!e.initializer}function DA(e){switch(e.kind){case 259:case 168:case 207:case 171:case 302:case 305:return!0;default:return!1}}function S0(e){return e.kind===290||e.kind===292||qg(e)}function PA(e){return e.kind===182||e.kind===232}function NA(e){let t=w0;for(let n of e){if(!n.length)continue;let i=0;for(;in.kind===t)}function JA(e){let t=new Map;if(e)for(let n of e)t.set(n.escapedName,n);return t}function E0(e){return(e.flags&33554432)!==0}function RA(){var e="";let t=n=>e+=n;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(n,i)=>t(n),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&qi(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:Nr,decreaseIndent:Nr,clear:()=>e=""}}function FA(e,t){return e.configFilePath!==t.configFilePath||Wx(e,t)}function Wx(e,t){return T_(e,t,moduleResolutionOptionDeclarations)}function jA(e,t){return T_(e,t,optionsAffectingProgramStructure)}function T_(e,t,n){return e!==t&&n.some(i=>!Y2(U0(e,i),U0(t,i)))}function BA(e,t){for(;;){let n=t(e);if(n==="quit")return;if(n!==void 0)return n;if($r(e))return;e=e.parent}}function UA(e,t){let n=e.entries();for(let[i,s]of n){let l=t(s,i);if(l)return l}}function qA(e,t){let n=e.keys();for(let i of n){let s=t(i);if(s)return s}}function zA(e,t){e.forEach((n,i)=>{t.set(i,n)})}function WA(e){let t=$s.getText();try{return e($s),$s.getText()}finally{$s.clear(),$s.writeKeyword(t)}}function Em(e){return e.end-e.pos}function VA(e,t,n){var i,s;return(s=(i=e==null?void 0:e.resolvedModules)==null?void 0:i.get(t,n))==null?void 0:s.resolvedModule}function HA(e,t,n,i){e.resolvedModules||(e.resolvedModules=createModeAwareCache()),e.resolvedModules.set(t,i,n)}function KA(e,t,n,i){e.resolvedTypeReferenceDirectiveNames||(e.resolvedTypeReferenceDirectiveNames=createModeAwareCache()),e.resolvedTypeReferenceDirectiveNames.set(t,i,n)}function GA(e,t,n){var i,s;return(s=(i=e==null?void 0:e.resolvedTypeReferenceDirectiveNames)==null?void 0:i.get(t,n))==null?void 0:s.resolvedTypeReferenceDirective}function XA(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function $A(e,t){return e===t||e.resolvedModule===t.resolvedModule||!!e.resolvedModule&&!!t.resolvedModule&&e.resolvedModule.isExternalLibraryImport===t.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===t.resolvedModule.extension&&e.resolvedModule.resolvedFileName===t.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===t.resolvedModule.originalPath&&YA(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.node10Result===t.node10Result}function QA(e,t,n,i,s){var l,d;let y=(d=(l=e.resolvedModules)==null?void 0:l.get(n,i))==null?void 0:d.node10Result,p=y?Kc(void 0,K.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,y,y.indexOf(nodeModulesPathPart+"@types/")>-1?`@types/${mangleScopedPackageName(s)}`:s):t.typesPackageExists(s)?Kc(void 0,K.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,s,mangleScopedPackageName(s)):t.packageBundlesTypes(s)?Kc(void 0,K.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,s,n):Kc(void 0,K.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,n,mangleScopedPackageName(s));return p&&(p.repopulateInfo=()=>({moduleReference:n,mode:i,packageName:s===n?void 0:s})),p}function YA(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version}function Vx({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function ZA(e){return`${Vx(e)}@${e.version}`}function eD(e,t){return e===t||e.resolvedTypeReferenceDirective===t.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!t.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===t.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary==!!t.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===t.resolvedTypeReferenceDirective.originalPath}function tD(e,t,n,i,s,l){M.assert(e.length===n.length);for(let d=0;d=0),xa(t)[e]}function sD(e){let t=Kr(e),n=Xa(t,e.pos);return`${t.fileName}(${n.line+1},${n.character+1})`}function Hx(e,t){M.assert(e>=0);let n=xa(t),i=e,s=t.text;if(i+1===n.length)return s.length-1;{let l=n[i],d=n[i+1]-1;for(M.assert(mn(s.charCodeAt(d)));l<=d&&mn(s.charCodeAt(d));)d--;return d}}function Kx(e,t,n){return!(n&&n(t))&&!e.identifiers.has(t)}function Bi(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function yl(e){return!Bi(e)}function _D(e,t){return Jo(e)?t===e.expression:Hl(e)?t===e.modifiers:Wl(e)?t===e.initializer:os(e)?t===e.questionToken&&Cx(e):us(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||Ws(e.modifiers,t,Qd):tu(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||Ws(e.modifiers,t,Qd):Vl(e)?t===e.exclamationToken:P_(e)?t===e.typeParameters||t===e.type||Ws(e.typeParameters,t,Jo):Kl(e)?t===e.typeParameters||Ws(e.typeParameters,t,Jo):N_(e)?t===e.typeParameters||t===e.type||Ws(e.typeParameters,t,Jo):Cb(e)?t===e.modifiers||Ws(e.modifiers,t,Qd):!1}function Ws(e,t,n){return!e||Wt(t)||!n(t)?!1:ns(e,t)}function Gx(e,t,n){if(t===void 0||t.length===0)return e;let i=0;for(;i[`${Xa(e,d.range.end).line}`,d])),i=new Map;return{getUnusedExpectations:s,markUsed:l};function s(){return tm(n.entries()).filter(([d,y])=>y.type===0&&!i.get(d)).map(([d,y])=>y)}function l(d){return n.has(`${d}`)?(i.set(`${d}`,!0),!0):!1}}function Qo(e,t,n){return Bi(e)?e.pos:Hg(e)||e.kind===12?It((t||Kr(e)).text,e.pos,!1,!0):n&&Ui(e)?Qo(e.jsDoc[0],t):e.kind===357&&e._children.length>0?Qo(e._children[0],t,n):It((t||Kr(e)).text,e.pos,!1,!1,b4(e))}function mD(e,t){let n=!Bi(e)&&R_(e)?sg(e.modifiers,zl):void 0;return n?It((t||Kr(e)).text,n.end):Qo(e,t)}function Yo(e,t,n=!1){return Ys(e.text,t,n)}function yD(e){return!!Xr(e,L8)}function Yx(e){return!!(L_(e)&&e.exportClause&&Ym(e.exportClause)&&e.exportClause.name.escapedText==="default")}function Ys(e,t,n=!1){if(Bi(t))return"";let i=e.substring(n?t.pos:It(e,t.pos),t.end);return yD(t)&&(i=i.split(/\r\n|\n|\r/).map(s=>ll(s.replace(/^\s*\*/,""))).join(` -`)),i}function Cm(e,t=!1){return Yo(Kr(e),e,t)}function hD(e){return e.pos}function gD(e,t){return El(e,t,hD,wn)}function Vr(e){let t=e.emitNode;return t&&t.flags||0}function bD(e){let t=e.emitNode;return t&&t.internalFlags||0}function vD(e,t,n){if(t&&TD(e,n))return Yo(t,e);switch(e.kind){case 11:{let i=n&2?a3:n&1||Vr(e)&16777216?Ff:jf;return e.singleQuote?"'"+i(e.text,39)+"'":'"'+i(e.text,34)+'"'}case 15:case 16:case 17:case 18:{let i=n&1||Vr(e)&16777216?Ff:jf,s=e.rawText??YN(i(e.text,96));switch(e.kind){case 15:return"`"+s+"`";case 16:return"`"+s+"${";case 17:return"}"+s+"${";case 18:return"}"+s+"`"}break}case 9:case 10:return e.text;case 14:return n&4&&e.isUnterminated?e.text+(e.text.charCodeAt(e.text.length-1)===92?" /":"/"):e.text}return M.fail(`Literal kind '${e.kind}' not accounted for.`)}function TD(e,t){if(pa(e)||!e.parent||t&4&&e.isUnterminated)return!1;if(ro(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(t&8)}return!cb(e)}function xD(e){return m_(e)?'"'+jf(e)+'"':""+e}function SD(e){return h_(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function wD(e){return(fm(e)&3)!==0||Zx(e)}function Zx(e){let t=Lm(e);return t.kind===259&&t.parent.kind===298}function km(e){return Gi(e)&&(e.name.kind===11||Am(e))}function ED(e){return Gi(e)&&e.name.kind===11}function CD(e){return Gi(e)&&cr(e.name)}function e4(e){return Gi(e)||Ce(e)}function kD(e){return AD(e.valueDeclaration)}function AD(e){return!!e&&e.kind===266&&!e.body}function DD(e){return e.kind===311||e.kind===266||Tm(e)}function Am(e){return!!(e.flags&1024)}function $g(e){return km(e)&&t4(e)}function t4(e){switch(e.parent.kind){case 311:return ts(e.parent);case 267:return km(e.parent.parent)&&$r(e.parent.parent.parent)&&!ts(e.parent.parent.parent)}return!1}function n4(e){var t;return(t=e.declarations)==null?void 0:t.find(n=>!$g(n)&&!(Gi(n)&&Am(n)))}function PD(e){return e===1||e===100||e===199}function Qg(e,t){return ts(e)||PD(Gr(t))&&!!e.commonJsModuleIndicator}function ND(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:K2(t,"alwaysStrict")||K8(e.statements)?!0:ts(e)||z2(t)?Gr(t)>=5?!0:!t.noImplicitUseStrict:!1}function ID(e){return!!(e.flags&16777216)||gn(e,2)}function r4(e,t){switch(e.kind){case 311:case 268:case 298:case 266:case 247:case 248:case 249:case 175:case 173:case 176:case 177:case 261:case 217:case 218:case 171:case 174:return!0;case 240:return!Tm(t)}return!1}function OD(e){switch(M.type(e),e.kind){case 344:case 352:case 329:return!0;default:return i4(e)}}function i4(e){switch(M.type(e),e.kind){case 178:case 179:case 172:case 180:case 183:case 184:case 323:case 262:case 230:case 263:case 264:case 351:case 261:case 173:case 175:case 176:case 177:case 217:case 218:return!0;default:return!1}}function Yg(e){switch(e.kind){case 271:case 270:return!0;default:return!1}}function MD(e){return Yg(e)||Nm(e)}function LD(e){switch(e.kind){case 271:case 270:case 242:case 262:case 261:case 266:case 264:case 263:case 265:return!0;default:return!1}}function JD(e){return Dm(e)||Gi(e)||Xl(e)||i2(e)}function Dm(e){return Yg(e)||L_(e)}function C0(e){return Xr(e.parent,t=>r4(t,t.parent))}function RD(e,t){let n=C0(e);for(;n;)t(n),n=C0(n)}function a4(e){return!e||Em(e)===0?"(Missing)":Cm(e)}function FD(e){return e.declaration?a4(e.declaration.parameters[0].name):void 0}function jD(e){return e.kind===166&&!Ki(e.expression)}function Zg(e){var t;switch(e.kind){case 80:case 81:return(t=e.emitNode)!=null&&t.autoGenerate?void 0:e.escapedText;case 11:case 9:case 15:return Ur(e.text);case 166:return Ki(e.expression)?Ur(e.expression.text):void 0;case 294:return Ul(e);default:return M.assertNever(e)}}function BD(e){return M.checkDefined(Zg(e))}function hi(e){switch(e.kind){case 110:return"this";case 81:case 80:return Em(e)===0?Ot(e):Cm(e);case 165:return hi(e.left)+"."+hi(e.right);case 210:return Ce(e.name)||Ln(e.name)?hi(e.expression)+"."+hi(e.name):M.assertNever(e.name);case 317:return hi(e.left)+hi(e.right);case 294:return hi(e.namespace)+":"+hi(e.name);default:return M.assertNever(e)}}function UD(e,t,...n){let i=Kr(e);return o4(i,e,t,...n)}function qD(e,t,n,...i){let s=It(e.text,t.pos);return U2(e,s,t.end-s,n,...i)}function o4(e,t,n,...i){let s=n2(e,t);return U2(e,s.start,s.length,n,...i)}function zD(e,t,n,i){let s=n2(e,t);return t2(e,s.start,s.length,n,i)}function WD(e,t,n,i){let s=It(e.text,t.pos);return t2(e,s,t.end-s,n,i)}function e2(e,t,n){M.assertGreaterThanOrEqual(t,0),M.assertGreaterThanOrEqual(n,0),e&&(M.assertLessThanOrEqual(t,e.text.length),M.assertLessThanOrEqual(t+n,e.text.length))}function t2(e,t,n,i,s){return e2(e,t,n),{file:e,start:t,length:n,code:i.code,category:i.category,messageText:i.next?i:i.messageText,relatedInformation:s}}function VD(e,t,n){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:n}}function HD(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function KD(e,t,n){return{file:e,start:t.pos,length:t.end-t.pos,code:n.code,category:n.category,messageText:n.message}}function Gs(e,t){let n=as(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);n.scan();let i=n.getTokenStart();return zi(i,n.getTokenEnd())}function GD(e,t){let n=as(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),n.getToken()}function XD(e,t){let n=It(e.text,t.pos);if(t.body&&t.body.kind===240){let{line:i}=Xa(e,t.body.pos),{line:s}=Xa(e,t.body.end);if(i0?t.statements[0].pos:t.end;return zi(l,d)}case 252:case 228:{let l=It(e.text,t.pos);return Gs(e,l)}case 237:{let l=It(e.text,t.expression.end);return Gs(e,l)}case 356:{let l=It(e.text,t.tagName.pos);return Gs(e,l)}}if(n===void 0)return Gs(e,t.pos);M.assert(!ps(n));let i=Bi(n),s=i||Hf(t)?n.pos:It(e.text,n.pos);return i?(M.assert(s===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),M.assert(s===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(M.assert(s>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),M.assert(s<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),zi(s,n.end)}function $D(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function r2(e){return e.scriptKind===6}function QD(e){return!!(dm(e)&2048)}function YD(e){return!!(dm(e)&64&&!qT(e,e.parent))}function s4(e){return!!(fm(e)&2)}function ZD(e){return!!(fm(e)&1)}function eP(e){return e.kind===212&&e.expression.kind===108}function i2(e){return e.kind===212&&e.expression.kind===102}function k0(e){return xb(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function _4(e){return Xl(e)&&gb(e.argument)&&cr(e.argument.literal)}function ha(e){return e.kind===243&&e.expression.kind===11}function Pm(e){return!!(Vr(e)&2097152)}function A0(e){return Pm(e)&&cs(e)}function tP(e){return Ce(e.name)&&!e.initializer}function D0(e){return Pm(e)&&_s(e)&&eo(e.declarationList.declarations,tP)}function nP(e,t){return e.kind!==12?Go(t.text,e.pos):void 0}function c4(e,t){let n=e.kind===168||e.kind===167||e.kind===217||e.kind===218||e.kind===216||e.kind===259||e.kind===280?d_(wT(t,e.pos),Go(t,e.pos)):Go(t,e.pos);return Gn(n,i=>t.charCodeAt(i.pos+1)===42&&t.charCodeAt(i.pos+2)===42&&t.charCodeAt(i.pos+3)!==47)}function a2(e){if(181<=e.kind&&e.kind<=204)return!0;switch(e.kind){case 133:case 159:case 150:case 162:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return e.parent.kind!==221;case 232:return Sl(e.parent)&&!R0(e);case 167:return e.parent.kind===199||e.parent.kind===194;case 80:(e.parent.kind===165&&e.parent.right===e||e.parent.kind===210&&e.parent.name===e)&&(e=e.parent),M.assert(e.kind===80||e.kind===165||e.kind===210,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 165:case 210:case 110:{let{parent:t}=e;if(t.kind===185)return!1;if(t.kind===204)return!t.isTypeOf;if(181<=t.kind&&t.kind<=204)return!0;switch(t.kind){case 232:return Sl(t.parent)&&!R0(t);case 167:return e===t.constraint;case 351:return e===t.constraint;case 171:case 170:case 168:case 259:return e===t.type;case 261:case 217:case 218:case 175:case 173:case 172:case 176:case 177:return e===t.type;case 178:case 179:case 180:return e===t.type;case 215:return e===t.type;case 212:case 213:case 214:return ns(t.typeArguments,e)}}}return!1}function rP(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function iP(e,t){return n(e);function n(i){switch(i.kind){case 252:return t(i);case 268:case 240:case 244:case 245:case 246:case 247:case 248:case 249:case 253:case 254:case 295:case 296:case 255:case 257:case 298:return qt(i,n)}}}function aP(e,t){return n(e);function n(i){switch(i.kind){case 228:t(i);let s=i.expression;s&&n(s);return;case 265:case 263:case 266:case 264:return;default:if(Wi(i)){if(i.name&&i.name.kind===166){n(i.name.expression);return}}else a2(i)||qt(i,n)}}}function oP(e){return e&&e.kind===187?e.elementType:e&&e.kind===182?Zf(e.typeArguments):void 0}function sP(e){switch(e.kind){case 263:case 262:case 230:case 186:return e.members;case 209:return e.properties}}function o2(e){if(e)switch(e.kind){case 207:case 305:case 168:case 302:case 171:case 170:case 303:case 259:return!0}return!1}function _P(e){return o2(e)||xm(e)}function l4(e){return e.parent.kind===260&&e.parent.parent.kind===242}function cP(e){return Vt(e)?ao(e.parent)&&St(e.parent.parent)&&Ca(e.parent.parent)===2||s2(e.parent):!1}function s2(e){return Vt(e)?St(e)&&Ca(e)===1:!1}function lP(e){return(Ei(e)?s4(e)&&Ce(e.name)&&l4(e):os(e)?J0(e)&&Rm(e):Wl(e)&&J0(e))||s2(e)}function uP(e){switch(e.kind){case 173:case 172:case 175:case 176:case 177:case 261:case 217:return!0}return!1}function pP(e,t){for(;;){if(t&&t(e),e.statement.kind!==255)return e.statement;e=e.statement}}function u4(e){return e&&e.kind===240&&Wi(e.parent)}function dP(e){return e&&e.kind===173&&e.parent.kind===209}function fP(e){return(e.kind===173||e.kind===176||e.kind===177)&&(e.parent.kind===209||e.parent.kind===230)}function mP(e){return e&&e.kind===1}function yP(e){return e&&e.kind===0}function _2(e,t,n,i){return hn(e==null?void 0:e.properties,s=>{if(!us(s))return;let l=Zg(s.name);return t===l||i&&i===l?n(s):void 0})}function hP(e,t,n){return _2(e,t,i=>Ql(i.initializer)?$n(i.initializer.elements,s=>cr(s)&&s.text===n):void 0)}function p4(e){if(e&&e.statements.length){let t=e.statements[0].expression;return Ar(t,ao)}}function gP(e,t,n){return d4(e,t,i=>Ql(i.initializer)?$n(i.initializer.elements,s=>cr(s)&&s.text===n):void 0)}function d4(e,t,n){return _2(p4(e),t,n)}function bP(e){return Xr(e.parent,Wi)}function vP(e){return Xr(e.parent,wx)}function TP(e){return Xr(e.parent,Hr)}function xP(e){return Xr(e.parent,t=>Hr(t)||Wi(t)?"quit":Hl(t))}function SP(e){return Xr(e.parent,Tm)}function c2(e,t,n){for(M.assert(e.kind!==311);;){if(e=e.parent,!e)return M.fail();switch(e.kind){case 166:if(n&&Hr(e.parent.parent))return e;e=e.parent.parent;break;case 169:e.parent.kind===168&&Qa(e.parent.parent)?e=e.parent.parent:Qa(e.parent)&&(e=e.parent);break;case 218:if(!t)continue;case 261:case 217:case 266:case 174:case 171:case 170:case 173:case 172:case 175:case 176:case 177:case 178:case 179:case 180:case 265:case 311:return e}}}function wP(e){switch(e.kind){case 218:case 261:case 217:case 171:return!0;case 240:switch(e.parent.kind){case 175:case 173:case 176:case 177:return!0;default:return!1}default:return!1}}function EP(e){Ce(e)&&(u_(e.parent)||cs(e.parent))&&e.parent.name===e&&(e=e.parent);let t=c2(e,!0,!1);return $r(t)}function CP(e){let t=c2(e,!1,!1);if(t)switch(t.kind){case 175:case 261:case 217:return t}}function kP(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 166:e=e.parent;break;case 261:case 217:case 218:if(!t)continue;case 171:case 170:case 173:case 172:case 175:case 176:case 177:case 174:return e;case 169:e.parent.kind===168&&Qa(e.parent.parent)?e=e.parent.parent:Qa(e.parent)&&(e=e.parent);break}}}function AP(e){if(e.kind===217||e.kind===218){let t=e,n=e.parent;for(;n.kind===216;)t=n,n=n.parent;if(n.kind===212&&n.expression===t)return n}}function DP(e){return e.kind===108||Lf(e)}function Lf(e){let t=e.kind;return(t===210||t===211)&&e.expression.kind===108}function PP(e){let t=e.kind;return(t===210||t===211)&&e.expression.kind===110}function NP(e){var t;return!!e&&Ei(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function IP(e){return!!e&&(tu(e)||us(e))&&St(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function OP(e){switch(e.kind){case 182:return e.typeName;case 232:return no(e.expression)?e.expression:void 0;case 80:case 165:return e}}function MP(e){switch(e.kind){case 214:return e.tag;case 285:case 284:return e.tagName;default:return e.expression}}function f4(e,t,n,i){if(e&&mm(t)&&Ln(t.name))return!1;switch(t.kind){case 262:return!0;case 230:return!e;case 171:return n!==void 0&&(e?u_(n):Hr(n)&&!v3(t)&&!T3(t));case 176:case 177:case 173:return t.body!==void 0&&n!==void 0&&(e?u_(n):Hr(n));case 168:return e?n!==void 0&&n.body!==void 0&&(n.kind===175||n.kind===173||n.kind===177)&&f3(n)!==t&&i!==void 0&&i.kind===262:!1}return!1}function s_(e,t,n,i){return gl(t)&&f4(e,t,n,i)}function P0(e,t,n,i){return s_(e,t,n,i)||l2(e,t,n)}function l2(e,t,n){switch(t.kind){case 262:return ft(t.members,i=>P0(e,i,t,n));case 230:return!e&&ft(t.members,i=>P0(e,i,t,n));case 173:case 177:case 175:return ft(t.parameters,i=>s_(e,i,t,n));default:return!1}}function LP(e,t){if(s_(e,t))return!0;let n=d3(t);return!!n&&l2(e,n,t)}function JP(e,t,n){let i;if(xm(t)){let{firstAccessor:s,secondAccessor:l,setAccessor:d}=O2(n.members,t),y=gl(s)?s:l&&gl(l)?l:void 0;if(!y||t!==y)return!1;i=d==null?void 0:d.parameters}else Vl(t)&&(i=t.parameters);if(s_(e,t,n))return!0;if(i){for(let s of i)if(!jl(s)&&s_(e,s,t,n))return!0}return!1}function m4(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return m4(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function Yd(e){let{parent:t}=e;return t.kind===285||t.kind===284||t.kind===286?t.tagName===e:!1}function u2(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 208:case 209:case 210:case 211:case 212:case 213:case 214:case 233:case 215:case 237:case 234:case 216:case 217:case 230:case 218:case 221:case 219:case 220:case 223:case 224:case 225:case 226:case 229:case 227:case 231:case 283:case 284:case 287:case 228:case 222:case 235:return!0;case 232:return!Sl(e.parent)&&!t1(e.parent);case 165:for(;e.parent.kind===165;)e=e.parent;return e.parent.kind===185||rl(e.parent)||_f(e.parent)||Zs(e.parent)||Yd(e);case 317:for(;Zs(e.parent);)e=e.parent;return e.parent.kind===185||rl(e.parent)||_f(e.parent)||Zs(e.parent)||Yd(e);case 81:return St(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===185||rl(e.parent)||_f(e.parent)||Zs(e.parent)||Yd(e))return!0;case 9:case 10:case 11:case 15:case 110:return y4(e);default:return!1}}function y4(e){let{parent:t}=e;switch(t.kind){case 259:case 168:case 171:case 170:case 305:case 302:case 207:return t.initializer===e;case 243:case 244:case 245:case 246:case 252:case 253:case 254:case 295:case 256:return t.expression===e;case 247:let n=t;return n.initializer===e&&n.initializer.kind!==260||n.condition===e||n.incrementor===e;case 248:case 249:let i=t;return i.initializer===e&&i.initializer.kind!==260||i.expression===e;case 215:case 233:return e===t.expression;case 238:return e===t.expression;case 166:return e===t.expression;case 169:case 293:case 292:case 304:return!0;case 232:return t.expression===e&&!a2(t);case 303:return t.objectAssignmentInitializer===e;case 237:return e===t.expression;default:return u2(t)}}function h4(e){for(;e.kind===165||e.kind===80;)e=e.parent;return e.kind===185}function RP(e){return Ym(e)&&!!e.parent.moduleSpecifier}function g4(e){return e.kind===270&&e.moduleReference.kind===282}function FP(e){return M.assert(g4(e)),e.moduleReference.expression}function jP(e){return Nm(e)&&B2(e.initializer).arguments[0]}function BP(e){return e.kind===270&&e.moduleReference.kind!==282}function p2(e){return Vt(e)}function UP(e){return!Vt(e)}function Vt(e){return!!e&&!!(e.flags&262144)}function qP(e){return!!e&&!!(e.flags&67108864)}function zP(e){return!r2(e)}function b4(e){return!!e&&!!(e.flags&8388608)}function WP(e){return I_(e)&&Ce(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function Ll(e,t){if(e.kind!==212)return!1;let{expression:n,arguments:i}=e;if(n.kind!==80||n.escapedText!=="require"||i.length!==1)return!1;let s=i[0];return!t||qr(s)}function v4(e){return T4(e,!1)}function Nm(e){return T4(e,!0)}function VP(e){return $l(e)&&Nm(e.parent.parent)}function T4(e,t){return Ei(e)&&!!e.initializer&&Ll(t?B2(e.initializer):e.initializer,!0)}function x4(e){return _s(e)&&e.declarationList.declarations.length>0&&eo(e.declarationList.declarations,t=>v4(t))}function HP(e){return e===39||e===34}function KP(e,t){return Yo(t,e).charCodeAt(0)===34}function N0(e){return St(e)||Zo(e)||Ce(e)||O_(e)}function S4(e){return Vt(e)&&e.initializer&&St(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&no(e.name)&&__(e.name,e.initializer.left)?e.initializer.right:e.initializer}function GP(e){let t=S4(e);return t&&x_(t,Bl(e.name))}function XP(e,t){return hn(e.properties,n=>us(n)&&Ce(n.name)&&n.name.escapedText==="value"&&n.initializer&&x_(n.initializer,t))}function $P(e){if(e&&e.parent&&St(e.parent)&&e.parent.operatorToken.kind===64){let t=Bl(e.parent.left);return x_(e.parent.right,t)||QP(e.parent.left,e.parent.right,t)}if(e&&O_(e)&&m2(e)){let t=XP(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function x_(e,t){if(O_(e)){let n=Fl(e.expression);return n.kind===217||n.kind===218?e:void 0}if(e.kind===217||e.kind===230||e.kind===218||ao(e)&&(e.properties.length===0||t))return e}function QP(e,t,n){let i=St(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&x_(t.right,n);if(i&&__(e,t.left))return i}function YP(e){let t=Ei(e.parent)?e.parent.name:St(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&x_(e.right,Bl(t))&&no(t)&&__(t,e.left)}function ZP(e){if(St(e.parent)){let t=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&St(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===64&&Ce(t.left))return t.left}else if(Ei(e.parent))return e.parent.name}function __(e,t){return O0(e)&&O0(t)?Rf(e)===Rf(t):$a(e)&&Zd(t)&&(t.expression.kind===110||Ce(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?__(e,C4(t)):Zd(e)&&Zd(t)?Ya(e)===Ya(t)&&__(e.expression,t.expression):!1}function d2(e){for(;Sa(e,!0);)e=e.right;return e}function w4(e){return Ce(e)&&e.escapedText==="exports"}function E4(e){return Ce(e)&&e.escapedText==="module"}function f2(e){return(Rn(e)||Jl(e))&&E4(e.expression)&&Ya(e)==="exports"}function Ca(e){let t=eN(e);return t===5||Vt(e)?t:0}function m2(e){return Ha(e.arguments)===3&&Rn(e.expression)&&Ce(e.expression.expression)&&Ot(e.expression.expression)==="Object"&&Ot(e.expression.name)==="defineProperty"&&Ki(e.arguments[1])&&c_(e.arguments[0],!0)}function Zd(e){return Rn(e)||Jl(e)}function Jl(e){return ka(e)&&Ki(e.argumentExpression)}function S_(e,t){return Rn(e)&&(!t&&e.expression.kind===110||Ce(e.name)&&c_(e.expression,!0))||y2(e,t)}function y2(e,t){return Jl(e)&&(!t&&e.expression.kind===110||no(e.expression)||S_(e.expression,!0))}function c_(e,t){return no(e)||S_(e,t)}function C4(e){return Rn(e)?e.name:e.argumentExpression}function eN(e){if(O_(e)){if(!m2(e))return 0;let t=e.arguments[0];return w4(t)||f2(t)?8:S_(t)&&Ya(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!Zo(e.left)||tN(d2(e))?0:c_(e.left.expression,!0)&&Ya(e.left)==="prototype"&&ao(A4(e))?6:k4(e.left)}function tN(e){return bb(e)&&ro(e.expression)&&e.expression.text==="0"}function Im(e){if(Rn(e))return e.name;let t=Fl(e.argumentExpression);return ro(t)||qr(t)?t:e}function Ya(e){let t=Im(e);if(t){if(Ce(t))return t.escapedText;if(qr(t)||ro(t))return Ur(t.text)}}function k4(e){if(e.expression.kind===110)return 4;if(f2(e))return 2;if(c_(e.expression,!0)){if(Bl(e.expression))return 3;let t=e;for(;!Ce(t.expression);)t=t.expression;let n=t.expression;if((n.escapedText==="exports"||n.escapedText==="module"&&Ya(t)==="exports")&&S_(e))return 1;if(c_(e,!0)||ka(e)&&E2(e))return 5}return 0}function A4(e){for(;St(e.right);)e=e.right;return e.right}function nN(e){return St(e)&&Ca(e)===3}function rN(e){return Vt(e)&&e.parent&&e.parent.kind===243&&(!ka(e)||Jl(e))&&!!gm(e.parent)}function iN(e,t){let{valueDeclaration:n}=e;(!n||!(t.flags&16777216&&!Vt(t)&&!(n.flags&16777216))&&N0(n)&&!N0(t)||n.kind!==t.kind&&e4(n))&&(e.valueDeclaration=t)}function aN(e){if(!e||!e.valueDeclaration)return!1;let t=e.valueDeclaration;return t.kind===261||Ei(t)&&t.initializer&&Wi(t.initializer)}function oN(e){var t,n;switch(e.kind){case 259:case 207:return(t=Xr(e.initializer,i=>Ll(i,!0)))==null?void 0:t.arguments[0];case 271:return Ar(e.moduleSpecifier,qr);case 270:return Ar((n=Ar(e.moduleReference,Zm))==null?void 0:n.expression,qr);case 272:case 279:return Ar(e.parent.moduleSpecifier,qr);case 273:case 280:return Ar(e.parent.parent.moduleSpecifier,qr);case 275:return Ar(e.parent.parent.parent.moduleSpecifier,qr);default:M.assertNever(e)}}function sN(e){return D4(e)||M.failBadSyntaxKind(e.parent)}function D4(e){switch(e.parent.kind){case 271:case 277:return e.parent;case 282:return e.parent.parent;case 212:return i2(e.parent)||Ll(e.parent,!1)?e.parent:void 0;case 200:return M.assert(cr(e)),Ar(e.parent.parent,Xl);default:return}}function h2(e){switch(e.kind){case 271:case 277:return e.moduleSpecifier;case 270:return e.moduleReference.kind===282?e.moduleReference.expression:void 0;case 204:return _4(e)?e.argument.literal:void 0;case 212:return e.arguments[0];case 266:return e.name.kind===11?e.name:void 0;default:return M.assertNever(e)}}function P4(e){switch(e.kind){case 271:return e.importClause&&Ar(e.importClause.namedBindings,Db);case 270:return e;case 277:return e.exportClause&&Ar(e.exportClause,Ym);default:return M.assertNever(e)}}function N4(e){return e.kind===271&&!!e.importClause&&!!e.importClause.name}function _N(e,t){if(e.name){let n=t(e);if(n)return n}if(e.namedBindings){let n=Db(e.namedBindings)?t(e.namedBindings):hn(e.namedBindings.elements,t);if(n)return n}}function cN(e){if(e)switch(e.kind){case 168:case 173:case 172:case 303:case 302:case 171:case 170:return e.questionToken!==void 0}return!1}function lN(e){let t=e1(e)?f_(e.parameters):void 0,n=Ar(t&&t.name,Ce);return!!n&&n.escapedText==="new"}function Rl(e){return e.kind===352||e.kind===344||e.kind===346}function uN(e){return Rl(e)||wb(e)}function pN(e){return Zl(e)&&St(e.expression)&&e.expression.operatorToken.kind===64?d2(e.expression):void 0}function I4(e){return Zl(e)&&St(e.expression)&&Ca(e.expression)!==0&&St(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function g2(e){switch(e.kind){case 242:let t=hl(e);return t&&t.initializer;case 171:return e.initializer;case 302:return e.initializer}}function hl(e){return _s(e)?f_(e.declarationList.declarations):void 0}function O4(e){return Gi(e)&&e.body&&e.body.kind===266?e.body:void 0}function dN(e){if(e.kind>=242&&e.kind<=258)return!0;switch(e.kind){case 80:case 110:case 108:case 165:case 235:case 211:case 210:case 207:case 217:case 218:case 173:case 176:case 177:return!0;default:return!1}}function Om(e){switch(e.kind){case 218:case 225:case 240:case 251:case 178:case 295:case 262:case 230:case 174:case 175:case 184:case 179:case 250:case 258:case 245:case 211:case 241:case 1:case 265:case 305:case 276:case 277:case 280:case 243:case 248:case 249:case 247:case 261:case 217:case 183:case 176:case 80:case 244:case 271:case 270:case 180:case 263:case 323:case 329:case 255:case 173:case 172:case 266:case 201:case 269:case 209:case 168:case 216:case 210:case 302:case 171:case 170:case 252:case 239:case 177:case 303:case 304:case 254:case 256:case 257:case 264:case 167:case 259:case 242:case 246:case 253:return!0;default:return!1}}function M4(e,t){let n;o2(e)&&qx(e)&&Ui(e.initializer)&&(n=Mn(n,tv(e,ba(e.initializer.jsDoc))));let i=e;for(;i&&i.parent;){if(Ui(i)&&(n=Mn(n,tv(e,ba(i.jsDoc)))),i.kind===168){n=Mn(n,(t?YT:hm)(i));break}if(i.kind===167){n=Mn(n,(t?tx:ex)(i));break}i=L4(i)}return n||Xe}function tv(e,t){if(ps(t)){let n=Gn(t.tags,i=>nv(e,i));return t.tags===n?[t]:n}return nv(e,t)?[t]:void 0}function nv(e,t){return!(ru(t)||Ub(t))||!t.parent||!ps(t.parent)||!ss(t.parent.parent)||t.parent.parent===e}function L4(e){let t=e.parent;if(t.kind===302||t.kind===276||t.kind===171||t.kind===243&&e.kind===210||t.kind===252||O4(t)||St(e)&&e.operatorToken.kind===64)return t;if(t.parent&&(hl(t.parent)===e||St(t)&&t.operatorToken.kind===64))return t.parent;if(t.parent&&t.parent.parent&&(hl(t.parent.parent)||g2(t.parent.parent)===e||I4(t.parent.parent)))return t.parent.parent}function fN(e){if(e.symbol)return e.symbol;if(!Ce(e.name))return;let t=e.name.escapedText,n=b2(e);if(!n)return;let i=$n(n.parameters,s=>s.name.kind===80&&s.name.escapedText===t);return i&&i.symbol}function mN(e){if(ps(e.parent)&&e.parent.tags){let t=$n(e.parent.tags,Rl);if(t)return t}return b2(e)}function b2(e){let t=v2(e);if(t)return Wl(t)&&t.type&&Wi(t.type)?t.type:Wi(t)?t:void 0}function v2(e){let t=J4(e);if(t)return I4(t)||pN(t)||g2(t)||hl(t)||O4(t)||t}function J4(e){let t=T2(e);if(!t)return;let n=t.parent;if(n&&n.jsDoc&&t===Ti(n.jsDoc))return n}function T2(e){return Xr(e.parent,ps)}function yN(e){let t=e.name.escapedText,{typeParameters:n}=e.parent.parent.parent;return n&&$n(n,i=>i.name.escapedText===t)}function hN(e){return!!e.typeArguments}function R4(e){let t=e.parent;for(;;){switch(t.kind){case 225:let n=t.operatorToken.kind;return w_(n)&&t.left===e?n===64||jm(n)?1:2:0;case 223:case 224:let i=t.operator;return i===46||i===47?2:0;case 248:case 249:return t.initializer===e?1:0;case 216:case 208:case 229:case 234:e=t;break;case 304:e=t.parent;break;case 303:if(t.name!==e)return 0;e=t.parent;break;case 302:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function gN(e){return R4(e)!==0}function bN(e){switch(e.kind){case 240:case 242:case 253:case 244:case 254:case 268:case 295:case 296:case 255:case 247:case 248:case 249:case 245:case 246:case 257:case 298:return!0}return!1}function vN(e){return Km(e)||Gm(e)||Bg(e)||cs(e)||P_(e)}function F4(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function TN(e){return F4(e,195)}function j4(e){return F4(e,216)}function xN(e){let t;for(;e&&e.kind===195;)t=e,e=e.parent;return[t,e]}function SN(e){for(;yb(e);)e=e.type;return e}function Fl(e,t){return ds(e,t?17:1)}function wN(e){return e.kind!==210&&e.kind!==211?!1:(e=j4(e.parent),e&&e.kind===219)}function EN(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function B4(e){return!$r(e)&&!Sm(e)&&$o(e.parent)&&e.parent.name===e}function CN(e){let t=e.parent;switch(e.kind){case 11:case 15:case 9:if(Za(t))return t.parent;case 80:if($o(t))return t.name===e?t:void 0;if(D_(t)){let n=t.parent;return p_(n)&&n.name===t?n:void 0}else{let n=t.parent;return St(n)&&Ca(n)!==0&&(n.left.symbol||n.symbol)&&Nl(n)===e?n:void 0}case 81:return $o(t)&&t.name===e?t:void 0;default:return}}function U4(e){return Ki(e)&&e.parent.kind===166&&$o(e.parent.parent)}function kN(e){let t=e.parent;switch(t.kind){case 171:case 170:case 173:case 172:case 176:case 177:case 305:case 302:case 210:return t.name===e;case 165:return t.right===e;case 207:case 275:return t.propertyName===e;case 280:case 290:case 284:case 285:case 286:return!0}return!1}function AN(e){return e.kind===270||e.kind===269||e.kind===272&&e.name||e.kind===273||e.kind===279||e.kind===275||e.kind===280||e.kind===276&&I0(e)?!0:Vt(e)&&(St(e)&&Ca(e)===2&&I0(e)||Rn(e)&&St(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===64&&x2(e.parent.right))}function q4(e){switch(e.parent.kind){case 272:case 275:case 273:case 280:case 276:case 270:case 279:return e.parent;case 165:do e=e.parent;while(e.parent.kind===165);return q4(e)}}function x2(e){return no(e)||$m(e)}function I0(e){let t=z4(e);return x2(t)}function z4(e){return ls(e)?e.expression:e.right}function DN(e){return e.kind===303?e.name:e.kind===302?e.initializer:e.parent.right}function W4(e){let t=V4(e);if(t&&Vt(e)){let n=nx(e);if(n)return n.class}return t}function V4(e){let t=Mm(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function H4(e){if(Vt(e))return rx(e).map(t=>t.class);{let t=Mm(e.heritageClauses,119);return t==null?void 0:t.types}}function K4(e){return eu(e)?G4(e)||Xe:Hr(e)&&d_(ff(W4(e)),H4(e))||Xe}function G4(e){let t=Mm(e.heritageClauses,96);return t?t.types:void 0}function Mm(e,t){if(e){for(let n of e)if(n.token===t)return n}}function PN(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function bi(e){return 83<=e&&e<=164}function X4(e){return 19<=e&&e<=79}function ef(e){return bi(e)||X4(e)}function S2(e){return 128<=e&&e<=164}function $4(e){return bi(e)&&!S2(e)}function NN(e){return 119<=e&&e<=127}function IN(e){let t=Al(e);return t!==void 0&&$4(t)}function ON(e){let t=Al(e);return t!==void 0&&bi(t)}function MN(e){let t=HT(e);return!!t&&!S2(t)}function LN(e){return 2<=e&&e<=7}function JN(e){if(!e)return 4;let t=0;switch(e.kind){case 261:case 217:case 173:e.asteriskToken&&(t|=1);case 218:gn(e,512)&&(t|=2);break}return e.body||(t|=4),t}function RN(e){switch(e.kind){case 261:case 217:case 218:case 173:return e.body!==void 0&&e.asteriskToken===void 0&&gn(e,512)}return!1}function Ki(e){return qr(e)||ro(e)}function w2(e){return Xm(e)&&(e.operator===40||e.operator===41)&&ro(e.operand)}function Q4(e){let t=Nl(e);return!!t&&E2(t)}function E2(e){if(!(e.kind===166||e.kind===211))return!1;let t=ka(e)?Fl(e.argumentExpression):e.expression;return!Ki(t)&&!w2(t)}function Jf(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 9:return Ur(e.text);case 166:let t=e.expression;return Ki(t)?Ur(t.text):w2(t)?t.operator===41?an(t.operator)+t.operand.text:t.operand.text:void 0;case 294:return Ul(e);default:return M.assertNever(e)}}function O0(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function Rf(e){return $a(e)?Ot(e):J_(e)?ql(e):e.text}function Y4(e){return $a(e)?e.escapedText:J_(e)?Ul(e):Ur(e.text)}function FN(e){return`__@${getSymbolId(e)}@${e.escapedName}`}function jN(e,t){return`__#${getSymbolId(e)}@${t}`}function BN(e){return Jn(e.escapedName,"__@")}function UN(e){return Jn(e.escapedName,"__#")}function qN(e){return e.kind===80&&e.escapedText==="Symbol"}function Z4(e){return Ce(e)?Ot(e)==="__proto__":cr(e)&&e.text==="__proto__"}function Xs(e,t){switch(e=ds(e),e.kind){case 230:case 217:if(e.name)return!1;break;case 218:break;default:return!1}return typeof t=="function"?t(e):!0}function e3(e){switch(e.kind){case 302:return!Z4(e.name);case 303:return!!e.objectAssignmentInitializer;case 259:return Ce(e.name)&&!!e.initializer;case 168:return Ce(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 207:return Ce(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 171:return!!e.initializer;case 225:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return Ce(e.left)}break;case 276:return!0}return!1}function zN(e,t){if(!e3(e))return!1;switch(e.kind){case 302:return Xs(e.initializer,t);case 303:return Xs(e.objectAssignmentInitializer,t);case 259:case 168:case 207:case 171:return Xs(e.initializer,t);case 225:return Xs(e.right,t);case 276:return Xs(e.expression,t)}}function WN(e){return e.escapedText==="push"||e.escapedText==="unshift"}function VN(e){return Lm(e).kind===168}function Lm(e){for(;e.kind===207;)e=e.parent.parent;return e}function HN(e){let t=e.kind;return t===175||t===217||t===261||t===218||t===173||t===176||t===177||t===266||t===311}function pa(e){return wa(e.pos)||wa(e.end)}function KN(e){return Pl(e,$r)||e}function GN(e){let t=C2(e),n=e.kind===213&&e.arguments!==void 0;return t3(e.kind,t,n)}function t3(e,t,n){switch(e){case 213:return n?0:1;case 223:case 220:case 221:case 219:case 222:case 226:case 228:return 1;case 225:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function XN(e){let t=C2(e),n=e.kind===213&&e.arguments!==void 0;return n3(e.kind,t,n)}function C2(e){return e.kind===225?e.operatorToken.kind:e.kind===223||e.kind===224?e.operator:e.kind}function n3(e,t,n){switch(e){case 360:return 0;case 229:return 1;case 228:return 2;case 226:return 4;case 225:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return il(t)}case 215:case 234:case 223:case 220:case 221:case 219:case 222:return 16;case 224:return 17;case 212:return 18;case 213:return n?19:18;case 214:case 210:case 211:case 235:return 19;case 233:case 237:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 208:case 209:case 217:case 218:case 230:case 14:case 15:case 227:case 216:case 231:case 283:case 284:case 287:return 20;default:return-1}}function il(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function $N(e){return Gn(e,t=>{switch(t.kind){case 293:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function QN(){let e=[],t=[],n=new Map,i=!1;return{add:l,lookup:s,getGlobalDiagnostics:d,getDiagnostics:y};function s(p){let x;if(p.file?x=n.get(p.file.fileName):x=e,!x)return;let h=El(x,p,ht,Uf);if(h>=0)return x[h]}function l(p){let x;p.file?(x=n.get(p.file.fileName),x||(x=[],n.set(p.file.fileName,x),cl(t,p.file.fileName,xi))):(i&&(i=!1,e=e.slice()),x=e),cl(x,p,Uf)}function d(){return i=!0,e}function y(p){if(p)return n.get(p)||[];let x=Rv(t,h=>n.get(h));return e.length&&x.unshift(...e),x}}function YN(e){return e.replace(LS,"\\${")}function r3(e){return e&&!!(n8(e)?e.templateFlags:e.head.templateFlags||ft(e.templateSpans,t=>!!t.literal.templateFlags))}function i3(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function ZN(e,t,n){if(e.charCodeAt(0)===0){let i=n.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return jS.get(e)||i3(e.charCodeAt(0))}function Ff(e,t){let n=t===96?FS:t===39?RS:JS;return e.replace(n,ZN)}function jf(e,t){return e=Ff(e,t),K0.test(e)?e.replace(K0,n=>i3(n.charCodeAt(0))):e}function eI(e){return"&#x"+e.toString(16).toUpperCase()+";"}function tI(e){return e.charCodeAt(0)===0?"�":qS.get(e)||eI(e.charCodeAt(0))}function a3(e,t){let n=t===39?US:BS;return e.replace(n,tI)}function nI(e){let t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&rI(e.charCodeAt(0))?e.substring(1,t-1):e}function rI(e){return e===39||e===34||e===96}function o3(e){let t=e.charCodeAt(0);return t>=97&&t<=122||Ga(e,"-")}function k2(e){let t=Mo[1];for(let n=Mo.length;n<=e;n++)Mo.push(Mo[n-1]+t);return Mo[e]}function Bo(){return Mo[1].length}function iI(){return Ga(uf,"-dev")||Ga(uf,"-insiders")}function aI(e){var t,n,i,s,l,d=!1;function y(G){let oe=cm(G);oe.length>1?(s=s+oe.length-1,l=t.length-G.length+ba(oe),i=l-t.length===0):i=!1}function p(G){G&&G.length&&(i&&(G=k2(n)+G,i=!1),t+=G,y(G))}function x(G){G&&(d=!1),p(G)}function h(G){G&&(d=!0),p(G)}function D(){t="",n=0,i=!0,s=0,l=0,d=!1}function w(G){G!==void 0&&(t+=G,y(G),d=!1)}function g(G){G&&G.length&&x(G)}function A(G){(!i||G)&&(t+=e,s++,l=t.length,i=!0,d=!1)}function B(){return i?t.length:t.length+e.length}return D(),{write:x,rawWrite:w,writeLiteral:g,writeLine:A,increaseIndent:()=>{n++},decreaseIndent:()=>{n--},getIndent:()=>n,getTextPos:()=>t.length,getLine:()=>s,getColumn:()=>i?n*Bo():t.length-l,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>d,hasTrailingWhitespace:()=>!!t.length&&qi(t.charCodeAt(t.length-1)),clear:D,writeKeyword:x,writeOperator:x,writeParameter:x,writeProperty:x,writePunctuation:x,writeSpace:x,writeStringLiteral:x,writeSymbol:(G,oe)=>x(G),writeTrailingSemicolon:x,writeComment:h,getTextPosWithWriteLine:B}}function oI(e){let t=!1;function n(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(i){n(),e.writeLiteral(i)},writeStringLiteral(i){n(),e.writeStringLiteral(i)},writeSymbol(i,s){n(),e.writeSymbol(i,s)},writePunctuation(i){n(),e.writePunctuation(i)},writeKeyword(i){n(),e.writeKeyword(i)},writeOperator(i){n(),e.writeOperator(i)},writeParameter(i){n(),e.writeParameter(i)},writeSpace(i){n(),e.writeSpace(i)},writeProperty(i){n(),e.writeProperty(i)},writeComment(i){n(),e.writeComment(i)},writeLine(){n(),e.writeLine()},increaseIndent(){n(),e.increaseIndent()},decreaseIndent(){n(),e.decreaseIndent()}}}function A2(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function s3(e){return im(A2(e))}function _3(e,t,n){return t.moduleName||D2(e,t.fileName,n&&n.fileName)}function rv(e,t){return e.getCanonicalFileName(Ta(t,e.getCurrentDirectory()))}function sI(e,t,n){let i=t.getExternalModuleFileFromDeclaration(n);if(!i||i.isDeclarationFile)return;let s=h2(n);if(!(s&&qr(s)&&!is(s.text)&&rv(e,i.path).indexOf(rv(e,Ko(e.getCommonSourceDirectory())))===-1))return _3(e,i)}function D2(e,t,n){let i=p=>e.getCanonicalFileName(p),s=vi(n?Hi(n):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),l=Ta(t,e.getCurrentDirectory()),d=xg(s,l,s,i,!1),y=bl(d);return n?bg(y):y}function _I(e,t,n){let i=t.getCompilerOptions(),s;return i.outDir?s=bl(u3(e,t,i.outDir)):s=bl(e),s+n}function cI(e,t){return c3(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),n=>t.getCanonicalFileName(n))}function c3(e,t,n,i,s){let l=t.declarationDir||t.outDir,d=l?N2(e,l,n,i,s):e,y=l3(d);return bl(d)+y}function l3(e){return Wr(e,[".mjs",".mts"])?".d.mts":Wr(e,[".cjs",".cts"])?".d.cts":Wr(e,[".json"])?".d.json.ts":".d.ts"}function lI(e){return Wr(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Wr(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Wr(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function P2(e){return e.outFile||e.out}function uI(e,t){var n;if(e.paths)return e.baseUrl??M.checkDefined(e.pathsBasePath||((n=t.getCurrentDirectory)==null?void 0:n.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function pI(e,t,n){let i=e.getCompilerOptions();if(P2(i)){let s=Gr(i),l=i.emitDeclarationOnly||s===2||s===4;return Gn(e.getSourceFiles(),d=>(l||!ts(d))&&M0(d,e,n))}else{let s=t===void 0?e.getSourceFiles():[t];return Gn(s,l=>M0(l,e,n))}}function M0(e,t,n){return!(t.getCompilerOptions().noEmitForJsFiles&&p2(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&(n||!(r2(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&!t.isSourceOfProjectReferenceRedirect(e.fileName))}function u3(e,t,n){return N2(e,n,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function N2(e,t,n,i,s){let l=Ta(e,n);return l=s(l).indexOf(s(i))===0?l.substring(i.length):l,yn(t,l)}function dI(e,t,n,i,s,l,d){e.writeFile(n,i,s,y=>{t.add(al(K.Could_not_write_file_0_Colon_1,n,y))},l,d)}function p3(e,t,n){if(e.length>Si(e)&&!n(e)){let i=Hi(e);p3(i,t,n),t(e)}}function fI(e,t,n,i,s,l){try{i(e,t,n)}catch{p3(Hi(sr(e)),s,l),i(e,t,n)}}function mI(e,t){let n=xa(e);return a_(n,t)}function ya(e,t){return a_(e,t)}function d3(e){return $n(e.members,t=>P_(t)&&yl(t.body))}function I2(e){if(e&&e.parameters.length>0){let t=e.parameters.length===2&&jl(e.parameters[0]);return e.parameters[t?1:0]}}function yI(e){let t=I2(e);return t&&t.type}function f3(e){if(e.parameters.length&&!nu(e)){let t=e.parameters[0];if(jl(t))return t}}function jl(e){return Jm(e.name)}function Jm(e){return!!e&&e.kind===80&&m3(e)}function hI(e){if(!Jm(e))return!1;for(;D_(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===185}function m3(e){return e.escapedText==="this"}function O2(e,t){let n,i,s,l;return Q4(t)?(n=t,t.kind===176?s=t:t.kind===177?l=t:M.fail("Accessor has wrong kind")):hn(e,d=>{if(xm(d)&&L0(d)===L0(t)){let y=Jf(d.name),p=Jf(t.name);y===p&&(n?i||(i=d):n=d,d.kind===176&&!s&&(s=d),d.kind===177&&!l&&(l=d))}}),{firstAccessor:n,secondAccessor:i,getAccessor:s,setAccessor:l}}function M2(e){if(!Vt(e)&&cs(e))return;let t=e.type;return t||!Vt(e)?t:Mg(e)?e.typeExpression&&e.typeExpression.type:bm(e)}function gI(e){return e.type}function bI(e){return nu(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(Vt(e)?ux(e):void 0)}function y3(e){return Wo(Il(e),t=>vI(t)?t.typeParameters:void 0)}function vI(e){return es(e)&&!(e.parent.kind===326&&(e.parent.tags.some(Rl)||e.parent.tags.some(Fb)))}function TI(e){let t=I2(e);return t&&M2(t)}function h3(e,t,n,i){g3(e,t,n.pos,i)}function g3(e,t,n,i){i&&i.length&&n!==i[0].pos&&ya(e,n)!==ya(e,i[0].pos)&&t.writeLine()}function xI(e,t,n,i){n!==i&&ya(e,n)!==ya(e,i)&&t.writeLine()}function b3(e,t,n,i,s,l,d,y){if(i&&i.length>0){s&&n.writeSpace(" ");let p=!1;for(let x of i)p&&(n.writeSpace(" "),p=!1),y(e,t,n,x.pos,x.end,d),x.hasTrailingNewLine?n.writeLine():p=!0;p&&l&&n.writeSpace(" ")}}function SI(e,t,n,i,s,l,d){let y,p;if(d?s.pos===0&&(y=Gn(Go(e,s.pos),x)):y=Go(e,s.pos),y){let h=[],D;for(let w of y){if(D){let g=ya(t,D.end);if(ya(t,w.pos)>=g+2)break}h.push(w),D=w}if(h.length){let w=ya(t,ba(h).end);ya(t,It(e,s.pos))>=w+2&&(h3(t,n,s,y),b3(e,t,n,h,!1,!0,l,i),p={nodePos:s.pos,detachedCommentEndPos:ba(h).end})}}return p;function x(h){return Qx(e,h.pos)}}function wI(e,t,n,i,s,l){if(e.charCodeAt(i+1)===42){let d=Eg(t,i),y=t.length,p;for(let x=i,h=d.line;x0){let A=g%Bo(),B=k2((g-A)/Bo());for(n.rawWrite(B);A;)n.rawWrite(" "),A--}else n.rawWrite("")}EI(e,s,n,l,x,D),x=D}}else n.writeComment(e.substring(i,s))}function EI(e,t,n,i,s,l){let d=Math.min(t,l-1),y=am(e.substring(s,d));y?(n.writeComment(y),d!==t&&n.writeLine()):n.rawWrite(i)}function iv(e,t,n){let i=0;for(;t=0&&e.kind<=164?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=F2(e)|536870912),t&&!(e.modifierFlagsCache&4096)&&(n||Vt(e))&&e.parent&&(e.modifierFlagsCache|=C3(e)|4096),e.modifierFlagsCache&-536875009)}function Fm(e){return J2(e,!0)}function E3(e){return J2(e,!0,!0)}function R2(e){return J2(e,!1)}function C3(e){let t=0;return e.parent&&!io(e)&&(Vt(e)&&(ix(e)&&(t|=4),ax(e)&&(t|=8),ox(e)&&(t|=16),sx(e)&&(t|=64),_x(e)&&(t|=16384)),cx(e)&&(t|=8192)),t}function k3(e){return F2(e)|C3(e)}function F2(e){let t=R_(e)?ar(e.modifiers):0;return(e.flags&4||e.kind===80&&e.flags&2048)&&(t|=1),t}function ar(e){let t=0;if(e)for(let n of e)t|=j2(n.kind);return t}function j2(e){switch(e){case 126:return 32;case 125:return 4;case 124:return 16;case 123:return 8;case 128:return 256;case 129:return 128;case 95:return 1;case 138:return 2;case 87:return 2048;case 90:return 1024;case 134:return 512;case 148:return 64;case 163:return 16384;case 103:return 32768;case 147:return 65536;case 169:return 131072}return 0}function A3(e){return e===57||e===56}function DI(e){return A3(e)||e===54}function jm(e){return e===76||e===77||e===78}function PI(e){return St(e)&&jm(e.operatorToken.kind)}function D3(e){return A3(e)||e===61}function NI(e){return St(e)&&D3(e.operatorToken.kind)}function w_(e){return e>=64&&e<=79}function P3(e){let t=N3(e);return t&&!t.isImplements?t.class:void 0}function N3(e){if(Tb(e)){if(Sl(e.parent)&&Hr(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(t1(e.parent)){let t=v2(e.parent);if(t&&Hr(t))return{class:t,isImplements:!1}}}}function Sa(e,t){return St(e)&&(t?e.operatorToken.kind===64:w_(e.operatorToken.kind))&&jo(e.left)}function II(e){return Sa(e.parent)&&e.parent.left===e}function OI(e){if(Sa(e,!0)){let t=e.left.kind;return t===209||t===208}return!1}function R0(e){return P3(e)!==void 0}function no(e){return e.kind===80||I3(e)}function MI(e){switch(e.kind){case 80:return e;case 165:do e=e.left;while(e.kind!==80);return e;case 210:do e=e.expression;while(e.kind!==80);return e}}function F0(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===235||e.kind===210&&F0(e.expression)||e.kind===216&&F0(e.expression)}function I3(e){return Rn(e)&&Ce(e.name)&&no(e.expression)}function j0(e){if(Rn(e)){let t=j0(e.expression);if(t!==void 0)return t+"."+hi(e.name)}else if(ka(e)){let t=j0(e.expression);if(t!==void 0&&Ml(e.argumentExpression))return t+"."+Jf(e.argumentExpression)}else{if(Ce(e))return Xo(e.escapedText);if(J_(e))return ql(e)}}function Bl(e){return S_(e)&&Ya(e)==="prototype"}function LI(e){return e.parent.kind===165&&e.parent.right===e||e.parent.kind===210&&e.parent.name===e}function O3(e){return Rn(e.parent)&&e.parent.name===e||ka(e.parent)&&e.parent.argumentExpression===e}function JI(e){return D_(e.parent)&&e.parent.right===e||Rn(e.parent)&&e.parent.name===e||Zs(e.parent)&&e.parent.right===e}function RI(e){return e.kind===209&&e.properties.length===0}function FI(e){return e.kind===208&&e.elements.length===0}function jI(e){if(!(!BI(e)||!e.declarations)){for(let t of e.declarations)if(t.localSymbol)return t.localSymbol}}function BI(e){return e&&Ha(e.declarations)>0&&gn(e.declarations[0],1024)}function UI(e){return $n(KS,t=>Ea(e,t))}function qI(e){let t=[],n=e.length;for(let i=0;i>6|192),t.push(s&63|128)):s<65536?(t.push(s>>12|224),t.push(s>>6&63|128),t.push(s&63|128)):s<131072?(t.push(s>>18|240),t.push(s>>12&63|128),t.push(s>>6&63|128),t.push(s&63|128)):M.assert(!1,"Unexpected code point")}return t}function M3(e){let t="",n=qI(e),i=0,s=n.length,l,d,y,p;for(;i>2,d=(n[i]&3)<<4|n[i+1]>>4,y=(n[i+1]&15)<<2|n[i+2]>>6,p=n[i+2]&63,i+1>=s?y=p=64:i+2>=s&&(p=64),t+=ji.charAt(l)+ji.charAt(d)+ji.charAt(y)+ji.charAt(p),i+=3;return t}function zI(e){let t="",n=0,i=e.length;for(;n>4&3,h=(d&15)<<4|y>>2&15,D=(y&3)<<6|p&63;h===0&&y!==0?i.push(x):D===0&&p!==0?i.push(x,h):i.push(x,h,D),s+=4}return zI(i)}function L3(e,t){let n=m_(t)?t:t.readFile(e);if(!n)return;let i=parseConfigFileTextToJson(e,n);return i.error?void 0:i.config}function HI(e,t){return L3(e,t)||{}}function J3(e,t){return!t.directoryExists||t.directoryExists(e)}function R3(e){switch(e.newLine){case 0:return zS;case 1:case void 0:return WS}}function Bm(e,t=e){return M.assert(t>=e||t===-1),{pos:e,end:t}}function KI(e,t){return Bm(e.pos,t)}function Bf(e,t){return Bm(t,e.end)}function F3(e){let t=R_(e)?sg(e.modifiers,zl):void 0;return t&&!wa(t.end)?Bf(e,t.end):e}function GI(e){if(os(e)||Vl(e))return Bf(e,e.name.pos);let t=R_(e)?Ti(e.modifiers):void 0;return t&&!wa(t.end)?Bf(e,t.end):F3(e)}function XI(e){return e.pos===e.end}function $I(e,t){return Bm(e,e+an(t).length)}function QI(e,t){return j3(e,e,t)}function YI(e,t,n){return E_(l_(e,n,!1),l_(t,n,!1),n)}function ZI(e,t,n){return E_(e.end,t.end,n)}function j3(e,t,n){return E_(l_(e,n,!1),t.end,n)}function eO(e,t,n){return E_(e.end,l_(t,n,!1),n)}function tO(e,t,n,i){let s=l_(t,n,i);return b_(n,e.end,s)}function nO(e,t,n){return b_(n,e.end,t.end)}function rO(e,t){return!E_(e.pos,e.end,t)}function E_(e,t,n){return b_(n,e,t)===0}function l_(e,t,n){return wa(e.pos)?-1:It(t.text,e.pos,!1,n)}function iO(e,t,n,i){let s=It(n.text,e,!1,i),l=oO(s,t,n);return b_(n,l??t,s)}function aO(e,t,n,i){let s=It(n.text,e,!1,i);return b_(n,e,Math.min(t,s))}function oO(e,t=0,n){for(;e-- >t;)if(!qi(n.text.charCodeAt(e)))return e}function sO(e){let t=Pl(e);if(t)switch(t.parent.kind){case 265:case 266:return t===t.parent.name}return!1}function _O(e){return Gn(e.declarations,B3)}function B3(e){return Ei(e)&&e.initializer!==void 0}function cO(e){return e.watch&&Xn(e,"watch")}function lO(e){e.close()}function U3(e){return e.flags&33554432?e.links.checkFlags:0}function uO(e,t=!1){if(e.valueDeclaration){let n=t&&e.declarations&&$n(e.declarations,N_)||e.flags&32768&&$n(e.declarations,Kl)||e.valueDeclaration,i=dm(n);return e.parent&&e.parent.flags&32?i:i&-29}if(U3(e)&6){let n=e.links.checkFlags,i=n&1024?8:n&256?4:16,s=n&2048?32:0;return i|s}return e.flags&4194304?36:0}function pO(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function dO(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function fO(e){return Oo(e)===1}function mO(e){return Oo(e)!==0}function Oo(e){let{parent:t}=e;switch(t==null?void 0:t.kind){case 216:return Oo(t);case 224:case 223:let{operator:n}=t;return n===46||n===47?2:0;case 225:let{left:i,operatorToken:s}=t;return i===e&&w_(s.kind)?s.kind===64?1:2:0;case 210:return t.name!==e?0:Oo(t);case 302:{let l=Oo(t.parent);return e===t.name?yO(l):l}case 303:return e===t.objectAssignmentInitializer?0:Oo(t.parent);case 208:return Oo(t);default:return 0}}function yO(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return M.assertNever(e)}}function q3(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(typeof e[n]=="object"){if(!q3(e[n],t[n]))return!1}else if(typeof e[n]!="function"&&e[n]!==t[n])return!1;return!0}function hO(e,t){e.forEach(t),e.clear()}function z3(e,t,n){let{onDeleteValue:i,onExistingValue:s}=n;e.forEach((l,d)=>{let y=t.get(d);y===void 0?(e.delete(d),i(l,d)):s&&s(l,y,d)})}function gO(e,t,n){z3(e,t,n);let{createNewValue:i}=n;t.forEach((s,l)=>{e.has(l)||e.set(l,i(l,s))})}function bO(e){if(e.flags&32){let t=W3(e);return!!t&&gn(t,256)}return!1}function W3(e){var t;return(t=e.declarations)==null?void 0:t.find(Hr)}function tf(e){return e.flags&138117121?e.objectFlags:0}function vO(e,t){return!!yT(e,n=>t(n)?!0:void 0)}function TO(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&Cb(e.declarations[0])}function xO({moduleSpecifier:e}){return cr(e)?e.text:Cm(e)}function V3(e){let t;return qt(e,n=>{yl(n)&&(t=n)},n=>{for(let i=n.length-1;i>=0;i--)if(yl(n[i])){t=n[i];break}}),t}function SO(e,t,n=!0){return e.has(t)?!1:(e.set(t,n),!0)}function wO(e){return Hr(e)||eu(e)||Hm(e)}function H3(e){return e>=181&&e<=204||e===133||e===159||e===150||e===162||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===232||e===318||e===319||e===320||e===321||e===322||e===323||e===324}function Zo(e){return e.kind===210||e.kind===211}function EO(e){return e.kind===210?e.name:(M.assert(e.kind===211),e.argumentExpression)}function CO(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function kO(e){return e.kind===274||e.kind===278}function B2(e){for(;Zo(e);)e=e.expression;return e}function AO(e,t){if(Zo(e.parent)&&O3(e))return n(e.parent);function n(i){if(i.kind===210){let s=t(i.name);if(s!==void 0)return s}else if(i.kind===211)if(Ce(i.argumentExpression)||qr(i.argumentExpression)){let s=t(i.argumentExpression);if(s!==void 0)return s}else return;if(Zo(i.expression))return n(i.expression);if(Ce(i.expression))return t(i.expression)}}function DO(e,t){for(;;){switch(e.kind){case 224:e=e.operand;continue;case 225:e=e.left;continue;case 226:e=e.condition;continue;case 214:e=e.tag;continue;case 212:if(t)return e;case 233:case 211:case 210:case 234:case 359:case 237:e=e.expression;continue}return e}}function PO(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.isAssigned=void 0,this.links=void 0}function NO(e,t){this.flags=t,(M.isDebugging||fa)&&(this.checker=e)}function IO(e,t){this.flags=t,M.isDebugging&&(this.checker=e)}function $y(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function OO(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function MO(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function LO(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(i=>i)}function JO(e){nb.push(e),e(xt)}function K3(e){Object.assign(xt,e),hn(nb,t=>t(xt))}function C_(e,t,n=0){return e.replace(/{(\d+)}/g,(i,s)=>""+M.checkDefined(t[+s+n]))}function G3(e){vl=e}function X3(e){!vl&&e&&(vl=e())}function k_(e){return vl&&vl[e.key]||e.message}function No(e,t,n,i){e2(void 0,t,n);let s=k_(i);return arguments.length>4&&(s=C_(s,arguments,4)),{file:void 0,start:t,length:n,messageText:s,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,fileName:e}}function RO(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function $3(e,t){let n=t.fileName||"",i=t.text.length;M.assertEqual(e.fileName,n),M.assertLessThanOrEqual(e.start,i),M.assertLessThanOrEqual(e.start+e.length,i);let s={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){s.relatedInformation=[];for(let l of e.relatedInformation)RO(l)&&l.fileName===n?(M.assertLessThanOrEqual(l.start,i),M.assertLessThanOrEqual(l.start+l.length,i),s.relatedInformation.push($3(l,t))):s.relatedInformation.push(l)}return s}function za(e,t){let n=[];for(let i of e)n.push($3(i,t));return n}function U2(e,t,n,i){e2(e,t,n);let s=k_(i);return arguments.length>4&&(s=C_(s,arguments,4)),{file:e,start:t,length:n,messageText:s,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function FO(e,t){let n=k_(t);return arguments.length>2&&(n=C_(n,arguments,2)),n}function al(e){let t=k_(e);return arguments.length>1&&(t=C_(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function jO(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}function Kc(e,t){let n=k_(t);return arguments.length>2&&(n=C_(n,arguments,2)),{messageText:n,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function BO(e,t){let n=e;for(;n.next;)n=n.next[0];n.next=[t]}function av(e){return e.file?e.file.path:void 0}function q2(e,t){return Uf(e,t)||UO(e,t)||0}function Uf(e,t){return xi(av(e),av(t))||wn(e.start,t.start)||wn(e.length,t.length)||wn(e.code,t.code)||Q3(e.messageText,t.messageText)||0}function UO(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?wn(e.relatedInformation.length,t.relatedInformation.length)||hn(e.relatedInformation,(n,i)=>{let s=t.relatedInformation[i];return q2(n,s)})||0:e.relatedInformation?-1:1}function Q3(e,t){if(typeof e=="string"&&typeof t=="string")return xi(e,t);if(typeof e=="string")return-1;if(typeof t=="string")return 1;let n=xi(e.messageText,t.messageText);if(n)return n;if(!e.next&&!t.next)return 0;if(!e.next)return-1;if(!t.next)return 1;let i=Math.min(e.next.length,t.next.length);for(let s=0;st.next.length?1:0}function B0(e){return e===4||e===2||e===1||e===6?1:0}function Y3(e){if(e.transformFlags&2)return Bx(e)||ol(e)?e:qt(e,Y3)}function qO(e){return e.isDeclarationFile?void 0:Y3(e)}function zO(e){return(e.impliedNodeFormat===99||Wr(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function Z3(e){switch(eS(e)){case 3:return s=>{s.externalModuleIndicator=sl(s)||!s.isDeclarationFile||void 0};case 1:return s=>{s.externalModuleIndicator=sl(s)};case 2:let t=[sl];(e.jsx===4||e.jsx===5)&&t.push(qO),t.push(zO);let n=fg(...t);return s=>void(s.externalModuleIndicator=n(s))}}function Um(e){return e.target??(e.module===100&&9||e.module===199&&99||1)}function Gr(e){return typeof e.module=="number"?e.module:Um(e)>=2?5:1}function WO(e){return e>=5&&e<=99}function A_(e){let t=e.moduleResolution;if(t===void 0)switch(Gr(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;default:t=1;break}return t}function eS(e){return e.moduleDetection||(Gr(e)===100||Gr(e)===199?3:2)}function VO(e){switch(Gr(e)){case 1:case 2:case 5:case 6:case 7:case 99:case 100:case 199:return!0;default:return!1}}function z2(e){return!!(e.isolatedModules||e.verbatimModuleSyntax)}function HO(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function KO(e){return e.allowUnreachableCode===!1}function GO(e){return e.allowUnusedLabels===!1}function XO(e){return!!(H2(e)&&e.declarationMap)}function W2(e){if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(Gr(e)){case 100:case 199:return!0}}function $O(e){return e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:W2(e)||Gr(e)===4||A_(e)===100}function V2(e){return e>=3&&e<=99||e===100}function QO(e){return!!e.noDtsResolution||A_(e)!==100}function YO(e){let t=A_(e);if(!V2(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}function ZO(e){let t=A_(e);if(!V2(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}function tS(e){return e.resolveJsonModule!==void 0?e.resolveJsonModule:A_(e)===100}function H2(e){return!!(e.declaration||e.composite)}function eM(e){return!!(e.preserveConstEnums||z2(e))}function tM(e){return!!(e.incremental||e.composite)}function K2(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function nS(e){return e.allowJs===void 0?!!e.checkJs:e.allowJs}function nM(e){return e.useDefineForClassFields===void 0?Um(e)>=9:e.useDefineForClassFields}function rM(e,t){return T_(t,e,semanticDiagnosticsOptionDeclarations)}function iM(e,t){return T_(t,e,affectsEmitOptionDeclarations)}function aM(e,t){return T_(t,e,affectsDeclarationPathOptionDeclarations)}function U0(e,t){return t.strictFlag?K2(e,t.name):e[t.name]}function oM(e){let t=e.jsx;return t===2||t===4||t===5}function sM(e,t){let n=t==null?void 0:t.pragmas.get("jsximportsource"),i=Wt(n)?n[n.length-1]:n;return e.jsx===4||e.jsx===5||e.jsxImportSource||i?(i==null?void 0:i.arguments.factory)||e.jsxImportSource||"react":void 0}function _M(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function cM(e){let t=!1;for(let n=0;ns,getSymlinkedDirectories:()=>n,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(y,p)=>(s||(s=new Map)).set(y,p),setSymlinkedDirectory:(y,p)=>{let x=vi(y,e,t);bS(x)||(x=Ko(x),p!==!1&&!(n!=null&&n.has(x))&&(i||(i=nm())).add(Ko(p.realPath),y),(n||(n=new Map)).set(x,p))},setSymlinksFromResolutions(y,p){var x,h;M.assert(!l),l=!0;for(let D of y)(x=D.resolvedModules)==null||x.forEach(w=>d(this,w.resolvedModule)),(h=D.resolvedTypeReferenceDirectiveNames)==null||h.forEach(w=>d(this,w.resolvedTypeReferenceDirective));p.forEach(D=>d(this,D.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>l};function d(y,p){if(!p||!p.originalPath||!p.resolvedFileName)return;let{resolvedFileName:x,originalPath:h}=p;y.setSymlinkedFile(vi(h,e,t),x);let[D,w]=uM(x,h,e,t)||Xe;D&&w&&y.setSymlinkedDirectory(w,{real:D,realPath:vi(D,e,t)})}}function uM(e,t,n,i){let s=wi(Ta(e,n)),l=wi(Ta(t,n)),d=!1;for(;s.length>=2&&l.length>=2&&!ov(s[s.length-2],i)&&!ov(l[l.length-2],i)&&i(s[s.length-1])===i(l[l.length-1]);)s.pop(),l.pop(),d=!0;return d?[Vo(s),Vo(l)]:void 0}function ov(e,t){return e!==void 0&&(t(e)==="node_modules"||Jn(e,"@"))}function pM(e){return hg(e.charCodeAt(0))?e.slice(1):void 0}function dM(e,t,n){let i=nT(e,t,n);return i===void 0?void 0:pM(i)}function fM(e){return e.replace(Wf,mM)}function mM(e){return"\\"+e}function nf(e,t,n){let i=G2(e,t,n);return!i||!i.length?void 0:`^(${i.map(d=>`(${d})`).join("|")})${n==="exclude"?"($|/)":"$"}`}function G2(e,t,n){if(!(e===void 0||e.length===0))return Wo(e,i=>i&&iS(i,t,n,rb[n]))}function rS(e){return!/[.*?]/.test(e)}function yM(e,t,n){let i=e&&iS(e,t,n,rb[n]);return i&&`^(${i})${n==="exclude"?"($|/)":"$"}`}function iS(e,t,n,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:s,replaceWildcardCharacter:l}){let d="",y=!1,p=_m(e,t),x=ba(p);if(n!=="exclude"&&x==="**")return;p[0]=g_(p[0]),rS(x)&&p.push("**","*");let h=0;for(let D of p){if(D==="**")d+=s;else if(n==="directories"&&(d+="(",h++),y&&(d+=_r),n!=="exclude"){let w="";D.charCodeAt(0)===42?(w+="([^./]"+i+")?",D=D.substr(1)):D.charCodeAt(0)===63&&(w+="[^./]",D=D.substr(1)),w+=D.replace(Wf,l),w!==D&&(d+=af),d+=w}else d+=D.replace(Wf,l);y=!0}for(;h>0;)d+=")?",h--;return d}function Qy(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function aS(e,t,n,i,s){e=sr(e),s=sr(s);let l=yn(s,e);return{includeFilePatterns:ga(G2(n,l,"files"),d=>`^${d}$`),includeFilePattern:nf(n,l,"files"),includeDirectoryPattern:nf(n,l,"directories"),excludePattern:nf(t,l,"exclude"),basePaths:gM(e,n,i)}}function rf(e,t){return new RegExp(e,t?"":"i")}function hM(e,t,n,i,s,l,d,y,p){e=sr(e),l=sr(l);let x=aS(e,n,i,s,l),h=x.includeFilePatterns&&x.includeFilePatterns.map(oe=>rf(oe,s)),D=x.includeDirectoryPattern&&rf(x.includeDirectoryPattern,s),w=x.excludePattern&&rf(x.excludePattern,s),g=h?h.map(()=>[]):[[]],A=new Map,B=im(s);for(let oe of x.basePaths)G(oe,yn(l,oe),d);return r_(g);function G(oe,Q,W){let se=B(p(Q));if(A.has(se))return;A.set(se,!0);let{files:we,directories:Ze}=y(oe);for(let Ue of pf(we,xi)){let rt=yn(oe,Ue),ct=yn(Q,Ue);if(!(t&&!Wr(rt,t))&&!(w&&w.test(ct)))if(!h)g[0].push(rt);else{let Dn=el(h,sn=>sn.test(ct));Dn!==-1&&g[Dn].push(rt)}}if(!(W!==void 0&&(W--,W===0)))for(let Ue of pf(Ze,xi)){let rt=yn(oe,Ue),ct=yn(Q,Ue);(!D||D.test(ct))&&(!w||!w.test(ct))&&G(rt,ct,W)}}}function gM(e,t,n){let i=[e];if(t){let s=[];for(let l of t){let d=y_(l)?l:sr(yn(e,l));s.push(bM(d))}s.sort(ug(!n));for(let l of s)eo(i,d=>!fT(d,l,e,!n))&&i.push(l)}return i}function bM(e){let t=Jv(e,VS);return t<0?pT(e)?g_(Hi(e)):e:e.substring(0,e.lastIndexOf(_r,t))}function oS(e,t){return t||sS(e)||3}function sS(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}function _S(e,t){let n=e&&nS(e);if(!t||t.length===0)return n?Tl:Uo;let i=n?Tl:Uo,s=r_(i);return[...i,...Ka(t,d=>d.scriptKind===7||n&&vM(d.scriptKind)&&s.indexOf(d.extension)===-1?[d.extension]:void 0)]}function cS(e,t){return!e||!tS(e)?t:t===Tl?GS:t===Uo?HS:[...t,[".json"]]}function vM(e){return e===1||e===2}function X2(e){return ft(ab,t=>Ea(e,t))}function $2(e){return ft(ib,t=>Ea(e,t))}function lS({imports:e},t=fg(X2,$2)){return og(e,({text:n})=>is(n)&&!Wr(n,Wm)?t(n):void 0)||!1}function TM(e,t,n,i){if(e==="js"||t===99)return shouldAllowImportingTsExtension(n)&&s()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!shouldAllowImportingTsExtension(n))return lS(i)?2:0;return s();function s(){let l=!1,d=i.imports.length?i.imports.map(y=>y.text):p2(i)?xM(i).map(y=>y.arguments[0].text):Xe;for(let y of d)if(is(y)){if(Wr(y,Wm))continue;if($2(y))return 3;X2(y)&&(l=!0)}return l?2:0}}function xM(e){let t=0,n;for(let i of e.statements){if(t>3)break;x4(i)?n=d_(n,i.declarationList.declarations.map(s=>s.initializer)):Zl(i)&&Ll(i.expression,!0)?n=Tt(n,i.expression):t++}return n||Xe}function SM(e,t,n){if(!e)return!1;let i=_S(t,n);for(let s of r_(cS(t,i)))if(Ea(e,s))return!0;return!1}function sv(e){let t=e.match(/\//g);return t?t.length:0}function wM(e,t){return wn(sv(e),sv(t))}function bl(e){for(let t of Vm){let n=uS(e,t);if(n!==void 0)return n}return e}function uS(e,t){return Ea(e,t)?pS(e,t):void 0}function pS(e,t){return e.substring(0,e.length-t.length)}function EM(e,t){return dT(e,t,Vm,!1)}function dS(e){let t=e.indexOf("*");return t===-1?e:e.indexOf("*",t+1)!==-1?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function CM(e){return Ka(lg(e),t=>dS(t))}function wa(e){return!(e>=0)}function fS(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||Jn(e,".d.")&&rs(e,".ts")}function kM(e){return fS(e)||e===".json"}function Gc(e){let t=Q2(e);return t!==void 0?t:M.fail(`File ${e} has unknown extension.`)}function AM(e){return Q2(e)!==void 0}function Q2(e){return $n(Vm,t=>Ea(e,t))}function DM(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function PM(e,t){let n=[];for(let i of e){if(i===t)return t;m_(i)||n.push(i)}return tT(n,i=>i,t)}function NM(e,t){let n=e.indexOf(t);return M.assert(n!==-1),e.slice(n)}function Xc(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),M.assert(e.relatedInformation!==Xe,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function IM(e,t){M.assert(e.length!==0);let n=t(e[0]),i=n;for(let s=1;si&&(i=l)}return{min:n,max:i}}function OM(e){return{pos:Qo(e),end:e.end}}function MM(e,t){let n=t.pos-1,i=Math.min(e.text.length,It(e.text,t.end)+1);return{pos:n,end:i}}function LM(e,t,n){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||n.isSourceOfProjectReferenceRedirect(e.fileName)}function Y2(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&Vv(e,t,Y2)}function qm(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:let x=e.length-1,h=0;for(;e.charCodeAt(h)===48;)h++;return e.slice(h,x)||"0"}let n=2,i=e.length-1,s=(i-n)*t,l=new Uint16Array((s>>>4)+(s&15?1:0));for(let x=i-1,h=0;x>=n;x--,h+=t){let D=h>>>4,w=e.charCodeAt(x),A=(w<=57?w-48:10+w-(w<=70?65:97))<<(h&15);l[D]|=A;let B=A>>>16;B&&(l[D+1]|=B)}let d="",y=l.length-1,p=!0;for(;p;){let x=0;p=!1;for(let h=y;h>=0;h--){let D=x<<16|l[h],w=D/10|0;l[h]=w,x=D-w*10,w&&!p&&(y=h,p=!0)}d=x+d}return d}function Z2({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function JM(e){if(yS(e,!1))return mS(e)}function mS(e){let t=e.startsWith("-"),n=qm(`${t?e.slice(1):e}n`);return{negative:t,base10Value:n}}function yS(e,t){if(e==="")return!1;let n=as(99,!1),i=!0;n.setOnError(()=>i=!1),n.setText(e+"n");let s=n.scan(),l=s===41;l&&(s=n.scan());let d=n.getTokenFlags();return i&&s===10&&n.getTokenEnd()===e.length+1&&!(d&512)&&(!t||e===Z2({negative:l,base10Value:qm(n.getTokenValue())}))}function RM(e){return!!(e.flags&16777216)||h4(e)||BM(e)||jM(e)||!(u2(e)||FM(e))}function FM(e){return Ce(e)&&tu(e.parent)&&e.parent.name===e}function jM(e){for(;e.kind===80||e.kind===210;)e=e.parent;if(e.kind!==166)return!1;if(gn(e.parent,256))return!0;let t=e.parent.parent.kind;return t===263||t===186}function BM(e){if(e.kind!==80)return!1;let t=Xr(e.parent,n=>{switch(n.kind){case 297:return!0;case 210:case 232:return!1;default:return"quit"}});return(t==null?void 0:t.token)===119||(t==null?void 0:t.parent.kind)===263}function UM(e){return I_(e)&&Ce(e.typeName)}function qM(e,t=to){if(e.length<2)return!0;let n=e[0];for(let i=1,s=e.length;iGa(e,t))}function KM(e){if(!e.parent)return;switch(e.kind){case 167:let{parent:n}=e;return n.kind===194?void 0:n.typeParameters;case 168:return e.parent.parameters;case 203:return e.parent.templateSpans;case 238:return e.parent.templateSpans;case 169:{let{parent:i}=e;return i7(i)?i.modifiers:void 0}case 297:return e.parent.heritageClauses}let{parent:t}=e;if(Kg(e))return Ob(e.parent)?void 0:e.parent.tags;switch(t.kind){case 186:case 263:return Ug(e)?t.members:void 0;case 191:case 192:return t.types;case 188:case 208:case 360:case 274:case 278:return t.elements;case 209:case 291:return t.properties;case 212:case 213:return x0(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 283:case 287:return jx(e)?t.children:void 0;case 285:case 284:return x0(e)?t.typeArguments:void 0;case 240:case 295:case 296:case 267:return t.statements;case 268:return t.clauses;case 262:case 230:return Qa(e)?t.members:void 0;case 265:return M8(e)?t.members:void 0;case 311:return t.statements}}function GM(e){if(!e.typeParameters){if(ft(e.parameters,t=>!M2(t)))return!0;if(e.kind!==218){let t=f_(e.parameters);if(!(t&&jl(t)))return!0}}return!1}function XM(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function vS(e){return e.kind===259&&e.parent.kind===298}function $M(e){let t=e.valueDeclaration&&Lm(e.valueDeclaration);return!!t&&(io(t)||vS(t))}function QM(e){return e.kind===217||e.kind===218}function YM(e){return e.replace(/\$/gm,()=>"\\$")}function TS(e){return(+e).toString()===e}function ZM(e,t,n,i){return Ag(e,t)?Dr.createIdentifier(e):!i&&TS(e)&&+e>=0?Dr.createNumericLiteral(+e):Dr.createStringLiteral(e,!!n)}function xS(e){return!!(e.flags&262144&&e.isThisType)}function eL(e){let t=0,n=0,i=0,s=0,l;(x=>{x[x.BeforeNodeModules=0]="BeforeNodeModules",x[x.NodeModules=1]="NodeModules",x[x.Scope=2]="Scope",x[x.PackageContent=3]="PackageContent"})(l||(l={}));let d=0,y=0,p=0;for(;y>=0;)switch(d=y,y=e.indexOf("/",d+1),p){case 0:e.indexOf(nodeModulesPathPart,d)===d&&(t=d,n=y,p=1);break;case 1:case 2:p===1&&e.charAt(d+1)==="@"?p=2:(i=y,p=3);break;case 3:e.indexOf(nodeModulesPathPart,d)===d?p=1:p=3;break}return s=d,p>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:n,packageRootIndex:i,fileNameIndex:s}:void 0}function tL(e){var t;return e.kind===347?(t=e.typeExpression)==null?void 0:t.type:e.type}function SS(e){switch(e.kind){case 167:case 262:case 263:case 264:case 265:case 352:case 344:case 346:return!0;case 272:return e.isTypeOnly;case 275:case 280:return e.parent.parent.isTypeOnly;default:return!1}}function nL(e){return Eb(e)||_s(e)||cs(e)||u_(e)||eu(e)||SS(e)||Gi(e)&&!$g(e)&&!Am(e)}function wS(e){if(!Mg(e))return!1;let{isBracketed:t,typeExpression:n}=e;return t||!!n&&n.type.kind===322}function rL(e,t){if(e.length===0)return!1;let n=e.charCodeAt(0);return n===35?e.length>1&&or(e.charCodeAt(1),t):or(n,t)}function ES(e){var t;return((t=getSnippetElement(e))==null?void 0:t.kind)===0}function CS(e){return Vt(e)&&(e.type&&e.type.kind===322||hm(e).some(({isBracketed:t,typeExpression:n})=>t||!!n&&n.type.kind===322))}function iL(e){switch(e.kind){case 171:case 170:return!!e.questionToken;case 168:return!!e.questionToken||CS(e);case 354:case 347:return wS(e);default:return!1}}function aL(e){let t=e.kind;return(t===210||t===211)&&qo(e.expression)}function oL(e){return Vt(e)&&ss(e)&&Ui(e)&&!!Ng(e)}function sL(e){return M.checkDefined(kS(e))}function kS(e){let t=Ng(e);return t&&t.typeExpression&&t.typeExpression.type}function _L(e){return Ce(e)?e.escapedText:Ul(e)}function cL(e){return Ce(e)?Ot(e):ql(e)}function lL(e){let t=e.kind;return t===80||t===294}function Ul(e){return`${e.namespace.escapedText}:${Ot(e.name)}`}function ql(e){return`${Ot(e.namespace)}:${Ot(e.name)}`}function uL(e){return Ce(e)?Ot(e):ql(e)}var AS,zm,DS,PS,$s,q0,eb,NS,IS,tb,OS,MS,z0,W0,V0,H0,LS,JS,RS,FS,jS,K0,BS,US,qS,Mo,ji,zS,WS,xt,nb,vl,Wf,VS,G0,af,Yy,Zy,eh,rb,Uo,ib,HS,KS,X0,ab,Tl,GS,ob,XS,Wm,$0,Vm,$S,pL=Ht({"src/compiler/utilities.ts"(){"use strict";En(),AS=[],zm="tslib",DS=160,PS=1e6,$s=RA(),q0=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(q0||{}),eb=/^(\/\/\/\s*/,NS=/^(\/\/\/\s*/,IS=/^(\/\/\/\s*/,tb=/^(\/\/\/\s*/,OS=/^\/\/\/\s*/,MS=/^(\/\/\/\s*/,z0=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(z0||{}),W0=(e=>(e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",e))(W0||{}),V0=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(V0||{}),H0=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(H0||{}),LS=/\$\{/g,JS=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,RS=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,FS=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,jS=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"})),K0=/[^\u0000-\u007F]/g,BS=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,US=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,qS=new Map(Object.entries({'"':""","'":"'"})),Mo=[""," "],ji="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",zS=`\r -`,WS=` -`,xt={getNodeConstructor:()=>$y,getTokenConstructor:()=>OO,getIdentifierConstructor:()=>MO,getPrivateIdentifierConstructor:()=>$y,getSourceFileConstructor:()=>$y,getSymbolConstructor:()=>PO,getTypeConstructor:()=>NO,getSignatureConstructor:()=>IO,getSourceMapSourceConstructor:()=>LO},nb=[],Wf=/[^\w\s\/]/g,VS=[42,63],G0=["node_modules","bower_components","jspm_packages"],af=`(?!(${G0.join("|")})(/|$))`,Yy={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${af}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Qy(e,Yy.singleAsteriskRegexFragment)},Zy={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${af}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Qy(e,Zy.singleAsteriskRegexFragment)},eh={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>Qy(e,eh.singleAsteriskRegexFragment)},rb={files:Yy,directories:Zy,exclude:eh},Uo=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],ib=r_(Uo),HS=[...Uo,[".json"]],KS=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],X0=[[".js",".jsx"],[".mjs"],[".cjs"]],ab=r_(X0),Tl=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],GS=[...Tl,[".json"]],ob=[".d.ts",".d.cts",".d.mts"],XS=[".ts",".cts",".mts",".tsx"],Wm=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],$0=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))($0||{}),Vm=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],$S={files:Xe,directories:Xe}}});function QS(){let e,t,n,i,s;return{createBaseSourceFileNode:l,createBaseIdentifierNode:d,createBasePrivateIdentifierNode:y,createBaseTokenNode:p,createBaseNode:x};function l(h){return new(s||(s=xt.getSourceFileConstructor()))(h,-1,-1)}function d(h){return new(n||(n=xt.getIdentifierConstructor()))(h,-1,-1)}function y(h){return new(i||(i=xt.getPrivateIdentifierConstructor()))(h,-1,-1)}function p(h){return new(t||(t=xt.getTokenConstructor()))(h,-1,-1)}function x(h){return new(e||(e=xt.getNodeConstructor()))(h,-1,-1)}}var dL=Ht({"src/compiler/factory/baseNodeFactory.ts"(){"use strict";En()}}),sb,fL=Ht({"src/compiler/factory/parenthesizerRules.ts"(){"use strict";En(),sb={getParenthesizeLeftSideOfBinaryForOperator:e=>ht,getParenthesizeRightSideOfBinaryForOperator:e=>ht,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,n)=>n,parenthesizeExpressionOfComputedPropertyName:ht,parenthesizeConditionOfConditionalExpression:ht,parenthesizeBranchOfConditionalExpression:ht,parenthesizeExpressionOfExportDefault:ht,parenthesizeExpressionOfNew:e=>mi(e,jo),parenthesizeLeftSideOfAccess:e=>mi(e,jo),parenthesizeOperandOfPostfixUnary:e=>mi(e,jo),parenthesizeOperandOfPrefixUnary:e=>mi(e,Ox),parenthesizeExpressionsOfCommaDelimitedList:e=>mi(e,ua),parenthesizeExpressionForDisallowedComma:ht,parenthesizeExpressionOfExpressionStatement:ht,parenthesizeConciseBodyOfArrowFunction:ht,parenthesizeCheckTypeOfConditionalType:ht,parenthesizeExtendsTypeOfConditionalType:ht,parenthesizeConstituentTypesOfUnionType:e=>mi(e,ua),parenthesizeConstituentTypeOfUnionType:ht,parenthesizeConstituentTypesOfIntersectionType:e=>mi(e,ua),parenthesizeConstituentTypeOfIntersectionType:ht,parenthesizeOperandOfTypeOperator:ht,parenthesizeOperandOfReadonlyTypeOperator:ht,parenthesizeNonArrayTypeOfPostfixType:ht,parenthesizeElementTypesOfTupleType:e=>mi(e,ua),parenthesizeElementTypeOfTupleType:ht,parenthesizeTypeOfOptionalType:ht,parenthesizeTypeArguments:e=>e&&mi(e,ua),parenthesizeLeadingTypeArgument:ht}}}),mL=()=>{},YS=()=>new Proxy({},{get:()=>()=>{}});function yL(e){_b.push(e)}function Vf(e,t){let n=e&8?hL:gL,i=ah(()=>e&1?sb:createParenthesizerRules(oe)),s=ah(()=>e&2?nullNodeConverters:YS(oe)),l=kr(r=>(o,_)=>ic(o,r,_)),d=kr(r=>o=>nc(r,o)),y=kr(r=>o=>rc(o,r)),p=kr(r=>()=>Q1(r)),x=kr(r=>o=>Ns(r,o)),h=kr(r=>(o,_)=>Op(r,o,_)),D=kr(r=>(o,_)=>Ip(r,o,_)),w=kr(r=>(o,_)=>Y1(r,o,_)),g=kr(r=>(o,_)=>$p(r,o,_)),A=kr(r=>(o,_,u)=>cy(r,o,_,u)),B=kr(r=>(o,_,u)=>Qp(r,o,_,u)),G=kr(r=>(o,_,u,b)=>ly(r,o,_,u,b)),oe={get parenthesizer(){return i()},get converters(){return s()},baseFactory:t,flags:e,createNodeArray:Q,createNumericLiteral:Ze,createBigIntLiteral:Ue,createStringLiteral:ct,createStringLiteralFromNode:Dn,createRegularExpressionLiteral:sn,createLiteralLikeNode:ei,createIdentifier:$e,createTempVariable:$t,createLoopVariable:jn,createUniqueName:Qt,getGeneratedNameForNode:fr,createPrivateIdentifier:dn,createUniquePrivateName:vt,getGeneratedPrivateNameForNode:Un,createToken:gt,createSuper:lt,createThis:Zt,createNull:zn,createTrue:mt,createFalse:mr,createModifier:bt,createModifiersFromModifierFlags:cn,createQualifiedName:dt,updateQualifiedName:Qn,createComputedPropertyName:ut,updateComputedPropertyName:Jt,createTypeParameterDeclaration:ln,updateTypeParameterDeclaration:yr,createParameterDeclaration:Mr,updateParameterDeclaration:ti,createDecorator:Wn,updateDecorator:hr,createPropertySignature:Ci,updatePropertySignature:Ie,createPropertyDeclaration:de,updatePropertyDeclaration:be,createMethodSignature:Ee,updateMethodSignature:et,createMethodDeclaration:Qe,updateMethodDeclaration:ee,createConstructorDeclaration:We,updateConstructorDeclaration:Re,createGetAccessorDeclaration:Nt,updateGetAccessorDeclaration:Vn,createSetAccessorDeclaration:gr,updateSetAccessorDeclaration:ni,createCallSignature:na,updateCallSignature:Pa,createConstructSignature:br,updateConstructSignature:ii,createIndexSignature:ai,updateIndexSignature:ra,createClassStaticBlockDeclaration:ae,updateClassStaticBlockDeclaration:Te,createTemplateLiteralTypeSpan:Lr,updateTemplateLiteralTypeSpan:Nn,createKeywordTypeNode:Fe,createTypePredicateNode:ki,updateTypePredicateNode:wt,createTypeReferenceNode:j,updateTypeReferenceNode:E,createFunctionTypeNode:S,updateFunctionTypeNode:J,createConstructorTypeNode:ie,updateConstructorTypeNode:me,createTypeQueryNode:De,updateTypeQueryNode:ot,createTypeLiteralNode:st,updateTypeLiteralNode:Ye,createArrayTypeNode:Ft,updateArrayTypeNode:Et,createTupleTypeNode:bn,updateTupleTypeNode:Ct,createNamedTupleMember:Pe,updateNamedTupleMember:jt,createOptionalTypeNode:Yn,updateOptionalTypeNode:Pt,createRestTypeNode:Y,updateRestTypeNode:Le,createUnionTypeNode:Zn,updateUnionTypeNode:lo,createIntersectionTypeNode:Na,updateIntersectionTypeNode:vr,createConditionalTypeNode:Je,updateConditionalTypeNode:at,createInferTypeNode:pu,updateInferTypeNode:oi,createImportTypeNode:fu,updateImportTypeNode:Ai,createParenthesizedType:uo,updateParenthesizedType:In,createThisTypeNode:Bt,createTypeOperatorNode:F,updateTypeOperatorNode:Hn,createIndexedAccessTypeNode:Di,updateIndexedAccessTypeNode:ia,createMappedTypeNode:vs,updateMappedTypeNode:Ut,createLiteralTypeNode:zt,updateLiteralTypeNode:aa,createTemplateLiteralType:du,updateTemplateLiteralType:vn,createObjectBindingPattern:mu,updateObjectBindingPattern:b1,createArrayBindingPattern:oa,updateArrayBindingPattern:v1,createBindingElement:Ts,updateBindingElement:Ia,createArrayLiteralExpression:H_,updateArrayLiteralExpression:yu,createObjectLiteralExpression:po,updateObjectLiteralExpression:T1,createPropertyAccessExpression:e&4?(r,o)=>setEmitFlags(si(r,o),262144):si,updatePropertyAccessExpression:gu,createPropertyAccessChain:e&4?(r,o,_)=>setEmitFlags(Oa(r,o,_),262144):Oa,updatePropertyAccessChain:bu,createElementAccessExpression:K_,updateElementAccessExpression:x1,createElementAccessChain:G_,updateElementAccessChain:vu,createCallExpression:Pi,updateCallExpression:S1,createCallChain:X_,updateCallChain:er,createNewExpression:Ss,updateNewExpression:$_,createTaggedTemplateExpression:Q_,updateTaggedTemplateExpression:w1,createTypeAssertion:xu,updateTypeAssertion:Su,createParenthesizedExpression:Y_,updateParenthesizedExpression:wu,createFunctionExpression:Z_,updateFunctionExpression:Eu,createArrowFunction:ec,updateArrowFunction:Cu,createDeleteExpression:tc,updateDeleteExpression:E1,createTypeOfExpression:Tn,updateTypeOfExpression:C1,createVoidExpression:Tr,updateVoidExpression:k1,createAwaitExpression:Ni,updateAwaitExpression:Ma,createPrefixUnaryExpression:nc,updatePrefixUnaryExpression:ws,createPostfixUnaryExpression:rc,updatePostfixUnaryExpression:ku,createBinaryExpression:ic,updateBinaryExpression:A1,createConditionalExpression:ac,updateConditionalExpression:D1,createTemplateExpression:Jr,updateTemplateExpression:Du,createTemplateHead:Cs,createTemplateMiddle:sc,createTemplateTail:P1,createNoSubstitutionTemplateLiteral:Nu,createTemplateLiteralLikeNode:La,createYieldExpression:Iu,updateYieldExpression:N1,createSpreadElement:Ou,updateSpreadElement:I1,createClassExpression:Mu,updateClassExpression:ks,createOmittedExpression:O1,createExpressionWithTypeArguments:Lu,updateExpressionWithTypeArguments:tr,createAsExpression:As,updateAsExpression:Ju,createNonNullExpression:Ru,updateNonNullExpression:_c,createSatisfiesExpression:Fu,updateSatisfiesExpression:cc,createNonNullChain:xr,updateNonNullChain:ju,createMetaProperty:Ds,updateMetaProperty:_i,createTemplateSpan:mo,updateTemplateSpan:Bu,createSemicolonClassElement:Uu,createBlock:Ja,updateBlock:qu,createVariableStatement:zu,updateVariableStatement:Wu,createEmptyStatement:lc,createExpressionStatement:yo,updateExpressionStatement:M1,createIfStatement:uc,updateIfStatement:L1,createDoStatement:pc,updateDoStatement:J1,createWhileStatement:Vu,updateWhileStatement:R1,createForStatement:dc,updateForStatement:Hu,createForInStatement:Ku,updateForInStatement:F1,createForOfStatement:Gu,updateForOfStatement:j1,createContinueStatement:Xu,updateContinueStatement:$u,createBreakStatement:fc,updateBreakStatement:Qu,createReturnStatement:Yu,updateReturnStatement:B1,createWithStatement:mc,updateWithStatement:Zu,createSwitchStatement:yc,updateSwitchStatement:Ra,createLabeledStatement:ep,updateLabeledStatement:tp,createThrowStatement:np,updateThrowStatement:U1,createTryStatement:rp,updateTryStatement:q1,createDebuggerStatement:ip,createVariableDeclaration:Ps,updateVariableDeclaration:ap,createVariableDeclarationList:hc,updateVariableDeclarationList:z1,createFunctionDeclaration:op,updateFunctionDeclaration:gc,createClassDeclaration:sp,updateClassDeclaration:bc,createInterfaceDeclaration:_p,updateInterfaceDeclaration:cp,createTypeAliasDeclaration:yt,updateTypeAliasDeclaration:Ii,createEnumDeclaration:vc,updateEnumDeclaration:Oi,createModuleDeclaration:lp,updateModuleDeclaration:Mt,createModuleBlock:Mi,updateModuleBlock:un,createCaseBlock:up,updateCaseBlock:V1,createNamespaceExportDeclaration:pp,updateNamespaceExportDeclaration:dp,createImportEqualsDeclaration:fp,updateImportEqualsDeclaration:mp,createImportDeclaration:yp,updateImportDeclaration:hp,createImportClause:gp,updateImportClause:bp,createAssertClause:Tc,updateAssertClause:K1,createAssertEntry:ho,updateAssertEntry:vp,createImportTypeAssertionContainer:xc,updateImportTypeAssertionContainer:Tp,createNamespaceImport:xp,updateNamespaceImport:Sc,createNamespaceExport:Sp,updateNamespaceExport:wp,createNamedImports:Ep,updateNamedImports:G1,createImportSpecifier:Cp,updateImportSpecifier:X1,createExportAssignment:wc,updateExportAssignment:Ec,createExportDeclaration:ci,updateExportDeclaration:kp,createNamedExports:Fa,updateNamedExports:Dp,createExportSpecifier:Cc,updateExportSpecifier:go,createMissingDeclaration:$1,createExternalModuleReference:Pp,updateExternalModuleReference:Np,get createJSDocAllType(){return p(318)},get createJSDocUnknownType(){return p(319)},get createJSDocNonNullableType(){return D(321)},get updateJSDocNonNullableType(){return w(321)},get createJSDocNullableType(){return D(320)},get updateJSDocNullableType(){return w(320)},get createJSDocOptionalType(){return x(322)},get updateJSDocOptionalType(){return h(322)},get createJSDocVariadicType(){return x(324)},get updateJSDocVariadicType(){return h(324)},get createJSDocNamepathType(){return x(325)},get updateJSDocNamepathType(){return h(325)},createJSDocFunctionType:Mp,updateJSDocFunctionType:Z1,createJSDocTypeLiteral:Lp,updateJSDocTypeLiteral:ey,createJSDocTypeExpression:Jp,updateJSDocTypeExpression:ty,createJSDocSignature:Rp,updateJSDocSignature:ny,createJSDocTemplateTag:Fp,updateJSDocTemplateTag:Is,createJSDocTypedefTag:vo,updateJSDocTypedefTag:kc,createJSDocParameterTag:Ac,updateJSDocParameterTag:jp,createJSDocPropertyTag:Os,updateJSDocPropertyTag:ry,createJSDocCallbackTag:Dc,updateJSDocCallbackTag:iy,createJSDocOverloadTag:Bp,updateJSDocOverloadTag:Up,createJSDocAugmentsTag:qp,updateJSDocAugmentsTag:zp,createJSDocImplementsTag:Wp,updateJSDocImplementsTag:_y,createJSDocSeeTag:Ms,updateJSDocSeeTag:Vp,createJSDocNameReference:ja,updateJSDocNameReference:ay,createJSDocMemberName:sa,updateJSDocMemberName:Ls,createJSDocLink:Hp,updateJSDocLink:oy,createJSDocLinkCode:Kp,updateJSDocLinkCode:sy,createJSDocLinkPlain:Gp,updateJSDocLinkPlain:Xp,get createJSDocTypeTag(){return B(350)},get updateJSDocTypeTag(){return G(350)},get createJSDocReturnTag(){return B(348)},get updateJSDocReturnTag(){return G(348)},get createJSDocThisTag(){return B(349)},get updateJSDocThisTag(){return G(349)},get createJSDocAuthorTag(){return g(336)},get updateJSDocAuthorTag(){return A(336)},get createJSDocClassTag(){return g(338)},get updateJSDocClassTag(){return A(338)},get createJSDocPublicTag(){return g(339)},get updateJSDocPublicTag(){return A(339)},get createJSDocPrivateTag(){return g(340)},get updateJSDocPrivateTag(){return A(340)},get createJSDocProtectedTag(){return g(341)},get updateJSDocProtectedTag(){return A(341)},get createJSDocReadonlyTag(){return g(342)},get updateJSDocReadonlyTag(){return A(342)},get createJSDocOverrideTag(){return g(343)},get updateJSDocOverrideTag(){return A(343)},get createJSDocDeprecatedTag(){return g(337)},get updateJSDocDeprecatedTag(){return A(337)},get createJSDocThrowsTag(){return B(355)},get updateJSDocThrowsTag(){return G(355)},get createJSDocSatisfiesTag(){return B(356)},get updateJSDocSatisfiesTag(){return G(356)},createJSDocEnumTag:Zp,updateJSDocEnumTag:py,createJSDocUnknownTag:Yp,updateJSDocUnknownTag:uy,createJSDocText:ed,updateJSDocText:dy,createJSDocComment:td,updateJSDocComment:Pc,createJsxElement:nd,updateJsxElement:rd,createJsxSelfClosingElement:Nc,updateJsxSelfClosingElement:fy,createJsxOpeningElement:To,updateJsxOpeningElement:id,createJsxClosingElement:ad,updateJsxClosingElement:my,createJsxFragment:fn,createJsxText:xo,updateJsxText:yy,createJsxOpeningFragment:sd,createJsxJsxClosingFragment:hy,updateJsxFragment:od,createJsxAttribute:So,updateJsxAttribute:gy,createJsxAttributes:_d,updateJsxAttributes:by,createJsxSpreadAttribute:cd,updateJsxSpreadAttribute:Ic,createJsxExpression:Ba,updateJsxExpression:vy,createJsxNamespacedName:Js,updateJsxNamespacedName:ld,createCaseClause:ud,updateCaseClause:Oc,createDefaultClause:Mc,updateDefaultClause:Ty,createHeritageClause:pd,updateHeritageClause:dd,createCatchClause:Lc,updateCatchClause:fd,createPropertyAssignment:Li,updatePropertyAssignment:xy,createShorthandPropertyAssignment:md,updateShorthandPropertyAssignment:wy,createSpreadAssignment:Jc,updateSpreadAssignment:Fr,createEnumMember:Rc,updateEnumMember:Ey,createSourceFile:Cy,updateSourceFile:vd,createRedirectedSourceFile:hd,createBundle:Td,updateBundle:Ay,createUnparsedSource:Rs,createUnparsedPrologue:Dy,createUnparsedPrepend:Py,createUnparsedTextLike:Ny,createUnparsedSyntheticReference:Iy,createInputFiles:Oy,createSyntheticExpression:xd,createSyntaxList:Sd,createNotEmittedStatement:wd,createPartiallyEmittedExpression:Ed,updatePartiallyEmittedExpression:Cd,createCommaListExpression:js,updateCommaListExpression:My,createSyntheticReferenceExpression:Ad,updateSyntheticReferenceExpression:Ly,cloneNode:Bc,get createComma(){return l(28)},get createAssignment(){return l(64)},get createLogicalOr(){return l(57)},get createLogicalAnd(){return l(56)},get createBitwiseOr(){return l(52)},get createBitwiseXor(){return l(53)},get createBitwiseAnd(){return l(51)},get createStrictEquality(){return l(37)},get createStrictInequality(){return l(38)},get createEquality(){return l(35)},get createInequality(){return l(36)},get createLessThan(){return l(30)},get createLessThanEquals(){return l(33)},get createGreaterThan(){return l(32)},get createGreaterThanEquals(){return l(34)},get createLeftShift(){return l(48)},get createRightShift(){return l(49)},get createUnsignedRightShift(){return l(50)},get createAdd(){return l(40)},get createSubtract(){return l(41)},get createMultiply(){return l(42)},get createDivide(){return l(44)},get createModulo(){return l(45)},get createExponent(){return l(43)},get createPrefixPlus(){return d(40)},get createPrefixMinus(){return d(41)},get createPrefixIncrement(){return d(46)},get createPrefixDecrement(){return d(47)},get createBitwiseNot(){return d(55)},get createLogicalNot(){return d(54)},get createPostfixIncrement(){return y(46)},get createPostfixDecrement(){return y(47)},createImmediatelyInvokedFunctionExpression:jy,createImmediatelyInvokedArrowFunction:By,createVoidZero:Bs,createExportDefault:Us,createExternalModuleExport:Uy,createTypeCheck:Dd,createMethodCall:_a,createGlobalMethodCall:wo,createFunctionBindCall:qy,createFunctionCallCall:Pd,createFunctionApplyCall:zy,createArraySliceCall:Wy,createArrayConcatCall:Nd,createObjectDefinePropertyCall:Id,createObjectGetOwnPropertyDescriptorCall:Od,createReflectGetCall:c,createReflectSetCall:f,createPropertyDescriptor:C,createCallBinding:ce,createAssignmentTargetWrapper:ve,inlineExpressions:Ge,getInternalName:Be,getLocalName:Lt,getExportName:On,getDeclarationName:ca,getNamespaceMemberName:li,getExternalModuleOrNamespaceExportName:Ji,restoreOuterExpressions:ne,restoreEnclosingLabel:_e,createUseStrictPrologue:Uc,copyPrologue:Ri,copyStandardPrologue:Md,copyCustomPrologue:qc,ensureUseStrict:Vy,liftToBlock:Ld,mergeLexicalEnvironment:Fi,updateModifiers:Jd};return hn(_b,r=>r(oe)),oe;function Q(r,o){if(r===void 0||r===Xe)r=[];else if(ua(r)){if(o===void 0||r.hasTrailingComma===o)return r.transformFlags===void 0&&_v(r),M.attachNodeArrayDebugInfo(r),r;let b=r.slice();return b.pos=r.pos,b.end=r.end,b.hasTrailingComma=o,b.transformFlags=r.transformFlags,M.attachNodeArrayDebugInfo(b),b}let _=r.length,u=_>=1&&_<=4?r.slice():r;return u.pos=-1,u.end=-1,u.hasTrailingComma=!!o,u.transformFlags=0,_v(u),M.attachNodeArrayDebugInfo(u),u}function W(r){return t.createBaseNode(r)}function se(r){let o=W(r);return o.symbol=void 0,o.localSymbol=void 0,o}function we(r,o){return r!==o&&(r.typeArguments=o.typeArguments),n(r,o)}function Ze(r,o=0){let _=se(9);return _.text=typeof r=="number"?r+"":r,_.numericLiteralFlags=o,o&384&&(_.transformFlags|=1024),_}function Ue(r){let o=qn(10);return o.text=typeof r=="string"?r:Z2(r)+"n",o.transformFlags|=32,o}function rt(r,o){let _=se(11);return _.text=r,_.singleQuote=o,_}function ct(r,o,_){let u=rt(r,o);return u.hasExtendedUnicodeEscape=_,_&&(u.transformFlags|=1024),u}function Dn(r){let o=rt(Rf(r),void 0);return o.textSourceNode=r,o}function sn(r){let o=qn(14);return o.text=r,o}function ei(r,o){switch(r){case 9:return Ze(o,0);case 10:return Ue(o);case 11:return ct(o,void 0);case 12:return xo(o,!1);case 13:return xo(o,!0);case 14:return sn(o);case 15:return La(r,o,void 0,0)}}function _n(r){let o=t.createBaseIdentifierNode(80);return o.escapedText=r,o.jsDoc=void 0,o.flowNode=void 0,o.symbol=void 0,o}function Pn(r,o,_,u){let b=_n(Ur(r));return setIdentifierAutoGenerate(b,{flags:o,id:$c,prefix:_,suffix:u}),$c++,b}function $e(r,o,_){o===void 0&&r&&(o=Al(r)),o===80&&(o=void 0);let u=_n(Ur(r));return _&&(u.flags|=128),u.escapedText==="await"&&(u.transformFlags|=67108864),u.flags&128&&(u.transformFlags|=1024),u}function $t(r,o,_,u){let b=1;o&&(b|=8);let I=Pn("",b,_,u);return r&&r(I),I}function jn(r){let o=2;return r&&(o|=8),Pn("",o,void 0,void 0)}function Qt(r,o=0,_,u){return M.assert(!(o&7),"Argument out of range: flags"),M.assert((o&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),Pn(r,3|o,_,u)}function fr(r,o=0,_,u){M.assert(!(o&7),"Argument out of range: flags");let b=r?$a(r)?Gf(!1,_,r,u,Ot):`generated@${getNodeId(r)}`:"";(_||u)&&(o|=16);let I=Pn(b,4|o,_,u);return I.original=r,I}function Bn(r){let o=t.createBasePrivateIdentifierNode(81);return o.escapedText=r,o.transformFlags|=16777216,o}function dn(r){return Jn(r,"#")||M.fail("First character of private identifier must be #: "+r),Bn(Ur(r))}function Yt(r,o,_,u){let b=Bn(Ur(r));return setIdentifierAutoGenerate(b,{flags:o,id:$c,prefix:_,suffix:u}),$c++,b}function vt(r,o,_){r&&!Jn(r,"#")&&M.fail("First character of private identifier must be #: "+r);let u=8|(r?3:1);return Yt(r??"",u,o,_)}function Un(r,o,_){let u=$a(r)?Gf(!0,o,r,_,Ot):`#generated@${getNodeId(r)}`,I=Yt(u,4|(o||_?16:0),o,_);return I.original=r,I}function qn(r){return t.createBaseTokenNode(r)}function gt(r){M.assert(r>=0&&r<=164,"Invalid token"),M.assert(r<=15||r>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),M.assert(r<=9||r>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),M.assert(r!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let o=qn(r),_=0;switch(r){case 134:_=384;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 162:case 146:case 151:case 103:case 147:case 163:case 154:case 136:case 155:case 116:case 159:case 157:_=1;break;case 108:_=134218752,o.flowNode=void 0;break;case 126:_=1024;break;case 129:_=16777216;break;case 110:_=16384,o.flowNode=void 0;break}return _&&(o.transformFlags|=_),o}function lt(){return gt(108)}function Zt(){return gt(110)}function zn(){return gt(106)}function mt(){return gt(112)}function mr(){return gt(97)}function bt(r){return gt(r)}function cn(r){let o=[];return r&1&&o.push(bt(95)),r&2&&o.push(bt(138)),r&1024&&o.push(bt(90)),r&2048&&o.push(bt(87)),r&4&&o.push(bt(125)),r&8&&o.push(bt(123)),r&16&&o.push(bt(124)),r&256&&o.push(bt(128)),r&32&&o.push(bt(126)),r&16384&&o.push(bt(163)),r&64&&o.push(bt(148)),r&128&&o.push(bt(129)),r&512&&o.push(bt(134)),r&32768&&o.push(bt(103)),r&65536&&o.push(bt(147)),o.length?o:void 0}function dt(r,o){let _=W(165);return _.left=r,_.right=nt(o),_.transformFlags|=$(_.left)|Qs(_.right),_.flowNode=void 0,_}function Qn(r,o,_){return r.left!==o||r.right!==_?n(dt(o,_),r):r}function ut(r){let o=W(166);return o.expression=i().parenthesizeExpressionOfComputedPropertyName(r),o.transformFlags|=$(o.expression)|1024|131072,o}function Jt(r,o){return r.expression!==o?n(ut(o),r):r}function ln(r,o,_,u){let b=se(167);return b.modifiers=Se(r),b.name=nt(o),b.constraint=_,b.default=u,b.transformFlags=1,b.expression=void 0,b.jsDoc=void 0,b}function yr(r,o,_,u,b){return r.modifiers!==o||r.name!==_||r.constraint!==u||r.default!==b?n(ln(o,_,u,b),r):r}function Mr(r,o,_,u,b,I){let X=se(168);return X.modifiers=Se(r),X.dotDotDotToken=o,X.name=nt(_),X.questionToken=u,X.type=b,X.initializer=Eo(I),Jm(X.name)?X.transformFlags=1:X.transformFlags=Ne(X.modifiers)|$(X.dotDotDotToken)|Cr(X.name)|$(X.questionToken)|$(X.initializer)|(X.questionToken??X.type?1:0)|(X.dotDotDotToken??X.initializer?1024:0)|(ar(X.modifiers)&16476?8192:0),X.jsDoc=void 0,X}function ti(r,o,_,u,b,I,X){return r.modifiers!==o||r.dotDotDotToken!==_||r.name!==u||r.questionToken!==b||r.type!==I||r.initializer!==X?n(Mr(o,_,u,b,I,X),r):r}function Wn(r){let o=W(169);return o.expression=i().parenthesizeLeftSideOfAccess(r,!1),o.transformFlags|=$(o.expression)|1|8192|33554432,o}function hr(r,o){return r.expression!==o?n(Wn(o),r):r}function Ci(r,o,_,u){let b=se(170);return b.modifiers=Se(r),b.name=nt(o),b.type=u,b.questionToken=_,b.transformFlags=1,b.initializer=void 0,b.jsDoc=void 0,b}function Ie(r,o,_,u,b){return r.modifiers!==o||r.name!==_||r.questionToken!==u||r.type!==b?H(Ci(o,_,u,b),r):r}function H(r,o){return r!==o&&(r.initializer=o.initializer),n(r,o)}function de(r,o,_,u,b){let I=se(171);I.modifiers=Se(r),I.name=nt(o),I.questionToken=_&&xl(_)?_:void 0,I.exclamationToken=_&&Kf(_)?_:void 0,I.type=u,I.initializer=Eo(b);let X=I.flags&16777216||ar(I.modifiers)&2;return I.transformFlags=Ne(I.modifiers)|Cr(I.name)|$(I.initializer)|(X||I.questionToken||I.exclamationToken||I.type?1:0)|(Za(I.name)||ar(I.modifiers)&32&&I.initializer?8192:0)|16777216,I.jsDoc=void 0,I}function be(r,o,_,u,b,I){return r.modifiers!==o||r.name!==_||r.questionToken!==(u!==void 0&&xl(u)?u:void 0)||r.exclamationToken!==(u!==void 0&&Kf(u)?u:void 0)||r.type!==b||r.initializer!==I?n(de(o,_,u,b,I),r):r}function Ee(r,o,_,u,b,I){let X=se(172);return X.modifiers=Se(r),X.name=nt(o),X.questionToken=_,X.typeParameters=Se(u),X.parameters=Se(b),X.type=I,X.transformFlags=1,X.jsDoc=void 0,X.locals=void 0,X.nextContainer=void 0,X.typeArguments=void 0,X}function et(r,o,_,u,b,I,X){return r.modifiers!==o||r.name!==_||r.questionToken!==u||r.typeParameters!==b||r.parameters!==I||r.type!==X?we(Ee(o,_,u,b,I,X),r):r}function Qe(r,o,_,u,b,I,X,ge){let Ve=se(173);if(Ve.modifiers=Se(r),Ve.asteriskToken=o,Ve.name=nt(_),Ve.questionToken=u,Ve.exclamationToken=void 0,Ve.typeParameters=Se(b),Ve.parameters=Q(I),Ve.type=X,Ve.body=ge,!Ve.body)Ve.transformFlags=1;else{let xn=ar(Ve.modifiers)&512,di=!!Ve.asteriskToken,fi=xn&&di;Ve.transformFlags=Ne(Ve.modifiers)|$(Ve.asteriskToken)|Cr(Ve.name)|$(Ve.questionToken)|Ne(Ve.typeParameters)|Ne(Ve.parameters)|$(Ve.type)|$(Ve.body)&-67108865|(fi?128:xn?256:di?2048:0)|(Ve.questionToken||Ve.typeParameters||Ve.type?1:0)|1024}return Ve.typeArguments=void 0,Ve.jsDoc=void 0,Ve.locals=void 0,Ve.nextContainer=void 0,Ve.flowNode=void 0,Ve.endFlowNode=void 0,Ve.returnFlowNode=void 0,Ve}function ee(r,o,_,u,b,I,X,ge,Ve){return r.modifiers!==o||r.asteriskToken!==_||r.name!==u||r.questionToken!==b||r.typeParameters!==I||r.parameters!==X||r.type!==ge||r.body!==Ve?Z(Qe(o,_,u,b,I,X,ge,Ve),r):r}function Z(r,o){return r!==o&&(r.exclamationToken=o.exclamationToken),n(r,o)}function ae(r){let o=se(174);return o.body=r,o.transformFlags=$(r)|16777216,o.modifiers=void 0,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.endFlowNode=void 0,o.returnFlowNode=void 0,o}function Te(r,o){return r.body!==o?Oe(ae(o),r):r}function Oe(r,o){return r!==o&&(r.modifiers=o.modifiers),n(r,o)}function We(r,o,_){let u=se(175);return u.modifiers=Se(r),u.parameters=Q(o),u.body=_,u.transformFlags=Ne(u.modifiers)|Ne(u.parameters)|$(u.body)&-67108865|1024,u.typeParameters=void 0,u.type=void 0,u.typeArguments=void 0,u.jsDoc=void 0,u.locals=void 0,u.nextContainer=void 0,u.endFlowNode=void 0,u.returnFlowNode=void 0,u}function Re(r,o,_,u){return r.modifiers!==o||r.parameters!==_||r.body!==u?Rt(We(o,_,u),r):r}function Rt(r,o){return r!==o&&(r.typeParameters=o.typeParameters,r.type=o.type),we(r,o)}function Nt(r,o,_,u,b){let I=se(176);return I.modifiers=Se(r),I.name=nt(o),I.parameters=Q(_),I.type=u,I.body=b,I.body?I.transformFlags=Ne(I.modifiers)|Cr(I.name)|Ne(I.parameters)|$(I.type)|$(I.body)&-67108865|(I.type?1:0):I.transformFlags=1,I.typeArguments=void 0,I.typeParameters=void 0,I.jsDoc=void 0,I.locals=void 0,I.nextContainer=void 0,I.flowNode=void 0,I.endFlowNode=void 0,I.returnFlowNode=void 0,I}function Vn(r,o,_,u,b,I){return r.modifiers!==o||r.name!==_||r.parameters!==u||r.type!==b||r.body!==I?ta(Nt(o,_,u,b,I),r):r}function ta(r,o){return r!==o&&(r.typeParameters=o.typeParameters),we(r,o)}function gr(r,o,_,u){let b=se(177);return b.modifiers=Se(r),b.name=nt(o),b.parameters=Q(_),b.body=u,b.body?b.transformFlags=Ne(b.modifiers)|Cr(b.name)|Ne(b.parameters)|$(b.body)&-67108865|(b.type?1:0):b.transformFlags=1,b.typeArguments=void 0,b.typeParameters=void 0,b.type=void 0,b.jsDoc=void 0,b.locals=void 0,b.nextContainer=void 0,b.flowNode=void 0,b.endFlowNode=void 0,b.returnFlowNode=void 0,b}function ni(r,o,_,u,b){return r.modifiers!==o||r.name!==_||r.parameters!==u||r.body!==b?ri(gr(o,_,u,b),r):r}function ri(r,o){return r!==o&&(r.typeParameters=o.typeParameters,r.type=o.type),we(r,o)}function na(r,o,_){let u=se(178);return u.typeParameters=Se(r),u.parameters=Se(o),u.type=_,u.transformFlags=1,u.jsDoc=void 0,u.locals=void 0,u.nextContainer=void 0,u.typeArguments=void 0,u}function Pa(r,o,_,u){return r.typeParameters!==o||r.parameters!==_||r.type!==u?we(na(o,_,u),r):r}function br(r,o,_){let u=se(179);return u.typeParameters=Se(r),u.parameters=Se(o),u.type=_,u.transformFlags=1,u.jsDoc=void 0,u.locals=void 0,u.nextContainer=void 0,u.typeArguments=void 0,u}function ii(r,o,_,u){return r.typeParameters!==o||r.parameters!==_||r.type!==u?we(br(o,_,u),r):r}function ai(r,o,_){let u=se(180);return u.modifiers=Se(r),u.parameters=Se(o),u.type=_,u.transformFlags=1,u.jsDoc=void 0,u.locals=void 0,u.nextContainer=void 0,u.typeArguments=void 0,u}function ra(r,o,_,u){return r.parameters!==_||r.type!==u||r.modifiers!==o?we(ai(o,_,u),r):r}function Lr(r,o){let _=W(203);return _.type=r,_.literal=o,_.transformFlags=1,_}function Nn(r,o,_){return r.type!==o||r.literal!==_?n(Lr(o,_),r):r}function Fe(r){return gt(r)}function ki(r,o,_){let u=W(181);return u.assertsModifier=r,u.parameterName=nt(o),u.type=_,u.transformFlags=1,u}function wt(r,o,_,u){return r.assertsModifier!==o||r.parameterName!==_||r.type!==u?n(ki(o,_,u),r):r}function j(r,o){let _=W(182);return _.typeName=nt(r),_.typeArguments=o&&i().parenthesizeTypeArguments(Q(o)),_.transformFlags=1,_}function E(r,o,_){return r.typeName!==o||r.typeArguments!==_?n(j(o,_),r):r}function S(r,o,_){let u=se(183);return u.typeParameters=Se(r),u.parameters=Se(o),u.type=_,u.transformFlags=1,u.modifiers=void 0,u.jsDoc=void 0,u.locals=void 0,u.nextContainer=void 0,u.typeArguments=void 0,u}function J(r,o,_,u){return r.typeParameters!==o||r.parameters!==_||r.type!==u?m(S(o,_,u),r):r}function m(r,o){return r!==o&&(r.modifiers=o.modifiers),we(r,o)}function ie(...r){return r.length===4?he(...r):r.length===3?R(...r):M.fail("Incorrect number of arguments specified.")}function he(r,o,_,u){let b=se(184);return b.modifiers=Se(r),b.typeParameters=Se(o),b.parameters=Se(_),b.type=u,b.transformFlags=1,b.jsDoc=void 0,b.locals=void 0,b.nextContainer=void 0,b.typeArguments=void 0,b}function R(r,o,_){return he(void 0,r,o,_)}function me(...r){return r.length===5?Ae(...r):r.length===4?ke(...r):M.fail("Incorrect number of arguments specified.")}function Ae(r,o,_,u,b){return r.modifiers!==o||r.typeParameters!==_||r.parameters!==u||r.type!==b?we(ie(o,_,u,b),r):r}function ke(r,o,_,u){return Ae(r,r.modifiers,o,_,u)}function De(r,o){let _=W(185);return _.exprName=r,_.typeArguments=o&&i().parenthesizeTypeArguments(o),_.transformFlags=1,_}function ot(r,o,_){return r.exprName!==o||r.typeArguments!==_?n(De(o,_),r):r}function st(r){let o=se(186);return o.members=Q(r),o.transformFlags=1,o}function Ye(r,o){return r.members!==o?n(st(o),r):r}function Ft(r){let o=W(187);return o.elementType=i().parenthesizeNonArrayTypeOfPostfixType(r),o.transformFlags=1,o}function Et(r,o){return r.elementType!==o?n(Ft(o),r):r}function bn(r){let o=W(188);return o.elements=Q(i().parenthesizeElementTypesOfTupleType(r)),o.transformFlags=1,o}function Ct(r,o){return r.elements!==o?n(bn(o),r):r}function Pe(r,o,_,u){let b=se(201);return b.dotDotDotToken=r,b.name=o,b.questionToken=_,b.type=u,b.transformFlags=1,b.jsDoc=void 0,b}function jt(r,o,_,u,b){return r.dotDotDotToken!==o||r.name!==_||r.questionToken!==u||r.type!==b?n(Pe(o,_,u,b),r):r}function Yn(r){let o=W(189);return o.type=i().parenthesizeTypeOfOptionalType(r),o.transformFlags=1,o}function Pt(r,o){return r.type!==o?n(Yn(o),r):r}function Y(r){let o=W(190);return o.type=r,o.transformFlags=1,o}function Le(r,o){return r.type!==o?n(Y(o),r):r}function _t(r,o,_){let u=W(r);return u.types=oe.createNodeArray(_(o)),u.transformFlags=1,u}function en(r,o,_){return r.types!==o?n(_t(r.kind,o,_),r):r}function Zn(r){return _t(191,r,i().parenthesizeConstituentTypesOfUnionType)}function lo(r,o){return en(r,o,i().parenthesizeConstituentTypesOfUnionType)}function Na(r){return _t(192,r,i().parenthesizeConstituentTypesOfIntersectionType)}function vr(r,o){return en(r,o,i().parenthesizeConstituentTypesOfIntersectionType)}function Je(r,o,_,u){let b=W(193);return b.checkType=i().parenthesizeCheckTypeOfConditionalType(r),b.extendsType=i().parenthesizeExtendsTypeOfConditionalType(o),b.trueType=_,b.falseType=u,b.transformFlags=1,b.locals=void 0,b.nextContainer=void 0,b}function at(r,o,_,u,b){return r.checkType!==o||r.extendsType!==_||r.trueType!==u||r.falseType!==b?n(Je(o,_,u,b),r):r}function pu(r){let o=W(194);return o.typeParameter=r,o.transformFlags=1,o}function oi(r,o){return r.typeParameter!==o?n(pu(o),r):r}function du(r,o){let _=W(202);return _.head=r,_.templateSpans=Q(o),_.transformFlags=1,_}function vn(r,o,_){return r.head!==o||r.templateSpans!==_?n(du(o,_),r):r}function fu(r,o,_,u,b=!1){let I=W(204);return I.argument=r,I.assertions=o,I.qualifier=_,I.typeArguments=u&&i().parenthesizeTypeArguments(u),I.isTypeOf=b,I.transformFlags=1,I}function Ai(r,o,_,u,b,I=r.isTypeOf){return r.argument!==o||r.assertions!==_||r.qualifier!==u||r.typeArguments!==b||r.isTypeOf!==I?n(fu(o,_,u,b,I),r):r}function uo(r){let o=W(195);return o.type=r,o.transformFlags=1,o}function In(r,o){return r.type!==o?n(uo(o),r):r}function Bt(){let r=W(196);return r.transformFlags=1,r}function F(r,o){let _=W(197);return _.operator=r,_.type=r===148?i().parenthesizeOperandOfReadonlyTypeOperator(o):i().parenthesizeOperandOfTypeOperator(o),_.transformFlags=1,_}function Hn(r,o){return r.type!==o?n(F(r.operator,o),r):r}function Di(r,o){let _=W(198);return _.objectType=i().parenthesizeNonArrayTypeOfPostfixType(r),_.indexType=o,_.transformFlags=1,_}function ia(r,o,_){return r.objectType!==o||r.indexType!==_?n(Di(o,_),r):r}function vs(r,o,_,u,b,I){let X=se(199);return X.readonlyToken=r,X.typeParameter=o,X.nameType=_,X.questionToken=u,X.type=b,X.members=I&&Q(I),X.transformFlags=1,X.locals=void 0,X.nextContainer=void 0,X}function Ut(r,o,_,u,b,I,X){return r.readonlyToken!==o||r.typeParameter!==_||r.nameType!==u||r.questionToken!==b||r.type!==I||r.members!==X?n(vs(o,_,u,b,I,X),r):r}function zt(r){let o=W(200);return o.literal=r,o.transformFlags=1,o}function aa(r,o){return r.literal!==o?n(zt(o),r):r}function mu(r){let o=W(205);return o.elements=Q(r),o.transformFlags|=Ne(o.elements)|1024|524288,o.transformFlags&32768&&(o.transformFlags|=65664),o}function b1(r,o){return r.elements!==o?n(mu(o),r):r}function oa(r){let o=W(206);return o.elements=Q(r),o.transformFlags|=Ne(o.elements)|1024|524288,o}function v1(r,o){return r.elements!==o?n(oa(o),r):r}function Ts(r,o,_,u){let b=se(207);return b.dotDotDotToken=r,b.propertyName=nt(o),b.name=nt(_),b.initializer=Eo(u),b.transformFlags|=$(b.dotDotDotToken)|Cr(b.propertyName)|Cr(b.name)|$(b.initializer)|(b.dotDotDotToken?32768:0)|1024,b.flowNode=void 0,b}function Ia(r,o,_,u,b){return r.propertyName!==_||r.dotDotDotToken!==o||r.name!==u||r.initializer!==b?n(Ts(o,_,u,b),r):r}function H_(r,o){let _=W(208),u=r&&Ti(r),b=Q(r,u&&Qm(u)?!0:void 0);return _.elements=i().parenthesizeExpressionsOfCommaDelimitedList(b),_.multiLine=o,_.transformFlags|=Ne(_.elements),_}function yu(r,o){return r.elements!==o?n(H_(o,r.multiLine),r):r}function po(r,o){let _=se(209);return _.properties=Q(r),_.multiLine=o,_.transformFlags|=Ne(_.properties),_.jsDoc=void 0,_}function T1(r,o){return r.properties!==o?n(po(o,r.multiLine),r):r}function hu(r,o,_){let u=se(210);return u.expression=r,u.questionDotToken=o,u.name=_,u.transformFlags=$(u.expression)|$(u.questionDotToken)|(Ce(u.name)?Qs(u.name):$(u.name)|536870912),u.jsDoc=void 0,u.flowNode=void 0,u}function si(r,o){let _=hu(i().parenthesizeLeftSideOfAccess(r,!1),void 0,nt(o));return of(r)&&(_.transformFlags|=384),_}function gu(r,o,_){return dx(r)?bu(r,o,r.questionDotToken,mi(_,Ce)):r.expression!==o||r.name!==_?n(si(o,_),r):r}function Oa(r,o,_){let u=hu(i().parenthesizeLeftSideOfAccess(r,!0),o,nt(_));return u.flags|=32,u.transformFlags|=32,u}function bu(r,o,_,u){return M.assert(!!(r.flags&32),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),r.expression!==o||r.questionDotToken!==_||r.name!==u?n(Oa(o,_,u),r):r}function xs(r,o,_){let u=se(211);return u.expression=r,u.questionDotToken=o,u.argumentExpression=_,u.transformFlags|=$(u.expression)|$(u.questionDotToken)|$(u.argumentExpression),u.jsDoc=void 0,u.flowNode=void 0,u}function K_(r,o){let _=xs(i().parenthesizeLeftSideOfAccess(r,!1),void 0,ui(o));return of(r)&&(_.transformFlags|=384),_}function x1(r,o,_){return fx(r)?vu(r,o,r.questionDotToken,_):r.expression!==o||r.argumentExpression!==_?n(K_(o,_),r):r}function G_(r,o,_){let u=xs(i().parenthesizeLeftSideOfAccess(r,!0),o,ui(_));return u.flags|=32,u.transformFlags|=32,u}function vu(r,o,_,u){return M.assert(!!(r.flags&32),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),r.expression!==o||r.questionDotToken!==_||r.argumentExpression!==u?n(G_(o,_,u),r):r}function Tu(r,o,_,u){let b=se(212);return b.expression=r,b.questionDotToken=o,b.typeArguments=_,b.arguments=u,b.transformFlags|=$(b.expression)|$(b.questionDotToken)|Ne(b.typeArguments)|Ne(b.arguments),b.typeArguments&&(b.transformFlags|=1),Lf(b.expression)&&(b.transformFlags|=16384),b}function Pi(r,o,_){let u=Tu(i().parenthesizeLeftSideOfAccess(r,!1),void 0,Se(o),i().parenthesizeExpressionsOfCommaDelimitedList(Q(_)));return o8(u.expression)&&(u.transformFlags|=8388608),u}function S1(r,o,_,u){return T0(r)?er(r,o,r.questionDotToken,_,u):r.expression!==o||r.typeArguments!==_||r.arguments!==u?n(Pi(o,_,u),r):r}function X_(r,o,_,u){let b=Tu(i().parenthesizeLeftSideOfAccess(r,!0),o,Se(_),i().parenthesizeExpressionsOfCommaDelimitedList(Q(u)));return b.flags|=32,b.transformFlags|=32,b}function er(r,o,_,u,b){return M.assert(!!(r.flags&32),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),r.expression!==o||r.questionDotToken!==_||r.typeArguments!==u||r.arguments!==b?n(X_(o,_,u,b),r):r}function Ss(r,o,_){let u=se(213);return u.expression=i().parenthesizeExpressionOfNew(r),u.typeArguments=Se(o),u.arguments=_?i().parenthesizeExpressionsOfCommaDelimitedList(_):void 0,u.transformFlags|=$(u.expression)|Ne(u.typeArguments)|Ne(u.arguments)|32,u.typeArguments&&(u.transformFlags|=1),u}function $_(r,o,_,u){return r.expression!==o||r.typeArguments!==_||r.arguments!==u?n(Ss(o,_,u),r):r}function Q_(r,o,_){let u=W(214);return u.tag=i().parenthesizeLeftSideOfAccess(r,!1),u.typeArguments=Se(o),u.template=_,u.transformFlags|=$(u.tag)|Ne(u.typeArguments)|$(u.template)|1024,u.typeArguments&&(u.transformFlags|=1),r3(u.template)&&(u.transformFlags|=128),u}function w1(r,o,_,u){return r.tag!==o||r.typeArguments!==_||r.template!==u?n(Q_(o,_,u),r):r}function xu(r,o){let _=W(215);return _.expression=i().parenthesizeOperandOfPrefixUnary(o),_.type=r,_.transformFlags|=$(_.expression)|$(_.type)|1,_}function Su(r,o,_){return r.type!==o||r.expression!==_?n(xu(o,_),r):r}function Y_(r){let o=W(216);return o.expression=r,o.transformFlags=$(o.expression),o.jsDoc=void 0,o}function wu(r,o){return r.expression!==o?n(Y_(o),r):r}function Z_(r,o,_,u,b,I,X){let ge=se(217);ge.modifiers=Se(r),ge.asteriskToken=o,ge.name=nt(_),ge.typeParameters=Se(u),ge.parameters=Q(b),ge.type=I,ge.body=X;let Ve=ar(ge.modifiers)&512,xn=!!ge.asteriskToken,di=Ve&&xn;return ge.transformFlags=Ne(ge.modifiers)|$(ge.asteriskToken)|Cr(ge.name)|Ne(ge.typeParameters)|Ne(ge.parameters)|$(ge.type)|$(ge.body)&-67108865|(di?128:Ve?256:xn?2048:0)|(ge.typeParameters||ge.type?1:0)|4194304,ge.typeArguments=void 0,ge.jsDoc=void 0,ge.locals=void 0,ge.nextContainer=void 0,ge.flowNode=void 0,ge.endFlowNode=void 0,ge.returnFlowNode=void 0,ge}function Eu(r,o,_,u,b,I,X,ge){return r.name!==u||r.modifiers!==o||r.asteriskToken!==_||r.typeParameters!==b||r.parameters!==I||r.type!==X||r.body!==ge?we(Z_(o,_,u,b,I,X,ge),r):r}function ec(r,o,_,u,b,I){let X=se(218);X.modifiers=Se(r),X.typeParameters=Se(o),X.parameters=Q(_),X.type=u,X.equalsGreaterThanToken=b??gt(39),X.body=i().parenthesizeConciseBodyOfArrowFunction(I);let ge=ar(X.modifiers)&512;return X.transformFlags=Ne(X.modifiers)|Ne(X.typeParameters)|Ne(X.parameters)|$(X.type)|$(X.equalsGreaterThanToken)|$(X.body)&-67108865|(X.typeParameters||X.type?1:0)|(ge?16640:0)|1024,X.typeArguments=void 0,X.jsDoc=void 0,X.locals=void 0,X.nextContainer=void 0,X.flowNode=void 0,X.endFlowNode=void 0,X.returnFlowNode=void 0,X}function Cu(r,o,_,u,b,I,X){return r.modifiers!==o||r.typeParameters!==_||r.parameters!==u||r.type!==b||r.equalsGreaterThanToken!==I||r.body!==X?we(ec(o,_,u,b,I,X),r):r}function tc(r){let o=W(219);return o.expression=i().parenthesizeOperandOfPrefixUnary(r),o.transformFlags|=$(o.expression),o}function E1(r,o){return r.expression!==o?n(tc(o),r):r}function Tn(r){let o=W(220);return o.expression=i().parenthesizeOperandOfPrefixUnary(r),o.transformFlags|=$(o.expression),o}function C1(r,o){return r.expression!==o?n(Tn(o),r):r}function Tr(r){let o=W(221);return o.expression=i().parenthesizeOperandOfPrefixUnary(r),o.transformFlags|=$(o.expression),o}function k1(r,o){return r.expression!==o?n(Tr(o),r):r}function Ni(r){let o=W(222);return o.expression=i().parenthesizeOperandOfPrefixUnary(r),o.transformFlags|=$(o.expression)|256|128|2097152,o}function Ma(r,o){return r.expression!==o?n(Ni(o),r):r}function nc(r,o){let _=W(223);return _.operator=r,_.operand=i().parenthesizeOperandOfPrefixUnary(o),_.transformFlags|=$(_.operand),(r===46||r===47)&&Ce(_.operand)&&!ma(_.operand)&&!eg(_.operand)&&(_.transformFlags|=268435456),_}function ws(r,o){return r.operand!==o?n(nc(r.operator,o),r):r}function rc(r,o){let _=W(224);return _.operator=o,_.operand=i().parenthesizeOperandOfPostfixUnary(r),_.transformFlags|=$(_.operand),Ce(_.operand)&&!ma(_.operand)&&!eg(_.operand)&&(_.transformFlags|=268435456),_}function ku(r,o){return r.operand!==o?n(rc(o,r.operator),r):r}function ic(r,o,_){let u=se(225),b=Rd(o),I=b.kind;return u.left=i().parenthesizeLeftSideOfBinary(I,r),u.operatorToken=b,u.right=i().parenthesizeRightSideOfBinary(I,u.left,_),u.transformFlags|=$(u.left)|$(u.operatorToken)|$(u.right),I===61?u.transformFlags|=32:I===64?ao(u.left)?u.transformFlags|=5248|Au(u.left):Ql(u.left)&&(u.transformFlags|=5120|Au(u.left)):I===43||I===68?u.transformFlags|=512:jm(I)&&(u.transformFlags|=16),I===103&&Ln(u.left)&&(u.transformFlags|=536870912),u.jsDoc=void 0,u}function Au(r){return Wb(r)?65536:0}function A1(r,o,_,u){return r.left!==o||r.operatorToken!==_||r.right!==u?n(ic(o,_,u),r):r}function ac(r,o,_,u,b){let I=W(226);return I.condition=i().parenthesizeConditionOfConditionalExpression(r),I.questionToken=o??gt(58),I.whenTrue=i().parenthesizeBranchOfConditionalExpression(_),I.colonToken=u??gt(59),I.whenFalse=i().parenthesizeBranchOfConditionalExpression(b),I.transformFlags|=$(I.condition)|$(I.questionToken)|$(I.whenTrue)|$(I.colonToken)|$(I.whenFalse),I}function D1(r,o,_,u,b,I){return r.condition!==o||r.questionToken!==_||r.whenTrue!==u||r.colonToken!==b||r.whenFalse!==I?n(ac(o,_,u,b,I),r):r}function Jr(r,o){let _=W(227);return _.head=r,_.templateSpans=Q(o),_.transformFlags|=$(_.head)|Ne(_.templateSpans)|1024,_}function Du(r,o,_){return r.head!==o||r.templateSpans!==_?n(Jr(o,_),r):r}function Es(r,o,_,u=0){M.assert(!(u&-7177),"Unsupported template flags.");let b;if(_!==void 0&&_!==o&&(b=bL(r,_),typeof b=="object"))return M.fail("Invalid raw text");if(o===void 0){if(b===void 0)return M.fail("Arguments 'text' and 'rawText' may not both be undefined.");o=b}else b!==void 0&&M.assert(o===b,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return o}function Pu(r){let o=1024;return r&&(o|=128),o}function fo(r,o,_,u){let b=qn(r);return b.text=o,b.rawText=_,b.templateFlags=u&7176,b.transformFlags=Pu(b.templateFlags),b}function oc(r,o,_,u){let b=se(r);return b.text=o,b.rawText=_,b.templateFlags=u&7176,b.transformFlags=Pu(b.templateFlags),b}function La(r,o,_,u){return r===15?oc(r,o,_,u):fo(r,o,_,u)}function Cs(r,o,_){return r=Es(16,r,o,_),La(16,r,o,_)}function sc(r,o,_){return r=Es(16,r,o,_),La(17,r,o,_)}function P1(r,o,_){return r=Es(16,r,o,_),La(18,r,o,_)}function Nu(r,o,_){return r=Es(16,r,o,_),oc(15,r,o,_)}function Iu(r,o){M.assert(!r||!!o,"A `YieldExpression` with an asteriskToken must have an expression.");let _=W(228);return _.expression=o&&i().parenthesizeExpressionForDisallowedComma(o),_.asteriskToken=r,_.transformFlags|=$(_.expression)|$(_.asteriskToken)|1024|128|1048576,_}function N1(r,o,_){return r.expression!==_||r.asteriskToken!==o?n(Iu(o,_),r):r}function Ou(r){let o=W(229);return o.expression=i().parenthesizeExpressionForDisallowedComma(r),o.transformFlags|=$(o.expression)|1024|32768,o}function I1(r,o){return r.expression!==o?n(Ou(o),r):r}function Mu(r,o,_,u,b){let I=se(230);return I.modifiers=Se(r),I.name=nt(o),I.typeParameters=Se(_),I.heritageClauses=Se(u),I.members=Q(b),I.transformFlags|=Ne(I.modifiers)|Cr(I.name)|Ne(I.typeParameters)|Ne(I.heritageClauses)|Ne(I.members)|(I.typeParameters?1:0)|1024,I.jsDoc=void 0,I}function ks(r,o,_,u,b,I){return r.modifiers!==o||r.name!==_||r.typeParameters!==u||r.heritageClauses!==b||r.members!==I?n(Mu(o,_,u,b,I),r):r}function O1(){return W(231)}function Lu(r,o){let _=W(232);return _.expression=i().parenthesizeLeftSideOfAccess(r,!1),_.typeArguments=o&&i().parenthesizeTypeArguments(o),_.transformFlags|=$(_.expression)|Ne(_.typeArguments)|1024,_}function tr(r,o,_){return r.expression!==o||r.typeArguments!==_?n(Lu(o,_),r):r}function As(r,o){let _=W(233);return _.expression=r,_.type=o,_.transformFlags|=$(_.expression)|$(_.type)|1,_}function Ju(r,o,_){return r.expression!==o||r.type!==_?n(As(o,_),r):r}function Ru(r){let o=W(234);return o.expression=i().parenthesizeLeftSideOfAccess(r,!1),o.transformFlags|=$(o.expression)|1,o}function _c(r,o){return yx(r)?ju(r,o):r.expression!==o?n(Ru(o),r):r}function Fu(r,o){let _=W(237);return _.expression=r,_.type=o,_.transformFlags|=$(_.expression)|$(_.type)|1,_}function cc(r,o,_){return r.expression!==o||r.type!==_?n(Fu(o,_),r):r}function xr(r){let o=W(234);return o.flags|=32,o.expression=i().parenthesizeLeftSideOfAccess(r,!0),o.transformFlags|=$(o.expression)|1,o}function ju(r,o){return M.assert(!!(r.flags&32),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),r.expression!==o?n(xr(o),r):r}function Ds(r,o){let _=W(235);switch(_.keywordToken=r,_.name=o,_.transformFlags|=$(_.name),r){case 105:_.transformFlags|=1024;break;case 102:_.transformFlags|=32;break;default:return M.assertNever(r)}return _.flowNode=void 0,_}function _i(r,o){return r.name!==o?n(Ds(r.keywordToken,o),r):r}function mo(r,o){let _=W(238);return _.expression=r,_.literal=o,_.transformFlags|=$(_.expression)|$(_.literal)|1024,_}function Bu(r,o,_){return r.expression!==o||r.literal!==_?n(mo(o,_),r):r}function Uu(){let r=W(239);return r.transformFlags|=1024,r}function Ja(r,o){let _=W(240);return _.statements=Q(r),_.multiLine=o,_.transformFlags|=Ne(_.statements),_.jsDoc=void 0,_.locals=void 0,_.nextContainer=void 0,_}function qu(r,o){return r.statements!==o?n(Ja(o,r.multiLine),r):r}function zu(r,o){let _=W(242);return _.modifiers=Se(r),_.declarationList=Wt(o)?hc(o):o,_.transformFlags|=Ne(_.modifiers)|$(_.declarationList),ar(_.modifiers)&2&&(_.transformFlags=1),_.jsDoc=void 0,_.flowNode=void 0,_}function Wu(r,o,_){return r.modifiers!==o||r.declarationList!==_?n(zu(o,_),r):r}function lc(){let r=W(241);return r.jsDoc=void 0,r}function yo(r){let o=W(243);return o.expression=i().parenthesizeExpressionOfExpressionStatement(r),o.transformFlags|=$(o.expression),o.jsDoc=void 0,o.flowNode=void 0,o}function M1(r,o){return r.expression!==o?n(yo(o),r):r}function uc(r,o,_){let u=W(244);return u.expression=r,u.thenStatement=pi(o),u.elseStatement=pi(_),u.transformFlags|=$(u.expression)|$(u.thenStatement)|$(u.elseStatement),u.jsDoc=void 0,u.flowNode=void 0,u}function L1(r,o,_,u){return r.expression!==o||r.thenStatement!==_||r.elseStatement!==u?n(uc(o,_,u),r):r}function pc(r,o){let _=W(245);return _.statement=pi(r),_.expression=o,_.transformFlags|=$(_.statement)|$(_.expression),_.jsDoc=void 0,_.flowNode=void 0,_}function J1(r,o,_){return r.statement!==o||r.expression!==_?n(pc(o,_),r):r}function Vu(r,o){let _=W(246);return _.expression=r,_.statement=pi(o),_.transformFlags|=$(_.expression)|$(_.statement),_.jsDoc=void 0,_.flowNode=void 0,_}function R1(r,o,_){return r.expression!==o||r.statement!==_?n(Vu(o,_),r):r}function dc(r,o,_,u){let b=W(247);return b.initializer=r,b.condition=o,b.incrementor=_,b.statement=pi(u),b.transformFlags|=$(b.initializer)|$(b.condition)|$(b.incrementor)|$(b.statement),b.jsDoc=void 0,b.locals=void 0,b.nextContainer=void 0,b.flowNode=void 0,b}function Hu(r,o,_,u,b){return r.initializer!==o||r.condition!==_||r.incrementor!==u||r.statement!==b?n(dc(o,_,u,b),r):r}function Ku(r,o,_){let u=W(248);return u.initializer=r,u.expression=o,u.statement=pi(_),u.transformFlags|=$(u.initializer)|$(u.expression)|$(u.statement),u.jsDoc=void 0,u.locals=void 0,u.nextContainer=void 0,u.flowNode=void 0,u}function F1(r,o,_,u){return r.initializer!==o||r.expression!==_||r.statement!==u?n(Ku(o,_,u),r):r}function Gu(r,o,_,u){let b=W(249);return b.awaitModifier=r,b.initializer=o,b.expression=i().parenthesizeExpressionForDisallowedComma(_),b.statement=pi(u),b.transformFlags|=$(b.awaitModifier)|$(b.initializer)|$(b.expression)|$(b.statement)|1024,r&&(b.transformFlags|=128),b.jsDoc=void 0,b.locals=void 0,b.nextContainer=void 0,b.flowNode=void 0,b}function j1(r,o,_,u,b){return r.awaitModifier!==o||r.initializer!==_||r.expression!==u||r.statement!==b?n(Gu(o,_,u,b),r):r}function Xu(r){let o=W(250);return o.label=nt(r),o.transformFlags|=$(o.label)|4194304,o.jsDoc=void 0,o.flowNode=void 0,o}function $u(r,o){return r.label!==o?n(Xu(o),r):r}function fc(r){let o=W(251);return o.label=nt(r),o.transformFlags|=$(o.label)|4194304,o.jsDoc=void 0,o.flowNode=void 0,o}function Qu(r,o){return r.label!==o?n(fc(o),r):r}function Yu(r){let o=W(252);return o.expression=r,o.transformFlags|=$(o.expression)|128|4194304,o.jsDoc=void 0,o.flowNode=void 0,o}function B1(r,o){return r.expression!==o?n(Yu(o),r):r}function mc(r,o){let _=W(253);return _.expression=r,_.statement=pi(o),_.transformFlags|=$(_.expression)|$(_.statement),_.jsDoc=void 0,_.flowNode=void 0,_}function Zu(r,o,_){return r.expression!==o||r.statement!==_?n(mc(o,_),r):r}function yc(r,o){let _=W(254);return _.expression=i().parenthesizeExpressionForDisallowedComma(r),_.caseBlock=o,_.transformFlags|=$(_.expression)|$(_.caseBlock),_.jsDoc=void 0,_.flowNode=void 0,_.possiblyExhaustive=!1,_}function Ra(r,o,_){return r.expression!==o||r.caseBlock!==_?n(yc(o,_),r):r}function ep(r,o){let _=W(255);return _.label=nt(r),_.statement=pi(o),_.transformFlags|=$(_.label)|$(_.statement),_.jsDoc=void 0,_.flowNode=void 0,_}function tp(r,o,_){return r.label!==o||r.statement!==_?n(ep(o,_),r):r}function np(r){let o=W(256);return o.expression=r,o.transformFlags|=$(o.expression),o.jsDoc=void 0,o.flowNode=void 0,o}function U1(r,o){return r.expression!==o?n(np(o),r):r}function rp(r,o,_){let u=W(257);return u.tryBlock=r,u.catchClause=o,u.finallyBlock=_,u.transformFlags|=$(u.tryBlock)|$(u.catchClause)|$(u.finallyBlock),u.jsDoc=void 0,u.flowNode=void 0,u}function q1(r,o,_,u){return r.tryBlock!==o||r.catchClause!==_||r.finallyBlock!==u?n(rp(o,_,u),r):r}function ip(){let r=W(258);return r.jsDoc=void 0,r.flowNode=void 0,r}function Ps(r,o,_,u){let b=se(259);return b.name=nt(r),b.exclamationToken=o,b.type=_,b.initializer=Eo(u),b.transformFlags|=Cr(b.name)|$(b.initializer)|(b.exclamationToken??b.type?1:0),b.jsDoc=void 0,b}function ap(r,o,_,u,b){return r.name!==o||r.type!==u||r.exclamationToken!==_||r.initializer!==b?n(Ps(o,_,u,b),r):r}function hc(r,o=0){let _=W(260);return _.flags|=o&3,_.declarations=Q(r),_.transformFlags|=Ne(_.declarations)|4194304,o&3&&(_.transformFlags|=263168),_}function z1(r,o){return r.declarations!==o?n(hc(o,r.flags),r):r}function op(r,o,_,u,b,I,X){let ge=se(261);if(ge.modifiers=Se(r),ge.asteriskToken=o,ge.name=nt(_),ge.typeParameters=Se(u),ge.parameters=Q(b),ge.type=I,ge.body=X,!ge.body||ar(ge.modifiers)&2)ge.transformFlags=1;else{let Ve=ar(ge.modifiers)&512,xn=!!ge.asteriskToken,di=Ve&&xn;ge.transformFlags=Ne(ge.modifiers)|$(ge.asteriskToken)|Cr(ge.name)|Ne(ge.typeParameters)|Ne(ge.parameters)|$(ge.type)|$(ge.body)&-67108865|(di?128:Ve?256:xn?2048:0)|(ge.typeParameters||ge.type?1:0)|4194304}return ge.typeArguments=void 0,ge.jsDoc=void 0,ge.locals=void 0,ge.nextContainer=void 0,ge.endFlowNode=void 0,ge.returnFlowNode=void 0,ge}function gc(r,o,_,u,b,I,X,ge){return r.modifiers!==o||r.asteriskToken!==_||r.name!==u||r.typeParameters!==b||r.parameters!==I||r.type!==X||r.body!==ge?W1(op(o,_,u,b,I,X,ge),r):r}function W1(r,o){return r!==o&&r.modifiers===o.modifiers&&(r.modifiers=o.modifiers),we(r,o)}function sp(r,o,_,u,b){let I=se(262);return I.modifiers=Se(r),I.name=nt(o),I.typeParameters=Se(_),I.heritageClauses=Se(u),I.members=Q(b),ar(I.modifiers)&2?I.transformFlags=1:(I.transformFlags|=Ne(I.modifiers)|Cr(I.name)|Ne(I.typeParameters)|Ne(I.heritageClauses)|Ne(I.members)|(I.typeParameters?1:0)|1024,I.transformFlags&8192&&(I.transformFlags|=1)),I.jsDoc=void 0,I}function bc(r,o,_,u,b,I){return r.modifiers!==o||r.name!==_||r.typeParameters!==u||r.heritageClauses!==b||r.members!==I?n(sp(o,_,u,b,I),r):r}function _p(r,o,_,u,b){let I=se(263);return I.modifiers=Se(r),I.name=nt(o),I.typeParameters=Se(_),I.heritageClauses=Se(u),I.members=Q(b),I.transformFlags=1,I.jsDoc=void 0,I}function cp(r,o,_,u,b,I){return r.modifiers!==o||r.name!==_||r.typeParameters!==u||r.heritageClauses!==b||r.members!==I?n(_p(o,_,u,b,I),r):r}function yt(r,o,_,u){let b=se(264);return b.modifiers=Se(r),b.name=nt(o),b.typeParameters=Se(_),b.type=u,b.transformFlags=1,b.jsDoc=void 0,b.locals=void 0,b.nextContainer=void 0,b}function Ii(r,o,_,u,b){return r.modifiers!==o||r.name!==_||r.typeParameters!==u||r.type!==b?n(yt(o,_,u,b),r):r}function vc(r,o,_){let u=se(265);return u.modifiers=Se(r),u.name=nt(o),u.members=Q(_),u.transformFlags|=Ne(u.modifiers)|$(u.name)|Ne(u.members)|1,u.transformFlags&=-67108865,u.jsDoc=void 0,u}function Oi(r,o,_,u){return r.modifiers!==o||r.name!==_||r.members!==u?n(vc(o,_,u),r):r}function lp(r,o,_,u=0){let b=se(266);return b.modifiers=Se(r),b.flags|=u&1044,b.name=o,b.body=_,ar(b.modifiers)&2?b.transformFlags=1:b.transformFlags|=Ne(b.modifiers)|$(b.name)|$(b.body)|1,b.transformFlags&=-67108865,b.jsDoc=void 0,b.locals=void 0,b.nextContainer=void 0,b}function Mt(r,o,_,u){return r.modifiers!==o||r.name!==_||r.body!==u?n(lp(o,_,u,r.flags),r):r}function Mi(r){let o=W(267);return o.statements=Q(r),o.transformFlags|=Ne(o.statements),o.jsDoc=void 0,o}function un(r,o){return r.statements!==o?n(Mi(o),r):r}function up(r){let o=W(268);return o.clauses=Q(r),o.transformFlags|=Ne(o.clauses),o.locals=void 0,o.nextContainer=void 0,o}function V1(r,o){return r.clauses!==o?n(up(o),r):r}function pp(r){let o=se(269);return o.name=nt(r),o.transformFlags|=Qs(o.name)|1,o.modifiers=void 0,o.jsDoc=void 0,o}function dp(r,o){return r.name!==o?H1(pp(o),r):r}function H1(r,o){return r!==o&&(r.modifiers=o.modifiers),n(r,o)}function fp(r,o,_,u){let b=se(270);return b.modifiers=Se(r),b.name=nt(_),b.isTypeOnly=o,b.moduleReference=u,b.transformFlags|=Ne(b.modifiers)|Qs(b.name)|$(b.moduleReference),Zm(b.moduleReference)||(b.transformFlags|=1),b.transformFlags&=-67108865,b.jsDoc=void 0,b}function mp(r,o,_,u,b){return r.modifiers!==o||r.isTypeOnly!==_||r.name!==u||r.moduleReference!==b?n(fp(o,_,u,b),r):r}function yp(r,o,_,u){let b=W(271);return b.modifiers=Se(r),b.importClause=o,b.moduleSpecifier=_,b.assertClause=u,b.transformFlags|=$(b.importClause)|$(b.moduleSpecifier),b.transformFlags&=-67108865,b.jsDoc=void 0,b}function hp(r,o,_,u,b){return r.modifiers!==o||r.importClause!==_||r.moduleSpecifier!==u||r.assertClause!==b?n(yp(o,_,u,b),r):r}function gp(r,o,_){let u=se(272);return u.isTypeOnly=r,u.name=o,u.namedBindings=_,u.transformFlags|=$(u.name)|$(u.namedBindings),r&&(u.transformFlags|=1),u.transformFlags&=-67108865,u}function bp(r,o,_,u){return r.isTypeOnly!==o||r.name!==_||r.namedBindings!==u?n(gp(o,_,u),r):r}function Tc(r,o){let _=W(299);return _.elements=Q(r),_.multiLine=o,_.transformFlags|=4,_}function K1(r,o,_){return r.elements!==o||r.multiLine!==_?n(Tc(o,_),r):r}function ho(r,o){let _=W(300);return _.name=r,_.value=o,_.transformFlags|=4,_}function vp(r,o,_){return r.name!==o||r.value!==_?n(ho(o,_),r):r}function xc(r,o){let _=W(301);return _.assertClause=r,_.multiLine=o,_}function Tp(r,o,_){return r.assertClause!==o||r.multiLine!==_?n(xc(o,_),r):r}function xp(r){let o=se(273);return o.name=r,o.transformFlags|=$(o.name),o.transformFlags&=-67108865,o}function Sc(r,o){return r.name!==o?n(xp(o),r):r}function Sp(r){let o=se(279);return o.name=r,o.transformFlags|=$(o.name)|32,o.transformFlags&=-67108865,o}function wp(r,o){return r.name!==o?n(Sp(o),r):r}function Ep(r){let o=W(274);return o.elements=Q(r),o.transformFlags|=Ne(o.elements),o.transformFlags&=-67108865,o}function G1(r,o){return r.elements!==o?n(Ep(o),r):r}function Cp(r,o,_){let u=se(275);return u.isTypeOnly=r,u.propertyName=o,u.name=_,u.transformFlags|=$(u.propertyName)|$(u.name),u.transformFlags&=-67108865,u}function X1(r,o,_,u){return r.isTypeOnly!==o||r.propertyName!==_||r.name!==u?n(Cp(o,_,u),r):r}function wc(r,o,_){let u=se(276);return u.modifiers=Se(r),u.isExportEquals=o,u.expression=o?i().parenthesizeRightSideOfBinary(64,void 0,_):i().parenthesizeExpressionOfExportDefault(_),u.transformFlags|=Ne(u.modifiers)|$(u.expression),u.transformFlags&=-67108865,u.jsDoc=void 0,u}function Ec(r,o,_){return r.modifiers!==o||r.expression!==_?n(wc(o,r.isExportEquals,_),r):r}function ci(r,o,_,u,b){let I=se(277);return I.modifiers=Se(r),I.isTypeOnly=o,I.exportClause=_,I.moduleSpecifier=u,I.assertClause=b,I.transformFlags|=Ne(I.modifiers)|$(I.exportClause)|$(I.moduleSpecifier),I.transformFlags&=-67108865,I.jsDoc=void 0,I}function kp(r,o,_,u,b,I){return r.modifiers!==o||r.isTypeOnly!==_||r.exportClause!==u||r.moduleSpecifier!==b||r.assertClause!==I?Ap(ci(o,_,u,b,I),r):r}function Ap(r,o){return r!==o&&r.modifiers===o.modifiers&&(r.modifiers=o.modifiers),n(r,o)}function Fa(r){let o=W(278);return o.elements=Q(r),o.transformFlags|=Ne(o.elements),o.transformFlags&=-67108865,o}function Dp(r,o){return r.elements!==o?n(Fa(o),r):r}function Cc(r,o,_){let u=W(280);return u.isTypeOnly=r,u.propertyName=nt(o),u.name=nt(_),u.transformFlags|=$(u.propertyName)|$(u.name),u.transformFlags&=-67108865,u.jsDoc=void 0,u}function go(r,o,_,u){return r.isTypeOnly!==o||r.propertyName!==_||r.name!==u?n(Cc(o,_,u),r):r}function $1(){let r=se(281);return r.jsDoc=void 0,r}function Pp(r){let o=W(282);return o.expression=r,o.transformFlags|=$(o.expression),o.transformFlags&=-67108865,o}function Np(r,o){return r.expression!==o?n(Pp(o),r):r}function Q1(r){return W(r)}function Ip(r,o,_=!1){let u=Ns(r,_?o&&i().parenthesizeNonArrayTypeOfPostfixType(o):o);return u.postfix=_,u}function Ns(r,o){let _=W(r);return _.type=o,_}function Y1(r,o,_){return o.type!==_?n(Ip(r,_,o.postfix),o):o}function Op(r,o,_){return o.type!==_?n(Ns(r,_),o):o}function Mp(r,o){let _=se(323);return _.parameters=Se(r),_.type=o,_.transformFlags=Ne(_.parameters)|(_.type?1:0),_.jsDoc=void 0,_.locals=void 0,_.nextContainer=void 0,_.typeArguments=void 0,_}function Z1(r,o,_){return r.parameters!==o||r.type!==_?n(Mp(o,_),r):r}function Lp(r,o=!1){let _=se(328);return _.jsDocPropertyTags=Se(r),_.isArrayType=o,_}function ey(r,o,_){return r.jsDocPropertyTags!==o||r.isArrayType!==_?n(Lp(o,_),r):r}function Jp(r){let o=W(315);return o.type=r,o}function ty(r,o){return r.type!==o?n(Jp(o),r):r}function Rp(r,o,_){let u=se(329);return u.typeParameters=Se(r),u.parameters=Q(o),u.type=_,u.jsDoc=void 0,u.locals=void 0,u.nextContainer=void 0,u}function ny(r,o,_,u){return r.typeParameters!==o||r.parameters!==_||r.type!==u?n(Rp(o,_,u),r):r}function Sr(r){let o=Vd(r.kind);return r.tagName.escapedText===Ur(o)?r.tagName:$e(o)}function Rr(r,o,_){let u=W(r);return u.tagName=o,u.comment=_,u}function bo(r,o,_){let u=se(r);return u.tagName=o,u.comment=_,u}function Fp(r,o,_,u){let b=Rr(351,r??$e("template"),u);return b.constraint=o,b.typeParameters=Q(_),b}function Is(r,o=Sr(r),_,u,b){return r.tagName!==o||r.constraint!==_||r.typeParameters!==u||r.comment!==b?n(Fp(o,_,u,b),r):r}function vo(r,o,_,u){let b=bo(352,r??$e("typedef"),u);return b.typeExpression=o,b.fullName=_,b.name=tg(_),b.locals=void 0,b.nextContainer=void 0,b}function kc(r,o=Sr(r),_,u,b){return r.tagName!==o||r.typeExpression!==_||r.fullName!==u||r.comment!==b?n(vo(o,_,u,b),r):r}function Ac(r,o,_,u,b,I){let X=bo(347,r??$e("param"),I);return X.typeExpression=u,X.name=o,X.isNameFirst=!!b,X.isBracketed=_,X}function jp(r,o=Sr(r),_,u,b,I,X){return r.tagName!==o||r.name!==_||r.isBracketed!==u||r.typeExpression!==b||r.isNameFirst!==I||r.comment!==X?n(Ac(o,_,u,b,I,X),r):r}function Os(r,o,_,u,b,I){let X=bo(354,r??$e("prop"),I);return X.typeExpression=u,X.name=o,X.isNameFirst=!!b,X.isBracketed=_,X}function ry(r,o=Sr(r),_,u,b,I,X){return r.tagName!==o||r.name!==_||r.isBracketed!==u||r.typeExpression!==b||r.isNameFirst!==I||r.comment!==X?n(Os(o,_,u,b,I,X),r):r}function Dc(r,o,_,u){let b=bo(344,r??$e("callback"),u);return b.typeExpression=o,b.fullName=_,b.name=tg(_),b.locals=void 0,b.nextContainer=void 0,b}function iy(r,o=Sr(r),_,u,b){return r.tagName!==o||r.typeExpression!==_||r.fullName!==u||r.comment!==b?n(Dc(o,_,u,b),r):r}function Bp(r,o,_){let u=Rr(345,r??$e("overload"),_);return u.typeExpression=o,u}function Up(r,o=Sr(r),_,u){return r.tagName!==o||r.typeExpression!==_||r.comment!==u?n(Bp(o,_,u),r):r}function qp(r,o,_){let u=Rr(334,r??$e("augments"),_);return u.class=o,u}function zp(r,o=Sr(r),_,u){return r.tagName!==o||r.class!==_||r.comment!==u?n(qp(o,_,u),r):r}function Wp(r,o,_){let u=Rr(335,r??$e("implements"),_);return u.class=o,u}function Ms(r,o,_){let u=Rr(353,r??$e("see"),_);return u.name=o,u}function Vp(r,o,_,u){return r.tagName!==o||r.name!==_||r.comment!==u?n(Ms(o,_,u),r):r}function ja(r){let o=W(316);return o.name=r,o}function ay(r,o){return r.name!==o?n(ja(o),r):r}function sa(r,o){let _=W(317);return _.left=r,_.right=o,_.transformFlags|=$(_.left)|$(_.right),_}function Ls(r,o,_){return r.left!==o||r.right!==_?n(sa(o,_),r):r}function Hp(r,o){let _=W(330);return _.name=r,_.text=o,_}function oy(r,o,_){return r.name!==o?n(Hp(o,_),r):r}function Kp(r,o){let _=W(331);return _.name=r,_.text=o,_}function sy(r,o,_){return r.name!==o?n(Kp(o,_),r):r}function Gp(r,o){let _=W(332);return _.name=r,_.text=o,_}function Xp(r,o,_){return r.name!==o?n(Gp(o,_),r):r}function _y(r,o=Sr(r),_,u){return r.tagName!==o||r.class!==_||r.comment!==u?n(Wp(o,_,u),r):r}function $p(r,o,_){return Rr(r,o??$e(Vd(r)),_)}function cy(r,o,_=Sr(o),u){return o.tagName!==_||o.comment!==u?n($p(r,_,u),o):o}function Qp(r,o,_,u){let b=Rr(r,o??$e(Vd(r)),u);return b.typeExpression=_,b}function ly(r,o,_=Sr(o),u,b){return o.tagName!==_||o.typeExpression!==u||o.comment!==b?n(Qp(r,_,u,b),o):o}function Yp(r,o){return Rr(333,r,o)}function uy(r,o,_){return r.tagName!==o||r.comment!==_?n(Yp(o,_),r):r}function Zp(r,o,_){let u=bo(346,r??$e(Vd(346)),_);return u.typeExpression=o,u.locals=void 0,u.nextContainer=void 0,u}function py(r,o=Sr(r),_,u){return r.tagName!==o||r.typeExpression!==_||r.comment!==u?n(Zp(o,_,u),r):r}function ed(r){let o=W(327);return o.text=r,o}function dy(r,o){return r.text!==o?n(ed(o),r):r}function td(r,o){let _=W(326);return _.comment=r,_.tags=Se(o),_}function Pc(r,o,_){return r.comment!==o||r.tags!==_?n(td(o,_),r):r}function nd(r,o,_){let u=W(283);return u.openingElement=r,u.children=Q(o),u.closingElement=_,u.transformFlags|=$(u.openingElement)|Ne(u.children)|$(u.closingElement)|2,u}function rd(r,o,_,u){return r.openingElement!==o||r.children!==_||r.closingElement!==u?n(nd(o,_,u),r):r}function Nc(r,o,_){let u=W(284);return u.tagName=r,u.typeArguments=Se(o),u.attributes=_,u.transformFlags|=$(u.tagName)|Ne(u.typeArguments)|$(u.attributes)|2,u.typeArguments&&(u.transformFlags|=1),u}function fy(r,o,_,u){return r.tagName!==o||r.typeArguments!==_||r.attributes!==u?n(Nc(o,_,u),r):r}function To(r,o,_){let u=W(285);return u.tagName=r,u.typeArguments=Se(o),u.attributes=_,u.transformFlags|=$(u.tagName)|Ne(u.typeArguments)|$(u.attributes)|2,o&&(u.transformFlags|=1),u}function id(r,o,_,u){return r.tagName!==o||r.typeArguments!==_||r.attributes!==u?n(To(o,_,u),r):r}function ad(r){let o=W(286);return o.tagName=r,o.transformFlags|=$(o.tagName)|2,o}function my(r,o){return r.tagName!==o?n(ad(o),r):r}function fn(r,o,_){let u=W(287);return u.openingFragment=r,u.children=Q(o),u.closingFragment=_,u.transformFlags|=$(u.openingFragment)|Ne(u.children)|$(u.closingFragment)|2,u}function od(r,o,_,u){return r.openingFragment!==o||r.children!==_||r.closingFragment!==u?n(fn(o,_,u),r):r}function xo(r,o){let _=W(12);return _.text=r,_.containsOnlyTriviaWhiteSpaces=!!o,_.transformFlags|=2,_}function yy(r,o,_){return r.text!==o||r.containsOnlyTriviaWhiteSpaces!==_?n(xo(o,_),r):r}function sd(){let r=W(288);return r.transformFlags|=2,r}function hy(){let r=W(289);return r.transformFlags|=2,r}function So(r,o){let _=se(290);return _.name=r,_.initializer=o,_.transformFlags|=$(_.name)|$(_.initializer)|2,_}function gy(r,o,_){return r.name!==o||r.initializer!==_?n(So(o,_),r):r}function _d(r){let o=se(291);return o.properties=Q(r),o.transformFlags|=Ne(o.properties)|2,o}function by(r,o){return r.properties!==o?n(_d(o),r):r}function cd(r){let o=W(292);return o.expression=r,o.transformFlags|=$(o.expression)|2,o}function Ic(r,o){return r.expression!==o?n(cd(o),r):r}function Ba(r,o){let _=W(293);return _.dotDotDotToken=r,_.expression=o,_.transformFlags|=$(_.dotDotDotToken)|$(_.expression)|2,_}function vy(r,o){return r.expression!==o?n(Ba(r.dotDotDotToken,o),r):r}function Js(r,o){let _=W(294);return _.namespace=r,_.name=o,_.transformFlags|=$(_.namespace)|$(_.name)|2,_}function ld(r,o,_){return r.namespace!==o||r.name!==_?n(Js(o,_),r):r}function ud(r,o){let _=W(295);return _.expression=i().parenthesizeExpressionForDisallowedComma(r),_.statements=Q(o),_.transformFlags|=$(_.expression)|Ne(_.statements),_.jsDoc=void 0,_}function Oc(r,o,_){return r.expression!==o||r.statements!==_?n(ud(o,_),r):r}function Mc(r){let o=W(296);return o.statements=Q(r),o.transformFlags=Ne(o.statements),o}function Ty(r,o){return r.statements!==o?n(Mc(o),r):r}function pd(r,o){let _=W(297);switch(_.token=r,_.types=Q(o),_.transformFlags|=Ne(_.types),r){case 96:_.transformFlags|=1024;break;case 119:_.transformFlags|=1;break;default:return M.assertNever(r)}return _}function dd(r,o){return r.types!==o?n(pd(r.token,o),r):r}function Lc(r,o){let _=W(298);return _.variableDeclaration=Hy(r),_.block=o,_.transformFlags|=$(_.variableDeclaration)|$(_.block)|(r?0:64),_.locals=void 0,_.nextContainer=void 0,_}function fd(r,o,_){return r.variableDeclaration!==o||r.block!==_?n(Lc(o,_),r):r}function Li(r,o){let _=se(302);return _.name=nt(r),_.initializer=i().parenthesizeExpressionForDisallowedComma(o),_.transformFlags|=Cr(_.name)|$(_.initializer),_.modifiers=void 0,_.questionToken=void 0,_.exclamationToken=void 0,_.jsDoc=void 0,_}function xy(r,o,_){return r.name!==o||r.initializer!==_?Sy(Li(o,_),r):r}function Sy(r,o){return r!==o&&(r.modifiers=o.modifiers,r.questionToken=o.questionToken,r.exclamationToken=o.exclamationToken),n(r,o)}function md(r,o){let _=se(303);return _.name=nt(r),_.objectAssignmentInitializer=o&&i().parenthesizeExpressionForDisallowedComma(o),_.transformFlags|=Qs(_.name)|$(_.objectAssignmentInitializer)|1024,_.equalsToken=void 0,_.modifiers=void 0,_.questionToken=void 0,_.exclamationToken=void 0,_.jsDoc=void 0,_}function wy(r,o,_){return r.name!==o||r.objectAssignmentInitializer!==_?yd(md(o,_),r):r}function yd(r,o){return r!==o&&(r.modifiers=o.modifiers,r.questionToken=o.questionToken,r.exclamationToken=o.exclamationToken,r.equalsToken=o.equalsToken),n(r,o)}function Jc(r){let o=se(304);return o.expression=i().parenthesizeExpressionForDisallowedComma(r),o.transformFlags|=$(o.expression)|128|65536,o.jsDoc=void 0,o}function Fr(r,o){return r.expression!==o?n(Jc(o),r):r}function Rc(r,o){let _=se(305);return _.name=nt(r),_.initializer=o&&i().parenthesizeExpressionForDisallowedComma(o),_.transformFlags|=$(_.name)|$(_.initializer)|1,_.jsDoc=void 0,_}function Ey(r,o,_){return r.name!==o||r.initializer!==_?n(Rc(o,_),r):r}function Cy(r,o,_){let u=t.createBaseSourceFileNode(311);return u.statements=Q(r),u.endOfFileToken=o,u.flags|=_,u.text="",u.fileName="",u.path="",u.resolvedPath="",u.originalFileName="",u.languageVersion=0,u.languageVariant=0,u.scriptKind=0,u.isDeclarationFile=!1,u.hasNoDefaultLib=!1,u.transformFlags|=Ne(u.statements)|$(u.endOfFileToken),u.locals=void 0,u.nextContainer=void 0,u.endFlowNode=void 0,u.nodeCount=0,u.identifierCount=0,u.symbolCount=0,u.parseDiagnostics=void 0,u.bindDiagnostics=void 0,u.bindSuggestionDiagnostics=void 0,u.lineMap=void 0,u.externalModuleIndicator=void 0,u.setExternalModuleIndicator=void 0,u.pragmas=void 0,u.checkJsDirective=void 0,u.referencedFiles=void 0,u.typeReferenceDirectives=void 0,u.libReferenceDirectives=void 0,u.amdDependencies=void 0,u.commentDirectives=void 0,u.identifiers=void 0,u.packageJsonLocations=void 0,u.packageJsonScope=void 0,u.imports=void 0,u.moduleAugmentations=void 0,u.ambientModuleNames=void 0,u.resolvedModules=void 0,u.classifiableNames=void 0,u.impliedNodeFormat=void 0,u}function hd(r){let o=Object.create(r.redirectTarget);return Object.defineProperties(o,{id:{get(){return this.redirectInfo.redirectTarget.id},set(_){this.redirectInfo.redirectTarget.id=_}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(_){this.redirectInfo.redirectTarget.symbol=_}}}),o.redirectInfo=r,o}function gd(r){let o=hd(r.redirectInfo);return o.flags|=r.flags&-9,o.fileName=r.fileName,o.path=r.path,o.resolvedPath=r.resolvedPath,o.originalFileName=r.originalFileName,o.packageJsonLocations=r.packageJsonLocations,o.packageJsonScope=r.packageJsonScope,o.emitNode=void 0,o}function Fc(r){let o=t.createBaseSourceFileNode(311);o.flags|=r.flags&-9;for(let _ in r)if(!(Xn(o,_)||!Xn(r,_))){if(_==="emitNode"){o.emitNode=void 0;continue}o[_]=r[_]}return o}function bd(r){let o=r.redirectInfo?gd(r):Fc(r);return Kn(o,r),o}function ky(r,o,_,u,b,I,X){let ge=bd(r);return ge.statements=Q(o),ge.isDeclarationFile=_,ge.referencedFiles=u,ge.typeReferenceDirectives=b,ge.hasNoDefaultLib=I,ge.libReferenceDirectives=X,ge.transformFlags=Ne(ge.statements)|$(ge.endOfFileToken),ge}function vd(r,o,_=r.isDeclarationFile,u=r.referencedFiles,b=r.typeReferenceDirectives,I=r.hasNoDefaultLib,X=r.libReferenceDirectives){return r.statements!==o||r.isDeclarationFile!==_||r.referencedFiles!==u||r.typeReferenceDirectives!==b||r.hasNoDefaultLib!==I||r.libReferenceDirectives!==X?n(ky(r,o,_,u,b,I,X),r):r}function Td(r,o=Xe){let _=W(312);return _.prepends=o,_.sourceFiles=r,_.syntheticFileReferences=void 0,_.syntheticTypeReferences=void 0,_.syntheticLibReferences=void 0,_.hasNoDefaultLib=void 0,_}function Ay(r,o,_=Xe){return r.sourceFiles!==o||r.prepends!==_?n(Td(o,_),r):r}function Rs(r,o,_){let u=W(313);return u.prologues=r,u.syntheticReferences=o,u.texts=_,u.fileName="",u.text="",u.referencedFiles=Xe,u.libReferenceDirectives=Xe,u.getLineAndCharacterOfPosition=b=>Xa(u,b),u}function Fs(r,o){let _=W(r);return _.data=o,_}function Dy(r){return Fs(306,r)}function Py(r,o){let _=Fs(307,r);return _.texts=o,_}function Ny(r,o){return Fs(o?309:308,r)}function Iy(r){let o=W(310);return o.data=r.data,o.section=r,o}function Oy(){let r=W(314);return r.javascriptText="",r.declarationText="",r}function xd(r,o=!1,_){let u=W(236);return u.type=r,u.isSpread=o,u.tupleNameSource=_,u}function Sd(r){let o=W(357);return o._children=r,o}function wd(r){let o=W(358);return o.original=r,He(o,r),o}function Ed(r,o){let _=W(359);return _.expression=r,_.original=o,_.transformFlags|=$(_.expression)|1,He(_,o),_}function Cd(r,o){return r.expression!==o?n(Ed(o,r.original),r):r}function kd(r){if(pa(r)&&!dl(r)&&!r.original&&!r.emitNode&&!r.id){if(M_(r))return r.elements;if(St(r)&&r8(r.operatorToken))return[r.left,r.right]}return r}function js(r){let o=W(360);return o.elements=Q(Fv(r,kd)),o.transformFlags|=Ne(o.elements),o}function My(r,o){return r.elements!==o?n(js(o),r):r}function Ad(r,o){let _=W(361);return _.expression=r,_.thisArg=o,_.transformFlags|=$(_.expression)|$(_.thisArg),_}function Ly(r,o,_){return r.expression!==o||r.thisArg!==_?n(Ad(o,_),r):r}function Jy(r){let o=_n(r.escapedText);return o.flags|=r.flags&-9,o.transformFlags=r.transformFlags,Kn(o,r),setIdentifierAutoGenerate(o,{...r.emitNode.autoGenerate}),o}function jc(r){let o=_n(r.escapedText);o.flags|=r.flags&-9,o.jsDoc=r.jsDoc,o.flowNode=r.flowNode,o.symbol=r.symbol,o.transformFlags=r.transformFlags,Kn(o,r);let _=getIdentifierTypeArguments(r);return _&&setIdentifierTypeArguments(o,_),o}function Ry(r){let o=Bn(r.escapedText);return o.flags|=r.flags&-9,o.transformFlags=r.transformFlags,Kn(o,r),setIdentifierAutoGenerate(o,{...r.emitNode.autoGenerate}),o}function Fy(r){let o=Bn(r.escapedText);return o.flags|=r.flags&-9,o.transformFlags=r.transformFlags,Kn(o,r),o}function Bc(r){if(r===void 0)return r;if($r(r))return bd(r);if(ma(r))return Jy(r);if(Ce(r))return jc(r);if(Rg(r))return Ry(r);if(Ln(r))return Fy(r);let o=Ol(r.kind)?t.createBaseNode(r.kind):t.createBaseTokenNode(r.kind);o.flags|=r.flags&-9,o.transformFlags=r.transformFlags,Kn(o,r);for(let _ in r)Xn(o,_)||!Xn(r,_)||(o[_]=r[_]);return o}function jy(r,o,_){return Pi(Z_(void 0,void 0,void 0,void 0,o?[o]:[],void 0,Ja(r,!0)),void 0,_?[_]:[])}function By(r,o,_){return Pi(ec(void 0,void 0,o?[o]:[],void 0,void 0,Ja(r,!0)),void 0,_?[_]:[])}function Bs(){return Tr(Ze("0"))}function Us(r){return wc(void 0,!1,r)}function Uy(r){return ci(void 0,!1,Fa([Cc(!1,void 0,r)]))}function Dd(r,o){return o==="undefined"?oe.createStrictEquality(r,Bs()):oe.createStrictEquality(Tn(r),ct(o))}function _a(r,o,_){return T0(r)?X_(Oa(r,void 0,o),void 0,void 0,_):Pi(si(r,o),void 0,_)}function qy(r,o,_){return _a(r,"bind",[o,..._])}function Pd(r,o,_){return _a(r,"call",[o,..._])}function zy(r,o,_){return _a(r,"apply",[o,_])}function wo(r,o,_){return _a($e(r),o,_)}function Wy(r,o){return _a(r,"slice",o===void 0?[]:[ui(o)])}function Nd(r,o){return _a(r,"concat",o)}function Id(r,o,_){return wo("Object","defineProperty",[r,ui(o),_])}function Od(r,o){return wo("Object","getOwnPropertyDescriptor",[r,ui(o)])}function c(r,o,_){return wo("Reflect","get",_?[r,o,_]:[r,o])}function f(r,o,_,u){return wo("Reflect","set",u?[r,o,_,u]:[r,o,_])}function v(r,o,_){return _?(r.push(Li(o,_)),!0):!1}function C(r,o){let _=[];v(_,"enumerable",ui(r.enumerable)),v(_,"configurable",ui(r.configurable));let u=v(_,"writable",ui(r.writable));u=v(_,"value",r.value)||u;let b=v(_,"get",r.get);return b=v(_,"set",r.set)||b,M.assert(!(u&&b),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),po(_,!o)}function P(r,o){switch(r.kind){case 216:return wu(r,o);case 215:return Su(r,r.type,o);case 233:return Ju(r,o,r.type);case 237:return cc(r,o,r.type);case 234:return _c(r,o);case 359:return Cd(r,o)}}function U(r){return ss(r)&&pa(r)&&pa(getSourceMapRange(r))&&pa(getCommentRange(r))&&!ft(getSyntheticLeadingComments(r))&&!ft(getSyntheticTrailingComments(r))}function ne(r,o,_=15){return r&&i1(r,_)&&!U(r)?P(r,ne(r.expression,o)):o}function _e(r,o,_){if(!o)return r;let u=tp(o,o.label,k8(o.statement)?_e(r,o.statement):r);return _&&_(o),u}function pe(r,o){let _=Fl(r);switch(_.kind){case 80:return o;case 110:case 9:case 10:case 11:return!1;case 208:return _.elements.length!==0;case 209:return _.properties.length>0;default:return!0}}function ce(r,o,_,u=!1){let b=ds(r,15),I,X;return Lf(b)?(I=Zt(),X=b):of(b)?(I=Zt(),X=_!==void 0&&_<2?He($e("_super"),b):b):Vr(b)&8192?(I=Bs(),X=i().parenthesizeLeftSideOfAccess(b,!1)):Rn(b)?pe(b.expression,u)?(I=$t(o),X=si(He(oe.createAssignment(I,b.expression),b.expression),b.name),He(X,b)):(I=b.expression,X=b):ka(b)?pe(b.expression,u)?(I=$t(o),X=K_(He(oe.createAssignment(I,b.expression),b.expression),b.argumentExpression),He(X,b)):(I=b.expression,X=b):(I=Bs(),X=i().parenthesizeLeftSideOfAccess(r,!1)),{target:X,thisArg:I}}function ve(r,o){return si(Y_(po([gr(void 0,"value",[Mr(void 0,void 0,r,void 0,void 0,void 0)],Ja([yo(o)]))])),"value")}function Ge(r){return r.length>10?js(r):em(r,oe.createComma)}function je(r,o,_,u=0,b){let I=b?r&&ym(r):Nl(r);if(I&&Ce(I)&&!ma(I)){let X=Vi(He(Bc(I),I),I.parent);return u|=Vr(I),_||(u|=96),o||(u|=3072),u&&setEmitFlags(X,u),X}return fr(r)}function Be(r,o,_){return je(r,o,_,98304)}function Lt(r,o,_,u){return je(r,o,_,32768,u)}function On(r,o,_){return je(r,o,_,16384)}function ca(r,o,_){return je(r,o,_)}function li(r,o,_,u){let b=si(r,pa(o)?o:Bc(o));He(b,o);let I=0;return u||(I|=96),_||(I|=3072),I&&setEmitFlags(b,I),b}function Ji(r,o,_,u){return r&&gn(o,1)?li(r,je(o),_,u):On(o,_,u)}function Ri(r,o,_,u){let b=Md(r,o,0,_);return qc(r,o,b,u)}function la(r){return cr(r.expression)&&r.expression.text==="use strict"}function Uc(){return a1(yo(ct("use strict")))}function Md(r,o,_=0,u){M.assert(o.length===0,"Prologue directives should be at the first statement in the target statements array");let b=!1,I=r.length;for(;_ge&&xn.splice(b,0,...o.slice(ge,Ve)),ge>X&&xn.splice(u,0,...o.slice(X,ge)),X>I&&xn.splice(_,0,...o.slice(I,X)),I>0)if(_===0)xn.splice(0,0,...o.slice(0,I));else{let di=new Map;for(let fi=0;fi<_;fi++){let qs=r[fi];di.set(qs.expression.text,!0)}for(let fi=I-1;fi>=0;fi--){let qs=o[fi];di.has(qs.expression.text)||xn.unshift(qs)}}return ua(r)?He(Q(xn,r.hasTrailingComma),r):r}function Jd(r,o){let _;return typeof o=="number"?_=cn(o):_=o,Jo(r)?yr(r,_,r.name,r.constraint,r.default):io(r)?ti(r,_,r.dotDotDotToken,r.name,r.questionToken,r.type,r.initializer):fb(r)?Ae(r,_,r.typeParameters,r.parameters,r.type):Wl(r)?Ie(r,_,r.name,r.questionToken,r.type):os(r)?be(r,_,r.name,r.questionToken??r.exclamationToken,r.type,r.initializer):s8(r)?et(r,_,r.name,r.questionToken,r.typeParameters,r.parameters,r.type):Vl(r)?ee(r,_,r.asteriskToken,r.name,r.questionToken,r.typeParameters,r.parameters,r.type,r.body):P_(r)?Re(r,_,r.parameters,r.body):Kl(r)?Vn(r,_,r.name,r.parameters,r.type,r.body):N_(r)?ni(r,_,r.name,r.parameters,r.body):db(r)?ra(r,_,r.parameters,r.type):Km(r)?Eu(r,_,r.asteriskToken,r.name,r.typeParameters,r.parameters,r.type,r.body):Gm(r)?Cu(r,_,r.typeParameters,r.parameters,r.type,r.equalsGreaterThanToken,r.body):$m(r)?ks(r,_,r.name,r.typeParameters,r.heritageClauses,r.members):_s(r)?Wu(r,_,r.declarationList):cs(r)?gc(r,_,r.asteriskToken,r.name,r.typeParameters,r.parameters,r.type,r.body):u_(r)?bc(r,_,r.name,r.typeParameters,r.heritageClauses,r.members):eu(r)?cp(r,_,r.name,r.typeParameters,r.heritageClauses,r.members):wb(r)?Ii(r,_,r.name,r.typeParameters,r.type):Eb(r)?Oi(r,_,r.name,r.members):Gi(r)?Mt(r,_,r.name,r.body):kb(r)?mp(r,_,r.isTypeOnly,r.name,r.moduleReference):Ab(r)?hp(r,_,r.importClause,r.moduleSpecifier,r.assertClause):ls(r)?Ec(r,_,r.expression):L_(r)?kp(r,_,r.isTypeOnly,r.exportClause,r.moduleSpecifier,r.assertClause):M.assertNever(r)}function Se(r){return r?Q(r):void 0}function nt(r){return typeof r=="string"?$e(r):r}function ui(r){return typeof r=="string"?ct(r):typeof r=="number"?Ze(r):typeof r=="boolean"?r?mt():mr():r}function Eo(r){return r&&i().parenthesizeExpressionForDisallowedComma(r)}function Rd(r){return typeof r=="number"?gt(r):r}function pi(r){return r&&Pb(r)?He(Kn(lc(),r),r):r}function Hy(r){return typeof r=="string"||r&&!Ei(r)?Ps(r,void 0,void 0,void 0):r}}function hL(e,t){return e!==t&&He(e,t),e}function gL(e,t){return e!==t&&(Kn(e,t),He(e,t)),e}function Vd(e){switch(e){case 350:return"type";case 348:return"returns";case 349:return"this";case 346:return"enum";case 336:return"author";case 338:return"class";case 339:return"public";case 340:return"private";case 341:return"protected";case 342:return"readonly";case 343:return"override";case 351:return"template";case 352:return"typedef";case 347:return"param";case 354:return"prop";case 344:return"callback";case 345:return"overload";case 334:return"augments";case 335:return"implements";default:return M.fail(`Unsupported kind: ${M.formatSyntaxKind(e)}`)}}function bL(e,t){switch(rr||(rr=as(99,!1,0)),e){case 15:rr.setText("`"+t+"`");break;case 16:rr.setText("`"+t+"${");break;case 17:rr.setText("}"+t+"${");break;case 18:rr.setText("}"+t+"`");break}let n=rr.scan();if(n===20&&(n=rr.reScanTemplateToken(!1)),rr.isUnterminated())return rr.setText(void 0),Y0;let i;switch(n){case 15:case 16:case 17:case 18:i=rr.getTokenValue();break}return i===void 0||rr.scan()!==1?(rr.setText(void 0),Y0):(rr.setText(void 0),i)}function Cr(e){return e&&Ce(e)?Qs(e):$(e)}function Qs(e){return $(e)&-67108865}function vL(e,t){return t|e.transformFlags&134234112}function $(e){if(!e)return 0;let t=e.transformFlags&~ZS(e.kind);return mm(e)&&Ml(e.name)?vL(e.name,t):t}function Ne(e){return e?e.transformFlags:0}function _v(e){let t=0;for(let n of e)t|=$(n);e.transformFlags=t}function ZS(e){if(e>=181&&e<=204)return-2;switch(e){case 212:case 213:case 208:return-2147450880;case 266:return-1941676032;case 168:return-2147483648;case 218:return-2072174592;case 217:case 261:return-1937940480;case 260:return-2146893824;case 262:case 230:return-2147344384;case 175:return-1937948672;case 171:return-2013249536;case 173:case 176:case 177:return-2005057536;case 133:case 150:case 162:case 146:case 154:case 151:case 136:case 155:case 116:case 167:case 170:case 172:case 178:case 179:case 180:case 263:case 264:return-2;case 209:return-2147278848;case 298:return-2147418112;case 205:case 206:return-2147450880;case 215:case 237:case 233:case 359:case 216:case 108:return-2147483648;case 210:case 211:return-2147483648;default:return-2147483648}}function zc(e){return e.flags|=8,e}function TL(e,t,n){let i,s,l,d,y,p,x,h,D,w;m_(e)?(l="",d=e,y=e.length,p=t,x=n):(M.assert(t==="js"||t==="dts"),l=(t==="js"?e.javascriptPath:e.declarationPath)||"",p=t==="js"?e.javascriptMapPath:e.declarationMapPath,h=()=>t==="js"?e.javascriptText:e.declarationText,D=()=>t==="js"?e.javascriptMapText:e.declarationMapText,y=()=>h().length,e.buildInfo&&e.buildInfo.bundle&&(M.assert(n===void 0||typeof n=="boolean"),i=n,s=t==="js"?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,w=e.oldFileOfCurrentEmit));let g=w?SL(M.checkDefined(s)):xL(s,i,y);return g.fileName=l,g.sourceMapPath=p,g.oldFileOfCurrentEmit=w,h&&D?(Object.defineProperty(g,"text",{get:h}),Object.defineProperty(g,"sourceMapText",{get:D})):(M.assert(!w),g.text=d??"",g.sourceMapText=x),g}function xL(e,t,n){let i,s,l,d,y,p,x,h;for(let w of e?e.sections:Xe)switch(w.kind){case"prologue":i=Tt(i,He(Dr.createUnparsedPrologue(w.data),w));break;case"emitHelpers":s=Tt(s,getAllUnscopedEmitHelpers().get(w.data));break;case"no-default-lib":h=!0;break;case"reference":l=Tt(l,{pos:-1,end:-1,fileName:w.data});break;case"type":d=Tt(d,{pos:-1,end:-1,fileName:w.data});break;case"type-import":d=Tt(d,{pos:-1,end:-1,fileName:w.data,resolutionMode:99});break;case"type-require":d=Tt(d,{pos:-1,end:-1,fileName:w.data,resolutionMode:1});break;case"lib":y=Tt(y,{pos:-1,end:-1,fileName:w.data});break;case"prepend":let g;for(let A of w.texts)(!t||A.kind!=="internal")&&(g=Tt(g,He(Dr.createUnparsedTextLike(A.data,A.kind==="internal"),A)));p=Mn(p,g),x=Tt(x,Dr.createUnparsedPrepend(w.data,g??Xe));break;case"internal":if(t){x||(x=[]);break}case"text":x=Tt(x,He(Dr.createUnparsedTextLike(w.data,w.kind==="internal"),w));break;default:M.assertNever(w)}if(!x){let w=Dr.createUnparsedTextLike(void 0,!1);zf(w,0,typeof n=="function"?n():n),x=[w]}let D=F_.createUnparsedSource(i??Xe,void 0,x);return n_(i,D),n_(x,D),n_(p,D),D.hasNoDefaultLib=h,D.helpers=s,D.referencedFiles=l||Xe,D.typeReferenceDirectives=d,D.libReferenceDirectives=y||Xe,D}function SL(e){let t,n;for(let s of e.sections)switch(s.kind){case"internal":case"text":t=Tt(t,He(Dr.createUnparsedTextLike(s.data,s.kind==="internal"),s));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":n=Tt(n,He(Dr.createUnparsedSyntheticReference(s),s));break;case"prologue":case"emitHelpers":case"prepend":break;default:M.assertNever(s)}let i=Dr.createUnparsedSource(Xe,n,t??Xe);return n_(n,i),n_(t,i),i.helpers=ga(e.sources&&e.sources.helpers,s=>getAllUnscopedEmitHelpers().get(s)),i}function wL(e,t,n,i,s,l){return m_(e)?t8(void 0,e,n,i,void 0,t,s,l):e8(e,t,n,i,s,l)}function e8(e,t,n,i,s,l,d,y){let p=F_.createInputFiles();p.javascriptPath=t,p.javascriptMapPath=n,p.declarationPath=i,p.declarationMapPath=s,p.buildInfoPath=l;let x=new Map,h=A=>{if(A===void 0)return;let B=x.get(A);return B===void 0&&(B=e(A),x.set(A,B!==void 0?B:!1)),B!==!1?B:void 0},D=A=>{let B=h(A);return B!==void 0?B:`/* Input file ${A} was missing */\r -`},w;return Object.defineProperties(p,{javascriptText:{get:()=>D(t)},javascriptMapText:{get:()=>h(n)},declarationText:{get:()=>D(M.checkDefined(i))},declarationMapText:{get:()=>h(s)},buildInfo:{get:()=>{if(w===void 0&&l)if(d!=null&&d.getBuildInfo)w=d.getBuildInfo(l,y.configFilePath)??!1;else{let A=h(l);w=A!==void 0?getBuildInfo(l,A)??!1:!1}return w||void 0}}}),p}function t8(e,t,n,i,s,l,d,y,p,x,h){let D=F_.createInputFiles();return D.javascriptPath=e,D.javascriptText=t,D.javascriptMapPath=n,D.javascriptMapText=i,D.declarationPath=s,D.declarationText=l,D.declarationMapPath=d,D.declarationMapText=y,D.buildInfoPath=p,D.buildInfo=x,D.oldFileOfCurrentEmit=h,D}function EL(e,t,n){return new(lv||(lv=xt.getSourceMapSourceConstructor()))(e,t,n)}function Kn(e,t){if(e.original=t,t){let n=t.emitNode;n&&(e.emitNode=CL(n,e.emitNode))}return e}function CL(e,t){let{flags:n,internalFlags:i,leadingComments:s,trailingComments:l,commentRange:d,sourceMapRange:y,tokenSourceMapRanges:p,constantValue:x,helpers:h,startsOnNewLine:D,snippetElement:w}=e;if(t||(t={}),s&&(t.leadingComments=Mn(s.slice(),t.leadingComments)),l&&(t.trailingComments=Mn(l.slice(),t.trailingComments)),n&&(t.flags=n),i&&(t.internalFlags=i&-9),d&&(t.commentRange=d),y&&(t.sourceMapRange=y),p&&(t.tokenSourceMapRanges=kL(p,t.tokenSourceMapRanges)),x!==void 0&&(t.constantValue=x),h)for(let g of h)t.helpers=Uv(t.helpers,g);return D!==void 0&&(t.startsOnNewLine=D),w!==void 0&&(t.snippetElement=w),t}function kL(e,t){t||(t=[]);for(let n in e)t[n]=e[n];return t}var $c,Q0,_b,rr,Y0,Vs,cv,Dr,lv,AL=Ht({"src/compiler/factory/nodeFactory.ts"(){"use strict";En(),$c=0,Q0=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))(Q0||{}),_b=[],Y0={},Vs=QS(),cv={createBaseSourceFileNode:e=>zc(Vs.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>zc(Vs.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>zc(Vs.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>zc(Vs.createBaseTokenNode(e)),createBaseNode:e=>zc(Vs.createBaseNode(e))},Dr=Vf(4,cv)}}),DL=()=>{},PL=()=>{};function ro(e){return e.kind===9}function cb(e){return e.kind===10}function cr(e){return e.kind===11}function Hf(e){return e.kind===12}function NL(e){return e.kind===14}function n8(e){return e.kind===15}function IL(e){return e.kind===16}function OL(e){return e.kind===17}function ML(e){return e.kind===18}function LL(e){return e.kind===26}function r8(e){return e.kind===28}function lb(e){return e.kind===40}function ub(e){return e.kind===41}function JL(e){return e.kind===42}function Kf(e){return e.kind===54}function xl(e){return e.kind===58}function RL(e){return e.kind===59}function FL(e){return e.kind===29}function jL(e){return e.kind===39}function Ce(e){return e.kind===80}function Ln(e){return e.kind===81}function i8(e){return e.kind===95}function BL(e){return e.kind===90}function Qc(e){return e.kind===134}function UL(e){return e.kind===131}function qL(e){return e.kind===135}function a8(e){return e.kind===148}function zL(e){return e.kind===126}function WL(e){return e.kind===128}function VL(e){return e.kind===163}function HL(e){return e.kind===129}function of(e){return e.kind===108}function o8(e){return e.kind===102}function KL(e){return e.kind===84}function D_(e){return e.kind===165}function Za(e){return e.kind===166}function Jo(e){return e.kind===167}function io(e){return e.kind===168}function zl(e){return e.kind===169}function Wl(e){return e.kind===170}function os(e){return e.kind===171}function s8(e){return e.kind===172}function Vl(e){return e.kind===173}function Hl(e){return e.kind===174}function P_(e){return e.kind===175}function Kl(e){return e.kind===176}function N_(e){return e.kind===177}function pb(e){return e.kind===178}function _8(e){return e.kind===179}function db(e){return e.kind===180}function c8(e){return e.kind===181}function I_(e){return e.kind===182}function Gl(e){return e.kind===183}function fb(e){return e.kind===184}function l8(e){return e.kind===185}function Hm(e){return e.kind===186}function u8(e){return e.kind===187}function p8(e){return e.kind===188}function mb(e){return e.kind===201}function d8(e){return e.kind===189}function f8(e){return e.kind===190}function m8(e){return e.kind===191}function y8(e){return e.kind===192}function h8(e){return e.kind===193}function g8(e){return e.kind===194}function yb(e){return e.kind===195}function hb(e){return e.kind===196}function b8(e){return e.kind===197}function v8(e){return e.kind===198}function T8(e){return e.kind===199}function gb(e){return e.kind===200}function Xl(e){return e.kind===204}function GL(e){return e.kind===203}function XL(e){return e.kind===202}function $L(e){return e.kind===205}function QL(e){return e.kind===206}function $l(e){return e.kind===207}function Ql(e){return e.kind===208}function ao(e){return e.kind===209}function Rn(e){return e.kind===210}function ka(e){return e.kind===211}function O_(e){return e.kind===212}function x8(e){return e.kind===213}function S8(e){return e.kind===214}function YL(e){return e.kind===215}function ss(e){return e.kind===216}function Km(e){return e.kind===217}function Gm(e){return e.kind===218}function ZL(e){return e.kind===219}function eJ(e){return e.kind===220}function bb(e){return e.kind===221}function tJ(e){return e.kind===222}function Xm(e){return e.kind===223}function w8(e){return e.kind===224}function St(e){return e.kind===225}function nJ(e){return e.kind===226}function rJ(e){return e.kind===227}function iJ(e){return e.kind===228}function vb(e){return e.kind===229}function $m(e){return e.kind===230}function Qm(e){return e.kind===231}function Tb(e){return e.kind===232}function aJ(e){return e.kind===233}function oJ(e){return e.kind===237}function qo(e){return e.kind===234}function xb(e){return e.kind===235}function sJ(e){return e.kind===236}function E8(e){return e.kind===359}function M_(e){return e.kind===360}function _J(e){return e.kind===238}function cJ(e){return e.kind===239}function Yl(e){return e.kind===240}function _s(e){return e.kind===242}function lJ(e){return e.kind===241}function Zl(e){return e.kind===243}function uJ(e){return e.kind===244}function pJ(e){return e.kind===245}function dJ(e){return e.kind===246}function C8(e){return e.kind===247}function fJ(e){return e.kind===248}function mJ(e){return e.kind===249}function yJ(e){return e.kind===250}function hJ(e){return e.kind===251}function gJ(e){return e.kind===252}function bJ(e){return e.kind===253}function vJ(e){return e.kind===254}function k8(e){return e.kind===255}function TJ(e){return e.kind===256}function xJ(e){return e.kind===257}function SJ(e){return e.kind===258}function Ei(e){return e.kind===259}function Sb(e){return e.kind===260}function cs(e){return e.kind===261}function u_(e){return e.kind===262}function eu(e){return e.kind===263}function wb(e){return e.kind===264}function Eb(e){return e.kind===265}function Gi(e){return e.kind===266}function A8(e){return e.kind===267}function wJ(e){return e.kind===268}function Cb(e){return e.kind===269}function kb(e){return e.kind===270}function Ab(e){return e.kind===271}function EJ(e){return e.kind===272}function CJ(e){return e.kind===301}function kJ(e){return e.kind===299}function AJ(e){return e.kind===300}function Db(e){return e.kind===273}function Ym(e){return e.kind===279}function DJ(e){return e.kind===274}function D8(e){return e.kind===275}function ls(e){return e.kind===276}function L_(e){return e.kind===277}function P8(e){return e.kind===278}function N8(e){return e.kind===280}function PJ(e){return e.kind===281}function Pb(e){return e.kind===358}function NJ(e){return e.kind===361}function Zm(e){return e.kind===282}function Z0(e){return e.kind===283}function IJ(e){return e.kind===284}function Ro(e){return e.kind===285}function sf(e){return e.kind===286}function ol(e){return e.kind===287}function Nb(e){return e.kind===288}function OJ(e){return e.kind===289}function MJ(e){return e.kind===290}function Ib(e){return e.kind===291}function LJ(e){return e.kind===292}function JJ(e){return e.kind===293}function J_(e){return e.kind===294}function RJ(e){return e.kind===295}function I8(e){return e.kind===296}function Sl(e){return e.kind===297}function FJ(e){return e.kind===298}function us(e){return e.kind===302}function tu(e){return e.kind===303}function O8(e){return e.kind===304}function M8(e){return e.kind===305}function jJ(e){return e.kind===307}function $r(e){return e.kind===311}function BJ(e){return e.kind===312}function UJ(e){return e.kind===313}function L8(e){return e.kind===315}function _f(e){return e.kind===316}function Zs(e){return e.kind===317}function qJ(e){return e.kind===330}function zJ(e){return e.kind===331}function WJ(e){return e.kind===332}function VJ(e){return e.kind===318}function HJ(e){return e.kind===319}function J8(e){return e.kind===320}function KJ(e){return e.kind===321}function GJ(e){return e.kind===322}function e1(e){return e.kind===323}function XJ(e){return e.kind===324}function $J(e){return e.kind===325}function ps(e){return e.kind===326}function Ob(e){return e.kind===328}function nu(e){return e.kind===329}function t1(e){return e.kind===334}function QJ(e){return e.kind===336}function R8(e){return e.kind===338}function YJ(e){return e.kind===344}function Mb(e){return e.kind===339}function Lb(e){return e.kind===340}function Jb(e){return e.kind===341}function Rb(e){return e.kind===342}function F8(e){return e.kind===343}function Fb(e){return e.kind===345}function jb(e){return e.kind===337}function ZJ(e){return e.kind===353}function j8(e){return e.kind===346}function p_(e){return e.kind===347}function Bb(e){return e.kind===348}function B8(e){return e.kind===349}function ru(e){return e.kind===350}function es(e){return e.kind===351}function eR(e){return e.kind===352}function tR(e){return e.kind===333}function nR(e){return e.kind===354}function U8(e){return e.kind===335}function Ub(e){return e.kind===356}function rR(e){return e.kind===355}function iR(e){return e.kind===357}var aR=Ht({"src/compiler/factory/nodeTests.ts"(){"use strict";En()}});function oR(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function n1(e,t,n,i){if(Za(n))return He(e.createElementAccessExpression(t,n.expression),i);{let s=He($a(n)?e.createPropertyAccessExpression(t,n):e.createElementAccessExpression(t,n),n);return addEmitFlags(s,128),s}}function qb(e,t){let n=F_.createIdentifier(e||"React");return Vi(n,Pl(t)),n}function zb(e,t,n){if(D_(t)){let i=zb(e,t.left,n),s=e.createIdentifier(Ot(t.right));return s.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,s)}else return qb(Ot(t),n)}function q8(e,t,n,i){return t?zb(e,t,i):e.createPropertyAccessExpression(qb(n,i),"createElement")}function sR(e,t,n,i){return t?zb(e,t,i):e.createPropertyAccessExpression(qb(n,i),"Fragment")}function _R(e,t,n,i,s,l){let d=[n];if(i&&d.push(i),s&&s.length>0)if(i||d.push(e.createNull()),s.length>1)for(let y of s)a1(y),d.push(y);else d.push(s[0]);return He(e.createCallExpression(t,void 0,d),l)}function cR(e,t,n,i,s,l,d){let p=[sR(e,n,i,l),e.createNull()];if(s&&s.length>0)if(s.length>1)for(let x of s)a1(x),p.push(x);else p.push(s[0]);return He(e.createCallExpression(q8(e,t,i,l),void 0,p),d)}function lR(e,t,n){if(Sb(t)){let i=cg(t.declarations),s=e.updateVariableDeclaration(i,i.name,void 0,void 0,n);return He(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[s])),t)}else{let i=He(e.createAssignment(t,n),t);return He(e.createExpressionStatement(i),t)}}function uR(e,t,n){return Yl(t)?e.updateBlock(t,He(e.createNodeArray([n,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,n]),!0)}function z8(e,t){if(D_(t)){let n=z8(e,t.left),i=Vi(He(e.cloneNode(t.right),t.right),t.right.parent);return He(e.createPropertyAccessExpression(n,i),t)}else return Vi(He(e.cloneNode(t),t),t.parent)}function W8(e,t){return Ce(t)?e.createStringLiteralFromNode(t):Za(t)?Vi(He(e.cloneNode(t.expression),t.expression),t.expression.parent):Vi(He(e.cloneNode(t),t),t.parent)}function pR(e,t,n,i,s){let{firstAccessor:l,getAccessor:d,setAccessor:y}=O2(t,n);if(n===l)return He(e.createObjectDefinePropertyCall(i,W8(e,n.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:d&&He(Kn(e.createFunctionExpression(Mf(d),void 0,void 0,void 0,d.parameters,void 0,d.body),d),d),set:y&&He(Kn(e.createFunctionExpression(Mf(y),void 0,void 0,void 0,y.parameters,void 0,y.body),y),y)},!s)),l)}function dR(e,t,n){return Kn(He(e.createAssignment(n1(e,n,t.name,t.name),t.initializer),t),t)}function fR(e,t,n){return Kn(He(e.createAssignment(n1(e,n,t.name,t.name),e.cloneNode(t.name)),t),t)}function mR(e,t,n){return Kn(He(e.createAssignment(n1(e,n,t.name,t.name),Kn(He(e.createFunctionExpression(Mf(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function yR(e,t,n,i){switch(n.name&&Ln(n.name)&&M.failBadSyntaxKind(n.name,"Private identifiers are not allowed in object literals."),n.kind){case 176:case 177:return pR(e,t.properties,n,i,!!t.multiLine);case 302:return dR(e,n,i);case 303:return fR(e,n,i);case 173:return mR(e,n,i)}}function hR(e,t,n,i,s){let l=t.operator;M.assert(l===46||l===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");let d=e.createTempVariable(i);n=e.createAssignment(d,n),He(n,t.operand);let y=Xm(t)?e.createPrefixUnaryExpression(l,d):e.createPostfixUnaryExpression(d,l);return He(y,t),s&&(y=e.createAssignment(s,y),He(y,t)),n=e.createComma(n,y),He(n,t),w8(t)&&(n=e.createComma(n,d),He(n,t)),n}function gR(e){return(Vr(e)&65536)!==0}function eg(e){return(Vr(e)&32768)!==0}function bR(e){return(Vr(e)&16384)!==0}function V8(e){return cr(e.expression)&&e.expression.text==="use strict"}function H8(e){for(let t of e)if(ha(t)){if(V8(t))return t}else break}function K8(e){let t=f_(e);return t!==void 0&&ha(t)&&V8(t)}function r1(e){return e.kind===225&&e.operatorToken.kind===28}function vR(e){return r1(e)||M_(e)}function G8(e){return ss(e)&&Vt(e)&&!!gm(e)}function TR(e){let t=bm(e);return M.assertIsDefined(t),t}function i1(e,t=15){switch(e.kind){case 216:return t&16&&G8(e)?!1:(t&1)!==0;case 215:case 233:case 232:case 237:return(t&2)!==0;case 234:return(t&4)!==0;case 359:return(t&8)!==0}return!1}function ds(e,t=15){for(;i1(e,t);)e=e.expression;return e}function xR(e,t=15){let n=e.parent;for(;i1(n,t);)n=n.parent,M.assert(n);return n}function SR(e){return ds(e,6)}function a1(e){return setStartsOnNewLine(e,!0)}function X8(e){let t=Dl(e,$r),n=t&&t.emitNode;return n&&n.externalHelpersModuleName}function wR(e){let t=Dl(e,$r),n=t&&t.emitNode;return!!n&&(!!n.externalHelpersModuleName||!!n.externalHelpers)}function ER(e,t,n,i,s,l,d){if(i.importHelpers&&Qg(n,i)){let y,p=Gr(i);if(p>=5&&p<=99||n.impliedNodeFormat===99){let x=getEmitHelpers(n);if(x){let h=[];for(let D of x)if(!D.scoped){let w=D.importName;w&&wl(h,w)}if(ft(h)){h.sort(xi),y=e.createNamedImports(ga(h,g=>Kx(n,g)?e.createImportSpecifier(!1,void 0,e.createIdentifier(g)):e.createImportSpecifier(!1,e.createIdentifier(g),t.getUnscopedHelperName(g))));let D=Dl(n,$r),w=getOrCreateEmitNode(D);w.externalHelpers=!0}}}else{let x=$8(e,n,i,s,l||d);x&&(y=e.createNamespaceImport(x))}if(y){let x=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,y),e.createStringLiteral(zm),void 0);return addInternalEmitFlags(x,2),x}}}function $8(e,t,n,i,s){if(n.importHelpers&&Qg(t,n)){let l=X8(t);if(l)return l;let d=Gr(n),y=(i||W2(n)&&s)&&d!==4&&(d<5||t.impliedNodeFormat===1);if(!y){let p=getEmitHelpers(t);if(p){for(let x of p)if(!x.scoped){y=!0;break}}}if(y){let p=Dl(t,$r),x=getOrCreateEmitNode(p);return x.externalHelpersModuleName||(x.externalHelpersModuleName=e.createUniqueName(zm))}}}function CR(e,t,n){let i=P4(t);if(i&&!N4(t)&&!Yx(t)){let s=i.name;return ma(s)?s:e.createIdentifier(Yo(n,s)||Ot(s))}if(t.kind===271&&t.importClause||t.kind===277&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function kR(e,t,n,i,s,l){let d=h2(t);if(d&&cr(d))return DR(t,i,e,s,l)||AR(e,d,n)||e.cloneNode(d)}function AR(e,t,n){let i=n.renamedDependencies&&n.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function Q8(e,t,n,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&P2(i))return e.createStringLiteral(D2(n,t.fileName))}}function DR(e,t,n,i,s){return Q8(n,i.getExternalModuleFileFromDeclaration(e),t,s)}function Y8(e){if(zg(e))return e.initializer;if(us(e)){let t=e.initializer;return Sa(t,!0)?t.right:void 0}if(tu(e))return e.objectAssignmentInitializer;if(Sa(e,!0))return e.right;if(vb(e))return Y8(e.expression)}function Fo(e){if(zg(e))return e.name;if(qg(e)){switch(e.kind){case 302:return Fo(e.initializer);case 303:return e.name;case 304:return Fo(e.expression)}return}return Sa(e,!0)?Fo(e.left):vb(e)?Fo(e.expression):e}function PR(e){switch(e.kind){case 168:case 207:return e.dotDotDotToken;case 229:case 304:return e}}function NR(e){let t=Z8(e);return M.assert(!!t||O8(e),"Invalid property name for binding element."),t}function Z8(e){switch(e.kind){case 207:if(e.propertyName){let n=e.propertyName;return Ln(n)?M.failBadSyntaxKind(n):Za(n)&&uv(n.expression)?n.expression:n}break;case 302:if(e.name){let n=e.name;return Ln(n)?M.failBadSyntaxKind(n):Za(n)&&uv(n.expression)?n.expression:n}break;case 304:return e.name&&Ln(e.name)?M.failBadSyntaxKind(e.name):e.name}let t=Fo(e);if(t&&Ml(t))return t}function uv(e){let t=e.kind;return t===11||t===9}function e7(e){switch(e.kind){case 205:case 206:case 208:return e.elements;case 209:return e.properties}}function tg(e){if(e){let t=e;for(;;){if(Ce(t)||!t.body)return Ce(t)?t:t.name;t=t.body}}}function IR(e){let t=e.kind;return t===175||t===177}function t7(e){let t=e.kind;return t===175||t===176||t===177}function OR(e){let t=e.kind;return t===302||t===303||t===261||t===175||t===180||t===174||t===281||t===242||t===263||t===264||t===265||t===266||t===270||t===271||t===269||t===277||t===276}function MR(e){let t=e.kind;return t===174||t===302||t===303||t===281||t===269}function LR(e){return xl(e)||Kf(e)}function JR(e){return Ce(e)||hb(e)}function RR(e){return a8(e)||lb(e)||ub(e)}function FR(e){return xl(e)||lb(e)||ub(e)}function jR(e){return Ce(e)||cr(e)}function BR(e){let t=e.kind;return t===106||t===112||t===97||Jg(e)||Xm(e)}function UR(e){return e===43}function qR(e){return e===42||e===44||e===45}function zR(e){return UR(e)||qR(e)}function WR(e){return e===40||e===41}function VR(e){return WR(e)||zR(e)}function HR(e){return e===48||e===49||e===50}function KR(e){return HR(e)||VR(e)}function GR(e){return e===30||e===33||e===32||e===34||e===104||e===103}function XR(e){return GR(e)||KR(e)}function $R(e){return e===35||e===37||e===36||e===38}function QR(e){return $R(e)||XR(e)}function YR(e){return e===51||e===52||e===53}function ZR(e){return YR(e)||QR(e)}function eF(e){return e===56||e===57}function tF(e){return eF(e)||ZR(e)}function nF(e){return e===61||tF(e)||w_(e)}function rF(e){return nF(e)||e===28}function iF(e){return rF(e.kind)}function aF(e,t,n,i,s,l){let d=new r7(e,t,n,i,s,l);return y;function y(p,x){let h={value:void 0},D=[Xf.enter],w=[p],g=[void 0],A=0;for(;D[A]!==Xf.done;)A=D[A](d,A,D,w,g,h,x);return M.assertEqual(A,0),h.value}}function n7(e){return e===95||e===90}function oF(e){let t=e.kind;return n7(t)}function sF(e){let t=e.kind;return yi(t)&&!n7(t)}function _F(e,t){if(t!==void 0)return t.length===0?t:He(e.createNodeArray([],t.hasTrailingComma),t)}function cF(e){var t;let n=e.emitNode.autoGenerate;if(n.flags&4){let i=n.id,s=e,l=s.original;for(;l;){s=l;let d=(t=s.emitNode)==null?void 0:t.autoGenerate;if($a(s)&&(d===void 0||d.flags&4&&d.id!==i))break;l=s.original}return s}return e}function ng(e,t){return typeof e=="object"?Gf(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function lF(e,t){return typeof e=="string"?e:uF(e,M.checkDefined(t))}function uF(e,t){return Rg(e)?t(e).slice(1):ma(e)?t(e):Ln(e)?e.escapedText.slice(1):Ot(e)}function Gf(e,t,n,i,s){return t=ng(t,s),i=ng(i,s),n=lF(n,s),`${e?"#":""}${t}${n}${i}`}function pF(e,t,n,i){return e.updatePropertyDeclaration(t,n,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function dF(e,t,n,i){return e.createGetAccessorDeclaration(n,i,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(e.createThis(),e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function fF(e,t,n,i){return e.createSetAccessorDeclaration(n,i,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(e.createThis(),e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function mF(e){let t=e.expression;for(;;){if(t=ds(t),M_(t)){t=ba(t.elements);continue}if(r1(t)){t=t.right;continue}if(Sa(t,!0)&&ma(t.left))return t;break}}function yF(e){return ss(e)&&pa(e)&&!e.emitNode}function Yc(e,t){if(yF(e))Yc(e.expression,t);else if(r1(e))Yc(e.left,t),Yc(e.right,t);else if(M_(e))for(let n of e.elements)Yc(n,t);else t.push(e)}function hF(e){let t=[];return Yc(e,t),t}function Wb(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of e7(e)){let n=Fo(t);if(n&&kx(n)&&(n.transformFlags&65536||n.transformFlags&128&&Wb(n)))return!0}return!1}var Xf,r7,gF=Ht({"src/compiler/factory/utilities.ts"(){"use strict";En(),(e=>{function t(h,D,w,g,A,B,G){let oe=D>0?A[D-1]:void 0;return M.assertEqual(w[D],t),A[D]=h.onEnter(g[D],oe,G),w[D]=y(h,t),D}e.enter=t;function n(h,D,w,g,A,B,G){M.assertEqual(w[D],n),M.assertIsDefined(h.onLeft),w[D]=y(h,n);let oe=h.onLeft(g[D].left,A[D],g[D]);return oe?(x(D,g,oe),p(D,w,g,A,oe)):D}e.left=n;function i(h,D,w,g,A,B,G){return M.assertEqual(w[D],i),M.assertIsDefined(h.onOperator),w[D]=y(h,i),h.onOperator(g[D].operatorToken,A[D],g[D]),D}e.operator=i;function s(h,D,w,g,A,B,G){M.assertEqual(w[D],s),M.assertIsDefined(h.onRight),w[D]=y(h,s);let oe=h.onRight(g[D].right,A[D],g[D]);return oe?(x(D,g,oe),p(D,w,g,A,oe)):D}e.right=s;function l(h,D,w,g,A,B,G){M.assertEqual(w[D],l),w[D]=y(h,l);let oe=h.onExit(g[D],A[D]);if(D>0){if(D--,h.foldState){let Q=w[D]===l?"right":"left";A[D]=h.foldState(A[D],oe,Q)}}else B.value=oe;return D}e.exit=l;function d(h,D,w,g,A,B,G){return M.assertEqual(w[D],d),D}e.done=d;function y(h,D){switch(D){case t:if(h.onLeft)return n;case n:if(h.onOperator)return i;case i:if(h.onRight)return s;case s:return l;case l:return d;case d:return d;default:M.fail("Invalid state")}}e.nextState=y;function p(h,D,w,g,A){return h++,D[h]=t,w[h]=A,g[h]=void 0,h}function x(h,D,w){if(M.shouldAssert(2))for(;h>=0;)M.assert(D[h]!==w,"Circular traversal detected."),h--}})(Xf||(Xf={})),r7=class{constructor(e,t,n,i,s,l){this.onEnter=e,this.onLeft=t,this.onOperator=n,this.onRight=i,this.onExit=s,this.foldState=l}}}});function He(e,t){return t?Va(e,t.pos,t.end):e}function R_(e){let t=e.kind;return t===167||t===168||t===170||t===171||t===172||t===173||t===175||t===176||t===177||t===180||t===184||t===217||t===218||t===230||t===242||t===261||t===262||t===263||t===264||t===265||t===266||t===270||t===271||t===276||t===277}function i7(e){let t=e.kind;return t===168||t===171||t===173||t===176||t===177||t===230||t===262}var bF=Ht({"src/compiler/factory/utilitiesPublic.ts"(){"use strict";En()}});function N(e,t){return t&&e(t)}function ue(e,t,n){if(n){if(t)return t(n);for(let i of n){let s=e(i);if(s)return s}}}function a7(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function sl(e){return hn(e.statements,vF)||TF(e)}function vF(e){return R_(e)&&xF(e,95)||kb(e)&&Zm(e.moduleReference)||Ab(e)||ls(e)||L_(e)?e:void 0}function TF(e){return e.flags&4194304?o7(e):void 0}function o7(e){return SF(e)?e:qt(e,o7)}function xF(e,t){return ft(e.modifiers,n=>n.kind===t)}function SF(e){return xb(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function pv(e,t,n){return ue(t,n,e.typeParameters)||ue(t,n,e.parameters)||N(t,e.type)}function dv(e,t,n){return ue(t,n,e.types)}function fv(e,t,n){return N(t,e.type)}function mv(e,t,n){return ue(t,n,e.elements)}function yv(e,t,n){return N(t,e.expression)||N(t,e.questionDotToken)||ue(t,n,e.typeArguments)||ue(t,n,e.arguments)}function hv(e,t,n){return ue(t,n,e.statements)}function gv(e,t,n){return N(t,e.label)}function bv(e,t,n){return ue(t,n,e.modifiers)||N(t,e.name)||ue(t,n,e.typeParameters)||ue(t,n,e.heritageClauses)||ue(t,n,e.members)}function vv(e,t,n){return ue(t,n,e.elements)}function Tv(e,t,n){return N(t,e.propertyName)||N(t,e.name)}function xv(e,t,n){return N(t,e.tagName)||ue(t,n,e.typeArguments)||N(t,e.attributes)}function Ao(e,t,n){return N(t,e.type)}function Sv(e,t,n){return N(t,e.tagName)||(e.isNameFirst?N(t,e.name)||N(t,e.typeExpression):N(t,e.typeExpression)||N(t,e.name))||(typeof e.comment=="string"?void 0:ue(t,n,e.comment))}function Do(e,t,n){return N(t,e.tagName)||N(t,e.typeExpression)||(typeof e.comment=="string"?void 0:ue(t,n,e.comment))}function th(e,t,n){return N(t,e.name)}function qa(e,t,n){return N(t,e.tagName)||(typeof e.comment=="string"?void 0:ue(t,n,e.comment))}function wF(e,t,n){return N(t,e.expression)}function qt(e,t,n){if(e===void 0||e.kind<=164)return;let i=p7[e.kind];return i===void 0?void 0:i(e,t,n)}function rg(e,t,n){let i=wv(e),s=[];for(;s.length=0;--y)i.push(l[y]),s.push(d)}else{let y=t(l,d);if(y){if(y==="skip")continue;return y}if(l.kind>=165)for(let p of wv(l))i.push(p),s.push(l)}}}function wv(e){let t=[];return qt(e,n,n),t;function n(i){t.unshift(i)}}function s7(e){e.externalModuleIndicator=sl(e)}function _7(e,t,n,i=!1,s){var l,d,y,p;(l=fa)==null||l.push(fa.Phase.Parse,"createSourceFile",{path:e},!0),Q6("beforeParse");let x;(d=yf)==null||d.logStartParseSourceFile(e);let{languageVersion:h,setExternalModuleIndicator:D,impliedNodeFormat:w}=typeof n=="object"?n:{languageVersion:n};if(h===100)x=zr.parseSourceFile(e,t,h,void 0,i,6,Nr);else{let g=w===void 0?D:A=>(A.impliedNodeFormat=w,(D||s7)(A));x=zr.parseSourceFile(e,t,h,void 0,i,s,g)}return(y=yf)==null||y.logStopParseSourceFile(),Q6("afterParse"),y5("Parse","beforeParse","afterParse"),(p=fa)==null||p.pop(),x}function EF(e,t){return zr.parseIsolatedEntityName(e,t)}function CF(e,t){return zr.parseJsonText(e,t)}function ts(e){return e.externalModuleIndicator!==void 0}function Vb(e,t,n,i=!1){let s=cf.updateSourceFile(e,t,n,i);return s.flags|=e.flags&6291456,s}function kF(e,t,n){let i=zr.JSDocParser.parseIsolatedJSDocComment(e,t,n);return i&&i.jsDoc&&zr.fixupParentReferences(i.jsDoc),i}function AF(e,t,n){return zr.JSDocParser.parseJSDocTypeExpressionForTests(e,t,n)}function c7(e){return Wr(e,ob)||Ea(e,".ts")&&Ga(h_(e),".d.")}function DF(e,t,n,i){if(e){if(e==="import")return 99;if(e==="require")return 1;i(t,n-t,K.resolution_mode_should_be_either_require_or_import)}}function l7(e,t){let n=[];for(let i of Go(t,0)||Xe){let s=t.substring(i.pos,i.end);NF(n,i,s)}e.pragmas=new Map;for(let i of n){if(e.pragmas.has(i.name)){let s=e.pragmas.get(i.name);s instanceof Array?s.push(i.args):e.pragmas.set(i.name,[s,i.args]);continue}e.pragmas.set(i.name,i.args)}}function u7(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((n,i)=>{switch(i){case"reference":{let s=e.referencedFiles,l=e.typeReferenceDirectives,d=e.libReferenceDirectives;hn(Gd(n),y=>{let{types:p,lib:x,path:h,["resolution-mode"]:D}=y.arguments;if(y.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(p){let w=DF(D,p.pos,p.end,t);l.push({pos:p.pos,end:p.end,fileName:p.value,...w?{resolutionMode:w}:{}})}else x?d.push({pos:x.pos,end:x.end,fileName:x.value}):h?s.push({pos:h.pos,end:h.end,fileName:h.value}):t(y.range.pos,y.range.end-y.range.pos,K.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=ga(Gd(n),s=>({name:s.arguments.name,path:s.arguments.path}));break}case"amd-module":{if(n instanceof Array)for(let s of n)e.moduleName&&t(s.range.pos,s.range.end-s.range.pos,K.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=s.arguments.name;else e.moduleName=n.arguments.name;break}case"ts-nocheck":case"ts-check":{hn(Gd(n),s=>{(!e.checkJsDirective||s.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:i==="ts-check",end:s.range.end,pos:s.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:M.fail("Unhandled pragma kind")}})}function PF(e){if(lf.has(e))return lf.get(e);let t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return lf.set(e,t),t}function NF(e,t,n){let i=t.kind===2&&d7.exec(n);if(i){let l=i[1].toLowerCase(),d=om[l];if(!d||!(d.kind&1))return;if(d.args){let y={};for(let p of d.args){let h=PF(p.name).exec(n);if(!h&&!p.optional)return;if(h){let D=h[2]||h[3];if(p.captureSpan){let w=t.pos+h.index+h[1].length+1;y[p.name]={value:D,pos:w,end:w+D.length}}else y[p.name]=D}}e.push({name:l,args:{arguments:y,range:t}})}else e.push({name:l,args:{arguments:{},range:t}});return}let s=t.kind===2&&f7.exec(n);if(s)return Ev(e,t,2,s);if(t.kind===3){let l=/@(\S+)(\s+.*)?$/gim,d;for(;d=l.exec(n);)Ev(e,t,4,d)}}function Ev(e,t,n,i){if(!i)return;let s=i[1].toLowerCase(),l=om[s];if(!l||!(l.kind&n))return;let d=i[2],y=IF(l,d);y!=="fail"&&e.push({name:s,args:{arguments:y,range:t}})}function IF(e,t){if(!t)return{};if(!e.args)return{};let n=am(t).split(/\s+/),i={};for(let s=0;snew(Pv||(Pv=xt.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(Av||(Av=xt.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(Dv||(Dv=xt.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(kv||(kv=xt.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(Cv||(Cv=xt.getNodeConstructor()))(e,-1,-1)},F_=Vf(1,ig),p7={165:function(t,n,i){return N(n,t.left)||N(n,t.right)},167:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.name)||N(n,t.constraint)||N(n,t.default)||N(n,t.expression)},303:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.name)||N(n,t.questionToken)||N(n,t.exclamationToken)||N(n,t.equalsToken)||N(n,t.objectAssignmentInitializer)},304:function(t,n,i){return N(n,t.expression)},168:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.dotDotDotToken)||N(n,t.name)||N(n,t.questionToken)||N(n,t.type)||N(n,t.initializer)},171:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.name)||N(n,t.questionToken)||N(n,t.exclamationToken)||N(n,t.type)||N(n,t.initializer)},170:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.name)||N(n,t.questionToken)||N(n,t.type)||N(n,t.initializer)},302:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.name)||N(n,t.questionToken)||N(n,t.exclamationToken)||N(n,t.initializer)},259:function(t,n,i){return N(n,t.name)||N(n,t.exclamationToken)||N(n,t.type)||N(n,t.initializer)},207:function(t,n,i){return N(n,t.dotDotDotToken)||N(n,t.propertyName)||N(n,t.name)||N(n,t.initializer)},180:function(t,n,i){return ue(n,i,t.modifiers)||ue(n,i,t.typeParameters)||ue(n,i,t.parameters)||N(n,t.type)},184:function(t,n,i){return ue(n,i,t.modifiers)||ue(n,i,t.typeParameters)||ue(n,i,t.parameters)||N(n,t.type)},183:function(t,n,i){return ue(n,i,t.modifiers)||ue(n,i,t.typeParameters)||ue(n,i,t.parameters)||N(n,t.type)},178:pv,179:pv,173:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.asteriskToken)||N(n,t.name)||N(n,t.questionToken)||N(n,t.exclamationToken)||ue(n,i,t.typeParameters)||ue(n,i,t.parameters)||N(n,t.type)||N(n,t.body)},172:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.name)||N(n,t.questionToken)||ue(n,i,t.typeParameters)||ue(n,i,t.parameters)||N(n,t.type)},175:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.name)||ue(n,i,t.typeParameters)||ue(n,i,t.parameters)||N(n,t.type)||N(n,t.body)},176:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.name)||ue(n,i,t.typeParameters)||ue(n,i,t.parameters)||N(n,t.type)||N(n,t.body)},177:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.name)||ue(n,i,t.typeParameters)||ue(n,i,t.parameters)||N(n,t.type)||N(n,t.body)},261:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.asteriskToken)||N(n,t.name)||ue(n,i,t.typeParameters)||ue(n,i,t.parameters)||N(n,t.type)||N(n,t.body)},217:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.asteriskToken)||N(n,t.name)||ue(n,i,t.typeParameters)||ue(n,i,t.parameters)||N(n,t.type)||N(n,t.body)},218:function(t,n,i){return ue(n,i,t.modifiers)||ue(n,i,t.typeParameters)||ue(n,i,t.parameters)||N(n,t.type)||N(n,t.equalsGreaterThanToken)||N(n,t.body)},174:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.body)},182:function(t,n,i){return N(n,t.typeName)||ue(n,i,t.typeArguments)},181:function(t,n,i){return N(n,t.assertsModifier)||N(n,t.parameterName)||N(n,t.type)},185:function(t,n,i){return N(n,t.exprName)||ue(n,i,t.typeArguments)},186:function(t,n,i){return ue(n,i,t.members)},187:function(t,n,i){return N(n,t.elementType)},188:function(t,n,i){return ue(n,i,t.elements)},191:dv,192:dv,193:function(t,n,i){return N(n,t.checkType)||N(n,t.extendsType)||N(n,t.trueType)||N(n,t.falseType)},194:function(t,n,i){return N(n,t.typeParameter)},204:function(t,n,i){return N(n,t.argument)||N(n,t.assertions)||N(n,t.qualifier)||ue(n,i,t.typeArguments)},301:function(t,n,i){return N(n,t.assertClause)},195:fv,197:fv,198:function(t,n,i){return N(n,t.objectType)||N(n,t.indexType)},199:function(t,n,i){return N(n,t.readonlyToken)||N(n,t.typeParameter)||N(n,t.nameType)||N(n,t.questionToken)||N(n,t.type)||ue(n,i,t.members)},200:function(t,n,i){return N(n,t.literal)},201:function(t,n,i){return N(n,t.dotDotDotToken)||N(n,t.name)||N(n,t.questionToken)||N(n,t.type)},205:mv,206:mv,208:function(t,n,i){return ue(n,i,t.elements)},209:function(t,n,i){return ue(n,i,t.properties)},210:function(t,n,i){return N(n,t.expression)||N(n,t.questionDotToken)||N(n,t.name)},211:function(t,n,i){return N(n,t.expression)||N(n,t.questionDotToken)||N(n,t.argumentExpression)},212:yv,213:yv,214:function(t,n,i){return N(n,t.tag)||N(n,t.questionDotToken)||ue(n,i,t.typeArguments)||N(n,t.template)},215:function(t,n,i){return N(n,t.type)||N(n,t.expression)},216:function(t,n,i){return N(n,t.expression)},219:function(t,n,i){return N(n,t.expression)},220:function(t,n,i){return N(n,t.expression)},221:function(t,n,i){return N(n,t.expression)},223:function(t,n,i){return N(n,t.operand)},228:function(t,n,i){return N(n,t.asteriskToken)||N(n,t.expression)},222:function(t,n,i){return N(n,t.expression)},224:function(t,n,i){return N(n,t.operand)},225:function(t,n,i){return N(n,t.left)||N(n,t.operatorToken)||N(n,t.right)},233:function(t,n,i){return N(n,t.expression)||N(n,t.type)},234:function(t,n,i){return N(n,t.expression)},237:function(t,n,i){return N(n,t.expression)||N(n,t.type)},235:function(t,n,i){return N(n,t.name)},226:function(t,n,i){return N(n,t.condition)||N(n,t.questionToken)||N(n,t.whenTrue)||N(n,t.colonToken)||N(n,t.whenFalse)},229:function(t,n,i){return N(n,t.expression)},240:hv,267:hv,311:function(t,n,i){return ue(n,i,t.statements)||N(n,t.endOfFileToken)},242:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.declarationList)},260:function(t,n,i){return ue(n,i,t.declarations)},243:function(t,n,i){return N(n,t.expression)},244:function(t,n,i){return N(n,t.expression)||N(n,t.thenStatement)||N(n,t.elseStatement)},245:function(t,n,i){return N(n,t.statement)||N(n,t.expression)},246:function(t,n,i){return N(n,t.expression)||N(n,t.statement)},247:function(t,n,i){return N(n,t.initializer)||N(n,t.condition)||N(n,t.incrementor)||N(n,t.statement)},248:function(t,n,i){return N(n,t.initializer)||N(n,t.expression)||N(n,t.statement)},249:function(t,n,i){return N(n,t.awaitModifier)||N(n,t.initializer)||N(n,t.expression)||N(n,t.statement)},250:gv,251:gv,252:function(t,n,i){return N(n,t.expression)},253:function(t,n,i){return N(n,t.expression)||N(n,t.statement)},254:function(t,n,i){return N(n,t.expression)||N(n,t.caseBlock)},268:function(t,n,i){return ue(n,i,t.clauses)},295:function(t,n,i){return N(n,t.expression)||ue(n,i,t.statements)},296:function(t,n,i){return ue(n,i,t.statements)},255:function(t,n,i){return N(n,t.label)||N(n,t.statement)},256:function(t,n,i){return N(n,t.expression)},257:function(t,n,i){return N(n,t.tryBlock)||N(n,t.catchClause)||N(n,t.finallyBlock)},298:function(t,n,i){return N(n,t.variableDeclaration)||N(n,t.block)},169:function(t,n,i){return N(n,t.expression)},262:bv,230:bv,263:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.name)||ue(n,i,t.typeParameters)||ue(n,i,t.heritageClauses)||ue(n,i,t.members)},264:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.name)||ue(n,i,t.typeParameters)||N(n,t.type)},265:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.name)||ue(n,i,t.members)},305:function(t,n,i){return N(n,t.name)||N(n,t.initializer)},266:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.name)||N(n,t.body)},270:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.name)||N(n,t.moduleReference)},271:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.importClause)||N(n,t.moduleSpecifier)||N(n,t.assertClause)},272:function(t,n,i){return N(n,t.name)||N(n,t.namedBindings)},299:function(t,n,i){return ue(n,i,t.elements)},300:function(t,n,i){return N(n,t.name)||N(n,t.value)},269:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.name)},273:function(t,n,i){return N(n,t.name)},279:function(t,n,i){return N(n,t.name)},274:vv,278:vv,277:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.exportClause)||N(n,t.moduleSpecifier)||N(n,t.assertClause)},275:Tv,280:Tv,276:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.expression)},227:function(t,n,i){return N(n,t.head)||ue(n,i,t.templateSpans)},238:function(t,n,i){return N(n,t.expression)||N(n,t.literal)},202:function(t,n,i){return N(n,t.head)||ue(n,i,t.templateSpans)},203:function(t,n,i){return N(n,t.type)||N(n,t.literal)},166:function(t,n,i){return N(n,t.expression)},297:function(t,n,i){return ue(n,i,t.types)},232:function(t,n,i){return N(n,t.expression)||ue(n,i,t.typeArguments)},282:function(t,n,i){return N(n,t.expression)},281:function(t,n,i){return ue(n,i,t.modifiers)},360:function(t,n,i){return ue(n,i,t.elements)},283:function(t,n,i){return N(n,t.openingElement)||ue(n,i,t.children)||N(n,t.closingElement)},287:function(t,n,i){return N(n,t.openingFragment)||ue(n,i,t.children)||N(n,t.closingFragment)},284:xv,285:xv,291:function(t,n,i){return ue(n,i,t.properties)},290:function(t,n,i){return N(n,t.name)||N(n,t.initializer)},292:function(t,n,i){return N(n,t.expression)},293:function(t,n,i){return N(n,t.dotDotDotToken)||N(n,t.expression)},286:function(t,n,i){return N(n,t.tagName)},294:function(t,n,i){return N(n,t.namespace)||N(n,t.name)},189:Ao,190:Ao,315:Ao,321:Ao,320:Ao,322:Ao,324:Ao,323:function(t,n,i){return ue(n,i,t.parameters)||N(n,t.type)},326:function(t,n,i){return(typeof t.comment=="string"?void 0:ue(n,i,t.comment))||ue(n,i,t.tags)},353:function(t,n,i){return N(n,t.tagName)||N(n,t.name)||(typeof t.comment=="string"?void 0:ue(n,i,t.comment))},316:function(t,n,i){return N(n,t.name)},317:function(t,n,i){return N(n,t.left)||N(n,t.right)},347:Sv,354:Sv,336:function(t,n,i){return N(n,t.tagName)||(typeof t.comment=="string"?void 0:ue(n,i,t.comment))},335:function(t,n,i){return N(n,t.tagName)||N(n,t.class)||(typeof t.comment=="string"?void 0:ue(n,i,t.comment))},334:function(t,n,i){return N(n,t.tagName)||N(n,t.class)||(typeof t.comment=="string"?void 0:ue(n,i,t.comment))},351:function(t,n,i){return N(n,t.tagName)||N(n,t.constraint)||ue(n,i,t.typeParameters)||(typeof t.comment=="string"?void 0:ue(n,i,t.comment))},352:function(t,n,i){return N(n,t.tagName)||(t.typeExpression&&t.typeExpression.kind===315?N(n,t.typeExpression)||N(n,t.fullName)||(typeof t.comment=="string"?void 0:ue(n,i,t.comment)):N(n,t.fullName)||N(n,t.typeExpression)||(typeof t.comment=="string"?void 0:ue(n,i,t.comment)))},344:function(t,n,i){return N(n,t.tagName)||N(n,t.fullName)||N(n,t.typeExpression)||(typeof t.comment=="string"?void 0:ue(n,i,t.comment))},348:Do,350:Do,349:Do,346:Do,356:Do,355:Do,345:Do,329:function(t,n,i){return hn(t.typeParameters,n)||hn(t.parameters,n)||N(n,t.type)},330:th,331:th,332:th,328:function(t,n,i){return hn(t.jsDocPropertyTags,n)},333:qa,338:qa,339:qa,340:qa,341:qa,342:qa,337:qa,343:qa,359:wF},(e=>{var t=as(99,!0),n=20480,i,s,l,d,y;function p(c){return mr++,c}var x={createBaseSourceFileNode:c=>p(new y(c,0,0)),createBaseIdentifierNode:c=>p(new l(c,0,0)),createBasePrivateIdentifierNode:c=>p(new d(c,0,0)),createBaseTokenNode:c=>p(new s(c,0,0)),createBaseNode:c=>p(new i(c,0,0))},h=Vf(11,x),{createNodeArray:D,createNumericLiteral:w,createStringLiteral:g,createLiteralLikeNode:A,createIdentifier:B,createPrivateIdentifier:G,createToken:oe,createArrayLiteralExpression:Q,createObjectLiteralExpression:W,createPropertyAccessExpression:se,createPropertyAccessChain:we,createElementAccessExpression:Ze,createElementAccessChain:Ue,createCallExpression:rt,createCallChain:ct,createNewExpression:Dn,createParenthesizedExpression:sn,createBlock:ei,createVariableStatement:_n,createExpressionStatement:Pn,createIfStatement:$e,createWhileStatement:$t,createForStatement:jn,createForOfStatement:Qt,createVariableDeclaration:fr,createVariableDeclarationList:Bn}=h,dn,Yt,vt,Un,qn,gt,lt,Zt,zn,mt,mr,bt,cn,dt,Qn,ut,Jt=!0,ln=!1;function yr(c,f,v,C,P=!1,U,ne){var _e;if(U=oS(c,U),U===6){let ce=ti(c,f,v,C,P);return convertToJson(ce,(_e=ce.statements[0])==null?void 0:_e.expression,ce.parseDiagnostics,!1,void 0),ce.referencedFiles=Xe,ce.typeReferenceDirectives=Xe,ce.libReferenceDirectives=Xe,ce.amdDependencies=Xe,ce.hasNoDefaultLib=!1,ce.pragmas=mg,ce}Wn(c,f,v,C,U);let pe=Ci(v,P,U,ne||s7);return hr(),pe}e.parseSourceFile=yr;function Mr(c,f){Wn("",c,f,void 0,1),R();let v=Ma(!0),C=m()===1&&!lt.length;return hr(),C?v:void 0}e.parseIsolatedEntityName=Mr;function ti(c,f,v=2,C,P=!1){Wn(c,f,v,C,6),Yt=ut,R();let U=S(),ne,_e;if(m()===1)ne=Bt([],U,U),_e=vn();else{let ve;for(;m()!==1;){let Be;switch(m()){case 23:Be=zp();break;case 112:case 97:case 106:Be=vn();break;case 41:Pe(()=>R()===9&&R()!==59)?Be=wp():Be=Ms();break;case 9:case 11:if(Pe(()=>R()!==59)){Be=Jr();break}default:Be=Ms();break}ve&&Wt(ve)?ve.push(Be):ve?ve=[ve,Be]:(ve=Be,m()!==1&&Fe(K.Unexpected_token))}let Ge=Wt(ve)?F(Q(ve),U):M.checkDefined(ve),je=Pn(Ge);F(je,U),ne=Bt([je],U),_e=oi(1,K.Unexpected_token)}let pe=et(c,2,6,!1,ne,_e,Yt,Nr);P&&Ee(pe),pe.nodeCount=mr,pe.identifierCount=cn,pe.identifiers=bt,pe.parseDiagnostics=za(lt,pe),Zt&&(pe.jsDocDiagnostics=za(Zt,pe));let ce=pe;return hr(),ce}e.parseJsonText=ti;function Wn(c,f,v,C,P){switch(i=xt.getNodeConstructor(),s=xt.getTokenConstructor(),l=xt.getIdentifierConstructor(),d=xt.getPrivateIdentifierConstructor(),y=xt.getSourceFileConstructor(),dn=sr(c),vt=f,Un=v,zn=C,qn=P,gt=B0(P),lt=[],dt=0,bt=new Map,cn=0,mr=0,Yt=0,Jt=!0,qn){case 1:case 2:ut=262144;break;case 6:ut=67371008;break;default:ut=0;break}ln=!1,t.setText(vt),t.setOnError(E),t.setScriptTarget(Un),t.setLanguageVariant(gt)}function hr(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),vt=void 0,Un=void 0,zn=void 0,qn=void 0,gt=void 0,Yt=0,lt=void 0,Zt=void 0,dt=0,bt=void 0,Qn=void 0,Jt=!0}function Ci(c,f,v,C){let P=c7(dn);P&&(ut|=16777216),Yt=ut,R();let U=er(0,fn);M.assert(m()===1);let ne=de(vn()),_e=et(dn,c,v,P,U,ne,Yt,C);return l7(_e,vt),u7(_e,pe),_e.commentDirectives=t.getCommentDirectives(),_e.nodeCount=mr,_e.identifierCount=cn,_e.identifiers=bt,_e.parseDiagnostics=za(lt,_e),Zt&&(_e.jsDocDiagnostics=za(Zt,_e)),f&&Ee(_e),_e;function pe(ce,ve,Ge){lt.push(No(dn,ce,ve,Ge))}}function Ie(c,f){return f?de(c):c}let H=!1;function de(c){M.assert(!c.jsDoc);let f=Ka(c4(c,vt),v=>Od.parseJSDocComment(c,v.pos,v.end-v.pos));return f.length&&(c.jsDoc=f),H&&(H=!1,c.flags|=268435456),c}function be(c){let f=zn,v=cf.createSyntaxCursor(c);zn={currentNode:ve};let C=[],P=lt;lt=[];let U=0,ne=pe(c.statements,0);for(;ne!==-1;){let Ge=c.statements[U],je=c.statements[ne];Mn(C,c.statements,U,ne),U=ce(c.statements,ne);let Be=el(P,On=>On.start>=Ge.pos),Lt=Be>=0?el(P,On=>On.start>=je.pos,Be):-1;Be>=0&&Mn(lt,P,Be,Lt>=0?Lt:void 0),Ct(()=>{let On=ut;for(ut|=32768,t.resetTokenState(je.pos),R();m()!==1;){let ca=t.getTokenFullStart(),li=Ss(0,fn);if(C.push(li),ca===t.getTokenFullStart()&&R(),U>=0){let Ji=c.statements[U];if(li.end===Ji.pos)break;li.end>Ji.pos&&(U=ce(c.statements,U+1))}}ut=On},2),ne=U>=0?pe(c.statements,U):-1}if(U>=0){let Ge=c.statements[U];Mn(C,c.statements,U);let je=el(P,Be=>Be.start>=Ge.pos);je>=0&&Mn(lt,P,je)}return zn=f,h.updateSourceFile(c,He(D(C),c.statements));function _e(Ge){return!(Ge.flags&32768)&&!!(Ge.transformFlags&67108864)}function pe(Ge,je){for(let Be=je;Be118}function Pt(){return m()===80?!0:m()===127&&ii()||m()===135&&Nn()?!1:m()>118}function Y(c,f,v=!0){return m()===c?(v&&R(),!0):(f?Fe(f):Fe(K._0_expected,an(c)),!1)}let Le=Object.keys(tl).filter(c=>c.length>2);function _t(c){if(S8(c)){wt(It(vt,c.template.pos),c.template.end,K.Module_declaration_names_may_only_use_or_quoted_strings);return}let f=Ce(c)?Ot(c):void 0;if(!f||!Ag(f,Un)){Fe(K._0_expected,an(27));return}let v=It(vt,c.pos);switch(f){case"const":case"let":case"var":wt(v,c.end,K.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":en(K.Interface_name_cannot_be_0,K.Interface_must_be_given_a_name,19);return;case"is":wt(v,t.getTokenStart(),K.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":en(K.Namespace_name_cannot_be_0,K.Namespace_must_be_given_a_name,19);return;case"type":en(K.Type_alias_name_cannot_be_0,K.Type_alias_must_be_given_a_name,64);return}let C=Yv(f,Le,P=>P)??Zn(f);if(C){wt(v,c.end,K.Unknown_keyword_or_identifier_Did_you_mean_0,C);return}m()!==0&&wt(v,c.end,K.Unexpected_keyword_or_identifier)}function en(c,f,v){m()===v?Fe(f):Fe(c,t.getTokenValue())}function Zn(c){for(let f of Le)if(c.length>f.length+2&&Jn(c,f))return`${f} ${c.slice(f.length)}`}function lo(c,f,v){if(m()===60&&!t.hasPrecedingLineBreak()){Fe(K.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(m()===21){Fe(K.Cannot_start_a_function_call_in_a_type_annotation),R();return}if(f&&!Ai()){v?Fe(K._0_expected,an(27)):Fe(K.Expected_for_property_initializer);return}if(!uo()){if(v){Fe(K._0_expected,an(27));return}_t(c)}}function Na(c){return m()===c?(me(),!0):(M.assert(ef(c)),Fe(K._0_expected,an(c)),!1)}function vr(c,f,v,C){if(m()===f){R();return}let P=Fe(K._0_expected,an(f));v&&P&&Xc(P,No(dn,C,1,K.The_parser_expected_to_find_a_1_to_match_the_0_token_here,an(c),an(f)))}function Je(c){return m()===c?(R(),!0):!1}function at(c){if(m()===c)return vn()}function pu(c){if(m()===c)return fu()}function oi(c,f,v){return at(c)||Hn(c,!1,f||K._0_expected,v||an(c))}function du(c){let f=pu(c);return f||(M.assert(ef(c)),Hn(c,!1,K._0_expected,an(c)))}function vn(){let c=S(),f=m();return R(),F(oe(f),c)}function fu(){let c=S(),f=m();return me(),F(oe(f),c)}function Ai(){return m()===27?!0:m()===20||m()===1||t.hasPrecedingLineBreak()}function uo(){return Ai()?(m()===27&&R(),!0):!1}function In(){return uo()||Y(27)}function Bt(c,f,v,C){let P=D(c,C);return Va(P,f,v??t.getTokenFullStart()),P}function F(c,f,v){return Va(c,f,v??t.getTokenFullStart()),ut&&(c.flags|=ut),ln&&(ln=!1,c.flags|=131072),c}function Hn(c,f,v,...C){f?ki(t.getTokenFullStart(),0,v,...C):v&&Fe(v,...C);let P=S(),U=c===80?B("",void 0):fl(c)?h.createTemplateLiteralLikeNode(c,"","",void 0):c===9?w("",void 0):c===11?g("",void 0):c===281?h.createMissingDeclaration():oe(c);return F(U,P)}function Di(c){let f=bt.get(c);return f===void 0&&bt.set(c,f=c),f}function ia(c,f,v){if(c){cn++;let _e=S(),pe=m(),ce=Di(t.getTokenValue()),ve=t.hasExtendedUnicodeEscape();return ie(),F(B(ce,pe,ve),_e)}if(m()===81)return Fe(v||K.Private_identifiers_are_not_allowed_outside_class_bodies),ia(!0);if(m()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return ia(!0);cn++;let C=m()===1,P=t.isReservedWord(),U=t.getTokenText(),ne=P?K.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:K.Identifier_expected;return Hn(80,C,f||ne,U)}function vs(c){return ia(Yn(),void 0,c)}function Ut(c,f){return ia(Pt(),c,f)}function zt(c){return ia(At(m()),c)}function aa(){return At(m())||m()===11||m()===9}function mu(){return At(m())||m()===11}function b1(c){if(m()===11||m()===9){let f=Jr();return f.text=Di(f.text),f}return c&&m()===23?v1():m()===81?Ts():zt()}function oa(){return b1(!0)}function v1(){let c=S();Y(23);let f=Re(Mt);return Y(24),F(h.createComputedPropertyName(f),c)}function Ts(){let c=S(),f=G(Di(t.getTokenValue()));return R(),F(f,c)}function Ia(c){return m()===c&&jt(yu)}function H_(){return R(),t.hasPrecedingLineBreak()?!1:si()}function yu(){switch(m()){case 87:return R()===94;case 95:return R(),m()===90?Pe(gu):m()===156?Pe(T1):po();case 90:return gu();case 126:case 139:case 153:return R(),si();default:return H_()}}function po(){return m()===60||m()!==42&&m()!==130&&m()!==19&&si()}function T1(){return R(),po()}function hu(){return yi(m())&&jt(yu)}function si(){return m()===23||m()===19||m()===42||m()===26||aa()}function gu(){return R(),m()===86||m()===100||m()===120||m()===60||m()===128&&Pe(nd)||m()===134&&Pe(rd)}function Oa(c,f){if($_(c))return!0;switch(c){case 0:case 1:case 3:return!(m()===27&&f)&&id();case 2:return m()===84||m()===90;case 4:return Pe(Wu);case 5:return Pe(xy)||m()===27&&!f;case 6:return m()===23||aa();case 12:switch(m()){case 23:case 42:case 26:case 25:return!0;default:return aa()}case 18:return aa();case 9:return m()===23||m()===26||aa();case 24:return mu();case 7:return m()===19?Pe(bu):f?Pt()&&!G_():vc()&&!G_();case 8:return Ic();case 10:return m()===28||m()===26||Ic();case 19:return m()===103||m()===87||Pt();case 15:switch(m()){case 28:case 25:return!0}case 11:return m()===26||Oi();case 16:return As(!1);case 17:return As(!0);case 20:case 21:return m()===28||Ra();case 22:return Fs();case 23:return At(m());case 13:return At(m())||m()===19;case 14:return!0;case 25:return!0;case 26:return M.fail("ParsingContext.Count used as a context");default:M.assertNever(c,"Non-exhaustive case in 'isListElement'.")}}function bu(){if(M.assert(m()===19),R()===20){let c=R();return c===28||c===19||c===96||c===119}return!0}function xs(){return R(),Pt()}function K_(){return R(),At(m())}function x1(){return R(),bT(m())}function G_(){return m()===119||m()===96?Pe(vu):!1}function vu(){return R(),Oi()}function Tu(){return R(),Ra()}function Pi(c){if(m()===1)return!0;switch(c){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return m()===20;case 3:return m()===20||m()===84||m()===90;case 7:return m()===19||m()===96||m()===119;case 8:return S1();case 19:return m()===32||m()===21||m()===19||m()===96||m()===119;case 11:return m()===22||m()===27;case 15:case 21:case 10:return m()===24;case 17:case 16:case 18:return m()===22||m()===24;case 20:return m()!==28;case 22:return m()===19||m()===20;case 13:return m()===32||m()===44;case 14:return m()===30&&Pe(My);default:return!1}}function S1(){return!!(Ai()||vp(m())||m()===39)}function X_(){M.assert(dt,"Missing parsing context");for(let c=0;c<26;c++)if(dt&1<=0)}function C1(c){return c===6?K.An_enum_member_name_must_be_followed_by_a_or:void 0}function Tr(){let c=Bt([],S());return c.isMissingList=!0,c}function k1(c){return!!c.isMissingList}function Ni(c,f,v,C){if(Y(v)){let P=Tn(c,f);return Y(C),P}return Tr()}function Ma(c,f){let v=S(),C=c?zt(f):Ut(f);for(;Je(25)&&m()!==30;)C=F(h.createQualifiedName(C,ws(c,!1)),v);return C}function nc(c,f){return F(h.createQualifiedName(c,f),c.pos)}function ws(c,f){if(t.hasPrecedingLineBreak()&&At(m())&&Pe(Pc))return Hn(80,!0,K.Identifier_expected);if(m()===81){let v=Ts();return f?v:Hn(80,!0,K.Identifier_expected)}return c?zt():Ut()}function rc(c){let f=S(),v=[],C;do C=D1(c),v.push(C);while(C.literal.kind===17);return Bt(v,f)}function ku(c){let f=S();return F(h.createTemplateExpression(Du(c),rc(c)),f)}function ic(){let c=S();return F(h.createTemplateLiteralType(Du(!1),Au()),c)}function Au(){let c=S(),f=[],v;do v=A1(),f.push(v);while(v.literal.kind===17);return Bt(f,c)}function A1(){let c=S();return F(h.createTemplateLiteralTypeSpan(yt(),ac(!1)),c)}function ac(c){return m()===20?(ot(c),Es()):oi(18,K._0_expected,an(20))}function D1(c){let f=S();return F(h.createTemplateSpan(Re(Mt),ac(c)),f)}function Jr(){return fo(m())}function Du(c){!c&&t.getTokenFlags()&26656&&ot(!1);let f=fo(m());return M.assert(f.kind===16,"Template head has wrong token kind"),f}function Es(){let c=fo(m());return M.assert(c.kind===17||c.kind===18,"Template fragment has wrong token kind"),c}function Pu(c){let f=c===15||c===18,v=t.getTokenText();return v.substring(1,v.length-(t.isUnterminated()?0:f?1:2))}function fo(c){let f=S(),v=fl(c)?h.createTemplateLiteralLikeNode(c,t.getTokenValue(),Pu(c),t.getTokenFlags()&7176):c===9?w(t.getTokenValue(),t.getNumericLiteralFlags()):c===11?g(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):Lg(c)?A(c,t.getTokenValue()):M.fail();return t.hasExtendedUnicodeEscape()&&(v.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(v.isUnterminated=!0),R(),F(v,f)}function oc(){return Ma(!0,K.Type_expected)}function La(){if(!t.hasPrecedingLineBreak()&&st()===30)return Ni(20,yt,30,32)}function Cs(){let c=S();return F(h.createTypeReferenceNode(oc(),La()),c)}function sc(c){switch(c.kind){case 182:return Bi(c.typeName);case 183:case 184:{let{parameters:f,type:v}=c;return k1(f)||sc(v)}case 195:return sc(c.type);default:return!1}}function P1(c){return R(),F(h.createTypePredicateNode(void 0,c,yt()),c.pos)}function Nu(){let c=S();return R(),F(h.createThisTypeNode(),c)}function Iu(){let c=S();return R(),F(h.createJSDocAllType(),c)}function N1(){let c=S();return R(),F(h.createJSDocNonNullableType(yc(),!1),c)}function Ou(){let c=S();return R(),m()===28||m()===20||m()===22||m()===32||m()===64||m()===52?F(h.createJSDocUnknownType(),c):F(h.createJSDocNullableType(yt(),!1),c)}function I1(){let c=S(),f=J();if(Pe(kd)){R();let v=_i(36),C=xr(59,!1);return Ie(F(h.createJSDocFunctionType(v,C),c),f)}return F(h.createTypeReferenceNode(zt(),void 0),c)}function Mu(){let c=S(),f;return(m()===110||m()===105)&&(f=zt(),Y(59)),F(h.createParameterDeclaration(void 0,void 0,f,void 0,ks(),void 0),c)}function ks(){t.setInJSDocType(!0);let c=S();if(Je(144)){let C=h.createJSDocNamepathType(void 0);e:for(;;)switch(m()){case 20:case 1:case 28:case 5:break e;default:me()}return t.setInJSDocType(!1),F(C,c)}let f=Je(26),v=bc();return t.setInJSDocType(!1),f&&(v=F(h.createJSDocVariadicType(v),c)),m()===64?(R(),F(h.createJSDocOptionalType(v),c)):v}function O1(){let c=S();Y(114);let f=Ma(!0),v=t.hasPrecedingLineBreak()?void 0:Rs();return F(h.createTypeQueryNode(f,v),c)}function Lu(){let c=S(),f=Fr(!1,!0),v=Ut(),C,P;Je(96)&&(Ra()||!Oi()?C=yt():P=Ec());let U=Je(64)?yt():void 0,ne=h.createTypeParameterDeclaration(f,v,C,U);return ne.expression=P,F(ne,c)}function tr(){if(m()===30)return Ni(19,Lu,30,32)}function As(c){return m()===26||Ic()||yi(m())||m()===60||Ra(!c)}function Ju(c){let f=Ba(K.Private_identifiers_cannot_be_used_as_parameters);return Em(f)===0&&!ft(c)&&yi(m())&&R(),f}function Ru(){return Yn()||m()===23||m()===19}function _c(c){return cc(c)}function Fu(c){return cc(c,!1)}function cc(c,f=!0){let v=S(),C=J(),P=c?ni(()=>Fr(!0)):ri(()=>Fr(!0));if(m()===110){let pe=h.createParameterDeclaration(P,void 0,ia(!0),void 0,Ii(),void 0),ce=f_(P);return ce&&j(ce,K.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Ie(F(pe,v),C)}let U=Jt;Jt=!1;let ne=at(26);if(!f&&!Ru())return;let _e=Ie(F(h.createParameterDeclaration(P,ne,Ju(P),at(58),Ii(),Mi()),v),C);return Jt=U,_e}function xr(c,f){if(ju(c,f))return Nt(bc)}function ju(c,f){return c===39?(Y(c),!0):Je(59)?!0:f&&m()===39?(Fe(K._0_expected,an(59)),R(),!0):!1}function Ds(c,f){let v=ii(),C=Nn();Z(!!(c&1)),Te(!!(c&2));let P=c&32?Tn(17,Mu):Tn(16,()=>f?_c(C):Fu(C));return Z(v),Te(C),P}function _i(c){if(!Y(21))return Tr();let f=Ds(c,!0);return Y(22),f}function mo(){Je(28)||In()}function Bu(c){let f=S(),v=J();c===179&&Y(105);let C=tr(),P=_i(4),U=xr(59,!0);mo();let ne=c===178?h.createCallSignature(C,P,U):h.createConstructSignature(C,P,U);return Ie(F(ne,f),v)}function Uu(){return m()===23&&Pe(Ja)}function Ja(){if(R(),m()===26||m()===24)return!0;if(yi(m())){if(R(),Pt())return!0}else if(Pt())R();else return!1;return m()===59||m()===28?!0:m()!==58?!1:(R(),m()===59||m()===28||m()===24)}function qu(c,f,v){let C=Ni(16,()=>_c(!1),23,24),P=Ii();mo();let U=h.createIndexSignature(v,C,P);return Ie(F(U,c),f)}function zu(c,f,v){let C=oa(),P=at(58),U;if(m()===21||m()===30){let ne=tr(),_e=_i(4),pe=xr(59,!0);U=h.createMethodSignature(v,C,P,ne,_e,pe)}else{let ne=Ii();U=h.createPropertySignature(v,C,P,ne),m()===64&&(U.initializer=Mi())}return mo(),Ie(F(U,c),f)}function Wu(){if(m()===21||m()===30||m()===139||m()===153)return!0;let c=!1;for(;yi(m());)c=!0,R();return m()===23?!0:(aa()&&(c=!0,R()),c?m()===21||m()===30||m()===58||m()===59||m()===28||Ai():!1)}function lc(){if(m()===21||m()===30)return Bu(178);if(m()===105&&Pe(yo))return Bu(179);let c=S(),f=J(),v=Fr(!1);return Ia(139)?Li(c,f,v,176,4):Ia(153)?Li(c,f,v,177,4):Uu()?qu(c,f,v):zu(c,f,v)}function yo(){return R(),m()===21||m()===30}function M1(){return R()===25}function uc(){switch(R()){case 21:case 30:case 25:return!0}return!1}function L1(){let c=S();return F(h.createTypeLiteralNode(pc()),c)}function pc(){let c;return Y(19)?(c=er(4,lc),Y(20)):c=Tr(),c}function J1(){return R(),m()===40||m()===41?R()===148:(m()===148&&R(),m()===23&&xs()&&R()===103)}function Vu(){let c=S(),f=zt();Y(103);let v=yt();return F(h.createTypeParameterDeclaration(void 0,f,v,void 0),c)}function R1(){let c=S();Y(19);let f;(m()===148||m()===40||m()===41)&&(f=vn(),f.kind!==148&&Y(148)),Y(23);let v=Vu(),C=Je(130)?yt():void 0;Y(24);let P;(m()===58||m()===40||m()===41)&&(P=vn(),P.kind!==58&&Y(58));let U=Ii();In();let ne=er(4,lc);return Y(20),F(h.createMappedTypeNode(f,v,C,P,U,ne),c)}function dc(){let c=S();if(Je(26))return F(h.createRestTypeNode(yt()),c);let f=yt();if(J8(f)&&f.pos===f.type.pos){let v=h.createOptionalTypeNode(f.type);return He(v,f),v.flags=f.flags,v}return f}function Hu(){return R()===59||m()===58&&R()===59}function Ku(){return m()===26?At(R())&&Hu():At(m())&&Hu()}function F1(){if(Pe(Ku)){let c=S(),f=J(),v=at(26),C=zt(),P=at(58);Y(59);let U=dc(),ne=h.createNamedTupleMember(v,C,P,U);return Ie(F(ne,c),f)}return dc()}function Gu(){let c=S();return F(h.createTupleTypeNode(Ni(21,F1,23,24)),c)}function j1(){let c=S();Y(21);let f=yt();return Y(22),F(h.createParenthesizedType(f),c)}function Xu(){let c;if(m()===128){let f=S();R();let v=F(oe(128),f);c=Bt([v],f)}return c}function $u(){let c=S(),f=J(),v=Xu(),C=Je(105);M.assert(!v||C,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let P=tr(),U=_i(4),ne=xr(39,!1),_e=C?h.createConstructorTypeNode(v,P,U,ne):h.createFunctionTypeNode(P,U,ne);return Ie(F(_e,c),f)}function fc(){let c=vn();return m()===25?void 0:c}function Qu(c){let f=S();c&&R();let v=m()===112||m()===97||m()===106?vn():fo(m());return c&&(v=F(h.createPrefixUnaryExpression(41,v),f)),F(h.createLiteralTypeNode(v),f)}function Yu(){return R(),m()===102}function B1(){let c=S(),f=t.getTokenStart();Y(19);let v=t.hasPrecedingLineBreak();Y(132),Y(59);let C=jc(!0);if(!Y(20)){let P=Ti(lt);P&&P.code===K._0_expected.code&&Xc(P,No(dn,f,1,K.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return F(h.createImportTypeAssertionContainer(C,v),c)}function mc(){Yt|=2097152;let c=S(),f=Je(114);Y(102),Y(21);let v=yt(),C;Je(28)&&(C=B1()),Y(22);let P=Je(25)?oc():void 0,U=La();return F(h.createImportTypeNode(v,C,P,U,f),c)}function Zu(){return R(),m()===9||m()===10}function yc(){switch(m()){case 133:case 159:case 154:case 150:case 162:case 155:case 136:case 157:case 146:case 151:return jt(fc)||Cs();case 67:t.reScanAsteriskEqualsToken();case 42:return Iu();case 61:t.reScanQuestionToken();case 58:return Ou();case 100:return I1();case 54:return N1();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return Qu();case 41:return Pe(Zu)?Qu(!0):Cs();case 116:return vn();case 110:{let c=Nu();return m()===142&&!t.hasPrecedingLineBreak()?P1(c):c}case 114:return Pe(Yu)?mc():O1();case 19:return Pe(J1)?R1():L1();case 23:return Gu();case 21:return j1();case 102:return mc();case 131:return Pe(Pc)?cp():Cs();case 16:return ic();default:return Cs()}}function Ra(c){switch(m()){case 133:case 159:case 154:case 150:case 162:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!c;case 41:return!c&&Pe(Zu);case 21:return!c&&Pe(ep);default:return Pt()}}function ep(){return R(),m()===22||As(!1)||Ra()}function tp(){let c=S(),f=yc();for(;!t.hasPrecedingLineBreak();)switch(m()){case 54:R(),f=F(h.createJSDocNonNullableType(f,!0),c);break;case 58:if(Pe(Tu))return f;R(),f=F(h.createJSDocNullableType(f,!0),c);break;case 23:if(Y(23),Ra()){let v=yt();Y(24),f=F(h.createIndexedAccessTypeNode(f,v),c)}else Y(24),f=F(h.createArrayTypeNode(f),c);break;default:return f}return f}function np(c){let f=S();return Y(c),F(h.createTypeOperatorNode(c,ip()),f)}function U1(){if(Je(96)){let c=Vn(yt);if(ra()||m()!==58)return c}}function rp(){let c=S(),f=Ut(),v=jt(U1),C=h.createTypeParameterDeclaration(void 0,f,v);return F(C,c)}function q1(){let c=S();return Y(140),F(h.createInferTypeNode(rp()),c)}function ip(){let c=m();switch(c){case 143:case 158:case 148:return np(c);case 140:return q1()}return Nt(tp)}function Ps(c){if(gc()){let f=$u(),v;return Gl(f)?v=c?K.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:K.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:v=c?K.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:K.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,j(f,v),f}}function ap(c,f,v){let C=S(),P=c===52,U=Je(c),ne=U&&Ps(P)||f();if(m()===c||U){let _e=[ne];for(;Je(c);)_e.push(Ps(P)||f());ne=F(v(Bt(_e,C)),C)}return ne}function hc(){return ap(51,ip,h.createIntersectionTypeNode)}function z1(){return ap(52,hc,h.createUnionTypeNode)}function op(){return R(),m()===105}function gc(){return m()===30||m()===21&&Pe(sp)?!0:m()===105||m()===128&&Pe(op)}function W1(){if(yi(m())&&Fr(!1),Pt()||m()===110)return R(),!0;if(m()===23||m()===19){let c=lt.length;return Ba(),c===lt.length}return!1}function sp(){return R(),!!(m()===22||m()===26||W1()&&(m()===59||m()===28||m()===58||m()===64||m()===22&&(R(),m()===39)))}function bc(){let c=S(),f=Pt()&&jt(_p),v=yt();return f?F(h.createTypePredicateNode(void 0,f,v),c):v}function _p(){let c=Ut();if(m()===142&&!t.hasPrecedingLineBreak())return R(),c}function cp(){let c=S(),f=oi(131),v=m()===110?Nu():Ut(),C=Je(142)?yt():void 0;return F(h.createTypePredicateNode(f,v,C),c)}function yt(){if(ut&40960)return Oe(40960,yt);if(gc())return $u();let c=S(),f=z1();if(!ra()&&!t.hasPrecedingLineBreak()&&Je(96)){let v=Vn(yt);Y(58);let C=Nt(yt);Y(59);let P=Nt(yt);return F(h.createConditionalTypeNode(f,v,C,P),c)}return f}function Ii(){return Je(59)?yt():void 0}function vc(){switch(m()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return Pe(uc);default:return Pt()}}function Oi(){if(vc())return!0;switch(m()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return Tp()?!0:Pt()}}function lp(){return m()!==19&&m()!==100&&m()!==86&&m()!==60&&Oi()}function Mt(){let c=Lr();c&&ae(!1);let f=S(),v=un(!0),C;for(;C=at(28);)v=Sc(v,C,un(!0),f);return c&&ae(!0),v}function Mi(){return Je(64)?un(!0):void 0}function un(c){if(up())return pp();let f=H1(c)||hp(c);if(f)return f;let v=S(),C=ho(0);return C.kind===80&&m()===39?dp(v,C,c,void 0):jo(C)&&w_(ke())?Sc(C,vn(),un(c),v):K1(C,v,c)}function up(){return m()===127?ii()?!0:Pe(Nc):!1}function V1(){return R(),!t.hasPrecedingLineBreak()&&Pt()}function pp(){let c=S();return R(),!t.hasPrecedingLineBreak()&&(m()===42||Oi())?F(h.createYieldExpression(at(42),un(!0)),c):F(h.createYieldExpression(void 0,void 0),c)}function dp(c,f,v,C){M.assert(m()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let P=h.createParameterDeclaration(void 0,void 0,f,void 0,void 0,void 0);F(P,f.pos);let U=Bt([P],P.pos,P.end),ne=oi(39),_e=Tc(!!C,v),pe=h.createArrowFunction(C,void 0,U,void 0,ne,_e);return de(F(pe,c))}function H1(c){let f=fp();if(f!==0)return f===1?bp(!0,!0):jt(()=>yp(c))}function fp(){return m()===21||m()===30||m()===134?Pe(mp):m()===39?1:0}function mp(){if(m()===134&&(R(),t.hasPrecedingLineBreak()||m()!==21&&m()!==30))return 0;let c=m(),f=R();if(c===21){if(f===22)switch(R()){case 39:case 59:case 19:return 1;default:return 0}if(f===23||f===19)return 2;if(f===26)return 1;if(yi(f)&&f!==134&&Pe(xs))return R()===130?0:1;if(!Pt()&&f!==110)return 0;switch(R()){case 59:return 1;case 58:return R(),m()===59||m()===28||m()===64||m()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return M.assert(c===30),!Pt()&&m()!==87?0:gt===1?Pe(()=>{Je(87);let C=R();if(C===96)switch(R()){case 64:case 32:case 44:return!1;default:return!0}else if(C===28||C===64)return!0;return!1})?1:0:2}function yp(c){let f=t.getTokenStart();if(Qn!=null&&Qn.has(f))return;let v=bp(!1,c);return v||(Qn||(Qn=new Set)).add(f),v}function hp(c){if(m()===134&&Pe(gp)===1){let f=S(),v=Rc(),C=ho(0);return dp(f,C,c,v)}}function gp(){if(m()===134){if(R(),t.hasPrecedingLineBreak()||m()===39)return 0;let c=ho(0);if(!t.hasPrecedingLineBreak()&&c.kind===80&&m()===39)return 1}return 0}function bp(c,f){let v=S(),C=J(),P=Rc(),U=ft(P,Qc)?2:0,ne=tr(),_e;if(Y(21)){if(c)_e=Ds(U,c);else{let ca=Ds(U,c);if(!ca)return;_e=ca}if(!Y(22)&&!c)return}else{if(!c)return;_e=Tr()}let pe=m()===59,ce=xr(59,!1);if(ce&&!c&&sc(ce))return;let ve=ce;for(;(ve==null?void 0:ve.kind)===195;)ve=ve.type;let Ge=ve&&e1(ve);if(!c&&m()!==39&&(Ge||m()!==19))return;let je=m(),Be=oi(39),Lt=je===39||je===19?Tc(ft(P,Qc),f):Ut();if(!f&&pe&&m()!==59)return;let On=h.createArrowFunction(P,ne,_e,ce,Be,Lt);return Ie(F(On,v),C)}function Tc(c,f){if(m()===19)return Ls(c?2:0);if(m()!==27&&m()!==100&&m()!==86&&id()&&!lp())return Ls(16|(c?2:0));let v=Jt;Jt=!1;let C=c?ni(()=>un(f)):ri(()=>un(f));return Jt=v,C}function K1(c,f,v){let C=at(58);if(!C)return c;let P;return F(h.createConditionalExpression(c,C,Oe(n,()=>un(!1)),P=oi(59),yl(P)?un(v):Hn(80,!1,K._0_expected,an(59))),f)}function ho(c){let f=S(),v=Ec();return xc(c,v,f)}function vp(c){return c===103||c===164}function xc(c,f,v){for(;;){ke();let C=il(m());if(!(m()===43?C>=c:C>c)||m()===103&&ai())break;if(m()===130||m()===152){if(t.hasPrecedingLineBreak())break;{let U=m();R(),f=U===152?xp(f,yt()):Sp(f,yt())}}else f=Sc(f,vn(),ho(C),v)}return f}function Tp(){return ai()&&m()===103?!1:il(m())>0}function xp(c,f){return F(h.createSatisfiesExpression(c,f),c.pos)}function Sc(c,f,v,C){return F(h.createBinaryExpression(c,f,v),C)}function Sp(c,f){return F(h.createAsExpression(c,f),c.pos)}function wp(){let c=S();return F(h.createPrefixUnaryExpression(m(),he(ci)),c)}function Ep(){let c=S();return F(h.createDeleteExpression(he(ci)),c)}function G1(){let c=S();return F(h.createTypeOfExpression(he(ci)),c)}function Cp(){let c=S();return F(h.createVoidExpression(he(ci)),c)}function X1(){return m()===135?Nn()?!0:Pe(Nc):!1}function wc(){let c=S();return F(h.createAwaitExpression(he(ci)),c)}function Ec(){if(kp()){let v=S(),C=Ap();return m()===43?xc(il(m()),C,v):C}let c=m(),f=ci();if(m()===43){let v=It(vt,f.pos),{end:C}=f;f.kind===215?wt(v,C,K.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(M.assert(ef(c)),wt(v,C,K.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,an(c)))}return f}function ci(){switch(m()){case 40:case 41:case 55:case 54:return wp();case 91:return Ep();case 114:return G1();case 116:return Cp();case 30:return gt===1?go(!0,void 0,void 0,!0):Rp();case 135:if(X1())return wc();default:return Ap()}}function kp(){switch(m()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(gt!==1)return!1;default:return!0}}function Ap(){if(m()===46||m()===47){let f=S();return F(h.createPrefixUnaryExpression(m(),he(Fa)),f)}else if(gt===1&&m()===30&&Pe(x1))return go(!0);let c=Fa();if(M.assert(jo(c)),(m()===46||m()===47)&&!t.hasPrecedingLineBreak()){let f=m();return R(),F(h.createPostfixUnaryExpression(c,f),c.pos)}return c}function Fa(){let c=S(),f;return m()===102?Pe(yo)?(Yt|=2097152,f=vn()):Pe(M1)?(R(),R(),f=F(h.createMetaProperty(102,zt()),c),Yt|=4194304):f=Dp():f=m()===108?Cc():Dp(),Ac(c,f)}function Dp(){let c=S(),f=Dc();return Is(c,f,!0)}function Cc(){let c=S(),f=vn();if(m()===30){let v=S(),C=jt(Os);C!==void 0&&(wt(v,S(),K.super_may_not_use_type_arguments),vo()||(f=h.createExpressionWithTypeArguments(f,C)))}return m()===21||m()===25||m()===23?f:(oi(25,K.super_must_be_followed_by_an_argument_list_or_member_access),F(se(f,ws(!0,!0)),c))}function go(c,f,v,C=!1){let P=S(),U=Ip(c),ne;if(U.kind===285){let _e=Np(U),pe,ce=_e[_e.length-1];if((ce==null?void 0:ce.kind)===283&&!gi(ce.openingElement.tagName,ce.closingElement.tagName)&&gi(U.tagName,ce.closingElement.tagName)){let ve=ce.children.end,Ge=F(h.createJsxElement(ce.openingElement,ce.children,F(h.createJsxClosingElement(F(B(""),ve,ve)),ve,ve)),ce.openingElement.pos,ve);_e=Bt([..._e.slice(0,_e.length-1),Ge],_e.pos,ve),pe=ce.closingElement}else pe=Jp(U,c),gi(U.tagName,pe.tagName)||(v&&Ro(v)&&gi(pe.tagName,v.tagName)?j(U.tagName,K.JSX_element_0_has_no_corresponding_closing_tag,Ys(vt,U.tagName)):j(pe.tagName,K.Expected_corresponding_JSX_closing_tag_for_0,Ys(vt,U.tagName)));ne=F(h.createJsxElement(U,_e,pe),P)}else U.kind===288?ne=F(h.createJsxFragment(U,Np(U),ty(c)),P):(M.assert(U.kind===284),ne=U);if(!C&&c&&m()===30){let _e=typeof f>"u"?ne.pos:f,pe=jt(()=>go(!0,_e));if(pe){let ce=Hn(28,!1);return zf(ce,pe.pos,0),wt(It(vt,_e),pe.end,K.JSX_expressions_must_have_one_parent_element),F(h.createBinaryExpression(ne,ce,pe),P)}}return ne}function $1(){let c=S(),f=h.createJsxText(t.getTokenValue(),mt===13);return mt=t.scanJsxToken(),F(f,c)}function Pp(c,f){switch(f){case 1:if(Nb(c))j(c,K.JSX_fragment_has_no_corresponding_closing_tag);else{let v=c.tagName,C=Math.min(It(vt,v.pos),v.end);wt(C,v.end,K.JSX_element_0_has_no_corresponding_closing_tag,Ys(vt,c.tagName))}return;case 31:case 7:return;case 12:case 13:return $1();case 19:return Op(!1);case 30:return go(!1,void 0,c);default:return M.assertNever(f)}}function Np(c){let f=[],v=S(),C=dt;for(dt|=16384;;){let P=Pp(c,mt=t.reScanJsxToken());if(!P||(f.push(P),Ro(c)&&(P==null?void 0:P.kind)===283&&!gi(P.openingElement.tagName,P.closingElement.tagName)&&gi(c.tagName,P.closingElement.tagName)))break}return dt=C,Bt(f,v)}function Q1(){let c=S();return F(h.createJsxAttributes(er(13,Mp)),c)}function Ip(c){let f=S();if(Y(30),m()===32)return Et(),F(h.createJsxOpeningFragment(),f);let v=Ns(),C=ut&262144?void 0:Rs(),P=Q1(),U;return m()===32?(Et(),U=h.createJsxOpeningElement(v,C,P)):(Y(44),Y(32,void 0,!1)&&(c?R():Et()),U=h.createJsxSelfClosingElement(v,C,P)),F(U,f)}function Ns(){let c=S(),f=Y1();if(J_(f))return f;let v=f;for(;Je(25);)v=F(se(v,ws(!0,!1)),c);return v}function Y1(){let c=S();Ft();let f=m()===110,v=zt();return Je(59)?(Ft(),F(h.createJsxNamespacedName(v,zt()),c)):f?F(h.createToken(110),c):v}function Op(c){let f=S();if(!Y(19))return;let v,C;return m()!==20&&(v=at(26),C=Mt()),c?Y(20):Y(20,void 0,!1)&&Et(),F(h.createJsxExpression(v,C),f)}function Mp(){if(m()===19)return ey();let c=S();return F(h.createJsxAttribute(Lp(),Z1()),c)}function Z1(){if(m()===64){if(bn()===11)return Jr();if(m()===19)return Op(!0);if(m()===30)return go(!0);Fe(K.or_JSX_element_expected)}}function Lp(){let c=S();Ft();let f=zt();return Je(59)?(Ft(),F(h.createJsxNamespacedName(f,zt()),c)):f}function ey(){let c=S();Y(19),Y(26);let f=Mt();return Y(20),F(h.createJsxSpreadAttribute(f),c)}function Jp(c,f){let v=S();Y(31);let C=Ns();return Y(32,void 0,!1)&&(f||!gi(c.tagName,C)?R():Et()),F(h.createJsxClosingElement(C),v)}function ty(c){let f=S();return Y(31),Y(32,K.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(c?R():Et()),F(h.createJsxJsxClosingFragment(),f)}function Rp(){M.assert(gt!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let c=S();Y(30);let f=yt();Y(32);let v=ci();return F(h.createTypeAssertion(f,v),c)}function ny(){return R(),At(m())||m()===23||vo()}function Sr(){return m()===29&&Pe(ny)}function Rr(c){if(c.flags&32)return!0;if(qo(c)){let f=c.expression;for(;qo(f)&&!(f.flags&32);)f=f.expression;if(f.flags&32){for(;qo(c);)c.flags|=32,c=c.expression;return!0}}return!1}function bo(c,f,v){let C=ws(!0,!0),P=v||Rr(f),U=P?we(f,v,C):se(f,C);if(P&&Ln(U.name)&&j(U.name,K.An_optional_chain_cannot_contain_private_identifiers),Tb(f)&&f.typeArguments){let ne=f.typeArguments.pos-1,_e=It(vt,f.typeArguments.end)+1;wt(ne,_e,K.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return F(U,c)}function Fp(c,f,v){let C;if(m()===24)C=Hn(80,!0,K.An_element_access_expression_should_take_an_argument);else{let U=Re(Mt);Ki(U)&&(U.text=Di(U.text)),C=U}Y(24);let P=v||Rr(f)?Ue(f,v,C):Ze(f,C);return F(P,c)}function Is(c,f,v){for(;;){let C,P=!1;if(v&&Sr()?(C=oi(29),P=At(m())):P=Je(25),P){f=bo(c,f,C);continue}if((C||!Lr())&&Je(23)){f=Fp(c,f,C);continue}if(vo()){f=!C&&f.kind===232?kc(c,f.expression,C,f.typeArguments):kc(c,f,C,void 0);continue}if(!C){if(m()===54&&!t.hasPrecedingLineBreak()){R(),f=F(h.createNonNullExpression(f),c);continue}let U=jt(Os);if(U){f=F(h.createExpressionWithTypeArguments(f,U),c);continue}}return f}}function vo(){return m()===15||m()===16}function kc(c,f,v,C){let P=h.createTaggedTemplateExpression(f,C,m()===15?(ot(!0),Jr()):ku(!0));return(v||f.flags&32)&&(P.flags|=32),P.questionDotToken=v,F(P,c)}function Ac(c,f){for(;;){f=Is(c,f,!0);let v,C=at(29);if(C&&(v=jt(Os),vo())){f=kc(c,f,C,v);continue}if(v||m()===21){!C&&f.kind===232&&(v=f.typeArguments,f=f.expression);let P=jp(),U=C||Rr(f)?ct(f,C,v,P):rt(f,v,P);f=F(U,c);continue}if(C){let P=Hn(80,!1,K.Identifier_expected);f=F(we(f,C,P),c)}break}return f}function jp(){Y(21);let c=Tn(11,qp);return Y(22),c}function Os(){if(ut&262144||st()!==30)return;R();let c=Tn(20,yt);if(ke()===32)return R(),c&&ry()?c:void 0}function ry(){switch(m()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||Tp()||!Oi()}function Dc(){switch(m()){case 15:t.getTokenFlags()&26656&&ot(!1);case 9:case 10:case 11:return Jr();case 110:case 108:case 106:case 112:case 97:return vn();case 21:return iy();case 23:return zp();case 19:return Ms();case 134:if(!Pe(rd))break;return Vp();case 60:return Cy();case 86:return hd();case 100:return Vp();case 105:return ay();case 44:case 69:if(De()===14)return Jr();break;case 16:return ku(!1);case 81:return Ts()}return Ut(K.Expression_expected)}function iy(){let c=S(),f=J();Y(21);let v=Re(Mt);return Y(22),Ie(F(sn(v),c),f)}function Bp(){let c=S();Y(26);let f=un(!0);return F(h.createSpreadElement(f),c)}function Up(){return m()===26?Bp():m()===28?F(h.createOmittedExpression(),S()):un(!0)}function qp(){return Oe(n,Up)}function zp(){let c=S(),f=t.getTokenStart(),v=Y(23),C=t.hasPrecedingLineBreak(),P=Tn(15,Up);return vr(23,24,v,f),F(Q(P,C),c)}function Wp(){let c=S(),f=J();if(at(26)){let ve=un(!0);return Ie(F(h.createSpreadAssignment(ve),c),f)}let v=Fr(!0);if(Ia(139))return Li(c,f,v,176,0);if(Ia(153))return Li(c,f,v,177,0);let C=at(42),P=Pt(),U=oa(),ne=at(58),_e=at(54);if(C||m()===21||m()===30)return dd(c,f,v,C,U,ne,_e);let pe;if(P&&m()!==59){let ve=at(64),Ge=ve?Re(()=>un(!0)):void 0;pe=h.createShorthandPropertyAssignment(U,Ge),pe.equalsToken=ve}else{Y(59);let ve=Re(()=>un(!0));pe=h.createPropertyAssignment(U,ve)}return pe.modifiers=v,pe.questionToken=ne,pe.exclamationToken=_e,Ie(F(pe,c),f)}function Ms(){let c=S(),f=t.getTokenStart(),v=Y(19),C=t.hasPrecedingLineBreak(),P=Tn(12,Wp,!0);return vr(19,20,v,f),F(W(P,C),c)}function Vp(){let c=Lr();ae(!1);let f=S(),v=J(),C=Fr(!1);Y(100);let P=at(42),U=P?1:0,ne=ft(C,Qc)?2:0,_e=U&&ne?na(ja):U?ta(ja):ne?ni(ja):ja(),pe=tr(),ce=_i(U|ne),ve=xr(59,!1),Ge=Ls(U|ne);ae(c);let je=h.createFunctionExpression(C,P,_e,pe,ce,ve,Ge);return Ie(F(je,f),v)}function ja(){return Yn()?vs():void 0}function ay(){let c=S();if(Y(105),Je(25)){let U=zt();return F(h.createMetaProperty(105,U),c)}let f=S(),v=Is(f,Dc(),!1),C;v.kind===232&&(C=v.typeArguments,v=v.expression),m()===29&&Fe(K.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,Ys(vt,v));let P=m()===21?jp():void 0;return F(Dn(v,C,P),c)}function sa(c,f){let v=S(),C=J(),P=t.getTokenStart(),U=Y(19,f);if(U||c){let ne=t.hasPrecedingLineBreak(),_e=er(1,fn);vr(19,20,U,P);let pe=Ie(F(ei(_e,ne),v),C);return m()===64&&(Fe(K.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),R()),pe}else{let ne=Tr();return Ie(F(ei(ne,void 0),v),C)}}function Ls(c,f){let v=ii();Z(!!(c&1));let C=Nn();Te(!!(c&2));let P=Jt;Jt=!1;let U=Lr();U&&ae(!1);let ne=sa(!!(c&16),f);return U&&ae(!0),Jt=P,Z(v),Te(C),ne}function Hp(){let c=S(),f=J();return Y(27),Ie(F(h.createEmptyStatement(),c),f)}function oy(){let c=S(),f=J();Y(101);let v=t.getTokenStart(),C=Y(21),P=Re(Mt);vr(21,22,C,v);let U=fn(),ne=Je(93)?fn():void 0;return Ie(F($e(P,U,ne),c),f)}function Kp(){let c=S(),f=J();Y(92);let v=fn();Y(117);let C=t.getTokenStart(),P=Y(21),U=Re(Mt);return vr(21,22,P,C),Je(27),Ie(F(h.createDoStatement(v,U),c),f)}function sy(){let c=S(),f=J();Y(117);let v=t.getTokenStart(),C=Y(21),P=Re(Mt);vr(21,22,C,v);let U=fn();return Ie(F($t(P,U),c),f)}function Gp(){let c=S(),f=J();Y(99);let v=at(135);Y(21);let C;m()!==27&&(m()===115||m()===121||m()===87?C=ld(!0):C=Rt(Mt));let P;if(v?Y(164):Je(164)){let U=Re(()=>un(!0));Y(22),P=Qt(v,C,U,fn())}else if(Je(103)){let U=Re(Mt);Y(22),P=h.createForInStatement(C,U,fn())}else{Y(27);let U=m()!==27&&m()!==22?Re(Mt):void 0;Y(27);let ne=m()!==22?Re(Mt):void 0;Y(22),P=jn(C,U,ne,fn())}return Ie(F(P,c),f)}function Xp(c){let f=S(),v=J();Y(c===251?83:88);let C=Ai()?void 0:Ut();In();let P=c===251?h.createBreakStatement(C):h.createContinueStatement(C);return Ie(F(P,f),v)}function _y(){let c=S(),f=J();Y(107);let v=Ai()?void 0:Re(Mt);return In(),Ie(F(h.createReturnStatement(v),c),f)}function $p(){let c=S(),f=J();Y(118);let v=t.getTokenStart(),C=Y(21),P=Re(Mt);vr(21,22,C,v);let U=We(33554432,fn);return Ie(F(h.createWithStatement(P,U),c),f)}function cy(){let c=S(),f=J();Y(84);let v=Re(Mt);Y(59);let C=er(3,fn);return Ie(F(h.createCaseClause(v,C),c),f)}function Qp(){let c=S();Y(90),Y(59);let f=er(3,fn);return F(h.createDefaultClause(f),c)}function ly(){return m()===84?cy():Qp()}function Yp(){let c=S();Y(19);let f=er(2,ly);return Y(20),F(h.createCaseBlock(f),c)}function uy(){let c=S(),f=J();Y(109),Y(21);let v=Re(Mt);Y(22);let C=Yp();return Ie(F(h.createSwitchStatement(v,C),c),f)}function Zp(){let c=S(),f=J();Y(111);let v=t.hasPrecedingLineBreak()?void 0:Re(Mt);return v===void 0&&(cn++,v=F(B(""),S())),uo()||_t(v),Ie(F(h.createThrowStatement(v),c),f)}function py(){let c=S(),f=J();Y(113);let v=sa(!1),C=m()===85?ed():void 0,P;return(!C||m()===98)&&(Y(98,K.catch_or_finally_expected),P=sa(!1)),Ie(F(h.createTryStatement(v,C,P),c),f)}function ed(){let c=S();Y(85);let f;Je(21)?(f=Js(),Y(22)):f=void 0;let v=sa(!1);return F(h.createCatchClause(f,v),c)}function dy(){let c=S(),f=J();return Y(89),In(),Ie(F(h.createDebuggerStatement(),c),f)}function td(){let c=S(),f=J(),v,C=m()===21,P=Re(Mt);return Ce(P)&&Je(59)?v=h.createLabeledStatement(P,fn()):(uo()||_t(P),v=Pn(P),C&&(f=!1)),Ie(F(v,c),f)}function Pc(){return R(),At(m())&&!t.hasPrecedingLineBreak()}function nd(){return R(),m()===86&&!t.hasPrecedingLineBreak()}function rd(){return R(),m()===100&&!t.hasPrecedingLineBreak()}function Nc(){return R(),(At(m())||m()===9||m()===10||m()===11)&&!t.hasPrecedingLineBreak()}function fy(){for(;;)switch(m()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 120:case 156:return V1();case 144:case 145:return hy();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:if(R(),t.hasPrecedingLineBreak())return!1;continue;case 161:return R(),m()===19||m()===80||m()===95;case 102:return R(),m()===11||m()===42||m()===19||At(m());case 95:let c=R();if(c===156&&(c=Pe(R)),c===64||c===42||c===19||c===90||c===130||c===60)return!0;continue;case 126:R();continue;default:return!1}}function To(){return Pe(fy)}function id(){switch(m()){case 60:case 27:case 19:case 115:case 121:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return To()||Pe(uc);case 87:case 95:return To();case 134:case 138:case 120:case 144:case 145:case 156:case 161:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return To()||!Pe(Pc);default:return Oi()}}function ad(){return R(),Yn()||m()===19||m()===23}function my(){return Pe(ad)}function fn(){switch(m()){case 27:return Hp();case 19:return sa(!1);case 115:return Oc(S(),J(),void 0);case 121:if(my())return Oc(S(),J(),void 0);break;case 100:return Mc(S(),J(),void 0);case 86:return gd(S(),J(),void 0);case 101:return oy();case 92:return Kp();case 117:return sy();case 99:return Gp();case 88:return Xp(250);case 83:return Xp(251);case 107:return _y();case 118:return $p();case 109:return uy();case 111:return Zp();case 113:case 85:case 98:return py();case 89:return dy();case 60:return xo();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 161:if(To())return xo();break}return td()}function od(c){return c.kind===138}function xo(){let c=S(),f=J(),v=Fr(!0);if(ft(v,od)){let P=yy(c);if(P)return P;for(let U of v)U.flags|=16777216;return We(16777216,()=>sd(c,f,v))}else return sd(c,f,v)}function yy(c){return We(16777216,()=>{let f=$_(dt,c);if(f)return Q_(f)})}function sd(c,f,v){switch(m()){case 115:case 121:case 87:return Oc(c,f,v);case 100:return Mc(c,f,v);case 86:return gd(c,f,v);case 120:return Py(c,f,v);case 156:return Ny(c,f,v);case 94:return Oy(c,f,v);case 161:case 144:case 145:return Ed(c,f,v);case 102:return Ly(c,f,v);case 95:switch(R(),m()){case 90:case 64:return Wy(c,f,v);case 130:return Ad(c,f,v);default:return wo(c,f,v)}default:if(v){let C=Hn(281,!0,K.Declaration_expected);return qf(C,c),C.modifiers=v,C}return}}function hy(){return R(),!t.hasPrecedingLineBreak()&&(Pt()||m()===11)}function So(c,f){if(m()!==19){if(c&4){mo();return}if(Ai()){In();return}}return Ls(c,f)}function gy(){let c=S();if(m()===28)return F(h.createOmittedExpression(),c);let f=at(26),v=Ba(),C=Mi();return F(h.createBindingElement(f,void 0,v,C),c)}function _d(){let c=S(),f=at(26),v=Yn(),C=oa(),P;v&&m()!==59?(P=C,C=void 0):(Y(59),P=Ba());let U=Mi();return F(h.createBindingElement(f,C,P,U),c)}function by(){let c=S();Y(19);let f=Tn(9,_d);return Y(20),F(h.createObjectBindingPattern(f),c)}function cd(){let c=S();Y(23);let f=Tn(10,gy);return Y(24),F(h.createArrayBindingPattern(f),c)}function Ic(){return m()===19||m()===23||m()===81||Yn()}function Ba(c){return m()===23?cd():m()===19?by():vs(c)}function vy(){return Js(!0)}function Js(c){let f=S(),v=J(),C=Ba(K.Private_identifiers_are_not_allowed_in_variable_declarations),P;c&&C.kind===80&&m()===54&&!t.hasPrecedingLineBreak()&&(P=vn());let U=Ii(),ne=vp(m())?void 0:Mi(),_e=fr(C,P,U,ne);return Ie(F(_e,f),v)}function ld(c){let f=S(),v=0;switch(m()){case 115:break;case 121:v|=1;break;case 87:v|=2;break;default:M.fail()}R();let C;if(m()===164&&Pe(ud))C=Tr();else{let P=ai();ee(c),C=Tn(8,c?Js:vy),ee(P)}return F(Bn(C,v),f)}function ud(){return xs()&&R()===22}function Oc(c,f,v){let C=ld(!1);In();let P=_n(v,C);return Ie(F(P,c),f)}function Mc(c,f,v){let C=Nn(),P=ar(v);Y(100);let U=at(42),ne=P&1024?ja():vs(),_e=U?1:0,pe=P&512?2:0,ce=tr();P&1&&Te(!0);let ve=_i(_e|pe),Ge=xr(59,!1),je=So(_e|pe,K.or_expected);Te(C);let Be=h.createFunctionDeclaration(v,U,ne,ce,ve,Ge,je);return Ie(F(Be,c),f)}function Ty(){if(m()===137)return Y(137);if(m()===11&&Pe(R)===21)return jt(()=>{let c=Jr();return c.text==="constructor"?c:void 0})}function pd(c,f,v){return jt(()=>{if(Ty()){let C=tr(),P=_i(0),U=xr(59,!1),ne=So(0,K.or_expected),_e=h.createConstructorDeclaration(v,P,ne);return _e.typeParameters=C,_e.type=U,Ie(F(_e,c),f)}})}function dd(c,f,v,C,P,U,ne,_e){let pe=C?1:0,ce=ft(v,Qc)?2:0,ve=tr(),Ge=_i(pe|ce),je=xr(59,!1),Be=So(pe|ce,_e),Lt=h.createMethodDeclaration(v,C,P,U,ve,Ge,je,Be);return Lt.exclamationToken=ne,Ie(F(Lt,c),f)}function Lc(c,f,v,C,P){let U=!P&&!t.hasPrecedingLineBreak()?at(54):void 0,ne=Ii(),_e=Oe(45056,Mi);lo(C,ne,_e);let pe=h.createPropertyDeclaration(v,C,P||U,ne,_e);return Ie(F(pe,c),f)}function fd(c,f,v){let C=at(42),P=oa(),U=at(58);return C||m()===21||m()===30?dd(c,f,v,C,P,U,void 0,K.or_expected):Lc(c,f,v,P,U)}function Li(c,f,v,C,P){let U=oa(),ne=tr(),_e=_i(0),pe=xr(59,!1),ce=So(P),ve=C===176?h.createGetAccessorDeclaration(v,U,_e,pe,ce):h.createSetAccessorDeclaration(v,U,_e,ce);return ve.typeParameters=ne,N_(ve)&&(ve.type=pe),Ie(F(ve,c),f)}function xy(){let c;if(m()===60)return!0;for(;yi(m());){if(c=m(),Sx(c))return!0;R()}if(m()===42||(aa()&&(c=m(),R()),m()===23))return!0;if(c!==void 0){if(!bi(c)||c===153||c===139)return!0;switch(m()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return Ai()}}return!1}function Sy(c,f,v){oi(126);let C=md(),P=Ie(F(h.createClassStaticBlockDeclaration(C),c),f);return P.modifiers=v,P}function md(){let c=ii(),f=Nn();Z(!1),Te(!0);let v=sa(!1);return Z(c),Te(f),v}function wy(){if(Nn()&&m()===135){let c=S(),f=Ut(K.Expression_expected);R();let v=Is(c,f,!0);return Ac(c,v)}return Fa()}function yd(){let c=S();if(!Je(60))return;let f=gr(wy);return F(h.createDecorator(f),c)}function Jc(c,f,v){let C=S(),P=m();if(m()===87&&f){if(!jt(H_))return}else{if(v&&m()===126&&Pe(js))return;if(c&&m()===126)return;if(!hu())return}return F(oe(P),C)}function Fr(c,f,v){let C=S(),P,U,ne,_e=!1,pe=!1,ce=!1;if(c&&m()===60)for(;U=yd();)P=Tt(P,U);for(;ne=Jc(_e,f,v);)ne.kind===126&&(_e=!0),P=Tt(P,ne),pe=!0;if(pe&&c&&m()===60)for(;U=yd();)P=Tt(P,U),ce=!0;if(ce)for(;ne=Jc(_e,f,v);)ne.kind===126&&(_e=!0),P=Tt(P,ne);return P&&Bt(P,C)}function Rc(){let c;if(m()===134){let f=S();R();let v=F(oe(134),f);c=Bt([v],f)}return c}function Ey(){let c=S(),f=J();if(m()===27)return R(),Ie(F(h.createSemicolonClassElement(),c),f);let v=Fr(!0,!0,!0);if(m()===126&&Pe(js))return Sy(c,f,v);if(Ia(139))return Li(c,f,v,176,0);if(Ia(153))return Li(c,f,v,177,0);if(m()===137||m()===11){let C=pd(c,f,v);if(C)return C}if(Uu())return qu(c,f,v);if(At(m())||m()===11||m()===9||m()===42||m()===23)if(ft(v,od)){for(let P of v)P.flags|=16777216;return We(16777216,()=>fd(c,f,v))}else return fd(c,f,v);if(v){let C=Hn(80,!0,K.Declaration_expected);return Lc(c,f,v,C,void 0)}return M.fail("Should not have attempted to parse class member declaration.")}function Cy(){let c=S(),f=J(),v=Fr(!0);if(m()===86)return Fc(c,f,v,230);let C=Hn(281,!0,K.Expression_expected);return qf(C,c),C.modifiers=v,C}function hd(){return Fc(S(),J(),void 0,230)}function gd(c,f,v){return Fc(c,f,v,262)}function Fc(c,f,v,C){let P=Nn();Y(86);let U=bd(),ne=tr();ft(v,i8)&&Te(!0);let _e=vd(),pe;Y(19)?(pe=Dy(),Y(20)):pe=Tr(),Te(P);let ce=C===262?h.createClassDeclaration(v,U,ne,_e,pe):h.createClassExpression(v,U,ne,_e,pe);return Ie(F(ce,c),f)}function bd(){return Yn()&&!ky()?ia(Yn()):void 0}function ky(){return m()===119&&Pe(K_)}function vd(){if(Fs())return er(22,Td)}function Td(){let c=S(),f=m();M.assert(f===96||f===119),R();let v=Tn(7,Ay);return F(h.createHeritageClause(f,v),c)}function Ay(){let c=S(),f=Fa();if(f.kind===232)return f;let v=Rs();return F(h.createExpressionWithTypeArguments(f,v),c)}function Rs(){return m()===30?Ni(20,yt,30,32):void 0}function Fs(){return m()===96||m()===119}function Dy(){return er(5,Ey)}function Py(c,f,v){Y(120);let C=Ut(),P=tr(),U=vd(),ne=pc(),_e=h.createInterfaceDeclaration(v,C,P,U,ne);return Ie(F(_e,c),f)}function Ny(c,f,v){Y(156);let C=Ut(),P=tr();Y(64);let U=m()===141&&jt(fc)||yt();In();let ne=h.createTypeAliasDeclaration(v,C,P,U);return Ie(F(ne,c),f)}function Iy(){let c=S(),f=J(),v=oa(),C=Re(Mi);return Ie(F(h.createEnumMember(v,C),c),f)}function Oy(c,f,v){Y(94);let C=Ut(),P;Y(19)?(P=Pa(()=>Tn(6,Iy)),Y(20)):P=Tr();let U=h.createEnumDeclaration(v,C,P);return Ie(F(U,c),f)}function xd(){let c=S(),f;return Y(19)?(f=er(1,fn),Y(20)):f=Tr(),F(h.createModuleBlock(f),c)}function Sd(c,f,v,C){let P=C&16,U=Ut(),ne=Je(25)?Sd(S(),!1,void 0,4|P):xd(),_e=h.createModuleDeclaration(v,U,ne,C);return Ie(F(_e,c),f)}function wd(c,f,v){let C=0,P;m()===161?(P=Ut(),C|=1024):(P=Jr(),P.text=Di(P.text));let U;m()===19?U=xd():In();let ne=h.createModuleDeclaration(v,P,U,C);return Ie(F(ne,c),f)}function Ed(c,f,v){let C=0;if(m()===161)return wd(c,f,v);if(Je(145))C|=16;else if(Y(144),m()===11)return wd(c,f,v);return Sd(c,f,v,C)}function Cd(){return m()===149&&Pe(kd)}function kd(){return R()===21}function js(){return R()===19}function My(){return R()===44}function Ad(c,f,v){Y(130),Y(145);let C=Ut();In();let P=h.createNamespaceExportDeclaration(C);return P.modifiers=v,Ie(F(P,c),f)}function Ly(c,f,v){Y(102);let C=t.getTokenFullStart(),P;Pt()&&(P=Ut());let U=!1;if(m()!==160&&(P==null?void 0:P.escapedText)==="type"&&(Pt()||Ry())&&(U=!0,P=Pt()?Ut():void 0),P&&!Fy())return Bc(c,f,v,P,U);let ne;(P||m()===42||m()===19)&&(ne=jy(P,C,U),Y(160));let _e=Us(),pe;m()===132&&!t.hasPrecedingLineBreak()&&(pe=jc()),In();let ce=h.createImportDeclaration(v,ne,_e,pe);return Ie(F(ce,c),f)}function Jy(){let c=S(),f=At(m())?zt():fo(11);Y(59);let v=un(!0);return F(h.createAssertEntry(f,v),c)}function jc(c){let f=S();c||Y(132);let v=t.getTokenStart();if(Y(19)){let C=t.hasPrecedingLineBreak(),P=Tn(24,Jy,!0);if(!Y(20)){let U=Ti(lt);U&&U.code===K._0_expected.code&&Xc(U,No(dn,v,1,K.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return F(h.createAssertClause(P,C),f)}else{let C=Bt([],S(),void 0,!1);return F(h.createAssertClause(C,!1),f)}}function Ry(){return m()===42||m()===19}function Fy(){return m()===28||m()===160}function Bc(c,f,v,C,P){Y(64);let U=By();In();let ne=h.createImportEqualsDeclaration(v,P,C,U);return Ie(F(ne,c),f)}function jy(c,f,v){let C;return(!c||Je(28))&&(C=m()===42?Uy():Dd(274)),F(h.createImportClause(v,c,C),f)}function By(){return Cd()?Bs():Ma(!1)}function Bs(){let c=S();Y(149),Y(21);let f=Us();return Y(22),F(h.createExternalModuleReference(f),c)}function Us(){if(m()===11){let c=Jr();return c.text=Di(c.text),c}else return Mt()}function Uy(){let c=S();Y(42),Y(130);let f=Ut();return F(h.createNamespaceImport(f),c)}function Dd(c){let f=S(),v=c===274?h.createNamedImports(Ni(23,qy,19,20)):h.createNamedExports(Ni(23,_a,19,20));return F(v,f)}function _a(){let c=J();return Ie(Pd(280),c)}function qy(){return Pd(275)}function Pd(c){let f=S(),v=bi(m())&&!Pt(),C=t.getTokenStart(),P=t.getTokenEnd(),U=!1,ne,_e=!0,pe=zt();if(pe.escapedText==="type")if(m()===130){let Ge=zt();if(m()===130){let je=zt();At(m())?(U=!0,ne=Ge,pe=ve(),_e=!1):(ne=pe,pe=je,_e=!1)}else At(m())?(ne=pe,_e=!1,pe=ve()):(U=!0,pe=Ge)}else At(m())&&(U=!0,pe=ve());_e&&m()===130&&(ne=pe,Y(130),pe=ve()),c===275&&v&&wt(C,P,K.Identifier_expected);let ce=c===275?h.createImportSpecifier(U,ne,pe):h.createExportSpecifier(U,ne,pe);return F(ce,f);function ve(){return v=bi(m())&&!Pt(),C=t.getTokenStart(),P=t.getTokenEnd(),zt()}}function zy(c){return F(h.createNamespaceExport(zt()),c)}function wo(c,f,v){let C=Nn();Te(!0);let P,U,ne,_e=Je(156),pe=S();Je(42)?(Je(130)&&(P=zy(pe)),Y(160),U=Us()):(P=Dd(278),(m()===160||m()===11&&!t.hasPrecedingLineBreak())&&(Y(160),U=Us())),U&&m()===132&&!t.hasPrecedingLineBreak()&&(ne=jc()),In(),Te(C);let ce=h.createExportDeclaration(v,_e,P,U,ne);return Ie(F(ce,c),f)}function Wy(c,f,v){let C=Nn();Te(!0);let P;Je(64)?P=!0:Y(90);let U=un(!0);In(),Te(C);let ne=h.createExportAssignment(v,P,U);return Ie(F(ne,c),f)}let Nd;(c=>{c[c.SourceElements=0]="SourceElements",c[c.BlockStatements=1]="BlockStatements",c[c.SwitchClauses=2]="SwitchClauses",c[c.SwitchClauseStatements=3]="SwitchClauseStatements",c[c.TypeMembers=4]="TypeMembers",c[c.ClassMembers=5]="ClassMembers",c[c.EnumMembers=6]="EnumMembers",c[c.HeritageClauseElement=7]="HeritageClauseElement",c[c.VariableDeclarations=8]="VariableDeclarations",c[c.ObjectBindingElements=9]="ObjectBindingElements",c[c.ArrayBindingElements=10]="ArrayBindingElements",c[c.ArgumentExpressions=11]="ArgumentExpressions",c[c.ObjectLiteralMembers=12]="ObjectLiteralMembers",c[c.JsxAttributes=13]="JsxAttributes",c[c.JsxChildren=14]="JsxChildren",c[c.ArrayLiteralMembers=15]="ArrayLiteralMembers",c[c.Parameters=16]="Parameters",c[c.JSDocParameters=17]="JSDocParameters",c[c.RestProperties=18]="RestProperties",c[c.TypeParameters=19]="TypeParameters",c[c.TypeArguments=20]="TypeArguments",c[c.TupleElementTypes=21]="TupleElementTypes",c[c.HeritageClauses=22]="HeritageClauses",c[c.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",c[c.AssertEntries=24]="AssertEntries",c[c.JSDocComment=25]="JSDocComment",c[c.Count=26]="Count"})(Nd||(Nd={}));let Id;(c=>{c[c.False=0]="False",c[c.True=1]="True",c[c.Unknown=2]="Unknown"})(Id||(Id={}));let Od;(c=>{function f(ce,ve,Ge){Wn("file.js",ce,99,void 0,1),t.setText(ce,ve,Ge),mt=t.scan();let je=v(),Be=et("file.js",99,1,!1,[],oe(1),0,Nr),Lt=za(lt,Be);return Zt&&(Be.jsDocDiagnostics=za(Zt,Be)),hr(),je?{jsDocTypeExpression:je,diagnostics:Lt}:void 0}c.parseJSDocTypeExpressionForTests=f;function v(ce){let ve=S(),Ge=(ce?Je:Y)(19),je=We(8388608,ks);(!ce||Ge)&&Na(20);let Be=h.createJSDocTypeExpression(je);return Ee(Be),F(Be,ve)}c.parseJSDocTypeExpression=v;function C(){let ce=S(),ve=Je(19),Ge=S(),je=Ma(!1);for(;m()===81;)Ye(),me(),je=F(h.createJSDocMemberName(je,Ut()),Ge);ve&&Na(20);let Be=h.createJSDocNameReference(je);return Ee(Be),F(Be,ce)}c.parseJSDocNameReference=C;function P(ce,ve,Ge){Wn("",ce,99,void 0,1);let je=We(8388608,()=>pe(ve,Ge)),Lt=za(lt,{languageVariant:0,text:ce});return hr(),je?{jsDoc:je,diagnostics:Lt}:void 0}c.parseIsolatedJSDocComment=P;function U(ce,ve,Ge){let je=mt,Be=lt.length,Lt=ln,On=We(8388608,()=>pe(ve,Ge));return Vi(On,ce),ut&262144&&(Zt||(Zt=[]),Zt.push(...lt)),mt=je,lt.length=Be,ln=Lt,On}c.parseJSDocComment=U;let ne;(ce=>{ce[ce.BeginningOfLine=0]="BeginningOfLine",ce[ce.SawAsterisk=1]="SawAsterisk",ce[ce.SavingComments=2]="SavingComments",ce[ce.SavingBackticks=3]="SavingBackticks"})(ne||(ne={}));let _e;(ce=>{ce[ce.Property=1]="Property",ce[ce.Parameter=2]="Parameter",ce[ce.CallbackParameter=4]="CallbackParameter"})(_e||(_e={}));function pe(ce=0,ve){let Ge=dt;dt|=1<<25;let je=vt,Be=ve===void 0?je.length:ce+ve;if(ve=Be-ce,M.assert(ce>=0),M.assert(ce<=Be),M.assert(Be<=je.length),!a7(je,ce))return;let Lt,On,ca,li,Ji,Ri=[],la=[],Uc=t.scanRange(ce+3,ve-5,Md);return dt=Ge,Uc;function Md(){let V=1,re,te=ce-(je.lastIndexOf(` -`,ce)+1)+4;function le(qe){re||(re=te),Ri.push(qe),te+=qe.length}for(me();ko(5););ko(4)&&(V=0,te=0);e:for(;;){switch(m()){case 60:Vy(Ri),Ji||(Ji=S()),Hy(Jd(te)),V=0,re=void 0;break;case 4:Ri.push(t.getTokenText()),V=0,te=0;break;case 42:let qe=t.getTokenText();V===1?(V=2,le(qe)):(M.assert(V===0),V=1,te+=qe.length);break;case 5:M.assert(V!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let kt=t.getTokenText();re!==void 0&&te+kt.length>re&&Ri.push(kt.slice(re-te)),te+=kt.length;break;case 1:break e;case 82:V=2,le(t.getTokenValue());break;case 19:V=2;let wr=t.getTokenFullStart(),nr=t.getTokenEnd()-1,Sn=ui(nr);if(Sn){li||qc(Ri),la.push(F(h.createJSDocText(Ri.join("")),li??ce,wr)),la.push(Sn),Ri=[],li=t.getTokenEnd();break}default:V=2,le(t.getTokenText());break}V===2?Ae(!1):me()}let fe=e_(Ri.join(""));la.length&&fe.length&&la.push(F(h.createJSDocText(fe),li??ce,Ji)),la.length&&Lt&&M.assertIsDefined(Ji,"having parsed tags implies that the end of the comment span should be set");let Me=Lt&&Bt(Lt,On,ca);return F(h.createJSDocComment(la.length?Bt(la,ce,Ji):fe.length?fe:void 0,Me),ce,Be)}function qc(V){for(;V.length&&(V[0]===` -`||V[0]==="\r");)V.shift()}function Vy(V){for(;V.length;){let re=e_(V[V.length-1]);if(re==="")V.pop();else if(re.lengthkt&&(le.push(jr.slice(kt-V)),qe=2),V+=jr.length;break;case 19:qe=2;let Fd=t.getTokenFullStart(),zs=t.getTokenEnd()-1,jd=ui(zs);jd?(fe.push(F(h.createJSDocText(le.join("")),Me??te,Fd)),fe.push(jd),le=[],Me=t.getTokenEnd()):wr(t.getTokenText());break;case 62:qe===3?qe=2:qe=3,wr(t.getTokenText());break;case 82:qe!==3&&(qe=2),wr(t.getTokenValue());break;case 42:if(qe===0){qe=1,V+=1;break}default:qe!==3&&(qe=2),wr(t.getTokenText());break}qe===2||qe===3?nr=Ae(qe===3):nr=me()}qc(le);let Sn=e_(le.join(""));if(fe.length)return Sn.length&&fe.push(F(h.createJSDocText(Sn),Me??te)),Bt(fe,te,t.getTokenEnd());if(Sn.length)return Sn}function ui(V){let re=jt(Eo);if(!re)return;me(),pn();let te=S(),le=At(m())?Ma(!0):void 0;if(le)for(;m()===81;)Ye(),me(),le=F(h.createJSDocMemberName(le,Ut()),te);let fe=[];for(;m()!==20&&m()!==4&&m()!==1;)fe.push(t.getTokenText()),me();let Me=re==="link"?h.createJSDocLink:re==="linkcode"?h.createJSDocLinkCode:h.createJSDocLinkPlain;return F(Me(le,fe.join("")),V,t.getTokenEnd())}function Eo(){if(Fi(),m()===19&&me()===60&&At(me())){let V=t.getTokenValue();if(Rd(V))return V}}function Rd(V){return V==="link"||V==="linkcode"||V==="linkplain"}function pi(V,re,te,le){return F(h.createJSDocUnknownTag(re,Se(V,S(),te,le)),V)}function Hy(V){V&&(Lt?Lt.push(V):(Lt=[V],On=V.pos),ca=V.end)}function r(){return Fi(),m()===19?v():void 0}function o(){let V=ko(23);V&&pn();let re=ko(62),te=vC();return re&&du(62),V&&(pn(),at(64)&&Mt(),Y(24)),{name:te,isBracketed:V}}function _(V){switch(V.kind){case 151:return!0;case 187:return _(V.elementType);default:return I_(V)&&Ce(V.typeName)&&V.typeName.escapedText==="Object"&&!V.typeArguments}}function u(V,re,te,le){let fe=r(),Me=!fe;Fi();let{name:qe,isBracketed:kt}=o(),wr=Fi();Me&&!Pe(Eo)&&(fe=r());let nr=Se(V,S(),le,wr),Sn=te!==4&&b(fe,qe,te,le);Sn&&(fe=Sn,Me=!0);let jr=te===1?h.createJSDocPropertyTag(re,qe,kt,fe,Me,nr):h.createJSDocParameterTag(re,qe,kt,fe,Me,nr);return F(jr,V)}function b(V,re,te,le){if(V&&_(V.type)){let fe=S(),Me,qe;for(;Me=jt(()=>Gy(te,le,re));)Me.kind===347||Me.kind===354?qe=Tt(qe,Me):Me.kind===351&&j(Me.tagName,K.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(qe){let kt=F(h.createJSDocTypeLiteral(qe,V.type.kind===187),fe);return F(h.createJSDocTypeExpression(kt),fe)}}}function I(V,re,te,le){ft(Lt,Bb)&&wt(re.pos,t.getTokenStart(),K._0_tag_already_specified,Xo(re.escapedText));let fe=r();return F(h.createJSDocReturnTag(re,fe,Se(V,S(),te,le)),V)}function X(V,re,te,le){ft(Lt,ru)&&wt(re.pos,t.getTokenStart(),K._0_tag_already_specified,Xo(re.escapedText));let fe=v(!0),Me=te!==void 0&&le!==void 0?Se(V,S(),te,le):void 0;return F(h.createJSDocTypeTag(re,fe,Me),V)}function ge(V,re,te,le){let Me=m()===23||Pe(()=>me()===60&&At(me())&&Rd(t.getTokenValue()))?void 0:C(),qe=te!==void 0&&le!==void 0?Se(V,S(),te,le):void 0;return F(h.createJSDocSeeTag(re,Me,qe),V)}function Ve(V,re,te,le){let fe=r(),Me=Se(V,S(),te,le);return F(h.createJSDocThrowsTag(re,fe,Me),V)}function xn(V,re,te,le){let fe=S(),Me=di(),qe=t.getTokenFullStart(),kt=Se(V,qe,te,le);kt||(qe=t.getTokenFullStart());let wr=typeof kt!="string"?Bt(d_([F(Me,fe,qe)],kt),fe):Me.text+kt;return F(h.createJSDocAuthorTag(re,wr),V)}function di(){let V=[],re=!1,te=t.getToken();for(;te!==1&&te!==4;){if(te===30)re=!0;else{if(te===60&&!re)break;if(te===32&&re){V.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}V.push(t.getTokenText()),te=me()}return h.createJSDocText(V.join(""))}function fi(V,re,te,le){let fe=H6();return F(h.createJSDocImplementsTag(re,fe,Se(V,S(),te,le)),V)}function qs(V,re,te,le){let fe=H6();return F(h.createJSDocAugmentsTag(re,fe,Se(V,S(),te,le)),V)}function sC(V,re,te,le){let fe=v(!1),Me=te!==void 0&&le!==void 0?Se(V,S(),te,le):void 0;return F(h.createJSDocSatisfiesTag(re,fe,Me),V)}function H6(){let V=Je(19),re=S(),te=_C();t.setInJSDocType(!0);let le=Rs();t.setInJSDocType(!1);let fe=h.createExpressionWithTypeArguments(te,le),Me=F(fe,re);return V&&Y(20),Me}function _C(){let V=S(),re=Ua();for(;Je(25);){let te=Ua();re=F(se(re,te),V)}return re}function Co(V,re,te,le,fe){return F(re(te,Se(V,S(),le,fe)),V)}function cC(V,re,te,le){let fe=v(!0);return pn(),F(h.createJSDocThisTag(re,fe,Se(V,S(),te,le)),V)}function lC(V,re,te,le){let fe=v(!0);return pn(),F(h.createJSDocEnumTag(re,fe,Se(V,S(),te,le)),V)}function uC(V,re,te,le){let fe=r();Fi();let Me=Ky();pn();let qe=nt(te),kt;if(!fe||_(fe.type)){let nr,Sn,jr,Fd=!1;for(;(nr=jt(()=>yC(te)))&&nr.kind!==351;)if(Fd=!0,nr.kind===350)if(Sn){let zs=Fe(K.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);zs&&Xc(zs,No(dn,0,0,K.The_tag_was_first_specified_here));break}else Sn=nr;else jr=Tt(jr,nr);if(Fd){let zs=fe&&fe.type.kind===187,jd=h.createJSDocTypeLiteral(jr,zs);fe=Sn&&Sn.typeExpression&&!_(Sn.typeExpression.type)?Sn.typeExpression:F(jd,V),kt=fe.end}}kt=kt||qe!==void 0?S():(Me??fe??re).end,qe||(qe=Se(V,kt,te,le));let wr=h.createJSDocTypedefTag(re,fe,Me,qe);return F(wr,V,kt)}function Ky(V){let re=t.getTokenStart();if(!At(m()))return;let te=Ua();if(Je(25)){let le=Ky(!0),fe=h.createModuleDeclaration(void 0,te,le,V?4:void 0);return F(fe,re)}return V&&(te.flags|=2048),te}function pC(V){let re=S(),te,le;for(;te=jt(()=>Gy(4,V));){if(te.kind===351){j(te.tagName,K.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}le=Tt(le,te)}return Bt(le||[],re)}function K6(V,re){let te=pC(re),le=jt(()=>{if(ko(60)){let fe=Jd(re);if(fe&&fe.kind===348)return fe}});return F(h.createJSDocSignature(void 0,te,le),V)}function dC(V,re,te,le){let fe=Ky();pn();let Me=nt(te),qe=K6(V,te);Me||(Me=Se(V,S(),te,le));let kt=Me!==void 0?S():qe.end;return F(h.createJSDocCallbackTag(re,qe,fe,Me),V,kt)}function fC(V,re,te,le){pn();let fe=nt(te),Me=K6(V,te);fe||(fe=Se(V,S(),te,le));let qe=fe!==void 0?S():Me.end;return F(h.createJSDocOverloadTag(re,Me,fe),V,qe)}function mC(V,re){for(;!Ce(V)||!Ce(re);)if(!Ce(V)&&!Ce(re)&&V.right.escapedText===re.right.escapedText)V=V.left,re=re.left;else return!1;return V.escapedText===re.escapedText}function yC(V){return Gy(1,V)}function Gy(V,re,te){let le=!0,fe=!1;for(;;)switch(me()){case 60:if(le){let Me=hC(V,re);return Me&&(Me.kind===347||Me.kind===354)&&V!==4&&te&&(Ce(Me.name)||!mC(te,Me.name.left))?!1:Me}fe=!1;break;case 4:le=!0,fe=!1;break;case 42:fe&&(le=!1),fe=!0;break;case 80:le=!1;break;case 1:return!1}}function hC(V,re){M.assert(m()===60);let te=t.getTokenFullStart();me();let le=Ua(),fe=Fi(),Me;switch(le.escapedText){case"type":return V===1&&X(te,le);case"prop":case"property":Me=1;break;case"arg":case"argument":case"param":Me=6;break;case"template":return G6(te,le,re,fe);default:return!1}return V&Me?u(te,le,V,re):!1}function gC(){let V=S(),re=ko(23);re&&pn();let te=Ua(K.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),le;if(re&&(pn(),Y(64),le=We(8388608,ks),Y(24)),!Bi(te))return F(h.createTypeParameterDeclaration(void 0,te,void 0,le),V)}function bC(){let V=S(),re=[];do{pn();let te=gC();te!==void 0&&re.push(te),Fi()}while(ko(28));return Bt(re,V)}function G6(V,re,te,le){let fe=m()===19?v():void 0,Me=bC();return F(h.createJSDocTemplateTag(re,fe,Me,Se(V,S(),te,le)),V)}function ko(V){return m()===V?(me(),!0):!1}function vC(){let V=Ua();for(Je(23)&&Y(24);Je(25);){let re=Ua();Je(23)&&Y(24),V=nc(V,re)}return V}function Ua(V){if(!At(m()))return Hn(80,!V,V||K.Identifier_expected);cn++;let re=t.getTokenStart(),te=t.getTokenEnd(),le=m(),fe=Di(t.getTokenValue()),Me=F(B(fe,le),re,te);return me(),Me}}})(Od=e.JSDocParser||(e.JSDocParser={}))})(zr||(zr={})),(e=>{function t(g,A,B,G){if(G=G||M.shouldAssert(2),h(g,A,B,G),UT(B))return g;if(g.statements.length===0)return zr.parseSourceFile(g.fileName,A,g.languageVersion,void 0,!0,g.scriptKind,g.setExternalModuleIndicator);let oe=g;M.assert(!oe.hasBeenIncrementallyParsed),oe.hasBeenIncrementallyParsed=!0,zr.fixupParentReferences(oe);let Q=g.text,W=D(g),se=p(g,B);h(g,A,se,G),M.assert(se.span.start<=B.span.start),M.assert(tn(se.span)===tn(B.span)),M.assert(tn(Ks(se))===tn(Ks(B)));let we=Ks(se).length-se.span.length;y(oe,se.span.start,tn(se.span),tn(Ks(se)),we,Q,A,G);let Ze=zr.parseSourceFile(g.fileName,A,g.languageVersion,W,!0,g.scriptKind,g.setExternalModuleIndicator);return Ze.commentDirectives=n(g.commentDirectives,Ze.commentDirectives,se.span.start,tn(se.span),we,Q,A,G),Ze.impliedNodeFormat=g.impliedNodeFormat,Ze}e.updateSourceFile=t;function n(g,A,B,G,oe,Q,W,se){if(!g)return A;let we,Ze=!1;for(let rt of g){let{range:ct,type:Dn}=rt;if(ct.endG){Ue();let sn={range:{pos:ct.pos+oe,end:ct.end+oe},type:Dn};we=Tt(we,sn),se&&M.assert(Q.substring(ct.pos,ct.end)===W.substring(sn.range.pos,sn.range.end))}}return Ue(),we;function Ue(){Ze||(Ze=!0,we?A&&we.push(...A):we=A)}}function i(g,A,B,G,oe,Q){A?se(g):W(g);return;function W(we){let Ze="";if(Q&&s(we)&&(Ze=G.substring(we.pos,we.end)),we._children&&(we._children=void 0),Va(we,we.pos+B,we.end+B),Q&&s(we)&&M.assert(Ze===oe.substring(we.pos,we.end)),qt(we,W,se),Ui(we))for(let Ue of we.jsDoc)W(Ue);d(we,Q)}function se(we){we._children=void 0,Va(we,we.pos+B,we.end+B);for(let Ze of we)W(Ze)}}function s(g){switch(g.kind){case 11:case 9:case 80:return!0}return!1}function l(g,A,B,G,oe){M.assert(g.end>=A,"Adjusting an element that was entirely before the change range"),M.assert(g.pos<=B,"Adjusting an element that was entirely after the change range"),M.assert(g.pos<=g.end);let Q=Math.min(g.pos,G),W=g.end>=B?g.end+oe:Math.min(g.end,G);M.assert(Q<=W),g.parent&&(M.assertGreaterThanOrEqual(Q,g.parent.pos),M.assertLessThanOrEqual(W,g.parent.end)),Va(g,Q,W)}function d(g,A){if(A){let B=g.pos,G=oe=>{M.assert(oe.pos>=B),B=oe.end};if(Ui(g))for(let oe of g.jsDoc)G(oe);qt(g,G),M.assert(B<=g.end)}}function y(g,A,B,G,oe,Q,W,se){we(g);return;function we(Ue){if(M.assert(Ue.pos<=Ue.end),Ue.pos>B){i(Ue,!1,oe,Q,W,se);return}let rt=Ue.end;if(rt>=A){if(Ue.intersectsChange=!0,Ue._children=void 0,l(Ue,A,B,G,oe),qt(Ue,we,Ze),Ui(Ue))for(let ct of Ue.jsDoc)we(ct);d(Ue,se);return}M.assert(rtB){i(Ue,!0,oe,Q,W,se);return}let rt=Ue.end;if(rt>=A){Ue.intersectsChange=!0,Ue._children=void 0,l(Ue,A,B,G,oe);for(let ct of Ue)we(ct);return}M.assert(rt0&&W<=1;W++){let se=x(g,G);M.assert(se.pos<=G);let we=se.pos;G=Math.max(0,we-1)}let oe=zi(G,tn(A.span)),Q=A.newLength+(A.span.start-G);return pm(oe,Q)}function x(g,A){let B=g,G;if(qt(g,Q),G){let W=oe(G);W.pos>B.pos&&(B=W)}return B;function oe(W){for(;;){let se=V3(W);if(se)W=se;else return W}}function Q(W){if(!Bi(W))if(W.pos<=A){if(W.pos>=B.pos&&(B=W),AA),!0}}function h(g,A,B,G){let oe=g.text;if(B&&(M.assert(oe.length-B.span.length+B.newLength===A.length),G||M.shouldAssert(3))){let Q=oe.substr(0,B.span.start),W=A.substr(0,B.span.start);M.assert(Q===W);let se=oe.substring(tn(B.span),oe.length),we=A.substring(tn(Ks(B)),A.length);M.assert(se===we)}}function D(g){let A=g.statements,B=0;M.assert(B=Ze.pos&&W=Ze.pos&&W{g[g.Value=-1]="Value"})(w||(w={}))})(cf||(cf={})),lf=new Map,d7=/^\/\/\/\s*<(\S+)\s.*?\/>/im,f7=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im}}),MF=()=>{},KK=Ht({"src/compiler/pnp.ts"(){"use strict";gT()}}),LF=()=>{},JF=()=>{},RF=()=>{},FF=()=>{},jF=()=>{},BF=()=>{},UF=()=>{},qF=()=>{},zF=()=>{},WF=()=>{},VF=()=>{},HF=()=>{},KF=()=>{},GF=()=>{},XF=()=>{},$F=()=>{},QF=()=>{},YF=()=>{},ZF=()=>{},ej=()=>{},tj=()=>{},nj=()=>{},rj=()=>{},ij=()=>{},aj=()=>{},oj=()=>{},sj=()=>{},_j=()=>{},cj=()=>{},lj=()=>{},uj=()=>{},pj=()=>{},dj=()=>{},fj=()=>{},mj=()=>{},yj=()=>{},hj=()=>{},gj=()=>{},bj=()=>{},vj=()=>{},Tj=()=>{},xj=()=>{},Sj=()=>{},wj=()=>{},Ej=()=>{},En=Ht({"src/compiler/_namespaces/ts.ts"(){"use strict";NC(),u5(),_T(),p5(),d5(),m5(),g5(),uT(),v5(),gT(),J5(),V5(),OA(),pL(),dL(),fL(),mL(),AL(),DL(),PL(),aR(),gF(),bF(),OF(),MF(),LF(),JF(),RF(),jF(),BF(),UF(),qF(),zF(),WF(),VF(),HF(),KF(),GF(),XF(),$F(),QF(),YF(),ZF(),ej(),tj(),nj(),rj(),ij(),aj(),oj(),sj(),_j(),cj(),lj(),uj(),pj(),dj(),fj(),mj(),yj(),hj(),gj(),bj(),vj(),Tj(),xj(),Sj(),wj(),Ej(),FF(),lT()}}),m7=()=>{},Cj=()=>{},y7=()=>{},zo,y7=()=>{_T(),zo=as(99,!0)},kj=()=>{},h7=()=>{},Aj=()=>{},Dj=()=>{},Pj=()=>{},Nj=()=>{},Ij=()=>{},Oj=()=>{},Mj=()=>{},Lj=()=>{},g7=()=>{},b7=()=>{},v7=()=>{},Jj=()=>{};function T7(e,t,n,i){let s=Ol(e)?new $f(e,t,n):e===80?new Qf(80,t,n):e===81?new Yf(81,t,n):new Kb(e,t,n);return s.parent=i,s.flags=i.flags&50720768,s}function Rj(e,t){if(!Ol(e.kind))return Xe;let n=[];if(Ux(e))return e.forEachChild(d=>{n.push(d)}),n;zo.setText((t||e.getSourceFile()).text);let i=e.pos,s=d=>{_l(n,i,d.pos,e),n.push(d),i=d.end},l=d=>{_l(n,i,d.pos,e),n.push(Fj(d,e)),i=d.end};return hn(e.jsDoc,s),i=e.pos,e.forEachChild(s,l),_l(n,i,e.end,e),zo.setText(void 0),n}function _l(e,t,n,i){for(zo.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function Hd(e,t){if(!e)return Xe;let n=ts_JsDoc_exports.getJsDocTagsFromDeclarations(e,t);if(t&&(n.length===0||e.some(x7))){let i=new Set;for(let s of e){let l=S7(t,s,d=>{var y;if(!i.has(d))return i.add(d),s.kind===176||s.kind===177?d.getContextualJsDocTags(s,t):((y=d.declarations)==null?void 0:y.length)===1?d.getJsDocTags():void 0});l&&(n=[...l,...n])}}return n}function Wc(e,t){if(!e)return Xe;let n=ts_JsDoc_exports.getJsDocCommentsFromDeclarations(e,t);if(t&&(n.length===0||e.some(x7))){let i=new Set;for(let s of e){let l=S7(t,s,d=>{if(!i.has(d))return i.add(d),s.kind===176||s.kind===177?d.getContextualDocumentationComment(s,t):d.getDocumentationComment(t)});l&&(n=n.length===0?l.slice():l.concat(lineBreakPart(),n))}}return n}function S7(e,t,n){var i;let s=((i=t.parent)==null?void 0:i.kind)===175?t.parent.parent:t.parent;if(!s)return;let l=Rm(t);return og(K4(s),d=>{let y=e.getTypeAtLocation(d),p=l&&y.symbol?e.getTypeOfSymbol(y.symbol):y,x=e.getPropertyOfType(p,t.symbol.name);return x?n(x):void 0})}function jj(){return{getNodeConstructor:()=>$f,getTokenConstructor:()=>Kb,getIdentifierConstructor:()=>Qf,getPrivateIdentifierConstructor:()=>Yf,getSourceFileConstructor:()=>M7,getSymbolConstructor:()=>N7,getTypeConstructor:()=>I7,getSignatureConstructor:()=>O7,getSourceMapSourceConstructor:()=>L7}}function Zc(e){let t=!0;for(let i in e)if(Xn(e,i)&&!Nv(i)){t=!1;break}if(t)return e;let n={};for(let i in e)if(Xn(e,i)){let s=Nv(i)?i:i.charAt(0).toLowerCase()+i.substr(1);n[s]=e[i]}return n}function Nv(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function Bj(e){return e?ga(e,t=>t.text).join(""):""}function w7(){return{target:1,jsx:1}}function E7(){return ts_codefix_exports.getSupportedErrorCodes()}function C7(e,t,n){e.version=n,e.scriptSnapshot=t}function Hb(e,t,n,i,s,l){let d=_7(e,getSnapshotText(t),n,s,l);return C7(d,t,i),d}function k7(e,t,n,i,s){if(i&&n!==e.version){let d,y=i.span.start!==0?e.text.substr(0,i.span.start):"",p=tn(i.span)!==e.text.length?e.text.substr(tn(i.span)):"";if(i.newLength===0)d=y&&p?y+p:y||p;else{let h=t.getText(i.span.start,i.span.start+i.newLength);d=y&&p?y+h+p:y?y+h:h+p}let x=Vb(e,d,i,s);return C7(x,t,n),x.nameTable=void 0,e!==x&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),x}let l={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator};return Hb(e.fileName,t,l,n,!0,e.scriptKind)}function Uj(e,t=createDocumentRegistry(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()),n){var i;let s;n===void 0?s=0:typeof n=="boolean"?s=n?2:0:s=n;let l=new J7(e),d,y,p=0,x=e.getCancellationToken?new F7(e.getCancellationToken()):R7,h=e.getCurrentDirectory();X3((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function D(j){e.log&&e.log(j)}let w=A2(e),g=im(w),A=getSourceMapper({useCaseSensitiveFileNames:()=>w,getCurrentDirectory:()=>h,getProgram:oe,fileExists:rn(e,e.fileExists),readFile:rn(e,e.readFile),getDocumentPositionMapper:rn(e,e.getDocumentPositionMapper),getSourceFileLike:rn(e,e.getSourceFileLike),log:D});function B(j){let E=d.getSourceFile(j);if(!E){let S=new Error(`Could not find source file: '${j}'.`);throw S.ProgramFiles=d.getSourceFiles().map(J=>J.fileName),S}return E}function G(){var j,E,S;if(M.assert(s!==2),e.getProjectVersion){let Le=e.getProjectVersion();if(Le){if(y===Le&&!((j=e.hasChangedAutomaticTypeDirectiveNames)!=null&&j.call(e)))return;y=Le}}let J=e.getTypeRootsVersion?e.getTypeRootsVersion():0;p!==J&&(D("TypeRoots version has changed; provide new program"),d=void 0,p=J);let m=e.getScriptFileNames().slice(),ie=e.getCompilationSettings()||w7(),he=e.hasInvalidatedResolutions||df,R=rn(e,e.hasInvalidatedLibResolutions)||df,me=rn(e,e.hasChangedAutomaticTypeDirectiveNames),Ae=(E=e.getProjectReferences)==null?void 0:E.call(e),ke,De={getSourceFile:Pt,getSourceFileByPath:Y,getCancellationToken:()=>x,getCanonicalFileName:g,useCaseSensitiveFileNames:()=>w,getNewLine:()=>R3(ie),getDefaultLibFileName:Le=>e.getDefaultLibFileName(Le),writeFile:Nr,getCurrentDirectory:()=>h,fileExists:Le=>e.fileExists(Le),readFile:Le=>e.readFile&&e.readFile(Le),getSymlinkCache:rn(e,e.getSymlinkCache),realpath:rn(e,e.realpath),directoryExists:Le=>J3(Le,e),getDirectories:Le=>e.getDirectories?e.getDirectories(Le):[],readDirectory:(Le,_t,en,Zn,lo)=>(M.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(Le,_t,en,Zn,lo)),onReleaseOldSourceFile:Yn,onReleaseParsedCommandLine:jt,hasInvalidatedResolutions:he,hasInvalidatedLibResolutions:R,hasChangedAutomaticTypeDirectiveNames:me,trace:rn(e,e.trace),resolveModuleNames:rn(e,e.resolveModuleNames),getModuleResolutionCache:rn(e,e.getModuleResolutionCache),createHash:rn(e,e.createHash),resolveTypeReferenceDirectives:rn(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:rn(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:rn(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:rn(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:rn(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:Ct},ot=De.getSourceFile,{getSourceFileWithCache:st}=changeCompilerHostLikeToUseCache(De,Le=>vi(Le,h,g),(...Le)=>ot.call(De,...Le));De.getSourceFile=st,(S=e.setCompilerHost)==null||S.call(e,De);let Ye={useCaseSensitiveFileNames:w,fileExists:Le=>De.fileExists(Le),readFile:Le=>De.readFile(Le),readDirectory:(...Le)=>De.readDirectory(...Le),trace:De.trace,getCurrentDirectory:De.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:Nr},Ft=t.getKeyForCompilationSettings(ie),Et=new Set;if(isProgramUptoDate(d,m,ie,(Le,_t)=>e.getScriptVersion(_t),Le=>De.fileExists(Le),he,R,me,Ct,Ae)){De=void 0,ke=void 0,Et=void 0;return}let bn={rootNames:m,options:ie,host:De,oldProgram:d,projectReferences:Ae};d=createProgram(bn),De=void 0,ke=void 0,Et=void 0,A.clearCache(),d.getTypeChecker();return;function Ct(Le){let _t=vi(Le,h,g),en=ke==null?void 0:ke.get(_t);if(en!==void 0)return en||void 0;let Zn=e.getParsedCommandLine?e.getParsedCommandLine(Le):Pe(Le);return(ke||(ke=new Map)).set(_t,Zn||!1),Zn}function Pe(Le){let _t=Pt(Le,100);if(_t)return _t.path=vi(Le,h,g),_t.resolvedPath=_t.path,_t.originalFileName=_t.fileName,parseJsonSourceFileConfigFileContent(_t,Ye,Ta(Hi(Le),h),void 0,Ta(Le,h))}function jt(Le,_t,en){var Zn;e.getParsedCommandLine?(Zn=e.onReleaseParsedCommandLine)==null||Zn.call(e,Le,_t,en):_t&&Yn(_t.sourceFile,en)}function Yn(Le,_t){let en=t.getKeyForCompilationSettings(_t);t.releaseDocumentWithKey(Le.resolvedPath,en,Le.scriptKind,Le.impliedNodeFormat)}function Pt(Le,_t,en,Zn){return Y(Le,vi(Le,h,g),_t,en,Zn)}function Y(Le,_t,en,Zn,lo){M.assert(De,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");let Na=e.getScriptSnapshot(Le);if(!Na)return;let vr=getScriptKind(Le,e),Je=e.getScriptVersion(Le);if(!lo){let at=d&&d.getSourceFileByPath(_t);if(at){if(vr===at.scriptKind||Et.has(at.resolvedPath))return t.updateDocumentWithKey(Le,_t,e,Ft,Na,Je,vr,en);t.releaseDocumentWithKey(at.resolvedPath,t.getKeyForCompilationSettings(d.getCompilerOptions()),at.scriptKind,at.impliedNodeFormat),Et.add(at.resolvedPath)}}return t.acquireDocumentWithKey(Le,_t,e,Ft,Na,Je,vr,en)}}function oe(){if(s===2){M.assert(d===void 0);return}return G(),d}function Q(){var j;return(j=e.getPackageJsonAutoImportProvider)==null?void 0:j.call(e)}function W(j,E){let S=d.getTypeChecker(),J=m();if(!J)return!1;for(let he of j)for(let R of he.references){let me=ie(R);if(M.assertIsDefined(me),E.has(R)||ts_FindAllReferences_exports.isDeclarationOfSymbol(me,J)){E.add(R),R.isDefinition=!0;let Ae=getMappedDocumentSpan(R,A,rn(e,e.fileExists));Ae&&E.add(Ae)}else R.isDefinition=!1}return!0;function m(){for(let he of j)for(let R of he.references){if(E.has(R)){let Ae=ie(R);return M.assertIsDefined(Ae),S.getSymbolAtLocation(Ae)}let me=getMappedDocumentSpan(R,A,rn(e,e.fileExists));if(me&&E.has(me)){let Ae=ie(me);if(Ae)return S.getSymbolAtLocation(Ae)}}}function ie(he){let R=d.getSourceFile(he.fileName);if(!R)return;let me=getTouchingPropertyName(R,he.textSpan.start);return ts_FindAllReferences_exports.Core.getAdjustedNode(me,{use:ts_FindAllReferences_exports.FindReferencesUse.References})}}function se(){d=void 0}function we(){if(d){let j=t.getKeyForCompilationSettings(d.getCompilerOptions());hn(d.getSourceFiles(),E=>t.releaseDocumentWithKey(E.resolvedPath,j,E.scriptKind,E.impliedNodeFormat)),d=void 0}e=void 0}function Ze(j){return G(),d.getSyntacticDiagnostics(B(j),x).slice()}function Ue(j){G();let E=B(j),S=d.getSemanticDiagnostics(E,x);if(!H2(d.getCompilerOptions()))return S.slice();let J=d.getDeclarationDiagnostics(E,x);return[...S,...J]}function rt(j){return G(),computeSuggestionDiagnostics(B(j),d,x)}function ct(){return G(),[...d.getOptionsDiagnostics(x),...d.getGlobalDiagnostics(x)]}function Dn(j,E,S=emptyOptions,J){let m={...S,includeCompletionsForModuleExports:S.includeCompletionsForModuleExports||S.includeExternalModuleExports,includeCompletionsWithInsertText:S.includeCompletionsWithInsertText||S.includeInsertTextCompletions};return G(),ts_Completions_exports.getCompletionsAtPosition(e,d,D,B(j),E,m,S.triggerCharacter,S.triggerKind,x,J&&ts_formatting_exports.getFormatContext(J,e),S.includeSymbol)}function sn(j,E,S,J,m,ie=emptyOptions,he){return G(),ts_Completions_exports.getCompletionEntryDetails(d,D,B(j),E,{name:S,source:m,data:he},e,J&&ts_formatting_exports.getFormatContext(J,e),ie,x)}function ei(j,E,S,J,m=emptyOptions){return G(),ts_Completions_exports.getCompletionEntrySymbol(d,D,B(j),E,{name:S,source:J},e,m)}function _n(j,E){G();let S=B(j),J=getTouchingPropertyName(S,E);if(J===S)return;let m=d.getTypeChecker(),ie=Pn(J),he=Hj(ie,m);if(!he||m.isUnknownSymbol(he)){let De=$e(S,ie,E)?m.getTypeAtLocation(ie):void 0;return De&&{kind:"",kindModifiers:"",textSpan:createTextSpanFromNode(ie,S),displayParts:m.runWithCancellationToken(x,ot=>typeToDisplayParts(ot,De,getContainerNode(ie))),documentation:De.symbol?De.symbol.getDocumentationComment(m):void 0,tags:De.symbol?De.symbol.getJsDocTags(m):void 0}}let{symbolKind:R,displayParts:me,documentation:Ae,tags:ke}=m.runWithCancellationToken(x,De=>ts_SymbolDisplay_exports.getSymbolDisplayPartsDocumentationAndSymbolKind(De,he,S,getContainerNode(ie),ie));return{kind:R,kindModifiers:ts_SymbolDisplay_exports.getSymbolModifiers(m,he),textSpan:createTextSpanFromNode(ie,S),displayParts:me,documentation:Ae,tags:ke}}function Pn(j){return x8(j.parent)&&j.pos===j.parent.pos?j.parent.expression:mb(j.parent)&&j.pos===j.parent.pos||k0(j.parent)&&j.parent.name===j||J_(j.parent)?j.parent:j}function $e(j,E,S){switch(E.kind){case 80:return!isLabelName(E)&&!isTagName(E)&&!mx(E.parent);case 210:case 165:return!isInComment(j,S);case 110:case 196:case 108:case 201:return!0;case 235:return k0(E);default:return!1}}function $t(j,E,S,J){return G(),ts_GoToDefinition_exports.getDefinitionAtPosition(d,B(j),E,S,J)}function jn(j,E){return G(),ts_GoToDefinition_exports.getDefinitionAndBoundSpan(d,B(j),E)}function Qt(j,E){return G(),ts_GoToDefinition_exports.getTypeDefinitionAtPosition(d.getTypeChecker(),B(j),E)}function fr(j,E){return G(),ts_FindAllReferences_exports.getImplementationsAtPosition(d,x,d.getSourceFiles(),B(j),E)}function Bn(j,E,S){let J=sr(j);M.assert(S.some(he=>sr(he)===J)),G();let m=Ka(S,he=>d.getSourceFile(he)),ie=B(j);return DocumentHighlights.getDocumentHighlights(d,x,ie,E,m)}function dn(j,E,S,J,m){G();let ie=B(j),he=getAdjustedRenameLocation(getTouchingPropertyName(ie,E));if(ts_Rename_exports.nodeIsEligibleForRename(he))if(Ce(he)&&(Ro(he.parent)||sf(he.parent))&&o3(he.escapedText)){let{openingElement:R,closingElement:me}=he.parent.parent;return[R,me].map(Ae=>{let ke=createTextSpanFromNode(Ae.tagName,ie);return{fileName:ie.fileName,textSpan:ke,...ts_FindAllReferences_exports.toContextSpan(ke,ie,Ae.parent)}})}else{let R=getQuotePreference(ie,m??emptyOptions),me=typeof m=="boolean"?m:m==null?void 0:m.providePrefixAndSuffixTextForRename;return vt(he,E,{findInStrings:S,findInComments:J,providePrefixAndSuffixTextForRename:me,use:ts_FindAllReferences_exports.FindReferencesUse.Rename},(Ae,ke,De)=>ts_FindAllReferences_exports.toRenameLocation(Ae,ke,De,me||!1,R))}}function Yt(j,E){return G(),vt(getTouchingPropertyName(B(j),E),E,{use:ts_FindAllReferences_exports.FindReferencesUse.References},ts_FindAllReferences_exports.toReferenceEntry)}function vt(j,E,S,J){G();let m=S&&S.use===ts_FindAllReferences_exports.FindReferencesUse.Rename?d.getSourceFiles().filter(ie=>!d.isSourceFileDefaultLibrary(ie)):d.getSourceFiles();return ts_FindAllReferences_exports.findReferenceOrRenameEntries(d,x,m,j,E,S,J)}function Un(j,E){return G(),ts_FindAllReferences_exports.findReferencedSymbols(d,x,d.getSourceFiles(),B(j),E)}function qn(j){return G(),ts_FindAllReferences_exports.Core.getReferencesForFileName(j,d,d.getSourceFiles()).map(ts_FindAllReferences_exports.toReferenceEntry)}function gt(j,E,S,J=!1){G();let m=S?[B(S)]:d.getSourceFiles();return getNavigateToItems(m,d.getTypeChecker(),x,j,E,J)}function lt(j,E,S){G();let J=B(j),m=e.getCustomTransformers&&e.getCustomTransformers();return getFileEmitOutput(d,J,!!E,x,m,S)}function Zt(j,E,{triggerReason:S}=emptyOptions){G();let J=B(j);return ts_SignatureHelp_exports.getSignatureHelpItems(d,J,E,S,x)}function zn(j){return l.getCurrentSourceFile(j)}function mt(j,E,S){let J=l.getCurrentSourceFile(j),m=getTouchingPropertyName(J,E);if(m===J)return;switch(m.kind){case 210:case 165:case 11:case 97:case 112:case 106:case 108:case 110:case 196:case 80:break;default:return}let ie=m;for(;;)if(isRightSideOfPropertyAccess(ie)||isRightSideOfQualifiedName(ie))ie=ie.parent;else if(isNameOfModuleDeclaration(ie))if(ie.parent.parent.kind===266&&ie.parent.parent.body===ie.parent)ie=ie.parent.parent.name;else break;else break;return zi(ie.getStart(),m.getEnd())}function mr(j,E){let S=l.getCurrentSourceFile(j);return ts_BreakpointResolver_exports.spanInSourceFileAtLocation(S,E)}function bt(j){return getNavigationBarItems(l.getCurrentSourceFile(j),x)}function cn(j){return getNavigationTree(l.getCurrentSourceFile(j),x)}function dt(j,E,S){return G(),(S||"original")==="2020"?getSemanticClassifications2(d,x,B(j),E):getSemanticClassifications(d.getTypeChecker(),x,B(j),d.getClassifiableNames(),E)}function Qn(j,E,S){return G(),(S||"original")==="original"?getEncodedSemanticClassifications(d.getTypeChecker(),x,B(j),d.getClassifiableNames(),E):getEncodedSemanticClassifications2(d,x,B(j),E)}function ut(j,E){return getSyntacticClassifications(x,l.getCurrentSourceFile(j),E)}function Jt(j,E){return getEncodedSyntacticClassifications(x,l.getCurrentSourceFile(j),E)}function ln(j){let E=l.getCurrentSourceFile(j);return ts_OutliningElementsCollector_exports.collectElements(E,x)}let yr=new Map(Object.entries({19:20,21:22,23:24,32:30}));yr.forEach((j,E)=>yr.set(j.toString(),Number(E)));function Mr(j,E){let S=l.getCurrentSourceFile(j),J=getTouchingToken(S,E),m=J.getStart(S)===E?yr.get(J.kind.toString()):void 0,ie=m&&findChildOfKind(J.parent,m,S);return ie?[createTextSpanFromNode(J,S),createTextSpanFromNode(ie,S)].sort((he,R)=>he.start-R.start):Xe}function ti(j,E,S){let J=da(),m=Zc(S),ie=l.getCurrentSourceFile(j);D("getIndentationAtPosition: getCurrentSourceFile: "+(da()-J)),J=da();let he=ts_formatting_exports.SmartIndenter.getIndentation(E,ie,m);return D("getIndentationAtPosition: computeIndentation : "+(da()-J)),he}function Wn(j,E,S,J){let m=l.getCurrentSourceFile(j);return ts_formatting_exports.formatSelection(E,S,m,ts_formatting_exports.getFormatContext(Zc(J),e))}function hr(j,E){return ts_formatting_exports.formatDocument(l.getCurrentSourceFile(j),ts_formatting_exports.getFormatContext(Zc(E),e))}function Ci(j,E,S,J){let m=l.getCurrentSourceFile(j),ie=ts_formatting_exports.getFormatContext(Zc(J),e);if(!isInComment(m,E))switch(S){case"{":return ts_formatting_exports.formatOnOpeningCurly(E,m,ie);case"}":return ts_formatting_exports.formatOnClosingCurly(E,m,ie);case";":return ts_formatting_exports.formatOnSemicolon(E,m,ie);case` -`:return ts_formatting_exports.formatOnEnter(E,m,ie)}return[]}function Ie(j,E,S,J,m,ie=emptyOptions){G();let he=B(j),R=zi(E,S),me=ts_formatting_exports.getFormatContext(m,e);return Wo(jv(J,to,wn),Ae=>(x.throwIfCancellationRequested(),ts_codefix_exports.getFixes({errorCode:Ae,sourceFile:he,span:R,program:d,host:e,cancellationToken:x,formatContext:me,preferences:ie})))}function H(j,E,S,J=emptyOptions){G(),M.assert(j.type==="file");let m=B(j.fileName),ie=ts_formatting_exports.getFormatContext(S,e);return ts_codefix_exports.getAllFixes({fixId:E,sourceFile:m,program:d,host:e,cancellationToken:x,formatContext:ie,preferences:J})}function de(j,E,S=emptyOptions){G(),M.assert(j.type==="file");let J=B(j.fileName),m=ts_formatting_exports.getFormatContext(E,e),ie=j.mode??(j.skipDestructiveCodeActions?"SortAndCombine":"All");return ts_OrganizeImports_exports.organizeImports(J,m,e,d,S,ie)}function be(j,E,S,J=emptyOptions){return getEditsForFileRename(oe(),j,E,e,ts_formatting_exports.getFormatContext(S,e),J,A)}function Ee(j,E){let S=typeof j=="string"?E:j;return Wt(S)?Promise.all(S.map(J=>et(J))):et(S)}function et(j){let E=S=>vi(S,h,g);return M.assertEqual(j.type,"install package"),e.installPackage?e.installPackage({fileName:E(j.file),packageName:j.packageName}):Promise.reject("Host does not implement `installPackage`")}function Qe(j,E,S,J){let m=J?ts_formatting_exports.getFormatContext(J,e).options:void 0;return ts_JsDoc_exports.getDocCommentTemplateAtPosition(getNewLineOrDefaultFromHost(e,m),l.getCurrentSourceFile(j),E,S)}function ee(j,E,S){if(S===60)return!1;let J=l.getCurrentSourceFile(j);if(isInString(J,E))return!1;if(isInsideJsxElementOrAttribute(J,E))return S===123;if(isInTemplateString(J,E))return!1;switch(S){case 39:case 34:case 96:return!isInComment(J,E)}return!0}function Z(j,E){let S=l.getCurrentSourceFile(j),J=findPrecedingToken(E,S);if(!J)return;let m=J.kind===32&&Ro(J.parent)?J.parent.parent:Hf(J)&&Z0(J.parent)?J.parent:void 0;if(m&&Nt(m))return{newText:``};let ie=J.kind===32&&Nb(J.parent)?J.parent.parent:Hf(J)&&ol(J.parent)?J.parent:void 0;if(ie&&Vn(ie))return{newText:""}}function ae(j,E){let S=l.getCurrentSourceFile(j),J=findPrecedingToken(E,S);if(!J||J.parent.kind===311)return;let m="[a-zA-Z0-9:\\-\\._$]*";if(ol(J.parent.parent)){let ie=J.parent.parent.openingFragment,he=J.parent.parent.closingFragment;if(ml(ie)||ml(he))return;let R=ie.getStart(S)+1,me=he.getStart(S)+2;return E!==R&&E!==me?void 0:{ranges:[{start:R,length:0},{start:me,length:0}],wordPattern:m}}else{let ie=Xr(J.parent,st=>!!(Ro(st)||sf(st)));if(!ie)return;M.assert(Ro(ie)||sf(ie),"tag should be opening or closing element");let he=ie.parent.openingElement,R=ie.parent.closingElement,me=he.tagName.getStart(S),Ae=he.tagName.end,ke=R.tagName.getStart(S),De=R.tagName.end;return!(me<=E&&E<=Ae||ke<=E&&E<=De)||he.tagName.getText(S)!==R.tagName.getText(S)?void 0:{ranges:[{start:me,length:Ae-me},{start:ke,length:De-ke}],wordPattern:m}}}function Te(j,E){return{lineStarts:j.getLineStarts(),firstLine:j.getLineAndCharacterOfPosition(E.pos).line,lastLine:j.getLineAndCharacterOfPosition(E.end).line}}function Oe(j,E,S){let J=l.getCurrentSourceFile(j),m=[],{lineStarts:ie,firstLine:he,lastLine:R}=Te(J,E),me=S||!1,Ae=Number.MAX_VALUE,ke=new Map,De=new RegExp(/\S/),ot=isInsideJsxElement(J,ie[he]),st=ot?"{/*":"//";for(let Ye=he;Ye<=R;Ye++){let Ft=J.text.substring(ie[Ye],J.getLineEndOfPosition(ie[Ye])),Et=De.exec(Ft);Et&&(Ae=Math.min(Ae,Et.index),ke.set(Ye.toString(),Et.index),Ft.substr(Et.index,st.length)!==st&&(me=S===void 0||S))}for(let Ye=he;Ye<=R;Ye++){if(he!==R&&ie[Ye]===E.end)continue;let Ft=ke.get(Ye.toString());Ft!==void 0&&(ot?m.push.apply(m,We(j,{pos:ie[Ye]+Ae,end:J.getLineEndOfPosition(ie[Ye])},me,ot)):me?m.push({newText:st,span:{length:0,start:ie[Ye]+Ae}}):J.text.substr(ie[Ye]+Ft,st.length)===st&&m.push({newText:"",span:{length:st.length,start:ie[Ye]+Ft}}))}return m}function We(j,E,S,J){var m;let ie=l.getCurrentSourceFile(j),he=[],{text:R}=ie,me=!1,Ae=S||!1,ke=[],{pos:De}=E,ot=J!==void 0?J:isInsideJsxElement(ie,De),st=ot?"{/*":"/*",Ye=ot?"*/}":"*/",Ft=ot?"\\{\\/\\*":"\\/\\*",Et=ot?"\\*\\/\\}":"\\*\\/";for(;De<=E.end;){let bn=R.substr(De,st.length)===st?st.length:0,Ct=isInComment(ie,De+bn);if(Ct)ot&&(Ct.pos--,Ct.end++),ke.push(Ct.pos),Ct.kind===3&&ke.push(Ct.end),me=!0,De=Ct.end+1;else{let Pe=R.substring(De,E.end).search(`(${Ft})|(${Et})`);Ae=S!==void 0?S:Ae||!isTextWhiteSpaceLike(R,De,Pe===-1?E.end:De+Pe),De=Pe===-1?E.end+1:De+Pe+Ye.length}}if(Ae||!me){((m=isInComment(ie,E.pos))==null?void 0:m.kind)!==2&&cl(ke,E.pos,wn),cl(ke,E.end,wn);let bn=ke[0];R.substr(bn,st.length)!==st&&he.push({newText:st,span:{length:0,start:bn}});for(let Ct=1;Ct0?bn-Ye.length:0,Pe=R.substr(Ct,Ye.length)===Ye?Ye.length:0;he.push({newText:"",span:{length:st.length,start:bn-Pe}})}return he}function Re(j,E){let S=l.getCurrentSourceFile(j),{firstLine:J,lastLine:m}=Te(S,E);return J===m&&E.pos!==E.end?We(j,E,!0):Oe(j,E,!0)}function Rt(j,E){let S=l.getCurrentSourceFile(j),J=[],{pos:m}=E,{end:ie}=E;m===ie&&(ie+=isInsideJsxElement(S,m)?2:1);for(let he=m;he<=ie;he++){let R=isInComment(S,he);if(R){switch(R.kind){case 2:J.push.apply(J,Oe(j,{end:R.end,pos:R.pos+1},!1));break;case 3:J.push.apply(J,We(j,{end:R.end,pos:R.pos+1},!1))}he=R.end+1}}return J}function Nt({openingElement:j,closingElement:E,parent:S}){return!gi(j.tagName,E.tagName)||Z0(S)&&gi(j.tagName,S.openingElement.tagName)&&Nt(S)}function Vn({closingFragment:j,parent:E}){return!!(j.flags&131072)||ol(E)&&Vn(E)}function ta(j,E,S){let J=l.getCurrentSourceFile(j),m=ts_formatting_exports.getRangeOfEnclosingComment(J,E);return m&&(!S||m.kind===3)?createTextSpanFromRange(m):void 0}function gr(j,E){G();let S=B(j);x.throwIfCancellationRequested();let J=S.text,m=[];if(E.length>0&&!me(S.fileName)){let Ae=he(),ke;for(;ke=Ae.exec(J);){x.throwIfCancellationRequested();let De=3;M.assert(ke.length===E.length+De);let ot=ke[1],st=ke.index+ot.length;if(!isInComment(S,st))continue;let Ye;for(let Et=0;Et"("+ie(Ct.text)+")").join("|")+")",Ye=/(?:$|\*\/)/.source,Ft=/(?:.*?)/.source,Et="("+st+Ft+")",bn=ot+Et+Ye;return new RegExp(bn,"gim")}function R(Ae){return Ae>=97&&Ae<=122||Ae>=65&&Ae<=90||Ae>=48&&Ae<=57}function me(Ae){return Ga(Ae,"/node_modules/")}}function ni(j,E,S){return G(),ts_Rename_exports.getRenameInfo(d,B(j),E,S||{})}function ri(j,E,S,J,m,ie){let[he,R]=typeof E=="number"?[E,void 0]:[E.pos,E.end];return{file:j,startPosition:he,endPosition:R,program:oe(),host:e,formatContext:ts_formatting_exports.getFormatContext(J,e),cancellationToken:x,preferences:S,triggerReason:m,kind:ie}}function na(j,E,S){return{file:j,program:oe(),host:e,span:E,preferences:S,cancellationToken:x}}function Pa(j,E){return ts_SmartSelectionRange_exports.getSmartSelectionRange(E,l.getCurrentSourceFile(j))}function br(j,E,S=emptyOptions,J,m,ie){G();let he=B(j);return ts_refactor_exports.getApplicableRefactors(ri(he,E,S,emptyOptions,J,m),ie)}function ii(j,E,S=emptyOptions){G();let J=B(j),m=M.checkDefined(d.getSourceFiles()),ie=Gc(j),he=Ka(m,me=>!(d!=null&&d.isSourceFileFromExternalLibrary(J))&&!(J===B(me.fileName)||ie===".ts"&&Gc(me.fileName)===".d.ts"||ie===".d.ts"&&Jn(h_(me.fileName),"lib.")&&Gc(me.fileName)===".d.ts")&&ie===Gc(me.fileName)?me.fileName:void 0);return{newFileName:createNewFileName(J,d,ri(J,E,S,emptyOptions),e),files:he}}function ai(j,E,S,J,m,ie=emptyOptions,he){G();let R=B(j);return ts_refactor_exports.getEditsForRefactor(ri(R,S,ie,E),J,m,he)}function ra(j,E){return E===0?{line:0,character:0}:A.toLineColumnOffset(j,E)}function Lr(j,E){G();let S=ts_CallHierarchy_exports.resolveCallHierarchyDeclaration(d,getTouchingPropertyName(B(j),E));return S&&mapOneOrMany(S,J=>ts_CallHierarchy_exports.createCallHierarchyItem(d,J))}function Nn(j,E){G();let S=B(j),J=firstOrOnly(ts_CallHierarchy_exports.resolveCallHierarchyDeclaration(d,E===0?S:getTouchingPropertyName(S,E)));return J?ts_CallHierarchy_exports.getIncomingCalls(d,J,x):[]}function Fe(j,E){G();let S=B(j),J=firstOrOnly(ts_CallHierarchy_exports.resolveCallHierarchyDeclaration(d,E===0?S:getTouchingPropertyName(S,E)));return J?ts_CallHierarchy_exports.getOutgoingCalls(d,J):[]}function ki(j,E,S=emptyOptions){G();let J=B(j);return ts_InlayHints_exports.provideInlayHints(na(J,E,S))}let wt={dispose:we,cleanupSemanticCache:se,getSyntacticDiagnostics:Ze,getSemanticDiagnostics:Ue,getSuggestionDiagnostics:rt,getCompilerOptionsDiagnostics:ct,getSyntacticClassifications:ut,getSemanticClassifications:dt,getEncodedSyntacticClassifications:Jt,getEncodedSemanticClassifications:Qn,getCompletionsAtPosition:Dn,getCompletionEntryDetails:sn,getCompletionEntrySymbol:ei,getSignatureHelpItems:Zt,getQuickInfoAtPosition:_n,getDefinitionAtPosition:$t,getDefinitionAndBoundSpan:jn,getImplementationAtPosition:fr,getTypeDefinitionAtPosition:Qt,getReferencesAtPosition:Yt,findReferences:Un,getFileReferences:qn,getDocumentHighlights:Bn,getNameOrDottedNameSpan:mt,getBreakpointStatementAtPosition:mr,getNavigateToItems:gt,getRenameInfo:ni,getSmartSelectionRange:Pa,findRenameLocations:dn,getNavigationBarItems:bt,getNavigationTree:cn,getOutliningSpans:ln,getTodoComments:gr,getBraceMatchingAtPosition:Mr,getIndentationAtPosition:ti,getFormattingEditsForRange:Wn,getFormattingEditsForDocument:hr,getFormattingEditsAfterKeystroke:Ci,getDocCommentTemplateAtPosition:Qe,isValidBraceCompletionAtPosition:ee,getJsxClosingTagAtPosition:Z,getLinkedEditingRangeAtPosition:ae,getSpanOfEnclosingComment:ta,getCodeFixesAtPosition:Ie,getCombinedCodeFix:H,applyCodeActionCommand:Ee,organizeImports:de,getEditsForFileRename:be,getEmitOutput:lt,getNonBoundSourceFile:zn,getProgram:oe,getCurrentProgram:()=>d,getAutoImportProvider:Q,updateIsDefinitionOfReferencedSymbols:W,getApplicableRefactors:br,getEditsForRefactor:ai,getMoveToRefactoringFileSuggestions:ii,toLineColumnOffset:ra,getSourceMapper:()=>A,clearSourceMapperCache:()=>A.clearCache(),prepareCallHierarchy:Lr,provideCallHierarchyIncomingCalls:Nn,provideCallHierarchyOutgoingCalls:Fe,toggleLineComment:Oe,toggleMultilineComment:We,commentSelection:Re,uncommentSelection:Rt,provideInlayHints:ki,getSupportedCodeFixes:E7};switch(s){case 0:break;case 1:ag.forEach(j=>wt[j]=()=>{throw new Error(`LanguageService Operation: ${j} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:B7.forEach(j=>wt[j]=()=>{throw new Error(`LanguageService Operation: ${j} not allowed in LanguageServiceMode.Syntactic`)});break;default:M.assertNever(s)}return wt}function qj(e){return e.nameTable||zj(e),e.nameTable}function zj(e){let t=e.nameTable=new Map;e.forEachChild(function n(i){if(Ce(i)&&!isTagName(i)&&i.escapedText||Ki(i)&&Wj(i)){let s=Y4(i);t.set(s,t.get(s)===void 0?i.pos:-1)}else if(Ln(i)){let s=i.escapedText;t.set(s,t.get(s)===void 0?i.pos:-1)}if(qt(i,n),Ui(i))for(let s of i.jsDoc)qt(s,n)})}function Wj(e){return B4(e)||e.parent.kind===282||Kj(e)||U4(e)}function A7(e){let t=Vj(e);return t&&(ao(t.parent)||Ib(t.parent))?t:void 0}function Vj(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===166)return S0(e.parent.parent)?e.parent.parent:void 0;case 80:return S0(e.parent)&&(e.parent.parent.kind===209||e.parent.parent.kind===291)&&e.parent.name===e?e.parent:void 0}}function Hj(e,t){let n=A7(e);if(n){let i=t.getContextualType(n.parent),s=i&&D7(n,t,i,!1);if(s&&s.length===1)return cg(s)}return t.getSymbolAtLocation(e)}function D7(e,t,n,i){let s=getNameFromPropertyName(e.name);if(!s)return Xe;if(!n.isUnion()){let d=n.getProperty(s);return d?[d]:Xe}let l=Ka(n.types,d=>(ao(e.parent)||Ib(e.parent))&&t.isTypeInvalidDueToUnionDiscriminant(d,e.parent)?void 0:d.getProperty(s));if(i&&(l.length===0||l.length===n.types.length)){let d=n.getProperty(s);if(d)return[d]}return l.length===0?Ka(n.types,d=>d.getProperty(s)):l}function Kj(e){return e&&e.parent&&e.parent.kind===211&&e.parent.argumentExpression===e}function Gj(e){if(h0)return yn(Hi(sr(h0.getExecutingFilePath())),RT(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var P7,$f,Kd,N7,Kb,Qf,Yf,I7,O7,M7,L7,J7,R7,F7,j7,ag,B7,Xj=Ht({"src/services/services.ts"(){"use strict";U7(),g7(),b7(),v7(),h7(),Jj(),P7="0.8",$f=class{constructor(e,t,n){this.pos=t,this.end=n,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}assertHasRealPosition(e){M.assert(!wa(this.pos)&&!wa(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Kr(this)}getStart(e,t){return this.assertHasRealPosition(),Qo(this,e,t)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=Rj(this,e))}getFirstToken(e){this.assertHasRealPosition();let t=this.getChildren(e);if(!t.length)return;let n=$n(t,i=>i.kind<315||i.kind>356);return n.kind<165?n:n.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let t=this.getChildren(e),n=Ti(t);if(n)return n.kind<165?n:n.getLastToken(e)}forEachChild(e,t){return qt(this,e,t)}},Kd=class{constructor(e,t){this.pos=e,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}getSourceFile(){return Kr(this)}getStart(e,t){return Qo(this,e,t)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(e){return this.getChildren()[e]}getChildren(){return this.kind===1&&this.jsDoc||Xe}getFirstToken(){}getLastToken(){}forEachChild(){}},N7=class{constructor(e,t){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=t}getFlags(){return this.flags}get name(){return Of(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=Xe,!this.declarations&&E0(this)&&this.links.target&&E0(this.links.target)&&this.links.target.links.tupleLabelDeclaration){let t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=Wc([t],e)}else this.documentationComment=Wc(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(Hc(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=Wc(Gn(this.declarations,Hc),t)),Ha(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(Vc(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=Wc(Gn(this.declarations,Vc),t)),Ha(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=Hd(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(Hc(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=Hd(Gn(this.declarations,Hc),t)),Ha(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(Vc(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=Hd(Gn(this.declarations,Vc),t)),Ha(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},Kb=class extends Kd{constructor(e,t,n){super(t,n),this.kind=e}},Qf=class extends Kd{constructor(e,t,n){super(t,n),this.kind=80}get text(){return Ot(this)}},Qf.prototype.kind=80,Yf=class extends Kd{constructor(e,t,n){super(t,n),this.kind=81}get text(){return Ot(this)}},Yf.prototype.kind=81,I7=class{constructor(e,t){this.checker=e,this.flags=t}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(this.flags&1048576)}isIntersection(){return!!(this.flags&2097152)}isUnionOrIntersection(){return!!(this.flags&3145728)}isLiteral(){return!!(this.flags&2432)}isStringLiteral(){return!!(this.flags&128)}isNumberLiteral(){return!!(this.flags&256)}isTypeParameter(){return!!(this.flags&262144)}isClassOrInterface(){return!!(tf(this)&3)}isClass(){return!!(tf(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(tf(this)&4)return this.checker.getTypeArguments(this)}},O7=class{constructor(e,t){this.checker=e,this.flags=t}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){let t=this.checker.getParameterType(this,e);if(t.isIndexType()&&xS(t.type)){let n=t.type.getConstraint();if(n)return this.checker.getIndexType(n)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=Wc(ff(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=Hd(ff(this.declaration),this.checker))}},M7=class extends $f{constructor(e,t,n){super(e,t,n),this.kind=311}update(e,t){return Vb(this,e,t)}getLineAndCharacterOfPosition(e){return Xa(this,e)}getLineStarts(){return xa(this)}getPositionOfLineAndCharacter(e,t,n){return wg(xa(this),e,t,this.text,n)}getLineEndOfPosition(e){let{line:t}=this.getLineAndCharacterOfPosition(e),n=this.getLineStarts(),i;t+1>=n.length&&(i=this.getEnd()),i||(i=n[t+1]-1);let s=this.getFullText();return s[i]===` -`&&s[i-1]==="\r"?i-1:i}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=nm();return this.forEachChild(s),e;function t(l){let d=i(l);d&&e.add(d,l)}function n(l){let d=e.get(l);return d||e.set(l,d=[]),d}function i(l){let d=ym(l);return d&&(Za(d)&&Rn(d.expression)?d.expression.name.text:Ml(d)?getNameFromPropertyName(d):void 0)}function s(l){switch(l.kind){case 261:case 217:case 173:case 172:let d=l,y=i(d);if(y){let h=n(y),D=Ti(h);D&&d.parent===D.parent&&d.symbol===D.symbol?d.body&&!D.body&&(h[h.length-1]=d):h.push(d)}qt(l,s);break;case 262:case 230:case 263:case 264:case 265:case 266:case 270:case 280:case 275:case 272:case 273:case 176:case 177:case 186:t(l),qt(l,s);break;case 168:if(!gn(l,16476))break;case 259:case 207:{let h=l;if(Sm(h.name)){qt(h.name,s);break}h.initializer&&s(h.initializer)}case 305:case 171:case 170:t(l);break;case 277:let p=l;p.exportClause&&(P8(p.exportClause)?hn(p.exportClause.elements,s):s(p.exportClause.name));break;case 271:let x=l.importClause;x&&(x.name&&t(x.name),x.namedBindings&&(x.namedBindings.kind===273?t(x.namedBindings):hn(x.namedBindings.elements,s)));break;case 225:Ca(l)!==0&&t(l);default:qt(l,s)}}}},L7=class{constructor(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n}getLineAndCharacterOfPosition(e){return Xa(this,e)}},J7=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,n,i,s,l,d,y,p;let x=this.host.getScriptSnapshot(e);if(!x)throw new Error("Could not find file: '"+e+"'.");let h=getScriptKind(e,this.host),D=this.host.getScriptVersion(e),w;if(this.currentFileName!==e){let g={languageVersion:99,impliedNodeFormat:getImpliedNodeFormatForFile(vi(e,this.host.getCurrentDirectory(),((i=(n=(t=this.host).getCompilerHost)==null?void 0:n.call(t))==null?void 0:i.getCanonicalFileName)||s3(this.host)),(p=(y=(d=(l=(s=this.host).getCompilerHost)==null?void 0:l.call(s))==null?void 0:d.getModuleResolutionCache)==null?void 0:y.call(d))==null?void 0:p.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:Z3(this.host.getCompilationSettings())};w=Hb(e,x,g,D,!0,h)}else if(this.currentFileVersion!==D){let g=x.getChangeRange(this.currentFileScriptSnapshot);w=k7(this.currentSourceFile,x,D,g)}return w&&(this.currentFileVersion=D,this.currentFileName=e,this.currentFileScriptSnapshot=x,this.currentSourceFile=w),this.currentSourceFile}},R7={isCancellationRequested:df,throwIfCancellationRequested:Nr},F7=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=fa)==null||e.instant(fa.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new Sf}},j7=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){let e=da();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=fa)==null||e.instant(fa.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new Sf}},ag=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],B7=[...ag,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],K3(jj())}}),$j=()=>{},Qj=()=>{},Yj=()=>{},Zj=()=>{},eB=()=>{},tB=()=>{},nB=()=>{},rB=()=>{},iB=()=>{},aB=()=>{},oB=()=>{},sB=()=>{},_B=()=>{},cB=()=>{},lB=()=>{},uB=()=>{},pB=()=>{},dB=()=>{},fB=()=>{},U7=Ht({"src/services/_namespaces/ts.ts"(){"use strict";En(),m7(),Cj(),y7(),kj(),h7(),Aj(),Dj(),Pj(),Nj(),Ij(),Oj(),Mj(),Lj(),Xj(),$j(),Qj(),Yj(),Zj(),eB(),tB(),nB(),rB(),iB(),aB(),oB(),g7(),b7(),sB(),_B(),v7(),cB(),lB(),uB(),pB(),dB(),fB()}}),mB=()=>{},q7={};PC(q7,{ANONYMOUS:()=>ANONYMOUS,AccessFlags:()=>Fh,AssertionLevel:()=>_h,AssignmentDeclarationKind:()=>Kh,AssignmentKind:()=>z0,Associativity:()=>V0,BreakpointResolver:()=>ts_BreakpointResolver_exports,BuilderFileEmit:()=>BuilderFileEmit,BuilderProgramKind:()=>BuilderProgramKind,BuilderState:()=>BuilderState,BundleFileSectionKind:()=>f0,CallHierarchy:()=>ts_CallHierarchy_exports,CharacterCodes:()=>s0,CheckFlags:()=>Oh,CheckMode:()=>CheckMode,ClassificationType:()=>ClassificationType,ClassificationTypeNames:()=>ClassificationTypeNames,CommentDirectiveType:()=>yh,Comparison:()=>nh,CompletionInfoFlags:()=>CompletionInfoFlags,CompletionTriggerKind:()=>CompletionTriggerKind,Completions:()=>ts_Completions_exports,ConfigFileProgramReloadLevel:()=>ConfigFileProgramReloadLevel,ContextFlags:()=>wh,CoreServicesShimHostAdapter:()=>CoreServicesShimHostAdapter,Debug:()=>M,DiagnosticCategory:()=>Af,Diagnostics:()=>K,DocumentHighlights:()=>DocumentHighlights,ElementFlags:()=>Rh,EmitFlags:()=>Nf,EmitHint:()=>u0,EmitOnly:()=>bh,EndOfLineState:()=>EndOfLineState,EnumKind:()=>Ih,ExitStatus:()=>Th,ExportKind:()=>ExportKind,Extension:()=>_0,ExternalEmitHelpers:()=>l0,FileIncludeKind:()=>hh,FilePreprocessingDiagnosticsKind:()=>gh,FileSystemEntryKind:()=>FileSystemEntryKind,FileWatcherEventKind:()=>FileWatcherEventKind,FindAllReferences:()=>ts_FindAllReferences_exports,FlattenLevel:()=>FlattenLevel,FlowFlags:()=>ul,ForegroundColorEscapeSequences:()=>ForegroundColorEscapeSequences,FunctionFlags:()=>W0,GeneratedIdentifierFlags:()=>fh,GetLiteralTextFlags:()=>q0,GoToDefinition:()=>ts_GoToDefinition_exports,HighlightSpanKind:()=>HighlightSpanKind,ImportKind:()=>ImportKind,ImportsNotUsedAsValues:()=>t0,IndentStyle:()=>IndentStyle,IndexFlags:()=>jh,IndexKind:()=>qh,InferenceFlags:()=>Vh,InferencePriority:()=>Wh,InlayHintKind:()=>InlayHintKind,InlayHints:()=>ts_InlayHints_exports,InternalEmitFlags:()=>c0,InternalSymbolName:()=>Mh,InvalidatedProjectKind:()=>InvalidatedProjectKind,JsDoc:()=>ts_JsDoc_exports,JsTyping:()=>ts_JsTyping_exports,JsxEmit:()=>e0,JsxFlags:()=>dh,JsxReferenceKind:()=>Bh,LanguageServiceMode:()=>LanguageServiceMode,LanguageServiceShimHostAdapter:()=>LanguageServiceShimHostAdapter,LanguageVariant:()=>a0,LexicalEnvironmentFlags:()=>d0,ListFormat:()=>m0,LogLevel:()=>lh,MemberOverrideStatus:()=>xh,ModifierFlags:()=>Tf,ModuleDetectionKind:()=>Xh,ModuleInstanceState:()=>ModuleInstanceState,ModuleKind:()=>Zh,ModuleResolutionKind:()=>Gh,ModuleSpecifierEnding:()=>$0,NavigateTo:()=>ts_NavigateTo_exports,NavigationBar:()=>ts_NavigationBar_exports,NewLineKind:()=>n0,NodeBuilderFlags:()=>Eh,NodeCheckFlags:()=>Lh,NodeFactoryFlags:()=>Q0,NodeFlags:()=>vf,NodeResolutionFeatures:()=>NodeResolutionFeatures,ObjectFlags:()=>Cf,OperationCanceledException:()=>Sf,OperatorPrecedence:()=>H0,OrganizeImports:()=>ts_OrganizeImports_exports,OrganizeImportsMode:()=>OrganizeImportsMode,OuterExpressionKinds:()=>p0,OutliningElementsCollector:()=>ts_OutliningElementsCollector_exports,OutliningSpanKind:()=>OutliningSpanKind,OutputFileType:()=>OutputFileType,PackageJsonAutoImportPreference:()=>PackageJsonAutoImportPreference,PackageJsonDependencyGroup:()=>PackageJsonDependencyGroup,PatternMatchKind:()=>PatternMatchKind,PollingInterval:()=>PollingInterval,PollingWatchKind:()=>Yh,PragmaKindFlags:()=>y0,PrivateIdentifierKind:()=>PrivateIdentifierKind,ProcessLevel:()=>ProcessLevel,QuotePreference:()=>QuotePreference,RelationComparisonResult:()=>xf,Rename:()=>ts_Rename_exports,ScriptElementKind:()=>ScriptElementKind,ScriptElementKindModifier:()=>ScriptElementKindModifier,ScriptKind:()=>r0,ScriptSnapshot:()=>ScriptSnapshot,ScriptTarget:()=>i0,SemanticClassificationFormat:()=>SemanticClassificationFormat,SemanticMeaning:()=>SemanticMeaning,SemicolonPreference:()=>SemicolonPreference,SignatureCheckMode:()=>SignatureCheckMode,SignatureFlags:()=>kf,SignatureHelp:()=>ts_SignatureHelp_exports,SignatureKind:()=>Uh,SmartSelectionRange:()=>ts_SmartSelectionRange_exports,SnippetKind:()=>Pf,SortKind:()=>oh,StructureIsReused:()=>vh,SymbolAccessibility:()=>Ah,SymbolDisplay:()=>ts_SymbolDisplay_exports,SymbolDisplayPartKind:()=>SymbolDisplayPartKind,SymbolFlags:()=>wf,SymbolFormatFlags:()=>kh,SyntaxKind:()=>bf,SyntheticSymbolKind:()=>Dh,Ternary:()=>Hh,ThrottledCancellationToken:()=>j7,TokenClass:()=>TokenClass,TokenFlags:()=>mh,TransformFlags:()=>Df,TypeFacts:()=>TypeFacts,TypeFlags:()=>Ef,TypeFormatFlags:()=>Ch,TypeMapKind:()=>zh,TypePredicateKind:()=>Ph,TypeReferenceSerializationKind:()=>Nh,TypeScriptServicesFactory:()=>TypeScriptServicesFactory,UnionReduction:()=>Sh,UpToDateStatusType:()=>UpToDateStatusType,VarianceFlags:()=>Jh,Version:()=>Version,VersionRange:()=>VersionRange,WatchDirectoryFlags:()=>o0,WatchDirectoryKind:()=>Qh,WatchFileKind:()=>$h,WatchLogLevel:()=>WatchLogLevel,WatchType:()=>WatchType,accessPrivateIdentifier:()=>accessPrivateIdentifier,addEmitFlags:()=>addEmitFlags,addEmitHelper:()=>addEmitHelper,addEmitHelpers:()=>addEmitHelpers,addInternalEmitFlags:()=>addInternalEmitFlags,addNodeFactoryPatcher:()=>yL,addObjectAllocatorPatcher:()=>JO,addRange:()=>Mn,addRelatedInfo:()=>Xc,addSyntheticLeadingComment:()=>addSyntheticLeadingComment,addSyntheticTrailingComment:()=>addSyntheticTrailingComment,addToSeen:()=>SO,advancedAsyncSuperHelper:()=>advancedAsyncSuperHelper,affectsDeclarationPathOptionDeclarations:()=>affectsDeclarationPathOptionDeclarations,affectsEmitOptionDeclarations:()=>affectsEmitOptionDeclarations,allKeysStartWithDot:()=>allKeysStartWithDot,altDirectorySeparator:()=>Sg,and:()=>t5,append:()=>Tt,appendIfUnique:()=>Uv,arrayFrom:()=>tm,arrayIsEqualTo:()=>o9,arrayIsHomogeneous:()=>qM,arrayIsSorted:()=>i9,arrayOf:()=>v9,arrayReverseIterator:()=>l9,arrayToMap:()=>x9,arrayToMultiMap:()=>Hv,arrayToNumericMap:()=>S9,arraysEqual:()=>Lv,assertType:()=>r5,assign:()=>T9,assignHelper:()=>assignHelper,asyncDelegator:()=>asyncDelegator,asyncGeneratorHelper:()=>asyncGeneratorHelper,asyncSuperHelper:()=>asyncSuperHelper,asyncValues:()=>asyncValues,attachFileToDiagnostics:()=>za,awaitHelper:()=>awaitHelper,awaiterHelper:()=>awaiterHelper,base64decode:()=>VI,base64encode:()=>WI,binarySearch:()=>El,binarySearchKey:()=>Wv,bindSourceFile:()=>bindSourceFile,breakIntoCharacterSpans:()=>breakIntoCharacterSpans,breakIntoWordSpans:()=>breakIntoWordSpans,buildLinkParts:()=>buildLinkParts,buildOpts:()=>buildOpts,buildOverload:()=>buildOverload,bundlerModuleNameResolver:()=>bundlerModuleNameResolver,canBeConvertedToAsync:()=>canBeConvertedToAsync,canHaveDecorators:()=>i7,canHaveExportModifier:()=>nL,canHaveFlowNode:()=>dN,canHaveIllegalDecorators:()=>OR,canHaveIllegalModifiers:()=>MR,canHaveIllegalType:()=>IR,canHaveIllegalTypeParameters:()=>t7,canHaveJSDoc:()=>Om,canHaveLocals:()=>gA,canHaveModifiers:()=>R_,canHaveSymbol:()=>hA,canJsonReportNoInputFiles:()=>canJsonReportNoInputFiles,canProduceDiagnostics:()=>canProduceDiagnostics,canUsePropertyAccess:()=>rL,canWatchAffectingLocation:()=>canWatchAffectingLocation,canWatchAtTypes:()=>canWatchAtTypes,canWatchDirectoryOrFile:()=>canWatchDirectoryOrFile,cartesianProduct:()=>a5,cast:()=>mi,chainBundle:()=>chainBundle,chainDiagnosticMessages:()=>Kc,changeAnyExtension:()=>dT,changeCompilerHostLikeToUseCache:()=>changeCompilerHostLikeToUseCache,changeExtension:()=>EM,changesAffectModuleResolution:()=>FA,changesAffectingProgramStructure:()=>jA,childIsDecorated:()=>l2,classElementOrClassElementParameterIsDecorated:()=>JP,classOrConstructorParameterIsDecorated:()=>LP,classPrivateFieldGetHelper:()=>classPrivateFieldGetHelper,classPrivateFieldInHelper:()=>classPrivateFieldInHelper,classPrivateFieldSetHelper:()=>classPrivateFieldSetHelper,classicNameResolver:()=>classicNameResolver,classifier:()=>ts_classifier_exports,cleanExtendedConfigCache:()=>cleanExtendedConfigCache,clear:()=>BC,clearMap:()=>hO,clearSharedExtendedConfigFileWatcher:()=>clearSharedExtendedConfigFileWatcher,climbPastPropertyAccess:()=>climbPastPropertyAccess,climbPastPropertyOrElementAccess:()=>climbPastPropertyOrElementAccess,clone:()=>C9,cloneCompilerOptions:()=>cloneCompilerOptions,closeFileWatcher:()=>lO,closeFileWatcherOf:()=>closeFileWatcherOf,codefix:()=>ts_codefix_exports,collapseTextChangeRangesAcrossMultipleVersions:()=>tk,collectExternalModuleInfo:()=>collectExternalModuleInfo,combine:()=>c9,combinePaths:()=>yn,commentPragmas:()=>om,commonOptionsWithBuild:()=>commonOptionsWithBuild,commonPackageFolders:()=>G0,compact:()=>s9,compareBooleans:()=>V9,compareDataObjects:()=>q3,compareDiagnostics:()=>q2,compareDiagnosticsSkipRelatedInformation:()=>Uf,compareEmitHelpers:()=>compareEmitHelpers,compareNumberOfDirectorySeparators:()=>wM,comparePaths:()=>N5,comparePathsCaseInsensitive:()=>P5,comparePathsCaseSensitive:()=>D5,comparePatternKeys:()=>comparePatternKeys,compareProperties:()=>W9,compareStringsCaseInsensitive:()=>rm,compareStringsCaseInsensitiveEslintCompatible:()=>U9,compareStringsCaseSensitive:()=>xi,compareStringsCaseSensitiveUI:()=>z9,compareTextSpans:()=>j9,compareValues:()=>wn,compileOnSaveCommandLineOption:()=>compileOnSaveCommandLineOption,compilerOptionsAffectDeclarationPath:()=>aM,compilerOptionsAffectEmit:()=>iM,compilerOptionsAffectSemanticDiagnostics:()=>rM,compilerOptionsDidYouMeanDiagnostics:()=>compilerOptionsDidYouMeanDiagnostics,compilerOptionsIndicateEsModules:()=>compilerOptionsIndicateEsModules,compose:()=>F9,computeCommonSourceDirectoryOfFilenames:()=>computeCommonSourceDirectoryOfFilenames,computeLineAndCharacterOfPosition:()=>Eg,computeLineOfPosition:()=>a_,computeLineStarts:()=>cm,computePositionOfLineAndCharacter:()=>wg,computeSignature:()=>computeSignature,computeSignatureWithDiagnostics:()=>computeSignatureWithDiagnostics,computeSuggestionDiagnostics:()=>computeSuggestionDiagnostics,concatenate:()=>d_,concatenateDiagnosticMessageChains:()=>BO,consumesNodeCoreModules:()=>consumesNodeCoreModules,contains:()=>ns,containsIgnoredPath:()=>bS,containsObjectRestOrSpread:()=>Wb,containsParseError:()=>ml,containsPath:()=>fT,convertCompilerOptionsForTelemetry:()=>convertCompilerOptionsForTelemetry,convertCompilerOptionsFromJson:()=>convertCompilerOptionsFromJson,convertJsonOption:()=>convertJsonOption,convertToBase64:()=>M3,convertToJson:()=>convertToJson,convertToObject:()=>convertToObject,convertToOptionsWithAbsolutePaths:()=>convertToOptionsWithAbsolutePaths,convertToRelativePath:()=>O5,convertToTSConfig:()=>convertToTSConfig,convertTypeAcquisitionFromJson:()=>convertTypeAcquisitionFromJson,copyComments:()=>copyComments,copyEntries:()=>zA,copyLeadingComments:()=>copyLeadingComments,copyProperties:()=>A9,copyTrailingAsLeadingComments:()=>copyTrailingAsLeadingComments,copyTrailingComments:()=>copyTrailingComments,couldStartTrivia:()=>U5,countWhere:()=>FC,createAbstractBuilder:()=>createAbstractBuilder,createAccessorPropertyBackingField:()=>pF,createAccessorPropertyGetRedirector:()=>dF,createAccessorPropertySetRedirector:()=>fF,createBaseNodeFactory:()=>QS,createBinaryExpressionTrampoline:()=>aF,createBindingHelper:()=>createBindingHelper,createBuildInfo:()=>createBuildInfo,createBuilderProgram:()=>createBuilderProgram,createBuilderProgramUsingProgramBuildInfo:()=>createBuilderProgramUsingProgramBuildInfo,createBuilderStatusReporter:()=>createBuilderStatusReporter,createCacheWithRedirects:()=>createCacheWithRedirects,createCacheableExportInfoMap:()=>createCacheableExportInfoMap,createCachedDirectoryStructureHost:()=>createCachedDirectoryStructureHost,createClassifier:()=>createClassifier,createCommentDirectivesMap:()=>fD,createCompilerDiagnostic:()=>al,createCompilerDiagnosticForInvalidCustomType:()=>createCompilerDiagnosticForInvalidCustomType,createCompilerDiagnosticFromMessageChain:()=>jO,createCompilerHost:()=>createCompilerHost,createCompilerHostFromProgramHost:()=>createCompilerHostFromProgramHost,createCompilerHostWorker:()=>createCompilerHostWorker,createDetachedDiagnostic:()=>No,createDiagnosticCollection:()=>QN,createDiagnosticForFileFromMessageChain:()=>VD,createDiagnosticForNode:()=>UD,createDiagnosticForNodeArray:()=>qD,createDiagnosticForNodeArrayFromMessageChain:()=>WD,createDiagnosticForNodeFromMessageChain:()=>zD,createDiagnosticForNodeInSourceFile:()=>o4,createDiagnosticForRange:()=>KD,createDiagnosticMessageChainFromDiagnostic:()=>HD,createDiagnosticReporter:()=>createDiagnosticReporter,createDocumentPositionMapper:()=>createDocumentPositionMapper,createDocumentRegistry:()=>createDocumentRegistry,createDocumentRegistryInternal:()=>createDocumentRegistryInternal,createEmitAndSemanticDiagnosticsBuilderProgram:()=>createEmitAndSemanticDiagnosticsBuilderProgram,createEmitHelperFactory:()=>createEmitHelperFactory,createEmptyExports:()=>oR,createExpressionForJsxElement:()=>_R,createExpressionForJsxFragment:()=>cR,createExpressionForObjectLiteralElementLike:()=>yR,createExpressionForPropertyName:()=>W8,createExpressionFromEntityName:()=>z8,createExternalHelpersImportDeclarationIfNeeded:()=>ER,createFileDiagnostic:()=>U2,createFileDiagnosticFromMessageChain:()=>t2,createForOfBindingStatement:()=>lR,createGetCanonicalFileName:()=>im,createGetSourceFile:()=>createGetSourceFile,createGetSymbolAccessibilityDiagnosticForNode:()=>createGetSymbolAccessibilityDiagnosticForNode,createGetSymbolAccessibilityDiagnosticForNodeName:()=>createGetSymbolAccessibilityDiagnosticForNodeName,createGetSymbolWalker:()=>createGetSymbolWalker,createIncrementalCompilerHost:()=>createIncrementalCompilerHost,createIncrementalProgram:()=>createIncrementalProgram,createInputFiles:()=>wL,createInputFilesWithFilePaths:()=>e8,createInputFilesWithFileTexts:()=>t8,createJsxFactoryExpression:()=>q8,createLanguageService:()=>Uj,createLanguageServiceSourceFile:()=>Hb,createMemberAccessForPropertyName:()=>n1,createModeAwareCache:()=>createModeAwareCache,createModeAwareCacheKey:()=>createModeAwareCacheKey,createModuleNotFoundChain:()=>QA,createModuleResolutionCache:()=>createModuleResolutionCache,createModuleResolutionLoader:()=>createModuleResolutionLoader,createModuleSpecifierResolutionHost:()=>createModuleSpecifierResolutionHost,createMultiMap:()=>nm,createNodeConverters:()=>YS,createNodeFactory:()=>Vf,createOptionNameMap:()=>createOptionNameMap,createOverload:()=>createOverload,createPackageJsonImportFilter:()=>createPackageJsonImportFilter,createPackageJsonInfo:()=>createPackageJsonInfo,createParenthesizerRules:()=>createParenthesizerRules,createPatternMatcher:()=>createPatternMatcher,createPrependNodes:()=>createPrependNodes,createPrinter:()=>createPrinter,createPrinterWithDefaults:()=>createPrinterWithDefaults,createPrinterWithRemoveComments:()=>createPrinterWithRemoveComments,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>createPrinterWithRemoveCommentsNeverAsciiEscape,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>createPrinterWithRemoveCommentsOmitTrailingSemicolon,createProgram:()=>createProgram,createProgramHost:()=>createProgramHost,createPropertyNameNodeForIdentifierOrLiteral:()=>ZM,createQueue:()=>N9,createRange:()=>Bm,createRedirectedBuilderProgram:()=>createRedirectedBuilderProgram,createResolutionCache:()=>createResolutionCache,createRuntimeTypeSerializer:()=>createRuntimeTypeSerializer,createScanner:()=>as,createSemanticDiagnosticsBuilderProgram:()=>createSemanticDiagnosticsBuilderProgram,createSet:()=>I9,createSolutionBuilder:()=>createSolutionBuilder,createSolutionBuilderHost:()=>createSolutionBuilderHost,createSolutionBuilderWithWatch:()=>createSolutionBuilderWithWatch,createSolutionBuilderWithWatchHost:()=>createSolutionBuilderWithWatchHost,createSortedArray:()=>r9,createSourceFile:()=>_7,createSourceMapGenerator:()=>createSourceMapGenerator,createSourceMapSource:()=>EL,createSuperAccessVariableStatement:()=>createSuperAccessVariableStatement,createSymbolTable:()=>JA,createSymlinkCache:()=>lM,createSystemWatchFunctions:()=>createSystemWatchFunctions,createTextChange:()=>createTextChange,createTextChangeFromStartLength:()=>createTextChangeFromStartLength,createTextChangeRange:()=>pm,createTextRangeFromNode:()=>createTextRangeFromNode,createTextRangeFromSpan:()=>createTextRangeFromSpan,createTextSpan:()=>v_,createTextSpanFromBounds:()=>zi,createTextSpanFromNode:()=>createTextSpanFromNode,createTextSpanFromRange:()=>createTextSpanFromRange,createTextSpanFromStringLiteralLikeContent:()=>createTextSpanFromStringLiteralLikeContent,createTextWriter:()=>aI,createTokenRange:()=>$I,createTypeChecker:()=>createTypeChecker,createTypeReferenceDirectiveResolutionCache:()=>createTypeReferenceDirectiveResolutionCache,createTypeReferenceResolutionLoader:()=>createTypeReferenceResolutionLoader,createUnparsedSourceFile:()=>TL,createWatchCompilerHost:()=>createWatchCompilerHost2,createWatchCompilerHostOfConfigFile:()=>createWatchCompilerHostOfConfigFile,createWatchCompilerHostOfFilesAndCompilerOptions:()=>createWatchCompilerHostOfFilesAndCompilerOptions,createWatchFactory:()=>createWatchFactory,createWatchHost:()=>createWatchHost,createWatchProgram:()=>createWatchProgram,createWatchStatusReporter:()=>createWatchStatusReporter,createWriteFileMeasuringIO:()=>createWriteFileMeasuringIO,declarationNameToString:()=>a4,decodeMappings:()=>decodeMappings,decodedTextSpanIntersectsWith:()=>Dg,decorateHelper:()=>decorateHelper,deduplicate:()=>jv,defaultIncludeSpec:()=>defaultIncludeSpec,defaultInitCompilerOptions:()=>defaultInitCompilerOptions,defaultMaximumTruncationLength:()=>DS,detectSortCaseSensitivity:()=>a9,diagnosticCategoryName:()=>b5,diagnosticToString:()=>diagnosticToString,directoryProbablyExists:()=>J3,directorySeparator:()=>_r,displayPart:()=>displayPart,displayPartsToString:()=>Bj,disposeEmitNodes:()=>disposeEmitNodes,documentSpansEqual:()=>documentSpansEqual,dumpTracingLegend:()=>dumpTracingLegend,elementAt:()=>oT,elideNodes:()=>_F,emitComments:()=>b3,emitDetachedComments:()=>SI,emitFiles:()=>emitFiles,emitFilesAndReportErrors:()=>emitFilesAndReportErrors,emitFilesAndReportErrorsAndGetExitStatus:()=>emitFilesAndReportErrorsAndGetExitStatus,emitModuleKindIsNonNodeESM:()=>WO,emitNewLineBeforeLeadingCommentOfPosition:()=>xI,emitNewLineBeforeLeadingComments:()=>h3,emitNewLineBeforeLeadingCommentsOfPosition:()=>g3,emitSkippedWithNoDiagnostics:()=>emitSkippedWithNoDiagnostics,emitUsingBuildInfo:()=>emitUsingBuildInfo,emptyArray:()=>Xe,emptyFileSystemEntries:()=>$S,emptyMap:()=>mg,emptyOptions:()=>emptyOptions,emptySet:()=>aT,endsWith:()=>rs,ensurePathIsNonModuleName:()=>bg,ensureScriptKind:()=>oS,ensureTrailingDirectorySeparator:()=>Ko,entityNameToString:()=>hi,enumerateInsertsAndDeletes:()=>i5,equalOwnProperties:()=>Vv,equateStringsCaseInsensitive:()=>i_,equateStringsCaseSensitive:()=>Cl,equateValues:()=>to,esDecorateHelper:()=>esDecorateHelper,escapeJsxAttributeString:()=>a3,escapeLeadingUnderscores:()=>Ur,escapeNonAsciiString:()=>jf,escapeSnippetText:()=>YM,escapeString:()=>Ff,every:()=>eo,expandPreOrPostfixIncrementOrDecrementExpression:()=>hR,explainFiles:()=>explainFiles,explainIfFileIsRedirectAndImpliedFormat:()=>explainIfFileIsRedirectAndImpliedFormat,exportAssignmentIsAlias:()=>I0,exportStarHelper:()=>exportStarHelper,expressionResultIsUnused:()=>HM,extend:()=>k9,extendsHelper:()=>extendsHelper,extensionFromPath:()=>Gc,extensionIsTS:()=>fS,extensionsNotSupportingExtensionlessResolution:()=>Wm,externalHelpersModuleNameText:()=>zm,factory:()=>Dr,fileExtensionIs:()=>Ea,fileExtensionIsOneOf:()=>Wr,fileIncludeReasonToDiagnostics:()=>fileIncludeReasonToDiagnostics,fileShouldUseJavaScriptRequire:()=>fileShouldUseJavaScriptRequire,filter:()=>Gn,filterMutate:()=>jC,filterSemanticDiagnostics:()=>filterSemanticDiagnostics,find:()=>$n,findAncestor:()=>Xr,findBestPatternMatch:()=>tT,findChildOfKind:()=>findChildOfKind,findComputedPropertyNameCacheAssignment:()=>mF,findConfigFile:()=>findConfigFile,findContainingList:()=>findContainingList,findDiagnosticForNode:()=>findDiagnosticForNode,findFirstNonJsxWhitespaceToken:()=>findFirstNonJsxWhitespaceToken,findIndex:()=>el,findLast:()=>sg,findLastIndex:()=>JC,findListItemInfo:()=>findListItemInfo,findMap:()=>RC,findModifier:()=>findModifier,findNextToken:()=>findNextToken,findPackageJson:()=>findPackageJson,findPackageJsons:()=>findPackageJsons,findPrecedingMatchingToken:()=>findPrecedingMatchingToken,findPrecedingToken:()=>findPrecedingToken,findSuperStatementIndex:()=>findSuperStatementIndex,findTokenOnLeftOfPosition:()=>findTokenOnLeftOfPosition,findUseStrictPrologue:()=>H8,first:()=>cg,firstDefined:()=>og,firstDefinedIterator:()=>OC,firstIterator:()=>d9,firstOrOnly:()=>firstOrOnly,firstOrUndefined:()=>f_,firstOrUndefinedIterator:()=>p9,fixupCompilerOptions:()=>fixupCompilerOptions,flatMap:()=>Wo,flatMapIterator:()=>zC,flatMapToMutable:()=>Rv,flatten:()=>r_,flattenCommaList:()=>hF,flattenDestructuringAssignment:()=>flattenDestructuringAssignment,flattenDestructuringBinding:()=>flattenDestructuringBinding,flattenDiagnosticMessageText:()=>flattenDiagnosticMessageText,forEach:()=>hn,forEachAncestor:()=>BA,forEachAncestorDirectory:()=>yT,forEachChild:()=>qt,forEachChildRecursively:()=>rg,forEachEmittedFile:()=>forEachEmittedFile,forEachEnclosingBlockScopeContainer:()=>RD,forEachEntry:()=>UA,forEachExternalModuleToImportFrom:()=>forEachExternalModuleToImportFrom,forEachImportClauseDeclaration:()=>_N,forEachKey:()=>qA,forEachLeadingCommentRange:()=>q5,forEachNameInAccessChainWalkingLeft:()=>AO,forEachPropertyAssignment:()=>_2,forEachResolvedProjectReference:()=>forEachResolvedProjectReference,forEachReturnStatement:()=>iP,forEachRight:()=>IC,forEachTrailingCommentRange:()=>z5,forEachTsConfigPropArray:()=>d4,forEachUnique:()=>forEachUnique,forEachYieldExpression:()=>aP,forSomeAncestorDirectory:()=>vO,formatColorAndReset:()=>formatColorAndReset,formatDiagnostic:()=>formatDiagnostic,formatDiagnostics:()=>formatDiagnostics,formatDiagnosticsWithColorAndContext:()=>formatDiagnosticsWithColorAndContext,formatGeneratedName:()=>Gf,formatGeneratedNamePart:()=>ng,formatLocation:()=>formatLocation,formatMessage:()=>FO,formatStringFromArgs:()=>C_,formatting:()=>ts_formatting_exports,fullTripleSlashAMDReferencePathRegEx:()=>tb,fullTripleSlashReferencePathRegEx:()=>eb,generateDjb2Hash:()=>generateDjb2Hash,generateTSConfig:()=>generateTSConfig,generatorHelper:()=>generatorHelper,getAdjustedReferenceLocation:()=>getAdjustedReferenceLocation,getAdjustedRenameLocation:()=>getAdjustedRenameLocation,getAliasDeclarationFromName:()=>q4,getAllAccessorDeclarations:()=>O2,getAllDecoratorsOfClass:()=>getAllDecoratorsOfClass,getAllDecoratorsOfClassElement:()=>getAllDecoratorsOfClassElement,getAllJSDocTags:()=>px,getAllJSDocTagsOfKind:()=>hk,getAllKeys:()=>g9,getAllProjectOutputs:()=>getAllProjectOutputs,getAllSuperTypeNodes:()=>K4,getAllUnscopedEmitHelpers:()=>getAllUnscopedEmitHelpers,getAllowJSCompilerOption:()=>nS,getAllowSyntheticDefaultImports:()=>$O,getAncestor:()=>PN,getAnyExtensionFromPath:()=>If,getAreDeclarationMapsEnabled:()=>XO,getAssignedExpandoInitializer:()=>$P,getAssignedName:()=>$T,getAssignmentDeclarationKind:()=>Ca,getAssignmentDeclarationPropertyAccessKind:()=>k4,getAssignmentTargetKind:()=>R4,getAutomaticTypeDirectiveNames:()=>getAutomaticTypeDirectiveNames,getBaseFileName:()=>h_,getBinaryOperatorPrecedence:()=>il,getBuildInfo:()=>getBuildInfo,getBuildInfoFileVersionMap:()=>getBuildInfoFileVersionMap,getBuildInfoText:()=>getBuildInfoText,getBuildOrderFromAnyBuildOrder:()=>getBuildOrderFromAnyBuildOrder,getBuilderCreationParameters:()=>getBuilderCreationParameters,getBuilderFileEmit:()=>getBuilderFileEmit,getCheckFlags:()=>U3,getClassExtendsHeritageElement:()=>V4,getClassLikeDeclarationOfSymbol:()=>W3,getCombinedLocalAndExportSymbolFlags:()=>dO,getCombinedModifierFlags:()=>dm,getCombinedNodeFlags:()=>fm,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>rk,getCommentRange:()=>getCommentRange,getCommonSourceDirectory:()=>getCommonSourceDirectory,getCommonSourceDirectoryOfConfig:()=>getCommonSourceDirectoryOfConfig,getCompilerOptionValue:()=>U0,getCompilerOptionsDiffValue:()=>getCompilerOptionsDiffValue,getConditions:()=>getConditions,getConfigFileParsingDiagnostics:()=>getConfigFileParsingDiagnostics,getConstantValue:()=>getConstantValue,getContainerNode:()=>getContainerNode,getContainingClass:()=>TP,getContainingClassStaticBlock:()=>xP,getContainingFunction:()=>bP,getContainingFunctionDeclaration:()=>vP,getContainingFunctionOrClassStaticBlock:()=>SP,getContainingNodeArray:()=>KM,getContainingObjectLiteralElement:()=>A7,getContextualTypeFromParent:()=>getContextualTypeFromParent,getContextualTypeFromParentOrAncestorTypeNode:()=>getContextualTypeFromParentOrAncestorTypeNode,getCurrentTime:()=>getCurrentTime,getDeclarationDiagnostics:()=>getDeclarationDiagnostics,getDeclarationEmitExtensionForPath:()=>l3,getDeclarationEmitOutputFilePath:()=>cI,getDeclarationEmitOutputFilePathWorker:()=>c3,getDeclarationFromName:()=>CN,getDeclarationModifierFlagsFromSymbol:()=>uO,getDeclarationOfKind:()=>MA,getDeclarationsOfKind:()=>LA,getDeclaredExpandoInitializer:()=>GP,getDecorators:()=>ak,getDefaultCompilerOptions:()=>w7,getDefaultExportInfoWorker:()=>getDefaultExportInfoWorker,getDefaultFormatCodeSettings:()=>getDefaultFormatCodeSettings,getDefaultLibFileName:()=>RT,getDefaultLibFilePath:()=>Gj,getDefaultLikeExportInfo:()=>getDefaultLikeExportInfo,getDiagnosticText:()=>getDiagnosticText,getDiagnosticsWithinSpan:()=>getDiagnosticsWithinSpan,getDirectoryPath:()=>Hi,getDirectoryToWatchFailedLookupLocation:()=>getDirectoryToWatchFailedLookupLocation,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>getDirectoryToWatchFailedLookupLocationFromTypeRoot,getDocumentPositionMapper:()=>getDocumentPositionMapper,getESModuleInterop:()=>W2,getEditsForFileRename:()=>getEditsForFileRename,getEffectiveBaseTypeNode:()=>W4,getEffectiveConstraintOfTypeParameter:()=>Tk,getEffectiveContainerForJSDocTemplateTag:()=>mN,getEffectiveImplementsTypeNodes:()=>H4,getEffectiveInitializer:()=>S4,getEffectiveJSDocHost:()=>v2,getEffectiveModifierFlags:()=>Fm,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>E3,getEffectiveModifierFlagsNoCache:()=>k3,getEffectiveReturnTypeNode:()=>bI,getEffectiveSetAccessorTypeAnnotationNode:()=>TI,getEffectiveTypeAnnotationNode:()=>M2,getEffectiveTypeParameterDeclarations:()=>vk,getEffectiveTypeRoots:()=>getEffectiveTypeRoots,getElementOrPropertyAccessArgumentExpressionOrName:()=>Im,getElementOrPropertyAccessName:()=>Ya,getElementsOfBindingOrAssignmentPattern:()=>e7,getEmitDeclarations:()=>H2,getEmitFlags:()=>Vr,getEmitHelpers:()=>getEmitHelpers,getEmitModuleDetectionKind:()=>eS,getEmitModuleKind:()=>Gr,getEmitModuleResolutionKind:()=>A_,getEmitScriptTarget:()=>Um,getEnclosingBlockScopeContainer:()=>C0,getEncodedSemanticClassifications:()=>getEncodedSemanticClassifications,getEncodedSyntacticClassifications:()=>getEncodedSyntacticClassifications,getEndLinePosition:()=>Hx,getEntityNameFromTypeNode:()=>OP,getEntrypointsFromPackageJsonInfo:()=>getEntrypointsFromPackageJsonInfo,getErrorCountForSummary:()=>getErrorCountForSummary,getErrorSpanForNode:()=>n2,getErrorSummaryText:()=>getErrorSummaryText,getEscapedTextOfIdentifierOrLiteral:()=>Y4,getEscapedTextOfJsxAttributeName:()=>_L,getEscapedTextOfJsxNamespacedName:()=>Ul,getExpandoInitializer:()=>x_,getExportAssignmentExpression:()=>z4,getExportInfoMap:()=>getExportInfoMap,getExportNeedsImportStarHelper:()=>getExportNeedsImportStarHelper,getExpressionAssociativity:()=>GN,getExpressionPrecedence:()=>XN,getExternalHelpersModuleName:()=>X8,getExternalModuleImportEqualsDeclarationExpression:()=>FP,getExternalModuleName:()=>h2,getExternalModuleNameFromDeclaration:()=>sI,getExternalModuleNameFromPath:()=>D2,getExternalModuleNameLiteral:()=>kR,getExternalModuleRequireArgument:()=>jP,getFallbackOptions:()=>getFallbackOptions,getFileEmitOutput:()=>getFileEmitOutput,getFileMatcherPatterns:()=>aS,getFileNamesFromConfigSpecs:()=>getFileNamesFromConfigSpecs,getFileWatcherEventKind:()=>getFileWatcherEventKind,getFilesInErrorForSummary:()=>getFilesInErrorForSummary,getFirstConstructorWithBody:()=>d3,getFirstIdentifier:()=>MI,getFirstNonSpaceCharacterPosition:()=>getFirstNonSpaceCharacterPosition,getFirstProjectOutput:()=>getFirstProjectOutput,getFixableErrorSpanExpression:()=>getFixableErrorSpanExpression,getFormatCodeSettingsForWriting:()=>getFormatCodeSettingsForWriting,getFullWidth:()=>Em,getFunctionFlags:()=>JN,getHeritageClause:()=>Mm,getHostSignatureFromJSDoc:()=>b2,getIdentifierAutoGenerate:()=>getIdentifierAutoGenerate,getIdentifierGeneratedImportReference:()=>getIdentifierGeneratedImportReference,getIdentifierTypeArguments:()=>getIdentifierTypeArguments,getImmediatelyInvokedFunctionExpression:()=>AP,getImpliedNodeFormatForFile:()=>getImpliedNodeFormatForFile,getImpliedNodeFormatForFileWorker:()=>getImpliedNodeFormatForFileWorker,getImportNeedsImportDefaultHelper:()=>getImportNeedsImportDefaultHelper,getImportNeedsImportStarHelper:()=>getImportNeedsImportStarHelper,getIndentSize:()=>Bo,getIndentString:()=>k2,getInferredLibraryNameResolveFrom:()=>getInferredLibraryNameResolveFrom,getInitializedVariables:()=>_O,getInitializerOfBinaryExpression:()=>A4,getInitializerOfBindingOrAssignmentElement:()=>Y8,getInterfaceBaseTypeNodes:()=>G4,getInternalEmitFlags:()=>bD,getInvokedExpression:()=>MP,getIsolatedModules:()=>z2,getJSDocAugmentsTag:()=>nx,getJSDocClassTag:()=>sk,getJSDocCommentRanges:()=>c4,getJSDocCommentsAndTags:()=>M4,getJSDocDeprecatedTag:()=>pk,getJSDocDeprecatedTagNoCache:()=>cx,getJSDocEnumTag:()=>dk,getJSDocHost:()=>J4,getJSDocImplementsTags:()=>rx,getJSDocOverrideTagNoCache:()=>_x,getJSDocParameterTags:()=>hm,getJSDocParameterTagsNoCache:()=>YT,getJSDocPrivateTag:()=>ck,getJSDocPrivateTagNoCache:()=>ax,getJSDocProtectedTag:()=>lk,getJSDocProtectedTagNoCache:()=>ox,getJSDocPublicTag:()=>_k,getJSDocPublicTagNoCache:()=>ix,getJSDocReadonlyTag:()=>uk,getJSDocReadonlyTagNoCache:()=>sx,getJSDocReturnTag:()=>lx,getJSDocReturnType:()=>ux,getJSDocRoot:()=>T2,getJSDocSatisfiesExpressionType:()=>sL,getJSDocSatisfiesTag:()=>Ng,getJSDocTags:()=>Il,getJSDocTagsNoCache:()=>yk,getJSDocTemplateTag:()=>mk,getJSDocThisTag:()=>fk,getJSDocType:()=>bm,getJSDocTypeAliasName:()=>tg,getJSDocTypeAssertionType:()=>TR,getJSDocTypeParameterDeclarations:()=>y3,getJSDocTypeParameterTags:()=>ex,getJSDocTypeParameterTagsNoCache:()=>tx,getJSDocTypeTag:()=>gm,getJSXImplicitImportBase:()=>sM,getJSXRuntimeImport:()=>_M,getJSXTransformEnabled:()=>oM,getKeyForCompilerOptions:()=>getKeyForCompilerOptions,getLanguageVariant:()=>B0,getLastChild:()=>V3,getLeadingCommentRanges:()=>Go,getLeadingCommentRangesOfNode:()=>nP,getLeftmostAccessExpression:()=>B2,getLeftmostExpression:()=>DO,getLineAndCharacterOfPosition:()=>Xa,getLineInfo:()=>getLineInfo,getLineOfLocalPosition:()=>mI,getLineOfLocalPositionFromLineMap:()=>ya,getLineStartPositionForPosition:()=>getLineStartPositionForPosition,getLineStarts:()=>xa,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>aO,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>iO,getLinesBetweenPositions:()=>b_,getLinesBetweenRangeEndAndRangeStart:()=>tO,getLinesBetweenRangeEndPositions:()=>nO,getLiteralText:()=>vD,getLocalNameForExternalImport:()=>CR,getLocalSymbolForExportDefault:()=>jI,getLocaleSpecificMessage:()=>k_,getLocaleTimeString:()=>getLocaleTimeString,getMappedContextSpan:()=>getMappedContextSpan,getMappedDocumentSpan:()=>getMappedDocumentSpan,getMappedLocation:()=>getMappedLocation,getMatchedFileSpec:()=>getMatchedFileSpec,getMatchedIncludeSpec:()=>getMatchedIncludeSpec,getMeaningFromDeclaration:()=>getMeaningFromDeclaration,getMeaningFromLocation:()=>getMeaningFromLocation,getMembersOfDeclaration:()=>sP,getModeForFileReference:()=>getModeForFileReference,getModeForResolutionAtIndex:()=>getModeForResolutionAtIndex,getModeForUsageLocation:()=>getModeForUsageLocation,getModifiedTime:()=>getModifiedTime,getModifiers:()=>Mf,getModuleInstanceState:()=>getModuleInstanceState,getModuleNameStringLiteralAt:()=>getModuleNameStringLiteralAt,getModuleSpecifierEndingPreference:()=>TM,getModuleSpecifierResolverHost:()=>getModuleSpecifierResolverHost,getNameForExportedSymbol:()=>getNameForExportedSymbol,getNameFromIndexInfo:()=>FD,getNameFromPropertyName:()=>getNameFromPropertyName,getNameOfAccessExpression:()=>EO,getNameOfCompilerOptionValue:()=>getNameOfCompilerOptionValue,getNameOfDeclaration:()=>Nl,getNameOfExpando:()=>ZP,getNameOfJSDocTypedef:()=>XT,getNameOrArgument:()=>C4,getNameTable:()=>qj,getNamesForExportedSymbol:()=>getNamesForExportedSymbol,getNamespaceDeclarationNode:()=>P4,getNewLineCharacter:()=>R3,getNewLineKind:()=>getNewLineKind,getNewLineOrDefaultFromHost:()=>getNewLineOrDefaultFromHost,getNewTargetContainer:()=>CP,getNextJSDocCommentLocation:()=>L4,getNodeForGeneratedName:()=>cF,getNodeId:()=>getNodeId,getNodeKind:()=>getNodeKind,getNodeModifiers:()=>getNodeModifiers,getNodeModulePathParts:()=>eL,getNonAssignedNameOfDeclaration:()=>ym,getNonAssignmentOperatorForCompoundAssignment:()=>getNonAssignmentOperatorForCompoundAssignment,getNonAugmentationDeclaration:()=>n4,getNonDecoratorTokenPosOfNode:()=>mD,getNormalizedAbsolutePath:()=>Ta,getNormalizedAbsolutePathWithoutRoot:()=>A5,getNormalizedPathComponents:()=>_m,getObjectFlags:()=>tf,getOperator:()=>C2,getOperatorAssociativity:()=>t3,getOperatorPrecedence:()=>n3,getOptionFromName:()=>getOptionFromName,getOptionsForLibraryResolution:()=>getOptionsForLibraryResolution,getOptionsNameMap:()=>getOptionsNameMap,getOrCreateEmitNode:()=>getOrCreateEmitNode,getOrCreateExternalHelpersModuleNameIfNeeded:()=>$8,getOrUpdate:()=>KC,getOriginalNode:()=>Dl,getOriginalNodeId:()=>getOriginalNodeId,getOriginalSourceFile:()=>KN,getOutputDeclarationFileName:()=>getOutputDeclarationFileName,getOutputExtension:()=>getOutputExtension,getOutputFileNames:()=>getOutputFileNames,getOutputPathsFor:()=>getOutputPathsFor,getOutputPathsForBundle:()=>getOutputPathsForBundle,getOwnEmitOutputFilePath:()=>_I,getOwnKeys:()=>lg,getOwnValues:()=>b9,getPackageJsonInfo:()=>getPackageJsonInfo,getPackageJsonTypesVersionsPaths:()=>getPackageJsonTypesVersionsPaths,getPackageJsonsVisibleToFile:()=>getPackageJsonsVisibleToFile,getPackageNameFromTypesPackageName:()=>getPackageNameFromTypesPackageName,getPackageScopeForPath:()=>getPackageScopeForPath,getParameterSymbolFromJSDoc:()=>fN,getParameterTypeNode:()=>tL,getParentNodeInSpan:()=>getParentNodeInSpan,getParseTreeNode:()=>Pl,getParsedCommandLineOfConfigFile:()=>getParsedCommandLineOfConfigFile,getPathComponents:()=>wi,getPathComponentsRelativeTo:()=>Tg,getPathFromPathComponents:()=>Vo,getPathUpdater:()=>getPathUpdater,getPathsBasePath:()=>uI,getPatternFromSpec:()=>yM,getPendingEmitKind:()=>getPendingEmitKind,getPositionOfLineAndCharacter:()=>j5,getPossibleGenericSignatures:()=>getPossibleGenericSignatures,getPossibleOriginalInputExtensionForExtension:()=>lI,getPossibleTypeArgumentsInfo:()=>getPossibleTypeArgumentsInfo,getPreEmitDiagnostics:()=>getPreEmitDiagnostics,getPrecedingNonSpaceCharacterPosition:()=>getPrecedingNonSpaceCharacterPosition,getPrivateIdentifier:()=>getPrivateIdentifier,getProperties:()=>getProperties,getProperty:()=>h9,getPropertyArrayElementValue:()=>hP,getPropertyAssignmentAliasLikeExpression:()=>DN,getPropertyNameForPropertyNameNode:()=>Jf,getPropertyNameForUniqueESSymbol:()=>FN,getPropertyNameOfBindingOrAssignmentElement:()=>NR,getPropertySymbolFromBindingElement:()=>getPropertySymbolFromBindingElement,getPropertySymbolsFromContextualType:()=>D7,getQuoteFromPreference:()=>getQuoteFromPreference,getQuotePreference:()=>getQuotePreference,getRangesWhere:()=>YC,getRefactorContextSpan:()=>getRefactorContextSpan,getReferencedFileLocation:()=>getReferencedFileLocation,getRegexFromPattern:()=>rf,getRegularExpressionForWildcard:()=>nf,getRegularExpressionsForWildcards:()=>G2,getRelativePathFromDirectory:()=>mT,getRelativePathFromFile:()=>M5,getRelativePathToDirectoryOrUrl:()=>xg,getRenameLocation:()=>getRenameLocation,getReplacementSpanForContextToken:()=>getReplacementSpanForContextToken,getResolutionDiagnostic:()=>getResolutionDiagnostic,getResolutionModeOverrideForClause:()=>getResolutionModeOverrideForClause,getResolveJsonModule:()=>tS,getResolvePackageJsonExports:()=>YO,getResolvePackageJsonImports:()=>ZO,getResolvedExternalModuleName:()=>_3,getResolvedModule:()=>VA,getResolvedTypeReferenceDirective:()=>GA,getRestIndicatorOfBindingOrAssignmentElement:()=>PR,getRestParameterElementType:()=>oP,getRightMostAssignedExpression:()=>d2,getRootDeclaration:()=>Lm,getRootDirectoryOfResolutionCache:()=>getRootDirectoryOfResolutionCache,getRootLength:()=>Si,getRootPathSplitLength:()=>getRootPathSplitLength,getScriptKind:()=>getScriptKind,getScriptKindFromFileName:()=>sS,getScriptTargetFeatures:()=>getScriptTargetFeatures,getSelectedEffectiveModifierFlags:()=>S3,getSelectedSyntacticModifierFlags:()=>w3,getSemanticClassifications:()=>getSemanticClassifications,getSemanticJsxChildren:()=>$N,getSetAccessorTypeAnnotationNode:()=>yI,getSetAccessorValueParameter:()=>I2,getSetExternalModuleIndicator:()=>Z3,getShebang:()=>ET,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>g2,getSingleVariableOfVariableStatement:()=>hl,getSnapshotText:()=>getSnapshotText,getSnippetElement:()=>getSnippetElement,getSourceFileOfModule:()=>rD,getSourceFileOfNode:()=>Kr,getSourceFilePathInNewDir:()=>u3,getSourceFilePathInNewDirWorker:()=>N2,getSourceFileVersionAsHashFromText:()=>getSourceFileVersionAsHashFromText,getSourceFilesToEmit:()=>pI,getSourceMapRange:()=>getSourceMapRange,getSourceMapper:()=>getSourceMapper,getSourceTextOfNodeFromSourceFile:()=>Yo,getSpanOfTokenAtPosition:()=>Gs,getSpellingSuggestion:()=>Yv,getStartPositionOfLine:()=>oD,getStartPositionOfRange:()=>l_,getStartsOnNewLine:()=>getStartsOnNewLine,getStaticPropertiesAndClassStaticBlock:()=>getStaticPropertiesAndClassStaticBlock,getStrictOptionValue:()=>K2,getStringComparer:()=>ug,getSuperCallFromStatement:()=>getSuperCallFromStatement,getSuperContainer:()=>kP,getSupportedCodeFixes:()=>E7,getSupportedExtensions:()=>_S,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>cS,getSwitchedType:()=>getSwitchedType,getSymbolId:()=>getSymbolId,getSymbolNameForPrivateIdentifier:()=>jN,getSymbolTarget:()=>getSymbolTarget,getSyntacticClassifications:()=>getSyntacticClassifications,getSyntacticModifierFlags:()=>R2,getSyntacticModifierFlagsNoCache:()=>F2,getSynthesizedDeepClone:()=>getSynthesizedDeepClone,getSynthesizedDeepCloneWithReplacements:()=>getSynthesizedDeepCloneWithReplacements,getSynthesizedDeepClones:()=>getSynthesizedDeepClones,getSynthesizedDeepClonesWithReplacements:()=>getSynthesizedDeepClonesWithReplacements,getSyntheticLeadingComments:()=>getSyntheticLeadingComments,getSyntheticTrailingComments:()=>getSyntheticTrailingComments,getTargetLabel:()=>getTargetLabel,getTargetOfBindingOrAssignmentElement:()=>Fo,getTemporaryModuleResolutionState:()=>getTemporaryModuleResolutionState,getTextOfConstantValue:()=>xD,getTextOfIdentifierOrLiteral:()=>Rf,getTextOfJSDocComment:()=>gk,getTextOfJsxAttributeName:()=>cL,getTextOfJsxNamespacedName:()=>ql,getTextOfNode:()=>Cm,getTextOfNodeFromSourceText:()=>Ys,getTextOfPropertyName:()=>BD,getThisContainer:()=>c2,getThisParameter:()=>f3,getTokenAtPosition:()=>getTokenAtPosition,getTokenPosOfNode:()=>Qo,getTokenSourceMapRange:()=>getTokenSourceMapRange,getTouchingPropertyName:()=>getTouchingPropertyName,getTouchingToken:()=>getTouchingToken,getTrailingCommentRanges:()=>wT,getTrailingSemicolonDeferringWriter:()=>oI,getTransformFlagsSubtreeExclusions:()=>ZS,getTransformers:()=>getTransformers,getTsBuildInfoEmitOutputFilePath:()=>getTsBuildInfoEmitOutputFilePath,getTsConfigObjectLiteralExpression:()=>p4,getTsConfigPropArrayElementValue:()=>gP,getTypeAnnotationNode:()=>gI,getTypeArgumentOrTypeParameterList:()=>getTypeArgumentOrTypeParameterList,getTypeKeywordOfTypeOnlyImport:()=>getTypeKeywordOfTypeOnlyImport,getTypeNode:()=>getTypeNode,getTypeNodeIfAccessible:()=>getTypeNodeIfAccessible,getTypeParameterFromJsDoc:()=>yN,getTypeParameterOwner:()=>nk,getTypesPackageName:()=>getTypesPackageName,getUILocale:()=>q9,getUniqueName:()=>getUniqueName,getUniqueSymbolId:()=>getUniqueSymbolId,getUseDefineForClassFields:()=>nM,getWatchErrorSummaryDiagnosticMessage:()=>getWatchErrorSummaryDiagnosticMessage,getWatchFactory:()=>getWatchFactory,group:()=>w9,groupBy:()=>E9,guessIndentation:()=>NA,handleNoEmitOptions:()=>handleNoEmitOptions,hasAbstractModifier:()=>v3,hasAccessorModifier:()=>x3,hasAmbientModifier:()=>T3,hasChangesInResolutions:()=>tD,hasChildOfKind:()=>hasChildOfKind,hasContextSensitiveParameters:()=>GM,hasDecorators:()=>gl,hasDocComment:()=>hasDocComment,hasDynamicName:()=>Q4,hasEffectiveModifier:()=>L2,hasEffectiveModifiers:()=>CI,hasEffectiveReadonlyModifier:()=>J0,hasExtension:()=>pT,hasIndexSignature:()=>hasIndexSignature,hasInitializer:()=>qx,hasInvalidEscape:()=>r3,hasJSDocNodes:()=>Ui,hasJSDocParameterTags:()=>ok,hasJSFileExtension:()=>X2,hasJsonModuleEmitEnabled:()=>VO,hasOnlyExpressionInitializer:()=>DA,hasOverrideModifier:()=>AI,hasPossibleExternalModuleReference:()=>JD,hasProperty:()=>Xn,hasPropertyAccessExpressionWithName:()=>hasPropertyAccessExpressionWithName,hasQuestionToken:()=>cN,hasRecordedExternalHelpers:()=>wR,hasRestParameter:()=>IA,hasScopeMarker:()=>aA,hasStaticModifier:()=>Rm,hasSyntacticModifier:()=>gn,hasSyntacticModifiers:()=>kI,hasTSFileExtension:()=>$2,hasTabstop:()=>ES,hasTrailingDirectorySeparator:()=>sm,hasType:()=>AA,hasTypeArguments:()=>hN,hasZeroOrOneAsteriskCharacter:()=>cM,helperString:()=>helperString,hostGetCanonicalFileName:()=>s3,hostUsesCaseSensitiveFileNames:()=>A2,idText:()=>Ot,identifierIsThisKeyword:()=>m3,identifierToKeywordKind:()=>HT,identity:()=>ht,identitySourceMapConsumer:()=>identitySourceMapConsumer,ignoreSourceNewlines:()=>ignoreSourceNewlines,ignoredPaths:()=>ignoredPaths,importDefaultHelper:()=>importDefaultHelper,importFromModuleSpecifier:()=>sN,importNameElisionDisabled:()=>HO,importStarHelper:()=>importStarHelper,indexOfAnyCharCode:()=>Jv,indexOfNode:()=>gD,indicesOf:()=>_g,inferredTypesContainingFile:()=>inferredTypesContainingFile,insertImports:()=>insertImports,insertLeadingStatement:()=>uR,insertSorted:()=>cl,insertStatementAfterCustomPrologue:()=>pD,insertStatementAfterStandardPrologue:()=>uD,insertStatementsAfterCustomPrologue:()=>lD,insertStatementsAfterStandardPrologue:()=>cD,intersperse:()=>LC,intrinsicTagNameToString:()=>uL,introducesArgumentsExoticObject:()=>uP,inverseJsxOptionMap:()=>inverseJsxOptionMap,isAbstractConstructorSymbol:()=>bO,isAbstractModifier:()=>WL,isAccessExpression:()=>Zo,isAccessibilityModifier:()=>isAccessibilityModifier,isAccessor:()=>xm,isAccessorModifier:()=>HL,isAliasSymbolDeclaration:()=>AN,isAliasableExpression:()=>x2,isAmbientModule:()=>km,isAmbientPropertyDeclaration:()=>ID,isAnonymousFunctionDefinition:()=>Xs,isAnyDirectorySeparator:()=>hg,isAnyImportOrBareOrAccessedRequire:()=>MD,isAnyImportOrReExport:()=>Dm,isAnyImportSyntax:()=>Yg,isAnySupportedFileExtension:()=>AM,isApplicableVersionedTypesKey:()=>isApplicableVersionedTypesKey,isArgumentExpressionOfElementAccess:()=>isArgumentExpressionOfElementAccess,isArray:()=>Wt,isArrayBindingElement:()=>Hk,isArrayBindingOrAssignmentElement:()=>Nx,isArrayBindingOrAssignmentPattern:()=>Px,isArrayBindingPattern:()=>QL,isArrayLiteralExpression:()=>Ql,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>isArrayLiteralOrObjectLiteralDestructuringPattern,isArrayTypeNode:()=>u8,isArrowFunction:()=>Gm,isAsExpression:()=>aJ,isAssertClause:()=>kJ,isAssertEntry:()=>AJ,isAssertionExpression:()=>rA,isAssertionKey:()=>Jk,isAssertsKeyword:()=>UL,isAssignmentDeclaration:()=>N0,isAssignmentExpression:()=>Sa,isAssignmentOperator:()=>w_,isAssignmentPattern:()=>kx,isAssignmentTarget:()=>gN,isAsteriskToken:()=>JL,isAsyncFunction:()=>RN,isAsyncModifier:()=>Qc,isAutoAccessorPropertyDeclaration:()=>Cx,isAwaitExpression:()=>tJ,isAwaitKeyword:()=>qL,isBigIntLiteral:()=>cb,isBinaryExpression:()=>St,isBinaryOperatorToken:()=>iF,isBindableObjectDefinePropertyCall:()=>m2,isBindableStaticAccessExpression:()=>S_,isBindableStaticElementAccessExpression:()=>y2,isBindableStaticNameExpression:()=>c_,isBindingElement:()=>$l,isBindingElementOfBareOrAccessedRequire:()=>VP,isBindingName:()=>Bk,isBindingOrAssignmentElement:()=>Kk,isBindingOrAssignmentPattern:()=>Gk,isBindingPattern:()=>Sm,isBlock:()=>Yl,isBlockOrCatchScoped:()=>wD,isBlockScope:()=>r4,isBlockScopedContainerTopLevel:()=>DD,isBooleanLiteral:()=>Uk,isBreakOrContinueStatement:()=>Ck,isBreakStatement:()=>hJ,isBuildInfoFile:()=>isBuildInfoFile,isBuilderProgram:()=>isBuilderProgram2,isBundle:()=>BJ,isBundleFileTextLike:()=>CO,isCallChain:()=>T0,isCallExpression:()=>O_,isCallExpressionTarget:()=>isCallExpressionTarget,isCallLikeExpression:()=>Qk,isCallOrNewExpression:()=>Yk,isCallOrNewExpressionTarget:()=>isCallOrNewExpressionTarget,isCallSignatureDeclaration:()=>pb,isCallToHelper:()=>isCallToHelper,isCaseBlock:()=>wJ,isCaseClause:()=>RJ,isCaseKeyword:()=>KL,isCaseOrDefaultClause:()=>kA,isCatchClause:()=>FJ,isCatchClauseVariableDeclaration:()=>vS,isCatchClauseVariableDeclarationOrBindingElement:()=>Zx,isCheckJsEnabledForFile:()=>DM,isChildOfNodeWithKind:()=>rP,isCircularBuildOrder:()=>isCircularBuildOrder,isClassDeclaration:()=>u_,isClassElement:()=>Qa,isClassExpression:()=>$m,isClassLike:()=>Hr,isClassMemberModifier:()=>Sx,isClassOrTypeElement:()=>Wk,isClassStaticBlockDeclaration:()=>Hl,isCollapsedRange:()=>XI,isColonToken:()=>RL,isCommaExpression:()=>r1,isCommaListExpression:()=>M_,isCommaSequence:()=>vR,isCommaToken:()=>r8,isComment:()=>isComment,isCommonJsExportPropertyAssignment:()=>s2,isCommonJsExportedExpression:()=>cP,isCompoundAssignment:()=>isCompoundAssignment,isComputedNonLiteralName:()=>jD,isComputedPropertyName:()=>Za,isConciseBody:()=>cA,isConditionalExpression:()=>nJ,isConditionalTypeNode:()=>h8,isConstTypeReference:()=>mx,isConstructSignatureDeclaration:()=>_8,isConstructorDeclaration:()=>P_,isConstructorTypeNode:()=>fb,isContextualKeyword:()=>S2,isContinueStatement:()=>yJ,isCustomPrologue:()=>Pm,isDebuggerStatement:()=>SJ,isDeclaration:()=>$o,isDeclarationBindingElement:()=>zg,isDeclarationFileName:()=>c7,isDeclarationName:()=>B4,isDeclarationNameOfEnumOrNamespace:()=>sO,isDeclarationReadonly:()=>YD,isDeclarationStatement:()=>vA,isDeclarationWithTypeParameterChildren:()=>i4,isDeclarationWithTypeParameters:()=>OD,isDecorator:()=>zl,isDecoratorTarget:()=>isDecoratorTarget,isDefaultClause:()=>I8,isDefaultImport:()=>N4,isDefaultModifier:()=>BL,isDefaultedExpandoInitializer:()=>YP,isDeleteExpression:()=>ZL,isDeleteTarget:()=>wN,isDeprecatedDeclaration:()=>isDeprecatedDeclaration,isDestructuringAssignment:()=>OI,isDiagnosticWithLocation:()=>isDiagnosticWithLocation,isDiskPathRoot:()=>x5,isDoStatement:()=>pJ,isDotDotDotToken:()=>LL,isDottedName:()=>F0,isDynamicName:()=>E2,isESSymbolIdentifier:()=>qN,isEffectiveExternalModule:()=>Qg,isEffectiveModuleDeclaration:()=>e4,isEffectiveStrictModeSourceFile:()=>ND,isElementAccessChain:()=>fx,isElementAccessExpression:()=>ka,isEmittedFileOfProgram:()=>isEmittedFileOfProgram,isEmptyArrayLiteral:()=>FI,isEmptyBindingElement:()=>WT,isEmptyBindingPattern:()=>zT,isEmptyObjectLiteral:()=>RI,isEmptyStatement:()=>lJ,isEmptyStringLiteral:()=>m4,isEntityName:()=>jk,isEntityNameExpression:()=>no,isEnumConst:()=>QD,isEnumDeclaration:()=>Eb,isEnumMember:()=>M8,isEqualityOperatorKind:()=>isEqualityOperatorKind,isEqualsGreaterThanToken:()=>jL,isExclamationToken:()=>Kf,isExcludedFile:()=>isExcludedFile,isExclusivelyTypeOnlyImportOrExport:()=>isExclusivelyTypeOnlyImportOrExport,isExportAssignment:()=>ls,isExportDeclaration:()=>L_,isExportModifier:()=>i8,isExportName:()=>bR,isExportNamespaceAsDefaultDeclaration:()=>Yx,isExportOrDefaultModifier:()=>oF,isExportSpecifier:()=>N8,isExportsIdentifier:()=>w4,isExportsOrModuleExportsOrAlias:()=>isExportsOrModuleExportsOrAlias,isExpression:()=>wm,isExpressionNode:()=>u2,isExpressionOfExternalModuleImportEqualsDeclaration:()=>isExpressionOfExternalModuleImportEqualsDeclaration,isExpressionOfOptionalChainRoot:()=>Sk,isExpressionStatement:()=>Zl,isExpressionWithTypeArguments:()=>Tb,isExpressionWithTypeArgumentsInClassExtendsClause:()=>R0,isExternalModule:()=>ts,isExternalModuleAugmentation:()=>$g,isExternalModuleImportEqualsDeclaration:()=>g4,isExternalModuleIndicator:()=>sA,isExternalModuleNameRelative:()=>H5,isExternalModuleReference:()=>Zm,isExternalModuleSymbol:()=>isExternalModuleSymbol,isExternalOrCommonJsModule:()=>$D,isFileLevelUniqueName:()=>Kx,isFileProbablyExternalModule:()=>sl,isFirstDeclarationOfSymbolParameter:()=>isFirstDeclarationOfSymbolParameter,isFixablePromiseHandler:()=>isFixablePromiseHandler,isForInOrOfStatement:()=>_A,isForInStatement:()=>fJ,isForInitializer:()=>uA,isForOfStatement:()=>mJ,isForStatement:()=>C8,isFunctionBlock:()=>u4,isFunctionBody:()=>lA,isFunctionDeclaration:()=>cs,isFunctionExpression:()=>Km,isFunctionExpressionOrArrowFunction:()=>QM,isFunctionLike:()=>Wi,isFunctionLikeDeclaration:()=>wx,isFunctionLikeKind:()=>jg,isFunctionLikeOrClassStaticBlockDeclaration:()=>Tm,isFunctionOrConstructorTypeNode:()=>Vk,isFunctionOrModuleBlock:()=>qk,isFunctionSymbol:()=>aN,isFunctionTypeNode:()=>Gl,isFutureReservedKeyword:()=>NN,isGeneratedIdentifier:()=>ma,isGeneratedPrivateIdentifier:()=>Rg,isGetAccessor:()=>Hc,isGetAccessorDeclaration:()=>Kl,isGetOrSetAccessorDeclaration:()=>xk,isGlobalDeclaration:()=>isGlobalDeclaration,isGlobalScopeAugmentation:()=>Am,isGrammarError:()=>_D,isHeritageClause:()=>Sl,isHoistedFunction:()=>A0,isHoistedVariableStatement:()=>D0,isIdentifier:()=>Ce,isIdentifierANonContextualKeyword:()=>MN,isIdentifierName:()=>kN,isIdentifierOrThisTypeNode:()=>JR,isIdentifierPart:()=>Wa,isIdentifierStart:()=>or,isIdentifierText:()=>Ag,isIdentifierTypePredicate:()=>mP,isIdentifierTypeReference:()=>UM,isIfStatement:()=>uJ,isIgnoredFileFromWildCardWatching:()=>isIgnoredFileFromWildCardWatching,isImplicitGlob:()=>rS,isImportCall:()=>i2,isImportClause:()=>EJ,isImportDeclaration:()=>Ab,isImportEqualsDeclaration:()=>kb,isImportKeyword:()=>o8,isImportMeta:()=>k0,isImportOrExportSpecifier:()=>Mk,isImportOrExportSpecifierName:()=>isImportOrExportSpecifierName,isImportSpecifier:()=>D8,isImportTypeAssertionContainer:()=>CJ,isImportTypeNode:()=>Xl,isImportableFile:()=>isImportableFile,isInComment:()=>isInComment,isInExpressionContext:()=>y4,isInJSDoc:()=>b4,isInJSFile:()=>Vt,isInJSXText:()=>isInJSXText,isInJsonFile:()=>qP,isInNonReferenceComment:()=>isInNonReferenceComment,isInReferenceComment:()=>isInReferenceComment,isInRightSideOfInternalImportEqualsDeclaration:()=>isInRightSideOfInternalImportEqualsDeclaration,isInString:()=>isInString,isInTemplateString:()=>isInTemplateString,isInTopLevelContext:()=>EP,isIncrementalCompilation:()=>tM,isIndexSignatureDeclaration:()=>db,isIndexedAccessTypeNode:()=>v8,isInferTypeNode:()=>g8,isInfinityOrNaNString:()=>XM,isInitializedProperty:()=>isInitializedProperty,isInitializedVariable:()=>B3,isInsideJsxElement:()=>isInsideJsxElement,isInsideJsxElementOrAttribute:()=>isInsideJsxElementOrAttribute,isInsideNodeModules:()=>isInsideNodeModules,isInsideTemplateLiteral:()=>isInsideTemplateLiteral,isInstantiatedModule:()=>isInstantiatedModule,isInterfaceDeclaration:()=>eu,isInternalDeclaration:()=>isInternalDeclaration,isInternalModuleImportEqualsDeclaration:()=>BP,isInternalName:()=>gR,isIntersectionTypeNode:()=>y8,isIntrinsicJsxName:()=>o3,isIterationStatement:()=>Lx,isJSDoc:()=>ps,isJSDocAllType:()=>VJ,isJSDocAugmentsTag:()=>t1,isJSDocAuthorTag:()=>QJ,isJSDocCallbackTag:()=>YJ,isJSDocClassTag:()=>R8,isJSDocCommentContainingNode:()=>Ux,isJSDocConstructSignature:()=>lN,isJSDocDeprecatedTag:()=>jb,isJSDocEnumTag:()=>j8,isJSDocFunctionType:()=>e1,isJSDocImplementsTag:()=>U8,isJSDocIndexSignature:()=>WP,isJSDocLikeText:()=>a7,isJSDocLink:()=>qJ,isJSDocLinkCode:()=>zJ,isJSDocLinkLike:()=>rl,isJSDocLinkPlain:()=>WJ,isJSDocMemberName:()=>Zs,isJSDocNameReference:()=>_f,isJSDocNamepathType:()=>$J,isJSDocNamespaceBody:()=>fA,isJSDocNode:()=>Hg,isJSDocNonNullableType:()=>KJ,isJSDocNullableType:()=>J8,isJSDocOptionalParameter:()=>CS,isJSDocOptionalType:()=>GJ,isJSDocOverloadTag:()=>Fb,isJSDocOverrideTag:()=>F8,isJSDocParameterTag:()=>p_,isJSDocPrivateTag:()=>Lb,isJSDocPropertyLikeTag:()=>Mg,isJSDocPropertyTag:()=>nR,isJSDocProtectedTag:()=>Jb,isJSDocPublicTag:()=>Mb,isJSDocReadonlyTag:()=>Rb,isJSDocReturnTag:()=>Bb,isJSDocSatisfiesExpression:()=>oL,isJSDocSatisfiesTag:()=>Ub,isJSDocSeeTag:()=>ZJ,isJSDocSignature:()=>nu,isJSDocTag:()=>Kg,isJSDocTemplateTag:()=>es,isJSDocThisTag:()=>B8,isJSDocThrowsTag:()=>rR,isJSDocTypeAlias:()=>Rl,isJSDocTypeAssertion:()=>G8,isJSDocTypeExpression:()=>L8,isJSDocTypeLiteral:()=>Ob,isJSDocTypeTag:()=>ru,isJSDocTypedefTag:()=>eR,isJSDocUnknownTag:()=>tR,isJSDocUnknownType:()=>HJ,isJSDocVariadicType:()=>XJ,isJSXTagName:()=>Yd,isJsonEqual:()=>Y2,isJsonSourceFile:()=>r2,isJsxAttribute:()=>MJ,isJsxAttributeLike:()=>EA,isJsxAttributeName:()=>lL,isJsxAttributes:()=>Ib,isJsxChild:()=>jx,isJsxClosingElement:()=>sf,isJsxClosingFragment:()=>OJ,isJsxElement:()=>Z0,isJsxExpression:()=>JJ,isJsxFragment:()=>ol,isJsxNamespacedName:()=>J_,isJsxOpeningElement:()=>Ro,isJsxOpeningFragment:()=>Nb,isJsxOpeningLikeElement:()=>Bx,isJsxOpeningLikeElementTagName:()=>isJsxOpeningLikeElementTagName,isJsxSelfClosingElement:()=>IJ,isJsxSpreadAttribute:()=>LJ,isJsxTagNameExpression:()=>wA,isJsxText:()=>Hf,isJumpStatementTarget:()=>isJumpStatementTarget,isKeyword:()=>bi,isKeywordOrPunctuation:()=>ef,isKnownSymbol:()=>BN,isLabelName:()=>isLabelName,isLabelOfLabeledStatement:()=>isLabelOfLabeledStatement,isLabeledStatement:()=>k8,isLateVisibilityPaintedStatement:()=>LD,isLeftHandSideExpression:()=>jo,isLeftHandSideOfAssignment:()=>II,isLet:()=>ZD,isLineBreak:()=>mn,isLiteralComputedPropertyDeclarationName:()=>U4,isLiteralExpression:()=>Jg,isLiteralExpressionOfObject:()=>Nk,isLiteralImportTypeNode:()=>_4,isLiteralKind:()=>Lg,isLiteralLikeAccess:()=>Zd,isLiteralLikeElementAccess:()=>Jl,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>isLiteralNameOfPropertyDeclarationOrIndexAccess,isLiteralTypeLikeExpression:()=>BR,isLiteralTypeLiteral:()=>tA,isLiteralTypeNode:()=>gb,isLocalName:()=>eg,isLogicalOperator:()=>DI,isLogicalOrCoalescingAssignmentExpression:()=>PI,isLogicalOrCoalescingAssignmentOperator:()=>jm,isLogicalOrCoalescingBinaryExpression:()=>NI,isLogicalOrCoalescingBinaryOperator:()=>D3,isMappedTypeNode:()=>T8,isMemberName:()=>$a,isMetaProperty:()=>xb,isMethodDeclaration:()=>Vl,isMethodOrAccessor:()=>Bg,isMethodSignature:()=>s8,isMinusToken:()=>ub,isMissingDeclaration:()=>PJ,isModifier:()=>Fg,isModifierKind:()=>yi,isModifierLike:()=>Qd,isModuleAugmentationExternal:()=>t4,isModuleBlock:()=>A8,isModuleBody:()=>pA,isModuleDeclaration:()=>Gi,isModuleExportsAccessExpression:()=>f2,isModuleIdentifier:()=>E4,isModuleName:()=>jR,isModuleOrEnumDeclaration:()=>yA,isModuleReference:()=>SA,isModuleSpecifierLike:()=>isModuleSpecifierLike,isModuleWithStringLiteralName:()=>ED,isNameOfFunctionDeclaration:()=>isNameOfFunctionDeclaration,isNameOfModuleDeclaration:()=>isNameOfModuleDeclaration,isNamedClassElement:()=>zk,isNamedDeclaration:()=>mm,isNamedEvaluation:()=>zN,isNamedEvaluationSource:()=>e3,isNamedExportBindings:()=>kk,isNamedExports:()=>P8,isNamedImportBindings:()=>mA,isNamedImports:()=>DJ,isNamedImportsOrExports:()=>kO,isNamedTupleMember:()=>mb,isNamespaceBody:()=>dA,isNamespaceExport:()=>Ym,isNamespaceExportDeclaration:()=>Cb,isNamespaceImport:()=>Db,isNamespaceReexportDeclaration:()=>RP,isNewExpression:()=>x8,isNewExpressionTarget:()=>isNewExpressionTarget,isNightly:()=>iI,isNoSubstitutionTemplateLiteral:()=>n8,isNode:()=>Dk,isNodeArray:()=>ua,isNodeArrayMultiLine:()=>rO,isNodeDescendantOf:()=>EN,isNodeKind:()=>Ol,isNodeLikeSystem:()=>l5,isNodeModulesDirectory:()=>L5,isNodeWithPossibleHoistedDeclaration:()=>bN,isNonContextualKeyword:()=>$4,isNonExportDefaultModifier:()=>sF,isNonGlobalAmbientModule:()=>CD,isNonGlobalDeclaration:()=>isNonGlobalDeclaration,isNonNullAccess:()=>aL,isNonNullChain:()=>yx,isNonNullExpression:()=>qo,isNonStaticMethodOrAccessorWithPrivateName:()=>isNonStaticMethodOrAccessorWithPrivateName,isNotEmittedOrPartiallyEmittedNode:()=>iA,isNotEmittedStatement:()=>Pb,isNullishCoalesce:()=>Ek,isNumber:()=>O9,isNumericLiteral:()=>ro,isNumericLiteralName:()=>TS,isObjectBindingElementWithoutPropertyName:()=>isObjectBindingElementWithoutPropertyName,isObjectBindingOrAssignmentElement:()=>Dx,isObjectBindingOrAssignmentPattern:()=>Ax,isObjectBindingPattern:()=>$L,isObjectLiteralElement:()=>S0,isObjectLiteralElementLike:()=>qg,isObjectLiteralExpression:()=>ao,isObjectLiteralMethod:()=>dP,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>fP,isObjectTypeDeclaration:()=>wO,isOctalDigit:()=>Xd,isOmittedExpression:()=>Qm,isOptionalChain:()=>Ig,isOptionalChainRoot:()=>Og,isOptionalDeclaration:()=>iL,isOptionalJSDocPropertyLikeTag:()=>wS,isOptionalTypeNode:()=>d8,isOuterExpression:()=>i1,isOutermostOptionalChain:()=>wk,isOverrideModifier:()=>VL,isPackedArrayLiteral:()=>VM,isParameter:()=>io,isParameterDeclaration:()=>VN,isParameterOrCatchClauseVariable:()=>$M,isParameterPropertyDeclaration:()=>qT,isParameterPropertyModifier:()=>xx,isParenthesizedExpression:()=>ss,isParenthesizedTypeNode:()=>yb,isParseTreeNode:()=>dl,isPartOfTypeNode:()=>a2,isPartOfTypeQuery:()=>h4,isPartiallyEmittedExpression:()=>E8,isPatternMatch:()=>dg,isPinnedComment:()=>Qx,isPlainJsFile:()=>iD,isPlusToken:()=>lb,isPossiblyTypeArgumentPosition:()=>isPossiblyTypeArgumentPosition,isPostfixUnaryExpression:()=>w8,isPrefixUnaryExpression:()=>Xm,isPrivateIdentifier:()=>Ln,isPrivateIdentifierClassElementDeclaration:()=>Tx,isPrivateIdentifierPropertyAccessExpression:()=>Fk,isPrivateIdentifierSymbol:()=>UN,isProgramBundleEmitBuildInfo:()=>isProgramBundleEmitBuildInfo,isProgramUptoDate:()=>isProgramUptoDate,isPrologueDirective:()=>ha,isPropertyAccessChain:()=>dx,isPropertyAccessEntityNameExpression:()=>I3,isPropertyAccessExpression:()=>Rn,isPropertyAccessOrQualifiedName:()=>$k,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Xk,isPropertyAssignment:()=>us,isPropertyDeclaration:()=>os,isPropertyName:()=>Ml,isPropertyNameLiteral:()=>O0,isPropertySignature:()=>Wl,isProtoSetter:()=>Z4,isPrototypeAccess:()=>Bl,isPrototypePropertyAssignment:()=>nN,isPunctuation:()=>X4,isPushOrUnshiftIdentifier:()=>WN,isQualifiedName:()=>D_,isQuestionDotToken:()=>FL,isQuestionOrExclamationToken:()=>LR,isQuestionOrPlusOrMinusToken:()=>FR,isQuestionToken:()=>xl,isRawSourceMap:()=>isRawSourceMap,isReadonlyKeyword:()=>a8,isReadonlyKeywordOrPlusOrMinusToken:()=>RR,isRecognizedTripleSlashComment:()=>dD,isReferenceFileLocation:()=>isReferenceFileLocation,isReferencedFile:()=>isReferencedFile,isRegularExpressionLiteral:()=>NL,isRequireCall:()=>Ll,isRequireVariableStatement:()=>x4,isRestParameter:()=>zx,isRestTypeNode:()=>f8,isReturnStatement:()=>gJ,isReturnStatementWithFixablePromiseHandler:()=>isReturnStatementWithFixablePromiseHandler,isRightSideOfAccessExpression:()=>O3,isRightSideOfPropertyAccess:()=>isRightSideOfPropertyAccess,isRightSideOfQualifiedName:()=>isRightSideOfQualifiedName,isRightSideOfQualifiedNameOrPropertyAccess:()=>LI,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>JI,isRootedDiskPath:()=>y_,isSameEntityName:()=>__,isSatisfiesExpression:()=>oJ,isScopeMarker:()=>Jx,isSemicolonClassElement:()=>cJ,isSetAccessor:()=>Vc,isSetAccessorDeclaration:()=>N_,isShebangTrivia:()=>Cg,isShorthandAmbientModuleSymbol:()=>kD,isShorthandPropertyAssignment:()=>tu,isSignedNumericLiteral:()=>w2,isSimpleCopiableExpression:()=>isSimpleCopiableExpression,isSimpleInlineableExpression:()=>isSimpleInlineableExpression,isSingleOrDoubleQuote:()=>HP,isSourceFile:()=>$r,isSourceFileFromLibrary:()=>isSourceFileFromLibrary,isSourceFileJS:()=>p2,isSourceFileNotJS:()=>UP,isSourceFileNotJson:()=>zP,isSourceMapping:()=>isSourceMapping,isSpecialPropertyDeclaration:()=>rN,isSpreadAssignment:()=>O8,isSpreadElement:()=>vb,isStatement:()=>Rx,isStatementButNotDeclaration:()=>TA,isStatementOrBlock:()=>Fx,isStatementWithLocals:()=>aD,isStatic:()=>L0,isStaticModifier:()=>zL,isString:()=>m_,isStringAKeyword:()=>ON,isStringANonContextualKeyword:()=>IN,isStringAndEmptyAnonymousObjectIntersection:()=>isStringAndEmptyAnonymousObjectIntersection,isStringDoubleQuoted:()=>KP,isStringLiteral:()=>cr,isStringLiteralLike:()=>qr,isStringLiteralOrJsxExpression:()=>CA,isStringLiteralOrTemplate:()=>isStringLiteralOrTemplate,isStringOrNumericLiteralLike:()=>Ki,isStringOrRegularExpressionOrTemplateLiteral:()=>isStringOrRegularExpressionOrTemplateLiteral,isStringTextContainingNode:()=>Rk,isSuperCall:()=>eP,isSuperKeyword:()=>of,isSuperOrSuperProperty:()=>DP,isSuperProperty:()=>Lf,isSupportedSourceFileName:()=>SM,isSwitchStatement:()=>vJ,isSyntaxList:()=>iR,isSyntheticExpression:()=>sJ,isSyntheticReference:()=>NJ,isTagName:()=>isTagName,isTaggedTemplateExpression:()=>S8,isTaggedTemplateTag:()=>isTaggedTemplateTag,isTemplateExpression:()=>rJ,isTemplateHead:()=>IL,isTemplateLiteral:()=>Zk,isTemplateLiteralKind:()=>fl,isTemplateLiteralToken:()=>Ik,isTemplateLiteralTypeNode:()=>XL,isTemplateLiteralTypeSpan:()=>GL,isTemplateMiddle:()=>OL,isTemplateMiddleOrTemplateTail:()=>Ok,isTemplateSpan:()=>_J,isTemplateTail:()=>ML,isTextWhiteSpaceLike:()=>isTextWhiteSpaceLike,isThis:()=>isThis,isThisContainerOrFunctionBlock:()=>wP,isThisIdentifier:()=>Jm,isThisInTypeQuery:()=>hI,isThisInitializedDeclaration:()=>NP,isThisInitializedObjectBindingExpression:()=>IP,isThisProperty:()=>PP,isThisTypeNode:()=>hb,isThisTypeParameter:()=>xS,isThisTypePredicate:()=>yP,isThrowStatement:()=>TJ,isToken:()=>Pk,isTokenKind:()=>gx,isTraceEnabled:()=>isTraceEnabled,isTransientSymbol:()=>E0,isTrivia:()=>LN,isTryStatement:()=>xJ,isTupleTypeNode:()=>p8,isTypeAlias:()=>uN,isTypeAliasDeclaration:()=>wb,isTypeAssertionExpression:()=>YL,isTypeDeclaration:()=>SS,isTypeElement:()=>Ug,isTypeKeyword:()=>isTypeKeyword,isTypeKeywordToken:()=>isTypeKeywordToken,isTypeKeywordTokenOrIdentifier:()=>isTypeKeywordTokenOrIdentifier,isTypeLiteralNode:()=>Hm,isTypeNode:()=>x0,isTypeNodeKind:()=>H3,isTypeOfExpression:()=>eJ,isTypeOnlyExportDeclaration:()=>vx,isTypeOnlyImportDeclaration:()=>bx,isTypeOnlyImportOrExportDeclaration:()=>Lk,isTypeOperatorNode:()=>b8,isTypeParameterDeclaration:()=>Jo,isTypePredicateNode:()=>c8,isTypeQueryNode:()=>l8,isTypeReferenceNode:()=>I_,isTypeReferenceType:()=>PA,isUMDExportSymbol:()=>TO,isUnaryExpression:()=>Ox,isUnaryExpressionWithWrite:()=>eA,isUnicodeIdentifierStart:()=>vT,isUnionTypeNode:()=>m8,isUnparsedNode:()=>Ak,isUnparsedPrepend:()=>jJ,isUnparsedSource:()=>UJ,isUnparsedTextLike:()=>hx,isUrl:()=>T5,isValidBigIntString:()=>yS,isValidESSymbolDeclaration:()=>lP,isValidTypeOnlyAliasUseSite:()=>RM,isValueSignatureDeclaration:()=>vN,isVarConst:()=>s4,isVariableDeclaration:()=>Ei,isVariableDeclarationInVariableStatement:()=>l4,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>Nm,isVariableDeclarationInitializedToRequire:()=>v4,isVariableDeclarationList:()=>Sb,isVariableLike:()=>o2,isVariableLikeOrAccessor:()=>_P,isVariableStatement:()=>_s,isVoidExpression:()=>bb,isWatchSet:()=>cO,isWhileStatement:()=>dJ,isWhiteSpaceLike:()=>qi,isWhiteSpaceSingleLine:()=>Lo,isWithStatement:()=>bJ,isWriteAccess:()=>mO,isWriteOnlyAccess:()=>fO,isYieldExpression:()=>iJ,jsxModeNeedsExplicitImport:()=>jsxModeNeedsExplicitImport,keywordPart:()=>keywordPart,last:()=>ba,lastOrUndefined:()=>Ti,length:()=>Ha,libMap:()=>libMap,libs:()=>libs,lineBreakPart:()=>lineBreakPart,linkNamePart:()=>linkNamePart,linkPart:()=>linkPart,linkTextPart:()=>linkTextPart,listFiles:()=>listFiles,loadModuleFromGlobalCache:()=>loadModuleFromGlobalCache,loadWithModeAwareCache:()=>loadWithModeAwareCache,makeIdentifierFromModuleName:()=>SD,makeImport:()=>makeImport,makeImportIfNecessary:()=>makeImportIfNecessary,makeStringLiteral:()=>makeStringLiteral,mangleScopedPackageName:()=>mangleScopedPackageName,map:()=>ga,mapAllOrFail:()=>WC,mapDefined:()=>Ka,mapDefinedEntries:()=>HC,mapDefinedIterator:()=>VC,mapEntries:()=>QC,mapIterator:()=>UC,mapOneOrMany:()=>mapOneOrMany,mapToDisplayParts:()=>mapToDisplayParts,matchFiles:()=>hM,matchPatternOrExact:()=>PM,matchedText:()=>Z9,matchesExclude:()=>matchesExclude,maybeBind:()=>rn,maybeSetLocalizedDiagnosticMessages:()=>X3,memoize:()=>ah,memoizeCached:()=>R9,memoizeOne:()=>kr,memoizeWeak:()=>J9,metadataHelper:()=>metadataHelper,min:()=>B9,minAndMax:()=>IM,missingFileModifiedTime:()=>missingFileModifiedTime,modifierToFlag:()=>j2,modifiersToFlags:()=>ar,moduleOptionDeclaration:()=>moduleOptionDeclaration,moduleResolutionIsEqualTo:()=>$A,moduleResolutionNameAndModeGetter:()=>moduleResolutionNameAndModeGetter,moduleResolutionOptionDeclarations:()=>moduleResolutionOptionDeclarations,moduleResolutionSupportsPackageJsonExportsAndImports:()=>V2,moduleResolutionUsesNodeModules:()=>moduleResolutionUsesNodeModules,moduleSpecifiers:()=>ts_moduleSpecifiers_exports,moveEmitHelpers:()=>moveEmitHelpers,moveRangeEnd:()=>KI,moveRangePastDecorators:()=>F3,moveRangePastModifiers:()=>GI,moveRangePos:()=>Bf,moveSyntheticComments:()=>moveSyntheticComments,mutateMap:()=>gO,mutateMapSkippingNewValues:()=>z3,needsParentheses:()=>needsParentheses,needsScopeMarker:()=>oA,newCaseClauseTracker:()=>newCaseClauseTracker,newPrivateEnvironment:()=>newPrivateEnvironment,noEmitNotification:()=>noEmitNotification,noEmitSubstitution:()=>noEmitSubstitution,noTransformers:()=>noTransformers,noTruncationMaximumTruncationLength:()=>PS,nodeCanBeDecorated:()=>f4,nodeHasName:()=>GT,nodeIsDecorated:()=>s_,nodeIsMissing:()=>Bi,nodeIsPresent:()=>yl,nodeIsSynthesized:()=>pa,nodeModuleNameResolver:()=>nodeModuleNameResolver,nodeModulesPathPart:()=>nodeModulesPathPart,nodeNextJsonConfigResolver:()=>nodeNextJsonConfigResolver,nodeOrChildIsDecorated:()=>P0,nodeOverlapsWithStartEnd:()=>nodeOverlapsWithStartEnd,nodePosToString:()=>sD,nodeSeenTracker:()=>nodeSeenTracker,nodeStartsNewLexicalEnvironment:()=>HN,nodeToDisplayParts:()=>nodeToDisplayParts,noop:()=>Nr,noopFileWatcher:()=>noopFileWatcher,normalizePath:()=>sr,normalizeSlashes:()=>Ho,not:()=>n5,notImplemented:()=>L9,notImplementedResolver:()=>notImplementedResolver,nullNodeConverters:()=>nullNodeConverters,nullParenthesizerRules:()=>sb,nullTransformationContext:()=>nullTransformationContext,objectAllocator:()=>xt,operatorPart:()=>operatorPart,optionDeclarations:()=>optionDeclarations,optionMapToObject:()=>optionMapToObject,optionsAffectingProgramStructure:()=>optionsAffectingProgramStructure,optionsForBuild:()=>optionsForBuild,optionsForWatch:()=>optionsForWatch,optionsHaveChanges:()=>T_,optionsHaveModuleResolutionChanges:()=>Wx,or:()=>fg,orderedRemoveItem:()=>$9,orderedRemoveItemAt:()=>Zv,outFile:()=>P2,packageIdToPackageName:()=>Vx,packageIdToString:()=>ZA,padLeft:()=>iT,padRight:()=>o5,paramHelper:()=>paramHelper,parameterIsThisKeyword:()=>jl,parameterNamePart:()=>parameterNamePart,parseBaseNodeFactory:()=>ig,parseBigInt:()=>JM,parseBuildCommand:()=>parseBuildCommand,parseCommandLine:()=>parseCommandLine,parseCommandLineWorker:()=>parseCommandLineWorker,parseConfigFileTextToJson:()=>parseConfigFileTextToJson,parseConfigFileWithSystem:()=>parseConfigFileWithSystem,parseConfigHostFromCompilerHostLike:()=>parseConfigHostFromCompilerHostLike,parseCustomTypeOption:()=>parseCustomTypeOption,parseIsolatedEntityName:()=>EF,parseIsolatedJSDocComment:()=>kF,parseJSDocTypeExpressionForTests:()=>AF,parseJsonConfigFileContent:()=>parseJsonConfigFileContent,parseJsonSourceFileConfigFileContent:()=>parseJsonSourceFileConfigFileContent,parseJsonText:()=>CF,parseListTypeOption:()=>parseListTypeOption,parseNodeFactory:()=>F_,parseNodeModuleFromPath:()=>parseNodeModuleFromPath,parsePackageName:()=>parsePackageName,parsePseudoBigInt:()=>qm,parseValidBigInt:()=>mS,patchWriteFileEnsuringDirectory:()=>patchWriteFileEnsuringDirectory,pathContainsNodeModules:()=>pathContainsNodeModules,pathIsAbsolute:()=>gg,pathIsBareSpecifier:()=>S5,pathIsRelative:()=>is,patternText:()=>Y9,perfLogger:()=>yf,performIncrementalCompilation:()=>performIncrementalCompilation,performance:()=>ts_performance_exports,plainJSErrors:()=>plainJSErrors,positionBelongsToNode:()=>positionBelongsToNode,positionIsASICandidate:()=>positionIsASICandidate,positionIsSynthesized:()=>wa,positionsAreOnSameLine:()=>E_,preProcessFile:()=>preProcessFile,probablyUsesSemicolons:()=>probablyUsesSemicolons,processCommentPragmas:()=>l7,processPragmasIntoFields:()=>u7,processTaggedTemplateExpression:()=>processTaggedTemplateExpression,programContainsEsModules:()=>programContainsEsModules,programContainsModules:()=>programContainsModules,projectReferenceIsEqualTo:()=>XA,propKeyHelper:()=>propKeyHelper,propertyNamePart:()=>propertyNamePart,pseudoBigIntToString:()=>Z2,punctuationPart:()=>punctuationPart,pushIfUnique:()=>wl,quote:()=>quote,quotePreferenceFromString:()=>quotePreferenceFromString,rangeContainsPosition:()=>rangeContainsPosition,rangeContainsPositionExclusive:()=>rangeContainsPositionExclusive,rangeContainsRange:()=>rangeContainsRange,rangeContainsRangeExclusive:()=>rangeContainsRangeExclusive,rangeContainsStartEnd:()=>rangeContainsStartEnd,rangeEndIsOnSameLineAsRangeStart:()=>eO,rangeEndPositionsAreOnSameLine:()=>ZI,rangeEquals:()=>u9,rangeIsOnSingleLine:()=>QI,rangeOfNode:()=>OM,rangeOfTypeParameters:()=>MM,rangeOverlapsWithStartEnd:()=>rangeOverlapsWithStartEnd,rangeStartIsOnSameLineAsRangeEnd:()=>j3,rangeStartPositionsAreOnSameLine:()=>YI,readBuilderProgram:()=>readBuilderProgram,readConfigFile:()=>readConfigFile,readHelper:()=>readHelper,readJson:()=>HI,readJsonConfigFile:()=>readJsonConfigFile,readJsonOrUndefined:()=>L3,realizeDiagnostics:()=>realizeDiagnostics,reduceEachLeadingCommentRange:()=>TT,reduceEachTrailingCommentRange:()=>xT,reduceLeft:()=>em,reduceLeftIterator:()=>MC,reducePathComponents:()=>va,refactor:()=>ts_refactor_exports,regExpEscape:()=>fM,relativeComplement:()=>_9,removeAllComments:()=>removeAllComments,removeEmitHelper:()=>removeEmitHelper,removeExtension:()=>pS,removeFileExtension:()=>bl,removeIgnoredPath:()=>removeIgnoredPath,removeMinAndVersionNumbers:()=>X9,removeOptionality:()=>removeOptionality,removePrefix:()=>e5,removeSuffix:()=>K9,removeTrailingDirectorySeparator:()=>g_,repeatString:()=>repeatString,replaceElement:()=>y9,resolutionExtensionIsTSOrJson:()=>kM,resolveConfigFileProjectName:()=>resolveConfigFileProjectName,resolveJSModule:()=>resolveJSModule,resolveLibrary:()=>resolveLibrary,resolveModuleName:()=>resolveModuleName,resolveModuleNameFromCache:()=>resolveModuleNameFromCache,resolvePackageNameToPackageJson:()=>resolvePackageNameToPackageJson,resolvePath:()=>g0,resolveProjectReferencePath:()=>resolveProjectReferencePath,resolveTripleslashReference:()=>resolveTripleslashReference,resolveTypeReferenceDirective:()=>resolveTypeReferenceDirective,resolvingEmptyArray:()=>AS,restHelper:()=>restHelper,returnFalse:()=>df,returnNoopFileWatcher:()=>returnNoopFileWatcher,returnTrue:()=>Kv,returnUndefined:()=>M9,returnsPromise:()=>returnsPromise,runInitializersHelper:()=>runInitializersHelper,sameFlatMap:()=>Fv,sameMap:()=>qC,sameMapping:()=>sameMapping,scanShebangTrivia:()=>kg,scanTokenAtPosition:()=>GD,scanner:()=>zo,screenStartingMessageCodes:()=>screenStartingMessageCodes,semanticDiagnosticsOptionDeclarations:()=>semanticDiagnosticsOptionDeclarations,serializeCompilerOptions:()=>serializeCompilerOptions,server:()=>ts_server_exports,servicesVersion:()=>P7,setCommentRange:()=>setCommentRange,setConfigFileInOptions:()=>setConfigFileInOptions,setConstantValue:()=>setConstantValue,setEachParent:()=>n_,setEmitFlags:()=>setEmitFlags,setFunctionNameHelper:()=>setFunctionNameHelper,setGetSourceFileAsHashVersioned:()=>setGetSourceFileAsHashVersioned,setIdentifierAutoGenerate:()=>setIdentifierAutoGenerate,setIdentifierGeneratedImportReference:()=>setIdentifierGeneratedImportReference,setIdentifierTypeArguments:()=>setIdentifierTypeArguments,setInternalEmitFlags:()=>setInternalEmitFlags,setLocalizedDiagnosticMessages:()=>G3,setModuleDefaultHelper:()=>setModuleDefaultHelper,setNodeFlags:()=>zM,setObjectAllocator:()=>K3,setOriginalNode:()=>Kn,setParent:()=>Vi,setParentRecursive:()=>gS,setPrivateIdentifier:()=>setPrivateIdentifier,setResolvedModule:()=>HA,setResolvedTypeReferenceDirective:()=>KA,setSnippetElement:()=>setSnippetElement,setSourceMapRange:()=>setSourceMapRange,setStackTraceLimit:()=>setStackTraceLimit,setStartsOnNewLine:()=>setStartsOnNewLine,setSyntheticLeadingComments:()=>setSyntheticLeadingComments,setSyntheticTrailingComments:()=>setSyntheticTrailingComments,setSys:()=>setSys,setSysLog:()=>setSysLog,setTextRange:()=>He,setTextRangeEnd:()=>hS,setTextRangePos:()=>qf,setTextRangePosEnd:()=>Va,setTextRangePosWidth:()=>zf,setTokenSourceMapRange:()=>setTokenSourceMapRange,setTypeNode:()=>setTypeNode,setUILocale:()=>Qv,setValueDeclaration:()=>iN,shouldAllowImportingTsExtension:()=>shouldAllowImportingTsExtension,shouldPreserveConstEnums:()=>eM,shouldResolveJsRequire:()=>QO,shouldUseUriStyleNodeCoreModules:()=>shouldUseUriStyleNodeCoreModules,showModuleSpecifier:()=>xO,signatureHasLiteralTypes:()=>signatureHasLiteralTypes,signatureHasRestParameter:()=>signatureHasRestParameter,signatureToDisplayParts:()=>signatureToDisplayParts,single:()=>f9,singleElementArray:()=>ff,singleIterator:()=>XC,singleOrMany:()=>m9,singleOrUndefined:()=>Zf,skipAlias:()=>pO,skipAssertions:()=>SR,skipConstraint:()=>skipConstraint,skipOuterExpressions:()=>ds,skipParentheses:()=>Fl,skipPartiallyEmittedExpressions:()=>vm,skipTrivia:()=>It,skipTypeChecking:()=>LM,skipTypeParentheses:()=>SN,skipWhile:()=>_5,sliceAfter:()=>NM,some:()=>ft,sort:()=>pf,sortAndDeduplicate:()=>Bv,sortAndDeduplicateDiagnostics:()=>K5,sourceFileAffectingCompilerOptions:()=>sourceFileAffectingCompilerOptions,sourceFileMayBeEmitted:()=>M0,sourceMapCommentRegExp:()=>sourceMapCommentRegExp,sourceMapCommentRegExpDontCareLineStart:()=>sourceMapCommentRegExpDontCareLineStart,spacePart:()=>spacePart,spanMap:()=>$C,spreadArrayHelper:()=>spreadArrayHelper,stableSort:()=>zv,startEndContainsRange:()=>startEndContainsRange,startEndOverlapsWithStartEnd:()=>startEndOverlapsWithStartEnd,startOnNewLine:()=>a1,startTracing:()=>startTracing,startsWith:()=>Jn,startsWithDirectory:()=>I5,startsWithUnderscore:()=>startsWithUnderscore,startsWithUseStrict:()=>K8,stringContains:()=>Ga,stringContainsAt:()=>stringContainsAt,stringToToken:()=>Al,stripQuotes:()=>nI,supportedDeclarationExtensions:()=>ob,supportedJSExtensions:()=>X0,supportedJSExtensionsFlat:()=>ab,supportedLocaleDirectories:()=>Xg,supportedTSExtensions:()=>Uo,supportedTSExtensionsFlat:()=>ib,supportedTSImplementationExtensions:()=>XS,suppressLeadingAndTrailingTrivia:()=>suppressLeadingAndTrailingTrivia,suppressLeadingTrivia:()=>suppressLeadingTrivia,suppressTrailingTrivia:()=>suppressTrailingTrivia,symbolEscapedNameNoDefault:()=>symbolEscapedNameNoDefault,symbolName:()=>Of,symbolNameNoDefault:()=>symbolNameNoDefault,symbolPart:()=>symbolPart,symbolToDisplayParts:()=>symbolToDisplayParts,syntaxMayBeASICandidate:()=>syntaxMayBeASICandidate,syntaxRequiresTrailingSemicolonOrASI:()=>syntaxRequiresTrailingSemicolonOrASI,sys:()=>h0,sysLog:()=>sysLog,tagNamesAreEquivalent:()=>gi,takeWhile:()=>s5,targetOptionDeclaration:()=>targetOptionDeclaration,templateObjectHelper:()=>templateObjectHelper,testFormatSettings:()=>testFormatSettings,textChangeRangeIsUnchanged:()=>UT,textChangeRangeNewSpan:()=>Ks,textChanges:()=>ts_textChanges_exports,textOrKeywordPart:()=>textOrKeywordPart,textPart:()=>textPart,textRangeContainsPositionInclusive:()=>X5,textSpanContainsPosition:()=>G5,textSpanContainsTextSpan:()=>$5,textSpanEnd:()=>tn,textSpanIntersection:()=>BT,textSpanIntersectsWith:()=>Z5,textSpanIntersectsWithPosition:()=>ek,textSpanIntersectsWithTextSpan:()=>Y5,textSpanIsEmpty:()=>FT,textSpanOverlap:()=>jT,textSpanOverlapsWith:()=>Q5,textSpansEqual:()=>textSpansEqual,textToKeywordObj:()=>tl,timestamp:()=>da,toArray:()=>Gd,toBuilderFileEmit:()=>toBuilderFileEmit,toBuilderStateFileInfoForMultiEmit:()=>toBuilderStateFileInfoForMultiEmit,toEditorSettings:()=>Zc,toFileNameLowerCase:()=>Xv,toLowerCase:()=>Gv,toPath:()=>vi,toProgramEmitPending:()=>toProgramEmitPending,tokenIsIdentifierOrKeyword:()=>At,tokenIsIdentifierOrKeywordOrGreaterThan:()=>bT,tokenToString:()=>an,trace:()=>trace,tracing:()=>fa,tracingEnabled:()=>tracingEnabled,transform:()=>transform,transformClassFields:()=>transformClassFields,transformDeclarations:()=>transformDeclarations,transformECMAScriptModule:()=>transformECMAScriptModule,transformES2015:()=>transformES2015,transformES2016:()=>transformES2016,transformES2017:()=>transformES2017,transformES2018:()=>transformES2018,transformES2019:()=>transformES2019,transformES2020:()=>transformES2020,transformES2021:()=>transformES2021,transformES5:()=>transformES5,transformESDecorators:()=>transformESDecorators,transformESNext:()=>transformESNext,transformGenerators:()=>transformGenerators,transformJsx:()=>transformJsx,transformLegacyDecorators:()=>transformLegacyDecorators,transformModule:()=>transformModule,transformNodeModule:()=>transformNodeModule,transformNodes:()=>transformNodes,transformSystemModule:()=>transformSystemModule,transformTypeScript:()=>transformTypeScript,transpile:()=>transpile,transpileModule:()=>transpileModule,transpileOptionValueCompilerOptions:()=>transpileOptionValueCompilerOptions,trimString:()=>am,trimStringEnd:()=>e_,trimStringStart:()=>ll,tryAddToSet:()=>GC,tryAndIgnoreErrors:()=>tryAndIgnoreErrors,tryCast:()=>Ar,tryDirectoryExists:()=>tryDirectoryExists,tryExtractTSExtension:()=>UI,tryFileExists:()=>tryFileExists,tryGetClassExtendingExpressionWithTypeArguments:()=>P3,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>N3,tryGetDirectories:()=>tryGetDirectories,tryGetExtensionFromPath:()=>Q2,tryGetImportFromModuleSpecifier:()=>D4,tryGetJSDocSatisfiesTypeNode:()=>kS,tryGetModuleNameFromFile:()=>Q8,tryGetModuleSpecifierFromDeclaration:()=>oN,tryGetNativePerformanceHooks:()=>f5,tryGetPropertyAccessOrIdentifierToString:()=>j0,tryGetPropertyNameOfBindingOrAssignmentElement:()=>Z8,tryGetSourceMappingURL:()=>tryGetSourceMappingURL,tryGetTextOfPropertyName:()=>Zg,tryIOAndConsumeErrors:()=>tryIOAndConsumeErrors,tryParsePattern:()=>dS,tryParsePatterns:()=>CM,tryParseRawSourceMap:()=>tryParseRawSourceMap,tryReadDirectory:()=>tryReadDirectory,tryReadFile:()=>tryReadFile,tryRemoveDirectoryPrefix:()=>dM,tryRemoveExtension:()=>uS,tryRemovePrefix:()=>nT,tryRemoveSuffix:()=>G9,typeAcquisitionDeclarations:()=>typeAcquisitionDeclarations,typeAliasNamePart:()=>typeAliasNamePart,typeDirectiveIsEqualTo:()=>eD,typeKeywords:()=>typeKeywords,typeParameterNamePart:()=>typeParameterNamePart,typeReferenceResolutionNameAndModeGetter:()=>typeReferenceResolutionNameAndModeGetter,typeToDisplayParts:()=>typeToDisplayParts,unchangedPollThresholds:()=>unchangedPollThresholds,unchangedTextChangeRange:()=>Gg,unescapeLeadingUnderscores:()=>Xo,unmangleScopedPackageName:()=>unmangleScopedPackageName,unorderedRemoveItem:()=>eT,unorderedRemoveItemAt:()=>pg,unreachableCodeIsError:()=>KO,unusedLabelIsError:()=>GO,unwrapInnermostStatementOfLabel:()=>pP,updateErrorForNoInputFiles:()=>updateErrorForNoInputFiles,updateLanguageServiceSourceFile:()=>k7,updateMissingFilePathsWatch:()=>updateMissingFilePathsWatch,updatePackageJsonWatch:()=>updatePackageJsonWatch,updateResolutionField:()=>updateResolutionField,updateSharedExtendedConfigFileWatcher:()=>updateSharedExtendedConfigFileWatcher,updateSourceFile:()=>Vb,updateWatchingWildcardDirectories:()=>updateWatchingWildcardDirectories,usesExtensionsOnImports:()=>lS,usingSingleLineStringWriter:()=>WA,utf16EncodeAsString:()=>$d,validateLocaleAndSetLanguage:()=>ik,valuesHelper:()=>valuesHelper,version:()=>uf,versionMajorMinor:()=>Mv,visitArray:()=>visitArray,visitCommaListElements:()=>visitCommaListElements,visitEachChild:()=>visitEachChild,visitFunctionBody:()=>visitFunctionBody,visitIterationBody:()=>visitIterationBody,visitLexicalEnvironment:()=>visitLexicalEnvironment,visitNode:()=>visitNode,visitNodes:()=>visitNodes2,visitParameterList:()=>visitParameterList,walkUpBindingElementsAndPatterns:()=>VT,walkUpLexicalEnvironments:()=>walkUpLexicalEnvironments,walkUpOuterExpressions:()=>xR,walkUpParenthesizedExpressions:()=>j4,walkUpParenthesizedTypes:()=>TN,walkUpParenthesizedTypesAndGetParentAndChild:()=>xN,whitespaceOrMapCommentRegExp:()=>whitespaceOrMapCommentRegExp,writeCommentRange:()=>wI,writeFile:()=>dI,writeFileEnsuringDirectories:()=>fI,zipToModeAwareCache:()=>zipToModeAwareCache,zipWith:()=>rh});var Iv=Ht({"src/typescript/_namespaces/ts.ts"(){"use strict";En(),m7(),U7(),mB()}}),yB=DC({"src/typescript/typescript.ts"(e,t){Iv(),Iv(),typeof console<"u"&&(M.loggingHost={log(n,i){switch(n){case 1:return console.error(i);case 2:return console.warn(i);case 3:return console.log(i);case 4:return console.log(i)}}}),t.exports=q7}});z7.exports=yB()});var o1=tt(W7=>{W7.typescriptVersionIsAtLeast=new Proxy({},{get:()=>!0})});var Gb=tt(Qr=>{"use strict";var hB=Qr&&Qr.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,s)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),gB=Qr&&Qr.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),bB=Qr&&Qr.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&hB(t,e,n);return gB(t,e),t};Object.defineProperty(Qr,"__esModule",{value:!0});Qr.getDecorators=Qr.getModifiers=void 0;var j_=bB(Cn()),vB=o1(),V7=vB.typescriptVersionIsAtLeast["4.8"];function TB(e){var t;if(e!=null){if(V7){if(j_.canHaveModifiers(e)){let n=j_.getModifiers(e);return n?Array.from(n):void 0}return}return(t=e.modifiers)===null||t===void 0?void 0:t.filter(n=>!j_.isDecorator(n))}}Qr.getModifiers=TB;function xB(e){var t;if(e!=null){if(V7){if(j_.canHaveDecorators(e)){let n=j_.getDecorators(e);return n?Array.from(n):void 0}return}return(t=e.decorators)===null||t===void 0?void 0:t.filter(j_.isDecorator)}}Qr.getDecorators=xB});var H7=tt(s1=>{"use strict";Object.defineProperty(s1,"__esModule",{value:!0});s1.xhtmlEntities=void 0;s1.xhtmlEntities={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}});var Xb=tt(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.AST_TOKEN_TYPES=oo.AST_NODE_TYPES=void 0;var SB;(function(e){e.AccessorProperty="AccessorProperty",e.ArrayExpression="ArrayExpression",e.ArrayPattern="ArrayPattern",e.ArrowFunctionExpression="ArrowFunctionExpression",e.AssignmentExpression="AssignmentExpression",e.AssignmentPattern="AssignmentPattern",e.AwaitExpression="AwaitExpression",e.BinaryExpression="BinaryExpression",e.BlockStatement="BlockStatement",e.BreakStatement="BreakStatement",e.CallExpression="CallExpression",e.CatchClause="CatchClause",e.ChainExpression="ChainExpression",e.ClassBody="ClassBody",e.ClassDeclaration="ClassDeclaration",e.ClassExpression="ClassExpression",e.ConditionalExpression="ConditionalExpression",e.ContinueStatement="ContinueStatement",e.DebuggerStatement="DebuggerStatement",e.Decorator="Decorator",e.DoWhileStatement="DoWhileStatement",e.EmptyStatement="EmptyStatement",e.ExportAllDeclaration="ExportAllDeclaration",e.ExportDefaultDeclaration="ExportDefaultDeclaration",e.ExportNamedDeclaration="ExportNamedDeclaration",e.ExportSpecifier="ExportSpecifier",e.ExpressionStatement="ExpressionStatement",e.ForInStatement="ForInStatement",e.ForOfStatement="ForOfStatement",e.ForStatement="ForStatement",e.FunctionDeclaration="FunctionDeclaration",e.FunctionExpression="FunctionExpression",e.Identifier="Identifier",e.IfStatement="IfStatement",e.ImportAttribute="ImportAttribute",e.ImportDeclaration="ImportDeclaration",e.ImportDefaultSpecifier="ImportDefaultSpecifier",e.ImportExpression="ImportExpression",e.ImportNamespaceSpecifier="ImportNamespaceSpecifier",e.ImportSpecifier="ImportSpecifier",e.JSXAttribute="JSXAttribute",e.JSXClosingElement="JSXClosingElement",e.JSXClosingFragment="JSXClosingFragment",e.JSXElement="JSXElement",e.JSXEmptyExpression="JSXEmptyExpression",e.JSXExpressionContainer="JSXExpressionContainer",e.JSXFragment="JSXFragment",e.JSXIdentifier="JSXIdentifier",e.JSXMemberExpression="JSXMemberExpression",e.JSXNamespacedName="JSXNamespacedName",e.JSXOpeningElement="JSXOpeningElement",e.JSXOpeningFragment="JSXOpeningFragment",e.JSXSpreadAttribute="JSXSpreadAttribute",e.JSXSpreadChild="JSXSpreadChild",e.JSXText="JSXText",e.LabeledStatement="LabeledStatement",e.Literal="Literal",e.LogicalExpression="LogicalExpression",e.MemberExpression="MemberExpression",e.MetaProperty="MetaProperty",e.MethodDefinition="MethodDefinition",e.NewExpression="NewExpression",e.ObjectExpression="ObjectExpression",e.ObjectPattern="ObjectPattern",e.PrivateIdentifier="PrivateIdentifier",e.Program="Program",e.Property="Property",e.PropertyDefinition="PropertyDefinition",e.RestElement="RestElement",e.ReturnStatement="ReturnStatement",e.SequenceExpression="SequenceExpression",e.SpreadElement="SpreadElement",e.StaticBlock="StaticBlock",e.Super="Super",e.SwitchCase="SwitchCase",e.SwitchStatement="SwitchStatement",e.TaggedTemplateExpression="TaggedTemplateExpression",e.TemplateElement="TemplateElement",e.TemplateLiteral="TemplateLiteral",e.ThisExpression="ThisExpression",e.ThrowStatement="ThrowStatement",e.TryStatement="TryStatement",e.UnaryExpression="UnaryExpression",e.UpdateExpression="UpdateExpression",e.VariableDeclaration="VariableDeclaration",e.VariableDeclarator="VariableDeclarator",e.WhileStatement="WhileStatement",e.WithStatement="WithStatement",e.YieldExpression="YieldExpression",e.TSAbstractAccessorProperty="TSAbstractAccessorProperty",e.TSAbstractKeyword="TSAbstractKeyword",e.TSAbstractMethodDefinition="TSAbstractMethodDefinition",e.TSAbstractPropertyDefinition="TSAbstractPropertyDefinition",e.TSAnyKeyword="TSAnyKeyword",e.TSArrayType="TSArrayType",e.TSAsExpression="TSAsExpression",e.TSAsyncKeyword="TSAsyncKeyword",e.TSBigIntKeyword="TSBigIntKeyword",e.TSBooleanKeyword="TSBooleanKeyword",e.TSCallSignatureDeclaration="TSCallSignatureDeclaration",e.TSClassImplements="TSClassImplements",e.TSConditionalType="TSConditionalType",e.TSConstructorType="TSConstructorType",e.TSConstructSignatureDeclaration="TSConstructSignatureDeclaration",e.TSDeclareFunction="TSDeclareFunction",e.TSDeclareKeyword="TSDeclareKeyword",e.TSEmptyBodyFunctionExpression="TSEmptyBodyFunctionExpression",e.TSEnumDeclaration="TSEnumDeclaration",e.TSEnumMember="TSEnumMember",e.TSExportAssignment="TSExportAssignment",e.TSExportKeyword="TSExportKeyword",e.TSExternalModuleReference="TSExternalModuleReference",e.TSFunctionType="TSFunctionType",e.TSInstantiationExpression="TSInstantiationExpression",e.TSImportEqualsDeclaration="TSImportEqualsDeclaration",e.TSImportType="TSImportType",e.TSIndexedAccessType="TSIndexedAccessType",e.TSIndexSignature="TSIndexSignature",e.TSInferType="TSInferType",e.TSInterfaceBody="TSInterfaceBody",e.TSInterfaceDeclaration="TSInterfaceDeclaration",e.TSInterfaceHeritage="TSInterfaceHeritage",e.TSIntersectionType="TSIntersectionType",e.TSIntrinsicKeyword="TSIntrinsicKeyword",e.TSLiteralType="TSLiteralType",e.TSMappedType="TSMappedType",e.TSMethodSignature="TSMethodSignature",e.TSModuleBlock="TSModuleBlock",e.TSModuleDeclaration="TSModuleDeclaration",e.TSNamedTupleMember="TSNamedTupleMember",e.TSNamespaceExportDeclaration="TSNamespaceExportDeclaration",e.TSNeverKeyword="TSNeverKeyword",e.TSNonNullExpression="TSNonNullExpression",e.TSNullKeyword="TSNullKeyword",e.TSNumberKeyword="TSNumberKeyword",e.TSObjectKeyword="TSObjectKeyword",e.TSOptionalType="TSOptionalType",e.TSParameterProperty="TSParameterProperty",e.TSPrivateKeyword="TSPrivateKeyword",e.TSPropertySignature="TSPropertySignature",e.TSProtectedKeyword="TSProtectedKeyword",e.TSPublicKeyword="TSPublicKeyword",e.TSQualifiedName="TSQualifiedName",e.TSReadonlyKeyword="TSReadonlyKeyword",e.TSRestType="TSRestType",e.TSSatisfiesExpression="TSSatisfiesExpression",e.TSStaticKeyword="TSStaticKeyword",e.TSStringKeyword="TSStringKeyword",e.TSSymbolKeyword="TSSymbolKeyword",e.TSTemplateLiteralType="TSTemplateLiteralType",e.TSThisType="TSThisType",e.TSTupleType="TSTupleType",e.TSTypeAliasDeclaration="TSTypeAliasDeclaration",e.TSTypeAnnotation="TSTypeAnnotation",e.TSTypeAssertion="TSTypeAssertion",e.TSTypeLiteral="TSTypeLiteral",e.TSTypeOperator="TSTypeOperator",e.TSTypeParameter="TSTypeParameter",e.TSTypeParameterDeclaration="TSTypeParameterDeclaration",e.TSTypeParameterInstantiation="TSTypeParameterInstantiation",e.TSTypePredicate="TSTypePredicate",e.TSTypeQuery="TSTypeQuery",e.TSTypeReference="TSTypeReference",e.TSUndefinedKeyword="TSUndefinedKeyword",e.TSUnionType="TSUnionType",e.TSUnknownKeyword="TSUnknownKeyword",e.TSVoidKeyword="TSVoidKeyword"})(SB=oo.AST_NODE_TYPES||(oo.AST_NODE_TYPES={}));var wB;(function(e){e.Boolean="Boolean",e.Identifier="Identifier",e.JSXIdentifier="JSXIdentifier",e.JSXText="JSXText",e.Keyword="Keyword",e.Null="Null",e.Numeric="Numeric",e.Punctuator="Punctuator",e.RegularExpression="RegularExpression",e.String="String",e.Template="Template",e.Block="Block",e.Line="Line"})(wB=oo.AST_TOKEN_TYPES||(oo.AST_TOKEN_TYPES={}))});var G7=tt(K7=>{"use strict";Object.defineProperty(K7,"__esModule",{value:!0})});var $7=tt(X7=>{"use strict";Object.defineProperty(X7,"__esModule",{value:!0})});var Q7=tt(Xi=>{"use strict";var EB=Xi&&Xi.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,s)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),CB=Xi&&Xi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),kB=Xi&&Xi.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&EB(t,e,n);return CB(t,e),t};Object.defineProperty(Xi,"__esModule",{value:!0});Xi.TSESTree=void 0;Xi.TSESTree=kB(Xb())});var Z7=tt(Ir=>{"use strict";var AB=Ir&&Ir.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,s)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),$b=Ir&&Ir.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&AB(t,e,n)};Object.defineProperty(Ir,"__esModule",{value:!0});Ir.AST_TOKEN_TYPES=Ir.AST_NODE_TYPES=void 0;var Y7=Xb();Object.defineProperty(Ir,"AST_NODE_TYPES",{enumerable:!0,get:function(){return Y7.AST_NODE_TYPES}});Object.defineProperty(Ir,"AST_TOKEN_TYPES",{enumerable:!0,get:function(){return Y7.AST_TOKEN_TYPES}});$b(G7(),Ir);$b($7(),Ir);$b(Q7(),Ir)});var tw=tt(ew=>{"use strict";Object.defineProperty(ew,"__esModule",{value:!0})});var rw=tt(nw=>{"use strict";Object.defineProperty(nw,"__esModule",{value:!0})});var _1=tt(lr=>{"use strict";var DB=lr&&lr.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,s)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),iw=lr&&lr.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&DB(t,e,n)};Object.defineProperty(lr,"__esModule",{value:!0});lr.TSESTree=lr.AST_TOKEN_TYPES=lr.AST_NODE_TYPES=void 0;var Qb=Z7();Object.defineProperty(lr,"AST_NODE_TYPES",{enumerable:!0,get:function(){return Qb.AST_NODE_TYPES}});Object.defineProperty(lr,"AST_TOKEN_TYPES",{enumerable:!0,get:function(){return Qb.AST_TOKEN_TYPES}});Object.defineProperty(lr,"TSESTree",{enumerable:!0,get:function(){return Qb.TSESTree}});iw(tw(),lr);iw(rw(),lr)});var l1=tt(xe=>{"use strict";var PB=xe&&xe.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,s)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),NB=xe&&xe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),IB=xe&&xe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&PB(t,e,n);return NB(t,e),t};Object.defineProperty(xe,"__esModule",{value:!0});xe.isThisInTypeQuery=xe.isThisIdentifier=xe.identifierIsThisKeyword=xe.firstDefined=xe.nodeHasTokens=xe.createError=xe.TSError=xe.convertTokens=xe.convertToken=xe.getTokenType=xe.isChildUnwrappableOptionalChain=xe.isChainExpression=xe.isOptional=xe.isComputedProperty=xe.unescapeStringLiteralText=xe.hasJSXAncestor=xe.findFirstMatchingAncestor=xe.findNextToken=xe.getTSNodeAccessibility=xe.getDeclarationKind=xe.isJSXToken=xe.isToken=xe.getRange=xe.canContainDirective=xe.getLocFor=xe.getLineAndCharacterFor=xe.getBinaryExpressionType=xe.isJSDocComment=xe.isComment=xe.isComma=xe.getLastModifier=xe.hasModifier=xe.isESTreeClassMember=xe.getTextForTokenKind=xe.isLogicalOperator=xe.isAssignmentOperator=void 0;var kn=IB(Cn()),e6=Gb(),OB=H7(),on=_1(),MB=o1(),aw=MB.typescriptVersionIsAtLeast["5.0"],ze=kn.SyntaxKind,LB=[ze.BarBarToken,ze.AmpersandAmpersandToken,ze.QuestionQuestionToken];function ow(e){return e.kind>=ze.FirstAssignment&&e.kind<=ze.LastAssignment}xe.isAssignmentOperator=ow;function sw(e){return LB.includes(e.kind)}xe.isLogicalOperator=sw;function JB(e){return kn.tokenToString(e)}xe.getTextForTokenKind=JB;function RB(e){return e.kind!==ze.SemicolonClassElement}xe.isESTreeClassMember=RB;function FB(e,t){let n=(0,e6.getModifiers)(t);return(n==null?void 0:n.some(i=>i.kind===e))===!0}xe.hasModifier=FB;function jB(e){var t;let n=(0,e6.getModifiers)(e);return n==null?null:(t=n[n.length-1])!==null&&t!==void 0?t:null}xe.getLastModifier=jB;function BB(e){return e.kind===ze.CommaToken}xe.isComma=BB;function _w(e){return e.kind===ze.SingleLineCommentTrivia||e.kind===ze.MultiLineCommentTrivia}xe.isComment=_w;function cw(e){return e.kind===ze.JSDocComment}xe.isJSDocComment=cw;function UB(e){return ow(e)?on.AST_NODE_TYPES.AssignmentExpression:sw(e)?on.AST_NODE_TYPES.LogicalExpression:on.AST_NODE_TYPES.BinaryExpression}xe.getBinaryExpressionType=UB;function Yb(e,t){let n=t.getLineAndCharacterOfPosition(e);return{line:n.line+1,column:n.character}}xe.getLineAndCharacterFor=Yb;function Zb(e,t,n){return{start:Yb(e,n),end:Yb(t,n)}}xe.getLocFor=Zb;function qB(e){if(e.kind===kn.SyntaxKind.Block)switch(e.parent.kind){case kn.SyntaxKind.Constructor:case kn.SyntaxKind.GetAccessor:case kn.SyntaxKind.SetAccessor:case kn.SyntaxKind.ArrowFunction:case kn.SyntaxKind.FunctionExpression:case kn.SyntaxKind.FunctionDeclaration:case kn.SyntaxKind.MethodDeclaration:return!0;default:return!1}return!0}xe.canContainDirective=qB;function zB(e,t){return[e.getStart(t),e.getEnd()]}xe.getRange=zB;function lw(e){return e.kind>=ze.FirstToken&&e.kind<=ze.LastToken}xe.isToken=lw;function t6(e){return e.kind>=ze.JsxElement&&e.kind<=ze.JsxAttribute}xe.isJSXToken=t6;function WB(e){return e.flags&kn.NodeFlags.Let?"let":e.flags&kn.NodeFlags.Const?"const":"var"}xe.getDeclarationKind=WB;function VB(e){let t=(0,e6.getModifiers)(e);if(t==null)return null;for(let n of t)switch(n.kind){case ze.PublicKeyword:return"public";case ze.ProtectedKeyword:return"protected";case ze.PrivateKeyword:return"private";default:break}return null}xe.getTSNodeAccessibility=VB;function HB(e,t,n){return i(t);function i(s){return kn.isToken(s)&&s.pos===e.end?s:hw(s.getChildren(n),l=>(l.pos<=e.pos&&l.end>e.end||l.pos===e.end)&&yw(l,n)?i(l):void 0)}}xe.findNextToken=HB;function uw(e,t){for(;e;){if(t(e))return e;e=e.parent}}xe.findFirstMatchingAncestor=uw;function pw(e){return!!uw(e,t6)}xe.hasJSXAncestor=pw;function KB(e){return e.replace(/&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g,t=>{let n=t.slice(1,-1);if(n[0]==="#"){let i=n[1]==="x"?parseInt(n.slice(2),16):parseInt(n.slice(1),10);return i>1114111?t:String.fromCodePoint(i)}return OB.xhtmlEntities[n]||t})}xe.unescapeStringLiteralText=KB;function GB(e){return e.kind===ze.ComputedPropertyName}xe.isComputedProperty=GB;function XB(e){return e.questionToken?e.questionToken.kind===ze.QuestionToken:!1}xe.isOptional=XB;function dw(e){return e.type===on.AST_NODE_TYPES.ChainExpression}xe.isChainExpression=dw;function $B(e,t){return dw(t)&&e.expression.kind!==kn.SyntaxKind.ParenthesizedExpression}xe.isChildUnwrappableOptionalChain=$B;function fw(e){let t;if(aw&&e.kind===ze.Identifier?t=kn.identifierToKeywordKind(e):"originalKeywordKind"in e&&(t=e.originalKeywordKind),t)return t===ze.NullKeyword?on.AST_TOKEN_TYPES.Null:t>=ze.FirstFutureReservedWord&&t<=ze.LastKeyword?on.AST_TOKEN_TYPES.Identifier:on.AST_TOKEN_TYPES.Keyword;if(e.kind>=ze.FirstKeyword&&e.kind<=ze.LastFutureReservedWord)return e.kind===ze.FalseKeyword||e.kind===ze.TrueKeyword?on.AST_TOKEN_TYPES.Boolean:on.AST_TOKEN_TYPES.Keyword;if(e.kind>=ze.FirstPunctuation&&e.kind<=ze.LastPunctuation)return on.AST_TOKEN_TYPES.Punctuator;if(e.kind>=ze.NoSubstitutionTemplateLiteral&&e.kind<=ze.TemplateTail)return on.AST_TOKEN_TYPES.Template;switch(e.kind){case ze.NumericLiteral:return on.AST_TOKEN_TYPES.Numeric;case ze.JsxText:return on.AST_TOKEN_TYPES.JSXText;case ze.StringLiteral:return e.parent&&(e.parent.kind===ze.JsxAttribute||e.parent.kind===ze.JsxElement)?on.AST_TOKEN_TYPES.JSXText:on.AST_TOKEN_TYPES.String;case ze.RegularExpressionLiteral:return on.AST_TOKEN_TYPES.RegularExpression;case ze.Identifier:case ze.ConstructorKeyword:case ze.GetKeyword:case ze.SetKeyword:default:}return e.parent&&e.kind===ze.Identifier&&(t6(e.parent)||e.parent.kind===ze.PropertyAccessExpression&&pw(e))?on.AST_TOKEN_TYPES.JSXIdentifier:on.AST_TOKEN_TYPES.Identifier}xe.getTokenType=fw;function mw(e,t){let n=e.kind===ze.JsxText?e.getFullStart():e.getStart(t),i=e.getEnd(),s=t.text.slice(n,i),l=fw(e);return l===on.AST_TOKEN_TYPES.RegularExpression?{type:l,value:s,range:[n,i],loc:Zb(n,i,t),regex:{pattern:s.slice(1,s.lastIndexOf("/")),flags:s.slice(s.lastIndexOf("/")+1)}}:{type:l,value:s,range:[n,i],loc:Zb(n,i,t)}}xe.convertToken=mw;function QB(e){let t=[];function n(i){if(!(_w(i)||cw(i)))if(lw(i)&&i.kind!==ze.EndOfFileToken){let s=mw(i,e);s&&t.push(s)}else i.getChildren(e).forEach(n)}return n(e),t}xe.convertTokens=QB;var c1=class extends Error{constructor(t,n,i,s,l){super(t),this.fileName=n,this.index=i,this.lineNumber=s,this.column=l,Object.defineProperty(this,"name",{value:new.target.name,enumerable:!1,configurable:!0})}};xe.TSError=c1;function YB(e,t,n){let i=e.getLineAndCharacterOfPosition(t);return new c1(n,e.fileName,t,i.line+1,i.character)}xe.createError=YB;function yw(e,t){return e.kind===ze.EndOfFileToken?!!e.jsDoc:e.getWidth(t)!==0}xe.nodeHasTokens=yw;function hw(e,t){if(e!==void 0)for(let n=0;n{"use strict";var eU=Yr&&Yr.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,s)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),tU=Yr&&Yr.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),nU=Yr&&Yr.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&eU(t,e,n);return tU(t,e),t};Object.defineProperty(Yr,"__esModule",{value:!0});Yr.Converter=Yr.convertError=void 0;var so=nU(Cn()),$i=Gb(),ye=l1(),q=_1(),vw=o1(),O=so.SyntaxKind;function rU(e){return(0,ye.createError)(e.file,e.start,"message"in e&&e.message||e.messageText)}Yr.convertError=rU;var n6=class{constructor(t,n){this.esTreeNodeToTSNodeMap=new WeakMap,this.tsNodeToESTreeNodeMap=new WeakMap,this.allowPattern=!1,this.inTypeMode=!1,this.ast=t,this.options=Object.assign({},n)}getASTMaps(){return{esTreeNodeToTSNodeMap:this.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:this.tsNodeToESTreeNodeMap}}convertProgram(){return this.converter(this.ast)}converter(t,n,i,s){if(!t)return null;let l=this.inTypeMode,d=this.allowPattern;i!==void 0&&(this.inTypeMode=i),s!==void 0&&(this.allowPattern=s);let y=this.convertNode(t,n??t.parent);return this.registerTSNodeInNodeMap(t,y),this.inTypeMode=l,this.allowPattern=d,y}fixExports(t,n){let i=(0,$i.getModifiers)(t);if((i==null?void 0:i[0].kind)===O.ExportKeyword){this.registerTSNodeInNodeMap(t,n);let s=i[0],l=i[1],d=l&&l.kind===O.DefaultKeyword,y=d?(0,ye.findNextToken)(l,this.ast,this.ast):(0,ye.findNextToken)(s,this.ast,this.ast);if(n.range[0]=y.getStart(this.ast),n.loc=(0,ye.getLocFor)(n.range[0],n.range[1],this.ast),d)return this.createNode(t,{type:q.AST_NODE_TYPES.ExportDefaultDeclaration,declaration:n,range:[s.getStart(this.ast),n.range[1]],exportKind:"value"});{let p=n.type===q.AST_NODE_TYPES.TSInterfaceDeclaration||n.type===q.AST_NODE_TYPES.TSTypeAliasDeclaration,x="declare"in n&&n.declare===!0;return this.createNode(t,{type:q.AST_NODE_TYPES.ExportNamedDeclaration,declaration:n,specifiers:[],source:null,exportKind:p||x?"type":"value",range:[s.getStart(this.ast),n.range[1]],assertions:[]})}}return n}registerTSNodeInNodeMap(t,n){n&&this.options.shouldPreserveNodeMaps&&(this.tsNodeToESTreeNodeMap.has(t)||this.tsNodeToESTreeNodeMap.set(t,n))}convertPattern(t,n){return this.converter(t,n,this.inTypeMode,!0)}convertChild(t,n){return this.converter(t,n,this.inTypeMode,!1)}convertType(t,n){return this.converter(t,n,!0,!1)}createNode(t,n){let i=n;return i.range||(i.range=(0,ye.getRange)(t,this.ast)),i.loc||(i.loc=(0,ye.getLocFor)(i.range[0],i.range[1],this.ast)),i&&this.options.shouldPreserveNodeMaps&&this.esTreeNodeToTSNodeMap.set(i,t),i}convertBindingNameWithTypeAnnotation(t,n,i){let s=this.convertPattern(t);return n&&(s.typeAnnotation=this.convertTypeAnnotation(n,i),this.fixParentLocation(s,s.typeAnnotation.range)),s}convertTypeAnnotation(t,n){let i=(n==null?void 0:n.kind)===O.FunctionType||(n==null?void 0:n.kind)===O.ConstructorType?2:1,s=t.getFullStart()-i,l=(0,ye.getLocFor)(s,t.end,this.ast);return{type:q.AST_NODE_TYPES.TSTypeAnnotation,loc:l,range:[s,t.end],typeAnnotation:this.convertType(t)}}convertBodyExpressions(t,n){let i=(0,ye.canContainDirective)(n);return t.map(s=>{let l=this.convertChild(s);if(i)if(l!=null&&l.expression&&so.isExpressionStatement(s)&&so.isStringLiteral(s.expression)){let d=l.expression.raw;return l.directive=d.slice(1,-1),l}else i=!1;return l}).filter(s=>s)}convertTypeArgumentsToTypeParameters(t,n){let i=(0,ye.findNextToken)(t,this.ast,this.ast);return this.createNode(n,{type:q.AST_NODE_TYPES.TSTypeParameterInstantiation,range:[t.pos-1,i.end],params:t.map(s=>this.convertType(s))})}convertTSTypeParametersToTypeParametersDeclaration(t){let n=(0,ye.findNextToken)(t,this.ast,this.ast);return{type:q.AST_NODE_TYPES.TSTypeParameterDeclaration,range:[t.pos-1,n.end],loc:(0,ye.getLocFor)(t.pos-1,n.end,this.ast),params:t.map(i=>this.convertType(i))}}convertParameters(t){return t!=null&&t.length?t.map(n=>{let i=this.convertChild(n),s=(0,$i.getDecorators)(n);return s!=null&&s.length&&(i.decorators=s.map(l=>this.convertChild(l))),i}):[]}convertChainExpression(t,n){let{child:i,isOptional:s}=(()=>t.type===q.AST_NODE_TYPES.MemberExpression?{child:t.object,isOptional:t.optional}:t.type===q.AST_NODE_TYPES.CallExpression?{child:t.callee,isOptional:t.optional}:{child:t.expression,isOptional:!1})(),l=(0,ye.isChildUnwrappableOptionalChain)(n,i);if(!l&&!s)return t;if(l&&(0,ye.isChainExpression)(i)){let d=i.expression;t.type===q.AST_NODE_TYPES.MemberExpression?t.object=d:t.type===q.AST_NODE_TYPES.CallExpression?t.callee=d:t.expression=d}return this.createNode(n,{type:q.AST_NODE_TYPES.ChainExpression,expression:t})}deeplyCopy(t){if(t.kind===so.SyntaxKind.JSDocFunctionType)throw(0,ye.createError)(this.ast,t.pos,"JSDoc types can only be used inside documentation comments.");let n=`TS${O[t.kind]}`;if(this.options.errorOnUnknownASTType&&!q.AST_NODE_TYPES[n])throw new Error(`Unknown AST_NODE_TYPE: "${n}"`);let i=this.createNode(t,{type:n});"type"in t&&(i.typeAnnotation=t.type&&"kind"in t.type&&so.isTypeNode(t.type)?this.convertTypeAnnotation(t.type,t):null),"typeArguments"in t&&(i.typeParameters=t.typeArguments&&"pos"in t.typeArguments?this.convertTypeArgumentsToTypeParameters(t.typeArguments,t):null),"typeParameters"in t&&(i.typeParameters=t.typeParameters&&"pos"in t.typeParameters?this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters):null);let s=(0,$i.getDecorators)(t);s!=null&&s.length&&(i.decorators=s.map(d=>this.convertChild(d)));let l=new Set(["_children","decorators","end","flags","illegalDecorators","heritageClauses","locals","localSymbol","jsDoc","kind","modifierFlagsCache","modifiers","nextContainer","parent","pos","symbol","transformFlags","type","typeArguments","typeParameters"]);return Object.entries(t).filter(([d])=>!l.has(d)).forEach(([d,y])=>{Array.isArray(y)?i[d]=y.map(p=>this.convertChild(p)):y&&typeof y=="object"&&y.kind?i[d]=this.convertChild(y):i[d]=y}),i}convertJSXIdentifier(t){let n=this.createNode(t,{type:q.AST_NODE_TYPES.JSXIdentifier,name:t.getText()});return this.registerTSNodeInNodeMap(t,n),n}convertJSXNamespaceOrIdentifier(t){let n=t.getText(),i=n.indexOf(":");if(i>0){let s=(0,ye.getRange)(t,this.ast),l=this.createNode(t,{type:q.AST_NODE_TYPES.JSXNamespacedName,namespace:this.createNode(t,{type:q.AST_NODE_TYPES.JSXIdentifier,name:n.slice(0,i),range:[s[0],s[0]+i]}),name:this.createNode(t,{type:q.AST_NODE_TYPES.JSXIdentifier,name:n.slice(i+1),range:[s[0]+i+1,s[1]]}),range:s});return this.registerTSNodeInNodeMap(t,l),l}return this.convertJSXIdentifier(t)}convertJSXTagName(t,n){let i;switch(t.kind){case O.PropertyAccessExpression:if(t.name.kind===O.PrivateIdentifier)throw new Error("Non-private identifier expected.");i=this.createNode(t,{type:q.AST_NODE_TYPES.JSXMemberExpression,object:this.convertJSXTagName(t.expression,n),property:this.convertJSXIdentifier(t.name)});break;case O.ThisKeyword:case O.Identifier:default:return this.convertJSXNamespaceOrIdentifier(t)}return this.registerTSNodeInNodeMap(t,i),i}convertMethodSignature(t){let n=this.createNode(t,{type:q.AST_NODE_TYPES.TSMethodSignature,computed:(0,ye.isComputedProperty)(t.name),key:this.convertChild(t.name),params:this.convertParameters(t.parameters),kind:(()=>{switch(t.kind){case O.GetAccessor:return"get";case O.SetAccessor:return"set";case O.MethodSignature:return"method"}})()});(0,ye.isOptional)(t)&&(n.optional=!0),t.type&&(n.returnType=this.convertTypeAnnotation(t.type,t)),(0,ye.hasModifier)(O.ReadonlyKeyword,t)&&(n.readonly=!0),t.typeParameters&&(n.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters));let i=(0,ye.getTSNodeAccessibility)(t);return i&&(n.accessibility=i),(0,ye.hasModifier)(O.ExportKeyword,t)&&(n.export=!0),(0,ye.hasModifier)(O.StaticKeyword,t)&&(n.static=!0),n}convertAssertClasue(t){return t===void 0?[]:t.elements.map(n=>this.convertChild(n))}applyModifiersToResult(t,n){if(!n)return;let i=[];for(let s of n)switch(s.kind){case O.ExportKeyword:case O.DefaultKeyword:break;case O.ConstKeyword:t.const=!0;break;case O.DeclareKeyword:t.declare=!0;break;default:i.push(this.convertChild(s));break}i.length>0&&(t.modifiers=i)}fixParentLocation(t,n){n[0]t.range[1]&&(t.range[1]=n[1],t.loc.end=(0,ye.getLineAndCharacterFor)(t.range[1],this.ast))}assertModuleSpecifier(t,n){var i;if(!n&&t.moduleSpecifier==null)throw(0,ye.createError)(this.ast,t.pos,"Module specifier must be a string literal.");if(t.moduleSpecifier&&((i=t.moduleSpecifier)===null||i===void 0?void 0:i.kind)!==O.StringLiteral)throw(0,ye.createError)(this.ast,t.moduleSpecifier.pos,"Module specifier must be a string literal.")}convertNode(t,n){var i,s,l,d,y,p,x,h,D,w;switch(t.kind){case O.SourceFile:return this.createNode(t,{type:q.AST_NODE_TYPES.Program,body:this.convertBodyExpressions(t.statements,t),sourceType:t.externalModuleIndicator?"module":"script",range:[t.getStart(this.ast),t.endOfFileToken.end]});case O.Block:return this.createNode(t,{type:q.AST_NODE_TYPES.BlockStatement,body:this.convertBodyExpressions(t.statements,t)});case O.Identifier:return(0,ye.isThisInTypeQuery)(t)?this.createNode(t,{type:q.AST_NODE_TYPES.ThisExpression}):this.createNode(t,{type:q.AST_NODE_TYPES.Identifier,name:t.text});case O.PrivateIdentifier:return this.createNode(t,{type:q.AST_NODE_TYPES.PrivateIdentifier,name:t.text.slice(1)});case O.WithStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.WithStatement,object:this.convertChild(t.expression),body:this.convertChild(t.statement)});case O.ReturnStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.ReturnStatement,argument:this.convertChild(t.expression)});case O.LabeledStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.LabeledStatement,label:this.convertChild(t.label),body:this.convertChild(t.statement)});case O.ContinueStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.ContinueStatement,label:this.convertChild(t.label)});case O.BreakStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.BreakStatement,label:this.convertChild(t.label)});case O.IfStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.IfStatement,test:this.convertChild(t.expression),consequent:this.convertChild(t.thenStatement),alternate:this.convertChild(t.elseStatement)});case O.SwitchStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.SwitchStatement,discriminant:this.convertChild(t.expression),cases:t.caseBlock.clauses.map(g=>this.convertChild(g))});case O.CaseClause:case O.DefaultClause:return this.createNode(t,{type:q.AST_NODE_TYPES.SwitchCase,test:t.kind===O.CaseClause?this.convertChild(t.expression):null,consequent:t.statements.map(g=>this.convertChild(g))});case O.ThrowStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.ThrowStatement,argument:this.convertChild(t.expression)});case O.TryStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.TryStatement,block:this.convertChild(t.tryBlock),handler:this.convertChild(t.catchClause),finalizer:this.convertChild(t.finallyBlock)});case O.CatchClause:return this.createNode(t,{type:q.AST_NODE_TYPES.CatchClause,param:t.variableDeclaration?this.convertBindingNameWithTypeAnnotation(t.variableDeclaration.name,t.variableDeclaration.type):null,body:this.convertChild(t.block)});case O.WhileStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.WhileStatement,test:this.convertChild(t.expression),body:this.convertChild(t.statement)});case O.DoStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.DoWhileStatement,test:this.convertChild(t.expression),body:this.convertChild(t.statement)});case O.ForStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.ForStatement,init:this.convertChild(t.initializer),test:this.convertChild(t.condition),update:this.convertChild(t.incrementor),body:this.convertChild(t.statement)});case O.ForInStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.ForInStatement,left:this.convertPattern(t.initializer),right:this.convertChild(t.expression),body:this.convertChild(t.statement)});case O.ForOfStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.ForOfStatement,left:this.convertPattern(t.initializer),right:this.convertChild(t.expression),body:this.convertChild(t.statement),await:!!(t.awaitModifier&&t.awaitModifier.kind===O.AwaitKeyword)});case O.FunctionDeclaration:{let g=(0,ye.hasModifier)(O.DeclareKeyword,t),A=this.createNode(t,{type:g||!t.body?q.AST_NODE_TYPES.TSDeclareFunction:q.AST_NODE_TYPES.FunctionDeclaration,id:this.convertChild(t.name),generator:!!t.asteriskToken,expression:!1,async:(0,ye.hasModifier)(O.AsyncKeyword,t),params:this.convertParameters(t.parameters),body:this.convertChild(t.body)||void 0});return t.type&&(A.returnType=this.convertTypeAnnotation(t.type,t)),t.typeParameters&&(A.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)),g&&(A.declare=!0),this.fixExports(t,A)}case O.VariableDeclaration:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.VariableDeclarator,id:this.convertBindingNameWithTypeAnnotation(t.name,t.type,t),init:this.convertChild(t.initializer)});return t.exclamationToken&&(g.definite=!0),g}case O.VariableStatement:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.VariableDeclaration,declarations:t.declarationList.declarations.map(A=>this.convertChild(A)),kind:(0,ye.getDeclarationKind)(t.declarationList)});return(0,ye.hasModifier)(O.DeclareKeyword,t)&&(g.declare=!0),this.fixExports(t,g)}case O.VariableDeclarationList:return this.createNode(t,{type:q.AST_NODE_TYPES.VariableDeclaration,declarations:t.declarations.map(g=>this.convertChild(g)),kind:(0,ye.getDeclarationKind)(t)});case O.ExpressionStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.ExpressionStatement,expression:this.convertChild(t.expression)});case O.ThisKeyword:return this.createNode(t,{type:q.AST_NODE_TYPES.ThisExpression});case O.ArrayLiteralExpression:return this.allowPattern?this.createNode(t,{type:q.AST_NODE_TYPES.ArrayPattern,elements:t.elements.map(g=>this.convertPattern(g))}):this.createNode(t,{type:q.AST_NODE_TYPES.ArrayExpression,elements:t.elements.map(g=>this.convertChild(g))});case O.ObjectLiteralExpression:return this.allowPattern?this.createNode(t,{type:q.AST_NODE_TYPES.ObjectPattern,properties:t.properties.map(g=>this.convertPattern(g))}):this.createNode(t,{type:q.AST_NODE_TYPES.ObjectExpression,properties:t.properties.map(g=>this.convertChild(g))});case O.PropertyAssignment:return this.createNode(t,{type:q.AST_NODE_TYPES.Property,key:this.convertChild(t.name),value:this.converter(t.initializer,t,this.inTypeMode,this.allowPattern),computed:(0,ye.isComputedProperty)(t.name),method:!1,shorthand:!1,kind:"init"});case O.ShorthandPropertyAssignment:return t.objectAssignmentInitializer?this.createNode(t,{type:q.AST_NODE_TYPES.Property,key:this.convertChild(t.name),value:this.createNode(t,{type:q.AST_NODE_TYPES.AssignmentPattern,left:this.convertPattern(t.name),right:this.convertChild(t.objectAssignmentInitializer)}),computed:!1,method:!1,shorthand:!0,kind:"init"}):this.createNode(t,{type:q.AST_NODE_TYPES.Property,key:this.convertChild(t.name),value:this.convertChild(t.name),computed:!1,method:!1,shorthand:!0,kind:"init"});case O.ComputedPropertyName:return this.convertChild(t.expression);case O.PropertyDeclaration:{let g=(0,ye.hasModifier)(O.AbstractKeyword,t),A=(0,ye.hasModifier)(O.AccessorKeyword,t),B=(()=>A?g?q.AST_NODE_TYPES.TSAbstractAccessorProperty:q.AST_NODE_TYPES.AccessorProperty:g?q.AST_NODE_TYPES.TSAbstractPropertyDefinition:q.AST_NODE_TYPES.PropertyDefinition)(),G=this.createNode(t,{type:B,key:this.convertChild(t.name),value:g?null:this.convertChild(t.initializer),computed:(0,ye.isComputedProperty)(t.name),static:(0,ye.hasModifier)(O.StaticKeyword,t),readonly:(0,ye.hasModifier)(O.ReadonlyKeyword,t)||void 0,declare:(0,ye.hasModifier)(O.DeclareKeyword,t),override:(0,ye.hasModifier)(O.OverrideKeyword,t)});t.type&&(G.typeAnnotation=this.convertTypeAnnotation(t.type,t));let oe=(0,$i.getDecorators)(t);oe&&(G.decorators=oe.map(W=>this.convertChild(W)));let Q=(0,ye.getTSNodeAccessibility)(t);return Q&&(G.accessibility=Q),(t.name.kind===O.Identifier||t.name.kind===O.ComputedPropertyName||t.name.kind===O.PrivateIdentifier)&&t.questionToken&&(G.optional=!0),t.exclamationToken&&(G.definite=!0),G.key.type===q.AST_NODE_TYPES.Literal&&t.questionToken&&(G.optional=!0),G}case O.GetAccessor:case O.SetAccessor:if(t.parent.kind===O.InterfaceDeclaration||t.parent.kind===O.TypeLiteral)return this.convertMethodSignature(t);case O.MethodDeclaration:{let g=this.createNode(t,{type:t.body?q.AST_NODE_TYPES.FunctionExpression:q.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,id:null,generator:!!t.asteriskToken,expression:!1,async:(0,ye.hasModifier)(O.AsyncKeyword,t),body:this.convertChild(t.body),range:[t.parameters.pos-1,t.end],params:[]});t.type&&(g.returnType=this.convertTypeAnnotation(t.type,t)),t.typeParameters&&(g.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters),this.fixParentLocation(g,g.typeParameters.range));let A;if(n.kind===O.ObjectLiteralExpression)g.params=t.parameters.map(B=>this.convertChild(B)),A=this.createNode(t,{type:q.AST_NODE_TYPES.Property,key:this.convertChild(t.name),value:g,computed:(0,ye.isComputedProperty)(t.name),method:t.kind===O.MethodDeclaration,shorthand:!1,kind:"init"});else{g.params=this.convertParameters(t.parameters);let B=(0,ye.hasModifier)(O.AbstractKeyword,t)?q.AST_NODE_TYPES.TSAbstractMethodDefinition:q.AST_NODE_TYPES.MethodDefinition;A=this.createNode(t,{type:B,key:this.convertChild(t.name),value:g,computed:(0,ye.isComputedProperty)(t.name),static:(0,ye.hasModifier)(O.StaticKeyword,t),kind:"method",override:(0,ye.hasModifier)(O.OverrideKeyword,t)});let G=(0,$i.getDecorators)(t);G&&(A.decorators=G.map(Q=>this.convertChild(Q)));let oe=(0,ye.getTSNodeAccessibility)(t);oe&&(A.accessibility=oe)}return t.questionToken&&(A.optional=!0),t.kind===O.GetAccessor?A.kind="get":t.kind===O.SetAccessor?A.kind="set":!A.static&&t.name.kind===O.StringLiteral&&t.name.text==="constructor"&&A.type!==q.AST_NODE_TYPES.Property&&(A.kind="constructor"),A}case O.Constructor:{let g=(0,ye.getLastModifier)(t),A=g&&(0,ye.findNextToken)(g,t,this.ast)||t.getFirstToken(),B=this.createNode(t,{type:t.body?q.AST_NODE_TYPES.FunctionExpression:q.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,id:null,params:this.convertParameters(t.parameters),generator:!1,expression:!1,async:!1,body:this.convertChild(t.body),range:[t.parameters.pos-1,t.end]});t.typeParameters&&(B.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters),this.fixParentLocation(B,B.typeParameters.range)),t.type&&(B.returnType=this.convertTypeAnnotation(t.type,t));let G=this.createNode(t,{type:q.AST_NODE_TYPES.Identifier,name:"constructor",range:[A.getStart(this.ast),A.end]}),oe=(0,ye.hasModifier)(O.StaticKeyword,t),Q=this.createNode(t,{type:(0,ye.hasModifier)(O.AbstractKeyword,t)?q.AST_NODE_TYPES.TSAbstractMethodDefinition:q.AST_NODE_TYPES.MethodDefinition,key:G,value:B,computed:!1,static:oe,kind:oe?"method":"constructor",override:!1}),W=(0,ye.getTSNodeAccessibility)(t);return W&&(Q.accessibility=W),Q}case O.FunctionExpression:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.FunctionExpression,id:this.convertChild(t.name),generator:!!t.asteriskToken,params:this.convertParameters(t.parameters),body:this.convertChild(t.body),async:(0,ye.hasModifier)(O.AsyncKeyword,t),expression:!1});return t.type&&(g.returnType=this.convertTypeAnnotation(t.type,t)),t.typeParameters&&(g.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)),g}case O.SuperKeyword:return this.createNode(t,{type:q.AST_NODE_TYPES.Super});case O.ArrayBindingPattern:return this.createNode(t,{type:q.AST_NODE_TYPES.ArrayPattern,elements:t.elements.map(g=>this.convertPattern(g))});case O.OmittedExpression:return null;case O.ObjectBindingPattern:return this.createNode(t,{type:q.AST_NODE_TYPES.ObjectPattern,properties:t.elements.map(g=>this.convertPattern(g))});case O.BindingElement:if(n.kind===O.ArrayBindingPattern){let g=this.convertChild(t.name,n);return t.initializer?this.createNode(t,{type:q.AST_NODE_TYPES.AssignmentPattern,left:g,right:this.convertChild(t.initializer)}):t.dotDotDotToken?this.createNode(t,{type:q.AST_NODE_TYPES.RestElement,argument:g}):g}else{let g;return t.dotDotDotToken?g=this.createNode(t,{type:q.AST_NODE_TYPES.RestElement,argument:this.convertChild((i=t.propertyName)!==null&&i!==void 0?i:t.name)}):g=this.createNode(t,{type:q.AST_NODE_TYPES.Property,key:this.convertChild((s=t.propertyName)!==null&&s!==void 0?s:t.name),value:this.convertChild(t.name),computed:!!(t.propertyName&&t.propertyName.kind===O.ComputedPropertyName),method:!1,shorthand:!t.propertyName,kind:"init"}),t.initializer&&(g.value=this.createNode(t,{type:q.AST_NODE_TYPES.AssignmentPattern,left:this.convertChild(t.name),right:this.convertChild(t.initializer),range:[t.name.getStart(this.ast),t.initializer.end]})),g}case O.ArrowFunction:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.ArrowFunctionExpression,generator:!1,id:null,params:this.convertParameters(t.parameters),body:this.convertChild(t.body),async:(0,ye.hasModifier)(O.AsyncKeyword,t),expression:t.body.kind!==O.Block});return t.type&&(g.returnType=this.convertTypeAnnotation(t.type,t)),t.typeParameters&&(g.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)),g}case O.YieldExpression:return this.createNode(t,{type:q.AST_NODE_TYPES.YieldExpression,delegate:!!t.asteriskToken,argument:this.convertChild(t.expression)});case O.AwaitExpression:return this.createNode(t,{type:q.AST_NODE_TYPES.AwaitExpression,argument:this.convertChild(t.expression)});case O.NoSubstitutionTemplateLiteral:return this.createNode(t,{type:q.AST_NODE_TYPES.TemplateLiteral,quasis:[this.createNode(t,{type:q.AST_NODE_TYPES.TemplateElement,value:{raw:this.ast.text.slice(t.getStart(this.ast)+1,t.end-1),cooked:t.text},tail:!0})],expressions:[]});case O.TemplateExpression:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.TemplateLiteral,quasis:[this.convertChild(t.head)],expressions:[]});return t.templateSpans.forEach(A=>{g.expressions.push(this.convertChild(A.expression)),g.quasis.push(this.convertChild(A.literal))}),g}case O.TaggedTemplateExpression:return this.createNode(t,{type:q.AST_NODE_TYPES.TaggedTemplateExpression,typeParameters:t.typeArguments?this.convertTypeArgumentsToTypeParameters(t.typeArguments,t):void 0,tag:this.convertChild(t.tag),quasi:this.convertChild(t.template)});case O.TemplateHead:case O.TemplateMiddle:case O.TemplateTail:{let g=t.kind===O.TemplateTail;return this.createNode(t,{type:q.AST_NODE_TYPES.TemplateElement,value:{raw:this.ast.text.slice(t.getStart(this.ast)+1,t.end-(g?1:2)),cooked:t.text},tail:g})}case O.SpreadAssignment:case O.SpreadElement:return this.allowPattern?this.createNode(t,{type:q.AST_NODE_TYPES.RestElement,argument:this.convertPattern(t.expression)}):this.createNode(t,{type:q.AST_NODE_TYPES.SpreadElement,argument:this.convertChild(t.expression)});case O.Parameter:{let g,A;return t.dotDotDotToken?g=A=this.createNode(t,{type:q.AST_NODE_TYPES.RestElement,argument:this.convertChild(t.name)}):t.initializer?(g=this.convertChild(t.name),A=this.createNode(t,{type:q.AST_NODE_TYPES.AssignmentPattern,left:g,right:this.convertChild(t.initializer)}),(0,$i.getModifiers)(t)&&(A.range[0]=g.range[0],A.loc=(0,ye.getLocFor)(A.range[0],A.range[1],this.ast))):g=A=this.convertChild(t.name,n),t.type&&(g.typeAnnotation=this.convertTypeAnnotation(t.type,t),this.fixParentLocation(g,g.typeAnnotation.range)),t.questionToken&&(t.questionToken.end>g.range[1]&&(g.range[1]=t.questionToken.end,g.loc.end=(0,ye.getLineAndCharacterFor)(g.range[1],this.ast)),g.optional=!0),(0,$i.getModifiers)(t)?this.createNode(t,{type:q.AST_NODE_TYPES.TSParameterProperty,accessibility:(l=(0,ye.getTSNodeAccessibility)(t))!==null&&l!==void 0?l:void 0,readonly:(0,ye.hasModifier)(O.ReadonlyKeyword,t)||void 0,static:(0,ye.hasModifier)(O.StaticKeyword,t)||void 0,export:(0,ye.hasModifier)(O.ExportKeyword,t)||void 0,override:(0,ye.hasModifier)(O.OverrideKeyword,t)||void 0,parameter:A}):A}case O.ClassDeclaration:case O.ClassExpression:{let g=(d=t.heritageClauses)!==null&&d!==void 0?d:[],A=t.kind===O.ClassDeclaration?q.AST_NODE_TYPES.ClassDeclaration:q.AST_NODE_TYPES.ClassExpression,B=g.find(se=>se.token===O.ExtendsKeyword),G=g.find(se=>se.token===O.ImplementsKeyword),oe=this.createNode(t,{type:A,id:this.convertChild(t.name),body:this.createNode(t,{type:q.AST_NODE_TYPES.ClassBody,body:[],range:[t.members.pos-1,t.end]}),superClass:B!=null&&B.types[0]?this.convertChild(B.types[0].expression):null});if(B){if(B.types.length>1)throw(0,ye.createError)(this.ast,B.types[1].pos,"Classes can only extend a single class.");!((y=B.types[0])===null||y===void 0)&&y.typeArguments&&(oe.superTypeParameters=this.convertTypeArgumentsToTypeParameters(B.types[0].typeArguments,B.types[0]))}t.typeParameters&&(oe.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)),G&&(oe.implements=G.types.map(se=>this.convertChild(se))),(0,ye.hasModifier)(O.AbstractKeyword,t)&&(oe.abstract=!0),(0,ye.hasModifier)(O.DeclareKeyword,t)&&(oe.declare=!0);let Q=(0,$i.getDecorators)(t);Q&&(oe.decorators=Q.map(se=>this.convertChild(se)));let W=t.members.filter(ye.isESTreeClassMember);return W.length&&(oe.body.body=W.map(se=>this.convertChild(se))),this.fixExports(t,oe)}case O.ModuleBlock:return this.createNode(t,{type:q.AST_NODE_TYPES.TSModuleBlock,body:this.convertBodyExpressions(t.statements,t)});case O.ImportDeclaration:{this.assertModuleSpecifier(t,!1);let g=this.createNode(t,{type:q.AST_NODE_TYPES.ImportDeclaration,source:this.convertChild(t.moduleSpecifier),specifiers:[],importKind:"value",assertions:this.convertAssertClasue(t.assertClause)});if(t.importClause&&(t.importClause.isTypeOnly&&(g.importKind="type"),t.importClause.name&&g.specifiers.push(this.convertChild(t.importClause)),t.importClause.namedBindings))switch(t.importClause.namedBindings.kind){case O.NamespaceImport:g.specifiers.push(this.convertChild(t.importClause.namedBindings));break;case O.NamedImports:g.specifiers=g.specifiers.concat(t.importClause.namedBindings.elements.map(A=>this.convertChild(A)));break}return g}case O.NamespaceImport:return this.createNode(t,{type:q.AST_NODE_TYPES.ImportNamespaceSpecifier,local:this.convertChild(t.name)});case O.ImportSpecifier:return this.createNode(t,{type:q.AST_NODE_TYPES.ImportSpecifier,local:this.convertChild(t.name),imported:this.convertChild((p=t.propertyName)!==null&&p!==void 0?p:t.name),importKind:t.isTypeOnly?"type":"value"});case O.ImportClause:{let g=this.convertChild(t.name);return this.createNode(t,{type:q.AST_NODE_TYPES.ImportDefaultSpecifier,local:g,range:g.range})}case O.ExportDeclaration:return((x=t.exportClause)===null||x===void 0?void 0:x.kind)===O.NamedExports?(this.assertModuleSpecifier(t,!0),this.createNode(t,{type:q.AST_NODE_TYPES.ExportNamedDeclaration,source:this.convertChild(t.moduleSpecifier),specifiers:t.exportClause.elements.map(g=>this.convertChild(g)),exportKind:t.isTypeOnly?"type":"value",declaration:null,assertions:this.convertAssertClasue(t.assertClause)})):(this.assertModuleSpecifier(t,!1),this.createNode(t,{type:q.AST_NODE_TYPES.ExportAllDeclaration,source:this.convertChild(t.moduleSpecifier),exportKind:t.isTypeOnly?"type":"value",exported:t.exportClause&&t.exportClause.kind===O.NamespaceExport?this.convertChild(t.exportClause.name):null,assertions:this.convertAssertClasue(t.assertClause)}));case O.ExportSpecifier:return this.createNode(t,{type:q.AST_NODE_TYPES.ExportSpecifier,local:this.convertChild((h=t.propertyName)!==null&&h!==void 0?h:t.name),exported:this.convertChild(t.name),exportKind:t.isTypeOnly?"type":"value"});case O.ExportAssignment:return t.isExportEquals?this.createNode(t,{type:q.AST_NODE_TYPES.TSExportAssignment,expression:this.convertChild(t.expression)}):this.createNode(t,{type:q.AST_NODE_TYPES.ExportDefaultDeclaration,declaration:this.convertChild(t.expression),exportKind:"value"});case O.PrefixUnaryExpression:case O.PostfixUnaryExpression:{let g=(0,ye.getTextForTokenKind)(t.operator);return g==="++"||g==="--"?this.createNode(t,{type:q.AST_NODE_TYPES.UpdateExpression,operator:g,prefix:t.kind===O.PrefixUnaryExpression,argument:this.convertChild(t.operand)}):this.createNode(t,{type:q.AST_NODE_TYPES.UnaryExpression,operator:g,prefix:t.kind===O.PrefixUnaryExpression,argument:this.convertChild(t.operand)})}case O.DeleteExpression:return this.createNode(t,{type:q.AST_NODE_TYPES.UnaryExpression,operator:"delete",prefix:!0,argument:this.convertChild(t.expression)});case O.VoidExpression:return this.createNode(t,{type:q.AST_NODE_TYPES.UnaryExpression,operator:"void",prefix:!0,argument:this.convertChild(t.expression)});case O.TypeOfExpression:return this.createNode(t,{type:q.AST_NODE_TYPES.UnaryExpression,operator:"typeof",prefix:!0,argument:this.convertChild(t.expression)});case O.TypeOperator:return this.createNode(t,{type:q.AST_NODE_TYPES.TSTypeOperator,operator:(0,ye.getTextForTokenKind)(t.operator),typeAnnotation:this.convertChild(t.type)});case O.BinaryExpression:if((0,ye.isComma)(t.operatorToken)){let g=this.createNode(t,{type:q.AST_NODE_TYPES.SequenceExpression,expressions:[]}),A=this.convertChild(t.left);return A.type===q.AST_NODE_TYPES.SequenceExpression&&t.left.kind!==O.ParenthesizedExpression?g.expressions=g.expressions.concat(A.expressions):g.expressions.push(A),g.expressions.push(this.convertChild(t.right)),g}else{let g=(0,ye.getBinaryExpressionType)(t.operatorToken);return this.allowPattern&&g===q.AST_NODE_TYPES.AssignmentExpression?this.createNode(t,{type:q.AST_NODE_TYPES.AssignmentPattern,left:this.convertPattern(t.left,t),right:this.convertChild(t.right)}):this.createNode(t,{type:g,operator:(0,ye.getTextForTokenKind)(t.operatorToken.kind),left:this.converter(t.left,t,this.inTypeMode,g===q.AST_NODE_TYPES.AssignmentExpression),right:this.convertChild(t.right)})}case O.PropertyAccessExpression:{let g=this.convertChild(t.expression),A=this.convertChild(t.name),B=!1,G=this.createNode(t,{type:q.AST_NODE_TYPES.MemberExpression,object:g,property:A,computed:B,optional:t.questionDotToken!==void 0});return this.convertChainExpression(G,t)}case O.ElementAccessExpression:{let g=this.convertChild(t.expression),A=this.convertChild(t.argumentExpression),B=!0,G=this.createNode(t,{type:q.AST_NODE_TYPES.MemberExpression,object:g,property:A,computed:B,optional:t.questionDotToken!==void 0});return this.convertChainExpression(G,t)}case O.CallExpression:{if(t.expression.kind===O.ImportKeyword){if(t.arguments.length!==1&&t.arguments.length!==2)throw(0,ye.createError)(this.ast,t.arguments.pos,"Dynamic import requires exactly one or two arguments.");return this.createNode(t,{type:q.AST_NODE_TYPES.ImportExpression,source:this.convertChild(t.arguments[0]),attributes:t.arguments[1]?this.convertChild(t.arguments[1]):null})}let g=this.convertChild(t.expression),A=t.arguments.map(G=>this.convertChild(G)),B=this.createNode(t,{type:q.AST_NODE_TYPES.CallExpression,callee:g,arguments:A,optional:t.questionDotToken!==void 0});return t.typeArguments&&(B.typeParameters=this.convertTypeArgumentsToTypeParameters(t.typeArguments,t)),this.convertChainExpression(B,t)}case O.NewExpression:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.NewExpression,callee:this.convertChild(t.expression),arguments:t.arguments?t.arguments.map(A=>this.convertChild(A)):[]});return t.typeArguments&&(g.typeParameters=this.convertTypeArgumentsToTypeParameters(t.typeArguments,t)),g}case O.ConditionalExpression:return this.createNode(t,{type:q.AST_NODE_TYPES.ConditionalExpression,test:this.convertChild(t.condition),consequent:this.convertChild(t.whenTrue),alternate:this.convertChild(t.whenFalse)});case O.MetaProperty:return this.createNode(t,{type:q.AST_NODE_TYPES.MetaProperty,meta:this.createNode(t.getFirstToken(),{type:q.AST_NODE_TYPES.Identifier,name:(0,ye.getTextForTokenKind)(t.keywordToken)}),property:this.convertChild(t.name)});case O.Decorator:return this.createNode(t,{type:q.AST_NODE_TYPES.Decorator,expression:this.convertChild(t.expression)});case O.StringLiteral:return this.createNode(t,{type:q.AST_NODE_TYPES.Literal,value:n.kind===O.JsxAttribute?(0,ye.unescapeStringLiteralText)(t.text):t.text,raw:t.getText()});case O.NumericLiteral:return this.createNode(t,{type:q.AST_NODE_TYPES.Literal,value:Number(t.text),raw:t.getText()});case O.BigIntLiteral:{let g=(0,ye.getRange)(t,this.ast),A=this.ast.text.slice(g[0],g[1]),B=A.slice(0,-1).replace(/_/g,""),G=typeof BigInt<"u"?BigInt(B):null;return this.createNode(t,{type:q.AST_NODE_TYPES.Literal,raw:A,value:G,bigint:G==null?B:String(G),range:g})}case O.RegularExpressionLiteral:{let g=t.text.slice(1,t.text.lastIndexOf("/")),A=t.text.slice(t.text.lastIndexOf("/")+1),B=null;try{B=new RegExp(g,A)}catch{B=null}return this.createNode(t,{type:q.AST_NODE_TYPES.Literal,value:B,raw:t.text,regex:{pattern:g,flags:A}})}case O.TrueKeyword:return this.createNode(t,{type:q.AST_NODE_TYPES.Literal,value:!0,raw:"true"});case O.FalseKeyword:return this.createNode(t,{type:q.AST_NODE_TYPES.Literal,value:!1,raw:"false"});case O.NullKeyword:return!vw.typescriptVersionIsAtLeast["4.0"]&&this.inTypeMode?this.createNode(t,{type:q.AST_NODE_TYPES.TSNullKeyword}):this.createNode(t,{type:q.AST_NODE_TYPES.Literal,value:null,raw:"null"});case O.EmptyStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.EmptyStatement});case O.DebuggerStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.DebuggerStatement});case O.JsxElement:return this.createNode(t,{type:q.AST_NODE_TYPES.JSXElement,openingElement:this.convertChild(t.openingElement),closingElement:this.convertChild(t.closingElement),children:t.children.map(g=>this.convertChild(g))});case O.JsxFragment:return this.createNode(t,{type:q.AST_NODE_TYPES.JSXFragment,openingFragment:this.convertChild(t.openingFragment),closingFragment:this.convertChild(t.closingFragment),children:t.children.map(g=>this.convertChild(g))});case O.JsxSelfClosingElement:return this.createNode(t,{type:q.AST_NODE_TYPES.JSXElement,openingElement:this.createNode(t,{type:q.AST_NODE_TYPES.JSXOpeningElement,typeParameters:t.typeArguments?this.convertTypeArgumentsToTypeParameters(t.typeArguments,t):void 0,selfClosing:!0,name:this.convertJSXTagName(t.tagName,t),attributes:t.attributes.properties.map(g=>this.convertChild(g)),range:(0,ye.getRange)(t,this.ast)}),closingElement:null,children:[]});case O.JsxOpeningElement:return this.createNode(t,{type:q.AST_NODE_TYPES.JSXOpeningElement,typeParameters:t.typeArguments?this.convertTypeArgumentsToTypeParameters(t.typeArguments,t):void 0,selfClosing:!1,name:this.convertJSXTagName(t.tagName,t),attributes:t.attributes.properties.map(g=>this.convertChild(g))});case O.JsxClosingElement:return this.createNode(t,{type:q.AST_NODE_TYPES.JSXClosingElement,name:this.convertJSXTagName(t.tagName,t)});case O.JsxOpeningFragment:return this.createNode(t,{type:q.AST_NODE_TYPES.JSXOpeningFragment});case O.JsxClosingFragment:return this.createNode(t,{type:q.AST_NODE_TYPES.JSXClosingFragment});case O.JsxExpression:{let g=t.expression?this.convertChild(t.expression):this.createNode(t,{type:q.AST_NODE_TYPES.JSXEmptyExpression,range:[t.getStart(this.ast)+1,t.getEnd()-1]});return t.dotDotDotToken?this.createNode(t,{type:q.AST_NODE_TYPES.JSXSpreadChild,expression:g}):this.createNode(t,{type:q.AST_NODE_TYPES.JSXExpressionContainer,expression:g})}case O.JsxAttribute:return this.createNode(t,{type:q.AST_NODE_TYPES.JSXAttribute,name:this.convertJSXNamespaceOrIdentifier(t.name),value:this.convertChild(t.initializer)});case O.JsxText:{let g=t.getFullStart(),A=t.getEnd(),B=this.ast.text.slice(g,A);return this.createNode(t,{type:q.AST_NODE_TYPES.JSXText,value:(0,ye.unescapeStringLiteralText)(B),raw:B,range:[g,A]})}case O.JsxSpreadAttribute:return this.createNode(t,{type:q.AST_NODE_TYPES.JSXSpreadAttribute,argument:this.convertChild(t.expression)});case O.QualifiedName:return this.createNode(t,{type:q.AST_NODE_TYPES.TSQualifiedName,left:this.convertChild(t.left),right:this.convertChild(t.right)});case O.TypeReference:return this.createNode(t,{type:q.AST_NODE_TYPES.TSTypeReference,typeName:this.convertType(t.typeName),typeParameters:t.typeArguments?this.convertTypeArgumentsToTypeParameters(t.typeArguments,t):void 0});case O.TypeParameter:return this.createNode(t,{type:q.AST_NODE_TYPES.TSTypeParameter,name:this.convertType(t.name),constraint:t.constraint?this.convertType(t.constraint):void 0,default:t.default?this.convertType(t.default):void 0,in:(0,ye.hasModifier)(O.InKeyword,t),out:(0,ye.hasModifier)(O.OutKeyword,t),const:(0,ye.hasModifier)(O.ConstKeyword,t)});case O.ThisType:return this.createNode(t,{type:q.AST_NODE_TYPES.TSThisType});case O.AnyKeyword:case O.BigIntKeyword:case O.BooleanKeyword:case O.NeverKeyword:case O.NumberKeyword:case O.ObjectKeyword:case O.StringKeyword:case O.SymbolKeyword:case O.UnknownKeyword:case O.VoidKeyword:case O.UndefinedKeyword:case O.IntrinsicKeyword:return this.createNode(t,{type:q.AST_NODE_TYPES[`TS${O[t.kind]}`]});case O.NonNullExpression:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.TSNonNullExpression,expression:this.convertChild(t.expression)});return this.convertChainExpression(g,t)}case O.TypeLiteral:return this.createNode(t,{type:q.AST_NODE_TYPES.TSTypeLiteral,members:t.members.map(g=>this.convertChild(g))});case O.ArrayType:return this.createNode(t,{type:q.AST_NODE_TYPES.TSArrayType,elementType:this.convertType(t.elementType)});case O.IndexedAccessType:return this.createNode(t,{type:q.AST_NODE_TYPES.TSIndexedAccessType,objectType:this.convertType(t.objectType),indexType:this.convertType(t.indexType)});case O.ConditionalType:return this.createNode(t,{type:q.AST_NODE_TYPES.TSConditionalType,checkType:this.convertType(t.checkType),extendsType:this.convertType(t.extendsType),trueType:this.convertType(t.trueType),falseType:this.convertType(t.falseType)});case O.TypeQuery:return this.createNode(t,{type:q.AST_NODE_TYPES.TSTypeQuery,exprName:this.convertType(t.exprName),typeParameters:t.typeArguments&&this.convertTypeArgumentsToTypeParameters(t.typeArguments,t)});case O.MappedType:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.TSMappedType,typeParameter:this.convertType(t.typeParameter),nameType:(D=this.convertType(t.nameType))!==null&&D!==void 0?D:null});return t.readonlyToken&&(t.readonlyToken.kind===O.ReadonlyKeyword?g.readonly=!0:g.readonly=(0,ye.getTextForTokenKind)(t.readonlyToken.kind)),t.questionToken&&(t.questionToken.kind===O.QuestionToken?g.optional=!0:g.optional=(0,ye.getTextForTokenKind)(t.questionToken.kind)),t.type&&(g.typeAnnotation=this.convertType(t.type)),g}case O.ParenthesizedExpression:return this.convertChild(t.expression,n);case O.TypeAliasDeclaration:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.TSTypeAliasDeclaration,id:this.convertChild(t.name),typeAnnotation:this.convertType(t.type)});return(0,ye.hasModifier)(O.DeclareKeyword,t)&&(g.declare=!0),t.typeParameters&&(g.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)),this.fixExports(t,g)}case O.MethodSignature:return this.convertMethodSignature(t);case O.PropertySignature:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.TSPropertySignature,optional:(0,ye.isOptional)(t)||void 0,computed:(0,ye.isComputedProperty)(t.name),key:this.convertChild(t.name),typeAnnotation:t.type?this.convertTypeAnnotation(t.type,t):void 0,initializer:this.convertChild(t.initializer)||void 0,readonly:(0,ye.hasModifier)(O.ReadonlyKeyword,t)||void 0,static:(0,ye.hasModifier)(O.StaticKeyword,t)||void 0,export:(0,ye.hasModifier)(O.ExportKeyword,t)||void 0}),A=(0,ye.getTSNodeAccessibility)(t);return A&&(g.accessibility=A),g}case O.IndexSignature:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.TSIndexSignature,parameters:t.parameters.map(B=>this.convertChild(B))});t.type&&(g.typeAnnotation=this.convertTypeAnnotation(t.type,t)),(0,ye.hasModifier)(O.ReadonlyKeyword,t)&&(g.readonly=!0);let A=(0,ye.getTSNodeAccessibility)(t);return A&&(g.accessibility=A),(0,ye.hasModifier)(O.ExportKeyword,t)&&(g.export=!0),(0,ye.hasModifier)(O.StaticKeyword,t)&&(g.static=!0),g}case O.ConstructorType:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.TSConstructorType,params:this.convertParameters(t.parameters),abstract:(0,ye.hasModifier)(O.AbstractKeyword,t)});return t.type&&(g.returnType=this.convertTypeAnnotation(t.type,t)),t.typeParameters&&(g.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)),g}case O.FunctionType:case O.ConstructSignature:case O.CallSignature:{let g=t.kind===O.ConstructSignature?q.AST_NODE_TYPES.TSConstructSignatureDeclaration:t.kind===O.CallSignature?q.AST_NODE_TYPES.TSCallSignatureDeclaration:q.AST_NODE_TYPES.TSFunctionType,A=this.createNode(t,{type:g,params:this.convertParameters(t.parameters)});return t.type&&(A.returnType=this.convertTypeAnnotation(t.type,t)),t.typeParameters&&(A.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)),A}case O.ExpressionWithTypeArguments:{let g=n.kind,A=g===O.InterfaceDeclaration?q.AST_NODE_TYPES.TSInterfaceHeritage:g===O.HeritageClause?q.AST_NODE_TYPES.TSClassImplements:q.AST_NODE_TYPES.TSInstantiationExpression,B=this.createNode(t,{type:A,expression:this.convertChild(t.expression)});return t.typeArguments&&(B.typeParameters=this.convertTypeArgumentsToTypeParameters(t.typeArguments,t)),B}case O.InterfaceDeclaration:{let g=(w=t.heritageClauses)!==null&&w!==void 0?w:[],A=this.createNode(t,{type:q.AST_NODE_TYPES.TSInterfaceDeclaration,body:this.createNode(t,{type:q.AST_NODE_TYPES.TSInterfaceBody,body:t.members.map(B=>this.convertChild(B)),range:[t.members.pos-1,t.end]}),id:this.convertChild(t.name)});if(t.typeParameters&&(A.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)),g.length>0){let B=[],G=[];for(let oe of g)if(oe.token===O.ExtendsKeyword)for(let Q of oe.types)B.push(this.convertChild(Q,t));else for(let Q of oe.types)G.push(this.convertChild(Q,t));B.length&&(A.extends=B),G.length&&(A.implements=G)}return(0,ye.hasModifier)(O.AbstractKeyword,t)&&(A.abstract=!0),(0,ye.hasModifier)(O.DeclareKeyword,t)&&(A.declare=!0),this.fixExports(t,A)}case O.TypePredicate:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.TSTypePredicate,asserts:t.assertsModifier!==void 0,parameterName:this.convertChild(t.parameterName),typeAnnotation:null});return t.type&&(g.typeAnnotation=this.convertTypeAnnotation(t.type,t),g.typeAnnotation.loc=g.typeAnnotation.typeAnnotation.loc,g.typeAnnotation.range=g.typeAnnotation.typeAnnotation.range),g}case O.ImportType:return this.createNode(t,{type:q.AST_NODE_TYPES.TSImportType,isTypeOf:!!t.isTypeOf,parameter:this.convertChild(t.argument),qualifier:this.convertChild(t.qualifier),typeParameters:t.typeArguments?this.convertTypeArgumentsToTypeParameters(t.typeArguments,t):null});case O.EnumDeclaration:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.TSEnumDeclaration,id:this.convertChild(t.name),members:t.members.map(A=>this.convertChild(A))});return this.applyModifiersToResult(g,(0,$i.getModifiers)(t)),this.fixExports(t,g)}case O.EnumMember:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.TSEnumMember,id:this.convertChild(t.name)});return t.initializer&&(g.initializer=this.convertChild(t.initializer)),t.name.kind===so.SyntaxKind.ComputedPropertyName&&(g.computed=!0),g}case O.ModuleDeclaration:{let g=this.createNode(t,Object.assign({type:q.AST_NODE_TYPES.TSModuleDeclaration},(()=>{let A=this.convertChild(t.name),B=this.convertChild(t.body);if(t.flags&so.NodeFlags.GlobalAugmentation){if(B==null||B.type===q.AST_NODE_TYPES.TSModuleDeclaration)throw new Error("Expected a valid module body");if(A.type!==q.AST_NODE_TYPES.Identifier)throw new Error("global module augmentation must have an Identifier id");return{kind:"global",id:A,body:B,global:!0}}else if(t.flags&so.NodeFlags.Namespace){if(B==null)throw new Error("Expected a module body");if(A.type!==q.AST_NODE_TYPES.Identifier)throw new Error("`namespace`s must have an Identifier id");return{kind:"namespace",id:A,body:B}}else return Object.assign({kind:"module",id:A},B!=null?{body:B}:{})})()));return this.applyModifiersToResult(g,(0,$i.getModifiers)(t)),this.fixExports(t,g)}case O.ParenthesizedType:return this.convertType(t.type);case O.UnionType:return this.createNode(t,{type:q.AST_NODE_TYPES.TSUnionType,types:t.types.map(g=>this.convertType(g))});case O.IntersectionType:return this.createNode(t,{type:q.AST_NODE_TYPES.TSIntersectionType,types:t.types.map(g=>this.convertType(g))});case O.AsExpression:return this.createNode(t,{type:q.AST_NODE_TYPES.TSAsExpression,expression:this.convertChild(t.expression),typeAnnotation:this.convertType(t.type)});case O.InferType:return this.createNode(t,{type:q.AST_NODE_TYPES.TSInferType,typeParameter:this.convertType(t.typeParameter)});case O.LiteralType:return vw.typescriptVersionIsAtLeast["4.0"]&&t.literal.kind===O.NullKeyword?this.createNode(t.literal,{type:q.AST_NODE_TYPES.TSNullKeyword}):this.createNode(t,{type:q.AST_NODE_TYPES.TSLiteralType,literal:this.convertType(t.literal)});case O.TypeAssertionExpression:return this.createNode(t,{type:q.AST_NODE_TYPES.TSTypeAssertion,typeAnnotation:this.convertType(t.type),expression:this.convertChild(t.expression)});case O.ImportEqualsDeclaration:return this.createNode(t,{type:q.AST_NODE_TYPES.TSImportEqualsDeclaration,id:this.convertChild(t.name),moduleReference:this.convertChild(t.moduleReference),importKind:t.isTypeOnly?"type":"value",isExport:(0,ye.hasModifier)(O.ExportKeyword,t)});case O.ExternalModuleReference:return this.createNode(t,{type:q.AST_NODE_TYPES.TSExternalModuleReference,expression:this.convertChild(t.expression)});case O.NamespaceExportDeclaration:return this.createNode(t,{type:q.AST_NODE_TYPES.TSNamespaceExportDeclaration,id:this.convertChild(t.name)});case O.AbstractKeyword:return this.createNode(t,{type:q.AST_NODE_TYPES.TSAbstractKeyword});case O.TupleType:{let g="elementTypes"in t?t.elementTypes.map(A=>this.convertType(A)):t.elements.map(A=>this.convertType(A));return this.createNode(t,{type:q.AST_NODE_TYPES.TSTupleType,elementTypes:g})}case O.NamedTupleMember:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.TSNamedTupleMember,elementType:this.convertType(t.type,t),label:this.convertChild(t.name,t),optional:t.questionToken!=null});return t.dotDotDotToken?(g.range[0]=g.label.range[0],g.loc.start=g.label.loc.start,this.createNode(t,{type:q.AST_NODE_TYPES.TSRestType,typeAnnotation:g})):g}case O.OptionalType:return this.createNode(t,{type:q.AST_NODE_TYPES.TSOptionalType,typeAnnotation:this.convertType(t.type)});case O.RestType:return this.createNode(t,{type:q.AST_NODE_TYPES.TSRestType,typeAnnotation:this.convertType(t.type)});case O.TemplateLiteralType:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.TSTemplateLiteralType,quasis:[this.convertChild(t.head)],types:[]});return t.templateSpans.forEach(A=>{g.types.push(this.convertChild(A.type)),g.quasis.push(this.convertChild(A.literal))}),g}case O.ClassStaticBlockDeclaration:return this.createNode(t,{type:q.AST_NODE_TYPES.StaticBlock,body:this.convertBodyExpressions(t.body.statements,t)});case O.AssertEntry:return this.createNode(t,{type:q.AST_NODE_TYPES.ImportAttribute,key:this.convertChild(t.name),value:this.convertChild(t.value)});case O.SatisfiesExpression:return this.createNode(t,{type:q.AST_NODE_TYPES.TSSatisfiesExpression,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});default:return this.deeplyCopy(t)}}};Yr.Converter=n6});var Qi={};Ud(Qi,{__assign:()=>a6,__asyncDelegator:()=>yU,__asyncGenerator:()=>mU,__asyncValues:()=>hU,__await:()=>iu,__awaiter:()=>cU,__classPrivateFieldGet:()=>TU,__classPrivateFieldSet:()=>xU,__createBinding:()=>uU,__decorate:()=>oU,__exportStar:()=>pU,__extends:()=>iU,__generator:()=>lU,__importDefault:()=>vU,__importStar:()=>bU,__makeTemplateObject:()=>gU,__metadata:()=>_U,__param:()=>sU,__read:()=>Tw,__rest:()=>aU,__spread:()=>dU,__spreadArrays:()=>fU,__values:()=>o6});function iU(e,t){i6(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function aU(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(e);s=0;y--)(d=e[y])&&(l=(s<3?d(l):s>3?d(t,n,l):d(t,n))||l);return s>3&&l&&Object.defineProperty(t,n,l),l}function sU(e,t){return function(n,i){t(n,i,e)}}function _U(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function cU(e,t,n,i){function s(l){return l instanceof n?l:new n(function(d){d(l)})}return new(n||(n=Promise))(function(l,d){function y(h){try{x(i.next(h))}catch(D){d(D)}}function p(h){try{x(i.throw(h))}catch(D){d(D)}}function x(h){h.done?l(h.value):s(h.value).then(y,p)}x((i=i.apply(e,t||[])).next())})}function lU(e,t){var n={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},i,s,l,d;return d={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function y(x){return function(h){return p([x,h])}}function p(x){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,s&&(l=x[0]&2?s.return:x[0]?s.throw||((l=s.return)&&l.call(s),0):s.next)&&!(l=l.call(s,x[1])).done)return l;switch(s=0,l&&(x=[x[0]&2,l.value]),x[0]){case 0:case 1:l=x;break;case 4:return n.label++,{value:x[1],done:!1};case 5:n.label++,s=x[1],x=[0];continue;case 7:x=n.ops.pop(),n.trys.pop();continue;default:if(l=n.trys,!(l=l.length>0&&l[l.length-1])&&(x[0]===6||x[0]===2)){n=0;continue}if(x[0]===3&&(!l||x[1]>l[0]&&x[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Tw(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),s,l=[],d;try{for(;(t===void 0||t-- >0)&&!(s=i.next()).done;)l.push(s.value)}catch(y){d={error:y}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(d)throw d.error}}return l}function dU(){for(var e=[],t=0;t1||y(w,g)})})}function y(w,g){try{p(i[w](g))}catch(A){D(l[0][3],A)}}function p(w){w.value instanceof iu?Promise.resolve(w.value.v).then(x,h):D(l[0][2],w)}function x(w){y("next",w)}function h(w){y("throw",w)}function D(w,g){w(g),l.shift(),l.length&&y(l[0][0],l[0][1])}}function yU(e){var t,n;return t={},i("next"),i("throw",function(s){throw s}),i("return"),t[Symbol.iterator]=function(){return this},t;function i(s,l){t[s]=e[s]?function(d){return(n=!n)?{value:iu(e[s](d)),done:s==="return"}:l?l(d):d}:l}}function hU(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof o6=="function"?o6(e):e[Symbol.iterator](),n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n);function i(l){n[l]=e[l]&&function(d){return new Promise(function(y,p){d=e[l](d),s(y,p,d.done,d.value)})}}function s(l,d,y,p){Promise.resolve(p).then(function(x){l({value:x,done:y})},d)}}function gU(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function bU(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function vU(e){return e&&e.__esModule?e:{default:e}}function TU(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function xU(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}var i6,a6,Yi=X6(()=>{i6=function(e,t){return i6=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},i6(e,t)};a6=function(){return a6=Object.assign||function(t){for(var n,i=1,s=arguments.length;i{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.isExpressionStatement=k.isExpression=k.isExportSpecifier=k.isExportDeclaration=k.isExportAssignment=k.isEnumMember=k.isEnumDeclaration=k.isEntityNameExpression=k.isEntityName=k.isEmptyStatement=k.isElementAccessExpression=k.isDoStatement=k.isDeleteExpression=k.isDefaultClause=k.isDecorator=k.isDebuggerStatement=k.isComputedPropertyName=k.isContinueStatement=k.isConstructSignatureDeclaration=k.isConstructorTypeNode=k.isConstructorDeclaration=k.isConditionalTypeNode=k.isConditionalExpression=k.isCommaListExpression=k.isClassLikeDeclaration=k.isClassExpression=k.isClassDeclaration=k.isCatchClause=k.isCaseOrDefaultClause=k.isCaseClause=k.isCaseBlock=k.isCallSignatureDeclaration=k.isCallLikeExpression=k.isCallExpression=k.isBreakStatement=k.isBreakOrContinueStatement=k.isBooleanLiteral=k.isBlockLike=k.isBlock=k.isBindingPattern=k.isBindingElement=k.isBinaryExpression=k.isAwaitExpression=k.isAssertionExpression=k.isAsExpression=k.isArrowFunction=k.isArrayTypeNode=k.isArrayLiteralExpression=k.isArrayBindingPattern=k.isAccessorDeclaration=void 0;k.isNamespaceImport=k.isNamespaceDeclaration=k.isNamedImports=k.isNamedExports=k.isModuleDeclaration=k.isModuleBlock=k.isMethodSignature=k.isMethodDeclaration=k.isMetaProperty=k.isMappedTypeNode=k.isLiteralTypeNode=k.isLiteralExpression=k.isLabeledStatement=k.isJsxText=k.isJsxSpreadAttribute=k.isJsxSelfClosingElement=k.isJsxOpeningLikeElement=k.isJsxOpeningFragment=k.isJsxOpeningElement=k.isJsxFragment=k.isJsxExpression=k.isJsxElement=k.isJsxClosingFragment=k.isJsxClosingElement=k.isJsxAttributes=k.isJsxAttributeLike=k.isJsxAttribute=k.isJsDoc=k.isIterationStatement=k.isIntersectionTypeNode=k.isInterfaceDeclaration=k.isInferTypeNode=k.isIndexSignatureDeclaration=k.isIndexedAccessTypeNode=k.isImportSpecifier=k.isImportEqualsDeclaration=k.isImportDeclaration=k.isImportClause=k.isIfStatement=k.isIdentifier=k.isGetAccessorDeclaration=k.isFunctionTypeNode=k.isFunctionExpression=k.isFunctionDeclaration=k.isForStatement=k.isForOfStatement=k.isForInOrOfStatement=k.isForInStatement=k.isExternalModuleReference=k.isExpressionWithTypeArguments=void 0;k.isVariableStatement=k.isVariableDeclaration=k.isUnionTypeNode=k.isTypeQueryNode=k.isTypeReferenceNode=k.isTypePredicateNode=k.isTypeParameterDeclaration=k.isTypeOperatorNode=k.isTypeOfExpression=k.isTypeLiteralNode=k.isTypeAssertion=k.isTypeAliasDeclaration=k.isTupleTypeNode=k.isTryStatement=k.isThrowStatement=k.isTextualLiteral=k.isTemplateLiteral=k.isTemplateExpression=k.isTaggedTemplateExpression=k.isSyntaxList=k.isSwitchStatement=k.isStringLiteral=k.isSpreadElement=k.isSpreadAssignment=k.isSourceFile=k.isSignatureDeclaration=k.isShorthandPropertyAssignment=k.isSetAccessorDeclaration=k.isReturnStatement=k.isRegularExpressionLiteral=k.isQualifiedName=k.isPropertySignature=k.isPropertyDeclaration=k.isPropertyAssignment=k.isPropertyAccessExpression=k.isPrefixUnaryExpression=k.isPostfixUnaryExpression=k.isParenthesizedTypeNode=k.isParenthesizedExpression=k.isParameterDeclaration=k.isOmittedExpression=k.isObjectLiteralExpression=k.isObjectBindingPattern=k.isNumericOrStringLikeLiteral=k.isNumericLiteral=k.isNullLiteral=k.isNoSubstitutionTemplateLiteral=k.isNonNullExpression=k.isNewExpression=k.isNamespaceExportDeclaration=void 0;k.isWithStatement=k.isWhileStatement=k.isVoidExpression=k.isVariableDeclarationList=void 0;var L=Cn();function SU(e){return e.kind===L.SyntaxKind.GetAccessor||e.kind===L.SyntaxKind.SetAccessor}k.isAccessorDeclaration=SU;function wU(e){return e.kind===L.SyntaxKind.ArrayBindingPattern}k.isArrayBindingPattern=wU;function EU(e){return e.kind===L.SyntaxKind.ArrayLiteralExpression}k.isArrayLiteralExpression=EU;function CU(e){return e.kind===L.SyntaxKind.ArrayType}k.isArrayTypeNode=CU;function kU(e){return e.kind===L.SyntaxKind.ArrowFunction}k.isArrowFunction=kU;function AU(e){return e.kind===L.SyntaxKind.AsExpression}k.isAsExpression=AU;function DU(e){return e.kind===L.SyntaxKind.AsExpression||e.kind===L.SyntaxKind.TypeAssertionExpression}k.isAssertionExpression=DU;function PU(e){return e.kind===L.SyntaxKind.AwaitExpression}k.isAwaitExpression=PU;function NU(e){return e.kind===L.SyntaxKind.BinaryExpression}k.isBinaryExpression=NU;function IU(e){return e.kind===L.SyntaxKind.BindingElement}k.isBindingElement=IU;function OU(e){return e.kind===L.SyntaxKind.ArrayBindingPattern||e.kind===L.SyntaxKind.ObjectBindingPattern}k.isBindingPattern=OU;function MU(e){return e.kind===L.SyntaxKind.Block}k.isBlock=MU;function LU(e){return e.statements!==void 0}k.isBlockLike=LU;function JU(e){return e.kind===L.SyntaxKind.TrueKeyword||e.kind===L.SyntaxKind.FalseKeyword}k.isBooleanLiteral=JU;function RU(e){return e.kind===L.SyntaxKind.BreakStatement||e.kind===L.SyntaxKind.ContinueStatement}k.isBreakOrContinueStatement=RU;function FU(e){return e.kind===L.SyntaxKind.BreakStatement}k.isBreakStatement=FU;function jU(e){return e.kind===L.SyntaxKind.CallExpression}k.isCallExpression=jU;function BU(e){switch(e.kind){case L.SyntaxKind.CallExpression:case L.SyntaxKind.Decorator:case L.SyntaxKind.JsxOpeningElement:case L.SyntaxKind.JsxSelfClosingElement:case L.SyntaxKind.NewExpression:case L.SyntaxKind.TaggedTemplateExpression:return!0;default:return!1}}k.isCallLikeExpression=BU;function UU(e){return e.kind===L.SyntaxKind.CallSignature}k.isCallSignatureDeclaration=UU;function qU(e){return e.kind===L.SyntaxKind.CaseBlock}k.isCaseBlock=qU;function zU(e){return e.kind===L.SyntaxKind.CaseClause}k.isCaseClause=zU;function WU(e){return e.kind===L.SyntaxKind.CaseClause||e.kind===L.SyntaxKind.DefaultClause}k.isCaseOrDefaultClause=WU;function VU(e){return e.kind===L.SyntaxKind.CatchClause}k.isCatchClause=VU;function HU(e){return e.kind===L.SyntaxKind.ClassDeclaration}k.isClassDeclaration=HU;function KU(e){return e.kind===L.SyntaxKind.ClassExpression}k.isClassExpression=KU;function GU(e){return e.kind===L.SyntaxKind.ClassDeclaration||e.kind===L.SyntaxKind.ClassExpression}k.isClassLikeDeclaration=GU;function XU(e){return e.kind===L.SyntaxKind.CommaListExpression}k.isCommaListExpression=XU;function $U(e){return e.kind===L.SyntaxKind.ConditionalExpression}k.isConditionalExpression=$U;function QU(e){return e.kind===L.SyntaxKind.ConditionalType}k.isConditionalTypeNode=QU;function YU(e){return e.kind===L.SyntaxKind.Constructor}k.isConstructorDeclaration=YU;function ZU(e){return e.kind===L.SyntaxKind.ConstructorType}k.isConstructorTypeNode=ZU;function eq(e){return e.kind===L.SyntaxKind.ConstructSignature}k.isConstructSignatureDeclaration=eq;function tq(e){return e.kind===L.SyntaxKind.ContinueStatement}k.isContinueStatement=tq;function nq(e){return e.kind===L.SyntaxKind.ComputedPropertyName}k.isComputedPropertyName=nq;function rq(e){return e.kind===L.SyntaxKind.DebuggerStatement}k.isDebuggerStatement=rq;function iq(e){return e.kind===L.SyntaxKind.Decorator}k.isDecorator=iq;function aq(e){return e.kind===L.SyntaxKind.DefaultClause}k.isDefaultClause=aq;function oq(e){return e.kind===L.SyntaxKind.DeleteExpression}k.isDeleteExpression=oq;function sq(e){return e.kind===L.SyntaxKind.DoStatement}k.isDoStatement=sq;function _q(e){return e.kind===L.SyntaxKind.ElementAccessExpression}k.isElementAccessExpression=_q;function cq(e){return e.kind===L.SyntaxKind.EmptyStatement}k.isEmptyStatement=cq;function lq(e){return e.kind===L.SyntaxKind.Identifier||Cw(e)}k.isEntityName=lq;function xw(e){return e.kind===L.SyntaxKind.Identifier||Ew(e)&&xw(e.expression)}k.isEntityNameExpression=xw;function uq(e){return e.kind===L.SyntaxKind.EnumDeclaration}k.isEnumDeclaration=uq;function pq(e){return e.kind===L.SyntaxKind.EnumMember}k.isEnumMember=pq;function dq(e){return e.kind===L.SyntaxKind.ExportAssignment}k.isExportAssignment=dq;function fq(e){return e.kind===L.SyntaxKind.ExportDeclaration}k.isExportDeclaration=fq;function mq(e){return e.kind===L.SyntaxKind.ExportSpecifier}k.isExportSpecifier=mq;function yq(e){switch(e.kind){case L.SyntaxKind.ArrayLiteralExpression:case L.SyntaxKind.ArrowFunction:case L.SyntaxKind.AsExpression:case L.SyntaxKind.AwaitExpression:case L.SyntaxKind.BinaryExpression:case L.SyntaxKind.CallExpression:case L.SyntaxKind.ClassExpression:case L.SyntaxKind.CommaListExpression:case L.SyntaxKind.ConditionalExpression:case L.SyntaxKind.DeleteExpression:case L.SyntaxKind.ElementAccessExpression:case L.SyntaxKind.FalseKeyword:case L.SyntaxKind.FunctionExpression:case L.SyntaxKind.Identifier:case L.SyntaxKind.JsxElement:case L.SyntaxKind.JsxFragment:case L.SyntaxKind.JsxExpression:case L.SyntaxKind.JsxOpeningElement:case L.SyntaxKind.JsxOpeningFragment:case L.SyntaxKind.JsxSelfClosingElement:case L.SyntaxKind.MetaProperty:case L.SyntaxKind.NewExpression:case L.SyntaxKind.NonNullExpression:case L.SyntaxKind.NoSubstitutionTemplateLiteral:case L.SyntaxKind.NullKeyword:case L.SyntaxKind.NumericLiteral:case L.SyntaxKind.ObjectLiteralExpression:case L.SyntaxKind.OmittedExpression:case L.SyntaxKind.ParenthesizedExpression:case L.SyntaxKind.PostfixUnaryExpression:case L.SyntaxKind.PrefixUnaryExpression:case L.SyntaxKind.PropertyAccessExpression:case L.SyntaxKind.RegularExpressionLiteral:case L.SyntaxKind.SpreadElement:case L.SyntaxKind.StringLiteral:case L.SyntaxKind.SuperKeyword:case L.SyntaxKind.TaggedTemplateExpression:case L.SyntaxKind.TemplateExpression:case L.SyntaxKind.ThisKeyword:case L.SyntaxKind.TrueKeyword:case L.SyntaxKind.TypeAssertionExpression:case L.SyntaxKind.TypeOfExpression:case L.SyntaxKind.VoidExpression:case L.SyntaxKind.YieldExpression:return!0;default:return!1}}k.isExpression=yq;function hq(e){return e.kind===L.SyntaxKind.ExpressionStatement}k.isExpressionStatement=hq;function gq(e){return e.kind===L.SyntaxKind.ExpressionWithTypeArguments}k.isExpressionWithTypeArguments=gq;function bq(e){return e.kind===L.SyntaxKind.ExternalModuleReference}k.isExternalModuleReference=bq;function vq(e){return e.kind===L.SyntaxKind.ForInStatement}k.isForInStatement=vq;function Tq(e){return e.kind===L.SyntaxKind.ForOfStatement||e.kind===L.SyntaxKind.ForInStatement}k.isForInOrOfStatement=Tq;function xq(e){return e.kind===L.SyntaxKind.ForOfStatement}k.isForOfStatement=xq;function Sq(e){return e.kind===L.SyntaxKind.ForStatement}k.isForStatement=Sq;function wq(e){return e.kind===L.SyntaxKind.FunctionDeclaration}k.isFunctionDeclaration=wq;function Eq(e){return e.kind===L.SyntaxKind.FunctionExpression}k.isFunctionExpression=Eq;function Cq(e){return e.kind===L.SyntaxKind.FunctionType}k.isFunctionTypeNode=Cq;function kq(e){return e.kind===L.SyntaxKind.GetAccessor}k.isGetAccessorDeclaration=kq;function Aq(e){return e.kind===L.SyntaxKind.Identifier}k.isIdentifier=Aq;function Dq(e){return e.kind===L.SyntaxKind.IfStatement}k.isIfStatement=Dq;function Pq(e){return e.kind===L.SyntaxKind.ImportClause}k.isImportClause=Pq;function Nq(e){return e.kind===L.SyntaxKind.ImportDeclaration}k.isImportDeclaration=Nq;function Iq(e){return e.kind===L.SyntaxKind.ImportEqualsDeclaration}k.isImportEqualsDeclaration=Iq;function Oq(e){return e.kind===L.SyntaxKind.ImportSpecifier}k.isImportSpecifier=Oq;function Mq(e){return e.kind===L.SyntaxKind.IndexedAccessType}k.isIndexedAccessTypeNode=Mq;function Lq(e){return e.kind===L.SyntaxKind.IndexSignature}k.isIndexSignatureDeclaration=Lq;function Jq(e){return e.kind===L.SyntaxKind.InferType}k.isInferTypeNode=Jq;function Rq(e){return e.kind===L.SyntaxKind.InterfaceDeclaration}k.isInterfaceDeclaration=Rq;function Fq(e){return e.kind===L.SyntaxKind.IntersectionType}k.isIntersectionTypeNode=Fq;function jq(e){switch(e.kind){case L.SyntaxKind.ForStatement:case L.SyntaxKind.ForOfStatement:case L.SyntaxKind.ForInStatement:case L.SyntaxKind.WhileStatement:case L.SyntaxKind.DoStatement:return!0;default:return!1}}k.isIterationStatement=jq;function Bq(e){return e.kind===L.SyntaxKind.JSDocComment}k.isJsDoc=Bq;function Uq(e){return e.kind===L.SyntaxKind.JsxAttribute}k.isJsxAttribute=Uq;function qq(e){return e.kind===L.SyntaxKind.JsxAttribute||e.kind===L.SyntaxKind.JsxSpreadAttribute}k.isJsxAttributeLike=qq;function zq(e){return e.kind===L.SyntaxKind.JsxAttributes}k.isJsxAttributes=zq;function Wq(e){return e.kind===L.SyntaxKind.JsxClosingElement}k.isJsxClosingElement=Wq;function Vq(e){return e.kind===L.SyntaxKind.JsxClosingFragment}k.isJsxClosingFragment=Vq;function Hq(e){return e.kind===L.SyntaxKind.JsxElement}k.isJsxElement=Hq;function Kq(e){return e.kind===L.SyntaxKind.JsxExpression}k.isJsxExpression=Kq;function Gq(e){return e.kind===L.SyntaxKind.JsxFragment}k.isJsxFragment=Gq;function Xq(e){return e.kind===L.SyntaxKind.JsxOpeningElement}k.isJsxOpeningElement=Xq;function $q(e){return e.kind===L.SyntaxKind.JsxOpeningFragment}k.isJsxOpeningFragment=$q;function Qq(e){return e.kind===L.SyntaxKind.JsxOpeningElement||e.kind===L.SyntaxKind.JsxSelfClosingElement}k.isJsxOpeningLikeElement=Qq;function Yq(e){return e.kind===L.SyntaxKind.JsxSelfClosingElement}k.isJsxSelfClosingElement=Yq;function Zq(e){return e.kind===L.SyntaxKind.JsxSpreadAttribute}k.isJsxSpreadAttribute=Zq;function ez(e){return e.kind===L.SyntaxKind.JsxText}k.isJsxText=ez;function tz(e){return e.kind===L.SyntaxKind.LabeledStatement}k.isLabeledStatement=tz;function nz(e){return e.kind>=L.SyntaxKind.FirstLiteralToken&&e.kind<=L.SyntaxKind.LastLiteralToken}k.isLiteralExpression=nz;function rz(e){return e.kind===L.SyntaxKind.LiteralType}k.isLiteralTypeNode=rz;function iz(e){return e.kind===L.SyntaxKind.MappedType}k.isMappedTypeNode=iz;function az(e){return e.kind===L.SyntaxKind.MetaProperty}k.isMetaProperty=az;function oz(e){return e.kind===L.SyntaxKind.MethodDeclaration}k.isMethodDeclaration=oz;function sz(e){return e.kind===L.SyntaxKind.MethodSignature}k.isMethodSignature=sz;function _z(e){return e.kind===L.SyntaxKind.ModuleBlock}k.isModuleBlock=_z;function Sw(e){return e.kind===L.SyntaxKind.ModuleDeclaration}k.isModuleDeclaration=Sw;function cz(e){return e.kind===L.SyntaxKind.NamedExports}k.isNamedExports=cz;function lz(e){return e.kind===L.SyntaxKind.NamedImports}k.isNamedImports=lz;function ww(e){return Sw(e)&&e.name.kind===L.SyntaxKind.Identifier&&e.body!==void 0&&(e.body.kind===L.SyntaxKind.ModuleBlock||ww(e.body))}k.isNamespaceDeclaration=ww;function uz(e){return e.kind===L.SyntaxKind.NamespaceImport}k.isNamespaceImport=uz;function pz(e){return e.kind===L.SyntaxKind.NamespaceExportDeclaration}k.isNamespaceExportDeclaration=pz;function dz(e){return e.kind===L.SyntaxKind.NewExpression}k.isNewExpression=dz;function fz(e){return e.kind===L.SyntaxKind.NonNullExpression}k.isNonNullExpression=fz;function mz(e){return e.kind===L.SyntaxKind.NoSubstitutionTemplateLiteral}k.isNoSubstitutionTemplateLiteral=mz;function yz(e){return e.kind===L.SyntaxKind.NullKeyword}k.isNullLiteral=yz;function hz(e){return e.kind===L.SyntaxKind.NumericLiteral}k.isNumericLiteral=hz;function gz(e){switch(e.kind){case L.SyntaxKind.StringLiteral:case L.SyntaxKind.NumericLiteral:case L.SyntaxKind.NoSubstitutionTemplateLiteral:return!0;default:return!1}}k.isNumericOrStringLikeLiteral=gz;function bz(e){return e.kind===L.SyntaxKind.ObjectBindingPattern}k.isObjectBindingPattern=bz;function vz(e){return e.kind===L.SyntaxKind.ObjectLiteralExpression}k.isObjectLiteralExpression=vz;function Tz(e){return e.kind===L.SyntaxKind.OmittedExpression}k.isOmittedExpression=Tz;function xz(e){return e.kind===L.SyntaxKind.Parameter}k.isParameterDeclaration=xz;function Sz(e){return e.kind===L.SyntaxKind.ParenthesizedExpression}k.isParenthesizedExpression=Sz;function wz(e){return e.kind===L.SyntaxKind.ParenthesizedType}k.isParenthesizedTypeNode=wz;function Ez(e){return e.kind===L.SyntaxKind.PostfixUnaryExpression}k.isPostfixUnaryExpression=Ez;function Cz(e){return e.kind===L.SyntaxKind.PrefixUnaryExpression}k.isPrefixUnaryExpression=Cz;function Ew(e){return e.kind===L.SyntaxKind.PropertyAccessExpression}k.isPropertyAccessExpression=Ew;function kz(e){return e.kind===L.SyntaxKind.PropertyAssignment}k.isPropertyAssignment=kz;function Az(e){return e.kind===L.SyntaxKind.PropertyDeclaration}k.isPropertyDeclaration=Az;function Dz(e){return e.kind===L.SyntaxKind.PropertySignature}k.isPropertySignature=Dz;function Cw(e){return e.kind===L.SyntaxKind.QualifiedName}k.isQualifiedName=Cw;function Pz(e){return e.kind===L.SyntaxKind.RegularExpressionLiteral}k.isRegularExpressionLiteral=Pz;function Nz(e){return e.kind===L.SyntaxKind.ReturnStatement}k.isReturnStatement=Nz;function Iz(e){return e.kind===L.SyntaxKind.SetAccessor}k.isSetAccessorDeclaration=Iz;function Oz(e){return e.kind===L.SyntaxKind.ShorthandPropertyAssignment}k.isShorthandPropertyAssignment=Oz;function Mz(e){return e.parameters!==void 0}k.isSignatureDeclaration=Mz;function Lz(e){return e.kind===L.SyntaxKind.SourceFile}k.isSourceFile=Lz;function Jz(e){return e.kind===L.SyntaxKind.SpreadAssignment}k.isSpreadAssignment=Jz;function Rz(e){return e.kind===L.SyntaxKind.SpreadElement}k.isSpreadElement=Rz;function Fz(e){return e.kind===L.SyntaxKind.StringLiteral}k.isStringLiteral=Fz;function jz(e){return e.kind===L.SyntaxKind.SwitchStatement}k.isSwitchStatement=jz;function Bz(e){return e.kind===L.SyntaxKind.SyntaxList}k.isSyntaxList=Bz;function Uz(e){return e.kind===L.SyntaxKind.TaggedTemplateExpression}k.isTaggedTemplateExpression=Uz;function qz(e){return e.kind===L.SyntaxKind.TemplateExpression}k.isTemplateExpression=qz;function zz(e){return e.kind===L.SyntaxKind.TemplateExpression||e.kind===L.SyntaxKind.NoSubstitutionTemplateLiteral}k.isTemplateLiteral=zz;function Wz(e){return e.kind===L.SyntaxKind.StringLiteral||e.kind===L.SyntaxKind.NoSubstitutionTemplateLiteral}k.isTextualLiteral=Wz;function Vz(e){return e.kind===L.SyntaxKind.ThrowStatement}k.isThrowStatement=Vz;function Hz(e){return e.kind===L.SyntaxKind.TryStatement}k.isTryStatement=Hz;function Kz(e){return e.kind===L.SyntaxKind.TupleType}k.isTupleTypeNode=Kz;function Gz(e){return e.kind===L.SyntaxKind.TypeAliasDeclaration}k.isTypeAliasDeclaration=Gz;function Xz(e){return e.kind===L.SyntaxKind.TypeAssertionExpression}k.isTypeAssertion=Xz;function $z(e){return e.kind===L.SyntaxKind.TypeLiteral}k.isTypeLiteralNode=$z;function Qz(e){return e.kind===L.SyntaxKind.TypeOfExpression}k.isTypeOfExpression=Qz;function Yz(e){return e.kind===L.SyntaxKind.TypeOperator}k.isTypeOperatorNode=Yz;function Zz(e){return e.kind===L.SyntaxKind.TypeParameter}k.isTypeParameterDeclaration=Zz;function eW(e){return e.kind===L.SyntaxKind.TypePredicate}k.isTypePredicateNode=eW;function tW(e){return e.kind===L.SyntaxKind.TypeReference}k.isTypeReferenceNode=tW;function nW(e){return e.kind===L.SyntaxKind.TypeQuery}k.isTypeQueryNode=nW;function rW(e){return e.kind===L.SyntaxKind.UnionType}k.isUnionTypeNode=rW;function iW(e){return e.kind===L.SyntaxKind.VariableDeclaration}k.isVariableDeclaration=iW;function aW(e){return e.kind===L.SyntaxKind.VariableStatement}k.isVariableStatement=aW;function oW(e){return e.kind===L.SyntaxKind.VariableDeclarationList}k.isVariableDeclarationList=oW;function sW(e){return e.kind===L.SyntaxKind.VoidExpression}k.isVoidExpression=sW;function _W(e){return e.kind===L.SyntaxKind.WhileStatement}k.isWhileStatement=_W;function cW(e){return e.kind===L.SyntaxKind.WithStatement}k.isWithStatement=cW});var Aw=tt(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});au.isImportTypeNode=void 0;var lW=(Yi(),Er(Qi));lW.__exportStar(kw(),au);var uW=Cn();function pW(e){return e.kind===uW.SyntaxKind.ImportType}au.isImportTypeNode=pW});var Dw=tt(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});Aa.isSyntheticExpression=Aa.isRestTypeNode=Aa.isOptionalTypeNode=void 0;var dW=(Yi(),Er(Qi));dW.__exportStar(Aw(),Aa);var s6=Cn();function fW(e){return e.kind===s6.SyntaxKind.OptionalType}Aa.isOptionalTypeNode=fW;function mW(e){return e.kind===s6.SyntaxKind.RestType}Aa.isRestTypeNode=mW;function yW(e){return e.kind===s6.SyntaxKind.SyntheticExpression}Aa.isSyntheticExpression=yW});var _6=tt(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});ou.isBigIntLiteral=void 0;var hW=(Yi(),Er(Qi));hW.__exportStar(Dw(),ou);var gW=Cn();function bW(e){return e.kind===gW.SyntaxKind.BigIntLiteral}ou.isBigIntLiteral=bW});var l6=tt(c6=>{"use strict";Object.defineProperty(c6,"__esModule",{value:!0});var vW=(Yi(),Er(Qi));vW.__exportStar(_6(),c6)});var Pw=tt(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.isUniqueESSymbolType=it.isUnionType=it.isUnionOrIntersectionType=it.isTypeVariable=it.isTypeReference=it.isTypeParameter=it.isSubstitutionType=it.isObjectType=it.isLiteralType=it.isIntersectionType=it.isInterfaceType=it.isInstantiableType=it.isIndexedAccessype=it.isIndexedAccessType=it.isGenericType=it.isEnumType=it.isConditionalType=void 0;var Kt=Cn();function TW(e){return(e.flags&Kt.TypeFlags.Conditional)!==0}it.isConditionalType=TW;function xW(e){return(e.flags&Kt.TypeFlags.Enum)!==0}it.isEnumType=xW;function SW(e){return(e.flags&Kt.TypeFlags.Object)!==0&&(e.objectFlags&Kt.ObjectFlags.ClassOrInterface)!==0&&(e.objectFlags&Kt.ObjectFlags.Reference)!==0}it.isGenericType=SW;function wW(e){return(e.flags&Kt.TypeFlags.IndexedAccess)!==0}it.isIndexedAccessType=wW;function EW(e){return(e.flags&Kt.TypeFlags.Index)!==0}it.isIndexedAccessype=EW;function CW(e){return(e.flags&Kt.TypeFlags.Instantiable)!==0}it.isInstantiableType=CW;function kW(e){return(e.flags&Kt.TypeFlags.Object)!==0&&(e.objectFlags&Kt.ObjectFlags.ClassOrInterface)!==0}it.isInterfaceType=kW;function AW(e){return(e.flags&Kt.TypeFlags.Intersection)!==0}it.isIntersectionType=AW;function DW(e){return(e.flags&(Kt.TypeFlags.StringOrNumberLiteral|Kt.TypeFlags.BigIntLiteral))!==0}it.isLiteralType=DW;function PW(e){return(e.flags&Kt.TypeFlags.Object)!==0}it.isObjectType=PW;function NW(e){return(e.flags&Kt.TypeFlags.Substitution)!==0}it.isSubstitutionType=NW;function IW(e){return(e.flags&Kt.TypeFlags.TypeParameter)!==0}it.isTypeParameter=IW;function OW(e){return(e.flags&Kt.TypeFlags.Object)!==0&&(e.objectFlags&Kt.ObjectFlags.Reference)!==0}it.isTypeReference=OW;function MW(e){return(e.flags&Kt.TypeFlags.TypeVariable)!==0}it.isTypeVariable=MW;function LW(e){return(e.flags&Kt.TypeFlags.UnionOrIntersection)!==0}it.isUnionOrIntersectionType=LW;function JW(e){return(e.flags&Kt.TypeFlags.Union)!==0}it.isUnionType=JW;function RW(e){return(e.flags&Kt.TypeFlags.UniqueESSymbol)!==0}it.isUniqueESSymbolType=RW});var p6=tt(u6=>{"use strict";Object.defineProperty(u6,"__esModule",{value:!0});var FW=(Yi(),Er(Qi));FW.__exportStar(Pw(),u6)});var Ow=tt(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.isTupleTypeReference=fs.isTupleType=void 0;var jW=(Yi(),Er(Qi));jW.__exportStar(p6(),fs);var Nw=Cn(),BW=p6();function Iw(e){return(e.flags&Nw.TypeFlags.Object&&e.objectFlags&Nw.ObjectFlags.Tuple)!==0}fs.isTupleType=Iw;function UW(e){return BW.isTypeReference(e)&&Iw(e.target)}fs.isTupleTypeReference=UW});var f6=tt(d6=>{"use strict";Object.defineProperty(d6,"__esModule",{value:!0});var qW=(Yi(),Er(Qi));qW.__exportStar(Ow(),d6)});var Lw=tt(u1=>{"use strict";Object.defineProperty(u1,"__esModule",{value:!0});var Mw=(Yi(),Er(Qi));Mw.__exportStar(_6(),u1);Mw.__exportStar(f6(),u1)});var Jw=tt(m6=>{"use strict";Object.defineProperty(m6,"__esModule",{value:!0});var zW=(Yi(),Er(Qi));zW.__exportStar(f6(),m6)});var Ww=tt(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.getBaseClassMemberOfClassElement=Ke.getIteratorYieldResultFromIteratorResult=Ke.getInstanceTypeOfClassLikeDeclaration=Ke.getConstructorTypeOfClassLikeDeclaration=Ke.getSymbolOfClassLikeDeclaration=Ke.getPropertyNameFromType=Ke.symbolHasReadonlyDeclaration=Ke.isPropertyReadonlyInType=Ke.getWellKnownSymbolPropertyOfType=Ke.getPropertyOfType=Ke.isBooleanLiteralType=Ke.isFalsyType=Ke.isThenableType=Ke.someTypePart=Ke.intersectionTypeParts=Ke.unionTypeParts=Ke.getCallSignaturesOfType=Ke.isTypeAssignableToString=Ke.isTypeAssignableToNumber=Ke.isOptionalChainingUndefinedMarkerType=Ke.removeOptionalChainingUndefinedMarkerType=Ke.removeOptionalityFromType=Ke.isEmptyObjectType=void 0;var pt=Cn(),Fn=Jw(),An=v6(),_o=l6();function Fw(e){if(Fn.isObjectType(e)&&e.objectFlags&pt.ObjectFlags.Anonymous&&e.getProperties().length===0&&e.getCallSignatures().length===0&&e.getConstructSignatures().length===0&&e.getStringIndexType()===void 0&&e.getNumberIndexType()===void 0){let t=e.getBaseTypes();return t===void 0||t.every(Fw)}return!1}Ke.isEmptyObjectType=Fw;function jw(e,t){if(!Rw(t,pt.TypeFlags.Undefined))return t;let n=Rw(t,pt.TypeFlags.Null);return t=e.getNonNullableType(t),n?e.getNullableType(t,pt.TypeFlags.Null):t}Ke.removeOptionalityFromType=jw;function Rw(e,t){for(let n of B_(e))if(An.isTypeFlagSet(n,t))return!0;return!1}function WW(e,t){if(!Fn.isUnionType(t))return y6(e,t)?t.getNonNullableType():t;let n=0,i=!1;for(let s of t.types)y6(e,s)?i=!0:n|=s.flags;return i?e.getNullableType(t.getNonNullableType(),n):t}Ke.removeOptionalChainingUndefinedMarkerType=WW;function y6(e,t){return An.isTypeFlagSet(t,pt.TypeFlags.Undefined)&&e.getNullableType(t.getNonNullableType(),pt.TypeFlags.Undefined)!==t}Ke.isOptionalChainingUndefinedMarkerType=y6;function VW(e,t){return Bw(e,t,pt.TypeFlags.NumberLike)}Ke.isTypeAssignableToNumber=VW;function HW(e,t){return Bw(e,t,pt.TypeFlags.StringLike)}Ke.isTypeAssignableToString=HW;function Bw(e,t,n){n|=pt.TypeFlags.Any;let i;return function s(l){if(Fn.isTypeParameter(l)&&l.symbol!==void 0&&l.symbol.declarations!==void 0){if(i===void 0)i=new Set([l]);else if(!i.has(l))i.add(l);else return!1;let d=l.symbol.declarations[0];return d.constraint===void 0?!0:s(e.getTypeFromTypeNode(d.constraint))}return Fn.isUnionType(l)?l.types.every(s):Fn.isIntersectionType(l)?l.types.some(s):An.isTypeFlagSet(l,n)}(t)}function h6(e){if(Fn.isUnionType(e)){let t=[];for(let n of e.types)t.push(...h6(n));return t}if(Fn.isIntersectionType(e)){let t;for(let n of e.types){let i=h6(n);if(i.length!==0){if(t!==void 0)return[];t=i}}return t===void 0?[]:t}return e.getCallSignatures()}Ke.getCallSignaturesOfType=h6;function B_(e){return Fn.isUnionType(e)?e.types:[e]}Ke.unionTypeParts=B_;function KW(e){return Fn.isIntersectionType(e)?e.types:[e]}Ke.intersectionTypeParts=KW;function Uw(e,t,n){return t(e)?e.types.some(n):n(e)}Ke.someTypePart=Uw;function GW(e,t,n=e.getTypeAtLocation(t)){for(let i of B_(e.getApparentType(n))){let s=i.getProperty("then");if(s===void 0)continue;let l=e.getTypeOfSymbolAtLocation(s,t);for(let d of B_(l))for(let y of d.getCallSignatures())if(y.parameters.length!==0&&XW(e,y.parameters[0],t))return!0}return!1}Ke.isThenableType=GW;function XW(e,t,n){let i=e.getApparentType(e.getTypeOfSymbolAtLocation(t,n));if(t.valueDeclaration.dotDotDotToken&&(i=i.getNumberIndexType(),i===void 0))return!1;for(let s of B_(i))if(s.getCallSignatures().length!==0)return!0;return!1}function $W(e){return e.flags&(pt.TypeFlags.Undefined|pt.TypeFlags.Null|pt.TypeFlags.Void)?!0:Fn.isLiteralType(e)?!e.value:g6(e,!1)}Ke.isFalsyType=$W;function g6(e,t){return An.isTypeFlagSet(e,pt.TypeFlags.BooleanLiteral)&&e.intrinsicName===(t?"true":"false")}Ke.isBooleanLiteralType=g6;function p1(e,t){return t.startsWith("__")?e.getProperties().find(n=>n.escapedName===t):e.getProperty(t)}Ke.getPropertyOfType=p1;function QW(e,t,n){let i="__@"+t;for(let s of e.getProperties()){if(!s.name.startsWith(i))continue;let l=n.getApparentType(n.getTypeAtLocation(s.valueDeclaration.name.expression)).symbol;if(s.escapedName===YW(n,l,t))return s}}Ke.getWellKnownSymbolPropertyOfType=QW;function YW(e,t,n){let i=t&&e.getTypeOfSymbolAtLocation(t,t.valueDeclaration).getProperty(n),s=i&&e.getTypeOfSymbolAtLocation(i,i.valueDeclaration);return s&&Fn.isUniqueESSymbolType(s)?s.escapedName:"__@"+n}function qw(e,t,n){let i=!1,s=!1;for(let l of B_(e))if(p1(l,t)===void 0){let d=(An.isNumericPropertyName(t)?n.getIndexInfoOfType(l,pt.IndexKind.Number):void 0)||n.getIndexInfoOfType(l,pt.IndexKind.String);if(d!==void 0&&d.isReadonly){if(i)return!0;s=!0}}else{if(s||ZW(l,t,n))return!0;i=!0}return!1}Ke.isPropertyReadonlyInType=qw;function ZW(e,t,n){return Uw(e,Fn.isIntersectionType,i=>{let s=p1(i,t);if(s===void 0)return!1;if(s.flags&pt.SymbolFlags.Transient){if(/^(?:[1-9]\d*|0)$/.test(t)&&Fn.isTupleTypeReference(i))return i.target.readonly;switch(eV(i,t,n)){case!0:return!0;case!1:return!1;default:}}return An.isSymbolFlagSet(s,pt.SymbolFlags.ValueModule)||zw(s,n)})}function eV(e,t,n){if(!Fn.isObjectType(e)||!An.isObjectFlagSet(e,pt.ObjectFlags.Mapped))return;let i=e.symbol.declarations[0];return i.readonlyToken!==void 0&&!/^__@[^@]+$/.test(t)?i.readonlyToken.kind!==pt.SyntaxKind.MinusToken:qw(e.modifiersType,t,n)}function zw(e,t){return(e.flags&pt.SymbolFlags.Accessor)===pt.SymbolFlags.GetAccessor||e.declarations!==void 0&&e.declarations.some(n=>An.isModifierFlagSet(n,pt.ModifierFlags.Readonly)||_o.isVariableDeclaration(n)&&An.isNodeFlagSet(n.parent,pt.NodeFlags.Const)||_o.isCallExpression(n)&&An.isReadonlyAssignmentDeclaration(n,t)||_o.isEnumMember(n)||(_o.isPropertyAssignment(n)||_o.isShorthandPropertyAssignment(n))&&An.isInConstContext(n.parent))}Ke.symbolHasReadonlyDeclaration=zw;function tV(e){if(e.flags&(pt.TypeFlags.StringLiteral|pt.TypeFlags.NumberLiteral)){let t=String(e.value);return{displayName:t,symbolName:pt.escapeLeadingUnderscores(t)}}if(Fn.isUniqueESSymbolType(e))return{displayName:`[${e.symbol?`${nV(e.symbol)?"Symbol.":""}${e.symbol.name}`:e.escapedName.replace(/^__@|@\d+$/g,"")}]`,symbolName:e.escapedName}}Ke.getPropertyNameFromType=tV;function nV(e){return An.isSymbolFlagSet(e,pt.SymbolFlags.Property)&&e.valueDeclaration!==void 0&&_o.isInterfaceDeclaration(e.valueDeclaration.parent)&&e.valueDeclaration.parent.name.text==="SymbolConstructor"&&rV(e.valueDeclaration.parent)}function rV(e){return An.isNodeFlagSet(e.parent,pt.NodeFlags.GlobalAugmentation)||_o.isSourceFile(e.parent)&&!pt.isExternalModule(e.parent)}function b6(e,t){var n;return t.getSymbolAtLocation((n=e.name)!==null&&n!==void 0?n:An.getChildOfKind(e,pt.SyntaxKind.ClassKeyword))}Ke.getSymbolOfClassLikeDeclaration=b6;function iV(e,t){return e.kind===pt.SyntaxKind.ClassExpression?t.getTypeAtLocation(e):t.getTypeOfSymbolAtLocation(b6(e,t),e)}Ke.getConstructorTypeOfClassLikeDeclaration=iV;function aV(e,t){return e.kind===pt.SyntaxKind.ClassDeclaration?t.getTypeAtLocation(e):t.getDeclaredTypeOfSymbol(b6(e,t))}Ke.getInstanceTypeOfClassLikeDeclaration=aV;function oV(e,t,n){return Fn.isUnionType(e)&&e.types.find(i=>{let s=i.getProperty("done");return s!==void 0&&g6(jw(n,n.getTypeOfSymbolAtLocation(s,t)),!1)})||e}Ke.getIteratorYieldResultFromIteratorResult=oV;function sV(e,t){if(!_o.isClassLikeDeclaration(e.parent))return;let n=An.getBaseOfClassLikeExpression(e.parent);if(n===void 0)return;let i=An.getSingleLateBoundPropertyNameOfPropertyName(e.name,t);if(i===void 0)return;let s=t.getTypeAtLocation(An.hasModifier(e.modifiers,pt.SyntaxKind.StaticKeyword)?n.expression:n);return p1(s,i.symbolName)}Ke.getBaseClassMemberOfClassElement=sV});var v6=tt(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.isValidIdentifier=z.getLineBreakStyle=z.getLineRanges=z.forEachComment=z.forEachTokenWithTrivia=z.forEachToken=z.isFunctionWithBody=z.hasOwnThisReference=z.isBlockScopeBoundary=z.isFunctionScopeBoundary=z.isTypeScopeBoundary=z.isScopeBoundary=z.ScopeBoundarySelector=z.ScopeBoundary=z.isInSingleStatementContext=z.isBlockScopedDeclarationStatement=z.isBlockScopedVariableDeclaration=z.isBlockScopedVariableDeclarationList=z.getVariableDeclarationKind=z.VariableDeclarationKind=z.forEachDeclaredVariable=z.forEachDestructuringIdentifier=z.getPropertyName=z.getWrappedNodeAtPosition=z.getAstNodeAtPosition=z.commentText=z.isPositionInComment=z.getCommentAtPosition=z.getTokenAtPosition=z.getNextToken=z.getPreviousToken=z.getNextStatement=z.getPreviousStatement=z.isModifierFlagSet=z.isObjectFlagSet=z.isSymbolFlagSet=z.isTypeFlagSet=z.isNodeFlagSet=z.hasAccessModifier=z.isParameterProperty=z.hasModifier=z.getModifier=z.isThisParameter=z.isKeywordKind=z.isJsDocKind=z.isTypeNodeKind=z.isAssignmentKind=z.isNodeKind=z.isTokenKind=z.getChildOfKind=void 0;z.getBaseOfClassLikeExpression=z.hasExhaustiveCaseClauses=z.formatPseudoBigInt=z.unwrapParentheses=z.getSingleLateBoundPropertyNameOfPropertyName=z.getLateBoundPropertyNamesOfPropertyName=z.getLateBoundPropertyNames=z.getPropertyNameOfWellKnownSymbol=z.isWellKnownSymbolLiterally=z.isBindableObjectDefinePropertyCall=z.isReadonlyAssignmentDeclaration=z.isInConstContext=z.isConstAssertion=z.getTsCheckDirective=z.getCheckJsDirective=z.isAmbientModule=z.isCompilerOptionEnabled=z.isStrictCompilerOptionEnabled=z.getIIFE=z.isAmbientModuleBlock=z.isStatementInAmbientContext=z.findImportLikeNodes=z.findImports=z.ImportKind=z.parseJsDocOfNode=z.getJsDoc=z.canHaveJsDoc=z.isReassignmentTarget=z.getAccessKind=z.AccessKind=z.isExpressionValueUsed=z.getDeclarationOfBindingElement=z.hasSideEffects=z.SideEffectOptions=z.isSameLine=z.isNumericPropertyName=z.isValidJsxIdentifier=z.isValidNumericLiteral=z.isValidPropertyName=z.isValidPropertyAccess=void 0;var T=Cn(),Gt=l6(),x6=Lw(),ms=Ww();function _V(e,t,n){for(let i of e.getChildren(n))if(i.kind===t)return i}z.getChildOfKind=_V;function _u(e){return e>=T.SyntaxKind.FirstToken&&e<=T.SyntaxKind.LastToken}z.isTokenKind=_u;function Kw(e){return e>=T.SyntaxKind.FirstNode}z.isNodeKind=Kw;function w6(e){return e>=T.SyntaxKind.FirstAssignment&&e<=T.SyntaxKind.LastAssignment}z.isAssignmentKind=w6;function cV(e){return e>=T.SyntaxKind.FirstTypeNode&&e<=T.SyntaxKind.LastTypeNode}z.isTypeNodeKind=cV;function lV(e){return e>=T.SyntaxKind.FirstJSDocNode&&e<=T.SyntaxKind.LastJSDocNode}z.isJsDocKind=lV;function uV(e){return e>=T.SyntaxKind.FirstKeyword&&e<=T.SyntaxKind.LastKeyword}z.isKeywordKind=uV;function pV(e){return e.name.kind===T.SyntaxKind.Identifier&&e.name.originalKeywordKind===T.SyntaxKind.ThisKeyword}z.isThisParameter=pV;function dV(e,t){if(e.modifiers!==void 0){for(let n of e.modifiers)if(n.kind===t)return n}}z.getModifier=dV;function z_(e,...t){if(e===void 0)return!1;for(let n of e)if(t.includes(n.kind))return!0;return!1}z.hasModifier=z_;function fV(e){return z_(e.modifiers,T.SyntaxKind.PublicKeyword,T.SyntaxKind.ProtectedKeyword,T.SyntaxKind.PrivateKeyword,T.SyntaxKind.ReadonlyKeyword)}z.isParameterProperty=fV;function mV(e){return Gw(e,T.ModifierFlags.AccessibilityModifier)}z.hasAccessModifier=mV;function E6(e,t){return(e.flags&t)!==0}z.isNodeFlagSet=E6;z.isTypeFlagSet=E6;z.isSymbolFlagSet=E6;function yV(e,t){return(e.objectFlags&t)!==0}z.isObjectFlagSet=yV;function Gw(e,t){return(T.getCombinedModifierFlags(e)&t)!==0}z.isModifierFlagSet=Gw;function hV(e){let t=e.parent;if(Gt.isBlockLike(t)){let n=t.statements.indexOf(e);if(n>0)return t.statements[n-1]}}z.getPreviousStatement=hV;function gV(e){let t=e.parent;if(Gt.isBlockLike(t)){let n=t.statements.indexOf(e);if(n=e.end))return _u(e.kind)?e:d1(e,t,n??e.getSourceFile(),i===!0)}z.getTokenAtPosition=Xw;function d1(e,t,n,i){if(!i&&(e=Qw(e,t),_u(e.kind)))return e;e:for(;;){for(let s of e.getChildren(n))if(s.end>t&&(i||s.kind!==T.SyntaxKind.JSDocComment)){if(_u(s.kind))return s;e=s;continue e}return}}function $w(e,t,n=e){let i=Xw(n,t,e);if(i===void 0||i.kind===T.SyntaxKind.JsxText||t>=i.end-(T.tokenToString(i.kind)||"").length)return;let s=i.pos===0?(T.getShebang(e.text)||"").length:i.pos;return s!==0&&T.forEachTrailingCommentRange(e.text,s,Vw,t)||T.forEachLeadingCommentRange(e.text,s,Vw,t)}z.getCommentAtPosition=$w;function Vw(e,t,n,i,s){return s>=e&&st||e.end<=t)){for(;Kw(e.kind);){let n=T.forEachChild(e,i=>i.pos<=t&&i.end>t?i:void 0);if(n===void 0)break;e=n}return e}}z.getAstNodeAtPosition=Qw;function SV(e,t){if(!(e.node.pos>t||e.node.end<=t))e:for(;;){for(let n of e.children){if(n.node.pos>t)return e;if(n.node.end>t){e=n;continue e}}return e}}z.getWrappedNodeAtPosition=SV;function C6(e){if(e.kind===T.SyntaxKind.ComputedPropertyName){let t=R6(e.expression);if(Gt.isPrefixUnaryExpression(t)){let n=!1;switch(t.operator){case T.SyntaxKind.MinusToken:n=!0;case T.SyntaxKind.PlusToken:return Gt.isNumericLiteral(t.operand)?`${n?"-":""}${t.operand.text}`:x6.isBigIntLiteral(t.operand)?`${n?"-":""}${t.operand.text.slice(0,-1)}`:void 0;default:return}}return x6.isBigIntLiteral(t)?t.text.slice(0,-1):Gt.isNumericOrStringLikeLiteral(t)?t.text:void 0}return e.kind===T.SyntaxKind.PrivateIdentifier?void 0:e.text}z.getPropertyName=C6;function k6(e,t){for(let n of e.elements){if(n.kind!==T.SyntaxKind.BindingElement)continue;let i;if(n.name.kind===T.SyntaxKind.Identifier?i=t(n):i=k6(n.name,t),i)return i}}z.forEachDestructuringIdentifier=k6;function wV(e,t){for(let n of e.declarations){let i;if(n.name.kind===T.SyntaxKind.Identifier?i=t(n):i=k6(n.name,t),i)return i}}z.forEachDeclaredVariable=wV;var EV;(function(e){e[e.Var=0]="Var",e[e.Let=1]="Let",e[e.Const=2]="Const"})(EV=z.VariableDeclarationKind||(z.VariableDeclarationKind={}));function CV(e){return e.flags&T.NodeFlags.Let?1:e.flags&T.NodeFlags.Const?2:0}z.getVariableDeclarationKind=CV;function A6(e){return(e.flags&T.NodeFlags.BlockScoped)!==0}z.isBlockScopedVariableDeclarationList=A6;function kV(e){let t=e.parent;return t.kind===T.SyntaxKind.CatchClause||A6(t)}z.isBlockScopedVariableDeclaration=kV;function AV(e){switch(e.kind){case T.SyntaxKind.VariableStatement:return A6(e.declarationList);case T.SyntaxKind.ClassDeclaration:case T.SyntaxKind.EnumDeclaration:case T.SyntaxKind.InterfaceDeclaration:case T.SyntaxKind.TypeAliasDeclaration:return!0;default:return!1}}z.isBlockScopedDeclarationStatement=AV;function DV(e){switch(e.parent.kind){case T.SyntaxKind.ForStatement:case T.SyntaxKind.ForInStatement:case T.SyntaxKind.ForOfStatement:case T.SyntaxKind.WhileStatement:case T.SyntaxKind.DoStatement:case T.SyntaxKind.IfStatement:case T.SyntaxKind.WithStatement:case T.SyntaxKind.LabeledStatement:return!0;default:return!1}}z.isInSingleStatementContext=DV;var PV;(function(e){e[e.None=0]="None",e[e.Function=1]="Function",e[e.Block=2]="Block",e[e.Type=4]="Type",e[e.ConditionalType=8]="ConditionalType"})(PV=z.ScopeBoundary||(z.ScopeBoundary={}));var NV;(function(e){e[e.Function=1]="Function",e[e.Block=3]="Block",e[e.Type=7]="Type",e[e.InferType=8]="InferType"})(NV=z.ScopeBoundarySelector||(z.ScopeBoundarySelector={}));function IV(e){return D6(e)||Zw(e)||Yw(e)}z.isScopeBoundary=IV;function Yw(e){switch(e.kind){case T.SyntaxKind.InterfaceDeclaration:case T.SyntaxKind.TypeAliasDeclaration:case T.SyntaxKind.MappedType:return 4;case T.SyntaxKind.ConditionalType:return 8;default:return 0}}z.isTypeScopeBoundary=Yw;function D6(e){switch(e.kind){case T.SyntaxKind.FunctionExpression:case T.SyntaxKind.ArrowFunction:case T.SyntaxKind.Constructor:case T.SyntaxKind.ModuleDeclaration:case T.SyntaxKind.ClassDeclaration:case T.SyntaxKind.ClassExpression:case T.SyntaxKind.EnumDeclaration:case T.SyntaxKind.MethodDeclaration:case T.SyntaxKind.FunctionDeclaration:case T.SyntaxKind.GetAccessor:case T.SyntaxKind.SetAccessor:case T.SyntaxKind.MethodSignature:case T.SyntaxKind.CallSignature:case T.SyntaxKind.ConstructSignature:case T.SyntaxKind.ConstructorType:case T.SyntaxKind.FunctionType:return 1;case T.SyntaxKind.SourceFile:return T.isExternalModule(e)?1:0;default:return 0}}z.isFunctionScopeBoundary=D6;function Zw(e){switch(e.kind){case T.SyntaxKind.Block:let t=e.parent;return t.kind!==T.SyntaxKind.CatchClause&&(t.kind===T.SyntaxKind.SourceFile||!D6(t))?2:0;case T.SyntaxKind.ForStatement:case T.SyntaxKind.ForInStatement:case T.SyntaxKind.ForOfStatement:case T.SyntaxKind.CaseBlock:case T.SyntaxKind.CatchClause:case T.SyntaxKind.WithStatement:return 2;default:return 0}}z.isBlockScopeBoundary=Zw;function OV(e){switch(e.kind){case T.SyntaxKind.ClassDeclaration:case T.SyntaxKind.ClassExpression:case T.SyntaxKind.FunctionExpression:return!0;case T.SyntaxKind.FunctionDeclaration:return e.body!==void 0;case T.SyntaxKind.MethodDeclaration:case T.SyntaxKind.GetAccessor:case T.SyntaxKind.SetAccessor:return e.parent.kind===T.SyntaxKind.ObjectLiteralExpression;default:return!1}}z.hasOwnThisReference=OV;function MV(e){switch(e.kind){case T.SyntaxKind.GetAccessor:case T.SyntaxKind.SetAccessor:case T.SyntaxKind.FunctionDeclaration:case T.SyntaxKind.MethodDeclaration:case T.SyntaxKind.Constructor:return e.body!==void 0;case T.SyntaxKind.FunctionExpression:case T.SyntaxKind.ArrowFunction:return!0;default:return!1}}z.isFunctionWithBody=MV;function P6(e,t,n=e.getSourceFile()){let i=[];for(;;){if(_u(e.kind))t(e);else if(e.kind!==T.SyntaxKind.JSDocComment){let s=e.getChildren(n);if(s.length===1){e=s[0];continue}for(let l=s.length-1;l>=0;--l)i.push(s[l])}if(i.length===0)break;e=i.pop()}}z.forEachToken=P6;function LV(e,t,n=e.getSourceFile()){let i=n.text,s=T.createScanner(n.languageVersion,!1,n.languageVariant,i);return P6(e,l=>{let d=l.kind===T.SyntaxKind.JsxText||l.pos===l.end?l.pos:l.getStart(n);if(d!==l.pos){s.setTextPos(l.pos);let y=s.scan(),p=s.getTokenPos();for(;p{if(d.pos!==d.end&&(d.kind!==T.SyntaxKind.JsxText&&T.forEachLeadingCommentRange(i,d.pos===0?(T.getShebang(i)||"").length:d.pos,l),s||RV(d)))return T.forEachTrailingCommentRange(i,d.end,l)},n);function l(d,y,p){t(i,{pos:d,end:y,kind:p})}}z.forEachComment=JV;function RV(e){switch(e.kind){case T.SyntaxKind.CloseBraceToken:return e.parent.kind!==T.SyntaxKind.JsxExpression||!T6(e.parent.parent);case T.SyntaxKind.GreaterThanToken:switch(e.parent.kind){case T.SyntaxKind.JsxOpeningElement:return e.end!==e.parent.end;case T.SyntaxKind.JsxOpeningFragment:return!1;case T.SyntaxKind.JsxSelfClosingElement:return e.end!==e.parent.end||!T6(e.parent.parent);case T.SyntaxKind.JsxClosingElement:case T.SyntaxKind.JsxClosingFragment:return!T6(e.parent.parent.parent)}}return!0}function T6(e){return e.kind===T.SyntaxKind.JsxElement||e.kind===T.SyntaxKind.JsxFragment}function FV(e){let t=e.getLineStarts(),n=[],i=t.length,s=e.text,l=0;for(let d=1;dl&&T.isLineBreak(s.charCodeAt(p-1));--p);n.push({pos:l,end:y,contentLength:p-l}),l=y}return n.push({pos:l,end:e.end,contentLength:e.end-l}),n}z.getLineRanges=FV;function jV(e){let t=e.getLineStarts();return t.length===1||t[1]<2||e.text[t[1]-2]!=="\r"?` -`:`\r -`}z.getLineBreakStyle=jV;var U_;function N6(e,t){return U_===void 0?U_=T.createScanner(t,!1,void 0,e):(U_.setScriptTarget(t),U_.setText(e)),U_.scan(),U_}function BV(e,t=T.ScriptTarget.Latest){let n=N6(e,t);return n.isIdentifier()&&n.getTextPos()===e.length&&n.getTokenPos()===0}z.isValidIdentifier=BV;function su(e){return e>=65536?2:1}function eE(e,t=T.ScriptTarget.Latest){if(e.length===0)return!1;let n=e.codePointAt(0);if(!T.isIdentifierStart(n,t))return!1;for(let i=su(n);iw===T.SyntaxKind.MultiLineCommentTrivia&&n.text[h+2]==="*"?{pos:h}:void 0);if(s===void 0)return[];let l=s.pos,d=n.text.slice(l,t),y=T.createSourceFile("jsdoc.ts",`${d}var a;`,n.languageVersion),p=O6(y.statements[0],y);for(let h of p)x(h,e);return p;function x(h,D){return h.pos+=l,h.end+=l,h.parent=D,T.forEachChild(h,w=>x(w,h),w=>{w.pos+=l,w.end+=l;for(let g of w)x(g,h)})}}var ZV;(function(e){e[e.ImportDeclaration=1]="ImportDeclaration",e[e.ImportEquals=2]="ImportEquals",e[e.ExportFrom=4]="ExportFrom",e[e.DynamicImport=8]="DynamicImport",e[e.Require=16]="Require",e[e.ImportType=32]="ImportType",e[e.All=63]="All",e[e.AllImports=59]="AllImports",e[e.AllStaticImports=3]="AllStaticImports",e[e.AllImportExpressions=24]="AllImportExpressions",e[e.AllRequireLike=18]="AllRequireLike",e[e.AllNestedImports=56]="AllNestedImports",e[e.AllTopLevelImports=7]="AllTopLevelImports"})(ZV=z.ImportKind||(z.ImportKind={}));function eH(e,t,n=!0){let i=[];for(let l of rE(e,t,n))switch(l.kind){case T.SyntaxKind.ImportDeclaration:s(l.moduleSpecifier);break;case T.SyntaxKind.ImportEqualsDeclaration:s(l.moduleReference.expression);break;case T.SyntaxKind.ExportDeclaration:s(l.moduleSpecifier);break;case T.SyntaxKind.CallExpression:s(l.arguments[0]);break;case T.SyntaxKind.ImportType:Gt.isLiteralTypeNode(l.argument)&&s(l.argument.literal);break;default:throw new Error("unexpected node")}return i;function s(l){Gt.isTextualLiteral(l)&&i.push(l)}}z.findImports=eH;function rE(e,t,n=!0){return new S6(e,t,n).find()}z.findImportLikeNodes=rE;var S6=class{constructor(t,n,i){this._sourceFile=t,this._options=n,this._ignoreFileName=i,this._result=[]}find(){return this._sourceFile.isDeclarationFile&&(this._options&=-25),this._options&7&&this._findImports(this._sourceFile.statements),this._options&56&&this._findNestedImports(),this._result}_findImports(t){for(let n of t)Gt.isImportDeclaration(n)?this._options&1&&this._result.push(n):Gt.isImportEqualsDeclaration(n)?this._options&2&&n.moduleReference.kind===T.SyntaxKind.ExternalModuleReference&&this._result.push(n):Gt.isExportDeclaration(n)?n.moduleSpecifier!==void 0&&this._options&4&&this._result.push(n):Gt.isModuleDeclaration(n)&&this._findImportsInModule(n)}_findImportsInModule(t){if(t.body!==void 0){if(t.body.kind===T.SyntaxKind.ModuleDeclaration)return this._findImportsInModule(t.body);this._findImports(t.body.statements)}}_findNestedImports(){let t=this._ignoreFileName||(this._sourceFile.flags&T.NodeFlags.JavaScriptFile)!==0,n,i;if((this._options&56)===16){if(!t)return;n=/\brequire\s*[1&&this._result.push(l.parent)}}else l.kind===T.SyntaxKind.Identifier&&l.end-7===s.index&&l.parent.kind===T.SyntaxKind.CallExpression&&l.parent.expression===l&&l.parent.arguments.length===1&&this._result.push(l.parent)}}};function tH(e){for(;e.flags&T.NodeFlags.NestedNamespace;)e=e.parent;return z_(e.modifiers,T.SyntaxKind.DeclareKeyword)||iE(e.parent)}z.isStatementInAmbientContext=tH;function iE(e){for(;e.kind===T.SyntaxKind.ModuleBlock;){do e=e.parent;while(e.flags&T.NodeFlags.NestedNamespace);if(z_(e.modifiers,T.SyntaxKind.DeclareKeyword))return!0;e=e.parent}return!1}z.isAmbientModuleBlock=iE;function nH(e){let t=e.parent;for(;t.kind===T.SyntaxKind.ParenthesizedExpression;)t=t.parent;return Gt.isCallExpression(t)&&e.end<=t.expression.end?t:void 0}z.getIIFE=nH;function M6(e,t){return(e.strict?e[t]!==!1:e[t]===!0)&&(t!=="strictPropertyInitialization"||M6(e,"strictNullChecks"))}z.isStrictCompilerOptionEnabled=M6;function Da(e,t){switch(t){case"stripInternal":case"declarationMap":case"emitDeclarationOnly":return e[t]===!0&&Da(e,"declaration");case"declaration":return e.declaration||Da(e,"composite");case"incremental":return e.incremental===void 0?Da(e,"composite"):e.incremental;case"skipDefaultLibCheck":return e.skipDefaultLibCheck||Da(e,"skipLibCheck");case"suppressImplicitAnyIndexErrors":return e.suppressImplicitAnyIndexErrors===!0&&Da(e,"noImplicitAny");case"allowSyntheticDefaultImports":return e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:Da(e,"esModuleInterop")||e.module===T.ModuleKind.System;case"noUncheckedIndexedAccess":return e.noUncheckedIndexedAccess===!0&&Da(e,"strictNullChecks");case"allowJs":return e.allowJs===void 0?Da(e,"checkJs"):e.allowJs;case"noImplicitAny":case"noImplicitThis":case"strictNullChecks":case"strictFunctionTypes":case"strictPropertyInitialization":case"alwaysStrict":case"strictBindCallApply":return M6(e,t)}return e[t]===!0}z.isCompilerOptionEnabled=Da;function rH(e){return e.name.kind===T.SyntaxKind.StringLiteral||(e.flags&T.NodeFlags.GlobalAugmentation)!==0}z.isAmbientModule=rH;function iH(e){return aE(e)}z.getCheckJsDirective=iH;function aE(e){let t;return T.forEachLeadingCommentRange(e,(T.getShebang(e)||"").length,(n,i,s)=>{if(s===T.SyntaxKind.SingleLineCommentTrivia){let l=e.slice(n,i),d=/^\/{2,3}\s*@ts-(no)?check(?:\s|$)/i.exec(l);d!==null&&(t={pos:n,end:i,enabled:d[1]===void 0})}}),t}z.getTsCheckDirective=aE;function oE(e){return Gt.isTypeReferenceNode(e.type)&&e.type.typeName.kind===T.SyntaxKind.Identifier&&e.type.typeName.escapedText==="const"}z.isConstAssertion=oE;function aH(e){let t=e;for(;;){let n=t.parent;e:switch(n.kind){case T.SyntaxKind.TypeAssertionExpression:case T.SyntaxKind.AsExpression:return oE(n);case T.SyntaxKind.PrefixUnaryExpression:if(t.kind!==T.SyntaxKind.NumericLiteral)return!1;switch(n.operator){case T.SyntaxKind.PlusToken:case T.SyntaxKind.MinusToken:t=n;break e;default:return!1}case T.SyntaxKind.PropertyAssignment:if(n.initializer!==t)return!1;t=n.parent;break;case T.SyntaxKind.ShorthandPropertyAssignment:t=n.parent;break;case T.SyntaxKind.ParenthesizedExpression:case T.SyntaxKind.ArrayLiteralExpression:case T.SyntaxKind.ObjectLiteralExpression:case T.SyntaxKind.TemplateExpression:t=n;break;default:return!1}}}z.isInConstContext=aH;function oH(e,t){if(!sE(e))return!1;let n=t.getTypeAtLocation(e.arguments[2]);if(n.getProperty("value")===void 0)return n.getProperty("set")===void 0;let i=n.getProperty("writable");if(i===void 0)return!1;let s=i.valueDeclaration!==void 0&&Gt.isPropertyAssignment(i.valueDeclaration)?t.getTypeAtLocation(i.valueDeclaration.initializer):t.getTypeOfSymbolAtLocation(i,e.arguments[2]);return ms.isBooleanLiteralType(s,!1)}z.isReadonlyAssignmentDeclaration=oH;function sE(e){return e.arguments.length===3&&Gt.isEntityNameExpression(e.arguments[0])&&Gt.isNumericOrStringLikeLiteral(e.arguments[1])&&Gt.isPropertyAccessExpression(e.expression)&&e.expression.name.escapedText==="defineProperty"&&Gt.isIdentifier(e.expression.expression)&&e.expression.expression.escapedText==="Object"}z.isBindableObjectDefinePropertyCall=sE;function L6(e){return T.isPropertyAccessExpression(e)&&T.isIdentifier(e.expression)&&e.expression.escapedText==="Symbol"}z.isWellKnownSymbolLiterally=L6;function J6(e){return{displayName:`[Symbol.${e.name.text}]`,symbolName:"__@"+e.name.text}}z.getPropertyNameOfWellKnownSymbol=J6;var _E=(([e,t])=>e<"4"||e==="4"&&t<"3")(T.versionMajorMinor.split("."));function cE(e,t){let n={known:!0,names:[]};if(e=R6(e),_E&&L6(e))n.names.push(J6(e));else{let i=t.getTypeAtLocation(e);for(let s of ms.unionTypeParts(t.getBaseConstraintOfType(i)||i)){let l=ms.getPropertyNameFromType(s);l?n.names.push(l):n.known=!1}}return n}z.getLateBoundPropertyNames=cE;function sH(e,t){let n=C6(e);return n!==void 0?{known:!0,names:[{displayName:n,symbolName:T.escapeLeadingUnderscores(n)}]}:e.kind===T.SyntaxKind.PrivateIdentifier?{known:!0,names:[{displayName:e.text,symbolName:t.getSymbolAtLocation(e).escapedName}]}:cE(e.expression,t)}z.getLateBoundPropertyNamesOfPropertyName=sH;function _H(e,t){let n=C6(e);if(n!==void 0)return{displayName:n,symbolName:T.escapeLeadingUnderscores(n)};if(e.kind===T.SyntaxKind.PrivateIdentifier)return{displayName:e.text,symbolName:t.getSymbolAtLocation(e).escapedName};let{expression:i}=e;return _E&&L6(i)?J6(i):ms.getPropertyNameFromType(t.getTypeAtLocation(i))}z.getSingleLateBoundPropertyNameOfPropertyName=_H;function R6(e){for(;e.kind===T.SyntaxKind.ParenthesizedExpression;)e=e.expression;return e}z.unwrapParentheses=R6;function lE(e){return`${e.negative?"-":""}${e.base10Value}n`}z.formatPseudoBigInt=lE;function cH(e,t){let n=e.caseBlock.clauses.filter(Gt.isCaseClause);if(n.length===0)return!1;let i=ms.unionTypeParts(t.getTypeAtLocation(e.expression));if(i.length>n.length)return!1;let s=new Set(i.map(Hw));if(s.has(void 0))return!1;let l=new Set;for(let d of n){let y=t.getTypeAtLocation(d.expression);if(z.isTypeFlagSet(y,T.TypeFlags.Never))continue;let p=Hw(y);if(s.has(p))l.add(p);else if(p!=="null"&&p!=="undefined")return!1}return s.size===l.size}z.hasExhaustiveCaseClauses=cH;function Hw(e){if(z.isTypeFlagSet(e,T.TypeFlags.Null))return"null";if(z.isTypeFlagSet(e,T.TypeFlags.Undefined))return"undefined";if(z.isTypeFlagSet(e,T.TypeFlags.NumberLiteral))return`${z.isTypeFlagSet(e,T.TypeFlags.EnumLiteral)?"enum:":""}${e.value}`;if(z.isTypeFlagSet(e,T.TypeFlags.StringLiteral))return`${z.isTypeFlagSet(e,T.TypeFlags.EnumLiteral)?"enum:":""}string:${e.value}`;if(z.isTypeFlagSet(e,T.TypeFlags.BigIntLiteral))return lE(e.value);if(x6.isUniqueESSymbolType(e))return e.escapedName;if(ms.isBooleanLiteralType(e,!0))return"true";if(ms.isBooleanLiteralType(e,!1))return"false"}function uE(e){var t;if(((t=e.heritageClauses)===null||t===void 0?void 0:t[0].token)===T.SyntaxKind.ExtendsKeyword)return e.heritageClauses[0].types[0]}z.getBaseOfClassLikeExpression=uE});var fE=tt(Zi=>{"use strict";var lH=Zi&&Zi.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,s)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),uH=Zi&&Zi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),pH=Zi&&Zi.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&lH(t,e,n);return uH(t,e),t};Object.defineProperty(Zi,"__esModule",{value:!0});Zi.convertComments=void 0;var dH=v6(),pE=pH(Cn()),fH=l1(),dE=_1();function mH(e,t){let n=[];return(0,dH.forEachComment)(e,(i,s)=>{let l=s.kind===pE.SyntaxKind.SingleLineCommentTrivia?dE.AST_TOKEN_TYPES.Line:dE.AST_TOKEN_TYPES.Block,d=[s.pos,s.end],y=(0,fH.getLocFor)(d[0],d[1],e),p=d[0]+2,x=s.kind===pE.SyntaxKind.SingleLineCommentTrivia?d[1]-p:d[1]-p-2;n.push({type:l,value:t.slice(p,p+x),range:d,loc:y})},e),n}Zi.convertComments=mH});var yE=tt(f1=>{"use strict";Object.defineProperty(f1,"__esModule",{value:!0});f1.astConverter=void 0;var mE=r6(),yH=fE(),hH=l1(),gH={};function bH(e,t,n){let{parseDiagnostics:i}=e;if(i.length)throw(0,mE.convertError)(i[0]);let s=new mE.Converter(e,{errorOnUnknownASTType:t.errorOnUnknownASTType||!1,shouldPreserveNodeMaps:n}),l=s.convertProgram();(!t.range||!t.loc)&&(0,gH.simpleTraverse)(l,{enter:y=>{t.range||delete y.range,t.loc||delete y.loc}}),t.tokens&&(l.tokens=(0,hH.convertTokens)(e)),t.comment&&(l.comments=(0,yH.convertComments)(e,t.code));let d=s.getASTMaps();return{estree:l,astMaps:d}}f1.astConverter=bH});var hE=tt(ur=>{"use strict";var vH=ur&&ur.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,s)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),TH=ur&&ur.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),xH=ur&&ur.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&vH(t,e,n);return TH(t,e),t},SH=ur&&ur.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ur,"__esModule",{value:!0});ur.getLanguageVariant=ur.getScriptKind=void 0;var wH=SH({extname:e=>"."+e.split(".").pop()}),Xt=xH(Cn());function EH(e,t){switch(wH.default.extname(e).toLowerCase()){case Xt.Extension.Js:case Xt.Extension.Cjs:case Xt.Extension.Mjs:return Xt.ScriptKind.JS;case Xt.Extension.Jsx:return Xt.ScriptKind.JSX;case Xt.Extension.Ts:case Xt.Extension.Cts:case Xt.Extension.Mts:return Xt.ScriptKind.TS;case Xt.Extension.Tsx:return Xt.ScriptKind.TSX;case Xt.Extension.Json:return Xt.ScriptKind.JSON;default:return t?Xt.ScriptKind.TSX:Xt.ScriptKind.TS}}ur.getScriptKind=EH;function CH(e){switch(e){case Xt.ScriptKind.TSX:case Xt.ScriptKind.JSX:case Xt.ScriptKind.JS:case Xt.ScriptKind.JSON:return Xt.LanguageVariant.JSX;default:return Xt.LanguageVariant.Standard}}ur.getLanguageVariant=CH});var bE=tt(Zr=>{"use strict";var kH=Zr&&Zr.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,s)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),AH=Zr&&Zr.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),DH=Zr&&Zr.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&kH(t,e,n);return AH(t,e),t},PH=Zr&&Zr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zr,"__esModule",{value:!0});Zr.createSourceFile=void 0;var NH=PH((zd(),Er(qd))),gE=DH(Cn()),IH=hE(),OH=(0,NH.default)("typescript-eslint:typescript-estree:createSourceFile");function MH(e){return OH("Getting AST without type information in %s mode for: %s",e.jsx?"TSX":"TS",e.filePath),gE.createSourceFile(e.filePath,e.code,gE.ScriptTarget.Latest,!0,(0,IH.getScriptKind)(e.filePath,e.jsx))}Zr.createSourceFile=MH});var TE=tt(vE=>{vE.ExpiringCache=class{}});var SE=tt(xE=>{xE.resolveProjectList=()=>[]});var EE=tt(wE=>{wE.inferSingleRun=()=>!1});var kE=tt(CE=>{CE.warnAboutTSVersion=()=>{}});var DE=tt(co=>{"use strict";var LH=co&&co.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(co,"__esModule",{value:!0});co.clearTSConfigMatchCache=co.createParseSettings=void 0;var F6=LH((zd(),Er(qd))),JH={ensureAbsolutePath:e=>e},AE=TE(),VG=SE(),RH=EE(),FH=kE(),jH=(0,F6.default)("typescript-eslint:typescript-estree:parser:parseSettings:createParseSettings"),ys;function BH(e,t={}){var n,i,s;let l=(0,RH.inferSingleRun)(t),d=typeof t.tsconfigRootDir=="string"?t.tsconfigRootDir:"/prettier-security-dirname-placeholder",y={code:qH(e),comment:t.comment===!0,comments:[],createDefaultProgram:t.createDefaultProgram===!0,debugLevel:t.debugLevel===!0?new Set(["typescript-eslint"]):Array.isArray(t.debugLevel)?new Set(t.debugLevel):new Set,errorOnTypeScriptSyntacticAndSemanticIssues:!1,errorOnUnknownASTType:t.errorOnUnknownASTType===!0,EXPERIMENTAL_useSourceOfProjectReferenceRedirect:t.EXPERIMENTAL_useSourceOfProjectReferenceRedirect===!0,extraFileExtensions:Array.isArray(t.extraFileExtensions)&&t.extraFileExtensions.every(p=>typeof p=="string")?t.extraFileExtensions:[],filePath:(0,JH.ensureAbsolutePath)(typeof t.filePath=="string"&&t.filePath!==""?t.filePath:zH(t.jsx),d),jsx:t.jsx===!0,loc:t.loc===!0,log:typeof t.loggerFn=="function"?t.loggerFn:t.loggerFn===!1?()=>{}:console.log,moduleResolver:(n=t.moduleResolver)!==null&&n!==void 0?n:"",preserveNodeMaps:t.preserveNodeMaps!==!1,programs:Array.isArray(t.programs)?t.programs:null,projects:[],range:t.range===!0,singleRun:l,tokens:t.tokens===!0?[]:null,tsconfigMatchCache:ys??(ys=new AE.ExpiringCache(l?"Infinity":(s=(i=t.cacheLifetime)===null||i===void 0?void 0:i.glob)!==null&&s!==void 0?s:AE.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS)),tsconfigRootDir:d};if(y.debugLevel.size>0){let p=[];y.debugLevel.has("typescript-eslint")&&p.push("typescript-eslint:*"),(y.debugLevel.has("eslint")||F6.default.enabled("eslint:*,-eslint:code-path"))&&p.push("eslint:*,-eslint:code-path"),F6.default.enable(p.join(","))}if(Array.isArray(t.programs)){if(!t.programs.length)throw new Error("You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.");jH("parserOptions.programs was provided, so parserOptions.project will be ignored.")}return y.programs||(y.projects=[]),(0,FH.warnAboutTSVersion)(y),y}co.createParseSettings=BH;function UH(){ys==null||ys.clear()}co.clearTSConfigMatchCache=UH;function qH(e){return typeof e!="string"?String(e):e}function zH(e){return e?"estree.tsx":"estree.ts"}});var OE=tt(m1=>{"use strict";Object.defineProperty(m1,"__esModule",{value:!0});m1.getFirstSemanticOrSyntacticError=void 0;var PE=Cn();function WH(e,t){try{let n=NE(e.getSyntacticDiagnostics(t));if(n.length)return IE(n[0]);let i=NE(e.getSemanticDiagnostics(t));return i.length?IE(i[0]):void 0}catch(n){console.warn(`Warning From TSC: "${n.message}`);return}}m1.getFirstSemanticOrSyntacticError=WH;function NE(e){return e.filter(t=>{switch(t.code){case 1013:case 1014:case 1044:case 1045:case 1048:case 1049:case 1070:case 1071:case 1085:case 1090:case 1096:case 1097:case 1098:case 1099:case 1117:case 1121:case 1123:case 1141:case 1162:case 1164:case 1172:case 1173:case 1175:case 1176:case 1190:case 1196:case 1200:case 1206:case 1211:case 1242:case 1246:case 1255:case 1308:case 2364:case 2369:case 2452:case 2462:case 8017:case 17012:case 17013:return!0}return!1})}function IE(e){return Object.assign(Object.assign({},e),{message:(0,PE.flattenDiagnosticMessageText)(e.messageText,PE.sys.newLine)})}});var jE=tt(pr=>{"use strict";var VH=pr&&pr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pr,"__esModule",{value:!0});pr.clearParseAndGenerateServicesCalls=pr.clearProgramCache=pr.parseWithNodeMaps=pr.parseAndGenerateServices=pr.parse=void 0;var HH=VH((zd(),Er(qd))),ME=yE(),KH=r6(),GH={},LE={},XH={},$H=bE(),JE={},RE=DE(),QH=OE(),YH=(0,HH.default)("typescript-eslint:typescript-estree:parser"),j6=new Map;function ZH(){j6.clear()}pr.clearProgramCache=ZH;function eK(e,t){return e.programs&&(0,JE.useProvidedPrograms)(e.programs,e)||t&&(0,XH.createProjectProgram)(e)||t&&e.createDefaultProgram&&(0,GH.createDefaultProgram)(e)||(0,LE.createIsolatedProgram)(e)}function tK(e,t){let{ast:n}=FE(e,t,!1);return n}pr.parse=tK;function FE(e,t,n){let i=(0,RE.createParseSettings)(e,t);if(t!=null&&t.errorOnTypeScriptSyntacticAndSemanticIssues)throw new Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');let s=(0,$H.createSourceFile)(i),{estree:l,astMaps:d}=(0,ME.astConverter)(s,i,n);return{ast:l,esTreeNodeToTSNodeMap:d.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:d.tsNodeToESTreeNodeMap}}function nK(e,t){return FE(e,t,!0)}pr.parseWithNodeMaps=nK;var y1={};function rK(){y1={}}pr.clearParseAndGenerateServicesCalls=rK;function iK(e,t){var n,i;let s=(0,RE.createParseSettings)(e,t);t!==void 0&&typeof t.errorOnTypeScriptSyntacticAndSemanticIssues=="boolean"&&t.errorOnTypeScriptSyntacticAndSemanticIssues&&(s.errorOnTypeScriptSyntacticAndSemanticIssues=!0),s.singleRun&&!s.programs&&((n=s.projects)===null||n===void 0?void 0:n.length)>0&&(s.programs={*[Symbol.iterator](){for(let D of s.projects){let w=j6.get(D);if(w)yield w;else{YH("Detected single-run/CLI usage, creating Program once ahead of time for project: %s",D);let g=(0,JE.createProgramFromConfigFile)(D);j6.set(D,g),yield g}}}});let l=s.programs!=null||((i=s.projects)===null||i===void 0?void 0:i.length)>0;s.singleRun&&t.filePath&&(y1[t.filePath]=(y1[t.filePath]||0)+1);let{ast:d,program:y}=s.singleRun&&t.filePath&&y1[t.filePath]>1?(0,LE.createIsolatedProgram)(s):eK(s,l),p=typeof s.preserveNodeMaps=="boolean"?s.preserveNodeMaps:!0,{estree:x,astMaps:h}=(0,ME.astConverter)(d,s,p);if(y&&s.errorOnTypeScriptSyntacticAndSemanticIssues){let D=(0,QH.getFirstSemanticOrSyntacticError)(y,d);if(D)throw(0,KH.convertError)(D)}return{ast:x,services:{hasFullTypeInformation:l,program:y,esTreeNodeToTSNodeMap:h.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:h.tsNodeToESTreeNodeMap}}}pr.parseAndGenerateServices=iK});var KE=tt(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.extract=pK;hs.parse=fK;hs.parseWithComments=HE;hs.print=mK;hs.strip=dK;var sK=/\*\/$/,_K=/^\/\*\*?/,WE=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,cK=/(^|\s+)\/\/([^\r\n]*)/g,UE=/^(\r?\n)+/,lK=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,qE=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,uK=/(\r?\n|^) *\* ?/g,VE=[];function pK(e){let t=e.match(WE);return t?t[0].trimLeft():""}function dK(e){let t=e.match(WE);return t&&t[0]?e.substring(t[0].length):e}function fK(e){return HE(e).pragmas}function HE(e){let t=` -`;e=e.replace(_K,"").replace(sK,"").replace(uK,"$1");let n="";for(;n!==e;)n=e,e=e.replace(lK,`${t}$1 $2${t}`);e=e.replace(UE,"").trimRight();let i=Object.create(null),s=e.replace(qE,"").replace(UE,"").trimRight(),l;for(;l=qE.exec(e);){let d=l[2].replace(cK,"");typeof i[l[1]]=="string"||Array.isArray(i[l[1]])?i[l[1]]=VE.concat(i[l[1]],d):i[l[1]]=d}return{comments:s,pragmas:i}}function mK({comments:e="",pragmas:t={}}){let n=` -`,i="/**",s=" *",l=" */",d=Object.keys(t),y=d.map(x=>zE(x,t[x])).reduce((x,h)=>x.concat(h),[]).map(x=>`${s} ${x}${n}`).join("");if(!e){if(d.length===0)return"";if(d.length===1&&!Array.isArray(t[d[0]])){let x=t[d[0]];return`${i} ${zE(d[0],x)[0]}${l}`}}let p=e.split(n).map(x=>`${s} ${x}`).join(n)+n;return i+n+(e?p:"")+(e&&d.length?s+n:"")+y+l}function zE(e,t){return VE.concat(t).map(n=>`@${e} ${n}`.trim())}});var WK={};Ud(WK,{parsers:()=>g1});var g1={};Ud(g1,{typescript:()=>zK});var oC=Xy(jE(),1);function aK(e,t){let n=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(n,t)}var h1=aK;function oK(e){let t=[];for(let n of e)try{return n()}catch(i){t.push(i)}throw Object.assign(new Error("All combinations failed"),{errors:t})}var BE=oK;var W_=Xy(KE(),1);function yK(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` -`);return t===-1?e:e.slice(0,t)}var GE=yK;function hK(e){let t=GE(e);t&&(e=e.slice(t.length+1));let n=(0,W_.extract)(e),{pragmas:i,comments:s}=(0,W_.parseWithComments)(n);return{shebang:t,text:e,pragmas:i,comments:s}}function XE(e){let{pragmas:t}=hK(e);return Object.prototype.hasOwnProperty.call(t,"prettier")||Object.prototype.hasOwnProperty.call(t,"format")}function gK(e){return Array.isArray(e)&&e.length>0}var gs=gK;function Or(e){var i;let t=e.range?e.range[0]:e.start,n=((i=e.declaration)==null?void 0:i.decorators)??e.decorators;return gs(n)?Math.min(Or(n[0]),t):t}function ea(e){return e.range?e.range[1]:e.end}function bK(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:XE,locStart:Or,locEnd:ea,...e}}var $E=bK;function vK(e){return e.charAt(0)==="#"&&e.charAt(1)==="!"?"//"+e.slice(2):e}var QE=vK;var TK=(e,t,n)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[n<0?t.length+n:n]:t.at(n)},B6=TK;function xK(e){return e=new Set(e),t=>e.has(t==null?void 0:t.type)}var YE=xK;var SK=YE(["Block","CommentBlock","MultiLine"]),cu=SK;function wK(e){return cu(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/.test(e.value)}var ZE=wK;function EK(e){let t=`*${e.value}*`.split(` -`);return t.length>1&&t.every(n=>n.trimStart()[0]==="*")}var U6=EK;var lu=null;function uu(e){if(lu!==null&&typeof lu.property){let t=lu;return lu=uu.prototype=null,t}return lu=uu.prototype=e??Object.create(null),new uu}var CK=10;for(let e=0;e<=CK;e++)uu();function q6(e){return uu(e)}function kK(e,t="type"){q6(e);function n(i){let s=i[t],l=e[s];if(!Array.isArray(l))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:i});return l}return n}var eC=kK;var tC={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ExportAllDeclaration:["source","attributes","assertions","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes","assertions"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes","assertions"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","parameter"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ImportExpression:["source","attributes"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareEnum:["id","body"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]};var AK=eC(tC),nC=AK;function z6(e,t){if(!(e!==null&&typeof e=="object"))return e;if(Array.isArray(e)){for(let i=0;i{var y;(y=d.leadingComments)!=null&&y.some(ZE)&&l.add(Or(d))}),e=V_(e,d=>{if(d.type==="ParenthesizedExpression"){let{expression:y}=d;if(y.type==="TypeCastExpression")return y.range=d.range,y;let p=Or(d);if(!l.has(p))return y.extra={...y.extra,parenthesized:!0},y}})}if(e=V_(e,l=>{switch(l.type){case"LogicalExpression":if(rC(l))return W6(l);break;case"VariableDeclaration":{let d=B6(!1,l.declarations,-1);d!=null&&d.init&&s(l,d);break}case"TSParenthesizedType":return l.typeAnnotation;case"TSTypeParameter":if(typeof l.name=="string"){let d=Or(l);l.name={type:"Identifier",name:l.name,range:[d,d+l.name.length]}}break;case"ObjectExpression":if(n==="typescript"){let d=l.properties.find(y=>y.type==="Property"&&y.value.type==="TSEmptyBodyFunctionExpression");d&&bs(d.value,"Unexpected token.")}break;case"TSInterfaceDeclaration":gs(l.implements)&&bs(l.implements[0],"Interface declaration cannot have 'implements' clause.");break;case"TSPropertySignature":l.initializer&&bs(l.initializer,"An interface property cannot have an initializer.");break;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":{let{exported:d}=l;if(n==="meriyah"&&(d==null?void 0:d.type)==="Identifier"){let y=i.slice(Or(d),ea(d));(y.startsWith('"')||y.startsWith("'"))&&(l.exported={...l.exported,type:"Literal",value:l.exported.name,raw:y})}break}case"TSUnionType":case"TSIntersectionType":if(l.types.length===1)return l.types[0];break}}),gs(e.comments)){let l=B6(!1,e.comments,-1);for(let d=e.comments.length-2;d>=0;d--){let y=e.comments[d];ea(y)===Or(l)&&cu(y)&&cu(l)&&U6(y)&&U6(l)&&(e.comments.splice(d+1,1),y.value+="*//*"+l.value,y.range=[Or(y),ea(l)]),l=y}}return e.type==="Program"&&(e.range=[0,i.length]),e;function s(l,d){i[ea(d)]!==";"&&(l.range=[Or(l),ea(d)])}}function rC(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function W6(e){return rC(e)?W6({type:"LogicalExpression",operator:e.operator,left:W6({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[Or(e.left),ea(e.right.left)]}),right:e.right.right,range:[Or(e),ea(e)]}):e}var iC=PK;var Dt=Xy(Cn(),1);function NK(e){let t=Dt.default.getSourceFileOfNode(e),n=Dt.default.rangeOfNode(e),[i,s]=[n.pos,n.end].map(l=>{let{line:d,character:y}=t.getLineAndCharacterOfPosition(l);return{line:d+1,column:y}});return{start:i,end:s}}function dr(e,t){bs({loc:NK(e)},t)}function IK(e,t){var n;e.kind===Dt.default.SyntaxKind.PropertyDeclaration&&e.initializer&&t.value===null&&((n=e.modifiers)!=null&&n.some(i=>i.kind===Dt.default.SyntaxKind.AbstractKeyword))&&bs(t,"Abstract property cannot have an initializer")}function OK(e){return[!0,!1].some(t=>Dt.default.nodeCanBeDecorated(t,e,e.parent,e.parent.parent))}function MK(e){let{modifiers:t}=e;if(!gs(t))return;let{SyntaxKind:n}=Dt.default;for(let i of t)if(Dt.default.isDecorator(i)&&!OK(e)&&(e.kind===n.MethodDeclaration&&!Dt.default.nodeIsPresent(e.body)&&dr(i,"A decorator can only decorate a method implementation, not an overload."),dr(i,"Decorators are not valid here.")),i.kind!==n.ReadonlyKeyword&&((e.kind===n.PropertySignature||e.kind===n.MethodSignature)&&dr(i,`'${Dt.default.tokenToString(i.kind)}' modifier cannot appear on a type member`),e.kind===n.IndexSignature&&(i.kind!==n.StaticKeyword||!Dt.default.isClassLike(e.parent))&&dr(i,`'${Dt.default.tokenToString(i.kind)}' modifier cannot appear on an index signature`)),i.kind!==n.InKeyword&&i.kind!==n.OutKeyword&&i.kind!==n.ConstKeyword&&e.kind===n.TypeParameter&&dr(i,`'${Dt.default.tokenToString(i.kind)}' modifier cannot appear on a type parameter`),(i.kind===n.InKeyword||i.kind===n.OutKeyword)&&(e.kind!==n.TypeParameter||!(Dt.default.isInterfaceDeclaration(e.parent)||Dt.default.isClassLike(e.parent)||Dt.default.isTypeAliasDeclaration(e.parent)))&&dr(i,`'${Dt.default.tokenToString(i.kind)}' modifier can only appear on a type parameter of a class, interface or type alias`),i.kind===n.ReadonlyKeyword&&e.kind!==n.PropertyDeclaration&&e.kind!==n.PropertySignature&&e.kind!==n.IndexSignature&&e.kind!==n.Parameter&&dr(i,"'readonly' modifier can only appear on a property declaration or index signature."),i.kind===n.DeclareKeyword&&Dt.default.isClassLike(e.parent)&&!Dt.default.isPropertyDeclaration(e)&&dr(i,`'${Dt.default.tokenToString(i.kind)}' modifier cannot appear on class elements of this kind.`),i.kind===n.AbstractKeyword&&e.kind!==n.ClassDeclaration&&e.kind!==n.ConstructorType&&e.kind!==n.MethodDeclaration&&e.kind!==n.PropertyDeclaration&&e.kind!==n.GetAccessor&&e.kind!==n.SetAccessor&&dr(i,`'${Dt.default.tokenToString(i.kind)}' modifier can only appear on a class, method, or property declaration.`),(i.kind===n.StaticKeyword||i.kind===n.PublicKeyword||i.kind===n.ProtectedKeyword||i.kind===n.PrivateKeyword)&&(e.parent.kind===n.ModuleBlock||e.parent.kind===n.SourceFile)&&dr(i,`'${Dt.default.tokenToString(i.kind)}' modifier cannot appear on a module or namespace element.`),i.kind===n.AccessorKeyword&&e.kind!==n.PropertyDeclaration&&dr(i,"'accessor' modifier can only appear on a property declaration."),i.kind===n.AsyncKeyword&&e.kind!==n.MethodDeclaration&&e.kind!==n.FunctionDeclaration&&e.kind!==n.FunctionExpression&&e.kind!==n.ArrowFunction&&dr(i,"'async' modifier cannot be used here."),e.kind===n.Parameter&&(i.kind===n.StaticKeyword||i.kind===n.ExportKeyword||i.kind===n.DeclareKeyword||i.kind===n.AsyncKeyword)&&dr(i,`'${Dt.default.tokenToString(i.kind)}' modifier cannot appear on a parameter.`),e.kind===n.Parameter&&Dt.default.hasSyntacticModifier(e,Dt.default.ModifierFlags.ParameterPropertyModifier)){let s=Dt.default.getContainingFunction(e);s.kind===n.Constructor&&Dt.default.nodeIsPresent(s.body)||dr(i,"A parameter property is only allowed in a constructor implementation.")}}function LK(e,t){let{esTreeNodeToTSNodeMap:n,tsNodeToESTreeNodeMap:i}=t,s=n.get(e);if(!(!s||i.get(s)!==e))return s}var JK=["abstract","accessor","async","const","declare","default","export","in","out","override","private","protected","public","readonly","static"],RK=new RegExp(["@",...JK].join("|"));function aC(e,t){RK.test(t)&&V_(e.ast,n=>{let i=LK(n,e);i&&(IK(i,n),MK(i))})}var V6={loc:!0,range:!0,comment:!0,tokens:!0,loggerFn:!1,project:[]};function FK(e){let{message:t,lineNumber:n,column:i}=e;return typeof n!="number"?e:h1(t,{loc:{start:{line:n,column:i+1}},cause:e})}var jK=e=>/\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/i.test(e);function BK(e,t){let n=t==null?void 0:t.filepath;if(n&&jK(n))return[{...V6,filePath:n}];let i=qK(e);return[{...V6,jsx:i},{...V6,jsx:!i}]}function UK(e,t){let n=QE(e),i=BK(e,t),s;try{s=BE(i.map(l=>()=>(0,oC.parseWithNodeMaps)(n,l)))}catch({errors:[l]}){throw FK(l)}return aC(s,e),iC(s.ast,{parser:"typescript",text:e})}function qK(e){return new RegExp(["(?:^[^\"'`]*)"].join(""),"m").test(e)}var zK=$E(UK);return Er(WK);}); \ No newline at end of file +`;function fe(be,he){$[be]+=he}}function Lr(x){switch(x){case 3:return"\u2502";case 12:return"\u2500";case 5:return"\u256F";case 9:return"\u2570";case 6:return"\u256E";case 10:return"\u256D";case 7:return"\u2524";case 11:return"\u251C";case 13:return"\u2534";case 14:return"\u252C";case 15:return"\u256B"}return" "}function j(x,f){if(x.fill)x.fill(f);else for(let $=0;$0?x.repeat(f):"";let $="";for(;$.length{},dE=()=>{},mE=()=>{},Sa=Date.now,hE=()=>{},Kf=new Proxy(()=>{},{get:()=>Kf});function Mb(e){if(fg){let t=_y.get(e)??0;_y.set(e,t+1),ed.set(e,Sa()),Zf==null||Zf.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function yE(e,t,r){if(fg){let a=(r!==void 0?ed.get(r):void 0)??Sa(),_=(t!==void 0?ed.get(t):void 0)??Hv,p=cy.get(e)||0;cy.set(e,p+(a-_)),Zf==null||Zf.measure(e,t,r)}}var Zf,gE,fg,Hv,ed,_y,cy,XV=Vt({"src/compiler/performance.ts"(){"use strict";Dr(),gE={enter:Rn,exit:Rn},fg=!1,Hv=Sa(),ed=new Map,_y=new Map,cy=new Map}}),Gv=()=>{},bE=()=>{},xa;function vE(e,t=!0){let r=ld[e.category];return t?r.toLowerCase():r}var td,rd,nd,ly,id,uy,py,bl,fy,ad,dy,my,hy,yy,gy,by,vy,Ty,Sy,xy,wy,Cy,Ey,Ay,ky,od,Dy,Py,Iy,Ny,sd,_d,Oy,My,Ly,Jy,Ry,jy,cd,Fy,By,Uy,qy,zy,Wy,ld,Vy,Hy,Gy,Xy,$y,Qy,Yy,Ky,Zy,ud,e0,t0,r0,n0,i0,pd,fd,dd,a0,o0,s0,_0,c0,l0,u0,p0,zd,Xv=Vt({"src/compiler/types.ts"(){"use strict";td=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.UnparsedPrologue=307]="UnparsedPrologue",e[e.UnparsedPrepend=308]="UnparsedPrepend",e[e.UnparsedText=309]="UnparsedText",e[e.UnparsedInternalText=310]="UnparsedInternalText",e[e.UnparsedSyntheticReference=311]="UnparsedSyntheticReference",e[e.SourceFile=312]="SourceFile",e[e.Bundle=313]="Bundle",e[e.UnparsedSource=314]="UnparsedSource",e[e.InputFiles=315]="InputFiles",e[e.JSDocTypeExpression=316]="JSDocTypeExpression",e[e.JSDocNameReference=317]="JSDocNameReference",e[e.JSDocMemberName=318]="JSDocMemberName",e[e.JSDocAllType=319]="JSDocAllType",e[e.JSDocUnknownType=320]="JSDocUnknownType",e[e.JSDocNullableType=321]="JSDocNullableType",e[e.JSDocNonNullableType=322]="JSDocNonNullableType",e[e.JSDocOptionalType=323]="JSDocOptionalType",e[e.JSDocFunctionType=324]="JSDocFunctionType",e[e.JSDocVariadicType=325]="JSDocVariadicType",e[e.JSDocNamepathType=326]="JSDocNamepathType",e[e.JSDoc=327]="JSDoc",e[e.JSDocComment=327]="JSDocComment",e[e.JSDocText=328]="JSDocText",e[e.JSDocTypeLiteral=329]="JSDocTypeLiteral",e[e.JSDocSignature=330]="JSDocSignature",e[e.JSDocLink=331]="JSDocLink",e[e.JSDocLinkCode=332]="JSDocLinkCode",e[e.JSDocLinkPlain=333]="JSDocLinkPlain",e[e.JSDocTag=334]="JSDocTag",e[e.JSDocAugmentsTag=335]="JSDocAugmentsTag",e[e.JSDocImplementsTag=336]="JSDocImplementsTag",e[e.JSDocAuthorTag=337]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=338]="JSDocDeprecatedTag",e[e.JSDocClassTag=339]="JSDocClassTag",e[e.JSDocPublicTag=340]="JSDocPublicTag",e[e.JSDocPrivateTag=341]="JSDocPrivateTag",e[e.JSDocProtectedTag=342]="JSDocProtectedTag",e[e.JSDocReadonlyTag=343]="JSDocReadonlyTag",e[e.JSDocOverrideTag=344]="JSDocOverrideTag",e[e.JSDocCallbackTag=345]="JSDocCallbackTag",e[e.JSDocOverloadTag=346]="JSDocOverloadTag",e[e.JSDocEnumTag=347]="JSDocEnumTag",e[e.JSDocParameterTag=348]="JSDocParameterTag",e[e.JSDocReturnTag=349]="JSDocReturnTag",e[e.JSDocThisTag=350]="JSDocThisTag",e[e.JSDocTypeTag=351]="JSDocTypeTag",e[e.JSDocTemplateTag=352]="JSDocTemplateTag",e[e.JSDocTypedefTag=353]="JSDocTypedefTag",e[e.JSDocSeeTag=354]="JSDocSeeTag",e[e.JSDocPropertyTag=355]="JSDocPropertyTag",e[e.JSDocThrowsTag=356]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=357]="JSDocSatisfiesTag",e[e.SyntaxList=358]="SyntaxList",e[e.NotEmittedStatement=359]="NotEmittedStatement",e[e.PartiallyEmittedExpression=360]="PartiallyEmittedExpression",e[e.CommaListExpression=361]="CommaListExpression",e[e.SyntheticReferenceExpression=362]="SyntheticReferenceExpression",e[e.Count=363]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=316]="FirstJSDocNode",e[e.LastJSDocNode=357]="LastJSDocNode",e[e.FirstJSDocTagNode=334]="FirstJSDocTagNode",e[e.LastJSDocTagNode=357]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(td||{}),rd=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(rd||{}),nd=(e=>(e[e.None=0]="None",e[e.Export=1]="Export",e[e.Ambient=2]="Ambient",e[e.Public=4]="Public",e[e.Private=8]="Private",e[e.Protected=16]="Protected",e[e.Static=32]="Static",e[e.Readonly=64]="Readonly",e[e.Accessor=128]="Accessor",e[e.Abstract=256]="Abstract",e[e.Async=512]="Async",e[e.Default=1024]="Default",e[e.Const=2048]="Const",e[e.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",e[e.Deprecated=8192]="Deprecated",e[e.Override=16384]="Override",e[e.In=32768]="In",e[e.Out=65536]="Out",e[e.Decorator=131072]="Decorator",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=28]="AccessibilityModifier",e[e.ParameterPropertyModifier=16476]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=117086]="TypeScriptModifier",e[e.ExportDefault=1025]="ExportDefault",e[e.All=258047]="All",e[e.Modifier=126975]="Modifier",e))(nd||{}),ly=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(ly||{}),id=(e=>(e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e))(id||{}),uy=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(uy||{}),py=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(py||{}),bl=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(bl||{}),fy=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(fy||{}),ad=class{},dy=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(dy||{}),my=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(my||{}),hy=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(hy||{}),yy=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(yy||{}),gy=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(gy||{}),by=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(by||{}),vy=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(vy||{}),Ty=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(Ty||{}),Sy=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.WriteComputedProps=1073741824]="WriteComputedProps",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(Sy||{}),xy=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330091]="NodeBuilderFlagsMask",e))(xy||{}),wy=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(wy||{}),Cy=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(Cy||{}),Ey=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(Ey||{}),Ay=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(Ay||{}),ky=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(ky||{}),od=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=67108863]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(od||{}),Dy=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(Dy||{}),Py=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(Py||{}),Iy=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e))(Iy||{}),Ny=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e))(Ny||{}),sd=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=138117121]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(sd||{}),_d=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e))(_d||{}),Oy=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))(Oy||{}),My=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(My||{}),Ly=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(Ly||{}),Jy=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(Jy||{}),Ry=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(Ry||{}),jy=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(jy||{}),cd=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(cd||{}),Fy=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(Fy||{}),By=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(By||{}),Uy=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(Uy||{}),qy=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(qy||{}),zy=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(zy||{}),Wy=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(Wy||{}),ld=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(ld||{}),Vy=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(Vy||{}),Hy=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(Hy||{}),Gy=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))(Gy||{}),Xy=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(Xy||{}),$y=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))($y||{}),Qy=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.NodeNext=199]="NodeNext",e))(Qy||{}),Yy=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(Yy||{}),Ky=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(Ky||{}),Zy=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(Zy||{}),ud=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(ud||{}),e0=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(e0||{}),t0=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(t0||{}),r0=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(r0||{}),n0=(e=>(e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e.replacementCharacter=65533]="replacementCharacter",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(n0||{}),i0=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(i0||{}),pd=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(pd||{}),fd=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(fd||{}),dd=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(dd||{}),a0=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(a0||{}),o0=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.CreateBinding=4194304]="CreateBinding",e[e.SetFunctionName=8388608]="SetFunctionName",e[e.PropKey=16777216]="PropKey",e[e.AddDisposableResourceAndDisposeResources=33554432]="AddDisposableResourceAndDisposeResources",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=33554432]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(o0||{}),s0=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e))(s0||{}),_0=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All",e[e.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",e))(_0||{}),c0=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(c0||{}),l0=(e=>(e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.TypeResolutionModeRequire="type-require",e.TypeResolutionModeImport="type-import",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal",e))(l0||{}),u0=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(u0||{}),p0=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(p0||{}),zd={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}}}}),TE=()=>{},f0;function dg(e){return e===47||e===92}function SE(e){return Jl(e)<0}function v_(e){return Jl(e)>0}function xE(e){let t=Jl(e);return t>0&&t===e.length}function mg(e){return Jl(e)!==0}function rs(e){return/^\.\.?($|[\\/])/.test(e)}function wE(e){return!mg(e)&&!rs(e)}function $v(e){return eo(T_(e),".")}function La(e,t){return e.length>t.length&&ts(e,t)}function ei(e,t){for(let r of t)if(La(e,r))return!0;return!1}function Wd(e){return e.length>0&&dg(e.charCodeAt(e.length-1))}function Lb(e){return e>=97&&e<=122||e>=65&&e<=90}function CE(e,t){let r=e.charCodeAt(t);if(r===58)return t+1;if(r===37&&e.charCodeAt(t+1)===51){let a=e.charCodeAt(t+2);if(a===97||a===65)return t+3}return-1}function Jl(e){if(!e)return 0;let t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;let a=e.indexOf(t===47?fn:vg,2);return a<0?e.length:a+1}if(Lb(t)&&e.charCodeAt(1)===58){let a=e.charCodeAt(2);if(a===47||a===92)return 3;if(e.length===2)return 2}let r=e.indexOf(m0);if(r!==-1){let a=r+m0.length,_=e.indexOf(fn,a);if(_!==-1){let p=e.slice(0,r),d=e.slice(a,_);if(p==="file"&&(d===""||d==="localhost")&&Lb(e.charCodeAt(_+1))){let h=CE(e,_+2);if(h!==-1){if(e.charCodeAt(h)===47)return~(h+1);if(h===e.length)return~h}}return~(_+1)}return~e.length}return 0}function Ei(e){let t=Jl(e);return t<0?~t:t}function $i(e){e=qo(e);let t=Ei(e);return t===e.length?e:(e=S_(e),e.slice(0,Math.max(t,e.lastIndexOf(fn))))}function T_(e,t,r){if(e=qo(e),Ei(e)===e.length)return"";e=S_(e);let _=e.slice(Math.max(Ei(e),e.lastIndexOf(fn)+1)),p=t!==void 0&&r!==void 0?md(_,t,r):void 0;return p?_.slice(0,_.length-p.length):_}function Jb(e,t,r){if(Fr(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){let a=e.slice(e.length-t.length);if(r(a,t))return a}}function EE(e,t,r){if(typeof t=="string")return Jb(e,t,r)||"";for(let a of t){let _=Jb(e,a,r);if(_)return _}return""}function md(e,t,r){if(t)return EE(S_(e),t,r?s_:Ll);let a=T_(e),_=a.lastIndexOf(".");return _>=0?a.substring(_):""}function AE(e,t){let r=e.substring(0,t),a=e.substring(t).split(fn);return a.length&&!wi(a)&&a.pop(),[r,...a]}function Ai(e,t=""){return e=hr(t,e),AE(e,Ei(e))}function Uo(e,t){return e.length===0?"":(e[0]&&zo(e[0]))+e.slice(1,t).join(fn)}function qo(e){return e.indexOf("\\")!==-1?e.replace(e4,fn):e}function Da(e){if(!mt(e))return[];let t=[e[0]];for(let r=1;r1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(a)}}return t}function hr(e,...t){e&&(e=qo(e));for(let r of t)r&&(r=qo(r),!e||Ei(r)!==0?e=r:e=zo(e)+r);return e}function d0(e,...t){return pn(mt(t)?hr(e,...t):qo(e))}function Vd(e,t){return Da(Ai(e,t))}function Pa(e,t){return Uo(Vd(e,t))}function pn(e){if(e=qo(e),!vl.test(e))return e;let t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!vl.test(e)))return e;let r=Uo(Da(Ai(e)));return r&&Wd(e)?zo(r):r}function kE(e){return e.length===0?"":e.slice(1).join(fn)}function DE(e,t){return kE(Vd(e,t))}function xi(e,t,r){let a=v_(e)?pn(e):Pa(e,t);return r(a)}function S_(e){return Wd(e)?e.substr(0,e.length-1):e}function zo(e){return Wd(e)?e:e+fn}function hg(e){return!mg(e)&&!rs(e)?"./"+e:e}function Qv(e,t,r,a){let _=r!==void 0&&a!==void 0?md(e,r,a):md(e);return _?e.slice(0,e.length-_.length)+(Fr(t,".")?t:"."+t):e}function yg(e,t,r){if(e===t)return 0;if(e===void 0)return-1;if(t===void 0)return 1;let a=e.substring(0,Ei(e)),_=t.substring(0,Ei(t)),p=Bd(a,_);if(p!==0)return p;let d=e.substring(a.length),h=t.substring(_.length);if(!vl.test(d)&&!vl.test(h))return r(d,h);let l=Da(Ai(e)),v=Da(Ai(t)),y=Math.min(l.length,v.length);for(let C=1;C0==Ei(t)>0,"Paths must either both be absolute or both be relative");let p=gg(e,t,(typeof r=="boolean"?r:!1)?s_:Ll,typeof r=="function"?r:bt);return Uo(p)}function ME(e,t,r){return v_(e)?bg(t,e,t,r,!1):e}function LE(e,t,r){return hg(Kv($i(e),t,r))}function bg(e,t,r,a,_){let p=gg(d0(r,e),d0(r,t),Ll,a),d=p[0];if(_&&v_(d)){let h=d.charAt(0)===fn?"file://":"file:///";p[0]=h+d}return Uo(p)}function Zv(e,t){for(;;){let r=t(e);if(r!==void 0)return r;let a=$i(e);if(a===e)return;e=a}}function JE(e){return ts(e,"/node_modules")}var fn,vg,m0,e4,vl,t4=Vt({"src/compiler/path.ts"(){"use strict";Dr(),fn="/",vg="\\",m0="://",e4=/\\/g,vl=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function i(e,t,r,a,_,p,d){return{code:e,category:t,key:r,message:a,reportsUnnecessary:_,elidedInCompatabilityPyramid:p,reportsDeprecated:d}}var U,RE=Vt({"src/compiler/diagnosticInformationMap.generated.ts"(){"use strict";Xv(),U={Unterminated_string_literal:i(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:i(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:i(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:i(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:i(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:i(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:i(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:i(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:i(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:i(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:i(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:i(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:i(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:i(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:i(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:i(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:i(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:i(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:i(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:i(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:i(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:i(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:i(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:i(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:i(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:i(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:i(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:i(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:i(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:i(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:i(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:i(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:i(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:i(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:i(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:i(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:i(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:i(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:i(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:i(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:i(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:i(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:i(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:i(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:i(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:i(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:i(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:i(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:i(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:i(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:i(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:i(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:i(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:i(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:i(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:i(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:i(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:i(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:i(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:i(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:i(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:i(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:i(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:i(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:i(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:i(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:i(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:i(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:i(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:i(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:i(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:i(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:i(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:i(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:i(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:i(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:i(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:i(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:i(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:i(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:i(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:i(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:i(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:i(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:i(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:i(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:i(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:i(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:i(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:i(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:i(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:i(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:i(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:i(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:i(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:i(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:i(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:i(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:i(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:i(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:i(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:i(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:i(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:i(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:i(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:i(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:i(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:i(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:i(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:i(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:i(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:i(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:i(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:i(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:i(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:i(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:i(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:i(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:i(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:i(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:i(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:i(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:i(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:i(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:i(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:i(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:i(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:i(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:i(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:i(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:i(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:i(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:i(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:i(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:i(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:i(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:i(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:i(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:i(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:i(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:i(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:i(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:i(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:i(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:i(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:i(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:i(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:i(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:i(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:i(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:i(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:i(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:i(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:i(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:i(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:i(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:i(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:i(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:i(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:i(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:i(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:i(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:i(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:i(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:i(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:i(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:i(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:i(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:i(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:i(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:i(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:i(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:i(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:i(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:i(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:i(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:i(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:i(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:i(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:i(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:i(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:i(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:i(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:i(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:i(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:i(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:i(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:i(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:i(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:i(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:i(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:i(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:i(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:i(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:i(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:i(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:i(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:i(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:i(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:i(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:i(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:i(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:i(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:i(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:i(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:i(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:i(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:i(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:i(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:i(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:i(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:i(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:i(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:i(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:i(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:i(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:i(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:i(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:i(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:i(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:i(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:i(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:i(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:i(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:i(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:i(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:i(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:i(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:i(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:i(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:i(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:i(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:i(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:i(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:i(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:i(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:i(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:i(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),with_statements_are_not_allowed_in_an_async_function_block:i(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:i(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:i(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:i(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:i(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:i(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:i(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:i(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:i(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:i(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:i(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:i(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:i(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:i(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:i(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:i(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:i(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:i(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:i(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:i(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:i(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:i(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:i(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:i(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:i(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:i(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:i(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:i(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:i(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:i(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:i(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:i(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:i(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:i(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:i(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:i(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:i(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:i(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:i(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:i(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:i(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:i(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:i(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:i(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:i(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:i(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:i(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:i(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:i(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:i(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:i(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:i(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:i(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:i(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:i(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:i(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:i(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:i(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:i(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:i(1371,1,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:i(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:i(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:i(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:i(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:i(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:i(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:i(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:i(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:i(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:i(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:i(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:i(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:i(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:i(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:i(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:i(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:i(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:i(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:i(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:i(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:i(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:i(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:i(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:i(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:i(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:i(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:i(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:i(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:i(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:i(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:i(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:i(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:i(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:i(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:i(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:i(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:i(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:i(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:i(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:i(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:i(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:i(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:i(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:i(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:i(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:i(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:i(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:i(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:i(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:i(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:i(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:i(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:i(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:i(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:i(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:i(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:i(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:i(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:i(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:i(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:i(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:i(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:i(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:i(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:i(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:i(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:i(1444,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:i(1446,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:i(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:i(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments:i(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional assertion as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:i(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext:i(1452,1,"resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452","'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`."),resolution_mode_should_be_either_require_or_import:i(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:i(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:i(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:i(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:i(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:i(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:i(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:i(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:i(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:i(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:i(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:i(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:i(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:i(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:i(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:i(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:i(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:i(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:i(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:i(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:i(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:i(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:i(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:i(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:i(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:i(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:i(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:i(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:i(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:i(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:i(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:i(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:i(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:i(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:i(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),The_types_of_0_are_incompatible_between_these_types:i(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:i(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:i(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:i(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:i(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:i(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:i(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:i(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:i(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:i(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:i(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:i(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:i(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:i(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:i(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:i(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:i(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:i(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:i(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:i(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:i(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:i(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:i(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:i(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:i(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:i(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:i(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:i(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:i(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:i(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:i(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:i(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:i(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:i(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:i(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:i(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:i(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:i(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:i(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:i(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:i(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:i(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:i(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:i(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:i(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:i(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:i(2333,1,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:i(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:i(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:i(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:i(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:i(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:i(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:i(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:i(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:i(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:i(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:i(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Untyped_function_calls_may_not_accept_type_arguments:i(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:i(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:i(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:i(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:i(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:i(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:i(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:i(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:i(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:i(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:i(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:i(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:i(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:i(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:i(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:i(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:i(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:i(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:i(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:i(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:i(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:i(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:i(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:i(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:i(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:i(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:i(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:i(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:i(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:i(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:i(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:i(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:i(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:i(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:i(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:i(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:i(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:i(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:i(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:i(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:i(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:i(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:i(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:i(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:i(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:i(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:i(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:i(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:i(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:i(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:i(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:i(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:i(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:i(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:i(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:i(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:i(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:i(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:i(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:i(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:i(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:i(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:i(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:i(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:i(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:i(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:i(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:i(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:i(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:i(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:i(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:i(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:i(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:i(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:i(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:i(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:i(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:i(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:i(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:i(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:i(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:i(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:i(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:i(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:i(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:i(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:i(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:i(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:i(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:i(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:i(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:i(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:i(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:i(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:i(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:i(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:i(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:i(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:i(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:i(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:i(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:i(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:i(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:i(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:i(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:i(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:i(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:i(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:i(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:i(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:i(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:i(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:i(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:i(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:i(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:i(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:i(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:i(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:i(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:i(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:i(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:i(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:i(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:i(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:i(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:i(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:i(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:i(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:i(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:i(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:i(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:i(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:i(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:i(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:i(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:i(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:i(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:i(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:i(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:i(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:i(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:i(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:i(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:i(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:i(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:i(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:i(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:i(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:i(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:i(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:i(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:i(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:i(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:i(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:i(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:i(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:i(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:i(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:i(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:i(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:i(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:i(2525,1,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:i(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:i(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:i(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:i(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:i(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:i(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:i(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:i(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:i(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:i(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:i(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:i(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:i(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:i(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:i(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:i(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:i(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:i(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:i(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:i(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:i(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:i(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:i(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:i(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:i(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:i(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:i(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:i(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:i(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:i(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:i(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:i(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:i(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:i(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:i(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:i(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:i(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:i(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:i(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:i(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:i(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:i(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:i(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:i(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:i(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:i(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:i(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:i(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:i(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:i(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:i(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:i(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:i(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:i(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:i(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:i(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:i(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:i(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:i(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:i(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:i(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:i(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:i(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:i(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:i(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:i(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:i(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:i(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:i(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:i(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:i(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:i(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:i(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:i(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:i(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:i(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:i(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:i(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:i(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:i(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:i(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:i(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:i(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:i(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:i(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:i(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:i(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:i(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:i(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:i(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:i(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:i(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:i(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:i(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:i(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:i(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:i(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:i(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:i(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:i(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:i(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:i(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:i(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:i(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:i(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:i(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:i(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:i(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:i(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:i(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:i(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:i(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:i(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:i(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:i(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:i(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:i(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:i(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:i(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:i(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:i(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:i(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:i(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:i(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:i(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:i(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:i(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:i(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:i(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:i(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:i(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:i(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:i(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:i(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:i(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:i(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:i(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:i(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:i(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:i(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:i(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:i(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:i(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:i(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:i(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:i(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:i(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:i(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:i(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:i(2705,1,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:i(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:i(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:i(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:i(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:i(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:i(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:i(2712,1,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:i(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:i(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:i(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:i(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:i(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:i(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:i(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:i(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:i(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:i(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:i(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:i(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:i(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:i(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:i(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:i(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:i(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:i(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:i(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:i(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:i(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:i(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:i(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:i(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:i(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:i(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:i(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:i(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:i(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:i(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:i(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:i(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:i(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:i(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:i(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:i(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:i(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:i(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:i(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:i(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:i(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:i(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:i(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:i(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:i(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:i(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:i(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:i(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:i(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:i(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:i(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:i(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:i(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:i(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:i(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:i(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:i(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:i(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:i(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:i(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:i(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:i(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:i(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:i(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:i(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:i(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:i(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:i(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:i(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:i(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:i(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:i(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:i(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:i(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:i(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:i(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:i(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:i(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:i(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:i(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:i(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:i(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:i(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:i(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:i(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:i(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:i(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:i(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:i(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:i(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:i(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:i(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:i(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:i(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:i(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:i(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:i(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:i(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:i(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:i(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:i(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:i(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:i(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:i(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:i(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:i(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:i(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:i(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821","Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:i(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Cannot_find_namespace_0_Did_you_mean_1:i(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:i(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:i(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:i(2836,1,"Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836","Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:i(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:i(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:i(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes:i(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840","An interface cannot extend a primitive type like '{0}'; an interface can only extend named types and classes"),The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:i(2841,1,"The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841","The type of this expression cannot be named without a 'resolution-mode' assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:i(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:i(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:i(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:i(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:i(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:i(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:i(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:i(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:i(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:i(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:i(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:i(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Import_declaration_0_is_using_private_name_1:i(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:i(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:i(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:i(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:i(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:i(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:i(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:i(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:i(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:i(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:i(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:i(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:i(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:i(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:i(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:i(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:i(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:i(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:i(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:i(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:i(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:i(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:i(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:i(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:i(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:i(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:i(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:i(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:i(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:i(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:i(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:i(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:i(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:i(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:i(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:i(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:i(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:i(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:i(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:i(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:i(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:i(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:i(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:i(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:i(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:i(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:i(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:i(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:i(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:i(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:i(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:i(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:i(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:i(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:i(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:i(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:i(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:i(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:i(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:i(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:i(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:i(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:i(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:i(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:i(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:i(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:i(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:i(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:i(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:i(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:i(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:i(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:i(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:i(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:i(4090,1,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:i(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:i(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:i(4094,1,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:i(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:i(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:i(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:i(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:i(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:i(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:i(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:i(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:i(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:i(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:i(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:i(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:i(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:i(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:i(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:i(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:i(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:i(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:i(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:i(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:i(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:i(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:i(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:i(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:i(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:i(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:i(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:i(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:i(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:i(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:i(4125,1,"resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125","'resolution-mode' assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),The_current_host_does_not_support_the_0_option:i(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:i(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:i(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:i(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:i(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:i(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:i(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:i(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:i(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:i(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:i(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:i(5048,1,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:i(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:i(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:i(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:i(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:i(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:i(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:i(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:i(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:i(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:i(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:i(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:i(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:i(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:i(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:i(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:i(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:i(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:i(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:i(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:i(5071,1,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:i(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:i(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:i(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:i(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:i(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:i(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:i(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:i(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:i(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:i(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:i(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:i(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:i(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:i(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:i(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:i(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:i(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:i(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:i(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:i(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:i(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:i(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later:i(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:i(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:i(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:i(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:i(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:i(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:i(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:i(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:i(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:i(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:i(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:i(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:i(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:i(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:i(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:i(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:i(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:i(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:i(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:i(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:i(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:i(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:i(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:i(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:i(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:i(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:i(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:i(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:i(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:i(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:i(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:i(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:i(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:i(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:i(6024,3,"options_6024","options"),file:i(6025,3,"file_6025","file"),Examples_Colon_0:i(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:i(6027,3,"Options_Colon_6027","Options:"),Version_0:i(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:i(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:i(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:i(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:i(6034,3,"KIND_6034","KIND"),FILE:i(6035,3,"FILE_6035","FILE"),VERSION:i(6036,3,"VERSION_6036","VERSION"),LOCATION:i(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:i(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:i(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:i(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:i(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:i(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:i(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:i(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:i(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:i(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:i(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:i(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:i(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:i(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:i(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:i(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:i(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:i(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:i(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:i(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:i(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:i(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:i(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:i(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:i(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:i(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:i(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:i(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:i(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:i(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:i(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:i(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:i(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:i(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:i(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:i(6081,3,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:i(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:i(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:i(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:i(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:i(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:i(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:i(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:i(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:i(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:i(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:i(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:i(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:i(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:i(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:i(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:i(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:i(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:i(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:i(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:i(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:i(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:i(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:i(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:i(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:i(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:i(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:i(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:i(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:i(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:i(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:i(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:i(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:i(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:i(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:i(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:i(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:i(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:i(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:i(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:i(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:i(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:i(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:i(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:i(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:i(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:i(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:i(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:i(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:i(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:i(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:i(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:i(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:i(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:i(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:i(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:i(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:i(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:i(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:i(6145,3,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:i(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:i(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:i(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:i(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:i(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:i(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:i(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:i(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:i(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:i(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:i(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:i(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:i(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:i(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:i(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:i(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:i(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:i(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:i(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:i(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:i(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:i(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:i(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:i(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:i(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:i(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:i(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:i(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:i(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:i(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:i(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:i(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:i(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:i(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:i(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:i(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:i(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:i(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:i(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:i(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:i(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:i(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:i(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:i(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:i(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:i(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:i(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:i(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:i(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:i(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:i(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:i(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:i(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:i(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:i(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:i(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:i(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:i(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:i(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:i(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:i(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:i(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:i(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:i(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:i(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:i(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:i(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:i(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:i(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:i(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:i(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:i(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:i(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:i(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:i(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:i(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:i(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:i(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:i(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:i(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:i(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:i(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:i(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:i(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:i(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:i(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:i(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:i(6244,3,"Modules_6244","Modules"),File_Management:i(6245,3,"File_Management_6245","File Management"),Emit:i(6246,3,"Emit_6246","Emit"),JavaScript_Support:i(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:i(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:i(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:i(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:i(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:i(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:i(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:i(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:i(6255,3,"Projects_6255","Projects"),Output_Formatting:i(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:i(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:i(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:i(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:i(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:i(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:i(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:i(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:i(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:i(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:i(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:i(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:i(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:i(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:i(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:i(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:i(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:i(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:i(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:i(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Enable_project_compilation:i(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:i(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:i(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:i(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:i(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:i(6308,1,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:i(6309,1,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:i(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:i(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:i(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:i(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:i(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:i(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:i(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:i(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:i(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:i(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:i(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:i(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:i(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:i(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:i(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:i(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:i(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:i(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:i(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:i(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:i(6372,3,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:i(6373,3,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:i(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:i(6375,3,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:i(6376,3,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:i(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:i(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:i(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:i(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:i(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:i(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:i(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:i(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:i(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:i(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:i(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:i(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:i(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:i(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:i(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:i(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:i(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:i(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:i(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:i(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:i(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:i(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:i(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:i(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:i(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:i(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:i(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:i(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:i(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:i(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:i(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:i(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:i(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:i(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:i(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:i(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:i(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:i(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:i(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:i(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:i(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:i(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:i(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:i(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:i(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:i(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:i(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:i(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:i(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:i(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:i(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:i(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:i(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:i(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:i(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:i(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:i(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:i(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:i(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:i(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:i(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:i(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:i(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:i(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:i(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:i(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:i(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:i(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:i(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:i(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:i(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:i(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:i(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:i(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:i(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:i(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:i(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:i(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:i(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:i(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:i(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:i(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:i(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:i(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:i(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:i(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:i(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:i(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:i(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:i(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:i(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:i(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:i(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:i(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:i(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:i(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:i(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:i(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:i(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:i(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:i(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:i(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:i(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:i(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:i(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:i(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:i(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:i(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:i(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:i(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:i(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:i(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:i(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:i(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:i(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:i(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:i(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:i(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:i(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:i(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:i(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:i(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:i(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:i(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:i(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:i(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:i(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:i(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:i(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:i(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:i(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:i(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:i(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:i(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:i(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:i(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:i(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:i(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:i(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:i(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:i(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:i(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:i(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:i(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:i(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:i(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:i(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:i(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:i(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:i(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:i(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:i(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:i(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:i(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:i(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:i(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:i(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:i(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:i(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:i(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:i(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:i(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Default_catch_clause_variables_as_unknown_instead_of_any:i(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:i(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),one_of_Colon:i(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:i(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:i(6902,3,"type_Colon_6902","type:"),default_Colon:i(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:i(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:i(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:i(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:i(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:i(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:i(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:i(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:i(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:i(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:i(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:i(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:i(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:i(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:i(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:i(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:i(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:i(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:i(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:i(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:i(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:i(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:i(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:i(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:i(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:i(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:i(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:i(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:i(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:i(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:i(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:i(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:i(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:i(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:i(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:i(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:i(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:i(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:i(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:i(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:i(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:i(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:i(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:i(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:i(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:i(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:i(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:i(7025,1,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:i(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:i(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:i(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:i(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:i(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:i(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:i(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:i(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:i(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:i(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:i(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:i(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:i(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:i(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:i(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:i(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:i(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:i(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:i(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:i(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:i(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:i(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:i(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:i(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:i(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:i(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:i(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:i(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:i(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:i(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:i(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:i(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:i(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:i(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:i(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:i(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:i(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:i(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:i(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:i(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:i(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:i(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:i(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:i(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:i(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:i(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:i(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:i(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:i(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:i(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:i(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:i(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:i(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:i(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:i(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:i(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:i(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:i(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:i(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:i(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:i(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:i(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:i(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:i(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:i(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:i(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:i(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:i(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:i(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:i(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:i(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:i(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:i(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:i(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:i(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:i(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:i(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:i(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:i(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:i(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:i(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:i(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:i(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:i(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:i(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:i(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:i(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:i(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:i(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:i(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:i(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:i(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:i(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:i(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:i(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:i(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:i(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:i(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:i(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:i(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:i(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:i(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:i(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:i(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:i(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:i(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:i(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:i(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:i(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:i(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:i(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:i(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:i(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:i(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:i(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:i(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:i(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:i(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:i(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:i(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:i(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:i(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:i(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:i(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:i(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:i(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:i(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:i(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:i(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:i(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:i(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:i(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:i(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:i(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:i(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:i(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:i(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:i(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:i(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:i(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:i(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:i(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:i(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:i(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:i(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:i(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:i(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:i(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:i(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:i(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:i(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:i(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:i(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:i(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:i(95005,3,"Extract_function_95005","Extract function"),Extract_constant:i(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:i(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:i(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:i(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:i(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:i(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:i(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:i(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:i(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:i(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:i(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:i(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:i(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:i(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:i(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:i(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:i(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:i(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:i(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:i(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:i(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:i(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:i(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:i(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:i(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:i(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:i(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:i(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:i(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:i(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:i(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:i(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:i(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:i(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:i(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:i(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:i(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:i(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:i(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:i(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:i(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:i(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:i(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:i(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:i(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:i(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:i(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:i(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:i(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:i(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:i(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:i(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:i(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:i(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:i(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:i(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:i(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:i(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:i(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:i(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:i(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:i(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:i(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:i(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:i(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:i(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:i(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:i(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:i(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:i(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:i(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:i(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:i(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:i(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:i(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:i(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:i(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:i(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:i(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:i(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:i(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:i(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:i(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:i(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:i(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:i(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:i(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:i(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:i(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:i(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:i(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:i(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:i(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:i(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:i(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:i(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:i(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:i(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:i(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:i(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:i(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:i(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:i(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:i(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:i(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:i(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:i(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:i(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:i(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:i(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:i(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:i(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:i(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:i(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:i(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:i(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:i(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:i(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:i(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:i(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:i(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:i(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:i(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:i(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:i(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:i(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:i(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:i(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:i(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:i(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:i(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:i(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:i(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:i(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:i(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:i(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:i(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:i(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:i(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:i(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:i(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:i(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:i(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:i(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:i(95154,3,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:i(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:i(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:i(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:i(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:i(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:i(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:i(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:i(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:i(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:i(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:i(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:i(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:i(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:i(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:i(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:i(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:i(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:i(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:i(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:i(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:i(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:i(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:i(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:i(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:i(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:i(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:i(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:i(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:i(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:i(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:i(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:i(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:i(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:i(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:i(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:i(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:i(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:i(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:i(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:i(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:i(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:i(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:i(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:i(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:i(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:i(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:i(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:i(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:i(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:i(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:i(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:i(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:i(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:i(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:i(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:i(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:i(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:i(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:i(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:i(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:i(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:i(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:i(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:i(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:i(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:i(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:i(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:i(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:i(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:i(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:i(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:i(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:i(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Non_abstract_class_0_does_not_implement_all_abstract_members_of_1:i(18052,1,"Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052","Non-abstract class '{0}' does not implement all abstract members of '{1}'"),Its_type_0_is_not_a_valid_JSX_element_type:i(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:i(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block.")}}});function kt(e){return e>=80}function r4(e){return e===32||kt(e)}function i_(e,t){if(e=2?i_(e,d4):t===1?i_(e,p4):i_(e,l4)}function jE(e,t){return t>=2?i_(e,m4):t===1?i_(e,f4):i_(e,u4)}function FE(e){let t=[];return e.forEach((r,a)=>{t[r]=a}),t}function nr(e){return g4[e]}function Rl(e){return h0.get(e)}function Hd(e){let t=[],r=0,a=0;for(;r127&&mr(_)&&(t.push(a),a=r);break}}return t.push(a),t}function BE(e,t,r,a){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,a):Tg(Ia(e),t,r,e.text,a)}function Tg(e,t,r,a,_){(t<0||t>=e.length)&&(_?t=t<0?0:t>=e.length?e.length-1:t:N.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${a!==void 0?gv(e,Hd(a)):"unknown"}`));let p=e[t]+r;return _?p>e[t+1]?e[t+1]:typeof a=="string"&&p>a.length?a.length:p:(t=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function mr(e){return e===10||e===13||e===8232||e===8233}function Eo(e){return e>=48&&e<=57}function Rb(e){return Eo(e)||e>=65&&e<=70||e>=97&&e<=102}function UE(e){return e<=1114111}function Nf(e){return e>=48&&e<=55}function qE(e,t){let r=e.charCodeAt(t);switch(r){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return t===0;default:return r>127}}function Nt(e,t,r,a,_){if(Oa(t))return t;let p=!1;for(;;){let d=e.charCodeAt(t);switch(d){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,r)return t;p=!!_;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(a)break;if(e.charCodeAt(t+1)===47){for(t+=2;t127&&Vi(d)){t++;continue}break}return t}}function ko(e,t){if(N.assert(t>=0),t===0||mr(e.charCodeAt(t-1))){let r=e.charCodeAt(t);if(t+ll=0&&r127&&Vi(L)){C&&mr(L)&&(y=!0),r++;continue}break e}}return C&&(k=_(h,l,v,y,p,k)),k}function zE(e,t,r,a){return Gd(!1,e,t,!1,r,a)}function WE(e,t,r,a){return Gd(!1,e,t,!0,r,a)}function i4(e,t,r,a,_){return Gd(!0,e,t,!1,r,a,_)}function a4(e,t,r,a,_){return Gd(!0,e,t,!0,r,a,_)}function o4(e,t,r,a,_,p=[]){return p.push({kind:r,pos:e,end:t,hasTrailingNewLine:a}),p}function Wo(e,t){return i4(e,t,o4,void 0,void 0)}function s4(e,t){return a4(e,t,o4,void 0,void 0)}function _4(e){let t=Xd.exec(e);if(t)return t[0]}function un(e,t){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&n4(e,t)}function Qa(e,t,r){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===36||e===95||(r===1?e===45||e===58:!1)||e>127&&jE(e,t)}function Cg(e,t,r){let a=cn(e,0);if(!un(a,t))return!1;for(let _=Yn(a);_y,getStartPos:()=>y,getTokenEnd:()=>l,getTextPos:()=>l,getToken:()=>S,getTokenStart:()=>C,getTokenPos:()=>C,getTokenText:()=>h.substring(C,l),getTokenValue:()=>k,hasUnicodeEscape:()=>(L&1024)!==0,hasExtendedUnicodeEscape:()=>(L&8)!==0,hasPrecedingLineBreak:()=>(L&1)!==0,hasPrecedingJSDocComment:()=>(L&2)!==0,isIdentifier:()=>S===80||S>118,isReservedWord:()=>S>=83&&S<=118,isUnterminated:()=>(L&4)!==0,getCommentDirectives:()=>G,getNumericLiteralFlags:()=>L&25584,getTokenFlags:()=>L,reScanGreaterToken:St,reScanAsteriskEqualsToken:xn,reScanSlashToken:Tr,reScanTemplateToken:Ut,reScanTemplateHeadOrNoSubstitutionTemplate:fr,scanJsxIdentifier:Mr,scanJsxAttributeValue:at,reScanJsxAttributeValue:er,reScanJsxToken:ht,reScanLessThanToken:wn,reScanHashToken:Tt,reScanQuestionToken:Or,reScanInvalidIdentifier:sr,scanJsxToken:pt,scanJsDocToken:tn,scanJSDocCommentTextToken:Qt,scan:Sn,getText:Di,clearCommentDirectives:qn,setText:Ae,setScriptTarget:oe,setLanguageVariant:ge,setOnError:q,resetTokenState:Se,setTextPos:Se,setInJSDocType:nt,tryScan:nn,lookAhead:rn,scanRange:Un};return N.isDebugging&&Object.defineProperty(ue,"__debugShowCurrentPositionInText",{get:()=>{let z=ue.getText();return z.slice(0,ue.getTokenFullStart())+"\u2551"+z.slice(ue.getTokenFullStart())}}),ue;function Y(z,X=l,ee,xe){if(_){let ke=l;l=X,_(z,ee||0,xe),l=ke}}function B(){let z=l,X=!1,ee=!1,xe="";for(;;){let ke=h.charCodeAt(l);if(ke===95){L|=512,X?(X=!1,ee=!0,xe+=h.substring(z,l)):(L|=16384,Y(ee?U.Multiple_consecutive_numeric_separators_are_not_permitted:U.Numeric_separators_are_not_allowed_here,l,1)),l++,z=l;continue}if(Eo(ke)){X=!0,ee=!1,l++;continue}break}return h.charCodeAt(l-1)===95&&(L|=16384,Y(U.Numeric_separators_are_not_allowed_here,l-1,1)),xe+h.substring(z,l)}function ae(){let z=l,X;if(h.charCodeAt(l)===48)if(l++,h.charCodeAt(l)===95)L|=16896,Y(U.Numeric_separators_are_not_allowed_here,l,1),l--,X=B();else if(!Ze())L|=8192,X=""+ +k;else if(!k)X="0";else{k=""+parseInt(k,8),L|=32;let lt=S===41,yt=(lt?"-":"")+"0o"+(+k).toString(8);return lt&&z--,Y(U.Octal_literals_are_not_allowed_Use_the_syntax_0,z,l-z,yt),9}else X=B();let ee,xe;h.charCodeAt(l)===46&&(l++,ee=B());let ke=l;if(h.charCodeAt(l)===69||h.charCodeAt(l)===101){l++,L|=16,(h.charCodeAt(l)===43||h.charCodeAt(l)===45)&&l++;let lt=l,yt=B();yt?(xe=h.substring(ke,lt)+yt,ke=l):Y(U.Digit_expected)}let Le;if(L&512?(Le=X,ee&&(Le+="."+ee),xe&&(Le+=xe)):Le=h.substring(z,ke),L&8192)return Y(U.Decimals_with_leading_zeros_are_not_allowed,z,ke-z),k=""+ +Le,9;if(ee!==void 0||L&16)return Ce(z,ee===void 0&&!!(L&16)),k=""+ +Le,9;{k=Le;let lt=Tn();return Ce(z),lt}}function Ce(z,X){if(!un(cn(h,l),e))return;let ee=l,{length:xe}=Gt();xe===1&&h[ee]==="n"?Y(X?U.A_bigint_literal_cannot_use_exponential_notation:U.A_bigint_literal_must_be_an_integer,z,ee-z+1):(Y(U.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,ee,xe),l=ee)}function Ze(){let z=l,X=!0;for(;Eo(h.charCodeAt(l));)Nf(h.charCodeAt(l))||(X=!1),l++;return k=h.substring(z,l),X}function qe(z,X){let ee=it(z,!1,X);return ee?parseInt(ee,16):-1}function rt(z,X){return it(z,!0,X)}function it(z,X,ee){let xe=[],ke=!1,Le=!1;for(;xe.length=65&<<=70)lt+=97-65;else if(!(lt>=48&<<=57||lt>=97&<<=102))break;xe.push(lt),l++,Le=!1}return xe.length=v){ee+=h.substring(xe,l),L|=4,Y(U.Unterminated_string_literal);break}let ke=h.charCodeAt(l);if(ke===X){ee+=h.substring(xe,l),l++;break}if(ke===92&&!z){ee+=h.substring(xe,l),ee+=ci(!0),xe=l;continue}if(mr(ke)&&!z){ee+=h.substring(xe,l),L|=4,Y(U.Unterminated_string_literal);break}l++}return ee}function ar(z){let X=h.charCodeAt(l)===96;l++;let ee=l,xe="",ke;for(;;){if(l>=v){xe+=h.substring(ee,l),L|=4,Y(U.Unterminated_template_literal),ke=X?15:18;break}let Le=h.charCodeAt(l);if(Le===96){xe+=h.substring(ee,l),l++,ke=X?15:18;break}if(Le===36&&l+1=v)return Y(U.Unexpected_end_of_text),"";let ee=h.charCodeAt(l);switch(l++,ee){case 48:if(l>=v||!Eo(h.charCodeAt(l)))return"\0";case 49:case 50:case 51:l=v?(L|=2048,z&&Y(U.Unexpected_end_of_text),h.substring(X,l)):h.charCodeAt(l)!==125?(L|=2048,z&&Y(U.Unterminated_Unicode_escape_sequence),h.substring(X,l)):(l++,L|=8,Of(ke)):(L|=2048,z&&Y(U.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),h.substring(X,l))}for(;l1114111&&(Y(U.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),ee=!0),l>=v?(Y(U.Unexpected_end_of_text),ee=!0):h.charCodeAt(l)===125?l++:(Y(U.Unterminated_Unicode_escape_sequence),ee=!0),ee?"":Of(X)}function Nr(){if(l+5=0&&Qa(ee,e)){l+=3,L|=8,z+=or(),X=l;continue}if(ee=Nr(),!(ee>=0&&Qa(ee,e)))break;L|=1024,z+=h.substring(X,l),z+=Of(ee),l+=6,X=l}else break}return z+=h.substring(X,l),z}function Ur(){let z=k.length;if(z>=2&&z<=12){let X=k.charCodeAt(0);if(X>=97&&X<=122){let ee=c4.get(k);if(ee!==void 0)return S=ee}}return S=80}function Xt(z){let X="",ee=!1,xe=!1;for(;;){let ke=h.charCodeAt(l);if(ke===95){L|=512,ee?(ee=!1,xe=!0):Y(xe?U.Multiple_consecutive_numeric_separators_are_not_permitted:U.Numeric_separators_are_not_allowed_here,l,1),l++;continue}if(ee=!0,!Eo(ke)||ke-48>=z)break;X+=h[l],l++,xe=!1}return h.charCodeAt(l-1)===95&&Y(U.Numeric_separators_are_not_allowed_here,l-1,1),X}function Tn(){return h.charCodeAt(l)===110?(k+="n",L&384&&(k=xm(k)+"n"),l++,10):(k=""+(L&128?parseInt(k.slice(2),2):L&256?parseInt(k.slice(2),8):+k),9)}function Sn(){y=l,L=0;let z=!1;for(;;){if(C=l,l>=v)return S=1;let X=cn(h,l);if(l===0){if(X===65533)return Y(U.File_appears_to_be_binary),l=v,S=8;if(X===35&&xg(h,l)){if(l=wg(h,l),t)continue;return S=6}}switch(X){case 10:case 13:if(L|=1,t){l++;continue}else return X===13&&l+1=0&&un(ee,e))return l+=3,L|=8,k=or()+Gt(),S=Ur();let xe=Nr();return xe>=0&&un(xe,e)?(l+=6,L|=1024,k=String.fromCharCode(xe)+Gt(),S=Ur()):(Y(U.Invalid_character),l++,S=0);case 35:if(l!==0&&h[l+1]==="!")return Y(U.can_only_be_used_at_the_start_of_a_file),l++,S=0;let ke=cn(h,l+1);if(ke===92){l++;let yt=Ge();if(yt>=0&&un(yt,e))return l+=3,L|=8,k="#"+or()+Gt(),S=81;let jt=Nr();if(jt>=0&&un(jt,e))return l+=6,L|=1024,k="#"+String.fromCharCode(jt)+Gt(),S=81;l--}return un(ke,e)?(l++,$t(ke,e)):(k="#",Y(U.Invalid_character,l++,Yn(X))),S=81;default:let Le=$t(X,e);if(Le)return S=Le;if(Io(X)){l+=Yn(X);continue}else if(mr(X)){L|=1,l+=Yn(X);continue}let lt=Yn(X);return Y(U.Invalid_character,l,lt),l+=lt,S=0}}}function sr(){N.assert(S===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),l=C=y,L=0;let z=cn(h,l),X=$t(z,99);return X?S=X:(l+=Yn(z),S)}function $t(z,X){let ee=z;if(un(ee,X)){for(l+=Yn(ee);l=v)return S=1;let X=h.charCodeAt(l);if(X===60)return h.charCodeAt(l+1)===47?(l+=2,S=31):(l++,S=30);if(X===123)return l++,S=19;let ee=0;for(;l0)break;Vi(X)||(ee=l)}l++}return k=h.substring(y,l),ee===-1?13:12}function Mr(){if(kt(S)){for(;l=v)return S=1;for(let X=h.charCodeAt(l);l=0&&Io(h.charCodeAt(l-1))&&!(l+1=v)return S=1;let z=cn(h,l);switch(l+=Yn(z),z){case 9:case 11:case 12:case 32:for(;l=0&&un(X,e))return l+=3,L|=8,k=or()+Gt(),S=Ur();let ee=Nr();return ee>=0&&un(ee,e)?(l+=6,L|=1024,k=String.fromCharCode(ee)+Gt(),S=Ur()):(l++,S=0)}if(un(z,e)){let X=z;for(;l=0),l=z,y=z,C=z,S=0,k=void 0,L=0}function nt(z){K+=z?1:-1}}function Yn(e){return e>=65536?2:1}function VE(e){if(N.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let t=Math.floor((e-65536)/1024)+55296,r=(e-65536)%1024+56320;return String.fromCharCode(t,r)}function Of(e){return b4(e)}var cl,c4,h0,l4,u4,p4,f4,d4,m4,h4,y4,g4,ll,Xd,cn,b4,HE=Vt({"src/compiler/scanner.ts"(){"use strict";Dr(),cl={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},c4=new Map(Object.entries(cl)),h0=new Map(Object.entries({...cl,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),l4=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],u4=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],p4=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],f4=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],d4=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],m4=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],h4=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,y4=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,g4=FE(h0),ll=7,Xd=/^#!.*/,cn=String.prototype.codePointAt?(e,t)=>e.codePointAt(t):function(t,r){let a=t.length;if(r<0||r>=a)return;let _=t.charCodeAt(r);if(_>=55296&&_<=56319&&a>r+1){let p=t.charCodeAt(r+1);if(p>=56320&&p<=57343)return(_-55296)*1024+p-56320+65536}return _},b4=String.fromCodePoint?e=>String.fromCodePoint(e):VE}});function GE(e){return rs(e)||v_(e)}function XE(e){return xv(e,F2)}function v4(e){switch(Ql(e)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function Kt(e){return e.start+e.length}function T4(e){return e.length===0}function $E(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function YE(e,t){return t.start>=e.start&&Kt(t)<=Kt(e)}function KE(e,t){return S4(e,t)!==void 0}function S4(e,t){let r=x4(e,t);return r&&r.length===0?void 0:r}function ZE(e,t){return Eg(e.start,e.length,t.start,t.length)}function eA(e,t,r){return Eg(e.start,e.length,t,r)}function Eg(e,t,r,a){let _=e+t,p=r+a;return r<=_&&p>=e}function tA(e,t){return t<=Kt(e)&&t>=e.start}function x4(e,t){let r=Math.max(e.start,t.start),a=Math.min(Kt(e),Kt(t));return r<=a?Hi(r,a):void 0}function w_(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function Hi(e,t){return w_(e,t-e)}function Qs(e){return w_(e.span.start,e.newLength)}function w4(e){return T4(e.span)&&e.newLength===0}function $d(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function rA(e){if(e.length===0)return Vg;if(e.length===1)return e[0];let t=e[0],r=t.span.start,a=Kt(t.span),_=r+t.newLength;for(let p=1;p=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function Vo(e){let t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function Ot(e){return Vo(e.escapedText)}function D4(e){let t=Rl(e.escapedText);return t?On(t,Si):void 0}function hd(e){return e.valueDeclaration&&i3(e.valueDeclaration)?Ot(e.valueDeclaration.name):Vo(e.escapedName)}function P4(e){let t=e.parent.parent;if(t){if(Ho(t))return Af(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return Af(t.declarationList.declarations[0]);break;case 244:let r=t.expression;switch(r.kind===226&&r.operatorToken.kind===64&&(r=r.left),r.kind){case 211:return r.name;case 212:let a=r.argumentExpression;if(Ee(a))return a}break;case 217:return Af(t.expression);case 256:{if(Ho(t.statement)||om(t.statement))return Af(t.statement);break}}}}function Af(e){let t=Bl(e);return t&&Ee(t)?t:void 0}function I4(e,t){return!!(Yd(e)&&Ee(e.name)&&Ot(e.name)===Ot(t)||as(e)&&mt(e.declarationList.declarations,r=>I4(r,t)))}function N4(e){return e.name||P4(e)}function Yd(e){return!!e.name}function Kd(e){switch(e.kind){case 80:return e;case 355:case 348:{let{name:r}=e;if(r.kind===166)return r.right;break}case 213:case 226:{let r=e;switch(Ja(r)){case 1:case 4:case 5:case 3:return dm(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}}case 353:return N4(e);case 347:return P4(e);case 277:{let{expression:r}=e;return Ee(r)?r:void 0}case 212:let t=e;if(f2(t))return t.argumentExpression}return e.name}function Bl(e){if(e!==void 0)return Kd(e)||(km(e)||Dm(e)||Il(e)?O4(e):void 0)}function O4(e){if(e.parent){if(_s(e.parent)||nu(e.parent))return e.parent.name;if(Ct(e.parent)&&e===e.parent.right){if(Ee(e.parent.left))return e.parent.left;if($o(e.parent.left))return dm(e.parent.left)}else if(ki(e.parent)&&Ee(e.parent.name))return e.parent.name}else return}function sA(e){if(El(e))return $r(e.modifiers,L_)}function yd(e){if(gr(e,126975))return $r(e.modifiers,Lg)}function M4(e,t){if(e.name)if(Ee(e.name)){let r=e.name.escapedText;return c_(e.parent,t).filter(a=>h_(a)&&Ee(a.name)&&a.name.escapedText===r)}else{let r=e.parent.parameters.indexOf(e);N.assert(r>-1,"Parameters should always be in their parents' parameter list");let a=c_(e.parent,t).filter(h_);if(rKo(a)&&a.typeParameters.some(_=>_.name.escapedText===r))}function R4(e){return J4(e,!1)}function j4(e){return J4(e,!0)}function _A(e){return!!Zt(e,h_)}function F4(e){return Zt(e,Lm)}function B4(e){return $4(e,w8)}function cA(e){return Zt(e,v8)}function lA(e){return Zt(e,I6)}function U4(e){return Zt(e,I6,!0)}function uA(e){return Zt(e,N6)}function q4(e){return Zt(e,N6,!0)}function pA(e){return Zt(e,O6)}function z4(e){return Zt(e,O6,!0)}function fA(e){return Zt(e,M6)}function W4(e){return Zt(e,M6,!0)}function V4(e){return Zt(e,T8,!0)}function dA(e){return Zt(e,J6)}function H4(e){return Zt(e,J6,!0)}function mA(e){return Zt(e,S8)}function hA(e){return Zt(e,x8)}function G4(e){return Zt(e,R6)}function yA(e){return Zt(e,Ko)}function kg(e){return Zt(e,j6)}function em(e){let t=Zt(e,lu);if(t&&t.typeExpression&&t.typeExpression.type)return t}function tm(e){let t=Zt(e,lu);return!t&&Ma(e)&&(t=Yr(Zd(e),r=>!!r.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function X4(e){let t=G4(e);if(t&&t.typeExpression)return t.typeExpression.type;let r=em(e);if(r&&r.typeExpression){let a=r.typeExpression.type;if(Am(a)){let _=Yr(a.members,c6);return _&&_.type}if(tu(a)||Mm(a))return a.type}}function c_(e,t){var r;if(!mm(e))return $e;let a=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(a===void 0||t){let _=yT(e,t);N.assert(_.length<2||_[0]!==_[1]),a=Bo(_,p=>cs(p)?p.tags:p),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=a)}return a}function Ul(e){return c_(e,!1)}function gA(e){return c_(e,!0)}function Zt(e,t,r){return Yr(c_(e,r),t)}function $4(e,t){return Ul(e).filter(t)}function bA(e,t){return Ul(e).filter(r=>r.kind===t)}function vA(e){return typeof e=="string"?e:e==null?void 0:e.map(t=>t.kind===328?t.text:TA(t)).join("")}function TA(e){let t=e.kind===331?"link":e.kind===332?"linkcode":"linkplain",r=e.name?vi(e.name):"",a=e.name&&e.text.startsWith("://")?"":" ";return`{@${t} ${r}${a}${e.text}}`}function SA(e){if(cu(e)){if(L6(e.parent)){let t=g2(e.parent);if(t&&Ka(t.tags))return Bo(t.tags,r=>Ko(r)?r.typeParameters:void 0)}return $e}if(Hl(e))return N.assert(e.parent.kind===327),Bo(e.parent.tags,t=>Ko(t)?t.typeParameters:void 0);if(e.typeParameters||j8(e)&&e.typeParameters)return e.typeParameters;if(Wt(e)){let t=ZT(e);if(t.length)return t;let r=tm(e);if(r&&tu(r)&&r.typeParameters)return r.typeParameters}return $e}function xA(e){return e.constraint?e.constraint:Ko(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function ro(e){return e.kind===80||e.kind===81}function wA(e){return e.kind===178||e.kind===177}function Q4(e){return Br(e)&&!!(e.flags&64)}function Y4(e){return Ra(e)&&!!(e.flags&64)}function y0(e){return j_(e)&&!!(e.flags&64)}function Dg(e){let t=e.kind;return!!(e.flags&64)&&(t===211||t===212||t===213||t===235)}function Pg(e){return Dg(e)&&!jo(e)&&!!e.questionDotToken}function CA(e){return Pg(e.parent)&&e.parent.expression===e}function EA(e){return!Dg(e.parent)||Pg(e.parent)||e!==e.parent.expression}function AA(e){return e.kind===226&&e.operatorToken.kind===61}function K4(e){return R_(e)&&Ee(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function rm(e){return ls(e,8)}function Z4(e){return jo(e)&&!!(e.flags&64)}function kA(e){return e.kind===252||e.kind===251}function DA(e){return e.kind===280||e.kind===279}function e3(e){switch(e.kind){case 309:case 310:return!0;default:return!1}}function PA(e){return e3(e)||e.kind===307||e.kind===311}function Ig(e){return e.kind===355||e.kind===348}function IA(e){return ql(e.kind)}function ql(e){return e>=166}function t3(e){return e>=0&&e<=165}function NA(e){return t3(e.kind)}function va(e){return Qr(e,"pos")&&Qr(e,"end")}function Ng(e){return 9<=e&&e<=15}function Og(e){return Ng(e.kind)}function OA(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function Sl(e){return 15<=e&&e<=18}function MA(e){return Sl(e.kind)}function LA(e){let t=e.kind;return t===17||t===18}function JA(e){return p8(e)||d8(e)}function r3(e){switch(e.kind){case 276:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 274:return e.parent.isTypeOnly;case 273:case 271:return e.isTypeOnly}return!1}function n3(e){switch(e.kind){case 281:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 278:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 280:return e.parent.isTypeOnly}return!1}function RA(e){return r3(e)||n3(e)}function jA(e){return mn(e)||Ee(e)}function FA(e){return e.kind===11||Sl(e.kind)}function wa(e){var t;return Ee(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function Mg(e){var t;return jr(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function BA(e){let t=e.emitNode.autoGenerate.flags;return!!(t&32)&&!!(t&16)&&!!(t&8)}function i3(e){return(oo(e)||Rg(e))&&jr(e.name)}function UA(e){return Br(e)&&jr(e.name)}function bi(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function a3(e){return!!(J2(e)&16476)}function o3(e){return a3(e)||e===126||e===164||e===129}function Lg(e){return bi(e.kind)}function qA(e){let t=e.kind;return t===166||t===80}function zl(e){let t=e.kind;return t===80||t===81||t===11||t===9||t===167}function zA(e){let t=e.kind;return t===80||t===206||t===207}function Gi(e){return!!e&&Jg(e.kind)}function nm(e){return!!e&&(Jg(e.kind)||eu(e))}function s3(e){return e&&_3(e.kind)}function WA(e){return e.kind===112||e.kind===97}function _3(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function Jg(e){switch(e){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return _3(e)}}function VA(e){return ii(e)||u8(e)||au(e)&&Gi(e.parent)}function no(e){let t=e.kind;return t===176||t===172||t===174||t===177||t===178||t===181||t===175||t===240}function dn(e){return e&&(e.kind===263||e.kind===231)}function im(e){return e&&(e.kind===177||e.kind===178)}function c3(e){return oo(e)&&aS(e)}function Rg(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function HA(e){switch(e.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function Mf(e){return Lg(e)||L_(e)}function jg(e){let t=e.kind;return t===180||t===179||t===171||t===173||t===181||t===177||t===178}function GA(e){return jg(e)||no(e)}function Fg(e){let t=e.kind;return t===303||t===304||t===305||t===174||t===177||t===178}function g0(e){return DS(e.kind)}function XA(e){switch(e.kind){case 184:case 185:return!0}return!1}function am(e){if(e){let t=e.kind;return t===207||t===206}return!1}function l3(e){let t=e.kind;return t===209||t===210}function $A(e){let t=e.kind;return t===208||t===232}function Bg(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function QA(e){return ki(e)||Ma(e)||p3(e)||d3(e)}function YA(e){return u3(e)||f3(e)}function u3(e){switch(e.kind){case 206:case 210:return!0}return!1}function p3(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function f3(e){switch(e.kind){case 207:case 209:return!0}return!1}function d3(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return Na(e,!0)}function KA(e){let t=e.kind;return t===211||t===166||t===205}function ZA(e){let t=e.kind;return t===211||t===166}function ek(e){switch(e.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function tk(e){return e.kind===213||e.kind===214}function rk(e){let t=e.kind;return t===228||t===15}function Lo(e){return m3(rm(e).kind)}function m3(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function h3(e){return y3(rm(e).kind)}function y3(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return m3(e)}}function nk(e){switch(e.kind){case 225:return!0;case 224:return e.operator===46||e.operator===47;default:return!1}}function ik(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return Og(e)}}function om(e){return ak(rm(e).kind)}function ak(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 361:case 360:case 238:return!0;default:return y3(e)}}function ok(e){let t=e.kind;return t===216||t===234}function sk(e){return A6(e)||_8(e)}function g3(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&g3(e.statement,t)}return!1}function b3(e){return ss(e)||B_(e)}function _k(e){return mt(e,b3)}function ck(e){return!um(e)&&!ss(e)&&!gr(e,1)&&!cm(e)}function lk(e){return um(e)||ss(e)||gr(e,1)}function uk(e){return e.kind===249||e.kind===250}function pk(e){return au(e)||om(e)}function fk(e){return au(e)}function dk(e){return v6(e)||om(e)}function mk(e){let t=e.kind;return t===268||t===267||t===80}function hk(e){let t=e.kind;return t===268||t===267}function yk(e){let t=e.kind;return t===80||t===267}function gk(e){let t=e.kind;return t===275||t===274}function bk(e){return e.kind===267||e.kind===266}function vk(e){switch(e.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 345:case 347:case 324:case 348:case 355:case 330:case 353:case 329:case 291:case 292:case 293:case 200:case 174:case 173:case 267:case 202:case 280:case 270:case 274:case 214:case 15:case 9:case 210:case 169:case 211:case 303:case 172:case 171:case 178:case 304:case 312:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function Tk(e){switch(e.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 345:case 347:case 324:case 330:case 353:case 200:case 174:case 173:case 267:case 178:case 312:case 265:return!0;default:return!1}}function Sk(e){return e===219||e===208||e===263||e===231||e===175||e===176||e===266||e===306||e===281||e===262||e===218||e===177||e===273||e===271||e===276||e===264||e===291||e===174||e===173||e===267||e===270||e===274||e===280||e===169||e===303||e===172||e===171||e===178||e===304||e===265||e===168||e===260||e===353||e===345||e===355}function Ug(e){return e===262||e===282||e===263||e===264||e===265||e===266||e===267||e===272||e===271||e===278||e===277||e===270}function qg(e){return e===252||e===251||e===259||e===246||e===244||e===242||e===249||e===250||e===248||e===245||e===256||e===253||e===255||e===257||e===258||e===243||e===247||e===254||e===359}function Ho(e){return e.kind===168?e.parent&&e.parent.kind!==352||Wt(e):Sk(e.kind)}function xk(e){return Ug(e.kind)}function wk(e){return qg(e.kind)}function v3(e){let t=e.kind;return qg(t)||Ug(t)||Ck(e)}function Ck(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!X3(e)}function T3(e){let t=e.kind;return qg(t)||Ug(t)||t===241}function Ek(e){let t=e.kind;return t===283||t===166||t===80}function Ak(e){let t=e.kind;return t===110||t===80||t===211||t===295}function S3(e){let t=e.kind;return t===284||t===294||t===285||t===12||t===288}function kk(e){let t=e.kind;return t===291||t===293}function Dk(e){let t=e.kind;return t===11||t===294}function x3(e){let t=e.kind;return t===286||t===285}function Pk(e){let t=e.kind;return t===296||t===297}function zg(e){return e.kind>=316&&e.kind<=357}function w3(e){return e.kind===327||e.kind===326||e.kind===328||ul(e)||Wg(e)||P6(e)||cu(e)}function Wg(e){return e.kind>=334&&e.kind<=357}function Zc(e){return e.kind===178}function el(e){return e.kind===177}function Wi(e){if(!mm(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function Ik(e){return!!e.type}function C3(e){return!!e.initializer}function Nk(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function b0(e){return e.kind===291||e.kind===293||Fg(e)}function Ok(e){return e.kind===183||e.kind===233}function Mk(e){let t=v0;for(let r of e){if(!r.length)continue;let a=0;for(;ar.kind===t)}function Fk(e){let t=new Map;if(e)for(let r of e)t.set(r.escapedName,r);return t}function T0(e){return(e.flags&33554432)!==0}function Bk(){var e="";let t=r=>e+=r;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(r,a)=>t(r),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&Vi(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:Rn,decreaseIndent:Rn,clear:()=>e=""}}function Uk(e,t){return e.configFilePath!==t.configFilePath||A3(e,t)}function A3(e,t){return E_(e,t,moduleResolutionOptionDeclarations)}function qk(e,t){return E_(e,t,optionsAffectingProgramStructure)}function E_(e,t,r){return e!==t&&r.some(a=>!$2(j0(e,a),j0(t,a)))}function zk(e,t){for(;;){let r=t(e);if(r==="quit")return;if(r!==void 0)return r;if(ii(e))return;e=e.parent}}function Wk(e,t){let r=e.entries();for(let[a,_]of r){let p=t(_,a);if(p)return p}}function Vk(e,t){let r=e.keys();for(let a of r){let _=t(a);if(_)return _}}function Hk(e,t){e.forEach((r,a)=>{t.set(a,r)})}function Gk(e){let t=Zs.getText();try{return e(Zs),Zs.getText()}finally{Zs.clear(),Zs.writeKeyword(t)}}function sm(e){return e.end-e.pos}function Xk(e,t,r){var a,_;return(_=(a=e==null?void 0:e.resolvedModules)==null?void 0:a.get(t,r))==null?void 0:_.resolvedModule}function $k(e,t,r,a){e.resolvedModules||(e.resolvedModules=createModeAwareCache()),e.resolvedModules.set(t,a,r)}function Qk(e,t,r,a){e.resolvedTypeReferenceDirectiveNames||(e.resolvedTypeReferenceDirectiveNames=createModeAwareCache()),e.resolvedTypeReferenceDirectiveNames.set(t,a,r)}function Yk(e,t,r){var a,_;return(_=(a=e==null?void 0:e.resolvedTypeReferenceDirectiveNames)==null?void 0:a.get(t,r))==null?void 0:_.resolvedTypeReferenceDirective}function Kk(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function Zk(e,t){return e===t||e.resolvedModule===t.resolvedModule||!!e.resolvedModule&&!!t.resolvedModule&&e.resolvedModule.isExternalLibraryImport===t.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===t.resolvedModule.extension&&e.resolvedModule.resolvedFileName===t.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===t.resolvedModule.originalPath&&tD(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.node10Result===t.node10Result}function eD(e,t,r,a,_){var p,d;let h=(d=(p=e.resolvedModules)==null?void 0:p.get(r,a))==null?void 0:d.node10Result,l=h?tl(void 0,U.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,h,h.indexOf(nodeModulesPathPart+"@types/")>-1?`@types/${mangleScopedPackageName(_)}`:_):t.typesPackageExists(_)?tl(void 0,U.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,_,mangleScopedPackageName(_)):t.packageBundlesTypes(_)?tl(void 0,U.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,_,r):tl(void 0,U.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,r,mangleScopedPackageName(_));return l&&(l.repopulateInfo=()=>({moduleReference:r,mode:a,packageName:_===r?void 0:_})),l}function tD(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version}function k3({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function rD(e){return`${k3(e)}@${e.version}`}function nD(e,t){return e===t||e.resolvedTypeReferenceDirective===t.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!t.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===t.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary==!!t.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===t.resolvedTypeReferenceDirective.originalPath}function iD(e,t,r,a,_,p){N.assert(e.length===r.length);for(let d=0;d=0),Ia(t)[e]}function lD(e){let t=ri(e),r=to(t,e.pos);return`${t.fileName}(${r.line+1},${r.character+1})`}function D3(e,t){N.assert(e>=0);let r=Ia(t),a=e,_=t.text;if(a+1===r.length)return _.length-1;{let p=r[a],d=r[a+1]-1;for(N.assert(mr(_.charCodeAt(d)));p<=d&&mr(_.charCodeAt(d));)d--;return d}}function P3(e,t,r){return!(r&&r(t))&&!e.identifiers.has(t)}function zi(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function wl(e){return!zi(e)}function uD(e,t){return No(e)?t===e.expression:eu(e)?t===e.modifiers:Zl(e)?t===e.initializer:oo(e)?t===e.questionToken&&c3(e):_s(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||Gs(e.modifiers,t,Mf):_u(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||Gs(e.modifiers,t,Mf):d_(e)?t===e.exclamationToken:J_(e)?t===e.typeParameters||t===e.type||Gs(e.typeParameters,t,No):m_(e)?t===e.typeParameters||Gs(e.typeParameters,t,No):Qo(e)?t===e.typeParameters||t===e.type||Gs(e.typeParameters,t,No):x6(e)?t===e.modifiers||Gs(e.modifiers,t,Mf):!1}function Gs(e,t,r){return!e||zt(t)||!r(t)?!1:es(e,t)}function I3(e,t,r){if(t===void 0||t.length===0)return e;let a=0;for(;a[`${to(e,d.range.end).line}`,d])),a=new Map;return{getUnusedExpectations:_,markUsed:p};function _(){return jd(r.entries()).filter(([d,h])=>h.type===0&&!a.get(d)).map(([d,h])=>h)}function p(d){return r.has(`${d}`)?(a.set(`${d}`,!0),!0):!1}}function Go(e,t,r){return zi(e)?e.pos:zg(e)||e.kind===12?Nt((t||ri(e)).text,e.pos,!1,!0):r&&Wi(e)?Go(e.jsDoc[0],t):e.kind===358&&e._children.length>0?Go(e._children[0],t,r):Nt((t||ri(e)).text,e.pos,!1,!1,rT(e))}function gD(e,t){let r=!zi(e)&&q_(e)?ig(e.modifiers,L_):void 0;return r?Nt((t||ri(e)).text,r.end):Go(e,t)}function Xo(e,t,r=!1){return t_(e.text,t,r)}function bD(e){return!!Kr(e,g8)}function L3(e){return!!(B_(e)&&e.exportClause&&Nm(e.exportClause)&&e.exportClause.name.escapedText==="default")}function t_(e,t,r=!1){if(zi(t))return"";let a=e.substring(r?t.pos:Nt(e,t.pos),t.end);return bD(t)&&(a=a.split(/\r\n|\n|\r/).map(_=>gl(_.replace(/^\s*\*/,""))).join(` +`)),a}function _m(e,t=!1){return Xo(ri(e),e,t)}function vD(e){return e.pos}function TD(e,t){return Ml(e,t,vD,kr)}function ti(e){let t=e.emitNode;return t&&t.flags||0}function SD(e){let t=e.emitNode;return t&&t.internalFlags||0}function xD(e,t,r){if(t&&wD(e,r))return Xo(t,e);switch(e.kind){case 11:{let a=r&2?qT:r&1||ti(e)&16777216?Td:Sd;return e.singleQuote?"'"+a(e.text,39)+"'":'"'+a(e.text,34)+'"'}case 15:case 16:case 17:case 18:{let a=r&1||ti(e)&16777216?Td:Sd,_=e.rawText??iN(a(e.text,96));switch(e.kind){case 15:return"`"+_+"`";case 16:return"`"+_+"${";case 17:return"}"+_+"${";case 18:return"}"+_+"`"}break}case 9:case 10:return e.text;case 14:return r&4&&e.isUnterminated?e.text+(e.text.charCodeAt(e.text.length-1)===92?" /":"/"):e.text}return N.fail(`Literal kind '${e.kind}' not accounted for.`)}function wD(e,t){if(Ta(e)||!e.parent||t&4&&e.isUnterminated)return!1;if(lo(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(t&8)}return!o6(e)}function CD(e){return b_(e)?'"'+Sd(e)+'"':""+e}function ED(e){return T_(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function AD(e){return(C_(e)&7)!==0||J3(e)}function J3(e){let t=ym(e);return t.kind===260&&t.parent.kind===299}function cm(e){return Yi(e)&&(e.name.kind===11||lm(e))}function kD(e){return Yi(e)&&e.name.kind===11}function DD(e){return Yi(e)&&mn(e.name)}function R3(e){return Yi(e)||Ee(e)}function PD(e){return ID(e.valueDeclaration)}function ID(e){return!!e&&e.kind===267&&!e.body}function ND(e){return e.kind===312||e.kind===267||nm(e)}function lm(e){return!!(e.flags&2048)}function Gg(e){return cm(e)&&j3(e)}function j3(e){switch(e.parent.kind){case 312:return Zo(e.parent);case 268:return cm(e.parent.parent)&&ii(e.parent.parent.parent)&&!Zo(e.parent.parent.parent)}return!1}function F3(e){var t;return(t=e.declarations)==null?void 0:t.find(r=>!Gg(r)&&!(Yi(r)&&lm(r)))}function OD(e){return e===1||e===100||e===199}function Xg(e,t){return Zo(e)||OD(ni(t))&&!!e.commonJsModuleIndicator}function MD(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:W2(t,"alwaysStrict")||P8(e.statements)?!0:Zo(e)||B2(t)?ni(t)>=5?!0:!t.noImplicitUseStrict:!1}function LD(e){return!!(e.flags&33554432)||gr(e,2)}function B3(e,t){switch(e.kind){case 312:case 269:case 299:case 267:case 248:case 249:case 250:case 176:case 174:case 177:case 178:case 262:case 218:case 219:case 172:case 175:return!0;case 241:return!nm(t)}return!1}function JD(e){switch(N.type(e),e.kind){case 345:case 353:case 330:return!0;default:return U3(e)}}function U3(e){switch(N.type(e),e.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 324:case 263:case 231:case 264:case 265:case 352:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function $g(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function RD(e){return $g(e)||fm(e)}function jD(e){switch(e.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function FD(e){return um(e)||Yi(e)||ru(e)||t2(e)}function um(e){return $g(e)||B_(e)}function BD(e){return Kr(e.parent,t=>!!(getContainerFlags(t)&1))}function S0(e){return Kr(e.parent,t=>B3(t,t.parent))}function UD(e,t){let r=S0(e);for(;r;)t(r),r=S0(r)}function q3(e){return!e||sm(e)===0?"(Missing)":_m(e)}function qD(e){return e.declaration?q3(e.declaration.parameters[0].name):void 0}function zD(e){return e.kind===167&&!Qi(e.expression)}function Qg(e){var t;switch(e.kind){case 80:case 81:return(t=e.emitNode)!=null&&t.autoGenerate?void 0:e.escapedText;case 11:case 9:case 15:return Mn(e.text);case 167:return Qi(e.expression)?Mn(e.expression.text):void 0;case 295:return Yl(e);default:return N.assertNever(e)}}function WD(e){return N.checkDefined(Qg(e))}function vi(e){switch(e.kind){case 110:return"this";case 81:case 80:return sm(e)===0?Ot(e):_m(e);case 166:return vi(e.left)+"."+vi(e.right);case 211:return Ee(e.name)||jr(e.name)?vi(e.expression)+"."+vi(e.name):N.assertNever(e.name);case 318:return vi(e.left)+vi(e.right);case 295:return vi(e.namespace)+":"+vi(e.name);default:return N.assertNever(e)}}function VD(e,t,...r){let a=ri(e);return z3(a,e,t,...r)}function HD(e,t,r,...a){let _=Nt(e.text,t.pos);return j2(e,_,t.end-_,r,...a)}function z3(e,t,r,...a){let _=Zg(e,t);return j2(e,_.start,_.length,r,...a)}function GD(e,t,r,a){let _=Zg(e,t);return Kg(e,_.start,_.length,r,a)}function XD(e,t,r,a){let _=Nt(e.text,t.pos);return Kg(e,_,t.end-_,r,a)}function Yg(e,t,r){N.assertGreaterThanOrEqual(t,0),N.assertGreaterThanOrEqual(r,0),e&&(N.assertLessThanOrEqual(t,e.text.length),N.assertLessThanOrEqual(t+r,e.text.length))}function Kg(e,t,r,a,_){return Yg(e,t,r),{file:e,start:t,length:r,code:a.code,category:a.category,messageText:a.next?a:a.messageText,relatedInformation:_}}function $D(e,t,r){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}}function QD(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function YD(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}}function Ys(e,t){let r=ns(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);r.scan();let a=r.getTokenStart();return Hi(a,r.getTokenEnd())}function KD(e,t){let r=ns(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return r.scan(),r.getToken()}function ZD(e,t){let r=Nt(e.text,t.pos);if(t.body&&t.body.kind===241){let{line:a}=to(e,t.body.pos),{line:_}=to(e,t.body.end);if(a<_)return w_(r,D3(a,e)-r+1)}return Hi(r,t.end)}function Zg(e,t){let r=t;switch(t.kind){case 312:{let p=Nt(e.text,0,!1);return p===e.text.length?w_(0,0):Ys(e,p)}case 260:case 208:case 263:case 231:case 264:case 267:case 266:case 306:case 262:case 218:case 174:case 177:case 178:case 265:case 172:case 171:case 274:r=t.name;break;case 219:return ZD(e,t);case 296:case 297:{let p=Nt(e.text,t.pos),d=t.statements.length>0?t.statements[0].pos:t.end;return Hi(p,d)}case 253:case 229:{let p=Nt(e.text,t.pos);return Ys(e,p)}case 238:{let p=Nt(e.text,t.expression.end);return Ys(e,p)}case 357:{let p=Nt(e.text,t.tagName.pos);return Ys(e,p)}}if(r===void 0)return Ys(e,t.pos);N.assert(!cs(r));let a=zi(r),_=a||Dd(t)?r.pos:Nt(e.text,r.pos);return a?(N.assert(_===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),N.assert(_===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(N.assert(_>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),N.assert(_<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),Hi(_,r.end)}function eP(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function e2(e){return e.scriptKind===6}function tP(e){return!!(Qd(e)&2048)}function rP(e){return!!(Qd(e)&64&&!C4(e,e.parent))}function nP(e){return(C_(e)&7)===6}function iP(e){return(C_(e)&7)===4}function W3(e){return(C_(e)&7)===2}function aP(e){return(C_(e)&7)===1}function oP(e){return e.kind===213&&e.expression.kind===108}function t2(e){return e.kind===213&&e.expression.kind===102}function x0(e){return b6(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function V3(e){return ru(e)&&m6(e.argument)&&mn(e.argument.literal)}function Ea(e){return e.kind===244&&e.expression.kind===11}function pm(e){return!!(ti(e)&2097152)}function w0(e){return pm(e)&&os(e)}function sP(e){return Ee(e.name)&&!e.initializer}function C0(e){return pm(e)&&as(e)&&so(e.declarationList.declarations,sP)}function _P(e,t){return e.kind!==12?Wo(t.text,e.pos):void 0}function H3(e,t){let r=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?y_(s4(t,e.pos),Wo(t,e.pos)):Wo(t,e.pos);return $r(r,a=>t.charCodeAt(a.pos+1)===42&&t.charCodeAt(a.pos+2)===42&&t.charCodeAt(a.pos+3)!==47)}function r2(e){if(182<=e.kind&&e.kind<=205)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return e.parent.kind!==222;case 233:return Nl(e.parent)&&!M0(e);case 168:return e.parent.kind===200||e.parent.kind===195;case 80:(e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e)&&(e=e.parent),N.assert(e.kind===80||e.kind===166||e.kind===211,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{let{parent:t}=e;if(t.kind===186)return!1;if(t.kind===205)return!t.isTypeOf;if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 233:return Nl(t.parent)&&!M0(t);case 168:return e===t.constraint;case 352:return e===t.constraint;case 172:case 171:case 169:case 260:return e===t.type;case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:return e===t.type;case 179:case 180:case 181:return e===t.type;case 216:return e===t.type;case 213:case 214:case 215:return es(t.typeArguments,e)}}}return!1}function cP(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function lP(e,t){return r(e);function r(a){switch(a.kind){case 253:return t(a);case 269:case 241:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 296:case 297:case 256:case 258:case 299:return Bt(a,r)}}}function uP(e,t){return r(e);function r(a){switch(a.kind){case 229:t(a);let _=a.expression;_&&r(_);return;case 266:case 264:case 267:case 265:return;default:if(Gi(a)){if(a.name&&a.name.kind===167){r(a.name.expression);return}}else r2(a)||Bt(a,r)}}}function pP(e){return e&&e.kind===188?e.elementType:e&&e.kind===183?Jd(e.typeArguments):void 0}function fP(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function n2(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function dP(e){return n2(e)||im(e)}function G3(e){return e.parent.kind===261&&e.parent.parent.kind===243}function mP(e){return Wt(e)?uo(e.parent)&&Ct(e.parent.parent)&&Ja(e.parent.parent)===2||i2(e.parent):!1}function i2(e){return Wt(e)?Ct(e)&&Ja(e)===1:!1}function hP(e){return(ki(e)?W3(e)&&Ee(e.name)&&G3(e):oo(e)?O0(e)&&bm(e):Zl(e)&&O0(e))||i2(e)}function yP(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function gP(e,t){for(;;){if(t&&t(e),e.statement.kind!==256)return e.statement;e=e.statement}}function X3(e){return e&&e.kind===241&&Gi(e.parent)}function bP(e){return e&&e.kind===174&&e.parent.kind===210}function vP(e){return(e.kind===174||e.kind===177||e.kind===178)&&(e.parent.kind===210||e.parent.kind===231)}function TP(e){return e&&e.kind===1}function SP(e){return e&&e.kind===0}function a2(e,t,r,a){return yr(e==null?void 0:e.properties,_=>{if(!_s(_))return;let p=Qg(_.name);return t===p||a&&a===p?r(_):void 0})}function xP(e,t,r){return a2(e,t,a=>iu(a.initializer)?Yr(a.initializer.elements,_=>mn(_)&&_.text===r):void 0)}function $3(e){if(e&&e.statements.length){let t=e.statements[0].expression;return On(t,uo)}}function wP(e,t,r){return Q3(e,t,a=>iu(a.initializer)?Yr(a.initializer.elements,_=>mn(_)&&_.text===r):void 0)}function Q3(e,t,r){return a2($3(e),t,r)}function CP(e){return Kr(e.parent,Gi)}function EP(e){return Kr(e.parent,s3)}function E0(e){return Kr(e.parent,dn)}function AP(e){return Kr(e.parent,t=>dn(t)||Gi(t)?"quit":eu(t))}function kP(e){return Kr(e.parent,nm)}function DP(e){let t=Kr(e.parent,r=>dn(r)?"quit":L_(r));return t&&dn(t.parent)?E0(t.parent):E0(t??e)}function o2(e,t,r){for(N.assert(e.kind!==312);;){if(e=e.parent,!e)return N.fail();switch(e.kind){case 167:if(r&&dn(e.parent.parent))return e;e=e.parent.parent;break;case 170:e.parent.kind===169&&no(e.parent.parent)?e=e.parent.parent:no(e.parent)&&(e=e.parent);break;case 219:if(!t)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 312:return e}}}function PP(e){switch(e.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(e.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function IP(e){Ee(e)&&(Yo(e.parent)||os(e.parent))&&e.parent.name===e&&(e=e.parent);let t=o2(e,!0,!1);return ii(t)}function NP(e){let t=o2(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function OP(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 167:e=e.parent;break;case 262:case 218:case 219:if(!t)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return e;case 170:e.parent.kind===169&&no(e.parent.parent)?e=e.parent.parent:no(e.parent)&&(e=e.parent);break}}}function MP(e){if(e.kind===218||e.kind===219){let t=e,r=e.parent;for(;r.kind===217;)t=r,r=r.parent;if(r.kind===213&&r.expression===t)return r}}function LP(e){return e.kind===108||gd(e)}function gd(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function JP(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===110}function RP(e){var t;return!!e&&ki(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function jP(e){return!!e&&(_u(e)||_s(e))&&Ct(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function FP(e){switch(e.kind){case 183:return e.typeName;case 233:return co(e.expression)?e.expression:void 0;case 80:case 166:return e}}function BP(e){switch(e.kind){case 215:return e.tag;case 286:case 285:return e.tagName;default:return e.expression}}function Y3(e,t,r,a){if(e&&Yd(t)&&jr(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return r!==void 0&&(e?Yo(r):dn(r)&&!nS(t)&&!iS(t));case 177:case 178:case 174:return t.body!==void 0&&r!==void 0&&(e?Yo(r):dn(r));case 169:return e?r!==void 0&&r.body!==void 0&&(r.kind===176||r.kind===174||r.kind===178)&&YT(r)!==t&&a!==void 0&&a.kind===263:!1}return!1}function l_(e,t,r,a){return El(t)&&Y3(e,t,r,a)}function A0(e,t,r,a){return l_(e,t,r,a)||s2(e,t,r)}function s2(e,t,r){switch(t.kind){case 263:return mt(t.members,a=>A0(e,a,t,r));case 231:return!e&&mt(t.members,a=>A0(e,a,t,r));case 174:case 178:case 176:return mt(t.parameters,a=>l_(e,a,t,r));default:return!1}}function UP(e,t){if(l_(e,t))return!0;let r=QT(t);return!!r&&s2(e,r,t)}function qP(e,t,r){let a;if(im(t)){let{firstAccessor:_,secondAccessor:p,setAccessor:d}=P2(r.members,t),h=El(_)?_:p&&El(p)?p:void 0;if(!h||t!==h)return!1;a=d==null?void 0:d.parameters}else d_(t)&&(a=t.parameters);if(l_(e,t,r))return!0;if(a){for(let _ of a)if(!Xl(_)&&l_(e,_,t,r))return!0}return!1}function K3(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return K3(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function Lf(e){let{parent:t}=e;return t.kind===286||t.kind===285||t.kind===287?t.tagName===e:!1}function _2(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!Nl(e.parent)&&!Lm(e.parent);case 166:for(;e.parent.kind===166;)e=e.parent;return e.parent.kind===186||ul(e.parent)||Wf(e.parent)||r_(e.parent)||Lf(e);case 318:for(;r_(e.parent);)e=e.parent;return e.parent.kind===186||ul(e.parent)||Wf(e.parent)||r_(e.parent)||Lf(e);case 81:return Ct(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===186||ul(e.parent)||Wf(e.parent)||r_(e.parent)||Lf(e))return!0;case 9:case 10:case 11:case 15:case 110:return Z3(e);default:return!1}}function Z3(e){let{parent:t}=e;switch(t.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return t.initializer===e;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return t.expression===e;case 248:let r=t;return r.initializer===e&&r.initializer.kind!==261||r.condition===e||r.incrementor===e;case 249:case 250:let a=t;return a.initializer===e&&a.initializer.kind!==261||a.expression===e;case 216:case 234:return e===t.expression;case 239:return e===t.expression;case 167:return e===t.expression;case 170:case 294:case 293:case 305:return!0;case 233:return t.expression===e&&!r2(t);case 304:return t.objectAssignmentInitializer===e;case 238:return e===t.expression;default:return _2(t)}}function eT(e){for(;e.kind===166||e.kind===80;)e=e.parent;return e.kind===186}function zP(e){return Nm(e)&&!!e.parent.moduleSpecifier}function tT(e){return e.kind===271&&e.moduleReference.kind===283}function WP(e){return N.assert(tT(e)),e.moduleReference.expression}function VP(e){return fm(e)&&R2(e.initializer).arguments[0]}function HP(e){return e.kind===271&&e.moduleReference.kind!==283}function c2(e){return Wt(e)}function GP(e){return!Wt(e)}function Wt(e){return!!e&&!!(e.flags&524288)}function XP(e){return!!e&&!!(e.flags&134217728)}function $P(e){return!e2(e)}function rT(e){return!!e&&!!(e.flags&16777216)}function QP(e){return R_(e)&&Ee(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function Wl(e,t){if(e.kind!==213)return!1;let{expression:r,arguments:a}=e;if(r.kind!==80||r.escapedText!=="require"||a.length!==1)return!1;let _=a[0];return!t||Kn(_)}function nT(e){return iT(e,!1)}function fm(e){return iT(e,!0)}function YP(e){return nu(e)&&fm(e.parent.parent)}function iT(e,t){return ki(e)&&!!e.initializer&&Wl(t?R2(e.initializer):e.initializer,!0)}function aT(e){return as(e)&&e.declarationList.declarations.length>0&&so(e.declarationList.declarations,t=>nT(t))}function KP(e){return e===39||e===34}function ZP(e,t){return Xo(t,e).charCodeAt(0)===34}function k0(e){return Ct(e)||$o(e)||Ee(e)||j_(e)}function oT(e){return Wt(e)&&e.initializer&&Ct(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&co(e.name)&&u_(e.name,e.initializer.left)?e.initializer.right:e.initializer}function eI(e){let t=oT(e);return t&&A_(t,$l(e.name))}function tI(e,t){return yr(e.properties,r=>_s(r)&&Ee(r.name)&&r.name.escapedText==="value"&&r.initializer&&A_(r.initializer,t))}function rI(e){if(e&&e.parent&&Ct(e.parent)&&e.parent.operatorToken.kind===64){let t=$l(e.parent.left);return A_(e.parent.right,t)||nI(e.parent.left,e.parent.right,t)}if(e&&j_(e)&&p2(e)){let t=tI(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function A_(e,t){if(j_(e)){let r=Gl(e.expression);return r.kind===218||r.kind===219?e:void 0}if(e.kind===218||e.kind===231||e.kind===219||uo(e)&&(e.properties.length===0||t))return e}function nI(e,t,r){let a=Ct(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&A_(t.right,r);if(a&&u_(e,t.left))return a}function iI(e){let t=ki(e.parent)?e.parent.name:Ct(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&A_(e.right,$l(t))&&co(t)&&u_(t,e.left)}function aI(e){if(Ct(e.parent)){let t=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&Ct(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===64&&Ee(t.left))return t.left}else if(ki(e.parent))return e.parent.name}function u_(e,t){return P0(e)&&P0(t)?vd(e)===vd(t):ro(e)&&Jf(t)&&(t.expression.kind===110||Ee(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?u_(e,cT(t)):Jf(e)&&Jf(t)?io(e)===io(t)&&u_(e.expression,t.expression):!1}function l2(e){for(;Na(e,!0);)e=e.right;return e}function sT(e){return Ee(e)&&e.escapedText==="exports"}function _T(e){return Ee(e)&&e.escapedText==="module"}function u2(e){return(Br(e)||Vl(e))&&_T(e.expression)&&io(e)==="exports"}function Ja(e){let t=oI(e);return t===5||Wt(e)?t:0}function p2(e){return Ka(e.arguments)===3&&Br(e.expression)&&Ee(e.expression.expression)&&Ot(e.expression.expression)==="Object"&&Ot(e.expression.name)==="defineProperty"&&Qi(e.arguments[1])&&p_(e.arguments[0],!0)}function Jf(e){return Br(e)||Vl(e)}function Vl(e){return Ra(e)&&Qi(e.argumentExpression)}function k_(e,t){return Br(e)&&(!t&&e.expression.kind===110||Ee(e.name)&&p_(e.expression,!0))||f2(e,t)}function f2(e,t){return Vl(e)&&(!t&&e.expression.kind===110||co(e.expression)||k_(e.expression,!0))}function p_(e,t){return co(e)||k_(e,t)}function cT(e){return Br(e)?e.name:e.argumentExpression}function oI(e){if(j_(e)){if(!p2(e))return 0;let t=e.arguments[0];return sT(t)||u2(t)?8:k_(t)&&io(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!$o(e.left)||sI(l2(e))?0:p_(e.left.expression,!0)&&io(e.left)==="prototype"&&uo(uT(e))?6:lT(e.left)}function sI(e){return h6(e)&&lo(e.expression)&&e.expression.text==="0"}function dm(e){if(Br(e))return e.name;let t=Gl(e.argumentExpression);return lo(t)||Kn(t)?t:e}function io(e){let t=dm(e);if(t){if(Ee(t))return t.escapedText;if(Kn(t)||lo(t))return Mn(t.text)}}function lT(e){if(e.expression.kind===110)return 4;if(u2(e))return 2;if(p_(e.expression,!0)){if($l(e.expression))return 3;let t=e;for(;!Ee(t.expression);)t=t.expression;let r=t.expression;if((r.escapedText==="exports"||r.escapedText==="module"&&io(t)==="exports")&&k_(e))return 1;if(p_(e,!0)||Ra(e)&&S2(e))return 5}return 0}function uT(e){for(;Ct(e.right);)e=e.right;return e.right}function _I(e){return Ct(e)&&Ja(e)===3}function cI(e){return Wt(e)&&e.parent&&e.parent.kind===244&&(!Ra(e)||Vl(e))&&!!em(e.parent)}function lI(e,t){let{valueDeclaration:r}=e;(!r||!(t.flags&33554432&&!Wt(t)&&!(r.flags&33554432))&&k0(r)&&!k0(t)||r.kind!==t.kind&&R3(r))&&(e.valueDeclaration=t)}function uI(e){if(!e||!e.valueDeclaration)return!1;let t=e.valueDeclaration;return t.kind===262||ki(t)&&t.initializer&&Gi(t.initializer)}function pI(e){var t,r;switch(e.kind){case 260:case 208:return(t=Kr(e.initializer,a=>Wl(a,!0)))==null?void 0:t.arguments[0];case 272:return On(e.moduleSpecifier,Kn);case 271:return On((r=On(e.moduleReference,Om))==null?void 0:r.expression,Kn);case 273:case 280:return On(e.parent.moduleSpecifier,Kn);case 274:case 281:return On(e.parent.parent.moduleSpecifier,Kn);case 276:return On(e.parent.parent.parent.moduleSpecifier,Kn);default:N.assertNever(e)}}function fI(e){return pT(e)||N.failBadSyntaxKind(e.parent)}function pT(e){switch(e.parent.kind){case 272:case 278:return e.parent;case 283:return e.parent.parent;case 213:return t2(e.parent)||Wl(e.parent,!1)?e.parent:void 0;case 201:return N.assert(mn(e)),On(e.parent.parent,ru);default:return}}function d2(e){switch(e.kind){case 272:case 278:return e.moduleSpecifier;case 271:return e.moduleReference.kind===283?e.moduleReference.expression:void 0;case 205:return V3(e)?e.argument.literal:void 0;case 213:return e.arguments[0];case 267:return e.name.kind===11?e.name:void 0;default:return N.assertNever(e)}}function fT(e){switch(e.kind){case 272:return e.importClause&&On(e.importClause.namedBindings,E6);case 271:return e;case 278:return e.exportClause&&On(e.exportClause,Nm);default:return N.assertNever(e)}}function dT(e){return e.kind===272&&!!e.importClause&&!!e.importClause.name}function dI(e,t){if(e.name){let r=t(e);if(r)return r}if(e.namedBindings){let r=E6(e.namedBindings)?t(e.namedBindings):yr(e.namedBindings.elements,t);if(r)return r}}function mI(e){if(e)switch(e.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return e.questionToken!==void 0}return!1}function hI(e){let t=Mm(e)?g_(e.parameters):void 0,r=On(t&&t.name,Ee);return!!r&&r.escapedText==="new"}function Hl(e){return e.kind===353||e.kind===345||e.kind===347}function yI(e){return Hl(e)||T6(e)}function gI(e){return ou(e)&&Ct(e.expression)&&e.expression.operatorToken.kind===64?l2(e.expression):void 0}function mT(e){return ou(e)&&Ct(e.expression)&&Ja(e.expression)!==0&&Ct(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function m2(e){switch(e.kind){case 243:let t=Cl(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function Cl(e){return as(e)?g_(e.declarationList.declarations):void 0}function hT(e){return Yi(e)&&e.body&&e.body.kind===267?e.body:void 0}function bI(e){if(e.kind>=243&&e.kind<=259)return!0;switch(e.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function mm(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 324:case 330:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function yT(e,t){let r;n2(e)&&C3(e)&&Wi(e.initializer)&&(r=Rr(r,jb(e,ka(e.initializer.jsDoc))));let a=e;for(;a&&a.parent;){if(Wi(a)&&(r=Rr(r,jb(e,ka(a.jsDoc)))),a.kind===169){r=Rr(r,(t?L4:Zd)(a));break}if(a.kind===168){r=Rr(r,(t?j4:R4)(a));break}a=gT(a)}return r||$e}function jb(e,t){if(cs(t)){let r=$r(t.tags,a=>Fb(e,a));return t.tags===r?[t]:r}return Fb(e,t)?[t]:void 0}function Fb(e,t){return!(lu(t)||j6(t))||!t.parent||!cs(t.parent)||!is(t.parent.parent)||t.parent.parent===e}function gT(e){let t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||hT(t)||Ct(e)&&e.operatorToken.kind===64)return t;if(t.parent&&(Cl(t.parent)===e||Ct(t)&&t.operatorToken.kind===64))return t.parent;if(t.parent&&t.parent.parent&&(Cl(t.parent.parent)||m2(t.parent.parent)===e||mT(t.parent.parent)))return t.parent.parent}function vI(e){if(e.symbol)return e.symbol;if(!Ee(e.name))return;let t=e.name.escapedText,r=h2(e);if(!r)return;let a=Yr(r.parameters,_=>_.name.kind===80&&_.name.escapedText===t);return a&&a.symbol}function TI(e){if(cs(e.parent)&&e.parent.tags){let t=Yr(e.parent.tags,Hl);if(t)return t}return h2(e)}function h2(e){let t=y2(e);if(t)return Zl(t)&&t.type&&Gi(t.type)?t.type:Gi(t)?t:void 0}function y2(e){let t=bT(e);if(t)return mT(t)||gI(t)||m2(t)||Cl(t)||hT(t)||t}function bT(e){let t=g2(e);if(!t)return;let r=t.parent;if(r&&r.jsDoc&&t===wi(r.jsDoc))return r}function g2(e){return Kr(e.parent,cs)}function SI(e){let t=e.name.escapedText,{typeParameters:r}=e.parent.parent.parent;return r&&Yr(r,a=>a.name.escapedText===t)}function xI(e){return!!e.typeArguments}function vT(e){let t=e.parent;for(;;){switch(t.kind){case 226:let r=t.operatorToken.kind;return D_(r)&&t.left===e?r===64||Tm(r)?1:2:0;case 224:case 225:let a=t.operator;return a===46||a===47?2:0;case 249:case 250:return t.initializer===e?1:0;case 217:case 209:case 230:case 235:e=t;break;case 305:e=t.parent;break;case 304:if(t.name!==e)return 0;e=t.parent;break;case 303:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function wI(e){return vT(e)!==0}function CI(e){switch(e.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function EI(e){return km(e)||Dm(e)||Rg(e)||os(e)||J_(e)}function TT(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function AI(e){return TT(e,196)}function ST(e){return TT(e,217)}function kI(e){let t;for(;e&&e.kind===196;)t=e,e=e.parent;return[t,e]}function DI(e){for(;f6(e);)e=e.type;return e}function Gl(e,t){return ls(e,t?17:1)}function PI(e){return e.kind!==211&&e.kind!==212?!1:(e=ST(e.parent),e&&e.kind===220)}function II(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function xT(e){return!ii(e)&&!am(e)&&Ho(e.parent)&&e.parent.name===e}function NI(e){let t=e.parent;switch(e.kind){case 11:case 15:case 9:if(ao(t))return t.parent;case 80:if(Ho(t))return t.name===e?t:void 0;if(M_(t)){let r=t.parent;return h_(r)&&r.name===t?r:void 0}else{let r=t.parent;return Ct(r)&&Ja(r)!==0&&(r.left.symbol||r.symbol)&&Bl(r)===e?r:void 0}case 81:return Ho(t)&&t.name===e?t:void 0;default:return}}function wT(e){return Qi(e)&&e.parent.kind===167&&Ho(e.parent.parent)}function OI(e){let t=e.parent;switch(t.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return t.name===e;case 166:return t.right===e;case 208:case 276:return t.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function MI(e){return e.kind===271||e.kind===270||e.kind===273&&e.name||e.kind===274||e.kind===280||e.kind===276||e.kind===281||e.kind===277&&D0(e)?!0:Wt(e)&&(Ct(e)&&Ja(e)===2&&D0(e)||Br(e)&&Ct(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===64&&b2(e.parent.right))}function CT(e){switch(e.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return e.parent;case 166:do e=e.parent;while(e.parent.kind===166);return CT(e)}}function b2(e){return co(e)||Il(e)}function D0(e){let t=ET(e);return b2(t)}function ET(e){return ss(e)?e.expression:e.right}function LI(e){return e.kind===304?e.name:e.kind===303?e.initializer:e.parent.right}function AT(e){let t=kT(e);if(t&&Wt(e)){let r=F4(e);if(r)return r.class}return t}function kT(e){let t=hm(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function DT(e){if(Wt(e))return B4(e).map(t=>t.class);{let t=hm(e.heritageClauses,119);return t==null?void 0:t.types}}function PT(e){return su(e)?IT(e)||$e:dn(e)&&y_(Qf(AT(e)),DT(e))||$e}function IT(e){let t=hm(e.heritageClauses,96);return t?t.types:void 0}function hm(e,t){if(e){for(let r of e)if(r.token===t)return r}}function JI(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Si(e){return 83<=e&&e<=165}function NT(e){return 19<=e&&e<=79}function Rf(e){return Si(e)||NT(e)}function v2(e){return 128<=e&&e<=165}function OT(e){return Si(e)&&!v2(e)}function RI(e){return 119<=e&&e<=127}function jI(e){let t=Rl(e);return t!==void 0&&OT(t)}function FI(e){let t=Rl(e);return t!==void 0&&Si(t)}function BI(e){let t=D4(e);return!!t&&!v2(t)}function UI(e){return 2<=e&&e<=7}function qI(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:gr(e,512)&&(t|=2);break}return e.body||(t|=4),t}function zI(e){switch(e.kind){case 262:case 218:case 219:case 174:return e.body!==void 0&&e.asteriskToken===void 0&&gr(e,512)}return!1}function Qi(e){return Kn(e)||lo(e)}function T2(e){return Pm(e)&&(e.operator===40||e.operator===41)&&lo(e.operand)}function MT(e){let t=Bl(e);return!!t&&S2(t)}function S2(e){if(!(e.kind===167||e.kind===212))return!1;let t=Ra(e)?Gl(e.argumentExpression):e.expression;return!Qi(t)&&!T2(t)}function bd(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 9:return Mn(e.text);case 167:let t=e.expression;return Qi(t)?Mn(t.text):T2(t)?t.operator===41?nr(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return Yl(e);default:return N.assertNever(e)}}function P0(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function vd(e){return ro(e)?Ot(e):U_(e)?Kl(e):e.text}function LT(e){return ro(e)?e.escapedText:U_(e)?Yl(e):Mn(e.text)}function WI(e){return`__@${getSymbolId(e)}@${e.escapedName}`}function VI(e,t){return`__#${getSymbolId(e)}@${t}`}function HI(e){return Fr(e.escapedName,"__@")}function GI(e){return Fr(e.escapedName,"__#")}function XI(e){return e.kind===80&&e.escapedText==="Symbol"}function JT(e){return Ee(e)?Ot(e)==="__proto__":mn(e)&&e.text==="__proto__"}function Ks(e,t){switch(e=ls(e),e.kind){case 231:if(classHasDeclaredOrExplicitlyAssignedName(e))return!1;break;case 218:if(e.name)return!1;break;case 219:break;default:return!1}return typeof t=="function"?t(e):!0}function RT(e){switch(e.kind){case 303:return!JT(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return Ee(e.name)&&!!e.initializer;case 169:return Ee(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 208:return Ee(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 172:return!!e.initializer;case 226:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return Ee(e.left)}break;case 277:return!0}return!1}function $I(e,t){if(!RT(e))return!1;switch(e.kind){case 303:return Ks(e.initializer,t);case 304:return Ks(e.objectAssignmentInitializer,t);case 260:case 169:case 208:case 172:return Ks(e.initializer,t);case 226:return Ks(e.right,t);case 277:return Ks(e.expression,t)}}function QI(e){return e.escapedText==="push"||e.escapedText==="unshift"}function YI(e){return ym(e).kind===169}function ym(e){for(;e.kind===208;)e=e.parent.parent;return e}function KI(e){let t=e.kind;return t===176||t===218||t===262||t===219||t===174||t===177||t===178||t===267||t===312}function Ta(e){return Oa(e.pos)||Oa(e.end)}function ZI(e){return Fl(e,ii)||e}function eN(e){let t=x2(e),r=e.kind===214&&e.arguments!==void 0;return jT(e.kind,t,r)}function jT(e,t,r){switch(e){case 214:return r?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function tN(e){let t=x2(e),r=e.kind===214&&e.arguments!==void 0;return FT(e.kind,t,r)}function x2(e){return e.kind===226?e.operatorToken.kind:e.kind===224||e.kind===225?e.operator:e.kind}function FT(e,t,r){switch(e){case 361:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return pl(t)}case 216:case 235:case 224:case 221:case 222:case 220:case 223:return 16;case 225:return 17;case 213:return 18;case 214:return r?19:18;case 215:case 211:case 212:case 236:return 19;case 234:case 238:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 209:case 210:case 218:case 219:case 231:case 14:case 15:case 228:case 217:case 232:case 284:case 285:case 288:return 20;default:return-1}}function pl(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function rN(e){return $r(e,t=>{switch(t.kind){case 294:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function nN(){let e=[],t=[],r=new Map,a=!1;return{add:p,lookup:_,getGlobalDiagnostics:d,getDiagnostics:h};function _(l){let v;if(l.file?v=r.get(l.file.fileName):v=e,!v)return;let y=Ml(v,l,bt,wd);if(y>=0)return v[y]}function p(l){let v;l.file?(v=r.get(l.file.fileName),v||(v=[],r.set(l.file.fileName,v),yl(t,l.file.fileName,Ci))):(a&&(a=!1,e=e.slice()),v=e),yl(v,l,wd)}function d(){return a=!0,e}function h(l){if(l)return r.get(l)||[];let v=vv(t,y=>r.get(y));return e.length&&v.unshift(...e),v}}function iN(e){return e.replace(gx,"\\${")}function BT(e){return e&&!!(Fx(e)?e.templateFlags:e.head.templateFlags||mt(e.templateSpans,t=>!!t.literal.templateFlags))}function UT(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function aN(e,t,r){if(e.charCodeAt(0)===0){let a=r.charCodeAt(t+e.length);return a>=48&&a<=57?"\\x00":"\\0"}return Sx.get(e)||UT(e.charCodeAt(0))}function Td(e,t){let r=t===96?Tx:t===39?vx:bx;return e.replace(r,aN)}function Sd(e,t){return e=Td(e,t),W0.test(e)?e.replace(W0,r=>UT(r.charCodeAt(0))):e}function oN(e){return"&#x"+e.toString(16).toUpperCase()+";"}function sN(e){return e.charCodeAt(0)===0?"�":Cx.get(e)||oN(e.charCodeAt(0))}function qT(e,t){let r=t===39?wx:xx;return e.replace(r,sN)}function _N(e){let t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&cN(e.charCodeAt(0))?e.substring(1,t-1):e}function cN(e){return e===39||e===34||e===96}function zT(e){let t=e.charCodeAt(0);return t>=97&&t<=122||eo(e,"-")}function w2(e){let t=Po[1];for(let r=Po.length;r<=e;r++)Po.push(Po[r-1]+t);return Po[e]}function Jo(){return Po[1].length}function lN(){return eo(Gf,"-dev")||eo(Gf,"-insiders")}function uN(e){var t,r,a,_,p,d=!1;function h(K){let ue=Hd(K);ue.length>1?(_=_+ue.length-1,p=t.length-K.length+ka(ue),a=p-t.length===0):a=!1}function l(K){K&&K.length&&(a&&(K=w2(r)+K,a=!1),t+=K,h(K))}function v(K){K&&(d=!1),l(K)}function y(K){K&&(d=!0),l(K)}function C(){t="",r=0,a=!0,_=0,p=0,d=!1}function S(K){K!==void 0&&(t+=K,h(K),d=!1)}function k(K){K&&K.length&&v(K)}function L(K){(!a||K)&&(t+=e,_++,p=t.length,a=!0,d=!1)}function G(){return a?t.length:t.length+e.length}return C(),{write:v,rawWrite:S,writeLiteral:k,writeLine:L,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},getIndent:()=>r,getTextPos:()=>t.length,getLine:()=>_,getColumn:()=>a?r*Jo():t.length-p,getText:()=>t,isAtStartOfLine:()=>a,hasTrailingComment:()=>d,hasTrailingWhitespace:()=>!!t.length&&Vi(t.charCodeAt(t.length-1)),clear:C,writeKeyword:v,writeOperator:v,writeParameter:v,writeProperty:v,writePunctuation:v,writeSpace:v,writeStringLiteral:v,writeSymbol:(K,ue)=>v(K),writeTrailingSemicolon:v,writeComment:y,getTextPosWithWriteLine:G}}function pN(e){let t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(a){r(),e.writeLiteral(a)},writeStringLiteral(a){r(),e.writeStringLiteral(a)},writeSymbol(a,_){r(),e.writeSymbol(a,_)},writePunctuation(a){r(),e.writePunctuation(a)},writeKeyword(a){r(),e.writeKeyword(a)},writeOperator(a){r(),e.writeOperator(a)},writeParameter(a){r(),e.writeParameter(a)},writeSpace(a){r(),e.writeSpace(a)},writeProperty(a){r(),e.writeProperty(a)},writeComment(a){r(),e.writeComment(a)},writeLine(){r(),e.writeLine()},increaseIndent(){r(),e.increaseIndent()},decreaseIndent(){r(),e.decreaseIndent()}}}function C2(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function WT(e){return Ud(C2(e))}function VT(e,t,r){return t.moduleName||E2(e,t.fileName,r&&r.fileName)}function Bb(e,t){return e.getCanonicalFileName(Pa(t,e.getCurrentDirectory()))}function fN(e,t,r){let a=t.getExternalModuleFileFromDeclaration(r);if(!a||a.isDeclarationFile)return;let _=d2(r);if(!(_&&Kn(_)&&!rs(_.text)&&Bb(e,a.path).indexOf(Bb(e,zo(e.getCommonSourceDirectory())))===-1))return VT(e,a)}function E2(e,t,r){let a=l=>e.getCanonicalFileName(l),_=xi(r?$i(r):e.getCommonSourceDirectory(),e.getCurrentDirectory(),a),p=Pa(t,e.getCurrentDirectory()),d=bg(_,p,_,a,!1),h=Al(d);return r?hg(h):h}function dN(e,t,r){let a=t.getCompilerOptions(),_;return a.outDir?_=Al(XT(e,t,a.outDir)):_=Al(e),_+r}function mN(e,t){return HT(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),r=>t.getCanonicalFileName(r))}function HT(e,t,r,a,_){let p=t.declarationDir||t.outDir,d=p?k2(e,p,r,a,_):e,h=GT(d);return Al(d)+h}function GT(e){return ei(e,[".mjs",".mts"])?".d.mts":ei(e,[".cjs",".cts"])?".d.cts":ei(e,[".json"])?".d.json.ts":".d.ts"}function hN(e){return ei(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:ei(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:ei(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function A2(e){return e.outFile||e.out}function yN(e,t){var r;if(e.paths)return e.baseUrl??N.checkDefined(e.pathsBasePath||((r=t.getCurrentDirectory)==null?void 0:r.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function gN(e,t,r){let a=e.getCompilerOptions();if(A2(a)){let _=ni(a),p=a.emitDeclarationOnly||_===2||_===4;return $r(e.getSourceFiles(),d=>(p||!Zo(d))&&I0(d,e,r))}else{let _=t===void 0?e.getSourceFiles():[t];return $r(_,p=>I0(p,e,r))}}function I0(e,t,r){return!(t.getCompilerOptions().noEmitForJsFiles&&c2(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&(r||!(e2(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&!t.isSourceOfProjectReferenceRedirect(e.fileName))}function XT(e,t,r){return k2(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),a=>t.getCanonicalFileName(a))}function k2(e,t,r,a,_){let p=Pa(e,r);return p=_(p).indexOf(_(a))===0?p.substring(a.length):p,hr(t,p)}function bN(e,t,r,a,_,p,d){e.writeFile(r,a,_,h=>{t.add(fl(U.Could_not_write_file_0_Colon_1,r,h))},p,d)}function $T(e,t,r){if(e.length>Ei(e)&&!r(e)){let a=$i(e);$T(a,t,r),t(e)}}function vN(e,t,r,a,_,p){try{a(e,t,r)}catch{$T($i(pn(e)),_,p),a(e,t,r)}}function TN(e,t){let r=Ia(e);return __(r,t)}function Ca(e,t){return __(e,t)}function QT(e){return Yr(e.members,t=>J_(t)&&wl(t.body))}function D2(e){if(e&&e.parameters.length>0){let t=e.parameters.length===2&&Xl(e.parameters[0]);return e.parameters[t?1:0]}}function SN(e){let t=D2(e);return t&&t.type}function YT(e){if(e.parameters.length&&!cu(e)){let t=e.parameters[0];if(Xl(t))return t}}function Xl(e){return gm(e.name)}function gm(e){return!!e&&e.kind===80&&KT(e)}function xN(e){return!!Kr(e,t=>t.kind===186?!0:t.kind===80||t.kind===166?!1:"quit")}function wN(e){if(!gm(e))return!1;for(;M_(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===186}function KT(e){return e.escapedText==="this"}function P2(e,t){let r,a,_,p;return MT(t)?(r=t,t.kind===177?_=t:t.kind===178?p=t:N.fail("Accessor has wrong kind")):yr(e,d=>{if(im(d)&&N0(d)===N0(t)){let h=bd(d.name),l=bd(t.name);h===l&&(r?a||(a=d):r=d,d.kind===177&&!_&&(_=d),d.kind===178&&!p&&(p=d))}}),{firstAccessor:r,secondAccessor:a,getAccessor:_,setAccessor:p}}function I2(e){if(!Wt(e)&&os(e))return;let t=e.type;return t||!Wt(e)?t:Ig(e)?e.typeExpression&&e.typeExpression.type:tm(e)}function CN(e){return e.type}function EN(e){return cu(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(Wt(e)?X4(e):void 0)}function ZT(e){return Bo(Ul(e),t=>AN(t)?t.typeParameters:void 0)}function AN(e){return Ko(e)&&!(e.parent.kind===327&&(e.parent.tags.some(Hl)||e.parent.tags.some(L6)))}function kN(e){let t=D2(e);return t&&I2(t)}function eS(e,t,r,a){tS(e,t,r.pos,a)}function tS(e,t,r,a){a&&a.length&&r!==a[0].pos&&Ca(e,r)!==Ca(e,a[0].pos)&&t.writeLine()}function DN(e,t,r,a){r!==a&&Ca(e,r)!==Ca(e,a)&&t.writeLine()}function rS(e,t,r,a,_,p,d,h){if(a&&a.length>0){_&&r.writeSpace(" ");let l=!1;for(let v of a)l&&(r.writeSpace(" "),l=!1),h(e,t,r,v.pos,v.end,d),v.hasTrailingNewLine?r.writeLine():l=!0;l&&p&&r.writeSpace(" ")}}function PN(e,t,r,a,_,p,d){let h,l;if(d?_.pos===0&&(h=$r(Wo(e,_.pos),v)):h=Wo(e,_.pos),h){let y=[],C;for(let S of h){if(C){let k=Ca(t,C.end);if(Ca(t,S.pos)>=k+2)break}y.push(S),C=S}if(y.length){let S=Ca(t,ka(y).end);Ca(t,Nt(e,_.pos))>=S+2&&(eS(t,r,_,h),rS(e,t,r,y,!1,!0,p,a),l={nodePos:_.pos,detachedCommentEndPos:ka(y).end})}}return l;function v(y){return M3(e,y.pos)}}function IN(e,t,r,a,_,p){if(e.charCodeAt(a+1)===42){let d=Sg(t,a),h=t.length,l;for(let v=a,y=d.line;v<_;y++){let C=y+1===h?e.length+1:t[y+1];if(v!==a){l===void 0&&(l=Ub(e,t[d.line],a));let k=r.getIndent()*Jo()-l+Ub(e,v,C);if(k>0){let L=k%Jo(),G=w2((k-L)/Jo());for(r.rawWrite(G);L;)r.rawWrite(" "),L--}else r.rawWrite("")}NN(e,_,r,p,v,C),v=C}}else r.writeComment(e.substring(a,_))}function NN(e,t,r,a,_,p){let d=Math.min(t,p-1),h=qd(e.substring(_,d));h?(r.writeComment(h),d!==t&&r.writeLine()):r.rawWrite(a)}function Ub(e,t,r){let a=0;for(;t=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=L2(e)|536870912),t&&!(e.modifierFlagsCache&4096)&&(r||Wt(e))&&e.parent&&(e.modifierFlagsCache|=cS(e)|4096),e.modifierFlagsCache&-536875009)}function vm(e){return O2(e,!0)}function _S(e){return O2(e,!0,!0)}function M2(e){return O2(e,!1)}function cS(e){let t=0;return e.parent&&!Ma(e)&&(Wt(e)&&(U4(e)&&(t|=4),q4(e)&&(t|=8),z4(e)&&(t|=16),W4(e)&&(t|=64),V4(e)&&(t|=16384)),H4(e)&&(t|=8192)),t}function lS(e){return L2(e)|cS(e)}function L2(e){let t=q_(e)?ln(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=1),t}function ln(e){let t=0;if(e)for(let r of e)t|=J2(r.kind);return t}function J2(e){switch(e){case 126:return 32;case 125:return 4;case 124:return 16;case 123:return 8;case 128:return 256;case 129:return 128;case 95:return 1;case 138:return 2;case 87:return 2048;case 90:return 1024;case 134:return 512;case 148:return 64;case 164:return 16384;case 103:return 32768;case 147:return 65536;case 170:return 131072}return 0}function uS(e){return e===57||e===56}function JN(e){return uS(e)||e===54}function Tm(e){return e===76||e===77||e===78}function RN(e){return Ct(e)&&Tm(e.operatorToken.kind)}function pS(e){return uS(e)||e===61}function jN(e){return Ct(e)&&pS(e.operatorToken.kind)}function D_(e){return e>=64&&e<=79}function fS(e){let t=dS(e);return t&&!t.isImplements?t.class:void 0}function dS(e){if(g6(e)){if(Nl(e.parent)&&dn(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(Lm(e.parent)){let t=y2(e.parent);if(t&&dn(t))return{class:t,isImplements:!1}}}}function Na(e,t){return Ct(e)&&(t?e.operatorToken.kind===64:D_(e.operatorToken.kind))&&Lo(e.left)}function FN(e){return Na(e.parent)&&e.parent.left===e}function BN(e){if(Na(e,!0)){let t=e.left.kind;return t===210||t===209}return!1}function M0(e){return fS(e)!==void 0}function co(e){return e.kind===80||mS(e)}function UN(e){switch(e.kind){case 80:return e;case 166:do e=e.left;while(e.kind!==80);return e;case 211:do e=e.expression;while(e.kind!==80);return e}}function L0(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===236||e.kind===211&&L0(e.expression)||e.kind===217&&L0(e.expression)}function mS(e){return Br(e)&&Ee(e.name)&&co(e.expression)}function J0(e){if(Br(e)){let t=J0(e.expression);if(t!==void 0)return t+"."+vi(e.name)}else if(Ra(e)){let t=J0(e.expression);if(t!==void 0&&zl(e.argumentExpression))return t+"."+bd(e.argumentExpression)}else{if(Ee(e))return Vo(e.escapedText);if(U_(e))return Kl(e)}}function $l(e){return k_(e)&&io(e)==="prototype"}function qN(e){return e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e||e.parent.kind===236&&e.parent.name===e}function hS(e){return Br(e.parent)&&e.parent.name===e||Ra(e.parent)&&e.parent.argumentExpression===e}function zN(e){return M_(e.parent)&&e.parent.right===e||Br(e.parent)&&e.parent.name===e||r_(e.parent)&&e.parent.right===e}function WN(e){return e.kind===210&&e.properties.length===0}function VN(e){return e.kind===209&&e.elements.length===0}function HN(e){if(!(!GN(e)||!e.declarations)){for(let t of e.declarations)if(t.localSymbol)return t.localSymbol}}function GN(e){return e&&Ka(e.declarations)>0&&gr(e.declarations[0],1024)}function XN(e){return Yr(Px,t=>La(e,t))}function $N(e){let t=[],r=e.length;for(let a=0;a>6|192),t.push(_&63|128)):_<65536?(t.push(_>>12|224),t.push(_>>6&63|128),t.push(_&63|128)):_<131072?(t.push(_>>18|240),t.push(_>>12&63|128),t.push(_>>6&63|128),t.push(_&63|128)):N.assert(!1,"Unexpected code point")}return t}function yS(e){let t="",r=$N(e),a=0,_=r.length,p,d,h,l;for(;a<_;)p=r[a]>>2,d=(r[a]&3)<<4|r[a+1]>>4,h=(r[a+1]&15)<<2|r[a+2]>>6,l=r[a+2]&63,a+1>=_?h=l=64:a+2>=_&&(l=64),t+=qi.charAt(p)+qi.charAt(d)+qi.charAt(h)+qi.charAt(l),a+=3;return t}function QN(e){let t="",r=0,a=e.length;for(;r>4&3,y=(d&15)<<4|h>>2&15,C=(h&3)<<6|l&63;y===0&&h!==0?a.push(v):C===0&&l!==0?a.push(v,y):a.push(v,y,C),_+=4}return QN(a)}function gS(e,t){let r=b_(t)?t:t.readFile(e);if(!r)return;let a=parseConfigFileTextToJson(e,r);return a.error?void 0:a.config}function ZN(e,t){return gS(e,t)||{}}function bS(e,t){return!t.directoryExists||t.directoryExists(e)}function vS(e){switch(e.newLine){case 0:return Ex;case 1:case void 0:return Ax}}function Sm(e,t=e){return N.assert(t>=e||t===-1),{pos:e,end:t}}function eO(e,t){return Sm(e.pos,t)}function xd(e,t){return Sm(t,e.end)}function TS(e){let t=q_(e)?ig(e.modifiers,L_):void 0;return t&&!Oa(t.end)?xd(e,t.end):e}function tO(e){if(oo(e)||d_(e))return xd(e,e.name.pos);let t=q_(e)?wi(e.modifiers):void 0;return t&&!Oa(t.end)?xd(e,t.end):TS(e)}function rO(e){return e.pos===e.end}function nO(e,t){return Sm(e,e+nr(t).length)}function iO(e,t){return SS(e,e,t)}function aO(e,t,r){return P_(f_(e,r,!1),f_(t,r,!1),r)}function oO(e,t,r){return P_(e.end,t.end,r)}function SS(e,t,r){return P_(f_(e,r,!1),t.end,r)}function sO(e,t,r){return P_(e.end,f_(t,r,!1),r)}function _O(e,t,r,a){let _=f_(t,r,a);return x_(r,e.end,_)}function cO(e,t,r){return x_(r,e.end,t.end)}function lO(e,t){return!P_(e.pos,e.end,t)}function P_(e,t,r){return x_(r,e,t)===0}function f_(e,t,r){return Oa(e.pos)?-1:Nt(t.text,e.pos,!1,r)}function uO(e,t,r,a){let _=Nt(r.text,e,!1,a),p=fO(_,t,r);return x_(r,p??t,_)}function pO(e,t,r,a){let _=Nt(r.text,e,!1,a);return x_(r,e,Math.min(t,_))}function fO(e,t=0,r){for(;e-- >t;)if(!Vi(r.text.charCodeAt(e)))return e}function dO(e){let t=Fl(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function mO(e){return $r(e.declarations,xS)}function xS(e){return ki(e)&&e.initializer!==void 0}function hO(e){return e.watch&&Qr(e,"watch")}function yO(e){e.close()}function wS(e){return e.flags&33554432?e.links.checkFlags:0}function gO(e,t=!1){if(e.valueDeclaration){let r=t&&e.declarations&&Yr(e.declarations,Qo)||e.flags&32768&&Yr(e.declarations,m_)||e.valueDeclaration,a=Qd(r);return e.parent&&e.parent.flags&32?a:a&-29}if(wS(e)&6){let r=e.links.checkFlags,a=r&1024?8:r&256?4:16,_=r&2048?32:0;return a|_}return e.flags&4194304?36:0}function bO(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function vO(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function TO(e){return Do(e)===1}function SO(e){return Do(e)!==0}function Do(e){let{parent:t}=e;switch(t==null?void 0:t.kind){case 217:return Do(t);case 225:case 224:let{operator:r}=t;return r===46||r===47?2:0;case 226:let{left:a,operatorToken:_}=t;return a===e&&D_(_.kind)?_.kind===64?1:2:0;case 211:return t.name!==e?0:Do(t);case 303:{let p=Do(t.parent);return e===t.name?xO(p):p}case 304:return e===t.objectAssignmentInitializer?0:Do(t.parent);case 209:return Do(t);default:return 0}}function xO(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return N.assertNever(e)}}function CS(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(typeof e[r]=="object"){if(!CS(e[r],t[r]))return!1}else if(typeof e[r]!="function"&&e[r]!==t[r])return!1;return!0}function wO(e,t){e.forEach(t),e.clear()}function ES(e,t,r){let{onDeleteValue:a,onExistingValue:_}=r;e.forEach((p,d)=>{let h=t.get(d);h===void 0?(e.delete(d),a(p,d)):_&&_(p,h,d)})}function CO(e,t,r){ES(e,t,r);let{createNewValue:a}=r;t.forEach((_,p)=>{e.has(p)||e.set(p,a(p,_))})}function EO(e){if(e.flags&32){let t=AS(e);return!!t&&gr(t,256)}return!1}function AS(e){var t;return(t=e.declarations)==null?void 0:t.find(dn)}function jf(e){return e.flags&138117121?e.objectFlags:0}function AO(e,t){return!!Zv(e,r=>t(r)?!0:void 0)}function kO(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&x6(e.declarations[0])}function DO({moduleSpecifier:e}){return mn(e)?e.text:_m(e)}function kS(e){let t;return Bt(e,r=>{wl(r)&&(t=r)},r=>{for(let a=r.length-1;a>=0;a--)if(wl(r[a])){t=r[a];break}}),t}function PO(e,t,r=!0){return e.has(t)?!1:(e.set(t,r),!0)}function IO(e){return dn(e)||su(e)||Am(e)}function DS(e){return e>=182&&e<=205||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===233||e===319||e===320||e===321||e===322||e===323||e===324||e===325}function $o(e){return e.kind===211||e.kind===212}function NO(e){return e.kind===211?e.name:(N.assert(e.kind===212),e.argumentExpression)}function OO(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function MO(e){return e.kind===275||e.kind===279}function R2(e){for(;$o(e);)e=e.expression;return e}function LO(e,t){if($o(e.parent)&&hS(e))return r(e.parent);function r(a){if(a.kind===211){let _=t(a.name);if(_!==void 0)return _}else if(a.kind===212)if(Ee(a.argumentExpression)||Kn(a.argumentExpression)){let _=t(a.argumentExpression);if(_!==void 0)return _}else return;if($o(a.expression))return r(a.expression);if(Ee(a.expression))return t(a.expression)}}function JO(e,t){for(;;){switch(e.kind){case 225:e=e.operand;continue;case 226:e=e.left;continue;case 227:e=e.condition;continue;case 215:e=e.tag;continue;case 213:if(t)return e;case 234:case 212:case 211:case 235:case 360:case 238:e=e.expression;continue}return e}}function RO(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.isAssigned=void 0,this.links=void 0}function jO(e,t){this.flags=t,(N.isDebugging||xa)&&(this.checker=e)}function FO(e,t){this.flags=t,N.isDebugging&&(this.checker=e)}function Gh(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function BO(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function UO(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function qO(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(a=>a)}function zO(e){Z2.push(e),e(wt)}function PS(e){Object.assign(wt,e),yr(Z2,t=>t(wt))}function I_(e,t,r=0){return e.replace(/{(\d+)}/g,(a,_)=>""+N.checkDefined(t[+_+r]))}function IS(e){kl=e}function NS(e){!kl&&e&&(kl=e())}function N_(e){return kl&&kl[e.key]||e.message}function Ao(e,t,r,a){Yg(void 0,t,r);let _=N_(a);return arguments.length>4&&(_=I_(_,arguments,4)),{file:void 0,start:t,length:r,messageText:_,category:a.category,code:a.code,reportsUnnecessary:a.reportsUnnecessary,fileName:e}}function WO(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function OS(e,t){let r=t.fileName||"",a=t.text.length;N.assertEqual(e.fileName,r),N.assertLessThanOrEqual(e.start,a),N.assertLessThanOrEqual(e.start+e.length,a);let _={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){_.relatedInformation=[];for(let p of e.relatedInformation)WO(p)&&p.fileName===r?(N.assertLessThanOrEqual(p.start,a),N.assertLessThanOrEqual(p.start+p.length,a),_.relatedInformation.push(OS(p,t))):_.relatedInformation.push(p)}return _}function $a(e,t){let r=[];for(let a of e)r.push(OS(a,t));return r}function j2(e,t,r,a){Yg(e,t,r);let _=N_(a);return arguments.length>4&&(_=I_(_,arguments,4)),{file:e,start:t,length:r,messageText:_,category:a.category,code:a.code,reportsUnnecessary:a.reportsUnnecessary,reportsDeprecated:a.reportsDeprecated}}function VO(e,t){let r=N_(t);return arguments.length>2&&(r=I_(r,arguments,2)),r}function fl(e){let t=N_(e);return arguments.length>1&&(t=I_(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function HO(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}function tl(e,t){let r=N_(t);return arguments.length>2&&(r=I_(r,arguments,2)),{messageText:r,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function GO(e,t){let r=e;for(;r.next;)r=r.next[0];r.next=[t]}function qb(e){return e.file?e.file.path:void 0}function F2(e,t){return wd(e,t)||XO(e,t)||0}function wd(e,t){return Ci(qb(e),qb(t))||kr(e.start,t.start)||kr(e.length,t.length)||kr(e.code,t.code)||MS(e.messageText,t.messageText)||0}function XO(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?kr(e.relatedInformation.length,t.relatedInformation.length)||yr(e.relatedInformation,(r,a)=>{let _=t.relatedInformation[a];return F2(r,_)})||0:e.relatedInformation?-1:1}function MS(e,t){if(typeof e=="string"&&typeof t=="string")return Ci(e,t);if(typeof e=="string")return-1;if(typeof t=="string")return 1;let r=Ci(e.messageText,t.messageText);if(r)return r;if(!e.next&&!t.next)return 0;if(!e.next)return-1;if(!t.next)return 1;let a=Math.min(e.next.length,t.next.length);for(let _=0;_t.next.length?1:0}function R0(e){return e===4||e===2||e===1||e===6?1:0}function LS(e){if(e.transformFlags&2)return x3(e)||dl(e)?e:Bt(e,LS)}function $O(e){return e.isDeclarationFile?void 0:LS(e)}function QO(e){return(e.impliedNodeFormat===99||ei(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function JS(e){switch(RS(e)){case 3:return _=>{_.externalModuleIndicator=ml(_)||!_.isDeclarationFile||void 0};case 1:return _=>{_.externalModuleIndicator=ml(_)};case 2:let t=[ml];(e.jsx===4||e.jsx===5)&&t.push($O),t.push(QO);let r=ug(...t);return _=>void(_.externalModuleIndicator=r(_))}}function Ql(e){return e.target??(e.module===100&&9||e.module===199&&99||1)}function ni(e){return typeof e.module=="number"?e.module:Ql(e)>=2?5:1}function YO(e){return e>=5&&e<=99}function O_(e){let t=e.moduleResolution;if(t===void 0)switch(ni(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;default:t=1;break}return t}function RS(e){return e.moduleDetection||(ni(e)===100||ni(e)===199?3:2)}function KO(e){switch(ni(e)){case 1:case 2:case 5:case 6:case 7:case 99:case 100:case 199:return!0;default:return!1}}function B2(e){return!!(e.isolatedModules||e.verbatimModuleSyntax)}function ZO(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function eM(e){return e.allowUnreachableCode===!1}function tM(e){return e.allowUnusedLabels===!1}function rM(e){return!!(z2(e)&&e.declarationMap)}function U2(e){if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(ni(e)){case 100:case 199:return!0}}function nM(e){return e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:U2(e)||ni(e)===4||O_(e)===100}function q2(e){return e>=3&&e<=99||e===100}function iM(e){return!!e.noDtsResolution||O_(e)!==100}function aM(e){let t=O_(e);if(!q2(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}function oM(e){let t=O_(e);if(!q2(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}function jS(e){return e.resolveJsonModule!==void 0?e.resolveJsonModule:O_(e)===100}function z2(e){return!!(e.declaration||e.composite)}function sM(e){return!!(e.preserveConstEnums||B2(e))}function _M(e){return!!(e.incremental||e.composite)}function W2(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function FS(e){return e.allowJs===void 0?!!e.checkJs:e.allowJs}function cM(e){return e.useDefineForClassFields===void 0?Ql(e)>=9:e.useDefineForClassFields}function lM(e){return e.useDefineForClassFields!==!1&&Ql(e)>=9}function uM(e,t){return E_(t,e,semanticDiagnosticsOptionDeclarations)}function pM(e,t){return E_(t,e,affectsEmitOptionDeclarations)}function fM(e,t){return E_(t,e,affectsDeclarationPathOptionDeclarations)}function j0(e,t){return t.strictFlag?W2(e,t.name):e[t.name]}function dM(e){let t=e.jsx;return t===2||t===4||t===5}function mM(e,t){let r=t==null?void 0:t.pragmas.get("jsximportsource"),a=zt(r)?r[r.length-1]:r;return e.jsx===4||e.jsx===5||e.jsxImportSource||a?(a==null?void 0:a.arguments.factory)||e.jsxImportSource||"react":void 0}function hM(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function yM(e){let t=!1;for(let r=0;r_,getSymlinkedDirectories:()=>r,getSymlinkedDirectoriesByRealpath:()=>a,setSymlinkedFile:(h,l)=>(_||(_=new Map)).set(h,l),setSymlinkedDirectory:(h,l)=>{let v=xi(h,e,t);rx(v)||(v=zo(v),l!==!1&&!(r!=null&&r.has(v))&&(a||(a=Fd())).add(zo(l.realPath),h),(r||(r=new Map)).set(v,l))},setSymlinksFromResolutions(h,l){var v,y;N.assert(!p),p=!0;for(let C of h)(v=C.resolvedModules)==null||v.forEach(S=>d(this,S.resolvedModule)),(y=C.resolvedTypeReferenceDirectiveNames)==null||y.forEach(S=>d(this,S.resolvedTypeReferenceDirective));l.forEach(C=>d(this,C.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>p};function d(h,l){if(!l||!l.originalPath||!l.resolvedFileName)return;let{resolvedFileName:v,originalPath:y}=l;h.setSymlinkedFile(xi(y,e,t),v);let[C,S]=bM(v,y,e,t)||$e;C&&S&&h.setSymlinkedDirectory(S,{real:C,realPath:xi(C,e,t)})}}function bM(e,t,r,a){let _=Ai(Pa(e,r)),p=Ai(Pa(t,r)),d=!1;for(;_.length>=2&&p.length>=2&&!zb(_[_.length-2],a)&&!zb(p[p.length-2],a)&&a(_[_.length-1])===a(p[p.length-1]);)_.pop(),p.pop(),d=!0;return d?[Uo(_),Uo(p)]:void 0}function zb(e,t){return e!==void 0&&(t(e)==="node_modules"||Fr(e,"@"))}function vM(e){return dg(e.charCodeAt(0))?e.slice(1):void 0}function TM(e,t,r){let a=Fv(e,t,r);return a===void 0?void 0:vM(a)}function SM(e){return e.replace(Ad,xM)}function xM(e){return"\\"+e}function Ff(e,t,r){let a=V2(e,t,r);return!a||!a.length?void 0:`^(${a.map(d=>`(${d})`).join("|")})${r==="exclude"?"($|/)":"$"}`}function V2(e,t,r){if(!(e===void 0||e.length===0))return Bo(e,a=>a&&US(a,t,r,e6[r]))}function BS(e){return!/[.*?]/.test(e)}function wM(e,t,r){let a=e&&US(e,t,r,e6[r]);return a&&`^(${a})${r==="exclude"?"($|/)":"$"}`}function US(e,t,r,{singleAsteriskRegexFragment:a,doubleAsteriskRegexFragment:_,replaceWildcardCharacter:p}){let d="",h=!1,l=Vd(e,t),v=ka(l);if(r!=="exclude"&&v==="**")return;l[0]=S_(l[0]),BS(v)&&l.push("**","*");let y=0;for(let C of l){if(C==="**")d+=_;else if(r==="directories"&&(d+="(",y++),h&&(d+=fn),r!=="exclude"){let S="";C.charCodeAt(0)===42?(S+="([^./]"+a+")?",C=C.substr(1)):C.charCodeAt(0)===63&&(S+="[^./]",C=C.substr(1)),S+=C.replace(Ad,p),S!==C&&(d+=Uf),d+=S}else d+=C.replace(Ad,p);h=!0}for(;y>0;)d+=")?",y--;return d}function Xh(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function qS(e,t,r,a,_){e=pn(e),_=pn(_);let p=hr(_,e);return{includeFilePatterns:Aa(V2(r,p,"files"),d=>`^${d}$`),includeFilePattern:Ff(r,p,"files"),includeDirectoryPattern:Ff(r,p,"directories"),excludePattern:Ff(t,p,"exclude"),basePaths:EM(e,r,a)}}function Bf(e,t){return new RegExp(e,t?"":"i")}function CM(e,t,r,a,_,p,d,h,l){e=pn(e),p=pn(p);let v=qS(e,r,a,_,p),y=v.includeFilePatterns&&v.includeFilePatterns.map(ue=>Bf(ue,_)),C=v.includeDirectoryPattern&&Bf(v.includeDirectoryPattern,_),S=v.excludePattern&&Bf(v.excludePattern,_),k=y?y.map(()=>[]):[[]],L=new Map,G=Ud(_);for(let ue of v.basePaths)K(ue,hr(p,ue),d);return o_(k);function K(ue,Y,B){let ae=G(l(Y));if(L.has(ae))return;L.set(ae,!0);let{files:Ce,directories:Ze}=h(ue);for(let qe of Xf(Ce,Ci)){let rt=hr(ue,qe),it=hr(Y,qe);if(!(t&&!ei(rt,t))&&!(S&&S.test(it)))if(!y)k[0].push(rt);else{let Ir=_l(y,ar=>ar.test(it));Ir!==-1&&k[Ir].push(rt)}}if(!(B!==void 0&&(B--,B===0)))for(let qe of Xf(Ze,Ci)){let rt=hr(ue,qe),it=hr(Y,qe);(!C||C.test(it))&&(!S||!S.test(it))&&K(rt,it,B)}}}function EM(e,t,r){let a=[e];if(t){let _=[];for(let p of t){let d=v_(p)?p:pn(hr(e,p));_.push(AM(d))}_.sort(_g(!r));for(let p of _)so(a,d=>!Yv(d,p,e,!r))&&a.push(p)}return a}function AM(e){let t=bv(e,kx);return t<0?$v(e)?S_($i(e)):e:e.substring(0,e.lastIndexOf(fn,t))}function zS(e,t){return t||WS(e)||3}function WS(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}function VS(e,t){let r=e&&FS(e);if(!t||t.length===0)return r?Dl:Ro;let a=r?Dl:Ro,_=o_(a);return[...a,...Za(t,d=>d.scriptKind===7||r&&kM(d.scriptKind)&&_.indexOf(d.extension)===-1?[d.extension]:void 0)]}function HS(e,t){return!e||!jS(e)?t:t===Dl?Ix:t===Ro?Dx:[...t,[".json"]]}function kM(e){return e===1||e===2}function H2(e){return mt(r6,t=>La(e,t))}function G2(e){return mt(t6,t=>La(e,t))}function GS({imports:e},t=ug(H2,G2)){return ng(e,({text:r})=>rs(r)&&!ei(r,Cm)?t(r):void 0)||!1}function DM(e,t,r,a){if(e==="js"||t===99)return shouldAllowImportingTsExtension(r)&&_()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!shouldAllowImportingTsExtension(r))return GS(a)?2:0;return _();function _(){let p=!1,d=a.imports.length?a.imports.map(h=>h.text):c2(a)?PM(a).map(h=>h.arguments[0].text):$e;for(let h of d)if(rs(h)){if(ei(h,Cm))continue;if(G2(h))return 3;H2(h)&&(p=!0)}return p?2:0}}function PM(e){let t=0,r;for(let a of e.statements){if(t>3)break;aT(a)?r=y_(r,a.declarationList.declarations.map(_=>_.initializer)):ou(a)&&Wl(a.expression,!0)?r=xt(r,a.expression):t++}return r||$e}function IM(e,t,r){if(!e)return!1;let a=VS(t,r);for(let _ of o_(HS(t,a)))if(La(e,_))return!0;return!1}function Wb(e){let t=e.match(/\//g);return t?t.length:0}function NM(e,t){return kr(Wb(e),Wb(t))}function Al(e){for(let t of Em){let r=XS(e,t);if(r!==void 0)return r}return e}function XS(e,t){return La(e,t)?$S(e,t):void 0}function $S(e,t){return e.substring(0,e.length-t.length)}function OM(e,t){return Qv(e,t,Em,!1)}function QS(e){let t=e.indexOf("*");return t===-1?e:e.indexOf("*",t+1)!==-1?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function MM(e){return Za(sg(e),t=>QS(t))}function Oa(e){return!(e>=0)}function YS(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||Fr(e,".d.")&&ts(e,".ts")}function LM(e){return YS(e)||e===".json"}function rl(e){let t=X2(e);return t!==void 0?t:N.fail(`File ${e} has unknown extension.`)}function JM(e){return X2(e)!==void 0}function X2(e){return Yr(Em,t=>La(e,t))}function RM(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function jM(e,t){let r=[];for(let a of e){if(a===t)return t;b_(a)||r.push(a)}return jv(r,a=>a,t)}function FM(e,t){let r=e.indexOf(t);return N.assert(r!==-1),e.slice(r)}function nl(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),N.assert(e.relatedInformation!==$e,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function BM(e,t){N.assert(e.length!==0);let r=t(e[0]),a=r;for(let _=1;_a&&(a=p)}return{min:r,max:a}}function UM(e){return{pos:Go(e),end:e.end}}function qM(e,t){let r=t.pos-1,a=Math.min(e.text.length,Nt(e.text,t.end)+1);return{pos:r,end:a}}function zM(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)}function $2(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&kv(e,t,$2)}function xm(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:let v=e.length-1,y=0;for(;e.charCodeAt(y)===48;)y++;return e.slice(y,v)||"0"}let r=2,a=e.length-1,_=(a-r)*t,p=new Uint16Array((_>>>4)+(_&15?1:0));for(let v=a-1,y=0;v>=r;v--,y+=t){let C=y>>>4,S=e.charCodeAt(v),L=(S<=57?S-48:10+S-(S<=70?65:97))<<(y&15);p[C]|=L;let G=L>>>16;G&&(p[C+1]|=G)}let d="",h=p.length-1,l=!0;for(;l;){let v=0;l=!1;for(let y=h;y>=0;y--){let C=v<<16|p[y],S=C/10|0;p[y]=S,v=C-S*10,S&&!l&&(h=y,l=!0)}d=v+d}return d}function Q2({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function WM(e){if(ZS(e,!1))return KS(e)}function KS(e){let t=e.startsWith("-"),r=xm(`${t?e.slice(1):e}n`);return{negative:t,base10Value:r}}function ZS(e,t){if(e==="")return!1;let r=ns(99,!1),a=!0;r.setOnError(()=>a=!1),r.setText(e+"n");let _=r.scan(),p=_===41;p&&(_=r.scan());let d=r.getTokenFlags();return a&&_===10&&r.getTokenEnd()===e.length+1&&!(d&512)&&(!t||e===Q2({negative:p,base10Value:xm(r.getTokenValue())}))}function VM(e){return!!(e.flags&33554432)||eT(e)||XM(e)||GM(e)||!(_2(e)||HM(e))}function HM(e){return Ee(e)&&_u(e.parent)&&e.parent.name===e}function GM(e){for(;e.kind===80||e.kind===211;)e=e.parent;if(e.kind!==167)return!1;if(gr(e.parent,256))return!0;let t=e.parent.parent.kind;return t===264||t===187}function XM(e){if(e.kind!==80)return!1;let t=Kr(e.parent,r=>{switch(r.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}});return(t==null?void 0:t.token)===119||(t==null?void 0:t.parent.kind)===264}function $M(e){return R_(e)&&Ee(e.typeName)}function QM(e,t=_o){if(e.length<2)return!0;let r=e[0];for(let a=1,_=e.length;a<_;a++){let p=e[a];if(!t(r,p))return!1}return!0}function Cd(e,t){return e.pos=t,e}function ex(e,t){return e.end=t,e}function Ya(e,t,r){return ex(Cd(e,t),r)}function Ed(e,t,r){return Ya(e,t,t+r)}function YM(e,t){return e&&(e.flags=t),e}function Xi(e,t){return e&&t&&(e.parent=t),e}function a_(e,t){if(e)for(let r of e)Xi(r,t);return e}function tx(e,t){if(!e)return e;return eg(e,zg(e)?r:_),e;function r(p,d){if(t&&p.parent===d)return"skip";Xi(p,d)}function a(p){if(Wi(p))for(let d of p.jsDoc)r(d,p),eg(d,r)}function _(p,d){return r(p,d)||a(p)}}function KM(e){return!Im(e)}function ZM(e){return iu(e)&&so(e.elements,KM)}function eL(e){for(N.assertIsDefined(e.parent);;){let t=e.parent;if(is(t)){e=t;continue}if(ou(t)||h6(t)||c8(t)&&(t.initializer===e||t.incrementor===e))return!0;if(F_(t)){if(e!==ka(t.elements))return!0;e=t;continue}if(Ct(t)&&t.operatorToken.kind===28){if(e===t.left)return!0;e=t;continue}return!1}}function rx(e){return mt(ignoredPaths,t=>eo(e,t))}function tL(e){if(!e.parent)return;switch(e.kind){case 168:let{parent:r}=e;return r.kind===195?void 0:r.typeParameters;case 169:return e.parent.parameters;case 204:return e.parent.templateSpans;case 239:return e.parent.templateSpans;case 170:{let{parent:a}=e;return U8(a)?a.modifiers:void 0}case 298:return e.parent.heritageClauses}let{parent:t}=e;if(Wg(e))return P6(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return jg(e)?t.members:void 0;case 192:case 193:return t.types;case 189:case 209:case 361:case 275:case 279:return t.elements;case 210:case 292:return t.properties;case 213:case 214:return g0(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return S3(e)?t.children:void 0;case 286:case 285:return g0(e)?t.typeArguments:void 0;case 241:case 296:case 297:case 268:return t.statements;case 269:return t.clauses;case 263:case 231:return no(e)?t.members:void 0;case 266:return y8(e)?t.members:void 0;case 312:return t.statements}}function rL(e){if(!e.typeParameters){if(mt(e.parameters,t=>!I2(t)))return!0;if(e.kind!==219){let t=g_(e.parameters);if(!(t&&Xl(t)))return!0}}return!1}function nL(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function nx(e){return e.kind===260&&e.parent.kind===299}function iL(e){let t=e.valueDeclaration&&ym(e.valueDeclaration);return!!t&&(Ma(t)||nx(t))}function aL(e){return e.kind===218||e.kind===219}function oL(e){return e.replace(/\$/gm,()=>"\\$")}function ix(e){return(+e).toString()===e}function sL(e,t,r,a){return Cg(e,t)?Ln.createIdentifier(e):!a&&ix(e)&&+e>=0?Ln.createNumericLiteral(+e):Ln.createStringLiteral(e,!!r)}function ax(e){return!!(e.flags&262144&&e.isThisType)}function _L(e){let t=0,r=0,a=0,_=0,p;(v=>{v[v.BeforeNodeModules=0]="BeforeNodeModules",v[v.NodeModules=1]="NodeModules",v[v.Scope=2]="Scope",v[v.PackageContent=3]="PackageContent"})(p||(p={}));let d=0,h=0,l=0;for(;h>=0;)switch(d=h,h=e.indexOf("/",d+1),l){case 0:e.indexOf(nodeModulesPathPart,d)===d&&(t=d,r=h,l=1);break;case 1:case 2:l===1&&e.charAt(d+1)==="@"?l=2:(a=h,l=3);break;case 3:e.indexOf(nodeModulesPathPart,d)===d?l=1:l=3;break}return _=d,l>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:a,fileNameIndex:_}:void 0}function cL(e){var t;return e.kind===348?(t=e.typeExpression)==null?void 0:t.type:e.type}function ox(e){switch(e.kind){case 168:case 263:case 264:case 265:case 266:case 353:case 345:case 347:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}function lL(e){return S6(e)||as(e)||os(e)||Yo(e)||su(e)||ox(e)||Yi(e)&&!Gg(e)&&!lm(e)}function sx(e){if(!Ig(e))return!1;let{isBracketed:t,typeExpression:r}=e;return t||!!r&&r.type.kind===323}function uL(e,t){if(e.length===0)return!1;let r=e.charCodeAt(0);return r===35?e.length>1&&un(e.charCodeAt(1),t):un(r,t)}function _x(e){var t;return((t=getSnippetElement(e))==null?void 0:t.kind)===0}function cx(e){return Wt(e)&&(e.type&&e.type.kind===323||Zd(e).some(({isBracketed:t,typeExpression:r})=>t||!!r&&r.type.kind===323))}function pL(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||cx(e);case 355:case 348:return sx(e);default:return!1}}function fL(e){let t=e.kind;return(t===211||t===212)&&jo(e.expression)}function dL(e){return Wt(e)&&is(e)&&Wi(e)&&!!kg(e)}function mL(e){return N.checkDefined(lx(e))}function lx(e){let t=kg(e);return t&&t.typeExpression&&t.typeExpression.type}function hL(e){return Ee(e)?e.escapedText:Yl(e)}function yL(e){return Ee(e)?Ot(e):Kl(e)}function gL(e){let t=e.kind;return t===80||t===295}function Yl(e){return`${e.namespace.escapedText}:${Ot(e.name)}`}function Kl(e){return`${Ot(e.namespace)}:${Ot(e.name)}`}function bL(e){return Ee(e)?Ot(e):Kl(e)}function vL(e){return!!(e.flags&8576)}function TL(e){return e.flags&8192?e.escapedName:e.flags&384?Mn(""+e.value):N.fail()}var ux,wm,px,fx,Zs,F0,Y2,dx,mx,K2,hx,yx,B0,U0,q0,z0,gx,bx,vx,Tx,Sx,W0,xx,wx,Cx,Po,qi,Ex,Ax,wt,Z2,kl,Ad,kx,V0,Uf,$h,Qh,Yh,e6,Ro,t6,Dx,Px,H0,r6,Dl,Ix,n6,Nx,Cm,G0,Em,Ox,SL=Vt({"src/compiler/utilities.ts"(){"use strict";Dr(),ux=[],wm="tslib",px=160,fx=1e6,Zs=Bk(),F0=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(F0||{}),Y2=/^(\/\/\/\s*/,dx=/^(\/\/\/\s*/,mx=/^(\/\/\/\s*/,K2=/^(\/\/\/\s*/,hx=/^\/\/\/\s*/,yx=/^(\/\/\/\s*/,B0=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(B0||{}),U0=(e=>(e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",e))(U0||{}),q0=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(q0||{}),z0=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(z0||{}),gx=/\$\{/g,bx=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,vx=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Tx=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,Sx=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"})),W0=/[^\u0000-\u007F]/g,xx=/["\u0000-\u001f\u2028\u2029\u0085]/g,wx=/['\u0000-\u001f\u2028\u2029\u0085]/g,Cx=new Map(Object.entries({'"':""","'":"'"})),Po=[""," "],qi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Ex=`\r +`,Ax=` +`,wt={getNodeConstructor:()=>Gh,getTokenConstructor:()=>BO,getIdentifierConstructor:()=>UO,getPrivateIdentifierConstructor:()=>Gh,getSourceFileConstructor:()=>Gh,getSymbolConstructor:()=>RO,getTypeConstructor:()=>jO,getSignatureConstructor:()=>FO,getSourceMapSourceConstructor:()=>qO},Z2=[],Ad=/[^\w\s/]/g,kx=[42,63],V0=["node_modules","bower_components","jspm_packages"],Uf=`(?!(${V0.join("|")})(/|$))`,$h={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${Uf}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Xh(e,$h.singleAsteriskRegexFragment)},Qh={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${Uf}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Xh(e,Qh.singleAsteriskRegexFragment)},Yh={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>Xh(e,Yh.singleAsteriskRegexFragment)},e6={files:$h,directories:Qh,exclude:Yh},Ro=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],t6=o_(Ro),Dx=[...Ro,[".json"]],Px=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],H0=[[".js",".jsx"],[".mjs"],[".cjs"]],r6=o_(H0),Dl=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],Ix=[...Dl,[".json"]],n6=[".d.ts",".d.cts",".d.mts"],Nx=[".ts",".cts",".mts",".tsx"],Cm=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],G0=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(G0||{}),Em=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],Ox={files:$e,directories:$e}}});function Mx(){let e,t,r,a,_;return{createBaseSourceFileNode:p,createBaseIdentifierNode:d,createBasePrivateIdentifierNode:h,createBaseTokenNode:l,createBaseNode:v};function p(y){return new(_||(_=wt.getSourceFileConstructor()))(y,-1,-1)}function d(y){return new(r||(r=wt.getIdentifierConstructor()))(y,-1,-1)}function h(y){return new(a||(a=wt.getPrivateIdentifierConstructor()))(y,-1,-1)}function l(y){return new(t||(t=wt.getTokenConstructor()))(y,-1,-1)}function v(y){return new(e||(e=wt.getNodeConstructor()))(y,-1,-1)}}var xL=Vt({"src/compiler/factory/baseNodeFactory.ts"(){"use strict";Dr()}}),i6,wL=Vt({"src/compiler/factory/parenthesizerRules.ts"(){"use strict";Dr(),i6={getParenthesizeLeftSideOfBinaryForOperator:e=>bt,getParenthesizeRightSideOfBinaryForOperator:e=>bt,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:bt,parenthesizeConditionOfConditionalExpression:bt,parenthesizeBranchOfConditionalExpression:bt,parenthesizeExpressionOfExportDefault:bt,parenthesizeExpressionOfNew:e=>gi(e,Lo),parenthesizeLeftSideOfAccess:e=>gi(e,Lo),parenthesizeOperandOfPostfixUnary:e=>gi(e,Lo),parenthesizeOperandOfPrefixUnary:e=>gi(e,h3),parenthesizeExpressionsOfCommaDelimitedList:e=>gi(e,va),parenthesizeExpressionForDisallowedComma:bt,parenthesizeExpressionOfExpressionStatement:bt,parenthesizeConciseBodyOfArrowFunction:bt,parenthesizeCheckTypeOfConditionalType:bt,parenthesizeExtendsTypeOfConditionalType:bt,parenthesizeConstituentTypesOfUnionType:e=>gi(e,va),parenthesizeConstituentTypeOfUnionType:bt,parenthesizeConstituentTypesOfIntersectionType:e=>gi(e,va),parenthesizeConstituentTypeOfIntersectionType:bt,parenthesizeOperandOfTypeOperator:bt,parenthesizeOperandOfReadonlyTypeOperator:bt,parenthesizeNonArrayTypeOfPostfixType:bt,parenthesizeElementTypesOfTupleType:e=>gi(e,va),parenthesizeElementTypeOfTupleType:bt,parenthesizeTypeOfOptionalType:bt,parenthesizeTypeArguments:e=>e&&gi(e,va),parenthesizeLeadingTypeArgument:bt}}}),CL=()=>{},Lx=()=>new Proxy({},{get:()=>()=>{}});function EL(e){a6.push(e)}function kd(e,t){let r=e&8?AL:kL,a=ry(()=>e&1?i6:createParenthesizerRules(ue)),_=ry(()=>e&2?nullNodeConverters:Lx(ue)),p=Nn(n=>(o,s)=>nc(o,n,s)),d=Nn(n=>o=>qa(n,o)),h=Nn(n=>o=>Ts(o,n)),l=Nn(n=>()=>U1(n)),v=Nn(n=>o=>Nc(n,o)),y=Nn(n=>(o,s)=>q1(n,o,s)),C=Nn(n=>(o,s)=>Ic(n,o,s)),S=Nn(n=>(o,s)=>Ep(n,o,s)),k=Nn(n=>(o,s)=>jp(n,o,s)),L=Nn(n=>(o,s,u)=>th(n,o,s,u)),G=Nn(n=>(o,s,u)=>Fp(n,o,s,u)),K=Nn(n=>(o,s,u,g)=>rh(n,o,s,u,g)),ue={get parenthesizer(){return a()},get converters(){return _()},baseFactory:t,flags:e,createNodeArray:Y,createNumericLiteral:Ze,createBigIntLiteral:qe,createStringLiteral:it,createStringLiteralFromNode:Ir,createRegularExpressionLiteral:ar,createLiteralLikeNode:ci,createIdentifier:Ge,createTempVariable:Gt,createLoopVariable:Ur,createUniqueName:Xt,getGeneratedNameForNode:Tn,createPrivateIdentifier:sr,createUniquePrivateName:St,getGeneratedPrivateNameForNode:xn,createToken:vt,createSuper:ct,createThis:Ut,createNull:fr,createTrue:ht,createFalse:wn,createModifier:Tt,createModifiersFromModifierFlags:Or,createQualifiedName:pt,updateQualifiedName:Mr,createComputedPropertyName:at,updateComputedPropertyName:er,createTypeParameterDeclaration:Qt,updateTypeParameterDeclaration:tn,createParameterDeclaration:Bn,updateParameterDeclaration:Un,createDecorator:rn,updateDecorator:nn,createPropertySignature:Di,updatePropertySignature:qn,createPropertyDeclaration:q,updatePropertyDeclaration:oe,createMethodSignature:ge,updateMethodSignature:Se,createMethodDeclaration:nt,updateMethodDeclaration:z,createConstructorDeclaration:Le,updateConstructorDeclaration:lt,createGetAccessorDeclaration:jt,updateGetAccessorDeclaration:qr,createSetAccessorDeclaration:Cn,updateSetAccessorDeclaration:zn,createCallSignature:ia,updateCallSignature:Wn,createConstructSignature:En,updateConstructSignature:Ii,createIndexSignature:aa,updateIndexSignature:Vn,createClassStaticBlockDeclaration:ee,updateClassStaticBlockDeclaration:xe,createTemplateLiteralTypeSpan:Sr,updateTemplateLiteralTypeSpan:Je,createKeywordTypeNode:oa,createTypePredicateNode:Mt,updateTypePredicateNode:Lr,createTypeReferenceNode:j,updateTypeReferenceNode:T,createFunctionTypeNode:x,updateFunctionTypeNode:f,createConstructorTypeNode:Q,updateConstructorTypeNode:be,createTypeQueryNode:we,updateTypeQueryNode:et,createTypeLiteralNode:Ye,updateTypeLiteralNode:Ke,createArrayTypeNode:It,updateArrayTypeNode:qt,createTupleTypeNode:_r,updateTupleTypeNode:Te,createNamedTupleMember:ft,updateNamedTupleMember:An,createOptionalTypeNode:Et,updateOptionalTypeNode:H,createRestTypeNode:Fa,updateRestTypeNode:Ie,createUnionTypeNode:an,updateUnionTypeNode:Ba,createIntersectionTypeNode:kn,updateIntersectionTypeNode:je,createConditionalTypeNode:dt,updateConditionalTypeNode:li,createInferTypeNode:Hn,updateInferTypeNode:t1,createImportTypeNode:ui,updateImportTypeNode:fs,createParenthesizedType:xr,updateParenthesizedType:Ft,createThisTypeNode:M,createTypeOperatorNode:Jr,updateTypeOperatorNode:sa,createIndexedAccessTypeNode:Ni,updateIndexedAccessTypeNode:G_,createMappedTypeNode:Lt,updateMappedTypeNode:Yt,createLiteralTypeNode:Oi,updateLiteralTypeNode:n1,createTemplateLiteralType:dr,updateTemplateLiteralType:r1,createObjectBindingPattern:Tu,updateObjectBindingPattern:Ua,createArrayBindingPattern:Su,updateArrayBindingPattern:X_,createBindingElement:_a,updateBindingElement:xu,createArrayLiteralExpression:$_,updateArrayLiteralExpression:wu,createObjectLiteralExpression:ds,updateObjectLiteralExpression:i1,createPropertyAccessExpression:e&4?(n,o)=>setEmitFlags(Mi(n,o),262144):Mi,updatePropertyAccessExpression:Q_,createPropertyAccessChain:e&4?(n,o,s)=>setEmitFlags(hs(n,o,s),262144):hs,updatePropertyAccessChain:ys,createElementAccessExpression:Y_,updateElementAccessExpression:Eu,createElementAccessChain:Au,updateElementAccessChain:ku,createCallExpression:fo,updateCallExpression:a1,createCallChain:zr,updateCallChain:gs,createNewExpression:bs,updateNewExpression:Du,createTaggedTemplateExpression:Pu,updateTaggedTemplateExpression:o1,createTypeAssertion:Iu,updateTypeAssertion:Nu,createParenthesizedExpression:K_,updateParenthesizedExpression:Ou,createFunctionExpression:Z_,updateFunctionExpression:Mu,createArrowFunction:ec,updateArrowFunction:tc,createDeleteExpression:Lu,updateDeleteExpression:Wr,createTypeOfExpression:vs,updateTypeOfExpression:pi,createVoidExpression:rc,updateVoidExpression:ca,createAwaitExpression:la,updateAwaitExpression:s1,createPrefixUnaryExpression:qa,updatePrefixUnaryExpression:_1,createPostfixUnaryExpression:Ts,updatePostfixUnaryExpression:c1,createBinaryExpression:nc,updateBinaryExpression:Ru,createConditionalExpression:ju,updateConditionalExpression:fi,createTemplateExpression:ic,updateTemplateExpression:l1,createTemplateHead:oc,createTemplateMiddle:u1,createTemplateTail:Bu,createNoSubstitutionTemplateLiteral:p1,createTemplateLiteralLikeNode:Li,createYieldExpression:Uu,updateYieldExpression:f1,createSpreadElement:qu,updateSpreadElement:d1,createClassExpression:xs,updateClassExpression:sc,createOmittedExpression:m1,createExpressionWithTypeArguments:Vr,updateExpressionWithTypeArguments:_c,createAsExpression:zu,updateAsExpression:Wu,createNonNullExpression:cc,updateNonNullExpression:Vu,createSatisfiesExpression:lc,updateSatisfiesExpression:Dn,createNonNullChain:Hu,updateNonNullChain:ws,createMetaProperty:Gn,updateMetaProperty:Cs,createTemplateSpan:uc,updateTemplateSpan:Gu,createSemicolonClassElement:h1,createBlock:ua,updateBlock:y1,createVariableStatement:Xu,updateVariableStatement:pc,createEmptyStatement:fc,createExpressionStatement:Es,updateExpressionStatement:$u,createIfStatement:Qu,updateIfStatement:Yu,createDoStatement:Ku,updateDoStatement:g1,createWhileStatement:Zu,updateWhileStatement:ep,createForStatement:dc,updateForStatement:b1,createForInStatement:tp,updateForInStatement:v1,createForOfStatement:rp,updateForOfStatement:T1,createContinueStatement:mc,updateContinueStatement:np,createBreakStatement:hc,updateBreakStatement:S1,createReturnStatement:ip,updateReturnStatement:ap,createWithStatement:yc,updateWithStatement:op,createSwitchStatement:pa,updateSwitchStatement:x1,createLabeledStatement:sp,updateLabeledStatement:_p,createThrowStatement:cp,updateThrowStatement:w1,createTryStatement:lp,updateTryStatement:up,createDebuggerStatement:pp,createVariableDeclaration:As,updateVariableDeclaration:C1,createVariableDeclarationList:gc,updateVariableDeclarationList:E1,createFunctionDeclaration:bc,updateFunctionDeclaration:fp,createClassDeclaration:vc,updateClassDeclaration:Tc,createInterfaceDeclaration:dp,updateInterfaceDeclaration:gt,createTypeAliasDeclaration:Ji,updateTypeAliasDeclaration:Sc,createEnumDeclaration:Ri,updateEnumDeclaration:mp,createModuleDeclaration:Jt,updateModuleDeclaration:ji,createModuleBlock:tr,updateModuleBlock:k1,createCaseBlock:hp,updateCaseBlock:D1,createNamespaceExportDeclaration:xc,updateNamespaceExportDeclaration:P1,createImportEqualsDeclaration:yp,updateImportEqualsDeclaration:gp,createImportDeclaration:bp,updateImportDeclaration:vp,createImportClause:wc,updateImportClause:Tp,createAssertClause:Sp,updateAssertClause:ks,createAssertEntry:Cc,updateAssertEntry:xp,createImportTypeAssertionContainer:Ec,updateImportTypeAssertionContainer:N1,createNamespaceImport:Ds,updateNamespaceImport:O1,createNamespaceExport:Ac,updateNamespaceExport:M1,createNamedImports:wp,updateNamedImports:L1,createImportSpecifier:Cp,updateImportSpecifier:J1,createExportAssignment:Ps,updateExportAssignment:Fi,createExportDeclaration:kc,updateExportDeclaration:Dc,createNamedExports:Ns,updateNamedExports:R1,createExportSpecifier:fa,updateExportSpecifier:j1,createMissingDeclaration:F1,createExternalModuleReference:Pc,updateExternalModuleReference:B1,get createJSDocAllType(){return l(319)},get createJSDocUnknownType(){return l(320)},get createJSDocNonNullableType(){return C(322)},get updateJSDocNonNullableType(){return S(322)},get createJSDocNullableType(){return C(321)},get updateJSDocNullableType(){return S(321)},get createJSDocOptionalType(){return v(323)},get updateJSDocOptionalType(){return y(323)},get createJSDocVariadicType(){return v(325)},get updateJSDocVariadicType(){return y(325)},get createJSDocNamepathType(){return v(326)},get updateJSDocNamepathType(){return y(326)},createJSDocFunctionType:Ap,updateJSDocFunctionType:z1,createJSDocTypeLiteral:kp,updateJSDocTypeLiteral:W1,createJSDocTypeExpression:Dp,updateJSDocTypeExpression:V1,createJSDocSignature:Pp,updateJSDocSignature:H1,createJSDocTemplateTag:ho,updateJSDocTemplateTag:Os,createJSDocTypedefTag:Ms,updateJSDocTypedefTag:Ip,createJSDocParameterTag:Oc,updateJSDocParameterTag:Mc,createJSDocPropertyTag:Np,updateJSDocPropertyTag:Op,createJSDocCallbackTag:Mp,updateJSDocCallbackTag:G1,createJSDocOverloadTag:Lc,updateJSDocOverloadTag:X1,createJSDocAugmentsTag:Jc,updateJSDocAugmentsTag:$1,createJSDocImplementsTag:Ls,updateJSDocImplementsTag:eh,createJSDocSeeTag:Rc,updateJSDocSeeTag:yo,createJSDocNameReference:Lp,updateJSDocNameReference:Wa,createJSDocMemberName:go,updateJSDocMemberName:Q1,createJSDocLink:Jp,updateJSDocLink:Y1,createJSDocLinkCode:Rp,updateJSDocLinkCode:K1,createJSDocLinkPlain:jc,updateJSDocLinkPlain:Z1,get createJSDocTypeTag(){return G(351)},get updateJSDocTypeTag(){return K(351)},get createJSDocReturnTag(){return G(349)},get updateJSDocReturnTag(){return K(349)},get createJSDocThisTag(){return G(350)},get updateJSDocThisTag(){return K(350)},get createJSDocAuthorTag(){return k(337)},get updateJSDocAuthorTag(){return L(337)},get createJSDocClassTag(){return k(339)},get updateJSDocClassTag(){return L(339)},get createJSDocPublicTag(){return k(340)},get updateJSDocPublicTag(){return L(340)},get createJSDocPrivateTag(){return k(341)},get updateJSDocPrivateTag(){return L(341)},get createJSDocProtectedTag(){return k(342)},get updateJSDocProtectedTag(){return L(342)},get createJSDocReadonlyTag(){return k(343)},get updateJSDocReadonlyTag(){return L(343)},get createJSDocOverrideTag(){return k(344)},get updateJSDocOverrideTag(){return L(344)},get createJSDocDeprecatedTag(){return k(338)},get updateJSDocDeprecatedTag(){return L(338)},get createJSDocThrowsTag(){return G(356)},get updateJSDocThrowsTag(){return K(356)},get createJSDocSatisfiesTag(){return G(357)},get updateJSDocSatisfiesTag(){return K(357)},createJSDocEnumTag:Up,updateJSDocEnumTag:ih,createJSDocUnknownTag:Bp,updateJSDocUnknownTag:nh,createJSDocText:qp,updateJSDocText:ah,createJSDocComment:Js,updateJSDocComment:oh,createJsxElement:Fc,updateJsxElement:zp,createJsxSelfClosingElement:Wp,updateJsxSelfClosingElement:Rs,createJsxOpeningElement:Bc,updateJsxOpeningElement:sh,createJsxClosingElement:Vp,updateJsxClosingElement:_h,createJsxFragment:js,createJsxText:Fs,updateJsxText:Gp,createJsxOpeningFragment:Uc,createJsxJsxClosingFragment:wr,updateJsxFragment:Hp,createJsxAttribute:qc,updateJsxAttribute:Xp,createJsxAttributes:$p,updateJsxAttributes:Qp,createJsxSpreadAttribute:Yp,updateJsxSpreadAttribute:ch,createJsxExpression:bo,updateJsxExpression:lh,createJsxNamespacedName:Kp,updateJsxNamespacedName:uh,createCaseClause:Zp,updateCaseClause:zc,createDefaultClause:Va,updateDefaultClause:ph,createHeritageClause:Bs,updateHeritageClause:ef,createCatchClause:tf,updateCatchClause:vo,createPropertyAssignment:Us,updatePropertyAssignment:fh,createShorthandPropertyAssignment:Wc,updateShorthandPropertyAssignment:rf,createSpreadAssignment:da,updateSpreadAssignment:mh,createEnumMember:af,updateEnumMember:hh,createSourceFile:yh,updateSourceFile:bh,createRedirectedSourceFile:Vc,createBundle:sf,updateBundle:_f,createUnparsedSource:Gc,createUnparsedPrologue:vh,createUnparsedPrepend:cf,createUnparsedTextLike:Th,createUnparsedSyntheticReference:Sh,createInputFiles:qs,createSyntheticExpression:lf,createSyntaxList:xh,createNotEmittedStatement:wh,createPartiallyEmittedExpression:uf,updatePartiallyEmittedExpression:pf,createCommaListExpression:zs,updateCommaListExpression:ff,createSyntheticReferenceExpression:$c,updateSyntheticReferenceExpression:Eh,cloneNode:Qc,get createComma(){return p(28)},get createAssignment(){return p(64)},get createLogicalOr(){return p(57)},get createLogicalAnd(){return p(56)},get createBitwiseOr(){return p(52)},get createBitwiseXor(){return p(53)},get createBitwiseAnd(){return p(51)},get createStrictEquality(){return p(37)},get createStrictInequality(){return p(38)},get createEquality(){return p(35)},get createInequality(){return p(36)},get createLessThan(){return p(30)},get createLessThanEquals(){return p(33)},get createGreaterThan(){return p(32)},get createGreaterThanEquals(){return p(34)},get createLeftShift(){return p(48)},get createRightShift(){return p(49)},get createUnsignedRightShift(){return p(50)},get createAdd(){return p(40)},get createSubtract(){return p(41)},get createMultiply(){return p(42)},get createDivide(){return p(44)},get createModulo(){return p(45)},get createExponent(){return p(43)},get createPrefixPlus(){return d(40)},get createPrefixMinus(){return d(41)},get createPrefixIncrement(){return d(46)},get createPrefixDecrement(){return d(47)},get createBitwiseNot(){return d(55)},get createLogicalNot(){return d(54)},get createPostfixIncrement(){return h(46)},get createPostfixDecrement(){return h(47)},createImmediatelyInvokedFunctionExpression:Dh,createImmediatelyInvokedArrowFunction:Ph,createVoidZero:ma,createExportDefault:Ih,createExternalModuleExport:Nh,createTypeCheck:Oh,createIsNotTypeCheck:Mh,createMethodCall:ha,createGlobalMethodCall:Ha,createFunctionBindCall:Lh,createFunctionCallCall:Ws,createFunctionApplyCall:Jh,createArraySliceCall:Rh,createArrayConcatCall:jh,createObjectDefinePropertyCall:hf,createObjectGetOwnPropertyDescriptorCall:Fh,createReflectGetCall:Bh,createReflectSetCall:Uh,createPropertyDescriptor:yf,createCallBinding:A,createAssignmentTargetWrapper:R,inlineExpressions:te,getInternalName:ne,getLocalName:ie,getExportName:ve,getDeclarationName:He,getNamespaceMemberName:Be,getExternalModuleOrNamespaceExportName:Ue,restoreOuterExpressions:m,restoreEnclosingLabel:b,createUseStrictPrologue:di,copyPrologue:Rt,copyStandardPrologue:mi,copyCustomPrologue:hi,ensureUseStrict:Ui,liftToBlock:ga,mergeLexicalEnvironment:qh,updateModifiers:bf,updateModifierLike:zh};return yr(a6,n=>n(ue)),ue;function Y(n,o){if(n===void 0||n===$e)n=[];else if(va(n)){if(o===void 0||n.hasTrailingComma===o)return n.transformFlags===void 0&&Vb(n),N.attachNodeArrayDebugInfo(n),n;let g=n.slice();return g.pos=n.pos,g.end=n.end,g.hasTrailingComma=o,g.transformFlags=n.transformFlags,N.attachNodeArrayDebugInfo(g),g}let s=n.length,u=s>=1&&s<=4?n.slice():n;return u.pos=-1,u.end=-1,u.hasTrailingComma=!!o,u.transformFlags=0,Vb(u),N.attachNodeArrayDebugInfo(u),u}function B(n){return t.createBaseNode(n)}function ae(n){let o=B(n);return o.symbol=void 0,o.localSymbol=void 0,o}function Ce(n,o){return n!==o&&(n.typeArguments=o.typeArguments),r(n,o)}function Ze(n,o=0){let s=ae(9);return s.text=typeof n=="number"?n+"":n,s.numericLiteralFlags=o,o&384&&(s.transformFlags|=1024),s}function qe(n){let o=Tr(10);return o.text=typeof n=="string"?n:Q2(n)+"n",o.transformFlags|=32,o}function rt(n,o){let s=ae(11);return s.text=n,s.singleQuote=o,s}function it(n,o,s){let u=rt(n,o);return u.hasExtendedUnicodeEscape=s,s&&(u.transformFlags|=1024),u}function Ir(n){let o=rt(vd(n),void 0);return o.textSourceNode=n,o}function ar(n){let o=Tr(14);return o.text=n,o}function ci(n,o){switch(n){case 9:return Ze(o,0);case 10:return qe(o);case 11:return it(o,void 0);case 12:return Fs(o,!1);case 13:return Fs(o,!0);case 14:return ar(o);case 15:return Li(n,o,void 0,0)}}function or(n){let o=t.createBaseIdentifierNode(80);return o.escapedText=n,o.jsDoc=void 0,o.flowNode=void 0,o.symbol=void 0,o}function Nr(n,o,s,u){let g=or(Mn(n));return setIdentifierAutoGenerate(g,{flags:o,id:il,prefix:s,suffix:u}),il++,g}function Ge(n,o,s){o===void 0&&n&&(o=Rl(n)),o===80&&(o=void 0);let u=or(Mn(n));return s&&(u.flags|=256),u.escapedText==="await"&&(u.transformFlags|=67108864),u.flags&256&&(u.transformFlags|=1024),u}function Gt(n,o,s,u){let g=1;o&&(g|=8);let I=Nr("",g,s,u);return n&&n(I),I}function Ur(n){let o=2;return n&&(o|=8),Nr("",o,void 0,void 0)}function Xt(n,o=0,s,u){return N.assert(!(o&7),"Argument out of range: flags"),N.assert((o&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),Nr(n,3|o,s,u)}function Tn(n,o=0,s,u){N.assert(!(o&7),"Argument out of range: flags");let g=n?ro(n)?Id(!1,s,n,u,Ot):`generated@${getNodeId(n)}`:"";(s||u)&&(o|=16);let I=Nr(g,4|o,s,u);return I.original=n,I}function Sn(n){let o=t.createBasePrivateIdentifierNode(81);return o.escapedText=n,o.transformFlags|=16777216,o}function sr(n){return Fr(n,"#")||N.fail("First character of private identifier must be #: "+n),Sn(Mn(n))}function $t(n,o,s,u){let g=Sn(Mn(n));return setIdentifierAutoGenerate(g,{flags:o,id:il,prefix:s,suffix:u}),il++,g}function St(n,o,s){n&&!Fr(n,"#")&&N.fail("First character of private identifier must be #: "+n);let u=8|(n?3:1);return $t(n??"",u,o,s)}function xn(n,o,s){let u=ro(n)?Id(!0,o,n,s,Ot):`#generated@${getNodeId(n)}`,I=$t(u,4|(o||s?16:0),o,s);return I.original=n,I}function Tr(n){return t.createBaseTokenNode(n)}function vt(n){N.assert(n>=0&&n<=165,"Invalid token"),N.assert(n<=15||n>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),N.assert(n<=9||n>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),N.assert(n!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let o=Tr(n),s=0;switch(n){case 134:s=384;break;case 160:s=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:s=1;break;case 108:s=134218752,o.flowNode=void 0;break;case 126:s=1024;break;case 129:s=16777216;break;case 110:s=16384,o.flowNode=void 0;break}return s&&(o.transformFlags|=s),o}function ct(){return vt(108)}function Ut(){return vt(110)}function fr(){return vt(106)}function ht(){return vt(112)}function wn(){return vt(97)}function Tt(n){return vt(n)}function Or(n){let o=[];return n&1&&o.push(Tt(95)),n&2&&o.push(Tt(138)),n&1024&&o.push(Tt(90)),n&2048&&o.push(Tt(87)),n&4&&o.push(Tt(125)),n&8&&o.push(Tt(123)),n&16&&o.push(Tt(124)),n&256&&o.push(Tt(128)),n&32&&o.push(Tt(126)),n&16384&&o.push(Tt(164)),n&64&&o.push(Tt(148)),n&128&&o.push(Tt(129)),n&512&&o.push(Tt(134)),n&32768&&o.push(Tt(103)),n&65536&&o.push(Tt(147)),o.length?o:void 0}function pt(n,o){let s=B(166);return s.left=n,s.right=Xe(o),s.transformFlags|=V(s.left)|e_(s.right),s.flowNode=void 0,s}function Mr(n,o,s){return n.left!==o||n.right!==s?r(pt(o,s),n):n}function at(n){let o=B(167);return o.expression=a().parenthesizeExpressionOfComputedPropertyName(n),o.transformFlags|=V(o.expression)|1024|131072,o}function er(n,o){return n.expression!==o?r(at(o),n):n}function Qt(n,o,s,u){let g=ae(168);return g.modifiers=Oe(n),g.name=Xe(o),g.constraint=s,g.default=u,g.transformFlags=1,g.expression=void 0,g.jsDoc=void 0,g}function tn(n,o,s,u,g){return n.modifiers!==o||n.name!==s||n.constraint!==u||n.default!==g?r(Qt(o,s,u,g),n):n}function Bn(n,o,s,u,g,I){let W=ae(169);return W.modifiers=Oe(n),W.dotDotDotToken=o,W.name=Xe(s),W.questionToken=u,W.type=g,W.initializer=To(I),gm(W.name)?W.transformFlags=1:W.transformFlags=De(W.modifiers)|V(W.dotDotDotToken)|In(W.name)|V(W.questionToken)|V(W.initializer)|(W.questionToken??W.type?1:0)|(W.dotDotDotToken??W.initializer?1024:0)|(ln(W.modifiers)&16476?8192:0),W.jsDoc=void 0,W}function Un(n,o,s,u,g,I,W){return n.modifiers!==o||n.dotDotDotToken!==s||n.name!==u||n.questionToken!==g||n.type!==I||n.initializer!==W?r(Bn(o,s,u,g,I,W),n):n}function rn(n){let o=B(170);return o.expression=a().parenthesizeLeftSideOfAccess(n,!1),o.transformFlags|=V(o.expression)|1|8192|33554432,o}function nn(n,o){return n.expression!==o?r(rn(o),n):n}function Di(n,o,s,u){let g=ae(171);return g.modifiers=Oe(n),g.name=Xe(o),g.type=u,g.questionToken=s,g.transformFlags=1,g.initializer=void 0,g.jsDoc=void 0,g}function qn(n,o,s,u,g){return n.modifiers!==o||n.name!==s||n.questionToken!==u||n.type!==g?Ae(Di(o,s,u,g),n):n}function Ae(n,o){return n!==o&&(n.initializer=o.initializer),r(n,o)}function q(n,o,s,u,g){let I=ae(172);I.modifiers=Oe(n),I.name=Xe(o),I.questionToken=s&&Pl(s)?s:void 0,I.exclamationToken=s&&Pd(s)?s:void 0,I.type=u,I.initializer=To(g);let W=I.flags&33554432||ln(I.modifiers)&2;return I.transformFlags=De(I.modifiers)|In(I.name)|V(I.initializer)|(W||I.questionToken||I.exclamationToken||I.type?1:0)|(ao(I.name)||ln(I.modifiers)&32&&I.initializer?8192:0)|16777216,I.jsDoc=void 0,I}function oe(n,o,s,u,g,I){return n.modifiers!==o||n.name!==s||n.questionToken!==(u!==void 0&&Pl(u)?u:void 0)||n.exclamationToken!==(u!==void 0&&Pd(u)?u:void 0)||n.type!==g||n.initializer!==I?r(q(o,s,u,g,I),n):n}function ge(n,o,s,u,g,I){let W=ae(173);return W.modifiers=Oe(n),W.name=Xe(o),W.questionToken=s,W.typeParameters=Oe(u),W.parameters=Oe(g),W.type=I,W.transformFlags=1,W.jsDoc=void 0,W.locals=void 0,W.nextContainer=void 0,W.typeArguments=void 0,W}function Se(n,o,s,u,g,I,W){return n.modifiers!==o||n.name!==s||n.questionToken!==u||n.typeParameters!==g||n.parameters!==I||n.type!==W?Ce(ge(o,s,u,g,I,W),n):n}function nt(n,o,s,u,g,I,W,de){let We=ae(174);if(We.modifiers=Oe(n),We.asteriskToken=o,We.name=Xe(s),We.questionToken=u,We.exclamationToken=void 0,We.typeParameters=Oe(g),We.parameters=Y(I),We.type=W,We.body=de,!We.body)We.transformFlags=1;else{let Er=ln(We.modifiers)&512,$n=!!We.asteriskToken,yi=Er&&$n;We.transformFlags=De(We.modifiers)|V(We.asteriskToken)|In(We.name)|V(We.questionToken)|De(We.typeParameters)|De(We.parameters)|V(We.type)|V(We.body)&-67108865|(yi?128:Er?256:$n?2048:0)|(We.questionToken||We.typeParameters||We.type?1:0)|1024}return We.typeArguments=void 0,We.jsDoc=void 0,We.locals=void 0,We.nextContainer=void 0,We.flowNode=void 0,We.endFlowNode=void 0,We.returnFlowNode=void 0,We}function z(n,o,s,u,g,I,W,de,We){return n.modifiers!==o||n.asteriskToken!==s||n.name!==u||n.questionToken!==g||n.typeParameters!==I||n.parameters!==W||n.type!==de||n.body!==We?X(nt(o,s,u,g,I,W,de,We),n):n}function X(n,o){return n!==o&&(n.exclamationToken=o.exclamationToken),r(n,o)}function ee(n){let o=ae(175);return o.body=n,o.transformFlags=V(n)|16777216,o.modifiers=void 0,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.endFlowNode=void 0,o.returnFlowNode=void 0,o}function xe(n,o){return n.body!==o?ke(ee(o),n):n}function ke(n,o){return n!==o&&(n.modifiers=o.modifiers),r(n,o)}function Le(n,o,s){let u=ae(176);return u.modifiers=Oe(n),u.parameters=Y(o),u.body=s,u.transformFlags=De(u.modifiers)|De(u.parameters)|V(u.body)&-67108865|1024,u.typeParameters=void 0,u.type=void 0,u.typeArguments=void 0,u.jsDoc=void 0,u.locals=void 0,u.nextContainer=void 0,u.endFlowNode=void 0,u.returnFlowNode=void 0,u}function lt(n,o,s,u){return n.modifiers!==o||n.parameters!==s||n.body!==u?yt(Le(o,s,u),n):n}function yt(n,o){return n!==o&&(n.typeParameters=o.typeParameters,n.type=o.type),Ce(n,o)}function jt(n,o,s,u,g){let I=ae(177);return I.modifiers=Oe(n),I.name=Xe(o),I.parameters=Y(s),I.type=u,I.body=g,I.body?I.transformFlags=De(I.modifiers)|In(I.name)|De(I.parameters)|V(I.type)|V(I.body)&-67108865|(I.type?1:0):I.transformFlags=1,I.typeArguments=void 0,I.typeParameters=void 0,I.jsDoc=void 0,I.locals=void 0,I.nextContainer=void 0,I.flowNode=void 0,I.endFlowNode=void 0,I.returnFlowNode=void 0,I}function qr(n,o,s,u,g,I){return n.modifiers!==o||n.name!==s||n.parameters!==u||n.type!==g||n.body!==I?na(jt(o,s,u,g,I),n):n}function na(n,o){return n!==o&&(n.typeParameters=o.typeParameters),Ce(n,o)}function Cn(n,o,s,u){let g=ae(178);return g.modifiers=Oe(n),g.name=Xe(o),g.parameters=Y(s),g.body=u,g.body?g.transformFlags=De(g.modifiers)|In(g.name)|De(g.parameters)|V(g.body)&-67108865|(g.type?1:0):g.transformFlags=1,g.typeArguments=void 0,g.typeParameters=void 0,g.type=void 0,g.jsDoc=void 0,g.locals=void 0,g.nextContainer=void 0,g.flowNode=void 0,g.endFlowNode=void 0,g.returnFlowNode=void 0,g}function zn(n,o,s,u,g){return n.modifiers!==o||n.name!==s||n.parameters!==u||n.body!==g?Pi(Cn(o,s,u,g),n):n}function Pi(n,o){return n!==o&&(n.typeParameters=o.typeParameters,n.type=o.type),Ce(n,o)}function ia(n,o,s){let u=ae(179);return u.typeParameters=Oe(n),u.parameters=Oe(o),u.type=s,u.transformFlags=1,u.jsDoc=void 0,u.locals=void 0,u.nextContainer=void 0,u.typeArguments=void 0,u}function Wn(n,o,s,u){return n.typeParameters!==o||n.parameters!==s||n.type!==u?Ce(ia(o,s,u),n):n}function En(n,o,s){let u=ae(180);return u.typeParameters=Oe(n),u.parameters=Oe(o),u.type=s,u.transformFlags=1,u.jsDoc=void 0,u.locals=void 0,u.nextContainer=void 0,u.typeArguments=void 0,u}function Ii(n,o,s,u){return n.typeParameters!==o||n.parameters!==s||n.type!==u?Ce(En(o,s,u),n):n}function aa(n,o,s){let u=ae(181);return u.modifiers=Oe(n),u.parameters=Oe(o),u.type=s,u.transformFlags=1,u.jsDoc=void 0,u.locals=void 0,u.nextContainer=void 0,u.typeArguments=void 0,u}function Vn(n,o,s,u){return n.parameters!==s||n.type!==u||n.modifiers!==o?Ce(aa(o,s,u),n):n}function Sr(n,o){let s=B(204);return s.type=n,s.literal=o,s.transformFlags=1,s}function Je(n,o,s){return n.type!==o||n.literal!==s?r(Sr(o,s),n):n}function oa(n){return vt(n)}function Mt(n,o,s){let u=B(182);return u.assertsModifier=n,u.parameterName=Xe(o),u.type=s,u.transformFlags=1,u}function Lr(n,o,s,u){return n.assertsModifier!==o||n.parameterName!==s||n.type!==u?r(Mt(o,s,u),n):n}function j(n,o){let s=B(183);return s.typeName=Xe(n),s.typeArguments=o&&a().parenthesizeTypeArguments(Y(o)),s.transformFlags=1,s}function T(n,o,s){return n.typeName!==o||n.typeArguments!==s?r(j(o,s),n):n}function x(n,o,s){let u=ae(184);return u.typeParameters=Oe(n),u.parameters=Oe(o),u.type=s,u.transformFlags=1,u.modifiers=void 0,u.jsDoc=void 0,u.locals=void 0,u.nextContainer=void 0,u.typeArguments=void 0,u}function f(n,o,s,u){return n.typeParameters!==o||n.parameters!==s||n.type!==u?$(x(o,s,u),n):n}function $(n,o){return n!==o&&(n.modifiers=o.modifiers),Ce(n,o)}function Q(...n){return n.length===4?O(...n):n.length===3?fe(...n):N.fail("Incorrect number of arguments specified.")}function O(n,o,s,u){let g=ae(185);return g.modifiers=Oe(n),g.typeParameters=Oe(o),g.parameters=Oe(s),g.type=u,g.transformFlags=1,g.jsDoc=void 0,g.locals=void 0,g.nextContainer=void 0,g.typeArguments=void 0,g}function fe(n,o,s){return O(void 0,n,o,s)}function be(...n){return n.length===5?he(...n):n.length===4?Re(...n):N.fail("Incorrect number of arguments specified.")}function he(n,o,s,u,g){return n.modifiers!==o||n.typeParameters!==s||n.parameters!==u||n.type!==g?Ce(Q(o,s,u,g),n):n}function Re(n,o,s,u){return he(n,n.modifiers,o,s,u)}function we(n,o){let s=B(186);return s.exprName=n,s.typeArguments=o&&a().parenthesizeTypeArguments(o),s.transformFlags=1,s}function et(n,o,s){return n.exprName!==o||n.typeArguments!==s?r(we(o,s),n):n}function Ye(n){let o=ae(187);return o.members=Y(n),o.transformFlags=1,o}function Ke(n,o){return n.members!==o?r(Ye(o),n):n}function It(n){let o=B(188);return o.elementType=a().parenthesizeNonArrayTypeOfPostfixType(n),o.transformFlags=1,o}function qt(n,o){return n.elementType!==o?r(It(o),n):n}function _r(n){let o=B(189);return o.elements=Y(a().parenthesizeElementTypesOfTupleType(n)),o.transformFlags=1,o}function Te(n,o){return n.elements!==o?r(_r(o),n):n}function ft(n,o,s,u){let g=ae(202);return g.dotDotDotToken=n,g.name=o,g.questionToken=s,g.type=u,g.transformFlags=1,g.jsDoc=void 0,g}function An(n,o,s,u,g){return n.dotDotDotToken!==o||n.name!==s||n.questionToken!==u||n.type!==g?r(ft(o,s,u,g),n):n}function Et(n){let o=B(190);return o.type=a().parenthesizeTypeOfOptionalType(n),o.transformFlags=1,o}function H(n,o){return n.type!==o?r(Et(o),n):n}function Fa(n){let o=B(191);return o.type=n,o.transformFlags=1,o}function Ie(n,o){return n.type!==o?r(Fa(o),n):n}function ot(n,o,s){let u=B(n);return u.types=ue.createNodeArray(s(o)),u.transformFlags=1,u}function cr(n,o,s){return n.types!==o?r(ot(n.kind,o,s),n):n}function an(n){return ot(192,n,a().parenthesizeConstituentTypesOfUnionType)}function Ba(n,o){return cr(n,o,a().parenthesizeConstituentTypesOfUnionType)}function kn(n){return ot(193,n,a().parenthesizeConstituentTypesOfIntersectionType)}function je(n,o){return cr(n,o,a().parenthesizeConstituentTypesOfIntersectionType)}function dt(n,o,s,u){let g=B(194);return g.checkType=a().parenthesizeCheckTypeOfConditionalType(n),g.extendsType=a().parenthesizeExtendsTypeOfConditionalType(o),g.trueType=s,g.falseType=u,g.transformFlags=1,g.locals=void 0,g.nextContainer=void 0,g}function li(n,o,s,u,g){return n.checkType!==o||n.extendsType!==s||n.trueType!==u||n.falseType!==g?r(dt(o,s,u,g),n):n}function Hn(n){let o=B(195);return o.typeParameter=n,o.transformFlags=1,o}function t1(n,o){return n.typeParameter!==o?r(Hn(o),n):n}function dr(n,o){let s=B(203);return s.head=n,s.templateSpans=Y(o),s.transformFlags=1,s}function r1(n,o,s){return n.head!==o||n.templateSpans!==s?r(dr(o,s),n):n}function ui(n,o,s,u,g=!1){let I=B(205);return I.argument=n,I.assertions=o,I.qualifier=s,I.typeArguments=u&&a().parenthesizeTypeArguments(u),I.isTypeOf=g,I.transformFlags=1,I}function fs(n,o,s,u,g,I=n.isTypeOf){return n.argument!==o||n.assertions!==s||n.qualifier!==u||n.typeArguments!==g||n.isTypeOf!==I?r(ui(o,s,u,g,I),n):n}function xr(n){let o=B(196);return o.type=n,o.transformFlags=1,o}function Ft(n,o){return n.type!==o?r(xr(o),n):n}function M(){let n=B(197);return n.transformFlags=1,n}function Jr(n,o){let s=B(198);return s.operator=n,s.type=n===148?a().parenthesizeOperandOfReadonlyTypeOperator(o):a().parenthesizeOperandOfTypeOperator(o),s.transformFlags=1,s}function sa(n,o){return n.type!==o?r(Jr(n.operator,o),n):n}function Ni(n,o){let s=B(199);return s.objectType=a().parenthesizeNonArrayTypeOfPostfixType(n),s.indexType=o,s.transformFlags=1,s}function G_(n,o,s){return n.objectType!==o||n.indexType!==s?r(Ni(o,s),n):n}function Lt(n,o,s,u,g,I){let W=ae(200);return W.readonlyToken=n,W.typeParameter=o,W.nameType=s,W.questionToken=u,W.type=g,W.members=I&&Y(I),W.transformFlags=1,W.locals=void 0,W.nextContainer=void 0,W}function Yt(n,o,s,u,g,I,W){return n.readonlyToken!==o||n.typeParameter!==s||n.nameType!==u||n.questionToken!==g||n.type!==I||n.members!==W?r(Lt(o,s,u,g,I,W),n):n}function Oi(n){let o=B(201);return o.literal=n,o.transformFlags=1,o}function n1(n,o){return n.literal!==o?r(Oi(o),n):n}function Tu(n){let o=B(206);return o.elements=Y(n),o.transformFlags|=De(o.elements)|1024|524288,o.transformFlags&32768&&(o.transformFlags|=65664),o}function Ua(n,o){return n.elements!==o?r(Tu(o),n):n}function Su(n){let o=B(207);return o.elements=Y(n),o.transformFlags|=De(o.elements)|1024|524288,o}function X_(n,o){return n.elements!==o?r(Su(o),n):n}function _a(n,o,s,u){let g=ae(208);return g.dotDotDotToken=n,g.propertyName=Xe(o),g.name=Xe(s),g.initializer=To(u),g.transformFlags|=V(g.dotDotDotToken)|In(g.propertyName)|In(g.name)|V(g.initializer)|(g.dotDotDotToken?32768:0)|1024,g.flowNode=void 0,g}function xu(n,o,s,u,g){return n.propertyName!==s||n.dotDotDotToken!==o||n.name!==u||n.initializer!==g?r(_a(o,s,u,g),n):n}function $_(n,o){let s=B(209),u=n&&wi(n),g=Y(n,u&&Im(u)?!0:void 0);return s.elements=a().parenthesizeExpressionsOfCommaDelimitedList(g),s.multiLine=o,s.transformFlags|=De(s.elements),s}function wu(n,o){return n.elements!==o?r($_(o,n.multiLine),n):n}function ds(n,o){let s=ae(210);return s.properties=Y(n),s.multiLine=o,s.transformFlags|=De(s.properties),s.jsDoc=void 0,s}function i1(n,o){return n.properties!==o?r(ds(o,n.multiLine),n):n}function ms(n,o,s){let u=ae(211);return u.expression=n,u.questionDotToken=o,u.name=s,u.transformFlags=V(u.expression)|V(u.questionDotToken)|(Ee(u.name)?e_(u.name):V(u.name)|536870912),u.jsDoc=void 0,u.flowNode=void 0,u}function Mi(n,o){let s=ms(a().parenthesizeLeftSideOfAccess(n,!1),void 0,Xe(o));return qf(n)&&(s.transformFlags|=384),s}function Q_(n,o,s){return Q4(n)?ys(n,o,n.questionDotToken,gi(s,Ee)):n.expression!==o||n.name!==s?r(Mi(o,s),n):n}function hs(n,o,s){let u=ms(a().parenthesizeLeftSideOfAccess(n,!0),o,Xe(s));return u.flags|=64,u.transformFlags|=32,u}function ys(n,o,s,u){return N.assert(!!(n.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),n.expression!==o||n.questionDotToken!==s||n.name!==u?r(hs(o,s,u),n):n}function Cu(n,o,s){let u=ae(212);return u.expression=n,u.questionDotToken=o,u.argumentExpression=s,u.transformFlags|=V(u.expression)|V(u.questionDotToken)|V(u.argumentExpression),u.jsDoc=void 0,u.flowNode=void 0,u}function Y_(n,o){let s=Cu(a().parenthesizeLeftSideOfAccess(n,!1),void 0,Cr(o));return qf(n)&&(s.transformFlags|=384),s}function Eu(n,o,s){return Y4(n)?ku(n,o,n.questionDotToken,s):n.expression!==o||n.argumentExpression!==s?r(Y_(o,s),n):n}function Au(n,o,s){let u=Cu(a().parenthesizeLeftSideOfAccess(n,!0),o,Cr(s));return u.flags|=64,u.transformFlags|=32,u}function ku(n,o,s,u){return N.assert(!!(n.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),n.expression!==o||n.questionDotToken!==s||n.argumentExpression!==u?r(Au(o,s,u),n):n}function po(n,o,s,u){let g=ae(213);return g.expression=n,g.questionDotToken=o,g.typeArguments=s,g.arguments=u,g.transformFlags|=V(g.expression)|V(g.questionDotToken)|De(g.typeArguments)|De(g.arguments),g.typeArguments&&(g.transformFlags|=1),gd(g.expression)&&(g.transformFlags|=16384),g}function fo(n,o,s){let u=po(a().parenthesizeLeftSideOfAccess(n,!1),void 0,Oe(o),a().parenthesizeExpressionsOfCommaDelimitedList(Y(s)));return zx(u.expression)&&(u.transformFlags|=8388608),u}function a1(n,o,s,u){return y0(n)?gs(n,o,n.questionDotToken,s,u):n.expression!==o||n.typeArguments!==s||n.arguments!==u?r(fo(o,s,u),n):n}function zr(n,o,s,u){let g=po(a().parenthesizeLeftSideOfAccess(n,!0),o,Oe(s),a().parenthesizeExpressionsOfCommaDelimitedList(Y(u)));return g.flags|=64,g.transformFlags|=32,g}function gs(n,o,s,u,g){return N.assert(!!(n.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),n.expression!==o||n.questionDotToken!==s||n.typeArguments!==u||n.arguments!==g?r(zr(o,s,u,g),n):n}function bs(n,o,s){let u=ae(214);return u.expression=a().parenthesizeExpressionOfNew(n),u.typeArguments=Oe(o),u.arguments=s?a().parenthesizeExpressionsOfCommaDelimitedList(s):void 0,u.transformFlags|=V(u.expression)|De(u.typeArguments)|De(u.arguments)|32,u.typeArguments&&(u.transformFlags|=1),u}function Du(n,o,s,u){return n.expression!==o||n.typeArguments!==s||n.arguments!==u?r(bs(o,s,u),n):n}function Pu(n,o,s){let u=B(215);return u.tag=a().parenthesizeLeftSideOfAccess(n,!1),u.typeArguments=Oe(o),u.template=s,u.transformFlags|=V(u.tag)|De(u.typeArguments)|V(u.template)|1024,u.typeArguments&&(u.transformFlags|=1),BT(u.template)&&(u.transformFlags|=128),u}function o1(n,o,s,u){return n.tag!==o||n.typeArguments!==s||n.template!==u?r(Pu(o,s,u),n):n}function Iu(n,o){let s=B(216);return s.expression=a().parenthesizeOperandOfPrefixUnary(o),s.type=n,s.transformFlags|=V(s.expression)|V(s.type)|1,s}function Nu(n,o,s){return n.type!==o||n.expression!==s?r(Iu(o,s),n):n}function K_(n){let o=B(217);return o.expression=n,o.transformFlags=V(o.expression),o.jsDoc=void 0,o}function Ou(n,o){return n.expression!==o?r(K_(o),n):n}function Z_(n,o,s,u,g,I,W){let de=ae(218);de.modifiers=Oe(n),de.asteriskToken=o,de.name=Xe(s),de.typeParameters=Oe(u),de.parameters=Y(g),de.type=I,de.body=W;let We=ln(de.modifiers)&512,Er=!!de.asteriskToken,$n=We&&Er;return de.transformFlags=De(de.modifiers)|V(de.asteriskToken)|In(de.name)|De(de.typeParameters)|De(de.parameters)|V(de.type)|V(de.body)&-67108865|($n?128:We?256:Er?2048:0)|(de.typeParameters||de.type?1:0)|4194304,de.typeArguments=void 0,de.jsDoc=void 0,de.locals=void 0,de.nextContainer=void 0,de.flowNode=void 0,de.endFlowNode=void 0,de.returnFlowNode=void 0,de}function Mu(n,o,s,u,g,I,W,de){return n.name!==u||n.modifiers!==o||n.asteriskToken!==s||n.typeParameters!==g||n.parameters!==I||n.type!==W||n.body!==de?Ce(Z_(o,s,u,g,I,W,de),n):n}function ec(n,o,s,u,g,I){let W=ae(219);W.modifiers=Oe(n),W.typeParameters=Oe(o),W.parameters=Y(s),W.type=u,W.equalsGreaterThanToken=g??vt(39),W.body=a().parenthesizeConciseBodyOfArrowFunction(I);let de=ln(W.modifiers)&512;return W.transformFlags=De(W.modifiers)|De(W.typeParameters)|De(W.parameters)|V(W.type)|V(W.equalsGreaterThanToken)|V(W.body)&-67108865|(W.typeParameters||W.type?1:0)|(de?16640:0)|1024,W.typeArguments=void 0,W.jsDoc=void 0,W.locals=void 0,W.nextContainer=void 0,W.flowNode=void 0,W.endFlowNode=void 0,W.returnFlowNode=void 0,W}function tc(n,o,s,u,g,I,W){return n.modifiers!==o||n.typeParameters!==s||n.parameters!==u||n.type!==g||n.equalsGreaterThanToken!==I||n.body!==W?Ce(ec(o,s,u,g,I,W),n):n}function Lu(n){let o=B(220);return o.expression=a().parenthesizeOperandOfPrefixUnary(n),o.transformFlags|=V(o.expression),o}function Wr(n,o){return n.expression!==o?r(Lu(o),n):n}function vs(n){let o=B(221);return o.expression=a().parenthesizeOperandOfPrefixUnary(n),o.transformFlags|=V(o.expression),o}function pi(n,o){return n.expression!==o?r(vs(o),n):n}function rc(n){let o=B(222);return o.expression=a().parenthesizeOperandOfPrefixUnary(n),o.transformFlags|=V(o.expression),o}function ca(n,o){return n.expression!==o?r(rc(o),n):n}function la(n){let o=B(223);return o.expression=a().parenthesizeOperandOfPrefixUnary(n),o.transformFlags|=V(o.expression)|256|128|2097152,o}function s1(n,o){return n.expression!==o?r(la(o),n):n}function qa(n,o){let s=B(224);return s.operator=n,s.operand=a().parenthesizeOperandOfPrefixUnary(o),s.transformFlags|=V(s.operand),(n===46||n===47)&&Ee(s.operand)&&!wa(s.operand)&&!Y0(s.operand)&&(s.transformFlags|=268435456),s}function _1(n,o){return n.operand!==o?r(qa(n.operator,o),n):n}function Ts(n,o){let s=B(225);return s.operator=o,s.operand=a().parenthesizeOperandOfPostfixUnary(n),s.transformFlags|=V(s.operand),Ee(s.operand)&&!wa(s.operand)&&!Y0(s.operand)&&(s.transformFlags|=268435456),s}function c1(n,o){return n.operand!==o?r(Ts(o,n.operator),n):n}function nc(n,o,s){let u=ae(226),g=lr(o),I=g.kind;return u.left=a().parenthesizeLeftSideOfBinary(I,n),u.operatorToken=g,u.right=a().parenthesizeRightSideOfBinary(I,u.left,s),u.transformFlags|=V(u.left)|V(u.operatorToken)|V(u.right),I===61?u.transformFlags|=32:I===64?uo(u.left)?u.transformFlags|=5248|Ju(u.left):iu(u.left)&&(u.transformFlags|=5120|Ju(u.left)):I===43||I===68?u.transformFlags|=512:Tm(I)&&(u.transformFlags|=16),I===103&&jr(u.left)&&(u.transformFlags|=536870912),u.jsDoc=void 0,u}function Ju(n){return U6(n)?65536:0}function Ru(n,o,s,u){return n.left!==o||n.operatorToken!==s||n.right!==u?r(nc(o,s,u),n):n}function ju(n,o,s,u,g){let I=B(227);return I.condition=a().parenthesizeConditionOfConditionalExpression(n),I.questionToken=o??vt(58),I.whenTrue=a().parenthesizeBranchOfConditionalExpression(s),I.colonToken=u??vt(59),I.whenFalse=a().parenthesizeBranchOfConditionalExpression(g),I.transformFlags|=V(I.condition)|V(I.questionToken)|V(I.whenTrue)|V(I.colonToken)|V(I.whenFalse),I}function fi(n,o,s,u,g,I){return n.condition!==o||n.questionToken!==s||n.whenTrue!==u||n.colonToken!==g||n.whenFalse!==I?r(ju(o,s,u,g,I),n):n}function ic(n,o){let s=B(228);return s.head=n,s.templateSpans=Y(o),s.transformFlags|=V(s.head)|De(s.templateSpans)|1024,s}function l1(n,o,s){return n.head!==o||n.templateSpans!==s?r(ic(o,s),n):n}function Ss(n,o,s,u=0){N.assert(!(u&-7177),"Unsupported template flags.");let g;if(s!==void 0&&s!==o&&(g=DL(n,s),typeof g=="object"))return N.fail("Invalid raw text");if(o===void 0){if(g===void 0)return N.fail("Arguments 'text' and 'rawText' may not both be undefined.");o=g}else g!==void 0&&N.assert(o===g,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return o}function za(n){let o=1024;return n&&(o|=128),o}function Fu(n,o,s,u){let g=Tr(n);return g.text=o,g.rawText=s,g.templateFlags=u&7176,g.transformFlags=za(g.templateFlags),g}function ac(n,o,s,u){let g=ae(n);return g.text=o,g.rawText=s,g.templateFlags=u&7176,g.transformFlags=za(g.templateFlags),g}function Li(n,o,s,u){return n===15?ac(n,o,s,u):Fu(n,o,s,u)}function oc(n,o,s){return n=Ss(16,n,o,s),Li(16,n,o,s)}function u1(n,o,s){return n=Ss(16,n,o,s),Li(17,n,o,s)}function Bu(n,o,s){return n=Ss(16,n,o,s),Li(18,n,o,s)}function p1(n,o,s){return n=Ss(16,n,o,s),ac(15,n,o,s)}function Uu(n,o){N.assert(!n||!!o,"A `YieldExpression` with an asteriskToken must have an expression.");let s=B(229);return s.expression=o&&a().parenthesizeExpressionForDisallowedComma(o),s.asteriskToken=n,s.transformFlags|=V(s.expression)|V(s.asteriskToken)|1024|128|1048576,s}function f1(n,o,s){return n.expression!==s||n.asteriskToken!==o?r(Uu(o,s),n):n}function qu(n){let o=B(230);return o.expression=a().parenthesizeExpressionForDisallowedComma(n),o.transformFlags|=V(o.expression)|1024|32768,o}function d1(n,o){return n.expression!==o?r(qu(o),n):n}function xs(n,o,s,u,g){let I=ae(231);return I.modifiers=Oe(n),I.name=Xe(o),I.typeParameters=Oe(s),I.heritageClauses=Oe(u),I.members=Y(g),I.transformFlags|=De(I.modifiers)|In(I.name)|De(I.typeParameters)|De(I.heritageClauses)|De(I.members)|(I.typeParameters?1:0)|1024,I.jsDoc=void 0,I}function sc(n,o,s,u,g,I){return n.modifiers!==o||n.name!==s||n.typeParameters!==u||n.heritageClauses!==g||n.members!==I?r(xs(o,s,u,g,I),n):n}function m1(){return B(232)}function Vr(n,o){let s=B(233);return s.expression=a().parenthesizeLeftSideOfAccess(n,!1),s.typeArguments=o&&a().parenthesizeTypeArguments(o),s.transformFlags|=V(s.expression)|De(s.typeArguments)|1024,s}function _c(n,o,s){return n.expression!==o||n.typeArguments!==s?r(Vr(o,s),n):n}function zu(n,o){let s=B(234);return s.expression=n,s.type=o,s.transformFlags|=V(s.expression)|V(s.type)|1,s}function Wu(n,o,s){return n.expression!==o||n.type!==s?r(zu(o,s),n):n}function cc(n){let o=B(235);return o.expression=a().parenthesizeLeftSideOfAccess(n,!1),o.transformFlags|=V(o.expression)|1,o}function Vu(n,o){return Z4(n)?ws(n,o):n.expression!==o?r(cc(o),n):n}function lc(n,o){let s=B(238);return s.expression=n,s.type=o,s.transformFlags|=V(s.expression)|V(s.type)|1,s}function Dn(n,o,s){return n.expression!==o||n.type!==s?r(lc(o,s),n):n}function Hu(n){let o=B(235);return o.flags|=64,o.expression=a().parenthesizeLeftSideOfAccess(n,!0),o.transformFlags|=V(o.expression)|1,o}function ws(n,o){return N.assert(!!(n.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),n.expression!==o?r(Hu(o),n):n}function Gn(n,o){let s=B(236);switch(s.keywordToken=n,s.name=o,s.transformFlags|=V(s.name),n){case 105:s.transformFlags|=1024;break;case 102:s.transformFlags|=32;break;default:return N.assertNever(n)}return s.flowNode=void 0,s}function Cs(n,o){return n.name!==o?r(Gn(n.keywordToken,o),n):n}function uc(n,o){let s=B(239);return s.expression=n,s.literal=o,s.transformFlags|=V(s.expression)|V(s.literal)|1024,s}function Gu(n,o,s){return n.expression!==o||n.literal!==s?r(uc(o,s),n):n}function h1(){let n=B(240);return n.transformFlags|=1024,n}function ua(n,o){let s=B(241);return s.statements=Y(n),s.multiLine=o,s.transformFlags|=De(s.statements),s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s}function y1(n,o){return n.statements!==o?r(ua(o,n.multiLine),n):n}function Xu(n,o){let s=B(243);return s.modifiers=Oe(n),s.declarationList=zt(o)?gc(o):o,s.transformFlags|=De(s.modifiers)|V(s.declarationList),ln(s.modifiers)&2&&(s.transformFlags=1),s.jsDoc=void 0,s.flowNode=void 0,s}function pc(n,o,s){return n.modifiers!==o||n.declarationList!==s?r(Xu(o,s),n):n}function fc(){let n=B(242);return n.jsDoc=void 0,n}function Es(n){let o=B(244);return o.expression=a().parenthesizeExpressionOfExpressionStatement(n),o.transformFlags|=V(o.expression),o.jsDoc=void 0,o.flowNode=void 0,o}function $u(n,o){return n.expression!==o?r(Es(o),n):n}function Qu(n,o,s){let u=B(245);return u.expression=n,u.thenStatement=on(o),u.elseStatement=on(s),u.transformFlags|=V(u.expression)|V(u.thenStatement)|V(u.elseStatement),u.jsDoc=void 0,u.flowNode=void 0,u}function Yu(n,o,s,u){return n.expression!==o||n.thenStatement!==s||n.elseStatement!==u?r(Qu(o,s,u),n):n}function Ku(n,o){let s=B(246);return s.statement=on(n),s.expression=o,s.transformFlags|=V(s.statement)|V(s.expression),s.jsDoc=void 0,s.flowNode=void 0,s}function g1(n,o,s){return n.statement!==o||n.expression!==s?r(Ku(o,s),n):n}function Zu(n,o){let s=B(247);return s.expression=n,s.statement=on(o),s.transformFlags|=V(s.expression)|V(s.statement),s.jsDoc=void 0,s.flowNode=void 0,s}function ep(n,o,s){return n.expression!==o||n.statement!==s?r(Zu(o,s),n):n}function dc(n,o,s,u){let g=B(248);return g.initializer=n,g.condition=o,g.incrementor=s,g.statement=on(u),g.transformFlags|=V(g.initializer)|V(g.condition)|V(g.incrementor)|V(g.statement),g.jsDoc=void 0,g.locals=void 0,g.nextContainer=void 0,g.flowNode=void 0,g}function b1(n,o,s,u,g){return n.initializer!==o||n.condition!==s||n.incrementor!==u||n.statement!==g?r(dc(o,s,u,g),n):n}function tp(n,o,s){let u=B(249);return u.initializer=n,u.expression=o,u.statement=on(s),u.transformFlags|=V(u.initializer)|V(u.expression)|V(u.statement),u.jsDoc=void 0,u.locals=void 0,u.nextContainer=void 0,u.flowNode=void 0,u}function v1(n,o,s,u){return n.initializer!==o||n.expression!==s||n.statement!==u?r(tp(o,s,u),n):n}function rp(n,o,s,u){let g=B(250);return g.awaitModifier=n,g.initializer=o,g.expression=a().parenthesizeExpressionForDisallowedComma(s),g.statement=on(u),g.transformFlags|=V(g.awaitModifier)|V(g.initializer)|V(g.expression)|V(g.statement)|1024,n&&(g.transformFlags|=128),g.jsDoc=void 0,g.locals=void 0,g.nextContainer=void 0,g.flowNode=void 0,g}function T1(n,o,s,u,g){return n.awaitModifier!==o||n.initializer!==s||n.expression!==u||n.statement!==g?r(rp(o,s,u,g),n):n}function mc(n){let o=B(251);return o.label=Xe(n),o.transformFlags|=V(o.label)|4194304,o.jsDoc=void 0,o.flowNode=void 0,o}function np(n,o){return n.label!==o?r(mc(o),n):n}function hc(n){let o=B(252);return o.label=Xe(n),o.transformFlags|=V(o.label)|4194304,o.jsDoc=void 0,o.flowNode=void 0,o}function S1(n,o){return n.label!==o?r(hc(o),n):n}function ip(n){let o=B(253);return o.expression=n,o.transformFlags|=V(o.expression)|128|4194304,o.jsDoc=void 0,o.flowNode=void 0,o}function ap(n,o){return n.expression!==o?r(ip(o),n):n}function yc(n,o){let s=B(254);return s.expression=n,s.statement=on(o),s.transformFlags|=V(s.expression)|V(s.statement),s.jsDoc=void 0,s.flowNode=void 0,s}function op(n,o,s){return n.expression!==o||n.statement!==s?r(yc(o,s),n):n}function pa(n,o){let s=B(255);return s.expression=a().parenthesizeExpressionForDisallowedComma(n),s.caseBlock=o,s.transformFlags|=V(s.expression)|V(s.caseBlock),s.jsDoc=void 0,s.flowNode=void 0,s.possiblyExhaustive=!1,s}function x1(n,o,s){return n.expression!==o||n.caseBlock!==s?r(pa(o,s),n):n}function sp(n,o){let s=B(256);return s.label=Xe(n),s.statement=on(o),s.transformFlags|=V(s.label)|V(s.statement),s.jsDoc=void 0,s.flowNode=void 0,s}function _p(n,o,s){return n.label!==o||n.statement!==s?r(sp(o,s),n):n}function cp(n){let o=B(257);return o.expression=n,o.transformFlags|=V(o.expression),o.jsDoc=void 0,o.flowNode=void 0,o}function w1(n,o){return n.expression!==o?r(cp(o),n):n}function lp(n,o,s){let u=B(258);return u.tryBlock=n,u.catchClause=o,u.finallyBlock=s,u.transformFlags|=V(u.tryBlock)|V(u.catchClause)|V(u.finallyBlock),u.jsDoc=void 0,u.flowNode=void 0,u}function up(n,o,s,u){return n.tryBlock!==o||n.catchClause!==s||n.finallyBlock!==u?r(lp(o,s,u),n):n}function pp(){let n=B(259);return n.jsDoc=void 0,n.flowNode=void 0,n}function As(n,o,s,u){let g=ae(260);return g.name=Xe(n),g.exclamationToken=o,g.type=s,g.initializer=To(u),g.transformFlags|=In(g.name)|V(g.initializer)|(g.exclamationToken??g.type?1:0),g.jsDoc=void 0,g}function C1(n,o,s,u,g){return n.name!==o||n.type!==u||n.exclamationToken!==s||n.initializer!==g?r(As(o,s,u,g),n):n}function gc(n,o=0){let s=B(261);return s.flags|=o&7,s.declarations=Y(n),s.transformFlags|=De(s.declarations)|4194304,o&7&&(s.transformFlags|=263168),o&4&&(s.transformFlags|=4),s}function E1(n,o){return n.declarations!==o?r(gc(o,n.flags),n):n}function bc(n,o,s,u,g,I,W){let de=ae(262);if(de.modifiers=Oe(n),de.asteriskToken=o,de.name=Xe(s),de.typeParameters=Oe(u),de.parameters=Y(g),de.type=I,de.body=W,!de.body||ln(de.modifiers)&2)de.transformFlags=1;else{let We=ln(de.modifiers)&512,Er=!!de.asteriskToken,$n=We&&Er;de.transformFlags=De(de.modifiers)|V(de.asteriskToken)|In(de.name)|De(de.typeParameters)|De(de.parameters)|V(de.type)|V(de.body)&-67108865|($n?128:We?256:Er?2048:0)|(de.typeParameters||de.type?1:0)|4194304}return de.typeArguments=void 0,de.jsDoc=void 0,de.locals=void 0,de.nextContainer=void 0,de.endFlowNode=void 0,de.returnFlowNode=void 0,de}function fp(n,o,s,u,g,I,W,de){return n.modifiers!==o||n.asteriskToken!==s||n.name!==u||n.typeParameters!==g||n.parameters!==I||n.type!==W||n.body!==de?A1(bc(o,s,u,g,I,W,de),n):n}function A1(n,o){return n!==o&&n.modifiers===o.modifiers&&(n.modifiers=o.modifiers),Ce(n,o)}function vc(n,o,s,u,g){let I=ae(263);return I.modifiers=Oe(n),I.name=Xe(o),I.typeParameters=Oe(s),I.heritageClauses=Oe(u),I.members=Y(g),ln(I.modifiers)&2?I.transformFlags=1:(I.transformFlags|=De(I.modifiers)|In(I.name)|De(I.typeParameters)|De(I.heritageClauses)|De(I.members)|(I.typeParameters?1:0)|1024,I.transformFlags&8192&&(I.transformFlags|=1)),I.jsDoc=void 0,I}function Tc(n,o,s,u,g,I){return n.modifiers!==o||n.name!==s||n.typeParameters!==u||n.heritageClauses!==g||n.members!==I?r(vc(o,s,u,g,I),n):n}function dp(n,o,s,u,g){let I=ae(264);return I.modifiers=Oe(n),I.name=Xe(o),I.typeParameters=Oe(s),I.heritageClauses=Oe(u),I.members=Y(g),I.transformFlags=1,I.jsDoc=void 0,I}function gt(n,o,s,u,g,I){return n.modifiers!==o||n.name!==s||n.typeParameters!==u||n.heritageClauses!==g||n.members!==I?r(dp(o,s,u,g,I),n):n}function Ji(n,o,s,u){let g=ae(265);return g.modifiers=Oe(n),g.name=Xe(o),g.typeParameters=Oe(s),g.type=u,g.transformFlags=1,g.jsDoc=void 0,g.locals=void 0,g.nextContainer=void 0,g}function Sc(n,o,s,u,g){return n.modifiers!==o||n.name!==s||n.typeParameters!==u||n.type!==g?r(Ji(o,s,u,g),n):n}function Ri(n,o,s){let u=ae(266);return u.modifiers=Oe(n),u.name=Xe(o),u.members=Y(s),u.transformFlags|=De(u.modifiers)|V(u.name)|De(u.members)|1,u.transformFlags&=-67108865,u.jsDoc=void 0,u}function mp(n,o,s,u){return n.modifiers!==o||n.name!==s||n.members!==u?r(Ri(o,s,u),n):n}function Jt(n,o,s,u=0){let g=ae(267);return g.modifiers=Oe(n),g.flags|=u&2088,g.name=o,g.body=s,ln(g.modifiers)&2?g.transformFlags=1:g.transformFlags|=De(g.modifiers)|V(g.name)|V(g.body)|1,g.transformFlags&=-67108865,g.jsDoc=void 0,g.locals=void 0,g.nextContainer=void 0,g}function ji(n,o,s,u){return n.modifiers!==o||n.name!==s||n.body!==u?r(Jt(o,s,u,n.flags),n):n}function tr(n){let o=B(268);return o.statements=Y(n),o.transformFlags|=De(o.statements),o.jsDoc=void 0,o}function k1(n,o){return n.statements!==o?r(tr(o),n):n}function hp(n){let o=B(269);return o.clauses=Y(n),o.transformFlags|=De(o.clauses),o.locals=void 0,o.nextContainer=void 0,o}function D1(n,o){return n.clauses!==o?r(hp(o),n):n}function xc(n){let o=ae(270);return o.name=Xe(n),o.transformFlags|=e_(o.name)|1,o.modifiers=void 0,o.jsDoc=void 0,o}function P1(n,o){return n.name!==o?I1(xc(o),n):n}function I1(n,o){return n!==o&&(n.modifiers=o.modifiers),r(n,o)}function yp(n,o,s,u){let g=ae(271);return g.modifiers=Oe(n),g.name=Xe(s),g.isTypeOnly=o,g.moduleReference=u,g.transformFlags|=De(g.modifiers)|e_(g.name)|V(g.moduleReference),Om(g.moduleReference)||(g.transformFlags|=1),g.transformFlags&=-67108865,g.jsDoc=void 0,g}function gp(n,o,s,u,g){return n.modifiers!==o||n.isTypeOnly!==s||n.name!==u||n.moduleReference!==g?r(yp(o,s,u,g),n):n}function bp(n,o,s,u){let g=B(272);return g.modifiers=Oe(n),g.importClause=o,g.moduleSpecifier=s,g.assertClause=u,g.transformFlags|=V(g.importClause)|V(g.moduleSpecifier),g.transformFlags&=-67108865,g.jsDoc=void 0,g}function vp(n,o,s,u,g){return n.modifiers!==o||n.importClause!==s||n.moduleSpecifier!==u||n.assertClause!==g?r(bp(o,s,u,g),n):n}function wc(n,o,s){let u=ae(273);return u.isTypeOnly=n,u.name=o,u.namedBindings=s,u.transformFlags|=V(u.name)|V(u.namedBindings),n&&(u.transformFlags|=1),u.transformFlags&=-67108865,u}function Tp(n,o,s,u){return n.isTypeOnly!==o||n.name!==s||n.namedBindings!==u?r(wc(o,s,u),n):n}function Sp(n,o){let s=B(300);return s.elements=Y(n),s.multiLine=o,s.transformFlags|=4,s}function ks(n,o,s){return n.elements!==o||n.multiLine!==s?r(Sp(o,s),n):n}function Cc(n,o){let s=B(301);return s.name=n,s.value=o,s.transformFlags|=4,s}function xp(n,o,s){return n.name!==o||n.value!==s?r(Cc(o,s),n):n}function Ec(n,o){let s=B(302);return s.assertClause=n,s.multiLine=o,s}function N1(n,o,s){return n.assertClause!==o||n.multiLine!==s?r(Ec(o,s),n):n}function Ds(n){let o=ae(274);return o.name=n,o.transformFlags|=V(o.name),o.transformFlags&=-67108865,o}function O1(n,o){return n.name!==o?r(Ds(o),n):n}function Ac(n){let o=ae(280);return o.name=n,o.transformFlags|=V(o.name)|32,o.transformFlags&=-67108865,o}function M1(n,o){return n.name!==o?r(Ac(o),n):n}function wp(n){let o=B(275);return o.elements=Y(n),o.transformFlags|=De(o.elements),o.transformFlags&=-67108865,o}function L1(n,o){return n.elements!==o?r(wp(o),n):n}function Cp(n,o,s){let u=ae(276);return u.isTypeOnly=n,u.propertyName=o,u.name=s,u.transformFlags|=V(u.propertyName)|V(u.name),u.transformFlags&=-67108865,u}function J1(n,o,s,u){return n.isTypeOnly!==o||n.propertyName!==s||n.name!==u?r(Cp(o,s,u),n):n}function Ps(n,o,s){let u=ae(277);return u.modifiers=Oe(n),u.isExportEquals=o,u.expression=o?a().parenthesizeRightSideOfBinary(64,void 0,s):a().parenthesizeExpressionOfExportDefault(s),u.transformFlags|=De(u.modifiers)|V(u.expression),u.transformFlags&=-67108865,u.jsDoc=void 0,u}function Fi(n,o,s){return n.modifiers!==o||n.expression!==s?r(Ps(o,n.isExportEquals,s),n):n}function kc(n,o,s,u,g){let I=ae(278);return I.modifiers=Oe(n),I.isTypeOnly=o,I.exportClause=s,I.moduleSpecifier=u,I.assertClause=g,I.transformFlags|=De(I.modifiers)|V(I.exportClause)|V(I.moduleSpecifier),I.transformFlags&=-67108865,I.jsDoc=void 0,I}function Dc(n,o,s,u,g,I){return n.modifiers!==o||n.isTypeOnly!==s||n.exportClause!==u||n.moduleSpecifier!==g||n.assertClause!==I?Is(kc(o,s,u,g,I),n):n}function Is(n,o){return n!==o&&n.modifiers===o.modifiers&&(n.modifiers=o.modifiers),r(n,o)}function Ns(n){let o=B(279);return o.elements=Y(n),o.transformFlags|=De(o.elements),o.transformFlags&=-67108865,o}function R1(n,o){return n.elements!==o?r(Ns(o),n):n}function fa(n,o,s){let u=B(281);return u.isTypeOnly=n,u.propertyName=Xe(o),u.name=Xe(s),u.transformFlags|=V(u.propertyName)|V(u.name),u.transformFlags&=-67108865,u.jsDoc=void 0,u}function j1(n,o,s,u){return n.isTypeOnly!==o||n.propertyName!==s||n.name!==u?r(fa(o,s,u),n):n}function F1(){let n=ae(282);return n.jsDoc=void 0,n}function Pc(n){let o=B(283);return o.expression=n,o.transformFlags|=V(o.expression),o.transformFlags&=-67108865,o}function B1(n,o){return n.expression!==o?r(Pc(o),n):n}function U1(n){return B(n)}function Ic(n,o,s=!1){let u=Nc(n,s?o&&a().parenthesizeNonArrayTypeOfPostfixType(o):o);return u.postfix=s,u}function Nc(n,o){let s=B(n);return s.type=o,s}function Ep(n,o,s){return o.type!==s?r(Ic(n,s,o.postfix),o):o}function q1(n,o,s){return o.type!==s?r(Nc(n,s),o):o}function Ap(n,o){let s=ae(324);return s.parameters=Oe(n),s.type=o,s.transformFlags=De(s.parameters)|(s.type?1:0),s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.typeArguments=void 0,s}function z1(n,o,s){return n.parameters!==o||n.type!==s?r(Ap(o,s),n):n}function kp(n,o=!1){let s=ae(329);return s.jsDocPropertyTags=Oe(n),s.isArrayType=o,s}function W1(n,o,s){return n.jsDocPropertyTags!==o||n.isArrayType!==s?r(kp(o,s),n):n}function Dp(n){let o=B(316);return o.type=n,o}function V1(n,o){return n.type!==o?r(Dp(o),n):n}function Pp(n,o,s){let u=ae(330);return u.typeParameters=Oe(n),u.parameters=Y(o),u.type=s,u.jsDoc=void 0,u.locals=void 0,u.nextContainer=void 0,u}function H1(n,o,s,u){return n.typeParameters!==o||n.parameters!==s||n.type!==u?r(Pp(o,s,u),n):n}function Hr(n){let o=kf(n.kind);return n.tagName.escapedText===Mn(o)?n.tagName:Ge(o)}function Bi(n,o,s){let u=B(n);return u.tagName=o,u.comment=s,u}function mo(n,o,s){let u=ae(n);return u.tagName=o,u.comment=s,u}function ho(n,o,s,u){let g=Bi(352,n??Ge("template"),u);return g.constraint=o,g.typeParameters=Y(s),g}function Os(n,o=Hr(n),s,u,g){return n.tagName!==o||n.constraint!==s||n.typeParameters!==u||n.comment!==g?r(ho(o,s,u,g),n):n}function Ms(n,o,s,u){let g=mo(353,n??Ge("typedef"),u);return g.typeExpression=o,g.fullName=s,g.name=K0(s),g.locals=void 0,g.nextContainer=void 0,g}function Ip(n,o=Hr(n),s,u,g){return n.tagName!==o||n.typeExpression!==s||n.fullName!==u||n.comment!==g?r(Ms(o,s,u,g),n):n}function Oc(n,o,s,u,g,I){let W=mo(348,n??Ge("param"),I);return W.typeExpression=u,W.name=o,W.isNameFirst=!!g,W.isBracketed=s,W}function Mc(n,o=Hr(n),s,u,g,I,W){return n.tagName!==o||n.name!==s||n.isBracketed!==u||n.typeExpression!==g||n.isNameFirst!==I||n.comment!==W?r(Oc(o,s,u,g,I,W),n):n}function Np(n,o,s,u,g,I){let W=mo(355,n??Ge("prop"),I);return W.typeExpression=u,W.name=o,W.isNameFirst=!!g,W.isBracketed=s,W}function Op(n,o=Hr(n),s,u,g,I,W){return n.tagName!==o||n.name!==s||n.isBracketed!==u||n.typeExpression!==g||n.isNameFirst!==I||n.comment!==W?r(Np(o,s,u,g,I,W),n):n}function Mp(n,o,s,u){let g=mo(345,n??Ge("callback"),u);return g.typeExpression=o,g.fullName=s,g.name=K0(s),g.locals=void 0,g.nextContainer=void 0,g}function G1(n,o=Hr(n),s,u,g){return n.tagName!==o||n.typeExpression!==s||n.fullName!==u||n.comment!==g?r(Mp(o,s,u,g),n):n}function Lc(n,o,s){let u=Bi(346,n??Ge("overload"),s);return u.typeExpression=o,u}function X1(n,o=Hr(n),s,u){return n.tagName!==o||n.typeExpression!==s||n.comment!==u?r(Lc(o,s,u),n):n}function Jc(n,o,s){let u=Bi(335,n??Ge("augments"),s);return u.class=o,u}function $1(n,o=Hr(n),s,u){return n.tagName!==o||n.class!==s||n.comment!==u?r(Jc(o,s,u),n):n}function Ls(n,o,s){let u=Bi(336,n??Ge("implements"),s);return u.class=o,u}function Rc(n,o,s){let u=Bi(354,n??Ge("see"),s);return u.name=o,u}function yo(n,o,s,u){return n.tagName!==o||n.name!==s||n.comment!==u?r(Rc(o,s,u),n):n}function Lp(n){let o=B(317);return o.name=n,o}function Wa(n,o){return n.name!==o?r(Lp(o),n):n}function go(n,o){let s=B(318);return s.left=n,s.right=o,s.transformFlags|=V(s.left)|V(s.right),s}function Q1(n,o,s){return n.left!==o||n.right!==s?r(go(o,s),n):n}function Jp(n,o){let s=B(331);return s.name=n,s.text=o,s}function Y1(n,o,s){return n.name!==o?r(Jp(o,s),n):n}function Rp(n,o){let s=B(332);return s.name=n,s.text=o,s}function K1(n,o,s){return n.name!==o?r(Rp(o,s),n):n}function jc(n,o){let s=B(333);return s.name=n,s.text=o,s}function Z1(n,o,s){return n.name!==o?r(jc(o,s),n):n}function eh(n,o=Hr(n),s,u){return n.tagName!==o||n.class!==s||n.comment!==u?r(Ls(o,s,u),n):n}function jp(n,o,s){return Bi(n,o??Ge(kf(n)),s)}function th(n,o,s=Hr(o),u){return o.tagName!==s||o.comment!==u?r(jp(n,s,u),o):o}function Fp(n,o,s,u){let g=Bi(n,o??Ge(kf(n)),u);return g.typeExpression=s,g}function rh(n,o,s=Hr(o),u,g){return o.tagName!==s||o.typeExpression!==u||o.comment!==g?r(Fp(n,s,u,g),o):o}function Bp(n,o){return Bi(334,n,o)}function nh(n,o,s){return n.tagName!==o||n.comment!==s?r(Bp(o,s),n):n}function Up(n,o,s){let u=mo(347,n??Ge(kf(347)),s);return u.typeExpression=o,u.locals=void 0,u.nextContainer=void 0,u}function ih(n,o=Hr(n),s,u){return n.tagName!==o||n.typeExpression!==s||n.comment!==u?r(Up(o,s,u),n):n}function qp(n){let o=B(328);return o.text=n,o}function ah(n,o){return n.text!==o?r(qp(o),n):n}function Js(n,o){let s=B(327);return s.comment=n,s.tags=Oe(o),s}function oh(n,o,s){return n.comment!==o||n.tags!==s?r(Js(o,s),n):n}function Fc(n,o,s){let u=B(284);return u.openingElement=n,u.children=Y(o),u.closingElement=s,u.transformFlags|=V(u.openingElement)|De(u.children)|V(u.closingElement)|2,u}function zp(n,o,s,u){return n.openingElement!==o||n.children!==s||n.closingElement!==u?r(Fc(o,s,u),n):n}function Wp(n,o,s){let u=B(285);return u.tagName=n,u.typeArguments=Oe(o),u.attributes=s,u.transformFlags|=V(u.tagName)|De(u.typeArguments)|V(u.attributes)|2,u.typeArguments&&(u.transformFlags|=1),u}function Rs(n,o,s,u){return n.tagName!==o||n.typeArguments!==s||n.attributes!==u?r(Wp(o,s,u),n):n}function Bc(n,o,s){let u=B(286);return u.tagName=n,u.typeArguments=Oe(o),u.attributes=s,u.transformFlags|=V(u.tagName)|De(u.typeArguments)|V(u.attributes)|2,o&&(u.transformFlags|=1),u}function sh(n,o,s,u){return n.tagName!==o||n.typeArguments!==s||n.attributes!==u?r(Bc(o,s,u),n):n}function Vp(n){let o=B(287);return o.tagName=n,o.transformFlags|=V(o.tagName)|2,o}function _h(n,o){return n.tagName!==o?r(Vp(o),n):n}function js(n,o,s){let u=B(288);return u.openingFragment=n,u.children=Y(o),u.closingFragment=s,u.transformFlags|=V(u.openingFragment)|De(u.children)|V(u.closingFragment)|2,u}function Hp(n,o,s,u){return n.openingFragment!==o||n.children!==s||n.closingFragment!==u?r(js(o,s,u),n):n}function Fs(n,o){let s=B(12);return s.text=n,s.containsOnlyTriviaWhiteSpaces=!!o,s.transformFlags|=2,s}function Gp(n,o,s){return n.text!==o||n.containsOnlyTriviaWhiteSpaces!==s?r(Fs(o,s),n):n}function Uc(){let n=B(289);return n.transformFlags|=2,n}function wr(){let n=B(290);return n.transformFlags|=2,n}function qc(n,o){let s=ae(291);return s.name=n,s.initializer=o,s.transformFlags|=V(s.name)|V(s.initializer)|2,s}function Xp(n,o,s){return n.name!==o||n.initializer!==s?r(qc(o,s),n):n}function $p(n){let o=ae(292);return o.properties=Y(n),o.transformFlags|=De(o.properties)|2,o}function Qp(n,o){return n.properties!==o?r($p(o),n):n}function Yp(n){let o=B(293);return o.expression=n,o.transformFlags|=V(o.expression)|2,o}function ch(n,o){return n.expression!==o?r(Yp(o),n):n}function bo(n,o){let s=B(294);return s.dotDotDotToken=n,s.expression=o,s.transformFlags|=V(s.dotDotDotToken)|V(s.expression)|2,s}function lh(n,o){return n.expression!==o?r(bo(n.dotDotDotToken,o),n):n}function Kp(n,o){let s=B(295);return s.namespace=n,s.name=o,s.transformFlags|=V(s.namespace)|V(s.name)|2,s}function uh(n,o,s){return n.namespace!==o||n.name!==s?r(Kp(o,s),n):n}function Zp(n,o){let s=B(296);return s.expression=a().parenthesizeExpressionForDisallowedComma(n),s.statements=Y(o),s.transformFlags|=V(s.expression)|De(s.statements),s.jsDoc=void 0,s}function zc(n,o,s){return n.expression!==o||n.statements!==s?r(Zp(o,s),n):n}function Va(n){let o=B(297);return o.statements=Y(n),o.transformFlags=De(o.statements),o}function ph(n,o){return n.statements!==o?r(Va(o),n):n}function Bs(n,o){let s=B(298);switch(s.token=n,s.types=Y(o),s.transformFlags|=De(s.types),n){case 96:s.transformFlags|=1024;break;case 119:s.transformFlags|=1;break;default:return N.assertNever(n)}return s}function ef(n,o){return n.types!==o?r(Bs(n.token,o),n):n}function tf(n,o){let s=B(299);return s.variableDeclaration=vf(n),s.block=o,s.transformFlags|=V(s.variableDeclaration)|V(s.block)|(n?0:64),s.locals=void 0,s.nextContainer=void 0,s}function vo(n,o,s){return n.variableDeclaration!==o||n.block!==s?r(tf(o,s),n):n}function Us(n,o){let s=ae(303);return s.name=Xe(n),s.initializer=a().parenthesizeExpressionForDisallowedComma(o),s.transformFlags|=In(s.name)|V(s.initializer),s.modifiers=void 0,s.questionToken=void 0,s.exclamationToken=void 0,s.jsDoc=void 0,s}function fh(n,o,s){return n.name!==o||n.initializer!==s?dh(Us(o,s),n):n}function dh(n,o){return n!==o&&(n.modifiers=o.modifiers,n.questionToken=o.questionToken,n.exclamationToken=o.exclamationToken),r(n,o)}function Wc(n,o){let s=ae(304);return s.name=Xe(n),s.objectAssignmentInitializer=o&&a().parenthesizeExpressionForDisallowedComma(o),s.transformFlags|=e_(s.name)|V(s.objectAssignmentInitializer)|1024,s.equalsToken=void 0,s.modifiers=void 0,s.questionToken=void 0,s.exclamationToken=void 0,s.jsDoc=void 0,s}function rf(n,o,s){return n.name!==o||n.objectAssignmentInitializer!==s?nf(Wc(o,s),n):n}function nf(n,o){return n!==o&&(n.modifiers=o.modifiers,n.questionToken=o.questionToken,n.exclamationToken=o.exclamationToken,n.equalsToken=o.equalsToken),r(n,o)}function da(n){let o=ae(305);return o.expression=a().parenthesizeExpressionForDisallowedComma(n),o.transformFlags|=V(o.expression)|128|65536,o.jsDoc=void 0,o}function mh(n,o){return n.expression!==o?r(da(o),n):n}function af(n,o){let s=ae(306);return s.name=Xe(n),s.initializer=o&&a().parenthesizeExpressionForDisallowedComma(o),s.transformFlags|=V(s.name)|V(s.initializer)|1,s.jsDoc=void 0,s}function hh(n,o,s){return n.name!==o||n.initializer!==s?r(af(o,s),n):n}function yh(n,o,s){let u=t.createBaseSourceFileNode(312);return u.statements=Y(n),u.endOfFileToken=o,u.flags|=s,u.text="",u.fileName="",u.path="",u.resolvedPath="",u.originalFileName="",u.languageVersion=0,u.languageVariant=0,u.scriptKind=0,u.isDeclarationFile=!1,u.hasNoDefaultLib=!1,u.transformFlags|=De(u.statements)|V(u.endOfFileToken),u.locals=void 0,u.nextContainer=void 0,u.endFlowNode=void 0,u.nodeCount=0,u.identifierCount=0,u.symbolCount=0,u.parseDiagnostics=void 0,u.bindDiagnostics=void 0,u.bindSuggestionDiagnostics=void 0,u.lineMap=void 0,u.externalModuleIndicator=void 0,u.setExternalModuleIndicator=void 0,u.pragmas=void 0,u.checkJsDirective=void 0,u.referencedFiles=void 0,u.typeReferenceDirectives=void 0,u.libReferenceDirectives=void 0,u.amdDependencies=void 0,u.commentDirectives=void 0,u.identifiers=void 0,u.packageJsonLocations=void 0,u.packageJsonScope=void 0,u.imports=void 0,u.moduleAugmentations=void 0,u.ambientModuleNames=void 0,u.resolvedModules=void 0,u.classifiableNames=void 0,u.impliedNodeFormat=void 0,u}function Vc(n){let o=Object.create(n.redirectTarget);return Object.defineProperties(o,{id:{get(){return this.redirectInfo.redirectTarget.id},set(s){this.redirectInfo.redirectTarget.id=s}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(s){this.redirectInfo.redirectTarget.symbol=s}}}),o.redirectInfo=n,o}function of(n){let o=Vc(n.redirectInfo);return o.flags|=n.flags&-17,o.fileName=n.fileName,o.path=n.path,o.resolvedPath=n.resolvedPath,o.originalFileName=n.originalFileName,o.packageJsonLocations=n.packageJsonLocations,o.packageJsonScope=n.packageJsonScope,o.emitNode=void 0,o}function Xn(n){let o=t.createBaseSourceFileNode(312);o.flags|=n.flags&-17;for(let s in n)if(!(Qr(o,s)||!Qr(n,s))){if(s==="emitNode"){o.emitNode=void 0;continue}o[s]=n[s]}return o}function Hc(n){let o=n.redirectInfo?of(n):Xn(n);return Xr(o,n),o}function gh(n,o,s,u,g,I,W){let de=Hc(n);return de.statements=Y(o),de.isDeclarationFile=s,de.referencedFiles=u,de.typeReferenceDirectives=g,de.hasNoDefaultLib=I,de.libReferenceDirectives=W,de.transformFlags=De(de.statements)|V(de.endOfFileToken),de}function bh(n,o,s=n.isDeclarationFile,u=n.referencedFiles,g=n.typeReferenceDirectives,I=n.hasNoDefaultLib,W=n.libReferenceDirectives){return n.statements!==o||n.isDeclarationFile!==s||n.referencedFiles!==u||n.typeReferenceDirectives!==g||n.hasNoDefaultLib!==I||n.libReferenceDirectives!==W?r(gh(n,o,s,u,g,I,W),n):n}function sf(n,o=$e){let s=B(313);return s.prepends=o,s.sourceFiles=n,s.syntheticFileReferences=void 0,s.syntheticTypeReferences=void 0,s.syntheticLibReferences=void 0,s.hasNoDefaultLib=void 0,s}function _f(n,o,s=$e){return n.sourceFiles!==o||n.prepends!==s?r(sf(o,s),n):n}function Gc(n,o,s){let u=B(314);return u.prologues=n,u.syntheticReferences=o,u.texts=s,u.fileName="",u.text="",u.referencedFiles=$e,u.libReferenceDirectives=$e,u.getLineAndCharacterOfPosition=g=>to(u,g),u}function Xc(n,o){let s=B(n);return s.data=o,s}function vh(n){return Xc(307,n)}function cf(n,o){let s=Xc(308,n);return s.texts=o,s}function Th(n,o){return Xc(o?310:309,n)}function Sh(n){let o=B(311);return o.data=n.data,o.section=n,o}function qs(){let n=B(315);return n.javascriptText="",n.declarationText="",n}function lf(n,o=!1,s){let u=B(237);return u.type=n,u.isSpread=o,u.tupleNameSource=s,u}function xh(n){let o=B(358);return o._children=n,o}function wh(n){let o=B(359);return o.original=n,Ve(o,n),o}function uf(n,o){let s=B(360);return s.expression=n,s.original=o,s.transformFlags|=V(s.expression)|1,Ve(s,o),s}function pf(n,o){return n.expression!==o?r(uf(o,n.original),n):n}function Ch(n){if(Ta(n)&&!Tl(n)&&!n.original&&!n.emitNode&&!n.id){if(F_(n))return n.elements;if(Ct(n)&&Bx(n.operatorToken))return[n.left,n.right]}return n}function zs(n){let o=B(361);return o.elements=Y(Tv(n,Ch)),o.transformFlags|=De(o.elements),o}function ff(n,o){return n.elements!==o?r(zs(o),n):n}function $c(n,o){let s=B(362);return s.expression=n,s.thisArg=o,s.transformFlags|=V(s.expression)|V(s.thisArg),s}function Eh(n,o,s){return n.expression!==o||n.thisArg!==s?r($c(o,s),n):n}function Ah(n){let o=or(n.escapedText);return o.flags|=n.flags&-17,o.transformFlags=n.transformFlags,Xr(o,n),setIdentifierAutoGenerate(o,{...n.emitNode.autoGenerate}),o}function df(n){let o=or(n.escapedText);o.flags|=n.flags&-17,o.jsDoc=n.jsDoc,o.flowNode=n.flowNode,o.symbol=n.symbol,o.transformFlags=n.transformFlags,Xr(o,n);let s=getIdentifierTypeArguments(n);return s&&setIdentifierTypeArguments(o,s),o}function mf(n){let o=Sn(n.escapedText);return o.flags|=n.flags&-17,o.transformFlags=n.transformFlags,Xr(o,n),setIdentifierAutoGenerate(o,{...n.emitNode.autoGenerate}),o}function kh(n){let o=Sn(n.escapedText);return o.flags|=n.flags&-17,o.transformFlags=n.transformFlags,Xr(o,n),o}function Qc(n){if(n===void 0)return n;if(ii(n))return Hc(n);if(wa(n))return Ah(n);if(Ee(n))return df(n);if(Mg(n))return mf(n);if(jr(n))return kh(n);let o=ql(n.kind)?t.createBaseNode(n.kind):t.createBaseTokenNode(n.kind);o.flags|=n.flags&-17,o.transformFlags=n.transformFlags,Xr(o,n);for(let s in n)Qr(o,s)||!Qr(n,s)||(o[s]=n[s]);return o}function Dh(n,o,s){return fo(Z_(void 0,void 0,void 0,void 0,o?[o]:[],void 0,ua(n,!0)),void 0,s?[s]:[])}function Ph(n,o,s){return fo(ec(void 0,void 0,o?[o]:[],void 0,void 0,ua(n,!0)),void 0,s?[s]:[])}function ma(){return rc(Ze("0"))}function Ih(n){return Ps(void 0,!1,n)}function Nh(n){return kc(void 0,!1,Ns([fa(!1,void 0,n)]))}function Oh(n,o){return o==="null"?ue.createStrictEquality(n,fr()):o==="undefined"?ue.createStrictEquality(n,ma()):ue.createStrictEquality(vs(n),it(o))}function Mh(n,o){return o==="null"?ue.createStrictInequality(n,fr()):o==="undefined"?ue.createStrictInequality(n,ma()):ue.createStrictInequality(vs(n),it(o))}function ha(n,o,s){return y0(n)?zr(hs(n,void 0,o),void 0,void 0,s):fo(Mi(n,o),void 0,s)}function Lh(n,o,s){return ha(n,"bind",[o,...s])}function Ws(n,o,s){return ha(n,"call",[o,...s])}function Jh(n,o,s){return ha(n,"apply",[o,s])}function Ha(n,o,s){return ha(Ge(n),o,s)}function Rh(n,o){return ha(n,"slice",o===void 0?[]:[Cr(o)])}function jh(n,o){return ha(n,"concat",o)}function hf(n,o,s){return Ha("Object","defineProperty",[n,Cr(o),s])}function Fh(n,o){return Ha("Object","getOwnPropertyDescriptor",[n,Cr(o)])}function Bh(n,o,s){return Ha("Reflect","get",s?[n,o,s]:[n,o])}function Uh(n,o,s,u){return Ha("Reflect","set",u?[n,o,s,u]:[n,o,s])}function ya(n,o,s){return s?(n.push(Us(o,s)),!0):!1}function yf(n,o){let s=[];ya(s,"enumerable",Cr(n.enumerable)),ya(s,"configurable",Cr(n.configurable));let u=ya(s,"writable",Cr(n.writable));u=ya(s,"value",n.value)||u;let g=ya(s,"get",n.get);return g=ya(s,"set",n.set)||g,N.assert(!(u&&g),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),ds(s,!o)}function gf(n,o){switch(n.kind){case 217:return Ou(n,o);case 216:return Nu(n,n.type,o);case 234:return Wu(n,o,n.type);case 238:return Dn(n,o,n.type);case 235:return Vu(n,o);case 360:return pf(n,o)}}function c(n){return is(n)&&Ta(n)&&Ta(getSourceMapRange(n))&&Ta(getCommentRange(n))&&!mt(getSyntheticLeadingComments(n))&&!mt(getSyntheticTrailingComments(n))}function m(n,o,s=15){return n&&jm(n,s)&&!c(n)?gf(n,m(n.expression,o)):o}function b(n,o,s){if(!o)return n;let u=_p(o,o.label,l8(o.statement)?b(n,o.statement):n);return s&&s(o),u}function w(n,o){let s=Gl(n);switch(s.kind){case 80:return o;case 110:case 9:case 10:case 11:return!1;case 209:return s.elements.length!==0;case 210:return s.properties.length>0;default:return!0}}function A(n,o,s,u=!1){let g=ls(n,15),I,W;return gd(g)?(I=Ut(),W=g):qf(g)?(I=Ut(),W=s!==void 0&&s<2?Ve(Ge("_super"),g):g):ti(g)&8192?(I=ma(),W=a().parenthesizeLeftSideOfAccess(g,!1)):Br(g)?w(g.expression,u)?(I=Gt(o),W=Mi(Ve(ue.createAssignment(I,g.expression),g.expression),g.name),Ve(W,g)):(I=g.expression,W=g):Ra(g)?w(g.expression,u)?(I=Gt(o),W=Y_(Ve(ue.createAssignment(I,g.expression),g.expression),g.argumentExpression),Ve(W,g)):(I=g.expression,W=g):(I=ma(),W=a().parenthesizeLeftSideOfAccess(n,!1)),{target:W,thisArg:I}}function R(n,o){return Mi(K_(ds([Cn(void 0,"value",[Bn(void 0,void 0,n,void 0,void 0,void 0)],ua([Es(o)]))])),"value")}function te(n){return n.length>10?zs(n):Rd(n,ue.createComma)}function le(n,o,s,u=0,g){let I=g?n&&Kd(n):Bl(n);if(I&&Ee(I)&&!wa(I)){let W=Xi(Ve(Qc(I),I),I.parent);return u|=ti(I),s||(u|=96),o||(u|=3072),u&&setEmitFlags(W,u),W}return Tn(n)}function ne(n,o,s){return le(n,o,s,98304)}function ie(n,o,s,u){return le(n,o,s,32768,u)}function ve(n,o,s){return le(n,o,s,16384)}function He(n,o,s){return le(n,o,s)}function Be(n,o,s,u){let g=Mi(n,Ta(o)?o:Qc(o));Ve(g,o);let I=0;return u||(I|=96),s||(I|=3072),I&&setEmitFlags(g,I),g}function Ue(n,o,s,u){return n&&gr(o,1)?Be(n,le(o),s,u):ve(o,s,u)}function Rt(n,o,s,u){let g=mi(n,o,0,s);return hi(n,o,g,u)}function Gr(n){return mn(n.expression)&&n.expression.text==="use strict"}function di(){return Fm(Es(it("use strict")))}function mi(n,o,s=0,u){N.assert(o.length===0,"Prologue directives should be at the first statement in the target statements array");let g=!1,I=n.length;for(;sde&&Er.splice(g,0,...o.slice(de,We)),de>W&&Er.splice(u,0,...o.slice(W,de)),W>I&&Er.splice(s,0,...o.slice(I,W)),I>0)if(s===0)Er.splice(0,0,...o.slice(0,I));else{let $n=new Map;for(let yi=0;yi=0;yi--){let Vs=o[yi];$n.has(Vs.expression.text)||Er.unshift(Vs)}}return va(n)?Ve(Y(Er,n.hasTrailingComma),n):n}function bf(n,o){let s;return typeof o=="number"?s=Or(o):s=o,No(n)?tn(n,s,n.name,n.constraint,n.default):Ma(n)?Un(n,s,n.dotDotDotToken,n.name,n.questionToken,n.type,n.initializer):u6(n)?he(n,s,n.typeParameters,n.parameters,n.type):Zl(n)?qn(n,s,n.name,n.questionToken,n.type):oo(n)?oe(n,s,n.name,n.questionToken??n.exclamationToken,n.type,n.initializer):Wx(n)?Se(n,s,n.name,n.questionToken,n.typeParameters,n.parameters,n.type):d_(n)?z(n,s,n.asteriskToken,n.name,n.questionToken,n.typeParameters,n.parameters,n.type,n.body):J_(n)?lt(n,s,n.parameters,n.body):m_(n)?qr(n,s,n.name,n.parameters,n.type,n.body):Qo(n)?zn(n,s,n.name,n.parameters,n.body):l6(n)?Vn(n,s,n.parameters,n.type):km(n)?Mu(n,s,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body):Dm(n)?tc(n,s,n.typeParameters,n.parameters,n.type,n.equalsGreaterThanToken,n.body):Il(n)?sc(n,s,n.name,n.typeParameters,n.heritageClauses,n.members):as(n)?pc(n,s,n.declarationList):os(n)?fp(n,s,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body):Yo(n)?Tc(n,s,n.name,n.typeParameters,n.heritageClauses,n.members):su(n)?gt(n,s,n.name,n.typeParameters,n.heritageClauses,n.members):T6(n)?Sc(n,s,n.name,n.typeParameters,n.type):S6(n)?mp(n,s,n.name,n.members):Yi(n)?ji(n,s,n.name,n.body):w6(n)?gp(n,s,n.isTypeOnly,n.name,n.moduleReference):C6(n)?vp(n,s,n.importClause,n.moduleSpecifier,n.assertClause):ss(n)?Fi(n,s,n.expression):B_(n)?Dc(n,s,n.isTypeOnly,n.exportClause,n.moduleSpecifier,n.assertClause):N.assertNever(n)}function zh(n,o){return Ma(n)?Un(n,o,n.dotDotDotToken,n.name,n.questionToken,n.type,n.initializer):oo(n)?oe(n,o,n.name,n.questionToken??n.exclamationToken,n.type,n.initializer):d_(n)?z(n,o,n.asteriskToken,n.name,n.questionToken,n.typeParameters,n.parameters,n.type,n.body):m_(n)?qr(n,o,n.name,n.parameters,n.type,n.body):Qo(n)?zn(n,o,n.name,n.parameters,n.body):Il(n)?sc(n,o,n.name,n.typeParameters,n.heritageClauses,n.members):Yo(n)?Tc(n,o,n.name,n.typeParameters,n.heritageClauses,n.members):N.assertNever(n)}function Oe(n){return n?Y(n):void 0}function Xe(n){return typeof n=="string"?Ge(n):n}function Cr(n){return typeof n=="string"?it(n):typeof n=="number"?Ze(n):typeof n=="boolean"?n?ht():wn():n}function To(n){return n&&a().parenthesizeExpressionForDisallowedComma(n)}function lr(n){return typeof n=="number"?vt(n):n}function on(n){return n&&A6(n)?Ve(Xr(fc(),n),n):n}function vf(n){return typeof n=="string"||n&&!ki(n)?As(n,void 0,void 0,void 0):n}}function AL(e,t){return e!==t&&Ve(e,t),e}function kL(e,t){return e!==t&&(Xr(e,t),Ve(e,t)),e}function kf(e){switch(e){case 351:return"type";case 349:return"returns";case 350:return"this";case 347:return"enum";case 337:return"author";case 339:return"class";case 340:return"public";case 341:return"private";case 342:return"protected";case 343:return"readonly";case 344:return"override";case 352:return"template";case 353:return"typedef";case 348:return"param";case 355:return"prop";case 345:return"callback";case 346:return"overload";case 335:return"augments";case 336:return"implements";default:return N.fail(`Unsupported kind: ${N.formatSyntaxKind(e)}`)}}function DL(e,t){switch(_n||(_n=ns(99,!1,0)),e){case 15:_n.setText("`"+t+"`");break;case 16:_n.setText("`"+t+"${");break;case 17:_n.setText("}"+t+"${");break;case 18:_n.setText("}"+t+"`");break}let r=_n.scan();if(r===20&&(r=_n.reScanTemplateToken(!1)),_n.isUnterminated())return _n.setText(void 0),$0;let a;switch(r){case 15:case 16:case 17:case 18:a=_n.getTokenValue();break}return a===void 0||_n.scan()!==1?(_n.setText(void 0),$0):(_n.setText(void 0),a)}function In(e){return e&&Ee(e)?e_(e):V(e)}function e_(e){return V(e)&-67108865}function PL(e,t){return t|e.transformFlags&134234112}function V(e){if(!e)return 0;let t=e.transformFlags&~Jx(e.kind);return Yd(e)&&zl(e.name)?PL(e.name,t):t}function De(e){return e?e.transformFlags:0}function Vb(e){let t=0;for(let r of e)t|=V(r);e.transformFlags=t}function Jx(e){if(e>=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:return-2147450880;case 267:return-1941676032;case 169:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112;case 206:case 207:return-2147450880;case 216:case 238:case 234:case 360:case 217:case 108:return-2147483648;case 211:case 212:return-2147483648;default:return-2147483648}}function Yc(e){return e.flags|=16,e}function IL(e,t,r){let a,_,p,d,h,l,v,y,C,S;b_(e)?(p="",d=e,h=e.length,l=t,v=r):(N.assert(t==="js"||t==="dts"),p=(t==="js"?e.javascriptPath:e.declarationPath)||"",l=t==="js"?e.javascriptMapPath:e.declarationMapPath,y=()=>t==="js"?e.javascriptText:e.declarationText,C=()=>t==="js"?e.javascriptMapText:e.declarationMapText,h=()=>y().length,e.buildInfo&&e.buildInfo.bundle&&(N.assert(r===void 0||typeof r=="boolean"),a=r,_=t==="js"?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,S=e.oldFileOfCurrentEmit));let k=S?OL(N.checkDefined(_)):NL(_,a,h);return k.fileName=p,k.sourceMapPath=l,k.oldFileOfCurrentEmit=S,y&&C?(Object.defineProperty(k,"text",{get:y}),Object.defineProperty(k,"sourceMapText",{get:C})):(N.assert(!S),k.text=d??"",k.sourceMapText=v),k}function NL(e,t,r){let a,_,p,d,h,l,v,y;for(let S of e?e.sections:$e)switch(S.kind){case"prologue":a=xt(a,Ve(Ln.createUnparsedPrologue(S.data),S));break;case"emitHelpers":_=xt(_,getAllUnscopedEmitHelpers().get(S.data));break;case"no-default-lib":y=!0;break;case"reference":p=xt(p,{pos:-1,end:-1,fileName:S.data});break;case"type":d=xt(d,{pos:-1,end:-1,fileName:S.data});break;case"type-import":d=xt(d,{pos:-1,end:-1,fileName:S.data,resolutionMode:99});break;case"type-require":d=xt(d,{pos:-1,end:-1,fileName:S.data,resolutionMode:1});break;case"lib":h=xt(h,{pos:-1,end:-1,fileName:S.data});break;case"prepend":let k;for(let L of S.texts)(!t||L.kind!=="internal")&&(k=xt(k,Ve(Ln.createUnparsedTextLike(L.data,L.kind==="internal"),L)));l=Rr(l,k),v=xt(v,Ln.createUnparsedPrepend(S.data,k??$e));break;case"internal":if(t){v||(v=[]);break}case"text":v=xt(v,Ve(Ln.createUnparsedTextLike(S.data,S.kind==="internal"),S));break;default:N.assertNever(S)}if(!v){let S=Ln.createUnparsedTextLike(void 0,!1);Ed(S,0,typeof r=="function"?r():r),v=[S]}let C=z_.createUnparsedSource(a??$e,void 0,v);return a_(a,C),a_(v,C),a_(l,C),C.hasNoDefaultLib=y,C.helpers=_,C.referencedFiles=p||$e,C.typeReferenceDirectives=d,C.libReferenceDirectives=h||$e,C}function OL(e){let t,r;for(let _ of e.sections)switch(_.kind){case"internal":case"text":t=xt(t,Ve(Ln.createUnparsedTextLike(_.data,_.kind==="internal"),_));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":r=xt(r,Ve(Ln.createUnparsedSyntheticReference(_),_));break;case"prologue":case"emitHelpers":case"prepend":break;default:N.assertNever(_)}let a=Ln.createUnparsedSource($e,r,t??$e);return a_(r,a),a_(t,a),a.helpers=Aa(e.sources&&e.sources.helpers,_=>getAllUnscopedEmitHelpers().get(_)),a}function ML(e,t,r,a,_,p){return b_(e)?jx(void 0,e,r,a,void 0,t,_,p):Rx(e,t,r,a,_,p)}function Rx(e,t,r,a,_,p,d,h){let l=z_.createInputFiles();l.javascriptPath=t,l.javascriptMapPath=r,l.declarationPath=a,l.declarationMapPath=_,l.buildInfoPath=p;let v=new Map,y=L=>{if(L===void 0)return;let G=v.get(L);return G===void 0&&(G=e(L),v.set(L,G!==void 0?G:!1)),G!==!1?G:void 0},C=L=>{let G=y(L);return G!==void 0?G:`/* Input file ${L} was missing */\r +`},S;return Object.defineProperties(l,{javascriptText:{get:()=>C(t)},javascriptMapText:{get:()=>y(r)},declarationText:{get:()=>C(N.checkDefined(a))},declarationMapText:{get:()=>y(_)},buildInfo:{get:()=>{if(S===void 0&&p)if(d!=null&&d.getBuildInfo)S=d.getBuildInfo(p,h.configFilePath)??!1;else{let L=y(p);S=L!==void 0?getBuildInfo(p,L)??!1:!1}return S||void 0}}}),l}function jx(e,t,r,a,_,p,d,h,l,v,y){let C=z_.createInputFiles();return C.javascriptPath=e,C.javascriptText=t,C.javascriptMapPath=r,C.javascriptMapText=a,C.declarationPath=_,C.declarationText=p,C.declarationMapPath=d,C.declarationMapText=h,C.buildInfoPath=l,C.buildInfo=v,C.oldFileOfCurrentEmit=y,C}function LL(e,t,r){return new(Gb||(Gb=wt.getSourceMapSourceConstructor()))(e,t,r)}function Xr(e,t){if(e.original!==t&&(e.original=t,t)){let r=t.emitNode;r&&(e.emitNode=JL(r,e.emitNode))}return e}function JL(e,t){let{flags:r,internalFlags:a,leadingComments:_,trailingComments:p,commentRange:d,sourceMapRange:h,tokenSourceMapRanges:l,constantValue:v,helpers:y,startsOnNewLine:C,snippetElement:S,classThis:k,assignedName:L}=e;if(t||(t={}),r&&(t.flags=r),a&&(t.internalFlags=a&-9),_&&(t.leadingComments=Rr(_.slice(),t.leadingComments)),p&&(t.trailingComments=Rr(p.slice(),t.trailingComments)),d&&(t.commentRange=d),h&&(t.sourceMapRange=h),l&&(t.tokenSourceMapRanges=RL(l,t.tokenSourceMapRanges)),v!==void 0&&(t.constantValue=v),y)for(let G of y)t.helpers=wv(t.helpers,G);return C!==void 0&&(t.startsOnNewLine=C),S!==void 0&&(t.snippetElement=S),k&&(t.classThis=k),L&&(t.assignedName=L),t}function RL(e,t){t||(t=[]);for(let r in e)t[r]=e[r];return t}var il,X0,a6,_n,$0,Xs,Hb,Ln,Gb,jL=Vt({"src/compiler/factory/nodeFactory.ts"(){"use strict";Dr(),il=0,X0=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))(X0||{}),a6=[],$0={},Xs=Mx(),Hb={createBaseSourceFileNode:e=>Yc(Xs.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>Yc(Xs.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>Yc(Xs.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>Yc(Xs.createBaseTokenNode(e)),createBaseNode:e=>Yc(Xs.createBaseNode(e))},Ln=kd(4,Hb)}}),FL=()=>{},BL=()=>{};function lo(e){return e.kind===9}function o6(e){return e.kind===10}function mn(e){return e.kind===11}function Dd(e){return e.kind===12}function UL(e){return e.kind===14}function Fx(e){return e.kind===15}function qL(e){return e.kind===16}function zL(e){return e.kind===17}function WL(e){return e.kind===18}function VL(e){return e.kind===26}function Bx(e){return e.kind===28}function s6(e){return e.kind===40}function _6(e){return e.kind===41}function HL(e){return e.kind===42}function Pd(e){return e.kind===54}function Pl(e){return e.kind===58}function GL(e){return e.kind===59}function XL(e){return e.kind===29}function $L(e){return e.kind===39}function Ee(e){return e.kind===80}function jr(e){return e.kind===81}function Ux(e){return e.kind===95}function QL(e){return e.kind===90}function al(e){return e.kind===134}function YL(e){return e.kind===131}function KL(e){return e.kind===135}function qx(e){return e.kind===148}function ZL(e){return e.kind===126}function eJ(e){return e.kind===128}function tJ(e){return e.kind===164}function rJ(e){return e.kind===129}function qf(e){return e.kind===108}function zx(e){return e.kind===102}function nJ(e){return e.kind===84}function M_(e){return e.kind===166}function ao(e){return e.kind===167}function No(e){return e.kind===168}function Ma(e){return e.kind===169}function L_(e){return e.kind===170}function Zl(e){return e.kind===171}function oo(e){return e.kind===172}function Wx(e){return e.kind===173}function d_(e){return e.kind===174}function eu(e){return e.kind===175}function J_(e){return e.kind===176}function m_(e){return e.kind===177}function Qo(e){return e.kind===178}function c6(e){return e.kind===179}function Vx(e){return e.kind===180}function l6(e){return e.kind===181}function Hx(e){return e.kind===182}function R_(e){return e.kind===183}function tu(e){return e.kind===184}function u6(e){return e.kind===185}function Gx(e){return e.kind===186}function Am(e){return e.kind===187}function Xx(e){return e.kind===188}function $x(e){return e.kind===189}function p6(e){return e.kind===202}function Qx(e){return e.kind===190}function Yx(e){return e.kind===191}function Kx(e){return e.kind===192}function Zx(e){return e.kind===193}function e8(e){return e.kind===194}function t8(e){return e.kind===195}function f6(e){return e.kind===196}function d6(e){return e.kind===197}function r8(e){return e.kind===198}function n8(e){return e.kind===199}function i8(e){return e.kind===200}function m6(e){return e.kind===201}function ru(e){return e.kind===205}function iJ(e){return e.kind===204}function aJ(e){return e.kind===203}function oJ(e){return e.kind===206}function sJ(e){return e.kind===207}function nu(e){return e.kind===208}function iu(e){return e.kind===209}function uo(e){return e.kind===210}function Br(e){return e.kind===211}function Ra(e){return e.kind===212}function j_(e){return e.kind===213}function a8(e){return e.kind===214}function o8(e){return e.kind===215}function _J(e){return e.kind===216}function is(e){return e.kind===217}function km(e){return e.kind===218}function Dm(e){return e.kind===219}function cJ(e){return e.kind===220}function lJ(e){return e.kind===221}function h6(e){return e.kind===222}function uJ(e){return e.kind===223}function Pm(e){return e.kind===224}function s8(e){return e.kind===225}function Ct(e){return e.kind===226}function pJ(e){return e.kind===227}function fJ(e){return e.kind===228}function dJ(e){return e.kind===229}function y6(e){return e.kind===230}function Il(e){return e.kind===231}function Im(e){return e.kind===232}function g6(e){return e.kind===233}function mJ(e){return e.kind===234}function hJ(e){return e.kind===238}function jo(e){return e.kind===235}function b6(e){return e.kind===236}function yJ(e){return e.kind===237}function _8(e){return e.kind===360}function F_(e){return e.kind===361}function gJ(e){return e.kind===239}function bJ(e){return e.kind===240}function au(e){return e.kind===241}function as(e){return e.kind===243}function vJ(e){return e.kind===242}function ou(e){return e.kind===244}function TJ(e){return e.kind===245}function SJ(e){return e.kind===246}function xJ(e){return e.kind===247}function c8(e){return e.kind===248}function wJ(e){return e.kind===249}function CJ(e){return e.kind===250}function EJ(e){return e.kind===251}function AJ(e){return e.kind===252}function kJ(e){return e.kind===253}function DJ(e){return e.kind===254}function PJ(e){return e.kind===255}function l8(e){return e.kind===256}function IJ(e){return e.kind===257}function NJ(e){return e.kind===258}function OJ(e){return e.kind===259}function ki(e){return e.kind===260}function v6(e){return e.kind===261}function os(e){return e.kind===262}function Yo(e){return e.kind===263}function su(e){return e.kind===264}function T6(e){return e.kind===265}function S6(e){return e.kind===266}function Yi(e){return e.kind===267}function u8(e){return e.kind===268}function MJ(e){return e.kind===269}function x6(e){return e.kind===270}function w6(e){return e.kind===271}function C6(e){return e.kind===272}function LJ(e){return e.kind===273}function JJ(e){return e.kind===302}function RJ(e){return e.kind===300}function jJ(e){return e.kind===301}function E6(e){return e.kind===274}function Nm(e){return e.kind===280}function FJ(e){return e.kind===275}function p8(e){return e.kind===276}function ss(e){return e.kind===277}function B_(e){return e.kind===278}function f8(e){return e.kind===279}function d8(e){return e.kind===281}function BJ(e){return e.kind===282}function A6(e){return e.kind===359}function UJ(e){return e.kind===362}function Om(e){return e.kind===283}function Q0(e){return e.kind===284}function qJ(e){return e.kind===285}function Oo(e){return e.kind===286}function zf(e){return e.kind===287}function dl(e){return e.kind===288}function k6(e){return e.kind===289}function zJ(e){return e.kind===290}function WJ(e){return e.kind===291}function D6(e){return e.kind===292}function VJ(e){return e.kind===293}function HJ(e){return e.kind===294}function U_(e){return e.kind===295}function GJ(e){return e.kind===296}function m8(e){return e.kind===297}function Nl(e){return e.kind===298}function XJ(e){return e.kind===299}function _s(e){return e.kind===303}function _u(e){return e.kind===304}function h8(e){return e.kind===305}function y8(e){return e.kind===306}function $J(e){return e.kind===308}function ii(e){return e.kind===312}function QJ(e){return e.kind===313}function YJ(e){return e.kind===314}function g8(e){return e.kind===316}function Wf(e){return e.kind===317}function r_(e){return e.kind===318}function KJ(e){return e.kind===331}function ZJ(e){return e.kind===332}function eR(e){return e.kind===333}function tR(e){return e.kind===319}function rR(e){return e.kind===320}function b8(e){return e.kind===321}function nR(e){return e.kind===322}function iR(e){return e.kind===323}function Mm(e){return e.kind===324}function aR(e){return e.kind===325}function oR(e){return e.kind===326}function cs(e){return e.kind===327}function P6(e){return e.kind===329}function cu(e){return e.kind===330}function Lm(e){return e.kind===335}function sR(e){return e.kind===337}function v8(e){return e.kind===339}function _R(e){return e.kind===345}function I6(e){return e.kind===340}function N6(e){return e.kind===341}function O6(e){return e.kind===342}function M6(e){return e.kind===343}function T8(e){return e.kind===344}function L6(e){return e.kind===346}function J6(e){return e.kind===338}function cR(e){return e.kind===354}function S8(e){return e.kind===347}function h_(e){return e.kind===348}function R6(e){return e.kind===349}function x8(e){return e.kind===350}function lu(e){return e.kind===351}function Ko(e){return e.kind===352}function lR(e){return e.kind===353}function uR(e){return e.kind===334}function pR(e){return e.kind===355}function w8(e){return e.kind===336}function j6(e){return e.kind===357}function fR(e){return e.kind===356}function dR(e){return e.kind===358}var mR=Vt({"src/compiler/factory/nodeTests.ts"(){"use strict";Dr()}});function hR(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function Jm(e,t,r,a){if(ao(r))return Ve(e.createElementAccessExpression(t,r.expression),a);{let _=Ve(ro(r)?e.createPropertyAccessExpression(t,r):e.createElementAccessExpression(t,r),r);return addEmitFlags(_,128),_}}function F6(e,t){let r=z_.createIdentifier(e||"React");return Xi(r,Fl(t)),r}function B6(e,t,r){if(M_(t)){let a=B6(e,t.left,r),_=e.createIdentifier(Ot(t.right));return _.escapedText=t.right.escapedText,e.createPropertyAccessExpression(a,_)}else return F6(Ot(t),r)}function C8(e,t,r,a){return t?B6(e,t,a):e.createPropertyAccessExpression(F6(r,a),"createElement")}function yR(e,t,r,a){return t?B6(e,t,a):e.createPropertyAccessExpression(F6(r,a),"Fragment")}function gR(e,t,r,a,_,p){let d=[r];if(a&&d.push(a),_&&_.length>0)if(a||d.push(e.createNull()),_.length>1)for(let h of _)Fm(h),d.push(h);else d.push(_[0]);return Ve(e.createCallExpression(t,void 0,d),p)}function bR(e,t,r,a,_,p,d){let l=[yR(e,r,a,p),e.createNull()];if(_&&_.length>0)if(_.length>1)for(let v of _)Fm(v),l.push(v);else l.push(_[0]);return Ve(e.createCallExpression(C8(e,t,a,p),void 0,l),d)}function vR(e,t,r){if(v6(t)){let a=og(t.declarations),_=e.updateVariableDeclaration(a,a.name,void 0,void 0,r);return Ve(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[_])),t)}else{let a=Ve(e.createAssignment(t,r),t);return Ve(e.createExpressionStatement(a),t)}}function TR(e,t,r){return au(t)?e.updateBlock(t,Ve(e.createNodeArray([r,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)}function E8(e,t){if(M_(t)){let r=E8(e,t.left),a=Xi(Ve(e.cloneNode(t.right),t.right),t.right.parent);return Ve(e.createPropertyAccessExpression(r,a),t)}else return Xi(Ve(e.cloneNode(t),t),t.parent)}function A8(e,t){return Ee(t)?e.createStringLiteralFromNode(t):ao(t)?Xi(Ve(e.cloneNode(t.expression),t.expression),t.expression.parent):Xi(Ve(e.cloneNode(t),t),t.parent)}function SR(e,t,r,a,_){let{firstAccessor:p,getAccessor:d,setAccessor:h}=P2(t,r);if(r===p)return Ve(e.createObjectDefinePropertyCall(a,A8(e,r.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:d&&Ve(Xr(e.createFunctionExpression(yd(d),void 0,void 0,void 0,d.parameters,void 0,d.body),d),d),set:h&&Ve(Xr(e.createFunctionExpression(yd(h),void 0,void 0,void 0,h.parameters,void 0,h.body),h),h)},!_)),p)}function xR(e,t,r){return Xr(Ve(e.createAssignment(Jm(e,r,t.name,t.name),t.initializer),t),t)}function wR(e,t,r){return Xr(Ve(e.createAssignment(Jm(e,r,t.name,t.name),e.cloneNode(t.name)),t),t)}function CR(e,t,r){return Xr(Ve(e.createAssignment(Jm(e,r,t.name,t.name),Xr(Ve(e.createFunctionExpression(yd(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function ER(e,t,r,a){switch(r.name&&jr(r.name)&&N.failBadSyntaxKind(r.name,"Private identifiers are not allowed in object literals."),r.kind){case 177:case 178:return SR(e,t.properties,r,a,!!t.multiLine);case 303:return xR(e,r,a);case 304:return wR(e,r,a);case 174:return CR(e,r,a)}}function AR(e,t,r,a,_){let p=t.operator;N.assert(p===46||p===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");let d=e.createTempVariable(a);r=e.createAssignment(d,r),Ve(r,t.operand);let h=Pm(t)?e.createPrefixUnaryExpression(p,d):e.createPostfixUnaryExpression(d,p);return Ve(h,t),_&&(h=e.createAssignment(_,h),Ve(h,t)),r=e.createComma(r,h),Ve(r,t),s8(t)&&(r=e.createComma(r,d),Ve(r,t)),r}function kR(e){return(ti(e)&65536)!==0}function Y0(e){return(ti(e)&32768)!==0}function DR(e){return(ti(e)&16384)!==0}function k8(e){return mn(e.expression)&&e.expression.text==="use strict"}function D8(e){for(let t of e)if(Ea(t)){if(k8(t))return t}else break}function P8(e){let t=g_(e);return t!==void 0&&Ea(t)&&k8(t)}function Rm(e){return e.kind===226&&e.operatorToken.kind===28}function PR(e){return Rm(e)||F_(e)}function I8(e){return is(e)&&Wt(e)&&!!em(e)}function IR(e){let t=tm(e);return N.assertIsDefined(t),t}function jm(e,t=15){switch(e.kind){case 217:return t&16&&I8(e)?!1:(t&1)!==0;case 216:case 234:case 233:case 238:return(t&2)!==0;case 235:return(t&4)!==0;case 360:return(t&8)!==0}return!1}function ls(e,t=15){for(;jm(e,t);)e=e.expression;return e}function NR(e,t=15){let r=e.parent;for(;jm(r,t);)r=r.parent,N.assert(r);return r}function OR(e){return ls(e,6)}function Fm(e){return setStartsOnNewLine(e,!0)}function N8(e){let t=jl(e,ii),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function MR(e){let t=jl(e,ii),r=t&&t.emitNode;return!!r&&(!!r.externalHelpersModuleName||!!r.externalHelpers)}function LR(e,t,r,a,_,p,d){if(a.importHelpers&&Xg(r,a)){let h,l=ni(a);if(l>=5&&l<=99||r.impliedNodeFormat===99){let v=getEmitHelpers(r);if(v){let y=[];for(let C of v)if(!C.scoped){let S=C.importName;S&&Ol(y,S)}if(mt(y)){y.sort(Ci),h=e.createNamedImports(Aa(y,k=>P3(r,k)?e.createImportSpecifier(!1,void 0,e.createIdentifier(k)):e.createImportSpecifier(!1,e.createIdentifier(k),t.getUnscopedHelperName(k))));let C=jl(r,ii),S=getOrCreateEmitNode(C);S.externalHelpers=!0}}}else{let v=O8(e,r,a,_,p||d);v&&(h=e.createNamespaceImport(v))}if(h){let v=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,h),e.createStringLiteral(wm),void 0);return addInternalEmitFlags(v,2),v}}}function O8(e,t,r,a,_){if(r.importHelpers&&Xg(t,r)){let p=N8(t);if(p)return p;let d=ni(r),h=(a||U2(r)&&_)&&d!==4&&(d<5||t.impliedNodeFormat===1);if(!h){let l=getEmitHelpers(t);if(l){for(let v of l)if(!v.scoped){h=!0;break}}}if(h){let l=jl(t,ii),v=getOrCreateEmitNode(l);return v.externalHelpersModuleName||(v.externalHelpersModuleName=e.createUniqueName(wm))}}}function JR(e,t,r){let a=fT(t);if(a&&!dT(t)&&!L3(t)){let _=a.name;return wa(_)?_:e.createIdentifier(Xo(r,_)||Ot(_))}if(t.kind===272&&t.importClause||t.kind===278&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function RR(e,t,r,a,_,p){let d=d2(t);if(d&&mn(d))return FR(t,a,e,_,p)||jR(e,d,r)||e.cloneNode(d)}function jR(e,t,r){let a=r.renamedDependencies&&r.renamedDependencies.get(t.text);return a?e.createStringLiteral(a):void 0}function M8(e,t,r,a){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&A2(a))return e.createStringLiteral(E2(r,t.fileName))}}function FR(e,t,r,a,_){return M8(r,a.getExternalModuleFileFromDeclaration(e),t,_)}function L8(e){if(Bg(e))return e.initializer;if(_s(e)){let t=e.initializer;return Na(t,!0)?t.right:void 0}if(_u(e))return e.objectAssignmentInitializer;if(Na(e,!0))return e.right;if(y6(e))return L8(e.expression)}function Mo(e){if(Bg(e))return e.name;if(Fg(e)){switch(e.kind){case 303:return Mo(e.initializer);case 304:return e.name;case 305:return Mo(e.expression)}return}return Na(e,!0)?Mo(e.left):y6(e)?Mo(e.expression):e}function BR(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function UR(e){let t=J8(e);return N.assert(!!t||h8(e),"Invalid property name for binding element."),t}function J8(e){switch(e.kind){case 208:if(e.propertyName){let r=e.propertyName;return jr(r)?N.failBadSyntaxKind(r):ao(r)&&Xb(r.expression)?r.expression:r}break;case 303:if(e.name){let r=e.name;return jr(r)?N.failBadSyntaxKind(r):ao(r)&&Xb(r.expression)?r.expression:r}break;case 305:return e.name&&jr(e.name)?N.failBadSyntaxKind(e.name):e.name}let t=Mo(e);if(t&&zl(t))return t}function Xb(e){let t=e.kind;return t===11||t===9}function R8(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function K0(e){if(e){let t=e;for(;;){if(Ee(t)||!t.body)return Ee(t)?t:t.name;t=t.body}}}function qR(e){let t=e.kind;return t===176||t===178}function j8(e){let t=e.kind;return t===176||t===177||t===178}function zR(e){let t=e.kind;return t===303||t===304||t===262||t===176||t===181||t===175||t===282||t===243||t===264||t===265||t===266||t===267||t===271||t===272||t===270||t===278||t===277}function WR(e){let t=e.kind;return t===175||t===303||t===304||t===282||t===270}function VR(e){return Pl(e)||Pd(e)}function HR(e){return Ee(e)||d6(e)}function GR(e){return qx(e)||s6(e)||_6(e)}function XR(e){return Pl(e)||s6(e)||_6(e)}function $R(e){return Ee(e)||mn(e)}function QR(e){let t=e.kind;return t===106||t===112||t===97||Og(e)||Pm(e)}function YR(e){return e===43}function KR(e){return e===42||e===44||e===45}function ZR(e){return YR(e)||KR(e)}function ej(e){return e===40||e===41}function tj(e){return ej(e)||ZR(e)}function rj(e){return e===48||e===49||e===50}function nj(e){return rj(e)||tj(e)}function ij(e){return e===30||e===33||e===32||e===34||e===104||e===103}function aj(e){return ij(e)||nj(e)}function oj(e){return e===35||e===37||e===36||e===38}function sj(e){return oj(e)||aj(e)}function _j(e){return e===51||e===52||e===53}function cj(e){return _j(e)||sj(e)}function lj(e){return e===56||e===57}function uj(e){return lj(e)||cj(e)}function pj(e){return e===61||uj(e)||D_(e)}function fj(e){return pj(e)||e===28}function dj(e){return fj(e.kind)}function mj(e,t,r,a,_,p){let d=new B8(e,t,r,a,_,p);return h;function h(l,v){let y={value:void 0},C=[Nd.enter],S=[l],k=[void 0],L=0;for(;C[L]!==Nd.done;)L=C[L](d,L,C,S,k,y,v);return N.assertEqual(L,0),y.value}}function F8(e){return e===95||e===90}function hj(e){let t=e.kind;return F8(t)}function yj(e){let t=e.kind;return bi(t)&&!F8(t)}function gj(e,t){if(t!==void 0)return t.length===0?t:Ve(e.createNodeArray([],t.hasTrailingComma),t)}function bj(e){var t;let r=e.emitNode.autoGenerate;if(r.flags&4){let a=r.id,_=e,p=_.original;for(;p;){_=p;let d=(t=_.emitNode)==null?void 0:t.autoGenerate;if(ro(_)&&(d===void 0||d.flags&4&&d.id!==a))break;p=_.original}return _}return e}function Z0(e,t){return typeof e=="object"?Id(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function vj(e,t){return typeof e=="string"?e:Tj(e,N.checkDefined(t))}function Tj(e,t){return Mg(e)?t(e).slice(1):wa(e)?t(e):jr(e)?e.escapedText.slice(1):Ot(e)}function Id(e,t,r,a,_){return t=Z0(t,_),a=Z0(a,_),r=vj(r,_),`${e?"#":""}${t}${r}${a}`}function Sj(e,t,r,a){return e.updatePropertyDeclaration(t,r,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,a)}function xj(e,t,r,a,_=e.createThis()){return e.createGetAccessorDeclaration(r,a,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(_,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function wj(e,t,r,a,_=e.createThis()){return e.createSetAccessorDeclaration(r,a,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(_,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function Cj(e){let t=e.expression;for(;;){if(t=ls(t),F_(t)){t=ka(t.elements);continue}if(Rm(t)){t=t.right;continue}if(Na(t,!0)&&wa(t.left))return t;break}}function Ej(e){return is(e)&&Ta(e)&&!e.emitNode}function ol(e,t){if(Ej(e))ol(e.expression,t);else if(Rm(e))ol(e.left,t),ol(e.right,t);else if(F_(e))for(let r of e.elements)ol(r,t);else t.push(e)}function Aj(e){let t=[];return ol(e,t),t}function U6(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of R8(e)){let r=Mo(t);if(r&&l3(r)&&(r.transformFlags&65536||r.transformFlags&128&&U6(r)))return!0}return!1}var Nd,B8,kj=Vt({"src/compiler/factory/utilities.ts"(){"use strict";Dr(),(e=>{function t(y,C,S,k,L,G,K){let ue=C>0?L[C-1]:void 0;return N.assertEqual(S[C],t),L[C]=y.onEnter(k[C],ue,K),S[C]=h(y,t),C}e.enter=t;function r(y,C,S,k,L,G,K){N.assertEqual(S[C],r),N.assertIsDefined(y.onLeft),S[C]=h(y,r);let ue=y.onLeft(k[C].left,L[C],k[C]);return ue?(v(C,k,ue),l(C,S,k,L,ue)):C}e.left=r;function a(y,C,S,k,L,G,K){return N.assertEqual(S[C],a),N.assertIsDefined(y.onOperator),S[C]=h(y,a),y.onOperator(k[C].operatorToken,L[C],k[C]),C}e.operator=a;function _(y,C,S,k,L,G,K){N.assertEqual(S[C],_),N.assertIsDefined(y.onRight),S[C]=h(y,_);let ue=y.onRight(k[C].right,L[C],k[C]);return ue?(v(C,k,ue),l(C,S,k,L,ue)):C}e.right=_;function p(y,C,S,k,L,G,K){N.assertEqual(S[C],p),S[C]=h(y,p);let ue=y.onExit(k[C],L[C]);if(C>0){if(C--,y.foldState){let Y=S[C]===p?"right":"left";L[C]=y.foldState(L[C],ue,Y)}}else G.value=ue;return C}e.exit=p;function d(y,C,S,k,L,G,K){return N.assertEqual(S[C],d),C}e.done=d;function h(y,C){switch(C){case t:if(y.onLeft)return r;case r:if(y.onOperator)return a;case a:if(y.onRight)return _;case _:return p;case p:return d;case d:return d;default:N.fail("Invalid state")}}e.nextState=h;function l(y,C,S,k,L){return y++,C[y]=t,S[y]=L,k[y]=void 0,y}function v(y,C,S){if(N.shouldAssert(2))for(;y>=0;)N.assert(C[y]!==S,"Circular traversal detected."),y--}})(Nd||(Nd={})),B8=class{constructor(e,t,r,a,_,p){this.onEnter=e,this.onLeft=t,this.onOperator=r,this.onRight=a,this.onExit=_,this.foldState=p}}}});function Ve(e,t){return t?Ya(e,t.pos,t.end):e}function q_(e){let t=e.kind;return t===168||t===169||t===171||t===172||t===173||t===174||t===176||t===177||t===178||t===181||t===185||t===218||t===219||t===231||t===243||t===262||t===263||t===264||t===265||t===266||t===267||t===271||t===272||t===277||t===278}function U8(e){let t=e.kind;return t===169||t===172||t===174||t===177||t===178||t===231||t===263}var Dj=Vt({"src/compiler/factory/utilitiesPublic.ts"(){"use strict";Dr()}});function P(e,t){return t&&e(t)}function _e(e,t,r){if(r){if(t)return t(r);for(let a of r){let _=e(a);if(_)return _}}}function q8(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function ml(e){return yr(e.statements,Pj)||Ij(e)}function Pj(e){return q_(e)&&Nj(e,95)||w6(e)&&Om(e.moduleReference)||C6(e)||ss(e)||B_(e)?e:void 0}function Ij(e){return e.flags&8388608?z8(e):void 0}function z8(e){return Oj(e)?e:Bt(e,z8)}function Nj(e,t){return mt(e.modifiers,r=>r.kind===t)}function Oj(e){return b6(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function $b(e,t,r){return _e(t,r,e.typeParameters)||_e(t,r,e.parameters)||P(t,e.type)}function Qb(e,t,r){return _e(t,r,e.types)}function Yb(e,t,r){return P(t,e.type)}function Kb(e,t,r){return _e(t,r,e.elements)}function Zb(e,t,r){return P(t,e.expression)||P(t,e.questionDotToken)||_e(t,r,e.typeArguments)||_e(t,r,e.arguments)}function ev(e,t,r){return _e(t,r,e.statements)}function tv(e,t,r){return P(t,e.label)}function rv(e,t,r){return _e(t,r,e.modifiers)||P(t,e.name)||_e(t,r,e.typeParameters)||_e(t,r,e.heritageClauses)||_e(t,r,e.members)}function nv(e,t,r){return _e(t,r,e.elements)}function iv(e,t,r){return P(t,e.propertyName)||P(t,e.name)}function av(e,t,r){return P(t,e.tagName)||_e(t,r,e.typeArguments)||P(t,e.attributes)}function wo(e,t,r){return P(t,e.type)}function ov(e,t,r){return P(t,e.tagName)||(e.isNameFirst?P(t,e.name)||P(t,e.typeExpression):P(t,e.typeExpression)||P(t,e.name))||(typeof e.comment=="string"?void 0:_e(t,r,e.comment))}function Co(e,t,r){return P(t,e.tagName)||P(t,e.typeExpression)||(typeof e.comment=="string"?void 0:_e(t,r,e.comment))}function Kh(e,t,r){return P(t,e.name)}function Xa(e,t,r){return P(t,e.tagName)||(typeof e.comment=="string"?void 0:_e(t,r,e.comment))}function Mj(e,t,r){return P(t,e.expression)}function Bt(e,t,r){if(e===void 0||e.kind<=165)return;let a=$8[e.kind];return a===void 0?void 0:a(e,t,r)}function eg(e,t,r){let a=sv(e),_=[];for(;_.length=0;--h)a.push(p[h]),_.push(d)}else{let h=t(p,d);if(h){if(h==="skip")continue;return h}if(p.kind>=166)for(let l of sv(p))a.push(l),_.push(p)}}}function sv(e){let t=[];return Bt(e,r,r),t;function r(a){t.unshift(a)}}function W8(e){e.externalModuleIndicator=ml(e)}function V8(e,t,r,a=!1,_){var p,d,h,l;(p=xa)==null||p.push(xa.Phase.Parse,"createSourceFile",{path:e},!0),Mb("beforeParse");let v;(d=Kf)==null||d.logStartParseSourceFile(e);let{languageVersion:y,setExternalModuleIndicator:C,impliedNodeFormat:S}=typeof r=="object"?r:{languageVersion:r};if(y===100)v=Zn.parseSourceFile(e,t,y,void 0,a,6,Rn);else{let k=S===void 0?C:L=>(L.impliedNodeFormat=S,(C||W8)(L));v=Zn.parseSourceFile(e,t,y,void 0,a,_,k)}return(h=Kf)==null||h.logStopParseSourceFile(),Mb("afterParse"),yE("Parse","beforeParse","afterParse"),(l=xa)==null||l.pop(),v}function Lj(e,t){return Zn.parseIsolatedEntityName(e,t)}function Jj(e,t){return Zn.parseJsonText(e,t)}function Zo(e){return e.externalModuleIndicator!==void 0}function q6(e,t,r,a=!1){let _=Vf.updateSourceFile(e,t,r,a);return _.flags|=e.flags&12582912,_}function Rj(e,t,r){let a=Zn.JSDocParser.parseIsolatedJSDocComment(e,t,r);return a&&a.jsDoc&&Zn.fixupParentReferences(a.jsDoc),a}function jj(e,t,r){return Zn.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)}function H8(e){return ei(e,n6)||La(e,".ts")&&eo(T_(e),".d.")}function Fj(e,t,r,a){if(e){if(e==="import")return 99;if(e==="require")return 1;a(t,r-t,U.resolution_mode_should_be_either_require_or_import)}}function G8(e,t){let r=[];for(let a of Wo(t,0)||$e){let _=t.substring(a.pos,a.end);Uj(r,a,_)}e.pragmas=new Map;for(let a of r){if(e.pragmas.has(a.name)){let _=e.pragmas.get(a.name);_ instanceof Array?_.push(a.args):e.pragmas.set(a.name,[_,a.args]);continue}e.pragmas.set(a.name,a.args)}}function X8(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((r,a)=>{switch(a){case"reference":{let _=e.referencedFiles,p=e.typeReferenceDirectives,d=e.libReferenceDirectives;yr(If(r),h=>{let{types:l,lib:v,path:y,["resolution-mode"]:C}=h.arguments;if(h.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(l){let S=Fj(C,l.pos,l.end,t);p.push({pos:l.pos,end:l.end,fileName:l.value,...S?{resolutionMode:S}:{}})}else v?d.push({pos:v.pos,end:v.end,fileName:v.value}):y?_.push({pos:y.pos,end:y.end,fileName:y.value}):t(h.range.pos,h.range.end-h.range.pos,U.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=Aa(If(r),_=>({name:_.arguments.name,path:_.arguments.path}));break}case"amd-module":{if(r instanceof Array)for(let _ of r)e.moduleName&&t(_.range.pos,_.range.end-_.range.pos,U.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=_.arguments.name;else e.moduleName=r.arguments.name;break}case"ts-nocheck":case"ts-check":{yr(If(r),_=>{(!e.checkJsDirective||_.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:a==="ts-check",end:_.range.end,pos:_.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:N.fail("Unhandled pragma kind")}})}function Bj(e){if(Hf.has(e))return Hf.get(e);let t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return Hf.set(e,t),t}function Uj(e,t,r){let a=t.kind===2&&Q8.exec(r);if(a){let p=a[1].toLowerCase(),d=zd[p];if(!d||!(d.kind&1))return;if(d.args){let h={};for(let l of d.args){let y=Bj(l.name).exec(r);if(!y&&!l.optional)return;if(y){let C=y[2]||y[3];if(l.captureSpan){let S=t.pos+y.index+y[1].length+1;h[l.name]={value:C,pos:S,end:S+C.length}}else h[l.name]=C}}e.push({name:p,args:{arguments:h,range:t}})}else e.push({name:p,args:{arguments:{},range:t}});return}let _=t.kind===2&&Y8.exec(r);if(_)return _v(e,t,2,_);if(t.kind===3){let p=/@(\S+)(\s+.*)?$/gim,d;for(;d=p.exec(r);)_v(e,t,4,d)}}function _v(e,t,r,a){if(!a)return;let _=a[1].toLowerCase(),p=zd[_];if(!p||!(p.kind&r))return;let d=a[2],h=qj(p,d);h!=="fail"&&e.push({name:_,args:{arguments:h,range:t}})}function qj(e,t){if(!t)return{};if(!e.args)return{};let r=qd(t).split(/\s+/),a={};for(let _=0;_new(fv||(fv=wt.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(uv||(uv=wt.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(pv||(pv=wt.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(lv||(lv=wt.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(cv||(cv=wt.getNodeConstructor()))(e,-1,-1)},z_=kd(1,tg),$8={166:function(t,r,a){return P(r,t.left)||P(r,t.right)},168:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.name)||P(r,t.constraint)||P(r,t.default)||P(r,t.expression)},304:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.name)||P(r,t.questionToken)||P(r,t.exclamationToken)||P(r,t.equalsToken)||P(r,t.objectAssignmentInitializer)},305:function(t,r,a){return P(r,t.expression)},169:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.dotDotDotToken)||P(r,t.name)||P(r,t.questionToken)||P(r,t.type)||P(r,t.initializer)},172:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.name)||P(r,t.questionToken)||P(r,t.exclamationToken)||P(r,t.type)||P(r,t.initializer)},171:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.name)||P(r,t.questionToken)||P(r,t.type)||P(r,t.initializer)},303:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.name)||P(r,t.questionToken)||P(r,t.exclamationToken)||P(r,t.initializer)},260:function(t,r,a){return P(r,t.name)||P(r,t.exclamationToken)||P(r,t.type)||P(r,t.initializer)},208:function(t,r,a){return P(r,t.dotDotDotToken)||P(r,t.propertyName)||P(r,t.name)||P(r,t.initializer)},181:function(t,r,a){return _e(r,a,t.modifiers)||_e(r,a,t.typeParameters)||_e(r,a,t.parameters)||P(r,t.type)},185:function(t,r,a){return _e(r,a,t.modifiers)||_e(r,a,t.typeParameters)||_e(r,a,t.parameters)||P(r,t.type)},184:function(t,r,a){return _e(r,a,t.modifiers)||_e(r,a,t.typeParameters)||_e(r,a,t.parameters)||P(r,t.type)},179:$b,180:$b,174:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.asteriskToken)||P(r,t.name)||P(r,t.questionToken)||P(r,t.exclamationToken)||_e(r,a,t.typeParameters)||_e(r,a,t.parameters)||P(r,t.type)||P(r,t.body)},173:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.name)||P(r,t.questionToken)||_e(r,a,t.typeParameters)||_e(r,a,t.parameters)||P(r,t.type)},176:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.name)||_e(r,a,t.typeParameters)||_e(r,a,t.parameters)||P(r,t.type)||P(r,t.body)},177:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.name)||_e(r,a,t.typeParameters)||_e(r,a,t.parameters)||P(r,t.type)||P(r,t.body)},178:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.name)||_e(r,a,t.typeParameters)||_e(r,a,t.parameters)||P(r,t.type)||P(r,t.body)},262:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.asteriskToken)||P(r,t.name)||_e(r,a,t.typeParameters)||_e(r,a,t.parameters)||P(r,t.type)||P(r,t.body)},218:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.asteriskToken)||P(r,t.name)||_e(r,a,t.typeParameters)||_e(r,a,t.parameters)||P(r,t.type)||P(r,t.body)},219:function(t,r,a){return _e(r,a,t.modifiers)||_e(r,a,t.typeParameters)||_e(r,a,t.parameters)||P(r,t.type)||P(r,t.equalsGreaterThanToken)||P(r,t.body)},175:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.body)},183:function(t,r,a){return P(r,t.typeName)||_e(r,a,t.typeArguments)},182:function(t,r,a){return P(r,t.assertsModifier)||P(r,t.parameterName)||P(r,t.type)},186:function(t,r,a){return P(r,t.exprName)||_e(r,a,t.typeArguments)},187:function(t,r,a){return _e(r,a,t.members)},188:function(t,r,a){return P(r,t.elementType)},189:function(t,r,a){return _e(r,a,t.elements)},192:Qb,193:Qb,194:function(t,r,a){return P(r,t.checkType)||P(r,t.extendsType)||P(r,t.trueType)||P(r,t.falseType)},195:function(t,r,a){return P(r,t.typeParameter)},205:function(t,r,a){return P(r,t.argument)||P(r,t.assertions)||P(r,t.qualifier)||_e(r,a,t.typeArguments)},302:function(t,r,a){return P(r,t.assertClause)},196:Yb,198:Yb,199:function(t,r,a){return P(r,t.objectType)||P(r,t.indexType)},200:function(t,r,a){return P(r,t.readonlyToken)||P(r,t.typeParameter)||P(r,t.nameType)||P(r,t.questionToken)||P(r,t.type)||_e(r,a,t.members)},201:function(t,r,a){return P(r,t.literal)},202:function(t,r,a){return P(r,t.dotDotDotToken)||P(r,t.name)||P(r,t.questionToken)||P(r,t.type)},206:Kb,207:Kb,209:function(t,r,a){return _e(r,a,t.elements)},210:function(t,r,a){return _e(r,a,t.properties)},211:function(t,r,a){return P(r,t.expression)||P(r,t.questionDotToken)||P(r,t.name)},212:function(t,r,a){return P(r,t.expression)||P(r,t.questionDotToken)||P(r,t.argumentExpression)},213:Zb,214:Zb,215:function(t,r,a){return P(r,t.tag)||P(r,t.questionDotToken)||_e(r,a,t.typeArguments)||P(r,t.template)},216:function(t,r,a){return P(r,t.type)||P(r,t.expression)},217:function(t,r,a){return P(r,t.expression)},220:function(t,r,a){return P(r,t.expression)},221:function(t,r,a){return P(r,t.expression)},222:function(t,r,a){return P(r,t.expression)},224:function(t,r,a){return P(r,t.operand)},229:function(t,r,a){return P(r,t.asteriskToken)||P(r,t.expression)},223:function(t,r,a){return P(r,t.expression)},225:function(t,r,a){return P(r,t.operand)},226:function(t,r,a){return P(r,t.left)||P(r,t.operatorToken)||P(r,t.right)},234:function(t,r,a){return P(r,t.expression)||P(r,t.type)},235:function(t,r,a){return P(r,t.expression)},238:function(t,r,a){return P(r,t.expression)||P(r,t.type)},236:function(t,r,a){return P(r,t.name)},227:function(t,r,a){return P(r,t.condition)||P(r,t.questionToken)||P(r,t.whenTrue)||P(r,t.colonToken)||P(r,t.whenFalse)},230:function(t,r,a){return P(r,t.expression)},241:ev,268:ev,312:function(t,r,a){return _e(r,a,t.statements)||P(r,t.endOfFileToken)},243:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.declarationList)},261:function(t,r,a){return _e(r,a,t.declarations)},244:function(t,r,a){return P(r,t.expression)},245:function(t,r,a){return P(r,t.expression)||P(r,t.thenStatement)||P(r,t.elseStatement)},246:function(t,r,a){return P(r,t.statement)||P(r,t.expression)},247:function(t,r,a){return P(r,t.expression)||P(r,t.statement)},248:function(t,r,a){return P(r,t.initializer)||P(r,t.condition)||P(r,t.incrementor)||P(r,t.statement)},249:function(t,r,a){return P(r,t.initializer)||P(r,t.expression)||P(r,t.statement)},250:function(t,r,a){return P(r,t.awaitModifier)||P(r,t.initializer)||P(r,t.expression)||P(r,t.statement)},251:tv,252:tv,253:function(t,r,a){return P(r,t.expression)},254:function(t,r,a){return P(r,t.expression)||P(r,t.statement)},255:function(t,r,a){return P(r,t.expression)||P(r,t.caseBlock)},269:function(t,r,a){return _e(r,a,t.clauses)},296:function(t,r,a){return P(r,t.expression)||_e(r,a,t.statements)},297:function(t,r,a){return _e(r,a,t.statements)},256:function(t,r,a){return P(r,t.label)||P(r,t.statement)},257:function(t,r,a){return P(r,t.expression)},258:function(t,r,a){return P(r,t.tryBlock)||P(r,t.catchClause)||P(r,t.finallyBlock)},299:function(t,r,a){return P(r,t.variableDeclaration)||P(r,t.block)},170:function(t,r,a){return P(r,t.expression)},263:rv,231:rv,264:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.name)||_e(r,a,t.typeParameters)||_e(r,a,t.heritageClauses)||_e(r,a,t.members)},265:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.name)||_e(r,a,t.typeParameters)||P(r,t.type)},266:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.name)||_e(r,a,t.members)},306:function(t,r,a){return P(r,t.name)||P(r,t.initializer)},267:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.name)||P(r,t.body)},271:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.name)||P(r,t.moduleReference)},272:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.importClause)||P(r,t.moduleSpecifier)||P(r,t.assertClause)},273:function(t,r,a){return P(r,t.name)||P(r,t.namedBindings)},300:function(t,r,a){return _e(r,a,t.elements)},301:function(t,r,a){return P(r,t.name)||P(r,t.value)},270:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.name)},274:function(t,r,a){return P(r,t.name)},280:function(t,r,a){return P(r,t.name)},275:nv,279:nv,278:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.exportClause)||P(r,t.moduleSpecifier)||P(r,t.assertClause)},276:iv,281:iv,277:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.expression)},228:function(t,r,a){return P(r,t.head)||_e(r,a,t.templateSpans)},239:function(t,r,a){return P(r,t.expression)||P(r,t.literal)},203:function(t,r,a){return P(r,t.head)||_e(r,a,t.templateSpans)},204:function(t,r,a){return P(r,t.type)||P(r,t.literal)},167:function(t,r,a){return P(r,t.expression)},298:function(t,r,a){return _e(r,a,t.types)},233:function(t,r,a){return P(r,t.expression)||_e(r,a,t.typeArguments)},283:function(t,r,a){return P(r,t.expression)},282:function(t,r,a){return _e(r,a,t.modifiers)},361:function(t,r,a){return _e(r,a,t.elements)},284:function(t,r,a){return P(r,t.openingElement)||_e(r,a,t.children)||P(r,t.closingElement)},288:function(t,r,a){return P(r,t.openingFragment)||_e(r,a,t.children)||P(r,t.closingFragment)},285:av,286:av,292:function(t,r,a){return _e(r,a,t.properties)},291:function(t,r,a){return P(r,t.name)||P(r,t.initializer)},293:function(t,r,a){return P(r,t.expression)},294:function(t,r,a){return P(r,t.dotDotDotToken)||P(r,t.expression)},287:function(t,r,a){return P(r,t.tagName)},295:function(t,r,a){return P(r,t.namespace)||P(r,t.name)},190:wo,191:wo,316:wo,322:wo,321:wo,323:wo,325:wo,324:function(t,r,a){return _e(r,a,t.parameters)||P(r,t.type)},327:function(t,r,a){return(typeof t.comment=="string"?void 0:_e(r,a,t.comment))||_e(r,a,t.tags)},354:function(t,r,a){return P(r,t.tagName)||P(r,t.name)||(typeof t.comment=="string"?void 0:_e(r,a,t.comment))},317:function(t,r,a){return P(r,t.name)},318:function(t,r,a){return P(r,t.left)||P(r,t.right)},348:ov,355:ov,337:function(t,r,a){return P(r,t.tagName)||(typeof t.comment=="string"?void 0:_e(r,a,t.comment))},336:function(t,r,a){return P(r,t.tagName)||P(r,t.class)||(typeof t.comment=="string"?void 0:_e(r,a,t.comment))},335:function(t,r,a){return P(r,t.tagName)||P(r,t.class)||(typeof t.comment=="string"?void 0:_e(r,a,t.comment))},352:function(t,r,a){return P(r,t.tagName)||P(r,t.constraint)||_e(r,a,t.typeParameters)||(typeof t.comment=="string"?void 0:_e(r,a,t.comment))},353:function(t,r,a){return P(r,t.tagName)||(t.typeExpression&&t.typeExpression.kind===316?P(r,t.typeExpression)||P(r,t.fullName)||(typeof t.comment=="string"?void 0:_e(r,a,t.comment)):P(r,t.fullName)||P(r,t.typeExpression)||(typeof t.comment=="string"?void 0:_e(r,a,t.comment)))},345:function(t,r,a){return P(r,t.tagName)||P(r,t.fullName)||P(r,t.typeExpression)||(typeof t.comment=="string"?void 0:_e(r,a,t.comment))},349:Co,351:Co,350:Co,347:Co,357:Co,356:Co,346:Co,330:function(t,r,a){return yr(t.typeParameters,r)||yr(t.parameters,r)||P(r,t.type)},331:Kh,332:Kh,333:Kh,329:function(t,r,a){return yr(t.jsDocPropertyTags,r)},334:Xa,339:Xa,340:Xa,341:Xa,342:Xa,343:Xa,338:Xa,344:Xa,360:Mj},(e=>{var t=ns(99,!0),r=40960,a,_,p,d,h;function l(c){return wn++,c}var v={createBaseSourceFileNode:c=>l(new h(c,0,0)),createBaseIdentifierNode:c=>l(new p(c,0,0)),createBasePrivateIdentifierNode:c=>l(new d(c,0,0)),createBaseTokenNode:c=>l(new _(c,0,0)),createBaseNode:c=>l(new a(c,0,0))},y=kd(11,v),{createNodeArray:C,createNumericLiteral:S,createStringLiteral:k,createLiteralLikeNode:L,createIdentifier:G,createPrivateIdentifier:K,createToken:ue,createArrayLiteralExpression:Y,createObjectLiteralExpression:B,createPropertyAccessExpression:ae,createPropertyAccessChain:Ce,createElementAccessExpression:Ze,createElementAccessChain:qe,createCallExpression:rt,createCallChain:it,createNewExpression:Ir,createParenthesizedExpression:ar,createBlock:ci,createVariableStatement:or,createExpressionStatement:Nr,createIfStatement:Ge,createWhileStatement:Gt,createForStatement:Ur,createForOfStatement:Xt,createVariableDeclaration:Tn,createVariableDeclarationList:Sn}=y,sr,$t,St,xn,Tr,vt,ct,Ut,fr,ht,wn,Tt,Or,pt,Mr,at,er=!0,Qt=!1;function tn(c,m,b,w,A=!1,R,te){var le;if(R=zS(c,R),R===6){let ie=Un(c,m,b,w,A);return convertToJson(ie,(le=ie.statements[0])==null?void 0:le.expression,ie.parseDiagnostics,!1,void 0),ie.referencedFiles=$e,ie.typeReferenceDirectives=$e,ie.libReferenceDirectives=$e,ie.amdDependencies=$e,ie.hasNoDefaultLib=!1,ie.pragmas=pg,ie}rn(c,m,b,w,R);let ne=Di(b,A,R,te||W8);return nn(),ne}e.parseSourceFile=tn;function Bn(c,m){rn("",c,m,void 0,1),O();let b=la(!0),w=f()===1&&!ct.length;return nn(),w?b:void 0}e.parseIsolatedEntityName=Bn;function Un(c,m,b=2,w,A=!1){rn(c,m,b,w,6),$t=at,O();let R=T(),te,le;if(f()===1)te=Ft([],R,R),le=dr();else{let ve;for(;f()!==1;){let Ue;switch(f()){case 23:Ue=Jc();break;case 112:case 97:case 106:Ue=dr();break;case 41:Te(()=>O()===9&&O()!==59)?Ue=Ac():Ue=Ls();break;case 9:case 11:if(Te(()=>O()!==59)){Ue=fi();break}default:Ue=Ls();break}ve&&zt(ve)?ve.push(Ue):ve?ve=[ve,Ue]:(ve=Ue,f()!==1&&Je(U.Unexpected_token))}let He=zt(ve)?M(Y(ve),R):N.checkDefined(ve),Be=Nr(He);M(Be,R),te=Ft([Be],R),le=Hn(1,U.Unexpected_token)}let ne=ge(c,2,6,!1,te,le,$t,Rn);A&&oe(ne),ne.nodeCount=wn,ne.identifierCount=Or,ne.identifiers=Tt,ne.parseDiagnostics=$a(ct,ne),Ut&&(ne.jsDocDiagnostics=$a(Ut,ne));let ie=ne;return nn(),ie}e.parseJsonText=Un;function rn(c,m,b,w,A){switch(a=wt.getNodeConstructor(),_=wt.getTokenConstructor(),p=wt.getIdentifierConstructor(),d=wt.getPrivateIdentifierConstructor(),h=wt.getSourceFileConstructor(),sr=pn(c),St=m,xn=b,fr=w,Tr=A,vt=R0(A),ct=[],pt=0,Tt=new Map,Or=0,wn=0,$t=0,er=!0,Tr){case 1:case 2:at=524288;break;case 6:at=134742016;break;default:at=0;break}Qt=!1,t.setText(St),t.setOnError(j),t.setScriptTarget(xn),t.setLanguageVariant(vt)}function nn(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),St=void 0,xn=void 0,fr=void 0,Tr=void 0,vt=void 0,$t=0,ct=void 0,Ut=void 0,pt=0,Tt=void 0,Mr=void 0,er=!0}function Di(c,m,b,w){let A=H8(sr);A&&(at|=33554432),$t=at,O();let R=zr(0,wr);N.assert(f()===1);let te=x(),le=Ae(dr(),te),ne=ge(sr,c,b,A,R,le,$t,w);return G8(ne,St),X8(ne,ie),ne.commentDirectives=t.getCommentDirectives(),ne.nodeCount=wn,ne.identifierCount=Or,ne.identifiers=Tt,ne.parseDiagnostics=$a(ct,ne),Ut&&(ne.jsDocDiagnostics=$a(Ut,ne)),m&&oe(ne),ne;function ie(ve,He,Be){ct.push(Ao(sr,ve,He,Be))}}let qn=!1;function Ae(c,m){if(!m)return c;N.assert(!c.jsDoc);let b=Za(H3(c,St),w=>gf.parseJSDocComment(c,w.pos,w.end-w.pos));return b.length&&(c.jsDoc=b),qn&&(qn=!1,c.flags|=536870912),c}function q(c){let m=fr,b=Vf.createSyntaxCursor(c);fr={currentNode:ve};let w=[],A=ct;ct=[];let R=0,te=ne(c.statements,0);for(;te!==-1;){let He=c.statements[R],Be=c.statements[te];Rr(w,c.statements,R,te),R=ie(c.statements,te);let Ue=_l(A,Gr=>Gr.start>=He.pos),Rt=Ue>=0?_l(A,Gr=>Gr.start>=Be.pos,Ue):-1;Ue>=0&&Rr(ct,A,Ue,Rt>=0?Rt:void 0),_r(()=>{let Gr=at;for(at|=65536,t.resetTokenState(Be.pos),O();f()!==1;){let di=t.getTokenFullStart(),mi=gs(0,wr);if(w.push(mi),di===t.getTokenFullStart()&&O(),R>=0){let hi=c.statements[R];if(mi.end===hi.pos)break;mi.end>hi.pos&&(R=ie(c.statements,R+1))}}at=Gr},2),te=R>=0?ne(c.statements,R):-1}if(R>=0){let He=c.statements[R];Rr(w,c.statements,R);let Be=_l(A,Ue=>Ue.start>=He.pos);Be>=0&&Rr(ct,A,Be)}return fr=m,y.updateSourceFile(c,Ve(C(w),c.statements));function le(He){return!(He.flags&65536)&&!!(He.transformFlags&67108864)}function ne(He,Be){for(let Ue=Be;Ue118}function Et(){return f()===80?!0:f()===127&&En()||f()===135&&Sr()?!1:f()>118}function H(c,m,b=!0){return f()===c?(b&&O(),!0):(m?Je(m):Je(U._0_expected,nr(c)),!1)}let Fa=Object.keys(cl).filter(c=>c.length>2);function Ie(c){if(o8(c)){Mt(Nt(St,c.template.pos),c.template.end,U.Module_declaration_names_may_only_use_or_quoted_strings);return}let m=Ee(c)?Ot(c):void 0;if(!m||!Cg(m,xn)){Je(U._0_expected,nr(27));return}let b=Nt(St,c.pos);switch(m){case"const":case"let":case"var":Mt(b,c.end,U.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":ot(U.Interface_name_cannot_be_0,U.Interface_must_be_given_a_name,19);return;case"is":Mt(b,t.getTokenStart(),U.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":ot(U.Namespace_name_cannot_be_0,U.Namespace_must_be_given_a_name,19);return;case"type":ot(U.Type_alias_name_cannot_be_0,U.Type_alias_must_be_given_a_name,64);return}let w=Lv(m,Fa,A=>A)??cr(m);if(w){Mt(b,c.end,U.Unknown_keyword_or_identifier_Did_you_mean_0,w);return}f()!==0&&Mt(b,c.end,U.Unexpected_keyword_or_identifier)}function ot(c,m,b){f()===b?Je(m):Je(c,t.getTokenValue())}function cr(c){for(let m of Fa)if(c.length>m.length+2&&Fr(c,m))return`${m} ${c.slice(m.length)}`}function an(c,m,b){if(f()===60&&!t.hasPrecedingLineBreak()){Je(U.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(f()===21){Je(U.Cannot_start_a_function_call_in_a_type_annotation),O();return}if(m&&!ui()){b?Je(U._0_expected,nr(27)):Je(U.Expected_for_property_initializer);return}if(!fs()){if(b){Je(U._0_expected,nr(27));return}Ie(c)}}function Ba(c){return f()===c?(fe(),!0):(N.assert(Rf(c)),Je(U._0_expected,nr(c)),!1)}function kn(c,m,b,w){if(f()===m){O();return}let A=Je(U._0_expected,nr(m));b&&A&&nl(A,Ao(sr,w,1,U.The_parser_expected_to_find_a_1_to_match_the_0_token_here,nr(c),nr(m)))}function je(c){return f()===c?(O(),!0):!1}function dt(c){if(f()===c)return dr()}function li(c){if(f()===c)return r1()}function Hn(c,m,b){return dt(c)||Jr(c,!1,m||U._0_expected,b||nr(c))}function t1(c){let m=li(c);return m||(N.assert(Rf(c)),Jr(c,!1,U._0_expected,nr(c)))}function dr(){let c=T(),m=f();return O(),M(ue(m),c)}function r1(){let c=T(),m=f();return fe(),M(ue(m),c)}function ui(){return f()===27?!0:f()===20||f()===1||t.hasPrecedingLineBreak()}function fs(){return ui()?(f()===27&&O(),!0):!1}function xr(){return fs()||H(27)}function Ft(c,m,b,w){let A=C(c,w);return Ya(A,m,b??t.getTokenFullStart()),A}function M(c,m,b){return Ya(c,m,b??t.getTokenFullStart()),at&&(c.flags|=at),Qt&&(Qt=!1,c.flags|=262144),c}function Jr(c,m,b,...w){m?oa(t.getTokenFullStart(),0,b,...w):b&&Je(b,...w);let A=T(),R=c===80?G("",void 0):Sl(c)?y.createTemplateLiteralLikeNode(c,"","",void 0):c===9?S("",void 0):c===11?k("",void 0):c===282?y.createMissingDeclaration():ue(c);return M(R,A)}function sa(c){let m=Tt.get(c);return m===void 0&&Tt.set(c,m=c),m}function Ni(c,m,b){if(c){Or++;let le=T(),ne=f(),ie=sa(t.getTokenValue()),ve=t.hasExtendedUnicodeEscape();return $(),M(G(ie,ne,ve),le)}if(f()===81)return Je(b||U.Private_identifiers_are_not_allowed_outside_class_bodies),Ni(!0);if(f()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return Ni(!0);Or++;let w=f()===1,A=t.isReservedWord(),R=t.getTokenText(),te=A?U.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:U.Identifier_expected;return Jr(80,w,m||te,R)}function G_(c){return Ni(An(),void 0,c)}function Lt(c,m){return Ni(Et(),c,m)}function Yt(c){return Ni(kt(f()),c)}function Oi(){return kt(f())||f()===11||f()===9}function n1(){return kt(f())||f()===11}function Tu(c){if(f()===11||f()===9){let m=fi();return m.text=sa(m.text),m}return c&&f()===23?Su():f()===81?X_():Yt()}function Ua(){return Tu(!0)}function Su(){let c=T();H(23);let m=Le(Jt);return H(24),M(y.createComputedPropertyName(m),c)}function X_(){let c=T(),m=K(sa(t.getTokenValue()));return O(),M(m,c)}function _a(c){return f()===c&&ft($_)}function xu(){return O(),t.hasPrecedingLineBreak()?!1:ms()}function $_(){switch(f()){case 87:return O()===94;case 95:return O(),f()===90?Te(Mi):f()===156?Te(ds):wu();case 90:return Mi();case 126:case 139:case 153:return O(),ms();default:return xu()}}function wu(){return f()===60||f()!==42&&f()!==130&&f()!==19&&ms()}function ds(){return O(),wu()}function i1(){return bi(f())&&ft($_)}function ms(){return f()===23||f()===19||f()===42||f()===26||Oi()}function Mi(){return O(),f()===86||f()===100||f()===120||f()===60||f()===128&&Te(oh)||f()===134&&Te(Fc)}function Q_(c,m){if(bs(c))return!0;switch(c){case 0:case 1:case 3:return!(f()===27&&m)&&Bc();case 2:return f()===84||f()===90;case 4:return Te(Xu);case 5:return Te(mh)||f()===27&&!m;case 6:return f()===23||Oi();case 12:switch(f()){case 23:case 42:case 26:case 25:return!0;default:return Oi()}case 18:return Oi();case 9:return f()===23||f()===26||Oi();case 24:return n1();case 7:return f()===19?Te(hs):m?Et()&&!Eu():Sc()&&!Eu();case 8:return zc();case 10:return f()===28||f()===26||zc();case 19:return f()===103||f()===87||Et();case 15:switch(f()){case 28:case 25:return!0}case 11:return f()===26||Ri();case 16:return _c(!1);case 17:return _c(!0);case 20:case 21:return f()===28||pa();case 22:return lf();case 23:return f()===161&&Te(Yp)?!1:kt(f());case 13:return kt(f())||f()===19;case 14:return!0;case 25:return!0;case 26:return N.fail("ParsingContext.Count used as a context");default:N.assertNever(c,"Non-exhaustive case in 'isListElement'.")}}function hs(){if(N.assert(f()===19),O()===20){let c=O();return c===28||c===19||c===96||c===119}return!0}function ys(){return O(),Et()}function Cu(){return O(),kt(f())}function Y_(){return O(),r4(f())}function Eu(){return f()===119||f()===96?Te(Au):!1}function Au(){return O(),Ri()}function ku(){return O(),pa()}function po(c){if(f()===1)return!0;switch(c){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return f()===20;case 3:return f()===20||f()===84||f()===90;case 7:return f()===19||f()===96||f()===119;case 8:return fo();case 19:return f()===32||f()===21||f()===19||f()===96||f()===119;case 11:return f()===22||f()===27;case 15:case 21:case 10:return f()===24;case 17:case 16:case 18:return f()===22||f()===24;case 20:return f()!==28;case 22:return f()===19||f()===20;case 13:return f()===32||f()===44;case 14:return f()===30&&Te(kh);default:return!1}}function fo(){return!!(ui()||Cc(f())||f()===39)}function a1(){N.assert(pt,"Missing parsing context");for(let c=0;c<26;c++)if(pt&1<=0)}function vs(c){return c===6?U.An_enum_member_name_must_be_followed_by_a_or:void 0}function pi(){let c=Ft([],T());return c.isMissingList=!0,c}function rc(c){return!!c.isMissingList}function ca(c,m,b,w){if(H(b)){let A=Wr(c,m);return H(w),A}return pi()}function la(c,m){let b=T(),w=c?Yt(m):Lt(m);for(;je(25)&&f()!==30;)w=M(y.createQualifiedName(w,qa(c,!1)),b);return w}function s1(c,m){return M(y.createQualifiedName(c,m),c.pos)}function qa(c,m){if(t.hasPrecedingLineBreak()&&kt(f())&&Te(Js))return Jr(80,!0,U.Identifier_expected);if(f()===81){let b=X_();return m?b:Jr(80,!0,U.Identifier_expected)}return c?Yt():Lt()}function _1(c){let m=T(),b=[],w;do w=ju(c),b.push(w);while(w.literal.kind===17);return Ft(b,m)}function Ts(c){let m=T();return M(y.createTemplateExpression(ic(c),_1(c)),m)}function c1(){let c=T();return M(y.createTemplateLiteralType(ic(!1),nc()),c)}function nc(){let c=T(),m=[],b;do b=Ju(),m.push(b);while(b.literal.kind===17);return Ft(m,c)}function Ju(){let c=T();return M(y.createTemplateLiteralTypeSpan(gt(),Ru(!1)),c)}function Ru(c){return f()===20?(we(c),l1()):Hn(18,U._0_expected,nr(20))}function ju(c){let m=T();return M(y.createTemplateSpan(Le(Jt),Ru(c)),m)}function fi(){return za(f())}function ic(c){!c&&t.getTokenFlags()&26656&&we(!1);let m=za(f());return N.assert(m.kind===16,"Template head has wrong token kind"),m}function l1(){let c=za(f());return N.assert(c.kind===17||c.kind===18,"Template fragment has wrong token kind"),c}function Ss(c){let m=c===15||c===18,b=t.getTokenText();return b.substring(1,b.length-(t.isUnterminated()?0:m?1:2))}function za(c){let m=T(),b=Sl(c)?y.createTemplateLiteralLikeNode(c,t.getTokenValue(),Ss(c),t.getTokenFlags()&7176):c===9?S(t.getTokenValue(),t.getNumericLiteralFlags()):c===11?k(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):Ng(c)?L(c,t.getTokenValue()):N.fail();return t.hasExtendedUnicodeEscape()&&(b.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(b.isUnterminated=!0),O(),M(b,m)}function Fu(){return la(!0,U.Type_expected)}function ac(){if(!t.hasPrecedingLineBreak()&&et()===30)return ca(20,gt,30,32)}function Li(){let c=T();return M(y.createTypeReferenceNode(Fu(),ac()),c)}function oc(c){switch(c.kind){case 183:return zi(c.typeName);case 184:case 185:{let{parameters:m,type:b}=c;return rc(m)||oc(b)}case 196:return oc(c.type);default:return!1}}function u1(c){return O(),M(y.createTypePredicateNode(void 0,c,gt()),c.pos)}function Bu(){let c=T();return O(),M(y.createThisTypeNode(),c)}function p1(){let c=T();return O(),M(y.createJSDocAllType(),c)}function Uu(){let c=T();return O(),M(y.createJSDocNonNullableType(op(),!1),c)}function f1(){let c=T();return O(),f()===28||f()===20||f()===22||f()===32||f()===64||f()===52?M(y.createJSDocUnknownType(),c):M(y.createJSDocNullableType(gt(),!1),c)}function qu(){let c=T(),m=x();if(Te(df)){O();let b=Gn(36),w=Dn(59,!1);return Ae(M(y.createJSDocFunctionType(b,w),c),m)}return M(y.createTypeReferenceNode(Yt(),void 0),c)}function d1(){let c=T(),m;return(f()===110||f()===105)&&(m=Yt(),H(59)),M(y.createParameterDeclaration(void 0,void 0,m,void 0,xs(),void 0),c)}function xs(){t.setInJSDocType(!0);let c=T();if(je(144)){let w=y.createJSDocNamepathType(void 0);e:for(;;)switch(f()){case 20:case 1:case 28:case 5:break e;default:fe()}return t.setInJSDocType(!1),M(w,c)}let m=je(26),b=vc();return t.setInJSDocType(!1),m&&(b=M(y.createJSDocVariadicType(b),c)),f()===64?(O(),M(y.createJSDocOptionalType(b),c)):b}function sc(){let c=T();H(114);let m=la(!0),b=t.hasPrecedingLineBreak()?void 0:qs();return M(y.createTypeQueryNode(m,b),c)}function m1(){let c=T(),m=Xn(!1,!0),b=Lt(),w,A;je(96)&&(pa()||!Ri()?w=gt():A=Ps());let R=je(64)?gt():void 0,te=y.createTypeParameterDeclaration(m,b,w,R);return te.expression=A,M(te,c)}function Vr(){if(f()===30)return ca(19,m1,30,32)}function _c(c){return f()===26||zc()||bi(f())||f()===60||pa(!c)}function zu(c){let m=Va(U.Private_identifiers_cannot_be_used_as_parameters);return sm(m)===0&&!mt(c)&&bi(f())&&O(),m}function Wu(){return An()||f()===23||f()===19}function cc(c){return lc(c)}function Vu(c){return lc(c,!1)}function lc(c,m=!0){let b=T(),w=x(),A=c?Cn(()=>Xn(!0)):zn(()=>Xn(!0));if(f()===110){let ne=y.createParameterDeclaration(A,void 0,Ni(!0),void 0,Ji(),void 0),ie=g_(A);return ie&&Lr(ie,U.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Ae(M(ne,b),w)}let R=er;er=!1;let te=dt(26);if(!m&&!Wu())return;let le=Ae(M(y.createParameterDeclaration(A,te,zu(A),dt(58),Ji(),ji()),b),w);return er=R,le}function Dn(c,m){if(Hu(c,m))return yt(vc)}function Hu(c,m){return c===39?(H(c),!0):je(59)?!0:m&&f()===39?(Je(U._0_expected,nr(59)),O(),!0):!1}function ws(c,m){let b=En(),w=Sr();z(!!(c&1)),ee(!!(c&2));let A=c&32?Wr(17,d1):Wr(16,()=>m?cc(w):Vu(w));return z(b),ee(w),A}function Gn(c){if(!H(21))return pi();let m=ws(c,!0);return H(22),m}function Cs(){je(28)||xr()}function uc(c){let m=T(),b=x();c===180&&H(105);let w=Vr(),A=Gn(4),R=Dn(59,!0);Cs();let te=c===179?y.createCallSignature(w,A,R):y.createConstructSignature(w,A,R);return Ae(M(te,m),b)}function Gu(){return f()===23&&Te(h1)}function h1(){if(O(),f()===26||f()===24)return!0;if(bi(f())){if(O(),Et())return!0}else if(Et())O();else return!1;return f()===59||f()===28?!0:f()!==58?!1:(O(),f()===59||f()===28||f()===24)}function ua(c,m,b){let w=ca(16,()=>cc(!1),23,24),A=Ji();Cs();let R=y.createIndexSignature(b,w,A);return Ae(M(R,c),m)}function y1(c,m,b){let w=Ua(),A=dt(58),R;if(f()===21||f()===30){let te=Vr(),le=Gn(4),ne=Dn(59,!0);R=y.createMethodSignature(b,w,A,te,le,ne)}else{let te=Ji();R=y.createPropertySignature(b,w,A,te),f()===64&&(R.initializer=ji())}return Cs(),Ae(M(R,c),m)}function Xu(){if(f()===21||f()===30||f()===139||f()===153)return!0;let c=!1;for(;bi(f());)c=!0,O();return f()===23?!0:(Oi()&&(c=!0,O()),c?f()===21||f()===30||f()===58||f()===59||f()===28||ui():!1)}function pc(){if(f()===21||f()===30)return uc(179);if(f()===105&&Te(fc))return uc(180);let c=T(),m=x(),b=Xn(!1);return _a(139)?da(c,m,b,177,4):_a(153)?da(c,m,b,178,4):Gu()?ua(c,m,b):y1(c,m,b)}function fc(){return O(),f()===21||f()===30}function Es(){return O()===25}function $u(){switch(O()){case 21:case 30:case 25:return!0}return!1}function Qu(){let c=T();return M(y.createTypeLiteralNode(Yu()),c)}function Yu(){let c;return H(19)?(c=zr(4,pc),H(20)):c=pi(),c}function Ku(){return O(),f()===40||f()===41?O()===148:(f()===148&&O(),f()===23&&ys()&&O()===103)}function g1(){let c=T(),m=Yt();H(103);let b=gt();return M(y.createTypeParameterDeclaration(void 0,m,b,void 0),c)}function Zu(){let c=T();H(19);let m;(f()===148||f()===40||f()===41)&&(m=dr(),m.kind!==148&&H(148)),H(23);let b=g1(),w=je(130)?gt():void 0;H(24);let A;(f()===58||f()===40||f()===41)&&(A=dr(),A.kind!==58&&H(58));let R=Ji();xr();let te=zr(4,pc);return H(20),M(y.createMappedTypeNode(m,b,w,A,R,te),c)}function ep(){let c=T();if(je(26))return M(y.createRestTypeNode(gt()),c);let m=gt();if(b8(m)&&m.pos===m.type.pos){let b=y.createOptionalTypeNode(m.type);return Ve(b,m),b.flags=m.flags,b}return m}function dc(){return O()===59||f()===58&&O()===59}function b1(){return f()===26?kt(O())&&dc():kt(f())&&dc()}function tp(){if(Te(b1)){let c=T(),m=x(),b=dt(26),w=Yt(),A=dt(58);H(59);let R=ep(),te=y.createNamedTupleMember(b,w,A,R);return Ae(M(te,c),m)}return ep()}function v1(){let c=T();return M(y.createTupleTypeNode(ca(21,tp,23,24)),c)}function rp(){let c=T();H(21);let m=gt();return H(22),M(y.createParenthesizedType(m),c)}function T1(){let c;if(f()===128){let m=T();O();let b=M(ue(128),m);c=Ft([b],m)}return c}function mc(){let c=T(),m=x(),b=T1(),w=je(105);N.assert(!b||w,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let A=Vr(),R=Gn(4),te=Dn(39,!1),le=w?y.createConstructorTypeNode(b,A,R,te):y.createFunctionTypeNode(A,R,te);return Ae(M(le,c),m)}function np(){let c=dr();return f()===25?void 0:c}function hc(c){let m=T();c&&O();let b=f()===112||f()===97||f()===106?dr():za(f());return c&&(b=M(y.createPrefixUnaryExpression(41,b),m)),M(y.createLiteralTypeNode(b),m)}function S1(){return O(),f()===102}function ip(){let c=T(),m=t.getTokenStart();H(19);let b=t.hasPrecedingLineBreak();H(132),H(59);let w=ma(!0);if(!H(20)){let A=wi(ct);A&&A.code===U._0_expected.code&&nl(A,Ao(sr,m,1,U.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return M(y.createImportTypeAssertionContainer(w,b),c)}function ap(){$t|=4194304;let c=T(),m=je(114);H(102),H(21);let b=gt(),w;je(28)&&(w=ip()),H(22);let A=je(25)?Fu():void 0,R=ac();return M(y.createImportTypeNode(b,w,A,R,m),c)}function yc(){return O(),f()===9||f()===10}function op(){switch(f()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return ft(np)||Li();case 67:t.reScanAsteriskEqualsToken();case 42:return p1();case 61:t.reScanQuestionToken();case 58:return f1();case 100:return qu();case 54:return Uu();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return hc();case 41:return Te(yc)?hc(!0):Li();case 116:return dr();case 110:{let c=Bu();return f()===142&&!t.hasPrecedingLineBreak()?u1(c):c}case 114:return Te(S1)?ap():sc();case 19:return Te(Ku)?Zu():Qu();case 23:return v1();case 21:return rp();case 102:return ap();case 131:return Te(Js)?dp():Li();case 16:return c1();default:return Li()}}function pa(c){switch(f()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!c;case 41:return!c&&Te(yc);case 21:return!c&&Te(x1);default:return Et()}}function x1(){return O(),f()===22||_c(!1)||pa()}function sp(){let c=T(),m=op();for(;!t.hasPrecedingLineBreak();)switch(f()){case 54:O(),m=M(y.createJSDocNonNullableType(m,!0),c);break;case 58:if(Te(ku))return m;O(),m=M(y.createJSDocNullableType(m,!0),c);break;case 23:if(H(23),pa()){let b=gt();H(24),m=M(y.createIndexedAccessTypeNode(m,b),c)}else H(24),m=M(y.createArrayTypeNode(m),c);break;default:return m}return m}function _p(c){let m=T();return H(c),M(y.createTypeOperatorNode(c,up()),m)}function cp(){if(je(96)){let c=jt(gt);if(aa()||f()!==58)return c}}function w1(){let c=T(),m=Lt(),b=ft(cp),w=y.createTypeParameterDeclaration(void 0,m,b);return M(w,c)}function lp(){let c=T();return H(140),M(y.createInferTypeNode(w1()),c)}function up(){let c=f();switch(c){case 143:case 158:case 148:return _p(c);case 140:return lp()}return yt(sp)}function pp(c){if(bc()){let m=mc(),b;return tu(m)?b=c?U.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:U.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:b=c?U.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:U.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,Lr(m,b),m}}function As(c,m,b){let w=T(),A=c===52,R=je(c),te=R&&pp(A)||m();if(f()===c||R){let le=[te];for(;je(c);)le.push(pp(A)||m());te=M(b(Ft(le,w)),w)}return te}function C1(){return As(51,up,y.createIntersectionTypeNode)}function gc(){return As(52,C1,y.createUnionTypeNode)}function E1(){return O(),f()===105}function bc(){return f()===30||f()===21&&Te(A1)?!0:f()===105||f()===128&&Te(E1)}function fp(){if(bi(f())&&Xn(!1),Et()||f()===110)return O(),!0;if(f()===23||f()===19){let c=ct.length;return Va(),c===ct.length}return!1}function A1(){return O(),!!(f()===22||f()===26||fp()&&(f()===59||f()===28||f()===58||f()===64||f()===22&&(O(),f()===39)))}function vc(){let c=T(),m=Et()&&ft(Tc),b=gt();return m?M(y.createTypePredicateNode(void 0,m,b),c):b}function Tc(){let c=Lt();if(f()===142&&!t.hasPrecedingLineBreak())return O(),c}function dp(){let c=T(),m=Hn(131),b=f()===110?Bu():Lt(),w=je(142)?gt():void 0;return M(y.createTypePredicateNode(m,b,w),c)}function gt(){if(at&81920)return xe(81920,gt);if(bc())return mc();let c=T(),m=gc();if(!aa()&&!t.hasPrecedingLineBreak()&&je(96)){let b=jt(gt);H(58);let w=yt(gt);H(59);let A=yt(gt);return M(y.createConditionalTypeNode(m,b,w,A),c)}return m}function Ji(){return je(59)?gt():void 0}function Sc(){switch(f()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return Te($u);default:return Et()}}function Ri(){if(Sc())return!0;switch(f()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return Ec()?!0:Et()}}function mp(){return f()!==19&&f()!==100&&f()!==86&&f()!==60&&Ri()}function Jt(){let c=Vn();c&&X(!1);let m=T(),b=tr(!0),w;for(;w=dt(28);)b=Ds(b,w,tr(!0),m);return c&&X(!0),b}function ji(){return je(64)?tr(!0):void 0}function tr(c){if(k1())return D1();let m=P1(c)||bp(c);if(m)return m;let b=T(),w=x(),A=ks(0);return A.kind===80&&f()===39?xc(b,A,c,w,void 0):Lo(A)&&D_(he())?Ds(A,dr(),tr(c),b):Sp(A,b,c)}function k1(){return f()===127?En()?!0:Te(zp):!1}function hp(){return O(),!t.hasPrecedingLineBreak()&&Et()}function D1(){let c=T();return O(),!t.hasPrecedingLineBreak()&&(f()===42||Ri())?M(y.createYieldExpression(dt(42),tr(!0)),c):M(y.createYieldExpression(void 0,void 0),c)}function xc(c,m,b,w,A){N.assert(f()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let R=y.createParameterDeclaration(void 0,void 0,m,void 0,void 0,void 0);M(R,m.pos);let te=Ft([R],R.pos,R.end),le=Hn(39),ne=Tp(!!A,b),ie=y.createArrowFunction(A,void 0,te,void 0,le,ne);return Ae(M(ie,c),w)}function P1(c){let m=I1();if(m!==0)return m===1?wc(!0,!0):ft(()=>gp(c))}function I1(){return f()===21||f()===30||f()===134?Te(yp):f()===39?1:0}function yp(){if(f()===134&&(O(),t.hasPrecedingLineBreak()||f()!==21&&f()!==30))return 0;let c=f(),m=O();if(c===21){if(m===22)switch(O()){case 39:case 59:case 19:return 1;default:return 0}if(m===23||m===19)return 2;if(m===26)return 1;if(bi(m)&&m!==134&&Te(ys))return O()===130?0:1;if(!Et()&&m!==110)return 0;switch(O()){case 59:return 1;case 58:return O(),f()===59||f()===28||f()===64||f()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return N.assert(c===30),!Et()&&f()!==87?0:vt===1?Te(()=>{je(87);let w=O();if(w===96)switch(O()){case 64:case 32:case 44:return!1;default:return!0}else if(w===28||w===64)return!0;return!1})?1:0:2}function gp(c){let m=t.getTokenStart();if(Mr!=null&&Mr.has(m))return;let b=wc(!1,c);return b||(Mr||(Mr=new Set)).add(m),b}function bp(c){if(f()===134&&Te(vp)===1){let m=T(),b=x(),w=Hc(),A=ks(0);return xc(m,A,c,b,w)}}function vp(){if(f()===134){if(O(),t.hasPrecedingLineBreak()||f()===39)return 0;let c=ks(0);if(!t.hasPrecedingLineBreak()&&c.kind===80&&f()===39)return 1}return 0}function wc(c,m){let b=T(),w=x(),A=Hc(),R=mt(A,al)?2:0,te=Vr(),le;if(H(21)){if(c)le=ws(R,c);else{let di=ws(R,c);if(!di)return;le=di}if(!H(22)&&!c)return}else{if(!c)return;le=pi()}let ne=f()===59,ie=Dn(59,!1);if(ie&&!c&&oc(ie))return;let ve=ie;for(;(ve==null?void 0:ve.kind)===196;)ve=ve.type;let He=ve&&Mm(ve);if(!c&&f()!==39&&(He||f()!==19))return;let Be=f(),Ue=Hn(39),Rt=Be===39||Be===19?Tp(mt(A,al),m):Lt();if(!m&&ne&&f()!==59)return;let Gr=y.createArrowFunction(A,te,le,ie,Ue,Rt);return Ae(M(Gr,b),w)}function Tp(c,m){if(f()===19)return go(c?2:0);if(f()!==27&&f()!==100&&f()!==86&&Bc()&&!mp())return go(16|(c?2:0));let b=er;er=!1;let w=c?Cn(()=>tr(m)):zn(()=>tr(m));return er=b,w}function Sp(c,m,b){let w=dt(58);if(!w)return c;let A;return M(y.createConditionalExpression(c,w,xe(r,()=>tr(!1)),A=Hn(59),wl(A)?tr(b):Jr(80,!1,U._0_expected,nr(59))),m)}function ks(c){let m=T(),b=Ps();return xp(c,b,m)}function Cc(c){return c===103||c===165}function xp(c,m,b){for(;;){he();let w=pl(f());if(!(f()===43?w>=c:w>c)||f()===103&&Ii())break;if(f()===130||f()===152){if(t.hasPrecedingLineBreak())break;{let R=f();O(),m=R===152?N1(m,gt()):O1(m,gt())}}else m=Ds(m,dr(),ks(w),b)}return m}function Ec(){return Ii()&&f()===103?!1:pl(f())>0}function N1(c,m){return M(y.createSatisfiesExpression(c,m),c.pos)}function Ds(c,m,b,w){return M(y.createBinaryExpression(c,m,b),w)}function O1(c,m){return M(y.createAsExpression(c,m),c.pos)}function Ac(){let c=T();return M(y.createPrefixUnaryExpression(f(),Q(Fi)),c)}function M1(){let c=T();return M(y.createDeleteExpression(Q(Fi)),c)}function wp(){let c=T();return M(y.createTypeOfExpression(Q(Fi)),c)}function L1(){let c=T();return M(y.createVoidExpression(Q(Fi)),c)}function Cp(){return f()===135?Sr()?!0:Te(zp):!1}function J1(){let c=T();return M(y.createAwaitExpression(Q(Fi)),c)}function Ps(){if(kc()){let b=T(),w=Dc();return f()===43?xp(pl(f()),w,b):w}let c=f(),m=Fi();if(f()===43){let b=Nt(St,m.pos),{end:w}=m;m.kind===216?Mt(b,w,U.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(N.assert(Rf(c)),Mt(b,w,U.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,nr(c)))}return m}function Fi(){switch(f()){case 40:case 41:case 55:case 54:return Ac();case 91:return M1();case 114:return wp();case 116:return L1();case 30:return vt===1?fa(!0,void 0,void 0,!0):V1();case 135:if(Cp())return J1();default:return Dc()}}function kc(){switch(f()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(vt!==1)return!1;default:return!0}}function Dc(){if(f()===46||f()===47){let m=T();return M(y.createPrefixUnaryExpression(f(),Q(Is)),m)}else if(vt===1&&f()===30&&Te(Y_))return fa(!0);let c=Is();if(N.assert(Lo(c)),(f()===46||f()===47)&&!t.hasPrecedingLineBreak()){let m=f();return O(),M(y.createPostfixUnaryExpression(c,m),c.pos)}return c}function Is(){let c=T(),m;return f()===102?Te(fc)?($t|=4194304,m=dr()):Te(Es)?(O(),O(),m=M(y.createMetaProperty(102,Yt()),c),$t|=8388608):m=Ns():m=f()===108?R1():Ns(),Ip(c,m)}function Ns(){let c=T(),m=Op();return ho(c,m,!0)}function R1(){let c=T(),m=dr();if(f()===30){let b=T(),w=ft(Mc);w!==void 0&&(Mt(b,T(),U.super_may_not_use_type_arguments),Os()||(m=y.createExpressionWithTypeArguments(m,w)))}return f()===21||f()===25||f()===23?m:(Hn(25,U.super_must_be_followed_by_an_argument_list_or_member_access),M(ae(m,qa(!0,!0)),c))}function fa(c,m,b,w=!1){let A=T(),R=U1(c),te;if(R.kind===286){let le=Pc(R),ne,ie=le[le.length-1];if((ie==null?void 0:ie.kind)===284&&!Ti(ie.openingElement.tagName,ie.closingElement.tagName)&&Ti(R.tagName,ie.closingElement.tagName)){let ve=ie.children.end,He=M(y.createJsxElement(ie.openingElement,ie.children,M(y.createJsxClosingElement(M(G(""),ve,ve)),ve,ve)),ie.openingElement.pos,ve);le=Ft([...le.slice(0,le.length-1),He],le.pos,ve),ne=ie.closingElement}else ne=W1(R,c),Ti(R.tagName,ne.tagName)||(b&&Oo(b)&&Ti(ne.tagName,b.tagName)?Lr(R.tagName,U.JSX_element_0_has_no_corresponding_closing_tag,t_(St,R.tagName)):Lr(ne.tagName,U.Expected_corresponding_JSX_closing_tag_for_0,t_(St,R.tagName)));te=M(y.createJsxElement(R,le,ne),A)}else R.kind===289?te=M(y.createJsxFragment(R,Pc(R),Dp(c)),A):(N.assert(R.kind===285),te=R);if(!w&&c&&f()===30){let le=typeof m>"u"?te.pos:m,ne=ft(()=>fa(!0,le));if(ne){let ie=Jr(28,!1);return Ed(ie,ne.pos,0),Mt(Nt(St,le),ne.end,U.JSX_expressions_must_have_one_parent_element),M(y.createBinaryExpression(te,ie,ne),A)}}return te}function j1(){let c=T(),m=y.createJsxText(t.getTokenValue(),ht===13);return ht=t.scanJsxToken(),M(m,c)}function F1(c,m){switch(m){case 1:if(k6(c))Lr(c,U.JSX_fragment_has_no_corresponding_closing_tag);else{let b=c.tagName,w=Math.min(Nt(St,b.pos),b.end);Mt(w,b.end,U.JSX_element_0_has_no_corresponding_closing_tag,t_(St,c.tagName))}return;case 31:case 7:return;case 12:case 13:return j1();case 19:return Ep(!1);case 30:return fa(!1,void 0,c);default:return N.assertNever(m)}}function Pc(c){let m=[],b=T(),w=pt;for(pt|=16384;;){let A=F1(c,ht=t.reScanJsxToken());if(!A||(m.push(A),Oo(c)&&(A==null?void 0:A.kind)===284&&!Ti(A.openingElement.tagName,A.closingElement.tagName)&&Ti(c.tagName,A.closingElement.tagName)))break}return pt=w,Ft(m,b)}function B1(){let c=T();return M(y.createJsxAttributes(zr(13,q1)),c)}function U1(c){let m=T();if(H(30),f()===32)return It(),M(y.createJsxOpeningFragment(),m);let b=Ic(),w=at&524288?void 0:qs(),A=B1(),R;return f()===32?(It(),R=y.createJsxOpeningElement(b,w,A)):(H(44),H(32,void 0,!1)&&(c?O():It()),R=y.createJsxSelfClosingElement(b,w,A)),M(R,m)}function Ic(){let c=T(),m=Nc();if(U_(m))return m;let b=m;for(;je(25);)b=M(ae(b,qa(!0,!1)),c);return b}function Nc(){let c=T();Ke();let m=f()===110,b=Yt();return je(59)?(Ke(),M(y.createJsxNamespacedName(b,Yt()),c)):m?M(y.createToken(110),c):b}function Ep(c){let m=T();if(!H(19))return;let b,w;return f()!==20&&(b=dt(26),w=Jt()),c?H(20):H(20,void 0,!1)&&It(),M(y.createJsxExpression(b,w),m)}function q1(){if(f()===19)return kp();let c=T();return M(y.createJsxAttribute(z1(),Ap()),c)}function Ap(){if(f()===64){if(qt()===11)return fi();if(f()===19)return Ep(!0);if(f()===30)return fa(!0);Je(U.or_JSX_element_expected)}}function z1(){let c=T();Ke();let m=Yt();return je(59)?(Ke(),M(y.createJsxNamespacedName(m,Yt()),c)):m}function kp(){let c=T();H(19),H(26);let m=Jt();return H(20),M(y.createJsxSpreadAttribute(m),c)}function W1(c,m){let b=T();H(31);let w=Ic();return H(32,void 0,!1)&&(m||!Ti(c.tagName,w)?O():It()),M(y.createJsxClosingElement(w),b)}function Dp(c){let m=T();return H(31),H(32,U.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(c?O():It()),M(y.createJsxJsxClosingFragment(),m)}function V1(){N.assert(vt!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let c=T();H(30);let m=gt();H(32);let b=Fi();return M(y.createTypeAssertion(m,b),c)}function Pp(){return O(),kt(f())||f()===23||Os()}function H1(){return f()===29&&Te(Pp)}function Hr(c){if(c.flags&64)return!0;if(jo(c)){let m=c.expression;for(;jo(m)&&!(m.flags&64);)m=m.expression;if(m.flags&64){for(;jo(c);)c.flags|=64,c=c.expression;return!0}}return!1}function Bi(c,m,b){let w=qa(!0,!0),A=b||Hr(m),R=A?Ce(m,b,w):ae(m,w);if(A&&jr(R.name)&&Lr(R.name,U.An_optional_chain_cannot_contain_private_identifiers),g6(m)&&m.typeArguments){let te=m.typeArguments.pos-1,le=Nt(St,m.typeArguments.end)+1;Mt(te,le,U.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return M(R,c)}function mo(c,m,b){let w;if(f()===24)w=Jr(80,!0,U.An_element_access_expression_should_take_an_argument);else{let R=Le(Jt);Qi(R)&&(R.text=sa(R.text)),w=R}H(24);let A=b||Hr(m)?qe(m,b,w):Ze(m,w);return M(A,c)}function ho(c,m,b){for(;;){let w,A=!1;if(b&&H1()?(w=Hn(29),A=kt(f())):A=je(25),A){m=Bi(c,m,w);continue}if((w||!Vn())&&je(23)){m=mo(c,m,w);continue}if(Os()){m=!w&&m.kind===233?Ms(c,m.expression,w,m.typeArguments):Ms(c,m,w,void 0);continue}if(!w){if(f()===54&&!t.hasPrecedingLineBreak()){O(),m=M(y.createNonNullExpression(m),c);continue}let R=ft(Mc);if(R){m=M(y.createExpressionWithTypeArguments(m,R),c);continue}}return m}}function Os(){return f()===15||f()===16}function Ms(c,m,b,w){let A=y.createTaggedTemplateExpression(m,w,f()===15?(we(!0),fi()):Ts(!0));return(b||m.flags&64)&&(A.flags|=64),A.questionDotToken=b,M(A,c)}function Ip(c,m){for(;;){m=ho(c,m,!0);let b,w=dt(29);if(w&&(b=ft(Mc),Os())){m=Ms(c,m,w,b);continue}if(b||f()===21){!w&&m.kind===233&&(b=m.typeArguments,m=m.expression);let A=Oc(),R=w||Hr(m)?it(m,w,b,A):rt(m,b,A);m=M(R,c);continue}if(w){let A=Jr(80,!1,U.Identifier_expected);m=M(Ce(m,w,A),c)}break}return m}function Oc(){H(21);let c=Wr(11,X1);return H(22),c}function Mc(){if(at&524288||et()!==30)return;O();let c=Wr(20,gt);if(he()===32)return O(),c&&Np()?c:void 0}function Np(){switch(f()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||Ec()||!Ri()}function Op(){switch(f()){case 15:t.getTokenFlags()&26656&&we(!1);case 9:case 10:case 11:return fi();case 110:case 108:case 106:case 112:case 97:return dr();case 21:return Mp();case 23:return Jc();case 19:return Ls();case 134:if(!Te(Fc))break;return Rc();case 60:return bh();case 86:return sf();case 100:return Rc();case 105:return Lp();case 44:case 69:if(Re()===14)return fi();break;case 16:return Ts(!1);case 81:return X_()}return Lt(U.Expression_expected)}function Mp(){let c=T(),m=x();H(21);let b=Le(Jt);return H(22),Ae(M(ar(b),c),m)}function G1(){let c=T();H(26);let m=tr(!0);return M(y.createSpreadElement(m),c)}function Lc(){return f()===26?G1():f()===28?M(y.createOmittedExpression(),T()):tr(!0)}function X1(){return xe(r,Lc)}function Jc(){let c=T(),m=t.getTokenStart(),b=H(23),w=t.hasPrecedingLineBreak(),A=Wr(15,Lc);return kn(23,24,b,m),M(Y(A,w),c)}function $1(){let c=T(),m=x();if(dt(26)){let ve=tr(!0);return Ae(M(y.createSpreadAssignment(ve),c),m)}let b=Xn(!0);if(_a(139))return da(c,m,b,177,0);if(_a(153))return da(c,m,b,178,0);let w=dt(42),A=Et(),R=Ua(),te=dt(58),le=dt(54);if(w||f()===21||f()===30)return Wc(c,m,b,w,R,te,le);let ne;if(A&&f()!==59){let ve=dt(64),He=ve?Le(()=>tr(!0)):void 0;ne=y.createShorthandPropertyAssignment(R,He),ne.equalsToken=ve}else{H(59);let ve=Le(()=>tr(!0));ne=y.createPropertyAssignment(R,ve)}return ne.modifiers=b,ne.questionToken=te,ne.exclamationToken=le,Ae(M(ne,c),m)}function Ls(){let c=T(),m=t.getTokenStart(),b=H(19),w=t.hasPrecedingLineBreak(),A=Wr(12,$1,!0);return kn(19,20,b,m),M(B(A,w),c)}function Rc(){let c=Vn();X(!1);let m=T(),b=x(),w=Xn(!1);H(100);let A=dt(42),R=A?1:0,te=mt(w,al)?2:0,le=R&&te?Pi(yo):R?qr(yo):te?Cn(yo):yo(),ne=Vr(),ie=Gn(R|te),ve=Dn(59,!1),He=go(R|te);X(c);let Be=y.createFunctionExpression(w,A,le,ne,ie,ve,He);return Ae(M(Be,m),b)}function yo(){return An()?G_():void 0}function Lp(){let c=T();if(H(105),je(25)){let R=Yt();return M(y.createMetaProperty(105,R),c)}let m=T(),b=ho(m,Op(),!1),w;b.kind===233&&(w=b.typeArguments,b=b.expression),f()===29&&Je(U.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,t_(St,b));let A=f()===21?Oc():void 0;return M(Ir(b,w,A),c)}function Wa(c,m){let b=T(),w=x(),A=t.getTokenStart(),R=H(19,m);if(R||c){let te=t.hasPrecedingLineBreak(),le=zr(1,wr);kn(19,20,R,A);let ne=Ae(M(ci(le,te),b),w);return f()===64&&(Je(U.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),O()),ne}else{let te=pi();return Ae(M(ci(te,void 0),b),w)}}function go(c,m){let b=En();z(!!(c&1));let w=Sr();ee(!!(c&2));let A=er;er=!1;let R=Vn();R&&X(!1);let te=Wa(!!(c&16),m);return R&&X(!0),er=A,z(b),ee(w),te}function Q1(){let c=T(),m=x();return H(27),Ae(M(y.createEmptyStatement(),c),m)}function Jp(){let c=T(),m=x();H(101);let b=t.getTokenStart(),w=H(21),A=Le(Jt);kn(21,22,w,b);let R=wr(),te=je(93)?wr():void 0;return Ae(M(Ge(A,R,te),c),m)}function Y1(){let c=T(),m=x();H(92);let b=wr();H(117);let w=t.getTokenStart(),A=H(21),R=Le(Jt);return kn(21,22,A,w),je(27),Ae(M(y.createDoStatement(b,R),c),m)}function Rp(){let c=T(),m=x();H(117);let b=t.getTokenStart(),w=H(21),A=Le(Jt);kn(21,22,w,b);let R=wr();return Ae(M(Gt(A,R),c),m)}function K1(){let c=T(),m=x();H(99);let b=dt(135);H(21);let w;f()!==27&&(f()===115||f()===121||f()===87||f()===160&&Te(_h)||f()===135&&Te(Fs)?w=ef(!0):w=lt(Jt));let A;if(b?H(165):je(165)){let R=Le(()=>tr(!0));H(22),A=Xt(b,w,R,wr())}else if(je(103)){let R=Le(Jt);H(22),A=y.createForInStatement(w,R,wr())}else{H(27);let R=f()!==27&&f()!==22?Le(Jt):void 0;H(27);let te=f()!==22?Le(Jt):void 0;H(22),A=Ur(w,R,te,wr())}return Ae(M(A,c),m)}function jc(c){let m=T(),b=x();H(c===252?83:88);let w=ui()?void 0:Lt();xr();let A=c===252?y.createBreakStatement(w):y.createContinueStatement(w);return Ae(M(A,m),b)}function Z1(){let c=T(),m=x();H(107);let b=ui()?void 0:Le(Jt);return xr(),Ae(M(y.createReturnStatement(b),c),m)}function eh(){let c=T(),m=x();H(118);let b=t.getTokenStart(),w=H(21),A=Le(Jt);kn(21,22,w,b);let R=ke(67108864,wr);return Ae(M(y.createWithStatement(A,R),c),m)}function jp(){let c=T(),m=x();H(84);let b=Le(Jt);H(59);let w=zr(3,wr);return Ae(M(y.createCaseClause(b,w),c),m)}function th(){let c=T();H(90),H(59);let m=zr(3,wr);return M(y.createDefaultClause(m),c)}function Fp(){return f()===84?jp():th()}function rh(){let c=T();H(19);let m=zr(2,Fp);return H(20),M(y.createCaseBlock(m),c)}function Bp(){let c=T(),m=x();H(109),H(21);let b=Le(Jt);H(22);let w=rh();return Ae(M(y.createSwitchStatement(b,w),c),m)}function nh(){let c=T(),m=x();H(111);let b=t.hasPrecedingLineBreak()?void 0:Le(Jt);return b===void 0&&(Or++,b=M(G(""),T())),fs()||Ie(b),Ae(M(y.createThrowStatement(b),c),m)}function Up(){let c=T(),m=x();H(113);let b=Wa(!1),w=f()===85?ih():void 0,A;return(!w||f()===98)&&(H(98,U.catch_or_finally_expected),A=Wa(!1)),Ae(M(y.createTryStatement(b,w,A),c),m)}function ih(){let c=T();H(85);let m;je(21)?(m=Bs(),H(22)):m=void 0;let b=Wa(!1);return M(y.createCatchClause(m,b),c)}function qp(){let c=T(),m=x();return H(89),xr(),Ae(M(y.createDebuggerStatement(),c),m)}function ah(){let c=T(),m=x(),b,w=f()===21,A=Le(Jt);return Ee(A)&&je(59)?b=y.createLabeledStatement(A,wr()):(fs()||Ie(A),b=Nr(A),w&&(m=!1)),Ae(M(b,c),m)}function Js(){return O(),kt(f())&&!t.hasPrecedingLineBreak()}function oh(){return O(),f()===86&&!t.hasPrecedingLineBreak()}function Fc(){return O(),f()===100&&!t.hasPrecedingLineBreak()}function zp(){return O(),(kt(f())||f()===9||f()===10||f()===11)&&!t.hasPrecedingLineBreak()}function Wp(){for(;;)switch(f()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return Hp();case 135:return Uc();case 120:case 156:return hp();case 144:case 145:return ch();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let c=f();if(O(),t.hasPrecedingLineBreak())return!1;if(c===138&&f()===156)return!0;continue;case 162:return O(),f()===19||f()===80||f()===95;case 102:return O(),f()===11||f()===42||f()===19||kt(f());case 95:let m=O();if(m===156&&(m=Te(O)),m===64||m===42||m===19||m===90||m===130||m===60)return!0;continue;case 126:O();continue;default:return!1}}function Rs(){return Te(Wp)}function Bc(){switch(f()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return Rs()||Te($u);case 87:case 95:return Rs();case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return Rs()||!Te(Js);default:return Ri()}}function sh(){return O(),An()||f()===19||f()===23}function Vp(){return Te(sh)}function _h(){return js(!0)}function js(c){return O(),c&&f()===165?!1:(An()||f()===19)&&!t.hasPrecedingLineBreak()}function Hp(){return Te(js)}function Fs(){return Gp(!0)}function Gp(c){return O()===160?js(c):!1}function Uc(){return Te(Gp)}function wr(){switch(f()){case 27:return Q1();case 19:return Wa(!1);case 115:return vo(T(),x(),void 0);case 121:if(Vp())return vo(T(),x(),void 0);break;case 135:if(Uc())return vo(T(),x(),void 0);break;case 160:if(Hp())return vo(T(),x(),void 0);break;case 100:return Us(T(),x(),void 0);case 86:return _f(T(),x(),void 0);case 101:return Jp();case 92:return Y1();case 117:return Rp();case 99:return K1();case 88:return jc(251);case 83:return jc(252);case 107:return Z1();case 118:return eh();case 109:return Bp();case 111:return nh();case 113:case 85:case 98:return Up();case 89:return qp();case 60:return Xp();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(Rs())return Xp();break}return ah()}function qc(c){return c.kind===138}function Xp(){let c=T(),m=x(),b=Xn(!0);if(mt(b,qc)){let A=$p(c);if(A)return A;for(let R of b)R.flags|=33554432;return ke(33554432,()=>Qp(c,m,b))}else return Qp(c,m,b)}function $p(c){return ke(33554432,()=>{let m=bs(pt,c);if(m)return Du(m)})}function Qp(c,m,b){switch(f()){case 115:case 121:case 87:case 160:case 135:return vo(c,m,b);case 100:return Us(c,m,b);case 86:return _f(c,m,b);case 120:return wh(c,m,b);case 156:return uf(c,m,b);case 94:return Ch(c,m,b);case 162:case 144:case 145:return Eh(c,m,b);case 102:return Dh(c,m,b);case 95:switch(O(),f()){case 90:case 64:return Uh(c,m,b);case 130:return Qc(c,m,b);default:return Bh(c,m,b)}default:if(b){let w=Jr(282,!0,U.Declaration_expected);return Cd(w,c),w.modifiers=b,w}return}}function Yp(){return O()===11}function ch(){return O(),!t.hasPrecedingLineBreak()&&(Et()||f()===11)}function bo(c,m){if(f()!==19){if(c&4){Cs();return}if(ui()){xr();return}}return go(c,m)}function lh(){let c=T();if(f()===28)return M(y.createOmittedExpression(),c);let m=dt(26),b=Va(),w=ji();return M(y.createBindingElement(m,void 0,b,w),c)}function Kp(){let c=T(),m=dt(26),b=An(),w=Ua(),A;b&&f()!==59?(A=w,w=void 0):(H(59),A=Va());let R=ji();return M(y.createBindingElement(m,w,A,R),c)}function uh(){let c=T();H(19);let m=Le(()=>Wr(9,Kp));return H(20),M(y.createObjectBindingPattern(m),c)}function Zp(){let c=T();H(23);let m=Le(()=>Wr(10,lh));return H(24),M(y.createArrayBindingPattern(m),c)}function zc(){return f()===19||f()===23||f()===81||An()}function Va(c){return f()===23?Zp():f()===19?uh():G_(c)}function ph(){return Bs(!0)}function Bs(c){let m=T(),b=x(),w=Va(U.Private_identifiers_are_not_allowed_in_variable_declarations),A;c&&w.kind===80&&f()===54&&!t.hasPrecedingLineBreak()&&(A=dr());let R=Ji(),te=Cc(f())?void 0:ji(),le=Tn(w,A,R,te);return Ae(M(le,m),b)}function ef(c){let m=T(),b=0;switch(f()){case 115:break;case 121:b|=1;break;case 87:b|=2;break;case 160:b|=4;break;case 135:N.assert(Uc()),b|=6,O();break;default:N.fail()}O();let w;if(f()===165&&Te(tf))w=pi();else{let A=Ii();nt(c),w=Wr(8,c?Bs:ph),nt(A)}return M(Sn(w,b),m)}function tf(){return ys()&&O()===22}function vo(c,m,b){let w=ef(!1);xr();let A=or(b,w);return Ae(M(A,c),m)}function Us(c,m,b){let w=Sr(),A=ln(b);H(100);let R=dt(42),te=A&1024?yo():G_(),le=R?1:0,ne=A&512?2:0,ie=Vr();A&1&&ee(!0);let ve=Gn(le|ne),He=Dn(59,!1),Be=bo(le|ne,U.or_expected);ee(w);let Ue=y.createFunctionDeclaration(b,R,te,ie,ve,He,Be);return Ae(M(Ue,c),m)}function fh(){if(f()===137)return H(137);if(f()===11&&Te(O)===21)return ft(()=>{let c=fi();return c.text==="constructor"?c:void 0})}function dh(c,m,b){return ft(()=>{if(fh()){let w=Vr(),A=Gn(0),R=Dn(59,!1),te=bo(0,U.or_expected),le=y.createConstructorDeclaration(b,A,te);return le.typeParameters=w,le.type=R,Ae(M(le,c),m)}})}function Wc(c,m,b,w,A,R,te,le){let ne=w?1:0,ie=mt(b,al)?2:0,ve=Vr(),He=Gn(ne|ie),Be=Dn(59,!1),Ue=bo(ne|ie,le),Rt=y.createMethodDeclaration(b,w,A,R,ve,He,Be,Ue);return Rt.exclamationToken=te,Ae(M(Rt,c),m)}function rf(c,m,b,w,A){let R=!A&&!t.hasPrecedingLineBreak()?dt(54):void 0,te=Ji(),le=xe(90112,ji);an(w,te,le);let ne=y.createPropertyDeclaration(b,w,A||R,te,le);return Ae(M(ne,c),m)}function nf(c,m,b){let w=dt(42),A=Ua(),R=dt(58);return w||f()===21||f()===30?Wc(c,m,b,w,A,R,void 0,U.or_expected):rf(c,m,b,A,R)}function da(c,m,b,w,A){let R=Ua(),te=Vr(),le=Gn(0),ne=Dn(59,!1),ie=bo(A),ve=w===177?y.createGetAccessorDeclaration(b,R,le,ne,ie):y.createSetAccessorDeclaration(b,R,le,ie);return ve.typeParameters=te,Qo(ve)&&(ve.type=ne),Ae(M(ve,c),m)}function mh(){let c;if(f()===60)return!0;for(;bi(f());){if(c=f(),o3(c))return!0;O()}if(f()===42||(Oi()&&(c=f(),O()),f()===23))return!0;if(c!==void 0){if(!Si(c)||c===153||c===139)return!0;switch(f()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return ui()}}return!1}function af(c,m,b){Hn(126);let w=hh(),A=Ae(M(y.createClassStaticBlockDeclaration(w),c),m);return A.modifiers=b,A}function hh(){let c=En(),m=Sr();z(!1),ee(!0);let b=Wa(!1);return z(c),ee(m),b}function yh(){if(Sr()&&f()===135){let c=T(),m=Lt(U.Expression_expected);O();let b=ho(c,m,!0);return Ip(c,b)}return Is()}function Vc(){let c=T();if(!je(60))return;let m=na(yh);return M(y.createDecorator(m),c)}function of(c,m,b){let w=T(),A=f();if(f()===87&&m){if(!ft(xu))return}else{if(b&&f()===126&&Te(mf))return;if(c&&f()===126)return;if(!i1())return}return M(ue(A),w)}function Xn(c,m,b){let w=T(),A,R,te,le=!1,ne=!1,ie=!1;if(c&&f()===60)for(;R=Vc();)A=xt(A,R);for(;te=of(le,m,b);)te.kind===126&&(le=!0),A=xt(A,te),ne=!0;if(ne&&c&&f()===60)for(;R=Vc();)A=xt(A,R),ie=!0;if(ie)for(;te=of(le,m,b);)te.kind===126&&(le=!0),A=xt(A,te);return A&&Ft(A,w)}function Hc(){let c;if(f()===134){let m=T();O();let b=M(ue(134),m);c=Ft([b],m)}return c}function gh(){let c=T(),m=x();if(f()===27)return O(),Ae(M(y.createSemicolonClassElement(),c),m);let b=Xn(!0,!0,!0);if(f()===126&&Te(mf))return af(c,m,b);if(_a(139))return da(c,m,b,177,0);if(_a(153))return da(c,m,b,178,0);if(f()===137||f()===11){let w=dh(c,m,b);if(w)return w}if(Gu())return ua(c,m,b);if(kt(f())||f()===11||f()===9||f()===42||f()===23)if(mt(b,qc)){for(let A of b)A.flags|=33554432;return ke(33554432,()=>nf(c,m,b))}else return nf(c,m,b);if(b){let w=Jr(80,!0,U.Declaration_expected);return rf(c,m,b,w,void 0)}return N.fail("Should not have attempted to parse class member declaration.")}function bh(){let c=T(),m=x(),b=Xn(!0);if(f()===86)return Gc(c,m,b,231);let w=Jr(282,!0,U.Expression_expected);return Cd(w,c),w.modifiers=b,w}function sf(){return Gc(T(),x(),void 0,231)}function _f(c,m,b){return Gc(c,m,b,263)}function Gc(c,m,b,w){let A=Sr();H(86);let R=Xc(),te=Vr();mt(b,Ux)&&ee(!0);let le=cf(),ne;H(19)?(ne=xh(),H(20)):ne=pi(),ee(A);let ie=w===263?y.createClassDeclaration(b,R,te,le,ne):y.createClassExpression(b,R,te,le,ne);return Ae(M(ie,c),m)}function Xc(){return An()&&!vh()?Ni(An()):void 0}function vh(){return f()===119&&Te(Cu)}function cf(){if(lf())return zr(22,Th)}function Th(){let c=T(),m=f();N.assert(m===96||m===119),O();let b=Wr(7,Sh);return M(y.createHeritageClause(m,b),c)}function Sh(){let c=T(),m=Is();if(m.kind===233)return m;let b=qs();return M(y.createExpressionWithTypeArguments(m,b),c)}function qs(){return f()===30?ca(20,gt,30,32):void 0}function lf(){return f()===96||f()===119}function xh(){return zr(5,gh)}function wh(c,m,b){H(120);let w=Lt(),A=Vr(),R=cf(),te=Yu(),le=y.createInterfaceDeclaration(b,w,A,R,te);return Ae(M(le,c),m)}function uf(c,m,b){H(156),t.hasPrecedingLineBreak()&&Je(U.Line_break_not_permitted_here);let w=Lt(),A=Vr();H(64);let R=f()===141&&ft(np)||gt();xr();let te=y.createTypeAliasDeclaration(b,w,A,R);return Ae(M(te,c),m)}function pf(){let c=T(),m=x(),b=Ua(),w=Le(ji);return Ae(M(y.createEnumMember(b,w),c),m)}function Ch(c,m,b){H(94);let w=Lt(),A;H(19)?(A=ia(()=>Wr(6,pf)),H(20)):A=pi();let R=y.createEnumDeclaration(b,w,A);return Ae(M(R,c),m)}function zs(){let c=T(),m;return H(19)?(m=zr(1,wr),H(20)):m=pi(),M(y.createModuleBlock(m),c)}function ff(c,m,b,w){let A=w&32,R=Lt(),te=je(25)?ff(T(),!1,void 0,8|A):zs(),le=y.createModuleDeclaration(b,R,te,w);return Ae(M(le,c),m)}function $c(c,m,b){let w=0,A;f()===162?(A=Lt(),w|=2048):(A=fi(),A.text=sa(A.text));let R;f()===19?R=zs():xr();let te=y.createModuleDeclaration(b,A,R,w);return Ae(M(te,c),m)}function Eh(c,m,b){let w=0;if(f()===162)return $c(c,m,b);if(je(145))w|=32;else if(H(144),f()===11)return $c(c,m,b);return ff(c,m,b,w)}function Ah(){return f()===149&&Te(df)}function df(){return O()===21}function mf(){return O()===19}function kh(){return O()===44}function Qc(c,m,b){H(130),H(145);let w=Lt();xr();let A=y.createNamespaceExportDeclaration(w);return A.modifiers=b,Ae(M(A,c),m)}function Dh(c,m,b){H(102);let w=t.getTokenFullStart(),A;Et()&&(A=Lt());let R=!1;if(f()!==161&&(A==null?void 0:A.escapedText)==="type"&&(Et()||Ih())&&(R=!0,A=Et()?Lt():void 0),A&&!Nh())return Oh(c,m,b,A,R);let te;(A||f()===42||f()===19)&&(te=Mh(A,w,R),H(161));let le=Ws(),ne;f()===132&&!t.hasPrecedingLineBreak()&&(ne=ma()),xr();let ie=y.createImportDeclaration(b,te,le,ne);return Ae(M(ie,c),m)}function Ph(){let c=T(),m=kt(f())?Yt():za(11);H(59);let b=tr(!0);return M(y.createAssertEntry(m,b),c)}function ma(c){let m=T();c||H(132);let b=t.getTokenStart();if(H(19)){let w=t.hasPrecedingLineBreak(),A=Wr(24,Ph,!0);if(!H(20)){let R=wi(ct);R&&R.code===U._0_expected.code&&nl(R,Ao(sr,b,1,U.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return M(y.createAssertClause(A,w),m)}else{let w=Ft([],T(),void 0,!1);return M(y.createAssertClause(w,!1),m)}}function Ih(){return f()===42||f()===19}function Nh(){return f()===28||f()===161}function Oh(c,m,b,w,A){H(64);let R=ha();xr();let te=y.createImportEqualsDeclaration(b,A,w,R);return Ae(M(te,c),m)}function Mh(c,m,b){let w;return(!c||je(28))&&(w=f()===42?Jh():Ha(275)),M(y.createImportClause(b,c,w),m)}function ha(){return Ah()?Lh():la(!1)}function Lh(){let c=T();H(149),H(21);let m=Ws();return H(22),M(y.createExternalModuleReference(m),c)}function Ws(){if(f()===11){let c=fi();return c.text=sa(c.text),c}else return Jt()}function Jh(){let c=T();H(42),H(130);let m=Lt();return M(y.createNamespaceImport(m),c)}function Ha(c){let m=T(),b=c===275?y.createNamedImports(ca(23,jh,19,20)):y.createNamedExports(ca(23,Rh,19,20));return M(b,m)}function Rh(){let c=x();return Ae(hf(281),c)}function jh(){return hf(276)}function hf(c){let m=T(),b=Si(f())&&!Et(),w=t.getTokenStart(),A=t.getTokenEnd(),R=!1,te,le=!0,ne=Yt();if(ne.escapedText==="type")if(f()===130){let He=Yt();if(f()===130){let Be=Yt();kt(f())?(R=!0,te=He,ne=ve(),le=!1):(te=ne,ne=Be,le=!1)}else kt(f())?(te=ne,le=!1,ne=ve()):(R=!0,ne=He)}else kt(f())&&(R=!0,ne=ve());le&&f()===130&&(te=ne,H(130),ne=ve()),c===276&&b&&Mt(w,A,U.Identifier_expected);let ie=c===276?y.createImportSpecifier(R,te,ne):y.createExportSpecifier(R,te,ne);return M(ie,m);function ve(){return b=Si(f())&&!Et(),w=t.getTokenStart(),A=t.getTokenEnd(),Yt()}}function Fh(c){return M(y.createNamespaceExport(Yt()),c)}function Bh(c,m,b){let w=Sr();ee(!0);let A,R,te,le=je(156),ne=T();je(42)?(je(130)&&(A=Fh(ne)),H(161),R=Ws()):(A=Ha(279),(f()===161||f()===11&&!t.hasPrecedingLineBreak())&&(H(161),R=Ws())),R&&f()===132&&!t.hasPrecedingLineBreak()&&(te=ma()),xr(),ee(w);let ie=y.createExportDeclaration(b,le,A,R,te);return Ae(M(ie,c),m)}function Uh(c,m,b){let w=Sr();ee(!0);let A;je(64)?A=!0:H(90);let R=tr(!0);xr(),ee(w);let te=y.createExportAssignment(b,A,R);return Ae(M(te,c),m)}let ya;(c=>{c[c.SourceElements=0]="SourceElements",c[c.BlockStatements=1]="BlockStatements",c[c.SwitchClauses=2]="SwitchClauses",c[c.SwitchClauseStatements=3]="SwitchClauseStatements",c[c.TypeMembers=4]="TypeMembers",c[c.ClassMembers=5]="ClassMembers",c[c.EnumMembers=6]="EnumMembers",c[c.HeritageClauseElement=7]="HeritageClauseElement",c[c.VariableDeclarations=8]="VariableDeclarations",c[c.ObjectBindingElements=9]="ObjectBindingElements",c[c.ArrayBindingElements=10]="ArrayBindingElements",c[c.ArgumentExpressions=11]="ArgumentExpressions",c[c.ObjectLiteralMembers=12]="ObjectLiteralMembers",c[c.JsxAttributes=13]="JsxAttributes",c[c.JsxChildren=14]="JsxChildren",c[c.ArrayLiteralMembers=15]="ArrayLiteralMembers",c[c.Parameters=16]="Parameters",c[c.JSDocParameters=17]="JSDocParameters",c[c.RestProperties=18]="RestProperties",c[c.TypeParameters=19]="TypeParameters",c[c.TypeArguments=20]="TypeArguments",c[c.TupleElementTypes=21]="TupleElementTypes",c[c.HeritageClauses=22]="HeritageClauses",c[c.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",c[c.AssertEntries=24]="AssertEntries",c[c.JSDocComment=25]="JSDocComment",c[c.Count=26]="Count"})(ya||(ya={}));let yf;(c=>{c[c.False=0]="False",c[c.True=1]="True",c[c.Unknown=2]="Unknown"})(yf||(yf={}));let gf;(c=>{function m(ie,ve,He){rn("file.js",ie,99,void 0,1),t.setText(ie,ve,He),ht=t.scan();let Be=b(),Ue=ge("file.js",99,1,!1,[],ue(1),0,Rn),Rt=$a(ct,Ue);return Ut&&(Ue.jsDocDiagnostics=$a(Ut,Ue)),nn(),Be?{jsDocTypeExpression:Be,diagnostics:Rt}:void 0}c.parseJSDocTypeExpressionForTests=m;function b(ie){let ve=T(),He=(ie?je:H)(19),Be=ke(16777216,xs);(!ie||He)&&Ba(20);let Ue=y.createJSDocTypeExpression(Be);return oe(Ue),M(Ue,ve)}c.parseJSDocTypeExpression=b;function w(){let ie=T(),ve=je(19),He=T(),Be=la(!1);for(;f()===81;)Ye(),fe(),Be=M(y.createJSDocMemberName(Be,Lt()),He);ve&&Ba(20);let Ue=y.createJSDocNameReference(Be);return oe(Ue),M(Ue,ie)}c.parseJSDocNameReference=w;function A(ie,ve,He){rn("",ie,99,void 0,1);let Be=ke(16777216,()=>ne(ve,He)),Rt=$a(ct,{languageVariant:0,text:ie});return nn(),Be?{jsDoc:Be,diagnostics:Rt}:void 0}c.parseIsolatedJSDocComment=A;function R(ie,ve,He){let Be=ht,Ue=ct.length,Rt=Qt,Gr=ke(16777216,()=>ne(ve,He));return Xi(Gr,ie),at&524288&&(Ut||(Ut=[]),Ut.push(...ct)),ht=Be,ct.length=Ue,Qt=Rt,Gr}c.parseJSDocComment=R;let te;(ie=>{ie[ie.BeginningOfLine=0]="BeginningOfLine",ie[ie.SawAsterisk=1]="SawAsterisk",ie[ie.SavingComments=2]="SavingComments",ie[ie.SavingBackticks=3]="SavingBackticks"})(te||(te={}));let le;(ie=>{ie[ie.Property=1]="Property",ie[ie.Parameter=2]="Parameter",ie[ie.CallbackParameter=4]="CallbackParameter"})(le||(le={}));function ne(ie=0,ve){let He=pt;pt|=1<<25;let Be=St,Ue=ve===void 0?Be.length:ie+ve;if(ve=Ue-ie,N.assert(ie>=0),N.assert(ie<=Ue),N.assert(Ue<=Be.length),!q8(Be,ie))return;let Rt,Gr,di,mi,hi,Ui=[],ga=[],ba=t.scanRange(ie+3,ve-5,qh);return pt=He,ba;function qh(){let F=1,re,Z=ie-(Be.lastIndexOf(` +`,ie)+1)+4;function se(ze){re||(re=Z),Ui.push(ze),Z+=ze.length}for(fe();xo(5););xo(4)&&(F=0,Z=0);e:for(;;){switch(f()){case 60:zh(Ui),hi||(hi=T()),u(To(Z)),F=0,re=void 0;break;case 4:Ui.push(t.getTokenText()),F=0,Z=0;break;case 42:let ze=t.getTokenText();F===1?(F=2,se(ze)):(N.assert(F===0),F=1,Z+=ze.length);break;case 5:N.assert(F!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let At=t.getTokenText();re!==void 0&&Z+At.length>re&&Ui.push(At.slice(re-Z)),Z+=At.length;break;case 1:break e;case 82:F=2,se(t.getTokenValue());break;case 19:F=2;let Pn=t.getTokenFullStart(),sn=t.getTokenEnd()-1,Ar=vf(sn);if(Ar){mi||bf(Ui),ga.push(M(y.createJSDocText(Ui.join("")),mi??ie,Pn)),ga.push(Ar),Ui=[],mi=t.getTokenEnd();break}default:F=2,se(t.getTokenText());break}F===2?be(!1):fe()}let ce=n_(Ui.join(""));ga.length&&ce.length&&ga.push(M(y.createJSDocText(ce),mi??ie,hi)),ga.length&&Rt&&N.assertIsDefined(hi,"having parsed tags implies that the end of the comment span should be set");let Me=Rt&&Ft(Rt,Gr,di);return M(y.createJSDocComment(ga.length?Ft(ga,ie,hi):ce.length?ce:void 0,Me),ie,Ue)}function bf(F){for(;F.length&&(F[0]===` +`||F[0]==="\r");)F.shift()}function zh(F){for(;F.length;){let re=n_(F[F.length-1]);if(re==="")F.pop();else if(re.lengthAt&&(se.push(Qn.slice(At-F)),ze=2),F+=Qn.length;break;case 19:ze=2;let Tf=t.getTokenFullStart(),Hs=t.getTokenEnd()-1,Sf=vf(Hs);Sf?(ce.push(M(y.createJSDocText(se.join("")),Me??Z,Tf)),ce.push(Sf),se=[],Me=t.getTokenEnd()):Pn(t.getTokenText());break;case 62:ze===3?ze=2:ze=3,Pn(t.getTokenText());break;case 82:ze!==3&&(ze=2),Pn(t.getTokenValue());break;case 42:if(ze===0){ze=1,F+=1;break}default:ze!==3&&(ze=2),Pn(t.getTokenText());break}ze===2||ze===3?sn=be(ze===3):sn=fe()}bf(se);let Ar=n_(se.join(""));if(ce.length)return Ar.length&&ce.push(M(y.createJSDocText(Ar),Me??Z)),Ft(ce,Z,t.getTokenEnd());if(Ar.length)return Ar}function vf(F){let re=ft(n);if(!re)return;fe(),Xe();let Z=T(),se=kt(f())?la(!0):void 0;if(se)for(;f()===81;)Ye(),fe(),se=M(y.createJSDocMemberName(se,Lt()),Z);let ce=[];for(;f()!==20&&f()!==4&&f()!==1;)ce.push(t.getTokenText()),fe();let Me=re==="link"?y.createJSDocLink:re==="linkcode"?y.createJSDocLinkCode:y.createJSDocLinkPlain;return M(Me(se,ce.join("")),F,t.getTokenEnd())}function n(){if(Cr(),f()===19&&fe()===60&&kt(fe())){let F=t.getTokenValue();if(o(F))return F}}function o(F){return F==="link"||F==="linkcode"||F==="linkplain"}function s(F,re,Z,se){return M(y.createJSDocUnknownTag(re,lr(F,T(),Z,se)),F)}function u(F){F&&(Rt?Rt.push(F):(Rt=[F],Gr=F.pos),di=F.end)}function g(){return Cr(),f()===19?b():void 0}function I(){let F=xo(23);F&&Xe();let re=xo(62),Z=v5();return re&&t1(62),F&&(Xe(),dt(64)&&Jt(),H(24)),{name:Z,isBracketed:F}}function W(F){switch(F.kind){case 151:return!0;case 188:return W(F.elementType);default:return R_(F)&&Ee(F.typeName)&&F.typeName.escapedText==="Object"&&!F.typeArguments}}function de(F,re,Z,se){let ce=g(),Me=!ce;Cr();let{name:ze,isBracketed:At}=I(),Pn=Cr();Me&&!Te(n)&&(ce=g());let sn=lr(F,T(),se,Pn),Ar=We(ce,ze,Z,se);Ar&&(ce=Ar,Me=!0);let Qn=Z===1?y.createJSDocPropertyTag(re,ze,At,ce,Me,sn):y.createJSDocParameterTag(re,ze,At,ce,Me,sn);return M(Qn,F)}function We(F,re,Z,se){if(F&&W(F.type)){let ce=T(),Me,ze;for(;Me=ft(()=>Vh(Z,se,re));)Me.kind===348||Me.kind===355?ze=xt(ze,Me):Me.kind===352&&Lr(Me.tagName,U.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(ze){let At=M(y.createJSDocTypeLiteral(ze,F.type.kind===188),ce);return M(y.createJSDocTypeExpression(At),ce)}}}function Er(F,re,Z,se){mt(Rt,R6)&&Mt(re.pos,t.getTokenStart(),U._0_tag_already_specified,Vo(re.escapedText));let ce=g();return M(y.createJSDocReturnTag(re,ce,lr(F,T(),Z,se)),F)}function $n(F,re,Z,se){mt(Rt,lu)&&Mt(re.pos,t.getTokenStart(),U._0_tag_already_specified,Vo(re.escapedText));let ce=b(!0),Me=Z!==void 0&&se!==void 0?lr(F,T(),Z,se):void 0;return M(y.createJSDocTypeTag(re,ce,Me),F)}function yi(F,re,Z,se){let Me=f()===23||Te(()=>fe()===60&&kt(fe())&&o(t.getTokenValue()))?void 0:w(),ze=Z!==void 0&&se!==void 0?lr(F,T(),Z,se):void 0;return M(y.createJSDocSeeTag(re,Me,ze),F)}function Vs(F,re,Z,se){let ce=g(),Me=lr(F,T(),Z,se);return M(y.createJSDocThrowsTag(re,ce,Me),F)}function n5(F,re,Z,se){let ce=T(),Me=i5(),ze=t.getTokenFullStart(),At=lr(F,ze,Z,se);At||(ze=t.getTokenFullStart());let Pn=typeof At!="string"?Ft(y_([M(Me,ce,ze)],At),ce):Me.text+At;return M(y.createJSDocAuthorTag(re,Pn),F)}function i5(){let F=[],re=!1,Z=t.getToken();for(;Z!==1&&Z!==4;){if(Z===30)re=!0;else{if(Z===60&&!re)break;if(Z===32&&re){F.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}F.push(t.getTokenText()),Z=fe()}return y.createJSDocText(F.join(""))}function a5(F,re,Z,se){let ce=Db();return M(y.createJSDocImplementsTag(re,ce,lr(F,T(),Z,se)),F)}function o5(F,re,Z,se){let ce=Db();return M(y.createJSDocAugmentsTag(re,ce,lr(F,T(),Z,se)),F)}function s5(F,re,Z,se){let ce=b(!1),Me=Z!==void 0&&se!==void 0?lr(F,T(),Z,se):void 0;return M(y.createJSDocSatisfiesTag(re,ce,Me),F)}function Db(){let F=je(19),re=T(),Z=_5();t.setInJSDocType(!0);let se=qs();t.setInJSDocType(!1);let ce=y.createExpressionWithTypeArguments(Z,se),Me=M(ce,re);return F&&H(20),Me}function _5(){let F=T(),re=Ga();for(;je(25);){let Z=Ga();re=M(ae(re,Z),F)}return re}function So(F,re,Z,se,ce){return M(re(Z,lr(F,T(),se,ce)),F)}function c5(F,re,Z,se){let ce=b(!0);return Xe(),M(y.createJSDocThisTag(re,ce,lr(F,T(),Z,se)),F)}function l5(F,re,Z,se){let ce=b(!0);return Xe(),M(y.createJSDocEnumTag(re,ce,lr(F,T(),Z,se)),F)}function u5(F,re,Z,se){let ce=g();Cr();let Me=Wh();Xe();let ze=on(Z),At;if(!ce||W(ce.type)){let sn,Ar,Qn,Tf=!1;for(;(sn=ft(()=>h5(Z)))&&sn.kind!==352;)if(Tf=!0,sn.kind===351)if(Ar){let Hs=Je(U.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);Hs&&nl(Hs,Ao(sr,0,0,U.The_tag_was_first_specified_here));break}else Ar=sn;else Qn=xt(Qn,sn);if(Tf){let Hs=ce&&ce.type.kind===188,Sf=y.createJSDocTypeLiteral(Qn,Hs);ce=Ar&&Ar.typeExpression&&!W(Ar.typeExpression.type)?Ar.typeExpression:M(Sf,F),At=ce.end}}At=At||ze!==void 0?T():(Me??ce??re).end,ze||(ze=lr(F,At,Z,se));let Pn=y.createJSDocTypedefTag(re,ce,Me,ze);return M(Pn,F,At)}function Wh(F){let re=t.getTokenStart();if(!kt(f()))return;let Z=Ga();if(je(25)){let se=Wh(!0),ce=y.createModuleDeclaration(void 0,Z,se,F?8:void 0);return M(ce,re)}return F&&(Z.flags|=4096),Z}function p5(F){let re=T(),Z,se;for(;Z=ft(()=>Vh(4,F));){if(Z.kind===352){Lr(Z.tagName,U.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}se=xt(se,Z)}return Ft(se||[],re)}function Pb(F,re){let Z=p5(re),se=ft(()=>{if(xo(60)){let ce=To(re);if(ce&&ce.kind===349)return ce}});return M(y.createJSDocSignature(void 0,Z,se),F)}function f5(F,re,Z,se){let ce=Wh();Xe();let Me=on(Z),ze=Pb(F,Z);Me||(Me=lr(F,T(),Z,se));let At=Me!==void 0?T():ze.end;return M(y.createJSDocCallbackTag(re,ze,ce,Me),F,At)}function d5(F,re,Z,se){Xe();let ce=on(Z),Me=Pb(F,Z);ce||(ce=lr(F,T(),Z,se));let ze=ce!==void 0?T():Me.end;return M(y.createJSDocOverloadTag(re,Me,ce),F,ze)}function m5(F,re){for(;!Ee(F)||!Ee(re);)if(!Ee(F)&&!Ee(re)&&F.right.escapedText===re.right.escapedText)F=F.left,re=re.left;else return!1;return F.escapedText===re.escapedText}function h5(F){return Vh(1,F)}function Vh(F,re,Z){let se=!0,ce=!1;for(;;)switch(fe()){case 60:if(se){let Me=y5(F,re);return Me&&(Me.kind===348||Me.kind===355)&&Z&&(Ee(Me.name)||!m5(Z,Me.name.left))?!1:Me}ce=!1;break;case 4:se=!0,ce=!1;break;case 42:ce&&(se=!1),ce=!0;break;case 80:se=!1;break;case 1:return!1}}function y5(F,re){N.assert(f()===60);let Z=t.getTokenFullStart();fe();let se=Ga(),ce=Cr(),Me;switch(se.escapedText){case"type":return F===1&&$n(Z,se);case"prop":case"property":Me=1;break;case"arg":case"argument":case"param":Me=6;break;case"template":return Ib(Z,se,re,ce);default:return!1}return F&Me?de(Z,se,F,re):!1}function g5(){let F=T(),re=xo(23);re&&Xe();let Z=Ga(U.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),se;if(re&&(Xe(),H(64),se=ke(16777216,xs),H(24)),!zi(Z))return M(y.createTypeParameterDeclaration(void 0,Z,void 0,se),F)}function b5(){let F=T(),re=[];do{Xe();let Z=g5();Z!==void 0&&re.push(Z),Cr()}while(xo(28));return Ft(re,F)}function Ib(F,re,Z,se){let ce=f()===19?b():void 0,Me=b5();return M(y.createJSDocTemplateTag(re,ce,Me,lr(F,T(),Z,se)),F)}function xo(F){return f()===F?(fe(),!0):!1}function v5(){let F=Ga();for(je(23)&&H(24);je(25);){let re=Ga();je(23)&&H(24),F=s1(F,re)}return F}function Ga(F){if(!kt(f()))return Jr(80,!F,F||U.Identifier_expected);Or++;let re=t.getTokenStart(),Z=t.getTokenEnd(),se=f(),ce=sa(t.getTokenValue()),Me=M(G(ce,se),re,Z);return fe(),Me}}})(gf=e.JSDocParser||(e.JSDocParser={}))})(Zn||(Zn={})),(e=>{function t(k,L,G,K){if(K=K||N.shouldAssert(2),y(k,L,G,K),w4(G))return k;if(k.statements.length===0)return Zn.parseSourceFile(k.fileName,L,k.languageVersion,void 0,!0,k.scriptKind,k.setExternalModuleIndicator);let ue=k;N.assert(!ue.hasBeenIncrementallyParsed),ue.hasBeenIncrementallyParsed=!0,Zn.fixupParentReferences(ue);let Y=k.text,B=C(k),ae=l(k,G);y(k,L,ae,K),N.assert(ae.span.start<=G.span.start),N.assert(Kt(ae.span)===Kt(G.span)),N.assert(Kt(Qs(ae))===Kt(Qs(G)));let Ce=Qs(ae).length-ae.span.length;h(ue,ae.span.start,Kt(ae.span),Kt(Qs(ae)),Ce,Y,L,K);let Ze=Zn.parseSourceFile(k.fileName,L,k.languageVersion,B,!0,k.scriptKind,k.setExternalModuleIndicator);return Ze.commentDirectives=r(k.commentDirectives,Ze.commentDirectives,ae.span.start,Kt(ae.span),Ce,Y,L,K),Ze.impliedNodeFormat=k.impliedNodeFormat,Ze}e.updateSourceFile=t;function r(k,L,G,K,ue,Y,B,ae){if(!k)return L;let Ce,Ze=!1;for(let rt of k){let{range:it,type:Ir}=rt;if(it.endK){qe();let ar={range:{pos:it.pos+ue,end:it.end+ue},type:Ir};Ce=xt(Ce,ar),ae&&N.assert(Y.substring(it.pos,it.end)===B.substring(ar.range.pos,ar.range.end))}}return qe(),Ce;function qe(){Ze||(Ze=!0,Ce?L&&Ce.push(...L):Ce=L)}}function a(k,L,G,K,ue,Y){L?ae(k):B(k);return;function B(Ce){let Ze="";if(Y&&_(Ce)&&(Ze=K.substring(Ce.pos,Ce.end)),Ce._children&&(Ce._children=void 0),Ya(Ce,Ce.pos+G,Ce.end+G),Y&&_(Ce)&&N.assert(Ze===ue.substring(Ce.pos,Ce.end)),Bt(Ce,B,ae),Wi(Ce))for(let qe of Ce.jsDoc)B(qe);d(Ce,Y)}function ae(Ce){Ce._children=void 0,Ya(Ce,Ce.pos+G,Ce.end+G);for(let Ze of Ce)B(Ze)}}function _(k){switch(k.kind){case 11:case 9:case 80:return!0}return!1}function p(k,L,G,K,ue){N.assert(k.end>=L,"Adjusting an element that was entirely before the change range"),N.assert(k.pos<=G,"Adjusting an element that was entirely after the change range"),N.assert(k.pos<=k.end);let Y=Math.min(k.pos,K),B=k.end>=G?k.end+ue:Math.min(k.end,K);N.assert(Y<=B),k.parent&&(N.assertGreaterThanOrEqual(Y,k.parent.pos),N.assertLessThanOrEqual(B,k.parent.end)),Ya(k,Y,B)}function d(k,L){if(L){let G=k.pos,K=ue=>{N.assert(ue.pos>=G),G=ue.end};if(Wi(k))for(let ue of k.jsDoc)K(ue);Bt(k,K),N.assert(G<=k.end)}}function h(k,L,G,K,ue,Y,B,ae){Ce(k);return;function Ce(qe){if(N.assert(qe.pos<=qe.end),qe.pos>G){a(qe,!1,ue,Y,B,ae);return}let rt=qe.end;if(rt>=L){if(qe.intersectsChange=!0,qe._children=void 0,p(qe,L,G,K,ue),Bt(qe,Ce,Ze),Wi(qe))for(let it of qe.jsDoc)Ce(it);d(qe,ae);return}N.assert(rtG){a(qe,!0,ue,Y,B,ae);return}let rt=qe.end;if(rt>=L){qe.intersectsChange=!0,qe._children=void 0,p(qe,L,G,K,ue);for(let it of qe)Ce(it);return}N.assert(rt0&&B<=1;B++){let ae=v(k,K);N.assert(ae.pos<=K);let Ce=ae.pos;K=Math.max(0,Ce-1)}let ue=Hi(K,Kt(L.span)),Y=L.newLength+(L.span.start-K);return $d(ue,Y)}function v(k,L){let G=k,K;if(Bt(k,Y),K){let B=ue(K);B.pos>G.pos&&(G=B)}return G;function ue(B){for(;;){let ae=kS(B);if(ae)B=ae;else return B}}function Y(B){if(!zi(B))if(B.pos<=L){if(B.pos>=G.pos&&(G=B),LL),!0}}function y(k,L,G,K){let ue=k.text;if(G&&(N.assert(ue.length-G.span.length+G.newLength===L.length),K||N.shouldAssert(3))){let Y=ue.substr(0,G.span.start),B=L.substr(0,G.span.start);N.assert(Y===B);let ae=ue.substring(Kt(G.span),ue.length),Ce=L.substring(Kt(Qs(G)),L.length);N.assert(ae===Ce)}}function C(k){let L=k.statements,G=0;N.assert(G=Ze.pos&&B=Ze.pos&&B{k[k.Value=-1]="Value"})(S||(S={}))})(Vf||(Vf={})),Hf=new Map,Q8=/^\/\/\/\s*<(\S+)\s.*?\/>/im,Y8=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im}}),Wj=()=>{},$V=Vt({"src/compiler/pnp.ts"(){"use strict";t4()}}),Vj=()=>{},Hj=()=>{},Gj=()=>{},Xj=()=>{},$j=()=>{},Qj=()=>{},Yj=()=>{},Kj=()=>{},Zj=()=>{},eF=()=>{},tF=()=>{},rF=()=>{},nF=()=>{},iF=()=>{},aF=()=>{},oF=()=>{},sF=()=>{},_F=()=>{},cF=()=>{},lF=()=>{},uF=()=>{},pF=()=>{},fF=()=>{},dF=()=>{},mF=()=>{},hF=()=>{},yF=()=>{},gF=()=>{},bF=()=>{},vF=()=>{},TF=()=>{},SF=()=>{},xF=()=>{},wF=()=>{},CF=()=>{},EF=()=>{},AF=()=>{},kF=()=>{},DF=()=>{},PF=()=>{},IF=()=>{},NF=()=>{},OF=()=>{},MF=()=>{},LF=()=>{},JF=()=>{},RF=()=>{},Dr=Vt({"src/compiler/_namespaces/ts.ts"(){"use strict";N5(),pE(),Vv(),fE(),dE(),hE(),bE(),Xv(),TE(),t4(),RE(),HE(),Jk(),SL(),xL(),wL(),CL(),jL(),FL(),BL(),mR(),kj(),Dj(),zj(),Wj(),Vj(),Hj(),Gj(),$j(),Qj(),Yj(),Kj(),Zj(),eF(),tF(),rF(),nF(),iF(),aF(),oF(),sF(),_F(),cF(),lF(),uF(),pF(),fF(),dF(),mF(),hF(),yF(),gF(),bF(),vF(),TF(),SF(),xF(),wF(),CF(),EF(),AF(),kF(),DF(),PF(),IF(),NF(),OF(),MF(),LF(),JF(),RF(),Xj(),Gv()}}),K8=()=>{},jF=()=>{},Z8=()=>{},Fo,Z8=()=>{Vv(),Fo=ns(99,!0)},FF=()=>{},e7=()=>{},BF=()=>{},UF=()=>{},qF=()=>{},zF=()=>{},WF=()=>{},VF=()=>{},HF=()=>{},GF=()=>{},t7=()=>{},r7=()=>{},n7=()=>{},XF=()=>{};function i7(e,t,r,a){let _=ql(e)?new Od(e,t,r):e===80?new Md(80,t,r):e===81?new Ld(81,t,r):new W6(e,t,r);return _.parent=a,_.flags=a.flags&101441536,_}function $F(e,t){if(!ql(e.kind))return $e;let r=[];if(w3(e))return e.forEachChild(d=>{r.push(d)}),r;Fo.setText((t||e.getSourceFile()).text);let a=e.pos,_=d=>{hl(r,a,d.pos,e),r.push(d),a=d.end},p=d=>{hl(r,a,d.pos,e),r.push(QF(d,e)),a=d.end};return yr(e.jsDoc,_),a=e.pos,e.forEachChild(_,p),hl(r,a,e.end,e),Fo.setText(void 0),r}function hl(e,t,r,a){for(Fo.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function Df(e,t){if(!e)return $e;let r=ts_JsDoc_exports.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some(a7))){let a=new Set;for(let _ of e){let p=o7(t,_,d=>{var h;if(!a.has(d))return a.add(d),_.kind===177||_.kind===178?d.getContextualJsDocTags(_,t):((h=d.declarations)==null?void 0:h.length)===1?d.getJsDocTags():void 0});p&&(r=[...p,...r])}}return r}function Kc(e,t){if(!e)return $e;let r=ts_JsDoc_exports.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some(a7))){let a=new Set;for(let _ of e){let p=o7(t,_,d=>{if(!a.has(d))return a.add(d),_.kind===177||_.kind===178?d.getContextualDocumentationComment(_,t):d.getDocumentationComment(t)});p&&(r=r.length===0?p.slice():p.concat(lineBreakPart(),r))}}return r}function o7(e,t,r){var a;let _=((a=t.parent)==null?void 0:a.kind)===176?t.parent.parent:t.parent;if(!_)return;let p=bm(t);return ng(PT(_),d=>{let h=e.getTypeAtLocation(d),l=p&&h.symbol?e.getTypeOfSymbol(h.symbol):h,v=e.getPropertyOfType(l,t.symbol.name);return v?r(v):void 0})}function YF(){return{getNodeConstructor:()=>Od,getTokenConstructor:()=>W6,getIdentifierConstructor:()=>Md,getPrivateIdentifierConstructor:()=>Ld,getSourceFileConstructor:()=>y7,getSymbolConstructor:()=>d7,getTypeConstructor:()=>m7,getSignatureConstructor:()=>h7,getSourceMapSourceConstructor:()=>g7}}function sl(e){let t=!0;for(let a in e)if(Qr(e,a)&&!dv(a)){t=!1;break}if(t)return e;let r={};for(let a in e)if(Qr(e,a)){let _=dv(a)?a:a.charAt(0).toLowerCase()+a.substr(1);r[_]=e[a]}return r}function dv(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function KF(e){return e?Aa(e,t=>t.text).join(""):""}function s7(){return{target:1,jsx:1}}function _7(){return ts_codefix_exports.getSupportedErrorCodes()}function c7(e,t,r){e.version=r,e.scriptSnapshot=t}function z6(e,t,r,a,_,p){let d=V8(e,getSnapshotText(t),r,_,p);return c7(d,t,a),d}function l7(e,t,r,a,_){if(a&&r!==e.version){let d,h=a.span.start!==0?e.text.substr(0,a.span.start):"",l=Kt(a.span)!==e.text.length?e.text.substr(Kt(a.span)):"";if(a.newLength===0)d=h&&l?h+l:h||l;else{let y=t.getText(a.span.start,a.span.start+a.newLength);d=h&&l?h+y+l:h?h+y:y+l}let v=q6(e,d,a,_);return c7(v,t,r),v.nameTable=void 0,e!==v&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),v}let p={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator};return z6(e.fileName,t,p,r,!0,e.scriptKind)}function ZF(e,t=createDocumentRegistry(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()),r){var a;let _;r===void 0?_=0:typeof r=="boolean"?_=r?2:0:_=r;let p=new b7(e),d,h,l=0,v=e.getCancellationToken?new T7(e.getCancellationToken()):v7,y=e.getCurrentDirectory();NS((a=e.getLocalizedDiagnosticMessages)==null?void 0:a.bind(e));function C(j){e.log&&e.log(j)}let S=C2(e),k=Ud(S),L=getSourceMapper({useCaseSensitiveFileNames:()=>S,getCurrentDirectory:()=>y,getProgram:ue,fileExists:rr(e,e.fileExists),readFile:rr(e,e.readFile),getDocumentPositionMapper:rr(e,e.getDocumentPositionMapper),getSourceFileLike:rr(e,e.getSourceFileLike),log:C});function G(j){let T=d.getSourceFile(j);if(!T){let x=new Error(`Could not find source file: '${j}'.`);throw x.ProgramFiles=d.getSourceFiles().map(f=>f.fileName),x}return T}function K(){var j,T,x;if(N.assert(_!==2),e.getProjectVersion){let Ie=e.getProjectVersion();if(Ie){if(h===Ie&&!((j=e.hasChangedAutomaticTypeDirectiveNames)!=null&&j.call(e)))return;h=Ie}}let f=e.getTypeRootsVersion?e.getTypeRootsVersion():0;l!==f&&(C("TypeRoots version has changed; provide new program"),d=void 0,l=f);let $=e.getScriptFileNames().slice(),Q=e.getCompilationSettings()||s7(),O=e.hasInvalidatedResolutions||$f,fe=rr(e,e.hasInvalidatedLibResolutions)||$f,be=rr(e,e.hasChangedAutomaticTypeDirectiveNames),he=(T=e.getProjectReferences)==null?void 0:T.call(e),Re,we={getSourceFile:H,getSourceFileByPath:Fa,getCancellationToken:()=>v,getCanonicalFileName:k,useCaseSensitiveFileNames:()=>S,getNewLine:()=>vS(Q),getDefaultLibFileName:Ie=>e.getDefaultLibFileName(Ie),writeFile:Rn,getCurrentDirectory:()=>y,fileExists:Ie=>e.fileExists(Ie),readFile:Ie=>e.readFile&&e.readFile(Ie),getSymlinkCache:rr(e,e.getSymlinkCache),realpath:rr(e,e.realpath),directoryExists:Ie=>bS(Ie,e),getDirectories:Ie=>e.getDirectories?e.getDirectories(Ie):[],readDirectory:(Ie,ot,cr,an,Ba)=>(N.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(Ie,ot,cr,an,Ba)),onReleaseOldSourceFile:Et,onReleaseParsedCommandLine:An,hasInvalidatedResolutions:O,hasInvalidatedLibResolutions:fe,hasChangedAutomaticTypeDirectiveNames:be,trace:rr(e,e.trace),resolveModuleNames:rr(e,e.resolveModuleNames),getModuleResolutionCache:rr(e,e.getModuleResolutionCache),createHash:rr(e,e.createHash),resolveTypeReferenceDirectives:rr(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:rr(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:rr(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:rr(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:rr(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:Te},et=we.getSourceFile,{getSourceFileWithCache:Ye}=changeCompilerHostLikeToUseCache(we,Ie=>xi(Ie,y,k),(...Ie)=>et.call(we,...Ie));we.getSourceFile=Ye,(x=e.setCompilerHost)==null||x.call(e,we);let Ke={useCaseSensitiveFileNames:S,fileExists:Ie=>we.fileExists(Ie),readFile:Ie=>we.readFile(Ie),directoryExists:Ie=>we.directoryExists(Ie),getDirectories:Ie=>we.getDirectories(Ie),realpath:we.realpath,readDirectory:(...Ie)=>we.readDirectory(...Ie),trace:we.trace,getCurrentDirectory:we.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:Rn},It=t.getKeyForCompilationSettings(Q),qt=new Set;if(isProgramUptoDate(d,$,Q,(Ie,ot)=>e.getScriptVersion(ot),Ie=>we.fileExists(Ie),O,fe,be,Te,he)){we=void 0,Re=void 0,qt=void 0;return}let _r={rootNames:$,options:Q,host:we,oldProgram:d,projectReferences:he};d=createProgram(_r),we=void 0,Re=void 0,qt=void 0,L.clearCache(),d.getTypeChecker();return;function Te(Ie){let ot=xi(Ie,y,k),cr=Re==null?void 0:Re.get(ot);if(cr!==void 0)return cr||void 0;let an=e.getParsedCommandLine?e.getParsedCommandLine(Ie):ft(Ie);return(Re||(Re=new Map)).set(ot,an||!1),an}function ft(Ie){let ot=H(Ie,100);if(ot)return ot.path=xi(Ie,y,k),ot.resolvedPath=ot.path,ot.originalFileName=ot.fileName,parseJsonSourceFileConfigFileContent(ot,Ke,Pa($i(Ie),y),void 0,Pa(Ie,y))}function An(Ie,ot,cr){var an;e.getParsedCommandLine?(an=e.onReleaseParsedCommandLine)==null||an.call(e,Ie,ot,cr):ot&&Et(ot.sourceFile,cr)}function Et(Ie,ot){let cr=t.getKeyForCompilationSettings(ot);t.releaseDocumentWithKey(Ie.resolvedPath,cr,Ie.scriptKind,Ie.impliedNodeFormat)}function H(Ie,ot,cr,an){return Fa(Ie,xi(Ie,y,k),ot,cr,an)}function Fa(Ie,ot,cr,an,Ba){N.assert(we,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");let kn=e.getScriptSnapshot(Ie);if(!kn)return;let je=getScriptKind(Ie,e),dt=e.getScriptVersion(Ie);if(!Ba){let li=d&&d.getSourceFileByPath(ot);if(li){if(je===li.scriptKind||qt.has(li.resolvedPath))return t.updateDocumentWithKey(Ie,ot,e,It,kn,dt,je,cr);t.releaseDocumentWithKey(li.resolvedPath,t.getKeyForCompilationSettings(d.getCompilerOptions()),li.scriptKind,li.impliedNodeFormat),qt.add(li.resolvedPath)}}return t.acquireDocumentWithKey(Ie,ot,e,It,kn,dt,je,cr)}}function ue(){if(_===2){N.assert(d===void 0);return}return K(),d}function Y(){var j;return(j=e.getPackageJsonAutoImportProvider)==null?void 0:j.call(e)}function B(j,T){let x=d.getTypeChecker(),f=$();if(!f)return!1;for(let O of j)for(let fe of O.references){let be=Q(fe);if(N.assertIsDefined(be),T.has(fe)||ts_FindAllReferences_exports.isDeclarationOfSymbol(be,f)){T.add(fe),fe.isDefinition=!0;let he=getMappedDocumentSpan(fe,L,rr(e,e.fileExists));he&&T.add(he)}else fe.isDefinition=!1}return!0;function $(){for(let O of j)for(let fe of O.references){if(T.has(fe)){let he=Q(fe);return N.assertIsDefined(he),x.getSymbolAtLocation(he)}let be=getMappedDocumentSpan(fe,L,rr(e,e.fileExists));if(be&&T.has(be)){let he=Q(be);if(he)return x.getSymbolAtLocation(he)}}}function Q(O){let fe=d.getSourceFile(O.fileName);if(!fe)return;let be=getTouchingPropertyName(fe,O.textSpan.start);return ts_FindAllReferences_exports.Core.getAdjustedNode(be,{use:ts_FindAllReferences_exports.FindReferencesUse.References})}}function ae(){if(d){let j=t.getKeyForCompilationSettings(d.getCompilerOptions());yr(d.getSourceFiles(),T=>t.releaseDocumentWithKey(T.resolvedPath,j,T.scriptKind,T.impliedNodeFormat)),d=void 0}}function Ce(){ae(),e=void 0}function Ze(j){return K(),d.getSyntacticDiagnostics(G(j),v).slice()}function qe(j){K();let T=G(j),x=d.getSemanticDiagnostics(T,v);if(!z2(d.getCompilerOptions()))return x.slice();let f=d.getDeclarationDiagnostics(T,v);return[...x,...f]}function rt(j){return K(),computeSuggestionDiagnostics(G(j),d,v)}function it(){return K(),[...d.getOptionsDiagnostics(v),...d.getGlobalDiagnostics(v)]}function Ir(j,T,x=emptyOptions,f){let $={...x,includeCompletionsForModuleExports:x.includeCompletionsForModuleExports||x.includeExternalModuleExports,includeCompletionsWithInsertText:x.includeCompletionsWithInsertText||x.includeInsertTextCompletions};return K(),ts_Completions_exports.getCompletionsAtPosition(e,d,C,G(j),T,$,x.triggerCharacter,x.triggerKind,v,f&&ts_formatting_exports.getFormatContext(f,e),x.includeSymbol)}function ar(j,T,x,f,$,Q=emptyOptions,O){return K(),ts_Completions_exports.getCompletionEntryDetails(d,C,G(j),T,{name:x,source:$,data:O},e,f&&ts_formatting_exports.getFormatContext(f,e),Q,v)}function ci(j,T,x,f,$=emptyOptions){return K(),ts_Completions_exports.getCompletionEntrySymbol(d,C,G(j),T,{name:x,source:f},e,$)}function or(j,T){K();let x=G(j),f=getTouchingPropertyName(x,T);if(f===x)return;let $=d.getTypeChecker(),Q=Nr(f),O=iB(Q,$);if(!O||$.isUnknownSymbol(O)){let we=Ge(x,Q,T)?$.getTypeAtLocation(Q):void 0;return we&&{kind:"",kindModifiers:"",textSpan:createTextSpanFromNode(Q,x),displayParts:$.runWithCancellationToken(v,et=>typeToDisplayParts(et,we,getContainerNode(Q))),documentation:we.symbol?we.symbol.getDocumentationComment($):void 0,tags:we.symbol?we.symbol.getJsDocTags($):void 0}}let{symbolKind:fe,displayParts:be,documentation:he,tags:Re}=$.runWithCancellationToken(v,we=>ts_SymbolDisplay_exports.getSymbolDisplayPartsDocumentationAndSymbolKind(we,O,x,getContainerNode(Q),Q));return{kind:fe,kindModifiers:ts_SymbolDisplay_exports.getSymbolModifiers($,O),textSpan:createTextSpanFromNode(Q,x),displayParts:be,documentation:he,tags:Re}}function Nr(j){return a8(j.parent)&&j.pos===j.parent.pos?j.parent.expression:p6(j.parent)&&j.pos===j.parent.pos||x0(j.parent)&&j.parent.name===j||U_(j.parent)?j.parent:j}function Ge(j,T,x){switch(T.kind){case 80:return!isLabelName(T)&&!isTagName(T)&&!K4(T.parent);case 211:case 166:return!isInComment(j,x);case 110:case 197:case 108:case 202:return!0;case 236:return x0(T);default:return!1}}function Gt(j,T,x,f){return K(),ts_GoToDefinition_exports.getDefinitionAtPosition(d,G(j),T,x,f)}function Ur(j,T){return K(),ts_GoToDefinition_exports.getDefinitionAndBoundSpan(d,G(j),T)}function Xt(j,T){return K(),ts_GoToDefinition_exports.getTypeDefinitionAtPosition(d.getTypeChecker(),G(j),T)}function Tn(j,T){return K(),ts_FindAllReferences_exports.getImplementationsAtPosition(d,v,d.getSourceFiles(),G(j),T)}function Sn(j,T,x){let f=pn(j);N.assert(x.some(O=>pn(O)===f)),K();let $=Za(x,O=>d.getSourceFile(O)),Q=G(j);return DocumentHighlights.getDocumentHighlights(d,v,Q,T,$)}function sr(j,T,x,f,$){K();let Q=G(j),O=getAdjustedRenameLocation(getTouchingPropertyName(Q,T));if(ts_Rename_exports.nodeIsEligibleForRename(O))if(Ee(O)&&(Oo(O.parent)||zf(O.parent))&&zT(O.escapedText)){let{openingElement:fe,closingElement:be}=O.parent.parent;return[fe,be].map(he=>{let Re=createTextSpanFromNode(he.tagName,Q);return{fileName:Q.fileName,textSpan:Re,...ts_FindAllReferences_exports.toContextSpan(Re,Q,he.parent)}})}else{let fe=getQuotePreference(Q,$??emptyOptions),be=typeof $=="boolean"?$:$==null?void 0:$.providePrefixAndSuffixTextForRename;return St(O,T,{findInStrings:x,findInComments:f,providePrefixAndSuffixTextForRename:be,use:ts_FindAllReferences_exports.FindReferencesUse.Rename},(he,Re,we)=>ts_FindAllReferences_exports.toRenameLocation(he,Re,we,be||!1,fe))}}function $t(j,T){return K(),St(getTouchingPropertyName(G(j),T),T,{use:ts_FindAllReferences_exports.FindReferencesUse.References},ts_FindAllReferences_exports.toReferenceEntry)}function St(j,T,x,f){K();let $=x&&x.use===ts_FindAllReferences_exports.FindReferencesUse.Rename?d.getSourceFiles().filter(Q=>!d.isSourceFileDefaultLibrary(Q)):d.getSourceFiles();return ts_FindAllReferences_exports.findReferenceOrRenameEntries(d,v,$,j,T,x,f)}function xn(j,T){return K(),ts_FindAllReferences_exports.findReferencedSymbols(d,v,d.getSourceFiles(),G(j),T)}function Tr(j){return K(),ts_FindAllReferences_exports.Core.getReferencesForFileName(j,d,d.getSourceFiles()).map(ts_FindAllReferences_exports.toReferenceEntry)}function vt(j,T,x,f=!1){K();let $=x?[G(x)]:d.getSourceFiles();return getNavigateToItems($,d.getTypeChecker(),v,j,T,f)}function ct(j,T,x){K();let f=G(j),$=e.getCustomTransformers&&e.getCustomTransformers();return getFileEmitOutput(d,f,!!T,v,$,x)}function Ut(j,T,{triggerReason:x}=emptyOptions){K();let f=G(j);return ts_SignatureHelp_exports.getSignatureHelpItems(d,f,T,x,v)}function fr(j){return p.getCurrentSourceFile(j)}function ht(j,T,x){let f=p.getCurrentSourceFile(j),$=getTouchingPropertyName(f,T);if($===f)return;switch($.kind){case 211:case 166:case 11:case 97:case 112:case 106:case 108:case 110:case 197:case 80:break;default:return}let Q=$;for(;;)if(isRightSideOfPropertyAccess(Q)||isRightSideOfQualifiedName(Q))Q=Q.parent;else if(isNameOfModuleDeclaration(Q))if(Q.parent.parent.kind===267&&Q.parent.parent.body===Q.parent)Q=Q.parent.parent.name;else break;else break;return Hi(Q.getStart(),$.getEnd())}function wn(j,T){let x=p.getCurrentSourceFile(j);return ts_BreakpointResolver_exports.spanInSourceFileAtLocation(x,T)}function Tt(j){return getNavigationBarItems(p.getCurrentSourceFile(j),v)}function Or(j){return getNavigationTree(p.getCurrentSourceFile(j),v)}function pt(j,T,x){return K(),(x||"original")==="2020"?getSemanticClassifications2(d,v,G(j),T):getSemanticClassifications(d.getTypeChecker(),v,G(j),d.getClassifiableNames(),T)}function Mr(j,T,x){return K(),(x||"original")==="original"?getEncodedSemanticClassifications(d.getTypeChecker(),v,G(j),d.getClassifiableNames(),T):getEncodedSemanticClassifications2(d,v,G(j),T)}function at(j,T){return getSyntacticClassifications(v,p.getCurrentSourceFile(j),T)}function er(j,T){return getEncodedSyntacticClassifications(v,p.getCurrentSourceFile(j),T)}function Qt(j){let T=p.getCurrentSourceFile(j);return ts_OutliningElementsCollector_exports.collectElements(T,v)}let tn=new Map(Object.entries({19:20,21:22,23:24,32:30}));tn.forEach((j,T)=>tn.set(j.toString(),Number(T)));function Bn(j,T){let x=p.getCurrentSourceFile(j),f=getTouchingToken(x,T),$=f.getStart(x)===T?tn.get(f.kind.toString()):void 0,Q=$&&findChildOfKind(f.parent,$,x);return Q?[createTextSpanFromNode(f,x),createTextSpanFromNode(Q,x)].sort((O,fe)=>O.start-fe.start):$e}function Un(j,T,x){let f=Sa(),$=sl(x),Q=p.getCurrentSourceFile(j);C("getIndentationAtPosition: getCurrentSourceFile: "+(Sa()-f)),f=Sa();let O=ts_formatting_exports.SmartIndenter.getIndentation(T,Q,$);return C("getIndentationAtPosition: computeIndentation : "+(Sa()-f)),O}function rn(j,T,x,f){let $=p.getCurrentSourceFile(j);return ts_formatting_exports.formatSelection(T,x,$,ts_formatting_exports.getFormatContext(sl(f),e))}function nn(j,T){return ts_formatting_exports.formatDocument(p.getCurrentSourceFile(j),ts_formatting_exports.getFormatContext(sl(T),e))}function Di(j,T,x,f){let $=p.getCurrentSourceFile(j),Q=ts_formatting_exports.getFormatContext(sl(f),e);if(!isInComment($,T))switch(x){case"{":return ts_formatting_exports.formatOnOpeningCurly(T,$,Q);case"}":return ts_formatting_exports.formatOnClosingCurly(T,$,Q);case";":return ts_formatting_exports.formatOnSemicolon(T,$,Q);case` +`:return ts_formatting_exports.formatOnEnter(T,$,Q)}return[]}function qn(j,T,x,f,$,Q=emptyOptions){K();let O=G(j),fe=Hi(T,x),be=ts_formatting_exports.getFormatContext($,e);return Bo(Sv(f,_o,kr),he=>(v.throwIfCancellationRequested(),ts_codefix_exports.getFixes({errorCode:he,sourceFile:O,span:fe,program:d,host:e,cancellationToken:v,formatContext:be,preferences:Q})))}function Ae(j,T,x,f=emptyOptions){K(),N.assert(j.type==="file");let $=G(j.fileName),Q=ts_formatting_exports.getFormatContext(x,e);return ts_codefix_exports.getAllFixes({fixId:T,sourceFile:$,program:d,host:e,cancellationToken:v,formatContext:Q,preferences:f})}function q(j,T,x=emptyOptions){K(),N.assert(j.type==="file");let f=G(j.fileName),$=ts_formatting_exports.getFormatContext(T,e),Q=j.mode??(j.skipDestructiveCodeActions?"SortAndCombine":"All");return ts_OrganizeImports_exports.organizeImports(f,$,e,d,x,Q)}function oe(j,T,x,f=emptyOptions){return getEditsForFileRename(ue(),j,T,e,ts_formatting_exports.getFormatContext(x,e),f,L)}function ge(j,T){let x=typeof j=="string"?T:j;return zt(x)?Promise.all(x.map(f=>Se(f))):Se(x)}function Se(j){let T=x=>xi(x,y,k);return N.assertEqual(j.type,"install package"),e.installPackage?e.installPackage({fileName:T(j.file),packageName:j.packageName}):Promise.reject("Host does not implement `installPackage`")}function nt(j,T,x,f){let $=f?ts_formatting_exports.getFormatContext(f,e).options:void 0;return ts_JsDoc_exports.getDocCommentTemplateAtPosition(getNewLineOrDefaultFromHost(e,$),p.getCurrentSourceFile(j),T,x)}function z(j,T,x){if(x===60)return!1;let f=p.getCurrentSourceFile(j);if(isInString(f,T))return!1;if(isInsideJsxElementOrAttribute(f,T))return x===123;if(isInTemplateString(f,T))return!1;switch(x){case 39:case 34:case 96:return!isInComment(f,T)}return!0}function X(j,T){let x=p.getCurrentSourceFile(j),f=findPrecedingToken(T,x);if(!f)return;let $=f.kind===32&&Oo(f.parent)?f.parent.parent:Dd(f)&&Q0(f.parent)?f.parent:void 0;if($&&jt($))return{newText:``};let Q=f.kind===32&&k6(f.parent)?f.parent.parent:Dd(f)&&dl(f.parent)?f.parent:void 0;if(Q&&qr(Q))return{newText:""}}function ee(j,T){let x=p.getCurrentSourceFile(j),f=findPrecedingToken(T,x);if(!f||f.parent.kind===312)return;let $="[a-zA-Z0-9:\\-\\._$]*";if(dl(f.parent.parent)){let Q=f.parent.parent.openingFragment,O=f.parent.parent.closingFragment;if(xl(Q)||xl(O))return;let fe=Q.getStart(x)+1,be=O.getStart(x)+2;return T!==fe&&T!==be?void 0:{ranges:[{start:fe,length:0},{start:be,length:0}],wordPattern:$}}else{let Q=Kr(f.parent,Ye=>!!(Oo(Ye)||zf(Ye)));if(!Q)return;N.assert(Oo(Q)||zf(Q),"tag should be opening or closing element");let O=Q.parent.openingElement,fe=Q.parent.closingElement,be=O.tagName.getStart(x),he=O.tagName.end,Re=fe.tagName.getStart(x),we=fe.tagName.end;return!(be<=T&&T<=he||Re<=T&&T<=we)||O.tagName.getText(x)!==fe.tagName.getText(x)?void 0:{ranges:[{start:be,length:he-be},{start:Re,length:we-Re}],wordPattern:$}}}function xe(j,T){return{lineStarts:j.getLineStarts(),firstLine:j.getLineAndCharacterOfPosition(T.pos).line,lastLine:j.getLineAndCharacterOfPosition(T.end).line}}function ke(j,T,x){let f=p.getCurrentSourceFile(j),$=[],{lineStarts:Q,firstLine:O,lastLine:fe}=xe(f,T),be=x||!1,he=Number.MAX_VALUE,Re=new Map,we=new RegExp(/\S/),et=isInsideJsxElement(f,Q[O]),Ye=et?"{/*":"//";for(let Ke=O;Ke<=fe;Ke++){let It=f.text.substring(Q[Ke],f.getLineEndOfPosition(Q[Ke])),qt=we.exec(It);qt&&(he=Math.min(he,qt.index),Re.set(Ke.toString(),qt.index),It.substr(qt.index,Ye.length)!==Ye&&(be=x===void 0||x))}for(let Ke=O;Ke<=fe;Ke++){if(O!==fe&&Q[Ke]===T.end)continue;let It=Re.get(Ke.toString());It!==void 0&&(et?$.push.apply($,Le(j,{pos:Q[Ke]+he,end:f.getLineEndOfPosition(Q[Ke])},be,et)):be?$.push({newText:Ye,span:{length:0,start:Q[Ke]+he}}):f.text.substr(Q[Ke]+It,Ye.length)===Ye&&$.push({newText:"",span:{length:Ye.length,start:Q[Ke]+It}}))}return $}function Le(j,T,x,f){var $;let Q=p.getCurrentSourceFile(j),O=[],{text:fe}=Q,be=!1,he=x||!1,Re=[],{pos:we}=T,et=f!==void 0?f:isInsideJsxElement(Q,we),Ye=et?"{/*":"/*",Ke=et?"*/}":"*/",It=et?"\\{\\/\\*":"\\/\\*",qt=et?"\\*\\/\\}":"\\*\\/";for(;we<=T.end;){let _r=fe.substr(we,Ye.length)===Ye?Ye.length:0,Te=isInComment(Q,we+_r);if(Te)et&&(Te.pos--,Te.end++),Re.push(Te.pos),Te.kind===3&&Re.push(Te.end),be=!0,we=Te.end+1;else{let ft=fe.substring(we,T.end).search(`(${It})|(${qt})`);he=x!==void 0?x:he||!isTextWhiteSpaceLike(fe,we,ft===-1?T.end:we+ft),we=ft===-1?T.end+1:we+ft+Ke.length}}if(he||!be){(($=isInComment(Q,T.pos))==null?void 0:$.kind)!==2&&yl(Re,T.pos,kr),yl(Re,T.end,kr);let _r=Re[0];fe.substr(_r,Ye.length)!==Ye&&O.push({newText:Ye,span:{length:0,start:_r}});for(let Te=1;Te0?_r-Ke.length:0,ft=fe.substr(Te,Ke.length)===Ke?Ke.length:0;O.push({newText:"",span:{length:Ye.length,start:_r-ft}})}return O}function lt(j,T){let x=p.getCurrentSourceFile(j),{firstLine:f,lastLine:$}=xe(x,T);return f===$&&T.pos!==T.end?Le(j,T,!0):ke(j,T,!0)}function yt(j,T){let x=p.getCurrentSourceFile(j),f=[],{pos:$}=T,{end:Q}=T;$===Q&&(Q+=isInsideJsxElement(x,$)?2:1);for(let O=$;O<=Q;O++){let fe=isInComment(x,O);if(fe){switch(fe.kind){case 2:f.push.apply(f,ke(j,{end:fe.end,pos:fe.pos+1},!1));break;case 3:f.push.apply(f,Le(j,{end:fe.end,pos:fe.pos+1},!1))}O=fe.end+1}}return f}function jt({openingElement:j,closingElement:T,parent:x}){return!Ti(j.tagName,T.tagName)||Q0(x)&&Ti(j.tagName,x.openingElement.tagName)&&jt(x)}function qr({closingFragment:j,parent:T}){return!!(j.flags&262144)||dl(T)&&qr(T)}function na(j,T,x){let f=p.getCurrentSourceFile(j),$=ts_formatting_exports.getRangeOfEnclosingComment(f,T);return $&&(!x||$.kind===3)?createTextSpanFromRange($):void 0}function Cn(j,T){K();let x=G(j);v.throwIfCancellationRequested();let f=x.text,$=[];if(T.length>0&&!be(x.fileName)){let he=O(),Re;for(;Re=he.exec(f);){v.throwIfCancellationRequested();let we=3;N.assert(Re.length===T.length+we);let et=Re[1],Ye=Re.index+et.length;if(!isInComment(x,Ye))continue;let Ke;for(let qt=0;qt"("+Q(Te.text)+")").join("|")+")",Ke=/(?:$|\*\/)/.source,It=/(?:.*?)/.source,qt="("+Ye+It+")",_r=et+qt+Ke;return new RegExp(_r,"gim")}function fe(he){return he>=97&&he<=122||he>=65&&he<=90||he>=48&&he<=57}function be(he){return eo(he,"/node_modules/")}}function zn(j,T,x){return K(),ts_Rename_exports.getRenameInfo(d,G(j),T,x||{})}function Pi(j,T,x,f,$,Q){let[O,fe]=typeof T=="number"?[T,void 0]:[T.pos,T.end];return{file:j,startPosition:O,endPosition:fe,program:ue(),host:e,formatContext:ts_formatting_exports.getFormatContext(f,e),cancellationToken:v,preferences:x,triggerReason:$,kind:Q}}function ia(j,T,x){return{file:j,program:ue(),host:e,span:T,preferences:x,cancellationToken:v}}function Wn(j,T){return ts_SmartSelectionRange_exports.getSmartSelectionRange(T,p.getCurrentSourceFile(j))}function En(j,T,x=emptyOptions,f,$,Q){K();let O=G(j);return ts_refactor_exports.getApplicableRefactors(Pi(O,T,x,emptyOptions,f,$),Q)}function Ii(j,T,x=emptyOptions){K();let f=G(j),$=N.checkDefined(d.getSourceFiles()),Q=rl(j),O=Za($,be=>!(d!=null&&d.isSourceFileFromExternalLibrary(f))&&!(f===G(be.fileName)||Q===".ts"&&rl(be.fileName)===".d.ts"||Q===".d.ts"&&Fr(T_(be.fileName),"lib.")&&rl(be.fileName)===".d.ts")&&Q===rl(be.fileName)?be.fileName:void 0);return{newFileName:createNewFileName(f,d,Pi(f,T,x,emptyOptions),e),files:O}}function aa(j,T,x,f,$,Q=emptyOptions,O){K();let fe=G(j);return ts_refactor_exports.getEditsForRefactor(Pi(fe,x,Q,T),f,$,O)}function Vn(j,T){return T===0?{line:0,character:0}:L.toLineColumnOffset(j,T)}function Sr(j,T){K();let x=ts_CallHierarchy_exports.resolveCallHierarchyDeclaration(d,getTouchingPropertyName(G(j),T));return x&&mapOneOrMany(x,f=>ts_CallHierarchy_exports.createCallHierarchyItem(d,f))}function Je(j,T){K();let x=G(j),f=firstOrOnly(ts_CallHierarchy_exports.resolveCallHierarchyDeclaration(d,T===0?x:getTouchingPropertyName(x,T)));return f?ts_CallHierarchy_exports.getIncomingCalls(d,f,v):[]}function oa(j,T){K();let x=G(j),f=firstOrOnly(ts_CallHierarchy_exports.resolveCallHierarchyDeclaration(d,T===0?x:getTouchingPropertyName(x,T)));return f?ts_CallHierarchy_exports.getOutgoingCalls(d,f):[]}function Mt(j,T,x=emptyOptions){K();let f=G(j);return ts_InlayHints_exports.provideInlayHints(ia(f,T,x))}let Lr={dispose:Ce,cleanupSemanticCache:ae,getSyntacticDiagnostics:Ze,getSemanticDiagnostics:qe,getSuggestionDiagnostics:rt,getCompilerOptionsDiagnostics:it,getSyntacticClassifications:at,getSemanticClassifications:pt,getEncodedSyntacticClassifications:er,getEncodedSemanticClassifications:Mr,getCompletionsAtPosition:Ir,getCompletionEntryDetails:ar,getCompletionEntrySymbol:ci,getSignatureHelpItems:Ut,getQuickInfoAtPosition:or,getDefinitionAtPosition:Gt,getDefinitionAndBoundSpan:Ur,getImplementationAtPosition:Tn,getTypeDefinitionAtPosition:Xt,getReferencesAtPosition:$t,findReferences:xn,getFileReferences:Tr,getDocumentHighlights:Sn,getNameOrDottedNameSpan:ht,getBreakpointStatementAtPosition:wn,getNavigateToItems:vt,getRenameInfo:zn,getSmartSelectionRange:Wn,findRenameLocations:sr,getNavigationBarItems:Tt,getNavigationTree:Or,getOutliningSpans:Qt,getTodoComments:Cn,getBraceMatchingAtPosition:Bn,getIndentationAtPosition:Un,getFormattingEditsForRange:rn,getFormattingEditsForDocument:nn,getFormattingEditsAfterKeystroke:Di,getDocCommentTemplateAtPosition:nt,isValidBraceCompletionAtPosition:z,getJsxClosingTagAtPosition:X,getLinkedEditingRangeAtPosition:ee,getSpanOfEnclosingComment:na,getCodeFixesAtPosition:qn,getCombinedCodeFix:Ae,applyCodeActionCommand:ge,organizeImports:q,getEditsForFileRename:oe,getEmitOutput:ct,getNonBoundSourceFile:fr,getProgram:ue,getCurrentProgram:()=>d,getAutoImportProvider:Y,updateIsDefinitionOfReferencedSymbols:B,getApplicableRefactors:En,getEditsForRefactor:aa,getMoveToRefactoringFileSuggestions:Ii,toLineColumnOffset:Vn,getSourceMapper:()=>L,clearSourceMapperCache:()=>L.clearCache(),prepareCallHierarchy:Sr,provideCallHierarchyIncomingCalls:Je,provideCallHierarchyOutgoingCalls:oa,toggleLineComment:ke,toggleMultilineComment:Le,commentSelection:lt,uncommentSelection:yt,provideInlayHints:Mt,getSupportedCodeFixes:_7};switch(_){case 0:break;case 1:rg.forEach(j=>Lr[j]=()=>{throw new Error(`LanguageService Operation: ${j} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:x7.forEach(j=>Lr[j]=()=>{throw new Error(`LanguageService Operation: ${j} not allowed in LanguageServiceMode.Syntactic`)});break;default:N.assertNever(_)}return Lr}function eB(e){return e.nameTable||tB(e),e.nameTable}function tB(e){let t=e.nameTable=new Map;e.forEachChild(function r(a){if(Ee(a)&&!isTagName(a)&&a.escapedText||Qi(a)&&rB(a)){let _=LT(a);t.set(_,t.get(_)===void 0?a.pos:-1)}else if(jr(a)){let _=a.escapedText;t.set(_,t.get(_)===void 0?a.pos:-1)}if(Bt(a,r),Wi(a))for(let _ of a.jsDoc)Bt(_,r)})}function rB(e){return xT(e)||e.parent.kind===283||aB(e)||wT(e)}function u7(e){let t=nB(e);return t&&(uo(t.parent)||D6(t.parent))?t:void 0}function nB(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===167)return b0(e.parent.parent)?e.parent.parent:void 0;case 80:return b0(e.parent)&&(e.parent.parent.kind===210||e.parent.parent.kind===292)&&e.parent.name===e?e.parent:void 0}}function iB(e,t){let r=u7(e);if(r){let a=t.getContextualType(r.parent),_=a&&p7(r,t,a,!1);if(_&&_.length===1)return og(_)}return t.getSymbolAtLocation(e)}function p7(e,t,r,a){let _=getNameFromPropertyName(e.name);if(!_)return $e;if(!r.isUnion()){let d=r.getProperty(_);return d?[d]:$e}let p=Za(r.types,d=>(uo(e.parent)||D6(e.parent))&&t.isTypeInvalidDueToUnionDiscriminant(d,e.parent)?void 0:d.getProperty(_));if(a&&(p.length===0||p.length===r.types.length)){let d=r.getProperty(_);if(d)return[d]}return p.length===0?Za(r.types,d=>d.getProperty(_)):p}function aB(e){return e&&e.parent&&e.parent.kind===212&&e.parent.argumentExpression===e}function oB(e){if(f0)return hr($i(pn(f0.getExecutingFilePath())),v4(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var f7,Od,Pf,d7,W6,Md,Ld,m7,h7,y7,g7,b7,v7,T7,S7,rg,x7,sB=Vt({"src/services/services.ts"(){"use strict";w7(),t7(),r7(),n7(),e7(),XF(),f7="0.8",Od=class{constructor(e,t,r){this.pos=t,this.end=r,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}assertHasRealPosition(e){N.assert(!Oa(this.pos)&&!Oa(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return ri(this)}getStart(e,t){return this.assertHasRealPosition(),Go(this,e,t)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=$F(this,e))}getFirstToken(e){this.assertHasRealPosition();let t=this.getChildren(e);if(!t.length)return;let r=Yr(t,a=>a.kind<316||a.kind>357);return r.kind<166?r:r.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let t=this.getChildren(e),r=wi(t);if(r)return r.kind<166?r:r.getLastToken(e)}forEachChild(e,t){return Bt(this,e,t)}},Pf=class{constructor(e,t){this.pos=e,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}getSourceFile(){return ri(this)}getStart(e,t){return Go(this,e,t)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(e){return this.getChildren()[e]}getChildren(){return this.kind===1&&this.jsDoc||$e}getFirstToken(){}getLastToken(){}forEachChild(){}},d7=class{constructor(e,t){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=t}getFlags(){return this.flags}get name(){return hd(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=$e,!this.declarations&&T0(this)&&this.links.target&&T0(this.links.target)&&this.links.target.links.tupleLabelDeclaration){let t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=Kc([t],e)}else this.documentationComment=Kc(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(el(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=Kc($r(this.declarations,el),t)),Ka(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(Zc(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=Kc($r(this.declarations,Zc),t)),Ka(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=Df(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(el(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=Df($r(this.declarations,el),t)),Ka(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(Zc(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=Df($r(this.declarations,Zc),t)),Ka(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},W6=class extends Pf{constructor(e,t,r){super(t,r),this.kind=e}},Md=class extends Pf{constructor(e,t,r){super(t,r),this.kind=80}get text(){return Ot(this)}},Md.prototype.kind=80,Ld=class extends Pf{constructor(e,t,r){super(t,r),this.kind=81}get text(){return Ot(this)}},Ld.prototype.kind=81,m7=class{constructor(e,t){this.checker=e,this.flags=t}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(this.flags&1048576)}isIntersection(){return!!(this.flags&2097152)}isUnionOrIntersection(){return!!(this.flags&3145728)}isLiteral(){return!!(this.flags&2432)}isStringLiteral(){return!!(this.flags&128)}isNumberLiteral(){return!!(this.flags&256)}isTypeParameter(){return!!(this.flags&262144)}isClassOrInterface(){return!!(jf(this)&3)}isClass(){return!!(jf(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(jf(this)&4)return this.checker.getTypeArguments(this)}},h7=class{constructor(e,t){this.checker=e,this.flags=t}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){let t=this.checker.getParameterType(this,e);if(t.isIndexType()&&ax(t.type)){let r=t.type.getConstraint();if(r)return this.checker.getIndexType(r)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=Kc(Qf(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=Df(Qf(this.declaration),this.checker))}},y7=class extends Od{constructor(e,t,r){super(e,t,r),this.kind=312}update(e,t){return q6(this,e,t)}getLineAndCharacterOfPosition(e){return to(this,e)}getLineStarts(){return Ia(this)}getPositionOfLineAndCharacter(e,t,r){return Tg(Ia(this),e,t,this.text,r)}getLineEndOfPosition(e){let{line:t}=this.getLineAndCharacterOfPosition(e),r=this.getLineStarts(),a;t+1>=r.length&&(a=this.getEnd()),a||(a=r[t+1]-1);let _=this.getFullText();return _[a]===` +`&&_[a-1]==="\r"?a-1:a}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=Fd();return this.forEachChild(_),e;function t(p){let d=a(p);d&&e.add(d,p)}function r(p){let d=e.get(p);return d||e.set(p,d=[]),d}function a(p){let d=Kd(p);return d&&(ao(d)&&Br(d.expression)?d.expression.name.text:zl(d)?getNameFromPropertyName(d):void 0)}function _(p){switch(p.kind){case 262:case 218:case 174:case 173:let d=p,h=a(d);if(h){let y=r(h),C=wi(y);C&&d.parent===C.parent&&d.symbol===C.symbol?d.body&&!C.body&&(y[y.length-1]=d):y.push(d)}Bt(p,_);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(p),Bt(p,_);break;case 169:if(!gr(p,16476))break;case 260:case 208:{let y=p;if(am(y.name)){Bt(y.name,_);break}y.initializer&&_(y.initializer)}case 306:case 172:case 171:t(p);break;case 278:let l=p;l.exportClause&&(f8(l.exportClause)?yr(l.exportClause.elements,_):_(l.exportClause.name));break;case 272:let v=p.importClause;v&&(v.name&&t(v.name),v.namedBindings&&(v.namedBindings.kind===274?t(v.namedBindings):yr(v.namedBindings.elements,_)));break;case 226:Ja(p)!==0&&t(p);default:Bt(p,_)}}}},g7=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}getLineAndCharacterOfPosition(e){return to(this,e)}},b7=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,r,a,_,p,d,h,l;let v=this.host.getScriptSnapshot(e);if(!v)throw new Error("Could not find file: '"+e+"'.");let y=getScriptKind(e,this.host),C=this.host.getScriptVersion(e),S;if(this.currentFileName!==e){let k={languageVersion:99,impliedNodeFormat:getImpliedNodeFormatForFile(xi(e,this.host.getCurrentDirectory(),((a=(r=(t=this.host).getCompilerHost)==null?void 0:r.call(t))==null?void 0:a.getCanonicalFileName)||WT(this.host)),(l=(h=(d=(p=(_=this.host).getCompilerHost)==null?void 0:p.call(_))==null?void 0:d.getModuleResolutionCache)==null?void 0:h.call(d))==null?void 0:l.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:JS(this.host.getCompilationSettings())};S=z6(e,v,k,C,!0,y)}else if(this.currentFileVersion!==C){let k=v.getChangeRange(this.currentFileScriptSnapshot);S=l7(this.currentSourceFile,v,C,k)}return S&&(this.currentFileVersion=C,this.currentFileName=e,this.currentFileScriptSnapshot=v,this.currentSourceFile=S),this.currentSourceFile}},v7={isCancellationRequested:$f,throwIfCancellationRequested:Rn},T7=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=xa)==null||e.instant(xa.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new ad}},S7=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){let e=Sa();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=xa)==null||e.instant(xa.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new ad}},rg=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],x7=[...rg,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],PS(YF())}}),_B=()=>{},cB=()=>{},lB=()=>{},uB=()=>{},pB=()=>{},fB=()=>{},dB=()=>{},mB=()=>{},hB=()=>{},yB=()=>{},gB=()=>{},bB=()=>{},vB=()=>{},TB=()=>{},SB=()=>{},xB=()=>{},wB=()=>{},CB=()=>{},EB=()=>{},w7=Vt({"src/services/_namespaces/ts.ts"(){"use strict";Dr(),K8(),jF(),Z8(),FF(),e7(),BF(),UF(),qF(),zF(),WF(),VF(),HF(),GF(),sB(),_B(),cB(),lB(),uB(),pB(),fB(),dB(),mB(),hB(),yB(),gB(),t7(),r7(),bB(),vB(),n7(),TB(),SB(),xB(),wB(),CB(),EB()}}),AB=()=>{},C7={};I5(C7,{ANONYMOUS:()=>ANONYMOUS,AccessFlags:()=>Ly,AssertionLevel:()=>ay,AssignmentDeclarationKind:()=>Wy,AssignmentKind:()=>B0,Associativity:()=>q0,BreakpointResolver:()=>ts_BreakpointResolver_exports,BuilderFileEmit:()=>BuilderFileEmit,BuilderProgramKind:()=>BuilderProgramKind,BuilderState:()=>BuilderState,BundleFileSectionKind:()=>l0,CallHierarchy:()=>ts_CallHierarchy_exports,CharacterCodes:()=>n0,CheckFlags:()=>Py,CheckMode:()=>CheckMode,ClassificationType:()=>ClassificationType,ClassificationTypeNames:()=>ClassificationTypeNames,CommentDirectiveType:()=>fy,Comparison:()=>Zh,CompletionInfoFlags:()=>CompletionInfoFlags,CompletionTriggerKind:()=>CompletionTriggerKind,Completions:()=>ts_Completions_exports,ConfigFileProgramReloadLevel:()=>ConfigFileProgramReloadLevel,ContainerFlags:()=>ContainerFlags,ContextFlags:()=>Ty,CoreServicesShimHostAdapter:()=>CoreServicesShimHostAdapter,Debug:()=>N,DiagnosticCategory:()=>ld,Diagnostics:()=>U,DocumentHighlights:()=>DocumentHighlights,ElementFlags:()=>My,EmitFlags:()=>dd,EmitHint:()=>s0,EmitOnly:()=>hy,EndOfLineState:()=>EndOfLineState,EnumKind:()=>Dy,ExitStatus:()=>gy,ExportKind:()=>ExportKind,Extension:()=>i0,ExternalEmitHelpers:()=>o0,FileIncludeKind:()=>dy,FilePreprocessingDiagnosticsKind:()=>my,FileSystemEntryKind:()=>FileSystemEntryKind,FileWatcherEventKind:()=>FileWatcherEventKind,FindAllReferences:()=>ts_FindAllReferences_exports,FlattenLevel:()=>FlattenLevel,FlowFlags:()=>bl,ForegroundColorEscapeSequences:()=>ForegroundColorEscapeSequences,FunctionFlags:()=>U0,GeneratedIdentifierFlags:()=>uy,GetLiteralTextFlags:()=>F0,GoToDefinition:()=>ts_GoToDefinition_exports,HighlightSpanKind:()=>HighlightSpanKind,IdentifierNameMap:()=>IdentifierNameMap,IdentifierNameMultiMap:()=>IdentifierNameMultiMap,ImportKind:()=>ImportKind,ImportsNotUsedAsValues:()=>Ky,IndentStyle:()=>IndentStyle,IndexFlags:()=>Jy,IndexKind:()=>Fy,InferenceFlags:()=>qy,InferencePriority:()=>Uy,InlayHintKind:()=>InlayHintKind,InlayHints:()=>ts_InlayHints_exports,InternalEmitFlags:()=>a0,InternalSymbolName:()=>Iy,InvalidatedProjectKind:()=>InvalidatedProjectKind,JsDoc:()=>ts_JsDoc_exports,JsTyping:()=>ts_JsTyping_exports,JsxEmit:()=>Yy,JsxFlags:()=>ly,JsxReferenceKind:()=>Ry,LanguageServiceMode:()=>LanguageServiceMode,LanguageServiceShimHostAdapter:()=>LanguageServiceShimHostAdapter,LanguageVariant:()=>t0,LexicalEnvironmentFlags:()=>c0,ListFormat:()=>u0,LogLevel:()=>sy,MemberOverrideStatus:()=>by,ModifierFlags:()=>nd,ModuleDetectionKind:()=>Hy,ModuleInstanceState:()=>ModuleInstanceState,ModuleKind:()=>Qy,ModuleResolutionKind:()=>Vy,ModuleSpecifierEnding:()=>G0,NavigateTo:()=>ts_NavigateTo_exports,NavigationBar:()=>ts_NavigationBar_exports,NewLineKind:()=>Zy,NodeBuilderFlags:()=>Sy,NodeCheckFlags:()=>Ny,NodeFactoryFlags:()=>X0,NodeFlags:()=>rd,NodeResolutionFeatures:()=>NodeResolutionFeatures,ObjectFlags:()=>_d,OperationCanceledException:()=>ad,OperatorPrecedence:()=>z0,OrganizeImports:()=>ts_OrganizeImports_exports,OrganizeImportsMode:()=>OrganizeImportsMode,OuterExpressionKinds:()=>_0,OutliningElementsCollector:()=>ts_OutliningElementsCollector_exports,OutliningSpanKind:()=>OutliningSpanKind,OutputFileType:()=>OutputFileType,PackageJsonAutoImportPreference:()=>PackageJsonAutoImportPreference,PackageJsonDependencyGroup:()=>PackageJsonDependencyGroup,PatternMatchKind:()=>PatternMatchKind,PollingInterval:()=>PollingInterval,PollingWatchKind:()=>$y,PragmaKindFlags:()=>p0,PrivateIdentifierKind:()=>PrivateIdentifierKind,ProcessLevel:()=>ProcessLevel,QuotePreference:()=>QuotePreference,RelationComparisonResult:()=>id,Rename:()=>ts_Rename_exports,ScriptElementKind:()=>ScriptElementKind,ScriptElementKindModifier:()=>ScriptElementKindModifier,ScriptKind:()=>ud,ScriptSnapshot:()=>ScriptSnapshot,ScriptTarget:()=>e0,SemanticClassificationFormat:()=>SemanticClassificationFormat,SemanticMeaning:()=>SemanticMeaning,SemicolonPreference:()=>SemicolonPreference,SignatureCheckMode:()=>SignatureCheckMode,SignatureFlags:()=>cd,SignatureHelp:()=>ts_SignatureHelp_exports,SignatureKind:()=>jy,SmartSelectionRange:()=>ts_SmartSelectionRange_exports,SnippetKind:()=>fd,SortKind:()=>ny,StructureIsReused:()=>yy,SymbolAccessibility:()=>Cy,SymbolDisplay:()=>ts_SymbolDisplay_exports,SymbolDisplayPartKind:()=>SymbolDisplayPartKind,SymbolFlags:()=>od,SymbolFormatFlags:()=>wy,SyntaxKind:()=>td,SyntheticSymbolKind:()=>Ey,Ternary:()=>zy,ThrottledCancellationToken:()=>S7,TokenClass:()=>TokenClass,TokenFlags:()=>py,TransformFlags:()=>pd,TypeFacts:()=>TypeFacts,TypeFlags:()=>sd,TypeFormatFlags:()=>xy,TypeMapKind:()=>By,TypePredicateKind:()=>Ay,TypeReferenceSerializationKind:()=>ky,TypeScriptServicesFactory:()=>TypeScriptServicesFactory,UnionReduction:()=>vy,UpToDateStatusType:()=>UpToDateStatusType,VarianceFlags:()=>Oy,Version:()=>Version,VersionRange:()=>VersionRange,WatchDirectoryFlags:()=>r0,WatchDirectoryKind:()=>Xy,WatchFileKind:()=>Gy,WatchLogLevel:()=>WatchLogLevel,WatchType:()=>WatchType,accessPrivateIdentifier:()=>accessPrivateIdentifier,addDisposableResourceHelper:()=>addDisposableResourceHelper,addEmitFlags:()=>addEmitFlags,addEmitHelper:()=>addEmitHelper,addEmitHelpers:()=>addEmitHelpers,addInternalEmitFlags:()=>addInternalEmitFlags,addNodeFactoryPatcher:()=>EL,addObjectAllocatorPatcher:()=>zO,addRange:()=>Rr,addRelatedInfo:()=>nl,addSyntheticLeadingComment:()=>addSyntheticLeadingComment,addSyntheticTrailingComment:()=>addSyntheticTrailingComment,addToSeen:()=>PO,advancedAsyncSuperHelper:()=>advancedAsyncSuperHelper,affectsDeclarationPathOptionDeclarations:()=>affectsDeclarationPathOptionDeclarations,affectsEmitOptionDeclarations:()=>affectsEmitOptionDeclarations,allKeysStartWithDot:()=>allKeysStartWithDot,altDirectorySeparator:()=>vg,and:()=>rE,append:()=>xt,appendIfUnique:()=>wv,arrayFrom:()=>jd,arrayIsEqualTo:()=>sC,arrayIsHomogeneous:()=>QM,arrayIsSorted:()=>aC,arrayOf:()=>TC,arrayReverseIterator:()=>uC,arrayToMap:()=>xC,arrayToMultiMap:()=>Dv,arrayToNumericMap:()=>wC,arraysEqual:()=>gv,assertType:()=>iE,assign:()=>SC,assignHelper:()=>assignHelper,asyncDelegator:()=>asyncDelegator,asyncGeneratorHelper:()=>asyncGeneratorHelper,asyncSuperHelper:()=>asyncSuperHelper,asyncValues:()=>asyncValues,attachFileToDiagnostics:()=>$a,awaitHelper:()=>awaitHelper,awaiterHelper:()=>awaiterHelper,base64decode:()=>KN,base64encode:()=>YN,binarySearch:()=>Ml,binarySearchKey:()=>Av,bindSourceFile:()=>bindSourceFile,breakIntoCharacterSpans:()=>breakIntoCharacterSpans,breakIntoWordSpans:()=>breakIntoWordSpans,buildLinkParts:()=>buildLinkParts,buildOpts:()=>buildOpts,buildOverload:()=>buildOverload,bundlerModuleNameResolver:()=>bundlerModuleNameResolver,canBeConvertedToAsync:()=>canBeConvertedToAsync,canHaveDecorators:()=>U8,canHaveExportModifier:()=>lL,canHaveFlowNode:()=>bI,canHaveIllegalDecorators:()=>zR,canHaveIllegalModifiers:()=>WR,canHaveIllegalType:()=>qR,canHaveIllegalTypeParameters:()=>j8,canHaveJSDoc:()=>mm,canHaveLocals:()=>Tk,canHaveModifiers:()=>q_,canHaveSymbol:()=>vk,canJsonReportNoInputFiles:()=>canJsonReportNoInputFiles,canProduceDiagnostics:()=>canProduceDiagnostics,canUsePropertyAccess:()=>uL,canWatchAffectingLocation:()=>canWatchAffectingLocation,canWatchAtTypes:()=>canWatchAtTypes,canWatchDirectoryOrFile:()=>canWatchDirectoryOrFile,cartesianProduct:()=>oE,cast:()=>gi,chainBundle:()=>chainBundle,chainDiagnosticMessages:()=>tl,changeAnyExtension:()=>Qv,changeCompilerHostLikeToUseCache:()=>changeCompilerHostLikeToUseCache,changeExtension:()=>OM,changesAffectModuleResolution:()=>Uk,changesAffectingProgramStructure:()=>qk,childIsDecorated:()=>s2,classElementOrClassElementParameterIsDecorated:()=>qP,classHasClassThisAssignment:()=>classHasClassThisAssignment,classHasDeclaredOrExplicitlyAssignedName:()=>classHasDeclaredOrExplicitlyAssignedName,classHasExplicitlyAssignedName:()=>classHasExplicitlyAssignedName,classOrConstructorParameterIsDecorated:()=>UP,classPrivateFieldGetHelper:()=>classPrivateFieldGetHelper,classPrivateFieldInHelper:()=>classPrivateFieldInHelper,classPrivateFieldSetHelper:()=>classPrivateFieldSetHelper,classicNameResolver:()=>classicNameResolver,classifier:()=>ts_classifier_exports,cleanExtendedConfigCache:()=>cleanExtendedConfigCache,clear:()=>U5,clearMap:()=>wO,clearSharedExtendedConfigFileWatcher:()=>clearSharedExtendedConfigFileWatcher,climbPastPropertyAccess:()=>climbPastPropertyAccess,climbPastPropertyOrElementAccess:()=>climbPastPropertyOrElementAccess,clone:()=>AC,cloneCompilerOptions:()=>cloneCompilerOptions,closeFileWatcher:()=>yO,closeFileWatcherOf:()=>closeFileWatcherOf,codefix:()=>ts_codefix_exports,collapseTextChangeRangesAcrossMultipleVersions:()=>rA,collectExternalModuleInfo:()=>collectExternalModuleInfo,combine:()=>lC,combinePaths:()=>hr,commentPragmas:()=>zd,commonOptionsWithBuild:()=>commonOptionsWithBuild,commonPackageFolders:()=>V0,compact:()=>_C,compareBooleans:()=>HC,compareDataObjects:()=>CS,compareDiagnostics:()=>F2,compareDiagnosticsSkipRelatedInformation:()=>wd,compareEmitHelpers:()=>compareEmitHelpers,compareNumberOfDirectorySeparators:()=>NM,comparePaths:()=>NE,comparePathsCaseInsensitive:()=>IE,comparePathsCaseSensitive:()=>PE,comparePatternKeys:()=>comparePatternKeys,compareProperties:()=>VC,compareStringsCaseInsensitive:()=>Bd,compareStringsCaseInsensitiveEslintCompatible:()=>qC,compareStringsCaseSensitive:()=>Ci,compareStringsCaseSensitiveUI:()=>WC,compareTextSpans:()=>BC,compareValues:()=>kr,compileOnSaveCommandLineOption:()=>compileOnSaveCommandLineOption,compilerOptionsAffectDeclarationPath:()=>fM,compilerOptionsAffectEmit:()=>pM,compilerOptionsAffectSemanticDiagnostics:()=>uM,compilerOptionsDidYouMeanDiagnostics:()=>compilerOptionsDidYouMeanDiagnostics,compilerOptionsIndicateEsModules:()=>compilerOptionsIndicateEsModules,compose:()=>FC,computeCommonSourceDirectoryOfFilenames:()=>computeCommonSourceDirectoryOfFilenames,computeLineAndCharacterOfPosition:()=>Sg,computeLineOfPosition:()=>__,computeLineStarts:()=>Hd,computePositionOfLineAndCharacter:()=>Tg,computeSignature:()=>computeSignature,computeSignatureWithDiagnostics:()=>computeSignatureWithDiagnostics,computeSuggestionDiagnostics:()=>computeSuggestionDiagnostics,concatenate:()=>y_,concatenateDiagnosticMessageChains:()=>GO,consumesNodeCoreModules:()=>consumesNodeCoreModules,contains:()=>es,containsIgnoredPath:()=>rx,containsObjectRestOrSpread:()=>U6,containsParseError:()=>xl,containsPath:()=>Yv,convertCompilerOptionsForTelemetry:()=>convertCompilerOptionsForTelemetry,convertCompilerOptionsFromJson:()=>convertCompilerOptionsFromJson,convertJsonOption:()=>convertJsonOption,convertToBase64:()=>yS,convertToJson:()=>convertToJson,convertToObject:()=>convertToObject,convertToOptionsWithAbsolutePaths:()=>convertToOptionsWithAbsolutePaths,convertToRelativePath:()=>ME,convertToTSConfig:()=>convertToTSConfig,convertTypeAcquisitionFromJson:()=>convertTypeAcquisitionFromJson,copyComments:()=>copyComments,copyEntries:()=>Hk,copyLeadingComments:()=>copyLeadingComments,copyProperties:()=>DC,copyTrailingAsLeadingComments:()=>copyTrailingAsLeadingComments,copyTrailingComments:()=>copyTrailingComments,couldStartTrivia:()=>qE,countWhere:()=>F5,createAbstractBuilder:()=>createAbstractBuilder,createAccessorPropertyBackingField:()=>Sj,createAccessorPropertyGetRedirector:()=>xj,createAccessorPropertySetRedirector:()=>wj,createBaseNodeFactory:()=>Mx,createBinaryExpressionTrampoline:()=>mj,createBindingHelper:()=>createBindingHelper,createBuildInfo:()=>createBuildInfo,createBuilderProgram:()=>createBuilderProgram,createBuilderProgramUsingProgramBuildInfo:()=>createBuilderProgramUsingProgramBuildInfo,createBuilderStatusReporter:()=>createBuilderStatusReporter,createCacheWithRedirects:()=>createCacheWithRedirects,createCacheableExportInfoMap:()=>createCacheableExportInfoMap,createCachedDirectoryStructureHost:()=>createCachedDirectoryStructureHost,createClassNamedEvaluationHelperBlock:()=>createClassNamedEvaluationHelperBlock,createClassThisAssignmentBlock:()=>createClassThisAssignmentBlock,createClassifier:()=>createClassifier,createCommentDirectivesMap:()=>yD,createCompilerDiagnostic:()=>fl,createCompilerDiagnosticForInvalidCustomType:()=>createCompilerDiagnosticForInvalidCustomType,createCompilerDiagnosticFromMessageChain:()=>HO,createCompilerHost:()=>createCompilerHost,createCompilerHostFromProgramHost:()=>createCompilerHostFromProgramHost,createCompilerHostWorker:()=>createCompilerHostWorker,createDetachedDiagnostic:()=>Ao,createDiagnosticCollection:()=>nN,createDiagnosticForFileFromMessageChain:()=>$D,createDiagnosticForNode:()=>VD,createDiagnosticForNodeArray:()=>HD,createDiagnosticForNodeArrayFromMessageChain:()=>XD,createDiagnosticForNodeFromMessageChain:()=>GD,createDiagnosticForNodeInSourceFile:()=>z3,createDiagnosticForRange:()=>YD,createDiagnosticMessageChainFromDiagnostic:()=>QD,createDiagnosticReporter:()=>createDiagnosticReporter,createDocumentPositionMapper:()=>createDocumentPositionMapper,createDocumentRegistry:()=>createDocumentRegistry,createDocumentRegistryInternal:()=>createDocumentRegistryInternal,createEmitAndSemanticDiagnosticsBuilderProgram:()=>createEmitAndSemanticDiagnosticsBuilderProgram,createEmitHelperFactory:()=>createEmitHelperFactory,createEmptyExports:()=>hR,createExpressionForJsxElement:()=>gR,createExpressionForJsxFragment:()=>bR,createExpressionForObjectLiteralElementLike:()=>ER,createExpressionForPropertyName:()=>A8,createExpressionFromEntityName:()=>E8,createExternalHelpersImportDeclarationIfNeeded:()=>LR,createFileDiagnostic:()=>j2,createFileDiagnosticFromMessageChain:()=>Kg,createForOfBindingStatement:()=>vR,createGetCanonicalFileName:()=>Ud,createGetSourceFile:()=>createGetSourceFile,createGetSymbolAccessibilityDiagnosticForNode:()=>createGetSymbolAccessibilityDiagnosticForNode,createGetSymbolAccessibilityDiagnosticForNodeName:()=>createGetSymbolAccessibilityDiagnosticForNodeName,createGetSymbolWalker:()=>createGetSymbolWalker,createIncrementalCompilerHost:()=>createIncrementalCompilerHost,createIncrementalProgram:()=>createIncrementalProgram,createInputFiles:()=>ML,createInputFilesWithFilePaths:()=>Rx,createInputFilesWithFileTexts:()=>jx,createJsxFactoryExpression:()=>C8,createLanguageService:()=>ZF,createLanguageServiceSourceFile:()=>z6,createMemberAccessForPropertyName:()=>Jm,createModeAwareCache:()=>createModeAwareCache,createModeAwareCacheKey:()=>createModeAwareCacheKey,createModuleNotFoundChain:()=>eD,createModuleResolutionCache:()=>createModuleResolutionCache,createModuleResolutionLoader:()=>createModuleResolutionLoader,createModuleSpecifierResolutionHost:()=>createModuleSpecifierResolutionHost,createMultiMap:()=>Fd,createNodeConverters:()=>Lx,createNodeFactory:()=>kd,createOptionNameMap:()=>createOptionNameMap,createOverload:()=>createOverload,createPackageJsonImportFilter:()=>createPackageJsonImportFilter,createPackageJsonInfo:()=>createPackageJsonInfo,createParenthesizerRules:()=>createParenthesizerRules,createPatternMatcher:()=>createPatternMatcher,createPrependNodes:()=>createPrependNodes,createPrinter:()=>createPrinter,createPrinterWithDefaults:()=>createPrinterWithDefaults,createPrinterWithRemoveComments:()=>createPrinterWithRemoveComments,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>createPrinterWithRemoveCommentsNeverAsciiEscape,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>createPrinterWithRemoveCommentsOmitTrailingSemicolon,createProgram:()=>createProgram,createProgramHost:()=>createProgramHost,createPropertyNameNodeForIdentifierOrLiteral:()=>sL,createQueue:()=>NC,createRange:()=>Sm,createRedirectedBuilderProgram:()=>createRedirectedBuilderProgram,createResolutionCache:()=>createResolutionCache,createRuntimeTypeSerializer:()=>createRuntimeTypeSerializer,createScanner:()=>ns,createSemanticDiagnosticsBuilderProgram:()=>createSemanticDiagnosticsBuilderProgram,createSet:()=>OC,createSolutionBuilder:()=>createSolutionBuilder,createSolutionBuilderHost:()=>createSolutionBuilderHost,createSolutionBuilderWithWatch:()=>createSolutionBuilderWithWatch,createSolutionBuilderWithWatchHost:()=>createSolutionBuilderWithWatchHost,createSortedArray:()=>iC,createSourceFile:()=>V8,createSourceMapGenerator:()=>createSourceMapGenerator,createSourceMapSource:()=>LL,createSuperAccessVariableStatement:()=>createSuperAccessVariableStatement,createSymbolTable:()=>Fk,createSymlinkCache:()=>gM,createSystemWatchFunctions:()=>createSystemWatchFunctions,createTextChange:()=>createTextChange,createTextChangeFromStartLength:()=>createTextChangeFromStartLength,createTextChangeRange:()=>$d,createTextRangeFromNode:()=>createTextRangeFromNode,createTextRangeFromSpan:()=>createTextRangeFromSpan,createTextSpan:()=>w_,createTextSpanFromBounds:()=>Hi,createTextSpanFromNode:()=>createTextSpanFromNode,createTextSpanFromRange:()=>createTextSpanFromRange,createTextSpanFromStringLiteralLikeContent:()=>createTextSpanFromStringLiteralLikeContent,createTextWriter:()=>uN,createTokenRange:()=>nO,createTypeChecker:()=>createTypeChecker,createTypeReferenceDirectiveResolutionCache:()=>createTypeReferenceDirectiveResolutionCache,createTypeReferenceResolutionLoader:()=>createTypeReferenceResolutionLoader,createUnparsedSourceFile:()=>IL,createWatchCompilerHost:()=>createWatchCompilerHost2,createWatchCompilerHostOfConfigFile:()=>createWatchCompilerHostOfConfigFile,createWatchCompilerHostOfFilesAndCompilerOptions:()=>createWatchCompilerHostOfFilesAndCompilerOptions,createWatchFactory:()=>createWatchFactory,createWatchHost:()=>createWatchHost,createWatchProgram:()=>createWatchProgram,createWatchStatusReporter:()=>createWatchStatusReporter,createWriteFileMeasuringIO:()=>createWriteFileMeasuringIO,declarationNameToString:()=>q3,decodeMappings:()=>decodeMappings,decodedTextSpanIntersectsWith:()=>Eg,decorateHelper:()=>decorateHelper,deduplicate:()=>Sv,defaultIncludeSpec:()=>defaultIncludeSpec,defaultInitCompilerOptions:()=>defaultInitCompilerOptions,defaultMaximumTruncationLength:()=>px,detectSortCaseSensitivity:()=>oC,diagnosticCategoryName:()=>vE,diagnosticToString:()=>diagnosticToString,directoryProbablyExists:()=>bS,directorySeparator:()=>fn,displayPart:()=>displayPart,displayPartsToString:()=>KF,disposeEmitNodes:()=>disposeEmitNodes,disposeResourcesHelper:()=>disposeResourcesHelper,documentSpansEqual:()=>documentSpansEqual,dumpTracingLegend:()=>dumpTracingLegend,elementAt:()=>zv,elideNodes:()=>gj,emitComments:()=>rS,emitDetachedComments:()=>PN,emitFiles:()=>emitFiles,emitFilesAndReportErrors:()=>emitFilesAndReportErrors,emitFilesAndReportErrorsAndGetExitStatus:()=>emitFilesAndReportErrorsAndGetExitStatus,emitModuleKindIsNonNodeESM:()=>YO,emitNewLineBeforeLeadingCommentOfPosition:()=>DN,emitNewLineBeforeLeadingComments:()=>eS,emitNewLineBeforeLeadingCommentsOfPosition:()=>tS,emitSkippedWithNoDiagnostics:()=>emitSkippedWithNoDiagnostics,emitUsingBuildInfo:()=>emitUsingBuildInfo,emptyArray:()=>$e,emptyFileSystemEntries:()=>Ox,emptyMap:()=>pg,emptyOptions:()=>emptyOptions,emptySet:()=>qv,endsWith:()=>ts,ensurePathIsNonModuleName:()=>hg,ensureScriptKind:()=>zS,ensureTrailingDirectorySeparator:()=>zo,entityNameToString:()=>vi,enumerateInsertsAndDeletes:()=>aE,equalOwnProperties:()=>kv,equateStringsCaseInsensitive:()=>s_,equateStringsCaseSensitive:()=>Ll,equateValues:()=>_o,esDecorateHelper:()=>esDecorateHelper,escapeJsxAttributeString:()=>qT,escapeLeadingUnderscores:()=>Mn,escapeNonAsciiString:()=>Sd,escapeSnippetText:()=>oL,escapeString:()=>Td,every:()=>so,expandPreOrPostfixIncrementOrDecrementExpression:()=>AR,explainFiles:()=>explainFiles,explainIfFileIsRedirectAndImpliedFormat:()=>explainIfFileIsRedirectAndImpliedFormat,exportAssignmentIsAlias:()=>D0,exportStarHelper:()=>exportStarHelper,expressionResultIsUnused:()=>eL,extend:()=>kC,extendsHelper:()=>extendsHelper,extensionFromPath:()=>rl,extensionIsTS:()=>YS,extensionsNotSupportingExtensionlessResolution:()=>Cm,externalHelpersModuleNameText:()=>wm,factory:()=>Ln,fileExtensionIs:()=>La,fileExtensionIsOneOf:()=>ei,fileIncludeReasonToDiagnostics:()=>fileIncludeReasonToDiagnostics,fileShouldUseJavaScriptRequire:()=>fileShouldUseJavaScriptRequire,filter:()=>$r,filterMutate:()=>B5,filterSemanticDiagnostics:()=>filterSemanticDiagnostics,find:()=>Yr,findAncestor:()=>Kr,findBestPatternMatch:()=>jv,findChildOfKind:()=>findChildOfKind,findComputedPropertyNameCacheAssignment:()=>Cj,findConfigFile:()=>findConfigFile,findContainingList:()=>findContainingList,findDiagnosticForNode:()=>findDiagnosticForNode,findFirstNonJsxWhitespaceToken:()=>findFirstNonJsxWhitespaceToken,findIndex:()=>_l,findLast:()=>ig,findLastIndex:()=>R5,findListItemInfo:()=>findListItemInfo,findMap:()=>j5,findModifier:()=>findModifier,findNextToken:()=>findNextToken,findPackageJson:()=>findPackageJson,findPackageJsons:()=>findPackageJsons,findPrecedingMatchingToken:()=>findPrecedingMatchingToken,findPrecedingToken:()=>findPrecedingToken,findSuperStatementIndexPath:()=>findSuperStatementIndexPath,findTokenOnLeftOfPosition:()=>findTokenOnLeftOfPosition,findUseStrictPrologue:()=>D8,first:()=>og,firstDefined:()=>ng,firstDefinedIterator:()=>M5,firstIterator:()=>dC,firstOrOnly:()=>firstOrOnly,firstOrUndefined:()=>g_,firstOrUndefinedIterator:()=>fC,fixupCompilerOptions:()=>fixupCompilerOptions,flatMap:()=>Bo,flatMapIterator:()=>W5,flatMapToMutable:()=>vv,flatten:()=>o_,flattenCommaList:()=>Aj,flattenDestructuringAssignment:()=>flattenDestructuringAssignment,flattenDestructuringBinding:()=>flattenDestructuringBinding,flattenDiagnosticMessageText:()=>flattenDiagnosticMessageText,forEach:()=>yr,forEachAncestor:()=>zk,forEachAncestorDirectory:()=>Zv,forEachChild:()=>Bt,forEachChildRecursively:()=>eg,forEachEmittedFile:()=>forEachEmittedFile,forEachEnclosingBlockScopeContainer:()=>UD,forEachEntry:()=>Wk,forEachExternalModuleToImportFrom:()=>forEachExternalModuleToImportFrom,forEachImportClauseDeclaration:()=>dI,forEachKey:()=>Vk,forEachLeadingCommentRange:()=>zE,forEachNameInAccessChainWalkingLeft:()=>LO,forEachPropertyAssignment:()=>a2,forEachResolvedProjectReference:()=>forEachResolvedProjectReference,forEachReturnStatement:()=>lP,forEachRight:()=>O5,forEachTrailingCommentRange:()=>WE,forEachTsConfigPropArray:()=>Q3,forEachUnique:()=>forEachUnique,forEachYieldExpression:()=>uP,forSomeAncestorDirectory:()=>AO,formatColorAndReset:()=>formatColorAndReset,formatDiagnostic:()=>formatDiagnostic,formatDiagnostics:()=>formatDiagnostics,formatDiagnosticsWithColorAndContext:()=>formatDiagnosticsWithColorAndContext,formatGeneratedName:()=>Id,formatGeneratedNamePart:()=>Z0,formatLocation:()=>formatLocation,formatMessage:()=>VO,formatStringFromArgs:()=>I_,formatting:()=>ts_formatting_exports,fullTripleSlashAMDReferencePathRegEx:()=>K2,fullTripleSlashReferencePathRegEx:()=>Y2,generateDjb2Hash:()=>generateDjb2Hash,generateTSConfig:()=>generateTSConfig,generatorHelper:()=>generatorHelper,getAdjustedReferenceLocation:()=>getAdjustedReferenceLocation,getAdjustedRenameLocation:()=>getAdjustedRenameLocation,getAliasDeclarationFromName:()=>CT,getAllAccessorDeclarations:()=>P2,getAllDecoratorsOfClass:()=>getAllDecoratorsOfClass,getAllDecoratorsOfClassElement:()=>getAllDecoratorsOfClassElement,getAllJSDocTags:()=>$4,getAllJSDocTagsOfKind:()=>bA,getAllKeys:()=>bC,getAllProjectOutputs:()=>getAllProjectOutputs,getAllSuperTypeNodes:()=>PT,getAllUnscopedEmitHelpers:()=>getAllUnscopedEmitHelpers,getAllowJSCompilerOption:()=>FS,getAllowSyntheticDefaultImports:()=>nM,getAncestor:()=>JI,getAnyExtensionFromPath:()=>md,getAreDeclarationMapsEnabled:()=>rM,getAssignedExpandoInitializer:()=>rI,getAssignedName:()=>O4,getAssignedNameOfIdentifier:()=>getAssignedNameOfIdentifier,getAssignmentDeclarationKind:()=>Ja,getAssignmentDeclarationPropertyAccessKind:()=>lT,getAssignmentTargetKind:()=>vT,getAutomaticTypeDirectiveNames:()=>getAutomaticTypeDirectiveNames,getBaseFileName:()=>T_,getBinaryOperatorPrecedence:()=>pl,getBuildInfo:()=>getBuildInfo,getBuildInfoFileVersionMap:()=>getBuildInfoFileVersionMap,getBuildInfoText:()=>getBuildInfoText,getBuildOrderFromAnyBuildOrder:()=>getBuildOrderFromAnyBuildOrder,getBuilderCreationParameters:()=>getBuilderCreationParameters,getBuilderFileEmit:()=>getBuilderFileEmit,getCheckFlags:()=>wS,getClassExtendsHeritageElement:()=>kT,getClassLikeDeclarationOfSymbol:()=>AS,getCombinedLocalAndExportSymbolFlags:()=>vO,getCombinedModifierFlags:()=>Qd,getCombinedNodeFlags:()=>C_,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>iA,getCommentRange:()=>getCommentRange,getCommonSourceDirectory:()=>getCommonSourceDirectory,getCommonSourceDirectoryOfConfig:()=>getCommonSourceDirectoryOfConfig,getCompilerOptionValue:()=>j0,getCompilerOptionsDiffValue:()=>getCompilerOptionsDiffValue,getConditions:()=>getConditions,getConfigFileParsingDiagnostics:()=>getConfigFileParsingDiagnostics,getConstantValue:()=>getConstantValue,getContainerFlags:()=>getContainerFlags,getContainerNode:()=>getContainerNode,getContainingClass:()=>E0,getContainingClassExcludingClassDecorators:()=>DP,getContainingClassStaticBlock:()=>AP,getContainingFunction:()=>CP,getContainingFunctionDeclaration:()=>EP,getContainingFunctionOrClassStaticBlock:()=>kP,getContainingNodeArray:()=>tL,getContainingObjectLiteralElement:()=>u7,getContextualTypeFromParent:()=>getContextualTypeFromParent,getContextualTypeFromParentOrAncestorTypeNode:()=>getContextualTypeFromParentOrAncestorTypeNode,getCurrentTime:()=>getCurrentTime,getDeclarationDiagnostics:()=>getDeclarationDiagnostics,getDeclarationEmitExtensionForPath:()=>GT,getDeclarationEmitOutputFilePath:()=>mN,getDeclarationEmitOutputFilePathWorker:()=>HT,getDeclarationFromName:()=>NI,getDeclarationModifierFlagsFromSymbol:()=>gO,getDeclarationOfKind:()=>Rk,getDeclarationsOfKind:()=>jk,getDeclaredExpandoInitializer:()=>eI,getDecorators:()=>sA,getDefaultCompilerOptions:()=>s7,getDefaultExportInfoWorker:()=>getDefaultExportInfoWorker,getDefaultFormatCodeSettings:()=>getDefaultFormatCodeSettings,getDefaultLibFileName:()=>v4,getDefaultLibFilePath:()=>oB,getDefaultLikeExportInfo:()=>getDefaultLikeExportInfo,getDiagnosticText:()=>getDiagnosticText,getDiagnosticsWithinSpan:()=>getDiagnosticsWithinSpan,getDirectoryPath:()=>$i,getDirectoryToWatchFailedLookupLocation:()=>getDirectoryToWatchFailedLookupLocation,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>getDirectoryToWatchFailedLookupLocationFromTypeRoot,getDocumentPositionMapper:()=>getDocumentPositionMapper,getESModuleInterop:()=>U2,getEditsForFileRename:()=>getEditsForFileRename,getEffectiveBaseTypeNode:()=>AT,getEffectiveConstraintOfTypeParameter:()=>xA,getEffectiveContainerForJSDocTemplateTag:()=>TI,getEffectiveImplementsTypeNodes:()=>DT,getEffectiveInitializer:()=>oT,getEffectiveJSDocHost:()=>y2,getEffectiveModifierFlags:()=>vm,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>_S,getEffectiveModifierFlagsNoCache:()=>lS,getEffectiveReturnTypeNode:()=>EN,getEffectiveSetAccessorTypeAnnotationNode:()=>kN,getEffectiveTypeAnnotationNode:()=>I2,getEffectiveTypeParameterDeclarations:()=>SA,getEffectiveTypeRoots:()=>getEffectiveTypeRoots,getElementOrPropertyAccessArgumentExpressionOrName:()=>dm,getElementOrPropertyAccessName:()=>io,getElementsOfBindingOrAssignmentPattern:()=>R8,getEmitDeclarations:()=>z2,getEmitFlags:()=>ti,getEmitHelpers:()=>getEmitHelpers,getEmitModuleDetectionKind:()=>RS,getEmitModuleKind:()=>ni,getEmitModuleResolutionKind:()=>O_,getEmitScriptTarget:()=>Ql,getEmitStandardClassFields:()=>lM,getEnclosingBlockScopeContainer:()=>S0,getEnclosingContainer:()=>BD,getEncodedSemanticClassifications:()=>getEncodedSemanticClassifications,getEncodedSyntacticClassifications:()=>getEncodedSyntacticClassifications,getEndLinePosition:()=>D3,getEntityNameFromTypeNode:()=>FP,getEntrypointsFromPackageJsonInfo:()=>getEntrypointsFromPackageJsonInfo,getErrorCountForSummary:()=>getErrorCountForSummary,getErrorSpanForNode:()=>Zg,getErrorSummaryText:()=>getErrorSummaryText,getEscapedTextOfIdentifierOrLiteral:()=>LT,getEscapedTextOfJsxAttributeName:()=>hL,getEscapedTextOfJsxNamespacedName:()=>Yl,getExpandoInitializer:()=>A_,getExportAssignmentExpression:()=>ET,getExportInfoMap:()=>getExportInfoMap,getExportNeedsImportStarHelper:()=>getExportNeedsImportStarHelper,getExpressionAssociativity:()=>eN,getExpressionPrecedence:()=>tN,getExternalHelpersModuleName:()=>N8,getExternalModuleImportEqualsDeclarationExpression:()=>WP,getExternalModuleName:()=>d2,getExternalModuleNameFromDeclaration:()=>fN,getExternalModuleNameFromPath:()=>E2,getExternalModuleNameLiteral:()=>RR,getExternalModuleRequireArgument:()=>VP,getFallbackOptions:()=>getFallbackOptions,getFileEmitOutput:()=>getFileEmitOutput,getFileMatcherPatterns:()=>qS,getFileNamesFromConfigSpecs:()=>getFileNamesFromConfigSpecs,getFileWatcherEventKind:()=>getFileWatcherEventKind,getFilesInErrorForSummary:()=>getFilesInErrorForSummary,getFirstConstructorWithBody:()=>QT,getFirstIdentifier:()=>UN,getFirstNonSpaceCharacterPosition:()=>getFirstNonSpaceCharacterPosition,getFirstProjectOutput:()=>getFirstProjectOutput,getFixableErrorSpanExpression:()=>getFixableErrorSpanExpression,getFormatCodeSettingsForWriting:()=>getFormatCodeSettingsForWriting,getFullWidth:()=>sm,getFunctionFlags:()=>qI,getHeritageClause:()=>hm,getHostSignatureFromJSDoc:()=>h2,getIdentifierAutoGenerate:()=>getIdentifierAutoGenerate,getIdentifierGeneratedImportReference:()=>getIdentifierGeneratedImportReference,getIdentifierTypeArguments:()=>getIdentifierTypeArguments,getImmediatelyInvokedFunctionExpression:()=>MP,getImpliedNodeFormatForFile:()=>getImpliedNodeFormatForFile,getImpliedNodeFormatForFileWorker:()=>getImpliedNodeFormatForFileWorker,getImportNeedsImportDefaultHelper:()=>getImportNeedsImportDefaultHelper,getImportNeedsImportStarHelper:()=>getImportNeedsImportStarHelper,getIndentSize:()=>Jo,getIndentString:()=>w2,getInferredLibraryNameResolveFrom:()=>getInferredLibraryNameResolveFrom,getInitializedVariables:()=>mO,getInitializerOfBinaryExpression:()=>uT,getInitializerOfBindingOrAssignmentElement:()=>L8,getInterfaceBaseTypeNodes:()=>IT,getInternalEmitFlags:()=>SD,getInvokedExpression:()=>BP,getIsolatedModules:()=>B2,getJSDocAugmentsTag:()=>F4,getJSDocClassTag:()=>cA,getJSDocCommentRanges:()=>H3,getJSDocCommentsAndTags:()=>yT,getJSDocDeprecatedTag:()=>dA,getJSDocDeprecatedTagNoCache:()=>H4,getJSDocEnumTag:()=>mA,getJSDocHost:()=>bT,getJSDocImplementsTags:()=>B4,getJSDocOverrideTagNoCache:()=>V4,getJSDocParameterTags:()=>Zd,getJSDocParameterTagsNoCache:()=>L4,getJSDocPrivateTag:()=>uA,getJSDocPrivateTagNoCache:()=>q4,getJSDocProtectedTag:()=>pA,getJSDocProtectedTagNoCache:()=>z4,getJSDocPublicTag:()=>lA,getJSDocPublicTagNoCache:()=>U4,getJSDocReadonlyTag:()=>fA,getJSDocReadonlyTagNoCache:()=>W4,getJSDocReturnTag:()=>G4,getJSDocReturnType:()=>X4,getJSDocRoot:()=>g2,getJSDocSatisfiesExpressionType:()=>mL,getJSDocSatisfiesTag:()=>kg,getJSDocTags:()=>Ul,getJSDocTagsNoCache:()=>gA,getJSDocTemplateTag:()=>yA,getJSDocThisTag:()=>hA,getJSDocType:()=>tm,getJSDocTypeAliasName:()=>K0,getJSDocTypeAssertionType:()=>IR,getJSDocTypeParameterDeclarations:()=>ZT,getJSDocTypeParameterTags:()=>R4,getJSDocTypeParameterTagsNoCache:()=>j4,getJSDocTypeTag:()=>em,getJSXImplicitImportBase:()=>mM,getJSXRuntimeImport:()=>hM,getJSXTransformEnabled:()=>dM,getKeyForCompilerOptions:()=>getKeyForCompilerOptions,getLanguageVariant:()=>R0,getLastChild:()=>kS,getLeadingCommentRanges:()=>Wo,getLeadingCommentRangesOfNode:()=>_P,getLeftmostAccessExpression:()=>R2,getLeftmostExpression:()=>JO,getLineAndCharacterOfPosition:()=>to,getLineInfo:()=>getLineInfo,getLineOfLocalPosition:()=>TN,getLineOfLocalPositionFromLineMap:()=>Ca,getLineStartPositionForPosition:()=>getLineStartPositionForPosition,getLineStarts:()=>Ia,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>pO,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>uO,getLinesBetweenPositions:()=>x_,getLinesBetweenRangeEndAndRangeStart:()=>_O,getLinesBetweenRangeEndPositions:()=>cO,getLiteralText:()=>xD,getLocalNameForExternalImport:()=>JR,getLocalSymbolForExportDefault:()=>HN,getLocaleSpecificMessage:()=>N_,getLocaleTimeString:()=>getLocaleTimeString,getMappedContextSpan:()=>getMappedContextSpan,getMappedDocumentSpan:()=>getMappedDocumentSpan,getMappedLocation:()=>getMappedLocation,getMatchedFileSpec:()=>getMatchedFileSpec,getMatchedIncludeSpec:()=>getMatchedIncludeSpec,getMeaningFromDeclaration:()=>getMeaningFromDeclaration,getMeaningFromLocation:()=>getMeaningFromLocation,getMembersOfDeclaration:()=>fP,getModeForFileReference:()=>getModeForFileReference,getModeForResolutionAtIndex:()=>getModeForResolutionAtIndex,getModeForUsageLocation:()=>getModeForUsageLocation,getModifiedTime:()=>getModifiedTime,getModifiers:()=>yd,getModuleInstanceState:()=>getModuleInstanceState,getModuleNameStringLiteralAt:()=>getModuleNameStringLiteralAt,getModuleSpecifierEndingPreference:()=>DM,getModuleSpecifierResolverHost:()=>getModuleSpecifierResolverHost,getNameForExportedSymbol:()=>getNameForExportedSymbol,getNameFromIndexInfo:()=>qD,getNameFromPropertyName:()=>getNameFromPropertyName,getNameOfAccessExpression:()=>NO,getNameOfCompilerOptionValue:()=>getNameOfCompilerOptionValue,getNameOfDeclaration:()=>Bl,getNameOfExpando:()=>aI,getNameOfJSDocTypedef:()=>N4,getNameOrArgument:()=>cT,getNameTable:()=>eB,getNamesForExportedSymbol:()=>getNamesForExportedSymbol,getNamespaceDeclarationNode:()=>fT,getNewLineCharacter:()=>vS,getNewLineKind:()=>getNewLineKind,getNewLineOrDefaultFromHost:()=>getNewLineOrDefaultFromHost,getNewTargetContainer:()=>NP,getNextJSDocCommentLocation:()=>gT,getNodeForGeneratedName:()=>bj,getNodeId:()=>getNodeId,getNodeKind:()=>getNodeKind,getNodeModifiers:()=>getNodeModifiers,getNodeModulePathParts:()=>_L,getNonAssignedNameOfDeclaration:()=>Kd,getNonAssignmentOperatorForCompoundAssignment:()=>getNonAssignmentOperatorForCompoundAssignment,getNonAugmentationDeclaration:()=>F3,getNonDecoratorTokenPosOfNode:()=>gD,getNormalizedAbsolutePath:()=>Pa,getNormalizedAbsolutePathWithoutRoot:()=>DE,getNormalizedPathComponents:()=>Vd,getObjectFlags:()=>jf,getOperator:()=>x2,getOperatorAssociativity:()=>jT,getOperatorPrecedence:()=>FT,getOptionFromName:()=>getOptionFromName,getOptionsForLibraryResolution:()=>getOptionsForLibraryResolution,getOptionsNameMap:()=>getOptionsNameMap,getOrCreateEmitNode:()=>getOrCreateEmitNode,getOrCreateExternalHelpersModuleNameIfNeeded:()=>O8,getOrUpdate:()=>X5,getOriginalNode:()=>jl,getOriginalNodeId:()=>getOriginalNodeId,getOriginalSourceFile:()=>ZI,getOutputDeclarationFileName:()=>getOutputDeclarationFileName,getOutputExtension:()=>getOutputExtension,getOutputFileNames:()=>getOutputFileNames,getOutputPathsFor:()=>getOutputPathsFor,getOutputPathsForBundle:()=>getOutputPathsForBundle,getOwnEmitOutputFilePath:()=>dN,getOwnKeys:()=>sg,getOwnValues:()=>vC,getPackageJsonInfo:()=>getPackageJsonInfo,getPackageJsonTypesVersionsPaths:()=>getPackageJsonTypesVersionsPaths,getPackageJsonsVisibleToFile:()=>getPackageJsonsVisibleToFile,getPackageNameFromTypesPackageName:()=>getPackageNameFromTypesPackageName,getPackageScopeForPath:()=>getPackageScopeForPath,getParameterSymbolFromJSDoc:()=>vI,getParameterTypeNode:()=>cL,getParentNodeInSpan:()=>getParentNodeInSpan,getParseTreeNode:()=>Fl,getParsedCommandLineOfConfigFile:()=>getParsedCommandLineOfConfigFile,getPathComponents:()=>Ai,getPathComponentsRelativeTo:()=>gg,getPathFromPathComponents:()=>Uo,getPathUpdater:()=>getPathUpdater,getPathsBasePath:()=>yN,getPatternFromSpec:()=>wM,getPendingEmitKind:()=>getPendingEmitKind,getPositionOfLineAndCharacter:()=>BE,getPossibleGenericSignatures:()=>getPossibleGenericSignatures,getPossibleOriginalInputExtensionForExtension:()=>hN,getPossibleTypeArgumentsInfo:()=>getPossibleTypeArgumentsInfo,getPreEmitDiagnostics:()=>getPreEmitDiagnostics,getPrecedingNonSpaceCharacterPosition:()=>getPrecedingNonSpaceCharacterPosition,getPrivateIdentifier:()=>getPrivateIdentifier,getProperties:()=>getProperties,getProperty:()=>gC,getPropertyArrayElementValue:()=>xP,getPropertyAssignmentAliasLikeExpression:()=>LI,getPropertyNameForPropertyNameNode:()=>bd,getPropertyNameForUniqueESSymbol:()=>WI,getPropertyNameFromType:()=>TL,getPropertyNameOfBindingOrAssignmentElement:()=>UR,getPropertySymbolFromBindingElement:()=>getPropertySymbolFromBindingElement,getPropertySymbolsFromContextualType:()=>p7,getQuoteFromPreference:()=>getQuoteFromPreference,getQuotePreference:()=>getQuotePreference,getRangesWhere:()=>Z5,getRefactorContextSpan:()=>getRefactorContextSpan,getReferencedFileLocation:()=>getReferencedFileLocation,getRegexFromPattern:()=>Bf,getRegularExpressionForWildcard:()=>Ff,getRegularExpressionsForWildcards:()=>V2,getRelativePathFromDirectory:()=>Kv,getRelativePathFromFile:()=>LE,getRelativePathToDirectoryOrUrl:()=>bg,getRenameLocation:()=>getRenameLocation,getReplacementSpanForContextToken:()=>getReplacementSpanForContextToken,getResolutionDiagnostic:()=>getResolutionDiagnostic,getResolutionModeOverrideForClause:()=>getResolutionModeOverrideForClause,getResolveJsonModule:()=>jS,getResolvePackageJsonExports:()=>aM,getResolvePackageJsonImports:()=>oM,getResolvedExternalModuleName:()=>VT,getResolvedModule:()=>Xk,getResolvedTypeReferenceDirective:()=>Yk,getRestIndicatorOfBindingOrAssignmentElement:()=>BR,getRestParameterElementType:()=>pP,getRightMostAssignedExpression:()=>l2,getRootDeclaration:()=>ym,getRootDirectoryOfResolutionCache:()=>getRootDirectoryOfResolutionCache,getRootLength:()=>Ei,getRootPathSplitLength:()=>getRootPathSplitLength,getScriptKind:()=>getScriptKind,getScriptKindFromFileName:()=>WS,getScriptTargetFeatures:()=>getScriptTargetFeatures,getSelectedEffectiveModifierFlags:()=>oS,getSelectedSyntacticModifierFlags:()=>sS,getSemanticClassifications:()=>getSemanticClassifications,getSemanticJsxChildren:()=>rN,getSetAccessorTypeAnnotationNode:()=>SN,getSetAccessorValueParameter:()=>D2,getSetExternalModuleIndicator:()=>JS,getShebang:()=>_4,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>m2,getSingleVariableOfVariableStatement:()=>Cl,getSnapshotText:()=>getSnapshotText,getSnippetElement:()=>getSnippetElement,getSourceFileOfModule:()=>oD,getSourceFileOfNode:()=>ri,getSourceFilePathInNewDir:()=>XT,getSourceFilePathInNewDirWorker:()=>k2,getSourceFileVersionAsHashFromText:()=>getSourceFileVersionAsHashFromText,getSourceFilesToEmit:()=>gN,getSourceMapRange:()=>getSourceMapRange,getSourceMapper:()=>getSourceMapper,getSourceTextOfNodeFromSourceFile:()=>Xo,getSpanOfTokenAtPosition:()=>Ys,getSpellingSuggestion:()=>Lv,getStartPositionOfLine:()=>cD,getStartPositionOfRange:()=>f_,getStartsOnNewLine:()=>getStartsOnNewLine,getStaticPropertiesAndClassStaticBlock:()=>getStaticPropertiesAndClassStaticBlock,getStrictOptionValue:()=>W2,getStringComparer:()=>_g,getSuperCallFromStatement:()=>getSuperCallFromStatement,getSuperContainer:()=>OP,getSupportedCodeFixes:()=>_7,getSupportedExtensions:()=>VS,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>HS,getSwitchedType:()=>getSwitchedType,getSymbolId:()=>getSymbolId,getSymbolNameForPrivateIdentifier:()=>VI,getSymbolTarget:()=>getSymbolTarget,getSyntacticClassifications:()=>getSyntacticClassifications,getSyntacticModifierFlags:()=>M2,getSyntacticModifierFlagsNoCache:()=>L2,getSynthesizedDeepClone:()=>getSynthesizedDeepClone,getSynthesizedDeepCloneWithReplacements:()=>getSynthesizedDeepCloneWithReplacements,getSynthesizedDeepClones:()=>getSynthesizedDeepClones,getSynthesizedDeepClonesWithReplacements:()=>getSynthesizedDeepClonesWithReplacements,getSyntheticLeadingComments:()=>getSyntheticLeadingComments,getSyntheticTrailingComments:()=>getSyntheticTrailingComments,getTargetLabel:()=>getTargetLabel,getTargetOfBindingOrAssignmentElement:()=>Mo,getTemporaryModuleResolutionState:()=>getTemporaryModuleResolutionState,getTextOfConstantValue:()=>CD,getTextOfIdentifierOrLiteral:()=>vd,getTextOfJSDocComment:()=>vA,getTextOfJsxAttributeName:()=>yL,getTextOfJsxNamespacedName:()=>Kl,getTextOfNode:()=>_m,getTextOfNodeFromSourceText:()=>t_,getTextOfPropertyName:()=>WD,getThisContainer:()=>o2,getThisParameter:()=>YT,getTokenAtPosition:()=>getTokenAtPosition,getTokenPosOfNode:()=>Go,getTokenSourceMapRange:()=>getTokenSourceMapRange,getTouchingPropertyName:()=>getTouchingPropertyName,getTouchingToken:()=>getTouchingToken,getTrailingCommentRanges:()=>s4,getTrailingSemicolonDeferringWriter:()=>pN,getTransformFlagsSubtreeExclusions:()=>Jx,getTransformers:()=>getTransformers,getTsBuildInfoEmitOutputFilePath:()=>getTsBuildInfoEmitOutputFilePath,getTsConfigObjectLiteralExpression:()=>$3,getTsConfigPropArrayElementValue:()=>wP,getTypeAnnotationNode:()=>CN,getTypeArgumentOrTypeParameterList:()=>getTypeArgumentOrTypeParameterList,getTypeKeywordOfTypeOnlyImport:()=>getTypeKeywordOfTypeOnlyImport,getTypeNode:()=>getTypeNode,getTypeNodeIfAccessible:()=>getTypeNodeIfAccessible,getTypeParameterFromJsDoc:()=>SI,getTypeParameterOwner:()=>nA,getTypesPackageName:()=>getTypesPackageName,getUILocale:()=>zC,getUniqueName:()=>getUniqueName,getUniqueSymbolId:()=>getUniqueSymbolId,getUseDefineForClassFields:()=>cM,getWatchErrorSummaryDiagnosticMessage:()=>getWatchErrorSummaryDiagnosticMessage,getWatchFactory:()=>getWatchFactory,group:()=>CC,groupBy:()=>EC,guessIndentation:()=>Mk,handleNoEmitOptions:()=>handleNoEmitOptions,hasAbstractModifier:()=>nS,hasAccessorModifier:()=>aS,hasAmbientModifier:()=>iS,hasChangesInResolutions:()=>iD,hasChildOfKind:()=>hasChildOfKind,hasContextSensitiveParameters:()=>rL,hasDecorators:()=>El,hasDocComment:()=>hasDocComment,hasDynamicName:()=>MT,hasEffectiveModifier:()=>N2,hasEffectiveModifiers:()=>ON,hasEffectiveReadonlyModifier:()=>O0,hasExtension:()=>$v,hasIndexSignature:()=>hasIndexSignature,hasInitializer:()=>C3,hasInvalidEscape:()=>BT,hasJSDocNodes:()=>Wi,hasJSDocParameterTags:()=>_A,hasJSFileExtension:()=>H2,hasJsonModuleEmitEnabled:()=>KO,hasOnlyExpressionInitializer:()=>Nk,hasOverrideModifier:()=>LN,hasPossibleExternalModuleReference:()=>FD,hasProperty:()=>Qr,hasPropertyAccessExpressionWithName:()=>hasPropertyAccessExpressionWithName,hasQuestionToken:()=>mI,hasRecordedExternalHelpers:()=>MR,hasRestParameter:()=>Lk,hasScopeMarker:()=>_k,hasStaticModifier:()=>bm,hasSyntacticModifier:()=>gr,hasSyntacticModifiers:()=>MN,hasTSFileExtension:()=>G2,hasTabstop:()=>_x,hasTrailingDirectorySeparator:()=>Wd,hasType:()=>Ik,hasTypeArguments:()=>xI,hasZeroOrOneAsteriskCharacter:()=>yM,helperString:()=>helperString,hostGetCanonicalFileName:()=>WT,hostUsesCaseSensitiveFileNames:()=>C2,idText:()=>Ot,identifierIsThisKeyword:()=>KT,identifierToKeywordKind:()=>D4,identity:()=>bt,identitySourceMapConsumer:()=>identitySourceMapConsumer,ignoreSourceNewlines:()=>ignoreSourceNewlines,ignoredPaths:()=>ignoredPaths,importDefaultHelper:()=>importDefaultHelper,importFromModuleSpecifier:()=>fI,importNameElisionDisabled:()=>ZO,importStarHelper:()=>importStarHelper,indexOfAnyCharCode:()=>bv,indexOfNode:()=>TD,indicesOf:()=>ag,inferredTypesContainingFile:()=>inferredTypesContainingFile,injectClassNamedEvaluationHelperBlockIfMissing:()=>injectClassNamedEvaluationHelperBlockIfMissing,injectClassThisAssignmentIfMissing:()=>injectClassThisAssignmentIfMissing,insertImports:()=>insertImports,insertLeadingStatement:()=>TR,insertSorted:()=>yl,insertStatementAfterCustomPrologue:()=>mD,insertStatementAfterStandardPrologue:()=>dD,insertStatementsAfterCustomPrologue:()=>fD,insertStatementsAfterStandardPrologue:()=>pD,intersperse:()=>J5,intrinsicTagNameToString:()=>bL,introducesArgumentsExoticObject:()=>yP,inverseJsxOptionMap:()=>inverseJsxOptionMap,isAbstractConstructorSymbol:()=>EO,isAbstractModifier:()=>eJ,isAccessExpression:()=>$o,isAccessibilityModifier:()=>isAccessibilityModifier,isAccessor:()=>im,isAccessorModifier:()=>rJ,isAliasSymbolDeclaration:()=>MI,isAliasableExpression:()=>b2,isAmbientModule:()=>cm,isAmbientPropertyDeclaration:()=>LD,isAnonymousFunctionDefinition:()=>Ks,isAnyDirectorySeparator:()=>dg,isAnyImportOrBareOrAccessedRequire:()=>RD,isAnyImportOrReExport:()=>um,isAnyImportSyntax:()=>$g,isAnySupportedFileExtension:()=>JM,isApplicableVersionedTypesKey:()=>isApplicableVersionedTypesKey,isArgumentExpressionOfElementAccess:()=>isArgumentExpressionOfElementAccess,isArray:()=>zt,isArrayBindingElement:()=>$A,isArrayBindingOrAssignmentElement:()=>d3,isArrayBindingOrAssignmentPattern:()=>f3,isArrayBindingPattern:()=>sJ,isArrayLiteralExpression:()=>iu,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>isArrayLiteralOrObjectLiteralDestructuringPattern,isArrayTypeNode:()=>Xx,isArrowFunction:()=>Dm,isAsExpression:()=>mJ,isAssertClause:()=>RJ,isAssertEntry:()=>jJ,isAssertionExpression:()=>ok,isAssertionKey:()=>jA,isAssertsKeyword:()=>YL,isAssignmentDeclaration:()=>k0,isAssignmentExpression:()=>Na,isAssignmentOperator:()=>D_,isAssignmentPattern:()=>l3,isAssignmentTarget:()=>wI,isAsteriskToken:()=>HL,isAsyncFunction:()=>zI,isAsyncModifier:()=>al,isAutoAccessorPropertyDeclaration:()=>c3,isAwaitExpression:()=>uJ,isAwaitKeyword:()=>KL,isBigIntLiteral:()=>o6,isBinaryExpression:()=>Ct,isBinaryOperatorToken:()=>dj,isBindableObjectDefinePropertyCall:()=>p2,isBindableStaticAccessExpression:()=>k_,isBindableStaticElementAccessExpression:()=>f2,isBindableStaticNameExpression:()=>p_,isBindingElement:()=>nu,isBindingElementOfBareOrAccessedRequire:()=>YP,isBindingName:()=>zA,isBindingOrAssignmentElement:()=>QA,isBindingOrAssignmentPattern:()=>YA,isBindingPattern:()=>am,isBlock:()=>au,isBlockOrCatchScoped:()=>AD,isBlockScope:()=>B3,isBlockScopedContainerTopLevel:()=>ND,isBooleanLiteral:()=>WA,isBreakOrContinueStatement:()=>kA,isBreakStatement:()=>AJ,isBuildInfoFile:()=>isBuildInfoFile,isBuilderProgram:()=>isBuilderProgram2,isBundle:()=>QJ,isBundleFileTextLike:()=>OO,isCallChain:()=>y0,isCallExpression:()=>j_,isCallExpressionTarget:()=>isCallExpressionTarget,isCallLikeExpression:()=>ek,isCallOrNewExpression:()=>tk,isCallOrNewExpressionTarget:()=>isCallOrNewExpressionTarget,isCallSignatureDeclaration:()=>c6,isCallToHelper:()=>isCallToHelper,isCaseBlock:()=>MJ,isCaseClause:()=>GJ,isCaseKeyword:()=>nJ,isCaseOrDefaultClause:()=>Pk,isCatchClause:()=>XJ,isCatchClauseVariableDeclaration:()=>nx,isCatchClauseVariableDeclarationOrBindingElement:()=>J3,isCheckJsEnabledForFile:()=>RM,isChildOfNodeWithKind:()=>cP,isCircularBuildOrder:()=>isCircularBuildOrder,isClassDeclaration:()=>Yo,isClassElement:()=>no,isClassExpression:()=>Il,isClassLike:()=>dn,isClassMemberModifier:()=>o3,isClassNamedEvaluationHelperBlock:()=>isClassNamedEvaluationHelperBlock,isClassOrTypeElement:()=>GA,isClassStaticBlockDeclaration:()=>eu,isClassThisAssignmentBlock:()=>isClassThisAssignmentBlock,isCollapsedRange:()=>rO,isColonToken:()=>GL,isCommaExpression:()=>Rm,isCommaListExpression:()=>F_,isCommaSequence:()=>PR,isCommaToken:()=>Bx,isComment:()=>isComment,isCommonJsExportPropertyAssignment:()=>i2,isCommonJsExportedExpression:()=>mP,isCompoundAssignment:()=>isCompoundAssignment,isComputedNonLiteralName:()=>zD,isComputedPropertyName:()=>ao,isConciseBody:()=>pk,isConditionalExpression:()=>pJ,isConditionalTypeNode:()=>e8,isConstTypeReference:()=>K4,isConstructSignatureDeclaration:()=>Vx,isConstructorDeclaration:()=>J_,isConstructorTypeNode:()=>u6,isContextualKeyword:()=>v2,isContinueStatement:()=>EJ,isCustomPrologue:()=>pm,isDebuggerStatement:()=>OJ,isDeclaration:()=>Ho,isDeclarationBindingElement:()=>Bg,isDeclarationFileName:()=>H8,isDeclarationName:()=>xT,isDeclarationNameOfEnumOrNamespace:()=>dO,isDeclarationReadonly:()=>rP,isDeclarationStatement:()=>xk,isDeclarationWithTypeParameterChildren:()=>U3,isDeclarationWithTypeParameters:()=>JD,isDecorator:()=>L_,isDecoratorTarget:()=>isDecoratorTarget,isDefaultClause:()=>m8,isDefaultImport:()=>dT,isDefaultModifier:()=>QL,isDefaultedExpandoInitializer:()=>iI,isDeleteExpression:()=>cJ,isDeleteTarget:()=>PI,isDeprecatedDeclaration:()=>isDeprecatedDeclaration,isDestructuringAssignment:()=>BN,isDiagnosticWithLocation:()=>isDiagnosticWithLocation,isDiskPathRoot:()=>xE,isDoStatement:()=>SJ,isDocumentRegistryEntry:()=>isDocumentRegistryEntry,isDotDotDotToken:()=>VL,isDottedName:()=>L0,isDynamicName:()=>S2,isESSymbolIdentifier:()=>XI,isEffectiveExternalModule:()=>Xg,isEffectiveModuleDeclaration:()=>R3,isEffectiveStrictModeSourceFile:()=>MD,isElementAccessChain:()=>Y4,isElementAccessExpression:()=>Ra,isEmittedFileOfProgram:()=>isEmittedFileOfProgram,isEmptyArrayLiteral:()=>VN,isEmptyBindingElement:()=>A4,isEmptyBindingPattern:()=>E4,isEmptyObjectLiteral:()=>WN,isEmptyStatement:()=>vJ,isEmptyStringLiteral:()=>K3,isEntityName:()=>qA,isEntityNameExpression:()=>co,isEnumConst:()=>tP,isEnumDeclaration:()=>S6,isEnumMember:()=>y8,isEqualityOperatorKind:()=>isEqualityOperatorKind,isEqualsGreaterThanToken:()=>$L,isExclamationToken:()=>Pd,isExcludedFile:()=>isExcludedFile,isExclusivelyTypeOnlyImportOrExport:()=>isExclusivelyTypeOnlyImportOrExport,isExportAssignment:()=>ss,isExportDeclaration:()=>B_,isExportModifier:()=>Ux,isExportName:()=>DR,isExportNamespaceAsDefaultDeclaration:()=>L3,isExportOrDefaultModifier:()=>hj,isExportSpecifier:()=>d8,isExportsIdentifier:()=>sT,isExportsOrModuleExportsOrAlias:()=>isExportsOrModuleExportsOrAlias,isExpression:()=>om,isExpressionNode:()=>_2,isExpressionOfExternalModuleImportEqualsDeclaration:()=>isExpressionOfExternalModuleImportEqualsDeclaration,isExpressionOfOptionalChainRoot:()=>CA,isExpressionStatement:()=>ou,isExpressionWithTypeArguments:()=>g6,isExpressionWithTypeArgumentsInClassExtendsClause:()=>M0,isExternalModule:()=>Zo,isExternalModuleAugmentation:()=>Gg,isExternalModuleImportEqualsDeclaration:()=>tT,isExternalModuleIndicator:()=>lk,isExternalModuleNameRelative:()=>GE,isExternalModuleReference:()=>Om,isExternalModuleSymbol:()=>isExternalModuleSymbol,isExternalOrCommonJsModule:()=>eP,isFileLevelReservedGeneratedIdentifier:()=>BA,isFileLevelUniqueName:()=>P3,isFileProbablyExternalModule:()=>ml,isFirstDeclarationOfSymbolParameter:()=>isFirstDeclarationOfSymbolParameter,isFixablePromiseHandler:()=>isFixablePromiseHandler,isForInOrOfStatement:()=>uk,isForInStatement:()=>wJ,isForInitializer:()=>dk,isForOfStatement:()=>CJ,isForStatement:()=>c8,isFunctionBlock:()=>X3,isFunctionBody:()=>fk,isFunctionDeclaration:()=>os,isFunctionExpression:()=>km,isFunctionExpressionOrArrowFunction:()=>aL,isFunctionLike:()=>Gi,isFunctionLikeDeclaration:()=>s3,isFunctionLikeKind:()=>Jg,isFunctionLikeOrClassStaticBlockDeclaration:()=>nm,isFunctionOrConstructorTypeNode:()=>XA,isFunctionOrModuleBlock:()=>VA,isFunctionSymbol:()=>uI,isFunctionTypeNode:()=>tu,isFutureReservedKeyword:()=>RI,isGeneratedIdentifier:()=>wa,isGeneratedPrivateIdentifier:()=>Mg,isGetAccessor:()=>el,isGetAccessorDeclaration:()=>m_,isGetOrSetAccessorDeclaration:()=>wA,isGlobalDeclaration:()=>isGlobalDeclaration,isGlobalScopeAugmentation:()=>lm,isGrammarError:()=>uD,isHeritageClause:()=>Nl,isHoistedFunction:()=>w0,isHoistedVariableStatement:()=>C0,isIdentifier:()=>Ee,isIdentifierANonContextualKeyword:()=>BI,isIdentifierName:()=>OI,isIdentifierOrThisTypeNode:()=>HR,isIdentifierPart:()=>Qa,isIdentifierStart:()=>un,isIdentifierText:()=>Cg,isIdentifierTypePredicate:()=>TP,isIdentifierTypeReference:()=>$M,isIfStatement:()=>TJ,isIgnoredFileFromWildCardWatching:()=>isIgnoredFileFromWildCardWatching,isImplicitGlob:()=>BS,isImportCall:()=>t2,isImportClause:()=>LJ,isImportDeclaration:()=>C6,isImportEqualsDeclaration:()=>w6,isImportKeyword:()=>zx,isImportMeta:()=>x0,isImportOrExportSpecifier:()=>JA,isImportOrExportSpecifierName:()=>isImportOrExportSpecifierName,isImportSpecifier:()=>p8,isImportTypeAssertionContainer:()=>JJ,isImportTypeNode:()=>ru,isImportableFile:()=>isImportableFile,isInComment:()=>isInComment,isInExpressionContext:()=>Z3,isInJSDoc:()=>rT,isInJSFile:()=>Wt,isInJSXText:()=>isInJSXText,isInJsonFile:()=>XP,isInNonReferenceComment:()=>isInNonReferenceComment,isInReferenceComment:()=>isInReferenceComment,isInRightSideOfInternalImportEqualsDeclaration:()=>isInRightSideOfInternalImportEqualsDeclaration,isInString:()=>isInString,isInTemplateString:()=>isInTemplateString,isInTopLevelContext:()=>IP,isInTypeQuery:()=>xN,isIncrementalCompilation:()=>_M,isIndexSignatureDeclaration:()=>l6,isIndexedAccessTypeNode:()=>n8,isInferTypeNode:()=>t8,isInfinityOrNaNString:()=>nL,isInitializedProperty:()=>isInitializedProperty,isInitializedVariable:()=>xS,isInsideJsxElement:()=>isInsideJsxElement,isInsideJsxElementOrAttribute:()=>isInsideJsxElementOrAttribute,isInsideNodeModules:()=>isInsideNodeModules,isInsideTemplateLiteral:()=>isInsideTemplateLiteral,isInstantiatedModule:()=>isInstantiatedModule,isInterfaceDeclaration:()=>su,isInternalDeclaration:()=>isInternalDeclaration,isInternalModuleImportEqualsDeclaration:()=>HP,isInternalName:()=>kR,isIntersectionTypeNode:()=>Zx,isIntrinsicJsxName:()=>zT,isIterationStatement:()=>g3,isJSDoc:()=>cs,isJSDocAllType:()=>tR,isJSDocAugmentsTag:()=>Lm,isJSDocAuthorTag:()=>sR,isJSDocCallbackTag:()=>_R,isJSDocClassTag:()=>v8,isJSDocCommentContainingNode:()=>w3,isJSDocConstructSignature:()=>hI,isJSDocDeprecatedTag:()=>J6,isJSDocEnumTag:()=>S8,isJSDocFunctionType:()=>Mm,isJSDocImplementsTag:()=>w8,isJSDocIndexSignature:()=>QP,isJSDocLikeText:()=>q8,isJSDocLink:()=>KJ,isJSDocLinkCode:()=>ZJ,isJSDocLinkLike:()=>ul,isJSDocLinkPlain:()=>eR,isJSDocMemberName:()=>r_,isJSDocNameReference:()=>Wf,isJSDocNamepathType:()=>oR,isJSDocNamespaceBody:()=>yk,isJSDocNode:()=>zg,isJSDocNonNullableType:()=>nR,isJSDocNullableType:()=>b8,isJSDocOptionalParameter:()=>cx,isJSDocOptionalType:()=>iR,isJSDocOverloadTag:()=>L6,isJSDocOverrideTag:()=>T8,isJSDocParameterTag:()=>h_,isJSDocPrivateTag:()=>N6,isJSDocPropertyLikeTag:()=>Ig,isJSDocPropertyTag:()=>pR,isJSDocProtectedTag:()=>O6,isJSDocPublicTag:()=>I6,isJSDocReadonlyTag:()=>M6,isJSDocReturnTag:()=>R6,isJSDocSatisfiesExpression:()=>dL,isJSDocSatisfiesTag:()=>j6,isJSDocSeeTag:()=>cR,isJSDocSignature:()=>cu,isJSDocTag:()=>Wg,isJSDocTemplateTag:()=>Ko,isJSDocThisTag:()=>x8,isJSDocThrowsTag:()=>fR,isJSDocTypeAlias:()=>Hl,isJSDocTypeAssertion:()=>I8,isJSDocTypeExpression:()=>g8,isJSDocTypeLiteral:()=>P6,isJSDocTypeTag:()=>lu,isJSDocTypedefTag:()=>lR,isJSDocUnknownTag:()=>uR,isJSDocUnknownType:()=>rR,isJSDocVariadicType:()=>aR,isJSXTagName:()=>Lf,isJsonEqual:()=>$2,isJsonSourceFile:()=>e2,isJsxAttribute:()=>WJ,isJsxAttributeLike:()=>kk,isJsxAttributeName:()=>gL,isJsxAttributes:()=>D6,isJsxChild:()=>S3,isJsxClosingElement:()=>zf,isJsxClosingFragment:()=>zJ,isJsxElement:()=>Q0,isJsxExpression:()=>HJ,isJsxFragment:()=>dl,isJsxNamespacedName:()=>U_,isJsxOpeningElement:()=>Oo,isJsxOpeningFragment:()=>k6,isJsxOpeningLikeElement:()=>x3,isJsxOpeningLikeElementTagName:()=>isJsxOpeningLikeElementTagName,isJsxSelfClosingElement:()=>qJ,isJsxSpreadAttribute:()=>VJ,isJsxTagNameExpression:()=>Ak,isJsxText:()=>Dd,isJumpStatementTarget:()=>isJumpStatementTarget,isKeyword:()=>Si,isKeywordOrPunctuation:()=>Rf,isKnownSymbol:()=>HI,isLabelName:()=>isLabelName,isLabelOfLabeledStatement:()=>isLabelOfLabeledStatement,isLabeledStatement:()=>l8,isLateVisibilityPaintedStatement:()=>jD,isLeftHandSideExpression:()=>Lo,isLeftHandSideOfAssignment:()=>FN,isLet:()=>aP,isLineBreak:()=>mr,isLiteralComputedPropertyDeclarationName:()=>wT,isLiteralExpression:()=>Og,isLiteralExpressionOfObject:()=>OA,isLiteralImportTypeNode:()=>V3,isLiteralKind:()=>Ng,isLiteralLikeAccess:()=>Jf,isLiteralLikeElementAccess:()=>Vl,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>isLiteralNameOfPropertyDeclarationOrIndexAccess,isLiteralTypeLikeExpression:()=>QR,isLiteralTypeLiteral:()=>ik,isLiteralTypeNode:()=>m6,isLocalName:()=>Y0,isLogicalOperator:()=>JN,isLogicalOrCoalescingAssignmentExpression:()=>RN,isLogicalOrCoalescingAssignmentOperator:()=>Tm,isLogicalOrCoalescingBinaryExpression:()=>jN,isLogicalOrCoalescingBinaryOperator:()=>pS,isMappedTypeNode:()=>i8,isMemberName:()=>ro,isMetaProperty:()=>b6,isMethodDeclaration:()=>d_,isMethodOrAccessor:()=>Rg,isMethodSignature:()=>Wx,isMinusToken:()=>_6,isMissingDeclaration:()=>BJ,isModifier:()=>Lg,isModifierKind:()=>bi,isModifierLike:()=>Mf,isModuleAugmentationExternal:()=>j3,isModuleBlock:()=>u8,isModuleBody:()=>mk,isModuleDeclaration:()=>Yi,isModuleExportsAccessExpression:()=>u2,isModuleIdentifier:()=>_T,isModuleName:()=>$R,isModuleOrEnumDeclaration:()=>bk,isModuleReference:()=>Ek,isModuleSpecifierLike:()=>isModuleSpecifierLike,isModuleWithStringLiteralName:()=>kD,isNameOfFunctionDeclaration:()=>isNameOfFunctionDeclaration,isNameOfModuleDeclaration:()=>isNameOfModuleDeclaration,isNamedClassElement:()=>HA,isNamedDeclaration:()=>Yd,isNamedEvaluation:()=>$I,isNamedEvaluationSource:()=>RT,isNamedExportBindings:()=>DA,isNamedExports:()=>f8,isNamedImportBindings:()=>gk,isNamedImports:()=>FJ,isNamedImportsOrExports:()=>MO,isNamedTupleMember:()=>p6,isNamespaceBody:()=>hk,isNamespaceExport:()=>Nm,isNamespaceExportDeclaration:()=>x6,isNamespaceImport:()=>E6,isNamespaceReexportDeclaration:()=>zP,isNewExpression:()=>a8,isNewExpressionTarget:()=>isNewExpressionTarget,isNightly:()=>lN,isNoSubstitutionTemplateLiteral:()=>Fx,isNode:()=>IA,isNodeArray:()=>va,isNodeArrayMultiLine:()=>lO,isNodeDescendantOf:()=>II,isNodeKind:()=>ql,isNodeLikeSystem:()=>uE,isNodeModulesDirectory:()=>JE,isNodeWithPossibleHoistedDeclaration:()=>CI,isNonContextualKeyword:()=>OT,isNonExportDefaultModifier:()=>yj,isNonGlobalAmbientModule:()=>DD,isNonGlobalDeclaration:()=>isNonGlobalDeclaration,isNonNullAccess:()=>fL,isNonNullChain:()=>Z4,isNonNullExpression:()=>jo,isNonStaticMethodOrAccessorWithPrivateName:()=>isNonStaticMethodOrAccessorWithPrivateName,isNotEmittedOrPartiallyEmittedNode:()=>sk,isNotEmittedStatement:()=>A6,isNullishCoalesce:()=>AA,isNumber:()=>MC,isNumericLiteral:()=>lo,isNumericLiteralName:()=>ix,isObjectBindingElementWithoutPropertyName:()=>isObjectBindingElementWithoutPropertyName,isObjectBindingOrAssignmentElement:()=>p3,isObjectBindingOrAssignmentPattern:()=>u3,isObjectBindingPattern:()=>oJ,isObjectLiteralElement:()=>b0,isObjectLiteralElementLike:()=>Fg,isObjectLiteralExpression:()=>uo,isObjectLiteralMethod:()=>bP,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>vP,isObjectTypeDeclaration:()=>IO,isOctalDigit:()=>Nf,isOmittedExpression:()=>Im,isOptionalChain:()=>Dg,isOptionalChainRoot:()=>Pg,isOptionalDeclaration:()=>pL,isOptionalJSDocPropertyLikeTag:()=>sx,isOptionalTypeNode:()=>Qx,isOuterExpression:()=>jm,isOutermostOptionalChain:()=>EA,isOverrideModifier:()=>tJ,isPackedArrayLiteral:()=>ZM,isParameter:()=>Ma,isParameterDeclaration:()=>YI,isParameterOrCatchClauseVariable:()=>iL,isParameterPropertyDeclaration:()=>C4,isParameterPropertyModifier:()=>a3,isParenthesizedExpression:()=>is,isParenthesizedTypeNode:()=>f6,isParseTreeNode:()=>Tl,isPartOfTypeNode:()=>r2,isPartOfTypeQuery:()=>eT,isPartiallyEmittedExpression:()=>_8,isPatternMatch:()=>lg,isPinnedComment:()=>M3,isPlainJsFile:()=>sD,isPlusToken:()=>s6,isPossiblyTypeArgumentPosition:()=>isPossiblyTypeArgumentPosition,isPostfixUnaryExpression:()=>s8,isPrefixUnaryExpression:()=>Pm,isPrivateIdentifier:()=>jr,isPrivateIdentifierClassElementDeclaration:()=>i3,isPrivateIdentifierPropertyAccessExpression:()=>UA,isPrivateIdentifierSymbol:()=>GI,isProgramBundleEmitBuildInfo:()=>isProgramBundleEmitBuildInfo,isProgramUptoDate:()=>isProgramUptoDate,isPrologueDirective:()=>Ea,isPropertyAccessChain:()=>Q4,isPropertyAccessEntityNameExpression:()=>mS,isPropertyAccessExpression:()=>Br,isPropertyAccessOrQualifiedName:()=>ZA,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>KA,isPropertyAssignment:()=>_s,isPropertyDeclaration:()=>oo,isPropertyName:()=>zl,isPropertyNameLiteral:()=>P0,isPropertySignature:()=>Zl,isProtoSetter:()=>JT,isPrototypeAccess:()=>$l,isPrototypePropertyAssignment:()=>_I,isPunctuation:()=>NT,isPushOrUnshiftIdentifier:()=>QI,isQualifiedName:()=>M_,isQuestionDotToken:()=>XL,isQuestionOrExclamationToken:()=>VR,isQuestionOrPlusOrMinusToken:()=>XR,isQuestionToken:()=>Pl,isRawSourceMap:()=>isRawSourceMap,isReadonlyKeyword:()=>qx,isReadonlyKeywordOrPlusOrMinusToken:()=>GR,isRecognizedTripleSlashComment:()=>hD,isReferenceFileLocation:()=>isReferenceFileLocation,isReferencedFile:()=>isReferencedFile,isRegularExpressionLiteral:()=>UL,isRequireCall:()=>Wl,isRequireVariableStatement:()=>aT,isRestParameter:()=>E3,isRestTypeNode:()=>Yx,isReturnStatement:()=>kJ,isReturnStatementWithFixablePromiseHandler:()=>isReturnStatementWithFixablePromiseHandler,isRightSideOfAccessExpression:()=>hS,isRightSideOfPropertyAccess:()=>isRightSideOfPropertyAccess,isRightSideOfQualifiedName:()=>isRightSideOfQualifiedName,isRightSideOfQualifiedNameOrPropertyAccess:()=>qN,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>zN,isRootedDiskPath:()=>v_,isSameEntityName:()=>u_,isSatisfiesExpression:()=>hJ,isScopeMarker:()=>b3,isSemicolonClassElement:()=>bJ,isSetAccessor:()=>Zc,isSetAccessorDeclaration:()=>Qo,isShebangTrivia:()=>xg,isShorthandAmbientModuleSymbol:()=>PD,isShorthandPropertyAssignment:()=>_u,isSignedNumericLiteral:()=>T2,isSimpleCopiableExpression:()=>isSimpleCopiableExpression,isSimpleInlineableExpression:()=>isSimpleInlineableExpression,isSingleOrDoubleQuote:()=>KP,isSourceFile:()=>ii,isSourceFileFromLibrary:()=>isSourceFileFromLibrary,isSourceFileJS:()=>c2,isSourceFileNotJS:()=>GP,isSourceFileNotJson:()=>$P,isSourceMapping:()=>isSourceMapping,isSpecialPropertyDeclaration:()=>cI,isSpreadAssignment:()=>h8,isSpreadElement:()=>y6,isStatement:()=>v3,isStatementButNotDeclaration:()=>wk,isStatementOrBlock:()=>T3,isStatementWithLocals:()=>_D,isStatic:()=>N0,isStaticModifier:()=>ZL,isString:()=>b_,isStringAKeyword:()=>FI,isStringANonContextualKeyword:()=>jI,isStringAndEmptyAnonymousObjectIntersection:()=>isStringAndEmptyAnonymousObjectIntersection,isStringDoubleQuoted:()=>ZP,isStringLiteral:()=>mn,isStringLiteralLike:()=>Kn,isStringLiteralOrJsxExpression:()=>Dk,isStringLiteralOrTemplate:()=>isStringLiteralOrTemplate,isStringOrNumericLiteralLike:()=>Qi,isStringOrRegularExpressionOrTemplateLiteral:()=>isStringOrRegularExpressionOrTemplateLiteral,isStringTextContainingNode:()=>FA,isSuperCall:()=>oP,isSuperKeyword:()=>qf,isSuperOrSuperProperty:()=>LP,isSuperProperty:()=>gd,isSupportedSourceFileName:()=>IM,isSwitchStatement:()=>PJ,isSyntaxList:()=>dR,isSyntheticExpression:()=>yJ,isSyntheticReference:()=>UJ,isTagName:()=>isTagName,isTaggedTemplateExpression:()=>o8,isTaggedTemplateTag:()=>isTaggedTemplateTag,isTemplateExpression:()=>fJ,isTemplateHead:()=>qL,isTemplateLiteral:()=>rk,isTemplateLiteralKind:()=>Sl,isTemplateLiteralToken:()=>MA,isTemplateLiteralTypeNode:()=>aJ,isTemplateLiteralTypeSpan:()=>iJ,isTemplateMiddle:()=>zL,isTemplateMiddleOrTemplateTail:()=>LA,isTemplateSpan:()=>gJ,isTemplateTail:()=>WL,isTextWhiteSpaceLike:()=>isTextWhiteSpaceLike,isThis:()=>isThis,isThisContainerOrFunctionBlock:()=>PP,isThisIdentifier:()=>gm,isThisInTypeQuery:()=>wN,isThisInitializedDeclaration:()=>RP,isThisInitializedObjectBindingExpression:()=>jP,isThisProperty:()=>JP,isThisTypeNode:()=>d6,isThisTypeParameter:()=>ax,isThisTypePredicate:()=>SP,isThrowStatement:()=>IJ,isToken:()=>NA,isTokenKind:()=>t3,isTraceEnabled:()=>isTraceEnabled,isTransientSymbol:()=>T0,isTrivia:()=>UI,isTryStatement:()=>NJ,isTupleTypeNode:()=>$x,isTypeAlias:()=>yI,isTypeAliasDeclaration:()=>T6,isTypeAssertionExpression:()=>_J,isTypeDeclaration:()=>ox,isTypeElement:()=>jg,isTypeKeyword:()=>isTypeKeyword,isTypeKeywordToken:()=>isTypeKeywordToken,isTypeKeywordTokenOrIdentifier:()=>isTypeKeywordTokenOrIdentifier,isTypeLiteralNode:()=>Am,isTypeNode:()=>g0,isTypeNodeKind:()=>DS,isTypeOfExpression:()=>lJ,isTypeOnlyExportDeclaration:()=>n3,isTypeOnlyImportDeclaration:()=>r3,isTypeOnlyImportOrExportDeclaration:()=>RA,isTypeOperatorNode:()=>r8,isTypeParameterDeclaration:()=>No,isTypePredicateNode:()=>Hx,isTypeQueryNode:()=>Gx,isTypeReferenceNode:()=>R_,isTypeReferenceType:()=>Ok,isTypeUsableAsPropertyName:()=>vL,isUMDExportSymbol:()=>kO,isUnaryExpression:()=>h3,isUnaryExpressionWithWrite:()=>nk,isUnicodeIdentifierStart:()=>n4,isUnionTypeNode:()=>Kx,isUnparsedNode:()=>PA,isUnparsedPrepend:()=>$J,isUnparsedSource:()=>YJ,isUnparsedTextLike:()=>e3,isUrl:()=>SE,isValidBigIntString:()=>ZS,isValidESSymbolDeclaration:()=>hP,isValidTypeOnlyAliasUseSite:()=>VM,isValueSignatureDeclaration:()=>EI,isVarAwaitUsing:()=>nP,isVarConst:()=>W3,isVarUsing:()=>iP,isVariableDeclaration:()=>ki,isVariableDeclarationInVariableStatement:()=>G3,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>fm,isVariableDeclarationInitializedToRequire:()=>nT,isVariableDeclarationList:()=>v6,isVariableLike:()=>n2,isVariableLikeOrAccessor:()=>dP,isVariableStatement:()=>as,isVoidExpression:()=>h6,isWatchSet:()=>hO,isWhileStatement:()=>xJ,isWhiteSpaceLike:()=>Vi,isWhiteSpaceSingleLine:()=>Io,isWithStatement:()=>DJ,isWriteAccess:()=>SO,isWriteOnlyAccess:()=>TO,isYieldExpression:()=>dJ,jsxModeNeedsExplicitImport:()=>jsxModeNeedsExplicitImport,keywordPart:()=>keywordPart,last:()=>ka,lastOrUndefined:()=>wi,length:()=>Ka,libMap:()=>libMap,libs:()=>libs,lineBreakPart:()=>lineBreakPart,linkNamePart:()=>linkNamePart,linkPart:()=>linkPart,linkTextPart:()=>linkTextPart,listFiles:()=>listFiles,loadModuleFromGlobalCache:()=>loadModuleFromGlobalCache,loadWithModeAwareCache:()=>loadWithModeAwareCache,makeIdentifierFromModuleName:()=>ED,makeImport:()=>makeImport,makeImportIfNecessary:()=>makeImportIfNecessary,makeStringLiteral:()=>makeStringLiteral,mangleScopedPackageName:()=>mangleScopedPackageName,map:()=>Aa,mapAllOrFail:()=>V5,mapDefined:()=>Za,mapDefinedEntries:()=>G5,mapDefinedIterator:()=>H5,mapEntries:()=>K5,mapIterator:()=>q5,mapOneOrMany:()=>mapOneOrMany,mapToDisplayParts:()=>mapToDisplayParts,matchFiles:()=>CM,matchPatternOrExact:()=>jM,matchedText:()=>eE,matchesExclude:()=>matchesExclude,maybeBind:()=>rr,maybeSetLocalizedDiagnosticMessages:()=>NS,memoize:()=>ry,memoizeCached:()=>jC,memoizeOne:()=>Nn,memoizeWeak:()=>RC,metadataHelper:()=>metadataHelper,min:()=>UC,minAndMax:()=>BM,missingFileModifiedTime:()=>missingFileModifiedTime,modifierToFlag:()=>J2,modifiersToFlags:()=>ln,moduleOptionDeclaration:()=>moduleOptionDeclaration,moduleResolutionIsEqualTo:()=>Zk,moduleResolutionNameAndModeGetter:()=>moduleResolutionNameAndModeGetter,moduleResolutionOptionDeclarations:()=>moduleResolutionOptionDeclarations,moduleResolutionSupportsPackageJsonExportsAndImports:()=>q2,moduleResolutionUsesNodeModules:()=>moduleResolutionUsesNodeModules,moduleSpecifiers:()=>ts_moduleSpecifiers_exports,moveEmitHelpers:()=>moveEmitHelpers,moveRangeEnd:()=>eO,moveRangePastDecorators:()=>TS,moveRangePastModifiers:()=>tO,moveRangePos:()=>xd,moveSyntheticComments:()=>moveSyntheticComments,mutateMap:()=>CO,mutateMapSkippingNewValues:()=>ES,needsParentheses:()=>needsParentheses,needsScopeMarker:()=>ck,newCaseClauseTracker:()=>newCaseClauseTracker,newPrivateEnvironment:()=>newPrivateEnvironment,noEmitNotification:()=>noEmitNotification,noEmitSubstitution:()=>noEmitSubstitution,noTransformers:()=>noTransformers,noTruncationMaximumTruncationLength:()=>fx,nodeCanBeDecorated:()=>Y3,nodeHasName:()=>I4,nodeIsDecorated:()=>l_,nodeIsMissing:()=>zi,nodeIsPresent:()=>wl,nodeIsSynthesized:()=>Ta,nodeModuleNameResolver:()=>nodeModuleNameResolver,nodeModulesPathPart:()=>nodeModulesPathPart,nodeNextJsonConfigResolver:()=>nodeNextJsonConfigResolver,nodeOrChildIsDecorated:()=>A0,nodeOverlapsWithStartEnd:()=>nodeOverlapsWithStartEnd,nodePosToString:()=>lD,nodeSeenTracker:()=>nodeSeenTracker,nodeStartsNewLexicalEnvironment:()=>KI,nodeToDisplayParts:()=>nodeToDisplayParts,noop:()=>Rn,noopFileWatcher:()=>noopFileWatcher,normalizePath:()=>pn,normalizeSlashes:()=>qo,not:()=>nE,notImplemented:()=>JC,notImplementedResolver:()=>notImplementedResolver,nullNodeConverters:()=>nullNodeConverters,nullParenthesizerRules:()=>i6,nullTransformationContext:()=>nullTransformationContext,objectAllocator:()=>wt,operatorPart:()=>operatorPart,optionDeclarations:()=>optionDeclarations,optionMapToObject:()=>optionMapToObject,optionsAffectingProgramStructure:()=>optionsAffectingProgramStructure,optionsForBuild:()=>optionsForBuild,optionsForWatch:()=>optionsForWatch,optionsHaveChanges:()=>E_,optionsHaveModuleResolutionChanges:()=>A3,or:()=>ug,orderedRemoveItem:()=>YC,orderedRemoveItemAt:()=>Jv,outFile:()=>A2,packageIdToPackageName:()=>k3,packageIdToString:()=>rD,padLeft:()=>Uv,padRight:()=>sE,paramHelper:()=>paramHelper,parameterIsThisKeyword:()=>Xl,parameterNamePart:()=>parameterNamePart,parseBaseNodeFactory:()=>tg,parseBigInt:()=>WM,parseBuildCommand:()=>parseBuildCommand,parseCommandLine:()=>parseCommandLine,parseCommandLineWorker:()=>parseCommandLineWorker,parseConfigFileTextToJson:()=>parseConfigFileTextToJson,parseConfigFileWithSystem:()=>parseConfigFileWithSystem,parseConfigHostFromCompilerHostLike:()=>parseConfigHostFromCompilerHostLike,parseCustomTypeOption:()=>parseCustomTypeOption,parseIsolatedEntityName:()=>Lj,parseIsolatedJSDocComment:()=>Rj,parseJSDocTypeExpressionForTests:()=>jj,parseJsonConfigFileContent:()=>parseJsonConfigFileContent,parseJsonSourceFileConfigFileContent:()=>parseJsonSourceFileConfigFileContent,parseJsonText:()=>Jj,parseListTypeOption:()=>parseListTypeOption,parseNodeFactory:()=>z_,parseNodeModuleFromPath:()=>parseNodeModuleFromPath,parsePackageName:()=>parsePackageName,parsePseudoBigInt:()=>xm,parseValidBigInt:()=>KS,patchWriteFileEnsuringDirectory:()=>patchWriteFileEnsuringDirectory,pathContainsNodeModules:()=>pathContainsNodeModules,pathIsAbsolute:()=>mg,pathIsBareSpecifier:()=>wE,pathIsRelative:()=>rs,patternText:()=>ZC,perfLogger:()=>Kf,performIncrementalCompilation:()=>performIncrementalCompilation,performance:()=>ts_performance_exports,plainJSErrors:()=>plainJSErrors,positionBelongsToNode:()=>positionBelongsToNode,positionIsASICandidate:()=>positionIsASICandidate,positionIsSynthesized:()=>Oa,positionsAreOnSameLine:()=>P_,preProcessFile:()=>preProcessFile,probablyUsesSemicolons:()=>probablyUsesSemicolons,processCommentPragmas:()=>G8,processPragmasIntoFields:()=>X8,processTaggedTemplateExpression:()=>processTaggedTemplateExpression,programContainsEsModules:()=>programContainsEsModules,programContainsModules:()=>programContainsModules,projectReferenceIsEqualTo:()=>Kk,propKeyHelper:()=>propKeyHelper,propertyNamePart:()=>propertyNamePart,pseudoBigIntToString:()=>Q2,punctuationPart:()=>punctuationPart,pushIfUnique:()=>Ol,quote:()=>quote,quotePreferenceFromString:()=>quotePreferenceFromString,rangeContainsPosition:()=>rangeContainsPosition,rangeContainsPositionExclusive:()=>rangeContainsPositionExclusive,rangeContainsRange:()=>rangeContainsRange,rangeContainsRangeExclusive:()=>rangeContainsRangeExclusive,rangeContainsStartEnd:()=>rangeContainsStartEnd,rangeEndIsOnSameLineAsRangeStart:()=>sO,rangeEndPositionsAreOnSameLine:()=>oO,rangeEquals:()=>pC,rangeIsOnSingleLine:()=>iO,rangeOfNode:()=>UM,rangeOfTypeParameters:()=>qM,rangeOverlapsWithStartEnd:()=>rangeOverlapsWithStartEnd,rangeStartIsOnSameLineAsRangeEnd:()=>SS,rangeStartPositionsAreOnSameLine:()=>aO,readBuilderProgram:()=>readBuilderProgram,readConfigFile:()=>readConfigFile,readHelper:()=>readHelper,readJson:()=>ZN,readJsonConfigFile:()=>readJsonConfigFile,readJsonOrUndefined:()=>gS,realizeDiagnostics:()=>realizeDiagnostics,reduceEachLeadingCommentRange:()=>i4,reduceEachTrailingCommentRange:()=>a4,reduceLeft:()=>Rd,reduceLeftIterator:()=>L5,reducePathComponents:()=>Da,refactor:()=>ts_refactor_exports,regExpEscape:()=>SM,relativeComplement:()=>cC,removeAllComments:()=>removeAllComments,removeEmitHelper:()=>removeEmitHelper,removeExtension:()=>$S,removeFileExtension:()=>Al,removeIgnoredPath:()=>removeIgnoredPath,removeMinAndVersionNumbers:()=>QC,removeOptionality:()=>removeOptionality,removePrefix:()=>tE,removeSuffix:()=>XC,removeTrailingDirectorySeparator:()=>S_,repeatString:()=>repeatString,replaceElement:()=>yC,resolutionExtensionIsTSOrJson:()=>LM,resolveConfigFileProjectName:()=>resolveConfigFileProjectName,resolveJSModule:()=>resolveJSModule,resolveLibrary:()=>resolveLibrary,resolveModuleName:()=>resolveModuleName,resolveModuleNameFromCache:()=>resolveModuleNameFromCache,resolvePackageNameToPackageJson:()=>resolvePackageNameToPackageJson,resolvePath:()=>d0,resolveProjectReferencePath:()=>resolveProjectReferencePath,resolveTripleslashReference:()=>resolveTripleslashReference,resolveTypeReferenceDirective:()=>resolveTypeReferenceDirective,resolvingEmptyArray:()=>ux,restHelper:()=>restHelper,returnFalse:()=>$f,returnNoopFileWatcher:()=>returnNoopFileWatcher,returnTrue:()=>Pv,returnUndefined:()=>LC,returnsPromise:()=>returnsPromise,runInitializersHelper:()=>runInitializersHelper,sameFlatMap:()=>Tv,sameMap:()=>z5,sameMapping:()=>sameMapping,scanShebangTrivia:()=>wg,scanTokenAtPosition:()=>KD,scanner:()=>Fo,screenStartingMessageCodes:()=>screenStartingMessageCodes,semanticDiagnosticsOptionDeclarations:()=>semanticDiagnosticsOptionDeclarations,serializeCompilerOptions:()=>serializeCompilerOptions,server:()=>ts_server_exports,servicesVersion:()=>f7,setCommentRange:()=>setCommentRange,setConfigFileInOptions:()=>setConfigFileInOptions,setConstantValue:()=>setConstantValue,setEachParent:()=>a_,setEmitFlags:()=>setEmitFlags,setFunctionNameHelper:()=>setFunctionNameHelper,setGetSourceFileAsHashVersioned:()=>setGetSourceFileAsHashVersioned,setIdentifierAutoGenerate:()=>setIdentifierAutoGenerate,setIdentifierGeneratedImportReference:()=>setIdentifierGeneratedImportReference,setIdentifierTypeArguments:()=>setIdentifierTypeArguments,setInternalEmitFlags:()=>setInternalEmitFlags,setLocalizedDiagnosticMessages:()=>IS,setModuleDefaultHelper:()=>setModuleDefaultHelper,setNodeFlags:()=>YM,setObjectAllocator:()=>PS,setOriginalNode:()=>Xr,setParent:()=>Xi,setParentRecursive:()=>tx,setPrivateIdentifier:()=>setPrivateIdentifier,setResolvedModule:()=>$k,setResolvedTypeReferenceDirective:()=>Qk,setSnippetElement:()=>setSnippetElement,setSourceMapRange:()=>setSourceMapRange,setStackTraceLimit:()=>setStackTraceLimit,setStartsOnNewLine:()=>setStartsOnNewLine,setSyntheticLeadingComments:()=>setSyntheticLeadingComments,setSyntheticTrailingComments:()=>setSyntheticTrailingComments,setSys:()=>setSys,setSysLog:()=>setSysLog,setTextRange:()=>Ve,setTextRangeEnd:()=>ex,setTextRangePos:()=>Cd,setTextRangePosEnd:()=>Ya,setTextRangePosWidth:()=>Ed,setTokenSourceMapRange:()=>setTokenSourceMapRange,setTypeNode:()=>setTypeNode,setUILocale:()=>Mv,setValueDeclaration:()=>lI,shouldAllowImportingTsExtension:()=>shouldAllowImportingTsExtension,shouldPreserveConstEnums:()=>sM,shouldResolveJsRequire:()=>iM,shouldUseUriStyleNodeCoreModules:()=>shouldUseUriStyleNodeCoreModules,showModuleSpecifier:()=>DO,signatureHasLiteralTypes:()=>signatureHasLiteralTypes,signatureHasRestParameter:()=>signatureHasRestParameter,signatureToDisplayParts:()=>signatureToDisplayParts,single:()=>mC,singleElementArray:()=>Qf,singleIterator:()=>Q5,singleOrMany:()=>hC,singleOrUndefined:()=>Jd,skipAlias:()=>bO,skipAssertions:()=>OR,skipConstraint:()=>skipConstraint,skipOuterExpressions:()=>ls,skipParentheses:()=>Gl,skipPartiallyEmittedExpressions:()=>rm,skipTrivia:()=>Nt,skipTypeChecking:()=>zM,skipTypeParentheses:()=>DI,skipWhile:()=>cE,sliceAfter:()=>FM,some:()=>mt,sort:()=>Xf,sortAndDeduplicate:()=>xv,sortAndDeduplicateDiagnostics:()=>XE,sourceFileAffectingCompilerOptions:()=>sourceFileAffectingCompilerOptions,sourceFileMayBeEmitted:()=>I0,sourceMapCommentRegExp:()=>sourceMapCommentRegExp,sourceMapCommentRegExpDontCareLineStart:()=>sourceMapCommentRegExpDontCareLineStart,spacePart:()=>spacePart,spanMap:()=>Y5,spreadArrayHelper:()=>spreadArrayHelper,stableSort:()=>Ev,startEndContainsRange:()=>startEndContainsRange,startEndOverlapsWithStartEnd:()=>startEndOverlapsWithStartEnd,startOnNewLine:()=>Fm,startTracing:()=>startTracing,startsWith:()=>Fr,startsWithDirectory:()=>OE,startsWithUnderscore:()=>startsWithUnderscore,startsWithUseStrict:()=>P8,stringContains:()=>eo,stringContainsAt:()=>stringContainsAt,stringToToken:()=>Rl,stripQuotes:()=>_N,supportedDeclarationExtensions:()=>n6,supportedJSExtensions:()=>H0,supportedJSExtensionsFlat:()=>r6,supportedLocaleDirectories:()=>Hg,supportedTSExtensions:()=>Ro,supportedTSExtensionsFlat:()=>t6,supportedTSImplementationExtensions:()=>Nx,suppressLeadingAndTrailingTrivia:()=>suppressLeadingAndTrailingTrivia,suppressLeadingTrivia:()=>suppressLeadingTrivia,suppressTrailingTrivia:()=>suppressTrailingTrivia,symbolEscapedNameNoDefault:()=>symbolEscapedNameNoDefault,symbolName:()=>hd,symbolNameNoDefault:()=>symbolNameNoDefault,symbolPart:()=>symbolPart,symbolToDisplayParts:()=>symbolToDisplayParts,syntaxMayBeASICandidate:()=>syntaxMayBeASICandidate,syntaxRequiresTrailingSemicolonOrASI:()=>syntaxRequiresTrailingSemicolonOrASI,sys:()=>f0,sysLog:()=>sysLog,tagNamesAreEquivalent:()=>Ti,takeWhile:()=>_E,targetOptionDeclaration:()=>targetOptionDeclaration,templateObjectHelper:()=>templateObjectHelper,testFormatSettings:()=>testFormatSettings,textChangeRangeIsUnchanged:()=>w4,textChangeRangeNewSpan:()=>Qs,textChanges:()=>ts_textChanges_exports,textOrKeywordPart:()=>textOrKeywordPart,textPart:()=>textPart,textRangeContainsPositionInclusive:()=>QE,textSpanContainsPosition:()=>$E,textSpanContainsTextSpan:()=>YE,textSpanEnd:()=>Kt,textSpanIntersection:()=>x4,textSpanIntersectsWith:()=>eA,textSpanIntersectsWithPosition:()=>tA,textSpanIntersectsWithTextSpan:()=>ZE,textSpanIsEmpty:()=>T4,textSpanOverlap:()=>S4,textSpanOverlapsWith:()=>KE,textSpansEqual:()=>textSpansEqual,textToKeywordObj:()=>cl,timestamp:()=>Sa,toArray:()=>If,toBuilderFileEmit:()=>toBuilderFileEmit,toBuilderStateFileInfoForMultiEmit:()=>toBuilderStateFileInfoForMultiEmit,toEditorSettings:()=>sl,toFileNameLowerCase:()=>Nv,toLowerCase:()=>Iv,toPath:()=>xi,toProgramEmitPending:()=>toProgramEmitPending,tokenIsIdentifierOrKeyword:()=>kt,tokenIsIdentifierOrKeywordOrGreaterThan:()=>r4,tokenToString:()=>nr,trace:()=>trace,tracing:()=>xa,tracingEnabled:()=>tracingEnabled,transform:()=>transform,transformClassFields:()=>transformClassFields,transformDeclarations:()=>transformDeclarations,transformECMAScriptModule:()=>transformECMAScriptModule,transformES2015:()=>transformES2015,transformES2016:()=>transformES2016,transformES2017:()=>transformES2017,transformES2018:()=>transformES2018,transformES2019:()=>transformES2019,transformES2020:()=>transformES2020,transformES2021:()=>transformES2021,transformES5:()=>transformES5,transformESDecorators:()=>transformESDecorators,transformESNext:()=>transformESNext,transformGenerators:()=>transformGenerators,transformJsx:()=>transformJsx,transformLegacyDecorators:()=>transformLegacyDecorators,transformModule:()=>transformModule,transformNamedEvaluation:()=>transformNamedEvaluation,transformNodeModule:()=>transformNodeModule,transformNodes:()=>transformNodes,transformSystemModule:()=>transformSystemModule,transformTypeScript:()=>transformTypeScript,transpile:()=>transpile,transpileModule:()=>transpileModule,transpileOptionValueCompilerOptions:()=>transpileOptionValueCompilerOptions,trimString:()=>qd,trimStringEnd:()=>n_,trimStringStart:()=>gl,tryAddToSet:()=>$5,tryAndIgnoreErrors:()=>tryAndIgnoreErrors,tryCast:()=>On,tryDirectoryExists:()=>tryDirectoryExists,tryExtractTSExtension:()=>XN,tryFileExists:()=>tryFileExists,tryGetClassExtendingExpressionWithTypeArguments:()=>fS,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>dS,tryGetDirectories:()=>tryGetDirectories,tryGetExtensionFromPath:()=>X2,tryGetImportFromModuleSpecifier:()=>pT,tryGetJSDocSatisfiesTypeNode:()=>lx,tryGetModuleNameFromFile:()=>M8,tryGetModuleSpecifierFromDeclaration:()=>pI,tryGetNativePerformanceHooks:()=>mE,tryGetPropertyAccessOrIdentifierToString:()=>J0,tryGetPropertyNameOfBindingOrAssignmentElement:()=>J8,tryGetSourceMappingURL:()=>tryGetSourceMappingURL,tryGetTextOfPropertyName:()=>Qg,tryIOAndConsumeErrors:()=>tryIOAndConsumeErrors,tryParsePattern:()=>QS,tryParsePatterns:()=>MM,tryParseRawSourceMap:()=>tryParseRawSourceMap,tryReadDirectory:()=>tryReadDirectory,tryReadFile:()=>tryReadFile,tryRemoveDirectoryPrefix:()=>TM,tryRemoveExtension:()=>XS,tryRemovePrefix:()=>Fv,tryRemoveSuffix:()=>$C,typeAcquisitionDeclarations:()=>typeAcquisitionDeclarations,typeAliasNamePart:()=>typeAliasNamePart,typeDirectiveIsEqualTo:()=>nD,typeKeywords:()=>typeKeywords,typeParameterNamePart:()=>typeParameterNamePart,typeReferenceResolutionNameAndModeGetter:()=>typeReferenceResolutionNameAndModeGetter,typeToDisplayParts:()=>typeToDisplayParts,unchangedPollThresholds:()=>unchangedPollThresholds,unchangedTextChangeRange:()=>Vg,unescapeLeadingUnderscores:()=>Vo,unmangleScopedPackageName:()=>unmangleScopedPackageName,unorderedRemoveItem:()=>Rv,unorderedRemoveItemAt:()=>cg,unreachableCodeIsError:()=>eM,unusedLabelIsError:()=>tM,unwrapInnermostStatementOfLabel:()=>gP,updateErrorForNoInputFiles:()=>updateErrorForNoInputFiles,updateLanguageServiceSourceFile:()=>l7,updateMissingFilePathsWatch:()=>updateMissingFilePathsWatch,updatePackageJsonWatch:()=>updatePackageJsonWatch,updateResolutionField:()=>updateResolutionField,updateSharedExtendedConfigFileWatcher:()=>updateSharedExtendedConfigFileWatcher,updateSourceFile:()=>q6,updateWatchingWildcardDirectories:()=>updateWatchingWildcardDirectories,usesExtensionsOnImports:()=>GS,usingSingleLineStringWriter:()=>Gk,utf16EncodeAsString:()=>Of,validateLocaleAndSetLanguage:()=>oA,valuesHelper:()=>valuesHelper,version:()=>Gf,versionMajorMinor:()=>yv,visitArray:()=>visitArray,visitCommaListElements:()=>visitCommaListElements,visitEachChild:()=>visitEachChild,visitFunctionBody:()=>visitFunctionBody,visitIterationBody:()=>visitIterationBody,visitLexicalEnvironment:()=>visitLexicalEnvironment,visitNode:()=>visitNode,visitNodes:()=>visitNodes2,visitParameterList:()=>visitParameterList,walkUpBindingElementsAndPatterns:()=>k4,walkUpLexicalEnvironments:()=>walkUpLexicalEnvironments,walkUpOuterExpressions:()=>NR,walkUpParenthesizedExpressions:()=>ST,walkUpParenthesizedTypes:()=>AI,walkUpParenthesizedTypesAndGetParentAndChild:()=>kI,whitespaceOrMapCommentRegExp:()=>whitespaceOrMapCommentRegExp,writeCommentRange:()=>IN,writeFile:()=>bN,writeFileEnsuringDirectories:()=>vN,zipToModeAwareCache:()=>zipToModeAwareCache,zipWith:()=>ey});var mv=Vt({"src/typescript/_namespaces/ts.ts"(){"use strict";Dr(),K8(),w7(),AB()}}),kB=P5({"src/typescript/typescript.ts"(e,t){mv(),mv(),typeof console<"u"&&(N.loggingHost={log(r,a){switch(r){case 1:return console.error(a);case 2:return console.warn(a);case 3:return console.log(a);case 4:return console.log(a)}}}),t.exports=C7}});E7.exports=kB()});var V6=ut(A7=>{A7.typescriptVersionIsAtLeast=new Proxy({},{get:()=>!0})});var H6=ut(ai=>{"use strict";var DB=ai&&ai.__createBinding||(Object.create?function(e,t,r,a){a===void 0&&(a=r);var _=Object.getOwnPropertyDescriptor(t,r);(!_||("get"in _?!t.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,_)}:function(e,t,r,a){a===void 0&&(a=r),e[a]=t[r]}),PB=ai&&ai.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),IB=ai&&ai.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&DB(t,e,r);return PB(t,e),t};Object.defineProperty(ai,"__esModule",{value:!0});ai.getDecorators=ai.getModifiers=void 0;var W_=IB(Dt()),NB=V6(),k7=NB.typescriptVersionIsAtLeast["4.8"];function OB(e,t=!1){var r;if(e!=null){if(k7){if(t||W_.canHaveModifiers(e)){let a=W_.getModifiers(e);return a?Array.from(a):void 0}return}return(r=e.modifiers)==null?void 0:r.filter(a=>!W_.isDecorator(a))}}ai.getModifiers=OB;function MB(e,t=!1){var r;if(e!=null){if(k7){if(t||W_.canHaveDecorators(e)){let a=W_.getDecorators(e);return a?Array.from(a):void 0}return}return(r=e.decorators)==null?void 0:r.filter(W_.isDecorator)}}ai.getDecorators=MB});var D7=ut(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});Bm.xhtmlEntities=void 0;Bm.xhtmlEntities={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}});var G6=ut(V_=>{"use strict";Object.defineProperty(V_,"__esModule",{value:!0});V_.AST_TOKEN_TYPES=V_.AST_NODE_TYPES=void 0;var P7;(function(e){e.AccessorProperty="AccessorProperty",e.ArrayExpression="ArrayExpression",e.ArrayPattern="ArrayPattern",e.ArrowFunctionExpression="ArrowFunctionExpression",e.AssignmentExpression="AssignmentExpression",e.AssignmentPattern="AssignmentPattern",e.AwaitExpression="AwaitExpression",e.BinaryExpression="BinaryExpression",e.BlockStatement="BlockStatement",e.BreakStatement="BreakStatement",e.CallExpression="CallExpression",e.CatchClause="CatchClause",e.ChainExpression="ChainExpression",e.ClassBody="ClassBody",e.ClassDeclaration="ClassDeclaration",e.ClassExpression="ClassExpression",e.ConditionalExpression="ConditionalExpression",e.ContinueStatement="ContinueStatement",e.DebuggerStatement="DebuggerStatement",e.Decorator="Decorator",e.DoWhileStatement="DoWhileStatement",e.EmptyStatement="EmptyStatement",e.ExportAllDeclaration="ExportAllDeclaration",e.ExportDefaultDeclaration="ExportDefaultDeclaration",e.ExportNamedDeclaration="ExportNamedDeclaration",e.ExportSpecifier="ExportSpecifier",e.ExpressionStatement="ExpressionStatement",e.ForInStatement="ForInStatement",e.ForOfStatement="ForOfStatement",e.ForStatement="ForStatement",e.FunctionDeclaration="FunctionDeclaration",e.FunctionExpression="FunctionExpression",e.Identifier="Identifier",e.IfStatement="IfStatement",e.ImportAttribute="ImportAttribute",e.ImportDeclaration="ImportDeclaration",e.ImportDefaultSpecifier="ImportDefaultSpecifier",e.ImportExpression="ImportExpression",e.ImportNamespaceSpecifier="ImportNamespaceSpecifier",e.ImportSpecifier="ImportSpecifier",e.JSXAttribute="JSXAttribute",e.JSXClosingElement="JSXClosingElement",e.JSXClosingFragment="JSXClosingFragment",e.JSXElement="JSXElement",e.JSXEmptyExpression="JSXEmptyExpression",e.JSXExpressionContainer="JSXExpressionContainer",e.JSXFragment="JSXFragment",e.JSXIdentifier="JSXIdentifier",e.JSXMemberExpression="JSXMemberExpression",e.JSXNamespacedName="JSXNamespacedName",e.JSXOpeningElement="JSXOpeningElement",e.JSXOpeningFragment="JSXOpeningFragment",e.JSXSpreadAttribute="JSXSpreadAttribute",e.JSXSpreadChild="JSXSpreadChild",e.JSXText="JSXText",e.LabeledStatement="LabeledStatement",e.Literal="Literal",e.LogicalExpression="LogicalExpression",e.MemberExpression="MemberExpression",e.MetaProperty="MetaProperty",e.MethodDefinition="MethodDefinition",e.NewExpression="NewExpression",e.ObjectExpression="ObjectExpression",e.ObjectPattern="ObjectPattern",e.PrivateIdentifier="PrivateIdentifier",e.Program="Program",e.Property="Property",e.PropertyDefinition="PropertyDefinition",e.RestElement="RestElement",e.ReturnStatement="ReturnStatement",e.SequenceExpression="SequenceExpression",e.SpreadElement="SpreadElement",e.StaticBlock="StaticBlock",e.Super="Super",e.SwitchCase="SwitchCase",e.SwitchStatement="SwitchStatement",e.TaggedTemplateExpression="TaggedTemplateExpression",e.TemplateElement="TemplateElement",e.TemplateLiteral="TemplateLiteral",e.ThisExpression="ThisExpression",e.ThrowStatement="ThrowStatement",e.TryStatement="TryStatement",e.UnaryExpression="UnaryExpression",e.UpdateExpression="UpdateExpression",e.VariableDeclaration="VariableDeclaration",e.VariableDeclarator="VariableDeclarator",e.WhileStatement="WhileStatement",e.WithStatement="WithStatement",e.YieldExpression="YieldExpression",e.TSAbstractAccessorProperty="TSAbstractAccessorProperty",e.TSAbstractKeyword="TSAbstractKeyword",e.TSAbstractMethodDefinition="TSAbstractMethodDefinition",e.TSAbstractPropertyDefinition="TSAbstractPropertyDefinition",e.TSAnyKeyword="TSAnyKeyword",e.TSArrayType="TSArrayType",e.TSAsExpression="TSAsExpression",e.TSAsyncKeyword="TSAsyncKeyword",e.TSBigIntKeyword="TSBigIntKeyword",e.TSBooleanKeyword="TSBooleanKeyword",e.TSCallSignatureDeclaration="TSCallSignatureDeclaration",e.TSClassImplements="TSClassImplements",e.TSConditionalType="TSConditionalType",e.TSConstructorType="TSConstructorType",e.TSConstructSignatureDeclaration="TSConstructSignatureDeclaration",e.TSDeclareFunction="TSDeclareFunction",e.TSDeclareKeyword="TSDeclareKeyword",e.TSEmptyBodyFunctionExpression="TSEmptyBodyFunctionExpression",e.TSEnumDeclaration="TSEnumDeclaration",e.TSEnumMember="TSEnumMember",e.TSExportAssignment="TSExportAssignment",e.TSExportKeyword="TSExportKeyword",e.TSExternalModuleReference="TSExternalModuleReference",e.TSFunctionType="TSFunctionType",e.TSInstantiationExpression="TSInstantiationExpression",e.TSImportEqualsDeclaration="TSImportEqualsDeclaration",e.TSImportType="TSImportType",e.TSIndexedAccessType="TSIndexedAccessType",e.TSIndexSignature="TSIndexSignature",e.TSInferType="TSInferType",e.TSInterfaceBody="TSInterfaceBody",e.TSInterfaceDeclaration="TSInterfaceDeclaration",e.TSInterfaceHeritage="TSInterfaceHeritage",e.TSIntersectionType="TSIntersectionType",e.TSIntrinsicKeyword="TSIntrinsicKeyword",e.TSLiteralType="TSLiteralType",e.TSMappedType="TSMappedType",e.TSMethodSignature="TSMethodSignature",e.TSModuleBlock="TSModuleBlock",e.TSModuleDeclaration="TSModuleDeclaration",e.TSNamedTupleMember="TSNamedTupleMember",e.TSNamespaceExportDeclaration="TSNamespaceExportDeclaration",e.TSNeverKeyword="TSNeverKeyword",e.TSNonNullExpression="TSNonNullExpression",e.TSNullKeyword="TSNullKeyword",e.TSNumberKeyword="TSNumberKeyword",e.TSObjectKeyword="TSObjectKeyword",e.TSOptionalType="TSOptionalType",e.TSParameterProperty="TSParameterProperty",e.TSPrivateKeyword="TSPrivateKeyword",e.TSPropertySignature="TSPropertySignature",e.TSProtectedKeyword="TSProtectedKeyword",e.TSPublicKeyword="TSPublicKeyword",e.TSQualifiedName="TSQualifiedName",e.TSReadonlyKeyword="TSReadonlyKeyword",e.TSRestType="TSRestType",e.TSSatisfiesExpression="TSSatisfiesExpression",e.TSStaticKeyword="TSStaticKeyword",e.TSStringKeyword="TSStringKeyword",e.TSSymbolKeyword="TSSymbolKeyword",e.TSTemplateLiteralType="TSTemplateLiteralType",e.TSThisType="TSThisType",e.TSTupleType="TSTupleType",e.TSTypeAliasDeclaration="TSTypeAliasDeclaration",e.TSTypeAnnotation="TSTypeAnnotation",e.TSTypeAssertion="TSTypeAssertion",e.TSTypeLiteral="TSTypeLiteral",e.TSTypeOperator="TSTypeOperator",e.TSTypeParameter="TSTypeParameter",e.TSTypeParameterDeclaration="TSTypeParameterDeclaration",e.TSTypeParameterInstantiation="TSTypeParameterInstantiation",e.TSTypePredicate="TSTypePredicate",e.TSTypeQuery="TSTypeQuery",e.TSTypeReference="TSTypeReference",e.TSUndefinedKeyword="TSUndefinedKeyword",e.TSUnionType="TSUnionType",e.TSUnknownKeyword="TSUnknownKeyword",e.TSVoidKeyword="TSVoidKeyword"})(P7||(V_.AST_NODE_TYPES=P7={}));var I7;(function(e){e.Boolean="Boolean",e.Identifier="Identifier",e.JSXIdentifier="JSXIdentifier",e.JSXText="JSXText",e.Keyword="Keyword",e.Null="Null",e.Numeric="Numeric",e.Punctuator="Punctuator",e.RegularExpression="RegularExpression",e.String="String",e.Template="Template",e.Block="Block",e.Line="Line"})(I7||(V_.AST_TOKEN_TYPES=I7={}))});var O7=ut(N7=>{"use strict";Object.defineProperty(N7,"__esModule",{value:!0})});var L7=ut(M7=>{"use strict";Object.defineProperty(M7,"__esModule",{value:!0})});var J7=ut(Ki=>{"use strict";var LB=Ki&&Ki.__createBinding||(Object.create?function(e,t,r,a){a===void 0&&(a=r);var _=Object.getOwnPropertyDescriptor(t,r);(!_||("get"in _?!t.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,_)}:function(e,t,r,a){a===void 0&&(a=r),e[a]=t[r]}),JB=Ki&&Ki.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),RB=Ki&&Ki.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&LB(t,e,r);return JB(t,e),t};Object.defineProperty(Ki,"__esModule",{value:!0});Ki.TSESTree=void 0;Ki.TSESTree=RB(G6())});var j7=ut(jn=>{"use strict";var jB=jn&&jn.__createBinding||(Object.create?function(e,t,r,a){a===void 0&&(a=r);var _=Object.getOwnPropertyDescriptor(t,r);(!_||("get"in _?!t.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,_)}:function(e,t,r,a){a===void 0&&(a=r),e[a]=t[r]}),X6=jn&&jn.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&jB(t,e,r)};Object.defineProperty(jn,"__esModule",{value:!0});jn.AST_TOKEN_TYPES=jn.AST_NODE_TYPES=void 0;var R7=G6();Object.defineProperty(jn,"AST_NODE_TYPES",{enumerable:!0,get:function(){return R7.AST_NODE_TYPES}});Object.defineProperty(jn,"AST_TOKEN_TYPES",{enumerable:!0,get:function(){return R7.AST_TOKEN_TYPES}});X6(O7(),jn);X6(L7(),jn);X6(J7(),jn)});var B7=ut(F7=>{"use strict";Object.defineProperty(F7,"__esModule",{value:!0})});var q7=ut(U7=>{"use strict";Object.defineProperty(U7,"__esModule",{value:!0})});var Um=ut(hn=>{"use strict";var FB=hn&&hn.__createBinding||(Object.create?function(e,t,r,a){a===void 0&&(a=r);var _=Object.getOwnPropertyDescriptor(t,r);(!_||("get"in _?!t.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,_)}:function(e,t,r,a){a===void 0&&(a=r),e[a]=t[r]}),z7=hn&&hn.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&FB(t,e,r)};Object.defineProperty(hn,"__esModule",{value:!0});hn.TSESTree=hn.AST_TOKEN_TYPES=hn.AST_NODE_TYPES=void 0;var $6=j7();Object.defineProperty(hn,"AST_NODE_TYPES",{enumerable:!0,get:function(){return $6.AST_NODE_TYPES}});Object.defineProperty(hn,"AST_TOKEN_TYPES",{enumerable:!0,get:function(){return $6.AST_TOKEN_TYPES}});Object.defineProperty(hn,"TSESTree",{enumerable:!0,get:function(){return $6.TSESTree}});z7(B7(),hn);z7(q7(),hn)});var Wm=ut(me=>{"use strict";var BB=me&&me.__createBinding||(Object.create?function(e,t,r,a){a===void 0&&(a=r);var _=Object.getOwnPropertyDescriptor(t,r);(!_||("get"in _?!t.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,_)}:function(e,t,r,a){a===void 0&&(a=r),e[a]=t[r]}),UB=me&&me.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),qB=me&&me.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&BB(t,e,r);return UB(t,e),t};Object.defineProperty(me,"__esModule",{value:!0});me.getNamespaceModifiers=me.nodeCanBeDecorated=me.getContainingFunction=me.nodeIsPresent=me.isThisInTypeQuery=me.isThisIdentifier=me.identifierIsThisKeyword=me.firstDefined=me.nodeHasTokens=me.nodeHasIllegalDecorators=me.createError=me.TSError=me.convertTokens=me.convertToken=me.getTokenType=me.isChildUnwrappableOptionalChain=me.isChainExpression=me.isOptional=me.isComputedProperty=me.unescapeStringLiteralText=me.hasJSXAncestor=me.findFirstMatchingAncestor=me.findNextToken=me.getTSNodeAccessibility=me.getDeclarationKind=me.isJSXToken=me.getRange=me.canContainDirective=me.getLocFor=me.getLineAndCharacterFor=me.getBinaryExpressionType=me.isComment=me.isComma=me.getLastModifier=me.hasModifier=me.isESTreeClassMember=me.getTextForTokenKind=me.isESTreeBinaryOperator=me.isLogicalOperator=void 0;var Qe=qB(Dt()),uu=H6(),zB=D7(),ir=Um(),WB=V6(),W7=WB.typescriptVersionIsAtLeast["5.0"],ye=Qe.SyntaxKind,VB=new Set([ye.BarBarToken,ye.AmpersandAmpersandToken,ye.QuestionQuestionToken]),HB=new Set([Qe.SyntaxKind.EqualsToken,Qe.SyntaxKind.PlusEqualsToken,Qe.SyntaxKind.MinusEqualsToken,Qe.SyntaxKind.AsteriskEqualsToken,Qe.SyntaxKind.AsteriskAsteriskEqualsToken,Qe.SyntaxKind.SlashEqualsToken,Qe.SyntaxKind.PercentEqualsToken,Qe.SyntaxKind.LessThanLessThanEqualsToken,Qe.SyntaxKind.GreaterThanGreaterThanEqualsToken,Qe.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken,Qe.SyntaxKind.AmpersandEqualsToken,Qe.SyntaxKind.BarEqualsToken,Qe.SyntaxKind.BarBarEqualsToken,Qe.SyntaxKind.AmpersandAmpersandEqualsToken,Qe.SyntaxKind.QuestionQuestionEqualsToken,Qe.SyntaxKind.CaretEqualsToken]),GB=new Set([ye.InstanceOfKeyword,ye.InKeyword,ye.AsteriskAsteriskToken,ye.AsteriskToken,ye.SlashToken,ye.PercentToken,ye.PlusToken,ye.MinusToken,ye.AmpersandToken,ye.BarToken,ye.CaretToken,ye.LessThanLessThanToken,ye.GreaterThanGreaterThanToken,ye.GreaterThanGreaterThanGreaterThanToken,ye.AmpersandAmpersandToken,ye.BarBarToken,ye.LessThanToken,ye.LessThanEqualsToken,ye.GreaterThanToken,ye.GreaterThanEqualsToken,ye.EqualsEqualsToken,ye.EqualsEqualsEqualsToken,ye.ExclamationEqualsEqualsToken,ye.ExclamationEqualsToken]);function XB(e){return HB.has(e.kind)}function V7(e){return VB.has(e.kind)}me.isLogicalOperator=V7;function H7(e){return GB.has(e.kind)}me.isESTreeBinaryOperator=H7;function qm(e){return Qe.tokenToString(e)}me.getTextForTokenKind=qm;function $B(e){return e.kind!==ye.SemicolonClassElement}me.isESTreeClassMember=$B;function G7(e,t){let r=(0,uu.getModifiers)(t);return(r==null?void 0:r.some(a=>a.kind===e))===!0}me.hasModifier=G7;function QB(e){let t=(0,uu.getModifiers)(e);return t==null?null:t[t.length-1]??null}me.getLastModifier=QB;function YB(e){return e.kind===ye.CommaToken}me.isComma=YB;function X7(e){return e.kind===ye.SingleLineCommentTrivia||e.kind===ye.MultiLineCommentTrivia}me.isComment=X7;function KB(e){return e.kind===ye.JSDocComment}function ZB(e){if(XB(e))return{type:ir.AST_NODE_TYPES.AssignmentExpression,operator:qm(e.kind)};if(V7(e))return{type:ir.AST_NODE_TYPES.LogicalExpression,operator:qm(e.kind)};if(H7(e))return{type:ir.AST_NODE_TYPES.BinaryExpression,operator:qm(e.kind)};throw new Error(`Unexpected binary operator ${Qe.tokenToString(e.kind)}`)}me.getBinaryExpressionType=ZB;function $7(e,t){let r=t.getLineAndCharacterOfPosition(e);return{line:r.line+1,column:r.character}}me.getLineAndCharacterFor=$7;function Q7(e,t){let[r,a]=e.map(_=>$7(_,t));return{start:r,end:a}}me.getLocFor=Q7;function eU(e){if(e.kind===Qe.SyntaxKind.Block)switch(e.parent.kind){case Qe.SyntaxKind.Constructor:case Qe.SyntaxKind.GetAccessor:case Qe.SyntaxKind.SetAccessor:case Qe.SyntaxKind.ArrowFunction:case Qe.SyntaxKind.FunctionExpression:case Qe.SyntaxKind.FunctionDeclaration:case Qe.SyntaxKind.MethodDeclaration:return!0;default:return!1}return!0}me.canContainDirective=eU;function tU(e,t){return[e.getStart(t),e.getEnd()]}me.getRange=tU;function rU(e){return e.kind>=ye.FirstToken&&e.kind<=ye.LastToken}function Q6(e){return e.kind>=ye.JsxElement&&e.kind<=ye.JsxAttribute}me.isJSXToken=Q6;function nU(e){return e.flags&Qe.NodeFlags.Let?"let":(e.flags&Qe.NodeFlags.AwaitUsing)===Qe.NodeFlags.AwaitUsing?"await using":e.flags&Qe.NodeFlags.Const?"const":e.flags&Qe.NodeFlags.Using?"using":"var"}me.getDeclarationKind=nU;function iU(e){let t=(0,uu.getModifiers)(e);if(t!=null)for(let r of t)switch(r.kind){case ye.PublicKeyword:return"public";case ye.ProtectedKeyword:return"protected";case ye.PrivateKeyword:return"private";default:break}}me.getTSNodeAccessibility=iU;function aU(e,t,r){return a(t);function a(_){return Qe.isToken(_)&&_.pos===e.end?_:nw(_.getChildren(r),p=>(p.pos<=e.pos&&p.end>e.end||p.pos===e.end)&&rw(p,r)?a(p):void 0)}}me.findNextToken=aU;function Y7(e,t){for(;e;){if(t(e))return e;e=e.parent}}me.findFirstMatchingAncestor=Y7;function K7(e){return!!Y7(e,Q6)}me.hasJSXAncestor=K7;function oU(e){return e.replace(/&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g,t=>{let r=t.slice(1,-1);if(r[0]==="#"){let a=r[1]==="x"?parseInt(r.slice(2),16):parseInt(r.slice(1),10);return a>1114111?t:String.fromCodePoint(a)}return zB.xhtmlEntities[r]||t})}me.unescapeStringLiteralText=oU;function sU(e){return e.kind===ye.ComputedPropertyName}me.isComputedProperty=sU;function _U(e){return e.questionToken?e.questionToken.kind===ye.QuestionToken:!1}me.isOptional=_U;function Z7(e){return e.type===ir.AST_NODE_TYPES.ChainExpression}me.isChainExpression=Z7;function cU(e,t){return Z7(t)&&e.expression.kind!==Qe.SyntaxKind.ParenthesizedExpression}me.isChildUnwrappableOptionalChain=cU;function ew(e){let t;if(W7&&e.kind===ye.Identifier?t=Qe.identifierToKeywordKind(e):"originalKeywordKind"in e&&(t=e.originalKeywordKind),t)return t===ye.NullKeyword?ir.AST_TOKEN_TYPES.Null:t>=ye.FirstFutureReservedWord&&t<=ye.LastKeyword?ir.AST_TOKEN_TYPES.Identifier:ir.AST_TOKEN_TYPES.Keyword;if(e.kind>=ye.FirstKeyword&&e.kind<=ye.LastFutureReservedWord)return e.kind===ye.FalseKeyword||e.kind===ye.TrueKeyword?ir.AST_TOKEN_TYPES.Boolean:ir.AST_TOKEN_TYPES.Keyword;if(e.kind>=ye.FirstPunctuation&&e.kind<=ye.LastPunctuation)return ir.AST_TOKEN_TYPES.Punctuator;if(e.kind>=ye.NoSubstitutionTemplateLiteral&&e.kind<=ye.TemplateTail)return ir.AST_TOKEN_TYPES.Template;switch(e.kind){case ye.NumericLiteral:return ir.AST_TOKEN_TYPES.Numeric;case ye.JsxText:return ir.AST_TOKEN_TYPES.JSXText;case ye.StringLiteral:return e.parent.kind===ye.JsxAttribute||e.parent.kind===ye.JsxElement?ir.AST_TOKEN_TYPES.JSXText:ir.AST_TOKEN_TYPES.String;case ye.RegularExpressionLiteral:return ir.AST_TOKEN_TYPES.RegularExpression;case ye.Identifier:case ye.ConstructorKeyword:case ye.GetKeyword:case ye.SetKeyword:default:}return e.kind===ye.Identifier&&(Q6(e.parent)||e.parent.kind===ye.PropertyAccessExpression&&K7(e))?ir.AST_TOKEN_TYPES.JSXIdentifier:ir.AST_TOKEN_TYPES.Identifier}me.getTokenType=ew;function tw(e,t){let r=e.kind===ye.JsxText?e.getFullStart():e.getStart(t),a=e.getEnd(),_=t.text.slice(r,a),p=ew(e),d=[r,a],h=Q7(d,t);return p===ir.AST_TOKEN_TYPES.RegularExpression?{type:p,value:_,range:d,loc:h,regex:{pattern:_.slice(1,_.lastIndexOf("/")),flags:_.slice(_.lastIndexOf("/")+1)}}:{type:p,value:_,range:d,loc:h}}me.convertToken=tw;function lU(e){let t=[];function r(a){if(!(X7(a)||KB(a)))if(rU(a)&&a.kind!==ye.EndOfFileToken){let _=tw(a,e);_&&t.push(_)}else a.getChildren(e).forEach(r)}return r(e),t}me.convertTokens=lU;var zm=class extends Error{constructor(t,r,a){super(t),this.fileName=r,this.location=a,Object.defineProperty(this,"name",{value:new.target.name,enumerable:!1,configurable:!0})}get index(){return this.location.start.offset}get lineNumber(){return this.location.start.line}get column(){return this.location.start.column}};me.TSError=zm;function uU(e,t,r,a=r){let[_,p]=[r,a].map(d=>{let{line:h,character:l}=t.getLineAndCharacterOfPosition(d);return{line:h+1,column:l,offset:d}});return new zm(e,t.fileName,{start:_,end:p})}me.createError=uU;function pU(e){var t;return!!("illegalDecorators"in e&&((t=e.illegalDecorators)!=null&&t.length))}me.nodeHasIllegalDecorators=pU;function rw(e,t){return e.kind===ye.EndOfFileToken?!!e.jsDoc:e.getWidth(t)!==0}me.nodeHasTokens=rw;function nw(e,t){if(e!==void 0)for(let r=0;r=0&&e.kind!==ye.EndOfFileToken}function mU(e){return!dU(e)}me.nodeIsPresent=mU;function hU(e){return Qe.findAncestor(e.parent,Qe.isFunctionLike)}me.getContainingFunction=hU;function yU(e){return G7(ye.AbstractKeyword,e)}function gU(e){if(e.parameters.length&&!Qe.isJSDocSignature(e)){let t=e.parameters[0];if(bU(t))return t}return null}function bU(e){return Y6(e.name)}function vU(e){switch(e.kind){case ye.ClassDeclaration:return!0;case ye.ClassExpression:return!0;case ye.PropertyDeclaration:{let{parent:t}=e;return!!(Qe.isClassDeclaration(t)||Qe.isClassLike(t)&&!yU(e))}case ye.GetAccessor:case ye.SetAccessor:case ye.MethodDeclaration:{let{parent:t}=e;return!!e.body&&(Qe.isClassDeclaration(t)||Qe.isClassLike(t))}case ye.Parameter:{let{parent:t}=e,r=t.parent;return!!t&&"body"in t&&!!t.body&&(t.kind===ye.Constructor||t.kind===ye.MethodDeclaration||t.kind===ye.SetAccessor)&&gU(t)!==e&&!!r&&r.kind===ye.ClassDeclaration}}return!1}me.nodeCanBeDecorated=vU;function TU(e){let t=(0,uu.getModifiers)(e),r=e;for(;(!t||t.length===0)&&Qe.isModuleDeclaration(r.parent)&&r.parent.name;){let a=(0,uu.getModifiers)(r.parent);a&&(a==null?void 0:a.length)>0&&(t=a),r=r.parent}return t}me.getNamespaceModifiers=TU});var Z6=ut(yn=>{"use strict";var SU=yn&&yn.__createBinding||(Object.create?function(e,t,r,a){a===void 0&&(a=r);var _=Object.getOwnPropertyDescriptor(t,r);(!_||("get"in _?!t.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,_)}:function(e,t,r,a){a===void 0&&(a=r),e[a]=t[r]}),xU=yn&&yn.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),wU=yn&&yn.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&SU(t,e,r);return xU(t,e),t},Ne=yn&&yn.__classPrivateFieldGet||function(e,t,r,a){if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?a:r==="a"?a.call(e):a?a.value:t.get(e)},Pe,aw,br,oi,st;Object.defineProperty(yn,"__esModule",{value:!0});yn.Converter=yn.convertError=void 0;var _t=wU(Dt()),Zi=H6(),pe=Wm(),J=Um(),E=_t.SyntaxKind;function CU(e){return(0,pe.createError)("message"in e&&e.message||e.messageText,e.file,e.start)}yn.convertError=CU;var K6=class{constructor(t,r){Pe.add(this),this.esTreeNodeToTSNodeMap=new WeakMap,this.tsNodeToESTreeNodeMap=new WeakMap,this.allowPattern=!1,this.ast=t,this.options={...r}}getASTMaps(){return{esTreeNodeToTSNodeMap:this.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:this.tsNodeToESTreeNodeMap}}convertProgram(){return this.converter(this.ast)}converter(t,r,a){if(!t)return null;Ne(this,Pe,"m",aw).call(this,t);let _=this.allowPattern;a!==void 0&&(this.allowPattern=a);let p=this.convertNode(t,r??t.parent);return this.registerTSNodeInNodeMap(t,p),this.allowPattern=_,p}fixExports(t,r){let _=_t.isModuleDeclaration(t)&&!!(t.flags&_t.NodeFlags.Namespace)?(0,pe.getNamespaceModifiers)(t):(0,Zi.getModifiers)(t);if((_==null?void 0:_[0].kind)===E.ExportKeyword){this.registerTSNodeInNodeMap(t,r);let p=_[0],d=_[1],h=(d==null?void 0:d.kind)===E.DefaultKeyword,l=h?(0,pe.findNextToken)(d,this.ast,this.ast):(0,pe.findNextToken)(p,this.ast,this.ast);if(r.range[0]=l.getStart(this.ast),r.loc=(0,pe.getLocFor)(r.range,this.ast),h)return this.createNode(t,{type:J.AST_NODE_TYPES.ExportDefaultDeclaration,declaration:r,range:[p.getStart(this.ast),r.range[1]],exportKind:"value"});let v=r.type===J.AST_NODE_TYPES.TSInterfaceDeclaration||r.type===J.AST_NODE_TYPES.TSTypeAliasDeclaration,y="declare"in r&&r.declare===!0;return this.createNode(t,{type:J.AST_NODE_TYPES.ExportNamedDeclaration,declaration:r,specifiers:[],source:null,exportKind:v||y?"type":"value",range:[p.getStart(this.ast),r.range[1]],assertions:[]})}return r}registerTSNodeInNodeMap(t,r){r&&this.options.shouldPreserveNodeMaps&&(this.tsNodeToESTreeNodeMap.has(t)||this.tsNodeToESTreeNodeMap.set(t,r))}convertPattern(t,r){return this.converter(t,r,!0)}convertChild(t,r){return this.converter(t,r,!1)}createNode(t,r){let a=r;return a.range??(a.range=(0,pe.getRange)(t,this.ast)),a.loc??(a.loc=(0,pe.getLocFor)(a.range,this.ast)),a&&this.options.shouldPreserveNodeMaps&&this.esTreeNodeToTSNodeMap.set(a,t),a}convertBindingNameWithTypeAnnotation(t,r,a){let _=this.convertPattern(t);return r&&(_.typeAnnotation=this.convertTypeAnnotation(r,a),this.fixParentLocation(_,_.typeAnnotation.range)),_}convertTypeAnnotation(t,r){let a=(r==null?void 0:r.kind)===E.FunctionType||(r==null?void 0:r.kind)===E.ConstructorType?2:1,p=[t.getFullStart()-a,t.end],d=(0,pe.getLocFor)(p,this.ast);return{type:J.AST_NODE_TYPES.TSTypeAnnotation,loc:d,range:p,typeAnnotation:this.convertChild(t)}}convertBodyExpressions(t,r){let a=(0,pe.canContainDirective)(r);return t.map(_=>{let p=this.convertChild(_);if(a){if(p!=null&&p.expression&&_t.isExpressionStatement(_)&&_t.isStringLiteral(_.expression)){let d=p.expression.raw;return p.directive=d.slice(1,-1),p}a=!1}return p}).filter(_=>_)}convertTypeArgumentsToTypeParameterInstantiation(t,r){let a=(0,pe.findNextToken)(t,this.ast,this.ast);return this.createNode(r,{type:J.AST_NODE_TYPES.TSTypeParameterInstantiation,range:[t.pos-1,a.end],params:t.map(_=>this.convertChild(_))})}convertTSTypeParametersToTypeParametersDeclaration(t){let r=(0,pe.findNextToken)(t,this.ast,this.ast),a=[t.pos-1,r.end];return{type:J.AST_NODE_TYPES.TSTypeParameterDeclaration,range:a,loc:(0,pe.getLocFor)(a,this.ast),params:t.map(_=>this.convertChild(_))}}convertParameters(t){return t!=null&&t.length?t.map(r=>{var _;let a=this.convertChild(r);return a.decorators=((_=(0,Zi.getDecorators)(r))==null?void 0:_.map(p=>this.convertChild(p)))??[],a}):[]}convertChainExpression(t,r){let{child:a,isOptional:_}=(()=>t.type===J.AST_NODE_TYPES.MemberExpression?{child:t.object,isOptional:t.optional}:t.type===J.AST_NODE_TYPES.CallExpression?{child:t.callee,isOptional:t.optional}:{child:t.expression,isOptional:!1})(),p=(0,pe.isChildUnwrappableOptionalChain)(r,a);if(!p&&!_)return t;if(p&&(0,pe.isChainExpression)(a)){let d=a.expression;t.type===J.AST_NODE_TYPES.MemberExpression?t.object=d:t.type===J.AST_NODE_TYPES.CallExpression?t.callee=d:t.expression=d}return this.createNode(r,{type:J.AST_NODE_TYPES.ChainExpression,expression:t})}deeplyCopy(t){t.kind===_t.SyntaxKind.JSDocFunctionType&&Ne(this,Pe,"m",st).call(this,t,"JSDoc types can only be used inside documentation comments.");let r=`TS${E[t.kind]}`;if(this.options.errorOnUnknownASTType&&!J.AST_NODE_TYPES[r])throw new Error(`Unknown AST_NODE_TYPE: "${r}"`);let a=this.createNode(t,{type:r});"type"in t&&(a.typeAnnotation=t.type&&"kind"in t.type&&_t.isTypeNode(t.type)?this.convertTypeAnnotation(t.type,t):null),"typeArguments"in t&&(a.typeArguments=t.typeArguments&&"pos"in t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):null,Ne(this,Pe,"m",oi).call(this,a,"typeParameters","typeArguments")),"typeParameters"in t&&(a.typeParameters=t.typeParameters&&"pos"in t.typeParameters?this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters):null);let _=(0,Zi.getDecorators)(t);_!=null&&_.length&&(a.decorators=_.map(d=>this.convertChild(d)));let p=new Set(["_children","decorators","end","flags","illegalDecorators","heritageClauses","locals","localSymbol","jsDoc","kind","modifierFlagsCache","modifiers","nextContainer","parent","pos","symbol","transformFlags","type","typeArguments","typeParameters"]);return Object.entries(t).filter(([d])=>!p.has(d)).forEach(([d,h])=>{Array.isArray(h)?a[d]=h.map(l=>this.convertChild(l)):h&&typeof h=="object"&&h.kind?a[d]=this.convertChild(h):a[d]=h}),a}convertJSXIdentifier(t){let r=this.createNode(t,{type:J.AST_NODE_TYPES.JSXIdentifier,name:t.getText()});return this.registerTSNodeInNodeMap(t,r),r}convertJSXNamespaceOrIdentifier(t){if(t.kind===_t.SyntaxKind.JsxNamespacedName){let _=this.createNode(t,{type:J.AST_NODE_TYPES.JSXNamespacedName,namespace:this.createNode(t.namespace,{type:J.AST_NODE_TYPES.JSXIdentifier,name:t.namespace.text}),name:this.createNode(t.name,{type:J.AST_NODE_TYPES.JSXIdentifier,name:t.name.text})});return this.registerTSNodeInNodeMap(t,_),_}let r=t.getText(),a=r.indexOf(":");if(a>0){let _=(0,pe.getRange)(t,this.ast),p=this.createNode(t,{type:J.AST_NODE_TYPES.JSXNamespacedName,namespace:this.createNode(t,{type:J.AST_NODE_TYPES.JSXIdentifier,name:r.slice(0,a),range:[_[0],_[0]+a]}),name:this.createNode(t,{type:J.AST_NODE_TYPES.JSXIdentifier,name:r.slice(a+1),range:[_[0]+a+1,_[1]]}),range:_});return this.registerTSNodeInNodeMap(t,p),p}return this.convertJSXIdentifier(t)}convertJSXTagName(t,r){let a;switch(t.kind){case E.PropertyAccessExpression:t.name.kind===E.PrivateIdentifier&&Ne(this,Pe,"m",st).call(this,t.name,"Non-private identifier expected."),a=this.createNode(t,{type:J.AST_NODE_TYPES.JSXMemberExpression,object:this.convertJSXTagName(t.expression,r),property:this.convertJSXIdentifier(t.name)});break;case E.ThisKeyword:case E.Identifier:default:return this.convertJSXNamespaceOrIdentifier(t)}return this.registerTSNodeInNodeMap(t,a),a}convertMethodSignature(t){return this.createNode(t,{type:J.AST_NODE_TYPES.TSMethodSignature,accessibility:(0,pe.getTSNodeAccessibility)(t),computed:(0,pe.isComputedProperty)(t.name),key:this.convertChild(t.name),kind:(()=>{switch(t.kind){case E.GetAccessor:return"get";case E.SetAccessor:return"set";case E.MethodSignature:return"method"}})(),optional:(0,pe.isOptional)(t),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),readonly:(0,pe.hasModifier)(E.ReadonlyKeyword,t),static:(0,pe.hasModifier)(E.StaticKeyword,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)})}convertAssertClasue(t){return t===void 0?[]:t.elements.map(r=>this.convertChild(r))}fixParentLocation(t,r){r[0]t.range[1]&&(t.range[1]=r[1],t.loc.end=(0,pe.getLineAndCharacterFor)(t.range[1],this.ast))}assertModuleSpecifier(t,r){var a;!r&&t.moduleSpecifier==null&&Ne(this,Pe,"m",br).call(this,t,"Module specifier must be a string literal."),t.moduleSpecifier&&((a=t.moduleSpecifier)==null?void 0:a.kind)!==E.StringLiteral&&Ne(this,Pe,"m",br).call(this,t.moduleSpecifier,"Module specifier must be a string literal.")}convertNode(t,r){var a,_,p,d,h;switch(t.kind){case E.SourceFile:return this.createNode(t,{type:J.AST_NODE_TYPES.Program,body:this.convertBodyExpressions(t.statements,t),comments:void 0,range:[t.getStart(this.ast),t.endOfFileToken.end],sourceType:t.externalModuleIndicator?"module":"script",tokens:void 0});case E.Block:return this.createNode(t,{type:J.AST_NODE_TYPES.BlockStatement,body:this.convertBodyExpressions(t.statements,t)});case E.Identifier:return(0,pe.isThisInTypeQuery)(t)?this.createNode(t,{type:J.AST_NODE_TYPES.ThisExpression}):this.createNode(t,{type:J.AST_NODE_TYPES.Identifier,decorators:[],name:t.text,optional:!1,typeAnnotation:void 0});case E.PrivateIdentifier:return this.createNode(t,{type:J.AST_NODE_TYPES.PrivateIdentifier,name:t.text.slice(1)});case E.WithStatement:return this.createNode(t,{type:J.AST_NODE_TYPES.WithStatement,object:this.convertChild(t.expression),body:this.convertChild(t.statement)});case E.ReturnStatement:return this.createNode(t,{type:J.AST_NODE_TYPES.ReturnStatement,argument:this.convertChild(t.expression)});case E.LabeledStatement:return this.createNode(t,{type:J.AST_NODE_TYPES.LabeledStatement,label:this.convertChild(t.label),body:this.convertChild(t.statement)});case E.ContinueStatement:return this.createNode(t,{type:J.AST_NODE_TYPES.ContinueStatement,label:this.convertChild(t.label)});case E.BreakStatement:return this.createNode(t,{type:J.AST_NODE_TYPES.BreakStatement,label:this.convertChild(t.label)});case E.IfStatement:return this.createNode(t,{type:J.AST_NODE_TYPES.IfStatement,test:this.convertChild(t.expression),consequent:this.convertChild(t.thenStatement),alternate:this.convertChild(t.elseStatement)});case E.SwitchStatement:return this.createNode(t,{type:J.AST_NODE_TYPES.SwitchStatement,discriminant:this.convertChild(t.expression),cases:t.caseBlock.clauses.map(l=>this.convertChild(l))});case E.CaseClause:case E.DefaultClause:return this.createNode(t,{type:J.AST_NODE_TYPES.SwitchCase,test:t.kind===E.CaseClause?this.convertChild(t.expression):null,consequent:t.statements.map(l=>this.convertChild(l))});case E.ThrowStatement:return t.expression.end===t.expression.pos&&Ne(this,Pe,"m",br).call(this,t,"A throw statement must throw an expression."),this.createNode(t,{type:J.AST_NODE_TYPES.ThrowStatement,argument:this.convertChild(t.expression)});case E.TryStatement:return this.createNode(t,{type:J.AST_NODE_TYPES.TryStatement,block:this.convertChild(t.tryBlock),handler:this.convertChild(t.catchClause),finalizer:this.convertChild(t.finallyBlock)});case E.CatchClause:return this.createNode(t,{type:J.AST_NODE_TYPES.CatchClause,param:t.variableDeclaration?this.convertBindingNameWithTypeAnnotation(t.variableDeclaration.name,t.variableDeclaration.type):null,body:this.convertChild(t.block)});case E.WhileStatement:return this.createNode(t,{type:J.AST_NODE_TYPES.WhileStatement,test:this.convertChild(t.expression),body:this.convertChild(t.statement)});case E.DoStatement:return this.createNode(t,{type:J.AST_NODE_TYPES.DoWhileStatement,test:this.convertChild(t.expression),body:this.convertChild(t.statement)});case E.ForStatement:return this.createNode(t,{type:J.AST_NODE_TYPES.ForStatement,init:this.convertChild(t.initializer),test:this.convertChild(t.condition),update:this.convertChild(t.incrementor),body:this.convertChild(t.statement)});case E.ForInStatement:return this.createNode(t,{type:J.AST_NODE_TYPES.ForInStatement,left:this.convertPattern(t.initializer),right:this.convertChild(t.expression),body:this.convertChild(t.statement)});case E.ForOfStatement:return this.createNode(t,{type:J.AST_NODE_TYPES.ForOfStatement,left:this.convertPattern(t.initializer),right:this.convertChild(t.expression),body:this.convertChild(t.statement),await:!!(t.awaitModifier&&t.awaitModifier.kind===E.AwaitKeyword)});case E.FunctionDeclaration:{let l=(0,pe.hasModifier)(E.DeclareKeyword,t),v=this.createNode(t,{type:l||!t.body?J.AST_NODE_TYPES.TSDeclareFunction:J.AST_NODE_TYPES.FunctionDeclaration,async:(0,pe.hasModifier)(E.AsyncKeyword,t),body:this.convertChild(t.body)||void 0,declare:l,expression:!1,generator:!!t.asteriskToken,id:this.convertChild(t.name),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,v)}case E.VariableDeclaration:return this.createNode(t,{type:J.AST_NODE_TYPES.VariableDeclarator,definite:!!t.exclamationToken,id:this.convertBindingNameWithTypeAnnotation(t.name,t.type,t),init:this.convertChild(t.initializer)});case E.VariableStatement:{let l=this.createNode(t,{type:J.AST_NODE_TYPES.VariableDeclaration,declarations:t.declarationList.declarations.map(v=>this.convertChild(v)),declare:(0,pe.hasModifier)(E.DeclareKeyword,t),kind:(0,pe.getDeclarationKind)(t.declarationList)});return l.declarations.length||Ne(this,Pe,"m",br).call(this,t,"A variable declaration list must have at least one variable declarator."),(l.kind==="using"||l.kind==="await using")&&t.declarationList.declarations.forEach((v,y)=>{l.declarations[y].init==null&&Ne(this,Pe,"m",st).call(this,v,`'${l.kind}' declarations must be initialized.`),l.declarations[y].id.type!==J.AST_NODE_TYPES.Identifier&&Ne(this,Pe,"m",st).call(this,v.name,`'${l.kind}' declarations may not have binding patterns.`)}),this.fixExports(t,l)}case E.VariableDeclarationList:{let l=this.createNode(t,{type:J.AST_NODE_TYPES.VariableDeclaration,declarations:t.declarations.map(v=>this.convertChild(v)),declare:!1,kind:(0,pe.getDeclarationKind)(t)});return(l.kind==="using"||l.kind==="await using")&&t.declarations.forEach((v,y)=>{l.declarations[y].init!=null&&Ne(this,Pe,"m",st).call(this,v,`'${l.kind}' declarations may not be initialized in for statement.`),l.declarations[y].id.type!==J.AST_NODE_TYPES.Identifier&&Ne(this,Pe,"m",st).call(this,v.name,`'${l.kind}' declarations may not have binding patterns.`)}),l}case E.ExpressionStatement:return this.createNode(t,{type:J.AST_NODE_TYPES.ExpressionStatement,directive:void 0,expression:this.convertChild(t.expression)});case E.ThisKeyword:return this.createNode(t,{type:J.AST_NODE_TYPES.ThisExpression});case E.ArrayLiteralExpression:return this.allowPattern?this.createNode(t,{type:J.AST_NODE_TYPES.ArrayPattern,decorators:[],elements:t.elements.map(l=>this.convertPattern(l)),optional:!1,typeAnnotation:void 0}):this.createNode(t,{type:J.AST_NODE_TYPES.ArrayExpression,elements:t.elements.map(l=>this.convertChild(l))});case E.ObjectLiteralExpression:{if(this.allowPattern)return this.createNode(t,{type:J.AST_NODE_TYPES.ObjectPattern,decorators:[],optional:!1,properties:t.properties.map(v=>this.convertPattern(v)),typeAnnotation:void 0});let l=[];for(let v of t.properties)(v.kind===E.GetAccessor||v.kind===E.SetAccessor||v.kind===E.MethodDeclaration)&&!v.body&&Ne(this,Pe,"m",br).call(this,v.end-1,"'{' expected."),l.push(this.convertChild(v));return this.createNode(t,{type:J.AST_NODE_TYPES.ObjectExpression,properties:l})}case E.PropertyAssignment:{let{questionToken:l,exclamationToken:v}=t;return l&&Ne(this,Pe,"m",st).call(this,l,"A property assignment cannot have a question token."),v&&Ne(this,Pe,"m",st).call(this,v,"A property assignment cannot have an exclamation token."),this.createNode(t,{type:J.AST_NODE_TYPES.Property,key:this.convertChild(t.name),value:this.converter(t.initializer,t,this.allowPattern),computed:(0,pe.isComputedProperty)(t.name),method:!1,optional:!1,shorthand:!1,kind:"init"})}case E.ShorthandPropertyAssignment:{let{modifiers:l,questionToken:v,exclamationToken:y}=t;return l&&Ne(this,Pe,"m",st).call(this,l[0],"A shorthand property assignment cannot have modifiers."),v&&Ne(this,Pe,"m",st).call(this,v,"A shorthand property assignment cannot have a question token."),y&&Ne(this,Pe,"m",st).call(this,y,"A shorthand property assignment cannot have an exclamation token."),t.objectAssignmentInitializer?this.createNode(t,{type:J.AST_NODE_TYPES.Property,key:this.convertChild(t.name),value:this.createNode(t,{type:J.AST_NODE_TYPES.AssignmentPattern,decorators:[],left:this.convertPattern(t.name),optional:!1,right:this.convertChild(t.objectAssignmentInitializer),typeAnnotation:void 0}),computed:!1,method:!1,optional:!1,shorthand:!0,kind:"init"}):this.createNode(t,{type:J.AST_NODE_TYPES.Property,computed:!1,key:this.convertChild(t.name),kind:"init",method:!1,optional:!1,shorthand:!0,value:this.convertChild(t.name)})}case E.ComputedPropertyName:return this.convertChild(t.expression);case E.PropertyDeclaration:{let l=(0,pe.hasModifier)(E.AbstractKeyword,t);l&&t.initializer&&Ne(this,Pe,"m",st).call(this,t.initializer,"Abstract property cannot have an initializer.");let v=(0,pe.hasModifier)(E.AccessorKeyword,t),y=(()=>v?l?J.AST_NODE_TYPES.TSAbstractAccessorProperty:J.AST_NODE_TYPES.AccessorProperty:l?J.AST_NODE_TYPES.TSAbstractPropertyDefinition:J.AST_NODE_TYPES.PropertyDefinition)(),C=this.convertChild(t.name);return this.createNode(t,{type:y,key:C,accessibility:(0,pe.getTSNodeAccessibility)(t),value:l?null:this.convertChild(t.initializer),computed:(0,pe.isComputedProperty)(t.name),static:(0,pe.hasModifier)(E.StaticKeyword,t),readonly:(0,pe.hasModifier)(E.ReadonlyKeyword,t),decorators:((a=(0,Zi.getDecorators)(t))==null?void 0:a.map(S=>this.convertChild(S)))??[],declare:(0,pe.hasModifier)(E.DeclareKeyword,t),override:(0,pe.hasModifier)(E.OverrideKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t),optional:(C.type===J.AST_NODE_TYPES.Literal||t.name.kind===E.Identifier||t.name.kind===E.ComputedPropertyName||t.name.kind===E.PrivateIdentifier)&&!!t.questionToken,definite:!!t.exclamationToken})}case E.GetAccessor:case E.SetAccessor:if(t.parent.kind===E.InterfaceDeclaration||t.parent.kind===E.TypeLiteral)return this.convertMethodSignature(t);case E.MethodDeclaration:{let l=this.createNode(t,{type:t.body?J.AST_NODE_TYPES.FunctionExpression:J.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,id:null,generator:!!t.asteriskToken,expression:!1,async:(0,pe.hasModifier)(E.AsyncKeyword,t),body:this.convertChild(t.body),declare:!1,range:[t.parameters.pos-1,t.end],params:[],returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});l.typeParameters&&this.fixParentLocation(l,l.typeParameters.range);let v;if(r.kind===E.ObjectLiteralExpression)l.params=t.parameters.map(y=>this.convertChild(y)),v=this.createNode(t,{type:J.AST_NODE_TYPES.Property,key:this.convertChild(t.name),value:l,computed:(0,pe.isComputedProperty)(t.name),optional:!!t.questionToken,method:t.kind===E.MethodDeclaration,shorthand:!1,kind:"init"});else{l.params=this.convertParameters(t.parameters);let y=(0,pe.hasModifier)(E.AbstractKeyword,t)?J.AST_NODE_TYPES.TSAbstractMethodDefinition:J.AST_NODE_TYPES.MethodDefinition;v=this.createNode(t,{type:y,accessibility:(0,pe.getTSNodeAccessibility)(t),computed:(0,pe.isComputedProperty)(t.name),decorators:((_=(0,Zi.getDecorators)(t))==null?void 0:_.map(C=>this.convertChild(C)))??[],key:this.convertChild(t.name),kind:"method",optional:!!t.questionToken,override:(0,pe.hasModifier)(E.OverrideKeyword,t),static:(0,pe.hasModifier)(E.StaticKeyword,t),value:l})}return t.kind===E.GetAccessor?v.kind="get":t.kind===E.SetAccessor?v.kind="set":!v.static&&t.name.kind===E.StringLiteral&&t.name.text==="constructor"&&v.type!==J.AST_NODE_TYPES.Property&&(v.kind="constructor"),v}case E.Constructor:{let l=(0,pe.getLastModifier)(t),v=(l&&(0,pe.findNextToken)(l,t,this.ast))??t.getFirstToken(),y=this.createNode(t,{type:t.body?J.AST_NODE_TYPES.FunctionExpression:J.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,async:!1,body:this.convertChild(t.body),declare:!1,expression:!1,generator:!1,id:null,params:this.convertParameters(t.parameters),range:[t.parameters.pos-1,t.end],returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});y.typeParameters&&this.fixParentLocation(y,y.typeParameters.range);let C=this.createNode(t,{type:J.AST_NODE_TYPES.Identifier,decorators:[],name:"constructor",optional:!1,range:[v.getStart(this.ast),v.end],typeAnnotation:void 0}),S=(0,pe.hasModifier)(E.StaticKeyword,t);return this.createNode(t,{type:(0,pe.hasModifier)(E.AbstractKeyword,t)?J.AST_NODE_TYPES.TSAbstractMethodDefinition:J.AST_NODE_TYPES.MethodDefinition,accessibility:(0,pe.getTSNodeAccessibility)(t),computed:!1,decorators:[],optional:!1,key:C,kind:S?"method":"constructor",override:!1,static:S,value:y})}case E.FunctionExpression:return this.createNode(t,{type:J.AST_NODE_TYPES.FunctionExpression,async:(0,pe.hasModifier)(E.AsyncKeyword,t),body:this.convertChild(t.body),declare:!1,expression:!1,generator:!!t.asteriskToken,id:this.convertChild(t.name),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case E.SuperKeyword:return this.createNode(t,{type:J.AST_NODE_TYPES.Super});case E.ArrayBindingPattern:return this.createNode(t,{type:J.AST_NODE_TYPES.ArrayPattern,decorators:[],elements:t.elements.map(l=>this.convertPattern(l)),optional:!1,typeAnnotation:void 0});case E.OmittedExpression:return null;case E.ObjectBindingPattern:return this.createNode(t,{type:J.AST_NODE_TYPES.ObjectPattern,decorators:[],optional:!1,properties:t.elements.map(l=>this.convertPattern(l)),typeAnnotation:void 0});case E.BindingElement:{if(r.kind===E.ArrayBindingPattern){let v=this.convertChild(t.name,r);return t.initializer?this.createNode(t,{type:J.AST_NODE_TYPES.AssignmentPattern,decorators:[],left:v,optional:!1,right:this.convertChild(t.initializer),typeAnnotation:void 0}):t.dotDotDotToken?this.createNode(t,{type:J.AST_NODE_TYPES.RestElement,argument:v,decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):v}let l;return t.dotDotDotToken?l=this.createNode(t,{type:J.AST_NODE_TYPES.RestElement,argument:this.convertChild(t.propertyName??t.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):l=this.createNode(t,{type:J.AST_NODE_TYPES.Property,key:this.convertChild(t.propertyName??t.name),value:this.convertChild(t.name),computed:!!(t.propertyName&&t.propertyName.kind===E.ComputedPropertyName),method:!1,optional:!1,shorthand:!t.propertyName,kind:"init"}),t.initializer&&(l.value=this.createNode(t,{type:J.AST_NODE_TYPES.AssignmentPattern,decorators:[],left:this.convertChild(t.name),optional:!1,range:[t.name.getStart(this.ast),t.initializer.end],right:this.convertChild(t.initializer),typeAnnotation:void 0})),l}case E.ArrowFunction:return this.createNode(t,{type:J.AST_NODE_TYPES.ArrowFunctionExpression,generator:!1,id:null,params:this.convertParameters(t.parameters),body:this.convertChild(t.body),async:(0,pe.hasModifier)(E.AsyncKeyword,t),expression:t.body.kind!==E.Block,returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case E.YieldExpression:return this.createNode(t,{type:J.AST_NODE_TYPES.YieldExpression,delegate:!!t.asteriskToken,argument:this.convertChild(t.expression)});case E.AwaitExpression:return this.createNode(t,{type:J.AST_NODE_TYPES.AwaitExpression,argument:this.convertChild(t.expression)});case E.NoSubstitutionTemplateLiteral:return this.createNode(t,{type:J.AST_NODE_TYPES.TemplateLiteral,quasis:[this.createNode(t,{type:J.AST_NODE_TYPES.TemplateElement,value:{raw:this.ast.text.slice(t.getStart(this.ast)+1,t.end-1),cooked:t.text},tail:!0})],expressions:[]});case E.TemplateExpression:{let l=this.createNode(t,{type:J.AST_NODE_TYPES.TemplateLiteral,quasis:[this.convertChild(t.head)],expressions:[]});return t.templateSpans.forEach(v=>{l.expressions.push(this.convertChild(v.expression)),l.quasis.push(this.convertChild(v.literal))}),l}case E.TaggedTemplateExpression:return this.createNode(t,Ne(this,Pe,"m",oi).call(this,{type:J.AST_NODE_TYPES.TaggedTemplateExpression,typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t),tag:this.convertChild(t.tag),quasi:this.convertChild(t.template)},"typeParameters","typeArguments"));case E.TemplateHead:case E.TemplateMiddle:case E.TemplateTail:{let l=t.kind===E.TemplateTail;return this.createNode(t,{type:J.AST_NODE_TYPES.TemplateElement,value:{raw:this.ast.text.slice(t.getStart(this.ast)+1,t.end-(l?1:2)),cooked:t.text},tail:l})}case E.SpreadAssignment:case E.SpreadElement:return this.allowPattern?this.createNode(t,{type:J.AST_NODE_TYPES.RestElement,argument:this.convertPattern(t.expression),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):this.createNode(t,{type:J.AST_NODE_TYPES.SpreadElement,argument:this.convertChild(t.expression)});case E.Parameter:{let l,v;return t.dotDotDotToken?l=v=this.createNode(t,{type:J.AST_NODE_TYPES.RestElement,argument:this.convertChild(t.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):t.initializer?(l=this.convertChild(t.name),v=this.createNode(t,{type:J.AST_NODE_TYPES.AssignmentPattern,decorators:[],left:l,optional:!1,right:this.convertChild(t.initializer),typeAnnotation:void 0}),(0,Zi.getModifiers)(t)&&(v.range[0]=l.range[0],v.loc=(0,pe.getLocFor)(v.range,this.ast))):l=v=this.convertChild(t.name,r),t.type&&(l.typeAnnotation=this.convertTypeAnnotation(t.type,t),this.fixParentLocation(l,l.typeAnnotation.range)),t.questionToken&&(t.questionToken.end>l.range[1]&&(l.range[1]=t.questionToken.end,l.loc.end=(0,pe.getLineAndCharacterFor)(l.range[1],this.ast)),l.optional=!0),(0,Zi.getModifiers)(t)?this.createNode(t,{type:J.AST_NODE_TYPES.TSParameterProperty,accessibility:(0,pe.getTSNodeAccessibility)(t),decorators:[],override:(0,pe.hasModifier)(E.OverrideKeyword,t),parameter:v,readonly:(0,pe.hasModifier)(E.ReadonlyKeyword,t),static:(0,pe.hasModifier)(E.StaticKeyword,t)}):v}case E.ClassDeclaration:!t.name&&(!(0,pe.hasModifier)(_t.SyntaxKind.ExportKeyword,t)||!(0,pe.hasModifier)(_t.SyntaxKind.DefaultKeyword,t))&&Ne(this,Pe,"m",br).call(this,t,"A class declaration without the 'default' modifier must have a name.");case E.ClassExpression:{let l=t.heritageClauses??[],v=t.kind===E.ClassDeclaration?J.AST_NODE_TYPES.ClassDeclaration:J.AST_NODE_TYPES.ClassExpression,y,C;for(let k of l){let{token:L,types:G}=k;G.length===0&&Ne(this,Pe,"m",br).call(this,k,`'${_t.tokenToString(L)}' list cannot be empty.`),L===E.ExtendsKeyword?(y&&Ne(this,Pe,"m",br).call(this,k,"'extends' clause already seen."),C&&Ne(this,Pe,"m",br).call(this,k,"'extends' clause must precede 'implements' clause."),G.length>1&&Ne(this,Pe,"m",br).call(this,G[1],"Classes can only extend a single class."),y??(y=k)):L===E.ImplementsKeyword&&(C&&Ne(this,Pe,"m",br).call(this,k,"'implements' clause already seen."),C??(C=k))}let S=this.createNode(t,Ne(this,Pe,"m",oi).call(this,{type:v,abstract:(0,pe.hasModifier)(E.AbstractKeyword,t),body:this.createNode(t,{type:J.AST_NODE_TYPES.ClassBody,body:t.members.filter(pe.isESTreeClassMember).map(k=>this.convertChild(k)),range:[t.members.pos-1,t.end]}),declare:(0,pe.hasModifier)(E.DeclareKeyword,t),decorators:((p=(0,Zi.getDecorators)(t))==null?void 0:p.map(k=>this.convertChild(k)))??[],id:this.convertChild(t.name),implements:(C==null?void 0:C.types.map(k=>this.convertChild(k)))??[],superClass:y!=null&&y.types[0]?this.convertChild(y.types[0].expression):null,superTypeArguments:void 0,typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)},"superTypeParameters","superTypeArguments"));return(d=y==null?void 0:y.types[0])!=null&&d.typeArguments&&(S.superTypeArguments=this.convertTypeArgumentsToTypeParameterInstantiation(y.types[0].typeArguments,y.types[0])),this.fixExports(t,S)}case E.ModuleBlock:return this.createNode(t,{type:J.AST_NODE_TYPES.TSModuleBlock,body:this.convertBodyExpressions(t.statements,t)});case E.ImportDeclaration:{this.assertModuleSpecifier(t,!1);let l=this.createNode(t,{type:J.AST_NODE_TYPES.ImportDeclaration,source:this.convertChild(t.moduleSpecifier),specifiers:[],importKind:"value",assertions:this.convertAssertClasue(t.assertClause)});if(t.importClause&&(t.importClause.isTypeOnly&&(l.importKind="type"),t.importClause.name&&l.specifiers.push(this.convertChild(t.importClause)),t.importClause.namedBindings))switch(t.importClause.namedBindings.kind){case E.NamespaceImport:l.specifiers.push(this.convertChild(t.importClause.namedBindings));break;case E.NamedImports:l.specifiers=l.specifiers.concat(t.importClause.namedBindings.elements.map(v=>this.convertChild(v)));break}return l}case E.NamespaceImport:return this.createNode(t,{type:J.AST_NODE_TYPES.ImportNamespaceSpecifier,local:this.convertChild(t.name)});case E.ImportSpecifier:return this.createNode(t,{type:J.AST_NODE_TYPES.ImportSpecifier,local:this.convertChild(t.name),imported:this.convertChild(t.propertyName??t.name),importKind:t.isTypeOnly?"type":"value"});case E.ImportClause:{let l=this.convertChild(t.name);return this.createNode(t,{type:J.AST_NODE_TYPES.ImportDefaultSpecifier,local:l,range:l.range})}case E.ExportDeclaration:return((h=t.exportClause)==null?void 0:h.kind)===E.NamedExports?(this.assertModuleSpecifier(t,!0),this.createNode(t,{type:J.AST_NODE_TYPES.ExportNamedDeclaration,source:this.convertChild(t.moduleSpecifier),specifiers:t.exportClause.elements.map(l=>this.convertChild(l)),exportKind:t.isTypeOnly?"type":"value",declaration:null,assertions:this.convertAssertClasue(t.assertClause)})):(this.assertModuleSpecifier(t,!1),this.createNode(t,{type:J.AST_NODE_TYPES.ExportAllDeclaration,source:this.convertChild(t.moduleSpecifier),exportKind:t.isTypeOnly?"type":"value",exported:t.exportClause&&t.exportClause.kind===E.NamespaceExport?this.convertChild(t.exportClause.name):null,assertions:this.convertAssertClasue(t.assertClause)}));case E.ExportSpecifier:return this.createNode(t,{type:J.AST_NODE_TYPES.ExportSpecifier,local:this.convertChild(t.propertyName??t.name),exported:this.convertChild(t.name),exportKind:t.isTypeOnly?"type":"value"});case E.ExportAssignment:return t.isExportEquals?this.createNode(t,{type:J.AST_NODE_TYPES.TSExportAssignment,expression:this.convertChild(t.expression)}):this.createNode(t,{type:J.AST_NODE_TYPES.ExportDefaultDeclaration,declaration:this.convertChild(t.expression),exportKind:"value"});case E.PrefixUnaryExpression:case E.PostfixUnaryExpression:{let l=(0,pe.getTextForTokenKind)(t.operator);return l==="++"||l==="--"?this.createNode(t,{type:J.AST_NODE_TYPES.UpdateExpression,operator:l,prefix:t.kind===E.PrefixUnaryExpression,argument:this.convertChild(t.operand)}):this.createNode(t,{type:J.AST_NODE_TYPES.UnaryExpression,operator:l,prefix:t.kind===E.PrefixUnaryExpression,argument:this.convertChild(t.operand)})}case E.DeleteExpression:return this.createNode(t,{type:J.AST_NODE_TYPES.UnaryExpression,operator:"delete",prefix:!0,argument:this.convertChild(t.expression)});case E.VoidExpression:return this.createNode(t,{type:J.AST_NODE_TYPES.UnaryExpression,operator:"void",prefix:!0,argument:this.convertChild(t.expression)});case E.TypeOfExpression:return this.createNode(t,{type:J.AST_NODE_TYPES.UnaryExpression,operator:"typeof",prefix:!0,argument:this.convertChild(t.expression)});case E.TypeOperator:return this.createNode(t,{type:J.AST_NODE_TYPES.TSTypeOperator,operator:(0,pe.getTextForTokenKind)(t.operator),typeAnnotation:this.convertChild(t.type)});case E.BinaryExpression:{if((0,pe.isComma)(t.operatorToken)){let v=this.createNode(t,{type:J.AST_NODE_TYPES.SequenceExpression,expressions:[]}),y=this.convertChild(t.left);return y.type===J.AST_NODE_TYPES.SequenceExpression&&t.left.kind!==E.ParenthesizedExpression?v.expressions=v.expressions.concat(y.expressions):v.expressions.push(y),v.expressions.push(this.convertChild(t.right)),v}let l=(0,pe.getBinaryExpressionType)(t.operatorToken);return this.allowPattern&&l.type===J.AST_NODE_TYPES.AssignmentExpression?this.createNode(t,{type:J.AST_NODE_TYPES.AssignmentPattern,decorators:[],left:this.convertPattern(t.left,t),optional:!1,right:this.convertChild(t.right),typeAnnotation:void 0}):this.createNode(t,{...l,left:this.converter(t.left,t,l.type===J.AST_NODE_TYPES.AssignmentExpression),right:this.convertChild(t.right)})}case E.PropertyAccessExpression:{let l=this.convertChild(t.expression),v=this.convertChild(t.name),y=!1,C=this.createNode(t,{type:J.AST_NODE_TYPES.MemberExpression,object:l,property:v,computed:y,optional:t.questionDotToken!==void 0});return this.convertChainExpression(C,t)}case E.ElementAccessExpression:{let l=this.convertChild(t.expression),v=this.convertChild(t.argumentExpression),y=!0,C=this.createNode(t,{type:J.AST_NODE_TYPES.MemberExpression,object:l,property:v,computed:y,optional:t.questionDotToken!==void 0});return this.convertChainExpression(C,t)}case E.CallExpression:{if(t.expression.kind===E.ImportKeyword)return t.arguments.length!==1&&t.arguments.length!==2&&Ne(this,Pe,"m",br).call(this,t.arguments[2]??t,"Dynamic import requires exactly one or two arguments."),this.createNode(t,{type:J.AST_NODE_TYPES.ImportExpression,source:this.convertChild(t.arguments[0]),attributes:t.arguments[1]?this.convertChild(t.arguments[1]):null});let l=this.convertChild(t.expression),v=t.arguments.map(S=>this.convertChild(S)),y=t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t),C=this.createNode(t,Ne(this,Pe,"m",oi).call(this,{type:J.AST_NODE_TYPES.CallExpression,callee:l,arguments:v,optional:t.questionDotToken!==void 0,typeArguments:y},"typeParameters","typeArguments"));return this.convertChainExpression(C,t)}case E.NewExpression:{let l=t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t);return this.createNode(t,Ne(this,Pe,"m",oi).call(this,{type:J.AST_NODE_TYPES.NewExpression,arguments:t.arguments?t.arguments.map(v=>this.convertChild(v)):[],callee:this.convertChild(t.expression),typeArguments:l},"typeParameters","typeArguments"))}case E.ConditionalExpression:return this.createNode(t,{type:J.AST_NODE_TYPES.ConditionalExpression,test:this.convertChild(t.condition),consequent:this.convertChild(t.whenTrue),alternate:this.convertChild(t.whenFalse)});case E.MetaProperty:return this.createNode(t,{type:J.AST_NODE_TYPES.MetaProperty,meta:this.createNode(t.getFirstToken(),{type:J.AST_NODE_TYPES.Identifier,decorators:[],name:(0,pe.getTextForTokenKind)(t.keywordToken),optional:!1,typeAnnotation:void 0}),property:this.convertChild(t.name)});case E.Decorator:return this.createNode(t,{type:J.AST_NODE_TYPES.Decorator,expression:this.convertChild(t.expression)});case E.StringLiteral:return this.createNode(t,{type:J.AST_NODE_TYPES.Literal,value:r.kind===E.JsxAttribute?(0,pe.unescapeStringLiteralText)(t.text):t.text,raw:t.getText()});case E.NumericLiteral:return this.createNode(t,{type:J.AST_NODE_TYPES.Literal,value:Number(t.text),raw:t.getText()});case E.BigIntLiteral:{let l=(0,pe.getRange)(t,this.ast),v=this.ast.text.slice(l[0],l[1]),y=v.slice(0,-1).replace(/_/g,""),C=typeof BigInt<"u"?BigInt(y):null;return this.createNode(t,{type:J.AST_NODE_TYPES.Literal,raw:v,value:C,bigint:C==null?y:String(C),range:l})}case E.RegularExpressionLiteral:{let l=t.text.slice(1,t.text.lastIndexOf("/")),v=t.text.slice(t.text.lastIndexOf("/")+1),y=null;try{y=new RegExp(l,v)}catch{}return this.createNode(t,{type:J.AST_NODE_TYPES.Literal,value:y,raw:t.text,regex:{pattern:l,flags:v}})}case E.TrueKeyword:return this.createNode(t,{type:J.AST_NODE_TYPES.Literal,value:!0,raw:"true"});case E.FalseKeyword:return this.createNode(t,{type:J.AST_NODE_TYPES.Literal,value:!1,raw:"false"});case E.NullKeyword:return this.createNode(t,{type:J.AST_NODE_TYPES.Literal,value:null,raw:"null"});case E.EmptyStatement:return this.createNode(t,{type:J.AST_NODE_TYPES.EmptyStatement});case E.DebuggerStatement:return this.createNode(t,{type:J.AST_NODE_TYPES.DebuggerStatement});case E.JsxElement:return this.createNode(t,{type:J.AST_NODE_TYPES.JSXElement,openingElement:this.convertChild(t.openingElement),closingElement:this.convertChild(t.closingElement),children:t.children.map(l=>this.convertChild(l))});case E.JsxFragment:return this.createNode(t,{type:J.AST_NODE_TYPES.JSXFragment,openingFragment:this.convertChild(t.openingFragment),closingFragment:this.convertChild(t.closingFragment),children:t.children.map(l=>this.convertChild(l))});case E.JsxSelfClosingElement:return this.createNode(t,{type:J.AST_NODE_TYPES.JSXElement,openingElement:this.createNode(t,Ne(this,Pe,"m",oi).call(this,{type:J.AST_NODE_TYPES.JSXOpeningElement,typeArguments:t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):void 0,selfClosing:!0,name:this.convertJSXTagName(t.tagName,t),attributes:t.attributes.properties.map(l=>this.convertChild(l)),range:(0,pe.getRange)(t,this.ast)},"typeParameters","typeArguments")),closingElement:null,children:[]});case E.JsxOpeningElement:return this.createNode(t,Ne(this,Pe,"m",oi).call(this,{type:J.AST_NODE_TYPES.JSXOpeningElement,typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t),selfClosing:!1,name:this.convertJSXTagName(t.tagName,t),attributes:t.attributes.properties.map(l=>this.convertChild(l))},"typeParameters","typeArguments"));case E.JsxClosingElement:return this.createNode(t,{type:J.AST_NODE_TYPES.JSXClosingElement,name:this.convertJSXTagName(t.tagName,t)});case E.JsxOpeningFragment:return this.createNode(t,{type:J.AST_NODE_TYPES.JSXOpeningFragment});case E.JsxClosingFragment:return this.createNode(t,{type:J.AST_NODE_TYPES.JSXClosingFragment});case E.JsxExpression:{let l=t.expression?this.convertChild(t.expression):this.createNode(t,{type:J.AST_NODE_TYPES.JSXEmptyExpression,range:[t.getStart(this.ast)+1,t.getEnd()-1]});return t.dotDotDotToken?this.createNode(t,{type:J.AST_NODE_TYPES.JSXSpreadChild,expression:l}):this.createNode(t,{type:J.AST_NODE_TYPES.JSXExpressionContainer,expression:l})}case E.JsxAttribute:return this.createNode(t,{type:J.AST_NODE_TYPES.JSXAttribute,name:this.convertJSXNamespaceOrIdentifier(t.name),value:this.convertChild(t.initializer)});case E.JsxText:{let l=t.getFullStart(),v=t.getEnd(),y=this.ast.text.slice(l,v);return this.createNode(t,{type:J.AST_NODE_TYPES.JSXText,value:(0,pe.unescapeStringLiteralText)(y),raw:y,range:[l,v]})}case E.JsxSpreadAttribute:return this.createNode(t,{type:J.AST_NODE_TYPES.JSXSpreadAttribute,argument:this.convertChild(t.expression)});case E.QualifiedName:return this.createNode(t,{type:J.AST_NODE_TYPES.TSQualifiedName,left:this.convertChild(t.left),right:this.convertChild(t.right)});case E.TypeReference:return this.createNode(t,Ne(this,Pe,"m",oi).call(this,{type:J.AST_NODE_TYPES.TSTypeReference,typeName:this.convertChild(t.typeName),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)},"typeParameters","typeArguments"));case E.TypeParameter:return this.createNode(t,{type:J.AST_NODE_TYPES.TSTypeParameter,name:this.convertChild(t.name),constraint:t.constraint&&this.convertChild(t.constraint),default:t.default?this.convertChild(t.default):void 0,in:(0,pe.hasModifier)(E.InKeyword,t),out:(0,pe.hasModifier)(E.OutKeyword,t),const:(0,pe.hasModifier)(E.ConstKeyword,t)});case E.ThisType:return this.createNode(t,{type:J.AST_NODE_TYPES.TSThisType});case E.AnyKeyword:case E.BigIntKeyword:case E.BooleanKeyword:case E.NeverKeyword:case E.NumberKeyword:case E.ObjectKeyword:case E.StringKeyword:case E.SymbolKeyword:case E.UnknownKeyword:case E.VoidKeyword:case E.UndefinedKeyword:case E.IntrinsicKeyword:return this.createNode(t,{type:J.AST_NODE_TYPES[`TS${E[t.kind]}`]});case E.NonNullExpression:{let l=this.createNode(t,{type:J.AST_NODE_TYPES.TSNonNullExpression,expression:this.convertChild(t.expression)});return this.convertChainExpression(l,t)}case E.TypeLiteral:return this.createNode(t,{type:J.AST_NODE_TYPES.TSTypeLiteral,members:t.members.map(l=>this.convertChild(l))});case E.ArrayType:return this.createNode(t,{type:J.AST_NODE_TYPES.TSArrayType,elementType:this.convertChild(t.elementType)});case E.IndexedAccessType:return this.createNode(t,{type:J.AST_NODE_TYPES.TSIndexedAccessType,objectType:this.convertChild(t.objectType),indexType:this.convertChild(t.indexType)});case E.ConditionalType:return this.createNode(t,{type:J.AST_NODE_TYPES.TSConditionalType,checkType:this.convertChild(t.checkType),extendsType:this.convertChild(t.extendsType),trueType:this.convertChild(t.trueType),falseType:this.convertChild(t.falseType)});case E.TypeQuery:return this.createNode(t,Ne(this,Pe,"m",oi).call(this,{type:J.AST_NODE_TYPES.TSTypeQuery,exprName:this.convertChild(t.exprName),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)},"typeParameters","typeArguments"));case E.MappedType:return t.members&&t.members.length>0&&Ne(this,Pe,"m",br).call(this,t.members[0],"A mapped type may not declare properties or methods."),this.createNode(t,{type:J.AST_NODE_TYPES.TSMappedType,nameType:this.convertChild(t.nameType)??null,optional:t.questionToken&&(t.questionToken.kind===E.QuestionToken||(0,pe.getTextForTokenKind)(t.questionToken.kind)),readonly:t.readonlyToken&&(t.readonlyToken.kind===E.ReadonlyKeyword||(0,pe.getTextForTokenKind)(t.readonlyToken.kind)),typeAnnotation:t.type&&this.convertChild(t.type),typeParameter:this.convertChild(t.typeParameter)});case E.ParenthesizedExpression:return this.convertChild(t.expression,r);case E.TypeAliasDeclaration:{let l=this.createNode(t,{type:J.AST_NODE_TYPES.TSTypeAliasDeclaration,declare:(0,pe.hasModifier)(E.DeclareKeyword,t),id:this.convertChild(t.name),typeAnnotation:this.convertChild(t.type),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,l)}case E.MethodSignature:return this.convertMethodSignature(t);case E.PropertySignature:{let{initializer:l}=t;return l&&Ne(this,Pe,"m",st).call(this,l,"A property signature cannot have an initializer."),this.createNode(t,{type:J.AST_NODE_TYPES.TSPropertySignature,accessibility:(0,pe.getTSNodeAccessibility)(t),computed:(0,pe.isComputedProperty)(t.name),key:this.convertChild(t.name),optional:(0,pe.isOptional)(t),readonly:(0,pe.hasModifier)(E.ReadonlyKeyword,t),static:(0,pe.hasModifier)(E.StaticKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t)})}case E.IndexSignature:return this.createNode(t,{type:J.AST_NODE_TYPES.TSIndexSignature,accessibility:(0,pe.getTSNodeAccessibility)(t),parameters:t.parameters.map(l=>this.convertChild(l)),readonly:(0,pe.hasModifier)(E.ReadonlyKeyword,t),static:(0,pe.hasModifier)(E.StaticKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t)});case E.ConstructorType:return this.createNode(t,{type:J.AST_NODE_TYPES.TSConstructorType,abstract:(0,pe.hasModifier)(E.AbstractKeyword,t),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case E.FunctionType:{let{modifiers:l}=t;l&&Ne(this,Pe,"m",st).call(this,l[0],"A function type cannot have modifiers.")}case E.ConstructSignature:case E.CallSignature:{let l=t.kind===E.ConstructSignature?J.AST_NODE_TYPES.TSConstructSignatureDeclaration:t.kind===E.CallSignature?J.AST_NODE_TYPES.TSCallSignatureDeclaration:J.AST_NODE_TYPES.TSFunctionType;return this.createNode(t,{type:l,params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)})}case E.ExpressionWithTypeArguments:{let l=r.kind,v=l===E.InterfaceDeclaration?J.AST_NODE_TYPES.TSInterfaceHeritage:l===E.HeritageClause?J.AST_NODE_TYPES.TSClassImplements:J.AST_NODE_TYPES.TSInstantiationExpression;return this.createNode(t,Ne(this,Pe,"m",oi).call(this,{type:v,expression:this.convertChild(t.expression),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)},"typeParameters","typeArguments"))}case E.InterfaceDeclaration:{let l=t.heritageClauses??[],v=[];for(let C of l){C.token!==E.ExtendsKeyword&&Ne(this,Pe,"m",st).call(this,C,C.token===E.ImplementsKeyword?"Interface declaration cannot have 'implements' clause.":"Unexpected token.");for(let S of C.types)v.push(this.convertChild(S,t))}let y=this.createNode(t,{type:J.AST_NODE_TYPES.TSInterfaceDeclaration,body:this.createNode(t,{type:J.AST_NODE_TYPES.TSInterfaceBody,body:t.members.map(C=>this.convertChild(C)),range:[t.members.pos-1,t.end]}),declare:(0,pe.hasModifier)(E.DeclareKeyword,t),extends:v,id:this.convertChild(t.name),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,y)}case E.TypePredicate:{let l=this.createNode(t,{type:J.AST_NODE_TYPES.TSTypePredicate,asserts:t.assertsModifier!==void 0,parameterName:this.convertChild(t.parameterName),typeAnnotation:null});return t.type&&(l.typeAnnotation=this.convertTypeAnnotation(t.type,t),l.typeAnnotation.loc=l.typeAnnotation.typeAnnotation.loc,l.typeAnnotation.range=l.typeAnnotation.typeAnnotation.range),l}case E.ImportType:{let l=(0,pe.getRange)(t,this.ast);if(t.isTypeOf){let y=(0,pe.findNextToken)(t.getFirstToken(),t,this.ast);l[0]=y.getStart(this.ast)}let v=this.createNode(t,Ne(this,Pe,"m",oi).call(this,{type:J.AST_NODE_TYPES.TSImportType,argument:this.convertChild(t.argument),qualifier:this.convertChild(t.qualifier),typeArguments:t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):null,range:l},"typeParameters","typeArguments"));return t.isTypeOf?this.createNode(t,{type:J.AST_NODE_TYPES.TSTypeQuery,exprName:v,typeArguments:void 0,typeParameters:void 0}):v}case E.EnumDeclaration:{let l=this.createNode(t,{type:J.AST_NODE_TYPES.TSEnumDeclaration,const:(0,pe.hasModifier)(E.ConstKeyword,t),declare:(0,pe.hasModifier)(E.DeclareKeyword,t),id:this.convertChild(t.name),members:t.members.map(v=>this.convertChild(v))});return this.fixExports(t,l)}case E.EnumMember:return this.createNode(t,{type:J.AST_NODE_TYPES.TSEnumMember,computed:t.name.kind===_t.SyntaxKind.ComputedPropertyName,id:this.convertChild(t.name),initializer:t.initializer&&this.convertChild(t.initializer)});case E.ModuleDeclaration:{let l=(0,pe.hasModifier)(E.DeclareKeyword,t),v=this.createNode(t,{type:J.AST_NODE_TYPES.TSModuleDeclaration,...(()=>{if(t.flags&_t.NodeFlags.GlobalAugmentation){let C=this.convertChild(t.name),S=this.convertChild(t.body);return(S==null||S.type===J.AST_NODE_TYPES.TSModuleDeclaration)&&Ne(this,Pe,"m",br).call(this,t.body??t,"Expected a valid module body"),C.type!==J.AST_NODE_TYPES.Identifier&&Ne(this,Pe,"m",br).call(this,t.name,"global module augmentation must have an Identifier id"),{kind:"global",body:S,declare:!1,global:!1,id:C}}if(!(t.flags&_t.NodeFlags.Namespace)){let C=this.convertChild(t.body);return{kind:"module",...C!=null?{body:C}:{},declare:!1,global:!1,id:this.convertChild(t.name)}}t.body==null&&Ne(this,Pe,"m",br).call(this,t,"Expected a module body"),t.name.kind!==_t.SyntaxKind.Identifier&&Ne(this,Pe,"m",br).call(this,t.name,"`namespace`s must have an Identifier id");let y=this.createNode(t.name,{decorators:[],name:t.name.text,optional:!1,range:[t.name.getStart(this.ast),t.name.getEnd()],type:J.AST_NODE_TYPES.Identifier,typeAnnotation:void 0});for(;t.body&&_t.isModuleDeclaration(t.body)&&t.body.name;){t=t.body,l||(l=(0,pe.hasModifier)(E.DeclareKeyword,t));let C=t.name,S=this.createNode(C,{decorators:[],name:C.text,optional:!1,range:[C.getStart(this.ast),C.getEnd()],type:J.AST_NODE_TYPES.Identifier,typeAnnotation:void 0});y=this.createNode(C,{left:y,right:S,range:[y.range[0],S.range[1]],type:J.AST_NODE_TYPES.TSQualifiedName})}return{kind:"namespace",body:this.convertChild(t.body),declare:!1,global:!1,id:y}})()});return v.declare=l,t.flags&_t.NodeFlags.GlobalAugmentation&&(v.global=!0),this.fixExports(t,v)}case E.ParenthesizedType:return this.convertChild(t.type);case E.UnionType:return this.createNode(t,{type:J.AST_NODE_TYPES.TSUnionType,types:t.types.map(l=>this.convertChild(l))});case E.IntersectionType:return this.createNode(t,{type:J.AST_NODE_TYPES.TSIntersectionType,types:t.types.map(l=>this.convertChild(l))});case E.AsExpression:return this.createNode(t,{type:J.AST_NODE_TYPES.TSAsExpression,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});case E.InferType:return this.createNode(t,{type:J.AST_NODE_TYPES.TSInferType,typeParameter:this.convertChild(t.typeParameter)});case E.LiteralType:return t.literal.kind===E.NullKeyword?this.createNode(t.literal,{type:J.AST_NODE_TYPES.TSNullKeyword}):this.createNode(t,{type:J.AST_NODE_TYPES.TSLiteralType,literal:this.convertChild(t.literal)});case E.TypeAssertionExpression:return this.createNode(t,{type:J.AST_NODE_TYPES.TSTypeAssertion,typeAnnotation:this.convertChild(t.type),expression:this.convertChild(t.expression)});case E.ImportEqualsDeclaration:return this.fixExports(t,this.createNode(t,{type:J.AST_NODE_TYPES.TSImportEqualsDeclaration,id:this.convertChild(t.name),importKind:t.isTypeOnly?"type":"value",moduleReference:this.convertChild(t.moduleReference)}));case E.ExternalModuleReference:return this.createNode(t,{type:J.AST_NODE_TYPES.TSExternalModuleReference,expression:this.convertChild(t.expression)});case E.NamespaceExportDeclaration:return this.createNode(t,{type:J.AST_NODE_TYPES.TSNamespaceExportDeclaration,id:this.convertChild(t.name)});case E.AbstractKeyword:return this.createNode(t,{type:J.AST_NODE_TYPES.TSAbstractKeyword});case E.TupleType:{let l="elementTypes"in t?t.elementTypes.map(v=>this.convertChild(v)):t.elements.map(v=>this.convertChild(v));return this.createNode(t,{type:J.AST_NODE_TYPES.TSTupleType,elementTypes:l})}case E.NamedTupleMember:{let l=this.createNode(t,{type:J.AST_NODE_TYPES.TSNamedTupleMember,elementType:this.convertChild(t.type,t),label:this.convertChild(t.name,t),optional:t.questionToken!=null});return t.dotDotDotToken?(l.range[0]=l.label.range[0],l.loc.start=l.label.loc.start,this.createNode(t,{type:J.AST_NODE_TYPES.TSRestType,typeAnnotation:l})):l}case E.OptionalType:return this.createNode(t,{type:J.AST_NODE_TYPES.TSOptionalType,typeAnnotation:this.convertChild(t.type)});case E.RestType:return this.createNode(t,{type:J.AST_NODE_TYPES.TSRestType,typeAnnotation:this.convertChild(t.type)});case E.TemplateLiteralType:{let l=this.createNode(t,{type:J.AST_NODE_TYPES.TSTemplateLiteralType,quasis:[this.convertChild(t.head)],types:[]});return t.templateSpans.forEach(v=>{l.types.push(this.convertChild(v.type)),l.quasis.push(this.convertChild(v.literal))}),l}case E.ClassStaticBlockDeclaration:return this.createNode(t,{type:J.AST_NODE_TYPES.StaticBlock,body:this.convertBodyExpressions(t.body.statements,t)});case E.AssertEntry:return this.createNode(t,{type:J.AST_NODE_TYPES.ImportAttribute,key:this.convertChild(t.name),value:this.convertChild(t.value)});case E.SatisfiesExpression:return this.createNode(t,{type:J.AST_NODE_TYPES.TSSatisfiesExpression,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});default:return this.deeplyCopy(t)}}};yn.Converter=K6;Pe=new WeakSet,aw=function(t){if(!this.options.allowInvalidAST){(0,pe.nodeHasIllegalDecorators)(t)&&Ne(this,Pe,"m",st).call(this,t.illegalDecorators[0],"Decorators are not valid here.");for(let r of(0,Zi.getDecorators)(t,!0)??[])(0,pe.nodeCanBeDecorated)(t)||(_t.isMethodDeclaration(t)&&!(0,pe.nodeIsPresent)(t.body)?Ne(this,Pe,"m",st).call(this,r,"A decorator can only decorate a method implementation, not an overload."):Ne(this,Pe,"m",st).call(this,r,"Decorators are not valid here."));for(let r of(0,Zi.getModifiers)(t,!0)??[]){if(r.kind!==E.ReadonlyKeyword&&((t.kind===E.PropertySignature||t.kind===E.MethodSignature)&&Ne(this,Pe,"m",st).call(this,r,`'${_t.tokenToString(r.kind)}' modifier cannot appear on a type member`),t.kind===E.IndexSignature&&(r.kind!==E.StaticKeyword||!_t.isClassLike(t.parent))&&Ne(this,Pe,"m",st).call(this,r,`'${_t.tokenToString(r.kind)}' modifier cannot appear on an index signature`)),r.kind!==E.InKeyword&&r.kind!==E.OutKeyword&&r.kind!==E.ConstKeyword&&t.kind===E.TypeParameter&&Ne(this,Pe,"m",st).call(this,r,`'${_t.tokenToString(r.kind)}' modifier cannot appear on a type parameter`),(r.kind===E.InKeyword||r.kind===E.OutKeyword)&&(t.kind!==E.TypeParameter||!(_t.isInterfaceDeclaration(t.parent)||_t.isClassLike(t.parent)||_t.isTypeAliasDeclaration(t.parent)))&&Ne(this,Pe,"m",st).call(this,r,`'${_t.tokenToString(r.kind)}' modifier can only appear on a type parameter of a class, interface or type alias`),r.kind===E.ReadonlyKeyword&&t.kind!==E.PropertyDeclaration&&t.kind!==E.PropertySignature&&t.kind!==E.IndexSignature&&t.kind!==E.Parameter&&Ne(this,Pe,"m",st).call(this,r,"'readonly' modifier can only appear on a property declaration or index signature."),r.kind===E.DeclareKeyword&&_t.isClassLike(t.parent)&&!_t.isPropertyDeclaration(t)&&Ne(this,Pe,"m",st).call(this,r,`'${_t.tokenToString(r.kind)}' modifier cannot appear on class elements of this kind.`),r.kind===E.DeclareKeyword&&_t.isVariableStatement(t)){let a=(0,pe.getDeclarationKind)(t.declarationList);(a==="using"||a==="await using")&&Ne(this,Pe,"m",st).call(this,r,`'declare' modifier cannot appear on a '${a}' declaration.`)}if(r.kind===E.AbstractKeyword&&t.kind!==E.ClassDeclaration&&t.kind!==E.ConstructorType&&t.kind!==E.MethodDeclaration&&t.kind!==E.PropertyDeclaration&&t.kind!==E.GetAccessor&&t.kind!==E.SetAccessor&&Ne(this,Pe,"m",st).call(this,r,`'${_t.tokenToString(r.kind)}' modifier can only appear on a class, method, or property declaration.`),(r.kind===E.StaticKeyword||r.kind===E.PublicKeyword||r.kind===E.ProtectedKeyword||r.kind===E.PrivateKeyword)&&(t.parent.kind===E.ModuleBlock||t.parent.kind===E.SourceFile)&&Ne(this,Pe,"m",st).call(this,r,`'${_t.tokenToString(r.kind)}' modifier cannot appear on a module or namespace element.`),r.kind===E.AccessorKeyword&&t.kind!==E.PropertyDeclaration&&Ne(this,Pe,"m",st).call(this,r,"'accessor' modifier can only appear on a property declaration."),r.kind===E.AsyncKeyword&&t.kind!==E.MethodDeclaration&&t.kind!==E.FunctionDeclaration&&t.kind!==E.FunctionExpression&&t.kind!==E.ArrowFunction&&Ne(this,Pe,"m",st).call(this,r,"'async' modifier cannot be used here."),t.kind===E.Parameter&&(r.kind===E.StaticKeyword||r.kind===E.ExportKeyword||r.kind===E.DeclareKeyword||r.kind===E.AsyncKeyword)&&Ne(this,Pe,"m",st).call(this,r,`'${_t.tokenToString(r.kind)}' modifier cannot appear on a parameter.`),t.kind===E.Parameter&&(r.kind===E.PublicKeyword||r.kind===E.PrivateKeyword||r.kind===E.ProtectedKeyword||r.kind===E.ReadonlyKeyword||r.kind===E.OverrideKeyword)){let a=(0,pe.getContainingFunction)(t);a.kind===E.Constructor&&(0,pe.nodeIsPresent)(a.body)||Ne(this,Pe,"m",st).call(this,r,"A parameter property is only allowed in a constructor implementation.")}}}},br=function(t,r){this.options.allowInvalidAST||Ne(this,Pe,"m",st).call(this,t,r)},oi=function(t,r,a){let _=!1;return Object.defineProperty(t,r,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>t[a]:()=>(_||((void 0)(`The '${r}' property is deprecated on ${t.type} nodes. Use '${a}' instead. See https://typescript-eslint.io/linting/troubleshooting#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,"DeprecationWarning"),_=!0),t[a]),set(p){Object.defineProperty(t,r,{enumerable:!0,writable:!0,value:p})}}),t},st=function(t,r){let a,_;throw typeof t=="number"?a=_=t:(a=t.getStart(this.ast),_=t.getEnd()),(0,pe.createError)(r,this.ast,a,_)}});var Zw=ut((CH,Kw)=>{"use strict";var EU=Object.create,Vm=Object.defineProperty,AU=Object.getOwnPropertyDescriptor,kU=Object.getOwnPropertyNames,DU=Object.getPrototypeOf,PU=Object.prototype.hasOwnProperty,IU=(e,t)=>{for(var r in t)Vm(e,r,{get:t[r],enumerable:!0})},cw=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let _ of kU(t))!PU.call(e,_)&&_!==r&&Vm(e,_,{get:()=>t[_],enumerable:!(a=AU(t,_))||a.enumerable});return e},Pr=(e,t,r)=>(r=e!=null?EU(DU(e)):{},cw(t||!e||!e.__esModule?Vm(r,"default",{value:e,enumerable:!0}):r,e)),NU=e=>cw(Vm({},"__esModule",{value:!0}),e),lw={};IU(lw,{forEachComment:()=>MU,forEachToken:()=>uw,getCallSignaturesOfType:()=>tb,getPropertyOfType:()=>gb,getWellKnownSymbolPropertyOfType:()=>Kz,hasDecorators:()=>Fq,hasExpressionInitializer:()=>Nw,hasInitializer:()=>Bq,hasJSDoc:()=>Uq,hasModifiers:()=>qq,hasType:()=>zq,hasTypeArguments:()=>Wq,includesModifier:()=>RU,intersectionTypeParts:()=>nW,isAbstractKeyword:()=>jU,isAccessExpression:()=>Aq,isAccessibilityModifier:()=>sb,isAccessorDeclaration:()=>_b,isAccessorKeyword:()=>mw,isAnyKeyword:()=>FU,isArrayBindingElement:()=>kq,isArrayBindingOrAssignmentPattern:()=>Aw,isAssertKeyword:()=>BU,isAssertsKeyword:()=>UU,isAssignmentKind:()=>hz,isAssignmentPattern:()=>Dq,isAsyncKeyword:()=>qU,isAwaitKeyword:()=>zU,isBigIntKeyword:()=>WU,isBigIntLiteralType:()=>Vz,isBindingOrAssignmentElementRestIndicator:()=>Pq,isBindingOrAssignmentElementTarget:()=>Iq,isBindingOrAssignmentPattern:()=>kw,isBindingPattern:()=>cb,isBlockLike:()=>Nq,isBooleanKeyword:()=>VU,isBooleanLiteral:()=>Dw,isBooleanLiteralType:()=>hb,isClassLikeDeclaration:()=>Hm,isClassMemberModifier:()=>Oq,isColonToken:()=>HU,isCompilerOptionEnabled:()=>ja,isConditionalType:()=>Oz,isConstAssertionExpression:()=>Lw,isConstKeyword:()=>GU,isDeclarationName:()=>Pw,isDeclarationWithTypeParameterChildren:()=>Iw,isDeclarationWithTypeParameters:()=>Mq,isDeclareKeyword:()=>XU,isDefaultKeyword:()=>$U,isDestructuringPattern:()=>Lq,isDotToken:()=>QU,isEndOfFileToken:()=>hw,isEntityNameExpression:()=>hu,isEntityNameOrEntityNameExpression:()=>Jq,isEnumType:()=>Mz,isEqualsGreaterThanToken:()=>YU,isEqualsToken:()=>KU,isEvolvingArrayType:()=>zz,isExclamationToken:()=>ZU,isExportKeyword:()=>eq,isFalseKeyword:()=>tq,isFalseLiteral:()=>yw,isFalseLiteralType:()=>yb,isFalsyType:()=>rW,isForInOrOfStatement:()=>Rq,isFreshableIntrinsicType:()=>Wz,isFreshableType:()=>Vw,isFunctionLikeDeclaration:()=>jq,isFunctionScopeBoundary:()=>mz,isImportExpression:()=>rq,isImportKeyword:()=>nq,isInKeyword:()=>iq,isIndexType:()=>Lz,isIndexedAccessType:()=>Jz,isInputFiles:()=>aq,isInstantiableType:()=>Rz,isIntersectionType:()=>Gm,isIntrinsicAnyType:()=>bz,isIntrinsicBigIntType:()=>Tz,isIntrinsicBooleanType:()=>vz,isIntrinsicESSymbolType:()=>xz,isIntrinsicErrorType:()=>Sz,isIntrinsicNeverType:()=>Cz,isIntrinsicNonPrimitiveType:()=>Ez,isIntrinsicNullType:()=>Az,isIntrinsicNumberType:()=>kz,isIntrinsicStringType:()=>Dz,isIntrinsicType:()=>fb,isIntrinsicUndefinedType:()=>Pz,isIntrinsicUnknownType:()=>Iz,isIntrinsicVoidType:()=>Nz,isIterationStatement:()=>dz,isJSDocComment:()=>Vq,isJSDocNamespaceBody:()=>lb,isJSDocNamespaceDeclaration:()=>Jw,isJSDocText:()=>gw,isJSDocTypeReferencingNode:()=>Hq,isJsonMinusNumericLiteral:()=>bw,isJsonObjectExpression:()=>Gq,isJsxAttributeLike:()=>Xq,isJsxAttributeValue:()=>$q,isJsxChild:()=>Qq,isJsxTagNameExpression:()=>Ow,isJsxTagNamePropertyAccess:()=>Rw,isLiteralToken:()=>Yq,isLiteralType:()=>Hz,isModifierFlagSet:()=>pw,isModuleBody:()=>Kq,isModuleName:()=>Zq,isModuleReference:()=>ez,isNamedDeclarationWithName:()=>jw,isNamedImportBindings:()=>tz,isNamedImportsOrExports:()=>rz,isNamespaceBody:()=>ub,isNamespaceDeclaration:()=>Fw,isNeverKeyword:()=>oq,isNodeFlagSet:()=>fw,isNullKeyword:()=>sq,isNullLiteral:()=>vw,isNumberKeyword:()=>_q,isNumberLiteralType:()=>Gz,isNumericOrStringLikeLiteral:()=>Bw,isNumericPropertyName:()=>Ww,isObjectBindingOrAssignmentElement:()=>nz,isObjectBindingOrAssignmentPattern:()=>Mw,isObjectFlagSet:()=>mu,isObjectKeyword:()=>cq,isObjectType:()=>yu,isObjectTypeDeclaration:()=>iz,isOutKeyword:()=>lq,isOverrideKeyword:()=>uq,isParameterPropertyModifier:()=>az,isPrivateKeyword:()=>Tw,isPropertyAccessEntityNameExpression:()=>Uw,isPropertyNameLiteral:()=>oz,isPropertyReadonlyInType:()=>Qw,isProtectedKeyword:()=>Sw,isPseudoLiteralToken:()=>sz,isPublicKeyword:()=>xw,isQuestionDotToken:()=>pq,isQuestionToken:()=>fq,isReadonlyKeyword:()=>ab,isSignatureDeclaration:()=>pb,isStaticKeyword:()=>ww,isStrictCompilerOptionEnabled:()=>rb,isStringKeyword:()=>dq,isStringLiteralType:()=>Xz,isStringMappingType:()=>jz,isSubstitutionType:()=>Fz,isSuperElementAccessExpression:()=>qw,isSuperExpression:()=>ob,isSuperKeyword:()=>mq,isSuperProperty:()=>_z,isSuperPropertyAccessExpression:()=>zw,isSymbolFlagSet:()=>dw,isSymbolKeyword:()=>hq,isSyntaxList:()=>yq,isTemplateLiteralType:()=>$z,isThenableType:()=>_W,isThisExpression:()=>Cw,isThisKeyword:()=>gq,isTrueKeyword:()=>bq,isTrueLiteral:()=>Ew,isTrueLiteralType:()=>Qz,isTupleType:()=>Gw,isTupleTypeReference:()=>$w,isTypeFlagSet:()=>tt,isTypeOnlyCompatibleAliasDeclaration:()=>cz,isTypeParameter:()=>Bz,isTypeReference:()=>Xw,isTypeReferenceType:()=>lz,isTypeVariable:()=>Uz,isUndefinedKeyword:()=>vq,isUnionOrIntersectionType:()=>qz,isUnionOrIntersectionTypeNode:()=>uz,isUnionType:()=>mb,isUniqueESSymbolType:()=>Hw,isUnknownKeyword:()=>Tq,isUnknownLiteralType:()=>Yz,isUnparsedPrologue:()=>Sq,isUnparsedSourceText:()=>pz,isUnparsedSyntheticReference:()=>xq,isValidPropertyAccess:()=>yz,isVariableLikeDeclaration:()=>fz,isVoidKeyword:()=>wq,symbolHasReadonlyDeclaration:()=>Yw,unionTypeParts:()=>du});Kw.exports=NU(lw);var Zr=Pr(Dt(),1),ow=Pr(Dt(),1);function uw(e,t,r=e.getSourceFile()){let a=[];for(;;){if(ow.default.isTokenKind(e.kind))t(e);else if(e.kind!==ow.default.SyntaxKind.JSDocComment){let _=e.getChildren(r);if(_.length===1){e=_[0];continue}for(let p=_.length-1;p>=0;--p)a.push(_[p])}if(a.length===0)break;e=a.pop()}}function OU(e){switch(e.kind){case Zr.default.SyntaxKind.CloseBraceToken:return e.parent.kind!==Zr.default.SyntaxKind.JsxExpression||!eb(e.parent.parent);case Zr.default.SyntaxKind.GreaterThanToken:switch(e.parent.kind){case Zr.default.SyntaxKind.JsxOpeningElement:return e.end!==e.parent.end;case Zr.default.SyntaxKind.JsxOpeningFragment:return!1;case Zr.default.SyntaxKind.JsxSelfClosingElement:return e.end!==e.parent.end||!eb(e.parent.parent);case Zr.default.SyntaxKind.JsxClosingElement:case Zr.default.SyntaxKind.JsxClosingFragment:return!eb(e.parent.parent.parent)}}return!0}function eb(e){return e.kind===Zr.default.SyntaxKind.JsxElement||e.kind===Zr.default.SyntaxKind.JsxFragment}function MU(e,t,r=e.getSourceFile()){let a=r.text,_=r.languageVariant!==Zr.default.LanguageVariant.JSX;return uw(e,d=>{if(d.pos!==d.end&&(d.kind!==Zr.default.SyntaxKind.JsxText&&Zr.default.forEachLeadingCommentRange(a,d.pos===0?(Zr.default.getShebang(a)??"").length:d.pos,p),_||OU(d)))return Zr.default.forEachTrailingCommentRange(a,d.end,p)},r);function p(d,h,l){t(a,{pos:d,end:h,kind:l})}}var LU=Pr(Dt(),1);function ja(e,t){switch(t){case"stripInternal":case"declarationMap":case"emitDeclarationOnly":return e[t]===!0&&ja(e,"declaration");case"declaration":return e.declaration||ja(e,"composite");case"incremental":return e.incremental===void 0?ja(e,"composite"):e.incremental;case"skipDefaultLibCheck":return e.skipDefaultLibCheck||ja(e,"skipLibCheck");case"suppressImplicitAnyIndexErrors":return e.suppressImplicitAnyIndexErrors===!0&&ja(e,"noImplicitAny");case"allowSyntheticDefaultImports":return e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:ja(e,"esModuleInterop")||e.module===LU.default.ModuleKind.System;case"noUncheckedIndexedAccess":return e.noUncheckedIndexedAccess===!0&&ja(e,"strictNullChecks");case"allowJs":return e.allowJs===void 0?ja(e,"checkJs"):e.allowJs;case"noImplicitAny":case"noImplicitThis":case"strictNullChecks":case"strictFunctionTypes":case"strictPropertyInitialization":case"alwaysStrict":case"strictBindCallApply":return rb(e,t)}return e[t]===!0}function rb(e,t){return(e.strict?e[t]!==!1:e[t]===!0)&&(t!=="strictPropertyInitialization"||rb(e,"strictNullChecks"))}var JU=Pr(Dt(),1);function nb(e,t){return(e&t)!==0}function ib(e,t){return nb(e.flags,t)}function pw(e,t){return nb(JU.default.getCombinedModifierFlags(e),t)}var fw=ib;function mu(e,t){return nb(e.objectFlags,t)}var dw=ib,tt=ib;function RU(e,...t){if(e===void 0)return!1;for(let r of e)if(t.includes(r.kind))return!0;return!1}var pr=Pr(Dt(),1),Fe=Pr(Dt(),1);function jU(e){return e.kind===Fe.default.SyntaxKind.AbstractKeyword}function mw(e){return e.kind===Fe.default.SyntaxKind.AccessorKeyword}function FU(e){return e.kind===Fe.default.SyntaxKind.AnyKeyword}function BU(e){return e.kind===Fe.default.SyntaxKind.AssertKeyword}function UU(e){return e.kind===Fe.default.SyntaxKind.AssertsKeyword}function qU(e){return e.kind===Fe.default.SyntaxKind.AsyncKeyword}function zU(e){return e.kind===Fe.default.SyntaxKind.AwaitKeyword}function WU(e){return e.kind===Fe.default.SyntaxKind.BigIntKeyword}function VU(e){return e.kind===Fe.default.SyntaxKind.BooleanKeyword}function HU(e){return e.kind===Fe.default.SyntaxKind.ColonToken}function GU(e){return e.kind===Fe.default.SyntaxKind.ConstKeyword}function XU(e){return e.kind===Fe.default.SyntaxKind.DeclareKeyword}function $U(e){return e.kind===Fe.default.SyntaxKind.DefaultKeyword}function QU(e){return e.kind===Fe.default.SyntaxKind.DotToken}function hw(e){return e.kind===Fe.default.SyntaxKind.EndOfFileToken}function YU(e){return e.kind===Fe.default.SyntaxKind.EqualsGreaterThanToken}function KU(e){return e.kind===Fe.default.SyntaxKind.EqualsToken}function ZU(e){return e.kind===Fe.default.SyntaxKind.ExclamationToken}function eq(e){return e.kind===Fe.default.SyntaxKind.ExportKeyword}function tq(e){return e.kind===Fe.default.SyntaxKind.FalseKeyword}function yw(e){return e.kind===Fe.default.SyntaxKind.FalseKeyword}function rq(e){return e.kind===Fe.default.SyntaxKind.ImportKeyword}function nq(e){return e.kind===Fe.default.SyntaxKind.ImportKeyword}function iq(e){return e.kind===Fe.default.SyntaxKind.InKeyword}function aq(e){return e.kind===Fe.default.SyntaxKind.InputFiles}function gw(e){return e.kind===Fe.default.SyntaxKind.JSDocText}function bw(e){return e.kind===Fe.default.SyntaxKind.PrefixUnaryExpression}function oq(e){return e.kind===Fe.default.SyntaxKind.NeverKeyword}function sq(e){return e.kind===Fe.default.SyntaxKind.NullKeyword}function vw(e){return e.kind===Fe.default.SyntaxKind.NullKeyword}function _q(e){return e.kind===Fe.default.SyntaxKind.NumberKeyword}function cq(e){return e.kind===Fe.default.SyntaxKind.ObjectKeyword}function lq(e){return e.kind===Fe.default.SyntaxKind.OutKeyword}function uq(e){return e.kind===Fe.default.SyntaxKind.OverrideKeyword}function Tw(e){return e.kind===Fe.default.SyntaxKind.PrivateKeyword}function Sw(e){return e.kind===Fe.default.SyntaxKind.ProtectedKeyword}function xw(e){return e.kind===Fe.default.SyntaxKind.PublicKeyword}function pq(e){return e.kind===Fe.default.SyntaxKind.QuestionDotToken}function fq(e){return e.kind===Fe.default.SyntaxKind.QuestionToken}function ab(e){return e.kind===Fe.default.SyntaxKind.ReadonlyKeyword}function ww(e){return e.kind===Fe.default.SyntaxKind.StaticKeyword}function dq(e){return e.kind===Fe.default.SyntaxKind.StringKeyword}function ob(e){return e.kind===Fe.default.SyntaxKind.SuperKeyword}function mq(e){return e.kind===Fe.default.SyntaxKind.SuperKeyword}function hq(e){return e.kind===Fe.default.SyntaxKind.SymbolKeyword}function yq(e){return e.kind===Fe.default.SyntaxKind.SyntaxList}function Cw(e){return e.kind===Fe.default.SyntaxKind.ThisKeyword}function gq(e){return e.kind===Fe.default.SyntaxKind.ThisKeyword}function bq(e){return e.kind===Fe.default.SyntaxKind.TrueKeyword}function Ew(e){return e.kind===Fe.default.SyntaxKind.TrueKeyword}function vq(e){return e.kind===Fe.default.SyntaxKind.UndefinedKeyword}function Tq(e){return e.kind===Fe.default.SyntaxKind.UnknownKeyword}function Sq(e){return e.kind===Fe.default.SyntaxKind.UnparsedPrologue}function xq(e){return e.kind===Fe.default.SyntaxKind.UnparsedSyntheticReference}function wq(e){return e.kind===Fe.default.SyntaxKind.VoidKeyword}var D=Pr(Dt(),1),Cq=Pr(Dt(),1),[sw,Eq]=Cq.default.versionMajorMinor.split(".").map(e=>Number.parseInt(e,10));function fu(e,t=0){return sw>e||sw===e&&Eq>=t}function Aq(e){return D.default.isPropertyAccessExpression(e)||D.default.isElementAccessExpression(e)}function sb(e){return xw(e)||Tw(e)||Sw(e)}function _b(e){return D.default.isGetAccessorDeclaration(e)||D.default.isSetAccessorDeclaration(e)}function kq(e){return D.default.isBindingElement(e)||D.default.isOmittedExpression(e)}function Aw(e){return D.default.isArrayBindingPattern(e)||D.default.isArrayLiteralExpression(e)}function Dq(e){return D.default.isObjectLiteralExpression(e)||D.default.isArrayLiteralExpression(e)}function Pq(e){return D.default.isSpreadElement(e)||D.default.isSpreadAssignment(e)?!0:fu(4,4)?D.default.isDotDotDotToken(e):!1}function Iq(e){return kw(e)||D.default.isIdentifier(e)||D.default.isPropertyAccessExpression(e)||D.default.isElementAccessExpression(e)||D.default.isOmittedExpression(e)}function kw(e){return Mw(e)||Aw(e)}function cb(e){return D.default.isObjectBindingPattern(e)||D.default.isArrayBindingPattern(e)}function Nq(e){return D.default.isSourceFile(e)||D.default.isBlock(e)||D.default.isModuleBlock(e)||D.default.isCaseOrDefaultClause(e)}function Dw(e){return Ew(e)||yw(e)}function Hm(e){return D.default.isClassDeclaration(e)||D.default.isClassExpression(e)}function Oq(e){return sb(e)||ab(e)||ww(e)||mw(e)}function Pw(e){return D.default.isIdentifier(e)||D.default.isPrivateIdentifier(e)||D.default.isStringLiteralLike(e)||D.default.isNumericLiteral(e)||D.default.isComputedPropertyName(e)||D.default.isElementAccessExpression(e)||cb(e)||hu(e)}function Iw(e){return pb(e)||Hm(e)||D.default.isInterfaceDeclaration(e)||D.default.isTypeAliasDeclaration(e)||D.default.isJSDocTemplateTag(e)}function Mq(e){return Iw(e)||D.default.isJSDocTypedefTag(e)||D.default.isJSDocCallbackTag(e)||D.default.isJSDocSignature(e)}function Lq(e){return cb(e)||D.default.isObjectLiteralExpression(e)||D.default.isArrayLiteralExpression(e)}function hu(e){return D.default.isIdentifier(e)||Uw(e)}function Jq(e){return D.default.isEntityName(e)||hu(e)}function Rq(e){return D.default.isForInStatement(e)||D.default.isForOfStatement(e)}function jq(e){return D.default.isFunctionDeclaration(e)||D.default.isMethodDeclaration(e)||D.default.isGetAccessorDeclaration(e)||D.default.isSetAccessorDeclaration(e)||D.default.isConstructorDeclaration(e)||D.default.isFunctionExpression(e)||D.default.isArrowFunction(e)}function Fq(e){return D.default.isParameter(e)||D.default.isPropertyDeclaration(e)||D.default.isMethodDeclaration(e)||D.default.isGetAccessorDeclaration(e)||D.default.isSetAccessorDeclaration(e)||D.default.isClassExpression(e)||D.default.isClassDeclaration(e)}function Nw(e){return D.default.isVariableDeclaration(e)||D.default.isParameter(e)||D.default.isBindingElement(e)||D.default.isPropertyDeclaration(e)||D.default.isPropertyAssignment(e)||D.default.isEnumMember(e)}function Bq(e){return Nw(e)||D.default.isForStatement(e)||D.default.isForInStatement(e)||D.default.isForOfStatement(e)||D.default.isJsxAttribute(e)}function Uq(e){return!!(_b(e)||D.default.isArrowFunction(e)||D.default.isBlock(e)||D.default.isBreakStatement(e)||D.default.isCallSignatureDeclaration(e)||D.default.isCaseClause(e)||Hm(e)||D.default.isConstructorDeclaration(e)||D.default.isConstructorTypeNode(e)||D.default.isConstructSignatureDeclaration(e)||D.default.isContinueStatement(e)||D.default.isDebuggerStatement(e)||D.default.isDoStatement(e)||D.default.isEmptyStatement(e)||hw(e)||D.default.isEnumDeclaration(e)||D.default.isEnumMember(e)||D.default.isExportAssignment(e)||D.default.isExportDeclaration(e)||D.default.isExportSpecifier(e)||D.default.isExpressionStatement(e)||D.default.isForInStatement(e)||D.default.isForOfStatement(e)||D.default.isForStatement(e)||D.default.isFunctionDeclaration(e)||D.default.isFunctionExpression(e)||D.default.isFunctionTypeNode(e)||D.default.isIfStatement(e)||D.default.isImportDeclaration(e)||D.default.isImportEqualsDeclaration(e)||D.default.isIndexSignatureDeclaration(e)||D.default.isInterfaceDeclaration(e)||D.default.isJSDocFunctionType(e)||D.default.isLabeledStatement(e)||D.default.isMethodDeclaration(e)||D.default.isMethodSignature(e)||D.default.isModuleDeclaration(e)||D.default.isNamedTupleMember(e)||D.default.isNamespaceExportDeclaration(e)||D.default.isParameter(e)||D.default.isParenthesizedExpression(e)||D.default.isPropertyAssignment(e)||D.default.isPropertyDeclaration(e)||D.default.isPropertySignature(e)||D.default.isReturnStatement(e)||D.default.isShorthandPropertyAssignment(e)||D.default.isSpreadAssignment(e)||D.default.isSwitchStatement(e)||D.default.isThrowStatement(e)||D.default.isTryStatement(e)||D.default.isTypeAliasDeclaration(e)||D.default.isVariableDeclaration(e)||D.default.isVariableStatement(e)||D.default.isWhileStatement(e)||D.default.isWithStatement(e)||fu(4,4)&&D.default.isClassStaticBlockDeclaration(e)||fu(5,0)&&(D.default.isBinaryExpression(e)||D.default.isElementAccessExpression(e)||D.default.isIdentifier(e)||D.default.isJSDocSignature(e)||D.default.isObjectLiteralExpression(e)||D.default.isPropertyAccessExpression(e)||D.default.isTypeParameterDeclaration(e)))}function qq(e){return D.default.isTypeParameterDeclaration(e)||D.default.isParameter(e)||D.default.isConstructorTypeNode(e)||D.default.isPropertySignature(e)||D.default.isPropertyDeclaration(e)||D.default.isMethodSignature(e)||D.default.isMethodDeclaration(e)||D.default.isConstructorDeclaration(e)||D.default.isGetAccessorDeclaration(e)||D.default.isSetAccessorDeclaration(e)||D.default.isIndexSignatureDeclaration(e)||D.default.isFunctionExpression(e)||D.default.isArrowFunction(e)||D.default.isClassExpression(e)||D.default.isVariableStatement(e)||D.default.isFunctionDeclaration(e)||D.default.isClassDeclaration(e)||D.default.isInterfaceDeclaration(e)||D.default.isTypeAliasDeclaration(e)||D.default.isEnumDeclaration(e)||D.default.isModuleDeclaration(e)||D.default.isImportEqualsDeclaration(e)||D.default.isImportDeclaration(e)||D.default.isExportAssignment(e)||D.default.isExportDeclaration(e)}function zq(e){return pb(e)||D.default.isVariableDeclaration(e)||D.default.isParameter(e)||D.default.isPropertySignature(e)||D.default.isPropertyDeclaration(e)||D.default.isTypePredicateNode(e)||D.default.isParenthesizedTypeNode(e)||D.default.isTypeOperatorNode(e)||D.default.isMappedTypeNode(e)||D.default.isAssertionExpression(e)||D.default.isTypeAliasDeclaration(e)||D.default.isJSDocTypeExpression(e)||D.default.isJSDocNonNullableType(e)||D.default.isJSDocNullableType(e)||D.default.isJSDocOptionalType(e)||D.default.isJSDocVariadicType(e)}function Wq(e){return D.default.isCallExpression(e)||D.default.isNewExpression(e)||D.default.isTaggedTemplateExpression(e)||D.default.isJsxOpeningElement(e)||D.default.isJsxSelfClosingElement(e)}function Vq(e){return gw(e)?!0:fu(4,4)?D.default.isJSDocLink(e)||D.default.isJSDocLinkCode(e)||D.default.isJSDocLinkPlain(e):!1}function lb(e){return D.default.isIdentifier(e)||Jw(e)}function Hq(e){return D.default.isJSDocVariadicType(e)||D.default.isJSDocOptionalType(e)||D.default.isJSDocNullableType(e)||D.default.isJSDocNonNullableType(e)}function Gq(e){return D.default.isObjectLiteralExpression(e)||D.default.isArrayLiteralExpression(e)||bw(e)||D.default.isNumericLiteral(e)||D.default.isStringLiteral(e)||Dw(e)||vw(e)}function Xq(e){return D.default.isJsxAttribute(e)||D.default.isJsxSpreadAttribute(e)}function $q(e){return D.default.isStringLiteral(e)||D.default.isJsxExpression(e)||D.default.isJsxElement(e)||D.default.isJsxSelfClosingElement(e)||D.default.isJsxFragment(e)}function Qq(e){return D.default.isJsxText(e)||D.default.isJsxExpression(e)||D.default.isJsxElement(e)||D.default.isJsxSelfClosingElement(e)||D.default.isJsxFragment(e)}function Ow(e){return D.default.isIdentifier(e)||Cw(e)||Rw(e)}function Yq(e){return D.default.isNumericLiteral(e)||D.default.isBigIntLiteral(e)||D.default.isStringLiteral(e)||D.default.isJsxText(e)||D.default.isRegularExpressionLiteral(e)||D.default.isNoSubstitutionTemplateLiteral(e)}function Kq(e){return ub(e)||lb(e)}function Zq(e){return D.default.isIdentifier(e)||D.default.isStringLiteral(e)}function ez(e){return D.default.isEntityName(e)||D.default.isExternalModuleReference(e)}function tz(e){return D.default.isNamespaceImport(e)||D.default.isNamedImports(e)}function rz(e){return D.default.isNamedImports(e)||D.default.isNamedExports(e)}function ub(e){return D.default.isModuleBlock(e)||Fw(e)}function nz(e){return D.default.isBindingElement(e)||D.default.isPropertyAssignment(e)||D.default.isShorthandPropertyAssignment(e)||D.default.isSpreadAssignment(e)}function Mw(e){return D.default.isObjectBindingPattern(e)||D.default.isObjectLiteralExpression(e)}function iz(e){return Hm(e)||D.default.isInterfaceDeclaration(e)||D.default.isTypeLiteralNode(e)}function az(e){return sb(e)||ab(e)}function oz(e){return D.default.isIdentifier(e)||D.default.isStringLiteralLike(e)||D.default.isNumericLiteral(e)}function sz(e){return D.default.isTemplateHead(e)||D.default.isTemplateMiddle(e)||D.default.isTemplateTail(e)}function pb(e){return D.default.isCallSignatureDeclaration(e)||D.default.isConstructSignatureDeclaration(e)||D.default.isMethodSignature(e)||D.default.isIndexSignatureDeclaration(e)||D.default.isFunctionTypeNode(e)||D.default.isConstructorTypeNode(e)||D.default.isJSDocFunctionType(e)||D.default.isFunctionDeclaration(e)||D.default.isMethodDeclaration(e)||D.default.isConstructorDeclaration(e)||_b(e)||D.default.isFunctionExpression(e)||D.default.isArrowFunction(e)}function _z(e){return zw(e)||qw(e)}function cz(e){return!!(D.default.isImportClause(e)||D.default.isImportEqualsDeclaration(e)||D.default.isNamespaceImport(e)||D.default.isImportOrExportSpecifier(e)||fu(5,0)&&(D.default.isExportDeclaration(e)||D.default.isNamespaceExport(e)))}function lz(e){return D.default.isTypeReferenceNode(e)||D.default.isExpressionWithTypeArguments(e)}function uz(e){return D.default.isUnionTypeNode(e)||D.default.isIntersectionTypeNode(e)}function pz(e){return D.default.isUnparsedPrepend(e)||D.default.isUnparsedTextLike(e)}function fz(e){return D.default.isVariableDeclaration(e)||D.default.isParameter(e)||D.default.isBindingElement(e)||D.default.isPropertyDeclaration(e)||D.default.isPropertyAssignment(e)||D.default.isPropertySignature(e)||D.default.isJsxAttribute(e)||D.default.isShorthandPropertyAssignment(e)||D.default.isEnumMember(e)||D.default.isJSDocPropertyTag(e)||D.default.isJSDocParameterTag(e)}function Lw(e){return pr.default.isTypeReferenceNode(e.type)&&pr.default.isIdentifier(e.type.typeName)&&e.type.typeName.escapedText==="const"}function dz(e){switch(e.kind){case pr.default.SyntaxKind.DoStatement:case pr.default.SyntaxKind.ForInStatement:case pr.default.SyntaxKind.ForOfStatement:case pr.default.SyntaxKind.ForStatement:case pr.default.SyntaxKind.WhileStatement:return!0;default:return!1}}function Jw(e){return pr.default.isModuleDeclaration(e)&&pr.default.isIdentifier(e.name)&&(e.body===void 0||lb(e.body))}function Rw(e){return pr.default.isPropertyAccessExpression(e)&&Ow(e.expression)}function jw(e){return"name"in e&&e.name!==void 0&&e.name!==null&&Pw(e.name)}function Fw(e){return pr.default.isModuleDeclaration(e)&&pr.default.isIdentifier(e.name)&&e.body!==void 0&&ub(e.body)}function Bw(e){switch(e.kind){case pr.default.SyntaxKind.StringLiteral:case pr.default.SyntaxKind.NumericLiteral:case pr.default.SyntaxKind.NoSubstitutionTemplateLiteral:return!0;default:return!1}}function Uw(e){return pr.default.isPropertyAccessExpression(e)&&pr.default.isIdentifier(e.name)&&hu(e.expression)}function qw(e){return pr.default.isElementAccessExpression(e)&&ob(e.expression)}function zw(e){return pr.default.isPropertyAccessExpression(e)&&ob(e.expression)}var vr=Pr(Dt(),1);function mz(e){switch(e.kind){case vr.default.SyntaxKind.FunctionExpression:case vr.default.SyntaxKind.ArrowFunction:case vr.default.SyntaxKind.Constructor:case vr.default.SyntaxKind.ModuleDeclaration:case vr.default.SyntaxKind.ClassDeclaration:case vr.default.SyntaxKind.ClassExpression:case vr.default.SyntaxKind.EnumDeclaration:case vr.default.SyntaxKind.MethodDeclaration:case vr.default.SyntaxKind.FunctionDeclaration:case vr.default.SyntaxKind.GetAccessor:case vr.default.SyntaxKind.SetAccessor:case vr.default.SyntaxKind.MethodSignature:case vr.default.SyntaxKind.CallSignature:case vr.default.SyntaxKind.ConstructSignature:case vr.default.SyntaxKind.ConstructorType:case vr.default.SyntaxKind.FunctionType:return!0;case vr.default.SyntaxKind.SourceFile:return vr.default.isExternalModule(e);default:return!1}}var pu=Pr(Dt(),1);function hz(e){return e>=pu.default.SyntaxKind.FirstAssignment&&e<=pu.default.SyntaxKind.LastAssignment}function Ww(e){return String(+e)===e}function _w(e){return e>=65536?2:1}function yz(e,t=pu.default.ScriptTarget.Latest){if(e.length===0)return!1;let r=e.codePointAt(0);if(!pu.default.isIdentifierStart(r,t))return!1;for(let a=_w(r);ar.escapedName===t):e.getProperty(t)}function Kz(e,t,r){let a="__@"+t;for(let _ of e.getProperties()){if(!_.name.startsWith(a))continue;let p=_.valueDeclaration??_.getDeclarations()[0];if(!jw(p)||p.name===void 0||!gz.default.isComputedPropertyName(p.name))continue;let d=r.getApparentType(r.getTypeAtLocation(p.name.expression)).symbol;if(_.escapedName===Zz(r,d,t))return _}}function Zz(e,t,r){let a=t&&e.getTypeOfSymbolAtLocation(t,t.valueDeclaration).getProperty(r),_=a&&e.getTypeOfSymbolAtLocation(a,a.valueDeclaration);return _&&Hw(_)?_.escapedName:"__@"+r}var ur=Pr(Dt(),1),gn=Pr(Dt(),1);function eW(e){return e.arguments.length===3&&hu(e.arguments[0])&&Bw(e.arguments[1])&&gn.default.isPropertyAccessExpression(e.expression)&&e.expression.name.escapedText==="defineProperty"&&gn.default.isIdentifier(e.expression.expression)&&e.expression.expression.escapedText==="Object"}function tW(e){let t=e;for(;;){let r=t.parent;e:switch(r.kind){case gn.default.SyntaxKind.TypeAssertionExpression:case gn.default.SyntaxKind.AsExpression:return Lw(r);case gn.default.SyntaxKind.PrefixUnaryExpression:if(t.kind!==gn.default.SyntaxKind.NumericLiteral)return!1;switch(r.operator){case gn.default.SyntaxKind.PlusToken:case gn.default.SyntaxKind.MinusToken:t=r;break e;default:return!1}case gn.default.SyntaxKind.PropertyAssignment:if(r.initializer!==t)return!1;t=r.parent;break;case gn.default.SyntaxKind.ShorthandPropertyAssignment:t=r.parent;break;case gn.default.SyntaxKind.ParenthesizedExpression:case gn.default.SyntaxKind.ArrayLiteralExpression:case gn.default.SyntaxKind.ObjectLiteralExpression:case gn.default.SyntaxKind.TemplateExpression:t=r;break;default:return!1}}}function rW(e){return tt(e,ur.default.TypeFlags.Undefined|ur.default.TypeFlags.Null|ur.default.TypeFlags.Void)?!0:e.isLiteral()?!e.value:yb(e)}function nW(e){return Gm(e)?e.types:[e]}function iW(e,t,r){return(Gm(e)?e.types:[e]).some(_=>{let p=gb(_,t);if(p===void 0)return!1;if(p.flags&ur.default.SymbolFlags.Transient){if(/^(?:[1-9]\d*|0)$/.test(t)&&$w(_))return _.target.readonly;switch(aW(_,t,r)){case!0:return!0;case!1:return!1;default:}}return!!(dw(p,ur.default.SymbolFlags.ValueModule)||Yw(p,r))})}function aW(e,t,r){if(!yu(e)||!mu(e,ur.default.ObjectFlags.Mapped))return;let a=e.symbol.declarations[0];if(a.readonlyToken!==void 0&&!/^__@[^@]+$/.test(t))return a.readonlyToken.kind!==ur.default.SyntaxKind.MinusToken;let{modifiersType:_}=e;return _&&Qw(_,t,r)}function oW(e,t,r){let a=e.getApparentType(e.getTypeOfSymbolAtLocation(t,r));if(t.valueDeclaration.dotDotDotToken&&(a=a.getNumberIndexType(),a===void 0))return!1;for(let _ of du(a))if(_.getCallSignatures().length!==0)return!0;return!1}function Qw(e,t,r){let a=!1,_=!1;for(let p of du(e))if(gb(p,t)===void 0){let d=(Ww(t)?r.getIndexInfoOfType(p,ur.default.IndexKind.Number):void 0)??r.getIndexInfoOfType(p,ur.default.IndexKind.String);if(d!=null&&d.isReadonly){if(a)return!0;_=!0}}else{if(_||iW(p,t,r))return!0;a=!0}return!1}function sW(e,t){if(!eW(e))return!1;let r=t.getTypeAtLocation(e.arguments[2]);if(r.getProperty("value")===void 0)return r.getProperty("set")===void 0;let a=r.getProperty("writable");if(a===void 0)return!1;let _=a.valueDeclaration!==void 0&&ur.default.isPropertyAssignment(a.valueDeclaration)?t.getTypeAtLocation(a.valueDeclaration.initializer):t.getTypeOfSymbolAtLocation(a,e.arguments[2]);return yb(_)}function _W(e,t,r=e.getTypeAtLocation(t)){for(let a of du(e.getApparentType(r))){let _=a.getProperty("then");if(_===void 0)continue;let p=e.getTypeOfSymbolAtLocation(_,t);for(let d of du(p))for(let h of d.getCallSignatures())if(h.parameters.length!==0&&oW(e,h.parameters[0],t))return!0}return!1}function Yw(e,t){var r;return!!((e.flags&ur.default.SymbolFlags.Accessor)===ur.default.SymbolFlags.GetAccessor||(r=e.declarations)!=null&&r.some(a=>pw(a,ur.default.ModifierFlags.Readonly)||ur.default.isVariableDeclaration(a)&&fw(a.parent,ur.default.NodeFlags.Const)||ur.default.isCallExpression(a)&&sW(a,t)||ur.default.isEnumMember(a)||(ur.default.isPropertyAssignment(a)||ur.default.isShorthandPropertyAssignment(a))&&tW(a.parent)))}function du(e){return mb(e)?e.types:[e]}});var n9=ut(ea=>{"use strict";var cW=ea&&ea.__createBinding||(Object.create?function(e,t,r,a){a===void 0&&(a=r);var _=Object.getOwnPropertyDescriptor(t,r);(!_||("get"in _?!t.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,_)}:function(e,t,r,a){a===void 0&&(a=r),e[a]=t[r]}),lW=ea&&ea.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r9=ea&&ea.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&cW(t,e,r);return lW(t,e),t};Object.defineProperty(ea,"__esModule",{value:!0});ea.convertComments=void 0;var uW=r9(Zw()),e9=r9(Dt()),pW=Wm(),t9=Um();function fW(e,t){let r=[];return uW.forEachComment(e,(a,_)=>{let p=_.kind===e9.SyntaxKind.SingleLineCommentTrivia?t9.AST_TOKEN_TYPES.Line:t9.AST_TOKEN_TYPES.Block,d=[_.pos,_.end],h=(0,pW.getLocFor)(d,e),l=d[0]+2,v=_.kind===e9.SyntaxKind.SingleLineCommentTrivia?d[1]-l:d[1]-l-2;r.push({type:p,value:t.slice(l,l+v),range:d,loc:h})},e),r}ea.convertComments=fW});var a9=ut(Xm=>{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0});Xm.astConverter=void 0;var i9=Z6(),dW=n9(),mW=Wm(),hW={};function yW(e,t,r){let{parseDiagnostics:a}=e;if(a.length)throw(0,i9.convertError)(a[0]);let _=new i9.Converter(e,{allowInvalidAST:t.allowInvalidAST,errorOnUnknownASTType:t.errorOnUnknownASTType,shouldPreserveNodeMaps:r,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings}),p=_.convertProgram();(!t.range||!t.loc)&&(0,hW.simpleTraverse)(p,{enter:h=>{t.range||delete h.range,t.loc||delete h.loc}}),t.tokens&&(p.tokens=(0,mW.convertTokens)(e)),t.comment&&(p.comments=(0,dW.convertComments)(e,t.codeFullText));let d=_.getASTMaps();return{estree:p,astMaps:d}}Xm.astConverter=yW});var bb=ut(si=>{"use strict";var gW=si&&si.__createBinding||(Object.create?function(e,t,r,a){a===void 0&&(a=r);var _=Object.getOwnPropertyDescriptor(t,r);(!_||("get"in _?!t.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,_)}:function(e,t,r,a){a===void 0&&(a=r),e[a]=t[r]}),bW=si&&si.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),vW=si&&si.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&gW(t,e,r);return bW(t,e),t};Object.defineProperty(si,"__esModule",{value:!0});si.getCodeText=si.isSourceFile=void 0;var TW=vW(Dt());function o9(e){if(typeof e!="object"||e==null)return!1;let t=e;return t.kind===TW.SyntaxKind.SourceFile&&typeof t.getFullText=="function"}si.isSourceFile=o9;function SW(e){return o9(e)?e.getFullText(e):e}si.getCodeText=SW});var s9=ut(bn=>{"use strict";var xW=bn&&bn.__createBinding||(Object.create?function(e,t,r,a){a===void 0&&(a=r);var _=Object.getOwnPropertyDescriptor(t,r);(!_||("get"in _?!t.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,_)}:function(e,t,r,a){a===void 0&&(a=r),e[a]=t[r]}),wW=bn&&bn.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),CW=bn&&bn.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&xW(t,e,r);return wW(t,e),t},EW=bn&&bn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bn,"__esModule",{value:!0});bn.getLanguageVariant=bn.getScriptKind=void 0;var AW=EW({extname:e=>"."+e.split(".").pop()}),Ht=CW(Dt());function kW(e,t){switch(AW.default.extname(e).toLowerCase()){case Ht.Extension.Js:case Ht.Extension.Cjs:case Ht.Extension.Mjs:return Ht.ScriptKind.JS;case Ht.Extension.Jsx:return Ht.ScriptKind.JSX;case Ht.Extension.Ts:case Ht.Extension.Cts:case Ht.Extension.Mts:return Ht.ScriptKind.TS;case Ht.Extension.Tsx:return Ht.ScriptKind.TSX;case Ht.Extension.Json:return Ht.ScriptKind.JSON;default:return t?Ht.ScriptKind.TSX:Ht.ScriptKind.TS}}bn.getScriptKind=kW;function DW(e){switch(e){case Ht.ScriptKind.TSX:case Ht.ScriptKind.JSX:case Ht.ScriptKind.JS:case Ht.ScriptKind.JSON:return Ht.LanguageVariant.JSX;default:return Ht.LanguageVariant.Standard}}bn.getLanguageVariant=DW});var l9=ut(vn=>{"use strict";var PW=vn&&vn.__createBinding||(Object.create?function(e,t,r,a){a===void 0&&(a=r);var _=Object.getOwnPropertyDescriptor(t,r);(!_||("get"in _?!t.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,_)}:function(e,t,r,a){a===void 0&&(a=r),e[a]=t[r]}),IW=vn&&vn.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),NW=vn&&vn.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&PW(t,e,r);return IW(t,e),t},OW=vn&&vn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vn,"__esModule",{value:!0});vn.createNoProgram=vn.createSourceFile=void 0;var MW=OW((Ef(),wf(Cf))),_9=NW(Dt()),LW=bb(),JW=s9(),RW=(0,MW.default)("typescript-eslint:typescript-estree:createSourceFile");function c9(e){return RW("Getting AST without type information in %s mode for: %s",e.jsx?"TSX":"TS",e.filePath),(0,LW.isSourceFile)(e.code)?e.code:_9.createSourceFile(e.filePath,e.codeFullText,_9.ScriptTarget.Latest,!0,(0,JW.getScriptKind)(e.filePath,e.jsx))}vn.createSourceFile=c9;function jW(e){return{ast:c9(e),program:null}}vn.createNoProgram=jW});var u9=ut(()=>{});var p9=ut($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0});$m.createParserServices=void 0;function FW(e,t){if(!t)return{program:t,...e};let r=t.getTypeChecker();return{program:t,...e,getSymbolAtLocation:a=>r.getSymbolAtLocation(e.esTreeNodeToTSNodeMap.get(a)),getTypeAtLocation:a=>r.getTypeAtLocation(e.esTreeNodeToTSNodeMap.get(a))}}$m.createParserServices=FW});var f9=ut(()=>{});var m9=ut(d9=>{d9.ExpiringCache=class{}});var y9=ut(h9=>{h9.resolveProjectList=()=>[]});var b9=ut(g9=>{g9.inferSingleRun=()=>!1});var T9=ut(v9=>{v9.warnAboutTSVersion=()=>{}});var w9=ut(ta=>{"use strict";var BW=ta&&ta.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ta,"__esModule",{value:!0});ta.clearTSServerProjectService=ta.clearTSConfigMatchCache=ta.createParseSettings=void 0;var vb=BW((Ef(),wf(Cf))),UW=f9(),qW={ensureAbsolutePath:e=>e},zW=bb(),S9=m9(),UH=y9(),WW=b9(),VW=T9(),HW=(0,vb.default)("typescript-eslint:typescript-estree:parser:parseSettings:createParseSettings"),Qm,x9=null;function GW(e,t={}){var d;let r=QW(e),a=(0,WW.inferSingleRun)(t),_=typeof t.tsconfigRootDir=="string"?t.tsconfigRootDir:"/prettier-security-dirname-placeholder",p={allowInvalidAST:t.allowInvalidAST===!0,code:e,codeFullText:r,comment:t.comment===!0,comments:[],DEPRECATED__createDefaultProgram:t.DEPRECATED__createDefaultProgram===!0,debugLevel:t.debugLevel===!0?new Set(["typescript-eslint"]):Array.isArray(t.debugLevel)?new Set(t.debugLevel):new Set,errorOnTypeScriptSyntacticAndSemanticIssues:!1,errorOnUnknownASTType:t.errorOnUnknownASTType===!0,EXPERIMENTAL_projectService:t.EXPERIMENTAL_useProjectService===!0?x9??(x9=(0,UW.createProjectService)()):void 0,EXPERIMENTAL_useSourceOfProjectReferenceRedirect:t.EXPERIMENTAL_useSourceOfProjectReferenceRedirect===!0,extraFileExtensions:Array.isArray(t.extraFileExtensions)&&t.extraFileExtensions.every(h=>typeof h=="string")?t.extraFileExtensions:[],filePath:(0,qW.ensureAbsolutePath)(typeof t.filePath=="string"&&t.filePath!==""?t.filePath:YW(t.jsx),_),jsx:t.jsx===!0,loc:t.loc===!0,log:typeof t.loggerFn=="function"?t.loggerFn:t.loggerFn===!1?()=>{}:console.log,preserveNodeMaps:t.preserveNodeMaps!==!1,programs:Array.isArray(t.programs)?t.programs:null,projects:[],range:t.range===!0,singleRun:a,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings??!0,tokens:t.tokens===!0?[]:null,tsconfigMatchCache:Qm??(Qm=new S9.ExpiringCache(a?"Infinity":((d=t.cacheLifetime)==null?void 0:d.glob)??S9.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS)),tsconfigRootDir:_};if(p.debugLevel.size>0){let h=[];p.debugLevel.has("typescript-eslint")&&h.push("typescript-eslint:*"),(p.debugLevel.has("eslint")||vb.default.enabled("eslint:*,-eslint:code-path"))&&h.push("eslint:*,-eslint:code-path"),vb.default.enable(h.join(","))}if(Array.isArray(t.programs)){if(!t.programs.length)throw new Error("You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.");HW("parserOptions.programs was provided, so parserOptions.project will be ignored.")}return!p.programs&&!p.EXPERIMENTAL_projectService&&(p.projects=[]),(0,VW.warnAboutTSVersion)(p),p}ta.createParseSettings=GW;function XW(){Qm==null||Qm.clear()}ta.clearTSConfigMatchCache=XW;function $W(){x9=null}ta.clearTSServerProjectService=$W;function QW(e){return(0,zW.isSourceFile)(e)?e.getFullText(e):typeof e=="string"?e:String(e)}function YW(e){return e?"estree.tsx":"estree.ts"}});var k9=ut(Ym=>{"use strict";Object.defineProperty(Ym,"__esModule",{value:!0});Ym.getFirstSemanticOrSyntacticError=void 0;var C9=Dt();function KW(e,t){try{let r=E9(e.getSyntacticDiagnostics(t));if(r.length>0)return A9(r[0]);let a=E9(e.getSemanticDiagnostics(t));return a.length>0?A9(a[0]):void 0}catch(r){console.warn(`Warning From TSC: "${r.message}`);return}}Ym.getFirstSemanticOrSyntacticError=KW;function E9(e){return e.filter(t=>{switch(t.code){case 1013:case 1014:case 1044:case 1045:case 1048:case 1049:case 1070:case 1071:case 1085:case 1090:case 1096:case 1097:case 1098:case 1099:case 1117:case 1121:case 1123:case 1141:case 1162:case 1164:case 1172:case 1173:case 1175:case 1176:case 1190:case 1196:case 1200:case 1206:case 1211:case 1242:case 1246:case 1255:case 1308:case 2364:case 2369:case 2452:case 2462:case 8017:case 17012:case 17013:return!0}return!1})}function A9(e){return{...e,message:(0,C9.flattenDiagnosticMessageText)(e.messageText,C9.sys.newLine)}}});var D9=ut(()=>{});var L9=ut(_i=>{"use strict";var ZW=_i&&_i.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_i,"__esModule",{value:!0});_i.clearParseAndGenerateServicesCalls=_i.clearProgramCache=_i.parseAndGenerateServices=_i.parse=void 0;var eV=ZW((Ef(),wf(Cf))),P9=a9(),tV=Z6(),rV={},I9={},nV={},N9=l9(),iV=u9(),O9={},aV=p9(),M9=w9(),oV=k9(),sV=D9(),_V=(0,eV.default)("typescript-eslint:typescript-estree:parser"),Tb=new Map;function cV(){Tb.clear()}_i.clearProgramCache=cV;function lV(e,t){if(e.EXPERIMENTAL_projectService){let a=(0,sV.useProgramFromProjectService)(e.EXPERIMENTAL_projectService,e);if(a)return a}if(e.programs){let a=(0,O9.useProvidedPrograms)(e.programs,e);if(a)return a}if(!t)return(0,N9.createNoProgram)(e);let r=(0,nV.createProjectProgram)(e,(0,iV.getWatchProgramsForProjects)(e));if(r)return r;if(e.DEPRECATED__createDefaultProgram){let a=(0,rV.createDefaultProgram)(e);if(a)return a}return(0,I9.createIsolatedProgram)(e)}function uV(e,t){let{ast:r}=pV(e,t,!1);return r}_i.parse=uV;function pV(e,t,r){let a=(0,M9.createParseSettings)(e,t);if(t!=null&&t.errorOnTypeScriptSyntacticAndSemanticIssues)throw new Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');let _=(0,N9.createSourceFile)(a),{estree:p,astMaps:d}=(0,P9.astConverter)(_,a,r);return{ast:p,esTreeNodeToTSNodeMap:d.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:d.tsNodeToESTreeNodeMap}}var Km={};function fV(){Km={}}_i.clearParseAndGenerateServicesCalls=fV;function dV(e,t){var v,y;let r=(0,M9.createParseSettings)(e,t);r.singleRun&&!r.programs&&((v=r.projects)==null?void 0:v.length)>0&&(r.programs={*[Symbol.iterator](){for(let C of r.projects){let S=Tb.get(C);if(S)yield S;else{_V("Detected single-run/CLI usage, creating Program once ahead of time for project: %s",C);let k=(0,O9.createProgramFromConfigFile)(C);Tb.set(C,k),yield k}}}});let a=r.programs!=null||((y=r.projects)==null?void 0:y.length)>0;if(t!==void 0&&(typeof t.errorOnTypeScriptSyntacticAndSemanticIssues=="boolean"&&t.errorOnTypeScriptSyntacticAndSemanticIssues&&(r.errorOnTypeScriptSyntacticAndSemanticIssues=!0),r.errorOnTypeScriptSyntacticAndSemanticIssues&&!a))throw new Error("Cannot calculate TypeScript semantic issues without a valid project.");r.singleRun&&t.filePath&&(Km[t.filePath]=(Km[t.filePath]||0)+1);let{ast:_,program:p}=r.singleRun&&t.filePath&&Km[t.filePath]>1?(0,I9.createIsolatedProgram)(r):lV(r,a),d=typeof r.preserveNodeMaps=="boolean"?r.preserveNodeMaps:!0,{estree:h,astMaps:l}=(0,P9.astConverter)(_,r,d);if(p&&r.errorOnTypeScriptSyntacticAndSemanticIssues){let C=(0,oV.getFirstSemanticOrSyntacticError)(p,_);if(C)throw(0,tV.convertError)(C)}return{ast:h,services:(0,aV.createParserServices)(l,p)}}_i.parseAndGenerateServices=dV});var W9=ut(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.extract=SV;ps.parse=wV;ps.parseWithComments=z9;ps.print=CV;ps.strip=xV;var yV=/\*\/$/,gV=/^\/\*\*?/,U9=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,bV=/(^|\s+)\/\/([^\r\n]*)/g,j9=/^(\r?\n)+/,vV=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,F9=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,TV=/(\r?\n|^) *\* ?/g,q9=[];function SV(e){let t=e.match(U9);return t?t[0].trimLeft():""}function xV(e){let t=e.match(U9);return t&&t[0]?e.substring(t[0].length):e}function wV(e){return z9(e).pragmas}function z9(e){let t=` +`;e=e.replace(gV,"").replace(yV,"").replace(TV,"$1");let r="";for(;r!==e;)r=e,e=e.replace(vV,`${t}$1 $2${t}`);e=e.replace(j9,"").trimRight();let a=Object.create(null),_=e.replace(F9,"").replace(j9,"").trimRight(),p;for(;p=F9.exec(e);){let d=p[2].replace(bV,"");typeof a[p[1]]=="string"||Array.isArray(a[p[1]])?a[p[1]]=q9.concat(a[p[1]],d):a[p[1]]=d}return{comments:_,pragmas:a}}function CV({comments:e="",pragmas:t={}}){let r=` +`,a="/**",_=" *",p=" */",d=Object.keys(t),h=d.map(v=>B9(v,t[v])).reduce((v,y)=>v.concat(y),[]).map(v=>`${_} ${v}${r}`).join("");if(!e){if(d.length===0)return"";if(d.length===1&&!Array.isArray(t[d[0]])){let v=t[d[0]];return`${a} ${B9(d[0],v)[0]}${p}`}}let l=e.split(r).map(v=>`${_} ${v}`).join(r)+r;return a+r+(e?l:"")+(e&&d.length?_+r:"")+h+p}function B9(e,t){return q9.concat(t).map(r=>`@${e} ${r}`.trim())}});var HV={};Hh(HV,{parsers:()=>kb});var kb={};Hh(kb,{typescript:()=>VV});var r5=Ob(L9(),1);function mV(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var J9=mV;function hV(e){let t=[];for(let r of e)try{return r()}catch(a){t.push(a)}throw Object.assign(new Error("All combinations failed"),{errors:t})}var R9=hV;var H_=Ob(W9(),1);function EV(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` +`);return t===-1?e:e.slice(0,t)}var V9=EV;function AV(e){let t=V9(e);t&&(e=e.slice(t.length+1));let r=(0,H_.extract)(e),{pragmas:a,comments:_}=(0,H_.parseWithComments)(r);return{shebang:t,text:e,pragmas:a,comments:_}}function H9(e){let{pragmas:t}=AV(e);return Object.prototype.hasOwnProperty.call(t,"prettier")||Object.prototype.hasOwnProperty.call(t,"format")}function kV(e){return Array.isArray(e)&&e.length>0}var Zm=kV;function Fn(e){var a;let t=e.range?e.range[0]:e.start,r=((a=e.declaration)==null?void 0:a.decorators)??e.decorators;return Zm(r)?Math.min(Fn(r[0]),t):t}function ra(e){return e.range?e.range[1]:e.end}function DV(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:H9,locStart:Fn,locEnd:ra,...e}}var G9=DV;function PV(e){return e.charAt(0)==="#"&&e.charAt(1)==="!"?"//"+e.slice(2):e}var X9=PV;var IV=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},Sb=IV;function NV(e){return e=new Set(e),t=>e.has(t==null?void 0:t.type)}var $9=NV;var OV=$9(["Block","CommentBlock","MultiLine"]),gu=OV;function MV(e){return gu(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/.test(e.value)}var Q9=MV;function LV(e){let t=`*${e.value}*`.split(` +`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var xb=LV;var bu=null;function vu(e){if(bu!==null&&typeof bu.property){let t=bu;return bu=vu.prototype=null,t}return bu=vu.prototype=e??Object.create(null),new vu}var JV=10;for(let e=0;e<=JV;e++)vu();function wb(e){return vu(e)}function RV(e,t="type"){wb(e);function r(a){let _=a[t],p=e[_];if(!Array.isArray(p))throw Object.assign(new Error(`Missing visitor keys for '${_}'.`),{node:a});return p}return r}var Y9=RV;var K9={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","assertions","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes","assertions"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes","assertions"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ImportExpression:["source","attributes"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareEnum:["id","body"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]};var jV=Y9(K9),Z9=jV;function Cb(e,t){if(!(e!==null&&typeof e=="object"))return e;if(Array.isArray(e)){for(let a=0;a{var h;(h=d.leadingComments)!=null&&h.some(Q9)&&p.add(Fn(d))}),e=e1(e,d=>{if(d.type==="ParenthesizedExpression"){let{expression:h}=d;if(h.type==="TypeCastExpression")return h.range=d.range,h;let l=Fn(d);if(!p.has(l))return h.extra={...h.extra,parenthesized:!0},h}})}if(e=e1(e,p=>{switch(p.type){case"LogicalExpression":if(e5(p))return Eb(p);break;case"VariableDeclaration":{let d=Sb(!1,p.declarations,-1);d!=null&&d.init&&_(p,d);break}case"TSParenthesizedType":return p.typeAnnotation;case"TSTypeParameter":if(typeof p.name=="string"){let d=Fn(p);p.name={type:"Identifier",name:p.name,range:[d,d+p.name.length]}}break;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":{let{exported:d}=p;if(r==="meriyah"&&(d==null?void 0:d.type)==="Identifier"){let h=a.slice(Fn(d),ra(d));(h.startsWith('"')||h.startsWith("'"))&&(p.exported={...p.exported,type:"Literal",value:p.exported.name,raw:h})}break}case"TSUnionType":case"TSIntersectionType":if(p.types.length===1)return p.types[0];break}}),Zm(e.comments)){let p=Sb(!1,e.comments,-1);for(let d=e.comments.length-2;d>=0;d--){let h=e.comments[d];ra(h)===Fn(p)&&gu(h)&&gu(p)&&xb(h)&&xb(p)&&(e.comments.splice(d+1,1),h.value+="*//*"+p.value,h.range=[Fn(h),ra(p)]),p=h}}return e.type==="Program"&&(e.range=[0,a.length]),e;function _(p,d){a[ra(d)]!==";"&&(p.range=[Fn(p),ra(d)])}}function e5(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function Eb(e){return e5(e)?Eb({type:"LogicalExpression",operator:e.operator,left:Eb({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[Fn(e.left),ra(e.right.left)]}),right:e.right.right,range:[Fn(e),ra(e)]}):e}var t5=FV;var Ab={loc:!0,range:!0,comment:!0,tokens:!0,loggerFn:!1,project:[],suppressDeprecatedPropertyWarnings:!0};function BV(e){let{message:t,location:r}=e;if(!r)return e;let{start:a,end:_}=r;return J9(t,{loc:{start:{line:a.line,column:a.column+1},end:{line:_.line,column:_.column+1}},cause:e})}var UV=e=>/\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/i.test(e);function qV(e,t){let r=t==null?void 0:t.filepath;if(r&&UV(r))return[{...Ab,filePath:r}];let a=WV(e);return[{...Ab,jsx:a},{...Ab,jsx:!a}]}function zV(e,t){let r=X9(e),a=qV(e,t),_;try{_=R9(a.map(p=>()=>(0,r5.parse)(r,p)))}catch({errors:[p]}){throw BV(p)}return t5(_,{text:e})}function WV(e){return new RegExp(["(?:^[^\"'`]*)"].join(""),"m").test(e)}var VV=G9(zV);return wf(HV);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/typescript.mjs b/node_modules/prettier/plugins/typescript.mjs index ce93f7d..ba0f88b 100644 --- a/node_modules/prettier/plugins/typescript.mjs +++ b/node_modules/prettier/plugins/typescript.mjs @@ -1,27 +1,25 @@ -var xC=Object.create;var Bd=Object.defineProperty;var SC=Object.getOwnPropertyDescriptor;var wC=Object.getOwnPropertyNames;var EC=Object.getPrototypeOf,CC=Object.prototype.hasOwnProperty;var $6=(e,t)=>()=>(e&&(t=e(e=0)),t);var tt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ud=(e,t)=>{for(var n in t)Bd(e,n,{get:t[n],enumerable:!0})},Q6=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of wC(t))!CC.call(e,s)&&s!==n&&Bd(e,s,{get:()=>t[s],enumerable:!(i=SC(t,s))||i.enumerable});return e};var Xy=(e,t,n)=>(n=e!=null?xC(EC(e)):{},Q6(t||!e||!e.__esModule?Bd(n,"default",{value:e,enumerable:!0}):n,e)),jr=e=>Q6(Bd({},"__esModule",{value:!0}),e);var qd={};Ud(qd,{default:()=>AC});var kC,AC,zd=$6(()=>{kC=()=>()=>{},AC=kC});var Cn=tt((GK,W7)=>{var DC=Object.defineProperty,Mv=Object.getOwnPropertyNames,Ht=(e,t)=>function(){return e&&(t=(0,e[Mv(e)[0]])(e=0)),t},PC=(e,t)=>function(){return t||(0,e[Mv(e)[0]])((t={exports:{}}).exports,t),t.exports},NC=(e,t)=>{for(var n in t)DC(e,n,{get:t[n],enumerable:!0})},Lv,uf,nh,IC=Ht({"src/compiler/corePublic.ts"(){"use strict";Lv="5.1",uf="5.1.5",nh=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(nh||{})}});function Ha(e){return e?e.length:0}function hn(e,t){if(e)for(let n=0;n=0;n--){let i=t(e[n],n);if(i)return i}}function og(e,t){if(e!==void 0)for(let n=0;n=0;i--){let s=e[i];if(t(s,i))return s}}function el(e,t,n){if(e===void 0)return-1;for(let i=n??0;i=0;i--)if(t(e[i],i))return i;return-1}function FC(e,t){for(let n=0;nn(i,t[s]))}function Rv(e,t,n){for(let i=n||0;i{let l=t(s,i);if(l!==void 0){let[d,y]=l;d!==void 0&&y!==void 0&&n.set(d,y)}}),n}function GC(e,t,n){if(e.has(t))return e.get(t);let i=n();return e.set(t,i),i}function XC(e,t){return e.has(t)?!1:(e.add(t),!0)}function*$C(e){yield e}function QC(e,t,n){let i;if(e){i=[];let s=e.length,l,d,y=0,p=0;for(;y{let[l,d]=t(s,i);n.set(l,d)}),n}function ft(e,t){if(e)if(t){for(let n of e)if(t(n))return!0}else return e.length>0;return!1}function ZC(e,t,n){let i;for(let s=0;se[d])}function n9(e,t){let n=[];for(let i of e)wl(n,i,t);return n}function Bv(e,t,n){return e.length===0?[]:e.length===1?e.slice():n?t9(e,t,n):n9(e,t)}function r9(e,t){if(e.length===0)return Xe;let n=e[0],i=[n];for(let s=1;s0&&(s&=-2),s&2&&i(l,p)>0&&(s&=-3),l=p}return s}function s9(e,t,n=to){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let i=0;i0&&M.assertGreaterThanOrEqual(n(t[l],t[l-1]),0);t:for(let d=s;sd&&M.assertGreaterThanOrEqual(n(e[s],e[s-1]),0),n(t[l],e[s])){case-1:i.push(t[l]);continue e;case 0:continue e;case 1:continue t}}return i}function Tt(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function l9(e,t){return e===void 0?t:t===void 0?e:Wt(e)?Wt(t)?d_(e,t):Tt(e,t):Wt(t)?Tt(t,e):[e,t]}function ih(e,t){return t<0?e.length+t:t}function Mn(e,t,n,i){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(n,i);n=n===void 0?0:ih(t,n),i=i===void 0?t.length:ih(t,i);for(let s=n;sn(e[i],e[s])||wn(i,s))}function pf(e,t){return e.length===0?e:e.slice().sort(t)}function*u9(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function Wv(e,t){let n=_g(e);return zv(e,n,t),n.map(i=>e[i])}function p9(e,t,n,i){for(;n>1),p=n(e[y],y);switch(i(p,t)){case-1:l=y+1;break;case 0:return y;case 1:d=y-1;break}}return~l}function em(e,t,n,i,s){if(e&&e.length>0){let l=e.length;if(l>0){let d=i===void 0||i<0?0:i,y=s===void 0||d+s>l-1?l-1:d+s,p;for(arguments.length<=2?(p=e[d],d++):p=n;d<=y;)p=t(p,e[d],d),d++;return p}}return n}function Xn(e,t){return Dr.call(e,t)}function g9(e,t){return Dr.call(e,t)?e[t]:void 0}function lg(e){let t=[];for(let n in e)Dr.call(e,n)&&t.push(n);return t}function b9(e){let t=[];do{let n=Object.getOwnPropertyNames(e);for(let i of n)wl(t,i)}while(e=Object.getPrototypeOf(e));return t}function v9(e){let t=[];for(let n in e)Dr.call(e,n)&&t.push(e[n]);return t}function T9(e,t){let n=new Array(e);for(let i=0;i100&&n>t.length>>1){let y=t.length-n;t.copyWithin(0,n),t.length=y,n=0}return d}return{enqueue:s,dequeue:l,isEmpty:i}}function O9(e,t){let n=new Map,i=0;function*s(){for(let d of n.values())Wt(d)?yield*d:yield d}let l={has(d){let y=e(d);if(!n.has(y))return!1;let p=n.get(y);if(!Wt(p))return t(p,d);for(let x of p)if(t(x,d))return!0;return!1},add(d){let y=e(d);if(n.has(y)){let p=n.get(y);if(Wt(p))ns(p,d,t)||(p.push(d),i++);else{let x=p;t(x,d)||(n.set(y,[x,d]),i++)}}else n.set(y,d),i++;return this},delete(d){let y=e(d);if(!n.has(y))return!1;let p=n.get(y);if(Wt(p)){for(let x=0;xs(),[Symbol.toStringTag]:n[Symbol.toStringTag]};return l}function Wt(e){return Array.isArray(e)}function Gd(e){return Wt(e)?e:[e]}function m_(e){return typeof e=="string"}function M9(e){return typeof e=="number"}function kr(e,t){return e!==void 0&&t(e)?e:void 0}function mi(e,t){return e!==void 0&&t(e)?e:M.fail(`Invalid cast. The supplied value ${e} did not pass the test '${M.getFunctionName(t)}'.`)}function Pr(e){}function df(){return!1}function Gv(){return!0}function L9(){}function ht(e){return e}function Xv(e){return e.toLowerCase()}function $v(e){return sh.test(e)?e.replace(sh,Xv):e}function J9(){throw new Error("Not implemented")}function ah(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Cr(e){let t=new Map;return n=>{let i=`${typeof n}:${n}`,s=t.get(i);return s===void 0&&!t.has(i)&&(s=e(n),t.set(i,s)),s}}function R9(e){let t=new WeakMap;return n=>{let i=t.get(n);return i===void 0&&!t.has(n)&&(i=e(n),t.set(n,i)),i}}function F9(e,t){return(...n)=>{let i=t.get(n);return i===void 0&&!t.has(n)&&(i=e(...n),t.set(n,i)),i}}function j9(e,t,n,i,s){if(s){let l=[];for(let d=0;dem(l,(y,p)=>p(y),d)}else return i?l=>i(n(t(e(l)))):n?l=>n(t(e(l))):t?l=>t(e(l)):e?l=>e(l):l=>l}function to(e,t){return e===t}function i_(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function Cl(e,t){return to(e,t)}function Qv(e,t){return e===t?0:e===void 0?-1:t===void 0?1:et(n,i)===-1?n:i)}function rm(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),et?1:0)}function q9(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),et?1:0)}function xi(e,t){return Qv(e,t)}function ug(e){return e?rm:xi}function z9(){return mf}function Yv(e){mf!==e&&(mf=e,ch=void 0)}function W9(e,t){return(ch||(ch=_T(mf)))(e,t)}function V9(e,t,n,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[n],t[n])}function H9(e,t){return wn(e?1:0,t?1:0)}function Zv(e,t,n){let i=Math.max(2,Math.floor(e.length*.34)),s=Math.floor(e.length*.4)+1,l;for(let d of t){let y=n(d);if(y!==void 0&&Math.abs(y.length-e.length)<=i){if(y===e||y.length<3&&y.toLowerCase()!==e.toLowerCase())continue;let p=K9(e,y,s-.1);if(p===void 0)continue;M.assert(pn?y-n:1),h=Math.floor(t.length>n+y?n+y:t.length);s[0]=y;let D=y;for(let g=1;gn)return;let w=i;i=s,s=w}let d=i[t.length];return d>n?void 0:d}function rs(e,t){let n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}function G9(e,t){return rs(e,t)?e.slice(0,e.length-t.length):e}function X9(e,t){return rs(e,t)?e.slice(0,e.length-t.length):void 0}function Ga(e,t){return e.indexOf(t)!==-1}function $9(e){let t=e.length;for(let n=t-1;n>0;n--){let i=e.charCodeAt(n);if(i>=48&&i<=57)do--n,i=e.charCodeAt(n);while(n>0&&i>=48&&i<=57);else if(n>4&&(i===110||i===78)){if(--n,i=e.charCodeAt(n),i!==105&&i!==73||(--n,i=e.charCodeAt(n),i!==109&&i!==77))break;--n,i=e.charCodeAt(n)}else break;if(i!==45&&i!==46)break;t=n}return t===e.length?e:e.slice(0,t)}function Q9(e,t){for(let n=0;nn===t)}function Y9(e,t){for(let n=0;ns&&(s=d.prefix.length,i=l)}return i}function Jn(e,t){return e.lastIndexOf(t,0)===0}function t5(e,t){return Jn(e,t)?e.substr(t.length):e}function rT(e,t,n=ht){return Jn(n(e),n(t))?e.substring(t.length):void 0}function dg({prefix:e,suffix:t},n){return n.length>=e.length+t.length&&Jn(n,e)&&rs(n,t)}function n5(e,t){return n=>e(n)&&t(n)}function fg(...e){return(...t)=>{let n;for(let i of e)if(n=i(...t),n)return n;return n}}function r5(e){return(...t)=>!e(...t)}function i5(e){}function ff(e){return e===void 0?void 0:[e]}function a5(e,t,n,i,s,l){l=l||Pr;let d=0,y=0,p=e.length,x=t.length,h=!1;for(;d=0&&qi(e.charCodeAt(t));)t--;return e.slice(0,t+1)}function u5(){return!1}var Xe,mg,oT,oh,sT,Dr,sh,_h,_T,ch,mf,am,e_,ll,p5=Ht({"src/compiler/core.ts"(){"use strict";En(),Xe=[],mg=new Map,oT=new Set,oh=(e=>(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(oh||{}),sT=Array.prototype.at?(e,t)=>e==null?void 0:e.at(t):(e,t)=>{if(e&&(t=ih(e,t),t(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(_h||{}),_T=(()=>{let e,t,n=y();return p;function i(x,h,D){if(x===h)return 0;if(x===void 0)return-1;if(h===void 0)return 1;let w=D(x,h);return w<0?-1:w>0?1:0}function s(x){let h=new Intl.Collator(x,{usage:"sort",sensitivity:"variant"}).compare;return(D,w)=>i(D,w,h)}function l(x){if(x!==void 0)return d();return(D,w)=>i(D,w,h);function h(D,w){return D.localeCompare(w)}}function d(){return(D,w)=>i(D,w,x);function x(D,w){return h(D.toUpperCase(),w.toUpperCase())||h(D,w)}function h(D,w){return Dw?1:0}}function y(){return typeof Intl=="object"&&typeof Intl.Collator=="function"?s:typeof String.prototype.localeCompare=="function"&&typeof String.prototype.toLocaleUpperCase=="function"&&"a".localeCompare("B")<0?l:d}function p(x){return x===void 0?e||(e=n(x)):x==="en-US"?t||(t=n(x)):n(x)}})(),am=String.prototype.trim?e=>e.trim():e=>e_(ll(e)),e_=String.prototype.trimEnd?e=>e.trimEnd():l5,ll=String.prototype.trimStart?e=>e.trimStart():e=>e.replace(/^\s+/g,"")}}),lh,M,cT=Ht({"src/compiler/debug.ts"(){"use strict";En(),En(),lh=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(lh||{}),(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function n(H){return e.currentLogLevel<=H}e.shouldLog=n;function i(H,de){e.loggingHost&&n(H)&&e.loggingHost.log(H,de)}function s(H){i(3,H)}e.log=s,(H=>{function de(Qe){i(1,Qe)}H.error=de;function be(Qe){i(2,Qe)}H.warn=be;function Ee(Qe){i(3,Qe)}H.log=Ee;function et(Qe){i(4,Qe)}H.trace=et})(s=e.log||(e.log={}));let l={};function d(){return t}e.getAssertionLevel=d;function y(H){let de=t;if(t=H,H>de)for(let be of lg(l)){let Ee=l[be];Ee!==void 0&&e[be]!==Ee.assertion&&H>=Ee.level&&(e[be]=Ee,l[be]=void 0)}}e.setAssertionLevel=y;function p(H){return t>=H}e.shouldAssert=p;function x(H,de){return p(H)?!0:(l[de]={level:H,assertion:e[de]},e[de]=Pr,!1)}function h(H,de){debugger;let be=new Error(H?`Debug Failure. ${H}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(be,de||h),be}e.fail=h;function D(H,de,be){return h(`${de||"Unexpected node."}\r -Node ${Qt(H.kind)} was unexpected.`,be||D)}e.failBadSyntaxKind=D;function w(H,de,be,Ee){H||(de=de?`False expression: ${de}`:"False expression.",be&&(de+=`\r -Verbose Debug Information: `+(typeof be=="string"?be:be())),h(de,Ee||w))}e.assert=w;function g(H,de,be,Ee,et){if(H!==de){let Qe=be?Ee?`${be} ${Ee}`:be:"";h(`Expected ${H} === ${de}. ${Qe}`,et||g)}}e.assertEqual=g;function A(H,de,be,Ee){H>=de&&h(`Expected ${H} < ${de}. ${be||""}`,Ee||A)}e.assertLessThan=A;function B(H,de,be){H>de&&h(`Expected ${H} <= ${de}`,be||B)}e.assertLessThanOrEqual=B;function G(H,de,be){H= ${de}`,be||G)}e.assertGreaterThanOrEqual=G;function oe(H,de,be){H==null&&h(de,be||oe)}e.assertIsDefined=oe;function Q(H,de,be){return oe(H,de,be||Q),H}e.checkDefined=Q;function W(H,de,be){for(let Ee of H)oe(Ee,de,be||W)}e.assertEachIsDefined=W;function se(H,de,be){return W(H,de,be||se),H}e.checkEachDefined=se;function we(H,de="Illegal value:",be){let Ee=typeof H=="object"&&Xn(H,"kind")&&Xn(H,"pos")?"SyntaxKind: "+Qt(H.kind):JSON.stringify(H);return h(`${de} ${Ee}`,be||we)}e.assertNever=we;function Ze(H,de,be,Ee){x(1,"assertEachNode")&&w(de===void 0||eo(H,de),be||"Unexpected node.",()=>`Node array did not pass test '${_n(de)}'.`,Ee||Ze)}e.assertEachNode=Ze;function Ue(H,de,be,Ee){x(1,"assertNode")&&w(H!==void 0&&(de===void 0||de(H)),be||"Unexpected node.",()=>`Node ${Qt(H==null?void 0:H.kind)} did not pass test '${_n(de)}'.`,Ee||Ue)}e.assertNode=Ue;function rt(H,de,be,Ee){x(1,"assertNotNode")&&w(H===void 0||de===void 0||!de(H),be||"Unexpected node.",()=>`Node ${Qt(H.kind)} should not have passed test '${_n(de)}'.`,Ee||rt)}e.assertNotNode=rt;function ct(H,de,be,Ee){x(1,"assertOptionalNode")&&w(de===void 0||H===void 0||de(H),be||"Unexpected node.",()=>`Node ${Qt(H==null?void 0:H.kind)} did not pass test '${_n(de)}'.`,Ee||ct)}e.assertOptionalNode=ct;function Dn(H,de,be,Ee){x(1,"assertOptionalToken")&&w(de===void 0||H===void 0||H.kind===de,be||"Unexpected node.",()=>`Node ${Qt(H==null?void 0:H.kind)} was not a '${Qt(de)}' token.`,Ee||Dn)}e.assertOptionalToken=Dn;function sn(H,de,be){x(1,"assertMissingNode")&&w(H===void 0,de||"Unexpected node.",()=>`Node ${Qt(H.kind)} was unexpected'.`,be||sn)}e.assertMissingNode=sn;function ei(H){}e.type=ei;function _n(H){if(typeof H!="function")return"";if(Xn(H,"name"))return H.name;{let de=Function.prototype.toString.call(H),be=/^function\s+([\w\$]+)\s*\(/.exec(de);return be?be[1]:""}}e.getFunctionName=_n;function Pn(H){return`{ name: ${Xo(H.escapedName)}; flags: ${Un(H.flags)}; declarations: ${ga(H.declarations,de=>Qt(de.kind))} }`}e.formatSymbol=Pn;function $e(H=0,de,be){let Ee=jn(de);if(H===0)return Ee.length>0&&Ee[0][0]===0?Ee[0][1]:"0";if(be){let et=[],Qe=H;for(let[ee,Z]of Ee){if(ee>H)break;ee!==0&&ee&H&&(et.push(Z),Qe&=~ee)}if(Qe===0)return et.join("|")}else for(let[et,Qe]of Ee)if(et===H)return Qe;return H.toString()}e.formatEnum=$e;let $t=new Map;function jn(H){let de=$t.get(H);if(de)return de;let be=[];for(let et in H){let Qe=H[et];typeof Qe=="number"&&be.push([Qe,et])}let Ee=Wv(be,(et,Qe)=>wn(et[0],Qe[0]));return $t.set(H,Ee),Ee}function Qt(H){return $e(H,bf,!1)}e.formatSyntaxKind=Qt;function fr(H){return $e(H,Pf,!1)}e.formatSnippetKind=fr;function Bn(H){return $e(H,vf,!0)}e.formatNodeFlags=Bn;function dn(H){return $e(H,Tf,!0)}e.formatModifierFlags=dn;function Yt(H){return $e(H,Df,!0)}e.formatTransformFlags=Yt;function vt(H){return $e(H,Nf,!0)}e.formatEmitFlags=vt;function Un(H){return $e(H,wf,!0)}e.formatSymbolFlags=Un;function qn(H){return $e(H,Ef,!0)}e.formatTypeFlags=qn;function gt(H){return $e(H,kf,!0)}e.formatSignatureFlags=gt;function lt(H){return $e(H,Cf,!0)}e.formatObjectFlags=lt;function Zt(H){return $e(H,ul,!0)}e.formatFlowFlags=Zt;function zn(H){return $e(H,xf,!0)}e.formatRelationComparisonResult=zn;function mt(H){return $e(H,CheckMode,!0)}e.formatCheckMode=mt;function mr(H){return $e(H,SignatureCheckMode,!0)}e.formatSignatureCheckMode=mr;function bt(H){return $e(H,TypeFacts,!0)}e.formatTypeFacts=bt;let cn=!1,dt;function Qn(H){"__debugFlowFlags"in H||Object.defineProperties(H,{__tsDebuggerDisplay:{value(){let de=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",be=this.flags&~(2048-1);return`${de}${be?` (${Zt(be)})`:""}`}},__debugFlowFlags:{get(){return $e(this.flags,ul,!0)}},__debugToString:{value(){return Ie(this)}}})}function ut(H){cn&&(typeof Object.setPrototypeOf=="function"?(dt||(dt=Object.create(Object.prototype),Qn(dt)),Object.setPrototypeOf(H,dt)):Qn(H))}e.attachFlowNodeDebugInfo=ut;let Jt;function ln(H){"__tsDebuggerDisplay"in H||Object.defineProperties(H,{__tsDebuggerDisplay:{value(de){return de=String(de).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${de}`}}})}function yr(H){cn&&(typeof Object.setPrototypeOf=="function"?(Jt||(Jt=Object.create(Array.prototype),ln(Jt)),Object.setPrototypeOf(H,Jt)):ln(H))}e.attachNodeArrayDebugInfo=yr;function Or(){if(cn)return;let H=new WeakMap,de=new WeakMap;Object.defineProperties(xt.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let Ee=this.flags&33554432?"TransientSymbol":"Symbol",et=this.flags&-33554433;return`${Ee} '${Of(this)}'${et?` (${Un(et)})`:""}`}},__debugFlags:{get(){return Un(this.flags)}}}),Object.defineProperties(xt.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let Ee=this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&67359327?`IntrinsicType ${this.intrinsicName}`:this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",et=this.flags&524288?this.objectFlags&-1344:0;return`${Ee}${this.symbol?` '${Of(this.symbol)}'`:""}${et?` (${lt(et)})`:""}`}},__debugFlags:{get(){return qn(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?lt(this.objectFlags):""}},__debugTypeToString:{value(){let Ee=H.get(this);return Ee===void 0&&(Ee=this.checker.typeToString(this),H.set(this,Ee)),Ee}}}),Object.defineProperties(xt.getSignatureConstructor().prototype,{__debugFlags:{get(){return gt(this.flags)}},__debugSignatureToString:{value(){var Ee;return(Ee=this.checker)==null?void 0:Ee.signatureToString(this)}}});let be=[xt.getNodeConstructor(),xt.getIdentifierConstructor(),xt.getTokenConstructor(),xt.getSourceFileConstructor()];for(let Ee of be)Xn(Ee.prototype,"__debugKind")||Object.defineProperties(Ee.prototype,{__tsDebuggerDisplay:{value(){return`${ma(this)?"GeneratedIdentifier":Ce(this)?`Identifier '${Ot(this)}'`:Ln(this)?`PrivateIdentifier '${Ot(this)}'`:cr(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:ro(this)?`NumericLiteral ${this.text}`:cb(this)?`BigIntLiteral ${this.text}n`:Jo(this)?"TypeParameterDeclaration":io(this)?"ParameterDeclaration":P_(this)?"ConstructorDeclaration":Kl(this)?"GetAccessorDeclaration":N_(this)?"SetAccessorDeclaration":pb(this)?"CallSignatureDeclaration":c8(this)?"ConstructSignatureDeclaration":db(this)?"IndexSignatureDeclaration":l8(this)?"TypePredicateNode":I_(this)?"TypeReferenceNode":Gl(this)?"FunctionTypeNode":fb(this)?"ConstructorTypeNode":u8(this)?"TypeQueryNode":Hm(this)?"TypeLiteralNode":p8(this)?"ArrayTypeNode":d8(this)?"TupleTypeNode":f8(this)?"OptionalTypeNode":m8(this)?"RestTypeNode":y8(this)?"UnionTypeNode":h8(this)?"IntersectionTypeNode":g8(this)?"ConditionalTypeNode":b8(this)?"InferTypeNode":yb(this)?"ParenthesizedTypeNode":hb(this)?"ThisTypeNode":v8(this)?"TypeOperatorNode":T8(this)?"IndexedAccessTypeNode":x8(this)?"MappedTypeNode":gb(this)?"LiteralTypeNode":mb(this)?"NamedTupleMember":Xl(this)?"ImportTypeNode":Qt(this.kind)}${this.flags?` (${Bn(this.flags)})`:""}`}},__debugKind:{get(){return Qt(this.kind)}},__debugNodeFlags:{get(){return Bn(this.flags)}},__debugModifierFlags:{get(){return dn(A3(this))}},__debugTransformFlags:{get(){return Yt(this.transformFlags)}},__debugIsParseTreeNode:{get(){return dl(this)}},__debugEmitFlags:{get(){return vt(Vr(this))}},__debugGetText:{value(et){if(pa(this))return"";let Qe=de.get(this);if(Qe===void 0){let ee=Pl(this),Z=ee&&Kr(ee);Qe=Z?Yo(Z,ee,et):"",de.set(this,Qe)}return Qe}}});cn=!0}e.enableDebugInfo=Or;function ti(H){let de=H&7,be=de===0?"in out":de===3?"[bivariant]":de===2?"in":de===1?"out":de===4?"[independent]":"";return H&8?be+=" (unmeasurable)":H&16&&(be+=" (unreliable)"),be}e.formatVariance=ti;class Wn{__debugToString(){var de;switch(this.kind){case 3:return((de=this.debugInfo)==null?void 0:de.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return rh(this.sources,this.targets||ga(this.sources,()=>"any"),(be,Ee)=>`${be.__debugTypeToString()} -> ${typeof Ee=="string"?Ee:Ee.__debugTypeToString()}`).join(", ");case 2:return rh(this.sources,this.targets,(be,Ee)=>`${be.__debugTypeToString()} -> ${Ee().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` +var S5=Object.create;var xf=Object.defineProperty;var x5=Object.getOwnPropertyDescriptor;var w5=Object.getOwnPropertyNames;var C5=Object.getPrototypeOf,E5=Object.prototype.hasOwnProperty;var A5=(e,t)=>()=>(e&&(t=e(e=0)),t);var ut=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Vh=(e,t)=>{for(var r in t)xf(e,r,{get:t[r],enumerable:!0})},Ob=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let _ of w5(t))!E5.call(e,_)&&_!==r&&xf(e,_,{get:()=>t[_],enumerable:!(a=x5(t,_))||a.enumerable});return e};var Mb=(e,t,r)=>(r=e!=null?S5(C5(e)):{},Ob(t||!e||!e.__esModule?xf(r,"default",{value:e,enumerable:!0}):r,e)),Hh=e=>Ob(xf({},"__esModule",{value:!0}),e);var wf={};Vh(wf,{default:()=>D5});var k5,D5,Cf=A5(()=>{k5=()=>()=>{},D5=k5});var Dt=ut((QV,A7)=>{var P5=Object.defineProperty,yv=Object.getOwnPropertyNames,Vt=(e,t)=>function(){return e&&(t=(0,e[yv(e)[0]])(e=0)),t},I5=(e,t)=>function(){return t||(0,e[yv(e)[0]])((t={exports:{}}).exports,t),t.exports},N5=(e,t)=>{for(var r in t)P5(e,r,{get:t[r],enumerable:!0})},gv,Hf,Zh,O5=Vt({"src/compiler/corePublic.ts"(){"use strict";gv="5.2",Hf="5.2.2",Zh=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(Zh||{})}});function Ka(e){return e?e.length:0}function yr(e,t){if(e)for(let r=0;r=0;r--){let a=t(e[r],r);if(a)return a}}function ng(e,t){if(e!==void 0)for(let r=0;r=0;a--){let _=e[a];if(t(_,a))return _}}function _l(e,t,r){if(e===void 0)return-1;for(let a=r??0;a=0;a--)if(t(e[a],a))return a;return-1}function F5(e,t){for(let r=0;rr(a,t[_]))}function vv(e,t,r){for(let a=r||0;a{let p=t(_,a);if(p!==void 0){let[d,h]=p;d!==void 0&&h!==void 0&&r.set(d,h)}}),r}function $5(e,t,r){if(e.has(t))return e.get(t);let a=r();return e.set(t,a),a}function Q5(e,t){return e.has(t)?!1:(e.add(t),!0)}function*Y5(e){yield e}function K5(e,t,r){let a;if(e){a=[];let _=e.length,p,d,h=0,l=0;for(;h<_;){for(;l<_;){let v=e[l];if(d=t(v,l),l===0)p=d;else if(d!==p)break;l++}if(h{let[p,d]=t(_,a);r.set(p,d)}),r}function mt(e,t){if(e)if(t){for(let r of e)if(t(r))return!0}else return e.length>0;return!1}function eC(e,t,r){let a;for(let _=0;_e[d])}function nC(e,t){let r=[];for(let a of e)Ol(r,a,t);return r}function xv(e,t,r){return e.length===0?[]:e.length===1?e.slice():r?rC(e,t,r):nC(e,t)}function iC(e,t){if(e.length===0)return $e;let r=e[0],a=[r];for(let _=1;_0&&(_&=-2),_&2&&a(p,l)>0&&(_&=-3),p=l}return _}function _C(e,t,r=_o){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let a=0;a0&&N.assertGreaterThanOrEqual(r(t[p],t[p-1]),0);t:for(let d=_;_d&&N.assertGreaterThanOrEqual(r(e[_],e[_-1]),0),r(t[p],e[_])){case-1:a.push(t[p]);continue e;case 0:continue e;case 1:continue t}}return a}function xt(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function uC(e,t){return e===void 0?t:t===void 0?e:zt(e)?zt(t)?y_(e,t):xt(e,t):zt(t)?xt(t,e):[e,t]}function ty(e,t){return t<0?e.length+t:t}function Rr(e,t,r,a){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(r,a);r=r===void 0?0:ty(t,r),a=a===void 0?t.length:ty(t,a);for(let _=r;_r(e[a],e[_])||kr(a,_))}function Gf(e,t){return e.length===0?e:e.slice().sort(t)}function*pC(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function Av(e,t){let r=ag(e);return Ev(e,r,t),r.map(a=>e[a])}function fC(e,t,r,a){for(;r>1),l=r(e[h],h);switch(a(l,t)){case-1:p=h+1;break;case 0:return h;case 1:d=h-1;break}}return~p}function Jd(e,t,r,a,_){if(e&&e.length>0){let p=e.length;if(p>0){let d=a===void 0||a<0?0:a,h=_===void 0||d+_>p-1?p-1:d+_,l;for(arguments.length<=2?(l=e[d],d++):l=r;d<=h;)l=t(l,e[d],d),d++;return l}}return r}function Qr(e,t){return Jn.call(e,t)}function bC(e,t){return Jn.call(e,t)?e[t]:void 0}function sg(e){let t=[];for(let r in e)Jn.call(e,r)&&t.push(r);return t}function vC(e){let t=[];do{let r=Object.getOwnPropertyNames(e);for(let a of r)Ol(t,a)}while(e=Object.getPrototypeOf(e));return t}function TC(e){let t=[];for(let r in e)Jn.call(e,r)&&t.push(e[r]);return t}function SC(e,t){let r=new Array(e);for(let a=0;a100&&r>t.length>>1){let h=t.length-r;t.copyWithin(0,r),t.length=h,r=0}return d}return{enqueue:_,dequeue:p,isEmpty:a}}function MC(e,t){let r=new Map,a=0;function*_(){for(let d of r.values())zt(d)?yield*d:yield d}let p={has(d){let h=e(d);if(!r.has(h))return!1;let l=r.get(h);if(!zt(l))return t(l,d);for(let v of l)if(t(v,d))return!0;return!1},add(d){let h=e(d);if(r.has(h)){let l=r.get(h);if(zt(l))es(l,d,t)||(l.push(d),a++);else{let v=l;t(v,d)||(r.set(h,[v,d]),a++)}}else r.set(h,d),a++;return this},delete(d){let h=e(d);if(!r.has(h))return!1;let l=r.get(h);if(zt(l)){for(let v=0;v_(),[Symbol.toStringTag]:r[Symbol.toStringTag]};return p}function zt(e){return Array.isArray(e)}function Pf(e){return zt(e)?e:[e]}function b_(e){return typeof e=="string"}function LC(e){return typeof e=="number"}function On(e,t){return e!==void 0&&t(e)?e:void 0}function gi(e,t){return e!==void 0&&t(e)?e:N.fail(`Invalid cast. The supplied value ${e} did not pass the test '${N.getFunctionName(t)}'.`)}function Rn(e){}function Xf(){return!1}function Iv(){return!0}function JC(){}function bt(e){return e}function Nv(e){return e.toLowerCase()}function Ov(e){return iy.test(e)?e.replace(iy,Nv):e}function RC(){throw new Error("Not implemented")}function ry(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Nn(e){let t=new Map;return r=>{let a=`${typeof r}:${r}`,_=t.get(a);return _===void 0&&!t.has(a)&&(_=e(r),t.set(a,_)),_}}function jC(e){let t=new WeakMap;return r=>{let a=t.get(r);return a===void 0&&!t.has(r)&&(a=e(r),t.set(r,a)),a}}function FC(e,t){return(...r)=>{let a=t.get(r);return a===void 0&&!t.has(r)&&(a=e(...r),t.set(r,a)),a}}function BC(e,t,r,a,_){if(_){let p=[];for(let d=0;dJd(p,(h,l)=>l(h),d)}else return a?p=>a(r(t(e(p)))):r?p=>r(t(e(p))):t?p=>t(e(p)):e?p=>e(p):p=>p}function _o(e,t){return e===t}function s_(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function Ll(e,t){return _o(e,t)}function Mv(e,t){return e===t?0:e===void 0?-1:t===void 0?1:et(r,a)===-1?r:a)}function Fd(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),et?1:0)}function zC(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),et?1:0)}function Ci(e,t){return Mv(e,t)}function _g(e){return e?Fd:Ci}function WC(){return Qf}function Lv(e){Qf!==e&&(Qf=e,oy=void 0)}function VC(e,t){return(oy||(oy=Vv(Qf)))(e,t)}function HC(e,t,r,a){return e===t?0:e===void 0?-1:t===void 0?1:a(e[r],t[r])}function GC(e,t){return kr(e?1:0,t?1:0)}function Jv(e,t,r){let a=Math.max(2,Math.floor(e.length*.34)),_=Math.floor(e.length*.4)+1,p;for(let d of t){let h=r(d);if(h!==void 0&&Math.abs(h.length-e.length)<=a){if(h===e||h.length<3&&h.toLowerCase()!==e.toLowerCase())continue;let l=XC(e,h,_-.1);if(l===void 0)continue;N.assert(l<_),_=l,p=d}}return p}function XC(e,t,r){let a=new Array(t.length+1),_=new Array(t.length+1),p=r+.01;for(let h=0;h<=t.length;h++)a[h]=h;for(let h=1;h<=e.length;h++){let l=e.charCodeAt(h-1),v=Math.ceil(h>r?h-r:1),y=Math.floor(t.length>r+h?r+h:t.length);_[0]=h;let C=h;for(let k=1;kr)return;let S=a;a=_,_=S}let d=a[t.length];return d>r?void 0:d}function ts(e,t){let r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function $C(e,t){return ts(e,t)?e.slice(0,e.length-t.length):e}function QC(e,t){return ts(e,t)?e.slice(0,e.length-t.length):void 0}function eo(e,t){return e.indexOf(t)!==-1}function YC(e){let t=e.length;for(let r=t-1;r>0;r--){let a=e.charCodeAt(r);if(a>=48&&a<=57)do--r,a=e.charCodeAt(r);while(r>0&&a>=48&&a<=57);else if(r>4&&(a===110||a===78)){if(--r,a=e.charCodeAt(r),a!==105&&a!==73||(--r,a=e.charCodeAt(r),a!==109&&a!==77))break;--r,a=e.charCodeAt(r)}else break;if(a!==45&&a!==46)break;t=r}return t===e.length?e:e.slice(0,t)}function KC(e,t){for(let r=0;rr===t)}function ZC(e,t){for(let r=0;r_&&(_=d.prefix.length,a=p)}return a}function Fr(e,t){return e.lastIndexOf(t,0)===0}function rE(e,t){return Fr(e,t)?e.substr(t.length):e}function Bv(e,t,r=bt){return Fr(r(e),r(t))?e.substring(t.length):void 0}function lg({prefix:e,suffix:t},r){return r.length>=e.length+t.length&&Fr(r,e)&&ts(r,t)}function nE(e,t){return r=>e(r)&&t(r)}function ug(...e){return(...t)=>{let r;for(let a of e)if(r=a(...t),r)return r;return r}}function iE(e){return(...t)=>!e(...t)}function aE(e){}function $f(e){return e===void 0?void 0:[e]}function oE(e,t,r,a,_,p){p=p||Rn;let d=0,h=0,l=e.length,v=t.length,y=!1;for(;d=0&&Vi(e.charCodeAt(t));)t--;return e.slice(0,t+1)}function pE(){return!1}var $e,pg,zv,ny,Wv,Jn,iy,ay,Vv,oy,Qf,Ud,n_,gl,fE=Vt({"src/compiler/core.ts"(){"use strict";Dr(),$e=[],pg=new Map,zv=new Set,ny=(e=>(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(ny||{}),Wv=Array.prototype.at?(e,t)=>e==null?void 0:e.at(t):(e,t)=>{if(e&&(t=ty(e,t),t(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(ay||{}),Vv=(()=>{let e,t,r=h();return l;function a(v,y,C){if(v===y)return 0;if(v===void 0)return-1;if(y===void 0)return 1;let S=C(v,y);return S<0?-1:S>0?1:0}function _(v){let y=new Intl.Collator(v,{usage:"sort",sensitivity:"variant"}).compare;return(C,S)=>a(C,S,y)}function p(v){if(v!==void 0)return d();return(C,S)=>a(C,S,y);function y(C,S){return C.localeCompare(S)}}function d(){return(C,S)=>a(C,S,v);function v(C,S){return y(C.toUpperCase(),S.toUpperCase())||y(C,S)}function y(C,S){return CS?1:0}}function h(){return typeof Intl=="object"&&typeof Intl.Collator=="function"?_:typeof String.prototype.localeCompare=="function"&&typeof String.prototype.toLocaleUpperCase=="function"&&"a".localeCompare("B")<0?p:d}function l(v){return v===void 0?e||(e=r(v)):v==="en-US"?t||(t=r(v)):r(v)}})(),Ud=String.prototype.trim?e=>e.trim():e=>n_(gl(e)),n_=String.prototype.trimEnd?e=>e.trimEnd():uE,gl=String.prototype.trimStart?e=>e.trimStart():e=>e.replace(/^\s+/g,"")}}),sy,N,Hv=Vt({"src/compiler/debug.ts"(){"use strict";Dr(),Dr(),sy=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(sy||{}),(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r(q){return e.currentLogLevel<=q}e.shouldLog=r;function a(q,oe){e.loggingHost&&r(q)&&e.loggingHost.log(q,oe)}function _(q){a(3,q)}e.log=_,(q=>{function oe(z){a(1,z)}q.error=oe;function ge(z){a(2,z)}q.warn=ge;function Se(z){a(3,z)}q.log=Se;function nt(z){a(4,z)}q.trace=nt})(_=e.log||(e.log={}));let p={};function d(){return t}e.getAssertionLevel=d;function h(q){let oe=t;if(t=q,q>oe)for(let ge of sg(p)){let Se=p[ge];Se!==void 0&&e[ge]!==Se.assertion&&q>=Se.level&&(e[ge]=Se,p[ge]=void 0)}}e.setAssertionLevel=h;function l(q){return t>=q}e.shouldAssert=l;function v(q,oe){return l(q)?!0:(p[oe]={level:q,assertion:e[oe]},e[oe]=Rn,!1)}function y(q,oe){debugger;let ge=new Error(q?`Debug Failure. ${q}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(ge,oe||y),ge}e.fail=y;function C(q,oe,ge){return y(`${oe||"Unexpected node."}\r +Node ${Xt(q.kind)} was unexpected.`,ge||C)}e.failBadSyntaxKind=C;function S(q,oe,ge,Se){q||(oe=oe?`False expression: ${oe}`:"False expression.",ge&&(oe+=`\r +Verbose Debug Information: `+(typeof ge=="string"?ge:ge())),y(oe,Se||S))}e.assert=S;function k(q,oe,ge,Se,nt){if(q!==oe){let z=ge?Se?`${ge} ${Se}`:ge:"";y(`Expected ${q} === ${oe}. ${z}`,nt||k)}}e.assertEqual=k;function L(q,oe,ge,Se){q>=oe&&y(`Expected ${q} < ${oe}. ${ge||""}`,Se||L)}e.assertLessThan=L;function G(q,oe,ge){q>oe&&y(`Expected ${q} <= ${oe}`,ge||G)}e.assertLessThanOrEqual=G;function K(q,oe,ge){q= ${oe}`,ge||K)}e.assertGreaterThanOrEqual=K;function ue(q,oe,ge){q==null&&y(oe,ge||ue)}e.assertIsDefined=ue;function Y(q,oe,ge){return ue(q,oe,ge||Y),q}e.checkDefined=Y;function B(q,oe,ge){for(let Se of q)ue(Se,oe,ge||B)}e.assertEachIsDefined=B;function ae(q,oe,ge){return B(q,oe,ge||ae),q}e.checkEachDefined=ae;function Ce(q,oe="Illegal value:",ge){let Se=typeof q=="object"&&Qr(q,"kind")&&Qr(q,"pos")?"SyntaxKind: "+Xt(q.kind):JSON.stringify(q);return y(`${oe} ${Se}`,ge||Ce)}e.assertNever=Ce;function Ze(q,oe,ge,Se){v(1,"assertEachNode")&&S(oe===void 0||so(q,oe),ge||"Unexpected node.",()=>`Node array did not pass test '${or(oe)}'.`,Se||Ze)}e.assertEachNode=Ze;function qe(q,oe,ge,Se){v(1,"assertNode")&&S(q!==void 0&&(oe===void 0||oe(q)),ge||"Unexpected node.",()=>`Node ${Xt(q==null?void 0:q.kind)} did not pass test '${or(oe)}'.`,Se||qe)}e.assertNode=qe;function rt(q,oe,ge,Se){v(1,"assertNotNode")&&S(q===void 0||oe===void 0||!oe(q),ge||"Unexpected node.",()=>`Node ${Xt(q.kind)} should not have passed test '${or(oe)}'.`,Se||rt)}e.assertNotNode=rt;function it(q,oe,ge,Se){v(1,"assertOptionalNode")&&S(oe===void 0||q===void 0||oe(q),ge||"Unexpected node.",()=>`Node ${Xt(q==null?void 0:q.kind)} did not pass test '${or(oe)}'.`,Se||it)}e.assertOptionalNode=it;function Ir(q,oe,ge,Se){v(1,"assertOptionalToken")&&S(oe===void 0||q===void 0||q.kind===oe,ge||"Unexpected node.",()=>`Node ${Xt(q==null?void 0:q.kind)} was not a '${Xt(oe)}' token.`,Se||Ir)}e.assertOptionalToken=Ir;function ar(q,oe,ge){v(1,"assertMissingNode")&&S(q===void 0,oe||"Unexpected node.",()=>`Node ${Xt(q.kind)} was unexpected'.`,ge||ar)}e.assertMissingNode=ar;function ci(q){}e.type=ci;function or(q){if(typeof q!="function")return"";if(Qr(q,"name"))return q.name;{let oe=Function.prototype.toString.call(q),ge=/^function\s+([\w$]+)\s*\(/.exec(oe);return ge?ge[1]:""}}e.getFunctionName=or;function Nr(q){return`{ name: ${Vo(q.escapedName)}; flags: ${Tr(q.flags)}; declarations: ${Aa(q.declarations,oe=>Xt(oe.kind))} }`}e.formatSymbol=Nr;function Ge(q=0,oe,ge){let Se=Ur(oe);if(q===0)return Se.length>0&&Se[0][0]===0?Se[0][1]:"0";if(ge){let nt=[],z=q;for(let[X,ee]of Se){if(X>q)break;X!==0&&X&q&&(nt.push(ee),z&=~X)}if(z===0)return nt.join("|")}else for(let[nt,z]of Se)if(nt===q)return z;return q.toString()}e.formatEnum=Ge;let Gt=new Map;function Ur(q){let oe=Gt.get(q);if(oe)return oe;let ge=[];for(let nt in q){let z=q[nt];typeof z=="number"&&ge.push([z,nt])}let Se=Av(ge,(nt,z)=>kr(nt[0],z[0]));return Gt.set(q,Se),Se}function Xt(q){return Ge(q,ed,!1)}e.formatSyntaxKind=Xt;function Tn(q){return Ge(q,pd,!1)}e.formatSnippetKind=Tn;function Sn(q){return Ge(q,ld,!1)}e.formatScriptKind=Sn;function sr(q){return Ge(q,td,!0)}e.formatNodeFlags=sr;function $t(q){return Ge(q,rd,!0)}e.formatModifierFlags=$t;function St(q){return Ge(q,ud,!0)}e.formatTransformFlags=St;function xn(q){return Ge(q,fd,!0)}e.formatEmitFlags=xn;function Tr(q){return Ge(q,ad,!0)}e.formatSymbolFlags=Tr;function vt(q){return Ge(q,od,!0)}e.formatTypeFlags=vt;function ct(q){return Ge(q,_d,!0)}e.formatSignatureFlags=ct;function Ut(q){return Ge(q,sd,!0)}e.formatObjectFlags=Ut;function fr(q){return Ge(q,bl,!0)}e.formatFlowFlags=fr;function ht(q){return Ge(q,nd,!0)}e.formatRelationComparisonResult=ht;function wn(q){return Ge(q,CheckMode,!0)}e.formatCheckMode=wn;function Tt(q){return Ge(q,SignatureCheckMode,!0)}e.formatSignatureCheckMode=Tt;function Or(q){return Ge(q,TypeFacts,!0)}e.formatTypeFacts=Or;let pt=!1,Mr;function at(q){"__debugFlowFlags"in q||Object.defineProperties(q,{__tsDebuggerDisplay:{value(){let oe=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",ge=this.flags&~(2048-1);return`${oe}${ge?` (${fr(ge)})`:""}`}},__debugFlowFlags:{get(){return Ge(this.flags,bl,!0)}},__debugToString:{value(){return Ae(this)}}})}function er(q){pt&&(typeof Object.setPrototypeOf=="function"?(Mr||(Mr=Object.create(Object.prototype),at(Mr)),Object.setPrototypeOf(q,Mr)):at(q))}e.attachFlowNodeDebugInfo=er;let Qt;function tn(q){"__tsDebuggerDisplay"in q||Object.defineProperties(q,{__tsDebuggerDisplay:{value(oe){return oe=String(oe).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${oe}`}}})}function Bn(q){pt&&(typeof Object.setPrototypeOf=="function"?(Qt||(Qt=Object.create(Array.prototype),tn(Qt)),Object.setPrototypeOf(q,Qt)):tn(q))}e.attachNodeArrayDebugInfo=Bn;function Un(){if(pt)return;let q=new WeakMap,oe=new WeakMap;Object.defineProperties(wt.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let Se=this.flags&33554432?"TransientSymbol":"Symbol",nt=this.flags&-33554433;return`${Se} '${md(this)}'${nt?` (${Tr(nt)})`:""}`}},__debugFlags:{get(){return Tr(this.flags)}}}),Object.defineProperties(wt.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let Se=this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&67359327?`IntrinsicType ${this.intrinsicName}`:this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",nt=this.flags&524288?this.objectFlags&-1344:0;return`${Se}${this.symbol?` '${md(this.symbol)}'`:""}${nt?` (${Ut(nt)})`:""}`}},__debugFlags:{get(){return vt(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?Ut(this.objectFlags):""}},__debugTypeToString:{value(){let Se=q.get(this);return Se===void 0&&(Se=this.checker.typeToString(this),q.set(this,Se)),Se}}}),Object.defineProperties(wt.getSignatureConstructor().prototype,{__debugFlags:{get(){return ct(this.flags)}},__debugSignatureToString:{value(){var Se;return(Se=this.checker)==null?void 0:Se.signatureToString(this)}}});let ge=[wt.getNodeConstructor(),wt.getIdentifierConstructor(),wt.getTokenConstructor(),wt.getSourceFileConstructor()];for(let Se of ge)Qr(Se.prototype,"__debugKind")||Object.defineProperties(Se.prototype,{__tsDebuggerDisplay:{value(){return`${wa(this)?"GeneratedIdentifier":Ee(this)?`Identifier '${Ot(this)}'`:jr(this)?`PrivateIdentifier '${Ot(this)}'`:mn(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:lo(this)?`NumericLiteral ${this.text}`:o6(this)?`BigIntLiteral ${this.text}n`:No(this)?"TypeParameterDeclaration":Ma(this)?"ParameterDeclaration":J_(this)?"ConstructorDeclaration":m_(this)?"GetAccessorDeclaration":Qo(this)?"SetAccessorDeclaration":c6(this)?"CallSignatureDeclaration":Hx(this)?"ConstructSignatureDeclaration":l6(this)?"IndexSignatureDeclaration":Gx(this)?"TypePredicateNode":R_(this)?"TypeReferenceNode":tu(this)?"FunctionTypeNode":u6(this)?"ConstructorTypeNode":Xx(this)?"TypeQueryNode":Em(this)?"TypeLiteralNode":$x(this)?"ArrayTypeNode":Qx(this)?"TupleTypeNode":Yx(this)?"OptionalTypeNode":Kx(this)?"RestTypeNode":Zx(this)?"UnionTypeNode":e8(this)?"IntersectionTypeNode":t8(this)?"ConditionalTypeNode":r8(this)?"InferTypeNode":f6(this)?"ParenthesizedTypeNode":d6(this)?"ThisTypeNode":n8(this)?"TypeOperatorNode":i8(this)?"IndexedAccessTypeNode":a8(this)?"MappedTypeNode":m6(this)?"LiteralTypeNode":p6(this)?"NamedTupleMember":ru(this)?"ImportTypeNode":Xt(this.kind)}${this.flags?` (${sr(this.flags)})`:""}`}},__debugKind:{get(){return Xt(this.kind)}},__debugNodeFlags:{get(){return sr(this.flags)}},__debugModifierFlags:{get(){return $t(uS(this))}},__debugTransformFlags:{get(){return St(this.transformFlags)}},__debugIsParseTreeNode:{get(){return Tl(this)}},__debugEmitFlags:{get(){return xn(ti(this))}},__debugGetText:{value(nt){if(Ta(this))return"";let z=oe.get(this);if(z===void 0){let X=Fl(this),ee=X&&ri(X);z=ee?Xo(ee,X,nt):"",oe.set(this,z)}return z}}});pt=!0}e.enableDebugInfo=Un;function rn(q){let oe=q&7,ge=oe===0?"in out":oe===3?"[bivariant]":oe===2?"in":oe===1?"out":oe===4?"[independent]":"";return q&8?ge+=" (unmeasurable)":q&16&&(ge+=" (unreliable)"),ge}e.formatVariance=rn;class nn{__debugToString(){var oe;switch(this.kind){case 3:return((oe=this.debugInfo)==null?void 0:oe.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return ey(this.sources,this.targets||Aa(this.sources,()=>"any"),(ge,Se)=>`${ge.__debugTypeToString()} -> ${typeof Se=="string"?Se:Se.__debugTypeToString()}`).join(", ");case 2:return ey(this.sources,this.targets,(ge,Se)=>`${ge.__debugTypeToString()} -> ${Se().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` `).join(` `)} m2: ${this.mapper2.__debugToString().split(` `).join(` - `)}`;default:return we(this)}}}e.DebugTypeMapper=Wn;function hr(H){return e.isDebugging?Object.setPrototypeOf(H,Wn.prototype):H}e.attachDebugPrototypeIfDebug=hr;function Ci(H){return console.log(Ie(H))}e.printControlFlowGraph=Ci;function Ie(H){let de=-1;function be(E){return E.id||(E.id=de,de--),E.id}let Ee;(E=>{E.lr="\u2500",E.ud="\u2502",E.dr="\u256D",E.dl="\u256E",E.ul="\u256F",E.ur="\u2570",E.udr="\u251C",E.udl="\u2524",E.dlr="\u252C",E.ulr="\u2534",E.udlr="\u256B"})(Ee||(Ee={}));let et;(E=>{E[E.None=0]="None",E[E.Up=1]="Up",E[E.Down=2]="Down",E[E.Left=4]="Left",E[E.Right=8]="Right",E[E.UpDown=3]="UpDown",E[E.LeftRight=12]="LeftRight",E[E.UpLeft=5]="UpLeft",E[E.UpRight=9]="UpRight",E[E.DownLeft=6]="DownLeft",E[E.DownRight=10]="DownRight",E[E.UpDownLeft=7]="UpDownLeft",E[E.UpDownRight=11]="UpDownRight",E[E.UpLeftRight=13]="UpLeftRight",E[E.DownLeftRight=14]="DownLeftRight",E[E.UpDownLeftRight=15]="UpDownLeftRight",E[E.NoChildren=16]="NoChildren"})(et||(et={}));let Qe=2032,ee=882,Z=Object.create(null),ae=[],Te=[],Oe=ri(H,new Set);for(let E of ae)E.text=Nn(E.flowNode,E.circular),Pa(E);let We=br(Oe),Re=ii(We);return ai(Oe,0),Fe();function Rt(E){return!!(E.flags&128)}function Nt(E){return!!(E.flags&12)&&!!E.antecedents}function Vn(E){return!!(E.flags&Qe)}function ta(E){return!!(E.flags&ee)}function gr(E){let S=[];for(let J of E.edges)J.source===E&&S.push(J.target);return S}function ni(E){let S=[];for(let J of E.edges)J.target===E&&S.push(J.source);return S}function ri(E,S){let J=be(E),m=Z[J];if(m&&S.has(E))return m.circular=!0,m={id:-1,flowNode:E,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},ae.push(m),m;if(S.add(E),!m)if(Z[J]=m={id:J,flowNode:E,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},ae.push(m),Nt(E))for(let ie of E.antecedents)na(m,ie,S);else Vn(E)&&na(m,E.antecedent,S);return S.delete(E),m}function na(E,S,J){let m=ri(S,J),ie={source:E,target:m};Te.push(ie),E.edges.push(ie),m.edges.push(ie)}function Pa(E){if(E.level!==-1)return E.level;let S=0;for(let J of ni(E))S=Math.max(S,Pa(J)+1);return E.level=S}function br(E){let S=0;for(let J of gr(E))S=Math.max(S,br(J));return S+1}function ii(E){let S=wt(Array(E),0);for(let J of ae)S[J.level]=Math.max(S[J.level],J.text.length);return S}function ai(E,S){if(E.lane===-1){E.lane=S,E.endLane=S;let J=gr(E);for(let m=0;m0&&S++;let ie=J[m];ai(ie,S),ie.endLane>E.endLane&&(S=ie.endLane)}E.endLane=S}}function ra(E){if(E&2)return"Start";if(E&4)return"Branch";if(E&8)return"Loop";if(E&16)return"Assignment";if(E&32)return"True";if(E&64)return"False";if(E&128)return"SwitchClause";if(E&256)return"ArrayMutation";if(E&512)return"Call";if(E&1024)return"ReduceLabel";if(E&1)return"Unreachable";throw new Error}function Mr(E){let S=Kr(E);return Yo(S,E,!1)}function Nn(E,S){let J=ra(E.flags);if(S&&(J=`${J}#${be(E)}`),ta(E))E.node&&(J+=` (${Mr(E.node)})`);else if(Rt(E)){let m=[];for(let ie=E.clauseStart;ieMath.max(R,me.lane),0)+1,J=wt(Array(S),""),m=Re.map(()=>Array(S)),ie=Re.map(()=>wt(Array(S),0));for(let R of ae){m[R.level][R.lane]=R;let me=gr(R);for(let ke=0;ke0&&(ot|=1),ke0&&(ot|=1),ke0?ie[R-1][me]:0,ke=me>0?ie[R][me-1]:0,De=ie[R][me];De||(Ae&8&&(De|=12),ke&2&&(De|=3),ie[R][me]=De)}for(let R=0;R{x.lr="\u2500",x.ud="\u2502",x.dr="\u256D",x.dl="\u256E",x.ul="\u256F",x.ur="\u2570",x.udr="\u251C",x.udl="\u2524",x.dlr="\u252C",x.ulr="\u2534",x.udlr="\u256B"})(Se||(Se={}));let nt;(x=>{x[x.None=0]="None",x[x.Up=1]="Up",x[x.Down=2]="Down",x[x.Left=4]="Left",x[x.Right=8]="Right",x[x.UpDown=3]="UpDown",x[x.LeftRight=12]="LeftRight",x[x.UpLeft=5]="UpLeft",x[x.UpRight=9]="UpRight",x[x.DownLeft=6]="DownLeft",x[x.DownRight=10]="DownRight",x[x.UpDownLeft=7]="UpDownLeft",x[x.UpDownRight=11]="UpDownRight",x[x.UpLeftRight=13]="UpLeftRight",x[x.DownLeftRight=14]="DownLeftRight",x[x.UpDownLeftRight=15]="UpDownLeftRight",x[x.NoChildren=16]="NoChildren"})(nt||(nt={}));let z=2032,X=882,ee=Object.create(null),xe=[],ke=[],Le=ia(q,new Set);for(let x of xe)x.text=oa(x.flowNode,x.circular),En(x);let lt=Ii(Le),yt=aa(lt);return Vn(Le,0),Mt();function jt(x){return!!(x.flags&128)}function qr(x){return!!(x.flags&12)&&!!x.antecedents}function na(x){return!!(x.flags&z)}function Cn(x){return!!(x.flags&X)}function zn(x){let f=[];for(let $ of x.edges)$.source===x&&f.push($.target);return f}function Pi(x){let f=[];for(let $ of x.edges)$.target===x&&f.push($.source);return f}function ia(x,f){let $=ge(x),Q=ee[$];if(Q&&f.has(x))return Q.circular=!0,Q={id:-1,flowNode:x,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},xe.push(Q),Q;if(f.add(x),!Q)if(ee[$]=Q={id:$,flowNode:x,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},xe.push(Q),qr(x))for(let O of x.antecedents)Wn(Q,O,f);else na(x)&&Wn(Q,x.antecedent,f);return f.delete(x),Q}function Wn(x,f,$){let Q=ia(f,$),O={source:x,target:Q};ke.push(O),x.edges.push(O),Q.edges.push(O)}function En(x){if(x.level!==-1)return x.level;let f=0;for(let $ of Pi(x))f=Math.max(f,En($)+1);return x.level=f}function Ii(x){let f=0;for(let $ of zn(x))f=Math.max(f,Ii($));return f+1}function aa(x){let f=j(Array(x),0);for(let $ of xe)f[$.level]=Math.max(f[$.level],$.text.length);return f}function Vn(x,f){if(x.lane===-1){x.lane=f,x.endLane=f;let $=zn(x);for(let Q=0;Q<$.length;Q++){Q>0&&f++;let O=$[Q];Vn(O,f),O.endLane>x.endLane&&(f=O.endLane)}x.endLane=f}}function Sr(x){if(x&2)return"Start";if(x&4)return"Branch";if(x&8)return"Loop";if(x&16)return"Assignment";if(x&32)return"True";if(x&64)return"False";if(x&128)return"SwitchClause";if(x&256)return"ArrayMutation";if(x&512)return"Call";if(x&1024)return"ReduceLabel";if(x&1)return"Unreachable";throw new Error}function Je(x){let f=ri(x);return Xo(f,x,!1)}function oa(x,f){let $=Sr(x.flags);if(f&&($=`${$}#${ge(x)}`),Cn(x))x.node&&($+=` (${Je(x.node)})`);else if(jt(x)){let Q=[];for(let O=x.clauseStart;OMath.max(be,he.lane),0)+1,$=j(Array(f),""),Q=yt.map(()=>Array(f)),O=yt.map(()=>j(Array(f),0));for(let be of xe){Q[be.level][be.lane]=be;let he=zn(be);for(let we=0;we0&&(Ye|=1),we0&&(Ye|=1),we0?O[be-1][he]:0,we=he>0?O[be][he-1]:0,et=O[be][he];et||(Re&8&&(et|=12),we&2&&(et|=3),O[be][he]=et)}for(let be=0;be0?E.repeat(S):"";let J="";for(;J.length{},f5=()=>{},m5=()=>{},da=Date.now,y5=()=>{},yf=new Proxy(()=>{},{get:()=>yf});function Y6(e){if(yg){let t=uh.get(e)??0;uh.set(e,t+1),gf.set(e,da()),hf==null||hf.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function h5(e,t,n){if(yg){let i=(n!==void 0?gf.get(n):void 0)??da(),s=(t!==void 0?gf.get(t):void 0)??lT,l=ph.get(e)||0;ph.set(e,l+(i-s)),hf==null||hf.measure(e,t,n)}}var hf,g5,yg,lT,gf,uh,ph,HK=Ht({"src/compiler/performance.ts"(){"use strict";En(),g5={enter:Pr,exit:Pr},yg=!1,lT=da(),gf=new Map,uh=new Map,ph=new Map}}),uT=()=>{},b5=()=>{},fa;function v5(e,t=!0){let n=Af[e.category];return t?n.toLowerCase():n}var bf,vf,Tf,dh,xf,fh,mh,ul,yh,Sf,hh,gh,bh,vh,Th,xh,Sh,wh,Eh,Ch,kh,Ah,Dh,Ph,Nh,wf,Ih,Oh,Mh,Lh,Ef,Cf,Jh,Rh,Fh,jh,Bh,Uh,kf,qh,zh,Wh,Vh,Hh,Kh,Af,Gh,Xh,$h,Qh,Yh,Zh,e0,t0,n0,r0,i0,a0,o0,s0,_0,Df,Pf,Nf,c0,l0,u0,p0,d0,f0,m0,y0,om,pT=Ht({"src/compiler/types.ts"(){"use strict";bf=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.FromKeyword=160]="FromKeyword",e[e.GlobalKeyword=161]="GlobalKeyword",e[e.BigIntKeyword=162]="BigIntKeyword",e[e.OverrideKeyword=163]="OverrideKeyword",e[e.OfKeyword=164]="OfKeyword",e[e.QualifiedName=165]="QualifiedName",e[e.ComputedPropertyName=166]="ComputedPropertyName",e[e.TypeParameter=167]="TypeParameter",e[e.Parameter=168]="Parameter",e[e.Decorator=169]="Decorator",e[e.PropertySignature=170]="PropertySignature",e[e.PropertyDeclaration=171]="PropertyDeclaration",e[e.MethodSignature=172]="MethodSignature",e[e.MethodDeclaration=173]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=174]="ClassStaticBlockDeclaration",e[e.Constructor=175]="Constructor",e[e.GetAccessor=176]="GetAccessor",e[e.SetAccessor=177]="SetAccessor",e[e.CallSignature=178]="CallSignature",e[e.ConstructSignature=179]="ConstructSignature",e[e.IndexSignature=180]="IndexSignature",e[e.TypePredicate=181]="TypePredicate",e[e.TypeReference=182]="TypeReference",e[e.FunctionType=183]="FunctionType",e[e.ConstructorType=184]="ConstructorType",e[e.TypeQuery=185]="TypeQuery",e[e.TypeLiteral=186]="TypeLiteral",e[e.ArrayType=187]="ArrayType",e[e.TupleType=188]="TupleType",e[e.OptionalType=189]="OptionalType",e[e.RestType=190]="RestType",e[e.UnionType=191]="UnionType",e[e.IntersectionType=192]="IntersectionType",e[e.ConditionalType=193]="ConditionalType",e[e.InferType=194]="InferType",e[e.ParenthesizedType=195]="ParenthesizedType",e[e.ThisType=196]="ThisType",e[e.TypeOperator=197]="TypeOperator",e[e.IndexedAccessType=198]="IndexedAccessType",e[e.MappedType=199]="MappedType",e[e.LiteralType=200]="LiteralType",e[e.NamedTupleMember=201]="NamedTupleMember",e[e.TemplateLiteralType=202]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=203]="TemplateLiteralTypeSpan",e[e.ImportType=204]="ImportType",e[e.ObjectBindingPattern=205]="ObjectBindingPattern",e[e.ArrayBindingPattern=206]="ArrayBindingPattern",e[e.BindingElement=207]="BindingElement",e[e.ArrayLiteralExpression=208]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=209]="ObjectLiteralExpression",e[e.PropertyAccessExpression=210]="PropertyAccessExpression",e[e.ElementAccessExpression=211]="ElementAccessExpression",e[e.CallExpression=212]="CallExpression",e[e.NewExpression=213]="NewExpression",e[e.TaggedTemplateExpression=214]="TaggedTemplateExpression",e[e.TypeAssertionExpression=215]="TypeAssertionExpression",e[e.ParenthesizedExpression=216]="ParenthesizedExpression",e[e.FunctionExpression=217]="FunctionExpression",e[e.ArrowFunction=218]="ArrowFunction",e[e.DeleteExpression=219]="DeleteExpression",e[e.TypeOfExpression=220]="TypeOfExpression",e[e.VoidExpression=221]="VoidExpression",e[e.AwaitExpression=222]="AwaitExpression",e[e.PrefixUnaryExpression=223]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=224]="PostfixUnaryExpression",e[e.BinaryExpression=225]="BinaryExpression",e[e.ConditionalExpression=226]="ConditionalExpression",e[e.TemplateExpression=227]="TemplateExpression",e[e.YieldExpression=228]="YieldExpression",e[e.SpreadElement=229]="SpreadElement",e[e.ClassExpression=230]="ClassExpression",e[e.OmittedExpression=231]="OmittedExpression",e[e.ExpressionWithTypeArguments=232]="ExpressionWithTypeArguments",e[e.AsExpression=233]="AsExpression",e[e.NonNullExpression=234]="NonNullExpression",e[e.MetaProperty=235]="MetaProperty",e[e.SyntheticExpression=236]="SyntheticExpression",e[e.SatisfiesExpression=237]="SatisfiesExpression",e[e.TemplateSpan=238]="TemplateSpan",e[e.SemicolonClassElement=239]="SemicolonClassElement",e[e.Block=240]="Block",e[e.EmptyStatement=241]="EmptyStatement",e[e.VariableStatement=242]="VariableStatement",e[e.ExpressionStatement=243]="ExpressionStatement",e[e.IfStatement=244]="IfStatement",e[e.DoStatement=245]="DoStatement",e[e.WhileStatement=246]="WhileStatement",e[e.ForStatement=247]="ForStatement",e[e.ForInStatement=248]="ForInStatement",e[e.ForOfStatement=249]="ForOfStatement",e[e.ContinueStatement=250]="ContinueStatement",e[e.BreakStatement=251]="BreakStatement",e[e.ReturnStatement=252]="ReturnStatement",e[e.WithStatement=253]="WithStatement",e[e.SwitchStatement=254]="SwitchStatement",e[e.LabeledStatement=255]="LabeledStatement",e[e.ThrowStatement=256]="ThrowStatement",e[e.TryStatement=257]="TryStatement",e[e.DebuggerStatement=258]="DebuggerStatement",e[e.VariableDeclaration=259]="VariableDeclaration",e[e.VariableDeclarationList=260]="VariableDeclarationList",e[e.FunctionDeclaration=261]="FunctionDeclaration",e[e.ClassDeclaration=262]="ClassDeclaration",e[e.InterfaceDeclaration=263]="InterfaceDeclaration",e[e.TypeAliasDeclaration=264]="TypeAliasDeclaration",e[e.EnumDeclaration=265]="EnumDeclaration",e[e.ModuleDeclaration=266]="ModuleDeclaration",e[e.ModuleBlock=267]="ModuleBlock",e[e.CaseBlock=268]="CaseBlock",e[e.NamespaceExportDeclaration=269]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=270]="ImportEqualsDeclaration",e[e.ImportDeclaration=271]="ImportDeclaration",e[e.ImportClause=272]="ImportClause",e[e.NamespaceImport=273]="NamespaceImport",e[e.NamedImports=274]="NamedImports",e[e.ImportSpecifier=275]="ImportSpecifier",e[e.ExportAssignment=276]="ExportAssignment",e[e.ExportDeclaration=277]="ExportDeclaration",e[e.NamedExports=278]="NamedExports",e[e.NamespaceExport=279]="NamespaceExport",e[e.ExportSpecifier=280]="ExportSpecifier",e[e.MissingDeclaration=281]="MissingDeclaration",e[e.ExternalModuleReference=282]="ExternalModuleReference",e[e.JsxElement=283]="JsxElement",e[e.JsxSelfClosingElement=284]="JsxSelfClosingElement",e[e.JsxOpeningElement=285]="JsxOpeningElement",e[e.JsxClosingElement=286]="JsxClosingElement",e[e.JsxFragment=287]="JsxFragment",e[e.JsxOpeningFragment=288]="JsxOpeningFragment",e[e.JsxClosingFragment=289]="JsxClosingFragment",e[e.JsxAttribute=290]="JsxAttribute",e[e.JsxAttributes=291]="JsxAttributes",e[e.JsxSpreadAttribute=292]="JsxSpreadAttribute",e[e.JsxExpression=293]="JsxExpression",e[e.JsxNamespacedName=294]="JsxNamespacedName",e[e.CaseClause=295]="CaseClause",e[e.DefaultClause=296]="DefaultClause",e[e.HeritageClause=297]="HeritageClause",e[e.CatchClause=298]="CatchClause",e[e.AssertClause=299]="AssertClause",e[e.AssertEntry=300]="AssertEntry",e[e.ImportTypeAssertionContainer=301]="ImportTypeAssertionContainer",e[e.PropertyAssignment=302]="PropertyAssignment",e[e.ShorthandPropertyAssignment=303]="ShorthandPropertyAssignment",e[e.SpreadAssignment=304]="SpreadAssignment",e[e.EnumMember=305]="EnumMember",e[e.UnparsedPrologue=306]="UnparsedPrologue",e[e.UnparsedPrepend=307]="UnparsedPrepend",e[e.UnparsedText=308]="UnparsedText",e[e.UnparsedInternalText=309]="UnparsedInternalText",e[e.UnparsedSyntheticReference=310]="UnparsedSyntheticReference",e[e.SourceFile=311]="SourceFile",e[e.Bundle=312]="Bundle",e[e.UnparsedSource=313]="UnparsedSource",e[e.InputFiles=314]="InputFiles",e[e.JSDocTypeExpression=315]="JSDocTypeExpression",e[e.JSDocNameReference=316]="JSDocNameReference",e[e.JSDocMemberName=317]="JSDocMemberName",e[e.JSDocAllType=318]="JSDocAllType",e[e.JSDocUnknownType=319]="JSDocUnknownType",e[e.JSDocNullableType=320]="JSDocNullableType",e[e.JSDocNonNullableType=321]="JSDocNonNullableType",e[e.JSDocOptionalType=322]="JSDocOptionalType",e[e.JSDocFunctionType=323]="JSDocFunctionType",e[e.JSDocVariadicType=324]="JSDocVariadicType",e[e.JSDocNamepathType=325]="JSDocNamepathType",e[e.JSDoc=326]="JSDoc",e[e.JSDocComment=326]="JSDocComment",e[e.JSDocText=327]="JSDocText",e[e.JSDocTypeLiteral=328]="JSDocTypeLiteral",e[e.JSDocSignature=329]="JSDocSignature",e[e.JSDocLink=330]="JSDocLink",e[e.JSDocLinkCode=331]="JSDocLinkCode",e[e.JSDocLinkPlain=332]="JSDocLinkPlain",e[e.JSDocTag=333]="JSDocTag",e[e.JSDocAugmentsTag=334]="JSDocAugmentsTag",e[e.JSDocImplementsTag=335]="JSDocImplementsTag",e[e.JSDocAuthorTag=336]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=337]="JSDocDeprecatedTag",e[e.JSDocClassTag=338]="JSDocClassTag",e[e.JSDocPublicTag=339]="JSDocPublicTag",e[e.JSDocPrivateTag=340]="JSDocPrivateTag",e[e.JSDocProtectedTag=341]="JSDocProtectedTag",e[e.JSDocReadonlyTag=342]="JSDocReadonlyTag",e[e.JSDocOverrideTag=343]="JSDocOverrideTag",e[e.JSDocCallbackTag=344]="JSDocCallbackTag",e[e.JSDocOverloadTag=345]="JSDocOverloadTag",e[e.JSDocEnumTag=346]="JSDocEnumTag",e[e.JSDocParameterTag=347]="JSDocParameterTag",e[e.JSDocReturnTag=348]="JSDocReturnTag",e[e.JSDocThisTag=349]="JSDocThisTag",e[e.JSDocTypeTag=350]="JSDocTypeTag",e[e.JSDocTemplateTag=351]="JSDocTemplateTag",e[e.JSDocTypedefTag=352]="JSDocTypedefTag",e[e.JSDocSeeTag=353]="JSDocSeeTag",e[e.JSDocPropertyTag=354]="JSDocPropertyTag",e[e.JSDocThrowsTag=355]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=356]="JSDocSatisfiesTag",e[e.SyntaxList=357]="SyntaxList",e[e.NotEmittedStatement=358]="NotEmittedStatement",e[e.PartiallyEmittedExpression=359]="PartiallyEmittedExpression",e[e.CommaListExpression=360]="CommaListExpression",e[e.SyntheticReferenceExpression=361]="SyntheticReferenceExpression",e[e.Count=362]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=164]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=181]="FirstTypeNode",e[e.LastTypeNode=204]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=164]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=242]="FirstStatement",e[e.LastStatement=258]="LastStatement",e[e.FirstNode=165]="FirstNode",e[e.FirstJSDocNode=315]="FirstJSDocNode",e[e.LastJSDocNode=356]="LastJSDocNode",e[e.FirstJSDocTagNode=333]="FirstJSDocTagNode",e[e.LastJSDocTagNode=356]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=164]="LastContextualKeyword",e))(bf||{}),vf=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.NestedNamespace=4]="NestedNamespace",e[e.Synthesized=8]="Synthesized",e[e.Namespace=16]="Namespace",e[e.OptionalChain=32]="OptionalChain",e[e.ExportContext=64]="ExportContext",e[e.ContainsThis=128]="ContainsThis",e[e.HasImplicitReturn=256]="HasImplicitReturn",e[e.HasExplicitReturn=512]="HasExplicitReturn",e[e.GlobalAugmentation=1024]="GlobalAugmentation",e[e.HasAsyncFunctions=2048]="HasAsyncFunctions",e[e.DisallowInContext=4096]="DisallowInContext",e[e.YieldContext=8192]="YieldContext",e[e.DecoratorContext=16384]="DecoratorContext",e[e.AwaitContext=32768]="AwaitContext",e[e.DisallowConditionalTypesContext=65536]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=131072]="ThisNodeHasError",e[e.JavaScriptFile=262144]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=524288]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=1048576]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=2097152]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=4194304]="PossiblyContainsImportMeta",e[e.JSDoc=8388608]="JSDoc",e[e.Ambient=16777216]="Ambient",e[e.InWithStatement=33554432]="InWithStatement",e[e.JsonFile=67108864]="JsonFile",e[e.TypeCached=134217728]="TypeCached",e[e.Deprecated=268435456]="Deprecated",e[e.BlockScoped=3]="BlockScoped",e[e.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",e[e.ContextFlags=50720768]="ContextFlags",e[e.TypeExcludesFlags=40960]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=6291456]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=128]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=2048]="IdentifierIsInJSDocNamespace",e))(vf||{}),Tf=(e=>(e[e.None=0]="None",e[e.Export=1]="Export",e[e.Ambient=2]="Ambient",e[e.Public=4]="Public",e[e.Private=8]="Private",e[e.Protected=16]="Protected",e[e.Static=32]="Static",e[e.Readonly=64]="Readonly",e[e.Accessor=128]="Accessor",e[e.Abstract=256]="Abstract",e[e.Async=512]="Async",e[e.Default=1024]="Default",e[e.Const=2048]="Const",e[e.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",e[e.Deprecated=8192]="Deprecated",e[e.Override=16384]="Override",e[e.In=32768]="In",e[e.Out=65536]="Out",e[e.Decorator=131072]="Decorator",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=28]="AccessibilityModifier",e[e.ParameterPropertyModifier=16476]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=117086]="TypeScriptModifier",e[e.ExportDefault=1025]="ExportDefault",e[e.All=258047]="All",e[e.Modifier=126975]="Modifier",e))(Tf||{}),dh=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(dh||{}),xf=(e=>(e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e))(xf||{}),fh=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(fh||{}),mh=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(mh||{}),ul=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(ul||{}),yh=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(yh||{}),Sf=class{},hh=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(hh||{}),gh=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(gh||{}),bh=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(bh||{}),vh=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(vh||{}),Th=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(Th||{}),xh=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(xh||{}),Sh=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(Sh||{}),wh=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(wh||{}),Eh=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.WriteComputedProps=1073741824]="WriteComputedProps",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(Eh||{}),Ch=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330091]="NodeBuilderFlagsMask",e))(Ch||{}),kh=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(kh||{}),Ah=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(Ah||{}),Dh=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(Dh||{}),Ph=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(Ph||{}),Nh=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(Nh||{}),wf=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=67108863]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(wf||{}),Ih=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(Ih||{}),Oh=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(Oh||{}),Mh=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e))(Mh||{}),Lh=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.ClassWithBodyScopedClassBinding=65536]="ClassWithBodyScopedClassBinding",e[e.BodyScopedClassBinding=131072]="BodyScopedClassBinding",e[e.NeedsLoopOutParameter=262144]="NeedsLoopOutParameter",e[e.AssignmentsMarked=524288]="AssignmentsMarked",e[e.ClassWithConstructorReference=1048576]="ClassWithConstructorReference",e[e.ConstructorReferenceInClass=2097152]="ConstructorReferenceInClass",e[e.ContainsClassWithPrivateIdentifiers=4194304]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=8388608]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=16777216]="InCheckIdentifier",e))(Lh||{}),Ef=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=138117121]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(Ef||{}),Cf=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e))(Cf||{}),Jh=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))(Jh||{}),Rh=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(Rh||{}),Fh=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(Fh||{}),jh=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(jh||{}),Bh=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(Bh||{}),Uh=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(Uh||{}),kf=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.PropagatingFlags=39]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(kf||{}),qh=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(qh||{}),zh=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(zh||{}),Wh=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(Wh||{}),Vh=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(Vh||{}),Hh=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(Hh||{}),Kh=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(Kh||{}),Af=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(Af||{}),Gh=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(Gh||{}),Xh=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(Xh||{}),$h=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))($h||{}),Qh=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(Qh||{}),Yh=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(Yh||{}),Zh=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.NodeNext=199]="NodeNext",e))(Zh||{}),e0=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(e0||{}),t0=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(t0||{}),n0=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(n0||{}),r0=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(r0||{}),i0=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(i0||{}),a0=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(a0||{}),o0=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(o0||{}),s0=(e=>(e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e.replacementCharacter=65533]="replacementCharacter",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(s0||{}),_0=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(_0||{}),Df=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(Df||{}),Pf=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(Pf||{}),Nf=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(Nf||{}),c0=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(c0||{}),l0=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.CreateBinding=4194304]="CreateBinding",e[e.SetFunctionName=8388608]="SetFunctionName",e[e.PropKey=16777216]="PropKey",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=16777216]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(l0||{}),u0=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e))(u0||{}),p0=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All",e[e.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",e))(p0||{}),d0=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(d0||{}),f0=(e=>(e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.TypeResolutionModeRequire="type-require",e.TypeResolutionModeImport="type-import",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal",e))(f0||{}),m0=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(m0||{}),y0=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(y0||{}),om={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}}}}),T5=()=>{},h0;function hg(e){return e===47||e===92}function x5(e){return kl(e)<0}function y_(e){return kl(e)>0}function S5(e){let t=kl(e);return t>0&&t===e.length}function gg(e){return kl(e)!==0}function is(e){return/^\.\.?($|[\\/])/.test(e)}function w5(e){return!gg(e)&&!is(e)}function dT(e){return Ga(h_(e),".")}function Ea(e,t){return e.length>t.length&&rs(e,t)}function Wr(e,t){for(let n of t)if(Ea(e,n))return!0;return!1}function sm(e){return e.length>0&&hg(e.charCodeAt(e.length-1))}function Z6(e){return e>=97&&e<=122||e>=65&&e<=90}function E5(e,t){let n=e.charCodeAt(t);if(n===58)return t+1;if(n===37&&e.charCodeAt(t+1)===51){let i=e.charCodeAt(t+2);if(i===97||i===65)return t+3}return-1}function kl(e){if(!e)return 0;let t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;let i=e.indexOf(t===47?_r:Sg,2);return i<0?e.length:i+1}if(Z6(t)&&e.charCodeAt(1)===58){let i=e.charCodeAt(2);if(i===47||i===92)return 3;if(e.length===2)return 2}let n=e.indexOf(b0);if(n!==-1){let i=n+b0.length,s=e.indexOf(_r,i);if(s!==-1){let l=e.slice(0,n),d=e.slice(i,s);if(l==="file"&&(d===""||d==="localhost")&&Z6(e.charCodeAt(s+1))){let y=E5(e,s+2);if(y!==-1){if(e.charCodeAt(y)===47)return~(y+1);if(y===e.length)return~y}}return~(s+1)}return~e.length}return 0}function Si(e){let t=kl(e);return t<0?~t:t}function Hi(e){e=Ho(e);let t=Si(e);return t===e.length?e:(e=g_(e),e.slice(0,Math.max(t,e.lastIndexOf(_r))))}function h_(e,t,n){if(e=Ho(e),Si(e)===e.length)return"";e=g_(e);let s=e.slice(Math.max(Si(e),e.lastIndexOf(_r)+1)),l=t!==void 0&&n!==void 0?If(s,t,n):void 0;return l?s.slice(0,s.length-l.length):s}function ev(e,t,n){if(Jn(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){let i=e.slice(e.length-t.length);if(n(i,t))return i}}function C5(e,t,n){if(typeof t=="string")return ev(e,t,n)||"";for(let i of t){let s=ev(e,i,n);if(s)return s}return""}function If(e,t,n){if(t)return C5(g_(e),t,n?i_:Cl);let i=h_(e),s=i.lastIndexOf(".");return s>=0?i.substring(s):""}function k5(e,t){let n=e.substring(0,t),i=e.substring(t).split(_r);return i.length&&!Ti(i)&&i.pop(),[n,...i]}function wi(e,t=""){return e=yn(t,e),k5(e,Si(e))}function Vo(e,t){return e.length===0?"":(e[0]&&Ko(e[0]))+e.slice(1,t).join(_r)}function Ho(e){return e.indexOf("\\")!==-1?e.replace(gT,_r):e}function va(e){if(!ft(e))return[];let t=[e[0]];for(let n=1;n1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(i)}}return t}function yn(e,...t){e&&(e=Ho(e));for(let n of t)n&&(n=Ho(n),!e||Si(n)!==0?e=n:e=Ko(e)+n);return e}function g0(e,...t){return sr(ft(t)?yn(e,...t):Ho(e))}function _m(e,t){return va(wi(e,t))}function Ta(e,t){return Vo(_m(e,t))}function sr(e){if(e=Ho(e),!pl.test(e))return e;let t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!pl.test(e)))return e;let n=Vo(va(wi(e)));return n&&sm(e)?Ko(n):n}function A5(e){return e.length===0?"":e.slice(1).join(_r)}function D5(e,t){return A5(_m(e,t))}function vi(e,t,n){let i=y_(e)?sr(e):Ta(e,t);return n(i)}function g_(e){return sm(e)?e.substr(0,e.length-1):e}function Ko(e){return sm(e)?e:e+_r}function bg(e){return!gg(e)&&!is(e)?"./"+e:e}function fT(e,t,n,i){let s=n!==void 0&&i!==void 0?If(e,n,i):If(e);return s?e.slice(0,e.length-s.length)+(Jn(t,".")?t:"."+t):e}function vg(e,t,n){if(e===t)return 0;if(e===void 0)return-1;if(t===void 0)return 1;let i=e.substring(0,Si(e)),s=t.substring(0,Si(t)),l=rm(i,s);if(l!==0)return l;let d=e.substring(i.length),y=t.substring(s.length);if(!pl.test(d)&&!pl.test(y))return n(d,y);let p=va(wi(e)),x=va(wi(t)),h=Math.min(p.length,x.length);for(let D=1;D0==Si(t)>0,"Paths must either both be absolute or both be relative");let l=Tg(e,t,(typeof n=="boolean"?n:!1)?i_:Cl,typeof n=="function"?n:ht);return Vo(l)}function M5(e,t,n){return y_(e)?xg(t,e,t,n,!1):e}function L5(e,t,n){return bg(yT(Hi(e),t,n))}function xg(e,t,n,i,s){let l=Tg(g0(n,e),g0(n,t),Cl,i),d=l[0];if(s&&y_(d)){let y=d.charAt(0)===_r?"file://":"file:///";l[0]=y+d}return Vo(l)}function hT(e,t){for(;;){let n=t(e);if(n!==void 0)return n;let i=Hi(e);if(i===e)return;e=i}}function J5(e){return rs(e,"/node_modules")}var _r,Sg,b0,gT,pl,bT=Ht({"src/compiler/path.ts"(){"use strict";En(),_r="/",Sg="\\",b0="://",gT=/\\/g,pl=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function a(e,t,n,i,s,l,d){return{code:e,category:t,key:n,message:i,reportsUnnecessary:s,elidedInCompatabilityPyramid:l,reportsDeprecated:d}}var K,R5=Ht({"src/compiler/diagnosticInformationMap.generated.ts"(){"use strict";pT(),K={Unterminated_string_literal:a(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:a(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:a(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:a(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:a(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:a(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:a(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:a(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:a(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:a(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:a(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:a(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:a(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:a(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:a(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:a(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:a(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:a(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:a(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:a(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:a(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:a(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:a(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:a(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:a(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:a(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:a(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:a(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:a(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:a(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:a(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:a(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:a(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:a(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:a(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:a(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:a(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:a(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:a(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:a(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:a(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:a(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:a(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:a(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:a(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:a(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:a(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:a(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:a(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:a(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:a(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:a(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:a(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:a(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:a(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:a(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:a(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:a(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:a(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:a(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:a(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:a(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:a(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:a(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:a(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:a(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:a(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:a(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:a(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:a(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:a(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:a(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:a(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:a(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:a(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:a(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:a(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:a(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:a(1110,1,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:a(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:a(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:a(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:a(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:a(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:a(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:a(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:a(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:a(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:a(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:a(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:a(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:a(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:a(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:a(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:a(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:a(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:a(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:a(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:a(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:a(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:a(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:a(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:a(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:a(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:a(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:a(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:a(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:a(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:a(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:a(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:a(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:a(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:a(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),const_declarations_must_be_initialized:a(1155,1,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:a(1156,1,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:a(1157,1,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:a(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:a(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:a(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:a(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:a(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:a(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:a(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:a(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:a(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:a(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:a(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:a(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:a(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:a(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:a(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:a(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:a(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:a(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:a(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:a(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:a(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:a(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:a(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:a(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:a(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:a(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:a(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:a(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:a(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:a(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:a(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:a(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:a(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:a(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:a(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:a(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:a(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:a(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:a(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:a(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:a(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:a(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:a(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:a(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:a(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:a(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:a(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:a(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:a(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:a(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:a(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:a(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:a(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:a(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:a(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:a(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:a(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:a(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:a(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:a(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:a(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:a(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:a(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:a(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:a(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:a(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:a(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:a(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:a(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:a(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:a(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:a(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:a(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:a(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:a(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:a(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:a(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:a(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:a(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:a(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:a(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:a(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:a(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:a(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:a(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:a(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:a(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:a(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:a(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:a(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:a(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:a(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:a(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:a(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:a(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:a(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:a(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:a(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:a(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:a(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:a(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:a(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:a(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:a(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:a(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:a(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:a(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:a(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:a(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:a(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:a(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:a(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:a(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:a(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:a(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:a(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:a(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:a(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:a(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:a(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:a(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),with_statements_are_not_allowed_in_an_async_function_block:a(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:a(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:a(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:a(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:a(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:a(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:a(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:a(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:a(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:a(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:a(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:a(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:a(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:a(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:a(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:a(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:a(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:a(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:a(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:a(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:a(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:a(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:a(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:a(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:a(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:a(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:a(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:a(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:a(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:a(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:a(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:a(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:a(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:a(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:a(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:a(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:a(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:a(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:a(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:a(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:a(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:a(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:a(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:a(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:a(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:a(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:a(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:a(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:a(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:a(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:a(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:a(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:a(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:a(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:a(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:a(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:a(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:a(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:a(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:a(1371,1,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import:a(1373,3,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:a(1374,3,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:a(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:a(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:a(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:a(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:a(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:a(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:a(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:a(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:a(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:a(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:a(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:a(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:a(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:a(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:a(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:a(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:a(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:a(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:a(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:a(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:a(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:a(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:a(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:a(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:a(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:a(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:a(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:a(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:a(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:a(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:a(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:a(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:a(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:a(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:a(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:a(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:a(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:a(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:a(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:a(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:a(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:a(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:a(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:a(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:a(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:a(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:a(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:a(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:a(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:a(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:a(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:a(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:a(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:a(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:a(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:a(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:a(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:a(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:a(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:a(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:a(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:a(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:a(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:a(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:a(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:a(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:a(1444,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:a(1446,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:a(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:a(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments:a(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional assertion as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:a(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext:a(1452,1,"resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452","'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`."),resolution_mode_should_be_either_require_or_import:a(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:a(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:a(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:a(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:a(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:a(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:a(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:a(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:a(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:a(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:a(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:a(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:a(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:a(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:a(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:a(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:a(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:a(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:a(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:a(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:a(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:a(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:a(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:a(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:a(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:a(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:a(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:a(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:a(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:a(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),The_types_of_0_are_incompatible_between_these_types:a(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:a(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:a(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:a(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:a(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:a(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:a(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:a(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:a(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:a(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:a(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:a(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:a(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:a(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:a(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:a(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:a(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:a(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:a(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:a(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:a(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:a(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:a(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:a(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:a(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:a(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:a(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:a(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:a(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:a(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:a(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:a(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:a(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:a(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:a(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:a(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:a(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:a(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:a(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:a(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:a(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:a(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:a(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:a(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:a(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:a(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:a(2333,1,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:a(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:a(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:a(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:a(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:a(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:a(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:a(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:a(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:a(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:a(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:a(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:a(2346,1,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:a(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:a(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:a(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:a(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:a(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:a(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:a(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:a(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:a(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:a(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:a(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:a(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:a(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:a(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:a(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:a(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:a(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:a(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:a(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:a(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:a(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:a(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:a(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:a(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:a(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:a(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:a(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:a(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:a(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:a(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:a(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:a(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:a(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:a(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:a(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:a(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:a(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:a(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:a(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:a(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:a(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:a(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:a(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:a(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:a(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:a(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:a(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:a(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:a(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:a(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:a(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:a(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:a(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:a(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:a(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:a(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:a(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:a(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:a(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:a(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:a(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:a(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:a(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:a(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:a(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:a(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:a(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:a(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:a(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:a(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:a(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:a(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:a(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:a(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:a(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:a(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:a(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:a(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:a(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:a(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:a(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:a(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:a(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:a(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:a(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:a(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:a(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:a(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:a(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:a(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:a(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:a(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:a(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:a(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:a(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:a(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:a(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:a(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:a(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:a(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:a(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:a(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:a(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:a(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:a(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:a(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:a(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:a(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:a(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:a(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:a(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:a(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:a(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:a(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:a(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:a(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:a(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:a(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:a(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:a(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:a(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:a(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:a(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:a(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:a(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:a(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:a(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:a(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:a(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:a(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:a(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:a(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:a(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:a(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:a(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:a(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:a(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:a(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:a(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:a(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:a(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:a(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:a(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:a(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:a(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:a(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:a(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:a(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:a(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:a(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:a(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:a(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:a(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:a(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:a(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:a(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:a(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:a(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:a(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:a(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:a(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:a(2525,1,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:a(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:a(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:a(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:a(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:a(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:a(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:a(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:a(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:a(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:a(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:a(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:a(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:a(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:a(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:a(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:a(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:a(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:a(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:a(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:a(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:a(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:a(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:a(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:a(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:a(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:a(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:a(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:a(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:a(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:a(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:a(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:a(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:a(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:a(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:a(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:a(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:a(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:a(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:a(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:a(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:a(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:a(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:a(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:a(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:a(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:a(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:a(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:a(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:a(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:a(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:a(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:a(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:a(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:a(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:a(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:a(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:a(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:a(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:a(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:a(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:a(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:a(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:a(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:a(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:a(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:a(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:a(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:a(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:a(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:a(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:a(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:a(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:a(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:a(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:a(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:a(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:a(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:a(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:a(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:a(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:a(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:a(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:a(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:a(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:a(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:a(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:a(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:a(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:a(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:a(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:a(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:a(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:a(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:a(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:a(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:a(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:a(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:a(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:a(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:a(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:a(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:a(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:a(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:a(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:a(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:a(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:a(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:a(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:a(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:a(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:a(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:a(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:a(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:a(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:a(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:a(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:a(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:a(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:a(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:a(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:a(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:a(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:a(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:a(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:a(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:a(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:a(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:a(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:a(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:a(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:a(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:a(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:a(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:a(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:a(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:a(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:a(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:a(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:a(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:a(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:a(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:a(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:a(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:a(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:a(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:a(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:a(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:a(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:a(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:a(2705,1,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:a(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:a(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:a(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:a(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:a(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:a(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:a(2712,1,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:a(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:a(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:a(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:a(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:a(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:a(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:a(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:a(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:a(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:a(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:a(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:a(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:a(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:a(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:a(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:a(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:a(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:a(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:a(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:a(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:a(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:a(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:a(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:a(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:a(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:a(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:a(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:a(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:a(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:a(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:a(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:a(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:a(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:a(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:a(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:a(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:a(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:a(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:a(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:a(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:a(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:a(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:a(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:a(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:a(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:a(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:a(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:a(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:a(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:a(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:a(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:a(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:a(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:a(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:a(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:a(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:a(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:a(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:a(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:a(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:a(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:a(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:a(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:a(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:a(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:a(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:a(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:a(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:a(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:a(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:a(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:a(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:a(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:a(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:a(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:a(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:a(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:a(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:a(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:a(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:a(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:a(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:a(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:a(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:a(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:a(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:a(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:a(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:a(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:a(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:a(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:a(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:a(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:a(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:a(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:a(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:a(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:a(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:a(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:a(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:a(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:a(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:a(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:a(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:a(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:a(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:a(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:a(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821","Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:a(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Cannot_find_namespace_0_Did_you_mean_1:a(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:a(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:a(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:a(2836,1,"Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836","Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:a(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:a(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:a(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes:a(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840","An interface cannot extend a primitive type like '{0}'; an interface can only extend named types and classes"),The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:a(2841,1,"The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841","The type of this expression cannot be named without a 'resolution-mode' assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:a(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:a(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:a(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:a(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:a(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:a(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:a(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),Import_declaration_0_is_using_private_name_1:a(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:a(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:a(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:a(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:a(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:a(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:a(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:a(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:a(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:a(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:a(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:a(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:a(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:a(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:a(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:a(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:a(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:a(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:a(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:a(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:a(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:a(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:a(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:a(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:a(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:a(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:a(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:a(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:a(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:a(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:a(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:a(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:a(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:a(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:a(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:a(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:a(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:a(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:a(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:a(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:a(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:a(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:a(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:a(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:a(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:a(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:a(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:a(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:a(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:a(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:a(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:a(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:a(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:a(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:a(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:a(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:a(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:a(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:a(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:a(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:a(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:a(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:a(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:a(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:a(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:a(4090,1,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:a(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:a(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:a(4094,1,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:a(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:a(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:a(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:a(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:a(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:a(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:a(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:a(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:a(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:a(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:a(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:a(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:a(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:a(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:a(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:a(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:a(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:a(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:a(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:a(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:a(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:a(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:a(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:a(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:a(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:a(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:a(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:a(4125,1,"resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125","'resolution-mode' assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),The_current_host_does_not_support_the_0_option:a(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:a(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:a(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:a(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:a(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:a(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:a(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:a(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:a(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:a(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:a(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:a(5048,1,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:a(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:a(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:a(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:a(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:a(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:a(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:a(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:a(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:a(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:a(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:a(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:a(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:a(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:a(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:a(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:a(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:a(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:a(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:a(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:a(5071,1,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:a(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:a(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:a(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:a(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:a(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:a(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:a(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:a(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:a(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:a(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:a(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:a(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:a(5084,1,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:a(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:a(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:a(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:a(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:a(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:a(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:a(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:a(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:a(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:a(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later:a(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:a(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:a(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:a(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:a(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:a(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:a(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:a(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:a(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:a(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:a(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:a(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:a(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:a(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:a(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:a(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:a(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:a(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:a(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:a(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:a(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:a(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:a(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:a(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:a(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:a(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:a(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:a(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:a(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:a(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:a(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:a(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:a(6024,3,"options_6024","options"),file:a(6025,3,"file_6025","file"),Examples_Colon_0:a(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:a(6027,3,"Options_Colon_6027","Options:"),Version_0:a(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:a(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:a(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:a(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:a(6034,3,"KIND_6034","KIND"),FILE:a(6035,3,"FILE_6035","FILE"),VERSION:a(6036,3,"VERSION_6036","VERSION"),LOCATION:a(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:a(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:a(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:a(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:a(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:a(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:a(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:a(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:a(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:a(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:a(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:a(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:a(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:a(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:a(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:a(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:a(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:a(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:a(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:a(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:a(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:a(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:a(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:a(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:a(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:a(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:a(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:a(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:a(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:a(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:a(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:a(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:a(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:a(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:a(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:a(6081,3,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:a(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:a(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:a(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:a(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:a(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:a(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:a(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:a(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:a(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:a(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:a(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:a(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:a(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:a(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:a(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:a(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:a(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:a(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:a(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:a(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:a(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:a(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:a(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:a(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:a(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:a(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:a(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:a(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:a(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:a(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:a(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:a(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:a(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:a(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:a(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:a(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:a(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:a(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:a(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:a(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:a(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:a(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:a(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:a(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:a(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:a(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:a(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:a(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:a(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:a(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:a(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:a(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:a(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:a(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:a(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:a(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:a(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:a(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:a(6145,3,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:a(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:a(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:a(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:a(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:a(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:a(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:a(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:a(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:a(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:a(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:a(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:a(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:a(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:a(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:a(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:a(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:a(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:a(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:a(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:a(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:a(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:a(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:a(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:a(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:a(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:a(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:a(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:a(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:a(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:a(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:a(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:a(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:a(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:a(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:a(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:a(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:a(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:a(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:a(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:a(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:a(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:a(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:a(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:a(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:a(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:a(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:a(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:a(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:a(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:a(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:a(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:a(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:a(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:a(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:a(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:a(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:a(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:a(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:a(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:a(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:a(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:a(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:a(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:a(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:a(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:a(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:a(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:a(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:a(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:a(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:a(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:a(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:a(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:a(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:a(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:a(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:a(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:a(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:a(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:a(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:a(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:a(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:a(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:a(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:a(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:a(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:a(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:a(6244,3,"Modules_6244","Modules"),File_Management:a(6245,3,"File_Management_6245","File Management"),Emit:a(6246,3,"Emit_6246","Emit"),JavaScript_Support:a(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:a(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:a(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:a(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:a(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:a(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:a(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:a(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:a(6255,3,"Projects_6255","Projects"),Output_Formatting:a(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:a(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:a(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:a(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:a(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:a(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:a(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:a(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:a(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:a(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:a(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:a(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:a(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:a(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:a(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:a(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:a(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:a(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:a(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:a(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Enable_project_compilation:a(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:a(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:a(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:a(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:a(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:a(6308,1,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:a(6309,1,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:a(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:a(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:a(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:a(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:a(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:a(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:a(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:a(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:a(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:a(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:a(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:a(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:a(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:a(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:a(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:a(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:a(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:a(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:a(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:a(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:a(6372,3,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:a(6373,3,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:a(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:a(6375,3,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:a(6376,3,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:a(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:a(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:a(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:a(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:a(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:a(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:a(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:a(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:a(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:a(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:a(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:a(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:a(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:a(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:a(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:a(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:a(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:a(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:a(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:a(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:a(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:a(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:a(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:a(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:a(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:a(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:a(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:a(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:a(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:a(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:a(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:a(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:a(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:a(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:a(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:a(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:a(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:a(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:a(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:a(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:a(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:a(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:a(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:a(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:a(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:a(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:a(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:a(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:a(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:a(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:a(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:a(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:a(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:a(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:a(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:a(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:a(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:a(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:a(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:a(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:a(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:a(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:a(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:a(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:a(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:a(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:a(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:a(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:a(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:a(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:a(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:a(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:a(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:a(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:a(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:a(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:a(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:a(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:a(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:a(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:a(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:a(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:a(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:a(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:a(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:a(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:a(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:a(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:a(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:a(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:a(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:a(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:a(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:a(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:a(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:a(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:a(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:a(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:a(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:a(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:a(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:a(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:a(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:a(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:a(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:a(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:a(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:a(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:a(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:a(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:a(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:a(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:a(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:a(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:a(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:a(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:a(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:a(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:a(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:a(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:a(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:a(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:a(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:a(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:a(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:a(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:a(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:a(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:a(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:a(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:a(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:a(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:a(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:a(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:a(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:a(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:a(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:a(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:a(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:a(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:a(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:a(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:a(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:a(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:a(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:a(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:a(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:a(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:a(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:a(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:a(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:a(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:a(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:a(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:a(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:a(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:a(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:a(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:a(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:a(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Default_catch_clause_variables_as_unknown_instead_of_any:a(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:a(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),one_of_Colon:a(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:a(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:a(6902,3,"type_Colon_6902","type:"),default_Colon:a(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:a(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:a(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:a(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:a(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:a(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:a(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:a(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:a(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:a(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:a(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:a(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:a(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:a(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:a(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:a(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:a(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:a(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:a(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:a(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:a(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:a(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:a(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:a(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:a(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:a(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:a(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:a(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:a(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:a(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:a(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:a(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:a(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:a(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:a(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:a(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:a(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:a(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:a(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:a(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:a(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:a(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:a(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:a(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:a(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:a(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:a(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:a(7025,1,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:a(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:a(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:a(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:a(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:a(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:a(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:a(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:a(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:a(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:a(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:a(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:a(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:a(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:a(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:a(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:a(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:a(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:a(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:a(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:a(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:a(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:a(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:a(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:a(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:a(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:a(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:a(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:a(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:a(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:a(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:a(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:a(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:a(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:a(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:a(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:a(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:a(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:a(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:a(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:a(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:a(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:a(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:a(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:a(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:a(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:a(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:a(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:a(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:a(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:a(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Report_errors_in_js_files:a(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:a(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:a(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:a(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:a(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:a(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:a(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:a(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:a(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:a(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:a(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:a(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:a(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:a(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:a(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:a(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:a(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:a(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:a(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:a(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:a(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:a(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:a(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:a(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:a(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:a(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:a(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:a(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:a(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:a(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:a(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:a(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:a(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:a(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:a(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:a(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:a(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:a(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:a(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:a(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:a(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:a(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:a(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:a(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:a(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:a(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:a(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:a(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:a(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:a(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:a(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:a(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:a(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:a(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:a(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:a(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:a(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:a(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:a(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:a(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:a(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:a(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:a(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:a(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:a(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:a(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:a(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:a(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:a(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:a(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:a(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:a(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:a(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:a(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:a(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:a(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:a(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:a(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:a(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:a(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:a(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:a(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:a(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:a(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:a(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:a(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:a(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:a(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:a(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:a(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:a(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:a(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:a(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:a(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:a(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:a(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:a(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:a(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:a(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:a(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:a(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:a(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:a(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:a(95005,3,"Extract_function_95005","Extract function"),Extract_constant:a(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:a(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:a(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:a(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:a(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:a(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:a(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:a(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:a(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:a(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:a(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:a(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:a(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:a(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:a(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:a(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:a(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:a(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:a(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:a(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:a(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:a(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:a(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:a(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:a(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:a(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:a(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:a(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:a(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:a(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:a(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:a(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:a(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:a(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:a(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:a(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:a(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:a(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:a(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:a(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:a(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:a(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:a(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:a(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:a(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:a(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:a(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:a(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:a(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:a(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:a(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:a(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:a(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:a(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:a(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:a(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:a(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:a(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:a(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:a(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:a(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:a(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:a(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:a(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:a(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:a(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:a(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:a(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:a(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:a(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:a(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:a(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:a(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:a(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:a(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:a(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:a(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:a(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:a(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:a(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:a(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:a(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:a(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:a(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:a(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:a(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:a(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:a(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:a(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:a(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:a(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:a(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:a(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:a(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:a(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:a(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:a(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:a(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:a(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:a(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:a(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:a(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:a(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:a(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:a(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:a(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:a(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:a(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:a(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:a(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:a(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:a(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:a(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:a(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:a(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:a(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:a(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:a(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:a(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:a(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:a(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:a(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:a(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:a(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:a(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:a(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:a(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:a(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:a(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:a(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:a(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:a(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:a(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:a(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:a(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:a(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:a(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:a(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:a(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:a(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:a(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:a(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:a(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:a(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:a(95154,3,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:a(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:a(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:a(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:a(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:a(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:a(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:a(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:a(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:a(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:a(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:a(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:a(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:a(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:a(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:a(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:a(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:a(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:a(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:a(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:a(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:a(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:a(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:a(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:a(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:a(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:a(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:a(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:a(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:a(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:a(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:a(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:a(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:a(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:a(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:a(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:a(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:a(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:a(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:a(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:a(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:a(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:a(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:a(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:a(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:a(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:a(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:a(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:a(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:a(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:a(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:a(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),Await_expression_cannot_be_used_inside_a_class_static_block:a(18037,1,"Await_expression_cannot_be_used_inside_a_class_static_block_18037","Await expression cannot be used inside a class static block."),For_await_loops_cannot_be_used_inside_a_class_static_block:a(18038,1,"For_await_loops_cannot_be_used_inside_a_class_static_block_18038","'For await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:a(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:a(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:a(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:a(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:a(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:a(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:a(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:a(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:a(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:a(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:a(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:a(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Non_abstract_class_0_does_not_implement_all_abstract_members_of_1:a(18052,1,"Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052","Non-abstract class '{0}' does not implement all abstract members of '{1}'"),Its_type_0_is_not_a_valid_JSX_element_type:a(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type.")}}});function At(e){return e>=80}function vT(e){return e===32||At(e)}function t_(e,t){if(e=2?t_(e,IT):t===1?t_(e,PT):t_(e,AT)}function F5(e,t){return t>=2?t_(e,OT):t===1?t_(e,NT):t_(e,DT)}function j5(e){let t=[];return e.forEach((n,i)=>{t[n]=i}),t}function an(e){return JT[e]}function Al(e){return v0.get(e)}function cm(e){let t=[],n=0,i=0;for(;n127&&mn(s)&&(t.push(i),i=n);break}}return t.push(i),t}function B5(e,t,n,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,n,i):wg(xa(e),t,n,e.text,i)}function wg(e,t,n,i,s){(t<0||t>=e.length)&&(s?t=t<0?0:t>=e.length?e.length-1:t:M.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i!==void 0?Jv(e,cm(i)):"unknown"}`));let l=e[t]+n;return s?l>e[t+1]?e[t+1]:typeof i=="string"&&l>i.length?i.length:l:(t=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function mn(e){return e===10||e===13||e===8232||e===8233}function Po(e){return e>=48&&e<=57}function tv(e){return Po(e)||e>=65&&e<=70||e>=97&&e<=102}function U5(e){return e<=1114111}function Xd(e){return e>=48&&e<=55}function q5(e,t){let n=e.charCodeAt(t);switch(n){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return t===0;default:return n>127}}function It(e,t,n,i,s){if(wa(t))return t;let l=!1;for(;;){let d=e.charCodeAt(t);switch(d){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,n)return t;l=!!s;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(i)break;if(e.charCodeAt(t+1)===47){for(t+=2;t127&&qi(d)){t++;continue}break}return t}}function Io(e,t){if(M.assert(t>=0),t===0||mn(e.charCodeAt(t-1))){let n=e.charCodeAt(t);if(t+nl=0&&n127&&qi(A)){D&&mn(A)&&(h=!0),n++;continue}break e}}return D&&(g=s(y,p,x,h,l,g)),g}function z5(e,t,n,i){return lm(!1,e,t,!1,n,i)}function W5(e,t,n,i){return lm(!1,e,t,!0,n,i)}function xT(e,t,n,i,s){return lm(!0,e,t,!1,n,i,s)}function ST(e,t,n,i,s){return lm(!0,e,t,!0,n,i,s)}function wT(e,t,n,i,s,l=[]){return l.push({kind:n,pos:e,end:t,hasTrailingNewLine:i}),l}function Go(e,t){return xT(e,t,wT,void 0,void 0)}function ET(e,t){return ST(e,t,wT,void 0,void 0)}function CT(e){let t=um.exec(e);if(t)return t[0]}function or(e,t){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&TT(e,t)}function Wa(e,t,n){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===36||e===95||(n===1?e===45||e===58:!1)||e>127&&F5(e,t)}function Ag(e,t,n){let i=ir(e,0);if(!or(i,t))return!1;for(let s=Br(i);sh,getStartPos:()=>h,getTokenEnd:()=>p,getTextPos:()=>p,getToken:()=>w,getTokenStart:()=>D,getTokenPos:()=>D,getTokenText:()=>y.substring(D,p),getTokenValue:()=>g,hasUnicodeEscape:()=>(A&1024)!==0,hasExtendedUnicodeEscape:()=>(A&8)!==0,hasPrecedingLineBreak:()=>(A&1)!==0,hasPrecedingJSDocComment:()=>(A&2)!==0,isIdentifier:()=>w===80||w>118,isReservedWord:()=>w>=83&&w<=118,isUnterminated:()=>(A&4)!==0,getCommentDirectives:()=>B,getNumericLiteralFlags:()=>A&25584,getTokenFlags:()=>A,reScanGreaterToken:vt,reScanAsteriskEqualsToken:Un,reScanSlashToken:qn,reScanTemplateToken:Zt,reScanTemplateHeadOrNoSubstitutionTemplate:zn,scanJsxIdentifier:Qn,scanJsxAttributeValue:ut,reScanJsxAttributeValue:Jt,reScanJsxToken:mt,reScanLessThanToken:mr,reScanHashToken:bt,reScanQuestionToken:cn,reScanInvalidIdentifier:dn,scanJsxToken:dt,scanJsDocToken:yr,scanJSDocCommentTextToken:ln,scan:Bn,getText:Ci,clearCommentDirectives:Ie,setText:H,setScriptTarget:be,setLanguageVariant:Ee,setOnError:de,resetTokenState:et,setTextPos:et,setInJSDocType:Qe,tryScan:hr,lookAhead:Wn,scanRange:ti};return M.isDebugging&&Object.defineProperty(oe,"__debugShowCurrentPositionInText",{get:()=>{let ee=oe.getText();return ee.slice(0,oe.getTokenFullStart())+"\u2551"+ee.slice(oe.getTokenFullStart())}}),oe;function Q(ee,Z=p,ae,Te){if(s){let Oe=p;p=Z,s(ee,ae||0,Te),p=Oe}}function W(){let ee=p,Z=!1,ae=!1,Te="";for(;;){let Oe=y.charCodeAt(p);if(Oe===95){A|=512,Z?(Z=!1,ae=!0,Te+=y.substring(ee,p)):(A|=16384,Q(ae?K.Multiple_consecutive_numeric_separators_are_not_permitted:K.Numeric_separators_are_not_allowed_here,p,1)),p++,ee=p;continue}if(Po(Oe)){Z=!0,ae=!1,p++;continue}break}return y.charCodeAt(p-1)===95&&(A|=16384,Q(K.Numeric_separators_are_not_allowed_here,p-1,1)),Te+y.substring(ee,p)}function se(){let ee=p,Z;if(y.charCodeAt(p)===48)if(p++,y.charCodeAt(p)===95)A|=16896,Q(K.Numeric_separators_are_not_allowed_here,p,1),p--,Z=W();else if(!Ze())A|=8192,Z=""+ +g;else if(!g)Z="0";else{g=""+parseInt(g,8),A|=32;let Re=w===41,Rt=(Re?"-":"")+"0o"+(+g).toString(8);return Re&&ee--,Q(K.Octal_literals_are_not_allowed_Use_the_syntax_0,ee,p-ee,Rt),{type:9,value:g}}else Z=W();let ae,Te;y.charCodeAt(p)===46&&(p++,ae=W());let Oe=p;if(y.charCodeAt(p)===69||y.charCodeAt(p)===101){p++,A|=16,(y.charCodeAt(p)===43||y.charCodeAt(p)===45)&&p++;let Re=p,Rt=W();Rt?(Te=y.substring(Oe,Re)+Rt,Oe=p):Q(K.Digit_expected)}let We;if(A&512?(We=Z,ae&&(We+="."+ae),Te&&(We+=Te)):We=y.substring(ee,Oe),A&8192)return Q(K.Decimals_with_leading_zeros_are_not_allowed,ee,Oe-ee),{type:9,value:""+ +We};if(ae!==void 0||A&16)return we(ee,ae===void 0&&!!(A&16)),{type:9,value:""+ +We};{g=We;let Re=fr();return we(ee),{type:Re,value:g}}}function we(ee,Z){if(!or(ir(y,p),e))return;let ae=p,{length:Te}=$t();Te===1&&y[ae]==="n"?Q(Z?K.A_bigint_literal_cannot_use_exponential_notation:K.A_bigint_literal_must_be_an_integer,ee,ae-ee+1):(Q(K.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,ae,Te),p=ae)}function Ze(){let ee=p,Z=!0;for(;Po(y.charCodeAt(p));)Xd(y.charCodeAt(p))||(Z=!1),p++;return g=y.substring(ee,p),Z}function Ue(ee,Z){let ae=ct(ee,!1,Z);return ae?parseInt(ae,16):-1}function rt(ee,Z){return ct(ee,!0,Z)}function ct(ee,Z,ae){let Te=[],Oe=!1,We=!1;for(;Te.length=65&&Re<=70)Re+=97-65;else if(!(Re>=48&&Re<=57||Re>=97&&Re<=102))break;Te.push(Re),p++,We=!1}return Te.length=x){ae+=y.substring(Te,p),A|=4,Q(K.Unterminated_string_literal);break}let Oe=y.charCodeAt(p);if(Oe===Z){ae+=y.substring(Te,p),p++;break}if(Oe===92&&!ee){ae+=y.substring(Te,p),ae+=ei(!0),Te=p;continue}if(mn(Oe)&&!ee){ae+=y.substring(Te,p),A|=4,Q(K.Unterminated_string_literal);break}p++}return ae}function sn(ee){let Z=y.charCodeAt(p)===96;p++;let ae=p,Te="",Oe;for(;;){if(p>=x){Te+=y.substring(ae,p),A|=4,Q(K.Unterminated_template_literal),Oe=Z?15:18;break}let We=y.charCodeAt(p);if(We===96){Te+=y.substring(ae,p),p++,Oe=Z?15:18;break}if(We===36&&p+1=x)return Q(K.Unexpected_end_of_text),"";let ae=y.charCodeAt(p);switch(p++,ae){case 48:if(p>=x||!Po(y.charCodeAt(p)))return"\0";case 49:case 50:case 51:p=x?(A|=2048,ee&&Q(K.Unexpected_end_of_text),y.substring(Z,p)):y.charCodeAt(p)!==125?(A|=2048,ee&&Q(K.Unterminated_Unicode_escape_sequence),y.substring(Z,p)):(p++,A|=8,$d(Oe)):(A|=2048,ee&&Q(K.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),y.substring(Z,p))}for(;p1114111&&(Q(K.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),ae=!0),p>=x?(Q(K.Unexpected_end_of_text),ae=!0):y.charCodeAt(p)===125?p++:(Q(K.Unterminated_Unicode_escape_sequence),ae=!0),ae?"":$d(Z)}function Pn(){if(p+5=0&&Wa(ae,e)){p+=3,A|=8,ee+=_n(),Z=p;continue}if(ae=Pn(),!(ae>=0&&Wa(ae,e)))break;A|=1024,ee+=y.substring(Z,p),ee+=$d(ae),p+=6,Z=p}else break}return ee+=y.substring(Z,p),ee}function jn(){let ee=g.length;if(ee>=2&&ee<=12){let Z=g.charCodeAt(0);if(Z>=97&&Z<=122){let ae=kT.get(g);if(ae!==void 0)return w=ae}}return w=80}function Qt(ee){let Z="",ae=!1,Te=!1;for(;;){let Oe=y.charCodeAt(p);if(Oe===95){A|=512,ae?(ae=!1,Te=!0):Q(Te?K.Multiple_consecutive_numeric_separators_are_not_permitted:K.Numeric_separators_are_not_allowed_here,p,1),p++;continue}if(ae=!0,!Po(Oe)||Oe-48>=ee)break;Z+=y[p],p++,Te=!1}return y.charCodeAt(p-1)===95&&Q(K.Numeric_separators_are_not_allowed_here,p-1,1),Z}function fr(){return y.charCodeAt(p)===110?(g+="n",A&384&&(g=qm(g)+"n"),p++,10):(g=""+(A&128?parseInt(g.slice(2),2):A&256?parseInt(g.slice(2),8):+g),9)}function Bn(){h=p,A=0;let ee=!1;for(;;){if(D=p,p>=x)return w=1;let Z=ir(y,p);if(p===0){if(Z===65533)return Q(K.File_appears_to_be_binary),p=x,w=8;if(Z===35&&Cg(y,p)){if(p=kg(y,p),t)continue;return w=6}}switch(Z){case 10:case 13:if(A|=1,t){p++;continue}else return Z===13&&p+1=0&&or(ae,e))return p+=3,A|=8,g=_n()+$t(),w=jn();let Te=Pn();return Te>=0&&or(Te,e)?(p+=6,A|=1024,g=String.fromCharCode(Te)+$t(),w=jn()):(Q(K.Invalid_character),p++,w=0);case 35:if(p!==0&&y[p+1]==="!")return Q(K.can_only_be_used_at_the_start_of_a_file),p++,w=0;let Oe=ir(y,p+1);if(Oe===92){p++;let Rt=$e();if(Rt>=0&&or(Rt,e))return p+=3,A|=8,g="#"+_n()+$t(),w=81;let Nt=Pn();if(Nt>=0&&or(Nt,e))return p+=6,A|=1024,g="#"+String.fromCharCode(Nt)+$t(),w=81;p--}return or(Oe,e)?(p++,Yt(Oe,e)):(g="#",Q(K.Invalid_character,p++,Br(Z))),w=81;default:let We=Yt(Z,e);if(We)return w=We;if(Lo(Z)){p+=Br(Z);continue}else if(mn(Z)){A|=1,p+=Br(Z);continue}let Re=Br(Z);return Q(K.Invalid_character,p,Re),p+=Re,w=0}}}function dn(){M.assert(w===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),p=D=h,A=0;let ee=ir(y,p),Z=Yt(ee,99);return Z?w=Z:(p+=Br(ee),w)}function Yt(ee,Z){let ae=ee;if(or(ae,Z)){for(p+=Br(ae);p=x)return w=1;let Z=y.charCodeAt(p);if(Z===60)return y.charCodeAt(p+1)===47?(p+=2,w=31):(p++,w=30);if(Z===123)return p++,w=19;let ae=0;for(;p0)break;qi(Z)||(ae=p)}p++}return g=y.substring(h,p),ae===-1?13:12}function Qn(){if(At(w)){for(;p=x)return w=1;for(let Z=y.charCodeAt(p);p=0&&Lo(y.charCodeAt(p-1))&&!(p+1=x)return w=1;let ee=ir(y,p);switch(p+=Br(ee),ee){case 9:case 11:case 12:case 32:for(;p=0&&or(Z,e))return p+=3,A|=8,g=_n()+$t(),w=jn();let ae=Pn();return ae>=0&&or(ae,e)?(p+=6,A|=1024,g=String.fromCharCode(ae)+$t(),w=jn()):(p++,w=0)}if(or(ee,e)){let Z=ee;for(;p=0),p=ee,h=ee,D=ee,w=0,g=void 0,A=0}function Qe(ee){G+=ee?1:-1}}function Br(e){return e>=65536?2:1}function V5(e){if(M.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return String.fromCharCode(t,n)}function $d(e){return RT(e)}var tl,kT,v0,AT,DT,PT,NT,IT,OT,MT,LT,JT,nl,um,ir,RT,H5=Ht({"src/compiler/scanner.ts"(){"use strict";En(),tl={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:162,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:160,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:163,out:147,readonly:148,require:149,global:161,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:164},kT=new Map(Object.entries(tl)),v0=new Map(Object.entries({...tl,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),AT=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],DT=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],PT=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],NT=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],IT=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],OT=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],MT=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,LT=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,JT=j5(v0),nl=7,um=/^#!.*/,ir=String.prototype.codePointAt?(e,t)=>e.codePointAt(t):function(t,n){let i=t.length;if(n<0||n>=i)return;let s=t.charCodeAt(n);if(s>=55296&&s<=56319&&i>n+1){let l=t.charCodeAt(n+1);if(l>=56320&&l<=57343)return(s-55296)*1024+l-56320+65536}return s},RT=String.fromCodePoint?e=>String.fromCodePoint(e):V5}});function K5(e){return is(e)||y_(e)}function G5(e){return Uv(e,q2)}function FT(e){switch(Um(e)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function tn(e){return e.start+e.length}function jT(e){return e.length===0}function X5(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function Q5(e,t){return t.start>=e.start&&tn(t)<=tn(e)}function Y5(e,t){return BT(e,t)!==void 0}function BT(e,t){let n=UT(e,t);return n&&n.length===0?void 0:n}function Z5(e,t){return Dg(e.start,e.length,t.start,t.length)}function ek(e,t,n){return Dg(e.start,e.length,t,n)}function Dg(e,t,n,i){let s=e+t,l=n+i;return n<=s&&l>=e}function tk(e,t){return t<=tn(e)&&t>=e.start}function UT(e,t){let n=Math.max(e.start,t.start),i=Math.min(tn(e),tn(t));return n<=i?zi(n,i):void 0}function v_(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function zi(e,t){return v_(e,t-e)}function Ks(e){return v_(e.span.start,e.newLength)}function qT(e){return jT(e.span)&&e.newLength===0}function pm(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function nk(e){if(e.length===0)return Gg;if(e.length===1)return e[0];let t=e[0],n=t.span.start,i=tn(t.span),s=n+t.newLength;for(let l=1;lt.flags)}function ak(e,t,n){let i=e.toLowerCase(),s=/^([a-z]+)([_\-]([a-z]+))?$/.exec(i);if(!s){n&&n.push(al(K.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));return}let l=s[1],d=s[3];ns(Xg,i)&&!y(l,d,n)&&y(l,void 0,n),Yv(e);function y(p,x,h){let D=sr(t.getExecutingFilePath()),w=Hi(D),g=yn(w,p);if(x&&(g=g+"-"+x),g=t.resolvePath(yn(g,"diagnosticMessages.generated.json")),!t.fileExists(g))return!1;let A="";try{A=t.readFile(g)}catch{return h&&h.push(al(K.Unable_to_open_file_0,g)),!1}try{X3(JSON.parse(A))}catch{return h&&h.push(al(K.Corrupted_locale_file_0,g)),!1}return!0}}function Dl(e,t){if(e)for(;e.original!==void 0;)e=e.original;return!e||!t||t(e)?e:void 0}function Xr(e,t){for(;e;){let n=t(e);if(n==="quit")return;if(n)return e;e=e.parent}}function dl(e){return(e.flags&8)===0}function Pl(e,t){if(e===void 0||dl(e))return e;for(e=e.original;e;){if(dl(e))return!t||t(e)?e:void 0;e=e.original}}function Ur(e){return e.length>=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function Xo(e){let t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function Ot(e){return Xo(e.escapedText)}function KT(e){let t=Al(e.escapedText);return t?kr(t,bi):void 0}function Of(e){return e.valueDeclaration&&xx(e.valueDeclaration)?Ot(e.valueDeclaration.name):Xo(e.escapedName)}function GT(e){let t=e.parent.parent;if(t){if($o(t))return Wd(t);switch(t.kind){case 242:if(t.declarationList&&t.declarationList.declarations[0])return Wd(t.declarationList.declarations[0]);break;case 243:let n=t.expression;switch(n.kind===225&&n.operatorToken.kind===64&&(n=n.left),n.kind){case 210:return n.name;case 211:let i=n.argumentExpression;if(Ce(i))return i}break;case 216:return Wd(t.expression);case 255:{if($o(t.statement)||wm(t.statement))return Wd(t.statement);break}}}}function Wd(e){let t=Nl(e);return t&&Ce(t)?t:void 0}function XT(e,t){return!!(mm(e)&&Ce(e.name)&&Ot(e.name)===Ot(t)||_s(e)&&ft(e.declarationList.declarations,n=>XT(n,t)))}function $T(e){return e.name||GT(e)}function mm(e){return!!e.name}function ym(e){switch(e.kind){case 80:return e;case 354:case 347:{let{name:n}=e;if(n.kind===165)return n.right;break}case 212:case 225:{let n=e;switch(Ca(n)){case 1:case 4:case 5:case 3:return Im(n.left);case 7:case 8:case 9:return n.arguments[1];default:return}}case 352:return $T(e);case 346:return GT(e);case 276:{let{expression:n}=e;return Ce(n)?n:void 0}case 211:let t=e;if(y2(t))return t.argumentExpression}return e.name}function Nl(e){if(e!==void 0)return ym(e)||(Km(e)||Gm(e)||$m(e)?QT(e):void 0)}function QT(e){if(e.parent){if(us(e.parent)||$l(e.parent))return e.parent.name;if(St(e.parent)&&e===e.parent.right){if(Ce(e.parent.left))return e.parent.left;if(Zo(e.parent.left))return Im(e.parent.left)}else if(Ei(e.parent)&&Ce(e.parent.name))return e.parent.name}else return}function ok(e){if(gl(e))return Gn(e.modifiers,zl)}function Mf(e){if(gn(e,126975))return Gn(e.modifiers,Fg)}function YT(e,t){if(e.name)if(Ce(e.name)){let n=e.name.escapedText;return o_(e.parent,t).filter(i=>p_(i)&&Ce(i.name)&&i.name.escapedText===n)}else{let n=e.parent.parameters.indexOf(e);M.assert(n>-1,"Parameters should always be in their parents' parameter list");let i=o_(e.parent,t).filter(p_);if(nes(i)&&i.typeParameters.some(s=>s.name.escapedText===n))}function tx(e){return ex(e,!1)}function nx(e){return ex(e,!0)}function sk(e){return!!nn(e,p_)}function rx(e){return nn(e,t1)}function ix(e){return dx(e,q8)}function _k(e){return nn(e,F8)}function ck(e){return nn(e,Mb)}function ax(e){return nn(e,Mb,!0)}function lk(e){return nn(e,Lb)}function ox(e){return nn(e,Lb,!0)}function uk(e){return nn(e,Jb)}function sx(e){return nn(e,Jb,!0)}function pk(e){return nn(e,Rb)}function _x(e){return nn(e,Rb,!0)}function cx(e){return nn(e,j8,!0)}function dk(e){return nn(e,jb)}function lx(e){return nn(e,jb,!0)}function fk(e){return nn(e,B8)}function mk(e){return nn(e,U8)}function ux(e){return nn(e,Bb)}function yk(e){return nn(e,es)}function Ng(e){return nn(e,Ub)}function gm(e){let t=nn(e,ru);if(t&&t.typeExpression&&t.typeExpression.type)return t}function bm(e){let t=nn(e,ru);return!t&&io(e)&&(t=$n(hm(e),n=>!!n.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function px(e){let t=ux(e);if(t&&t.typeExpression)return t.typeExpression.type;let n=gm(e);if(n&&n.typeExpression){let i=n.typeExpression.type;if(Hm(i)){let s=$n(i.members,pb);return s&&s.type}if(Gl(i)||e1(i))return i.type}}function o_(e,t){var n;if(!Om(e))return Xe;let i=(n=e.jsDoc)==null?void 0:n.jsDocCache;if(i===void 0||t){let s=L4(e,t);M.assert(s.length<2||s[0]!==s[1]),i=Wo(s,l=>ps(l)?l.tags:l),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function Il(e){return o_(e,!1)}function hk(e){return o_(e,!0)}function nn(e,t,n){return $n(o_(e,n),t)}function dx(e,t){return Il(e).filter(t)}function gk(e,t){return Il(e).filter(n=>n.kind===t)}function bk(e){return typeof e=="string"?e:e==null?void 0:e.map(t=>t.kind===327?t.text:vk(t)).join("")}function vk(e){let t=e.kind===330?"link":e.kind===331?"linkcode":"linkplain",n=e.name?hi(e.name):"",i=e.name&&e.text.startsWith("://")?"":" ";return`{@${t} ${n}${i}${e.text}}`}function Tk(e){if(nu(e)){if(Fb(e.parent)){let t=T2(e.parent);if(t&&Ha(t.tags))return Wo(t.tags,n=>es(n)?n.typeParameters:void 0)}return Xe}if(Rl(e))return M.assert(e.parent.kind===326),Wo(e.parent.tags,t=>es(t)?t.typeParameters:void 0);if(e.typeParameters||n7(e)&&e.typeParameters)return e.typeParameters;if(Vt(e)){let t=h3(e);if(t.length)return t;let n=bm(e);if(n&&Gl(n)&&n.typeParameters)return n.typeParameters}return Xe}function xk(e){return e.constraint?e.constraint:es(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function $a(e){return e.kind===80||e.kind===81}function Sk(e){return e.kind===177||e.kind===176}function fx(e){return Rn(e)&&!!(e.flags&32)}function mx(e){return ka(e)&&!!(e.flags&32)}function T0(e){return O_(e)&&!!(e.flags&32)}function Ig(e){let t=e.kind;return!!(e.flags&32)&&(t===210||t===211||t===212||t===234)}function Og(e){return Ig(e)&&!qo(e)&&!!e.questionDotToken}function wk(e){return Og(e.parent)&&e.parent.expression===e}function Ek(e){return!Ig(e.parent)||Og(e.parent)||e!==e.parent.expression}function Ck(e){return e.kind===225&&e.operatorToken.kind===61}function yx(e){return I_(e)&&Ce(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function vm(e){return ds(e,8)}function hx(e){return qo(e)&&!!(e.flags&32)}function kk(e){return e.kind===251||e.kind===250}function Ak(e){return e.kind===279||e.kind===278}function gx(e){switch(e.kind){case 308:case 309:return!0;default:return!1}}function Dk(e){return gx(e)||e.kind===306||e.kind===310}function Mg(e){return e.kind===354||e.kind===347}function Pk(e){return Ol(e.kind)}function Ol(e){return e>=165}function bx(e){return e>=0&&e<=164}function Nk(e){return bx(e.kind)}function ua(e){return Xn(e,"pos")&&Xn(e,"end")}function Lg(e){return 9<=e&&e<=15}function Jg(e){return Lg(e.kind)}function Ik(e){switch(e.kind){case 209:case 208:case 14:case 217:case 230:return!0}return!1}function fl(e){return 15<=e&&e<=18}function Ok(e){return fl(e.kind)}function Mk(e){let t=e.kind;return t===17||t===18}function Lk(e){return P8(e)||I8(e)}function vx(e){switch(e.kind){case 275:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 273:return e.parent.isTypeOnly;case 272:case 270:return e.isTypeOnly}return!1}function Tx(e){switch(e.kind){case 280:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 277:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 279:return e.parent.isTypeOnly}return!1}function Jk(e){return vx(e)||Tx(e)}function Rk(e){return cr(e)||Ce(e)}function Fk(e){return e.kind===11||fl(e.kind)}function ma(e){var t;return Ce(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function Rg(e){var t;return Ln(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function xx(e){return(os(e)||Bg(e))&&Ln(e.name)}function jk(e){return Rn(e)&&Ln(e.name)}function yi(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 163:return!0}return!1}function Sx(e){return!!(j2(e)&16476)}function wx(e){return Sx(e)||e===126||e===163||e===129}function Fg(e){return yi(e.kind)}function Bk(e){let t=e.kind;return t===165||t===80}function Ml(e){let t=e.kind;return t===80||t===81||t===11||t===9||t===166}function Uk(e){let t=e.kind;return t===80||t===205||t===206}function Wi(e){return!!e&&jg(e.kind)}function Tm(e){return!!e&&(jg(e.kind)||Hl(e))}function Ex(e){return e&&Cx(e.kind)}function qk(e){return e.kind===112||e.kind===97}function Cx(e){switch(e){case 261:case 173:case 175:case 176:case 177:case 217:case 218:return!0;default:return!1}}function jg(e){switch(e){case 172:case 178:case 329:case 179:case 180:case 183:case 323:case 184:return!0;default:return Cx(e)}}function zk(e){return $r(e)||D8(e)||Yl(e)&&Wi(e.parent)}function Qa(e){let t=e.kind;return t===175||t===171||t===173||t===176||t===177||t===180||t===174||t===239}function Hr(e){return e&&(e.kind===262||e.kind===230)}function xm(e){return e&&(e.kind===176||e.kind===177)}function kx(e){return os(e)&&S3(e)}function Bg(e){switch(e.kind){case 173:case 176:case 177:return!0;default:return!1}}function Wk(e){switch(e.kind){case 173:case 176:case 177:case 171:return!0;default:return!1}}function Qd(e){return Fg(e)||zl(e)}function Ug(e){let t=e.kind;return t===179||t===178||t===170||t===172||t===180||t===176||t===177}function Vk(e){return Ug(e)||Qa(e)}function qg(e){let t=e.kind;return t===302||t===303||t===304||t===173||t===176||t===177}function x0(e){return K3(e.kind)}function Hk(e){switch(e.kind){case 183:case 184:return!0}return!1}function Sm(e){if(e){let t=e.kind;return t===206||t===205}return!1}function Ax(e){let t=e.kind;return t===208||t===209}function Kk(e){let t=e.kind;return t===207||t===231}function zg(e){switch(e.kind){case 259:case 168:case 207:return!0}return!1}function Gk(e){return Ei(e)||io(e)||Px(e)||Ix(e)}function Xk(e){return Dx(e)||Nx(e)}function Dx(e){switch(e.kind){case 205:case 209:return!0}return!1}function Px(e){switch(e.kind){case 207:case 302:case 303:case 304:return!0}return!1}function Nx(e){switch(e.kind){case 206:case 208:return!0}return!1}function Ix(e){switch(e.kind){case 207:case 231:case 229:case 208:case 209:case 80:case 210:case 211:return!0}return Sa(e,!0)}function $k(e){let t=e.kind;return t===210||t===165||t===204}function Qk(e){let t=e.kind;return t===210||t===165}function Yk(e){switch(e.kind){case 285:case 284:case 212:case 213:case 214:case 169:return!0;default:return!1}}function Zk(e){return e.kind===212||e.kind===213}function eA(e){let t=e.kind;return t===227||t===15}function jo(e){return Ox(vm(e).kind)}function Ox(e){switch(e){case 210:case 211:case 213:case 212:case 283:case 284:case 287:case 214:case 208:case 216:case 209:case 230:case 217:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 227:case 97:case 106:case 110:case 112:case 108:case 234:case 232:case 235:case 102:case 281:return!0;default:return!1}}function Mx(e){return Lx(vm(e).kind)}function Lx(e){switch(e){case 223:case 224:case 219:case 220:case 221:case 222:case 215:return!0;default:return Ox(e)}}function tA(e){switch(e.kind){case 224:return!0;case 223:return e.operator===46||e.operator===47;default:return!1}}function nA(e){switch(e.kind){case 106:case 112:case 97:case 223:return!0;default:return Jg(e)}}function wm(e){return rA(vm(e).kind)}function rA(e){switch(e){case 226:case 228:case 218:case 225:case 229:case 233:case 231:case 360:case 359:case 237:return!0;default:return Lx(e)}}function iA(e){let t=e.kind;return t===215||t===233}function aA(e){return Pb(e)||C8(e)}function Jx(e,t){switch(e.kind){case 247:case 248:case 249:case 245:case 246:return!0;case 255:return t&&Jx(e.statement,t)}return!1}function Rx(e){return ls(e)||L_(e)}function oA(e){return ft(e,Rx)}function sA(e){return!Dm(e)&&!ls(e)&&!gn(e,1)&&!km(e)}function _A(e){return Dm(e)||ls(e)||gn(e,1)}function cA(e){return e.kind===248||e.kind===249}function lA(e){return Yl(e)||wm(e)}function uA(e){return Yl(e)}function pA(e){return Sb(e)||wm(e)}function dA(e){let t=e.kind;return t===267||t===266||t===80}function fA(e){let t=e.kind;return t===267||t===266}function mA(e){let t=e.kind;return t===80||t===266}function yA(e){let t=e.kind;return t===274||t===273}function hA(e){return e.kind===266||e.kind===265}function gA(e){switch(e.kind){case 218:case 225:case 207:case 212:case 178:case 262:case 230:case 174:case 175:case 184:case 179:case 211:case 265:case 305:case 276:case 277:case 280:case 261:case 217:case 183:case 176:case 80:case 272:case 270:case 275:case 180:case 263:case 344:case 346:case 323:case 347:case 354:case 329:case 352:case 328:case 290:case 291:case 292:case 199:case 173:case 172:case 266:case 201:case 279:case 269:case 273:case 213:case 15:case 9:case 209:case 168:case 210:case 302:case 171:case 170:case 177:case 303:case 311:case 304:case 11:case 264:case 186:case 167:case 259:return!0;default:return!1}}function bA(e){switch(e.kind){case 218:case 240:case 178:case 268:case 298:case 174:case 193:case 175:case 184:case 179:case 247:case 248:case 249:case 261:case 217:case 183:case 176:case 180:case 344:case 346:case 323:case 329:case 352:case 199:case 173:case 172:case 266:case 177:case 311:case 264:return!0;default:return!1}}function vA(e){return e===218||e===207||e===262||e===230||e===174||e===175||e===265||e===305||e===280||e===261||e===217||e===176||e===272||e===270||e===275||e===263||e===290||e===173||e===172||e===266||e===269||e===273||e===279||e===168||e===302||e===171||e===170||e===177||e===303||e===264||e===167||e===259||e===352||e===344||e===354}function Wg(e){return e===261||e===281||e===262||e===263||e===264||e===265||e===266||e===271||e===270||e===277||e===276||e===269}function Vg(e){return e===251||e===250||e===258||e===245||e===243||e===241||e===248||e===249||e===247||e===244||e===255||e===252||e===254||e===256||e===257||e===242||e===246||e===253||e===358}function $o(e){return e.kind===167?e.parent&&e.parent.kind!==351||Vt(e):vA(e.kind)}function TA(e){return Wg(e.kind)}function xA(e){return Vg(e.kind)}function Fx(e){let t=e.kind;return Vg(t)||Wg(t)||SA(e)}function SA(e){return e.kind!==240||e.parent!==void 0&&(e.parent.kind===257||e.parent.kind===298)?!1:!p4(e)}function jx(e){let t=e.kind;return Vg(t)||Wg(t)||t===240}function wA(e){let t=e.kind;return t===282||t===165||t===80}function EA(e){let t=e.kind;return t===110||t===80||t===210||t===294}function Bx(e){let t=e.kind;return t===283||t===293||t===284||t===12||t===287}function CA(e){let t=e.kind;return t===290||t===292}function kA(e){let t=e.kind;return t===11||t===293}function Ux(e){let t=e.kind;return t===285||t===284}function AA(e){let t=e.kind;return t===295||t===296}function Hg(e){return e.kind>=315&&e.kind<=356}function qx(e){return e.kind===326||e.kind===325||e.kind===327||rl(e)||Kg(e)||Ob(e)||nu(e)}function Kg(e){return e.kind>=333&&e.kind<=356}function Vc(e){return e.kind===177}function Hc(e){return e.kind===176}function Ui(e){if(!Om(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function DA(e){return!!e.type}function zx(e){return!!e.initializer}function PA(e){switch(e.kind){case 259:case 168:case 207:case 171:case 302:case 305:return!0;default:return!1}}function S0(e){return e.kind===290||e.kind===292||qg(e)}function NA(e){return e.kind===182||e.kind===232}function IA(e){let t=w0;for(let n of e){if(!n.length)continue;let i=0;for(;in.kind===t)}function RA(e){let t=new Map;if(e)for(let n of e)t.set(n.escapedName,n);return t}function E0(e){return(e.flags&33554432)!==0}function FA(){var e="";let t=n=>e+=n;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(n,i)=>t(n),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&qi(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:Pr,decreaseIndent:Pr,clear:()=>e=""}}function jA(e,t){return e.configFilePath!==t.configFilePath||Vx(e,t)}function Vx(e,t){return T_(e,t,moduleResolutionOptionDeclarations)}function BA(e,t){return T_(e,t,optionsAffectingProgramStructure)}function T_(e,t,n){return e!==t&&n.some(i=>!Y2(U0(e,i),U0(t,i)))}function UA(e,t){for(;;){let n=t(e);if(n==="quit")return;if(n!==void 0)return n;if($r(e))return;e=e.parent}}function qA(e,t){let n=e.entries();for(let[i,s]of n){let l=t(s,i);if(l)return l}}function zA(e,t){let n=e.keys();for(let i of n){let s=t(i);if(s)return s}}function WA(e,t){e.forEach((n,i)=>{t.set(i,n)})}function VA(e){let t=$s.getText();try{return e($s),$s.getText()}finally{$s.clear(),$s.writeKeyword(t)}}function Em(e){return e.end-e.pos}function HA(e,t,n){var i,s;return(s=(i=e==null?void 0:e.resolvedModules)==null?void 0:i.get(t,n))==null?void 0:s.resolvedModule}function KA(e,t,n,i){e.resolvedModules||(e.resolvedModules=createModeAwareCache()),e.resolvedModules.set(t,i,n)}function GA(e,t,n,i){e.resolvedTypeReferenceDirectiveNames||(e.resolvedTypeReferenceDirectiveNames=createModeAwareCache()),e.resolvedTypeReferenceDirectiveNames.set(t,i,n)}function XA(e,t,n){var i,s;return(s=(i=e==null?void 0:e.resolvedTypeReferenceDirectiveNames)==null?void 0:i.get(t,n))==null?void 0:s.resolvedTypeReferenceDirective}function $A(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function QA(e,t){return e===t||e.resolvedModule===t.resolvedModule||!!e.resolvedModule&&!!t.resolvedModule&&e.resolvedModule.isExternalLibraryImport===t.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===t.resolvedModule.extension&&e.resolvedModule.resolvedFileName===t.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===t.resolvedModule.originalPath&&ZA(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.node10Result===t.node10Result}function YA(e,t,n,i,s){var l,d;let y=(d=(l=e.resolvedModules)==null?void 0:l.get(n,i))==null?void 0:d.node10Result,p=y?Kc(void 0,K.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,y,y.indexOf(nodeModulesPathPart+"@types/")>-1?`@types/${mangleScopedPackageName(s)}`:s):t.typesPackageExists(s)?Kc(void 0,K.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,s,mangleScopedPackageName(s)):t.packageBundlesTypes(s)?Kc(void 0,K.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,s,n):Kc(void 0,K.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,n,mangleScopedPackageName(s));return p&&(p.repopulateInfo=()=>({moduleReference:n,mode:i,packageName:s===n?void 0:s})),p}function ZA(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version}function Hx({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function eD(e){return`${Hx(e)}@${e.version}`}function tD(e,t){return e===t||e.resolvedTypeReferenceDirective===t.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!t.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===t.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary==!!t.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===t.resolvedTypeReferenceDirective.originalPath}function nD(e,t,n,i,s,l){M.assert(e.length===n.length);for(let d=0;d=0),xa(t)[e]}function _D(e){let t=Kr(e),n=Xa(t,e.pos);return`${t.fileName}(${n.line+1},${n.character+1})`}function Kx(e,t){M.assert(e>=0);let n=xa(t),i=e,s=t.text;if(i+1===n.length)return s.length-1;{let l=n[i],d=n[i+1]-1;for(M.assert(mn(s.charCodeAt(d)));l<=d&&mn(s.charCodeAt(d));)d--;return d}}function Gx(e,t,n){return!(n&&n(t))&&!e.identifiers.has(t)}function Bi(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function yl(e){return!Bi(e)}function cD(e,t){return Jo(e)?t===e.expression:Hl(e)?t===e.modifiers:Wl(e)?t===e.initializer:os(e)?t===e.questionToken&&kx(e):us(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||Ws(e.modifiers,t,Qd):tu(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||Ws(e.modifiers,t,Qd):Vl(e)?t===e.exclamationToken:P_(e)?t===e.typeParameters||t===e.type||Ws(e.typeParameters,t,Jo):Kl(e)?t===e.typeParameters||Ws(e.typeParameters,t,Jo):N_(e)?t===e.typeParameters||t===e.type||Ws(e.typeParameters,t,Jo):Cb(e)?t===e.modifiers||Ws(e.modifiers,t,Qd):!1}function Ws(e,t,n){return!e||Wt(t)||!n(t)?!1:ns(e,t)}function Xx(e,t,n){if(t===void 0||t.length===0)return e;let i=0;for(;i[`${Xa(e,d.range.end).line}`,d])),i=new Map;return{getUnusedExpectations:s,markUsed:l};function s(){return tm(n.entries()).filter(([d,y])=>y.type===0&&!i.get(d)).map(([d,y])=>y)}function l(d){return n.has(`${d}`)?(i.set(`${d}`,!0),!0):!1}}function Qo(e,t,n){return Bi(e)?e.pos:Hg(e)||e.kind===12?It((t||Kr(e)).text,e.pos,!1,!0):n&&Ui(e)?Qo(e.jsDoc[0],t):e.kind===357&&e._children.length>0?Qo(e._children[0],t,n):It((t||Kr(e)).text,e.pos,!1,!1,v4(e))}function yD(e,t){let n=!Bi(e)&&R_(e)?sg(e.modifiers,zl):void 0;return n?It((t||Kr(e)).text,n.end):Qo(e,t)}function Yo(e,t,n=!1){return Ys(e.text,t,n)}function hD(e){return!!Xr(e,J8)}function Zx(e){return!!(L_(e)&&e.exportClause&&Ym(e.exportClause)&&e.exportClause.name.escapedText==="default")}function Ys(e,t,n=!1){if(Bi(t))return"";let i=e.substring(n?t.pos:It(e,t.pos),t.end);return hD(t)&&(i=i.split(/\r\n|\n|\r/).map(s=>ll(s.replace(/^\s*\*/,""))).join(` -`)),i}function Cm(e,t=!1){return Yo(Kr(e),e,t)}function gD(e){return e.pos}function bD(e,t){return El(e,t,gD,wn)}function Vr(e){let t=e.emitNode;return t&&t.flags||0}function vD(e){let t=e.emitNode;return t&&t.internalFlags||0}function TD(e,t,n){if(t&&xD(e,n))return Yo(t,e);switch(e.kind){case 11:{let i=n&2?o3:n&1||Vr(e)&16777216?Ff:jf;return e.singleQuote?"'"+i(e.text,39)+"'":'"'+i(e.text,34)+'"'}case 15:case 16:case 17:case 18:{let i=n&1||Vr(e)&16777216?Ff:jf,s=e.rawText??ZN(i(e.text,96));switch(e.kind){case 15:return"`"+s+"`";case 16:return"`"+s+"${";case 17:return"}"+s+"${";case 18:return"}"+s+"`"}break}case 9:case 10:return e.text;case 14:return n&4&&e.isUnterminated?e.text+(e.text.charCodeAt(e.text.length-1)===92?" /":"/"):e.text}return M.fail(`Literal kind '${e.kind}' not accounted for.`)}function xD(e,t){if(pa(e)||!e.parent||t&4&&e.isUnterminated)return!1;if(ro(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(t&8)}return!cb(e)}function SD(e){return m_(e)?'"'+jf(e)+'"':""+e}function wD(e){return h_(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function ED(e){return(fm(e)&3)!==0||e4(e)}function e4(e){let t=Lm(e);return t.kind===259&&t.parent.kind===298}function km(e){return Gi(e)&&(e.name.kind===11||Am(e))}function CD(e){return Gi(e)&&e.name.kind===11}function kD(e){return Gi(e)&&cr(e.name)}function t4(e){return Gi(e)||Ce(e)}function AD(e){return DD(e.valueDeclaration)}function DD(e){return!!e&&e.kind===266&&!e.body}function PD(e){return e.kind===311||e.kind===266||Tm(e)}function Am(e){return!!(e.flags&1024)}function $g(e){return km(e)&&n4(e)}function n4(e){switch(e.parent.kind){case 311:return ts(e.parent);case 267:return km(e.parent.parent)&&$r(e.parent.parent.parent)&&!ts(e.parent.parent.parent)}return!1}function r4(e){var t;return(t=e.declarations)==null?void 0:t.find(n=>!$g(n)&&!(Gi(n)&&Am(n)))}function ND(e){return e===1||e===100||e===199}function Qg(e,t){return ts(e)||ND(Gr(t))&&!!e.commonJsModuleIndicator}function ID(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:K2(t,"alwaysStrict")||G8(e.statements)?!0:ts(e)||z2(t)?Gr(t)>=5?!0:!t.noImplicitUseStrict:!1}function OD(e){return!!(e.flags&16777216)||gn(e,2)}function i4(e,t){switch(e.kind){case 311:case 268:case 298:case 266:case 247:case 248:case 249:case 175:case 173:case 176:case 177:case 261:case 217:case 218:case 171:case 174:return!0;case 240:return!Tm(t)}return!1}function MD(e){switch(M.type(e),e.kind){case 344:case 352:case 329:return!0;default:return a4(e)}}function a4(e){switch(M.type(e),e.kind){case 178:case 179:case 172:case 180:case 183:case 184:case 323:case 262:case 230:case 263:case 264:case 351:case 261:case 173:case 175:case 176:case 177:case 217:case 218:return!0;default:return!1}}function Yg(e){switch(e.kind){case 271:case 270:return!0;default:return!1}}function LD(e){return Yg(e)||Nm(e)}function JD(e){switch(e.kind){case 271:case 270:case 242:case 262:case 261:case 266:case 264:case 263:case 265:return!0;default:return!1}}function RD(e){return Dm(e)||Gi(e)||Xl(e)||i2(e)}function Dm(e){return Yg(e)||L_(e)}function C0(e){return Xr(e.parent,t=>i4(t,t.parent))}function FD(e,t){let n=C0(e);for(;n;)t(n),n=C0(n)}function o4(e){return!e||Em(e)===0?"(Missing)":Cm(e)}function jD(e){return e.declaration?o4(e.declaration.parameters[0].name):void 0}function BD(e){return e.kind===166&&!Ki(e.expression)}function Zg(e){var t;switch(e.kind){case 80:case 81:return(t=e.emitNode)!=null&&t.autoGenerate?void 0:e.escapedText;case 11:case 9:case 15:return Ur(e.text);case 166:return Ki(e.expression)?Ur(e.expression.text):void 0;case 294:return Ul(e);default:return M.assertNever(e)}}function UD(e){return M.checkDefined(Zg(e))}function hi(e){switch(e.kind){case 110:return"this";case 81:case 80:return Em(e)===0?Ot(e):Cm(e);case 165:return hi(e.left)+"."+hi(e.right);case 210:return Ce(e.name)||Ln(e.name)?hi(e.expression)+"."+hi(e.name):M.assertNever(e.name);case 317:return hi(e.left)+hi(e.right);case 294:return hi(e.namespace)+":"+hi(e.name);default:return M.assertNever(e)}}function qD(e,t,...n){let i=Kr(e);return s4(i,e,t,...n)}function zD(e,t,n,...i){let s=It(e.text,t.pos);return U2(e,s,t.end-s,n,...i)}function s4(e,t,n,...i){let s=n2(e,t);return U2(e,s.start,s.length,n,...i)}function WD(e,t,n,i){let s=n2(e,t);return t2(e,s.start,s.length,n,i)}function VD(e,t,n,i){let s=It(e.text,t.pos);return t2(e,s,t.end-s,n,i)}function e2(e,t,n){M.assertGreaterThanOrEqual(t,0),M.assertGreaterThanOrEqual(n,0),e&&(M.assertLessThanOrEqual(t,e.text.length),M.assertLessThanOrEqual(t+n,e.text.length))}function t2(e,t,n,i,s){return e2(e,t,n),{file:e,start:t,length:n,code:i.code,category:i.category,messageText:i.next?i:i.messageText,relatedInformation:s}}function HD(e,t,n){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:n}}function KD(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function GD(e,t,n){return{file:e,start:t.pos,length:t.end-t.pos,code:n.code,category:n.category,messageText:n.message}}function Gs(e,t){let n=as(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);n.scan();let i=n.getTokenStart();return zi(i,n.getTokenEnd())}function XD(e,t){let n=as(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),n.getToken()}function $D(e,t){let n=It(e.text,t.pos);if(t.body&&t.body.kind===240){let{line:i}=Xa(e,t.body.pos),{line:s}=Xa(e,t.body.end);if(i0?t.statements[0].pos:t.end;return zi(l,d)}case 252:case 228:{let l=It(e.text,t.pos);return Gs(e,l)}case 237:{let l=It(e.text,t.expression.end);return Gs(e,l)}case 356:{let l=It(e.text,t.tagName.pos);return Gs(e,l)}}if(n===void 0)return Gs(e,t.pos);M.assert(!ps(n));let i=Bi(n),s=i||Hf(t)?n.pos:It(e.text,n.pos);return i?(M.assert(s===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),M.assert(s===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(M.assert(s>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),M.assert(s<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),zi(s,n.end)}function QD(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function r2(e){return e.scriptKind===6}function YD(e){return!!(dm(e)&2048)}function ZD(e){return!!(dm(e)&64&&!zT(e,e.parent))}function _4(e){return!!(fm(e)&2)}function eP(e){return!!(fm(e)&1)}function tP(e){return e.kind===212&&e.expression.kind===108}function i2(e){return e.kind===212&&e.expression.kind===102}function k0(e){return xb(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function c4(e){return Xl(e)&&gb(e.argument)&&cr(e.argument.literal)}function ha(e){return e.kind===243&&e.expression.kind===11}function Pm(e){return!!(Vr(e)&2097152)}function A0(e){return Pm(e)&&cs(e)}function nP(e){return Ce(e.name)&&!e.initializer}function D0(e){return Pm(e)&&_s(e)&&eo(e.declarationList.declarations,nP)}function rP(e,t){return e.kind!==12?Go(t.text,e.pos):void 0}function l4(e,t){let n=e.kind===168||e.kind===167||e.kind===217||e.kind===218||e.kind===216||e.kind===259||e.kind===280?d_(ET(t,e.pos),Go(t,e.pos)):Go(t,e.pos);return Gn(n,i=>t.charCodeAt(i.pos+1)===42&&t.charCodeAt(i.pos+2)===42&&t.charCodeAt(i.pos+3)!==47)}function a2(e){if(181<=e.kind&&e.kind<=204)return!0;switch(e.kind){case 133:case 159:case 150:case 162:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return e.parent.kind!==221;case 232:return Sl(e.parent)&&!R0(e);case 167:return e.parent.kind===199||e.parent.kind===194;case 80:(e.parent.kind===165&&e.parent.right===e||e.parent.kind===210&&e.parent.name===e)&&(e=e.parent),M.assert(e.kind===80||e.kind===165||e.kind===210,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 165:case 210:case 110:{let{parent:t}=e;if(t.kind===185)return!1;if(t.kind===204)return!t.isTypeOf;if(181<=t.kind&&t.kind<=204)return!0;switch(t.kind){case 232:return Sl(t.parent)&&!R0(t);case 167:return e===t.constraint;case 351:return e===t.constraint;case 171:case 170:case 168:case 259:return e===t.type;case 261:case 217:case 218:case 175:case 173:case 172:case 176:case 177:return e===t.type;case 178:case 179:case 180:return e===t.type;case 215:return e===t.type;case 212:case 213:case 214:return ns(t.typeArguments,e)}}}return!1}function iP(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function aP(e,t){return n(e);function n(i){switch(i.kind){case 252:return t(i);case 268:case 240:case 244:case 245:case 246:case 247:case 248:case 249:case 253:case 254:case 295:case 296:case 255:case 257:case 298:return qt(i,n)}}}function oP(e,t){return n(e);function n(i){switch(i.kind){case 228:t(i);let s=i.expression;s&&n(s);return;case 265:case 263:case 266:case 264:return;default:if(Wi(i)){if(i.name&&i.name.kind===166){n(i.name.expression);return}}else a2(i)||qt(i,n)}}}function sP(e){return e&&e.kind===187?e.elementType:e&&e.kind===182?Zf(e.typeArguments):void 0}function _P(e){switch(e.kind){case 263:case 262:case 230:case 186:return e.members;case 209:return e.properties}}function o2(e){if(e)switch(e.kind){case 207:case 305:case 168:case 302:case 171:case 170:case 303:case 259:return!0}return!1}function cP(e){return o2(e)||xm(e)}function u4(e){return e.parent.kind===260&&e.parent.parent.kind===242}function lP(e){return Vt(e)?ao(e.parent)&&St(e.parent.parent)&&Ca(e.parent.parent)===2||s2(e.parent):!1}function s2(e){return Vt(e)?St(e)&&Ca(e)===1:!1}function uP(e){return(Ei(e)?_4(e)&&Ce(e.name)&&u4(e):os(e)?J0(e)&&Rm(e):Wl(e)&&J0(e))||s2(e)}function pP(e){switch(e.kind){case 173:case 172:case 175:case 176:case 177:case 261:case 217:return!0}return!1}function dP(e,t){for(;;){if(t&&t(e),e.statement.kind!==255)return e.statement;e=e.statement}}function p4(e){return e&&e.kind===240&&Wi(e.parent)}function fP(e){return e&&e.kind===173&&e.parent.kind===209}function mP(e){return(e.kind===173||e.kind===176||e.kind===177)&&(e.parent.kind===209||e.parent.kind===230)}function yP(e){return e&&e.kind===1}function hP(e){return e&&e.kind===0}function _2(e,t,n,i){return hn(e==null?void 0:e.properties,s=>{if(!us(s))return;let l=Zg(s.name);return t===l||i&&i===l?n(s):void 0})}function gP(e,t,n){return _2(e,t,i=>Ql(i.initializer)?$n(i.initializer.elements,s=>cr(s)&&s.text===n):void 0)}function d4(e){if(e&&e.statements.length){let t=e.statements[0].expression;return kr(t,ao)}}function bP(e,t,n){return f4(e,t,i=>Ql(i.initializer)?$n(i.initializer.elements,s=>cr(s)&&s.text===n):void 0)}function f4(e,t,n){return _2(d4(e),t,n)}function vP(e){return Xr(e.parent,Wi)}function TP(e){return Xr(e.parent,Ex)}function xP(e){return Xr(e.parent,Hr)}function SP(e){return Xr(e.parent,t=>Hr(t)||Wi(t)?"quit":Hl(t))}function wP(e){return Xr(e.parent,Tm)}function c2(e,t,n){for(M.assert(e.kind!==311);;){if(e=e.parent,!e)return M.fail();switch(e.kind){case 166:if(n&&Hr(e.parent.parent))return e;e=e.parent.parent;break;case 169:e.parent.kind===168&&Qa(e.parent.parent)?e=e.parent.parent:Qa(e.parent)&&(e=e.parent);break;case 218:if(!t)continue;case 261:case 217:case 266:case 174:case 171:case 170:case 173:case 172:case 175:case 176:case 177:case 178:case 179:case 180:case 265:case 311:return e}}}function EP(e){switch(e.kind){case 218:case 261:case 217:case 171:return!0;case 240:switch(e.parent.kind){case 175:case 173:case 176:case 177:return!0;default:return!1}default:return!1}}function CP(e){Ce(e)&&(u_(e.parent)||cs(e.parent))&&e.parent.name===e&&(e=e.parent);let t=c2(e,!0,!1);return $r(t)}function kP(e){let t=c2(e,!1,!1);if(t)switch(t.kind){case 175:case 261:case 217:return t}}function AP(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 166:e=e.parent;break;case 261:case 217:case 218:if(!t)continue;case 171:case 170:case 173:case 172:case 175:case 176:case 177:case 174:return e;case 169:e.parent.kind===168&&Qa(e.parent.parent)?e=e.parent.parent:Qa(e.parent)&&(e=e.parent);break}}}function DP(e){if(e.kind===217||e.kind===218){let t=e,n=e.parent;for(;n.kind===216;)t=n,n=n.parent;if(n.kind===212&&n.expression===t)return n}}function PP(e){return e.kind===108||Lf(e)}function Lf(e){let t=e.kind;return(t===210||t===211)&&e.expression.kind===108}function NP(e){let t=e.kind;return(t===210||t===211)&&e.expression.kind===110}function IP(e){var t;return!!e&&Ei(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function OP(e){return!!e&&(tu(e)||us(e))&&St(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function MP(e){switch(e.kind){case 182:return e.typeName;case 232:return no(e.expression)?e.expression:void 0;case 80:case 165:return e}}function LP(e){switch(e.kind){case 214:return e.tag;case 285:case 284:return e.tagName;default:return e.expression}}function m4(e,t,n,i){if(e&&mm(t)&&Ln(t.name))return!1;switch(t.kind){case 262:return!0;case 230:return!e;case 171:return n!==void 0&&(e?u_(n):Hr(n)&&!T3(t)&&!x3(t));case 176:case 177:case 173:return t.body!==void 0&&n!==void 0&&(e?u_(n):Hr(n));case 168:return e?n!==void 0&&n.body!==void 0&&(n.kind===175||n.kind===173||n.kind===177)&&m3(n)!==t&&i!==void 0&&i.kind===262:!1}return!1}function s_(e,t,n,i){return gl(t)&&m4(e,t,n,i)}function P0(e,t,n,i){return s_(e,t,n,i)||l2(e,t,n)}function l2(e,t,n){switch(t.kind){case 262:return ft(t.members,i=>P0(e,i,t,n));case 230:return!e&&ft(t.members,i=>P0(e,i,t,n));case 173:case 177:case 175:return ft(t.parameters,i=>s_(e,i,t,n));default:return!1}}function JP(e,t){if(s_(e,t))return!0;let n=f3(t);return!!n&&l2(e,n,t)}function RP(e,t,n){let i;if(xm(t)){let{firstAccessor:s,secondAccessor:l,setAccessor:d}=O2(n.members,t),y=gl(s)?s:l&&gl(l)?l:void 0;if(!y||t!==y)return!1;i=d==null?void 0:d.parameters}else Vl(t)&&(i=t.parameters);if(s_(e,t,n))return!0;if(i){for(let s of i)if(!jl(s)&&s_(e,s,t,n))return!0}return!1}function y4(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return y4(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function Yd(e){let{parent:t}=e;return t.kind===285||t.kind===284||t.kind===286?t.tagName===e:!1}function u2(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 208:case 209:case 210:case 211:case 212:case 213:case 214:case 233:case 215:case 237:case 234:case 216:case 217:case 230:case 218:case 221:case 219:case 220:case 223:case 224:case 225:case 226:case 229:case 227:case 231:case 283:case 284:case 287:case 228:case 222:case 235:return!0;case 232:return!Sl(e.parent)&&!t1(e.parent);case 165:for(;e.parent.kind===165;)e=e.parent;return e.parent.kind===185||rl(e.parent)||_f(e.parent)||Zs(e.parent)||Yd(e);case 317:for(;Zs(e.parent);)e=e.parent;return e.parent.kind===185||rl(e.parent)||_f(e.parent)||Zs(e.parent)||Yd(e);case 81:return St(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===185||rl(e.parent)||_f(e.parent)||Zs(e.parent)||Yd(e))return!0;case 9:case 10:case 11:case 15:case 110:return h4(e);default:return!1}}function h4(e){let{parent:t}=e;switch(t.kind){case 259:case 168:case 171:case 170:case 305:case 302:case 207:return t.initializer===e;case 243:case 244:case 245:case 246:case 252:case 253:case 254:case 295:case 256:return t.expression===e;case 247:let n=t;return n.initializer===e&&n.initializer.kind!==260||n.condition===e||n.incrementor===e;case 248:case 249:let i=t;return i.initializer===e&&i.initializer.kind!==260||i.expression===e;case 215:case 233:return e===t.expression;case 238:return e===t.expression;case 166:return e===t.expression;case 169:case 293:case 292:case 304:return!0;case 232:return t.expression===e&&!a2(t);case 303:return t.objectAssignmentInitializer===e;case 237:return e===t.expression;default:return u2(t)}}function g4(e){for(;e.kind===165||e.kind===80;)e=e.parent;return e.kind===185}function FP(e){return Ym(e)&&!!e.parent.moduleSpecifier}function b4(e){return e.kind===270&&e.moduleReference.kind===282}function jP(e){return M.assert(b4(e)),e.moduleReference.expression}function BP(e){return Nm(e)&&B2(e.initializer).arguments[0]}function UP(e){return e.kind===270&&e.moduleReference.kind!==282}function p2(e){return Vt(e)}function qP(e){return!Vt(e)}function Vt(e){return!!e&&!!(e.flags&262144)}function zP(e){return!!e&&!!(e.flags&67108864)}function WP(e){return!r2(e)}function v4(e){return!!e&&!!(e.flags&8388608)}function VP(e){return I_(e)&&Ce(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function Ll(e,t){if(e.kind!==212)return!1;let{expression:n,arguments:i}=e;if(n.kind!==80||n.escapedText!=="require"||i.length!==1)return!1;let s=i[0];return!t||qr(s)}function T4(e){return x4(e,!1)}function Nm(e){return x4(e,!0)}function HP(e){return $l(e)&&Nm(e.parent.parent)}function x4(e,t){return Ei(e)&&!!e.initializer&&Ll(t?B2(e.initializer):e.initializer,!0)}function S4(e){return _s(e)&&e.declarationList.declarations.length>0&&eo(e.declarationList.declarations,t=>T4(t))}function KP(e){return e===39||e===34}function GP(e,t){return Yo(t,e).charCodeAt(0)===34}function N0(e){return St(e)||Zo(e)||Ce(e)||O_(e)}function w4(e){return Vt(e)&&e.initializer&&St(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&no(e.name)&&__(e.name,e.initializer.left)?e.initializer.right:e.initializer}function XP(e){let t=w4(e);return t&&x_(t,Bl(e.name))}function $P(e,t){return hn(e.properties,n=>us(n)&&Ce(n.name)&&n.name.escapedText==="value"&&n.initializer&&x_(n.initializer,t))}function QP(e){if(e&&e.parent&&St(e.parent)&&e.parent.operatorToken.kind===64){let t=Bl(e.parent.left);return x_(e.parent.right,t)||YP(e.parent.left,e.parent.right,t)}if(e&&O_(e)&&m2(e)){let t=$P(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function x_(e,t){if(O_(e)){let n=Fl(e.expression);return n.kind===217||n.kind===218?e:void 0}if(e.kind===217||e.kind===230||e.kind===218||ao(e)&&(e.properties.length===0||t))return e}function YP(e,t,n){let i=St(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&x_(t.right,n);if(i&&__(e,t.left))return i}function ZP(e){let t=Ei(e.parent)?e.parent.name:St(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&x_(e.right,Bl(t))&&no(t)&&__(t,e.left)}function eN(e){if(St(e.parent)){let t=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&St(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===64&&Ce(t.left))return t.left}else if(Ei(e.parent))return e.parent.name}function __(e,t){return O0(e)&&O0(t)?Rf(e)===Rf(t):$a(e)&&Zd(t)&&(t.expression.kind===110||Ce(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?__(e,k4(t)):Zd(e)&&Zd(t)?Ya(e)===Ya(t)&&__(e.expression,t.expression):!1}function d2(e){for(;Sa(e,!0);)e=e.right;return e}function E4(e){return Ce(e)&&e.escapedText==="exports"}function C4(e){return Ce(e)&&e.escapedText==="module"}function f2(e){return(Rn(e)||Jl(e))&&C4(e.expression)&&Ya(e)==="exports"}function Ca(e){let t=tN(e);return t===5||Vt(e)?t:0}function m2(e){return Ha(e.arguments)===3&&Rn(e.expression)&&Ce(e.expression.expression)&&Ot(e.expression.expression)==="Object"&&Ot(e.expression.name)==="defineProperty"&&Ki(e.arguments[1])&&c_(e.arguments[0],!0)}function Zd(e){return Rn(e)||Jl(e)}function Jl(e){return ka(e)&&Ki(e.argumentExpression)}function S_(e,t){return Rn(e)&&(!t&&e.expression.kind===110||Ce(e.name)&&c_(e.expression,!0))||y2(e,t)}function y2(e,t){return Jl(e)&&(!t&&e.expression.kind===110||no(e.expression)||S_(e.expression,!0))}function c_(e,t){return no(e)||S_(e,t)}function k4(e){return Rn(e)?e.name:e.argumentExpression}function tN(e){if(O_(e)){if(!m2(e))return 0;let t=e.arguments[0];return E4(t)||f2(t)?8:S_(t)&&Ya(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!Zo(e.left)||nN(d2(e))?0:c_(e.left.expression,!0)&&Ya(e.left)==="prototype"&&ao(D4(e))?6:A4(e.left)}function nN(e){return bb(e)&&ro(e.expression)&&e.expression.text==="0"}function Im(e){if(Rn(e))return e.name;let t=Fl(e.argumentExpression);return ro(t)||qr(t)?t:e}function Ya(e){let t=Im(e);if(t){if(Ce(t))return t.escapedText;if(qr(t)||ro(t))return Ur(t.text)}}function A4(e){if(e.expression.kind===110)return 4;if(f2(e))return 2;if(c_(e.expression,!0)){if(Bl(e.expression))return 3;let t=e;for(;!Ce(t.expression);)t=t.expression;let n=t.expression;if((n.escapedText==="exports"||n.escapedText==="module"&&Ya(t)==="exports")&&S_(e))return 1;if(c_(e,!0)||ka(e)&&E2(e))return 5}return 0}function D4(e){for(;St(e.right);)e=e.right;return e.right}function rN(e){return St(e)&&Ca(e)===3}function iN(e){return Vt(e)&&e.parent&&e.parent.kind===243&&(!ka(e)||Jl(e))&&!!gm(e.parent)}function aN(e,t){let{valueDeclaration:n}=e;(!n||!(t.flags&16777216&&!Vt(t)&&!(n.flags&16777216))&&N0(n)&&!N0(t)||n.kind!==t.kind&&t4(n))&&(e.valueDeclaration=t)}function oN(e){if(!e||!e.valueDeclaration)return!1;let t=e.valueDeclaration;return t.kind===261||Ei(t)&&t.initializer&&Wi(t.initializer)}function sN(e){var t,n;switch(e.kind){case 259:case 207:return(t=Xr(e.initializer,i=>Ll(i,!0)))==null?void 0:t.arguments[0];case 271:return kr(e.moduleSpecifier,qr);case 270:return kr((n=kr(e.moduleReference,Zm))==null?void 0:n.expression,qr);case 272:case 279:return kr(e.parent.moduleSpecifier,qr);case 273:case 280:return kr(e.parent.parent.moduleSpecifier,qr);case 275:return kr(e.parent.parent.parent.moduleSpecifier,qr);default:M.assertNever(e)}}function _N(e){return P4(e)||M.failBadSyntaxKind(e.parent)}function P4(e){switch(e.parent.kind){case 271:case 277:return e.parent;case 282:return e.parent.parent;case 212:return i2(e.parent)||Ll(e.parent,!1)?e.parent:void 0;case 200:return M.assert(cr(e)),kr(e.parent.parent,Xl);default:return}}function h2(e){switch(e.kind){case 271:case 277:return e.moduleSpecifier;case 270:return e.moduleReference.kind===282?e.moduleReference.expression:void 0;case 204:return c4(e)?e.argument.literal:void 0;case 212:return e.arguments[0];case 266:return e.name.kind===11?e.name:void 0;default:return M.assertNever(e)}}function N4(e){switch(e.kind){case 271:return e.importClause&&kr(e.importClause.namedBindings,Db);case 270:return e;case 277:return e.exportClause&&kr(e.exportClause,Ym);default:return M.assertNever(e)}}function I4(e){return e.kind===271&&!!e.importClause&&!!e.importClause.name}function cN(e,t){if(e.name){let n=t(e);if(n)return n}if(e.namedBindings){let n=Db(e.namedBindings)?t(e.namedBindings):hn(e.namedBindings.elements,t);if(n)return n}}function lN(e){if(e)switch(e.kind){case 168:case 173:case 172:case 303:case 302:case 171:case 170:return e.questionToken!==void 0}return!1}function uN(e){let t=e1(e)?f_(e.parameters):void 0,n=kr(t&&t.name,Ce);return!!n&&n.escapedText==="new"}function Rl(e){return e.kind===352||e.kind===344||e.kind===346}function pN(e){return Rl(e)||wb(e)}function dN(e){return Zl(e)&&St(e.expression)&&e.expression.operatorToken.kind===64?d2(e.expression):void 0}function O4(e){return Zl(e)&&St(e.expression)&&Ca(e.expression)!==0&&St(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function g2(e){switch(e.kind){case 242:let t=hl(e);return t&&t.initializer;case 171:return e.initializer;case 302:return e.initializer}}function hl(e){return _s(e)?f_(e.declarationList.declarations):void 0}function M4(e){return Gi(e)&&e.body&&e.body.kind===266?e.body:void 0}function fN(e){if(e.kind>=242&&e.kind<=258)return!0;switch(e.kind){case 80:case 110:case 108:case 165:case 235:case 211:case 210:case 207:case 217:case 218:case 173:case 176:case 177:return!0;default:return!1}}function Om(e){switch(e.kind){case 218:case 225:case 240:case 251:case 178:case 295:case 262:case 230:case 174:case 175:case 184:case 179:case 250:case 258:case 245:case 211:case 241:case 1:case 265:case 305:case 276:case 277:case 280:case 243:case 248:case 249:case 247:case 261:case 217:case 183:case 176:case 80:case 244:case 271:case 270:case 180:case 263:case 323:case 329:case 255:case 173:case 172:case 266:case 201:case 269:case 209:case 168:case 216:case 210:case 302:case 171:case 170:case 252:case 239:case 177:case 303:case 304:case 254:case 256:case 257:case 264:case 167:case 259:case 242:case 246:case 253:return!0;default:return!1}}function L4(e,t){let n;o2(e)&&zx(e)&&Ui(e.initializer)&&(n=Mn(n,nv(e,ba(e.initializer.jsDoc))));let i=e;for(;i&&i.parent;){if(Ui(i)&&(n=Mn(n,nv(e,ba(i.jsDoc)))),i.kind===168){n=Mn(n,(t?ZT:hm)(i));break}if(i.kind===167){n=Mn(n,(t?nx:tx)(i));break}i=J4(i)}return n||Xe}function nv(e,t){if(ps(t)){let n=Gn(t.tags,i=>rv(e,i));return t.tags===n?[t]:n}return rv(e,t)?[t]:void 0}function rv(e,t){return!(ru(t)||Ub(t))||!t.parent||!ps(t.parent)||!ss(t.parent.parent)||t.parent.parent===e}function J4(e){let t=e.parent;if(t.kind===302||t.kind===276||t.kind===171||t.kind===243&&e.kind===210||t.kind===252||M4(t)||St(e)&&e.operatorToken.kind===64)return t;if(t.parent&&(hl(t.parent)===e||St(t)&&t.operatorToken.kind===64))return t.parent;if(t.parent&&t.parent.parent&&(hl(t.parent.parent)||g2(t.parent.parent)===e||O4(t.parent.parent)))return t.parent.parent}function mN(e){if(e.symbol)return e.symbol;if(!Ce(e.name))return;let t=e.name.escapedText,n=b2(e);if(!n)return;let i=$n(n.parameters,s=>s.name.kind===80&&s.name.escapedText===t);return i&&i.symbol}function yN(e){if(ps(e.parent)&&e.parent.tags){let t=$n(e.parent.tags,Rl);if(t)return t}return b2(e)}function b2(e){let t=v2(e);if(t)return Wl(t)&&t.type&&Wi(t.type)?t.type:Wi(t)?t:void 0}function v2(e){let t=R4(e);if(t)return O4(t)||dN(t)||g2(t)||hl(t)||M4(t)||t}function R4(e){let t=T2(e);if(!t)return;let n=t.parent;if(n&&n.jsDoc&&t===Ti(n.jsDoc))return n}function T2(e){return Xr(e.parent,ps)}function hN(e){let t=e.name.escapedText,{typeParameters:n}=e.parent.parent.parent;return n&&$n(n,i=>i.name.escapedText===t)}function gN(e){return!!e.typeArguments}function F4(e){let t=e.parent;for(;;){switch(t.kind){case 225:let n=t.operatorToken.kind;return w_(n)&&t.left===e?n===64||jm(n)?1:2:0;case 223:case 224:let i=t.operator;return i===46||i===47?2:0;case 248:case 249:return t.initializer===e?1:0;case 216:case 208:case 229:case 234:e=t;break;case 304:e=t.parent;break;case 303:if(t.name!==e)return 0;e=t.parent;break;case 302:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function bN(e){return F4(e)!==0}function vN(e){switch(e.kind){case 240:case 242:case 253:case 244:case 254:case 268:case 295:case 296:case 255:case 247:case 248:case 249:case 245:case 246:case 257:case 298:return!0}return!1}function TN(e){return Km(e)||Gm(e)||Bg(e)||cs(e)||P_(e)}function j4(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function xN(e){return j4(e,195)}function B4(e){return j4(e,216)}function SN(e){let t;for(;e&&e.kind===195;)t=e,e=e.parent;return[t,e]}function wN(e){for(;yb(e);)e=e.type;return e}function Fl(e,t){return ds(e,t?17:1)}function EN(e){return e.kind!==210&&e.kind!==211?!1:(e=B4(e.parent),e&&e.kind===219)}function CN(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function U4(e){return!$r(e)&&!Sm(e)&&$o(e.parent)&&e.parent.name===e}function kN(e){let t=e.parent;switch(e.kind){case 11:case 15:case 9:if(Za(t))return t.parent;case 80:if($o(t))return t.name===e?t:void 0;if(D_(t)){let n=t.parent;return p_(n)&&n.name===t?n:void 0}else{let n=t.parent;return St(n)&&Ca(n)!==0&&(n.left.symbol||n.symbol)&&Nl(n)===e?n:void 0}case 81:return $o(t)&&t.name===e?t:void 0;default:return}}function q4(e){return Ki(e)&&e.parent.kind===166&&$o(e.parent.parent)}function AN(e){let t=e.parent;switch(t.kind){case 171:case 170:case 173:case 172:case 176:case 177:case 305:case 302:case 210:return t.name===e;case 165:return t.right===e;case 207:case 275:return t.propertyName===e;case 280:case 290:case 284:case 285:case 286:return!0}return!1}function DN(e){return e.kind===270||e.kind===269||e.kind===272&&e.name||e.kind===273||e.kind===279||e.kind===275||e.kind===280||e.kind===276&&I0(e)?!0:Vt(e)&&(St(e)&&Ca(e)===2&&I0(e)||Rn(e)&&St(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===64&&x2(e.parent.right))}function z4(e){switch(e.parent.kind){case 272:case 275:case 273:case 280:case 276:case 270:case 279:return e.parent;case 165:do e=e.parent;while(e.parent.kind===165);return z4(e)}}function x2(e){return no(e)||$m(e)}function I0(e){let t=W4(e);return x2(t)}function W4(e){return ls(e)?e.expression:e.right}function PN(e){return e.kind===303?e.name:e.kind===302?e.initializer:e.parent.right}function V4(e){let t=H4(e);if(t&&Vt(e)){let n=rx(e);if(n)return n.class}return t}function H4(e){let t=Mm(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function K4(e){if(Vt(e))return ix(e).map(t=>t.class);{let t=Mm(e.heritageClauses,119);return t==null?void 0:t.types}}function G4(e){return eu(e)?X4(e)||Xe:Hr(e)&&d_(ff(V4(e)),K4(e))||Xe}function X4(e){let t=Mm(e.heritageClauses,96);return t?t.types:void 0}function Mm(e,t){if(e){for(let n of e)if(n.token===t)return n}}function NN(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function bi(e){return 83<=e&&e<=164}function $4(e){return 19<=e&&e<=79}function ef(e){return bi(e)||$4(e)}function S2(e){return 128<=e&&e<=164}function Q4(e){return bi(e)&&!S2(e)}function IN(e){return 119<=e&&e<=127}function ON(e){let t=Al(e);return t!==void 0&&Q4(t)}function MN(e){let t=Al(e);return t!==void 0&&bi(t)}function LN(e){let t=KT(e);return!!t&&!S2(t)}function JN(e){return 2<=e&&e<=7}function RN(e){if(!e)return 4;let t=0;switch(e.kind){case 261:case 217:case 173:e.asteriskToken&&(t|=1);case 218:gn(e,512)&&(t|=2);break}return e.body||(t|=4),t}function FN(e){switch(e.kind){case 261:case 217:case 218:case 173:return e.body!==void 0&&e.asteriskToken===void 0&&gn(e,512)}return!1}function Ki(e){return qr(e)||ro(e)}function w2(e){return Xm(e)&&(e.operator===40||e.operator===41)&&ro(e.operand)}function Y4(e){let t=Nl(e);return!!t&&E2(t)}function E2(e){if(!(e.kind===166||e.kind===211))return!1;let t=ka(e)?Fl(e.argumentExpression):e.expression;return!Ki(t)&&!w2(t)}function Jf(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 9:return Ur(e.text);case 166:let t=e.expression;return Ki(t)?Ur(t.text):w2(t)?t.operator===41?an(t.operator)+t.operand.text:t.operand.text:void 0;case 294:return Ul(e);default:return M.assertNever(e)}}function O0(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function Rf(e){return $a(e)?Ot(e):J_(e)?ql(e):e.text}function Z4(e){return $a(e)?e.escapedText:J_(e)?Ul(e):Ur(e.text)}function jN(e){return`__@${getSymbolId(e)}@${e.escapedName}`}function BN(e,t){return`__#${getSymbolId(e)}@${t}`}function UN(e){return Jn(e.escapedName,"__@")}function qN(e){return Jn(e.escapedName,"__#")}function zN(e){return e.kind===80&&e.escapedText==="Symbol"}function e3(e){return Ce(e)?Ot(e)==="__proto__":cr(e)&&e.text==="__proto__"}function Xs(e,t){switch(e=ds(e),e.kind){case 230:case 217:if(e.name)return!1;break;case 218:break;default:return!1}return typeof t=="function"?t(e):!0}function t3(e){switch(e.kind){case 302:return!e3(e.name);case 303:return!!e.objectAssignmentInitializer;case 259:return Ce(e.name)&&!!e.initializer;case 168:return Ce(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 207:return Ce(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 171:return!!e.initializer;case 225:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return Ce(e.left)}break;case 276:return!0}return!1}function WN(e,t){if(!t3(e))return!1;switch(e.kind){case 302:return Xs(e.initializer,t);case 303:return Xs(e.objectAssignmentInitializer,t);case 259:case 168:case 207:case 171:return Xs(e.initializer,t);case 225:return Xs(e.right,t);case 276:return Xs(e.expression,t)}}function VN(e){return e.escapedText==="push"||e.escapedText==="unshift"}function HN(e){return Lm(e).kind===168}function Lm(e){for(;e.kind===207;)e=e.parent.parent;return e}function KN(e){let t=e.kind;return t===175||t===217||t===261||t===218||t===173||t===176||t===177||t===266||t===311}function pa(e){return wa(e.pos)||wa(e.end)}function GN(e){return Pl(e,$r)||e}function XN(e){let t=C2(e),n=e.kind===213&&e.arguments!==void 0;return n3(e.kind,t,n)}function n3(e,t,n){switch(e){case 213:return n?0:1;case 223:case 220:case 221:case 219:case 222:case 226:case 228:return 1;case 225:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function $N(e){let t=C2(e),n=e.kind===213&&e.arguments!==void 0;return r3(e.kind,t,n)}function C2(e){return e.kind===225?e.operatorToken.kind:e.kind===223||e.kind===224?e.operator:e.kind}function r3(e,t,n){switch(e){case 360:return 0;case 229:return 1;case 228:return 2;case 226:return 4;case 225:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return il(t)}case 215:case 234:case 223:case 220:case 221:case 219:case 222:return 16;case 224:return 17;case 212:return 18;case 213:return n?19:18;case 214:case 210:case 211:case 235:return 19;case 233:case 237:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 208:case 209:case 217:case 218:case 230:case 14:case 15:case 227:case 216:case 231:case 283:case 284:case 287:return 20;default:return-1}}function il(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function QN(e){return Gn(e,t=>{switch(t.kind){case 293:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function YN(){let e=[],t=[],n=new Map,i=!1;return{add:l,lookup:s,getGlobalDiagnostics:d,getDiagnostics:y};function s(p){let x;if(p.file?x=n.get(p.file.fileName):x=e,!x)return;let h=El(x,p,ht,Uf);if(h>=0)return x[h]}function l(p){let x;p.file?(x=n.get(p.file.fileName),x||(x=[],n.set(p.file.fileName,x),cl(t,p.file.fileName,xi))):(i&&(i=!1,e=e.slice()),x=e),cl(x,p,Uf)}function d(){return i=!0,e}function y(p){if(p)return n.get(p)||[];let x=Fv(t,h=>n.get(h));return e.length&&x.unshift(...e),x}}function ZN(e){return e.replace(JS,"\\${")}function i3(e){return e&&!!(r8(e)?e.templateFlags:e.head.templateFlags||ft(e.templateSpans,t=>!!t.literal.templateFlags))}function a3(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function eI(e,t,n){if(e.charCodeAt(0)===0){let i=n.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return BS.get(e)||a3(e.charCodeAt(0))}function Ff(e,t){let n=t===96?jS:t===39?FS:RS;return e.replace(n,eI)}function jf(e,t){return e=Ff(e,t),K0.test(e)?e.replace(K0,n=>a3(n.charCodeAt(0))):e}function tI(e){return"&#x"+e.toString(16).toUpperCase()+";"}function nI(e){return e.charCodeAt(0)===0?"�":zS.get(e)||tI(e.charCodeAt(0))}function o3(e,t){let n=t===39?qS:US;return e.replace(n,nI)}function rI(e){let t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&iI(e.charCodeAt(0))?e.substring(1,t-1):e}function iI(e){return e===39||e===34||e===96}function s3(e){let t=e.charCodeAt(0);return t>=97&&t<=122||Ga(e,"-")}function k2(e){let t=Mo[1];for(let n=Mo.length;n<=e;n++)Mo.push(Mo[n-1]+t);return Mo[e]}function Bo(){return Mo[1].length}function aI(){return Ga(uf,"-dev")||Ga(uf,"-insiders")}function oI(e){var t,n,i,s,l,d=!1;function y(G){let oe=cm(G);oe.length>1?(s=s+oe.length-1,l=t.length-G.length+ba(oe),i=l-t.length===0):i=!1}function p(G){G&&G.length&&(i&&(G=k2(n)+G,i=!1),t+=G,y(G))}function x(G){G&&(d=!1),p(G)}function h(G){G&&(d=!0),p(G)}function D(){t="",n=0,i=!0,s=0,l=0,d=!1}function w(G){G!==void 0&&(t+=G,y(G),d=!1)}function g(G){G&&G.length&&x(G)}function A(G){(!i||G)&&(t+=e,s++,l=t.length,i=!0,d=!1)}function B(){return i?t.length:t.length+e.length}return D(),{write:x,rawWrite:w,writeLiteral:g,writeLine:A,increaseIndent:()=>{n++},decreaseIndent:()=>{n--},getIndent:()=>n,getTextPos:()=>t.length,getLine:()=>s,getColumn:()=>i?n*Bo():t.length-l,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>d,hasTrailingWhitespace:()=>!!t.length&&qi(t.charCodeAt(t.length-1)),clear:D,writeKeyword:x,writeOperator:x,writeParameter:x,writeProperty:x,writePunctuation:x,writeSpace:x,writeStringLiteral:x,writeSymbol:(G,oe)=>x(G),writeTrailingSemicolon:x,writeComment:h,getTextPosWithWriteLine:B}}function sI(e){let t=!1;function n(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(i){n(),e.writeLiteral(i)},writeStringLiteral(i){n(),e.writeStringLiteral(i)},writeSymbol(i,s){n(),e.writeSymbol(i,s)},writePunctuation(i){n(),e.writePunctuation(i)},writeKeyword(i){n(),e.writeKeyword(i)},writeOperator(i){n(),e.writeOperator(i)},writeParameter(i){n(),e.writeParameter(i)},writeSpace(i){n(),e.writeSpace(i)},writeProperty(i){n(),e.writeProperty(i)},writeComment(i){n(),e.writeComment(i)},writeLine(){n(),e.writeLine()},increaseIndent(){n(),e.increaseIndent()},decreaseIndent(){n(),e.decreaseIndent()}}}function A2(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function _3(e){return im(A2(e))}function c3(e,t,n){return t.moduleName||D2(e,t.fileName,n&&n.fileName)}function iv(e,t){return e.getCanonicalFileName(Ta(t,e.getCurrentDirectory()))}function _I(e,t,n){let i=t.getExternalModuleFileFromDeclaration(n);if(!i||i.isDeclarationFile)return;let s=h2(n);if(!(s&&qr(s)&&!is(s.text)&&iv(e,i.path).indexOf(iv(e,Ko(e.getCommonSourceDirectory())))===-1))return c3(e,i)}function D2(e,t,n){let i=p=>e.getCanonicalFileName(p),s=vi(n?Hi(n):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),l=Ta(t,e.getCurrentDirectory()),d=xg(s,l,s,i,!1),y=bl(d);return n?bg(y):y}function cI(e,t,n){let i=t.getCompilerOptions(),s;return i.outDir?s=bl(p3(e,t,i.outDir)):s=bl(e),s+n}function lI(e,t){return l3(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),n=>t.getCanonicalFileName(n))}function l3(e,t,n,i,s){let l=t.declarationDir||t.outDir,d=l?N2(e,l,n,i,s):e,y=u3(d);return bl(d)+y}function u3(e){return Wr(e,[".mjs",".mts"])?".d.mts":Wr(e,[".cjs",".cts"])?".d.cts":Wr(e,[".json"])?".d.json.ts":".d.ts"}function uI(e){return Wr(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Wr(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Wr(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function P2(e){return e.outFile||e.out}function pI(e,t){var n;if(e.paths)return e.baseUrl??M.checkDefined(e.pathsBasePath||((n=t.getCurrentDirectory)==null?void 0:n.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function dI(e,t,n){let i=e.getCompilerOptions();if(P2(i)){let s=Gr(i),l=i.emitDeclarationOnly||s===2||s===4;return Gn(e.getSourceFiles(),d=>(l||!ts(d))&&M0(d,e,n))}else{let s=t===void 0?e.getSourceFiles():[t];return Gn(s,l=>M0(l,e,n))}}function M0(e,t,n){return!(t.getCompilerOptions().noEmitForJsFiles&&p2(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&(n||!(r2(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&!t.isSourceOfProjectReferenceRedirect(e.fileName))}function p3(e,t,n){return N2(e,n,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function N2(e,t,n,i,s){let l=Ta(e,n);return l=s(l).indexOf(s(i))===0?l.substring(i.length):l,yn(t,l)}function fI(e,t,n,i,s,l,d){e.writeFile(n,i,s,y=>{t.add(al(K.Could_not_write_file_0_Colon_1,n,y))},l,d)}function d3(e,t,n){if(e.length>Si(e)&&!n(e)){let i=Hi(e);d3(i,t,n),t(e)}}function mI(e,t,n,i,s,l){try{i(e,t,n)}catch{d3(Hi(sr(e)),s,l),i(e,t,n)}}function yI(e,t){let n=xa(e);return a_(n,t)}function ya(e,t){return a_(e,t)}function f3(e){return $n(e.members,t=>P_(t)&&yl(t.body))}function I2(e){if(e&&e.parameters.length>0){let t=e.parameters.length===2&&jl(e.parameters[0]);return e.parameters[t?1:0]}}function hI(e){let t=I2(e);return t&&t.type}function m3(e){if(e.parameters.length&&!nu(e)){let t=e.parameters[0];if(jl(t))return t}}function jl(e){return Jm(e.name)}function Jm(e){return!!e&&e.kind===80&&y3(e)}function gI(e){if(!Jm(e))return!1;for(;D_(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===185}function y3(e){return e.escapedText==="this"}function O2(e,t){let n,i,s,l;return Y4(t)?(n=t,t.kind===176?s=t:t.kind===177?l=t:M.fail("Accessor has wrong kind")):hn(e,d=>{if(xm(d)&&L0(d)===L0(t)){let y=Jf(d.name),p=Jf(t.name);y===p&&(n?i||(i=d):n=d,d.kind===176&&!s&&(s=d),d.kind===177&&!l&&(l=d))}}),{firstAccessor:n,secondAccessor:i,getAccessor:s,setAccessor:l}}function M2(e){if(!Vt(e)&&cs(e))return;let t=e.type;return t||!Vt(e)?t:Mg(e)?e.typeExpression&&e.typeExpression.type:bm(e)}function bI(e){return e.type}function vI(e){return nu(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(Vt(e)?px(e):void 0)}function h3(e){return Wo(Il(e),t=>TI(t)?t.typeParameters:void 0)}function TI(e){return es(e)&&!(e.parent.kind===326&&(e.parent.tags.some(Rl)||e.parent.tags.some(Fb)))}function xI(e){let t=I2(e);return t&&M2(t)}function g3(e,t,n,i){b3(e,t,n.pos,i)}function b3(e,t,n,i){i&&i.length&&n!==i[0].pos&&ya(e,n)!==ya(e,i[0].pos)&&t.writeLine()}function SI(e,t,n,i){n!==i&&ya(e,n)!==ya(e,i)&&t.writeLine()}function v3(e,t,n,i,s,l,d,y){if(i&&i.length>0){s&&n.writeSpace(" ");let p=!1;for(let x of i)p&&(n.writeSpace(" "),p=!1),y(e,t,n,x.pos,x.end,d),x.hasTrailingNewLine?n.writeLine():p=!0;p&&l&&n.writeSpace(" ")}}function wI(e,t,n,i,s,l,d){let y,p;if(d?s.pos===0&&(y=Gn(Go(e,s.pos),x)):y=Go(e,s.pos),y){let h=[],D;for(let w of y){if(D){let g=ya(t,D.end);if(ya(t,w.pos)>=g+2)break}h.push(w),D=w}if(h.length){let w=ya(t,ba(h).end);ya(t,It(e,s.pos))>=w+2&&(g3(t,n,s,y),v3(e,t,n,h,!1,!0,l,i),p={nodePos:s.pos,detachedCommentEndPos:ba(h).end})}}return p;function x(h){return Yx(e,h.pos)}}function EI(e,t,n,i,s,l){if(e.charCodeAt(i+1)===42){let d=Eg(t,i),y=t.length,p;for(let x=i,h=d.line;x0){let A=g%Bo(),B=k2((g-A)/Bo());for(n.rawWrite(B);A;)n.rawWrite(" "),A--}else n.rawWrite("")}CI(e,s,n,l,x,D),x=D}}else n.writeComment(e.substring(i,s))}function CI(e,t,n,i,s,l){let d=Math.min(t,l-1),y=am(e.substring(s,d));y?(n.writeComment(y),d!==t&&n.writeLine()):n.rawWrite(i)}function av(e,t,n){let i=0;for(;t=0&&e.kind<=164?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=F2(e)|536870912),t&&!(e.modifierFlagsCache&4096)&&(n||Vt(e))&&e.parent&&(e.modifierFlagsCache|=k3(e)|4096),e.modifierFlagsCache&-536875009)}function Fm(e){return J2(e,!0)}function C3(e){return J2(e,!0,!0)}function R2(e){return J2(e,!1)}function k3(e){let t=0;return e.parent&&!io(e)&&(Vt(e)&&(ax(e)&&(t|=4),ox(e)&&(t|=8),sx(e)&&(t|=16),_x(e)&&(t|=64),cx(e)&&(t|=16384)),lx(e)&&(t|=8192)),t}function A3(e){return F2(e)|k3(e)}function F2(e){let t=R_(e)?ar(e.modifiers):0;return(e.flags&4||e.kind===80&&e.flags&2048)&&(t|=1),t}function ar(e){let t=0;if(e)for(let n of e)t|=j2(n.kind);return t}function j2(e){switch(e){case 126:return 32;case 125:return 4;case 124:return 16;case 123:return 8;case 128:return 256;case 129:return 128;case 95:return 1;case 138:return 2;case 87:return 2048;case 90:return 1024;case 134:return 512;case 148:return 64;case 163:return 16384;case 103:return 32768;case 147:return 65536;case 169:return 131072}return 0}function D3(e){return e===57||e===56}function PI(e){return D3(e)||e===54}function jm(e){return e===76||e===77||e===78}function NI(e){return St(e)&&jm(e.operatorToken.kind)}function P3(e){return D3(e)||e===61}function II(e){return St(e)&&P3(e.operatorToken.kind)}function w_(e){return e>=64&&e<=79}function N3(e){let t=I3(e);return t&&!t.isImplements?t.class:void 0}function I3(e){if(Tb(e)){if(Sl(e.parent)&&Hr(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(t1(e.parent)){let t=v2(e.parent);if(t&&Hr(t))return{class:t,isImplements:!1}}}}function Sa(e,t){return St(e)&&(t?e.operatorToken.kind===64:w_(e.operatorToken.kind))&&jo(e.left)}function OI(e){return Sa(e.parent)&&e.parent.left===e}function MI(e){if(Sa(e,!0)){let t=e.left.kind;return t===209||t===208}return!1}function R0(e){return N3(e)!==void 0}function no(e){return e.kind===80||O3(e)}function LI(e){switch(e.kind){case 80:return e;case 165:do e=e.left;while(e.kind!==80);return e;case 210:do e=e.expression;while(e.kind!==80);return e}}function F0(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===235||e.kind===210&&F0(e.expression)||e.kind===216&&F0(e.expression)}function O3(e){return Rn(e)&&Ce(e.name)&&no(e.expression)}function j0(e){if(Rn(e)){let t=j0(e.expression);if(t!==void 0)return t+"."+hi(e.name)}else if(ka(e)){let t=j0(e.expression);if(t!==void 0&&Ml(e.argumentExpression))return t+"."+Jf(e.argumentExpression)}else{if(Ce(e))return Xo(e.escapedText);if(J_(e))return ql(e)}}function Bl(e){return S_(e)&&Ya(e)==="prototype"}function JI(e){return e.parent.kind===165&&e.parent.right===e||e.parent.kind===210&&e.parent.name===e}function M3(e){return Rn(e.parent)&&e.parent.name===e||ka(e.parent)&&e.parent.argumentExpression===e}function RI(e){return D_(e.parent)&&e.parent.right===e||Rn(e.parent)&&e.parent.name===e||Zs(e.parent)&&e.parent.right===e}function FI(e){return e.kind===209&&e.properties.length===0}function jI(e){return e.kind===208&&e.elements.length===0}function BI(e){if(!(!UI(e)||!e.declarations)){for(let t of e.declarations)if(t.localSymbol)return t.localSymbol}}function UI(e){return e&&Ha(e.declarations)>0&&gn(e.declarations[0],1024)}function qI(e){return $n(GS,t=>Ea(e,t))}function zI(e){let t=[],n=e.length;for(let i=0;i>6|192),t.push(s&63|128)):s<65536?(t.push(s>>12|224),t.push(s>>6&63|128),t.push(s&63|128)):s<131072?(t.push(s>>18|240),t.push(s>>12&63|128),t.push(s>>6&63|128),t.push(s&63|128)):M.assert(!1,"Unexpected code point")}return t}function L3(e){let t="",n=zI(e),i=0,s=n.length,l,d,y,p;for(;i>2,d=(n[i]&3)<<4|n[i+1]>>4,y=(n[i+1]&15)<<2|n[i+2]>>6,p=n[i+2]&63,i+1>=s?y=p=64:i+2>=s&&(p=64),t+=ji.charAt(l)+ji.charAt(d)+ji.charAt(y)+ji.charAt(p),i+=3;return t}function WI(e){let t="",n=0,i=e.length;for(;n>4&3,h=(d&15)<<4|y>>2&15,D=(y&3)<<6|p&63;h===0&&y!==0?i.push(x):D===0&&p!==0?i.push(x,h):i.push(x,h,D),s+=4}return WI(i)}function J3(e,t){let n=m_(t)?t:t.readFile(e);if(!n)return;let i=parseConfigFileTextToJson(e,n);return i.error?void 0:i.config}function KI(e,t){return J3(e,t)||{}}function R3(e,t){return!t.directoryExists||t.directoryExists(e)}function F3(e){switch(e.newLine){case 0:return WS;case 1:case void 0:return VS}}function Bm(e,t=e){return M.assert(t>=e||t===-1),{pos:e,end:t}}function GI(e,t){return Bm(e.pos,t)}function Bf(e,t){return Bm(t,e.end)}function j3(e){let t=R_(e)?sg(e.modifiers,zl):void 0;return t&&!wa(t.end)?Bf(e,t.end):e}function XI(e){if(os(e)||Vl(e))return Bf(e,e.name.pos);let t=R_(e)?Ti(e.modifiers):void 0;return t&&!wa(t.end)?Bf(e,t.end):j3(e)}function $I(e){return e.pos===e.end}function QI(e,t){return Bm(e,e+an(t).length)}function YI(e,t){return B3(e,e,t)}function ZI(e,t,n){return E_(l_(e,n,!1),l_(t,n,!1),n)}function eO(e,t,n){return E_(e.end,t.end,n)}function B3(e,t,n){return E_(l_(e,n,!1),t.end,n)}function tO(e,t,n){return E_(e.end,l_(t,n,!1),n)}function nO(e,t,n,i){let s=l_(t,n,i);return b_(n,e.end,s)}function rO(e,t,n){return b_(n,e.end,t.end)}function iO(e,t){return!E_(e.pos,e.end,t)}function E_(e,t,n){return b_(n,e,t)===0}function l_(e,t,n){return wa(e.pos)?-1:It(t.text,e.pos,!1,n)}function aO(e,t,n,i){let s=It(n.text,e,!1,i),l=sO(s,t,n);return b_(n,l??t,s)}function oO(e,t,n,i){let s=It(n.text,e,!1,i);return b_(n,e,Math.min(t,s))}function sO(e,t=0,n){for(;e-- >t;)if(!qi(n.text.charCodeAt(e)))return e}function _O(e){let t=Pl(e);if(t)switch(t.parent.kind){case 265:case 266:return t===t.parent.name}return!1}function cO(e){return Gn(e.declarations,U3)}function U3(e){return Ei(e)&&e.initializer!==void 0}function lO(e){return e.watch&&Xn(e,"watch")}function uO(e){e.close()}function q3(e){return e.flags&33554432?e.links.checkFlags:0}function pO(e,t=!1){if(e.valueDeclaration){let n=t&&e.declarations&&$n(e.declarations,N_)||e.flags&32768&&$n(e.declarations,Kl)||e.valueDeclaration,i=dm(n);return e.parent&&e.parent.flags&32?i:i&-29}if(q3(e)&6){let n=e.links.checkFlags,i=n&1024?8:n&256?4:16,s=n&2048?32:0;return i|s}return e.flags&4194304?36:0}function dO(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function fO(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function mO(e){return Oo(e)===1}function yO(e){return Oo(e)!==0}function Oo(e){let{parent:t}=e;switch(t==null?void 0:t.kind){case 216:return Oo(t);case 224:case 223:let{operator:n}=t;return n===46||n===47?2:0;case 225:let{left:i,operatorToken:s}=t;return i===e&&w_(s.kind)?s.kind===64?1:2:0;case 210:return t.name!==e?0:Oo(t);case 302:{let l=Oo(t.parent);return e===t.name?hO(l):l}case 303:return e===t.objectAssignmentInitializer?0:Oo(t.parent);case 208:return Oo(t);default:return 0}}function hO(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return M.assertNever(e)}}function z3(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(typeof e[n]=="object"){if(!z3(e[n],t[n]))return!1}else if(typeof e[n]!="function"&&e[n]!==t[n])return!1;return!0}function gO(e,t){e.forEach(t),e.clear()}function W3(e,t,n){let{onDeleteValue:i,onExistingValue:s}=n;e.forEach((l,d)=>{let y=t.get(d);y===void 0?(e.delete(d),i(l,d)):s&&s(l,y,d)})}function bO(e,t,n){W3(e,t,n);let{createNewValue:i}=n;t.forEach((s,l)=>{e.has(l)||e.set(l,i(l,s))})}function vO(e){if(e.flags&32){let t=V3(e);return!!t&&gn(t,256)}return!1}function V3(e){var t;return(t=e.declarations)==null?void 0:t.find(Hr)}function tf(e){return e.flags&138117121?e.objectFlags:0}function TO(e,t){return!!hT(e,n=>t(n)?!0:void 0)}function xO(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&Cb(e.declarations[0])}function SO({moduleSpecifier:e}){return cr(e)?e.text:Cm(e)}function H3(e){let t;return qt(e,n=>{yl(n)&&(t=n)},n=>{for(let i=n.length-1;i>=0;i--)if(yl(n[i])){t=n[i];break}}),t}function wO(e,t,n=!0){return e.has(t)?!1:(e.set(t,n),!0)}function EO(e){return Hr(e)||eu(e)||Hm(e)}function K3(e){return e>=181&&e<=204||e===133||e===159||e===150||e===162||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===232||e===318||e===319||e===320||e===321||e===322||e===323||e===324}function Zo(e){return e.kind===210||e.kind===211}function CO(e){return e.kind===210?e.name:(M.assert(e.kind===211),e.argumentExpression)}function kO(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function AO(e){return e.kind===274||e.kind===278}function B2(e){for(;Zo(e);)e=e.expression;return e}function DO(e,t){if(Zo(e.parent)&&M3(e))return n(e.parent);function n(i){if(i.kind===210){let s=t(i.name);if(s!==void 0)return s}else if(i.kind===211)if(Ce(i.argumentExpression)||qr(i.argumentExpression)){let s=t(i.argumentExpression);if(s!==void 0)return s}else return;if(Zo(i.expression))return n(i.expression);if(Ce(i.expression))return t(i.expression)}}function PO(e,t){for(;;){switch(e.kind){case 224:e=e.operand;continue;case 225:e=e.left;continue;case 226:e=e.condition;continue;case 214:e=e.tag;continue;case 212:if(t)return e;case 233:case 211:case 210:case 234:case 359:case 237:e=e.expression;continue}return e}}function NO(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.isAssigned=void 0,this.links=void 0}function IO(e,t){this.flags=t,(M.isDebugging||fa)&&(this.checker=e)}function OO(e,t){this.flags=t,M.isDebugging&&(this.checker=e)}function $y(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function MO(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function LO(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function JO(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(i=>i)}function RO(e){nb.push(e),e(xt)}function G3(e){Object.assign(xt,e),hn(nb,t=>t(xt))}function C_(e,t,n=0){return e.replace(/{(\d+)}/g,(i,s)=>""+M.checkDefined(t[+s+n]))}function X3(e){vl=e}function $3(e){!vl&&e&&(vl=e())}function k_(e){return vl&&vl[e.key]||e.message}function No(e,t,n,i){e2(void 0,t,n);let s=k_(i);return arguments.length>4&&(s=C_(s,arguments,4)),{file:void 0,start:t,length:n,messageText:s,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,fileName:e}}function FO(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function Q3(e,t){let n=t.fileName||"",i=t.text.length;M.assertEqual(e.fileName,n),M.assertLessThanOrEqual(e.start,i),M.assertLessThanOrEqual(e.start+e.length,i);let s={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){s.relatedInformation=[];for(let l of e.relatedInformation)FO(l)&&l.fileName===n?(M.assertLessThanOrEqual(l.start,i),M.assertLessThanOrEqual(l.start+l.length,i),s.relatedInformation.push(Q3(l,t))):s.relatedInformation.push(l)}return s}function za(e,t){let n=[];for(let i of e)n.push(Q3(i,t));return n}function U2(e,t,n,i){e2(e,t,n);let s=k_(i);return arguments.length>4&&(s=C_(s,arguments,4)),{file:e,start:t,length:n,messageText:s,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function jO(e,t){let n=k_(t);return arguments.length>2&&(n=C_(n,arguments,2)),n}function al(e){let t=k_(e);return arguments.length>1&&(t=C_(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function BO(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}function Kc(e,t){let n=k_(t);return arguments.length>2&&(n=C_(n,arguments,2)),{messageText:n,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function UO(e,t){let n=e;for(;n.next;)n=n.next[0];n.next=[t]}function ov(e){return e.file?e.file.path:void 0}function q2(e,t){return Uf(e,t)||qO(e,t)||0}function Uf(e,t){return xi(ov(e),ov(t))||wn(e.start,t.start)||wn(e.length,t.length)||wn(e.code,t.code)||Y3(e.messageText,t.messageText)||0}function qO(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?wn(e.relatedInformation.length,t.relatedInformation.length)||hn(e.relatedInformation,(n,i)=>{let s=t.relatedInformation[i];return q2(n,s)})||0:e.relatedInformation?-1:1}function Y3(e,t){if(typeof e=="string"&&typeof t=="string")return xi(e,t);if(typeof e=="string")return-1;if(typeof t=="string")return 1;let n=xi(e.messageText,t.messageText);if(n)return n;if(!e.next&&!t.next)return 0;if(!e.next)return-1;if(!t.next)return 1;let i=Math.min(e.next.length,t.next.length);for(let s=0;st.next.length?1:0}function B0(e){return e===4||e===2||e===1||e===6?1:0}function Z3(e){if(e.transformFlags&2)return Ux(e)||ol(e)?e:qt(e,Z3)}function zO(e){return e.isDeclarationFile?void 0:Z3(e)}function WO(e){return(e.impliedNodeFormat===99||Wr(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function eS(e){switch(tS(e)){case 3:return s=>{s.externalModuleIndicator=sl(s)||!s.isDeclarationFile||void 0};case 1:return s=>{s.externalModuleIndicator=sl(s)};case 2:let t=[sl];(e.jsx===4||e.jsx===5)&&t.push(zO),t.push(WO);let n=fg(...t);return s=>void(s.externalModuleIndicator=n(s))}}function Um(e){return e.target??(e.module===100&&9||e.module===199&&99||1)}function Gr(e){return typeof e.module=="number"?e.module:Um(e)>=2?5:1}function VO(e){return e>=5&&e<=99}function A_(e){let t=e.moduleResolution;if(t===void 0)switch(Gr(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;default:t=1;break}return t}function tS(e){return e.moduleDetection||(Gr(e)===100||Gr(e)===199?3:2)}function HO(e){switch(Gr(e)){case 1:case 2:case 5:case 6:case 7:case 99:case 100:case 199:return!0;default:return!1}}function z2(e){return!!(e.isolatedModules||e.verbatimModuleSyntax)}function KO(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function GO(e){return e.allowUnreachableCode===!1}function XO(e){return e.allowUnusedLabels===!1}function $O(e){return!!(H2(e)&&e.declarationMap)}function W2(e){if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(Gr(e)){case 100:case 199:return!0}}function QO(e){return e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:W2(e)||Gr(e)===4||A_(e)===100}function V2(e){return e>=3&&e<=99||e===100}function YO(e){return!!e.noDtsResolution||A_(e)!==100}function ZO(e){let t=A_(e);if(!V2(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}function eM(e){let t=A_(e);if(!V2(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}function nS(e){return e.resolveJsonModule!==void 0?e.resolveJsonModule:A_(e)===100}function H2(e){return!!(e.declaration||e.composite)}function tM(e){return!!(e.preserveConstEnums||z2(e))}function nM(e){return!!(e.incremental||e.composite)}function K2(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function rS(e){return e.allowJs===void 0?!!e.checkJs:e.allowJs}function rM(e){return e.useDefineForClassFields===void 0?Um(e)>=9:e.useDefineForClassFields}function iM(e,t){return T_(t,e,semanticDiagnosticsOptionDeclarations)}function aM(e,t){return T_(t,e,affectsEmitOptionDeclarations)}function oM(e,t){return T_(t,e,affectsDeclarationPathOptionDeclarations)}function U0(e,t){return t.strictFlag?K2(e,t.name):e[t.name]}function sM(e){let t=e.jsx;return t===2||t===4||t===5}function _M(e,t){let n=t==null?void 0:t.pragmas.get("jsximportsource"),i=Wt(n)?n[n.length-1]:n;return e.jsx===4||e.jsx===5||e.jsxImportSource||i?(i==null?void 0:i.arguments.factory)||e.jsxImportSource||"react":void 0}function cM(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function lM(e){let t=!1;for(let n=0;ns,getSymlinkedDirectories:()=>n,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(y,p)=>(s||(s=new Map)).set(y,p),setSymlinkedDirectory:(y,p)=>{let x=vi(y,e,t);vS(x)||(x=Ko(x),p!==!1&&!(n!=null&&n.has(x))&&(i||(i=nm())).add(Ko(p.realPath),y),(n||(n=new Map)).set(x,p))},setSymlinksFromResolutions(y,p){var x,h;M.assert(!l),l=!0;for(let D of y)(x=D.resolvedModules)==null||x.forEach(w=>d(this,w.resolvedModule)),(h=D.resolvedTypeReferenceDirectiveNames)==null||h.forEach(w=>d(this,w.resolvedTypeReferenceDirective));p.forEach(D=>d(this,D.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>l};function d(y,p){if(!p||!p.originalPath||!p.resolvedFileName)return;let{resolvedFileName:x,originalPath:h}=p;y.setSymlinkedFile(vi(h,e,t),x);let[D,w]=pM(x,h,e,t)||Xe;D&&w&&y.setSymlinkedDirectory(w,{real:D,realPath:vi(D,e,t)})}}function pM(e,t,n,i){let s=wi(Ta(e,n)),l=wi(Ta(t,n)),d=!1;for(;s.length>=2&&l.length>=2&&!sv(s[s.length-2],i)&&!sv(l[l.length-2],i)&&i(s[s.length-1])===i(l[l.length-1]);)s.pop(),l.pop(),d=!0;return d?[Vo(s),Vo(l)]:void 0}function sv(e,t){return e!==void 0&&(t(e)==="node_modules"||Jn(e,"@"))}function dM(e){return hg(e.charCodeAt(0))?e.slice(1):void 0}function fM(e,t,n){let i=rT(e,t,n);return i===void 0?void 0:dM(i)}function mM(e){return e.replace(Wf,yM)}function yM(e){return"\\"+e}function nf(e,t,n){let i=G2(e,t,n);return!i||!i.length?void 0:`^(${i.map(d=>`(${d})`).join("|")})${n==="exclude"?"($|/)":"$"}`}function G2(e,t,n){if(!(e===void 0||e.length===0))return Wo(e,i=>i&&aS(i,t,n,rb[n]))}function iS(e){return!/[.*?]/.test(e)}function hM(e,t,n){let i=e&&aS(e,t,n,rb[n]);return i&&`^(${i})${n==="exclude"?"($|/)":"$"}`}function aS(e,t,n,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:s,replaceWildcardCharacter:l}){let d="",y=!1,p=_m(e,t),x=ba(p);if(n!=="exclude"&&x==="**")return;p[0]=g_(p[0]),iS(x)&&p.push("**","*");let h=0;for(let D of p){if(D==="**")d+=s;else if(n==="directories"&&(d+="(",h++),y&&(d+=_r),n!=="exclude"){let w="";D.charCodeAt(0)===42?(w+="([^./]"+i+")?",D=D.substr(1)):D.charCodeAt(0)===63&&(w+="[^./]",D=D.substr(1)),w+=D.replace(Wf,l),w!==D&&(d+=af),d+=w}else d+=D.replace(Wf,l);y=!0}for(;h>0;)d+=")?",h--;return d}function Qy(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function oS(e,t,n,i,s){e=sr(e),s=sr(s);let l=yn(s,e);return{includeFilePatterns:ga(G2(n,l,"files"),d=>`^${d}$`),includeFilePattern:nf(n,l,"files"),includeDirectoryPattern:nf(n,l,"directories"),excludePattern:nf(t,l,"exclude"),basePaths:bM(e,n,i)}}function rf(e,t){return new RegExp(e,t?"":"i")}function gM(e,t,n,i,s,l,d,y,p){e=sr(e),l=sr(l);let x=oS(e,n,i,s,l),h=x.includeFilePatterns&&x.includeFilePatterns.map(oe=>rf(oe,s)),D=x.includeDirectoryPattern&&rf(x.includeDirectoryPattern,s),w=x.excludePattern&&rf(x.excludePattern,s),g=h?h.map(()=>[]):[[]],A=new Map,B=im(s);for(let oe of x.basePaths)G(oe,yn(l,oe),d);return r_(g);function G(oe,Q,W){let se=B(p(Q));if(A.has(se))return;A.set(se,!0);let{files:we,directories:Ze}=y(oe);for(let Ue of pf(we,xi)){let rt=yn(oe,Ue),ct=yn(Q,Ue);if(!(t&&!Wr(rt,t))&&!(w&&w.test(ct)))if(!h)g[0].push(rt);else{let Dn=el(h,sn=>sn.test(ct));Dn!==-1&&g[Dn].push(rt)}}if(!(W!==void 0&&(W--,W===0)))for(let Ue of pf(Ze,xi)){let rt=yn(oe,Ue),ct=yn(Q,Ue);(!D||D.test(ct))&&(!w||!w.test(ct))&&G(rt,ct,W)}}}function bM(e,t,n){let i=[e];if(t){let s=[];for(let l of t){let d=y_(l)?l:sr(yn(e,l));s.push(vM(d))}s.sort(ug(!n));for(let l of s)eo(i,d=>!mT(d,l,e,!n))&&i.push(l)}return i}function vM(e){let t=Rv(e,HS);return t<0?dT(e)?g_(Hi(e)):e:e.substring(0,e.lastIndexOf(_r,t))}function sS(e,t){return t||_S(e)||3}function _S(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}function cS(e,t){let n=e&&rS(e);if(!t||t.length===0)return n?Tl:Uo;let i=n?Tl:Uo,s=r_(i);return[...i,...Ka(t,d=>d.scriptKind===7||n&&TM(d.scriptKind)&&s.indexOf(d.extension)===-1?[d.extension]:void 0)]}function lS(e,t){return!e||!nS(e)?t:t===Tl?XS:t===Uo?KS:[...t,[".json"]]}function TM(e){return e===1||e===2}function X2(e){return ft(ab,t=>Ea(e,t))}function $2(e){return ft(ib,t=>Ea(e,t))}function uS({imports:e},t=fg(X2,$2)){return og(e,({text:n})=>is(n)&&!Wr(n,Wm)?t(n):void 0)||!1}function xM(e,t,n,i){if(e==="js"||t===99)return shouldAllowImportingTsExtension(n)&&s()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!shouldAllowImportingTsExtension(n))return uS(i)?2:0;return s();function s(){let l=!1,d=i.imports.length?i.imports.map(y=>y.text):p2(i)?SM(i).map(y=>y.arguments[0].text):Xe;for(let y of d)if(is(y)){if(Wr(y,Wm))continue;if($2(y))return 3;X2(y)&&(l=!0)}return l?2:0}}function SM(e){let t=0,n;for(let i of e.statements){if(t>3)break;S4(i)?n=d_(n,i.declarationList.declarations.map(s=>s.initializer)):Zl(i)&&Ll(i.expression,!0)?n=Tt(n,i.expression):t++}return n||Xe}function wM(e,t,n){if(!e)return!1;let i=cS(t,n);for(let s of r_(lS(t,i)))if(Ea(e,s))return!0;return!1}function _v(e){let t=e.match(/\//g);return t?t.length:0}function EM(e,t){return wn(_v(e),_v(t))}function bl(e){for(let t of Vm){let n=pS(e,t);if(n!==void 0)return n}return e}function pS(e,t){return Ea(e,t)?dS(e,t):void 0}function dS(e,t){return e.substring(0,e.length-t.length)}function CM(e,t){return fT(e,t,Vm,!1)}function fS(e){let t=e.indexOf("*");return t===-1?e:e.indexOf("*",t+1)!==-1?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function kM(e){return Ka(lg(e),t=>fS(t))}function wa(e){return!(e>=0)}function mS(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||Jn(e,".d.")&&rs(e,".ts")}function AM(e){return mS(e)||e===".json"}function Gc(e){let t=Q2(e);return t!==void 0?t:M.fail(`File ${e} has unknown extension.`)}function DM(e){return Q2(e)!==void 0}function Q2(e){return $n(Vm,t=>Ea(e,t))}function PM(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function NM(e,t){let n=[];for(let i of e){if(i===t)return t;m_(i)||n.push(i)}return nT(n,i=>i,t)}function IM(e,t){let n=e.indexOf(t);return M.assert(n!==-1),e.slice(n)}function Xc(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),M.assert(e.relatedInformation!==Xe,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function OM(e,t){M.assert(e.length!==0);let n=t(e[0]),i=n;for(let s=1;si&&(i=l)}return{min:n,max:i}}function MM(e){return{pos:Qo(e),end:e.end}}function LM(e,t){let n=t.pos-1,i=Math.min(e.text.length,It(e.text,t.end)+1);return{pos:n,end:i}}function JM(e,t,n){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||n.isSourceOfProjectReferenceRedirect(e.fileName)}function Y2(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&Hv(e,t,Y2)}function qm(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:let x=e.length-1,h=0;for(;e.charCodeAt(h)===48;)h++;return e.slice(h,x)||"0"}let n=2,i=e.length-1,s=(i-n)*t,l=new Uint16Array((s>>>4)+(s&15?1:0));for(let x=i-1,h=0;x>=n;x--,h+=t){let D=h>>>4,w=e.charCodeAt(x),A=(w<=57?w-48:10+w-(w<=70?65:97))<<(h&15);l[D]|=A;let B=A>>>16;B&&(l[D+1]|=B)}let d="",y=l.length-1,p=!0;for(;p;){let x=0;p=!1;for(let h=y;h>=0;h--){let D=x<<16|l[h],w=D/10|0;l[h]=w,x=D-w*10,w&&!p&&(y=h,p=!0)}d=x+d}return d}function Z2({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function RM(e){if(hS(e,!1))return yS(e)}function yS(e){let t=e.startsWith("-"),n=qm(`${t?e.slice(1):e}n`);return{negative:t,base10Value:n}}function hS(e,t){if(e==="")return!1;let n=as(99,!1),i=!0;n.setOnError(()=>i=!1),n.setText(e+"n");let s=n.scan(),l=s===41;l&&(s=n.scan());let d=n.getTokenFlags();return i&&s===10&&n.getTokenEnd()===e.length+1&&!(d&512)&&(!t||e===Z2({negative:l,base10Value:qm(n.getTokenValue())}))}function FM(e){return!!(e.flags&16777216)||g4(e)||UM(e)||BM(e)||!(u2(e)||jM(e))}function jM(e){return Ce(e)&&tu(e.parent)&&e.parent.name===e}function BM(e){for(;e.kind===80||e.kind===210;)e=e.parent;if(e.kind!==166)return!1;if(gn(e.parent,256))return!0;let t=e.parent.parent.kind;return t===263||t===186}function UM(e){if(e.kind!==80)return!1;let t=Xr(e.parent,n=>{switch(n.kind){case 297:return!0;case 210:case 232:return!1;default:return"quit"}});return(t==null?void 0:t.token)===119||(t==null?void 0:t.parent.kind)===263}function qM(e){return I_(e)&&Ce(e.typeName)}function zM(e,t=to){if(e.length<2)return!0;let n=e[0];for(let i=1,s=e.length;iGa(e,t))}function GM(e){if(!e.parent)return;switch(e.kind){case 167:let{parent:n}=e;return n.kind===194?void 0:n.typeParameters;case 168:return e.parent.parameters;case 203:return e.parent.templateSpans;case 238:return e.parent.templateSpans;case 169:{let{parent:i}=e;return a7(i)?i.modifiers:void 0}case 297:return e.parent.heritageClauses}let{parent:t}=e;if(Kg(e))return Ob(e.parent)?void 0:e.parent.tags;switch(t.kind){case 186:case 263:return Ug(e)?t.members:void 0;case 191:case 192:return t.types;case 188:case 208:case 360:case 274:case 278:return t.elements;case 209:case 291:return t.properties;case 212:case 213:return x0(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 283:case 287:return Bx(e)?t.children:void 0;case 285:case 284:return x0(e)?t.typeArguments:void 0;case 240:case 295:case 296:case 267:return t.statements;case 268:return t.clauses;case 262:case 230:return Qa(e)?t.members:void 0;case 265:return L8(e)?t.members:void 0;case 311:return t.statements}}function XM(e){if(!e.typeParameters){if(ft(e.parameters,t=>!M2(t)))return!0;if(e.kind!==218){let t=f_(e.parameters);if(!(t&&jl(t)))return!0}}return!1}function $M(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function TS(e){return e.kind===259&&e.parent.kind===298}function QM(e){let t=e.valueDeclaration&&Lm(e.valueDeclaration);return!!t&&(io(t)||TS(t))}function YM(e){return e.kind===217||e.kind===218}function ZM(e){return e.replace(/\$/gm,()=>"\\$")}function xS(e){return(+e).toString()===e}function eL(e,t,n,i){return Ag(e,t)?Ar.createIdentifier(e):!i&&xS(e)&&+e>=0?Ar.createNumericLiteral(+e):Ar.createStringLiteral(e,!!n)}function SS(e){return!!(e.flags&262144&&e.isThisType)}function tL(e){let t=0,n=0,i=0,s=0,l;(x=>{x[x.BeforeNodeModules=0]="BeforeNodeModules",x[x.NodeModules=1]="NodeModules",x[x.Scope=2]="Scope",x[x.PackageContent=3]="PackageContent"})(l||(l={}));let d=0,y=0,p=0;for(;y>=0;)switch(d=y,y=e.indexOf("/",d+1),p){case 0:e.indexOf(nodeModulesPathPart,d)===d&&(t=d,n=y,p=1);break;case 1:case 2:p===1&&e.charAt(d+1)==="@"?p=2:(i=y,p=3);break;case 3:e.indexOf(nodeModulesPathPart,d)===d?p=1:p=3;break}return s=d,p>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:n,packageRootIndex:i,fileNameIndex:s}:void 0}function nL(e){var t;return e.kind===347?(t=e.typeExpression)==null?void 0:t.type:e.type}function wS(e){switch(e.kind){case 167:case 262:case 263:case 264:case 265:case 352:case 344:case 346:return!0;case 272:return e.isTypeOnly;case 275:case 280:return e.parent.parent.isTypeOnly;default:return!1}}function rL(e){return Eb(e)||_s(e)||cs(e)||u_(e)||eu(e)||wS(e)||Gi(e)&&!$g(e)&&!Am(e)}function ES(e){if(!Mg(e))return!1;let{isBracketed:t,typeExpression:n}=e;return t||!!n&&n.type.kind===322}function iL(e,t){if(e.length===0)return!1;let n=e.charCodeAt(0);return n===35?e.length>1&&or(e.charCodeAt(1),t):or(n,t)}function CS(e){var t;return((t=getSnippetElement(e))==null?void 0:t.kind)===0}function kS(e){return Vt(e)&&(e.type&&e.type.kind===322||hm(e).some(({isBracketed:t,typeExpression:n})=>t||!!n&&n.type.kind===322))}function aL(e){switch(e.kind){case 171:case 170:return!!e.questionToken;case 168:return!!e.questionToken||kS(e);case 354:case 347:return ES(e);default:return!1}}function oL(e){let t=e.kind;return(t===210||t===211)&&qo(e.expression)}function sL(e){return Vt(e)&&ss(e)&&Ui(e)&&!!Ng(e)}function _L(e){return M.checkDefined(AS(e))}function AS(e){let t=Ng(e);return t&&t.typeExpression&&t.typeExpression.type}function cL(e){return Ce(e)?e.escapedText:Ul(e)}function lL(e){return Ce(e)?Ot(e):ql(e)}function uL(e){let t=e.kind;return t===80||t===294}function Ul(e){return`${e.namespace.escapedText}:${Ot(e.name)}`}function ql(e){return`${Ot(e.namespace)}:${Ot(e.name)}`}function pL(e){return Ce(e)?Ot(e):ql(e)}var DS,zm,PS,NS,$s,q0,eb,IS,OS,tb,MS,LS,z0,W0,V0,H0,JS,RS,FS,jS,BS,K0,US,qS,zS,Mo,ji,WS,VS,xt,nb,vl,Wf,HS,G0,af,Yy,Zy,eh,rb,Uo,ib,KS,GS,X0,ab,Tl,XS,ob,$S,Wm,$0,Vm,QS,dL=Ht({"src/compiler/utilities.ts"(){"use strict";En(),DS=[],zm="tslib",PS=160,NS=1e6,$s=FA(),q0=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(q0||{}),eb=/^(\/\/\/\s*/,IS=/^(\/\/\/\s*/,OS=/^(\/\/\/\s*/,tb=/^(\/\/\/\s*/,MS=/^\/\/\/\s*/,LS=/^(\/\/\/\s*/,z0=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(z0||{}),W0=(e=>(e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",e))(W0||{}),V0=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(V0||{}),H0=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(H0||{}),JS=/\$\{/g,RS=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,FS=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,jS=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,BS=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"})),K0=/[^\u0000-\u007F]/g,US=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,qS=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,zS=new Map(Object.entries({'"':""","'":"'"})),Mo=[""," "],ji="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",WS=`\r -`,VS=` -`,xt={getNodeConstructor:()=>$y,getTokenConstructor:()=>MO,getIdentifierConstructor:()=>LO,getPrivateIdentifierConstructor:()=>$y,getSourceFileConstructor:()=>$y,getSymbolConstructor:()=>NO,getTypeConstructor:()=>IO,getSignatureConstructor:()=>OO,getSourceMapSourceConstructor:()=>JO},nb=[],Wf=/[^\w\s\/]/g,HS=[42,63],G0=["node_modules","bower_components","jspm_packages"],af=`(?!(${G0.join("|")})(/|$))`,Yy={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${af}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Qy(e,Yy.singleAsteriskRegexFragment)},Zy={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${af}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Qy(e,Zy.singleAsteriskRegexFragment)},eh={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>Qy(e,eh.singleAsteriskRegexFragment)},rb={files:Yy,directories:Zy,exclude:eh},Uo=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],ib=r_(Uo),KS=[...Uo,[".json"]],GS=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],X0=[[".js",".jsx"],[".mjs"],[".cjs"]],ab=r_(X0),Tl=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],XS=[...Tl,[".json"]],ob=[".d.ts",".d.cts",".d.mts"],$S=[".ts",".cts",".mts",".tsx"],Wm=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],$0=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))($0||{}),Vm=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],QS={files:Xe,directories:Xe}}});function YS(){let e,t,n,i,s;return{createBaseSourceFileNode:l,createBaseIdentifierNode:d,createBasePrivateIdentifierNode:y,createBaseTokenNode:p,createBaseNode:x};function l(h){return new(s||(s=xt.getSourceFileConstructor()))(h,-1,-1)}function d(h){return new(n||(n=xt.getIdentifierConstructor()))(h,-1,-1)}function y(h){return new(i||(i=xt.getPrivateIdentifierConstructor()))(h,-1,-1)}function p(h){return new(t||(t=xt.getTokenConstructor()))(h,-1,-1)}function x(h){return new(e||(e=xt.getNodeConstructor()))(h,-1,-1)}}var fL=Ht({"src/compiler/factory/baseNodeFactory.ts"(){"use strict";En()}}),sb,mL=Ht({"src/compiler/factory/parenthesizerRules.ts"(){"use strict";En(),sb={getParenthesizeLeftSideOfBinaryForOperator:e=>ht,getParenthesizeRightSideOfBinaryForOperator:e=>ht,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,n)=>n,parenthesizeExpressionOfComputedPropertyName:ht,parenthesizeConditionOfConditionalExpression:ht,parenthesizeBranchOfConditionalExpression:ht,parenthesizeExpressionOfExportDefault:ht,parenthesizeExpressionOfNew:e=>mi(e,jo),parenthesizeLeftSideOfAccess:e=>mi(e,jo),parenthesizeOperandOfPostfixUnary:e=>mi(e,jo),parenthesizeOperandOfPrefixUnary:e=>mi(e,Mx),parenthesizeExpressionsOfCommaDelimitedList:e=>mi(e,ua),parenthesizeExpressionForDisallowedComma:ht,parenthesizeExpressionOfExpressionStatement:ht,parenthesizeConciseBodyOfArrowFunction:ht,parenthesizeCheckTypeOfConditionalType:ht,parenthesizeExtendsTypeOfConditionalType:ht,parenthesizeConstituentTypesOfUnionType:e=>mi(e,ua),parenthesizeConstituentTypeOfUnionType:ht,parenthesizeConstituentTypesOfIntersectionType:e=>mi(e,ua),parenthesizeConstituentTypeOfIntersectionType:ht,parenthesizeOperandOfTypeOperator:ht,parenthesizeOperandOfReadonlyTypeOperator:ht,parenthesizeNonArrayTypeOfPostfixType:ht,parenthesizeElementTypesOfTupleType:e=>mi(e,ua),parenthesizeElementTypeOfTupleType:ht,parenthesizeTypeOfOptionalType:ht,parenthesizeTypeArguments:e=>e&&mi(e,ua),parenthesizeLeadingTypeArgument:ht}}}),yL=()=>{},ZS=()=>new Proxy({},{get:()=>()=>{}});function hL(e){_b.push(e)}function Vf(e,t){let n=e&8?gL:bL,i=ah(()=>e&1?sb:createParenthesizerRules(oe)),s=ah(()=>e&2?nullNodeConverters:ZS(oe)),l=Cr(r=>(o,_)=>ic(o,r,_)),d=Cr(r=>o=>nc(r,o)),y=Cr(r=>o=>rc(o,r)),p=Cr(r=>()=>Q1(r)),x=Cr(r=>o=>Ns(r,o)),h=Cr(r=>(o,_)=>Op(r,o,_)),D=Cr(r=>(o,_)=>Ip(r,o,_)),w=Cr(r=>(o,_)=>Y1(r,o,_)),g=Cr(r=>(o,_)=>$p(r,o,_)),A=Cr(r=>(o,_,u)=>cy(r,o,_,u)),B=Cr(r=>(o,_,u)=>Qp(r,o,_,u)),G=Cr(r=>(o,_,u,b)=>ly(r,o,_,u,b)),oe={get parenthesizer(){return i()},get converters(){return s()},baseFactory:t,flags:e,createNodeArray:Q,createNumericLiteral:Ze,createBigIntLiteral:Ue,createStringLiteral:ct,createStringLiteralFromNode:Dn,createRegularExpressionLiteral:sn,createLiteralLikeNode:ei,createIdentifier:$e,createTempVariable:$t,createLoopVariable:jn,createUniqueName:Qt,getGeneratedNameForNode:fr,createPrivateIdentifier:dn,createUniquePrivateName:vt,getGeneratedPrivateNameForNode:Un,createToken:gt,createSuper:lt,createThis:Zt,createNull:zn,createTrue:mt,createFalse:mr,createModifier:bt,createModifiersFromModifierFlags:cn,createQualifiedName:dt,updateQualifiedName:Qn,createComputedPropertyName:ut,updateComputedPropertyName:Jt,createTypeParameterDeclaration:ln,updateTypeParameterDeclaration:yr,createParameterDeclaration:Or,updateParameterDeclaration:ti,createDecorator:Wn,updateDecorator:hr,createPropertySignature:Ci,updatePropertySignature:Ie,createPropertyDeclaration:de,updatePropertyDeclaration:be,createMethodSignature:Ee,updateMethodSignature:et,createMethodDeclaration:Qe,updateMethodDeclaration:ee,createConstructorDeclaration:We,updateConstructorDeclaration:Re,createGetAccessorDeclaration:Nt,updateGetAccessorDeclaration:Vn,createSetAccessorDeclaration:gr,updateSetAccessorDeclaration:ni,createCallSignature:na,updateCallSignature:Pa,createConstructSignature:br,updateConstructSignature:ii,createIndexSignature:ai,updateIndexSignature:ra,createClassStaticBlockDeclaration:ae,updateClassStaticBlockDeclaration:Te,createTemplateLiteralTypeSpan:Mr,updateTemplateLiteralTypeSpan:Nn,createKeywordTypeNode:Fe,createTypePredicateNode:ki,updateTypePredicateNode:wt,createTypeReferenceNode:j,updateTypeReferenceNode:E,createFunctionTypeNode:S,updateFunctionTypeNode:J,createConstructorTypeNode:ie,updateConstructorTypeNode:me,createTypeQueryNode:De,updateTypeQueryNode:ot,createTypeLiteralNode:st,updateTypeLiteralNode:Ye,createArrayTypeNode:Ft,updateArrayTypeNode:Et,createTupleTypeNode:bn,updateTupleTypeNode:Ct,createNamedTupleMember:Pe,updateNamedTupleMember:jt,createOptionalTypeNode:Yn,updateOptionalTypeNode:Pt,createRestTypeNode:Y,updateRestTypeNode:Le,createUnionTypeNode:Zn,updateUnionTypeNode:lo,createIntersectionTypeNode:Na,updateIntersectionTypeNode:vr,createConditionalTypeNode:Je,updateConditionalTypeNode:at,createInferTypeNode:pu,updateInferTypeNode:oi,createImportTypeNode:fu,updateImportTypeNode:Ai,createParenthesizedType:uo,updateParenthesizedType:In,createThisTypeNode:Bt,createTypeOperatorNode:F,updateTypeOperatorNode:Hn,createIndexedAccessTypeNode:Di,updateIndexedAccessTypeNode:ia,createMappedTypeNode:vs,updateMappedTypeNode:Ut,createLiteralTypeNode:zt,updateLiteralTypeNode:aa,createTemplateLiteralType:du,updateTemplateLiteralType:vn,createObjectBindingPattern:mu,updateObjectBindingPattern:b1,createArrayBindingPattern:oa,updateArrayBindingPattern:v1,createBindingElement:Ts,updateBindingElement:Ia,createArrayLiteralExpression:H_,updateArrayLiteralExpression:yu,createObjectLiteralExpression:po,updateObjectLiteralExpression:T1,createPropertyAccessExpression:e&4?(r,o)=>setEmitFlags(si(r,o),262144):si,updatePropertyAccessExpression:gu,createPropertyAccessChain:e&4?(r,o,_)=>setEmitFlags(Oa(r,o,_),262144):Oa,updatePropertyAccessChain:bu,createElementAccessExpression:K_,updateElementAccessExpression:x1,createElementAccessChain:G_,updateElementAccessChain:vu,createCallExpression:Pi,updateCallExpression:S1,createCallChain:X_,updateCallChain:er,createNewExpression:Ss,updateNewExpression:$_,createTaggedTemplateExpression:Q_,updateTaggedTemplateExpression:w1,createTypeAssertion:xu,updateTypeAssertion:Su,createParenthesizedExpression:Y_,updateParenthesizedExpression:wu,createFunctionExpression:Z_,updateFunctionExpression:Eu,createArrowFunction:ec,updateArrowFunction:Cu,createDeleteExpression:tc,updateDeleteExpression:E1,createTypeOfExpression:Tn,updateTypeOfExpression:C1,createVoidExpression:Tr,updateVoidExpression:k1,createAwaitExpression:Ni,updateAwaitExpression:Ma,createPrefixUnaryExpression:nc,updatePrefixUnaryExpression:ws,createPostfixUnaryExpression:rc,updatePostfixUnaryExpression:ku,createBinaryExpression:ic,updateBinaryExpression:A1,createConditionalExpression:ac,updateConditionalExpression:D1,createTemplateExpression:Lr,updateTemplateExpression:Du,createTemplateHead:Cs,createTemplateMiddle:sc,createTemplateTail:P1,createNoSubstitutionTemplateLiteral:Nu,createTemplateLiteralLikeNode:La,createYieldExpression:Iu,updateYieldExpression:N1,createSpreadElement:Ou,updateSpreadElement:I1,createClassExpression:Mu,updateClassExpression:ks,createOmittedExpression:O1,createExpressionWithTypeArguments:Lu,updateExpressionWithTypeArguments:tr,createAsExpression:As,updateAsExpression:Ju,createNonNullExpression:Ru,updateNonNullExpression:_c,createSatisfiesExpression:Fu,updateSatisfiesExpression:cc,createNonNullChain:xr,updateNonNullChain:ju,createMetaProperty:Ds,updateMetaProperty:_i,createTemplateSpan:mo,updateTemplateSpan:Bu,createSemicolonClassElement:Uu,createBlock:Ja,updateBlock:qu,createVariableStatement:zu,updateVariableStatement:Wu,createEmptyStatement:lc,createExpressionStatement:yo,updateExpressionStatement:M1,createIfStatement:uc,updateIfStatement:L1,createDoStatement:pc,updateDoStatement:J1,createWhileStatement:Vu,updateWhileStatement:R1,createForStatement:dc,updateForStatement:Hu,createForInStatement:Ku,updateForInStatement:F1,createForOfStatement:Gu,updateForOfStatement:j1,createContinueStatement:Xu,updateContinueStatement:$u,createBreakStatement:fc,updateBreakStatement:Qu,createReturnStatement:Yu,updateReturnStatement:B1,createWithStatement:mc,updateWithStatement:Zu,createSwitchStatement:yc,updateSwitchStatement:Ra,createLabeledStatement:ep,updateLabeledStatement:tp,createThrowStatement:np,updateThrowStatement:U1,createTryStatement:rp,updateTryStatement:q1,createDebuggerStatement:ip,createVariableDeclaration:Ps,updateVariableDeclaration:ap,createVariableDeclarationList:hc,updateVariableDeclarationList:z1,createFunctionDeclaration:op,updateFunctionDeclaration:gc,createClassDeclaration:sp,updateClassDeclaration:bc,createInterfaceDeclaration:_p,updateInterfaceDeclaration:cp,createTypeAliasDeclaration:yt,updateTypeAliasDeclaration:Ii,createEnumDeclaration:vc,updateEnumDeclaration:Oi,createModuleDeclaration:lp,updateModuleDeclaration:Mt,createModuleBlock:Mi,updateModuleBlock:un,createCaseBlock:up,updateCaseBlock:V1,createNamespaceExportDeclaration:pp,updateNamespaceExportDeclaration:dp,createImportEqualsDeclaration:fp,updateImportEqualsDeclaration:mp,createImportDeclaration:yp,updateImportDeclaration:hp,createImportClause:gp,updateImportClause:bp,createAssertClause:Tc,updateAssertClause:K1,createAssertEntry:ho,updateAssertEntry:vp,createImportTypeAssertionContainer:xc,updateImportTypeAssertionContainer:Tp,createNamespaceImport:xp,updateNamespaceImport:Sc,createNamespaceExport:Sp,updateNamespaceExport:wp,createNamedImports:Ep,updateNamedImports:G1,createImportSpecifier:Cp,updateImportSpecifier:X1,createExportAssignment:wc,updateExportAssignment:Ec,createExportDeclaration:ci,updateExportDeclaration:kp,createNamedExports:Fa,updateNamedExports:Dp,createExportSpecifier:Cc,updateExportSpecifier:go,createMissingDeclaration:$1,createExternalModuleReference:Pp,updateExternalModuleReference:Np,get createJSDocAllType(){return p(318)},get createJSDocUnknownType(){return p(319)},get createJSDocNonNullableType(){return D(321)},get updateJSDocNonNullableType(){return w(321)},get createJSDocNullableType(){return D(320)},get updateJSDocNullableType(){return w(320)},get createJSDocOptionalType(){return x(322)},get updateJSDocOptionalType(){return h(322)},get createJSDocVariadicType(){return x(324)},get updateJSDocVariadicType(){return h(324)},get createJSDocNamepathType(){return x(325)},get updateJSDocNamepathType(){return h(325)},createJSDocFunctionType:Mp,updateJSDocFunctionType:Z1,createJSDocTypeLiteral:Lp,updateJSDocTypeLiteral:ey,createJSDocTypeExpression:Jp,updateJSDocTypeExpression:ty,createJSDocSignature:Rp,updateJSDocSignature:ny,createJSDocTemplateTag:Fp,updateJSDocTemplateTag:Is,createJSDocTypedefTag:vo,updateJSDocTypedefTag:kc,createJSDocParameterTag:Ac,updateJSDocParameterTag:jp,createJSDocPropertyTag:Os,updateJSDocPropertyTag:ry,createJSDocCallbackTag:Dc,updateJSDocCallbackTag:iy,createJSDocOverloadTag:Bp,updateJSDocOverloadTag:Up,createJSDocAugmentsTag:qp,updateJSDocAugmentsTag:zp,createJSDocImplementsTag:Wp,updateJSDocImplementsTag:_y,createJSDocSeeTag:Ms,updateJSDocSeeTag:Vp,createJSDocNameReference:ja,updateJSDocNameReference:ay,createJSDocMemberName:sa,updateJSDocMemberName:Ls,createJSDocLink:Hp,updateJSDocLink:oy,createJSDocLinkCode:Kp,updateJSDocLinkCode:sy,createJSDocLinkPlain:Gp,updateJSDocLinkPlain:Xp,get createJSDocTypeTag(){return B(350)},get updateJSDocTypeTag(){return G(350)},get createJSDocReturnTag(){return B(348)},get updateJSDocReturnTag(){return G(348)},get createJSDocThisTag(){return B(349)},get updateJSDocThisTag(){return G(349)},get createJSDocAuthorTag(){return g(336)},get updateJSDocAuthorTag(){return A(336)},get createJSDocClassTag(){return g(338)},get updateJSDocClassTag(){return A(338)},get createJSDocPublicTag(){return g(339)},get updateJSDocPublicTag(){return A(339)},get createJSDocPrivateTag(){return g(340)},get updateJSDocPrivateTag(){return A(340)},get createJSDocProtectedTag(){return g(341)},get updateJSDocProtectedTag(){return A(341)},get createJSDocReadonlyTag(){return g(342)},get updateJSDocReadonlyTag(){return A(342)},get createJSDocOverrideTag(){return g(343)},get updateJSDocOverrideTag(){return A(343)},get createJSDocDeprecatedTag(){return g(337)},get updateJSDocDeprecatedTag(){return A(337)},get createJSDocThrowsTag(){return B(355)},get updateJSDocThrowsTag(){return G(355)},get createJSDocSatisfiesTag(){return B(356)},get updateJSDocSatisfiesTag(){return G(356)},createJSDocEnumTag:Zp,updateJSDocEnumTag:py,createJSDocUnknownTag:Yp,updateJSDocUnknownTag:uy,createJSDocText:ed,updateJSDocText:dy,createJSDocComment:td,updateJSDocComment:Pc,createJsxElement:nd,updateJsxElement:rd,createJsxSelfClosingElement:Nc,updateJsxSelfClosingElement:fy,createJsxOpeningElement:To,updateJsxOpeningElement:id,createJsxClosingElement:ad,updateJsxClosingElement:my,createJsxFragment:fn,createJsxText:xo,updateJsxText:yy,createJsxOpeningFragment:sd,createJsxJsxClosingFragment:hy,updateJsxFragment:od,createJsxAttribute:So,updateJsxAttribute:gy,createJsxAttributes:_d,updateJsxAttributes:by,createJsxSpreadAttribute:cd,updateJsxSpreadAttribute:Ic,createJsxExpression:Ba,updateJsxExpression:vy,createJsxNamespacedName:Js,updateJsxNamespacedName:ld,createCaseClause:ud,updateCaseClause:Oc,createDefaultClause:Mc,updateDefaultClause:Ty,createHeritageClause:pd,updateHeritageClause:dd,createCatchClause:Lc,updateCatchClause:fd,createPropertyAssignment:Li,updatePropertyAssignment:xy,createShorthandPropertyAssignment:md,updateShorthandPropertyAssignment:wy,createSpreadAssignment:Jc,updateSpreadAssignment:Rr,createEnumMember:Rc,updateEnumMember:Ey,createSourceFile:Cy,updateSourceFile:vd,createRedirectedSourceFile:hd,createBundle:Td,updateBundle:Ay,createUnparsedSource:Rs,createUnparsedPrologue:Dy,createUnparsedPrepend:Py,createUnparsedTextLike:Ny,createUnparsedSyntheticReference:Iy,createInputFiles:Oy,createSyntheticExpression:xd,createSyntaxList:Sd,createNotEmittedStatement:wd,createPartiallyEmittedExpression:Ed,updatePartiallyEmittedExpression:Cd,createCommaListExpression:js,updateCommaListExpression:My,createSyntheticReferenceExpression:Ad,updateSyntheticReferenceExpression:Ly,cloneNode:Bc,get createComma(){return l(28)},get createAssignment(){return l(64)},get createLogicalOr(){return l(57)},get createLogicalAnd(){return l(56)},get createBitwiseOr(){return l(52)},get createBitwiseXor(){return l(53)},get createBitwiseAnd(){return l(51)},get createStrictEquality(){return l(37)},get createStrictInequality(){return l(38)},get createEquality(){return l(35)},get createInequality(){return l(36)},get createLessThan(){return l(30)},get createLessThanEquals(){return l(33)},get createGreaterThan(){return l(32)},get createGreaterThanEquals(){return l(34)},get createLeftShift(){return l(48)},get createRightShift(){return l(49)},get createUnsignedRightShift(){return l(50)},get createAdd(){return l(40)},get createSubtract(){return l(41)},get createMultiply(){return l(42)},get createDivide(){return l(44)},get createModulo(){return l(45)},get createExponent(){return l(43)},get createPrefixPlus(){return d(40)},get createPrefixMinus(){return d(41)},get createPrefixIncrement(){return d(46)},get createPrefixDecrement(){return d(47)},get createBitwiseNot(){return d(55)},get createLogicalNot(){return d(54)},get createPostfixIncrement(){return y(46)},get createPostfixDecrement(){return y(47)},createImmediatelyInvokedFunctionExpression:jy,createImmediatelyInvokedArrowFunction:By,createVoidZero:Bs,createExportDefault:Us,createExternalModuleExport:Uy,createTypeCheck:Dd,createMethodCall:_a,createGlobalMethodCall:wo,createFunctionBindCall:qy,createFunctionCallCall:Pd,createFunctionApplyCall:zy,createArraySliceCall:Wy,createArrayConcatCall:Nd,createObjectDefinePropertyCall:Id,createObjectGetOwnPropertyDescriptorCall:Od,createReflectGetCall:c,createReflectSetCall:f,createPropertyDescriptor:C,createCallBinding:ce,createAssignmentTargetWrapper:ve,inlineExpressions:Ge,getInternalName:Be,getLocalName:Lt,getExportName:On,getDeclarationName:ca,getNamespaceMemberName:li,getExternalModuleOrNamespaceExportName:Ji,restoreOuterExpressions:ne,restoreEnclosingLabel:_e,createUseStrictPrologue:Uc,copyPrologue:Ri,copyStandardPrologue:Md,copyCustomPrologue:qc,ensureUseStrict:Vy,liftToBlock:Ld,mergeLexicalEnvironment:Fi,updateModifiers:Jd};return hn(_b,r=>r(oe)),oe;function Q(r,o){if(r===void 0||r===Xe)r=[];else if(ua(r)){if(o===void 0||r.hasTrailingComma===o)return r.transformFlags===void 0&&cv(r),M.attachNodeArrayDebugInfo(r),r;let b=r.slice();return b.pos=r.pos,b.end=r.end,b.hasTrailingComma=o,b.transformFlags=r.transformFlags,M.attachNodeArrayDebugInfo(b),b}let _=r.length,u=_>=1&&_<=4?r.slice():r;return u.pos=-1,u.end=-1,u.hasTrailingComma=!!o,u.transformFlags=0,cv(u),M.attachNodeArrayDebugInfo(u),u}function W(r){return t.createBaseNode(r)}function se(r){let o=W(r);return o.symbol=void 0,o.localSymbol=void 0,o}function we(r,o){return r!==o&&(r.typeArguments=o.typeArguments),n(r,o)}function Ze(r,o=0){let _=se(9);return _.text=typeof r=="number"?r+"":r,_.numericLiteralFlags=o,o&384&&(_.transformFlags|=1024),_}function Ue(r){let o=qn(10);return o.text=typeof r=="string"?r:Z2(r)+"n",o.transformFlags|=32,o}function rt(r,o){let _=se(11);return _.text=r,_.singleQuote=o,_}function ct(r,o,_){let u=rt(r,o);return u.hasExtendedUnicodeEscape=_,_&&(u.transformFlags|=1024),u}function Dn(r){let o=rt(Rf(r),void 0);return o.textSourceNode=r,o}function sn(r){let o=qn(14);return o.text=r,o}function ei(r,o){switch(r){case 9:return Ze(o,0);case 10:return Ue(o);case 11:return ct(o,void 0);case 12:return xo(o,!1);case 13:return xo(o,!0);case 14:return sn(o);case 15:return La(r,o,void 0,0)}}function _n(r){let o=t.createBaseIdentifierNode(80);return o.escapedText=r,o.jsDoc=void 0,o.flowNode=void 0,o.symbol=void 0,o}function Pn(r,o,_,u){let b=_n(Ur(r));return setIdentifierAutoGenerate(b,{flags:o,id:$c,prefix:_,suffix:u}),$c++,b}function $e(r,o,_){o===void 0&&r&&(o=Al(r)),o===80&&(o=void 0);let u=_n(Ur(r));return _&&(u.flags|=128),u.escapedText==="await"&&(u.transformFlags|=67108864),u.flags&128&&(u.transformFlags|=1024),u}function $t(r,o,_,u){let b=1;o&&(b|=8);let I=Pn("",b,_,u);return r&&r(I),I}function jn(r){let o=2;return r&&(o|=8),Pn("",o,void 0,void 0)}function Qt(r,o=0,_,u){return M.assert(!(o&7),"Argument out of range: flags"),M.assert((o&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),Pn(r,3|o,_,u)}function fr(r,o=0,_,u){M.assert(!(o&7),"Argument out of range: flags");let b=r?$a(r)?Gf(!1,_,r,u,Ot):`generated@${getNodeId(r)}`:"";(_||u)&&(o|=16);let I=Pn(b,4|o,_,u);return I.original=r,I}function Bn(r){let o=t.createBasePrivateIdentifierNode(81);return o.escapedText=r,o.transformFlags|=16777216,o}function dn(r){return Jn(r,"#")||M.fail("First character of private identifier must be #: "+r),Bn(Ur(r))}function Yt(r,o,_,u){let b=Bn(Ur(r));return setIdentifierAutoGenerate(b,{flags:o,id:$c,prefix:_,suffix:u}),$c++,b}function vt(r,o,_){r&&!Jn(r,"#")&&M.fail("First character of private identifier must be #: "+r);let u=8|(r?3:1);return Yt(r??"",u,o,_)}function Un(r,o,_){let u=$a(r)?Gf(!0,o,r,_,Ot):`#generated@${getNodeId(r)}`,I=Yt(u,4|(o||_?16:0),o,_);return I.original=r,I}function qn(r){return t.createBaseTokenNode(r)}function gt(r){M.assert(r>=0&&r<=164,"Invalid token"),M.assert(r<=15||r>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),M.assert(r<=9||r>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),M.assert(r!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let o=qn(r),_=0;switch(r){case 134:_=384;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 162:case 146:case 151:case 103:case 147:case 163:case 154:case 136:case 155:case 116:case 159:case 157:_=1;break;case 108:_=134218752,o.flowNode=void 0;break;case 126:_=1024;break;case 129:_=16777216;break;case 110:_=16384,o.flowNode=void 0;break}return _&&(o.transformFlags|=_),o}function lt(){return gt(108)}function Zt(){return gt(110)}function zn(){return gt(106)}function mt(){return gt(112)}function mr(){return gt(97)}function bt(r){return gt(r)}function cn(r){let o=[];return r&1&&o.push(bt(95)),r&2&&o.push(bt(138)),r&1024&&o.push(bt(90)),r&2048&&o.push(bt(87)),r&4&&o.push(bt(125)),r&8&&o.push(bt(123)),r&16&&o.push(bt(124)),r&256&&o.push(bt(128)),r&32&&o.push(bt(126)),r&16384&&o.push(bt(163)),r&64&&o.push(bt(148)),r&128&&o.push(bt(129)),r&512&&o.push(bt(134)),r&32768&&o.push(bt(103)),r&65536&&o.push(bt(147)),o.length?o:void 0}function dt(r,o){let _=W(165);return _.left=r,_.right=nt(o),_.transformFlags|=$(_.left)|Qs(_.right),_.flowNode=void 0,_}function Qn(r,o,_){return r.left!==o||r.right!==_?n(dt(o,_),r):r}function ut(r){let o=W(166);return o.expression=i().parenthesizeExpressionOfComputedPropertyName(r),o.transformFlags|=$(o.expression)|1024|131072,o}function Jt(r,o){return r.expression!==o?n(ut(o),r):r}function ln(r,o,_,u){let b=se(167);return b.modifiers=Se(r),b.name=nt(o),b.constraint=_,b.default=u,b.transformFlags=1,b.expression=void 0,b.jsDoc=void 0,b}function yr(r,o,_,u,b){return r.modifiers!==o||r.name!==_||r.constraint!==u||r.default!==b?n(ln(o,_,u,b),r):r}function Or(r,o,_,u,b,I){let X=se(168);return X.modifiers=Se(r),X.dotDotDotToken=o,X.name=nt(_),X.questionToken=u,X.type=b,X.initializer=Eo(I),Jm(X.name)?X.transformFlags=1:X.transformFlags=Ne(X.modifiers)|$(X.dotDotDotToken)|Er(X.name)|$(X.questionToken)|$(X.initializer)|(X.questionToken??X.type?1:0)|(X.dotDotDotToken??X.initializer?1024:0)|(ar(X.modifiers)&16476?8192:0),X.jsDoc=void 0,X}function ti(r,o,_,u,b,I,X){return r.modifiers!==o||r.dotDotDotToken!==_||r.name!==u||r.questionToken!==b||r.type!==I||r.initializer!==X?n(Or(o,_,u,b,I,X),r):r}function Wn(r){let o=W(169);return o.expression=i().parenthesizeLeftSideOfAccess(r,!1),o.transformFlags|=$(o.expression)|1|8192|33554432,o}function hr(r,o){return r.expression!==o?n(Wn(o),r):r}function Ci(r,o,_,u){let b=se(170);return b.modifiers=Se(r),b.name=nt(o),b.type=u,b.questionToken=_,b.transformFlags=1,b.initializer=void 0,b.jsDoc=void 0,b}function Ie(r,o,_,u,b){return r.modifiers!==o||r.name!==_||r.questionToken!==u||r.type!==b?H(Ci(o,_,u,b),r):r}function H(r,o){return r!==o&&(r.initializer=o.initializer),n(r,o)}function de(r,o,_,u,b){let I=se(171);I.modifiers=Se(r),I.name=nt(o),I.questionToken=_&&xl(_)?_:void 0,I.exclamationToken=_&&Kf(_)?_:void 0,I.type=u,I.initializer=Eo(b);let X=I.flags&16777216||ar(I.modifiers)&2;return I.transformFlags=Ne(I.modifiers)|Er(I.name)|$(I.initializer)|(X||I.questionToken||I.exclamationToken||I.type?1:0)|(Za(I.name)||ar(I.modifiers)&32&&I.initializer?8192:0)|16777216,I.jsDoc=void 0,I}function be(r,o,_,u,b,I){return r.modifiers!==o||r.name!==_||r.questionToken!==(u!==void 0&&xl(u)?u:void 0)||r.exclamationToken!==(u!==void 0&&Kf(u)?u:void 0)||r.type!==b||r.initializer!==I?n(de(o,_,u,b,I),r):r}function Ee(r,o,_,u,b,I){let X=se(172);return X.modifiers=Se(r),X.name=nt(o),X.questionToken=_,X.typeParameters=Se(u),X.parameters=Se(b),X.type=I,X.transformFlags=1,X.jsDoc=void 0,X.locals=void 0,X.nextContainer=void 0,X.typeArguments=void 0,X}function et(r,o,_,u,b,I,X){return r.modifiers!==o||r.name!==_||r.questionToken!==u||r.typeParameters!==b||r.parameters!==I||r.type!==X?we(Ee(o,_,u,b,I,X),r):r}function Qe(r,o,_,u,b,I,X,ge){let Ve=se(173);if(Ve.modifiers=Se(r),Ve.asteriskToken=o,Ve.name=nt(_),Ve.questionToken=u,Ve.exclamationToken=void 0,Ve.typeParameters=Se(b),Ve.parameters=Q(I),Ve.type=X,Ve.body=ge,!Ve.body)Ve.transformFlags=1;else{let xn=ar(Ve.modifiers)&512,di=!!Ve.asteriskToken,fi=xn&&di;Ve.transformFlags=Ne(Ve.modifiers)|$(Ve.asteriskToken)|Er(Ve.name)|$(Ve.questionToken)|Ne(Ve.typeParameters)|Ne(Ve.parameters)|$(Ve.type)|$(Ve.body)&-67108865|(fi?128:xn?256:di?2048:0)|(Ve.questionToken||Ve.typeParameters||Ve.type?1:0)|1024}return Ve.typeArguments=void 0,Ve.jsDoc=void 0,Ve.locals=void 0,Ve.nextContainer=void 0,Ve.flowNode=void 0,Ve.endFlowNode=void 0,Ve.returnFlowNode=void 0,Ve}function ee(r,o,_,u,b,I,X,ge,Ve){return r.modifiers!==o||r.asteriskToken!==_||r.name!==u||r.questionToken!==b||r.typeParameters!==I||r.parameters!==X||r.type!==ge||r.body!==Ve?Z(Qe(o,_,u,b,I,X,ge,Ve),r):r}function Z(r,o){return r!==o&&(r.exclamationToken=o.exclamationToken),n(r,o)}function ae(r){let o=se(174);return o.body=r,o.transformFlags=$(r)|16777216,o.modifiers=void 0,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.endFlowNode=void 0,o.returnFlowNode=void 0,o}function Te(r,o){return r.body!==o?Oe(ae(o),r):r}function Oe(r,o){return r!==o&&(r.modifiers=o.modifiers),n(r,o)}function We(r,o,_){let u=se(175);return u.modifiers=Se(r),u.parameters=Q(o),u.body=_,u.transformFlags=Ne(u.modifiers)|Ne(u.parameters)|$(u.body)&-67108865|1024,u.typeParameters=void 0,u.type=void 0,u.typeArguments=void 0,u.jsDoc=void 0,u.locals=void 0,u.nextContainer=void 0,u.endFlowNode=void 0,u.returnFlowNode=void 0,u}function Re(r,o,_,u){return r.modifiers!==o||r.parameters!==_||r.body!==u?Rt(We(o,_,u),r):r}function Rt(r,o){return r!==o&&(r.typeParameters=o.typeParameters,r.type=o.type),we(r,o)}function Nt(r,o,_,u,b){let I=se(176);return I.modifiers=Se(r),I.name=nt(o),I.parameters=Q(_),I.type=u,I.body=b,I.body?I.transformFlags=Ne(I.modifiers)|Er(I.name)|Ne(I.parameters)|$(I.type)|$(I.body)&-67108865|(I.type?1:0):I.transformFlags=1,I.typeArguments=void 0,I.typeParameters=void 0,I.jsDoc=void 0,I.locals=void 0,I.nextContainer=void 0,I.flowNode=void 0,I.endFlowNode=void 0,I.returnFlowNode=void 0,I}function Vn(r,o,_,u,b,I){return r.modifiers!==o||r.name!==_||r.parameters!==u||r.type!==b||r.body!==I?ta(Nt(o,_,u,b,I),r):r}function ta(r,o){return r!==o&&(r.typeParameters=o.typeParameters),we(r,o)}function gr(r,o,_,u){let b=se(177);return b.modifiers=Se(r),b.name=nt(o),b.parameters=Q(_),b.body=u,b.body?b.transformFlags=Ne(b.modifiers)|Er(b.name)|Ne(b.parameters)|$(b.body)&-67108865|(b.type?1:0):b.transformFlags=1,b.typeArguments=void 0,b.typeParameters=void 0,b.type=void 0,b.jsDoc=void 0,b.locals=void 0,b.nextContainer=void 0,b.flowNode=void 0,b.endFlowNode=void 0,b.returnFlowNode=void 0,b}function ni(r,o,_,u,b){return r.modifiers!==o||r.name!==_||r.parameters!==u||r.body!==b?ri(gr(o,_,u,b),r):r}function ri(r,o){return r!==o&&(r.typeParameters=o.typeParameters,r.type=o.type),we(r,o)}function na(r,o,_){let u=se(178);return u.typeParameters=Se(r),u.parameters=Se(o),u.type=_,u.transformFlags=1,u.jsDoc=void 0,u.locals=void 0,u.nextContainer=void 0,u.typeArguments=void 0,u}function Pa(r,o,_,u){return r.typeParameters!==o||r.parameters!==_||r.type!==u?we(na(o,_,u),r):r}function br(r,o,_){let u=se(179);return u.typeParameters=Se(r),u.parameters=Se(o),u.type=_,u.transformFlags=1,u.jsDoc=void 0,u.locals=void 0,u.nextContainer=void 0,u.typeArguments=void 0,u}function ii(r,o,_,u){return r.typeParameters!==o||r.parameters!==_||r.type!==u?we(br(o,_,u),r):r}function ai(r,o,_){let u=se(180);return u.modifiers=Se(r),u.parameters=Se(o),u.type=_,u.transformFlags=1,u.jsDoc=void 0,u.locals=void 0,u.nextContainer=void 0,u.typeArguments=void 0,u}function ra(r,o,_,u){return r.parameters!==_||r.type!==u||r.modifiers!==o?we(ai(o,_,u),r):r}function Mr(r,o){let _=W(203);return _.type=r,_.literal=o,_.transformFlags=1,_}function Nn(r,o,_){return r.type!==o||r.literal!==_?n(Mr(o,_),r):r}function Fe(r){return gt(r)}function ki(r,o,_){let u=W(181);return u.assertsModifier=r,u.parameterName=nt(o),u.type=_,u.transformFlags=1,u}function wt(r,o,_,u){return r.assertsModifier!==o||r.parameterName!==_||r.type!==u?n(ki(o,_,u),r):r}function j(r,o){let _=W(182);return _.typeName=nt(r),_.typeArguments=o&&i().parenthesizeTypeArguments(Q(o)),_.transformFlags=1,_}function E(r,o,_){return r.typeName!==o||r.typeArguments!==_?n(j(o,_),r):r}function S(r,o,_){let u=se(183);return u.typeParameters=Se(r),u.parameters=Se(o),u.type=_,u.transformFlags=1,u.modifiers=void 0,u.jsDoc=void 0,u.locals=void 0,u.nextContainer=void 0,u.typeArguments=void 0,u}function J(r,o,_,u){return r.typeParameters!==o||r.parameters!==_||r.type!==u?m(S(o,_,u),r):r}function m(r,o){return r!==o&&(r.modifiers=o.modifiers),we(r,o)}function ie(...r){return r.length===4?he(...r):r.length===3?R(...r):M.fail("Incorrect number of arguments specified.")}function he(r,o,_,u){let b=se(184);return b.modifiers=Se(r),b.typeParameters=Se(o),b.parameters=Se(_),b.type=u,b.transformFlags=1,b.jsDoc=void 0,b.locals=void 0,b.nextContainer=void 0,b.typeArguments=void 0,b}function R(r,o,_){return he(void 0,r,o,_)}function me(...r){return r.length===5?Ae(...r):r.length===4?ke(...r):M.fail("Incorrect number of arguments specified.")}function Ae(r,o,_,u,b){return r.modifiers!==o||r.typeParameters!==_||r.parameters!==u||r.type!==b?we(ie(o,_,u,b),r):r}function ke(r,o,_,u){return Ae(r,r.modifiers,o,_,u)}function De(r,o){let _=W(185);return _.exprName=r,_.typeArguments=o&&i().parenthesizeTypeArguments(o),_.transformFlags=1,_}function ot(r,o,_){return r.exprName!==o||r.typeArguments!==_?n(De(o,_),r):r}function st(r){let o=se(186);return o.members=Q(r),o.transformFlags=1,o}function Ye(r,o){return r.members!==o?n(st(o),r):r}function Ft(r){let o=W(187);return o.elementType=i().parenthesizeNonArrayTypeOfPostfixType(r),o.transformFlags=1,o}function Et(r,o){return r.elementType!==o?n(Ft(o),r):r}function bn(r){let o=W(188);return o.elements=Q(i().parenthesizeElementTypesOfTupleType(r)),o.transformFlags=1,o}function Ct(r,o){return r.elements!==o?n(bn(o),r):r}function Pe(r,o,_,u){let b=se(201);return b.dotDotDotToken=r,b.name=o,b.questionToken=_,b.type=u,b.transformFlags=1,b.jsDoc=void 0,b}function jt(r,o,_,u,b){return r.dotDotDotToken!==o||r.name!==_||r.questionToken!==u||r.type!==b?n(Pe(o,_,u,b),r):r}function Yn(r){let o=W(189);return o.type=i().parenthesizeTypeOfOptionalType(r),o.transformFlags=1,o}function Pt(r,o){return r.type!==o?n(Yn(o),r):r}function Y(r){let o=W(190);return o.type=r,o.transformFlags=1,o}function Le(r,o){return r.type!==o?n(Y(o),r):r}function _t(r,o,_){let u=W(r);return u.types=oe.createNodeArray(_(o)),u.transformFlags=1,u}function en(r,o,_){return r.types!==o?n(_t(r.kind,o,_),r):r}function Zn(r){return _t(191,r,i().parenthesizeConstituentTypesOfUnionType)}function lo(r,o){return en(r,o,i().parenthesizeConstituentTypesOfUnionType)}function Na(r){return _t(192,r,i().parenthesizeConstituentTypesOfIntersectionType)}function vr(r,o){return en(r,o,i().parenthesizeConstituentTypesOfIntersectionType)}function Je(r,o,_,u){let b=W(193);return b.checkType=i().parenthesizeCheckTypeOfConditionalType(r),b.extendsType=i().parenthesizeExtendsTypeOfConditionalType(o),b.trueType=_,b.falseType=u,b.transformFlags=1,b.locals=void 0,b.nextContainer=void 0,b}function at(r,o,_,u,b){return r.checkType!==o||r.extendsType!==_||r.trueType!==u||r.falseType!==b?n(Je(o,_,u,b),r):r}function pu(r){let o=W(194);return o.typeParameter=r,o.transformFlags=1,o}function oi(r,o){return r.typeParameter!==o?n(pu(o),r):r}function du(r,o){let _=W(202);return _.head=r,_.templateSpans=Q(o),_.transformFlags=1,_}function vn(r,o,_){return r.head!==o||r.templateSpans!==_?n(du(o,_),r):r}function fu(r,o,_,u,b=!1){let I=W(204);return I.argument=r,I.assertions=o,I.qualifier=_,I.typeArguments=u&&i().parenthesizeTypeArguments(u),I.isTypeOf=b,I.transformFlags=1,I}function Ai(r,o,_,u,b,I=r.isTypeOf){return r.argument!==o||r.assertions!==_||r.qualifier!==u||r.typeArguments!==b||r.isTypeOf!==I?n(fu(o,_,u,b,I),r):r}function uo(r){let o=W(195);return o.type=r,o.transformFlags=1,o}function In(r,o){return r.type!==o?n(uo(o),r):r}function Bt(){let r=W(196);return r.transformFlags=1,r}function F(r,o){let _=W(197);return _.operator=r,_.type=r===148?i().parenthesizeOperandOfReadonlyTypeOperator(o):i().parenthesizeOperandOfTypeOperator(o),_.transformFlags=1,_}function Hn(r,o){return r.type!==o?n(F(r.operator,o),r):r}function Di(r,o){let _=W(198);return _.objectType=i().parenthesizeNonArrayTypeOfPostfixType(r),_.indexType=o,_.transformFlags=1,_}function ia(r,o,_){return r.objectType!==o||r.indexType!==_?n(Di(o,_),r):r}function vs(r,o,_,u,b,I){let X=se(199);return X.readonlyToken=r,X.typeParameter=o,X.nameType=_,X.questionToken=u,X.type=b,X.members=I&&Q(I),X.transformFlags=1,X.locals=void 0,X.nextContainer=void 0,X}function Ut(r,o,_,u,b,I,X){return r.readonlyToken!==o||r.typeParameter!==_||r.nameType!==u||r.questionToken!==b||r.type!==I||r.members!==X?n(vs(o,_,u,b,I,X),r):r}function zt(r){let o=W(200);return o.literal=r,o.transformFlags=1,o}function aa(r,o){return r.literal!==o?n(zt(o),r):r}function mu(r){let o=W(205);return o.elements=Q(r),o.transformFlags|=Ne(o.elements)|1024|524288,o.transformFlags&32768&&(o.transformFlags|=65664),o}function b1(r,o){return r.elements!==o?n(mu(o),r):r}function oa(r){let o=W(206);return o.elements=Q(r),o.transformFlags|=Ne(o.elements)|1024|524288,o}function v1(r,o){return r.elements!==o?n(oa(o),r):r}function Ts(r,o,_,u){let b=se(207);return b.dotDotDotToken=r,b.propertyName=nt(o),b.name=nt(_),b.initializer=Eo(u),b.transformFlags|=$(b.dotDotDotToken)|Er(b.propertyName)|Er(b.name)|$(b.initializer)|(b.dotDotDotToken?32768:0)|1024,b.flowNode=void 0,b}function Ia(r,o,_,u,b){return r.propertyName!==_||r.dotDotDotToken!==o||r.name!==u||r.initializer!==b?n(Ts(o,_,u,b),r):r}function H_(r,o){let _=W(208),u=r&&Ti(r),b=Q(r,u&&Qm(u)?!0:void 0);return _.elements=i().parenthesizeExpressionsOfCommaDelimitedList(b),_.multiLine=o,_.transformFlags|=Ne(_.elements),_}function yu(r,o){return r.elements!==o?n(H_(o,r.multiLine),r):r}function po(r,o){let _=se(209);return _.properties=Q(r),_.multiLine=o,_.transformFlags|=Ne(_.properties),_.jsDoc=void 0,_}function T1(r,o){return r.properties!==o?n(po(o,r.multiLine),r):r}function hu(r,o,_){let u=se(210);return u.expression=r,u.questionDotToken=o,u.name=_,u.transformFlags=$(u.expression)|$(u.questionDotToken)|(Ce(u.name)?Qs(u.name):$(u.name)|536870912),u.jsDoc=void 0,u.flowNode=void 0,u}function si(r,o){let _=hu(i().parenthesizeLeftSideOfAccess(r,!1),void 0,nt(o));return of(r)&&(_.transformFlags|=384),_}function gu(r,o,_){return fx(r)?bu(r,o,r.questionDotToken,mi(_,Ce)):r.expression!==o||r.name!==_?n(si(o,_),r):r}function Oa(r,o,_){let u=hu(i().parenthesizeLeftSideOfAccess(r,!0),o,nt(_));return u.flags|=32,u.transformFlags|=32,u}function bu(r,o,_,u){return M.assert(!!(r.flags&32),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),r.expression!==o||r.questionDotToken!==_||r.name!==u?n(Oa(o,_,u),r):r}function xs(r,o,_){let u=se(211);return u.expression=r,u.questionDotToken=o,u.argumentExpression=_,u.transformFlags|=$(u.expression)|$(u.questionDotToken)|$(u.argumentExpression),u.jsDoc=void 0,u.flowNode=void 0,u}function K_(r,o){let _=xs(i().parenthesizeLeftSideOfAccess(r,!1),void 0,ui(o));return of(r)&&(_.transformFlags|=384),_}function x1(r,o,_){return mx(r)?vu(r,o,r.questionDotToken,_):r.expression!==o||r.argumentExpression!==_?n(K_(o,_),r):r}function G_(r,o,_){let u=xs(i().parenthesizeLeftSideOfAccess(r,!0),o,ui(_));return u.flags|=32,u.transformFlags|=32,u}function vu(r,o,_,u){return M.assert(!!(r.flags&32),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),r.expression!==o||r.questionDotToken!==_||r.argumentExpression!==u?n(G_(o,_,u),r):r}function Tu(r,o,_,u){let b=se(212);return b.expression=r,b.questionDotToken=o,b.typeArguments=_,b.arguments=u,b.transformFlags|=$(b.expression)|$(b.questionDotToken)|Ne(b.typeArguments)|Ne(b.arguments),b.typeArguments&&(b.transformFlags|=1),Lf(b.expression)&&(b.transformFlags|=16384),b}function Pi(r,o,_){let u=Tu(i().parenthesizeLeftSideOfAccess(r,!1),void 0,Se(o),i().parenthesizeExpressionsOfCommaDelimitedList(Q(_)));return s8(u.expression)&&(u.transformFlags|=8388608),u}function S1(r,o,_,u){return T0(r)?er(r,o,r.questionDotToken,_,u):r.expression!==o||r.typeArguments!==_||r.arguments!==u?n(Pi(o,_,u),r):r}function X_(r,o,_,u){let b=Tu(i().parenthesizeLeftSideOfAccess(r,!0),o,Se(_),i().parenthesizeExpressionsOfCommaDelimitedList(Q(u)));return b.flags|=32,b.transformFlags|=32,b}function er(r,o,_,u,b){return M.assert(!!(r.flags&32),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),r.expression!==o||r.questionDotToken!==_||r.typeArguments!==u||r.arguments!==b?n(X_(o,_,u,b),r):r}function Ss(r,o,_){let u=se(213);return u.expression=i().parenthesizeExpressionOfNew(r),u.typeArguments=Se(o),u.arguments=_?i().parenthesizeExpressionsOfCommaDelimitedList(_):void 0,u.transformFlags|=$(u.expression)|Ne(u.typeArguments)|Ne(u.arguments)|32,u.typeArguments&&(u.transformFlags|=1),u}function $_(r,o,_,u){return r.expression!==o||r.typeArguments!==_||r.arguments!==u?n(Ss(o,_,u),r):r}function Q_(r,o,_){let u=W(214);return u.tag=i().parenthesizeLeftSideOfAccess(r,!1),u.typeArguments=Se(o),u.template=_,u.transformFlags|=$(u.tag)|Ne(u.typeArguments)|$(u.template)|1024,u.typeArguments&&(u.transformFlags|=1),i3(u.template)&&(u.transformFlags|=128),u}function w1(r,o,_,u){return r.tag!==o||r.typeArguments!==_||r.template!==u?n(Q_(o,_,u),r):r}function xu(r,o){let _=W(215);return _.expression=i().parenthesizeOperandOfPrefixUnary(o),_.type=r,_.transformFlags|=$(_.expression)|$(_.type)|1,_}function Su(r,o,_){return r.type!==o||r.expression!==_?n(xu(o,_),r):r}function Y_(r){let o=W(216);return o.expression=r,o.transformFlags=$(o.expression),o.jsDoc=void 0,o}function wu(r,o){return r.expression!==o?n(Y_(o),r):r}function Z_(r,o,_,u,b,I,X){let ge=se(217);ge.modifiers=Se(r),ge.asteriskToken=o,ge.name=nt(_),ge.typeParameters=Se(u),ge.parameters=Q(b),ge.type=I,ge.body=X;let Ve=ar(ge.modifiers)&512,xn=!!ge.asteriskToken,di=Ve&&xn;return ge.transformFlags=Ne(ge.modifiers)|$(ge.asteriskToken)|Er(ge.name)|Ne(ge.typeParameters)|Ne(ge.parameters)|$(ge.type)|$(ge.body)&-67108865|(di?128:Ve?256:xn?2048:0)|(ge.typeParameters||ge.type?1:0)|4194304,ge.typeArguments=void 0,ge.jsDoc=void 0,ge.locals=void 0,ge.nextContainer=void 0,ge.flowNode=void 0,ge.endFlowNode=void 0,ge.returnFlowNode=void 0,ge}function Eu(r,o,_,u,b,I,X,ge){return r.name!==u||r.modifiers!==o||r.asteriskToken!==_||r.typeParameters!==b||r.parameters!==I||r.type!==X||r.body!==ge?we(Z_(o,_,u,b,I,X,ge),r):r}function ec(r,o,_,u,b,I){let X=se(218);X.modifiers=Se(r),X.typeParameters=Se(o),X.parameters=Q(_),X.type=u,X.equalsGreaterThanToken=b??gt(39),X.body=i().parenthesizeConciseBodyOfArrowFunction(I);let ge=ar(X.modifiers)&512;return X.transformFlags=Ne(X.modifiers)|Ne(X.typeParameters)|Ne(X.parameters)|$(X.type)|$(X.equalsGreaterThanToken)|$(X.body)&-67108865|(X.typeParameters||X.type?1:0)|(ge?16640:0)|1024,X.typeArguments=void 0,X.jsDoc=void 0,X.locals=void 0,X.nextContainer=void 0,X.flowNode=void 0,X.endFlowNode=void 0,X.returnFlowNode=void 0,X}function Cu(r,o,_,u,b,I,X){return r.modifiers!==o||r.typeParameters!==_||r.parameters!==u||r.type!==b||r.equalsGreaterThanToken!==I||r.body!==X?we(ec(o,_,u,b,I,X),r):r}function tc(r){let o=W(219);return o.expression=i().parenthesizeOperandOfPrefixUnary(r),o.transformFlags|=$(o.expression),o}function E1(r,o){return r.expression!==o?n(tc(o),r):r}function Tn(r){let o=W(220);return o.expression=i().parenthesizeOperandOfPrefixUnary(r),o.transformFlags|=$(o.expression),o}function C1(r,o){return r.expression!==o?n(Tn(o),r):r}function Tr(r){let o=W(221);return o.expression=i().parenthesizeOperandOfPrefixUnary(r),o.transformFlags|=$(o.expression),o}function k1(r,o){return r.expression!==o?n(Tr(o),r):r}function Ni(r){let o=W(222);return o.expression=i().parenthesizeOperandOfPrefixUnary(r),o.transformFlags|=$(o.expression)|256|128|2097152,o}function Ma(r,o){return r.expression!==o?n(Ni(o),r):r}function nc(r,o){let _=W(223);return _.operator=r,_.operand=i().parenthesizeOperandOfPrefixUnary(o),_.transformFlags|=$(_.operand),(r===46||r===47)&&Ce(_.operand)&&!ma(_.operand)&&!eg(_.operand)&&(_.transformFlags|=268435456),_}function ws(r,o){return r.operand!==o?n(nc(r.operator,o),r):r}function rc(r,o){let _=W(224);return _.operator=o,_.operand=i().parenthesizeOperandOfPostfixUnary(r),_.transformFlags|=$(_.operand),Ce(_.operand)&&!ma(_.operand)&&!eg(_.operand)&&(_.transformFlags|=268435456),_}function ku(r,o){return r.operand!==o?n(rc(o,r.operator),r):r}function ic(r,o,_){let u=se(225),b=Rd(o),I=b.kind;return u.left=i().parenthesizeLeftSideOfBinary(I,r),u.operatorToken=b,u.right=i().parenthesizeRightSideOfBinary(I,u.left,_),u.transformFlags|=$(u.left)|$(u.operatorToken)|$(u.right),I===61?u.transformFlags|=32:I===64?ao(u.left)?u.transformFlags|=5248|Au(u.left):Ql(u.left)&&(u.transformFlags|=5120|Au(u.left)):I===43||I===68?u.transformFlags|=512:jm(I)&&(u.transformFlags|=16),I===103&&Ln(u.left)&&(u.transformFlags|=536870912),u.jsDoc=void 0,u}function Au(r){return Wb(r)?65536:0}function A1(r,o,_,u){return r.left!==o||r.operatorToken!==_||r.right!==u?n(ic(o,_,u),r):r}function ac(r,o,_,u,b){let I=W(226);return I.condition=i().parenthesizeConditionOfConditionalExpression(r),I.questionToken=o??gt(58),I.whenTrue=i().parenthesizeBranchOfConditionalExpression(_),I.colonToken=u??gt(59),I.whenFalse=i().parenthesizeBranchOfConditionalExpression(b),I.transformFlags|=$(I.condition)|$(I.questionToken)|$(I.whenTrue)|$(I.colonToken)|$(I.whenFalse),I}function D1(r,o,_,u,b,I){return r.condition!==o||r.questionToken!==_||r.whenTrue!==u||r.colonToken!==b||r.whenFalse!==I?n(ac(o,_,u,b,I),r):r}function Lr(r,o){let _=W(227);return _.head=r,_.templateSpans=Q(o),_.transformFlags|=$(_.head)|Ne(_.templateSpans)|1024,_}function Du(r,o,_){return r.head!==o||r.templateSpans!==_?n(Lr(o,_),r):r}function Es(r,o,_,u=0){M.assert(!(u&-7177),"Unsupported template flags.");let b;if(_!==void 0&&_!==o&&(b=vL(r,_),typeof b=="object"))return M.fail("Invalid raw text");if(o===void 0){if(b===void 0)return M.fail("Arguments 'text' and 'rawText' may not both be undefined.");o=b}else b!==void 0&&M.assert(o===b,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return o}function Pu(r){let o=1024;return r&&(o|=128),o}function fo(r,o,_,u){let b=qn(r);return b.text=o,b.rawText=_,b.templateFlags=u&7176,b.transformFlags=Pu(b.templateFlags),b}function oc(r,o,_,u){let b=se(r);return b.text=o,b.rawText=_,b.templateFlags=u&7176,b.transformFlags=Pu(b.templateFlags),b}function La(r,o,_,u){return r===15?oc(r,o,_,u):fo(r,o,_,u)}function Cs(r,o,_){return r=Es(16,r,o,_),La(16,r,o,_)}function sc(r,o,_){return r=Es(16,r,o,_),La(17,r,o,_)}function P1(r,o,_){return r=Es(16,r,o,_),La(18,r,o,_)}function Nu(r,o,_){return r=Es(16,r,o,_),oc(15,r,o,_)}function Iu(r,o){M.assert(!r||!!o,"A `YieldExpression` with an asteriskToken must have an expression.");let _=W(228);return _.expression=o&&i().parenthesizeExpressionForDisallowedComma(o),_.asteriskToken=r,_.transformFlags|=$(_.expression)|$(_.asteriskToken)|1024|128|1048576,_}function N1(r,o,_){return r.expression!==_||r.asteriskToken!==o?n(Iu(o,_),r):r}function Ou(r){let o=W(229);return o.expression=i().parenthesizeExpressionForDisallowedComma(r),o.transformFlags|=$(o.expression)|1024|32768,o}function I1(r,o){return r.expression!==o?n(Ou(o),r):r}function Mu(r,o,_,u,b){let I=se(230);return I.modifiers=Se(r),I.name=nt(o),I.typeParameters=Se(_),I.heritageClauses=Se(u),I.members=Q(b),I.transformFlags|=Ne(I.modifiers)|Er(I.name)|Ne(I.typeParameters)|Ne(I.heritageClauses)|Ne(I.members)|(I.typeParameters?1:0)|1024,I.jsDoc=void 0,I}function ks(r,o,_,u,b,I){return r.modifiers!==o||r.name!==_||r.typeParameters!==u||r.heritageClauses!==b||r.members!==I?n(Mu(o,_,u,b,I),r):r}function O1(){return W(231)}function Lu(r,o){let _=W(232);return _.expression=i().parenthesizeLeftSideOfAccess(r,!1),_.typeArguments=o&&i().parenthesizeTypeArguments(o),_.transformFlags|=$(_.expression)|Ne(_.typeArguments)|1024,_}function tr(r,o,_){return r.expression!==o||r.typeArguments!==_?n(Lu(o,_),r):r}function As(r,o){let _=W(233);return _.expression=r,_.type=o,_.transformFlags|=$(_.expression)|$(_.type)|1,_}function Ju(r,o,_){return r.expression!==o||r.type!==_?n(As(o,_),r):r}function Ru(r){let o=W(234);return o.expression=i().parenthesizeLeftSideOfAccess(r,!1),o.transformFlags|=$(o.expression)|1,o}function _c(r,o){return hx(r)?ju(r,o):r.expression!==o?n(Ru(o),r):r}function Fu(r,o){let _=W(237);return _.expression=r,_.type=o,_.transformFlags|=$(_.expression)|$(_.type)|1,_}function cc(r,o,_){return r.expression!==o||r.type!==_?n(Fu(o,_),r):r}function xr(r){let o=W(234);return o.flags|=32,o.expression=i().parenthesizeLeftSideOfAccess(r,!0),o.transformFlags|=$(o.expression)|1,o}function ju(r,o){return M.assert(!!(r.flags&32),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),r.expression!==o?n(xr(o),r):r}function Ds(r,o){let _=W(235);switch(_.keywordToken=r,_.name=o,_.transformFlags|=$(_.name),r){case 105:_.transformFlags|=1024;break;case 102:_.transformFlags|=32;break;default:return M.assertNever(r)}return _.flowNode=void 0,_}function _i(r,o){return r.name!==o?n(Ds(r.keywordToken,o),r):r}function mo(r,o){let _=W(238);return _.expression=r,_.literal=o,_.transformFlags|=$(_.expression)|$(_.literal)|1024,_}function Bu(r,o,_){return r.expression!==o||r.literal!==_?n(mo(o,_),r):r}function Uu(){let r=W(239);return r.transformFlags|=1024,r}function Ja(r,o){let _=W(240);return _.statements=Q(r),_.multiLine=o,_.transformFlags|=Ne(_.statements),_.jsDoc=void 0,_.locals=void 0,_.nextContainer=void 0,_}function qu(r,o){return r.statements!==o?n(Ja(o,r.multiLine),r):r}function zu(r,o){let _=W(242);return _.modifiers=Se(r),_.declarationList=Wt(o)?hc(o):o,_.transformFlags|=Ne(_.modifiers)|$(_.declarationList),ar(_.modifiers)&2&&(_.transformFlags=1),_.jsDoc=void 0,_.flowNode=void 0,_}function Wu(r,o,_){return r.modifiers!==o||r.declarationList!==_?n(zu(o,_),r):r}function lc(){let r=W(241);return r.jsDoc=void 0,r}function yo(r){let o=W(243);return o.expression=i().parenthesizeExpressionOfExpressionStatement(r),o.transformFlags|=$(o.expression),o.jsDoc=void 0,o.flowNode=void 0,o}function M1(r,o){return r.expression!==o?n(yo(o),r):r}function uc(r,o,_){let u=W(244);return u.expression=r,u.thenStatement=pi(o),u.elseStatement=pi(_),u.transformFlags|=$(u.expression)|$(u.thenStatement)|$(u.elseStatement),u.jsDoc=void 0,u.flowNode=void 0,u}function L1(r,o,_,u){return r.expression!==o||r.thenStatement!==_||r.elseStatement!==u?n(uc(o,_,u),r):r}function pc(r,o){let _=W(245);return _.statement=pi(r),_.expression=o,_.transformFlags|=$(_.statement)|$(_.expression),_.jsDoc=void 0,_.flowNode=void 0,_}function J1(r,o,_){return r.statement!==o||r.expression!==_?n(pc(o,_),r):r}function Vu(r,o){let _=W(246);return _.expression=r,_.statement=pi(o),_.transformFlags|=$(_.expression)|$(_.statement),_.jsDoc=void 0,_.flowNode=void 0,_}function R1(r,o,_){return r.expression!==o||r.statement!==_?n(Vu(o,_),r):r}function dc(r,o,_,u){let b=W(247);return b.initializer=r,b.condition=o,b.incrementor=_,b.statement=pi(u),b.transformFlags|=$(b.initializer)|$(b.condition)|$(b.incrementor)|$(b.statement),b.jsDoc=void 0,b.locals=void 0,b.nextContainer=void 0,b.flowNode=void 0,b}function Hu(r,o,_,u,b){return r.initializer!==o||r.condition!==_||r.incrementor!==u||r.statement!==b?n(dc(o,_,u,b),r):r}function Ku(r,o,_){let u=W(248);return u.initializer=r,u.expression=o,u.statement=pi(_),u.transformFlags|=$(u.initializer)|$(u.expression)|$(u.statement),u.jsDoc=void 0,u.locals=void 0,u.nextContainer=void 0,u.flowNode=void 0,u}function F1(r,o,_,u){return r.initializer!==o||r.expression!==_||r.statement!==u?n(Ku(o,_,u),r):r}function Gu(r,o,_,u){let b=W(249);return b.awaitModifier=r,b.initializer=o,b.expression=i().parenthesizeExpressionForDisallowedComma(_),b.statement=pi(u),b.transformFlags|=$(b.awaitModifier)|$(b.initializer)|$(b.expression)|$(b.statement)|1024,r&&(b.transformFlags|=128),b.jsDoc=void 0,b.locals=void 0,b.nextContainer=void 0,b.flowNode=void 0,b}function j1(r,o,_,u,b){return r.awaitModifier!==o||r.initializer!==_||r.expression!==u||r.statement!==b?n(Gu(o,_,u,b),r):r}function Xu(r){let o=W(250);return o.label=nt(r),o.transformFlags|=$(o.label)|4194304,o.jsDoc=void 0,o.flowNode=void 0,o}function $u(r,o){return r.label!==o?n(Xu(o),r):r}function fc(r){let o=W(251);return o.label=nt(r),o.transformFlags|=$(o.label)|4194304,o.jsDoc=void 0,o.flowNode=void 0,o}function Qu(r,o){return r.label!==o?n(fc(o),r):r}function Yu(r){let o=W(252);return o.expression=r,o.transformFlags|=$(o.expression)|128|4194304,o.jsDoc=void 0,o.flowNode=void 0,o}function B1(r,o){return r.expression!==o?n(Yu(o),r):r}function mc(r,o){let _=W(253);return _.expression=r,_.statement=pi(o),_.transformFlags|=$(_.expression)|$(_.statement),_.jsDoc=void 0,_.flowNode=void 0,_}function Zu(r,o,_){return r.expression!==o||r.statement!==_?n(mc(o,_),r):r}function yc(r,o){let _=W(254);return _.expression=i().parenthesizeExpressionForDisallowedComma(r),_.caseBlock=o,_.transformFlags|=$(_.expression)|$(_.caseBlock),_.jsDoc=void 0,_.flowNode=void 0,_.possiblyExhaustive=!1,_}function Ra(r,o,_){return r.expression!==o||r.caseBlock!==_?n(yc(o,_),r):r}function ep(r,o){let _=W(255);return _.label=nt(r),_.statement=pi(o),_.transformFlags|=$(_.label)|$(_.statement),_.jsDoc=void 0,_.flowNode=void 0,_}function tp(r,o,_){return r.label!==o||r.statement!==_?n(ep(o,_),r):r}function np(r){let o=W(256);return o.expression=r,o.transformFlags|=$(o.expression),o.jsDoc=void 0,o.flowNode=void 0,o}function U1(r,o){return r.expression!==o?n(np(o),r):r}function rp(r,o,_){let u=W(257);return u.tryBlock=r,u.catchClause=o,u.finallyBlock=_,u.transformFlags|=$(u.tryBlock)|$(u.catchClause)|$(u.finallyBlock),u.jsDoc=void 0,u.flowNode=void 0,u}function q1(r,o,_,u){return r.tryBlock!==o||r.catchClause!==_||r.finallyBlock!==u?n(rp(o,_,u),r):r}function ip(){let r=W(258);return r.jsDoc=void 0,r.flowNode=void 0,r}function Ps(r,o,_,u){let b=se(259);return b.name=nt(r),b.exclamationToken=o,b.type=_,b.initializer=Eo(u),b.transformFlags|=Er(b.name)|$(b.initializer)|(b.exclamationToken??b.type?1:0),b.jsDoc=void 0,b}function ap(r,o,_,u,b){return r.name!==o||r.type!==u||r.exclamationToken!==_||r.initializer!==b?n(Ps(o,_,u,b),r):r}function hc(r,o=0){let _=W(260);return _.flags|=o&3,_.declarations=Q(r),_.transformFlags|=Ne(_.declarations)|4194304,o&3&&(_.transformFlags|=263168),_}function z1(r,o){return r.declarations!==o?n(hc(o,r.flags),r):r}function op(r,o,_,u,b,I,X){let ge=se(261);if(ge.modifiers=Se(r),ge.asteriskToken=o,ge.name=nt(_),ge.typeParameters=Se(u),ge.parameters=Q(b),ge.type=I,ge.body=X,!ge.body||ar(ge.modifiers)&2)ge.transformFlags=1;else{let Ve=ar(ge.modifiers)&512,xn=!!ge.asteriskToken,di=Ve&&xn;ge.transformFlags=Ne(ge.modifiers)|$(ge.asteriskToken)|Er(ge.name)|Ne(ge.typeParameters)|Ne(ge.parameters)|$(ge.type)|$(ge.body)&-67108865|(di?128:Ve?256:xn?2048:0)|(ge.typeParameters||ge.type?1:0)|4194304}return ge.typeArguments=void 0,ge.jsDoc=void 0,ge.locals=void 0,ge.nextContainer=void 0,ge.endFlowNode=void 0,ge.returnFlowNode=void 0,ge}function gc(r,o,_,u,b,I,X,ge){return r.modifiers!==o||r.asteriskToken!==_||r.name!==u||r.typeParameters!==b||r.parameters!==I||r.type!==X||r.body!==ge?W1(op(o,_,u,b,I,X,ge),r):r}function W1(r,o){return r!==o&&r.modifiers===o.modifiers&&(r.modifiers=o.modifiers),we(r,o)}function sp(r,o,_,u,b){let I=se(262);return I.modifiers=Se(r),I.name=nt(o),I.typeParameters=Se(_),I.heritageClauses=Se(u),I.members=Q(b),ar(I.modifiers)&2?I.transformFlags=1:(I.transformFlags|=Ne(I.modifiers)|Er(I.name)|Ne(I.typeParameters)|Ne(I.heritageClauses)|Ne(I.members)|(I.typeParameters?1:0)|1024,I.transformFlags&8192&&(I.transformFlags|=1)),I.jsDoc=void 0,I}function bc(r,o,_,u,b,I){return r.modifiers!==o||r.name!==_||r.typeParameters!==u||r.heritageClauses!==b||r.members!==I?n(sp(o,_,u,b,I),r):r}function _p(r,o,_,u,b){let I=se(263);return I.modifiers=Se(r),I.name=nt(o),I.typeParameters=Se(_),I.heritageClauses=Se(u),I.members=Q(b),I.transformFlags=1,I.jsDoc=void 0,I}function cp(r,o,_,u,b,I){return r.modifiers!==o||r.name!==_||r.typeParameters!==u||r.heritageClauses!==b||r.members!==I?n(_p(o,_,u,b,I),r):r}function yt(r,o,_,u){let b=se(264);return b.modifiers=Se(r),b.name=nt(o),b.typeParameters=Se(_),b.type=u,b.transformFlags=1,b.jsDoc=void 0,b.locals=void 0,b.nextContainer=void 0,b}function Ii(r,o,_,u,b){return r.modifiers!==o||r.name!==_||r.typeParameters!==u||r.type!==b?n(yt(o,_,u,b),r):r}function vc(r,o,_){let u=se(265);return u.modifiers=Se(r),u.name=nt(o),u.members=Q(_),u.transformFlags|=Ne(u.modifiers)|$(u.name)|Ne(u.members)|1,u.transformFlags&=-67108865,u.jsDoc=void 0,u}function Oi(r,o,_,u){return r.modifiers!==o||r.name!==_||r.members!==u?n(vc(o,_,u),r):r}function lp(r,o,_,u=0){let b=se(266);return b.modifiers=Se(r),b.flags|=u&1044,b.name=o,b.body=_,ar(b.modifiers)&2?b.transformFlags=1:b.transformFlags|=Ne(b.modifiers)|$(b.name)|$(b.body)|1,b.transformFlags&=-67108865,b.jsDoc=void 0,b.locals=void 0,b.nextContainer=void 0,b}function Mt(r,o,_,u){return r.modifiers!==o||r.name!==_||r.body!==u?n(lp(o,_,u,r.flags),r):r}function Mi(r){let o=W(267);return o.statements=Q(r),o.transformFlags|=Ne(o.statements),o.jsDoc=void 0,o}function un(r,o){return r.statements!==o?n(Mi(o),r):r}function up(r){let o=W(268);return o.clauses=Q(r),o.transformFlags|=Ne(o.clauses),o.locals=void 0,o.nextContainer=void 0,o}function V1(r,o){return r.clauses!==o?n(up(o),r):r}function pp(r){let o=se(269);return o.name=nt(r),o.transformFlags|=Qs(o.name)|1,o.modifiers=void 0,o.jsDoc=void 0,o}function dp(r,o){return r.name!==o?H1(pp(o),r):r}function H1(r,o){return r!==o&&(r.modifiers=o.modifiers),n(r,o)}function fp(r,o,_,u){let b=se(270);return b.modifiers=Se(r),b.name=nt(_),b.isTypeOnly=o,b.moduleReference=u,b.transformFlags|=Ne(b.modifiers)|Qs(b.name)|$(b.moduleReference),Zm(b.moduleReference)||(b.transformFlags|=1),b.transformFlags&=-67108865,b.jsDoc=void 0,b}function mp(r,o,_,u,b){return r.modifiers!==o||r.isTypeOnly!==_||r.name!==u||r.moduleReference!==b?n(fp(o,_,u,b),r):r}function yp(r,o,_,u){let b=W(271);return b.modifiers=Se(r),b.importClause=o,b.moduleSpecifier=_,b.assertClause=u,b.transformFlags|=$(b.importClause)|$(b.moduleSpecifier),b.transformFlags&=-67108865,b.jsDoc=void 0,b}function hp(r,o,_,u,b){return r.modifiers!==o||r.importClause!==_||r.moduleSpecifier!==u||r.assertClause!==b?n(yp(o,_,u,b),r):r}function gp(r,o,_){let u=se(272);return u.isTypeOnly=r,u.name=o,u.namedBindings=_,u.transformFlags|=$(u.name)|$(u.namedBindings),r&&(u.transformFlags|=1),u.transformFlags&=-67108865,u}function bp(r,o,_,u){return r.isTypeOnly!==o||r.name!==_||r.namedBindings!==u?n(gp(o,_,u),r):r}function Tc(r,o){let _=W(299);return _.elements=Q(r),_.multiLine=o,_.transformFlags|=4,_}function K1(r,o,_){return r.elements!==o||r.multiLine!==_?n(Tc(o,_),r):r}function ho(r,o){let _=W(300);return _.name=r,_.value=o,_.transformFlags|=4,_}function vp(r,o,_){return r.name!==o||r.value!==_?n(ho(o,_),r):r}function xc(r,o){let _=W(301);return _.assertClause=r,_.multiLine=o,_}function Tp(r,o,_){return r.assertClause!==o||r.multiLine!==_?n(xc(o,_),r):r}function xp(r){let o=se(273);return o.name=r,o.transformFlags|=$(o.name),o.transformFlags&=-67108865,o}function Sc(r,o){return r.name!==o?n(xp(o),r):r}function Sp(r){let o=se(279);return o.name=r,o.transformFlags|=$(o.name)|32,o.transformFlags&=-67108865,o}function wp(r,o){return r.name!==o?n(Sp(o),r):r}function Ep(r){let o=W(274);return o.elements=Q(r),o.transformFlags|=Ne(o.elements),o.transformFlags&=-67108865,o}function G1(r,o){return r.elements!==o?n(Ep(o),r):r}function Cp(r,o,_){let u=se(275);return u.isTypeOnly=r,u.propertyName=o,u.name=_,u.transformFlags|=$(u.propertyName)|$(u.name),u.transformFlags&=-67108865,u}function X1(r,o,_,u){return r.isTypeOnly!==o||r.propertyName!==_||r.name!==u?n(Cp(o,_,u),r):r}function wc(r,o,_){let u=se(276);return u.modifiers=Se(r),u.isExportEquals=o,u.expression=o?i().parenthesizeRightSideOfBinary(64,void 0,_):i().parenthesizeExpressionOfExportDefault(_),u.transformFlags|=Ne(u.modifiers)|$(u.expression),u.transformFlags&=-67108865,u.jsDoc=void 0,u}function Ec(r,o,_){return r.modifiers!==o||r.expression!==_?n(wc(o,r.isExportEquals,_),r):r}function ci(r,o,_,u,b){let I=se(277);return I.modifiers=Se(r),I.isTypeOnly=o,I.exportClause=_,I.moduleSpecifier=u,I.assertClause=b,I.transformFlags|=Ne(I.modifiers)|$(I.exportClause)|$(I.moduleSpecifier),I.transformFlags&=-67108865,I.jsDoc=void 0,I}function kp(r,o,_,u,b,I){return r.modifiers!==o||r.isTypeOnly!==_||r.exportClause!==u||r.moduleSpecifier!==b||r.assertClause!==I?Ap(ci(o,_,u,b,I),r):r}function Ap(r,o){return r!==o&&r.modifiers===o.modifiers&&(r.modifiers=o.modifiers),n(r,o)}function Fa(r){let o=W(278);return o.elements=Q(r),o.transformFlags|=Ne(o.elements),o.transformFlags&=-67108865,o}function Dp(r,o){return r.elements!==o?n(Fa(o),r):r}function Cc(r,o,_){let u=W(280);return u.isTypeOnly=r,u.propertyName=nt(o),u.name=nt(_),u.transformFlags|=$(u.propertyName)|$(u.name),u.transformFlags&=-67108865,u.jsDoc=void 0,u}function go(r,o,_,u){return r.isTypeOnly!==o||r.propertyName!==_||r.name!==u?n(Cc(o,_,u),r):r}function $1(){let r=se(281);return r.jsDoc=void 0,r}function Pp(r){let o=W(282);return o.expression=r,o.transformFlags|=$(o.expression),o.transformFlags&=-67108865,o}function Np(r,o){return r.expression!==o?n(Pp(o),r):r}function Q1(r){return W(r)}function Ip(r,o,_=!1){let u=Ns(r,_?o&&i().parenthesizeNonArrayTypeOfPostfixType(o):o);return u.postfix=_,u}function Ns(r,o){let _=W(r);return _.type=o,_}function Y1(r,o,_){return o.type!==_?n(Ip(r,_,o.postfix),o):o}function Op(r,o,_){return o.type!==_?n(Ns(r,_),o):o}function Mp(r,o){let _=se(323);return _.parameters=Se(r),_.type=o,_.transformFlags=Ne(_.parameters)|(_.type?1:0),_.jsDoc=void 0,_.locals=void 0,_.nextContainer=void 0,_.typeArguments=void 0,_}function Z1(r,o,_){return r.parameters!==o||r.type!==_?n(Mp(o,_),r):r}function Lp(r,o=!1){let _=se(328);return _.jsDocPropertyTags=Se(r),_.isArrayType=o,_}function ey(r,o,_){return r.jsDocPropertyTags!==o||r.isArrayType!==_?n(Lp(o,_),r):r}function Jp(r){let o=W(315);return o.type=r,o}function ty(r,o){return r.type!==o?n(Jp(o),r):r}function Rp(r,o,_){let u=se(329);return u.typeParameters=Se(r),u.parameters=Q(o),u.type=_,u.jsDoc=void 0,u.locals=void 0,u.nextContainer=void 0,u}function ny(r,o,_,u){return r.typeParameters!==o||r.parameters!==_||r.type!==u?n(Rp(o,_,u),r):r}function Sr(r){let o=Vd(r.kind);return r.tagName.escapedText===Ur(o)?r.tagName:$e(o)}function Jr(r,o,_){let u=W(r);return u.tagName=o,u.comment=_,u}function bo(r,o,_){let u=se(r);return u.tagName=o,u.comment=_,u}function Fp(r,o,_,u){let b=Jr(351,r??$e("template"),u);return b.constraint=o,b.typeParameters=Q(_),b}function Is(r,o=Sr(r),_,u,b){return r.tagName!==o||r.constraint!==_||r.typeParameters!==u||r.comment!==b?n(Fp(o,_,u,b),r):r}function vo(r,o,_,u){let b=bo(352,r??$e("typedef"),u);return b.typeExpression=o,b.fullName=_,b.name=tg(_),b.locals=void 0,b.nextContainer=void 0,b}function kc(r,o=Sr(r),_,u,b){return r.tagName!==o||r.typeExpression!==_||r.fullName!==u||r.comment!==b?n(vo(o,_,u,b),r):r}function Ac(r,o,_,u,b,I){let X=bo(347,r??$e("param"),I);return X.typeExpression=u,X.name=o,X.isNameFirst=!!b,X.isBracketed=_,X}function jp(r,o=Sr(r),_,u,b,I,X){return r.tagName!==o||r.name!==_||r.isBracketed!==u||r.typeExpression!==b||r.isNameFirst!==I||r.comment!==X?n(Ac(o,_,u,b,I,X),r):r}function Os(r,o,_,u,b,I){let X=bo(354,r??$e("prop"),I);return X.typeExpression=u,X.name=o,X.isNameFirst=!!b,X.isBracketed=_,X}function ry(r,o=Sr(r),_,u,b,I,X){return r.tagName!==o||r.name!==_||r.isBracketed!==u||r.typeExpression!==b||r.isNameFirst!==I||r.comment!==X?n(Os(o,_,u,b,I,X),r):r}function Dc(r,o,_,u){let b=bo(344,r??$e("callback"),u);return b.typeExpression=o,b.fullName=_,b.name=tg(_),b.locals=void 0,b.nextContainer=void 0,b}function iy(r,o=Sr(r),_,u,b){return r.tagName!==o||r.typeExpression!==_||r.fullName!==u||r.comment!==b?n(Dc(o,_,u,b),r):r}function Bp(r,o,_){let u=Jr(345,r??$e("overload"),_);return u.typeExpression=o,u}function Up(r,o=Sr(r),_,u){return r.tagName!==o||r.typeExpression!==_||r.comment!==u?n(Bp(o,_,u),r):r}function qp(r,o,_){let u=Jr(334,r??$e("augments"),_);return u.class=o,u}function zp(r,o=Sr(r),_,u){return r.tagName!==o||r.class!==_||r.comment!==u?n(qp(o,_,u),r):r}function Wp(r,o,_){let u=Jr(335,r??$e("implements"),_);return u.class=o,u}function Ms(r,o,_){let u=Jr(353,r??$e("see"),_);return u.name=o,u}function Vp(r,o,_,u){return r.tagName!==o||r.name!==_||r.comment!==u?n(Ms(o,_,u),r):r}function ja(r){let o=W(316);return o.name=r,o}function ay(r,o){return r.name!==o?n(ja(o),r):r}function sa(r,o){let _=W(317);return _.left=r,_.right=o,_.transformFlags|=$(_.left)|$(_.right),_}function Ls(r,o,_){return r.left!==o||r.right!==_?n(sa(o,_),r):r}function Hp(r,o){let _=W(330);return _.name=r,_.text=o,_}function oy(r,o,_){return r.name!==o?n(Hp(o,_),r):r}function Kp(r,o){let _=W(331);return _.name=r,_.text=o,_}function sy(r,o,_){return r.name!==o?n(Kp(o,_),r):r}function Gp(r,o){let _=W(332);return _.name=r,_.text=o,_}function Xp(r,o,_){return r.name!==o?n(Gp(o,_),r):r}function _y(r,o=Sr(r),_,u){return r.tagName!==o||r.class!==_||r.comment!==u?n(Wp(o,_,u),r):r}function $p(r,o,_){return Jr(r,o??$e(Vd(r)),_)}function cy(r,o,_=Sr(o),u){return o.tagName!==_||o.comment!==u?n($p(r,_,u),o):o}function Qp(r,o,_,u){let b=Jr(r,o??$e(Vd(r)),u);return b.typeExpression=_,b}function ly(r,o,_=Sr(o),u,b){return o.tagName!==_||o.typeExpression!==u||o.comment!==b?n(Qp(r,_,u,b),o):o}function Yp(r,o){return Jr(333,r,o)}function uy(r,o,_){return r.tagName!==o||r.comment!==_?n(Yp(o,_),r):r}function Zp(r,o,_){let u=bo(346,r??$e(Vd(346)),_);return u.typeExpression=o,u.locals=void 0,u.nextContainer=void 0,u}function py(r,o=Sr(r),_,u){return r.tagName!==o||r.typeExpression!==_||r.comment!==u?n(Zp(o,_,u),r):r}function ed(r){let o=W(327);return o.text=r,o}function dy(r,o){return r.text!==o?n(ed(o),r):r}function td(r,o){let _=W(326);return _.comment=r,_.tags=Se(o),_}function Pc(r,o,_){return r.comment!==o||r.tags!==_?n(td(o,_),r):r}function nd(r,o,_){let u=W(283);return u.openingElement=r,u.children=Q(o),u.closingElement=_,u.transformFlags|=$(u.openingElement)|Ne(u.children)|$(u.closingElement)|2,u}function rd(r,o,_,u){return r.openingElement!==o||r.children!==_||r.closingElement!==u?n(nd(o,_,u),r):r}function Nc(r,o,_){let u=W(284);return u.tagName=r,u.typeArguments=Se(o),u.attributes=_,u.transformFlags|=$(u.tagName)|Ne(u.typeArguments)|$(u.attributes)|2,u.typeArguments&&(u.transformFlags|=1),u}function fy(r,o,_,u){return r.tagName!==o||r.typeArguments!==_||r.attributes!==u?n(Nc(o,_,u),r):r}function To(r,o,_){let u=W(285);return u.tagName=r,u.typeArguments=Se(o),u.attributes=_,u.transformFlags|=$(u.tagName)|Ne(u.typeArguments)|$(u.attributes)|2,o&&(u.transformFlags|=1),u}function id(r,o,_,u){return r.tagName!==o||r.typeArguments!==_||r.attributes!==u?n(To(o,_,u),r):r}function ad(r){let o=W(286);return o.tagName=r,o.transformFlags|=$(o.tagName)|2,o}function my(r,o){return r.tagName!==o?n(ad(o),r):r}function fn(r,o,_){let u=W(287);return u.openingFragment=r,u.children=Q(o),u.closingFragment=_,u.transformFlags|=$(u.openingFragment)|Ne(u.children)|$(u.closingFragment)|2,u}function od(r,o,_,u){return r.openingFragment!==o||r.children!==_||r.closingFragment!==u?n(fn(o,_,u),r):r}function xo(r,o){let _=W(12);return _.text=r,_.containsOnlyTriviaWhiteSpaces=!!o,_.transformFlags|=2,_}function yy(r,o,_){return r.text!==o||r.containsOnlyTriviaWhiteSpaces!==_?n(xo(o,_),r):r}function sd(){let r=W(288);return r.transformFlags|=2,r}function hy(){let r=W(289);return r.transformFlags|=2,r}function So(r,o){let _=se(290);return _.name=r,_.initializer=o,_.transformFlags|=$(_.name)|$(_.initializer)|2,_}function gy(r,o,_){return r.name!==o||r.initializer!==_?n(So(o,_),r):r}function _d(r){let o=se(291);return o.properties=Q(r),o.transformFlags|=Ne(o.properties)|2,o}function by(r,o){return r.properties!==o?n(_d(o),r):r}function cd(r){let o=W(292);return o.expression=r,o.transformFlags|=$(o.expression)|2,o}function Ic(r,o){return r.expression!==o?n(cd(o),r):r}function Ba(r,o){let _=W(293);return _.dotDotDotToken=r,_.expression=o,_.transformFlags|=$(_.dotDotDotToken)|$(_.expression)|2,_}function vy(r,o){return r.expression!==o?n(Ba(r.dotDotDotToken,o),r):r}function Js(r,o){let _=W(294);return _.namespace=r,_.name=o,_.transformFlags|=$(_.namespace)|$(_.name)|2,_}function ld(r,o,_){return r.namespace!==o||r.name!==_?n(Js(o,_),r):r}function ud(r,o){let _=W(295);return _.expression=i().parenthesizeExpressionForDisallowedComma(r),_.statements=Q(o),_.transformFlags|=$(_.expression)|Ne(_.statements),_.jsDoc=void 0,_}function Oc(r,o,_){return r.expression!==o||r.statements!==_?n(ud(o,_),r):r}function Mc(r){let o=W(296);return o.statements=Q(r),o.transformFlags=Ne(o.statements),o}function Ty(r,o){return r.statements!==o?n(Mc(o),r):r}function pd(r,o){let _=W(297);switch(_.token=r,_.types=Q(o),_.transformFlags|=Ne(_.types),r){case 96:_.transformFlags|=1024;break;case 119:_.transformFlags|=1;break;default:return M.assertNever(r)}return _}function dd(r,o){return r.types!==o?n(pd(r.token,o),r):r}function Lc(r,o){let _=W(298);return _.variableDeclaration=Hy(r),_.block=o,_.transformFlags|=$(_.variableDeclaration)|$(_.block)|(r?0:64),_.locals=void 0,_.nextContainer=void 0,_}function fd(r,o,_){return r.variableDeclaration!==o||r.block!==_?n(Lc(o,_),r):r}function Li(r,o){let _=se(302);return _.name=nt(r),_.initializer=i().parenthesizeExpressionForDisallowedComma(o),_.transformFlags|=Er(_.name)|$(_.initializer),_.modifiers=void 0,_.questionToken=void 0,_.exclamationToken=void 0,_.jsDoc=void 0,_}function xy(r,o,_){return r.name!==o||r.initializer!==_?Sy(Li(o,_),r):r}function Sy(r,o){return r!==o&&(r.modifiers=o.modifiers,r.questionToken=o.questionToken,r.exclamationToken=o.exclamationToken),n(r,o)}function md(r,o){let _=se(303);return _.name=nt(r),_.objectAssignmentInitializer=o&&i().parenthesizeExpressionForDisallowedComma(o),_.transformFlags|=Qs(_.name)|$(_.objectAssignmentInitializer)|1024,_.equalsToken=void 0,_.modifiers=void 0,_.questionToken=void 0,_.exclamationToken=void 0,_.jsDoc=void 0,_}function wy(r,o,_){return r.name!==o||r.objectAssignmentInitializer!==_?yd(md(o,_),r):r}function yd(r,o){return r!==o&&(r.modifiers=o.modifiers,r.questionToken=o.questionToken,r.exclamationToken=o.exclamationToken,r.equalsToken=o.equalsToken),n(r,o)}function Jc(r){let o=se(304);return o.expression=i().parenthesizeExpressionForDisallowedComma(r),o.transformFlags|=$(o.expression)|128|65536,o.jsDoc=void 0,o}function Rr(r,o){return r.expression!==o?n(Jc(o),r):r}function Rc(r,o){let _=se(305);return _.name=nt(r),_.initializer=o&&i().parenthesizeExpressionForDisallowedComma(o),_.transformFlags|=$(_.name)|$(_.initializer)|1,_.jsDoc=void 0,_}function Ey(r,o,_){return r.name!==o||r.initializer!==_?n(Rc(o,_),r):r}function Cy(r,o,_){let u=t.createBaseSourceFileNode(311);return u.statements=Q(r),u.endOfFileToken=o,u.flags|=_,u.text="",u.fileName="",u.path="",u.resolvedPath="",u.originalFileName="",u.languageVersion=0,u.languageVariant=0,u.scriptKind=0,u.isDeclarationFile=!1,u.hasNoDefaultLib=!1,u.transformFlags|=Ne(u.statements)|$(u.endOfFileToken),u.locals=void 0,u.nextContainer=void 0,u.endFlowNode=void 0,u.nodeCount=0,u.identifierCount=0,u.symbolCount=0,u.parseDiagnostics=void 0,u.bindDiagnostics=void 0,u.bindSuggestionDiagnostics=void 0,u.lineMap=void 0,u.externalModuleIndicator=void 0,u.setExternalModuleIndicator=void 0,u.pragmas=void 0,u.checkJsDirective=void 0,u.referencedFiles=void 0,u.typeReferenceDirectives=void 0,u.libReferenceDirectives=void 0,u.amdDependencies=void 0,u.commentDirectives=void 0,u.identifiers=void 0,u.packageJsonLocations=void 0,u.packageJsonScope=void 0,u.imports=void 0,u.moduleAugmentations=void 0,u.ambientModuleNames=void 0,u.resolvedModules=void 0,u.classifiableNames=void 0,u.impliedNodeFormat=void 0,u}function hd(r){let o=Object.create(r.redirectTarget);return Object.defineProperties(o,{id:{get(){return this.redirectInfo.redirectTarget.id},set(_){this.redirectInfo.redirectTarget.id=_}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(_){this.redirectInfo.redirectTarget.symbol=_}}}),o.redirectInfo=r,o}function gd(r){let o=hd(r.redirectInfo);return o.flags|=r.flags&-9,o.fileName=r.fileName,o.path=r.path,o.resolvedPath=r.resolvedPath,o.originalFileName=r.originalFileName,o.packageJsonLocations=r.packageJsonLocations,o.packageJsonScope=r.packageJsonScope,o.emitNode=void 0,o}function Fc(r){let o=t.createBaseSourceFileNode(311);o.flags|=r.flags&-9;for(let _ in r)if(!(Xn(o,_)||!Xn(r,_))){if(_==="emitNode"){o.emitNode=void 0;continue}o[_]=r[_]}return o}function bd(r){let o=r.redirectInfo?gd(r):Fc(r);return Kn(o,r),o}function ky(r,o,_,u,b,I,X){let ge=bd(r);return ge.statements=Q(o),ge.isDeclarationFile=_,ge.referencedFiles=u,ge.typeReferenceDirectives=b,ge.hasNoDefaultLib=I,ge.libReferenceDirectives=X,ge.transformFlags=Ne(ge.statements)|$(ge.endOfFileToken),ge}function vd(r,o,_=r.isDeclarationFile,u=r.referencedFiles,b=r.typeReferenceDirectives,I=r.hasNoDefaultLib,X=r.libReferenceDirectives){return r.statements!==o||r.isDeclarationFile!==_||r.referencedFiles!==u||r.typeReferenceDirectives!==b||r.hasNoDefaultLib!==I||r.libReferenceDirectives!==X?n(ky(r,o,_,u,b,I,X),r):r}function Td(r,o=Xe){let _=W(312);return _.prepends=o,_.sourceFiles=r,_.syntheticFileReferences=void 0,_.syntheticTypeReferences=void 0,_.syntheticLibReferences=void 0,_.hasNoDefaultLib=void 0,_}function Ay(r,o,_=Xe){return r.sourceFiles!==o||r.prepends!==_?n(Td(o,_),r):r}function Rs(r,o,_){let u=W(313);return u.prologues=r,u.syntheticReferences=o,u.texts=_,u.fileName="",u.text="",u.referencedFiles=Xe,u.libReferenceDirectives=Xe,u.getLineAndCharacterOfPosition=b=>Xa(u,b),u}function Fs(r,o){let _=W(r);return _.data=o,_}function Dy(r){return Fs(306,r)}function Py(r,o){let _=Fs(307,r);return _.texts=o,_}function Ny(r,o){return Fs(o?309:308,r)}function Iy(r){let o=W(310);return o.data=r.data,o.section=r,o}function Oy(){let r=W(314);return r.javascriptText="",r.declarationText="",r}function xd(r,o=!1,_){let u=W(236);return u.type=r,u.isSpread=o,u.tupleNameSource=_,u}function Sd(r){let o=W(357);return o._children=r,o}function wd(r){let o=W(358);return o.original=r,He(o,r),o}function Ed(r,o){let _=W(359);return _.expression=r,_.original=o,_.transformFlags|=$(_.expression)|1,He(_,o),_}function Cd(r,o){return r.expression!==o?n(Ed(o,r.original),r):r}function kd(r){if(pa(r)&&!dl(r)&&!r.original&&!r.emitNode&&!r.id){if(M_(r))return r.elements;if(St(r)&&i8(r.operatorToken))return[r.left,r.right]}return r}function js(r){let o=W(360);return o.elements=Q(jv(r,kd)),o.transformFlags|=Ne(o.elements),o}function My(r,o){return r.elements!==o?n(js(o),r):r}function Ad(r,o){let _=W(361);return _.expression=r,_.thisArg=o,_.transformFlags|=$(_.expression)|$(_.thisArg),_}function Ly(r,o,_){return r.expression!==o||r.thisArg!==_?n(Ad(o,_),r):r}function Jy(r){let o=_n(r.escapedText);return o.flags|=r.flags&-9,o.transformFlags=r.transformFlags,Kn(o,r),setIdentifierAutoGenerate(o,{...r.emitNode.autoGenerate}),o}function jc(r){let o=_n(r.escapedText);o.flags|=r.flags&-9,o.jsDoc=r.jsDoc,o.flowNode=r.flowNode,o.symbol=r.symbol,o.transformFlags=r.transformFlags,Kn(o,r);let _=getIdentifierTypeArguments(r);return _&&setIdentifierTypeArguments(o,_),o}function Ry(r){let o=Bn(r.escapedText);return o.flags|=r.flags&-9,o.transformFlags=r.transformFlags,Kn(o,r),setIdentifierAutoGenerate(o,{...r.emitNode.autoGenerate}),o}function Fy(r){let o=Bn(r.escapedText);return o.flags|=r.flags&-9,o.transformFlags=r.transformFlags,Kn(o,r),o}function Bc(r){if(r===void 0)return r;if($r(r))return bd(r);if(ma(r))return Jy(r);if(Ce(r))return jc(r);if(Rg(r))return Ry(r);if(Ln(r))return Fy(r);let o=Ol(r.kind)?t.createBaseNode(r.kind):t.createBaseTokenNode(r.kind);o.flags|=r.flags&-9,o.transformFlags=r.transformFlags,Kn(o,r);for(let _ in r)Xn(o,_)||!Xn(r,_)||(o[_]=r[_]);return o}function jy(r,o,_){return Pi(Z_(void 0,void 0,void 0,void 0,o?[o]:[],void 0,Ja(r,!0)),void 0,_?[_]:[])}function By(r,o,_){return Pi(ec(void 0,void 0,o?[o]:[],void 0,void 0,Ja(r,!0)),void 0,_?[_]:[])}function Bs(){return Tr(Ze("0"))}function Us(r){return wc(void 0,!1,r)}function Uy(r){return ci(void 0,!1,Fa([Cc(!1,void 0,r)]))}function Dd(r,o){return o==="undefined"?oe.createStrictEquality(r,Bs()):oe.createStrictEquality(Tn(r),ct(o))}function _a(r,o,_){return T0(r)?X_(Oa(r,void 0,o),void 0,void 0,_):Pi(si(r,o),void 0,_)}function qy(r,o,_){return _a(r,"bind",[o,..._])}function Pd(r,o,_){return _a(r,"call",[o,..._])}function zy(r,o,_){return _a(r,"apply",[o,_])}function wo(r,o,_){return _a($e(r),o,_)}function Wy(r,o){return _a(r,"slice",o===void 0?[]:[ui(o)])}function Nd(r,o){return _a(r,"concat",o)}function Id(r,o,_){return wo("Object","defineProperty",[r,ui(o),_])}function Od(r,o){return wo("Object","getOwnPropertyDescriptor",[r,ui(o)])}function c(r,o,_){return wo("Reflect","get",_?[r,o,_]:[r,o])}function f(r,o,_,u){return wo("Reflect","set",u?[r,o,_,u]:[r,o,_])}function v(r,o,_){return _?(r.push(Li(o,_)),!0):!1}function C(r,o){let _=[];v(_,"enumerable",ui(r.enumerable)),v(_,"configurable",ui(r.configurable));let u=v(_,"writable",ui(r.writable));u=v(_,"value",r.value)||u;let b=v(_,"get",r.get);return b=v(_,"set",r.set)||b,M.assert(!(u&&b),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),po(_,!o)}function P(r,o){switch(r.kind){case 216:return wu(r,o);case 215:return Su(r,r.type,o);case 233:return Ju(r,o,r.type);case 237:return cc(r,o,r.type);case 234:return _c(r,o);case 359:return Cd(r,o)}}function U(r){return ss(r)&&pa(r)&&pa(getSourceMapRange(r))&&pa(getCommentRange(r))&&!ft(getSyntheticLeadingComments(r))&&!ft(getSyntheticTrailingComments(r))}function ne(r,o,_=15){return r&&i1(r,_)&&!U(r)?P(r,ne(r.expression,o)):o}function _e(r,o,_){if(!o)return r;let u=tp(o,o.label,A8(o.statement)?_e(r,o.statement):r);return _&&_(o),u}function pe(r,o){let _=Fl(r);switch(_.kind){case 80:return o;case 110:case 9:case 10:case 11:return!1;case 208:return _.elements.length!==0;case 209:return _.properties.length>0;default:return!0}}function ce(r,o,_,u=!1){let b=ds(r,15),I,X;return Lf(b)?(I=Zt(),X=b):of(b)?(I=Zt(),X=_!==void 0&&_<2?He($e("_super"),b):b):Vr(b)&8192?(I=Bs(),X=i().parenthesizeLeftSideOfAccess(b,!1)):Rn(b)?pe(b.expression,u)?(I=$t(o),X=si(He(oe.createAssignment(I,b.expression),b.expression),b.name),He(X,b)):(I=b.expression,X=b):ka(b)?pe(b.expression,u)?(I=$t(o),X=K_(He(oe.createAssignment(I,b.expression),b.expression),b.argumentExpression),He(X,b)):(I=b.expression,X=b):(I=Bs(),X=i().parenthesizeLeftSideOfAccess(r,!1)),{target:X,thisArg:I}}function ve(r,o){return si(Y_(po([gr(void 0,"value",[Or(void 0,void 0,r,void 0,void 0,void 0)],Ja([yo(o)]))])),"value")}function Ge(r){return r.length>10?js(r):em(r,oe.createComma)}function je(r,o,_,u=0,b){let I=b?r&&ym(r):Nl(r);if(I&&Ce(I)&&!ma(I)){let X=Vi(He(Bc(I),I),I.parent);return u|=Vr(I),_||(u|=96),o||(u|=3072),u&&setEmitFlags(X,u),X}return fr(r)}function Be(r,o,_){return je(r,o,_,98304)}function Lt(r,o,_,u){return je(r,o,_,32768,u)}function On(r,o,_){return je(r,o,_,16384)}function ca(r,o,_){return je(r,o,_)}function li(r,o,_,u){let b=si(r,pa(o)?o:Bc(o));He(b,o);let I=0;return u||(I|=96),_||(I|=3072),I&&setEmitFlags(b,I),b}function Ji(r,o,_,u){return r&&gn(o,1)?li(r,je(o),_,u):On(o,_,u)}function Ri(r,o,_,u){let b=Md(r,o,0,_);return qc(r,o,b,u)}function la(r){return cr(r.expression)&&r.expression.text==="use strict"}function Uc(){return a1(yo(ct("use strict")))}function Md(r,o,_=0,u){M.assert(o.length===0,"Prologue directives should be at the first statement in the target statements array");let b=!1,I=r.length;for(;_ge&&xn.splice(b,0,...o.slice(ge,Ve)),ge>X&&xn.splice(u,0,...o.slice(X,ge)),X>I&&xn.splice(_,0,...o.slice(I,X)),I>0)if(_===0)xn.splice(0,0,...o.slice(0,I));else{let di=new Map;for(let fi=0;fi<_;fi++){let qs=r[fi];di.set(qs.expression.text,!0)}for(let fi=I-1;fi>=0;fi--){let qs=o[fi];di.has(qs.expression.text)||xn.unshift(qs)}}return ua(r)?He(Q(xn,r.hasTrailingComma),r):r}function Jd(r,o){let _;return typeof o=="number"?_=cn(o):_=o,Jo(r)?yr(r,_,r.name,r.constraint,r.default):io(r)?ti(r,_,r.dotDotDotToken,r.name,r.questionToken,r.type,r.initializer):fb(r)?Ae(r,_,r.typeParameters,r.parameters,r.type):Wl(r)?Ie(r,_,r.name,r.questionToken,r.type):os(r)?be(r,_,r.name,r.questionToken??r.exclamationToken,r.type,r.initializer):_8(r)?et(r,_,r.name,r.questionToken,r.typeParameters,r.parameters,r.type):Vl(r)?ee(r,_,r.asteriskToken,r.name,r.questionToken,r.typeParameters,r.parameters,r.type,r.body):P_(r)?Re(r,_,r.parameters,r.body):Kl(r)?Vn(r,_,r.name,r.parameters,r.type,r.body):N_(r)?ni(r,_,r.name,r.parameters,r.body):db(r)?ra(r,_,r.parameters,r.type):Km(r)?Eu(r,_,r.asteriskToken,r.name,r.typeParameters,r.parameters,r.type,r.body):Gm(r)?Cu(r,_,r.typeParameters,r.parameters,r.type,r.equalsGreaterThanToken,r.body):$m(r)?ks(r,_,r.name,r.typeParameters,r.heritageClauses,r.members):_s(r)?Wu(r,_,r.declarationList):cs(r)?gc(r,_,r.asteriskToken,r.name,r.typeParameters,r.parameters,r.type,r.body):u_(r)?bc(r,_,r.name,r.typeParameters,r.heritageClauses,r.members):eu(r)?cp(r,_,r.name,r.typeParameters,r.heritageClauses,r.members):wb(r)?Ii(r,_,r.name,r.typeParameters,r.type):Eb(r)?Oi(r,_,r.name,r.members):Gi(r)?Mt(r,_,r.name,r.body):kb(r)?mp(r,_,r.isTypeOnly,r.name,r.moduleReference):Ab(r)?hp(r,_,r.importClause,r.moduleSpecifier,r.assertClause):ls(r)?Ec(r,_,r.expression):L_(r)?kp(r,_,r.isTypeOnly,r.exportClause,r.moduleSpecifier,r.assertClause):M.assertNever(r)}function Se(r){return r?Q(r):void 0}function nt(r){return typeof r=="string"?$e(r):r}function ui(r){return typeof r=="string"?ct(r):typeof r=="number"?Ze(r):typeof r=="boolean"?r?mt():mr():r}function Eo(r){return r&&i().parenthesizeExpressionForDisallowedComma(r)}function Rd(r){return typeof r=="number"?gt(r):r}function pi(r){return r&&Pb(r)?He(Kn(lc(),r),r):r}function Hy(r){return typeof r=="string"||r&&!Ei(r)?Ps(r,void 0,void 0,void 0):r}}function gL(e,t){return e!==t&&He(e,t),e}function bL(e,t){return e!==t&&(Kn(e,t),He(e,t)),e}function Vd(e){switch(e){case 350:return"type";case 348:return"returns";case 349:return"this";case 346:return"enum";case 336:return"author";case 338:return"class";case 339:return"public";case 340:return"private";case 341:return"protected";case 342:return"readonly";case 343:return"override";case 351:return"template";case 352:return"typedef";case 347:return"param";case 354:return"prop";case 344:return"callback";case 345:return"overload";case 334:return"augments";case 335:return"implements";default:return M.fail(`Unsupported kind: ${M.formatSyntaxKind(e)}`)}}function vL(e,t){switch(rr||(rr=as(99,!1,0)),e){case 15:rr.setText("`"+t+"`");break;case 16:rr.setText("`"+t+"${");break;case 17:rr.setText("}"+t+"${");break;case 18:rr.setText("}"+t+"`");break}let n=rr.scan();if(n===20&&(n=rr.reScanTemplateToken(!1)),rr.isUnterminated())return rr.setText(void 0),Y0;let i;switch(n){case 15:case 16:case 17:case 18:i=rr.getTokenValue();break}return i===void 0||rr.scan()!==1?(rr.setText(void 0),Y0):(rr.setText(void 0),i)}function Er(e){return e&&Ce(e)?Qs(e):$(e)}function Qs(e){return $(e)&-67108865}function TL(e,t){return t|e.transformFlags&134234112}function $(e){if(!e)return 0;let t=e.transformFlags&~e8(e.kind);return mm(e)&&Ml(e.name)?TL(e.name,t):t}function Ne(e){return e?e.transformFlags:0}function cv(e){let t=0;for(let n of e)t|=$(n);e.transformFlags=t}function e8(e){if(e>=181&&e<=204)return-2;switch(e){case 212:case 213:case 208:return-2147450880;case 266:return-1941676032;case 168:return-2147483648;case 218:return-2072174592;case 217:case 261:return-1937940480;case 260:return-2146893824;case 262:case 230:return-2147344384;case 175:return-1937948672;case 171:return-2013249536;case 173:case 176:case 177:return-2005057536;case 133:case 150:case 162:case 146:case 154:case 151:case 136:case 155:case 116:case 167:case 170:case 172:case 178:case 179:case 180:case 263:case 264:return-2;case 209:return-2147278848;case 298:return-2147418112;case 205:case 206:return-2147450880;case 215:case 237:case 233:case 359:case 216:case 108:return-2147483648;case 210:case 211:return-2147483648;default:return-2147483648}}function zc(e){return e.flags|=8,e}function xL(e,t,n){let i,s,l,d,y,p,x,h,D,w;m_(e)?(l="",d=e,y=e.length,p=t,x=n):(M.assert(t==="js"||t==="dts"),l=(t==="js"?e.javascriptPath:e.declarationPath)||"",p=t==="js"?e.javascriptMapPath:e.declarationMapPath,h=()=>t==="js"?e.javascriptText:e.declarationText,D=()=>t==="js"?e.javascriptMapText:e.declarationMapText,y=()=>h().length,e.buildInfo&&e.buildInfo.bundle&&(M.assert(n===void 0||typeof n=="boolean"),i=n,s=t==="js"?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,w=e.oldFileOfCurrentEmit));let g=w?wL(M.checkDefined(s)):SL(s,i,y);return g.fileName=l,g.sourceMapPath=p,g.oldFileOfCurrentEmit=w,h&&D?(Object.defineProperty(g,"text",{get:h}),Object.defineProperty(g,"sourceMapText",{get:D})):(M.assert(!w),g.text=d??"",g.sourceMapText=x),g}function SL(e,t,n){let i,s,l,d,y,p,x,h;for(let w of e?e.sections:Xe)switch(w.kind){case"prologue":i=Tt(i,He(Ar.createUnparsedPrologue(w.data),w));break;case"emitHelpers":s=Tt(s,getAllUnscopedEmitHelpers().get(w.data));break;case"no-default-lib":h=!0;break;case"reference":l=Tt(l,{pos:-1,end:-1,fileName:w.data});break;case"type":d=Tt(d,{pos:-1,end:-1,fileName:w.data});break;case"type-import":d=Tt(d,{pos:-1,end:-1,fileName:w.data,resolutionMode:99});break;case"type-require":d=Tt(d,{pos:-1,end:-1,fileName:w.data,resolutionMode:1});break;case"lib":y=Tt(y,{pos:-1,end:-1,fileName:w.data});break;case"prepend":let g;for(let A of w.texts)(!t||A.kind!=="internal")&&(g=Tt(g,He(Ar.createUnparsedTextLike(A.data,A.kind==="internal"),A)));p=Mn(p,g),x=Tt(x,Ar.createUnparsedPrepend(w.data,g??Xe));break;case"internal":if(t){x||(x=[]);break}case"text":x=Tt(x,He(Ar.createUnparsedTextLike(w.data,w.kind==="internal"),w));break;default:M.assertNever(w)}if(!x){let w=Ar.createUnparsedTextLike(void 0,!1);zf(w,0,typeof n=="function"?n():n),x=[w]}let D=F_.createUnparsedSource(i??Xe,void 0,x);return n_(i,D),n_(x,D),n_(p,D),D.hasNoDefaultLib=h,D.helpers=s,D.referencedFiles=l||Xe,D.typeReferenceDirectives=d,D.libReferenceDirectives=y||Xe,D}function wL(e){let t,n;for(let s of e.sections)switch(s.kind){case"internal":case"text":t=Tt(t,He(Ar.createUnparsedTextLike(s.data,s.kind==="internal"),s));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":n=Tt(n,He(Ar.createUnparsedSyntheticReference(s),s));break;case"prologue":case"emitHelpers":case"prepend":break;default:M.assertNever(s)}let i=Ar.createUnparsedSource(Xe,n,t??Xe);return n_(n,i),n_(t,i),i.helpers=ga(e.sources&&e.sources.helpers,s=>getAllUnscopedEmitHelpers().get(s)),i}function EL(e,t,n,i,s,l){return m_(e)?n8(void 0,e,n,i,void 0,t,s,l):t8(e,t,n,i,s,l)}function t8(e,t,n,i,s,l,d,y){let p=F_.createInputFiles();p.javascriptPath=t,p.javascriptMapPath=n,p.declarationPath=i,p.declarationMapPath=s,p.buildInfoPath=l;let x=new Map,h=A=>{if(A===void 0)return;let B=x.get(A);return B===void 0&&(B=e(A),x.set(A,B!==void 0?B:!1)),B!==!1?B:void 0},D=A=>{let B=h(A);return B!==void 0?B:`/* Input file ${A} was missing */\r -`},w;return Object.defineProperties(p,{javascriptText:{get:()=>D(t)},javascriptMapText:{get:()=>h(n)},declarationText:{get:()=>D(M.checkDefined(i))},declarationMapText:{get:()=>h(s)},buildInfo:{get:()=>{if(w===void 0&&l)if(d!=null&&d.getBuildInfo)w=d.getBuildInfo(l,y.configFilePath)??!1;else{let A=h(l);w=A!==void 0?getBuildInfo(l,A)??!1:!1}return w||void 0}}}),p}function n8(e,t,n,i,s,l,d,y,p,x,h){let D=F_.createInputFiles();return D.javascriptPath=e,D.javascriptText=t,D.javascriptMapPath=n,D.javascriptMapText=i,D.declarationPath=s,D.declarationText=l,D.declarationMapPath=d,D.declarationMapText=y,D.buildInfoPath=p,D.buildInfo=x,D.oldFileOfCurrentEmit=h,D}function CL(e,t,n){return new(uv||(uv=xt.getSourceMapSourceConstructor()))(e,t,n)}function Kn(e,t){if(e.original=t,t){let n=t.emitNode;n&&(e.emitNode=kL(n,e.emitNode))}return e}function kL(e,t){let{flags:n,internalFlags:i,leadingComments:s,trailingComments:l,commentRange:d,sourceMapRange:y,tokenSourceMapRanges:p,constantValue:x,helpers:h,startsOnNewLine:D,snippetElement:w}=e;if(t||(t={}),s&&(t.leadingComments=Mn(s.slice(),t.leadingComments)),l&&(t.trailingComments=Mn(l.slice(),t.trailingComments)),n&&(t.flags=n),i&&(t.internalFlags=i&-9),d&&(t.commentRange=d),y&&(t.sourceMapRange=y),p&&(t.tokenSourceMapRanges=AL(p,t.tokenSourceMapRanges)),x!==void 0&&(t.constantValue=x),h)for(let g of h)t.helpers=qv(t.helpers,g);return D!==void 0&&(t.startsOnNewLine=D),w!==void 0&&(t.snippetElement=w),t}function AL(e,t){t||(t=[]);for(let n in e)t[n]=e[n];return t}var $c,Q0,_b,rr,Y0,Vs,lv,Ar,uv,DL=Ht({"src/compiler/factory/nodeFactory.ts"(){"use strict";En(),$c=0,Q0=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))(Q0||{}),_b=[],Y0={},Vs=YS(),lv={createBaseSourceFileNode:e=>zc(Vs.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>zc(Vs.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>zc(Vs.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>zc(Vs.createBaseTokenNode(e)),createBaseNode:e=>zc(Vs.createBaseNode(e))},Ar=Vf(4,lv)}}),PL=()=>{},NL=()=>{};function ro(e){return e.kind===9}function cb(e){return e.kind===10}function cr(e){return e.kind===11}function Hf(e){return e.kind===12}function IL(e){return e.kind===14}function r8(e){return e.kind===15}function OL(e){return e.kind===16}function ML(e){return e.kind===17}function LL(e){return e.kind===18}function JL(e){return e.kind===26}function i8(e){return e.kind===28}function lb(e){return e.kind===40}function ub(e){return e.kind===41}function RL(e){return e.kind===42}function Kf(e){return e.kind===54}function xl(e){return e.kind===58}function FL(e){return e.kind===59}function jL(e){return e.kind===29}function BL(e){return e.kind===39}function Ce(e){return e.kind===80}function Ln(e){return e.kind===81}function a8(e){return e.kind===95}function UL(e){return e.kind===90}function Qc(e){return e.kind===134}function qL(e){return e.kind===131}function zL(e){return e.kind===135}function o8(e){return e.kind===148}function WL(e){return e.kind===126}function VL(e){return e.kind===128}function HL(e){return e.kind===163}function KL(e){return e.kind===129}function of(e){return e.kind===108}function s8(e){return e.kind===102}function GL(e){return e.kind===84}function D_(e){return e.kind===165}function Za(e){return e.kind===166}function Jo(e){return e.kind===167}function io(e){return e.kind===168}function zl(e){return e.kind===169}function Wl(e){return e.kind===170}function os(e){return e.kind===171}function _8(e){return e.kind===172}function Vl(e){return e.kind===173}function Hl(e){return e.kind===174}function P_(e){return e.kind===175}function Kl(e){return e.kind===176}function N_(e){return e.kind===177}function pb(e){return e.kind===178}function c8(e){return e.kind===179}function db(e){return e.kind===180}function l8(e){return e.kind===181}function I_(e){return e.kind===182}function Gl(e){return e.kind===183}function fb(e){return e.kind===184}function u8(e){return e.kind===185}function Hm(e){return e.kind===186}function p8(e){return e.kind===187}function d8(e){return e.kind===188}function mb(e){return e.kind===201}function f8(e){return e.kind===189}function m8(e){return e.kind===190}function y8(e){return e.kind===191}function h8(e){return e.kind===192}function g8(e){return e.kind===193}function b8(e){return e.kind===194}function yb(e){return e.kind===195}function hb(e){return e.kind===196}function v8(e){return e.kind===197}function T8(e){return e.kind===198}function x8(e){return e.kind===199}function gb(e){return e.kind===200}function Xl(e){return e.kind===204}function XL(e){return e.kind===203}function $L(e){return e.kind===202}function QL(e){return e.kind===205}function YL(e){return e.kind===206}function $l(e){return e.kind===207}function Ql(e){return e.kind===208}function ao(e){return e.kind===209}function Rn(e){return e.kind===210}function ka(e){return e.kind===211}function O_(e){return e.kind===212}function S8(e){return e.kind===213}function w8(e){return e.kind===214}function ZL(e){return e.kind===215}function ss(e){return e.kind===216}function Km(e){return e.kind===217}function Gm(e){return e.kind===218}function eJ(e){return e.kind===219}function tJ(e){return e.kind===220}function bb(e){return e.kind===221}function nJ(e){return e.kind===222}function Xm(e){return e.kind===223}function E8(e){return e.kind===224}function St(e){return e.kind===225}function rJ(e){return e.kind===226}function iJ(e){return e.kind===227}function aJ(e){return e.kind===228}function vb(e){return e.kind===229}function $m(e){return e.kind===230}function Qm(e){return e.kind===231}function Tb(e){return e.kind===232}function oJ(e){return e.kind===233}function sJ(e){return e.kind===237}function qo(e){return e.kind===234}function xb(e){return e.kind===235}function _J(e){return e.kind===236}function C8(e){return e.kind===359}function M_(e){return e.kind===360}function cJ(e){return e.kind===238}function lJ(e){return e.kind===239}function Yl(e){return e.kind===240}function _s(e){return e.kind===242}function uJ(e){return e.kind===241}function Zl(e){return e.kind===243}function pJ(e){return e.kind===244}function dJ(e){return e.kind===245}function fJ(e){return e.kind===246}function k8(e){return e.kind===247}function mJ(e){return e.kind===248}function yJ(e){return e.kind===249}function hJ(e){return e.kind===250}function gJ(e){return e.kind===251}function bJ(e){return e.kind===252}function vJ(e){return e.kind===253}function TJ(e){return e.kind===254}function A8(e){return e.kind===255}function xJ(e){return e.kind===256}function SJ(e){return e.kind===257}function wJ(e){return e.kind===258}function Ei(e){return e.kind===259}function Sb(e){return e.kind===260}function cs(e){return e.kind===261}function u_(e){return e.kind===262}function eu(e){return e.kind===263}function wb(e){return e.kind===264}function Eb(e){return e.kind===265}function Gi(e){return e.kind===266}function D8(e){return e.kind===267}function EJ(e){return e.kind===268}function Cb(e){return e.kind===269}function kb(e){return e.kind===270}function Ab(e){return e.kind===271}function CJ(e){return e.kind===272}function kJ(e){return e.kind===301}function AJ(e){return e.kind===299}function DJ(e){return e.kind===300}function Db(e){return e.kind===273}function Ym(e){return e.kind===279}function PJ(e){return e.kind===274}function P8(e){return e.kind===275}function ls(e){return e.kind===276}function L_(e){return e.kind===277}function N8(e){return e.kind===278}function I8(e){return e.kind===280}function NJ(e){return e.kind===281}function Pb(e){return e.kind===358}function IJ(e){return e.kind===361}function Zm(e){return e.kind===282}function Z0(e){return e.kind===283}function OJ(e){return e.kind===284}function Ro(e){return e.kind===285}function sf(e){return e.kind===286}function ol(e){return e.kind===287}function Nb(e){return e.kind===288}function MJ(e){return e.kind===289}function LJ(e){return e.kind===290}function Ib(e){return e.kind===291}function JJ(e){return e.kind===292}function RJ(e){return e.kind===293}function J_(e){return e.kind===294}function FJ(e){return e.kind===295}function O8(e){return e.kind===296}function Sl(e){return e.kind===297}function jJ(e){return e.kind===298}function us(e){return e.kind===302}function tu(e){return e.kind===303}function M8(e){return e.kind===304}function L8(e){return e.kind===305}function BJ(e){return e.kind===307}function $r(e){return e.kind===311}function UJ(e){return e.kind===312}function qJ(e){return e.kind===313}function J8(e){return e.kind===315}function _f(e){return e.kind===316}function Zs(e){return e.kind===317}function zJ(e){return e.kind===330}function WJ(e){return e.kind===331}function VJ(e){return e.kind===332}function HJ(e){return e.kind===318}function KJ(e){return e.kind===319}function R8(e){return e.kind===320}function GJ(e){return e.kind===321}function XJ(e){return e.kind===322}function e1(e){return e.kind===323}function $J(e){return e.kind===324}function QJ(e){return e.kind===325}function ps(e){return e.kind===326}function Ob(e){return e.kind===328}function nu(e){return e.kind===329}function t1(e){return e.kind===334}function YJ(e){return e.kind===336}function F8(e){return e.kind===338}function ZJ(e){return e.kind===344}function Mb(e){return e.kind===339}function Lb(e){return e.kind===340}function Jb(e){return e.kind===341}function Rb(e){return e.kind===342}function j8(e){return e.kind===343}function Fb(e){return e.kind===345}function jb(e){return e.kind===337}function eR(e){return e.kind===353}function B8(e){return e.kind===346}function p_(e){return e.kind===347}function Bb(e){return e.kind===348}function U8(e){return e.kind===349}function ru(e){return e.kind===350}function es(e){return e.kind===351}function tR(e){return e.kind===352}function nR(e){return e.kind===333}function rR(e){return e.kind===354}function q8(e){return e.kind===335}function Ub(e){return e.kind===356}function iR(e){return e.kind===355}function aR(e){return e.kind===357}var oR=Ht({"src/compiler/factory/nodeTests.ts"(){"use strict";En()}});function sR(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function n1(e,t,n,i){if(Za(n))return He(e.createElementAccessExpression(t,n.expression),i);{let s=He($a(n)?e.createPropertyAccessExpression(t,n):e.createElementAccessExpression(t,n),n);return addEmitFlags(s,128),s}}function qb(e,t){let n=F_.createIdentifier(e||"React");return Vi(n,Pl(t)),n}function zb(e,t,n){if(D_(t)){let i=zb(e,t.left,n),s=e.createIdentifier(Ot(t.right));return s.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,s)}else return qb(Ot(t),n)}function z8(e,t,n,i){return t?zb(e,t,i):e.createPropertyAccessExpression(qb(n,i),"createElement")}function _R(e,t,n,i){return t?zb(e,t,i):e.createPropertyAccessExpression(qb(n,i),"Fragment")}function cR(e,t,n,i,s,l){let d=[n];if(i&&d.push(i),s&&s.length>0)if(i||d.push(e.createNull()),s.length>1)for(let y of s)a1(y),d.push(y);else d.push(s[0]);return He(e.createCallExpression(t,void 0,d),l)}function lR(e,t,n,i,s,l,d){let p=[_R(e,n,i,l),e.createNull()];if(s&&s.length>0)if(s.length>1)for(let x of s)a1(x),p.push(x);else p.push(s[0]);return He(e.createCallExpression(z8(e,t,i,l),void 0,p),d)}function uR(e,t,n){if(Sb(t)){let i=cg(t.declarations),s=e.updateVariableDeclaration(i,i.name,void 0,void 0,n);return He(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[s])),t)}else{let i=He(e.createAssignment(t,n),t);return He(e.createExpressionStatement(i),t)}}function pR(e,t,n){return Yl(t)?e.updateBlock(t,He(e.createNodeArray([n,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,n]),!0)}function W8(e,t){if(D_(t)){let n=W8(e,t.left),i=Vi(He(e.cloneNode(t.right),t.right),t.right.parent);return He(e.createPropertyAccessExpression(n,i),t)}else return Vi(He(e.cloneNode(t),t),t.parent)}function V8(e,t){return Ce(t)?e.createStringLiteralFromNode(t):Za(t)?Vi(He(e.cloneNode(t.expression),t.expression),t.expression.parent):Vi(He(e.cloneNode(t),t),t.parent)}function dR(e,t,n,i,s){let{firstAccessor:l,getAccessor:d,setAccessor:y}=O2(t,n);if(n===l)return He(e.createObjectDefinePropertyCall(i,V8(e,n.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:d&&He(Kn(e.createFunctionExpression(Mf(d),void 0,void 0,void 0,d.parameters,void 0,d.body),d),d),set:y&&He(Kn(e.createFunctionExpression(Mf(y),void 0,void 0,void 0,y.parameters,void 0,y.body),y),y)},!s)),l)}function fR(e,t,n){return Kn(He(e.createAssignment(n1(e,n,t.name,t.name),t.initializer),t),t)}function mR(e,t,n){return Kn(He(e.createAssignment(n1(e,n,t.name,t.name),e.cloneNode(t.name)),t),t)}function yR(e,t,n){return Kn(He(e.createAssignment(n1(e,n,t.name,t.name),Kn(He(e.createFunctionExpression(Mf(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function hR(e,t,n,i){switch(n.name&&Ln(n.name)&&M.failBadSyntaxKind(n.name,"Private identifiers are not allowed in object literals."),n.kind){case 176:case 177:return dR(e,t.properties,n,i,!!t.multiLine);case 302:return fR(e,n,i);case 303:return mR(e,n,i);case 173:return yR(e,n,i)}}function gR(e,t,n,i,s){let l=t.operator;M.assert(l===46||l===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");let d=e.createTempVariable(i);n=e.createAssignment(d,n),He(n,t.operand);let y=Xm(t)?e.createPrefixUnaryExpression(l,d):e.createPostfixUnaryExpression(d,l);return He(y,t),s&&(y=e.createAssignment(s,y),He(y,t)),n=e.createComma(n,y),He(n,t),E8(t)&&(n=e.createComma(n,d),He(n,t)),n}function bR(e){return(Vr(e)&65536)!==0}function eg(e){return(Vr(e)&32768)!==0}function vR(e){return(Vr(e)&16384)!==0}function H8(e){return cr(e.expression)&&e.expression.text==="use strict"}function K8(e){for(let t of e)if(ha(t)){if(H8(t))return t}else break}function G8(e){let t=f_(e);return t!==void 0&&ha(t)&&H8(t)}function r1(e){return e.kind===225&&e.operatorToken.kind===28}function TR(e){return r1(e)||M_(e)}function X8(e){return ss(e)&&Vt(e)&&!!gm(e)}function xR(e){let t=bm(e);return M.assertIsDefined(t),t}function i1(e,t=15){switch(e.kind){case 216:return t&16&&X8(e)?!1:(t&1)!==0;case 215:case 233:case 232:case 237:return(t&2)!==0;case 234:return(t&4)!==0;case 359:return(t&8)!==0}return!1}function ds(e,t=15){for(;i1(e,t);)e=e.expression;return e}function SR(e,t=15){let n=e.parent;for(;i1(n,t);)n=n.parent,M.assert(n);return n}function wR(e){return ds(e,6)}function a1(e){return setStartsOnNewLine(e,!0)}function $8(e){let t=Dl(e,$r),n=t&&t.emitNode;return n&&n.externalHelpersModuleName}function ER(e){let t=Dl(e,$r),n=t&&t.emitNode;return!!n&&(!!n.externalHelpersModuleName||!!n.externalHelpers)}function CR(e,t,n,i,s,l,d){if(i.importHelpers&&Qg(n,i)){let y,p=Gr(i);if(p>=5&&p<=99||n.impliedNodeFormat===99){let x=getEmitHelpers(n);if(x){let h=[];for(let D of x)if(!D.scoped){let w=D.importName;w&&wl(h,w)}if(ft(h)){h.sort(xi),y=e.createNamedImports(ga(h,g=>Gx(n,g)?e.createImportSpecifier(!1,void 0,e.createIdentifier(g)):e.createImportSpecifier(!1,e.createIdentifier(g),t.getUnscopedHelperName(g))));let D=Dl(n,$r),w=getOrCreateEmitNode(D);w.externalHelpers=!0}}}else{let x=Q8(e,n,i,s,l||d);x&&(y=e.createNamespaceImport(x))}if(y){let x=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,y),e.createStringLiteral(zm),void 0);return addInternalEmitFlags(x,2),x}}}function Q8(e,t,n,i,s){if(n.importHelpers&&Qg(t,n)){let l=$8(t);if(l)return l;let d=Gr(n),y=(i||W2(n)&&s)&&d!==4&&(d<5||t.impliedNodeFormat===1);if(!y){let p=getEmitHelpers(t);if(p){for(let x of p)if(!x.scoped){y=!0;break}}}if(y){let p=Dl(t,$r),x=getOrCreateEmitNode(p);return x.externalHelpersModuleName||(x.externalHelpersModuleName=e.createUniqueName(zm))}}}function kR(e,t,n){let i=N4(t);if(i&&!I4(t)&&!Zx(t)){let s=i.name;return ma(s)?s:e.createIdentifier(Yo(n,s)||Ot(s))}if(t.kind===271&&t.importClause||t.kind===277&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function AR(e,t,n,i,s,l){let d=h2(t);if(d&&cr(d))return PR(t,i,e,s,l)||DR(e,d,n)||e.cloneNode(d)}function DR(e,t,n){let i=n.renamedDependencies&&n.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function Y8(e,t,n,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&P2(i))return e.createStringLiteral(D2(n,t.fileName))}}function PR(e,t,n,i,s){return Y8(n,i.getExternalModuleFileFromDeclaration(e),t,s)}function Z8(e){if(zg(e))return e.initializer;if(us(e)){let t=e.initializer;return Sa(t,!0)?t.right:void 0}if(tu(e))return e.objectAssignmentInitializer;if(Sa(e,!0))return e.right;if(vb(e))return Z8(e.expression)}function Fo(e){if(zg(e))return e.name;if(qg(e)){switch(e.kind){case 302:return Fo(e.initializer);case 303:return e.name;case 304:return Fo(e.expression)}return}return Sa(e,!0)?Fo(e.left):vb(e)?Fo(e.expression):e}function NR(e){switch(e.kind){case 168:case 207:return e.dotDotDotToken;case 229:case 304:return e}}function IR(e){let t=e7(e);return M.assert(!!t||M8(e),"Invalid property name for binding element."),t}function e7(e){switch(e.kind){case 207:if(e.propertyName){let n=e.propertyName;return Ln(n)?M.failBadSyntaxKind(n):Za(n)&&pv(n.expression)?n.expression:n}break;case 302:if(e.name){let n=e.name;return Ln(n)?M.failBadSyntaxKind(n):Za(n)&&pv(n.expression)?n.expression:n}break;case 304:return e.name&&Ln(e.name)?M.failBadSyntaxKind(e.name):e.name}let t=Fo(e);if(t&&Ml(t))return t}function pv(e){let t=e.kind;return t===11||t===9}function t7(e){switch(e.kind){case 205:case 206:case 208:return e.elements;case 209:return e.properties}}function tg(e){if(e){let t=e;for(;;){if(Ce(t)||!t.body)return Ce(t)?t:t.name;t=t.body}}}function OR(e){let t=e.kind;return t===175||t===177}function n7(e){let t=e.kind;return t===175||t===176||t===177}function MR(e){let t=e.kind;return t===302||t===303||t===261||t===175||t===180||t===174||t===281||t===242||t===263||t===264||t===265||t===266||t===270||t===271||t===269||t===277||t===276}function LR(e){let t=e.kind;return t===174||t===302||t===303||t===281||t===269}function JR(e){return xl(e)||Kf(e)}function RR(e){return Ce(e)||hb(e)}function FR(e){return o8(e)||lb(e)||ub(e)}function jR(e){return xl(e)||lb(e)||ub(e)}function BR(e){return Ce(e)||cr(e)}function UR(e){let t=e.kind;return t===106||t===112||t===97||Jg(e)||Xm(e)}function qR(e){return e===43}function zR(e){return e===42||e===44||e===45}function WR(e){return qR(e)||zR(e)}function VR(e){return e===40||e===41}function HR(e){return VR(e)||WR(e)}function KR(e){return e===48||e===49||e===50}function GR(e){return KR(e)||HR(e)}function XR(e){return e===30||e===33||e===32||e===34||e===104||e===103}function $R(e){return XR(e)||GR(e)}function QR(e){return e===35||e===37||e===36||e===38}function YR(e){return QR(e)||$R(e)}function ZR(e){return e===51||e===52||e===53}function eF(e){return ZR(e)||YR(e)}function tF(e){return e===56||e===57}function nF(e){return tF(e)||eF(e)}function rF(e){return e===61||nF(e)||w_(e)}function iF(e){return rF(e)||e===28}function aF(e){return iF(e.kind)}function oF(e,t,n,i,s,l){let d=new i7(e,t,n,i,s,l);return y;function y(p,x){let h={value:void 0},D=[Xf.enter],w=[p],g=[void 0],A=0;for(;D[A]!==Xf.done;)A=D[A](d,A,D,w,g,h,x);return M.assertEqual(A,0),h.value}}function r7(e){return e===95||e===90}function sF(e){let t=e.kind;return r7(t)}function _F(e){let t=e.kind;return yi(t)&&!r7(t)}function cF(e,t){if(t!==void 0)return t.length===0?t:He(e.createNodeArray([],t.hasTrailingComma),t)}function lF(e){var t;let n=e.emitNode.autoGenerate;if(n.flags&4){let i=n.id,s=e,l=s.original;for(;l;){s=l;let d=(t=s.emitNode)==null?void 0:t.autoGenerate;if($a(s)&&(d===void 0||d.flags&4&&d.id!==i))break;l=s.original}return s}return e}function ng(e,t){return typeof e=="object"?Gf(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function uF(e,t){return typeof e=="string"?e:pF(e,M.checkDefined(t))}function pF(e,t){return Rg(e)?t(e).slice(1):ma(e)?t(e):Ln(e)?e.escapedText.slice(1):Ot(e)}function Gf(e,t,n,i,s){return t=ng(t,s),i=ng(i,s),n=uF(n,s),`${e?"#":""}${t}${n}${i}`}function dF(e,t,n,i){return e.updatePropertyDeclaration(t,n,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function fF(e,t,n,i){return e.createGetAccessorDeclaration(n,i,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(e.createThis(),e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function mF(e,t,n,i){return e.createSetAccessorDeclaration(n,i,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(e.createThis(),e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function yF(e){let t=e.expression;for(;;){if(t=ds(t),M_(t)){t=ba(t.elements);continue}if(r1(t)){t=t.right;continue}if(Sa(t,!0)&&ma(t.left))return t;break}}function hF(e){return ss(e)&&pa(e)&&!e.emitNode}function Yc(e,t){if(hF(e))Yc(e.expression,t);else if(r1(e))Yc(e.left,t),Yc(e.right,t);else if(M_(e))for(let n of e.elements)Yc(n,t);else t.push(e)}function gF(e){let t=[];return Yc(e,t),t}function Wb(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of t7(e)){let n=Fo(t);if(n&&Ax(n)&&(n.transformFlags&65536||n.transformFlags&128&&Wb(n)))return!0}return!1}var Xf,i7,bF=Ht({"src/compiler/factory/utilities.ts"(){"use strict";En(),(e=>{function t(h,D,w,g,A,B,G){let oe=D>0?A[D-1]:void 0;return M.assertEqual(w[D],t),A[D]=h.onEnter(g[D],oe,G),w[D]=y(h,t),D}e.enter=t;function n(h,D,w,g,A,B,G){M.assertEqual(w[D],n),M.assertIsDefined(h.onLeft),w[D]=y(h,n);let oe=h.onLeft(g[D].left,A[D],g[D]);return oe?(x(D,g,oe),p(D,w,g,A,oe)):D}e.left=n;function i(h,D,w,g,A,B,G){return M.assertEqual(w[D],i),M.assertIsDefined(h.onOperator),w[D]=y(h,i),h.onOperator(g[D].operatorToken,A[D],g[D]),D}e.operator=i;function s(h,D,w,g,A,B,G){M.assertEqual(w[D],s),M.assertIsDefined(h.onRight),w[D]=y(h,s);let oe=h.onRight(g[D].right,A[D],g[D]);return oe?(x(D,g,oe),p(D,w,g,A,oe)):D}e.right=s;function l(h,D,w,g,A,B,G){M.assertEqual(w[D],l),w[D]=y(h,l);let oe=h.onExit(g[D],A[D]);if(D>0){if(D--,h.foldState){let Q=w[D]===l?"right":"left";A[D]=h.foldState(A[D],oe,Q)}}else B.value=oe;return D}e.exit=l;function d(h,D,w,g,A,B,G){return M.assertEqual(w[D],d),D}e.done=d;function y(h,D){switch(D){case t:if(h.onLeft)return n;case n:if(h.onOperator)return i;case i:if(h.onRight)return s;case s:return l;case l:return d;case d:return d;default:M.fail("Invalid state")}}e.nextState=y;function p(h,D,w,g,A){return h++,D[h]=t,w[h]=A,g[h]=void 0,h}function x(h,D,w){if(M.shouldAssert(2))for(;h>=0;)M.assert(D[h]!==w,"Circular traversal detected."),h--}})(Xf||(Xf={})),i7=class{constructor(e,t,n,i,s,l){this.onEnter=e,this.onLeft=t,this.onOperator=n,this.onRight=i,this.onExit=s,this.foldState=l}}}});function He(e,t){return t?Va(e,t.pos,t.end):e}function R_(e){let t=e.kind;return t===167||t===168||t===170||t===171||t===172||t===173||t===175||t===176||t===177||t===180||t===184||t===217||t===218||t===230||t===242||t===261||t===262||t===263||t===264||t===265||t===266||t===270||t===271||t===276||t===277}function a7(e){let t=e.kind;return t===168||t===171||t===173||t===176||t===177||t===230||t===262}var vF=Ht({"src/compiler/factory/utilitiesPublic.ts"(){"use strict";En()}});function N(e,t){return t&&e(t)}function ue(e,t,n){if(n){if(t)return t(n);for(let i of n){let s=e(i);if(s)return s}}}function o7(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function sl(e){return hn(e.statements,TF)||xF(e)}function TF(e){return R_(e)&&SF(e,95)||kb(e)&&Zm(e.moduleReference)||Ab(e)||ls(e)||L_(e)?e:void 0}function xF(e){return e.flags&4194304?s7(e):void 0}function s7(e){return wF(e)?e:qt(e,s7)}function SF(e,t){return ft(e.modifiers,n=>n.kind===t)}function wF(e){return xb(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function dv(e,t,n){return ue(t,n,e.typeParameters)||ue(t,n,e.parameters)||N(t,e.type)}function fv(e,t,n){return ue(t,n,e.types)}function mv(e,t,n){return N(t,e.type)}function yv(e,t,n){return ue(t,n,e.elements)}function hv(e,t,n){return N(t,e.expression)||N(t,e.questionDotToken)||ue(t,n,e.typeArguments)||ue(t,n,e.arguments)}function gv(e,t,n){return ue(t,n,e.statements)}function bv(e,t,n){return N(t,e.label)}function vv(e,t,n){return ue(t,n,e.modifiers)||N(t,e.name)||ue(t,n,e.typeParameters)||ue(t,n,e.heritageClauses)||ue(t,n,e.members)}function Tv(e,t,n){return ue(t,n,e.elements)}function xv(e,t,n){return N(t,e.propertyName)||N(t,e.name)}function Sv(e,t,n){return N(t,e.tagName)||ue(t,n,e.typeArguments)||N(t,e.attributes)}function Ao(e,t,n){return N(t,e.type)}function wv(e,t,n){return N(t,e.tagName)||(e.isNameFirst?N(t,e.name)||N(t,e.typeExpression):N(t,e.typeExpression)||N(t,e.name))||(typeof e.comment=="string"?void 0:ue(t,n,e.comment))}function Do(e,t,n){return N(t,e.tagName)||N(t,e.typeExpression)||(typeof e.comment=="string"?void 0:ue(t,n,e.comment))}function th(e,t,n){return N(t,e.name)}function qa(e,t,n){return N(t,e.tagName)||(typeof e.comment=="string"?void 0:ue(t,n,e.comment))}function EF(e,t,n){return N(t,e.expression)}function qt(e,t,n){if(e===void 0||e.kind<=164)return;let i=d7[e.kind];return i===void 0?void 0:i(e,t,n)}function rg(e,t,n){let i=Ev(e),s=[];for(;s.length=0;--y)i.push(l[y]),s.push(d)}else{let y=t(l,d);if(y){if(y==="skip")continue;return y}if(l.kind>=165)for(let p of Ev(l))i.push(p),s.push(l)}}}function Ev(e){let t=[];return qt(e,n,n),t;function n(i){t.unshift(i)}}function _7(e){e.externalModuleIndicator=sl(e)}function c7(e,t,n,i=!1,s){var l,d,y,p;(l=fa)==null||l.push(fa.Phase.Parse,"createSourceFile",{path:e},!0),Y6("beforeParse");let x;(d=yf)==null||d.logStartParseSourceFile(e);let{languageVersion:h,setExternalModuleIndicator:D,impliedNodeFormat:w}=typeof n=="object"?n:{languageVersion:n};if(h===100)x=zr.parseSourceFile(e,t,h,void 0,i,6,Pr);else{let g=w===void 0?D:A=>(A.impliedNodeFormat=w,(D||_7)(A));x=zr.parseSourceFile(e,t,h,void 0,i,s,g)}return(y=yf)==null||y.logStopParseSourceFile(),Y6("afterParse"),h5("Parse","beforeParse","afterParse"),(p=fa)==null||p.pop(),x}function CF(e,t){return zr.parseIsolatedEntityName(e,t)}function kF(e,t){return zr.parseJsonText(e,t)}function ts(e){return e.externalModuleIndicator!==void 0}function Vb(e,t,n,i=!1){let s=cf.updateSourceFile(e,t,n,i);return s.flags|=e.flags&6291456,s}function AF(e,t,n){let i=zr.JSDocParser.parseIsolatedJSDocComment(e,t,n);return i&&i.jsDoc&&zr.fixupParentReferences(i.jsDoc),i}function DF(e,t,n){return zr.JSDocParser.parseJSDocTypeExpressionForTests(e,t,n)}function l7(e){return Wr(e,ob)||Ea(e,".ts")&&Ga(h_(e),".d.")}function PF(e,t,n,i){if(e){if(e==="import")return 99;if(e==="require")return 1;i(t,n-t,K.resolution_mode_should_be_either_require_or_import)}}function u7(e,t){let n=[];for(let i of Go(t,0)||Xe){let s=t.substring(i.pos,i.end);IF(n,i,s)}e.pragmas=new Map;for(let i of n){if(e.pragmas.has(i.name)){let s=e.pragmas.get(i.name);s instanceof Array?s.push(i.args):e.pragmas.set(i.name,[s,i.args]);continue}e.pragmas.set(i.name,i.args)}}function p7(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((n,i)=>{switch(i){case"reference":{let s=e.referencedFiles,l=e.typeReferenceDirectives,d=e.libReferenceDirectives;hn(Gd(n),y=>{let{types:p,lib:x,path:h,["resolution-mode"]:D}=y.arguments;if(y.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(p){let w=PF(D,p.pos,p.end,t);l.push({pos:p.pos,end:p.end,fileName:p.value,...w?{resolutionMode:w}:{}})}else x?d.push({pos:x.pos,end:x.end,fileName:x.value}):h?s.push({pos:h.pos,end:h.end,fileName:h.value}):t(y.range.pos,y.range.end-y.range.pos,K.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=ga(Gd(n),s=>({name:s.arguments.name,path:s.arguments.path}));break}case"amd-module":{if(n instanceof Array)for(let s of n)e.moduleName&&t(s.range.pos,s.range.end-s.range.pos,K.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=s.arguments.name;else e.moduleName=n.arguments.name;break}case"ts-nocheck":case"ts-check":{hn(Gd(n),s=>{(!e.checkJsDirective||s.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:i==="ts-check",end:s.range.end,pos:s.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:M.fail("Unhandled pragma kind")}})}function NF(e){if(lf.has(e))return lf.get(e);let t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return lf.set(e,t),t}function IF(e,t,n){let i=t.kind===2&&f7.exec(n);if(i){let l=i[1].toLowerCase(),d=om[l];if(!d||!(d.kind&1))return;if(d.args){let y={};for(let p of d.args){let h=NF(p.name).exec(n);if(!h&&!p.optional)return;if(h){let D=h[2]||h[3];if(p.captureSpan){let w=t.pos+h.index+h[1].length+1;y[p.name]={value:D,pos:w,end:w+D.length}}else y[p.name]=D}}e.push({name:l,args:{arguments:y,range:t}})}else e.push({name:l,args:{arguments:{},range:t}});return}let s=t.kind===2&&m7.exec(n);if(s)return Cv(e,t,2,s);if(t.kind===3){let l=/@(\S+)(\s+.*)?$/gim,d;for(;d=l.exec(n);)Cv(e,t,4,d)}}function Cv(e,t,n,i){if(!i)return;let s=i[1].toLowerCase(),l=om[s];if(!l||!(l.kind&n))return;let d=i[2],y=OF(l,d);y!=="fail"&&e.push({name:s,args:{arguments:y,range:t}})}function OF(e,t){if(!t)return{};if(!e.args)return{};let n=am(t).split(/\s+/),i={};for(let s=0;snew(Nv||(Nv=xt.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(Dv||(Dv=xt.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(Pv||(Pv=xt.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(Av||(Av=xt.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(kv||(kv=xt.getNodeConstructor()))(e,-1,-1)},F_=Vf(1,ig),d7={165:function(t,n,i){return N(n,t.left)||N(n,t.right)},167:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.name)||N(n,t.constraint)||N(n,t.default)||N(n,t.expression)},303:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.name)||N(n,t.questionToken)||N(n,t.exclamationToken)||N(n,t.equalsToken)||N(n,t.objectAssignmentInitializer)},304:function(t,n,i){return N(n,t.expression)},168:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.dotDotDotToken)||N(n,t.name)||N(n,t.questionToken)||N(n,t.type)||N(n,t.initializer)},171:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.name)||N(n,t.questionToken)||N(n,t.exclamationToken)||N(n,t.type)||N(n,t.initializer)},170:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.name)||N(n,t.questionToken)||N(n,t.type)||N(n,t.initializer)},302:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.name)||N(n,t.questionToken)||N(n,t.exclamationToken)||N(n,t.initializer)},259:function(t,n,i){return N(n,t.name)||N(n,t.exclamationToken)||N(n,t.type)||N(n,t.initializer)},207:function(t,n,i){return N(n,t.dotDotDotToken)||N(n,t.propertyName)||N(n,t.name)||N(n,t.initializer)},180:function(t,n,i){return ue(n,i,t.modifiers)||ue(n,i,t.typeParameters)||ue(n,i,t.parameters)||N(n,t.type)},184:function(t,n,i){return ue(n,i,t.modifiers)||ue(n,i,t.typeParameters)||ue(n,i,t.parameters)||N(n,t.type)},183:function(t,n,i){return ue(n,i,t.modifiers)||ue(n,i,t.typeParameters)||ue(n,i,t.parameters)||N(n,t.type)},178:dv,179:dv,173:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.asteriskToken)||N(n,t.name)||N(n,t.questionToken)||N(n,t.exclamationToken)||ue(n,i,t.typeParameters)||ue(n,i,t.parameters)||N(n,t.type)||N(n,t.body)},172:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.name)||N(n,t.questionToken)||ue(n,i,t.typeParameters)||ue(n,i,t.parameters)||N(n,t.type)},175:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.name)||ue(n,i,t.typeParameters)||ue(n,i,t.parameters)||N(n,t.type)||N(n,t.body)},176:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.name)||ue(n,i,t.typeParameters)||ue(n,i,t.parameters)||N(n,t.type)||N(n,t.body)},177:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.name)||ue(n,i,t.typeParameters)||ue(n,i,t.parameters)||N(n,t.type)||N(n,t.body)},261:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.asteriskToken)||N(n,t.name)||ue(n,i,t.typeParameters)||ue(n,i,t.parameters)||N(n,t.type)||N(n,t.body)},217:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.asteriskToken)||N(n,t.name)||ue(n,i,t.typeParameters)||ue(n,i,t.parameters)||N(n,t.type)||N(n,t.body)},218:function(t,n,i){return ue(n,i,t.modifiers)||ue(n,i,t.typeParameters)||ue(n,i,t.parameters)||N(n,t.type)||N(n,t.equalsGreaterThanToken)||N(n,t.body)},174:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.body)},182:function(t,n,i){return N(n,t.typeName)||ue(n,i,t.typeArguments)},181:function(t,n,i){return N(n,t.assertsModifier)||N(n,t.parameterName)||N(n,t.type)},185:function(t,n,i){return N(n,t.exprName)||ue(n,i,t.typeArguments)},186:function(t,n,i){return ue(n,i,t.members)},187:function(t,n,i){return N(n,t.elementType)},188:function(t,n,i){return ue(n,i,t.elements)},191:fv,192:fv,193:function(t,n,i){return N(n,t.checkType)||N(n,t.extendsType)||N(n,t.trueType)||N(n,t.falseType)},194:function(t,n,i){return N(n,t.typeParameter)},204:function(t,n,i){return N(n,t.argument)||N(n,t.assertions)||N(n,t.qualifier)||ue(n,i,t.typeArguments)},301:function(t,n,i){return N(n,t.assertClause)},195:mv,197:mv,198:function(t,n,i){return N(n,t.objectType)||N(n,t.indexType)},199:function(t,n,i){return N(n,t.readonlyToken)||N(n,t.typeParameter)||N(n,t.nameType)||N(n,t.questionToken)||N(n,t.type)||ue(n,i,t.members)},200:function(t,n,i){return N(n,t.literal)},201:function(t,n,i){return N(n,t.dotDotDotToken)||N(n,t.name)||N(n,t.questionToken)||N(n,t.type)},205:yv,206:yv,208:function(t,n,i){return ue(n,i,t.elements)},209:function(t,n,i){return ue(n,i,t.properties)},210:function(t,n,i){return N(n,t.expression)||N(n,t.questionDotToken)||N(n,t.name)},211:function(t,n,i){return N(n,t.expression)||N(n,t.questionDotToken)||N(n,t.argumentExpression)},212:hv,213:hv,214:function(t,n,i){return N(n,t.tag)||N(n,t.questionDotToken)||ue(n,i,t.typeArguments)||N(n,t.template)},215:function(t,n,i){return N(n,t.type)||N(n,t.expression)},216:function(t,n,i){return N(n,t.expression)},219:function(t,n,i){return N(n,t.expression)},220:function(t,n,i){return N(n,t.expression)},221:function(t,n,i){return N(n,t.expression)},223:function(t,n,i){return N(n,t.operand)},228:function(t,n,i){return N(n,t.asteriskToken)||N(n,t.expression)},222:function(t,n,i){return N(n,t.expression)},224:function(t,n,i){return N(n,t.operand)},225:function(t,n,i){return N(n,t.left)||N(n,t.operatorToken)||N(n,t.right)},233:function(t,n,i){return N(n,t.expression)||N(n,t.type)},234:function(t,n,i){return N(n,t.expression)},237:function(t,n,i){return N(n,t.expression)||N(n,t.type)},235:function(t,n,i){return N(n,t.name)},226:function(t,n,i){return N(n,t.condition)||N(n,t.questionToken)||N(n,t.whenTrue)||N(n,t.colonToken)||N(n,t.whenFalse)},229:function(t,n,i){return N(n,t.expression)},240:gv,267:gv,311:function(t,n,i){return ue(n,i,t.statements)||N(n,t.endOfFileToken)},242:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.declarationList)},260:function(t,n,i){return ue(n,i,t.declarations)},243:function(t,n,i){return N(n,t.expression)},244:function(t,n,i){return N(n,t.expression)||N(n,t.thenStatement)||N(n,t.elseStatement)},245:function(t,n,i){return N(n,t.statement)||N(n,t.expression)},246:function(t,n,i){return N(n,t.expression)||N(n,t.statement)},247:function(t,n,i){return N(n,t.initializer)||N(n,t.condition)||N(n,t.incrementor)||N(n,t.statement)},248:function(t,n,i){return N(n,t.initializer)||N(n,t.expression)||N(n,t.statement)},249:function(t,n,i){return N(n,t.awaitModifier)||N(n,t.initializer)||N(n,t.expression)||N(n,t.statement)},250:bv,251:bv,252:function(t,n,i){return N(n,t.expression)},253:function(t,n,i){return N(n,t.expression)||N(n,t.statement)},254:function(t,n,i){return N(n,t.expression)||N(n,t.caseBlock)},268:function(t,n,i){return ue(n,i,t.clauses)},295:function(t,n,i){return N(n,t.expression)||ue(n,i,t.statements)},296:function(t,n,i){return ue(n,i,t.statements)},255:function(t,n,i){return N(n,t.label)||N(n,t.statement)},256:function(t,n,i){return N(n,t.expression)},257:function(t,n,i){return N(n,t.tryBlock)||N(n,t.catchClause)||N(n,t.finallyBlock)},298:function(t,n,i){return N(n,t.variableDeclaration)||N(n,t.block)},169:function(t,n,i){return N(n,t.expression)},262:vv,230:vv,263:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.name)||ue(n,i,t.typeParameters)||ue(n,i,t.heritageClauses)||ue(n,i,t.members)},264:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.name)||ue(n,i,t.typeParameters)||N(n,t.type)},265:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.name)||ue(n,i,t.members)},305:function(t,n,i){return N(n,t.name)||N(n,t.initializer)},266:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.name)||N(n,t.body)},270:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.name)||N(n,t.moduleReference)},271:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.importClause)||N(n,t.moduleSpecifier)||N(n,t.assertClause)},272:function(t,n,i){return N(n,t.name)||N(n,t.namedBindings)},299:function(t,n,i){return ue(n,i,t.elements)},300:function(t,n,i){return N(n,t.name)||N(n,t.value)},269:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.name)},273:function(t,n,i){return N(n,t.name)},279:function(t,n,i){return N(n,t.name)},274:Tv,278:Tv,277:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.exportClause)||N(n,t.moduleSpecifier)||N(n,t.assertClause)},275:xv,280:xv,276:function(t,n,i){return ue(n,i,t.modifiers)||N(n,t.expression)},227:function(t,n,i){return N(n,t.head)||ue(n,i,t.templateSpans)},238:function(t,n,i){return N(n,t.expression)||N(n,t.literal)},202:function(t,n,i){return N(n,t.head)||ue(n,i,t.templateSpans)},203:function(t,n,i){return N(n,t.type)||N(n,t.literal)},166:function(t,n,i){return N(n,t.expression)},297:function(t,n,i){return ue(n,i,t.types)},232:function(t,n,i){return N(n,t.expression)||ue(n,i,t.typeArguments)},282:function(t,n,i){return N(n,t.expression)},281:function(t,n,i){return ue(n,i,t.modifiers)},360:function(t,n,i){return ue(n,i,t.elements)},283:function(t,n,i){return N(n,t.openingElement)||ue(n,i,t.children)||N(n,t.closingElement)},287:function(t,n,i){return N(n,t.openingFragment)||ue(n,i,t.children)||N(n,t.closingFragment)},284:Sv,285:Sv,291:function(t,n,i){return ue(n,i,t.properties)},290:function(t,n,i){return N(n,t.name)||N(n,t.initializer)},292:function(t,n,i){return N(n,t.expression)},293:function(t,n,i){return N(n,t.dotDotDotToken)||N(n,t.expression)},286:function(t,n,i){return N(n,t.tagName)},294:function(t,n,i){return N(n,t.namespace)||N(n,t.name)},189:Ao,190:Ao,315:Ao,321:Ao,320:Ao,322:Ao,324:Ao,323:function(t,n,i){return ue(n,i,t.parameters)||N(n,t.type)},326:function(t,n,i){return(typeof t.comment=="string"?void 0:ue(n,i,t.comment))||ue(n,i,t.tags)},353:function(t,n,i){return N(n,t.tagName)||N(n,t.name)||(typeof t.comment=="string"?void 0:ue(n,i,t.comment))},316:function(t,n,i){return N(n,t.name)},317:function(t,n,i){return N(n,t.left)||N(n,t.right)},347:wv,354:wv,336:function(t,n,i){return N(n,t.tagName)||(typeof t.comment=="string"?void 0:ue(n,i,t.comment))},335:function(t,n,i){return N(n,t.tagName)||N(n,t.class)||(typeof t.comment=="string"?void 0:ue(n,i,t.comment))},334:function(t,n,i){return N(n,t.tagName)||N(n,t.class)||(typeof t.comment=="string"?void 0:ue(n,i,t.comment))},351:function(t,n,i){return N(n,t.tagName)||N(n,t.constraint)||ue(n,i,t.typeParameters)||(typeof t.comment=="string"?void 0:ue(n,i,t.comment))},352:function(t,n,i){return N(n,t.tagName)||(t.typeExpression&&t.typeExpression.kind===315?N(n,t.typeExpression)||N(n,t.fullName)||(typeof t.comment=="string"?void 0:ue(n,i,t.comment)):N(n,t.fullName)||N(n,t.typeExpression)||(typeof t.comment=="string"?void 0:ue(n,i,t.comment)))},344:function(t,n,i){return N(n,t.tagName)||N(n,t.fullName)||N(n,t.typeExpression)||(typeof t.comment=="string"?void 0:ue(n,i,t.comment))},348:Do,350:Do,349:Do,346:Do,356:Do,355:Do,345:Do,329:function(t,n,i){return hn(t.typeParameters,n)||hn(t.parameters,n)||N(n,t.type)},330:th,331:th,332:th,328:function(t,n,i){return hn(t.jsDocPropertyTags,n)},333:qa,338:qa,339:qa,340:qa,341:qa,342:qa,337:qa,343:qa,359:EF},(e=>{var t=as(99,!0),n=20480,i,s,l,d,y;function p(c){return mr++,c}var x={createBaseSourceFileNode:c=>p(new y(c,0,0)),createBaseIdentifierNode:c=>p(new l(c,0,0)),createBasePrivateIdentifierNode:c=>p(new d(c,0,0)),createBaseTokenNode:c=>p(new s(c,0,0)),createBaseNode:c=>p(new i(c,0,0))},h=Vf(11,x),{createNodeArray:D,createNumericLiteral:w,createStringLiteral:g,createLiteralLikeNode:A,createIdentifier:B,createPrivateIdentifier:G,createToken:oe,createArrayLiteralExpression:Q,createObjectLiteralExpression:W,createPropertyAccessExpression:se,createPropertyAccessChain:we,createElementAccessExpression:Ze,createElementAccessChain:Ue,createCallExpression:rt,createCallChain:ct,createNewExpression:Dn,createParenthesizedExpression:sn,createBlock:ei,createVariableStatement:_n,createExpressionStatement:Pn,createIfStatement:$e,createWhileStatement:$t,createForStatement:jn,createForOfStatement:Qt,createVariableDeclaration:fr,createVariableDeclarationList:Bn}=h,dn,Yt,vt,Un,qn,gt,lt,Zt,zn,mt,mr,bt,cn,dt,Qn,ut,Jt=!0,ln=!1;function yr(c,f,v,C,P=!1,U,ne){var _e;if(U=sS(c,U),U===6){let ce=ti(c,f,v,C,P);return convertToJson(ce,(_e=ce.statements[0])==null?void 0:_e.expression,ce.parseDiagnostics,!1,void 0),ce.referencedFiles=Xe,ce.typeReferenceDirectives=Xe,ce.libReferenceDirectives=Xe,ce.amdDependencies=Xe,ce.hasNoDefaultLib=!1,ce.pragmas=mg,ce}Wn(c,f,v,C,U);let pe=Ci(v,P,U,ne||_7);return hr(),pe}e.parseSourceFile=yr;function Or(c,f){Wn("",c,f,void 0,1),R();let v=Ma(!0),C=m()===1&&!lt.length;return hr(),C?v:void 0}e.parseIsolatedEntityName=Or;function ti(c,f,v=2,C,P=!1){Wn(c,f,v,C,6),Yt=ut,R();let U=S(),ne,_e;if(m()===1)ne=Bt([],U,U),_e=vn();else{let ve;for(;m()!==1;){let Be;switch(m()){case 23:Be=zp();break;case 112:case 97:case 106:Be=vn();break;case 41:Pe(()=>R()===9&&R()!==59)?Be=wp():Be=Ms();break;case 9:case 11:if(Pe(()=>R()!==59)){Be=Lr();break}default:Be=Ms();break}ve&&Wt(ve)?ve.push(Be):ve?ve=[ve,Be]:(ve=Be,m()!==1&&Fe(K.Unexpected_token))}let Ge=Wt(ve)?F(Q(ve),U):M.checkDefined(ve),je=Pn(Ge);F(je,U),ne=Bt([je],U),_e=oi(1,K.Unexpected_token)}let pe=et(c,2,6,!1,ne,_e,Yt,Pr);P&&Ee(pe),pe.nodeCount=mr,pe.identifierCount=cn,pe.identifiers=bt,pe.parseDiagnostics=za(lt,pe),Zt&&(pe.jsDocDiagnostics=za(Zt,pe));let ce=pe;return hr(),ce}e.parseJsonText=ti;function Wn(c,f,v,C,P){switch(i=xt.getNodeConstructor(),s=xt.getTokenConstructor(),l=xt.getIdentifierConstructor(),d=xt.getPrivateIdentifierConstructor(),y=xt.getSourceFileConstructor(),dn=sr(c),vt=f,Un=v,zn=C,qn=P,gt=B0(P),lt=[],dt=0,bt=new Map,cn=0,mr=0,Yt=0,Jt=!0,qn){case 1:case 2:ut=262144;break;case 6:ut=67371008;break;default:ut=0;break}ln=!1,t.setText(vt),t.setOnError(E),t.setScriptTarget(Un),t.setLanguageVariant(gt)}function hr(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),vt=void 0,Un=void 0,zn=void 0,qn=void 0,gt=void 0,Yt=0,lt=void 0,Zt=void 0,dt=0,bt=void 0,Qn=void 0,Jt=!0}function Ci(c,f,v,C){let P=l7(dn);P&&(ut|=16777216),Yt=ut,R();let U=er(0,fn);M.assert(m()===1);let ne=de(vn()),_e=et(dn,c,v,P,U,ne,Yt,C);return u7(_e,vt),p7(_e,pe),_e.commentDirectives=t.getCommentDirectives(),_e.nodeCount=mr,_e.identifierCount=cn,_e.identifiers=bt,_e.parseDiagnostics=za(lt,_e),Zt&&(_e.jsDocDiagnostics=za(Zt,_e)),f&&Ee(_e),_e;function pe(ce,ve,Ge){lt.push(No(dn,ce,ve,Ge))}}function Ie(c,f){return f?de(c):c}let H=!1;function de(c){M.assert(!c.jsDoc);let f=Ka(l4(c,vt),v=>Od.parseJSDocComment(c,v.pos,v.end-v.pos));return f.length&&(c.jsDoc=f),H&&(H=!1,c.flags|=268435456),c}function be(c){let f=zn,v=cf.createSyntaxCursor(c);zn={currentNode:ve};let C=[],P=lt;lt=[];let U=0,ne=pe(c.statements,0);for(;ne!==-1;){let Ge=c.statements[U],je=c.statements[ne];Mn(C,c.statements,U,ne),U=ce(c.statements,ne);let Be=el(P,On=>On.start>=Ge.pos),Lt=Be>=0?el(P,On=>On.start>=je.pos,Be):-1;Be>=0&&Mn(lt,P,Be,Lt>=0?Lt:void 0),Ct(()=>{let On=ut;for(ut|=32768,t.resetTokenState(je.pos),R();m()!==1;){let ca=t.getTokenFullStart(),li=Ss(0,fn);if(C.push(li),ca===t.getTokenFullStart()&&R(),U>=0){let Ji=c.statements[U];if(li.end===Ji.pos)break;li.end>Ji.pos&&(U=ce(c.statements,U+1))}}ut=On},2),ne=U>=0?pe(c.statements,U):-1}if(U>=0){let Ge=c.statements[U];Mn(C,c.statements,U);let je=el(P,Be=>Be.start>=Ge.pos);je>=0&&Mn(lt,P,je)}return zn=f,h.updateSourceFile(c,He(D(C),c.statements));function _e(Ge){return!(Ge.flags&32768)&&!!(Ge.transformFlags&67108864)}function pe(Ge,je){for(let Be=je;Be118}function Pt(){return m()===80?!0:m()===127&&ii()||m()===135&&Nn()?!1:m()>118}function Y(c,f,v=!0){return m()===c?(v&&R(),!0):(f?Fe(f):Fe(K._0_expected,an(c)),!1)}let Le=Object.keys(tl).filter(c=>c.length>2);function _t(c){if(w8(c)){wt(It(vt,c.template.pos),c.template.end,K.Module_declaration_names_may_only_use_or_quoted_strings);return}let f=Ce(c)?Ot(c):void 0;if(!f||!Ag(f,Un)){Fe(K._0_expected,an(27));return}let v=It(vt,c.pos);switch(f){case"const":case"let":case"var":wt(v,c.end,K.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":en(K.Interface_name_cannot_be_0,K.Interface_must_be_given_a_name,19);return;case"is":wt(v,t.getTokenStart(),K.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":en(K.Namespace_name_cannot_be_0,K.Namespace_must_be_given_a_name,19);return;case"type":en(K.Type_alias_name_cannot_be_0,K.Type_alias_must_be_given_a_name,64);return}let C=Zv(f,Le,P=>P)??Zn(f);if(C){wt(v,c.end,K.Unknown_keyword_or_identifier_Did_you_mean_0,C);return}m()!==0&&wt(v,c.end,K.Unexpected_keyword_or_identifier)}function en(c,f,v){m()===v?Fe(f):Fe(c,t.getTokenValue())}function Zn(c){for(let f of Le)if(c.length>f.length+2&&Jn(c,f))return`${f} ${c.slice(f.length)}`}function lo(c,f,v){if(m()===60&&!t.hasPrecedingLineBreak()){Fe(K.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(m()===21){Fe(K.Cannot_start_a_function_call_in_a_type_annotation),R();return}if(f&&!Ai()){v?Fe(K._0_expected,an(27)):Fe(K.Expected_for_property_initializer);return}if(!uo()){if(v){Fe(K._0_expected,an(27));return}_t(c)}}function Na(c){return m()===c?(me(),!0):(M.assert(ef(c)),Fe(K._0_expected,an(c)),!1)}function vr(c,f,v,C){if(m()===f){R();return}let P=Fe(K._0_expected,an(f));v&&P&&Xc(P,No(dn,C,1,K.The_parser_expected_to_find_a_1_to_match_the_0_token_here,an(c),an(f)))}function Je(c){return m()===c?(R(),!0):!1}function at(c){if(m()===c)return vn()}function pu(c){if(m()===c)return fu()}function oi(c,f,v){return at(c)||Hn(c,!1,f||K._0_expected,v||an(c))}function du(c){let f=pu(c);return f||(M.assert(ef(c)),Hn(c,!1,K._0_expected,an(c)))}function vn(){let c=S(),f=m();return R(),F(oe(f),c)}function fu(){let c=S(),f=m();return me(),F(oe(f),c)}function Ai(){return m()===27?!0:m()===20||m()===1||t.hasPrecedingLineBreak()}function uo(){return Ai()?(m()===27&&R(),!0):!1}function In(){return uo()||Y(27)}function Bt(c,f,v,C){let P=D(c,C);return Va(P,f,v??t.getTokenFullStart()),P}function F(c,f,v){return Va(c,f,v??t.getTokenFullStart()),ut&&(c.flags|=ut),ln&&(ln=!1,c.flags|=131072),c}function Hn(c,f,v,...C){f?ki(t.getTokenFullStart(),0,v,...C):v&&Fe(v,...C);let P=S(),U=c===80?B("",void 0):fl(c)?h.createTemplateLiteralLikeNode(c,"","",void 0):c===9?w("",void 0):c===11?g("",void 0):c===281?h.createMissingDeclaration():oe(c);return F(U,P)}function Di(c){let f=bt.get(c);return f===void 0&&bt.set(c,f=c),f}function ia(c,f,v){if(c){cn++;let _e=S(),pe=m(),ce=Di(t.getTokenValue()),ve=t.hasExtendedUnicodeEscape();return ie(),F(B(ce,pe,ve),_e)}if(m()===81)return Fe(v||K.Private_identifiers_are_not_allowed_outside_class_bodies),ia(!0);if(m()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return ia(!0);cn++;let C=m()===1,P=t.isReservedWord(),U=t.getTokenText(),ne=P?K.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:K.Identifier_expected;return Hn(80,C,f||ne,U)}function vs(c){return ia(Yn(),void 0,c)}function Ut(c,f){return ia(Pt(),c,f)}function zt(c){return ia(At(m()),c)}function aa(){return At(m())||m()===11||m()===9}function mu(){return At(m())||m()===11}function b1(c){if(m()===11||m()===9){let f=Lr();return f.text=Di(f.text),f}return c&&m()===23?v1():m()===81?Ts():zt()}function oa(){return b1(!0)}function v1(){let c=S();Y(23);let f=Re(Mt);return Y(24),F(h.createComputedPropertyName(f),c)}function Ts(){let c=S(),f=G(Di(t.getTokenValue()));return R(),F(f,c)}function Ia(c){return m()===c&&jt(yu)}function H_(){return R(),t.hasPrecedingLineBreak()?!1:si()}function yu(){switch(m()){case 87:return R()===94;case 95:return R(),m()===90?Pe(gu):m()===156?Pe(T1):po();case 90:return gu();case 126:case 139:case 153:return R(),si();default:return H_()}}function po(){return m()===60||m()!==42&&m()!==130&&m()!==19&&si()}function T1(){return R(),po()}function hu(){return yi(m())&&jt(yu)}function si(){return m()===23||m()===19||m()===42||m()===26||aa()}function gu(){return R(),m()===86||m()===100||m()===120||m()===60||m()===128&&Pe(nd)||m()===134&&Pe(rd)}function Oa(c,f){if($_(c))return!0;switch(c){case 0:case 1:case 3:return!(m()===27&&f)&&id();case 2:return m()===84||m()===90;case 4:return Pe(Wu);case 5:return Pe(xy)||m()===27&&!f;case 6:return m()===23||aa();case 12:switch(m()){case 23:case 42:case 26:case 25:return!0;default:return aa()}case 18:return aa();case 9:return m()===23||m()===26||aa();case 24:return mu();case 7:return m()===19?Pe(bu):f?Pt()&&!G_():vc()&&!G_();case 8:return Ic();case 10:return m()===28||m()===26||Ic();case 19:return m()===103||m()===87||Pt();case 15:switch(m()){case 28:case 25:return!0}case 11:return m()===26||Oi();case 16:return As(!1);case 17:return As(!0);case 20:case 21:return m()===28||Ra();case 22:return Fs();case 23:return At(m());case 13:return At(m())||m()===19;case 14:return!0;case 25:return!0;case 26:return M.fail("ParsingContext.Count used as a context");default:M.assertNever(c,"Non-exhaustive case in 'isListElement'.")}}function bu(){if(M.assert(m()===19),R()===20){let c=R();return c===28||c===19||c===96||c===119}return!0}function xs(){return R(),Pt()}function K_(){return R(),At(m())}function x1(){return R(),vT(m())}function G_(){return m()===119||m()===96?Pe(vu):!1}function vu(){return R(),Oi()}function Tu(){return R(),Ra()}function Pi(c){if(m()===1)return!0;switch(c){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return m()===20;case 3:return m()===20||m()===84||m()===90;case 7:return m()===19||m()===96||m()===119;case 8:return S1();case 19:return m()===32||m()===21||m()===19||m()===96||m()===119;case 11:return m()===22||m()===27;case 15:case 21:case 10:return m()===24;case 17:case 16:case 18:return m()===22||m()===24;case 20:return m()!==28;case 22:return m()===19||m()===20;case 13:return m()===32||m()===44;case 14:return m()===30&&Pe(My);default:return!1}}function S1(){return!!(Ai()||vp(m())||m()===39)}function X_(){M.assert(dt,"Missing parsing context");for(let c=0;c<26;c++)if(dt&1<=0)}function C1(c){return c===6?K.An_enum_member_name_must_be_followed_by_a_or:void 0}function Tr(){let c=Bt([],S());return c.isMissingList=!0,c}function k1(c){return!!c.isMissingList}function Ni(c,f,v,C){if(Y(v)){let P=Tn(c,f);return Y(C),P}return Tr()}function Ma(c,f){let v=S(),C=c?zt(f):Ut(f);for(;Je(25)&&m()!==30;)C=F(h.createQualifiedName(C,ws(c,!1)),v);return C}function nc(c,f){return F(h.createQualifiedName(c,f),c.pos)}function ws(c,f){if(t.hasPrecedingLineBreak()&&At(m())&&Pe(Pc))return Hn(80,!0,K.Identifier_expected);if(m()===81){let v=Ts();return f?v:Hn(80,!0,K.Identifier_expected)}return c?zt():Ut()}function rc(c){let f=S(),v=[],C;do C=D1(c),v.push(C);while(C.literal.kind===17);return Bt(v,f)}function ku(c){let f=S();return F(h.createTemplateExpression(Du(c),rc(c)),f)}function ic(){let c=S();return F(h.createTemplateLiteralType(Du(!1),Au()),c)}function Au(){let c=S(),f=[],v;do v=A1(),f.push(v);while(v.literal.kind===17);return Bt(f,c)}function A1(){let c=S();return F(h.createTemplateLiteralTypeSpan(yt(),ac(!1)),c)}function ac(c){return m()===20?(ot(c),Es()):oi(18,K._0_expected,an(20))}function D1(c){let f=S();return F(h.createTemplateSpan(Re(Mt),ac(c)),f)}function Lr(){return fo(m())}function Du(c){!c&&t.getTokenFlags()&26656&&ot(!1);let f=fo(m());return M.assert(f.kind===16,"Template head has wrong token kind"),f}function Es(){let c=fo(m());return M.assert(c.kind===17||c.kind===18,"Template fragment has wrong token kind"),c}function Pu(c){let f=c===15||c===18,v=t.getTokenText();return v.substring(1,v.length-(t.isUnterminated()?0:f?1:2))}function fo(c){let f=S(),v=fl(c)?h.createTemplateLiteralLikeNode(c,t.getTokenValue(),Pu(c),t.getTokenFlags()&7176):c===9?w(t.getTokenValue(),t.getNumericLiteralFlags()):c===11?g(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):Lg(c)?A(c,t.getTokenValue()):M.fail();return t.hasExtendedUnicodeEscape()&&(v.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(v.isUnterminated=!0),R(),F(v,f)}function oc(){return Ma(!0,K.Type_expected)}function La(){if(!t.hasPrecedingLineBreak()&&st()===30)return Ni(20,yt,30,32)}function Cs(){let c=S();return F(h.createTypeReferenceNode(oc(),La()),c)}function sc(c){switch(c.kind){case 182:return Bi(c.typeName);case 183:case 184:{let{parameters:f,type:v}=c;return k1(f)||sc(v)}case 195:return sc(c.type);default:return!1}}function P1(c){return R(),F(h.createTypePredicateNode(void 0,c,yt()),c.pos)}function Nu(){let c=S();return R(),F(h.createThisTypeNode(),c)}function Iu(){let c=S();return R(),F(h.createJSDocAllType(),c)}function N1(){let c=S();return R(),F(h.createJSDocNonNullableType(yc(),!1),c)}function Ou(){let c=S();return R(),m()===28||m()===20||m()===22||m()===32||m()===64||m()===52?F(h.createJSDocUnknownType(),c):F(h.createJSDocNullableType(yt(),!1),c)}function I1(){let c=S(),f=J();if(Pe(kd)){R();let v=_i(36),C=xr(59,!1);return Ie(F(h.createJSDocFunctionType(v,C),c),f)}return F(h.createTypeReferenceNode(zt(),void 0),c)}function Mu(){let c=S(),f;return(m()===110||m()===105)&&(f=zt(),Y(59)),F(h.createParameterDeclaration(void 0,void 0,f,void 0,ks(),void 0),c)}function ks(){t.setInJSDocType(!0);let c=S();if(Je(144)){let C=h.createJSDocNamepathType(void 0);e:for(;;)switch(m()){case 20:case 1:case 28:case 5:break e;default:me()}return t.setInJSDocType(!1),F(C,c)}let f=Je(26),v=bc();return t.setInJSDocType(!1),f&&(v=F(h.createJSDocVariadicType(v),c)),m()===64?(R(),F(h.createJSDocOptionalType(v),c)):v}function O1(){let c=S();Y(114);let f=Ma(!0),v=t.hasPrecedingLineBreak()?void 0:Rs();return F(h.createTypeQueryNode(f,v),c)}function Lu(){let c=S(),f=Rr(!1,!0),v=Ut(),C,P;Je(96)&&(Ra()||!Oi()?C=yt():P=Ec());let U=Je(64)?yt():void 0,ne=h.createTypeParameterDeclaration(f,v,C,U);return ne.expression=P,F(ne,c)}function tr(){if(m()===30)return Ni(19,Lu,30,32)}function As(c){return m()===26||Ic()||yi(m())||m()===60||Ra(!c)}function Ju(c){let f=Ba(K.Private_identifiers_cannot_be_used_as_parameters);return Em(f)===0&&!ft(c)&&yi(m())&&R(),f}function Ru(){return Yn()||m()===23||m()===19}function _c(c){return cc(c)}function Fu(c){return cc(c,!1)}function cc(c,f=!0){let v=S(),C=J(),P=c?ni(()=>Rr(!0)):ri(()=>Rr(!0));if(m()===110){let pe=h.createParameterDeclaration(P,void 0,ia(!0),void 0,Ii(),void 0),ce=f_(P);return ce&&j(ce,K.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Ie(F(pe,v),C)}let U=Jt;Jt=!1;let ne=at(26);if(!f&&!Ru())return;let _e=Ie(F(h.createParameterDeclaration(P,ne,Ju(P),at(58),Ii(),Mi()),v),C);return Jt=U,_e}function xr(c,f){if(ju(c,f))return Nt(bc)}function ju(c,f){return c===39?(Y(c),!0):Je(59)?!0:f&&m()===39?(Fe(K._0_expected,an(59)),R(),!0):!1}function Ds(c,f){let v=ii(),C=Nn();Z(!!(c&1)),Te(!!(c&2));let P=c&32?Tn(17,Mu):Tn(16,()=>f?_c(C):Fu(C));return Z(v),Te(C),P}function _i(c){if(!Y(21))return Tr();let f=Ds(c,!0);return Y(22),f}function mo(){Je(28)||In()}function Bu(c){let f=S(),v=J();c===179&&Y(105);let C=tr(),P=_i(4),U=xr(59,!0);mo();let ne=c===178?h.createCallSignature(C,P,U):h.createConstructSignature(C,P,U);return Ie(F(ne,f),v)}function Uu(){return m()===23&&Pe(Ja)}function Ja(){if(R(),m()===26||m()===24)return!0;if(yi(m())){if(R(),Pt())return!0}else if(Pt())R();else return!1;return m()===59||m()===28?!0:m()!==58?!1:(R(),m()===59||m()===28||m()===24)}function qu(c,f,v){let C=Ni(16,()=>_c(!1),23,24),P=Ii();mo();let U=h.createIndexSignature(v,C,P);return Ie(F(U,c),f)}function zu(c,f,v){let C=oa(),P=at(58),U;if(m()===21||m()===30){let ne=tr(),_e=_i(4),pe=xr(59,!0);U=h.createMethodSignature(v,C,P,ne,_e,pe)}else{let ne=Ii();U=h.createPropertySignature(v,C,P,ne),m()===64&&(U.initializer=Mi())}return mo(),Ie(F(U,c),f)}function Wu(){if(m()===21||m()===30||m()===139||m()===153)return!0;let c=!1;for(;yi(m());)c=!0,R();return m()===23?!0:(aa()&&(c=!0,R()),c?m()===21||m()===30||m()===58||m()===59||m()===28||Ai():!1)}function lc(){if(m()===21||m()===30)return Bu(178);if(m()===105&&Pe(yo))return Bu(179);let c=S(),f=J(),v=Rr(!1);return Ia(139)?Li(c,f,v,176,4):Ia(153)?Li(c,f,v,177,4):Uu()?qu(c,f,v):zu(c,f,v)}function yo(){return R(),m()===21||m()===30}function M1(){return R()===25}function uc(){switch(R()){case 21:case 30:case 25:return!0}return!1}function L1(){let c=S();return F(h.createTypeLiteralNode(pc()),c)}function pc(){let c;return Y(19)?(c=er(4,lc),Y(20)):c=Tr(),c}function J1(){return R(),m()===40||m()===41?R()===148:(m()===148&&R(),m()===23&&xs()&&R()===103)}function Vu(){let c=S(),f=zt();Y(103);let v=yt();return F(h.createTypeParameterDeclaration(void 0,f,v,void 0),c)}function R1(){let c=S();Y(19);let f;(m()===148||m()===40||m()===41)&&(f=vn(),f.kind!==148&&Y(148)),Y(23);let v=Vu(),C=Je(130)?yt():void 0;Y(24);let P;(m()===58||m()===40||m()===41)&&(P=vn(),P.kind!==58&&Y(58));let U=Ii();In();let ne=er(4,lc);return Y(20),F(h.createMappedTypeNode(f,v,C,P,U,ne),c)}function dc(){let c=S();if(Je(26))return F(h.createRestTypeNode(yt()),c);let f=yt();if(R8(f)&&f.pos===f.type.pos){let v=h.createOptionalTypeNode(f.type);return He(v,f),v.flags=f.flags,v}return f}function Hu(){return R()===59||m()===58&&R()===59}function Ku(){return m()===26?At(R())&&Hu():At(m())&&Hu()}function F1(){if(Pe(Ku)){let c=S(),f=J(),v=at(26),C=zt(),P=at(58);Y(59);let U=dc(),ne=h.createNamedTupleMember(v,C,P,U);return Ie(F(ne,c),f)}return dc()}function Gu(){let c=S();return F(h.createTupleTypeNode(Ni(21,F1,23,24)),c)}function j1(){let c=S();Y(21);let f=yt();return Y(22),F(h.createParenthesizedType(f),c)}function Xu(){let c;if(m()===128){let f=S();R();let v=F(oe(128),f);c=Bt([v],f)}return c}function $u(){let c=S(),f=J(),v=Xu(),C=Je(105);M.assert(!v||C,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let P=tr(),U=_i(4),ne=xr(39,!1),_e=C?h.createConstructorTypeNode(v,P,U,ne):h.createFunctionTypeNode(P,U,ne);return Ie(F(_e,c),f)}function fc(){let c=vn();return m()===25?void 0:c}function Qu(c){let f=S();c&&R();let v=m()===112||m()===97||m()===106?vn():fo(m());return c&&(v=F(h.createPrefixUnaryExpression(41,v),f)),F(h.createLiteralTypeNode(v),f)}function Yu(){return R(),m()===102}function B1(){let c=S(),f=t.getTokenStart();Y(19);let v=t.hasPrecedingLineBreak();Y(132),Y(59);let C=jc(!0);if(!Y(20)){let P=Ti(lt);P&&P.code===K._0_expected.code&&Xc(P,No(dn,f,1,K.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return F(h.createImportTypeAssertionContainer(C,v),c)}function mc(){Yt|=2097152;let c=S(),f=Je(114);Y(102),Y(21);let v=yt(),C;Je(28)&&(C=B1()),Y(22);let P=Je(25)?oc():void 0,U=La();return F(h.createImportTypeNode(v,C,P,U,f),c)}function Zu(){return R(),m()===9||m()===10}function yc(){switch(m()){case 133:case 159:case 154:case 150:case 162:case 155:case 136:case 157:case 146:case 151:return jt(fc)||Cs();case 67:t.reScanAsteriskEqualsToken();case 42:return Iu();case 61:t.reScanQuestionToken();case 58:return Ou();case 100:return I1();case 54:return N1();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return Qu();case 41:return Pe(Zu)?Qu(!0):Cs();case 116:return vn();case 110:{let c=Nu();return m()===142&&!t.hasPrecedingLineBreak()?P1(c):c}case 114:return Pe(Yu)?mc():O1();case 19:return Pe(J1)?R1():L1();case 23:return Gu();case 21:return j1();case 102:return mc();case 131:return Pe(Pc)?cp():Cs();case 16:return ic();default:return Cs()}}function Ra(c){switch(m()){case 133:case 159:case 154:case 150:case 162:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!c;case 41:return!c&&Pe(Zu);case 21:return!c&&Pe(ep);default:return Pt()}}function ep(){return R(),m()===22||As(!1)||Ra()}function tp(){let c=S(),f=yc();for(;!t.hasPrecedingLineBreak();)switch(m()){case 54:R(),f=F(h.createJSDocNonNullableType(f,!0),c);break;case 58:if(Pe(Tu))return f;R(),f=F(h.createJSDocNullableType(f,!0),c);break;case 23:if(Y(23),Ra()){let v=yt();Y(24),f=F(h.createIndexedAccessTypeNode(f,v),c)}else Y(24),f=F(h.createArrayTypeNode(f),c);break;default:return f}return f}function np(c){let f=S();return Y(c),F(h.createTypeOperatorNode(c,ip()),f)}function U1(){if(Je(96)){let c=Vn(yt);if(ra()||m()!==58)return c}}function rp(){let c=S(),f=Ut(),v=jt(U1),C=h.createTypeParameterDeclaration(void 0,f,v);return F(C,c)}function q1(){let c=S();return Y(140),F(h.createInferTypeNode(rp()),c)}function ip(){let c=m();switch(c){case 143:case 158:case 148:return np(c);case 140:return q1()}return Nt(tp)}function Ps(c){if(gc()){let f=$u(),v;return Gl(f)?v=c?K.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:K.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:v=c?K.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:K.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,j(f,v),f}}function ap(c,f,v){let C=S(),P=c===52,U=Je(c),ne=U&&Ps(P)||f();if(m()===c||U){let _e=[ne];for(;Je(c);)_e.push(Ps(P)||f());ne=F(v(Bt(_e,C)),C)}return ne}function hc(){return ap(51,ip,h.createIntersectionTypeNode)}function z1(){return ap(52,hc,h.createUnionTypeNode)}function op(){return R(),m()===105}function gc(){return m()===30||m()===21&&Pe(sp)?!0:m()===105||m()===128&&Pe(op)}function W1(){if(yi(m())&&Rr(!1),Pt()||m()===110)return R(),!0;if(m()===23||m()===19){let c=lt.length;return Ba(),c===lt.length}return!1}function sp(){return R(),!!(m()===22||m()===26||W1()&&(m()===59||m()===28||m()===58||m()===64||m()===22&&(R(),m()===39)))}function bc(){let c=S(),f=Pt()&&jt(_p),v=yt();return f?F(h.createTypePredicateNode(void 0,f,v),c):v}function _p(){let c=Ut();if(m()===142&&!t.hasPrecedingLineBreak())return R(),c}function cp(){let c=S(),f=oi(131),v=m()===110?Nu():Ut(),C=Je(142)?yt():void 0;return F(h.createTypePredicateNode(f,v,C),c)}function yt(){if(ut&40960)return Oe(40960,yt);if(gc())return $u();let c=S(),f=z1();if(!ra()&&!t.hasPrecedingLineBreak()&&Je(96)){let v=Vn(yt);Y(58);let C=Nt(yt);Y(59);let P=Nt(yt);return F(h.createConditionalTypeNode(f,v,C,P),c)}return f}function Ii(){return Je(59)?yt():void 0}function vc(){switch(m()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return Pe(uc);default:return Pt()}}function Oi(){if(vc())return!0;switch(m()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return Tp()?!0:Pt()}}function lp(){return m()!==19&&m()!==100&&m()!==86&&m()!==60&&Oi()}function Mt(){let c=Mr();c&&ae(!1);let f=S(),v=un(!0),C;for(;C=at(28);)v=Sc(v,C,un(!0),f);return c&&ae(!0),v}function Mi(){return Je(64)?un(!0):void 0}function un(c){if(up())return pp();let f=H1(c)||hp(c);if(f)return f;let v=S(),C=ho(0);return C.kind===80&&m()===39?dp(v,C,c,void 0):jo(C)&&w_(ke())?Sc(C,vn(),un(c),v):K1(C,v,c)}function up(){return m()===127?ii()?!0:Pe(Nc):!1}function V1(){return R(),!t.hasPrecedingLineBreak()&&Pt()}function pp(){let c=S();return R(),!t.hasPrecedingLineBreak()&&(m()===42||Oi())?F(h.createYieldExpression(at(42),un(!0)),c):F(h.createYieldExpression(void 0,void 0),c)}function dp(c,f,v,C){M.assert(m()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let P=h.createParameterDeclaration(void 0,void 0,f,void 0,void 0,void 0);F(P,f.pos);let U=Bt([P],P.pos,P.end),ne=oi(39),_e=Tc(!!C,v),pe=h.createArrowFunction(C,void 0,U,void 0,ne,_e);return de(F(pe,c))}function H1(c){let f=fp();if(f!==0)return f===1?bp(!0,!0):jt(()=>yp(c))}function fp(){return m()===21||m()===30||m()===134?Pe(mp):m()===39?1:0}function mp(){if(m()===134&&(R(),t.hasPrecedingLineBreak()||m()!==21&&m()!==30))return 0;let c=m(),f=R();if(c===21){if(f===22)switch(R()){case 39:case 59:case 19:return 1;default:return 0}if(f===23||f===19)return 2;if(f===26)return 1;if(yi(f)&&f!==134&&Pe(xs))return R()===130?0:1;if(!Pt()&&f!==110)return 0;switch(R()){case 59:return 1;case 58:return R(),m()===59||m()===28||m()===64||m()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return M.assert(c===30),!Pt()&&m()!==87?0:gt===1?Pe(()=>{Je(87);let C=R();if(C===96)switch(R()){case 64:case 32:case 44:return!1;default:return!0}else if(C===28||C===64)return!0;return!1})?1:0:2}function yp(c){let f=t.getTokenStart();if(Qn!=null&&Qn.has(f))return;let v=bp(!1,c);return v||(Qn||(Qn=new Set)).add(f),v}function hp(c){if(m()===134&&Pe(gp)===1){let f=S(),v=Rc(),C=ho(0);return dp(f,C,c,v)}}function gp(){if(m()===134){if(R(),t.hasPrecedingLineBreak()||m()===39)return 0;let c=ho(0);if(!t.hasPrecedingLineBreak()&&c.kind===80&&m()===39)return 1}return 0}function bp(c,f){let v=S(),C=J(),P=Rc(),U=ft(P,Qc)?2:0,ne=tr(),_e;if(Y(21)){if(c)_e=Ds(U,c);else{let ca=Ds(U,c);if(!ca)return;_e=ca}if(!Y(22)&&!c)return}else{if(!c)return;_e=Tr()}let pe=m()===59,ce=xr(59,!1);if(ce&&!c&&sc(ce))return;let ve=ce;for(;(ve==null?void 0:ve.kind)===195;)ve=ve.type;let Ge=ve&&e1(ve);if(!c&&m()!==39&&(Ge||m()!==19))return;let je=m(),Be=oi(39),Lt=je===39||je===19?Tc(ft(P,Qc),f):Ut();if(!f&&pe&&m()!==59)return;let On=h.createArrowFunction(P,ne,_e,ce,Be,Lt);return Ie(F(On,v),C)}function Tc(c,f){if(m()===19)return Ls(c?2:0);if(m()!==27&&m()!==100&&m()!==86&&id()&&!lp())return Ls(16|(c?2:0));let v=Jt;Jt=!1;let C=c?ni(()=>un(f)):ri(()=>un(f));return Jt=v,C}function K1(c,f,v){let C=at(58);if(!C)return c;let P;return F(h.createConditionalExpression(c,C,Oe(n,()=>un(!1)),P=oi(59),yl(P)?un(v):Hn(80,!1,K._0_expected,an(59))),f)}function ho(c){let f=S(),v=Ec();return xc(c,v,f)}function vp(c){return c===103||c===164}function xc(c,f,v){for(;;){ke();let C=il(m());if(!(m()===43?C>=c:C>c)||m()===103&&ai())break;if(m()===130||m()===152){if(t.hasPrecedingLineBreak())break;{let U=m();R(),f=U===152?xp(f,yt()):Sp(f,yt())}}else f=Sc(f,vn(),ho(C),v)}return f}function Tp(){return ai()&&m()===103?!1:il(m())>0}function xp(c,f){return F(h.createSatisfiesExpression(c,f),c.pos)}function Sc(c,f,v,C){return F(h.createBinaryExpression(c,f,v),C)}function Sp(c,f){return F(h.createAsExpression(c,f),c.pos)}function wp(){let c=S();return F(h.createPrefixUnaryExpression(m(),he(ci)),c)}function Ep(){let c=S();return F(h.createDeleteExpression(he(ci)),c)}function G1(){let c=S();return F(h.createTypeOfExpression(he(ci)),c)}function Cp(){let c=S();return F(h.createVoidExpression(he(ci)),c)}function X1(){return m()===135?Nn()?!0:Pe(Nc):!1}function wc(){let c=S();return F(h.createAwaitExpression(he(ci)),c)}function Ec(){if(kp()){let v=S(),C=Ap();return m()===43?xc(il(m()),C,v):C}let c=m(),f=ci();if(m()===43){let v=It(vt,f.pos),{end:C}=f;f.kind===215?wt(v,C,K.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(M.assert(ef(c)),wt(v,C,K.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,an(c)))}return f}function ci(){switch(m()){case 40:case 41:case 55:case 54:return wp();case 91:return Ep();case 114:return G1();case 116:return Cp();case 30:return gt===1?go(!0,void 0,void 0,!0):Rp();case 135:if(X1())return wc();default:return Ap()}}function kp(){switch(m()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(gt!==1)return!1;default:return!0}}function Ap(){if(m()===46||m()===47){let f=S();return F(h.createPrefixUnaryExpression(m(),he(Fa)),f)}else if(gt===1&&m()===30&&Pe(x1))return go(!0);let c=Fa();if(M.assert(jo(c)),(m()===46||m()===47)&&!t.hasPrecedingLineBreak()){let f=m();return R(),F(h.createPostfixUnaryExpression(c,f),c.pos)}return c}function Fa(){let c=S(),f;return m()===102?Pe(yo)?(Yt|=2097152,f=vn()):Pe(M1)?(R(),R(),f=F(h.createMetaProperty(102,zt()),c),Yt|=4194304):f=Dp():f=m()===108?Cc():Dp(),Ac(c,f)}function Dp(){let c=S(),f=Dc();return Is(c,f,!0)}function Cc(){let c=S(),f=vn();if(m()===30){let v=S(),C=jt(Os);C!==void 0&&(wt(v,S(),K.super_may_not_use_type_arguments),vo()||(f=h.createExpressionWithTypeArguments(f,C)))}return m()===21||m()===25||m()===23?f:(oi(25,K.super_must_be_followed_by_an_argument_list_or_member_access),F(se(f,ws(!0,!0)),c))}function go(c,f,v,C=!1){let P=S(),U=Ip(c),ne;if(U.kind===285){let _e=Np(U),pe,ce=_e[_e.length-1];if((ce==null?void 0:ce.kind)===283&&!gi(ce.openingElement.tagName,ce.closingElement.tagName)&&gi(U.tagName,ce.closingElement.tagName)){let ve=ce.children.end,Ge=F(h.createJsxElement(ce.openingElement,ce.children,F(h.createJsxClosingElement(F(B(""),ve,ve)),ve,ve)),ce.openingElement.pos,ve);_e=Bt([..._e.slice(0,_e.length-1),Ge],_e.pos,ve),pe=ce.closingElement}else pe=Jp(U,c),gi(U.tagName,pe.tagName)||(v&&Ro(v)&&gi(pe.tagName,v.tagName)?j(U.tagName,K.JSX_element_0_has_no_corresponding_closing_tag,Ys(vt,U.tagName)):j(pe.tagName,K.Expected_corresponding_JSX_closing_tag_for_0,Ys(vt,U.tagName)));ne=F(h.createJsxElement(U,_e,pe),P)}else U.kind===288?ne=F(h.createJsxFragment(U,Np(U),ty(c)),P):(M.assert(U.kind===284),ne=U);if(!C&&c&&m()===30){let _e=typeof f>"u"?ne.pos:f,pe=jt(()=>go(!0,_e));if(pe){let ce=Hn(28,!1);return zf(ce,pe.pos,0),wt(It(vt,_e),pe.end,K.JSX_expressions_must_have_one_parent_element),F(h.createBinaryExpression(ne,ce,pe),P)}}return ne}function $1(){let c=S(),f=h.createJsxText(t.getTokenValue(),mt===13);return mt=t.scanJsxToken(),F(f,c)}function Pp(c,f){switch(f){case 1:if(Nb(c))j(c,K.JSX_fragment_has_no_corresponding_closing_tag);else{let v=c.tagName,C=Math.min(It(vt,v.pos),v.end);wt(C,v.end,K.JSX_element_0_has_no_corresponding_closing_tag,Ys(vt,c.tagName))}return;case 31:case 7:return;case 12:case 13:return $1();case 19:return Op(!1);case 30:return go(!1,void 0,c);default:return M.assertNever(f)}}function Np(c){let f=[],v=S(),C=dt;for(dt|=16384;;){let P=Pp(c,mt=t.reScanJsxToken());if(!P||(f.push(P),Ro(c)&&(P==null?void 0:P.kind)===283&&!gi(P.openingElement.tagName,P.closingElement.tagName)&&gi(c.tagName,P.closingElement.tagName)))break}return dt=C,Bt(f,v)}function Q1(){let c=S();return F(h.createJsxAttributes(er(13,Mp)),c)}function Ip(c){let f=S();if(Y(30),m()===32)return Et(),F(h.createJsxOpeningFragment(),f);let v=Ns(),C=ut&262144?void 0:Rs(),P=Q1(),U;return m()===32?(Et(),U=h.createJsxOpeningElement(v,C,P)):(Y(44),Y(32,void 0,!1)&&(c?R():Et()),U=h.createJsxSelfClosingElement(v,C,P)),F(U,f)}function Ns(){let c=S(),f=Y1();if(J_(f))return f;let v=f;for(;Je(25);)v=F(se(v,ws(!0,!1)),c);return v}function Y1(){let c=S();Ft();let f=m()===110,v=zt();return Je(59)?(Ft(),F(h.createJsxNamespacedName(v,zt()),c)):f?F(h.createToken(110),c):v}function Op(c){let f=S();if(!Y(19))return;let v,C;return m()!==20&&(v=at(26),C=Mt()),c?Y(20):Y(20,void 0,!1)&&Et(),F(h.createJsxExpression(v,C),f)}function Mp(){if(m()===19)return ey();let c=S();return F(h.createJsxAttribute(Lp(),Z1()),c)}function Z1(){if(m()===64){if(bn()===11)return Lr();if(m()===19)return Op(!0);if(m()===30)return go(!0);Fe(K.or_JSX_element_expected)}}function Lp(){let c=S();Ft();let f=zt();return Je(59)?(Ft(),F(h.createJsxNamespacedName(f,zt()),c)):f}function ey(){let c=S();Y(19),Y(26);let f=Mt();return Y(20),F(h.createJsxSpreadAttribute(f),c)}function Jp(c,f){let v=S();Y(31);let C=Ns();return Y(32,void 0,!1)&&(f||!gi(c.tagName,C)?R():Et()),F(h.createJsxClosingElement(C),v)}function ty(c){let f=S();return Y(31),Y(32,K.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(c?R():Et()),F(h.createJsxJsxClosingFragment(),f)}function Rp(){M.assert(gt!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let c=S();Y(30);let f=yt();Y(32);let v=ci();return F(h.createTypeAssertion(f,v),c)}function ny(){return R(),At(m())||m()===23||vo()}function Sr(){return m()===29&&Pe(ny)}function Jr(c){if(c.flags&32)return!0;if(qo(c)){let f=c.expression;for(;qo(f)&&!(f.flags&32);)f=f.expression;if(f.flags&32){for(;qo(c);)c.flags|=32,c=c.expression;return!0}}return!1}function bo(c,f,v){let C=ws(!0,!0),P=v||Jr(f),U=P?we(f,v,C):se(f,C);if(P&&Ln(U.name)&&j(U.name,K.An_optional_chain_cannot_contain_private_identifiers),Tb(f)&&f.typeArguments){let ne=f.typeArguments.pos-1,_e=It(vt,f.typeArguments.end)+1;wt(ne,_e,K.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return F(U,c)}function Fp(c,f,v){let C;if(m()===24)C=Hn(80,!0,K.An_element_access_expression_should_take_an_argument);else{let U=Re(Mt);Ki(U)&&(U.text=Di(U.text)),C=U}Y(24);let P=v||Jr(f)?Ue(f,v,C):Ze(f,C);return F(P,c)}function Is(c,f,v){for(;;){let C,P=!1;if(v&&Sr()?(C=oi(29),P=At(m())):P=Je(25),P){f=bo(c,f,C);continue}if((C||!Mr())&&Je(23)){f=Fp(c,f,C);continue}if(vo()){f=!C&&f.kind===232?kc(c,f.expression,C,f.typeArguments):kc(c,f,C,void 0);continue}if(!C){if(m()===54&&!t.hasPrecedingLineBreak()){R(),f=F(h.createNonNullExpression(f),c);continue}let U=jt(Os);if(U){f=F(h.createExpressionWithTypeArguments(f,U),c);continue}}return f}}function vo(){return m()===15||m()===16}function kc(c,f,v,C){let P=h.createTaggedTemplateExpression(f,C,m()===15?(ot(!0),Lr()):ku(!0));return(v||f.flags&32)&&(P.flags|=32),P.questionDotToken=v,F(P,c)}function Ac(c,f){for(;;){f=Is(c,f,!0);let v,C=at(29);if(C&&(v=jt(Os),vo())){f=kc(c,f,C,v);continue}if(v||m()===21){!C&&f.kind===232&&(v=f.typeArguments,f=f.expression);let P=jp(),U=C||Jr(f)?ct(f,C,v,P):rt(f,v,P);f=F(U,c);continue}if(C){let P=Hn(80,!1,K.Identifier_expected);f=F(we(f,C,P),c)}break}return f}function jp(){Y(21);let c=Tn(11,qp);return Y(22),c}function Os(){if(ut&262144||st()!==30)return;R();let c=Tn(20,yt);if(ke()===32)return R(),c&&ry()?c:void 0}function ry(){switch(m()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||Tp()||!Oi()}function Dc(){switch(m()){case 15:t.getTokenFlags()&26656&&ot(!1);case 9:case 10:case 11:return Lr();case 110:case 108:case 106:case 112:case 97:return vn();case 21:return iy();case 23:return zp();case 19:return Ms();case 134:if(!Pe(rd))break;return Vp();case 60:return Cy();case 86:return hd();case 100:return Vp();case 105:return ay();case 44:case 69:if(De()===14)return Lr();break;case 16:return ku(!1);case 81:return Ts()}return Ut(K.Expression_expected)}function iy(){let c=S(),f=J();Y(21);let v=Re(Mt);return Y(22),Ie(F(sn(v),c),f)}function Bp(){let c=S();Y(26);let f=un(!0);return F(h.createSpreadElement(f),c)}function Up(){return m()===26?Bp():m()===28?F(h.createOmittedExpression(),S()):un(!0)}function qp(){return Oe(n,Up)}function zp(){let c=S(),f=t.getTokenStart(),v=Y(23),C=t.hasPrecedingLineBreak(),P=Tn(15,Up);return vr(23,24,v,f),F(Q(P,C),c)}function Wp(){let c=S(),f=J();if(at(26)){let ve=un(!0);return Ie(F(h.createSpreadAssignment(ve),c),f)}let v=Rr(!0);if(Ia(139))return Li(c,f,v,176,0);if(Ia(153))return Li(c,f,v,177,0);let C=at(42),P=Pt(),U=oa(),ne=at(58),_e=at(54);if(C||m()===21||m()===30)return dd(c,f,v,C,U,ne,_e);let pe;if(P&&m()!==59){let ve=at(64),Ge=ve?Re(()=>un(!0)):void 0;pe=h.createShorthandPropertyAssignment(U,Ge),pe.equalsToken=ve}else{Y(59);let ve=Re(()=>un(!0));pe=h.createPropertyAssignment(U,ve)}return pe.modifiers=v,pe.questionToken=ne,pe.exclamationToken=_e,Ie(F(pe,c),f)}function Ms(){let c=S(),f=t.getTokenStart(),v=Y(19),C=t.hasPrecedingLineBreak(),P=Tn(12,Wp,!0);return vr(19,20,v,f),F(W(P,C),c)}function Vp(){let c=Mr();ae(!1);let f=S(),v=J(),C=Rr(!1);Y(100);let P=at(42),U=P?1:0,ne=ft(C,Qc)?2:0,_e=U&&ne?na(ja):U?ta(ja):ne?ni(ja):ja(),pe=tr(),ce=_i(U|ne),ve=xr(59,!1),Ge=Ls(U|ne);ae(c);let je=h.createFunctionExpression(C,P,_e,pe,ce,ve,Ge);return Ie(F(je,f),v)}function ja(){return Yn()?vs():void 0}function ay(){let c=S();if(Y(105),Je(25)){let U=zt();return F(h.createMetaProperty(105,U),c)}let f=S(),v=Is(f,Dc(),!1),C;v.kind===232&&(C=v.typeArguments,v=v.expression),m()===29&&Fe(K.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,Ys(vt,v));let P=m()===21?jp():void 0;return F(Dn(v,C,P),c)}function sa(c,f){let v=S(),C=J(),P=t.getTokenStart(),U=Y(19,f);if(U||c){let ne=t.hasPrecedingLineBreak(),_e=er(1,fn);vr(19,20,U,P);let pe=Ie(F(ei(_e,ne),v),C);return m()===64&&(Fe(K.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),R()),pe}else{let ne=Tr();return Ie(F(ei(ne,void 0),v),C)}}function Ls(c,f){let v=ii();Z(!!(c&1));let C=Nn();Te(!!(c&2));let P=Jt;Jt=!1;let U=Mr();U&&ae(!1);let ne=sa(!!(c&16),f);return U&&ae(!0),Jt=P,Z(v),Te(C),ne}function Hp(){let c=S(),f=J();return Y(27),Ie(F(h.createEmptyStatement(),c),f)}function oy(){let c=S(),f=J();Y(101);let v=t.getTokenStart(),C=Y(21),P=Re(Mt);vr(21,22,C,v);let U=fn(),ne=Je(93)?fn():void 0;return Ie(F($e(P,U,ne),c),f)}function Kp(){let c=S(),f=J();Y(92);let v=fn();Y(117);let C=t.getTokenStart(),P=Y(21),U=Re(Mt);return vr(21,22,P,C),Je(27),Ie(F(h.createDoStatement(v,U),c),f)}function sy(){let c=S(),f=J();Y(117);let v=t.getTokenStart(),C=Y(21),P=Re(Mt);vr(21,22,C,v);let U=fn();return Ie(F($t(P,U),c),f)}function Gp(){let c=S(),f=J();Y(99);let v=at(135);Y(21);let C;m()!==27&&(m()===115||m()===121||m()===87?C=ld(!0):C=Rt(Mt));let P;if(v?Y(164):Je(164)){let U=Re(()=>un(!0));Y(22),P=Qt(v,C,U,fn())}else if(Je(103)){let U=Re(Mt);Y(22),P=h.createForInStatement(C,U,fn())}else{Y(27);let U=m()!==27&&m()!==22?Re(Mt):void 0;Y(27);let ne=m()!==22?Re(Mt):void 0;Y(22),P=jn(C,U,ne,fn())}return Ie(F(P,c),f)}function Xp(c){let f=S(),v=J();Y(c===251?83:88);let C=Ai()?void 0:Ut();In();let P=c===251?h.createBreakStatement(C):h.createContinueStatement(C);return Ie(F(P,f),v)}function _y(){let c=S(),f=J();Y(107);let v=Ai()?void 0:Re(Mt);return In(),Ie(F(h.createReturnStatement(v),c),f)}function $p(){let c=S(),f=J();Y(118);let v=t.getTokenStart(),C=Y(21),P=Re(Mt);vr(21,22,C,v);let U=We(33554432,fn);return Ie(F(h.createWithStatement(P,U),c),f)}function cy(){let c=S(),f=J();Y(84);let v=Re(Mt);Y(59);let C=er(3,fn);return Ie(F(h.createCaseClause(v,C),c),f)}function Qp(){let c=S();Y(90),Y(59);let f=er(3,fn);return F(h.createDefaultClause(f),c)}function ly(){return m()===84?cy():Qp()}function Yp(){let c=S();Y(19);let f=er(2,ly);return Y(20),F(h.createCaseBlock(f),c)}function uy(){let c=S(),f=J();Y(109),Y(21);let v=Re(Mt);Y(22);let C=Yp();return Ie(F(h.createSwitchStatement(v,C),c),f)}function Zp(){let c=S(),f=J();Y(111);let v=t.hasPrecedingLineBreak()?void 0:Re(Mt);return v===void 0&&(cn++,v=F(B(""),S())),uo()||_t(v),Ie(F(h.createThrowStatement(v),c),f)}function py(){let c=S(),f=J();Y(113);let v=sa(!1),C=m()===85?ed():void 0,P;return(!C||m()===98)&&(Y(98,K.catch_or_finally_expected),P=sa(!1)),Ie(F(h.createTryStatement(v,C,P),c),f)}function ed(){let c=S();Y(85);let f;Je(21)?(f=Js(),Y(22)):f=void 0;let v=sa(!1);return F(h.createCatchClause(f,v),c)}function dy(){let c=S(),f=J();return Y(89),In(),Ie(F(h.createDebuggerStatement(),c),f)}function td(){let c=S(),f=J(),v,C=m()===21,P=Re(Mt);return Ce(P)&&Je(59)?v=h.createLabeledStatement(P,fn()):(uo()||_t(P),v=Pn(P),C&&(f=!1)),Ie(F(v,c),f)}function Pc(){return R(),At(m())&&!t.hasPrecedingLineBreak()}function nd(){return R(),m()===86&&!t.hasPrecedingLineBreak()}function rd(){return R(),m()===100&&!t.hasPrecedingLineBreak()}function Nc(){return R(),(At(m())||m()===9||m()===10||m()===11)&&!t.hasPrecedingLineBreak()}function fy(){for(;;)switch(m()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 120:case 156:return V1();case 144:case 145:return hy();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:if(R(),t.hasPrecedingLineBreak())return!1;continue;case 161:return R(),m()===19||m()===80||m()===95;case 102:return R(),m()===11||m()===42||m()===19||At(m());case 95:let c=R();if(c===156&&(c=Pe(R)),c===64||c===42||c===19||c===90||c===130||c===60)return!0;continue;case 126:R();continue;default:return!1}}function To(){return Pe(fy)}function id(){switch(m()){case 60:case 27:case 19:case 115:case 121:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return To()||Pe(uc);case 87:case 95:return To();case 134:case 138:case 120:case 144:case 145:case 156:case 161:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return To()||!Pe(Pc);default:return Oi()}}function ad(){return R(),Yn()||m()===19||m()===23}function my(){return Pe(ad)}function fn(){switch(m()){case 27:return Hp();case 19:return sa(!1);case 115:return Oc(S(),J(),void 0);case 121:if(my())return Oc(S(),J(),void 0);break;case 100:return Mc(S(),J(),void 0);case 86:return gd(S(),J(),void 0);case 101:return oy();case 92:return Kp();case 117:return sy();case 99:return Gp();case 88:return Xp(250);case 83:return Xp(251);case 107:return _y();case 118:return $p();case 109:return uy();case 111:return Zp();case 113:case 85:case 98:return py();case 89:return dy();case 60:return xo();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 161:if(To())return xo();break}return td()}function od(c){return c.kind===138}function xo(){let c=S(),f=J(),v=Rr(!0);if(ft(v,od)){let P=yy(c);if(P)return P;for(let U of v)U.flags|=16777216;return We(16777216,()=>sd(c,f,v))}else return sd(c,f,v)}function yy(c){return We(16777216,()=>{let f=$_(dt,c);if(f)return Q_(f)})}function sd(c,f,v){switch(m()){case 115:case 121:case 87:return Oc(c,f,v);case 100:return Mc(c,f,v);case 86:return gd(c,f,v);case 120:return Py(c,f,v);case 156:return Ny(c,f,v);case 94:return Oy(c,f,v);case 161:case 144:case 145:return Ed(c,f,v);case 102:return Ly(c,f,v);case 95:switch(R(),m()){case 90:case 64:return Wy(c,f,v);case 130:return Ad(c,f,v);default:return wo(c,f,v)}default:if(v){let C=Hn(281,!0,K.Declaration_expected);return qf(C,c),C.modifiers=v,C}return}}function hy(){return R(),!t.hasPrecedingLineBreak()&&(Pt()||m()===11)}function So(c,f){if(m()!==19){if(c&4){mo();return}if(Ai()){In();return}}return Ls(c,f)}function gy(){let c=S();if(m()===28)return F(h.createOmittedExpression(),c);let f=at(26),v=Ba(),C=Mi();return F(h.createBindingElement(f,void 0,v,C),c)}function _d(){let c=S(),f=at(26),v=Yn(),C=oa(),P;v&&m()!==59?(P=C,C=void 0):(Y(59),P=Ba());let U=Mi();return F(h.createBindingElement(f,C,P,U),c)}function by(){let c=S();Y(19);let f=Tn(9,_d);return Y(20),F(h.createObjectBindingPattern(f),c)}function cd(){let c=S();Y(23);let f=Tn(10,gy);return Y(24),F(h.createArrayBindingPattern(f),c)}function Ic(){return m()===19||m()===23||m()===81||Yn()}function Ba(c){return m()===23?cd():m()===19?by():vs(c)}function vy(){return Js(!0)}function Js(c){let f=S(),v=J(),C=Ba(K.Private_identifiers_are_not_allowed_in_variable_declarations),P;c&&C.kind===80&&m()===54&&!t.hasPrecedingLineBreak()&&(P=vn());let U=Ii(),ne=vp(m())?void 0:Mi(),_e=fr(C,P,U,ne);return Ie(F(_e,f),v)}function ld(c){let f=S(),v=0;switch(m()){case 115:break;case 121:v|=1;break;case 87:v|=2;break;default:M.fail()}R();let C;if(m()===164&&Pe(ud))C=Tr();else{let P=ai();ee(c),C=Tn(8,c?Js:vy),ee(P)}return F(Bn(C,v),f)}function ud(){return xs()&&R()===22}function Oc(c,f,v){let C=ld(!1);In();let P=_n(v,C);return Ie(F(P,c),f)}function Mc(c,f,v){let C=Nn(),P=ar(v);Y(100);let U=at(42),ne=P&1024?ja():vs(),_e=U?1:0,pe=P&512?2:0,ce=tr();P&1&&Te(!0);let ve=_i(_e|pe),Ge=xr(59,!1),je=So(_e|pe,K.or_expected);Te(C);let Be=h.createFunctionDeclaration(v,U,ne,ce,ve,Ge,je);return Ie(F(Be,c),f)}function Ty(){if(m()===137)return Y(137);if(m()===11&&Pe(R)===21)return jt(()=>{let c=Lr();return c.text==="constructor"?c:void 0})}function pd(c,f,v){return jt(()=>{if(Ty()){let C=tr(),P=_i(0),U=xr(59,!1),ne=So(0,K.or_expected),_e=h.createConstructorDeclaration(v,P,ne);return _e.typeParameters=C,_e.type=U,Ie(F(_e,c),f)}})}function dd(c,f,v,C,P,U,ne,_e){let pe=C?1:0,ce=ft(v,Qc)?2:0,ve=tr(),Ge=_i(pe|ce),je=xr(59,!1),Be=So(pe|ce,_e),Lt=h.createMethodDeclaration(v,C,P,U,ve,Ge,je,Be);return Lt.exclamationToken=ne,Ie(F(Lt,c),f)}function Lc(c,f,v,C,P){let U=!P&&!t.hasPrecedingLineBreak()?at(54):void 0,ne=Ii(),_e=Oe(45056,Mi);lo(C,ne,_e);let pe=h.createPropertyDeclaration(v,C,P||U,ne,_e);return Ie(F(pe,c),f)}function fd(c,f,v){let C=at(42),P=oa(),U=at(58);return C||m()===21||m()===30?dd(c,f,v,C,P,U,void 0,K.or_expected):Lc(c,f,v,P,U)}function Li(c,f,v,C,P){let U=oa(),ne=tr(),_e=_i(0),pe=xr(59,!1),ce=So(P),ve=C===176?h.createGetAccessorDeclaration(v,U,_e,pe,ce):h.createSetAccessorDeclaration(v,U,_e,ce);return ve.typeParameters=ne,N_(ve)&&(ve.type=pe),Ie(F(ve,c),f)}function xy(){let c;if(m()===60)return!0;for(;yi(m());){if(c=m(),wx(c))return!0;R()}if(m()===42||(aa()&&(c=m(),R()),m()===23))return!0;if(c!==void 0){if(!bi(c)||c===153||c===139)return!0;switch(m()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return Ai()}}return!1}function Sy(c,f,v){oi(126);let C=md(),P=Ie(F(h.createClassStaticBlockDeclaration(C),c),f);return P.modifiers=v,P}function md(){let c=ii(),f=Nn();Z(!1),Te(!0);let v=sa(!1);return Z(c),Te(f),v}function wy(){if(Nn()&&m()===135){let c=S(),f=Ut(K.Expression_expected);R();let v=Is(c,f,!0);return Ac(c,v)}return Fa()}function yd(){let c=S();if(!Je(60))return;let f=gr(wy);return F(h.createDecorator(f),c)}function Jc(c,f,v){let C=S(),P=m();if(m()===87&&f){if(!jt(H_))return}else{if(v&&m()===126&&Pe(js))return;if(c&&m()===126)return;if(!hu())return}return F(oe(P),C)}function Rr(c,f,v){let C=S(),P,U,ne,_e=!1,pe=!1,ce=!1;if(c&&m()===60)for(;U=yd();)P=Tt(P,U);for(;ne=Jc(_e,f,v);)ne.kind===126&&(_e=!0),P=Tt(P,ne),pe=!0;if(pe&&c&&m()===60)for(;U=yd();)P=Tt(P,U),ce=!0;if(ce)for(;ne=Jc(_e,f,v);)ne.kind===126&&(_e=!0),P=Tt(P,ne);return P&&Bt(P,C)}function Rc(){let c;if(m()===134){let f=S();R();let v=F(oe(134),f);c=Bt([v],f)}return c}function Ey(){let c=S(),f=J();if(m()===27)return R(),Ie(F(h.createSemicolonClassElement(),c),f);let v=Rr(!0,!0,!0);if(m()===126&&Pe(js))return Sy(c,f,v);if(Ia(139))return Li(c,f,v,176,0);if(Ia(153))return Li(c,f,v,177,0);if(m()===137||m()===11){let C=pd(c,f,v);if(C)return C}if(Uu())return qu(c,f,v);if(At(m())||m()===11||m()===9||m()===42||m()===23)if(ft(v,od)){for(let P of v)P.flags|=16777216;return We(16777216,()=>fd(c,f,v))}else return fd(c,f,v);if(v){let C=Hn(80,!0,K.Declaration_expected);return Lc(c,f,v,C,void 0)}return M.fail("Should not have attempted to parse class member declaration.")}function Cy(){let c=S(),f=J(),v=Rr(!0);if(m()===86)return Fc(c,f,v,230);let C=Hn(281,!0,K.Expression_expected);return qf(C,c),C.modifiers=v,C}function hd(){return Fc(S(),J(),void 0,230)}function gd(c,f,v){return Fc(c,f,v,262)}function Fc(c,f,v,C){let P=Nn();Y(86);let U=bd(),ne=tr();ft(v,a8)&&Te(!0);let _e=vd(),pe;Y(19)?(pe=Dy(),Y(20)):pe=Tr(),Te(P);let ce=C===262?h.createClassDeclaration(v,U,ne,_e,pe):h.createClassExpression(v,U,ne,_e,pe);return Ie(F(ce,c),f)}function bd(){return Yn()&&!ky()?ia(Yn()):void 0}function ky(){return m()===119&&Pe(K_)}function vd(){if(Fs())return er(22,Td)}function Td(){let c=S(),f=m();M.assert(f===96||f===119),R();let v=Tn(7,Ay);return F(h.createHeritageClause(f,v),c)}function Ay(){let c=S(),f=Fa();if(f.kind===232)return f;let v=Rs();return F(h.createExpressionWithTypeArguments(f,v),c)}function Rs(){return m()===30?Ni(20,yt,30,32):void 0}function Fs(){return m()===96||m()===119}function Dy(){return er(5,Ey)}function Py(c,f,v){Y(120);let C=Ut(),P=tr(),U=vd(),ne=pc(),_e=h.createInterfaceDeclaration(v,C,P,U,ne);return Ie(F(_e,c),f)}function Ny(c,f,v){Y(156);let C=Ut(),P=tr();Y(64);let U=m()===141&&jt(fc)||yt();In();let ne=h.createTypeAliasDeclaration(v,C,P,U);return Ie(F(ne,c),f)}function Iy(){let c=S(),f=J(),v=oa(),C=Re(Mi);return Ie(F(h.createEnumMember(v,C),c),f)}function Oy(c,f,v){Y(94);let C=Ut(),P;Y(19)?(P=Pa(()=>Tn(6,Iy)),Y(20)):P=Tr();let U=h.createEnumDeclaration(v,C,P);return Ie(F(U,c),f)}function xd(){let c=S(),f;return Y(19)?(f=er(1,fn),Y(20)):f=Tr(),F(h.createModuleBlock(f),c)}function Sd(c,f,v,C){let P=C&16,U=Ut(),ne=Je(25)?Sd(S(),!1,void 0,4|P):xd(),_e=h.createModuleDeclaration(v,U,ne,C);return Ie(F(_e,c),f)}function wd(c,f,v){let C=0,P;m()===161?(P=Ut(),C|=1024):(P=Lr(),P.text=Di(P.text));let U;m()===19?U=xd():In();let ne=h.createModuleDeclaration(v,P,U,C);return Ie(F(ne,c),f)}function Ed(c,f,v){let C=0;if(m()===161)return wd(c,f,v);if(Je(145))C|=16;else if(Y(144),m()===11)return wd(c,f,v);return Sd(c,f,v,C)}function Cd(){return m()===149&&Pe(kd)}function kd(){return R()===21}function js(){return R()===19}function My(){return R()===44}function Ad(c,f,v){Y(130),Y(145);let C=Ut();In();let P=h.createNamespaceExportDeclaration(C);return P.modifiers=v,Ie(F(P,c),f)}function Ly(c,f,v){Y(102);let C=t.getTokenFullStart(),P;Pt()&&(P=Ut());let U=!1;if(m()!==160&&(P==null?void 0:P.escapedText)==="type"&&(Pt()||Ry())&&(U=!0,P=Pt()?Ut():void 0),P&&!Fy())return Bc(c,f,v,P,U);let ne;(P||m()===42||m()===19)&&(ne=jy(P,C,U),Y(160));let _e=Us(),pe;m()===132&&!t.hasPrecedingLineBreak()&&(pe=jc()),In();let ce=h.createImportDeclaration(v,ne,_e,pe);return Ie(F(ce,c),f)}function Jy(){let c=S(),f=At(m())?zt():fo(11);Y(59);let v=un(!0);return F(h.createAssertEntry(f,v),c)}function jc(c){let f=S();c||Y(132);let v=t.getTokenStart();if(Y(19)){let C=t.hasPrecedingLineBreak(),P=Tn(24,Jy,!0);if(!Y(20)){let U=Ti(lt);U&&U.code===K._0_expected.code&&Xc(U,No(dn,v,1,K.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return F(h.createAssertClause(P,C),f)}else{let C=Bt([],S(),void 0,!1);return F(h.createAssertClause(C,!1),f)}}function Ry(){return m()===42||m()===19}function Fy(){return m()===28||m()===160}function Bc(c,f,v,C,P){Y(64);let U=By();In();let ne=h.createImportEqualsDeclaration(v,P,C,U);return Ie(F(ne,c),f)}function jy(c,f,v){let C;return(!c||Je(28))&&(C=m()===42?Uy():Dd(274)),F(h.createImportClause(v,c,C),f)}function By(){return Cd()?Bs():Ma(!1)}function Bs(){let c=S();Y(149),Y(21);let f=Us();return Y(22),F(h.createExternalModuleReference(f),c)}function Us(){if(m()===11){let c=Lr();return c.text=Di(c.text),c}else return Mt()}function Uy(){let c=S();Y(42),Y(130);let f=Ut();return F(h.createNamespaceImport(f),c)}function Dd(c){let f=S(),v=c===274?h.createNamedImports(Ni(23,qy,19,20)):h.createNamedExports(Ni(23,_a,19,20));return F(v,f)}function _a(){let c=J();return Ie(Pd(280),c)}function qy(){return Pd(275)}function Pd(c){let f=S(),v=bi(m())&&!Pt(),C=t.getTokenStart(),P=t.getTokenEnd(),U=!1,ne,_e=!0,pe=zt();if(pe.escapedText==="type")if(m()===130){let Ge=zt();if(m()===130){let je=zt();At(m())?(U=!0,ne=Ge,pe=ve(),_e=!1):(ne=pe,pe=je,_e=!1)}else At(m())?(ne=pe,_e=!1,pe=ve()):(U=!0,pe=Ge)}else At(m())&&(U=!0,pe=ve());_e&&m()===130&&(ne=pe,Y(130),pe=ve()),c===275&&v&&wt(C,P,K.Identifier_expected);let ce=c===275?h.createImportSpecifier(U,ne,pe):h.createExportSpecifier(U,ne,pe);return F(ce,f);function ve(){return v=bi(m())&&!Pt(),C=t.getTokenStart(),P=t.getTokenEnd(),zt()}}function zy(c){return F(h.createNamespaceExport(zt()),c)}function wo(c,f,v){let C=Nn();Te(!0);let P,U,ne,_e=Je(156),pe=S();Je(42)?(Je(130)&&(P=zy(pe)),Y(160),U=Us()):(P=Dd(278),(m()===160||m()===11&&!t.hasPrecedingLineBreak())&&(Y(160),U=Us())),U&&m()===132&&!t.hasPrecedingLineBreak()&&(ne=jc()),In(),Te(C);let ce=h.createExportDeclaration(v,_e,P,U,ne);return Ie(F(ce,c),f)}function Wy(c,f,v){let C=Nn();Te(!0);let P;Je(64)?P=!0:Y(90);let U=un(!0);In(),Te(C);let ne=h.createExportAssignment(v,P,U);return Ie(F(ne,c),f)}let Nd;(c=>{c[c.SourceElements=0]="SourceElements",c[c.BlockStatements=1]="BlockStatements",c[c.SwitchClauses=2]="SwitchClauses",c[c.SwitchClauseStatements=3]="SwitchClauseStatements",c[c.TypeMembers=4]="TypeMembers",c[c.ClassMembers=5]="ClassMembers",c[c.EnumMembers=6]="EnumMembers",c[c.HeritageClauseElement=7]="HeritageClauseElement",c[c.VariableDeclarations=8]="VariableDeclarations",c[c.ObjectBindingElements=9]="ObjectBindingElements",c[c.ArrayBindingElements=10]="ArrayBindingElements",c[c.ArgumentExpressions=11]="ArgumentExpressions",c[c.ObjectLiteralMembers=12]="ObjectLiteralMembers",c[c.JsxAttributes=13]="JsxAttributes",c[c.JsxChildren=14]="JsxChildren",c[c.ArrayLiteralMembers=15]="ArrayLiteralMembers",c[c.Parameters=16]="Parameters",c[c.JSDocParameters=17]="JSDocParameters",c[c.RestProperties=18]="RestProperties",c[c.TypeParameters=19]="TypeParameters",c[c.TypeArguments=20]="TypeArguments",c[c.TupleElementTypes=21]="TupleElementTypes",c[c.HeritageClauses=22]="HeritageClauses",c[c.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",c[c.AssertEntries=24]="AssertEntries",c[c.JSDocComment=25]="JSDocComment",c[c.Count=26]="Count"})(Nd||(Nd={}));let Id;(c=>{c[c.False=0]="False",c[c.True=1]="True",c[c.Unknown=2]="Unknown"})(Id||(Id={}));let Od;(c=>{function f(ce,ve,Ge){Wn("file.js",ce,99,void 0,1),t.setText(ce,ve,Ge),mt=t.scan();let je=v(),Be=et("file.js",99,1,!1,[],oe(1),0,Pr),Lt=za(lt,Be);return Zt&&(Be.jsDocDiagnostics=za(Zt,Be)),hr(),je?{jsDocTypeExpression:je,diagnostics:Lt}:void 0}c.parseJSDocTypeExpressionForTests=f;function v(ce){let ve=S(),Ge=(ce?Je:Y)(19),je=We(8388608,ks);(!ce||Ge)&&Na(20);let Be=h.createJSDocTypeExpression(je);return Ee(Be),F(Be,ve)}c.parseJSDocTypeExpression=v;function C(){let ce=S(),ve=Je(19),Ge=S(),je=Ma(!1);for(;m()===81;)Ye(),me(),je=F(h.createJSDocMemberName(je,Ut()),Ge);ve&&Na(20);let Be=h.createJSDocNameReference(je);return Ee(Be),F(Be,ce)}c.parseJSDocNameReference=C;function P(ce,ve,Ge){Wn("",ce,99,void 0,1);let je=We(8388608,()=>pe(ve,Ge)),Lt=za(lt,{languageVariant:0,text:ce});return hr(),je?{jsDoc:je,diagnostics:Lt}:void 0}c.parseIsolatedJSDocComment=P;function U(ce,ve,Ge){let je=mt,Be=lt.length,Lt=ln,On=We(8388608,()=>pe(ve,Ge));return Vi(On,ce),ut&262144&&(Zt||(Zt=[]),Zt.push(...lt)),mt=je,lt.length=Be,ln=Lt,On}c.parseJSDocComment=U;let ne;(ce=>{ce[ce.BeginningOfLine=0]="BeginningOfLine",ce[ce.SawAsterisk=1]="SawAsterisk",ce[ce.SavingComments=2]="SavingComments",ce[ce.SavingBackticks=3]="SavingBackticks"})(ne||(ne={}));let _e;(ce=>{ce[ce.Property=1]="Property",ce[ce.Parameter=2]="Parameter",ce[ce.CallbackParameter=4]="CallbackParameter"})(_e||(_e={}));function pe(ce=0,ve){let Ge=dt;dt|=1<<25;let je=vt,Be=ve===void 0?je.length:ce+ve;if(ve=Be-ce,M.assert(ce>=0),M.assert(ce<=Be),M.assert(Be<=je.length),!o7(je,ce))return;let Lt,On,ca,li,Ji,Ri=[],la=[],Uc=t.scanRange(ce+3,ve-5,Md);return dt=Ge,Uc;function Md(){let V=1,re,te=ce-(je.lastIndexOf(` -`,ce)+1)+4;function le(qe){re||(re=te),Ri.push(qe),te+=qe.length}for(me();ko(5););ko(4)&&(V=0,te=0);e:for(;;){switch(m()){case 60:Vy(Ri),Ji||(Ji=S()),Hy(Jd(te)),V=0,re=void 0;break;case 4:Ri.push(t.getTokenText()),V=0,te=0;break;case 42:let qe=t.getTokenText();V===1?(V=2,le(qe)):(M.assert(V===0),V=1,te+=qe.length);break;case 5:M.assert(V!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let kt=t.getTokenText();re!==void 0&&te+kt.length>re&&Ri.push(kt.slice(re-te)),te+=kt.length;break;case 1:break e;case 82:V=2,le(t.getTokenValue());break;case 19:V=2;let wr=t.getTokenFullStart(),nr=t.getTokenEnd()-1,Sn=ui(nr);if(Sn){li||qc(Ri),la.push(F(h.createJSDocText(Ri.join("")),li??ce,wr)),la.push(Sn),Ri=[],li=t.getTokenEnd();break}default:V=2,le(t.getTokenText());break}V===2?Ae(!1):me()}let fe=e_(Ri.join(""));la.length&&fe.length&&la.push(F(h.createJSDocText(fe),li??ce,Ji)),la.length&&Lt&&M.assertIsDefined(Ji,"having parsed tags implies that the end of the comment span should be set");let Me=Lt&&Bt(Lt,On,ca);return F(h.createJSDocComment(la.length?Bt(la,ce,Ji):fe.length?fe:void 0,Me),ce,Be)}function qc(V){for(;V.length&&(V[0]===` -`||V[0]==="\r");)V.shift()}function Vy(V){for(;V.length;){let re=e_(V[V.length-1]);if(re==="")V.pop();else if(re.lengthkt&&(le.push(Fr.slice(kt-V)),qe=2),V+=Fr.length;break;case 19:qe=2;let Fd=t.getTokenFullStart(),zs=t.getTokenEnd()-1,jd=ui(zs);jd?(fe.push(F(h.createJSDocText(le.join("")),Me??te,Fd)),fe.push(jd),le=[],Me=t.getTokenEnd()):wr(t.getTokenText());break;case 62:qe===3?qe=2:qe=3,wr(t.getTokenText());break;case 82:qe!==3&&(qe=2),wr(t.getTokenValue());break;case 42:if(qe===0){qe=1,V+=1;break}default:qe!==3&&(qe=2),wr(t.getTokenText());break}qe===2||qe===3?nr=Ae(qe===3):nr=me()}qc(le);let Sn=e_(le.join(""));if(fe.length)return Sn.length&&fe.push(F(h.createJSDocText(Sn),Me??te)),Bt(fe,te,t.getTokenEnd());if(Sn.length)return Sn}function ui(V){let re=jt(Eo);if(!re)return;me(),pn();let te=S(),le=At(m())?Ma(!0):void 0;if(le)for(;m()===81;)Ye(),me(),le=F(h.createJSDocMemberName(le,Ut()),te);let fe=[];for(;m()!==20&&m()!==4&&m()!==1;)fe.push(t.getTokenText()),me();let Me=re==="link"?h.createJSDocLink:re==="linkcode"?h.createJSDocLinkCode:h.createJSDocLinkPlain;return F(Me(le,fe.join("")),V,t.getTokenEnd())}function Eo(){if(Fi(),m()===19&&me()===60&&At(me())){let V=t.getTokenValue();if(Rd(V))return V}}function Rd(V){return V==="link"||V==="linkcode"||V==="linkplain"}function pi(V,re,te,le){return F(h.createJSDocUnknownTag(re,Se(V,S(),te,le)),V)}function Hy(V){V&&(Lt?Lt.push(V):(Lt=[V],On=V.pos),ca=V.end)}function r(){return Fi(),m()===19?v():void 0}function o(){let V=ko(23);V&&pn();let re=ko(62),te=TC();return re&&du(62),V&&(pn(),at(64)&&Mt(),Y(24)),{name:te,isBracketed:V}}function _(V){switch(V.kind){case 151:return!0;case 187:return _(V.elementType);default:return I_(V)&&Ce(V.typeName)&&V.typeName.escapedText==="Object"&&!V.typeArguments}}function u(V,re,te,le){let fe=r(),Me=!fe;Fi();let{name:qe,isBracketed:kt}=o(),wr=Fi();Me&&!Pe(Eo)&&(fe=r());let nr=Se(V,S(),le,wr),Sn=te!==4&&b(fe,qe,te,le);Sn&&(fe=Sn,Me=!0);let Fr=te===1?h.createJSDocPropertyTag(re,qe,kt,fe,Me,nr):h.createJSDocParameterTag(re,qe,kt,fe,Me,nr);return F(Fr,V)}function b(V,re,te,le){if(V&&_(V.type)){let fe=S(),Me,qe;for(;Me=jt(()=>Gy(te,le,re));)Me.kind===347||Me.kind===354?qe=Tt(qe,Me):Me.kind===351&&j(Me.tagName,K.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(qe){let kt=F(h.createJSDocTypeLiteral(qe,V.type.kind===187),fe);return F(h.createJSDocTypeExpression(kt),fe)}}}function I(V,re,te,le){ft(Lt,Bb)&&wt(re.pos,t.getTokenStart(),K._0_tag_already_specified,Xo(re.escapedText));let fe=r();return F(h.createJSDocReturnTag(re,fe,Se(V,S(),te,le)),V)}function X(V,re,te,le){ft(Lt,ru)&&wt(re.pos,t.getTokenStart(),K._0_tag_already_specified,Xo(re.escapedText));let fe=v(!0),Me=te!==void 0&&le!==void 0?Se(V,S(),te,le):void 0;return F(h.createJSDocTypeTag(re,fe,Me),V)}function ge(V,re,te,le){let Me=m()===23||Pe(()=>me()===60&&At(me())&&Rd(t.getTokenValue()))?void 0:C(),qe=te!==void 0&&le!==void 0?Se(V,S(),te,le):void 0;return F(h.createJSDocSeeTag(re,Me,qe),V)}function Ve(V,re,te,le){let fe=r(),Me=Se(V,S(),te,le);return F(h.createJSDocThrowsTag(re,fe,Me),V)}function xn(V,re,te,le){let fe=S(),Me=di(),qe=t.getTokenFullStart(),kt=Se(V,qe,te,le);kt||(qe=t.getTokenFullStart());let wr=typeof kt!="string"?Bt(d_([F(Me,fe,qe)],kt),fe):Me.text+kt;return F(h.createJSDocAuthorTag(re,wr),V)}function di(){let V=[],re=!1,te=t.getToken();for(;te!==1&&te!==4;){if(te===30)re=!0;else{if(te===60&&!re)break;if(te===32&&re){V.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}V.push(t.getTokenText()),te=me()}return h.createJSDocText(V.join(""))}function fi(V,re,te,le){let fe=K6();return F(h.createJSDocImplementsTag(re,fe,Se(V,S(),te,le)),V)}function qs(V,re,te,le){let fe=K6();return F(h.createJSDocAugmentsTag(re,fe,Se(V,S(),te,le)),V)}function _C(V,re,te,le){let fe=v(!1),Me=te!==void 0&&le!==void 0?Se(V,S(),te,le):void 0;return F(h.createJSDocSatisfiesTag(re,fe,Me),V)}function K6(){let V=Je(19),re=S(),te=cC();t.setInJSDocType(!0);let le=Rs();t.setInJSDocType(!1);let fe=h.createExpressionWithTypeArguments(te,le),Me=F(fe,re);return V&&Y(20),Me}function cC(){let V=S(),re=Ua();for(;Je(25);){let te=Ua();re=F(se(re,te),V)}return re}function Co(V,re,te,le,fe){return F(re(te,Se(V,S(),le,fe)),V)}function lC(V,re,te,le){let fe=v(!0);return pn(),F(h.createJSDocThisTag(re,fe,Se(V,S(),te,le)),V)}function uC(V,re,te,le){let fe=v(!0);return pn(),F(h.createJSDocEnumTag(re,fe,Se(V,S(),te,le)),V)}function pC(V,re,te,le){let fe=r();Fi();let Me=Ky();pn();let qe=nt(te),kt;if(!fe||_(fe.type)){let nr,Sn,Fr,Fd=!1;for(;(nr=jt(()=>hC(te)))&&nr.kind!==351;)if(Fd=!0,nr.kind===350)if(Sn){let zs=Fe(K.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);zs&&Xc(zs,No(dn,0,0,K.The_tag_was_first_specified_here));break}else Sn=nr;else Fr=Tt(Fr,nr);if(Fd){let zs=fe&&fe.type.kind===187,jd=h.createJSDocTypeLiteral(Fr,zs);fe=Sn&&Sn.typeExpression&&!_(Sn.typeExpression.type)?Sn.typeExpression:F(jd,V),kt=fe.end}}kt=kt||qe!==void 0?S():(Me??fe??re).end,qe||(qe=Se(V,kt,te,le));let wr=h.createJSDocTypedefTag(re,fe,Me,qe);return F(wr,V,kt)}function Ky(V){let re=t.getTokenStart();if(!At(m()))return;let te=Ua();if(Je(25)){let le=Ky(!0),fe=h.createModuleDeclaration(void 0,te,le,V?4:void 0);return F(fe,re)}return V&&(te.flags|=2048),te}function dC(V){let re=S(),te,le;for(;te=jt(()=>Gy(4,V));){if(te.kind===351){j(te.tagName,K.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}le=Tt(le,te)}return Bt(le||[],re)}function G6(V,re){let te=dC(re),le=jt(()=>{if(ko(60)){let fe=Jd(re);if(fe&&fe.kind===348)return fe}});return F(h.createJSDocSignature(void 0,te,le),V)}function fC(V,re,te,le){let fe=Ky();pn();let Me=nt(te),qe=G6(V,te);Me||(Me=Se(V,S(),te,le));let kt=Me!==void 0?S():qe.end;return F(h.createJSDocCallbackTag(re,qe,fe,Me),V,kt)}function mC(V,re,te,le){pn();let fe=nt(te),Me=G6(V,te);fe||(fe=Se(V,S(),te,le));let qe=fe!==void 0?S():Me.end;return F(h.createJSDocOverloadTag(re,Me,fe),V,qe)}function yC(V,re){for(;!Ce(V)||!Ce(re);)if(!Ce(V)&&!Ce(re)&&V.right.escapedText===re.right.escapedText)V=V.left,re=re.left;else return!1;return V.escapedText===re.escapedText}function hC(V){return Gy(1,V)}function Gy(V,re,te){let le=!0,fe=!1;for(;;)switch(me()){case 60:if(le){let Me=gC(V,re);return Me&&(Me.kind===347||Me.kind===354)&&V!==4&&te&&(Ce(Me.name)||!yC(te,Me.name.left))?!1:Me}fe=!1;break;case 4:le=!0,fe=!1;break;case 42:fe&&(le=!1),fe=!0;break;case 80:le=!1;break;case 1:return!1}}function gC(V,re){M.assert(m()===60);let te=t.getTokenFullStart();me();let le=Ua(),fe=Fi(),Me;switch(le.escapedText){case"type":return V===1&&X(te,le);case"prop":case"property":Me=1;break;case"arg":case"argument":case"param":Me=6;break;case"template":return X6(te,le,re,fe);default:return!1}return V&Me?u(te,le,V,re):!1}function bC(){let V=S(),re=ko(23);re&&pn();let te=Ua(K.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),le;if(re&&(pn(),Y(64),le=We(8388608,ks),Y(24)),!Bi(te))return F(h.createTypeParameterDeclaration(void 0,te,void 0,le),V)}function vC(){let V=S(),re=[];do{pn();let te=bC();te!==void 0&&re.push(te),Fi()}while(ko(28));return Bt(re,V)}function X6(V,re,te,le){let fe=m()===19?v():void 0,Me=vC();return F(h.createJSDocTemplateTag(re,fe,Me,Se(V,S(),te,le)),V)}function ko(V){return m()===V?(me(),!0):!1}function TC(){let V=Ua();for(Je(23)&&Y(24);Je(25);){let re=Ua();Je(23)&&Y(24),V=nc(V,re)}return V}function Ua(V){if(!At(m()))return Hn(80,!V,V||K.Identifier_expected);cn++;let re=t.getTokenStart(),te=t.getTokenEnd(),le=m(),fe=Di(t.getTokenValue()),Me=F(B(fe,le),re,te);return me(),Me}}})(Od=e.JSDocParser||(e.JSDocParser={}))})(zr||(zr={})),(e=>{function t(g,A,B,G){if(G=G||M.shouldAssert(2),h(g,A,B,G),qT(B))return g;if(g.statements.length===0)return zr.parseSourceFile(g.fileName,A,g.languageVersion,void 0,!0,g.scriptKind,g.setExternalModuleIndicator);let oe=g;M.assert(!oe.hasBeenIncrementallyParsed),oe.hasBeenIncrementallyParsed=!0,zr.fixupParentReferences(oe);let Q=g.text,W=D(g),se=p(g,B);h(g,A,se,G),M.assert(se.span.start<=B.span.start),M.assert(tn(se.span)===tn(B.span)),M.assert(tn(Ks(se))===tn(Ks(B)));let we=Ks(se).length-se.span.length;y(oe,se.span.start,tn(se.span),tn(Ks(se)),we,Q,A,G);let Ze=zr.parseSourceFile(g.fileName,A,g.languageVersion,W,!0,g.scriptKind,g.setExternalModuleIndicator);return Ze.commentDirectives=n(g.commentDirectives,Ze.commentDirectives,se.span.start,tn(se.span),we,Q,A,G),Ze.impliedNodeFormat=g.impliedNodeFormat,Ze}e.updateSourceFile=t;function n(g,A,B,G,oe,Q,W,se){if(!g)return A;let we,Ze=!1;for(let rt of g){let{range:ct,type:Dn}=rt;if(ct.endG){Ue();let sn={range:{pos:ct.pos+oe,end:ct.end+oe},type:Dn};we=Tt(we,sn),se&&M.assert(Q.substring(ct.pos,ct.end)===W.substring(sn.range.pos,sn.range.end))}}return Ue(),we;function Ue(){Ze||(Ze=!0,we?A&&we.push(...A):we=A)}}function i(g,A,B,G,oe,Q){A?se(g):W(g);return;function W(we){let Ze="";if(Q&&s(we)&&(Ze=G.substring(we.pos,we.end)),we._children&&(we._children=void 0),Va(we,we.pos+B,we.end+B),Q&&s(we)&&M.assert(Ze===oe.substring(we.pos,we.end)),qt(we,W,se),Ui(we))for(let Ue of we.jsDoc)W(Ue);d(we,Q)}function se(we){we._children=void 0,Va(we,we.pos+B,we.end+B);for(let Ze of we)W(Ze)}}function s(g){switch(g.kind){case 11:case 9:case 80:return!0}return!1}function l(g,A,B,G,oe){M.assert(g.end>=A,"Adjusting an element that was entirely before the change range"),M.assert(g.pos<=B,"Adjusting an element that was entirely after the change range"),M.assert(g.pos<=g.end);let Q=Math.min(g.pos,G),W=g.end>=B?g.end+oe:Math.min(g.end,G);M.assert(Q<=W),g.parent&&(M.assertGreaterThanOrEqual(Q,g.parent.pos),M.assertLessThanOrEqual(W,g.parent.end)),Va(g,Q,W)}function d(g,A){if(A){let B=g.pos,G=oe=>{M.assert(oe.pos>=B),B=oe.end};if(Ui(g))for(let oe of g.jsDoc)G(oe);qt(g,G),M.assert(B<=g.end)}}function y(g,A,B,G,oe,Q,W,se){we(g);return;function we(Ue){if(M.assert(Ue.pos<=Ue.end),Ue.pos>B){i(Ue,!1,oe,Q,W,se);return}let rt=Ue.end;if(rt>=A){if(Ue.intersectsChange=!0,Ue._children=void 0,l(Ue,A,B,G,oe),qt(Ue,we,Ze),Ui(Ue))for(let ct of Ue.jsDoc)we(ct);d(Ue,se);return}M.assert(rtB){i(Ue,!0,oe,Q,W,se);return}let rt=Ue.end;if(rt>=A){Ue.intersectsChange=!0,Ue._children=void 0,l(Ue,A,B,G,oe);for(let ct of Ue)we(ct);return}M.assert(rt0&&W<=1;W++){let se=x(g,G);M.assert(se.pos<=G);let we=se.pos;G=Math.max(0,we-1)}let oe=zi(G,tn(A.span)),Q=A.newLength+(A.span.start-G);return pm(oe,Q)}function x(g,A){let B=g,G;if(qt(g,Q),G){let W=oe(G);W.pos>B.pos&&(B=W)}return B;function oe(W){for(;;){let se=H3(W);if(se)W=se;else return W}}function Q(W){if(!Bi(W))if(W.pos<=A){if(W.pos>=B.pos&&(B=W),AA),!0}}function h(g,A,B,G){let oe=g.text;if(B&&(M.assert(oe.length-B.span.length+B.newLength===A.length),G||M.shouldAssert(3))){let Q=oe.substr(0,B.span.start),W=A.substr(0,B.span.start);M.assert(Q===W);let se=oe.substring(tn(B.span),oe.length),we=A.substring(tn(Ks(B)),A.length);M.assert(se===we)}}function D(g){let A=g.statements,B=0;M.assert(B=Ze.pos&&W=Ze.pos&&W{g[g.Value=-1]="Value"})(w||(w={}))})(cf||(cf={})),lf=new Map,f7=/^\/\/\/\s*<(\S+)\s.*?\/>/im,m7=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im}}),LF=()=>{},KK=Ht({"src/compiler/pnp.ts"(){"use strict";bT()}}),JF=()=>{},RF=()=>{},FF=()=>{},jF=()=>{},BF=()=>{},UF=()=>{},qF=()=>{},zF=()=>{},WF=()=>{},VF=()=>{},HF=()=>{},KF=()=>{},GF=()=>{},XF=()=>{},$F=()=>{},QF=()=>{},YF=()=>{},ZF=()=>{},ej=()=>{},tj=()=>{},nj=()=>{},rj=()=>{},ij=()=>{},aj=()=>{},oj=()=>{},sj=()=>{},_j=()=>{},cj=()=>{},lj=()=>{},uj=()=>{},pj=()=>{},dj=()=>{},fj=()=>{},mj=()=>{},yj=()=>{},hj=()=>{},gj=()=>{},bj=()=>{},vj=()=>{},Tj=()=>{},xj=()=>{},Sj=()=>{},wj=()=>{},Ej=()=>{},Cj=()=>{},En=Ht({"src/compiler/_namespaces/ts.ts"(){"use strict";IC(),p5(),cT(),d5(),f5(),y5(),b5(),pT(),T5(),bT(),R5(),H5(),MA(),dL(),fL(),mL(),yL(),DL(),PL(),NL(),oR(),bF(),vF(),MF(),LF(),JF(),RF(),FF(),BF(),UF(),qF(),zF(),WF(),VF(),HF(),KF(),GF(),XF(),$F(),QF(),YF(),ZF(),ej(),tj(),nj(),rj(),ij(),aj(),oj(),sj(),_j(),cj(),lj(),uj(),pj(),dj(),fj(),mj(),yj(),hj(),gj(),bj(),vj(),Tj(),xj(),Sj(),wj(),Ej(),Cj(),jF(),uT()}}),y7=()=>{},kj=()=>{},h7=()=>{},zo,h7=()=>{cT(),zo=as(99,!0)},Aj=()=>{},g7=()=>{},Dj=()=>{},Pj=()=>{},Nj=()=>{},Ij=()=>{},Oj=()=>{},Mj=()=>{},Lj=()=>{},Jj=()=>{},b7=()=>{},v7=()=>{},T7=()=>{},Rj=()=>{};function x7(e,t,n,i){let s=Ol(e)?new $f(e,t,n):e===80?new Qf(80,t,n):e===81?new Yf(81,t,n):new Kb(e,t,n);return s.parent=i,s.flags=i.flags&50720768,s}function Fj(e,t){if(!Ol(e.kind))return Xe;let n=[];if(qx(e))return e.forEachChild(d=>{n.push(d)}),n;zo.setText((t||e.getSourceFile()).text);let i=e.pos,s=d=>{_l(n,i,d.pos,e),n.push(d),i=d.end},l=d=>{_l(n,i,d.pos,e),n.push(jj(d,e)),i=d.end};return hn(e.jsDoc,s),i=e.pos,e.forEachChild(s,l),_l(n,i,e.end,e),zo.setText(void 0),n}function _l(e,t,n,i){for(zo.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function Hd(e,t){if(!e)return Xe;let n=ts_JsDoc_exports.getJsDocTagsFromDeclarations(e,t);if(t&&(n.length===0||e.some(S7))){let i=new Set;for(let s of e){let l=w7(t,s,d=>{var y;if(!i.has(d))return i.add(d),s.kind===176||s.kind===177?d.getContextualJsDocTags(s,t):((y=d.declarations)==null?void 0:y.length)===1?d.getJsDocTags():void 0});l&&(n=[...l,...n])}}return n}function Wc(e,t){if(!e)return Xe;let n=ts_JsDoc_exports.getJsDocCommentsFromDeclarations(e,t);if(t&&(n.length===0||e.some(S7))){let i=new Set;for(let s of e){let l=w7(t,s,d=>{if(!i.has(d))return i.add(d),s.kind===176||s.kind===177?d.getContextualDocumentationComment(s,t):d.getDocumentationComment(t)});l&&(n=n.length===0?l.slice():l.concat(lineBreakPart(),n))}}return n}function w7(e,t,n){var i;let s=((i=t.parent)==null?void 0:i.kind)===175?t.parent.parent:t.parent;if(!s)return;let l=Rm(t);return og(G4(s),d=>{let y=e.getTypeAtLocation(d),p=l&&y.symbol?e.getTypeOfSymbol(y.symbol):y,x=e.getPropertyOfType(p,t.symbol.name);return x?n(x):void 0})}function Bj(){return{getNodeConstructor:()=>$f,getTokenConstructor:()=>Kb,getIdentifierConstructor:()=>Qf,getPrivateIdentifierConstructor:()=>Yf,getSourceFileConstructor:()=>L7,getSymbolConstructor:()=>I7,getTypeConstructor:()=>O7,getSignatureConstructor:()=>M7,getSourceMapSourceConstructor:()=>J7}}function Zc(e){let t=!0;for(let i in e)if(Xn(e,i)&&!Iv(i)){t=!1;break}if(t)return e;let n={};for(let i in e)if(Xn(e,i)){let s=Iv(i)?i:i.charAt(0).toLowerCase()+i.substr(1);n[s]=e[i]}return n}function Iv(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function Uj(e){return e?ga(e,t=>t.text).join(""):""}function E7(){return{target:1,jsx:1}}function C7(){return ts_codefix_exports.getSupportedErrorCodes()}function k7(e,t,n){e.version=n,e.scriptSnapshot=t}function Hb(e,t,n,i,s,l){let d=c7(e,getSnapshotText(t),n,s,l);return k7(d,t,i),d}function A7(e,t,n,i,s){if(i&&n!==e.version){let d,y=i.span.start!==0?e.text.substr(0,i.span.start):"",p=tn(i.span)!==e.text.length?e.text.substr(tn(i.span)):"";if(i.newLength===0)d=y&&p?y+p:y||p;else{let h=t.getText(i.span.start,i.span.start+i.newLength);d=y&&p?y+h+p:y?y+h:h+p}let x=Vb(e,d,i,s);return k7(x,t,n),x.nameTable=void 0,e!==x&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),x}let l={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator};return Hb(e.fileName,t,l,n,!0,e.scriptKind)}function qj(e,t=createDocumentRegistry(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()),n){var i;let s;n===void 0?s=0:typeof n=="boolean"?s=n?2:0:s=n;let l=new R7(e),d,y,p=0,x=e.getCancellationToken?new j7(e.getCancellationToken()):F7,h=e.getCurrentDirectory();$3((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function D(j){e.log&&e.log(j)}let w=A2(e),g=im(w),A=getSourceMapper({useCaseSensitiveFileNames:()=>w,getCurrentDirectory:()=>h,getProgram:oe,fileExists:rn(e,e.fileExists),readFile:rn(e,e.readFile),getDocumentPositionMapper:rn(e,e.getDocumentPositionMapper),getSourceFileLike:rn(e,e.getSourceFileLike),log:D});function B(j){let E=d.getSourceFile(j);if(!E){let S=new Error(`Could not find source file: '${j}'.`);throw S.ProgramFiles=d.getSourceFiles().map(J=>J.fileName),S}return E}function G(){var j,E,S;if(M.assert(s!==2),e.getProjectVersion){let Le=e.getProjectVersion();if(Le){if(y===Le&&!((j=e.hasChangedAutomaticTypeDirectiveNames)!=null&&j.call(e)))return;y=Le}}let J=e.getTypeRootsVersion?e.getTypeRootsVersion():0;p!==J&&(D("TypeRoots version has changed; provide new program"),d=void 0,p=J);let m=e.getScriptFileNames().slice(),ie=e.getCompilationSettings()||E7(),he=e.hasInvalidatedResolutions||df,R=rn(e,e.hasInvalidatedLibResolutions)||df,me=rn(e,e.hasChangedAutomaticTypeDirectiveNames),Ae=(E=e.getProjectReferences)==null?void 0:E.call(e),ke,De={getSourceFile:Pt,getSourceFileByPath:Y,getCancellationToken:()=>x,getCanonicalFileName:g,useCaseSensitiveFileNames:()=>w,getNewLine:()=>F3(ie),getDefaultLibFileName:Le=>e.getDefaultLibFileName(Le),writeFile:Pr,getCurrentDirectory:()=>h,fileExists:Le=>e.fileExists(Le),readFile:Le=>e.readFile&&e.readFile(Le),getSymlinkCache:rn(e,e.getSymlinkCache),realpath:rn(e,e.realpath),directoryExists:Le=>R3(Le,e),getDirectories:Le=>e.getDirectories?e.getDirectories(Le):[],readDirectory:(Le,_t,en,Zn,lo)=>(M.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(Le,_t,en,Zn,lo)),onReleaseOldSourceFile:Yn,onReleaseParsedCommandLine:jt,hasInvalidatedResolutions:he,hasInvalidatedLibResolutions:R,hasChangedAutomaticTypeDirectiveNames:me,trace:rn(e,e.trace),resolveModuleNames:rn(e,e.resolveModuleNames),getModuleResolutionCache:rn(e,e.getModuleResolutionCache),createHash:rn(e,e.createHash),resolveTypeReferenceDirectives:rn(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:rn(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:rn(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:rn(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:rn(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:Ct},ot=De.getSourceFile,{getSourceFileWithCache:st}=changeCompilerHostLikeToUseCache(De,Le=>vi(Le,h,g),(...Le)=>ot.call(De,...Le));De.getSourceFile=st,(S=e.setCompilerHost)==null||S.call(e,De);let Ye={useCaseSensitiveFileNames:w,fileExists:Le=>De.fileExists(Le),readFile:Le=>De.readFile(Le),readDirectory:(...Le)=>De.readDirectory(...Le),trace:De.trace,getCurrentDirectory:De.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:Pr},Ft=t.getKeyForCompilationSettings(ie),Et=new Set;if(isProgramUptoDate(d,m,ie,(Le,_t)=>e.getScriptVersion(_t),Le=>De.fileExists(Le),he,R,me,Ct,Ae)){De=void 0,ke=void 0,Et=void 0;return}let bn={rootNames:m,options:ie,host:De,oldProgram:d,projectReferences:Ae};d=createProgram(bn),De=void 0,ke=void 0,Et=void 0,A.clearCache(),d.getTypeChecker();return;function Ct(Le){let _t=vi(Le,h,g),en=ke==null?void 0:ke.get(_t);if(en!==void 0)return en||void 0;let Zn=e.getParsedCommandLine?e.getParsedCommandLine(Le):Pe(Le);return(ke||(ke=new Map)).set(_t,Zn||!1),Zn}function Pe(Le){let _t=Pt(Le,100);if(_t)return _t.path=vi(Le,h,g),_t.resolvedPath=_t.path,_t.originalFileName=_t.fileName,parseJsonSourceFileConfigFileContent(_t,Ye,Ta(Hi(Le),h),void 0,Ta(Le,h))}function jt(Le,_t,en){var Zn;e.getParsedCommandLine?(Zn=e.onReleaseParsedCommandLine)==null||Zn.call(e,Le,_t,en):_t&&Yn(_t.sourceFile,en)}function Yn(Le,_t){let en=t.getKeyForCompilationSettings(_t);t.releaseDocumentWithKey(Le.resolvedPath,en,Le.scriptKind,Le.impliedNodeFormat)}function Pt(Le,_t,en,Zn){return Y(Le,vi(Le,h,g),_t,en,Zn)}function Y(Le,_t,en,Zn,lo){M.assert(De,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");let Na=e.getScriptSnapshot(Le);if(!Na)return;let vr=getScriptKind(Le,e),Je=e.getScriptVersion(Le);if(!lo){let at=d&&d.getSourceFileByPath(_t);if(at){if(vr===at.scriptKind||Et.has(at.resolvedPath))return t.updateDocumentWithKey(Le,_t,e,Ft,Na,Je,vr,en);t.releaseDocumentWithKey(at.resolvedPath,t.getKeyForCompilationSettings(d.getCompilerOptions()),at.scriptKind,at.impliedNodeFormat),Et.add(at.resolvedPath)}}return t.acquireDocumentWithKey(Le,_t,e,Ft,Na,Je,vr,en)}}function oe(){if(s===2){M.assert(d===void 0);return}return G(),d}function Q(){var j;return(j=e.getPackageJsonAutoImportProvider)==null?void 0:j.call(e)}function W(j,E){let S=d.getTypeChecker(),J=m();if(!J)return!1;for(let he of j)for(let R of he.references){let me=ie(R);if(M.assertIsDefined(me),E.has(R)||ts_FindAllReferences_exports.isDeclarationOfSymbol(me,J)){E.add(R),R.isDefinition=!0;let Ae=getMappedDocumentSpan(R,A,rn(e,e.fileExists));Ae&&E.add(Ae)}else R.isDefinition=!1}return!0;function m(){for(let he of j)for(let R of he.references){if(E.has(R)){let Ae=ie(R);return M.assertIsDefined(Ae),S.getSymbolAtLocation(Ae)}let me=getMappedDocumentSpan(R,A,rn(e,e.fileExists));if(me&&E.has(me)){let Ae=ie(me);if(Ae)return S.getSymbolAtLocation(Ae)}}}function ie(he){let R=d.getSourceFile(he.fileName);if(!R)return;let me=getTouchingPropertyName(R,he.textSpan.start);return ts_FindAllReferences_exports.Core.getAdjustedNode(me,{use:ts_FindAllReferences_exports.FindReferencesUse.References})}}function se(){d=void 0}function we(){if(d){let j=t.getKeyForCompilationSettings(d.getCompilerOptions());hn(d.getSourceFiles(),E=>t.releaseDocumentWithKey(E.resolvedPath,j,E.scriptKind,E.impliedNodeFormat)),d=void 0}e=void 0}function Ze(j){return G(),d.getSyntacticDiagnostics(B(j),x).slice()}function Ue(j){G();let E=B(j),S=d.getSemanticDiagnostics(E,x);if(!H2(d.getCompilerOptions()))return S.slice();let J=d.getDeclarationDiagnostics(E,x);return[...S,...J]}function rt(j){return G(),computeSuggestionDiagnostics(B(j),d,x)}function ct(){return G(),[...d.getOptionsDiagnostics(x),...d.getGlobalDiagnostics(x)]}function Dn(j,E,S=emptyOptions,J){let m={...S,includeCompletionsForModuleExports:S.includeCompletionsForModuleExports||S.includeExternalModuleExports,includeCompletionsWithInsertText:S.includeCompletionsWithInsertText||S.includeInsertTextCompletions};return G(),ts_Completions_exports.getCompletionsAtPosition(e,d,D,B(j),E,m,S.triggerCharacter,S.triggerKind,x,J&&ts_formatting_exports.getFormatContext(J,e),S.includeSymbol)}function sn(j,E,S,J,m,ie=emptyOptions,he){return G(),ts_Completions_exports.getCompletionEntryDetails(d,D,B(j),E,{name:S,source:m,data:he},e,J&&ts_formatting_exports.getFormatContext(J,e),ie,x)}function ei(j,E,S,J,m=emptyOptions){return G(),ts_Completions_exports.getCompletionEntrySymbol(d,D,B(j),E,{name:S,source:J},e,m)}function _n(j,E){G();let S=B(j),J=getTouchingPropertyName(S,E);if(J===S)return;let m=d.getTypeChecker(),ie=Pn(J),he=Kj(ie,m);if(!he||m.isUnknownSymbol(he)){let De=$e(S,ie,E)?m.getTypeAtLocation(ie):void 0;return De&&{kind:"",kindModifiers:"",textSpan:createTextSpanFromNode(ie,S),displayParts:m.runWithCancellationToken(x,ot=>typeToDisplayParts(ot,De,getContainerNode(ie))),documentation:De.symbol?De.symbol.getDocumentationComment(m):void 0,tags:De.symbol?De.symbol.getJsDocTags(m):void 0}}let{symbolKind:R,displayParts:me,documentation:Ae,tags:ke}=m.runWithCancellationToken(x,De=>ts_SymbolDisplay_exports.getSymbolDisplayPartsDocumentationAndSymbolKind(De,he,S,getContainerNode(ie),ie));return{kind:R,kindModifiers:ts_SymbolDisplay_exports.getSymbolModifiers(m,he),textSpan:createTextSpanFromNode(ie,S),displayParts:me,documentation:Ae,tags:ke}}function Pn(j){return S8(j.parent)&&j.pos===j.parent.pos?j.parent.expression:mb(j.parent)&&j.pos===j.parent.pos||k0(j.parent)&&j.parent.name===j||J_(j.parent)?j.parent:j}function $e(j,E,S){switch(E.kind){case 80:return!isLabelName(E)&&!isTagName(E)&&!yx(E.parent);case 210:case 165:return!isInComment(j,S);case 110:case 196:case 108:case 201:return!0;case 235:return k0(E);default:return!1}}function $t(j,E,S,J){return G(),ts_GoToDefinition_exports.getDefinitionAtPosition(d,B(j),E,S,J)}function jn(j,E){return G(),ts_GoToDefinition_exports.getDefinitionAndBoundSpan(d,B(j),E)}function Qt(j,E){return G(),ts_GoToDefinition_exports.getTypeDefinitionAtPosition(d.getTypeChecker(),B(j),E)}function fr(j,E){return G(),ts_FindAllReferences_exports.getImplementationsAtPosition(d,x,d.getSourceFiles(),B(j),E)}function Bn(j,E,S){let J=sr(j);M.assert(S.some(he=>sr(he)===J)),G();let m=Ka(S,he=>d.getSourceFile(he)),ie=B(j);return DocumentHighlights.getDocumentHighlights(d,x,ie,E,m)}function dn(j,E,S,J,m){G();let ie=B(j),he=getAdjustedRenameLocation(getTouchingPropertyName(ie,E));if(ts_Rename_exports.nodeIsEligibleForRename(he))if(Ce(he)&&(Ro(he.parent)||sf(he.parent))&&s3(he.escapedText)){let{openingElement:R,closingElement:me}=he.parent.parent;return[R,me].map(Ae=>{let ke=createTextSpanFromNode(Ae.tagName,ie);return{fileName:ie.fileName,textSpan:ke,...ts_FindAllReferences_exports.toContextSpan(ke,ie,Ae.parent)}})}else{let R=getQuotePreference(ie,m??emptyOptions),me=typeof m=="boolean"?m:m==null?void 0:m.providePrefixAndSuffixTextForRename;return vt(he,E,{findInStrings:S,findInComments:J,providePrefixAndSuffixTextForRename:me,use:ts_FindAllReferences_exports.FindReferencesUse.Rename},(Ae,ke,De)=>ts_FindAllReferences_exports.toRenameLocation(Ae,ke,De,me||!1,R))}}function Yt(j,E){return G(),vt(getTouchingPropertyName(B(j),E),E,{use:ts_FindAllReferences_exports.FindReferencesUse.References},ts_FindAllReferences_exports.toReferenceEntry)}function vt(j,E,S,J){G();let m=S&&S.use===ts_FindAllReferences_exports.FindReferencesUse.Rename?d.getSourceFiles().filter(ie=>!d.isSourceFileDefaultLibrary(ie)):d.getSourceFiles();return ts_FindAllReferences_exports.findReferenceOrRenameEntries(d,x,m,j,E,S,J)}function Un(j,E){return G(),ts_FindAllReferences_exports.findReferencedSymbols(d,x,d.getSourceFiles(),B(j),E)}function qn(j){return G(),ts_FindAllReferences_exports.Core.getReferencesForFileName(j,d,d.getSourceFiles()).map(ts_FindAllReferences_exports.toReferenceEntry)}function gt(j,E,S,J=!1){G();let m=S?[B(S)]:d.getSourceFiles();return getNavigateToItems(m,d.getTypeChecker(),x,j,E,J)}function lt(j,E,S){G();let J=B(j),m=e.getCustomTransformers&&e.getCustomTransformers();return getFileEmitOutput(d,J,!!E,x,m,S)}function Zt(j,E,{triggerReason:S}=emptyOptions){G();let J=B(j);return ts_SignatureHelp_exports.getSignatureHelpItems(d,J,E,S,x)}function zn(j){return l.getCurrentSourceFile(j)}function mt(j,E,S){let J=l.getCurrentSourceFile(j),m=getTouchingPropertyName(J,E);if(m===J)return;switch(m.kind){case 210:case 165:case 11:case 97:case 112:case 106:case 108:case 110:case 196:case 80:break;default:return}let ie=m;for(;;)if(isRightSideOfPropertyAccess(ie)||isRightSideOfQualifiedName(ie))ie=ie.parent;else if(isNameOfModuleDeclaration(ie))if(ie.parent.parent.kind===266&&ie.parent.parent.body===ie.parent)ie=ie.parent.parent.name;else break;else break;return zi(ie.getStart(),m.getEnd())}function mr(j,E){let S=l.getCurrentSourceFile(j);return ts_BreakpointResolver_exports.spanInSourceFileAtLocation(S,E)}function bt(j){return getNavigationBarItems(l.getCurrentSourceFile(j),x)}function cn(j){return getNavigationTree(l.getCurrentSourceFile(j),x)}function dt(j,E,S){return G(),(S||"original")==="2020"?getSemanticClassifications2(d,x,B(j),E):getSemanticClassifications(d.getTypeChecker(),x,B(j),d.getClassifiableNames(),E)}function Qn(j,E,S){return G(),(S||"original")==="original"?getEncodedSemanticClassifications(d.getTypeChecker(),x,B(j),d.getClassifiableNames(),E):getEncodedSemanticClassifications2(d,x,B(j),E)}function ut(j,E){return getSyntacticClassifications(x,l.getCurrentSourceFile(j),E)}function Jt(j,E){return getEncodedSyntacticClassifications(x,l.getCurrentSourceFile(j),E)}function ln(j){let E=l.getCurrentSourceFile(j);return ts_OutliningElementsCollector_exports.collectElements(E,x)}let yr=new Map(Object.entries({19:20,21:22,23:24,32:30}));yr.forEach((j,E)=>yr.set(j.toString(),Number(E)));function Or(j,E){let S=l.getCurrentSourceFile(j),J=getTouchingToken(S,E),m=J.getStart(S)===E?yr.get(J.kind.toString()):void 0,ie=m&&findChildOfKind(J.parent,m,S);return ie?[createTextSpanFromNode(J,S),createTextSpanFromNode(ie,S)].sort((he,R)=>he.start-R.start):Xe}function ti(j,E,S){let J=da(),m=Zc(S),ie=l.getCurrentSourceFile(j);D("getIndentationAtPosition: getCurrentSourceFile: "+(da()-J)),J=da();let he=ts_formatting_exports.SmartIndenter.getIndentation(E,ie,m);return D("getIndentationAtPosition: computeIndentation : "+(da()-J)),he}function Wn(j,E,S,J){let m=l.getCurrentSourceFile(j);return ts_formatting_exports.formatSelection(E,S,m,ts_formatting_exports.getFormatContext(Zc(J),e))}function hr(j,E){return ts_formatting_exports.formatDocument(l.getCurrentSourceFile(j),ts_formatting_exports.getFormatContext(Zc(E),e))}function Ci(j,E,S,J){let m=l.getCurrentSourceFile(j),ie=ts_formatting_exports.getFormatContext(Zc(J),e);if(!isInComment(m,E))switch(S){case"{":return ts_formatting_exports.formatOnOpeningCurly(E,m,ie);case"}":return ts_formatting_exports.formatOnClosingCurly(E,m,ie);case";":return ts_formatting_exports.formatOnSemicolon(E,m,ie);case` -`:return ts_formatting_exports.formatOnEnter(E,m,ie)}return[]}function Ie(j,E,S,J,m,ie=emptyOptions){G();let he=B(j),R=zi(E,S),me=ts_formatting_exports.getFormatContext(m,e);return Wo(Bv(J,to,wn),Ae=>(x.throwIfCancellationRequested(),ts_codefix_exports.getFixes({errorCode:Ae,sourceFile:he,span:R,program:d,host:e,cancellationToken:x,formatContext:me,preferences:ie})))}function H(j,E,S,J=emptyOptions){G(),M.assert(j.type==="file");let m=B(j.fileName),ie=ts_formatting_exports.getFormatContext(S,e);return ts_codefix_exports.getAllFixes({fixId:E,sourceFile:m,program:d,host:e,cancellationToken:x,formatContext:ie,preferences:J})}function de(j,E,S=emptyOptions){G(),M.assert(j.type==="file");let J=B(j.fileName),m=ts_formatting_exports.getFormatContext(E,e),ie=j.mode??(j.skipDestructiveCodeActions?"SortAndCombine":"All");return ts_OrganizeImports_exports.organizeImports(J,m,e,d,S,ie)}function be(j,E,S,J=emptyOptions){return getEditsForFileRename(oe(),j,E,e,ts_formatting_exports.getFormatContext(S,e),J,A)}function Ee(j,E){let S=typeof j=="string"?E:j;return Wt(S)?Promise.all(S.map(J=>et(J))):et(S)}function et(j){let E=S=>vi(S,h,g);return M.assertEqual(j.type,"install package"),e.installPackage?e.installPackage({fileName:E(j.file),packageName:j.packageName}):Promise.reject("Host does not implement `installPackage`")}function Qe(j,E,S,J){let m=J?ts_formatting_exports.getFormatContext(J,e).options:void 0;return ts_JsDoc_exports.getDocCommentTemplateAtPosition(getNewLineOrDefaultFromHost(e,m),l.getCurrentSourceFile(j),E,S)}function ee(j,E,S){if(S===60)return!1;let J=l.getCurrentSourceFile(j);if(isInString(J,E))return!1;if(isInsideJsxElementOrAttribute(J,E))return S===123;if(isInTemplateString(J,E))return!1;switch(S){case 39:case 34:case 96:return!isInComment(J,E)}return!0}function Z(j,E){let S=l.getCurrentSourceFile(j),J=findPrecedingToken(E,S);if(!J)return;let m=J.kind===32&&Ro(J.parent)?J.parent.parent:Hf(J)&&Z0(J.parent)?J.parent:void 0;if(m&&Nt(m))return{newText:``};let ie=J.kind===32&&Nb(J.parent)?J.parent.parent:Hf(J)&&ol(J.parent)?J.parent:void 0;if(ie&&Vn(ie))return{newText:""}}function ae(j,E){let S=l.getCurrentSourceFile(j),J=findPrecedingToken(E,S);if(!J||J.parent.kind===311)return;let m="[a-zA-Z0-9:\\-\\._$]*";if(ol(J.parent.parent)){let ie=J.parent.parent.openingFragment,he=J.parent.parent.closingFragment;if(ml(ie)||ml(he))return;let R=ie.getStart(S)+1,me=he.getStart(S)+2;return E!==R&&E!==me?void 0:{ranges:[{start:R,length:0},{start:me,length:0}],wordPattern:m}}else{let ie=Xr(J.parent,st=>!!(Ro(st)||sf(st)));if(!ie)return;M.assert(Ro(ie)||sf(ie),"tag should be opening or closing element");let he=ie.parent.openingElement,R=ie.parent.closingElement,me=he.tagName.getStart(S),Ae=he.tagName.end,ke=R.tagName.getStart(S),De=R.tagName.end;return!(me<=E&&E<=Ae||ke<=E&&E<=De)||he.tagName.getText(S)!==R.tagName.getText(S)?void 0:{ranges:[{start:me,length:Ae-me},{start:ke,length:De-ke}],wordPattern:m}}}function Te(j,E){return{lineStarts:j.getLineStarts(),firstLine:j.getLineAndCharacterOfPosition(E.pos).line,lastLine:j.getLineAndCharacterOfPosition(E.end).line}}function Oe(j,E,S){let J=l.getCurrentSourceFile(j),m=[],{lineStarts:ie,firstLine:he,lastLine:R}=Te(J,E),me=S||!1,Ae=Number.MAX_VALUE,ke=new Map,De=new RegExp(/\S/),ot=isInsideJsxElement(J,ie[he]),st=ot?"{/*":"//";for(let Ye=he;Ye<=R;Ye++){let Ft=J.text.substring(ie[Ye],J.getLineEndOfPosition(ie[Ye])),Et=De.exec(Ft);Et&&(Ae=Math.min(Ae,Et.index),ke.set(Ye.toString(),Et.index),Ft.substr(Et.index,st.length)!==st&&(me=S===void 0||S))}for(let Ye=he;Ye<=R;Ye++){if(he!==R&&ie[Ye]===E.end)continue;let Ft=ke.get(Ye.toString());Ft!==void 0&&(ot?m.push.apply(m,We(j,{pos:ie[Ye]+Ae,end:J.getLineEndOfPosition(ie[Ye])},me,ot)):me?m.push({newText:st,span:{length:0,start:ie[Ye]+Ae}}):J.text.substr(ie[Ye]+Ft,st.length)===st&&m.push({newText:"",span:{length:st.length,start:ie[Ye]+Ft}}))}return m}function We(j,E,S,J){var m;let ie=l.getCurrentSourceFile(j),he=[],{text:R}=ie,me=!1,Ae=S||!1,ke=[],{pos:De}=E,ot=J!==void 0?J:isInsideJsxElement(ie,De),st=ot?"{/*":"/*",Ye=ot?"*/}":"*/",Ft=ot?"\\{\\/\\*":"\\/\\*",Et=ot?"\\*\\/\\}":"\\*\\/";for(;De<=E.end;){let bn=R.substr(De,st.length)===st?st.length:0,Ct=isInComment(ie,De+bn);if(Ct)ot&&(Ct.pos--,Ct.end++),ke.push(Ct.pos),Ct.kind===3&&ke.push(Ct.end),me=!0,De=Ct.end+1;else{let Pe=R.substring(De,E.end).search(`(${Ft})|(${Et})`);Ae=S!==void 0?S:Ae||!isTextWhiteSpaceLike(R,De,Pe===-1?E.end:De+Pe),De=Pe===-1?E.end+1:De+Pe+Ye.length}}if(Ae||!me){((m=isInComment(ie,E.pos))==null?void 0:m.kind)!==2&&cl(ke,E.pos,wn),cl(ke,E.end,wn);let bn=ke[0];R.substr(bn,st.length)!==st&&he.push({newText:st,span:{length:0,start:bn}});for(let Ct=1;Ct0?bn-Ye.length:0,Pe=R.substr(Ct,Ye.length)===Ye?Ye.length:0;he.push({newText:"",span:{length:st.length,start:bn-Pe}})}return he}function Re(j,E){let S=l.getCurrentSourceFile(j),{firstLine:J,lastLine:m}=Te(S,E);return J===m&&E.pos!==E.end?We(j,E,!0):Oe(j,E,!0)}function Rt(j,E){let S=l.getCurrentSourceFile(j),J=[],{pos:m}=E,{end:ie}=E;m===ie&&(ie+=isInsideJsxElement(S,m)?2:1);for(let he=m;he<=ie;he++){let R=isInComment(S,he);if(R){switch(R.kind){case 2:J.push.apply(J,Oe(j,{end:R.end,pos:R.pos+1},!1));break;case 3:J.push.apply(J,We(j,{end:R.end,pos:R.pos+1},!1))}he=R.end+1}}return J}function Nt({openingElement:j,closingElement:E,parent:S}){return!gi(j.tagName,E.tagName)||Z0(S)&&gi(j.tagName,S.openingElement.tagName)&&Nt(S)}function Vn({closingFragment:j,parent:E}){return!!(j.flags&131072)||ol(E)&&Vn(E)}function ta(j,E,S){let J=l.getCurrentSourceFile(j),m=ts_formatting_exports.getRangeOfEnclosingComment(J,E);return m&&(!S||m.kind===3)?createTextSpanFromRange(m):void 0}function gr(j,E){G();let S=B(j);x.throwIfCancellationRequested();let J=S.text,m=[];if(E.length>0&&!me(S.fileName)){let Ae=he(),ke;for(;ke=Ae.exec(J);){x.throwIfCancellationRequested();let De=3;M.assert(ke.length===E.length+De);let ot=ke[1],st=ke.index+ot.length;if(!isInComment(S,st))continue;let Ye;for(let Et=0;Et"("+ie(Ct.text)+")").join("|")+")",Ye=/(?:$|\*\/)/.source,Ft=/(?:.*?)/.source,Et="("+st+Ft+")",bn=ot+Et+Ye;return new RegExp(bn,"gim")}function R(Ae){return Ae>=97&&Ae<=122||Ae>=65&&Ae<=90||Ae>=48&&Ae<=57}function me(Ae){return Ga(Ae,"/node_modules/")}}function ni(j,E,S){return G(),ts_Rename_exports.getRenameInfo(d,B(j),E,S||{})}function ri(j,E,S,J,m,ie){let[he,R]=typeof E=="number"?[E,void 0]:[E.pos,E.end];return{file:j,startPosition:he,endPosition:R,program:oe(),host:e,formatContext:ts_formatting_exports.getFormatContext(J,e),cancellationToken:x,preferences:S,triggerReason:m,kind:ie}}function na(j,E,S){return{file:j,program:oe(),host:e,span:E,preferences:S,cancellationToken:x}}function Pa(j,E){return ts_SmartSelectionRange_exports.getSmartSelectionRange(E,l.getCurrentSourceFile(j))}function br(j,E,S=emptyOptions,J,m,ie){G();let he=B(j);return ts_refactor_exports.getApplicableRefactors(ri(he,E,S,emptyOptions,J,m),ie)}function ii(j,E,S=emptyOptions){G();let J=B(j),m=M.checkDefined(d.getSourceFiles()),ie=Gc(j),he=Ka(m,me=>!(d!=null&&d.isSourceFileFromExternalLibrary(J))&&!(J===B(me.fileName)||ie===".ts"&&Gc(me.fileName)===".d.ts"||ie===".d.ts"&&Jn(h_(me.fileName),"lib.")&&Gc(me.fileName)===".d.ts")&&ie===Gc(me.fileName)?me.fileName:void 0);return{newFileName:createNewFileName(J,d,ri(J,E,S,emptyOptions),e),files:he}}function ai(j,E,S,J,m,ie=emptyOptions,he){G();let R=B(j);return ts_refactor_exports.getEditsForRefactor(ri(R,S,ie,E),J,m,he)}function ra(j,E){return E===0?{line:0,character:0}:A.toLineColumnOffset(j,E)}function Mr(j,E){G();let S=ts_CallHierarchy_exports.resolveCallHierarchyDeclaration(d,getTouchingPropertyName(B(j),E));return S&&mapOneOrMany(S,J=>ts_CallHierarchy_exports.createCallHierarchyItem(d,J))}function Nn(j,E){G();let S=B(j),J=firstOrOnly(ts_CallHierarchy_exports.resolveCallHierarchyDeclaration(d,E===0?S:getTouchingPropertyName(S,E)));return J?ts_CallHierarchy_exports.getIncomingCalls(d,J,x):[]}function Fe(j,E){G();let S=B(j),J=firstOrOnly(ts_CallHierarchy_exports.resolveCallHierarchyDeclaration(d,E===0?S:getTouchingPropertyName(S,E)));return J?ts_CallHierarchy_exports.getOutgoingCalls(d,J):[]}function ki(j,E,S=emptyOptions){G();let J=B(j);return ts_InlayHints_exports.provideInlayHints(na(J,E,S))}let wt={dispose:we,cleanupSemanticCache:se,getSyntacticDiagnostics:Ze,getSemanticDiagnostics:Ue,getSuggestionDiagnostics:rt,getCompilerOptionsDiagnostics:ct,getSyntacticClassifications:ut,getSemanticClassifications:dt,getEncodedSyntacticClassifications:Jt,getEncodedSemanticClassifications:Qn,getCompletionsAtPosition:Dn,getCompletionEntryDetails:sn,getCompletionEntrySymbol:ei,getSignatureHelpItems:Zt,getQuickInfoAtPosition:_n,getDefinitionAtPosition:$t,getDefinitionAndBoundSpan:jn,getImplementationAtPosition:fr,getTypeDefinitionAtPosition:Qt,getReferencesAtPosition:Yt,findReferences:Un,getFileReferences:qn,getDocumentHighlights:Bn,getNameOrDottedNameSpan:mt,getBreakpointStatementAtPosition:mr,getNavigateToItems:gt,getRenameInfo:ni,getSmartSelectionRange:Pa,findRenameLocations:dn,getNavigationBarItems:bt,getNavigationTree:cn,getOutliningSpans:ln,getTodoComments:gr,getBraceMatchingAtPosition:Or,getIndentationAtPosition:ti,getFormattingEditsForRange:Wn,getFormattingEditsForDocument:hr,getFormattingEditsAfterKeystroke:Ci,getDocCommentTemplateAtPosition:Qe,isValidBraceCompletionAtPosition:ee,getJsxClosingTagAtPosition:Z,getLinkedEditingRangeAtPosition:ae,getSpanOfEnclosingComment:ta,getCodeFixesAtPosition:Ie,getCombinedCodeFix:H,applyCodeActionCommand:Ee,organizeImports:de,getEditsForFileRename:be,getEmitOutput:lt,getNonBoundSourceFile:zn,getProgram:oe,getCurrentProgram:()=>d,getAutoImportProvider:Q,updateIsDefinitionOfReferencedSymbols:W,getApplicableRefactors:br,getEditsForRefactor:ai,getMoveToRefactoringFileSuggestions:ii,toLineColumnOffset:ra,getSourceMapper:()=>A,clearSourceMapperCache:()=>A.clearCache(),prepareCallHierarchy:Mr,provideCallHierarchyIncomingCalls:Nn,provideCallHierarchyOutgoingCalls:Fe,toggleLineComment:Oe,toggleMultilineComment:We,commentSelection:Re,uncommentSelection:Rt,provideInlayHints:ki,getSupportedCodeFixes:C7};switch(s){case 0:break;case 1:ag.forEach(j=>wt[j]=()=>{throw new Error(`LanguageService Operation: ${j} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:U7.forEach(j=>wt[j]=()=>{throw new Error(`LanguageService Operation: ${j} not allowed in LanguageServiceMode.Syntactic`)});break;default:M.assertNever(s)}return wt}function zj(e){return e.nameTable||Wj(e),e.nameTable}function Wj(e){let t=e.nameTable=new Map;e.forEachChild(function n(i){if(Ce(i)&&!isTagName(i)&&i.escapedText||Ki(i)&&Vj(i)){let s=Z4(i);t.set(s,t.get(s)===void 0?i.pos:-1)}else if(Ln(i)){let s=i.escapedText;t.set(s,t.get(s)===void 0?i.pos:-1)}if(qt(i,n),Ui(i))for(let s of i.jsDoc)qt(s,n)})}function Vj(e){return U4(e)||e.parent.kind===282||Gj(e)||q4(e)}function D7(e){let t=Hj(e);return t&&(ao(t.parent)||Ib(t.parent))?t:void 0}function Hj(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===166)return S0(e.parent.parent)?e.parent.parent:void 0;case 80:return S0(e.parent)&&(e.parent.parent.kind===209||e.parent.parent.kind===291)&&e.parent.name===e?e.parent:void 0}}function Kj(e,t){let n=D7(e);if(n){let i=t.getContextualType(n.parent),s=i&&P7(n,t,i,!1);if(s&&s.length===1)return cg(s)}return t.getSymbolAtLocation(e)}function P7(e,t,n,i){let s=getNameFromPropertyName(e.name);if(!s)return Xe;if(!n.isUnion()){let d=n.getProperty(s);return d?[d]:Xe}let l=Ka(n.types,d=>(ao(e.parent)||Ib(e.parent))&&t.isTypeInvalidDueToUnionDiscriminant(d,e.parent)?void 0:d.getProperty(s));if(i&&(l.length===0||l.length===n.types.length)){let d=n.getProperty(s);if(d)return[d]}return l.length===0?Ka(n.types,d=>d.getProperty(s)):l}function Gj(e){return e&&e.parent&&e.parent.kind===211&&e.parent.argumentExpression===e}function Xj(e){if(h0)return yn(Hi(sr(h0.getExecutingFilePath())),FT(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var N7,$f,Kd,I7,Kb,Qf,Yf,O7,M7,L7,J7,R7,F7,j7,B7,ag,U7,$j=Ht({"src/services/services.ts"(){"use strict";q7(),b7(),v7(),T7(),g7(),Rj(),N7="0.8",$f=class{constructor(e,t,n){this.pos=t,this.end=n,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}assertHasRealPosition(e){M.assert(!wa(this.pos)&&!wa(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Kr(this)}getStart(e,t){return this.assertHasRealPosition(),Qo(this,e,t)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=Fj(this,e))}getFirstToken(e){this.assertHasRealPosition();let t=this.getChildren(e);if(!t.length)return;let n=$n(t,i=>i.kind<315||i.kind>356);return n.kind<165?n:n.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let t=this.getChildren(e),n=Ti(t);if(n)return n.kind<165?n:n.getLastToken(e)}forEachChild(e,t){return qt(this,e,t)}},Kd=class{constructor(e,t){this.pos=e,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}getSourceFile(){return Kr(this)}getStart(e,t){return Qo(this,e,t)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(e){return this.getChildren()[e]}getChildren(){return this.kind===1&&this.jsDoc||Xe}getFirstToken(){}getLastToken(){}forEachChild(){}},I7=class{constructor(e,t){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=t}getFlags(){return this.flags}get name(){return Of(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=Xe,!this.declarations&&E0(this)&&this.links.target&&E0(this.links.target)&&this.links.target.links.tupleLabelDeclaration){let t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=Wc([t],e)}else this.documentationComment=Wc(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(Hc(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=Wc(Gn(this.declarations,Hc),t)),Ha(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(Vc(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=Wc(Gn(this.declarations,Vc),t)),Ha(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=Hd(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(Hc(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=Hd(Gn(this.declarations,Hc),t)),Ha(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(Vc(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=Hd(Gn(this.declarations,Vc),t)),Ha(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},Kb=class extends Kd{constructor(e,t,n){super(t,n),this.kind=e}},Qf=class extends Kd{constructor(e,t,n){super(t,n),this.kind=80}get text(){return Ot(this)}},Qf.prototype.kind=80,Yf=class extends Kd{constructor(e,t,n){super(t,n),this.kind=81}get text(){return Ot(this)}},Yf.prototype.kind=81,O7=class{constructor(e,t){this.checker=e,this.flags=t}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(this.flags&1048576)}isIntersection(){return!!(this.flags&2097152)}isUnionOrIntersection(){return!!(this.flags&3145728)}isLiteral(){return!!(this.flags&2432)}isStringLiteral(){return!!(this.flags&128)}isNumberLiteral(){return!!(this.flags&256)}isTypeParameter(){return!!(this.flags&262144)}isClassOrInterface(){return!!(tf(this)&3)}isClass(){return!!(tf(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(tf(this)&4)return this.checker.getTypeArguments(this)}},M7=class{constructor(e,t){this.checker=e,this.flags=t}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){let t=this.checker.getParameterType(this,e);if(t.isIndexType()&&SS(t.type)){let n=t.type.getConstraint();if(n)return this.checker.getIndexType(n)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=Wc(ff(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=Hd(ff(this.declaration),this.checker))}},L7=class extends $f{constructor(e,t,n){super(e,t,n),this.kind=311}update(e,t){return Vb(this,e,t)}getLineAndCharacterOfPosition(e){return Xa(this,e)}getLineStarts(){return xa(this)}getPositionOfLineAndCharacter(e,t,n){return wg(xa(this),e,t,this.text,n)}getLineEndOfPosition(e){let{line:t}=this.getLineAndCharacterOfPosition(e),n=this.getLineStarts(),i;t+1>=n.length&&(i=this.getEnd()),i||(i=n[t+1]-1);let s=this.getFullText();return s[i]===` -`&&s[i-1]==="\r"?i-1:i}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=nm();return this.forEachChild(s),e;function t(l){let d=i(l);d&&e.add(d,l)}function n(l){let d=e.get(l);return d||e.set(l,d=[]),d}function i(l){let d=ym(l);return d&&(Za(d)&&Rn(d.expression)?d.expression.name.text:Ml(d)?getNameFromPropertyName(d):void 0)}function s(l){switch(l.kind){case 261:case 217:case 173:case 172:let d=l,y=i(d);if(y){let h=n(y),D=Ti(h);D&&d.parent===D.parent&&d.symbol===D.symbol?d.body&&!D.body&&(h[h.length-1]=d):h.push(d)}qt(l,s);break;case 262:case 230:case 263:case 264:case 265:case 266:case 270:case 280:case 275:case 272:case 273:case 176:case 177:case 186:t(l),qt(l,s);break;case 168:if(!gn(l,16476))break;case 259:case 207:{let h=l;if(Sm(h.name)){qt(h.name,s);break}h.initializer&&s(h.initializer)}case 305:case 171:case 170:t(l);break;case 277:let p=l;p.exportClause&&(N8(p.exportClause)?hn(p.exportClause.elements,s):s(p.exportClause.name));break;case 271:let x=l.importClause;x&&(x.name&&t(x.name),x.namedBindings&&(x.namedBindings.kind===273?t(x.namedBindings):hn(x.namedBindings.elements,s)));break;case 225:Ca(l)!==0&&t(l);default:qt(l,s)}}}},J7=class{constructor(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n}getLineAndCharacterOfPosition(e){return Xa(this,e)}},R7=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,n,i,s,l,d,y,p;let x=this.host.getScriptSnapshot(e);if(!x)throw new Error("Could not find file: '"+e+"'.");let h=getScriptKind(e,this.host),D=this.host.getScriptVersion(e),w;if(this.currentFileName!==e){let g={languageVersion:99,impliedNodeFormat:getImpliedNodeFormatForFile(vi(e,this.host.getCurrentDirectory(),((i=(n=(t=this.host).getCompilerHost)==null?void 0:n.call(t))==null?void 0:i.getCanonicalFileName)||_3(this.host)),(p=(y=(d=(l=(s=this.host).getCompilerHost)==null?void 0:l.call(s))==null?void 0:d.getModuleResolutionCache)==null?void 0:y.call(d))==null?void 0:p.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:eS(this.host.getCompilationSettings())};w=Hb(e,x,g,D,!0,h)}else if(this.currentFileVersion!==D){let g=x.getChangeRange(this.currentFileScriptSnapshot);w=A7(this.currentSourceFile,x,D,g)}return w&&(this.currentFileVersion=D,this.currentFileName=e,this.currentFileScriptSnapshot=x,this.currentSourceFile=w),this.currentSourceFile}},F7={isCancellationRequested:df,throwIfCancellationRequested:Pr},j7=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=fa)==null||e.instant(fa.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new Sf}},B7=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){let e=da();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=fa)==null||e.instant(fa.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new Sf}},ag=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],U7=[...ag,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],G3(Bj())}}),Qj=()=>{},Yj=()=>{},Zj=()=>{},eB=()=>{},tB=()=>{},nB=()=>{},rB=()=>{},iB=()=>{},aB=()=>{},oB=()=>{},sB=()=>{},_B=()=>{},cB=()=>{},lB=()=>{},uB=()=>{},pB=()=>{},dB=()=>{},fB=()=>{},mB=()=>{},q7=Ht({"src/services/_namespaces/ts.ts"(){"use strict";En(),y7(),kj(),h7(),Aj(),g7(),Dj(),Pj(),Nj(),Ij(),Oj(),Mj(),Lj(),Jj(),$j(),Qj(),Yj(),Zj(),eB(),tB(),nB(),rB(),iB(),aB(),oB(),sB(),b7(),v7(),_B(),cB(),T7(),lB(),uB(),pB(),dB(),fB(),mB()}}),yB=()=>{},z7={};NC(z7,{ANONYMOUS:()=>ANONYMOUS,AccessFlags:()=>Fh,AssertionLevel:()=>_h,AssignmentDeclarationKind:()=>Kh,AssignmentKind:()=>z0,Associativity:()=>V0,BreakpointResolver:()=>ts_BreakpointResolver_exports,BuilderFileEmit:()=>BuilderFileEmit,BuilderProgramKind:()=>BuilderProgramKind,BuilderState:()=>BuilderState,BundleFileSectionKind:()=>f0,CallHierarchy:()=>ts_CallHierarchy_exports,CharacterCodes:()=>s0,CheckFlags:()=>Oh,CheckMode:()=>CheckMode,ClassificationType:()=>ClassificationType,ClassificationTypeNames:()=>ClassificationTypeNames,CommentDirectiveType:()=>yh,Comparison:()=>nh,CompletionInfoFlags:()=>CompletionInfoFlags,CompletionTriggerKind:()=>CompletionTriggerKind,Completions:()=>ts_Completions_exports,ConfigFileProgramReloadLevel:()=>ConfigFileProgramReloadLevel,ContextFlags:()=>wh,CoreServicesShimHostAdapter:()=>CoreServicesShimHostAdapter,Debug:()=>M,DiagnosticCategory:()=>Af,Diagnostics:()=>K,DocumentHighlights:()=>DocumentHighlights,ElementFlags:()=>Rh,EmitFlags:()=>Nf,EmitHint:()=>u0,EmitOnly:()=>bh,EndOfLineState:()=>EndOfLineState,EnumKind:()=>Ih,ExitStatus:()=>Th,ExportKind:()=>ExportKind,Extension:()=>_0,ExternalEmitHelpers:()=>l0,FileIncludeKind:()=>hh,FilePreprocessingDiagnosticsKind:()=>gh,FileSystemEntryKind:()=>FileSystemEntryKind,FileWatcherEventKind:()=>FileWatcherEventKind,FindAllReferences:()=>ts_FindAllReferences_exports,FlattenLevel:()=>FlattenLevel,FlowFlags:()=>ul,ForegroundColorEscapeSequences:()=>ForegroundColorEscapeSequences,FunctionFlags:()=>W0,GeneratedIdentifierFlags:()=>fh,GetLiteralTextFlags:()=>q0,GoToDefinition:()=>ts_GoToDefinition_exports,HighlightSpanKind:()=>HighlightSpanKind,ImportKind:()=>ImportKind,ImportsNotUsedAsValues:()=>t0,IndentStyle:()=>IndentStyle,IndexFlags:()=>jh,IndexKind:()=>qh,InferenceFlags:()=>Vh,InferencePriority:()=>Wh,InlayHintKind:()=>InlayHintKind,InlayHints:()=>ts_InlayHints_exports,InternalEmitFlags:()=>c0,InternalSymbolName:()=>Mh,InvalidatedProjectKind:()=>InvalidatedProjectKind,JsDoc:()=>ts_JsDoc_exports,JsTyping:()=>ts_JsTyping_exports,JsxEmit:()=>e0,JsxFlags:()=>dh,JsxReferenceKind:()=>Bh,LanguageServiceMode:()=>LanguageServiceMode,LanguageServiceShimHostAdapter:()=>LanguageServiceShimHostAdapter,LanguageVariant:()=>a0,LexicalEnvironmentFlags:()=>d0,ListFormat:()=>m0,LogLevel:()=>lh,MemberOverrideStatus:()=>xh,ModifierFlags:()=>Tf,ModuleDetectionKind:()=>Xh,ModuleInstanceState:()=>ModuleInstanceState,ModuleKind:()=>Zh,ModuleResolutionKind:()=>Gh,ModuleSpecifierEnding:()=>$0,NavigateTo:()=>ts_NavigateTo_exports,NavigationBar:()=>ts_NavigationBar_exports,NewLineKind:()=>n0,NodeBuilderFlags:()=>Eh,NodeCheckFlags:()=>Lh,NodeFactoryFlags:()=>Q0,NodeFlags:()=>vf,NodeResolutionFeatures:()=>NodeResolutionFeatures,ObjectFlags:()=>Cf,OperationCanceledException:()=>Sf,OperatorPrecedence:()=>H0,OrganizeImports:()=>ts_OrganizeImports_exports,OrganizeImportsMode:()=>OrganizeImportsMode,OuterExpressionKinds:()=>p0,OutliningElementsCollector:()=>ts_OutliningElementsCollector_exports,OutliningSpanKind:()=>OutliningSpanKind,OutputFileType:()=>OutputFileType,PackageJsonAutoImportPreference:()=>PackageJsonAutoImportPreference,PackageJsonDependencyGroup:()=>PackageJsonDependencyGroup,PatternMatchKind:()=>PatternMatchKind,PollingInterval:()=>PollingInterval,PollingWatchKind:()=>Yh,PragmaKindFlags:()=>y0,PrivateIdentifierKind:()=>PrivateIdentifierKind,ProcessLevel:()=>ProcessLevel,QuotePreference:()=>QuotePreference,RelationComparisonResult:()=>xf,Rename:()=>ts_Rename_exports,ScriptElementKind:()=>ScriptElementKind,ScriptElementKindModifier:()=>ScriptElementKindModifier,ScriptKind:()=>r0,ScriptSnapshot:()=>ScriptSnapshot,ScriptTarget:()=>i0,SemanticClassificationFormat:()=>SemanticClassificationFormat,SemanticMeaning:()=>SemanticMeaning,SemicolonPreference:()=>SemicolonPreference,SignatureCheckMode:()=>SignatureCheckMode,SignatureFlags:()=>kf,SignatureHelp:()=>ts_SignatureHelp_exports,SignatureKind:()=>Uh,SmartSelectionRange:()=>ts_SmartSelectionRange_exports,SnippetKind:()=>Pf,SortKind:()=>oh,StructureIsReused:()=>vh,SymbolAccessibility:()=>Ah,SymbolDisplay:()=>ts_SymbolDisplay_exports,SymbolDisplayPartKind:()=>SymbolDisplayPartKind,SymbolFlags:()=>wf,SymbolFormatFlags:()=>kh,SyntaxKind:()=>bf,SyntheticSymbolKind:()=>Dh,Ternary:()=>Hh,ThrottledCancellationToken:()=>B7,TokenClass:()=>TokenClass,TokenFlags:()=>mh,TransformFlags:()=>Df,TypeFacts:()=>TypeFacts,TypeFlags:()=>Ef,TypeFormatFlags:()=>Ch,TypeMapKind:()=>zh,TypePredicateKind:()=>Ph,TypeReferenceSerializationKind:()=>Nh,TypeScriptServicesFactory:()=>TypeScriptServicesFactory,UnionReduction:()=>Sh,UpToDateStatusType:()=>UpToDateStatusType,VarianceFlags:()=>Jh,Version:()=>Version,VersionRange:()=>VersionRange,WatchDirectoryFlags:()=>o0,WatchDirectoryKind:()=>Qh,WatchFileKind:()=>$h,WatchLogLevel:()=>WatchLogLevel,WatchType:()=>WatchType,accessPrivateIdentifier:()=>accessPrivateIdentifier,addEmitFlags:()=>addEmitFlags,addEmitHelper:()=>addEmitHelper,addEmitHelpers:()=>addEmitHelpers,addInternalEmitFlags:()=>addInternalEmitFlags,addNodeFactoryPatcher:()=>hL,addObjectAllocatorPatcher:()=>RO,addRange:()=>Mn,addRelatedInfo:()=>Xc,addSyntheticLeadingComment:()=>addSyntheticLeadingComment,addSyntheticTrailingComment:()=>addSyntheticTrailingComment,addToSeen:()=>wO,advancedAsyncSuperHelper:()=>advancedAsyncSuperHelper,affectsDeclarationPathOptionDeclarations:()=>affectsDeclarationPathOptionDeclarations,affectsEmitOptionDeclarations:()=>affectsEmitOptionDeclarations,allKeysStartWithDot:()=>allKeysStartWithDot,altDirectorySeparator:()=>Sg,and:()=>n5,append:()=>Tt,appendIfUnique:()=>qv,arrayFrom:()=>tm,arrayIsEqualTo:()=>s9,arrayIsHomogeneous:()=>zM,arrayIsSorted:()=>a9,arrayOf:()=>T9,arrayReverseIterator:()=>u9,arrayToMap:()=>S9,arrayToMultiMap:()=>Kv,arrayToNumericMap:()=>w9,arraysEqual:()=>Jv,assertType:()=>i5,assign:()=>x9,assignHelper:()=>assignHelper,asyncDelegator:()=>asyncDelegator,asyncGeneratorHelper:()=>asyncGeneratorHelper,asyncSuperHelper:()=>asyncSuperHelper,asyncValues:()=>asyncValues,attachFileToDiagnostics:()=>za,awaitHelper:()=>awaitHelper,awaiterHelper:()=>awaiterHelper,base64decode:()=>HI,base64encode:()=>VI,binarySearch:()=>El,binarySearchKey:()=>Vv,bindSourceFile:()=>bindSourceFile,breakIntoCharacterSpans:()=>breakIntoCharacterSpans,breakIntoWordSpans:()=>breakIntoWordSpans,buildLinkParts:()=>buildLinkParts,buildOpts:()=>buildOpts,buildOverload:()=>buildOverload,bundlerModuleNameResolver:()=>bundlerModuleNameResolver,canBeConvertedToAsync:()=>canBeConvertedToAsync,canHaveDecorators:()=>a7,canHaveExportModifier:()=>rL,canHaveFlowNode:()=>fN,canHaveIllegalDecorators:()=>MR,canHaveIllegalModifiers:()=>LR,canHaveIllegalType:()=>OR,canHaveIllegalTypeParameters:()=>n7,canHaveJSDoc:()=>Om,canHaveLocals:()=>bA,canHaveModifiers:()=>R_,canHaveSymbol:()=>gA,canJsonReportNoInputFiles:()=>canJsonReportNoInputFiles,canProduceDiagnostics:()=>canProduceDiagnostics,canUsePropertyAccess:()=>iL,canWatchAffectingLocation:()=>canWatchAffectingLocation,canWatchAtTypes:()=>canWatchAtTypes,canWatchDirectoryOrFile:()=>canWatchDirectoryOrFile,cartesianProduct:()=>o5,cast:()=>mi,chainBundle:()=>chainBundle,chainDiagnosticMessages:()=>Kc,changeAnyExtension:()=>fT,changeCompilerHostLikeToUseCache:()=>changeCompilerHostLikeToUseCache,changeExtension:()=>CM,changesAffectModuleResolution:()=>jA,changesAffectingProgramStructure:()=>BA,childIsDecorated:()=>l2,classElementOrClassElementParameterIsDecorated:()=>RP,classOrConstructorParameterIsDecorated:()=>JP,classPrivateFieldGetHelper:()=>classPrivateFieldGetHelper,classPrivateFieldInHelper:()=>classPrivateFieldInHelper,classPrivateFieldSetHelper:()=>classPrivateFieldSetHelper,classicNameResolver:()=>classicNameResolver,classifier:()=>ts_classifier_exports,cleanExtendedConfigCache:()=>cleanExtendedConfigCache,clear:()=>UC,clearMap:()=>gO,clearSharedExtendedConfigFileWatcher:()=>clearSharedExtendedConfigFileWatcher,climbPastPropertyAccess:()=>climbPastPropertyAccess,climbPastPropertyOrElementAccess:()=>climbPastPropertyOrElementAccess,clone:()=>k9,cloneCompilerOptions:()=>cloneCompilerOptions,closeFileWatcher:()=>uO,closeFileWatcherOf:()=>closeFileWatcherOf,codefix:()=>ts_codefix_exports,collapseTextChangeRangesAcrossMultipleVersions:()=>nk,collectExternalModuleInfo:()=>collectExternalModuleInfo,combine:()=>l9,combinePaths:()=>yn,commentPragmas:()=>om,commonOptionsWithBuild:()=>commonOptionsWithBuild,commonPackageFolders:()=>G0,compact:()=>_9,compareBooleans:()=>H9,compareDataObjects:()=>z3,compareDiagnostics:()=>q2,compareDiagnosticsSkipRelatedInformation:()=>Uf,compareEmitHelpers:()=>compareEmitHelpers,compareNumberOfDirectorySeparators:()=>EM,comparePaths:()=>I5,comparePathsCaseInsensitive:()=>N5,comparePathsCaseSensitive:()=>P5,comparePatternKeys:()=>comparePatternKeys,compareProperties:()=>V9,compareStringsCaseInsensitive:()=>rm,compareStringsCaseInsensitiveEslintCompatible:()=>q9,compareStringsCaseSensitive:()=>xi,compareStringsCaseSensitiveUI:()=>W9,compareTextSpans:()=>B9,compareValues:()=>wn,compileOnSaveCommandLineOption:()=>compileOnSaveCommandLineOption,compilerOptionsAffectDeclarationPath:()=>oM,compilerOptionsAffectEmit:()=>aM,compilerOptionsAffectSemanticDiagnostics:()=>iM,compilerOptionsDidYouMeanDiagnostics:()=>compilerOptionsDidYouMeanDiagnostics,compilerOptionsIndicateEsModules:()=>compilerOptionsIndicateEsModules,compose:()=>j9,computeCommonSourceDirectoryOfFilenames:()=>computeCommonSourceDirectoryOfFilenames,computeLineAndCharacterOfPosition:()=>Eg,computeLineOfPosition:()=>a_,computeLineStarts:()=>cm,computePositionOfLineAndCharacter:()=>wg,computeSignature:()=>computeSignature,computeSignatureWithDiagnostics:()=>computeSignatureWithDiagnostics,computeSuggestionDiagnostics:()=>computeSuggestionDiagnostics,concatenate:()=>d_,concatenateDiagnosticMessageChains:()=>UO,consumesNodeCoreModules:()=>consumesNodeCoreModules,contains:()=>ns,containsIgnoredPath:()=>vS,containsObjectRestOrSpread:()=>Wb,containsParseError:()=>ml,containsPath:()=>mT,convertCompilerOptionsForTelemetry:()=>convertCompilerOptionsForTelemetry,convertCompilerOptionsFromJson:()=>convertCompilerOptionsFromJson,convertJsonOption:()=>convertJsonOption,convertToBase64:()=>L3,convertToJson:()=>convertToJson,convertToObject:()=>convertToObject,convertToOptionsWithAbsolutePaths:()=>convertToOptionsWithAbsolutePaths,convertToRelativePath:()=>M5,convertToTSConfig:()=>convertToTSConfig,convertTypeAcquisitionFromJson:()=>convertTypeAcquisitionFromJson,copyComments:()=>copyComments,copyEntries:()=>WA,copyLeadingComments:()=>copyLeadingComments,copyProperties:()=>D9,copyTrailingAsLeadingComments:()=>copyTrailingAsLeadingComments,copyTrailingComments:()=>copyTrailingComments,couldStartTrivia:()=>q5,countWhere:()=>jC,createAbstractBuilder:()=>createAbstractBuilder,createAccessorPropertyBackingField:()=>dF,createAccessorPropertyGetRedirector:()=>fF,createAccessorPropertySetRedirector:()=>mF,createBaseNodeFactory:()=>YS,createBinaryExpressionTrampoline:()=>oF,createBindingHelper:()=>createBindingHelper,createBuildInfo:()=>createBuildInfo,createBuilderProgram:()=>createBuilderProgram,createBuilderProgramUsingProgramBuildInfo:()=>createBuilderProgramUsingProgramBuildInfo,createBuilderStatusReporter:()=>createBuilderStatusReporter,createCacheWithRedirects:()=>createCacheWithRedirects,createCacheableExportInfoMap:()=>createCacheableExportInfoMap,createCachedDirectoryStructureHost:()=>createCachedDirectoryStructureHost,createClassifier:()=>createClassifier,createCommentDirectivesMap:()=>mD,createCompilerDiagnostic:()=>al,createCompilerDiagnosticForInvalidCustomType:()=>createCompilerDiagnosticForInvalidCustomType,createCompilerDiagnosticFromMessageChain:()=>BO,createCompilerHost:()=>createCompilerHost,createCompilerHostFromProgramHost:()=>createCompilerHostFromProgramHost,createCompilerHostWorker:()=>createCompilerHostWorker,createDetachedDiagnostic:()=>No,createDiagnosticCollection:()=>YN,createDiagnosticForFileFromMessageChain:()=>HD,createDiagnosticForNode:()=>qD,createDiagnosticForNodeArray:()=>zD,createDiagnosticForNodeArrayFromMessageChain:()=>VD,createDiagnosticForNodeFromMessageChain:()=>WD,createDiagnosticForNodeInSourceFile:()=>s4,createDiagnosticForRange:()=>GD,createDiagnosticMessageChainFromDiagnostic:()=>KD,createDiagnosticReporter:()=>createDiagnosticReporter,createDocumentPositionMapper:()=>createDocumentPositionMapper,createDocumentRegistry:()=>createDocumentRegistry,createDocumentRegistryInternal:()=>createDocumentRegistryInternal,createEmitAndSemanticDiagnosticsBuilderProgram:()=>createEmitAndSemanticDiagnosticsBuilderProgram,createEmitHelperFactory:()=>createEmitHelperFactory,createEmptyExports:()=>sR,createExpressionForJsxElement:()=>cR,createExpressionForJsxFragment:()=>lR,createExpressionForObjectLiteralElementLike:()=>hR,createExpressionForPropertyName:()=>V8,createExpressionFromEntityName:()=>W8,createExternalHelpersImportDeclarationIfNeeded:()=>CR,createFileDiagnostic:()=>U2,createFileDiagnosticFromMessageChain:()=>t2,createForOfBindingStatement:()=>uR,createGetCanonicalFileName:()=>im,createGetSourceFile:()=>createGetSourceFile,createGetSymbolAccessibilityDiagnosticForNode:()=>createGetSymbolAccessibilityDiagnosticForNode,createGetSymbolAccessibilityDiagnosticForNodeName:()=>createGetSymbolAccessibilityDiagnosticForNodeName,createGetSymbolWalker:()=>createGetSymbolWalker,createIncrementalCompilerHost:()=>createIncrementalCompilerHost,createIncrementalProgram:()=>createIncrementalProgram,createInputFiles:()=>EL,createInputFilesWithFilePaths:()=>t8,createInputFilesWithFileTexts:()=>n8,createJsxFactoryExpression:()=>z8,createLanguageService:()=>qj,createLanguageServiceSourceFile:()=>Hb,createMemberAccessForPropertyName:()=>n1,createModeAwareCache:()=>createModeAwareCache,createModeAwareCacheKey:()=>createModeAwareCacheKey,createModuleNotFoundChain:()=>YA,createModuleResolutionCache:()=>createModuleResolutionCache,createModuleResolutionLoader:()=>createModuleResolutionLoader,createModuleSpecifierResolutionHost:()=>createModuleSpecifierResolutionHost,createMultiMap:()=>nm,createNodeConverters:()=>ZS,createNodeFactory:()=>Vf,createOptionNameMap:()=>createOptionNameMap,createOverload:()=>createOverload,createPackageJsonImportFilter:()=>createPackageJsonImportFilter,createPackageJsonInfo:()=>createPackageJsonInfo,createParenthesizerRules:()=>createParenthesizerRules,createPatternMatcher:()=>createPatternMatcher,createPrependNodes:()=>createPrependNodes,createPrinter:()=>createPrinter,createPrinterWithDefaults:()=>createPrinterWithDefaults,createPrinterWithRemoveComments:()=>createPrinterWithRemoveComments,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>createPrinterWithRemoveCommentsNeverAsciiEscape,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>createPrinterWithRemoveCommentsOmitTrailingSemicolon,createProgram:()=>createProgram,createProgramHost:()=>createProgramHost,createPropertyNameNodeForIdentifierOrLiteral:()=>eL,createQueue:()=>I9,createRange:()=>Bm,createRedirectedBuilderProgram:()=>createRedirectedBuilderProgram,createResolutionCache:()=>createResolutionCache,createRuntimeTypeSerializer:()=>createRuntimeTypeSerializer,createScanner:()=>as,createSemanticDiagnosticsBuilderProgram:()=>createSemanticDiagnosticsBuilderProgram,createSet:()=>O9,createSolutionBuilder:()=>createSolutionBuilder,createSolutionBuilderHost:()=>createSolutionBuilderHost,createSolutionBuilderWithWatch:()=>createSolutionBuilderWithWatch,createSolutionBuilderWithWatchHost:()=>createSolutionBuilderWithWatchHost,createSortedArray:()=>i9,createSourceFile:()=>c7,createSourceMapGenerator:()=>createSourceMapGenerator,createSourceMapSource:()=>CL,createSuperAccessVariableStatement:()=>createSuperAccessVariableStatement,createSymbolTable:()=>RA,createSymlinkCache:()=>uM,createSystemWatchFunctions:()=>createSystemWatchFunctions,createTextChange:()=>createTextChange,createTextChangeFromStartLength:()=>createTextChangeFromStartLength,createTextChangeRange:()=>pm,createTextRangeFromNode:()=>createTextRangeFromNode,createTextRangeFromSpan:()=>createTextRangeFromSpan,createTextSpan:()=>v_,createTextSpanFromBounds:()=>zi,createTextSpanFromNode:()=>createTextSpanFromNode,createTextSpanFromRange:()=>createTextSpanFromRange,createTextSpanFromStringLiteralLikeContent:()=>createTextSpanFromStringLiteralLikeContent,createTextWriter:()=>oI,createTokenRange:()=>QI,createTypeChecker:()=>createTypeChecker,createTypeReferenceDirectiveResolutionCache:()=>createTypeReferenceDirectiveResolutionCache,createTypeReferenceResolutionLoader:()=>createTypeReferenceResolutionLoader,createUnparsedSourceFile:()=>xL,createWatchCompilerHost:()=>createWatchCompilerHost2,createWatchCompilerHostOfConfigFile:()=>createWatchCompilerHostOfConfigFile,createWatchCompilerHostOfFilesAndCompilerOptions:()=>createWatchCompilerHostOfFilesAndCompilerOptions,createWatchFactory:()=>createWatchFactory,createWatchHost:()=>createWatchHost,createWatchProgram:()=>createWatchProgram,createWatchStatusReporter:()=>createWatchStatusReporter,createWriteFileMeasuringIO:()=>createWriteFileMeasuringIO,declarationNameToString:()=>o4,decodeMappings:()=>decodeMappings,decodedTextSpanIntersectsWith:()=>Dg,decorateHelper:()=>decorateHelper,deduplicate:()=>Bv,defaultIncludeSpec:()=>defaultIncludeSpec,defaultInitCompilerOptions:()=>defaultInitCompilerOptions,defaultMaximumTruncationLength:()=>PS,detectSortCaseSensitivity:()=>o9,diagnosticCategoryName:()=>v5,diagnosticToString:()=>diagnosticToString,directoryProbablyExists:()=>R3,directorySeparator:()=>_r,displayPart:()=>displayPart,displayPartsToString:()=>Uj,disposeEmitNodes:()=>disposeEmitNodes,documentSpansEqual:()=>documentSpansEqual,dumpTracingLegend:()=>dumpTracingLegend,elementAt:()=>sT,elideNodes:()=>cF,emitComments:()=>v3,emitDetachedComments:()=>wI,emitFiles:()=>emitFiles,emitFilesAndReportErrors:()=>emitFilesAndReportErrors,emitFilesAndReportErrorsAndGetExitStatus:()=>emitFilesAndReportErrorsAndGetExitStatus,emitModuleKindIsNonNodeESM:()=>VO,emitNewLineBeforeLeadingCommentOfPosition:()=>SI,emitNewLineBeforeLeadingComments:()=>g3,emitNewLineBeforeLeadingCommentsOfPosition:()=>b3,emitSkippedWithNoDiagnostics:()=>emitSkippedWithNoDiagnostics,emitUsingBuildInfo:()=>emitUsingBuildInfo,emptyArray:()=>Xe,emptyFileSystemEntries:()=>QS,emptyMap:()=>mg,emptyOptions:()=>emptyOptions,emptySet:()=>oT,endsWith:()=>rs,ensurePathIsNonModuleName:()=>bg,ensureScriptKind:()=>sS,ensureTrailingDirectorySeparator:()=>Ko,entityNameToString:()=>hi,enumerateInsertsAndDeletes:()=>a5,equalOwnProperties:()=>Hv,equateStringsCaseInsensitive:()=>i_,equateStringsCaseSensitive:()=>Cl,equateValues:()=>to,esDecorateHelper:()=>esDecorateHelper,escapeJsxAttributeString:()=>o3,escapeLeadingUnderscores:()=>Ur,escapeNonAsciiString:()=>jf,escapeSnippetText:()=>ZM,escapeString:()=>Ff,every:()=>eo,expandPreOrPostfixIncrementOrDecrementExpression:()=>gR,explainFiles:()=>explainFiles,explainIfFileIsRedirectAndImpliedFormat:()=>explainIfFileIsRedirectAndImpliedFormat,exportAssignmentIsAlias:()=>I0,exportStarHelper:()=>exportStarHelper,expressionResultIsUnused:()=>KM,extend:()=>A9,extendsHelper:()=>extendsHelper,extensionFromPath:()=>Gc,extensionIsTS:()=>mS,extensionsNotSupportingExtensionlessResolution:()=>Wm,externalHelpersModuleNameText:()=>zm,factory:()=>Ar,fileExtensionIs:()=>Ea,fileExtensionIsOneOf:()=>Wr,fileIncludeReasonToDiagnostics:()=>fileIncludeReasonToDiagnostics,fileShouldUseJavaScriptRequire:()=>fileShouldUseJavaScriptRequire,filter:()=>Gn,filterMutate:()=>BC,filterSemanticDiagnostics:()=>filterSemanticDiagnostics,find:()=>$n,findAncestor:()=>Xr,findBestPatternMatch:()=>nT,findChildOfKind:()=>findChildOfKind,findComputedPropertyNameCacheAssignment:()=>yF,findConfigFile:()=>findConfigFile,findContainingList:()=>findContainingList,findDiagnosticForNode:()=>findDiagnosticForNode,findFirstNonJsxWhitespaceToken:()=>findFirstNonJsxWhitespaceToken,findIndex:()=>el,findLast:()=>sg,findLastIndex:()=>RC,findListItemInfo:()=>findListItemInfo,findMap:()=>FC,findModifier:()=>findModifier,findNextToken:()=>findNextToken,findPackageJson:()=>findPackageJson,findPackageJsons:()=>findPackageJsons,findPrecedingMatchingToken:()=>findPrecedingMatchingToken,findPrecedingToken:()=>findPrecedingToken,findSuperStatementIndex:()=>findSuperStatementIndex,findTokenOnLeftOfPosition:()=>findTokenOnLeftOfPosition,findUseStrictPrologue:()=>K8,first:()=>cg,firstDefined:()=>og,firstDefinedIterator:()=>MC,firstIterator:()=>f9,firstOrOnly:()=>firstOrOnly,firstOrUndefined:()=>f_,firstOrUndefinedIterator:()=>d9,fixupCompilerOptions:()=>fixupCompilerOptions,flatMap:()=>Wo,flatMapIterator:()=>WC,flatMapToMutable:()=>Fv,flatten:()=>r_,flattenCommaList:()=>gF,flattenDestructuringAssignment:()=>flattenDestructuringAssignment,flattenDestructuringBinding:()=>flattenDestructuringBinding,flattenDiagnosticMessageText:()=>flattenDiagnosticMessageText,forEach:()=>hn,forEachAncestor:()=>UA,forEachAncestorDirectory:()=>hT,forEachChild:()=>qt,forEachChildRecursively:()=>rg,forEachEmittedFile:()=>forEachEmittedFile,forEachEnclosingBlockScopeContainer:()=>FD,forEachEntry:()=>qA,forEachExternalModuleToImportFrom:()=>forEachExternalModuleToImportFrom,forEachImportClauseDeclaration:()=>cN,forEachKey:()=>zA,forEachLeadingCommentRange:()=>z5,forEachNameInAccessChainWalkingLeft:()=>DO,forEachPropertyAssignment:()=>_2,forEachResolvedProjectReference:()=>forEachResolvedProjectReference,forEachReturnStatement:()=>aP,forEachRight:()=>OC,forEachTrailingCommentRange:()=>W5,forEachTsConfigPropArray:()=>f4,forEachUnique:()=>forEachUnique,forEachYieldExpression:()=>oP,forSomeAncestorDirectory:()=>TO,formatColorAndReset:()=>formatColorAndReset,formatDiagnostic:()=>formatDiagnostic,formatDiagnostics:()=>formatDiagnostics,formatDiagnosticsWithColorAndContext:()=>formatDiagnosticsWithColorAndContext,formatGeneratedName:()=>Gf,formatGeneratedNamePart:()=>ng,formatLocation:()=>formatLocation,formatMessage:()=>jO,formatStringFromArgs:()=>C_,formatting:()=>ts_formatting_exports,fullTripleSlashAMDReferencePathRegEx:()=>tb,fullTripleSlashReferencePathRegEx:()=>eb,generateDjb2Hash:()=>generateDjb2Hash,generateTSConfig:()=>generateTSConfig,generatorHelper:()=>generatorHelper,getAdjustedReferenceLocation:()=>getAdjustedReferenceLocation,getAdjustedRenameLocation:()=>getAdjustedRenameLocation,getAliasDeclarationFromName:()=>z4,getAllAccessorDeclarations:()=>O2,getAllDecoratorsOfClass:()=>getAllDecoratorsOfClass,getAllDecoratorsOfClassElement:()=>getAllDecoratorsOfClassElement,getAllJSDocTags:()=>dx,getAllJSDocTagsOfKind:()=>gk,getAllKeys:()=>b9,getAllProjectOutputs:()=>getAllProjectOutputs,getAllSuperTypeNodes:()=>G4,getAllUnscopedEmitHelpers:()=>getAllUnscopedEmitHelpers,getAllowJSCompilerOption:()=>rS,getAllowSyntheticDefaultImports:()=>QO,getAncestor:()=>NN,getAnyExtensionFromPath:()=>If,getAreDeclarationMapsEnabled:()=>$O,getAssignedExpandoInitializer:()=>QP,getAssignedName:()=>QT,getAssignmentDeclarationKind:()=>Ca,getAssignmentDeclarationPropertyAccessKind:()=>A4,getAssignmentTargetKind:()=>F4,getAutomaticTypeDirectiveNames:()=>getAutomaticTypeDirectiveNames,getBaseFileName:()=>h_,getBinaryOperatorPrecedence:()=>il,getBuildInfo:()=>getBuildInfo,getBuildInfoFileVersionMap:()=>getBuildInfoFileVersionMap,getBuildInfoText:()=>getBuildInfoText,getBuildOrderFromAnyBuildOrder:()=>getBuildOrderFromAnyBuildOrder,getBuilderCreationParameters:()=>getBuilderCreationParameters,getBuilderFileEmit:()=>getBuilderFileEmit,getCheckFlags:()=>q3,getClassExtendsHeritageElement:()=>H4,getClassLikeDeclarationOfSymbol:()=>V3,getCombinedLocalAndExportSymbolFlags:()=>fO,getCombinedModifierFlags:()=>dm,getCombinedNodeFlags:()=>fm,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>ik,getCommentRange:()=>getCommentRange,getCommonSourceDirectory:()=>getCommonSourceDirectory,getCommonSourceDirectoryOfConfig:()=>getCommonSourceDirectoryOfConfig,getCompilerOptionValue:()=>U0,getCompilerOptionsDiffValue:()=>getCompilerOptionsDiffValue,getConditions:()=>getConditions,getConfigFileParsingDiagnostics:()=>getConfigFileParsingDiagnostics,getConstantValue:()=>getConstantValue,getContainerNode:()=>getContainerNode,getContainingClass:()=>xP,getContainingClassStaticBlock:()=>SP,getContainingFunction:()=>vP,getContainingFunctionDeclaration:()=>TP,getContainingFunctionOrClassStaticBlock:()=>wP,getContainingNodeArray:()=>GM,getContainingObjectLiteralElement:()=>D7,getContextualTypeFromParent:()=>getContextualTypeFromParent,getContextualTypeFromParentOrAncestorTypeNode:()=>getContextualTypeFromParentOrAncestorTypeNode,getCurrentTime:()=>getCurrentTime,getDeclarationDiagnostics:()=>getDeclarationDiagnostics,getDeclarationEmitExtensionForPath:()=>u3,getDeclarationEmitOutputFilePath:()=>lI,getDeclarationEmitOutputFilePathWorker:()=>l3,getDeclarationFromName:()=>kN,getDeclarationModifierFlagsFromSymbol:()=>pO,getDeclarationOfKind:()=>LA,getDeclarationsOfKind:()=>JA,getDeclaredExpandoInitializer:()=>XP,getDecorators:()=>ok,getDefaultCompilerOptions:()=>E7,getDefaultExportInfoWorker:()=>getDefaultExportInfoWorker,getDefaultFormatCodeSettings:()=>getDefaultFormatCodeSettings,getDefaultLibFileName:()=>FT,getDefaultLibFilePath:()=>Xj,getDefaultLikeExportInfo:()=>getDefaultLikeExportInfo,getDiagnosticText:()=>getDiagnosticText,getDiagnosticsWithinSpan:()=>getDiagnosticsWithinSpan,getDirectoryPath:()=>Hi,getDirectoryToWatchFailedLookupLocation:()=>getDirectoryToWatchFailedLookupLocation,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>getDirectoryToWatchFailedLookupLocationFromTypeRoot,getDocumentPositionMapper:()=>getDocumentPositionMapper,getESModuleInterop:()=>W2,getEditsForFileRename:()=>getEditsForFileRename,getEffectiveBaseTypeNode:()=>V4,getEffectiveConstraintOfTypeParameter:()=>xk,getEffectiveContainerForJSDocTemplateTag:()=>yN,getEffectiveImplementsTypeNodes:()=>K4,getEffectiveInitializer:()=>w4,getEffectiveJSDocHost:()=>v2,getEffectiveModifierFlags:()=>Fm,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>C3,getEffectiveModifierFlagsNoCache:()=>A3,getEffectiveReturnTypeNode:()=>vI,getEffectiveSetAccessorTypeAnnotationNode:()=>xI,getEffectiveTypeAnnotationNode:()=>M2,getEffectiveTypeParameterDeclarations:()=>Tk,getEffectiveTypeRoots:()=>getEffectiveTypeRoots,getElementOrPropertyAccessArgumentExpressionOrName:()=>Im,getElementOrPropertyAccessName:()=>Ya,getElementsOfBindingOrAssignmentPattern:()=>t7,getEmitDeclarations:()=>H2,getEmitFlags:()=>Vr,getEmitHelpers:()=>getEmitHelpers,getEmitModuleDetectionKind:()=>tS,getEmitModuleKind:()=>Gr,getEmitModuleResolutionKind:()=>A_,getEmitScriptTarget:()=>Um,getEnclosingBlockScopeContainer:()=>C0,getEncodedSemanticClassifications:()=>getEncodedSemanticClassifications,getEncodedSyntacticClassifications:()=>getEncodedSyntacticClassifications,getEndLinePosition:()=>Kx,getEntityNameFromTypeNode:()=>MP,getEntrypointsFromPackageJsonInfo:()=>getEntrypointsFromPackageJsonInfo,getErrorCountForSummary:()=>getErrorCountForSummary,getErrorSpanForNode:()=>n2,getErrorSummaryText:()=>getErrorSummaryText,getEscapedTextOfIdentifierOrLiteral:()=>Z4,getEscapedTextOfJsxAttributeName:()=>cL,getEscapedTextOfJsxNamespacedName:()=>Ul,getExpandoInitializer:()=>x_,getExportAssignmentExpression:()=>W4,getExportInfoMap:()=>getExportInfoMap,getExportNeedsImportStarHelper:()=>getExportNeedsImportStarHelper,getExpressionAssociativity:()=>XN,getExpressionPrecedence:()=>$N,getExternalHelpersModuleName:()=>$8,getExternalModuleImportEqualsDeclarationExpression:()=>jP,getExternalModuleName:()=>h2,getExternalModuleNameFromDeclaration:()=>_I,getExternalModuleNameFromPath:()=>D2,getExternalModuleNameLiteral:()=>AR,getExternalModuleRequireArgument:()=>BP,getFallbackOptions:()=>getFallbackOptions,getFileEmitOutput:()=>getFileEmitOutput,getFileMatcherPatterns:()=>oS,getFileNamesFromConfigSpecs:()=>getFileNamesFromConfigSpecs,getFileWatcherEventKind:()=>getFileWatcherEventKind,getFilesInErrorForSummary:()=>getFilesInErrorForSummary,getFirstConstructorWithBody:()=>f3,getFirstIdentifier:()=>LI,getFirstNonSpaceCharacterPosition:()=>getFirstNonSpaceCharacterPosition,getFirstProjectOutput:()=>getFirstProjectOutput,getFixableErrorSpanExpression:()=>getFixableErrorSpanExpression,getFormatCodeSettingsForWriting:()=>getFormatCodeSettingsForWriting,getFullWidth:()=>Em,getFunctionFlags:()=>RN,getHeritageClause:()=>Mm,getHostSignatureFromJSDoc:()=>b2,getIdentifierAutoGenerate:()=>getIdentifierAutoGenerate,getIdentifierGeneratedImportReference:()=>getIdentifierGeneratedImportReference,getIdentifierTypeArguments:()=>getIdentifierTypeArguments,getImmediatelyInvokedFunctionExpression:()=>DP,getImpliedNodeFormatForFile:()=>getImpliedNodeFormatForFile,getImpliedNodeFormatForFileWorker:()=>getImpliedNodeFormatForFileWorker,getImportNeedsImportDefaultHelper:()=>getImportNeedsImportDefaultHelper,getImportNeedsImportStarHelper:()=>getImportNeedsImportStarHelper,getIndentSize:()=>Bo,getIndentString:()=>k2,getInferredLibraryNameResolveFrom:()=>getInferredLibraryNameResolveFrom,getInitializedVariables:()=>cO,getInitializerOfBinaryExpression:()=>D4,getInitializerOfBindingOrAssignmentElement:()=>Z8,getInterfaceBaseTypeNodes:()=>X4,getInternalEmitFlags:()=>vD,getInvokedExpression:()=>LP,getIsolatedModules:()=>z2,getJSDocAugmentsTag:()=>rx,getJSDocClassTag:()=>_k,getJSDocCommentRanges:()=>l4,getJSDocCommentsAndTags:()=>L4,getJSDocDeprecatedTag:()=>dk,getJSDocDeprecatedTagNoCache:()=>lx,getJSDocEnumTag:()=>fk,getJSDocHost:()=>R4,getJSDocImplementsTags:()=>ix,getJSDocOverrideTagNoCache:()=>cx,getJSDocParameterTags:()=>hm,getJSDocParameterTagsNoCache:()=>ZT,getJSDocPrivateTag:()=>lk,getJSDocPrivateTagNoCache:()=>ox,getJSDocProtectedTag:()=>uk,getJSDocProtectedTagNoCache:()=>sx,getJSDocPublicTag:()=>ck,getJSDocPublicTagNoCache:()=>ax,getJSDocReadonlyTag:()=>pk,getJSDocReadonlyTagNoCache:()=>_x,getJSDocReturnTag:()=>ux,getJSDocReturnType:()=>px,getJSDocRoot:()=>T2,getJSDocSatisfiesExpressionType:()=>_L,getJSDocSatisfiesTag:()=>Ng,getJSDocTags:()=>Il,getJSDocTagsNoCache:()=>hk,getJSDocTemplateTag:()=>yk,getJSDocThisTag:()=>mk,getJSDocType:()=>bm,getJSDocTypeAliasName:()=>tg,getJSDocTypeAssertionType:()=>xR,getJSDocTypeParameterDeclarations:()=>h3,getJSDocTypeParameterTags:()=>tx,getJSDocTypeParameterTagsNoCache:()=>nx,getJSDocTypeTag:()=>gm,getJSXImplicitImportBase:()=>_M,getJSXRuntimeImport:()=>cM,getJSXTransformEnabled:()=>sM,getKeyForCompilerOptions:()=>getKeyForCompilerOptions,getLanguageVariant:()=>B0,getLastChild:()=>H3,getLeadingCommentRanges:()=>Go,getLeadingCommentRangesOfNode:()=>rP,getLeftmostAccessExpression:()=>B2,getLeftmostExpression:()=>PO,getLineAndCharacterOfPosition:()=>Xa,getLineInfo:()=>getLineInfo,getLineOfLocalPosition:()=>yI,getLineOfLocalPositionFromLineMap:()=>ya,getLineStartPositionForPosition:()=>getLineStartPositionForPosition,getLineStarts:()=>xa,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>oO,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>aO,getLinesBetweenPositions:()=>b_,getLinesBetweenRangeEndAndRangeStart:()=>nO,getLinesBetweenRangeEndPositions:()=>rO,getLiteralText:()=>TD,getLocalNameForExternalImport:()=>kR,getLocalSymbolForExportDefault:()=>BI,getLocaleSpecificMessage:()=>k_,getLocaleTimeString:()=>getLocaleTimeString,getMappedContextSpan:()=>getMappedContextSpan,getMappedDocumentSpan:()=>getMappedDocumentSpan,getMappedLocation:()=>getMappedLocation,getMatchedFileSpec:()=>getMatchedFileSpec,getMatchedIncludeSpec:()=>getMatchedIncludeSpec,getMeaningFromDeclaration:()=>getMeaningFromDeclaration,getMeaningFromLocation:()=>getMeaningFromLocation,getMembersOfDeclaration:()=>_P,getModeForFileReference:()=>getModeForFileReference,getModeForResolutionAtIndex:()=>getModeForResolutionAtIndex,getModeForUsageLocation:()=>getModeForUsageLocation,getModifiedTime:()=>getModifiedTime,getModifiers:()=>Mf,getModuleInstanceState:()=>getModuleInstanceState,getModuleNameStringLiteralAt:()=>getModuleNameStringLiteralAt,getModuleSpecifierEndingPreference:()=>xM,getModuleSpecifierResolverHost:()=>getModuleSpecifierResolverHost,getNameForExportedSymbol:()=>getNameForExportedSymbol,getNameFromIndexInfo:()=>jD,getNameFromPropertyName:()=>getNameFromPropertyName,getNameOfAccessExpression:()=>CO,getNameOfCompilerOptionValue:()=>getNameOfCompilerOptionValue,getNameOfDeclaration:()=>Nl,getNameOfExpando:()=>eN,getNameOfJSDocTypedef:()=>$T,getNameOrArgument:()=>k4,getNameTable:()=>zj,getNamesForExportedSymbol:()=>getNamesForExportedSymbol,getNamespaceDeclarationNode:()=>N4,getNewLineCharacter:()=>F3,getNewLineKind:()=>getNewLineKind,getNewLineOrDefaultFromHost:()=>getNewLineOrDefaultFromHost,getNewTargetContainer:()=>kP,getNextJSDocCommentLocation:()=>J4,getNodeForGeneratedName:()=>lF,getNodeId:()=>getNodeId,getNodeKind:()=>getNodeKind,getNodeModifiers:()=>getNodeModifiers,getNodeModulePathParts:()=>tL,getNonAssignedNameOfDeclaration:()=>ym,getNonAssignmentOperatorForCompoundAssignment:()=>getNonAssignmentOperatorForCompoundAssignment,getNonAugmentationDeclaration:()=>r4,getNonDecoratorTokenPosOfNode:()=>yD,getNormalizedAbsolutePath:()=>Ta,getNormalizedAbsolutePathWithoutRoot:()=>D5,getNormalizedPathComponents:()=>_m,getObjectFlags:()=>tf,getOperator:()=>C2,getOperatorAssociativity:()=>n3,getOperatorPrecedence:()=>r3,getOptionFromName:()=>getOptionFromName,getOptionsForLibraryResolution:()=>getOptionsForLibraryResolution,getOptionsNameMap:()=>getOptionsNameMap,getOrCreateEmitNode:()=>getOrCreateEmitNode,getOrCreateExternalHelpersModuleNameIfNeeded:()=>Q8,getOrUpdate:()=>GC,getOriginalNode:()=>Dl,getOriginalNodeId:()=>getOriginalNodeId,getOriginalSourceFile:()=>GN,getOutputDeclarationFileName:()=>getOutputDeclarationFileName,getOutputExtension:()=>getOutputExtension,getOutputFileNames:()=>getOutputFileNames,getOutputPathsFor:()=>getOutputPathsFor,getOutputPathsForBundle:()=>getOutputPathsForBundle,getOwnEmitOutputFilePath:()=>cI,getOwnKeys:()=>lg,getOwnValues:()=>v9,getPackageJsonInfo:()=>getPackageJsonInfo,getPackageJsonTypesVersionsPaths:()=>getPackageJsonTypesVersionsPaths,getPackageJsonsVisibleToFile:()=>getPackageJsonsVisibleToFile,getPackageNameFromTypesPackageName:()=>getPackageNameFromTypesPackageName,getPackageScopeForPath:()=>getPackageScopeForPath,getParameterSymbolFromJSDoc:()=>mN,getParameterTypeNode:()=>nL,getParentNodeInSpan:()=>getParentNodeInSpan,getParseTreeNode:()=>Pl,getParsedCommandLineOfConfigFile:()=>getParsedCommandLineOfConfigFile,getPathComponents:()=>wi,getPathComponentsRelativeTo:()=>Tg,getPathFromPathComponents:()=>Vo,getPathUpdater:()=>getPathUpdater,getPathsBasePath:()=>pI,getPatternFromSpec:()=>hM,getPendingEmitKind:()=>getPendingEmitKind,getPositionOfLineAndCharacter:()=>B5,getPossibleGenericSignatures:()=>getPossibleGenericSignatures,getPossibleOriginalInputExtensionForExtension:()=>uI,getPossibleTypeArgumentsInfo:()=>getPossibleTypeArgumentsInfo,getPreEmitDiagnostics:()=>getPreEmitDiagnostics,getPrecedingNonSpaceCharacterPosition:()=>getPrecedingNonSpaceCharacterPosition,getPrivateIdentifier:()=>getPrivateIdentifier,getProperties:()=>getProperties,getProperty:()=>g9,getPropertyArrayElementValue:()=>gP,getPropertyAssignmentAliasLikeExpression:()=>PN,getPropertyNameForPropertyNameNode:()=>Jf,getPropertyNameForUniqueESSymbol:()=>jN,getPropertyNameOfBindingOrAssignmentElement:()=>IR,getPropertySymbolFromBindingElement:()=>getPropertySymbolFromBindingElement,getPropertySymbolsFromContextualType:()=>P7,getQuoteFromPreference:()=>getQuoteFromPreference,getQuotePreference:()=>getQuotePreference,getRangesWhere:()=>ZC,getRefactorContextSpan:()=>getRefactorContextSpan,getReferencedFileLocation:()=>getReferencedFileLocation,getRegexFromPattern:()=>rf,getRegularExpressionForWildcard:()=>nf,getRegularExpressionsForWildcards:()=>G2,getRelativePathFromDirectory:()=>yT,getRelativePathFromFile:()=>L5,getRelativePathToDirectoryOrUrl:()=>xg,getRenameLocation:()=>getRenameLocation,getReplacementSpanForContextToken:()=>getReplacementSpanForContextToken,getResolutionDiagnostic:()=>getResolutionDiagnostic,getResolutionModeOverrideForClause:()=>getResolutionModeOverrideForClause,getResolveJsonModule:()=>nS,getResolvePackageJsonExports:()=>ZO,getResolvePackageJsonImports:()=>eM,getResolvedExternalModuleName:()=>c3,getResolvedModule:()=>HA,getResolvedTypeReferenceDirective:()=>XA,getRestIndicatorOfBindingOrAssignmentElement:()=>NR,getRestParameterElementType:()=>sP,getRightMostAssignedExpression:()=>d2,getRootDeclaration:()=>Lm,getRootDirectoryOfResolutionCache:()=>getRootDirectoryOfResolutionCache,getRootLength:()=>Si,getRootPathSplitLength:()=>getRootPathSplitLength,getScriptKind:()=>getScriptKind,getScriptKindFromFileName:()=>_S,getScriptTargetFeatures:()=>getScriptTargetFeatures,getSelectedEffectiveModifierFlags:()=>w3,getSelectedSyntacticModifierFlags:()=>E3,getSemanticClassifications:()=>getSemanticClassifications,getSemanticJsxChildren:()=>QN,getSetAccessorTypeAnnotationNode:()=>hI,getSetAccessorValueParameter:()=>I2,getSetExternalModuleIndicator:()=>eS,getShebang:()=>CT,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>g2,getSingleVariableOfVariableStatement:()=>hl,getSnapshotText:()=>getSnapshotText,getSnippetElement:()=>getSnippetElement,getSourceFileOfModule:()=>iD,getSourceFileOfNode:()=>Kr,getSourceFilePathInNewDir:()=>p3,getSourceFilePathInNewDirWorker:()=>N2,getSourceFileVersionAsHashFromText:()=>getSourceFileVersionAsHashFromText,getSourceFilesToEmit:()=>dI,getSourceMapRange:()=>getSourceMapRange,getSourceMapper:()=>getSourceMapper,getSourceTextOfNodeFromSourceFile:()=>Yo,getSpanOfTokenAtPosition:()=>Gs,getSpellingSuggestion:()=>Zv,getStartPositionOfLine:()=>sD,getStartPositionOfRange:()=>l_,getStartsOnNewLine:()=>getStartsOnNewLine,getStaticPropertiesAndClassStaticBlock:()=>getStaticPropertiesAndClassStaticBlock,getStrictOptionValue:()=>K2,getStringComparer:()=>ug,getSuperCallFromStatement:()=>getSuperCallFromStatement,getSuperContainer:()=>AP,getSupportedCodeFixes:()=>C7,getSupportedExtensions:()=>cS,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>lS,getSwitchedType:()=>getSwitchedType,getSymbolId:()=>getSymbolId,getSymbolNameForPrivateIdentifier:()=>BN,getSymbolTarget:()=>getSymbolTarget,getSyntacticClassifications:()=>getSyntacticClassifications,getSyntacticModifierFlags:()=>R2,getSyntacticModifierFlagsNoCache:()=>F2,getSynthesizedDeepClone:()=>getSynthesizedDeepClone,getSynthesizedDeepCloneWithReplacements:()=>getSynthesizedDeepCloneWithReplacements,getSynthesizedDeepClones:()=>getSynthesizedDeepClones,getSynthesizedDeepClonesWithReplacements:()=>getSynthesizedDeepClonesWithReplacements,getSyntheticLeadingComments:()=>getSyntheticLeadingComments,getSyntheticTrailingComments:()=>getSyntheticTrailingComments,getTargetLabel:()=>getTargetLabel,getTargetOfBindingOrAssignmentElement:()=>Fo,getTemporaryModuleResolutionState:()=>getTemporaryModuleResolutionState,getTextOfConstantValue:()=>SD,getTextOfIdentifierOrLiteral:()=>Rf,getTextOfJSDocComment:()=>bk,getTextOfJsxAttributeName:()=>lL,getTextOfJsxNamespacedName:()=>ql,getTextOfNode:()=>Cm,getTextOfNodeFromSourceText:()=>Ys,getTextOfPropertyName:()=>UD,getThisContainer:()=>c2,getThisParameter:()=>m3,getTokenAtPosition:()=>getTokenAtPosition,getTokenPosOfNode:()=>Qo,getTokenSourceMapRange:()=>getTokenSourceMapRange,getTouchingPropertyName:()=>getTouchingPropertyName,getTouchingToken:()=>getTouchingToken,getTrailingCommentRanges:()=>ET,getTrailingSemicolonDeferringWriter:()=>sI,getTransformFlagsSubtreeExclusions:()=>e8,getTransformers:()=>getTransformers,getTsBuildInfoEmitOutputFilePath:()=>getTsBuildInfoEmitOutputFilePath,getTsConfigObjectLiteralExpression:()=>d4,getTsConfigPropArrayElementValue:()=>bP,getTypeAnnotationNode:()=>bI,getTypeArgumentOrTypeParameterList:()=>getTypeArgumentOrTypeParameterList,getTypeKeywordOfTypeOnlyImport:()=>getTypeKeywordOfTypeOnlyImport,getTypeNode:()=>getTypeNode,getTypeNodeIfAccessible:()=>getTypeNodeIfAccessible,getTypeParameterFromJsDoc:()=>hN,getTypeParameterOwner:()=>rk,getTypesPackageName:()=>getTypesPackageName,getUILocale:()=>z9,getUniqueName:()=>getUniqueName,getUniqueSymbolId:()=>getUniqueSymbolId,getUseDefineForClassFields:()=>rM,getWatchErrorSummaryDiagnosticMessage:()=>getWatchErrorSummaryDiagnosticMessage,getWatchFactory:()=>getWatchFactory,group:()=>E9,groupBy:()=>C9,guessIndentation:()=>IA,handleNoEmitOptions:()=>handleNoEmitOptions,hasAbstractModifier:()=>T3,hasAccessorModifier:()=>S3,hasAmbientModifier:()=>x3,hasChangesInResolutions:()=>nD,hasChildOfKind:()=>hasChildOfKind,hasContextSensitiveParameters:()=>XM,hasDecorators:()=>gl,hasDocComment:()=>hasDocComment,hasDynamicName:()=>Y4,hasEffectiveModifier:()=>L2,hasEffectiveModifiers:()=>kI,hasEffectiveReadonlyModifier:()=>J0,hasExtension:()=>dT,hasIndexSignature:()=>hasIndexSignature,hasInitializer:()=>zx,hasInvalidEscape:()=>i3,hasJSDocNodes:()=>Ui,hasJSDocParameterTags:()=>sk,hasJSFileExtension:()=>X2,hasJsonModuleEmitEnabled:()=>HO,hasOnlyExpressionInitializer:()=>PA,hasOverrideModifier:()=>DI,hasPossibleExternalModuleReference:()=>RD,hasProperty:()=>Xn,hasPropertyAccessExpressionWithName:()=>hasPropertyAccessExpressionWithName,hasQuestionToken:()=>lN,hasRecordedExternalHelpers:()=>ER,hasRestParameter:()=>OA,hasScopeMarker:()=>oA,hasStaticModifier:()=>Rm,hasSyntacticModifier:()=>gn,hasSyntacticModifiers:()=>AI,hasTSFileExtension:()=>$2,hasTabstop:()=>CS,hasTrailingDirectorySeparator:()=>sm,hasType:()=>DA,hasTypeArguments:()=>gN,hasZeroOrOneAsteriskCharacter:()=>lM,helperString:()=>helperString,hostGetCanonicalFileName:()=>_3,hostUsesCaseSensitiveFileNames:()=>A2,idText:()=>Ot,identifierIsThisKeyword:()=>y3,identifierToKeywordKind:()=>KT,identity:()=>ht,identitySourceMapConsumer:()=>identitySourceMapConsumer,ignoreSourceNewlines:()=>ignoreSourceNewlines,ignoredPaths:()=>ignoredPaths,importDefaultHelper:()=>importDefaultHelper,importFromModuleSpecifier:()=>_N,importNameElisionDisabled:()=>KO,importStarHelper:()=>importStarHelper,indexOfAnyCharCode:()=>Rv,indexOfNode:()=>bD,indicesOf:()=>_g,inferredTypesContainingFile:()=>inferredTypesContainingFile,insertImports:()=>insertImports,insertLeadingStatement:()=>pR,insertSorted:()=>cl,insertStatementAfterCustomPrologue:()=>dD,insertStatementAfterStandardPrologue:()=>pD,insertStatementsAfterCustomPrologue:()=>uD,insertStatementsAfterStandardPrologue:()=>lD,intersperse:()=>JC,intrinsicTagNameToString:()=>pL,introducesArgumentsExoticObject:()=>pP,inverseJsxOptionMap:()=>inverseJsxOptionMap,isAbstractConstructorSymbol:()=>vO,isAbstractModifier:()=>VL,isAccessExpression:()=>Zo,isAccessibilityModifier:()=>isAccessibilityModifier,isAccessor:()=>xm,isAccessorModifier:()=>KL,isAliasSymbolDeclaration:()=>DN,isAliasableExpression:()=>x2,isAmbientModule:()=>km,isAmbientPropertyDeclaration:()=>OD,isAnonymousFunctionDefinition:()=>Xs,isAnyDirectorySeparator:()=>hg,isAnyImportOrBareOrAccessedRequire:()=>LD,isAnyImportOrReExport:()=>Dm,isAnyImportSyntax:()=>Yg,isAnySupportedFileExtension:()=>DM,isApplicableVersionedTypesKey:()=>isApplicableVersionedTypesKey,isArgumentExpressionOfElementAccess:()=>isArgumentExpressionOfElementAccess,isArray:()=>Wt,isArrayBindingElement:()=>Kk,isArrayBindingOrAssignmentElement:()=>Ix,isArrayBindingOrAssignmentPattern:()=>Nx,isArrayBindingPattern:()=>YL,isArrayLiteralExpression:()=>Ql,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>isArrayLiteralOrObjectLiteralDestructuringPattern,isArrayTypeNode:()=>p8,isArrowFunction:()=>Gm,isAsExpression:()=>oJ,isAssertClause:()=>AJ,isAssertEntry:()=>DJ,isAssertionExpression:()=>iA,isAssertionKey:()=>Rk,isAssertsKeyword:()=>qL,isAssignmentDeclaration:()=>N0,isAssignmentExpression:()=>Sa,isAssignmentOperator:()=>w_,isAssignmentPattern:()=>Ax,isAssignmentTarget:()=>bN,isAsteriskToken:()=>RL,isAsyncFunction:()=>FN,isAsyncModifier:()=>Qc,isAutoAccessorPropertyDeclaration:()=>kx,isAwaitExpression:()=>nJ,isAwaitKeyword:()=>zL,isBigIntLiteral:()=>cb,isBinaryExpression:()=>St,isBinaryOperatorToken:()=>aF,isBindableObjectDefinePropertyCall:()=>m2,isBindableStaticAccessExpression:()=>S_,isBindableStaticElementAccessExpression:()=>y2,isBindableStaticNameExpression:()=>c_,isBindingElement:()=>$l,isBindingElementOfBareOrAccessedRequire:()=>HP,isBindingName:()=>Uk,isBindingOrAssignmentElement:()=>Gk,isBindingOrAssignmentPattern:()=>Xk,isBindingPattern:()=>Sm,isBlock:()=>Yl,isBlockOrCatchScoped:()=>ED,isBlockScope:()=>i4,isBlockScopedContainerTopLevel:()=>PD,isBooleanLiteral:()=>qk,isBreakOrContinueStatement:()=>kk,isBreakStatement:()=>gJ,isBuildInfoFile:()=>isBuildInfoFile,isBuilderProgram:()=>isBuilderProgram2,isBundle:()=>UJ,isBundleFileTextLike:()=>kO,isCallChain:()=>T0,isCallExpression:()=>O_,isCallExpressionTarget:()=>isCallExpressionTarget,isCallLikeExpression:()=>Yk,isCallOrNewExpression:()=>Zk,isCallOrNewExpressionTarget:()=>isCallOrNewExpressionTarget,isCallSignatureDeclaration:()=>pb,isCallToHelper:()=>isCallToHelper,isCaseBlock:()=>EJ,isCaseClause:()=>FJ,isCaseKeyword:()=>GL,isCaseOrDefaultClause:()=>AA,isCatchClause:()=>jJ,isCatchClauseVariableDeclaration:()=>TS,isCatchClauseVariableDeclarationOrBindingElement:()=>e4,isCheckJsEnabledForFile:()=>PM,isChildOfNodeWithKind:()=>iP,isCircularBuildOrder:()=>isCircularBuildOrder,isClassDeclaration:()=>u_,isClassElement:()=>Qa,isClassExpression:()=>$m,isClassLike:()=>Hr,isClassMemberModifier:()=>wx,isClassOrTypeElement:()=>Vk,isClassStaticBlockDeclaration:()=>Hl,isCollapsedRange:()=>$I,isColonToken:()=>FL,isCommaExpression:()=>r1,isCommaListExpression:()=>M_,isCommaSequence:()=>TR,isCommaToken:()=>i8,isComment:()=>isComment,isCommonJsExportPropertyAssignment:()=>s2,isCommonJsExportedExpression:()=>lP,isCompoundAssignment:()=>isCompoundAssignment,isComputedNonLiteralName:()=>BD,isComputedPropertyName:()=>Za,isConciseBody:()=>lA,isConditionalExpression:()=>rJ,isConditionalTypeNode:()=>g8,isConstTypeReference:()=>yx,isConstructSignatureDeclaration:()=>c8,isConstructorDeclaration:()=>P_,isConstructorTypeNode:()=>fb,isContextualKeyword:()=>S2,isContinueStatement:()=>hJ,isCustomPrologue:()=>Pm,isDebuggerStatement:()=>wJ,isDeclaration:()=>$o,isDeclarationBindingElement:()=>zg,isDeclarationFileName:()=>l7,isDeclarationName:()=>U4,isDeclarationNameOfEnumOrNamespace:()=>_O,isDeclarationReadonly:()=>ZD,isDeclarationStatement:()=>TA,isDeclarationWithTypeParameterChildren:()=>a4,isDeclarationWithTypeParameters:()=>MD,isDecorator:()=>zl,isDecoratorTarget:()=>isDecoratorTarget,isDefaultClause:()=>O8,isDefaultImport:()=>I4,isDefaultModifier:()=>UL,isDefaultedExpandoInitializer:()=>ZP,isDeleteExpression:()=>eJ,isDeleteTarget:()=>EN,isDeprecatedDeclaration:()=>isDeprecatedDeclaration,isDestructuringAssignment:()=>MI,isDiagnosticWithLocation:()=>isDiagnosticWithLocation,isDiskPathRoot:()=>S5,isDoStatement:()=>dJ,isDotDotDotToken:()=>JL,isDottedName:()=>F0,isDynamicName:()=>E2,isESSymbolIdentifier:()=>zN,isEffectiveExternalModule:()=>Qg,isEffectiveModuleDeclaration:()=>t4,isEffectiveStrictModeSourceFile:()=>ID,isElementAccessChain:()=>mx,isElementAccessExpression:()=>ka,isEmittedFileOfProgram:()=>isEmittedFileOfProgram,isEmptyArrayLiteral:()=>jI,isEmptyBindingElement:()=>VT,isEmptyBindingPattern:()=>WT,isEmptyObjectLiteral:()=>FI,isEmptyStatement:()=>uJ,isEmptyStringLiteral:()=>y4,isEntityName:()=>Bk,isEntityNameExpression:()=>no,isEnumConst:()=>YD,isEnumDeclaration:()=>Eb,isEnumMember:()=>L8,isEqualityOperatorKind:()=>isEqualityOperatorKind,isEqualsGreaterThanToken:()=>BL,isExclamationToken:()=>Kf,isExcludedFile:()=>isExcludedFile,isExclusivelyTypeOnlyImportOrExport:()=>isExclusivelyTypeOnlyImportOrExport,isExportAssignment:()=>ls,isExportDeclaration:()=>L_,isExportModifier:()=>a8,isExportName:()=>vR,isExportNamespaceAsDefaultDeclaration:()=>Zx,isExportOrDefaultModifier:()=>sF,isExportSpecifier:()=>I8,isExportsIdentifier:()=>E4,isExportsOrModuleExportsOrAlias:()=>isExportsOrModuleExportsOrAlias,isExpression:()=>wm,isExpressionNode:()=>u2,isExpressionOfExternalModuleImportEqualsDeclaration:()=>isExpressionOfExternalModuleImportEqualsDeclaration,isExpressionOfOptionalChainRoot:()=>wk,isExpressionStatement:()=>Zl,isExpressionWithTypeArguments:()=>Tb,isExpressionWithTypeArgumentsInClassExtendsClause:()=>R0,isExternalModule:()=>ts,isExternalModuleAugmentation:()=>$g,isExternalModuleImportEqualsDeclaration:()=>b4,isExternalModuleIndicator:()=>_A,isExternalModuleNameRelative:()=>K5,isExternalModuleReference:()=>Zm,isExternalModuleSymbol:()=>isExternalModuleSymbol,isExternalOrCommonJsModule:()=>QD,isFileLevelUniqueName:()=>Gx,isFileProbablyExternalModule:()=>sl,isFirstDeclarationOfSymbolParameter:()=>isFirstDeclarationOfSymbolParameter,isFixablePromiseHandler:()=>isFixablePromiseHandler,isForInOrOfStatement:()=>cA,isForInStatement:()=>mJ,isForInitializer:()=>pA,isForOfStatement:()=>yJ,isForStatement:()=>k8,isFunctionBlock:()=>p4,isFunctionBody:()=>uA,isFunctionDeclaration:()=>cs,isFunctionExpression:()=>Km,isFunctionExpressionOrArrowFunction:()=>YM,isFunctionLike:()=>Wi,isFunctionLikeDeclaration:()=>Ex,isFunctionLikeKind:()=>jg,isFunctionLikeOrClassStaticBlockDeclaration:()=>Tm,isFunctionOrConstructorTypeNode:()=>Hk,isFunctionOrModuleBlock:()=>zk,isFunctionSymbol:()=>oN,isFunctionTypeNode:()=>Gl,isFutureReservedKeyword:()=>IN,isGeneratedIdentifier:()=>ma,isGeneratedPrivateIdentifier:()=>Rg,isGetAccessor:()=>Hc,isGetAccessorDeclaration:()=>Kl,isGetOrSetAccessorDeclaration:()=>Sk,isGlobalDeclaration:()=>isGlobalDeclaration,isGlobalScopeAugmentation:()=>Am,isGrammarError:()=>cD,isHeritageClause:()=>Sl,isHoistedFunction:()=>A0,isHoistedVariableStatement:()=>D0,isIdentifier:()=>Ce,isIdentifierANonContextualKeyword:()=>LN,isIdentifierName:()=>AN,isIdentifierOrThisTypeNode:()=>RR,isIdentifierPart:()=>Wa,isIdentifierStart:()=>or,isIdentifierText:()=>Ag,isIdentifierTypePredicate:()=>yP,isIdentifierTypeReference:()=>qM,isIfStatement:()=>pJ,isIgnoredFileFromWildCardWatching:()=>isIgnoredFileFromWildCardWatching,isImplicitGlob:()=>iS,isImportCall:()=>i2,isImportClause:()=>CJ,isImportDeclaration:()=>Ab,isImportEqualsDeclaration:()=>kb,isImportKeyword:()=>s8,isImportMeta:()=>k0,isImportOrExportSpecifier:()=>Lk,isImportOrExportSpecifierName:()=>isImportOrExportSpecifierName,isImportSpecifier:()=>P8,isImportTypeAssertionContainer:()=>kJ,isImportTypeNode:()=>Xl,isImportableFile:()=>isImportableFile,isInComment:()=>isInComment,isInExpressionContext:()=>h4,isInJSDoc:()=>v4,isInJSFile:()=>Vt,isInJSXText:()=>isInJSXText,isInJsonFile:()=>zP,isInNonReferenceComment:()=>isInNonReferenceComment,isInReferenceComment:()=>isInReferenceComment,isInRightSideOfInternalImportEqualsDeclaration:()=>isInRightSideOfInternalImportEqualsDeclaration,isInString:()=>isInString,isInTemplateString:()=>isInTemplateString,isInTopLevelContext:()=>CP,isIncrementalCompilation:()=>nM,isIndexSignatureDeclaration:()=>db,isIndexedAccessTypeNode:()=>T8,isInferTypeNode:()=>b8,isInfinityOrNaNString:()=>$M,isInitializedProperty:()=>isInitializedProperty,isInitializedVariable:()=>U3,isInsideJsxElement:()=>isInsideJsxElement,isInsideJsxElementOrAttribute:()=>isInsideJsxElementOrAttribute,isInsideNodeModules:()=>isInsideNodeModules,isInsideTemplateLiteral:()=>isInsideTemplateLiteral,isInstantiatedModule:()=>isInstantiatedModule,isInterfaceDeclaration:()=>eu,isInternalDeclaration:()=>isInternalDeclaration,isInternalModuleImportEqualsDeclaration:()=>UP,isInternalName:()=>bR,isIntersectionTypeNode:()=>h8,isIntrinsicJsxName:()=>s3,isIterationStatement:()=>Jx,isJSDoc:()=>ps,isJSDocAllType:()=>HJ,isJSDocAugmentsTag:()=>t1,isJSDocAuthorTag:()=>YJ,isJSDocCallbackTag:()=>ZJ,isJSDocClassTag:()=>F8,isJSDocCommentContainingNode:()=>qx,isJSDocConstructSignature:()=>uN,isJSDocDeprecatedTag:()=>jb,isJSDocEnumTag:()=>B8,isJSDocFunctionType:()=>e1,isJSDocImplementsTag:()=>q8,isJSDocIndexSignature:()=>VP,isJSDocLikeText:()=>o7,isJSDocLink:()=>zJ,isJSDocLinkCode:()=>WJ,isJSDocLinkLike:()=>rl,isJSDocLinkPlain:()=>VJ,isJSDocMemberName:()=>Zs,isJSDocNameReference:()=>_f,isJSDocNamepathType:()=>QJ,isJSDocNamespaceBody:()=>mA,isJSDocNode:()=>Hg,isJSDocNonNullableType:()=>GJ,isJSDocNullableType:()=>R8,isJSDocOptionalParameter:()=>kS,isJSDocOptionalType:()=>XJ,isJSDocOverloadTag:()=>Fb,isJSDocOverrideTag:()=>j8,isJSDocParameterTag:()=>p_,isJSDocPrivateTag:()=>Lb,isJSDocPropertyLikeTag:()=>Mg,isJSDocPropertyTag:()=>rR,isJSDocProtectedTag:()=>Jb,isJSDocPublicTag:()=>Mb,isJSDocReadonlyTag:()=>Rb,isJSDocReturnTag:()=>Bb,isJSDocSatisfiesExpression:()=>sL,isJSDocSatisfiesTag:()=>Ub,isJSDocSeeTag:()=>eR,isJSDocSignature:()=>nu,isJSDocTag:()=>Kg,isJSDocTemplateTag:()=>es,isJSDocThisTag:()=>U8,isJSDocThrowsTag:()=>iR,isJSDocTypeAlias:()=>Rl,isJSDocTypeAssertion:()=>X8,isJSDocTypeExpression:()=>J8,isJSDocTypeLiteral:()=>Ob,isJSDocTypeTag:()=>ru,isJSDocTypedefTag:()=>tR,isJSDocUnknownTag:()=>nR,isJSDocUnknownType:()=>KJ,isJSDocVariadicType:()=>$J,isJSXTagName:()=>Yd,isJsonEqual:()=>Y2,isJsonSourceFile:()=>r2,isJsxAttribute:()=>LJ,isJsxAttributeLike:()=>CA,isJsxAttributeName:()=>uL,isJsxAttributes:()=>Ib,isJsxChild:()=>Bx,isJsxClosingElement:()=>sf,isJsxClosingFragment:()=>MJ,isJsxElement:()=>Z0,isJsxExpression:()=>RJ,isJsxFragment:()=>ol,isJsxNamespacedName:()=>J_,isJsxOpeningElement:()=>Ro,isJsxOpeningFragment:()=>Nb,isJsxOpeningLikeElement:()=>Ux,isJsxOpeningLikeElementTagName:()=>isJsxOpeningLikeElementTagName,isJsxSelfClosingElement:()=>OJ,isJsxSpreadAttribute:()=>JJ,isJsxTagNameExpression:()=>EA,isJsxText:()=>Hf,isJumpStatementTarget:()=>isJumpStatementTarget,isKeyword:()=>bi,isKeywordOrPunctuation:()=>ef,isKnownSymbol:()=>UN,isLabelName:()=>isLabelName,isLabelOfLabeledStatement:()=>isLabelOfLabeledStatement,isLabeledStatement:()=>A8,isLateVisibilityPaintedStatement:()=>JD,isLeftHandSideExpression:()=>jo,isLeftHandSideOfAssignment:()=>OI,isLet:()=>eP,isLineBreak:()=>mn,isLiteralComputedPropertyDeclarationName:()=>q4,isLiteralExpression:()=>Jg,isLiteralExpressionOfObject:()=>Ik,isLiteralImportTypeNode:()=>c4,isLiteralKind:()=>Lg,isLiteralLikeAccess:()=>Zd,isLiteralLikeElementAccess:()=>Jl,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>isLiteralNameOfPropertyDeclarationOrIndexAccess,isLiteralTypeLikeExpression:()=>UR,isLiteralTypeLiteral:()=>nA,isLiteralTypeNode:()=>gb,isLocalName:()=>eg,isLogicalOperator:()=>PI,isLogicalOrCoalescingAssignmentExpression:()=>NI,isLogicalOrCoalescingAssignmentOperator:()=>jm,isLogicalOrCoalescingBinaryExpression:()=>II,isLogicalOrCoalescingBinaryOperator:()=>P3,isMappedTypeNode:()=>x8,isMemberName:()=>$a,isMetaProperty:()=>xb,isMethodDeclaration:()=>Vl,isMethodOrAccessor:()=>Bg,isMethodSignature:()=>_8,isMinusToken:()=>ub,isMissingDeclaration:()=>NJ,isModifier:()=>Fg,isModifierKind:()=>yi,isModifierLike:()=>Qd,isModuleAugmentationExternal:()=>n4,isModuleBlock:()=>D8,isModuleBody:()=>dA,isModuleDeclaration:()=>Gi,isModuleExportsAccessExpression:()=>f2,isModuleIdentifier:()=>C4,isModuleName:()=>BR,isModuleOrEnumDeclaration:()=>hA,isModuleReference:()=>wA,isModuleSpecifierLike:()=>isModuleSpecifierLike,isModuleWithStringLiteralName:()=>CD,isNameOfFunctionDeclaration:()=>isNameOfFunctionDeclaration,isNameOfModuleDeclaration:()=>isNameOfModuleDeclaration,isNamedClassElement:()=>Wk,isNamedDeclaration:()=>mm,isNamedEvaluation:()=>WN,isNamedEvaluationSource:()=>t3,isNamedExportBindings:()=>Ak,isNamedExports:()=>N8,isNamedImportBindings:()=>yA,isNamedImports:()=>PJ,isNamedImportsOrExports:()=>AO,isNamedTupleMember:()=>mb,isNamespaceBody:()=>fA,isNamespaceExport:()=>Ym,isNamespaceExportDeclaration:()=>Cb,isNamespaceImport:()=>Db,isNamespaceReexportDeclaration:()=>FP,isNewExpression:()=>S8,isNewExpressionTarget:()=>isNewExpressionTarget,isNightly:()=>aI,isNoSubstitutionTemplateLiteral:()=>r8,isNode:()=>Pk,isNodeArray:()=>ua,isNodeArrayMultiLine:()=>iO,isNodeDescendantOf:()=>CN,isNodeKind:()=>Ol,isNodeLikeSystem:()=>u5,isNodeModulesDirectory:()=>J5,isNodeWithPossibleHoistedDeclaration:()=>vN,isNonContextualKeyword:()=>Q4,isNonExportDefaultModifier:()=>_F,isNonGlobalAmbientModule:()=>kD,isNonGlobalDeclaration:()=>isNonGlobalDeclaration,isNonNullAccess:()=>oL,isNonNullChain:()=>hx,isNonNullExpression:()=>qo,isNonStaticMethodOrAccessorWithPrivateName:()=>isNonStaticMethodOrAccessorWithPrivateName,isNotEmittedOrPartiallyEmittedNode:()=>aA,isNotEmittedStatement:()=>Pb,isNullishCoalesce:()=>Ck,isNumber:()=>M9,isNumericLiteral:()=>ro,isNumericLiteralName:()=>xS,isObjectBindingElementWithoutPropertyName:()=>isObjectBindingElementWithoutPropertyName,isObjectBindingOrAssignmentElement:()=>Px,isObjectBindingOrAssignmentPattern:()=>Dx,isObjectBindingPattern:()=>QL,isObjectLiteralElement:()=>S0,isObjectLiteralElementLike:()=>qg,isObjectLiteralExpression:()=>ao,isObjectLiteralMethod:()=>fP,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>mP,isObjectTypeDeclaration:()=>EO,isOctalDigit:()=>Xd,isOmittedExpression:()=>Qm,isOptionalChain:()=>Ig,isOptionalChainRoot:()=>Og,isOptionalDeclaration:()=>aL,isOptionalJSDocPropertyLikeTag:()=>ES,isOptionalTypeNode:()=>f8,isOuterExpression:()=>i1,isOutermostOptionalChain:()=>Ek,isOverrideModifier:()=>HL,isPackedArrayLiteral:()=>HM,isParameter:()=>io,isParameterDeclaration:()=>HN,isParameterOrCatchClauseVariable:()=>QM,isParameterPropertyDeclaration:()=>zT,isParameterPropertyModifier:()=>Sx,isParenthesizedExpression:()=>ss,isParenthesizedTypeNode:()=>yb,isParseTreeNode:()=>dl,isPartOfTypeNode:()=>a2,isPartOfTypeQuery:()=>g4,isPartiallyEmittedExpression:()=>C8,isPatternMatch:()=>dg,isPinnedComment:()=>Yx,isPlainJsFile:()=>aD,isPlusToken:()=>lb,isPossiblyTypeArgumentPosition:()=>isPossiblyTypeArgumentPosition,isPostfixUnaryExpression:()=>E8,isPrefixUnaryExpression:()=>Xm,isPrivateIdentifier:()=>Ln,isPrivateIdentifierClassElementDeclaration:()=>xx,isPrivateIdentifierPropertyAccessExpression:()=>jk,isPrivateIdentifierSymbol:()=>qN,isProgramBundleEmitBuildInfo:()=>isProgramBundleEmitBuildInfo,isProgramUptoDate:()=>isProgramUptoDate,isPrologueDirective:()=>ha,isPropertyAccessChain:()=>fx,isPropertyAccessEntityNameExpression:()=>O3,isPropertyAccessExpression:()=>Rn,isPropertyAccessOrQualifiedName:()=>Qk,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>$k,isPropertyAssignment:()=>us,isPropertyDeclaration:()=>os,isPropertyName:()=>Ml,isPropertyNameLiteral:()=>O0,isPropertySignature:()=>Wl,isProtoSetter:()=>e3,isPrototypeAccess:()=>Bl,isPrototypePropertyAssignment:()=>rN,isPunctuation:()=>$4,isPushOrUnshiftIdentifier:()=>VN,isQualifiedName:()=>D_,isQuestionDotToken:()=>jL,isQuestionOrExclamationToken:()=>JR,isQuestionOrPlusOrMinusToken:()=>jR,isQuestionToken:()=>xl,isRawSourceMap:()=>isRawSourceMap,isReadonlyKeyword:()=>o8,isReadonlyKeywordOrPlusOrMinusToken:()=>FR,isRecognizedTripleSlashComment:()=>fD,isReferenceFileLocation:()=>isReferenceFileLocation,isReferencedFile:()=>isReferencedFile,isRegularExpressionLiteral:()=>IL,isRequireCall:()=>Ll,isRequireVariableStatement:()=>S4,isRestParameter:()=>Wx,isRestTypeNode:()=>m8,isReturnStatement:()=>bJ,isReturnStatementWithFixablePromiseHandler:()=>isReturnStatementWithFixablePromiseHandler,isRightSideOfAccessExpression:()=>M3,isRightSideOfPropertyAccess:()=>isRightSideOfPropertyAccess,isRightSideOfQualifiedName:()=>isRightSideOfQualifiedName,isRightSideOfQualifiedNameOrPropertyAccess:()=>JI,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>RI,isRootedDiskPath:()=>y_,isSameEntityName:()=>__,isSatisfiesExpression:()=>sJ,isScopeMarker:()=>Rx,isSemicolonClassElement:()=>lJ,isSetAccessor:()=>Vc,isSetAccessorDeclaration:()=>N_,isShebangTrivia:()=>Cg,isShorthandAmbientModuleSymbol:()=>AD,isShorthandPropertyAssignment:()=>tu,isSignedNumericLiteral:()=>w2,isSimpleCopiableExpression:()=>isSimpleCopiableExpression,isSimpleInlineableExpression:()=>isSimpleInlineableExpression,isSingleOrDoubleQuote:()=>KP,isSourceFile:()=>$r,isSourceFileFromLibrary:()=>isSourceFileFromLibrary,isSourceFileJS:()=>p2,isSourceFileNotJS:()=>qP,isSourceFileNotJson:()=>WP,isSourceMapping:()=>isSourceMapping,isSpecialPropertyDeclaration:()=>iN,isSpreadAssignment:()=>M8,isSpreadElement:()=>vb,isStatement:()=>Fx,isStatementButNotDeclaration:()=>xA,isStatementOrBlock:()=>jx,isStatementWithLocals:()=>oD,isStatic:()=>L0,isStaticModifier:()=>WL,isString:()=>m_,isStringAKeyword:()=>MN,isStringANonContextualKeyword:()=>ON,isStringAndEmptyAnonymousObjectIntersection:()=>isStringAndEmptyAnonymousObjectIntersection,isStringDoubleQuoted:()=>GP,isStringLiteral:()=>cr,isStringLiteralLike:()=>qr,isStringLiteralOrJsxExpression:()=>kA,isStringLiteralOrTemplate:()=>isStringLiteralOrTemplate,isStringOrNumericLiteralLike:()=>Ki,isStringOrRegularExpressionOrTemplateLiteral:()=>isStringOrRegularExpressionOrTemplateLiteral,isStringTextContainingNode:()=>Fk,isSuperCall:()=>tP,isSuperKeyword:()=>of,isSuperOrSuperProperty:()=>PP,isSuperProperty:()=>Lf,isSupportedSourceFileName:()=>wM,isSwitchStatement:()=>TJ,isSyntaxList:()=>aR,isSyntheticExpression:()=>_J,isSyntheticReference:()=>IJ,isTagName:()=>isTagName,isTaggedTemplateExpression:()=>w8,isTaggedTemplateTag:()=>isTaggedTemplateTag,isTemplateExpression:()=>iJ,isTemplateHead:()=>OL,isTemplateLiteral:()=>eA,isTemplateLiteralKind:()=>fl,isTemplateLiteralToken:()=>Ok,isTemplateLiteralTypeNode:()=>$L,isTemplateLiteralTypeSpan:()=>XL,isTemplateMiddle:()=>ML,isTemplateMiddleOrTemplateTail:()=>Mk,isTemplateSpan:()=>cJ,isTemplateTail:()=>LL,isTextWhiteSpaceLike:()=>isTextWhiteSpaceLike,isThis:()=>isThis,isThisContainerOrFunctionBlock:()=>EP,isThisIdentifier:()=>Jm,isThisInTypeQuery:()=>gI,isThisInitializedDeclaration:()=>IP,isThisInitializedObjectBindingExpression:()=>OP,isThisProperty:()=>NP,isThisTypeNode:()=>hb,isThisTypeParameter:()=>SS,isThisTypePredicate:()=>hP,isThrowStatement:()=>xJ,isToken:()=>Nk,isTokenKind:()=>bx,isTraceEnabled:()=>isTraceEnabled,isTransientSymbol:()=>E0,isTrivia:()=>JN,isTryStatement:()=>SJ,isTupleTypeNode:()=>d8,isTypeAlias:()=>pN,isTypeAliasDeclaration:()=>wb,isTypeAssertionExpression:()=>ZL,isTypeDeclaration:()=>wS,isTypeElement:()=>Ug,isTypeKeyword:()=>isTypeKeyword,isTypeKeywordToken:()=>isTypeKeywordToken,isTypeKeywordTokenOrIdentifier:()=>isTypeKeywordTokenOrIdentifier,isTypeLiteralNode:()=>Hm,isTypeNode:()=>x0,isTypeNodeKind:()=>K3,isTypeOfExpression:()=>tJ,isTypeOnlyExportDeclaration:()=>Tx,isTypeOnlyImportDeclaration:()=>vx,isTypeOnlyImportOrExportDeclaration:()=>Jk,isTypeOperatorNode:()=>v8,isTypeParameterDeclaration:()=>Jo,isTypePredicateNode:()=>l8,isTypeQueryNode:()=>u8,isTypeReferenceNode:()=>I_,isTypeReferenceType:()=>NA,isUMDExportSymbol:()=>xO,isUnaryExpression:()=>Mx,isUnaryExpressionWithWrite:()=>tA,isUnicodeIdentifierStart:()=>TT,isUnionTypeNode:()=>y8,isUnparsedNode:()=>Dk,isUnparsedPrepend:()=>BJ,isUnparsedSource:()=>qJ,isUnparsedTextLike:()=>gx,isUrl:()=>x5,isValidBigIntString:()=>hS,isValidESSymbolDeclaration:()=>uP,isValidTypeOnlyAliasUseSite:()=>FM,isValueSignatureDeclaration:()=>TN,isVarConst:()=>_4,isVariableDeclaration:()=>Ei,isVariableDeclarationInVariableStatement:()=>u4,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>Nm,isVariableDeclarationInitializedToRequire:()=>T4,isVariableDeclarationList:()=>Sb,isVariableLike:()=>o2,isVariableLikeOrAccessor:()=>cP,isVariableStatement:()=>_s,isVoidExpression:()=>bb,isWatchSet:()=>lO,isWhileStatement:()=>fJ,isWhiteSpaceLike:()=>qi,isWhiteSpaceSingleLine:()=>Lo,isWithStatement:()=>vJ,isWriteAccess:()=>yO,isWriteOnlyAccess:()=>mO,isYieldExpression:()=>aJ,jsxModeNeedsExplicitImport:()=>jsxModeNeedsExplicitImport,keywordPart:()=>keywordPart,last:()=>ba,lastOrUndefined:()=>Ti,length:()=>Ha,libMap:()=>libMap,libs:()=>libs,lineBreakPart:()=>lineBreakPart,linkNamePart:()=>linkNamePart,linkPart:()=>linkPart,linkTextPart:()=>linkTextPart,listFiles:()=>listFiles,loadModuleFromGlobalCache:()=>loadModuleFromGlobalCache,loadWithModeAwareCache:()=>loadWithModeAwareCache,makeIdentifierFromModuleName:()=>wD,makeImport:()=>makeImport,makeImportIfNecessary:()=>makeImportIfNecessary,makeStringLiteral:()=>makeStringLiteral,mangleScopedPackageName:()=>mangleScopedPackageName,map:()=>ga,mapAllOrFail:()=>VC,mapDefined:()=>Ka,mapDefinedEntries:()=>KC,mapDefinedIterator:()=>HC,mapEntries:()=>YC,mapIterator:()=>qC,mapOneOrMany:()=>mapOneOrMany,mapToDisplayParts:()=>mapToDisplayParts,matchFiles:()=>gM,matchPatternOrExact:()=>NM,matchedText:()=>e5,matchesExclude:()=>matchesExclude,maybeBind:()=>rn,maybeSetLocalizedDiagnosticMessages:()=>$3,memoize:()=>ah,memoizeCached:()=>F9,memoizeOne:()=>Cr,memoizeWeak:()=>R9,metadataHelper:()=>metadataHelper,min:()=>U9,minAndMax:()=>OM,missingFileModifiedTime:()=>missingFileModifiedTime,modifierToFlag:()=>j2,modifiersToFlags:()=>ar,moduleOptionDeclaration:()=>moduleOptionDeclaration,moduleResolutionIsEqualTo:()=>QA,moduleResolutionNameAndModeGetter:()=>moduleResolutionNameAndModeGetter,moduleResolutionOptionDeclarations:()=>moduleResolutionOptionDeclarations,moduleResolutionSupportsPackageJsonExportsAndImports:()=>V2,moduleResolutionUsesNodeModules:()=>moduleResolutionUsesNodeModules,moduleSpecifiers:()=>ts_moduleSpecifiers_exports,moveEmitHelpers:()=>moveEmitHelpers,moveRangeEnd:()=>GI,moveRangePastDecorators:()=>j3,moveRangePastModifiers:()=>XI,moveRangePos:()=>Bf,moveSyntheticComments:()=>moveSyntheticComments,mutateMap:()=>bO,mutateMapSkippingNewValues:()=>W3,needsParentheses:()=>needsParentheses,needsScopeMarker:()=>sA,newCaseClauseTracker:()=>newCaseClauseTracker,newPrivateEnvironment:()=>newPrivateEnvironment,noEmitNotification:()=>noEmitNotification,noEmitSubstitution:()=>noEmitSubstitution,noTransformers:()=>noTransformers,noTruncationMaximumTruncationLength:()=>NS,nodeCanBeDecorated:()=>m4,nodeHasName:()=>XT,nodeIsDecorated:()=>s_,nodeIsMissing:()=>Bi,nodeIsPresent:()=>yl,nodeIsSynthesized:()=>pa,nodeModuleNameResolver:()=>nodeModuleNameResolver,nodeModulesPathPart:()=>nodeModulesPathPart,nodeNextJsonConfigResolver:()=>nodeNextJsonConfigResolver,nodeOrChildIsDecorated:()=>P0,nodeOverlapsWithStartEnd:()=>nodeOverlapsWithStartEnd,nodePosToString:()=>_D,nodeSeenTracker:()=>nodeSeenTracker,nodeStartsNewLexicalEnvironment:()=>KN,nodeToDisplayParts:()=>nodeToDisplayParts,noop:()=>Pr,noopFileWatcher:()=>noopFileWatcher,normalizePath:()=>sr,normalizeSlashes:()=>Ho,not:()=>r5,notImplemented:()=>J9,notImplementedResolver:()=>notImplementedResolver,nullNodeConverters:()=>nullNodeConverters,nullParenthesizerRules:()=>sb,nullTransformationContext:()=>nullTransformationContext,objectAllocator:()=>xt,operatorPart:()=>operatorPart,optionDeclarations:()=>optionDeclarations,optionMapToObject:()=>optionMapToObject,optionsAffectingProgramStructure:()=>optionsAffectingProgramStructure,optionsForBuild:()=>optionsForBuild,optionsForWatch:()=>optionsForWatch,optionsHaveChanges:()=>T_,optionsHaveModuleResolutionChanges:()=>Vx,or:()=>fg,orderedRemoveItem:()=>Q9,orderedRemoveItemAt:()=>eT,outFile:()=>P2,packageIdToPackageName:()=>Hx,packageIdToString:()=>eD,padLeft:()=>aT,padRight:()=>s5,paramHelper:()=>paramHelper,parameterIsThisKeyword:()=>jl,parameterNamePart:()=>parameterNamePart,parseBaseNodeFactory:()=>ig,parseBigInt:()=>RM,parseBuildCommand:()=>parseBuildCommand,parseCommandLine:()=>parseCommandLine,parseCommandLineWorker:()=>parseCommandLineWorker,parseConfigFileTextToJson:()=>parseConfigFileTextToJson,parseConfigFileWithSystem:()=>parseConfigFileWithSystem,parseConfigHostFromCompilerHostLike:()=>parseConfigHostFromCompilerHostLike,parseCustomTypeOption:()=>parseCustomTypeOption,parseIsolatedEntityName:()=>CF,parseIsolatedJSDocComment:()=>AF,parseJSDocTypeExpressionForTests:()=>DF,parseJsonConfigFileContent:()=>parseJsonConfigFileContent,parseJsonSourceFileConfigFileContent:()=>parseJsonSourceFileConfigFileContent,parseJsonText:()=>kF,parseListTypeOption:()=>parseListTypeOption,parseNodeFactory:()=>F_,parseNodeModuleFromPath:()=>parseNodeModuleFromPath,parsePackageName:()=>parsePackageName,parsePseudoBigInt:()=>qm,parseValidBigInt:()=>yS,patchWriteFileEnsuringDirectory:()=>patchWriteFileEnsuringDirectory,pathContainsNodeModules:()=>pathContainsNodeModules,pathIsAbsolute:()=>gg,pathIsBareSpecifier:()=>w5,pathIsRelative:()=>is,patternText:()=>Z9,perfLogger:()=>yf,performIncrementalCompilation:()=>performIncrementalCompilation,performance:()=>ts_performance_exports,plainJSErrors:()=>plainJSErrors,positionBelongsToNode:()=>positionBelongsToNode,positionIsASICandidate:()=>positionIsASICandidate,positionIsSynthesized:()=>wa,positionsAreOnSameLine:()=>E_,preProcessFile:()=>preProcessFile,probablyUsesSemicolons:()=>probablyUsesSemicolons,processCommentPragmas:()=>u7,processPragmasIntoFields:()=>p7,processTaggedTemplateExpression:()=>processTaggedTemplateExpression,programContainsEsModules:()=>programContainsEsModules,programContainsModules:()=>programContainsModules,projectReferenceIsEqualTo:()=>$A,propKeyHelper:()=>propKeyHelper,propertyNamePart:()=>propertyNamePart,pseudoBigIntToString:()=>Z2,punctuationPart:()=>punctuationPart,pushIfUnique:()=>wl,quote:()=>quote,quotePreferenceFromString:()=>quotePreferenceFromString,rangeContainsPosition:()=>rangeContainsPosition,rangeContainsPositionExclusive:()=>rangeContainsPositionExclusive,rangeContainsRange:()=>rangeContainsRange,rangeContainsRangeExclusive:()=>rangeContainsRangeExclusive,rangeContainsStartEnd:()=>rangeContainsStartEnd,rangeEndIsOnSameLineAsRangeStart:()=>tO,rangeEndPositionsAreOnSameLine:()=>eO,rangeEquals:()=>p9,rangeIsOnSingleLine:()=>YI,rangeOfNode:()=>MM,rangeOfTypeParameters:()=>LM,rangeOverlapsWithStartEnd:()=>rangeOverlapsWithStartEnd,rangeStartIsOnSameLineAsRangeEnd:()=>B3,rangeStartPositionsAreOnSameLine:()=>ZI,readBuilderProgram:()=>readBuilderProgram,readConfigFile:()=>readConfigFile,readHelper:()=>readHelper,readJson:()=>KI,readJsonConfigFile:()=>readJsonConfigFile,readJsonOrUndefined:()=>J3,realizeDiagnostics:()=>realizeDiagnostics,reduceEachLeadingCommentRange:()=>xT,reduceEachTrailingCommentRange:()=>ST,reduceLeft:()=>em,reduceLeftIterator:()=>LC,reducePathComponents:()=>va,refactor:()=>ts_refactor_exports,regExpEscape:()=>mM,relativeComplement:()=>c9,removeAllComments:()=>removeAllComments,removeEmitHelper:()=>removeEmitHelper,removeExtension:()=>dS,removeFileExtension:()=>bl,removeIgnoredPath:()=>removeIgnoredPath,removeMinAndVersionNumbers:()=>$9,removeOptionality:()=>removeOptionality,removePrefix:()=>t5,removeSuffix:()=>G9,removeTrailingDirectorySeparator:()=>g_,repeatString:()=>repeatString,replaceElement:()=>h9,resolutionExtensionIsTSOrJson:()=>AM,resolveConfigFileProjectName:()=>resolveConfigFileProjectName,resolveJSModule:()=>resolveJSModule,resolveLibrary:()=>resolveLibrary,resolveModuleName:()=>resolveModuleName,resolveModuleNameFromCache:()=>resolveModuleNameFromCache,resolvePackageNameToPackageJson:()=>resolvePackageNameToPackageJson,resolvePath:()=>g0,resolveProjectReferencePath:()=>resolveProjectReferencePath,resolveTripleslashReference:()=>resolveTripleslashReference,resolveTypeReferenceDirective:()=>resolveTypeReferenceDirective,resolvingEmptyArray:()=>DS,restHelper:()=>restHelper,returnFalse:()=>df,returnNoopFileWatcher:()=>returnNoopFileWatcher,returnTrue:()=>Gv,returnUndefined:()=>L9,returnsPromise:()=>returnsPromise,runInitializersHelper:()=>runInitializersHelper,sameFlatMap:()=>jv,sameMap:()=>zC,sameMapping:()=>sameMapping,scanShebangTrivia:()=>kg,scanTokenAtPosition:()=>XD,scanner:()=>zo,screenStartingMessageCodes:()=>screenStartingMessageCodes,semanticDiagnosticsOptionDeclarations:()=>semanticDiagnosticsOptionDeclarations,serializeCompilerOptions:()=>serializeCompilerOptions,server:()=>ts_server_exports,servicesVersion:()=>N7,setCommentRange:()=>setCommentRange,setConfigFileInOptions:()=>setConfigFileInOptions,setConstantValue:()=>setConstantValue,setEachParent:()=>n_,setEmitFlags:()=>setEmitFlags,setFunctionNameHelper:()=>setFunctionNameHelper,setGetSourceFileAsHashVersioned:()=>setGetSourceFileAsHashVersioned,setIdentifierAutoGenerate:()=>setIdentifierAutoGenerate,setIdentifierGeneratedImportReference:()=>setIdentifierGeneratedImportReference,setIdentifierTypeArguments:()=>setIdentifierTypeArguments,setInternalEmitFlags:()=>setInternalEmitFlags,setLocalizedDiagnosticMessages:()=>X3,setModuleDefaultHelper:()=>setModuleDefaultHelper,setNodeFlags:()=>WM,setObjectAllocator:()=>G3,setOriginalNode:()=>Kn,setParent:()=>Vi,setParentRecursive:()=>bS,setPrivateIdentifier:()=>setPrivateIdentifier,setResolvedModule:()=>KA,setResolvedTypeReferenceDirective:()=>GA,setSnippetElement:()=>setSnippetElement,setSourceMapRange:()=>setSourceMapRange,setStackTraceLimit:()=>setStackTraceLimit,setStartsOnNewLine:()=>setStartsOnNewLine,setSyntheticLeadingComments:()=>setSyntheticLeadingComments,setSyntheticTrailingComments:()=>setSyntheticTrailingComments,setSys:()=>setSys,setSysLog:()=>setSysLog,setTextRange:()=>He,setTextRangeEnd:()=>gS,setTextRangePos:()=>qf,setTextRangePosEnd:()=>Va,setTextRangePosWidth:()=>zf,setTokenSourceMapRange:()=>setTokenSourceMapRange,setTypeNode:()=>setTypeNode,setUILocale:()=>Yv,setValueDeclaration:()=>aN,shouldAllowImportingTsExtension:()=>shouldAllowImportingTsExtension,shouldPreserveConstEnums:()=>tM,shouldResolveJsRequire:()=>YO,shouldUseUriStyleNodeCoreModules:()=>shouldUseUriStyleNodeCoreModules,showModuleSpecifier:()=>SO,signatureHasLiteralTypes:()=>signatureHasLiteralTypes,signatureHasRestParameter:()=>signatureHasRestParameter,signatureToDisplayParts:()=>signatureToDisplayParts,single:()=>m9,singleElementArray:()=>ff,singleIterator:()=>$C,singleOrMany:()=>y9,singleOrUndefined:()=>Zf,skipAlias:()=>dO,skipAssertions:()=>wR,skipConstraint:()=>skipConstraint,skipOuterExpressions:()=>ds,skipParentheses:()=>Fl,skipPartiallyEmittedExpressions:()=>vm,skipTrivia:()=>It,skipTypeChecking:()=>JM,skipTypeParentheses:()=>wN,skipWhile:()=>c5,sliceAfter:()=>IM,some:()=>ft,sort:()=>pf,sortAndDeduplicate:()=>Uv,sortAndDeduplicateDiagnostics:()=>G5,sourceFileAffectingCompilerOptions:()=>sourceFileAffectingCompilerOptions,sourceFileMayBeEmitted:()=>M0,sourceMapCommentRegExp:()=>sourceMapCommentRegExp,sourceMapCommentRegExpDontCareLineStart:()=>sourceMapCommentRegExpDontCareLineStart,spacePart:()=>spacePart,spanMap:()=>QC,spreadArrayHelper:()=>spreadArrayHelper,stableSort:()=>Wv,startEndContainsRange:()=>startEndContainsRange,startEndOverlapsWithStartEnd:()=>startEndOverlapsWithStartEnd,startOnNewLine:()=>a1,startTracing:()=>startTracing,startsWith:()=>Jn,startsWithDirectory:()=>O5,startsWithUnderscore:()=>startsWithUnderscore,startsWithUseStrict:()=>G8,stringContains:()=>Ga,stringContainsAt:()=>stringContainsAt,stringToToken:()=>Al,stripQuotes:()=>rI,supportedDeclarationExtensions:()=>ob,supportedJSExtensions:()=>X0,supportedJSExtensionsFlat:()=>ab,supportedLocaleDirectories:()=>Xg,supportedTSExtensions:()=>Uo,supportedTSExtensionsFlat:()=>ib,supportedTSImplementationExtensions:()=>$S,suppressLeadingAndTrailingTrivia:()=>suppressLeadingAndTrailingTrivia,suppressLeadingTrivia:()=>suppressLeadingTrivia,suppressTrailingTrivia:()=>suppressTrailingTrivia,symbolEscapedNameNoDefault:()=>symbolEscapedNameNoDefault,symbolName:()=>Of,symbolNameNoDefault:()=>symbolNameNoDefault,symbolPart:()=>symbolPart,symbolToDisplayParts:()=>symbolToDisplayParts,syntaxMayBeASICandidate:()=>syntaxMayBeASICandidate,syntaxRequiresTrailingSemicolonOrASI:()=>syntaxRequiresTrailingSemicolonOrASI,sys:()=>h0,sysLog:()=>sysLog,tagNamesAreEquivalent:()=>gi,takeWhile:()=>_5,targetOptionDeclaration:()=>targetOptionDeclaration,templateObjectHelper:()=>templateObjectHelper,testFormatSettings:()=>testFormatSettings,textChangeRangeIsUnchanged:()=>qT,textChangeRangeNewSpan:()=>Ks,textChanges:()=>ts_textChanges_exports,textOrKeywordPart:()=>textOrKeywordPart,textPart:()=>textPart,textRangeContainsPositionInclusive:()=>$5,textSpanContainsPosition:()=>X5,textSpanContainsTextSpan:()=>Q5,textSpanEnd:()=>tn,textSpanIntersection:()=>UT,textSpanIntersectsWith:()=>ek,textSpanIntersectsWithPosition:()=>tk,textSpanIntersectsWithTextSpan:()=>Z5,textSpanIsEmpty:()=>jT,textSpanOverlap:()=>BT,textSpanOverlapsWith:()=>Y5,textSpansEqual:()=>textSpansEqual,textToKeywordObj:()=>tl,timestamp:()=>da,toArray:()=>Gd,toBuilderFileEmit:()=>toBuilderFileEmit,toBuilderStateFileInfoForMultiEmit:()=>toBuilderStateFileInfoForMultiEmit,toEditorSettings:()=>Zc,toFileNameLowerCase:()=>$v,toLowerCase:()=>Xv,toPath:()=>vi,toProgramEmitPending:()=>toProgramEmitPending,tokenIsIdentifierOrKeyword:()=>At,tokenIsIdentifierOrKeywordOrGreaterThan:()=>vT,tokenToString:()=>an,trace:()=>trace,tracing:()=>fa,tracingEnabled:()=>tracingEnabled,transform:()=>transform,transformClassFields:()=>transformClassFields,transformDeclarations:()=>transformDeclarations,transformECMAScriptModule:()=>transformECMAScriptModule,transformES2015:()=>transformES2015,transformES2016:()=>transformES2016,transformES2017:()=>transformES2017,transformES2018:()=>transformES2018,transformES2019:()=>transformES2019,transformES2020:()=>transformES2020,transformES2021:()=>transformES2021,transformES5:()=>transformES5,transformESDecorators:()=>transformESDecorators,transformESNext:()=>transformESNext,transformGenerators:()=>transformGenerators,transformJsx:()=>transformJsx,transformLegacyDecorators:()=>transformLegacyDecorators,transformModule:()=>transformModule,transformNodeModule:()=>transformNodeModule,transformNodes:()=>transformNodes,transformSystemModule:()=>transformSystemModule,transformTypeScript:()=>transformTypeScript,transpile:()=>transpile,transpileModule:()=>transpileModule,transpileOptionValueCompilerOptions:()=>transpileOptionValueCompilerOptions,trimString:()=>am,trimStringEnd:()=>e_,trimStringStart:()=>ll,tryAddToSet:()=>XC,tryAndIgnoreErrors:()=>tryAndIgnoreErrors,tryCast:()=>kr,tryDirectoryExists:()=>tryDirectoryExists,tryExtractTSExtension:()=>qI,tryFileExists:()=>tryFileExists,tryGetClassExtendingExpressionWithTypeArguments:()=>N3,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>I3,tryGetDirectories:()=>tryGetDirectories,tryGetExtensionFromPath:()=>Q2,tryGetImportFromModuleSpecifier:()=>P4,tryGetJSDocSatisfiesTypeNode:()=>AS,tryGetModuleNameFromFile:()=>Y8,tryGetModuleSpecifierFromDeclaration:()=>sN,tryGetNativePerformanceHooks:()=>m5,tryGetPropertyAccessOrIdentifierToString:()=>j0,tryGetPropertyNameOfBindingOrAssignmentElement:()=>e7,tryGetSourceMappingURL:()=>tryGetSourceMappingURL,tryGetTextOfPropertyName:()=>Zg,tryIOAndConsumeErrors:()=>tryIOAndConsumeErrors,tryParsePattern:()=>fS,tryParsePatterns:()=>kM,tryParseRawSourceMap:()=>tryParseRawSourceMap,tryReadDirectory:()=>tryReadDirectory,tryReadFile:()=>tryReadFile,tryRemoveDirectoryPrefix:()=>fM,tryRemoveExtension:()=>pS,tryRemovePrefix:()=>rT,tryRemoveSuffix:()=>X9,typeAcquisitionDeclarations:()=>typeAcquisitionDeclarations,typeAliasNamePart:()=>typeAliasNamePart,typeDirectiveIsEqualTo:()=>tD,typeKeywords:()=>typeKeywords,typeParameterNamePart:()=>typeParameterNamePart,typeReferenceResolutionNameAndModeGetter:()=>typeReferenceResolutionNameAndModeGetter,typeToDisplayParts:()=>typeToDisplayParts,unchangedPollThresholds:()=>unchangedPollThresholds,unchangedTextChangeRange:()=>Gg,unescapeLeadingUnderscores:()=>Xo,unmangleScopedPackageName:()=>unmangleScopedPackageName,unorderedRemoveItem:()=>tT,unorderedRemoveItemAt:()=>pg,unreachableCodeIsError:()=>GO,unusedLabelIsError:()=>XO,unwrapInnermostStatementOfLabel:()=>dP,updateErrorForNoInputFiles:()=>updateErrorForNoInputFiles,updateLanguageServiceSourceFile:()=>A7,updateMissingFilePathsWatch:()=>updateMissingFilePathsWatch,updatePackageJsonWatch:()=>updatePackageJsonWatch,updateResolutionField:()=>updateResolutionField,updateSharedExtendedConfigFileWatcher:()=>updateSharedExtendedConfigFileWatcher,updateSourceFile:()=>Vb,updateWatchingWildcardDirectories:()=>updateWatchingWildcardDirectories,usesExtensionsOnImports:()=>uS,usingSingleLineStringWriter:()=>VA,utf16EncodeAsString:()=>$d,validateLocaleAndSetLanguage:()=>ak,valuesHelper:()=>valuesHelper,version:()=>uf,versionMajorMinor:()=>Lv,visitArray:()=>visitArray,visitCommaListElements:()=>visitCommaListElements,visitEachChild:()=>visitEachChild,visitFunctionBody:()=>visitFunctionBody,visitIterationBody:()=>visitIterationBody,visitLexicalEnvironment:()=>visitLexicalEnvironment,visitNode:()=>visitNode,visitNodes:()=>visitNodes2,visitParameterList:()=>visitParameterList,walkUpBindingElementsAndPatterns:()=>HT,walkUpLexicalEnvironments:()=>walkUpLexicalEnvironments,walkUpOuterExpressions:()=>SR,walkUpParenthesizedExpressions:()=>B4,walkUpParenthesizedTypes:()=>xN,walkUpParenthesizedTypesAndGetParentAndChild:()=>SN,whitespaceOrMapCommentRegExp:()=>whitespaceOrMapCommentRegExp,writeCommentRange:()=>EI,writeFile:()=>fI,writeFileEnsuringDirectories:()=>mI,zipToModeAwareCache:()=>zipToModeAwareCache,zipWith:()=>rh});var Ov=Ht({"src/typescript/_namespaces/ts.ts"(){"use strict";En(),y7(),q7(),yB()}}),hB=PC({"src/typescript/typescript.ts"(e,t){Ov(),Ov(),typeof console<"u"&&(M.loggingHost={log(n,i){switch(n){case 1:return console.error(i);case 2:return console.warn(i);case 3:return console.log(i);case 4:return console.log(i)}}}),t.exports=z7}});W7.exports=hB()});var o1=tt(V7=>{V7.typescriptVersionIsAtLeast=new Proxy({},{get:()=>!0})});var Gb=tt(Qr=>{"use strict";var gB=Qr&&Qr.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,s)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),bB=Qr&&Qr.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),vB=Qr&&Qr.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&gB(t,e,n);return bB(t,e),t};Object.defineProperty(Qr,"__esModule",{value:!0});Qr.getDecorators=Qr.getModifiers=void 0;var j_=vB(Cn()),TB=o1(),H7=TB.typescriptVersionIsAtLeast["4.8"];function xB(e){var t;if(e!=null){if(H7){if(j_.canHaveModifiers(e)){let n=j_.getModifiers(e);return n?Array.from(n):void 0}return}return(t=e.modifiers)===null||t===void 0?void 0:t.filter(n=>!j_.isDecorator(n))}}Qr.getModifiers=xB;function SB(e){var t;if(e!=null){if(H7){if(j_.canHaveDecorators(e)){let n=j_.getDecorators(e);return n?Array.from(n):void 0}return}return(t=e.decorators)===null||t===void 0?void 0:t.filter(j_.isDecorator)}}Qr.getDecorators=SB});var K7=tt(s1=>{"use strict";Object.defineProperty(s1,"__esModule",{value:!0});s1.xhtmlEntities=void 0;s1.xhtmlEntities={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}});var Xb=tt(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.AST_TOKEN_TYPES=oo.AST_NODE_TYPES=void 0;var wB;(function(e){e.AccessorProperty="AccessorProperty",e.ArrayExpression="ArrayExpression",e.ArrayPattern="ArrayPattern",e.ArrowFunctionExpression="ArrowFunctionExpression",e.AssignmentExpression="AssignmentExpression",e.AssignmentPattern="AssignmentPattern",e.AwaitExpression="AwaitExpression",e.BinaryExpression="BinaryExpression",e.BlockStatement="BlockStatement",e.BreakStatement="BreakStatement",e.CallExpression="CallExpression",e.CatchClause="CatchClause",e.ChainExpression="ChainExpression",e.ClassBody="ClassBody",e.ClassDeclaration="ClassDeclaration",e.ClassExpression="ClassExpression",e.ConditionalExpression="ConditionalExpression",e.ContinueStatement="ContinueStatement",e.DebuggerStatement="DebuggerStatement",e.Decorator="Decorator",e.DoWhileStatement="DoWhileStatement",e.EmptyStatement="EmptyStatement",e.ExportAllDeclaration="ExportAllDeclaration",e.ExportDefaultDeclaration="ExportDefaultDeclaration",e.ExportNamedDeclaration="ExportNamedDeclaration",e.ExportSpecifier="ExportSpecifier",e.ExpressionStatement="ExpressionStatement",e.ForInStatement="ForInStatement",e.ForOfStatement="ForOfStatement",e.ForStatement="ForStatement",e.FunctionDeclaration="FunctionDeclaration",e.FunctionExpression="FunctionExpression",e.Identifier="Identifier",e.IfStatement="IfStatement",e.ImportAttribute="ImportAttribute",e.ImportDeclaration="ImportDeclaration",e.ImportDefaultSpecifier="ImportDefaultSpecifier",e.ImportExpression="ImportExpression",e.ImportNamespaceSpecifier="ImportNamespaceSpecifier",e.ImportSpecifier="ImportSpecifier",e.JSXAttribute="JSXAttribute",e.JSXClosingElement="JSXClosingElement",e.JSXClosingFragment="JSXClosingFragment",e.JSXElement="JSXElement",e.JSXEmptyExpression="JSXEmptyExpression",e.JSXExpressionContainer="JSXExpressionContainer",e.JSXFragment="JSXFragment",e.JSXIdentifier="JSXIdentifier",e.JSXMemberExpression="JSXMemberExpression",e.JSXNamespacedName="JSXNamespacedName",e.JSXOpeningElement="JSXOpeningElement",e.JSXOpeningFragment="JSXOpeningFragment",e.JSXSpreadAttribute="JSXSpreadAttribute",e.JSXSpreadChild="JSXSpreadChild",e.JSXText="JSXText",e.LabeledStatement="LabeledStatement",e.Literal="Literal",e.LogicalExpression="LogicalExpression",e.MemberExpression="MemberExpression",e.MetaProperty="MetaProperty",e.MethodDefinition="MethodDefinition",e.NewExpression="NewExpression",e.ObjectExpression="ObjectExpression",e.ObjectPattern="ObjectPattern",e.PrivateIdentifier="PrivateIdentifier",e.Program="Program",e.Property="Property",e.PropertyDefinition="PropertyDefinition",e.RestElement="RestElement",e.ReturnStatement="ReturnStatement",e.SequenceExpression="SequenceExpression",e.SpreadElement="SpreadElement",e.StaticBlock="StaticBlock",e.Super="Super",e.SwitchCase="SwitchCase",e.SwitchStatement="SwitchStatement",e.TaggedTemplateExpression="TaggedTemplateExpression",e.TemplateElement="TemplateElement",e.TemplateLiteral="TemplateLiteral",e.ThisExpression="ThisExpression",e.ThrowStatement="ThrowStatement",e.TryStatement="TryStatement",e.UnaryExpression="UnaryExpression",e.UpdateExpression="UpdateExpression",e.VariableDeclaration="VariableDeclaration",e.VariableDeclarator="VariableDeclarator",e.WhileStatement="WhileStatement",e.WithStatement="WithStatement",e.YieldExpression="YieldExpression",e.TSAbstractAccessorProperty="TSAbstractAccessorProperty",e.TSAbstractKeyword="TSAbstractKeyword",e.TSAbstractMethodDefinition="TSAbstractMethodDefinition",e.TSAbstractPropertyDefinition="TSAbstractPropertyDefinition",e.TSAnyKeyword="TSAnyKeyword",e.TSArrayType="TSArrayType",e.TSAsExpression="TSAsExpression",e.TSAsyncKeyword="TSAsyncKeyword",e.TSBigIntKeyword="TSBigIntKeyword",e.TSBooleanKeyword="TSBooleanKeyword",e.TSCallSignatureDeclaration="TSCallSignatureDeclaration",e.TSClassImplements="TSClassImplements",e.TSConditionalType="TSConditionalType",e.TSConstructorType="TSConstructorType",e.TSConstructSignatureDeclaration="TSConstructSignatureDeclaration",e.TSDeclareFunction="TSDeclareFunction",e.TSDeclareKeyword="TSDeclareKeyword",e.TSEmptyBodyFunctionExpression="TSEmptyBodyFunctionExpression",e.TSEnumDeclaration="TSEnumDeclaration",e.TSEnumMember="TSEnumMember",e.TSExportAssignment="TSExportAssignment",e.TSExportKeyword="TSExportKeyword",e.TSExternalModuleReference="TSExternalModuleReference",e.TSFunctionType="TSFunctionType",e.TSInstantiationExpression="TSInstantiationExpression",e.TSImportEqualsDeclaration="TSImportEqualsDeclaration",e.TSImportType="TSImportType",e.TSIndexedAccessType="TSIndexedAccessType",e.TSIndexSignature="TSIndexSignature",e.TSInferType="TSInferType",e.TSInterfaceBody="TSInterfaceBody",e.TSInterfaceDeclaration="TSInterfaceDeclaration",e.TSInterfaceHeritage="TSInterfaceHeritage",e.TSIntersectionType="TSIntersectionType",e.TSIntrinsicKeyword="TSIntrinsicKeyword",e.TSLiteralType="TSLiteralType",e.TSMappedType="TSMappedType",e.TSMethodSignature="TSMethodSignature",e.TSModuleBlock="TSModuleBlock",e.TSModuleDeclaration="TSModuleDeclaration",e.TSNamedTupleMember="TSNamedTupleMember",e.TSNamespaceExportDeclaration="TSNamespaceExportDeclaration",e.TSNeverKeyword="TSNeverKeyword",e.TSNonNullExpression="TSNonNullExpression",e.TSNullKeyword="TSNullKeyword",e.TSNumberKeyword="TSNumberKeyword",e.TSObjectKeyword="TSObjectKeyword",e.TSOptionalType="TSOptionalType",e.TSParameterProperty="TSParameterProperty",e.TSPrivateKeyword="TSPrivateKeyword",e.TSPropertySignature="TSPropertySignature",e.TSProtectedKeyword="TSProtectedKeyword",e.TSPublicKeyword="TSPublicKeyword",e.TSQualifiedName="TSQualifiedName",e.TSReadonlyKeyword="TSReadonlyKeyword",e.TSRestType="TSRestType",e.TSSatisfiesExpression="TSSatisfiesExpression",e.TSStaticKeyword="TSStaticKeyword",e.TSStringKeyword="TSStringKeyword",e.TSSymbolKeyword="TSSymbolKeyword",e.TSTemplateLiteralType="TSTemplateLiteralType",e.TSThisType="TSThisType",e.TSTupleType="TSTupleType",e.TSTypeAliasDeclaration="TSTypeAliasDeclaration",e.TSTypeAnnotation="TSTypeAnnotation",e.TSTypeAssertion="TSTypeAssertion",e.TSTypeLiteral="TSTypeLiteral",e.TSTypeOperator="TSTypeOperator",e.TSTypeParameter="TSTypeParameter",e.TSTypeParameterDeclaration="TSTypeParameterDeclaration",e.TSTypeParameterInstantiation="TSTypeParameterInstantiation",e.TSTypePredicate="TSTypePredicate",e.TSTypeQuery="TSTypeQuery",e.TSTypeReference="TSTypeReference",e.TSUndefinedKeyword="TSUndefinedKeyword",e.TSUnionType="TSUnionType",e.TSUnknownKeyword="TSUnknownKeyword",e.TSVoidKeyword="TSVoidKeyword"})(wB=oo.AST_NODE_TYPES||(oo.AST_NODE_TYPES={}));var EB;(function(e){e.Boolean="Boolean",e.Identifier="Identifier",e.JSXIdentifier="JSXIdentifier",e.JSXText="JSXText",e.Keyword="Keyword",e.Null="Null",e.Numeric="Numeric",e.Punctuator="Punctuator",e.RegularExpression="RegularExpression",e.String="String",e.Template="Template",e.Block="Block",e.Line="Line"})(EB=oo.AST_TOKEN_TYPES||(oo.AST_TOKEN_TYPES={}))});var X7=tt(G7=>{"use strict";Object.defineProperty(G7,"__esModule",{value:!0})});var Q7=tt($7=>{"use strict";Object.defineProperty($7,"__esModule",{value:!0})});var Y7=tt(Xi=>{"use strict";var CB=Xi&&Xi.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,s)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),kB=Xi&&Xi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),AB=Xi&&Xi.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&CB(t,e,n);return kB(t,e),t};Object.defineProperty(Xi,"__esModule",{value:!0});Xi.TSESTree=void 0;Xi.TSESTree=AB(Xb())});var ew=tt(Nr=>{"use strict";var DB=Nr&&Nr.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,s)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),$b=Nr&&Nr.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&DB(t,e,n)};Object.defineProperty(Nr,"__esModule",{value:!0});Nr.AST_TOKEN_TYPES=Nr.AST_NODE_TYPES=void 0;var Z7=Xb();Object.defineProperty(Nr,"AST_NODE_TYPES",{enumerable:!0,get:function(){return Z7.AST_NODE_TYPES}});Object.defineProperty(Nr,"AST_TOKEN_TYPES",{enumerable:!0,get:function(){return Z7.AST_TOKEN_TYPES}});$b(X7(),Nr);$b(Q7(),Nr);$b(Y7(),Nr)});var nw=tt(tw=>{"use strict";Object.defineProperty(tw,"__esModule",{value:!0})});var iw=tt(rw=>{"use strict";Object.defineProperty(rw,"__esModule",{value:!0})});var _1=tt(lr=>{"use strict";var PB=lr&&lr.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,s)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),aw=lr&&lr.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&PB(t,e,n)};Object.defineProperty(lr,"__esModule",{value:!0});lr.TSESTree=lr.AST_TOKEN_TYPES=lr.AST_NODE_TYPES=void 0;var Qb=ew();Object.defineProperty(lr,"AST_NODE_TYPES",{enumerable:!0,get:function(){return Qb.AST_NODE_TYPES}});Object.defineProperty(lr,"AST_TOKEN_TYPES",{enumerable:!0,get:function(){return Qb.AST_TOKEN_TYPES}});Object.defineProperty(lr,"TSESTree",{enumerable:!0,get:function(){return Qb.TSESTree}});aw(nw(),lr);aw(iw(),lr)});var l1=tt(xe=>{"use strict";var NB=xe&&xe.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,s)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),IB=xe&&xe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),OB=xe&&xe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&NB(t,e,n);return IB(t,e),t};Object.defineProperty(xe,"__esModule",{value:!0});xe.isThisInTypeQuery=xe.isThisIdentifier=xe.identifierIsThisKeyword=xe.firstDefined=xe.nodeHasTokens=xe.createError=xe.TSError=xe.convertTokens=xe.convertToken=xe.getTokenType=xe.isChildUnwrappableOptionalChain=xe.isChainExpression=xe.isOptional=xe.isComputedProperty=xe.unescapeStringLiteralText=xe.hasJSXAncestor=xe.findFirstMatchingAncestor=xe.findNextToken=xe.getTSNodeAccessibility=xe.getDeclarationKind=xe.isJSXToken=xe.isToken=xe.getRange=xe.canContainDirective=xe.getLocFor=xe.getLineAndCharacterFor=xe.getBinaryExpressionType=xe.isJSDocComment=xe.isComment=xe.isComma=xe.getLastModifier=xe.hasModifier=xe.isESTreeClassMember=xe.getTextForTokenKind=xe.isLogicalOperator=xe.isAssignmentOperator=void 0;var kn=OB(Cn()),e6=Gb(),MB=K7(),on=_1(),LB=o1(),ow=LB.typescriptVersionIsAtLeast["5.0"],ze=kn.SyntaxKind,JB=[ze.BarBarToken,ze.AmpersandAmpersandToken,ze.QuestionQuestionToken];function sw(e){return e.kind>=ze.FirstAssignment&&e.kind<=ze.LastAssignment}xe.isAssignmentOperator=sw;function _w(e){return JB.includes(e.kind)}xe.isLogicalOperator=_w;function RB(e){return kn.tokenToString(e)}xe.getTextForTokenKind=RB;function FB(e){return e.kind!==ze.SemicolonClassElement}xe.isESTreeClassMember=FB;function jB(e,t){let n=(0,e6.getModifiers)(t);return(n==null?void 0:n.some(i=>i.kind===e))===!0}xe.hasModifier=jB;function BB(e){var t;let n=(0,e6.getModifiers)(e);return n==null?null:(t=n[n.length-1])!==null&&t!==void 0?t:null}xe.getLastModifier=BB;function UB(e){return e.kind===ze.CommaToken}xe.isComma=UB;function cw(e){return e.kind===ze.SingleLineCommentTrivia||e.kind===ze.MultiLineCommentTrivia}xe.isComment=cw;function lw(e){return e.kind===ze.JSDocComment}xe.isJSDocComment=lw;function qB(e){return sw(e)?on.AST_NODE_TYPES.AssignmentExpression:_w(e)?on.AST_NODE_TYPES.LogicalExpression:on.AST_NODE_TYPES.BinaryExpression}xe.getBinaryExpressionType=qB;function Yb(e,t){let n=t.getLineAndCharacterOfPosition(e);return{line:n.line+1,column:n.character}}xe.getLineAndCharacterFor=Yb;function Zb(e,t,n){return{start:Yb(e,n),end:Yb(t,n)}}xe.getLocFor=Zb;function zB(e){if(e.kind===kn.SyntaxKind.Block)switch(e.parent.kind){case kn.SyntaxKind.Constructor:case kn.SyntaxKind.GetAccessor:case kn.SyntaxKind.SetAccessor:case kn.SyntaxKind.ArrowFunction:case kn.SyntaxKind.FunctionExpression:case kn.SyntaxKind.FunctionDeclaration:case kn.SyntaxKind.MethodDeclaration:return!0;default:return!1}return!0}xe.canContainDirective=zB;function WB(e,t){return[e.getStart(t),e.getEnd()]}xe.getRange=WB;function uw(e){return e.kind>=ze.FirstToken&&e.kind<=ze.LastToken}xe.isToken=uw;function t6(e){return e.kind>=ze.JsxElement&&e.kind<=ze.JsxAttribute}xe.isJSXToken=t6;function VB(e){return e.flags&kn.NodeFlags.Let?"let":e.flags&kn.NodeFlags.Const?"const":"var"}xe.getDeclarationKind=VB;function HB(e){let t=(0,e6.getModifiers)(e);if(t==null)return null;for(let n of t)switch(n.kind){case ze.PublicKeyword:return"public";case ze.ProtectedKeyword:return"protected";case ze.PrivateKeyword:return"private";default:break}return null}xe.getTSNodeAccessibility=HB;function KB(e,t,n){return i(t);function i(s){return kn.isToken(s)&&s.pos===e.end?s:gw(s.getChildren(n),l=>(l.pos<=e.pos&&l.end>e.end||l.pos===e.end)&&hw(l,n)?i(l):void 0)}}xe.findNextToken=KB;function pw(e,t){for(;e;){if(t(e))return e;e=e.parent}}xe.findFirstMatchingAncestor=pw;function dw(e){return!!pw(e,t6)}xe.hasJSXAncestor=dw;function GB(e){return e.replace(/&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g,t=>{let n=t.slice(1,-1);if(n[0]==="#"){let i=n[1]==="x"?parseInt(n.slice(2),16):parseInt(n.slice(1),10);return i>1114111?t:String.fromCodePoint(i)}return MB.xhtmlEntities[n]||t})}xe.unescapeStringLiteralText=GB;function XB(e){return e.kind===ze.ComputedPropertyName}xe.isComputedProperty=XB;function $B(e){return e.questionToken?e.questionToken.kind===ze.QuestionToken:!1}xe.isOptional=$B;function fw(e){return e.type===on.AST_NODE_TYPES.ChainExpression}xe.isChainExpression=fw;function QB(e,t){return fw(t)&&e.expression.kind!==kn.SyntaxKind.ParenthesizedExpression}xe.isChildUnwrappableOptionalChain=QB;function mw(e){let t;if(ow&&e.kind===ze.Identifier?t=kn.identifierToKeywordKind(e):"originalKeywordKind"in e&&(t=e.originalKeywordKind),t)return t===ze.NullKeyword?on.AST_TOKEN_TYPES.Null:t>=ze.FirstFutureReservedWord&&t<=ze.LastKeyword?on.AST_TOKEN_TYPES.Identifier:on.AST_TOKEN_TYPES.Keyword;if(e.kind>=ze.FirstKeyword&&e.kind<=ze.LastFutureReservedWord)return e.kind===ze.FalseKeyword||e.kind===ze.TrueKeyword?on.AST_TOKEN_TYPES.Boolean:on.AST_TOKEN_TYPES.Keyword;if(e.kind>=ze.FirstPunctuation&&e.kind<=ze.LastPunctuation)return on.AST_TOKEN_TYPES.Punctuator;if(e.kind>=ze.NoSubstitutionTemplateLiteral&&e.kind<=ze.TemplateTail)return on.AST_TOKEN_TYPES.Template;switch(e.kind){case ze.NumericLiteral:return on.AST_TOKEN_TYPES.Numeric;case ze.JsxText:return on.AST_TOKEN_TYPES.JSXText;case ze.StringLiteral:return e.parent&&(e.parent.kind===ze.JsxAttribute||e.parent.kind===ze.JsxElement)?on.AST_TOKEN_TYPES.JSXText:on.AST_TOKEN_TYPES.String;case ze.RegularExpressionLiteral:return on.AST_TOKEN_TYPES.RegularExpression;case ze.Identifier:case ze.ConstructorKeyword:case ze.GetKeyword:case ze.SetKeyword:default:}return e.parent&&e.kind===ze.Identifier&&(t6(e.parent)||e.parent.kind===ze.PropertyAccessExpression&&dw(e))?on.AST_TOKEN_TYPES.JSXIdentifier:on.AST_TOKEN_TYPES.Identifier}xe.getTokenType=mw;function yw(e,t){let n=e.kind===ze.JsxText?e.getFullStart():e.getStart(t),i=e.getEnd(),s=t.text.slice(n,i),l=mw(e);return l===on.AST_TOKEN_TYPES.RegularExpression?{type:l,value:s,range:[n,i],loc:Zb(n,i,t),regex:{pattern:s.slice(1,s.lastIndexOf("/")),flags:s.slice(s.lastIndexOf("/")+1)}}:{type:l,value:s,range:[n,i],loc:Zb(n,i,t)}}xe.convertToken=yw;function YB(e){let t=[];function n(i){if(!(cw(i)||lw(i)))if(uw(i)&&i.kind!==ze.EndOfFileToken){let s=yw(i,e);s&&t.push(s)}else i.getChildren(e).forEach(n)}return n(e),t}xe.convertTokens=YB;var c1=class extends Error{constructor(t,n,i,s,l){super(t),this.fileName=n,this.index=i,this.lineNumber=s,this.column=l,Object.defineProperty(this,"name",{value:new.target.name,enumerable:!1,configurable:!0})}};xe.TSError=c1;function ZB(e,t,n){let i=e.getLineAndCharacterOfPosition(t);return new c1(n,e.fileName,t,i.line+1,i.character)}xe.createError=ZB;function hw(e,t){return e.kind===ze.EndOfFileToken?!!e.jsDoc:e.getWidth(t)!==0}xe.nodeHasTokens=hw;function gw(e,t){if(e!==void 0)for(let n=0;n{"use strict";var tU=Yr&&Yr.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,s)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),nU=Yr&&Yr.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),rU=Yr&&Yr.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&tU(t,e,n);return nU(t,e),t};Object.defineProperty(Yr,"__esModule",{value:!0});Yr.Converter=Yr.convertError=void 0;var so=rU(Cn()),$i=Gb(),ye=l1(),q=_1(),Tw=o1(),O=so.SyntaxKind;function iU(e){return(0,ye.createError)(e.file,e.start,"message"in e&&e.message||e.messageText)}Yr.convertError=iU;var n6=class{constructor(t,n){this.esTreeNodeToTSNodeMap=new WeakMap,this.tsNodeToESTreeNodeMap=new WeakMap,this.allowPattern=!1,this.inTypeMode=!1,this.ast=t,this.options=Object.assign({},n)}getASTMaps(){return{esTreeNodeToTSNodeMap:this.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:this.tsNodeToESTreeNodeMap}}convertProgram(){return this.converter(this.ast)}converter(t,n,i,s){if(!t)return null;let l=this.inTypeMode,d=this.allowPattern;i!==void 0&&(this.inTypeMode=i),s!==void 0&&(this.allowPattern=s);let y=this.convertNode(t,n??t.parent);return this.registerTSNodeInNodeMap(t,y),this.inTypeMode=l,this.allowPattern=d,y}fixExports(t,n){let i=(0,$i.getModifiers)(t);if((i==null?void 0:i[0].kind)===O.ExportKeyword){this.registerTSNodeInNodeMap(t,n);let s=i[0],l=i[1],d=l&&l.kind===O.DefaultKeyword,y=d?(0,ye.findNextToken)(l,this.ast,this.ast):(0,ye.findNextToken)(s,this.ast,this.ast);if(n.range[0]=y.getStart(this.ast),n.loc=(0,ye.getLocFor)(n.range[0],n.range[1],this.ast),d)return this.createNode(t,{type:q.AST_NODE_TYPES.ExportDefaultDeclaration,declaration:n,range:[s.getStart(this.ast),n.range[1]],exportKind:"value"});{let p=n.type===q.AST_NODE_TYPES.TSInterfaceDeclaration||n.type===q.AST_NODE_TYPES.TSTypeAliasDeclaration,x="declare"in n&&n.declare===!0;return this.createNode(t,{type:q.AST_NODE_TYPES.ExportNamedDeclaration,declaration:n,specifiers:[],source:null,exportKind:p||x?"type":"value",range:[s.getStart(this.ast),n.range[1]],assertions:[]})}}return n}registerTSNodeInNodeMap(t,n){n&&this.options.shouldPreserveNodeMaps&&(this.tsNodeToESTreeNodeMap.has(t)||this.tsNodeToESTreeNodeMap.set(t,n))}convertPattern(t,n){return this.converter(t,n,this.inTypeMode,!0)}convertChild(t,n){return this.converter(t,n,this.inTypeMode,!1)}convertType(t,n){return this.converter(t,n,!0,!1)}createNode(t,n){let i=n;return i.range||(i.range=(0,ye.getRange)(t,this.ast)),i.loc||(i.loc=(0,ye.getLocFor)(i.range[0],i.range[1],this.ast)),i&&this.options.shouldPreserveNodeMaps&&this.esTreeNodeToTSNodeMap.set(i,t),i}convertBindingNameWithTypeAnnotation(t,n,i){let s=this.convertPattern(t);return n&&(s.typeAnnotation=this.convertTypeAnnotation(n,i),this.fixParentLocation(s,s.typeAnnotation.range)),s}convertTypeAnnotation(t,n){let i=(n==null?void 0:n.kind)===O.FunctionType||(n==null?void 0:n.kind)===O.ConstructorType?2:1,s=t.getFullStart()-i,l=(0,ye.getLocFor)(s,t.end,this.ast);return{type:q.AST_NODE_TYPES.TSTypeAnnotation,loc:l,range:[s,t.end],typeAnnotation:this.convertType(t)}}convertBodyExpressions(t,n){let i=(0,ye.canContainDirective)(n);return t.map(s=>{let l=this.convertChild(s);if(i)if(l!=null&&l.expression&&so.isExpressionStatement(s)&&so.isStringLiteral(s.expression)){let d=l.expression.raw;return l.directive=d.slice(1,-1),l}else i=!1;return l}).filter(s=>s)}convertTypeArgumentsToTypeParameters(t,n){let i=(0,ye.findNextToken)(t,this.ast,this.ast);return this.createNode(n,{type:q.AST_NODE_TYPES.TSTypeParameterInstantiation,range:[t.pos-1,i.end],params:t.map(s=>this.convertType(s))})}convertTSTypeParametersToTypeParametersDeclaration(t){let n=(0,ye.findNextToken)(t,this.ast,this.ast);return{type:q.AST_NODE_TYPES.TSTypeParameterDeclaration,range:[t.pos-1,n.end],loc:(0,ye.getLocFor)(t.pos-1,n.end,this.ast),params:t.map(i=>this.convertType(i))}}convertParameters(t){return t!=null&&t.length?t.map(n=>{let i=this.convertChild(n),s=(0,$i.getDecorators)(n);return s!=null&&s.length&&(i.decorators=s.map(l=>this.convertChild(l))),i}):[]}convertChainExpression(t,n){let{child:i,isOptional:s}=(()=>t.type===q.AST_NODE_TYPES.MemberExpression?{child:t.object,isOptional:t.optional}:t.type===q.AST_NODE_TYPES.CallExpression?{child:t.callee,isOptional:t.optional}:{child:t.expression,isOptional:!1})(),l=(0,ye.isChildUnwrappableOptionalChain)(n,i);if(!l&&!s)return t;if(l&&(0,ye.isChainExpression)(i)){let d=i.expression;t.type===q.AST_NODE_TYPES.MemberExpression?t.object=d:t.type===q.AST_NODE_TYPES.CallExpression?t.callee=d:t.expression=d}return this.createNode(n,{type:q.AST_NODE_TYPES.ChainExpression,expression:t})}deeplyCopy(t){if(t.kind===so.SyntaxKind.JSDocFunctionType)throw(0,ye.createError)(this.ast,t.pos,"JSDoc types can only be used inside documentation comments.");let n=`TS${O[t.kind]}`;if(this.options.errorOnUnknownASTType&&!q.AST_NODE_TYPES[n])throw new Error(`Unknown AST_NODE_TYPE: "${n}"`);let i=this.createNode(t,{type:n});"type"in t&&(i.typeAnnotation=t.type&&"kind"in t.type&&so.isTypeNode(t.type)?this.convertTypeAnnotation(t.type,t):null),"typeArguments"in t&&(i.typeParameters=t.typeArguments&&"pos"in t.typeArguments?this.convertTypeArgumentsToTypeParameters(t.typeArguments,t):null),"typeParameters"in t&&(i.typeParameters=t.typeParameters&&"pos"in t.typeParameters?this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters):null);let s=(0,$i.getDecorators)(t);s!=null&&s.length&&(i.decorators=s.map(d=>this.convertChild(d)));let l=new Set(["_children","decorators","end","flags","illegalDecorators","heritageClauses","locals","localSymbol","jsDoc","kind","modifierFlagsCache","modifiers","nextContainer","parent","pos","symbol","transformFlags","type","typeArguments","typeParameters"]);return Object.entries(t).filter(([d])=>!l.has(d)).forEach(([d,y])=>{Array.isArray(y)?i[d]=y.map(p=>this.convertChild(p)):y&&typeof y=="object"&&y.kind?i[d]=this.convertChild(y):i[d]=y}),i}convertJSXIdentifier(t){let n=this.createNode(t,{type:q.AST_NODE_TYPES.JSXIdentifier,name:t.getText()});return this.registerTSNodeInNodeMap(t,n),n}convertJSXNamespaceOrIdentifier(t){let n=t.getText(),i=n.indexOf(":");if(i>0){let s=(0,ye.getRange)(t,this.ast),l=this.createNode(t,{type:q.AST_NODE_TYPES.JSXNamespacedName,namespace:this.createNode(t,{type:q.AST_NODE_TYPES.JSXIdentifier,name:n.slice(0,i),range:[s[0],s[0]+i]}),name:this.createNode(t,{type:q.AST_NODE_TYPES.JSXIdentifier,name:n.slice(i+1),range:[s[0]+i+1,s[1]]}),range:s});return this.registerTSNodeInNodeMap(t,l),l}return this.convertJSXIdentifier(t)}convertJSXTagName(t,n){let i;switch(t.kind){case O.PropertyAccessExpression:if(t.name.kind===O.PrivateIdentifier)throw new Error("Non-private identifier expected.");i=this.createNode(t,{type:q.AST_NODE_TYPES.JSXMemberExpression,object:this.convertJSXTagName(t.expression,n),property:this.convertJSXIdentifier(t.name)});break;case O.ThisKeyword:case O.Identifier:default:return this.convertJSXNamespaceOrIdentifier(t)}return this.registerTSNodeInNodeMap(t,i),i}convertMethodSignature(t){let n=this.createNode(t,{type:q.AST_NODE_TYPES.TSMethodSignature,computed:(0,ye.isComputedProperty)(t.name),key:this.convertChild(t.name),params:this.convertParameters(t.parameters),kind:(()=>{switch(t.kind){case O.GetAccessor:return"get";case O.SetAccessor:return"set";case O.MethodSignature:return"method"}})()});(0,ye.isOptional)(t)&&(n.optional=!0),t.type&&(n.returnType=this.convertTypeAnnotation(t.type,t)),(0,ye.hasModifier)(O.ReadonlyKeyword,t)&&(n.readonly=!0),t.typeParameters&&(n.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters));let i=(0,ye.getTSNodeAccessibility)(t);return i&&(n.accessibility=i),(0,ye.hasModifier)(O.ExportKeyword,t)&&(n.export=!0),(0,ye.hasModifier)(O.StaticKeyword,t)&&(n.static=!0),n}convertAssertClasue(t){return t===void 0?[]:t.elements.map(n=>this.convertChild(n))}applyModifiersToResult(t,n){if(!n)return;let i=[];for(let s of n)switch(s.kind){case O.ExportKeyword:case O.DefaultKeyword:break;case O.ConstKeyword:t.const=!0;break;case O.DeclareKeyword:t.declare=!0;break;default:i.push(this.convertChild(s));break}i.length>0&&(t.modifiers=i)}fixParentLocation(t,n){n[0]t.range[1]&&(t.range[1]=n[1],t.loc.end=(0,ye.getLineAndCharacterFor)(t.range[1],this.ast))}assertModuleSpecifier(t,n){var i;if(!n&&t.moduleSpecifier==null)throw(0,ye.createError)(this.ast,t.pos,"Module specifier must be a string literal.");if(t.moduleSpecifier&&((i=t.moduleSpecifier)===null||i===void 0?void 0:i.kind)!==O.StringLiteral)throw(0,ye.createError)(this.ast,t.moduleSpecifier.pos,"Module specifier must be a string literal.")}convertNode(t,n){var i,s,l,d,y,p,x,h,D,w;switch(t.kind){case O.SourceFile:return this.createNode(t,{type:q.AST_NODE_TYPES.Program,body:this.convertBodyExpressions(t.statements,t),sourceType:t.externalModuleIndicator?"module":"script",range:[t.getStart(this.ast),t.endOfFileToken.end]});case O.Block:return this.createNode(t,{type:q.AST_NODE_TYPES.BlockStatement,body:this.convertBodyExpressions(t.statements,t)});case O.Identifier:return(0,ye.isThisInTypeQuery)(t)?this.createNode(t,{type:q.AST_NODE_TYPES.ThisExpression}):this.createNode(t,{type:q.AST_NODE_TYPES.Identifier,name:t.text});case O.PrivateIdentifier:return this.createNode(t,{type:q.AST_NODE_TYPES.PrivateIdentifier,name:t.text.slice(1)});case O.WithStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.WithStatement,object:this.convertChild(t.expression),body:this.convertChild(t.statement)});case O.ReturnStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.ReturnStatement,argument:this.convertChild(t.expression)});case O.LabeledStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.LabeledStatement,label:this.convertChild(t.label),body:this.convertChild(t.statement)});case O.ContinueStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.ContinueStatement,label:this.convertChild(t.label)});case O.BreakStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.BreakStatement,label:this.convertChild(t.label)});case O.IfStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.IfStatement,test:this.convertChild(t.expression),consequent:this.convertChild(t.thenStatement),alternate:this.convertChild(t.elseStatement)});case O.SwitchStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.SwitchStatement,discriminant:this.convertChild(t.expression),cases:t.caseBlock.clauses.map(g=>this.convertChild(g))});case O.CaseClause:case O.DefaultClause:return this.createNode(t,{type:q.AST_NODE_TYPES.SwitchCase,test:t.kind===O.CaseClause?this.convertChild(t.expression):null,consequent:t.statements.map(g=>this.convertChild(g))});case O.ThrowStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.ThrowStatement,argument:this.convertChild(t.expression)});case O.TryStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.TryStatement,block:this.convertChild(t.tryBlock),handler:this.convertChild(t.catchClause),finalizer:this.convertChild(t.finallyBlock)});case O.CatchClause:return this.createNode(t,{type:q.AST_NODE_TYPES.CatchClause,param:t.variableDeclaration?this.convertBindingNameWithTypeAnnotation(t.variableDeclaration.name,t.variableDeclaration.type):null,body:this.convertChild(t.block)});case O.WhileStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.WhileStatement,test:this.convertChild(t.expression),body:this.convertChild(t.statement)});case O.DoStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.DoWhileStatement,test:this.convertChild(t.expression),body:this.convertChild(t.statement)});case O.ForStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.ForStatement,init:this.convertChild(t.initializer),test:this.convertChild(t.condition),update:this.convertChild(t.incrementor),body:this.convertChild(t.statement)});case O.ForInStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.ForInStatement,left:this.convertPattern(t.initializer),right:this.convertChild(t.expression),body:this.convertChild(t.statement)});case O.ForOfStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.ForOfStatement,left:this.convertPattern(t.initializer),right:this.convertChild(t.expression),body:this.convertChild(t.statement),await:!!(t.awaitModifier&&t.awaitModifier.kind===O.AwaitKeyword)});case O.FunctionDeclaration:{let g=(0,ye.hasModifier)(O.DeclareKeyword,t),A=this.createNode(t,{type:g||!t.body?q.AST_NODE_TYPES.TSDeclareFunction:q.AST_NODE_TYPES.FunctionDeclaration,id:this.convertChild(t.name),generator:!!t.asteriskToken,expression:!1,async:(0,ye.hasModifier)(O.AsyncKeyword,t),params:this.convertParameters(t.parameters),body:this.convertChild(t.body)||void 0});return t.type&&(A.returnType=this.convertTypeAnnotation(t.type,t)),t.typeParameters&&(A.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)),g&&(A.declare=!0),this.fixExports(t,A)}case O.VariableDeclaration:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.VariableDeclarator,id:this.convertBindingNameWithTypeAnnotation(t.name,t.type,t),init:this.convertChild(t.initializer)});return t.exclamationToken&&(g.definite=!0),g}case O.VariableStatement:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.VariableDeclaration,declarations:t.declarationList.declarations.map(A=>this.convertChild(A)),kind:(0,ye.getDeclarationKind)(t.declarationList)});return(0,ye.hasModifier)(O.DeclareKeyword,t)&&(g.declare=!0),this.fixExports(t,g)}case O.VariableDeclarationList:return this.createNode(t,{type:q.AST_NODE_TYPES.VariableDeclaration,declarations:t.declarations.map(g=>this.convertChild(g)),kind:(0,ye.getDeclarationKind)(t)});case O.ExpressionStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.ExpressionStatement,expression:this.convertChild(t.expression)});case O.ThisKeyword:return this.createNode(t,{type:q.AST_NODE_TYPES.ThisExpression});case O.ArrayLiteralExpression:return this.allowPattern?this.createNode(t,{type:q.AST_NODE_TYPES.ArrayPattern,elements:t.elements.map(g=>this.convertPattern(g))}):this.createNode(t,{type:q.AST_NODE_TYPES.ArrayExpression,elements:t.elements.map(g=>this.convertChild(g))});case O.ObjectLiteralExpression:return this.allowPattern?this.createNode(t,{type:q.AST_NODE_TYPES.ObjectPattern,properties:t.properties.map(g=>this.convertPattern(g))}):this.createNode(t,{type:q.AST_NODE_TYPES.ObjectExpression,properties:t.properties.map(g=>this.convertChild(g))});case O.PropertyAssignment:return this.createNode(t,{type:q.AST_NODE_TYPES.Property,key:this.convertChild(t.name),value:this.converter(t.initializer,t,this.inTypeMode,this.allowPattern),computed:(0,ye.isComputedProperty)(t.name),method:!1,shorthand:!1,kind:"init"});case O.ShorthandPropertyAssignment:return t.objectAssignmentInitializer?this.createNode(t,{type:q.AST_NODE_TYPES.Property,key:this.convertChild(t.name),value:this.createNode(t,{type:q.AST_NODE_TYPES.AssignmentPattern,left:this.convertPattern(t.name),right:this.convertChild(t.objectAssignmentInitializer)}),computed:!1,method:!1,shorthand:!0,kind:"init"}):this.createNode(t,{type:q.AST_NODE_TYPES.Property,key:this.convertChild(t.name),value:this.convertChild(t.name),computed:!1,method:!1,shorthand:!0,kind:"init"});case O.ComputedPropertyName:return this.convertChild(t.expression);case O.PropertyDeclaration:{let g=(0,ye.hasModifier)(O.AbstractKeyword,t),A=(0,ye.hasModifier)(O.AccessorKeyword,t),B=(()=>A?g?q.AST_NODE_TYPES.TSAbstractAccessorProperty:q.AST_NODE_TYPES.AccessorProperty:g?q.AST_NODE_TYPES.TSAbstractPropertyDefinition:q.AST_NODE_TYPES.PropertyDefinition)(),G=this.createNode(t,{type:B,key:this.convertChild(t.name),value:g?null:this.convertChild(t.initializer),computed:(0,ye.isComputedProperty)(t.name),static:(0,ye.hasModifier)(O.StaticKeyword,t),readonly:(0,ye.hasModifier)(O.ReadonlyKeyword,t)||void 0,declare:(0,ye.hasModifier)(O.DeclareKeyword,t),override:(0,ye.hasModifier)(O.OverrideKeyword,t)});t.type&&(G.typeAnnotation=this.convertTypeAnnotation(t.type,t));let oe=(0,$i.getDecorators)(t);oe&&(G.decorators=oe.map(W=>this.convertChild(W)));let Q=(0,ye.getTSNodeAccessibility)(t);return Q&&(G.accessibility=Q),(t.name.kind===O.Identifier||t.name.kind===O.ComputedPropertyName||t.name.kind===O.PrivateIdentifier)&&t.questionToken&&(G.optional=!0),t.exclamationToken&&(G.definite=!0),G.key.type===q.AST_NODE_TYPES.Literal&&t.questionToken&&(G.optional=!0),G}case O.GetAccessor:case O.SetAccessor:if(t.parent.kind===O.InterfaceDeclaration||t.parent.kind===O.TypeLiteral)return this.convertMethodSignature(t);case O.MethodDeclaration:{let g=this.createNode(t,{type:t.body?q.AST_NODE_TYPES.FunctionExpression:q.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,id:null,generator:!!t.asteriskToken,expression:!1,async:(0,ye.hasModifier)(O.AsyncKeyword,t),body:this.convertChild(t.body),range:[t.parameters.pos-1,t.end],params:[]});t.type&&(g.returnType=this.convertTypeAnnotation(t.type,t)),t.typeParameters&&(g.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters),this.fixParentLocation(g,g.typeParameters.range));let A;if(n.kind===O.ObjectLiteralExpression)g.params=t.parameters.map(B=>this.convertChild(B)),A=this.createNode(t,{type:q.AST_NODE_TYPES.Property,key:this.convertChild(t.name),value:g,computed:(0,ye.isComputedProperty)(t.name),method:t.kind===O.MethodDeclaration,shorthand:!1,kind:"init"});else{g.params=this.convertParameters(t.parameters);let B=(0,ye.hasModifier)(O.AbstractKeyword,t)?q.AST_NODE_TYPES.TSAbstractMethodDefinition:q.AST_NODE_TYPES.MethodDefinition;A=this.createNode(t,{type:B,key:this.convertChild(t.name),value:g,computed:(0,ye.isComputedProperty)(t.name),static:(0,ye.hasModifier)(O.StaticKeyword,t),kind:"method",override:(0,ye.hasModifier)(O.OverrideKeyword,t)});let G=(0,$i.getDecorators)(t);G&&(A.decorators=G.map(Q=>this.convertChild(Q)));let oe=(0,ye.getTSNodeAccessibility)(t);oe&&(A.accessibility=oe)}return t.questionToken&&(A.optional=!0),t.kind===O.GetAccessor?A.kind="get":t.kind===O.SetAccessor?A.kind="set":!A.static&&t.name.kind===O.StringLiteral&&t.name.text==="constructor"&&A.type!==q.AST_NODE_TYPES.Property&&(A.kind="constructor"),A}case O.Constructor:{let g=(0,ye.getLastModifier)(t),A=g&&(0,ye.findNextToken)(g,t,this.ast)||t.getFirstToken(),B=this.createNode(t,{type:t.body?q.AST_NODE_TYPES.FunctionExpression:q.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,id:null,params:this.convertParameters(t.parameters),generator:!1,expression:!1,async:!1,body:this.convertChild(t.body),range:[t.parameters.pos-1,t.end]});t.typeParameters&&(B.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters),this.fixParentLocation(B,B.typeParameters.range)),t.type&&(B.returnType=this.convertTypeAnnotation(t.type,t));let G=this.createNode(t,{type:q.AST_NODE_TYPES.Identifier,name:"constructor",range:[A.getStart(this.ast),A.end]}),oe=(0,ye.hasModifier)(O.StaticKeyword,t),Q=this.createNode(t,{type:(0,ye.hasModifier)(O.AbstractKeyword,t)?q.AST_NODE_TYPES.TSAbstractMethodDefinition:q.AST_NODE_TYPES.MethodDefinition,key:G,value:B,computed:!1,static:oe,kind:oe?"method":"constructor",override:!1}),W=(0,ye.getTSNodeAccessibility)(t);return W&&(Q.accessibility=W),Q}case O.FunctionExpression:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.FunctionExpression,id:this.convertChild(t.name),generator:!!t.asteriskToken,params:this.convertParameters(t.parameters),body:this.convertChild(t.body),async:(0,ye.hasModifier)(O.AsyncKeyword,t),expression:!1});return t.type&&(g.returnType=this.convertTypeAnnotation(t.type,t)),t.typeParameters&&(g.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)),g}case O.SuperKeyword:return this.createNode(t,{type:q.AST_NODE_TYPES.Super});case O.ArrayBindingPattern:return this.createNode(t,{type:q.AST_NODE_TYPES.ArrayPattern,elements:t.elements.map(g=>this.convertPattern(g))});case O.OmittedExpression:return null;case O.ObjectBindingPattern:return this.createNode(t,{type:q.AST_NODE_TYPES.ObjectPattern,properties:t.elements.map(g=>this.convertPattern(g))});case O.BindingElement:if(n.kind===O.ArrayBindingPattern){let g=this.convertChild(t.name,n);return t.initializer?this.createNode(t,{type:q.AST_NODE_TYPES.AssignmentPattern,left:g,right:this.convertChild(t.initializer)}):t.dotDotDotToken?this.createNode(t,{type:q.AST_NODE_TYPES.RestElement,argument:g}):g}else{let g;return t.dotDotDotToken?g=this.createNode(t,{type:q.AST_NODE_TYPES.RestElement,argument:this.convertChild((i=t.propertyName)!==null&&i!==void 0?i:t.name)}):g=this.createNode(t,{type:q.AST_NODE_TYPES.Property,key:this.convertChild((s=t.propertyName)!==null&&s!==void 0?s:t.name),value:this.convertChild(t.name),computed:!!(t.propertyName&&t.propertyName.kind===O.ComputedPropertyName),method:!1,shorthand:!t.propertyName,kind:"init"}),t.initializer&&(g.value=this.createNode(t,{type:q.AST_NODE_TYPES.AssignmentPattern,left:this.convertChild(t.name),right:this.convertChild(t.initializer),range:[t.name.getStart(this.ast),t.initializer.end]})),g}case O.ArrowFunction:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.ArrowFunctionExpression,generator:!1,id:null,params:this.convertParameters(t.parameters),body:this.convertChild(t.body),async:(0,ye.hasModifier)(O.AsyncKeyword,t),expression:t.body.kind!==O.Block});return t.type&&(g.returnType=this.convertTypeAnnotation(t.type,t)),t.typeParameters&&(g.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)),g}case O.YieldExpression:return this.createNode(t,{type:q.AST_NODE_TYPES.YieldExpression,delegate:!!t.asteriskToken,argument:this.convertChild(t.expression)});case O.AwaitExpression:return this.createNode(t,{type:q.AST_NODE_TYPES.AwaitExpression,argument:this.convertChild(t.expression)});case O.NoSubstitutionTemplateLiteral:return this.createNode(t,{type:q.AST_NODE_TYPES.TemplateLiteral,quasis:[this.createNode(t,{type:q.AST_NODE_TYPES.TemplateElement,value:{raw:this.ast.text.slice(t.getStart(this.ast)+1,t.end-1),cooked:t.text},tail:!0})],expressions:[]});case O.TemplateExpression:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.TemplateLiteral,quasis:[this.convertChild(t.head)],expressions:[]});return t.templateSpans.forEach(A=>{g.expressions.push(this.convertChild(A.expression)),g.quasis.push(this.convertChild(A.literal))}),g}case O.TaggedTemplateExpression:return this.createNode(t,{type:q.AST_NODE_TYPES.TaggedTemplateExpression,typeParameters:t.typeArguments?this.convertTypeArgumentsToTypeParameters(t.typeArguments,t):void 0,tag:this.convertChild(t.tag),quasi:this.convertChild(t.template)});case O.TemplateHead:case O.TemplateMiddle:case O.TemplateTail:{let g=t.kind===O.TemplateTail;return this.createNode(t,{type:q.AST_NODE_TYPES.TemplateElement,value:{raw:this.ast.text.slice(t.getStart(this.ast)+1,t.end-(g?1:2)),cooked:t.text},tail:g})}case O.SpreadAssignment:case O.SpreadElement:return this.allowPattern?this.createNode(t,{type:q.AST_NODE_TYPES.RestElement,argument:this.convertPattern(t.expression)}):this.createNode(t,{type:q.AST_NODE_TYPES.SpreadElement,argument:this.convertChild(t.expression)});case O.Parameter:{let g,A;return t.dotDotDotToken?g=A=this.createNode(t,{type:q.AST_NODE_TYPES.RestElement,argument:this.convertChild(t.name)}):t.initializer?(g=this.convertChild(t.name),A=this.createNode(t,{type:q.AST_NODE_TYPES.AssignmentPattern,left:g,right:this.convertChild(t.initializer)}),(0,$i.getModifiers)(t)&&(A.range[0]=g.range[0],A.loc=(0,ye.getLocFor)(A.range[0],A.range[1],this.ast))):g=A=this.convertChild(t.name,n),t.type&&(g.typeAnnotation=this.convertTypeAnnotation(t.type,t),this.fixParentLocation(g,g.typeAnnotation.range)),t.questionToken&&(t.questionToken.end>g.range[1]&&(g.range[1]=t.questionToken.end,g.loc.end=(0,ye.getLineAndCharacterFor)(g.range[1],this.ast)),g.optional=!0),(0,$i.getModifiers)(t)?this.createNode(t,{type:q.AST_NODE_TYPES.TSParameterProperty,accessibility:(l=(0,ye.getTSNodeAccessibility)(t))!==null&&l!==void 0?l:void 0,readonly:(0,ye.hasModifier)(O.ReadonlyKeyword,t)||void 0,static:(0,ye.hasModifier)(O.StaticKeyword,t)||void 0,export:(0,ye.hasModifier)(O.ExportKeyword,t)||void 0,override:(0,ye.hasModifier)(O.OverrideKeyword,t)||void 0,parameter:A}):A}case O.ClassDeclaration:case O.ClassExpression:{let g=(d=t.heritageClauses)!==null&&d!==void 0?d:[],A=t.kind===O.ClassDeclaration?q.AST_NODE_TYPES.ClassDeclaration:q.AST_NODE_TYPES.ClassExpression,B=g.find(se=>se.token===O.ExtendsKeyword),G=g.find(se=>se.token===O.ImplementsKeyword),oe=this.createNode(t,{type:A,id:this.convertChild(t.name),body:this.createNode(t,{type:q.AST_NODE_TYPES.ClassBody,body:[],range:[t.members.pos-1,t.end]}),superClass:B!=null&&B.types[0]?this.convertChild(B.types[0].expression):null});if(B){if(B.types.length>1)throw(0,ye.createError)(this.ast,B.types[1].pos,"Classes can only extend a single class.");!((y=B.types[0])===null||y===void 0)&&y.typeArguments&&(oe.superTypeParameters=this.convertTypeArgumentsToTypeParameters(B.types[0].typeArguments,B.types[0]))}t.typeParameters&&(oe.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)),G&&(oe.implements=G.types.map(se=>this.convertChild(se))),(0,ye.hasModifier)(O.AbstractKeyword,t)&&(oe.abstract=!0),(0,ye.hasModifier)(O.DeclareKeyword,t)&&(oe.declare=!0);let Q=(0,$i.getDecorators)(t);Q&&(oe.decorators=Q.map(se=>this.convertChild(se)));let W=t.members.filter(ye.isESTreeClassMember);return W.length&&(oe.body.body=W.map(se=>this.convertChild(se))),this.fixExports(t,oe)}case O.ModuleBlock:return this.createNode(t,{type:q.AST_NODE_TYPES.TSModuleBlock,body:this.convertBodyExpressions(t.statements,t)});case O.ImportDeclaration:{this.assertModuleSpecifier(t,!1);let g=this.createNode(t,{type:q.AST_NODE_TYPES.ImportDeclaration,source:this.convertChild(t.moduleSpecifier),specifiers:[],importKind:"value",assertions:this.convertAssertClasue(t.assertClause)});if(t.importClause&&(t.importClause.isTypeOnly&&(g.importKind="type"),t.importClause.name&&g.specifiers.push(this.convertChild(t.importClause)),t.importClause.namedBindings))switch(t.importClause.namedBindings.kind){case O.NamespaceImport:g.specifiers.push(this.convertChild(t.importClause.namedBindings));break;case O.NamedImports:g.specifiers=g.specifiers.concat(t.importClause.namedBindings.elements.map(A=>this.convertChild(A)));break}return g}case O.NamespaceImport:return this.createNode(t,{type:q.AST_NODE_TYPES.ImportNamespaceSpecifier,local:this.convertChild(t.name)});case O.ImportSpecifier:return this.createNode(t,{type:q.AST_NODE_TYPES.ImportSpecifier,local:this.convertChild(t.name),imported:this.convertChild((p=t.propertyName)!==null&&p!==void 0?p:t.name),importKind:t.isTypeOnly?"type":"value"});case O.ImportClause:{let g=this.convertChild(t.name);return this.createNode(t,{type:q.AST_NODE_TYPES.ImportDefaultSpecifier,local:g,range:g.range})}case O.ExportDeclaration:return((x=t.exportClause)===null||x===void 0?void 0:x.kind)===O.NamedExports?(this.assertModuleSpecifier(t,!0),this.createNode(t,{type:q.AST_NODE_TYPES.ExportNamedDeclaration,source:this.convertChild(t.moduleSpecifier),specifiers:t.exportClause.elements.map(g=>this.convertChild(g)),exportKind:t.isTypeOnly?"type":"value",declaration:null,assertions:this.convertAssertClasue(t.assertClause)})):(this.assertModuleSpecifier(t,!1),this.createNode(t,{type:q.AST_NODE_TYPES.ExportAllDeclaration,source:this.convertChild(t.moduleSpecifier),exportKind:t.isTypeOnly?"type":"value",exported:t.exportClause&&t.exportClause.kind===O.NamespaceExport?this.convertChild(t.exportClause.name):null,assertions:this.convertAssertClasue(t.assertClause)}));case O.ExportSpecifier:return this.createNode(t,{type:q.AST_NODE_TYPES.ExportSpecifier,local:this.convertChild((h=t.propertyName)!==null&&h!==void 0?h:t.name),exported:this.convertChild(t.name),exportKind:t.isTypeOnly?"type":"value"});case O.ExportAssignment:return t.isExportEquals?this.createNode(t,{type:q.AST_NODE_TYPES.TSExportAssignment,expression:this.convertChild(t.expression)}):this.createNode(t,{type:q.AST_NODE_TYPES.ExportDefaultDeclaration,declaration:this.convertChild(t.expression),exportKind:"value"});case O.PrefixUnaryExpression:case O.PostfixUnaryExpression:{let g=(0,ye.getTextForTokenKind)(t.operator);return g==="++"||g==="--"?this.createNode(t,{type:q.AST_NODE_TYPES.UpdateExpression,operator:g,prefix:t.kind===O.PrefixUnaryExpression,argument:this.convertChild(t.operand)}):this.createNode(t,{type:q.AST_NODE_TYPES.UnaryExpression,operator:g,prefix:t.kind===O.PrefixUnaryExpression,argument:this.convertChild(t.operand)})}case O.DeleteExpression:return this.createNode(t,{type:q.AST_NODE_TYPES.UnaryExpression,operator:"delete",prefix:!0,argument:this.convertChild(t.expression)});case O.VoidExpression:return this.createNode(t,{type:q.AST_NODE_TYPES.UnaryExpression,operator:"void",prefix:!0,argument:this.convertChild(t.expression)});case O.TypeOfExpression:return this.createNode(t,{type:q.AST_NODE_TYPES.UnaryExpression,operator:"typeof",prefix:!0,argument:this.convertChild(t.expression)});case O.TypeOperator:return this.createNode(t,{type:q.AST_NODE_TYPES.TSTypeOperator,operator:(0,ye.getTextForTokenKind)(t.operator),typeAnnotation:this.convertChild(t.type)});case O.BinaryExpression:if((0,ye.isComma)(t.operatorToken)){let g=this.createNode(t,{type:q.AST_NODE_TYPES.SequenceExpression,expressions:[]}),A=this.convertChild(t.left);return A.type===q.AST_NODE_TYPES.SequenceExpression&&t.left.kind!==O.ParenthesizedExpression?g.expressions=g.expressions.concat(A.expressions):g.expressions.push(A),g.expressions.push(this.convertChild(t.right)),g}else{let g=(0,ye.getBinaryExpressionType)(t.operatorToken);return this.allowPattern&&g===q.AST_NODE_TYPES.AssignmentExpression?this.createNode(t,{type:q.AST_NODE_TYPES.AssignmentPattern,left:this.convertPattern(t.left,t),right:this.convertChild(t.right)}):this.createNode(t,{type:g,operator:(0,ye.getTextForTokenKind)(t.operatorToken.kind),left:this.converter(t.left,t,this.inTypeMode,g===q.AST_NODE_TYPES.AssignmentExpression),right:this.convertChild(t.right)})}case O.PropertyAccessExpression:{let g=this.convertChild(t.expression),A=this.convertChild(t.name),B=!1,G=this.createNode(t,{type:q.AST_NODE_TYPES.MemberExpression,object:g,property:A,computed:B,optional:t.questionDotToken!==void 0});return this.convertChainExpression(G,t)}case O.ElementAccessExpression:{let g=this.convertChild(t.expression),A=this.convertChild(t.argumentExpression),B=!0,G=this.createNode(t,{type:q.AST_NODE_TYPES.MemberExpression,object:g,property:A,computed:B,optional:t.questionDotToken!==void 0});return this.convertChainExpression(G,t)}case O.CallExpression:{if(t.expression.kind===O.ImportKeyword){if(t.arguments.length!==1&&t.arguments.length!==2)throw(0,ye.createError)(this.ast,t.arguments.pos,"Dynamic import requires exactly one or two arguments.");return this.createNode(t,{type:q.AST_NODE_TYPES.ImportExpression,source:this.convertChild(t.arguments[0]),attributes:t.arguments[1]?this.convertChild(t.arguments[1]):null})}let g=this.convertChild(t.expression),A=t.arguments.map(G=>this.convertChild(G)),B=this.createNode(t,{type:q.AST_NODE_TYPES.CallExpression,callee:g,arguments:A,optional:t.questionDotToken!==void 0});return t.typeArguments&&(B.typeParameters=this.convertTypeArgumentsToTypeParameters(t.typeArguments,t)),this.convertChainExpression(B,t)}case O.NewExpression:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.NewExpression,callee:this.convertChild(t.expression),arguments:t.arguments?t.arguments.map(A=>this.convertChild(A)):[]});return t.typeArguments&&(g.typeParameters=this.convertTypeArgumentsToTypeParameters(t.typeArguments,t)),g}case O.ConditionalExpression:return this.createNode(t,{type:q.AST_NODE_TYPES.ConditionalExpression,test:this.convertChild(t.condition),consequent:this.convertChild(t.whenTrue),alternate:this.convertChild(t.whenFalse)});case O.MetaProperty:return this.createNode(t,{type:q.AST_NODE_TYPES.MetaProperty,meta:this.createNode(t.getFirstToken(),{type:q.AST_NODE_TYPES.Identifier,name:(0,ye.getTextForTokenKind)(t.keywordToken)}),property:this.convertChild(t.name)});case O.Decorator:return this.createNode(t,{type:q.AST_NODE_TYPES.Decorator,expression:this.convertChild(t.expression)});case O.StringLiteral:return this.createNode(t,{type:q.AST_NODE_TYPES.Literal,value:n.kind===O.JsxAttribute?(0,ye.unescapeStringLiteralText)(t.text):t.text,raw:t.getText()});case O.NumericLiteral:return this.createNode(t,{type:q.AST_NODE_TYPES.Literal,value:Number(t.text),raw:t.getText()});case O.BigIntLiteral:{let g=(0,ye.getRange)(t,this.ast),A=this.ast.text.slice(g[0],g[1]),B=A.slice(0,-1).replace(/_/g,""),G=typeof BigInt<"u"?BigInt(B):null;return this.createNode(t,{type:q.AST_NODE_TYPES.Literal,raw:A,value:G,bigint:G==null?B:String(G),range:g})}case O.RegularExpressionLiteral:{let g=t.text.slice(1,t.text.lastIndexOf("/")),A=t.text.slice(t.text.lastIndexOf("/")+1),B=null;try{B=new RegExp(g,A)}catch{B=null}return this.createNode(t,{type:q.AST_NODE_TYPES.Literal,value:B,raw:t.text,regex:{pattern:g,flags:A}})}case O.TrueKeyword:return this.createNode(t,{type:q.AST_NODE_TYPES.Literal,value:!0,raw:"true"});case O.FalseKeyword:return this.createNode(t,{type:q.AST_NODE_TYPES.Literal,value:!1,raw:"false"});case O.NullKeyword:return!Tw.typescriptVersionIsAtLeast["4.0"]&&this.inTypeMode?this.createNode(t,{type:q.AST_NODE_TYPES.TSNullKeyword}):this.createNode(t,{type:q.AST_NODE_TYPES.Literal,value:null,raw:"null"});case O.EmptyStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.EmptyStatement});case O.DebuggerStatement:return this.createNode(t,{type:q.AST_NODE_TYPES.DebuggerStatement});case O.JsxElement:return this.createNode(t,{type:q.AST_NODE_TYPES.JSXElement,openingElement:this.convertChild(t.openingElement),closingElement:this.convertChild(t.closingElement),children:t.children.map(g=>this.convertChild(g))});case O.JsxFragment:return this.createNode(t,{type:q.AST_NODE_TYPES.JSXFragment,openingFragment:this.convertChild(t.openingFragment),closingFragment:this.convertChild(t.closingFragment),children:t.children.map(g=>this.convertChild(g))});case O.JsxSelfClosingElement:return this.createNode(t,{type:q.AST_NODE_TYPES.JSXElement,openingElement:this.createNode(t,{type:q.AST_NODE_TYPES.JSXOpeningElement,typeParameters:t.typeArguments?this.convertTypeArgumentsToTypeParameters(t.typeArguments,t):void 0,selfClosing:!0,name:this.convertJSXTagName(t.tagName,t),attributes:t.attributes.properties.map(g=>this.convertChild(g)),range:(0,ye.getRange)(t,this.ast)}),closingElement:null,children:[]});case O.JsxOpeningElement:return this.createNode(t,{type:q.AST_NODE_TYPES.JSXOpeningElement,typeParameters:t.typeArguments?this.convertTypeArgumentsToTypeParameters(t.typeArguments,t):void 0,selfClosing:!1,name:this.convertJSXTagName(t.tagName,t),attributes:t.attributes.properties.map(g=>this.convertChild(g))});case O.JsxClosingElement:return this.createNode(t,{type:q.AST_NODE_TYPES.JSXClosingElement,name:this.convertJSXTagName(t.tagName,t)});case O.JsxOpeningFragment:return this.createNode(t,{type:q.AST_NODE_TYPES.JSXOpeningFragment});case O.JsxClosingFragment:return this.createNode(t,{type:q.AST_NODE_TYPES.JSXClosingFragment});case O.JsxExpression:{let g=t.expression?this.convertChild(t.expression):this.createNode(t,{type:q.AST_NODE_TYPES.JSXEmptyExpression,range:[t.getStart(this.ast)+1,t.getEnd()-1]});return t.dotDotDotToken?this.createNode(t,{type:q.AST_NODE_TYPES.JSXSpreadChild,expression:g}):this.createNode(t,{type:q.AST_NODE_TYPES.JSXExpressionContainer,expression:g})}case O.JsxAttribute:return this.createNode(t,{type:q.AST_NODE_TYPES.JSXAttribute,name:this.convertJSXNamespaceOrIdentifier(t.name),value:this.convertChild(t.initializer)});case O.JsxText:{let g=t.getFullStart(),A=t.getEnd(),B=this.ast.text.slice(g,A);return this.createNode(t,{type:q.AST_NODE_TYPES.JSXText,value:(0,ye.unescapeStringLiteralText)(B),raw:B,range:[g,A]})}case O.JsxSpreadAttribute:return this.createNode(t,{type:q.AST_NODE_TYPES.JSXSpreadAttribute,argument:this.convertChild(t.expression)});case O.QualifiedName:return this.createNode(t,{type:q.AST_NODE_TYPES.TSQualifiedName,left:this.convertChild(t.left),right:this.convertChild(t.right)});case O.TypeReference:return this.createNode(t,{type:q.AST_NODE_TYPES.TSTypeReference,typeName:this.convertType(t.typeName),typeParameters:t.typeArguments?this.convertTypeArgumentsToTypeParameters(t.typeArguments,t):void 0});case O.TypeParameter:return this.createNode(t,{type:q.AST_NODE_TYPES.TSTypeParameter,name:this.convertType(t.name),constraint:t.constraint?this.convertType(t.constraint):void 0,default:t.default?this.convertType(t.default):void 0,in:(0,ye.hasModifier)(O.InKeyword,t),out:(0,ye.hasModifier)(O.OutKeyword,t),const:(0,ye.hasModifier)(O.ConstKeyword,t)});case O.ThisType:return this.createNode(t,{type:q.AST_NODE_TYPES.TSThisType});case O.AnyKeyword:case O.BigIntKeyword:case O.BooleanKeyword:case O.NeverKeyword:case O.NumberKeyword:case O.ObjectKeyword:case O.StringKeyword:case O.SymbolKeyword:case O.UnknownKeyword:case O.VoidKeyword:case O.UndefinedKeyword:case O.IntrinsicKeyword:return this.createNode(t,{type:q.AST_NODE_TYPES[`TS${O[t.kind]}`]});case O.NonNullExpression:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.TSNonNullExpression,expression:this.convertChild(t.expression)});return this.convertChainExpression(g,t)}case O.TypeLiteral:return this.createNode(t,{type:q.AST_NODE_TYPES.TSTypeLiteral,members:t.members.map(g=>this.convertChild(g))});case O.ArrayType:return this.createNode(t,{type:q.AST_NODE_TYPES.TSArrayType,elementType:this.convertType(t.elementType)});case O.IndexedAccessType:return this.createNode(t,{type:q.AST_NODE_TYPES.TSIndexedAccessType,objectType:this.convertType(t.objectType),indexType:this.convertType(t.indexType)});case O.ConditionalType:return this.createNode(t,{type:q.AST_NODE_TYPES.TSConditionalType,checkType:this.convertType(t.checkType),extendsType:this.convertType(t.extendsType),trueType:this.convertType(t.trueType),falseType:this.convertType(t.falseType)});case O.TypeQuery:return this.createNode(t,{type:q.AST_NODE_TYPES.TSTypeQuery,exprName:this.convertType(t.exprName),typeParameters:t.typeArguments&&this.convertTypeArgumentsToTypeParameters(t.typeArguments,t)});case O.MappedType:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.TSMappedType,typeParameter:this.convertType(t.typeParameter),nameType:(D=this.convertType(t.nameType))!==null&&D!==void 0?D:null});return t.readonlyToken&&(t.readonlyToken.kind===O.ReadonlyKeyword?g.readonly=!0:g.readonly=(0,ye.getTextForTokenKind)(t.readonlyToken.kind)),t.questionToken&&(t.questionToken.kind===O.QuestionToken?g.optional=!0:g.optional=(0,ye.getTextForTokenKind)(t.questionToken.kind)),t.type&&(g.typeAnnotation=this.convertType(t.type)),g}case O.ParenthesizedExpression:return this.convertChild(t.expression,n);case O.TypeAliasDeclaration:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.TSTypeAliasDeclaration,id:this.convertChild(t.name),typeAnnotation:this.convertType(t.type)});return(0,ye.hasModifier)(O.DeclareKeyword,t)&&(g.declare=!0),t.typeParameters&&(g.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)),this.fixExports(t,g)}case O.MethodSignature:return this.convertMethodSignature(t);case O.PropertySignature:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.TSPropertySignature,optional:(0,ye.isOptional)(t)||void 0,computed:(0,ye.isComputedProperty)(t.name),key:this.convertChild(t.name),typeAnnotation:t.type?this.convertTypeAnnotation(t.type,t):void 0,initializer:this.convertChild(t.initializer)||void 0,readonly:(0,ye.hasModifier)(O.ReadonlyKeyword,t)||void 0,static:(0,ye.hasModifier)(O.StaticKeyword,t)||void 0,export:(0,ye.hasModifier)(O.ExportKeyword,t)||void 0}),A=(0,ye.getTSNodeAccessibility)(t);return A&&(g.accessibility=A),g}case O.IndexSignature:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.TSIndexSignature,parameters:t.parameters.map(B=>this.convertChild(B))});t.type&&(g.typeAnnotation=this.convertTypeAnnotation(t.type,t)),(0,ye.hasModifier)(O.ReadonlyKeyword,t)&&(g.readonly=!0);let A=(0,ye.getTSNodeAccessibility)(t);return A&&(g.accessibility=A),(0,ye.hasModifier)(O.ExportKeyword,t)&&(g.export=!0),(0,ye.hasModifier)(O.StaticKeyword,t)&&(g.static=!0),g}case O.ConstructorType:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.TSConstructorType,params:this.convertParameters(t.parameters),abstract:(0,ye.hasModifier)(O.AbstractKeyword,t)});return t.type&&(g.returnType=this.convertTypeAnnotation(t.type,t)),t.typeParameters&&(g.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)),g}case O.FunctionType:case O.ConstructSignature:case O.CallSignature:{let g=t.kind===O.ConstructSignature?q.AST_NODE_TYPES.TSConstructSignatureDeclaration:t.kind===O.CallSignature?q.AST_NODE_TYPES.TSCallSignatureDeclaration:q.AST_NODE_TYPES.TSFunctionType,A=this.createNode(t,{type:g,params:this.convertParameters(t.parameters)});return t.type&&(A.returnType=this.convertTypeAnnotation(t.type,t)),t.typeParameters&&(A.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)),A}case O.ExpressionWithTypeArguments:{let g=n.kind,A=g===O.InterfaceDeclaration?q.AST_NODE_TYPES.TSInterfaceHeritage:g===O.HeritageClause?q.AST_NODE_TYPES.TSClassImplements:q.AST_NODE_TYPES.TSInstantiationExpression,B=this.createNode(t,{type:A,expression:this.convertChild(t.expression)});return t.typeArguments&&(B.typeParameters=this.convertTypeArgumentsToTypeParameters(t.typeArguments,t)),B}case O.InterfaceDeclaration:{let g=(w=t.heritageClauses)!==null&&w!==void 0?w:[],A=this.createNode(t,{type:q.AST_NODE_TYPES.TSInterfaceDeclaration,body:this.createNode(t,{type:q.AST_NODE_TYPES.TSInterfaceBody,body:t.members.map(B=>this.convertChild(B)),range:[t.members.pos-1,t.end]}),id:this.convertChild(t.name)});if(t.typeParameters&&(A.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)),g.length>0){let B=[],G=[];for(let oe of g)if(oe.token===O.ExtendsKeyword)for(let Q of oe.types)B.push(this.convertChild(Q,t));else for(let Q of oe.types)G.push(this.convertChild(Q,t));B.length&&(A.extends=B),G.length&&(A.implements=G)}return(0,ye.hasModifier)(O.AbstractKeyword,t)&&(A.abstract=!0),(0,ye.hasModifier)(O.DeclareKeyword,t)&&(A.declare=!0),this.fixExports(t,A)}case O.TypePredicate:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.TSTypePredicate,asserts:t.assertsModifier!==void 0,parameterName:this.convertChild(t.parameterName),typeAnnotation:null});return t.type&&(g.typeAnnotation=this.convertTypeAnnotation(t.type,t),g.typeAnnotation.loc=g.typeAnnotation.typeAnnotation.loc,g.typeAnnotation.range=g.typeAnnotation.typeAnnotation.range),g}case O.ImportType:return this.createNode(t,{type:q.AST_NODE_TYPES.TSImportType,isTypeOf:!!t.isTypeOf,parameter:this.convertChild(t.argument),qualifier:this.convertChild(t.qualifier),typeParameters:t.typeArguments?this.convertTypeArgumentsToTypeParameters(t.typeArguments,t):null});case O.EnumDeclaration:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.TSEnumDeclaration,id:this.convertChild(t.name),members:t.members.map(A=>this.convertChild(A))});return this.applyModifiersToResult(g,(0,$i.getModifiers)(t)),this.fixExports(t,g)}case O.EnumMember:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.TSEnumMember,id:this.convertChild(t.name)});return t.initializer&&(g.initializer=this.convertChild(t.initializer)),t.name.kind===so.SyntaxKind.ComputedPropertyName&&(g.computed=!0),g}case O.ModuleDeclaration:{let g=this.createNode(t,Object.assign({type:q.AST_NODE_TYPES.TSModuleDeclaration},(()=>{let A=this.convertChild(t.name),B=this.convertChild(t.body);if(t.flags&so.NodeFlags.GlobalAugmentation){if(B==null||B.type===q.AST_NODE_TYPES.TSModuleDeclaration)throw new Error("Expected a valid module body");if(A.type!==q.AST_NODE_TYPES.Identifier)throw new Error("global module augmentation must have an Identifier id");return{kind:"global",id:A,body:B,global:!0}}else if(t.flags&so.NodeFlags.Namespace){if(B==null)throw new Error("Expected a module body");if(A.type!==q.AST_NODE_TYPES.Identifier)throw new Error("`namespace`s must have an Identifier id");return{kind:"namespace",id:A,body:B}}else return Object.assign({kind:"module",id:A},B!=null?{body:B}:{})})()));return this.applyModifiersToResult(g,(0,$i.getModifiers)(t)),this.fixExports(t,g)}case O.ParenthesizedType:return this.convertType(t.type);case O.UnionType:return this.createNode(t,{type:q.AST_NODE_TYPES.TSUnionType,types:t.types.map(g=>this.convertType(g))});case O.IntersectionType:return this.createNode(t,{type:q.AST_NODE_TYPES.TSIntersectionType,types:t.types.map(g=>this.convertType(g))});case O.AsExpression:return this.createNode(t,{type:q.AST_NODE_TYPES.TSAsExpression,expression:this.convertChild(t.expression),typeAnnotation:this.convertType(t.type)});case O.InferType:return this.createNode(t,{type:q.AST_NODE_TYPES.TSInferType,typeParameter:this.convertType(t.typeParameter)});case O.LiteralType:return Tw.typescriptVersionIsAtLeast["4.0"]&&t.literal.kind===O.NullKeyword?this.createNode(t.literal,{type:q.AST_NODE_TYPES.TSNullKeyword}):this.createNode(t,{type:q.AST_NODE_TYPES.TSLiteralType,literal:this.convertType(t.literal)});case O.TypeAssertionExpression:return this.createNode(t,{type:q.AST_NODE_TYPES.TSTypeAssertion,typeAnnotation:this.convertType(t.type),expression:this.convertChild(t.expression)});case O.ImportEqualsDeclaration:return this.createNode(t,{type:q.AST_NODE_TYPES.TSImportEqualsDeclaration,id:this.convertChild(t.name),moduleReference:this.convertChild(t.moduleReference),importKind:t.isTypeOnly?"type":"value",isExport:(0,ye.hasModifier)(O.ExportKeyword,t)});case O.ExternalModuleReference:return this.createNode(t,{type:q.AST_NODE_TYPES.TSExternalModuleReference,expression:this.convertChild(t.expression)});case O.NamespaceExportDeclaration:return this.createNode(t,{type:q.AST_NODE_TYPES.TSNamespaceExportDeclaration,id:this.convertChild(t.name)});case O.AbstractKeyword:return this.createNode(t,{type:q.AST_NODE_TYPES.TSAbstractKeyword});case O.TupleType:{let g="elementTypes"in t?t.elementTypes.map(A=>this.convertType(A)):t.elements.map(A=>this.convertType(A));return this.createNode(t,{type:q.AST_NODE_TYPES.TSTupleType,elementTypes:g})}case O.NamedTupleMember:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.TSNamedTupleMember,elementType:this.convertType(t.type,t),label:this.convertChild(t.name,t),optional:t.questionToken!=null});return t.dotDotDotToken?(g.range[0]=g.label.range[0],g.loc.start=g.label.loc.start,this.createNode(t,{type:q.AST_NODE_TYPES.TSRestType,typeAnnotation:g})):g}case O.OptionalType:return this.createNode(t,{type:q.AST_NODE_TYPES.TSOptionalType,typeAnnotation:this.convertType(t.type)});case O.RestType:return this.createNode(t,{type:q.AST_NODE_TYPES.TSRestType,typeAnnotation:this.convertType(t.type)});case O.TemplateLiteralType:{let g=this.createNode(t,{type:q.AST_NODE_TYPES.TSTemplateLiteralType,quasis:[this.convertChild(t.head)],types:[]});return t.templateSpans.forEach(A=>{g.types.push(this.convertChild(A.type)),g.quasis.push(this.convertChild(A.literal))}),g}case O.ClassStaticBlockDeclaration:return this.createNode(t,{type:q.AST_NODE_TYPES.StaticBlock,body:this.convertBodyExpressions(t.body.statements,t)});case O.AssertEntry:return this.createNode(t,{type:q.AST_NODE_TYPES.ImportAttribute,key:this.convertChild(t.name),value:this.convertChild(t.value)});case O.SatisfiesExpression:return this.createNode(t,{type:q.AST_NODE_TYPES.TSSatisfiesExpression,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});default:return this.deeplyCopy(t)}}};Yr.Converter=n6});var Qi={};Ud(Qi,{__assign:()=>a6,__asyncDelegator:()=>hU,__asyncGenerator:()=>yU,__asyncValues:()=>gU,__await:()=>iu,__awaiter:()=>lU,__classPrivateFieldGet:()=>xU,__classPrivateFieldSet:()=>SU,__createBinding:()=>pU,__decorate:()=>sU,__exportStar:()=>dU,__extends:()=>aU,__generator:()=>uU,__importDefault:()=>TU,__importStar:()=>vU,__makeTemplateObject:()=>bU,__metadata:()=>cU,__param:()=>_U,__read:()=>xw,__rest:()=>oU,__spread:()=>fU,__spreadArrays:()=>mU,__values:()=>o6});function aU(e,t){i6(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function oU(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(e);s=0;y--)(d=e[y])&&(l=(s<3?d(l):s>3?d(t,n,l):d(t,n))||l);return s>3&&l&&Object.defineProperty(t,n,l),l}function _U(e,t){return function(n,i){t(n,i,e)}}function cU(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function lU(e,t,n,i){function s(l){return l instanceof n?l:new n(function(d){d(l)})}return new(n||(n=Promise))(function(l,d){function y(h){try{x(i.next(h))}catch(D){d(D)}}function p(h){try{x(i.throw(h))}catch(D){d(D)}}function x(h){h.done?l(h.value):s(h.value).then(y,p)}x((i=i.apply(e,t||[])).next())})}function uU(e,t){var n={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},i,s,l,d;return d={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function y(x){return function(h){return p([x,h])}}function p(x){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,s&&(l=x[0]&2?s.return:x[0]?s.throw||((l=s.return)&&l.call(s),0):s.next)&&!(l=l.call(s,x[1])).done)return l;switch(s=0,l&&(x=[x[0]&2,l.value]),x[0]){case 0:case 1:l=x;break;case 4:return n.label++,{value:x[1],done:!1};case 5:n.label++,s=x[1],x=[0];continue;case 7:x=n.ops.pop(),n.trys.pop();continue;default:if(l=n.trys,!(l=l.length>0&&l[l.length-1])&&(x[0]===6||x[0]===2)){n=0;continue}if(x[0]===3&&(!l||x[1]>l[0]&&x[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function xw(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),s,l=[],d;try{for(;(t===void 0||t-- >0)&&!(s=i.next()).done;)l.push(s.value)}catch(y){d={error:y}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(d)throw d.error}}return l}function fU(){for(var e=[],t=0;t1||y(w,g)})})}function y(w,g){try{p(i[w](g))}catch(A){D(l[0][3],A)}}function p(w){w.value instanceof iu?Promise.resolve(w.value.v).then(x,h):D(l[0][2],w)}function x(w){y("next",w)}function h(w){y("throw",w)}function D(w,g){w(g),l.shift(),l.length&&y(l[0][0],l[0][1])}}function hU(e){var t,n;return t={},i("next"),i("throw",function(s){throw s}),i("return"),t[Symbol.iterator]=function(){return this},t;function i(s,l){t[s]=e[s]?function(d){return(n=!n)?{value:iu(e[s](d)),done:s==="return"}:l?l(d):d}:l}}function gU(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof o6=="function"?o6(e):e[Symbol.iterator](),n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n);function i(l){n[l]=e[l]&&function(d){return new Promise(function(y,p){d=e[l](d),s(y,p,d.done,d.value)})}}function s(l,d,y,p){Promise.resolve(p).then(function(x){l({value:x,done:y})},d)}}function bU(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function vU(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function TU(e){return e&&e.__esModule?e:{default:e}}function xU(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function SU(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}var i6,a6,Yi=$6(()=>{i6=function(e,t){return i6=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},i6(e,t)};a6=function(){return a6=Object.assign||function(t){for(var n,i=1,s=arguments.length;i{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.isExpressionStatement=k.isExpression=k.isExportSpecifier=k.isExportDeclaration=k.isExportAssignment=k.isEnumMember=k.isEnumDeclaration=k.isEntityNameExpression=k.isEntityName=k.isEmptyStatement=k.isElementAccessExpression=k.isDoStatement=k.isDeleteExpression=k.isDefaultClause=k.isDecorator=k.isDebuggerStatement=k.isComputedPropertyName=k.isContinueStatement=k.isConstructSignatureDeclaration=k.isConstructorTypeNode=k.isConstructorDeclaration=k.isConditionalTypeNode=k.isConditionalExpression=k.isCommaListExpression=k.isClassLikeDeclaration=k.isClassExpression=k.isClassDeclaration=k.isCatchClause=k.isCaseOrDefaultClause=k.isCaseClause=k.isCaseBlock=k.isCallSignatureDeclaration=k.isCallLikeExpression=k.isCallExpression=k.isBreakStatement=k.isBreakOrContinueStatement=k.isBooleanLiteral=k.isBlockLike=k.isBlock=k.isBindingPattern=k.isBindingElement=k.isBinaryExpression=k.isAwaitExpression=k.isAssertionExpression=k.isAsExpression=k.isArrowFunction=k.isArrayTypeNode=k.isArrayLiteralExpression=k.isArrayBindingPattern=k.isAccessorDeclaration=void 0;k.isNamespaceImport=k.isNamespaceDeclaration=k.isNamedImports=k.isNamedExports=k.isModuleDeclaration=k.isModuleBlock=k.isMethodSignature=k.isMethodDeclaration=k.isMetaProperty=k.isMappedTypeNode=k.isLiteralTypeNode=k.isLiteralExpression=k.isLabeledStatement=k.isJsxText=k.isJsxSpreadAttribute=k.isJsxSelfClosingElement=k.isJsxOpeningLikeElement=k.isJsxOpeningFragment=k.isJsxOpeningElement=k.isJsxFragment=k.isJsxExpression=k.isJsxElement=k.isJsxClosingFragment=k.isJsxClosingElement=k.isJsxAttributes=k.isJsxAttributeLike=k.isJsxAttribute=k.isJsDoc=k.isIterationStatement=k.isIntersectionTypeNode=k.isInterfaceDeclaration=k.isInferTypeNode=k.isIndexSignatureDeclaration=k.isIndexedAccessTypeNode=k.isImportSpecifier=k.isImportEqualsDeclaration=k.isImportDeclaration=k.isImportClause=k.isIfStatement=k.isIdentifier=k.isGetAccessorDeclaration=k.isFunctionTypeNode=k.isFunctionExpression=k.isFunctionDeclaration=k.isForStatement=k.isForOfStatement=k.isForInOrOfStatement=k.isForInStatement=k.isExternalModuleReference=k.isExpressionWithTypeArguments=void 0;k.isVariableStatement=k.isVariableDeclaration=k.isUnionTypeNode=k.isTypeQueryNode=k.isTypeReferenceNode=k.isTypePredicateNode=k.isTypeParameterDeclaration=k.isTypeOperatorNode=k.isTypeOfExpression=k.isTypeLiteralNode=k.isTypeAssertion=k.isTypeAliasDeclaration=k.isTupleTypeNode=k.isTryStatement=k.isThrowStatement=k.isTextualLiteral=k.isTemplateLiteral=k.isTemplateExpression=k.isTaggedTemplateExpression=k.isSyntaxList=k.isSwitchStatement=k.isStringLiteral=k.isSpreadElement=k.isSpreadAssignment=k.isSourceFile=k.isSignatureDeclaration=k.isShorthandPropertyAssignment=k.isSetAccessorDeclaration=k.isReturnStatement=k.isRegularExpressionLiteral=k.isQualifiedName=k.isPropertySignature=k.isPropertyDeclaration=k.isPropertyAssignment=k.isPropertyAccessExpression=k.isPrefixUnaryExpression=k.isPostfixUnaryExpression=k.isParenthesizedTypeNode=k.isParenthesizedExpression=k.isParameterDeclaration=k.isOmittedExpression=k.isObjectLiteralExpression=k.isObjectBindingPattern=k.isNumericOrStringLikeLiteral=k.isNumericLiteral=k.isNullLiteral=k.isNoSubstitutionTemplateLiteral=k.isNonNullExpression=k.isNewExpression=k.isNamespaceExportDeclaration=void 0;k.isWithStatement=k.isWhileStatement=k.isVoidExpression=k.isVariableDeclarationList=void 0;var L=Cn();function wU(e){return e.kind===L.SyntaxKind.GetAccessor||e.kind===L.SyntaxKind.SetAccessor}k.isAccessorDeclaration=wU;function EU(e){return e.kind===L.SyntaxKind.ArrayBindingPattern}k.isArrayBindingPattern=EU;function CU(e){return e.kind===L.SyntaxKind.ArrayLiteralExpression}k.isArrayLiteralExpression=CU;function kU(e){return e.kind===L.SyntaxKind.ArrayType}k.isArrayTypeNode=kU;function AU(e){return e.kind===L.SyntaxKind.ArrowFunction}k.isArrowFunction=AU;function DU(e){return e.kind===L.SyntaxKind.AsExpression}k.isAsExpression=DU;function PU(e){return e.kind===L.SyntaxKind.AsExpression||e.kind===L.SyntaxKind.TypeAssertionExpression}k.isAssertionExpression=PU;function NU(e){return e.kind===L.SyntaxKind.AwaitExpression}k.isAwaitExpression=NU;function IU(e){return e.kind===L.SyntaxKind.BinaryExpression}k.isBinaryExpression=IU;function OU(e){return e.kind===L.SyntaxKind.BindingElement}k.isBindingElement=OU;function MU(e){return e.kind===L.SyntaxKind.ArrayBindingPattern||e.kind===L.SyntaxKind.ObjectBindingPattern}k.isBindingPattern=MU;function LU(e){return e.kind===L.SyntaxKind.Block}k.isBlock=LU;function JU(e){return e.statements!==void 0}k.isBlockLike=JU;function RU(e){return e.kind===L.SyntaxKind.TrueKeyword||e.kind===L.SyntaxKind.FalseKeyword}k.isBooleanLiteral=RU;function FU(e){return e.kind===L.SyntaxKind.BreakStatement||e.kind===L.SyntaxKind.ContinueStatement}k.isBreakOrContinueStatement=FU;function jU(e){return e.kind===L.SyntaxKind.BreakStatement}k.isBreakStatement=jU;function BU(e){return e.kind===L.SyntaxKind.CallExpression}k.isCallExpression=BU;function UU(e){switch(e.kind){case L.SyntaxKind.CallExpression:case L.SyntaxKind.Decorator:case L.SyntaxKind.JsxOpeningElement:case L.SyntaxKind.JsxSelfClosingElement:case L.SyntaxKind.NewExpression:case L.SyntaxKind.TaggedTemplateExpression:return!0;default:return!1}}k.isCallLikeExpression=UU;function qU(e){return e.kind===L.SyntaxKind.CallSignature}k.isCallSignatureDeclaration=qU;function zU(e){return e.kind===L.SyntaxKind.CaseBlock}k.isCaseBlock=zU;function WU(e){return e.kind===L.SyntaxKind.CaseClause}k.isCaseClause=WU;function VU(e){return e.kind===L.SyntaxKind.CaseClause||e.kind===L.SyntaxKind.DefaultClause}k.isCaseOrDefaultClause=VU;function HU(e){return e.kind===L.SyntaxKind.CatchClause}k.isCatchClause=HU;function KU(e){return e.kind===L.SyntaxKind.ClassDeclaration}k.isClassDeclaration=KU;function GU(e){return e.kind===L.SyntaxKind.ClassExpression}k.isClassExpression=GU;function XU(e){return e.kind===L.SyntaxKind.ClassDeclaration||e.kind===L.SyntaxKind.ClassExpression}k.isClassLikeDeclaration=XU;function $U(e){return e.kind===L.SyntaxKind.CommaListExpression}k.isCommaListExpression=$U;function QU(e){return e.kind===L.SyntaxKind.ConditionalExpression}k.isConditionalExpression=QU;function YU(e){return e.kind===L.SyntaxKind.ConditionalType}k.isConditionalTypeNode=YU;function ZU(e){return e.kind===L.SyntaxKind.Constructor}k.isConstructorDeclaration=ZU;function eq(e){return e.kind===L.SyntaxKind.ConstructorType}k.isConstructorTypeNode=eq;function tq(e){return e.kind===L.SyntaxKind.ConstructSignature}k.isConstructSignatureDeclaration=tq;function nq(e){return e.kind===L.SyntaxKind.ContinueStatement}k.isContinueStatement=nq;function rq(e){return e.kind===L.SyntaxKind.ComputedPropertyName}k.isComputedPropertyName=rq;function iq(e){return e.kind===L.SyntaxKind.DebuggerStatement}k.isDebuggerStatement=iq;function aq(e){return e.kind===L.SyntaxKind.Decorator}k.isDecorator=aq;function oq(e){return e.kind===L.SyntaxKind.DefaultClause}k.isDefaultClause=oq;function sq(e){return e.kind===L.SyntaxKind.DeleteExpression}k.isDeleteExpression=sq;function _q(e){return e.kind===L.SyntaxKind.DoStatement}k.isDoStatement=_q;function cq(e){return e.kind===L.SyntaxKind.ElementAccessExpression}k.isElementAccessExpression=cq;function lq(e){return e.kind===L.SyntaxKind.EmptyStatement}k.isEmptyStatement=lq;function uq(e){return e.kind===L.SyntaxKind.Identifier||kw(e)}k.isEntityName=uq;function Sw(e){return e.kind===L.SyntaxKind.Identifier||Cw(e)&&Sw(e.expression)}k.isEntityNameExpression=Sw;function pq(e){return e.kind===L.SyntaxKind.EnumDeclaration}k.isEnumDeclaration=pq;function dq(e){return e.kind===L.SyntaxKind.EnumMember}k.isEnumMember=dq;function fq(e){return e.kind===L.SyntaxKind.ExportAssignment}k.isExportAssignment=fq;function mq(e){return e.kind===L.SyntaxKind.ExportDeclaration}k.isExportDeclaration=mq;function yq(e){return e.kind===L.SyntaxKind.ExportSpecifier}k.isExportSpecifier=yq;function hq(e){switch(e.kind){case L.SyntaxKind.ArrayLiteralExpression:case L.SyntaxKind.ArrowFunction:case L.SyntaxKind.AsExpression:case L.SyntaxKind.AwaitExpression:case L.SyntaxKind.BinaryExpression:case L.SyntaxKind.CallExpression:case L.SyntaxKind.ClassExpression:case L.SyntaxKind.CommaListExpression:case L.SyntaxKind.ConditionalExpression:case L.SyntaxKind.DeleteExpression:case L.SyntaxKind.ElementAccessExpression:case L.SyntaxKind.FalseKeyword:case L.SyntaxKind.FunctionExpression:case L.SyntaxKind.Identifier:case L.SyntaxKind.JsxElement:case L.SyntaxKind.JsxFragment:case L.SyntaxKind.JsxExpression:case L.SyntaxKind.JsxOpeningElement:case L.SyntaxKind.JsxOpeningFragment:case L.SyntaxKind.JsxSelfClosingElement:case L.SyntaxKind.MetaProperty:case L.SyntaxKind.NewExpression:case L.SyntaxKind.NonNullExpression:case L.SyntaxKind.NoSubstitutionTemplateLiteral:case L.SyntaxKind.NullKeyword:case L.SyntaxKind.NumericLiteral:case L.SyntaxKind.ObjectLiteralExpression:case L.SyntaxKind.OmittedExpression:case L.SyntaxKind.ParenthesizedExpression:case L.SyntaxKind.PostfixUnaryExpression:case L.SyntaxKind.PrefixUnaryExpression:case L.SyntaxKind.PropertyAccessExpression:case L.SyntaxKind.RegularExpressionLiteral:case L.SyntaxKind.SpreadElement:case L.SyntaxKind.StringLiteral:case L.SyntaxKind.SuperKeyword:case L.SyntaxKind.TaggedTemplateExpression:case L.SyntaxKind.TemplateExpression:case L.SyntaxKind.ThisKeyword:case L.SyntaxKind.TrueKeyword:case L.SyntaxKind.TypeAssertionExpression:case L.SyntaxKind.TypeOfExpression:case L.SyntaxKind.VoidExpression:case L.SyntaxKind.YieldExpression:return!0;default:return!1}}k.isExpression=hq;function gq(e){return e.kind===L.SyntaxKind.ExpressionStatement}k.isExpressionStatement=gq;function bq(e){return e.kind===L.SyntaxKind.ExpressionWithTypeArguments}k.isExpressionWithTypeArguments=bq;function vq(e){return e.kind===L.SyntaxKind.ExternalModuleReference}k.isExternalModuleReference=vq;function Tq(e){return e.kind===L.SyntaxKind.ForInStatement}k.isForInStatement=Tq;function xq(e){return e.kind===L.SyntaxKind.ForOfStatement||e.kind===L.SyntaxKind.ForInStatement}k.isForInOrOfStatement=xq;function Sq(e){return e.kind===L.SyntaxKind.ForOfStatement}k.isForOfStatement=Sq;function wq(e){return e.kind===L.SyntaxKind.ForStatement}k.isForStatement=wq;function Eq(e){return e.kind===L.SyntaxKind.FunctionDeclaration}k.isFunctionDeclaration=Eq;function Cq(e){return e.kind===L.SyntaxKind.FunctionExpression}k.isFunctionExpression=Cq;function kq(e){return e.kind===L.SyntaxKind.FunctionType}k.isFunctionTypeNode=kq;function Aq(e){return e.kind===L.SyntaxKind.GetAccessor}k.isGetAccessorDeclaration=Aq;function Dq(e){return e.kind===L.SyntaxKind.Identifier}k.isIdentifier=Dq;function Pq(e){return e.kind===L.SyntaxKind.IfStatement}k.isIfStatement=Pq;function Nq(e){return e.kind===L.SyntaxKind.ImportClause}k.isImportClause=Nq;function Iq(e){return e.kind===L.SyntaxKind.ImportDeclaration}k.isImportDeclaration=Iq;function Oq(e){return e.kind===L.SyntaxKind.ImportEqualsDeclaration}k.isImportEqualsDeclaration=Oq;function Mq(e){return e.kind===L.SyntaxKind.ImportSpecifier}k.isImportSpecifier=Mq;function Lq(e){return e.kind===L.SyntaxKind.IndexedAccessType}k.isIndexedAccessTypeNode=Lq;function Jq(e){return e.kind===L.SyntaxKind.IndexSignature}k.isIndexSignatureDeclaration=Jq;function Rq(e){return e.kind===L.SyntaxKind.InferType}k.isInferTypeNode=Rq;function Fq(e){return e.kind===L.SyntaxKind.InterfaceDeclaration}k.isInterfaceDeclaration=Fq;function jq(e){return e.kind===L.SyntaxKind.IntersectionType}k.isIntersectionTypeNode=jq;function Bq(e){switch(e.kind){case L.SyntaxKind.ForStatement:case L.SyntaxKind.ForOfStatement:case L.SyntaxKind.ForInStatement:case L.SyntaxKind.WhileStatement:case L.SyntaxKind.DoStatement:return!0;default:return!1}}k.isIterationStatement=Bq;function Uq(e){return e.kind===L.SyntaxKind.JSDocComment}k.isJsDoc=Uq;function qq(e){return e.kind===L.SyntaxKind.JsxAttribute}k.isJsxAttribute=qq;function zq(e){return e.kind===L.SyntaxKind.JsxAttribute||e.kind===L.SyntaxKind.JsxSpreadAttribute}k.isJsxAttributeLike=zq;function Wq(e){return e.kind===L.SyntaxKind.JsxAttributes}k.isJsxAttributes=Wq;function Vq(e){return e.kind===L.SyntaxKind.JsxClosingElement}k.isJsxClosingElement=Vq;function Hq(e){return e.kind===L.SyntaxKind.JsxClosingFragment}k.isJsxClosingFragment=Hq;function Kq(e){return e.kind===L.SyntaxKind.JsxElement}k.isJsxElement=Kq;function Gq(e){return e.kind===L.SyntaxKind.JsxExpression}k.isJsxExpression=Gq;function Xq(e){return e.kind===L.SyntaxKind.JsxFragment}k.isJsxFragment=Xq;function $q(e){return e.kind===L.SyntaxKind.JsxOpeningElement}k.isJsxOpeningElement=$q;function Qq(e){return e.kind===L.SyntaxKind.JsxOpeningFragment}k.isJsxOpeningFragment=Qq;function Yq(e){return e.kind===L.SyntaxKind.JsxOpeningElement||e.kind===L.SyntaxKind.JsxSelfClosingElement}k.isJsxOpeningLikeElement=Yq;function Zq(e){return e.kind===L.SyntaxKind.JsxSelfClosingElement}k.isJsxSelfClosingElement=Zq;function ez(e){return e.kind===L.SyntaxKind.JsxSpreadAttribute}k.isJsxSpreadAttribute=ez;function tz(e){return e.kind===L.SyntaxKind.JsxText}k.isJsxText=tz;function nz(e){return e.kind===L.SyntaxKind.LabeledStatement}k.isLabeledStatement=nz;function rz(e){return e.kind>=L.SyntaxKind.FirstLiteralToken&&e.kind<=L.SyntaxKind.LastLiteralToken}k.isLiteralExpression=rz;function iz(e){return e.kind===L.SyntaxKind.LiteralType}k.isLiteralTypeNode=iz;function az(e){return e.kind===L.SyntaxKind.MappedType}k.isMappedTypeNode=az;function oz(e){return e.kind===L.SyntaxKind.MetaProperty}k.isMetaProperty=oz;function sz(e){return e.kind===L.SyntaxKind.MethodDeclaration}k.isMethodDeclaration=sz;function _z(e){return e.kind===L.SyntaxKind.MethodSignature}k.isMethodSignature=_z;function cz(e){return e.kind===L.SyntaxKind.ModuleBlock}k.isModuleBlock=cz;function ww(e){return e.kind===L.SyntaxKind.ModuleDeclaration}k.isModuleDeclaration=ww;function lz(e){return e.kind===L.SyntaxKind.NamedExports}k.isNamedExports=lz;function uz(e){return e.kind===L.SyntaxKind.NamedImports}k.isNamedImports=uz;function Ew(e){return ww(e)&&e.name.kind===L.SyntaxKind.Identifier&&e.body!==void 0&&(e.body.kind===L.SyntaxKind.ModuleBlock||Ew(e.body))}k.isNamespaceDeclaration=Ew;function pz(e){return e.kind===L.SyntaxKind.NamespaceImport}k.isNamespaceImport=pz;function dz(e){return e.kind===L.SyntaxKind.NamespaceExportDeclaration}k.isNamespaceExportDeclaration=dz;function fz(e){return e.kind===L.SyntaxKind.NewExpression}k.isNewExpression=fz;function mz(e){return e.kind===L.SyntaxKind.NonNullExpression}k.isNonNullExpression=mz;function yz(e){return e.kind===L.SyntaxKind.NoSubstitutionTemplateLiteral}k.isNoSubstitutionTemplateLiteral=yz;function hz(e){return e.kind===L.SyntaxKind.NullKeyword}k.isNullLiteral=hz;function gz(e){return e.kind===L.SyntaxKind.NumericLiteral}k.isNumericLiteral=gz;function bz(e){switch(e.kind){case L.SyntaxKind.StringLiteral:case L.SyntaxKind.NumericLiteral:case L.SyntaxKind.NoSubstitutionTemplateLiteral:return!0;default:return!1}}k.isNumericOrStringLikeLiteral=bz;function vz(e){return e.kind===L.SyntaxKind.ObjectBindingPattern}k.isObjectBindingPattern=vz;function Tz(e){return e.kind===L.SyntaxKind.ObjectLiteralExpression}k.isObjectLiteralExpression=Tz;function xz(e){return e.kind===L.SyntaxKind.OmittedExpression}k.isOmittedExpression=xz;function Sz(e){return e.kind===L.SyntaxKind.Parameter}k.isParameterDeclaration=Sz;function wz(e){return e.kind===L.SyntaxKind.ParenthesizedExpression}k.isParenthesizedExpression=wz;function Ez(e){return e.kind===L.SyntaxKind.ParenthesizedType}k.isParenthesizedTypeNode=Ez;function Cz(e){return e.kind===L.SyntaxKind.PostfixUnaryExpression}k.isPostfixUnaryExpression=Cz;function kz(e){return e.kind===L.SyntaxKind.PrefixUnaryExpression}k.isPrefixUnaryExpression=kz;function Cw(e){return e.kind===L.SyntaxKind.PropertyAccessExpression}k.isPropertyAccessExpression=Cw;function Az(e){return e.kind===L.SyntaxKind.PropertyAssignment}k.isPropertyAssignment=Az;function Dz(e){return e.kind===L.SyntaxKind.PropertyDeclaration}k.isPropertyDeclaration=Dz;function Pz(e){return e.kind===L.SyntaxKind.PropertySignature}k.isPropertySignature=Pz;function kw(e){return e.kind===L.SyntaxKind.QualifiedName}k.isQualifiedName=kw;function Nz(e){return e.kind===L.SyntaxKind.RegularExpressionLiteral}k.isRegularExpressionLiteral=Nz;function Iz(e){return e.kind===L.SyntaxKind.ReturnStatement}k.isReturnStatement=Iz;function Oz(e){return e.kind===L.SyntaxKind.SetAccessor}k.isSetAccessorDeclaration=Oz;function Mz(e){return e.kind===L.SyntaxKind.ShorthandPropertyAssignment}k.isShorthandPropertyAssignment=Mz;function Lz(e){return e.parameters!==void 0}k.isSignatureDeclaration=Lz;function Jz(e){return e.kind===L.SyntaxKind.SourceFile}k.isSourceFile=Jz;function Rz(e){return e.kind===L.SyntaxKind.SpreadAssignment}k.isSpreadAssignment=Rz;function Fz(e){return e.kind===L.SyntaxKind.SpreadElement}k.isSpreadElement=Fz;function jz(e){return e.kind===L.SyntaxKind.StringLiteral}k.isStringLiteral=jz;function Bz(e){return e.kind===L.SyntaxKind.SwitchStatement}k.isSwitchStatement=Bz;function Uz(e){return e.kind===L.SyntaxKind.SyntaxList}k.isSyntaxList=Uz;function qz(e){return e.kind===L.SyntaxKind.TaggedTemplateExpression}k.isTaggedTemplateExpression=qz;function zz(e){return e.kind===L.SyntaxKind.TemplateExpression}k.isTemplateExpression=zz;function Wz(e){return e.kind===L.SyntaxKind.TemplateExpression||e.kind===L.SyntaxKind.NoSubstitutionTemplateLiteral}k.isTemplateLiteral=Wz;function Vz(e){return e.kind===L.SyntaxKind.StringLiteral||e.kind===L.SyntaxKind.NoSubstitutionTemplateLiteral}k.isTextualLiteral=Vz;function Hz(e){return e.kind===L.SyntaxKind.ThrowStatement}k.isThrowStatement=Hz;function Kz(e){return e.kind===L.SyntaxKind.TryStatement}k.isTryStatement=Kz;function Gz(e){return e.kind===L.SyntaxKind.TupleType}k.isTupleTypeNode=Gz;function Xz(e){return e.kind===L.SyntaxKind.TypeAliasDeclaration}k.isTypeAliasDeclaration=Xz;function $z(e){return e.kind===L.SyntaxKind.TypeAssertionExpression}k.isTypeAssertion=$z;function Qz(e){return e.kind===L.SyntaxKind.TypeLiteral}k.isTypeLiteralNode=Qz;function Yz(e){return e.kind===L.SyntaxKind.TypeOfExpression}k.isTypeOfExpression=Yz;function Zz(e){return e.kind===L.SyntaxKind.TypeOperator}k.isTypeOperatorNode=Zz;function eW(e){return e.kind===L.SyntaxKind.TypeParameter}k.isTypeParameterDeclaration=eW;function tW(e){return e.kind===L.SyntaxKind.TypePredicate}k.isTypePredicateNode=tW;function nW(e){return e.kind===L.SyntaxKind.TypeReference}k.isTypeReferenceNode=nW;function rW(e){return e.kind===L.SyntaxKind.TypeQuery}k.isTypeQueryNode=rW;function iW(e){return e.kind===L.SyntaxKind.UnionType}k.isUnionTypeNode=iW;function aW(e){return e.kind===L.SyntaxKind.VariableDeclaration}k.isVariableDeclaration=aW;function oW(e){return e.kind===L.SyntaxKind.VariableStatement}k.isVariableStatement=oW;function sW(e){return e.kind===L.SyntaxKind.VariableDeclarationList}k.isVariableDeclarationList=sW;function _W(e){return e.kind===L.SyntaxKind.VoidExpression}k.isVoidExpression=_W;function cW(e){return e.kind===L.SyntaxKind.WhileStatement}k.isWhileStatement=cW;function lW(e){return e.kind===L.SyntaxKind.WithStatement}k.isWithStatement=lW});var Dw=tt(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});au.isImportTypeNode=void 0;var uW=(Yi(),jr(Qi));uW.__exportStar(Aw(),au);var pW=Cn();function dW(e){return e.kind===pW.SyntaxKind.ImportType}au.isImportTypeNode=dW});var Pw=tt(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});Aa.isSyntheticExpression=Aa.isRestTypeNode=Aa.isOptionalTypeNode=void 0;var fW=(Yi(),jr(Qi));fW.__exportStar(Dw(),Aa);var s6=Cn();function mW(e){return e.kind===s6.SyntaxKind.OptionalType}Aa.isOptionalTypeNode=mW;function yW(e){return e.kind===s6.SyntaxKind.RestType}Aa.isRestTypeNode=yW;function hW(e){return e.kind===s6.SyntaxKind.SyntheticExpression}Aa.isSyntheticExpression=hW});var _6=tt(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});ou.isBigIntLiteral=void 0;var gW=(Yi(),jr(Qi));gW.__exportStar(Pw(),ou);var bW=Cn();function vW(e){return e.kind===bW.SyntaxKind.BigIntLiteral}ou.isBigIntLiteral=vW});var l6=tt(c6=>{"use strict";Object.defineProperty(c6,"__esModule",{value:!0});var TW=(Yi(),jr(Qi));TW.__exportStar(_6(),c6)});var Nw=tt(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.isUniqueESSymbolType=it.isUnionType=it.isUnionOrIntersectionType=it.isTypeVariable=it.isTypeReference=it.isTypeParameter=it.isSubstitutionType=it.isObjectType=it.isLiteralType=it.isIntersectionType=it.isInterfaceType=it.isInstantiableType=it.isIndexedAccessype=it.isIndexedAccessType=it.isGenericType=it.isEnumType=it.isConditionalType=void 0;var Kt=Cn();function xW(e){return(e.flags&Kt.TypeFlags.Conditional)!==0}it.isConditionalType=xW;function SW(e){return(e.flags&Kt.TypeFlags.Enum)!==0}it.isEnumType=SW;function wW(e){return(e.flags&Kt.TypeFlags.Object)!==0&&(e.objectFlags&Kt.ObjectFlags.ClassOrInterface)!==0&&(e.objectFlags&Kt.ObjectFlags.Reference)!==0}it.isGenericType=wW;function EW(e){return(e.flags&Kt.TypeFlags.IndexedAccess)!==0}it.isIndexedAccessType=EW;function CW(e){return(e.flags&Kt.TypeFlags.Index)!==0}it.isIndexedAccessype=CW;function kW(e){return(e.flags&Kt.TypeFlags.Instantiable)!==0}it.isInstantiableType=kW;function AW(e){return(e.flags&Kt.TypeFlags.Object)!==0&&(e.objectFlags&Kt.ObjectFlags.ClassOrInterface)!==0}it.isInterfaceType=AW;function DW(e){return(e.flags&Kt.TypeFlags.Intersection)!==0}it.isIntersectionType=DW;function PW(e){return(e.flags&(Kt.TypeFlags.StringOrNumberLiteral|Kt.TypeFlags.BigIntLiteral))!==0}it.isLiteralType=PW;function NW(e){return(e.flags&Kt.TypeFlags.Object)!==0}it.isObjectType=NW;function IW(e){return(e.flags&Kt.TypeFlags.Substitution)!==0}it.isSubstitutionType=IW;function OW(e){return(e.flags&Kt.TypeFlags.TypeParameter)!==0}it.isTypeParameter=OW;function MW(e){return(e.flags&Kt.TypeFlags.Object)!==0&&(e.objectFlags&Kt.ObjectFlags.Reference)!==0}it.isTypeReference=MW;function LW(e){return(e.flags&Kt.TypeFlags.TypeVariable)!==0}it.isTypeVariable=LW;function JW(e){return(e.flags&Kt.TypeFlags.UnionOrIntersection)!==0}it.isUnionOrIntersectionType=JW;function RW(e){return(e.flags&Kt.TypeFlags.Union)!==0}it.isUnionType=RW;function FW(e){return(e.flags&Kt.TypeFlags.UniqueESSymbol)!==0}it.isUniqueESSymbolType=FW});var p6=tt(u6=>{"use strict";Object.defineProperty(u6,"__esModule",{value:!0});var jW=(Yi(),jr(Qi));jW.__exportStar(Nw(),u6)});var Mw=tt(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.isTupleTypeReference=fs.isTupleType=void 0;var BW=(Yi(),jr(Qi));BW.__exportStar(p6(),fs);var Iw=Cn(),UW=p6();function Ow(e){return(e.flags&Iw.TypeFlags.Object&&e.objectFlags&Iw.ObjectFlags.Tuple)!==0}fs.isTupleType=Ow;function qW(e){return UW.isTypeReference(e)&&Ow(e.target)}fs.isTupleTypeReference=qW});var f6=tt(d6=>{"use strict";Object.defineProperty(d6,"__esModule",{value:!0});var zW=(Yi(),jr(Qi));zW.__exportStar(Mw(),d6)});var Jw=tt(u1=>{"use strict";Object.defineProperty(u1,"__esModule",{value:!0});var Lw=(Yi(),jr(Qi));Lw.__exportStar(_6(),u1);Lw.__exportStar(f6(),u1)});var Rw=tt(m6=>{"use strict";Object.defineProperty(m6,"__esModule",{value:!0});var WW=(Yi(),jr(Qi));WW.__exportStar(f6(),m6)});var Vw=tt(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.getBaseClassMemberOfClassElement=Ke.getIteratorYieldResultFromIteratorResult=Ke.getInstanceTypeOfClassLikeDeclaration=Ke.getConstructorTypeOfClassLikeDeclaration=Ke.getSymbolOfClassLikeDeclaration=Ke.getPropertyNameFromType=Ke.symbolHasReadonlyDeclaration=Ke.isPropertyReadonlyInType=Ke.getWellKnownSymbolPropertyOfType=Ke.getPropertyOfType=Ke.isBooleanLiteralType=Ke.isFalsyType=Ke.isThenableType=Ke.someTypePart=Ke.intersectionTypeParts=Ke.unionTypeParts=Ke.getCallSignaturesOfType=Ke.isTypeAssignableToString=Ke.isTypeAssignableToNumber=Ke.isOptionalChainingUndefinedMarkerType=Ke.removeOptionalChainingUndefinedMarkerType=Ke.removeOptionalityFromType=Ke.isEmptyObjectType=void 0;var pt=Cn(),Fn=Rw(),An=v6(),_o=l6();function jw(e){if(Fn.isObjectType(e)&&e.objectFlags&pt.ObjectFlags.Anonymous&&e.getProperties().length===0&&e.getCallSignatures().length===0&&e.getConstructSignatures().length===0&&e.getStringIndexType()===void 0&&e.getNumberIndexType()===void 0){let t=e.getBaseTypes();return t===void 0||t.every(jw)}return!1}Ke.isEmptyObjectType=jw;function Bw(e,t){if(!Fw(t,pt.TypeFlags.Undefined))return t;let n=Fw(t,pt.TypeFlags.Null);return t=e.getNonNullableType(t),n?e.getNullableType(t,pt.TypeFlags.Null):t}Ke.removeOptionalityFromType=Bw;function Fw(e,t){for(let n of B_(e))if(An.isTypeFlagSet(n,t))return!0;return!1}function VW(e,t){if(!Fn.isUnionType(t))return y6(e,t)?t.getNonNullableType():t;let n=0,i=!1;for(let s of t.types)y6(e,s)?i=!0:n|=s.flags;return i?e.getNullableType(t.getNonNullableType(),n):t}Ke.removeOptionalChainingUndefinedMarkerType=VW;function y6(e,t){return An.isTypeFlagSet(t,pt.TypeFlags.Undefined)&&e.getNullableType(t.getNonNullableType(),pt.TypeFlags.Undefined)!==t}Ke.isOptionalChainingUndefinedMarkerType=y6;function HW(e,t){return Uw(e,t,pt.TypeFlags.NumberLike)}Ke.isTypeAssignableToNumber=HW;function KW(e,t){return Uw(e,t,pt.TypeFlags.StringLike)}Ke.isTypeAssignableToString=KW;function Uw(e,t,n){n|=pt.TypeFlags.Any;let i;return function s(l){if(Fn.isTypeParameter(l)&&l.symbol!==void 0&&l.symbol.declarations!==void 0){if(i===void 0)i=new Set([l]);else if(!i.has(l))i.add(l);else return!1;let d=l.symbol.declarations[0];return d.constraint===void 0?!0:s(e.getTypeFromTypeNode(d.constraint))}return Fn.isUnionType(l)?l.types.every(s):Fn.isIntersectionType(l)?l.types.some(s):An.isTypeFlagSet(l,n)}(t)}function h6(e){if(Fn.isUnionType(e)){let t=[];for(let n of e.types)t.push(...h6(n));return t}if(Fn.isIntersectionType(e)){let t;for(let n of e.types){let i=h6(n);if(i.length!==0){if(t!==void 0)return[];t=i}}return t===void 0?[]:t}return e.getCallSignatures()}Ke.getCallSignaturesOfType=h6;function B_(e){return Fn.isUnionType(e)?e.types:[e]}Ke.unionTypeParts=B_;function GW(e){return Fn.isIntersectionType(e)?e.types:[e]}Ke.intersectionTypeParts=GW;function qw(e,t,n){return t(e)?e.types.some(n):n(e)}Ke.someTypePart=qw;function XW(e,t,n=e.getTypeAtLocation(t)){for(let i of B_(e.getApparentType(n))){let s=i.getProperty("then");if(s===void 0)continue;let l=e.getTypeOfSymbolAtLocation(s,t);for(let d of B_(l))for(let y of d.getCallSignatures())if(y.parameters.length!==0&&$W(e,y.parameters[0],t))return!0}return!1}Ke.isThenableType=XW;function $W(e,t,n){let i=e.getApparentType(e.getTypeOfSymbolAtLocation(t,n));if(t.valueDeclaration.dotDotDotToken&&(i=i.getNumberIndexType(),i===void 0))return!1;for(let s of B_(i))if(s.getCallSignatures().length!==0)return!0;return!1}function QW(e){return e.flags&(pt.TypeFlags.Undefined|pt.TypeFlags.Null|pt.TypeFlags.Void)?!0:Fn.isLiteralType(e)?!e.value:g6(e,!1)}Ke.isFalsyType=QW;function g6(e,t){return An.isTypeFlagSet(e,pt.TypeFlags.BooleanLiteral)&&e.intrinsicName===(t?"true":"false")}Ke.isBooleanLiteralType=g6;function p1(e,t){return t.startsWith("__")?e.getProperties().find(n=>n.escapedName===t):e.getProperty(t)}Ke.getPropertyOfType=p1;function YW(e,t,n){let i="__@"+t;for(let s of e.getProperties()){if(!s.name.startsWith(i))continue;let l=n.getApparentType(n.getTypeAtLocation(s.valueDeclaration.name.expression)).symbol;if(s.escapedName===ZW(n,l,t))return s}}Ke.getWellKnownSymbolPropertyOfType=YW;function ZW(e,t,n){let i=t&&e.getTypeOfSymbolAtLocation(t,t.valueDeclaration).getProperty(n),s=i&&e.getTypeOfSymbolAtLocation(i,i.valueDeclaration);return s&&Fn.isUniqueESSymbolType(s)?s.escapedName:"__@"+n}function zw(e,t,n){let i=!1,s=!1;for(let l of B_(e))if(p1(l,t)===void 0){let d=(An.isNumericPropertyName(t)?n.getIndexInfoOfType(l,pt.IndexKind.Number):void 0)||n.getIndexInfoOfType(l,pt.IndexKind.String);if(d!==void 0&&d.isReadonly){if(i)return!0;s=!0}}else{if(s||eV(l,t,n))return!0;i=!0}return!1}Ke.isPropertyReadonlyInType=zw;function eV(e,t,n){return qw(e,Fn.isIntersectionType,i=>{let s=p1(i,t);if(s===void 0)return!1;if(s.flags&pt.SymbolFlags.Transient){if(/^(?:[1-9]\d*|0)$/.test(t)&&Fn.isTupleTypeReference(i))return i.target.readonly;switch(tV(i,t,n)){case!0:return!0;case!1:return!1;default:}}return An.isSymbolFlagSet(s,pt.SymbolFlags.ValueModule)||Ww(s,n)})}function tV(e,t,n){if(!Fn.isObjectType(e)||!An.isObjectFlagSet(e,pt.ObjectFlags.Mapped))return;let i=e.symbol.declarations[0];return i.readonlyToken!==void 0&&!/^__@[^@]+$/.test(t)?i.readonlyToken.kind!==pt.SyntaxKind.MinusToken:zw(e.modifiersType,t,n)}function Ww(e,t){return(e.flags&pt.SymbolFlags.Accessor)===pt.SymbolFlags.GetAccessor||e.declarations!==void 0&&e.declarations.some(n=>An.isModifierFlagSet(n,pt.ModifierFlags.Readonly)||_o.isVariableDeclaration(n)&&An.isNodeFlagSet(n.parent,pt.NodeFlags.Const)||_o.isCallExpression(n)&&An.isReadonlyAssignmentDeclaration(n,t)||_o.isEnumMember(n)||(_o.isPropertyAssignment(n)||_o.isShorthandPropertyAssignment(n))&&An.isInConstContext(n.parent))}Ke.symbolHasReadonlyDeclaration=Ww;function nV(e){if(e.flags&(pt.TypeFlags.StringLiteral|pt.TypeFlags.NumberLiteral)){let t=String(e.value);return{displayName:t,symbolName:pt.escapeLeadingUnderscores(t)}}if(Fn.isUniqueESSymbolType(e))return{displayName:`[${e.symbol?`${rV(e.symbol)?"Symbol.":""}${e.symbol.name}`:e.escapedName.replace(/^__@|@\d+$/g,"")}]`,symbolName:e.escapedName}}Ke.getPropertyNameFromType=nV;function rV(e){return An.isSymbolFlagSet(e,pt.SymbolFlags.Property)&&e.valueDeclaration!==void 0&&_o.isInterfaceDeclaration(e.valueDeclaration.parent)&&e.valueDeclaration.parent.name.text==="SymbolConstructor"&&iV(e.valueDeclaration.parent)}function iV(e){return An.isNodeFlagSet(e.parent,pt.NodeFlags.GlobalAugmentation)||_o.isSourceFile(e.parent)&&!pt.isExternalModule(e.parent)}function b6(e,t){var n;return t.getSymbolAtLocation((n=e.name)!==null&&n!==void 0?n:An.getChildOfKind(e,pt.SyntaxKind.ClassKeyword))}Ke.getSymbolOfClassLikeDeclaration=b6;function aV(e,t){return e.kind===pt.SyntaxKind.ClassExpression?t.getTypeAtLocation(e):t.getTypeOfSymbolAtLocation(b6(e,t),e)}Ke.getConstructorTypeOfClassLikeDeclaration=aV;function oV(e,t){return e.kind===pt.SyntaxKind.ClassDeclaration?t.getTypeAtLocation(e):t.getDeclaredTypeOfSymbol(b6(e,t))}Ke.getInstanceTypeOfClassLikeDeclaration=oV;function sV(e,t,n){return Fn.isUnionType(e)&&e.types.find(i=>{let s=i.getProperty("done");return s!==void 0&&g6(Bw(n,n.getTypeOfSymbolAtLocation(s,t)),!1)})||e}Ke.getIteratorYieldResultFromIteratorResult=sV;function _V(e,t){if(!_o.isClassLikeDeclaration(e.parent))return;let n=An.getBaseOfClassLikeExpression(e.parent);if(n===void 0)return;let i=An.getSingleLateBoundPropertyNameOfPropertyName(e.name,t);if(i===void 0)return;let s=t.getTypeAtLocation(An.hasModifier(e.modifiers,pt.SyntaxKind.StaticKeyword)?n.expression:n);return p1(s,i.symbolName)}Ke.getBaseClassMemberOfClassElement=_V});var v6=tt(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.isValidIdentifier=z.getLineBreakStyle=z.getLineRanges=z.forEachComment=z.forEachTokenWithTrivia=z.forEachToken=z.isFunctionWithBody=z.hasOwnThisReference=z.isBlockScopeBoundary=z.isFunctionScopeBoundary=z.isTypeScopeBoundary=z.isScopeBoundary=z.ScopeBoundarySelector=z.ScopeBoundary=z.isInSingleStatementContext=z.isBlockScopedDeclarationStatement=z.isBlockScopedVariableDeclaration=z.isBlockScopedVariableDeclarationList=z.getVariableDeclarationKind=z.VariableDeclarationKind=z.forEachDeclaredVariable=z.forEachDestructuringIdentifier=z.getPropertyName=z.getWrappedNodeAtPosition=z.getAstNodeAtPosition=z.commentText=z.isPositionInComment=z.getCommentAtPosition=z.getTokenAtPosition=z.getNextToken=z.getPreviousToken=z.getNextStatement=z.getPreviousStatement=z.isModifierFlagSet=z.isObjectFlagSet=z.isSymbolFlagSet=z.isTypeFlagSet=z.isNodeFlagSet=z.hasAccessModifier=z.isParameterProperty=z.hasModifier=z.getModifier=z.isThisParameter=z.isKeywordKind=z.isJsDocKind=z.isTypeNodeKind=z.isAssignmentKind=z.isNodeKind=z.isTokenKind=z.getChildOfKind=void 0;z.getBaseOfClassLikeExpression=z.hasExhaustiveCaseClauses=z.formatPseudoBigInt=z.unwrapParentheses=z.getSingleLateBoundPropertyNameOfPropertyName=z.getLateBoundPropertyNamesOfPropertyName=z.getLateBoundPropertyNames=z.getPropertyNameOfWellKnownSymbol=z.isWellKnownSymbolLiterally=z.isBindableObjectDefinePropertyCall=z.isReadonlyAssignmentDeclaration=z.isInConstContext=z.isConstAssertion=z.getTsCheckDirective=z.getCheckJsDirective=z.isAmbientModule=z.isCompilerOptionEnabled=z.isStrictCompilerOptionEnabled=z.getIIFE=z.isAmbientModuleBlock=z.isStatementInAmbientContext=z.findImportLikeNodes=z.findImports=z.ImportKind=z.parseJsDocOfNode=z.getJsDoc=z.canHaveJsDoc=z.isReassignmentTarget=z.getAccessKind=z.AccessKind=z.isExpressionValueUsed=z.getDeclarationOfBindingElement=z.hasSideEffects=z.SideEffectOptions=z.isSameLine=z.isNumericPropertyName=z.isValidJsxIdentifier=z.isValidNumericLiteral=z.isValidPropertyName=z.isValidPropertyAccess=void 0;var T=Cn(),Gt=l6(),x6=Jw(),ms=Vw();function cV(e,t,n){for(let i of e.getChildren(n))if(i.kind===t)return i}z.getChildOfKind=cV;function _u(e){return e>=T.SyntaxKind.FirstToken&&e<=T.SyntaxKind.LastToken}z.isTokenKind=_u;function Gw(e){return e>=T.SyntaxKind.FirstNode}z.isNodeKind=Gw;function w6(e){return e>=T.SyntaxKind.FirstAssignment&&e<=T.SyntaxKind.LastAssignment}z.isAssignmentKind=w6;function lV(e){return e>=T.SyntaxKind.FirstTypeNode&&e<=T.SyntaxKind.LastTypeNode}z.isTypeNodeKind=lV;function uV(e){return e>=T.SyntaxKind.FirstJSDocNode&&e<=T.SyntaxKind.LastJSDocNode}z.isJsDocKind=uV;function pV(e){return e>=T.SyntaxKind.FirstKeyword&&e<=T.SyntaxKind.LastKeyword}z.isKeywordKind=pV;function dV(e){return e.name.kind===T.SyntaxKind.Identifier&&e.name.originalKeywordKind===T.SyntaxKind.ThisKeyword}z.isThisParameter=dV;function fV(e,t){if(e.modifiers!==void 0){for(let n of e.modifiers)if(n.kind===t)return n}}z.getModifier=fV;function z_(e,...t){if(e===void 0)return!1;for(let n of e)if(t.includes(n.kind))return!0;return!1}z.hasModifier=z_;function mV(e){return z_(e.modifiers,T.SyntaxKind.PublicKeyword,T.SyntaxKind.ProtectedKeyword,T.SyntaxKind.PrivateKeyword,T.SyntaxKind.ReadonlyKeyword)}z.isParameterProperty=mV;function yV(e){return Xw(e,T.ModifierFlags.AccessibilityModifier)}z.hasAccessModifier=yV;function E6(e,t){return(e.flags&t)!==0}z.isNodeFlagSet=E6;z.isTypeFlagSet=E6;z.isSymbolFlagSet=E6;function hV(e,t){return(e.objectFlags&t)!==0}z.isObjectFlagSet=hV;function Xw(e,t){return(T.getCombinedModifierFlags(e)&t)!==0}z.isModifierFlagSet=Xw;function gV(e){let t=e.parent;if(Gt.isBlockLike(t)){let n=t.statements.indexOf(e);if(n>0)return t.statements[n-1]}}z.getPreviousStatement=gV;function bV(e){let t=e.parent;if(Gt.isBlockLike(t)){let n=t.statements.indexOf(e);if(n=e.end))return _u(e.kind)?e:d1(e,t,n??e.getSourceFile(),i===!0)}z.getTokenAtPosition=$w;function d1(e,t,n,i){if(!i&&(e=Yw(e,t),_u(e.kind)))return e;e:for(;;){for(let s of e.getChildren(n))if(s.end>t&&(i||s.kind!==T.SyntaxKind.JSDocComment)){if(_u(s.kind))return s;e=s;continue e}return}}function Qw(e,t,n=e){let i=$w(n,t,e);if(i===void 0||i.kind===T.SyntaxKind.JsxText||t>=i.end-(T.tokenToString(i.kind)||"").length)return;let s=i.pos===0?(T.getShebang(e.text)||"").length:i.pos;return s!==0&&T.forEachTrailingCommentRange(e.text,s,Hw,t)||T.forEachLeadingCommentRange(e.text,s,Hw,t)}z.getCommentAtPosition=Qw;function Hw(e,t,n,i,s){return s>=e&&st||e.end<=t)){for(;Gw(e.kind);){let n=T.forEachChild(e,i=>i.pos<=t&&i.end>t?i:void 0);if(n===void 0)break;e=n}return e}}z.getAstNodeAtPosition=Yw;function wV(e,t){if(!(e.node.pos>t||e.node.end<=t))e:for(;;){for(let n of e.children){if(n.node.pos>t)return e;if(n.node.end>t){e=n;continue e}}return e}}z.getWrappedNodeAtPosition=wV;function C6(e){if(e.kind===T.SyntaxKind.ComputedPropertyName){let t=R6(e.expression);if(Gt.isPrefixUnaryExpression(t)){let n=!1;switch(t.operator){case T.SyntaxKind.MinusToken:n=!0;case T.SyntaxKind.PlusToken:return Gt.isNumericLiteral(t.operand)?`${n?"-":""}${t.operand.text}`:x6.isBigIntLiteral(t.operand)?`${n?"-":""}${t.operand.text.slice(0,-1)}`:void 0;default:return}}return x6.isBigIntLiteral(t)?t.text.slice(0,-1):Gt.isNumericOrStringLikeLiteral(t)?t.text:void 0}return e.kind===T.SyntaxKind.PrivateIdentifier?void 0:e.text}z.getPropertyName=C6;function k6(e,t){for(let n of e.elements){if(n.kind!==T.SyntaxKind.BindingElement)continue;let i;if(n.name.kind===T.SyntaxKind.Identifier?i=t(n):i=k6(n.name,t),i)return i}}z.forEachDestructuringIdentifier=k6;function EV(e,t){for(let n of e.declarations){let i;if(n.name.kind===T.SyntaxKind.Identifier?i=t(n):i=k6(n.name,t),i)return i}}z.forEachDeclaredVariable=EV;var CV;(function(e){e[e.Var=0]="Var",e[e.Let=1]="Let",e[e.Const=2]="Const"})(CV=z.VariableDeclarationKind||(z.VariableDeclarationKind={}));function kV(e){return e.flags&T.NodeFlags.Let?1:e.flags&T.NodeFlags.Const?2:0}z.getVariableDeclarationKind=kV;function A6(e){return(e.flags&T.NodeFlags.BlockScoped)!==0}z.isBlockScopedVariableDeclarationList=A6;function AV(e){let t=e.parent;return t.kind===T.SyntaxKind.CatchClause||A6(t)}z.isBlockScopedVariableDeclaration=AV;function DV(e){switch(e.kind){case T.SyntaxKind.VariableStatement:return A6(e.declarationList);case T.SyntaxKind.ClassDeclaration:case T.SyntaxKind.EnumDeclaration:case T.SyntaxKind.InterfaceDeclaration:case T.SyntaxKind.TypeAliasDeclaration:return!0;default:return!1}}z.isBlockScopedDeclarationStatement=DV;function PV(e){switch(e.parent.kind){case T.SyntaxKind.ForStatement:case T.SyntaxKind.ForInStatement:case T.SyntaxKind.ForOfStatement:case T.SyntaxKind.WhileStatement:case T.SyntaxKind.DoStatement:case T.SyntaxKind.IfStatement:case T.SyntaxKind.WithStatement:case T.SyntaxKind.LabeledStatement:return!0;default:return!1}}z.isInSingleStatementContext=PV;var NV;(function(e){e[e.None=0]="None",e[e.Function=1]="Function",e[e.Block=2]="Block",e[e.Type=4]="Type",e[e.ConditionalType=8]="ConditionalType"})(NV=z.ScopeBoundary||(z.ScopeBoundary={}));var IV;(function(e){e[e.Function=1]="Function",e[e.Block=3]="Block",e[e.Type=7]="Type",e[e.InferType=8]="InferType"})(IV=z.ScopeBoundarySelector||(z.ScopeBoundarySelector={}));function OV(e){return D6(e)||eE(e)||Zw(e)}z.isScopeBoundary=OV;function Zw(e){switch(e.kind){case T.SyntaxKind.InterfaceDeclaration:case T.SyntaxKind.TypeAliasDeclaration:case T.SyntaxKind.MappedType:return 4;case T.SyntaxKind.ConditionalType:return 8;default:return 0}}z.isTypeScopeBoundary=Zw;function D6(e){switch(e.kind){case T.SyntaxKind.FunctionExpression:case T.SyntaxKind.ArrowFunction:case T.SyntaxKind.Constructor:case T.SyntaxKind.ModuleDeclaration:case T.SyntaxKind.ClassDeclaration:case T.SyntaxKind.ClassExpression:case T.SyntaxKind.EnumDeclaration:case T.SyntaxKind.MethodDeclaration:case T.SyntaxKind.FunctionDeclaration:case T.SyntaxKind.GetAccessor:case T.SyntaxKind.SetAccessor:case T.SyntaxKind.MethodSignature:case T.SyntaxKind.CallSignature:case T.SyntaxKind.ConstructSignature:case T.SyntaxKind.ConstructorType:case T.SyntaxKind.FunctionType:return 1;case T.SyntaxKind.SourceFile:return T.isExternalModule(e)?1:0;default:return 0}}z.isFunctionScopeBoundary=D6;function eE(e){switch(e.kind){case T.SyntaxKind.Block:let t=e.parent;return t.kind!==T.SyntaxKind.CatchClause&&(t.kind===T.SyntaxKind.SourceFile||!D6(t))?2:0;case T.SyntaxKind.ForStatement:case T.SyntaxKind.ForInStatement:case T.SyntaxKind.ForOfStatement:case T.SyntaxKind.CaseBlock:case T.SyntaxKind.CatchClause:case T.SyntaxKind.WithStatement:return 2;default:return 0}}z.isBlockScopeBoundary=eE;function MV(e){switch(e.kind){case T.SyntaxKind.ClassDeclaration:case T.SyntaxKind.ClassExpression:case T.SyntaxKind.FunctionExpression:return!0;case T.SyntaxKind.FunctionDeclaration:return e.body!==void 0;case T.SyntaxKind.MethodDeclaration:case T.SyntaxKind.GetAccessor:case T.SyntaxKind.SetAccessor:return e.parent.kind===T.SyntaxKind.ObjectLiteralExpression;default:return!1}}z.hasOwnThisReference=MV;function LV(e){switch(e.kind){case T.SyntaxKind.GetAccessor:case T.SyntaxKind.SetAccessor:case T.SyntaxKind.FunctionDeclaration:case T.SyntaxKind.MethodDeclaration:case T.SyntaxKind.Constructor:return e.body!==void 0;case T.SyntaxKind.FunctionExpression:case T.SyntaxKind.ArrowFunction:return!0;default:return!1}}z.isFunctionWithBody=LV;function P6(e,t,n=e.getSourceFile()){let i=[];for(;;){if(_u(e.kind))t(e);else if(e.kind!==T.SyntaxKind.JSDocComment){let s=e.getChildren(n);if(s.length===1){e=s[0];continue}for(let l=s.length-1;l>=0;--l)i.push(s[l])}if(i.length===0)break;e=i.pop()}}z.forEachToken=P6;function JV(e,t,n=e.getSourceFile()){let i=n.text,s=T.createScanner(n.languageVersion,!1,n.languageVariant,i);return P6(e,l=>{let d=l.kind===T.SyntaxKind.JsxText||l.pos===l.end?l.pos:l.getStart(n);if(d!==l.pos){s.setTextPos(l.pos);let y=s.scan(),p=s.getTokenPos();for(;p{if(d.pos!==d.end&&(d.kind!==T.SyntaxKind.JsxText&&T.forEachLeadingCommentRange(i,d.pos===0?(T.getShebang(i)||"").length:d.pos,l),s||FV(d)))return T.forEachTrailingCommentRange(i,d.end,l)},n);function l(d,y,p){t(i,{pos:d,end:y,kind:p})}}z.forEachComment=RV;function FV(e){switch(e.kind){case T.SyntaxKind.CloseBraceToken:return e.parent.kind!==T.SyntaxKind.JsxExpression||!T6(e.parent.parent);case T.SyntaxKind.GreaterThanToken:switch(e.parent.kind){case T.SyntaxKind.JsxOpeningElement:return e.end!==e.parent.end;case T.SyntaxKind.JsxOpeningFragment:return!1;case T.SyntaxKind.JsxSelfClosingElement:return e.end!==e.parent.end||!T6(e.parent.parent);case T.SyntaxKind.JsxClosingElement:case T.SyntaxKind.JsxClosingFragment:return!T6(e.parent.parent.parent)}}return!0}function T6(e){return e.kind===T.SyntaxKind.JsxElement||e.kind===T.SyntaxKind.JsxFragment}function jV(e){let t=e.getLineStarts(),n=[],i=t.length,s=e.text,l=0;for(let d=1;dl&&T.isLineBreak(s.charCodeAt(p-1));--p);n.push({pos:l,end:y,contentLength:p-l}),l=y}return n.push({pos:l,end:e.end,contentLength:e.end-l}),n}z.getLineRanges=jV;function BV(e){let t=e.getLineStarts();return t.length===1||t[1]<2||e.text[t[1]-2]!=="\r"?` -`:`\r -`}z.getLineBreakStyle=BV;var U_;function N6(e,t){return U_===void 0?U_=T.createScanner(t,!1,void 0,e):(U_.setScriptTarget(t),U_.setText(e)),U_.scan(),U_}function UV(e,t=T.ScriptTarget.Latest){let n=N6(e,t);return n.isIdentifier()&&n.getTextPos()===e.length&&n.getTokenPos()===0}z.isValidIdentifier=UV;function su(e){return e>=65536?2:1}function tE(e,t=T.ScriptTarget.Latest){if(e.length===0)return!1;let n=e.codePointAt(0);if(!T.isIdentifierStart(n,t))return!1;for(let i=su(n);iw===T.SyntaxKind.MultiLineCommentTrivia&&n.text[h+2]==="*"?{pos:h}:void 0);if(s===void 0)return[];let l=s.pos,d=n.text.slice(l,t),y=T.createSourceFile("jsdoc.ts",`${d}var a;`,n.languageVersion),p=O6(y.statements[0],y);for(let h of p)x(h,e);return p;function x(h,D){return h.pos+=l,h.end+=l,h.parent=D,T.forEachChild(h,w=>x(w,h),w=>{w.pos+=l,w.end+=l;for(let g of w)x(g,h)})}}var eH;(function(e){e[e.ImportDeclaration=1]="ImportDeclaration",e[e.ImportEquals=2]="ImportEquals",e[e.ExportFrom=4]="ExportFrom",e[e.DynamicImport=8]="DynamicImport",e[e.Require=16]="Require",e[e.ImportType=32]="ImportType",e[e.All=63]="All",e[e.AllImports=59]="AllImports",e[e.AllStaticImports=3]="AllStaticImports",e[e.AllImportExpressions=24]="AllImportExpressions",e[e.AllRequireLike=18]="AllRequireLike",e[e.AllNestedImports=56]="AllNestedImports",e[e.AllTopLevelImports=7]="AllTopLevelImports"})(eH=z.ImportKind||(z.ImportKind={}));function tH(e,t,n=!0){let i=[];for(let l of iE(e,t,n))switch(l.kind){case T.SyntaxKind.ImportDeclaration:s(l.moduleSpecifier);break;case T.SyntaxKind.ImportEqualsDeclaration:s(l.moduleReference.expression);break;case T.SyntaxKind.ExportDeclaration:s(l.moduleSpecifier);break;case T.SyntaxKind.CallExpression:s(l.arguments[0]);break;case T.SyntaxKind.ImportType:Gt.isLiteralTypeNode(l.argument)&&s(l.argument.literal);break;default:throw new Error("unexpected node")}return i;function s(l){Gt.isTextualLiteral(l)&&i.push(l)}}z.findImports=tH;function iE(e,t,n=!0){return new S6(e,t,n).find()}z.findImportLikeNodes=iE;var S6=class{constructor(t,n,i){this._sourceFile=t,this._options=n,this._ignoreFileName=i,this._result=[]}find(){return this._sourceFile.isDeclarationFile&&(this._options&=-25),this._options&7&&this._findImports(this._sourceFile.statements),this._options&56&&this._findNestedImports(),this._result}_findImports(t){for(let n of t)Gt.isImportDeclaration(n)?this._options&1&&this._result.push(n):Gt.isImportEqualsDeclaration(n)?this._options&2&&n.moduleReference.kind===T.SyntaxKind.ExternalModuleReference&&this._result.push(n):Gt.isExportDeclaration(n)?n.moduleSpecifier!==void 0&&this._options&4&&this._result.push(n):Gt.isModuleDeclaration(n)&&this._findImportsInModule(n)}_findImportsInModule(t){if(t.body!==void 0){if(t.body.kind===T.SyntaxKind.ModuleDeclaration)return this._findImportsInModule(t.body);this._findImports(t.body.statements)}}_findNestedImports(){let t=this._ignoreFileName||(this._sourceFile.flags&T.NodeFlags.JavaScriptFile)!==0,n,i;if((this._options&56)===16){if(!t)return;n=/\brequire\s*[1&&this._result.push(l.parent)}}else l.kind===T.SyntaxKind.Identifier&&l.end-7===s.index&&l.parent.kind===T.SyntaxKind.CallExpression&&l.parent.expression===l&&l.parent.arguments.length===1&&this._result.push(l.parent)}}};function nH(e){for(;e.flags&T.NodeFlags.NestedNamespace;)e=e.parent;return z_(e.modifiers,T.SyntaxKind.DeclareKeyword)||aE(e.parent)}z.isStatementInAmbientContext=nH;function aE(e){for(;e.kind===T.SyntaxKind.ModuleBlock;){do e=e.parent;while(e.flags&T.NodeFlags.NestedNamespace);if(z_(e.modifiers,T.SyntaxKind.DeclareKeyword))return!0;e=e.parent}return!1}z.isAmbientModuleBlock=aE;function rH(e){let t=e.parent;for(;t.kind===T.SyntaxKind.ParenthesizedExpression;)t=t.parent;return Gt.isCallExpression(t)&&e.end<=t.expression.end?t:void 0}z.getIIFE=rH;function M6(e,t){return(e.strict?e[t]!==!1:e[t]===!0)&&(t!=="strictPropertyInitialization"||M6(e,"strictNullChecks"))}z.isStrictCompilerOptionEnabled=M6;function Da(e,t){switch(t){case"stripInternal":case"declarationMap":case"emitDeclarationOnly":return e[t]===!0&&Da(e,"declaration");case"declaration":return e.declaration||Da(e,"composite");case"incremental":return e.incremental===void 0?Da(e,"composite"):e.incremental;case"skipDefaultLibCheck":return e.skipDefaultLibCheck||Da(e,"skipLibCheck");case"suppressImplicitAnyIndexErrors":return e.suppressImplicitAnyIndexErrors===!0&&Da(e,"noImplicitAny");case"allowSyntheticDefaultImports":return e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:Da(e,"esModuleInterop")||e.module===T.ModuleKind.System;case"noUncheckedIndexedAccess":return e.noUncheckedIndexedAccess===!0&&Da(e,"strictNullChecks");case"allowJs":return e.allowJs===void 0?Da(e,"checkJs"):e.allowJs;case"noImplicitAny":case"noImplicitThis":case"strictNullChecks":case"strictFunctionTypes":case"strictPropertyInitialization":case"alwaysStrict":case"strictBindCallApply":return M6(e,t)}return e[t]===!0}z.isCompilerOptionEnabled=Da;function iH(e){return e.name.kind===T.SyntaxKind.StringLiteral||(e.flags&T.NodeFlags.GlobalAugmentation)!==0}z.isAmbientModule=iH;function aH(e){return oE(e)}z.getCheckJsDirective=aH;function oE(e){let t;return T.forEachLeadingCommentRange(e,(T.getShebang(e)||"").length,(n,i,s)=>{if(s===T.SyntaxKind.SingleLineCommentTrivia){let l=e.slice(n,i),d=/^\/{2,3}\s*@ts-(no)?check(?:\s|$)/i.exec(l);d!==null&&(t={pos:n,end:i,enabled:d[1]===void 0})}}),t}z.getTsCheckDirective=oE;function sE(e){return Gt.isTypeReferenceNode(e.type)&&e.type.typeName.kind===T.SyntaxKind.Identifier&&e.type.typeName.escapedText==="const"}z.isConstAssertion=sE;function oH(e){let t=e;for(;;){let n=t.parent;e:switch(n.kind){case T.SyntaxKind.TypeAssertionExpression:case T.SyntaxKind.AsExpression:return sE(n);case T.SyntaxKind.PrefixUnaryExpression:if(t.kind!==T.SyntaxKind.NumericLiteral)return!1;switch(n.operator){case T.SyntaxKind.PlusToken:case T.SyntaxKind.MinusToken:t=n;break e;default:return!1}case T.SyntaxKind.PropertyAssignment:if(n.initializer!==t)return!1;t=n.parent;break;case T.SyntaxKind.ShorthandPropertyAssignment:t=n.parent;break;case T.SyntaxKind.ParenthesizedExpression:case T.SyntaxKind.ArrayLiteralExpression:case T.SyntaxKind.ObjectLiteralExpression:case T.SyntaxKind.TemplateExpression:t=n;break;default:return!1}}}z.isInConstContext=oH;function sH(e,t){if(!_E(e))return!1;let n=t.getTypeAtLocation(e.arguments[2]);if(n.getProperty("value")===void 0)return n.getProperty("set")===void 0;let i=n.getProperty("writable");if(i===void 0)return!1;let s=i.valueDeclaration!==void 0&&Gt.isPropertyAssignment(i.valueDeclaration)?t.getTypeAtLocation(i.valueDeclaration.initializer):t.getTypeOfSymbolAtLocation(i,e.arguments[2]);return ms.isBooleanLiteralType(s,!1)}z.isReadonlyAssignmentDeclaration=sH;function _E(e){return e.arguments.length===3&&Gt.isEntityNameExpression(e.arguments[0])&&Gt.isNumericOrStringLikeLiteral(e.arguments[1])&&Gt.isPropertyAccessExpression(e.expression)&&e.expression.name.escapedText==="defineProperty"&&Gt.isIdentifier(e.expression.expression)&&e.expression.expression.escapedText==="Object"}z.isBindableObjectDefinePropertyCall=_E;function L6(e){return T.isPropertyAccessExpression(e)&&T.isIdentifier(e.expression)&&e.expression.escapedText==="Symbol"}z.isWellKnownSymbolLiterally=L6;function J6(e){return{displayName:`[Symbol.${e.name.text}]`,symbolName:"__@"+e.name.text}}z.getPropertyNameOfWellKnownSymbol=J6;var cE=(([e,t])=>e<"4"||e==="4"&&t<"3")(T.versionMajorMinor.split("."));function lE(e,t){let n={known:!0,names:[]};if(e=R6(e),cE&&L6(e))n.names.push(J6(e));else{let i=t.getTypeAtLocation(e);for(let s of ms.unionTypeParts(t.getBaseConstraintOfType(i)||i)){let l=ms.getPropertyNameFromType(s);l?n.names.push(l):n.known=!1}}return n}z.getLateBoundPropertyNames=lE;function _H(e,t){let n=C6(e);return n!==void 0?{known:!0,names:[{displayName:n,symbolName:T.escapeLeadingUnderscores(n)}]}:e.kind===T.SyntaxKind.PrivateIdentifier?{known:!0,names:[{displayName:e.text,symbolName:t.getSymbolAtLocation(e).escapedName}]}:lE(e.expression,t)}z.getLateBoundPropertyNamesOfPropertyName=_H;function cH(e,t){let n=C6(e);if(n!==void 0)return{displayName:n,symbolName:T.escapeLeadingUnderscores(n)};if(e.kind===T.SyntaxKind.PrivateIdentifier)return{displayName:e.text,symbolName:t.getSymbolAtLocation(e).escapedName};let{expression:i}=e;return cE&&L6(i)?J6(i):ms.getPropertyNameFromType(t.getTypeAtLocation(i))}z.getSingleLateBoundPropertyNameOfPropertyName=cH;function R6(e){for(;e.kind===T.SyntaxKind.ParenthesizedExpression;)e=e.expression;return e}z.unwrapParentheses=R6;function uE(e){return`${e.negative?"-":""}${e.base10Value}n`}z.formatPseudoBigInt=uE;function lH(e,t){let n=e.caseBlock.clauses.filter(Gt.isCaseClause);if(n.length===0)return!1;let i=ms.unionTypeParts(t.getTypeAtLocation(e.expression));if(i.length>n.length)return!1;let s=new Set(i.map(Kw));if(s.has(void 0))return!1;let l=new Set;for(let d of n){let y=t.getTypeAtLocation(d.expression);if(z.isTypeFlagSet(y,T.TypeFlags.Never))continue;let p=Kw(y);if(s.has(p))l.add(p);else if(p!=="null"&&p!=="undefined")return!1}return s.size===l.size}z.hasExhaustiveCaseClauses=lH;function Kw(e){if(z.isTypeFlagSet(e,T.TypeFlags.Null))return"null";if(z.isTypeFlagSet(e,T.TypeFlags.Undefined))return"undefined";if(z.isTypeFlagSet(e,T.TypeFlags.NumberLiteral))return`${z.isTypeFlagSet(e,T.TypeFlags.EnumLiteral)?"enum:":""}${e.value}`;if(z.isTypeFlagSet(e,T.TypeFlags.StringLiteral))return`${z.isTypeFlagSet(e,T.TypeFlags.EnumLiteral)?"enum:":""}string:${e.value}`;if(z.isTypeFlagSet(e,T.TypeFlags.BigIntLiteral))return uE(e.value);if(x6.isUniqueESSymbolType(e))return e.escapedName;if(ms.isBooleanLiteralType(e,!0))return"true";if(ms.isBooleanLiteralType(e,!1))return"false"}function pE(e){var t;if(((t=e.heritageClauses)===null||t===void 0?void 0:t[0].token)===T.SyntaxKind.ExtendsKeyword)return e.heritageClauses[0].types[0]}z.getBaseOfClassLikeExpression=pE});var mE=tt(Zi=>{"use strict";var uH=Zi&&Zi.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,s)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),pH=Zi&&Zi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),dH=Zi&&Zi.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&uH(t,e,n);return pH(t,e),t};Object.defineProperty(Zi,"__esModule",{value:!0});Zi.convertComments=void 0;var fH=v6(),dE=dH(Cn()),mH=l1(),fE=_1();function yH(e,t){let n=[];return(0,fH.forEachComment)(e,(i,s)=>{let l=s.kind===dE.SyntaxKind.SingleLineCommentTrivia?fE.AST_TOKEN_TYPES.Line:fE.AST_TOKEN_TYPES.Block,d=[s.pos,s.end],y=(0,mH.getLocFor)(d[0],d[1],e),p=d[0]+2,x=s.kind===dE.SyntaxKind.SingleLineCommentTrivia?d[1]-p:d[1]-p-2;n.push({type:l,value:t.slice(p,p+x),range:d,loc:y})},e),n}Zi.convertComments=yH});var hE=tt(f1=>{"use strict";Object.defineProperty(f1,"__esModule",{value:!0});f1.astConverter=void 0;var yE=r6(),hH=mE(),gH=l1(),bH={};function vH(e,t,n){let{parseDiagnostics:i}=e;if(i.length)throw(0,yE.convertError)(i[0]);let s=new yE.Converter(e,{errorOnUnknownASTType:t.errorOnUnknownASTType||!1,shouldPreserveNodeMaps:n}),l=s.convertProgram();(!t.range||!t.loc)&&(0,bH.simpleTraverse)(l,{enter:y=>{t.range||delete y.range,t.loc||delete y.loc}}),t.tokens&&(l.tokens=(0,gH.convertTokens)(e)),t.comment&&(l.comments=(0,hH.convertComments)(e,t.code));let d=s.getASTMaps();return{estree:l,astMaps:d}}f1.astConverter=vH});var gE=tt(ur=>{"use strict";var TH=ur&&ur.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,s)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),xH=ur&&ur.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),SH=ur&&ur.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&TH(t,e,n);return xH(t,e),t},wH=ur&&ur.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ur,"__esModule",{value:!0});ur.getLanguageVariant=ur.getScriptKind=void 0;var EH=wH({extname:e=>"."+e.split(".").pop()}),Xt=SH(Cn());function CH(e,t){switch(EH.default.extname(e).toLowerCase()){case Xt.Extension.Js:case Xt.Extension.Cjs:case Xt.Extension.Mjs:return Xt.ScriptKind.JS;case Xt.Extension.Jsx:return Xt.ScriptKind.JSX;case Xt.Extension.Ts:case Xt.Extension.Cts:case Xt.Extension.Mts:return Xt.ScriptKind.TS;case Xt.Extension.Tsx:return Xt.ScriptKind.TSX;case Xt.Extension.Json:return Xt.ScriptKind.JSON;default:return t?Xt.ScriptKind.TSX:Xt.ScriptKind.TS}}ur.getScriptKind=CH;function kH(e){switch(e){case Xt.ScriptKind.TSX:case Xt.ScriptKind.JSX:case Xt.ScriptKind.JS:case Xt.ScriptKind.JSON:return Xt.LanguageVariant.JSX;default:return Xt.LanguageVariant.Standard}}ur.getLanguageVariant=kH});var vE=tt(Zr=>{"use strict";var AH=Zr&&Zr.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,s)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),DH=Zr&&Zr.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),PH=Zr&&Zr.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&AH(t,e,n);return DH(t,e),t},NH=Zr&&Zr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zr,"__esModule",{value:!0});Zr.createSourceFile=void 0;var IH=NH((zd(),jr(qd))),bE=PH(Cn()),OH=gE(),MH=(0,IH.default)("typescript-eslint:typescript-estree:createSourceFile");function LH(e){return MH("Getting AST without type information in %s mode for: %s",e.jsx?"TSX":"TS",e.filePath),bE.createSourceFile(e.filePath,e.code,bE.ScriptTarget.Latest,!0,(0,OH.getScriptKind)(e.filePath,e.jsx))}Zr.createSourceFile=LH});var xE=tt(TE=>{TE.ExpiringCache=class{}});var wE=tt(SE=>{SE.resolveProjectList=()=>[]});var CE=tt(EE=>{EE.inferSingleRun=()=>!1});var AE=tt(kE=>{kE.warnAboutTSVersion=()=>{}});var PE=tt(co=>{"use strict";var JH=co&&co.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(co,"__esModule",{value:!0});co.clearTSConfigMatchCache=co.createParseSettings=void 0;var F6=JH((zd(),jr(qd))),RH={ensureAbsolutePath:e=>e},DE=xE(),VG=wE(),FH=CE(),jH=AE(),BH=(0,F6.default)("typescript-eslint:typescript-estree:parser:parseSettings:createParseSettings"),ys;function UH(e,t={}){var n,i,s;let l=(0,FH.inferSingleRun)(t),d=typeof t.tsconfigRootDir=="string"?t.tsconfigRootDir:"/prettier-security-dirname-placeholder",y={code:zH(e),comment:t.comment===!0,comments:[],createDefaultProgram:t.createDefaultProgram===!0,debugLevel:t.debugLevel===!0?new Set(["typescript-eslint"]):Array.isArray(t.debugLevel)?new Set(t.debugLevel):new Set,errorOnTypeScriptSyntacticAndSemanticIssues:!1,errorOnUnknownASTType:t.errorOnUnknownASTType===!0,EXPERIMENTAL_useSourceOfProjectReferenceRedirect:t.EXPERIMENTAL_useSourceOfProjectReferenceRedirect===!0,extraFileExtensions:Array.isArray(t.extraFileExtensions)&&t.extraFileExtensions.every(p=>typeof p=="string")?t.extraFileExtensions:[],filePath:(0,RH.ensureAbsolutePath)(typeof t.filePath=="string"&&t.filePath!==""?t.filePath:WH(t.jsx),d),jsx:t.jsx===!0,loc:t.loc===!0,log:typeof t.loggerFn=="function"?t.loggerFn:t.loggerFn===!1?()=>{}:console.log,moduleResolver:(n=t.moduleResolver)!==null&&n!==void 0?n:"",preserveNodeMaps:t.preserveNodeMaps!==!1,programs:Array.isArray(t.programs)?t.programs:null,projects:[],range:t.range===!0,singleRun:l,tokens:t.tokens===!0?[]:null,tsconfigMatchCache:ys??(ys=new DE.ExpiringCache(l?"Infinity":(s=(i=t.cacheLifetime)===null||i===void 0?void 0:i.glob)!==null&&s!==void 0?s:DE.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS)),tsconfigRootDir:d};if(y.debugLevel.size>0){let p=[];y.debugLevel.has("typescript-eslint")&&p.push("typescript-eslint:*"),(y.debugLevel.has("eslint")||F6.default.enabled("eslint:*,-eslint:code-path"))&&p.push("eslint:*,-eslint:code-path"),F6.default.enable(p.join(","))}if(Array.isArray(t.programs)){if(!t.programs.length)throw new Error("You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.");BH("parserOptions.programs was provided, so parserOptions.project will be ignored.")}return y.programs||(y.projects=[]),(0,jH.warnAboutTSVersion)(y),y}co.createParseSettings=UH;function qH(){ys==null||ys.clear()}co.clearTSConfigMatchCache=qH;function zH(e){return typeof e!="string"?String(e):e}function WH(e){return e?"estree.tsx":"estree.ts"}});var ME=tt(m1=>{"use strict";Object.defineProperty(m1,"__esModule",{value:!0});m1.getFirstSemanticOrSyntacticError=void 0;var NE=Cn();function VH(e,t){try{let n=IE(e.getSyntacticDiagnostics(t));if(n.length)return OE(n[0]);let i=IE(e.getSemanticDiagnostics(t));return i.length?OE(i[0]):void 0}catch(n){console.warn(`Warning From TSC: "${n.message}`);return}}m1.getFirstSemanticOrSyntacticError=VH;function IE(e){return e.filter(t=>{switch(t.code){case 1013:case 1014:case 1044:case 1045:case 1048:case 1049:case 1070:case 1071:case 1085:case 1090:case 1096:case 1097:case 1098:case 1099:case 1117:case 1121:case 1123:case 1141:case 1162:case 1164:case 1172:case 1173:case 1175:case 1176:case 1190:case 1196:case 1200:case 1206:case 1211:case 1242:case 1246:case 1255:case 1308:case 2364:case 2369:case 2452:case 2462:case 8017:case 17012:case 17013:return!0}return!1})}function OE(e){return Object.assign(Object.assign({},e),{message:(0,NE.flattenDiagnosticMessageText)(e.messageText,NE.sys.newLine)})}});var BE=tt(pr=>{"use strict";var HH=pr&&pr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pr,"__esModule",{value:!0});pr.clearParseAndGenerateServicesCalls=pr.clearProgramCache=pr.parseWithNodeMaps=pr.parseAndGenerateServices=pr.parse=void 0;var KH=HH((zd(),jr(qd))),LE=hE(),GH=r6(),XH={},JE={},$H={},QH=vE(),RE={},FE=PE(),YH=ME(),ZH=(0,KH.default)("typescript-eslint:typescript-estree:parser"),j6=new Map;function eK(){j6.clear()}pr.clearProgramCache=eK;function tK(e,t){return e.programs&&(0,RE.useProvidedPrograms)(e.programs,e)||t&&(0,$H.createProjectProgram)(e)||t&&e.createDefaultProgram&&(0,XH.createDefaultProgram)(e)||(0,JE.createIsolatedProgram)(e)}function nK(e,t){let{ast:n}=jE(e,t,!1);return n}pr.parse=nK;function jE(e,t,n){let i=(0,FE.createParseSettings)(e,t);if(t!=null&&t.errorOnTypeScriptSyntacticAndSemanticIssues)throw new Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');let s=(0,QH.createSourceFile)(i),{estree:l,astMaps:d}=(0,LE.astConverter)(s,i,n);return{ast:l,esTreeNodeToTSNodeMap:d.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:d.tsNodeToESTreeNodeMap}}function rK(e,t){return jE(e,t,!0)}pr.parseWithNodeMaps=rK;var y1={};function iK(){y1={}}pr.clearParseAndGenerateServicesCalls=iK;function aK(e,t){var n,i;let s=(0,FE.createParseSettings)(e,t);t!==void 0&&typeof t.errorOnTypeScriptSyntacticAndSemanticIssues=="boolean"&&t.errorOnTypeScriptSyntacticAndSemanticIssues&&(s.errorOnTypeScriptSyntacticAndSemanticIssues=!0),s.singleRun&&!s.programs&&((n=s.projects)===null||n===void 0?void 0:n.length)>0&&(s.programs={*[Symbol.iterator](){for(let D of s.projects){let w=j6.get(D);if(w)yield w;else{ZH("Detected single-run/CLI usage, creating Program once ahead of time for project: %s",D);let g=(0,RE.createProgramFromConfigFile)(D);j6.set(D,g),yield g}}}});let l=s.programs!=null||((i=s.projects)===null||i===void 0?void 0:i.length)>0;s.singleRun&&t.filePath&&(y1[t.filePath]=(y1[t.filePath]||0)+1);let{ast:d,program:y}=s.singleRun&&t.filePath&&y1[t.filePath]>1?(0,JE.createIsolatedProgram)(s):tK(s,l),p=typeof s.preserveNodeMaps=="boolean"?s.preserveNodeMaps:!0,{estree:x,astMaps:h}=(0,LE.astConverter)(d,s,p);if(y&&s.errorOnTypeScriptSyntacticAndSemanticIssues){let D=(0,YH.getFirstSemanticOrSyntacticError)(y,d);if(D)throw(0,GH.convertError)(D)}return{ast:x,services:{hasFullTypeInformation:l,program:y,esTreeNodeToTSNodeMap:h.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:h.tsNodeToESTreeNodeMap}}}pr.parseAndGenerateServices=aK});var GE=tt(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.extract=dK;hs.parse=mK;hs.parseWithComments=KE;hs.print=yK;hs.strip=fK;var _K=/\*\/$/,cK=/^\/\*\*?/,VE=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,lK=/(^|\s+)\/\/([^\r\n]*)/g,qE=/^(\r?\n)+/,uK=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,zE=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,pK=/(\r?\n|^) *\* ?/g,HE=[];function dK(e){let t=e.match(VE);return t?t[0].trimLeft():""}function fK(e){let t=e.match(VE);return t&&t[0]?e.substring(t[0].length):e}function mK(e){return KE(e).pragmas}function KE(e){let t=` -`;e=e.replace(cK,"").replace(_K,"").replace(pK,"$1");let n="";for(;n!==e;)n=e,e=e.replace(uK,`${t}$1 $2${t}`);e=e.replace(qE,"").trimRight();let i=Object.create(null),s=e.replace(zE,"").replace(qE,"").trimRight(),l;for(;l=zE.exec(e);){let d=l[2].replace(lK,"");typeof i[l[1]]=="string"||Array.isArray(i[l[1]])?i[l[1]]=HE.concat(i[l[1]],d):i[l[1]]=d}return{comments:s,pragmas:i}}function yK({comments:e="",pragmas:t={}}){let n=` -`,i="/**",s=" *",l=" */",d=Object.keys(t),y=d.map(x=>WE(x,t[x])).reduce((x,h)=>x.concat(h),[]).map(x=>`${s} ${x}${n}`).join("");if(!e){if(d.length===0)return"";if(d.length===1&&!Array.isArray(t[d[0]])){let x=t[d[0]];return`${i} ${WE(d[0],x)[0]}${l}`}}let p=e.split(n).map(x=>`${s} ${x}`).join(n)+n;return i+n+(e?p:"")+(e&&d.length?s+n:"")+y+l}function WE(e,t){return HE.concat(t).map(n=>`@${e} ${n}`.trim())}});var H6={};Ud(H6,{parsers:()=>g1});var g1={};Ud(g1,{typescript:()=>WK});var sC=Xy(BE(),1);function oK(e,t){let n=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(n,t)}var h1=oK;function sK(e){let t=[];for(let n of e)try{return n()}catch(i){t.push(i)}throw Object.assign(new Error("All combinations failed"),{errors:t})}var UE=sK;var W_=Xy(GE(),1);function hK(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` -`);return t===-1?e:e.slice(0,t)}var XE=hK;function gK(e){let t=XE(e);t&&(e=e.slice(t.length+1));let n=(0,W_.extract)(e),{pragmas:i,comments:s}=(0,W_.parseWithComments)(n);return{shebang:t,text:e,pragmas:i,comments:s}}function $E(e){let{pragmas:t}=gK(e);return Object.prototype.hasOwnProperty.call(t,"prettier")||Object.prototype.hasOwnProperty.call(t,"format")}function bK(e){return Array.isArray(e)&&e.length>0}var gs=bK;function Ir(e){var i;let t=e.range?e.range[0]:e.start,n=((i=e.declaration)==null?void 0:i.decorators)??e.decorators;return gs(n)?Math.min(Ir(n[0]),t):t}function ea(e){return e.range?e.range[1]:e.end}function vK(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:$E,locStart:Ir,locEnd:ea,...e}}var QE=vK;function TK(e){return e.charAt(0)==="#"&&e.charAt(1)==="!"?"//"+e.slice(2):e}var YE=TK;var xK=(e,t,n)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[n<0?t.length+n:n]:t.at(n)},B6=xK;function SK(e){return e=new Set(e),t=>e.has(t==null?void 0:t.type)}var ZE=SK;var wK=ZE(["Block","CommentBlock","MultiLine"]),cu=wK;function EK(e){return cu(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/.test(e.value)}var eC=EK;function CK(e){let t=`*${e.value}*`.split(` -`);return t.length>1&&t.every(n=>n.trimStart()[0]==="*")}var U6=CK;var lu=null;function uu(e){if(lu!==null&&typeof lu.property){let t=lu;return lu=uu.prototype=null,t}return lu=uu.prototype=e??Object.create(null),new uu}var kK=10;for(let e=0;e<=kK;e++)uu();function q6(e){return uu(e)}function AK(e,t="type"){q6(e);function n(i){let s=i[t],l=e[s];if(!Array.isArray(l))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:i});return l}return n}var tC=AK;var nC={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ExportAllDeclaration:["source","attributes","assertions","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes","assertions"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes","assertions"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","parameter"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ImportExpression:["source","attributes"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareEnum:["id","body"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]};var DK=tC(nC),rC=DK;function z6(e,t){if(!(e!==null&&typeof e=="object"))return e;if(Array.isArray(e)){for(let i=0;i{var y;(y=d.leadingComments)!=null&&y.some(eC)&&l.add(Ir(d))}),e=V_(e,d=>{if(d.type==="ParenthesizedExpression"){let{expression:y}=d;if(y.type==="TypeCastExpression")return y.range=d.range,y;let p=Ir(d);if(!l.has(p))return y.extra={...y.extra,parenthesized:!0},y}})}if(e=V_(e,l=>{switch(l.type){case"LogicalExpression":if(iC(l))return W6(l);break;case"VariableDeclaration":{let d=B6(!1,l.declarations,-1);d!=null&&d.init&&s(l,d);break}case"TSParenthesizedType":return l.typeAnnotation;case"TSTypeParameter":if(typeof l.name=="string"){let d=Ir(l);l.name={type:"Identifier",name:l.name,range:[d,d+l.name.length]}}break;case"ObjectExpression":if(n==="typescript"){let d=l.properties.find(y=>y.type==="Property"&&y.value.type==="TSEmptyBodyFunctionExpression");d&&bs(d.value,"Unexpected token.")}break;case"TSInterfaceDeclaration":gs(l.implements)&&bs(l.implements[0],"Interface declaration cannot have 'implements' clause.");break;case"TSPropertySignature":l.initializer&&bs(l.initializer,"An interface property cannot have an initializer.");break;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":{let{exported:d}=l;if(n==="meriyah"&&(d==null?void 0:d.type)==="Identifier"){let y=i.slice(Ir(d),ea(d));(y.startsWith('"')||y.startsWith("'"))&&(l.exported={...l.exported,type:"Literal",value:l.exported.name,raw:y})}break}case"TSUnionType":case"TSIntersectionType":if(l.types.length===1)return l.types[0];break}}),gs(e.comments)){let l=B6(!1,e.comments,-1);for(let d=e.comments.length-2;d>=0;d--){let y=e.comments[d];ea(y)===Ir(l)&&cu(y)&&cu(l)&&U6(y)&&U6(l)&&(e.comments.splice(d+1,1),y.value+="*//*"+l.value,y.range=[Ir(y),ea(l)]),l=y}}return e.type==="Program"&&(e.range=[0,i.length]),e;function s(l,d){i[ea(d)]!==";"&&(l.range=[Ir(l),ea(d)])}}function iC(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function W6(e){return iC(e)?W6({type:"LogicalExpression",operator:e.operator,left:W6({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[Ir(e.left),ea(e.right.left)]}),right:e.right.right,range:[Ir(e),ea(e)]}):e}var aC=NK;var Dt=Xy(Cn(),1);function IK(e){let t=Dt.default.getSourceFileOfNode(e),n=Dt.default.rangeOfNode(e),[i,s]=[n.pos,n.end].map(l=>{let{line:d,character:y}=t.getLineAndCharacterOfPosition(l);return{line:d+1,column:y}});return{start:i,end:s}}function dr(e,t){bs({loc:IK(e)},t)}function OK(e,t){var n;e.kind===Dt.default.SyntaxKind.PropertyDeclaration&&e.initializer&&t.value===null&&((n=e.modifiers)!=null&&n.some(i=>i.kind===Dt.default.SyntaxKind.AbstractKeyword))&&bs(t,"Abstract property cannot have an initializer")}function MK(e){return[!0,!1].some(t=>Dt.default.nodeCanBeDecorated(t,e,e.parent,e.parent.parent))}function LK(e){let{modifiers:t}=e;if(!gs(t))return;let{SyntaxKind:n}=Dt.default;for(let i of t)if(Dt.default.isDecorator(i)&&!MK(e)&&(e.kind===n.MethodDeclaration&&!Dt.default.nodeIsPresent(e.body)&&dr(i,"A decorator can only decorate a method implementation, not an overload."),dr(i,"Decorators are not valid here.")),i.kind!==n.ReadonlyKeyword&&((e.kind===n.PropertySignature||e.kind===n.MethodSignature)&&dr(i,`'${Dt.default.tokenToString(i.kind)}' modifier cannot appear on a type member`),e.kind===n.IndexSignature&&(i.kind!==n.StaticKeyword||!Dt.default.isClassLike(e.parent))&&dr(i,`'${Dt.default.tokenToString(i.kind)}' modifier cannot appear on an index signature`)),i.kind!==n.InKeyword&&i.kind!==n.OutKeyword&&i.kind!==n.ConstKeyword&&e.kind===n.TypeParameter&&dr(i,`'${Dt.default.tokenToString(i.kind)}' modifier cannot appear on a type parameter`),(i.kind===n.InKeyword||i.kind===n.OutKeyword)&&(e.kind!==n.TypeParameter||!(Dt.default.isInterfaceDeclaration(e.parent)||Dt.default.isClassLike(e.parent)||Dt.default.isTypeAliasDeclaration(e.parent)))&&dr(i,`'${Dt.default.tokenToString(i.kind)}' modifier can only appear on a type parameter of a class, interface or type alias`),i.kind===n.ReadonlyKeyword&&e.kind!==n.PropertyDeclaration&&e.kind!==n.PropertySignature&&e.kind!==n.IndexSignature&&e.kind!==n.Parameter&&dr(i,"'readonly' modifier can only appear on a property declaration or index signature."),i.kind===n.DeclareKeyword&&Dt.default.isClassLike(e.parent)&&!Dt.default.isPropertyDeclaration(e)&&dr(i,`'${Dt.default.tokenToString(i.kind)}' modifier cannot appear on class elements of this kind.`),i.kind===n.AbstractKeyword&&e.kind!==n.ClassDeclaration&&e.kind!==n.ConstructorType&&e.kind!==n.MethodDeclaration&&e.kind!==n.PropertyDeclaration&&e.kind!==n.GetAccessor&&e.kind!==n.SetAccessor&&dr(i,`'${Dt.default.tokenToString(i.kind)}' modifier can only appear on a class, method, or property declaration.`),(i.kind===n.StaticKeyword||i.kind===n.PublicKeyword||i.kind===n.ProtectedKeyword||i.kind===n.PrivateKeyword)&&(e.parent.kind===n.ModuleBlock||e.parent.kind===n.SourceFile)&&dr(i,`'${Dt.default.tokenToString(i.kind)}' modifier cannot appear on a module or namespace element.`),i.kind===n.AccessorKeyword&&e.kind!==n.PropertyDeclaration&&dr(i,"'accessor' modifier can only appear on a property declaration."),i.kind===n.AsyncKeyword&&e.kind!==n.MethodDeclaration&&e.kind!==n.FunctionDeclaration&&e.kind!==n.FunctionExpression&&e.kind!==n.ArrowFunction&&dr(i,"'async' modifier cannot be used here."),e.kind===n.Parameter&&(i.kind===n.StaticKeyword||i.kind===n.ExportKeyword||i.kind===n.DeclareKeyword||i.kind===n.AsyncKeyword)&&dr(i,`'${Dt.default.tokenToString(i.kind)}' modifier cannot appear on a parameter.`),e.kind===n.Parameter&&Dt.default.hasSyntacticModifier(e,Dt.default.ModifierFlags.ParameterPropertyModifier)){let s=Dt.default.getContainingFunction(e);s.kind===n.Constructor&&Dt.default.nodeIsPresent(s.body)||dr(i,"A parameter property is only allowed in a constructor implementation.")}}function JK(e,t){let{esTreeNodeToTSNodeMap:n,tsNodeToESTreeNodeMap:i}=t,s=n.get(e);if(!(!s||i.get(s)!==e))return s}var RK=["abstract","accessor","async","const","declare","default","export","in","out","override","private","protected","public","readonly","static"],FK=new RegExp(["@",...RK].join("|"));function oC(e,t){FK.test(t)&&V_(e.ast,n=>{let i=JK(n,e);i&&(OK(i,n),LK(i))})}var V6={loc:!0,range:!0,comment:!0,tokens:!0,loggerFn:!1,project:[]};function jK(e){let{message:t,lineNumber:n,column:i}=e;return typeof n!="number"?e:h1(t,{loc:{start:{line:n,column:i+1}},cause:e})}var BK=e=>/\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/i.test(e);function UK(e,t){let n=t==null?void 0:t.filepath;if(n&&BK(n))return[{...V6,filePath:n}];let i=zK(e);return[{...V6,jsx:i},{...V6,jsx:!i}]}function qK(e,t){let n=YE(e),i=UK(e,t),s;try{s=UE(i.map(l=>()=>(0,sC.parseWithNodeMaps)(n,l)))}catch({errors:[l]}){throw jK(l)}return oC(s,e),aC(s.ast,{parser:"typescript",text:e})}function zK(e){return new RegExp(["(?:^[^\"'`]*)"].join(""),"m").test(e)}var WK=QE(qK);var QX=H6;export{QX as default,g1 as parsers}; +`;function fe(be,he){$[be]+=he}}function Lr(x){switch(x){case 3:return"\u2502";case 12:return"\u2500";case 5:return"\u256F";case 9:return"\u2570";case 6:return"\u256E";case 10:return"\u256D";case 7:return"\u2524";case 11:return"\u251C";case 13:return"\u2534";case 14:return"\u252C";case 15:return"\u256B"}return" "}function j(x,f){if(x.fill)x.fill(f);else for(let $=0;$0?x.repeat(f):"";let $="";for(;$.length{},mE=()=>{},hE=()=>{},Sa=Date.now,yE=()=>{},Yf=new Proxy(()=>{},{get:()=>Yf});function Lb(e){if(fg){let t=_y.get(e)??0;_y.set(e,t+1),Zf.set(e,Sa()),Kf==null||Kf.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function gE(e,t,r){if(fg){let a=(r!==void 0?Zf.get(r):void 0)??Sa(),_=(t!==void 0?Zf.get(t):void 0)??Gv,p=cy.get(e)||0;cy.set(e,p+(a-_)),Kf==null||Kf.measure(e,t,r)}}var Kf,bE,fg,Gv,Zf,_y,cy,XV=Vt({"src/compiler/performance.ts"(){"use strict";Dr(),bE={enter:Rn,exit:Rn},fg=!1,Gv=Sa(),Zf=new Map,_y=new Map,cy=new Map}}),Xv=()=>{},vE=()=>{},xa;function TE(e,t=!0){let r=cd[e.category];return t?r.toLowerCase():r}var ed,td,rd,ly,nd,uy,py,bl,fy,id,dy,my,hy,yy,gy,by,vy,Ty,Sy,xy,wy,Cy,Ey,Ay,ky,ad,Dy,Py,Iy,Ny,od,sd,Oy,My,Ly,Jy,Ry,jy,_d,Fy,By,Uy,qy,zy,Wy,cd,Vy,Hy,Gy,Xy,$y,Qy,Yy,Ky,Zy,ld,e0,t0,r0,n0,i0,ud,pd,fd,a0,o0,s0,_0,c0,l0,u0,p0,qd,$v=Vt({"src/compiler/types.ts"(){"use strict";ed=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.UnparsedPrologue=307]="UnparsedPrologue",e[e.UnparsedPrepend=308]="UnparsedPrepend",e[e.UnparsedText=309]="UnparsedText",e[e.UnparsedInternalText=310]="UnparsedInternalText",e[e.UnparsedSyntheticReference=311]="UnparsedSyntheticReference",e[e.SourceFile=312]="SourceFile",e[e.Bundle=313]="Bundle",e[e.UnparsedSource=314]="UnparsedSource",e[e.InputFiles=315]="InputFiles",e[e.JSDocTypeExpression=316]="JSDocTypeExpression",e[e.JSDocNameReference=317]="JSDocNameReference",e[e.JSDocMemberName=318]="JSDocMemberName",e[e.JSDocAllType=319]="JSDocAllType",e[e.JSDocUnknownType=320]="JSDocUnknownType",e[e.JSDocNullableType=321]="JSDocNullableType",e[e.JSDocNonNullableType=322]="JSDocNonNullableType",e[e.JSDocOptionalType=323]="JSDocOptionalType",e[e.JSDocFunctionType=324]="JSDocFunctionType",e[e.JSDocVariadicType=325]="JSDocVariadicType",e[e.JSDocNamepathType=326]="JSDocNamepathType",e[e.JSDoc=327]="JSDoc",e[e.JSDocComment=327]="JSDocComment",e[e.JSDocText=328]="JSDocText",e[e.JSDocTypeLiteral=329]="JSDocTypeLiteral",e[e.JSDocSignature=330]="JSDocSignature",e[e.JSDocLink=331]="JSDocLink",e[e.JSDocLinkCode=332]="JSDocLinkCode",e[e.JSDocLinkPlain=333]="JSDocLinkPlain",e[e.JSDocTag=334]="JSDocTag",e[e.JSDocAugmentsTag=335]="JSDocAugmentsTag",e[e.JSDocImplementsTag=336]="JSDocImplementsTag",e[e.JSDocAuthorTag=337]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=338]="JSDocDeprecatedTag",e[e.JSDocClassTag=339]="JSDocClassTag",e[e.JSDocPublicTag=340]="JSDocPublicTag",e[e.JSDocPrivateTag=341]="JSDocPrivateTag",e[e.JSDocProtectedTag=342]="JSDocProtectedTag",e[e.JSDocReadonlyTag=343]="JSDocReadonlyTag",e[e.JSDocOverrideTag=344]="JSDocOverrideTag",e[e.JSDocCallbackTag=345]="JSDocCallbackTag",e[e.JSDocOverloadTag=346]="JSDocOverloadTag",e[e.JSDocEnumTag=347]="JSDocEnumTag",e[e.JSDocParameterTag=348]="JSDocParameterTag",e[e.JSDocReturnTag=349]="JSDocReturnTag",e[e.JSDocThisTag=350]="JSDocThisTag",e[e.JSDocTypeTag=351]="JSDocTypeTag",e[e.JSDocTemplateTag=352]="JSDocTemplateTag",e[e.JSDocTypedefTag=353]="JSDocTypedefTag",e[e.JSDocSeeTag=354]="JSDocSeeTag",e[e.JSDocPropertyTag=355]="JSDocPropertyTag",e[e.JSDocThrowsTag=356]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=357]="JSDocSatisfiesTag",e[e.SyntaxList=358]="SyntaxList",e[e.NotEmittedStatement=359]="NotEmittedStatement",e[e.PartiallyEmittedExpression=360]="PartiallyEmittedExpression",e[e.CommaListExpression=361]="CommaListExpression",e[e.SyntheticReferenceExpression=362]="SyntheticReferenceExpression",e[e.Count=363]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=316]="FirstJSDocNode",e[e.LastJSDocNode=357]="LastJSDocNode",e[e.FirstJSDocTagNode=334]="FirstJSDocTagNode",e[e.LastJSDocTagNode=357]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(ed||{}),td=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(td||{}),rd=(e=>(e[e.None=0]="None",e[e.Export=1]="Export",e[e.Ambient=2]="Ambient",e[e.Public=4]="Public",e[e.Private=8]="Private",e[e.Protected=16]="Protected",e[e.Static=32]="Static",e[e.Readonly=64]="Readonly",e[e.Accessor=128]="Accessor",e[e.Abstract=256]="Abstract",e[e.Async=512]="Async",e[e.Default=1024]="Default",e[e.Const=2048]="Const",e[e.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",e[e.Deprecated=8192]="Deprecated",e[e.Override=16384]="Override",e[e.In=32768]="In",e[e.Out=65536]="Out",e[e.Decorator=131072]="Decorator",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=28]="AccessibilityModifier",e[e.ParameterPropertyModifier=16476]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=117086]="TypeScriptModifier",e[e.ExportDefault=1025]="ExportDefault",e[e.All=258047]="All",e[e.Modifier=126975]="Modifier",e))(rd||{}),ly=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(ly||{}),nd=(e=>(e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e))(nd||{}),uy=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(uy||{}),py=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(py||{}),bl=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(bl||{}),fy=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(fy||{}),id=class{},dy=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(dy||{}),my=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(my||{}),hy=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(hy||{}),yy=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(yy||{}),gy=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(gy||{}),by=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(by||{}),vy=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(vy||{}),Ty=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(Ty||{}),Sy=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.WriteComputedProps=1073741824]="WriteComputedProps",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(Sy||{}),xy=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330091]="NodeBuilderFlagsMask",e))(xy||{}),wy=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(wy||{}),Cy=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(Cy||{}),Ey=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(Ey||{}),Ay=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(Ay||{}),ky=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(ky||{}),ad=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=67108863]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(ad||{}),Dy=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(Dy||{}),Py=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(Py||{}),Iy=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e))(Iy||{}),Ny=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e))(Ny||{}),od=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=138117121]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(od||{}),sd=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e))(sd||{}),Oy=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))(Oy||{}),My=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(My||{}),Ly=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(Ly||{}),Jy=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(Jy||{}),Ry=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(Ry||{}),jy=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(jy||{}),_d=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(_d||{}),Fy=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(Fy||{}),By=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(By||{}),Uy=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(Uy||{}),qy=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(qy||{}),zy=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(zy||{}),Wy=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(Wy||{}),cd=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(cd||{}),Vy=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(Vy||{}),Hy=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(Hy||{}),Gy=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))(Gy||{}),Xy=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(Xy||{}),$y=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))($y||{}),Qy=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.NodeNext=199]="NodeNext",e))(Qy||{}),Yy=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(Yy||{}),Ky=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(Ky||{}),Zy=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(Zy||{}),ld=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(ld||{}),e0=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(e0||{}),t0=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(t0||{}),r0=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(r0||{}),n0=(e=>(e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e.replacementCharacter=65533]="replacementCharacter",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(n0||{}),i0=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(i0||{}),ud=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(ud||{}),pd=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(pd||{}),fd=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(fd||{}),a0=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(a0||{}),o0=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.CreateBinding=4194304]="CreateBinding",e[e.SetFunctionName=8388608]="SetFunctionName",e[e.PropKey=16777216]="PropKey",e[e.AddDisposableResourceAndDisposeResources=33554432]="AddDisposableResourceAndDisposeResources",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=33554432]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(o0||{}),s0=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e))(s0||{}),_0=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All",e[e.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",e))(_0||{}),c0=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(c0||{}),l0=(e=>(e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.TypeResolutionModeRequire="type-require",e.TypeResolutionModeImport="type-import",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal",e))(l0||{}),u0=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(u0||{}),p0=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(p0||{}),qd={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}}}}),SE=()=>{},f0;function dg(e){return e===47||e===92}function xE(e){return Jl(e)<0}function v_(e){return Jl(e)>0}function wE(e){let t=Jl(e);return t>0&&t===e.length}function mg(e){return Jl(e)!==0}function rs(e){return/^\.\.?($|[\\/])/.test(e)}function CE(e){return!mg(e)&&!rs(e)}function Qv(e){return eo(T_(e),".")}function La(e,t){return e.length>t.length&&ts(e,t)}function ei(e,t){for(let r of t)if(La(e,r))return!0;return!1}function zd(e){return e.length>0&&dg(e.charCodeAt(e.length-1))}function Jb(e){return e>=97&&e<=122||e>=65&&e<=90}function EE(e,t){let r=e.charCodeAt(t);if(r===58)return t+1;if(r===37&&e.charCodeAt(t+1)===51){let a=e.charCodeAt(t+2);if(a===97||a===65)return t+3}return-1}function Jl(e){if(!e)return 0;let t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;let a=e.indexOf(t===47?fn:vg,2);return a<0?e.length:a+1}if(Jb(t)&&e.charCodeAt(1)===58){let a=e.charCodeAt(2);if(a===47||a===92)return 3;if(e.length===2)return 2}let r=e.indexOf(m0);if(r!==-1){let a=r+m0.length,_=e.indexOf(fn,a);if(_!==-1){let p=e.slice(0,r),d=e.slice(a,_);if(p==="file"&&(d===""||d==="localhost")&&Jb(e.charCodeAt(_+1))){let h=EE(e,_+2);if(h!==-1){if(e.charCodeAt(h)===47)return~(h+1);if(h===e.length)return~h}}return~(_+1)}return~e.length}return 0}function Ei(e){let t=Jl(e);return t<0?~t:t}function $i(e){e=qo(e);let t=Ei(e);return t===e.length?e:(e=S_(e),e.slice(0,Math.max(t,e.lastIndexOf(fn))))}function T_(e,t,r){if(e=qo(e),Ei(e)===e.length)return"";e=S_(e);let _=e.slice(Math.max(Ei(e),e.lastIndexOf(fn)+1)),p=t!==void 0&&r!==void 0?dd(_,t,r):void 0;return p?_.slice(0,_.length-p.length):_}function Rb(e,t,r){if(Fr(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){let a=e.slice(e.length-t.length);if(r(a,t))return a}}function AE(e,t,r){if(typeof t=="string")return Rb(e,t,r)||"";for(let a of t){let _=Rb(e,a,r);if(_)return _}return""}function dd(e,t,r){if(t)return AE(S_(e),t,r?s_:Ll);let a=T_(e),_=a.lastIndexOf(".");return _>=0?a.substring(_):""}function kE(e,t){let r=e.substring(0,t),a=e.substring(t).split(fn);return a.length&&!wi(a)&&a.pop(),[r,...a]}function Ai(e,t=""){return e=hr(t,e),kE(e,Ei(e))}function Uo(e,t){return e.length===0?"":(e[0]&&zo(e[0]))+e.slice(1,t).join(fn)}function qo(e){return e.indexOf("\\")!==-1?e.replace(t4,fn):e}function Da(e){if(!mt(e))return[];let t=[e[0]];for(let r=1;r1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(a)}}return t}function hr(e,...t){e&&(e=qo(e));for(let r of t)r&&(r=qo(r),!e||Ei(r)!==0?e=r:e=zo(e)+r);return e}function d0(e,...t){return pn(mt(t)?hr(e,...t):qo(e))}function Wd(e,t){return Da(Ai(e,t))}function Pa(e,t){return Uo(Wd(e,t))}function pn(e){if(e=qo(e),!vl.test(e))return e;let t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!vl.test(e)))return e;let r=Uo(Da(Ai(e)));return r&&zd(e)?zo(r):r}function DE(e){return e.length===0?"":e.slice(1).join(fn)}function PE(e,t){return DE(Wd(e,t))}function xi(e,t,r){let a=v_(e)?pn(e):Pa(e,t);return r(a)}function S_(e){return zd(e)?e.substr(0,e.length-1):e}function zo(e){return zd(e)?e:e+fn}function hg(e){return!mg(e)&&!rs(e)?"./"+e:e}function Yv(e,t,r,a){let _=r!==void 0&&a!==void 0?dd(e,r,a):dd(e);return _?e.slice(0,e.length-_.length)+(Fr(t,".")?t:"."+t):e}function yg(e,t,r){if(e===t)return 0;if(e===void 0)return-1;if(t===void 0)return 1;let a=e.substring(0,Ei(e)),_=t.substring(0,Ei(t)),p=Fd(a,_);if(p!==0)return p;let d=e.substring(a.length),h=t.substring(_.length);if(!vl.test(d)&&!vl.test(h))return r(d,h);let l=Da(Ai(e)),v=Da(Ai(t)),y=Math.min(l.length,v.length);for(let C=1;C0==Ei(t)>0,"Paths must either both be absolute or both be relative");let p=gg(e,t,(typeof r=="boolean"?r:!1)?s_:Ll,typeof r=="function"?r:bt);return Uo(p)}function LE(e,t,r){return v_(e)?bg(t,e,t,r,!1):e}function JE(e,t,r){return hg(Zv($i(e),t,r))}function bg(e,t,r,a,_){let p=gg(d0(r,e),d0(r,t),Ll,a),d=p[0];if(_&&v_(d)){let h=d.charAt(0)===fn?"file://":"file:///";p[0]=h+d}return Uo(p)}function e4(e,t){for(;;){let r=t(e);if(r!==void 0)return r;let a=$i(e);if(a===e)return;e=a}}function RE(e){return ts(e,"/node_modules")}var fn,vg,m0,t4,vl,r4=Vt({"src/compiler/path.ts"(){"use strict";Dr(),fn="/",vg="\\",m0="://",t4=/\\/g,vl=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function i(e,t,r,a,_,p,d){return{code:e,category:t,key:r,message:a,reportsUnnecessary:_,elidedInCompatabilityPyramid:p,reportsDeprecated:d}}var U,jE=Vt({"src/compiler/diagnosticInformationMap.generated.ts"(){"use strict";$v(),U={Unterminated_string_literal:i(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:i(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:i(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:i(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:i(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:i(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:i(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:i(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:i(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:i(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:i(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:i(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:i(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:i(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:i(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:i(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:i(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:i(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:i(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:i(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:i(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:i(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:i(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:i(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:i(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:i(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:i(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:i(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:i(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:i(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:i(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:i(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:i(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:i(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:i(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:i(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:i(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:i(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:i(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:i(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:i(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:i(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:i(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:i(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:i(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:i(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:i(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:i(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:i(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:i(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:i(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:i(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:i(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:i(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:i(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:i(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:i(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:i(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:i(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:i(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:i(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:i(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:i(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:i(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:i(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:i(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:i(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:i(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:i(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:i(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:i(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:i(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:i(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:i(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:i(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:i(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:i(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:i(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:i(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:i(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:i(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:i(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:i(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:i(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:i(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:i(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:i(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:i(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:i(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:i(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:i(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:i(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:i(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:i(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:i(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:i(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:i(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:i(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:i(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:i(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:i(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:i(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:i(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:i(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:i(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:i(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:i(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:i(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:i(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:i(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:i(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:i(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:i(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:i(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:i(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:i(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:i(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:i(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:i(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:i(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:i(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:i(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:i(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:i(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:i(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:i(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:i(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:i(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:i(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:i(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:i(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:i(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:i(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:i(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:i(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:i(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:i(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:i(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:i(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:i(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:i(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:i(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:i(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:i(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:i(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:i(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:i(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:i(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:i(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:i(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:i(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:i(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:i(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:i(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:i(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:i(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:i(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:i(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:i(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:i(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:i(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:i(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:i(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:i(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:i(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:i(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:i(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:i(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:i(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:i(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:i(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:i(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:i(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:i(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:i(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:i(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:i(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:i(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:i(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:i(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:i(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:i(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:i(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:i(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:i(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:i(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:i(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:i(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:i(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:i(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:i(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:i(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:i(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:i(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:i(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:i(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:i(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:i(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:i(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:i(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:i(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:i(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:i(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:i(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:i(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:i(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:i(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:i(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:i(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:i(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:i(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:i(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:i(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:i(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:i(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:i(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:i(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:i(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:i(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:i(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:i(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:i(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:i(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:i(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:i(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:i(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:i(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:i(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:i(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:i(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:i(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:i(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:i(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:i(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:i(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:i(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:i(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:i(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),with_statements_are_not_allowed_in_an_async_function_block:i(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:i(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:i(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:i(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:i(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:i(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:i(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:i(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:i(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:i(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:i(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:i(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:i(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:i(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:i(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:i(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:i(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:i(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:i(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:i(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:i(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:i(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:i(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:i(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:i(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:i(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:i(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:i(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:i(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:i(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:i(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:i(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:i(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:i(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:i(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:i(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:i(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:i(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:i(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:i(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:i(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:i(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:i(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:i(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:i(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:i(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:i(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:i(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:i(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:i(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:i(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:i(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:i(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:i(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:i(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:i(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:i(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:i(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:i(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:i(1371,1,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:i(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:i(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:i(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:i(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:i(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:i(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:i(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:i(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:i(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:i(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:i(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:i(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:i(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:i(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:i(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:i(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:i(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:i(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:i(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:i(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:i(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:i(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:i(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:i(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:i(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:i(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:i(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:i(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:i(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:i(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:i(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:i(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:i(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:i(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:i(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:i(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:i(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:i(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:i(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:i(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:i(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:i(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:i(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:i(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:i(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:i(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:i(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:i(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:i(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:i(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:i(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:i(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:i(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:i(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:i(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:i(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:i(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:i(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:i(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:i(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:i(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:i(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:i(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:i(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:i(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:i(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:i(1444,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:i(1446,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:i(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:i(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments:i(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional assertion as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:i(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext:i(1452,1,"resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452","'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`."),resolution_mode_should_be_either_require_or_import:i(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:i(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:i(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:i(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:i(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:i(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:i(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:i(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:i(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:i(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:i(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:i(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:i(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:i(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:i(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:i(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:i(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:i(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:i(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:i(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:i(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:i(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:i(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:i(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:i(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:i(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:i(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:i(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:i(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:i(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:i(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:i(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:i(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:i(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:i(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),The_types_of_0_are_incompatible_between_these_types:i(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:i(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:i(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:i(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:i(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:i(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:i(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:i(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:i(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:i(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:i(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:i(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:i(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:i(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:i(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:i(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:i(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:i(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:i(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:i(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:i(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:i(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:i(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:i(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:i(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:i(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:i(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:i(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:i(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:i(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:i(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:i(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:i(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:i(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:i(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:i(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:i(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:i(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:i(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:i(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:i(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:i(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:i(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:i(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:i(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:i(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:i(2333,1,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:i(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:i(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:i(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:i(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:i(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:i(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:i(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:i(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:i(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:i(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:i(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Untyped_function_calls_may_not_accept_type_arguments:i(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:i(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:i(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:i(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:i(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:i(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:i(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:i(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:i(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:i(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:i(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:i(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:i(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:i(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:i(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:i(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:i(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:i(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:i(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:i(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:i(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:i(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:i(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:i(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:i(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:i(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:i(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:i(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:i(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:i(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:i(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:i(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:i(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:i(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:i(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:i(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:i(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:i(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:i(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:i(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:i(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:i(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:i(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:i(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:i(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:i(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:i(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:i(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:i(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:i(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:i(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:i(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:i(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:i(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:i(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:i(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:i(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:i(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:i(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:i(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:i(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:i(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:i(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:i(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:i(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:i(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:i(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:i(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:i(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:i(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:i(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:i(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:i(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:i(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:i(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:i(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:i(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:i(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:i(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:i(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:i(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:i(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:i(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:i(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:i(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:i(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:i(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:i(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:i(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:i(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:i(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:i(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:i(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:i(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:i(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:i(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:i(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:i(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:i(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:i(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:i(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:i(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:i(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:i(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:i(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:i(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:i(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:i(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:i(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:i(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:i(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:i(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:i(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:i(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:i(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:i(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:i(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:i(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:i(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:i(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:i(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:i(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:i(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:i(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:i(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:i(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:i(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:i(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:i(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:i(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:i(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:i(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:i(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:i(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:i(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:i(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:i(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:i(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:i(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:i(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:i(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:i(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:i(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:i(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:i(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:i(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:i(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:i(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:i(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:i(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:i(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:i(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:i(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:i(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:i(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:i(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:i(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:i(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:i(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:i(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:i(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:i(2525,1,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:i(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:i(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:i(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:i(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:i(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:i(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:i(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:i(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:i(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:i(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:i(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:i(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:i(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:i(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:i(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:i(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:i(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:i(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:i(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:i(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:i(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:i(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:i(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:i(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:i(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:i(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:i(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:i(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:i(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:i(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:i(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:i(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:i(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:i(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:i(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:i(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:i(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:i(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:i(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:i(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:i(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:i(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:i(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:i(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:i(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:i(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:i(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:i(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:i(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:i(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:i(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:i(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:i(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:i(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:i(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:i(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:i(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:i(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:i(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:i(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:i(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:i(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:i(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:i(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:i(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:i(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:i(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:i(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:i(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:i(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:i(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:i(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:i(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:i(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:i(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:i(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:i(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:i(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:i(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:i(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:i(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:i(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:i(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:i(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:i(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:i(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:i(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:i(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:i(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:i(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:i(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:i(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:i(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:i(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:i(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:i(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:i(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:i(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:i(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:i(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:i(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:i(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:i(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:i(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:i(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:i(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:i(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:i(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:i(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:i(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:i(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:i(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:i(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:i(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:i(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:i(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:i(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:i(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:i(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:i(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:i(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:i(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:i(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:i(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:i(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:i(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:i(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:i(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:i(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:i(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:i(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:i(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:i(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:i(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:i(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:i(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:i(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:i(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:i(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:i(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:i(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:i(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:i(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:i(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:i(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:i(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:i(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:i(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:i(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:i(2705,1,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:i(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:i(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:i(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:i(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:i(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:i(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:i(2712,1,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:i(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:i(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:i(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:i(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:i(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:i(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:i(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:i(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:i(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:i(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:i(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:i(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:i(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:i(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:i(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:i(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:i(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:i(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:i(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:i(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:i(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:i(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:i(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:i(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:i(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:i(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:i(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:i(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:i(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:i(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:i(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:i(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:i(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:i(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:i(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:i(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:i(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:i(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:i(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:i(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:i(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:i(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:i(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:i(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:i(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:i(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:i(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:i(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:i(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:i(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:i(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:i(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:i(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:i(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:i(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:i(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:i(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:i(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:i(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:i(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:i(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:i(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:i(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:i(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:i(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:i(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:i(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:i(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:i(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:i(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:i(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:i(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:i(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:i(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:i(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:i(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:i(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:i(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:i(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:i(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:i(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:i(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:i(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:i(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:i(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:i(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:i(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:i(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:i(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:i(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:i(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:i(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:i(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:i(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:i(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:i(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:i(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:i(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:i(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:i(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:i(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:i(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:i(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:i(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:i(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:i(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:i(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:i(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821","Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:i(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Cannot_find_namespace_0_Did_you_mean_1:i(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:i(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:i(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:i(2836,1,"Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836","Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:i(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:i(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:i(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes:i(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840","An interface cannot extend a primitive type like '{0}'; an interface can only extend named types and classes"),The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:i(2841,1,"The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841","The type of this expression cannot be named without a 'resolution-mode' assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:i(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:i(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:i(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:i(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:i(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:i(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:i(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:i(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:i(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:i(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:i(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:i(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Import_declaration_0_is_using_private_name_1:i(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:i(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:i(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:i(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:i(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:i(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:i(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:i(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:i(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:i(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:i(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:i(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:i(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:i(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:i(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:i(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:i(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:i(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:i(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:i(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:i(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:i(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:i(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:i(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:i(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:i(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:i(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:i(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:i(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:i(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:i(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:i(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:i(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:i(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:i(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:i(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:i(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:i(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:i(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:i(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:i(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:i(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:i(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:i(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:i(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:i(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:i(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:i(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:i(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:i(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:i(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:i(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:i(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:i(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:i(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:i(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:i(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:i(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:i(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:i(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:i(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:i(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:i(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:i(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:i(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:i(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:i(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:i(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:i(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:i(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:i(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:i(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:i(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:i(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:i(4090,1,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:i(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:i(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:i(4094,1,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:i(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:i(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:i(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:i(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:i(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:i(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:i(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:i(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:i(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:i(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:i(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:i(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:i(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:i(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:i(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:i(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:i(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:i(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:i(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:i(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:i(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:i(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:i(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:i(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:i(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:i(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:i(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:i(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:i(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:i(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:i(4125,1,"resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125","'resolution-mode' assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),The_current_host_does_not_support_the_0_option:i(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:i(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:i(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:i(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:i(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:i(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:i(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:i(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:i(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:i(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:i(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:i(5048,1,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:i(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:i(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:i(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:i(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:i(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:i(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:i(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:i(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:i(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:i(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:i(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:i(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:i(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:i(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:i(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:i(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:i(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:i(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:i(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:i(5071,1,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:i(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:i(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:i(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:i(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:i(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:i(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:i(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:i(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:i(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:i(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:i(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:i(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:i(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:i(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:i(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:i(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:i(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:i(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:i(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:i(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:i(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:i(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later:i(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:i(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:i(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:i(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:i(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:i(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:i(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:i(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:i(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:i(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:i(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:i(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:i(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:i(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:i(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:i(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:i(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:i(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:i(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:i(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:i(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:i(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:i(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:i(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:i(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:i(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:i(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:i(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:i(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:i(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:i(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:i(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:i(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:i(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:i(6024,3,"options_6024","options"),file:i(6025,3,"file_6025","file"),Examples_Colon_0:i(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:i(6027,3,"Options_Colon_6027","Options:"),Version_0:i(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:i(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:i(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:i(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:i(6034,3,"KIND_6034","KIND"),FILE:i(6035,3,"FILE_6035","FILE"),VERSION:i(6036,3,"VERSION_6036","VERSION"),LOCATION:i(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:i(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:i(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:i(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:i(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:i(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:i(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:i(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:i(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:i(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:i(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:i(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:i(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:i(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:i(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:i(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:i(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:i(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:i(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:i(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:i(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:i(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:i(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:i(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:i(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:i(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:i(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:i(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:i(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:i(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:i(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:i(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:i(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:i(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:i(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:i(6081,3,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:i(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:i(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:i(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:i(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:i(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:i(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:i(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:i(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:i(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:i(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:i(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:i(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:i(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:i(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:i(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:i(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:i(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:i(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:i(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:i(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:i(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:i(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:i(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:i(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:i(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:i(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:i(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:i(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:i(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:i(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:i(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:i(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:i(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:i(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:i(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:i(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:i(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:i(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:i(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:i(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:i(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:i(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:i(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:i(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:i(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:i(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:i(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:i(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:i(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:i(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:i(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:i(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:i(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:i(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:i(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:i(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:i(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:i(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:i(6145,3,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:i(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:i(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:i(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:i(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:i(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:i(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:i(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:i(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:i(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:i(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:i(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:i(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:i(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:i(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:i(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:i(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:i(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:i(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:i(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:i(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:i(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:i(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:i(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:i(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:i(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:i(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:i(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:i(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:i(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:i(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:i(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:i(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:i(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:i(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:i(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:i(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:i(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:i(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:i(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:i(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:i(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:i(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:i(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:i(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:i(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:i(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:i(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:i(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:i(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:i(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:i(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:i(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:i(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:i(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:i(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:i(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:i(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:i(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:i(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:i(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:i(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:i(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:i(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:i(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:i(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:i(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:i(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:i(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:i(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:i(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:i(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:i(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:i(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:i(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:i(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:i(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:i(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:i(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:i(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:i(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:i(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:i(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:i(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:i(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:i(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:i(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:i(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:i(6244,3,"Modules_6244","Modules"),File_Management:i(6245,3,"File_Management_6245","File Management"),Emit:i(6246,3,"Emit_6246","Emit"),JavaScript_Support:i(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:i(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:i(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:i(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:i(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:i(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:i(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:i(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:i(6255,3,"Projects_6255","Projects"),Output_Formatting:i(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:i(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:i(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:i(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:i(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:i(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:i(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:i(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:i(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:i(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:i(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:i(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:i(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:i(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:i(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:i(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:i(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:i(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:i(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:i(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Enable_project_compilation:i(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:i(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:i(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:i(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:i(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:i(6308,1,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:i(6309,1,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:i(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:i(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:i(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:i(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:i(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:i(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:i(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:i(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:i(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:i(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:i(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:i(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:i(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:i(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:i(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:i(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:i(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:i(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:i(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:i(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:i(6372,3,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:i(6373,3,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:i(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:i(6375,3,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:i(6376,3,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:i(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:i(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:i(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:i(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:i(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:i(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:i(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:i(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:i(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:i(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:i(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:i(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:i(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:i(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:i(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:i(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:i(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:i(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:i(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:i(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:i(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:i(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:i(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:i(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:i(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:i(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:i(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:i(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:i(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:i(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:i(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:i(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:i(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:i(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:i(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:i(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:i(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:i(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:i(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:i(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:i(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:i(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:i(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:i(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:i(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:i(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:i(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:i(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:i(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:i(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:i(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:i(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:i(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:i(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:i(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:i(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:i(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:i(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:i(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:i(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:i(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:i(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:i(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:i(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:i(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:i(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:i(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:i(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:i(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:i(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:i(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:i(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:i(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:i(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:i(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:i(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:i(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:i(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:i(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:i(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:i(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:i(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:i(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:i(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:i(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:i(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:i(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:i(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:i(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:i(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:i(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:i(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:i(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:i(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:i(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:i(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:i(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:i(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:i(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:i(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:i(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:i(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:i(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:i(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:i(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:i(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:i(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:i(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:i(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:i(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:i(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:i(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:i(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:i(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:i(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:i(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:i(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:i(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:i(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:i(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:i(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:i(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:i(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:i(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:i(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:i(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:i(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:i(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:i(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:i(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:i(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:i(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:i(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:i(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:i(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:i(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:i(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:i(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:i(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:i(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:i(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:i(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:i(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:i(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:i(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:i(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:i(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:i(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:i(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:i(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:i(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:i(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:i(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:i(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:i(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:i(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:i(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:i(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:i(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:i(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:i(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:i(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Default_catch_clause_variables_as_unknown_instead_of_any:i(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:i(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),one_of_Colon:i(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:i(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:i(6902,3,"type_Colon_6902","type:"),default_Colon:i(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:i(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:i(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:i(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:i(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:i(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:i(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:i(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:i(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:i(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:i(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:i(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:i(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:i(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:i(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:i(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:i(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:i(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:i(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:i(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:i(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:i(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:i(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:i(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:i(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:i(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:i(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:i(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:i(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:i(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:i(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:i(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:i(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:i(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:i(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:i(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:i(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:i(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:i(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:i(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:i(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:i(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:i(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:i(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:i(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:i(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:i(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:i(7025,1,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:i(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:i(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:i(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:i(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:i(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:i(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:i(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:i(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:i(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:i(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:i(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:i(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:i(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:i(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:i(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:i(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:i(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:i(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:i(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:i(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:i(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:i(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:i(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:i(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:i(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:i(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:i(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:i(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:i(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:i(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:i(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:i(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:i(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:i(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:i(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:i(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:i(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:i(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:i(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:i(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:i(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:i(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:i(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:i(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:i(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:i(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:i(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:i(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:i(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:i(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:i(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:i(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:i(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:i(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:i(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:i(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:i(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:i(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:i(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:i(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:i(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:i(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:i(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:i(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:i(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:i(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:i(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:i(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:i(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:i(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:i(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:i(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:i(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:i(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:i(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:i(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:i(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:i(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:i(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:i(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:i(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:i(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:i(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:i(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:i(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:i(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:i(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:i(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:i(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:i(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:i(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:i(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:i(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:i(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:i(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:i(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:i(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:i(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:i(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:i(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:i(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:i(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:i(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:i(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:i(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:i(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:i(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:i(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:i(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:i(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:i(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:i(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:i(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:i(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:i(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:i(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:i(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:i(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:i(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:i(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:i(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:i(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:i(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:i(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:i(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:i(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:i(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:i(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:i(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:i(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:i(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:i(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:i(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:i(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:i(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:i(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:i(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:i(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:i(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:i(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:i(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:i(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:i(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:i(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:i(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:i(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:i(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:i(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:i(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:i(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:i(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:i(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:i(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:i(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:i(95005,3,"Extract_function_95005","Extract function"),Extract_constant:i(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:i(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:i(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:i(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:i(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:i(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:i(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:i(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:i(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:i(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:i(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:i(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:i(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:i(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:i(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:i(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:i(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:i(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:i(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:i(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:i(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:i(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:i(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:i(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:i(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:i(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:i(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:i(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:i(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:i(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:i(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:i(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:i(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:i(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:i(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:i(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:i(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:i(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:i(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:i(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:i(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:i(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:i(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:i(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:i(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:i(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:i(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:i(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:i(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:i(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:i(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:i(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:i(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:i(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:i(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:i(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:i(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:i(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:i(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:i(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:i(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:i(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:i(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:i(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:i(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:i(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:i(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:i(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:i(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:i(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:i(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:i(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:i(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:i(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:i(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:i(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:i(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:i(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:i(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:i(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:i(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:i(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:i(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:i(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:i(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:i(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:i(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:i(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:i(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:i(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:i(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:i(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:i(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:i(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:i(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:i(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:i(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:i(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:i(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:i(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:i(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:i(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:i(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:i(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:i(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:i(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:i(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:i(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:i(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:i(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:i(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:i(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:i(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:i(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:i(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:i(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:i(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:i(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:i(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:i(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:i(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:i(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:i(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:i(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:i(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:i(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:i(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:i(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:i(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:i(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:i(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:i(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:i(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:i(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:i(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:i(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:i(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:i(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:i(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:i(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:i(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:i(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:i(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:i(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:i(95154,3,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:i(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:i(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:i(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:i(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:i(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:i(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:i(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:i(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:i(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:i(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:i(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:i(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:i(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:i(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:i(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:i(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:i(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:i(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:i(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:i(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:i(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:i(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:i(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:i(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:i(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:i(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:i(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:i(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:i(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:i(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:i(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:i(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:i(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:i(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:i(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:i(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:i(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:i(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:i(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:i(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:i(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:i(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:i(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:i(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:i(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:i(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:i(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:i(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:i(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:i(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:i(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:i(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:i(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:i(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:i(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:i(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:i(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:i(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:i(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:i(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:i(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:i(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:i(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:i(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:i(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:i(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:i(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:i(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:i(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:i(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:i(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:i(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:i(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Non_abstract_class_0_does_not_implement_all_abstract_members_of_1:i(18052,1,"Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052","Non-abstract class '{0}' does not implement all abstract members of '{1}'"),Its_type_0_is_not_a_valid_JSX_element_type:i(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:i(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block.")}}});function kt(e){return e>=80}function n4(e){return e===32||kt(e)}function i_(e,t){if(e=2?i_(e,m4):t===1?i_(e,f4):i_(e,u4)}function FE(e,t){return t>=2?i_(e,h4):t===1?i_(e,d4):i_(e,p4)}function BE(e){let t=[];return e.forEach((r,a)=>{t[r]=a}),t}function nr(e){return b4[e]}function Rl(e){return h0.get(e)}function Vd(e){let t=[],r=0,a=0;for(;r127&&mr(_)&&(t.push(a),a=r);break}}return t.push(a),t}function UE(e,t,r,a){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,a):Tg(Ia(e),t,r,e.text,a)}function Tg(e,t,r,a,_){(t<0||t>=e.length)&&(_?t=t<0?0:t>=e.length?e.length-1:t:N.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${a!==void 0?bv(e,Vd(a)):"unknown"}`));let p=e[t]+r;return _?p>e[t+1]?e[t+1]:typeof a=="string"&&p>a.length?a.length:p:(t=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function mr(e){return e===10||e===13||e===8232||e===8233}function Eo(e){return e>=48&&e<=57}function jb(e){return Eo(e)||e>=65&&e<=70||e>=97&&e<=102}function qE(e){return e<=1114111}function If(e){return e>=48&&e<=55}function zE(e,t){let r=e.charCodeAt(t);switch(r){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return t===0;default:return r>127}}function Nt(e,t,r,a,_){if(Oa(t))return t;let p=!1;for(;;){let d=e.charCodeAt(t);switch(d){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,r)return t;p=!!_;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(a)break;if(e.charCodeAt(t+1)===47){for(t+=2;t127&&Vi(d)){t++;continue}break}return t}}function ko(e,t){if(N.assert(t>=0),t===0||mr(e.charCodeAt(t-1))){let r=e.charCodeAt(t);if(t+ll=0&&r127&&Vi(L)){C&&mr(L)&&(y=!0),r++;continue}break e}}return C&&(k=_(h,l,v,y,p,k)),k}function WE(e,t,r,a){return Hd(!1,e,t,!1,r,a)}function VE(e,t,r,a){return Hd(!1,e,t,!0,r,a)}function a4(e,t,r,a,_){return Hd(!0,e,t,!1,r,a,_)}function o4(e,t,r,a,_){return Hd(!0,e,t,!0,r,a,_)}function s4(e,t,r,a,_,p=[]){return p.push({kind:r,pos:e,end:t,hasTrailingNewLine:a}),p}function Wo(e,t){return a4(e,t,s4,void 0,void 0)}function _4(e,t){return o4(e,t,s4,void 0,void 0)}function c4(e){let t=Gd.exec(e);if(t)return t[0]}function un(e,t){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&i4(e,t)}function Qa(e,t,r){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===36||e===95||(r===1?e===45||e===58:!1)||e>127&&FE(e,t)}function Cg(e,t,r){let a=cn(e,0);if(!un(a,t))return!1;for(let _=Yn(a);_y,getStartPos:()=>y,getTokenEnd:()=>l,getTextPos:()=>l,getToken:()=>S,getTokenStart:()=>C,getTokenPos:()=>C,getTokenText:()=>h.substring(C,l),getTokenValue:()=>k,hasUnicodeEscape:()=>(L&1024)!==0,hasExtendedUnicodeEscape:()=>(L&8)!==0,hasPrecedingLineBreak:()=>(L&1)!==0,hasPrecedingJSDocComment:()=>(L&2)!==0,isIdentifier:()=>S===80||S>118,isReservedWord:()=>S>=83&&S<=118,isUnterminated:()=>(L&4)!==0,getCommentDirectives:()=>G,getNumericLiteralFlags:()=>L&25584,getTokenFlags:()=>L,reScanGreaterToken:St,reScanAsteriskEqualsToken:xn,reScanSlashToken:Tr,reScanTemplateToken:Ut,reScanTemplateHeadOrNoSubstitutionTemplate:fr,scanJsxIdentifier:Mr,scanJsxAttributeValue:at,reScanJsxAttributeValue:er,reScanJsxToken:ht,reScanLessThanToken:wn,reScanHashToken:Tt,reScanQuestionToken:Or,reScanInvalidIdentifier:sr,scanJsxToken:pt,scanJsDocToken:tn,scanJSDocCommentTextToken:Qt,scan:Sn,getText:Di,clearCommentDirectives:qn,setText:Ae,setScriptTarget:oe,setLanguageVariant:ge,setOnError:q,resetTokenState:Se,setTextPos:Se,setInJSDocType:nt,tryScan:nn,lookAhead:rn,scanRange:Un};return N.isDebugging&&Object.defineProperty(ue,"__debugShowCurrentPositionInText",{get:()=>{let z=ue.getText();return z.slice(0,ue.getTokenFullStart())+"\u2551"+z.slice(ue.getTokenFullStart())}}),ue;function Y(z,X=l,ee,xe){if(_){let ke=l;l=X,_(z,ee||0,xe),l=ke}}function B(){let z=l,X=!1,ee=!1,xe="";for(;;){let ke=h.charCodeAt(l);if(ke===95){L|=512,X?(X=!1,ee=!0,xe+=h.substring(z,l)):(L|=16384,Y(ee?U.Multiple_consecutive_numeric_separators_are_not_permitted:U.Numeric_separators_are_not_allowed_here,l,1)),l++,z=l;continue}if(Eo(ke)){X=!0,ee=!1,l++;continue}break}return h.charCodeAt(l-1)===95&&(L|=16384,Y(U.Numeric_separators_are_not_allowed_here,l-1,1)),xe+h.substring(z,l)}function ae(){let z=l,X;if(h.charCodeAt(l)===48)if(l++,h.charCodeAt(l)===95)L|=16896,Y(U.Numeric_separators_are_not_allowed_here,l,1),l--,X=B();else if(!Ze())L|=8192,X=""+ +k;else if(!k)X="0";else{k=""+parseInt(k,8),L|=32;let lt=S===41,yt=(lt?"-":"")+"0o"+(+k).toString(8);return lt&&z--,Y(U.Octal_literals_are_not_allowed_Use_the_syntax_0,z,l-z,yt),9}else X=B();let ee,xe;h.charCodeAt(l)===46&&(l++,ee=B());let ke=l;if(h.charCodeAt(l)===69||h.charCodeAt(l)===101){l++,L|=16,(h.charCodeAt(l)===43||h.charCodeAt(l)===45)&&l++;let lt=l,yt=B();yt?(xe=h.substring(ke,lt)+yt,ke=l):Y(U.Digit_expected)}let Le;if(L&512?(Le=X,ee&&(Le+="."+ee),xe&&(Le+=xe)):Le=h.substring(z,ke),L&8192)return Y(U.Decimals_with_leading_zeros_are_not_allowed,z,ke-z),k=""+ +Le,9;if(ee!==void 0||L&16)return Ce(z,ee===void 0&&!!(L&16)),k=""+ +Le,9;{k=Le;let lt=Tn();return Ce(z),lt}}function Ce(z,X){if(!un(cn(h,l),e))return;let ee=l,{length:xe}=Gt();xe===1&&h[ee]==="n"?Y(X?U.A_bigint_literal_cannot_use_exponential_notation:U.A_bigint_literal_must_be_an_integer,z,ee-z+1):(Y(U.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,ee,xe),l=ee)}function Ze(){let z=l,X=!0;for(;Eo(h.charCodeAt(l));)If(h.charCodeAt(l))||(X=!1),l++;return k=h.substring(z,l),X}function qe(z,X){let ee=it(z,!1,X);return ee?parseInt(ee,16):-1}function rt(z,X){return it(z,!0,X)}function it(z,X,ee){let xe=[],ke=!1,Le=!1;for(;xe.length=65&<<=70)lt+=97-65;else if(!(lt>=48&<<=57||lt>=97&<<=102))break;xe.push(lt),l++,Le=!1}return xe.length=v){ee+=h.substring(xe,l),L|=4,Y(U.Unterminated_string_literal);break}let ke=h.charCodeAt(l);if(ke===X){ee+=h.substring(xe,l),l++;break}if(ke===92&&!z){ee+=h.substring(xe,l),ee+=ci(!0),xe=l;continue}if(mr(ke)&&!z){ee+=h.substring(xe,l),L|=4,Y(U.Unterminated_string_literal);break}l++}return ee}function ar(z){let X=h.charCodeAt(l)===96;l++;let ee=l,xe="",ke;for(;;){if(l>=v){xe+=h.substring(ee,l),L|=4,Y(U.Unterminated_template_literal),ke=X?15:18;break}let Le=h.charCodeAt(l);if(Le===96){xe+=h.substring(ee,l),l++,ke=X?15:18;break}if(Le===36&&l+1=v)return Y(U.Unexpected_end_of_text),"";let ee=h.charCodeAt(l);switch(l++,ee){case 48:if(l>=v||!Eo(h.charCodeAt(l)))return"\0";case 49:case 50:case 51:l=v?(L|=2048,z&&Y(U.Unexpected_end_of_text),h.substring(X,l)):h.charCodeAt(l)!==125?(L|=2048,z&&Y(U.Unterminated_Unicode_escape_sequence),h.substring(X,l)):(l++,L|=8,Nf(ke)):(L|=2048,z&&Y(U.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),h.substring(X,l))}for(;l1114111&&(Y(U.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),ee=!0),l>=v?(Y(U.Unexpected_end_of_text),ee=!0):h.charCodeAt(l)===125?l++:(Y(U.Unterminated_Unicode_escape_sequence),ee=!0),ee?"":Nf(X)}function Nr(){if(l+5=0&&Qa(ee,e)){l+=3,L|=8,z+=or(),X=l;continue}if(ee=Nr(),!(ee>=0&&Qa(ee,e)))break;L|=1024,z+=h.substring(X,l),z+=Nf(ee),l+=6,X=l}else break}return z+=h.substring(X,l),z}function Ur(){let z=k.length;if(z>=2&&z<=12){let X=k.charCodeAt(0);if(X>=97&&X<=122){let ee=l4.get(k);if(ee!==void 0)return S=ee}}return S=80}function Xt(z){let X="",ee=!1,xe=!1;for(;;){let ke=h.charCodeAt(l);if(ke===95){L|=512,ee?(ee=!1,xe=!0):Y(xe?U.Multiple_consecutive_numeric_separators_are_not_permitted:U.Numeric_separators_are_not_allowed_here,l,1),l++;continue}if(ee=!0,!Eo(ke)||ke-48>=z)break;X+=h[l],l++,xe=!1}return h.charCodeAt(l-1)===95&&Y(U.Numeric_separators_are_not_allowed_here,l-1,1),X}function Tn(){return h.charCodeAt(l)===110?(k+="n",L&384&&(k=Sm(k)+"n"),l++,10):(k=""+(L&128?parseInt(k.slice(2),2):L&256?parseInt(k.slice(2),8):+k),9)}function Sn(){y=l,L=0;let z=!1;for(;;){if(C=l,l>=v)return S=1;let X=cn(h,l);if(l===0){if(X===65533)return Y(U.File_appears_to_be_binary),l=v,S=8;if(X===35&&xg(h,l)){if(l=wg(h,l),t)continue;return S=6}}switch(X){case 10:case 13:if(L|=1,t){l++;continue}else return X===13&&l+1=0&&un(ee,e))return l+=3,L|=8,k=or()+Gt(),S=Ur();let xe=Nr();return xe>=0&&un(xe,e)?(l+=6,L|=1024,k=String.fromCharCode(xe)+Gt(),S=Ur()):(Y(U.Invalid_character),l++,S=0);case 35:if(l!==0&&h[l+1]==="!")return Y(U.can_only_be_used_at_the_start_of_a_file),l++,S=0;let ke=cn(h,l+1);if(ke===92){l++;let yt=Ge();if(yt>=0&&un(yt,e))return l+=3,L|=8,k="#"+or()+Gt(),S=81;let jt=Nr();if(jt>=0&&un(jt,e))return l+=6,L|=1024,k="#"+String.fromCharCode(jt)+Gt(),S=81;l--}return un(ke,e)?(l++,$t(ke,e)):(k="#",Y(U.Invalid_character,l++,Yn(X))),S=81;default:let Le=$t(X,e);if(Le)return S=Le;if(Io(X)){l+=Yn(X);continue}else if(mr(X)){L|=1,l+=Yn(X);continue}let lt=Yn(X);return Y(U.Invalid_character,l,lt),l+=lt,S=0}}}function sr(){N.assert(S===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),l=C=y,L=0;let z=cn(h,l),X=$t(z,99);return X?S=X:(l+=Yn(z),S)}function $t(z,X){let ee=z;if(un(ee,X)){for(l+=Yn(ee);l=v)return S=1;let X=h.charCodeAt(l);if(X===60)return h.charCodeAt(l+1)===47?(l+=2,S=31):(l++,S=30);if(X===123)return l++,S=19;let ee=0;for(;l0)break;Vi(X)||(ee=l)}l++}return k=h.substring(y,l),ee===-1?13:12}function Mr(){if(kt(S)){for(;l=v)return S=1;for(let X=h.charCodeAt(l);l=0&&Io(h.charCodeAt(l-1))&&!(l+1=v)return S=1;let z=cn(h,l);switch(l+=Yn(z),z){case 9:case 11:case 12:case 32:for(;l=0&&un(X,e))return l+=3,L|=8,k=or()+Gt(),S=Ur();let ee=Nr();return ee>=0&&un(ee,e)?(l+=6,L|=1024,k=String.fromCharCode(ee)+Gt(),S=Ur()):(l++,S=0)}if(un(z,e)){let X=z;for(;l=0),l=z,y=z,C=z,S=0,k=void 0,L=0}function nt(z){K+=z?1:-1}}function Yn(e){return e>=65536?2:1}function HE(e){if(N.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let t=Math.floor((e-65536)/1024)+55296,r=(e-65536)%1024+56320;return String.fromCharCode(t,r)}function Nf(e){return v4(e)}var cl,l4,h0,u4,p4,f4,d4,m4,h4,y4,g4,b4,ll,Gd,cn,v4,GE=Vt({"src/compiler/scanner.ts"(){"use strict";Dr(),cl={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},l4=new Map(Object.entries(cl)),h0=new Map(Object.entries({...cl,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),u4=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],p4=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],f4=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],d4=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],m4=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],h4=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],y4=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,g4=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,b4=BE(h0),ll=7,Gd=/^#!.*/,cn=String.prototype.codePointAt?(e,t)=>e.codePointAt(t):function(t,r){let a=t.length;if(r<0||r>=a)return;let _=t.charCodeAt(r);if(_>=55296&&_<=56319&&a>r+1){let p=t.charCodeAt(r+1);if(p>=56320&&p<=57343)return(_-55296)*1024+p-56320+65536}return _},v4=String.fromCodePoint?e=>String.fromCodePoint(e):HE}});function XE(e){return rs(e)||v_(e)}function $E(e){return wv(e,F2)}function T4(e){switch(Ql(e)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function Kt(e){return e.start+e.length}function S4(e){return e.length===0}function QE(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function KE(e,t){return t.start>=e.start&&Kt(t)<=Kt(e)}function ZE(e,t){return x4(e,t)!==void 0}function x4(e,t){let r=w4(e,t);return r&&r.length===0?void 0:r}function eA(e,t){return Eg(e.start,e.length,t.start,t.length)}function tA(e,t,r){return Eg(e.start,e.length,t,r)}function Eg(e,t,r,a){let _=e+t,p=r+a;return r<=_&&p>=e}function rA(e,t){return t<=Kt(e)&&t>=e.start}function w4(e,t){let r=Math.max(e.start,t.start),a=Math.min(Kt(e),Kt(t));return r<=a?Hi(r,a):void 0}function w_(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function Hi(e,t){return w_(e,t-e)}function Qs(e){return w_(e.span.start,e.newLength)}function C4(e){return S4(e.span)&&e.newLength===0}function Xd(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function nA(e){if(e.length===0)return Vg;if(e.length===1)return e[0];let t=e[0],r=t.span.start,a=Kt(t.span),_=r+t.newLength;for(let p=1;p=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function Vo(e){let t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function Ot(e){return Vo(e.escapedText)}function P4(e){let t=Rl(e.escapedText);return t?On(t,Si):void 0}function md(e){return e.valueDeclaration&&a3(e.valueDeclaration)?Ot(e.valueDeclaration.name):Vo(e.escapedName)}function I4(e){let t=e.parent.parent;if(t){if(Ho(t))return Ef(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return Ef(t.declarationList.declarations[0]);break;case 244:let r=t.expression;switch(r.kind===226&&r.operatorToken.kind===64&&(r=r.left),r.kind){case 211:return r.name;case 212:let a=r.argumentExpression;if(Ee(a))return a}break;case 217:return Ef(t.expression);case 256:{if(Ho(t.statement)||am(t.statement))return Ef(t.statement);break}}}}function Ef(e){let t=Bl(e);return t&&Ee(t)?t:void 0}function N4(e,t){return!!(Qd(e)&&Ee(e.name)&&Ot(e.name)===Ot(t)||as(e)&&mt(e.declarationList.declarations,r=>N4(r,t)))}function O4(e){return e.name||I4(e)}function Qd(e){return!!e.name}function Yd(e){switch(e.kind){case 80:return e;case 355:case 348:{let{name:r}=e;if(r.kind===166)return r.right;break}case 213:case 226:{let r=e;switch(Ja(r)){case 1:case 4:case 5:case 3:return fm(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}}case 353:return O4(e);case 347:return I4(e);case 277:{let{expression:r}=e;return Ee(r)?r:void 0}case 212:let t=e;if(f2(t))return t.argumentExpression}return e.name}function Bl(e){if(e!==void 0)return Yd(e)||(Am(e)||km(e)||Il(e)?M4(e):void 0)}function M4(e){if(e.parent){if(_s(e.parent)||nu(e.parent))return e.parent.name;if(Ct(e.parent)&&e===e.parent.right){if(Ee(e.parent.left))return e.parent.left;if($o(e.parent.left))return fm(e.parent.left)}else if(ki(e.parent)&&Ee(e.parent.name))return e.parent.name}else return}function _A(e){if(El(e))return $r(e.modifiers,L_)}function hd(e){if(gr(e,126975))return $r(e.modifiers,Lg)}function L4(e,t){if(e.name)if(Ee(e.name)){let r=e.name.escapedText;return c_(e.parent,t).filter(a=>h_(a)&&Ee(a.name)&&a.name.escapedText===r)}else{let r=e.parent.parameters.indexOf(e);N.assert(r>-1,"Parameters should always be in their parents' parameter list");let a=c_(e.parent,t).filter(h_);if(rKo(a)&&a.typeParameters.some(_=>_.name.escapedText===r))}function j4(e){return R4(e,!1)}function F4(e){return R4(e,!0)}function cA(e){return!!Zt(e,h_)}function B4(e){return Zt(e,Mm)}function U4(e){return Q4(e,C8)}function lA(e){return Zt(e,T8)}function uA(e){return Zt(e,I6)}function q4(e){return Zt(e,I6,!0)}function pA(e){return Zt(e,N6)}function z4(e){return Zt(e,N6,!0)}function fA(e){return Zt(e,O6)}function W4(e){return Zt(e,O6,!0)}function dA(e){return Zt(e,M6)}function V4(e){return Zt(e,M6,!0)}function H4(e){return Zt(e,S8,!0)}function mA(e){return Zt(e,J6)}function G4(e){return Zt(e,J6,!0)}function hA(e){return Zt(e,x8)}function yA(e){return Zt(e,w8)}function X4(e){return Zt(e,R6)}function gA(e){return Zt(e,Ko)}function kg(e){return Zt(e,j6)}function Zd(e){let t=Zt(e,lu);if(t&&t.typeExpression&&t.typeExpression.type)return t}function em(e){let t=Zt(e,lu);return!t&&Ma(e)&&(t=Yr(Kd(e),r=>!!r.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function $4(e){let t=X4(e);if(t&&t.typeExpression)return t.typeExpression.type;let r=Zd(e);if(r&&r.typeExpression){let a=r.typeExpression.type;if(Em(a)){let _=Yr(a.members,c6);return _&&_.type}if(tu(a)||Om(a))return a.type}}function c_(e,t){var r;if(!dm(e))return $e;let a=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(a===void 0||t){let _=gT(e,t);N.assert(_.length<2||_[0]!==_[1]),a=Bo(_,p=>cs(p)?p.tags:p),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=a)}return a}function Ul(e){return c_(e,!1)}function bA(e){return c_(e,!0)}function Zt(e,t,r){return Yr(c_(e,r),t)}function Q4(e,t){return Ul(e).filter(t)}function vA(e,t){return Ul(e).filter(r=>r.kind===t)}function TA(e){return typeof e=="string"?e:e==null?void 0:e.map(t=>t.kind===328?t.text:SA(t)).join("")}function SA(e){let t=e.kind===331?"link":e.kind===332?"linkcode":"linkplain",r=e.name?vi(e.name):"",a=e.name&&e.text.startsWith("://")?"":" ";return`{@${t} ${r}${a}${e.text}}`}function xA(e){if(cu(e)){if(L6(e.parent)){let t=g2(e.parent);if(t&&Ka(t.tags))return Bo(t.tags,r=>Ko(r)?r.typeParameters:void 0)}return $e}if(Hl(e))return N.assert(e.parent.kind===327),Bo(e.parent.tags,t=>Ko(t)?t.typeParameters:void 0);if(e.typeParameters||F8(e)&&e.typeParameters)return e.typeParameters;if(Wt(e)){let t=eS(e);if(t.length)return t;let r=em(e);if(r&&tu(r)&&r.typeParameters)return r.typeParameters}return $e}function wA(e){return e.constraint?e.constraint:Ko(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function ro(e){return e.kind===80||e.kind===81}function CA(e){return e.kind===178||e.kind===177}function Y4(e){return Br(e)&&!!(e.flags&64)}function K4(e){return Ra(e)&&!!(e.flags&64)}function y0(e){return j_(e)&&!!(e.flags&64)}function Dg(e){let t=e.kind;return!!(e.flags&64)&&(t===211||t===212||t===213||t===235)}function Pg(e){return Dg(e)&&!jo(e)&&!!e.questionDotToken}function EA(e){return Pg(e.parent)&&e.parent.expression===e}function AA(e){return!Dg(e.parent)||Pg(e.parent)||e!==e.parent.expression}function kA(e){return e.kind===226&&e.operatorToken.kind===61}function Z4(e){return R_(e)&&Ee(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function tm(e){return ls(e,8)}function e3(e){return jo(e)&&!!(e.flags&64)}function DA(e){return e.kind===252||e.kind===251}function PA(e){return e.kind===280||e.kind===279}function t3(e){switch(e.kind){case 309:case 310:return!0;default:return!1}}function IA(e){return t3(e)||e.kind===307||e.kind===311}function Ig(e){return e.kind===355||e.kind===348}function NA(e){return ql(e.kind)}function ql(e){return e>=166}function r3(e){return e>=0&&e<=165}function OA(e){return r3(e.kind)}function va(e){return Qr(e,"pos")&&Qr(e,"end")}function Ng(e){return 9<=e&&e<=15}function Og(e){return Ng(e.kind)}function MA(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function Sl(e){return 15<=e&&e<=18}function LA(e){return Sl(e.kind)}function JA(e){let t=e.kind;return t===17||t===18}function RA(e){return f8(e)||m8(e)}function n3(e){switch(e.kind){case 276:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 274:return e.parent.isTypeOnly;case 273:case 271:return e.isTypeOnly}return!1}function i3(e){switch(e.kind){case 281:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 278:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 280:return e.parent.isTypeOnly}return!1}function jA(e){return n3(e)||i3(e)}function FA(e){return mn(e)||Ee(e)}function BA(e){return e.kind===11||Sl(e.kind)}function wa(e){var t;return Ee(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function Mg(e){var t;return jr(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function UA(e){let t=e.emitNode.autoGenerate.flags;return!!(t&32)&&!!(t&16)&&!!(t&8)}function a3(e){return(oo(e)||Rg(e))&&jr(e.name)}function qA(e){return Br(e)&&jr(e.name)}function bi(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function o3(e){return!!(J2(e)&16476)}function s3(e){return o3(e)||e===126||e===164||e===129}function Lg(e){return bi(e.kind)}function zA(e){let t=e.kind;return t===166||t===80}function zl(e){let t=e.kind;return t===80||t===81||t===11||t===9||t===167}function WA(e){let t=e.kind;return t===80||t===206||t===207}function Gi(e){return!!e&&Jg(e.kind)}function rm(e){return!!e&&(Jg(e.kind)||eu(e))}function _3(e){return e&&c3(e.kind)}function VA(e){return e.kind===112||e.kind===97}function c3(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function Jg(e){switch(e){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return c3(e)}}function HA(e){return ii(e)||p8(e)||au(e)&&Gi(e.parent)}function no(e){let t=e.kind;return t===176||t===172||t===174||t===177||t===178||t===181||t===175||t===240}function dn(e){return e&&(e.kind===263||e.kind===231)}function nm(e){return e&&(e.kind===177||e.kind===178)}function l3(e){return oo(e)&&oS(e)}function Rg(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function GA(e){switch(e.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function Of(e){return Lg(e)||L_(e)}function jg(e){let t=e.kind;return t===180||t===179||t===171||t===173||t===181||t===177||t===178}function XA(e){return jg(e)||no(e)}function Fg(e){let t=e.kind;return t===303||t===304||t===305||t===174||t===177||t===178}function g0(e){return PS(e.kind)}function $A(e){switch(e.kind){case 184:case 185:return!0}return!1}function im(e){if(e){let t=e.kind;return t===207||t===206}return!1}function u3(e){let t=e.kind;return t===209||t===210}function QA(e){let t=e.kind;return t===208||t===232}function Bg(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function YA(e){return ki(e)||Ma(e)||f3(e)||m3(e)}function KA(e){return p3(e)||d3(e)}function p3(e){switch(e.kind){case 206:case 210:return!0}return!1}function f3(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function d3(e){switch(e.kind){case 207:case 209:return!0}return!1}function m3(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return Na(e,!0)}function ZA(e){let t=e.kind;return t===211||t===166||t===205}function ek(e){let t=e.kind;return t===211||t===166}function tk(e){switch(e.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function rk(e){return e.kind===213||e.kind===214}function nk(e){let t=e.kind;return t===228||t===15}function Lo(e){return h3(tm(e).kind)}function h3(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function y3(e){return g3(tm(e).kind)}function g3(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return h3(e)}}function ik(e){switch(e.kind){case 225:return!0;case 224:return e.operator===46||e.operator===47;default:return!1}}function ak(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return Og(e)}}function am(e){return ok(tm(e).kind)}function ok(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 361:case 360:case 238:return!0;default:return g3(e)}}function sk(e){let t=e.kind;return t===216||t===234}function _k(e){return A6(e)||c8(e)}function b3(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&b3(e.statement,t)}return!1}function v3(e){return ss(e)||B_(e)}function ck(e){return mt(e,v3)}function lk(e){return!lm(e)&&!ss(e)&&!gr(e,1)&&!_m(e)}function uk(e){return lm(e)||ss(e)||gr(e,1)}function pk(e){return e.kind===249||e.kind===250}function fk(e){return au(e)||am(e)}function dk(e){return au(e)}function mk(e){return v6(e)||am(e)}function hk(e){let t=e.kind;return t===268||t===267||t===80}function yk(e){let t=e.kind;return t===268||t===267}function gk(e){let t=e.kind;return t===80||t===267}function bk(e){let t=e.kind;return t===275||t===274}function vk(e){return e.kind===267||e.kind===266}function Tk(e){switch(e.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 345:case 347:case 324:case 348:case 355:case 330:case 353:case 329:case 291:case 292:case 293:case 200:case 174:case 173:case 267:case 202:case 280:case 270:case 274:case 214:case 15:case 9:case 210:case 169:case 211:case 303:case 172:case 171:case 178:case 304:case 312:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function Sk(e){switch(e.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 345:case 347:case 324:case 330:case 353:case 200:case 174:case 173:case 267:case 178:case 312:case 265:return!0;default:return!1}}function xk(e){return e===219||e===208||e===263||e===231||e===175||e===176||e===266||e===306||e===281||e===262||e===218||e===177||e===273||e===271||e===276||e===264||e===291||e===174||e===173||e===267||e===270||e===274||e===280||e===169||e===303||e===172||e===171||e===178||e===304||e===265||e===168||e===260||e===353||e===345||e===355}function Ug(e){return e===262||e===282||e===263||e===264||e===265||e===266||e===267||e===272||e===271||e===278||e===277||e===270}function qg(e){return e===252||e===251||e===259||e===246||e===244||e===242||e===249||e===250||e===248||e===245||e===256||e===253||e===255||e===257||e===258||e===243||e===247||e===254||e===359}function Ho(e){return e.kind===168?e.parent&&e.parent.kind!==352||Wt(e):xk(e.kind)}function wk(e){return Ug(e.kind)}function Ck(e){return qg(e.kind)}function T3(e){let t=e.kind;return qg(t)||Ug(t)||Ek(e)}function Ek(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!$3(e)}function S3(e){let t=e.kind;return qg(t)||Ug(t)||t===241}function Ak(e){let t=e.kind;return t===283||t===166||t===80}function kk(e){let t=e.kind;return t===110||t===80||t===211||t===295}function x3(e){let t=e.kind;return t===284||t===294||t===285||t===12||t===288}function Dk(e){let t=e.kind;return t===291||t===293}function Pk(e){let t=e.kind;return t===11||t===294}function w3(e){let t=e.kind;return t===286||t===285}function Ik(e){let t=e.kind;return t===296||t===297}function zg(e){return e.kind>=316&&e.kind<=357}function C3(e){return e.kind===327||e.kind===326||e.kind===328||ul(e)||Wg(e)||P6(e)||cu(e)}function Wg(e){return e.kind>=334&&e.kind<=357}function Zc(e){return e.kind===178}function el(e){return e.kind===177}function Wi(e){if(!dm(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function Nk(e){return!!e.type}function E3(e){return!!e.initializer}function Ok(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function b0(e){return e.kind===291||e.kind===293||Fg(e)}function Mk(e){return e.kind===183||e.kind===233}function Lk(e){let t=v0;for(let r of e){if(!r.length)continue;let a=0;for(;ar.kind===t)}function Bk(e){let t=new Map;if(e)for(let r of e)t.set(r.escapedName,r);return t}function T0(e){return(e.flags&33554432)!==0}function Uk(){var e="";let t=r=>e+=r;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(r,a)=>t(r),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&Vi(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:Rn,decreaseIndent:Rn,clear:()=>e=""}}function qk(e,t){return e.configFilePath!==t.configFilePath||k3(e,t)}function k3(e,t){return E_(e,t,moduleResolutionOptionDeclarations)}function zk(e,t){return E_(e,t,optionsAffectingProgramStructure)}function E_(e,t,r){return e!==t&&r.some(a=>!$2(j0(e,a),j0(t,a)))}function Wk(e,t){for(;;){let r=t(e);if(r==="quit")return;if(r!==void 0)return r;if(ii(e))return;e=e.parent}}function Vk(e,t){let r=e.entries();for(let[a,_]of r){let p=t(_,a);if(p)return p}}function Hk(e,t){let r=e.keys();for(let a of r){let _=t(a);if(_)return _}}function Gk(e,t){e.forEach((r,a)=>{t.set(a,r)})}function Xk(e){let t=Zs.getText();try{return e(Zs),Zs.getText()}finally{Zs.clear(),Zs.writeKeyword(t)}}function om(e){return e.end-e.pos}function $k(e,t,r){var a,_;return(_=(a=e==null?void 0:e.resolvedModules)==null?void 0:a.get(t,r))==null?void 0:_.resolvedModule}function Qk(e,t,r,a){e.resolvedModules||(e.resolvedModules=createModeAwareCache()),e.resolvedModules.set(t,a,r)}function Yk(e,t,r,a){e.resolvedTypeReferenceDirectiveNames||(e.resolvedTypeReferenceDirectiveNames=createModeAwareCache()),e.resolvedTypeReferenceDirectiveNames.set(t,a,r)}function Kk(e,t,r){var a,_;return(_=(a=e==null?void 0:e.resolvedTypeReferenceDirectiveNames)==null?void 0:a.get(t,r))==null?void 0:_.resolvedTypeReferenceDirective}function Zk(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function eD(e,t){return e===t||e.resolvedModule===t.resolvedModule||!!e.resolvedModule&&!!t.resolvedModule&&e.resolvedModule.isExternalLibraryImport===t.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===t.resolvedModule.extension&&e.resolvedModule.resolvedFileName===t.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===t.resolvedModule.originalPath&&rD(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.node10Result===t.node10Result}function tD(e,t,r,a,_){var p,d;let h=(d=(p=e.resolvedModules)==null?void 0:p.get(r,a))==null?void 0:d.node10Result,l=h?tl(void 0,U.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,h,h.indexOf(nodeModulesPathPart+"@types/")>-1?`@types/${mangleScopedPackageName(_)}`:_):t.typesPackageExists(_)?tl(void 0,U.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,_,mangleScopedPackageName(_)):t.packageBundlesTypes(_)?tl(void 0,U.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,_,r):tl(void 0,U.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,r,mangleScopedPackageName(_));return l&&(l.repopulateInfo=()=>({moduleReference:r,mode:a,packageName:_===r?void 0:_})),l}function rD(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version}function D3({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function nD(e){return`${D3(e)}@${e.version}`}function iD(e,t){return e===t||e.resolvedTypeReferenceDirective===t.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!t.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===t.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary==!!t.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===t.resolvedTypeReferenceDirective.originalPath}function aD(e,t,r,a,_,p){N.assert(e.length===r.length);for(let d=0;d=0),Ia(t)[e]}function uD(e){let t=ri(e),r=to(t,e.pos);return`${t.fileName}(${r.line+1},${r.character+1})`}function P3(e,t){N.assert(e>=0);let r=Ia(t),a=e,_=t.text;if(a+1===r.length)return _.length-1;{let p=r[a],d=r[a+1]-1;for(N.assert(mr(_.charCodeAt(d)));p<=d&&mr(_.charCodeAt(d));)d--;return d}}function I3(e,t,r){return!(r&&r(t))&&!e.identifiers.has(t)}function zi(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function wl(e){return!zi(e)}function pD(e,t){return No(e)?t===e.expression:eu(e)?t===e.modifiers:Zl(e)?t===e.initializer:oo(e)?t===e.questionToken&&l3(e):_s(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||Gs(e.modifiers,t,Of):_u(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||Gs(e.modifiers,t,Of):d_(e)?t===e.exclamationToken:J_(e)?t===e.typeParameters||t===e.type||Gs(e.typeParameters,t,No):m_(e)?t===e.typeParameters||Gs(e.typeParameters,t,No):Qo(e)?t===e.typeParameters||t===e.type||Gs(e.typeParameters,t,No):x6(e)?t===e.modifiers||Gs(e.modifiers,t,Of):!1}function Gs(e,t,r){return!e||zt(t)||!r(t)?!1:es(e,t)}function N3(e,t,r){if(t===void 0||t.length===0)return e;let a=0;for(;a[`${to(e,d.range.end).line}`,d])),a=new Map;return{getUnusedExpectations:_,markUsed:p};function _(){return Rd(r.entries()).filter(([d,h])=>h.type===0&&!a.get(d)).map(([d,h])=>h)}function p(d){return r.has(`${d}`)?(a.set(`${d}`,!0),!0):!1}}function Go(e,t,r){return zi(e)?e.pos:zg(e)||e.kind===12?Nt((t||ri(e)).text,e.pos,!1,!0):r&&Wi(e)?Go(e.jsDoc[0],t):e.kind===358&&e._children.length>0?Go(e._children[0],t,r):Nt((t||ri(e)).text,e.pos,!1,!1,nT(e))}function bD(e,t){let r=!zi(e)&&q_(e)?ig(e.modifiers,L_):void 0;return r?Nt((t||ri(e)).text,r.end):Go(e,t)}function Xo(e,t,r=!1){return t_(e.text,t,r)}function vD(e){return!!Kr(e,b8)}function J3(e){return!!(B_(e)&&e.exportClause&&Im(e.exportClause)&&e.exportClause.name.escapedText==="default")}function t_(e,t,r=!1){if(zi(t))return"";let a=e.substring(r?t.pos:Nt(e,t.pos),t.end);return vD(t)&&(a=a.split(/\r\n|\n|\r/).map(_=>gl(_.replace(/^\s*\*/,""))).join(` +`)),a}function sm(e,t=!1){return Xo(ri(e),e,t)}function TD(e){return e.pos}function SD(e,t){return Ml(e,t,TD,kr)}function ti(e){let t=e.emitNode;return t&&t.flags||0}function xD(e){let t=e.emitNode;return t&&t.internalFlags||0}function wD(e,t,r){if(t&&CD(e,r))return Xo(t,e);switch(e.kind){case 11:{let a=r&2?zT:r&1||ti(e)&16777216?vd:Td;return e.singleQuote?"'"+a(e.text,39)+"'":'"'+a(e.text,34)+'"'}case 15:case 16:case 17:case 18:{let a=r&1||ti(e)&16777216?vd:Td,_=e.rawText??aN(a(e.text,96));switch(e.kind){case 15:return"`"+_+"`";case 16:return"`"+_+"${";case 17:return"}"+_+"${";case 18:return"}"+_+"`"}break}case 9:case 10:return e.text;case 14:return r&4&&e.isUnterminated?e.text+(e.text.charCodeAt(e.text.length-1)===92?" /":"/"):e.text}return N.fail(`Literal kind '${e.kind}' not accounted for.`)}function CD(e,t){if(Ta(e)||!e.parent||t&4&&e.isUnterminated)return!1;if(lo(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(t&8)}return!o6(e)}function ED(e){return b_(e)?'"'+Td(e)+'"':""+e}function AD(e){return T_(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function kD(e){return(C_(e)&7)!==0||R3(e)}function R3(e){let t=hm(e);return t.kind===260&&t.parent.kind===299}function _m(e){return Yi(e)&&(e.name.kind===11||cm(e))}function DD(e){return Yi(e)&&e.name.kind===11}function PD(e){return Yi(e)&&mn(e.name)}function j3(e){return Yi(e)||Ee(e)}function ID(e){return ND(e.valueDeclaration)}function ND(e){return!!e&&e.kind===267&&!e.body}function OD(e){return e.kind===312||e.kind===267||rm(e)}function cm(e){return!!(e.flags&2048)}function Gg(e){return _m(e)&&F3(e)}function F3(e){switch(e.parent.kind){case 312:return Zo(e.parent);case 268:return _m(e.parent.parent)&&ii(e.parent.parent.parent)&&!Zo(e.parent.parent.parent)}return!1}function B3(e){var t;return(t=e.declarations)==null?void 0:t.find(r=>!Gg(r)&&!(Yi(r)&&cm(r)))}function MD(e){return e===1||e===100||e===199}function Xg(e,t){return Zo(e)||MD(ni(t))&&!!e.commonJsModuleIndicator}function LD(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:W2(t,"alwaysStrict")||I8(e.statements)?!0:Zo(e)||B2(t)?ni(t)>=5?!0:!t.noImplicitUseStrict:!1}function JD(e){return!!(e.flags&33554432)||gr(e,2)}function U3(e,t){switch(e.kind){case 312:case 269:case 299:case 267:case 248:case 249:case 250:case 176:case 174:case 177:case 178:case 262:case 218:case 219:case 172:case 175:return!0;case 241:return!rm(t)}return!1}function RD(e){switch(N.type(e),e.kind){case 345:case 353:case 330:return!0;default:return q3(e)}}function q3(e){switch(N.type(e),e.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 324:case 263:case 231:case 264:case 265:case 352:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function $g(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function jD(e){return $g(e)||pm(e)}function FD(e){switch(e.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function BD(e){return lm(e)||Yi(e)||ru(e)||t2(e)}function lm(e){return $g(e)||B_(e)}function UD(e){return Kr(e.parent,t=>!!(getContainerFlags(t)&1))}function S0(e){return Kr(e.parent,t=>U3(t,t.parent))}function qD(e,t){let r=S0(e);for(;r;)t(r),r=S0(r)}function z3(e){return!e||om(e)===0?"(Missing)":sm(e)}function zD(e){return e.declaration?z3(e.declaration.parameters[0].name):void 0}function WD(e){return e.kind===167&&!Qi(e.expression)}function Qg(e){var t;switch(e.kind){case 80:case 81:return(t=e.emitNode)!=null&&t.autoGenerate?void 0:e.escapedText;case 11:case 9:case 15:return Mn(e.text);case 167:return Qi(e.expression)?Mn(e.expression.text):void 0;case 295:return Yl(e);default:return N.assertNever(e)}}function VD(e){return N.checkDefined(Qg(e))}function vi(e){switch(e.kind){case 110:return"this";case 81:case 80:return om(e)===0?Ot(e):sm(e);case 166:return vi(e.left)+"."+vi(e.right);case 211:return Ee(e.name)||jr(e.name)?vi(e.expression)+"."+vi(e.name):N.assertNever(e.name);case 318:return vi(e.left)+vi(e.right);case 295:return vi(e.namespace)+":"+vi(e.name);default:return N.assertNever(e)}}function HD(e,t,...r){let a=ri(e);return W3(a,e,t,...r)}function GD(e,t,r,...a){let _=Nt(e.text,t.pos);return j2(e,_,t.end-_,r,...a)}function W3(e,t,r,...a){let _=Zg(e,t);return j2(e,_.start,_.length,r,...a)}function XD(e,t,r,a){let _=Zg(e,t);return Kg(e,_.start,_.length,r,a)}function $D(e,t,r,a){let _=Nt(e.text,t.pos);return Kg(e,_,t.end-_,r,a)}function Yg(e,t,r){N.assertGreaterThanOrEqual(t,0),N.assertGreaterThanOrEqual(r,0),e&&(N.assertLessThanOrEqual(t,e.text.length),N.assertLessThanOrEqual(t+r,e.text.length))}function Kg(e,t,r,a,_){return Yg(e,t,r),{file:e,start:t,length:r,code:a.code,category:a.category,messageText:a.next?a:a.messageText,relatedInformation:_}}function QD(e,t,r){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}}function YD(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function KD(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}}function Ys(e,t){let r=ns(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);r.scan();let a=r.getTokenStart();return Hi(a,r.getTokenEnd())}function ZD(e,t){let r=ns(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return r.scan(),r.getToken()}function eP(e,t){let r=Nt(e.text,t.pos);if(t.body&&t.body.kind===241){let{line:a}=to(e,t.body.pos),{line:_}=to(e,t.body.end);if(a<_)return w_(r,P3(a,e)-r+1)}return Hi(r,t.end)}function Zg(e,t){let r=t;switch(t.kind){case 312:{let p=Nt(e.text,0,!1);return p===e.text.length?w_(0,0):Ys(e,p)}case 260:case 208:case 263:case 231:case 264:case 267:case 266:case 306:case 262:case 218:case 174:case 177:case 178:case 265:case 172:case 171:case 274:r=t.name;break;case 219:return eP(e,t);case 296:case 297:{let p=Nt(e.text,t.pos),d=t.statements.length>0?t.statements[0].pos:t.end;return Hi(p,d)}case 253:case 229:{let p=Nt(e.text,t.pos);return Ys(e,p)}case 238:{let p=Nt(e.text,t.expression.end);return Ys(e,p)}case 357:{let p=Nt(e.text,t.tagName.pos);return Ys(e,p)}}if(r===void 0)return Ys(e,t.pos);N.assert(!cs(r));let a=zi(r),_=a||kd(t)?r.pos:Nt(e.text,r.pos);return a?(N.assert(_===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),N.assert(_===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(N.assert(_>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),N.assert(_<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),Hi(_,r.end)}function tP(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function e2(e){return e.scriptKind===6}function rP(e){return!!($d(e)&2048)}function nP(e){return!!($d(e)&64&&!E4(e,e.parent))}function iP(e){return(C_(e)&7)===6}function aP(e){return(C_(e)&7)===4}function V3(e){return(C_(e)&7)===2}function oP(e){return(C_(e)&7)===1}function sP(e){return e.kind===213&&e.expression.kind===108}function t2(e){return e.kind===213&&e.expression.kind===102}function x0(e){return b6(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function H3(e){return ru(e)&&m6(e.argument)&&mn(e.argument.literal)}function Ea(e){return e.kind===244&&e.expression.kind===11}function um(e){return!!(ti(e)&2097152)}function w0(e){return um(e)&&os(e)}function _P(e){return Ee(e.name)&&!e.initializer}function C0(e){return um(e)&&as(e)&&so(e.declarationList.declarations,_P)}function cP(e,t){return e.kind!==12?Wo(t.text,e.pos):void 0}function G3(e,t){let r=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?y_(_4(t,e.pos),Wo(t,e.pos)):Wo(t,e.pos);return $r(r,a=>t.charCodeAt(a.pos+1)===42&&t.charCodeAt(a.pos+2)===42&&t.charCodeAt(a.pos+3)!==47)}function r2(e){if(182<=e.kind&&e.kind<=205)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return e.parent.kind!==222;case 233:return Nl(e.parent)&&!M0(e);case 168:return e.parent.kind===200||e.parent.kind===195;case 80:(e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e)&&(e=e.parent),N.assert(e.kind===80||e.kind===166||e.kind===211,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{let{parent:t}=e;if(t.kind===186)return!1;if(t.kind===205)return!t.isTypeOf;if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 233:return Nl(t.parent)&&!M0(t);case 168:return e===t.constraint;case 352:return e===t.constraint;case 172:case 171:case 169:case 260:return e===t.type;case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:return e===t.type;case 179:case 180:case 181:return e===t.type;case 216:return e===t.type;case 213:case 214:case 215:return es(t.typeArguments,e)}}}return!1}function lP(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function uP(e,t){return r(e);function r(a){switch(a.kind){case 253:return t(a);case 269:case 241:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 296:case 297:case 256:case 258:case 299:return Bt(a,r)}}}function pP(e,t){return r(e);function r(a){switch(a.kind){case 229:t(a);let _=a.expression;_&&r(_);return;case 266:case 264:case 267:case 265:return;default:if(Gi(a)){if(a.name&&a.name.kind===167){r(a.name.expression);return}}else r2(a)||Bt(a,r)}}}function fP(e){return e&&e.kind===188?e.elementType:e&&e.kind===183?Ld(e.typeArguments):void 0}function dP(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function n2(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function mP(e){return n2(e)||nm(e)}function X3(e){return e.parent.kind===261&&e.parent.parent.kind===243}function hP(e){return Wt(e)?uo(e.parent)&&Ct(e.parent.parent)&&Ja(e.parent.parent)===2||i2(e.parent):!1}function i2(e){return Wt(e)?Ct(e)&&Ja(e)===1:!1}function yP(e){return(ki(e)?V3(e)&&Ee(e.name)&&X3(e):oo(e)?O0(e)&&gm(e):Zl(e)&&O0(e))||i2(e)}function gP(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function bP(e,t){for(;;){if(t&&t(e),e.statement.kind!==256)return e.statement;e=e.statement}}function $3(e){return e&&e.kind===241&&Gi(e.parent)}function vP(e){return e&&e.kind===174&&e.parent.kind===210}function TP(e){return(e.kind===174||e.kind===177||e.kind===178)&&(e.parent.kind===210||e.parent.kind===231)}function SP(e){return e&&e.kind===1}function xP(e){return e&&e.kind===0}function a2(e,t,r,a){return yr(e==null?void 0:e.properties,_=>{if(!_s(_))return;let p=Qg(_.name);return t===p||a&&a===p?r(_):void 0})}function wP(e,t,r){return a2(e,t,a=>iu(a.initializer)?Yr(a.initializer.elements,_=>mn(_)&&_.text===r):void 0)}function Q3(e){if(e&&e.statements.length){let t=e.statements[0].expression;return On(t,uo)}}function CP(e,t,r){return Y3(e,t,a=>iu(a.initializer)?Yr(a.initializer.elements,_=>mn(_)&&_.text===r):void 0)}function Y3(e,t,r){return a2(Q3(e),t,r)}function EP(e){return Kr(e.parent,Gi)}function AP(e){return Kr(e.parent,_3)}function E0(e){return Kr(e.parent,dn)}function kP(e){return Kr(e.parent,t=>dn(t)||Gi(t)?"quit":eu(t))}function DP(e){return Kr(e.parent,rm)}function PP(e){let t=Kr(e.parent,r=>dn(r)?"quit":L_(r));return t&&dn(t.parent)?E0(t.parent):E0(t??e)}function o2(e,t,r){for(N.assert(e.kind!==312);;){if(e=e.parent,!e)return N.fail();switch(e.kind){case 167:if(r&&dn(e.parent.parent))return e;e=e.parent.parent;break;case 170:e.parent.kind===169&&no(e.parent.parent)?e=e.parent.parent:no(e.parent)&&(e=e.parent);break;case 219:if(!t)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 312:return e}}}function IP(e){switch(e.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(e.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function NP(e){Ee(e)&&(Yo(e.parent)||os(e.parent))&&e.parent.name===e&&(e=e.parent);let t=o2(e,!0,!1);return ii(t)}function OP(e){let t=o2(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function MP(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 167:e=e.parent;break;case 262:case 218:case 219:if(!t)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return e;case 170:e.parent.kind===169&&no(e.parent.parent)?e=e.parent.parent:no(e.parent)&&(e=e.parent);break}}}function LP(e){if(e.kind===218||e.kind===219){let t=e,r=e.parent;for(;r.kind===217;)t=r,r=r.parent;if(r.kind===213&&r.expression===t)return r}}function JP(e){return e.kind===108||yd(e)}function yd(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function RP(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===110}function jP(e){var t;return!!e&&ki(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function FP(e){return!!e&&(_u(e)||_s(e))&&Ct(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function BP(e){switch(e.kind){case 183:return e.typeName;case 233:return co(e.expression)?e.expression:void 0;case 80:case 166:return e}}function UP(e){switch(e.kind){case 215:return e.tag;case 286:case 285:return e.tagName;default:return e.expression}}function K3(e,t,r,a){if(e&&Qd(t)&&jr(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return r!==void 0&&(e?Yo(r):dn(r)&&!iS(t)&&!aS(t));case 177:case 178:case 174:return t.body!==void 0&&r!==void 0&&(e?Yo(r):dn(r));case 169:return e?r!==void 0&&r.body!==void 0&&(r.kind===176||r.kind===174||r.kind===178)&&KT(r)!==t&&a!==void 0&&a.kind===263:!1}return!1}function l_(e,t,r,a){return El(t)&&K3(e,t,r,a)}function A0(e,t,r,a){return l_(e,t,r,a)||s2(e,t,r)}function s2(e,t,r){switch(t.kind){case 263:return mt(t.members,a=>A0(e,a,t,r));case 231:return!e&&mt(t.members,a=>A0(e,a,t,r));case 174:case 178:case 176:return mt(t.parameters,a=>l_(e,a,t,r));default:return!1}}function qP(e,t){if(l_(e,t))return!0;let r=YT(t);return!!r&&s2(e,r,t)}function zP(e,t,r){let a;if(nm(t)){let{firstAccessor:_,secondAccessor:p,setAccessor:d}=P2(r.members,t),h=El(_)?_:p&&El(p)?p:void 0;if(!h||t!==h)return!1;a=d==null?void 0:d.parameters}else d_(t)&&(a=t.parameters);if(l_(e,t,r))return!0;if(a){for(let _ of a)if(!Xl(_)&&l_(e,_,t,r))return!0}return!1}function Z3(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return Z3(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function Mf(e){let{parent:t}=e;return t.kind===286||t.kind===285||t.kind===287?t.tagName===e:!1}function _2(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!Nl(e.parent)&&!Mm(e.parent);case 166:for(;e.parent.kind===166;)e=e.parent;return e.parent.kind===186||ul(e.parent)||zf(e.parent)||r_(e.parent)||Mf(e);case 318:for(;r_(e.parent);)e=e.parent;return e.parent.kind===186||ul(e.parent)||zf(e.parent)||r_(e.parent)||Mf(e);case 81:return Ct(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===186||ul(e.parent)||zf(e.parent)||r_(e.parent)||Mf(e))return!0;case 9:case 10:case 11:case 15:case 110:return eT(e);default:return!1}}function eT(e){let{parent:t}=e;switch(t.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return t.initializer===e;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return t.expression===e;case 248:let r=t;return r.initializer===e&&r.initializer.kind!==261||r.condition===e||r.incrementor===e;case 249:case 250:let a=t;return a.initializer===e&&a.initializer.kind!==261||a.expression===e;case 216:case 234:return e===t.expression;case 239:return e===t.expression;case 167:return e===t.expression;case 170:case 294:case 293:case 305:return!0;case 233:return t.expression===e&&!r2(t);case 304:return t.objectAssignmentInitializer===e;case 238:return e===t.expression;default:return _2(t)}}function tT(e){for(;e.kind===166||e.kind===80;)e=e.parent;return e.kind===186}function WP(e){return Im(e)&&!!e.parent.moduleSpecifier}function rT(e){return e.kind===271&&e.moduleReference.kind===283}function VP(e){return N.assert(rT(e)),e.moduleReference.expression}function HP(e){return pm(e)&&R2(e.initializer).arguments[0]}function GP(e){return e.kind===271&&e.moduleReference.kind!==283}function c2(e){return Wt(e)}function XP(e){return!Wt(e)}function Wt(e){return!!e&&!!(e.flags&524288)}function $P(e){return!!e&&!!(e.flags&134217728)}function QP(e){return!e2(e)}function nT(e){return!!e&&!!(e.flags&16777216)}function YP(e){return R_(e)&&Ee(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function Wl(e,t){if(e.kind!==213)return!1;let{expression:r,arguments:a}=e;if(r.kind!==80||r.escapedText!=="require"||a.length!==1)return!1;let _=a[0];return!t||Kn(_)}function iT(e){return aT(e,!1)}function pm(e){return aT(e,!0)}function KP(e){return nu(e)&&pm(e.parent.parent)}function aT(e,t){return ki(e)&&!!e.initializer&&Wl(t?R2(e.initializer):e.initializer,!0)}function oT(e){return as(e)&&e.declarationList.declarations.length>0&&so(e.declarationList.declarations,t=>iT(t))}function ZP(e){return e===39||e===34}function eI(e,t){return Xo(t,e).charCodeAt(0)===34}function k0(e){return Ct(e)||$o(e)||Ee(e)||j_(e)}function sT(e){return Wt(e)&&e.initializer&&Ct(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&co(e.name)&&u_(e.name,e.initializer.left)?e.initializer.right:e.initializer}function tI(e){let t=sT(e);return t&&A_(t,$l(e.name))}function rI(e,t){return yr(e.properties,r=>_s(r)&&Ee(r.name)&&r.name.escapedText==="value"&&r.initializer&&A_(r.initializer,t))}function nI(e){if(e&&e.parent&&Ct(e.parent)&&e.parent.operatorToken.kind===64){let t=$l(e.parent.left);return A_(e.parent.right,t)||iI(e.parent.left,e.parent.right,t)}if(e&&j_(e)&&p2(e)){let t=rI(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function A_(e,t){if(j_(e)){let r=Gl(e.expression);return r.kind===218||r.kind===219?e:void 0}if(e.kind===218||e.kind===231||e.kind===219||uo(e)&&(e.properties.length===0||t))return e}function iI(e,t,r){let a=Ct(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&A_(t.right,r);if(a&&u_(e,t.left))return a}function aI(e){let t=ki(e.parent)?e.parent.name:Ct(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&A_(e.right,$l(t))&&co(t)&&u_(t,e.left)}function oI(e){if(Ct(e.parent)){let t=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&Ct(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===64&&Ee(t.left))return t.left}else if(ki(e.parent))return e.parent.name}function u_(e,t){return P0(e)&&P0(t)?bd(e)===bd(t):ro(e)&&Lf(t)&&(t.expression.kind===110||Ee(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?u_(e,lT(t)):Lf(e)&&Lf(t)?io(e)===io(t)&&u_(e.expression,t.expression):!1}function l2(e){for(;Na(e,!0);)e=e.right;return e}function _T(e){return Ee(e)&&e.escapedText==="exports"}function cT(e){return Ee(e)&&e.escapedText==="module"}function u2(e){return(Br(e)||Vl(e))&&cT(e.expression)&&io(e)==="exports"}function Ja(e){let t=sI(e);return t===5||Wt(e)?t:0}function p2(e){return Ka(e.arguments)===3&&Br(e.expression)&&Ee(e.expression.expression)&&Ot(e.expression.expression)==="Object"&&Ot(e.expression.name)==="defineProperty"&&Qi(e.arguments[1])&&p_(e.arguments[0],!0)}function Lf(e){return Br(e)||Vl(e)}function Vl(e){return Ra(e)&&Qi(e.argumentExpression)}function k_(e,t){return Br(e)&&(!t&&e.expression.kind===110||Ee(e.name)&&p_(e.expression,!0))||f2(e,t)}function f2(e,t){return Vl(e)&&(!t&&e.expression.kind===110||co(e.expression)||k_(e.expression,!0))}function p_(e,t){return co(e)||k_(e,t)}function lT(e){return Br(e)?e.name:e.argumentExpression}function sI(e){if(j_(e)){if(!p2(e))return 0;let t=e.arguments[0];return _T(t)||u2(t)?8:k_(t)&&io(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!$o(e.left)||_I(l2(e))?0:p_(e.left.expression,!0)&&io(e.left)==="prototype"&&uo(pT(e))?6:uT(e.left)}function _I(e){return h6(e)&&lo(e.expression)&&e.expression.text==="0"}function fm(e){if(Br(e))return e.name;let t=Gl(e.argumentExpression);return lo(t)||Kn(t)?t:e}function io(e){let t=fm(e);if(t){if(Ee(t))return t.escapedText;if(Kn(t)||lo(t))return Mn(t.text)}}function uT(e){if(e.expression.kind===110)return 4;if(u2(e))return 2;if(p_(e.expression,!0)){if($l(e.expression))return 3;let t=e;for(;!Ee(t.expression);)t=t.expression;let r=t.expression;if((r.escapedText==="exports"||r.escapedText==="module"&&io(t)==="exports")&&k_(e))return 1;if(p_(e,!0)||Ra(e)&&S2(e))return 5}return 0}function pT(e){for(;Ct(e.right);)e=e.right;return e.right}function cI(e){return Ct(e)&&Ja(e)===3}function lI(e){return Wt(e)&&e.parent&&e.parent.kind===244&&(!Ra(e)||Vl(e))&&!!Zd(e.parent)}function uI(e,t){let{valueDeclaration:r}=e;(!r||!(t.flags&33554432&&!Wt(t)&&!(r.flags&33554432))&&k0(r)&&!k0(t)||r.kind!==t.kind&&j3(r))&&(e.valueDeclaration=t)}function pI(e){if(!e||!e.valueDeclaration)return!1;let t=e.valueDeclaration;return t.kind===262||ki(t)&&t.initializer&&Gi(t.initializer)}function fI(e){var t,r;switch(e.kind){case 260:case 208:return(t=Kr(e.initializer,a=>Wl(a,!0)))==null?void 0:t.arguments[0];case 272:return On(e.moduleSpecifier,Kn);case 271:return On((r=On(e.moduleReference,Nm))==null?void 0:r.expression,Kn);case 273:case 280:return On(e.parent.moduleSpecifier,Kn);case 274:case 281:return On(e.parent.parent.moduleSpecifier,Kn);case 276:return On(e.parent.parent.parent.moduleSpecifier,Kn);default:N.assertNever(e)}}function dI(e){return fT(e)||N.failBadSyntaxKind(e.parent)}function fT(e){switch(e.parent.kind){case 272:case 278:return e.parent;case 283:return e.parent.parent;case 213:return t2(e.parent)||Wl(e.parent,!1)?e.parent:void 0;case 201:return N.assert(mn(e)),On(e.parent.parent,ru);default:return}}function d2(e){switch(e.kind){case 272:case 278:return e.moduleSpecifier;case 271:return e.moduleReference.kind===283?e.moduleReference.expression:void 0;case 205:return H3(e)?e.argument.literal:void 0;case 213:return e.arguments[0];case 267:return e.name.kind===11?e.name:void 0;default:return N.assertNever(e)}}function dT(e){switch(e.kind){case 272:return e.importClause&&On(e.importClause.namedBindings,E6);case 271:return e;case 278:return e.exportClause&&On(e.exportClause,Im);default:return N.assertNever(e)}}function mT(e){return e.kind===272&&!!e.importClause&&!!e.importClause.name}function mI(e,t){if(e.name){let r=t(e);if(r)return r}if(e.namedBindings){let r=E6(e.namedBindings)?t(e.namedBindings):yr(e.namedBindings.elements,t);if(r)return r}}function hI(e){if(e)switch(e.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return e.questionToken!==void 0}return!1}function yI(e){let t=Om(e)?g_(e.parameters):void 0,r=On(t&&t.name,Ee);return!!r&&r.escapedText==="new"}function Hl(e){return e.kind===353||e.kind===345||e.kind===347}function gI(e){return Hl(e)||T6(e)}function bI(e){return ou(e)&&Ct(e.expression)&&e.expression.operatorToken.kind===64?l2(e.expression):void 0}function hT(e){return ou(e)&&Ct(e.expression)&&Ja(e.expression)!==0&&Ct(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function m2(e){switch(e.kind){case 243:let t=Cl(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function Cl(e){return as(e)?g_(e.declarationList.declarations):void 0}function yT(e){return Yi(e)&&e.body&&e.body.kind===267?e.body:void 0}function vI(e){if(e.kind>=243&&e.kind<=259)return!0;switch(e.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function dm(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 324:case 330:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function gT(e,t){let r;n2(e)&&E3(e)&&Wi(e.initializer)&&(r=Rr(r,Fb(e,ka(e.initializer.jsDoc))));let a=e;for(;a&&a.parent;){if(Wi(a)&&(r=Rr(r,Fb(e,ka(a.jsDoc)))),a.kind===169){r=Rr(r,(t?J4:Kd)(a));break}if(a.kind===168){r=Rr(r,(t?F4:j4)(a));break}a=bT(a)}return r||$e}function Fb(e,t){if(cs(t)){let r=$r(t.tags,a=>Bb(e,a));return t.tags===r?[t]:r}return Bb(e,t)?[t]:void 0}function Bb(e,t){return!(lu(t)||j6(t))||!t.parent||!cs(t.parent)||!is(t.parent.parent)||t.parent.parent===e}function bT(e){let t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||yT(t)||Ct(e)&&e.operatorToken.kind===64)return t;if(t.parent&&(Cl(t.parent)===e||Ct(t)&&t.operatorToken.kind===64))return t.parent;if(t.parent&&t.parent.parent&&(Cl(t.parent.parent)||m2(t.parent.parent)===e||hT(t.parent.parent)))return t.parent.parent}function TI(e){if(e.symbol)return e.symbol;if(!Ee(e.name))return;let t=e.name.escapedText,r=h2(e);if(!r)return;let a=Yr(r.parameters,_=>_.name.kind===80&&_.name.escapedText===t);return a&&a.symbol}function SI(e){if(cs(e.parent)&&e.parent.tags){let t=Yr(e.parent.tags,Hl);if(t)return t}return h2(e)}function h2(e){let t=y2(e);if(t)return Zl(t)&&t.type&&Gi(t.type)?t.type:Gi(t)?t:void 0}function y2(e){let t=vT(e);if(t)return hT(t)||bI(t)||m2(t)||Cl(t)||yT(t)||t}function vT(e){let t=g2(e);if(!t)return;let r=t.parent;if(r&&r.jsDoc&&t===wi(r.jsDoc))return r}function g2(e){return Kr(e.parent,cs)}function xI(e){let t=e.name.escapedText,{typeParameters:r}=e.parent.parent.parent;return r&&Yr(r,a=>a.name.escapedText===t)}function wI(e){return!!e.typeArguments}function TT(e){let t=e.parent;for(;;){switch(t.kind){case 226:let r=t.operatorToken.kind;return D_(r)&&t.left===e?r===64||vm(r)?1:2:0;case 224:case 225:let a=t.operator;return a===46||a===47?2:0;case 249:case 250:return t.initializer===e?1:0;case 217:case 209:case 230:case 235:e=t;break;case 305:e=t.parent;break;case 304:if(t.name!==e)return 0;e=t.parent;break;case 303:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function CI(e){return TT(e)!==0}function EI(e){switch(e.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function AI(e){return Am(e)||km(e)||Rg(e)||os(e)||J_(e)}function ST(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function kI(e){return ST(e,196)}function xT(e){return ST(e,217)}function DI(e){let t;for(;e&&e.kind===196;)t=e,e=e.parent;return[t,e]}function PI(e){for(;f6(e);)e=e.type;return e}function Gl(e,t){return ls(e,t?17:1)}function II(e){return e.kind!==211&&e.kind!==212?!1:(e=xT(e.parent),e&&e.kind===220)}function NI(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function wT(e){return!ii(e)&&!im(e)&&Ho(e.parent)&&e.parent.name===e}function OI(e){let t=e.parent;switch(e.kind){case 11:case 15:case 9:if(ao(t))return t.parent;case 80:if(Ho(t))return t.name===e?t:void 0;if(M_(t)){let r=t.parent;return h_(r)&&r.name===t?r:void 0}else{let r=t.parent;return Ct(r)&&Ja(r)!==0&&(r.left.symbol||r.symbol)&&Bl(r)===e?r:void 0}case 81:return Ho(t)&&t.name===e?t:void 0;default:return}}function CT(e){return Qi(e)&&e.parent.kind===167&&Ho(e.parent.parent)}function MI(e){let t=e.parent;switch(t.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return t.name===e;case 166:return t.right===e;case 208:case 276:return t.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function LI(e){return e.kind===271||e.kind===270||e.kind===273&&e.name||e.kind===274||e.kind===280||e.kind===276||e.kind===281||e.kind===277&&D0(e)?!0:Wt(e)&&(Ct(e)&&Ja(e)===2&&D0(e)||Br(e)&&Ct(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===64&&b2(e.parent.right))}function ET(e){switch(e.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return e.parent;case 166:do e=e.parent;while(e.parent.kind===166);return ET(e)}}function b2(e){return co(e)||Il(e)}function D0(e){let t=AT(e);return b2(t)}function AT(e){return ss(e)?e.expression:e.right}function JI(e){return e.kind===304?e.name:e.kind===303?e.initializer:e.parent.right}function kT(e){let t=DT(e);if(t&&Wt(e)){let r=B4(e);if(r)return r.class}return t}function DT(e){let t=mm(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function PT(e){if(Wt(e))return U4(e).map(t=>t.class);{let t=mm(e.heritageClauses,119);return t==null?void 0:t.types}}function IT(e){return su(e)?NT(e)||$e:dn(e)&&y_($f(kT(e)),PT(e))||$e}function NT(e){let t=mm(e.heritageClauses,96);return t?t.types:void 0}function mm(e,t){if(e){for(let r of e)if(r.token===t)return r}}function RI(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Si(e){return 83<=e&&e<=165}function OT(e){return 19<=e&&e<=79}function Jf(e){return Si(e)||OT(e)}function v2(e){return 128<=e&&e<=165}function MT(e){return Si(e)&&!v2(e)}function jI(e){return 119<=e&&e<=127}function FI(e){let t=Rl(e);return t!==void 0&&MT(t)}function BI(e){let t=Rl(e);return t!==void 0&&Si(t)}function UI(e){let t=P4(e);return!!t&&!v2(t)}function qI(e){return 2<=e&&e<=7}function zI(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:gr(e,512)&&(t|=2);break}return e.body||(t|=4),t}function WI(e){switch(e.kind){case 262:case 218:case 219:case 174:return e.body!==void 0&&e.asteriskToken===void 0&&gr(e,512)}return!1}function Qi(e){return Kn(e)||lo(e)}function T2(e){return Dm(e)&&(e.operator===40||e.operator===41)&&lo(e.operand)}function LT(e){let t=Bl(e);return!!t&&S2(t)}function S2(e){if(!(e.kind===167||e.kind===212))return!1;let t=Ra(e)?Gl(e.argumentExpression):e.expression;return!Qi(t)&&!T2(t)}function gd(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 9:return Mn(e.text);case 167:let t=e.expression;return Qi(t)?Mn(t.text):T2(t)?t.operator===41?nr(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return Yl(e);default:return N.assertNever(e)}}function P0(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function bd(e){return ro(e)?Ot(e):U_(e)?Kl(e):e.text}function JT(e){return ro(e)?e.escapedText:U_(e)?Yl(e):Mn(e.text)}function VI(e){return`__@${getSymbolId(e)}@${e.escapedName}`}function HI(e,t){return`__#${getSymbolId(e)}@${t}`}function GI(e){return Fr(e.escapedName,"__@")}function XI(e){return Fr(e.escapedName,"__#")}function $I(e){return e.kind===80&&e.escapedText==="Symbol"}function RT(e){return Ee(e)?Ot(e)==="__proto__":mn(e)&&e.text==="__proto__"}function Ks(e,t){switch(e=ls(e),e.kind){case 231:if(classHasDeclaredOrExplicitlyAssignedName(e))return!1;break;case 218:if(e.name)return!1;break;case 219:break;default:return!1}return typeof t=="function"?t(e):!0}function jT(e){switch(e.kind){case 303:return!RT(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return Ee(e.name)&&!!e.initializer;case 169:return Ee(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 208:return Ee(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 172:return!!e.initializer;case 226:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return Ee(e.left)}break;case 277:return!0}return!1}function QI(e,t){if(!jT(e))return!1;switch(e.kind){case 303:return Ks(e.initializer,t);case 304:return Ks(e.objectAssignmentInitializer,t);case 260:case 169:case 208:case 172:return Ks(e.initializer,t);case 226:return Ks(e.right,t);case 277:return Ks(e.expression,t)}}function YI(e){return e.escapedText==="push"||e.escapedText==="unshift"}function KI(e){return hm(e).kind===169}function hm(e){for(;e.kind===208;)e=e.parent.parent;return e}function ZI(e){let t=e.kind;return t===176||t===218||t===262||t===219||t===174||t===177||t===178||t===267||t===312}function Ta(e){return Oa(e.pos)||Oa(e.end)}function eN(e){return Fl(e,ii)||e}function tN(e){let t=x2(e),r=e.kind===214&&e.arguments!==void 0;return FT(e.kind,t,r)}function FT(e,t,r){switch(e){case 214:return r?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function rN(e){let t=x2(e),r=e.kind===214&&e.arguments!==void 0;return BT(e.kind,t,r)}function x2(e){return e.kind===226?e.operatorToken.kind:e.kind===224||e.kind===225?e.operator:e.kind}function BT(e,t,r){switch(e){case 361:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return pl(t)}case 216:case 235:case 224:case 221:case 222:case 220:case 223:return 16;case 225:return 17;case 213:return 18;case 214:return r?19:18;case 215:case 211:case 212:case 236:return 19;case 234:case 238:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 209:case 210:case 218:case 219:case 231:case 14:case 15:case 228:case 217:case 232:case 284:case 285:case 288:return 20;default:return-1}}function pl(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function nN(e){return $r(e,t=>{switch(t.kind){case 294:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function iN(){let e=[],t=[],r=new Map,a=!1;return{add:p,lookup:_,getGlobalDiagnostics:d,getDiagnostics:h};function _(l){let v;if(l.file?v=r.get(l.file.fileName):v=e,!v)return;let y=Ml(v,l,bt,xd);if(y>=0)return v[y]}function p(l){let v;l.file?(v=r.get(l.file.fileName),v||(v=[],r.set(l.file.fileName,v),yl(t,l.file.fileName,Ci))):(a&&(a=!1,e=e.slice()),v=e),yl(v,l,xd)}function d(){return a=!0,e}function h(l){if(l)return r.get(l)||[];let v=Tv(t,y=>r.get(y));return e.length&&v.unshift(...e),v}}function aN(e){return e.replace(bx,"\\${")}function UT(e){return e&&!!(Bx(e)?e.templateFlags:e.head.templateFlags||mt(e.templateSpans,t=>!!t.literal.templateFlags))}function qT(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function oN(e,t,r){if(e.charCodeAt(0)===0){let a=r.charCodeAt(t+e.length);return a>=48&&a<=57?"\\x00":"\\0"}return xx.get(e)||qT(e.charCodeAt(0))}function vd(e,t){let r=t===96?Sx:t===39?Tx:vx;return e.replace(r,oN)}function Td(e,t){return e=vd(e,t),W0.test(e)?e.replace(W0,r=>qT(r.charCodeAt(0))):e}function sN(e){return"&#x"+e.toString(16).toUpperCase()+";"}function _N(e){return e.charCodeAt(0)===0?"�":Ex.get(e)||sN(e.charCodeAt(0))}function zT(e,t){let r=t===39?Cx:wx;return e.replace(r,_N)}function cN(e){let t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&lN(e.charCodeAt(0))?e.substring(1,t-1):e}function lN(e){return e===39||e===34||e===96}function WT(e){let t=e.charCodeAt(0);return t>=97&&t<=122||eo(e,"-")}function w2(e){let t=Po[1];for(let r=Po.length;r<=e;r++)Po.push(Po[r-1]+t);return Po[e]}function Jo(){return Po[1].length}function uN(){return eo(Hf,"-dev")||eo(Hf,"-insiders")}function pN(e){var t,r,a,_,p,d=!1;function h(K){let ue=Vd(K);ue.length>1?(_=_+ue.length-1,p=t.length-K.length+ka(ue),a=p-t.length===0):a=!1}function l(K){K&&K.length&&(a&&(K=w2(r)+K,a=!1),t+=K,h(K))}function v(K){K&&(d=!1),l(K)}function y(K){K&&(d=!0),l(K)}function C(){t="",r=0,a=!0,_=0,p=0,d=!1}function S(K){K!==void 0&&(t+=K,h(K),d=!1)}function k(K){K&&K.length&&v(K)}function L(K){(!a||K)&&(t+=e,_++,p=t.length,a=!0,d=!1)}function G(){return a?t.length:t.length+e.length}return C(),{write:v,rawWrite:S,writeLiteral:k,writeLine:L,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},getIndent:()=>r,getTextPos:()=>t.length,getLine:()=>_,getColumn:()=>a?r*Jo():t.length-p,getText:()=>t,isAtStartOfLine:()=>a,hasTrailingComment:()=>d,hasTrailingWhitespace:()=>!!t.length&&Vi(t.charCodeAt(t.length-1)),clear:C,writeKeyword:v,writeOperator:v,writeParameter:v,writeProperty:v,writePunctuation:v,writeSpace:v,writeStringLiteral:v,writeSymbol:(K,ue)=>v(K),writeTrailingSemicolon:v,writeComment:y,getTextPosWithWriteLine:G}}function fN(e){let t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(a){r(),e.writeLiteral(a)},writeStringLiteral(a){r(),e.writeStringLiteral(a)},writeSymbol(a,_){r(),e.writeSymbol(a,_)},writePunctuation(a){r(),e.writePunctuation(a)},writeKeyword(a){r(),e.writeKeyword(a)},writeOperator(a){r(),e.writeOperator(a)},writeParameter(a){r(),e.writeParameter(a)},writeSpace(a){r(),e.writeSpace(a)},writeProperty(a){r(),e.writeProperty(a)},writeComment(a){r(),e.writeComment(a)},writeLine(){r(),e.writeLine()},increaseIndent(){r(),e.increaseIndent()},decreaseIndent(){r(),e.decreaseIndent()}}}function C2(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function VT(e){return Bd(C2(e))}function HT(e,t,r){return t.moduleName||E2(e,t.fileName,r&&r.fileName)}function Ub(e,t){return e.getCanonicalFileName(Pa(t,e.getCurrentDirectory()))}function dN(e,t,r){let a=t.getExternalModuleFileFromDeclaration(r);if(!a||a.isDeclarationFile)return;let _=d2(r);if(!(_&&Kn(_)&&!rs(_.text)&&Ub(e,a.path).indexOf(Ub(e,zo(e.getCommonSourceDirectory())))===-1))return HT(e,a)}function E2(e,t,r){let a=l=>e.getCanonicalFileName(l),_=xi(r?$i(r):e.getCommonSourceDirectory(),e.getCurrentDirectory(),a),p=Pa(t,e.getCurrentDirectory()),d=bg(_,p,_,a,!1),h=Al(d);return r?hg(h):h}function mN(e,t,r){let a=t.getCompilerOptions(),_;return a.outDir?_=Al($T(e,t,a.outDir)):_=Al(e),_+r}function hN(e,t){return GT(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),r=>t.getCanonicalFileName(r))}function GT(e,t,r,a,_){let p=t.declarationDir||t.outDir,d=p?k2(e,p,r,a,_):e,h=XT(d);return Al(d)+h}function XT(e){return ei(e,[".mjs",".mts"])?".d.mts":ei(e,[".cjs",".cts"])?".d.cts":ei(e,[".json"])?".d.json.ts":".d.ts"}function yN(e){return ei(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:ei(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:ei(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function A2(e){return e.outFile||e.out}function gN(e,t){var r;if(e.paths)return e.baseUrl??N.checkDefined(e.pathsBasePath||((r=t.getCurrentDirectory)==null?void 0:r.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function bN(e,t,r){let a=e.getCompilerOptions();if(A2(a)){let _=ni(a),p=a.emitDeclarationOnly||_===2||_===4;return $r(e.getSourceFiles(),d=>(p||!Zo(d))&&I0(d,e,r))}else{let _=t===void 0?e.getSourceFiles():[t];return $r(_,p=>I0(p,e,r))}}function I0(e,t,r){return!(t.getCompilerOptions().noEmitForJsFiles&&c2(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&(r||!(e2(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&!t.isSourceOfProjectReferenceRedirect(e.fileName))}function $T(e,t,r){return k2(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),a=>t.getCanonicalFileName(a))}function k2(e,t,r,a,_){let p=Pa(e,r);return p=_(p).indexOf(_(a))===0?p.substring(a.length):p,hr(t,p)}function vN(e,t,r,a,_,p,d){e.writeFile(r,a,_,h=>{t.add(fl(U.Could_not_write_file_0_Colon_1,r,h))},p,d)}function QT(e,t,r){if(e.length>Ei(e)&&!r(e)){let a=$i(e);QT(a,t,r),t(e)}}function TN(e,t,r,a,_,p){try{a(e,t,r)}catch{QT($i(pn(e)),_,p),a(e,t,r)}}function SN(e,t){let r=Ia(e);return __(r,t)}function Ca(e,t){return __(e,t)}function YT(e){return Yr(e.members,t=>J_(t)&&wl(t.body))}function D2(e){if(e&&e.parameters.length>0){let t=e.parameters.length===2&&Xl(e.parameters[0]);return e.parameters[t?1:0]}}function xN(e){let t=D2(e);return t&&t.type}function KT(e){if(e.parameters.length&&!cu(e)){let t=e.parameters[0];if(Xl(t))return t}}function Xl(e){return ym(e.name)}function ym(e){return!!e&&e.kind===80&&ZT(e)}function wN(e){return!!Kr(e,t=>t.kind===186?!0:t.kind===80||t.kind===166?!1:"quit")}function CN(e){if(!ym(e))return!1;for(;M_(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===186}function ZT(e){return e.escapedText==="this"}function P2(e,t){let r,a,_,p;return LT(t)?(r=t,t.kind===177?_=t:t.kind===178?p=t:N.fail("Accessor has wrong kind")):yr(e,d=>{if(nm(d)&&N0(d)===N0(t)){let h=gd(d.name),l=gd(t.name);h===l&&(r?a||(a=d):r=d,d.kind===177&&!_&&(_=d),d.kind===178&&!p&&(p=d))}}),{firstAccessor:r,secondAccessor:a,getAccessor:_,setAccessor:p}}function I2(e){if(!Wt(e)&&os(e))return;let t=e.type;return t||!Wt(e)?t:Ig(e)?e.typeExpression&&e.typeExpression.type:em(e)}function EN(e){return e.type}function AN(e){return cu(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(Wt(e)?$4(e):void 0)}function eS(e){return Bo(Ul(e),t=>kN(t)?t.typeParameters:void 0)}function kN(e){return Ko(e)&&!(e.parent.kind===327&&(e.parent.tags.some(Hl)||e.parent.tags.some(L6)))}function DN(e){let t=D2(e);return t&&I2(t)}function tS(e,t,r,a){rS(e,t,r.pos,a)}function rS(e,t,r,a){a&&a.length&&r!==a[0].pos&&Ca(e,r)!==Ca(e,a[0].pos)&&t.writeLine()}function PN(e,t,r,a){r!==a&&Ca(e,r)!==Ca(e,a)&&t.writeLine()}function nS(e,t,r,a,_,p,d,h){if(a&&a.length>0){_&&r.writeSpace(" ");let l=!1;for(let v of a)l&&(r.writeSpace(" "),l=!1),h(e,t,r,v.pos,v.end,d),v.hasTrailingNewLine?r.writeLine():l=!0;l&&p&&r.writeSpace(" ")}}function IN(e,t,r,a,_,p,d){let h,l;if(d?_.pos===0&&(h=$r(Wo(e,_.pos),v)):h=Wo(e,_.pos),h){let y=[],C;for(let S of h){if(C){let k=Ca(t,C.end);if(Ca(t,S.pos)>=k+2)break}y.push(S),C=S}if(y.length){let S=Ca(t,ka(y).end);Ca(t,Nt(e,_.pos))>=S+2&&(tS(t,r,_,h),nS(e,t,r,y,!1,!0,p,a),l={nodePos:_.pos,detachedCommentEndPos:ka(y).end})}}return l;function v(y){return L3(e,y.pos)}}function NN(e,t,r,a,_,p){if(e.charCodeAt(a+1)===42){let d=Sg(t,a),h=t.length,l;for(let v=a,y=d.line;v<_;y++){let C=y+1===h?e.length+1:t[y+1];if(v!==a){l===void 0&&(l=qb(e,t[d.line],a));let k=r.getIndent()*Jo()-l+qb(e,v,C);if(k>0){let L=k%Jo(),G=w2((k-L)/Jo());for(r.rawWrite(G);L;)r.rawWrite(" "),L--}else r.rawWrite("")}ON(e,_,r,p,v,C),v=C}}else r.writeComment(e.substring(a,_))}function ON(e,t,r,a,_,p){let d=Math.min(t,p-1),h=Ud(e.substring(_,d));h?(r.writeComment(h),d!==t&&r.writeLine()):r.rawWrite(a)}function qb(e,t,r){let a=0;for(;t=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=L2(e)|536870912),t&&!(e.modifierFlagsCache&4096)&&(r||Wt(e))&&e.parent&&(e.modifierFlagsCache|=lS(e)|4096),e.modifierFlagsCache&-536875009)}function bm(e){return O2(e,!0)}function cS(e){return O2(e,!0,!0)}function M2(e){return O2(e,!1)}function lS(e){let t=0;return e.parent&&!Ma(e)&&(Wt(e)&&(q4(e)&&(t|=4),z4(e)&&(t|=8),W4(e)&&(t|=16),V4(e)&&(t|=64),H4(e)&&(t|=16384)),G4(e)&&(t|=8192)),t}function uS(e){return L2(e)|lS(e)}function L2(e){let t=q_(e)?ln(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=1),t}function ln(e){let t=0;if(e)for(let r of e)t|=J2(r.kind);return t}function J2(e){switch(e){case 126:return 32;case 125:return 4;case 124:return 16;case 123:return 8;case 128:return 256;case 129:return 128;case 95:return 1;case 138:return 2;case 87:return 2048;case 90:return 1024;case 134:return 512;case 148:return 64;case 164:return 16384;case 103:return 32768;case 147:return 65536;case 170:return 131072}return 0}function pS(e){return e===57||e===56}function RN(e){return pS(e)||e===54}function vm(e){return e===76||e===77||e===78}function jN(e){return Ct(e)&&vm(e.operatorToken.kind)}function fS(e){return pS(e)||e===61}function FN(e){return Ct(e)&&fS(e.operatorToken.kind)}function D_(e){return e>=64&&e<=79}function dS(e){let t=mS(e);return t&&!t.isImplements?t.class:void 0}function mS(e){if(g6(e)){if(Nl(e.parent)&&dn(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(Mm(e.parent)){let t=y2(e.parent);if(t&&dn(t))return{class:t,isImplements:!1}}}}function Na(e,t){return Ct(e)&&(t?e.operatorToken.kind===64:D_(e.operatorToken.kind))&&Lo(e.left)}function BN(e){return Na(e.parent)&&e.parent.left===e}function UN(e){if(Na(e,!0)){let t=e.left.kind;return t===210||t===209}return!1}function M0(e){return dS(e)!==void 0}function co(e){return e.kind===80||hS(e)}function qN(e){switch(e.kind){case 80:return e;case 166:do e=e.left;while(e.kind!==80);return e;case 211:do e=e.expression;while(e.kind!==80);return e}}function L0(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===236||e.kind===211&&L0(e.expression)||e.kind===217&&L0(e.expression)}function hS(e){return Br(e)&&Ee(e.name)&&co(e.expression)}function J0(e){if(Br(e)){let t=J0(e.expression);if(t!==void 0)return t+"."+vi(e.name)}else if(Ra(e)){let t=J0(e.expression);if(t!==void 0&&zl(e.argumentExpression))return t+"."+gd(e.argumentExpression)}else{if(Ee(e))return Vo(e.escapedText);if(U_(e))return Kl(e)}}function $l(e){return k_(e)&&io(e)==="prototype"}function zN(e){return e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e||e.parent.kind===236&&e.parent.name===e}function yS(e){return Br(e.parent)&&e.parent.name===e||Ra(e.parent)&&e.parent.argumentExpression===e}function WN(e){return M_(e.parent)&&e.parent.right===e||Br(e.parent)&&e.parent.name===e||r_(e.parent)&&e.parent.right===e}function VN(e){return e.kind===210&&e.properties.length===0}function HN(e){return e.kind===209&&e.elements.length===0}function GN(e){if(!(!XN(e)||!e.declarations)){for(let t of e.declarations)if(t.localSymbol)return t.localSymbol}}function XN(e){return e&&Ka(e.declarations)>0&&gr(e.declarations[0],1024)}function $N(e){return Yr(Ix,t=>La(e,t))}function QN(e){let t=[],r=e.length;for(let a=0;a>6|192),t.push(_&63|128)):_<65536?(t.push(_>>12|224),t.push(_>>6&63|128),t.push(_&63|128)):_<131072?(t.push(_>>18|240),t.push(_>>12&63|128),t.push(_>>6&63|128),t.push(_&63|128)):N.assert(!1,"Unexpected code point")}return t}function gS(e){let t="",r=QN(e),a=0,_=r.length,p,d,h,l;for(;a<_;)p=r[a]>>2,d=(r[a]&3)<<4|r[a+1]>>4,h=(r[a+1]&15)<<2|r[a+2]>>6,l=r[a+2]&63,a+1>=_?h=l=64:a+2>=_&&(l=64),t+=qi.charAt(p)+qi.charAt(d)+qi.charAt(h)+qi.charAt(l),a+=3;return t}function YN(e){let t="",r=0,a=e.length;for(;r>4&3,y=(d&15)<<4|h>>2&15,C=(h&3)<<6|l&63;y===0&&h!==0?a.push(v):C===0&&l!==0?a.push(v,y):a.push(v,y,C),_+=4}return YN(a)}function bS(e,t){let r=b_(t)?t:t.readFile(e);if(!r)return;let a=parseConfigFileTextToJson(e,r);return a.error?void 0:a.config}function eO(e,t){return bS(e,t)||{}}function vS(e,t){return!t.directoryExists||t.directoryExists(e)}function TS(e){switch(e.newLine){case 0:return Ax;case 1:case void 0:return kx}}function Tm(e,t=e){return N.assert(t>=e||t===-1),{pos:e,end:t}}function tO(e,t){return Tm(e.pos,t)}function Sd(e,t){return Tm(t,e.end)}function SS(e){let t=q_(e)?ig(e.modifiers,L_):void 0;return t&&!Oa(t.end)?Sd(e,t.end):e}function rO(e){if(oo(e)||d_(e))return Sd(e,e.name.pos);let t=q_(e)?wi(e.modifiers):void 0;return t&&!Oa(t.end)?Sd(e,t.end):SS(e)}function nO(e){return e.pos===e.end}function iO(e,t){return Tm(e,e+nr(t).length)}function aO(e,t){return xS(e,e,t)}function oO(e,t,r){return P_(f_(e,r,!1),f_(t,r,!1),r)}function sO(e,t,r){return P_(e.end,t.end,r)}function xS(e,t,r){return P_(f_(e,r,!1),t.end,r)}function _O(e,t,r){return P_(e.end,f_(t,r,!1),r)}function cO(e,t,r,a){let _=f_(t,r,a);return x_(r,e.end,_)}function lO(e,t,r){return x_(r,e.end,t.end)}function uO(e,t){return!P_(e.pos,e.end,t)}function P_(e,t,r){return x_(r,e,t)===0}function f_(e,t,r){return Oa(e.pos)?-1:Nt(t.text,e.pos,!1,r)}function pO(e,t,r,a){let _=Nt(r.text,e,!1,a),p=dO(_,t,r);return x_(r,p??t,_)}function fO(e,t,r,a){let _=Nt(r.text,e,!1,a);return x_(r,e,Math.min(t,_))}function dO(e,t=0,r){for(;e-- >t;)if(!Vi(r.text.charCodeAt(e)))return e}function mO(e){let t=Fl(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function hO(e){return $r(e.declarations,wS)}function wS(e){return ki(e)&&e.initializer!==void 0}function yO(e){return e.watch&&Qr(e,"watch")}function gO(e){e.close()}function CS(e){return e.flags&33554432?e.links.checkFlags:0}function bO(e,t=!1){if(e.valueDeclaration){let r=t&&e.declarations&&Yr(e.declarations,Qo)||e.flags&32768&&Yr(e.declarations,m_)||e.valueDeclaration,a=$d(r);return e.parent&&e.parent.flags&32?a:a&-29}if(CS(e)&6){let r=e.links.checkFlags,a=r&1024?8:r&256?4:16,_=r&2048?32:0;return a|_}return e.flags&4194304?36:0}function vO(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function TO(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function SO(e){return Do(e)===1}function xO(e){return Do(e)!==0}function Do(e){let{parent:t}=e;switch(t==null?void 0:t.kind){case 217:return Do(t);case 225:case 224:let{operator:r}=t;return r===46||r===47?2:0;case 226:let{left:a,operatorToken:_}=t;return a===e&&D_(_.kind)?_.kind===64?1:2:0;case 211:return t.name!==e?0:Do(t);case 303:{let p=Do(t.parent);return e===t.name?wO(p):p}case 304:return e===t.objectAssignmentInitializer?0:Do(t.parent);case 209:return Do(t);default:return 0}}function wO(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return N.assertNever(e)}}function ES(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(typeof e[r]=="object"){if(!ES(e[r],t[r]))return!1}else if(typeof e[r]!="function"&&e[r]!==t[r])return!1;return!0}function CO(e,t){e.forEach(t),e.clear()}function AS(e,t,r){let{onDeleteValue:a,onExistingValue:_}=r;e.forEach((p,d)=>{let h=t.get(d);h===void 0?(e.delete(d),a(p,d)):_&&_(p,h,d)})}function EO(e,t,r){AS(e,t,r);let{createNewValue:a}=r;t.forEach((_,p)=>{e.has(p)||e.set(p,a(p,_))})}function AO(e){if(e.flags&32){let t=kS(e);return!!t&&gr(t,256)}return!1}function kS(e){var t;return(t=e.declarations)==null?void 0:t.find(dn)}function Rf(e){return e.flags&138117121?e.objectFlags:0}function kO(e,t){return!!e4(e,r=>t(r)?!0:void 0)}function DO(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&x6(e.declarations[0])}function PO({moduleSpecifier:e}){return mn(e)?e.text:sm(e)}function DS(e){let t;return Bt(e,r=>{wl(r)&&(t=r)},r=>{for(let a=r.length-1;a>=0;a--)if(wl(r[a])){t=r[a];break}}),t}function IO(e,t,r=!0){return e.has(t)?!1:(e.set(t,r),!0)}function NO(e){return dn(e)||su(e)||Em(e)}function PS(e){return e>=182&&e<=205||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===233||e===319||e===320||e===321||e===322||e===323||e===324||e===325}function $o(e){return e.kind===211||e.kind===212}function OO(e){return e.kind===211?e.name:(N.assert(e.kind===212),e.argumentExpression)}function MO(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function LO(e){return e.kind===275||e.kind===279}function R2(e){for(;$o(e);)e=e.expression;return e}function JO(e,t){if($o(e.parent)&&yS(e))return r(e.parent);function r(a){if(a.kind===211){let _=t(a.name);if(_!==void 0)return _}else if(a.kind===212)if(Ee(a.argumentExpression)||Kn(a.argumentExpression)){let _=t(a.argumentExpression);if(_!==void 0)return _}else return;if($o(a.expression))return r(a.expression);if(Ee(a.expression))return t(a.expression)}}function RO(e,t){for(;;){switch(e.kind){case 225:e=e.operand;continue;case 226:e=e.left;continue;case 227:e=e.condition;continue;case 215:e=e.tag;continue;case 213:if(t)return e;case 234:case 212:case 211:case 235:case 360:case 238:e=e.expression;continue}return e}}function jO(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.isAssigned=void 0,this.links=void 0}function FO(e,t){this.flags=t,(N.isDebugging||xa)&&(this.checker=e)}function BO(e,t){this.flags=t,N.isDebugging&&(this.checker=e)}function Gh(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function UO(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function qO(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function zO(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(a=>a)}function WO(e){Z2.push(e),e(wt)}function IS(e){Object.assign(wt,e),yr(Z2,t=>t(wt))}function I_(e,t,r=0){return e.replace(/{(\d+)}/g,(a,_)=>""+N.checkDefined(t[+_+r]))}function NS(e){kl=e}function OS(e){!kl&&e&&(kl=e())}function N_(e){return kl&&kl[e.key]||e.message}function Ao(e,t,r,a){Yg(void 0,t,r);let _=N_(a);return arguments.length>4&&(_=I_(_,arguments,4)),{file:void 0,start:t,length:r,messageText:_,category:a.category,code:a.code,reportsUnnecessary:a.reportsUnnecessary,fileName:e}}function VO(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function MS(e,t){let r=t.fileName||"",a=t.text.length;N.assertEqual(e.fileName,r),N.assertLessThanOrEqual(e.start,a),N.assertLessThanOrEqual(e.start+e.length,a);let _={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){_.relatedInformation=[];for(let p of e.relatedInformation)VO(p)&&p.fileName===r?(N.assertLessThanOrEqual(p.start,a),N.assertLessThanOrEqual(p.start+p.length,a),_.relatedInformation.push(MS(p,t))):_.relatedInformation.push(p)}return _}function $a(e,t){let r=[];for(let a of e)r.push(MS(a,t));return r}function j2(e,t,r,a){Yg(e,t,r);let _=N_(a);return arguments.length>4&&(_=I_(_,arguments,4)),{file:e,start:t,length:r,messageText:_,category:a.category,code:a.code,reportsUnnecessary:a.reportsUnnecessary,reportsDeprecated:a.reportsDeprecated}}function HO(e,t){let r=N_(t);return arguments.length>2&&(r=I_(r,arguments,2)),r}function fl(e){let t=N_(e);return arguments.length>1&&(t=I_(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function GO(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}function tl(e,t){let r=N_(t);return arguments.length>2&&(r=I_(r,arguments,2)),{messageText:r,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function XO(e,t){let r=e;for(;r.next;)r=r.next[0];r.next=[t]}function zb(e){return e.file?e.file.path:void 0}function F2(e,t){return xd(e,t)||$O(e,t)||0}function xd(e,t){return Ci(zb(e),zb(t))||kr(e.start,t.start)||kr(e.length,t.length)||kr(e.code,t.code)||LS(e.messageText,t.messageText)||0}function $O(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?kr(e.relatedInformation.length,t.relatedInformation.length)||yr(e.relatedInformation,(r,a)=>{let _=t.relatedInformation[a];return F2(r,_)})||0:e.relatedInformation?-1:1}function LS(e,t){if(typeof e=="string"&&typeof t=="string")return Ci(e,t);if(typeof e=="string")return-1;if(typeof t=="string")return 1;let r=Ci(e.messageText,t.messageText);if(r)return r;if(!e.next&&!t.next)return 0;if(!e.next)return-1;if(!t.next)return 1;let a=Math.min(e.next.length,t.next.length);for(let _=0;_t.next.length?1:0}function R0(e){return e===4||e===2||e===1||e===6?1:0}function JS(e){if(e.transformFlags&2)return w3(e)||dl(e)?e:Bt(e,JS)}function QO(e){return e.isDeclarationFile?void 0:JS(e)}function YO(e){return(e.impliedNodeFormat===99||ei(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function RS(e){switch(jS(e)){case 3:return _=>{_.externalModuleIndicator=ml(_)||!_.isDeclarationFile||void 0};case 1:return _=>{_.externalModuleIndicator=ml(_)};case 2:let t=[ml];(e.jsx===4||e.jsx===5)&&t.push(QO),t.push(YO);let r=ug(...t);return _=>void(_.externalModuleIndicator=r(_))}}function Ql(e){return e.target??(e.module===100&&9||e.module===199&&99||1)}function ni(e){return typeof e.module=="number"?e.module:Ql(e)>=2?5:1}function KO(e){return e>=5&&e<=99}function O_(e){let t=e.moduleResolution;if(t===void 0)switch(ni(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;default:t=1;break}return t}function jS(e){return e.moduleDetection||(ni(e)===100||ni(e)===199?3:2)}function ZO(e){switch(ni(e)){case 1:case 2:case 5:case 6:case 7:case 99:case 100:case 199:return!0;default:return!1}}function B2(e){return!!(e.isolatedModules||e.verbatimModuleSyntax)}function eM(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function tM(e){return e.allowUnreachableCode===!1}function rM(e){return e.allowUnusedLabels===!1}function nM(e){return!!(z2(e)&&e.declarationMap)}function U2(e){if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(ni(e)){case 100:case 199:return!0}}function iM(e){return e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:U2(e)||ni(e)===4||O_(e)===100}function q2(e){return e>=3&&e<=99||e===100}function aM(e){return!!e.noDtsResolution||O_(e)!==100}function oM(e){let t=O_(e);if(!q2(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}function sM(e){let t=O_(e);if(!q2(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}function FS(e){return e.resolveJsonModule!==void 0?e.resolveJsonModule:O_(e)===100}function z2(e){return!!(e.declaration||e.composite)}function _M(e){return!!(e.preserveConstEnums||B2(e))}function cM(e){return!!(e.incremental||e.composite)}function W2(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function BS(e){return e.allowJs===void 0?!!e.checkJs:e.allowJs}function lM(e){return e.useDefineForClassFields===void 0?Ql(e)>=9:e.useDefineForClassFields}function uM(e){return e.useDefineForClassFields!==!1&&Ql(e)>=9}function pM(e,t){return E_(t,e,semanticDiagnosticsOptionDeclarations)}function fM(e,t){return E_(t,e,affectsEmitOptionDeclarations)}function dM(e,t){return E_(t,e,affectsDeclarationPathOptionDeclarations)}function j0(e,t){return t.strictFlag?W2(e,t.name):e[t.name]}function mM(e){let t=e.jsx;return t===2||t===4||t===5}function hM(e,t){let r=t==null?void 0:t.pragmas.get("jsximportsource"),a=zt(r)?r[r.length-1]:r;return e.jsx===4||e.jsx===5||e.jsxImportSource||a?(a==null?void 0:a.arguments.factory)||e.jsxImportSource||"react":void 0}function yM(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function gM(e){let t=!1;for(let r=0;r_,getSymlinkedDirectories:()=>r,getSymlinkedDirectoriesByRealpath:()=>a,setSymlinkedFile:(h,l)=>(_||(_=new Map)).set(h,l),setSymlinkedDirectory:(h,l)=>{let v=xi(h,e,t);nx(v)||(v=zo(v),l!==!1&&!(r!=null&&r.has(v))&&(a||(a=jd())).add(zo(l.realPath),h),(r||(r=new Map)).set(v,l))},setSymlinksFromResolutions(h,l){var v,y;N.assert(!p),p=!0;for(let C of h)(v=C.resolvedModules)==null||v.forEach(S=>d(this,S.resolvedModule)),(y=C.resolvedTypeReferenceDirectiveNames)==null||y.forEach(S=>d(this,S.resolvedTypeReferenceDirective));l.forEach(C=>d(this,C.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>p};function d(h,l){if(!l||!l.originalPath||!l.resolvedFileName)return;let{resolvedFileName:v,originalPath:y}=l;h.setSymlinkedFile(xi(y,e,t),v);let[C,S]=vM(v,y,e,t)||$e;C&&S&&h.setSymlinkedDirectory(S,{real:C,realPath:xi(C,e,t)})}}function vM(e,t,r,a){let _=Ai(Pa(e,r)),p=Ai(Pa(t,r)),d=!1;for(;_.length>=2&&p.length>=2&&!Wb(_[_.length-2],a)&&!Wb(p[p.length-2],a)&&a(_[_.length-1])===a(p[p.length-1]);)_.pop(),p.pop(),d=!0;return d?[Uo(_),Uo(p)]:void 0}function Wb(e,t){return e!==void 0&&(t(e)==="node_modules"||Fr(e,"@"))}function TM(e){return dg(e.charCodeAt(0))?e.slice(1):void 0}function SM(e,t,r){let a=Bv(e,t,r);return a===void 0?void 0:TM(a)}function xM(e){return e.replace(Ed,wM)}function wM(e){return"\\"+e}function jf(e,t,r){let a=V2(e,t,r);return!a||!a.length?void 0:`^(${a.map(d=>`(${d})`).join("|")})${r==="exclude"?"($|/)":"$"}`}function V2(e,t,r){if(!(e===void 0||e.length===0))return Bo(e,a=>a&&qS(a,t,r,e6[r]))}function US(e){return!/[.*?]/.test(e)}function CM(e,t,r){let a=e&&qS(e,t,r,e6[r]);return a&&`^(${a})${r==="exclude"?"($|/)":"$"}`}function qS(e,t,r,{singleAsteriskRegexFragment:a,doubleAsteriskRegexFragment:_,replaceWildcardCharacter:p}){let d="",h=!1,l=Wd(e,t),v=ka(l);if(r!=="exclude"&&v==="**")return;l[0]=S_(l[0]),US(v)&&l.push("**","*");let y=0;for(let C of l){if(C==="**")d+=_;else if(r==="directories"&&(d+="(",y++),h&&(d+=fn),r!=="exclude"){let S="";C.charCodeAt(0)===42?(S+="([^./]"+a+")?",C=C.substr(1)):C.charCodeAt(0)===63&&(S+="[^./]",C=C.substr(1)),S+=C.replace(Ed,p),S!==C&&(d+=Bf),d+=S}else d+=C.replace(Ed,p);h=!0}for(;y>0;)d+=")?",y--;return d}function Xh(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function zS(e,t,r,a,_){e=pn(e),_=pn(_);let p=hr(_,e);return{includeFilePatterns:Aa(V2(r,p,"files"),d=>`^${d}$`),includeFilePattern:jf(r,p,"files"),includeDirectoryPattern:jf(r,p,"directories"),excludePattern:jf(t,p,"exclude"),basePaths:AM(e,r,a)}}function Ff(e,t){return new RegExp(e,t?"":"i")}function EM(e,t,r,a,_,p,d,h,l){e=pn(e),p=pn(p);let v=zS(e,r,a,_,p),y=v.includeFilePatterns&&v.includeFilePatterns.map(ue=>Ff(ue,_)),C=v.includeDirectoryPattern&&Ff(v.includeDirectoryPattern,_),S=v.excludePattern&&Ff(v.excludePattern,_),k=y?y.map(()=>[]):[[]],L=new Map,G=Bd(_);for(let ue of v.basePaths)K(ue,hr(p,ue),d);return o_(k);function K(ue,Y,B){let ae=G(l(Y));if(L.has(ae))return;L.set(ae,!0);let{files:Ce,directories:Ze}=h(ue);for(let qe of Gf(Ce,Ci)){let rt=hr(ue,qe),it=hr(Y,qe);if(!(t&&!ei(rt,t))&&!(S&&S.test(it)))if(!y)k[0].push(rt);else{let Ir=_l(y,ar=>ar.test(it));Ir!==-1&&k[Ir].push(rt)}}if(!(B!==void 0&&(B--,B===0)))for(let qe of Gf(Ze,Ci)){let rt=hr(ue,qe),it=hr(Y,qe);(!C||C.test(it))&&(!S||!S.test(it))&&K(rt,it,B)}}}function AM(e,t,r){let a=[e];if(t){let _=[];for(let p of t){let d=v_(p)?p:pn(hr(e,p));_.push(kM(d))}_.sort(_g(!r));for(let p of _)so(a,d=>!Kv(d,p,e,!r))&&a.push(p)}return a}function kM(e){let t=vv(e,Dx);return t<0?Qv(e)?S_($i(e)):e:e.substring(0,e.lastIndexOf(fn,t))}function WS(e,t){return t||VS(e)||3}function VS(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}function HS(e,t){let r=e&&BS(e);if(!t||t.length===0)return r?Dl:Ro;let a=r?Dl:Ro,_=o_(a);return[...a,...Za(t,d=>d.scriptKind===7||r&&DM(d.scriptKind)&&_.indexOf(d.extension)===-1?[d.extension]:void 0)]}function GS(e,t){return!e||!FS(e)?t:t===Dl?Nx:t===Ro?Px:[...t,[".json"]]}function DM(e){return e===1||e===2}function H2(e){return mt(r6,t=>La(e,t))}function G2(e){return mt(t6,t=>La(e,t))}function XS({imports:e},t=ug(H2,G2)){return ng(e,({text:r})=>rs(r)&&!ei(r,wm)?t(r):void 0)||!1}function PM(e,t,r,a){if(e==="js"||t===99)return shouldAllowImportingTsExtension(r)&&_()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!shouldAllowImportingTsExtension(r))return XS(a)?2:0;return _();function _(){let p=!1,d=a.imports.length?a.imports.map(h=>h.text):c2(a)?IM(a).map(h=>h.arguments[0].text):$e;for(let h of d)if(rs(h)){if(ei(h,wm))continue;if(G2(h))return 3;H2(h)&&(p=!0)}return p?2:0}}function IM(e){let t=0,r;for(let a of e.statements){if(t>3)break;oT(a)?r=y_(r,a.declarationList.declarations.map(_=>_.initializer)):ou(a)&&Wl(a.expression,!0)?r=xt(r,a.expression):t++}return r||$e}function NM(e,t,r){if(!e)return!1;let a=HS(t,r);for(let _ of o_(GS(t,a)))if(La(e,_))return!0;return!1}function Vb(e){let t=e.match(/\//g);return t?t.length:0}function OM(e,t){return kr(Vb(e),Vb(t))}function Al(e){for(let t of Cm){let r=$S(e,t);if(r!==void 0)return r}return e}function $S(e,t){return La(e,t)?QS(e,t):void 0}function QS(e,t){return e.substring(0,e.length-t.length)}function MM(e,t){return Yv(e,t,Cm,!1)}function YS(e){let t=e.indexOf("*");return t===-1?e:e.indexOf("*",t+1)!==-1?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function LM(e){return Za(sg(e),t=>YS(t))}function Oa(e){return!(e>=0)}function KS(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||Fr(e,".d.")&&ts(e,".ts")}function JM(e){return KS(e)||e===".json"}function rl(e){let t=X2(e);return t!==void 0?t:N.fail(`File ${e} has unknown extension.`)}function RM(e){return X2(e)!==void 0}function X2(e){return Yr(Cm,t=>La(e,t))}function jM(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function FM(e,t){let r=[];for(let a of e){if(a===t)return t;b_(a)||r.push(a)}return Fv(r,a=>a,t)}function BM(e,t){let r=e.indexOf(t);return N.assert(r!==-1),e.slice(r)}function nl(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),N.assert(e.relatedInformation!==$e,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function UM(e,t){N.assert(e.length!==0);let r=t(e[0]),a=r;for(let _=1;_a&&(a=p)}return{min:r,max:a}}function qM(e){return{pos:Go(e),end:e.end}}function zM(e,t){let r=t.pos-1,a=Math.min(e.text.length,Nt(e.text,t.end)+1);return{pos:r,end:a}}function WM(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)}function $2(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&Dv(e,t,$2)}function Sm(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:let v=e.length-1,y=0;for(;e.charCodeAt(y)===48;)y++;return e.slice(y,v)||"0"}let r=2,a=e.length-1,_=(a-r)*t,p=new Uint16Array((_>>>4)+(_&15?1:0));for(let v=a-1,y=0;v>=r;v--,y+=t){let C=y>>>4,S=e.charCodeAt(v),L=(S<=57?S-48:10+S-(S<=70?65:97))<<(y&15);p[C]|=L;let G=L>>>16;G&&(p[C+1]|=G)}let d="",h=p.length-1,l=!0;for(;l;){let v=0;l=!1;for(let y=h;y>=0;y--){let C=v<<16|p[y],S=C/10|0;p[y]=S,v=C-S*10,S&&!l&&(h=y,l=!0)}d=v+d}return d}function Q2({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function VM(e){if(ex(e,!1))return ZS(e)}function ZS(e){let t=e.startsWith("-"),r=Sm(`${t?e.slice(1):e}n`);return{negative:t,base10Value:r}}function ex(e,t){if(e==="")return!1;let r=ns(99,!1),a=!0;r.setOnError(()=>a=!1),r.setText(e+"n");let _=r.scan(),p=_===41;p&&(_=r.scan());let d=r.getTokenFlags();return a&&_===10&&r.getTokenEnd()===e.length+1&&!(d&512)&&(!t||e===Q2({negative:p,base10Value:Sm(r.getTokenValue())}))}function HM(e){return!!(e.flags&33554432)||tT(e)||$M(e)||XM(e)||!(_2(e)||GM(e))}function GM(e){return Ee(e)&&_u(e.parent)&&e.parent.name===e}function XM(e){for(;e.kind===80||e.kind===211;)e=e.parent;if(e.kind!==167)return!1;if(gr(e.parent,256))return!0;let t=e.parent.parent.kind;return t===264||t===187}function $M(e){if(e.kind!==80)return!1;let t=Kr(e.parent,r=>{switch(r.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}});return(t==null?void 0:t.token)===119||(t==null?void 0:t.parent.kind)===264}function QM(e){return R_(e)&&Ee(e.typeName)}function YM(e,t=_o){if(e.length<2)return!0;let r=e[0];for(let a=1,_=e.length;a<_;a++){let p=e[a];if(!t(r,p))return!1}return!0}function wd(e,t){return e.pos=t,e}function tx(e,t){return e.end=t,e}function Ya(e,t,r){return tx(wd(e,t),r)}function Cd(e,t,r){return Ya(e,t,t+r)}function KM(e,t){return e&&(e.flags=t),e}function Xi(e,t){return e&&t&&(e.parent=t),e}function a_(e,t){if(e)for(let r of e)Xi(r,t);return e}function rx(e,t){if(!e)return e;return eg(e,zg(e)?r:_),e;function r(p,d){if(t&&p.parent===d)return"skip";Xi(p,d)}function a(p){if(Wi(p))for(let d of p.jsDoc)r(d,p),eg(d,r)}function _(p,d){return r(p,d)||a(p)}}function ZM(e){return!Pm(e)}function eL(e){return iu(e)&&so(e.elements,ZM)}function tL(e){for(N.assertIsDefined(e.parent);;){let t=e.parent;if(is(t)){e=t;continue}if(ou(t)||h6(t)||l8(t)&&(t.initializer===e||t.incrementor===e))return!0;if(F_(t)){if(e!==ka(t.elements))return!0;e=t;continue}if(Ct(t)&&t.operatorToken.kind===28){if(e===t.left)return!0;e=t;continue}return!1}}function nx(e){return mt(ignoredPaths,t=>eo(e,t))}function rL(e){if(!e.parent)return;switch(e.kind){case 168:let{parent:r}=e;return r.kind===195?void 0:r.typeParameters;case 169:return e.parent.parameters;case 204:return e.parent.templateSpans;case 239:return e.parent.templateSpans;case 170:{let{parent:a}=e;return q8(a)?a.modifiers:void 0}case 298:return e.parent.heritageClauses}let{parent:t}=e;if(Wg(e))return P6(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return jg(e)?t.members:void 0;case 192:case 193:return t.types;case 189:case 209:case 361:case 275:case 279:return t.elements;case 210:case 292:return t.properties;case 213:case 214:return g0(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return x3(e)?t.children:void 0;case 286:case 285:return g0(e)?t.typeArguments:void 0;case 241:case 296:case 297:case 268:return t.statements;case 269:return t.clauses;case 263:case 231:return no(e)?t.members:void 0;case 266:return g8(e)?t.members:void 0;case 312:return t.statements}}function nL(e){if(!e.typeParameters){if(mt(e.parameters,t=>!I2(t)))return!0;if(e.kind!==219){let t=g_(e.parameters);if(!(t&&Xl(t)))return!0}}return!1}function iL(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function ix(e){return e.kind===260&&e.parent.kind===299}function aL(e){let t=e.valueDeclaration&&hm(e.valueDeclaration);return!!t&&(Ma(t)||ix(t))}function oL(e){return e.kind===218||e.kind===219}function sL(e){return e.replace(/\$/gm,()=>"\\$")}function ax(e){return(+e).toString()===e}function _L(e,t,r,a){return Cg(e,t)?Ln.createIdentifier(e):!a&&ax(e)&&+e>=0?Ln.createNumericLiteral(+e):Ln.createStringLiteral(e,!!r)}function ox(e){return!!(e.flags&262144&&e.isThisType)}function cL(e){let t=0,r=0,a=0,_=0,p;(v=>{v[v.BeforeNodeModules=0]="BeforeNodeModules",v[v.NodeModules=1]="NodeModules",v[v.Scope=2]="Scope",v[v.PackageContent=3]="PackageContent"})(p||(p={}));let d=0,h=0,l=0;for(;h>=0;)switch(d=h,h=e.indexOf("/",d+1),l){case 0:e.indexOf(nodeModulesPathPart,d)===d&&(t=d,r=h,l=1);break;case 1:case 2:l===1&&e.charAt(d+1)==="@"?l=2:(a=h,l=3);break;case 3:e.indexOf(nodeModulesPathPart,d)===d?l=1:l=3;break}return _=d,l>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:a,fileNameIndex:_}:void 0}function lL(e){var t;return e.kind===348?(t=e.typeExpression)==null?void 0:t.type:e.type}function sx(e){switch(e.kind){case 168:case 263:case 264:case 265:case 266:case 353:case 345:case 347:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}function uL(e){return S6(e)||as(e)||os(e)||Yo(e)||su(e)||sx(e)||Yi(e)&&!Gg(e)&&!cm(e)}function _x(e){if(!Ig(e))return!1;let{isBracketed:t,typeExpression:r}=e;return t||!!r&&r.type.kind===323}function pL(e,t){if(e.length===0)return!1;let r=e.charCodeAt(0);return r===35?e.length>1&&un(e.charCodeAt(1),t):un(r,t)}function cx(e){var t;return((t=getSnippetElement(e))==null?void 0:t.kind)===0}function lx(e){return Wt(e)&&(e.type&&e.type.kind===323||Kd(e).some(({isBracketed:t,typeExpression:r})=>t||!!r&&r.type.kind===323))}function fL(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||lx(e);case 355:case 348:return _x(e);default:return!1}}function dL(e){let t=e.kind;return(t===211||t===212)&&jo(e.expression)}function mL(e){return Wt(e)&&is(e)&&Wi(e)&&!!kg(e)}function hL(e){return N.checkDefined(ux(e))}function ux(e){let t=kg(e);return t&&t.typeExpression&&t.typeExpression.type}function yL(e){return Ee(e)?e.escapedText:Yl(e)}function gL(e){return Ee(e)?Ot(e):Kl(e)}function bL(e){let t=e.kind;return t===80||t===295}function Yl(e){return`${e.namespace.escapedText}:${Ot(e.name)}`}function Kl(e){return`${Ot(e.namespace)}:${Ot(e.name)}`}function vL(e){return Ee(e)?Ot(e):Kl(e)}function TL(e){return!!(e.flags&8576)}function SL(e){return e.flags&8192?e.escapedName:e.flags&384?Mn(""+e.value):N.fail()}var px,xm,fx,dx,Zs,F0,Y2,mx,hx,K2,yx,gx,B0,U0,q0,z0,bx,vx,Tx,Sx,xx,W0,wx,Cx,Ex,Po,qi,Ax,kx,wt,Z2,kl,Ed,Dx,V0,Bf,$h,Qh,Yh,e6,Ro,t6,Px,Ix,H0,r6,Dl,Nx,n6,Ox,wm,G0,Cm,Mx,xL=Vt({"src/compiler/utilities.ts"(){"use strict";Dr(),px=[],xm="tslib",fx=160,dx=1e6,Zs=Uk(),F0=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(F0||{}),Y2=/^(\/\/\/\s*/,mx=/^(\/\/\/\s*/,hx=/^(\/\/\/\s*/,K2=/^(\/\/\/\s*/,yx=/^\/\/\/\s*/,gx=/^(\/\/\/\s*/,B0=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(B0||{}),U0=(e=>(e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",e))(U0||{}),q0=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(q0||{}),z0=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(z0||{}),bx=/\$\{/g,vx=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Tx=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Sx=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,xx=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"})),W0=/[^\u0000-\u007F]/g,wx=/["\u0000-\u001f\u2028\u2029\u0085]/g,Cx=/['\u0000-\u001f\u2028\u2029\u0085]/g,Ex=new Map(Object.entries({'"':""","'":"'"})),Po=[""," "],qi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Ax=`\r +`,kx=` +`,wt={getNodeConstructor:()=>Gh,getTokenConstructor:()=>UO,getIdentifierConstructor:()=>qO,getPrivateIdentifierConstructor:()=>Gh,getSourceFileConstructor:()=>Gh,getSymbolConstructor:()=>jO,getTypeConstructor:()=>FO,getSignatureConstructor:()=>BO,getSourceMapSourceConstructor:()=>zO},Z2=[],Ed=/[^\w\s/]/g,Dx=[42,63],V0=["node_modules","bower_components","jspm_packages"],Bf=`(?!(${V0.join("|")})(/|$))`,$h={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${Bf}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Xh(e,$h.singleAsteriskRegexFragment)},Qh={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${Bf}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Xh(e,Qh.singleAsteriskRegexFragment)},Yh={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>Xh(e,Yh.singleAsteriskRegexFragment)},e6={files:$h,directories:Qh,exclude:Yh},Ro=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],t6=o_(Ro),Px=[...Ro,[".json"]],Ix=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],H0=[[".js",".jsx"],[".mjs"],[".cjs"]],r6=o_(H0),Dl=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],Nx=[...Dl,[".json"]],n6=[".d.ts",".d.cts",".d.mts"],Ox=[".ts",".cts",".mts",".tsx"],wm=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],G0=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(G0||{}),Cm=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],Mx={files:$e,directories:$e}}});function Lx(){let e,t,r,a,_;return{createBaseSourceFileNode:p,createBaseIdentifierNode:d,createBasePrivateIdentifierNode:h,createBaseTokenNode:l,createBaseNode:v};function p(y){return new(_||(_=wt.getSourceFileConstructor()))(y,-1,-1)}function d(y){return new(r||(r=wt.getIdentifierConstructor()))(y,-1,-1)}function h(y){return new(a||(a=wt.getPrivateIdentifierConstructor()))(y,-1,-1)}function l(y){return new(t||(t=wt.getTokenConstructor()))(y,-1,-1)}function v(y){return new(e||(e=wt.getNodeConstructor()))(y,-1,-1)}}var wL=Vt({"src/compiler/factory/baseNodeFactory.ts"(){"use strict";Dr()}}),i6,CL=Vt({"src/compiler/factory/parenthesizerRules.ts"(){"use strict";Dr(),i6={getParenthesizeLeftSideOfBinaryForOperator:e=>bt,getParenthesizeRightSideOfBinaryForOperator:e=>bt,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:bt,parenthesizeConditionOfConditionalExpression:bt,parenthesizeBranchOfConditionalExpression:bt,parenthesizeExpressionOfExportDefault:bt,parenthesizeExpressionOfNew:e=>gi(e,Lo),parenthesizeLeftSideOfAccess:e=>gi(e,Lo),parenthesizeOperandOfPostfixUnary:e=>gi(e,Lo),parenthesizeOperandOfPrefixUnary:e=>gi(e,y3),parenthesizeExpressionsOfCommaDelimitedList:e=>gi(e,va),parenthesizeExpressionForDisallowedComma:bt,parenthesizeExpressionOfExpressionStatement:bt,parenthesizeConciseBodyOfArrowFunction:bt,parenthesizeCheckTypeOfConditionalType:bt,parenthesizeExtendsTypeOfConditionalType:bt,parenthesizeConstituentTypesOfUnionType:e=>gi(e,va),parenthesizeConstituentTypeOfUnionType:bt,parenthesizeConstituentTypesOfIntersectionType:e=>gi(e,va),parenthesizeConstituentTypeOfIntersectionType:bt,parenthesizeOperandOfTypeOperator:bt,parenthesizeOperandOfReadonlyTypeOperator:bt,parenthesizeNonArrayTypeOfPostfixType:bt,parenthesizeElementTypesOfTupleType:e=>gi(e,va),parenthesizeElementTypeOfTupleType:bt,parenthesizeTypeOfOptionalType:bt,parenthesizeTypeArguments:e=>e&&gi(e,va),parenthesizeLeadingTypeArgument:bt}}}),EL=()=>{},Jx=()=>new Proxy({},{get:()=>()=>{}});function AL(e){a6.push(e)}function Ad(e,t){let r=e&8?kL:DL,a=ry(()=>e&1?i6:createParenthesizerRules(ue)),_=ry(()=>e&2?nullNodeConverters:Jx(ue)),p=Nn(n=>(o,s)=>nc(o,n,s)),d=Nn(n=>o=>qa(n,o)),h=Nn(n=>o=>Ts(o,n)),l=Nn(n=>()=>B1(n)),v=Nn(n=>o=>Nc(n,o)),y=Nn(n=>(o,s)=>U1(n,o,s)),C=Nn(n=>(o,s)=>Ic(n,o,s)),S=Nn(n=>(o,s)=>Ep(n,o,s)),k=Nn(n=>(o,s)=>jp(n,o,s)),L=Nn(n=>(o,s,u)=>eh(n,o,s,u)),G=Nn(n=>(o,s,u)=>Fp(n,o,s,u)),K=Nn(n=>(o,s,u,g)=>th(n,o,s,u,g)),ue={get parenthesizer(){return a()},get converters(){return _()},baseFactory:t,flags:e,createNodeArray:Y,createNumericLiteral:Ze,createBigIntLiteral:qe,createStringLiteral:it,createStringLiteralFromNode:Ir,createRegularExpressionLiteral:ar,createLiteralLikeNode:ci,createIdentifier:Ge,createTempVariable:Gt,createLoopVariable:Ur,createUniqueName:Xt,getGeneratedNameForNode:Tn,createPrivateIdentifier:sr,createUniquePrivateName:St,getGeneratedPrivateNameForNode:xn,createToken:vt,createSuper:ct,createThis:Ut,createNull:fr,createTrue:ht,createFalse:wn,createModifier:Tt,createModifiersFromModifierFlags:Or,createQualifiedName:pt,updateQualifiedName:Mr,createComputedPropertyName:at,updateComputedPropertyName:er,createTypeParameterDeclaration:Qt,updateTypeParameterDeclaration:tn,createParameterDeclaration:Bn,updateParameterDeclaration:Un,createDecorator:rn,updateDecorator:nn,createPropertySignature:Di,updatePropertySignature:qn,createPropertyDeclaration:q,updatePropertyDeclaration:oe,createMethodSignature:ge,updateMethodSignature:Se,createMethodDeclaration:nt,updateMethodDeclaration:z,createConstructorDeclaration:Le,updateConstructorDeclaration:lt,createGetAccessorDeclaration:jt,updateGetAccessorDeclaration:qr,createSetAccessorDeclaration:Cn,updateSetAccessorDeclaration:zn,createCallSignature:ia,updateCallSignature:Wn,createConstructSignature:En,updateConstructSignature:Ii,createIndexSignature:aa,updateIndexSignature:Vn,createClassStaticBlockDeclaration:ee,updateClassStaticBlockDeclaration:xe,createTemplateLiteralTypeSpan:Sr,updateTemplateLiteralTypeSpan:Je,createKeywordTypeNode:oa,createTypePredicateNode:Mt,updateTypePredicateNode:Lr,createTypeReferenceNode:j,updateTypeReferenceNode:T,createFunctionTypeNode:x,updateFunctionTypeNode:f,createConstructorTypeNode:Q,updateConstructorTypeNode:be,createTypeQueryNode:we,updateTypeQueryNode:et,createTypeLiteralNode:Ye,updateTypeLiteralNode:Ke,createArrayTypeNode:It,updateArrayTypeNode:qt,createTupleTypeNode:_r,updateTupleTypeNode:Te,createNamedTupleMember:ft,updateNamedTupleMember:An,createOptionalTypeNode:Et,updateOptionalTypeNode:H,createRestTypeNode:Fa,updateRestTypeNode:Ie,createUnionTypeNode:an,updateUnionTypeNode:Ba,createIntersectionTypeNode:kn,updateIntersectionTypeNode:je,createConditionalTypeNode:dt,updateConditionalTypeNode:li,createInferTypeNode:Hn,updateInferTypeNode:e1,createImportTypeNode:ui,updateImportTypeNode:fs,createParenthesizedType:xr,updateParenthesizedType:Ft,createThisTypeNode:M,createTypeOperatorNode:Jr,updateTypeOperatorNode:sa,createIndexedAccessTypeNode:Ni,updateIndexedAccessTypeNode:G_,createMappedTypeNode:Lt,updateMappedTypeNode:Yt,createLiteralTypeNode:Oi,updateLiteralTypeNode:r1,createTemplateLiteralType:dr,updateTemplateLiteralType:t1,createObjectBindingPattern:Tu,updateObjectBindingPattern:Ua,createArrayBindingPattern:Su,updateArrayBindingPattern:X_,createBindingElement:_a,updateBindingElement:xu,createArrayLiteralExpression:$_,updateArrayLiteralExpression:wu,createObjectLiteralExpression:ds,updateObjectLiteralExpression:n1,createPropertyAccessExpression:e&4?(n,o)=>setEmitFlags(Mi(n,o),262144):Mi,updatePropertyAccessExpression:Q_,createPropertyAccessChain:e&4?(n,o,s)=>setEmitFlags(hs(n,o,s),262144):hs,updatePropertyAccessChain:ys,createElementAccessExpression:Y_,updateElementAccessExpression:Eu,createElementAccessChain:Au,updateElementAccessChain:ku,createCallExpression:fo,updateCallExpression:i1,createCallChain:zr,updateCallChain:gs,createNewExpression:bs,updateNewExpression:Du,createTaggedTemplateExpression:Pu,updateTaggedTemplateExpression:a1,createTypeAssertion:Iu,updateTypeAssertion:Nu,createParenthesizedExpression:K_,updateParenthesizedExpression:Ou,createFunctionExpression:Z_,updateFunctionExpression:Mu,createArrowFunction:ec,updateArrowFunction:tc,createDeleteExpression:Lu,updateDeleteExpression:Wr,createTypeOfExpression:vs,updateTypeOfExpression:pi,createVoidExpression:rc,updateVoidExpression:ca,createAwaitExpression:la,updateAwaitExpression:o1,createPrefixUnaryExpression:qa,updatePrefixUnaryExpression:s1,createPostfixUnaryExpression:Ts,updatePostfixUnaryExpression:_1,createBinaryExpression:nc,updateBinaryExpression:Ru,createConditionalExpression:ju,updateConditionalExpression:fi,createTemplateExpression:ic,updateTemplateExpression:c1,createTemplateHead:oc,createTemplateMiddle:l1,createTemplateTail:Bu,createNoSubstitutionTemplateLiteral:u1,createTemplateLiteralLikeNode:Li,createYieldExpression:Uu,updateYieldExpression:p1,createSpreadElement:qu,updateSpreadElement:f1,createClassExpression:xs,updateClassExpression:sc,createOmittedExpression:d1,createExpressionWithTypeArguments:Vr,updateExpressionWithTypeArguments:_c,createAsExpression:zu,updateAsExpression:Wu,createNonNullExpression:cc,updateNonNullExpression:Vu,createSatisfiesExpression:lc,updateSatisfiesExpression:Dn,createNonNullChain:Hu,updateNonNullChain:ws,createMetaProperty:Gn,updateMetaProperty:Cs,createTemplateSpan:uc,updateTemplateSpan:Gu,createSemicolonClassElement:m1,createBlock:ua,updateBlock:h1,createVariableStatement:Xu,updateVariableStatement:pc,createEmptyStatement:fc,createExpressionStatement:Es,updateExpressionStatement:$u,createIfStatement:Qu,updateIfStatement:Yu,createDoStatement:Ku,updateDoStatement:y1,createWhileStatement:Zu,updateWhileStatement:ep,createForStatement:dc,updateForStatement:g1,createForInStatement:tp,updateForInStatement:b1,createForOfStatement:rp,updateForOfStatement:v1,createContinueStatement:mc,updateContinueStatement:np,createBreakStatement:hc,updateBreakStatement:T1,createReturnStatement:ip,updateReturnStatement:ap,createWithStatement:yc,updateWithStatement:op,createSwitchStatement:pa,updateSwitchStatement:S1,createLabeledStatement:sp,updateLabeledStatement:_p,createThrowStatement:cp,updateThrowStatement:x1,createTryStatement:lp,updateTryStatement:up,createDebuggerStatement:pp,createVariableDeclaration:As,updateVariableDeclaration:w1,createVariableDeclarationList:gc,updateVariableDeclarationList:C1,createFunctionDeclaration:bc,updateFunctionDeclaration:fp,createClassDeclaration:vc,updateClassDeclaration:Tc,createInterfaceDeclaration:dp,updateInterfaceDeclaration:gt,createTypeAliasDeclaration:Ji,updateTypeAliasDeclaration:Sc,createEnumDeclaration:Ri,updateEnumDeclaration:mp,createModuleDeclaration:Jt,updateModuleDeclaration:ji,createModuleBlock:tr,updateModuleBlock:A1,createCaseBlock:hp,updateCaseBlock:k1,createNamespaceExportDeclaration:xc,updateNamespaceExportDeclaration:D1,createImportEqualsDeclaration:yp,updateImportEqualsDeclaration:gp,createImportDeclaration:bp,updateImportDeclaration:vp,createImportClause:wc,updateImportClause:Tp,createAssertClause:Sp,updateAssertClause:ks,createAssertEntry:Cc,updateAssertEntry:xp,createImportTypeAssertionContainer:Ec,updateImportTypeAssertionContainer:I1,createNamespaceImport:Ds,updateNamespaceImport:N1,createNamespaceExport:Ac,updateNamespaceExport:O1,createNamedImports:wp,updateNamedImports:M1,createImportSpecifier:Cp,updateImportSpecifier:L1,createExportAssignment:Ps,updateExportAssignment:Fi,createExportDeclaration:kc,updateExportDeclaration:Dc,createNamedExports:Ns,updateNamedExports:J1,createExportSpecifier:fa,updateExportSpecifier:R1,createMissingDeclaration:j1,createExternalModuleReference:Pc,updateExternalModuleReference:F1,get createJSDocAllType(){return l(319)},get createJSDocUnknownType(){return l(320)},get createJSDocNonNullableType(){return C(322)},get updateJSDocNonNullableType(){return S(322)},get createJSDocNullableType(){return C(321)},get updateJSDocNullableType(){return S(321)},get createJSDocOptionalType(){return v(323)},get updateJSDocOptionalType(){return y(323)},get createJSDocVariadicType(){return v(325)},get updateJSDocVariadicType(){return y(325)},get createJSDocNamepathType(){return v(326)},get updateJSDocNamepathType(){return y(326)},createJSDocFunctionType:Ap,updateJSDocFunctionType:q1,createJSDocTypeLiteral:kp,updateJSDocTypeLiteral:z1,createJSDocTypeExpression:Dp,updateJSDocTypeExpression:W1,createJSDocSignature:Pp,updateJSDocSignature:V1,createJSDocTemplateTag:ho,updateJSDocTemplateTag:Os,createJSDocTypedefTag:Ms,updateJSDocTypedefTag:Ip,createJSDocParameterTag:Oc,updateJSDocParameterTag:Mc,createJSDocPropertyTag:Np,updateJSDocPropertyTag:Op,createJSDocCallbackTag:Mp,updateJSDocCallbackTag:H1,createJSDocOverloadTag:Lc,updateJSDocOverloadTag:G1,createJSDocAugmentsTag:Jc,updateJSDocAugmentsTag:X1,createJSDocImplementsTag:Ls,updateJSDocImplementsTag:Z1,createJSDocSeeTag:Rc,updateJSDocSeeTag:yo,createJSDocNameReference:Lp,updateJSDocNameReference:Wa,createJSDocMemberName:go,updateJSDocMemberName:$1,createJSDocLink:Jp,updateJSDocLink:Q1,createJSDocLinkCode:Rp,updateJSDocLinkCode:Y1,createJSDocLinkPlain:jc,updateJSDocLinkPlain:K1,get createJSDocTypeTag(){return G(351)},get updateJSDocTypeTag(){return K(351)},get createJSDocReturnTag(){return G(349)},get updateJSDocReturnTag(){return K(349)},get createJSDocThisTag(){return G(350)},get updateJSDocThisTag(){return K(350)},get createJSDocAuthorTag(){return k(337)},get updateJSDocAuthorTag(){return L(337)},get createJSDocClassTag(){return k(339)},get updateJSDocClassTag(){return L(339)},get createJSDocPublicTag(){return k(340)},get updateJSDocPublicTag(){return L(340)},get createJSDocPrivateTag(){return k(341)},get updateJSDocPrivateTag(){return L(341)},get createJSDocProtectedTag(){return k(342)},get updateJSDocProtectedTag(){return L(342)},get createJSDocReadonlyTag(){return k(343)},get updateJSDocReadonlyTag(){return L(343)},get createJSDocOverrideTag(){return k(344)},get updateJSDocOverrideTag(){return L(344)},get createJSDocDeprecatedTag(){return k(338)},get updateJSDocDeprecatedTag(){return L(338)},get createJSDocThrowsTag(){return G(356)},get updateJSDocThrowsTag(){return K(356)},get createJSDocSatisfiesTag(){return G(357)},get updateJSDocSatisfiesTag(){return K(357)},createJSDocEnumTag:Up,updateJSDocEnumTag:nh,createJSDocUnknownTag:Bp,updateJSDocUnknownTag:rh,createJSDocText:qp,updateJSDocText:ih,createJSDocComment:Js,updateJSDocComment:ah,createJsxElement:Fc,updateJsxElement:zp,createJsxSelfClosingElement:Wp,updateJsxSelfClosingElement:Rs,createJsxOpeningElement:Bc,updateJsxOpeningElement:oh,createJsxClosingElement:Vp,updateJsxClosingElement:sh,createJsxFragment:js,createJsxText:Fs,updateJsxText:Gp,createJsxOpeningFragment:Uc,createJsxJsxClosingFragment:wr,updateJsxFragment:Hp,createJsxAttribute:qc,updateJsxAttribute:Xp,createJsxAttributes:$p,updateJsxAttributes:Qp,createJsxSpreadAttribute:Yp,updateJsxSpreadAttribute:_h,createJsxExpression:bo,updateJsxExpression:ch,createJsxNamespacedName:Kp,updateJsxNamespacedName:lh,createCaseClause:Zp,updateCaseClause:zc,createDefaultClause:Va,updateDefaultClause:uh,createHeritageClause:Bs,updateHeritageClause:ef,createCatchClause:tf,updateCatchClause:vo,createPropertyAssignment:Us,updatePropertyAssignment:ph,createShorthandPropertyAssignment:Wc,updateShorthandPropertyAssignment:rf,createSpreadAssignment:da,updateSpreadAssignment:dh,createEnumMember:af,updateEnumMember:mh,createSourceFile:hh,updateSourceFile:gh,createRedirectedSourceFile:Vc,createBundle:sf,updateBundle:_f,createUnparsedSource:Gc,createUnparsedPrologue:bh,createUnparsedPrepend:cf,createUnparsedTextLike:vh,createUnparsedSyntheticReference:Th,createInputFiles:qs,createSyntheticExpression:lf,createSyntaxList:Sh,createNotEmittedStatement:xh,createPartiallyEmittedExpression:uf,updatePartiallyEmittedExpression:pf,createCommaListExpression:zs,updateCommaListExpression:ff,createSyntheticReferenceExpression:$c,updateSyntheticReferenceExpression:Ch,cloneNode:Qc,get createComma(){return p(28)},get createAssignment(){return p(64)},get createLogicalOr(){return p(57)},get createLogicalAnd(){return p(56)},get createBitwiseOr(){return p(52)},get createBitwiseXor(){return p(53)},get createBitwiseAnd(){return p(51)},get createStrictEquality(){return p(37)},get createStrictInequality(){return p(38)},get createEquality(){return p(35)},get createInequality(){return p(36)},get createLessThan(){return p(30)},get createLessThanEquals(){return p(33)},get createGreaterThan(){return p(32)},get createGreaterThanEquals(){return p(34)},get createLeftShift(){return p(48)},get createRightShift(){return p(49)},get createUnsignedRightShift(){return p(50)},get createAdd(){return p(40)},get createSubtract(){return p(41)},get createMultiply(){return p(42)},get createDivide(){return p(44)},get createModulo(){return p(45)},get createExponent(){return p(43)},get createPrefixPlus(){return d(40)},get createPrefixMinus(){return d(41)},get createPrefixIncrement(){return d(46)},get createPrefixDecrement(){return d(47)},get createBitwiseNot(){return d(55)},get createLogicalNot(){return d(54)},get createPostfixIncrement(){return h(46)},get createPostfixDecrement(){return h(47)},createImmediatelyInvokedFunctionExpression:kh,createImmediatelyInvokedArrowFunction:Dh,createVoidZero:ma,createExportDefault:Ph,createExternalModuleExport:Ih,createTypeCheck:Nh,createIsNotTypeCheck:Oh,createMethodCall:ha,createGlobalMethodCall:Ha,createFunctionBindCall:Mh,createFunctionCallCall:Ws,createFunctionApplyCall:Lh,createArraySliceCall:Jh,createArrayConcatCall:Rh,createObjectDefinePropertyCall:hf,createObjectGetOwnPropertyDescriptorCall:jh,createReflectGetCall:Fh,createReflectSetCall:Bh,createPropertyDescriptor:yf,createCallBinding:A,createAssignmentTargetWrapper:R,inlineExpressions:te,getInternalName:ne,getLocalName:ie,getExportName:ve,getDeclarationName:He,getNamespaceMemberName:Be,getExternalModuleOrNamespaceExportName:Ue,restoreOuterExpressions:m,restoreEnclosingLabel:b,createUseStrictPrologue:di,copyPrologue:Rt,copyStandardPrologue:mi,copyCustomPrologue:hi,ensureUseStrict:Ui,liftToBlock:ga,mergeLexicalEnvironment:Uh,updateModifiers:bf,updateModifierLike:qh};return yr(a6,n=>n(ue)),ue;function Y(n,o){if(n===void 0||n===$e)n=[];else if(va(n)){if(o===void 0||n.hasTrailingComma===o)return n.transformFlags===void 0&&Hb(n),N.attachNodeArrayDebugInfo(n),n;let g=n.slice();return g.pos=n.pos,g.end=n.end,g.hasTrailingComma=o,g.transformFlags=n.transformFlags,N.attachNodeArrayDebugInfo(g),g}let s=n.length,u=s>=1&&s<=4?n.slice():n;return u.pos=-1,u.end=-1,u.hasTrailingComma=!!o,u.transformFlags=0,Hb(u),N.attachNodeArrayDebugInfo(u),u}function B(n){return t.createBaseNode(n)}function ae(n){let o=B(n);return o.symbol=void 0,o.localSymbol=void 0,o}function Ce(n,o){return n!==o&&(n.typeArguments=o.typeArguments),r(n,o)}function Ze(n,o=0){let s=ae(9);return s.text=typeof n=="number"?n+"":n,s.numericLiteralFlags=o,o&384&&(s.transformFlags|=1024),s}function qe(n){let o=Tr(10);return o.text=typeof n=="string"?n:Q2(n)+"n",o.transformFlags|=32,o}function rt(n,o){let s=ae(11);return s.text=n,s.singleQuote=o,s}function it(n,o,s){let u=rt(n,o);return u.hasExtendedUnicodeEscape=s,s&&(u.transformFlags|=1024),u}function Ir(n){let o=rt(bd(n),void 0);return o.textSourceNode=n,o}function ar(n){let o=Tr(14);return o.text=n,o}function ci(n,o){switch(n){case 9:return Ze(o,0);case 10:return qe(o);case 11:return it(o,void 0);case 12:return Fs(o,!1);case 13:return Fs(o,!0);case 14:return ar(o);case 15:return Li(n,o,void 0,0)}}function or(n){let o=t.createBaseIdentifierNode(80);return o.escapedText=n,o.jsDoc=void 0,o.flowNode=void 0,o.symbol=void 0,o}function Nr(n,o,s,u){let g=or(Mn(n));return setIdentifierAutoGenerate(g,{flags:o,id:il,prefix:s,suffix:u}),il++,g}function Ge(n,o,s){o===void 0&&n&&(o=Rl(n)),o===80&&(o=void 0);let u=or(Mn(n));return s&&(u.flags|=256),u.escapedText==="await"&&(u.transformFlags|=67108864),u.flags&256&&(u.transformFlags|=1024),u}function Gt(n,o,s,u){let g=1;o&&(g|=8);let I=Nr("",g,s,u);return n&&n(I),I}function Ur(n){let o=2;return n&&(o|=8),Nr("",o,void 0,void 0)}function Xt(n,o=0,s,u){return N.assert(!(o&7),"Argument out of range: flags"),N.assert((o&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),Nr(n,3|o,s,u)}function Tn(n,o=0,s,u){N.assert(!(o&7),"Argument out of range: flags");let g=n?ro(n)?Pd(!1,s,n,u,Ot):`generated@${getNodeId(n)}`:"";(s||u)&&(o|=16);let I=Nr(g,4|o,s,u);return I.original=n,I}function Sn(n){let o=t.createBasePrivateIdentifierNode(81);return o.escapedText=n,o.transformFlags|=16777216,o}function sr(n){return Fr(n,"#")||N.fail("First character of private identifier must be #: "+n),Sn(Mn(n))}function $t(n,o,s,u){let g=Sn(Mn(n));return setIdentifierAutoGenerate(g,{flags:o,id:il,prefix:s,suffix:u}),il++,g}function St(n,o,s){n&&!Fr(n,"#")&&N.fail("First character of private identifier must be #: "+n);let u=8|(n?3:1);return $t(n??"",u,o,s)}function xn(n,o,s){let u=ro(n)?Pd(!0,o,n,s,Ot):`#generated@${getNodeId(n)}`,I=$t(u,4|(o||s?16:0),o,s);return I.original=n,I}function Tr(n){return t.createBaseTokenNode(n)}function vt(n){N.assert(n>=0&&n<=165,"Invalid token"),N.assert(n<=15||n>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),N.assert(n<=9||n>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),N.assert(n!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let o=Tr(n),s=0;switch(n){case 134:s=384;break;case 160:s=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:s=1;break;case 108:s=134218752,o.flowNode=void 0;break;case 126:s=1024;break;case 129:s=16777216;break;case 110:s=16384,o.flowNode=void 0;break}return s&&(o.transformFlags|=s),o}function ct(){return vt(108)}function Ut(){return vt(110)}function fr(){return vt(106)}function ht(){return vt(112)}function wn(){return vt(97)}function Tt(n){return vt(n)}function Or(n){let o=[];return n&1&&o.push(Tt(95)),n&2&&o.push(Tt(138)),n&1024&&o.push(Tt(90)),n&2048&&o.push(Tt(87)),n&4&&o.push(Tt(125)),n&8&&o.push(Tt(123)),n&16&&o.push(Tt(124)),n&256&&o.push(Tt(128)),n&32&&o.push(Tt(126)),n&16384&&o.push(Tt(164)),n&64&&o.push(Tt(148)),n&128&&o.push(Tt(129)),n&512&&o.push(Tt(134)),n&32768&&o.push(Tt(103)),n&65536&&o.push(Tt(147)),o.length?o:void 0}function pt(n,o){let s=B(166);return s.left=n,s.right=Xe(o),s.transformFlags|=V(s.left)|e_(s.right),s.flowNode=void 0,s}function Mr(n,o,s){return n.left!==o||n.right!==s?r(pt(o,s),n):n}function at(n){let o=B(167);return o.expression=a().parenthesizeExpressionOfComputedPropertyName(n),o.transformFlags|=V(o.expression)|1024|131072,o}function er(n,o){return n.expression!==o?r(at(o),n):n}function Qt(n,o,s,u){let g=ae(168);return g.modifiers=Oe(n),g.name=Xe(o),g.constraint=s,g.default=u,g.transformFlags=1,g.expression=void 0,g.jsDoc=void 0,g}function tn(n,o,s,u,g){return n.modifiers!==o||n.name!==s||n.constraint!==u||n.default!==g?r(Qt(o,s,u,g),n):n}function Bn(n,o,s,u,g,I){let W=ae(169);return W.modifiers=Oe(n),W.dotDotDotToken=o,W.name=Xe(s),W.questionToken=u,W.type=g,W.initializer=To(I),ym(W.name)?W.transformFlags=1:W.transformFlags=De(W.modifiers)|V(W.dotDotDotToken)|In(W.name)|V(W.questionToken)|V(W.initializer)|(W.questionToken??W.type?1:0)|(W.dotDotDotToken??W.initializer?1024:0)|(ln(W.modifiers)&16476?8192:0),W.jsDoc=void 0,W}function Un(n,o,s,u,g,I,W){return n.modifiers!==o||n.dotDotDotToken!==s||n.name!==u||n.questionToken!==g||n.type!==I||n.initializer!==W?r(Bn(o,s,u,g,I,W),n):n}function rn(n){let o=B(170);return o.expression=a().parenthesizeLeftSideOfAccess(n,!1),o.transformFlags|=V(o.expression)|1|8192|33554432,o}function nn(n,o){return n.expression!==o?r(rn(o),n):n}function Di(n,o,s,u){let g=ae(171);return g.modifiers=Oe(n),g.name=Xe(o),g.type=u,g.questionToken=s,g.transformFlags=1,g.initializer=void 0,g.jsDoc=void 0,g}function qn(n,o,s,u,g){return n.modifiers!==o||n.name!==s||n.questionToken!==u||n.type!==g?Ae(Di(o,s,u,g),n):n}function Ae(n,o){return n!==o&&(n.initializer=o.initializer),r(n,o)}function q(n,o,s,u,g){let I=ae(172);I.modifiers=Oe(n),I.name=Xe(o),I.questionToken=s&&Pl(s)?s:void 0,I.exclamationToken=s&&Dd(s)?s:void 0,I.type=u,I.initializer=To(g);let W=I.flags&33554432||ln(I.modifiers)&2;return I.transformFlags=De(I.modifiers)|In(I.name)|V(I.initializer)|(W||I.questionToken||I.exclamationToken||I.type?1:0)|(ao(I.name)||ln(I.modifiers)&32&&I.initializer?8192:0)|16777216,I.jsDoc=void 0,I}function oe(n,o,s,u,g,I){return n.modifiers!==o||n.name!==s||n.questionToken!==(u!==void 0&&Pl(u)?u:void 0)||n.exclamationToken!==(u!==void 0&&Dd(u)?u:void 0)||n.type!==g||n.initializer!==I?r(q(o,s,u,g,I),n):n}function ge(n,o,s,u,g,I){let W=ae(173);return W.modifiers=Oe(n),W.name=Xe(o),W.questionToken=s,W.typeParameters=Oe(u),W.parameters=Oe(g),W.type=I,W.transformFlags=1,W.jsDoc=void 0,W.locals=void 0,W.nextContainer=void 0,W.typeArguments=void 0,W}function Se(n,o,s,u,g,I,W){return n.modifiers!==o||n.name!==s||n.questionToken!==u||n.typeParameters!==g||n.parameters!==I||n.type!==W?Ce(ge(o,s,u,g,I,W),n):n}function nt(n,o,s,u,g,I,W,de){let We=ae(174);if(We.modifiers=Oe(n),We.asteriskToken=o,We.name=Xe(s),We.questionToken=u,We.exclamationToken=void 0,We.typeParameters=Oe(g),We.parameters=Y(I),We.type=W,We.body=de,!We.body)We.transformFlags=1;else{let Er=ln(We.modifiers)&512,$n=!!We.asteriskToken,yi=Er&&$n;We.transformFlags=De(We.modifiers)|V(We.asteriskToken)|In(We.name)|V(We.questionToken)|De(We.typeParameters)|De(We.parameters)|V(We.type)|V(We.body)&-67108865|(yi?128:Er?256:$n?2048:0)|(We.questionToken||We.typeParameters||We.type?1:0)|1024}return We.typeArguments=void 0,We.jsDoc=void 0,We.locals=void 0,We.nextContainer=void 0,We.flowNode=void 0,We.endFlowNode=void 0,We.returnFlowNode=void 0,We}function z(n,o,s,u,g,I,W,de,We){return n.modifiers!==o||n.asteriskToken!==s||n.name!==u||n.questionToken!==g||n.typeParameters!==I||n.parameters!==W||n.type!==de||n.body!==We?X(nt(o,s,u,g,I,W,de,We),n):n}function X(n,o){return n!==o&&(n.exclamationToken=o.exclamationToken),r(n,o)}function ee(n){let o=ae(175);return o.body=n,o.transformFlags=V(n)|16777216,o.modifiers=void 0,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.endFlowNode=void 0,o.returnFlowNode=void 0,o}function xe(n,o){return n.body!==o?ke(ee(o),n):n}function ke(n,o){return n!==o&&(n.modifiers=o.modifiers),r(n,o)}function Le(n,o,s){let u=ae(176);return u.modifiers=Oe(n),u.parameters=Y(o),u.body=s,u.transformFlags=De(u.modifiers)|De(u.parameters)|V(u.body)&-67108865|1024,u.typeParameters=void 0,u.type=void 0,u.typeArguments=void 0,u.jsDoc=void 0,u.locals=void 0,u.nextContainer=void 0,u.endFlowNode=void 0,u.returnFlowNode=void 0,u}function lt(n,o,s,u){return n.modifiers!==o||n.parameters!==s||n.body!==u?yt(Le(o,s,u),n):n}function yt(n,o){return n!==o&&(n.typeParameters=o.typeParameters,n.type=o.type),Ce(n,o)}function jt(n,o,s,u,g){let I=ae(177);return I.modifiers=Oe(n),I.name=Xe(o),I.parameters=Y(s),I.type=u,I.body=g,I.body?I.transformFlags=De(I.modifiers)|In(I.name)|De(I.parameters)|V(I.type)|V(I.body)&-67108865|(I.type?1:0):I.transformFlags=1,I.typeArguments=void 0,I.typeParameters=void 0,I.jsDoc=void 0,I.locals=void 0,I.nextContainer=void 0,I.flowNode=void 0,I.endFlowNode=void 0,I.returnFlowNode=void 0,I}function qr(n,o,s,u,g,I){return n.modifiers!==o||n.name!==s||n.parameters!==u||n.type!==g||n.body!==I?na(jt(o,s,u,g,I),n):n}function na(n,o){return n!==o&&(n.typeParameters=o.typeParameters),Ce(n,o)}function Cn(n,o,s,u){let g=ae(178);return g.modifiers=Oe(n),g.name=Xe(o),g.parameters=Y(s),g.body=u,g.body?g.transformFlags=De(g.modifiers)|In(g.name)|De(g.parameters)|V(g.body)&-67108865|(g.type?1:0):g.transformFlags=1,g.typeArguments=void 0,g.typeParameters=void 0,g.type=void 0,g.jsDoc=void 0,g.locals=void 0,g.nextContainer=void 0,g.flowNode=void 0,g.endFlowNode=void 0,g.returnFlowNode=void 0,g}function zn(n,o,s,u,g){return n.modifiers!==o||n.name!==s||n.parameters!==u||n.body!==g?Pi(Cn(o,s,u,g),n):n}function Pi(n,o){return n!==o&&(n.typeParameters=o.typeParameters,n.type=o.type),Ce(n,o)}function ia(n,o,s){let u=ae(179);return u.typeParameters=Oe(n),u.parameters=Oe(o),u.type=s,u.transformFlags=1,u.jsDoc=void 0,u.locals=void 0,u.nextContainer=void 0,u.typeArguments=void 0,u}function Wn(n,o,s,u){return n.typeParameters!==o||n.parameters!==s||n.type!==u?Ce(ia(o,s,u),n):n}function En(n,o,s){let u=ae(180);return u.typeParameters=Oe(n),u.parameters=Oe(o),u.type=s,u.transformFlags=1,u.jsDoc=void 0,u.locals=void 0,u.nextContainer=void 0,u.typeArguments=void 0,u}function Ii(n,o,s,u){return n.typeParameters!==o||n.parameters!==s||n.type!==u?Ce(En(o,s,u),n):n}function aa(n,o,s){let u=ae(181);return u.modifiers=Oe(n),u.parameters=Oe(o),u.type=s,u.transformFlags=1,u.jsDoc=void 0,u.locals=void 0,u.nextContainer=void 0,u.typeArguments=void 0,u}function Vn(n,o,s,u){return n.parameters!==s||n.type!==u||n.modifiers!==o?Ce(aa(o,s,u),n):n}function Sr(n,o){let s=B(204);return s.type=n,s.literal=o,s.transformFlags=1,s}function Je(n,o,s){return n.type!==o||n.literal!==s?r(Sr(o,s),n):n}function oa(n){return vt(n)}function Mt(n,o,s){let u=B(182);return u.assertsModifier=n,u.parameterName=Xe(o),u.type=s,u.transformFlags=1,u}function Lr(n,o,s,u){return n.assertsModifier!==o||n.parameterName!==s||n.type!==u?r(Mt(o,s,u),n):n}function j(n,o){let s=B(183);return s.typeName=Xe(n),s.typeArguments=o&&a().parenthesizeTypeArguments(Y(o)),s.transformFlags=1,s}function T(n,o,s){return n.typeName!==o||n.typeArguments!==s?r(j(o,s),n):n}function x(n,o,s){let u=ae(184);return u.typeParameters=Oe(n),u.parameters=Oe(o),u.type=s,u.transformFlags=1,u.modifiers=void 0,u.jsDoc=void 0,u.locals=void 0,u.nextContainer=void 0,u.typeArguments=void 0,u}function f(n,o,s,u){return n.typeParameters!==o||n.parameters!==s||n.type!==u?$(x(o,s,u),n):n}function $(n,o){return n!==o&&(n.modifiers=o.modifiers),Ce(n,o)}function Q(...n){return n.length===4?O(...n):n.length===3?fe(...n):N.fail("Incorrect number of arguments specified.")}function O(n,o,s,u){let g=ae(185);return g.modifiers=Oe(n),g.typeParameters=Oe(o),g.parameters=Oe(s),g.type=u,g.transformFlags=1,g.jsDoc=void 0,g.locals=void 0,g.nextContainer=void 0,g.typeArguments=void 0,g}function fe(n,o,s){return O(void 0,n,o,s)}function be(...n){return n.length===5?he(...n):n.length===4?Re(...n):N.fail("Incorrect number of arguments specified.")}function he(n,o,s,u,g){return n.modifiers!==o||n.typeParameters!==s||n.parameters!==u||n.type!==g?Ce(Q(o,s,u,g),n):n}function Re(n,o,s,u){return he(n,n.modifiers,o,s,u)}function we(n,o){let s=B(186);return s.exprName=n,s.typeArguments=o&&a().parenthesizeTypeArguments(o),s.transformFlags=1,s}function et(n,o,s){return n.exprName!==o||n.typeArguments!==s?r(we(o,s),n):n}function Ye(n){let o=ae(187);return o.members=Y(n),o.transformFlags=1,o}function Ke(n,o){return n.members!==o?r(Ye(o),n):n}function It(n){let o=B(188);return o.elementType=a().parenthesizeNonArrayTypeOfPostfixType(n),o.transformFlags=1,o}function qt(n,o){return n.elementType!==o?r(It(o),n):n}function _r(n){let o=B(189);return o.elements=Y(a().parenthesizeElementTypesOfTupleType(n)),o.transformFlags=1,o}function Te(n,o){return n.elements!==o?r(_r(o),n):n}function ft(n,o,s,u){let g=ae(202);return g.dotDotDotToken=n,g.name=o,g.questionToken=s,g.type=u,g.transformFlags=1,g.jsDoc=void 0,g}function An(n,o,s,u,g){return n.dotDotDotToken!==o||n.name!==s||n.questionToken!==u||n.type!==g?r(ft(o,s,u,g),n):n}function Et(n){let o=B(190);return o.type=a().parenthesizeTypeOfOptionalType(n),o.transformFlags=1,o}function H(n,o){return n.type!==o?r(Et(o),n):n}function Fa(n){let o=B(191);return o.type=n,o.transformFlags=1,o}function Ie(n,o){return n.type!==o?r(Fa(o),n):n}function ot(n,o,s){let u=B(n);return u.types=ue.createNodeArray(s(o)),u.transformFlags=1,u}function cr(n,o,s){return n.types!==o?r(ot(n.kind,o,s),n):n}function an(n){return ot(192,n,a().parenthesizeConstituentTypesOfUnionType)}function Ba(n,o){return cr(n,o,a().parenthesizeConstituentTypesOfUnionType)}function kn(n){return ot(193,n,a().parenthesizeConstituentTypesOfIntersectionType)}function je(n,o){return cr(n,o,a().parenthesizeConstituentTypesOfIntersectionType)}function dt(n,o,s,u){let g=B(194);return g.checkType=a().parenthesizeCheckTypeOfConditionalType(n),g.extendsType=a().parenthesizeExtendsTypeOfConditionalType(o),g.trueType=s,g.falseType=u,g.transformFlags=1,g.locals=void 0,g.nextContainer=void 0,g}function li(n,o,s,u,g){return n.checkType!==o||n.extendsType!==s||n.trueType!==u||n.falseType!==g?r(dt(o,s,u,g),n):n}function Hn(n){let o=B(195);return o.typeParameter=n,o.transformFlags=1,o}function e1(n,o){return n.typeParameter!==o?r(Hn(o),n):n}function dr(n,o){let s=B(203);return s.head=n,s.templateSpans=Y(o),s.transformFlags=1,s}function t1(n,o,s){return n.head!==o||n.templateSpans!==s?r(dr(o,s),n):n}function ui(n,o,s,u,g=!1){let I=B(205);return I.argument=n,I.assertions=o,I.qualifier=s,I.typeArguments=u&&a().parenthesizeTypeArguments(u),I.isTypeOf=g,I.transformFlags=1,I}function fs(n,o,s,u,g,I=n.isTypeOf){return n.argument!==o||n.assertions!==s||n.qualifier!==u||n.typeArguments!==g||n.isTypeOf!==I?r(ui(o,s,u,g,I),n):n}function xr(n){let o=B(196);return o.type=n,o.transformFlags=1,o}function Ft(n,o){return n.type!==o?r(xr(o),n):n}function M(){let n=B(197);return n.transformFlags=1,n}function Jr(n,o){let s=B(198);return s.operator=n,s.type=n===148?a().parenthesizeOperandOfReadonlyTypeOperator(o):a().parenthesizeOperandOfTypeOperator(o),s.transformFlags=1,s}function sa(n,o){return n.type!==o?r(Jr(n.operator,o),n):n}function Ni(n,o){let s=B(199);return s.objectType=a().parenthesizeNonArrayTypeOfPostfixType(n),s.indexType=o,s.transformFlags=1,s}function G_(n,o,s){return n.objectType!==o||n.indexType!==s?r(Ni(o,s),n):n}function Lt(n,o,s,u,g,I){let W=ae(200);return W.readonlyToken=n,W.typeParameter=o,W.nameType=s,W.questionToken=u,W.type=g,W.members=I&&Y(I),W.transformFlags=1,W.locals=void 0,W.nextContainer=void 0,W}function Yt(n,o,s,u,g,I,W){return n.readonlyToken!==o||n.typeParameter!==s||n.nameType!==u||n.questionToken!==g||n.type!==I||n.members!==W?r(Lt(o,s,u,g,I,W),n):n}function Oi(n){let o=B(201);return o.literal=n,o.transformFlags=1,o}function r1(n,o){return n.literal!==o?r(Oi(o),n):n}function Tu(n){let o=B(206);return o.elements=Y(n),o.transformFlags|=De(o.elements)|1024|524288,o.transformFlags&32768&&(o.transformFlags|=65664),o}function Ua(n,o){return n.elements!==o?r(Tu(o),n):n}function Su(n){let o=B(207);return o.elements=Y(n),o.transformFlags|=De(o.elements)|1024|524288,o}function X_(n,o){return n.elements!==o?r(Su(o),n):n}function _a(n,o,s,u){let g=ae(208);return g.dotDotDotToken=n,g.propertyName=Xe(o),g.name=Xe(s),g.initializer=To(u),g.transformFlags|=V(g.dotDotDotToken)|In(g.propertyName)|In(g.name)|V(g.initializer)|(g.dotDotDotToken?32768:0)|1024,g.flowNode=void 0,g}function xu(n,o,s,u,g){return n.propertyName!==s||n.dotDotDotToken!==o||n.name!==u||n.initializer!==g?r(_a(o,s,u,g),n):n}function $_(n,o){let s=B(209),u=n&&wi(n),g=Y(n,u&&Pm(u)?!0:void 0);return s.elements=a().parenthesizeExpressionsOfCommaDelimitedList(g),s.multiLine=o,s.transformFlags|=De(s.elements),s}function wu(n,o){return n.elements!==o?r($_(o,n.multiLine),n):n}function ds(n,o){let s=ae(210);return s.properties=Y(n),s.multiLine=o,s.transformFlags|=De(s.properties),s.jsDoc=void 0,s}function n1(n,o){return n.properties!==o?r(ds(o,n.multiLine),n):n}function ms(n,o,s){let u=ae(211);return u.expression=n,u.questionDotToken=o,u.name=s,u.transformFlags=V(u.expression)|V(u.questionDotToken)|(Ee(u.name)?e_(u.name):V(u.name)|536870912),u.jsDoc=void 0,u.flowNode=void 0,u}function Mi(n,o){let s=ms(a().parenthesizeLeftSideOfAccess(n,!1),void 0,Xe(o));return Uf(n)&&(s.transformFlags|=384),s}function Q_(n,o,s){return Y4(n)?ys(n,o,n.questionDotToken,gi(s,Ee)):n.expression!==o||n.name!==s?r(Mi(o,s),n):n}function hs(n,o,s){let u=ms(a().parenthesizeLeftSideOfAccess(n,!0),o,Xe(s));return u.flags|=64,u.transformFlags|=32,u}function ys(n,o,s,u){return N.assert(!!(n.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),n.expression!==o||n.questionDotToken!==s||n.name!==u?r(hs(o,s,u),n):n}function Cu(n,o,s){let u=ae(212);return u.expression=n,u.questionDotToken=o,u.argumentExpression=s,u.transformFlags|=V(u.expression)|V(u.questionDotToken)|V(u.argumentExpression),u.jsDoc=void 0,u.flowNode=void 0,u}function Y_(n,o){let s=Cu(a().parenthesizeLeftSideOfAccess(n,!1),void 0,Cr(o));return Uf(n)&&(s.transformFlags|=384),s}function Eu(n,o,s){return K4(n)?ku(n,o,n.questionDotToken,s):n.expression!==o||n.argumentExpression!==s?r(Y_(o,s),n):n}function Au(n,o,s){let u=Cu(a().parenthesizeLeftSideOfAccess(n,!0),o,Cr(s));return u.flags|=64,u.transformFlags|=32,u}function ku(n,o,s,u){return N.assert(!!(n.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),n.expression!==o||n.questionDotToken!==s||n.argumentExpression!==u?r(Au(o,s,u),n):n}function po(n,o,s,u){let g=ae(213);return g.expression=n,g.questionDotToken=o,g.typeArguments=s,g.arguments=u,g.transformFlags|=V(g.expression)|V(g.questionDotToken)|De(g.typeArguments)|De(g.arguments),g.typeArguments&&(g.transformFlags|=1),yd(g.expression)&&(g.transformFlags|=16384),g}function fo(n,o,s){let u=po(a().parenthesizeLeftSideOfAccess(n,!1),void 0,Oe(o),a().parenthesizeExpressionsOfCommaDelimitedList(Y(s)));return Wx(u.expression)&&(u.transformFlags|=8388608),u}function i1(n,o,s,u){return y0(n)?gs(n,o,n.questionDotToken,s,u):n.expression!==o||n.typeArguments!==s||n.arguments!==u?r(fo(o,s,u),n):n}function zr(n,o,s,u){let g=po(a().parenthesizeLeftSideOfAccess(n,!0),o,Oe(s),a().parenthesizeExpressionsOfCommaDelimitedList(Y(u)));return g.flags|=64,g.transformFlags|=32,g}function gs(n,o,s,u,g){return N.assert(!!(n.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),n.expression!==o||n.questionDotToken!==s||n.typeArguments!==u||n.arguments!==g?r(zr(o,s,u,g),n):n}function bs(n,o,s){let u=ae(214);return u.expression=a().parenthesizeExpressionOfNew(n),u.typeArguments=Oe(o),u.arguments=s?a().parenthesizeExpressionsOfCommaDelimitedList(s):void 0,u.transformFlags|=V(u.expression)|De(u.typeArguments)|De(u.arguments)|32,u.typeArguments&&(u.transformFlags|=1),u}function Du(n,o,s,u){return n.expression!==o||n.typeArguments!==s||n.arguments!==u?r(bs(o,s,u),n):n}function Pu(n,o,s){let u=B(215);return u.tag=a().parenthesizeLeftSideOfAccess(n,!1),u.typeArguments=Oe(o),u.template=s,u.transformFlags|=V(u.tag)|De(u.typeArguments)|V(u.template)|1024,u.typeArguments&&(u.transformFlags|=1),UT(u.template)&&(u.transformFlags|=128),u}function a1(n,o,s,u){return n.tag!==o||n.typeArguments!==s||n.template!==u?r(Pu(o,s,u),n):n}function Iu(n,o){let s=B(216);return s.expression=a().parenthesizeOperandOfPrefixUnary(o),s.type=n,s.transformFlags|=V(s.expression)|V(s.type)|1,s}function Nu(n,o,s){return n.type!==o||n.expression!==s?r(Iu(o,s),n):n}function K_(n){let o=B(217);return o.expression=n,o.transformFlags=V(o.expression),o.jsDoc=void 0,o}function Ou(n,o){return n.expression!==o?r(K_(o),n):n}function Z_(n,o,s,u,g,I,W){let de=ae(218);de.modifiers=Oe(n),de.asteriskToken=o,de.name=Xe(s),de.typeParameters=Oe(u),de.parameters=Y(g),de.type=I,de.body=W;let We=ln(de.modifiers)&512,Er=!!de.asteriskToken,$n=We&&Er;return de.transformFlags=De(de.modifiers)|V(de.asteriskToken)|In(de.name)|De(de.typeParameters)|De(de.parameters)|V(de.type)|V(de.body)&-67108865|($n?128:We?256:Er?2048:0)|(de.typeParameters||de.type?1:0)|4194304,de.typeArguments=void 0,de.jsDoc=void 0,de.locals=void 0,de.nextContainer=void 0,de.flowNode=void 0,de.endFlowNode=void 0,de.returnFlowNode=void 0,de}function Mu(n,o,s,u,g,I,W,de){return n.name!==u||n.modifiers!==o||n.asteriskToken!==s||n.typeParameters!==g||n.parameters!==I||n.type!==W||n.body!==de?Ce(Z_(o,s,u,g,I,W,de),n):n}function ec(n,o,s,u,g,I){let W=ae(219);W.modifiers=Oe(n),W.typeParameters=Oe(o),W.parameters=Y(s),W.type=u,W.equalsGreaterThanToken=g??vt(39),W.body=a().parenthesizeConciseBodyOfArrowFunction(I);let de=ln(W.modifiers)&512;return W.transformFlags=De(W.modifiers)|De(W.typeParameters)|De(W.parameters)|V(W.type)|V(W.equalsGreaterThanToken)|V(W.body)&-67108865|(W.typeParameters||W.type?1:0)|(de?16640:0)|1024,W.typeArguments=void 0,W.jsDoc=void 0,W.locals=void 0,W.nextContainer=void 0,W.flowNode=void 0,W.endFlowNode=void 0,W.returnFlowNode=void 0,W}function tc(n,o,s,u,g,I,W){return n.modifiers!==o||n.typeParameters!==s||n.parameters!==u||n.type!==g||n.equalsGreaterThanToken!==I||n.body!==W?Ce(ec(o,s,u,g,I,W),n):n}function Lu(n){let o=B(220);return o.expression=a().parenthesizeOperandOfPrefixUnary(n),o.transformFlags|=V(o.expression),o}function Wr(n,o){return n.expression!==o?r(Lu(o),n):n}function vs(n){let o=B(221);return o.expression=a().parenthesizeOperandOfPrefixUnary(n),o.transformFlags|=V(o.expression),o}function pi(n,o){return n.expression!==o?r(vs(o),n):n}function rc(n){let o=B(222);return o.expression=a().parenthesizeOperandOfPrefixUnary(n),o.transformFlags|=V(o.expression),o}function ca(n,o){return n.expression!==o?r(rc(o),n):n}function la(n){let o=B(223);return o.expression=a().parenthesizeOperandOfPrefixUnary(n),o.transformFlags|=V(o.expression)|256|128|2097152,o}function o1(n,o){return n.expression!==o?r(la(o),n):n}function qa(n,o){let s=B(224);return s.operator=n,s.operand=a().parenthesizeOperandOfPrefixUnary(o),s.transformFlags|=V(s.operand),(n===46||n===47)&&Ee(s.operand)&&!wa(s.operand)&&!Y0(s.operand)&&(s.transformFlags|=268435456),s}function s1(n,o){return n.operand!==o?r(qa(n.operator,o),n):n}function Ts(n,o){let s=B(225);return s.operator=o,s.operand=a().parenthesizeOperandOfPostfixUnary(n),s.transformFlags|=V(s.operand),Ee(s.operand)&&!wa(s.operand)&&!Y0(s.operand)&&(s.transformFlags|=268435456),s}function _1(n,o){return n.operand!==o?r(Ts(o,n.operator),n):n}function nc(n,o,s){let u=ae(226),g=lr(o),I=g.kind;return u.left=a().parenthesizeLeftSideOfBinary(I,n),u.operatorToken=g,u.right=a().parenthesizeRightSideOfBinary(I,u.left,s),u.transformFlags|=V(u.left)|V(u.operatorToken)|V(u.right),I===61?u.transformFlags|=32:I===64?uo(u.left)?u.transformFlags|=5248|Ju(u.left):iu(u.left)&&(u.transformFlags|=5120|Ju(u.left)):I===43||I===68?u.transformFlags|=512:vm(I)&&(u.transformFlags|=16),I===103&&jr(u.left)&&(u.transformFlags|=536870912),u.jsDoc=void 0,u}function Ju(n){return U6(n)?65536:0}function Ru(n,o,s,u){return n.left!==o||n.operatorToken!==s||n.right!==u?r(nc(o,s,u),n):n}function ju(n,o,s,u,g){let I=B(227);return I.condition=a().parenthesizeConditionOfConditionalExpression(n),I.questionToken=o??vt(58),I.whenTrue=a().parenthesizeBranchOfConditionalExpression(s),I.colonToken=u??vt(59),I.whenFalse=a().parenthesizeBranchOfConditionalExpression(g),I.transformFlags|=V(I.condition)|V(I.questionToken)|V(I.whenTrue)|V(I.colonToken)|V(I.whenFalse),I}function fi(n,o,s,u,g,I){return n.condition!==o||n.questionToken!==s||n.whenTrue!==u||n.colonToken!==g||n.whenFalse!==I?r(ju(o,s,u,g,I),n):n}function ic(n,o){let s=B(228);return s.head=n,s.templateSpans=Y(o),s.transformFlags|=V(s.head)|De(s.templateSpans)|1024,s}function c1(n,o,s){return n.head!==o||n.templateSpans!==s?r(ic(o,s),n):n}function Ss(n,o,s,u=0){N.assert(!(u&-7177),"Unsupported template flags.");let g;if(s!==void 0&&s!==o&&(g=PL(n,s),typeof g=="object"))return N.fail("Invalid raw text");if(o===void 0){if(g===void 0)return N.fail("Arguments 'text' and 'rawText' may not both be undefined.");o=g}else g!==void 0&&N.assert(o===g,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return o}function za(n){let o=1024;return n&&(o|=128),o}function Fu(n,o,s,u){let g=Tr(n);return g.text=o,g.rawText=s,g.templateFlags=u&7176,g.transformFlags=za(g.templateFlags),g}function ac(n,o,s,u){let g=ae(n);return g.text=o,g.rawText=s,g.templateFlags=u&7176,g.transformFlags=za(g.templateFlags),g}function Li(n,o,s,u){return n===15?ac(n,o,s,u):Fu(n,o,s,u)}function oc(n,o,s){return n=Ss(16,n,o,s),Li(16,n,o,s)}function l1(n,o,s){return n=Ss(16,n,o,s),Li(17,n,o,s)}function Bu(n,o,s){return n=Ss(16,n,o,s),Li(18,n,o,s)}function u1(n,o,s){return n=Ss(16,n,o,s),ac(15,n,o,s)}function Uu(n,o){N.assert(!n||!!o,"A `YieldExpression` with an asteriskToken must have an expression.");let s=B(229);return s.expression=o&&a().parenthesizeExpressionForDisallowedComma(o),s.asteriskToken=n,s.transformFlags|=V(s.expression)|V(s.asteriskToken)|1024|128|1048576,s}function p1(n,o,s){return n.expression!==s||n.asteriskToken!==o?r(Uu(o,s),n):n}function qu(n){let o=B(230);return o.expression=a().parenthesizeExpressionForDisallowedComma(n),o.transformFlags|=V(o.expression)|1024|32768,o}function f1(n,o){return n.expression!==o?r(qu(o),n):n}function xs(n,o,s,u,g){let I=ae(231);return I.modifiers=Oe(n),I.name=Xe(o),I.typeParameters=Oe(s),I.heritageClauses=Oe(u),I.members=Y(g),I.transformFlags|=De(I.modifiers)|In(I.name)|De(I.typeParameters)|De(I.heritageClauses)|De(I.members)|(I.typeParameters?1:0)|1024,I.jsDoc=void 0,I}function sc(n,o,s,u,g,I){return n.modifiers!==o||n.name!==s||n.typeParameters!==u||n.heritageClauses!==g||n.members!==I?r(xs(o,s,u,g,I),n):n}function d1(){return B(232)}function Vr(n,o){let s=B(233);return s.expression=a().parenthesizeLeftSideOfAccess(n,!1),s.typeArguments=o&&a().parenthesizeTypeArguments(o),s.transformFlags|=V(s.expression)|De(s.typeArguments)|1024,s}function _c(n,o,s){return n.expression!==o||n.typeArguments!==s?r(Vr(o,s),n):n}function zu(n,o){let s=B(234);return s.expression=n,s.type=o,s.transformFlags|=V(s.expression)|V(s.type)|1,s}function Wu(n,o,s){return n.expression!==o||n.type!==s?r(zu(o,s),n):n}function cc(n){let o=B(235);return o.expression=a().parenthesizeLeftSideOfAccess(n,!1),o.transformFlags|=V(o.expression)|1,o}function Vu(n,o){return e3(n)?ws(n,o):n.expression!==o?r(cc(o),n):n}function lc(n,o){let s=B(238);return s.expression=n,s.type=o,s.transformFlags|=V(s.expression)|V(s.type)|1,s}function Dn(n,o,s){return n.expression!==o||n.type!==s?r(lc(o,s),n):n}function Hu(n){let o=B(235);return o.flags|=64,o.expression=a().parenthesizeLeftSideOfAccess(n,!0),o.transformFlags|=V(o.expression)|1,o}function ws(n,o){return N.assert(!!(n.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),n.expression!==o?r(Hu(o),n):n}function Gn(n,o){let s=B(236);switch(s.keywordToken=n,s.name=o,s.transformFlags|=V(s.name),n){case 105:s.transformFlags|=1024;break;case 102:s.transformFlags|=32;break;default:return N.assertNever(n)}return s.flowNode=void 0,s}function Cs(n,o){return n.name!==o?r(Gn(n.keywordToken,o),n):n}function uc(n,o){let s=B(239);return s.expression=n,s.literal=o,s.transformFlags|=V(s.expression)|V(s.literal)|1024,s}function Gu(n,o,s){return n.expression!==o||n.literal!==s?r(uc(o,s),n):n}function m1(){let n=B(240);return n.transformFlags|=1024,n}function ua(n,o){let s=B(241);return s.statements=Y(n),s.multiLine=o,s.transformFlags|=De(s.statements),s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s}function h1(n,o){return n.statements!==o?r(ua(o,n.multiLine),n):n}function Xu(n,o){let s=B(243);return s.modifiers=Oe(n),s.declarationList=zt(o)?gc(o):o,s.transformFlags|=De(s.modifiers)|V(s.declarationList),ln(s.modifiers)&2&&(s.transformFlags=1),s.jsDoc=void 0,s.flowNode=void 0,s}function pc(n,o,s){return n.modifiers!==o||n.declarationList!==s?r(Xu(o,s),n):n}function fc(){let n=B(242);return n.jsDoc=void 0,n}function Es(n){let o=B(244);return o.expression=a().parenthesizeExpressionOfExpressionStatement(n),o.transformFlags|=V(o.expression),o.jsDoc=void 0,o.flowNode=void 0,o}function $u(n,o){return n.expression!==o?r(Es(o),n):n}function Qu(n,o,s){let u=B(245);return u.expression=n,u.thenStatement=on(o),u.elseStatement=on(s),u.transformFlags|=V(u.expression)|V(u.thenStatement)|V(u.elseStatement),u.jsDoc=void 0,u.flowNode=void 0,u}function Yu(n,o,s,u){return n.expression!==o||n.thenStatement!==s||n.elseStatement!==u?r(Qu(o,s,u),n):n}function Ku(n,o){let s=B(246);return s.statement=on(n),s.expression=o,s.transformFlags|=V(s.statement)|V(s.expression),s.jsDoc=void 0,s.flowNode=void 0,s}function y1(n,o,s){return n.statement!==o||n.expression!==s?r(Ku(o,s),n):n}function Zu(n,o){let s=B(247);return s.expression=n,s.statement=on(o),s.transformFlags|=V(s.expression)|V(s.statement),s.jsDoc=void 0,s.flowNode=void 0,s}function ep(n,o,s){return n.expression!==o||n.statement!==s?r(Zu(o,s),n):n}function dc(n,o,s,u){let g=B(248);return g.initializer=n,g.condition=o,g.incrementor=s,g.statement=on(u),g.transformFlags|=V(g.initializer)|V(g.condition)|V(g.incrementor)|V(g.statement),g.jsDoc=void 0,g.locals=void 0,g.nextContainer=void 0,g.flowNode=void 0,g}function g1(n,o,s,u,g){return n.initializer!==o||n.condition!==s||n.incrementor!==u||n.statement!==g?r(dc(o,s,u,g),n):n}function tp(n,o,s){let u=B(249);return u.initializer=n,u.expression=o,u.statement=on(s),u.transformFlags|=V(u.initializer)|V(u.expression)|V(u.statement),u.jsDoc=void 0,u.locals=void 0,u.nextContainer=void 0,u.flowNode=void 0,u}function b1(n,o,s,u){return n.initializer!==o||n.expression!==s||n.statement!==u?r(tp(o,s,u),n):n}function rp(n,o,s,u){let g=B(250);return g.awaitModifier=n,g.initializer=o,g.expression=a().parenthesizeExpressionForDisallowedComma(s),g.statement=on(u),g.transformFlags|=V(g.awaitModifier)|V(g.initializer)|V(g.expression)|V(g.statement)|1024,n&&(g.transformFlags|=128),g.jsDoc=void 0,g.locals=void 0,g.nextContainer=void 0,g.flowNode=void 0,g}function v1(n,o,s,u,g){return n.awaitModifier!==o||n.initializer!==s||n.expression!==u||n.statement!==g?r(rp(o,s,u,g),n):n}function mc(n){let o=B(251);return o.label=Xe(n),o.transformFlags|=V(o.label)|4194304,o.jsDoc=void 0,o.flowNode=void 0,o}function np(n,o){return n.label!==o?r(mc(o),n):n}function hc(n){let o=B(252);return o.label=Xe(n),o.transformFlags|=V(o.label)|4194304,o.jsDoc=void 0,o.flowNode=void 0,o}function T1(n,o){return n.label!==o?r(hc(o),n):n}function ip(n){let o=B(253);return o.expression=n,o.transformFlags|=V(o.expression)|128|4194304,o.jsDoc=void 0,o.flowNode=void 0,o}function ap(n,o){return n.expression!==o?r(ip(o),n):n}function yc(n,o){let s=B(254);return s.expression=n,s.statement=on(o),s.transformFlags|=V(s.expression)|V(s.statement),s.jsDoc=void 0,s.flowNode=void 0,s}function op(n,o,s){return n.expression!==o||n.statement!==s?r(yc(o,s),n):n}function pa(n,o){let s=B(255);return s.expression=a().parenthesizeExpressionForDisallowedComma(n),s.caseBlock=o,s.transformFlags|=V(s.expression)|V(s.caseBlock),s.jsDoc=void 0,s.flowNode=void 0,s.possiblyExhaustive=!1,s}function S1(n,o,s){return n.expression!==o||n.caseBlock!==s?r(pa(o,s),n):n}function sp(n,o){let s=B(256);return s.label=Xe(n),s.statement=on(o),s.transformFlags|=V(s.label)|V(s.statement),s.jsDoc=void 0,s.flowNode=void 0,s}function _p(n,o,s){return n.label!==o||n.statement!==s?r(sp(o,s),n):n}function cp(n){let o=B(257);return o.expression=n,o.transformFlags|=V(o.expression),o.jsDoc=void 0,o.flowNode=void 0,o}function x1(n,o){return n.expression!==o?r(cp(o),n):n}function lp(n,o,s){let u=B(258);return u.tryBlock=n,u.catchClause=o,u.finallyBlock=s,u.transformFlags|=V(u.tryBlock)|V(u.catchClause)|V(u.finallyBlock),u.jsDoc=void 0,u.flowNode=void 0,u}function up(n,o,s,u){return n.tryBlock!==o||n.catchClause!==s||n.finallyBlock!==u?r(lp(o,s,u),n):n}function pp(){let n=B(259);return n.jsDoc=void 0,n.flowNode=void 0,n}function As(n,o,s,u){let g=ae(260);return g.name=Xe(n),g.exclamationToken=o,g.type=s,g.initializer=To(u),g.transformFlags|=In(g.name)|V(g.initializer)|(g.exclamationToken??g.type?1:0),g.jsDoc=void 0,g}function w1(n,o,s,u,g){return n.name!==o||n.type!==u||n.exclamationToken!==s||n.initializer!==g?r(As(o,s,u,g),n):n}function gc(n,o=0){let s=B(261);return s.flags|=o&7,s.declarations=Y(n),s.transformFlags|=De(s.declarations)|4194304,o&7&&(s.transformFlags|=263168),o&4&&(s.transformFlags|=4),s}function C1(n,o){return n.declarations!==o?r(gc(o,n.flags),n):n}function bc(n,o,s,u,g,I,W){let de=ae(262);if(de.modifiers=Oe(n),de.asteriskToken=o,de.name=Xe(s),de.typeParameters=Oe(u),de.parameters=Y(g),de.type=I,de.body=W,!de.body||ln(de.modifiers)&2)de.transformFlags=1;else{let We=ln(de.modifiers)&512,Er=!!de.asteriskToken,$n=We&&Er;de.transformFlags=De(de.modifiers)|V(de.asteriskToken)|In(de.name)|De(de.typeParameters)|De(de.parameters)|V(de.type)|V(de.body)&-67108865|($n?128:We?256:Er?2048:0)|(de.typeParameters||de.type?1:0)|4194304}return de.typeArguments=void 0,de.jsDoc=void 0,de.locals=void 0,de.nextContainer=void 0,de.endFlowNode=void 0,de.returnFlowNode=void 0,de}function fp(n,o,s,u,g,I,W,de){return n.modifiers!==o||n.asteriskToken!==s||n.name!==u||n.typeParameters!==g||n.parameters!==I||n.type!==W||n.body!==de?E1(bc(o,s,u,g,I,W,de),n):n}function E1(n,o){return n!==o&&n.modifiers===o.modifiers&&(n.modifiers=o.modifiers),Ce(n,o)}function vc(n,o,s,u,g){let I=ae(263);return I.modifiers=Oe(n),I.name=Xe(o),I.typeParameters=Oe(s),I.heritageClauses=Oe(u),I.members=Y(g),ln(I.modifiers)&2?I.transformFlags=1:(I.transformFlags|=De(I.modifiers)|In(I.name)|De(I.typeParameters)|De(I.heritageClauses)|De(I.members)|(I.typeParameters?1:0)|1024,I.transformFlags&8192&&(I.transformFlags|=1)),I.jsDoc=void 0,I}function Tc(n,o,s,u,g,I){return n.modifiers!==o||n.name!==s||n.typeParameters!==u||n.heritageClauses!==g||n.members!==I?r(vc(o,s,u,g,I),n):n}function dp(n,o,s,u,g){let I=ae(264);return I.modifiers=Oe(n),I.name=Xe(o),I.typeParameters=Oe(s),I.heritageClauses=Oe(u),I.members=Y(g),I.transformFlags=1,I.jsDoc=void 0,I}function gt(n,o,s,u,g,I){return n.modifiers!==o||n.name!==s||n.typeParameters!==u||n.heritageClauses!==g||n.members!==I?r(dp(o,s,u,g,I),n):n}function Ji(n,o,s,u){let g=ae(265);return g.modifiers=Oe(n),g.name=Xe(o),g.typeParameters=Oe(s),g.type=u,g.transformFlags=1,g.jsDoc=void 0,g.locals=void 0,g.nextContainer=void 0,g}function Sc(n,o,s,u,g){return n.modifiers!==o||n.name!==s||n.typeParameters!==u||n.type!==g?r(Ji(o,s,u,g),n):n}function Ri(n,o,s){let u=ae(266);return u.modifiers=Oe(n),u.name=Xe(o),u.members=Y(s),u.transformFlags|=De(u.modifiers)|V(u.name)|De(u.members)|1,u.transformFlags&=-67108865,u.jsDoc=void 0,u}function mp(n,o,s,u){return n.modifiers!==o||n.name!==s||n.members!==u?r(Ri(o,s,u),n):n}function Jt(n,o,s,u=0){let g=ae(267);return g.modifiers=Oe(n),g.flags|=u&2088,g.name=o,g.body=s,ln(g.modifiers)&2?g.transformFlags=1:g.transformFlags|=De(g.modifiers)|V(g.name)|V(g.body)|1,g.transformFlags&=-67108865,g.jsDoc=void 0,g.locals=void 0,g.nextContainer=void 0,g}function ji(n,o,s,u){return n.modifiers!==o||n.name!==s||n.body!==u?r(Jt(o,s,u,n.flags),n):n}function tr(n){let o=B(268);return o.statements=Y(n),o.transformFlags|=De(o.statements),o.jsDoc=void 0,o}function A1(n,o){return n.statements!==o?r(tr(o),n):n}function hp(n){let o=B(269);return o.clauses=Y(n),o.transformFlags|=De(o.clauses),o.locals=void 0,o.nextContainer=void 0,o}function k1(n,o){return n.clauses!==o?r(hp(o),n):n}function xc(n){let o=ae(270);return o.name=Xe(n),o.transformFlags|=e_(o.name)|1,o.modifiers=void 0,o.jsDoc=void 0,o}function D1(n,o){return n.name!==o?P1(xc(o),n):n}function P1(n,o){return n!==o&&(n.modifiers=o.modifiers),r(n,o)}function yp(n,o,s,u){let g=ae(271);return g.modifiers=Oe(n),g.name=Xe(s),g.isTypeOnly=o,g.moduleReference=u,g.transformFlags|=De(g.modifiers)|e_(g.name)|V(g.moduleReference),Nm(g.moduleReference)||(g.transformFlags|=1),g.transformFlags&=-67108865,g.jsDoc=void 0,g}function gp(n,o,s,u,g){return n.modifiers!==o||n.isTypeOnly!==s||n.name!==u||n.moduleReference!==g?r(yp(o,s,u,g),n):n}function bp(n,o,s,u){let g=B(272);return g.modifiers=Oe(n),g.importClause=o,g.moduleSpecifier=s,g.assertClause=u,g.transformFlags|=V(g.importClause)|V(g.moduleSpecifier),g.transformFlags&=-67108865,g.jsDoc=void 0,g}function vp(n,o,s,u,g){return n.modifiers!==o||n.importClause!==s||n.moduleSpecifier!==u||n.assertClause!==g?r(bp(o,s,u,g),n):n}function wc(n,o,s){let u=ae(273);return u.isTypeOnly=n,u.name=o,u.namedBindings=s,u.transformFlags|=V(u.name)|V(u.namedBindings),n&&(u.transformFlags|=1),u.transformFlags&=-67108865,u}function Tp(n,o,s,u){return n.isTypeOnly!==o||n.name!==s||n.namedBindings!==u?r(wc(o,s,u),n):n}function Sp(n,o){let s=B(300);return s.elements=Y(n),s.multiLine=o,s.transformFlags|=4,s}function ks(n,o,s){return n.elements!==o||n.multiLine!==s?r(Sp(o,s),n):n}function Cc(n,o){let s=B(301);return s.name=n,s.value=o,s.transformFlags|=4,s}function xp(n,o,s){return n.name!==o||n.value!==s?r(Cc(o,s),n):n}function Ec(n,o){let s=B(302);return s.assertClause=n,s.multiLine=o,s}function I1(n,o,s){return n.assertClause!==o||n.multiLine!==s?r(Ec(o,s),n):n}function Ds(n){let o=ae(274);return o.name=n,o.transformFlags|=V(o.name),o.transformFlags&=-67108865,o}function N1(n,o){return n.name!==o?r(Ds(o),n):n}function Ac(n){let o=ae(280);return o.name=n,o.transformFlags|=V(o.name)|32,o.transformFlags&=-67108865,o}function O1(n,o){return n.name!==o?r(Ac(o),n):n}function wp(n){let o=B(275);return o.elements=Y(n),o.transformFlags|=De(o.elements),o.transformFlags&=-67108865,o}function M1(n,o){return n.elements!==o?r(wp(o),n):n}function Cp(n,o,s){let u=ae(276);return u.isTypeOnly=n,u.propertyName=o,u.name=s,u.transformFlags|=V(u.propertyName)|V(u.name),u.transformFlags&=-67108865,u}function L1(n,o,s,u){return n.isTypeOnly!==o||n.propertyName!==s||n.name!==u?r(Cp(o,s,u),n):n}function Ps(n,o,s){let u=ae(277);return u.modifiers=Oe(n),u.isExportEquals=o,u.expression=o?a().parenthesizeRightSideOfBinary(64,void 0,s):a().parenthesizeExpressionOfExportDefault(s),u.transformFlags|=De(u.modifiers)|V(u.expression),u.transformFlags&=-67108865,u.jsDoc=void 0,u}function Fi(n,o,s){return n.modifiers!==o||n.expression!==s?r(Ps(o,n.isExportEquals,s),n):n}function kc(n,o,s,u,g){let I=ae(278);return I.modifiers=Oe(n),I.isTypeOnly=o,I.exportClause=s,I.moduleSpecifier=u,I.assertClause=g,I.transformFlags|=De(I.modifiers)|V(I.exportClause)|V(I.moduleSpecifier),I.transformFlags&=-67108865,I.jsDoc=void 0,I}function Dc(n,o,s,u,g,I){return n.modifiers!==o||n.isTypeOnly!==s||n.exportClause!==u||n.moduleSpecifier!==g||n.assertClause!==I?Is(kc(o,s,u,g,I),n):n}function Is(n,o){return n!==o&&n.modifiers===o.modifiers&&(n.modifiers=o.modifiers),r(n,o)}function Ns(n){let o=B(279);return o.elements=Y(n),o.transformFlags|=De(o.elements),o.transformFlags&=-67108865,o}function J1(n,o){return n.elements!==o?r(Ns(o),n):n}function fa(n,o,s){let u=B(281);return u.isTypeOnly=n,u.propertyName=Xe(o),u.name=Xe(s),u.transformFlags|=V(u.propertyName)|V(u.name),u.transformFlags&=-67108865,u.jsDoc=void 0,u}function R1(n,o,s,u){return n.isTypeOnly!==o||n.propertyName!==s||n.name!==u?r(fa(o,s,u),n):n}function j1(){let n=ae(282);return n.jsDoc=void 0,n}function Pc(n){let o=B(283);return o.expression=n,o.transformFlags|=V(o.expression),o.transformFlags&=-67108865,o}function F1(n,o){return n.expression!==o?r(Pc(o),n):n}function B1(n){return B(n)}function Ic(n,o,s=!1){let u=Nc(n,s?o&&a().parenthesizeNonArrayTypeOfPostfixType(o):o);return u.postfix=s,u}function Nc(n,o){let s=B(n);return s.type=o,s}function Ep(n,o,s){return o.type!==s?r(Ic(n,s,o.postfix),o):o}function U1(n,o,s){return o.type!==s?r(Nc(n,s),o):o}function Ap(n,o){let s=ae(324);return s.parameters=Oe(n),s.type=o,s.transformFlags=De(s.parameters)|(s.type?1:0),s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.typeArguments=void 0,s}function q1(n,o,s){return n.parameters!==o||n.type!==s?r(Ap(o,s),n):n}function kp(n,o=!1){let s=ae(329);return s.jsDocPropertyTags=Oe(n),s.isArrayType=o,s}function z1(n,o,s){return n.jsDocPropertyTags!==o||n.isArrayType!==s?r(kp(o,s),n):n}function Dp(n){let o=B(316);return o.type=n,o}function W1(n,o){return n.type!==o?r(Dp(o),n):n}function Pp(n,o,s){let u=ae(330);return u.typeParameters=Oe(n),u.parameters=Y(o),u.type=s,u.jsDoc=void 0,u.locals=void 0,u.nextContainer=void 0,u}function V1(n,o,s,u){return n.typeParameters!==o||n.parameters!==s||n.type!==u?r(Pp(o,s,u),n):n}function Hr(n){let o=Af(n.kind);return n.tagName.escapedText===Mn(o)?n.tagName:Ge(o)}function Bi(n,o,s){let u=B(n);return u.tagName=o,u.comment=s,u}function mo(n,o,s){let u=ae(n);return u.tagName=o,u.comment=s,u}function ho(n,o,s,u){let g=Bi(352,n??Ge("template"),u);return g.constraint=o,g.typeParameters=Y(s),g}function Os(n,o=Hr(n),s,u,g){return n.tagName!==o||n.constraint!==s||n.typeParameters!==u||n.comment!==g?r(ho(o,s,u,g),n):n}function Ms(n,o,s,u){let g=mo(353,n??Ge("typedef"),u);return g.typeExpression=o,g.fullName=s,g.name=K0(s),g.locals=void 0,g.nextContainer=void 0,g}function Ip(n,o=Hr(n),s,u,g){return n.tagName!==o||n.typeExpression!==s||n.fullName!==u||n.comment!==g?r(Ms(o,s,u,g),n):n}function Oc(n,o,s,u,g,I){let W=mo(348,n??Ge("param"),I);return W.typeExpression=u,W.name=o,W.isNameFirst=!!g,W.isBracketed=s,W}function Mc(n,o=Hr(n),s,u,g,I,W){return n.tagName!==o||n.name!==s||n.isBracketed!==u||n.typeExpression!==g||n.isNameFirst!==I||n.comment!==W?r(Oc(o,s,u,g,I,W),n):n}function Np(n,o,s,u,g,I){let W=mo(355,n??Ge("prop"),I);return W.typeExpression=u,W.name=o,W.isNameFirst=!!g,W.isBracketed=s,W}function Op(n,o=Hr(n),s,u,g,I,W){return n.tagName!==o||n.name!==s||n.isBracketed!==u||n.typeExpression!==g||n.isNameFirst!==I||n.comment!==W?r(Np(o,s,u,g,I,W),n):n}function Mp(n,o,s,u){let g=mo(345,n??Ge("callback"),u);return g.typeExpression=o,g.fullName=s,g.name=K0(s),g.locals=void 0,g.nextContainer=void 0,g}function H1(n,o=Hr(n),s,u,g){return n.tagName!==o||n.typeExpression!==s||n.fullName!==u||n.comment!==g?r(Mp(o,s,u,g),n):n}function Lc(n,o,s){let u=Bi(346,n??Ge("overload"),s);return u.typeExpression=o,u}function G1(n,o=Hr(n),s,u){return n.tagName!==o||n.typeExpression!==s||n.comment!==u?r(Lc(o,s,u),n):n}function Jc(n,o,s){let u=Bi(335,n??Ge("augments"),s);return u.class=o,u}function X1(n,o=Hr(n),s,u){return n.tagName!==o||n.class!==s||n.comment!==u?r(Jc(o,s,u),n):n}function Ls(n,o,s){let u=Bi(336,n??Ge("implements"),s);return u.class=o,u}function Rc(n,o,s){let u=Bi(354,n??Ge("see"),s);return u.name=o,u}function yo(n,o,s,u){return n.tagName!==o||n.name!==s||n.comment!==u?r(Rc(o,s,u),n):n}function Lp(n){let o=B(317);return o.name=n,o}function Wa(n,o){return n.name!==o?r(Lp(o),n):n}function go(n,o){let s=B(318);return s.left=n,s.right=o,s.transformFlags|=V(s.left)|V(s.right),s}function $1(n,o,s){return n.left!==o||n.right!==s?r(go(o,s),n):n}function Jp(n,o){let s=B(331);return s.name=n,s.text=o,s}function Q1(n,o,s){return n.name!==o?r(Jp(o,s),n):n}function Rp(n,o){let s=B(332);return s.name=n,s.text=o,s}function Y1(n,o,s){return n.name!==o?r(Rp(o,s),n):n}function jc(n,o){let s=B(333);return s.name=n,s.text=o,s}function K1(n,o,s){return n.name!==o?r(jc(o,s),n):n}function Z1(n,o=Hr(n),s,u){return n.tagName!==o||n.class!==s||n.comment!==u?r(Ls(o,s,u),n):n}function jp(n,o,s){return Bi(n,o??Ge(Af(n)),s)}function eh(n,o,s=Hr(o),u){return o.tagName!==s||o.comment!==u?r(jp(n,s,u),o):o}function Fp(n,o,s,u){let g=Bi(n,o??Ge(Af(n)),u);return g.typeExpression=s,g}function th(n,o,s=Hr(o),u,g){return o.tagName!==s||o.typeExpression!==u||o.comment!==g?r(Fp(n,s,u,g),o):o}function Bp(n,o){return Bi(334,n,o)}function rh(n,o,s){return n.tagName!==o||n.comment!==s?r(Bp(o,s),n):n}function Up(n,o,s){let u=mo(347,n??Ge(Af(347)),s);return u.typeExpression=o,u.locals=void 0,u.nextContainer=void 0,u}function nh(n,o=Hr(n),s,u){return n.tagName!==o||n.typeExpression!==s||n.comment!==u?r(Up(o,s,u),n):n}function qp(n){let o=B(328);return o.text=n,o}function ih(n,o){return n.text!==o?r(qp(o),n):n}function Js(n,o){let s=B(327);return s.comment=n,s.tags=Oe(o),s}function ah(n,o,s){return n.comment!==o||n.tags!==s?r(Js(o,s),n):n}function Fc(n,o,s){let u=B(284);return u.openingElement=n,u.children=Y(o),u.closingElement=s,u.transformFlags|=V(u.openingElement)|De(u.children)|V(u.closingElement)|2,u}function zp(n,o,s,u){return n.openingElement!==o||n.children!==s||n.closingElement!==u?r(Fc(o,s,u),n):n}function Wp(n,o,s){let u=B(285);return u.tagName=n,u.typeArguments=Oe(o),u.attributes=s,u.transformFlags|=V(u.tagName)|De(u.typeArguments)|V(u.attributes)|2,u.typeArguments&&(u.transformFlags|=1),u}function Rs(n,o,s,u){return n.tagName!==o||n.typeArguments!==s||n.attributes!==u?r(Wp(o,s,u),n):n}function Bc(n,o,s){let u=B(286);return u.tagName=n,u.typeArguments=Oe(o),u.attributes=s,u.transformFlags|=V(u.tagName)|De(u.typeArguments)|V(u.attributes)|2,o&&(u.transformFlags|=1),u}function oh(n,o,s,u){return n.tagName!==o||n.typeArguments!==s||n.attributes!==u?r(Bc(o,s,u),n):n}function Vp(n){let o=B(287);return o.tagName=n,o.transformFlags|=V(o.tagName)|2,o}function sh(n,o){return n.tagName!==o?r(Vp(o),n):n}function js(n,o,s){let u=B(288);return u.openingFragment=n,u.children=Y(o),u.closingFragment=s,u.transformFlags|=V(u.openingFragment)|De(u.children)|V(u.closingFragment)|2,u}function Hp(n,o,s,u){return n.openingFragment!==o||n.children!==s||n.closingFragment!==u?r(js(o,s,u),n):n}function Fs(n,o){let s=B(12);return s.text=n,s.containsOnlyTriviaWhiteSpaces=!!o,s.transformFlags|=2,s}function Gp(n,o,s){return n.text!==o||n.containsOnlyTriviaWhiteSpaces!==s?r(Fs(o,s),n):n}function Uc(){let n=B(289);return n.transformFlags|=2,n}function wr(){let n=B(290);return n.transformFlags|=2,n}function qc(n,o){let s=ae(291);return s.name=n,s.initializer=o,s.transformFlags|=V(s.name)|V(s.initializer)|2,s}function Xp(n,o,s){return n.name!==o||n.initializer!==s?r(qc(o,s),n):n}function $p(n){let o=ae(292);return o.properties=Y(n),o.transformFlags|=De(o.properties)|2,o}function Qp(n,o){return n.properties!==o?r($p(o),n):n}function Yp(n){let o=B(293);return o.expression=n,o.transformFlags|=V(o.expression)|2,o}function _h(n,o){return n.expression!==o?r(Yp(o),n):n}function bo(n,o){let s=B(294);return s.dotDotDotToken=n,s.expression=o,s.transformFlags|=V(s.dotDotDotToken)|V(s.expression)|2,s}function ch(n,o){return n.expression!==o?r(bo(n.dotDotDotToken,o),n):n}function Kp(n,o){let s=B(295);return s.namespace=n,s.name=o,s.transformFlags|=V(s.namespace)|V(s.name)|2,s}function lh(n,o,s){return n.namespace!==o||n.name!==s?r(Kp(o,s),n):n}function Zp(n,o){let s=B(296);return s.expression=a().parenthesizeExpressionForDisallowedComma(n),s.statements=Y(o),s.transformFlags|=V(s.expression)|De(s.statements),s.jsDoc=void 0,s}function zc(n,o,s){return n.expression!==o||n.statements!==s?r(Zp(o,s),n):n}function Va(n){let o=B(297);return o.statements=Y(n),o.transformFlags=De(o.statements),o}function uh(n,o){return n.statements!==o?r(Va(o),n):n}function Bs(n,o){let s=B(298);switch(s.token=n,s.types=Y(o),s.transformFlags|=De(s.types),n){case 96:s.transformFlags|=1024;break;case 119:s.transformFlags|=1;break;default:return N.assertNever(n)}return s}function ef(n,o){return n.types!==o?r(Bs(n.token,o),n):n}function tf(n,o){let s=B(299);return s.variableDeclaration=vf(n),s.block=o,s.transformFlags|=V(s.variableDeclaration)|V(s.block)|(n?0:64),s.locals=void 0,s.nextContainer=void 0,s}function vo(n,o,s){return n.variableDeclaration!==o||n.block!==s?r(tf(o,s),n):n}function Us(n,o){let s=ae(303);return s.name=Xe(n),s.initializer=a().parenthesizeExpressionForDisallowedComma(o),s.transformFlags|=In(s.name)|V(s.initializer),s.modifiers=void 0,s.questionToken=void 0,s.exclamationToken=void 0,s.jsDoc=void 0,s}function ph(n,o,s){return n.name!==o||n.initializer!==s?fh(Us(o,s),n):n}function fh(n,o){return n!==o&&(n.modifiers=o.modifiers,n.questionToken=o.questionToken,n.exclamationToken=o.exclamationToken),r(n,o)}function Wc(n,o){let s=ae(304);return s.name=Xe(n),s.objectAssignmentInitializer=o&&a().parenthesizeExpressionForDisallowedComma(o),s.transformFlags|=e_(s.name)|V(s.objectAssignmentInitializer)|1024,s.equalsToken=void 0,s.modifiers=void 0,s.questionToken=void 0,s.exclamationToken=void 0,s.jsDoc=void 0,s}function rf(n,o,s){return n.name!==o||n.objectAssignmentInitializer!==s?nf(Wc(o,s),n):n}function nf(n,o){return n!==o&&(n.modifiers=o.modifiers,n.questionToken=o.questionToken,n.exclamationToken=o.exclamationToken,n.equalsToken=o.equalsToken),r(n,o)}function da(n){let o=ae(305);return o.expression=a().parenthesizeExpressionForDisallowedComma(n),o.transformFlags|=V(o.expression)|128|65536,o.jsDoc=void 0,o}function dh(n,o){return n.expression!==o?r(da(o),n):n}function af(n,o){let s=ae(306);return s.name=Xe(n),s.initializer=o&&a().parenthesizeExpressionForDisallowedComma(o),s.transformFlags|=V(s.name)|V(s.initializer)|1,s.jsDoc=void 0,s}function mh(n,o,s){return n.name!==o||n.initializer!==s?r(af(o,s),n):n}function hh(n,o,s){let u=t.createBaseSourceFileNode(312);return u.statements=Y(n),u.endOfFileToken=o,u.flags|=s,u.text="",u.fileName="",u.path="",u.resolvedPath="",u.originalFileName="",u.languageVersion=0,u.languageVariant=0,u.scriptKind=0,u.isDeclarationFile=!1,u.hasNoDefaultLib=!1,u.transformFlags|=De(u.statements)|V(u.endOfFileToken),u.locals=void 0,u.nextContainer=void 0,u.endFlowNode=void 0,u.nodeCount=0,u.identifierCount=0,u.symbolCount=0,u.parseDiagnostics=void 0,u.bindDiagnostics=void 0,u.bindSuggestionDiagnostics=void 0,u.lineMap=void 0,u.externalModuleIndicator=void 0,u.setExternalModuleIndicator=void 0,u.pragmas=void 0,u.checkJsDirective=void 0,u.referencedFiles=void 0,u.typeReferenceDirectives=void 0,u.libReferenceDirectives=void 0,u.amdDependencies=void 0,u.commentDirectives=void 0,u.identifiers=void 0,u.packageJsonLocations=void 0,u.packageJsonScope=void 0,u.imports=void 0,u.moduleAugmentations=void 0,u.ambientModuleNames=void 0,u.resolvedModules=void 0,u.classifiableNames=void 0,u.impliedNodeFormat=void 0,u}function Vc(n){let o=Object.create(n.redirectTarget);return Object.defineProperties(o,{id:{get(){return this.redirectInfo.redirectTarget.id},set(s){this.redirectInfo.redirectTarget.id=s}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(s){this.redirectInfo.redirectTarget.symbol=s}}}),o.redirectInfo=n,o}function of(n){let o=Vc(n.redirectInfo);return o.flags|=n.flags&-17,o.fileName=n.fileName,o.path=n.path,o.resolvedPath=n.resolvedPath,o.originalFileName=n.originalFileName,o.packageJsonLocations=n.packageJsonLocations,o.packageJsonScope=n.packageJsonScope,o.emitNode=void 0,o}function Xn(n){let o=t.createBaseSourceFileNode(312);o.flags|=n.flags&-17;for(let s in n)if(!(Qr(o,s)||!Qr(n,s))){if(s==="emitNode"){o.emitNode=void 0;continue}o[s]=n[s]}return o}function Hc(n){let o=n.redirectInfo?of(n):Xn(n);return Xr(o,n),o}function yh(n,o,s,u,g,I,W){let de=Hc(n);return de.statements=Y(o),de.isDeclarationFile=s,de.referencedFiles=u,de.typeReferenceDirectives=g,de.hasNoDefaultLib=I,de.libReferenceDirectives=W,de.transformFlags=De(de.statements)|V(de.endOfFileToken),de}function gh(n,o,s=n.isDeclarationFile,u=n.referencedFiles,g=n.typeReferenceDirectives,I=n.hasNoDefaultLib,W=n.libReferenceDirectives){return n.statements!==o||n.isDeclarationFile!==s||n.referencedFiles!==u||n.typeReferenceDirectives!==g||n.hasNoDefaultLib!==I||n.libReferenceDirectives!==W?r(yh(n,o,s,u,g,I,W),n):n}function sf(n,o=$e){let s=B(313);return s.prepends=o,s.sourceFiles=n,s.syntheticFileReferences=void 0,s.syntheticTypeReferences=void 0,s.syntheticLibReferences=void 0,s.hasNoDefaultLib=void 0,s}function _f(n,o,s=$e){return n.sourceFiles!==o||n.prepends!==s?r(sf(o,s),n):n}function Gc(n,o,s){let u=B(314);return u.prologues=n,u.syntheticReferences=o,u.texts=s,u.fileName="",u.text="",u.referencedFiles=$e,u.libReferenceDirectives=$e,u.getLineAndCharacterOfPosition=g=>to(u,g),u}function Xc(n,o){let s=B(n);return s.data=o,s}function bh(n){return Xc(307,n)}function cf(n,o){let s=Xc(308,n);return s.texts=o,s}function vh(n,o){return Xc(o?310:309,n)}function Th(n){let o=B(311);return o.data=n.data,o.section=n,o}function qs(){let n=B(315);return n.javascriptText="",n.declarationText="",n}function lf(n,o=!1,s){let u=B(237);return u.type=n,u.isSpread=o,u.tupleNameSource=s,u}function Sh(n){let o=B(358);return o._children=n,o}function xh(n){let o=B(359);return o.original=n,Ve(o,n),o}function uf(n,o){let s=B(360);return s.expression=n,s.original=o,s.transformFlags|=V(s.expression)|1,Ve(s,o),s}function pf(n,o){return n.expression!==o?r(uf(o,n.original),n):n}function wh(n){if(Ta(n)&&!Tl(n)&&!n.original&&!n.emitNode&&!n.id){if(F_(n))return n.elements;if(Ct(n)&&Ux(n.operatorToken))return[n.left,n.right]}return n}function zs(n){let o=B(361);return o.elements=Y(Sv(n,wh)),o.transformFlags|=De(o.elements),o}function ff(n,o){return n.elements!==o?r(zs(o),n):n}function $c(n,o){let s=B(362);return s.expression=n,s.thisArg=o,s.transformFlags|=V(s.expression)|V(s.thisArg),s}function Ch(n,o,s){return n.expression!==o||n.thisArg!==s?r($c(o,s),n):n}function Eh(n){let o=or(n.escapedText);return o.flags|=n.flags&-17,o.transformFlags=n.transformFlags,Xr(o,n),setIdentifierAutoGenerate(o,{...n.emitNode.autoGenerate}),o}function df(n){let o=or(n.escapedText);o.flags|=n.flags&-17,o.jsDoc=n.jsDoc,o.flowNode=n.flowNode,o.symbol=n.symbol,o.transformFlags=n.transformFlags,Xr(o,n);let s=getIdentifierTypeArguments(n);return s&&setIdentifierTypeArguments(o,s),o}function mf(n){let o=Sn(n.escapedText);return o.flags|=n.flags&-17,o.transformFlags=n.transformFlags,Xr(o,n),setIdentifierAutoGenerate(o,{...n.emitNode.autoGenerate}),o}function Ah(n){let o=Sn(n.escapedText);return o.flags|=n.flags&-17,o.transformFlags=n.transformFlags,Xr(o,n),o}function Qc(n){if(n===void 0)return n;if(ii(n))return Hc(n);if(wa(n))return Eh(n);if(Ee(n))return df(n);if(Mg(n))return mf(n);if(jr(n))return Ah(n);let o=ql(n.kind)?t.createBaseNode(n.kind):t.createBaseTokenNode(n.kind);o.flags|=n.flags&-17,o.transformFlags=n.transformFlags,Xr(o,n);for(let s in n)Qr(o,s)||!Qr(n,s)||(o[s]=n[s]);return o}function kh(n,o,s){return fo(Z_(void 0,void 0,void 0,void 0,o?[o]:[],void 0,ua(n,!0)),void 0,s?[s]:[])}function Dh(n,o,s){return fo(ec(void 0,void 0,o?[o]:[],void 0,void 0,ua(n,!0)),void 0,s?[s]:[])}function ma(){return rc(Ze("0"))}function Ph(n){return Ps(void 0,!1,n)}function Ih(n){return kc(void 0,!1,Ns([fa(!1,void 0,n)]))}function Nh(n,o){return o==="null"?ue.createStrictEquality(n,fr()):o==="undefined"?ue.createStrictEquality(n,ma()):ue.createStrictEquality(vs(n),it(o))}function Oh(n,o){return o==="null"?ue.createStrictInequality(n,fr()):o==="undefined"?ue.createStrictInequality(n,ma()):ue.createStrictInequality(vs(n),it(o))}function ha(n,o,s){return y0(n)?zr(hs(n,void 0,o),void 0,void 0,s):fo(Mi(n,o),void 0,s)}function Mh(n,o,s){return ha(n,"bind",[o,...s])}function Ws(n,o,s){return ha(n,"call",[o,...s])}function Lh(n,o,s){return ha(n,"apply",[o,s])}function Ha(n,o,s){return ha(Ge(n),o,s)}function Jh(n,o){return ha(n,"slice",o===void 0?[]:[Cr(o)])}function Rh(n,o){return ha(n,"concat",o)}function hf(n,o,s){return Ha("Object","defineProperty",[n,Cr(o),s])}function jh(n,o){return Ha("Object","getOwnPropertyDescriptor",[n,Cr(o)])}function Fh(n,o,s){return Ha("Reflect","get",s?[n,o,s]:[n,o])}function Bh(n,o,s,u){return Ha("Reflect","set",u?[n,o,s,u]:[n,o,s])}function ya(n,o,s){return s?(n.push(Us(o,s)),!0):!1}function yf(n,o){let s=[];ya(s,"enumerable",Cr(n.enumerable)),ya(s,"configurable",Cr(n.configurable));let u=ya(s,"writable",Cr(n.writable));u=ya(s,"value",n.value)||u;let g=ya(s,"get",n.get);return g=ya(s,"set",n.set)||g,N.assert(!(u&&g),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),ds(s,!o)}function gf(n,o){switch(n.kind){case 217:return Ou(n,o);case 216:return Nu(n,n.type,o);case 234:return Wu(n,o,n.type);case 238:return Dn(n,o,n.type);case 235:return Vu(n,o);case 360:return pf(n,o)}}function c(n){return is(n)&&Ta(n)&&Ta(getSourceMapRange(n))&&Ta(getCommentRange(n))&&!mt(getSyntheticLeadingComments(n))&&!mt(getSyntheticTrailingComments(n))}function m(n,o,s=15){return n&&Rm(n,s)&&!c(n)?gf(n,m(n.expression,o)):o}function b(n,o,s){if(!o)return n;let u=_p(o,o.label,u8(o.statement)?b(n,o.statement):n);return s&&s(o),u}function w(n,o){let s=Gl(n);switch(s.kind){case 80:return o;case 110:case 9:case 10:case 11:return!1;case 209:return s.elements.length!==0;case 210:return s.properties.length>0;default:return!0}}function A(n,o,s,u=!1){let g=ls(n,15),I,W;return yd(g)?(I=Ut(),W=g):Uf(g)?(I=Ut(),W=s!==void 0&&s<2?Ve(Ge("_super"),g):g):ti(g)&8192?(I=ma(),W=a().parenthesizeLeftSideOfAccess(g,!1)):Br(g)?w(g.expression,u)?(I=Gt(o),W=Mi(Ve(ue.createAssignment(I,g.expression),g.expression),g.name),Ve(W,g)):(I=g.expression,W=g):Ra(g)?w(g.expression,u)?(I=Gt(o),W=Y_(Ve(ue.createAssignment(I,g.expression),g.expression),g.argumentExpression),Ve(W,g)):(I=g.expression,W=g):(I=ma(),W=a().parenthesizeLeftSideOfAccess(n,!1)),{target:W,thisArg:I}}function R(n,o){return Mi(K_(ds([Cn(void 0,"value",[Bn(void 0,void 0,n,void 0,void 0,void 0)],ua([Es(o)]))])),"value")}function te(n){return n.length>10?zs(n):Jd(n,ue.createComma)}function le(n,o,s,u=0,g){let I=g?n&&Yd(n):Bl(n);if(I&&Ee(I)&&!wa(I)){let W=Xi(Ve(Qc(I),I),I.parent);return u|=ti(I),s||(u|=96),o||(u|=3072),u&&setEmitFlags(W,u),W}return Tn(n)}function ne(n,o,s){return le(n,o,s,98304)}function ie(n,o,s,u){return le(n,o,s,32768,u)}function ve(n,o,s){return le(n,o,s,16384)}function He(n,o,s){return le(n,o,s)}function Be(n,o,s,u){let g=Mi(n,Ta(o)?o:Qc(o));Ve(g,o);let I=0;return u||(I|=96),s||(I|=3072),I&&setEmitFlags(g,I),g}function Ue(n,o,s,u){return n&&gr(o,1)?Be(n,le(o),s,u):ve(o,s,u)}function Rt(n,o,s,u){let g=mi(n,o,0,s);return hi(n,o,g,u)}function Gr(n){return mn(n.expression)&&n.expression.text==="use strict"}function di(){return jm(Es(it("use strict")))}function mi(n,o,s=0,u){N.assert(o.length===0,"Prologue directives should be at the first statement in the target statements array");let g=!1,I=n.length;for(;sde&&Er.splice(g,0,...o.slice(de,We)),de>W&&Er.splice(u,0,...o.slice(W,de)),W>I&&Er.splice(s,0,...o.slice(I,W)),I>0)if(s===0)Er.splice(0,0,...o.slice(0,I));else{let $n=new Map;for(let yi=0;yi=0;yi--){let Vs=o[yi];$n.has(Vs.expression.text)||Er.unshift(Vs)}}return va(n)?Ve(Y(Er,n.hasTrailingComma),n):n}function bf(n,o){let s;return typeof o=="number"?s=Or(o):s=o,No(n)?tn(n,s,n.name,n.constraint,n.default):Ma(n)?Un(n,s,n.dotDotDotToken,n.name,n.questionToken,n.type,n.initializer):u6(n)?he(n,s,n.typeParameters,n.parameters,n.type):Zl(n)?qn(n,s,n.name,n.questionToken,n.type):oo(n)?oe(n,s,n.name,n.questionToken??n.exclamationToken,n.type,n.initializer):Vx(n)?Se(n,s,n.name,n.questionToken,n.typeParameters,n.parameters,n.type):d_(n)?z(n,s,n.asteriskToken,n.name,n.questionToken,n.typeParameters,n.parameters,n.type,n.body):J_(n)?lt(n,s,n.parameters,n.body):m_(n)?qr(n,s,n.name,n.parameters,n.type,n.body):Qo(n)?zn(n,s,n.name,n.parameters,n.body):l6(n)?Vn(n,s,n.parameters,n.type):Am(n)?Mu(n,s,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body):km(n)?tc(n,s,n.typeParameters,n.parameters,n.type,n.equalsGreaterThanToken,n.body):Il(n)?sc(n,s,n.name,n.typeParameters,n.heritageClauses,n.members):as(n)?pc(n,s,n.declarationList):os(n)?fp(n,s,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body):Yo(n)?Tc(n,s,n.name,n.typeParameters,n.heritageClauses,n.members):su(n)?gt(n,s,n.name,n.typeParameters,n.heritageClauses,n.members):T6(n)?Sc(n,s,n.name,n.typeParameters,n.type):S6(n)?mp(n,s,n.name,n.members):Yi(n)?ji(n,s,n.name,n.body):w6(n)?gp(n,s,n.isTypeOnly,n.name,n.moduleReference):C6(n)?vp(n,s,n.importClause,n.moduleSpecifier,n.assertClause):ss(n)?Fi(n,s,n.expression):B_(n)?Dc(n,s,n.isTypeOnly,n.exportClause,n.moduleSpecifier,n.assertClause):N.assertNever(n)}function qh(n,o){return Ma(n)?Un(n,o,n.dotDotDotToken,n.name,n.questionToken,n.type,n.initializer):oo(n)?oe(n,o,n.name,n.questionToken??n.exclamationToken,n.type,n.initializer):d_(n)?z(n,o,n.asteriskToken,n.name,n.questionToken,n.typeParameters,n.parameters,n.type,n.body):m_(n)?qr(n,o,n.name,n.parameters,n.type,n.body):Qo(n)?zn(n,o,n.name,n.parameters,n.body):Il(n)?sc(n,o,n.name,n.typeParameters,n.heritageClauses,n.members):Yo(n)?Tc(n,o,n.name,n.typeParameters,n.heritageClauses,n.members):N.assertNever(n)}function Oe(n){return n?Y(n):void 0}function Xe(n){return typeof n=="string"?Ge(n):n}function Cr(n){return typeof n=="string"?it(n):typeof n=="number"?Ze(n):typeof n=="boolean"?n?ht():wn():n}function To(n){return n&&a().parenthesizeExpressionForDisallowedComma(n)}function lr(n){return typeof n=="number"?vt(n):n}function on(n){return n&&A6(n)?Ve(Xr(fc(),n),n):n}function vf(n){return typeof n=="string"||n&&!ki(n)?As(n,void 0,void 0,void 0):n}}function kL(e,t){return e!==t&&Ve(e,t),e}function DL(e,t){return e!==t&&(Xr(e,t),Ve(e,t)),e}function Af(e){switch(e){case 351:return"type";case 349:return"returns";case 350:return"this";case 347:return"enum";case 337:return"author";case 339:return"class";case 340:return"public";case 341:return"private";case 342:return"protected";case 343:return"readonly";case 344:return"override";case 352:return"template";case 353:return"typedef";case 348:return"param";case 355:return"prop";case 345:return"callback";case 346:return"overload";case 335:return"augments";case 336:return"implements";default:return N.fail(`Unsupported kind: ${N.formatSyntaxKind(e)}`)}}function PL(e,t){switch(_n||(_n=ns(99,!1,0)),e){case 15:_n.setText("`"+t+"`");break;case 16:_n.setText("`"+t+"${");break;case 17:_n.setText("}"+t+"${");break;case 18:_n.setText("}"+t+"`");break}let r=_n.scan();if(r===20&&(r=_n.reScanTemplateToken(!1)),_n.isUnterminated())return _n.setText(void 0),$0;let a;switch(r){case 15:case 16:case 17:case 18:a=_n.getTokenValue();break}return a===void 0||_n.scan()!==1?(_n.setText(void 0),$0):(_n.setText(void 0),a)}function In(e){return e&&Ee(e)?e_(e):V(e)}function e_(e){return V(e)&-67108865}function IL(e,t){return t|e.transformFlags&134234112}function V(e){if(!e)return 0;let t=e.transformFlags&~Rx(e.kind);return Qd(e)&&zl(e.name)?IL(e.name,t):t}function De(e){return e?e.transformFlags:0}function Hb(e){let t=0;for(let r of e)t|=V(r);e.transformFlags=t}function Rx(e){if(e>=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:return-2147450880;case 267:return-1941676032;case 169:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112;case 206:case 207:return-2147450880;case 216:case 238:case 234:case 360:case 217:case 108:return-2147483648;case 211:case 212:return-2147483648;default:return-2147483648}}function Yc(e){return e.flags|=16,e}function NL(e,t,r){let a,_,p,d,h,l,v,y,C,S;b_(e)?(p="",d=e,h=e.length,l=t,v=r):(N.assert(t==="js"||t==="dts"),p=(t==="js"?e.javascriptPath:e.declarationPath)||"",l=t==="js"?e.javascriptMapPath:e.declarationMapPath,y=()=>t==="js"?e.javascriptText:e.declarationText,C=()=>t==="js"?e.javascriptMapText:e.declarationMapText,h=()=>y().length,e.buildInfo&&e.buildInfo.bundle&&(N.assert(r===void 0||typeof r=="boolean"),a=r,_=t==="js"?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,S=e.oldFileOfCurrentEmit));let k=S?ML(N.checkDefined(_)):OL(_,a,h);return k.fileName=p,k.sourceMapPath=l,k.oldFileOfCurrentEmit=S,y&&C?(Object.defineProperty(k,"text",{get:y}),Object.defineProperty(k,"sourceMapText",{get:C})):(N.assert(!S),k.text=d??"",k.sourceMapText=v),k}function OL(e,t,r){let a,_,p,d,h,l,v,y;for(let S of e?e.sections:$e)switch(S.kind){case"prologue":a=xt(a,Ve(Ln.createUnparsedPrologue(S.data),S));break;case"emitHelpers":_=xt(_,getAllUnscopedEmitHelpers().get(S.data));break;case"no-default-lib":y=!0;break;case"reference":p=xt(p,{pos:-1,end:-1,fileName:S.data});break;case"type":d=xt(d,{pos:-1,end:-1,fileName:S.data});break;case"type-import":d=xt(d,{pos:-1,end:-1,fileName:S.data,resolutionMode:99});break;case"type-require":d=xt(d,{pos:-1,end:-1,fileName:S.data,resolutionMode:1});break;case"lib":h=xt(h,{pos:-1,end:-1,fileName:S.data});break;case"prepend":let k;for(let L of S.texts)(!t||L.kind!=="internal")&&(k=xt(k,Ve(Ln.createUnparsedTextLike(L.data,L.kind==="internal"),L)));l=Rr(l,k),v=xt(v,Ln.createUnparsedPrepend(S.data,k??$e));break;case"internal":if(t){v||(v=[]);break}case"text":v=xt(v,Ve(Ln.createUnparsedTextLike(S.data,S.kind==="internal"),S));break;default:N.assertNever(S)}if(!v){let S=Ln.createUnparsedTextLike(void 0,!1);Cd(S,0,typeof r=="function"?r():r),v=[S]}let C=z_.createUnparsedSource(a??$e,void 0,v);return a_(a,C),a_(v,C),a_(l,C),C.hasNoDefaultLib=y,C.helpers=_,C.referencedFiles=p||$e,C.typeReferenceDirectives=d,C.libReferenceDirectives=h||$e,C}function ML(e){let t,r;for(let _ of e.sections)switch(_.kind){case"internal":case"text":t=xt(t,Ve(Ln.createUnparsedTextLike(_.data,_.kind==="internal"),_));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":r=xt(r,Ve(Ln.createUnparsedSyntheticReference(_),_));break;case"prologue":case"emitHelpers":case"prepend":break;default:N.assertNever(_)}let a=Ln.createUnparsedSource($e,r,t??$e);return a_(r,a),a_(t,a),a.helpers=Aa(e.sources&&e.sources.helpers,_=>getAllUnscopedEmitHelpers().get(_)),a}function LL(e,t,r,a,_,p){return b_(e)?Fx(void 0,e,r,a,void 0,t,_,p):jx(e,t,r,a,_,p)}function jx(e,t,r,a,_,p,d,h){let l=z_.createInputFiles();l.javascriptPath=t,l.javascriptMapPath=r,l.declarationPath=a,l.declarationMapPath=_,l.buildInfoPath=p;let v=new Map,y=L=>{if(L===void 0)return;let G=v.get(L);return G===void 0&&(G=e(L),v.set(L,G!==void 0?G:!1)),G!==!1?G:void 0},C=L=>{let G=y(L);return G!==void 0?G:`/* Input file ${L} was missing */\r +`},S;return Object.defineProperties(l,{javascriptText:{get:()=>C(t)},javascriptMapText:{get:()=>y(r)},declarationText:{get:()=>C(N.checkDefined(a))},declarationMapText:{get:()=>y(_)},buildInfo:{get:()=>{if(S===void 0&&p)if(d!=null&&d.getBuildInfo)S=d.getBuildInfo(p,h.configFilePath)??!1;else{let L=y(p);S=L!==void 0?getBuildInfo(p,L)??!1:!1}return S||void 0}}}),l}function Fx(e,t,r,a,_,p,d,h,l,v,y){let C=z_.createInputFiles();return C.javascriptPath=e,C.javascriptText=t,C.javascriptMapPath=r,C.javascriptMapText=a,C.declarationPath=_,C.declarationText=p,C.declarationMapPath=d,C.declarationMapText=h,C.buildInfoPath=l,C.buildInfo=v,C.oldFileOfCurrentEmit=y,C}function JL(e,t,r){return new(Xb||(Xb=wt.getSourceMapSourceConstructor()))(e,t,r)}function Xr(e,t){if(e.original!==t&&(e.original=t,t)){let r=t.emitNode;r&&(e.emitNode=RL(r,e.emitNode))}return e}function RL(e,t){let{flags:r,internalFlags:a,leadingComments:_,trailingComments:p,commentRange:d,sourceMapRange:h,tokenSourceMapRanges:l,constantValue:v,helpers:y,startsOnNewLine:C,snippetElement:S,classThis:k,assignedName:L}=e;if(t||(t={}),r&&(t.flags=r),a&&(t.internalFlags=a&-9),_&&(t.leadingComments=Rr(_.slice(),t.leadingComments)),p&&(t.trailingComments=Rr(p.slice(),t.trailingComments)),d&&(t.commentRange=d),h&&(t.sourceMapRange=h),l&&(t.tokenSourceMapRanges=jL(l,t.tokenSourceMapRanges)),v!==void 0&&(t.constantValue=v),y)for(let G of y)t.helpers=Cv(t.helpers,G);return C!==void 0&&(t.startsOnNewLine=C),S!==void 0&&(t.snippetElement=S),k&&(t.classThis=k),L&&(t.assignedName=L),t}function jL(e,t){t||(t=[]);for(let r in e)t[r]=e[r];return t}var il,X0,a6,_n,$0,Xs,Gb,Ln,Xb,FL=Vt({"src/compiler/factory/nodeFactory.ts"(){"use strict";Dr(),il=0,X0=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))(X0||{}),a6=[],$0={},Xs=Lx(),Gb={createBaseSourceFileNode:e=>Yc(Xs.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>Yc(Xs.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>Yc(Xs.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>Yc(Xs.createBaseTokenNode(e)),createBaseNode:e=>Yc(Xs.createBaseNode(e))},Ln=Ad(4,Gb)}}),BL=()=>{},UL=()=>{};function lo(e){return e.kind===9}function o6(e){return e.kind===10}function mn(e){return e.kind===11}function kd(e){return e.kind===12}function qL(e){return e.kind===14}function Bx(e){return e.kind===15}function zL(e){return e.kind===16}function WL(e){return e.kind===17}function VL(e){return e.kind===18}function HL(e){return e.kind===26}function Ux(e){return e.kind===28}function s6(e){return e.kind===40}function _6(e){return e.kind===41}function GL(e){return e.kind===42}function Dd(e){return e.kind===54}function Pl(e){return e.kind===58}function XL(e){return e.kind===59}function $L(e){return e.kind===29}function QL(e){return e.kind===39}function Ee(e){return e.kind===80}function jr(e){return e.kind===81}function qx(e){return e.kind===95}function YL(e){return e.kind===90}function al(e){return e.kind===134}function KL(e){return e.kind===131}function ZL(e){return e.kind===135}function zx(e){return e.kind===148}function eJ(e){return e.kind===126}function tJ(e){return e.kind===128}function rJ(e){return e.kind===164}function nJ(e){return e.kind===129}function Uf(e){return e.kind===108}function Wx(e){return e.kind===102}function iJ(e){return e.kind===84}function M_(e){return e.kind===166}function ao(e){return e.kind===167}function No(e){return e.kind===168}function Ma(e){return e.kind===169}function L_(e){return e.kind===170}function Zl(e){return e.kind===171}function oo(e){return e.kind===172}function Vx(e){return e.kind===173}function d_(e){return e.kind===174}function eu(e){return e.kind===175}function J_(e){return e.kind===176}function m_(e){return e.kind===177}function Qo(e){return e.kind===178}function c6(e){return e.kind===179}function Hx(e){return e.kind===180}function l6(e){return e.kind===181}function Gx(e){return e.kind===182}function R_(e){return e.kind===183}function tu(e){return e.kind===184}function u6(e){return e.kind===185}function Xx(e){return e.kind===186}function Em(e){return e.kind===187}function $x(e){return e.kind===188}function Qx(e){return e.kind===189}function p6(e){return e.kind===202}function Yx(e){return e.kind===190}function Kx(e){return e.kind===191}function Zx(e){return e.kind===192}function e8(e){return e.kind===193}function t8(e){return e.kind===194}function r8(e){return e.kind===195}function f6(e){return e.kind===196}function d6(e){return e.kind===197}function n8(e){return e.kind===198}function i8(e){return e.kind===199}function a8(e){return e.kind===200}function m6(e){return e.kind===201}function ru(e){return e.kind===205}function aJ(e){return e.kind===204}function oJ(e){return e.kind===203}function sJ(e){return e.kind===206}function _J(e){return e.kind===207}function nu(e){return e.kind===208}function iu(e){return e.kind===209}function uo(e){return e.kind===210}function Br(e){return e.kind===211}function Ra(e){return e.kind===212}function j_(e){return e.kind===213}function o8(e){return e.kind===214}function s8(e){return e.kind===215}function cJ(e){return e.kind===216}function is(e){return e.kind===217}function Am(e){return e.kind===218}function km(e){return e.kind===219}function lJ(e){return e.kind===220}function uJ(e){return e.kind===221}function h6(e){return e.kind===222}function pJ(e){return e.kind===223}function Dm(e){return e.kind===224}function _8(e){return e.kind===225}function Ct(e){return e.kind===226}function fJ(e){return e.kind===227}function dJ(e){return e.kind===228}function mJ(e){return e.kind===229}function y6(e){return e.kind===230}function Il(e){return e.kind===231}function Pm(e){return e.kind===232}function g6(e){return e.kind===233}function hJ(e){return e.kind===234}function yJ(e){return e.kind===238}function jo(e){return e.kind===235}function b6(e){return e.kind===236}function gJ(e){return e.kind===237}function c8(e){return e.kind===360}function F_(e){return e.kind===361}function bJ(e){return e.kind===239}function vJ(e){return e.kind===240}function au(e){return e.kind===241}function as(e){return e.kind===243}function TJ(e){return e.kind===242}function ou(e){return e.kind===244}function SJ(e){return e.kind===245}function xJ(e){return e.kind===246}function wJ(e){return e.kind===247}function l8(e){return e.kind===248}function CJ(e){return e.kind===249}function EJ(e){return e.kind===250}function AJ(e){return e.kind===251}function kJ(e){return e.kind===252}function DJ(e){return e.kind===253}function PJ(e){return e.kind===254}function IJ(e){return e.kind===255}function u8(e){return e.kind===256}function NJ(e){return e.kind===257}function OJ(e){return e.kind===258}function MJ(e){return e.kind===259}function ki(e){return e.kind===260}function v6(e){return e.kind===261}function os(e){return e.kind===262}function Yo(e){return e.kind===263}function su(e){return e.kind===264}function T6(e){return e.kind===265}function S6(e){return e.kind===266}function Yi(e){return e.kind===267}function p8(e){return e.kind===268}function LJ(e){return e.kind===269}function x6(e){return e.kind===270}function w6(e){return e.kind===271}function C6(e){return e.kind===272}function JJ(e){return e.kind===273}function RJ(e){return e.kind===302}function jJ(e){return e.kind===300}function FJ(e){return e.kind===301}function E6(e){return e.kind===274}function Im(e){return e.kind===280}function BJ(e){return e.kind===275}function f8(e){return e.kind===276}function ss(e){return e.kind===277}function B_(e){return e.kind===278}function d8(e){return e.kind===279}function m8(e){return e.kind===281}function UJ(e){return e.kind===282}function A6(e){return e.kind===359}function qJ(e){return e.kind===362}function Nm(e){return e.kind===283}function Q0(e){return e.kind===284}function zJ(e){return e.kind===285}function Oo(e){return e.kind===286}function qf(e){return e.kind===287}function dl(e){return e.kind===288}function k6(e){return e.kind===289}function WJ(e){return e.kind===290}function VJ(e){return e.kind===291}function D6(e){return e.kind===292}function HJ(e){return e.kind===293}function GJ(e){return e.kind===294}function U_(e){return e.kind===295}function XJ(e){return e.kind===296}function h8(e){return e.kind===297}function Nl(e){return e.kind===298}function $J(e){return e.kind===299}function _s(e){return e.kind===303}function _u(e){return e.kind===304}function y8(e){return e.kind===305}function g8(e){return e.kind===306}function QJ(e){return e.kind===308}function ii(e){return e.kind===312}function YJ(e){return e.kind===313}function KJ(e){return e.kind===314}function b8(e){return e.kind===316}function zf(e){return e.kind===317}function r_(e){return e.kind===318}function ZJ(e){return e.kind===331}function eR(e){return e.kind===332}function tR(e){return e.kind===333}function rR(e){return e.kind===319}function nR(e){return e.kind===320}function v8(e){return e.kind===321}function iR(e){return e.kind===322}function aR(e){return e.kind===323}function Om(e){return e.kind===324}function oR(e){return e.kind===325}function sR(e){return e.kind===326}function cs(e){return e.kind===327}function P6(e){return e.kind===329}function cu(e){return e.kind===330}function Mm(e){return e.kind===335}function _R(e){return e.kind===337}function T8(e){return e.kind===339}function cR(e){return e.kind===345}function I6(e){return e.kind===340}function N6(e){return e.kind===341}function O6(e){return e.kind===342}function M6(e){return e.kind===343}function S8(e){return e.kind===344}function L6(e){return e.kind===346}function J6(e){return e.kind===338}function lR(e){return e.kind===354}function x8(e){return e.kind===347}function h_(e){return e.kind===348}function R6(e){return e.kind===349}function w8(e){return e.kind===350}function lu(e){return e.kind===351}function Ko(e){return e.kind===352}function uR(e){return e.kind===353}function pR(e){return e.kind===334}function fR(e){return e.kind===355}function C8(e){return e.kind===336}function j6(e){return e.kind===357}function dR(e){return e.kind===356}function mR(e){return e.kind===358}var hR=Vt({"src/compiler/factory/nodeTests.ts"(){"use strict";Dr()}});function yR(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function Lm(e,t,r,a){if(ao(r))return Ve(e.createElementAccessExpression(t,r.expression),a);{let _=Ve(ro(r)?e.createPropertyAccessExpression(t,r):e.createElementAccessExpression(t,r),r);return addEmitFlags(_,128),_}}function F6(e,t){let r=z_.createIdentifier(e||"React");return Xi(r,Fl(t)),r}function B6(e,t,r){if(M_(t)){let a=B6(e,t.left,r),_=e.createIdentifier(Ot(t.right));return _.escapedText=t.right.escapedText,e.createPropertyAccessExpression(a,_)}else return F6(Ot(t),r)}function E8(e,t,r,a){return t?B6(e,t,a):e.createPropertyAccessExpression(F6(r,a),"createElement")}function gR(e,t,r,a){return t?B6(e,t,a):e.createPropertyAccessExpression(F6(r,a),"Fragment")}function bR(e,t,r,a,_,p){let d=[r];if(a&&d.push(a),_&&_.length>0)if(a||d.push(e.createNull()),_.length>1)for(let h of _)jm(h),d.push(h);else d.push(_[0]);return Ve(e.createCallExpression(t,void 0,d),p)}function vR(e,t,r,a,_,p,d){let l=[gR(e,r,a,p),e.createNull()];if(_&&_.length>0)if(_.length>1)for(let v of _)jm(v),l.push(v);else l.push(_[0]);return Ve(e.createCallExpression(E8(e,t,a,p),void 0,l),d)}function TR(e,t,r){if(v6(t)){let a=og(t.declarations),_=e.updateVariableDeclaration(a,a.name,void 0,void 0,r);return Ve(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[_])),t)}else{let a=Ve(e.createAssignment(t,r),t);return Ve(e.createExpressionStatement(a),t)}}function SR(e,t,r){return au(t)?e.updateBlock(t,Ve(e.createNodeArray([r,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)}function A8(e,t){if(M_(t)){let r=A8(e,t.left),a=Xi(Ve(e.cloneNode(t.right),t.right),t.right.parent);return Ve(e.createPropertyAccessExpression(r,a),t)}else return Xi(Ve(e.cloneNode(t),t),t.parent)}function k8(e,t){return Ee(t)?e.createStringLiteralFromNode(t):ao(t)?Xi(Ve(e.cloneNode(t.expression),t.expression),t.expression.parent):Xi(Ve(e.cloneNode(t),t),t.parent)}function xR(e,t,r,a,_){let{firstAccessor:p,getAccessor:d,setAccessor:h}=P2(t,r);if(r===p)return Ve(e.createObjectDefinePropertyCall(a,k8(e,r.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:d&&Ve(Xr(e.createFunctionExpression(hd(d),void 0,void 0,void 0,d.parameters,void 0,d.body),d),d),set:h&&Ve(Xr(e.createFunctionExpression(hd(h),void 0,void 0,void 0,h.parameters,void 0,h.body),h),h)},!_)),p)}function wR(e,t,r){return Xr(Ve(e.createAssignment(Lm(e,r,t.name,t.name),t.initializer),t),t)}function CR(e,t,r){return Xr(Ve(e.createAssignment(Lm(e,r,t.name,t.name),e.cloneNode(t.name)),t),t)}function ER(e,t,r){return Xr(Ve(e.createAssignment(Lm(e,r,t.name,t.name),Xr(Ve(e.createFunctionExpression(hd(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function AR(e,t,r,a){switch(r.name&&jr(r.name)&&N.failBadSyntaxKind(r.name,"Private identifiers are not allowed in object literals."),r.kind){case 177:case 178:return xR(e,t.properties,r,a,!!t.multiLine);case 303:return wR(e,r,a);case 304:return CR(e,r,a);case 174:return ER(e,r,a)}}function kR(e,t,r,a,_){let p=t.operator;N.assert(p===46||p===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");let d=e.createTempVariable(a);r=e.createAssignment(d,r),Ve(r,t.operand);let h=Dm(t)?e.createPrefixUnaryExpression(p,d):e.createPostfixUnaryExpression(d,p);return Ve(h,t),_&&(h=e.createAssignment(_,h),Ve(h,t)),r=e.createComma(r,h),Ve(r,t),_8(t)&&(r=e.createComma(r,d),Ve(r,t)),r}function DR(e){return(ti(e)&65536)!==0}function Y0(e){return(ti(e)&32768)!==0}function PR(e){return(ti(e)&16384)!==0}function D8(e){return mn(e.expression)&&e.expression.text==="use strict"}function P8(e){for(let t of e)if(Ea(t)){if(D8(t))return t}else break}function I8(e){let t=g_(e);return t!==void 0&&Ea(t)&&D8(t)}function Jm(e){return e.kind===226&&e.operatorToken.kind===28}function IR(e){return Jm(e)||F_(e)}function N8(e){return is(e)&&Wt(e)&&!!Zd(e)}function NR(e){let t=em(e);return N.assertIsDefined(t),t}function Rm(e,t=15){switch(e.kind){case 217:return t&16&&N8(e)?!1:(t&1)!==0;case 216:case 234:case 233:case 238:return(t&2)!==0;case 235:return(t&4)!==0;case 360:return(t&8)!==0}return!1}function ls(e,t=15){for(;Rm(e,t);)e=e.expression;return e}function OR(e,t=15){let r=e.parent;for(;Rm(r,t);)r=r.parent,N.assert(r);return r}function MR(e){return ls(e,6)}function jm(e){return setStartsOnNewLine(e,!0)}function O8(e){let t=jl(e,ii),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function LR(e){let t=jl(e,ii),r=t&&t.emitNode;return!!r&&(!!r.externalHelpersModuleName||!!r.externalHelpers)}function JR(e,t,r,a,_,p,d){if(a.importHelpers&&Xg(r,a)){let h,l=ni(a);if(l>=5&&l<=99||r.impliedNodeFormat===99){let v=getEmitHelpers(r);if(v){let y=[];for(let C of v)if(!C.scoped){let S=C.importName;S&&Ol(y,S)}if(mt(y)){y.sort(Ci),h=e.createNamedImports(Aa(y,k=>I3(r,k)?e.createImportSpecifier(!1,void 0,e.createIdentifier(k)):e.createImportSpecifier(!1,e.createIdentifier(k),t.getUnscopedHelperName(k))));let C=jl(r,ii),S=getOrCreateEmitNode(C);S.externalHelpers=!0}}}else{let v=M8(e,r,a,_,p||d);v&&(h=e.createNamespaceImport(v))}if(h){let v=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,h),e.createStringLiteral(xm),void 0);return addInternalEmitFlags(v,2),v}}}function M8(e,t,r,a,_){if(r.importHelpers&&Xg(t,r)){let p=O8(t);if(p)return p;let d=ni(r),h=(a||U2(r)&&_)&&d!==4&&(d<5||t.impliedNodeFormat===1);if(!h){let l=getEmitHelpers(t);if(l){for(let v of l)if(!v.scoped){h=!0;break}}}if(h){let l=jl(t,ii),v=getOrCreateEmitNode(l);return v.externalHelpersModuleName||(v.externalHelpersModuleName=e.createUniqueName(xm))}}}function RR(e,t,r){let a=dT(t);if(a&&!mT(t)&&!J3(t)){let _=a.name;return wa(_)?_:e.createIdentifier(Xo(r,_)||Ot(_))}if(t.kind===272&&t.importClause||t.kind===278&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function jR(e,t,r,a,_,p){let d=d2(t);if(d&&mn(d))return BR(t,a,e,_,p)||FR(e,d,r)||e.cloneNode(d)}function FR(e,t,r){let a=r.renamedDependencies&&r.renamedDependencies.get(t.text);return a?e.createStringLiteral(a):void 0}function L8(e,t,r,a){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&A2(a))return e.createStringLiteral(E2(r,t.fileName))}}function BR(e,t,r,a,_){return L8(r,a.getExternalModuleFileFromDeclaration(e),t,_)}function J8(e){if(Bg(e))return e.initializer;if(_s(e)){let t=e.initializer;return Na(t,!0)?t.right:void 0}if(_u(e))return e.objectAssignmentInitializer;if(Na(e,!0))return e.right;if(y6(e))return J8(e.expression)}function Mo(e){if(Bg(e))return e.name;if(Fg(e)){switch(e.kind){case 303:return Mo(e.initializer);case 304:return e.name;case 305:return Mo(e.expression)}return}return Na(e,!0)?Mo(e.left):y6(e)?Mo(e.expression):e}function UR(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function qR(e){let t=R8(e);return N.assert(!!t||y8(e),"Invalid property name for binding element."),t}function R8(e){switch(e.kind){case 208:if(e.propertyName){let r=e.propertyName;return jr(r)?N.failBadSyntaxKind(r):ao(r)&&$b(r.expression)?r.expression:r}break;case 303:if(e.name){let r=e.name;return jr(r)?N.failBadSyntaxKind(r):ao(r)&&$b(r.expression)?r.expression:r}break;case 305:return e.name&&jr(e.name)?N.failBadSyntaxKind(e.name):e.name}let t=Mo(e);if(t&&zl(t))return t}function $b(e){let t=e.kind;return t===11||t===9}function j8(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function K0(e){if(e){let t=e;for(;;){if(Ee(t)||!t.body)return Ee(t)?t:t.name;t=t.body}}}function zR(e){let t=e.kind;return t===176||t===178}function F8(e){let t=e.kind;return t===176||t===177||t===178}function WR(e){let t=e.kind;return t===303||t===304||t===262||t===176||t===181||t===175||t===282||t===243||t===264||t===265||t===266||t===267||t===271||t===272||t===270||t===278||t===277}function VR(e){let t=e.kind;return t===175||t===303||t===304||t===282||t===270}function HR(e){return Pl(e)||Dd(e)}function GR(e){return Ee(e)||d6(e)}function XR(e){return zx(e)||s6(e)||_6(e)}function $R(e){return Pl(e)||s6(e)||_6(e)}function QR(e){return Ee(e)||mn(e)}function YR(e){let t=e.kind;return t===106||t===112||t===97||Og(e)||Dm(e)}function KR(e){return e===43}function ZR(e){return e===42||e===44||e===45}function ej(e){return KR(e)||ZR(e)}function tj(e){return e===40||e===41}function rj(e){return tj(e)||ej(e)}function nj(e){return e===48||e===49||e===50}function ij(e){return nj(e)||rj(e)}function aj(e){return e===30||e===33||e===32||e===34||e===104||e===103}function oj(e){return aj(e)||ij(e)}function sj(e){return e===35||e===37||e===36||e===38}function _j(e){return sj(e)||oj(e)}function cj(e){return e===51||e===52||e===53}function lj(e){return cj(e)||_j(e)}function uj(e){return e===56||e===57}function pj(e){return uj(e)||lj(e)}function fj(e){return e===61||pj(e)||D_(e)}function dj(e){return fj(e)||e===28}function mj(e){return dj(e.kind)}function hj(e,t,r,a,_,p){let d=new U8(e,t,r,a,_,p);return h;function h(l,v){let y={value:void 0},C=[Id.enter],S=[l],k=[void 0],L=0;for(;C[L]!==Id.done;)L=C[L](d,L,C,S,k,y,v);return N.assertEqual(L,0),y.value}}function B8(e){return e===95||e===90}function yj(e){let t=e.kind;return B8(t)}function gj(e){let t=e.kind;return bi(t)&&!B8(t)}function bj(e,t){if(t!==void 0)return t.length===0?t:Ve(e.createNodeArray([],t.hasTrailingComma),t)}function vj(e){var t;let r=e.emitNode.autoGenerate;if(r.flags&4){let a=r.id,_=e,p=_.original;for(;p;){_=p;let d=(t=_.emitNode)==null?void 0:t.autoGenerate;if(ro(_)&&(d===void 0||d.flags&4&&d.id!==a))break;p=_.original}return _}return e}function Z0(e,t){return typeof e=="object"?Pd(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function Tj(e,t){return typeof e=="string"?e:Sj(e,N.checkDefined(t))}function Sj(e,t){return Mg(e)?t(e).slice(1):wa(e)?t(e):jr(e)?e.escapedText.slice(1):Ot(e)}function Pd(e,t,r,a,_){return t=Z0(t,_),a=Z0(a,_),r=Tj(r,_),`${e?"#":""}${t}${r}${a}`}function xj(e,t,r,a){return e.updatePropertyDeclaration(t,r,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,a)}function wj(e,t,r,a,_=e.createThis()){return e.createGetAccessorDeclaration(r,a,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(_,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function Cj(e,t,r,a,_=e.createThis()){return e.createSetAccessorDeclaration(r,a,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(_,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function Ej(e){let t=e.expression;for(;;){if(t=ls(t),F_(t)){t=ka(t.elements);continue}if(Jm(t)){t=t.right;continue}if(Na(t,!0)&&wa(t.left))return t;break}}function Aj(e){return is(e)&&Ta(e)&&!e.emitNode}function ol(e,t){if(Aj(e))ol(e.expression,t);else if(Jm(e))ol(e.left,t),ol(e.right,t);else if(F_(e))for(let r of e.elements)ol(r,t);else t.push(e)}function kj(e){let t=[];return ol(e,t),t}function U6(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of j8(e)){let r=Mo(t);if(r&&u3(r)&&(r.transformFlags&65536||r.transformFlags&128&&U6(r)))return!0}return!1}var Id,U8,Dj=Vt({"src/compiler/factory/utilities.ts"(){"use strict";Dr(),(e=>{function t(y,C,S,k,L,G,K){let ue=C>0?L[C-1]:void 0;return N.assertEqual(S[C],t),L[C]=y.onEnter(k[C],ue,K),S[C]=h(y,t),C}e.enter=t;function r(y,C,S,k,L,G,K){N.assertEqual(S[C],r),N.assertIsDefined(y.onLeft),S[C]=h(y,r);let ue=y.onLeft(k[C].left,L[C],k[C]);return ue?(v(C,k,ue),l(C,S,k,L,ue)):C}e.left=r;function a(y,C,S,k,L,G,K){return N.assertEqual(S[C],a),N.assertIsDefined(y.onOperator),S[C]=h(y,a),y.onOperator(k[C].operatorToken,L[C],k[C]),C}e.operator=a;function _(y,C,S,k,L,G,K){N.assertEqual(S[C],_),N.assertIsDefined(y.onRight),S[C]=h(y,_);let ue=y.onRight(k[C].right,L[C],k[C]);return ue?(v(C,k,ue),l(C,S,k,L,ue)):C}e.right=_;function p(y,C,S,k,L,G,K){N.assertEqual(S[C],p),S[C]=h(y,p);let ue=y.onExit(k[C],L[C]);if(C>0){if(C--,y.foldState){let Y=S[C]===p?"right":"left";L[C]=y.foldState(L[C],ue,Y)}}else G.value=ue;return C}e.exit=p;function d(y,C,S,k,L,G,K){return N.assertEqual(S[C],d),C}e.done=d;function h(y,C){switch(C){case t:if(y.onLeft)return r;case r:if(y.onOperator)return a;case a:if(y.onRight)return _;case _:return p;case p:return d;case d:return d;default:N.fail("Invalid state")}}e.nextState=h;function l(y,C,S,k,L){return y++,C[y]=t,S[y]=L,k[y]=void 0,y}function v(y,C,S){if(N.shouldAssert(2))for(;y>=0;)N.assert(C[y]!==S,"Circular traversal detected."),y--}})(Id||(Id={})),U8=class{constructor(e,t,r,a,_,p){this.onEnter=e,this.onLeft=t,this.onOperator=r,this.onRight=a,this.onExit=_,this.foldState=p}}}});function Ve(e,t){return t?Ya(e,t.pos,t.end):e}function q_(e){let t=e.kind;return t===168||t===169||t===171||t===172||t===173||t===174||t===176||t===177||t===178||t===181||t===185||t===218||t===219||t===231||t===243||t===262||t===263||t===264||t===265||t===266||t===267||t===271||t===272||t===277||t===278}function q8(e){let t=e.kind;return t===169||t===172||t===174||t===177||t===178||t===231||t===263}var Pj=Vt({"src/compiler/factory/utilitiesPublic.ts"(){"use strict";Dr()}});function P(e,t){return t&&e(t)}function _e(e,t,r){if(r){if(t)return t(r);for(let a of r){let _=e(a);if(_)return _}}}function z8(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function ml(e){return yr(e.statements,Ij)||Nj(e)}function Ij(e){return q_(e)&&Oj(e,95)||w6(e)&&Nm(e.moduleReference)||C6(e)||ss(e)||B_(e)?e:void 0}function Nj(e){return e.flags&8388608?W8(e):void 0}function W8(e){return Mj(e)?e:Bt(e,W8)}function Oj(e,t){return mt(e.modifiers,r=>r.kind===t)}function Mj(e){return b6(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function Qb(e,t,r){return _e(t,r,e.typeParameters)||_e(t,r,e.parameters)||P(t,e.type)}function Yb(e,t,r){return _e(t,r,e.types)}function Kb(e,t,r){return P(t,e.type)}function Zb(e,t,r){return _e(t,r,e.elements)}function ev(e,t,r){return P(t,e.expression)||P(t,e.questionDotToken)||_e(t,r,e.typeArguments)||_e(t,r,e.arguments)}function tv(e,t,r){return _e(t,r,e.statements)}function rv(e,t,r){return P(t,e.label)}function nv(e,t,r){return _e(t,r,e.modifiers)||P(t,e.name)||_e(t,r,e.typeParameters)||_e(t,r,e.heritageClauses)||_e(t,r,e.members)}function iv(e,t,r){return _e(t,r,e.elements)}function av(e,t,r){return P(t,e.propertyName)||P(t,e.name)}function ov(e,t,r){return P(t,e.tagName)||_e(t,r,e.typeArguments)||P(t,e.attributes)}function wo(e,t,r){return P(t,e.type)}function sv(e,t,r){return P(t,e.tagName)||(e.isNameFirst?P(t,e.name)||P(t,e.typeExpression):P(t,e.typeExpression)||P(t,e.name))||(typeof e.comment=="string"?void 0:_e(t,r,e.comment))}function Co(e,t,r){return P(t,e.tagName)||P(t,e.typeExpression)||(typeof e.comment=="string"?void 0:_e(t,r,e.comment))}function Kh(e,t,r){return P(t,e.name)}function Xa(e,t,r){return P(t,e.tagName)||(typeof e.comment=="string"?void 0:_e(t,r,e.comment))}function Lj(e,t,r){return P(t,e.expression)}function Bt(e,t,r){if(e===void 0||e.kind<=165)return;let a=Q8[e.kind];return a===void 0?void 0:a(e,t,r)}function eg(e,t,r){let a=_v(e),_=[];for(;_.length=0;--h)a.push(p[h]),_.push(d)}else{let h=t(p,d);if(h){if(h==="skip")continue;return h}if(p.kind>=166)for(let l of _v(p))a.push(l),_.push(p)}}}function _v(e){let t=[];return Bt(e,r,r),t;function r(a){t.unshift(a)}}function V8(e){e.externalModuleIndicator=ml(e)}function H8(e,t,r,a=!1,_){var p,d,h,l;(p=xa)==null||p.push(xa.Phase.Parse,"createSourceFile",{path:e},!0),Lb("beforeParse");let v;(d=Yf)==null||d.logStartParseSourceFile(e);let{languageVersion:y,setExternalModuleIndicator:C,impliedNodeFormat:S}=typeof r=="object"?r:{languageVersion:r};if(y===100)v=Zn.parseSourceFile(e,t,y,void 0,a,6,Rn);else{let k=S===void 0?C:L=>(L.impliedNodeFormat=S,(C||V8)(L));v=Zn.parseSourceFile(e,t,y,void 0,a,_,k)}return(h=Yf)==null||h.logStopParseSourceFile(),Lb("afterParse"),gE("Parse","beforeParse","afterParse"),(l=xa)==null||l.pop(),v}function Jj(e,t){return Zn.parseIsolatedEntityName(e,t)}function Rj(e,t){return Zn.parseJsonText(e,t)}function Zo(e){return e.externalModuleIndicator!==void 0}function q6(e,t,r,a=!1){let _=Wf.updateSourceFile(e,t,r,a);return _.flags|=e.flags&12582912,_}function jj(e,t,r){let a=Zn.JSDocParser.parseIsolatedJSDocComment(e,t,r);return a&&a.jsDoc&&Zn.fixupParentReferences(a.jsDoc),a}function Fj(e,t,r){return Zn.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)}function G8(e){return ei(e,n6)||La(e,".ts")&&eo(T_(e),".d.")}function Bj(e,t,r,a){if(e){if(e==="import")return 99;if(e==="require")return 1;a(t,r-t,U.resolution_mode_should_be_either_require_or_import)}}function X8(e,t){let r=[];for(let a of Wo(t,0)||$e){let _=t.substring(a.pos,a.end);qj(r,a,_)}e.pragmas=new Map;for(let a of r){if(e.pragmas.has(a.name)){let _=e.pragmas.get(a.name);_ instanceof Array?_.push(a.args):e.pragmas.set(a.name,[_,a.args]);continue}e.pragmas.set(a.name,a.args)}}function $8(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((r,a)=>{switch(a){case"reference":{let _=e.referencedFiles,p=e.typeReferenceDirectives,d=e.libReferenceDirectives;yr(Pf(r),h=>{let{types:l,lib:v,path:y,["resolution-mode"]:C}=h.arguments;if(h.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(l){let S=Bj(C,l.pos,l.end,t);p.push({pos:l.pos,end:l.end,fileName:l.value,...S?{resolutionMode:S}:{}})}else v?d.push({pos:v.pos,end:v.end,fileName:v.value}):y?_.push({pos:y.pos,end:y.end,fileName:y.value}):t(h.range.pos,h.range.end-h.range.pos,U.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=Aa(Pf(r),_=>({name:_.arguments.name,path:_.arguments.path}));break}case"amd-module":{if(r instanceof Array)for(let _ of r)e.moduleName&&t(_.range.pos,_.range.end-_.range.pos,U.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=_.arguments.name;else e.moduleName=r.arguments.name;break}case"ts-nocheck":case"ts-check":{yr(Pf(r),_=>{(!e.checkJsDirective||_.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:a==="ts-check",end:_.range.end,pos:_.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:N.fail("Unhandled pragma kind")}})}function Uj(e){if(Vf.has(e))return Vf.get(e);let t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return Vf.set(e,t),t}function qj(e,t,r){let a=t.kind===2&&Y8.exec(r);if(a){let p=a[1].toLowerCase(),d=qd[p];if(!d||!(d.kind&1))return;if(d.args){let h={};for(let l of d.args){let y=Uj(l.name).exec(r);if(!y&&!l.optional)return;if(y){let C=y[2]||y[3];if(l.captureSpan){let S=t.pos+y.index+y[1].length+1;h[l.name]={value:C,pos:S,end:S+C.length}}else h[l.name]=C}}e.push({name:p,args:{arguments:h,range:t}})}else e.push({name:p,args:{arguments:{},range:t}});return}let _=t.kind===2&&K8.exec(r);if(_)return cv(e,t,2,_);if(t.kind===3){let p=/@(\S+)(\s+.*)?$/gim,d;for(;d=p.exec(r);)cv(e,t,4,d)}}function cv(e,t,r,a){if(!a)return;let _=a[1].toLowerCase(),p=qd[_];if(!p||!(p.kind&r))return;let d=a[2],h=zj(p,d);h!=="fail"&&e.push({name:_,args:{arguments:h,range:t}})}function zj(e,t){if(!t)return{};if(!e.args)return{};let r=Ud(t).split(/\s+/),a={};for(let _=0;_new(dv||(dv=wt.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(pv||(pv=wt.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(fv||(fv=wt.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(uv||(uv=wt.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(lv||(lv=wt.getNodeConstructor()))(e,-1,-1)},z_=Ad(1,tg),Q8={166:function(t,r,a){return P(r,t.left)||P(r,t.right)},168:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.name)||P(r,t.constraint)||P(r,t.default)||P(r,t.expression)},304:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.name)||P(r,t.questionToken)||P(r,t.exclamationToken)||P(r,t.equalsToken)||P(r,t.objectAssignmentInitializer)},305:function(t,r,a){return P(r,t.expression)},169:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.dotDotDotToken)||P(r,t.name)||P(r,t.questionToken)||P(r,t.type)||P(r,t.initializer)},172:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.name)||P(r,t.questionToken)||P(r,t.exclamationToken)||P(r,t.type)||P(r,t.initializer)},171:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.name)||P(r,t.questionToken)||P(r,t.type)||P(r,t.initializer)},303:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.name)||P(r,t.questionToken)||P(r,t.exclamationToken)||P(r,t.initializer)},260:function(t,r,a){return P(r,t.name)||P(r,t.exclamationToken)||P(r,t.type)||P(r,t.initializer)},208:function(t,r,a){return P(r,t.dotDotDotToken)||P(r,t.propertyName)||P(r,t.name)||P(r,t.initializer)},181:function(t,r,a){return _e(r,a,t.modifiers)||_e(r,a,t.typeParameters)||_e(r,a,t.parameters)||P(r,t.type)},185:function(t,r,a){return _e(r,a,t.modifiers)||_e(r,a,t.typeParameters)||_e(r,a,t.parameters)||P(r,t.type)},184:function(t,r,a){return _e(r,a,t.modifiers)||_e(r,a,t.typeParameters)||_e(r,a,t.parameters)||P(r,t.type)},179:Qb,180:Qb,174:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.asteriskToken)||P(r,t.name)||P(r,t.questionToken)||P(r,t.exclamationToken)||_e(r,a,t.typeParameters)||_e(r,a,t.parameters)||P(r,t.type)||P(r,t.body)},173:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.name)||P(r,t.questionToken)||_e(r,a,t.typeParameters)||_e(r,a,t.parameters)||P(r,t.type)},176:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.name)||_e(r,a,t.typeParameters)||_e(r,a,t.parameters)||P(r,t.type)||P(r,t.body)},177:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.name)||_e(r,a,t.typeParameters)||_e(r,a,t.parameters)||P(r,t.type)||P(r,t.body)},178:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.name)||_e(r,a,t.typeParameters)||_e(r,a,t.parameters)||P(r,t.type)||P(r,t.body)},262:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.asteriskToken)||P(r,t.name)||_e(r,a,t.typeParameters)||_e(r,a,t.parameters)||P(r,t.type)||P(r,t.body)},218:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.asteriskToken)||P(r,t.name)||_e(r,a,t.typeParameters)||_e(r,a,t.parameters)||P(r,t.type)||P(r,t.body)},219:function(t,r,a){return _e(r,a,t.modifiers)||_e(r,a,t.typeParameters)||_e(r,a,t.parameters)||P(r,t.type)||P(r,t.equalsGreaterThanToken)||P(r,t.body)},175:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.body)},183:function(t,r,a){return P(r,t.typeName)||_e(r,a,t.typeArguments)},182:function(t,r,a){return P(r,t.assertsModifier)||P(r,t.parameterName)||P(r,t.type)},186:function(t,r,a){return P(r,t.exprName)||_e(r,a,t.typeArguments)},187:function(t,r,a){return _e(r,a,t.members)},188:function(t,r,a){return P(r,t.elementType)},189:function(t,r,a){return _e(r,a,t.elements)},192:Yb,193:Yb,194:function(t,r,a){return P(r,t.checkType)||P(r,t.extendsType)||P(r,t.trueType)||P(r,t.falseType)},195:function(t,r,a){return P(r,t.typeParameter)},205:function(t,r,a){return P(r,t.argument)||P(r,t.assertions)||P(r,t.qualifier)||_e(r,a,t.typeArguments)},302:function(t,r,a){return P(r,t.assertClause)},196:Kb,198:Kb,199:function(t,r,a){return P(r,t.objectType)||P(r,t.indexType)},200:function(t,r,a){return P(r,t.readonlyToken)||P(r,t.typeParameter)||P(r,t.nameType)||P(r,t.questionToken)||P(r,t.type)||_e(r,a,t.members)},201:function(t,r,a){return P(r,t.literal)},202:function(t,r,a){return P(r,t.dotDotDotToken)||P(r,t.name)||P(r,t.questionToken)||P(r,t.type)},206:Zb,207:Zb,209:function(t,r,a){return _e(r,a,t.elements)},210:function(t,r,a){return _e(r,a,t.properties)},211:function(t,r,a){return P(r,t.expression)||P(r,t.questionDotToken)||P(r,t.name)},212:function(t,r,a){return P(r,t.expression)||P(r,t.questionDotToken)||P(r,t.argumentExpression)},213:ev,214:ev,215:function(t,r,a){return P(r,t.tag)||P(r,t.questionDotToken)||_e(r,a,t.typeArguments)||P(r,t.template)},216:function(t,r,a){return P(r,t.type)||P(r,t.expression)},217:function(t,r,a){return P(r,t.expression)},220:function(t,r,a){return P(r,t.expression)},221:function(t,r,a){return P(r,t.expression)},222:function(t,r,a){return P(r,t.expression)},224:function(t,r,a){return P(r,t.operand)},229:function(t,r,a){return P(r,t.asteriskToken)||P(r,t.expression)},223:function(t,r,a){return P(r,t.expression)},225:function(t,r,a){return P(r,t.operand)},226:function(t,r,a){return P(r,t.left)||P(r,t.operatorToken)||P(r,t.right)},234:function(t,r,a){return P(r,t.expression)||P(r,t.type)},235:function(t,r,a){return P(r,t.expression)},238:function(t,r,a){return P(r,t.expression)||P(r,t.type)},236:function(t,r,a){return P(r,t.name)},227:function(t,r,a){return P(r,t.condition)||P(r,t.questionToken)||P(r,t.whenTrue)||P(r,t.colonToken)||P(r,t.whenFalse)},230:function(t,r,a){return P(r,t.expression)},241:tv,268:tv,312:function(t,r,a){return _e(r,a,t.statements)||P(r,t.endOfFileToken)},243:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.declarationList)},261:function(t,r,a){return _e(r,a,t.declarations)},244:function(t,r,a){return P(r,t.expression)},245:function(t,r,a){return P(r,t.expression)||P(r,t.thenStatement)||P(r,t.elseStatement)},246:function(t,r,a){return P(r,t.statement)||P(r,t.expression)},247:function(t,r,a){return P(r,t.expression)||P(r,t.statement)},248:function(t,r,a){return P(r,t.initializer)||P(r,t.condition)||P(r,t.incrementor)||P(r,t.statement)},249:function(t,r,a){return P(r,t.initializer)||P(r,t.expression)||P(r,t.statement)},250:function(t,r,a){return P(r,t.awaitModifier)||P(r,t.initializer)||P(r,t.expression)||P(r,t.statement)},251:rv,252:rv,253:function(t,r,a){return P(r,t.expression)},254:function(t,r,a){return P(r,t.expression)||P(r,t.statement)},255:function(t,r,a){return P(r,t.expression)||P(r,t.caseBlock)},269:function(t,r,a){return _e(r,a,t.clauses)},296:function(t,r,a){return P(r,t.expression)||_e(r,a,t.statements)},297:function(t,r,a){return _e(r,a,t.statements)},256:function(t,r,a){return P(r,t.label)||P(r,t.statement)},257:function(t,r,a){return P(r,t.expression)},258:function(t,r,a){return P(r,t.tryBlock)||P(r,t.catchClause)||P(r,t.finallyBlock)},299:function(t,r,a){return P(r,t.variableDeclaration)||P(r,t.block)},170:function(t,r,a){return P(r,t.expression)},263:nv,231:nv,264:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.name)||_e(r,a,t.typeParameters)||_e(r,a,t.heritageClauses)||_e(r,a,t.members)},265:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.name)||_e(r,a,t.typeParameters)||P(r,t.type)},266:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.name)||_e(r,a,t.members)},306:function(t,r,a){return P(r,t.name)||P(r,t.initializer)},267:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.name)||P(r,t.body)},271:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.name)||P(r,t.moduleReference)},272:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.importClause)||P(r,t.moduleSpecifier)||P(r,t.assertClause)},273:function(t,r,a){return P(r,t.name)||P(r,t.namedBindings)},300:function(t,r,a){return _e(r,a,t.elements)},301:function(t,r,a){return P(r,t.name)||P(r,t.value)},270:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.name)},274:function(t,r,a){return P(r,t.name)},280:function(t,r,a){return P(r,t.name)},275:iv,279:iv,278:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.exportClause)||P(r,t.moduleSpecifier)||P(r,t.assertClause)},276:av,281:av,277:function(t,r,a){return _e(r,a,t.modifiers)||P(r,t.expression)},228:function(t,r,a){return P(r,t.head)||_e(r,a,t.templateSpans)},239:function(t,r,a){return P(r,t.expression)||P(r,t.literal)},203:function(t,r,a){return P(r,t.head)||_e(r,a,t.templateSpans)},204:function(t,r,a){return P(r,t.type)||P(r,t.literal)},167:function(t,r,a){return P(r,t.expression)},298:function(t,r,a){return _e(r,a,t.types)},233:function(t,r,a){return P(r,t.expression)||_e(r,a,t.typeArguments)},283:function(t,r,a){return P(r,t.expression)},282:function(t,r,a){return _e(r,a,t.modifiers)},361:function(t,r,a){return _e(r,a,t.elements)},284:function(t,r,a){return P(r,t.openingElement)||_e(r,a,t.children)||P(r,t.closingElement)},288:function(t,r,a){return P(r,t.openingFragment)||_e(r,a,t.children)||P(r,t.closingFragment)},285:ov,286:ov,292:function(t,r,a){return _e(r,a,t.properties)},291:function(t,r,a){return P(r,t.name)||P(r,t.initializer)},293:function(t,r,a){return P(r,t.expression)},294:function(t,r,a){return P(r,t.dotDotDotToken)||P(r,t.expression)},287:function(t,r,a){return P(r,t.tagName)},295:function(t,r,a){return P(r,t.namespace)||P(r,t.name)},190:wo,191:wo,316:wo,322:wo,321:wo,323:wo,325:wo,324:function(t,r,a){return _e(r,a,t.parameters)||P(r,t.type)},327:function(t,r,a){return(typeof t.comment=="string"?void 0:_e(r,a,t.comment))||_e(r,a,t.tags)},354:function(t,r,a){return P(r,t.tagName)||P(r,t.name)||(typeof t.comment=="string"?void 0:_e(r,a,t.comment))},317:function(t,r,a){return P(r,t.name)},318:function(t,r,a){return P(r,t.left)||P(r,t.right)},348:sv,355:sv,337:function(t,r,a){return P(r,t.tagName)||(typeof t.comment=="string"?void 0:_e(r,a,t.comment))},336:function(t,r,a){return P(r,t.tagName)||P(r,t.class)||(typeof t.comment=="string"?void 0:_e(r,a,t.comment))},335:function(t,r,a){return P(r,t.tagName)||P(r,t.class)||(typeof t.comment=="string"?void 0:_e(r,a,t.comment))},352:function(t,r,a){return P(r,t.tagName)||P(r,t.constraint)||_e(r,a,t.typeParameters)||(typeof t.comment=="string"?void 0:_e(r,a,t.comment))},353:function(t,r,a){return P(r,t.tagName)||(t.typeExpression&&t.typeExpression.kind===316?P(r,t.typeExpression)||P(r,t.fullName)||(typeof t.comment=="string"?void 0:_e(r,a,t.comment)):P(r,t.fullName)||P(r,t.typeExpression)||(typeof t.comment=="string"?void 0:_e(r,a,t.comment)))},345:function(t,r,a){return P(r,t.tagName)||P(r,t.fullName)||P(r,t.typeExpression)||(typeof t.comment=="string"?void 0:_e(r,a,t.comment))},349:Co,351:Co,350:Co,347:Co,357:Co,356:Co,346:Co,330:function(t,r,a){return yr(t.typeParameters,r)||yr(t.parameters,r)||P(r,t.type)},331:Kh,332:Kh,333:Kh,329:function(t,r,a){return yr(t.jsDocPropertyTags,r)},334:Xa,339:Xa,340:Xa,341:Xa,342:Xa,343:Xa,338:Xa,344:Xa,360:Lj},(e=>{var t=ns(99,!0),r=40960,a,_,p,d,h;function l(c){return wn++,c}var v={createBaseSourceFileNode:c=>l(new h(c,0,0)),createBaseIdentifierNode:c=>l(new p(c,0,0)),createBasePrivateIdentifierNode:c=>l(new d(c,0,0)),createBaseTokenNode:c=>l(new _(c,0,0)),createBaseNode:c=>l(new a(c,0,0))},y=Ad(11,v),{createNodeArray:C,createNumericLiteral:S,createStringLiteral:k,createLiteralLikeNode:L,createIdentifier:G,createPrivateIdentifier:K,createToken:ue,createArrayLiteralExpression:Y,createObjectLiteralExpression:B,createPropertyAccessExpression:ae,createPropertyAccessChain:Ce,createElementAccessExpression:Ze,createElementAccessChain:qe,createCallExpression:rt,createCallChain:it,createNewExpression:Ir,createParenthesizedExpression:ar,createBlock:ci,createVariableStatement:or,createExpressionStatement:Nr,createIfStatement:Ge,createWhileStatement:Gt,createForStatement:Ur,createForOfStatement:Xt,createVariableDeclaration:Tn,createVariableDeclarationList:Sn}=y,sr,$t,St,xn,Tr,vt,ct,Ut,fr,ht,wn,Tt,Or,pt,Mr,at,er=!0,Qt=!1;function tn(c,m,b,w,A=!1,R,te){var le;if(R=WS(c,R),R===6){let ie=Un(c,m,b,w,A);return convertToJson(ie,(le=ie.statements[0])==null?void 0:le.expression,ie.parseDiagnostics,!1,void 0),ie.referencedFiles=$e,ie.typeReferenceDirectives=$e,ie.libReferenceDirectives=$e,ie.amdDependencies=$e,ie.hasNoDefaultLib=!1,ie.pragmas=pg,ie}rn(c,m,b,w,R);let ne=Di(b,A,R,te||V8);return nn(),ne}e.parseSourceFile=tn;function Bn(c,m){rn("",c,m,void 0,1),O();let b=la(!0),w=f()===1&&!ct.length;return nn(),w?b:void 0}e.parseIsolatedEntityName=Bn;function Un(c,m,b=2,w,A=!1){rn(c,m,b,w,6),$t=at,O();let R=T(),te,le;if(f()===1)te=Ft([],R,R),le=dr();else{let ve;for(;f()!==1;){let Ue;switch(f()){case 23:Ue=Jc();break;case 112:case 97:case 106:Ue=dr();break;case 41:Te(()=>O()===9&&O()!==59)?Ue=Ac():Ue=Ls();break;case 9:case 11:if(Te(()=>O()!==59)){Ue=fi();break}default:Ue=Ls();break}ve&&zt(ve)?ve.push(Ue):ve?ve=[ve,Ue]:(ve=Ue,f()!==1&&Je(U.Unexpected_token))}let He=zt(ve)?M(Y(ve),R):N.checkDefined(ve),Be=Nr(He);M(Be,R),te=Ft([Be],R),le=Hn(1,U.Unexpected_token)}let ne=ge(c,2,6,!1,te,le,$t,Rn);A&&oe(ne),ne.nodeCount=wn,ne.identifierCount=Or,ne.identifiers=Tt,ne.parseDiagnostics=$a(ct,ne),Ut&&(ne.jsDocDiagnostics=$a(Ut,ne));let ie=ne;return nn(),ie}e.parseJsonText=Un;function rn(c,m,b,w,A){switch(a=wt.getNodeConstructor(),_=wt.getTokenConstructor(),p=wt.getIdentifierConstructor(),d=wt.getPrivateIdentifierConstructor(),h=wt.getSourceFileConstructor(),sr=pn(c),St=m,xn=b,fr=w,Tr=A,vt=R0(A),ct=[],pt=0,Tt=new Map,Or=0,wn=0,$t=0,er=!0,Tr){case 1:case 2:at=524288;break;case 6:at=134742016;break;default:at=0;break}Qt=!1,t.setText(St),t.setOnError(j),t.setScriptTarget(xn),t.setLanguageVariant(vt)}function nn(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),St=void 0,xn=void 0,fr=void 0,Tr=void 0,vt=void 0,$t=0,ct=void 0,Ut=void 0,pt=0,Tt=void 0,Mr=void 0,er=!0}function Di(c,m,b,w){let A=G8(sr);A&&(at|=33554432),$t=at,O();let R=zr(0,wr);N.assert(f()===1);let te=x(),le=Ae(dr(),te),ne=ge(sr,c,b,A,R,le,$t,w);return X8(ne,St),$8(ne,ie),ne.commentDirectives=t.getCommentDirectives(),ne.nodeCount=wn,ne.identifierCount=Or,ne.identifiers=Tt,ne.parseDiagnostics=$a(ct,ne),Ut&&(ne.jsDocDiagnostics=$a(Ut,ne)),m&&oe(ne),ne;function ie(ve,He,Be){ct.push(Ao(sr,ve,He,Be))}}let qn=!1;function Ae(c,m){if(!m)return c;N.assert(!c.jsDoc);let b=Za(G3(c,St),w=>gf.parseJSDocComment(c,w.pos,w.end-w.pos));return b.length&&(c.jsDoc=b),qn&&(qn=!1,c.flags|=536870912),c}function q(c){let m=fr,b=Wf.createSyntaxCursor(c);fr={currentNode:ve};let w=[],A=ct;ct=[];let R=0,te=ne(c.statements,0);for(;te!==-1;){let He=c.statements[R],Be=c.statements[te];Rr(w,c.statements,R,te),R=ie(c.statements,te);let Ue=_l(A,Gr=>Gr.start>=He.pos),Rt=Ue>=0?_l(A,Gr=>Gr.start>=Be.pos,Ue):-1;Ue>=0&&Rr(ct,A,Ue,Rt>=0?Rt:void 0),_r(()=>{let Gr=at;for(at|=65536,t.resetTokenState(Be.pos),O();f()!==1;){let di=t.getTokenFullStart(),mi=gs(0,wr);if(w.push(mi),di===t.getTokenFullStart()&&O(),R>=0){let hi=c.statements[R];if(mi.end===hi.pos)break;mi.end>hi.pos&&(R=ie(c.statements,R+1))}}at=Gr},2),te=R>=0?ne(c.statements,R):-1}if(R>=0){let He=c.statements[R];Rr(w,c.statements,R);let Be=_l(A,Ue=>Ue.start>=He.pos);Be>=0&&Rr(ct,A,Be)}return fr=m,y.updateSourceFile(c,Ve(C(w),c.statements));function le(He){return!(He.flags&65536)&&!!(He.transformFlags&67108864)}function ne(He,Be){for(let Ue=Be;Ue118}function Et(){return f()===80?!0:f()===127&&En()||f()===135&&Sr()?!1:f()>118}function H(c,m,b=!0){return f()===c?(b&&O(),!0):(m?Je(m):Je(U._0_expected,nr(c)),!1)}let Fa=Object.keys(cl).filter(c=>c.length>2);function Ie(c){if(s8(c)){Mt(Nt(St,c.template.pos),c.template.end,U.Module_declaration_names_may_only_use_or_quoted_strings);return}let m=Ee(c)?Ot(c):void 0;if(!m||!Cg(m,xn)){Je(U._0_expected,nr(27));return}let b=Nt(St,c.pos);switch(m){case"const":case"let":case"var":Mt(b,c.end,U.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":ot(U.Interface_name_cannot_be_0,U.Interface_must_be_given_a_name,19);return;case"is":Mt(b,t.getTokenStart(),U.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":ot(U.Namespace_name_cannot_be_0,U.Namespace_must_be_given_a_name,19);return;case"type":ot(U.Type_alias_name_cannot_be_0,U.Type_alias_must_be_given_a_name,64);return}let w=Jv(m,Fa,A=>A)??cr(m);if(w){Mt(b,c.end,U.Unknown_keyword_or_identifier_Did_you_mean_0,w);return}f()!==0&&Mt(b,c.end,U.Unexpected_keyword_or_identifier)}function ot(c,m,b){f()===b?Je(m):Je(c,t.getTokenValue())}function cr(c){for(let m of Fa)if(c.length>m.length+2&&Fr(c,m))return`${m} ${c.slice(m.length)}`}function an(c,m,b){if(f()===60&&!t.hasPrecedingLineBreak()){Je(U.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(f()===21){Je(U.Cannot_start_a_function_call_in_a_type_annotation),O();return}if(m&&!ui()){b?Je(U._0_expected,nr(27)):Je(U.Expected_for_property_initializer);return}if(!fs()){if(b){Je(U._0_expected,nr(27));return}Ie(c)}}function Ba(c){return f()===c?(fe(),!0):(N.assert(Jf(c)),Je(U._0_expected,nr(c)),!1)}function kn(c,m,b,w){if(f()===m){O();return}let A=Je(U._0_expected,nr(m));b&&A&&nl(A,Ao(sr,w,1,U.The_parser_expected_to_find_a_1_to_match_the_0_token_here,nr(c),nr(m)))}function je(c){return f()===c?(O(),!0):!1}function dt(c){if(f()===c)return dr()}function li(c){if(f()===c)return t1()}function Hn(c,m,b){return dt(c)||Jr(c,!1,m||U._0_expected,b||nr(c))}function e1(c){let m=li(c);return m||(N.assert(Jf(c)),Jr(c,!1,U._0_expected,nr(c)))}function dr(){let c=T(),m=f();return O(),M(ue(m),c)}function t1(){let c=T(),m=f();return fe(),M(ue(m),c)}function ui(){return f()===27?!0:f()===20||f()===1||t.hasPrecedingLineBreak()}function fs(){return ui()?(f()===27&&O(),!0):!1}function xr(){return fs()||H(27)}function Ft(c,m,b,w){let A=C(c,w);return Ya(A,m,b??t.getTokenFullStart()),A}function M(c,m,b){return Ya(c,m,b??t.getTokenFullStart()),at&&(c.flags|=at),Qt&&(Qt=!1,c.flags|=262144),c}function Jr(c,m,b,...w){m?oa(t.getTokenFullStart(),0,b,...w):b&&Je(b,...w);let A=T(),R=c===80?G("",void 0):Sl(c)?y.createTemplateLiteralLikeNode(c,"","",void 0):c===9?S("",void 0):c===11?k("",void 0):c===282?y.createMissingDeclaration():ue(c);return M(R,A)}function sa(c){let m=Tt.get(c);return m===void 0&&Tt.set(c,m=c),m}function Ni(c,m,b){if(c){Or++;let le=T(),ne=f(),ie=sa(t.getTokenValue()),ve=t.hasExtendedUnicodeEscape();return $(),M(G(ie,ne,ve),le)}if(f()===81)return Je(b||U.Private_identifiers_are_not_allowed_outside_class_bodies),Ni(!0);if(f()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return Ni(!0);Or++;let w=f()===1,A=t.isReservedWord(),R=t.getTokenText(),te=A?U.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:U.Identifier_expected;return Jr(80,w,m||te,R)}function G_(c){return Ni(An(),void 0,c)}function Lt(c,m){return Ni(Et(),c,m)}function Yt(c){return Ni(kt(f()),c)}function Oi(){return kt(f())||f()===11||f()===9}function r1(){return kt(f())||f()===11}function Tu(c){if(f()===11||f()===9){let m=fi();return m.text=sa(m.text),m}return c&&f()===23?Su():f()===81?X_():Yt()}function Ua(){return Tu(!0)}function Su(){let c=T();H(23);let m=Le(Jt);return H(24),M(y.createComputedPropertyName(m),c)}function X_(){let c=T(),m=K(sa(t.getTokenValue()));return O(),M(m,c)}function _a(c){return f()===c&&ft($_)}function xu(){return O(),t.hasPrecedingLineBreak()?!1:ms()}function $_(){switch(f()){case 87:return O()===94;case 95:return O(),f()===90?Te(Mi):f()===156?Te(ds):wu();case 90:return Mi();case 126:case 139:case 153:return O(),ms();default:return xu()}}function wu(){return f()===60||f()!==42&&f()!==130&&f()!==19&&ms()}function ds(){return O(),wu()}function n1(){return bi(f())&&ft($_)}function ms(){return f()===23||f()===19||f()===42||f()===26||Oi()}function Mi(){return O(),f()===86||f()===100||f()===120||f()===60||f()===128&&Te(ah)||f()===134&&Te(Fc)}function Q_(c,m){if(bs(c))return!0;switch(c){case 0:case 1:case 3:return!(f()===27&&m)&&Bc();case 2:return f()===84||f()===90;case 4:return Te(Xu);case 5:return Te(dh)||f()===27&&!m;case 6:return f()===23||Oi();case 12:switch(f()){case 23:case 42:case 26:case 25:return!0;default:return Oi()}case 18:return Oi();case 9:return f()===23||f()===26||Oi();case 24:return r1();case 7:return f()===19?Te(hs):m?Et()&&!Eu():Sc()&&!Eu();case 8:return zc();case 10:return f()===28||f()===26||zc();case 19:return f()===103||f()===87||Et();case 15:switch(f()){case 28:case 25:return!0}case 11:return f()===26||Ri();case 16:return _c(!1);case 17:return _c(!0);case 20:case 21:return f()===28||pa();case 22:return lf();case 23:return f()===161&&Te(Yp)?!1:kt(f());case 13:return kt(f())||f()===19;case 14:return!0;case 25:return!0;case 26:return N.fail("ParsingContext.Count used as a context");default:N.assertNever(c,"Non-exhaustive case in 'isListElement'.")}}function hs(){if(N.assert(f()===19),O()===20){let c=O();return c===28||c===19||c===96||c===119}return!0}function ys(){return O(),Et()}function Cu(){return O(),kt(f())}function Y_(){return O(),n4(f())}function Eu(){return f()===119||f()===96?Te(Au):!1}function Au(){return O(),Ri()}function ku(){return O(),pa()}function po(c){if(f()===1)return!0;switch(c){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return f()===20;case 3:return f()===20||f()===84||f()===90;case 7:return f()===19||f()===96||f()===119;case 8:return fo();case 19:return f()===32||f()===21||f()===19||f()===96||f()===119;case 11:return f()===22||f()===27;case 15:case 21:case 10:return f()===24;case 17:case 16:case 18:return f()===22||f()===24;case 20:return f()!==28;case 22:return f()===19||f()===20;case 13:return f()===32||f()===44;case 14:return f()===30&&Te(Ah);default:return!1}}function fo(){return!!(ui()||Cc(f())||f()===39)}function i1(){N.assert(pt,"Missing parsing context");for(let c=0;c<26;c++)if(pt&1<=0)}function vs(c){return c===6?U.An_enum_member_name_must_be_followed_by_a_or:void 0}function pi(){let c=Ft([],T());return c.isMissingList=!0,c}function rc(c){return!!c.isMissingList}function ca(c,m,b,w){if(H(b)){let A=Wr(c,m);return H(w),A}return pi()}function la(c,m){let b=T(),w=c?Yt(m):Lt(m);for(;je(25)&&f()!==30;)w=M(y.createQualifiedName(w,qa(c,!1)),b);return w}function o1(c,m){return M(y.createQualifiedName(c,m),c.pos)}function qa(c,m){if(t.hasPrecedingLineBreak()&&kt(f())&&Te(Js))return Jr(80,!0,U.Identifier_expected);if(f()===81){let b=X_();return m?b:Jr(80,!0,U.Identifier_expected)}return c?Yt():Lt()}function s1(c){let m=T(),b=[],w;do w=ju(c),b.push(w);while(w.literal.kind===17);return Ft(b,m)}function Ts(c){let m=T();return M(y.createTemplateExpression(ic(c),s1(c)),m)}function _1(){let c=T();return M(y.createTemplateLiteralType(ic(!1),nc()),c)}function nc(){let c=T(),m=[],b;do b=Ju(),m.push(b);while(b.literal.kind===17);return Ft(m,c)}function Ju(){let c=T();return M(y.createTemplateLiteralTypeSpan(gt(),Ru(!1)),c)}function Ru(c){return f()===20?(we(c),c1()):Hn(18,U._0_expected,nr(20))}function ju(c){let m=T();return M(y.createTemplateSpan(Le(Jt),Ru(c)),m)}function fi(){return za(f())}function ic(c){!c&&t.getTokenFlags()&26656&&we(!1);let m=za(f());return N.assert(m.kind===16,"Template head has wrong token kind"),m}function c1(){let c=za(f());return N.assert(c.kind===17||c.kind===18,"Template fragment has wrong token kind"),c}function Ss(c){let m=c===15||c===18,b=t.getTokenText();return b.substring(1,b.length-(t.isUnterminated()?0:m?1:2))}function za(c){let m=T(),b=Sl(c)?y.createTemplateLiteralLikeNode(c,t.getTokenValue(),Ss(c),t.getTokenFlags()&7176):c===9?S(t.getTokenValue(),t.getNumericLiteralFlags()):c===11?k(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):Ng(c)?L(c,t.getTokenValue()):N.fail();return t.hasExtendedUnicodeEscape()&&(b.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(b.isUnterminated=!0),O(),M(b,m)}function Fu(){return la(!0,U.Type_expected)}function ac(){if(!t.hasPrecedingLineBreak()&&et()===30)return ca(20,gt,30,32)}function Li(){let c=T();return M(y.createTypeReferenceNode(Fu(),ac()),c)}function oc(c){switch(c.kind){case 183:return zi(c.typeName);case 184:case 185:{let{parameters:m,type:b}=c;return rc(m)||oc(b)}case 196:return oc(c.type);default:return!1}}function l1(c){return O(),M(y.createTypePredicateNode(void 0,c,gt()),c.pos)}function Bu(){let c=T();return O(),M(y.createThisTypeNode(),c)}function u1(){let c=T();return O(),M(y.createJSDocAllType(),c)}function Uu(){let c=T();return O(),M(y.createJSDocNonNullableType(op(),!1),c)}function p1(){let c=T();return O(),f()===28||f()===20||f()===22||f()===32||f()===64||f()===52?M(y.createJSDocUnknownType(),c):M(y.createJSDocNullableType(gt(),!1),c)}function qu(){let c=T(),m=x();if(Te(df)){O();let b=Gn(36),w=Dn(59,!1);return Ae(M(y.createJSDocFunctionType(b,w),c),m)}return M(y.createTypeReferenceNode(Yt(),void 0),c)}function f1(){let c=T(),m;return(f()===110||f()===105)&&(m=Yt(),H(59)),M(y.createParameterDeclaration(void 0,void 0,m,void 0,xs(),void 0),c)}function xs(){t.setInJSDocType(!0);let c=T();if(je(144)){let w=y.createJSDocNamepathType(void 0);e:for(;;)switch(f()){case 20:case 1:case 28:case 5:break e;default:fe()}return t.setInJSDocType(!1),M(w,c)}let m=je(26),b=vc();return t.setInJSDocType(!1),m&&(b=M(y.createJSDocVariadicType(b),c)),f()===64?(O(),M(y.createJSDocOptionalType(b),c)):b}function sc(){let c=T();H(114);let m=la(!0),b=t.hasPrecedingLineBreak()?void 0:qs();return M(y.createTypeQueryNode(m,b),c)}function d1(){let c=T(),m=Xn(!1,!0),b=Lt(),w,A;je(96)&&(pa()||!Ri()?w=gt():A=Ps());let R=je(64)?gt():void 0,te=y.createTypeParameterDeclaration(m,b,w,R);return te.expression=A,M(te,c)}function Vr(){if(f()===30)return ca(19,d1,30,32)}function _c(c){return f()===26||zc()||bi(f())||f()===60||pa(!c)}function zu(c){let m=Va(U.Private_identifiers_cannot_be_used_as_parameters);return om(m)===0&&!mt(c)&&bi(f())&&O(),m}function Wu(){return An()||f()===23||f()===19}function cc(c){return lc(c)}function Vu(c){return lc(c,!1)}function lc(c,m=!0){let b=T(),w=x(),A=c?Cn(()=>Xn(!0)):zn(()=>Xn(!0));if(f()===110){let ne=y.createParameterDeclaration(A,void 0,Ni(!0),void 0,Ji(),void 0),ie=g_(A);return ie&&Lr(ie,U.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Ae(M(ne,b),w)}let R=er;er=!1;let te=dt(26);if(!m&&!Wu())return;let le=Ae(M(y.createParameterDeclaration(A,te,zu(A),dt(58),Ji(),ji()),b),w);return er=R,le}function Dn(c,m){if(Hu(c,m))return yt(vc)}function Hu(c,m){return c===39?(H(c),!0):je(59)?!0:m&&f()===39?(Je(U._0_expected,nr(59)),O(),!0):!1}function ws(c,m){let b=En(),w=Sr();z(!!(c&1)),ee(!!(c&2));let A=c&32?Wr(17,f1):Wr(16,()=>m?cc(w):Vu(w));return z(b),ee(w),A}function Gn(c){if(!H(21))return pi();let m=ws(c,!0);return H(22),m}function Cs(){je(28)||xr()}function uc(c){let m=T(),b=x();c===180&&H(105);let w=Vr(),A=Gn(4),R=Dn(59,!0);Cs();let te=c===179?y.createCallSignature(w,A,R):y.createConstructSignature(w,A,R);return Ae(M(te,m),b)}function Gu(){return f()===23&&Te(m1)}function m1(){if(O(),f()===26||f()===24)return!0;if(bi(f())){if(O(),Et())return!0}else if(Et())O();else return!1;return f()===59||f()===28?!0:f()!==58?!1:(O(),f()===59||f()===28||f()===24)}function ua(c,m,b){let w=ca(16,()=>cc(!1),23,24),A=Ji();Cs();let R=y.createIndexSignature(b,w,A);return Ae(M(R,c),m)}function h1(c,m,b){let w=Ua(),A=dt(58),R;if(f()===21||f()===30){let te=Vr(),le=Gn(4),ne=Dn(59,!0);R=y.createMethodSignature(b,w,A,te,le,ne)}else{let te=Ji();R=y.createPropertySignature(b,w,A,te),f()===64&&(R.initializer=ji())}return Cs(),Ae(M(R,c),m)}function Xu(){if(f()===21||f()===30||f()===139||f()===153)return!0;let c=!1;for(;bi(f());)c=!0,O();return f()===23?!0:(Oi()&&(c=!0,O()),c?f()===21||f()===30||f()===58||f()===59||f()===28||ui():!1)}function pc(){if(f()===21||f()===30)return uc(179);if(f()===105&&Te(fc))return uc(180);let c=T(),m=x(),b=Xn(!1);return _a(139)?da(c,m,b,177,4):_a(153)?da(c,m,b,178,4):Gu()?ua(c,m,b):h1(c,m,b)}function fc(){return O(),f()===21||f()===30}function Es(){return O()===25}function $u(){switch(O()){case 21:case 30:case 25:return!0}return!1}function Qu(){let c=T();return M(y.createTypeLiteralNode(Yu()),c)}function Yu(){let c;return H(19)?(c=zr(4,pc),H(20)):c=pi(),c}function Ku(){return O(),f()===40||f()===41?O()===148:(f()===148&&O(),f()===23&&ys()&&O()===103)}function y1(){let c=T(),m=Yt();H(103);let b=gt();return M(y.createTypeParameterDeclaration(void 0,m,b,void 0),c)}function Zu(){let c=T();H(19);let m;(f()===148||f()===40||f()===41)&&(m=dr(),m.kind!==148&&H(148)),H(23);let b=y1(),w=je(130)?gt():void 0;H(24);let A;(f()===58||f()===40||f()===41)&&(A=dr(),A.kind!==58&&H(58));let R=Ji();xr();let te=zr(4,pc);return H(20),M(y.createMappedTypeNode(m,b,w,A,R,te),c)}function ep(){let c=T();if(je(26))return M(y.createRestTypeNode(gt()),c);let m=gt();if(v8(m)&&m.pos===m.type.pos){let b=y.createOptionalTypeNode(m.type);return Ve(b,m),b.flags=m.flags,b}return m}function dc(){return O()===59||f()===58&&O()===59}function g1(){return f()===26?kt(O())&&dc():kt(f())&&dc()}function tp(){if(Te(g1)){let c=T(),m=x(),b=dt(26),w=Yt(),A=dt(58);H(59);let R=ep(),te=y.createNamedTupleMember(b,w,A,R);return Ae(M(te,c),m)}return ep()}function b1(){let c=T();return M(y.createTupleTypeNode(ca(21,tp,23,24)),c)}function rp(){let c=T();H(21);let m=gt();return H(22),M(y.createParenthesizedType(m),c)}function v1(){let c;if(f()===128){let m=T();O();let b=M(ue(128),m);c=Ft([b],m)}return c}function mc(){let c=T(),m=x(),b=v1(),w=je(105);N.assert(!b||w,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let A=Vr(),R=Gn(4),te=Dn(39,!1),le=w?y.createConstructorTypeNode(b,A,R,te):y.createFunctionTypeNode(A,R,te);return Ae(M(le,c),m)}function np(){let c=dr();return f()===25?void 0:c}function hc(c){let m=T();c&&O();let b=f()===112||f()===97||f()===106?dr():za(f());return c&&(b=M(y.createPrefixUnaryExpression(41,b),m)),M(y.createLiteralTypeNode(b),m)}function T1(){return O(),f()===102}function ip(){let c=T(),m=t.getTokenStart();H(19);let b=t.hasPrecedingLineBreak();H(132),H(59);let w=ma(!0);if(!H(20)){let A=wi(ct);A&&A.code===U._0_expected.code&&nl(A,Ao(sr,m,1,U.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return M(y.createImportTypeAssertionContainer(w,b),c)}function ap(){$t|=4194304;let c=T(),m=je(114);H(102),H(21);let b=gt(),w;je(28)&&(w=ip()),H(22);let A=je(25)?Fu():void 0,R=ac();return M(y.createImportTypeNode(b,w,A,R,m),c)}function yc(){return O(),f()===9||f()===10}function op(){switch(f()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return ft(np)||Li();case 67:t.reScanAsteriskEqualsToken();case 42:return u1();case 61:t.reScanQuestionToken();case 58:return p1();case 100:return qu();case 54:return Uu();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return hc();case 41:return Te(yc)?hc(!0):Li();case 116:return dr();case 110:{let c=Bu();return f()===142&&!t.hasPrecedingLineBreak()?l1(c):c}case 114:return Te(T1)?ap():sc();case 19:return Te(Ku)?Zu():Qu();case 23:return b1();case 21:return rp();case 102:return ap();case 131:return Te(Js)?dp():Li();case 16:return _1();default:return Li()}}function pa(c){switch(f()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!c;case 41:return!c&&Te(yc);case 21:return!c&&Te(S1);default:return Et()}}function S1(){return O(),f()===22||_c(!1)||pa()}function sp(){let c=T(),m=op();for(;!t.hasPrecedingLineBreak();)switch(f()){case 54:O(),m=M(y.createJSDocNonNullableType(m,!0),c);break;case 58:if(Te(ku))return m;O(),m=M(y.createJSDocNullableType(m,!0),c);break;case 23:if(H(23),pa()){let b=gt();H(24),m=M(y.createIndexedAccessTypeNode(m,b),c)}else H(24),m=M(y.createArrayTypeNode(m),c);break;default:return m}return m}function _p(c){let m=T();return H(c),M(y.createTypeOperatorNode(c,up()),m)}function cp(){if(je(96)){let c=jt(gt);if(aa()||f()!==58)return c}}function x1(){let c=T(),m=Lt(),b=ft(cp),w=y.createTypeParameterDeclaration(void 0,m,b);return M(w,c)}function lp(){let c=T();return H(140),M(y.createInferTypeNode(x1()),c)}function up(){let c=f();switch(c){case 143:case 158:case 148:return _p(c);case 140:return lp()}return yt(sp)}function pp(c){if(bc()){let m=mc(),b;return tu(m)?b=c?U.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:U.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:b=c?U.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:U.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,Lr(m,b),m}}function As(c,m,b){let w=T(),A=c===52,R=je(c),te=R&&pp(A)||m();if(f()===c||R){let le=[te];for(;je(c);)le.push(pp(A)||m());te=M(b(Ft(le,w)),w)}return te}function w1(){return As(51,up,y.createIntersectionTypeNode)}function gc(){return As(52,w1,y.createUnionTypeNode)}function C1(){return O(),f()===105}function bc(){return f()===30||f()===21&&Te(E1)?!0:f()===105||f()===128&&Te(C1)}function fp(){if(bi(f())&&Xn(!1),Et()||f()===110)return O(),!0;if(f()===23||f()===19){let c=ct.length;return Va(),c===ct.length}return!1}function E1(){return O(),!!(f()===22||f()===26||fp()&&(f()===59||f()===28||f()===58||f()===64||f()===22&&(O(),f()===39)))}function vc(){let c=T(),m=Et()&&ft(Tc),b=gt();return m?M(y.createTypePredicateNode(void 0,m,b),c):b}function Tc(){let c=Lt();if(f()===142&&!t.hasPrecedingLineBreak())return O(),c}function dp(){let c=T(),m=Hn(131),b=f()===110?Bu():Lt(),w=je(142)?gt():void 0;return M(y.createTypePredicateNode(m,b,w),c)}function gt(){if(at&81920)return xe(81920,gt);if(bc())return mc();let c=T(),m=gc();if(!aa()&&!t.hasPrecedingLineBreak()&&je(96)){let b=jt(gt);H(58);let w=yt(gt);H(59);let A=yt(gt);return M(y.createConditionalTypeNode(m,b,w,A),c)}return m}function Ji(){return je(59)?gt():void 0}function Sc(){switch(f()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return Te($u);default:return Et()}}function Ri(){if(Sc())return!0;switch(f()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return Ec()?!0:Et()}}function mp(){return f()!==19&&f()!==100&&f()!==86&&f()!==60&&Ri()}function Jt(){let c=Vn();c&&X(!1);let m=T(),b=tr(!0),w;for(;w=dt(28);)b=Ds(b,w,tr(!0),m);return c&&X(!0),b}function ji(){return je(64)?tr(!0):void 0}function tr(c){if(A1())return k1();let m=D1(c)||bp(c);if(m)return m;let b=T(),w=x(),A=ks(0);return A.kind===80&&f()===39?xc(b,A,c,w,void 0):Lo(A)&&D_(he())?Ds(A,dr(),tr(c),b):Sp(A,b,c)}function A1(){return f()===127?En()?!0:Te(zp):!1}function hp(){return O(),!t.hasPrecedingLineBreak()&&Et()}function k1(){let c=T();return O(),!t.hasPrecedingLineBreak()&&(f()===42||Ri())?M(y.createYieldExpression(dt(42),tr(!0)),c):M(y.createYieldExpression(void 0,void 0),c)}function xc(c,m,b,w,A){N.assert(f()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let R=y.createParameterDeclaration(void 0,void 0,m,void 0,void 0,void 0);M(R,m.pos);let te=Ft([R],R.pos,R.end),le=Hn(39),ne=Tp(!!A,b),ie=y.createArrowFunction(A,void 0,te,void 0,le,ne);return Ae(M(ie,c),w)}function D1(c){let m=P1();if(m!==0)return m===1?wc(!0,!0):ft(()=>gp(c))}function P1(){return f()===21||f()===30||f()===134?Te(yp):f()===39?1:0}function yp(){if(f()===134&&(O(),t.hasPrecedingLineBreak()||f()!==21&&f()!==30))return 0;let c=f(),m=O();if(c===21){if(m===22)switch(O()){case 39:case 59:case 19:return 1;default:return 0}if(m===23||m===19)return 2;if(m===26)return 1;if(bi(m)&&m!==134&&Te(ys))return O()===130?0:1;if(!Et()&&m!==110)return 0;switch(O()){case 59:return 1;case 58:return O(),f()===59||f()===28||f()===64||f()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return N.assert(c===30),!Et()&&f()!==87?0:vt===1?Te(()=>{je(87);let w=O();if(w===96)switch(O()){case 64:case 32:case 44:return!1;default:return!0}else if(w===28||w===64)return!0;return!1})?1:0:2}function gp(c){let m=t.getTokenStart();if(Mr!=null&&Mr.has(m))return;let b=wc(!1,c);return b||(Mr||(Mr=new Set)).add(m),b}function bp(c){if(f()===134&&Te(vp)===1){let m=T(),b=x(),w=Hc(),A=ks(0);return xc(m,A,c,b,w)}}function vp(){if(f()===134){if(O(),t.hasPrecedingLineBreak()||f()===39)return 0;let c=ks(0);if(!t.hasPrecedingLineBreak()&&c.kind===80&&f()===39)return 1}return 0}function wc(c,m){let b=T(),w=x(),A=Hc(),R=mt(A,al)?2:0,te=Vr(),le;if(H(21)){if(c)le=ws(R,c);else{let di=ws(R,c);if(!di)return;le=di}if(!H(22)&&!c)return}else{if(!c)return;le=pi()}let ne=f()===59,ie=Dn(59,!1);if(ie&&!c&&oc(ie))return;let ve=ie;for(;(ve==null?void 0:ve.kind)===196;)ve=ve.type;let He=ve&&Om(ve);if(!c&&f()!==39&&(He||f()!==19))return;let Be=f(),Ue=Hn(39),Rt=Be===39||Be===19?Tp(mt(A,al),m):Lt();if(!m&&ne&&f()!==59)return;let Gr=y.createArrowFunction(A,te,le,ie,Ue,Rt);return Ae(M(Gr,b),w)}function Tp(c,m){if(f()===19)return go(c?2:0);if(f()!==27&&f()!==100&&f()!==86&&Bc()&&!mp())return go(16|(c?2:0));let b=er;er=!1;let w=c?Cn(()=>tr(m)):zn(()=>tr(m));return er=b,w}function Sp(c,m,b){let w=dt(58);if(!w)return c;let A;return M(y.createConditionalExpression(c,w,xe(r,()=>tr(!1)),A=Hn(59),wl(A)?tr(b):Jr(80,!1,U._0_expected,nr(59))),m)}function ks(c){let m=T(),b=Ps();return xp(c,b,m)}function Cc(c){return c===103||c===165}function xp(c,m,b){for(;;){he();let w=pl(f());if(!(f()===43?w>=c:w>c)||f()===103&&Ii())break;if(f()===130||f()===152){if(t.hasPrecedingLineBreak())break;{let R=f();O(),m=R===152?I1(m,gt()):N1(m,gt())}}else m=Ds(m,dr(),ks(w),b)}return m}function Ec(){return Ii()&&f()===103?!1:pl(f())>0}function I1(c,m){return M(y.createSatisfiesExpression(c,m),c.pos)}function Ds(c,m,b,w){return M(y.createBinaryExpression(c,m,b),w)}function N1(c,m){return M(y.createAsExpression(c,m),c.pos)}function Ac(){let c=T();return M(y.createPrefixUnaryExpression(f(),Q(Fi)),c)}function O1(){let c=T();return M(y.createDeleteExpression(Q(Fi)),c)}function wp(){let c=T();return M(y.createTypeOfExpression(Q(Fi)),c)}function M1(){let c=T();return M(y.createVoidExpression(Q(Fi)),c)}function Cp(){return f()===135?Sr()?!0:Te(zp):!1}function L1(){let c=T();return M(y.createAwaitExpression(Q(Fi)),c)}function Ps(){if(kc()){let b=T(),w=Dc();return f()===43?xp(pl(f()),w,b):w}let c=f(),m=Fi();if(f()===43){let b=Nt(St,m.pos),{end:w}=m;m.kind===216?Mt(b,w,U.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(N.assert(Jf(c)),Mt(b,w,U.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,nr(c)))}return m}function Fi(){switch(f()){case 40:case 41:case 55:case 54:return Ac();case 91:return O1();case 114:return wp();case 116:return M1();case 30:return vt===1?fa(!0,void 0,void 0,!0):W1();case 135:if(Cp())return L1();default:return Dc()}}function kc(){switch(f()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(vt!==1)return!1;default:return!0}}function Dc(){if(f()===46||f()===47){let m=T();return M(y.createPrefixUnaryExpression(f(),Q(Is)),m)}else if(vt===1&&f()===30&&Te(Y_))return fa(!0);let c=Is();if(N.assert(Lo(c)),(f()===46||f()===47)&&!t.hasPrecedingLineBreak()){let m=f();return O(),M(y.createPostfixUnaryExpression(c,m),c.pos)}return c}function Is(){let c=T(),m;return f()===102?Te(fc)?($t|=4194304,m=dr()):Te(Es)?(O(),O(),m=M(y.createMetaProperty(102,Yt()),c),$t|=8388608):m=Ns():m=f()===108?J1():Ns(),Ip(c,m)}function Ns(){let c=T(),m=Op();return ho(c,m,!0)}function J1(){let c=T(),m=dr();if(f()===30){let b=T(),w=ft(Mc);w!==void 0&&(Mt(b,T(),U.super_may_not_use_type_arguments),Os()||(m=y.createExpressionWithTypeArguments(m,w)))}return f()===21||f()===25||f()===23?m:(Hn(25,U.super_must_be_followed_by_an_argument_list_or_member_access),M(ae(m,qa(!0,!0)),c))}function fa(c,m,b,w=!1){let A=T(),R=B1(c),te;if(R.kind===286){let le=Pc(R),ne,ie=le[le.length-1];if((ie==null?void 0:ie.kind)===284&&!Ti(ie.openingElement.tagName,ie.closingElement.tagName)&&Ti(R.tagName,ie.closingElement.tagName)){let ve=ie.children.end,He=M(y.createJsxElement(ie.openingElement,ie.children,M(y.createJsxClosingElement(M(G(""),ve,ve)),ve,ve)),ie.openingElement.pos,ve);le=Ft([...le.slice(0,le.length-1),He],le.pos,ve),ne=ie.closingElement}else ne=z1(R,c),Ti(R.tagName,ne.tagName)||(b&&Oo(b)&&Ti(ne.tagName,b.tagName)?Lr(R.tagName,U.JSX_element_0_has_no_corresponding_closing_tag,t_(St,R.tagName)):Lr(ne.tagName,U.Expected_corresponding_JSX_closing_tag_for_0,t_(St,R.tagName)));te=M(y.createJsxElement(R,le,ne),A)}else R.kind===289?te=M(y.createJsxFragment(R,Pc(R),Dp(c)),A):(N.assert(R.kind===285),te=R);if(!w&&c&&f()===30){let le=typeof m>"u"?te.pos:m,ne=ft(()=>fa(!0,le));if(ne){let ie=Jr(28,!1);return Cd(ie,ne.pos,0),Mt(Nt(St,le),ne.end,U.JSX_expressions_must_have_one_parent_element),M(y.createBinaryExpression(te,ie,ne),A)}}return te}function R1(){let c=T(),m=y.createJsxText(t.getTokenValue(),ht===13);return ht=t.scanJsxToken(),M(m,c)}function j1(c,m){switch(m){case 1:if(k6(c))Lr(c,U.JSX_fragment_has_no_corresponding_closing_tag);else{let b=c.tagName,w=Math.min(Nt(St,b.pos),b.end);Mt(w,b.end,U.JSX_element_0_has_no_corresponding_closing_tag,t_(St,c.tagName))}return;case 31:case 7:return;case 12:case 13:return R1();case 19:return Ep(!1);case 30:return fa(!1,void 0,c);default:return N.assertNever(m)}}function Pc(c){let m=[],b=T(),w=pt;for(pt|=16384;;){let A=j1(c,ht=t.reScanJsxToken());if(!A||(m.push(A),Oo(c)&&(A==null?void 0:A.kind)===284&&!Ti(A.openingElement.tagName,A.closingElement.tagName)&&Ti(c.tagName,A.closingElement.tagName)))break}return pt=w,Ft(m,b)}function F1(){let c=T();return M(y.createJsxAttributes(zr(13,U1)),c)}function B1(c){let m=T();if(H(30),f()===32)return It(),M(y.createJsxOpeningFragment(),m);let b=Ic(),w=at&524288?void 0:qs(),A=F1(),R;return f()===32?(It(),R=y.createJsxOpeningElement(b,w,A)):(H(44),H(32,void 0,!1)&&(c?O():It()),R=y.createJsxSelfClosingElement(b,w,A)),M(R,m)}function Ic(){let c=T(),m=Nc();if(U_(m))return m;let b=m;for(;je(25);)b=M(ae(b,qa(!0,!1)),c);return b}function Nc(){let c=T();Ke();let m=f()===110,b=Yt();return je(59)?(Ke(),M(y.createJsxNamespacedName(b,Yt()),c)):m?M(y.createToken(110),c):b}function Ep(c){let m=T();if(!H(19))return;let b,w;return f()!==20&&(b=dt(26),w=Jt()),c?H(20):H(20,void 0,!1)&&It(),M(y.createJsxExpression(b,w),m)}function U1(){if(f()===19)return kp();let c=T();return M(y.createJsxAttribute(q1(),Ap()),c)}function Ap(){if(f()===64){if(qt()===11)return fi();if(f()===19)return Ep(!0);if(f()===30)return fa(!0);Je(U.or_JSX_element_expected)}}function q1(){let c=T();Ke();let m=Yt();return je(59)?(Ke(),M(y.createJsxNamespacedName(m,Yt()),c)):m}function kp(){let c=T();H(19),H(26);let m=Jt();return H(20),M(y.createJsxSpreadAttribute(m),c)}function z1(c,m){let b=T();H(31);let w=Ic();return H(32,void 0,!1)&&(m||!Ti(c.tagName,w)?O():It()),M(y.createJsxClosingElement(w),b)}function Dp(c){let m=T();return H(31),H(32,U.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(c?O():It()),M(y.createJsxJsxClosingFragment(),m)}function W1(){N.assert(vt!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let c=T();H(30);let m=gt();H(32);let b=Fi();return M(y.createTypeAssertion(m,b),c)}function Pp(){return O(),kt(f())||f()===23||Os()}function V1(){return f()===29&&Te(Pp)}function Hr(c){if(c.flags&64)return!0;if(jo(c)){let m=c.expression;for(;jo(m)&&!(m.flags&64);)m=m.expression;if(m.flags&64){for(;jo(c);)c.flags|=64,c=c.expression;return!0}}return!1}function Bi(c,m,b){let w=qa(!0,!0),A=b||Hr(m),R=A?Ce(m,b,w):ae(m,w);if(A&&jr(R.name)&&Lr(R.name,U.An_optional_chain_cannot_contain_private_identifiers),g6(m)&&m.typeArguments){let te=m.typeArguments.pos-1,le=Nt(St,m.typeArguments.end)+1;Mt(te,le,U.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return M(R,c)}function mo(c,m,b){let w;if(f()===24)w=Jr(80,!0,U.An_element_access_expression_should_take_an_argument);else{let R=Le(Jt);Qi(R)&&(R.text=sa(R.text)),w=R}H(24);let A=b||Hr(m)?qe(m,b,w):Ze(m,w);return M(A,c)}function ho(c,m,b){for(;;){let w,A=!1;if(b&&V1()?(w=Hn(29),A=kt(f())):A=je(25),A){m=Bi(c,m,w);continue}if((w||!Vn())&&je(23)){m=mo(c,m,w);continue}if(Os()){m=!w&&m.kind===233?Ms(c,m.expression,w,m.typeArguments):Ms(c,m,w,void 0);continue}if(!w){if(f()===54&&!t.hasPrecedingLineBreak()){O(),m=M(y.createNonNullExpression(m),c);continue}let R=ft(Mc);if(R){m=M(y.createExpressionWithTypeArguments(m,R),c);continue}}return m}}function Os(){return f()===15||f()===16}function Ms(c,m,b,w){let A=y.createTaggedTemplateExpression(m,w,f()===15?(we(!0),fi()):Ts(!0));return(b||m.flags&64)&&(A.flags|=64),A.questionDotToken=b,M(A,c)}function Ip(c,m){for(;;){m=ho(c,m,!0);let b,w=dt(29);if(w&&(b=ft(Mc),Os())){m=Ms(c,m,w,b);continue}if(b||f()===21){!w&&m.kind===233&&(b=m.typeArguments,m=m.expression);let A=Oc(),R=w||Hr(m)?it(m,w,b,A):rt(m,b,A);m=M(R,c);continue}if(w){let A=Jr(80,!1,U.Identifier_expected);m=M(Ce(m,w,A),c)}break}return m}function Oc(){H(21);let c=Wr(11,G1);return H(22),c}function Mc(){if(at&524288||et()!==30)return;O();let c=Wr(20,gt);if(he()===32)return O(),c&&Np()?c:void 0}function Np(){switch(f()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||Ec()||!Ri()}function Op(){switch(f()){case 15:t.getTokenFlags()&26656&&we(!1);case 9:case 10:case 11:return fi();case 110:case 108:case 106:case 112:case 97:return dr();case 21:return Mp();case 23:return Jc();case 19:return Ls();case 134:if(!Te(Fc))break;return Rc();case 60:return gh();case 86:return sf();case 100:return Rc();case 105:return Lp();case 44:case 69:if(Re()===14)return fi();break;case 16:return Ts(!1);case 81:return X_()}return Lt(U.Expression_expected)}function Mp(){let c=T(),m=x();H(21);let b=Le(Jt);return H(22),Ae(M(ar(b),c),m)}function H1(){let c=T();H(26);let m=tr(!0);return M(y.createSpreadElement(m),c)}function Lc(){return f()===26?H1():f()===28?M(y.createOmittedExpression(),T()):tr(!0)}function G1(){return xe(r,Lc)}function Jc(){let c=T(),m=t.getTokenStart(),b=H(23),w=t.hasPrecedingLineBreak(),A=Wr(15,Lc);return kn(23,24,b,m),M(Y(A,w),c)}function X1(){let c=T(),m=x();if(dt(26)){let ve=tr(!0);return Ae(M(y.createSpreadAssignment(ve),c),m)}let b=Xn(!0);if(_a(139))return da(c,m,b,177,0);if(_a(153))return da(c,m,b,178,0);let w=dt(42),A=Et(),R=Ua(),te=dt(58),le=dt(54);if(w||f()===21||f()===30)return Wc(c,m,b,w,R,te,le);let ne;if(A&&f()!==59){let ve=dt(64),He=ve?Le(()=>tr(!0)):void 0;ne=y.createShorthandPropertyAssignment(R,He),ne.equalsToken=ve}else{H(59);let ve=Le(()=>tr(!0));ne=y.createPropertyAssignment(R,ve)}return ne.modifiers=b,ne.questionToken=te,ne.exclamationToken=le,Ae(M(ne,c),m)}function Ls(){let c=T(),m=t.getTokenStart(),b=H(19),w=t.hasPrecedingLineBreak(),A=Wr(12,X1,!0);return kn(19,20,b,m),M(B(A,w),c)}function Rc(){let c=Vn();X(!1);let m=T(),b=x(),w=Xn(!1);H(100);let A=dt(42),R=A?1:0,te=mt(w,al)?2:0,le=R&&te?Pi(yo):R?qr(yo):te?Cn(yo):yo(),ne=Vr(),ie=Gn(R|te),ve=Dn(59,!1),He=go(R|te);X(c);let Be=y.createFunctionExpression(w,A,le,ne,ie,ve,He);return Ae(M(Be,m),b)}function yo(){return An()?G_():void 0}function Lp(){let c=T();if(H(105),je(25)){let R=Yt();return M(y.createMetaProperty(105,R),c)}let m=T(),b=ho(m,Op(),!1),w;b.kind===233&&(w=b.typeArguments,b=b.expression),f()===29&&Je(U.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,t_(St,b));let A=f()===21?Oc():void 0;return M(Ir(b,w,A),c)}function Wa(c,m){let b=T(),w=x(),A=t.getTokenStart(),R=H(19,m);if(R||c){let te=t.hasPrecedingLineBreak(),le=zr(1,wr);kn(19,20,R,A);let ne=Ae(M(ci(le,te),b),w);return f()===64&&(Je(U.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),O()),ne}else{let te=pi();return Ae(M(ci(te,void 0),b),w)}}function go(c,m){let b=En();z(!!(c&1));let w=Sr();ee(!!(c&2));let A=er;er=!1;let R=Vn();R&&X(!1);let te=Wa(!!(c&16),m);return R&&X(!0),er=A,z(b),ee(w),te}function $1(){let c=T(),m=x();return H(27),Ae(M(y.createEmptyStatement(),c),m)}function Jp(){let c=T(),m=x();H(101);let b=t.getTokenStart(),w=H(21),A=Le(Jt);kn(21,22,w,b);let R=wr(),te=je(93)?wr():void 0;return Ae(M(Ge(A,R,te),c),m)}function Q1(){let c=T(),m=x();H(92);let b=wr();H(117);let w=t.getTokenStart(),A=H(21),R=Le(Jt);return kn(21,22,A,w),je(27),Ae(M(y.createDoStatement(b,R),c),m)}function Rp(){let c=T(),m=x();H(117);let b=t.getTokenStart(),w=H(21),A=Le(Jt);kn(21,22,w,b);let R=wr();return Ae(M(Gt(A,R),c),m)}function Y1(){let c=T(),m=x();H(99);let b=dt(135);H(21);let w;f()!==27&&(f()===115||f()===121||f()===87||f()===160&&Te(sh)||f()===135&&Te(Fs)?w=ef(!0):w=lt(Jt));let A;if(b?H(165):je(165)){let R=Le(()=>tr(!0));H(22),A=Xt(b,w,R,wr())}else if(je(103)){let R=Le(Jt);H(22),A=y.createForInStatement(w,R,wr())}else{H(27);let R=f()!==27&&f()!==22?Le(Jt):void 0;H(27);let te=f()!==22?Le(Jt):void 0;H(22),A=Ur(w,R,te,wr())}return Ae(M(A,c),m)}function jc(c){let m=T(),b=x();H(c===252?83:88);let w=ui()?void 0:Lt();xr();let A=c===252?y.createBreakStatement(w):y.createContinueStatement(w);return Ae(M(A,m),b)}function K1(){let c=T(),m=x();H(107);let b=ui()?void 0:Le(Jt);return xr(),Ae(M(y.createReturnStatement(b),c),m)}function Z1(){let c=T(),m=x();H(118);let b=t.getTokenStart(),w=H(21),A=Le(Jt);kn(21,22,w,b);let R=ke(67108864,wr);return Ae(M(y.createWithStatement(A,R),c),m)}function jp(){let c=T(),m=x();H(84);let b=Le(Jt);H(59);let w=zr(3,wr);return Ae(M(y.createCaseClause(b,w),c),m)}function eh(){let c=T();H(90),H(59);let m=zr(3,wr);return M(y.createDefaultClause(m),c)}function Fp(){return f()===84?jp():eh()}function th(){let c=T();H(19);let m=zr(2,Fp);return H(20),M(y.createCaseBlock(m),c)}function Bp(){let c=T(),m=x();H(109),H(21);let b=Le(Jt);H(22);let w=th();return Ae(M(y.createSwitchStatement(b,w),c),m)}function rh(){let c=T(),m=x();H(111);let b=t.hasPrecedingLineBreak()?void 0:Le(Jt);return b===void 0&&(Or++,b=M(G(""),T())),fs()||Ie(b),Ae(M(y.createThrowStatement(b),c),m)}function Up(){let c=T(),m=x();H(113);let b=Wa(!1),w=f()===85?nh():void 0,A;return(!w||f()===98)&&(H(98,U.catch_or_finally_expected),A=Wa(!1)),Ae(M(y.createTryStatement(b,w,A),c),m)}function nh(){let c=T();H(85);let m;je(21)?(m=Bs(),H(22)):m=void 0;let b=Wa(!1);return M(y.createCatchClause(m,b),c)}function qp(){let c=T(),m=x();return H(89),xr(),Ae(M(y.createDebuggerStatement(),c),m)}function ih(){let c=T(),m=x(),b,w=f()===21,A=Le(Jt);return Ee(A)&&je(59)?b=y.createLabeledStatement(A,wr()):(fs()||Ie(A),b=Nr(A),w&&(m=!1)),Ae(M(b,c),m)}function Js(){return O(),kt(f())&&!t.hasPrecedingLineBreak()}function ah(){return O(),f()===86&&!t.hasPrecedingLineBreak()}function Fc(){return O(),f()===100&&!t.hasPrecedingLineBreak()}function zp(){return O(),(kt(f())||f()===9||f()===10||f()===11)&&!t.hasPrecedingLineBreak()}function Wp(){for(;;)switch(f()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return Hp();case 135:return Uc();case 120:case 156:return hp();case 144:case 145:return _h();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let c=f();if(O(),t.hasPrecedingLineBreak())return!1;if(c===138&&f()===156)return!0;continue;case 162:return O(),f()===19||f()===80||f()===95;case 102:return O(),f()===11||f()===42||f()===19||kt(f());case 95:let m=O();if(m===156&&(m=Te(O)),m===64||m===42||m===19||m===90||m===130||m===60)return!0;continue;case 126:O();continue;default:return!1}}function Rs(){return Te(Wp)}function Bc(){switch(f()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return Rs()||Te($u);case 87:case 95:return Rs();case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return Rs()||!Te(Js);default:return Ri()}}function oh(){return O(),An()||f()===19||f()===23}function Vp(){return Te(oh)}function sh(){return js(!0)}function js(c){return O(),c&&f()===165?!1:(An()||f()===19)&&!t.hasPrecedingLineBreak()}function Hp(){return Te(js)}function Fs(){return Gp(!0)}function Gp(c){return O()===160?js(c):!1}function Uc(){return Te(Gp)}function wr(){switch(f()){case 27:return $1();case 19:return Wa(!1);case 115:return vo(T(),x(),void 0);case 121:if(Vp())return vo(T(),x(),void 0);break;case 135:if(Uc())return vo(T(),x(),void 0);break;case 160:if(Hp())return vo(T(),x(),void 0);break;case 100:return Us(T(),x(),void 0);case 86:return _f(T(),x(),void 0);case 101:return Jp();case 92:return Q1();case 117:return Rp();case 99:return Y1();case 88:return jc(251);case 83:return jc(252);case 107:return K1();case 118:return Z1();case 109:return Bp();case 111:return rh();case 113:case 85:case 98:return Up();case 89:return qp();case 60:return Xp();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(Rs())return Xp();break}return ih()}function qc(c){return c.kind===138}function Xp(){let c=T(),m=x(),b=Xn(!0);if(mt(b,qc)){let A=$p(c);if(A)return A;for(let R of b)R.flags|=33554432;return ke(33554432,()=>Qp(c,m,b))}else return Qp(c,m,b)}function $p(c){return ke(33554432,()=>{let m=bs(pt,c);if(m)return Du(m)})}function Qp(c,m,b){switch(f()){case 115:case 121:case 87:case 160:case 135:return vo(c,m,b);case 100:return Us(c,m,b);case 86:return _f(c,m,b);case 120:return xh(c,m,b);case 156:return uf(c,m,b);case 94:return wh(c,m,b);case 162:case 144:case 145:return Ch(c,m,b);case 102:return kh(c,m,b);case 95:switch(O(),f()){case 90:case 64:return Bh(c,m,b);case 130:return Qc(c,m,b);default:return Fh(c,m,b)}default:if(b){let w=Jr(282,!0,U.Declaration_expected);return wd(w,c),w.modifiers=b,w}return}}function Yp(){return O()===11}function _h(){return O(),!t.hasPrecedingLineBreak()&&(Et()||f()===11)}function bo(c,m){if(f()!==19){if(c&4){Cs();return}if(ui()){xr();return}}return go(c,m)}function ch(){let c=T();if(f()===28)return M(y.createOmittedExpression(),c);let m=dt(26),b=Va(),w=ji();return M(y.createBindingElement(m,void 0,b,w),c)}function Kp(){let c=T(),m=dt(26),b=An(),w=Ua(),A;b&&f()!==59?(A=w,w=void 0):(H(59),A=Va());let R=ji();return M(y.createBindingElement(m,w,A,R),c)}function lh(){let c=T();H(19);let m=Le(()=>Wr(9,Kp));return H(20),M(y.createObjectBindingPattern(m),c)}function Zp(){let c=T();H(23);let m=Le(()=>Wr(10,ch));return H(24),M(y.createArrayBindingPattern(m),c)}function zc(){return f()===19||f()===23||f()===81||An()}function Va(c){return f()===23?Zp():f()===19?lh():G_(c)}function uh(){return Bs(!0)}function Bs(c){let m=T(),b=x(),w=Va(U.Private_identifiers_are_not_allowed_in_variable_declarations),A;c&&w.kind===80&&f()===54&&!t.hasPrecedingLineBreak()&&(A=dr());let R=Ji(),te=Cc(f())?void 0:ji(),le=Tn(w,A,R,te);return Ae(M(le,m),b)}function ef(c){let m=T(),b=0;switch(f()){case 115:break;case 121:b|=1;break;case 87:b|=2;break;case 160:b|=4;break;case 135:N.assert(Uc()),b|=6,O();break;default:N.fail()}O();let w;if(f()===165&&Te(tf))w=pi();else{let A=Ii();nt(c),w=Wr(8,c?Bs:uh),nt(A)}return M(Sn(w,b),m)}function tf(){return ys()&&O()===22}function vo(c,m,b){let w=ef(!1);xr();let A=or(b,w);return Ae(M(A,c),m)}function Us(c,m,b){let w=Sr(),A=ln(b);H(100);let R=dt(42),te=A&1024?yo():G_(),le=R?1:0,ne=A&512?2:0,ie=Vr();A&1&&ee(!0);let ve=Gn(le|ne),He=Dn(59,!1),Be=bo(le|ne,U.or_expected);ee(w);let Ue=y.createFunctionDeclaration(b,R,te,ie,ve,He,Be);return Ae(M(Ue,c),m)}function ph(){if(f()===137)return H(137);if(f()===11&&Te(O)===21)return ft(()=>{let c=fi();return c.text==="constructor"?c:void 0})}function fh(c,m,b){return ft(()=>{if(ph()){let w=Vr(),A=Gn(0),R=Dn(59,!1),te=bo(0,U.or_expected),le=y.createConstructorDeclaration(b,A,te);return le.typeParameters=w,le.type=R,Ae(M(le,c),m)}})}function Wc(c,m,b,w,A,R,te,le){let ne=w?1:0,ie=mt(b,al)?2:0,ve=Vr(),He=Gn(ne|ie),Be=Dn(59,!1),Ue=bo(ne|ie,le),Rt=y.createMethodDeclaration(b,w,A,R,ve,He,Be,Ue);return Rt.exclamationToken=te,Ae(M(Rt,c),m)}function rf(c,m,b,w,A){let R=!A&&!t.hasPrecedingLineBreak()?dt(54):void 0,te=Ji(),le=xe(90112,ji);an(w,te,le);let ne=y.createPropertyDeclaration(b,w,A||R,te,le);return Ae(M(ne,c),m)}function nf(c,m,b){let w=dt(42),A=Ua(),R=dt(58);return w||f()===21||f()===30?Wc(c,m,b,w,A,R,void 0,U.or_expected):rf(c,m,b,A,R)}function da(c,m,b,w,A){let R=Ua(),te=Vr(),le=Gn(0),ne=Dn(59,!1),ie=bo(A),ve=w===177?y.createGetAccessorDeclaration(b,R,le,ne,ie):y.createSetAccessorDeclaration(b,R,le,ie);return ve.typeParameters=te,Qo(ve)&&(ve.type=ne),Ae(M(ve,c),m)}function dh(){let c;if(f()===60)return!0;for(;bi(f());){if(c=f(),s3(c))return!0;O()}if(f()===42||(Oi()&&(c=f(),O()),f()===23))return!0;if(c!==void 0){if(!Si(c)||c===153||c===139)return!0;switch(f()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return ui()}}return!1}function af(c,m,b){Hn(126);let w=mh(),A=Ae(M(y.createClassStaticBlockDeclaration(w),c),m);return A.modifiers=b,A}function mh(){let c=En(),m=Sr();z(!1),ee(!0);let b=Wa(!1);return z(c),ee(m),b}function hh(){if(Sr()&&f()===135){let c=T(),m=Lt(U.Expression_expected);O();let b=ho(c,m,!0);return Ip(c,b)}return Is()}function Vc(){let c=T();if(!je(60))return;let m=na(hh);return M(y.createDecorator(m),c)}function of(c,m,b){let w=T(),A=f();if(f()===87&&m){if(!ft(xu))return}else{if(b&&f()===126&&Te(mf))return;if(c&&f()===126)return;if(!n1())return}return M(ue(A),w)}function Xn(c,m,b){let w=T(),A,R,te,le=!1,ne=!1,ie=!1;if(c&&f()===60)for(;R=Vc();)A=xt(A,R);for(;te=of(le,m,b);)te.kind===126&&(le=!0),A=xt(A,te),ne=!0;if(ne&&c&&f()===60)for(;R=Vc();)A=xt(A,R),ie=!0;if(ie)for(;te=of(le,m,b);)te.kind===126&&(le=!0),A=xt(A,te);return A&&Ft(A,w)}function Hc(){let c;if(f()===134){let m=T();O();let b=M(ue(134),m);c=Ft([b],m)}return c}function yh(){let c=T(),m=x();if(f()===27)return O(),Ae(M(y.createSemicolonClassElement(),c),m);let b=Xn(!0,!0,!0);if(f()===126&&Te(mf))return af(c,m,b);if(_a(139))return da(c,m,b,177,0);if(_a(153))return da(c,m,b,178,0);if(f()===137||f()===11){let w=fh(c,m,b);if(w)return w}if(Gu())return ua(c,m,b);if(kt(f())||f()===11||f()===9||f()===42||f()===23)if(mt(b,qc)){for(let A of b)A.flags|=33554432;return ke(33554432,()=>nf(c,m,b))}else return nf(c,m,b);if(b){let w=Jr(80,!0,U.Declaration_expected);return rf(c,m,b,w,void 0)}return N.fail("Should not have attempted to parse class member declaration.")}function gh(){let c=T(),m=x(),b=Xn(!0);if(f()===86)return Gc(c,m,b,231);let w=Jr(282,!0,U.Expression_expected);return wd(w,c),w.modifiers=b,w}function sf(){return Gc(T(),x(),void 0,231)}function _f(c,m,b){return Gc(c,m,b,263)}function Gc(c,m,b,w){let A=Sr();H(86);let R=Xc(),te=Vr();mt(b,qx)&&ee(!0);let le=cf(),ne;H(19)?(ne=Sh(),H(20)):ne=pi(),ee(A);let ie=w===263?y.createClassDeclaration(b,R,te,le,ne):y.createClassExpression(b,R,te,le,ne);return Ae(M(ie,c),m)}function Xc(){return An()&&!bh()?Ni(An()):void 0}function bh(){return f()===119&&Te(Cu)}function cf(){if(lf())return zr(22,vh)}function vh(){let c=T(),m=f();N.assert(m===96||m===119),O();let b=Wr(7,Th);return M(y.createHeritageClause(m,b),c)}function Th(){let c=T(),m=Is();if(m.kind===233)return m;let b=qs();return M(y.createExpressionWithTypeArguments(m,b),c)}function qs(){return f()===30?ca(20,gt,30,32):void 0}function lf(){return f()===96||f()===119}function Sh(){return zr(5,yh)}function xh(c,m,b){H(120);let w=Lt(),A=Vr(),R=cf(),te=Yu(),le=y.createInterfaceDeclaration(b,w,A,R,te);return Ae(M(le,c),m)}function uf(c,m,b){H(156),t.hasPrecedingLineBreak()&&Je(U.Line_break_not_permitted_here);let w=Lt(),A=Vr();H(64);let R=f()===141&&ft(np)||gt();xr();let te=y.createTypeAliasDeclaration(b,w,A,R);return Ae(M(te,c),m)}function pf(){let c=T(),m=x(),b=Ua(),w=Le(ji);return Ae(M(y.createEnumMember(b,w),c),m)}function wh(c,m,b){H(94);let w=Lt(),A;H(19)?(A=ia(()=>Wr(6,pf)),H(20)):A=pi();let R=y.createEnumDeclaration(b,w,A);return Ae(M(R,c),m)}function zs(){let c=T(),m;return H(19)?(m=zr(1,wr),H(20)):m=pi(),M(y.createModuleBlock(m),c)}function ff(c,m,b,w){let A=w&32,R=Lt(),te=je(25)?ff(T(),!1,void 0,8|A):zs(),le=y.createModuleDeclaration(b,R,te,w);return Ae(M(le,c),m)}function $c(c,m,b){let w=0,A;f()===162?(A=Lt(),w|=2048):(A=fi(),A.text=sa(A.text));let R;f()===19?R=zs():xr();let te=y.createModuleDeclaration(b,A,R,w);return Ae(M(te,c),m)}function Ch(c,m,b){let w=0;if(f()===162)return $c(c,m,b);if(je(145))w|=32;else if(H(144),f()===11)return $c(c,m,b);return ff(c,m,b,w)}function Eh(){return f()===149&&Te(df)}function df(){return O()===21}function mf(){return O()===19}function Ah(){return O()===44}function Qc(c,m,b){H(130),H(145);let w=Lt();xr();let A=y.createNamespaceExportDeclaration(w);return A.modifiers=b,Ae(M(A,c),m)}function kh(c,m,b){H(102);let w=t.getTokenFullStart(),A;Et()&&(A=Lt());let R=!1;if(f()!==161&&(A==null?void 0:A.escapedText)==="type"&&(Et()||Ph())&&(R=!0,A=Et()?Lt():void 0),A&&!Ih())return Nh(c,m,b,A,R);let te;(A||f()===42||f()===19)&&(te=Oh(A,w,R),H(161));let le=Ws(),ne;f()===132&&!t.hasPrecedingLineBreak()&&(ne=ma()),xr();let ie=y.createImportDeclaration(b,te,le,ne);return Ae(M(ie,c),m)}function Dh(){let c=T(),m=kt(f())?Yt():za(11);H(59);let b=tr(!0);return M(y.createAssertEntry(m,b),c)}function ma(c){let m=T();c||H(132);let b=t.getTokenStart();if(H(19)){let w=t.hasPrecedingLineBreak(),A=Wr(24,Dh,!0);if(!H(20)){let R=wi(ct);R&&R.code===U._0_expected.code&&nl(R,Ao(sr,b,1,U.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return M(y.createAssertClause(A,w),m)}else{let w=Ft([],T(),void 0,!1);return M(y.createAssertClause(w,!1),m)}}function Ph(){return f()===42||f()===19}function Ih(){return f()===28||f()===161}function Nh(c,m,b,w,A){H(64);let R=ha();xr();let te=y.createImportEqualsDeclaration(b,A,w,R);return Ae(M(te,c),m)}function Oh(c,m,b){let w;return(!c||je(28))&&(w=f()===42?Lh():Ha(275)),M(y.createImportClause(b,c,w),m)}function ha(){return Eh()?Mh():la(!1)}function Mh(){let c=T();H(149),H(21);let m=Ws();return H(22),M(y.createExternalModuleReference(m),c)}function Ws(){if(f()===11){let c=fi();return c.text=sa(c.text),c}else return Jt()}function Lh(){let c=T();H(42),H(130);let m=Lt();return M(y.createNamespaceImport(m),c)}function Ha(c){let m=T(),b=c===275?y.createNamedImports(ca(23,Rh,19,20)):y.createNamedExports(ca(23,Jh,19,20));return M(b,m)}function Jh(){let c=x();return Ae(hf(281),c)}function Rh(){return hf(276)}function hf(c){let m=T(),b=Si(f())&&!Et(),w=t.getTokenStart(),A=t.getTokenEnd(),R=!1,te,le=!0,ne=Yt();if(ne.escapedText==="type")if(f()===130){let He=Yt();if(f()===130){let Be=Yt();kt(f())?(R=!0,te=He,ne=ve(),le=!1):(te=ne,ne=Be,le=!1)}else kt(f())?(te=ne,le=!1,ne=ve()):(R=!0,ne=He)}else kt(f())&&(R=!0,ne=ve());le&&f()===130&&(te=ne,H(130),ne=ve()),c===276&&b&&Mt(w,A,U.Identifier_expected);let ie=c===276?y.createImportSpecifier(R,te,ne):y.createExportSpecifier(R,te,ne);return M(ie,m);function ve(){return b=Si(f())&&!Et(),w=t.getTokenStart(),A=t.getTokenEnd(),Yt()}}function jh(c){return M(y.createNamespaceExport(Yt()),c)}function Fh(c,m,b){let w=Sr();ee(!0);let A,R,te,le=je(156),ne=T();je(42)?(je(130)&&(A=jh(ne)),H(161),R=Ws()):(A=Ha(279),(f()===161||f()===11&&!t.hasPrecedingLineBreak())&&(H(161),R=Ws())),R&&f()===132&&!t.hasPrecedingLineBreak()&&(te=ma()),xr(),ee(w);let ie=y.createExportDeclaration(b,le,A,R,te);return Ae(M(ie,c),m)}function Bh(c,m,b){let w=Sr();ee(!0);let A;je(64)?A=!0:H(90);let R=tr(!0);xr(),ee(w);let te=y.createExportAssignment(b,A,R);return Ae(M(te,c),m)}let ya;(c=>{c[c.SourceElements=0]="SourceElements",c[c.BlockStatements=1]="BlockStatements",c[c.SwitchClauses=2]="SwitchClauses",c[c.SwitchClauseStatements=3]="SwitchClauseStatements",c[c.TypeMembers=4]="TypeMembers",c[c.ClassMembers=5]="ClassMembers",c[c.EnumMembers=6]="EnumMembers",c[c.HeritageClauseElement=7]="HeritageClauseElement",c[c.VariableDeclarations=8]="VariableDeclarations",c[c.ObjectBindingElements=9]="ObjectBindingElements",c[c.ArrayBindingElements=10]="ArrayBindingElements",c[c.ArgumentExpressions=11]="ArgumentExpressions",c[c.ObjectLiteralMembers=12]="ObjectLiteralMembers",c[c.JsxAttributes=13]="JsxAttributes",c[c.JsxChildren=14]="JsxChildren",c[c.ArrayLiteralMembers=15]="ArrayLiteralMembers",c[c.Parameters=16]="Parameters",c[c.JSDocParameters=17]="JSDocParameters",c[c.RestProperties=18]="RestProperties",c[c.TypeParameters=19]="TypeParameters",c[c.TypeArguments=20]="TypeArguments",c[c.TupleElementTypes=21]="TupleElementTypes",c[c.HeritageClauses=22]="HeritageClauses",c[c.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",c[c.AssertEntries=24]="AssertEntries",c[c.JSDocComment=25]="JSDocComment",c[c.Count=26]="Count"})(ya||(ya={}));let yf;(c=>{c[c.False=0]="False",c[c.True=1]="True",c[c.Unknown=2]="Unknown"})(yf||(yf={}));let gf;(c=>{function m(ie,ve,He){rn("file.js",ie,99,void 0,1),t.setText(ie,ve,He),ht=t.scan();let Be=b(),Ue=ge("file.js",99,1,!1,[],ue(1),0,Rn),Rt=$a(ct,Ue);return Ut&&(Ue.jsDocDiagnostics=$a(Ut,Ue)),nn(),Be?{jsDocTypeExpression:Be,diagnostics:Rt}:void 0}c.parseJSDocTypeExpressionForTests=m;function b(ie){let ve=T(),He=(ie?je:H)(19),Be=ke(16777216,xs);(!ie||He)&&Ba(20);let Ue=y.createJSDocTypeExpression(Be);return oe(Ue),M(Ue,ve)}c.parseJSDocTypeExpression=b;function w(){let ie=T(),ve=je(19),He=T(),Be=la(!1);for(;f()===81;)Ye(),fe(),Be=M(y.createJSDocMemberName(Be,Lt()),He);ve&&Ba(20);let Ue=y.createJSDocNameReference(Be);return oe(Ue),M(Ue,ie)}c.parseJSDocNameReference=w;function A(ie,ve,He){rn("",ie,99,void 0,1);let Be=ke(16777216,()=>ne(ve,He)),Rt=$a(ct,{languageVariant:0,text:ie});return nn(),Be?{jsDoc:Be,diagnostics:Rt}:void 0}c.parseIsolatedJSDocComment=A;function R(ie,ve,He){let Be=ht,Ue=ct.length,Rt=Qt,Gr=ke(16777216,()=>ne(ve,He));return Xi(Gr,ie),at&524288&&(Ut||(Ut=[]),Ut.push(...ct)),ht=Be,ct.length=Ue,Qt=Rt,Gr}c.parseJSDocComment=R;let te;(ie=>{ie[ie.BeginningOfLine=0]="BeginningOfLine",ie[ie.SawAsterisk=1]="SawAsterisk",ie[ie.SavingComments=2]="SavingComments",ie[ie.SavingBackticks=3]="SavingBackticks"})(te||(te={}));let le;(ie=>{ie[ie.Property=1]="Property",ie[ie.Parameter=2]="Parameter",ie[ie.CallbackParameter=4]="CallbackParameter"})(le||(le={}));function ne(ie=0,ve){let He=pt;pt|=1<<25;let Be=St,Ue=ve===void 0?Be.length:ie+ve;if(ve=Ue-ie,N.assert(ie>=0),N.assert(ie<=Ue),N.assert(Ue<=Be.length),!z8(Be,ie))return;let Rt,Gr,di,mi,hi,Ui=[],ga=[],ba=t.scanRange(ie+3,ve-5,Uh);return pt=He,ba;function Uh(){let F=1,re,Z=ie-(Be.lastIndexOf(` +`,ie)+1)+4;function se(ze){re||(re=Z),Ui.push(ze),Z+=ze.length}for(fe();xo(5););xo(4)&&(F=0,Z=0);e:for(;;){switch(f()){case 60:qh(Ui),hi||(hi=T()),u(To(Z)),F=0,re=void 0;break;case 4:Ui.push(t.getTokenText()),F=0,Z=0;break;case 42:let ze=t.getTokenText();F===1?(F=2,se(ze)):(N.assert(F===0),F=1,Z+=ze.length);break;case 5:N.assert(F!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let At=t.getTokenText();re!==void 0&&Z+At.length>re&&Ui.push(At.slice(re-Z)),Z+=At.length;break;case 1:break e;case 82:F=2,se(t.getTokenValue());break;case 19:F=2;let Pn=t.getTokenFullStart(),sn=t.getTokenEnd()-1,Ar=vf(sn);if(Ar){mi||bf(Ui),ga.push(M(y.createJSDocText(Ui.join("")),mi??ie,Pn)),ga.push(Ar),Ui=[],mi=t.getTokenEnd();break}default:F=2,se(t.getTokenText());break}F===2?be(!1):fe()}let ce=n_(Ui.join(""));ga.length&&ce.length&&ga.push(M(y.createJSDocText(ce),mi??ie,hi)),ga.length&&Rt&&N.assertIsDefined(hi,"having parsed tags implies that the end of the comment span should be set");let Me=Rt&&Ft(Rt,Gr,di);return M(y.createJSDocComment(ga.length?Ft(ga,ie,hi):ce.length?ce:void 0,Me),ie,Ue)}function bf(F){for(;F.length&&(F[0]===` +`||F[0]==="\r");)F.shift()}function qh(F){for(;F.length;){let re=n_(F[F.length-1]);if(re==="")F.pop();else if(re.lengthAt&&(se.push(Qn.slice(At-F)),ze=2),F+=Qn.length;break;case 19:ze=2;let Tf=t.getTokenFullStart(),Hs=t.getTokenEnd()-1,Sf=vf(Hs);Sf?(ce.push(M(y.createJSDocText(se.join("")),Me??Z,Tf)),ce.push(Sf),se=[],Me=t.getTokenEnd()):Pn(t.getTokenText());break;case 62:ze===3?ze=2:ze=3,Pn(t.getTokenText());break;case 82:ze!==3&&(ze=2),Pn(t.getTokenValue());break;case 42:if(ze===0){ze=1,F+=1;break}default:ze!==3&&(ze=2),Pn(t.getTokenText());break}ze===2||ze===3?sn=be(ze===3):sn=fe()}bf(se);let Ar=n_(se.join(""));if(ce.length)return Ar.length&&ce.push(M(y.createJSDocText(Ar),Me??Z)),Ft(ce,Z,t.getTokenEnd());if(Ar.length)return Ar}function vf(F){let re=ft(n);if(!re)return;fe(),Xe();let Z=T(),se=kt(f())?la(!0):void 0;if(se)for(;f()===81;)Ye(),fe(),se=M(y.createJSDocMemberName(se,Lt()),Z);let ce=[];for(;f()!==20&&f()!==4&&f()!==1;)ce.push(t.getTokenText()),fe();let Me=re==="link"?y.createJSDocLink:re==="linkcode"?y.createJSDocLinkCode:y.createJSDocLinkPlain;return M(Me(se,ce.join("")),F,t.getTokenEnd())}function n(){if(Cr(),f()===19&&fe()===60&&kt(fe())){let F=t.getTokenValue();if(o(F))return F}}function o(F){return F==="link"||F==="linkcode"||F==="linkplain"}function s(F,re,Z,se){return M(y.createJSDocUnknownTag(re,lr(F,T(),Z,se)),F)}function u(F){F&&(Rt?Rt.push(F):(Rt=[F],Gr=F.pos),di=F.end)}function g(){return Cr(),f()===19?b():void 0}function I(){let F=xo(23);F&&Xe();let re=xo(62),Z=T5();return re&&e1(62),F&&(Xe(),dt(64)&&Jt(),H(24)),{name:Z,isBracketed:F}}function W(F){switch(F.kind){case 151:return!0;case 188:return W(F.elementType);default:return R_(F)&&Ee(F.typeName)&&F.typeName.escapedText==="Object"&&!F.typeArguments}}function de(F,re,Z,se){let ce=g(),Me=!ce;Cr();let{name:ze,isBracketed:At}=I(),Pn=Cr();Me&&!Te(n)&&(ce=g());let sn=lr(F,T(),se,Pn),Ar=We(ce,ze,Z,se);Ar&&(ce=Ar,Me=!0);let Qn=Z===1?y.createJSDocPropertyTag(re,ze,At,ce,Me,sn):y.createJSDocParameterTag(re,ze,At,ce,Me,sn);return M(Qn,F)}function We(F,re,Z,se){if(F&&W(F.type)){let ce=T(),Me,ze;for(;Me=ft(()=>Wh(Z,se,re));)Me.kind===348||Me.kind===355?ze=xt(ze,Me):Me.kind===352&&Lr(Me.tagName,U.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(ze){let At=M(y.createJSDocTypeLiteral(ze,F.type.kind===188),ce);return M(y.createJSDocTypeExpression(At),ce)}}}function Er(F,re,Z,se){mt(Rt,R6)&&Mt(re.pos,t.getTokenStart(),U._0_tag_already_specified,Vo(re.escapedText));let ce=g();return M(y.createJSDocReturnTag(re,ce,lr(F,T(),Z,se)),F)}function $n(F,re,Z,se){mt(Rt,lu)&&Mt(re.pos,t.getTokenStart(),U._0_tag_already_specified,Vo(re.escapedText));let ce=b(!0),Me=Z!==void 0&&se!==void 0?lr(F,T(),Z,se):void 0;return M(y.createJSDocTypeTag(re,ce,Me),F)}function yi(F,re,Z,se){let Me=f()===23||Te(()=>fe()===60&&kt(fe())&&o(t.getTokenValue()))?void 0:w(),ze=Z!==void 0&&se!==void 0?lr(F,T(),Z,se):void 0;return M(y.createJSDocSeeTag(re,Me,ze),F)}function Vs(F,re,Z,se){let ce=g(),Me=lr(F,T(),Z,se);return M(y.createJSDocThrowsTag(re,ce,Me),F)}function i5(F,re,Z,se){let ce=T(),Me=a5(),ze=t.getTokenFullStart(),At=lr(F,ze,Z,se);At||(ze=t.getTokenFullStart());let Pn=typeof At!="string"?Ft(y_([M(Me,ce,ze)],At),ce):Me.text+At;return M(y.createJSDocAuthorTag(re,Pn),F)}function a5(){let F=[],re=!1,Z=t.getToken();for(;Z!==1&&Z!==4;){if(Z===30)re=!0;else{if(Z===60&&!re)break;if(Z===32&&re){F.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}F.push(t.getTokenText()),Z=fe()}return y.createJSDocText(F.join(""))}function o5(F,re,Z,se){let ce=Pb();return M(y.createJSDocImplementsTag(re,ce,lr(F,T(),Z,se)),F)}function s5(F,re,Z,se){let ce=Pb();return M(y.createJSDocAugmentsTag(re,ce,lr(F,T(),Z,se)),F)}function _5(F,re,Z,se){let ce=b(!1),Me=Z!==void 0&&se!==void 0?lr(F,T(),Z,se):void 0;return M(y.createJSDocSatisfiesTag(re,ce,Me),F)}function Pb(){let F=je(19),re=T(),Z=c5();t.setInJSDocType(!0);let se=qs();t.setInJSDocType(!1);let ce=y.createExpressionWithTypeArguments(Z,se),Me=M(ce,re);return F&&H(20),Me}function c5(){let F=T(),re=Ga();for(;je(25);){let Z=Ga();re=M(ae(re,Z),F)}return re}function So(F,re,Z,se,ce){return M(re(Z,lr(F,T(),se,ce)),F)}function l5(F,re,Z,se){let ce=b(!0);return Xe(),M(y.createJSDocThisTag(re,ce,lr(F,T(),Z,se)),F)}function u5(F,re,Z,se){let ce=b(!0);return Xe(),M(y.createJSDocEnumTag(re,ce,lr(F,T(),Z,se)),F)}function p5(F,re,Z,se){let ce=g();Cr();let Me=zh();Xe();let ze=on(Z),At;if(!ce||W(ce.type)){let sn,Ar,Qn,Tf=!1;for(;(sn=ft(()=>y5(Z)))&&sn.kind!==352;)if(Tf=!0,sn.kind===351)if(Ar){let Hs=Je(U.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);Hs&&nl(Hs,Ao(sr,0,0,U.The_tag_was_first_specified_here));break}else Ar=sn;else Qn=xt(Qn,sn);if(Tf){let Hs=ce&&ce.type.kind===188,Sf=y.createJSDocTypeLiteral(Qn,Hs);ce=Ar&&Ar.typeExpression&&!W(Ar.typeExpression.type)?Ar.typeExpression:M(Sf,F),At=ce.end}}At=At||ze!==void 0?T():(Me??ce??re).end,ze||(ze=lr(F,At,Z,se));let Pn=y.createJSDocTypedefTag(re,ce,Me,ze);return M(Pn,F,At)}function zh(F){let re=t.getTokenStart();if(!kt(f()))return;let Z=Ga();if(je(25)){let se=zh(!0),ce=y.createModuleDeclaration(void 0,Z,se,F?8:void 0);return M(ce,re)}return F&&(Z.flags|=4096),Z}function f5(F){let re=T(),Z,se;for(;Z=ft(()=>Wh(4,F));){if(Z.kind===352){Lr(Z.tagName,U.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}se=xt(se,Z)}return Ft(se||[],re)}function Ib(F,re){let Z=f5(re),se=ft(()=>{if(xo(60)){let ce=To(re);if(ce&&ce.kind===349)return ce}});return M(y.createJSDocSignature(void 0,Z,se),F)}function d5(F,re,Z,se){let ce=zh();Xe();let Me=on(Z),ze=Ib(F,Z);Me||(Me=lr(F,T(),Z,se));let At=Me!==void 0?T():ze.end;return M(y.createJSDocCallbackTag(re,ze,ce,Me),F,At)}function m5(F,re,Z,se){Xe();let ce=on(Z),Me=Ib(F,Z);ce||(ce=lr(F,T(),Z,se));let ze=ce!==void 0?T():Me.end;return M(y.createJSDocOverloadTag(re,Me,ce),F,ze)}function h5(F,re){for(;!Ee(F)||!Ee(re);)if(!Ee(F)&&!Ee(re)&&F.right.escapedText===re.right.escapedText)F=F.left,re=re.left;else return!1;return F.escapedText===re.escapedText}function y5(F){return Wh(1,F)}function Wh(F,re,Z){let se=!0,ce=!1;for(;;)switch(fe()){case 60:if(se){let Me=g5(F,re);return Me&&(Me.kind===348||Me.kind===355)&&Z&&(Ee(Me.name)||!h5(Z,Me.name.left))?!1:Me}ce=!1;break;case 4:se=!0,ce=!1;break;case 42:ce&&(se=!1),ce=!0;break;case 80:se=!1;break;case 1:return!1}}function g5(F,re){N.assert(f()===60);let Z=t.getTokenFullStart();fe();let se=Ga(),ce=Cr(),Me;switch(se.escapedText){case"type":return F===1&&$n(Z,se);case"prop":case"property":Me=1;break;case"arg":case"argument":case"param":Me=6;break;case"template":return Nb(Z,se,re,ce);default:return!1}return F&Me?de(Z,se,F,re):!1}function b5(){let F=T(),re=xo(23);re&&Xe();let Z=Ga(U.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),se;if(re&&(Xe(),H(64),se=ke(16777216,xs),H(24)),!zi(Z))return M(y.createTypeParameterDeclaration(void 0,Z,void 0,se),F)}function v5(){let F=T(),re=[];do{Xe();let Z=b5();Z!==void 0&&re.push(Z),Cr()}while(xo(28));return Ft(re,F)}function Nb(F,re,Z,se){let ce=f()===19?b():void 0,Me=v5();return M(y.createJSDocTemplateTag(re,ce,Me,lr(F,T(),Z,se)),F)}function xo(F){return f()===F?(fe(),!0):!1}function T5(){let F=Ga();for(je(23)&&H(24);je(25);){let re=Ga();je(23)&&H(24),F=o1(F,re)}return F}function Ga(F){if(!kt(f()))return Jr(80,!F,F||U.Identifier_expected);Or++;let re=t.getTokenStart(),Z=t.getTokenEnd(),se=f(),ce=sa(t.getTokenValue()),Me=M(G(ce,se),re,Z);return fe(),Me}}})(gf=e.JSDocParser||(e.JSDocParser={}))})(Zn||(Zn={})),(e=>{function t(k,L,G,K){if(K=K||N.shouldAssert(2),y(k,L,G,K),C4(G))return k;if(k.statements.length===0)return Zn.parseSourceFile(k.fileName,L,k.languageVersion,void 0,!0,k.scriptKind,k.setExternalModuleIndicator);let ue=k;N.assert(!ue.hasBeenIncrementallyParsed),ue.hasBeenIncrementallyParsed=!0,Zn.fixupParentReferences(ue);let Y=k.text,B=C(k),ae=l(k,G);y(k,L,ae,K),N.assert(ae.span.start<=G.span.start),N.assert(Kt(ae.span)===Kt(G.span)),N.assert(Kt(Qs(ae))===Kt(Qs(G)));let Ce=Qs(ae).length-ae.span.length;h(ue,ae.span.start,Kt(ae.span),Kt(Qs(ae)),Ce,Y,L,K);let Ze=Zn.parseSourceFile(k.fileName,L,k.languageVersion,B,!0,k.scriptKind,k.setExternalModuleIndicator);return Ze.commentDirectives=r(k.commentDirectives,Ze.commentDirectives,ae.span.start,Kt(ae.span),Ce,Y,L,K),Ze.impliedNodeFormat=k.impliedNodeFormat,Ze}e.updateSourceFile=t;function r(k,L,G,K,ue,Y,B,ae){if(!k)return L;let Ce,Ze=!1;for(let rt of k){let{range:it,type:Ir}=rt;if(it.endK){qe();let ar={range:{pos:it.pos+ue,end:it.end+ue},type:Ir};Ce=xt(Ce,ar),ae&&N.assert(Y.substring(it.pos,it.end)===B.substring(ar.range.pos,ar.range.end))}}return qe(),Ce;function qe(){Ze||(Ze=!0,Ce?L&&Ce.push(...L):Ce=L)}}function a(k,L,G,K,ue,Y){L?ae(k):B(k);return;function B(Ce){let Ze="";if(Y&&_(Ce)&&(Ze=K.substring(Ce.pos,Ce.end)),Ce._children&&(Ce._children=void 0),Ya(Ce,Ce.pos+G,Ce.end+G),Y&&_(Ce)&&N.assert(Ze===ue.substring(Ce.pos,Ce.end)),Bt(Ce,B,ae),Wi(Ce))for(let qe of Ce.jsDoc)B(qe);d(Ce,Y)}function ae(Ce){Ce._children=void 0,Ya(Ce,Ce.pos+G,Ce.end+G);for(let Ze of Ce)B(Ze)}}function _(k){switch(k.kind){case 11:case 9:case 80:return!0}return!1}function p(k,L,G,K,ue){N.assert(k.end>=L,"Adjusting an element that was entirely before the change range"),N.assert(k.pos<=G,"Adjusting an element that was entirely after the change range"),N.assert(k.pos<=k.end);let Y=Math.min(k.pos,K),B=k.end>=G?k.end+ue:Math.min(k.end,K);N.assert(Y<=B),k.parent&&(N.assertGreaterThanOrEqual(Y,k.parent.pos),N.assertLessThanOrEqual(B,k.parent.end)),Ya(k,Y,B)}function d(k,L){if(L){let G=k.pos,K=ue=>{N.assert(ue.pos>=G),G=ue.end};if(Wi(k))for(let ue of k.jsDoc)K(ue);Bt(k,K),N.assert(G<=k.end)}}function h(k,L,G,K,ue,Y,B,ae){Ce(k);return;function Ce(qe){if(N.assert(qe.pos<=qe.end),qe.pos>G){a(qe,!1,ue,Y,B,ae);return}let rt=qe.end;if(rt>=L){if(qe.intersectsChange=!0,qe._children=void 0,p(qe,L,G,K,ue),Bt(qe,Ce,Ze),Wi(qe))for(let it of qe.jsDoc)Ce(it);d(qe,ae);return}N.assert(rtG){a(qe,!0,ue,Y,B,ae);return}let rt=qe.end;if(rt>=L){qe.intersectsChange=!0,qe._children=void 0,p(qe,L,G,K,ue);for(let it of qe)Ce(it);return}N.assert(rt0&&B<=1;B++){let ae=v(k,K);N.assert(ae.pos<=K);let Ce=ae.pos;K=Math.max(0,Ce-1)}let ue=Hi(K,Kt(L.span)),Y=L.newLength+(L.span.start-K);return Xd(ue,Y)}function v(k,L){let G=k,K;if(Bt(k,Y),K){let B=ue(K);B.pos>G.pos&&(G=B)}return G;function ue(B){for(;;){let ae=DS(B);if(ae)B=ae;else return B}}function Y(B){if(!zi(B))if(B.pos<=L){if(B.pos>=G.pos&&(G=B),LL),!0}}function y(k,L,G,K){let ue=k.text;if(G&&(N.assert(ue.length-G.span.length+G.newLength===L.length),K||N.shouldAssert(3))){let Y=ue.substr(0,G.span.start),B=L.substr(0,G.span.start);N.assert(Y===B);let ae=ue.substring(Kt(G.span),ue.length),Ce=L.substring(Kt(Qs(G)),L.length);N.assert(ae===Ce)}}function C(k){let L=k.statements,G=0;N.assert(G=Ze.pos&&B=Ze.pos&&B{k[k.Value=-1]="Value"})(S||(S={}))})(Wf||(Wf={})),Vf=new Map,Y8=/^\/\/\/\s*<(\S+)\s.*?\/>/im,K8=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im}}),Vj=()=>{},$V=Vt({"src/compiler/pnp.ts"(){"use strict";r4()}}),Hj=()=>{},Gj=()=>{},Xj=()=>{},$j=()=>{},Qj=()=>{},Yj=()=>{},Kj=()=>{},Zj=()=>{},eF=()=>{},tF=()=>{},rF=()=>{},nF=()=>{},iF=()=>{},aF=()=>{},oF=()=>{},sF=()=>{},_F=()=>{},cF=()=>{},lF=()=>{},uF=()=>{},pF=()=>{},fF=()=>{},dF=()=>{},mF=()=>{},hF=()=>{},yF=()=>{},gF=()=>{},bF=()=>{},vF=()=>{},TF=()=>{},SF=()=>{},xF=()=>{},wF=()=>{},CF=()=>{},EF=()=>{},AF=()=>{},kF=()=>{},DF=()=>{},PF=()=>{},IF=()=>{},NF=()=>{},OF=()=>{},MF=()=>{},LF=()=>{},JF=()=>{},RF=()=>{},jF=()=>{},Dr=Vt({"src/compiler/_namespaces/ts.ts"(){"use strict";O5(),fE(),Hv(),dE(),mE(),yE(),vE(),$v(),SE(),r4(),jE(),GE(),Rk(),xL(),wL(),CL(),EL(),FL(),BL(),UL(),hR(),Dj(),Pj(),Wj(),Vj(),Hj(),Gj(),Xj(),Qj(),Yj(),Kj(),Zj(),eF(),tF(),rF(),nF(),iF(),aF(),oF(),sF(),_F(),cF(),lF(),uF(),pF(),fF(),dF(),mF(),hF(),yF(),gF(),bF(),vF(),TF(),SF(),xF(),wF(),CF(),EF(),AF(),kF(),DF(),PF(),IF(),NF(),OF(),MF(),LF(),JF(),RF(),jF(),$j(),Xv()}}),Z8=()=>{},FF=()=>{},e7=()=>{},Fo,e7=()=>{Hv(),Fo=ns(99,!0)},BF=()=>{},t7=()=>{},UF=()=>{},qF=()=>{},zF=()=>{},WF=()=>{},VF=()=>{},HF=()=>{},GF=()=>{},XF=()=>{},r7=()=>{},n7=()=>{},i7=()=>{},$F=()=>{};function a7(e,t,r,a){let _=ql(e)?new Nd(e,t,r):e===80?new Od(80,t,r):e===81?new Md(81,t,r):new W6(e,t,r);return _.parent=a,_.flags=a.flags&101441536,_}function QF(e,t){if(!ql(e.kind))return $e;let r=[];if(C3(e))return e.forEachChild(d=>{r.push(d)}),r;Fo.setText((t||e.getSourceFile()).text);let a=e.pos,_=d=>{hl(r,a,d.pos,e),r.push(d),a=d.end},p=d=>{hl(r,a,d.pos,e),r.push(YF(d,e)),a=d.end};return yr(e.jsDoc,_),a=e.pos,e.forEachChild(_,p),hl(r,a,e.end,e),Fo.setText(void 0),r}function hl(e,t,r,a){for(Fo.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function kf(e,t){if(!e)return $e;let r=ts_JsDoc_exports.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some(o7))){let a=new Set;for(let _ of e){let p=s7(t,_,d=>{var h;if(!a.has(d))return a.add(d),_.kind===177||_.kind===178?d.getContextualJsDocTags(_,t):((h=d.declarations)==null?void 0:h.length)===1?d.getJsDocTags():void 0});p&&(r=[...p,...r])}}return r}function Kc(e,t){if(!e)return $e;let r=ts_JsDoc_exports.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some(o7))){let a=new Set;for(let _ of e){let p=s7(t,_,d=>{if(!a.has(d))return a.add(d),_.kind===177||_.kind===178?d.getContextualDocumentationComment(_,t):d.getDocumentationComment(t)});p&&(r=r.length===0?p.slice():p.concat(lineBreakPart(),r))}}return r}function s7(e,t,r){var a;let _=((a=t.parent)==null?void 0:a.kind)===176?t.parent.parent:t.parent;if(!_)return;let p=gm(t);return ng(IT(_),d=>{let h=e.getTypeAtLocation(d),l=p&&h.symbol?e.getTypeOfSymbol(h.symbol):h,v=e.getPropertyOfType(l,t.symbol.name);return v?r(v):void 0})}function KF(){return{getNodeConstructor:()=>Nd,getTokenConstructor:()=>W6,getIdentifierConstructor:()=>Od,getPrivateIdentifierConstructor:()=>Md,getSourceFileConstructor:()=>g7,getSymbolConstructor:()=>m7,getTypeConstructor:()=>h7,getSignatureConstructor:()=>y7,getSourceMapSourceConstructor:()=>b7}}function sl(e){let t=!0;for(let a in e)if(Qr(e,a)&&!mv(a)){t=!1;break}if(t)return e;let r={};for(let a in e)if(Qr(e,a)){let _=mv(a)?a:a.charAt(0).toLowerCase()+a.substr(1);r[_]=e[a]}return r}function mv(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function ZF(e){return e?Aa(e,t=>t.text).join(""):""}function _7(){return{target:1,jsx:1}}function c7(){return ts_codefix_exports.getSupportedErrorCodes()}function l7(e,t,r){e.version=r,e.scriptSnapshot=t}function z6(e,t,r,a,_,p){let d=H8(e,getSnapshotText(t),r,_,p);return l7(d,t,a),d}function u7(e,t,r,a,_){if(a&&r!==e.version){let d,h=a.span.start!==0?e.text.substr(0,a.span.start):"",l=Kt(a.span)!==e.text.length?e.text.substr(Kt(a.span)):"";if(a.newLength===0)d=h&&l?h+l:h||l;else{let y=t.getText(a.span.start,a.span.start+a.newLength);d=h&&l?h+y+l:h?h+y:y+l}let v=q6(e,d,a,_);return l7(v,t,r),v.nameTable=void 0,e!==v&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),v}let p={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator};return z6(e.fileName,t,p,r,!0,e.scriptKind)}function eB(e,t=createDocumentRegistry(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()),r){var a;let _;r===void 0?_=0:typeof r=="boolean"?_=r?2:0:_=r;let p=new v7(e),d,h,l=0,v=e.getCancellationToken?new S7(e.getCancellationToken()):T7,y=e.getCurrentDirectory();OS((a=e.getLocalizedDiagnosticMessages)==null?void 0:a.bind(e));function C(j){e.log&&e.log(j)}let S=C2(e),k=Bd(S),L=getSourceMapper({useCaseSensitiveFileNames:()=>S,getCurrentDirectory:()=>y,getProgram:ue,fileExists:rr(e,e.fileExists),readFile:rr(e,e.readFile),getDocumentPositionMapper:rr(e,e.getDocumentPositionMapper),getSourceFileLike:rr(e,e.getSourceFileLike),log:C});function G(j){let T=d.getSourceFile(j);if(!T){let x=new Error(`Could not find source file: '${j}'.`);throw x.ProgramFiles=d.getSourceFiles().map(f=>f.fileName),x}return T}function K(){var j,T,x;if(N.assert(_!==2),e.getProjectVersion){let Ie=e.getProjectVersion();if(Ie){if(h===Ie&&!((j=e.hasChangedAutomaticTypeDirectiveNames)!=null&&j.call(e)))return;h=Ie}}let f=e.getTypeRootsVersion?e.getTypeRootsVersion():0;l!==f&&(C("TypeRoots version has changed; provide new program"),d=void 0,l=f);let $=e.getScriptFileNames().slice(),Q=e.getCompilationSettings()||_7(),O=e.hasInvalidatedResolutions||Xf,fe=rr(e,e.hasInvalidatedLibResolutions)||Xf,be=rr(e,e.hasChangedAutomaticTypeDirectiveNames),he=(T=e.getProjectReferences)==null?void 0:T.call(e),Re,we={getSourceFile:H,getSourceFileByPath:Fa,getCancellationToken:()=>v,getCanonicalFileName:k,useCaseSensitiveFileNames:()=>S,getNewLine:()=>TS(Q),getDefaultLibFileName:Ie=>e.getDefaultLibFileName(Ie),writeFile:Rn,getCurrentDirectory:()=>y,fileExists:Ie=>e.fileExists(Ie),readFile:Ie=>e.readFile&&e.readFile(Ie),getSymlinkCache:rr(e,e.getSymlinkCache),realpath:rr(e,e.realpath),directoryExists:Ie=>vS(Ie,e),getDirectories:Ie=>e.getDirectories?e.getDirectories(Ie):[],readDirectory:(Ie,ot,cr,an,Ba)=>(N.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(Ie,ot,cr,an,Ba)),onReleaseOldSourceFile:Et,onReleaseParsedCommandLine:An,hasInvalidatedResolutions:O,hasInvalidatedLibResolutions:fe,hasChangedAutomaticTypeDirectiveNames:be,trace:rr(e,e.trace),resolveModuleNames:rr(e,e.resolveModuleNames),getModuleResolutionCache:rr(e,e.getModuleResolutionCache),createHash:rr(e,e.createHash),resolveTypeReferenceDirectives:rr(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:rr(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:rr(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:rr(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:rr(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:Te},et=we.getSourceFile,{getSourceFileWithCache:Ye}=changeCompilerHostLikeToUseCache(we,Ie=>xi(Ie,y,k),(...Ie)=>et.call(we,...Ie));we.getSourceFile=Ye,(x=e.setCompilerHost)==null||x.call(e,we);let Ke={useCaseSensitiveFileNames:S,fileExists:Ie=>we.fileExists(Ie),readFile:Ie=>we.readFile(Ie),directoryExists:Ie=>we.directoryExists(Ie),getDirectories:Ie=>we.getDirectories(Ie),realpath:we.realpath,readDirectory:(...Ie)=>we.readDirectory(...Ie),trace:we.trace,getCurrentDirectory:we.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:Rn},It=t.getKeyForCompilationSettings(Q),qt=new Set;if(isProgramUptoDate(d,$,Q,(Ie,ot)=>e.getScriptVersion(ot),Ie=>we.fileExists(Ie),O,fe,be,Te,he)){we=void 0,Re=void 0,qt=void 0;return}let _r={rootNames:$,options:Q,host:we,oldProgram:d,projectReferences:he};d=createProgram(_r),we=void 0,Re=void 0,qt=void 0,L.clearCache(),d.getTypeChecker();return;function Te(Ie){let ot=xi(Ie,y,k),cr=Re==null?void 0:Re.get(ot);if(cr!==void 0)return cr||void 0;let an=e.getParsedCommandLine?e.getParsedCommandLine(Ie):ft(Ie);return(Re||(Re=new Map)).set(ot,an||!1),an}function ft(Ie){let ot=H(Ie,100);if(ot)return ot.path=xi(Ie,y,k),ot.resolvedPath=ot.path,ot.originalFileName=ot.fileName,parseJsonSourceFileConfigFileContent(ot,Ke,Pa($i(Ie),y),void 0,Pa(Ie,y))}function An(Ie,ot,cr){var an;e.getParsedCommandLine?(an=e.onReleaseParsedCommandLine)==null||an.call(e,Ie,ot,cr):ot&&Et(ot.sourceFile,cr)}function Et(Ie,ot){let cr=t.getKeyForCompilationSettings(ot);t.releaseDocumentWithKey(Ie.resolvedPath,cr,Ie.scriptKind,Ie.impliedNodeFormat)}function H(Ie,ot,cr,an){return Fa(Ie,xi(Ie,y,k),ot,cr,an)}function Fa(Ie,ot,cr,an,Ba){N.assert(we,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");let kn=e.getScriptSnapshot(Ie);if(!kn)return;let je=getScriptKind(Ie,e),dt=e.getScriptVersion(Ie);if(!Ba){let li=d&&d.getSourceFileByPath(ot);if(li){if(je===li.scriptKind||qt.has(li.resolvedPath))return t.updateDocumentWithKey(Ie,ot,e,It,kn,dt,je,cr);t.releaseDocumentWithKey(li.resolvedPath,t.getKeyForCompilationSettings(d.getCompilerOptions()),li.scriptKind,li.impliedNodeFormat),qt.add(li.resolvedPath)}}return t.acquireDocumentWithKey(Ie,ot,e,It,kn,dt,je,cr)}}function ue(){if(_===2){N.assert(d===void 0);return}return K(),d}function Y(){var j;return(j=e.getPackageJsonAutoImportProvider)==null?void 0:j.call(e)}function B(j,T){let x=d.getTypeChecker(),f=$();if(!f)return!1;for(let O of j)for(let fe of O.references){let be=Q(fe);if(N.assertIsDefined(be),T.has(fe)||ts_FindAllReferences_exports.isDeclarationOfSymbol(be,f)){T.add(fe),fe.isDefinition=!0;let he=getMappedDocumentSpan(fe,L,rr(e,e.fileExists));he&&T.add(he)}else fe.isDefinition=!1}return!0;function $(){for(let O of j)for(let fe of O.references){if(T.has(fe)){let he=Q(fe);return N.assertIsDefined(he),x.getSymbolAtLocation(he)}let be=getMappedDocumentSpan(fe,L,rr(e,e.fileExists));if(be&&T.has(be)){let he=Q(be);if(he)return x.getSymbolAtLocation(he)}}}function Q(O){let fe=d.getSourceFile(O.fileName);if(!fe)return;let be=getTouchingPropertyName(fe,O.textSpan.start);return ts_FindAllReferences_exports.Core.getAdjustedNode(be,{use:ts_FindAllReferences_exports.FindReferencesUse.References})}}function ae(){if(d){let j=t.getKeyForCompilationSettings(d.getCompilerOptions());yr(d.getSourceFiles(),T=>t.releaseDocumentWithKey(T.resolvedPath,j,T.scriptKind,T.impliedNodeFormat)),d=void 0}}function Ce(){ae(),e=void 0}function Ze(j){return K(),d.getSyntacticDiagnostics(G(j),v).slice()}function qe(j){K();let T=G(j),x=d.getSemanticDiagnostics(T,v);if(!z2(d.getCompilerOptions()))return x.slice();let f=d.getDeclarationDiagnostics(T,v);return[...x,...f]}function rt(j){return K(),computeSuggestionDiagnostics(G(j),d,v)}function it(){return K(),[...d.getOptionsDiagnostics(v),...d.getGlobalDiagnostics(v)]}function Ir(j,T,x=emptyOptions,f){let $={...x,includeCompletionsForModuleExports:x.includeCompletionsForModuleExports||x.includeExternalModuleExports,includeCompletionsWithInsertText:x.includeCompletionsWithInsertText||x.includeInsertTextCompletions};return K(),ts_Completions_exports.getCompletionsAtPosition(e,d,C,G(j),T,$,x.triggerCharacter,x.triggerKind,v,f&&ts_formatting_exports.getFormatContext(f,e),x.includeSymbol)}function ar(j,T,x,f,$,Q=emptyOptions,O){return K(),ts_Completions_exports.getCompletionEntryDetails(d,C,G(j),T,{name:x,source:$,data:O},e,f&&ts_formatting_exports.getFormatContext(f,e),Q,v)}function ci(j,T,x,f,$=emptyOptions){return K(),ts_Completions_exports.getCompletionEntrySymbol(d,C,G(j),T,{name:x,source:f},e,$)}function or(j,T){K();let x=G(j),f=getTouchingPropertyName(x,T);if(f===x)return;let $=d.getTypeChecker(),Q=Nr(f),O=aB(Q,$);if(!O||$.isUnknownSymbol(O)){let we=Ge(x,Q,T)?$.getTypeAtLocation(Q):void 0;return we&&{kind:"",kindModifiers:"",textSpan:createTextSpanFromNode(Q,x),displayParts:$.runWithCancellationToken(v,et=>typeToDisplayParts(et,we,getContainerNode(Q))),documentation:we.symbol?we.symbol.getDocumentationComment($):void 0,tags:we.symbol?we.symbol.getJsDocTags($):void 0}}let{symbolKind:fe,displayParts:be,documentation:he,tags:Re}=$.runWithCancellationToken(v,we=>ts_SymbolDisplay_exports.getSymbolDisplayPartsDocumentationAndSymbolKind(we,O,x,getContainerNode(Q),Q));return{kind:fe,kindModifiers:ts_SymbolDisplay_exports.getSymbolModifiers($,O),textSpan:createTextSpanFromNode(Q,x),displayParts:be,documentation:he,tags:Re}}function Nr(j){return o8(j.parent)&&j.pos===j.parent.pos?j.parent.expression:p6(j.parent)&&j.pos===j.parent.pos||x0(j.parent)&&j.parent.name===j||U_(j.parent)?j.parent:j}function Ge(j,T,x){switch(T.kind){case 80:return!isLabelName(T)&&!isTagName(T)&&!Z4(T.parent);case 211:case 166:return!isInComment(j,x);case 110:case 197:case 108:case 202:return!0;case 236:return x0(T);default:return!1}}function Gt(j,T,x,f){return K(),ts_GoToDefinition_exports.getDefinitionAtPosition(d,G(j),T,x,f)}function Ur(j,T){return K(),ts_GoToDefinition_exports.getDefinitionAndBoundSpan(d,G(j),T)}function Xt(j,T){return K(),ts_GoToDefinition_exports.getTypeDefinitionAtPosition(d.getTypeChecker(),G(j),T)}function Tn(j,T){return K(),ts_FindAllReferences_exports.getImplementationsAtPosition(d,v,d.getSourceFiles(),G(j),T)}function Sn(j,T,x){let f=pn(j);N.assert(x.some(O=>pn(O)===f)),K();let $=Za(x,O=>d.getSourceFile(O)),Q=G(j);return DocumentHighlights.getDocumentHighlights(d,v,Q,T,$)}function sr(j,T,x,f,$){K();let Q=G(j),O=getAdjustedRenameLocation(getTouchingPropertyName(Q,T));if(ts_Rename_exports.nodeIsEligibleForRename(O))if(Ee(O)&&(Oo(O.parent)||qf(O.parent))&&WT(O.escapedText)){let{openingElement:fe,closingElement:be}=O.parent.parent;return[fe,be].map(he=>{let Re=createTextSpanFromNode(he.tagName,Q);return{fileName:Q.fileName,textSpan:Re,...ts_FindAllReferences_exports.toContextSpan(Re,Q,he.parent)}})}else{let fe=getQuotePreference(Q,$??emptyOptions),be=typeof $=="boolean"?$:$==null?void 0:$.providePrefixAndSuffixTextForRename;return St(O,T,{findInStrings:x,findInComments:f,providePrefixAndSuffixTextForRename:be,use:ts_FindAllReferences_exports.FindReferencesUse.Rename},(he,Re,we)=>ts_FindAllReferences_exports.toRenameLocation(he,Re,we,be||!1,fe))}}function $t(j,T){return K(),St(getTouchingPropertyName(G(j),T),T,{use:ts_FindAllReferences_exports.FindReferencesUse.References},ts_FindAllReferences_exports.toReferenceEntry)}function St(j,T,x,f){K();let $=x&&x.use===ts_FindAllReferences_exports.FindReferencesUse.Rename?d.getSourceFiles().filter(Q=>!d.isSourceFileDefaultLibrary(Q)):d.getSourceFiles();return ts_FindAllReferences_exports.findReferenceOrRenameEntries(d,v,$,j,T,x,f)}function xn(j,T){return K(),ts_FindAllReferences_exports.findReferencedSymbols(d,v,d.getSourceFiles(),G(j),T)}function Tr(j){return K(),ts_FindAllReferences_exports.Core.getReferencesForFileName(j,d,d.getSourceFiles()).map(ts_FindAllReferences_exports.toReferenceEntry)}function vt(j,T,x,f=!1){K();let $=x?[G(x)]:d.getSourceFiles();return getNavigateToItems($,d.getTypeChecker(),v,j,T,f)}function ct(j,T,x){K();let f=G(j),$=e.getCustomTransformers&&e.getCustomTransformers();return getFileEmitOutput(d,f,!!T,v,$,x)}function Ut(j,T,{triggerReason:x}=emptyOptions){K();let f=G(j);return ts_SignatureHelp_exports.getSignatureHelpItems(d,f,T,x,v)}function fr(j){return p.getCurrentSourceFile(j)}function ht(j,T,x){let f=p.getCurrentSourceFile(j),$=getTouchingPropertyName(f,T);if($===f)return;switch($.kind){case 211:case 166:case 11:case 97:case 112:case 106:case 108:case 110:case 197:case 80:break;default:return}let Q=$;for(;;)if(isRightSideOfPropertyAccess(Q)||isRightSideOfQualifiedName(Q))Q=Q.parent;else if(isNameOfModuleDeclaration(Q))if(Q.parent.parent.kind===267&&Q.parent.parent.body===Q.parent)Q=Q.parent.parent.name;else break;else break;return Hi(Q.getStart(),$.getEnd())}function wn(j,T){let x=p.getCurrentSourceFile(j);return ts_BreakpointResolver_exports.spanInSourceFileAtLocation(x,T)}function Tt(j){return getNavigationBarItems(p.getCurrentSourceFile(j),v)}function Or(j){return getNavigationTree(p.getCurrentSourceFile(j),v)}function pt(j,T,x){return K(),(x||"original")==="2020"?getSemanticClassifications2(d,v,G(j),T):getSemanticClassifications(d.getTypeChecker(),v,G(j),d.getClassifiableNames(),T)}function Mr(j,T,x){return K(),(x||"original")==="original"?getEncodedSemanticClassifications(d.getTypeChecker(),v,G(j),d.getClassifiableNames(),T):getEncodedSemanticClassifications2(d,v,G(j),T)}function at(j,T){return getSyntacticClassifications(v,p.getCurrentSourceFile(j),T)}function er(j,T){return getEncodedSyntacticClassifications(v,p.getCurrentSourceFile(j),T)}function Qt(j){let T=p.getCurrentSourceFile(j);return ts_OutliningElementsCollector_exports.collectElements(T,v)}let tn=new Map(Object.entries({19:20,21:22,23:24,32:30}));tn.forEach((j,T)=>tn.set(j.toString(),Number(T)));function Bn(j,T){let x=p.getCurrentSourceFile(j),f=getTouchingToken(x,T),$=f.getStart(x)===T?tn.get(f.kind.toString()):void 0,Q=$&&findChildOfKind(f.parent,$,x);return Q?[createTextSpanFromNode(f,x),createTextSpanFromNode(Q,x)].sort((O,fe)=>O.start-fe.start):$e}function Un(j,T,x){let f=Sa(),$=sl(x),Q=p.getCurrentSourceFile(j);C("getIndentationAtPosition: getCurrentSourceFile: "+(Sa()-f)),f=Sa();let O=ts_formatting_exports.SmartIndenter.getIndentation(T,Q,$);return C("getIndentationAtPosition: computeIndentation : "+(Sa()-f)),O}function rn(j,T,x,f){let $=p.getCurrentSourceFile(j);return ts_formatting_exports.formatSelection(T,x,$,ts_formatting_exports.getFormatContext(sl(f),e))}function nn(j,T){return ts_formatting_exports.formatDocument(p.getCurrentSourceFile(j),ts_formatting_exports.getFormatContext(sl(T),e))}function Di(j,T,x,f){let $=p.getCurrentSourceFile(j),Q=ts_formatting_exports.getFormatContext(sl(f),e);if(!isInComment($,T))switch(x){case"{":return ts_formatting_exports.formatOnOpeningCurly(T,$,Q);case"}":return ts_formatting_exports.formatOnClosingCurly(T,$,Q);case";":return ts_formatting_exports.formatOnSemicolon(T,$,Q);case` +`:return ts_formatting_exports.formatOnEnter(T,$,Q)}return[]}function qn(j,T,x,f,$,Q=emptyOptions){K();let O=G(j),fe=Hi(T,x),be=ts_formatting_exports.getFormatContext($,e);return Bo(xv(f,_o,kr),he=>(v.throwIfCancellationRequested(),ts_codefix_exports.getFixes({errorCode:he,sourceFile:O,span:fe,program:d,host:e,cancellationToken:v,formatContext:be,preferences:Q})))}function Ae(j,T,x,f=emptyOptions){K(),N.assert(j.type==="file");let $=G(j.fileName),Q=ts_formatting_exports.getFormatContext(x,e);return ts_codefix_exports.getAllFixes({fixId:T,sourceFile:$,program:d,host:e,cancellationToken:v,formatContext:Q,preferences:f})}function q(j,T,x=emptyOptions){K(),N.assert(j.type==="file");let f=G(j.fileName),$=ts_formatting_exports.getFormatContext(T,e),Q=j.mode??(j.skipDestructiveCodeActions?"SortAndCombine":"All");return ts_OrganizeImports_exports.organizeImports(f,$,e,d,x,Q)}function oe(j,T,x,f=emptyOptions){return getEditsForFileRename(ue(),j,T,e,ts_formatting_exports.getFormatContext(x,e),f,L)}function ge(j,T){let x=typeof j=="string"?T:j;return zt(x)?Promise.all(x.map(f=>Se(f))):Se(x)}function Se(j){let T=x=>xi(x,y,k);return N.assertEqual(j.type,"install package"),e.installPackage?e.installPackage({fileName:T(j.file),packageName:j.packageName}):Promise.reject("Host does not implement `installPackage`")}function nt(j,T,x,f){let $=f?ts_formatting_exports.getFormatContext(f,e).options:void 0;return ts_JsDoc_exports.getDocCommentTemplateAtPosition(getNewLineOrDefaultFromHost(e,$),p.getCurrentSourceFile(j),T,x)}function z(j,T,x){if(x===60)return!1;let f=p.getCurrentSourceFile(j);if(isInString(f,T))return!1;if(isInsideJsxElementOrAttribute(f,T))return x===123;if(isInTemplateString(f,T))return!1;switch(x){case 39:case 34:case 96:return!isInComment(f,T)}return!0}function X(j,T){let x=p.getCurrentSourceFile(j),f=findPrecedingToken(T,x);if(!f)return;let $=f.kind===32&&Oo(f.parent)?f.parent.parent:kd(f)&&Q0(f.parent)?f.parent:void 0;if($&&jt($))return{newText:``};let Q=f.kind===32&&k6(f.parent)?f.parent.parent:kd(f)&&dl(f.parent)?f.parent:void 0;if(Q&&qr(Q))return{newText:""}}function ee(j,T){let x=p.getCurrentSourceFile(j),f=findPrecedingToken(T,x);if(!f||f.parent.kind===312)return;let $="[a-zA-Z0-9:\\-\\._$]*";if(dl(f.parent.parent)){let Q=f.parent.parent.openingFragment,O=f.parent.parent.closingFragment;if(xl(Q)||xl(O))return;let fe=Q.getStart(x)+1,be=O.getStart(x)+2;return T!==fe&&T!==be?void 0:{ranges:[{start:fe,length:0},{start:be,length:0}],wordPattern:$}}else{let Q=Kr(f.parent,Ye=>!!(Oo(Ye)||qf(Ye)));if(!Q)return;N.assert(Oo(Q)||qf(Q),"tag should be opening or closing element");let O=Q.parent.openingElement,fe=Q.parent.closingElement,be=O.tagName.getStart(x),he=O.tagName.end,Re=fe.tagName.getStart(x),we=fe.tagName.end;return!(be<=T&&T<=he||Re<=T&&T<=we)||O.tagName.getText(x)!==fe.tagName.getText(x)?void 0:{ranges:[{start:be,length:he-be},{start:Re,length:we-Re}],wordPattern:$}}}function xe(j,T){return{lineStarts:j.getLineStarts(),firstLine:j.getLineAndCharacterOfPosition(T.pos).line,lastLine:j.getLineAndCharacterOfPosition(T.end).line}}function ke(j,T,x){let f=p.getCurrentSourceFile(j),$=[],{lineStarts:Q,firstLine:O,lastLine:fe}=xe(f,T),be=x||!1,he=Number.MAX_VALUE,Re=new Map,we=new RegExp(/\S/),et=isInsideJsxElement(f,Q[O]),Ye=et?"{/*":"//";for(let Ke=O;Ke<=fe;Ke++){let It=f.text.substring(Q[Ke],f.getLineEndOfPosition(Q[Ke])),qt=we.exec(It);qt&&(he=Math.min(he,qt.index),Re.set(Ke.toString(),qt.index),It.substr(qt.index,Ye.length)!==Ye&&(be=x===void 0||x))}for(let Ke=O;Ke<=fe;Ke++){if(O!==fe&&Q[Ke]===T.end)continue;let It=Re.get(Ke.toString());It!==void 0&&(et?$.push.apply($,Le(j,{pos:Q[Ke]+he,end:f.getLineEndOfPosition(Q[Ke])},be,et)):be?$.push({newText:Ye,span:{length:0,start:Q[Ke]+he}}):f.text.substr(Q[Ke]+It,Ye.length)===Ye&&$.push({newText:"",span:{length:Ye.length,start:Q[Ke]+It}}))}return $}function Le(j,T,x,f){var $;let Q=p.getCurrentSourceFile(j),O=[],{text:fe}=Q,be=!1,he=x||!1,Re=[],{pos:we}=T,et=f!==void 0?f:isInsideJsxElement(Q,we),Ye=et?"{/*":"/*",Ke=et?"*/}":"*/",It=et?"\\{\\/\\*":"\\/\\*",qt=et?"\\*\\/\\}":"\\*\\/";for(;we<=T.end;){let _r=fe.substr(we,Ye.length)===Ye?Ye.length:0,Te=isInComment(Q,we+_r);if(Te)et&&(Te.pos--,Te.end++),Re.push(Te.pos),Te.kind===3&&Re.push(Te.end),be=!0,we=Te.end+1;else{let ft=fe.substring(we,T.end).search(`(${It})|(${qt})`);he=x!==void 0?x:he||!isTextWhiteSpaceLike(fe,we,ft===-1?T.end:we+ft),we=ft===-1?T.end+1:we+ft+Ke.length}}if(he||!be){(($=isInComment(Q,T.pos))==null?void 0:$.kind)!==2&&yl(Re,T.pos,kr),yl(Re,T.end,kr);let _r=Re[0];fe.substr(_r,Ye.length)!==Ye&&O.push({newText:Ye,span:{length:0,start:_r}});for(let Te=1;Te0?_r-Ke.length:0,ft=fe.substr(Te,Ke.length)===Ke?Ke.length:0;O.push({newText:"",span:{length:Ye.length,start:_r-ft}})}return O}function lt(j,T){let x=p.getCurrentSourceFile(j),{firstLine:f,lastLine:$}=xe(x,T);return f===$&&T.pos!==T.end?Le(j,T,!0):ke(j,T,!0)}function yt(j,T){let x=p.getCurrentSourceFile(j),f=[],{pos:$}=T,{end:Q}=T;$===Q&&(Q+=isInsideJsxElement(x,$)?2:1);for(let O=$;O<=Q;O++){let fe=isInComment(x,O);if(fe){switch(fe.kind){case 2:f.push.apply(f,ke(j,{end:fe.end,pos:fe.pos+1},!1));break;case 3:f.push.apply(f,Le(j,{end:fe.end,pos:fe.pos+1},!1))}O=fe.end+1}}return f}function jt({openingElement:j,closingElement:T,parent:x}){return!Ti(j.tagName,T.tagName)||Q0(x)&&Ti(j.tagName,x.openingElement.tagName)&&jt(x)}function qr({closingFragment:j,parent:T}){return!!(j.flags&262144)||dl(T)&&qr(T)}function na(j,T,x){let f=p.getCurrentSourceFile(j),$=ts_formatting_exports.getRangeOfEnclosingComment(f,T);return $&&(!x||$.kind===3)?createTextSpanFromRange($):void 0}function Cn(j,T){K();let x=G(j);v.throwIfCancellationRequested();let f=x.text,$=[];if(T.length>0&&!be(x.fileName)){let he=O(),Re;for(;Re=he.exec(f);){v.throwIfCancellationRequested();let we=3;N.assert(Re.length===T.length+we);let et=Re[1],Ye=Re.index+et.length;if(!isInComment(x,Ye))continue;let Ke;for(let qt=0;qt"("+Q(Te.text)+")").join("|")+")",Ke=/(?:$|\*\/)/.source,It=/(?:.*?)/.source,qt="("+Ye+It+")",_r=et+qt+Ke;return new RegExp(_r,"gim")}function fe(he){return he>=97&&he<=122||he>=65&&he<=90||he>=48&&he<=57}function be(he){return eo(he,"/node_modules/")}}function zn(j,T,x){return K(),ts_Rename_exports.getRenameInfo(d,G(j),T,x||{})}function Pi(j,T,x,f,$,Q){let[O,fe]=typeof T=="number"?[T,void 0]:[T.pos,T.end];return{file:j,startPosition:O,endPosition:fe,program:ue(),host:e,formatContext:ts_formatting_exports.getFormatContext(f,e),cancellationToken:v,preferences:x,triggerReason:$,kind:Q}}function ia(j,T,x){return{file:j,program:ue(),host:e,span:T,preferences:x,cancellationToken:v}}function Wn(j,T){return ts_SmartSelectionRange_exports.getSmartSelectionRange(T,p.getCurrentSourceFile(j))}function En(j,T,x=emptyOptions,f,$,Q){K();let O=G(j);return ts_refactor_exports.getApplicableRefactors(Pi(O,T,x,emptyOptions,f,$),Q)}function Ii(j,T,x=emptyOptions){K();let f=G(j),$=N.checkDefined(d.getSourceFiles()),Q=rl(j),O=Za($,be=>!(d!=null&&d.isSourceFileFromExternalLibrary(f))&&!(f===G(be.fileName)||Q===".ts"&&rl(be.fileName)===".d.ts"||Q===".d.ts"&&Fr(T_(be.fileName),"lib.")&&rl(be.fileName)===".d.ts")&&Q===rl(be.fileName)?be.fileName:void 0);return{newFileName:createNewFileName(f,d,Pi(f,T,x,emptyOptions),e),files:O}}function aa(j,T,x,f,$,Q=emptyOptions,O){K();let fe=G(j);return ts_refactor_exports.getEditsForRefactor(Pi(fe,x,Q,T),f,$,O)}function Vn(j,T){return T===0?{line:0,character:0}:L.toLineColumnOffset(j,T)}function Sr(j,T){K();let x=ts_CallHierarchy_exports.resolveCallHierarchyDeclaration(d,getTouchingPropertyName(G(j),T));return x&&mapOneOrMany(x,f=>ts_CallHierarchy_exports.createCallHierarchyItem(d,f))}function Je(j,T){K();let x=G(j),f=firstOrOnly(ts_CallHierarchy_exports.resolveCallHierarchyDeclaration(d,T===0?x:getTouchingPropertyName(x,T)));return f?ts_CallHierarchy_exports.getIncomingCalls(d,f,v):[]}function oa(j,T){K();let x=G(j),f=firstOrOnly(ts_CallHierarchy_exports.resolveCallHierarchyDeclaration(d,T===0?x:getTouchingPropertyName(x,T)));return f?ts_CallHierarchy_exports.getOutgoingCalls(d,f):[]}function Mt(j,T,x=emptyOptions){K();let f=G(j);return ts_InlayHints_exports.provideInlayHints(ia(f,T,x))}let Lr={dispose:Ce,cleanupSemanticCache:ae,getSyntacticDiagnostics:Ze,getSemanticDiagnostics:qe,getSuggestionDiagnostics:rt,getCompilerOptionsDiagnostics:it,getSyntacticClassifications:at,getSemanticClassifications:pt,getEncodedSyntacticClassifications:er,getEncodedSemanticClassifications:Mr,getCompletionsAtPosition:Ir,getCompletionEntryDetails:ar,getCompletionEntrySymbol:ci,getSignatureHelpItems:Ut,getQuickInfoAtPosition:or,getDefinitionAtPosition:Gt,getDefinitionAndBoundSpan:Ur,getImplementationAtPosition:Tn,getTypeDefinitionAtPosition:Xt,getReferencesAtPosition:$t,findReferences:xn,getFileReferences:Tr,getDocumentHighlights:Sn,getNameOrDottedNameSpan:ht,getBreakpointStatementAtPosition:wn,getNavigateToItems:vt,getRenameInfo:zn,getSmartSelectionRange:Wn,findRenameLocations:sr,getNavigationBarItems:Tt,getNavigationTree:Or,getOutliningSpans:Qt,getTodoComments:Cn,getBraceMatchingAtPosition:Bn,getIndentationAtPosition:Un,getFormattingEditsForRange:rn,getFormattingEditsForDocument:nn,getFormattingEditsAfterKeystroke:Di,getDocCommentTemplateAtPosition:nt,isValidBraceCompletionAtPosition:z,getJsxClosingTagAtPosition:X,getLinkedEditingRangeAtPosition:ee,getSpanOfEnclosingComment:na,getCodeFixesAtPosition:qn,getCombinedCodeFix:Ae,applyCodeActionCommand:ge,organizeImports:q,getEditsForFileRename:oe,getEmitOutput:ct,getNonBoundSourceFile:fr,getProgram:ue,getCurrentProgram:()=>d,getAutoImportProvider:Y,updateIsDefinitionOfReferencedSymbols:B,getApplicableRefactors:En,getEditsForRefactor:aa,getMoveToRefactoringFileSuggestions:Ii,toLineColumnOffset:Vn,getSourceMapper:()=>L,clearSourceMapperCache:()=>L.clearCache(),prepareCallHierarchy:Sr,provideCallHierarchyIncomingCalls:Je,provideCallHierarchyOutgoingCalls:oa,toggleLineComment:ke,toggleMultilineComment:Le,commentSelection:lt,uncommentSelection:yt,provideInlayHints:Mt,getSupportedCodeFixes:c7};switch(_){case 0:break;case 1:rg.forEach(j=>Lr[j]=()=>{throw new Error(`LanguageService Operation: ${j} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:w7.forEach(j=>Lr[j]=()=>{throw new Error(`LanguageService Operation: ${j} not allowed in LanguageServiceMode.Syntactic`)});break;default:N.assertNever(_)}return Lr}function tB(e){return e.nameTable||rB(e),e.nameTable}function rB(e){let t=e.nameTable=new Map;e.forEachChild(function r(a){if(Ee(a)&&!isTagName(a)&&a.escapedText||Qi(a)&&nB(a)){let _=JT(a);t.set(_,t.get(_)===void 0?a.pos:-1)}else if(jr(a)){let _=a.escapedText;t.set(_,t.get(_)===void 0?a.pos:-1)}if(Bt(a,r),Wi(a))for(let _ of a.jsDoc)Bt(_,r)})}function nB(e){return wT(e)||e.parent.kind===283||oB(e)||CT(e)}function p7(e){let t=iB(e);return t&&(uo(t.parent)||D6(t.parent))?t:void 0}function iB(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===167)return b0(e.parent.parent)?e.parent.parent:void 0;case 80:return b0(e.parent)&&(e.parent.parent.kind===210||e.parent.parent.kind===292)&&e.parent.name===e?e.parent:void 0}}function aB(e,t){let r=p7(e);if(r){let a=t.getContextualType(r.parent),_=a&&f7(r,t,a,!1);if(_&&_.length===1)return og(_)}return t.getSymbolAtLocation(e)}function f7(e,t,r,a){let _=getNameFromPropertyName(e.name);if(!_)return $e;if(!r.isUnion()){let d=r.getProperty(_);return d?[d]:$e}let p=Za(r.types,d=>(uo(e.parent)||D6(e.parent))&&t.isTypeInvalidDueToUnionDiscriminant(d,e.parent)?void 0:d.getProperty(_));if(a&&(p.length===0||p.length===r.types.length)){let d=r.getProperty(_);if(d)return[d]}return p.length===0?Za(r.types,d=>d.getProperty(_)):p}function oB(e){return e&&e.parent&&e.parent.kind===212&&e.parent.argumentExpression===e}function sB(e){if(f0)return hr($i(pn(f0.getExecutingFilePath())),T4(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var d7,Nd,Df,m7,W6,Od,Md,h7,y7,g7,b7,v7,T7,S7,x7,rg,w7,_B=Vt({"src/services/services.ts"(){"use strict";C7(),r7(),n7(),i7(),t7(),$F(),d7="0.8",Nd=class{constructor(e,t,r){this.pos=t,this.end=r,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}assertHasRealPosition(e){N.assert(!Oa(this.pos)&&!Oa(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return ri(this)}getStart(e,t){return this.assertHasRealPosition(),Go(this,e,t)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=QF(this,e))}getFirstToken(e){this.assertHasRealPosition();let t=this.getChildren(e);if(!t.length)return;let r=Yr(t,a=>a.kind<316||a.kind>357);return r.kind<166?r:r.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let t=this.getChildren(e),r=wi(t);if(r)return r.kind<166?r:r.getLastToken(e)}forEachChild(e,t){return Bt(this,e,t)}},Df=class{constructor(e,t){this.pos=e,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}getSourceFile(){return ri(this)}getStart(e,t){return Go(this,e,t)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(e){return this.getChildren()[e]}getChildren(){return this.kind===1&&this.jsDoc||$e}getFirstToken(){}getLastToken(){}forEachChild(){}},m7=class{constructor(e,t){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=t}getFlags(){return this.flags}get name(){return md(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=$e,!this.declarations&&T0(this)&&this.links.target&&T0(this.links.target)&&this.links.target.links.tupleLabelDeclaration){let t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=Kc([t],e)}else this.documentationComment=Kc(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(el(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=Kc($r(this.declarations,el),t)),Ka(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(Zc(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=Kc($r(this.declarations,Zc),t)),Ka(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=kf(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(el(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=kf($r(this.declarations,el),t)),Ka(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(Zc(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=kf($r(this.declarations,Zc),t)),Ka(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},W6=class extends Df{constructor(e,t,r){super(t,r),this.kind=e}},Od=class extends Df{constructor(e,t,r){super(t,r),this.kind=80}get text(){return Ot(this)}},Od.prototype.kind=80,Md=class extends Df{constructor(e,t,r){super(t,r),this.kind=81}get text(){return Ot(this)}},Md.prototype.kind=81,h7=class{constructor(e,t){this.checker=e,this.flags=t}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(this.flags&1048576)}isIntersection(){return!!(this.flags&2097152)}isUnionOrIntersection(){return!!(this.flags&3145728)}isLiteral(){return!!(this.flags&2432)}isStringLiteral(){return!!(this.flags&128)}isNumberLiteral(){return!!(this.flags&256)}isTypeParameter(){return!!(this.flags&262144)}isClassOrInterface(){return!!(Rf(this)&3)}isClass(){return!!(Rf(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(Rf(this)&4)return this.checker.getTypeArguments(this)}},y7=class{constructor(e,t){this.checker=e,this.flags=t}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){let t=this.checker.getParameterType(this,e);if(t.isIndexType()&&ox(t.type)){let r=t.type.getConstraint();if(r)return this.checker.getIndexType(r)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=Kc($f(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=kf($f(this.declaration),this.checker))}},g7=class extends Nd{constructor(e,t,r){super(e,t,r),this.kind=312}update(e,t){return q6(this,e,t)}getLineAndCharacterOfPosition(e){return to(this,e)}getLineStarts(){return Ia(this)}getPositionOfLineAndCharacter(e,t,r){return Tg(Ia(this),e,t,this.text,r)}getLineEndOfPosition(e){let{line:t}=this.getLineAndCharacterOfPosition(e),r=this.getLineStarts(),a;t+1>=r.length&&(a=this.getEnd()),a||(a=r[t+1]-1);let _=this.getFullText();return _[a]===` +`&&_[a-1]==="\r"?a-1:a}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=jd();return this.forEachChild(_),e;function t(p){let d=a(p);d&&e.add(d,p)}function r(p){let d=e.get(p);return d||e.set(p,d=[]),d}function a(p){let d=Yd(p);return d&&(ao(d)&&Br(d.expression)?d.expression.name.text:zl(d)?getNameFromPropertyName(d):void 0)}function _(p){switch(p.kind){case 262:case 218:case 174:case 173:let d=p,h=a(d);if(h){let y=r(h),C=wi(y);C&&d.parent===C.parent&&d.symbol===C.symbol?d.body&&!C.body&&(y[y.length-1]=d):y.push(d)}Bt(p,_);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(p),Bt(p,_);break;case 169:if(!gr(p,16476))break;case 260:case 208:{let y=p;if(im(y.name)){Bt(y.name,_);break}y.initializer&&_(y.initializer)}case 306:case 172:case 171:t(p);break;case 278:let l=p;l.exportClause&&(d8(l.exportClause)?yr(l.exportClause.elements,_):_(l.exportClause.name));break;case 272:let v=p.importClause;v&&(v.name&&t(v.name),v.namedBindings&&(v.namedBindings.kind===274?t(v.namedBindings):yr(v.namedBindings.elements,_)));break;case 226:Ja(p)!==0&&t(p);default:Bt(p,_)}}}},b7=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}getLineAndCharacterOfPosition(e){return to(this,e)}},v7=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,r,a,_,p,d,h,l;let v=this.host.getScriptSnapshot(e);if(!v)throw new Error("Could not find file: '"+e+"'.");let y=getScriptKind(e,this.host),C=this.host.getScriptVersion(e),S;if(this.currentFileName!==e){let k={languageVersion:99,impliedNodeFormat:getImpliedNodeFormatForFile(xi(e,this.host.getCurrentDirectory(),((a=(r=(t=this.host).getCompilerHost)==null?void 0:r.call(t))==null?void 0:a.getCanonicalFileName)||VT(this.host)),(l=(h=(d=(p=(_=this.host).getCompilerHost)==null?void 0:p.call(_))==null?void 0:d.getModuleResolutionCache)==null?void 0:h.call(d))==null?void 0:l.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:RS(this.host.getCompilationSettings())};S=z6(e,v,k,C,!0,y)}else if(this.currentFileVersion!==C){let k=v.getChangeRange(this.currentFileScriptSnapshot);S=u7(this.currentSourceFile,v,C,k)}return S&&(this.currentFileVersion=C,this.currentFileName=e,this.currentFileScriptSnapshot=v,this.currentSourceFile=S),this.currentSourceFile}},T7={isCancellationRequested:Xf,throwIfCancellationRequested:Rn},S7=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=xa)==null||e.instant(xa.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new id}},x7=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){let e=Sa();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=xa)==null||e.instant(xa.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new id}},rg=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],w7=[...rg,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],IS(KF())}}),cB=()=>{},lB=()=>{},uB=()=>{},pB=()=>{},fB=()=>{},dB=()=>{},mB=()=>{},hB=()=>{},yB=()=>{},gB=()=>{},bB=()=>{},vB=()=>{},TB=()=>{},SB=()=>{},xB=()=>{},wB=()=>{},CB=()=>{},EB=()=>{},AB=()=>{},C7=Vt({"src/services/_namespaces/ts.ts"(){"use strict";Dr(),Z8(),FF(),e7(),BF(),t7(),UF(),qF(),zF(),WF(),VF(),HF(),GF(),XF(),_B(),cB(),lB(),uB(),pB(),fB(),dB(),mB(),hB(),yB(),gB(),bB(),r7(),n7(),vB(),TB(),i7(),SB(),xB(),wB(),CB(),EB(),AB()}}),kB=()=>{},E7={};N5(E7,{ANONYMOUS:()=>ANONYMOUS,AccessFlags:()=>Ly,AssertionLevel:()=>ay,AssignmentDeclarationKind:()=>Wy,AssignmentKind:()=>B0,Associativity:()=>q0,BreakpointResolver:()=>ts_BreakpointResolver_exports,BuilderFileEmit:()=>BuilderFileEmit,BuilderProgramKind:()=>BuilderProgramKind,BuilderState:()=>BuilderState,BundleFileSectionKind:()=>l0,CallHierarchy:()=>ts_CallHierarchy_exports,CharacterCodes:()=>n0,CheckFlags:()=>Py,CheckMode:()=>CheckMode,ClassificationType:()=>ClassificationType,ClassificationTypeNames:()=>ClassificationTypeNames,CommentDirectiveType:()=>fy,Comparison:()=>Zh,CompletionInfoFlags:()=>CompletionInfoFlags,CompletionTriggerKind:()=>CompletionTriggerKind,Completions:()=>ts_Completions_exports,ConfigFileProgramReloadLevel:()=>ConfigFileProgramReloadLevel,ContainerFlags:()=>ContainerFlags,ContextFlags:()=>Ty,CoreServicesShimHostAdapter:()=>CoreServicesShimHostAdapter,Debug:()=>N,DiagnosticCategory:()=>cd,Diagnostics:()=>U,DocumentHighlights:()=>DocumentHighlights,ElementFlags:()=>My,EmitFlags:()=>fd,EmitHint:()=>s0,EmitOnly:()=>hy,EndOfLineState:()=>EndOfLineState,EnumKind:()=>Dy,ExitStatus:()=>gy,ExportKind:()=>ExportKind,Extension:()=>i0,ExternalEmitHelpers:()=>o0,FileIncludeKind:()=>dy,FilePreprocessingDiagnosticsKind:()=>my,FileSystemEntryKind:()=>FileSystemEntryKind,FileWatcherEventKind:()=>FileWatcherEventKind,FindAllReferences:()=>ts_FindAllReferences_exports,FlattenLevel:()=>FlattenLevel,FlowFlags:()=>bl,ForegroundColorEscapeSequences:()=>ForegroundColorEscapeSequences,FunctionFlags:()=>U0,GeneratedIdentifierFlags:()=>uy,GetLiteralTextFlags:()=>F0,GoToDefinition:()=>ts_GoToDefinition_exports,HighlightSpanKind:()=>HighlightSpanKind,IdentifierNameMap:()=>IdentifierNameMap,IdentifierNameMultiMap:()=>IdentifierNameMultiMap,ImportKind:()=>ImportKind,ImportsNotUsedAsValues:()=>Ky,IndentStyle:()=>IndentStyle,IndexFlags:()=>Jy,IndexKind:()=>Fy,InferenceFlags:()=>qy,InferencePriority:()=>Uy,InlayHintKind:()=>InlayHintKind,InlayHints:()=>ts_InlayHints_exports,InternalEmitFlags:()=>a0,InternalSymbolName:()=>Iy,InvalidatedProjectKind:()=>InvalidatedProjectKind,JsDoc:()=>ts_JsDoc_exports,JsTyping:()=>ts_JsTyping_exports,JsxEmit:()=>Yy,JsxFlags:()=>ly,JsxReferenceKind:()=>Ry,LanguageServiceMode:()=>LanguageServiceMode,LanguageServiceShimHostAdapter:()=>LanguageServiceShimHostAdapter,LanguageVariant:()=>t0,LexicalEnvironmentFlags:()=>c0,ListFormat:()=>u0,LogLevel:()=>sy,MemberOverrideStatus:()=>by,ModifierFlags:()=>rd,ModuleDetectionKind:()=>Hy,ModuleInstanceState:()=>ModuleInstanceState,ModuleKind:()=>Qy,ModuleResolutionKind:()=>Vy,ModuleSpecifierEnding:()=>G0,NavigateTo:()=>ts_NavigateTo_exports,NavigationBar:()=>ts_NavigationBar_exports,NewLineKind:()=>Zy,NodeBuilderFlags:()=>Sy,NodeCheckFlags:()=>Ny,NodeFactoryFlags:()=>X0,NodeFlags:()=>td,NodeResolutionFeatures:()=>NodeResolutionFeatures,ObjectFlags:()=>sd,OperationCanceledException:()=>id,OperatorPrecedence:()=>z0,OrganizeImports:()=>ts_OrganizeImports_exports,OrganizeImportsMode:()=>OrganizeImportsMode,OuterExpressionKinds:()=>_0,OutliningElementsCollector:()=>ts_OutliningElementsCollector_exports,OutliningSpanKind:()=>OutliningSpanKind,OutputFileType:()=>OutputFileType,PackageJsonAutoImportPreference:()=>PackageJsonAutoImportPreference,PackageJsonDependencyGroup:()=>PackageJsonDependencyGroup,PatternMatchKind:()=>PatternMatchKind,PollingInterval:()=>PollingInterval,PollingWatchKind:()=>$y,PragmaKindFlags:()=>p0,PrivateIdentifierKind:()=>PrivateIdentifierKind,ProcessLevel:()=>ProcessLevel,QuotePreference:()=>QuotePreference,RelationComparisonResult:()=>nd,Rename:()=>ts_Rename_exports,ScriptElementKind:()=>ScriptElementKind,ScriptElementKindModifier:()=>ScriptElementKindModifier,ScriptKind:()=>ld,ScriptSnapshot:()=>ScriptSnapshot,ScriptTarget:()=>e0,SemanticClassificationFormat:()=>SemanticClassificationFormat,SemanticMeaning:()=>SemanticMeaning,SemicolonPreference:()=>SemicolonPreference,SignatureCheckMode:()=>SignatureCheckMode,SignatureFlags:()=>_d,SignatureHelp:()=>ts_SignatureHelp_exports,SignatureKind:()=>jy,SmartSelectionRange:()=>ts_SmartSelectionRange_exports,SnippetKind:()=>pd,SortKind:()=>ny,StructureIsReused:()=>yy,SymbolAccessibility:()=>Cy,SymbolDisplay:()=>ts_SymbolDisplay_exports,SymbolDisplayPartKind:()=>SymbolDisplayPartKind,SymbolFlags:()=>ad,SymbolFormatFlags:()=>wy,SyntaxKind:()=>ed,SyntheticSymbolKind:()=>Ey,Ternary:()=>zy,ThrottledCancellationToken:()=>x7,TokenClass:()=>TokenClass,TokenFlags:()=>py,TransformFlags:()=>ud,TypeFacts:()=>TypeFacts,TypeFlags:()=>od,TypeFormatFlags:()=>xy,TypeMapKind:()=>By,TypePredicateKind:()=>Ay,TypeReferenceSerializationKind:()=>ky,TypeScriptServicesFactory:()=>TypeScriptServicesFactory,UnionReduction:()=>vy,UpToDateStatusType:()=>UpToDateStatusType,VarianceFlags:()=>Oy,Version:()=>Version,VersionRange:()=>VersionRange,WatchDirectoryFlags:()=>r0,WatchDirectoryKind:()=>Xy,WatchFileKind:()=>Gy,WatchLogLevel:()=>WatchLogLevel,WatchType:()=>WatchType,accessPrivateIdentifier:()=>accessPrivateIdentifier,addDisposableResourceHelper:()=>addDisposableResourceHelper,addEmitFlags:()=>addEmitFlags,addEmitHelper:()=>addEmitHelper,addEmitHelpers:()=>addEmitHelpers,addInternalEmitFlags:()=>addInternalEmitFlags,addNodeFactoryPatcher:()=>AL,addObjectAllocatorPatcher:()=>WO,addRange:()=>Rr,addRelatedInfo:()=>nl,addSyntheticLeadingComment:()=>addSyntheticLeadingComment,addSyntheticTrailingComment:()=>addSyntheticTrailingComment,addToSeen:()=>IO,advancedAsyncSuperHelper:()=>advancedAsyncSuperHelper,affectsDeclarationPathOptionDeclarations:()=>affectsDeclarationPathOptionDeclarations,affectsEmitOptionDeclarations:()=>affectsEmitOptionDeclarations,allKeysStartWithDot:()=>allKeysStartWithDot,altDirectorySeparator:()=>vg,and:()=>nE,append:()=>xt,appendIfUnique:()=>Cv,arrayFrom:()=>Rd,arrayIsEqualTo:()=>_C,arrayIsHomogeneous:()=>YM,arrayIsSorted:()=>oC,arrayOf:()=>SC,arrayReverseIterator:()=>pC,arrayToMap:()=>wC,arrayToMultiMap:()=>Pv,arrayToNumericMap:()=>CC,arraysEqual:()=>bv,assertType:()=>aE,assign:()=>xC,assignHelper:()=>assignHelper,asyncDelegator:()=>asyncDelegator,asyncGeneratorHelper:()=>asyncGeneratorHelper,asyncSuperHelper:()=>asyncSuperHelper,asyncValues:()=>asyncValues,attachFileToDiagnostics:()=>$a,awaitHelper:()=>awaitHelper,awaiterHelper:()=>awaiterHelper,base64decode:()=>ZN,base64encode:()=>KN,binarySearch:()=>Ml,binarySearchKey:()=>kv,bindSourceFile:()=>bindSourceFile,breakIntoCharacterSpans:()=>breakIntoCharacterSpans,breakIntoWordSpans:()=>breakIntoWordSpans,buildLinkParts:()=>buildLinkParts,buildOpts:()=>buildOpts,buildOverload:()=>buildOverload,bundlerModuleNameResolver:()=>bundlerModuleNameResolver,canBeConvertedToAsync:()=>canBeConvertedToAsync,canHaveDecorators:()=>q8,canHaveExportModifier:()=>uL,canHaveFlowNode:()=>vI,canHaveIllegalDecorators:()=>WR,canHaveIllegalModifiers:()=>VR,canHaveIllegalType:()=>zR,canHaveIllegalTypeParameters:()=>F8,canHaveJSDoc:()=>dm,canHaveLocals:()=>Sk,canHaveModifiers:()=>q_,canHaveSymbol:()=>Tk,canJsonReportNoInputFiles:()=>canJsonReportNoInputFiles,canProduceDiagnostics:()=>canProduceDiagnostics,canUsePropertyAccess:()=>pL,canWatchAffectingLocation:()=>canWatchAffectingLocation,canWatchAtTypes:()=>canWatchAtTypes,canWatchDirectoryOrFile:()=>canWatchDirectoryOrFile,cartesianProduct:()=>sE,cast:()=>gi,chainBundle:()=>chainBundle,chainDiagnosticMessages:()=>tl,changeAnyExtension:()=>Yv,changeCompilerHostLikeToUseCache:()=>changeCompilerHostLikeToUseCache,changeExtension:()=>MM,changesAffectModuleResolution:()=>qk,changesAffectingProgramStructure:()=>zk,childIsDecorated:()=>s2,classElementOrClassElementParameterIsDecorated:()=>zP,classHasClassThisAssignment:()=>classHasClassThisAssignment,classHasDeclaredOrExplicitlyAssignedName:()=>classHasDeclaredOrExplicitlyAssignedName,classHasExplicitlyAssignedName:()=>classHasExplicitlyAssignedName,classOrConstructorParameterIsDecorated:()=>qP,classPrivateFieldGetHelper:()=>classPrivateFieldGetHelper,classPrivateFieldInHelper:()=>classPrivateFieldInHelper,classPrivateFieldSetHelper:()=>classPrivateFieldSetHelper,classicNameResolver:()=>classicNameResolver,classifier:()=>ts_classifier_exports,cleanExtendedConfigCache:()=>cleanExtendedConfigCache,clear:()=>q5,clearMap:()=>CO,clearSharedExtendedConfigFileWatcher:()=>clearSharedExtendedConfigFileWatcher,climbPastPropertyAccess:()=>climbPastPropertyAccess,climbPastPropertyOrElementAccess:()=>climbPastPropertyOrElementAccess,clone:()=>kC,cloneCompilerOptions:()=>cloneCompilerOptions,closeFileWatcher:()=>gO,closeFileWatcherOf:()=>closeFileWatcherOf,codefix:()=>ts_codefix_exports,collapseTextChangeRangesAcrossMultipleVersions:()=>nA,collectExternalModuleInfo:()=>collectExternalModuleInfo,combine:()=>uC,combinePaths:()=>hr,commentPragmas:()=>qd,commonOptionsWithBuild:()=>commonOptionsWithBuild,commonPackageFolders:()=>V0,compact:()=>cC,compareBooleans:()=>GC,compareDataObjects:()=>ES,compareDiagnostics:()=>F2,compareDiagnosticsSkipRelatedInformation:()=>xd,compareEmitHelpers:()=>compareEmitHelpers,compareNumberOfDirectorySeparators:()=>OM,comparePaths:()=>OE,comparePathsCaseInsensitive:()=>NE,comparePathsCaseSensitive:()=>IE,comparePatternKeys:()=>comparePatternKeys,compareProperties:()=>HC,compareStringsCaseInsensitive:()=>Fd,compareStringsCaseInsensitiveEslintCompatible:()=>zC,compareStringsCaseSensitive:()=>Ci,compareStringsCaseSensitiveUI:()=>VC,compareTextSpans:()=>UC,compareValues:()=>kr,compileOnSaveCommandLineOption:()=>compileOnSaveCommandLineOption,compilerOptionsAffectDeclarationPath:()=>dM,compilerOptionsAffectEmit:()=>fM,compilerOptionsAffectSemanticDiagnostics:()=>pM,compilerOptionsDidYouMeanDiagnostics:()=>compilerOptionsDidYouMeanDiagnostics,compilerOptionsIndicateEsModules:()=>compilerOptionsIndicateEsModules,compose:()=>BC,computeCommonSourceDirectoryOfFilenames:()=>computeCommonSourceDirectoryOfFilenames,computeLineAndCharacterOfPosition:()=>Sg,computeLineOfPosition:()=>__,computeLineStarts:()=>Vd,computePositionOfLineAndCharacter:()=>Tg,computeSignature:()=>computeSignature,computeSignatureWithDiagnostics:()=>computeSignatureWithDiagnostics,computeSuggestionDiagnostics:()=>computeSuggestionDiagnostics,concatenate:()=>y_,concatenateDiagnosticMessageChains:()=>XO,consumesNodeCoreModules:()=>consumesNodeCoreModules,contains:()=>es,containsIgnoredPath:()=>nx,containsObjectRestOrSpread:()=>U6,containsParseError:()=>xl,containsPath:()=>Kv,convertCompilerOptionsForTelemetry:()=>convertCompilerOptionsForTelemetry,convertCompilerOptionsFromJson:()=>convertCompilerOptionsFromJson,convertJsonOption:()=>convertJsonOption,convertToBase64:()=>gS,convertToJson:()=>convertToJson,convertToObject:()=>convertToObject,convertToOptionsWithAbsolutePaths:()=>convertToOptionsWithAbsolutePaths,convertToRelativePath:()=>LE,convertToTSConfig:()=>convertToTSConfig,convertTypeAcquisitionFromJson:()=>convertTypeAcquisitionFromJson,copyComments:()=>copyComments,copyEntries:()=>Gk,copyLeadingComments:()=>copyLeadingComments,copyProperties:()=>PC,copyTrailingAsLeadingComments:()=>copyTrailingAsLeadingComments,copyTrailingComments:()=>copyTrailingComments,couldStartTrivia:()=>zE,countWhere:()=>B5,createAbstractBuilder:()=>createAbstractBuilder,createAccessorPropertyBackingField:()=>xj,createAccessorPropertyGetRedirector:()=>wj,createAccessorPropertySetRedirector:()=>Cj,createBaseNodeFactory:()=>Lx,createBinaryExpressionTrampoline:()=>hj,createBindingHelper:()=>createBindingHelper,createBuildInfo:()=>createBuildInfo,createBuilderProgram:()=>createBuilderProgram,createBuilderProgramUsingProgramBuildInfo:()=>createBuilderProgramUsingProgramBuildInfo,createBuilderStatusReporter:()=>createBuilderStatusReporter,createCacheWithRedirects:()=>createCacheWithRedirects,createCacheableExportInfoMap:()=>createCacheableExportInfoMap,createCachedDirectoryStructureHost:()=>createCachedDirectoryStructureHost,createClassNamedEvaluationHelperBlock:()=>createClassNamedEvaluationHelperBlock,createClassThisAssignmentBlock:()=>createClassThisAssignmentBlock,createClassifier:()=>createClassifier,createCommentDirectivesMap:()=>gD,createCompilerDiagnostic:()=>fl,createCompilerDiagnosticForInvalidCustomType:()=>createCompilerDiagnosticForInvalidCustomType,createCompilerDiagnosticFromMessageChain:()=>GO,createCompilerHost:()=>createCompilerHost,createCompilerHostFromProgramHost:()=>createCompilerHostFromProgramHost,createCompilerHostWorker:()=>createCompilerHostWorker,createDetachedDiagnostic:()=>Ao,createDiagnosticCollection:()=>iN,createDiagnosticForFileFromMessageChain:()=>QD,createDiagnosticForNode:()=>HD,createDiagnosticForNodeArray:()=>GD,createDiagnosticForNodeArrayFromMessageChain:()=>$D,createDiagnosticForNodeFromMessageChain:()=>XD,createDiagnosticForNodeInSourceFile:()=>W3,createDiagnosticForRange:()=>KD,createDiagnosticMessageChainFromDiagnostic:()=>YD,createDiagnosticReporter:()=>createDiagnosticReporter,createDocumentPositionMapper:()=>createDocumentPositionMapper,createDocumentRegistry:()=>createDocumentRegistry,createDocumentRegistryInternal:()=>createDocumentRegistryInternal,createEmitAndSemanticDiagnosticsBuilderProgram:()=>createEmitAndSemanticDiagnosticsBuilderProgram,createEmitHelperFactory:()=>createEmitHelperFactory,createEmptyExports:()=>yR,createExpressionForJsxElement:()=>bR,createExpressionForJsxFragment:()=>vR,createExpressionForObjectLiteralElementLike:()=>AR,createExpressionForPropertyName:()=>k8,createExpressionFromEntityName:()=>A8,createExternalHelpersImportDeclarationIfNeeded:()=>JR,createFileDiagnostic:()=>j2,createFileDiagnosticFromMessageChain:()=>Kg,createForOfBindingStatement:()=>TR,createGetCanonicalFileName:()=>Bd,createGetSourceFile:()=>createGetSourceFile,createGetSymbolAccessibilityDiagnosticForNode:()=>createGetSymbolAccessibilityDiagnosticForNode,createGetSymbolAccessibilityDiagnosticForNodeName:()=>createGetSymbolAccessibilityDiagnosticForNodeName,createGetSymbolWalker:()=>createGetSymbolWalker,createIncrementalCompilerHost:()=>createIncrementalCompilerHost,createIncrementalProgram:()=>createIncrementalProgram,createInputFiles:()=>LL,createInputFilesWithFilePaths:()=>jx,createInputFilesWithFileTexts:()=>Fx,createJsxFactoryExpression:()=>E8,createLanguageService:()=>eB,createLanguageServiceSourceFile:()=>z6,createMemberAccessForPropertyName:()=>Lm,createModeAwareCache:()=>createModeAwareCache,createModeAwareCacheKey:()=>createModeAwareCacheKey,createModuleNotFoundChain:()=>tD,createModuleResolutionCache:()=>createModuleResolutionCache,createModuleResolutionLoader:()=>createModuleResolutionLoader,createModuleSpecifierResolutionHost:()=>createModuleSpecifierResolutionHost,createMultiMap:()=>jd,createNodeConverters:()=>Jx,createNodeFactory:()=>Ad,createOptionNameMap:()=>createOptionNameMap,createOverload:()=>createOverload,createPackageJsonImportFilter:()=>createPackageJsonImportFilter,createPackageJsonInfo:()=>createPackageJsonInfo,createParenthesizerRules:()=>createParenthesizerRules,createPatternMatcher:()=>createPatternMatcher,createPrependNodes:()=>createPrependNodes,createPrinter:()=>createPrinter,createPrinterWithDefaults:()=>createPrinterWithDefaults,createPrinterWithRemoveComments:()=>createPrinterWithRemoveComments,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>createPrinterWithRemoveCommentsNeverAsciiEscape,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>createPrinterWithRemoveCommentsOmitTrailingSemicolon,createProgram:()=>createProgram,createProgramHost:()=>createProgramHost,createPropertyNameNodeForIdentifierOrLiteral:()=>_L,createQueue:()=>OC,createRange:()=>Tm,createRedirectedBuilderProgram:()=>createRedirectedBuilderProgram,createResolutionCache:()=>createResolutionCache,createRuntimeTypeSerializer:()=>createRuntimeTypeSerializer,createScanner:()=>ns,createSemanticDiagnosticsBuilderProgram:()=>createSemanticDiagnosticsBuilderProgram,createSet:()=>MC,createSolutionBuilder:()=>createSolutionBuilder,createSolutionBuilderHost:()=>createSolutionBuilderHost,createSolutionBuilderWithWatch:()=>createSolutionBuilderWithWatch,createSolutionBuilderWithWatchHost:()=>createSolutionBuilderWithWatchHost,createSortedArray:()=>aC,createSourceFile:()=>H8,createSourceMapGenerator:()=>createSourceMapGenerator,createSourceMapSource:()=>JL,createSuperAccessVariableStatement:()=>createSuperAccessVariableStatement,createSymbolTable:()=>Bk,createSymlinkCache:()=>bM,createSystemWatchFunctions:()=>createSystemWatchFunctions,createTextChange:()=>createTextChange,createTextChangeFromStartLength:()=>createTextChangeFromStartLength,createTextChangeRange:()=>Xd,createTextRangeFromNode:()=>createTextRangeFromNode,createTextRangeFromSpan:()=>createTextRangeFromSpan,createTextSpan:()=>w_,createTextSpanFromBounds:()=>Hi,createTextSpanFromNode:()=>createTextSpanFromNode,createTextSpanFromRange:()=>createTextSpanFromRange,createTextSpanFromStringLiteralLikeContent:()=>createTextSpanFromStringLiteralLikeContent,createTextWriter:()=>pN,createTokenRange:()=>iO,createTypeChecker:()=>createTypeChecker,createTypeReferenceDirectiveResolutionCache:()=>createTypeReferenceDirectiveResolutionCache,createTypeReferenceResolutionLoader:()=>createTypeReferenceResolutionLoader,createUnparsedSourceFile:()=>NL,createWatchCompilerHost:()=>createWatchCompilerHost2,createWatchCompilerHostOfConfigFile:()=>createWatchCompilerHostOfConfigFile,createWatchCompilerHostOfFilesAndCompilerOptions:()=>createWatchCompilerHostOfFilesAndCompilerOptions,createWatchFactory:()=>createWatchFactory,createWatchHost:()=>createWatchHost,createWatchProgram:()=>createWatchProgram,createWatchStatusReporter:()=>createWatchStatusReporter,createWriteFileMeasuringIO:()=>createWriteFileMeasuringIO,declarationNameToString:()=>z3,decodeMappings:()=>decodeMappings,decodedTextSpanIntersectsWith:()=>Eg,decorateHelper:()=>decorateHelper,deduplicate:()=>xv,defaultIncludeSpec:()=>defaultIncludeSpec,defaultInitCompilerOptions:()=>defaultInitCompilerOptions,defaultMaximumTruncationLength:()=>fx,detectSortCaseSensitivity:()=>sC,diagnosticCategoryName:()=>TE,diagnosticToString:()=>diagnosticToString,directoryProbablyExists:()=>vS,directorySeparator:()=>fn,displayPart:()=>displayPart,displayPartsToString:()=>ZF,disposeEmitNodes:()=>disposeEmitNodes,disposeResourcesHelper:()=>disposeResourcesHelper,documentSpansEqual:()=>documentSpansEqual,dumpTracingLegend:()=>dumpTracingLegend,elementAt:()=>Wv,elideNodes:()=>bj,emitComments:()=>nS,emitDetachedComments:()=>IN,emitFiles:()=>emitFiles,emitFilesAndReportErrors:()=>emitFilesAndReportErrors,emitFilesAndReportErrorsAndGetExitStatus:()=>emitFilesAndReportErrorsAndGetExitStatus,emitModuleKindIsNonNodeESM:()=>KO,emitNewLineBeforeLeadingCommentOfPosition:()=>PN,emitNewLineBeforeLeadingComments:()=>tS,emitNewLineBeforeLeadingCommentsOfPosition:()=>rS,emitSkippedWithNoDiagnostics:()=>emitSkippedWithNoDiagnostics,emitUsingBuildInfo:()=>emitUsingBuildInfo,emptyArray:()=>$e,emptyFileSystemEntries:()=>Mx,emptyMap:()=>pg,emptyOptions:()=>emptyOptions,emptySet:()=>zv,endsWith:()=>ts,ensurePathIsNonModuleName:()=>hg,ensureScriptKind:()=>WS,ensureTrailingDirectorySeparator:()=>zo,entityNameToString:()=>vi,enumerateInsertsAndDeletes:()=>oE,equalOwnProperties:()=>Dv,equateStringsCaseInsensitive:()=>s_,equateStringsCaseSensitive:()=>Ll,equateValues:()=>_o,esDecorateHelper:()=>esDecorateHelper,escapeJsxAttributeString:()=>zT,escapeLeadingUnderscores:()=>Mn,escapeNonAsciiString:()=>Td,escapeSnippetText:()=>sL,escapeString:()=>vd,every:()=>so,expandPreOrPostfixIncrementOrDecrementExpression:()=>kR,explainFiles:()=>explainFiles,explainIfFileIsRedirectAndImpliedFormat:()=>explainIfFileIsRedirectAndImpliedFormat,exportAssignmentIsAlias:()=>D0,exportStarHelper:()=>exportStarHelper,expressionResultIsUnused:()=>tL,extend:()=>DC,extendsHelper:()=>extendsHelper,extensionFromPath:()=>rl,extensionIsTS:()=>KS,extensionsNotSupportingExtensionlessResolution:()=>wm,externalHelpersModuleNameText:()=>xm,factory:()=>Ln,fileExtensionIs:()=>La,fileExtensionIsOneOf:()=>ei,fileIncludeReasonToDiagnostics:()=>fileIncludeReasonToDiagnostics,fileShouldUseJavaScriptRequire:()=>fileShouldUseJavaScriptRequire,filter:()=>$r,filterMutate:()=>U5,filterSemanticDiagnostics:()=>filterSemanticDiagnostics,find:()=>Yr,findAncestor:()=>Kr,findBestPatternMatch:()=>Fv,findChildOfKind:()=>findChildOfKind,findComputedPropertyNameCacheAssignment:()=>Ej,findConfigFile:()=>findConfigFile,findContainingList:()=>findContainingList,findDiagnosticForNode:()=>findDiagnosticForNode,findFirstNonJsxWhitespaceToken:()=>findFirstNonJsxWhitespaceToken,findIndex:()=>_l,findLast:()=>ig,findLastIndex:()=>j5,findListItemInfo:()=>findListItemInfo,findMap:()=>F5,findModifier:()=>findModifier,findNextToken:()=>findNextToken,findPackageJson:()=>findPackageJson,findPackageJsons:()=>findPackageJsons,findPrecedingMatchingToken:()=>findPrecedingMatchingToken,findPrecedingToken:()=>findPrecedingToken,findSuperStatementIndexPath:()=>findSuperStatementIndexPath,findTokenOnLeftOfPosition:()=>findTokenOnLeftOfPosition,findUseStrictPrologue:()=>P8,first:()=>og,firstDefined:()=>ng,firstDefinedIterator:()=>L5,firstIterator:()=>mC,firstOrOnly:()=>firstOrOnly,firstOrUndefined:()=>g_,firstOrUndefinedIterator:()=>dC,fixupCompilerOptions:()=>fixupCompilerOptions,flatMap:()=>Bo,flatMapIterator:()=>V5,flatMapToMutable:()=>Tv,flatten:()=>o_,flattenCommaList:()=>kj,flattenDestructuringAssignment:()=>flattenDestructuringAssignment,flattenDestructuringBinding:()=>flattenDestructuringBinding,flattenDiagnosticMessageText:()=>flattenDiagnosticMessageText,forEach:()=>yr,forEachAncestor:()=>Wk,forEachAncestorDirectory:()=>e4,forEachChild:()=>Bt,forEachChildRecursively:()=>eg,forEachEmittedFile:()=>forEachEmittedFile,forEachEnclosingBlockScopeContainer:()=>qD,forEachEntry:()=>Vk,forEachExternalModuleToImportFrom:()=>forEachExternalModuleToImportFrom,forEachImportClauseDeclaration:()=>mI,forEachKey:()=>Hk,forEachLeadingCommentRange:()=>WE,forEachNameInAccessChainWalkingLeft:()=>JO,forEachPropertyAssignment:()=>a2,forEachResolvedProjectReference:()=>forEachResolvedProjectReference,forEachReturnStatement:()=>uP,forEachRight:()=>M5,forEachTrailingCommentRange:()=>VE,forEachTsConfigPropArray:()=>Y3,forEachUnique:()=>forEachUnique,forEachYieldExpression:()=>pP,forSomeAncestorDirectory:()=>kO,formatColorAndReset:()=>formatColorAndReset,formatDiagnostic:()=>formatDiagnostic,formatDiagnostics:()=>formatDiagnostics,formatDiagnosticsWithColorAndContext:()=>formatDiagnosticsWithColorAndContext,formatGeneratedName:()=>Pd,formatGeneratedNamePart:()=>Z0,formatLocation:()=>formatLocation,formatMessage:()=>HO,formatStringFromArgs:()=>I_,formatting:()=>ts_formatting_exports,fullTripleSlashAMDReferencePathRegEx:()=>K2,fullTripleSlashReferencePathRegEx:()=>Y2,generateDjb2Hash:()=>generateDjb2Hash,generateTSConfig:()=>generateTSConfig,generatorHelper:()=>generatorHelper,getAdjustedReferenceLocation:()=>getAdjustedReferenceLocation,getAdjustedRenameLocation:()=>getAdjustedRenameLocation,getAliasDeclarationFromName:()=>ET,getAllAccessorDeclarations:()=>P2,getAllDecoratorsOfClass:()=>getAllDecoratorsOfClass,getAllDecoratorsOfClassElement:()=>getAllDecoratorsOfClassElement,getAllJSDocTags:()=>Q4,getAllJSDocTagsOfKind:()=>vA,getAllKeys:()=>vC,getAllProjectOutputs:()=>getAllProjectOutputs,getAllSuperTypeNodes:()=>IT,getAllUnscopedEmitHelpers:()=>getAllUnscopedEmitHelpers,getAllowJSCompilerOption:()=>BS,getAllowSyntheticDefaultImports:()=>iM,getAncestor:()=>RI,getAnyExtensionFromPath:()=>dd,getAreDeclarationMapsEnabled:()=>nM,getAssignedExpandoInitializer:()=>nI,getAssignedName:()=>M4,getAssignedNameOfIdentifier:()=>getAssignedNameOfIdentifier,getAssignmentDeclarationKind:()=>Ja,getAssignmentDeclarationPropertyAccessKind:()=>uT,getAssignmentTargetKind:()=>TT,getAutomaticTypeDirectiveNames:()=>getAutomaticTypeDirectiveNames,getBaseFileName:()=>T_,getBinaryOperatorPrecedence:()=>pl,getBuildInfo:()=>getBuildInfo,getBuildInfoFileVersionMap:()=>getBuildInfoFileVersionMap,getBuildInfoText:()=>getBuildInfoText,getBuildOrderFromAnyBuildOrder:()=>getBuildOrderFromAnyBuildOrder,getBuilderCreationParameters:()=>getBuilderCreationParameters,getBuilderFileEmit:()=>getBuilderFileEmit,getCheckFlags:()=>CS,getClassExtendsHeritageElement:()=>DT,getClassLikeDeclarationOfSymbol:()=>kS,getCombinedLocalAndExportSymbolFlags:()=>TO,getCombinedModifierFlags:()=>$d,getCombinedNodeFlags:()=>C_,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>aA,getCommentRange:()=>getCommentRange,getCommonSourceDirectory:()=>getCommonSourceDirectory,getCommonSourceDirectoryOfConfig:()=>getCommonSourceDirectoryOfConfig,getCompilerOptionValue:()=>j0,getCompilerOptionsDiffValue:()=>getCompilerOptionsDiffValue,getConditions:()=>getConditions,getConfigFileParsingDiagnostics:()=>getConfigFileParsingDiagnostics,getConstantValue:()=>getConstantValue,getContainerFlags:()=>getContainerFlags,getContainerNode:()=>getContainerNode,getContainingClass:()=>E0,getContainingClassExcludingClassDecorators:()=>PP,getContainingClassStaticBlock:()=>kP,getContainingFunction:()=>EP,getContainingFunctionDeclaration:()=>AP,getContainingFunctionOrClassStaticBlock:()=>DP,getContainingNodeArray:()=>rL,getContainingObjectLiteralElement:()=>p7,getContextualTypeFromParent:()=>getContextualTypeFromParent,getContextualTypeFromParentOrAncestorTypeNode:()=>getContextualTypeFromParentOrAncestorTypeNode,getCurrentTime:()=>getCurrentTime,getDeclarationDiagnostics:()=>getDeclarationDiagnostics,getDeclarationEmitExtensionForPath:()=>XT,getDeclarationEmitOutputFilePath:()=>hN,getDeclarationEmitOutputFilePathWorker:()=>GT,getDeclarationFromName:()=>OI,getDeclarationModifierFlagsFromSymbol:()=>bO,getDeclarationOfKind:()=>jk,getDeclarationsOfKind:()=>Fk,getDeclaredExpandoInitializer:()=>tI,getDecorators:()=>_A,getDefaultCompilerOptions:()=>_7,getDefaultExportInfoWorker:()=>getDefaultExportInfoWorker,getDefaultFormatCodeSettings:()=>getDefaultFormatCodeSettings,getDefaultLibFileName:()=>T4,getDefaultLibFilePath:()=>sB,getDefaultLikeExportInfo:()=>getDefaultLikeExportInfo,getDiagnosticText:()=>getDiagnosticText,getDiagnosticsWithinSpan:()=>getDiagnosticsWithinSpan,getDirectoryPath:()=>$i,getDirectoryToWatchFailedLookupLocation:()=>getDirectoryToWatchFailedLookupLocation,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>getDirectoryToWatchFailedLookupLocationFromTypeRoot,getDocumentPositionMapper:()=>getDocumentPositionMapper,getESModuleInterop:()=>U2,getEditsForFileRename:()=>getEditsForFileRename,getEffectiveBaseTypeNode:()=>kT,getEffectiveConstraintOfTypeParameter:()=>wA,getEffectiveContainerForJSDocTemplateTag:()=>SI,getEffectiveImplementsTypeNodes:()=>PT,getEffectiveInitializer:()=>sT,getEffectiveJSDocHost:()=>y2,getEffectiveModifierFlags:()=>bm,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>cS,getEffectiveModifierFlagsNoCache:()=>uS,getEffectiveReturnTypeNode:()=>AN,getEffectiveSetAccessorTypeAnnotationNode:()=>DN,getEffectiveTypeAnnotationNode:()=>I2,getEffectiveTypeParameterDeclarations:()=>xA,getEffectiveTypeRoots:()=>getEffectiveTypeRoots,getElementOrPropertyAccessArgumentExpressionOrName:()=>fm,getElementOrPropertyAccessName:()=>io,getElementsOfBindingOrAssignmentPattern:()=>j8,getEmitDeclarations:()=>z2,getEmitFlags:()=>ti,getEmitHelpers:()=>getEmitHelpers,getEmitModuleDetectionKind:()=>jS,getEmitModuleKind:()=>ni,getEmitModuleResolutionKind:()=>O_,getEmitScriptTarget:()=>Ql,getEmitStandardClassFields:()=>uM,getEnclosingBlockScopeContainer:()=>S0,getEnclosingContainer:()=>UD,getEncodedSemanticClassifications:()=>getEncodedSemanticClassifications,getEncodedSyntacticClassifications:()=>getEncodedSyntacticClassifications,getEndLinePosition:()=>P3,getEntityNameFromTypeNode:()=>BP,getEntrypointsFromPackageJsonInfo:()=>getEntrypointsFromPackageJsonInfo,getErrorCountForSummary:()=>getErrorCountForSummary,getErrorSpanForNode:()=>Zg,getErrorSummaryText:()=>getErrorSummaryText,getEscapedTextOfIdentifierOrLiteral:()=>JT,getEscapedTextOfJsxAttributeName:()=>yL,getEscapedTextOfJsxNamespacedName:()=>Yl,getExpandoInitializer:()=>A_,getExportAssignmentExpression:()=>AT,getExportInfoMap:()=>getExportInfoMap,getExportNeedsImportStarHelper:()=>getExportNeedsImportStarHelper,getExpressionAssociativity:()=>tN,getExpressionPrecedence:()=>rN,getExternalHelpersModuleName:()=>O8,getExternalModuleImportEqualsDeclarationExpression:()=>VP,getExternalModuleName:()=>d2,getExternalModuleNameFromDeclaration:()=>dN,getExternalModuleNameFromPath:()=>E2,getExternalModuleNameLiteral:()=>jR,getExternalModuleRequireArgument:()=>HP,getFallbackOptions:()=>getFallbackOptions,getFileEmitOutput:()=>getFileEmitOutput,getFileMatcherPatterns:()=>zS,getFileNamesFromConfigSpecs:()=>getFileNamesFromConfigSpecs,getFileWatcherEventKind:()=>getFileWatcherEventKind,getFilesInErrorForSummary:()=>getFilesInErrorForSummary,getFirstConstructorWithBody:()=>YT,getFirstIdentifier:()=>qN,getFirstNonSpaceCharacterPosition:()=>getFirstNonSpaceCharacterPosition,getFirstProjectOutput:()=>getFirstProjectOutput,getFixableErrorSpanExpression:()=>getFixableErrorSpanExpression,getFormatCodeSettingsForWriting:()=>getFormatCodeSettingsForWriting,getFullWidth:()=>om,getFunctionFlags:()=>zI,getHeritageClause:()=>mm,getHostSignatureFromJSDoc:()=>h2,getIdentifierAutoGenerate:()=>getIdentifierAutoGenerate,getIdentifierGeneratedImportReference:()=>getIdentifierGeneratedImportReference,getIdentifierTypeArguments:()=>getIdentifierTypeArguments,getImmediatelyInvokedFunctionExpression:()=>LP,getImpliedNodeFormatForFile:()=>getImpliedNodeFormatForFile,getImpliedNodeFormatForFileWorker:()=>getImpliedNodeFormatForFileWorker,getImportNeedsImportDefaultHelper:()=>getImportNeedsImportDefaultHelper,getImportNeedsImportStarHelper:()=>getImportNeedsImportStarHelper,getIndentSize:()=>Jo,getIndentString:()=>w2,getInferredLibraryNameResolveFrom:()=>getInferredLibraryNameResolveFrom,getInitializedVariables:()=>hO,getInitializerOfBinaryExpression:()=>pT,getInitializerOfBindingOrAssignmentElement:()=>J8,getInterfaceBaseTypeNodes:()=>NT,getInternalEmitFlags:()=>xD,getInvokedExpression:()=>UP,getIsolatedModules:()=>B2,getJSDocAugmentsTag:()=>B4,getJSDocClassTag:()=>lA,getJSDocCommentRanges:()=>G3,getJSDocCommentsAndTags:()=>gT,getJSDocDeprecatedTag:()=>mA,getJSDocDeprecatedTagNoCache:()=>G4,getJSDocEnumTag:()=>hA,getJSDocHost:()=>vT,getJSDocImplementsTags:()=>U4,getJSDocOverrideTagNoCache:()=>H4,getJSDocParameterTags:()=>Kd,getJSDocParameterTagsNoCache:()=>J4,getJSDocPrivateTag:()=>pA,getJSDocPrivateTagNoCache:()=>z4,getJSDocProtectedTag:()=>fA,getJSDocProtectedTagNoCache:()=>W4,getJSDocPublicTag:()=>uA,getJSDocPublicTagNoCache:()=>q4,getJSDocReadonlyTag:()=>dA,getJSDocReadonlyTagNoCache:()=>V4,getJSDocReturnTag:()=>X4,getJSDocReturnType:()=>$4,getJSDocRoot:()=>g2,getJSDocSatisfiesExpressionType:()=>hL,getJSDocSatisfiesTag:()=>kg,getJSDocTags:()=>Ul,getJSDocTagsNoCache:()=>bA,getJSDocTemplateTag:()=>gA,getJSDocThisTag:()=>yA,getJSDocType:()=>em,getJSDocTypeAliasName:()=>K0,getJSDocTypeAssertionType:()=>NR,getJSDocTypeParameterDeclarations:()=>eS,getJSDocTypeParameterTags:()=>j4,getJSDocTypeParameterTagsNoCache:()=>F4,getJSDocTypeTag:()=>Zd,getJSXImplicitImportBase:()=>hM,getJSXRuntimeImport:()=>yM,getJSXTransformEnabled:()=>mM,getKeyForCompilerOptions:()=>getKeyForCompilerOptions,getLanguageVariant:()=>R0,getLastChild:()=>DS,getLeadingCommentRanges:()=>Wo,getLeadingCommentRangesOfNode:()=>cP,getLeftmostAccessExpression:()=>R2,getLeftmostExpression:()=>RO,getLineAndCharacterOfPosition:()=>to,getLineInfo:()=>getLineInfo,getLineOfLocalPosition:()=>SN,getLineOfLocalPositionFromLineMap:()=>Ca,getLineStartPositionForPosition:()=>getLineStartPositionForPosition,getLineStarts:()=>Ia,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>fO,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>pO,getLinesBetweenPositions:()=>x_,getLinesBetweenRangeEndAndRangeStart:()=>cO,getLinesBetweenRangeEndPositions:()=>lO,getLiteralText:()=>wD,getLocalNameForExternalImport:()=>RR,getLocalSymbolForExportDefault:()=>GN,getLocaleSpecificMessage:()=>N_,getLocaleTimeString:()=>getLocaleTimeString,getMappedContextSpan:()=>getMappedContextSpan,getMappedDocumentSpan:()=>getMappedDocumentSpan,getMappedLocation:()=>getMappedLocation,getMatchedFileSpec:()=>getMatchedFileSpec,getMatchedIncludeSpec:()=>getMatchedIncludeSpec,getMeaningFromDeclaration:()=>getMeaningFromDeclaration,getMeaningFromLocation:()=>getMeaningFromLocation,getMembersOfDeclaration:()=>dP,getModeForFileReference:()=>getModeForFileReference,getModeForResolutionAtIndex:()=>getModeForResolutionAtIndex,getModeForUsageLocation:()=>getModeForUsageLocation,getModifiedTime:()=>getModifiedTime,getModifiers:()=>hd,getModuleInstanceState:()=>getModuleInstanceState,getModuleNameStringLiteralAt:()=>getModuleNameStringLiteralAt,getModuleSpecifierEndingPreference:()=>PM,getModuleSpecifierResolverHost:()=>getModuleSpecifierResolverHost,getNameForExportedSymbol:()=>getNameForExportedSymbol,getNameFromIndexInfo:()=>zD,getNameFromPropertyName:()=>getNameFromPropertyName,getNameOfAccessExpression:()=>OO,getNameOfCompilerOptionValue:()=>getNameOfCompilerOptionValue,getNameOfDeclaration:()=>Bl,getNameOfExpando:()=>oI,getNameOfJSDocTypedef:()=>O4,getNameOrArgument:()=>lT,getNameTable:()=>tB,getNamesForExportedSymbol:()=>getNamesForExportedSymbol,getNamespaceDeclarationNode:()=>dT,getNewLineCharacter:()=>TS,getNewLineKind:()=>getNewLineKind,getNewLineOrDefaultFromHost:()=>getNewLineOrDefaultFromHost,getNewTargetContainer:()=>OP,getNextJSDocCommentLocation:()=>bT,getNodeForGeneratedName:()=>vj,getNodeId:()=>getNodeId,getNodeKind:()=>getNodeKind,getNodeModifiers:()=>getNodeModifiers,getNodeModulePathParts:()=>cL,getNonAssignedNameOfDeclaration:()=>Yd,getNonAssignmentOperatorForCompoundAssignment:()=>getNonAssignmentOperatorForCompoundAssignment,getNonAugmentationDeclaration:()=>B3,getNonDecoratorTokenPosOfNode:()=>bD,getNormalizedAbsolutePath:()=>Pa,getNormalizedAbsolutePathWithoutRoot:()=>PE,getNormalizedPathComponents:()=>Wd,getObjectFlags:()=>Rf,getOperator:()=>x2,getOperatorAssociativity:()=>FT,getOperatorPrecedence:()=>BT,getOptionFromName:()=>getOptionFromName,getOptionsForLibraryResolution:()=>getOptionsForLibraryResolution,getOptionsNameMap:()=>getOptionsNameMap,getOrCreateEmitNode:()=>getOrCreateEmitNode,getOrCreateExternalHelpersModuleNameIfNeeded:()=>M8,getOrUpdate:()=>$5,getOriginalNode:()=>jl,getOriginalNodeId:()=>getOriginalNodeId,getOriginalSourceFile:()=>eN,getOutputDeclarationFileName:()=>getOutputDeclarationFileName,getOutputExtension:()=>getOutputExtension,getOutputFileNames:()=>getOutputFileNames,getOutputPathsFor:()=>getOutputPathsFor,getOutputPathsForBundle:()=>getOutputPathsForBundle,getOwnEmitOutputFilePath:()=>mN,getOwnKeys:()=>sg,getOwnValues:()=>TC,getPackageJsonInfo:()=>getPackageJsonInfo,getPackageJsonTypesVersionsPaths:()=>getPackageJsonTypesVersionsPaths,getPackageJsonsVisibleToFile:()=>getPackageJsonsVisibleToFile,getPackageNameFromTypesPackageName:()=>getPackageNameFromTypesPackageName,getPackageScopeForPath:()=>getPackageScopeForPath,getParameterSymbolFromJSDoc:()=>TI,getParameterTypeNode:()=>lL,getParentNodeInSpan:()=>getParentNodeInSpan,getParseTreeNode:()=>Fl,getParsedCommandLineOfConfigFile:()=>getParsedCommandLineOfConfigFile,getPathComponents:()=>Ai,getPathComponentsRelativeTo:()=>gg,getPathFromPathComponents:()=>Uo,getPathUpdater:()=>getPathUpdater,getPathsBasePath:()=>gN,getPatternFromSpec:()=>CM,getPendingEmitKind:()=>getPendingEmitKind,getPositionOfLineAndCharacter:()=>UE,getPossibleGenericSignatures:()=>getPossibleGenericSignatures,getPossibleOriginalInputExtensionForExtension:()=>yN,getPossibleTypeArgumentsInfo:()=>getPossibleTypeArgumentsInfo,getPreEmitDiagnostics:()=>getPreEmitDiagnostics,getPrecedingNonSpaceCharacterPosition:()=>getPrecedingNonSpaceCharacterPosition,getPrivateIdentifier:()=>getPrivateIdentifier,getProperties:()=>getProperties,getProperty:()=>bC,getPropertyArrayElementValue:()=>wP,getPropertyAssignmentAliasLikeExpression:()=>JI,getPropertyNameForPropertyNameNode:()=>gd,getPropertyNameForUniqueESSymbol:()=>VI,getPropertyNameFromType:()=>SL,getPropertyNameOfBindingOrAssignmentElement:()=>qR,getPropertySymbolFromBindingElement:()=>getPropertySymbolFromBindingElement,getPropertySymbolsFromContextualType:()=>f7,getQuoteFromPreference:()=>getQuoteFromPreference,getQuotePreference:()=>getQuotePreference,getRangesWhere:()=>eC,getRefactorContextSpan:()=>getRefactorContextSpan,getReferencedFileLocation:()=>getReferencedFileLocation,getRegexFromPattern:()=>Ff,getRegularExpressionForWildcard:()=>jf,getRegularExpressionsForWildcards:()=>V2,getRelativePathFromDirectory:()=>Zv,getRelativePathFromFile:()=>JE,getRelativePathToDirectoryOrUrl:()=>bg,getRenameLocation:()=>getRenameLocation,getReplacementSpanForContextToken:()=>getReplacementSpanForContextToken,getResolutionDiagnostic:()=>getResolutionDiagnostic,getResolutionModeOverrideForClause:()=>getResolutionModeOverrideForClause,getResolveJsonModule:()=>FS,getResolvePackageJsonExports:()=>oM,getResolvePackageJsonImports:()=>sM,getResolvedExternalModuleName:()=>HT,getResolvedModule:()=>$k,getResolvedTypeReferenceDirective:()=>Kk,getRestIndicatorOfBindingOrAssignmentElement:()=>UR,getRestParameterElementType:()=>fP,getRightMostAssignedExpression:()=>l2,getRootDeclaration:()=>hm,getRootDirectoryOfResolutionCache:()=>getRootDirectoryOfResolutionCache,getRootLength:()=>Ei,getRootPathSplitLength:()=>getRootPathSplitLength,getScriptKind:()=>getScriptKind,getScriptKindFromFileName:()=>VS,getScriptTargetFeatures:()=>getScriptTargetFeatures,getSelectedEffectiveModifierFlags:()=>sS,getSelectedSyntacticModifierFlags:()=>_S,getSemanticClassifications:()=>getSemanticClassifications,getSemanticJsxChildren:()=>nN,getSetAccessorTypeAnnotationNode:()=>xN,getSetAccessorValueParameter:()=>D2,getSetExternalModuleIndicator:()=>RS,getShebang:()=>c4,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>m2,getSingleVariableOfVariableStatement:()=>Cl,getSnapshotText:()=>getSnapshotText,getSnippetElement:()=>getSnippetElement,getSourceFileOfModule:()=>sD,getSourceFileOfNode:()=>ri,getSourceFilePathInNewDir:()=>$T,getSourceFilePathInNewDirWorker:()=>k2,getSourceFileVersionAsHashFromText:()=>getSourceFileVersionAsHashFromText,getSourceFilesToEmit:()=>bN,getSourceMapRange:()=>getSourceMapRange,getSourceMapper:()=>getSourceMapper,getSourceTextOfNodeFromSourceFile:()=>Xo,getSpanOfTokenAtPosition:()=>Ys,getSpellingSuggestion:()=>Jv,getStartPositionOfLine:()=>lD,getStartPositionOfRange:()=>f_,getStartsOnNewLine:()=>getStartsOnNewLine,getStaticPropertiesAndClassStaticBlock:()=>getStaticPropertiesAndClassStaticBlock,getStrictOptionValue:()=>W2,getStringComparer:()=>_g,getSuperCallFromStatement:()=>getSuperCallFromStatement,getSuperContainer:()=>MP,getSupportedCodeFixes:()=>c7,getSupportedExtensions:()=>HS,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>GS,getSwitchedType:()=>getSwitchedType,getSymbolId:()=>getSymbolId,getSymbolNameForPrivateIdentifier:()=>HI,getSymbolTarget:()=>getSymbolTarget,getSyntacticClassifications:()=>getSyntacticClassifications,getSyntacticModifierFlags:()=>M2,getSyntacticModifierFlagsNoCache:()=>L2,getSynthesizedDeepClone:()=>getSynthesizedDeepClone,getSynthesizedDeepCloneWithReplacements:()=>getSynthesizedDeepCloneWithReplacements,getSynthesizedDeepClones:()=>getSynthesizedDeepClones,getSynthesizedDeepClonesWithReplacements:()=>getSynthesizedDeepClonesWithReplacements,getSyntheticLeadingComments:()=>getSyntheticLeadingComments,getSyntheticTrailingComments:()=>getSyntheticTrailingComments,getTargetLabel:()=>getTargetLabel,getTargetOfBindingOrAssignmentElement:()=>Mo,getTemporaryModuleResolutionState:()=>getTemporaryModuleResolutionState,getTextOfConstantValue:()=>ED,getTextOfIdentifierOrLiteral:()=>bd,getTextOfJSDocComment:()=>TA,getTextOfJsxAttributeName:()=>gL,getTextOfJsxNamespacedName:()=>Kl,getTextOfNode:()=>sm,getTextOfNodeFromSourceText:()=>t_,getTextOfPropertyName:()=>VD,getThisContainer:()=>o2,getThisParameter:()=>KT,getTokenAtPosition:()=>getTokenAtPosition,getTokenPosOfNode:()=>Go,getTokenSourceMapRange:()=>getTokenSourceMapRange,getTouchingPropertyName:()=>getTouchingPropertyName,getTouchingToken:()=>getTouchingToken,getTrailingCommentRanges:()=>_4,getTrailingSemicolonDeferringWriter:()=>fN,getTransformFlagsSubtreeExclusions:()=>Rx,getTransformers:()=>getTransformers,getTsBuildInfoEmitOutputFilePath:()=>getTsBuildInfoEmitOutputFilePath,getTsConfigObjectLiteralExpression:()=>Q3,getTsConfigPropArrayElementValue:()=>CP,getTypeAnnotationNode:()=>EN,getTypeArgumentOrTypeParameterList:()=>getTypeArgumentOrTypeParameterList,getTypeKeywordOfTypeOnlyImport:()=>getTypeKeywordOfTypeOnlyImport,getTypeNode:()=>getTypeNode,getTypeNodeIfAccessible:()=>getTypeNodeIfAccessible,getTypeParameterFromJsDoc:()=>xI,getTypeParameterOwner:()=>iA,getTypesPackageName:()=>getTypesPackageName,getUILocale:()=>WC,getUniqueName:()=>getUniqueName,getUniqueSymbolId:()=>getUniqueSymbolId,getUseDefineForClassFields:()=>lM,getWatchErrorSummaryDiagnosticMessage:()=>getWatchErrorSummaryDiagnosticMessage,getWatchFactory:()=>getWatchFactory,group:()=>EC,groupBy:()=>AC,guessIndentation:()=>Lk,handleNoEmitOptions:()=>handleNoEmitOptions,hasAbstractModifier:()=>iS,hasAccessorModifier:()=>oS,hasAmbientModifier:()=>aS,hasChangesInResolutions:()=>aD,hasChildOfKind:()=>hasChildOfKind,hasContextSensitiveParameters:()=>nL,hasDecorators:()=>El,hasDocComment:()=>hasDocComment,hasDynamicName:()=>LT,hasEffectiveModifier:()=>N2,hasEffectiveModifiers:()=>MN,hasEffectiveReadonlyModifier:()=>O0,hasExtension:()=>Qv,hasIndexSignature:()=>hasIndexSignature,hasInitializer:()=>E3,hasInvalidEscape:()=>UT,hasJSDocNodes:()=>Wi,hasJSDocParameterTags:()=>cA,hasJSFileExtension:()=>H2,hasJsonModuleEmitEnabled:()=>ZO,hasOnlyExpressionInitializer:()=>Ok,hasOverrideModifier:()=>JN,hasPossibleExternalModuleReference:()=>BD,hasProperty:()=>Qr,hasPropertyAccessExpressionWithName:()=>hasPropertyAccessExpressionWithName,hasQuestionToken:()=>hI,hasRecordedExternalHelpers:()=>LR,hasRestParameter:()=>Jk,hasScopeMarker:()=>ck,hasStaticModifier:()=>gm,hasSyntacticModifier:()=>gr,hasSyntacticModifiers:()=>LN,hasTSFileExtension:()=>G2,hasTabstop:()=>cx,hasTrailingDirectorySeparator:()=>zd,hasType:()=>Nk,hasTypeArguments:()=>wI,hasZeroOrOneAsteriskCharacter:()=>gM,helperString:()=>helperString,hostGetCanonicalFileName:()=>VT,hostUsesCaseSensitiveFileNames:()=>C2,idText:()=>Ot,identifierIsThisKeyword:()=>ZT,identifierToKeywordKind:()=>P4,identity:()=>bt,identitySourceMapConsumer:()=>identitySourceMapConsumer,ignoreSourceNewlines:()=>ignoreSourceNewlines,ignoredPaths:()=>ignoredPaths,importDefaultHelper:()=>importDefaultHelper,importFromModuleSpecifier:()=>dI,importNameElisionDisabled:()=>eM,importStarHelper:()=>importStarHelper,indexOfAnyCharCode:()=>vv,indexOfNode:()=>SD,indicesOf:()=>ag,inferredTypesContainingFile:()=>inferredTypesContainingFile,injectClassNamedEvaluationHelperBlockIfMissing:()=>injectClassNamedEvaluationHelperBlockIfMissing,injectClassThisAssignmentIfMissing:()=>injectClassThisAssignmentIfMissing,insertImports:()=>insertImports,insertLeadingStatement:()=>SR,insertSorted:()=>yl,insertStatementAfterCustomPrologue:()=>hD,insertStatementAfterStandardPrologue:()=>mD,insertStatementsAfterCustomPrologue:()=>dD,insertStatementsAfterStandardPrologue:()=>fD,intersperse:()=>R5,intrinsicTagNameToString:()=>vL,introducesArgumentsExoticObject:()=>gP,inverseJsxOptionMap:()=>inverseJsxOptionMap,isAbstractConstructorSymbol:()=>AO,isAbstractModifier:()=>tJ,isAccessExpression:()=>$o,isAccessibilityModifier:()=>isAccessibilityModifier,isAccessor:()=>nm,isAccessorModifier:()=>nJ,isAliasSymbolDeclaration:()=>LI,isAliasableExpression:()=>b2,isAmbientModule:()=>_m,isAmbientPropertyDeclaration:()=>JD,isAnonymousFunctionDefinition:()=>Ks,isAnyDirectorySeparator:()=>dg,isAnyImportOrBareOrAccessedRequire:()=>jD,isAnyImportOrReExport:()=>lm,isAnyImportSyntax:()=>$g,isAnySupportedFileExtension:()=>RM,isApplicableVersionedTypesKey:()=>isApplicableVersionedTypesKey,isArgumentExpressionOfElementAccess:()=>isArgumentExpressionOfElementAccess,isArray:()=>zt,isArrayBindingElement:()=>QA,isArrayBindingOrAssignmentElement:()=>m3,isArrayBindingOrAssignmentPattern:()=>d3,isArrayBindingPattern:()=>_J,isArrayLiteralExpression:()=>iu,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>isArrayLiteralOrObjectLiteralDestructuringPattern,isArrayTypeNode:()=>$x,isArrowFunction:()=>km,isAsExpression:()=>hJ,isAssertClause:()=>jJ,isAssertEntry:()=>FJ,isAssertionExpression:()=>sk,isAssertionKey:()=>FA,isAssertsKeyword:()=>KL,isAssignmentDeclaration:()=>k0,isAssignmentExpression:()=>Na,isAssignmentOperator:()=>D_,isAssignmentPattern:()=>u3,isAssignmentTarget:()=>CI,isAsteriskToken:()=>GL,isAsyncFunction:()=>WI,isAsyncModifier:()=>al,isAutoAccessorPropertyDeclaration:()=>l3,isAwaitExpression:()=>pJ,isAwaitKeyword:()=>ZL,isBigIntLiteral:()=>o6,isBinaryExpression:()=>Ct,isBinaryOperatorToken:()=>mj,isBindableObjectDefinePropertyCall:()=>p2,isBindableStaticAccessExpression:()=>k_,isBindableStaticElementAccessExpression:()=>f2,isBindableStaticNameExpression:()=>p_,isBindingElement:()=>nu,isBindingElementOfBareOrAccessedRequire:()=>KP,isBindingName:()=>WA,isBindingOrAssignmentElement:()=>YA,isBindingOrAssignmentPattern:()=>KA,isBindingPattern:()=>im,isBlock:()=>au,isBlockOrCatchScoped:()=>kD,isBlockScope:()=>U3,isBlockScopedContainerTopLevel:()=>OD,isBooleanLiteral:()=>VA,isBreakOrContinueStatement:()=>DA,isBreakStatement:()=>kJ,isBuildInfoFile:()=>isBuildInfoFile,isBuilderProgram:()=>isBuilderProgram2,isBundle:()=>YJ,isBundleFileTextLike:()=>MO,isCallChain:()=>y0,isCallExpression:()=>j_,isCallExpressionTarget:()=>isCallExpressionTarget,isCallLikeExpression:()=>tk,isCallOrNewExpression:()=>rk,isCallOrNewExpressionTarget:()=>isCallOrNewExpressionTarget,isCallSignatureDeclaration:()=>c6,isCallToHelper:()=>isCallToHelper,isCaseBlock:()=>LJ,isCaseClause:()=>XJ,isCaseKeyword:()=>iJ,isCaseOrDefaultClause:()=>Ik,isCatchClause:()=>$J,isCatchClauseVariableDeclaration:()=>ix,isCatchClauseVariableDeclarationOrBindingElement:()=>R3,isCheckJsEnabledForFile:()=>jM,isChildOfNodeWithKind:()=>lP,isCircularBuildOrder:()=>isCircularBuildOrder,isClassDeclaration:()=>Yo,isClassElement:()=>no,isClassExpression:()=>Il,isClassLike:()=>dn,isClassMemberModifier:()=>s3,isClassNamedEvaluationHelperBlock:()=>isClassNamedEvaluationHelperBlock,isClassOrTypeElement:()=>XA,isClassStaticBlockDeclaration:()=>eu,isClassThisAssignmentBlock:()=>isClassThisAssignmentBlock,isCollapsedRange:()=>nO,isColonToken:()=>XL,isCommaExpression:()=>Jm,isCommaListExpression:()=>F_,isCommaSequence:()=>IR,isCommaToken:()=>Ux,isComment:()=>isComment,isCommonJsExportPropertyAssignment:()=>i2,isCommonJsExportedExpression:()=>hP,isCompoundAssignment:()=>isCompoundAssignment,isComputedNonLiteralName:()=>WD,isComputedPropertyName:()=>ao,isConciseBody:()=>fk,isConditionalExpression:()=>fJ,isConditionalTypeNode:()=>t8,isConstTypeReference:()=>Z4,isConstructSignatureDeclaration:()=>Hx,isConstructorDeclaration:()=>J_,isConstructorTypeNode:()=>u6,isContextualKeyword:()=>v2,isContinueStatement:()=>AJ,isCustomPrologue:()=>um,isDebuggerStatement:()=>MJ,isDeclaration:()=>Ho,isDeclarationBindingElement:()=>Bg,isDeclarationFileName:()=>G8,isDeclarationName:()=>wT,isDeclarationNameOfEnumOrNamespace:()=>mO,isDeclarationReadonly:()=>nP,isDeclarationStatement:()=>wk,isDeclarationWithTypeParameterChildren:()=>q3,isDeclarationWithTypeParameters:()=>RD,isDecorator:()=>L_,isDecoratorTarget:()=>isDecoratorTarget,isDefaultClause:()=>h8,isDefaultImport:()=>mT,isDefaultModifier:()=>YL,isDefaultedExpandoInitializer:()=>aI,isDeleteExpression:()=>lJ,isDeleteTarget:()=>II,isDeprecatedDeclaration:()=>isDeprecatedDeclaration,isDestructuringAssignment:()=>UN,isDiagnosticWithLocation:()=>isDiagnosticWithLocation,isDiskPathRoot:()=>wE,isDoStatement:()=>xJ,isDocumentRegistryEntry:()=>isDocumentRegistryEntry,isDotDotDotToken:()=>HL,isDottedName:()=>L0,isDynamicName:()=>S2,isESSymbolIdentifier:()=>$I,isEffectiveExternalModule:()=>Xg,isEffectiveModuleDeclaration:()=>j3,isEffectiveStrictModeSourceFile:()=>LD,isElementAccessChain:()=>K4,isElementAccessExpression:()=>Ra,isEmittedFileOfProgram:()=>isEmittedFileOfProgram,isEmptyArrayLiteral:()=>HN,isEmptyBindingElement:()=>k4,isEmptyBindingPattern:()=>A4,isEmptyObjectLiteral:()=>VN,isEmptyStatement:()=>TJ,isEmptyStringLiteral:()=>Z3,isEntityName:()=>zA,isEntityNameExpression:()=>co,isEnumConst:()=>rP,isEnumDeclaration:()=>S6,isEnumMember:()=>g8,isEqualityOperatorKind:()=>isEqualityOperatorKind,isEqualsGreaterThanToken:()=>QL,isExclamationToken:()=>Dd,isExcludedFile:()=>isExcludedFile,isExclusivelyTypeOnlyImportOrExport:()=>isExclusivelyTypeOnlyImportOrExport,isExportAssignment:()=>ss,isExportDeclaration:()=>B_,isExportModifier:()=>qx,isExportName:()=>PR,isExportNamespaceAsDefaultDeclaration:()=>J3,isExportOrDefaultModifier:()=>yj,isExportSpecifier:()=>m8,isExportsIdentifier:()=>_T,isExportsOrModuleExportsOrAlias:()=>isExportsOrModuleExportsOrAlias,isExpression:()=>am,isExpressionNode:()=>_2,isExpressionOfExternalModuleImportEqualsDeclaration:()=>isExpressionOfExternalModuleImportEqualsDeclaration,isExpressionOfOptionalChainRoot:()=>EA,isExpressionStatement:()=>ou,isExpressionWithTypeArguments:()=>g6,isExpressionWithTypeArgumentsInClassExtendsClause:()=>M0,isExternalModule:()=>Zo,isExternalModuleAugmentation:()=>Gg,isExternalModuleImportEqualsDeclaration:()=>rT,isExternalModuleIndicator:()=>uk,isExternalModuleNameRelative:()=>XE,isExternalModuleReference:()=>Nm,isExternalModuleSymbol:()=>isExternalModuleSymbol,isExternalOrCommonJsModule:()=>tP,isFileLevelReservedGeneratedIdentifier:()=>UA,isFileLevelUniqueName:()=>I3,isFileProbablyExternalModule:()=>ml,isFirstDeclarationOfSymbolParameter:()=>isFirstDeclarationOfSymbolParameter,isFixablePromiseHandler:()=>isFixablePromiseHandler,isForInOrOfStatement:()=>pk,isForInStatement:()=>CJ,isForInitializer:()=>mk,isForOfStatement:()=>EJ,isForStatement:()=>l8,isFunctionBlock:()=>$3,isFunctionBody:()=>dk,isFunctionDeclaration:()=>os,isFunctionExpression:()=>Am,isFunctionExpressionOrArrowFunction:()=>oL,isFunctionLike:()=>Gi,isFunctionLikeDeclaration:()=>_3,isFunctionLikeKind:()=>Jg,isFunctionLikeOrClassStaticBlockDeclaration:()=>rm,isFunctionOrConstructorTypeNode:()=>$A,isFunctionOrModuleBlock:()=>HA,isFunctionSymbol:()=>pI,isFunctionTypeNode:()=>tu,isFutureReservedKeyword:()=>jI,isGeneratedIdentifier:()=>wa,isGeneratedPrivateIdentifier:()=>Mg,isGetAccessor:()=>el,isGetAccessorDeclaration:()=>m_,isGetOrSetAccessorDeclaration:()=>CA,isGlobalDeclaration:()=>isGlobalDeclaration,isGlobalScopeAugmentation:()=>cm,isGrammarError:()=>pD,isHeritageClause:()=>Nl,isHoistedFunction:()=>w0,isHoistedVariableStatement:()=>C0,isIdentifier:()=>Ee,isIdentifierANonContextualKeyword:()=>UI,isIdentifierName:()=>MI,isIdentifierOrThisTypeNode:()=>GR,isIdentifierPart:()=>Qa,isIdentifierStart:()=>un,isIdentifierText:()=>Cg,isIdentifierTypePredicate:()=>SP,isIdentifierTypeReference:()=>QM,isIfStatement:()=>SJ,isIgnoredFileFromWildCardWatching:()=>isIgnoredFileFromWildCardWatching,isImplicitGlob:()=>US,isImportCall:()=>t2,isImportClause:()=>JJ,isImportDeclaration:()=>C6,isImportEqualsDeclaration:()=>w6,isImportKeyword:()=>Wx,isImportMeta:()=>x0,isImportOrExportSpecifier:()=>RA,isImportOrExportSpecifierName:()=>isImportOrExportSpecifierName,isImportSpecifier:()=>f8,isImportTypeAssertionContainer:()=>RJ,isImportTypeNode:()=>ru,isImportableFile:()=>isImportableFile,isInComment:()=>isInComment,isInExpressionContext:()=>eT,isInJSDoc:()=>nT,isInJSFile:()=>Wt,isInJSXText:()=>isInJSXText,isInJsonFile:()=>$P,isInNonReferenceComment:()=>isInNonReferenceComment,isInReferenceComment:()=>isInReferenceComment,isInRightSideOfInternalImportEqualsDeclaration:()=>isInRightSideOfInternalImportEqualsDeclaration,isInString:()=>isInString,isInTemplateString:()=>isInTemplateString,isInTopLevelContext:()=>NP,isInTypeQuery:()=>wN,isIncrementalCompilation:()=>cM,isIndexSignatureDeclaration:()=>l6,isIndexedAccessTypeNode:()=>i8,isInferTypeNode:()=>r8,isInfinityOrNaNString:()=>iL,isInitializedProperty:()=>isInitializedProperty,isInitializedVariable:()=>wS,isInsideJsxElement:()=>isInsideJsxElement,isInsideJsxElementOrAttribute:()=>isInsideJsxElementOrAttribute,isInsideNodeModules:()=>isInsideNodeModules,isInsideTemplateLiteral:()=>isInsideTemplateLiteral,isInstantiatedModule:()=>isInstantiatedModule,isInterfaceDeclaration:()=>su,isInternalDeclaration:()=>isInternalDeclaration,isInternalModuleImportEqualsDeclaration:()=>GP,isInternalName:()=>DR,isIntersectionTypeNode:()=>e8,isIntrinsicJsxName:()=>WT,isIterationStatement:()=>b3,isJSDoc:()=>cs,isJSDocAllType:()=>rR,isJSDocAugmentsTag:()=>Mm,isJSDocAuthorTag:()=>_R,isJSDocCallbackTag:()=>cR,isJSDocClassTag:()=>T8,isJSDocCommentContainingNode:()=>C3,isJSDocConstructSignature:()=>yI,isJSDocDeprecatedTag:()=>J6,isJSDocEnumTag:()=>x8,isJSDocFunctionType:()=>Om,isJSDocImplementsTag:()=>C8,isJSDocIndexSignature:()=>YP,isJSDocLikeText:()=>z8,isJSDocLink:()=>ZJ,isJSDocLinkCode:()=>eR,isJSDocLinkLike:()=>ul,isJSDocLinkPlain:()=>tR,isJSDocMemberName:()=>r_,isJSDocNameReference:()=>zf,isJSDocNamepathType:()=>sR,isJSDocNamespaceBody:()=>gk,isJSDocNode:()=>zg,isJSDocNonNullableType:()=>iR,isJSDocNullableType:()=>v8,isJSDocOptionalParameter:()=>lx,isJSDocOptionalType:()=>aR,isJSDocOverloadTag:()=>L6,isJSDocOverrideTag:()=>S8,isJSDocParameterTag:()=>h_,isJSDocPrivateTag:()=>N6,isJSDocPropertyLikeTag:()=>Ig,isJSDocPropertyTag:()=>fR,isJSDocProtectedTag:()=>O6,isJSDocPublicTag:()=>I6,isJSDocReadonlyTag:()=>M6,isJSDocReturnTag:()=>R6,isJSDocSatisfiesExpression:()=>mL,isJSDocSatisfiesTag:()=>j6,isJSDocSeeTag:()=>lR,isJSDocSignature:()=>cu,isJSDocTag:()=>Wg,isJSDocTemplateTag:()=>Ko,isJSDocThisTag:()=>w8,isJSDocThrowsTag:()=>dR,isJSDocTypeAlias:()=>Hl,isJSDocTypeAssertion:()=>N8,isJSDocTypeExpression:()=>b8,isJSDocTypeLiteral:()=>P6,isJSDocTypeTag:()=>lu,isJSDocTypedefTag:()=>uR,isJSDocUnknownTag:()=>pR,isJSDocUnknownType:()=>nR,isJSDocVariadicType:()=>oR,isJSXTagName:()=>Mf,isJsonEqual:()=>$2,isJsonSourceFile:()=>e2,isJsxAttribute:()=>VJ,isJsxAttributeLike:()=>Dk,isJsxAttributeName:()=>bL,isJsxAttributes:()=>D6,isJsxChild:()=>x3,isJsxClosingElement:()=>qf,isJsxClosingFragment:()=>WJ,isJsxElement:()=>Q0,isJsxExpression:()=>GJ,isJsxFragment:()=>dl,isJsxNamespacedName:()=>U_,isJsxOpeningElement:()=>Oo,isJsxOpeningFragment:()=>k6,isJsxOpeningLikeElement:()=>w3,isJsxOpeningLikeElementTagName:()=>isJsxOpeningLikeElementTagName,isJsxSelfClosingElement:()=>zJ,isJsxSpreadAttribute:()=>HJ,isJsxTagNameExpression:()=>kk,isJsxText:()=>kd,isJumpStatementTarget:()=>isJumpStatementTarget,isKeyword:()=>Si,isKeywordOrPunctuation:()=>Jf,isKnownSymbol:()=>GI,isLabelName:()=>isLabelName,isLabelOfLabeledStatement:()=>isLabelOfLabeledStatement,isLabeledStatement:()=>u8,isLateVisibilityPaintedStatement:()=>FD,isLeftHandSideExpression:()=>Lo,isLeftHandSideOfAssignment:()=>BN,isLet:()=>oP,isLineBreak:()=>mr,isLiteralComputedPropertyDeclarationName:()=>CT,isLiteralExpression:()=>Og,isLiteralExpressionOfObject:()=>MA,isLiteralImportTypeNode:()=>H3,isLiteralKind:()=>Ng,isLiteralLikeAccess:()=>Lf,isLiteralLikeElementAccess:()=>Vl,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>isLiteralNameOfPropertyDeclarationOrIndexAccess,isLiteralTypeLikeExpression:()=>YR,isLiteralTypeLiteral:()=>ak,isLiteralTypeNode:()=>m6,isLocalName:()=>Y0,isLogicalOperator:()=>RN,isLogicalOrCoalescingAssignmentExpression:()=>jN,isLogicalOrCoalescingAssignmentOperator:()=>vm,isLogicalOrCoalescingBinaryExpression:()=>FN,isLogicalOrCoalescingBinaryOperator:()=>fS,isMappedTypeNode:()=>a8,isMemberName:()=>ro,isMetaProperty:()=>b6,isMethodDeclaration:()=>d_,isMethodOrAccessor:()=>Rg,isMethodSignature:()=>Vx,isMinusToken:()=>_6,isMissingDeclaration:()=>UJ,isModifier:()=>Lg,isModifierKind:()=>bi,isModifierLike:()=>Of,isModuleAugmentationExternal:()=>F3,isModuleBlock:()=>p8,isModuleBody:()=>hk,isModuleDeclaration:()=>Yi,isModuleExportsAccessExpression:()=>u2,isModuleIdentifier:()=>cT,isModuleName:()=>QR,isModuleOrEnumDeclaration:()=>vk,isModuleReference:()=>Ak,isModuleSpecifierLike:()=>isModuleSpecifierLike,isModuleWithStringLiteralName:()=>DD,isNameOfFunctionDeclaration:()=>isNameOfFunctionDeclaration,isNameOfModuleDeclaration:()=>isNameOfModuleDeclaration,isNamedClassElement:()=>GA,isNamedDeclaration:()=>Qd,isNamedEvaluation:()=>QI,isNamedEvaluationSource:()=>jT,isNamedExportBindings:()=>PA,isNamedExports:()=>d8,isNamedImportBindings:()=>bk,isNamedImports:()=>BJ,isNamedImportsOrExports:()=>LO,isNamedTupleMember:()=>p6,isNamespaceBody:()=>yk,isNamespaceExport:()=>Im,isNamespaceExportDeclaration:()=>x6,isNamespaceImport:()=>E6,isNamespaceReexportDeclaration:()=>WP,isNewExpression:()=>o8,isNewExpressionTarget:()=>isNewExpressionTarget,isNightly:()=>uN,isNoSubstitutionTemplateLiteral:()=>Bx,isNode:()=>NA,isNodeArray:()=>va,isNodeArrayMultiLine:()=>uO,isNodeDescendantOf:()=>NI,isNodeKind:()=>ql,isNodeLikeSystem:()=>pE,isNodeModulesDirectory:()=>RE,isNodeWithPossibleHoistedDeclaration:()=>EI,isNonContextualKeyword:()=>MT,isNonExportDefaultModifier:()=>gj,isNonGlobalAmbientModule:()=>PD,isNonGlobalDeclaration:()=>isNonGlobalDeclaration,isNonNullAccess:()=>dL,isNonNullChain:()=>e3,isNonNullExpression:()=>jo,isNonStaticMethodOrAccessorWithPrivateName:()=>isNonStaticMethodOrAccessorWithPrivateName,isNotEmittedOrPartiallyEmittedNode:()=>_k,isNotEmittedStatement:()=>A6,isNullishCoalesce:()=>kA,isNumber:()=>LC,isNumericLiteral:()=>lo,isNumericLiteralName:()=>ax,isObjectBindingElementWithoutPropertyName:()=>isObjectBindingElementWithoutPropertyName,isObjectBindingOrAssignmentElement:()=>f3,isObjectBindingOrAssignmentPattern:()=>p3,isObjectBindingPattern:()=>sJ,isObjectLiteralElement:()=>b0,isObjectLiteralElementLike:()=>Fg,isObjectLiteralExpression:()=>uo,isObjectLiteralMethod:()=>vP,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>TP,isObjectTypeDeclaration:()=>NO,isOctalDigit:()=>If,isOmittedExpression:()=>Pm,isOptionalChain:()=>Dg,isOptionalChainRoot:()=>Pg,isOptionalDeclaration:()=>fL,isOptionalJSDocPropertyLikeTag:()=>_x,isOptionalTypeNode:()=>Yx,isOuterExpression:()=>Rm,isOutermostOptionalChain:()=>AA,isOverrideModifier:()=>rJ,isPackedArrayLiteral:()=>eL,isParameter:()=>Ma,isParameterDeclaration:()=>KI,isParameterOrCatchClauseVariable:()=>aL,isParameterPropertyDeclaration:()=>E4,isParameterPropertyModifier:()=>o3,isParenthesizedExpression:()=>is,isParenthesizedTypeNode:()=>f6,isParseTreeNode:()=>Tl,isPartOfTypeNode:()=>r2,isPartOfTypeQuery:()=>tT,isPartiallyEmittedExpression:()=>c8,isPatternMatch:()=>lg,isPinnedComment:()=>L3,isPlainJsFile:()=>_D,isPlusToken:()=>s6,isPossiblyTypeArgumentPosition:()=>isPossiblyTypeArgumentPosition,isPostfixUnaryExpression:()=>_8,isPrefixUnaryExpression:()=>Dm,isPrivateIdentifier:()=>jr,isPrivateIdentifierClassElementDeclaration:()=>a3,isPrivateIdentifierPropertyAccessExpression:()=>qA,isPrivateIdentifierSymbol:()=>XI,isProgramBundleEmitBuildInfo:()=>isProgramBundleEmitBuildInfo,isProgramUptoDate:()=>isProgramUptoDate,isPrologueDirective:()=>Ea,isPropertyAccessChain:()=>Y4,isPropertyAccessEntityNameExpression:()=>hS,isPropertyAccessExpression:()=>Br,isPropertyAccessOrQualifiedName:()=>ek,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>ZA,isPropertyAssignment:()=>_s,isPropertyDeclaration:()=>oo,isPropertyName:()=>zl,isPropertyNameLiteral:()=>P0,isPropertySignature:()=>Zl,isProtoSetter:()=>RT,isPrototypeAccess:()=>$l,isPrototypePropertyAssignment:()=>cI,isPunctuation:()=>OT,isPushOrUnshiftIdentifier:()=>YI,isQualifiedName:()=>M_,isQuestionDotToken:()=>$L,isQuestionOrExclamationToken:()=>HR,isQuestionOrPlusOrMinusToken:()=>$R,isQuestionToken:()=>Pl,isRawSourceMap:()=>isRawSourceMap,isReadonlyKeyword:()=>zx,isReadonlyKeywordOrPlusOrMinusToken:()=>XR,isRecognizedTripleSlashComment:()=>yD,isReferenceFileLocation:()=>isReferenceFileLocation,isReferencedFile:()=>isReferencedFile,isRegularExpressionLiteral:()=>qL,isRequireCall:()=>Wl,isRequireVariableStatement:()=>oT,isRestParameter:()=>A3,isRestTypeNode:()=>Kx,isReturnStatement:()=>DJ,isReturnStatementWithFixablePromiseHandler:()=>isReturnStatementWithFixablePromiseHandler,isRightSideOfAccessExpression:()=>yS,isRightSideOfPropertyAccess:()=>isRightSideOfPropertyAccess,isRightSideOfQualifiedName:()=>isRightSideOfQualifiedName,isRightSideOfQualifiedNameOrPropertyAccess:()=>zN,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>WN,isRootedDiskPath:()=>v_,isSameEntityName:()=>u_,isSatisfiesExpression:()=>yJ,isScopeMarker:()=>v3,isSemicolonClassElement:()=>vJ,isSetAccessor:()=>Zc,isSetAccessorDeclaration:()=>Qo,isShebangTrivia:()=>xg,isShorthandAmbientModuleSymbol:()=>ID,isShorthandPropertyAssignment:()=>_u,isSignedNumericLiteral:()=>T2,isSimpleCopiableExpression:()=>isSimpleCopiableExpression,isSimpleInlineableExpression:()=>isSimpleInlineableExpression,isSingleOrDoubleQuote:()=>ZP,isSourceFile:()=>ii,isSourceFileFromLibrary:()=>isSourceFileFromLibrary,isSourceFileJS:()=>c2,isSourceFileNotJS:()=>XP,isSourceFileNotJson:()=>QP,isSourceMapping:()=>isSourceMapping,isSpecialPropertyDeclaration:()=>lI,isSpreadAssignment:()=>y8,isSpreadElement:()=>y6,isStatement:()=>T3,isStatementButNotDeclaration:()=>Ck,isStatementOrBlock:()=>S3,isStatementWithLocals:()=>cD,isStatic:()=>N0,isStaticModifier:()=>eJ,isString:()=>b_,isStringAKeyword:()=>BI,isStringANonContextualKeyword:()=>FI,isStringAndEmptyAnonymousObjectIntersection:()=>isStringAndEmptyAnonymousObjectIntersection,isStringDoubleQuoted:()=>eI,isStringLiteral:()=>mn,isStringLiteralLike:()=>Kn,isStringLiteralOrJsxExpression:()=>Pk,isStringLiteralOrTemplate:()=>isStringLiteralOrTemplate,isStringOrNumericLiteralLike:()=>Qi,isStringOrRegularExpressionOrTemplateLiteral:()=>isStringOrRegularExpressionOrTemplateLiteral,isStringTextContainingNode:()=>BA,isSuperCall:()=>sP,isSuperKeyword:()=>Uf,isSuperOrSuperProperty:()=>JP,isSuperProperty:()=>yd,isSupportedSourceFileName:()=>NM,isSwitchStatement:()=>IJ,isSyntaxList:()=>mR,isSyntheticExpression:()=>gJ,isSyntheticReference:()=>qJ,isTagName:()=>isTagName,isTaggedTemplateExpression:()=>s8,isTaggedTemplateTag:()=>isTaggedTemplateTag,isTemplateExpression:()=>dJ,isTemplateHead:()=>zL,isTemplateLiteral:()=>nk,isTemplateLiteralKind:()=>Sl,isTemplateLiteralToken:()=>LA,isTemplateLiteralTypeNode:()=>oJ,isTemplateLiteralTypeSpan:()=>aJ,isTemplateMiddle:()=>WL,isTemplateMiddleOrTemplateTail:()=>JA,isTemplateSpan:()=>bJ,isTemplateTail:()=>VL,isTextWhiteSpaceLike:()=>isTextWhiteSpaceLike,isThis:()=>isThis,isThisContainerOrFunctionBlock:()=>IP,isThisIdentifier:()=>ym,isThisInTypeQuery:()=>CN,isThisInitializedDeclaration:()=>jP,isThisInitializedObjectBindingExpression:()=>FP,isThisProperty:()=>RP,isThisTypeNode:()=>d6,isThisTypeParameter:()=>ox,isThisTypePredicate:()=>xP,isThrowStatement:()=>NJ,isToken:()=>OA,isTokenKind:()=>r3,isTraceEnabled:()=>isTraceEnabled,isTransientSymbol:()=>T0,isTrivia:()=>qI,isTryStatement:()=>OJ,isTupleTypeNode:()=>Qx,isTypeAlias:()=>gI,isTypeAliasDeclaration:()=>T6,isTypeAssertionExpression:()=>cJ,isTypeDeclaration:()=>sx,isTypeElement:()=>jg,isTypeKeyword:()=>isTypeKeyword,isTypeKeywordToken:()=>isTypeKeywordToken,isTypeKeywordTokenOrIdentifier:()=>isTypeKeywordTokenOrIdentifier,isTypeLiteralNode:()=>Em,isTypeNode:()=>g0,isTypeNodeKind:()=>PS,isTypeOfExpression:()=>uJ,isTypeOnlyExportDeclaration:()=>i3,isTypeOnlyImportDeclaration:()=>n3,isTypeOnlyImportOrExportDeclaration:()=>jA,isTypeOperatorNode:()=>n8,isTypeParameterDeclaration:()=>No,isTypePredicateNode:()=>Gx,isTypeQueryNode:()=>Xx,isTypeReferenceNode:()=>R_,isTypeReferenceType:()=>Mk,isTypeUsableAsPropertyName:()=>TL,isUMDExportSymbol:()=>DO,isUnaryExpression:()=>y3,isUnaryExpressionWithWrite:()=>ik,isUnicodeIdentifierStart:()=>i4,isUnionTypeNode:()=>Zx,isUnparsedNode:()=>IA,isUnparsedPrepend:()=>QJ,isUnparsedSource:()=>KJ,isUnparsedTextLike:()=>t3,isUrl:()=>xE,isValidBigIntString:()=>ex,isValidESSymbolDeclaration:()=>yP,isValidTypeOnlyAliasUseSite:()=>HM,isValueSignatureDeclaration:()=>AI,isVarAwaitUsing:()=>iP,isVarConst:()=>V3,isVarUsing:()=>aP,isVariableDeclaration:()=>ki,isVariableDeclarationInVariableStatement:()=>X3,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>pm,isVariableDeclarationInitializedToRequire:()=>iT,isVariableDeclarationList:()=>v6,isVariableLike:()=>n2,isVariableLikeOrAccessor:()=>mP,isVariableStatement:()=>as,isVoidExpression:()=>h6,isWatchSet:()=>yO,isWhileStatement:()=>wJ,isWhiteSpaceLike:()=>Vi,isWhiteSpaceSingleLine:()=>Io,isWithStatement:()=>PJ,isWriteAccess:()=>xO,isWriteOnlyAccess:()=>SO,isYieldExpression:()=>mJ,jsxModeNeedsExplicitImport:()=>jsxModeNeedsExplicitImport,keywordPart:()=>keywordPart,last:()=>ka,lastOrUndefined:()=>wi,length:()=>Ka,libMap:()=>libMap,libs:()=>libs,lineBreakPart:()=>lineBreakPart,linkNamePart:()=>linkNamePart,linkPart:()=>linkPart,linkTextPart:()=>linkTextPart,listFiles:()=>listFiles,loadModuleFromGlobalCache:()=>loadModuleFromGlobalCache,loadWithModeAwareCache:()=>loadWithModeAwareCache,makeIdentifierFromModuleName:()=>AD,makeImport:()=>makeImport,makeImportIfNecessary:()=>makeImportIfNecessary,makeStringLiteral:()=>makeStringLiteral,mangleScopedPackageName:()=>mangleScopedPackageName,map:()=>Aa,mapAllOrFail:()=>H5,mapDefined:()=>Za,mapDefinedEntries:()=>X5,mapDefinedIterator:()=>G5,mapEntries:()=>Z5,mapIterator:()=>z5,mapOneOrMany:()=>mapOneOrMany,mapToDisplayParts:()=>mapToDisplayParts,matchFiles:()=>EM,matchPatternOrExact:()=>FM,matchedText:()=>tE,matchesExclude:()=>matchesExclude,maybeBind:()=>rr,maybeSetLocalizedDiagnosticMessages:()=>OS,memoize:()=>ry,memoizeCached:()=>FC,memoizeOne:()=>Nn,memoizeWeak:()=>jC,metadataHelper:()=>metadataHelper,min:()=>qC,minAndMax:()=>UM,missingFileModifiedTime:()=>missingFileModifiedTime,modifierToFlag:()=>J2,modifiersToFlags:()=>ln,moduleOptionDeclaration:()=>moduleOptionDeclaration,moduleResolutionIsEqualTo:()=>eD,moduleResolutionNameAndModeGetter:()=>moduleResolutionNameAndModeGetter,moduleResolutionOptionDeclarations:()=>moduleResolutionOptionDeclarations,moduleResolutionSupportsPackageJsonExportsAndImports:()=>q2,moduleResolutionUsesNodeModules:()=>moduleResolutionUsesNodeModules,moduleSpecifiers:()=>ts_moduleSpecifiers_exports,moveEmitHelpers:()=>moveEmitHelpers,moveRangeEnd:()=>tO,moveRangePastDecorators:()=>SS,moveRangePastModifiers:()=>rO,moveRangePos:()=>Sd,moveSyntheticComments:()=>moveSyntheticComments,mutateMap:()=>EO,mutateMapSkippingNewValues:()=>AS,needsParentheses:()=>needsParentheses,needsScopeMarker:()=>lk,newCaseClauseTracker:()=>newCaseClauseTracker,newPrivateEnvironment:()=>newPrivateEnvironment,noEmitNotification:()=>noEmitNotification,noEmitSubstitution:()=>noEmitSubstitution,noTransformers:()=>noTransformers,noTruncationMaximumTruncationLength:()=>dx,nodeCanBeDecorated:()=>K3,nodeHasName:()=>N4,nodeIsDecorated:()=>l_,nodeIsMissing:()=>zi,nodeIsPresent:()=>wl,nodeIsSynthesized:()=>Ta,nodeModuleNameResolver:()=>nodeModuleNameResolver,nodeModulesPathPart:()=>nodeModulesPathPart,nodeNextJsonConfigResolver:()=>nodeNextJsonConfigResolver,nodeOrChildIsDecorated:()=>A0,nodeOverlapsWithStartEnd:()=>nodeOverlapsWithStartEnd,nodePosToString:()=>uD,nodeSeenTracker:()=>nodeSeenTracker,nodeStartsNewLexicalEnvironment:()=>ZI,nodeToDisplayParts:()=>nodeToDisplayParts,noop:()=>Rn,noopFileWatcher:()=>noopFileWatcher,normalizePath:()=>pn,normalizeSlashes:()=>qo,not:()=>iE,notImplemented:()=>RC,notImplementedResolver:()=>notImplementedResolver,nullNodeConverters:()=>nullNodeConverters,nullParenthesizerRules:()=>i6,nullTransformationContext:()=>nullTransformationContext,objectAllocator:()=>wt,operatorPart:()=>operatorPart,optionDeclarations:()=>optionDeclarations,optionMapToObject:()=>optionMapToObject,optionsAffectingProgramStructure:()=>optionsAffectingProgramStructure,optionsForBuild:()=>optionsForBuild,optionsForWatch:()=>optionsForWatch,optionsHaveChanges:()=>E_,optionsHaveModuleResolutionChanges:()=>k3,or:()=>ug,orderedRemoveItem:()=>KC,orderedRemoveItemAt:()=>Rv,outFile:()=>A2,packageIdToPackageName:()=>D3,packageIdToString:()=>nD,padLeft:()=>qv,padRight:()=>_E,paramHelper:()=>paramHelper,parameterIsThisKeyword:()=>Xl,parameterNamePart:()=>parameterNamePart,parseBaseNodeFactory:()=>tg,parseBigInt:()=>VM,parseBuildCommand:()=>parseBuildCommand,parseCommandLine:()=>parseCommandLine,parseCommandLineWorker:()=>parseCommandLineWorker,parseConfigFileTextToJson:()=>parseConfigFileTextToJson,parseConfigFileWithSystem:()=>parseConfigFileWithSystem,parseConfigHostFromCompilerHostLike:()=>parseConfigHostFromCompilerHostLike,parseCustomTypeOption:()=>parseCustomTypeOption,parseIsolatedEntityName:()=>Jj,parseIsolatedJSDocComment:()=>jj,parseJSDocTypeExpressionForTests:()=>Fj,parseJsonConfigFileContent:()=>parseJsonConfigFileContent,parseJsonSourceFileConfigFileContent:()=>parseJsonSourceFileConfigFileContent,parseJsonText:()=>Rj,parseListTypeOption:()=>parseListTypeOption,parseNodeFactory:()=>z_,parseNodeModuleFromPath:()=>parseNodeModuleFromPath,parsePackageName:()=>parsePackageName,parsePseudoBigInt:()=>Sm,parseValidBigInt:()=>ZS,patchWriteFileEnsuringDirectory:()=>patchWriteFileEnsuringDirectory,pathContainsNodeModules:()=>pathContainsNodeModules,pathIsAbsolute:()=>mg,pathIsBareSpecifier:()=>CE,pathIsRelative:()=>rs,patternText:()=>eE,perfLogger:()=>Yf,performIncrementalCompilation:()=>performIncrementalCompilation,performance:()=>ts_performance_exports,plainJSErrors:()=>plainJSErrors,positionBelongsToNode:()=>positionBelongsToNode,positionIsASICandidate:()=>positionIsASICandidate,positionIsSynthesized:()=>Oa,positionsAreOnSameLine:()=>P_,preProcessFile:()=>preProcessFile,probablyUsesSemicolons:()=>probablyUsesSemicolons,processCommentPragmas:()=>X8,processPragmasIntoFields:()=>$8,processTaggedTemplateExpression:()=>processTaggedTemplateExpression,programContainsEsModules:()=>programContainsEsModules,programContainsModules:()=>programContainsModules,projectReferenceIsEqualTo:()=>Zk,propKeyHelper:()=>propKeyHelper,propertyNamePart:()=>propertyNamePart,pseudoBigIntToString:()=>Q2,punctuationPart:()=>punctuationPart,pushIfUnique:()=>Ol,quote:()=>quote,quotePreferenceFromString:()=>quotePreferenceFromString,rangeContainsPosition:()=>rangeContainsPosition,rangeContainsPositionExclusive:()=>rangeContainsPositionExclusive,rangeContainsRange:()=>rangeContainsRange,rangeContainsRangeExclusive:()=>rangeContainsRangeExclusive,rangeContainsStartEnd:()=>rangeContainsStartEnd,rangeEndIsOnSameLineAsRangeStart:()=>_O,rangeEndPositionsAreOnSameLine:()=>sO,rangeEquals:()=>fC,rangeIsOnSingleLine:()=>aO,rangeOfNode:()=>qM,rangeOfTypeParameters:()=>zM,rangeOverlapsWithStartEnd:()=>rangeOverlapsWithStartEnd,rangeStartIsOnSameLineAsRangeEnd:()=>xS,rangeStartPositionsAreOnSameLine:()=>oO,readBuilderProgram:()=>readBuilderProgram,readConfigFile:()=>readConfigFile,readHelper:()=>readHelper,readJson:()=>eO,readJsonConfigFile:()=>readJsonConfigFile,readJsonOrUndefined:()=>bS,realizeDiagnostics:()=>realizeDiagnostics,reduceEachLeadingCommentRange:()=>a4,reduceEachTrailingCommentRange:()=>o4,reduceLeft:()=>Jd,reduceLeftIterator:()=>J5,reducePathComponents:()=>Da,refactor:()=>ts_refactor_exports,regExpEscape:()=>xM,relativeComplement:()=>lC,removeAllComments:()=>removeAllComments,removeEmitHelper:()=>removeEmitHelper,removeExtension:()=>QS,removeFileExtension:()=>Al,removeIgnoredPath:()=>removeIgnoredPath,removeMinAndVersionNumbers:()=>YC,removeOptionality:()=>removeOptionality,removePrefix:()=>rE,removeSuffix:()=>$C,removeTrailingDirectorySeparator:()=>S_,repeatString:()=>repeatString,replaceElement:()=>gC,resolutionExtensionIsTSOrJson:()=>JM,resolveConfigFileProjectName:()=>resolveConfigFileProjectName,resolveJSModule:()=>resolveJSModule,resolveLibrary:()=>resolveLibrary,resolveModuleName:()=>resolveModuleName,resolveModuleNameFromCache:()=>resolveModuleNameFromCache,resolvePackageNameToPackageJson:()=>resolvePackageNameToPackageJson,resolvePath:()=>d0,resolveProjectReferencePath:()=>resolveProjectReferencePath,resolveTripleslashReference:()=>resolveTripleslashReference,resolveTypeReferenceDirective:()=>resolveTypeReferenceDirective,resolvingEmptyArray:()=>px,restHelper:()=>restHelper,returnFalse:()=>Xf,returnNoopFileWatcher:()=>returnNoopFileWatcher,returnTrue:()=>Iv,returnUndefined:()=>JC,returnsPromise:()=>returnsPromise,runInitializersHelper:()=>runInitializersHelper,sameFlatMap:()=>Sv,sameMap:()=>W5,sameMapping:()=>sameMapping,scanShebangTrivia:()=>wg,scanTokenAtPosition:()=>ZD,scanner:()=>Fo,screenStartingMessageCodes:()=>screenStartingMessageCodes,semanticDiagnosticsOptionDeclarations:()=>semanticDiagnosticsOptionDeclarations,serializeCompilerOptions:()=>serializeCompilerOptions,server:()=>ts_server_exports,servicesVersion:()=>d7,setCommentRange:()=>setCommentRange,setConfigFileInOptions:()=>setConfigFileInOptions,setConstantValue:()=>setConstantValue,setEachParent:()=>a_,setEmitFlags:()=>setEmitFlags,setFunctionNameHelper:()=>setFunctionNameHelper,setGetSourceFileAsHashVersioned:()=>setGetSourceFileAsHashVersioned,setIdentifierAutoGenerate:()=>setIdentifierAutoGenerate,setIdentifierGeneratedImportReference:()=>setIdentifierGeneratedImportReference,setIdentifierTypeArguments:()=>setIdentifierTypeArguments,setInternalEmitFlags:()=>setInternalEmitFlags,setLocalizedDiagnosticMessages:()=>NS,setModuleDefaultHelper:()=>setModuleDefaultHelper,setNodeFlags:()=>KM,setObjectAllocator:()=>IS,setOriginalNode:()=>Xr,setParent:()=>Xi,setParentRecursive:()=>rx,setPrivateIdentifier:()=>setPrivateIdentifier,setResolvedModule:()=>Qk,setResolvedTypeReferenceDirective:()=>Yk,setSnippetElement:()=>setSnippetElement,setSourceMapRange:()=>setSourceMapRange,setStackTraceLimit:()=>setStackTraceLimit,setStartsOnNewLine:()=>setStartsOnNewLine,setSyntheticLeadingComments:()=>setSyntheticLeadingComments,setSyntheticTrailingComments:()=>setSyntheticTrailingComments,setSys:()=>setSys,setSysLog:()=>setSysLog,setTextRange:()=>Ve,setTextRangeEnd:()=>tx,setTextRangePos:()=>wd,setTextRangePosEnd:()=>Ya,setTextRangePosWidth:()=>Cd,setTokenSourceMapRange:()=>setTokenSourceMapRange,setTypeNode:()=>setTypeNode,setUILocale:()=>Lv,setValueDeclaration:()=>uI,shouldAllowImportingTsExtension:()=>shouldAllowImportingTsExtension,shouldPreserveConstEnums:()=>_M,shouldResolveJsRequire:()=>aM,shouldUseUriStyleNodeCoreModules:()=>shouldUseUriStyleNodeCoreModules,showModuleSpecifier:()=>PO,signatureHasLiteralTypes:()=>signatureHasLiteralTypes,signatureHasRestParameter:()=>signatureHasRestParameter,signatureToDisplayParts:()=>signatureToDisplayParts,single:()=>hC,singleElementArray:()=>$f,singleIterator:()=>Y5,singleOrMany:()=>yC,singleOrUndefined:()=>Ld,skipAlias:()=>vO,skipAssertions:()=>MR,skipConstraint:()=>skipConstraint,skipOuterExpressions:()=>ls,skipParentheses:()=>Gl,skipPartiallyEmittedExpressions:()=>tm,skipTrivia:()=>Nt,skipTypeChecking:()=>WM,skipTypeParentheses:()=>PI,skipWhile:()=>lE,sliceAfter:()=>BM,some:()=>mt,sort:()=>Gf,sortAndDeduplicate:()=>wv,sortAndDeduplicateDiagnostics:()=>$E,sourceFileAffectingCompilerOptions:()=>sourceFileAffectingCompilerOptions,sourceFileMayBeEmitted:()=>I0,sourceMapCommentRegExp:()=>sourceMapCommentRegExp,sourceMapCommentRegExpDontCareLineStart:()=>sourceMapCommentRegExpDontCareLineStart,spacePart:()=>spacePart,spanMap:()=>K5,spreadArrayHelper:()=>spreadArrayHelper,stableSort:()=>Av,startEndContainsRange:()=>startEndContainsRange,startEndOverlapsWithStartEnd:()=>startEndOverlapsWithStartEnd,startOnNewLine:()=>jm,startTracing:()=>startTracing,startsWith:()=>Fr,startsWithDirectory:()=>ME,startsWithUnderscore:()=>startsWithUnderscore,startsWithUseStrict:()=>I8,stringContains:()=>eo,stringContainsAt:()=>stringContainsAt,stringToToken:()=>Rl,stripQuotes:()=>cN,supportedDeclarationExtensions:()=>n6,supportedJSExtensions:()=>H0,supportedJSExtensionsFlat:()=>r6,supportedLocaleDirectories:()=>Hg,supportedTSExtensions:()=>Ro,supportedTSExtensionsFlat:()=>t6,supportedTSImplementationExtensions:()=>Ox,suppressLeadingAndTrailingTrivia:()=>suppressLeadingAndTrailingTrivia,suppressLeadingTrivia:()=>suppressLeadingTrivia,suppressTrailingTrivia:()=>suppressTrailingTrivia,symbolEscapedNameNoDefault:()=>symbolEscapedNameNoDefault,symbolName:()=>md,symbolNameNoDefault:()=>symbolNameNoDefault,symbolPart:()=>symbolPart,symbolToDisplayParts:()=>symbolToDisplayParts,syntaxMayBeASICandidate:()=>syntaxMayBeASICandidate,syntaxRequiresTrailingSemicolonOrASI:()=>syntaxRequiresTrailingSemicolonOrASI,sys:()=>f0,sysLog:()=>sysLog,tagNamesAreEquivalent:()=>Ti,takeWhile:()=>cE,targetOptionDeclaration:()=>targetOptionDeclaration,templateObjectHelper:()=>templateObjectHelper,testFormatSettings:()=>testFormatSettings,textChangeRangeIsUnchanged:()=>C4,textChangeRangeNewSpan:()=>Qs,textChanges:()=>ts_textChanges_exports,textOrKeywordPart:()=>textOrKeywordPart,textPart:()=>textPart,textRangeContainsPositionInclusive:()=>YE,textSpanContainsPosition:()=>QE,textSpanContainsTextSpan:()=>KE,textSpanEnd:()=>Kt,textSpanIntersection:()=>w4,textSpanIntersectsWith:()=>tA,textSpanIntersectsWithPosition:()=>rA,textSpanIntersectsWithTextSpan:()=>eA,textSpanIsEmpty:()=>S4,textSpanOverlap:()=>x4,textSpanOverlapsWith:()=>ZE,textSpansEqual:()=>textSpansEqual,textToKeywordObj:()=>cl,timestamp:()=>Sa,toArray:()=>Pf,toBuilderFileEmit:()=>toBuilderFileEmit,toBuilderStateFileInfoForMultiEmit:()=>toBuilderStateFileInfoForMultiEmit,toEditorSettings:()=>sl,toFileNameLowerCase:()=>Ov,toLowerCase:()=>Nv,toPath:()=>xi,toProgramEmitPending:()=>toProgramEmitPending,tokenIsIdentifierOrKeyword:()=>kt,tokenIsIdentifierOrKeywordOrGreaterThan:()=>n4,tokenToString:()=>nr,trace:()=>trace,tracing:()=>xa,tracingEnabled:()=>tracingEnabled,transform:()=>transform,transformClassFields:()=>transformClassFields,transformDeclarations:()=>transformDeclarations,transformECMAScriptModule:()=>transformECMAScriptModule,transformES2015:()=>transformES2015,transformES2016:()=>transformES2016,transformES2017:()=>transformES2017,transformES2018:()=>transformES2018,transformES2019:()=>transformES2019,transformES2020:()=>transformES2020,transformES2021:()=>transformES2021,transformES5:()=>transformES5,transformESDecorators:()=>transformESDecorators,transformESNext:()=>transformESNext,transformGenerators:()=>transformGenerators,transformJsx:()=>transformJsx,transformLegacyDecorators:()=>transformLegacyDecorators,transformModule:()=>transformModule,transformNamedEvaluation:()=>transformNamedEvaluation,transformNodeModule:()=>transformNodeModule,transformNodes:()=>transformNodes,transformSystemModule:()=>transformSystemModule,transformTypeScript:()=>transformTypeScript,transpile:()=>transpile,transpileModule:()=>transpileModule,transpileOptionValueCompilerOptions:()=>transpileOptionValueCompilerOptions,trimString:()=>Ud,trimStringEnd:()=>n_,trimStringStart:()=>gl,tryAddToSet:()=>Q5,tryAndIgnoreErrors:()=>tryAndIgnoreErrors,tryCast:()=>On,tryDirectoryExists:()=>tryDirectoryExists,tryExtractTSExtension:()=>$N,tryFileExists:()=>tryFileExists,tryGetClassExtendingExpressionWithTypeArguments:()=>dS,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>mS,tryGetDirectories:()=>tryGetDirectories,tryGetExtensionFromPath:()=>X2,tryGetImportFromModuleSpecifier:()=>fT,tryGetJSDocSatisfiesTypeNode:()=>ux,tryGetModuleNameFromFile:()=>L8,tryGetModuleSpecifierFromDeclaration:()=>fI,tryGetNativePerformanceHooks:()=>hE,tryGetPropertyAccessOrIdentifierToString:()=>J0,tryGetPropertyNameOfBindingOrAssignmentElement:()=>R8,tryGetSourceMappingURL:()=>tryGetSourceMappingURL,tryGetTextOfPropertyName:()=>Qg,tryIOAndConsumeErrors:()=>tryIOAndConsumeErrors,tryParsePattern:()=>YS,tryParsePatterns:()=>LM,tryParseRawSourceMap:()=>tryParseRawSourceMap,tryReadDirectory:()=>tryReadDirectory,tryReadFile:()=>tryReadFile,tryRemoveDirectoryPrefix:()=>SM,tryRemoveExtension:()=>$S,tryRemovePrefix:()=>Bv,tryRemoveSuffix:()=>QC,typeAcquisitionDeclarations:()=>typeAcquisitionDeclarations,typeAliasNamePart:()=>typeAliasNamePart,typeDirectiveIsEqualTo:()=>iD,typeKeywords:()=>typeKeywords,typeParameterNamePart:()=>typeParameterNamePart,typeReferenceResolutionNameAndModeGetter:()=>typeReferenceResolutionNameAndModeGetter,typeToDisplayParts:()=>typeToDisplayParts,unchangedPollThresholds:()=>unchangedPollThresholds,unchangedTextChangeRange:()=>Vg,unescapeLeadingUnderscores:()=>Vo,unmangleScopedPackageName:()=>unmangleScopedPackageName,unorderedRemoveItem:()=>jv,unorderedRemoveItemAt:()=>cg,unreachableCodeIsError:()=>tM,unusedLabelIsError:()=>rM,unwrapInnermostStatementOfLabel:()=>bP,updateErrorForNoInputFiles:()=>updateErrorForNoInputFiles,updateLanguageServiceSourceFile:()=>u7,updateMissingFilePathsWatch:()=>updateMissingFilePathsWatch,updatePackageJsonWatch:()=>updatePackageJsonWatch,updateResolutionField:()=>updateResolutionField,updateSharedExtendedConfigFileWatcher:()=>updateSharedExtendedConfigFileWatcher,updateSourceFile:()=>q6,updateWatchingWildcardDirectories:()=>updateWatchingWildcardDirectories,usesExtensionsOnImports:()=>XS,usingSingleLineStringWriter:()=>Xk,utf16EncodeAsString:()=>Nf,validateLocaleAndSetLanguage:()=>sA,valuesHelper:()=>valuesHelper,version:()=>Hf,versionMajorMinor:()=>gv,visitArray:()=>visitArray,visitCommaListElements:()=>visitCommaListElements,visitEachChild:()=>visitEachChild,visitFunctionBody:()=>visitFunctionBody,visitIterationBody:()=>visitIterationBody,visitLexicalEnvironment:()=>visitLexicalEnvironment,visitNode:()=>visitNode,visitNodes:()=>visitNodes2,visitParameterList:()=>visitParameterList,walkUpBindingElementsAndPatterns:()=>D4,walkUpLexicalEnvironments:()=>walkUpLexicalEnvironments,walkUpOuterExpressions:()=>OR,walkUpParenthesizedExpressions:()=>xT,walkUpParenthesizedTypes:()=>kI,walkUpParenthesizedTypesAndGetParentAndChild:()=>DI,whitespaceOrMapCommentRegExp:()=>whitespaceOrMapCommentRegExp,writeCommentRange:()=>NN,writeFile:()=>vN,writeFileEnsuringDirectories:()=>TN,zipToModeAwareCache:()=>zipToModeAwareCache,zipWith:()=>ey});var hv=Vt({"src/typescript/_namespaces/ts.ts"(){"use strict";Dr(),Z8(),C7(),kB()}}),DB=I5({"src/typescript/typescript.ts"(e,t){hv(),hv(),typeof console<"u"&&(N.loggingHost={log(r,a){switch(r){case 1:return console.error(a);case 2:return console.warn(a);case 3:return console.log(a);case 4:return console.log(a)}}}),t.exports=E7}});A7.exports=DB()});var V6=ut(k7=>{k7.typescriptVersionIsAtLeast=new Proxy({},{get:()=>!0})});var H6=ut(ai=>{"use strict";var PB=ai&&ai.__createBinding||(Object.create?function(e,t,r,a){a===void 0&&(a=r);var _=Object.getOwnPropertyDescriptor(t,r);(!_||("get"in _?!t.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,_)}:function(e,t,r,a){a===void 0&&(a=r),e[a]=t[r]}),IB=ai&&ai.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),NB=ai&&ai.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&PB(t,e,r);return IB(t,e),t};Object.defineProperty(ai,"__esModule",{value:!0});ai.getDecorators=ai.getModifiers=void 0;var W_=NB(Dt()),OB=V6(),D7=OB.typescriptVersionIsAtLeast["4.8"];function MB(e,t=!1){var r;if(e!=null){if(D7){if(t||W_.canHaveModifiers(e)){let a=W_.getModifiers(e);return a?Array.from(a):void 0}return}return(r=e.modifiers)==null?void 0:r.filter(a=>!W_.isDecorator(a))}}ai.getModifiers=MB;function LB(e,t=!1){var r;if(e!=null){if(D7){if(t||W_.canHaveDecorators(e)){let a=W_.getDecorators(e);return a?Array.from(a):void 0}return}return(r=e.decorators)==null?void 0:r.filter(W_.isDecorator)}}ai.getDecorators=LB});var P7=ut(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});Fm.xhtmlEntities=void 0;Fm.xhtmlEntities={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}});var G6=ut(V_=>{"use strict";Object.defineProperty(V_,"__esModule",{value:!0});V_.AST_TOKEN_TYPES=V_.AST_NODE_TYPES=void 0;var I7;(function(e){e.AccessorProperty="AccessorProperty",e.ArrayExpression="ArrayExpression",e.ArrayPattern="ArrayPattern",e.ArrowFunctionExpression="ArrowFunctionExpression",e.AssignmentExpression="AssignmentExpression",e.AssignmentPattern="AssignmentPattern",e.AwaitExpression="AwaitExpression",e.BinaryExpression="BinaryExpression",e.BlockStatement="BlockStatement",e.BreakStatement="BreakStatement",e.CallExpression="CallExpression",e.CatchClause="CatchClause",e.ChainExpression="ChainExpression",e.ClassBody="ClassBody",e.ClassDeclaration="ClassDeclaration",e.ClassExpression="ClassExpression",e.ConditionalExpression="ConditionalExpression",e.ContinueStatement="ContinueStatement",e.DebuggerStatement="DebuggerStatement",e.Decorator="Decorator",e.DoWhileStatement="DoWhileStatement",e.EmptyStatement="EmptyStatement",e.ExportAllDeclaration="ExportAllDeclaration",e.ExportDefaultDeclaration="ExportDefaultDeclaration",e.ExportNamedDeclaration="ExportNamedDeclaration",e.ExportSpecifier="ExportSpecifier",e.ExpressionStatement="ExpressionStatement",e.ForInStatement="ForInStatement",e.ForOfStatement="ForOfStatement",e.ForStatement="ForStatement",e.FunctionDeclaration="FunctionDeclaration",e.FunctionExpression="FunctionExpression",e.Identifier="Identifier",e.IfStatement="IfStatement",e.ImportAttribute="ImportAttribute",e.ImportDeclaration="ImportDeclaration",e.ImportDefaultSpecifier="ImportDefaultSpecifier",e.ImportExpression="ImportExpression",e.ImportNamespaceSpecifier="ImportNamespaceSpecifier",e.ImportSpecifier="ImportSpecifier",e.JSXAttribute="JSXAttribute",e.JSXClosingElement="JSXClosingElement",e.JSXClosingFragment="JSXClosingFragment",e.JSXElement="JSXElement",e.JSXEmptyExpression="JSXEmptyExpression",e.JSXExpressionContainer="JSXExpressionContainer",e.JSXFragment="JSXFragment",e.JSXIdentifier="JSXIdentifier",e.JSXMemberExpression="JSXMemberExpression",e.JSXNamespacedName="JSXNamespacedName",e.JSXOpeningElement="JSXOpeningElement",e.JSXOpeningFragment="JSXOpeningFragment",e.JSXSpreadAttribute="JSXSpreadAttribute",e.JSXSpreadChild="JSXSpreadChild",e.JSXText="JSXText",e.LabeledStatement="LabeledStatement",e.Literal="Literal",e.LogicalExpression="LogicalExpression",e.MemberExpression="MemberExpression",e.MetaProperty="MetaProperty",e.MethodDefinition="MethodDefinition",e.NewExpression="NewExpression",e.ObjectExpression="ObjectExpression",e.ObjectPattern="ObjectPattern",e.PrivateIdentifier="PrivateIdentifier",e.Program="Program",e.Property="Property",e.PropertyDefinition="PropertyDefinition",e.RestElement="RestElement",e.ReturnStatement="ReturnStatement",e.SequenceExpression="SequenceExpression",e.SpreadElement="SpreadElement",e.StaticBlock="StaticBlock",e.Super="Super",e.SwitchCase="SwitchCase",e.SwitchStatement="SwitchStatement",e.TaggedTemplateExpression="TaggedTemplateExpression",e.TemplateElement="TemplateElement",e.TemplateLiteral="TemplateLiteral",e.ThisExpression="ThisExpression",e.ThrowStatement="ThrowStatement",e.TryStatement="TryStatement",e.UnaryExpression="UnaryExpression",e.UpdateExpression="UpdateExpression",e.VariableDeclaration="VariableDeclaration",e.VariableDeclarator="VariableDeclarator",e.WhileStatement="WhileStatement",e.WithStatement="WithStatement",e.YieldExpression="YieldExpression",e.TSAbstractAccessorProperty="TSAbstractAccessorProperty",e.TSAbstractKeyword="TSAbstractKeyword",e.TSAbstractMethodDefinition="TSAbstractMethodDefinition",e.TSAbstractPropertyDefinition="TSAbstractPropertyDefinition",e.TSAnyKeyword="TSAnyKeyword",e.TSArrayType="TSArrayType",e.TSAsExpression="TSAsExpression",e.TSAsyncKeyword="TSAsyncKeyword",e.TSBigIntKeyword="TSBigIntKeyword",e.TSBooleanKeyword="TSBooleanKeyword",e.TSCallSignatureDeclaration="TSCallSignatureDeclaration",e.TSClassImplements="TSClassImplements",e.TSConditionalType="TSConditionalType",e.TSConstructorType="TSConstructorType",e.TSConstructSignatureDeclaration="TSConstructSignatureDeclaration",e.TSDeclareFunction="TSDeclareFunction",e.TSDeclareKeyword="TSDeclareKeyword",e.TSEmptyBodyFunctionExpression="TSEmptyBodyFunctionExpression",e.TSEnumDeclaration="TSEnumDeclaration",e.TSEnumMember="TSEnumMember",e.TSExportAssignment="TSExportAssignment",e.TSExportKeyword="TSExportKeyword",e.TSExternalModuleReference="TSExternalModuleReference",e.TSFunctionType="TSFunctionType",e.TSInstantiationExpression="TSInstantiationExpression",e.TSImportEqualsDeclaration="TSImportEqualsDeclaration",e.TSImportType="TSImportType",e.TSIndexedAccessType="TSIndexedAccessType",e.TSIndexSignature="TSIndexSignature",e.TSInferType="TSInferType",e.TSInterfaceBody="TSInterfaceBody",e.TSInterfaceDeclaration="TSInterfaceDeclaration",e.TSInterfaceHeritage="TSInterfaceHeritage",e.TSIntersectionType="TSIntersectionType",e.TSIntrinsicKeyword="TSIntrinsicKeyword",e.TSLiteralType="TSLiteralType",e.TSMappedType="TSMappedType",e.TSMethodSignature="TSMethodSignature",e.TSModuleBlock="TSModuleBlock",e.TSModuleDeclaration="TSModuleDeclaration",e.TSNamedTupleMember="TSNamedTupleMember",e.TSNamespaceExportDeclaration="TSNamespaceExportDeclaration",e.TSNeverKeyword="TSNeverKeyword",e.TSNonNullExpression="TSNonNullExpression",e.TSNullKeyword="TSNullKeyword",e.TSNumberKeyword="TSNumberKeyword",e.TSObjectKeyword="TSObjectKeyword",e.TSOptionalType="TSOptionalType",e.TSParameterProperty="TSParameterProperty",e.TSPrivateKeyword="TSPrivateKeyword",e.TSPropertySignature="TSPropertySignature",e.TSProtectedKeyword="TSProtectedKeyword",e.TSPublicKeyword="TSPublicKeyword",e.TSQualifiedName="TSQualifiedName",e.TSReadonlyKeyword="TSReadonlyKeyword",e.TSRestType="TSRestType",e.TSSatisfiesExpression="TSSatisfiesExpression",e.TSStaticKeyword="TSStaticKeyword",e.TSStringKeyword="TSStringKeyword",e.TSSymbolKeyword="TSSymbolKeyword",e.TSTemplateLiteralType="TSTemplateLiteralType",e.TSThisType="TSThisType",e.TSTupleType="TSTupleType",e.TSTypeAliasDeclaration="TSTypeAliasDeclaration",e.TSTypeAnnotation="TSTypeAnnotation",e.TSTypeAssertion="TSTypeAssertion",e.TSTypeLiteral="TSTypeLiteral",e.TSTypeOperator="TSTypeOperator",e.TSTypeParameter="TSTypeParameter",e.TSTypeParameterDeclaration="TSTypeParameterDeclaration",e.TSTypeParameterInstantiation="TSTypeParameterInstantiation",e.TSTypePredicate="TSTypePredicate",e.TSTypeQuery="TSTypeQuery",e.TSTypeReference="TSTypeReference",e.TSUndefinedKeyword="TSUndefinedKeyword",e.TSUnionType="TSUnionType",e.TSUnknownKeyword="TSUnknownKeyword",e.TSVoidKeyword="TSVoidKeyword"})(I7||(V_.AST_NODE_TYPES=I7={}));var N7;(function(e){e.Boolean="Boolean",e.Identifier="Identifier",e.JSXIdentifier="JSXIdentifier",e.JSXText="JSXText",e.Keyword="Keyword",e.Null="Null",e.Numeric="Numeric",e.Punctuator="Punctuator",e.RegularExpression="RegularExpression",e.String="String",e.Template="Template",e.Block="Block",e.Line="Line"})(N7||(V_.AST_TOKEN_TYPES=N7={}))});var M7=ut(O7=>{"use strict";Object.defineProperty(O7,"__esModule",{value:!0})});var J7=ut(L7=>{"use strict";Object.defineProperty(L7,"__esModule",{value:!0})});var R7=ut(Ki=>{"use strict";var JB=Ki&&Ki.__createBinding||(Object.create?function(e,t,r,a){a===void 0&&(a=r);var _=Object.getOwnPropertyDescriptor(t,r);(!_||("get"in _?!t.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,_)}:function(e,t,r,a){a===void 0&&(a=r),e[a]=t[r]}),RB=Ki&&Ki.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),jB=Ki&&Ki.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&JB(t,e,r);return RB(t,e),t};Object.defineProperty(Ki,"__esModule",{value:!0});Ki.TSESTree=void 0;Ki.TSESTree=jB(G6())});var F7=ut(jn=>{"use strict";var FB=jn&&jn.__createBinding||(Object.create?function(e,t,r,a){a===void 0&&(a=r);var _=Object.getOwnPropertyDescriptor(t,r);(!_||("get"in _?!t.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,_)}:function(e,t,r,a){a===void 0&&(a=r),e[a]=t[r]}),X6=jn&&jn.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&FB(t,e,r)};Object.defineProperty(jn,"__esModule",{value:!0});jn.AST_TOKEN_TYPES=jn.AST_NODE_TYPES=void 0;var j7=G6();Object.defineProperty(jn,"AST_NODE_TYPES",{enumerable:!0,get:function(){return j7.AST_NODE_TYPES}});Object.defineProperty(jn,"AST_TOKEN_TYPES",{enumerable:!0,get:function(){return j7.AST_TOKEN_TYPES}});X6(M7(),jn);X6(J7(),jn);X6(R7(),jn)});var U7=ut(B7=>{"use strict";Object.defineProperty(B7,"__esModule",{value:!0})});var z7=ut(q7=>{"use strict";Object.defineProperty(q7,"__esModule",{value:!0})});var Bm=ut(hn=>{"use strict";var BB=hn&&hn.__createBinding||(Object.create?function(e,t,r,a){a===void 0&&(a=r);var _=Object.getOwnPropertyDescriptor(t,r);(!_||("get"in _?!t.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,_)}:function(e,t,r,a){a===void 0&&(a=r),e[a]=t[r]}),W7=hn&&hn.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&BB(t,e,r)};Object.defineProperty(hn,"__esModule",{value:!0});hn.TSESTree=hn.AST_TOKEN_TYPES=hn.AST_NODE_TYPES=void 0;var $6=F7();Object.defineProperty(hn,"AST_NODE_TYPES",{enumerable:!0,get:function(){return $6.AST_NODE_TYPES}});Object.defineProperty(hn,"AST_TOKEN_TYPES",{enumerable:!0,get:function(){return $6.AST_TOKEN_TYPES}});Object.defineProperty(hn,"TSESTree",{enumerable:!0,get:function(){return $6.TSESTree}});W7(U7(),hn);W7(z7(),hn)});var zm=ut(me=>{"use strict";var UB=me&&me.__createBinding||(Object.create?function(e,t,r,a){a===void 0&&(a=r);var _=Object.getOwnPropertyDescriptor(t,r);(!_||("get"in _?!t.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,_)}:function(e,t,r,a){a===void 0&&(a=r),e[a]=t[r]}),qB=me&&me.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),zB=me&&me.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&UB(t,e,r);return qB(t,e),t};Object.defineProperty(me,"__esModule",{value:!0});me.getNamespaceModifiers=me.nodeCanBeDecorated=me.getContainingFunction=me.nodeIsPresent=me.isThisInTypeQuery=me.isThisIdentifier=me.identifierIsThisKeyword=me.firstDefined=me.nodeHasTokens=me.nodeHasIllegalDecorators=me.createError=me.TSError=me.convertTokens=me.convertToken=me.getTokenType=me.isChildUnwrappableOptionalChain=me.isChainExpression=me.isOptional=me.isComputedProperty=me.unescapeStringLiteralText=me.hasJSXAncestor=me.findFirstMatchingAncestor=me.findNextToken=me.getTSNodeAccessibility=me.getDeclarationKind=me.isJSXToken=me.getRange=me.canContainDirective=me.getLocFor=me.getLineAndCharacterFor=me.getBinaryExpressionType=me.isComment=me.isComma=me.getLastModifier=me.hasModifier=me.isESTreeClassMember=me.getTextForTokenKind=me.isESTreeBinaryOperator=me.isLogicalOperator=void 0;var Qe=zB(Dt()),uu=H6(),WB=P7(),ir=Bm(),VB=V6(),V7=VB.typescriptVersionIsAtLeast["5.0"],ye=Qe.SyntaxKind,HB=new Set([ye.BarBarToken,ye.AmpersandAmpersandToken,ye.QuestionQuestionToken]),GB=new Set([Qe.SyntaxKind.EqualsToken,Qe.SyntaxKind.PlusEqualsToken,Qe.SyntaxKind.MinusEqualsToken,Qe.SyntaxKind.AsteriskEqualsToken,Qe.SyntaxKind.AsteriskAsteriskEqualsToken,Qe.SyntaxKind.SlashEqualsToken,Qe.SyntaxKind.PercentEqualsToken,Qe.SyntaxKind.LessThanLessThanEqualsToken,Qe.SyntaxKind.GreaterThanGreaterThanEqualsToken,Qe.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken,Qe.SyntaxKind.AmpersandEqualsToken,Qe.SyntaxKind.BarEqualsToken,Qe.SyntaxKind.BarBarEqualsToken,Qe.SyntaxKind.AmpersandAmpersandEqualsToken,Qe.SyntaxKind.QuestionQuestionEqualsToken,Qe.SyntaxKind.CaretEqualsToken]),XB=new Set([ye.InstanceOfKeyword,ye.InKeyword,ye.AsteriskAsteriskToken,ye.AsteriskToken,ye.SlashToken,ye.PercentToken,ye.PlusToken,ye.MinusToken,ye.AmpersandToken,ye.BarToken,ye.CaretToken,ye.LessThanLessThanToken,ye.GreaterThanGreaterThanToken,ye.GreaterThanGreaterThanGreaterThanToken,ye.AmpersandAmpersandToken,ye.BarBarToken,ye.LessThanToken,ye.LessThanEqualsToken,ye.GreaterThanToken,ye.GreaterThanEqualsToken,ye.EqualsEqualsToken,ye.EqualsEqualsEqualsToken,ye.ExclamationEqualsEqualsToken,ye.ExclamationEqualsToken]);function $B(e){return GB.has(e.kind)}function H7(e){return HB.has(e.kind)}me.isLogicalOperator=H7;function G7(e){return XB.has(e.kind)}me.isESTreeBinaryOperator=G7;function Um(e){return Qe.tokenToString(e)}me.getTextForTokenKind=Um;function QB(e){return e.kind!==ye.SemicolonClassElement}me.isESTreeClassMember=QB;function X7(e,t){let r=(0,uu.getModifiers)(t);return(r==null?void 0:r.some(a=>a.kind===e))===!0}me.hasModifier=X7;function YB(e){let t=(0,uu.getModifiers)(e);return t==null?null:t[t.length-1]??null}me.getLastModifier=YB;function KB(e){return e.kind===ye.CommaToken}me.isComma=KB;function $7(e){return e.kind===ye.SingleLineCommentTrivia||e.kind===ye.MultiLineCommentTrivia}me.isComment=$7;function ZB(e){return e.kind===ye.JSDocComment}function eU(e){if($B(e))return{type:ir.AST_NODE_TYPES.AssignmentExpression,operator:Um(e.kind)};if(H7(e))return{type:ir.AST_NODE_TYPES.LogicalExpression,operator:Um(e.kind)};if(G7(e))return{type:ir.AST_NODE_TYPES.BinaryExpression,operator:Um(e.kind)};throw new Error(`Unexpected binary operator ${Qe.tokenToString(e.kind)}`)}me.getBinaryExpressionType=eU;function Q7(e,t){let r=t.getLineAndCharacterOfPosition(e);return{line:r.line+1,column:r.character}}me.getLineAndCharacterFor=Q7;function Y7(e,t){let[r,a]=e.map(_=>Q7(_,t));return{start:r,end:a}}me.getLocFor=Y7;function tU(e){if(e.kind===Qe.SyntaxKind.Block)switch(e.parent.kind){case Qe.SyntaxKind.Constructor:case Qe.SyntaxKind.GetAccessor:case Qe.SyntaxKind.SetAccessor:case Qe.SyntaxKind.ArrowFunction:case Qe.SyntaxKind.FunctionExpression:case Qe.SyntaxKind.FunctionDeclaration:case Qe.SyntaxKind.MethodDeclaration:return!0;default:return!1}return!0}me.canContainDirective=tU;function rU(e,t){return[e.getStart(t),e.getEnd()]}me.getRange=rU;function nU(e){return e.kind>=ye.FirstToken&&e.kind<=ye.LastToken}function Q6(e){return e.kind>=ye.JsxElement&&e.kind<=ye.JsxAttribute}me.isJSXToken=Q6;function iU(e){return e.flags&Qe.NodeFlags.Let?"let":(e.flags&Qe.NodeFlags.AwaitUsing)===Qe.NodeFlags.AwaitUsing?"await using":e.flags&Qe.NodeFlags.Const?"const":e.flags&Qe.NodeFlags.Using?"using":"var"}me.getDeclarationKind=iU;function aU(e){let t=(0,uu.getModifiers)(e);if(t!=null)for(let r of t)switch(r.kind){case ye.PublicKeyword:return"public";case ye.ProtectedKeyword:return"protected";case ye.PrivateKeyword:return"private";default:break}}me.getTSNodeAccessibility=aU;function oU(e,t,r){return a(t);function a(_){return Qe.isToken(_)&&_.pos===e.end?_:iw(_.getChildren(r),p=>(p.pos<=e.pos&&p.end>e.end||p.pos===e.end)&&nw(p,r)?a(p):void 0)}}me.findNextToken=oU;function K7(e,t){for(;e;){if(t(e))return e;e=e.parent}}me.findFirstMatchingAncestor=K7;function Z7(e){return!!K7(e,Q6)}me.hasJSXAncestor=Z7;function sU(e){return e.replace(/&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g,t=>{let r=t.slice(1,-1);if(r[0]==="#"){let a=r[1]==="x"?parseInt(r.slice(2),16):parseInt(r.slice(1),10);return a>1114111?t:String.fromCodePoint(a)}return WB.xhtmlEntities[r]||t})}me.unescapeStringLiteralText=sU;function _U(e){return e.kind===ye.ComputedPropertyName}me.isComputedProperty=_U;function cU(e){return e.questionToken?e.questionToken.kind===ye.QuestionToken:!1}me.isOptional=cU;function ew(e){return e.type===ir.AST_NODE_TYPES.ChainExpression}me.isChainExpression=ew;function lU(e,t){return ew(t)&&e.expression.kind!==Qe.SyntaxKind.ParenthesizedExpression}me.isChildUnwrappableOptionalChain=lU;function tw(e){let t;if(V7&&e.kind===ye.Identifier?t=Qe.identifierToKeywordKind(e):"originalKeywordKind"in e&&(t=e.originalKeywordKind),t)return t===ye.NullKeyword?ir.AST_TOKEN_TYPES.Null:t>=ye.FirstFutureReservedWord&&t<=ye.LastKeyword?ir.AST_TOKEN_TYPES.Identifier:ir.AST_TOKEN_TYPES.Keyword;if(e.kind>=ye.FirstKeyword&&e.kind<=ye.LastFutureReservedWord)return e.kind===ye.FalseKeyword||e.kind===ye.TrueKeyword?ir.AST_TOKEN_TYPES.Boolean:ir.AST_TOKEN_TYPES.Keyword;if(e.kind>=ye.FirstPunctuation&&e.kind<=ye.LastPunctuation)return ir.AST_TOKEN_TYPES.Punctuator;if(e.kind>=ye.NoSubstitutionTemplateLiteral&&e.kind<=ye.TemplateTail)return ir.AST_TOKEN_TYPES.Template;switch(e.kind){case ye.NumericLiteral:return ir.AST_TOKEN_TYPES.Numeric;case ye.JsxText:return ir.AST_TOKEN_TYPES.JSXText;case ye.StringLiteral:return e.parent.kind===ye.JsxAttribute||e.parent.kind===ye.JsxElement?ir.AST_TOKEN_TYPES.JSXText:ir.AST_TOKEN_TYPES.String;case ye.RegularExpressionLiteral:return ir.AST_TOKEN_TYPES.RegularExpression;case ye.Identifier:case ye.ConstructorKeyword:case ye.GetKeyword:case ye.SetKeyword:default:}return e.kind===ye.Identifier&&(Q6(e.parent)||e.parent.kind===ye.PropertyAccessExpression&&Z7(e))?ir.AST_TOKEN_TYPES.JSXIdentifier:ir.AST_TOKEN_TYPES.Identifier}me.getTokenType=tw;function rw(e,t){let r=e.kind===ye.JsxText?e.getFullStart():e.getStart(t),a=e.getEnd(),_=t.text.slice(r,a),p=tw(e),d=[r,a],h=Y7(d,t);return p===ir.AST_TOKEN_TYPES.RegularExpression?{type:p,value:_,range:d,loc:h,regex:{pattern:_.slice(1,_.lastIndexOf("/")),flags:_.slice(_.lastIndexOf("/")+1)}}:{type:p,value:_,range:d,loc:h}}me.convertToken=rw;function uU(e){let t=[];function r(a){if(!($7(a)||ZB(a)))if(nU(a)&&a.kind!==ye.EndOfFileToken){let _=rw(a,e);_&&t.push(_)}else a.getChildren(e).forEach(r)}return r(e),t}me.convertTokens=uU;var qm=class extends Error{constructor(t,r,a){super(t),this.fileName=r,this.location=a,Object.defineProperty(this,"name",{value:new.target.name,enumerable:!1,configurable:!0})}get index(){return this.location.start.offset}get lineNumber(){return this.location.start.line}get column(){return this.location.start.column}};me.TSError=qm;function pU(e,t,r,a=r){let[_,p]=[r,a].map(d=>{let{line:h,character:l}=t.getLineAndCharacterOfPosition(d);return{line:h+1,column:l,offset:d}});return new qm(e,t.fileName,{start:_,end:p})}me.createError=pU;function fU(e){var t;return!!("illegalDecorators"in e&&((t=e.illegalDecorators)!=null&&t.length))}me.nodeHasIllegalDecorators=fU;function nw(e,t){return e.kind===ye.EndOfFileToken?!!e.jsDoc:e.getWidth(t)!==0}me.nodeHasTokens=nw;function iw(e,t){if(e!==void 0)for(let r=0;r=0&&e.kind!==ye.EndOfFileToken}function hU(e){return!mU(e)}me.nodeIsPresent=hU;function yU(e){return Qe.findAncestor(e.parent,Qe.isFunctionLike)}me.getContainingFunction=yU;function gU(e){return X7(ye.AbstractKeyword,e)}function bU(e){if(e.parameters.length&&!Qe.isJSDocSignature(e)){let t=e.parameters[0];if(vU(t))return t}return null}function vU(e){return Y6(e.name)}function TU(e){switch(e.kind){case ye.ClassDeclaration:return!0;case ye.ClassExpression:return!0;case ye.PropertyDeclaration:{let{parent:t}=e;return!!(Qe.isClassDeclaration(t)||Qe.isClassLike(t)&&!gU(e))}case ye.GetAccessor:case ye.SetAccessor:case ye.MethodDeclaration:{let{parent:t}=e;return!!e.body&&(Qe.isClassDeclaration(t)||Qe.isClassLike(t))}case ye.Parameter:{let{parent:t}=e,r=t.parent;return!!t&&"body"in t&&!!t.body&&(t.kind===ye.Constructor||t.kind===ye.MethodDeclaration||t.kind===ye.SetAccessor)&&bU(t)!==e&&!!r&&r.kind===ye.ClassDeclaration}}return!1}me.nodeCanBeDecorated=TU;function SU(e){let t=(0,uu.getModifiers)(e),r=e;for(;(!t||t.length===0)&&Qe.isModuleDeclaration(r.parent)&&r.parent.name;){let a=(0,uu.getModifiers)(r.parent);a&&(a==null?void 0:a.length)>0&&(t=a),r=r.parent}return t}me.getNamespaceModifiers=SU});var Z6=ut(yn=>{"use strict";var xU=yn&&yn.__createBinding||(Object.create?function(e,t,r,a){a===void 0&&(a=r);var _=Object.getOwnPropertyDescriptor(t,r);(!_||("get"in _?!t.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,_)}:function(e,t,r,a){a===void 0&&(a=r),e[a]=t[r]}),wU=yn&&yn.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),CU=yn&&yn.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&xU(t,e,r);return wU(t,e),t},Ne=yn&&yn.__classPrivateFieldGet||function(e,t,r,a){if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?a:r==="a"?a.call(e):a?a.value:t.get(e)},Pe,ow,br,oi,st;Object.defineProperty(yn,"__esModule",{value:!0});yn.Converter=yn.convertError=void 0;var _t=CU(Dt()),Zi=H6(),pe=zm(),J=Bm(),E=_t.SyntaxKind;function EU(e){return(0,pe.createError)("message"in e&&e.message||e.messageText,e.file,e.start)}yn.convertError=EU;var K6=class{constructor(t,r){Pe.add(this),this.esTreeNodeToTSNodeMap=new WeakMap,this.tsNodeToESTreeNodeMap=new WeakMap,this.allowPattern=!1,this.ast=t,this.options={...r}}getASTMaps(){return{esTreeNodeToTSNodeMap:this.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:this.tsNodeToESTreeNodeMap}}convertProgram(){return this.converter(this.ast)}converter(t,r,a){if(!t)return null;Ne(this,Pe,"m",ow).call(this,t);let _=this.allowPattern;a!==void 0&&(this.allowPattern=a);let p=this.convertNode(t,r??t.parent);return this.registerTSNodeInNodeMap(t,p),this.allowPattern=_,p}fixExports(t,r){let _=_t.isModuleDeclaration(t)&&!!(t.flags&_t.NodeFlags.Namespace)?(0,pe.getNamespaceModifiers)(t):(0,Zi.getModifiers)(t);if((_==null?void 0:_[0].kind)===E.ExportKeyword){this.registerTSNodeInNodeMap(t,r);let p=_[0],d=_[1],h=(d==null?void 0:d.kind)===E.DefaultKeyword,l=h?(0,pe.findNextToken)(d,this.ast,this.ast):(0,pe.findNextToken)(p,this.ast,this.ast);if(r.range[0]=l.getStart(this.ast),r.loc=(0,pe.getLocFor)(r.range,this.ast),h)return this.createNode(t,{type:J.AST_NODE_TYPES.ExportDefaultDeclaration,declaration:r,range:[p.getStart(this.ast),r.range[1]],exportKind:"value"});let v=r.type===J.AST_NODE_TYPES.TSInterfaceDeclaration||r.type===J.AST_NODE_TYPES.TSTypeAliasDeclaration,y="declare"in r&&r.declare===!0;return this.createNode(t,{type:J.AST_NODE_TYPES.ExportNamedDeclaration,declaration:r,specifiers:[],source:null,exportKind:v||y?"type":"value",range:[p.getStart(this.ast),r.range[1]],assertions:[]})}return r}registerTSNodeInNodeMap(t,r){r&&this.options.shouldPreserveNodeMaps&&(this.tsNodeToESTreeNodeMap.has(t)||this.tsNodeToESTreeNodeMap.set(t,r))}convertPattern(t,r){return this.converter(t,r,!0)}convertChild(t,r){return this.converter(t,r,!1)}createNode(t,r){let a=r;return a.range??(a.range=(0,pe.getRange)(t,this.ast)),a.loc??(a.loc=(0,pe.getLocFor)(a.range,this.ast)),a&&this.options.shouldPreserveNodeMaps&&this.esTreeNodeToTSNodeMap.set(a,t),a}convertBindingNameWithTypeAnnotation(t,r,a){let _=this.convertPattern(t);return r&&(_.typeAnnotation=this.convertTypeAnnotation(r,a),this.fixParentLocation(_,_.typeAnnotation.range)),_}convertTypeAnnotation(t,r){let a=(r==null?void 0:r.kind)===E.FunctionType||(r==null?void 0:r.kind)===E.ConstructorType?2:1,p=[t.getFullStart()-a,t.end],d=(0,pe.getLocFor)(p,this.ast);return{type:J.AST_NODE_TYPES.TSTypeAnnotation,loc:d,range:p,typeAnnotation:this.convertChild(t)}}convertBodyExpressions(t,r){let a=(0,pe.canContainDirective)(r);return t.map(_=>{let p=this.convertChild(_);if(a){if(p!=null&&p.expression&&_t.isExpressionStatement(_)&&_t.isStringLiteral(_.expression)){let d=p.expression.raw;return p.directive=d.slice(1,-1),p}a=!1}return p}).filter(_=>_)}convertTypeArgumentsToTypeParameterInstantiation(t,r){let a=(0,pe.findNextToken)(t,this.ast,this.ast);return this.createNode(r,{type:J.AST_NODE_TYPES.TSTypeParameterInstantiation,range:[t.pos-1,a.end],params:t.map(_=>this.convertChild(_))})}convertTSTypeParametersToTypeParametersDeclaration(t){let r=(0,pe.findNextToken)(t,this.ast,this.ast),a=[t.pos-1,r.end];return{type:J.AST_NODE_TYPES.TSTypeParameterDeclaration,range:a,loc:(0,pe.getLocFor)(a,this.ast),params:t.map(_=>this.convertChild(_))}}convertParameters(t){return t!=null&&t.length?t.map(r=>{var _;let a=this.convertChild(r);return a.decorators=((_=(0,Zi.getDecorators)(r))==null?void 0:_.map(p=>this.convertChild(p)))??[],a}):[]}convertChainExpression(t,r){let{child:a,isOptional:_}=(()=>t.type===J.AST_NODE_TYPES.MemberExpression?{child:t.object,isOptional:t.optional}:t.type===J.AST_NODE_TYPES.CallExpression?{child:t.callee,isOptional:t.optional}:{child:t.expression,isOptional:!1})(),p=(0,pe.isChildUnwrappableOptionalChain)(r,a);if(!p&&!_)return t;if(p&&(0,pe.isChainExpression)(a)){let d=a.expression;t.type===J.AST_NODE_TYPES.MemberExpression?t.object=d:t.type===J.AST_NODE_TYPES.CallExpression?t.callee=d:t.expression=d}return this.createNode(r,{type:J.AST_NODE_TYPES.ChainExpression,expression:t})}deeplyCopy(t){t.kind===_t.SyntaxKind.JSDocFunctionType&&Ne(this,Pe,"m",st).call(this,t,"JSDoc types can only be used inside documentation comments.");let r=`TS${E[t.kind]}`;if(this.options.errorOnUnknownASTType&&!J.AST_NODE_TYPES[r])throw new Error(`Unknown AST_NODE_TYPE: "${r}"`);let a=this.createNode(t,{type:r});"type"in t&&(a.typeAnnotation=t.type&&"kind"in t.type&&_t.isTypeNode(t.type)?this.convertTypeAnnotation(t.type,t):null),"typeArguments"in t&&(a.typeArguments=t.typeArguments&&"pos"in t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):null,Ne(this,Pe,"m",oi).call(this,a,"typeParameters","typeArguments")),"typeParameters"in t&&(a.typeParameters=t.typeParameters&&"pos"in t.typeParameters?this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters):null);let _=(0,Zi.getDecorators)(t);_!=null&&_.length&&(a.decorators=_.map(d=>this.convertChild(d)));let p=new Set(["_children","decorators","end","flags","illegalDecorators","heritageClauses","locals","localSymbol","jsDoc","kind","modifierFlagsCache","modifiers","nextContainer","parent","pos","symbol","transformFlags","type","typeArguments","typeParameters"]);return Object.entries(t).filter(([d])=>!p.has(d)).forEach(([d,h])=>{Array.isArray(h)?a[d]=h.map(l=>this.convertChild(l)):h&&typeof h=="object"&&h.kind?a[d]=this.convertChild(h):a[d]=h}),a}convertJSXIdentifier(t){let r=this.createNode(t,{type:J.AST_NODE_TYPES.JSXIdentifier,name:t.getText()});return this.registerTSNodeInNodeMap(t,r),r}convertJSXNamespaceOrIdentifier(t){if(t.kind===_t.SyntaxKind.JsxNamespacedName){let _=this.createNode(t,{type:J.AST_NODE_TYPES.JSXNamespacedName,namespace:this.createNode(t.namespace,{type:J.AST_NODE_TYPES.JSXIdentifier,name:t.namespace.text}),name:this.createNode(t.name,{type:J.AST_NODE_TYPES.JSXIdentifier,name:t.name.text})});return this.registerTSNodeInNodeMap(t,_),_}let r=t.getText(),a=r.indexOf(":");if(a>0){let _=(0,pe.getRange)(t,this.ast),p=this.createNode(t,{type:J.AST_NODE_TYPES.JSXNamespacedName,namespace:this.createNode(t,{type:J.AST_NODE_TYPES.JSXIdentifier,name:r.slice(0,a),range:[_[0],_[0]+a]}),name:this.createNode(t,{type:J.AST_NODE_TYPES.JSXIdentifier,name:r.slice(a+1),range:[_[0]+a+1,_[1]]}),range:_});return this.registerTSNodeInNodeMap(t,p),p}return this.convertJSXIdentifier(t)}convertJSXTagName(t,r){let a;switch(t.kind){case E.PropertyAccessExpression:t.name.kind===E.PrivateIdentifier&&Ne(this,Pe,"m",st).call(this,t.name,"Non-private identifier expected."),a=this.createNode(t,{type:J.AST_NODE_TYPES.JSXMemberExpression,object:this.convertJSXTagName(t.expression,r),property:this.convertJSXIdentifier(t.name)});break;case E.ThisKeyword:case E.Identifier:default:return this.convertJSXNamespaceOrIdentifier(t)}return this.registerTSNodeInNodeMap(t,a),a}convertMethodSignature(t){return this.createNode(t,{type:J.AST_NODE_TYPES.TSMethodSignature,accessibility:(0,pe.getTSNodeAccessibility)(t),computed:(0,pe.isComputedProperty)(t.name),key:this.convertChild(t.name),kind:(()=>{switch(t.kind){case E.GetAccessor:return"get";case E.SetAccessor:return"set";case E.MethodSignature:return"method"}})(),optional:(0,pe.isOptional)(t),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),readonly:(0,pe.hasModifier)(E.ReadonlyKeyword,t),static:(0,pe.hasModifier)(E.StaticKeyword,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)})}convertAssertClasue(t){return t===void 0?[]:t.elements.map(r=>this.convertChild(r))}fixParentLocation(t,r){r[0]t.range[1]&&(t.range[1]=r[1],t.loc.end=(0,pe.getLineAndCharacterFor)(t.range[1],this.ast))}assertModuleSpecifier(t,r){var a;!r&&t.moduleSpecifier==null&&Ne(this,Pe,"m",br).call(this,t,"Module specifier must be a string literal."),t.moduleSpecifier&&((a=t.moduleSpecifier)==null?void 0:a.kind)!==E.StringLiteral&&Ne(this,Pe,"m",br).call(this,t.moduleSpecifier,"Module specifier must be a string literal.")}convertNode(t,r){var a,_,p,d,h;switch(t.kind){case E.SourceFile:return this.createNode(t,{type:J.AST_NODE_TYPES.Program,body:this.convertBodyExpressions(t.statements,t),comments:void 0,range:[t.getStart(this.ast),t.endOfFileToken.end],sourceType:t.externalModuleIndicator?"module":"script",tokens:void 0});case E.Block:return this.createNode(t,{type:J.AST_NODE_TYPES.BlockStatement,body:this.convertBodyExpressions(t.statements,t)});case E.Identifier:return(0,pe.isThisInTypeQuery)(t)?this.createNode(t,{type:J.AST_NODE_TYPES.ThisExpression}):this.createNode(t,{type:J.AST_NODE_TYPES.Identifier,decorators:[],name:t.text,optional:!1,typeAnnotation:void 0});case E.PrivateIdentifier:return this.createNode(t,{type:J.AST_NODE_TYPES.PrivateIdentifier,name:t.text.slice(1)});case E.WithStatement:return this.createNode(t,{type:J.AST_NODE_TYPES.WithStatement,object:this.convertChild(t.expression),body:this.convertChild(t.statement)});case E.ReturnStatement:return this.createNode(t,{type:J.AST_NODE_TYPES.ReturnStatement,argument:this.convertChild(t.expression)});case E.LabeledStatement:return this.createNode(t,{type:J.AST_NODE_TYPES.LabeledStatement,label:this.convertChild(t.label),body:this.convertChild(t.statement)});case E.ContinueStatement:return this.createNode(t,{type:J.AST_NODE_TYPES.ContinueStatement,label:this.convertChild(t.label)});case E.BreakStatement:return this.createNode(t,{type:J.AST_NODE_TYPES.BreakStatement,label:this.convertChild(t.label)});case E.IfStatement:return this.createNode(t,{type:J.AST_NODE_TYPES.IfStatement,test:this.convertChild(t.expression),consequent:this.convertChild(t.thenStatement),alternate:this.convertChild(t.elseStatement)});case E.SwitchStatement:return this.createNode(t,{type:J.AST_NODE_TYPES.SwitchStatement,discriminant:this.convertChild(t.expression),cases:t.caseBlock.clauses.map(l=>this.convertChild(l))});case E.CaseClause:case E.DefaultClause:return this.createNode(t,{type:J.AST_NODE_TYPES.SwitchCase,test:t.kind===E.CaseClause?this.convertChild(t.expression):null,consequent:t.statements.map(l=>this.convertChild(l))});case E.ThrowStatement:return t.expression.end===t.expression.pos&&Ne(this,Pe,"m",br).call(this,t,"A throw statement must throw an expression."),this.createNode(t,{type:J.AST_NODE_TYPES.ThrowStatement,argument:this.convertChild(t.expression)});case E.TryStatement:return this.createNode(t,{type:J.AST_NODE_TYPES.TryStatement,block:this.convertChild(t.tryBlock),handler:this.convertChild(t.catchClause),finalizer:this.convertChild(t.finallyBlock)});case E.CatchClause:return this.createNode(t,{type:J.AST_NODE_TYPES.CatchClause,param:t.variableDeclaration?this.convertBindingNameWithTypeAnnotation(t.variableDeclaration.name,t.variableDeclaration.type):null,body:this.convertChild(t.block)});case E.WhileStatement:return this.createNode(t,{type:J.AST_NODE_TYPES.WhileStatement,test:this.convertChild(t.expression),body:this.convertChild(t.statement)});case E.DoStatement:return this.createNode(t,{type:J.AST_NODE_TYPES.DoWhileStatement,test:this.convertChild(t.expression),body:this.convertChild(t.statement)});case E.ForStatement:return this.createNode(t,{type:J.AST_NODE_TYPES.ForStatement,init:this.convertChild(t.initializer),test:this.convertChild(t.condition),update:this.convertChild(t.incrementor),body:this.convertChild(t.statement)});case E.ForInStatement:return this.createNode(t,{type:J.AST_NODE_TYPES.ForInStatement,left:this.convertPattern(t.initializer),right:this.convertChild(t.expression),body:this.convertChild(t.statement)});case E.ForOfStatement:return this.createNode(t,{type:J.AST_NODE_TYPES.ForOfStatement,left:this.convertPattern(t.initializer),right:this.convertChild(t.expression),body:this.convertChild(t.statement),await:!!(t.awaitModifier&&t.awaitModifier.kind===E.AwaitKeyword)});case E.FunctionDeclaration:{let l=(0,pe.hasModifier)(E.DeclareKeyword,t),v=this.createNode(t,{type:l||!t.body?J.AST_NODE_TYPES.TSDeclareFunction:J.AST_NODE_TYPES.FunctionDeclaration,async:(0,pe.hasModifier)(E.AsyncKeyword,t),body:this.convertChild(t.body)||void 0,declare:l,expression:!1,generator:!!t.asteriskToken,id:this.convertChild(t.name),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,v)}case E.VariableDeclaration:return this.createNode(t,{type:J.AST_NODE_TYPES.VariableDeclarator,definite:!!t.exclamationToken,id:this.convertBindingNameWithTypeAnnotation(t.name,t.type,t),init:this.convertChild(t.initializer)});case E.VariableStatement:{let l=this.createNode(t,{type:J.AST_NODE_TYPES.VariableDeclaration,declarations:t.declarationList.declarations.map(v=>this.convertChild(v)),declare:(0,pe.hasModifier)(E.DeclareKeyword,t),kind:(0,pe.getDeclarationKind)(t.declarationList)});return l.declarations.length||Ne(this,Pe,"m",br).call(this,t,"A variable declaration list must have at least one variable declarator."),(l.kind==="using"||l.kind==="await using")&&t.declarationList.declarations.forEach((v,y)=>{l.declarations[y].init==null&&Ne(this,Pe,"m",st).call(this,v,`'${l.kind}' declarations must be initialized.`),l.declarations[y].id.type!==J.AST_NODE_TYPES.Identifier&&Ne(this,Pe,"m",st).call(this,v.name,`'${l.kind}' declarations may not have binding patterns.`)}),this.fixExports(t,l)}case E.VariableDeclarationList:{let l=this.createNode(t,{type:J.AST_NODE_TYPES.VariableDeclaration,declarations:t.declarations.map(v=>this.convertChild(v)),declare:!1,kind:(0,pe.getDeclarationKind)(t)});return(l.kind==="using"||l.kind==="await using")&&t.declarations.forEach((v,y)=>{l.declarations[y].init!=null&&Ne(this,Pe,"m",st).call(this,v,`'${l.kind}' declarations may not be initialized in for statement.`),l.declarations[y].id.type!==J.AST_NODE_TYPES.Identifier&&Ne(this,Pe,"m",st).call(this,v.name,`'${l.kind}' declarations may not have binding patterns.`)}),l}case E.ExpressionStatement:return this.createNode(t,{type:J.AST_NODE_TYPES.ExpressionStatement,directive:void 0,expression:this.convertChild(t.expression)});case E.ThisKeyword:return this.createNode(t,{type:J.AST_NODE_TYPES.ThisExpression});case E.ArrayLiteralExpression:return this.allowPattern?this.createNode(t,{type:J.AST_NODE_TYPES.ArrayPattern,decorators:[],elements:t.elements.map(l=>this.convertPattern(l)),optional:!1,typeAnnotation:void 0}):this.createNode(t,{type:J.AST_NODE_TYPES.ArrayExpression,elements:t.elements.map(l=>this.convertChild(l))});case E.ObjectLiteralExpression:{if(this.allowPattern)return this.createNode(t,{type:J.AST_NODE_TYPES.ObjectPattern,decorators:[],optional:!1,properties:t.properties.map(v=>this.convertPattern(v)),typeAnnotation:void 0});let l=[];for(let v of t.properties)(v.kind===E.GetAccessor||v.kind===E.SetAccessor||v.kind===E.MethodDeclaration)&&!v.body&&Ne(this,Pe,"m",br).call(this,v.end-1,"'{' expected."),l.push(this.convertChild(v));return this.createNode(t,{type:J.AST_NODE_TYPES.ObjectExpression,properties:l})}case E.PropertyAssignment:{let{questionToken:l,exclamationToken:v}=t;return l&&Ne(this,Pe,"m",st).call(this,l,"A property assignment cannot have a question token."),v&&Ne(this,Pe,"m",st).call(this,v,"A property assignment cannot have an exclamation token."),this.createNode(t,{type:J.AST_NODE_TYPES.Property,key:this.convertChild(t.name),value:this.converter(t.initializer,t,this.allowPattern),computed:(0,pe.isComputedProperty)(t.name),method:!1,optional:!1,shorthand:!1,kind:"init"})}case E.ShorthandPropertyAssignment:{let{modifiers:l,questionToken:v,exclamationToken:y}=t;return l&&Ne(this,Pe,"m",st).call(this,l[0],"A shorthand property assignment cannot have modifiers."),v&&Ne(this,Pe,"m",st).call(this,v,"A shorthand property assignment cannot have a question token."),y&&Ne(this,Pe,"m",st).call(this,y,"A shorthand property assignment cannot have an exclamation token."),t.objectAssignmentInitializer?this.createNode(t,{type:J.AST_NODE_TYPES.Property,key:this.convertChild(t.name),value:this.createNode(t,{type:J.AST_NODE_TYPES.AssignmentPattern,decorators:[],left:this.convertPattern(t.name),optional:!1,right:this.convertChild(t.objectAssignmentInitializer),typeAnnotation:void 0}),computed:!1,method:!1,optional:!1,shorthand:!0,kind:"init"}):this.createNode(t,{type:J.AST_NODE_TYPES.Property,computed:!1,key:this.convertChild(t.name),kind:"init",method:!1,optional:!1,shorthand:!0,value:this.convertChild(t.name)})}case E.ComputedPropertyName:return this.convertChild(t.expression);case E.PropertyDeclaration:{let l=(0,pe.hasModifier)(E.AbstractKeyword,t);l&&t.initializer&&Ne(this,Pe,"m",st).call(this,t.initializer,"Abstract property cannot have an initializer.");let v=(0,pe.hasModifier)(E.AccessorKeyword,t),y=(()=>v?l?J.AST_NODE_TYPES.TSAbstractAccessorProperty:J.AST_NODE_TYPES.AccessorProperty:l?J.AST_NODE_TYPES.TSAbstractPropertyDefinition:J.AST_NODE_TYPES.PropertyDefinition)(),C=this.convertChild(t.name);return this.createNode(t,{type:y,key:C,accessibility:(0,pe.getTSNodeAccessibility)(t),value:l?null:this.convertChild(t.initializer),computed:(0,pe.isComputedProperty)(t.name),static:(0,pe.hasModifier)(E.StaticKeyword,t),readonly:(0,pe.hasModifier)(E.ReadonlyKeyword,t),decorators:((a=(0,Zi.getDecorators)(t))==null?void 0:a.map(S=>this.convertChild(S)))??[],declare:(0,pe.hasModifier)(E.DeclareKeyword,t),override:(0,pe.hasModifier)(E.OverrideKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t),optional:(C.type===J.AST_NODE_TYPES.Literal||t.name.kind===E.Identifier||t.name.kind===E.ComputedPropertyName||t.name.kind===E.PrivateIdentifier)&&!!t.questionToken,definite:!!t.exclamationToken})}case E.GetAccessor:case E.SetAccessor:if(t.parent.kind===E.InterfaceDeclaration||t.parent.kind===E.TypeLiteral)return this.convertMethodSignature(t);case E.MethodDeclaration:{let l=this.createNode(t,{type:t.body?J.AST_NODE_TYPES.FunctionExpression:J.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,id:null,generator:!!t.asteriskToken,expression:!1,async:(0,pe.hasModifier)(E.AsyncKeyword,t),body:this.convertChild(t.body),declare:!1,range:[t.parameters.pos-1,t.end],params:[],returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});l.typeParameters&&this.fixParentLocation(l,l.typeParameters.range);let v;if(r.kind===E.ObjectLiteralExpression)l.params=t.parameters.map(y=>this.convertChild(y)),v=this.createNode(t,{type:J.AST_NODE_TYPES.Property,key:this.convertChild(t.name),value:l,computed:(0,pe.isComputedProperty)(t.name),optional:!!t.questionToken,method:t.kind===E.MethodDeclaration,shorthand:!1,kind:"init"});else{l.params=this.convertParameters(t.parameters);let y=(0,pe.hasModifier)(E.AbstractKeyword,t)?J.AST_NODE_TYPES.TSAbstractMethodDefinition:J.AST_NODE_TYPES.MethodDefinition;v=this.createNode(t,{type:y,accessibility:(0,pe.getTSNodeAccessibility)(t),computed:(0,pe.isComputedProperty)(t.name),decorators:((_=(0,Zi.getDecorators)(t))==null?void 0:_.map(C=>this.convertChild(C)))??[],key:this.convertChild(t.name),kind:"method",optional:!!t.questionToken,override:(0,pe.hasModifier)(E.OverrideKeyword,t),static:(0,pe.hasModifier)(E.StaticKeyword,t),value:l})}return t.kind===E.GetAccessor?v.kind="get":t.kind===E.SetAccessor?v.kind="set":!v.static&&t.name.kind===E.StringLiteral&&t.name.text==="constructor"&&v.type!==J.AST_NODE_TYPES.Property&&(v.kind="constructor"),v}case E.Constructor:{let l=(0,pe.getLastModifier)(t),v=(l&&(0,pe.findNextToken)(l,t,this.ast))??t.getFirstToken(),y=this.createNode(t,{type:t.body?J.AST_NODE_TYPES.FunctionExpression:J.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,async:!1,body:this.convertChild(t.body),declare:!1,expression:!1,generator:!1,id:null,params:this.convertParameters(t.parameters),range:[t.parameters.pos-1,t.end],returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});y.typeParameters&&this.fixParentLocation(y,y.typeParameters.range);let C=this.createNode(t,{type:J.AST_NODE_TYPES.Identifier,decorators:[],name:"constructor",optional:!1,range:[v.getStart(this.ast),v.end],typeAnnotation:void 0}),S=(0,pe.hasModifier)(E.StaticKeyword,t);return this.createNode(t,{type:(0,pe.hasModifier)(E.AbstractKeyword,t)?J.AST_NODE_TYPES.TSAbstractMethodDefinition:J.AST_NODE_TYPES.MethodDefinition,accessibility:(0,pe.getTSNodeAccessibility)(t),computed:!1,decorators:[],optional:!1,key:C,kind:S?"method":"constructor",override:!1,static:S,value:y})}case E.FunctionExpression:return this.createNode(t,{type:J.AST_NODE_TYPES.FunctionExpression,async:(0,pe.hasModifier)(E.AsyncKeyword,t),body:this.convertChild(t.body),declare:!1,expression:!1,generator:!!t.asteriskToken,id:this.convertChild(t.name),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case E.SuperKeyword:return this.createNode(t,{type:J.AST_NODE_TYPES.Super});case E.ArrayBindingPattern:return this.createNode(t,{type:J.AST_NODE_TYPES.ArrayPattern,decorators:[],elements:t.elements.map(l=>this.convertPattern(l)),optional:!1,typeAnnotation:void 0});case E.OmittedExpression:return null;case E.ObjectBindingPattern:return this.createNode(t,{type:J.AST_NODE_TYPES.ObjectPattern,decorators:[],optional:!1,properties:t.elements.map(l=>this.convertPattern(l)),typeAnnotation:void 0});case E.BindingElement:{if(r.kind===E.ArrayBindingPattern){let v=this.convertChild(t.name,r);return t.initializer?this.createNode(t,{type:J.AST_NODE_TYPES.AssignmentPattern,decorators:[],left:v,optional:!1,right:this.convertChild(t.initializer),typeAnnotation:void 0}):t.dotDotDotToken?this.createNode(t,{type:J.AST_NODE_TYPES.RestElement,argument:v,decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):v}let l;return t.dotDotDotToken?l=this.createNode(t,{type:J.AST_NODE_TYPES.RestElement,argument:this.convertChild(t.propertyName??t.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):l=this.createNode(t,{type:J.AST_NODE_TYPES.Property,key:this.convertChild(t.propertyName??t.name),value:this.convertChild(t.name),computed:!!(t.propertyName&&t.propertyName.kind===E.ComputedPropertyName),method:!1,optional:!1,shorthand:!t.propertyName,kind:"init"}),t.initializer&&(l.value=this.createNode(t,{type:J.AST_NODE_TYPES.AssignmentPattern,decorators:[],left:this.convertChild(t.name),optional:!1,range:[t.name.getStart(this.ast),t.initializer.end],right:this.convertChild(t.initializer),typeAnnotation:void 0})),l}case E.ArrowFunction:return this.createNode(t,{type:J.AST_NODE_TYPES.ArrowFunctionExpression,generator:!1,id:null,params:this.convertParameters(t.parameters),body:this.convertChild(t.body),async:(0,pe.hasModifier)(E.AsyncKeyword,t),expression:t.body.kind!==E.Block,returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case E.YieldExpression:return this.createNode(t,{type:J.AST_NODE_TYPES.YieldExpression,delegate:!!t.asteriskToken,argument:this.convertChild(t.expression)});case E.AwaitExpression:return this.createNode(t,{type:J.AST_NODE_TYPES.AwaitExpression,argument:this.convertChild(t.expression)});case E.NoSubstitutionTemplateLiteral:return this.createNode(t,{type:J.AST_NODE_TYPES.TemplateLiteral,quasis:[this.createNode(t,{type:J.AST_NODE_TYPES.TemplateElement,value:{raw:this.ast.text.slice(t.getStart(this.ast)+1,t.end-1),cooked:t.text},tail:!0})],expressions:[]});case E.TemplateExpression:{let l=this.createNode(t,{type:J.AST_NODE_TYPES.TemplateLiteral,quasis:[this.convertChild(t.head)],expressions:[]});return t.templateSpans.forEach(v=>{l.expressions.push(this.convertChild(v.expression)),l.quasis.push(this.convertChild(v.literal))}),l}case E.TaggedTemplateExpression:return this.createNode(t,Ne(this,Pe,"m",oi).call(this,{type:J.AST_NODE_TYPES.TaggedTemplateExpression,typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t),tag:this.convertChild(t.tag),quasi:this.convertChild(t.template)},"typeParameters","typeArguments"));case E.TemplateHead:case E.TemplateMiddle:case E.TemplateTail:{let l=t.kind===E.TemplateTail;return this.createNode(t,{type:J.AST_NODE_TYPES.TemplateElement,value:{raw:this.ast.text.slice(t.getStart(this.ast)+1,t.end-(l?1:2)),cooked:t.text},tail:l})}case E.SpreadAssignment:case E.SpreadElement:return this.allowPattern?this.createNode(t,{type:J.AST_NODE_TYPES.RestElement,argument:this.convertPattern(t.expression),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):this.createNode(t,{type:J.AST_NODE_TYPES.SpreadElement,argument:this.convertChild(t.expression)});case E.Parameter:{let l,v;return t.dotDotDotToken?l=v=this.createNode(t,{type:J.AST_NODE_TYPES.RestElement,argument:this.convertChild(t.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):t.initializer?(l=this.convertChild(t.name),v=this.createNode(t,{type:J.AST_NODE_TYPES.AssignmentPattern,decorators:[],left:l,optional:!1,right:this.convertChild(t.initializer),typeAnnotation:void 0}),(0,Zi.getModifiers)(t)&&(v.range[0]=l.range[0],v.loc=(0,pe.getLocFor)(v.range,this.ast))):l=v=this.convertChild(t.name,r),t.type&&(l.typeAnnotation=this.convertTypeAnnotation(t.type,t),this.fixParentLocation(l,l.typeAnnotation.range)),t.questionToken&&(t.questionToken.end>l.range[1]&&(l.range[1]=t.questionToken.end,l.loc.end=(0,pe.getLineAndCharacterFor)(l.range[1],this.ast)),l.optional=!0),(0,Zi.getModifiers)(t)?this.createNode(t,{type:J.AST_NODE_TYPES.TSParameterProperty,accessibility:(0,pe.getTSNodeAccessibility)(t),decorators:[],override:(0,pe.hasModifier)(E.OverrideKeyword,t),parameter:v,readonly:(0,pe.hasModifier)(E.ReadonlyKeyword,t),static:(0,pe.hasModifier)(E.StaticKeyword,t)}):v}case E.ClassDeclaration:!t.name&&(!(0,pe.hasModifier)(_t.SyntaxKind.ExportKeyword,t)||!(0,pe.hasModifier)(_t.SyntaxKind.DefaultKeyword,t))&&Ne(this,Pe,"m",br).call(this,t,"A class declaration without the 'default' modifier must have a name.");case E.ClassExpression:{let l=t.heritageClauses??[],v=t.kind===E.ClassDeclaration?J.AST_NODE_TYPES.ClassDeclaration:J.AST_NODE_TYPES.ClassExpression,y,C;for(let k of l){let{token:L,types:G}=k;G.length===0&&Ne(this,Pe,"m",br).call(this,k,`'${_t.tokenToString(L)}' list cannot be empty.`),L===E.ExtendsKeyword?(y&&Ne(this,Pe,"m",br).call(this,k,"'extends' clause already seen."),C&&Ne(this,Pe,"m",br).call(this,k,"'extends' clause must precede 'implements' clause."),G.length>1&&Ne(this,Pe,"m",br).call(this,G[1],"Classes can only extend a single class."),y??(y=k)):L===E.ImplementsKeyword&&(C&&Ne(this,Pe,"m",br).call(this,k,"'implements' clause already seen."),C??(C=k))}let S=this.createNode(t,Ne(this,Pe,"m",oi).call(this,{type:v,abstract:(0,pe.hasModifier)(E.AbstractKeyword,t),body:this.createNode(t,{type:J.AST_NODE_TYPES.ClassBody,body:t.members.filter(pe.isESTreeClassMember).map(k=>this.convertChild(k)),range:[t.members.pos-1,t.end]}),declare:(0,pe.hasModifier)(E.DeclareKeyword,t),decorators:((p=(0,Zi.getDecorators)(t))==null?void 0:p.map(k=>this.convertChild(k)))??[],id:this.convertChild(t.name),implements:(C==null?void 0:C.types.map(k=>this.convertChild(k)))??[],superClass:y!=null&&y.types[0]?this.convertChild(y.types[0].expression):null,superTypeArguments:void 0,typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)},"superTypeParameters","superTypeArguments"));return(d=y==null?void 0:y.types[0])!=null&&d.typeArguments&&(S.superTypeArguments=this.convertTypeArgumentsToTypeParameterInstantiation(y.types[0].typeArguments,y.types[0])),this.fixExports(t,S)}case E.ModuleBlock:return this.createNode(t,{type:J.AST_NODE_TYPES.TSModuleBlock,body:this.convertBodyExpressions(t.statements,t)});case E.ImportDeclaration:{this.assertModuleSpecifier(t,!1);let l=this.createNode(t,{type:J.AST_NODE_TYPES.ImportDeclaration,source:this.convertChild(t.moduleSpecifier),specifiers:[],importKind:"value",assertions:this.convertAssertClasue(t.assertClause)});if(t.importClause&&(t.importClause.isTypeOnly&&(l.importKind="type"),t.importClause.name&&l.specifiers.push(this.convertChild(t.importClause)),t.importClause.namedBindings))switch(t.importClause.namedBindings.kind){case E.NamespaceImport:l.specifiers.push(this.convertChild(t.importClause.namedBindings));break;case E.NamedImports:l.specifiers=l.specifiers.concat(t.importClause.namedBindings.elements.map(v=>this.convertChild(v)));break}return l}case E.NamespaceImport:return this.createNode(t,{type:J.AST_NODE_TYPES.ImportNamespaceSpecifier,local:this.convertChild(t.name)});case E.ImportSpecifier:return this.createNode(t,{type:J.AST_NODE_TYPES.ImportSpecifier,local:this.convertChild(t.name),imported:this.convertChild(t.propertyName??t.name),importKind:t.isTypeOnly?"type":"value"});case E.ImportClause:{let l=this.convertChild(t.name);return this.createNode(t,{type:J.AST_NODE_TYPES.ImportDefaultSpecifier,local:l,range:l.range})}case E.ExportDeclaration:return((h=t.exportClause)==null?void 0:h.kind)===E.NamedExports?(this.assertModuleSpecifier(t,!0),this.createNode(t,{type:J.AST_NODE_TYPES.ExportNamedDeclaration,source:this.convertChild(t.moduleSpecifier),specifiers:t.exportClause.elements.map(l=>this.convertChild(l)),exportKind:t.isTypeOnly?"type":"value",declaration:null,assertions:this.convertAssertClasue(t.assertClause)})):(this.assertModuleSpecifier(t,!1),this.createNode(t,{type:J.AST_NODE_TYPES.ExportAllDeclaration,source:this.convertChild(t.moduleSpecifier),exportKind:t.isTypeOnly?"type":"value",exported:t.exportClause&&t.exportClause.kind===E.NamespaceExport?this.convertChild(t.exportClause.name):null,assertions:this.convertAssertClasue(t.assertClause)}));case E.ExportSpecifier:return this.createNode(t,{type:J.AST_NODE_TYPES.ExportSpecifier,local:this.convertChild(t.propertyName??t.name),exported:this.convertChild(t.name),exportKind:t.isTypeOnly?"type":"value"});case E.ExportAssignment:return t.isExportEquals?this.createNode(t,{type:J.AST_NODE_TYPES.TSExportAssignment,expression:this.convertChild(t.expression)}):this.createNode(t,{type:J.AST_NODE_TYPES.ExportDefaultDeclaration,declaration:this.convertChild(t.expression),exportKind:"value"});case E.PrefixUnaryExpression:case E.PostfixUnaryExpression:{let l=(0,pe.getTextForTokenKind)(t.operator);return l==="++"||l==="--"?this.createNode(t,{type:J.AST_NODE_TYPES.UpdateExpression,operator:l,prefix:t.kind===E.PrefixUnaryExpression,argument:this.convertChild(t.operand)}):this.createNode(t,{type:J.AST_NODE_TYPES.UnaryExpression,operator:l,prefix:t.kind===E.PrefixUnaryExpression,argument:this.convertChild(t.operand)})}case E.DeleteExpression:return this.createNode(t,{type:J.AST_NODE_TYPES.UnaryExpression,operator:"delete",prefix:!0,argument:this.convertChild(t.expression)});case E.VoidExpression:return this.createNode(t,{type:J.AST_NODE_TYPES.UnaryExpression,operator:"void",prefix:!0,argument:this.convertChild(t.expression)});case E.TypeOfExpression:return this.createNode(t,{type:J.AST_NODE_TYPES.UnaryExpression,operator:"typeof",prefix:!0,argument:this.convertChild(t.expression)});case E.TypeOperator:return this.createNode(t,{type:J.AST_NODE_TYPES.TSTypeOperator,operator:(0,pe.getTextForTokenKind)(t.operator),typeAnnotation:this.convertChild(t.type)});case E.BinaryExpression:{if((0,pe.isComma)(t.operatorToken)){let v=this.createNode(t,{type:J.AST_NODE_TYPES.SequenceExpression,expressions:[]}),y=this.convertChild(t.left);return y.type===J.AST_NODE_TYPES.SequenceExpression&&t.left.kind!==E.ParenthesizedExpression?v.expressions=v.expressions.concat(y.expressions):v.expressions.push(y),v.expressions.push(this.convertChild(t.right)),v}let l=(0,pe.getBinaryExpressionType)(t.operatorToken);return this.allowPattern&&l.type===J.AST_NODE_TYPES.AssignmentExpression?this.createNode(t,{type:J.AST_NODE_TYPES.AssignmentPattern,decorators:[],left:this.convertPattern(t.left,t),optional:!1,right:this.convertChild(t.right),typeAnnotation:void 0}):this.createNode(t,{...l,left:this.converter(t.left,t,l.type===J.AST_NODE_TYPES.AssignmentExpression),right:this.convertChild(t.right)})}case E.PropertyAccessExpression:{let l=this.convertChild(t.expression),v=this.convertChild(t.name),y=!1,C=this.createNode(t,{type:J.AST_NODE_TYPES.MemberExpression,object:l,property:v,computed:y,optional:t.questionDotToken!==void 0});return this.convertChainExpression(C,t)}case E.ElementAccessExpression:{let l=this.convertChild(t.expression),v=this.convertChild(t.argumentExpression),y=!0,C=this.createNode(t,{type:J.AST_NODE_TYPES.MemberExpression,object:l,property:v,computed:y,optional:t.questionDotToken!==void 0});return this.convertChainExpression(C,t)}case E.CallExpression:{if(t.expression.kind===E.ImportKeyword)return t.arguments.length!==1&&t.arguments.length!==2&&Ne(this,Pe,"m",br).call(this,t.arguments[2]??t,"Dynamic import requires exactly one or two arguments."),this.createNode(t,{type:J.AST_NODE_TYPES.ImportExpression,source:this.convertChild(t.arguments[0]),attributes:t.arguments[1]?this.convertChild(t.arguments[1]):null});let l=this.convertChild(t.expression),v=t.arguments.map(S=>this.convertChild(S)),y=t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t),C=this.createNode(t,Ne(this,Pe,"m",oi).call(this,{type:J.AST_NODE_TYPES.CallExpression,callee:l,arguments:v,optional:t.questionDotToken!==void 0,typeArguments:y},"typeParameters","typeArguments"));return this.convertChainExpression(C,t)}case E.NewExpression:{let l=t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t);return this.createNode(t,Ne(this,Pe,"m",oi).call(this,{type:J.AST_NODE_TYPES.NewExpression,arguments:t.arguments?t.arguments.map(v=>this.convertChild(v)):[],callee:this.convertChild(t.expression),typeArguments:l},"typeParameters","typeArguments"))}case E.ConditionalExpression:return this.createNode(t,{type:J.AST_NODE_TYPES.ConditionalExpression,test:this.convertChild(t.condition),consequent:this.convertChild(t.whenTrue),alternate:this.convertChild(t.whenFalse)});case E.MetaProperty:return this.createNode(t,{type:J.AST_NODE_TYPES.MetaProperty,meta:this.createNode(t.getFirstToken(),{type:J.AST_NODE_TYPES.Identifier,decorators:[],name:(0,pe.getTextForTokenKind)(t.keywordToken),optional:!1,typeAnnotation:void 0}),property:this.convertChild(t.name)});case E.Decorator:return this.createNode(t,{type:J.AST_NODE_TYPES.Decorator,expression:this.convertChild(t.expression)});case E.StringLiteral:return this.createNode(t,{type:J.AST_NODE_TYPES.Literal,value:r.kind===E.JsxAttribute?(0,pe.unescapeStringLiteralText)(t.text):t.text,raw:t.getText()});case E.NumericLiteral:return this.createNode(t,{type:J.AST_NODE_TYPES.Literal,value:Number(t.text),raw:t.getText()});case E.BigIntLiteral:{let l=(0,pe.getRange)(t,this.ast),v=this.ast.text.slice(l[0],l[1]),y=v.slice(0,-1).replace(/_/g,""),C=typeof BigInt<"u"?BigInt(y):null;return this.createNode(t,{type:J.AST_NODE_TYPES.Literal,raw:v,value:C,bigint:C==null?y:String(C),range:l})}case E.RegularExpressionLiteral:{let l=t.text.slice(1,t.text.lastIndexOf("/")),v=t.text.slice(t.text.lastIndexOf("/")+1),y=null;try{y=new RegExp(l,v)}catch{}return this.createNode(t,{type:J.AST_NODE_TYPES.Literal,value:y,raw:t.text,regex:{pattern:l,flags:v}})}case E.TrueKeyword:return this.createNode(t,{type:J.AST_NODE_TYPES.Literal,value:!0,raw:"true"});case E.FalseKeyword:return this.createNode(t,{type:J.AST_NODE_TYPES.Literal,value:!1,raw:"false"});case E.NullKeyword:return this.createNode(t,{type:J.AST_NODE_TYPES.Literal,value:null,raw:"null"});case E.EmptyStatement:return this.createNode(t,{type:J.AST_NODE_TYPES.EmptyStatement});case E.DebuggerStatement:return this.createNode(t,{type:J.AST_NODE_TYPES.DebuggerStatement});case E.JsxElement:return this.createNode(t,{type:J.AST_NODE_TYPES.JSXElement,openingElement:this.convertChild(t.openingElement),closingElement:this.convertChild(t.closingElement),children:t.children.map(l=>this.convertChild(l))});case E.JsxFragment:return this.createNode(t,{type:J.AST_NODE_TYPES.JSXFragment,openingFragment:this.convertChild(t.openingFragment),closingFragment:this.convertChild(t.closingFragment),children:t.children.map(l=>this.convertChild(l))});case E.JsxSelfClosingElement:return this.createNode(t,{type:J.AST_NODE_TYPES.JSXElement,openingElement:this.createNode(t,Ne(this,Pe,"m",oi).call(this,{type:J.AST_NODE_TYPES.JSXOpeningElement,typeArguments:t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):void 0,selfClosing:!0,name:this.convertJSXTagName(t.tagName,t),attributes:t.attributes.properties.map(l=>this.convertChild(l)),range:(0,pe.getRange)(t,this.ast)},"typeParameters","typeArguments")),closingElement:null,children:[]});case E.JsxOpeningElement:return this.createNode(t,Ne(this,Pe,"m",oi).call(this,{type:J.AST_NODE_TYPES.JSXOpeningElement,typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t),selfClosing:!1,name:this.convertJSXTagName(t.tagName,t),attributes:t.attributes.properties.map(l=>this.convertChild(l))},"typeParameters","typeArguments"));case E.JsxClosingElement:return this.createNode(t,{type:J.AST_NODE_TYPES.JSXClosingElement,name:this.convertJSXTagName(t.tagName,t)});case E.JsxOpeningFragment:return this.createNode(t,{type:J.AST_NODE_TYPES.JSXOpeningFragment});case E.JsxClosingFragment:return this.createNode(t,{type:J.AST_NODE_TYPES.JSXClosingFragment});case E.JsxExpression:{let l=t.expression?this.convertChild(t.expression):this.createNode(t,{type:J.AST_NODE_TYPES.JSXEmptyExpression,range:[t.getStart(this.ast)+1,t.getEnd()-1]});return t.dotDotDotToken?this.createNode(t,{type:J.AST_NODE_TYPES.JSXSpreadChild,expression:l}):this.createNode(t,{type:J.AST_NODE_TYPES.JSXExpressionContainer,expression:l})}case E.JsxAttribute:return this.createNode(t,{type:J.AST_NODE_TYPES.JSXAttribute,name:this.convertJSXNamespaceOrIdentifier(t.name),value:this.convertChild(t.initializer)});case E.JsxText:{let l=t.getFullStart(),v=t.getEnd(),y=this.ast.text.slice(l,v);return this.createNode(t,{type:J.AST_NODE_TYPES.JSXText,value:(0,pe.unescapeStringLiteralText)(y),raw:y,range:[l,v]})}case E.JsxSpreadAttribute:return this.createNode(t,{type:J.AST_NODE_TYPES.JSXSpreadAttribute,argument:this.convertChild(t.expression)});case E.QualifiedName:return this.createNode(t,{type:J.AST_NODE_TYPES.TSQualifiedName,left:this.convertChild(t.left),right:this.convertChild(t.right)});case E.TypeReference:return this.createNode(t,Ne(this,Pe,"m",oi).call(this,{type:J.AST_NODE_TYPES.TSTypeReference,typeName:this.convertChild(t.typeName),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)},"typeParameters","typeArguments"));case E.TypeParameter:return this.createNode(t,{type:J.AST_NODE_TYPES.TSTypeParameter,name:this.convertChild(t.name),constraint:t.constraint&&this.convertChild(t.constraint),default:t.default?this.convertChild(t.default):void 0,in:(0,pe.hasModifier)(E.InKeyword,t),out:(0,pe.hasModifier)(E.OutKeyword,t),const:(0,pe.hasModifier)(E.ConstKeyword,t)});case E.ThisType:return this.createNode(t,{type:J.AST_NODE_TYPES.TSThisType});case E.AnyKeyword:case E.BigIntKeyword:case E.BooleanKeyword:case E.NeverKeyword:case E.NumberKeyword:case E.ObjectKeyword:case E.StringKeyword:case E.SymbolKeyword:case E.UnknownKeyword:case E.VoidKeyword:case E.UndefinedKeyword:case E.IntrinsicKeyword:return this.createNode(t,{type:J.AST_NODE_TYPES[`TS${E[t.kind]}`]});case E.NonNullExpression:{let l=this.createNode(t,{type:J.AST_NODE_TYPES.TSNonNullExpression,expression:this.convertChild(t.expression)});return this.convertChainExpression(l,t)}case E.TypeLiteral:return this.createNode(t,{type:J.AST_NODE_TYPES.TSTypeLiteral,members:t.members.map(l=>this.convertChild(l))});case E.ArrayType:return this.createNode(t,{type:J.AST_NODE_TYPES.TSArrayType,elementType:this.convertChild(t.elementType)});case E.IndexedAccessType:return this.createNode(t,{type:J.AST_NODE_TYPES.TSIndexedAccessType,objectType:this.convertChild(t.objectType),indexType:this.convertChild(t.indexType)});case E.ConditionalType:return this.createNode(t,{type:J.AST_NODE_TYPES.TSConditionalType,checkType:this.convertChild(t.checkType),extendsType:this.convertChild(t.extendsType),trueType:this.convertChild(t.trueType),falseType:this.convertChild(t.falseType)});case E.TypeQuery:return this.createNode(t,Ne(this,Pe,"m",oi).call(this,{type:J.AST_NODE_TYPES.TSTypeQuery,exprName:this.convertChild(t.exprName),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)},"typeParameters","typeArguments"));case E.MappedType:return t.members&&t.members.length>0&&Ne(this,Pe,"m",br).call(this,t.members[0],"A mapped type may not declare properties or methods."),this.createNode(t,{type:J.AST_NODE_TYPES.TSMappedType,nameType:this.convertChild(t.nameType)??null,optional:t.questionToken&&(t.questionToken.kind===E.QuestionToken||(0,pe.getTextForTokenKind)(t.questionToken.kind)),readonly:t.readonlyToken&&(t.readonlyToken.kind===E.ReadonlyKeyword||(0,pe.getTextForTokenKind)(t.readonlyToken.kind)),typeAnnotation:t.type&&this.convertChild(t.type),typeParameter:this.convertChild(t.typeParameter)});case E.ParenthesizedExpression:return this.convertChild(t.expression,r);case E.TypeAliasDeclaration:{let l=this.createNode(t,{type:J.AST_NODE_TYPES.TSTypeAliasDeclaration,declare:(0,pe.hasModifier)(E.DeclareKeyword,t),id:this.convertChild(t.name),typeAnnotation:this.convertChild(t.type),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,l)}case E.MethodSignature:return this.convertMethodSignature(t);case E.PropertySignature:{let{initializer:l}=t;return l&&Ne(this,Pe,"m",st).call(this,l,"A property signature cannot have an initializer."),this.createNode(t,{type:J.AST_NODE_TYPES.TSPropertySignature,accessibility:(0,pe.getTSNodeAccessibility)(t),computed:(0,pe.isComputedProperty)(t.name),key:this.convertChild(t.name),optional:(0,pe.isOptional)(t),readonly:(0,pe.hasModifier)(E.ReadonlyKeyword,t),static:(0,pe.hasModifier)(E.StaticKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t)})}case E.IndexSignature:return this.createNode(t,{type:J.AST_NODE_TYPES.TSIndexSignature,accessibility:(0,pe.getTSNodeAccessibility)(t),parameters:t.parameters.map(l=>this.convertChild(l)),readonly:(0,pe.hasModifier)(E.ReadonlyKeyword,t),static:(0,pe.hasModifier)(E.StaticKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t)});case E.ConstructorType:return this.createNode(t,{type:J.AST_NODE_TYPES.TSConstructorType,abstract:(0,pe.hasModifier)(E.AbstractKeyword,t),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case E.FunctionType:{let{modifiers:l}=t;l&&Ne(this,Pe,"m",st).call(this,l[0],"A function type cannot have modifiers.")}case E.ConstructSignature:case E.CallSignature:{let l=t.kind===E.ConstructSignature?J.AST_NODE_TYPES.TSConstructSignatureDeclaration:t.kind===E.CallSignature?J.AST_NODE_TYPES.TSCallSignatureDeclaration:J.AST_NODE_TYPES.TSFunctionType;return this.createNode(t,{type:l,params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)})}case E.ExpressionWithTypeArguments:{let l=r.kind,v=l===E.InterfaceDeclaration?J.AST_NODE_TYPES.TSInterfaceHeritage:l===E.HeritageClause?J.AST_NODE_TYPES.TSClassImplements:J.AST_NODE_TYPES.TSInstantiationExpression;return this.createNode(t,Ne(this,Pe,"m",oi).call(this,{type:v,expression:this.convertChild(t.expression),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)},"typeParameters","typeArguments"))}case E.InterfaceDeclaration:{let l=t.heritageClauses??[],v=[];for(let C of l){C.token!==E.ExtendsKeyword&&Ne(this,Pe,"m",st).call(this,C,C.token===E.ImplementsKeyword?"Interface declaration cannot have 'implements' clause.":"Unexpected token.");for(let S of C.types)v.push(this.convertChild(S,t))}let y=this.createNode(t,{type:J.AST_NODE_TYPES.TSInterfaceDeclaration,body:this.createNode(t,{type:J.AST_NODE_TYPES.TSInterfaceBody,body:t.members.map(C=>this.convertChild(C)),range:[t.members.pos-1,t.end]}),declare:(0,pe.hasModifier)(E.DeclareKeyword,t),extends:v,id:this.convertChild(t.name),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,y)}case E.TypePredicate:{let l=this.createNode(t,{type:J.AST_NODE_TYPES.TSTypePredicate,asserts:t.assertsModifier!==void 0,parameterName:this.convertChild(t.parameterName),typeAnnotation:null});return t.type&&(l.typeAnnotation=this.convertTypeAnnotation(t.type,t),l.typeAnnotation.loc=l.typeAnnotation.typeAnnotation.loc,l.typeAnnotation.range=l.typeAnnotation.typeAnnotation.range),l}case E.ImportType:{let l=(0,pe.getRange)(t,this.ast);if(t.isTypeOf){let y=(0,pe.findNextToken)(t.getFirstToken(),t,this.ast);l[0]=y.getStart(this.ast)}let v=this.createNode(t,Ne(this,Pe,"m",oi).call(this,{type:J.AST_NODE_TYPES.TSImportType,argument:this.convertChild(t.argument),qualifier:this.convertChild(t.qualifier),typeArguments:t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):null,range:l},"typeParameters","typeArguments"));return t.isTypeOf?this.createNode(t,{type:J.AST_NODE_TYPES.TSTypeQuery,exprName:v,typeArguments:void 0,typeParameters:void 0}):v}case E.EnumDeclaration:{let l=this.createNode(t,{type:J.AST_NODE_TYPES.TSEnumDeclaration,const:(0,pe.hasModifier)(E.ConstKeyword,t),declare:(0,pe.hasModifier)(E.DeclareKeyword,t),id:this.convertChild(t.name),members:t.members.map(v=>this.convertChild(v))});return this.fixExports(t,l)}case E.EnumMember:return this.createNode(t,{type:J.AST_NODE_TYPES.TSEnumMember,computed:t.name.kind===_t.SyntaxKind.ComputedPropertyName,id:this.convertChild(t.name),initializer:t.initializer&&this.convertChild(t.initializer)});case E.ModuleDeclaration:{let l=(0,pe.hasModifier)(E.DeclareKeyword,t),v=this.createNode(t,{type:J.AST_NODE_TYPES.TSModuleDeclaration,...(()=>{if(t.flags&_t.NodeFlags.GlobalAugmentation){let C=this.convertChild(t.name),S=this.convertChild(t.body);return(S==null||S.type===J.AST_NODE_TYPES.TSModuleDeclaration)&&Ne(this,Pe,"m",br).call(this,t.body??t,"Expected a valid module body"),C.type!==J.AST_NODE_TYPES.Identifier&&Ne(this,Pe,"m",br).call(this,t.name,"global module augmentation must have an Identifier id"),{kind:"global",body:S,declare:!1,global:!1,id:C}}if(!(t.flags&_t.NodeFlags.Namespace)){let C=this.convertChild(t.body);return{kind:"module",...C!=null?{body:C}:{},declare:!1,global:!1,id:this.convertChild(t.name)}}t.body==null&&Ne(this,Pe,"m",br).call(this,t,"Expected a module body"),t.name.kind!==_t.SyntaxKind.Identifier&&Ne(this,Pe,"m",br).call(this,t.name,"`namespace`s must have an Identifier id");let y=this.createNode(t.name,{decorators:[],name:t.name.text,optional:!1,range:[t.name.getStart(this.ast),t.name.getEnd()],type:J.AST_NODE_TYPES.Identifier,typeAnnotation:void 0});for(;t.body&&_t.isModuleDeclaration(t.body)&&t.body.name;){t=t.body,l||(l=(0,pe.hasModifier)(E.DeclareKeyword,t));let C=t.name,S=this.createNode(C,{decorators:[],name:C.text,optional:!1,range:[C.getStart(this.ast),C.getEnd()],type:J.AST_NODE_TYPES.Identifier,typeAnnotation:void 0});y=this.createNode(C,{left:y,right:S,range:[y.range[0],S.range[1]],type:J.AST_NODE_TYPES.TSQualifiedName})}return{kind:"namespace",body:this.convertChild(t.body),declare:!1,global:!1,id:y}})()});return v.declare=l,t.flags&_t.NodeFlags.GlobalAugmentation&&(v.global=!0),this.fixExports(t,v)}case E.ParenthesizedType:return this.convertChild(t.type);case E.UnionType:return this.createNode(t,{type:J.AST_NODE_TYPES.TSUnionType,types:t.types.map(l=>this.convertChild(l))});case E.IntersectionType:return this.createNode(t,{type:J.AST_NODE_TYPES.TSIntersectionType,types:t.types.map(l=>this.convertChild(l))});case E.AsExpression:return this.createNode(t,{type:J.AST_NODE_TYPES.TSAsExpression,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});case E.InferType:return this.createNode(t,{type:J.AST_NODE_TYPES.TSInferType,typeParameter:this.convertChild(t.typeParameter)});case E.LiteralType:return t.literal.kind===E.NullKeyword?this.createNode(t.literal,{type:J.AST_NODE_TYPES.TSNullKeyword}):this.createNode(t,{type:J.AST_NODE_TYPES.TSLiteralType,literal:this.convertChild(t.literal)});case E.TypeAssertionExpression:return this.createNode(t,{type:J.AST_NODE_TYPES.TSTypeAssertion,typeAnnotation:this.convertChild(t.type),expression:this.convertChild(t.expression)});case E.ImportEqualsDeclaration:return this.fixExports(t,this.createNode(t,{type:J.AST_NODE_TYPES.TSImportEqualsDeclaration,id:this.convertChild(t.name),importKind:t.isTypeOnly?"type":"value",moduleReference:this.convertChild(t.moduleReference)}));case E.ExternalModuleReference:return this.createNode(t,{type:J.AST_NODE_TYPES.TSExternalModuleReference,expression:this.convertChild(t.expression)});case E.NamespaceExportDeclaration:return this.createNode(t,{type:J.AST_NODE_TYPES.TSNamespaceExportDeclaration,id:this.convertChild(t.name)});case E.AbstractKeyword:return this.createNode(t,{type:J.AST_NODE_TYPES.TSAbstractKeyword});case E.TupleType:{let l="elementTypes"in t?t.elementTypes.map(v=>this.convertChild(v)):t.elements.map(v=>this.convertChild(v));return this.createNode(t,{type:J.AST_NODE_TYPES.TSTupleType,elementTypes:l})}case E.NamedTupleMember:{let l=this.createNode(t,{type:J.AST_NODE_TYPES.TSNamedTupleMember,elementType:this.convertChild(t.type,t),label:this.convertChild(t.name,t),optional:t.questionToken!=null});return t.dotDotDotToken?(l.range[0]=l.label.range[0],l.loc.start=l.label.loc.start,this.createNode(t,{type:J.AST_NODE_TYPES.TSRestType,typeAnnotation:l})):l}case E.OptionalType:return this.createNode(t,{type:J.AST_NODE_TYPES.TSOptionalType,typeAnnotation:this.convertChild(t.type)});case E.RestType:return this.createNode(t,{type:J.AST_NODE_TYPES.TSRestType,typeAnnotation:this.convertChild(t.type)});case E.TemplateLiteralType:{let l=this.createNode(t,{type:J.AST_NODE_TYPES.TSTemplateLiteralType,quasis:[this.convertChild(t.head)],types:[]});return t.templateSpans.forEach(v=>{l.types.push(this.convertChild(v.type)),l.quasis.push(this.convertChild(v.literal))}),l}case E.ClassStaticBlockDeclaration:return this.createNode(t,{type:J.AST_NODE_TYPES.StaticBlock,body:this.convertBodyExpressions(t.body.statements,t)});case E.AssertEntry:return this.createNode(t,{type:J.AST_NODE_TYPES.ImportAttribute,key:this.convertChild(t.name),value:this.convertChild(t.value)});case E.SatisfiesExpression:return this.createNode(t,{type:J.AST_NODE_TYPES.TSSatisfiesExpression,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});default:return this.deeplyCopy(t)}}};yn.Converter=K6;Pe=new WeakSet,ow=function(t){if(!this.options.allowInvalidAST){(0,pe.nodeHasIllegalDecorators)(t)&&Ne(this,Pe,"m",st).call(this,t.illegalDecorators[0],"Decorators are not valid here.");for(let r of(0,Zi.getDecorators)(t,!0)??[])(0,pe.nodeCanBeDecorated)(t)||(_t.isMethodDeclaration(t)&&!(0,pe.nodeIsPresent)(t.body)?Ne(this,Pe,"m",st).call(this,r,"A decorator can only decorate a method implementation, not an overload."):Ne(this,Pe,"m",st).call(this,r,"Decorators are not valid here."));for(let r of(0,Zi.getModifiers)(t,!0)??[]){if(r.kind!==E.ReadonlyKeyword&&((t.kind===E.PropertySignature||t.kind===E.MethodSignature)&&Ne(this,Pe,"m",st).call(this,r,`'${_t.tokenToString(r.kind)}' modifier cannot appear on a type member`),t.kind===E.IndexSignature&&(r.kind!==E.StaticKeyword||!_t.isClassLike(t.parent))&&Ne(this,Pe,"m",st).call(this,r,`'${_t.tokenToString(r.kind)}' modifier cannot appear on an index signature`)),r.kind!==E.InKeyword&&r.kind!==E.OutKeyword&&r.kind!==E.ConstKeyword&&t.kind===E.TypeParameter&&Ne(this,Pe,"m",st).call(this,r,`'${_t.tokenToString(r.kind)}' modifier cannot appear on a type parameter`),(r.kind===E.InKeyword||r.kind===E.OutKeyword)&&(t.kind!==E.TypeParameter||!(_t.isInterfaceDeclaration(t.parent)||_t.isClassLike(t.parent)||_t.isTypeAliasDeclaration(t.parent)))&&Ne(this,Pe,"m",st).call(this,r,`'${_t.tokenToString(r.kind)}' modifier can only appear on a type parameter of a class, interface or type alias`),r.kind===E.ReadonlyKeyword&&t.kind!==E.PropertyDeclaration&&t.kind!==E.PropertySignature&&t.kind!==E.IndexSignature&&t.kind!==E.Parameter&&Ne(this,Pe,"m",st).call(this,r,"'readonly' modifier can only appear on a property declaration or index signature."),r.kind===E.DeclareKeyword&&_t.isClassLike(t.parent)&&!_t.isPropertyDeclaration(t)&&Ne(this,Pe,"m",st).call(this,r,`'${_t.tokenToString(r.kind)}' modifier cannot appear on class elements of this kind.`),r.kind===E.DeclareKeyword&&_t.isVariableStatement(t)){let a=(0,pe.getDeclarationKind)(t.declarationList);(a==="using"||a==="await using")&&Ne(this,Pe,"m",st).call(this,r,`'declare' modifier cannot appear on a '${a}' declaration.`)}if(r.kind===E.AbstractKeyword&&t.kind!==E.ClassDeclaration&&t.kind!==E.ConstructorType&&t.kind!==E.MethodDeclaration&&t.kind!==E.PropertyDeclaration&&t.kind!==E.GetAccessor&&t.kind!==E.SetAccessor&&Ne(this,Pe,"m",st).call(this,r,`'${_t.tokenToString(r.kind)}' modifier can only appear on a class, method, or property declaration.`),(r.kind===E.StaticKeyword||r.kind===E.PublicKeyword||r.kind===E.ProtectedKeyword||r.kind===E.PrivateKeyword)&&(t.parent.kind===E.ModuleBlock||t.parent.kind===E.SourceFile)&&Ne(this,Pe,"m",st).call(this,r,`'${_t.tokenToString(r.kind)}' modifier cannot appear on a module or namespace element.`),r.kind===E.AccessorKeyword&&t.kind!==E.PropertyDeclaration&&Ne(this,Pe,"m",st).call(this,r,"'accessor' modifier can only appear on a property declaration."),r.kind===E.AsyncKeyword&&t.kind!==E.MethodDeclaration&&t.kind!==E.FunctionDeclaration&&t.kind!==E.FunctionExpression&&t.kind!==E.ArrowFunction&&Ne(this,Pe,"m",st).call(this,r,"'async' modifier cannot be used here."),t.kind===E.Parameter&&(r.kind===E.StaticKeyword||r.kind===E.ExportKeyword||r.kind===E.DeclareKeyword||r.kind===E.AsyncKeyword)&&Ne(this,Pe,"m",st).call(this,r,`'${_t.tokenToString(r.kind)}' modifier cannot appear on a parameter.`),t.kind===E.Parameter&&(r.kind===E.PublicKeyword||r.kind===E.PrivateKeyword||r.kind===E.ProtectedKeyword||r.kind===E.ReadonlyKeyword||r.kind===E.OverrideKeyword)){let a=(0,pe.getContainingFunction)(t);a.kind===E.Constructor&&(0,pe.nodeIsPresent)(a.body)||Ne(this,Pe,"m",st).call(this,r,"A parameter property is only allowed in a constructor implementation.")}}}},br=function(t,r){this.options.allowInvalidAST||Ne(this,Pe,"m",st).call(this,t,r)},oi=function(t,r,a){let _=!1;return Object.defineProperty(t,r,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>t[a]:()=>(_||((void 0)(`The '${r}' property is deprecated on ${t.type} nodes. Use '${a}' instead. See https://typescript-eslint.io/linting/troubleshooting#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,"DeprecationWarning"),_=!0),t[a]),set(p){Object.defineProperty(t,r,{enumerable:!0,writable:!0,value:p})}}),t},st=function(t,r){let a,_;throw typeof t=="number"?a=_=t:(a=t.getStart(this.ast),_=t.getEnd()),(0,pe.createError)(r,this.ast,a,_)}});var e9=ut((CH,Zw)=>{"use strict";var AU=Object.create,Wm=Object.defineProperty,kU=Object.getOwnPropertyDescriptor,DU=Object.getOwnPropertyNames,PU=Object.getPrototypeOf,IU=Object.prototype.hasOwnProperty,NU=(e,t)=>{for(var r in t)Wm(e,r,{get:t[r],enumerable:!0})},lw=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let _ of DU(t))!IU.call(e,_)&&_!==r&&Wm(e,_,{get:()=>t[_],enumerable:!(a=kU(t,_))||a.enumerable});return e},Pr=(e,t,r)=>(r=e!=null?AU(PU(e)):{},lw(t||!e||!e.__esModule?Wm(r,"default",{value:e,enumerable:!0}):r,e)),OU=e=>lw(Wm({},"__esModule",{value:!0}),e),uw={};NU(uw,{forEachComment:()=>LU,forEachToken:()=>pw,getCallSignaturesOfType:()=>tb,getPropertyOfType:()=>gb,getWellKnownSymbolPropertyOfType:()=>Zz,hasDecorators:()=>Bq,hasExpressionInitializer:()=>Ow,hasInitializer:()=>Uq,hasJSDoc:()=>qq,hasModifiers:()=>zq,hasType:()=>Wq,hasTypeArguments:()=>Vq,includesModifier:()=>jU,intersectionTypeParts:()=>iW,isAbstractKeyword:()=>FU,isAccessExpression:()=>kq,isAccessibilityModifier:()=>sb,isAccessorDeclaration:()=>_b,isAccessorKeyword:()=>hw,isAnyKeyword:()=>BU,isArrayBindingElement:()=>Dq,isArrayBindingOrAssignmentPattern:()=>kw,isAssertKeyword:()=>UU,isAssertsKeyword:()=>qU,isAssignmentKind:()=>yz,isAssignmentPattern:()=>Pq,isAsyncKeyword:()=>zU,isAwaitKeyword:()=>WU,isBigIntKeyword:()=>VU,isBigIntLiteralType:()=>Hz,isBindingOrAssignmentElementRestIndicator:()=>Iq,isBindingOrAssignmentElementTarget:()=>Nq,isBindingOrAssignmentPattern:()=>Dw,isBindingPattern:()=>cb,isBlockLike:()=>Oq,isBooleanKeyword:()=>HU,isBooleanLiteral:()=>Pw,isBooleanLiteralType:()=>hb,isClassLikeDeclaration:()=>Vm,isClassMemberModifier:()=>Mq,isColonToken:()=>GU,isCompilerOptionEnabled:()=>ja,isConditionalType:()=>Mz,isConstAssertionExpression:()=>Jw,isConstKeyword:()=>XU,isDeclarationName:()=>Iw,isDeclarationWithTypeParameterChildren:()=>Nw,isDeclarationWithTypeParameters:()=>Lq,isDeclareKeyword:()=>$U,isDefaultKeyword:()=>QU,isDestructuringPattern:()=>Jq,isDotToken:()=>YU,isEndOfFileToken:()=>yw,isEntityNameExpression:()=>hu,isEntityNameOrEntityNameExpression:()=>Rq,isEnumType:()=>Lz,isEqualsGreaterThanToken:()=>KU,isEqualsToken:()=>ZU,isEvolvingArrayType:()=>Wz,isExclamationToken:()=>eq,isExportKeyword:()=>tq,isFalseKeyword:()=>rq,isFalseLiteral:()=>gw,isFalseLiteralType:()=>yb,isFalsyType:()=>nW,isForInOrOfStatement:()=>jq,isFreshableIntrinsicType:()=>Vz,isFreshableType:()=>Hw,isFunctionLikeDeclaration:()=>Fq,isFunctionScopeBoundary:()=>hz,isImportExpression:()=>nq,isImportKeyword:()=>iq,isInKeyword:()=>aq,isIndexType:()=>Jz,isIndexedAccessType:()=>Rz,isInputFiles:()=>oq,isInstantiableType:()=>jz,isIntersectionType:()=>Hm,isIntrinsicAnyType:()=>vz,isIntrinsicBigIntType:()=>Sz,isIntrinsicBooleanType:()=>Tz,isIntrinsicESSymbolType:()=>wz,isIntrinsicErrorType:()=>xz,isIntrinsicNeverType:()=>Ez,isIntrinsicNonPrimitiveType:()=>Az,isIntrinsicNullType:()=>kz,isIntrinsicNumberType:()=>Dz,isIntrinsicStringType:()=>Pz,isIntrinsicType:()=>fb,isIntrinsicUndefinedType:()=>Iz,isIntrinsicUnknownType:()=>Nz,isIntrinsicVoidType:()=>Oz,isIterationStatement:()=>mz,isJSDocComment:()=>Hq,isJSDocNamespaceBody:()=>lb,isJSDocNamespaceDeclaration:()=>Rw,isJSDocText:()=>bw,isJSDocTypeReferencingNode:()=>Gq,isJsonMinusNumericLiteral:()=>vw,isJsonObjectExpression:()=>Xq,isJsxAttributeLike:()=>$q,isJsxAttributeValue:()=>Qq,isJsxChild:()=>Yq,isJsxTagNameExpression:()=>Mw,isJsxTagNamePropertyAccess:()=>jw,isLiteralToken:()=>Kq,isLiteralType:()=>Gz,isModifierFlagSet:()=>fw,isModuleBody:()=>Zq,isModuleName:()=>ez,isModuleReference:()=>tz,isNamedDeclarationWithName:()=>Fw,isNamedImportBindings:()=>rz,isNamedImportsOrExports:()=>nz,isNamespaceBody:()=>ub,isNamespaceDeclaration:()=>Bw,isNeverKeyword:()=>sq,isNodeFlagSet:()=>dw,isNullKeyword:()=>_q,isNullLiteral:()=>Tw,isNumberKeyword:()=>cq,isNumberLiteralType:()=>Xz,isNumericOrStringLikeLiteral:()=>Uw,isNumericPropertyName:()=>Vw,isObjectBindingOrAssignmentElement:()=>iz,isObjectBindingOrAssignmentPattern:()=>Lw,isObjectFlagSet:()=>mu,isObjectKeyword:()=>lq,isObjectType:()=>yu,isObjectTypeDeclaration:()=>az,isOutKeyword:()=>uq,isOverrideKeyword:()=>pq,isParameterPropertyModifier:()=>oz,isPrivateKeyword:()=>Sw,isPropertyAccessEntityNameExpression:()=>qw,isPropertyNameLiteral:()=>sz,isPropertyReadonlyInType:()=>Yw,isProtectedKeyword:()=>xw,isPseudoLiteralToken:()=>_z,isPublicKeyword:()=>ww,isQuestionDotToken:()=>fq,isQuestionToken:()=>dq,isReadonlyKeyword:()=>ab,isSignatureDeclaration:()=>pb,isStaticKeyword:()=>Cw,isStrictCompilerOptionEnabled:()=>rb,isStringKeyword:()=>mq,isStringLiteralType:()=>$z,isStringMappingType:()=>Fz,isSubstitutionType:()=>Bz,isSuperElementAccessExpression:()=>zw,isSuperExpression:()=>ob,isSuperKeyword:()=>hq,isSuperProperty:()=>cz,isSuperPropertyAccessExpression:()=>Ww,isSymbolFlagSet:()=>mw,isSymbolKeyword:()=>yq,isSyntaxList:()=>gq,isTemplateLiteralType:()=>Qz,isThenableType:()=>cW,isThisExpression:()=>Ew,isThisKeyword:()=>bq,isTrueKeyword:()=>vq,isTrueLiteral:()=>Aw,isTrueLiteralType:()=>Yz,isTupleType:()=>Xw,isTupleTypeReference:()=>Qw,isTypeFlagSet:()=>tt,isTypeOnlyCompatibleAliasDeclaration:()=>lz,isTypeParameter:()=>Uz,isTypeReference:()=>$w,isTypeReferenceType:()=>uz,isTypeVariable:()=>qz,isUndefinedKeyword:()=>Tq,isUnionOrIntersectionType:()=>zz,isUnionOrIntersectionTypeNode:()=>pz,isUnionType:()=>mb,isUniqueESSymbolType:()=>Gw,isUnknownKeyword:()=>Sq,isUnknownLiteralType:()=>Kz,isUnparsedPrologue:()=>xq,isUnparsedSourceText:()=>fz,isUnparsedSyntheticReference:()=>wq,isValidPropertyAccess:()=>gz,isVariableLikeDeclaration:()=>dz,isVoidKeyword:()=>Cq,symbolHasReadonlyDeclaration:()=>Kw,unionTypeParts:()=>du});Zw.exports=OU(uw);var Zr=Pr(Dt(),1),sw=Pr(Dt(),1);function pw(e,t,r=e.getSourceFile()){let a=[];for(;;){if(sw.default.isTokenKind(e.kind))t(e);else if(e.kind!==sw.default.SyntaxKind.JSDocComment){let _=e.getChildren(r);if(_.length===1){e=_[0];continue}for(let p=_.length-1;p>=0;--p)a.push(_[p])}if(a.length===0)break;e=a.pop()}}function MU(e){switch(e.kind){case Zr.default.SyntaxKind.CloseBraceToken:return e.parent.kind!==Zr.default.SyntaxKind.JsxExpression||!eb(e.parent.parent);case Zr.default.SyntaxKind.GreaterThanToken:switch(e.parent.kind){case Zr.default.SyntaxKind.JsxOpeningElement:return e.end!==e.parent.end;case Zr.default.SyntaxKind.JsxOpeningFragment:return!1;case Zr.default.SyntaxKind.JsxSelfClosingElement:return e.end!==e.parent.end||!eb(e.parent.parent);case Zr.default.SyntaxKind.JsxClosingElement:case Zr.default.SyntaxKind.JsxClosingFragment:return!eb(e.parent.parent.parent)}}return!0}function eb(e){return e.kind===Zr.default.SyntaxKind.JsxElement||e.kind===Zr.default.SyntaxKind.JsxFragment}function LU(e,t,r=e.getSourceFile()){let a=r.text,_=r.languageVariant!==Zr.default.LanguageVariant.JSX;return pw(e,d=>{if(d.pos!==d.end&&(d.kind!==Zr.default.SyntaxKind.JsxText&&Zr.default.forEachLeadingCommentRange(a,d.pos===0?(Zr.default.getShebang(a)??"").length:d.pos,p),_||MU(d)))return Zr.default.forEachTrailingCommentRange(a,d.end,p)},r);function p(d,h,l){t(a,{pos:d,end:h,kind:l})}}var JU=Pr(Dt(),1);function ja(e,t){switch(t){case"stripInternal":case"declarationMap":case"emitDeclarationOnly":return e[t]===!0&&ja(e,"declaration");case"declaration":return e.declaration||ja(e,"composite");case"incremental":return e.incremental===void 0?ja(e,"composite"):e.incremental;case"skipDefaultLibCheck":return e.skipDefaultLibCheck||ja(e,"skipLibCheck");case"suppressImplicitAnyIndexErrors":return e.suppressImplicitAnyIndexErrors===!0&&ja(e,"noImplicitAny");case"allowSyntheticDefaultImports":return e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:ja(e,"esModuleInterop")||e.module===JU.default.ModuleKind.System;case"noUncheckedIndexedAccess":return e.noUncheckedIndexedAccess===!0&&ja(e,"strictNullChecks");case"allowJs":return e.allowJs===void 0?ja(e,"checkJs"):e.allowJs;case"noImplicitAny":case"noImplicitThis":case"strictNullChecks":case"strictFunctionTypes":case"strictPropertyInitialization":case"alwaysStrict":case"strictBindCallApply":return rb(e,t)}return e[t]===!0}function rb(e,t){return(e.strict?e[t]!==!1:e[t]===!0)&&(t!=="strictPropertyInitialization"||rb(e,"strictNullChecks"))}var RU=Pr(Dt(),1);function nb(e,t){return(e&t)!==0}function ib(e,t){return nb(e.flags,t)}function fw(e,t){return nb(RU.default.getCombinedModifierFlags(e),t)}var dw=ib;function mu(e,t){return nb(e.objectFlags,t)}var mw=ib,tt=ib;function jU(e,...t){if(e===void 0)return!1;for(let r of e)if(t.includes(r.kind))return!0;return!1}var pr=Pr(Dt(),1),Fe=Pr(Dt(),1);function FU(e){return e.kind===Fe.default.SyntaxKind.AbstractKeyword}function hw(e){return e.kind===Fe.default.SyntaxKind.AccessorKeyword}function BU(e){return e.kind===Fe.default.SyntaxKind.AnyKeyword}function UU(e){return e.kind===Fe.default.SyntaxKind.AssertKeyword}function qU(e){return e.kind===Fe.default.SyntaxKind.AssertsKeyword}function zU(e){return e.kind===Fe.default.SyntaxKind.AsyncKeyword}function WU(e){return e.kind===Fe.default.SyntaxKind.AwaitKeyword}function VU(e){return e.kind===Fe.default.SyntaxKind.BigIntKeyword}function HU(e){return e.kind===Fe.default.SyntaxKind.BooleanKeyword}function GU(e){return e.kind===Fe.default.SyntaxKind.ColonToken}function XU(e){return e.kind===Fe.default.SyntaxKind.ConstKeyword}function $U(e){return e.kind===Fe.default.SyntaxKind.DeclareKeyword}function QU(e){return e.kind===Fe.default.SyntaxKind.DefaultKeyword}function YU(e){return e.kind===Fe.default.SyntaxKind.DotToken}function yw(e){return e.kind===Fe.default.SyntaxKind.EndOfFileToken}function KU(e){return e.kind===Fe.default.SyntaxKind.EqualsGreaterThanToken}function ZU(e){return e.kind===Fe.default.SyntaxKind.EqualsToken}function eq(e){return e.kind===Fe.default.SyntaxKind.ExclamationToken}function tq(e){return e.kind===Fe.default.SyntaxKind.ExportKeyword}function rq(e){return e.kind===Fe.default.SyntaxKind.FalseKeyword}function gw(e){return e.kind===Fe.default.SyntaxKind.FalseKeyword}function nq(e){return e.kind===Fe.default.SyntaxKind.ImportKeyword}function iq(e){return e.kind===Fe.default.SyntaxKind.ImportKeyword}function aq(e){return e.kind===Fe.default.SyntaxKind.InKeyword}function oq(e){return e.kind===Fe.default.SyntaxKind.InputFiles}function bw(e){return e.kind===Fe.default.SyntaxKind.JSDocText}function vw(e){return e.kind===Fe.default.SyntaxKind.PrefixUnaryExpression}function sq(e){return e.kind===Fe.default.SyntaxKind.NeverKeyword}function _q(e){return e.kind===Fe.default.SyntaxKind.NullKeyword}function Tw(e){return e.kind===Fe.default.SyntaxKind.NullKeyword}function cq(e){return e.kind===Fe.default.SyntaxKind.NumberKeyword}function lq(e){return e.kind===Fe.default.SyntaxKind.ObjectKeyword}function uq(e){return e.kind===Fe.default.SyntaxKind.OutKeyword}function pq(e){return e.kind===Fe.default.SyntaxKind.OverrideKeyword}function Sw(e){return e.kind===Fe.default.SyntaxKind.PrivateKeyword}function xw(e){return e.kind===Fe.default.SyntaxKind.ProtectedKeyword}function ww(e){return e.kind===Fe.default.SyntaxKind.PublicKeyword}function fq(e){return e.kind===Fe.default.SyntaxKind.QuestionDotToken}function dq(e){return e.kind===Fe.default.SyntaxKind.QuestionToken}function ab(e){return e.kind===Fe.default.SyntaxKind.ReadonlyKeyword}function Cw(e){return e.kind===Fe.default.SyntaxKind.StaticKeyword}function mq(e){return e.kind===Fe.default.SyntaxKind.StringKeyword}function ob(e){return e.kind===Fe.default.SyntaxKind.SuperKeyword}function hq(e){return e.kind===Fe.default.SyntaxKind.SuperKeyword}function yq(e){return e.kind===Fe.default.SyntaxKind.SymbolKeyword}function gq(e){return e.kind===Fe.default.SyntaxKind.SyntaxList}function Ew(e){return e.kind===Fe.default.SyntaxKind.ThisKeyword}function bq(e){return e.kind===Fe.default.SyntaxKind.ThisKeyword}function vq(e){return e.kind===Fe.default.SyntaxKind.TrueKeyword}function Aw(e){return e.kind===Fe.default.SyntaxKind.TrueKeyword}function Tq(e){return e.kind===Fe.default.SyntaxKind.UndefinedKeyword}function Sq(e){return e.kind===Fe.default.SyntaxKind.UnknownKeyword}function xq(e){return e.kind===Fe.default.SyntaxKind.UnparsedPrologue}function wq(e){return e.kind===Fe.default.SyntaxKind.UnparsedSyntheticReference}function Cq(e){return e.kind===Fe.default.SyntaxKind.VoidKeyword}var D=Pr(Dt(),1),Eq=Pr(Dt(),1),[_w,Aq]=Eq.default.versionMajorMinor.split(".").map(e=>Number.parseInt(e,10));function fu(e,t=0){return _w>e||_w===e&&Aq>=t}function kq(e){return D.default.isPropertyAccessExpression(e)||D.default.isElementAccessExpression(e)}function sb(e){return ww(e)||Sw(e)||xw(e)}function _b(e){return D.default.isGetAccessorDeclaration(e)||D.default.isSetAccessorDeclaration(e)}function Dq(e){return D.default.isBindingElement(e)||D.default.isOmittedExpression(e)}function kw(e){return D.default.isArrayBindingPattern(e)||D.default.isArrayLiteralExpression(e)}function Pq(e){return D.default.isObjectLiteralExpression(e)||D.default.isArrayLiteralExpression(e)}function Iq(e){return D.default.isSpreadElement(e)||D.default.isSpreadAssignment(e)?!0:fu(4,4)?D.default.isDotDotDotToken(e):!1}function Nq(e){return Dw(e)||D.default.isIdentifier(e)||D.default.isPropertyAccessExpression(e)||D.default.isElementAccessExpression(e)||D.default.isOmittedExpression(e)}function Dw(e){return Lw(e)||kw(e)}function cb(e){return D.default.isObjectBindingPattern(e)||D.default.isArrayBindingPattern(e)}function Oq(e){return D.default.isSourceFile(e)||D.default.isBlock(e)||D.default.isModuleBlock(e)||D.default.isCaseOrDefaultClause(e)}function Pw(e){return Aw(e)||gw(e)}function Vm(e){return D.default.isClassDeclaration(e)||D.default.isClassExpression(e)}function Mq(e){return sb(e)||ab(e)||Cw(e)||hw(e)}function Iw(e){return D.default.isIdentifier(e)||D.default.isPrivateIdentifier(e)||D.default.isStringLiteralLike(e)||D.default.isNumericLiteral(e)||D.default.isComputedPropertyName(e)||D.default.isElementAccessExpression(e)||cb(e)||hu(e)}function Nw(e){return pb(e)||Vm(e)||D.default.isInterfaceDeclaration(e)||D.default.isTypeAliasDeclaration(e)||D.default.isJSDocTemplateTag(e)}function Lq(e){return Nw(e)||D.default.isJSDocTypedefTag(e)||D.default.isJSDocCallbackTag(e)||D.default.isJSDocSignature(e)}function Jq(e){return cb(e)||D.default.isObjectLiteralExpression(e)||D.default.isArrayLiteralExpression(e)}function hu(e){return D.default.isIdentifier(e)||qw(e)}function Rq(e){return D.default.isEntityName(e)||hu(e)}function jq(e){return D.default.isForInStatement(e)||D.default.isForOfStatement(e)}function Fq(e){return D.default.isFunctionDeclaration(e)||D.default.isMethodDeclaration(e)||D.default.isGetAccessorDeclaration(e)||D.default.isSetAccessorDeclaration(e)||D.default.isConstructorDeclaration(e)||D.default.isFunctionExpression(e)||D.default.isArrowFunction(e)}function Bq(e){return D.default.isParameter(e)||D.default.isPropertyDeclaration(e)||D.default.isMethodDeclaration(e)||D.default.isGetAccessorDeclaration(e)||D.default.isSetAccessorDeclaration(e)||D.default.isClassExpression(e)||D.default.isClassDeclaration(e)}function Ow(e){return D.default.isVariableDeclaration(e)||D.default.isParameter(e)||D.default.isBindingElement(e)||D.default.isPropertyDeclaration(e)||D.default.isPropertyAssignment(e)||D.default.isEnumMember(e)}function Uq(e){return Ow(e)||D.default.isForStatement(e)||D.default.isForInStatement(e)||D.default.isForOfStatement(e)||D.default.isJsxAttribute(e)}function qq(e){return!!(_b(e)||D.default.isArrowFunction(e)||D.default.isBlock(e)||D.default.isBreakStatement(e)||D.default.isCallSignatureDeclaration(e)||D.default.isCaseClause(e)||Vm(e)||D.default.isConstructorDeclaration(e)||D.default.isConstructorTypeNode(e)||D.default.isConstructSignatureDeclaration(e)||D.default.isContinueStatement(e)||D.default.isDebuggerStatement(e)||D.default.isDoStatement(e)||D.default.isEmptyStatement(e)||yw(e)||D.default.isEnumDeclaration(e)||D.default.isEnumMember(e)||D.default.isExportAssignment(e)||D.default.isExportDeclaration(e)||D.default.isExportSpecifier(e)||D.default.isExpressionStatement(e)||D.default.isForInStatement(e)||D.default.isForOfStatement(e)||D.default.isForStatement(e)||D.default.isFunctionDeclaration(e)||D.default.isFunctionExpression(e)||D.default.isFunctionTypeNode(e)||D.default.isIfStatement(e)||D.default.isImportDeclaration(e)||D.default.isImportEqualsDeclaration(e)||D.default.isIndexSignatureDeclaration(e)||D.default.isInterfaceDeclaration(e)||D.default.isJSDocFunctionType(e)||D.default.isLabeledStatement(e)||D.default.isMethodDeclaration(e)||D.default.isMethodSignature(e)||D.default.isModuleDeclaration(e)||D.default.isNamedTupleMember(e)||D.default.isNamespaceExportDeclaration(e)||D.default.isParameter(e)||D.default.isParenthesizedExpression(e)||D.default.isPropertyAssignment(e)||D.default.isPropertyDeclaration(e)||D.default.isPropertySignature(e)||D.default.isReturnStatement(e)||D.default.isShorthandPropertyAssignment(e)||D.default.isSpreadAssignment(e)||D.default.isSwitchStatement(e)||D.default.isThrowStatement(e)||D.default.isTryStatement(e)||D.default.isTypeAliasDeclaration(e)||D.default.isVariableDeclaration(e)||D.default.isVariableStatement(e)||D.default.isWhileStatement(e)||D.default.isWithStatement(e)||fu(4,4)&&D.default.isClassStaticBlockDeclaration(e)||fu(5,0)&&(D.default.isBinaryExpression(e)||D.default.isElementAccessExpression(e)||D.default.isIdentifier(e)||D.default.isJSDocSignature(e)||D.default.isObjectLiteralExpression(e)||D.default.isPropertyAccessExpression(e)||D.default.isTypeParameterDeclaration(e)))}function zq(e){return D.default.isTypeParameterDeclaration(e)||D.default.isParameter(e)||D.default.isConstructorTypeNode(e)||D.default.isPropertySignature(e)||D.default.isPropertyDeclaration(e)||D.default.isMethodSignature(e)||D.default.isMethodDeclaration(e)||D.default.isConstructorDeclaration(e)||D.default.isGetAccessorDeclaration(e)||D.default.isSetAccessorDeclaration(e)||D.default.isIndexSignatureDeclaration(e)||D.default.isFunctionExpression(e)||D.default.isArrowFunction(e)||D.default.isClassExpression(e)||D.default.isVariableStatement(e)||D.default.isFunctionDeclaration(e)||D.default.isClassDeclaration(e)||D.default.isInterfaceDeclaration(e)||D.default.isTypeAliasDeclaration(e)||D.default.isEnumDeclaration(e)||D.default.isModuleDeclaration(e)||D.default.isImportEqualsDeclaration(e)||D.default.isImportDeclaration(e)||D.default.isExportAssignment(e)||D.default.isExportDeclaration(e)}function Wq(e){return pb(e)||D.default.isVariableDeclaration(e)||D.default.isParameter(e)||D.default.isPropertySignature(e)||D.default.isPropertyDeclaration(e)||D.default.isTypePredicateNode(e)||D.default.isParenthesizedTypeNode(e)||D.default.isTypeOperatorNode(e)||D.default.isMappedTypeNode(e)||D.default.isAssertionExpression(e)||D.default.isTypeAliasDeclaration(e)||D.default.isJSDocTypeExpression(e)||D.default.isJSDocNonNullableType(e)||D.default.isJSDocNullableType(e)||D.default.isJSDocOptionalType(e)||D.default.isJSDocVariadicType(e)}function Vq(e){return D.default.isCallExpression(e)||D.default.isNewExpression(e)||D.default.isTaggedTemplateExpression(e)||D.default.isJsxOpeningElement(e)||D.default.isJsxSelfClosingElement(e)}function Hq(e){return bw(e)?!0:fu(4,4)?D.default.isJSDocLink(e)||D.default.isJSDocLinkCode(e)||D.default.isJSDocLinkPlain(e):!1}function lb(e){return D.default.isIdentifier(e)||Rw(e)}function Gq(e){return D.default.isJSDocVariadicType(e)||D.default.isJSDocOptionalType(e)||D.default.isJSDocNullableType(e)||D.default.isJSDocNonNullableType(e)}function Xq(e){return D.default.isObjectLiteralExpression(e)||D.default.isArrayLiteralExpression(e)||vw(e)||D.default.isNumericLiteral(e)||D.default.isStringLiteral(e)||Pw(e)||Tw(e)}function $q(e){return D.default.isJsxAttribute(e)||D.default.isJsxSpreadAttribute(e)}function Qq(e){return D.default.isStringLiteral(e)||D.default.isJsxExpression(e)||D.default.isJsxElement(e)||D.default.isJsxSelfClosingElement(e)||D.default.isJsxFragment(e)}function Yq(e){return D.default.isJsxText(e)||D.default.isJsxExpression(e)||D.default.isJsxElement(e)||D.default.isJsxSelfClosingElement(e)||D.default.isJsxFragment(e)}function Mw(e){return D.default.isIdentifier(e)||Ew(e)||jw(e)}function Kq(e){return D.default.isNumericLiteral(e)||D.default.isBigIntLiteral(e)||D.default.isStringLiteral(e)||D.default.isJsxText(e)||D.default.isRegularExpressionLiteral(e)||D.default.isNoSubstitutionTemplateLiteral(e)}function Zq(e){return ub(e)||lb(e)}function ez(e){return D.default.isIdentifier(e)||D.default.isStringLiteral(e)}function tz(e){return D.default.isEntityName(e)||D.default.isExternalModuleReference(e)}function rz(e){return D.default.isNamespaceImport(e)||D.default.isNamedImports(e)}function nz(e){return D.default.isNamedImports(e)||D.default.isNamedExports(e)}function ub(e){return D.default.isModuleBlock(e)||Bw(e)}function iz(e){return D.default.isBindingElement(e)||D.default.isPropertyAssignment(e)||D.default.isShorthandPropertyAssignment(e)||D.default.isSpreadAssignment(e)}function Lw(e){return D.default.isObjectBindingPattern(e)||D.default.isObjectLiteralExpression(e)}function az(e){return Vm(e)||D.default.isInterfaceDeclaration(e)||D.default.isTypeLiteralNode(e)}function oz(e){return sb(e)||ab(e)}function sz(e){return D.default.isIdentifier(e)||D.default.isStringLiteralLike(e)||D.default.isNumericLiteral(e)}function _z(e){return D.default.isTemplateHead(e)||D.default.isTemplateMiddle(e)||D.default.isTemplateTail(e)}function pb(e){return D.default.isCallSignatureDeclaration(e)||D.default.isConstructSignatureDeclaration(e)||D.default.isMethodSignature(e)||D.default.isIndexSignatureDeclaration(e)||D.default.isFunctionTypeNode(e)||D.default.isConstructorTypeNode(e)||D.default.isJSDocFunctionType(e)||D.default.isFunctionDeclaration(e)||D.default.isMethodDeclaration(e)||D.default.isConstructorDeclaration(e)||_b(e)||D.default.isFunctionExpression(e)||D.default.isArrowFunction(e)}function cz(e){return Ww(e)||zw(e)}function lz(e){return!!(D.default.isImportClause(e)||D.default.isImportEqualsDeclaration(e)||D.default.isNamespaceImport(e)||D.default.isImportOrExportSpecifier(e)||fu(5,0)&&(D.default.isExportDeclaration(e)||D.default.isNamespaceExport(e)))}function uz(e){return D.default.isTypeReferenceNode(e)||D.default.isExpressionWithTypeArguments(e)}function pz(e){return D.default.isUnionTypeNode(e)||D.default.isIntersectionTypeNode(e)}function fz(e){return D.default.isUnparsedPrepend(e)||D.default.isUnparsedTextLike(e)}function dz(e){return D.default.isVariableDeclaration(e)||D.default.isParameter(e)||D.default.isBindingElement(e)||D.default.isPropertyDeclaration(e)||D.default.isPropertyAssignment(e)||D.default.isPropertySignature(e)||D.default.isJsxAttribute(e)||D.default.isShorthandPropertyAssignment(e)||D.default.isEnumMember(e)||D.default.isJSDocPropertyTag(e)||D.default.isJSDocParameterTag(e)}function Jw(e){return pr.default.isTypeReferenceNode(e.type)&&pr.default.isIdentifier(e.type.typeName)&&e.type.typeName.escapedText==="const"}function mz(e){switch(e.kind){case pr.default.SyntaxKind.DoStatement:case pr.default.SyntaxKind.ForInStatement:case pr.default.SyntaxKind.ForOfStatement:case pr.default.SyntaxKind.ForStatement:case pr.default.SyntaxKind.WhileStatement:return!0;default:return!1}}function Rw(e){return pr.default.isModuleDeclaration(e)&&pr.default.isIdentifier(e.name)&&(e.body===void 0||lb(e.body))}function jw(e){return pr.default.isPropertyAccessExpression(e)&&Mw(e.expression)}function Fw(e){return"name"in e&&e.name!==void 0&&e.name!==null&&Iw(e.name)}function Bw(e){return pr.default.isModuleDeclaration(e)&&pr.default.isIdentifier(e.name)&&e.body!==void 0&&ub(e.body)}function Uw(e){switch(e.kind){case pr.default.SyntaxKind.StringLiteral:case pr.default.SyntaxKind.NumericLiteral:case pr.default.SyntaxKind.NoSubstitutionTemplateLiteral:return!0;default:return!1}}function qw(e){return pr.default.isPropertyAccessExpression(e)&&pr.default.isIdentifier(e.name)&&hu(e.expression)}function zw(e){return pr.default.isElementAccessExpression(e)&&ob(e.expression)}function Ww(e){return pr.default.isPropertyAccessExpression(e)&&ob(e.expression)}var vr=Pr(Dt(),1);function hz(e){switch(e.kind){case vr.default.SyntaxKind.FunctionExpression:case vr.default.SyntaxKind.ArrowFunction:case vr.default.SyntaxKind.Constructor:case vr.default.SyntaxKind.ModuleDeclaration:case vr.default.SyntaxKind.ClassDeclaration:case vr.default.SyntaxKind.ClassExpression:case vr.default.SyntaxKind.EnumDeclaration:case vr.default.SyntaxKind.MethodDeclaration:case vr.default.SyntaxKind.FunctionDeclaration:case vr.default.SyntaxKind.GetAccessor:case vr.default.SyntaxKind.SetAccessor:case vr.default.SyntaxKind.MethodSignature:case vr.default.SyntaxKind.CallSignature:case vr.default.SyntaxKind.ConstructSignature:case vr.default.SyntaxKind.ConstructorType:case vr.default.SyntaxKind.FunctionType:return!0;case vr.default.SyntaxKind.SourceFile:return vr.default.isExternalModule(e);default:return!1}}var pu=Pr(Dt(),1);function yz(e){return e>=pu.default.SyntaxKind.FirstAssignment&&e<=pu.default.SyntaxKind.LastAssignment}function Vw(e){return String(+e)===e}function cw(e){return e>=65536?2:1}function gz(e,t=pu.default.ScriptTarget.Latest){if(e.length===0)return!1;let r=e.codePointAt(0);if(!pu.default.isIdentifierStart(r,t))return!1;for(let a=cw(r);ar.escapedName===t):e.getProperty(t)}function Zz(e,t,r){let a="__@"+t;for(let _ of e.getProperties()){if(!_.name.startsWith(a))continue;let p=_.valueDeclaration??_.getDeclarations()[0];if(!Fw(p)||p.name===void 0||!bz.default.isComputedPropertyName(p.name))continue;let d=r.getApparentType(r.getTypeAtLocation(p.name.expression)).symbol;if(_.escapedName===eW(r,d,t))return _}}function eW(e,t,r){let a=t&&e.getTypeOfSymbolAtLocation(t,t.valueDeclaration).getProperty(r),_=a&&e.getTypeOfSymbolAtLocation(a,a.valueDeclaration);return _&&Gw(_)?_.escapedName:"__@"+r}var ur=Pr(Dt(),1),gn=Pr(Dt(),1);function tW(e){return e.arguments.length===3&&hu(e.arguments[0])&&Uw(e.arguments[1])&&gn.default.isPropertyAccessExpression(e.expression)&&e.expression.name.escapedText==="defineProperty"&&gn.default.isIdentifier(e.expression.expression)&&e.expression.expression.escapedText==="Object"}function rW(e){let t=e;for(;;){let r=t.parent;e:switch(r.kind){case gn.default.SyntaxKind.TypeAssertionExpression:case gn.default.SyntaxKind.AsExpression:return Jw(r);case gn.default.SyntaxKind.PrefixUnaryExpression:if(t.kind!==gn.default.SyntaxKind.NumericLiteral)return!1;switch(r.operator){case gn.default.SyntaxKind.PlusToken:case gn.default.SyntaxKind.MinusToken:t=r;break e;default:return!1}case gn.default.SyntaxKind.PropertyAssignment:if(r.initializer!==t)return!1;t=r.parent;break;case gn.default.SyntaxKind.ShorthandPropertyAssignment:t=r.parent;break;case gn.default.SyntaxKind.ParenthesizedExpression:case gn.default.SyntaxKind.ArrayLiteralExpression:case gn.default.SyntaxKind.ObjectLiteralExpression:case gn.default.SyntaxKind.TemplateExpression:t=r;break;default:return!1}}}function nW(e){return tt(e,ur.default.TypeFlags.Undefined|ur.default.TypeFlags.Null|ur.default.TypeFlags.Void)?!0:e.isLiteral()?!e.value:yb(e)}function iW(e){return Hm(e)?e.types:[e]}function aW(e,t,r){return(Hm(e)?e.types:[e]).some(_=>{let p=gb(_,t);if(p===void 0)return!1;if(p.flags&ur.default.SymbolFlags.Transient){if(/^(?:[1-9]\d*|0)$/.test(t)&&Qw(_))return _.target.readonly;switch(oW(_,t,r)){case!0:return!0;case!1:return!1;default:}}return!!(mw(p,ur.default.SymbolFlags.ValueModule)||Kw(p,r))})}function oW(e,t,r){if(!yu(e)||!mu(e,ur.default.ObjectFlags.Mapped))return;let a=e.symbol.declarations[0];if(a.readonlyToken!==void 0&&!/^__@[^@]+$/.test(t))return a.readonlyToken.kind!==ur.default.SyntaxKind.MinusToken;let{modifiersType:_}=e;return _&&Yw(_,t,r)}function sW(e,t,r){let a=e.getApparentType(e.getTypeOfSymbolAtLocation(t,r));if(t.valueDeclaration.dotDotDotToken&&(a=a.getNumberIndexType(),a===void 0))return!1;for(let _ of du(a))if(_.getCallSignatures().length!==0)return!0;return!1}function Yw(e,t,r){let a=!1,_=!1;for(let p of du(e))if(gb(p,t)===void 0){let d=(Vw(t)?r.getIndexInfoOfType(p,ur.default.IndexKind.Number):void 0)??r.getIndexInfoOfType(p,ur.default.IndexKind.String);if(d!=null&&d.isReadonly){if(a)return!0;_=!0}}else{if(_||aW(p,t,r))return!0;a=!0}return!1}function _W(e,t){if(!tW(e))return!1;let r=t.getTypeAtLocation(e.arguments[2]);if(r.getProperty("value")===void 0)return r.getProperty("set")===void 0;let a=r.getProperty("writable");if(a===void 0)return!1;let _=a.valueDeclaration!==void 0&&ur.default.isPropertyAssignment(a.valueDeclaration)?t.getTypeAtLocation(a.valueDeclaration.initializer):t.getTypeOfSymbolAtLocation(a,e.arguments[2]);return yb(_)}function cW(e,t,r=e.getTypeAtLocation(t)){for(let a of du(e.getApparentType(r))){let _=a.getProperty("then");if(_===void 0)continue;let p=e.getTypeOfSymbolAtLocation(_,t);for(let d of du(p))for(let h of d.getCallSignatures())if(h.parameters.length!==0&&sW(e,h.parameters[0],t))return!0}return!1}function Kw(e,t){var r;return!!((e.flags&ur.default.SymbolFlags.Accessor)===ur.default.SymbolFlags.GetAccessor||(r=e.declarations)!=null&&r.some(a=>fw(a,ur.default.ModifierFlags.Readonly)||ur.default.isVariableDeclaration(a)&&dw(a.parent,ur.default.NodeFlags.Const)||ur.default.isCallExpression(a)&&_W(a,t)||ur.default.isEnumMember(a)||(ur.default.isPropertyAssignment(a)||ur.default.isShorthandPropertyAssignment(a))&&rW(a.parent)))}function du(e){return mb(e)?e.types:[e]}});var i9=ut(ea=>{"use strict";var lW=ea&&ea.__createBinding||(Object.create?function(e,t,r,a){a===void 0&&(a=r);var _=Object.getOwnPropertyDescriptor(t,r);(!_||("get"in _?!t.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,_)}:function(e,t,r,a){a===void 0&&(a=r),e[a]=t[r]}),uW=ea&&ea.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n9=ea&&ea.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&lW(t,e,r);return uW(t,e),t};Object.defineProperty(ea,"__esModule",{value:!0});ea.convertComments=void 0;var pW=n9(e9()),t9=n9(Dt()),fW=zm(),r9=Bm();function dW(e,t){let r=[];return pW.forEachComment(e,(a,_)=>{let p=_.kind===t9.SyntaxKind.SingleLineCommentTrivia?r9.AST_TOKEN_TYPES.Line:r9.AST_TOKEN_TYPES.Block,d=[_.pos,_.end],h=(0,fW.getLocFor)(d,e),l=d[0]+2,v=_.kind===t9.SyntaxKind.SingleLineCommentTrivia?d[1]-l:d[1]-l-2;r.push({type:p,value:t.slice(l,l+v),range:d,loc:h})},e),r}ea.convertComments=dW});var o9=ut(Gm=>{"use strict";Object.defineProperty(Gm,"__esModule",{value:!0});Gm.astConverter=void 0;var a9=Z6(),mW=i9(),hW=zm(),yW={};function gW(e,t,r){let{parseDiagnostics:a}=e;if(a.length)throw(0,a9.convertError)(a[0]);let _=new a9.Converter(e,{allowInvalidAST:t.allowInvalidAST,errorOnUnknownASTType:t.errorOnUnknownASTType,shouldPreserveNodeMaps:r,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings}),p=_.convertProgram();(!t.range||!t.loc)&&(0,yW.simpleTraverse)(p,{enter:h=>{t.range||delete h.range,t.loc||delete h.loc}}),t.tokens&&(p.tokens=(0,hW.convertTokens)(e)),t.comment&&(p.comments=(0,mW.convertComments)(e,t.codeFullText));let d=_.getASTMaps();return{estree:p,astMaps:d}}Gm.astConverter=gW});var bb=ut(si=>{"use strict";var bW=si&&si.__createBinding||(Object.create?function(e,t,r,a){a===void 0&&(a=r);var _=Object.getOwnPropertyDescriptor(t,r);(!_||("get"in _?!t.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,_)}:function(e,t,r,a){a===void 0&&(a=r),e[a]=t[r]}),vW=si&&si.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),TW=si&&si.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&bW(t,e,r);return vW(t,e),t};Object.defineProperty(si,"__esModule",{value:!0});si.getCodeText=si.isSourceFile=void 0;var SW=TW(Dt());function s9(e){if(typeof e!="object"||e==null)return!1;let t=e;return t.kind===SW.SyntaxKind.SourceFile&&typeof t.getFullText=="function"}si.isSourceFile=s9;function xW(e){return s9(e)?e.getFullText(e):e}si.getCodeText=xW});var _9=ut(bn=>{"use strict";var wW=bn&&bn.__createBinding||(Object.create?function(e,t,r,a){a===void 0&&(a=r);var _=Object.getOwnPropertyDescriptor(t,r);(!_||("get"in _?!t.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,_)}:function(e,t,r,a){a===void 0&&(a=r),e[a]=t[r]}),CW=bn&&bn.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),EW=bn&&bn.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&wW(t,e,r);return CW(t,e),t},AW=bn&&bn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bn,"__esModule",{value:!0});bn.getLanguageVariant=bn.getScriptKind=void 0;var kW=AW({extname:e=>"."+e.split(".").pop()}),Ht=EW(Dt());function DW(e,t){switch(kW.default.extname(e).toLowerCase()){case Ht.Extension.Js:case Ht.Extension.Cjs:case Ht.Extension.Mjs:return Ht.ScriptKind.JS;case Ht.Extension.Jsx:return Ht.ScriptKind.JSX;case Ht.Extension.Ts:case Ht.Extension.Cts:case Ht.Extension.Mts:return Ht.ScriptKind.TS;case Ht.Extension.Tsx:return Ht.ScriptKind.TSX;case Ht.Extension.Json:return Ht.ScriptKind.JSON;default:return t?Ht.ScriptKind.TSX:Ht.ScriptKind.TS}}bn.getScriptKind=DW;function PW(e){switch(e){case Ht.ScriptKind.TSX:case Ht.ScriptKind.JSX:case Ht.ScriptKind.JS:case Ht.ScriptKind.JSON:return Ht.LanguageVariant.JSX;default:return Ht.LanguageVariant.Standard}}bn.getLanguageVariant=PW});var u9=ut(vn=>{"use strict";var IW=vn&&vn.__createBinding||(Object.create?function(e,t,r,a){a===void 0&&(a=r);var _=Object.getOwnPropertyDescriptor(t,r);(!_||("get"in _?!t.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,_)}:function(e,t,r,a){a===void 0&&(a=r),e[a]=t[r]}),NW=vn&&vn.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),OW=vn&&vn.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&IW(t,e,r);return NW(t,e),t},MW=vn&&vn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vn,"__esModule",{value:!0});vn.createNoProgram=vn.createSourceFile=void 0;var LW=MW((Cf(),Hh(wf))),c9=OW(Dt()),JW=bb(),RW=_9(),jW=(0,LW.default)("typescript-eslint:typescript-estree:createSourceFile");function l9(e){return jW("Getting AST without type information in %s mode for: %s",e.jsx?"TSX":"TS",e.filePath),(0,JW.isSourceFile)(e.code)?e.code:c9.createSourceFile(e.filePath,e.codeFullText,c9.ScriptTarget.Latest,!0,(0,RW.getScriptKind)(e.filePath,e.jsx))}vn.createSourceFile=l9;function FW(e){return{ast:l9(e),program:null}}vn.createNoProgram=FW});var p9=ut(()=>{});var f9=ut(Xm=>{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0});Xm.createParserServices=void 0;function BW(e,t){if(!t)return{program:t,...e};let r=t.getTypeChecker();return{program:t,...e,getSymbolAtLocation:a=>r.getSymbolAtLocation(e.esTreeNodeToTSNodeMap.get(a)),getTypeAtLocation:a=>r.getTypeAtLocation(e.esTreeNodeToTSNodeMap.get(a))}}Xm.createParserServices=BW});var d9=ut(()=>{});var h9=ut(m9=>{m9.ExpiringCache=class{}});var g9=ut(y9=>{y9.resolveProjectList=()=>[]});var v9=ut(b9=>{b9.inferSingleRun=()=>!1});var S9=ut(T9=>{T9.warnAboutTSVersion=()=>{}});var C9=ut(ta=>{"use strict";var UW=ta&&ta.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ta,"__esModule",{value:!0});ta.clearTSServerProjectService=ta.clearTSConfigMatchCache=ta.createParseSettings=void 0;var vb=UW((Cf(),Hh(wf))),qW=d9(),zW={ensureAbsolutePath:e=>e},WW=bb(),x9=h9(),UH=g9(),VW=v9(),HW=S9(),GW=(0,vb.default)("typescript-eslint:typescript-estree:parser:parseSettings:createParseSettings"),$m,w9=null;function XW(e,t={}){var d;let r=YW(e),a=(0,VW.inferSingleRun)(t),_=typeof t.tsconfigRootDir=="string"?t.tsconfigRootDir:"/prettier-security-dirname-placeholder",p={allowInvalidAST:t.allowInvalidAST===!0,code:e,codeFullText:r,comment:t.comment===!0,comments:[],DEPRECATED__createDefaultProgram:t.DEPRECATED__createDefaultProgram===!0,debugLevel:t.debugLevel===!0?new Set(["typescript-eslint"]):Array.isArray(t.debugLevel)?new Set(t.debugLevel):new Set,errorOnTypeScriptSyntacticAndSemanticIssues:!1,errorOnUnknownASTType:t.errorOnUnknownASTType===!0,EXPERIMENTAL_projectService:t.EXPERIMENTAL_useProjectService===!0?w9??(w9=(0,qW.createProjectService)()):void 0,EXPERIMENTAL_useSourceOfProjectReferenceRedirect:t.EXPERIMENTAL_useSourceOfProjectReferenceRedirect===!0,extraFileExtensions:Array.isArray(t.extraFileExtensions)&&t.extraFileExtensions.every(h=>typeof h=="string")?t.extraFileExtensions:[],filePath:(0,zW.ensureAbsolutePath)(typeof t.filePath=="string"&&t.filePath!==""?t.filePath:KW(t.jsx),_),jsx:t.jsx===!0,loc:t.loc===!0,log:typeof t.loggerFn=="function"?t.loggerFn:t.loggerFn===!1?()=>{}:console.log,preserveNodeMaps:t.preserveNodeMaps!==!1,programs:Array.isArray(t.programs)?t.programs:null,projects:[],range:t.range===!0,singleRun:a,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings??!0,tokens:t.tokens===!0?[]:null,tsconfigMatchCache:$m??($m=new x9.ExpiringCache(a?"Infinity":((d=t.cacheLifetime)==null?void 0:d.glob)??x9.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS)),tsconfigRootDir:_};if(p.debugLevel.size>0){let h=[];p.debugLevel.has("typescript-eslint")&&h.push("typescript-eslint:*"),(p.debugLevel.has("eslint")||vb.default.enabled("eslint:*,-eslint:code-path"))&&h.push("eslint:*,-eslint:code-path"),vb.default.enable(h.join(","))}if(Array.isArray(t.programs)){if(!t.programs.length)throw new Error("You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.");GW("parserOptions.programs was provided, so parserOptions.project will be ignored.")}return!p.programs&&!p.EXPERIMENTAL_projectService&&(p.projects=[]),(0,HW.warnAboutTSVersion)(p),p}ta.createParseSettings=XW;function $W(){$m==null||$m.clear()}ta.clearTSConfigMatchCache=$W;function QW(){w9=null}ta.clearTSServerProjectService=QW;function YW(e){return(0,WW.isSourceFile)(e)?e.getFullText(e):typeof e=="string"?e:String(e)}function KW(e){return e?"estree.tsx":"estree.ts"}});var D9=ut(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});Qm.getFirstSemanticOrSyntacticError=void 0;var E9=Dt();function ZW(e,t){try{let r=A9(e.getSyntacticDiagnostics(t));if(r.length>0)return k9(r[0]);let a=A9(e.getSemanticDiagnostics(t));return a.length>0?k9(a[0]):void 0}catch(r){console.warn(`Warning From TSC: "${r.message}`);return}}Qm.getFirstSemanticOrSyntacticError=ZW;function A9(e){return e.filter(t=>{switch(t.code){case 1013:case 1014:case 1044:case 1045:case 1048:case 1049:case 1070:case 1071:case 1085:case 1090:case 1096:case 1097:case 1098:case 1099:case 1117:case 1121:case 1123:case 1141:case 1162:case 1164:case 1172:case 1173:case 1175:case 1176:case 1190:case 1196:case 1200:case 1206:case 1211:case 1242:case 1246:case 1255:case 1308:case 2364:case 2369:case 2452:case 2462:case 8017:case 17012:case 17013:return!0}return!1})}function k9(e){return{...e,message:(0,E9.flattenDiagnosticMessageText)(e.messageText,E9.sys.newLine)}}});var P9=ut(()=>{});var J9=ut(_i=>{"use strict";var eV=_i&&_i.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_i,"__esModule",{value:!0});_i.clearParseAndGenerateServicesCalls=_i.clearProgramCache=_i.parseAndGenerateServices=_i.parse=void 0;var tV=eV((Cf(),Hh(wf))),I9=o9(),rV=Z6(),nV={},N9={},iV={},O9=u9(),aV=p9(),M9={},oV=f9(),L9=C9(),sV=D9(),_V=P9(),cV=(0,tV.default)("typescript-eslint:typescript-estree:parser"),Tb=new Map;function lV(){Tb.clear()}_i.clearProgramCache=lV;function uV(e,t){if(e.EXPERIMENTAL_projectService){let a=(0,_V.useProgramFromProjectService)(e.EXPERIMENTAL_projectService,e);if(a)return a}if(e.programs){let a=(0,M9.useProvidedPrograms)(e.programs,e);if(a)return a}if(!t)return(0,O9.createNoProgram)(e);let r=(0,iV.createProjectProgram)(e,(0,aV.getWatchProgramsForProjects)(e));if(r)return r;if(e.DEPRECATED__createDefaultProgram){let a=(0,nV.createDefaultProgram)(e);if(a)return a}return(0,N9.createIsolatedProgram)(e)}function pV(e,t){let{ast:r}=fV(e,t,!1);return r}_i.parse=pV;function fV(e,t,r){let a=(0,L9.createParseSettings)(e,t);if(t!=null&&t.errorOnTypeScriptSyntacticAndSemanticIssues)throw new Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');let _=(0,O9.createSourceFile)(a),{estree:p,astMaps:d}=(0,I9.astConverter)(_,a,r);return{ast:p,esTreeNodeToTSNodeMap:d.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:d.tsNodeToESTreeNodeMap}}var Ym={};function dV(){Ym={}}_i.clearParseAndGenerateServicesCalls=dV;function mV(e,t){var v,y;let r=(0,L9.createParseSettings)(e,t);r.singleRun&&!r.programs&&((v=r.projects)==null?void 0:v.length)>0&&(r.programs={*[Symbol.iterator](){for(let C of r.projects){let S=Tb.get(C);if(S)yield S;else{cV("Detected single-run/CLI usage, creating Program once ahead of time for project: %s",C);let k=(0,M9.createProgramFromConfigFile)(C);Tb.set(C,k),yield k}}}});let a=r.programs!=null||((y=r.projects)==null?void 0:y.length)>0;if(t!==void 0&&(typeof t.errorOnTypeScriptSyntacticAndSemanticIssues=="boolean"&&t.errorOnTypeScriptSyntacticAndSemanticIssues&&(r.errorOnTypeScriptSyntacticAndSemanticIssues=!0),r.errorOnTypeScriptSyntacticAndSemanticIssues&&!a))throw new Error("Cannot calculate TypeScript semantic issues without a valid project.");r.singleRun&&t.filePath&&(Ym[t.filePath]=(Ym[t.filePath]||0)+1);let{ast:_,program:p}=r.singleRun&&t.filePath&&Ym[t.filePath]>1?(0,N9.createIsolatedProgram)(r):uV(r,a),d=typeof r.preserveNodeMaps=="boolean"?r.preserveNodeMaps:!0,{estree:h,astMaps:l}=(0,I9.astConverter)(_,r,d);if(p&&r.errorOnTypeScriptSyntacticAndSemanticIssues){let C=(0,sV.getFirstSemanticOrSyntacticError)(p,_);if(C)throw(0,rV.convertError)(C)}return{ast:h,services:(0,oV.createParserServices)(l,p)}}_i.parseAndGenerateServices=mV});var V9=ut(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.extract=xV;ps.parse=CV;ps.parseWithComments=W9;ps.print=EV;ps.strip=wV;var gV=/\*\/$/,bV=/^\/\*\*?/,q9=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,vV=/(^|\s+)\/\/([^\r\n]*)/g,F9=/^(\r?\n)+/,TV=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,B9=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,SV=/(\r?\n|^) *\* ?/g,z9=[];function xV(e){let t=e.match(q9);return t?t[0].trimLeft():""}function wV(e){let t=e.match(q9);return t&&t[0]?e.substring(t[0].length):e}function CV(e){return W9(e).pragmas}function W9(e){let t=` +`;e=e.replace(bV,"").replace(gV,"").replace(SV,"$1");let r="";for(;r!==e;)r=e,e=e.replace(TV,`${t}$1 $2${t}`);e=e.replace(F9,"").trimRight();let a=Object.create(null),_=e.replace(B9,"").replace(F9,"").trimRight(),p;for(;p=B9.exec(e);){let d=p[2].replace(vV,"");typeof a[p[1]]=="string"||Array.isArray(a[p[1]])?a[p[1]]=z9.concat(a[p[1]],d):a[p[1]]=d}return{comments:_,pragmas:a}}function EV({comments:e="",pragmas:t={}}){let r=` +`,a="/**",_=" *",p=" */",d=Object.keys(t),h=d.map(v=>U9(v,t[v])).reduce((v,y)=>v.concat(y),[]).map(v=>`${_} ${v}${r}`).join("");if(!e){if(d.length===0)return"";if(d.length===1&&!Array.isArray(t[d[0]])){let v=t[d[0]];return`${a} ${U9(d[0],v)[0]}${p}`}}let l=e.split(r).map(v=>`${_} ${v}`).join(r)+r;return a+r+(e?l:"")+(e&&d.length?_+r:"")+h+p}function U9(e,t){return z9.concat(t).map(r=>`@${e} ${r}`.trim())}});var Db={};Vh(Db,{parsers:()=>kb});var kb={};Vh(kb,{typescript:()=>HV});var n5=Mb(J9(),1);function hV(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var R9=hV;function yV(e){let t=[];for(let r of e)try{return r()}catch(a){t.push(a)}throw Object.assign(new Error("All combinations failed"),{errors:t})}var j9=yV;var H_=Mb(V9(),1);function AV(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` +`);return t===-1?e:e.slice(0,t)}var H9=AV;function kV(e){let t=H9(e);t&&(e=e.slice(t.length+1));let r=(0,H_.extract)(e),{pragmas:a,comments:_}=(0,H_.parseWithComments)(r);return{shebang:t,text:e,pragmas:a,comments:_}}function G9(e){let{pragmas:t}=kV(e);return Object.prototype.hasOwnProperty.call(t,"prettier")||Object.prototype.hasOwnProperty.call(t,"format")}function DV(e){return Array.isArray(e)&&e.length>0}var Km=DV;function Fn(e){var a;let t=e.range?e.range[0]:e.start,r=((a=e.declaration)==null?void 0:a.decorators)??e.decorators;return Km(r)?Math.min(Fn(r[0]),t):t}function ra(e){return e.range?e.range[1]:e.end}function PV(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:G9,locStart:Fn,locEnd:ra,...e}}var X9=PV;function IV(e){return e.charAt(0)==="#"&&e.charAt(1)==="!"?"//"+e.slice(2):e}var $9=IV;var NV=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},Sb=NV;function OV(e){return e=new Set(e),t=>e.has(t==null?void 0:t.type)}var Q9=OV;var MV=Q9(["Block","CommentBlock","MultiLine"]),gu=MV;function LV(e){return gu(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/.test(e.value)}var Y9=LV;function JV(e){let t=`*${e.value}*`.split(` +`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var xb=JV;var bu=null;function vu(e){if(bu!==null&&typeof bu.property){let t=bu;return bu=vu.prototype=null,t}return bu=vu.prototype=e??Object.create(null),new vu}var RV=10;for(let e=0;e<=RV;e++)vu();function wb(e){return vu(e)}function jV(e,t="type"){wb(e);function r(a){let _=a[t],p=e[_];if(!Array.isArray(p))throw Object.assign(new Error(`Missing visitor keys for '${_}'.`),{node:a});return p}return r}var K9=jV;var Z9={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","assertions","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes","assertions"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes","assertions"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ImportExpression:["source","attributes"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareEnum:["id","body"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]};var FV=K9(Z9),e5=FV;function Cb(e,t){if(!(e!==null&&typeof e=="object"))return e;if(Array.isArray(e)){for(let a=0;a{var h;(h=d.leadingComments)!=null&&h.some(Y9)&&p.add(Fn(d))}),e=Zm(e,d=>{if(d.type==="ParenthesizedExpression"){let{expression:h}=d;if(h.type==="TypeCastExpression")return h.range=d.range,h;let l=Fn(d);if(!p.has(l))return h.extra={...h.extra,parenthesized:!0},h}})}if(e=Zm(e,p=>{switch(p.type){case"LogicalExpression":if(t5(p))return Eb(p);break;case"VariableDeclaration":{let d=Sb(!1,p.declarations,-1);d!=null&&d.init&&_(p,d);break}case"TSParenthesizedType":return p.typeAnnotation;case"TSTypeParameter":if(typeof p.name=="string"){let d=Fn(p);p.name={type:"Identifier",name:p.name,range:[d,d+p.name.length]}}break;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":{let{exported:d}=p;if(r==="meriyah"&&(d==null?void 0:d.type)==="Identifier"){let h=a.slice(Fn(d),ra(d));(h.startsWith('"')||h.startsWith("'"))&&(p.exported={...p.exported,type:"Literal",value:p.exported.name,raw:h})}break}case"TSUnionType":case"TSIntersectionType":if(p.types.length===1)return p.types[0];break}}),Km(e.comments)){let p=Sb(!1,e.comments,-1);for(let d=e.comments.length-2;d>=0;d--){let h=e.comments[d];ra(h)===Fn(p)&&gu(h)&&gu(p)&&xb(h)&&xb(p)&&(e.comments.splice(d+1,1),h.value+="*//*"+p.value,h.range=[Fn(h),ra(p)]),p=h}}return e.type==="Program"&&(e.range=[0,a.length]),e;function _(p,d){a[ra(d)]!==";"&&(p.range=[Fn(p),ra(d)])}}function t5(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function Eb(e){return t5(e)?Eb({type:"LogicalExpression",operator:e.operator,left:Eb({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[Fn(e.left),ra(e.right.left)]}),right:e.right.right,range:[Fn(e),ra(e)]}):e}var r5=BV;var Ab={loc:!0,range:!0,comment:!0,tokens:!0,loggerFn:!1,project:[],suppressDeprecatedPropertyWarnings:!0};function UV(e){let{message:t,location:r}=e;if(!r)return e;let{start:a,end:_}=r;return R9(t,{loc:{start:{line:a.line,column:a.column+1},end:{line:_.line,column:_.column+1}},cause:e})}var qV=e=>/\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/i.test(e);function zV(e,t){let r=t==null?void 0:t.filepath;if(r&&qV(r))return[{...Ab,filePath:r}];let a=VV(e);return[{...Ab,jsx:a},{...Ab,jsx:!a}]}function WV(e,t){let r=$9(e),a=zV(e,t),_;try{_=j9(a.map(p=>()=>(0,n5.parse)(r,p)))}catch({errors:[p]}){throw UV(p)}return r5(_,{text:e})}function VV(e){return new RegExp(["(?:^[^\"'`]*)"].join(""),"m").test(e)}var HV=X9(WV);var UG=Db;export{UG as default,kb as parsers}; diff --git a/node_modules/prettier/plugins/yaml.js b/node_modules/prettier/plugins/yaml.js index a870916..9cac12e 100644 --- a/node_modules/prettier/plugins/yaml.js +++ b/node_modules/prettier/plugins/yaml.js @@ -1,6 +1,6 @@ (function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.yaml=e()}})(function(){"use strict";var Li=Object.create;var yt=Object.defineProperty;var Ai=Object.getOwnPropertyDescriptor;var Ti=Object.getOwnPropertyNames;var Ci=Object.getPrototypeOf,Mi=Object.prototype.hasOwnProperty;var ee=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),tr=(t,e)=>{for(var n in e)yt(t,n,{get:e[n],enumerable:!0})},nr=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Ti(e))!Mi.call(t,s)&&s!==n&&yt(t,s,{get:()=>e[s],enumerable:!(r=Ai(e,s))||r.enumerable});return t};var rr=(t,e,n)=>(n=t!=null?Li(Ci(t)):{},nr(e||!t||!t.__esModule?yt(n,"default",{value:t,enumerable:!0}):n,t)),ki=t=>nr(yt({},"__esModule",{value:!0}),t);var le=ee(U=>{"use strict";var re={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},lt={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"},No="tag:yaml.org,2002:",Oo={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function Ms(t){let e=[0],n=t.indexOf(` `);for(;n!==-1;)n+=1,e.push(n),n=t.indexOf(` -`,n);return e}function ks(t){let e,n;return typeof t=="string"?(e=Ms(t),n=t):(Array.isArray(t)&&(t=t[0]),t&&t.context&&(t.lineStarts||(t.lineStarts=Ms(t.context.src)),e=t.lineStarts,n=t.context.src)),{lineStarts:e,src:n}}function Tn(t,e){if(typeof t!="number"||t<0)return null;let{lineStarts:n,src:r}=ks(e);if(!n||!r||t>r.length)return null;for(let i=0;i=1)||t>n.length)return null;let s=n[t-1],i=n[t];for(;i&&i>s&&r[i-1]===` +`,n);return e}function ks(t){let e,n;return typeof t=="string"?(e=Ms(t),n=t):(Array.isArray(t)&&(t=t[0]),t&&t.context&&(t.lineStarts||(t.lineStarts=Ms(t.context.src)),e=t.lineStarts,n=t.context.src)),{lineStarts:e,src:n}}function An(t,e){if(typeof t!="number"||t<0)return null;let{lineStarts:n,src:r}=ks(e);if(!n||!r||t>r.length)return null;for(let i=0;i=1)||t>n.length)return null;let s=n[t-1],i=n[t];for(;i&&i>s&&r[i-1]===` `;)--i;return r.slice(s,i)}function Ao({start:t,end:e},n,r=80){let s=Lo(t.line,n);if(!s)return null;let{col:i}=t;if(s.length>r)if(i<=r-10)s=s.substr(0,r-1)+"\u2026";else{let f=Math.round(r/2);s.length>i+f&&(s=s.substr(0,i+f-1)+"\u2026"),i-=s.length-r,s="\u2026"+s.substr(1-r)}let o=1,a="";e&&(e.line===t.line&&i+(e.col-t.col)<=r+1?o=e.col-t.col:(o=Math.min(s.length+1,r)-i,a="\u2026"));let c=i>1?" ".repeat(i-1):"",l="^".repeat(o);return`${s} ${c}${l}${a}`}var Ye=class t{static copy(e){return new t(e.start,e.end)}constructor(e,n){this.start=e,this.end=n||e}isEmpty(){return typeof this.start!="number"||!this.end||this.end<=this.start}setOrigRange(e,n){let{start:r,end:s}=this;if(e.length===0||s<=e[0])return this.origStart=r,this.origEnd=s,n;let i=n;for(;ir);)++i;this.origStart=r+i;let o=i;for(;i=s);)++i;return this.origEnd=s+i,o}},se=class t{static addStringTerminator(e,n,r){if(r[r.length-1]===` `)return r;let s=t.endOfWhiteSpace(e,n);return s>=e.length||e[s]===` @@ -20,11 +20,11 @@ ${c}${l}${a}`}var Ye=class t{static copy(e){return new t(e.start,e.end)}construc `;){switch(a){case` `:s=0,n+=1,o+=` `;break;case" ":s<=r&&(i=!0),n=t.endOfWhiteSpace(e,n+2)-1;break;case" ":s+=1,n+=1;break}a=e[n+1]}return o||(o=" "),a&&s<=r&&(i=!0),{fold:o,offset:n,error:i}}constructor(e,n,r){Object.defineProperty(this,"context",{value:r||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=n||[],this.type=e,this.value=null}getPropValue(e,n,r){if(!this.context)return null;let{src:s}=this.context,i=this.props[e];return i&&s[i.start]===n?s.slice(i.start+(r?1:0),i.end):null}get anchor(){for(let e=0;e0?e.join(` -`):null}commentHasRequiredWhitespace(e){let{src:n}=this.context;if(this.header&&e===this.header.end||!this.valueRange)return!1;let{end:r}=this.valueRange;return e!==r||t.atBlank(n,r-1)}get hasComment(){if(this.context){let{src:e}=this.context;for(let n=0;nr.setOrigRange(e,n)),n}toString(){let{context:{src:e},range:n,value:r}=this;if(r!=null)return r;let s=e.slice(n.start,n.end);return t.addStringTerminator(e,n.end,s)}},de=class extends Error{constructor(e,n,r){if(!r||!(n instanceof se))throw new Error(`Invalid arguments for new ${e}`);super(),this.name=e,this.message=r,this.source=n}makePretty(){if(!this.source)return;this.nodeType=this.source.type;let e=this.source.context&&this.source.context.root;if(typeof this.offset=="number"){this.range=new Ye(this.offset,this.offset+1);let n=e&&Tn(this.offset,e);if(n){let r={line:n.line,col:n.col+1};this.linePos={start:n,end:r}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){let{line:n,col:r}=this.linePos.start;this.message+=` at line ${n}, column ${r}`;let s=e&&Ao(this.linePos,e);s&&(this.message+=`: +`):null}commentHasRequiredWhitespace(e){let{src:n}=this.context;if(this.header&&e===this.header.end||!this.valueRange)return!1;let{end:r}=this.valueRange;return e!==r||t.atBlank(n,r-1)}get hasComment(){if(this.context){let{src:e}=this.context;for(let n=0;nr.setOrigRange(e,n)),n}toString(){let{context:{src:e},range:n,value:r}=this;if(r!=null)return r;let s=e.slice(n.start,n.end);return t.addStringTerminator(e,n.end,s)}},de=class extends Error{constructor(e,n,r){if(!r||!(n instanceof se))throw new Error(`Invalid arguments for new ${e}`);super(),this.name=e,this.message=r,this.source=n}makePretty(){if(!this.source)return;this.nodeType=this.source.type;let e=this.source.context&&this.source.context.root;if(typeof this.offset=="number"){this.range=new Ye(this.offset,this.offset+1);let n=e&&An(this.offset,e);if(n){let r={line:n.line,col:n.col+1};this.linePos={start:n,end:r}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){let{line:n,col:r}=this.linePos.start;this.message+=` at line ${n}, column ${r}`;let s=e&&Ao(this.linePos,e);s&&(this.message+=`: ${s} -`)}delete this.source}},Cn=class extends de{constructor(e,n){super("YAMLReferenceError",e,n)}},ft=class extends de{constructor(e,n){super("YAMLSemanticError",e,n)}},Mn=class extends de{constructor(e,n){super("YAMLSyntaxError",e,n)}},kn=class extends de{constructor(e,n){super("YAMLWarning",e,n)}};function To(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var vn=class t extends se{static endOfLine(e,n,r){let s=e[n],i=n;for(;s&&s!==` +`)}delete this.source}},Tn=class extends de{constructor(e,n){super("YAMLReferenceError",e,n)}},ft=class extends de{constructor(e,n){super("YAMLSemanticError",e,n)}},Cn=class extends de{constructor(e,n){super("YAMLSyntaxError",e,n)}},Mn=class extends de{constructor(e,n){super("YAMLWarning",e,n)}};function To(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var kn=class t extends se{static endOfLine(e,n,r){let s=e[n],i=n;for(;s&&s!==` `&&!(r&&(s==="["||s==="]"||s==="{"||s==="}"||s===","));){let o=e[i+1];if(s===":"&&(!o||o===` `||o===" "||o===" "||r&&o===",")||(s===" "||s===" ")&&o==="#")break;i+=1,s=o}return i}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:n}=this.valueRange,{src:r}=this.context,s=r[n-1];for(;el?r.slice(l,a+1):c)}else i+=c}let o=r[e];switch(o){case" ":{let a="Plain value cannot start with a tab character";return{errors:[new ft(this,a)],str:i}}case"@":case"`":{let a=`Plain value cannot start with reserved character ${o}`;return{errors:[new ft(this,a)],str:i}}default:return i}}parseBlockValue(e){let{indent:n,inFlow:r,src:s}=this.context,i=e,o=e;for(let a=s[i];a===` `&&!se.atDocumentBoundary(s,i+1);a=s[i]){let c=se.endOfBlockIndent(s,n,i+1);if(c===null||s[c]==="#")break;s[c]===` `?i=c:(o=t.endOfLine(s,c,r),i=o)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=o,o}parse(e,n){this.context=e;let{inFlow:r,src:s}=e,i=n,o=s[i];return o&&o!=="#"&&o!==` -`&&(i=t.endOfLine(s,n,r)),this.valueRange=new Ye(n,i),i=se.endOfWhiteSpace(s,i),i=this.parseComment(i),(!this.hasComment||this.valueRange.isEmpty())&&(i=this.parseBlockValue(i)),i}};U.Char=re;U.Node=se;U.PlainValue=vn;U.Range=Ye;U.Type=lt;U.YAMLError=de;U.YAMLReferenceError=Cn;U.YAMLSemanticError=ft;U.YAMLSyntaxError=Mn;U.YAMLWarning=kn;U._defineProperty=To;U.defaultTagPrefix=No;U.defaultTags=Oo});var Is=ee(vs=>{"use strict";var u=le(),Ee=class extends u.Node{constructor(){super(u.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(e,n){return this.context=e,this.range=new u.Range(n,n+1),n+1}},ut=class extends u.Node{constructor(e,n){super(e,n),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,n){this.context=e;let{parseNode:r,src:s}=e,{atLineStart:i,lineStart:o}=e;!i&&this.type===u.Type.SEQ_ITEM&&(this.error=new u.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));let a=i?n-o:e.indent,c=u.Node.endOfWhiteSpace(s,n+1),l=s[c],f=l==="#",m=[],d=null;for(;l===` +`&&(i=t.endOfLine(s,n,r)),this.valueRange=new Ye(n,i),i=se.endOfWhiteSpace(s,i),i=this.parseComment(i),(!this.hasComment||this.valueRange.isEmpty())&&(i=this.parseBlockValue(i)),i}};U.Char=re;U.Node=se;U.PlainValue=kn;U.Range=Ye;U.Type=lt;U.YAMLError=de;U.YAMLReferenceError=Tn;U.YAMLSemanticError=ft;U.YAMLSyntaxError=Cn;U.YAMLWarning=Mn;U._defineProperty=To;U.defaultTagPrefix=No;U.defaultTags=Oo});var Is=ee(vs=>{"use strict";var u=le(),Ee=class extends u.Node{constructor(){super(u.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(e,n){return this.context=e,this.range=new u.Range(n,n+1),n+1}},ut=class extends u.Node{constructor(e,n){super(e,n),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,n){this.context=e;let{parseNode:r,src:s}=e,{atLineStart:i,lineStart:o}=e;!i&&this.type===u.Type.SEQ_ITEM&&(this.error=new u.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));let a=i?n-o:e.indent,c=u.Node.endOfWhiteSpace(s,n+1),l=s[c],f=l==="#",m=[],d=null;for(;l===` `||l==="#";){if(l==="#"){let h=u.Node.endOfLine(s,c+1);m.push(new u.Range(c,h)),c=h}else{i=!0,o=c+1;let h=u.Node.endOfWhiteSpace(s,o);s[h]===` -`&&m.length===0&&(d=new Ee,o=d.parse({src:s},o)),c=u.Node.endOfIndent(s,o)}l=s[c]}if(u.Node.nextNodeIsIndented(l,c-(o+a),this.type!==u.Type.SEQ_ITEM)?this.node=r({atLineStart:i,inCollection:!1,indent:a,lineStart:o,parent:this},c):l&&o>n+1&&(c=o-1),this.node){if(d){let h=e.parent.items||e.parent.contents;h&&h.push(d)}m.length&&Array.prototype.push.apply(this.props,m),c=this.node.range.end}else if(f){let h=m[0];this.props.push(h),c=h.end}else c=u.Node.endOfLine(s,n+1);let y=this.node?this.node.valueRange.end:c;return this.valueRange=new u.Range(n,y),c}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.node?this.node.setOrigRanges(e,n):n}toString(){let{context:{src:e},node:n,range:r,value:s}=this;if(s!=null)return s;let i=n?e.slice(r.start,n.range.start)+String(n):e.slice(r.start,r.end);return u.Node.addStringTerminator(e,r.end,i)}},ye=class extends u.Node{constructor(){super(u.Type.COMMENT)}parse(e,n){this.context=e;let r=this.parseComment(n);return this.range=new u.Range(n,r),r}};function In(t){let e=t;for(;e instanceof ut;)e=e.node;if(!(e instanceof $t))return null;let n=e.items.length,r=-1;for(let o=n-1;o>=0;--o){let a=e.items[o];if(a.type===u.Type.COMMENT){let{indent:c,lineStart:l}=a.context;if(c>0&&a.range.start>=l+c)break;r=o}else if(a.type===u.Type.BLANK_LINE)r=o;else break}if(r===-1)return null;let s=e.items.splice(r,n-r),i=s[0].range.start;for(;e.range.end=i,e.valueRange&&e.valueRange.end>i&&(e.valueRange.end=i),e!==t;)e=e.context.parent;return s}var $t=class t extends u.Node{static nextContentHasIndent(e,n,r){let s=u.Node.endOfLine(e,n)+1;n=u.Node.endOfWhiteSpace(e,s);let i=e[n];return i?n>=s+r?!0:i!=="#"&&i!==` -`?!1:t.nextContentHasIndent(e,n,r):!1}constructor(e){super(e.type===u.Type.SEQ_ITEM?u.Type.SEQ:u.Type.MAP);for(let r=e.props.length-1;r>=0;--r)if(e.props[r].start0}parse(e,n){this.context=e;let{parseNode:r,src:s}=e,i=u.Node.startOfLine(s,n),o=this.items[0];o.context.parent=this,this.valueRange=u.Range.copy(o.valueRange);let a=o.range.start-o.context.lineStart,c=n;c=u.Node.normalizeOffset(s,c);let l=s[c],f=u.Node.endOfWhiteSpace(s,i)===c,m=!1;for(;l;){for(;l===` +`&&m.length===0&&(d=new Ee,o=d.parse({src:s},o)),c=u.Node.endOfIndent(s,o)}l=s[c]}if(u.Node.nextNodeIsIndented(l,c-(o+a),this.type!==u.Type.SEQ_ITEM)?this.node=r({atLineStart:i,inCollection:!1,indent:a,lineStart:o,parent:this},c):l&&o>n+1&&(c=o-1),this.node){if(d){let h=e.parent.items||e.parent.contents;h&&h.push(d)}m.length&&Array.prototype.push.apply(this.props,m),c=this.node.range.end}else if(f){let h=m[0];this.props.push(h),c=h.end}else c=u.Node.endOfLine(s,n+1);let y=this.node?this.node.valueRange.end:c;return this.valueRange=new u.Range(n,y),c}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.node?this.node.setOrigRanges(e,n):n}toString(){let{context:{src:e},node:n,range:r,value:s}=this;if(s!=null)return s;let i=n?e.slice(r.start,n.range.start)+String(n):e.slice(r.start,r.end);return u.Node.addStringTerminator(e,r.end,i)}},ye=class extends u.Node{constructor(){super(u.Type.COMMENT)}parse(e,n){this.context=e;let r=this.parseComment(n);return this.range=new u.Range(n,r),r}};function vn(t){let e=t;for(;e instanceof ut;)e=e.node;if(!(e instanceof $t))return null;let n=e.items.length,r=-1;for(let o=n-1;o>=0;--o){let a=e.items[o];if(a.type===u.Type.COMMENT){let{indent:c,lineStart:l}=a.context;if(c>0&&a.range.start>=l+c)break;r=o}else if(a.type===u.Type.BLANK_LINE)r=o;else break}if(r===-1)return null;let s=e.items.splice(r,n-r),i=s[0].range.start;for(;e.range.end=i,e.valueRange&&e.valueRange.end>i&&(e.valueRange.end=i),e!==t;)e=e.context.parent;return s}var $t=class t extends u.Node{static nextContentHasIndent(e,n,r){let s=u.Node.endOfLine(e,n)+1;n=u.Node.endOfWhiteSpace(e,s);let i=e[n];return i?n>=s+r?!0:i!=="#"&&i!==` +`?!1:t.nextContentHasIndent(e,n,r):!1}constructor(e){super(e.type===u.Type.SEQ_ITEM?u.Type.SEQ:u.Type.MAP);for(let r=e.props.length-1;r>=0;--r)if(e.props[r].start0}parse(e,n){this.context=e;let{parseNode:r,src:s}=e,i=u.Node.startOfLine(s,n),o=this.items[0];o.context.parent=this,this.valueRange=u.Range.copy(o.valueRange);let a=o.range.start-o.context.lineStart,c=n;c=u.Node.normalizeOffset(s,c);let l=s[c],f=u.Node.endOfWhiteSpace(s,i)===c,m=!1;for(;l;){for(;l===` `||l==="#";){if(f&&l===` `&&!m){let h=new Ee;if(c=h.parse({src:s},c),this.valueRange.end=c,c>=s.length){l=null;break}this.items.push(h),c-=1}else if(l==="#"){if(c=s.length){l=null;break}}if(i=c+1,c=u.Node.endOfIndent(s,i),u.Node.atBlank(s,c)){let h=u.Node.endOfWhiteSpace(s,c),g=s[h];(!g||g===` `||g==="#")&&(c=h)}l=s[c],f=!0}if(!l)break;if(c!==i+a&&(f||l!==":")){if(cn&&(c=i);break}else if(!this.error){let h="All collection items must start at the same column";this.error=new u.YAMLSyntaxError(this,h)}}if(o.type===u.Type.SEQ_ITEM){if(l!=="-"){i>n&&(c=i);break}}else if(l==="-"&&!this.error){let h=s[c+1];if(!h||h===` `||h===" "||h===" "){let g="A collection cannot be both a mapping and a sequence";this.error=new u.YAMLSyntaxError(this,g)}}let d=r({atLineStart:f,inCollection:!0,indent:a,lineStart:i,parent:this},c);if(!d)return c;if(this.items.push(d),this.valueRange.end=d.valueRange.end,c=u.Node.normalizeOffset(s,d.range.end),l=s[c],f=!1,m=d.includesTrailingLines,l){let h=c-1,g=s[h];for(;g===" "||g===" ";)g=s[--h];g===` -`&&(i=h+1,f=!0)}let y=In(d);y&&Array.prototype.push.apply(this.items,y)}return c}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.items.forEach(r=>{n=r.setOrigRanges(e,n)}),n}toString(){let{context:{src:e},items:n,range:r,value:s}=this;if(s!=null)return s;let i=e.slice(r.start,n[0].range.start)+String(n[0]);for(let o=1;o{n=r.setOrigRanges(e,n)}),n}toString(){let{context:{src:e},items:n,range:r,value:s}=this;if(s!=null)return s;let i=e.slice(r.start,n[0].range.start)+String(n[0]);for(let o=1;o0&&(this.contents=this.directives,this.directives=[]),i}return n[i]?(this.directivesEndMarker=new u.Range(i,i+3),i+3):(s?this.error=new u.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),i)}parseContents(e){let{parseNode:n,src:r}=this.context;this.contents||(this.contents=[]);let s=e;for(;r[s-1]==="-";)s-=1;let i=u.Node.endOfWhiteSpace(r,e),o=s===e;for(this.valueRange=new u.Range(i);!u.Node.atDocumentBoundary(r,i,u.Char.DOCUMENT_END);){switch(r[i]){case` -`:if(o){let a=new Ee;i=a.parse({src:r},i),i0&&(this.contents=this.directives,this.directives=[]),i}return n[i]?(this.directivesEndMarker=new u.Range(i,i+3),i+3):(s?this.error=new u.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),i)}parseContents(e){let{parseNode:n,src:r}=this.context;this.contents||(this.contents=[]);let s=e;for(;r[s-1]==="-";)s-=1;let i=u.Node.endOfWhiteSpace(r,e),o=s===e;for(this.valueRange=new u.Range(i);!u.Node.atDocumentBoundary(r,i,u.Char.DOCUMENT_END);){switch(r[i]){case` +`:if(o){let a=new Ee;i=a.parse({src:r},i),i{n=r.setOrigRanges(e,n)}),this.directivesEndMarker&&(n=this.directivesEndMarker.setOrigRange(e,n)),this.contents.forEach(r=>{n=r.setOrigRanges(e,n)}),this.documentEndMarker&&(n=this.documentEndMarker.setOrigRange(e,n)),n}toString(){let{contents:e,directives:n,value:r}=this;if(r!=null)return r;let s=n.join("");return e.length>0&&((n.length>0||e[0].type===u.Type.COMMENT)&&(s+=`--- `),s+=e.join("")),s[s.length-1]!==` `&&(s+=` -`),s}},xn=class extends u.Node{parse(e,n){this.context=e;let{src:r}=e,s=u.Node.endOfIdentifier(r,n+1);return this.valueRange=new u.Range(n+1,s),s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}},fe={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"},Rn=class extends u.Node{constructor(e,n){super(e,n),this.blockIndent=null,this.chomping=fe.CLIP,this.header=null}get includesTrailingLines(){return this.chomping===fe.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:n}=this.valueRange,{indent:r,src:s}=this.context;if(this.valueRange.isEmpty())return"";let i=null,o=s[n-1];for(;o===` +`),s}},_n=class extends u.Node{parse(e,n){this.context=e;let{src:r}=e,s=u.Node.endOfIdentifier(r,n+1);return this.valueRange=new u.Range(n+1,s),s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}},fe={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"},xn=class extends u.Node{constructor(e,n){super(e,n),this.blockIndent=null,this.chomping=fe.CLIP,this.header=null}get includesTrailingLines(){return this.chomping===fe.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:n}=this.valueRange,{indent:r,src:s}=this.context;if(this.valueRange.isEmpty())return"";let i=null,o=s[n-1];for(;o===` `||o===" "||o===" ";){if(n-=1,n<=e){if(this.chomping===fe.KEEP)break;return""}o===` `&&(i=n),o=s[n-1]}let a=n+1;i&&(this.chomping===fe.KEEP?(a=i,n=this.valueRange.end):n=i);let c=r+this.blockIndent,l=this.type===u.Type.BLOCK_FOLDED,f=!0,m="",d="",y=!1;for(let h=e;ha&&(a=m);r[l]===` -`?i=l:i=o=u.Node.endOfLine(r,l)}return this.chomping!==fe.KEEP&&(i=r[o]?o+1:o),this.valueRange=new u.Range(e+1,i),i}parse(e,n){this.context=e;let{src:r}=e,s=this.parseBlockHeader(n);return s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s=this.parseBlockValue(s),s}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.header?this.header.setOrigRange(e,n):n}},Dn=class extends u.Node{constructor(e,n){super(e,n),this.items=null}prevNodeIsJsonLike(e=this.items.length){let n=this.items[e-1];return!!n&&(n.jsonLike||n.type===u.Type.COMMENT&&this.prevNodeIsJsonLike(e-1))}parse(e,n){this.context=e;let{parseNode:r,src:s}=e,{indent:i,lineStart:o}=e,a=s[n];this.items=[{char:a,offset:n}];let c=u.Node.endOfWhiteSpace(s,n+1);for(a=s[c];a&&a!=="]"&&a!=="}";){switch(a){case` +`?i=l:i=o=u.Node.endOfLine(r,l)}return this.chomping!==fe.KEEP&&(i=r[o]?o+1:o),this.valueRange=new u.Range(e+1,i),i}parse(e,n){this.context=e;let{src:r}=e,s=this.parseBlockHeader(n);return s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s=this.parseBlockValue(s),s}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.header?this.header.setOrigRange(e,n):n}},Rn=class extends u.Node{constructor(e,n){super(e,n),this.items=null}prevNodeIsJsonLike(e=this.items.length){let n=this.items[e-1];return!!n&&(n.jsonLike||n.type===u.Type.COMMENT&&this.prevNodeIsJsonLike(e-1))}parse(e,n){this.context=e;let{parseNode:r,src:s}=e,{indent:i,lineStart:o}=e,a=s[n];this.items=[{char:a,offset:n}];let c=u.Node.endOfWhiteSpace(s,n+1);for(a=s[c];a&&a!=="]"&&a!=="}";){switch(a){case` `:{o=c+1;let l=u.Node.endOfWhiteSpace(s,o);if(s[l]===` `){let f=new Ee;o=f.parse({src:s},o),this.items.push(f)}if(c=u.Node.endOfIndent(s,o),c<=o+i&&(a=s[c],c{if(r instanceof u.Node)n=r.setOrigRanges(e,n);else if(e.length===0)r.origOffset=r.offset;else{let s=n;for(;sr.offset);)++s;r.origOffset=r.offset+s,n=s}}),n}toString(){let{context:{src:e},items:n,range:r,value:s}=this;if(s!=null)return s;let i=n.filter(c=>c instanceof u.Node),o="",a=r.start;return i.forEach(c=>{let l=e.slice(a,c.range.start);a=c.range.end,o+=l+String(c),o[o.length-1]===` `&&e[a-1]!==` `&&e[a]===` -`&&(a+=1)}),o+=e.slice(a,r.end),u.Node.addStringTerminator(e,r.end,o)}},Yn=class t extends u.Node{static endOfQuote(e,n){let r=e[n];for(;r&&r!=='"';)n+=r==="\\"?2:1,r=e[n];return n+1}get strValue(){if(!this.valueRange||!this.context)return null;let e=[],{start:n,end:r}=this.valueRange,{indent:s,src:i}=this.context;i[r-1]!=='"'&&e.push(new u.YAMLSyntaxError(this,'Missing closing "quote'));let o="";for(let a=n+1;al?i.slice(l,a+1):c)}else o+=c}return e.length>0?{errors:e,str:o}:o}parseCharCode(e,n,r){let{src:s}=this.context,i=s.substr(e,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;return isNaN(a)?(r.push(new u.YAMLSyntaxError(this,`Invalid escape sequence ${s.substr(e-2,n+2)}`)),s.substr(e-2,n+2)):String.fromCodePoint(a)}parse(e,n){this.context=e;let{src:r}=e,s=t.endOfQuote(r,n+1);return this.valueRange=new u.Range(n,s),s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}},Bn=class t extends u.Node{static endOfQuote(e,n){let r=e[n];for(;r;)if(r==="'"){if(e[n+1]!=="'")break;r=e[n+=2]}else r=e[n+=1];return n+1}get strValue(){if(!this.valueRange||!this.context)return null;let e=[],{start:n,end:r}=this.valueRange,{indent:s,src:i}=this.context;i[r-1]!=="'"&&e.push(new u.YAMLSyntaxError(this,"Missing closing 'quote"));let o="";for(let a=n+1;al?i.slice(l,a+1):c)}else o+=c}return e.length>0?{errors:e,str:o}:o}parseCharCode(e,n,r){let{src:s}=this.context,i=s.substr(e,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;return isNaN(a)?(r.push(new u.YAMLSyntaxError(this,`Invalid escape sequence ${s.substr(e-2,n+2)}`)),s.substr(e-2,n+2)):String.fromCodePoint(a)}parse(e,n){this.context=e;let{src:r}=e,s=t.endOfQuote(r,n+1);return this.valueRange=new u.Range(n,s),s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}},Yn=class t extends u.Node{static endOfQuote(e,n){let r=e[n];for(;r;)if(r==="'"){if(e[n+1]!=="'")break;r=e[n+=2]}else r=e[n+=1];return n+1}get strValue(){if(!this.valueRange||!this.context)return null;let e=[],{start:n,end:r}=this.valueRange,{indent:s,src:i}=this.context;i[r-1]!=="'"&&e.push(new u.YAMLSyntaxError(this,"Missing closing 'quote"));let o="";for(let a=n+1;al?i.slice(l,a+1):c)}else o+=c}return e.length>0?{errors:e,str:o}:o}parse(e,n){this.context=e;let{src:r}=e,s=t.endOfQuote(r,n+1);return this.valueRange=new u.Range(n,s),s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}};function Co(t,e){switch(t){case u.Type.ALIAS:return new xn(t,e);case u.Type.BLOCK_FOLDED:case u.Type.BLOCK_LITERAL:return new Rn(t,e);case u.Type.FLOW_MAP:case u.Type.FLOW_SEQ:return new Dn(t,e);case u.Type.MAP_KEY:case u.Type.MAP_VALUE:case u.Type.SEQ_ITEM:return new ut(t,e);case u.Type.COMMENT:case u.Type.PLAIN:return new u.PlainValue(t,e);case u.Type.QUOTE_DOUBLE:return new Yn(t,e);case u.Type.QUOTE_SINGLE:return new Bn(t,e);default:return null}}var $n=class t{static parseType(e,n,r){switch(e[n]){case"*":return u.Type.ALIAS;case">":return u.Type.BLOCK_FOLDED;case"|":return u.Type.BLOCK_LITERAL;case"{":return u.Type.FLOW_MAP;case"[":return u.Type.FLOW_SEQ;case"?":return!r&&u.Node.atBlank(e,n+1,!0)?u.Type.MAP_KEY:u.Type.PLAIN;case":":return!r&&u.Node.atBlank(e,n+1,!0)?u.Type.MAP_VALUE:u.Type.PLAIN;case"-":return!r&&u.Node.atBlank(e,n+1,!0)?u.Type.SEQ_ITEM:u.Type.PLAIN;case'"':return u.Type.QUOTE_DOUBLE;case"'":return u.Type.QUOTE_SINGLE;default:return u.Type.PLAIN}}constructor(e={},{atLineStart:n,inCollection:r,inFlow:s,indent:i,lineStart:o,parent:a}={}){u._defineProperty(this,"parseNode",(c,l)=>{if(u.Node.atDocumentBoundary(this.src,l))return null;let f=new t(this,c),{props:m,type:d,valueStart:y}=f.parseProps(l),h=Co(d,m),g=h.parse(f,y);if(h.range=new u.Range(l,g),g<=l&&(h.error=new Error("Node#parse consumed no characters"),h.error.parseEnd=g,h.error.source=h,h.range.end=l+1),f.nodeStartsCollection(h)){!h.error&&!f.atLineStart&&f.parent.type===u.Type.DOCUMENT&&(h.error=new u.YAMLSyntaxError(h,"Block collection must not have preceding content here (e.g. directives-end indicator)"));let w=new $t(h);return g=w.parse(new t(f),g),w.range=new u.Range(l,g),w}return h}),this.atLineStart=n??(e.atLineStart||!1),this.inCollection=r??(e.inCollection||!1),this.inFlow=s??(e.inFlow||!1),this.indent=i??e.indent,this.lineStart=o??e.lineStart,this.parent=a??(e.parent||{}),this.root=e.root,this.src=e.src}nodeStartsCollection(e){let{inCollection:n,inFlow:r,src:s}=this;if(n||r)return!1;if(e instanceof ut)return!0;let i=e.range.end;return s[i]===` +`&&(o+=a>l?i.slice(l,a+1):c)}else o+=c}return e.length>0?{errors:e,str:o}:o}parse(e,n){this.context=e;let{src:r}=e,s=t.endOfQuote(r,n+1);return this.valueRange=new u.Range(n,s),s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}};function Co(t,e){switch(t){case u.Type.ALIAS:return new _n(t,e);case u.Type.BLOCK_FOLDED:case u.Type.BLOCK_LITERAL:return new xn(t,e);case u.Type.FLOW_MAP:case u.Type.FLOW_SEQ:return new Rn(t,e);case u.Type.MAP_KEY:case u.Type.MAP_VALUE:case u.Type.SEQ_ITEM:return new ut(t,e);case u.Type.COMMENT:case u.Type.PLAIN:return new u.PlainValue(t,e);case u.Type.QUOTE_DOUBLE:return new Dn(t,e);case u.Type.QUOTE_SINGLE:return new Yn(t,e);default:return null}}var Bn=class t{static parseType(e,n,r){switch(e[n]){case"*":return u.Type.ALIAS;case">":return u.Type.BLOCK_FOLDED;case"|":return u.Type.BLOCK_LITERAL;case"{":return u.Type.FLOW_MAP;case"[":return u.Type.FLOW_SEQ;case"?":return!r&&u.Node.atBlank(e,n+1,!0)?u.Type.MAP_KEY:u.Type.PLAIN;case":":return!r&&u.Node.atBlank(e,n+1,!0)?u.Type.MAP_VALUE:u.Type.PLAIN;case"-":return!r&&u.Node.atBlank(e,n+1,!0)?u.Type.SEQ_ITEM:u.Type.PLAIN;case'"':return u.Type.QUOTE_DOUBLE;case"'":return u.Type.QUOTE_SINGLE;default:return u.Type.PLAIN}}constructor(e={},{atLineStart:n,inCollection:r,inFlow:s,indent:i,lineStart:o,parent:a}={}){u._defineProperty(this,"parseNode",(c,l)=>{if(u.Node.atDocumentBoundary(this.src,l))return null;let f=new t(this,c),{props:m,type:d,valueStart:y}=f.parseProps(l),h=Co(d,m),g=h.parse(f,y);if(h.range=new u.Range(l,g),g<=l&&(h.error=new Error("Node#parse consumed no characters"),h.error.parseEnd=g,h.error.source=h,h.range.end=l+1),f.nodeStartsCollection(h)){!h.error&&!f.atLineStart&&f.parent.type===u.Type.DOCUMENT&&(h.error=new u.YAMLSyntaxError(h,"Block collection must not have preceding content here (e.g. directives-end indicator)"));let w=new $t(h);return g=w.parse(new t(f),g),w.range=new u.Range(l,g),w}return h}),this.atLineStart=n??(e.atLineStart||!1),this.inCollection=r??(e.inCollection||!1),this.inFlow=s??(e.inFlow||!1),this.indent=i??e.indent,this.lineStart=o??e.lineStart,this.parent=a??(e.parent||{}),this.root=e.root,this.src=e.src}nodeStartsCollection(e){let{inCollection:n,inFlow:r,src:s}=this;if(n||r)return!1;if(e instanceof ut)return!0;let i=e.range.end;return s[i]===` `||s[i-1]===` `?!1:(i=u.Node.endOfWhiteSpace(s,i),s[i]===":")}parseProps(e){let{inFlow:n,parent:r,src:s}=this,i=[],o=!1;e=this.atLineStart?u.Node.endOfIndent(s,e):u.Node.endOfWhiteSpace(s,e);let a=s[e];for(;a===u.Char.ANCHOR||a===u.Char.COMMENT||a===u.Char.TAG||a===` `;){if(a===` `){let l=e,f;do f=l+1,l=u.Node.endOfIndent(s,f);while(s[l]===` `);let m=l-(f+this.indent),d=r.type===u.Type.SEQ_ITEM&&r.context.atLineStart;if(s[l]!=="#"&&!u.Node.nextNodeIsIndented(s[l],m,!d))break;this.atLineStart=!0,this.lineStart=f,o=!1,e=l}else if(a===u.Char.COMMENT){let l=u.Node.endOfLine(s,e+1);i.push(new u.Range(e,l)),e=l}else{let l=u.Node.endOfIdentifier(s,e+1);a===u.Char.TAG&&s[l]===","&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(s.slice(e+1,l+13))&&(l=u.Node.endOfIdentifier(s,l+5)),i.push(new u.Range(e,l)),o=!0,e=u.Node.endOfWhiteSpace(s,l)}a=s[e]}o&&a===":"&&u.Node.atBlank(s,e+1,!0)&&(e-=1);let c=t.parseType(s,e,n);return{props:i,type:c,valueStart:e}}};function Mo(t){let e=[];t.indexOf("\r")!==-1&&(t=t.replace(/\r\n?/g,(s,i)=>(s.length>1&&e.push(i),` -`)));let n=[],r=0;do{let s=new _n,i=new $n({src:t});r=s.parse(i,r),n.push(s)}while(r{if(e.length===0)return!1;for(let i=1;in.join(`... +`)));let n=[],r=0;do{let s=new Pn,i=new Bn({src:t});r=s.parse(i,r),n.push(s)}while(r{if(e.length===0)return!1;for(let i=1;in.join(`... `),n}vs.parse=Mo});var $e=ee(k=>{"use strict";var p=le();function ko(t,e,n){return n?`#${n.replace(/[\s\S]^/gm,`$&${e}#`)} ${e}${t}`:t}function Be(t,e,n){return n?n.indexOf(` `)===-1?`${t} #${n}`:`${t} @@ -101,61 +101,61 @@ ${_}`}L=c.comment}else c&&typeof c=="object"&&(c=m.schema.createNode(c,!0));e.im ${e.indent}`:!f&&c instanceof W?(!(M[0]==="["||M[0]==="{")||M.includes(` `))&&(A=` ${e.indent}`):M[0]===` -`&&(A=""),g&&!L&&r&&r(),Be(w+A+M,e.indent,L)}};p._defineProperty(T,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var qt=(t,e)=>{if(t instanceof we){let n=e.get(t.source);return n.count*n.aliasCount}else if(t instanceof W){let n=0;for(let r of t.items){let s=qt(r,e);s>n&&(n=s)}return n}else if(t instanceof T){let n=qt(t.key,e),r=qt(t.value,e);return Math.max(n,r)}return 1},we=class t extends V{static stringify({range:e,source:n},{anchors:r,doc:s,implicitKey:i,inStringifyKey:o}){let a=Object.keys(r).find(l=>r[l]===n);if(!a&&o&&(a=s.anchors.getName(n)||s.anchors.newName()),a)return`*${a}${i?" ":""}`;let c=s.anchors.getName(n)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${c} [${e}]`)}constructor(e){super(),this.source=e,this.type=p.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,n){if(!n)return ue(this.source,e,n);let{anchors:r,maxAliasCount:s}=n,i=r.get(this.source);if(!i||i.res===void 0){let o="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new p.YAMLReferenceError(this.cstNode,o):new ReferenceError(o)}if(s>=0&&(i.count+=1,i.aliasCount===0&&(i.aliasCount=qt(this.source,r)),i.count*i.aliasCount>s)){let o="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new p.YAMLReferenceError(this.cstNode,o):new ReferenceError(o)}return i.res}toString(e){return t.stringify(this,e)}};p._defineProperty(we,"default",!0);function pt(t,e){let n=e instanceof P?e.value:e;for(let r of t)if(r instanceof T&&(r.key===e||r.key===n||r.key&&r.key.value===n))return r}var mt=class extends W{add(e,n){e?e instanceof T||(e=new T(e.key||e,e.value)):e=new T(e);let r=pt(this.items,e.key),s=this.schema&&this.schema.sortMapEntries;if(r)if(n)r.value=e.value;else throw new Error(`Key ${e.key} already set`);else if(s){let i=this.items.findIndex(o=>s(e,o)<0);i===-1?this.items.push(e):this.items.splice(i,0,e)}else this.items.push(e)}delete(e){let n=pt(this.items,e);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(e,n){let r=pt(this.items,e),s=r&&r.value;return!n&&s instanceof P?s.value:s}has(e){return!!pt(this.items,e)}set(e,n){this.add(new T(e,n),!0)}toJSON(e,n,r){let s=r?new r:n&&n.mapAsMap?new Map:{};n&&n.onCreate&&n.onCreate(s);for(let i of this.items)i.addToJSMap(n,s);return s}toString(e,n,r){if(!e)return JSON.stringify(this);for(let s of this.items)if(!(s instanceof T))throw new Error(`Map items must all be pairs; found ${JSON.stringify(s)} instead`);return super.toString(e,{blockItem:s=>s.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},n,r)}},Ds="<<",Vt=class extends T{constructor(e){if(e instanceof T){let n=e.value;n instanceof pe||(n=new pe,n.items.push(e.value),n.range=e.value.range),super(e.key,n),this.range=e.range}else super(new P(Ds),new pe);this.type=T.Type.MERGE_PAIR}addToJSMap(e,n){for(let{source:r}of this.value.items){if(!(r instanceof mt))throw new Error("Merge sources must be maps");let s=r.toJSON(null,e,Map);for(let[i,o]of s)n instanceof Map?n.has(i)||n.set(i,o):n instanceof Set?n.add(i):Object.prototype.hasOwnProperty.call(n,i)||Object.defineProperty(n,i,{value:o,writable:!0,enumerable:!0,configurable:!0})}return n}toString(e,n){let r=this.value;if(r.items.length>1)return super.toString(e,n);this.value=r.items[0];let s=super.toString(e,n);return this.value=r,s}},Io={defaultType:p.Type.BLOCK_LITERAL,lineWidth:76},Po={trueStr:"true",falseStr:"false"},_o={asBigInt:!1},xo={nullStr:"null"},be={defaultType:p.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function qn(t,e,n){for(let{format:r,test:s,resolve:i}of e)if(s){let o=t.match(s);if(o){let a=i.apply(null,o);return a instanceof P||(a=new P(a)),r&&(a.format=r),a}}return n&&(t=n(t)),new P(t)}var Ys="flow",Fn="block",Ut="quoted",_s=(t,e)=>{let n=t[e+1];for(;n===" "||n===" ";){do n=t[e+=1];while(n&&n!==` -`);n=t[e+1]}return e};function Wt(t,e,n,{indentAtStart:r,lineWidth:s=80,minContentWidth:i=20,onFold:o,onOverflow:a}){if(!s||s<0)return t;let c=Math.max(1+i,1+s-e.length);if(t.length<=c)return t;let l=[],f={},m=s-e.length;typeof r=="number"&&(r>s-Math.max(2,i)?l.push(0):m=s-r);let d,y,h=!1,g=-1,w=-1,C=-1;n===Fn&&(g=_s(t,g),g!==-1&&(m=g+c));for(let M;M=t[g+=1];){if(n===Ut&&M==="\\"){switch(w=g,t[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}C=g}if(M===` -`)n===Fn&&(g=_s(t,g)),m=g+c,d=void 0;else{if(M===" "&&y&&y!==" "&&y!==` +`&&(A=""),g&&!L&&r&&r(),Be(w+A+M,e.indent,L)}};p._defineProperty(T,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var qt=(t,e)=>{if(t instanceof we){let n=e.get(t.source);return n.count*n.aliasCount}else if(t instanceof W){let n=0;for(let r of t.items){let s=qt(r,e);s>n&&(n=s)}return n}else if(t instanceof T){let n=qt(t.key,e),r=qt(t.value,e);return Math.max(n,r)}return 1},we=class t extends V{static stringify({range:e,source:n},{anchors:r,doc:s,implicitKey:i,inStringifyKey:o}){let a=Object.keys(r).find(l=>r[l]===n);if(!a&&o&&(a=s.anchors.getName(n)||s.anchors.newName()),a)return`*${a}${i?" ":""}`;let c=s.anchors.getName(n)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${c} [${e}]`)}constructor(e){super(),this.source=e,this.type=p.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,n){if(!n)return ue(this.source,e,n);let{anchors:r,maxAliasCount:s}=n,i=r.get(this.source);if(!i||i.res===void 0){let o="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new p.YAMLReferenceError(this.cstNode,o):new ReferenceError(o)}if(s>=0&&(i.count+=1,i.aliasCount===0&&(i.aliasCount=qt(this.source,r)),i.count*i.aliasCount>s)){let o="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new p.YAMLReferenceError(this.cstNode,o):new ReferenceError(o)}return i.res}toString(e){return t.stringify(this,e)}};p._defineProperty(we,"default",!0);function pt(t,e){let n=e instanceof P?e.value:e;for(let r of t)if(r instanceof T&&(r.key===e||r.key===n||r.key&&r.key.value===n))return r}var mt=class extends W{add(e,n){e?e instanceof T||(e=new T(e.key||e,e.value)):e=new T(e);let r=pt(this.items,e.key),s=this.schema&&this.schema.sortMapEntries;if(r)if(n)r.value=e.value;else throw new Error(`Key ${e.key} already set`);else if(s){let i=this.items.findIndex(o=>s(e,o)<0);i===-1?this.items.push(e):this.items.splice(i,0,e)}else this.items.push(e)}delete(e){let n=pt(this.items,e);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(e,n){let r=pt(this.items,e),s=r&&r.value;return!n&&s instanceof P?s.value:s}has(e){return!!pt(this.items,e)}set(e,n){this.add(new T(e,n),!0)}toJSON(e,n,r){let s=r?new r:n&&n.mapAsMap?new Map:{};n&&n.onCreate&&n.onCreate(s);for(let i of this.items)i.addToJSMap(n,s);return s}toString(e,n,r){if(!e)return JSON.stringify(this);for(let s of this.items)if(!(s instanceof T))throw new Error(`Map items must all be pairs; found ${JSON.stringify(s)} instead`);return super.toString(e,{blockItem:s=>s.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},n,r)}},Ds="<<",Vt=class extends T{constructor(e){if(e instanceof T){let n=e.value;n instanceof pe||(n=new pe,n.items.push(e.value),n.range=e.value.range),super(e.key,n),this.range=e.range}else super(new P(Ds),new pe);this.type=T.Type.MERGE_PAIR}addToJSMap(e,n){for(let{source:r}of this.value.items){if(!(r instanceof mt))throw new Error("Merge sources must be maps");let s=r.toJSON(null,e,Map);for(let[i,o]of s)n instanceof Map?n.has(i)||n.set(i,o):n instanceof Set?n.add(i):Object.prototype.hasOwnProperty.call(n,i)||Object.defineProperty(n,i,{value:o,writable:!0,enumerable:!0,configurable:!0})}return n}toString(e,n){let r=this.value;if(r.items.length>1)return super.toString(e,n);this.value=r.items[0];let s=super.toString(e,n);return this.value=r,s}},Io={defaultType:p.Type.BLOCK_LITERAL,lineWidth:76},Po={trueStr:"true",falseStr:"false"},_o={asBigInt:!1},xo={nullStr:"null"},be={defaultType:p.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function Fn(t,e,n){for(let{format:r,test:s,resolve:i}of e)if(s){let o=t.match(s);if(o){let a=i.apply(null,o);return a instanceof P||(a=new P(a)),r&&(a.format=r),a}}return n&&(t=n(t)),new P(t)}var Ys="flow",$n="block",Ut="quoted",_s=(t,e)=>{let n=t[e+1];for(;n===" "||n===" ";){do n=t[e+=1];while(n&&n!==` +`);n=t[e+1]}return e};function Wt(t,e,n,{indentAtStart:r,lineWidth:s=80,minContentWidth:i=20,onFold:o,onOverflow:a}){if(!s||s<0)return t;let c=Math.max(1+i,1+s-e.length);if(t.length<=c)return t;let l=[],f={},m=s-e.length;typeof r=="number"&&(r>s-Math.max(2,i)?l.push(0):m=s-r);let d,y,h=!1,g=-1,w=-1,C=-1;n===$n&&(g=_s(t,g),g!==-1&&(m=g+c));for(let M;M=t[g+=1];){if(n===Ut&&M==="\\"){switch(w=g,t[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}C=g}if(M===` +`)n===$n&&(g=_s(t,g)),m=g+c,d=void 0;else{if(M===" "&&y&&y!==" "&&y!==` `&&y!==" "){let A=t[g+1];A&&A!==" "&&A!==` `&&A!==" "&&(d=g)}if(g>=m)if(d)l.push(d),m=d+c,d=void 0;else if(n===Ut){for(;y===" "||y===" ";)y=M,M=t[g+=1],h=!0;let A=g>C+1?g-2:w-1;if(f[A])return t;l.push(A),f[A]=!0,m=A+c,d=void 0}else h=!0}y=M}if(h&&a&&a(),l.length===0)return t;o&&o();let L=t.slice(0,l[0]);for(let M=0;Mt?Object.assign({indentAtStart:t},be.fold):be.fold,jt=t=>/^(%|---|\.\.\.)/m.test(t);function Ro(t,e,n){if(!e||e<0)return!1;let r=e-n,s=t.length;if(s<=r)return!1;for(let i=0,o=0;it?Object.assign({indentAtStart:t},be.fold):be.fold,jt=t=>/^(%|---|\.\.\.)/m.test(t);function Ro(t,e,n){if(!e||e<0)return!1;let r=e-n,s=t.length;if(s<=r)return!1;for(let i=0,o=0;ir)return!0;if(o=i+1,s-o<=r)return!1}return!0}function Se(t,e){let{implicitKey:n}=e,{jsonEncoding:r,minMultiLineLength:s}=be.doubleQuoted,i=JSON.stringify(t);if(r)return i;let o=e.indent||(jt(t)?" ":""),a="",c=0;for(let l=0,f=i[l];f;f=i[++l])if(f===" "&&i[l+1]==="\\"&&i[l+2]==="n"&&(a+=i.slice(c,l)+"\\ ",l+=1,c=l,f="\\"),f==="\\")switch(i[l+1]){case"u":{a+=i.slice(c,l);let m=i.substr(l+2,4);switch(m){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:m.substr(0,2)==="00"?a+="\\x"+m.substr(2):a+=i.substr(l,6)}l+=5,c=l+1}break;case"n":if(n||i[l+2]==='"'||i.length";if(!n)return l+` +`,l+=2;a+=o,i[l+2]===" "&&(a+="\\"),l+=1,c=l+1}break;default:l+=1}return a=c?a+i.slice(c):i,n?a:Wt(a,o,Ut,qn(e))}function Bs(t,e){if(e.implicitKey){if(/\n/.test(t))return Se(t,e)}else if(/[ \t]\n|\n[ \t]/.test(t))return Se(t,e);let n=e.indent||(jt(t)?" ":""),r="'"+t.replace(/'/g,"''").replace(/\n+/g,`$& +${n}`)+"'";return e.implicitKey?r:Wt(r,n,Ys,qn(e))}function Kt({comment:t,type:e,value:n},r,s,i){if(/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return Se(n,r);let o=r.indent||(r.forceBlockIndent||jt(n)?" ":""),a=o?"2":"1",c=e===p.Type.BLOCK_FOLDED?!1:e===p.Type.BLOCK_LITERAL?!0:!Ro(n,be.fold.lineWidth,o.length),l=c?"|":">";if(!n)return l+` `;let f="",m="";if(n=n.replace(/[\n\t ]*$/,y=>{let h=y.indexOf(` `);return h===-1?l+="-":(n===y||h!==y.length-1)&&(l+="+",i&&i()),m=y.replace(/\n$/,""),""}).replace(/^[\n ]*/,y=>{y.indexOf(" ")!==-1&&(l+=a);let h=y.match(/ +$/);return h?(f=y.slice(0,-h[0].length),h[0]):(f=y,"")}),m&&(m=m.replace(/\n+(?!\n|$)/g,`$&${o}`)),f&&(f=f.replace(/\n+/g,`$&${o}`)),t&&(l+=" #"+t.replace(/ ?[\r\n]+/g," "),s&&s()),!n)return`${l}${a} ${o}${m}`;if(c)return n=n.replace(/\n+/g,`$&${o}`),`${l} ${o}${f}${n}${m}`;n=n.replace(/\n+/g,` -$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${o}`);let d=Wt(`${f}${n}${m}`,o,Fn,be.fold);return`${l} +$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${o}`);let d=Wt(`${f}${n}${m}`,o,$n,be.fold);return`${l} ${o}${d}`}function Do(t,e,n,r){let{comment:s,type:i,value:o}=t,{actualString:a,implicitKey:c,indent:l,inFlow:f}=e;if(c&&/[\n[\]{},]/.test(o)||f&&/[[\]{},]/.test(o))return Se(o,e);if(!o||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return c||f||o.indexOf(` `)===-1?o.indexOf('"')!==-1&&o.indexOf("'")===-1?Bs(o,e):Se(o,e):Kt(t,e,n,r);if(!c&&!f&&i!==p.Type.PLAIN&&o.indexOf(` `)!==-1)return Kt(t,e,n,r);if(l===""&&jt(o))return e.forceBlockIndent=!0,Kt(t,e,n,r);let m=o.replace(/\n+/g,`$& -${l}`);if(a){let{tags:y}=e.doc.schema;if(typeof qn(m,y,y.scalarFallback).value!="string")return Se(o,e)}let d=c?m:Wt(m,l,Ys,Un(e));return s&&!f&&(d.indexOf(` +${l}`);if(a){let{tags:y}=e.doc.schema;if(typeof Fn(m,y,y.scalarFallback).value!="string")return Se(o,e)}let d=c?m:Wt(m,l,Ys,qn(e));return s&&!f&&(d.indexOf(` `)!==-1||s.indexOf(` `)!==-1)?(n&&n(),ko(d,l,s)):d}function Yo(t,e,n,r){let{defaultType:s}=be,{implicitKey:i,inFlow:o}=e,{type:a,value:c}=t;typeof c!="string"&&(c=String(c),t=Object.assign({},t,{value:c}));let l=m=>{switch(m){case p.Type.BLOCK_FOLDED:case p.Type.BLOCK_LITERAL:return Kt(t,e,n,r);case p.Type.QUOTE_DOUBLE:return Se(c,e);case p.Type.QUOTE_SINGLE:return Bs(c,e);case p.Type.PLAIN:return Do(t,e,n,r);default:return null}};(a!==p.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(c)||(i||o)&&(a===p.Type.BLOCK_FOLDED||a===p.Type.BLOCK_LITERAL))&&(a=p.Type.QUOTE_DOUBLE);let f=l(a);if(f===null&&(f=l(s),f===null))throw new Error(`Unsupported default string type ${s}`);return f}function Bo({format:t,minFractionDigits:e,tag:n,value:r}){if(typeof r=="bigint")return String(r);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let s=JSON.stringify(r);if(!t&&e&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let i=s.indexOf(".");i<0&&(i=s.length,s+=".");let o=e-(s.length-i-1);for(;o-- >0;)s+="0"}return s}function $s(t,e){let n,r;switch(e.type){case p.Type.FLOW_MAP:n="}",r="flow map";break;case p.Type.FLOW_SEQ:n="]",r="flow sequence";break;default:t.push(new p.YAMLSemanticError(e,"Not a flow collection!?"));return}let s;for(let i=e.items.length-1;i>=0;--i){let o=e.items[i];if(!o||o.type!==p.Type.COMMENT){s=o;break}}if(s&&s.char!==n){let i=`Expected ${r} to end with ${n}`,o;typeof s.offset=="number"?(o=new p.YAMLSemanticError(e,i),o.offset=s.offset+1):(o=new p.YAMLSemanticError(s,i),s.range&&s.range.end&&(o.offset=s.range.end-s.range.start)),t.push(o)}}function Fs(t,e){let n=e.context.src[e.range.start-1];if(n!==` `&&n!==" "&&n!==" "){let r="Comments must be separated from other tokens by white space characters";t.push(new p.YAMLSemanticError(e,r))}}function qs(t,e){let n=String(e),r=n.substr(0,8)+"..."+n.substr(-8);return new p.YAMLSemanticError(t,`The "${r}" key is too long`)}function Us(t,e){for(let{afterKey:n,before:r,comment:s}of e){let i=t.items[r];i?(n&&i.value&&(i=i.value),s===void 0?(n||!i.commentBefore)&&(i.spaceBefore=!0):i.commentBefore?i.commentBefore+=` `+s:i.commentBefore=s):s!==void 0&&(t.comment?t.comment+=` -`+s:t.comment=s)}}function Kn(t,e){let n=e.strValue;return n?typeof n=="string"?n:(n.errors.forEach(r=>{r.source||(r.source=e),t.errors.push(r)}),n.str):""}function $o(t,e){let{handle:n,suffix:r}=e.tag,s=t.tagPrefixes.find(i=>i.handle===n);if(!s){let i=t.getDefaults().tagPrefixes;if(i&&(s=i.find(o=>o.handle===n)),!s)throw new p.YAMLSemanticError(e,`The ${n} tag handle is non-default and was not declared.`)}if(!r)throw new p.YAMLSemanticError(e,`The ${n} tag has no suffix.`);if(n==="!"&&(t.version||t.options.version)==="1.0"){if(r[0]==="^")return t.warnings.push(new p.YAMLWarning(e,"YAML 1.0 ^ tag expansion is not supported")),r;if(/[:/]/.test(r)){let i=r.match(/^([a-z0-9-]+)\/(.*)/i);return i?`tag:${i[1]}.yaml.org,2002:${i[2]}`:`tag:${r}`}}return s.prefix+decodeURIComponent(r)}function Fo(t,e){let{tag:n,type:r}=e,s=!1;if(n){let{handle:i,suffix:o,verbatim:a}=n;if(a){if(a!=="!"&&a!=="!!")return a;let c=`Verbatim tags aren't resolved, so ${a} is invalid.`;t.errors.push(new p.YAMLSemanticError(e,c))}else if(i==="!"&&!o)s=!0;else try{return $o(t,e)}catch(c){t.errors.push(c)}}switch(r){case p.Type.BLOCK_FOLDED:case p.Type.BLOCK_LITERAL:case p.Type.QUOTE_DOUBLE:case p.Type.QUOTE_SINGLE:return p.defaultTags.STR;case p.Type.FLOW_MAP:case p.Type.MAP:return p.defaultTags.MAP;case p.Type.FLOW_SEQ:case p.Type.SEQ:return p.defaultTags.SEQ;case p.Type.PLAIN:return s?p.defaultTags.STR:null;default:return null}}function xs(t,e,n){let{tags:r}=t.schema,s=[];for(let o of r)if(o.tag===n)if(o.test)s.push(o);else{let a=o.resolve(t,e);return a instanceof W?a:new P(a)}let i=Kn(t,e);return typeof i=="string"&&s.length>0?qn(i,s,r.scalarFallback):null}function qo({type:t}){switch(t){case p.Type.FLOW_MAP:case p.Type.MAP:return p.defaultTags.MAP;case p.Type.FLOW_SEQ:case p.Type.SEQ:return p.defaultTags.SEQ;default:return p.defaultTags.STR}}function Uo(t,e,n){try{let r=xs(t,e,n);if(r)return n&&e.tag&&(r.tag=n),r}catch(r){return r.source||(r.source=e),t.errors.push(r),null}try{let r=qo(e);if(!r)throw new Error(`The tag ${n} is unavailable`);let s=`The tag ${n} is unavailable, falling back to ${r}`;t.warnings.push(new p.YAMLWarning(e,s));let i=xs(t,e,r);return i.tag=n,i}catch(r){let s=new p.YAMLReferenceError(e,r.message);return s.stack=r.stack,t.errors.push(s),null}}var Ko=t=>{if(!t)return!1;let{type:e}=t;return e===p.Type.MAP_KEY||e===p.Type.MAP_VALUE||e===p.Type.SEQ_ITEM};function Vo(t,e){let n={before:[],after:[]},r=!1,s=!1,i=Ko(e.context.parent)?e.context.parent.props.concat(e.props):e.props;for(let{start:o,end:a}of i)switch(e.context.src[o]){case p.Char.COMMENT:{if(!e.commentHasRequiredWhitespace(o)){let m="Comments must be separated from other tokens by white space characters";t.push(new p.YAMLSemanticError(e,m))}let{header:c,valueRange:l}=e;(l&&(o>l.start||c&&o>c.start)?n.after:n.before).push(e.context.src.slice(o+1,a));break}case p.Char.ANCHOR:if(r){let c="A node can have at most one anchor";t.push(new p.YAMLSemanticError(e,c))}r=!0;break;case p.Char.TAG:if(s){let c="A node can have at most one tag";t.push(new p.YAMLSemanticError(e,c))}s=!0;break}return{comments:n,hasAnchor:r,hasTag:s}}function Wo(t,e){let{anchors:n,errors:r,schema:s}=t;if(e.type===p.Type.ALIAS){let o=e.rawValue,a=n.getNode(o);if(!a){let l=`Aliased anchor not found: ${o}`;return r.push(new p.YAMLReferenceError(e,l)),null}let c=new we(a);return n._cstAliases.push(c),c}let i=Fo(t,e);if(i)return Uo(t,e,i);if(e.type!==p.Type.PLAIN){let o=`Failed to resolve ${e.type} node here`;return r.push(new p.YAMLSyntaxError(e,o)),null}try{let o=Kn(t,e);return qn(o,s.tags,s.tags.scalarFallback)}catch(o){return o.source||(o.source=e),r.push(o),null}}function me(t,e){if(!e)return null;e.error&&t.errors.push(e.error);let{comments:n,hasAnchor:r,hasTag:s}=Vo(t.errors,e);if(r){let{anchors:o}=t,a=e.anchor,c=o.getNode(a);c&&(o.map[o.newName(a)]=c),o.map[a]=e}if(e.type===p.Type.ALIAS&&(r||s)){let o="An alias node must not specify any properties";t.errors.push(new p.YAMLSemanticError(e,o))}let i=Wo(t,e);if(i){i.range=[e.range.start,e.range.end],t.options.keepCstNodes&&(i.cstNode=e),t.options.keepNodeTypes&&(i.type=e.type);let o=n.before.join(` +`+s:t.comment=s)}}function Un(t,e){let n=e.strValue;return n?typeof n=="string"?n:(n.errors.forEach(r=>{r.source||(r.source=e),t.errors.push(r)}),n.str):""}function $o(t,e){let{handle:n,suffix:r}=e.tag,s=t.tagPrefixes.find(i=>i.handle===n);if(!s){let i=t.getDefaults().tagPrefixes;if(i&&(s=i.find(o=>o.handle===n)),!s)throw new p.YAMLSemanticError(e,`The ${n} tag handle is non-default and was not declared.`)}if(!r)throw new p.YAMLSemanticError(e,`The ${n} tag has no suffix.`);if(n==="!"&&(t.version||t.options.version)==="1.0"){if(r[0]==="^")return t.warnings.push(new p.YAMLWarning(e,"YAML 1.0 ^ tag expansion is not supported")),r;if(/[:/]/.test(r)){let i=r.match(/^([a-z0-9-]+)\/(.*)/i);return i?`tag:${i[1]}.yaml.org,2002:${i[2]}`:`tag:${r}`}}return s.prefix+decodeURIComponent(r)}function Fo(t,e){let{tag:n,type:r}=e,s=!1;if(n){let{handle:i,suffix:o,verbatim:a}=n;if(a){if(a!=="!"&&a!=="!!")return a;let c=`Verbatim tags aren't resolved, so ${a} is invalid.`;t.errors.push(new p.YAMLSemanticError(e,c))}else if(i==="!"&&!o)s=!0;else try{return $o(t,e)}catch(c){t.errors.push(c)}}switch(r){case p.Type.BLOCK_FOLDED:case p.Type.BLOCK_LITERAL:case p.Type.QUOTE_DOUBLE:case p.Type.QUOTE_SINGLE:return p.defaultTags.STR;case p.Type.FLOW_MAP:case p.Type.MAP:return p.defaultTags.MAP;case p.Type.FLOW_SEQ:case p.Type.SEQ:return p.defaultTags.SEQ;case p.Type.PLAIN:return s?p.defaultTags.STR:null;default:return null}}function xs(t,e,n){let{tags:r}=t.schema,s=[];for(let o of r)if(o.tag===n)if(o.test)s.push(o);else{let a=o.resolve(t,e);return a instanceof W?a:new P(a)}let i=Un(t,e);return typeof i=="string"&&s.length>0?Fn(i,s,r.scalarFallback):null}function qo({type:t}){switch(t){case p.Type.FLOW_MAP:case p.Type.MAP:return p.defaultTags.MAP;case p.Type.FLOW_SEQ:case p.Type.SEQ:return p.defaultTags.SEQ;default:return p.defaultTags.STR}}function Uo(t,e,n){try{let r=xs(t,e,n);if(r)return n&&e.tag&&(r.tag=n),r}catch(r){return r.source||(r.source=e),t.errors.push(r),null}try{let r=qo(e);if(!r)throw new Error(`The tag ${n} is unavailable`);let s=`The tag ${n} is unavailable, falling back to ${r}`;t.warnings.push(new p.YAMLWarning(e,s));let i=xs(t,e,r);return i.tag=n,i}catch(r){let s=new p.YAMLReferenceError(e,r.message);return s.stack=r.stack,t.errors.push(s),null}}var Ko=t=>{if(!t)return!1;let{type:e}=t;return e===p.Type.MAP_KEY||e===p.Type.MAP_VALUE||e===p.Type.SEQ_ITEM};function Vo(t,e){let n={before:[],after:[]},r=!1,s=!1,i=Ko(e.context.parent)?e.context.parent.props.concat(e.props):e.props;for(let{start:o,end:a}of i)switch(e.context.src[o]){case p.Char.COMMENT:{if(!e.commentHasRequiredWhitespace(o)){let m="Comments must be separated from other tokens by white space characters";t.push(new p.YAMLSemanticError(e,m))}let{header:c,valueRange:l}=e;(l&&(o>l.start||c&&o>c.start)?n.after:n.before).push(e.context.src.slice(o+1,a));break}case p.Char.ANCHOR:if(r){let c="A node can have at most one anchor";t.push(new p.YAMLSemanticError(e,c))}r=!0;break;case p.Char.TAG:if(s){let c="A node can have at most one tag";t.push(new p.YAMLSemanticError(e,c))}s=!0;break}return{comments:n,hasAnchor:r,hasTag:s}}function Wo(t,e){let{anchors:n,errors:r,schema:s}=t;if(e.type===p.Type.ALIAS){let o=e.rawValue,a=n.getNode(o);if(!a){let l=`Aliased anchor not found: ${o}`;return r.push(new p.YAMLReferenceError(e,l)),null}let c=new we(a);return n._cstAliases.push(c),c}let i=Fo(t,e);if(i)return Uo(t,e,i);if(e.type!==p.Type.PLAIN){let o=`Failed to resolve ${e.type} node here`;return r.push(new p.YAMLSyntaxError(e,o)),null}try{let o=Un(t,e);return Fn(o,s.tags,s.tags.scalarFallback)}catch(o){return o.source||(o.source=e),r.push(o),null}}function me(t,e){if(!e)return null;e.error&&t.errors.push(e.error);let{comments:n,hasAnchor:r,hasTag:s}=Vo(t.errors,e);if(r){let{anchors:o}=t,a=e.anchor,c=o.getNode(a);c&&(o.map[o.newName(a)]=c),o.map[a]=e}if(e.type===p.Type.ALIAS&&(r||s)){let o="An alias node must not specify any properties";t.errors.push(new p.YAMLSemanticError(e,o))}let i=Wo(t,e);if(i){i.range=[e.range.start,e.range.end],t.options.keepCstNodes&&(i.cstNode=e),t.options.keepNodeTypes&&(i.type=e.type);let o=n.before.join(` `);o&&(i.commentBefore=i.commentBefore?`${i.commentBefore} ${o}`:o);let a=n.after.join(` `);a&&(i.comment=i.comment?`${i.comment} ${a}`:a)}return e.resolved=i}function jo(t,e){if(e.type!==p.Type.MAP&&e.type!==p.Type.FLOW_MAP){let o=`A ${e.type} node cannot be resolved as a mapping`;return t.errors.push(new p.YAMLSyntaxError(e,o)),null}let{comments:n,items:r}=e.type===p.Type.FLOW_MAP?Ho(t,e):Go(t,e),s=new mt;s.items=r,Us(s,n);let i=!1;for(let o=0;o{if(f instanceof we){let{type:m}=f.source;return m===p.Type.MAP||m===p.Type.FLOW_MAP?!1:l="Merge nodes aliases can only point to maps"}return l="Merge nodes can only have Alias nodes as values"}),l&&t.errors.push(new p.YAMLSemanticError(e,l))}else for(let c=o+1;c{if(r.length===0)return!1;let{start:s}=r[0];if(e&&s>e.valueRange.start||n[s]!==p.Char.COMMENT)return!1;for(let i=t;i0){c=new p.PlainValue(p.Type.PLAIN,[]),c.context={parent:a,src:a.context.src};let f=a.range.start+1;if(c.range={start:f,end:f},c.valueRange={start:f,end:f},typeof a.range.origStart=="number"){let m=a.range.origStart+1;c.range.origStart=c.range.origEnd=m,c.valueRange.origStart=c.valueRange.origEnd=m}}let l=new T(s,me(t,c));Jo(a,l),r.push(l),s&&typeof i=="number"&&a.range.start>i+1024&&t.errors.push(qs(e,s)),s=void 0,i=null}break;default:s!==void 0&&r.push(new T(s)),s=me(t,a),i=a.range.start,a.error&&t.errors.push(a.error);e:for(let c=o+1;;++c){let l=e.items[c];switch(l&&l.type){case p.Type.BLANK_LINE:case p.Type.COMMENT:continue e;case p.Type.MAP_VALUE:break e;default:{let f="Implicit map keys need to be followed by map values";t.errors.push(new p.YAMLSemanticError(a,f));break e}}}if(a.valueRangeContainsNewline){let c="Implicit map keys need to be on a single line";t.errors.push(new p.YAMLSemanticError(a,c))}}}return s!==void 0&&r.push(new T(s)),{comments:n,items:r}}function Ho(t,e){let n=[],r=[],s,i=!1,o="{";for(let a=0;ai instanceof T&&i.key instanceof W)){let i="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";t.warnings.push(new p.YAMLWarning(e,i))}return e.resolved=s,s}function zo(t,e){let n=[],r=[];for(let s=0;so+1024&&t.errors.push(qs(e,i));let{src:h}=c.context;for(let g=o;g{"use strict";var j=le(),O=$e(),ea={identify:t=>t instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(t,e)=>{let n=O.resolveString(t,e);if(typeof Buffer=="function")return Buffer.from(n,"base64");if(typeof atob=="function"){let r=atob(n.replace(/[\n\r]/g,"")),s=new Uint8Array(r.length);for(let i=0;i{let o;if(typeof Buffer=="function")o=n instanceof Buffer?n.toString("base64"):Buffer.from(n.buffer).toString("base64");else if(typeof btoa=="function"){let a="";for(let c=0;c{"use strict";var j=le(),O=$e(),ea={identify:t=>t instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(t,e)=>{let n=O.resolveString(t,e);if(typeof Buffer=="function")return Buffer.from(n,"base64");if(typeof atob=="function"){let r=atob(n.replace(/[\n\r]/g,"")),s=new Uint8Array(r.length);for(let i=0;i{let o;if(typeof Buffer=="function")o=n instanceof Buffer?n.toString("base64"):Buffer.from(n.buffer).toString("base64");else if(typeof btoa=="function"){let a="";for(let c=0;c1){let o="Each pair must have its own sequence indicator";throw new j.YAMLSemanticError(e,o)}let i=s.items[0]||new O.Pair;s.commentBefore&&(i.commentBefore=i.commentBefore?`${s.commentBefore} ${i.commentBefore}`:s.commentBefore),s.comment&&(i.comment=i.comment?`${s.comment} -${i.comment}`:s.comment),s=i}n.items[r]=s instanceof O.Pair?s:new O.Pair(s)}}return n}function Ws(t,e,n){let r=new O.YAMLSeq(t);r.tag="tag:yaml.org,2002:pairs";for(let s of e){let i,o;if(Array.isArray(s))if(s.length===2)i=s[0],o=s[1];else throw new TypeError(`Expected [key, value] tuple: ${s}`);else if(s&&s instanceof Object){let c=Object.keys(s);if(c.length===1)i=c[0],o=s[i];else throw new TypeError(`Expected { key: value } tuple: ${s}`)}else i=s;let a=t.createPair(i,o,n);r.items.push(a)}return r}var ta={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Vs,createNode:Ws},Fe=class t extends O.YAMLSeq{constructor(){super(),j._defineProperty(this,"add",O.YAMLMap.prototype.add.bind(this)),j._defineProperty(this,"delete",O.YAMLMap.prototype.delete.bind(this)),j._defineProperty(this,"get",O.YAMLMap.prototype.get.bind(this)),j._defineProperty(this,"has",O.YAMLMap.prototype.has.bind(this)),j._defineProperty(this,"set",O.YAMLMap.prototype.set.bind(this)),this.tag=t.tag}toJSON(e,n){let r=new Map;n&&n.onCreate&&n.onCreate(r);for(let s of this.items){let i,o;if(s instanceof O.Pair?(i=O.toJSON(s.key,"",n),o=O.toJSON(s.value,i,n)):i=O.toJSON(s,"",n),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,o)}return r}};j._defineProperty(Fe,"tag","tag:yaml.org,2002:omap");function na(t,e){let n=Vs(t,e),r=[];for(let{key:s}of n.items)if(s instanceof O.Scalar)if(r.includes(s.value)){let i="Ordered maps must not include duplicate keys";throw new j.YAMLSemanticError(e,i)}else r.push(s.value);return Object.assign(new Fe,n)}function ra(t,e,n){let r=Ws(t,e,n),s=new Fe;return s.items=r.items,s}var sa={identify:t=>t instanceof Map,nodeClass:Fe,default:!1,tag:"tag:yaml.org,2002:omap",resolve:na,createNode:ra},qe=class t extends O.YAMLMap{constructor(){super(),this.tag=t.tag}add(e){let n=e instanceof O.Pair?e:new O.Pair(e);O.findPair(this.items,n.key)||this.items.push(n)}get(e,n){let r=O.findPair(this.items,e);return!n&&r instanceof O.Pair?r.key instanceof O.Scalar?r.key.value:r.key:r}set(e,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);let r=O.findPair(this.items,e);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new O.Pair(e))}toJSON(e,n){return super.toJSON(e,n,Set)}toString(e,n,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,n,r);throw new Error("Set items must all have null values")}};j._defineProperty(qe,"tag","tag:yaml.org,2002:set");function ia(t,e){let n=O.resolveMap(t,e);if(!n.hasAllNullValues())throw new j.YAMLSemanticError(e,"Set items must all have null values");return Object.assign(new qe,n)}function oa(t,e,n){let r=new qe;for(let s of e)r.items.push(t.createPair(s,null,n));return r}var aa={identify:t=>t instanceof Set,nodeClass:qe,default:!1,tag:"tag:yaml.org,2002:set",resolve:ia,createNode:oa},Vn=(t,e)=>{let n=e.split(":").reduce((r,s)=>r*60+Number(s),0);return t==="-"?-n:n},js=({value:t})=>{if(isNaN(t)||!isFinite(t))return O.stringifyNumber(t);let e="";t<0&&(e="-",t=Math.abs(t));let n=[t%60];return t<60?n.unshift(0):(t=Math.round((t-n[0])/60),n.unshift(t%60),t>=60&&(t=Math.round((t-n[0])/60),n.unshift(t))),e+n.map(r=>r<10?"0"+String(r):String(r)).join(":").replace(/000000\d*$/,"")},ca={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(t,e,n)=>Vn(e,n.replace(/_/g,"")),stringify:js},la={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(t,e,n)=>Vn(e,n.replace(/_/g,"")),stringify:js},fa={identify:t=>t instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(t,e,n,r,s,i,o,a,c)=>{a&&(a=(a+"00").substr(1,3));let l=Date.UTC(e,n-1,r,s||0,i||0,o||0,a||0);if(c&&c!=="Z"){let f=Vn(c[0],c.slice(1));Math.abs(f)<30&&(f*=60),l-=6e4*f}return new Date(l)},stringify:({value:t})=>t.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function Wn(t){let e={};return t?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!e.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!e.YAML_SILENCE_WARNINGS}function jn(t,e){Wn(!1)&&console.warn(e?`${e}: ${t}`:t)}function ua(t){if(Wn(!0)){let e=t.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");jn(`The endpoint 'yaml/${e}' will be removed in a future release.`,"DeprecationWarning")}}var Ks={};function pa(t,e){if(!Ks[t]&&Wn(!0)){Ks[t]=!0;let n=`The option '${t}' will be removed in a future release`;n+=e?`, use '${e}' instead.`:".",jn(n,"DeprecationWarning")}}z.binary=ea;z.floatTime=la;z.intTime=ca;z.omap=sa;z.pairs=ta;z.set=aa;z.timestamp=fa;z.warn=jn;z.warnFileDeprecation=ua;z.warnOptionDeprecation=pa});var Xn=ee(ii=>{"use strict";var Gt=le(),E=$e(),D=Qn();function ma(t,e,n){let r=new E.YAMLMap(t);if(e instanceof Map)for(let[s,i]of e)r.items.push(t.createPair(s,i,n));else if(e&&typeof e=="object")for(let s of Object.keys(e))r.items.push(t.createPair(s,e[s],n));return typeof t.sortMapEntries=="function"&&r.items.sort(t.sortMapEntries),r}var gt={createNode:ma,default:!0,nodeClass:E.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:E.resolveMap};function ha(t,e,n){let r=new E.YAMLSeq(t);if(e&&e[Symbol.iterator])for(let s of e){let i=t.createNode(s,n.wrapScalars,null,n);r.items.push(i)}return r}var Ht={createNode:ha,default:!0,nodeClass:E.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:E.resolveSeq},ga={identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:E.resolveString,stringify(t,e,n,r){return e=Object.assign({actualString:!0},e),E.stringifyString(t,e,n,r)},options:E.strOptions},Gn=[gt,Ht,ga],Xt=t=>typeof t=="bigint"||Number.isInteger(t),Hn=(t,e,n)=>E.intOptions.asBigInt?BigInt(t):parseInt(e,n);function Gs(t,e,n){let{value:r}=t;return Xt(r)&&r>=0?n+r.toString(e):E.stringifyNumber(t)}var Hs={identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:E.nullOptions,stringify:()=>E.nullOptions.nullStr},Xs={identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:t=>t[0]==="t"||t[0]==="T",options:E.boolOptions,stringify:({value:t})=>t?E.boolOptions.trueStr:E.boolOptions.falseStr},zs={identify:t=>Xt(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(t,e)=>Hn(t,e,8),options:E.intOptions,stringify:t=>Gs(t,8,"0o")},Zs={identify:Xt,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:t=>Hn(t,t,10),options:E.intOptions,stringify:E.stringifyNumber},ei={identify:t=>Xt(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(t,e)=>Hn(t,e,16),options:E.intOptions,stringify:t=>Gs(t,16,"0x")},ti={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(t,e)=>e?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:E.stringifyNumber},ni={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t),stringify:({value:t})=>Number(t).toExponential()},ri={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(t,e,n){let r=e||n,s=new E.Scalar(parseFloat(t));return r&&r[r.length-1]==="0"&&(s.minFractionDigits=r.length),s},stringify:E.stringifyNumber},da=Gn.concat([Hs,Xs,zs,Zs,ei,ti,ni,ri]),Qs=t=>typeof t=="bigint"||Number.isInteger(t),Qt=({value:t})=>JSON.stringify(t),si=[gt,Ht,{identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:E.resolveString,stringify:Qt},{identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Qt},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:t=>t==="true",stringify:Qt},{identify:Qs,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:t=>E.intOptions.asBigInt?BigInt(t):parseInt(t,10),stringify:({value:t})=>Qs(t)?t.toString():JSON.stringify(t)},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:t=>parseFloat(t),stringify:Qt}];si.scalarFallback=t=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(t)}`)};var Js=({value:t})=>t?E.boolOptions.trueStr:E.boolOptions.falseStr,ht=t=>typeof t=="bigint"||Number.isInteger(t);function Jt(t,e,n){let r=e.replace(/_/g,"");if(E.intOptions.asBigInt){switch(n){case 2:r=`0b${r}`;break;case 8:r=`0o${r}`;break;case 16:r=`0x${r}`;break}let i=BigInt(r);return t==="-"?BigInt(-1)*i:i}let s=parseInt(r,n);return t==="-"?-1*s:s}function Jn(t,e,n){let{value:r}=t;if(ht(r)){let s=r.toString(e);return r<0?"-"+n+s.substr(1):n+s}return E.stringifyNumber(t)}var ya=Gn.concat([{identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:E.nullOptions,stringify:()=>E.nullOptions.nullStr},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:E.boolOptions,stringify:Js},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:E.boolOptions,stringify:Js},{identify:ht,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(t,e,n)=>Jt(e,n,2),stringify:t=>Jn(t,2,"0b")},{identify:ht,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(t,e,n)=>Jt(e,n,8),stringify:t=>Jn(t,8,"0")},{identify:ht,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(t,e,n)=>Jt(e,n,10),stringify:E.stringifyNumber},{identify:ht,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(t,e,n)=>Jt(e,n,16),stringify:t=>Jn(t,16,"0x")},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(t,e)=>e?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:E.stringifyNumber},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t.replace(/_/g,"")),stringify:({value:t})=>Number(t).toExponential()},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(t,e){let n=new E.Scalar(parseFloat(t.replace(/_/g,"")));if(e){let r=e.replace(/_/g,"");r[r.length-1]==="0"&&(n.minFractionDigits=r.length)}return n},stringify:E.stringifyNumber}],D.binary,D.omap,D.pairs,D.set,D.intTime,D.floatTime,D.timestamp),Ea={core:da,failsafe:Gn,json:si,yaml11:ya},Sa={binary:D.binary,bool:Xs,float:ri,floatExp:ni,floatNaN:ti,floatTime:D.floatTime,int:Zs,intHex:ei,intOct:zs,intTime:D.intTime,map:gt,null:Hs,omap:D.omap,pairs:D.pairs,seq:Ht,set:D.set,timestamp:D.timestamp};function wa(t,e,n){if(e){let r=n.filter(i=>i.tag===e),s=r.find(i=>!i.format)||r[0];if(!s)throw new Error(`Tag ${e} not found`);return s}return n.find(r=>(r.identify&&r.identify(t)||r.class&&t instanceof r.class)&&!r.format)}function ba(t,e,n){if(t instanceof E.Node)return t;let{defaultPrefix:r,onTagObj:s,prevObjects:i,schema:o,wrapScalars:a}=n;e&&e.startsWith("!!")&&(e=r+e.slice(2));let c=wa(t,e,o.tags);if(!c){if(typeof t.toJSON=="function"&&(t=t.toJSON()),!t||typeof t!="object")return a?new E.Scalar(t):t;c=t instanceof Map?gt:t[Symbol.iterator]?Ht:gt}s&&(s(c),delete n.onTagObj);let l={value:void 0,node:void 0};if(t&&typeof t=="object"&&i){let f=i.get(t);if(f){let m=new E.Alias(f);return n.aliasNodes.push(m),m}l.value=t,i.set(t,l)}return l.node=c.createNode?c.createNode(n.schema,t,n):a?new E.Scalar(t):t,e&&l.node instanceof E.Node&&(l.node.tag=e),l.node}function Na(t,e,n,r){let s=t[r.replace(/\W/g,"")];if(!s){let i=Object.keys(t).map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${r}"; use one of ${i}`)}if(Array.isArray(n))for(let i of n)s=s.concat(i);else typeof n=="function"&&(s=n(s.slice()));for(let i=0;iJSON.stringify(l)).join(", ");throw new Error(`Unknown custom tag "${o}"; use one of ${c}`)}s[i]=a}}return s}var Oa=(t,e)=>t.keye.key?1:0,dt=class t{constructor({customTags:e,merge:n,schema:r,sortMapEntries:s,tags:i}){this.merge=!!n,this.name=r,this.sortMapEntries=s===!0?Oa:s||null,!e&&i&&D.warnOptionDeprecation("tags","customTags"),this.tags=Na(Ea,Sa,e||i,r)}createNode(e,n,r,s){let i={defaultPrefix:t.defaultPrefix,schema:this,wrapScalars:n},o=s?Object.assign(s,i):i;return ba(e,r,o)}createPair(e,n,r){r||(r={wrapScalars:!0});let s=this.createNode(e,r.wrapScalars,null,r),i=this.createNode(n,r.wrapScalars,null,r);return new E.Pair(s,i)}};Gt._defineProperty(dt,"defaultPrefix",Gt.defaultTagPrefix);Gt._defineProperty(dt,"defaultTags",Gt.defaultTags);ii.Schema=dt});var li=ee(tn=>{"use strict";var Y=le(),S=$e(),oi=Xn(),La={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},Aa={get binary(){return S.binaryOptions},set binary(t){Object.assign(S.binaryOptions,t)},get bool(){return S.boolOptions},set bool(t){Object.assign(S.boolOptions,t)},get int(){return S.intOptions},set int(t){Object.assign(S.intOptions,t)},get null(){return S.nullOptions},set null(t){Object.assign(S.nullOptions,t)},get str(){return S.strOptions},set str(t){Object.assign(S.strOptions,t)}},ci={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:Y.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Y.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Y.defaultTagPrefix}]}};function ai(t,e){if((t.version||t.options.version)==="1.0"){let s=e.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(s)return"!"+s[1];let i=e.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return i?`!${i[1]}/${i[2]}`:`!${e.replace(/^tag:/,"")}`}let n=t.tagPrefixes.find(s=>e.indexOf(s.prefix)===0);if(!n){let s=t.getDefaults().tagPrefixes;n=s&&s.find(i=>e.indexOf(i.prefix)===0)}if(!n)return e[0]==="!"?e:`!<${e}>`;let r=e.substr(n.prefix.length).replace(/[!,[\]{}]/g,s=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[s]);return n.handle+r}function Ta(t,e){if(e instanceof S.Alias)return S.Alias;if(e.tag){let s=t.filter(i=>i.tag===e.tag);if(s.length>0)return s.find(i=>i.format===e.format)||s[0]}let n,r;if(e instanceof S.Scalar){r=e.value;let s=t.filter(i=>i.identify&&i.identify(r)||i.class&&r instanceof i.class);n=s.find(i=>i.format===e.format)||s.find(i=>!i.format)}else r=e,n=t.find(s=>s.nodeClass&&r instanceof s.nodeClass);if(!n){let s=r&&r.constructor?r.constructor.name:typeof r;throw new Error(`Tag not resolved for ${s} value`)}return n}function Ca(t,e,{anchors:n,doc:r}){let s=[],i=r.anchors.getName(t);return i&&(n[i]=t,s.push(`&${i}`)),t.tag?s.push(ai(r,t.tag)):e.default||s.push(ai(r,e.tag)),s.join(" ")}function zt(t,e,n,r){let{anchors:s,schema:i}=e.doc,o;if(!(t instanceof S.Node)){let l={aliasNodes:[],onTagObj:f=>o=f,prevObjects:new Map};t=i.createNode(t,!0,null,l);for(let f of l.aliasNodes){f.source=f.source.node;let m=s.getName(f.source);m||(m=s.newName(),s.map[m]=f.source)}}if(t instanceof S.Pair)return t.toString(e,n,r);o||(o=Ta(i.tags,t));let a=Ca(t,o,e);a.length>0&&(e.indentAtStart=(e.indentAtStart||0)+a.length+1);let c=typeof o.stringify=="function"?o.stringify(t,e,n,r):t instanceof S.Scalar?S.stringifyString(t,e,n,r):t.toString(e,n,r);return a?t instanceof S.Scalar||c[0]==="{"||c[0]==="["?`${a} ${c}`:`${a} -${e.indent}${c}`:c}var zn=class t{static validAnchorNode(e){return e instanceof S.Scalar||e instanceof S.YAMLSeq||e instanceof S.YAMLMap}constructor(e){Y._defineProperty(this,"map",Object.create(null)),this.prefix=e}createAlias(e,n){return this.setAnchor(e,n),new S.Alias(e)}createMergePair(...e){let n=new S.Merge;return n.value.items=e.map(r=>{if(r instanceof S.Alias){if(r.source instanceof S.YAMLMap)return r}else if(r instanceof S.YAMLMap)return this.createAlias(r);throw new Error("Merge sources must be Map nodes or their Aliases")}),n}getName(e){let{map:n}=this;return Object.keys(n).find(r=>n[r]===e)}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){e||(e=this.prefix);let n=Object.keys(this.map);for(let r=1;;++r){let s=`${e}${r}`;if(!n.includes(s))return s}}resolveNodes(){let{map:e,_cstAliases:n}=this;Object.keys(e).forEach(r=>{e[r]=e[r].resolved}),n.forEach(r=>{r.source=r.source.resolved}),delete this._cstAliases}setAnchor(e,n){if(e!=null&&!t.validAnchorNode(e))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(n&&/[\x00-\x19\s,[\]{}]/.test(n))throw new Error("Anchor names must not contain whitespace or control characters");let{map:r}=this,s=e&&Object.keys(r).find(i=>r[i]===e);if(s)if(n)s!==n&&(delete r[s],r[n]=e);else return s;else{if(!n){if(!e)return null;n=this.newName()}r[n]=e}return n}},Zt=(t,e)=>{if(t&&typeof t=="object"){let{tag:n}=t;t instanceof S.Collection?(n&&(e[n]=!0),t.items.forEach(r=>Zt(r,e))):t instanceof S.Pair?(Zt(t.key,e),Zt(t.value,e)):t instanceof S.Scalar&&n&&(e[n]=!0)}return e},Ma=t=>Object.keys(Zt(t,{}));function ka(t,e){let n={before:[],after:[]},r,s=!1;for(let i of e)if(i.valueRange){if(r!==void 0){let a="Document contains trailing content not separated by a ... or --- line";t.errors.push(new Y.YAMLSyntaxError(i,a));break}let o=S.resolveNode(t,i);s&&(o.spaceBefore=!0,s=!1),r=o}else i.comment!==null?(r===void 0?n.before:n.after).push(i.comment):i.type===Y.Type.BLANK_LINE&&(s=!0,r===void 0&&n.before.length>0&&!t.commentBefore&&(t.commentBefore=n.before.join(` +${i.comment}`:s.comment),s=i}n.items[r]=s instanceof O.Pair?s:new O.Pair(s)}}return n}function Ws(t,e,n){let r=new O.YAMLSeq(t);r.tag="tag:yaml.org,2002:pairs";for(let s of e){let i,o;if(Array.isArray(s))if(s.length===2)i=s[0],o=s[1];else throw new TypeError(`Expected [key, value] tuple: ${s}`);else if(s&&s instanceof Object){let c=Object.keys(s);if(c.length===1)i=c[0],o=s[i];else throw new TypeError(`Expected { key: value } tuple: ${s}`)}else i=s;let a=t.createPair(i,o,n);r.items.push(a)}return r}var ta={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Vs,createNode:Ws},Fe=class t extends O.YAMLSeq{constructor(){super(),j._defineProperty(this,"add",O.YAMLMap.prototype.add.bind(this)),j._defineProperty(this,"delete",O.YAMLMap.prototype.delete.bind(this)),j._defineProperty(this,"get",O.YAMLMap.prototype.get.bind(this)),j._defineProperty(this,"has",O.YAMLMap.prototype.has.bind(this)),j._defineProperty(this,"set",O.YAMLMap.prototype.set.bind(this)),this.tag=t.tag}toJSON(e,n){let r=new Map;n&&n.onCreate&&n.onCreate(r);for(let s of this.items){let i,o;if(s instanceof O.Pair?(i=O.toJSON(s.key,"",n),o=O.toJSON(s.value,i,n)):i=O.toJSON(s,"",n),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,o)}return r}};j._defineProperty(Fe,"tag","tag:yaml.org,2002:omap");function na(t,e){let n=Vs(t,e),r=[];for(let{key:s}of n.items)if(s instanceof O.Scalar)if(r.includes(s.value)){let i="Ordered maps must not include duplicate keys";throw new j.YAMLSemanticError(e,i)}else r.push(s.value);return Object.assign(new Fe,n)}function ra(t,e,n){let r=Ws(t,e,n),s=new Fe;return s.items=r.items,s}var sa={identify:t=>t instanceof Map,nodeClass:Fe,default:!1,tag:"tag:yaml.org,2002:omap",resolve:na,createNode:ra},qe=class t extends O.YAMLMap{constructor(){super(),this.tag=t.tag}add(e){let n=e instanceof O.Pair?e:new O.Pair(e);O.findPair(this.items,n.key)||this.items.push(n)}get(e,n){let r=O.findPair(this.items,e);return!n&&r instanceof O.Pair?r.key instanceof O.Scalar?r.key.value:r.key:r}set(e,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);let r=O.findPair(this.items,e);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new O.Pair(e))}toJSON(e,n){return super.toJSON(e,n,Set)}toString(e,n,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,n,r);throw new Error("Set items must all have null values")}};j._defineProperty(qe,"tag","tag:yaml.org,2002:set");function ia(t,e){let n=O.resolveMap(t,e);if(!n.hasAllNullValues())throw new j.YAMLSemanticError(e,"Set items must all have null values");return Object.assign(new qe,n)}function oa(t,e,n){let r=new qe;for(let s of e)r.items.push(t.createPair(s,null,n));return r}var aa={identify:t=>t instanceof Set,nodeClass:qe,default:!1,tag:"tag:yaml.org,2002:set",resolve:ia,createNode:oa},Kn=(t,e)=>{let n=e.split(":").reduce((r,s)=>r*60+Number(s),0);return t==="-"?-n:n},js=({value:t})=>{if(isNaN(t)||!isFinite(t))return O.stringifyNumber(t);let e="";t<0&&(e="-",t=Math.abs(t));let n=[t%60];return t<60?n.unshift(0):(t=Math.round((t-n[0])/60),n.unshift(t%60),t>=60&&(t=Math.round((t-n[0])/60),n.unshift(t))),e+n.map(r=>r<10?"0"+String(r):String(r)).join(":").replace(/000000\d*$/,"")},ca={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(t,e,n)=>Kn(e,n.replace(/_/g,"")),stringify:js},la={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(t,e,n)=>Kn(e,n.replace(/_/g,"")),stringify:js},fa={identify:t=>t instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(t,e,n,r,s,i,o,a,c)=>{a&&(a=(a+"00").substr(1,3));let l=Date.UTC(e,n-1,r,s||0,i||0,o||0,a||0);if(c&&c!=="Z"){let f=Kn(c[0],c.slice(1));Math.abs(f)<30&&(f*=60),l-=6e4*f}return new Date(l)},stringify:({value:t})=>t.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function Vn(t){let e={};return t?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!e.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!e.YAML_SILENCE_WARNINGS}function Wn(t,e){Vn(!1)&&console.warn(e?`${e}: ${t}`:t)}function ua(t){if(Vn(!0)){let e=t.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");Wn(`The endpoint 'yaml/${e}' will be removed in a future release.`,"DeprecationWarning")}}var Ks={};function pa(t,e){if(!Ks[t]&&Vn(!0)){Ks[t]=!0;let n=`The option '${t}' will be removed in a future release`;n+=e?`, use '${e}' instead.`:".",Wn(n,"DeprecationWarning")}}z.binary=ea;z.floatTime=la;z.intTime=ca;z.omap=sa;z.pairs=ta;z.set=aa;z.timestamp=fa;z.warn=Wn;z.warnFileDeprecation=ua;z.warnOptionDeprecation=pa});var Hn=ee(ii=>{"use strict";var Gt=le(),E=$e(),D=jn();function ma(t,e,n){let r=new E.YAMLMap(t);if(e instanceof Map)for(let[s,i]of e)r.items.push(t.createPair(s,i,n));else if(e&&typeof e=="object")for(let s of Object.keys(e))r.items.push(t.createPair(s,e[s],n));return typeof t.sortMapEntries=="function"&&r.items.sort(t.sortMapEntries),r}var gt={createNode:ma,default:!0,nodeClass:E.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:E.resolveMap};function ha(t,e,n){let r=new E.YAMLSeq(t);if(e&&e[Symbol.iterator])for(let s of e){let i=t.createNode(s,n.wrapScalars,null,n);r.items.push(i)}return r}var Ht={createNode:ha,default:!0,nodeClass:E.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:E.resolveSeq},ga={identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:E.resolveString,stringify(t,e,n,r){return e=Object.assign({actualString:!0},e),E.stringifyString(t,e,n,r)},options:E.strOptions},Jn=[gt,Ht,ga],Xt=t=>typeof t=="bigint"||Number.isInteger(t),Gn=(t,e,n)=>E.intOptions.asBigInt?BigInt(t):parseInt(e,n);function Gs(t,e,n){let{value:r}=t;return Xt(r)&&r>=0?n+r.toString(e):E.stringifyNumber(t)}var Hs={identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:E.nullOptions,stringify:()=>E.nullOptions.nullStr},Xs={identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:t=>t[0]==="t"||t[0]==="T",options:E.boolOptions,stringify:({value:t})=>t?E.boolOptions.trueStr:E.boolOptions.falseStr},zs={identify:t=>Xt(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(t,e)=>Gn(t,e,8),options:E.intOptions,stringify:t=>Gs(t,8,"0o")},Zs={identify:Xt,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:t=>Gn(t,t,10),options:E.intOptions,stringify:E.stringifyNumber},ei={identify:t=>Xt(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(t,e)=>Gn(t,e,16),options:E.intOptions,stringify:t=>Gs(t,16,"0x")},ti={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(t,e)=>e?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:E.stringifyNumber},ni={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t),stringify:({value:t})=>Number(t).toExponential()},ri={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(t,e,n){let r=e||n,s=new E.Scalar(parseFloat(t));return r&&r[r.length-1]==="0"&&(s.minFractionDigits=r.length),s},stringify:E.stringifyNumber},da=Jn.concat([Hs,Xs,zs,Zs,ei,ti,ni,ri]),Qs=t=>typeof t=="bigint"||Number.isInteger(t),Qt=({value:t})=>JSON.stringify(t),si=[gt,Ht,{identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:E.resolveString,stringify:Qt},{identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Qt},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:t=>t==="true",stringify:Qt},{identify:Qs,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:t=>E.intOptions.asBigInt?BigInt(t):parseInt(t,10),stringify:({value:t})=>Qs(t)?t.toString():JSON.stringify(t)},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:t=>parseFloat(t),stringify:Qt}];si.scalarFallback=t=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(t)}`)};var Js=({value:t})=>t?E.boolOptions.trueStr:E.boolOptions.falseStr,ht=t=>typeof t=="bigint"||Number.isInteger(t);function Jt(t,e,n){let r=e.replace(/_/g,"");if(E.intOptions.asBigInt){switch(n){case 2:r=`0b${r}`;break;case 8:r=`0o${r}`;break;case 16:r=`0x${r}`;break}let i=BigInt(r);return t==="-"?BigInt(-1)*i:i}let s=parseInt(r,n);return t==="-"?-1*s:s}function Qn(t,e,n){let{value:r}=t;if(ht(r)){let s=r.toString(e);return r<0?"-"+n+s.substr(1):n+s}return E.stringifyNumber(t)}var ya=Jn.concat([{identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:E.nullOptions,stringify:()=>E.nullOptions.nullStr},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:E.boolOptions,stringify:Js},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:E.boolOptions,stringify:Js},{identify:ht,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(t,e,n)=>Jt(e,n,2),stringify:t=>Qn(t,2,"0b")},{identify:ht,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(t,e,n)=>Jt(e,n,8),stringify:t=>Qn(t,8,"0")},{identify:ht,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(t,e,n)=>Jt(e,n,10),stringify:E.stringifyNumber},{identify:ht,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(t,e,n)=>Jt(e,n,16),stringify:t=>Qn(t,16,"0x")},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(t,e)=>e?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:E.stringifyNumber},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t.replace(/_/g,"")),stringify:({value:t})=>Number(t).toExponential()},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(t,e){let n=new E.Scalar(parseFloat(t.replace(/_/g,"")));if(e){let r=e.replace(/_/g,"");r[r.length-1]==="0"&&(n.minFractionDigits=r.length)}return n},stringify:E.stringifyNumber}],D.binary,D.omap,D.pairs,D.set,D.intTime,D.floatTime,D.timestamp),Ea={core:da,failsafe:Jn,json:si,yaml11:ya},Sa={binary:D.binary,bool:Xs,float:ri,floatExp:ni,floatNaN:ti,floatTime:D.floatTime,int:Zs,intHex:ei,intOct:zs,intTime:D.intTime,map:gt,null:Hs,omap:D.omap,pairs:D.pairs,seq:Ht,set:D.set,timestamp:D.timestamp};function wa(t,e,n){if(e){let r=n.filter(i=>i.tag===e),s=r.find(i=>!i.format)||r[0];if(!s)throw new Error(`Tag ${e} not found`);return s}return n.find(r=>(r.identify&&r.identify(t)||r.class&&t instanceof r.class)&&!r.format)}function ba(t,e,n){if(t instanceof E.Node)return t;let{defaultPrefix:r,onTagObj:s,prevObjects:i,schema:o,wrapScalars:a}=n;e&&e.startsWith("!!")&&(e=r+e.slice(2));let c=wa(t,e,o.tags);if(!c){if(typeof t.toJSON=="function"&&(t=t.toJSON()),!t||typeof t!="object")return a?new E.Scalar(t):t;c=t instanceof Map?gt:t[Symbol.iterator]?Ht:gt}s&&(s(c),delete n.onTagObj);let l={value:void 0,node:void 0};if(t&&typeof t=="object"&&i){let f=i.get(t);if(f){let m=new E.Alias(f);return n.aliasNodes.push(m),m}l.value=t,i.set(t,l)}return l.node=c.createNode?c.createNode(n.schema,t,n):a?new E.Scalar(t):t,e&&l.node instanceof E.Node&&(l.node.tag=e),l.node}function Na(t,e,n,r){let s=t[r.replace(/\W/g,"")];if(!s){let i=Object.keys(t).map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${r}"; use one of ${i}`)}if(Array.isArray(n))for(let i of n)s=s.concat(i);else typeof n=="function"&&(s=n(s.slice()));for(let i=0;iJSON.stringify(l)).join(", ");throw new Error(`Unknown custom tag "${o}"; use one of ${c}`)}s[i]=a}}return s}var Oa=(t,e)=>t.keye.key?1:0,dt=class t{constructor({customTags:e,merge:n,schema:r,sortMapEntries:s,tags:i}){this.merge=!!n,this.name=r,this.sortMapEntries=s===!0?Oa:s||null,!e&&i&&D.warnOptionDeprecation("tags","customTags"),this.tags=Na(Ea,Sa,e||i,r)}createNode(e,n,r,s){let i={defaultPrefix:t.defaultPrefix,schema:this,wrapScalars:n},o=s?Object.assign(s,i):i;return ba(e,r,o)}createPair(e,n,r){r||(r={wrapScalars:!0});let s=this.createNode(e,r.wrapScalars,null,r),i=this.createNode(n,r.wrapScalars,null,r);return new E.Pair(s,i)}};Gt._defineProperty(dt,"defaultPrefix",Gt.defaultTagPrefix);Gt._defineProperty(dt,"defaultTags",Gt.defaultTags);ii.Schema=dt});var li=ee(tn=>{"use strict";var Y=le(),S=$e(),oi=Hn(),La={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},Aa={get binary(){return S.binaryOptions},set binary(t){Object.assign(S.binaryOptions,t)},get bool(){return S.boolOptions},set bool(t){Object.assign(S.boolOptions,t)},get int(){return S.intOptions},set int(t){Object.assign(S.intOptions,t)},get null(){return S.nullOptions},set null(t){Object.assign(S.nullOptions,t)},get str(){return S.strOptions},set str(t){Object.assign(S.strOptions,t)}},ci={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:Y.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Y.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Y.defaultTagPrefix}]}};function ai(t,e){if((t.version||t.options.version)==="1.0"){let s=e.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(s)return"!"+s[1];let i=e.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return i?`!${i[1]}/${i[2]}`:`!${e.replace(/^tag:/,"")}`}let n=t.tagPrefixes.find(s=>e.indexOf(s.prefix)===0);if(!n){let s=t.getDefaults().tagPrefixes;n=s&&s.find(i=>e.indexOf(i.prefix)===0)}if(!n)return e[0]==="!"?e:`!<${e}>`;let r=e.substr(n.prefix.length).replace(/[!,[\]{}]/g,s=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[s]);return n.handle+r}function Ta(t,e){if(e instanceof S.Alias)return S.Alias;if(e.tag){let s=t.filter(i=>i.tag===e.tag);if(s.length>0)return s.find(i=>i.format===e.format)||s[0]}let n,r;if(e instanceof S.Scalar){r=e.value;let s=t.filter(i=>i.identify&&i.identify(r)||i.class&&r instanceof i.class);n=s.find(i=>i.format===e.format)||s.find(i=>!i.format)}else r=e,n=t.find(s=>s.nodeClass&&r instanceof s.nodeClass);if(!n){let s=r&&r.constructor?r.constructor.name:typeof r;throw new Error(`Tag not resolved for ${s} value`)}return n}function Ca(t,e,{anchors:n,doc:r}){let s=[],i=r.anchors.getName(t);return i&&(n[i]=t,s.push(`&${i}`)),t.tag?s.push(ai(r,t.tag)):e.default||s.push(ai(r,e.tag)),s.join(" ")}function zt(t,e,n,r){let{anchors:s,schema:i}=e.doc,o;if(!(t instanceof S.Node)){let l={aliasNodes:[],onTagObj:f=>o=f,prevObjects:new Map};t=i.createNode(t,!0,null,l);for(let f of l.aliasNodes){f.source=f.source.node;let m=s.getName(f.source);m||(m=s.newName(),s.map[m]=f.source)}}if(t instanceof S.Pair)return t.toString(e,n,r);o||(o=Ta(i.tags,t));let a=Ca(t,o,e);a.length>0&&(e.indentAtStart=(e.indentAtStart||0)+a.length+1);let c=typeof o.stringify=="function"?o.stringify(t,e,n,r):t instanceof S.Scalar?S.stringifyString(t,e,n,r):t.toString(e,n,r);return a?t instanceof S.Scalar||c[0]==="{"||c[0]==="["?`${a} ${c}`:`${a} +${e.indent}${c}`:c}var Xn=class t{static validAnchorNode(e){return e instanceof S.Scalar||e instanceof S.YAMLSeq||e instanceof S.YAMLMap}constructor(e){Y._defineProperty(this,"map",Object.create(null)),this.prefix=e}createAlias(e,n){return this.setAnchor(e,n),new S.Alias(e)}createMergePair(...e){let n=new S.Merge;return n.value.items=e.map(r=>{if(r instanceof S.Alias){if(r.source instanceof S.YAMLMap)return r}else if(r instanceof S.YAMLMap)return this.createAlias(r);throw new Error("Merge sources must be Map nodes or their Aliases")}),n}getName(e){let{map:n}=this;return Object.keys(n).find(r=>n[r]===e)}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){e||(e=this.prefix);let n=Object.keys(this.map);for(let r=1;;++r){let s=`${e}${r}`;if(!n.includes(s))return s}}resolveNodes(){let{map:e,_cstAliases:n}=this;Object.keys(e).forEach(r=>{e[r]=e[r].resolved}),n.forEach(r=>{r.source=r.source.resolved}),delete this._cstAliases}setAnchor(e,n){if(e!=null&&!t.validAnchorNode(e))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(n&&/[\x00-\x19\s,[\]{}]/.test(n))throw new Error("Anchor names must not contain whitespace or control characters");let{map:r}=this,s=e&&Object.keys(r).find(i=>r[i]===e);if(s)if(n)s!==n&&(delete r[s],r[n]=e);else return s;else{if(!n){if(!e)return null;n=this.newName()}r[n]=e}return n}},Zt=(t,e)=>{if(t&&typeof t=="object"){let{tag:n}=t;t instanceof S.Collection?(n&&(e[n]=!0),t.items.forEach(r=>Zt(r,e))):t instanceof S.Pair?(Zt(t.key,e),Zt(t.value,e)):t instanceof S.Scalar&&n&&(e[n]=!0)}return e},Ma=t=>Object.keys(Zt(t,{}));function ka(t,e){let n={before:[],after:[]},r,s=!1;for(let i of e)if(i.valueRange){if(r!==void 0){let a="Document contains trailing content not separated by a ... or --- line";t.errors.push(new Y.YAMLSyntaxError(i,a));break}let o=S.resolveNode(t,i);s&&(o.spaceBefore=!0,s=!1),r=o}else i.comment!==null?(r===void 0?n.before:n.after).push(i.comment):i.type===Y.Type.BLANK_LINE&&(s=!0,r===void 0&&n.before.length>0&&!t.commentBefore&&(t.commentBefore=n.before.join(` `),n.before=[]));if(t.contents=r||null,!r)t.comment=n.before.concat(n.after).join(` `)||null;else{let i=n.before.join(` `);if(i){let o=r instanceof S.Collection&&r.items[0]?r.items[0]:r;o.commentBefore=o.commentBefore?`${i} ${o.commentBefore}`:i}t.comment=n.after.join(` `)||null}}function va({tagPrefixes:t},e){let[n,r]=e.parameters;if(!n||!r){let s="Insufficient parameters given for %TAG directive";throw new Y.YAMLSemanticError(e,s)}if(t.some(s=>s.handle===n)){let s="The %TAG directive must only be given at most once per handle in the same document.";throw new Y.YAMLSemanticError(e,s)}return{handle:n,prefix:r}}function Ia(t,e){let[n]=e.parameters;if(e.name==="YAML:1.0"&&(n="1.0"),!n){let r="Insufficient parameters given for %YAML directive";throw new Y.YAMLSemanticError(e,r)}if(!ci[n]){let s=`Document will be parsed as YAML ${t.version||t.options.version} rather than YAML ${n}`;t.warnings.push(new Y.YAMLWarning(e,s))}return n}function Pa(t,e,n){let r=[],s=!1;for(let i of e){let{comment:o,name:a}=i;switch(a){case"TAG":try{t.tagPrefixes.push(va(t,i))}catch(c){t.errors.push(c)}s=!0;break;case"YAML":case"YAML:1.0":if(t.version){let c="The %YAML directive must only be given at most once per document.";t.errors.push(new Y.YAMLSemanticError(i,c))}try{t.version=Ia(t,i)}catch(c){t.errors.push(c)}s=!0;break;default:if(a){let c=`YAML only supports %TAG and %YAML directives, and not %${a}`;t.warnings.push(new Y.YAMLWarning(i,c))}}o&&r.push(o)}if(n&&!s&&(t.version||n.version||t.options.version)==="1.1"){let i=({handle:o,prefix:a})=>({handle:o,prefix:a});t.tagPrefixes=n.tagPrefixes.map(i),t.version=n.version}t.commentBefore=r.join(` -`)||null}function Ue(t){if(t instanceof S.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}var en=class t{constructor(e){this.anchors=new zn(e.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=e,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(e){return Ue(this.contents),this.contents.add(e)}addIn(e,n){Ue(this.contents),this.contents.addIn(e,n)}delete(e){return Ue(this.contents),this.contents.delete(e)}deleteIn(e){return S.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):(Ue(this.contents),this.contents.deleteIn(e))}getDefaults(){return t.defaults[this.version]||t.defaults[this.options.version]||{}}get(e,n){return this.contents instanceof S.Collection?this.contents.get(e,n):void 0}getIn(e,n){return S.isEmptyPath(e)?!n&&this.contents instanceof S.Scalar?this.contents.value:this.contents:this.contents instanceof S.Collection?this.contents.getIn(e,n):void 0}has(e){return this.contents instanceof S.Collection?this.contents.has(e):!1}hasIn(e){return S.isEmptyPath(e)?this.contents!==void 0:this.contents instanceof S.Collection?this.contents.hasIn(e):!1}set(e,n){Ue(this.contents),this.contents.set(e,n)}setIn(e,n){S.isEmptyPath(e)?this.contents=n:(Ue(this.contents),this.contents.setIn(e,n))}setSchema(e,n){if(!e&&!n&&this.schema)return;typeof e=="number"&&(e=e.toFixed(1)),e==="1.0"||e==="1.1"||e==="1.2"?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&typeof e=="string"&&(this.options.schema=e),Array.isArray(n)&&(this.options.customTags=n);let r=Object.assign({},this.getDefaults(),this.options);this.schema=new oi.Schema(r)}parse(e,n){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");let{directives:r=[],contents:s=[],directivesEndMarker:i,error:o,valueRange:a}=e;if(o&&(o.source||(o.source=this),this.errors.push(o)),Pa(this,r,n),i&&(this.directivesEndMarker=!0),this.range=a?[a.start,a.end]:null,this.setSchema(),this.anchors._cstAliases=[],ka(this,s),this.anchors.resolveNodes(),this.options.prettyErrors){for(let c of this.errors)c instanceof Y.YAMLError&&c.makePretty();for(let c of this.warnings)c instanceof Y.YAMLError&&c.makePretty()}return this}listNonDefaultTags(){return Ma(this.contents).filter(e=>e.indexOf(oi.Schema.defaultPrefix)!==0)}setTagPrefix(e,n){if(e[0]!=="!"||e[e.length-1]!=="!")throw new Error("Handle must start and end with !");if(n){let r=this.tagPrefixes.find(s=>s.handle===e);r?r.prefix=n:this.tagPrefixes.push({handle:e,prefix:n})}else this.tagPrefixes=this.tagPrefixes.filter(r=>r.handle!==e)}toJSON(e,n){let{keepBlobsInJSON:r,mapAsMap:s,maxAliasCount:i}=this.options,o=r&&(typeof e!="string"||!(this.contents instanceof S.Scalar)),a={doc:this,indentStep:" ",keep:o,mapAsMap:o&&!!s,maxAliasCount:i,stringify:zt},c=Object.keys(this.anchors.map);c.length>0&&(a.anchors=new Map(c.map(f=>[this.anchors.map[f],{alias:[],aliasCount:0,count:1}])));let l=S.toJSON(this.contents,e,a);if(typeof n=="function"&&a.anchors)for(let{count:f,res:m}of a.anchors.values())n(m,f);return l}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");let e=this.options.indent;if(!Number.isInteger(e)||e<=0){let c=JSON.stringify(e);throw new Error(`"indent" option must be a positive integer, not ${c}`)}this.setSchema();let n=[],r=!1;if(this.version){let c="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?c="%YAML:1.0":this.version==="1.1"&&(c="%YAML 1.1")),n.push(c),r=!0}let s=this.listNonDefaultTags();this.tagPrefixes.forEach(({handle:c,prefix:l})=>{s.some(f=>f.indexOf(l)===0)&&(n.push(`%TAG ${c} ${l}`),r=!0)}),(r||this.directivesEndMarker)&&n.push("---"),this.commentBefore&&((r||!this.directivesEndMarker)&&n.unshift(""),n.unshift(this.commentBefore.replace(/^/gm,"#")));let i={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:zt},o=!1,a=null;if(this.contents){this.contents instanceof S.Node&&(this.contents.spaceBefore&&(r||this.directivesEndMarker)&&n.push(""),this.contents.commentBefore&&n.push(this.contents.commentBefore.replace(/^/gm,"#")),i.forceBlockIndent=!!this.comment,a=this.contents.comment);let c=a?null:()=>o=!0,l=zt(this.contents,i,()=>a=null,c);n.push(S.addComment(l,"",a))}else this.contents!==void 0&&n.push(zt(this.contents,i));return this.comment&&((!o||a)&&n[n.length-1]!==""&&n.push(""),n.push(this.comment.replace(/^/gm,"#"))),n.join(` +`)||null}function Ue(t){if(t instanceof S.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}var en=class t{constructor(e){this.anchors=new Xn(e.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=e,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(e){return Ue(this.contents),this.contents.add(e)}addIn(e,n){Ue(this.contents),this.contents.addIn(e,n)}delete(e){return Ue(this.contents),this.contents.delete(e)}deleteIn(e){return S.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):(Ue(this.contents),this.contents.deleteIn(e))}getDefaults(){return t.defaults[this.version]||t.defaults[this.options.version]||{}}get(e,n){return this.contents instanceof S.Collection?this.contents.get(e,n):void 0}getIn(e,n){return S.isEmptyPath(e)?!n&&this.contents instanceof S.Scalar?this.contents.value:this.contents:this.contents instanceof S.Collection?this.contents.getIn(e,n):void 0}has(e){return this.contents instanceof S.Collection?this.contents.has(e):!1}hasIn(e){return S.isEmptyPath(e)?this.contents!==void 0:this.contents instanceof S.Collection?this.contents.hasIn(e):!1}set(e,n){Ue(this.contents),this.contents.set(e,n)}setIn(e,n){S.isEmptyPath(e)?this.contents=n:(Ue(this.contents),this.contents.setIn(e,n))}setSchema(e,n){if(!e&&!n&&this.schema)return;typeof e=="number"&&(e=e.toFixed(1)),e==="1.0"||e==="1.1"||e==="1.2"?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&typeof e=="string"&&(this.options.schema=e),Array.isArray(n)&&(this.options.customTags=n);let r=Object.assign({},this.getDefaults(),this.options);this.schema=new oi.Schema(r)}parse(e,n){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");let{directives:r=[],contents:s=[],directivesEndMarker:i,error:o,valueRange:a}=e;if(o&&(o.source||(o.source=this),this.errors.push(o)),Pa(this,r,n),i&&(this.directivesEndMarker=!0),this.range=a?[a.start,a.end]:null,this.setSchema(),this.anchors._cstAliases=[],ka(this,s),this.anchors.resolveNodes(),this.options.prettyErrors){for(let c of this.errors)c instanceof Y.YAMLError&&c.makePretty();for(let c of this.warnings)c instanceof Y.YAMLError&&c.makePretty()}return this}listNonDefaultTags(){return Ma(this.contents).filter(e=>e.indexOf(oi.Schema.defaultPrefix)!==0)}setTagPrefix(e,n){if(e[0]!=="!"||e[e.length-1]!=="!")throw new Error("Handle must start and end with !");if(n){let r=this.tagPrefixes.find(s=>s.handle===e);r?r.prefix=n:this.tagPrefixes.push({handle:e,prefix:n})}else this.tagPrefixes=this.tagPrefixes.filter(r=>r.handle!==e)}toJSON(e,n){let{keepBlobsInJSON:r,mapAsMap:s,maxAliasCount:i}=this.options,o=r&&(typeof e!="string"||!(this.contents instanceof S.Scalar)),a={doc:this,indentStep:" ",keep:o,mapAsMap:o&&!!s,maxAliasCount:i,stringify:zt},c=Object.keys(this.anchors.map);c.length>0&&(a.anchors=new Map(c.map(f=>[this.anchors.map[f],{alias:[],aliasCount:0,count:1}])));let l=S.toJSON(this.contents,e,a);if(typeof n=="function"&&a.anchors)for(let{count:f,res:m}of a.anchors.values())n(m,f);return l}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");let e=this.options.indent;if(!Number.isInteger(e)||e<=0){let c=JSON.stringify(e);throw new Error(`"indent" option must be a positive integer, not ${c}`)}this.setSchema();let n=[],r=!1;if(this.version){let c="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?c="%YAML:1.0":this.version==="1.1"&&(c="%YAML 1.1")),n.push(c),r=!0}let s=this.listNonDefaultTags();this.tagPrefixes.forEach(({handle:c,prefix:l})=>{s.some(f=>f.indexOf(l)===0)&&(n.push(`%TAG ${c} ${l}`),r=!0)}),(r||this.directivesEndMarker)&&n.push("---"),this.commentBefore&&((r||!this.directivesEndMarker)&&n.unshift(""),n.unshift(this.commentBefore.replace(/^/gm,"#")));let i={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:zt},o=!1,a=null;if(this.contents){this.contents instanceof S.Node&&(this.contents.spaceBefore&&(r||this.directivesEndMarker)&&n.push(""),this.contents.commentBefore&&n.push(this.contents.commentBefore.replace(/^/gm,"#")),i.forceBlockIndent=!!this.comment,a=this.contents.comment);let c=a?null:()=>o=!0,l=zt(this.contents,i,()=>a=null,c);n.push(S.addComment(l,"",a))}else this.contents!==void 0&&n.push(zt(this.contents,i));return this.comment&&((!o||a)&&n[n.length-1]!==""&&n.push(""),n.push(this.comment.replace(/^/gm,"#"))),n.join(` `)+` -`}};Y._defineProperty(en,"defaults",ci);tn.Document=en;tn.defaultOptions=La;tn.scalarOptions=Aa});var pi=ee(ui=>{"use strict";var Zn=Is(),Ne=li(),_a=Xn(),xa=le(),Ra=Qn();$e();function Da(t,e=!0,n){n===void 0&&typeof e=="string"&&(n=e,e=!0);let r=Object.assign({},Ne.Document.defaults[Ne.defaultOptions.version],Ne.defaultOptions);return new _a.Schema(r).createNode(t,e,n)}var Ke=class extends Ne.Document{constructor(e){super(Object.assign({},Ne.defaultOptions,e))}};function Ya(t,e){let n=[],r;for(let s of Zn.parse(t)){let i=new Ke(e);i.parse(s,r),n.push(i),r=i}return n}function fi(t,e){let n=Zn.parse(t),r=new Ke(e).parse(n[0]);if(n.length>1){let s="Source contains multiple documents; please use YAML.parseAllDocuments()";r.errors.unshift(new xa.YAMLSemanticError(n[1],s))}return r}function Ba(t,e){let n=fi(t,e);if(n.warnings.forEach(r=>Ra.warn(r)),n.errors.length>0)throw n.errors[0];return n.toJSON()}function $a(t,e){let n=new Ke(e);return n.contents=t,String(n)}var Fa={createNode:Da,defaultOptions:Ne.defaultOptions,Document:Ke,parse:Ba,parseAllDocuments:Ya,parseCST:Zn.parse,parseDocument:fi,scalarOptions:Ne.scalarOptions,stringify:$a};ui.YAML=Fa});var hi=ee((Pm,mi)=>{mi.exports=pi().YAML});var gi=ee(Q=>{"use strict";var Ve=$e(),We=le();Q.findPair=Ve.findPair;Q.parseMap=Ve.resolveMap;Q.parseSeq=Ve.resolveSeq;Q.stringifyNumber=Ve.stringifyNumber;Q.stringifyString=Ve.stringifyString;Q.toJSON=Ve.toJSON;Q.Type=We.Type;Q.YAMLError=We.YAMLError;Q.YAMLReferenceError=We.YAMLReferenceError;Q.YAMLSemanticError=We.YAMLSemanticError;Q.YAMLSyntaxError=We.YAMLSyntaxError;Q.YAMLWarning=We.YAMLWarning});var Ga={};tr(Ga,{languages:()=>bi,options:()=>Ni,parsers:()=>nn,printers:()=>Ja});var vi=(t,e,n,r)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(n,r):n.global?e.replace(n,r):e.split(n).join(r)},Et=vi;var je="string",Qe="array",Je="cursor",Ge="indent",Oe="align",He="trim",Le="group",Ae="fill",Te="if-break",Xe="indent-if-break",Ce="line-suffix",ze="line-suffix-boundary",te="line",Ze="label",Me="break-parent",St=new Set([Je,Ge,Oe,He,Le,Ae,Te,Xe,Ce,ze,te,Ze,Me]);function Ii(t){if(typeof t=="string")return je;if(Array.isArray(t))return Qe;if(!t)return;let{type:e}=t;if(St.has(e))return e}var et=Ii;var Pi=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function _i(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', +`}};Y._defineProperty(en,"defaults",ci);tn.Document=en;tn.defaultOptions=La;tn.scalarOptions=Aa});var pi=ee(ui=>{"use strict";var zn=Is(),Ne=li(),_a=Hn(),xa=le(),Ra=jn();$e();function Da(t,e=!0,n){n===void 0&&typeof e=="string"&&(n=e,e=!0);let r=Object.assign({},Ne.Document.defaults[Ne.defaultOptions.version],Ne.defaultOptions);return new _a.Schema(r).createNode(t,e,n)}var Ke=class extends Ne.Document{constructor(e){super(Object.assign({},Ne.defaultOptions,e))}};function Ya(t,e){let n=[],r;for(let s of zn.parse(t)){let i=new Ke(e);i.parse(s,r),n.push(i),r=i}return n}function fi(t,e){let n=zn.parse(t),r=new Ke(e).parse(n[0]);if(n.length>1){let s="Source contains multiple documents; please use YAML.parseAllDocuments()";r.errors.unshift(new xa.YAMLSemanticError(n[1],s))}return r}function Ba(t,e){let n=fi(t,e);if(n.warnings.forEach(r=>Ra.warn(r)),n.errors.length>0)throw n.errors[0];return n.toJSON()}function $a(t,e){let n=new Ke(e);return n.contents=t,String(n)}var Fa={createNode:Da,defaultOptions:Ne.defaultOptions,Document:Ke,parse:Ba,parseAllDocuments:Ya,parseCST:zn.parse,parseDocument:fi,scalarOptions:Ne.scalarOptions,stringify:$a};ui.YAML=Fa});var hi=ee((Pm,mi)=>{mi.exports=pi().YAML});var gi=ee(Q=>{"use strict";var Ve=$e(),We=le();Q.findPair=Ve.findPair;Q.parseMap=Ve.resolveMap;Q.parseSeq=Ve.resolveSeq;Q.stringifyNumber=Ve.stringifyNumber;Q.stringifyString=Ve.stringifyString;Q.toJSON=Ve.toJSON;Q.Type=We.Type;Q.YAMLError=We.YAMLError;Q.YAMLReferenceError=We.YAMLReferenceError;Q.YAMLSemanticError=We.YAMLSemanticError;Q.YAMLSyntaxError=We.YAMLSyntaxError;Q.YAMLWarning=We.YAMLWarning});var Ga={};tr(Ga,{languages:()=>bi,options:()=>Ni,parsers:()=>er,printers:()=>Ja});var vi=(t,e,n,r)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(n,r):n.global?e.replace(n,r):e.split(n).join(r)},Et=vi;var je="string",Qe="array",Je="cursor",Ge="indent",Oe="align",He="trim",Le="group",Ae="fill",Te="if-break",Xe="indent-if-break",Ce="line-suffix",ze="line-suffix-boundary",te="line",Ze="label",Me="break-parent",St=new Set([Je,Ge,Oe,He,Le,Ae,Te,Xe,Ce,ze,te,Ze,Me]);function Ii(t){if(typeof t=="string")return je;if(Array.isArray(t))return Qe;if(!t)return;let{type:e}=t;if(St.has(e))return e}var et=Ii;var Pi=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function _i(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', Expected it to be 'string' or 'object'.`;if(et(t))throw new Error("doc is valid.");let n=Object.prototype.toString.call(t);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let r=Pi([...St].map(s=>`'${s}'`));return`Unexpected doc.type '${t.type}'. -Expected it to be ${r}.`}var sn=class extends Error{name="InvalidDocError";constructor(e){super(_i(e)),this.doc=e}},on=sn;var sr=()=>{},he=sr,wt=sr;function tt(t,e){return he(e),{type:Oe,contents:e,n:t}}function ke(t,e={}){return he(t),wt(e.expandedStates,!0),{type:Le,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function an(t){return tt(Number.NEGATIVE_INFINITY,t)}function ir(t){return tt({type:"root"},t)}function or(t){return tt(-1,t)}function cn(t,e){return ke(t[0],{...e,expandedStates:t})}function bt(t){return wt(t),{type:Ae,parts:t}}function nt(t,e="",n={}){return he(t),e!==""&&he(e),{type:Te,breakContents:t,flatContents:e,groupId:n.groupId}}function ar(t){return he(t),{type:Ce,contents:t}}var Nt={type:Me};var xi={type:te,hard:!0},Ri={type:te,hard:!0,literal:!0},ne={type:te},Ot={type:te,soft:!0},N=[xi,Nt],rt=[Ri,Nt];function v(t,e){he(t),wt(e);let n=[];for(let r=0;r{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[n<0?e.length+n:n]:e.at(n)},x=Di;function Yi(t,e){if(typeof t=="string")return e(t);let n=new Map;return r(t);function r(i){if(n.has(i))return n.get(i);let o=s(i);return n.set(i,o),o}function s(i){switch(et(i)){case Qe:return e(i.map(r));case Ae:return e({...i,parts:i.parts.map(r)});case Te:return e({...i,breakContents:r(i.breakContents),flatContents:r(i.flatContents)});case Le:{let{expandedStates:o,contents:a}=i;return o?(o=o.map(r),a=o[0]):a=r(a),e({...i,contents:a,expandedStates:o})}case Oe:case Ge:case Xe:case Ze:case Ce:return e({...i,contents:r(i.contents)});case je:case Je:case He:case ze:case te:case Me:return e(i);default:throw new on(i)}}}function cr(t,e=rt){return Yi(t,n=>typeof n=="string"?v(e,n.split(` +Expected it to be ${r}.`}var rn=class extends Error{name="InvalidDocError";constructor(e){super(_i(e)),this.doc=e}},sn=rn;var sr=()=>{},he=sr,wt=sr;function tt(t,e){return he(e),{type:Oe,contents:e,n:t}}function ke(t,e={}){return he(t),wt(e.expandedStates,!0),{type:Le,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function on(t){return tt(Number.NEGATIVE_INFINITY,t)}function ir(t){return tt({type:"root"},t)}function or(t){return tt(-1,t)}function an(t,e){return ke(t[0],{...e,expandedStates:t})}function bt(t){return wt(t),{type:Ae,parts:t}}function nt(t,e="",n={}){return he(t),e!==""&&he(e),{type:Te,breakContents:t,flatContents:e,groupId:n.groupId}}function ar(t){return he(t),{type:Ce,contents:t}}var Nt={type:Me};var xi={type:te,hard:!0},Ri={type:te,hard:!0,literal:!0},ne={type:te},Ot={type:te,soft:!0},N=[xi,Nt],rt=[Ri,Nt];function v(t,e){he(t),wt(e);let n=[];for(let r=0;r{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[n<0?e.length+n:n]:e.at(n)},x=Di;function Yi(t,e){if(typeof t=="string")return e(t);let n=new Map;return r(t);function r(i){if(n.has(i))return n.get(i);let o=s(i);return n.set(i,o),o}function s(i){switch(et(i)){case Qe:return e(i.map(r));case Ae:return e({...i,parts:i.parts.map(r)});case Te:return e({...i,breakContents:r(i.breakContents),flatContents:r(i.flatContents)});case Le:{let{expandedStates:o,contents:a}=i;return o?(o=o.map(r),a=o[0]):a=r(a),e({...i,contents:a,expandedStates:o})}case Oe:case Ge:case Xe:case Ze:case Ce:return e({...i,contents:r(i.contents)});case je:case Je:case He:case ze:case te:case Me:return e(i);default:throw new sn(i)}}}function cr(t,e=rt){return Yi(t,n=>typeof n=="string"?v(e,n.split(` `)):n)}function Bi(t,e,n){let r=!!(n!=null&&n.backwards);if(e===!1)return!1;let s=t.charAt(e);if(r){if(t.charAt(e-1)==="\r"&&s===` `)return e-2;if(s===` `||s==="\r"||s==="\u2028"||s==="\u2029")return e-1}else{if(s==="\r"&&t.charAt(e+1)===` `)return e+2;if(s===` -`||s==="\r"||s==="\u2028"||s==="\u2029")return e+1}return e}var ln=Bi;function Lt(t){return(e,n,r)=>{let s=!!(r!=null&&r.backwards);if(n===!1)return!1;let{length:i}=e,o=n;for(;o>=0&&o{let s=!!(r!=null&&r.backwards);if(n===!1)return!1;let{length:i}=e,o=n;for(;o>=0&&o{let s=await r(e.originalText,{parser:"json"});return s?[s,N]:void 0}}gr.getVisitorKeys=()=>[];var dr=gr;function Fi(t){return Array.isArray(t)&&t.length>0}var Ie=Fi;function G(t,e){return typeof(t==null?void 0:t.type)=="string"&&(!e||e.includes(t.type))}function pn(t,e,n){return e("children"in t?{...t,children:t.children.map(r=>pn(r,e,t))}:t,n)}function Pe(t,e,n){Object.defineProperty(t,e,{get:n,enumerable:!1})}function Er(t,e){let n=0,r=e.length;for(let s=t.position.end.offset-1;s{let s=await r(e.originalText,{parser:"json"});return s?[s,N]:void 0}}gr.getVisitorKeys=()=>[];var dr=gr;function Fi(t){return Array.isArray(t)&&t.length>0}var Ie=Fi;function G(t,e){return typeof(t==null?void 0:t.type)=="string"&&(!e||e.includes(t.type))}function un(t,e,n){return e("children"in t?{...t,children:t.children.map(r=>un(r,e,t))}:t,n)}function Pe(t,e,n){Object.defineProperty(t,e,{get:n,enumerable:!1})}function Er(t,e){let n=0,r=e.length;for(let s=t.position.end.offset-1;si===0&&i===o.length-1?s:i!==0&&i!==o.length-1?s.trim():i===0?s.trimEnd():s.trimStart());return n.proseWrap==="preserve"?r.map(s=>s.length===0?[]:[s]):r.map(s=>s.length===0?[]:wr(s)).reduce((s,i,o)=>o!==0&&r[o-1].length>0&&i.length>0&&!(t==="quoteDouble"&&x(!1,x(!1,s,-1),-1).endsWith("\\"))?[...s.slice(0,-1),[...x(!1,s,-1),...i]]:[...s,i],[]).map(s=>n.proseWrap==="never"?[s.join(" ")]:s)}function Nr(t,{parentIndent:e,isLastDescendant:n,options:r}){let s=t.position.start.line===t.position.end.line?"":r.originalText.slice(t.position.start.offset,t.position.end.offset).match(/^[^\n]*\n(.*)$/s)[1],i;if(t.indent===null){let c=s.match(/^(? *)[^\n\r ]/m);i=c?c.groups.leadingSpace.length:Number.POSITIVE_INFINITY}else i=t.indent-1+e;let o=s.split(` -`).map(c=>c.slice(i));if(r.proseWrap==="preserve"||t.type==="blockLiteral")return a(o.map(c=>c.length===0?[]:[c]));return a(o.map(c=>c.length===0?[]:wr(c)).reduce((c,l,f)=>f!==0&&o[f-1].length>0&&l.length>0&&!/^\s/.test(l[0])&&!/^\s|\s$/.test(x(!1,c,-1))?[...c.slice(0,-1),[...x(!1,c,-1),...l]]:[...c,l],[]).map(c=>c.reduce((l,f)=>l.length>0&&/\s$/.test(x(!1,l,-1))?[...l.slice(0,-1),x(!1,l,-1)+" "+f]:[...l,f],[])).map(c=>r.proseWrap==="never"?[c.join(" ")]:c));function a(c){if(t.chomping==="keep")return x(!1,c,-1).length===0?c.slice(0,-1):c;let l=0;for(let f=c.length-1;f>=0&&c[f].length===0;f--)l++;return l===0?c:l>=2&&!n?c.slice(0,-(l-1)):c.slice(0,-l)}}function st(t){if(!t)return!0;switch(t.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}var it=null;function ot(t){if(it!==null&&typeof it.property){let e=it;return it=ot.prototype=null,e}return it=ot.prototype=t??Object.create(null),new ot}var Ui=10;for(let t=0;t<=Ui;t++)ot();function hn(t){return ot(t)}function Ki(t,e="type"){hn(t);function n(r){let s=r[e],i=t[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:r});return i}return n}var Or=Ki;var Vi=Object.fromEntries(Object.entries({root:["children"],document:["head","body","children"],documentHead:["children"],documentBody:["children"],directive:[],alias:[],blockLiteral:[],blockFolded:["children"],plain:["children"],quoteSingle:[],quoteDouble:[],mapping:["children"],mappingItem:["key","value","children"],mappingKey:["content","children"],mappingValue:["content","children"],sequence:["children"],sequenceItem:["content","children"],flowMapping:["children"],flowMappingItem:["key","value","children"],flowSequence:["children"],flowSequenceItem:["content","children"],comment:[],tag:[],anchor:[]}).map(([t,e])=>[t,[...e,"anchor","tag","indicatorComment","leadingComments","middleComments","trailingComment","endComments"]])),Lr=Vi;var Wi=Or(Lr),Ar=Wi;function ji(t){return pn(t,Qi)}function Qi(t){switch(t.type){case"document":Pe(t,"head",()=>t.children[0]),Pe(t,"body",()=>t.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":Pe(t,"content",()=>t.children[0]);break;case"mappingItem":case"flowMappingItem":Pe(t,"key",()=>t.children[0]),Pe(t,"value",()=>t.children[1]);break}return t}var Tr=ji;var gn=new WeakMap;function Ct(t,e){let{node:n,root:r}=t,s;return gn.has(r)?s=gn.get(r):(s=new Set,gn.set(r,s)),!s.has(n.position.end.line)&&(s.add(n.position.end.line),Er(n,e)&&!dn(t.parent))?Ot:""}function dn(t){return R(t)&&!G(t,["documentHead","documentBody","flowMapping","flowSequence"])}function I(t,e){return tt(" ".repeat(t),e)}function Mt(t,e,n){let{node:r}=t,s=r.type==="flowMapping",i=s?"{":"[",o=s?"}":"]",a=Ot;s&&r.children.length>0&&n.bracketSpacing&&(a=ne);let c=x(!1,r.children,-1),l=(c==null?void 0:c.type)==="flowMappingItem"&&_e(c.key)&&_e(c.value);return[i,I(n.tabWidth,[a,Ji(t,e,n),n.trailingComma==="none"?"":nt(","),R(r)?[N,v(N,t.map(e,"endComments"))]:""]),l?"":a,o]}function Ji(t,e,n){return t.map(({isLast:r,node:s,next:i})=>[e(),r?"":[",",ne,s.position.start.line!==i.position.start.line?Ct(t,n.originalText):""]],"children")}function Gi(t,e,n){var C;let{node:r,parent:s}=t,{key:i,value:o}=r,a=_e(i),c=_e(o);if(a&&c)return": ";let l=e("key"),f=Hi(r)?" ":"";if(c)return r.type==="flowMappingItem"&&s.type==="flowMapping"?l:r.type==="mappingItem"&&yn(i.content,n)&&!H(i.content)&&((C=s.tag)==null?void 0:C.value)!=="tag:yaml.org,2002:set"?[l,f,":"]:["? ",I(2,l)];let m=e("value");if(a)return[": ",I(2,m)];if(Z(o)||!st(i.content))return["? ",I(2,l),N,...t.map(()=>[e(),N],"value","leadingComments"),": ",I(2,m)];if(Xi(i.content)&&!Z(i.content)&&!ie(i.content)&&!H(i.content)&&!R(i)&&!Z(o.content)&&!ie(o.content)&&!R(o)&&yn(o.content,n))return[l,f,": ",m];let d=Symbol("mappingKey"),y=ke([nt("? "),ke(I(2,l),{id:d})]),h=[N,": ",I(2,m)],g=[f,":"];Z(o.content)||R(o)&&o.content&&!G(o.content,["mapping","sequence"])||s.type==="mapping"&&H(i.content)&&st(o.content)||G(o.content,["mapping","sequence"])&&o.content.tag===null&&o.content.anchor===null?g.push(N):o.content&&g.push(ne),g.push(m);let w=I(n.tabWidth,g);return yn(i.content,n)&&!Z(i.content)&&!ie(i.content)&&!R(i)?cn([[l,w]]):cn([[y,nt(h,w,{groupId:d})]])}function yn(t,e){if(!t)return!0;switch(t.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if(e.proseWrap==="preserve")return t.position.start.line===t.position.end.line;if(/\\$/m.test(e.originalText.slice(t.position.start.offset,t.position.end.offset)))return!1;switch(e.proseWrap){case"never":return!t.value.includes(` -`);case"always":return!/[\n ]/.test(t.value);default:return!1}}function Hi(t){var e;return((e=t.key.content)==null?void 0:e.type)==="alias"}function Xi(t){if(!t)return!0;switch(t.type){case"plain":case"quoteDouble":case"quoteSingle":return t.position.start.line===t.position.end.line;case"alias":return!0;default:return!1}}var Cr=Gi;function zi(t,e,n){let{node:r}=t,s=t.ancestors.filter(l=>l.type==="sequence"||l.type==="mapping").length,i=At(t),o=[r.type==="blockFolded"?">":"|"];r.indent!==null&&o.push(r.indent.toString()),r.chomping!=="clip"&&o.push(r.chomping==="keep"?"+":"-"),mn(r)&&o.push(" ",e("indicatorComment"));let a=Nr(r,{parentIndent:s,isLastDescendant:i,options:n}),c=[];for(let[l,f]of a.entries())l===0&&c.push(N),c.push(bt(v(ne,f))),l!==a.length-1?c.push(f.length===0?N:ir(rt)):r.chomping==="keep"&&i&&c.push(an(f.length===0?N:rt));return r.indent===null?o.push(or(I(n.tabWidth,c))):o.push(an(I(r.indent-1+s,c))),o}var Mr=zi;function Zi(t,e,n){let{node:r}=t,s=[];r.type!=="mappingValue"&&Z(r)&&s.push([v(N,t.map(n,"leadingComments")),N]);let{tag:i,anchor:o}=r;i&&s.push(n("tag")),i&&o&&s.push(" "),o&&s.push(n("anchor"));let a="";return G(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!At(t)&&(a=Ct(t,e.originalText)),(i||o)&&(G(r,["sequence","mapping"])&&!ie(r)?s.push(N):s.push(" ")),ie(r)&&s.push([r.middleComments.length===1?"":N,v(N,t.map(n,"middleComments")),N]),Sr(t)?s.push(cr(e.originalText.slice(r.position.start.offset,r.position.end.offset).trimEnd())):s.push(ke(eo(t,e,n))),H(r)&&!G(r,["document","documentHead"])&&s.push(ar([r.type==="mappingValue"&&!r.content?"":" ",t.parent.type==="mappingKey"&&t.getParentNode(2).type==="mapping"&&st(r)?"":Nt,n("trailingComment")])),dn(r)&&s.push(I(r.type==="sequenceItem"?2:0,[N,v(N,t.map(({node:c})=>[lr(e.originalText,ve(c))?N:"",n()],"endComments"))])),s.push(a),s}function eo(t,e,n){let{node:r}=t;switch(r.type){case"root":{let s=[];t.each(({node:o,next:a,isFirst:c})=>{c||s.push(N),s.push(n()),kr(o,a)?(s.push(N,"..."),H(o)&&s.push(" ",n("trailingComment"))):a&&!H(a.head)&&s.push(N,"---")},"children");let i=Tt(r);return(!G(i,["blockLiteral","blockFolded"])||i.chomping!=="keep")&&s.push(N),s}case"document":{let s=[];return no(t,e)==="head"&&((r.head.children.length>0||r.head.endComments.length>0)&&s.push(n("head")),H(r.head)?s.push(["---"," ",n(["head","trailingComment"])]):s.push("---")),to(r)&&s.push(n("body")),v(N,s)}case"documentHead":return v(N,[...t.map(n,"children"),...t.map(n,"endComments")]);case"documentBody":{let{children:s,endComments:i}=r,o="";if(s.length>0&&i.length>0){let a=Tt(r);G(a,["blockFolded","blockLiteral"])?a.chomping!=="keep"&&(o=[N,N]):o=N}return[v(N,t.map(n,"children")),o,v(N,t.map(n,"endComments"))]}case"directive":return["%",v(" ",[r.name,...r.parameters])];case"comment":return["#",r.value];case"alias":return["*",r.value];case"tag":return e.originalText.slice(r.position.start.offset,r.position.end.offset);case"anchor":return["&",r.value];case"plain":return at(r.type,e.originalText.slice(r.position.start.offset,r.position.end.offset),e);case"quoteDouble":case"quoteSingle":{let s="'",i='"',o=e.originalText.slice(r.position.start.offset+1,r.position.end.offset-1);if(r.type==="quoteSingle"&&o.includes("\\")||r.type==="quoteDouble"&&/\\[^"]/.test(o)){let c=r.type==="quoteDouble"?i:s;return[c,at(r.type,o,e),c]}if(o.includes(i))return[s,at(r.type,r.type==="quoteDouble"?Et(!1,Et(!1,o,'\\"',i),"'",s.repeat(2)):o,e),s];if(o.includes(s))return[i,at(r.type,r.type==="quoteSingle"?Et(!1,o,"''",s):o,e),i];let a=e.singleQuote?s:i;return[a,at(r.type,o,e),a]}case"blockFolded":case"blockLiteral":return Mr(t,n,e);case"mapping":case"sequence":return v(N,t.map(n,"children"));case"sequenceItem":return["- ",I(2,r.content?n("content"):"")];case"mappingKey":case"mappingValue":return r.content?n("content"):"";case"mappingItem":case"flowMappingItem":return Cr(t,n,e);case"flowMapping":return Mt(t,n,e);case"flowSequence":return Mt(t,n,e);case"flowSequenceItem":return n("content");default:throw new fr(r,"YAML")}}function to(t){return t.body.children.length>0||R(t.body)}function kr(t,e){return H(t)||e&&(e.head.children.length>0||R(e.head))}function no(t,e){let n=t.node;if(t.isFirst&&/---(?:\s|$)/.test(e.originalText.slice(ve(n),ve(n)+4))||n.head.children.length>0||R(n.head)||H(n.head))return"head";let r=t.next;return kr(n,r)?!1:r?"root":!1}function at(t,e,n){let r=br(t,e,n);return v(N,r.map(s=>bt(v(ne,s))))}function ro(t,e){if(G(e))switch(delete e.position,e.type){case"comment":if(ur(e.value))return null;break;case"quoteDouble":case"quoteSingle":e.type="quote";break}}var so={preprocess:Tr,embed:dr,print:Zi,massageAstNode:ro,insertPragma:mr,getVisitorKeys:Ar},vr=so;var nn={};tr(nn,{yaml:()=>ja});var kt=` -`,Ir="\r",Pr=function(){function t(e){this.length=e.length;for(var n=[0],r=0;rthis.length)return null;for(var n=0,r=this.offsets;r[n+1]<=e;)n++;var s=e-r[n];return{line:n,column:s}},t.prototype.indexForLocation=function(e){var n=e.line,r=e.column;return n<0||n>=this.offsets.length||r<0||r>this.lengthOfLine(n)?null:this.offsets[n]+r},t.prototype.lengthOfLine=function(e){var n=this.offsets[e],r=e===this.offsets.length-1?this.length:this.offsets[e+1];return r-n},t}();function B(t,e=null){"children"in t&&t.children.forEach(n=>B(n,t)),"anchor"in t&&t.anchor&&B(t.anchor,t),"tag"in t&&t.tag&&B(t.tag,t),"leadingComments"in t&&t.leadingComments.forEach(n=>B(n,t)),"middleComments"in t&&t.middleComments.forEach(n=>B(n,t)),"indicatorComment"in t&&t.indicatorComment&&B(t.indicatorComment,t),"trailingComment"in t&&t.trailingComment&&B(t.trailingComment,t),"endComments"in t&&t.endComments.forEach(n=>B(n,t)),Object.defineProperty(t,"_parent",{value:e,enumerable:!1})}function ge(t){return`${t.line}:${t.column}`}function _r(t){B(t);let e=io(t),n=t.children.slice();t.comments.sort((r,s)=>r.position.start.offset-s.position.end.offset).filter(r=>!r._parent).forEach(r=>{for(;n.length>1&&r.position.start.line>n[0].position.end.line;)n.shift();oo(r,e,n[0])})}function io(t){let e=Array.from(new Array(t.position.end.line),()=>({}));for(let n of t.comments)e[n.position.start.line-1].comment=n;return xr(e,t),e}function xr(t,e){if(e.position.start.offset!==e.position.end.offset){if("leadingComments"in e){let{start:n}=e.position,{leadingAttachableNode:r}=t[n.line-1];(!r||n.column1&&e.type!=="document"&&e.type!=="documentHead"){let{end:n}=e.position,{trailingAttachableNode:r}=t[n.line-1];(!r||n.column>=r.position.end.column)&&(t[n.line-1].trailingAttachableNode=e)}if(e.type!=="root"&&e.type!=="document"&&e.type!=="documentHead"&&e.type!=="documentBody"){let{start:n,end:r}=e.position,s=[r.line].concat(n.line===r.line?[]:n.line);for(let i of s){let o=t[i-1].trailingNode;(!o||r.column>=o.position.end.column)&&(t[i-1].trailingNode=e)}}"children"in e&&e.children.forEach(n=>{xr(t,n)})}}function oo(t,e,n){let r=t.position.start.line,{trailingAttachableNode:s}=e[r-1];if(s){if(s.trailingComment)throw new Error(`Unexpected multiple trailing comment at ${ge(t.position.start)}`);B(t,s),s.trailingComment=t;return}for(let o=r;o>=n.position.start.line;o--){let{trailingNode:a}=e[o-1],c;if(a)c=a;else if(o!==r&&e[o-1].comment)c=e[o-1].comment._parent;else continue;if((c.type==="sequence"||c.type==="mapping")&&(c=c.children[0]),c.type==="mappingItem"){let[l,f]=c.children;c=Rr(l)?l:f}for(;;){if(ao(c,t)){B(t,c),c.endComments.push(t);return}if(!c._parent)break;c=c._parent}break}for(let o=r+1;o<=n.position.end.line;o++){let{leadingAttachableNode:a}=e[o-1];if(a){B(t,a),a.leadingComments.push(t);return}}let i=n.children[1];B(t,i),i.endComments.push(t)}function ao(t,e){if(t.position.start.offsete.position.end.offset)switch(t.type){case"flowMapping":case"flowSequence":return t.children.length===0||e.position.start.line>t.children[t.children.length-1].position.end.line}if(e.position.end.offsett.position.start.column;case"mappingKey":case"mappingValue":return e.position.start.column>t._parent.position.start.column&&(t.children.length===0||t.children.length===1&&t.children[0].type!=="blockFolded"&&t.children[0].type!=="blockLiteral")&&(t.type==="mappingValue"||Rr(t));default:return!1}}function Rr(t){return t.position.start!==t.position.end&&(t.children.length===0||t.position.start.offset!==t.children[0].position.start.offset)}function b(t,e){return{type:t,position:e}}function Dr(t,e,n){return{...b("root",t),children:e,comments:n}}function ct(t){switch(t.type){case"DOCUMENT":for(let e=t.contents.length-1;e>=0;e--)t.contents[e].type==="BLANK_LINE"?t.contents.splice(e,1):ct(t.contents[e]);for(let e=t.directives.length-1;e>=0;e--)t.directives[e].type==="BLANK_LINE"&&t.directives.splice(e,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(let e=t.items.length-1;e>=0;e--){let n=t.items[e];"char"in n||(n.type==="BLANK_LINE"?t.items.splice(e,1):ct(n))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":t.node&&ct(t.node);break;case"ALIAS":case"BLANK_LINE":case"BLOCK_FOLDED":case"BLOCK_LITERAL":case"COMMENT":case"DIRECTIVE":case"PLAIN":case"QUOTE_DOUBLE":case"QUOTE_SINGLE":break;default:throw new Error(`Unexpected node type ${JSON.stringify(t.type)}`)}}function X(){return{leadingComments:[]}}function oe(t=null){return{trailingComment:t}}function $(){return{...X(),...oe()}}function Yr(t,e,n){return{...b("alias",t),...$(),...e,value:n}}function Br(t,e){let n=t.cstNode;return Yr(e.transformRange({origStart:n.valueRange.origStart-1,origEnd:n.valueRange.origEnd}),e.transformContent(t),n.rawValue)}function $r(t){return{...t,type:"blockFolded"}}function Fr(t,e,n,r,s,i){return{...b("blockValue",t),...X(),...e,chomping:n,indent:r,value:s,indicatorComment:i}}var ae;(function(t){t.Tag="!",t.Anchor="&",t.Comment="#"})(ae||(ae={}));function qr(t,e){return{...b("anchor",t),value:e}}function xe(t,e){return{...b("comment",t),value:e}}function Ur(t,e,n){return{anchor:e,tag:t,middleComments:n}}function Kr(t,e){return{...b("tag",t),value:e}}function vt(t,e,n=()=>!1){let r=t.cstNode,s=[],i=null,o=null,a=null;for(let c of r.props){let l=e.text[c.origStart];switch(l){case ae.Tag:i=i||c,o=Kr(e.transformRange(c),t.tag);break;case ae.Anchor:i=i||c,a=qr(e.transformRange(c),r.anchor);break;case ae.Comment:{let f=xe(e.transformRange(c),e.text.slice(c.origStart+1,c.origEnd));e.comments.push(f),!n(f)&&i&&i.origEnd<=c.origStart&&c.origEnd<=r.valueRange.origStart&&s.push(f);break}default:throw new Error(`Unexpected leading character ${JSON.stringify(l)}`)}}return Ur(o,a,s)}var En;(function(t){t.CLIP="clip",t.STRIP="strip",t.KEEP="keep"})(En||(En={}));function It(t,e){let n=t.cstNode,r=1,s=n.chomping==="CLIP"?0:1,o=n.header.origEnd-n.header.origStart-r-s!==0,a=e.transformRange({origStart:n.header.origStart,origEnd:n.valueRange.origEnd}),c=null,l=vt(t,e,f=>{if(!(a.start.offset=0;c--){let l=t.contents[c];if(l.type==="COMMENT"){let f=e.transformNode(l);n&&n.line===f.position.start.line?o.unshift(f):a?r.unshift(f):f.position.start.offset>=t.valueRange.origEnd?i.unshift(f):r.unshift(f)}else a=!0}if(i.length>1)throw new Error(`Unexpected multiple document trailing comments at ${ge(i[1].position.start)}`);if(o.length>1)throw new Error(`Unexpected multiple documentHead trailing comments at ${ge(o[1].position.start)}`);return{comments:r,endComments:s,documentTrailingComment:q(i)||null,documentHeadTrailingComment:q(o)||null}}function lo(t,e,n){let r=Pt(n.text.slice(t.valueRange.origEnd),/^\.\.\./),s=r===-1?t.valueRange.origEnd:Math.max(0,t.valueRange.origEnd-1);n.text[s-1]==="\r"&&s--;let i=n.transformRange({origStart:e!==null?e.position.start.offset:s,origEnd:s}),o=r===-1?i.end:n.transformOffset(t.valueRange.origEnd+3);return{position:i,documentEndPoint:o}}function Zr(t,e,n,r){return{...b("documentHead",t),...F(n),...oe(r),children:e}}function es(t,e){let n=t.cstNode,{directives:r,comments:s,endComments:i}=fo(n,e),{position:o,endMarkerPoint:a}=uo(n,r,e);return e.comments.push(...s,...i),{createDocumentHeadWithTrailingComment:l=>(l&&e.comments.push(l),Zr(o,r,i,l)),documentHeadEndMarkerPoint:a}}function fo(t,e){let n=[],r=[],s=[],i=!1;for(let o=t.directives.length-1;o>=0;o--){let a=e.transformNode(t.directives[o]);a.type==="comment"?i?r.unshift(a):s.unshift(a):(i=!0,n.unshift(a))}return{directives:n,comments:r,endComments:s}}function uo(t,e,n){let r=Pt(n.text.slice(0,t.valueRange.origStart),/---\s*$/);r>0&&!/[\r\n]/.test(n.text[r-1])&&(r=-1);let s=r===-1?{origStart:t.valueRange.origStart,origEnd:t.valueRange.origStart}:{origStart:r,origEnd:r+3};return e.length!==0&&(s.origStart=e[0].position.start.offset),{position:n.transformRange(s),endMarkerPoint:r===-1?null:n.transformOffset(r)}}function ts(t,e){let{createDocumentHeadWithTrailingComment:n,documentHeadEndMarkerPoint:r}=es(t,e),{documentBody:s,documentEndPoint:i,documentTrailingComment:o,documentHeadTrailingComment:a}=zr(t,e,r),c=n(a);return o&&e.comments.push(o),Hr(K(c.position.start,i),c,s,o)}function _t(t,e,n){return{...b("flowCollection",t),...$(),...F(),...e,children:n}}function ns(t,e,n){return{..._t(t,e,n),type:"flowMapping"}}function xt(t,e,n){return{...b("flowMappingItem",t),...X(),children:[e,n]}}function ce(t,e){let n=[];for(let r of t)r&&"type"in r&&r.type==="COMMENT"?e.comments.push(e.transformNode(r)):n.push(r);return n}function Rt(t){let[e,n]=["?",":"].map(r=>{let s=t.find(i=>"char"in i&&i.char===r);return s?{origStart:s.origOffset,origEnd:s.origOffset+1}:null});return{additionalKeyRange:e,additionalValueRange:n}}function Dt(t,e){let n=e;return r=>t.slice(n,n=r)}function Yt(t){let e=[],n=Dt(t,1),r=!1;for(let s=1;s{let l=r[c],{additionalKeyRange:f,additionalValueRange:m}=Rt(l);return De(a,e,xt,f,m)}),i=n[0],o=q(n);return ns(e.transformRange({origStart:i.origOffset,origEnd:o.origOffset+1}),e.transformContent(t),s)}function ss(t,e,n){return{..._t(t,e,n),type:"flowSequence"}}function is(t,e){return{...b("flowSequenceItem",t),children:[e]}}function os(t,e){let n=ce(t.cstNode.items,e),r=Yt(n),s=t.items.map((a,c)=>{if(a.type!=="PAIR"){let l=e.transformNode(a);return is(K(l.position.start,l.position.end),l)}else{let l=r[c],{additionalKeyRange:f,additionalValueRange:m}=Rt(l);return De(a,e,xt,f,m)}}),i=n[0],o=q(n);return ss(e.transformRange({origStart:i.origOffset,origEnd:o.origOffset+1}),e.transformContent(t),s)}function as(t,e,n){return{...b("mapping",t),...X(),...e,children:n}}function cs(t,e,n){return{...b("mappingItem",t),...X(),children:[e,n]}}function ls(t,e){let n=t.cstNode;n.items.filter(o=>o.type==="MAP_KEY"||o.type==="MAP_VALUE").forEach(o=>Re(o,e));let r=ce(n.items,e),s=po(r),i=t.items.map((o,a)=>{let c=s[a],[l,f]=c[0].type==="MAP_VALUE"?[null,c[0].range]:[c[0].range,c.length===1?null:c[1].range];return De(o,e,cs,l,f)});return as(K(i[0].position.start,q(i).position.end),e.transformContent(t),i)}function po(t){let e=[],n=Dt(t,0),r=!1;for(let s=0;s=0;r--)if(n.test(t[r]))return r;return-1}function ps(t,e){let n=t.cstNode;return fs(e.transformRange({origStart:n.valueRange.origStart,origEnd:us(e.text,n.valueRange.origEnd-1,/\S/)+1}),e.transformContent(t),n.strValue)}function ms(t){return{...t,type:"quoteDouble"}}function hs(t,e,n){return{...b("quoteValue",t),...e,...$(),value:n}}function Bt(t,e){let n=t.cstNode;return hs(e.transformRange(n.valueRange),e.transformContent(t),n.strValue)}function gs(t,e){return ms(Bt(t,e))}function ds(t){return{...t,type:"quoteSingle"}}function ys(t,e){return ds(Bt(t,e))}function Es(t,e,n){return{...b("sequence",t),...X(),...F(),...e,children:n}}function Ss(t,e){return{...b("sequenceItem",t),...$(),...F(),children:e?[e]:[]}}function ws(t,e){let r=ce(t.cstNode.items,e).map((s,i)=>{Re(s,e);let o=e.transformNode(t.items[i]);return Ss(K(e.transformOffset(s.valueRange.origStart),o===null?e.transformOffset(s.valueRange.origStart+1):o.position.end),o)});return Es(K(r[0].position.start,q(r).position.end),e.transformContent(t),r)}function bs(t,e){if(t===null||t.type===void 0&&t.value===null)return null;switch(t.type){case"ALIAS":return Br(t,e);case"BLOCK_FOLDED":return Vr(t,e);case"BLOCK_LITERAL":return jr(t,e);case"COMMENT":return Qr(t,e);case"DIRECTIVE":return Gr(t,e);case"DOCUMENT":return ts(t,e);case"FLOW_MAP":return rs(t,e);case"FLOW_SEQ":return os(t,e);case"MAP":return ls(t,e);case"PLAIN":return ps(t,e);case"QUOTE_DOUBLE":return gs(t,e);case"QUOTE_SINGLE":return ys(t,e);case"SEQ":return ws(t,e);default:throw new Error(`Unexpected node type ${t.type}`)}}function Ns(t,e,n){let r=new SyntaxError(t);return r.name="YAMLSyntaxError",r.source=e,r.position=n,r}function Os(t,e){let n=t.source.range||t.source.valueRange;return Ns(t.message,e.text,e.transformRange(n))}function Ls(t,e,n){return{offset:t,line:e,column:n}}function As(t,e){t<0?t=0:t>e.text.length&&(t=e.text.length);let n=e.locator.locationForIndex(t);return Ls(t,n.line+1,n.column+1)}function Ts(t,e){return K(e.transformOffset(t.origStart),e.transformOffset(t.origEnd))}function Cs(t){if(!t.setOrigRanges()){let e=n=>{if(mo(n))return n.origStart=n.start,n.origEnd=n.end,!0;if(ho(n))return n.origOffset=n.offset,!0};t.forEach(n=>Nn(n,e))}}function Nn(t,e){if(!(!t||typeof t!="object")&&e(t)!==!0)for(let n of Object.keys(t)){if(n==="context"||n==="error")continue;let r=t[n];Array.isArray(r)?r.forEach(s=>Nn(s,e)):Nn(r,e)}}function mo(t){return typeof t.start=="number"}function ho(t){return typeof t.offset=="number"}function On(t){if("children"in t){if(t.children.length===1){let e=t.children[0];if(e.type==="plain"&&e.tag===null&&e.anchor===null&&e.value==="")return t.children.splice(0,1),t}t.children.forEach(On)}return t}function Ln(t,e,n,r){let s=e(t);return i=>{r(s,i)&&n(t,s=i)}}function An(t){if(t===null||!("children"in t))return;let e=t.children;if(e.forEach(An),t.type==="document"){let[i,o]=t.children;i.position.start.offset===i.position.end.offset?i.position.start=i.position.end=o.position.start:o.position.start.offset===o.position.end.offset&&(o.position.start=o.position.end=i.position.end)}let n=Ln(t.position,go,yo,wo),r=Ln(t.position,Eo,So,bo);"endComments"in t&&t.endComments.length!==0&&(n(t.endComments[0].position.start),r(q(t.endComments).position.end));let s=e.filter(i=>i!==null);if(s.length!==0){let i=s[0],o=q(s);n(i.position.start),r(o.position.end),"leadingComments"in i&&i.leadingComments.length!==0&&n(i.leadingComments[0].position.start),"tag"in i&&i.tag&&n(i.tag.position.start),"anchor"in i&&i.anchor&&n(i.anchor.position.start),"trailingComment"in o&&o.trailingComment&&r(o.trailingComment.position.end)}}function go(t){return t.start}function yo(t,e){t.start=e}function Eo(t){return t.end}function So(t,e){t.end=e}function wo(t,e){return e.offsett.offset}var di=rr(hi(),1);var J=rr(gi(),1),xm=J.default.findPair,Rm=J.default.toJSON,Dm=J.default.parseMap,Ym=J.default.parseSeq,Bm=J.default.stringifyNumber,$m=J.default.stringifyString,Fm=J.default.Type,qa=J.default.YAMLError,qm=J.default.YAMLReferenceError,er=J.default.YAMLSemanticError,Ua=J.default.YAMLSyntaxError,Um=J.default.YAMLWarning;var{Document:yi,parseCST:Ei}=di.default;function Si(t){let e=Ei(t);Cs(e);let n=e.map(a=>new yi({merge:!1,keepCstNodes:!0}).parse(a)),r=new Pr(t),s=[],i={text:t,locator:r,comments:s,transformOffset:a=>As(a,i),transformRange:a=>Ts(a,i),transformNode:a=>bs(a,i),transformContent:a=>vt(a,i)};for(let a of n)for(let c of a.errors)if(!(c instanceof er&&c.message==='Map keys must be unique; "<<" is repeated'))throw Os(c,i);n.forEach(a=>ct(a.cstNode));let o=Dr(i.transformRange({origStart:0,origEnd:i.text.length}),n.map(i.transformNode),s);return _r(o),An(o),On(o),o}function Va(t,e){let n=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(n,e)}var wi=Va;function Wa(t){try{let e=Si(t);return delete e.comments,e}catch(e){throw e!=null&&e.position?wi(e.message,{loc:e.position,cause:e}):e}}var ja={astFormat:"yaml",parse:Wa,hasPragma:pr,locStart:ve,locEnd:hr};var bi=[{linguistLanguageId:407,name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock",".prettierrc",".stylelintrc",".lintstagedrc"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"]}];var rn={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Qa={bracketSpacing:rn.bracketSpacing,singleQuote:rn.singleQuote,proseWrap:rn.proseWrap},Ni=Qa;var Ja={yaml:vr};return ki(Ga);}); \ No newline at end of file +`).map(c=>c.slice(i));if(r.proseWrap==="preserve"||t.type==="blockLiteral")return a(o.map(c=>c.length===0?[]:[c]));return a(o.map(c=>c.length===0?[]:wr(c)).reduce((c,l,f)=>f!==0&&o[f-1].length>0&&l.length>0&&!/^\s/.test(l[0])&&!/^\s|\s$/.test(x(!1,c,-1))?[...c.slice(0,-1),[...x(!1,c,-1),...l]]:[...c,l],[]).map(c=>c.reduce((l,f)=>l.length>0&&/\s$/.test(x(!1,l,-1))?[...l.slice(0,-1),x(!1,l,-1)+" "+f]:[...l,f],[])).map(c=>r.proseWrap==="never"?[c.join(" ")]:c));function a(c){if(t.chomping==="keep")return x(!1,c,-1).length===0?c.slice(0,-1):c;let l=0;for(let f=c.length-1;f>=0&&c[f].length===0;f--)l++;return l===0?c:l>=2&&!n?c.slice(0,-(l-1)):c.slice(0,-l)}}function st(t){if(!t)return!0;switch(t.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}var it=null;function ot(t){if(it!==null&&typeof it.property){let e=it;return it=ot.prototype=null,e}return it=ot.prototype=t??Object.create(null),new ot}var Ui=10;for(let t=0;t<=Ui;t++)ot();function mn(t){return ot(t)}function Ki(t,e="type"){mn(t);function n(r){let s=r[e],i=t[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:r});return i}return n}var Or=Ki;var Vi=Object.fromEntries(Object.entries({root:["children"],document:["head","body","children"],documentHead:["children"],documentBody:["children"],directive:[],alias:[],blockLiteral:[],blockFolded:["children"],plain:["children"],quoteSingle:[],quoteDouble:[],mapping:["children"],mappingItem:["key","value","children"],mappingKey:["content","children"],mappingValue:["content","children"],sequence:["children"],sequenceItem:["content","children"],flowMapping:["children"],flowMappingItem:["key","value","children"],flowSequence:["children"],flowSequenceItem:["content","children"],comment:[],tag:[],anchor:[]}).map(([t,e])=>[t,[...e,"anchor","tag","indicatorComment","leadingComments","middleComments","trailingComment","endComments"]])),Lr=Vi;var Wi=Or(Lr),Ar=Wi;function ji(t){return un(t,Qi)}function Qi(t){switch(t.type){case"document":Pe(t,"head",()=>t.children[0]),Pe(t,"body",()=>t.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":Pe(t,"content",()=>t.children[0]);break;case"mappingItem":case"flowMappingItem":Pe(t,"key",()=>t.children[0]),Pe(t,"value",()=>t.children[1]);break}return t}var Tr=ji;var hn=new WeakMap;function Ct(t,e){let{node:n,root:r}=t,s;return hn.has(r)?s=hn.get(r):(s=new Set,hn.set(r,s)),!s.has(n.position.end.line)&&(s.add(n.position.end.line),Er(n,e)&&!gn(t.parent))?Ot:""}function gn(t){return R(t)&&!G(t,["documentHead","documentBody","flowMapping","flowSequence"])}function I(t,e){return tt(" ".repeat(t),e)}function Mt(t,e,n){let{node:r}=t,s=r.type==="flowMapping",i=s?"{":"[",o=s?"}":"]",a=Ot;s&&r.children.length>0&&n.bracketSpacing&&(a=ne);let c=x(!1,r.children,-1),l=(c==null?void 0:c.type)==="flowMappingItem"&&_e(c.key)&&_e(c.value);return[i,I(n.tabWidth,[a,Ji(t,e,n),n.trailingComma==="none"?"":nt(","),R(r)?[N,v(N,t.map(e,"endComments"))]:""]),l?"":a,o]}function Ji(t,e,n){return t.map(({isLast:r,node:s,next:i})=>[e(),r?"":[",",ne,s.position.start.line!==i.position.start.line?Ct(t,n.originalText):""]],"children")}function Gi(t,e,n){var C;let{node:r,parent:s}=t,{key:i,value:o}=r,a=_e(i),c=_e(o);if(a&&c)return": ";let l=e("key"),f=Hi(r)?" ":"";if(c)return r.type==="flowMappingItem"&&s.type==="flowMapping"?l:r.type==="mappingItem"&&dn(i.content,n)&&!H(i.content)&&((C=s.tag)==null?void 0:C.value)!=="tag:yaml.org,2002:set"?[l,f,":"]:["? ",I(2,l)];let m=e("value");if(a)return[": ",I(2,m)];if(Z(o)||!st(i.content))return["? ",I(2,l),N,...t.map(()=>[e(),N],"value","leadingComments"),": ",I(2,m)];if(Xi(i.content)&&!Z(i.content)&&!ie(i.content)&&!H(i.content)&&!R(i)&&!Z(o.content)&&!ie(o.content)&&!R(o)&&dn(o.content,n))return[l,f,": ",m];let d=Symbol("mappingKey"),y=ke([nt("? "),ke(I(2,l),{id:d})]),h=[N,": ",I(2,m)],g=[f,":"];Z(o.content)||R(o)&&o.content&&!G(o.content,["mapping","sequence"])||s.type==="mapping"&&H(i.content)&&st(o.content)||G(o.content,["mapping","sequence"])&&o.content.tag===null&&o.content.anchor===null?g.push(N):o.content&&g.push(ne),g.push(m);let w=I(n.tabWidth,g);return dn(i.content,n)&&!Z(i.content)&&!ie(i.content)&&!R(i)?an([[l,w]]):an([[y,nt(h,w,{groupId:d})]])}function dn(t,e){if(!t)return!0;switch(t.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if(e.proseWrap==="preserve")return t.position.start.line===t.position.end.line;if(/\\$/m.test(e.originalText.slice(t.position.start.offset,t.position.end.offset)))return!1;switch(e.proseWrap){case"never":return!t.value.includes(` +`);case"always":return!/[\n ]/.test(t.value);default:return!1}}function Hi(t){var e;return((e=t.key.content)==null?void 0:e.type)==="alias"}function Xi(t){if(!t)return!0;switch(t.type){case"plain":case"quoteDouble":case"quoteSingle":return t.position.start.line===t.position.end.line;case"alias":return!0;default:return!1}}var Cr=Gi;function zi(t,e,n){let{node:r}=t,s=t.ancestors.filter(l=>l.type==="sequence"||l.type==="mapping").length,i=At(t),o=[r.type==="blockFolded"?">":"|"];r.indent!==null&&o.push(r.indent.toString()),r.chomping!=="clip"&&o.push(r.chomping==="keep"?"+":"-"),pn(r)&&o.push(" ",e("indicatorComment"));let a=Nr(r,{parentIndent:s,isLastDescendant:i,options:n}),c=[];for(let[l,f]of a.entries())l===0&&c.push(N),c.push(bt(v(ne,f))),l!==a.length-1?c.push(f.length===0?N:ir(rt)):r.chomping==="keep"&&i&&c.push(on(f.length===0?N:rt));return r.indent===null?o.push(or(I(n.tabWidth,c))):o.push(on(I(r.indent-1+s,c))),o}var Mr=zi;function Zi(t,e,n){let{node:r}=t,s=[];r.type!=="mappingValue"&&Z(r)&&s.push([v(N,t.map(n,"leadingComments")),N]);let{tag:i,anchor:o}=r;i&&s.push(n("tag")),i&&o&&s.push(" "),o&&s.push(n("anchor"));let a="";return G(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!At(t)&&(a=Ct(t,e.originalText)),(i||o)&&(G(r,["sequence","mapping"])&&!ie(r)?s.push(N):s.push(" ")),ie(r)&&s.push([r.middleComments.length===1?"":N,v(N,t.map(n,"middleComments")),N]),Sr(t)?s.push(cr(e.originalText.slice(r.position.start.offset,r.position.end.offset).trimEnd())):s.push(ke(eo(t,e,n))),H(r)&&!G(r,["document","documentHead"])&&s.push(ar([r.type==="mappingValue"&&!r.content?"":" ",t.parent.type==="mappingKey"&&t.getParentNode(2).type==="mapping"&&st(r)?"":Nt,n("trailingComment")])),gn(r)&&s.push(I(r.type==="sequenceItem"?2:0,[N,v(N,t.map(({node:c})=>[lr(e.originalText,ve(c))?N:"",n()],"endComments"))])),s.push(a),s}function eo(t,e,n){let{node:r}=t;switch(r.type){case"root":{let s=[];t.each(({node:o,next:a,isFirst:c})=>{c||s.push(N),s.push(n()),kr(o,a)?(s.push(N,"..."),H(o)&&s.push(" ",n("trailingComment"))):a&&!H(a.head)&&s.push(N,"---")},"children");let i=Tt(r);return(!G(i,["blockLiteral","blockFolded"])||i.chomping!=="keep")&&s.push(N),s}case"document":{let s=[];return no(t,e)==="head"&&((r.head.children.length>0||r.head.endComments.length>0)&&s.push(n("head")),H(r.head)?s.push(["---"," ",n(["head","trailingComment"])]):s.push("---")),to(r)&&s.push(n("body")),v(N,s)}case"documentHead":return v(N,[...t.map(n,"children"),...t.map(n,"endComments")]);case"documentBody":{let{children:s,endComments:i}=r,o="";if(s.length>0&&i.length>0){let a=Tt(r);G(a,["blockFolded","blockLiteral"])?a.chomping!=="keep"&&(o=[N,N]):o=N}return[v(N,t.map(n,"children")),o,v(N,t.map(n,"endComments"))]}case"directive":return["%",v(" ",[r.name,...r.parameters])];case"comment":return["#",r.value];case"alias":return["*",r.value];case"tag":return e.originalText.slice(r.position.start.offset,r.position.end.offset);case"anchor":return["&",r.value];case"plain":return at(r.type,e.originalText.slice(r.position.start.offset,r.position.end.offset),e);case"quoteDouble":case"quoteSingle":{let s="'",i='"',o=e.originalText.slice(r.position.start.offset+1,r.position.end.offset-1);if(r.type==="quoteSingle"&&o.includes("\\")||r.type==="quoteDouble"&&/\\[^"]/.test(o)){let c=r.type==="quoteDouble"?i:s;return[c,at(r.type,o,e),c]}if(o.includes(i))return[s,at(r.type,r.type==="quoteDouble"?Et(!1,Et(!1,o,'\\"',i),"'",s.repeat(2)):o,e),s];if(o.includes(s))return[i,at(r.type,r.type==="quoteSingle"?Et(!1,o,"''",s):o,e),i];let a=e.singleQuote?s:i;return[a,at(r.type,o,e),a]}case"blockFolded":case"blockLiteral":return Mr(t,n,e);case"mapping":case"sequence":return v(N,t.map(n,"children"));case"sequenceItem":return["- ",I(2,r.content?n("content"):"")];case"mappingKey":case"mappingValue":return r.content?n("content"):"";case"mappingItem":case"flowMappingItem":return Cr(t,n,e);case"flowMapping":return Mt(t,n,e);case"flowSequence":return Mt(t,n,e);case"flowSequenceItem":return n("content");default:throw new fr(r,"YAML")}}function to(t){return t.body.children.length>0||R(t.body)}function kr(t,e){return H(t)||e&&(e.head.children.length>0||R(e.head))}function no(t,e){let n=t.node;if(t.isFirst&&/---(?:\s|$)/.test(e.originalText.slice(ve(n),ve(n)+4))||n.head.children.length>0||R(n.head)||H(n.head))return"head";let r=t.next;return kr(n,r)?!1:r?"root":!1}function at(t,e,n){let r=br(t,e,n);return v(N,r.map(s=>bt(v(ne,s))))}function ro(t,e){if(G(e))switch(delete e.position,e.type){case"comment":if(ur(e.value))return null;break;case"quoteDouble":case"quoteSingle":e.type="quote";break}}var so={preprocess:Tr,embed:dr,print:Zi,massageAstNode:ro,insertPragma:mr,getVisitorKeys:Ar},vr=so;var er={};tr(er,{yaml:()=>ja});var kt=` +`,Ir="\r",Pr=function(){function t(e){this.length=e.length;for(var n=[0],r=0;rthis.length)return null;for(var n=0,r=this.offsets;r[n+1]<=e;)n++;var s=e-r[n];return{line:n,column:s}},t.prototype.indexForLocation=function(e){var n=e.line,r=e.column;return n<0||n>=this.offsets.length||r<0||r>this.lengthOfLine(n)?null:this.offsets[n]+r},t.prototype.lengthOfLine=function(e){var n=this.offsets[e],r=e===this.offsets.length-1?this.length:this.offsets[e+1];return r-n},t}();function B(t,e=null){"children"in t&&t.children.forEach(n=>B(n,t)),"anchor"in t&&t.anchor&&B(t.anchor,t),"tag"in t&&t.tag&&B(t.tag,t),"leadingComments"in t&&t.leadingComments.forEach(n=>B(n,t)),"middleComments"in t&&t.middleComments.forEach(n=>B(n,t)),"indicatorComment"in t&&t.indicatorComment&&B(t.indicatorComment,t),"trailingComment"in t&&t.trailingComment&&B(t.trailingComment,t),"endComments"in t&&t.endComments.forEach(n=>B(n,t)),Object.defineProperty(t,"_parent",{value:e,enumerable:!1})}function ge(t){return`${t.line}:${t.column}`}function _r(t){B(t);let e=io(t),n=t.children.slice();t.comments.sort((r,s)=>r.position.start.offset-s.position.end.offset).filter(r=>!r._parent).forEach(r=>{for(;n.length>1&&r.position.start.line>n[0].position.end.line;)n.shift();oo(r,e,n[0])})}function io(t){let e=Array.from(new Array(t.position.end.line),()=>({}));for(let n of t.comments)e[n.position.start.line-1].comment=n;return xr(e,t),e}function xr(t,e){if(e.position.start.offset!==e.position.end.offset){if("leadingComments"in e){let{start:n}=e.position,{leadingAttachableNode:r}=t[n.line-1];(!r||n.column1&&e.type!=="document"&&e.type!=="documentHead"){let{end:n}=e.position,{trailingAttachableNode:r}=t[n.line-1];(!r||n.column>=r.position.end.column)&&(t[n.line-1].trailingAttachableNode=e)}if(e.type!=="root"&&e.type!=="document"&&e.type!=="documentHead"&&e.type!=="documentBody"){let{start:n,end:r}=e.position,s=[r.line].concat(n.line===r.line?[]:n.line);for(let i of s){let o=t[i-1].trailingNode;(!o||r.column>=o.position.end.column)&&(t[i-1].trailingNode=e)}}"children"in e&&e.children.forEach(n=>{xr(t,n)})}}function oo(t,e,n){let r=t.position.start.line,{trailingAttachableNode:s}=e[r-1];if(s){if(s.trailingComment)throw new Error(`Unexpected multiple trailing comment at ${ge(t.position.start)}`);B(t,s),s.trailingComment=t;return}for(let o=r;o>=n.position.start.line;o--){let{trailingNode:a}=e[o-1],c;if(a)c=a;else if(o!==r&&e[o-1].comment)c=e[o-1].comment._parent;else continue;if((c.type==="sequence"||c.type==="mapping")&&(c=c.children[0]),c.type==="mappingItem"){let[l,f]=c.children;c=Rr(l)?l:f}for(;;){if(ao(c,t)){B(t,c),c.endComments.push(t);return}if(!c._parent)break;c=c._parent}break}for(let o=r+1;o<=n.position.end.line;o++){let{leadingAttachableNode:a}=e[o-1];if(a){B(t,a),a.leadingComments.push(t);return}}let i=n.children[1];B(t,i),i.endComments.push(t)}function ao(t,e){if(t.position.start.offsete.position.end.offset)switch(t.type){case"flowMapping":case"flowSequence":return t.children.length===0||e.position.start.line>t.children[t.children.length-1].position.end.line}if(e.position.end.offsett.position.start.column;case"mappingKey":case"mappingValue":return e.position.start.column>t._parent.position.start.column&&(t.children.length===0||t.children.length===1&&t.children[0].type!=="blockFolded"&&t.children[0].type!=="blockLiteral")&&(t.type==="mappingValue"||Rr(t));default:return!1}}function Rr(t){return t.position.start!==t.position.end&&(t.children.length===0||t.position.start.offset!==t.children[0].position.start.offset)}function b(t,e){return{type:t,position:e}}function Dr(t,e,n){return{...b("root",t),children:e,comments:n}}function ct(t){switch(t.type){case"DOCUMENT":for(let e=t.contents.length-1;e>=0;e--)t.contents[e].type==="BLANK_LINE"?t.contents.splice(e,1):ct(t.contents[e]);for(let e=t.directives.length-1;e>=0;e--)t.directives[e].type==="BLANK_LINE"&&t.directives.splice(e,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(let e=t.items.length-1;e>=0;e--){let n=t.items[e];"char"in n||(n.type==="BLANK_LINE"?t.items.splice(e,1):ct(n))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":t.node&&ct(t.node);break;case"ALIAS":case"BLANK_LINE":case"BLOCK_FOLDED":case"BLOCK_LITERAL":case"COMMENT":case"DIRECTIVE":case"PLAIN":case"QUOTE_DOUBLE":case"QUOTE_SINGLE":break;default:throw new Error(`Unexpected node type ${JSON.stringify(t.type)}`)}}function X(){return{leadingComments:[]}}function oe(t=null){return{trailingComment:t}}function $(){return{...X(),...oe()}}function Yr(t,e,n){return{...b("alias",t),...$(),...e,value:n}}function Br(t,e){let n=t.cstNode;return Yr(e.transformRange({origStart:n.valueRange.origStart-1,origEnd:n.valueRange.origEnd}),e.transformContent(t),n.rawValue)}function $r(t){return{...t,type:"blockFolded"}}function Fr(t,e,n,r,s,i){return{...b("blockValue",t),...X(),...e,chomping:n,indent:r,value:s,indicatorComment:i}}var ae;(function(t){t.Tag="!",t.Anchor="&",t.Comment="#"})(ae||(ae={}));function qr(t,e){return{...b("anchor",t),value:e}}function xe(t,e){return{...b("comment",t),value:e}}function Ur(t,e,n){return{anchor:e,tag:t,middleComments:n}}function Kr(t,e){return{...b("tag",t),value:e}}function vt(t,e,n=()=>!1){let r=t.cstNode,s=[],i=null,o=null,a=null;for(let c of r.props){let l=e.text[c.origStart];switch(l){case ae.Tag:i=i||c,o=Kr(e.transformRange(c),t.tag);break;case ae.Anchor:i=i||c,a=qr(e.transformRange(c),r.anchor);break;case ae.Comment:{let f=xe(e.transformRange(c),e.text.slice(c.origStart+1,c.origEnd));e.comments.push(f),!n(f)&&i&&i.origEnd<=c.origStart&&c.origEnd<=r.valueRange.origStart&&s.push(f);break}default:throw new Error(`Unexpected leading character ${JSON.stringify(l)}`)}}return Ur(o,a,s)}var yn;(function(t){t.CLIP="clip",t.STRIP="strip",t.KEEP="keep"})(yn||(yn={}));function It(t,e){let n=t.cstNode,r=1,s=n.chomping==="CLIP"?0:1,o=n.header.origEnd-n.header.origStart-r-s!==0,a=e.transformRange({origStart:n.header.origStart,origEnd:n.valueRange.origEnd}),c=null,l=vt(t,e,f=>{if(!(a.start.offset=0;c--){let l=t.contents[c];if(l.type==="COMMENT"){let f=e.transformNode(l);n&&n.line===f.position.start.line?o.unshift(f):a?r.unshift(f):f.position.start.offset>=t.valueRange.origEnd?i.unshift(f):r.unshift(f)}else a=!0}if(i.length>1)throw new Error(`Unexpected multiple document trailing comments at ${ge(i[1].position.start)}`);if(o.length>1)throw new Error(`Unexpected multiple documentHead trailing comments at ${ge(o[1].position.start)}`);return{comments:r,endComments:s,documentTrailingComment:q(i)||null,documentHeadTrailingComment:q(o)||null}}function lo(t,e,n){let r=Pt(n.text.slice(t.valueRange.origEnd),/^\.\.\./),s=r===-1?t.valueRange.origEnd:Math.max(0,t.valueRange.origEnd-1);n.text[s-1]==="\r"&&s--;let i=n.transformRange({origStart:e!==null?e.position.start.offset:s,origEnd:s}),o=r===-1?i.end:n.transformOffset(t.valueRange.origEnd+3);return{position:i,documentEndPoint:o}}function Zr(t,e,n,r){return{...b("documentHead",t),...F(n),...oe(r),children:e}}function es(t,e){let n=t.cstNode,{directives:r,comments:s,endComments:i}=fo(n,e),{position:o,endMarkerPoint:a}=uo(n,r,e);return e.comments.push(...s,...i),{createDocumentHeadWithTrailingComment:l=>(l&&e.comments.push(l),Zr(o,r,i,l)),documentHeadEndMarkerPoint:a}}function fo(t,e){let n=[],r=[],s=[],i=!1;for(let o=t.directives.length-1;o>=0;o--){let a=e.transformNode(t.directives[o]);a.type==="comment"?i?r.unshift(a):s.unshift(a):(i=!0,n.unshift(a))}return{directives:n,comments:r,endComments:s}}function uo(t,e,n){let r=Pt(n.text.slice(0,t.valueRange.origStart),/---\s*$/);r>0&&!/[\r\n]/.test(n.text[r-1])&&(r=-1);let s=r===-1?{origStart:t.valueRange.origStart,origEnd:t.valueRange.origStart}:{origStart:r,origEnd:r+3};return e.length!==0&&(s.origStart=e[0].position.start.offset),{position:n.transformRange(s),endMarkerPoint:r===-1?null:n.transformOffset(r)}}function ts(t,e){let{createDocumentHeadWithTrailingComment:n,documentHeadEndMarkerPoint:r}=es(t,e),{documentBody:s,documentEndPoint:i,documentTrailingComment:o,documentHeadTrailingComment:a}=zr(t,e,r),c=n(a);return o&&e.comments.push(o),Hr(K(c.position.start,i),c,s,o)}function _t(t,e,n){return{...b("flowCollection",t),...$(),...F(),...e,children:n}}function ns(t,e,n){return{..._t(t,e,n),type:"flowMapping"}}function xt(t,e,n){return{...b("flowMappingItem",t),...X(),children:[e,n]}}function ce(t,e){let n=[];for(let r of t)r&&"type"in r&&r.type==="COMMENT"?e.comments.push(e.transformNode(r)):n.push(r);return n}function Rt(t){let[e,n]=["?",":"].map(r=>{let s=t.find(i=>"char"in i&&i.char===r);return s?{origStart:s.origOffset,origEnd:s.origOffset+1}:null});return{additionalKeyRange:e,additionalValueRange:n}}function Dt(t,e){let n=e;return r=>t.slice(n,n=r)}function Yt(t){let e=[],n=Dt(t,1),r=!1;for(let s=1;s{let l=r[c],{additionalKeyRange:f,additionalValueRange:m}=Rt(l);return De(a,e,xt,f,m)}),i=n[0],o=q(n);return ns(e.transformRange({origStart:i.origOffset,origEnd:o.origOffset+1}),e.transformContent(t),s)}function ss(t,e,n){return{..._t(t,e,n),type:"flowSequence"}}function is(t,e){return{...b("flowSequenceItem",t),children:[e]}}function os(t,e){let n=ce(t.cstNode.items,e),r=Yt(n),s=t.items.map((a,c)=>{if(a.type!=="PAIR"){let l=e.transformNode(a);return is(K(l.position.start,l.position.end),l)}else{let l=r[c],{additionalKeyRange:f,additionalValueRange:m}=Rt(l);return De(a,e,xt,f,m)}}),i=n[0],o=q(n);return ss(e.transformRange({origStart:i.origOffset,origEnd:o.origOffset+1}),e.transformContent(t),s)}function as(t,e,n){return{...b("mapping",t),...X(),...e,children:n}}function cs(t,e,n){return{...b("mappingItem",t),...X(),children:[e,n]}}function ls(t,e){let n=t.cstNode;n.items.filter(o=>o.type==="MAP_KEY"||o.type==="MAP_VALUE").forEach(o=>Re(o,e));let r=ce(n.items,e),s=po(r),i=t.items.map((o,a)=>{let c=s[a],[l,f]=c[0].type==="MAP_VALUE"?[null,c[0].range]:[c[0].range,c.length===1?null:c[1].range];return De(o,e,cs,l,f)});return as(K(i[0].position.start,q(i).position.end),e.transformContent(t),i)}function po(t){let e=[],n=Dt(t,0),r=!1;for(let s=0;s=0;r--)if(n.test(t[r]))return r;return-1}function ps(t,e){let n=t.cstNode;return fs(e.transformRange({origStart:n.valueRange.origStart,origEnd:us(e.text,n.valueRange.origEnd-1,/\S/)+1}),e.transformContent(t),n.strValue)}function ms(t){return{...t,type:"quoteDouble"}}function hs(t,e,n){return{...b("quoteValue",t),...e,...$(),value:n}}function Bt(t,e){let n=t.cstNode;return hs(e.transformRange(n.valueRange),e.transformContent(t),n.strValue)}function gs(t,e){return ms(Bt(t,e))}function ds(t){return{...t,type:"quoteSingle"}}function ys(t,e){return ds(Bt(t,e))}function Es(t,e,n){return{...b("sequence",t),...X(),...F(),...e,children:n}}function Ss(t,e){return{...b("sequenceItem",t),...$(),...F(),children:e?[e]:[]}}function ws(t,e){let r=ce(t.cstNode.items,e).map((s,i)=>{Re(s,e);let o=e.transformNode(t.items[i]);return Ss(K(e.transformOffset(s.valueRange.origStart),o===null?e.transformOffset(s.valueRange.origStart+1):o.position.end),o)});return Es(K(r[0].position.start,q(r).position.end),e.transformContent(t),r)}function bs(t,e){if(t===null||t.type===void 0&&t.value===null)return null;switch(t.type){case"ALIAS":return Br(t,e);case"BLOCK_FOLDED":return Vr(t,e);case"BLOCK_LITERAL":return jr(t,e);case"COMMENT":return Qr(t,e);case"DIRECTIVE":return Gr(t,e);case"DOCUMENT":return ts(t,e);case"FLOW_MAP":return rs(t,e);case"FLOW_SEQ":return os(t,e);case"MAP":return ls(t,e);case"PLAIN":return ps(t,e);case"QUOTE_DOUBLE":return gs(t,e);case"QUOTE_SINGLE":return ys(t,e);case"SEQ":return ws(t,e);default:throw new Error(`Unexpected node type ${t.type}`)}}function Ns(t,e,n){let r=new SyntaxError(t);return r.name="YAMLSyntaxError",r.source=e,r.position=n,r}function Os(t,e){let n=t.source.range||t.source.valueRange;return Ns(t.message,e.text,e.transformRange(n))}function Ls(t,e,n){return{offset:t,line:e,column:n}}function As(t,e){t<0?t=0:t>e.text.length&&(t=e.text.length);let n=e.locator.locationForIndex(t);return Ls(t,n.line+1,n.column+1)}function Ts(t,e){return K(e.transformOffset(t.origStart),e.transformOffset(t.origEnd))}function Cs(t){if(!t.setOrigRanges()){let e=n=>{if(mo(n))return n.origStart=n.start,n.origEnd=n.end,!0;if(ho(n))return n.origOffset=n.offset,!0};t.forEach(n=>bn(n,e))}}function bn(t,e){if(!(!t||typeof t!="object")&&e(t)!==!0)for(let n of Object.keys(t)){if(n==="context"||n==="error")continue;let r=t[n];Array.isArray(r)?r.forEach(s=>bn(s,e)):bn(r,e)}}function mo(t){return typeof t.start=="number"}function ho(t){return typeof t.offset=="number"}function Nn(t){if("children"in t){if(t.children.length===1){let e=t.children[0];if(e.type==="plain"&&e.tag===null&&e.anchor===null&&e.value==="")return t.children.splice(0,1),t}t.children.forEach(Nn)}return t}function On(t,e,n,r){let s=e(t);return i=>{r(s,i)&&n(t,s=i)}}function Ln(t){if(t===null||!("children"in t))return;let e=t.children;if(e.forEach(Ln),t.type==="document"){let[i,o]=t.children;i.position.start.offset===i.position.end.offset?i.position.start=i.position.end=o.position.start:o.position.start.offset===o.position.end.offset&&(o.position.start=o.position.end=i.position.end)}let n=On(t.position,go,yo,wo),r=On(t.position,Eo,So,bo);"endComments"in t&&t.endComments.length!==0&&(n(t.endComments[0].position.start),r(q(t.endComments).position.end));let s=e.filter(i=>i!==null);if(s.length!==0){let i=s[0],o=q(s);n(i.position.start),r(o.position.end),"leadingComments"in i&&i.leadingComments.length!==0&&n(i.leadingComments[0].position.start),"tag"in i&&i.tag&&n(i.tag.position.start),"anchor"in i&&i.anchor&&n(i.anchor.position.start),"trailingComment"in o&&o.trailingComment&&r(o.trailingComment.position.end)}}function go(t){return t.start}function yo(t,e){t.start=e}function Eo(t){return t.end}function So(t,e){t.end=e}function wo(t,e){return e.offsett.offset}var di=rr(hi(),1);var J=rr(gi(),1),xm=J.default.findPair,Rm=J.default.toJSON,Dm=J.default.parseMap,Ym=J.default.parseSeq,Bm=J.default.stringifyNumber,$m=J.default.stringifyString,Fm=J.default.Type,qa=J.default.YAMLError,qm=J.default.YAMLReferenceError,Zn=J.default.YAMLSemanticError,Ua=J.default.YAMLSyntaxError,Um=J.default.YAMLWarning;var{Document:yi,parseCST:Ei}=di.default;function Si(t){let e=Ei(t);Cs(e);let n=e.map(a=>new yi({merge:!1,keepCstNodes:!0}).parse(a)),r=new Pr(t),s=[],i={text:t,locator:r,comments:s,transformOffset:a=>As(a,i),transformRange:a=>Ts(a,i),transformNode:a=>bs(a,i),transformContent:a=>vt(a,i)};for(let a of n)for(let c of a.errors)if(!(c instanceof Zn&&c.message==='Map keys must be unique; "<<" is repeated'))throw Os(c,i);n.forEach(a=>ct(a.cstNode));let o=Dr(i.transformRange({origStart:0,origEnd:i.text.length}),n.map(i.transformNode),s);return _r(o),Ln(o),Nn(o),o}function Va(t,e){let n=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(n,e)}var wi=Va;function Wa(t){try{let e=Si(t);return delete e.comments,e}catch(e){throw e!=null&&e.position?wi(e.message,{loc:e.position,cause:e}):e}}var ja={astFormat:"yaml",parse:Wa,hasPragma:pr,locStart:ve,locEnd:hr};var bi=[{linguistLanguageId:407,name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock",".prettierrc",".stylelintrc",".lintstagedrc"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"]}];var nn={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Qa={bracketSpacing:nn.bracketSpacing,singleQuote:nn.singleQuote,proseWrap:nn.proseWrap},Ni=Qa;var Ja={yaml:vr};return ki(Ga);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/yaml.mjs b/node_modules/prettier/plugins/yaml.mjs index c0ba910..9200b5f 100644 --- a/node_modules/prettier/plugins/yaml.mjs +++ b/node_modules/prettier/plugins/yaml.mjs @@ -1,6 +1,6 @@ -var Li=Object.create;var rn=Object.defineProperty;var Ai=Object.getOwnPropertyDescriptor;var Ti=Object.getOwnPropertyNames;var Ci=Object.getPrototypeOf,Mi=Object.prototype.hasOwnProperty;var ee=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),nr=(t,e)=>{for(var n in e)rn(t,n,{get:e[n],enumerable:!0})},ki=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Ti(e))!Mi.call(t,s)&&s!==n&&rn(t,s,{get:()=>e[s],enumerable:!(r=Ai(e,s))||r.enumerable});return t};var rr=(t,e,n)=>(n=t!=null?Li(Ci(t)):{},ki(e||!t||!t.__esModule?rn(n,"default",{value:t,enumerable:!0}):n,t));var le=ee(U=>{"use strict";var re={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},lt={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"},No="tag:yaml.org,2002:",Oo={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function Ms(t){let e=[0],n=t.indexOf(` +var Li=Object.create;var nn=Object.defineProperty;var Ai=Object.getOwnPropertyDescriptor;var Ti=Object.getOwnPropertyNames;var Ci=Object.getPrototypeOf,Mi=Object.prototype.hasOwnProperty;var ee=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),nr=(t,e)=>{for(var n in e)nn(t,n,{get:e[n],enumerable:!0})},ki=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Ti(e))!Mi.call(t,s)&&s!==n&&nn(t,s,{get:()=>e[s],enumerable:!(r=Ai(e,s))||r.enumerable});return t};var rr=(t,e,n)=>(n=t!=null?Li(Ci(t)):{},ki(e||!t||!t.__esModule?nn(n,"default",{value:t,enumerable:!0}):n,t));var le=ee(U=>{"use strict";var re={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},lt={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"},No="tag:yaml.org,2002:",Oo={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function Ms(t){let e=[0],n=t.indexOf(` `);for(;n!==-1;)n+=1,e.push(n),n=t.indexOf(` -`,n);return e}function ks(t){let e,n;return typeof t=="string"?(e=Ms(t),n=t):(Array.isArray(t)&&(t=t[0]),t&&t.context&&(t.lineStarts||(t.lineStarts=Ms(t.context.src)),e=t.lineStarts,n=t.context.src)),{lineStarts:e,src:n}}function Tn(t,e){if(typeof t!="number"||t<0)return null;let{lineStarts:n,src:r}=ks(e);if(!n||!r||t>r.length)return null;for(let i=0;i=1)||t>n.length)return null;let s=n[t-1],i=n[t];for(;i&&i>s&&r[i-1]===` +`,n);return e}function ks(t){let e,n;return typeof t=="string"?(e=Ms(t),n=t):(Array.isArray(t)&&(t=t[0]),t&&t.context&&(t.lineStarts||(t.lineStarts=Ms(t.context.src)),e=t.lineStarts,n=t.context.src)),{lineStarts:e,src:n}}function An(t,e){if(typeof t!="number"||t<0)return null;let{lineStarts:n,src:r}=ks(e);if(!n||!r||t>r.length)return null;for(let i=0;i=1)||t>n.length)return null;let s=n[t-1],i=n[t];for(;i&&i>s&&r[i-1]===` `;)--i;return r.slice(s,i)}function Ao({start:t,end:e},n,r=80){let s=Lo(t.line,n);if(!s)return null;let{col:i}=t;if(s.length>r)if(i<=r-10)s=s.substr(0,r-1)+"\u2026";else{let f=Math.round(r/2);s.length>i+f&&(s=s.substr(0,i+f-1)+"\u2026"),i-=s.length-r,s="\u2026"+s.substr(1-r)}let o=1,a="";e&&(e.line===t.line&&i+(e.col-t.col)<=r+1?o=e.col-t.col:(o=Math.min(s.length+1,r)-i,a="\u2026"));let c=i>1?" ".repeat(i-1):"",l="^".repeat(o);return`${s} ${c}${l}${a}`}var Ye=class t{static copy(e){return new t(e.start,e.end)}constructor(e,n){this.start=e,this.end=n||e}isEmpty(){return typeof this.start!="number"||!this.end||this.end<=this.start}setOrigRange(e,n){let{start:r,end:s}=this;if(e.length===0||s<=e[0])return this.origStart=r,this.origEnd=s,n;let i=n;for(;ir);)++i;this.origStart=r+i;let o=i;for(;i=s);)++i;return this.origEnd=s+i,o}},se=class t{static addStringTerminator(e,n,r){if(r[r.length-1]===` `)return r;let s=t.endOfWhiteSpace(e,n);return s>=e.length||e[s]===` @@ -20,11 +20,11 @@ ${c}${l}${a}`}var Ye=class t{static copy(e){return new t(e.start,e.end)}construc `;){switch(a){case` `:s=0,n+=1,o+=` `;break;case" ":s<=r&&(i=!0),n=t.endOfWhiteSpace(e,n+2)-1;break;case" ":s+=1,n+=1;break}a=e[n+1]}return o||(o=" "),a&&s<=r&&(i=!0),{fold:o,offset:n,error:i}}constructor(e,n,r){Object.defineProperty(this,"context",{value:r||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=n||[],this.type=e,this.value=null}getPropValue(e,n,r){if(!this.context)return null;let{src:s}=this.context,i=this.props[e];return i&&s[i.start]===n?s.slice(i.start+(r?1:0),i.end):null}get anchor(){for(let e=0;e0?e.join(` -`):null}commentHasRequiredWhitespace(e){let{src:n}=this.context;if(this.header&&e===this.header.end||!this.valueRange)return!1;let{end:r}=this.valueRange;return e!==r||t.atBlank(n,r-1)}get hasComment(){if(this.context){let{src:e}=this.context;for(let n=0;nr.setOrigRange(e,n)),n}toString(){let{context:{src:e},range:n,value:r}=this;if(r!=null)return r;let s=e.slice(n.start,n.end);return t.addStringTerminator(e,n.end,s)}},de=class extends Error{constructor(e,n,r){if(!r||!(n instanceof se))throw new Error(`Invalid arguments for new ${e}`);super(),this.name=e,this.message=r,this.source=n}makePretty(){if(!this.source)return;this.nodeType=this.source.type;let e=this.source.context&&this.source.context.root;if(typeof this.offset=="number"){this.range=new Ye(this.offset,this.offset+1);let n=e&&Tn(this.offset,e);if(n){let r={line:n.line,col:n.col+1};this.linePos={start:n,end:r}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){let{line:n,col:r}=this.linePos.start;this.message+=` at line ${n}, column ${r}`;let s=e&&Ao(this.linePos,e);s&&(this.message+=`: +`):null}commentHasRequiredWhitespace(e){let{src:n}=this.context;if(this.header&&e===this.header.end||!this.valueRange)return!1;let{end:r}=this.valueRange;return e!==r||t.atBlank(n,r-1)}get hasComment(){if(this.context){let{src:e}=this.context;for(let n=0;nr.setOrigRange(e,n)),n}toString(){let{context:{src:e},range:n,value:r}=this;if(r!=null)return r;let s=e.slice(n.start,n.end);return t.addStringTerminator(e,n.end,s)}},de=class extends Error{constructor(e,n,r){if(!r||!(n instanceof se))throw new Error(`Invalid arguments for new ${e}`);super(),this.name=e,this.message=r,this.source=n}makePretty(){if(!this.source)return;this.nodeType=this.source.type;let e=this.source.context&&this.source.context.root;if(typeof this.offset=="number"){this.range=new Ye(this.offset,this.offset+1);let n=e&&An(this.offset,e);if(n){let r={line:n.line,col:n.col+1};this.linePos={start:n,end:r}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){let{line:n,col:r}=this.linePos.start;this.message+=` at line ${n}, column ${r}`;let s=e&&Ao(this.linePos,e);s&&(this.message+=`: ${s} -`)}delete this.source}},Cn=class extends de{constructor(e,n){super("YAMLReferenceError",e,n)}},ft=class extends de{constructor(e,n){super("YAMLSemanticError",e,n)}},Mn=class extends de{constructor(e,n){super("YAMLSyntaxError",e,n)}},kn=class extends de{constructor(e,n){super("YAMLWarning",e,n)}};function To(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var vn=class t extends se{static endOfLine(e,n,r){let s=e[n],i=n;for(;s&&s!==` +`)}delete this.source}},Tn=class extends de{constructor(e,n){super("YAMLReferenceError",e,n)}},ft=class extends de{constructor(e,n){super("YAMLSemanticError",e,n)}},Cn=class extends de{constructor(e,n){super("YAMLSyntaxError",e,n)}},Mn=class extends de{constructor(e,n){super("YAMLWarning",e,n)}};function To(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var kn=class t extends se{static endOfLine(e,n,r){let s=e[n],i=n;for(;s&&s!==` `&&!(r&&(s==="["||s==="]"||s==="{"||s==="}"||s===","));){let o=e[i+1];if(s===":"&&(!o||o===` `||o===" "||o===" "||r&&o===",")||(s===" "||s===" ")&&o==="#")break;i+=1,s=o}return i}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:n}=this.valueRange,{src:r}=this.context,s=r[n-1];for(;el?r.slice(l,a+1):c)}else i+=c}let o=r[e];switch(o){case" ":{let a="Plain value cannot start with a tab character";return{errors:[new ft(this,a)],str:i}}case"@":case"`":{let a=`Plain value cannot start with reserved character ${o}`;return{errors:[new ft(this,a)],str:i}}default:return i}}parseBlockValue(e){let{indent:n,inFlow:r,src:s}=this.context,i=e,o=e;for(let a=s[i];a===` `&&!se.atDocumentBoundary(s,i+1);a=s[i]){let c=se.endOfBlockIndent(s,n,i+1);if(c===null||s[c]==="#")break;s[c]===` `?i=c:(o=t.endOfLine(s,c,r),i=o)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=o,o}parse(e,n){this.context=e;let{inFlow:r,src:s}=e,i=n,o=s[i];return o&&o!=="#"&&o!==` -`&&(i=t.endOfLine(s,n,r)),this.valueRange=new Ye(n,i),i=se.endOfWhiteSpace(s,i),i=this.parseComment(i),(!this.hasComment||this.valueRange.isEmpty())&&(i=this.parseBlockValue(i)),i}};U.Char=re;U.Node=se;U.PlainValue=vn;U.Range=Ye;U.Type=lt;U.YAMLError=de;U.YAMLReferenceError=Cn;U.YAMLSemanticError=ft;U.YAMLSyntaxError=Mn;U.YAMLWarning=kn;U._defineProperty=To;U.defaultTagPrefix=No;U.defaultTags=Oo});var Is=ee(vs=>{"use strict";var u=le(),Ee=class extends u.Node{constructor(){super(u.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(e,n){return this.context=e,this.range=new u.Range(n,n+1),n+1}},ut=class extends u.Node{constructor(e,n){super(e,n),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,n){this.context=e;let{parseNode:r,src:s}=e,{atLineStart:i,lineStart:o}=e;!i&&this.type===u.Type.SEQ_ITEM&&(this.error=new u.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));let a=i?n-o:e.indent,c=u.Node.endOfWhiteSpace(s,n+1),l=s[c],f=l==="#",m=[],d=null;for(;l===` +`&&(i=t.endOfLine(s,n,r)),this.valueRange=new Ye(n,i),i=se.endOfWhiteSpace(s,i),i=this.parseComment(i),(!this.hasComment||this.valueRange.isEmpty())&&(i=this.parseBlockValue(i)),i}};U.Char=re;U.Node=se;U.PlainValue=kn;U.Range=Ye;U.Type=lt;U.YAMLError=de;U.YAMLReferenceError=Tn;U.YAMLSemanticError=ft;U.YAMLSyntaxError=Cn;U.YAMLWarning=Mn;U._defineProperty=To;U.defaultTagPrefix=No;U.defaultTags=Oo});var Is=ee(vs=>{"use strict";var u=le(),Ee=class extends u.Node{constructor(){super(u.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(e,n){return this.context=e,this.range=new u.Range(n,n+1),n+1}},ut=class extends u.Node{constructor(e,n){super(e,n),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,n){this.context=e;let{parseNode:r,src:s}=e,{atLineStart:i,lineStart:o}=e;!i&&this.type===u.Type.SEQ_ITEM&&(this.error=new u.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));let a=i?n-o:e.indent,c=u.Node.endOfWhiteSpace(s,n+1),l=s[c],f=l==="#",m=[],d=null;for(;l===` `||l==="#";){if(l==="#"){let h=u.Node.endOfLine(s,c+1);m.push(new u.Range(c,h)),c=h}else{i=!0,o=c+1;let h=u.Node.endOfWhiteSpace(s,o);s[h]===` -`&&m.length===0&&(d=new Ee,o=d.parse({src:s},o)),c=u.Node.endOfIndent(s,o)}l=s[c]}if(u.Node.nextNodeIsIndented(l,c-(o+a),this.type!==u.Type.SEQ_ITEM)?this.node=r({atLineStart:i,inCollection:!1,indent:a,lineStart:o,parent:this},c):l&&o>n+1&&(c=o-1),this.node){if(d){let h=e.parent.items||e.parent.contents;h&&h.push(d)}m.length&&Array.prototype.push.apply(this.props,m),c=this.node.range.end}else if(f){let h=m[0];this.props.push(h),c=h.end}else c=u.Node.endOfLine(s,n+1);let y=this.node?this.node.valueRange.end:c;return this.valueRange=new u.Range(n,y),c}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.node?this.node.setOrigRanges(e,n):n}toString(){let{context:{src:e},node:n,range:r,value:s}=this;if(s!=null)return s;let i=n?e.slice(r.start,n.range.start)+String(n):e.slice(r.start,r.end);return u.Node.addStringTerminator(e,r.end,i)}},ye=class extends u.Node{constructor(){super(u.Type.COMMENT)}parse(e,n){this.context=e;let r=this.parseComment(n);return this.range=new u.Range(n,r),r}};function In(t){let e=t;for(;e instanceof ut;)e=e.node;if(!(e instanceof Bt))return null;let n=e.items.length,r=-1;for(let o=n-1;o>=0;--o){let a=e.items[o];if(a.type===u.Type.COMMENT){let{indent:c,lineStart:l}=a.context;if(c>0&&a.range.start>=l+c)break;r=o}else if(a.type===u.Type.BLANK_LINE)r=o;else break}if(r===-1)return null;let s=e.items.splice(r,n-r),i=s[0].range.start;for(;e.range.end=i,e.valueRange&&e.valueRange.end>i&&(e.valueRange.end=i),e!==t;)e=e.context.parent;return s}var Bt=class t extends u.Node{static nextContentHasIndent(e,n,r){let s=u.Node.endOfLine(e,n)+1;n=u.Node.endOfWhiteSpace(e,s);let i=e[n];return i?n>=s+r?!0:i!=="#"&&i!==` -`?!1:t.nextContentHasIndent(e,n,r):!1}constructor(e){super(e.type===u.Type.SEQ_ITEM?u.Type.SEQ:u.Type.MAP);for(let r=e.props.length-1;r>=0;--r)if(e.props[r].start0}parse(e,n){this.context=e;let{parseNode:r,src:s}=e,i=u.Node.startOfLine(s,n),o=this.items[0];o.context.parent=this,this.valueRange=u.Range.copy(o.valueRange);let a=o.range.start-o.context.lineStart,c=n;c=u.Node.normalizeOffset(s,c);let l=s[c],f=u.Node.endOfWhiteSpace(s,i)===c,m=!1;for(;l;){for(;l===` +`&&m.length===0&&(d=new Ee,o=d.parse({src:s},o)),c=u.Node.endOfIndent(s,o)}l=s[c]}if(u.Node.nextNodeIsIndented(l,c-(o+a),this.type!==u.Type.SEQ_ITEM)?this.node=r({atLineStart:i,inCollection:!1,indent:a,lineStart:o,parent:this},c):l&&o>n+1&&(c=o-1),this.node){if(d){let h=e.parent.items||e.parent.contents;h&&h.push(d)}m.length&&Array.prototype.push.apply(this.props,m),c=this.node.range.end}else if(f){let h=m[0];this.props.push(h),c=h.end}else c=u.Node.endOfLine(s,n+1);let y=this.node?this.node.valueRange.end:c;return this.valueRange=new u.Range(n,y),c}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.node?this.node.setOrigRanges(e,n):n}toString(){let{context:{src:e},node:n,range:r,value:s}=this;if(s!=null)return s;let i=n?e.slice(r.start,n.range.start)+String(n):e.slice(r.start,r.end);return u.Node.addStringTerminator(e,r.end,i)}},ye=class extends u.Node{constructor(){super(u.Type.COMMENT)}parse(e,n){this.context=e;let r=this.parseComment(n);return this.range=new u.Range(n,r),r}};function vn(t){let e=t;for(;e instanceof ut;)e=e.node;if(!(e instanceof Bt))return null;let n=e.items.length,r=-1;for(let o=n-1;o>=0;--o){let a=e.items[o];if(a.type===u.Type.COMMENT){let{indent:c,lineStart:l}=a.context;if(c>0&&a.range.start>=l+c)break;r=o}else if(a.type===u.Type.BLANK_LINE)r=o;else break}if(r===-1)return null;let s=e.items.splice(r,n-r),i=s[0].range.start;for(;e.range.end=i,e.valueRange&&e.valueRange.end>i&&(e.valueRange.end=i),e!==t;)e=e.context.parent;return s}var Bt=class t extends u.Node{static nextContentHasIndent(e,n,r){let s=u.Node.endOfLine(e,n)+1;n=u.Node.endOfWhiteSpace(e,s);let i=e[n];return i?n>=s+r?!0:i!=="#"&&i!==` +`?!1:t.nextContentHasIndent(e,n,r):!1}constructor(e){super(e.type===u.Type.SEQ_ITEM?u.Type.SEQ:u.Type.MAP);for(let r=e.props.length-1;r>=0;--r)if(e.props[r].start0}parse(e,n){this.context=e;let{parseNode:r,src:s}=e,i=u.Node.startOfLine(s,n),o=this.items[0];o.context.parent=this,this.valueRange=u.Range.copy(o.valueRange);let a=o.range.start-o.context.lineStart,c=n;c=u.Node.normalizeOffset(s,c);let l=s[c],f=u.Node.endOfWhiteSpace(s,i)===c,m=!1;for(;l;){for(;l===` `||l==="#";){if(f&&l===` `&&!m){let h=new Ee;if(c=h.parse({src:s},c),this.valueRange.end=c,c>=s.length){l=null;break}this.items.push(h),c-=1}else if(l==="#"){if(c=s.length){l=null;break}}if(i=c+1,c=u.Node.endOfIndent(s,i),u.Node.atBlank(s,c)){let h=u.Node.endOfWhiteSpace(s,c),g=s[h];(!g||g===` `||g==="#")&&(c=h)}l=s[c],f=!0}if(!l)break;if(c!==i+a&&(f||l!==":")){if(cn&&(c=i);break}else if(!this.error){let h="All collection items must start at the same column";this.error=new u.YAMLSyntaxError(this,h)}}if(o.type===u.Type.SEQ_ITEM){if(l!=="-"){i>n&&(c=i);break}}else if(l==="-"&&!this.error){let h=s[c+1];if(!h||h===` `||h===" "||h===" "){let g="A collection cannot be both a mapping and a sequence";this.error=new u.YAMLSyntaxError(this,g)}}let d=r({atLineStart:f,inCollection:!0,indent:a,lineStart:i,parent:this},c);if(!d)return c;if(this.items.push(d),this.valueRange.end=d.valueRange.end,c=u.Node.normalizeOffset(s,d.range.end),l=s[c],f=!1,m=d.includesTrailingLines,l){let h=c-1,g=s[h];for(;g===" "||g===" ";)g=s[--h];g===` -`&&(i=h+1,f=!0)}let y=In(d);y&&Array.prototype.push.apply(this.items,y)}return c}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.items.forEach(r=>{n=r.setOrigRanges(e,n)}),n}toString(){let{context:{src:e},items:n,range:r,value:s}=this;if(s!=null)return s;let i=e.slice(r.start,n[0].range.start)+String(n[0]);for(let o=1;o{n=r.setOrigRanges(e,n)}),n}toString(){let{context:{src:e},items:n,range:r,value:s}=this;if(s!=null)return s;let i=e.slice(r.start,n[0].range.start)+String(n[0]);for(let o=1;o0&&(this.contents=this.directives,this.directives=[]),i}return n[i]?(this.directivesEndMarker=new u.Range(i,i+3),i+3):(s?this.error=new u.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),i)}parseContents(e){let{parseNode:n,src:r}=this.context;this.contents||(this.contents=[]);let s=e;for(;r[s-1]==="-";)s-=1;let i=u.Node.endOfWhiteSpace(r,e),o=s===e;for(this.valueRange=new u.Range(i);!u.Node.atDocumentBoundary(r,i,u.Char.DOCUMENT_END);){switch(r[i]){case` -`:if(o){let a=new Ee;i=a.parse({src:r},i),i0&&(this.contents=this.directives,this.directives=[]),i}return n[i]?(this.directivesEndMarker=new u.Range(i,i+3),i+3):(s?this.error=new u.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),i)}parseContents(e){let{parseNode:n,src:r}=this.context;this.contents||(this.contents=[]);let s=e;for(;r[s-1]==="-";)s-=1;let i=u.Node.endOfWhiteSpace(r,e),o=s===e;for(this.valueRange=new u.Range(i);!u.Node.atDocumentBoundary(r,i,u.Char.DOCUMENT_END);){switch(r[i]){case` +`:if(o){let a=new Ee;i=a.parse({src:r},i),i{n=r.setOrigRanges(e,n)}),this.directivesEndMarker&&(n=this.directivesEndMarker.setOrigRange(e,n)),this.contents.forEach(r=>{n=r.setOrigRanges(e,n)}),this.documentEndMarker&&(n=this.documentEndMarker.setOrigRange(e,n)),n}toString(){let{contents:e,directives:n,value:r}=this;if(r!=null)return r;let s=n.join("");return e.length>0&&((n.length>0||e[0].type===u.Type.COMMENT)&&(s+=`--- `),s+=e.join("")),s[s.length-1]!==` `&&(s+=` -`),s}},xn=class extends u.Node{parse(e,n){this.context=e;let{src:r}=e,s=u.Node.endOfIdentifier(r,n+1);return this.valueRange=new u.Range(n+1,s),s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}},fe={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"},Rn=class extends u.Node{constructor(e,n){super(e,n),this.blockIndent=null,this.chomping=fe.CLIP,this.header=null}get includesTrailingLines(){return this.chomping===fe.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:n}=this.valueRange,{indent:r,src:s}=this.context;if(this.valueRange.isEmpty())return"";let i=null,o=s[n-1];for(;o===` +`),s}},_n=class extends u.Node{parse(e,n){this.context=e;let{src:r}=e,s=u.Node.endOfIdentifier(r,n+1);return this.valueRange=new u.Range(n+1,s),s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}},fe={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"},xn=class extends u.Node{constructor(e,n){super(e,n),this.blockIndent=null,this.chomping=fe.CLIP,this.header=null}get includesTrailingLines(){return this.chomping===fe.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:n}=this.valueRange,{indent:r,src:s}=this.context;if(this.valueRange.isEmpty())return"";let i=null,o=s[n-1];for(;o===` `||o===" "||o===" ";){if(n-=1,n<=e){if(this.chomping===fe.KEEP)break;return""}o===` `&&(i=n),o=s[n-1]}let a=n+1;i&&(this.chomping===fe.KEEP?(a=i,n=this.valueRange.end):n=i);let c=r+this.blockIndent,l=this.type===u.Type.BLOCK_FOLDED,f=!0,m="",d="",y=!1;for(let h=e;ha&&(a=m);r[l]===` -`?i=l:i=o=u.Node.endOfLine(r,l)}return this.chomping!==fe.KEEP&&(i=r[o]?o+1:o),this.valueRange=new u.Range(e+1,i),i}parse(e,n){this.context=e;let{src:r}=e,s=this.parseBlockHeader(n);return s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s=this.parseBlockValue(s),s}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.header?this.header.setOrigRange(e,n):n}},Dn=class extends u.Node{constructor(e,n){super(e,n),this.items=null}prevNodeIsJsonLike(e=this.items.length){let n=this.items[e-1];return!!n&&(n.jsonLike||n.type===u.Type.COMMENT&&this.prevNodeIsJsonLike(e-1))}parse(e,n){this.context=e;let{parseNode:r,src:s}=e,{indent:i,lineStart:o}=e,a=s[n];this.items=[{char:a,offset:n}];let c=u.Node.endOfWhiteSpace(s,n+1);for(a=s[c];a&&a!=="]"&&a!=="}";){switch(a){case` +`?i=l:i=o=u.Node.endOfLine(r,l)}return this.chomping!==fe.KEEP&&(i=r[o]?o+1:o),this.valueRange=new u.Range(e+1,i),i}parse(e,n){this.context=e;let{src:r}=e,s=this.parseBlockHeader(n);return s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s=this.parseBlockValue(s),s}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.header?this.header.setOrigRange(e,n):n}},Rn=class extends u.Node{constructor(e,n){super(e,n),this.items=null}prevNodeIsJsonLike(e=this.items.length){let n=this.items[e-1];return!!n&&(n.jsonLike||n.type===u.Type.COMMENT&&this.prevNodeIsJsonLike(e-1))}parse(e,n){this.context=e;let{parseNode:r,src:s}=e,{indent:i,lineStart:o}=e,a=s[n];this.items=[{char:a,offset:n}];let c=u.Node.endOfWhiteSpace(s,n+1);for(a=s[c];a&&a!=="]"&&a!=="}";){switch(a){case` `:{o=c+1;let l=u.Node.endOfWhiteSpace(s,o);if(s[l]===` `){let f=new Ee;o=f.parse({src:s},o),this.items.push(f)}if(c=u.Node.endOfIndent(s,o),c<=o+i&&(a=s[c],c{if(r instanceof u.Node)n=r.setOrigRanges(e,n);else if(e.length===0)r.origOffset=r.offset;else{let s=n;for(;sr.offset);)++s;r.origOffset=r.offset+s,n=s}}),n}toString(){let{context:{src:e},items:n,range:r,value:s}=this;if(s!=null)return s;let i=n.filter(c=>c instanceof u.Node),o="",a=r.start;return i.forEach(c=>{let l=e.slice(a,c.range.start);a=c.range.end,o+=l+String(c),o[o.length-1]===` `&&e[a-1]!==` `&&e[a]===` -`&&(a+=1)}),o+=e.slice(a,r.end),u.Node.addStringTerminator(e,r.end,o)}},Yn=class t extends u.Node{static endOfQuote(e,n){let r=e[n];for(;r&&r!=='"';)n+=r==="\\"?2:1,r=e[n];return n+1}get strValue(){if(!this.valueRange||!this.context)return null;let e=[],{start:n,end:r}=this.valueRange,{indent:s,src:i}=this.context;i[r-1]!=='"'&&e.push(new u.YAMLSyntaxError(this,'Missing closing "quote'));let o="";for(let a=n+1;al?i.slice(l,a+1):c)}else o+=c}return e.length>0?{errors:e,str:o}:o}parseCharCode(e,n,r){let{src:s}=this.context,i=s.substr(e,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;return isNaN(a)?(r.push(new u.YAMLSyntaxError(this,`Invalid escape sequence ${s.substr(e-2,n+2)}`)),s.substr(e-2,n+2)):String.fromCodePoint(a)}parse(e,n){this.context=e;let{src:r}=e,s=t.endOfQuote(r,n+1);return this.valueRange=new u.Range(n,s),s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}},Bn=class t extends u.Node{static endOfQuote(e,n){let r=e[n];for(;r;)if(r==="'"){if(e[n+1]!=="'")break;r=e[n+=2]}else r=e[n+=1];return n+1}get strValue(){if(!this.valueRange||!this.context)return null;let e=[],{start:n,end:r}=this.valueRange,{indent:s,src:i}=this.context;i[r-1]!=="'"&&e.push(new u.YAMLSyntaxError(this,"Missing closing 'quote"));let o="";for(let a=n+1;al?i.slice(l,a+1):c)}else o+=c}return e.length>0?{errors:e,str:o}:o}parseCharCode(e,n,r){let{src:s}=this.context,i=s.substr(e,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;return isNaN(a)?(r.push(new u.YAMLSyntaxError(this,`Invalid escape sequence ${s.substr(e-2,n+2)}`)),s.substr(e-2,n+2)):String.fromCodePoint(a)}parse(e,n){this.context=e;let{src:r}=e,s=t.endOfQuote(r,n+1);return this.valueRange=new u.Range(n,s),s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}},Yn=class t extends u.Node{static endOfQuote(e,n){let r=e[n];for(;r;)if(r==="'"){if(e[n+1]!=="'")break;r=e[n+=2]}else r=e[n+=1];return n+1}get strValue(){if(!this.valueRange||!this.context)return null;let e=[],{start:n,end:r}=this.valueRange,{indent:s,src:i}=this.context;i[r-1]!=="'"&&e.push(new u.YAMLSyntaxError(this,"Missing closing 'quote"));let o="";for(let a=n+1;al?i.slice(l,a+1):c)}else o+=c}return e.length>0?{errors:e,str:o}:o}parse(e,n){this.context=e;let{src:r}=e,s=t.endOfQuote(r,n+1);return this.valueRange=new u.Range(n,s),s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}};function Co(t,e){switch(t){case u.Type.ALIAS:return new xn(t,e);case u.Type.BLOCK_FOLDED:case u.Type.BLOCK_LITERAL:return new Rn(t,e);case u.Type.FLOW_MAP:case u.Type.FLOW_SEQ:return new Dn(t,e);case u.Type.MAP_KEY:case u.Type.MAP_VALUE:case u.Type.SEQ_ITEM:return new ut(t,e);case u.Type.COMMENT:case u.Type.PLAIN:return new u.PlainValue(t,e);case u.Type.QUOTE_DOUBLE:return new Yn(t,e);case u.Type.QUOTE_SINGLE:return new Bn(t,e);default:return null}}var $n=class t{static parseType(e,n,r){switch(e[n]){case"*":return u.Type.ALIAS;case">":return u.Type.BLOCK_FOLDED;case"|":return u.Type.BLOCK_LITERAL;case"{":return u.Type.FLOW_MAP;case"[":return u.Type.FLOW_SEQ;case"?":return!r&&u.Node.atBlank(e,n+1,!0)?u.Type.MAP_KEY:u.Type.PLAIN;case":":return!r&&u.Node.atBlank(e,n+1,!0)?u.Type.MAP_VALUE:u.Type.PLAIN;case"-":return!r&&u.Node.atBlank(e,n+1,!0)?u.Type.SEQ_ITEM:u.Type.PLAIN;case'"':return u.Type.QUOTE_DOUBLE;case"'":return u.Type.QUOTE_SINGLE;default:return u.Type.PLAIN}}constructor(e={},{atLineStart:n,inCollection:r,inFlow:s,indent:i,lineStart:o,parent:a}={}){u._defineProperty(this,"parseNode",(c,l)=>{if(u.Node.atDocumentBoundary(this.src,l))return null;let f=new t(this,c),{props:m,type:d,valueStart:y}=f.parseProps(l),h=Co(d,m),g=h.parse(f,y);if(h.range=new u.Range(l,g),g<=l&&(h.error=new Error("Node#parse consumed no characters"),h.error.parseEnd=g,h.error.source=h,h.range.end=l+1),f.nodeStartsCollection(h)){!h.error&&!f.atLineStart&&f.parent.type===u.Type.DOCUMENT&&(h.error=new u.YAMLSyntaxError(h,"Block collection must not have preceding content here (e.g. directives-end indicator)"));let w=new Bt(h);return g=w.parse(new t(f),g),w.range=new u.Range(l,g),w}return h}),this.atLineStart=n??(e.atLineStart||!1),this.inCollection=r??(e.inCollection||!1),this.inFlow=s??(e.inFlow||!1),this.indent=i??e.indent,this.lineStart=o??e.lineStart,this.parent=a??(e.parent||{}),this.root=e.root,this.src=e.src}nodeStartsCollection(e){let{inCollection:n,inFlow:r,src:s}=this;if(n||r)return!1;if(e instanceof ut)return!0;let i=e.range.end;return s[i]===` +`&&(o+=a>l?i.slice(l,a+1):c)}else o+=c}return e.length>0?{errors:e,str:o}:o}parse(e,n){this.context=e;let{src:r}=e,s=t.endOfQuote(r,n+1);return this.valueRange=new u.Range(n,s),s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}};function Co(t,e){switch(t){case u.Type.ALIAS:return new _n(t,e);case u.Type.BLOCK_FOLDED:case u.Type.BLOCK_LITERAL:return new xn(t,e);case u.Type.FLOW_MAP:case u.Type.FLOW_SEQ:return new Rn(t,e);case u.Type.MAP_KEY:case u.Type.MAP_VALUE:case u.Type.SEQ_ITEM:return new ut(t,e);case u.Type.COMMENT:case u.Type.PLAIN:return new u.PlainValue(t,e);case u.Type.QUOTE_DOUBLE:return new Dn(t,e);case u.Type.QUOTE_SINGLE:return new Yn(t,e);default:return null}}var Bn=class t{static parseType(e,n,r){switch(e[n]){case"*":return u.Type.ALIAS;case">":return u.Type.BLOCK_FOLDED;case"|":return u.Type.BLOCK_LITERAL;case"{":return u.Type.FLOW_MAP;case"[":return u.Type.FLOW_SEQ;case"?":return!r&&u.Node.atBlank(e,n+1,!0)?u.Type.MAP_KEY:u.Type.PLAIN;case":":return!r&&u.Node.atBlank(e,n+1,!0)?u.Type.MAP_VALUE:u.Type.PLAIN;case"-":return!r&&u.Node.atBlank(e,n+1,!0)?u.Type.SEQ_ITEM:u.Type.PLAIN;case'"':return u.Type.QUOTE_DOUBLE;case"'":return u.Type.QUOTE_SINGLE;default:return u.Type.PLAIN}}constructor(e={},{atLineStart:n,inCollection:r,inFlow:s,indent:i,lineStart:o,parent:a}={}){u._defineProperty(this,"parseNode",(c,l)=>{if(u.Node.atDocumentBoundary(this.src,l))return null;let f=new t(this,c),{props:m,type:d,valueStart:y}=f.parseProps(l),h=Co(d,m),g=h.parse(f,y);if(h.range=new u.Range(l,g),g<=l&&(h.error=new Error("Node#parse consumed no characters"),h.error.parseEnd=g,h.error.source=h,h.range.end=l+1),f.nodeStartsCollection(h)){!h.error&&!f.atLineStart&&f.parent.type===u.Type.DOCUMENT&&(h.error=new u.YAMLSyntaxError(h,"Block collection must not have preceding content here (e.g. directives-end indicator)"));let w=new Bt(h);return g=w.parse(new t(f),g),w.range=new u.Range(l,g),w}return h}),this.atLineStart=n??(e.atLineStart||!1),this.inCollection=r??(e.inCollection||!1),this.inFlow=s??(e.inFlow||!1),this.indent=i??e.indent,this.lineStart=o??e.lineStart,this.parent=a??(e.parent||{}),this.root=e.root,this.src=e.src}nodeStartsCollection(e){let{inCollection:n,inFlow:r,src:s}=this;if(n||r)return!1;if(e instanceof ut)return!0;let i=e.range.end;return s[i]===` `||s[i-1]===` `?!1:(i=u.Node.endOfWhiteSpace(s,i),s[i]===":")}parseProps(e){let{inFlow:n,parent:r,src:s}=this,i=[],o=!1;e=this.atLineStart?u.Node.endOfIndent(s,e):u.Node.endOfWhiteSpace(s,e);let a=s[e];for(;a===u.Char.ANCHOR||a===u.Char.COMMENT||a===u.Char.TAG||a===` `;){if(a===` `){let l=e,f;do f=l+1,l=u.Node.endOfIndent(s,f);while(s[l]===` `);let m=l-(f+this.indent),d=r.type===u.Type.SEQ_ITEM&&r.context.atLineStart;if(s[l]!=="#"&&!u.Node.nextNodeIsIndented(s[l],m,!d))break;this.atLineStart=!0,this.lineStart=f,o=!1,e=l}else if(a===u.Char.COMMENT){let l=u.Node.endOfLine(s,e+1);i.push(new u.Range(e,l)),e=l}else{let l=u.Node.endOfIdentifier(s,e+1);a===u.Char.TAG&&s[l]===","&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(s.slice(e+1,l+13))&&(l=u.Node.endOfIdentifier(s,l+5)),i.push(new u.Range(e,l)),o=!0,e=u.Node.endOfWhiteSpace(s,l)}a=s[e]}o&&a===":"&&u.Node.atBlank(s,e+1,!0)&&(e-=1);let c=t.parseType(s,e,n);return{props:i,type:c,valueStart:e}}};function Mo(t){let e=[];t.indexOf("\r")!==-1&&(t=t.replace(/\r\n?/g,(s,i)=>(s.length>1&&e.push(i),` -`)));let n=[],r=0;do{let s=new _n,i=new $n({src:t});r=s.parse(i,r),n.push(s)}while(r{if(e.length===0)return!1;for(let i=1;in.join(`... +`)));let n=[],r=0;do{let s=new Pn,i=new Bn({src:t});r=s.parse(i,r),n.push(s)}while(r{if(e.length===0)return!1;for(let i=1;in.join(`... `),n}vs.parse=Mo});var $e=ee(k=>{"use strict";var p=le();function ko(t,e,n){return n?`#${n.replace(/[\s\S]^/gm,`$&${e}#`)} ${e}${t}`:t}function Be(t,e,n){return n?n.indexOf(` `)===-1?`${t} #${n}`:`${t} @@ -101,61 +101,61 @@ ${_}`}L=c.comment}else c&&typeof c=="object"&&(c=m.schema.createNode(c,!0));e.im ${e.indent}`:!f&&c instanceof W?(!(M[0]==="["||M[0]==="{")||M.includes(` `))&&(A=` ${e.indent}`):M[0]===` -`&&(A=""),g&&!L&&r&&r(),Be(w+A+M,e.indent,L)}};p._defineProperty(T,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var Ft=(t,e)=>{if(t instanceof we){let n=e.get(t.source);return n.count*n.aliasCount}else if(t instanceof W){let n=0;for(let r of t.items){let s=Ft(r,e);s>n&&(n=s)}return n}else if(t instanceof T){let n=Ft(t.key,e),r=Ft(t.value,e);return Math.max(n,r)}return 1},we=class t extends V{static stringify({range:e,source:n},{anchors:r,doc:s,implicitKey:i,inStringifyKey:o}){let a=Object.keys(r).find(l=>r[l]===n);if(!a&&o&&(a=s.anchors.getName(n)||s.anchors.newName()),a)return`*${a}${i?" ":""}`;let c=s.anchors.getName(n)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${c} [${e}]`)}constructor(e){super(),this.source=e,this.type=p.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,n){if(!n)return ue(this.source,e,n);let{anchors:r,maxAliasCount:s}=n,i=r.get(this.source);if(!i||i.res===void 0){let o="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new p.YAMLReferenceError(this.cstNode,o):new ReferenceError(o)}if(s>=0&&(i.count+=1,i.aliasCount===0&&(i.aliasCount=Ft(this.source,r)),i.count*i.aliasCount>s)){let o="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new p.YAMLReferenceError(this.cstNode,o):new ReferenceError(o)}return i.res}toString(e){return t.stringify(this,e)}};p._defineProperty(we,"default",!0);function pt(t,e){let n=e instanceof P?e.value:e;for(let r of t)if(r instanceof T&&(r.key===e||r.key===n||r.key&&r.key.value===n))return r}var mt=class extends W{add(e,n){e?e instanceof T||(e=new T(e.key||e,e.value)):e=new T(e);let r=pt(this.items,e.key),s=this.schema&&this.schema.sortMapEntries;if(r)if(n)r.value=e.value;else throw new Error(`Key ${e.key} already set`);else if(s){let i=this.items.findIndex(o=>s(e,o)<0);i===-1?this.items.push(e):this.items.splice(i,0,e)}else this.items.push(e)}delete(e){let n=pt(this.items,e);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(e,n){let r=pt(this.items,e),s=r&&r.value;return!n&&s instanceof P?s.value:s}has(e){return!!pt(this.items,e)}set(e,n){this.add(new T(e,n),!0)}toJSON(e,n,r){let s=r?new r:n&&n.mapAsMap?new Map:{};n&&n.onCreate&&n.onCreate(s);for(let i of this.items)i.addToJSMap(n,s);return s}toString(e,n,r){if(!e)return JSON.stringify(this);for(let s of this.items)if(!(s instanceof T))throw new Error(`Map items must all be pairs; found ${JSON.stringify(s)} instead`);return super.toString(e,{blockItem:s=>s.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},n,r)}},Ds="<<",Kt=class extends T{constructor(e){if(e instanceof T){let n=e.value;n instanceof pe||(n=new pe,n.items.push(e.value),n.range=e.value.range),super(e.key,n),this.range=e.range}else super(new P(Ds),new pe);this.type=T.Type.MERGE_PAIR}addToJSMap(e,n){for(let{source:r}of this.value.items){if(!(r instanceof mt))throw new Error("Merge sources must be maps");let s=r.toJSON(null,e,Map);for(let[i,o]of s)n instanceof Map?n.has(i)||n.set(i,o):n instanceof Set?n.add(i):Object.prototype.hasOwnProperty.call(n,i)||Object.defineProperty(n,i,{value:o,writable:!0,enumerable:!0,configurable:!0})}return n}toString(e,n){let r=this.value;if(r.items.length>1)return super.toString(e,n);this.value=r.items[0];let s=super.toString(e,n);return this.value=r,s}},Io={defaultType:p.Type.BLOCK_LITERAL,lineWidth:76},Po={trueStr:"true",falseStr:"false"},_o={asBigInt:!1},xo={nullStr:"null"},be={defaultType:p.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function qn(t,e,n){for(let{format:r,test:s,resolve:i}of e)if(s){let o=t.match(s);if(o){let a=i.apply(null,o);return a instanceof P||(a=new P(a)),r&&(a.format=r),a}}return n&&(t=n(t)),new P(t)}var Ys="flow",Fn="block",qt="quoted",_s=(t,e)=>{let n=t[e+1];for(;n===" "||n===" ";){do n=t[e+=1];while(n&&n!==` -`);n=t[e+1]}return e};function Vt(t,e,n,{indentAtStart:r,lineWidth:s=80,minContentWidth:i=20,onFold:o,onOverflow:a}){if(!s||s<0)return t;let c=Math.max(1+i,1+s-e.length);if(t.length<=c)return t;let l=[],f={},m=s-e.length;typeof r=="number"&&(r>s-Math.max(2,i)?l.push(0):m=s-r);let d,y,h=!1,g=-1,w=-1,C=-1;n===Fn&&(g=_s(t,g),g!==-1&&(m=g+c));for(let M;M=t[g+=1];){if(n===qt&&M==="\\"){switch(w=g,t[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}C=g}if(M===` -`)n===Fn&&(g=_s(t,g)),m=g+c,d=void 0;else{if(M===" "&&y&&y!==" "&&y!==` +`&&(A=""),g&&!L&&r&&r(),Be(w+A+M,e.indent,L)}};p._defineProperty(T,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var Ft=(t,e)=>{if(t instanceof we){let n=e.get(t.source);return n.count*n.aliasCount}else if(t instanceof W){let n=0;for(let r of t.items){let s=Ft(r,e);s>n&&(n=s)}return n}else if(t instanceof T){let n=Ft(t.key,e),r=Ft(t.value,e);return Math.max(n,r)}return 1},we=class t extends V{static stringify({range:e,source:n},{anchors:r,doc:s,implicitKey:i,inStringifyKey:o}){let a=Object.keys(r).find(l=>r[l]===n);if(!a&&o&&(a=s.anchors.getName(n)||s.anchors.newName()),a)return`*${a}${i?" ":""}`;let c=s.anchors.getName(n)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${c} [${e}]`)}constructor(e){super(),this.source=e,this.type=p.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,n){if(!n)return ue(this.source,e,n);let{anchors:r,maxAliasCount:s}=n,i=r.get(this.source);if(!i||i.res===void 0){let o="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new p.YAMLReferenceError(this.cstNode,o):new ReferenceError(o)}if(s>=0&&(i.count+=1,i.aliasCount===0&&(i.aliasCount=Ft(this.source,r)),i.count*i.aliasCount>s)){let o="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new p.YAMLReferenceError(this.cstNode,o):new ReferenceError(o)}return i.res}toString(e){return t.stringify(this,e)}};p._defineProperty(we,"default",!0);function pt(t,e){let n=e instanceof P?e.value:e;for(let r of t)if(r instanceof T&&(r.key===e||r.key===n||r.key&&r.key.value===n))return r}var mt=class extends W{add(e,n){e?e instanceof T||(e=new T(e.key||e,e.value)):e=new T(e);let r=pt(this.items,e.key),s=this.schema&&this.schema.sortMapEntries;if(r)if(n)r.value=e.value;else throw new Error(`Key ${e.key} already set`);else if(s){let i=this.items.findIndex(o=>s(e,o)<0);i===-1?this.items.push(e):this.items.splice(i,0,e)}else this.items.push(e)}delete(e){let n=pt(this.items,e);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(e,n){let r=pt(this.items,e),s=r&&r.value;return!n&&s instanceof P?s.value:s}has(e){return!!pt(this.items,e)}set(e,n){this.add(new T(e,n),!0)}toJSON(e,n,r){let s=r?new r:n&&n.mapAsMap?new Map:{};n&&n.onCreate&&n.onCreate(s);for(let i of this.items)i.addToJSMap(n,s);return s}toString(e,n,r){if(!e)return JSON.stringify(this);for(let s of this.items)if(!(s instanceof T))throw new Error(`Map items must all be pairs; found ${JSON.stringify(s)} instead`);return super.toString(e,{blockItem:s=>s.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},n,r)}},Ds="<<",Kt=class extends T{constructor(e){if(e instanceof T){let n=e.value;n instanceof pe||(n=new pe,n.items.push(e.value),n.range=e.value.range),super(e.key,n),this.range=e.range}else super(new P(Ds),new pe);this.type=T.Type.MERGE_PAIR}addToJSMap(e,n){for(let{source:r}of this.value.items){if(!(r instanceof mt))throw new Error("Merge sources must be maps");let s=r.toJSON(null,e,Map);for(let[i,o]of s)n instanceof Map?n.has(i)||n.set(i,o):n instanceof Set?n.add(i):Object.prototype.hasOwnProperty.call(n,i)||Object.defineProperty(n,i,{value:o,writable:!0,enumerable:!0,configurable:!0})}return n}toString(e,n){let r=this.value;if(r.items.length>1)return super.toString(e,n);this.value=r.items[0];let s=super.toString(e,n);return this.value=r,s}},Io={defaultType:p.Type.BLOCK_LITERAL,lineWidth:76},Po={trueStr:"true",falseStr:"false"},_o={asBigInt:!1},xo={nullStr:"null"},be={defaultType:p.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function Fn(t,e,n){for(let{format:r,test:s,resolve:i}of e)if(s){let o=t.match(s);if(o){let a=i.apply(null,o);return a instanceof P||(a=new P(a)),r&&(a.format=r),a}}return n&&(t=n(t)),new P(t)}var Ys="flow",$n="block",qt="quoted",_s=(t,e)=>{let n=t[e+1];for(;n===" "||n===" ";){do n=t[e+=1];while(n&&n!==` +`);n=t[e+1]}return e};function Vt(t,e,n,{indentAtStart:r,lineWidth:s=80,minContentWidth:i=20,onFold:o,onOverflow:a}){if(!s||s<0)return t;let c=Math.max(1+i,1+s-e.length);if(t.length<=c)return t;let l=[],f={},m=s-e.length;typeof r=="number"&&(r>s-Math.max(2,i)?l.push(0):m=s-r);let d,y,h=!1,g=-1,w=-1,C=-1;n===$n&&(g=_s(t,g),g!==-1&&(m=g+c));for(let M;M=t[g+=1];){if(n===qt&&M==="\\"){switch(w=g,t[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}C=g}if(M===` +`)n===$n&&(g=_s(t,g)),m=g+c,d=void 0;else{if(M===" "&&y&&y!==" "&&y!==` `&&y!==" "){let A=t[g+1];A&&A!==" "&&A!==` `&&A!==" "&&(d=g)}if(g>=m)if(d)l.push(d),m=d+c,d=void 0;else if(n===qt){for(;y===" "||y===" ";)y=M,M=t[g+=1],h=!0;let A=g>C+1?g-2:w-1;if(f[A])return t;l.push(A),f[A]=!0,m=A+c,d=void 0}else h=!0}y=M}if(h&&a&&a(),l.length===0)return t;o&&o();let L=t.slice(0,l[0]);for(let M=0;Mt?Object.assign({indentAtStart:t},be.fold):be.fold,Wt=t=>/^(%|---|\.\.\.)/m.test(t);function Ro(t,e,n){if(!e||e<0)return!1;let r=e-n,s=t.length;if(s<=r)return!1;for(let i=0,o=0;it?Object.assign({indentAtStart:t},be.fold):be.fold,Wt=t=>/^(%|---|\.\.\.)/m.test(t);function Ro(t,e,n){if(!e||e<0)return!1;let r=e-n,s=t.length;if(s<=r)return!1;for(let i=0,o=0;ir)return!0;if(o=i+1,s-o<=r)return!1}return!0}function Se(t,e){let{implicitKey:n}=e,{jsonEncoding:r,minMultiLineLength:s}=be.doubleQuoted,i=JSON.stringify(t);if(r)return i;let o=e.indent||(Wt(t)?" ":""),a="",c=0;for(let l=0,f=i[l];f;f=i[++l])if(f===" "&&i[l+1]==="\\"&&i[l+2]==="n"&&(a+=i.slice(c,l)+"\\ ",l+=1,c=l,f="\\"),f==="\\")switch(i[l+1]){case"u":{a+=i.slice(c,l);let m=i.substr(l+2,4);switch(m){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:m.substr(0,2)==="00"?a+="\\x"+m.substr(2):a+=i.substr(l,6)}l+=5,c=l+1}break;case"n":if(n||i[l+2]==='"'||i.length";if(!n)return l+` +`,l+=2;a+=o,i[l+2]===" "&&(a+="\\"),l+=1,c=l+1}break;default:l+=1}return a=c?a+i.slice(c):i,n?a:Vt(a,o,qt,qn(e))}function Bs(t,e){if(e.implicitKey){if(/\n/.test(t))return Se(t,e)}else if(/[ \t]\n|\n[ \t]/.test(t))return Se(t,e);let n=e.indent||(Wt(t)?" ":""),r="'"+t.replace(/'/g,"''").replace(/\n+/g,`$& +${n}`)+"'";return e.implicitKey?r:Vt(r,n,Ys,qn(e))}function Ut({comment:t,type:e,value:n},r,s,i){if(/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return Se(n,r);let o=r.indent||(r.forceBlockIndent||Wt(n)?" ":""),a=o?"2":"1",c=e===p.Type.BLOCK_FOLDED?!1:e===p.Type.BLOCK_LITERAL?!0:!Ro(n,be.fold.lineWidth,o.length),l=c?"|":">";if(!n)return l+` `;let f="",m="";if(n=n.replace(/[\n\t ]*$/,y=>{let h=y.indexOf(` `);return h===-1?l+="-":(n===y||h!==y.length-1)&&(l+="+",i&&i()),m=y.replace(/\n$/,""),""}).replace(/^[\n ]*/,y=>{y.indexOf(" ")!==-1&&(l+=a);let h=y.match(/ +$/);return h?(f=y.slice(0,-h[0].length),h[0]):(f=y,"")}),m&&(m=m.replace(/\n+(?!\n|$)/g,`$&${o}`)),f&&(f=f.replace(/\n+/g,`$&${o}`)),t&&(l+=" #"+t.replace(/ ?[\r\n]+/g," "),s&&s()),!n)return`${l}${a} ${o}${m}`;if(c)return n=n.replace(/\n+/g,`$&${o}`),`${l} ${o}${f}${n}${m}`;n=n.replace(/\n+/g,` -$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${o}`);let d=Vt(`${f}${n}${m}`,o,Fn,be.fold);return`${l} +$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${o}`);let d=Vt(`${f}${n}${m}`,o,$n,be.fold);return`${l} ${o}${d}`}function Do(t,e,n,r){let{comment:s,type:i,value:o}=t,{actualString:a,implicitKey:c,indent:l,inFlow:f}=e;if(c&&/[\n[\]{},]/.test(o)||f&&/[[\]{},]/.test(o))return Se(o,e);if(!o||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return c||f||o.indexOf(` `)===-1?o.indexOf('"')!==-1&&o.indexOf("'")===-1?Bs(o,e):Se(o,e):Ut(t,e,n,r);if(!c&&!f&&i!==p.Type.PLAIN&&o.indexOf(` `)!==-1)return Ut(t,e,n,r);if(l===""&&Wt(o))return e.forceBlockIndent=!0,Ut(t,e,n,r);let m=o.replace(/\n+/g,`$& -${l}`);if(a){let{tags:y}=e.doc.schema;if(typeof qn(m,y,y.scalarFallback).value!="string")return Se(o,e)}let d=c?m:Vt(m,l,Ys,Un(e));return s&&!f&&(d.indexOf(` +${l}`);if(a){let{tags:y}=e.doc.schema;if(typeof Fn(m,y,y.scalarFallback).value!="string")return Se(o,e)}let d=c?m:Vt(m,l,Ys,qn(e));return s&&!f&&(d.indexOf(` `)!==-1||s.indexOf(` `)!==-1)?(n&&n(),ko(d,l,s)):d}function Yo(t,e,n,r){let{defaultType:s}=be,{implicitKey:i,inFlow:o}=e,{type:a,value:c}=t;typeof c!="string"&&(c=String(c),t=Object.assign({},t,{value:c}));let l=m=>{switch(m){case p.Type.BLOCK_FOLDED:case p.Type.BLOCK_LITERAL:return Ut(t,e,n,r);case p.Type.QUOTE_DOUBLE:return Se(c,e);case p.Type.QUOTE_SINGLE:return Bs(c,e);case p.Type.PLAIN:return Do(t,e,n,r);default:return null}};(a!==p.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(c)||(i||o)&&(a===p.Type.BLOCK_FOLDED||a===p.Type.BLOCK_LITERAL))&&(a=p.Type.QUOTE_DOUBLE);let f=l(a);if(f===null&&(f=l(s),f===null))throw new Error(`Unsupported default string type ${s}`);return f}function Bo({format:t,minFractionDigits:e,tag:n,value:r}){if(typeof r=="bigint")return String(r);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let s=JSON.stringify(r);if(!t&&e&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let i=s.indexOf(".");i<0&&(i=s.length,s+=".");let o=e-(s.length-i-1);for(;o-- >0;)s+="0"}return s}function $s(t,e){let n,r;switch(e.type){case p.Type.FLOW_MAP:n="}",r="flow map";break;case p.Type.FLOW_SEQ:n="]",r="flow sequence";break;default:t.push(new p.YAMLSemanticError(e,"Not a flow collection!?"));return}let s;for(let i=e.items.length-1;i>=0;--i){let o=e.items[i];if(!o||o.type!==p.Type.COMMENT){s=o;break}}if(s&&s.char!==n){let i=`Expected ${r} to end with ${n}`,o;typeof s.offset=="number"?(o=new p.YAMLSemanticError(e,i),o.offset=s.offset+1):(o=new p.YAMLSemanticError(s,i),s.range&&s.range.end&&(o.offset=s.range.end-s.range.start)),t.push(o)}}function Fs(t,e){let n=e.context.src[e.range.start-1];if(n!==` `&&n!==" "&&n!==" "){let r="Comments must be separated from other tokens by white space characters";t.push(new p.YAMLSemanticError(e,r))}}function qs(t,e){let n=String(e),r=n.substr(0,8)+"..."+n.substr(-8);return new p.YAMLSemanticError(t,`The "${r}" key is too long`)}function Us(t,e){for(let{afterKey:n,before:r,comment:s}of e){let i=t.items[r];i?(n&&i.value&&(i=i.value),s===void 0?(n||!i.commentBefore)&&(i.spaceBefore=!0):i.commentBefore?i.commentBefore+=` `+s:i.commentBefore=s):s!==void 0&&(t.comment?t.comment+=` -`+s:t.comment=s)}}function Kn(t,e){let n=e.strValue;return n?typeof n=="string"?n:(n.errors.forEach(r=>{r.source||(r.source=e),t.errors.push(r)}),n.str):""}function $o(t,e){let{handle:n,suffix:r}=e.tag,s=t.tagPrefixes.find(i=>i.handle===n);if(!s){let i=t.getDefaults().tagPrefixes;if(i&&(s=i.find(o=>o.handle===n)),!s)throw new p.YAMLSemanticError(e,`The ${n} tag handle is non-default and was not declared.`)}if(!r)throw new p.YAMLSemanticError(e,`The ${n} tag has no suffix.`);if(n==="!"&&(t.version||t.options.version)==="1.0"){if(r[0]==="^")return t.warnings.push(new p.YAMLWarning(e,"YAML 1.0 ^ tag expansion is not supported")),r;if(/[:/]/.test(r)){let i=r.match(/^([a-z0-9-]+)\/(.*)/i);return i?`tag:${i[1]}.yaml.org,2002:${i[2]}`:`tag:${r}`}}return s.prefix+decodeURIComponent(r)}function Fo(t,e){let{tag:n,type:r}=e,s=!1;if(n){let{handle:i,suffix:o,verbatim:a}=n;if(a){if(a!=="!"&&a!=="!!")return a;let c=`Verbatim tags aren't resolved, so ${a} is invalid.`;t.errors.push(new p.YAMLSemanticError(e,c))}else if(i==="!"&&!o)s=!0;else try{return $o(t,e)}catch(c){t.errors.push(c)}}switch(r){case p.Type.BLOCK_FOLDED:case p.Type.BLOCK_LITERAL:case p.Type.QUOTE_DOUBLE:case p.Type.QUOTE_SINGLE:return p.defaultTags.STR;case p.Type.FLOW_MAP:case p.Type.MAP:return p.defaultTags.MAP;case p.Type.FLOW_SEQ:case p.Type.SEQ:return p.defaultTags.SEQ;case p.Type.PLAIN:return s?p.defaultTags.STR:null;default:return null}}function xs(t,e,n){let{tags:r}=t.schema,s=[];for(let o of r)if(o.tag===n)if(o.test)s.push(o);else{let a=o.resolve(t,e);return a instanceof W?a:new P(a)}let i=Kn(t,e);return typeof i=="string"&&s.length>0?qn(i,s,r.scalarFallback):null}function qo({type:t}){switch(t){case p.Type.FLOW_MAP:case p.Type.MAP:return p.defaultTags.MAP;case p.Type.FLOW_SEQ:case p.Type.SEQ:return p.defaultTags.SEQ;default:return p.defaultTags.STR}}function Uo(t,e,n){try{let r=xs(t,e,n);if(r)return n&&e.tag&&(r.tag=n),r}catch(r){return r.source||(r.source=e),t.errors.push(r),null}try{let r=qo(e);if(!r)throw new Error(`The tag ${n} is unavailable`);let s=`The tag ${n} is unavailable, falling back to ${r}`;t.warnings.push(new p.YAMLWarning(e,s));let i=xs(t,e,r);return i.tag=n,i}catch(r){let s=new p.YAMLReferenceError(e,r.message);return s.stack=r.stack,t.errors.push(s),null}}var Ko=t=>{if(!t)return!1;let{type:e}=t;return e===p.Type.MAP_KEY||e===p.Type.MAP_VALUE||e===p.Type.SEQ_ITEM};function Vo(t,e){let n={before:[],after:[]},r=!1,s=!1,i=Ko(e.context.parent)?e.context.parent.props.concat(e.props):e.props;for(let{start:o,end:a}of i)switch(e.context.src[o]){case p.Char.COMMENT:{if(!e.commentHasRequiredWhitespace(o)){let m="Comments must be separated from other tokens by white space characters";t.push(new p.YAMLSemanticError(e,m))}let{header:c,valueRange:l}=e;(l&&(o>l.start||c&&o>c.start)?n.after:n.before).push(e.context.src.slice(o+1,a));break}case p.Char.ANCHOR:if(r){let c="A node can have at most one anchor";t.push(new p.YAMLSemanticError(e,c))}r=!0;break;case p.Char.TAG:if(s){let c="A node can have at most one tag";t.push(new p.YAMLSemanticError(e,c))}s=!0;break}return{comments:n,hasAnchor:r,hasTag:s}}function Wo(t,e){let{anchors:n,errors:r,schema:s}=t;if(e.type===p.Type.ALIAS){let o=e.rawValue,a=n.getNode(o);if(!a){let l=`Aliased anchor not found: ${o}`;return r.push(new p.YAMLReferenceError(e,l)),null}let c=new we(a);return n._cstAliases.push(c),c}let i=Fo(t,e);if(i)return Uo(t,e,i);if(e.type!==p.Type.PLAIN){let o=`Failed to resolve ${e.type} node here`;return r.push(new p.YAMLSyntaxError(e,o)),null}try{let o=Kn(t,e);return qn(o,s.tags,s.tags.scalarFallback)}catch(o){return o.source||(o.source=e),r.push(o),null}}function me(t,e){if(!e)return null;e.error&&t.errors.push(e.error);let{comments:n,hasAnchor:r,hasTag:s}=Vo(t.errors,e);if(r){let{anchors:o}=t,a=e.anchor,c=o.getNode(a);c&&(o.map[o.newName(a)]=c),o.map[a]=e}if(e.type===p.Type.ALIAS&&(r||s)){let o="An alias node must not specify any properties";t.errors.push(new p.YAMLSemanticError(e,o))}let i=Wo(t,e);if(i){i.range=[e.range.start,e.range.end],t.options.keepCstNodes&&(i.cstNode=e),t.options.keepNodeTypes&&(i.type=e.type);let o=n.before.join(` +`+s:t.comment=s)}}function Un(t,e){let n=e.strValue;return n?typeof n=="string"?n:(n.errors.forEach(r=>{r.source||(r.source=e),t.errors.push(r)}),n.str):""}function $o(t,e){let{handle:n,suffix:r}=e.tag,s=t.tagPrefixes.find(i=>i.handle===n);if(!s){let i=t.getDefaults().tagPrefixes;if(i&&(s=i.find(o=>o.handle===n)),!s)throw new p.YAMLSemanticError(e,`The ${n} tag handle is non-default and was not declared.`)}if(!r)throw new p.YAMLSemanticError(e,`The ${n} tag has no suffix.`);if(n==="!"&&(t.version||t.options.version)==="1.0"){if(r[0]==="^")return t.warnings.push(new p.YAMLWarning(e,"YAML 1.0 ^ tag expansion is not supported")),r;if(/[:/]/.test(r)){let i=r.match(/^([a-z0-9-]+)\/(.*)/i);return i?`tag:${i[1]}.yaml.org,2002:${i[2]}`:`tag:${r}`}}return s.prefix+decodeURIComponent(r)}function Fo(t,e){let{tag:n,type:r}=e,s=!1;if(n){let{handle:i,suffix:o,verbatim:a}=n;if(a){if(a!=="!"&&a!=="!!")return a;let c=`Verbatim tags aren't resolved, so ${a} is invalid.`;t.errors.push(new p.YAMLSemanticError(e,c))}else if(i==="!"&&!o)s=!0;else try{return $o(t,e)}catch(c){t.errors.push(c)}}switch(r){case p.Type.BLOCK_FOLDED:case p.Type.BLOCK_LITERAL:case p.Type.QUOTE_DOUBLE:case p.Type.QUOTE_SINGLE:return p.defaultTags.STR;case p.Type.FLOW_MAP:case p.Type.MAP:return p.defaultTags.MAP;case p.Type.FLOW_SEQ:case p.Type.SEQ:return p.defaultTags.SEQ;case p.Type.PLAIN:return s?p.defaultTags.STR:null;default:return null}}function xs(t,e,n){let{tags:r}=t.schema,s=[];for(let o of r)if(o.tag===n)if(o.test)s.push(o);else{let a=o.resolve(t,e);return a instanceof W?a:new P(a)}let i=Un(t,e);return typeof i=="string"&&s.length>0?Fn(i,s,r.scalarFallback):null}function qo({type:t}){switch(t){case p.Type.FLOW_MAP:case p.Type.MAP:return p.defaultTags.MAP;case p.Type.FLOW_SEQ:case p.Type.SEQ:return p.defaultTags.SEQ;default:return p.defaultTags.STR}}function Uo(t,e,n){try{let r=xs(t,e,n);if(r)return n&&e.tag&&(r.tag=n),r}catch(r){return r.source||(r.source=e),t.errors.push(r),null}try{let r=qo(e);if(!r)throw new Error(`The tag ${n} is unavailable`);let s=`The tag ${n} is unavailable, falling back to ${r}`;t.warnings.push(new p.YAMLWarning(e,s));let i=xs(t,e,r);return i.tag=n,i}catch(r){let s=new p.YAMLReferenceError(e,r.message);return s.stack=r.stack,t.errors.push(s),null}}var Ko=t=>{if(!t)return!1;let{type:e}=t;return e===p.Type.MAP_KEY||e===p.Type.MAP_VALUE||e===p.Type.SEQ_ITEM};function Vo(t,e){let n={before:[],after:[]},r=!1,s=!1,i=Ko(e.context.parent)?e.context.parent.props.concat(e.props):e.props;for(let{start:o,end:a}of i)switch(e.context.src[o]){case p.Char.COMMENT:{if(!e.commentHasRequiredWhitespace(o)){let m="Comments must be separated from other tokens by white space characters";t.push(new p.YAMLSemanticError(e,m))}let{header:c,valueRange:l}=e;(l&&(o>l.start||c&&o>c.start)?n.after:n.before).push(e.context.src.slice(o+1,a));break}case p.Char.ANCHOR:if(r){let c="A node can have at most one anchor";t.push(new p.YAMLSemanticError(e,c))}r=!0;break;case p.Char.TAG:if(s){let c="A node can have at most one tag";t.push(new p.YAMLSemanticError(e,c))}s=!0;break}return{comments:n,hasAnchor:r,hasTag:s}}function Wo(t,e){let{anchors:n,errors:r,schema:s}=t;if(e.type===p.Type.ALIAS){let o=e.rawValue,a=n.getNode(o);if(!a){let l=`Aliased anchor not found: ${o}`;return r.push(new p.YAMLReferenceError(e,l)),null}let c=new we(a);return n._cstAliases.push(c),c}let i=Fo(t,e);if(i)return Uo(t,e,i);if(e.type!==p.Type.PLAIN){let o=`Failed to resolve ${e.type} node here`;return r.push(new p.YAMLSyntaxError(e,o)),null}try{let o=Un(t,e);return Fn(o,s.tags,s.tags.scalarFallback)}catch(o){return o.source||(o.source=e),r.push(o),null}}function me(t,e){if(!e)return null;e.error&&t.errors.push(e.error);let{comments:n,hasAnchor:r,hasTag:s}=Vo(t.errors,e);if(r){let{anchors:o}=t,a=e.anchor,c=o.getNode(a);c&&(o.map[o.newName(a)]=c),o.map[a]=e}if(e.type===p.Type.ALIAS&&(r||s)){let o="An alias node must not specify any properties";t.errors.push(new p.YAMLSemanticError(e,o))}let i=Wo(t,e);if(i){i.range=[e.range.start,e.range.end],t.options.keepCstNodes&&(i.cstNode=e),t.options.keepNodeTypes&&(i.type=e.type);let o=n.before.join(` `);o&&(i.commentBefore=i.commentBefore?`${i.commentBefore} ${o}`:o);let a=n.after.join(` `);a&&(i.comment=i.comment?`${i.comment} ${a}`:a)}return e.resolved=i}function jo(t,e){if(e.type!==p.Type.MAP&&e.type!==p.Type.FLOW_MAP){let o=`A ${e.type} node cannot be resolved as a mapping`;return t.errors.push(new p.YAMLSyntaxError(e,o)),null}let{comments:n,items:r}=e.type===p.Type.FLOW_MAP?Ho(t,e):Go(t,e),s=new mt;s.items=r,Us(s,n);let i=!1;for(let o=0;o{if(f instanceof we){let{type:m}=f.source;return m===p.Type.MAP||m===p.Type.FLOW_MAP?!1:l="Merge nodes aliases can only point to maps"}return l="Merge nodes can only have Alias nodes as values"}),l&&t.errors.push(new p.YAMLSemanticError(e,l))}else for(let c=o+1;c{if(r.length===0)return!1;let{start:s}=r[0];if(e&&s>e.valueRange.start||n[s]!==p.Char.COMMENT)return!1;for(let i=t;i0){c=new p.PlainValue(p.Type.PLAIN,[]),c.context={parent:a,src:a.context.src};let f=a.range.start+1;if(c.range={start:f,end:f},c.valueRange={start:f,end:f},typeof a.range.origStart=="number"){let m=a.range.origStart+1;c.range.origStart=c.range.origEnd=m,c.valueRange.origStart=c.valueRange.origEnd=m}}let l=new T(s,me(t,c));Jo(a,l),r.push(l),s&&typeof i=="number"&&a.range.start>i+1024&&t.errors.push(qs(e,s)),s=void 0,i=null}break;default:s!==void 0&&r.push(new T(s)),s=me(t,a),i=a.range.start,a.error&&t.errors.push(a.error);e:for(let c=o+1;;++c){let l=e.items[c];switch(l&&l.type){case p.Type.BLANK_LINE:case p.Type.COMMENT:continue e;case p.Type.MAP_VALUE:break e;default:{let f="Implicit map keys need to be followed by map values";t.errors.push(new p.YAMLSemanticError(a,f));break e}}}if(a.valueRangeContainsNewline){let c="Implicit map keys need to be on a single line";t.errors.push(new p.YAMLSemanticError(a,c))}}}return s!==void 0&&r.push(new T(s)),{comments:n,items:r}}function Ho(t,e){let n=[],r=[],s,i=!1,o="{";for(let a=0;ai instanceof T&&i.key instanceof W)){let i="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";t.warnings.push(new p.YAMLWarning(e,i))}return e.resolved=s,s}function zo(t,e){let n=[],r=[];for(let s=0;so+1024&&t.errors.push(qs(e,i));let{src:h}=c.context;for(let g=o;g{"use strict";var j=le(),O=$e(),ea={identify:t=>t instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(t,e)=>{let n=O.resolveString(t,e);if(typeof Buffer=="function")return Buffer.from(n,"base64");if(typeof atob=="function"){let r=atob(n.replace(/[\n\r]/g,"")),s=new Uint8Array(r.length);for(let i=0;i{let o;if(typeof Buffer=="function")o=n instanceof Buffer?n.toString("base64"):Buffer.from(n.buffer).toString("base64");else if(typeof btoa=="function"){let a="";for(let c=0;c{"use strict";var j=le(),O=$e(),ea={identify:t=>t instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(t,e)=>{let n=O.resolveString(t,e);if(typeof Buffer=="function")return Buffer.from(n,"base64");if(typeof atob=="function"){let r=atob(n.replace(/[\n\r]/g,"")),s=new Uint8Array(r.length);for(let i=0;i{let o;if(typeof Buffer=="function")o=n instanceof Buffer?n.toString("base64"):Buffer.from(n.buffer).toString("base64");else if(typeof btoa=="function"){let a="";for(let c=0;c1){let o="Each pair must have its own sequence indicator";throw new j.YAMLSemanticError(e,o)}let i=s.items[0]||new O.Pair;s.commentBefore&&(i.commentBefore=i.commentBefore?`${s.commentBefore} ${i.commentBefore}`:s.commentBefore),s.comment&&(i.comment=i.comment?`${s.comment} -${i.comment}`:s.comment),s=i}n.items[r]=s instanceof O.Pair?s:new O.Pair(s)}}return n}function Ws(t,e,n){let r=new O.YAMLSeq(t);r.tag="tag:yaml.org,2002:pairs";for(let s of e){let i,o;if(Array.isArray(s))if(s.length===2)i=s[0],o=s[1];else throw new TypeError(`Expected [key, value] tuple: ${s}`);else if(s&&s instanceof Object){let c=Object.keys(s);if(c.length===1)i=c[0],o=s[i];else throw new TypeError(`Expected { key: value } tuple: ${s}`)}else i=s;let a=t.createPair(i,o,n);r.items.push(a)}return r}var ta={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Vs,createNode:Ws},Fe=class t extends O.YAMLSeq{constructor(){super(),j._defineProperty(this,"add",O.YAMLMap.prototype.add.bind(this)),j._defineProperty(this,"delete",O.YAMLMap.prototype.delete.bind(this)),j._defineProperty(this,"get",O.YAMLMap.prototype.get.bind(this)),j._defineProperty(this,"has",O.YAMLMap.prototype.has.bind(this)),j._defineProperty(this,"set",O.YAMLMap.prototype.set.bind(this)),this.tag=t.tag}toJSON(e,n){let r=new Map;n&&n.onCreate&&n.onCreate(r);for(let s of this.items){let i,o;if(s instanceof O.Pair?(i=O.toJSON(s.key,"",n),o=O.toJSON(s.value,i,n)):i=O.toJSON(s,"",n),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,o)}return r}};j._defineProperty(Fe,"tag","tag:yaml.org,2002:omap");function na(t,e){let n=Vs(t,e),r=[];for(let{key:s}of n.items)if(s instanceof O.Scalar)if(r.includes(s.value)){let i="Ordered maps must not include duplicate keys";throw new j.YAMLSemanticError(e,i)}else r.push(s.value);return Object.assign(new Fe,n)}function ra(t,e,n){let r=Ws(t,e,n),s=new Fe;return s.items=r.items,s}var sa={identify:t=>t instanceof Map,nodeClass:Fe,default:!1,tag:"tag:yaml.org,2002:omap",resolve:na,createNode:ra},qe=class t extends O.YAMLMap{constructor(){super(),this.tag=t.tag}add(e){let n=e instanceof O.Pair?e:new O.Pair(e);O.findPair(this.items,n.key)||this.items.push(n)}get(e,n){let r=O.findPair(this.items,e);return!n&&r instanceof O.Pair?r.key instanceof O.Scalar?r.key.value:r.key:r}set(e,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);let r=O.findPair(this.items,e);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new O.Pair(e))}toJSON(e,n){return super.toJSON(e,n,Set)}toString(e,n,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,n,r);throw new Error("Set items must all have null values")}};j._defineProperty(qe,"tag","tag:yaml.org,2002:set");function ia(t,e){let n=O.resolveMap(t,e);if(!n.hasAllNullValues())throw new j.YAMLSemanticError(e,"Set items must all have null values");return Object.assign(new qe,n)}function oa(t,e,n){let r=new qe;for(let s of e)r.items.push(t.createPair(s,null,n));return r}var aa={identify:t=>t instanceof Set,nodeClass:qe,default:!1,tag:"tag:yaml.org,2002:set",resolve:ia,createNode:oa},Vn=(t,e)=>{let n=e.split(":").reduce((r,s)=>r*60+Number(s),0);return t==="-"?-n:n},js=({value:t})=>{if(isNaN(t)||!isFinite(t))return O.stringifyNumber(t);let e="";t<0&&(e="-",t=Math.abs(t));let n=[t%60];return t<60?n.unshift(0):(t=Math.round((t-n[0])/60),n.unshift(t%60),t>=60&&(t=Math.round((t-n[0])/60),n.unshift(t))),e+n.map(r=>r<10?"0"+String(r):String(r)).join(":").replace(/000000\d*$/,"")},ca={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(t,e,n)=>Vn(e,n.replace(/_/g,"")),stringify:js},la={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(t,e,n)=>Vn(e,n.replace(/_/g,"")),stringify:js},fa={identify:t=>t instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(t,e,n,r,s,i,o,a,c)=>{a&&(a=(a+"00").substr(1,3));let l=Date.UTC(e,n-1,r,s||0,i||0,o||0,a||0);if(c&&c!=="Z"){let f=Vn(c[0],c.slice(1));Math.abs(f)<30&&(f*=60),l-=6e4*f}return new Date(l)},stringify:({value:t})=>t.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function Wn(t){let e={};return t?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!e.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!e.YAML_SILENCE_WARNINGS}function jn(t,e){Wn(!1)&&console.warn(e?`${e}: ${t}`:t)}function ua(t){if(Wn(!0)){let e=t.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");jn(`The endpoint 'yaml/${e}' will be removed in a future release.`,"DeprecationWarning")}}var Ks={};function pa(t,e){if(!Ks[t]&&Wn(!0)){Ks[t]=!0;let n=`The option '${t}' will be removed in a future release`;n+=e?`, use '${e}' instead.`:".",jn(n,"DeprecationWarning")}}z.binary=ea;z.floatTime=la;z.intTime=ca;z.omap=sa;z.pairs=ta;z.set=aa;z.timestamp=fa;z.warn=jn;z.warnFileDeprecation=ua;z.warnOptionDeprecation=pa});var Xn=ee(ii=>{"use strict";var Jt=le(),E=$e(),D=Qn();function ma(t,e,n){let r=new E.YAMLMap(t);if(e instanceof Map)for(let[s,i]of e)r.items.push(t.createPair(s,i,n));else if(e&&typeof e=="object")for(let s of Object.keys(e))r.items.push(t.createPair(s,e[s],n));return typeof t.sortMapEntries=="function"&&r.items.sort(t.sortMapEntries),r}var gt={createNode:ma,default:!0,nodeClass:E.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:E.resolveMap};function ha(t,e,n){let r=new E.YAMLSeq(t);if(e&&e[Symbol.iterator])for(let s of e){let i=t.createNode(s,n.wrapScalars,null,n);r.items.push(i)}return r}var Gt={createNode:ha,default:!0,nodeClass:E.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:E.resolveSeq},ga={identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:E.resolveString,stringify(t,e,n,r){return e=Object.assign({actualString:!0},e),E.stringifyString(t,e,n,r)},options:E.strOptions},Gn=[gt,Gt,ga],Ht=t=>typeof t=="bigint"||Number.isInteger(t),Hn=(t,e,n)=>E.intOptions.asBigInt?BigInt(t):parseInt(e,n);function Gs(t,e,n){let{value:r}=t;return Ht(r)&&r>=0?n+r.toString(e):E.stringifyNumber(t)}var Hs={identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:E.nullOptions,stringify:()=>E.nullOptions.nullStr},Xs={identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:t=>t[0]==="t"||t[0]==="T",options:E.boolOptions,stringify:({value:t})=>t?E.boolOptions.trueStr:E.boolOptions.falseStr},zs={identify:t=>Ht(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(t,e)=>Hn(t,e,8),options:E.intOptions,stringify:t=>Gs(t,8,"0o")},Zs={identify:Ht,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:t=>Hn(t,t,10),options:E.intOptions,stringify:E.stringifyNumber},ei={identify:t=>Ht(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(t,e)=>Hn(t,e,16),options:E.intOptions,stringify:t=>Gs(t,16,"0x")},ti={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(t,e)=>e?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:E.stringifyNumber},ni={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t),stringify:({value:t})=>Number(t).toExponential()},ri={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(t,e,n){let r=e||n,s=new E.Scalar(parseFloat(t));return r&&r[r.length-1]==="0"&&(s.minFractionDigits=r.length),s},stringify:E.stringifyNumber},da=Gn.concat([Hs,Xs,zs,Zs,ei,ti,ni,ri]),Qs=t=>typeof t=="bigint"||Number.isInteger(t),jt=({value:t})=>JSON.stringify(t),si=[gt,Gt,{identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:E.resolveString,stringify:jt},{identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:jt},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:t=>t==="true",stringify:jt},{identify:Qs,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:t=>E.intOptions.asBigInt?BigInt(t):parseInt(t,10),stringify:({value:t})=>Qs(t)?t.toString():JSON.stringify(t)},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:t=>parseFloat(t),stringify:jt}];si.scalarFallback=t=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(t)}`)};var Js=({value:t})=>t?E.boolOptions.trueStr:E.boolOptions.falseStr,ht=t=>typeof t=="bigint"||Number.isInteger(t);function Qt(t,e,n){let r=e.replace(/_/g,"");if(E.intOptions.asBigInt){switch(n){case 2:r=`0b${r}`;break;case 8:r=`0o${r}`;break;case 16:r=`0x${r}`;break}let i=BigInt(r);return t==="-"?BigInt(-1)*i:i}let s=parseInt(r,n);return t==="-"?-1*s:s}function Jn(t,e,n){let{value:r}=t;if(ht(r)){let s=r.toString(e);return r<0?"-"+n+s.substr(1):n+s}return E.stringifyNumber(t)}var ya=Gn.concat([{identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:E.nullOptions,stringify:()=>E.nullOptions.nullStr},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:E.boolOptions,stringify:Js},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:E.boolOptions,stringify:Js},{identify:ht,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(t,e,n)=>Qt(e,n,2),stringify:t=>Jn(t,2,"0b")},{identify:ht,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(t,e,n)=>Qt(e,n,8),stringify:t=>Jn(t,8,"0")},{identify:ht,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(t,e,n)=>Qt(e,n,10),stringify:E.stringifyNumber},{identify:ht,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(t,e,n)=>Qt(e,n,16),stringify:t=>Jn(t,16,"0x")},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(t,e)=>e?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:E.stringifyNumber},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t.replace(/_/g,"")),stringify:({value:t})=>Number(t).toExponential()},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(t,e){let n=new E.Scalar(parseFloat(t.replace(/_/g,"")));if(e){let r=e.replace(/_/g,"");r[r.length-1]==="0"&&(n.minFractionDigits=r.length)}return n},stringify:E.stringifyNumber}],D.binary,D.omap,D.pairs,D.set,D.intTime,D.floatTime,D.timestamp),Ea={core:da,failsafe:Gn,json:si,yaml11:ya},Sa={binary:D.binary,bool:Xs,float:ri,floatExp:ni,floatNaN:ti,floatTime:D.floatTime,int:Zs,intHex:ei,intOct:zs,intTime:D.intTime,map:gt,null:Hs,omap:D.omap,pairs:D.pairs,seq:Gt,set:D.set,timestamp:D.timestamp};function wa(t,e,n){if(e){let r=n.filter(i=>i.tag===e),s=r.find(i=>!i.format)||r[0];if(!s)throw new Error(`Tag ${e} not found`);return s}return n.find(r=>(r.identify&&r.identify(t)||r.class&&t instanceof r.class)&&!r.format)}function ba(t,e,n){if(t instanceof E.Node)return t;let{defaultPrefix:r,onTagObj:s,prevObjects:i,schema:o,wrapScalars:a}=n;e&&e.startsWith("!!")&&(e=r+e.slice(2));let c=wa(t,e,o.tags);if(!c){if(typeof t.toJSON=="function"&&(t=t.toJSON()),!t||typeof t!="object")return a?new E.Scalar(t):t;c=t instanceof Map?gt:t[Symbol.iterator]?Gt:gt}s&&(s(c),delete n.onTagObj);let l={value:void 0,node:void 0};if(t&&typeof t=="object"&&i){let f=i.get(t);if(f){let m=new E.Alias(f);return n.aliasNodes.push(m),m}l.value=t,i.set(t,l)}return l.node=c.createNode?c.createNode(n.schema,t,n):a?new E.Scalar(t):t,e&&l.node instanceof E.Node&&(l.node.tag=e),l.node}function Na(t,e,n,r){let s=t[r.replace(/\W/g,"")];if(!s){let i=Object.keys(t).map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${r}"; use one of ${i}`)}if(Array.isArray(n))for(let i of n)s=s.concat(i);else typeof n=="function"&&(s=n(s.slice()));for(let i=0;iJSON.stringify(l)).join(", ");throw new Error(`Unknown custom tag "${o}"; use one of ${c}`)}s[i]=a}}return s}var Oa=(t,e)=>t.keye.key?1:0,dt=class t{constructor({customTags:e,merge:n,schema:r,sortMapEntries:s,tags:i}){this.merge=!!n,this.name=r,this.sortMapEntries=s===!0?Oa:s||null,!e&&i&&D.warnOptionDeprecation("tags","customTags"),this.tags=Na(Ea,Sa,e||i,r)}createNode(e,n,r,s){let i={defaultPrefix:t.defaultPrefix,schema:this,wrapScalars:n},o=s?Object.assign(s,i):i;return ba(e,r,o)}createPair(e,n,r){r||(r={wrapScalars:!0});let s=this.createNode(e,r.wrapScalars,null,r),i=this.createNode(n,r.wrapScalars,null,r);return new E.Pair(s,i)}};Jt._defineProperty(dt,"defaultPrefix",Jt.defaultTagPrefix);Jt._defineProperty(dt,"defaultTags",Jt.defaultTags);ii.Schema=dt});var li=ee(en=>{"use strict";var Y=le(),S=$e(),oi=Xn(),La={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},Aa={get binary(){return S.binaryOptions},set binary(t){Object.assign(S.binaryOptions,t)},get bool(){return S.boolOptions},set bool(t){Object.assign(S.boolOptions,t)},get int(){return S.intOptions},set int(t){Object.assign(S.intOptions,t)},get null(){return S.nullOptions},set null(t){Object.assign(S.nullOptions,t)},get str(){return S.strOptions},set str(t){Object.assign(S.strOptions,t)}},ci={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:Y.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Y.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Y.defaultTagPrefix}]}};function ai(t,e){if((t.version||t.options.version)==="1.0"){let s=e.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(s)return"!"+s[1];let i=e.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return i?`!${i[1]}/${i[2]}`:`!${e.replace(/^tag:/,"")}`}let n=t.tagPrefixes.find(s=>e.indexOf(s.prefix)===0);if(!n){let s=t.getDefaults().tagPrefixes;n=s&&s.find(i=>e.indexOf(i.prefix)===0)}if(!n)return e[0]==="!"?e:`!<${e}>`;let r=e.substr(n.prefix.length).replace(/[!,[\]{}]/g,s=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[s]);return n.handle+r}function Ta(t,e){if(e instanceof S.Alias)return S.Alias;if(e.tag){let s=t.filter(i=>i.tag===e.tag);if(s.length>0)return s.find(i=>i.format===e.format)||s[0]}let n,r;if(e instanceof S.Scalar){r=e.value;let s=t.filter(i=>i.identify&&i.identify(r)||i.class&&r instanceof i.class);n=s.find(i=>i.format===e.format)||s.find(i=>!i.format)}else r=e,n=t.find(s=>s.nodeClass&&r instanceof s.nodeClass);if(!n){let s=r&&r.constructor?r.constructor.name:typeof r;throw new Error(`Tag not resolved for ${s} value`)}return n}function Ca(t,e,{anchors:n,doc:r}){let s=[],i=r.anchors.getName(t);return i&&(n[i]=t,s.push(`&${i}`)),t.tag?s.push(ai(r,t.tag)):e.default||s.push(ai(r,e.tag)),s.join(" ")}function Xt(t,e,n,r){let{anchors:s,schema:i}=e.doc,o;if(!(t instanceof S.Node)){let l={aliasNodes:[],onTagObj:f=>o=f,prevObjects:new Map};t=i.createNode(t,!0,null,l);for(let f of l.aliasNodes){f.source=f.source.node;let m=s.getName(f.source);m||(m=s.newName(),s.map[m]=f.source)}}if(t instanceof S.Pair)return t.toString(e,n,r);o||(o=Ta(i.tags,t));let a=Ca(t,o,e);a.length>0&&(e.indentAtStart=(e.indentAtStart||0)+a.length+1);let c=typeof o.stringify=="function"?o.stringify(t,e,n,r):t instanceof S.Scalar?S.stringifyString(t,e,n,r):t.toString(e,n,r);return a?t instanceof S.Scalar||c[0]==="{"||c[0]==="["?`${a} ${c}`:`${a} -${e.indent}${c}`:c}var zn=class t{static validAnchorNode(e){return e instanceof S.Scalar||e instanceof S.YAMLSeq||e instanceof S.YAMLMap}constructor(e){Y._defineProperty(this,"map",Object.create(null)),this.prefix=e}createAlias(e,n){return this.setAnchor(e,n),new S.Alias(e)}createMergePair(...e){let n=new S.Merge;return n.value.items=e.map(r=>{if(r instanceof S.Alias){if(r.source instanceof S.YAMLMap)return r}else if(r instanceof S.YAMLMap)return this.createAlias(r);throw new Error("Merge sources must be Map nodes or their Aliases")}),n}getName(e){let{map:n}=this;return Object.keys(n).find(r=>n[r]===e)}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){e||(e=this.prefix);let n=Object.keys(this.map);for(let r=1;;++r){let s=`${e}${r}`;if(!n.includes(s))return s}}resolveNodes(){let{map:e,_cstAliases:n}=this;Object.keys(e).forEach(r=>{e[r]=e[r].resolved}),n.forEach(r=>{r.source=r.source.resolved}),delete this._cstAliases}setAnchor(e,n){if(e!=null&&!t.validAnchorNode(e))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(n&&/[\x00-\x19\s,[\]{}]/.test(n))throw new Error("Anchor names must not contain whitespace or control characters");let{map:r}=this,s=e&&Object.keys(r).find(i=>r[i]===e);if(s)if(n)s!==n&&(delete r[s],r[n]=e);else return s;else{if(!n){if(!e)return null;n=this.newName()}r[n]=e}return n}},zt=(t,e)=>{if(t&&typeof t=="object"){let{tag:n}=t;t instanceof S.Collection?(n&&(e[n]=!0),t.items.forEach(r=>zt(r,e))):t instanceof S.Pair?(zt(t.key,e),zt(t.value,e)):t instanceof S.Scalar&&n&&(e[n]=!0)}return e},Ma=t=>Object.keys(zt(t,{}));function ka(t,e){let n={before:[],after:[]},r,s=!1;for(let i of e)if(i.valueRange){if(r!==void 0){let a="Document contains trailing content not separated by a ... or --- line";t.errors.push(new Y.YAMLSyntaxError(i,a));break}let o=S.resolveNode(t,i);s&&(o.spaceBefore=!0,s=!1),r=o}else i.comment!==null?(r===void 0?n.before:n.after).push(i.comment):i.type===Y.Type.BLANK_LINE&&(s=!0,r===void 0&&n.before.length>0&&!t.commentBefore&&(t.commentBefore=n.before.join(` +${i.comment}`:s.comment),s=i}n.items[r]=s instanceof O.Pair?s:new O.Pair(s)}}return n}function Ws(t,e,n){let r=new O.YAMLSeq(t);r.tag="tag:yaml.org,2002:pairs";for(let s of e){let i,o;if(Array.isArray(s))if(s.length===2)i=s[0],o=s[1];else throw new TypeError(`Expected [key, value] tuple: ${s}`);else if(s&&s instanceof Object){let c=Object.keys(s);if(c.length===1)i=c[0],o=s[i];else throw new TypeError(`Expected { key: value } tuple: ${s}`)}else i=s;let a=t.createPair(i,o,n);r.items.push(a)}return r}var ta={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Vs,createNode:Ws},Fe=class t extends O.YAMLSeq{constructor(){super(),j._defineProperty(this,"add",O.YAMLMap.prototype.add.bind(this)),j._defineProperty(this,"delete",O.YAMLMap.prototype.delete.bind(this)),j._defineProperty(this,"get",O.YAMLMap.prototype.get.bind(this)),j._defineProperty(this,"has",O.YAMLMap.prototype.has.bind(this)),j._defineProperty(this,"set",O.YAMLMap.prototype.set.bind(this)),this.tag=t.tag}toJSON(e,n){let r=new Map;n&&n.onCreate&&n.onCreate(r);for(let s of this.items){let i,o;if(s instanceof O.Pair?(i=O.toJSON(s.key,"",n),o=O.toJSON(s.value,i,n)):i=O.toJSON(s,"",n),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,o)}return r}};j._defineProperty(Fe,"tag","tag:yaml.org,2002:omap");function na(t,e){let n=Vs(t,e),r=[];for(let{key:s}of n.items)if(s instanceof O.Scalar)if(r.includes(s.value)){let i="Ordered maps must not include duplicate keys";throw new j.YAMLSemanticError(e,i)}else r.push(s.value);return Object.assign(new Fe,n)}function ra(t,e,n){let r=Ws(t,e,n),s=new Fe;return s.items=r.items,s}var sa={identify:t=>t instanceof Map,nodeClass:Fe,default:!1,tag:"tag:yaml.org,2002:omap",resolve:na,createNode:ra},qe=class t extends O.YAMLMap{constructor(){super(),this.tag=t.tag}add(e){let n=e instanceof O.Pair?e:new O.Pair(e);O.findPair(this.items,n.key)||this.items.push(n)}get(e,n){let r=O.findPair(this.items,e);return!n&&r instanceof O.Pair?r.key instanceof O.Scalar?r.key.value:r.key:r}set(e,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);let r=O.findPair(this.items,e);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new O.Pair(e))}toJSON(e,n){return super.toJSON(e,n,Set)}toString(e,n,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,n,r);throw new Error("Set items must all have null values")}};j._defineProperty(qe,"tag","tag:yaml.org,2002:set");function ia(t,e){let n=O.resolveMap(t,e);if(!n.hasAllNullValues())throw new j.YAMLSemanticError(e,"Set items must all have null values");return Object.assign(new qe,n)}function oa(t,e,n){let r=new qe;for(let s of e)r.items.push(t.createPair(s,null,n));return r}var aa={identify:t=>t instanceof Set,nodeClass:qe,default:!1,tag:"tag:yaml.org,2002:set",resolve:ia,createNode:oa},Kn=(t,e)=>{let n=e.split(":").reduce((r,s)=>r*60+Number(s),0);return t==="-"?-n:n},js=({value:t})=>{if(isNaN(t)||!isFinite(t))return O.stringifyNumber(t);let e="";t<0&&(e="-",t=Math.abs(t));let n=[t%60];return t<60?n.unshift(0):(t=Math.round((t-n[0])/60),n.unshift(t%60),t>=60&&(t=Math.round((t-n[0])/60),n.unshift(t))),e+n.map(r=>r<10?"0"+String(r):String(r)).join(":").replace(/000000\d*$/,"")},ca={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(t,e,n)=>Kn(e,n.replace(/_/g,"")),stringify:js},la={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(t,e,n)=>Kn(e,n.replace(/_/g,"")),stringify:js},fa={identify:t=>t instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(t,e,n,r,s,i,o,a,c)=>{a&&(a=(a+"00").substr(1,3));let l=Date.UTC(e,n-1,r,s||0,i||0,o||0,a||0);if(c&&c!=="Z"){let f=Kn(c[0],c.slice(1));Math.abs(f)<30&&(f*=60),l-=6e4*f}return new Date(l)},stringify:({value:t})=>t.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function Vn(t){let e={};return t?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!e.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!e.YAML_SILENCE_WARNINGS}function Wn(t,e){Vn(!1)&&console.warn(e?`${e}: ${t}`:t)}function ua(t){if(Vn(!0)){let e=t.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");Wn(`The endpoint 'yaml/${e}' will be removed in a future release.`,"DeprecationWarning")}}var Ks={};function pa(t,e){if(!Ks[t]&&Vn(!0)){Ks[t]=!0;let n=`The option '${t}' will be removed in a future release`;n+=e?`, use '${e}' instead.`:".",Wn(n,"DeprecationWarning")}}z.binary=ea;z.floatTime=la;z.intTime=ca;z.omap=sa;z.pairs=ta;z.set=aa;z.timestamp=fa;z.warn=Wn;z.warnFileDeprecation=ua;z.warnOptionDeprecation=pa});var Hn=ee(ii=>{"use strict";var Jt=le(),E=$e(),D=jn();function ma(t,e,n){let r=new E.YAMLMap(t);if(e instanceof Map)for(let[s,i]of e)r.items.push(t.createPair(s,i,n));else if(e&&typeof e=="object")for(let s of Object.keys(e))r.items.push(t.createPair(s,e[s],n));return typeof t.sortMapEntries=="function"&&r.items.sort(t.sortMapEntries),r}var gt={createNode:ma,default:!0,nodeClass:E.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:E.resolveMap};function ha(t,e,n){let r=new E.YAMLSeq(t);if(e&&e[Symbol.iterator])for(let s of e){let i=t.createNode(s,n.wrapScalars,null,n);r.items.push(i)}return r}var Gt={createNode:ha,default:!0,nodeClass:E.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:E.resolveSeq},ga={identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:E.resolveString,stringify(t,e,n,r){return e=Object.assign({actualString:!0},e),E.stringifyString(t,e,n,r)},options:E.strOptions},Jn=[gt,Gt,ga],Ht=t=>typeof t=="bigint"||Number.isInteger(t),Gn=(t,e,n)=>E.intOptions.asBigInt?BigInt(t):parseInt(e,n);function Gs(t,e,n){let{value:r}=t;return Ht(r)&&r>=0?n+r.toString(e):E.stringifyNumber(t)}var Hs={identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:E.nullOptions,stringify:()=>E.nullOptions.nullStr},Xs={identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:t=>t[0]==="t"||t[0]==="T",options:E.boolOptions,stringify:({value:t})=>t?E.boolOptions.trueStr:E.boolOptions.falseStr},zs={identify:t=>Ht(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(t,e)=>Gn(t,e,8),options:E.intOptions,stringify:t=>Gs(t,8,"0o")},Zs={identify:Ht,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:t=>Gn(t,t,10),options:E.intOptions,stringify:E.stringifyNumber},ei={identify:t=>Ht(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(t,e)=>Gn(t,e,16),options:E.intOptions,stringify:t=>Gs(t,16,"0x")},ti={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(t,e)=>e?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:E.stringifyNumber},ni={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t),stringify:({value:t})=>Number(t).toExponential()},ri={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(t,e,n){let r=e||n,s=new E.Scalar(parseFloat(t));return r&&r[r.length-1]==="0"&&(s.minFractionDigits=r.length),s},stringify:E.stringifyNumber},da=Jn.concat([Hs,Xs,zs,Zs,ei,ti,ni,ri]),Qs=t=>typeof t=="bigint"||Number.isInteger(t),jt=({value:t})=>JSON.stringify(t),si=[gt,Gt,{identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:E.resolveString,stringify:jt},{identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:jt},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:t=>t==="true",stringify:jt},{identify:Qs,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:t=>E.intOptions.asBigInt?BigInt(t):parseInt(t,10),stringify:({value:t})=>Qs(t)?t.toString():JSON.stringify(t)},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:t=>parseFloat(t),stringify:jt}];si.scalarFallback=t=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(t)}`)};var Js=({value:t})=>t?E.boolOptions.trueStr:E.boolOptions.falseStr,ht=t=>typeof t=="bigint"||Number.isInteger(t);function Qt(t,e,n){let r=e.replace(/_/g,"");if(E.intOptions.asBigInt){switch(n){case 2:r=`0b${r}`;break;case 8:r=`0o${r}`;break;case 16:r=`0x${r}`;break}let i=BigInt(r);return t==="-"?BigInt(-1)*i:i}let s=parseInt(r,n);return t==="-"?-1*s:s}function Qn(t,e,n){let{value:r}=t;if(ht(r)){let s=r.toString(e);return r<0?"-"+n+s.substr(1):n+s}return E.stringifyNumber(t)}var ya=Jn.concat([{identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:E.nullOptions,stringify:()=>E.nullOptions.nullStr},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:E.boolOptions,stringify:Js},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:E.boolOptions,stringify:Js},{identify:ht,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(t,e,n)=>Qt(e,n,2),stringify:t=>Qn(t,2,"0b")},{identify:ht,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(t,e,n)=>Qt(e,n,8),stringify:t=>Qn(t,8,"0")},{identify:ht,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(t,e,n)=>Qt(e,n,10),stringify:E.stringifyNumber},{identify:ht,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(t,e,n)=>Qt(e,n,16),stringify:t=>Qn(t,16,"0x")},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(t,e)=>e?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:E.stringifyNumber},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t.replace(/_/g,"")),stringify:({value:t})=>Number(t).toExponential()},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(t,e){let n=new E.Scalar(parseFloat(t.replace(/_/g,"")));if(e){let r=e.replace(/_/g,"");r[r.length-1]==="0"&&(n.minFractionDigits=r.length)}return n},stringify:E.stringifyNumber}],D.binary,D.omap,D.pairs,D.set,D.intTime,D.floatTime,D.timestamp),Ea={core:da,failsafe:Jn,json:si,yaml11:ya},Sa={binary:D.binary,bool:Xs,float:ri,floatExp:ni,floatNaN:ti,floatTime:D.floatTime,int:Zs,intHex:ei,intOct:zs,intTime:D.intTime,map:gt,null:Hs,omap:D.omap,pairs:D.pairs,seq:Gt,set:D.set,timestamp:D.timestamp};function wa(t,e,n){if(e){let r=n.filter(i=>i.tag===e),s=r.find(i=>!i.format)||r[0];if(!s)throw new Error(`Tag ${e} not found`);return s}return n.find(r=>(r.identify&&r.identify(t)||r.class&&t instanceof r.class)&&!r.format)}function ba(t,e,n){if(t instanceof E.Node)return t;let{defaultPrefix:r,onTagObj:s,prevObjects:i,schema:o,wrapScalars:a}=n;e&&e.startsWith("!!")&&(e=r+e.slice(2));let c=wa(t,e,o.tags);if(!c){if(typeof t.toJSON=="function"&&(t=t.toJSON()),!t||typeof t!="object")return a?new E.Scalar(t):t;c=t instanceof Map?gt:t[Symbol.iterator]?Gt:gt}s&&(s(c),delete n.onTagObj);let l={value:void 0,node:void 0};if(t&&typeof t=="object"&&i){let f=i.get(t);if(f){let m=new E.Alias(f);return n.aliasNodes.push(m),m}l.value=t,i.set(t,l)}return l.node=c.createNode?c.createNode(n.schema,t,n):a?new E.Scalar(t):t,e&&l.node instanceof E.Node&&(l.node.tag=e),l.node}function Na(t,e,n,r){let s=t[r.replace(/\W/g,"")];if(!s){let i=Object.keys(t).map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${r}"; use one of ${i}`)}if(Array.isArray(n))for(let i of n)s=s.concat(i);else typeof n=="function"&&(s=n(s.slice()));for(let i=0;iJSON.stringify(l)).join(", ");throw new Error(`Unknown custom tag "${o}"; use one of ${c}`)}s[i]=a}}return s}var Oa=(t,e)=>t.keye.key?1:0,dt=class t{constructor({customTags:e,merge:n,schema:r,sortMapEntries:s,tags:i}){this.merge=!!n,this.name=r,this.sortMapEntries=s===!0?Oa:s||null,!e&&i&&D.warnOptionDeprecation("tags","customTags"),this.tags=Na(Ea,Sa,e||i,r)}createNode(e,n,r,s){let i={defaultPrefix:t.defaultPrefix,schema:this,wrapScalars:n},o=s?Object.assign(s,i):i;return ba(e,r,o)}createPair(e,n,r){r||(r={wrapScalars:!0});let s=this.createNode(e,r.wrapScalars,null,r),i=this.createNode(n,r.wrapScalars,null,r);return new E.Pair(s,i)}};Jt._defineProperty(dt,"defaultPrefix",Jt.defaultTagPrefix);Jt._defineProperty(dt,"defaultTags",Jt.defaultTags);ii.Schema=dt});var li=ee(en=>{"use strict";var Y=le(),S=$e(),oi=Hn(),La={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},Aa={get binary(){return S.binaryOptions},set binary(t){Object.assign(S.binaryOptions,t)},get bool(){return S.boolOptions},set bool(t){Object.assign(S.boolOptions,t)},get int(){return S.intOptions},set int(t){Object.assign(S.intOptions,t)},get null(){return S.nullOptions},set null(t){Object.assign(S.nullOptions,t)},get str(){return S.strOptions},set str(t){Object.assign(S.strOptions,t)}},ci={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:Y.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Y.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Y.defaultTagPrefix}]}};function ai(t,e){if((t.version||t.options.version)==="1.0"){let s=e.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(s)return"!"+s[1];let i=e.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return i?`!${i[1]}/${i[2]}`:`!${e.replace(/^tag:/,"")}`}let n=t.tagPrefixes.find(s=>e.indexOf(s.prefix)===0);if(!n){let s=t.getDefaults().tagPrefixes;n=s&&s.find(i=>e.indexOf(i.prefix)===0)}if(!n)return e[0]==="!"?e:`!<${e}>`;let r=e.substr(n.prefix.length).replace(/[!,[\]{}]/g,s=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[s]);return n.handle+r}function Ta(t,e){if(e instanceof S.Alias)return S.Alias;if(e.tag){let s=t.filter(i=>i.tag===e.tag);if(s.length>0)return s.find(i=>i.format===e.format)||s[0]}let n,r;if(e instanceof S.Scalar){r=e.value;let s=t.filter(i=>i.identify&&i.identify(r)||i.class&&r instanceof i.class);n=s.find(i=>i.format===e.format)||s.find(i=>!i.format)}else r=e,n=t.find(s=>s.nodeClass&&r instanceof s.nodeClass);if(!n){let s=r&&r.constructor?r.constructor.name:typeof r;throw new Error(`Tag not resolved for ${s} value`)}return n}function Ca(t,e,{anchors:n,doc:r}){let s=[],i=r.anchors.getName(t);return i&&(n[i]=t,s.push(`&${i}`)),t.tag?s.push(ai(r,t.tag)):e.default||s.push(ai(r,e.tag)),s.join(" ")}function Xt(t,e,n,r){let{anchors:s,schema:i}=e.doc,o;if(!(t instanceof S.Node)){let l={aliasNodes:[],onTagObj:f=>o=f,prevObjects:new Map};t=i.createNode(t,!0,null,l);for(let f of l.aliasNodes){f.source=f.source.node;let m=s.getName(f.source);m||(m=s.newName(),s.map[m]=f.source)}}if(t instanceof S.Pair)return t.toString(e,n,r);o||(o=Ta(i.tags,t));let a=Ca(t,o,e);a.length>0&&(e.indentAtStart=(e.indentAtStart||0)+a.length+1);let c=typeof o.stringify=="function"?o.stringify(t,e,n,r):t instanceof S.Scalar?S.stringifyString(t,e,n,r):t.toString(e,n,r);return a?t instanceof S.Scalar||c[0]==="{"||c[0]==="["?`${a} ${c}`:`${a} +${e.indent}${c}`:c}var Xn=class t{static validAnchorNode(e){return e instanceof S.Scalar||e instanceof S.YAMLSeq||e instanceof S.YAMLMap}constructor(e){Y._defineProperty(this,"map",Object.create(null)),this.prefix=e}createAlias(e,n){return this.setAnchor(e,n),new S.Alias(e)}createMergePair(...e){let n=new S.Merge;return n.value.items=e.map(r=>{if(r instanceof S.Alias){if(r.source instanceof S.YAMLMap)return r}else if(r instanceof S.YAMLMap)return this.createAlias(r);throw new Error("Merge sources must be Map nodes or their Aliases")}),n}getName(e){let{map:n}=this;return Object.keys(n).find(r=>n[r]===e)}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){e||(e=this.prefix);let n=Object.keys(this.map);for(let r=1;;++r){let s=`${e}${r}`;if(!n.includes(s))return s}}resolveNodes(){let{map:e,_cstAliases:n}=this;Object.keys(e).forEach(r=>{e[r]=e[r].resolved}),n.forEach(r=>{r.source=r.source.resolved}),delete this._cstAliases}setAnchor(e,n){if(e!=null&&!t.validAnchorNode(e))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(n&&/[\x00-\x19\s,[\]{}]/.test(n))throw new Error("Anchor names must not contain whitespace or control characters");let{map:r}=this,s=e&&Object.keys(r).find(i=>r[i]===e);if(s)if(n)s!==n&&(delete r[s],r[n]=e);else return s;else{if(!n){if(!e)return null;n=this.newName()}r[n]=e}return n}},zt=(t,e)=>{if(t&&typeof t=="object"){let{tag:n}=t;t instanceof S.Collection?(n&&(e[n]=!0),t.items.forEach(r=>zt(r,e))):t instanceof S.Pair?(zt(t.key,e),zt(t.value,e)):t instanceof S.Scalar&&n&&(e[n]=!0)}return e},Ma=t=>Object.keys(zt(t,{}));function ka(t,e){let n={before:[],after:[]},r,s=!1;for(let i of e)if(i.valueRange){if(r!==void 0){let a="Document contains trailing content not separated by a ... or --- line";t.errors.push(new Y.YAMLSyntaxError(i,a));break}let o=S.resolveNode(t,i);s&&(o.spaceBefore=!0,s=!1),r=o}else i.comment!==null?(r===void 0?n.before:n.after).push(i.comment):i.type===Y.Type.BLANK_LINE&&(s=!0,r===void 0&&n.before.length>0&&!t.commentBefore&&(t.commentBefore=n.before.join(` `),n.before=[]));if(t.contents=r||null,!r)t.comment=n.before.concat(n.after).join(` `)||null;else{let i=n.before.join(` `);if(i){let o=r instanceof S.Collection&&r.items[0]?r.items[0]:r;o.commentBefore=o.commentBefore?`${i} ${o.commentBefore}`:i}t.comment=n.after.join(` `)||null}}function va({tagPrefixes:t},e){let[n,r]=e.parameters;if(!n||!r){let s="Insufficient parameters given for %TAG directive";throw new Y.YAMLSemanticError(e,s)}if(t.some(s=>s.handle===n)){let s="The %TAG directive must only be given at most once per handle in the same document.";throw new Y.YAMLSemanticError(e,s)}return{handle:n,prefix:r}}function Ia(t,e){let[n]=e.parameters;if(e.name==="YAML:1.0"&&(n="1.0"),!n){let r="Insufficient parameters given for %YAML directive";throw new Y.YAMLSemanticError(e,r)}if(!ci[n]){let s=`Document will be parsed as YAML ${t.version||t.options.version} rather than YAML ${n}`;t.warnings.push(new Y.YAMLWarning(e,s))}return n}function Pa(t,e,n){let r=[],s=!1;for(let i of e){let{comment:o,name:a}=i;switch(a){case"TAG":try{t.tagPrefixes.push(va(t,i))}catch(c){t.errors.push(c)}s=!0;break;case"YAML":case"YAML:1.0":if(t.version){let c="The %YAML directive must only be given at most once per document.";t.errors.push(new Y.YAMLSemanticError(i,c))}try{t.version=Ia(t,i)}catch(c){t.errors.push(c)}s=!0;break;default:if(a){let c=`YAML only supports %TAG and %YAML directives, and not %${a}`;t.warnings.push(new Y.YAMLWarning(i,c))}}o&&r.push(o)}if(n&&!s&&(t.version||n.version||t.options.version)==="1.1"){let i=({handle:o,prefix:a})=>({handle:o,prefix:a});t.tagPrefixes=n.tagPrefixes.map(i),t.version=n.version}t.commentBefore=r.join(` -`)||null}function Ue(t){if(t instanceof S.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}var Zt=class t{constructor(e){this.anchors=new zn(e.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=e,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(e){return Ue(this.contents),this.contents.add(e)}addIn(e,n){Ue(this.contents),this.contents.addIn(e,n)}delete(e){return Ue(this.contents),this.contents.delete(e)}deleteIn(e){return S.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):(Ue(this.contents),this.contents.deleteIn(e))}getDefaults(){return t.defaults[this.version]||t.defaults[this.options.version]||{}}get(e,n){return this.contents instanceof S.Collection?this.contents.get(e,n):void 0}getIn(e,n){return S.isEmptyPath(e)?!n&&this.contents instanceof S.Scalar?this.contents.value:this.contents:this.contents instanceof S.Collection?this.contents.getIn(e,n):void 0}has(e){return this.contents instanceof S.Collection?this.contents.has(e):!1}hasIn(e){return S.isEmptyPath(e)?this.contents!==void 0:this.contents instanceof S.Collection?this.contents.hasIn(e):!1}set(e,n){Ue(this.contents),this.contents.set(e,n)}setIn(e,n){S.isEmptyPath(e)?this.contents=n:(Ue(this.contents),this.contents.setIn(e,n))}setSchema(e,n){if(!e&&!n&&this.schema)return;typeof e=="number"&&(e=e.toFixed(1)),e==="1.0"||e==="1.1"||e==="1.2"?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&typeof e=="string"&&(this.options.schema=e),Array.isArray(n)&&(this.options.customTags=n);let r=Object.assign({},this.getDefaults(),this.options);this.schema=new oi.Schema(r)}parse(e,n){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");let{directives:r=[],contents:s=[],directivesEndMarker:i,error:o,valueRange:a}=e;if(o&&(o.source||(o.source=this),this.errors.push(o)),Pa(this,r,n),i&&(this.directivesEndMarker=!0),this.range=a?[a.start,a.end]:null,this.setSchema(),this.anchors._cstAliases=[],ka(this,s),this.anchors.resolveNodes(),this.options.prettyErrors){for(let c of this.errors)c instanceof Y.YAMLError&&c.makePretty();for(let c of this.warnings)c instanceof Y.YAMLError&&c.makePretty()}return this}listNonDefaultTags(){return Ma(this.contents).filter(e=>e.indexOf(oi.Schema.defaultPrefix)!==0)}setTagPrefix(e,n){if(e[0]!=="!"||e[e.length-1]!=="!")throw new Error("Handle must start and end with !");if(n){let r=this.tagPrefixes.find(s=>s.handle===e);r?r.prefix=n:this.tagPrefixes.push({handle:e,prefix:n})}else this.tagPrefixes=this.tagPrefixes.filter(r=>r.handle!==e)}toJSON(e,n){let{keepBlobsInJSON:r,mapAsMap:s,maxAliasCount:i}=this.options,o=r&&(typeof e!="string"||!(this.contents instanceof S.Scalar)),a={doc:this,indentStep:" ",keep:o,mapAsMap:o&&!!s,maxAliasCount:i,stringify:Xt},c=Object.keys(this.anchors.map);c.length>0&&(a.anchors=new Map(c.map(f=>[this.anchors.map[f],{alias:[],aliasCount:0,count:1}])));let l=S.toJSON(this.contents,e,a);if(typeof n=="function"&&a.anchors)for(let{count:f,res:m}of a.anchors.values())n(m,f);return l}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");let e=this.options.indent;if(!Number.isInteger(e)||e<=0){let c=JSON.stringify(e);throw new Error(`"indent" option must be a positive integer, not ${c}`)}this.setSchema();let n=[],r=!1;if(this.version){let c="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?c="%YAML:1.0":this.version==="1.1"&&(c="%YAML 1.1")),n.push(c),r=!0}let s=this.listNonDefaultTags();this.tagPrefixes.forEach(({handle:c,prefix:l})=>{s.some(f=>f.indexOf(l)===0)&&(n.push(`%TAG ${c} ${l}`),r=!0)}),(r||this.directivesEndMarker)&&n.push("---"),this.commentBefore&&((r||!this.directivesEndMarker)&&n.unshift(""),n.unshift(this.commentBefore.replace(/^/gm,"#")));let i={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:Xt},o=!1,a=null;if(this.contents){this.contents instanceof S.Node&&(this.contents.spaceBefore&&(r||this.directivesEndMarker)&&n.push(""),this.contents.commentBefore&&n.push(this.contents.commentBefore.replace(/^/gm,"#")),i.forceBlockIndent=!!this.comment,a=this.contents.comment);let c=a?null:()=>o=!0,l=Xt(this.contents,i,()=>a=null,c);n.push(S.addComment(l,"",a))}else this.contents!==void 0&&n.push(Xt(this.contents,i));return this.comment&&((!o||a)&&n[n.length-1]!==""&&n.push(""),n.push(this.comment.replace(/^/gm,"#"))),n.join(` +`)||null}function Ue(t){if(t instanceof S.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}var Zt=class t{constructor(e){this.anchors=new Xn(e.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=e,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(e){return Ue(this.contents),this.contents.add(e)}addIn(e,n){Ue(this.contents),this.contents.addIn(e,n)}delete(e){return Ue(this.contents),this.contents.delete(e)}deleteIn(e){return S.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):(Ue(this.contents),this.contents.deleteIn(e))}getDefaults(){return t.defaults[this.version]||t.defaults[this.options.version]||{}}get(e,n){return this.contents instanceof S.Collection?this.contents.get(e,n):void 0}getIn(e,n){return S.isEmptyPath(e)?!n&&this.contents instanceof S.Scalar?this.contents.value:this.contents:this.contents instanceof S.Collection?this.contents.getIn(e,n):void 0}has(e){return this.contents instanceof S.Collection?this.contents.has(e):!1}hasIn(e){return S.isEmptyPath(e)?this.contents!==void 0:this.contents instanceof S.Collection?this.contents.hasIn(e):!1}set(e,n){Ue(this.contents),this.contents.set(e,n)}setIn(e,n){S.isEmptyPath(e)?this.contents=n:(Ue(this.contents),this.contents.setIn(e,n))}setSchema(e,n){if(!e&&!n&&this.schema)return;typeof e=="number"&&(e=e.toFixed(1)),e==="1.0"||e==="1.1"||e==="1.2"?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&typeof e=="string"&&(this.options.schema=e),Array.isArray(n)&&(this.options.customTags=n);let r=Object.assign({},this.getDefaults(),this.options);this.schema=new oi.Schema(r)}parse(e,n){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");let{directives:r=[],contents:s=[],directivesEndMarker:i,error:o,valueRange:a}=e;if(o&&(o.source||(o.source=this),this.errors.push(o)),Pa(this,r,n),i&&(this.directivesEndMarker=!0),this.range=a?[a.start,a.end]:null,this.setSchema(),this.anchors._cstAliases=[],ka(this,s),this.anchors.resolveNodes(),this.options.prettyErrors){for(let c of this.errors)c instanceof Y.YAMLError&&c.makePretty();for(let c of this.warnings)c instanceof Y.YAMLError&&c.makePretty()}return this}listNonDefaultTags(){return Ma(this.contents).filter(e=>e.indexOf(oi.Schema.defaultPrefix)!==0)}setTagPrefix(e,n){if(e[0]!=="!"||e[e.length-1]!=="!")throw new Error("Handle must start and end with !");if(n){let r=this.tagPrefixes.find(s=>s.handle===e);r?r.prefix=n:this.tagPrefixes.push({handle:e,prefix:n})}else this.tagPrefixes=this.tagPrefixes.filter(r=>r.handle!==e)}toJSON(e,n){let{keepBlobsInJSON:r,mapAsMap:s,maxAliasCount:i}=this.options,o=r&&(typeof e!="string"||!(this.contents instanceof S.Scalar)),a={doc:this,indentStep:" ",keep:o,mapAsMap:o&&!!s,maxAliasCount:i,stringify:Xt},c=Object.keys(this.anchors.map);c.length>0&&(a.anchors=new Map(c.map(f=>[this.anchors.map[f],{alias:[],aliasCount:0,count:1}])));let l=S.toJSON(this.contents,e,a);if(typeof n=="function"&&a.anchors)for(let{count:f,res:m}of a.anchors.values())n(m,f);return l}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");let e=this.options.indent;if(!Number.isInteger(e)||e<=0){let c=JSON.stringify(e);throw new Error(`"indent" option must be a positive integer, not ${c}`)}this.setSchema();let n=[],r=!1;if(this.version){let c="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?c="%YAML:1.0":this.version==="1.1"&&(c="%YAML 1.1")),n.push(c),r=!0}let s=this.listNonDefaultTags();this.tagPrefixes.forEach(({handle:c,prefix:l})=>{s.some(f=>f.indexOf(l)===0)&&(n.push(`%TAG ${c} ${l}`),r=!0)}),(r||this.directivesEndMarker)&&n.push("---"),this.commentBefore&&((r||!this.directivesEndMarker)&&n.unshift(""),n.unshift(this.commentBefore.replace(/^/gm,"#")));let i={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:Xt},o=!1,a=null;if(this.contents){this.contents instanceof S.Node&&(this.contents.spaceBefore&&(r||this.directivesEndMarker)&&n.push(""),this.contents.commentBefore&&n.push(this.contents.commentBefore.replace(/^/gm,"#")),i.forceBlockIndent=!!this.comment,a=this.contents.comment);let c=a?null:()=>o=!0,l=Xt(this.contents,i,()=>a=null,c);n.push(S.addComment(l,"",a))}else this.contents!==void 0&&n.push(Xt(this.contents,i));return this.comment&&((!o||a)&&n[n.length-1]!==""&&n.push(""),n.push(this.comment.replace(/^/gm,"#"))),n.join(` `)+` -`}};Y._defineProperty(Zt,"defaults",ci);en.Document=Zt;en.defaultOptions=La;en.scalarOptions=Aa});var pi=ee(ui=>{"use strict";var Zn=Is(),Ne=li(),_a=Xn(),xa=le(),Ra=Qn();$e();function Da(t,e=!0,n){n===void 0&&typeof e=="string"&&(n=e,e=!0);let r=Object.assign({},Ne.Document.defaults[Ne.defaultOptions.version],Ne.defaultOptions);return new _a.Schema(r).createNode(t,e,n)}var Ke=class extends Ne.Document{constructor(e){super(Object.assign({},Ne.defaultOptions,e))}};function Ya(t,e){let n=[],r;for(let s of Zn.parse(t)){let i=new Ke(e);i.parse(s,r),n.push(i),r=i}return n}function fi(t,e){let n=Zn.parse(t),r=new Ke(e).parse(n[0]);if(n.length>1){let s="Source contains multiple documents; please use YAML.parseAllDocuments()";r.errors.unshift(new xa.YAMLSemanticError(n[1],s))}return r}function Ba(t,e){let n=fi(t,e);if(n.warnings.forEach(r=>Ra.warn(r)),n.errors.length>0)throw n.errors[0];return n.toJSON()}function $a(t,e){let n=new Ke(e);return n.contents=t,String(n)}var Fa={createNode:Da,defaultOptions:Ne.defaultOptions,Document:Ke,parse:Ba,parseAllDocuments:Ya,parseCST:Zn.parse,parseDocument:fi,scalarOptions:Ne.scalarOptions,stringify:$a};ui.YAML=Fa});var hi=ee((Im,mi)=>{mi.exports=pi().YAML});var gi=ee(Q=>{"use strict";var Ve=$e(),We=le();Q.findPair=Ve.findPair;Q.parseMap=Ve.resolveMap;Q.parseSeq=Ve.resolveSeq;Q.stringifyNumber=Ve.stringifyNumber;Q.stringifyString=Ve.stringifyString;Q.toJSON=Ve.toJSON;Q.Type=We.Type;Q.YAMLError=We.YAMLError;Q.YAMLReferenceError=We.YAMLReferenceError;Q.YAMLSemanticError=We.YAMLSemanticError;Q.YAMLSyntaxError=We.YAMLSyntaxError;Q.YAMLWarning=We.YAMLWarning});var tr={};nr(tr,{languages:()=>bi,options:()=>Ni,parsers:()=>tn,printers:()=>Ja});var vi=(t,e,n,r)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(n,r):n.global?e.replace(n,r):e.split(n).join(r)},yt=vi;var je="string",Qe="array",Je="cursor",Ge="indent",Oe="align",He="trim",Le="group",Ae="fill",Te="if-break",Xe="indent-if-break",Ce="line-suffix",ze="line-suffix-boundary",te="line",Ze="label",Me="break-parent",Et=new Set([Je,Ge,Oe,He,Le,Ae,Te,Xe,Ce,ze,te,Ze,Me]);function Ii(t){if(typeof t=="string")return je;if(Array.isArray(t))return Qe;if(!t)return;let{type:e}=t;if(Et.has(e))return e}var et=Ii;var Pi=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function _i(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', +`}};Y._defineProperty(Zt,"defaults",ci);en.Document=Zt;en.defaultOptions=La;en.scalarOptions=Aa});var pi=ee(ui=>{"use strict";var zn=Is(),Ne=li(),_a=Hn(),xa=le(),Ra=jn();$e();function Da(t,e=!0,n){n===void 0&&typeof e=="string"&&(n=e,e=!0);let r=Object.assign({},Ne.Document.defaults[Ne.defaultOptions.version],Ne.defaultOptions);return new _a.Schema(r).createNode(t,e,n)}var Ke=class extends Ne.Document{constructor(e){super(Object.assign({},Ne.defaultOptions,e))}};function Ya(t,e){let n=[],r;for(let s of zn.parse(t)){let i=new Ke(e);i.parse(s,r),n.push(i),r=i}return n}function fi(t,e){let n=zn.parse(t),r=new Ke(e).parse(n[0]);if(n.length>1){let s="Source contains multiple documents; please use YAML.parseAllDocuments()";r.errors.unshift(new xa.YAMLSemanticError(n[1],s))}return r}function Ba(t,e){let n=fi(t,e);if(n.warnings.forEach(r=>Ra.warn(r)),n.errors.length>0)throw n.errors[0];return n.toJSON()}function $a(t,e){let n=new Ke(e);return n.contents=t,String(n)}var Fa={createNode:Da,defaultOptions:Ne.defaultOptions,Document:Ke,parse:Ba,parseAllDocuments:Ya,parseCST:zn.parse,parseDocument:fi,scalarOptions:Ne.scalarOptions,stringify:$a};ui.YAML=Fa});var hi=ee((Im,mi)=>{mi.exports=pi().YAML});var gi=ee(Q=>{"use strict";var Ve=$e(),We=le();Q.findPair=Ve.findPair;Q.parseMap=Ve.resolveMap;Q.parseSeq=Ve.resolveSeq;Q.stringifyNumber=Ve.stringifyNumber;Q.stringifyString=Ve.stringifyString;Q.toJSON=Ve.toJSON;Q.Type=We.Type;Q.YAMLError=We.YAMLError;Q.YAMLReferenceError=We.YAMLReferenceError;Q.YAMLSemanticError=We.YAMLSemanticError;Q.YAMLSyntaxError=We.YAMLSyntaxError;Q.YAMLWarning=We.YAMLWarning});var tr={};nr(tr,{languages:()=>bi,options:()=>Ni,parsers:()=>er,printers:()=>Ja});var vi=(t,e,n,r)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(n,r):n.global?e.replace(n,r):e.split(n).join(r)},yt=vi;var je="string",Qe="array",Je="cursor",Ge="indent",Oe="align",He="trim",Le="group",Ae="fill",Te="if-break",Xe="indent-if-break",Ce="line-suffix",ze="line-suffix-boundary",te="line",Ze="label",Me="break-parent",Et=new Set([Je,Ge,Oe,He,Le,Ae,Te,Xe,Ce,ze,te,Ze,Me]);function Ii(t){if(typeof t=="string")return je;if(Array.isArray(t))return Qe;if(!t)return;let{type:e}=t;if(Et.has(e))return e}var et=Ii;var Pi=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function _i(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', Expected it to be 'string' or 'object'.`;if(et(t))throw new Error("doc is valid.");let n=Object.prototype.toString.call(t);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let r=Pi([...Et].map(s=>`'${s}'`));return`Unexpected doc.type '${t.type}'. -Expected it to be ${r}.`}var sn=class extends Error{name="InvalidDocError";constructor(e){super(_i(e)),this.doc=e}},on=sn;var sr=()=>{},he=sr,St=sr;function tt(t,e){return he(e),{type:Oe,contents:e,n:t}}function ke(t,e={}){return he(t),St(e.expandedStates,!0),{type:Le,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function an(t){return tt(Number.NEGATIVE_INFINITY,t)}function ir(t){return tt({type:"root"},t)}function or(t){return tt(-1,t)}function cn(t,e){return ke(t[0],{...e,expandedStates:t})}function wt(t){return St(t),{type:Ae,parts:t}}function nt(t,e="",n={}){return he(t),e!==""&&he(e),{type:Te,breakContents:t,flatContents:e,groupId:n.groupId}}function ar(t){return he(t),{type:Ce,contents:t}}var bt={type:Me};var xi={type:te,hard:!0},Ri={type:te,hard:!0,literal:!0},ne={type:te},Nt={type:te,soft:!0},N=[xi,bt],rt=[Ri,bt];function v(t,e){he(t),St(e);let n=[];for(let r=0;r{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[n<0?e.length+n:n]:e.at(n)},x=Di;function Yi(t,e){if(typeof t=="string")return e(t);let n=new Map;return r(t);function r(i){if(n.has(i))return n.get(i);let o=s(i);return n.set(i,o),o}function s(i){switch(et(i)){case Qe:return e(i.map(r));case Ae:return e({...i,parts:i.parts.map(r)});case Te:return e({...i,breakContents:r(i.breakContents),flatContents:r(i.flatContents)});case Le:{let{expandedStates:o,contents:a}=i;return o?(o=o.map(r),a=o[0]):a=r(a),e({...i,contents:a,expandedStates:o})}case Oe:case Ge:case Xe:case Ze:case Ce:return e({...i,contents:r(i.contents)});case je:case Je:case He:case ze:case te:case Me:return e(i);default:throw new on(i)}}}function cr(t,e=rt){return Yi(t,n=>typeof n=="string"?v(e,n.split(` +Expected it to be ${r}.`}var rn=class extends Error{name="InvalidDocError";constructor(e){super(_i(e)),this.doc=e}},sn=rn;var sr=()=>{},he=sr,St=sr;function tt(t,e){return he(e),{type:Oe,contents:e,n:t}}function ke(t,e={}){return he(t),St(e.expandedStates,!0),{type:Le,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function on(t){return tt(Number.NEGATIVE_INFINITY,t)}function ir(t){return tt({type:"root"},t)}function or(t){return tt(-1,t)}function an(t,e){return ke(t[0],{...e,expandedStates:t})}function wt(t){return St(t),{type:Ae,parts:t}}function nt(t,e="",n={}){return he(t),e!==""&&he(e),{type:Te,breakContents:t,flatContents:e,groupId:n.groupId}}function ar(t){return he(t),{type:Ce,contents:t}}var bt={type:Me};var xi={type:te,hard:!0},Ri={type:te,hard:!0,literal:!0},ne={type:te},Nt={type:te,soft:!0},N=[xi,bt],rt=[Ri,bt];function v(t,e){he(t),St(e);let n=[];for(let r=0;r{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[n<0?e.length+n:n]:e.at(n)},x=Di;function Yi(t,e){if(typeof t=="string")return e(t);let n=new Map;return r(t);function r(i){if(n.has(i))return n.get(i);let o=s(i);return n.set(i,o),o}function s(i){switch(et(i)){case Qe:return e(i.map(r));case Ae:return e({...i,parts:i.parts.map(r)});case Te:return e({...i,breakContents:r(i.breakContents),flatContents:r(i.flatContents)});case Le:{let{expandedStates:o,contents:a}=i;return o?(o=o.map(r),a=o[0]):a=r(a),e({...i,contents:a,expandedStates:o})}case Oe:case Ge:case Xe:case Ze:case Ce:return e({...i,contents:r(i.contents)});case je:case Je:case He:case ze:case te:case Me:return e(i);default:throw new sn(i)}}}function cr(t,e=rt){return Yi(t,n=>typeof n=="string"?v(e,n.split(` `)):n)}function Bi(t,e,n){let r=!!(n!=null&&n.backwards);if(e===!1)return!1;let s=t.charAt(e);if(r){if(t.charAt(e-1)==="\r"&&s===` `)return e-2;if(s===` `||s==="\r"||s==="\u2028"||s==="\u2029")return e-1}else{if(s==="\r"&&t.charAt(e+1)===` `)return e+2;if(s===` -`||s==="\r"||s==="\u2028"||s==="\u2029")return e+1}return e}var ln=Bi;function Ot(t){return(e,n,r)=>{let s=!!(r!=null&&r.backwards);if(n===!1)return!1;let{length:i}=e,o=n;for(;o>=0&&o{let s=!!(r!=null&&r.backwards);if(n===!1)return!1;let{length:i}=e,o=n;for(;o>=0&&o{let s=await r(e.originalText,{parser:"json"});return s?[s,N]:void 0}}gr.getVisitorKeys=()=>[];var dr=gr;function Fi(t){return Array.isArray(t)&&t.length>0}var Ie=Fi;function G(t,e){return typeof(t==null?void 0:t.type)=="string"&&(!e||e.includes(t.type))}function pn(t,e,n){return e("children"in t?{...t,children:t.children.map(r=>pn(r,e,t))}:t,n)}function Pe(t,e,n){Object.defineProperty(t,e,{get:n,enumerable:!1})}function Er(t,e){let n=0,r=e.length;for(let s=t.position.end.offset-1;s{let s=await r(e.originalText,{parser:"json"});return s?[s,N]:void 0}}gr.getVisitorKeys=()=>[];var dr=gr;function Fi(t){return Array.isArray(t)&&t.length>0}var Ie=Fi;function G(t,e){return typeof(t==null?void 0:t.type)=="string"&&(!e||e.includes(t.type))}function un(t,e,n){return e("children"in t?{...t,children:t.children.map(r=>un(r,e,t))}:t,n)}function Pe(t,e,n){Object.defineProperty(t,e,{get:n,enumerable:!1})}function Er(t,e){let n=0,r=e.length;for(let s=t.position.end.offset-1;si===0&&i===o.length-1?s:i!==0&&i!==o.length-1?s.trim():i===0?s.trimEnd():s.trimStart());return n.proseWrap==="preserve"?r.map(s=>s.length===0?[]:[s]):r.map(s=>s.length===0?[]:wr(s)).reduce((s,i,o)=>o!==0&&r[o-1].length>0&&i.length>0&&!(t==="quoteDouble"&&x(!1,x(!1,s,-1),-1).endsWith("\\"))?[...s.slice(0,-1),[...x(!1,s,-1),...i]]:[...s,i],[]).map(s=>n.proseWrap==="never"?[s.join(" ")]:s)}function Nr(t,{parentIndent:e,isLastDescendant:n,options:r}){let s=t.position.start.line===t.position.end.line?"":r.originalText.slice(t.position.start.offset,t.position.end.offset).match(/^[^\n]*\n(.*)$/s)[1],i;if(t.indent===null){let c=s.match(/^(? *)[^\n\r ]/m);i=c?c.groups.leadingSpace.length:Number.POSITIVE_INFINITY}else i=t.indent-1+e;let o=s.split(` -`).map(c=>c.slice(i));if(r.proseWrap==="preserve"||t.type==="blockLiteral")return a(o.map(c=>c.length===0?[]:[c]));return a(o.map(c=>c.length===0?[]:wr(c)).reduce((c,l,f)=>f!==0&&o[f-1].length>0&&l.length>0&&!/^\s/.test(l[0])&&!/^\s|\s$/.test(x(!1,c,-1))?[...c.slice(0,-1),[...x(!1,c,-1),...l]]:[...c,l],[]).map(c=>c.reduce((l,f)=>l.length>0&&/\s$/.test(x(!1,l,-1))?[...l.slice(0,-1),x(!1,l,-1)+" "+f]:[...l,f],[])).map(c=>r.proseWrap==="never"?[c.join(" ")]:c));function a(c){if(t.chomping==="keep")return x(!1,c,-1).length===0?c.slice(0,-1):c;let l=0;for(let f=c.length-1;f>=0&&c[f].length===0;f--)l++;return l===0?c:l>=2&&!n?c.slice(0,-(l-1)):c.slice(0,-l)}}function st(t){if(!t)return!0;switch(t.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}var it=null;function ot(t){if(it!==null&&typeof it.property){let e=it;return it=ot.prototype=null,e}return it=ot.prototype=t??Object.create(null),new ot}var Ui=10;for(let t=0;t<=Ui;t++)ot();function hn(t){return ot(t)}function Ki(t,e="type"){hn(t);function n(r){let s=r[e],i=t[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:r});return i}return n}var Or=Ki;var Vi=Object.fromEntries(Object.entries({root:["children"],document:["head","body","children"],documentHead:["children"],documentBody:["children"],directive:[],alias:[],blockLiteral:[],blockFolded:["children"],plain:["children"],quoteSingle:[],quoteDouble:[],mapping:["children"],mappingItem:["key","value","children"],mappingKey:["content","children"],mappingValue:["content","children"],sequence:["children"],sequenceItem:["content","children"],flowMapping:["children"],flowMappingItem:["key","value","children"],flowSequence:["children"],flowSequenceItem:["content","children"],comment:[],tag:[],anchor:[]}).map(([t,e])=>[t,[...e,"anchor","tag","indicatorComment","leadingComments","middleComments","trailingComment","endComments"]])),Lr=Vi;var Wi=Or(Lr),Ar=Wi;function ji(t){return pn(t,Qi)}function Qi(t){switch(t.type){case"document":Pe(t,"head",()=>t.children[0]),Pe(t,"body",()=>t.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":Pe(t,"content",()=>t.children[0]);break;case"mappingItem":case"flowMappingItem":Pe(t,"key",()=>t.children[0]),Pe(t,"value",()=>t.children[1]);break}return t}var Tr=ji;var gn=new WeakMap;function Tt(t,e){let{node:n,root:r}=t,s;return gn.has(r)?s=gn.get(r):(s=new Set,gn.set(r,s)),!s.has(n.position.end.line)&&(s.add(n.position.end.line),Er(n,e)&&!dn(t.parent))?Nt:""}function dn(t){return R(t)&&!G(t,["documentHead","documentBody","flowMapping","flowSequence"])}function I(t,e){return tt(" ".repeat(t),e)}function Ct(t,e,n){let{node:r}=t,s=r.type==="flowMapping",i=s?"{":"[",o=s?"}":"]",a=Nt;s&&r.children.length>0&&n.bracketSpacing&&(a=ne);let c=x(!1,r.children,-1),l=(c==null?void 0:c.type)==="flowMappingItem"&&_e(c.key)&&_e(c.value);return[i,I(n.tabWidth,[a,Ji(t,e,n),n.trailingComma==="none"?"":nt(","),R(r)?[N,v(N,t.map(e,"endComments"))]:""]),l?"":a,o]}function Ji(t,e,n){return t.map(({isLast:r,node:s,next:i})=>[e(),r?"":[",",ne,s.position.start.line!==i.position.start.line?Tt(t,n.originalText):""]],"children")}function Gi(t,e,n){var C;let{node:r,parent:s}=t,{key:i,value:o}=r,a=_e(i),c=_e(o);if(a&&c)return": ";let l=e("key"),f=Hi(r)?" ":"";if(c)return r.type==="flowMappingItem"&&s.type==="flowMapping"?l:r.type==="mappingItem"&&yn(i.content,n)&&!H(i.content)&&((C=s.tag)==null?void 0:C.value)!=="tag:yaml.org,2002:set"?[l,f,":"]:["? ",I(2,l)];let m=e("value");if(a)return[": ",I(2,m)];if(Z(o)||!st(i.content))return["? ",I(2,l),N,...t.map(()=>[e(),N],"value","leadingComments"),": ",I(2,m)];if(Xi(i.content)&&!Z(i.content)&&!ie(i.content)&&!H(i.content)&&!R(i)&&!Z(o.content)&&!ie(o.content)&&!R(o)&&yn(o.content,n))return[l,f,": ",m];let d=Symbol("mappingKey"),y=ke([nt("? "),ke(I(2,l),{id:d})]),h=[N,": ",I(2,m)],g=[f,":"];Z(o.content)||R(o)&&o.content&&!G(o.content,["mapping","sequence"])||s.type==="mapping"&&H(i.content)&&st(o.content)||G(o.content,["mapping","sequence"])&&o.content.tag===null&&o.content.anchor===null?g.push(N):o.content&&g.push(ne),g.push(m);let w=I(n.tabWidth,g);return yn(i.content,n)&&!Z(i.content)&&!ie(i.content)&&!R(i)?cn([[l,w]]):cn([[y,nt(h,w,{groupId:d})]])}function yn(t,e){if(!t)return!0;switch(t.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if(e.proseWrap==="preserve")return t.position.start.line===t.position.end.line;if(/\\$/m.test(e.originalText.slice(t.position.start.offset,t.position.end.offset)))return!1;switch(e.proseWrap){case"never":return!t.value.includes(` -`);case"always":return!/[\n ]/.test(t.value);default:return!1}}function Hi(t){var e;return((e=t.key.content)==null?void 0:e.type)==="alias"}function Xi(t){if(!t)return!0;switch(t.type){case"plain":case"quoteDouble":case"quoteSingle":return t.position.start.line===t.position.end.line;case"alias":return!0;default:return!1}}var Cr=Gi;function zi(t,e,n){let{node:r}=t,s=t.ancestors.filter(l=>l.type==="sequence"||l.type==="mapping").length,i=Lt(t),o=[r.type==="blockFolded"?">":"|"];r.indent!==null&&o.push(r.indent.toString()),r.chomping!=="clip"&&o.push(r.chomping==="keep"?"+":"-"),mn(r)&&o.push(" ",e("indicatorComment"));let a=Nr(r,{parentIndent:s,isLastDescendant:i,options:n}),c=[];for(let[l,f]of a.entries())l===0&&c.push(N),c.push(wt(v(ne,f))),l!==a.length-1?c.push(f.length===0?N:ir(rt)):r.chomping==="keep"&&i&&c.push(an(f.length===0?N:rt));return r.indent===null?o.push(or(I(n.tabWidth,c))):o.push(an(I(r.indent-1+s,c))),o}var Mr=zi;function Zi(t,e,n){let{node:r}=t,s=[];r.type!=="mappingValue"&&Z(r)&&s.push([v(N,t.map(n,"leadingComments")),N]);let{tag:i,anchor:o}=r;i&&s.push(n("tag")),i&&o&&s.push(" "),o&&s.push(n("anchor"));let a="";return G(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!Lt(t)&&(a=Tt(t,e.originalText)),(i||o)&&(G(r,["sequence","mapping"])&&!ie(r)?s.push(N):s.push(" ")),ie(r)&&s.push([r.middleComments.length===1?"":N,v(N,t.map(n,"middleComments")),N]),Sr(t)?s.push(cr(e.originalText.slice(r.position.start.offset,r.position.end.offset).trimEnd())):s.push(ke(eo(t,e,n))),H(r)&&!G(r,["document","documentHead"])&&s.push(ar([r.type==="mappingValue"&&!r.content?"":" ",t.parent.type==="mappingKey"&&t.getParentNode(2).type==="mapping"&&st(r)?"":bt,n("trailingComment")])),dn(r)&&s.push(I(r.type==="sequenceItem"?2:0,[N,v(N,t.map(({node:c})=>[lr(e.originalText,ve(c))?N:"",n()],"endComments"))])),s.push(a),s}function eo(t,e,n){let{node:r}=t;switch(r.type){case"root":{let s=[];t.each(({node:o,next:a,isFirst:c})=>{c||s.push(N),s.push(n()),kr(o,a)?(s.push(N,"..."),H(o)&&s.push(" ",n("trailingComment"))):a&&!H(a.head)&&s.push(N,"---")},"children");let i=At(r);return(!G(i,["blockLiteral","blockFolded"])||i.chomping!=="keep")&&s.push(N),s}case"document":{let s=[];return no(t,e)==="head"&&((r.head.children.length>0||r.head.endComments.length>0)&&s.push(n("head")),H(r.head)?s.push(["---"," ",n(["head","trailingComment"])]):s.push("---")),to(r)&&s.push(n("body")),v(N,s)}case"documentHead":return v(N,[...t.map(n,"children"),...t.map(n,"endComments")]);case"documentBody":{let{children:s,endComments:i}=r,o="";if(s.length>0&&i.length>0){let a=At(r);G(a,["blockFolded","blockLiteral"])?a.chomping!=="keep"&&(o=[N,N]):o=N}return[v(N,t.map(n,"children")),o,v(N,t.map(n,"endComments"))]}case"directive":return["%",v(" ",[r.name,...r.parameters])];case"comment":return["#",r.value];case"alias":return["*",r.value];case"tag":return e.originalText.slice(r.position.start.offset,r.position.end.offset);case"anchor":return["&",r.value];case"plain":return at(r.type,e.originalText.slice(r.position.start.offset,r.position.end.offset),e);case"quoteDouble":case"quoteSingle":{let s="'",i='"',o=e.originalText.slice(r.position.start.offset+1,r.position.end.offset-1);if(r.type==="quoteSingle"&&o.includes("\\")||r.type==="quoteDouble"&&/\\[^"]/.test(o)){let c=r.type==="quoteDouble"?i:s;return[c,at(r.type,o,e),c]}if(o.includes(i))return[s,at(r.type,r.type==="quoteDouble"?yt(!1,yt(!1,o,'\\"',i),"'",s.repeat(2)):o,e),s];if(o.includes(s))return[i,at(r.type,r.type==="quoteSingle"?yt(!1,o,"''",s):o,e),i];let a=e.singleQuote?s:i;return[a,at(r.type,o,e),a]}case"blockFolded":case"blockLiteral":return Mr(t,n,e);case"mapping":case"sequence":return v(N,t.map(n,"children"));case"sequenceItem":return["- ",I(2,r.content?n("content"):"")];case"mappingKey":case"mappingValue":return r.content?n("content"):"";case"mappingItem":case"flowMappingItem":return Cr(t,n,e);case"flowMapping":return Ct(t,n,e);case"flowSequence":return Ct(t,n,e);case"flowSequenceItem":return n("content");default:throw new fr(r,"YAML")}}function to(t){return t.body.children.length>0||R(t.body)}function kr(t,e){return H(t)||e&&(e.head.children.length>0||R(e.head))}function no(t,e){let n=t.node;if(t.isFirst&&/---(?:\s|$)/.test(e.originalText.slice(ve(n),ve(n)+4))||n.head.children.length>0||R(n.head)||H(n.head))return"head";let r=t.next;return kr(n,r)?!1:r?"root":!1}function at(t,e,n){let r=br(t,e,n);return v(N,r.map(s=>wt(v(ne,s))))}function ro(t,e){if(G(e))switch(delete e.position,e.type){case"comment":if(ur(e.value))return null;break;case"quoteDouble":case"quoteSingle":e.type="quote";break}}var so={preprocess:Tr,embed:dr,print:Zi,massageAstNode:ro,insertPragma:mr,getVisitorKeys:Ar},vr=so;var tn={};nr(tn,{yaml:()=>ja});var Mt=` -`,Ir="\r",Pr=function(){function t(e){this.length=e.length;for(var n=[0],r=0;rthis.length)return null;for(var n=0,r=this.offsets;r[n+1]<=e;)n++;var s=e-r[n];return{line:n,column:s}},t.prototype.indexForLocation=function(e){var n=e.line,r=e.column;return n<0||n>=this.offsets.length||r<0||r>this.lengthOfLine(n)?null:this.offsets[n]+r},t.prototype.lengthOfLine=function(e){var n=this.offsets[e],r=e===this.offsets.length-1?this.length:this.offsets[e+1];return r-n},t}();function B(t,e=null){"children"in t&&t.children.forEach(n=>B(n,t)),"anchor"in t&&t.anchor&&B(t.anchor,t),"tag"in t&&t.tag&&B(t.tag,t),"leadingComments"in t&&t.leadingComments.forEach(n=>B(n,t)),"middleComments"in t&&t.middleComments.forEach(n=>B(n,t)),"indicatorComment"in t&&t.indicatorComment&&B(t.indicatorComment,t),"trailingComment"in t&&t.trailingComment&&B(t.trailingComment,t),"endComments"in t&&t.endComments.forEach(n=>B(n,t)),Object.defineProperty(t,"_parent",{value:e,enumerable:!1})}function ge(t){return`${t.line}:${t.column}`}function _r(t){B(t);let e=io(t),n=t.children.slice();t.comments.sort((r,s)=>r.position.start.offset-s.position.end.offset).filter(r=>!r._parent).forEach(r=>{for(;n.length>1&&r.position.start.line>n[0].position.end.line;)n.shift();oo(r,e,n[0])})}function io(t){let e=Array.from(new Array(t.position.end.line),()=>({}));for(let n of t.comments)e[n.position.start.line-1].comment=n;return xr(e,t),e}function xr(t,e){if(e.position.start.offset!==e.position.end.offset){if("leadingComments"in e){let{start:n}=e.position,{leadingAttachableNode:r}=t[n.line-1];(!r||n.column1&&e.type!=="document"&&e.type!=="documentHead"){let{end:n}=e.position,{trailingAttachableNode:r}=t[n.line-1];(!r||n.column>=r.position.end.column)&&(t[n.line-1].trailingAttachableNode=e)}if(e.type!=="root"&&e.type!=="document"&&e.type!=="documentHead"&&e.type!=="documentBody"){let{start:n,end:r}=e.position,s=[r.line].concat(n.line===r.line?[]:n.line);for(let i of s){let o=t[i-1].trailingNode;(!o||r.column>=o.position.end.column)&&(t[i-1].trailingNode=e)}}"children"in e&&e.children.forEach(n=>{xr(t,n)})}}function oo(t,e,n){let r=t.position.start.line,{trailingAttachableNode:s}=e[r-1];if(s){if(s.trailingComment)throw new Error(`Unexpected multiple trailing comment at ${ge(t.position.start)}`);B(t,s),s.trailingComment=t;return}for(let o=r;o>=n.position.start.line;o--){let{trailingNode:a}=e[o-1],c;if(a)c=a;else if(o!==r&&e[o-1].comment)c=e[o-1].comment._parent;else continue;if((c.type==="sequence"||c.type==="mapping")&&(c=c.children[0]),c.type==="mappingItem"){let[l,f]=c.children;c=Rr(l)?l:f}for(;;){if(ao(c,t)){B(t,c),c.endComments.push(t);return}if(!c._parent)break;c=c._parent}break}for(let o=r+1;o<=n.position.end.line;o++){let{leadingAttachableNode:a}=e[o-1];if(a){B(t,a),a.leadingComments.push(t);return}}let i=n.children[1];B(t,i),i.endComments.push(t)}function ao(t,e){if(t.position.start.offsete.position.end.offset)switch(t.type){case"flowMapping":case"flowSequence":return t.children.length===0||e.position.start.line>t.children[t.children.length-1].position.end.line}if(e.position.end.offsett.position.start.column;case"mappingKey":case"mappingValue":return e.position.start.column>t._parent.position.start.column&&(t.children.length===0||t.children.length===1&&t.children[0].type!=="blockFolded"&&t.children[0].type!=="blockLiteral")&&(t.type==="mappingValue"||Rr(t));default:return!1}}function Rr(t){return t.position.start!==t.position.end&&(t.children.length===0||t.position.start.offset!==t.children[0].position.start.offset)}function b(t,e){return{type:t,position:e}}function Dr(t,e,n){return{...b("root",t),children:e,comments:n}}function ct(t){switch(t.type){case"DOCUMENT":for(let e=t.contents.length-1;e>=0;e--)t.contents[e].type==="BLANK_LINE"?t.contents.splice(e,1):ct(t.contents[e]);for(let e=t.directives.length-1;e>=0;e--)t.directives[e].type==="BLANK_LINE"&&t.directives.splice(e,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(let e=t.items.length-1;e>=0;e--){let n=t.items[e];"char"in n||(n.type==="BLANK_LINE"?t.items.splice(e,1):ct(n))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":t.node&&ct(t.node);break;case"ALIAS":case"BLANK_LINE":case"BLOCK_FOLDED":case"BLOCK_LITERAL":case"COMMENT":case"DIRECTIVE":case"PLAIN":case"QUOTE_DOUBLE":case"QUOTE_SINGLE":break;default:throw new Error(`Unexpected node type ${JSON.stringify(t.type)}`)}}function X(){return{leadingComments:[]}}function oe(t=null){return{trailingComment:t}}function $(){return{...X(),...oe()}}function Yr(t,e,n){return{...b("alias",t),...$(),...e,value:n}}function Br(t,e){let n=t.cstNode;return Yr(e.transformRange({origStart:n.valueRange.origStart-1,origEnd:n.valueRange.origEnd}),e.transformContent(t),n.rawValue)}function $r(t){return{...t,type:"blockFolded"}}function Fr(t,e,n,r,s,i){return{...b("blockValue",t),...X(),...e,chomping:n,indent:r,value:s,indicatorComment:i}}var ae;(function(t){t.Tag="!",t.Anchor="&",t.Comment="#"})(ae||(ae={}));function qr(t,e){return{...b("anchor",t),value:e}}function xe(t,e){return{...b("comment",t),value:e}}function Ur(t,e,n){return{anchor:e,tag:t,middleComments:n}}function Kr(t,e){return{...b("tag",t),value:e}}function kt(t,e,n=()=>!1){let r=t.cstNode,s=[],i=null,o=null,a=null;for(let c of r.props){let l=e.text[c.origStart];switch(l){case ae.Tag:i=i||c,o=Kr(e.transformRange(c),t.tag);break;case ae.Anchor:i=i||c,a=qr(e.transformRange(c),r.anchor);break;case ae.Comment:{let f=xe(e.transformRange(c),e.text.slice(c.origStart+1,c.origEnd));e.comments.push(f),!n(f)&&i&&i.origEnd<=c.origStart&&c.origEnd<=r.valueRange.origStart&&s.push(f);break}default:throw new Error(`Unexpected leading character ${JSON.stringify(l)}`)}}return Ur(o,a,s)}var En;(function(t){t.CLIP="clip",t.STRIP="strip",t.KEEP="keep"})(En||(En={}));function vt(t,e){let n=t.cstNode,r=1,s=n.chomping==="CLIP"?0:1,o=n.header.origEnd-n.header.origStart-r-s!==0,a=e.transformRange({origStart:n.header.origStart,origEnd:n.valueRange.origEnd}),c=null,l=kt(t,e,f=>{if(!(a.start.offset=0;c--){let l=t.contents[c];if(l.type==="COMMENT"){let f=e.transformNode(l);n&&n.line===f.position.start.line?o.unshift(f):a?r.unshift(f):f.position.start.offset>=t.valueRange.origEnd?i.unshift(f):r.unshift(f)}else a=!0}if(i.length>1)throw new Error(`Unexpected multiple document trailing comments at ${ge(i[1].position.start)}`);if(o.length>1)throw new Error(`Unexpected multiple documentHead trailing comments at ${ge(o[1].position.start)}`);return{comments:r,endComments:s,documentTrailingComment:q(i)||null,documentHeadTrailingComment:q(o)||null}}function lo(t,e,n){let r=It(n.text.slice(t.valueRange.origEnd),/^\.\.\./),s=r===-1?t.valueRange.origEnd:Math.max(0,t.valueRange.origEnd-1);n.text[s-1]==="\r"&&s--;let i=n.transformRange({origStart:e!==null?e.position.start.offset:s,origEnd:s}),o=r===-1?i.end:n.transformOffset(t.valueRange.origEnd+3);return{position:i,documentEndPoint:o}}function Zr(t,e,n,r){return{...b("documentHead",t),...F(n),...oe(r),children:e}}function es(t,e){let n=t.cstNode,{directives:r,comments:s,endComments:i}=fo(n,e),{position:o,endMarkerPoint:a}=uo(n,r,e);return e.comments.push(...s,...i),{createDocumentHeadWithTrailingComment:l=>(l&&e.comments.push(l),Zr(o,r,i,l)),documentHeadEndMarkerPoint:a}}function fo(t,e){let n=[],r=[],s=[],i=!1;for(let o=t.directives.length-1;o>=0;o--){let a=e.transformNode(t.directives[o]);a.type==="comment"?i?r.unshift(a):s.unshift(a):(i=!0,n.unshift(a))}return{directives:n,comments:r,endComments:s}}function uo(t,e,n){let r=It(n.text.slice(0,t.valueRange.origStart),/---\s*$/);r>0&&!/[\r\n]/.test(n.text[r-1])&&(r=-1);let s=r===-1?{origStart:t.valueRange.origStart,origEnd:t.valueRange.origStart}:{origStart:r,origEnd:r+3};return e.length!==0&&(s.origStart=e[0].position.start.offset),{position:n.transformRange(s),endMarkerPoint:r===-1?null:n.transformOffset(r)}}function ts(t,e){let{createDocumentHeadWithTrailingComment:n,documentHeadEndMarkerPoint:r}=es(t,e),{documentBody:s,documentEndPoint:i,documentTrailingComment:o,documentHeadTrailingComment:a}=zr(t,e,r),c=n(a);return o&&e.comments.push(o),Hr(K(c.position.start,i),c,s,o)}function Pt(t,e,n){return{...b("flowCollection",t),...$(),...F(),...e,children:n}}function ns(t,e,n){return{...Pt(t,e,n),type:"flowMapping"}}function _t(t,e,n){return{...b("flowMappingItem",t),...X(),children:[e,n]}}function ce(t,e){let n=[];for(let r of t)r&&"type"in r&&r.type==="COMMENT"?e.comments.push(e.transformNode(r)):n.push(r);return n}function xt(t){let[e,n]=["?",":"].map(r=>{let s=t.find(i=>"char"in i&&i.char===r);return s?{origStart:s.origOffset,origEnd:s.origOffset+1}:null});return{additionalKeyRange:e,additionalValueRange:n}}function Rt(t,e){let n=e;return r=>t.slice(n,n=r)}function Dt(t){let e=[],n=Rt(t,1),r=!1;for(let s=1;s{let l=r[c],{additionalKeyRange:f,additionalValueRange:m}=xt(l);return De(a,e,_t,f,m)}),i=n[0],o=q(n);return ns(e.transformRange({origStart:i.origOffset,origEnd:o.origOffset+1}),e.transformContent(t),s)}function ss(t,e,n){return{...Pt(t,e,n),type:"flowSequence"}}function is(t,e){return{...b("flowSequenceItem",t),children:[e]}}function os(t,e){let n=ce(t.cstNode.items,e),r=Dt(n),s=t.items.map((a,c)=>{if(a.type!=="PAIR"){let l=e.transformNode(a);return is(K(l.position.start,l.position.end),l)}else{let l=r[c],{additionalKeyRange:f,additionalValueRange:m}=xt(l);return De(a,e,_t,f,m)}}),i=n[0],o=q(n);return ss(e.transformRange({origStart:i.origOffset,origEnd:o.origOffset+1}),e.transformContent(t),s)}function as(t,e,n){return{...b("mapping",t),...X(),...e,children:n}}function cs(t,e,n){return{...b("mappingItem",t),...X(),children:[e,n]}}function ls(t,e){let n=t.cstNode;n.items.filter(o=>o.type==="MAP_KEY"||o.type==="MAP_VALUE").forEach(o=>Re(o,e));let r=ce(n.items,e),s=po(r),i=t.items.map((o,a)=>{let c=s[a],[l,f]=c[0].type==="MAP_VALUE"?[null,c[0].range]:[c[0].range,c.length===1?null:c[1].range];return De(o,e,cs,l,f)});return as(K(i[0].position.start,q(i).position.end),e.transformContent(t),i)}function po(t){let e=[],n=Rt(t,0),r=!1;for(let s=0;s=0;r--)if(n.test(t[r]))return r;return-1}function ps(t,e){let n=t.cstNode;return fs(e.transformRange({origStart:n.valueRange.origStart,origEnd:us(e.text,n.valueRange.origEnd-1,/\S/)+1}),e.transformContent(t),n.strValue)}function ms(t){return{...t,type:"quoteDouble"}}function hs(t,e,n){return{...b("quoteValue",t),...e,...$(),value:n}}function Yt(t,e){let n=t.cstNode;return hs(e.transformRange(n.valueRange),e.transformContent(t),n.strValue)}function gs(t,e){return ms(Yt(t,e))}function ds(t){return{...t,type:"quoteSingle"}}function ys(t,e){return ds(Yt(t,e))}function Es(t,e,n){return{...b("sequence",t),...X(),...F(),...e,children:n}}function Ss(t,e){return{...b("sequenceItem",t),...$(),...F(),children:e?[e]:[]}}function ws(t,e){let r=ce(t.cstNode.items,e).map((s,i)=>{Re(s,e);let o=e.transformNode(t.items[i]);return Ss(K(e.transformOffset(s.valueRange.origStart),o===null?e.transformOffset(s.valueRange.origStart+1):o.position.end),o)});return Es(K(r[0].position.start,q(r).position.end),e.transformContent(t),r)}function bs(t,e){if(t===null||t.type===void 0&&t.value===null)return null;switch(t.type){case"ALIAS":return Br(t,e);case"BLOCK_FOLDED":return Vr(t,e);case"BLOCK_LITERAL":return jr(t,e);case"COMMENT":return Qr(t,e);case"DIRECTIVE":return Gr(t,e);case"DOCUMENT":return ts(t,e);case"FLOW_MAP":return rs(t,e);case"FLOW_SEQ":return os(t,e);case"MAP":return ls(t,e);case"PLAIN":return ps(t,e);case"QUOTE_DOUBLE":return gs(t,e);case"QUOTE_SINGLE":return ys(t,e);case"SEQ":return ws(t,e);default:throw new Error(`Unexpected node type ${t.type}`)}}function Ns(t,e,n){let r=new SyntaxError(t);return r.name="YAMLSyntaxError",r.source=e,r.position=n,r}function Os(t,e){let n=t.source.range||t.source.valueRange;return Ns(t.message,e.text,e.transformRange(n))}function Ls(t,e,n){return{offset:t,line:e,column:n}}function As(t,e){t<0?t=0:t>e.text.length&&(t=e.text.length);let n=e.locator.locationForIndex(t);return Ls(t,n.line+1,n.column+1)}function Ts(t,e){return K(e.transformOffset(t.origStart),e.transformOffset(t.origEnd))}function Cs(t){if(!t.setOrigRanges()){let e=n=>{if(mo(n))return n.origStart=n.start,n.origEnd=n.end,!0;if(ho(n))return n.origOffset=n.offset,!0};t.forEach(n=>Nn(n,e))}}function Nn(t,e){if(!(!t||typeof t!="object")&&e(t)!==!0)for(let n of Object.keys(t)){if(n==="context"||n==="error")continue;let r=t[n];Array.isArray(r)?r.forEach(s=>Nn(s,e)):Nn(r,e)}}function mo(t){return typeof t.start=="number"}function ho(t){return typeof t.offset=="number"}function On(t){if("children"in t){if(t.children.length===1){let e=t.children[0];if(e.type==="plain"&&e.tag===null&&e.anchor===null&&e.value==="")return t.children.splice(0,1),t}t.children.forEach(On)}return t}function Ln(t,e,n,r){let s=e(t);return i=>{r(s,i)&&n(t,s=i)}}function An(t){if(t===null||!("children"in t))return;let e=t.children;if(e.forEach(An),t.type==="document"){let[i,o]=t.children;i.position.start.offset===i.position.end.offset?i.position.start=i.position.end=o.position.start:o.position.start.offset===o.position.end.offset&&(o.position.start=o.position.end=i.position.end)}let n=Ln(t.position,go,yo,wo),r=Ln(t.position,Eo,So,bo);"endComments"in t&&t.endComments.length!==0&&(n(t.endComments[0].position.start),r(q(t.endComments).position.end));let s=e.filter(i=>i!==null);if(s.length!==0){let i=s[0],o=q(s);n(i.position.start),r(o.position.end),"leadingComments"in i&&i.leadingComments.length!==0&&n(i.leadingComments[0].position.start),"tag"in i&&i.tag&&n(i.tag.position.start),"anchor"in i&&i.anchor&&n(i.anchor.position.start),"trailingComment"in o&&o.trailingComment&&r(o.trailingComment.position.end)}}function go(t){return t.start}function yo(t,e){t.start=e}function Eo(t){return t.end}function So(t,e){t.end=e}function wo(t,e){return e.offsett.offset}var di=rr(hi(),1);var J=rr(gi(),1),_m=J.default.findPair,xm=J.default.toJSON,Rm=J.default.parseMap,Dm=J.default.parseSeq,Ym=J.default.stringifyNumber,Bm=J.default.stringifyString,$m=J.default.Type,qa=J.default.YAMLError,Fm=J.default.YAMLReferenceError,er=J.default.YAMLSemanticError,Ua=J.default.YAMLSyntaxError,qm=J.default.YAMLWarning;var{Document:yi,parseCST:Ei}=di.default;function Si(t){let e=Ei(t);Cs(e);let n=e.map(a=>new yi({merge:!1,keepCstNodes:!0}).parse(a)),r=new Pr(t),s=[],i={text:t,locator:r,comments:s,transformOffset:a=>As(a,i),transformRange:a=>Ts(a,i),transformNode:a=>bs(a,i),transformContent:a=>kt(a,i)};for(let a of n)for(let c of a.errors)if(!(c instanceof er&&c.message==='Map keys must be unique; "<<" is repeated'))throw Os(c,i);n.forEach(a=>ct(a.cstNode));let o=Dr(i.transformRange({origStart:0,origEnd:i.text.length}),n.map(i.transformNode),s);return _r(o),An(o),On(o),o}function Va(t,e){let n=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(n,e)}var wi=Va;function Wa(t){try{let e=Si(t);return delete e.comments,e}catch(e){throw e!=null&&e.position?wi(e.message,{loc:e.position,cause:e}):e}}var ja={astFormat:"yaml",parse:Wa,hasPragma:pr,locStart:ve,locEnd:hr};var bi=[{linguistLanguageId:407,name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock",".prettierrc",".stylelintrc",".lintstagedrc"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"]}];var nn={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Qa={bracketSpacing:nn.bracketSpacing,singleQuote:nn.singleQuote,proseWrap:nn.proseWrap},Ni=Qa;var Ja={yaml:vr};var yh=tr;export{yh as default,bi as languages,Ni as options,tn as parsers,Ja as printers}; +`).map(c=>c.slice(i));if(r.proseWrap==="preserve"||t.type==="blockLiteral")return a(o.map(c=>c.length===0?[]:[c]));return a(o.map(c=>c.length===0?[]:wr(c)).reduce((c,l,f)=>f!==0&&o[f-1].length>0&&l.length>0&&!/^\s/.test(l[0])&&!/^\s|\s$/.test(x(!1,c,-1))?[...c.slice(0,-1),[...x(!1,c,-1),...l]]:[...c,l],[]).map(c=>c.reduce((l,f)=>l.length>0&&/\s$/.test(x(!1,l,-1))?[...l.slice(0,-1),x(!1,l,-1)+" "+f]:[...l,f],[])).map(c=>r.proseWrap==="never"?[c.join(" ")]:c));function a(c){if(t.chomping==="keep")return x(!1,c,-1).length===0?c.slice(0,-1):c;let l=0;for(let f=c.length-1;f>=0&&c[f].length===0;f--)l++;return l===0?c:l>=2&&!n?c.slice(0,-(l-1)):c.slice(0,-l)}}function st(t){if(!t)return!0;switch(t.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}var it=null;function ot(t){if(it!==null&&typeof it.property){let e=it;return it=ot.prototype=null,e}return it=ot.prototype=t??Object.create(null),new ot}var Ui=10;for(let t=0;t<=Ui;t++)ot();function mn(t){return ot(t)}function Ki(t,e="type"){mn(t);function n(r){let s=r[e],i=t[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:r});return i}return n}var Or=Ki;var Vi=Object.fromEntries(Object.entries({root:["children"],document:["head","body","children"],documentHead:["children"],documentBody:["children"],directive:[],alias:[],blockLiteral:[],blockFolded:["children"],plain:["children"],quoteSingle:[],quoteDouble:[],mapping:["children"],mappingItem:["key","value","children"],mappingKey:["content","children"],mappingValue:["content","children"],sequence:["children"],sequenceItem:["content","children"],flowMapping:["children"],flowMappingItem:["key","value","children"],flowSequence:["children"],flowSequenceItem:["content","children"],comment:[],tag:[],anchor:[]}).map(([t,e])=>[t,[...e,"anchor","tag","indicatorComment","leadingComments","middleComments","trailingComment","endComments"]])),Lr=Vi;var Wi=Or(Lr),Ar=Wi;function ji(t){return un(t,Qi)}function Qi(t){switch(t.type){case"document":Pe(t,"head",()=>t.children[0]),Pe(t,"body",()=>t.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":Pe(t,"content",()=>t.children[0]);break;case"mappingItem":case"flowMappingItem":Pe(t,"key",()=>t.children[0]),Pe(t,"value",()=>t.children[1]);break}return t}var Tr=ji;var hn=new WeakMap;function Tt(t,e){let{node:n,root:r}=t,s;return hn.has(r)?s=hn.get(r):(s=new Set,hn.set(r,s)),!s.has(n.position.end.line)&&(s.add(n.position.end.line),Er(n,e)&&!gn(t.parent))?Nt:""}function gn(t){return R(t)&&!G(t,["documentHead","documentBody","flowMapping","flowSequence"])}function I(t,e){return tt(" ".repeat(t),e)}function Ct(t,e,n){let{node:r}=t,s=r.type==="flowMapping",i=s?"{":"[",o=s?"}":"]",a=Nt;s&&r.children.length>0&&n.bracketSpacing&&(a=ne);let c=x(!1,r.children,-1),l=(c==null?void 0:c.type)==="flowMappingItem"&&_e(c.key)&&_e(c.value);return[i,I(n.tabWidth,[a,Ji(t,e,n),n.trailingComma==="none"?"":nt(","),R(r)?[N,v(N,t.map(e,"endComments"))]:""]),l?"":a,o]}function Ji(t,e,n){return t.map(({isLast:r,node:s,next:i})=>[e(),r?"":[",",ne,s.position.start.line!==i.position.start.line?Tt(t,n.originalText):""]],"children")}function Gi(t,e,n){var C;let{node:r,parent:s}=t,{key:i,value:o}=r,a=_e(i),c=_e(o);if(a&&c)return": ";let l=e("key"),f=Hi(r)?" ":"";if(c)return r.type==="flowMappingItem"&&s.type==="flowMapping"?l:r.type==="mappingItem"&&dn(i.content,n)&&!H(i.content)&&((C=s.tag)==null?void 0:C.value)!=="tag:yaml.org,2002:set"?[l,f,":"]:["? ",I(2,l)];let m=e("value");if(a)return[": ",I(2,m)];if(Z(o)||!st(i.content))return["? ",I(2,l),N,...t.map(()=>[e(),N],"value","leadingComments"),": ",I(2,m)];if(Xi(i.content)&&!Z(i.content)&&!ie(i.content)&&!H(i.content)&&!R(i)&&!Z(o.content)&&!ie(o.content)&&!R(o)&&dn(o.content,n))return[l,f,": ",m];let d=Symbol("mappingKey"),y=ke([nt("? "),ke(I(2,l),{id:d})]),h=[N,": ",I(2,m)],g=[f,":"];Z(o.content)||R(o)&&o.content&&!G(o.content,["mapping","sequence"])||s.type==="mapping"&&H(i.content)&&st(o.content)||G(o.content,["mapping","sequence"])&&o.content.tag===null&&o.content.anchor===null?g.push(N):o.content&&g.push(ne),g.push(m);let w=I(n.tabWidth,g);return dn(i.content,n)&&!Z(i.content)&&!ie(i.content)&&!R(i)?an([[l,w]]):an([[y,nt(h,w,{groupId:d})]])}function dn(t,e){if(!t)return!0;switch(t.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if(e.proseWrap==="preserve")return t.position.start.line===t.position.end.line;if(/\\$/m.test(e.originalText.slice(t.position.start.offset,t.position.end.offset)))return!1;switch(e.proseWrap){case"never":return!t.value.includes(` +`);case"always":return!/[\n ]/.test(t.value);default:return!1}}function Hi(t){var e;return((e=t.key.content)==null?void 0:e.type)==="alias"}function Xi(t){if(!t)return!0;switch(t.type){case"plain":case"quoteDouble":case"quoteSingle":return t.position.start.line===t.position.end.line;case"alias":return!0;default:return!1}}var Cr=Gi;function zi(t,e,n){let{node:r}=t,s=t.ancestors.filter(l=>l.type==="sequence"||l.type==="mapping").length,i=Lt(t),o=[r.type==="blockFolded"?">":"|"];r.indent!==null&&o.push(r.indent.toString()),r.chomping!=="clip"&&o.push(r.chomping==="keep"?"+":"-"),pn(r)&&o.push(" ",e("indicatorComment"));let a=Nr(r,{parentIndent:s,isLastDescendant:i,options:n}),c=[];for(let[l,f]of a.entries())l===0&&c.push(N),c.push(wt(v(ne,f))),l!==a.length-1?c.push(f.length===0?N:ir(rt)):r.chomping==="keep"&&i&&c.push(on(f.length===0?N:rt));return r.indent===null?o.push(or(I(n.tabWidth,c))):o.push(on(I(r.indent-1+s,c))),o}var Mr=zi;function Zi(t,e,n){let{node:r}=t,s=[];r.type!=="mappingValue"&&Z(r)&&s.push([v(N,t.map(n,"leadingComments")),N]);let{tag:i,anchor:o}=r;i&&s.push(n("tag")),i&&o&&s.push(" "),o&&s.push(n("anchor"));let a="";return G(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!Lt(t)&&(a=Tt(t,e.originalText)),(i||o)&&(G(r,["sequence","mapping"])&&!ie(r)?s.push(N):s.push(" ")),ie(r)&&s.push([r.middleComments.length===1?"":N,v(N,t.map(n,"middleComments")),N]),Sr(t)?s.push(cr(e.originalText.slice(r.position.start.offset,r.position.end.offset).trimEnd())):s.push(ke(eo(t,e,n))),H(r)&&!G(r,["document","documentHead"])&&s.push(ar([r.type==="mappingValue"&&!r.content?"":" ",t.parent.type==="mappingKey"&&t.getParentNode(2).type==="mapping"&&st(r)?"":bt,n("trailingComment")])),gn(r)&&s.push(I(r.type==="sequenceItem"?2:0,[N,v(N,t.map(({node:c})=>[lr(e.originalText,ve(c))?N:"",n()],"endComments"))])),s.push(a),s}function eo(t,e,n){let{node:r}=t;switch(r.type){case"root":{let s=[];t.each(({node:o,next:a,isFirst:c})=>{c||s.push(N),s.push(n()),kr(o,a)?(s.push(N,"..."),H(o)&&s.push(" ",n("trailingComment"))):a&&!H(a.head)&&s.push(N,"---")},"children");let i=At(r);return(!G(i,["blockLiteral","blockFolded"])||i.chomping!=="keep")&&s.push(N),s}case"document":{let s=[];return no(t,e)==="head"&&((r.head.children.length>0||r.head.endComments.length>0)&&s.push(n("head")),H(r.head)?s.push(["---"," ",n(["head","trailingComment"])]):s.push("---")),to(r)&&s.push(n("body")),v(N,s)}case"documentHead":return v(N,[...t.map(n,"children"),...t.map(n,"endComments")]);case"documentBody":{let{children:s,endComments:i}=r,o="";if(s.length>0&&i.length>0){let a=At(r);G(a,["blockFolded","blockLiteral"])?a.chomping!=="keep"&&(o=[N,N]):o=N}return[v(N,t.map(n,"children")),o,v(N,t.map(n,"endComments"))]}case"directive":return["%",v(" ",[r.name,...r.parameters])];case"comment":return["#",r.value];case"alias":return["*",r.value];case"tag":return e.originalText.slice(r.position.start.offset,r.position.end.offset);case"anchor":return["&",r.value];case"plain":return at(r.type,e.originalText.slice(r.position.start.offset,r.position.end.offset),e);case"quoteDouble":case"quoteSingle":{let s="'",i='"',o=e.originalText.slice(r.position.start.offset+1,r.position.end.offset-1);if(r.type==="quoteSingle"&&o.includes("\\")||r.type==="quoteDouble"&&/\\[^"]/.test(o)){let c=r.type==="quoteDouble"?i:s;return[c,at(r.type,o,e),c]}if(o.includes(i))return[s,at(r.type,r.type==="quoteDouble"?yt(!1,yt(!1,o,'\\"',i),"'",s.repeat(2)):o,e),s];if(o.includes(s))return[i,at(r.type,r.type==="quoteSingle"?yt(!1,o,"''",s):o,e),i];let a=e.singleQuote?s:i;return[a,at(r.type,o,e),a]}case"blockFolded":case"blockLiteral":return Mr(t,n,e);case"mapping":case"sequence":return v(N,t.map(n,"children"));case"sequenceItem":return["- ",I(2,r.content?n("content"):"")];case"mappingKey":case"mappingValue":return r.content?n("content"):"";case"mappingItem":case"flowMappingItem":return Cr(t,n,e);case"flowMapping":return Ct(t,n,e);case"flowSequence":return Ct(t,n,e);case"flowSequenceItem":return n("content");default:throw new fr(r,"YAML")}}function to(t){return t.body.children.length>0||R(t.body)}function kr(t,e){return H(t)||e&&(e.head.children.length>0||R(e.head))}function no(t,e){let n=t.node;if(t.isFirst&&/---(?:\s|$)/.test(e.originalText.slice(ve(n),ve(n)+4))||n.head.children.length>0||R(n.head)||H(n.head))return"head";let r=t.next;return kr(n,r)?!1:r?"root":!1}function at(t,e,n){let r=br(t,e,n);return v(N,r.map(s=>wt(v(ne,s))))}function ro(t,e){if(G(e))switch(delete e.position,e.type){case"comment":if(ur(e.value))return null;break;case"quoteDouble":case"quoteSingle":e.type="quote";break}}var so={preprocess:Tr,embed:dr,print:Zi,massageAstNode:ro,insertPragma:mr,getVisitorKeys:Ar},vr=so;var er={};nr(er,{yaml:()=>ja});var Mt=` +`,Ir="\r",Pr=function(){function t(e){this.length=e.length;for(var n=[0],r=0;rthis.length)return null;for(var n=0,r=this.offsets;r[n+1]<=e;)n++;var s=e-r[n];return{line:n,column:s}},t.prototype.indexForLocation=function(e){var n=e.line,r=e.column;return n<0||n>=this.offsets.length||r<0||r>this.lengthOfLine(n)?null:this.offsets[n]+r},t.prototype.lengthOfLine=function(e){var n=this.offsets[e],r=e===this.offsets.length-1?this.length:this.offsets[e+1];return r-n},t}();function B(t,e=null){"children"in t&&t.children.forEach(n=>B(n,t)),"anchor"in t&&t.anchor&&B(t.anchor,t),"tag"in t&&t.tag&&B(t.tag,t),"leadingComments"in t&&t.leadingComments.forEach(n=>B(n,t)),"middleComments"in t&&t.middleComments.forEach(n=>B(n,t)),"indicatorComment"in t&&t.indicatorComment&&B(t.indicatorComment,t),"trailingComment"in t&&t.trailingComment&&B(t.trailingComment,t),"endComments"in t&&t.endComments.forEach(n=>B(n,t)),Object.defineProperty(t,"_parent",{value:e,enumerable:!1})}function ge(t){return`${t.line}:${t.column}`}function _r(t){B(t);let e=io(t),n=t.children.slice();t.comments.sort((r,s)=>r.position.start.offset-s.position.end.offset).filter(r=>!r._parent).forEach(r=>{for(;n.length>1&&r.position.start.line>n[0].position.end.line;)n.shift();oo(r,e,n[0])})}function io(t){let e=Array.from(new Array(t.position.end.line),()=>({}));for(let n of t.comments)e[n.position.start.line-1].comment=n;return xr(e,t),e}function xr(t,e){if(e.position.start.offset!==e.position.end.offset){if("leadingComments"in e){let{start:n}=e.position,{leadingAttachableNode:r}=t[n.line-1];(!r||n.column1&&e.type!=="document"&&e.type!=="documentHead"){let{end:n}=e.position,{trailingAttachableNode:r}=t[n.line-1];(!r||n.column>=r.position.end.column)&&(t[n.line-1].trailingAttachableNode=e)}if(e.type!=="root"&&e.type!=="document"&&e.type!=="documentHead"&&e.type!=="documentBody"){let{start:n,end:r}=e.position,s=[r.line].concat(n.line===r.line?[]:n.line);for(let i of s){let o=t[i-1].trailingNode;(!o||r.column>=o.position.end.column)&&(t[i-1].trailingNode=e)}}"children"in e&&e.children.forEach(n=>{xr(t,n)})}}function oo(t,e,n){let r=t.position.start.line,{trailingAttachableNode:s}=e[r-1];if(s){if(s.trailingComment)throw new Error(`Unexpected multiple trailing comment at ${ge(t.position.start)}`);B(t,s),s.trailingComment=t;return}for(let o=r;o>=n.position.start.line;o--){let{trailingNode:a}=e[o-1],c;if(a)c=a;else if(o!==r&&e[o-1].comment)c=e[o-1].comment._parent;else continue;if((c.type==="sequence"||c.type==="mapping")&&(c=c.children[0]),c.type==="mappingItem"){let[l,f]=c.children;c=Rr(l)?l:f}for(;;){if(ao(c,t)){B(t,c),c.endComments.push(t);return}if(!c._parent)break;c=c._parent}break}for(let o=r+1;o<=n.position.end.line;o++){let{leadingAttachableNode:a}=e[o-1];if(a){B(t,a),a.leadingComments.push(t);return}}let i=n.children[1];B(t,i),i.endComments.push(t)}function ao(t,e){if(t.position.start.offsete.position.end.offset)switch(t.type){case"flowMapping":case"flowSequence":return t.children.length===0||e.position.start.line>t.children[t.children.length-1].position.end.line}if(e.position.end.offsett.position.start.column;case"mappingKey":case"mappingValue":return e.position.start.column>t._parent.position.start.column&&(t.children.length===0||t.children.length===1&&t.children[0].type!=="blockFolded"&&t.children[0].type!=="blockLiteral")&&(t.type==="mappingValue"||Rr(t));default:return!1}}function Rr(t){return t.position.start!==t.position.end&&(t.children.length===0||t.position.start.offset!==t.children[0].position.start.offset)}function b(t,e){return{type:t,position:e}}function Dr(t,e,n){return{...b("root",t),children:e,comments:n}}function ct(t){switch(t.type){case"DOCUMENT":for(let e=t.contents.length-1;e>=0;e--)t.contents[e].type==="BLANK_LINE"?t.contents.splice(e,1):ct(t.contents[e]);for(let e=t.directives.length-1;e>=0;e--)t.directives[e].type==="BLANK_LINE"&&t.directives.splice(e,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(let e=t.items.length-1;e>=0;e--){let n=t.items[e];"char"in n||(n.type==="BLANK_LINE"?t.items.splice(e,1):ct(n))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":t.node&&ct(t.node);break;case"ALIAS":case"BLANK_LINE":case"BLOCK_FOLDED":case"BLOCK_LITERAL":case"COMMENT":case"DIRECTIVE":case"PLAIN":case"QUOTE_DOUBLE":case"QUOTE_SINGLE":break;default:throw new Error(`Unexpected node type ${JSON.stringify(t.type)}`)}}function X(){return{leadingComments:[]}}function oe(t=null){return{trailingComment:t}}function $(){return{...X(),...oe()}}function Yr(t,e,n){return{...b("alias",t),...$(),...e,value:n}}function Br(t,e){let n=t.cstNode;return Yr(e.transformRange({origStart:n.valueRange.origStart-1,origEnd:n.valueRange.origEnd}),e.transformContent(t),n.rawValue)}function $r(t){return{...t,type:"blockFolded"}}function Fr(t,e,n,r,s,i){return{...b("blockValue",t),...X(),...e,chomping:n,indent:r,value:s,indicatorComment:i}}var ae;(function(t){t.Tag="!",t.Anchor="&",t.Comment="#"})(ae||(ae={}));function qr(t,e){return{...b("anchor",t),value:e}}function xe(t,e){return{...b("comment",t),value:e}}function Ur(t,e,n){return{anchor:e,tag:t,middleComments:n}}function Kr(t,e){return{...b("tag",t),value:e}}function kt(t,e,n=()=>!1){let r=t.cstNode,s=[],i=null,o=null,a=null;for(let c of r.props){let l=e.text[c.origStart];switch(l){case ae.Tag:i=i||c,o=Kr(e.transformRange(c),t.tag);break;case ae.Anchor:i=i||c,a=qr(e.transformRange(c),r.anchor);break;case ae.Comment:{let f=xe(e.transformRange(c),e.text.slice(c.origStart+1,c.origEnd));e.comments.push(f),!n(f)&&i&&i.origEnd<=c.origStart&&c.origEnd<=r.valueRange.origStart&&s.push(f);break}default:throw new Error(`Unexpected leading character ${JSON.stringify(l)}`)}}return Ur(o,a,s)}var yn;(function(t){t.CLIP="clip",t.STRIP="strip",t.KEEP="keep"})(yn||(yn={}));function vt(t,e){let n=t.cstNode,r=1,s=n.chomping==="CLIP"?0:1,o=n.header.origEnd-n.header.origStart-r-s!==0,a=e.transformRange({origStart:n.header.origStart,origEnd:n.valueRange.origEnd}),c=null,l=kt(t,e,f=>{if(!(a.start.offset=0;c--){let l=t.contents[c];if(l.type==="COMMENT"){let f=e.transformNode(l);n&&n.line===f.position.start.line?o.unshift(f):a?r.unshift(f):f.position.start.offset>=t.valueRange.origEnd?i.unshift(f):r.unshift(f)}else a=!0}if(i.length>1)throw new Error(`Unexpected multiple document trailing comments at ${ge(i[1].position.start)}`);if(o.length>1)throw new Error(`Unexpected multiple documentHead trailing comments at ${ge(o[1].position.start)}`);return{comments:r,endComments:s,documentTrailingComment:q(i)||null,documentHeadTrailingComment:q(o)||null}}function lo(t,e,n){let r=It(n.text.slice(t.valueRange.origEnd),/^\.\.\./),s=r===-1?t.valueRange.origEnd:Math.max(0,t.valueRange.origEnd-1);n.text[s-1]==="\r"&&s--;let i=n.transformRange({origStart:e!==null?e.position.start.offset:s,origEnd:s}),o=r===-1?i.end:n.transformOffset(t.valueRange.origEnd+3);return{position:i,documentEndPoint:o}}function Zr(t,e,n,r){return{...b("documentHead",t),...F(n),...oe(r),children:e}}function es(t,e){let n=t.cstNode,{directives:r,comments:s,endComments:i}=fo(n,e),{position:o,endMarkerPoint:a}=uo(n,r,e);return e.comments.push(...s,...i),{createDocumentHeadWithTrailingComment:l=>(l&&e.comments.push(l),Zr(o,r,i,l)),documentHeadEndMarkerPoint:a}}function fo(t,e){let n=[],r=[],s=[],i=!1;for(let o=t.directives.length-1;o>=0;o--){let a=e.transformNode(t.directives[o]);a.type==="comment"?i?r.unshift(a):s.unshift(a):(i=!0,n.unshift(a))}return{directives:n,comments:r,endComments:s}}function uo(t,e,n){let r=It(n.text.slice(0,t.valueRange.origStart),/---\s*$/);r>0&&!/[\r\n]/.test(n.text[r-1])&&(r=-1);let s=r===-1?{origStart:t.valueRange.origStart,origEnd:t.valueRange.origStart}:{origStart:r,origEnd:r+3};return e.length!==0&&(s.origStart=e[0].position.start.offset),{position:n.transformRange(s),endMarkerPoint:r===-1?null:n.transformOffset(r)}}function ts(t,e){let{createDocumentHeadWithTrailingComment:n,documentHeadEndMarkerPoint:r}=es(t,e),{documentBody:s,documentEndPoint:i,documentTrailingComment:o,documentHeadTrailingComment:a}=zr(t,e,r),c=n(a);return o&&e.comments.push(o),Hr(K(c.position.start,i),c,s,o)}function Pt(t,e,n){return{...b("flowCollection",t),...$(),...F(),...e,children:n}}function ns(t,e,n){return{...Pt(t,e,n),type:"flowMapping"}}function _t(t,e,n){return{...b("flowMappingItem",t),...X(),children:[e,n]}}function ce(t,e){let n=[];for(let r of t)r&&"type"in r&&r.type==="COMMENT"?e.comments.push(e.transformNode(r)):n.push(r);return n}function xt(t){let[e,n]=["?",":"].map(r=>{let s=t.find(i=>"char"in i&&i.char===r);return s?{origStart:s.origOffset,origEnd:s.origOffset+1}:null});return{additionalKeyRange:e,additionalValueRange:n}}function Rt(t,e){let n=e;return r=>t.slice(n,n=r)}function Dt(t){let e=[],n=Rt(t,1),r=!1;for(let s=1;s{let l=r[c],{additionalKeyRange:f,additionalValueRange:m}=xt(l);return De(a,e,_t,f,m)}),i=n[0],o=q(n);return ns(e.transformRange({origStart:i.origOffset,origEnd:o.origOffset+1}),e.transformContent(t),s)}function ss(t,e,n){return{...Pt(t,e,n),type:"flowSequence"}}function is(t,e){return{...b("flowSequenceItem",t),children:[e]}}function os(t,e){let n=ce(t.cstNode.items,e),r=Dt(n),s=t.items.map((a,c)=>{if(a.type!=="PAIR"){let l=e.transformNode(a);return is(K(l.position.start,l.position.end),l)}else{let l=r[c],{additionalKeyRange:f,additionalValueRange:m}=xt(l);return De(a,e,_t,f,m)}}),i=n[0],o=q(n);return ss(e.transformRange({origStart:i.origOffset,origEnd:o.origOffset+1}),e.transformContent(t),s)}function as(t,e,n){return{...b("mapping",t),...X(),...e,children:n}}function cs(t,e,n){return{...b("mappingItem",t),...X(),children:[e,n]}}function ls(t,e){let n=t.cstNode;n.items.filter(o=>o.type==="MAP_KEY"||o.type==="MAP_VALUE").forEach(o=>Re(o,e));let r=ce(n.items,e),s=po(r),i=t.items.map((o,a)=>{let c=s[a],[l,f]=c[0].type==="MAP_VALUE"?[null,c[0].range]:[c[0].range,c.length===1?null:c[1].range];return De(o,e,cs,l,f)});return as(K(i[0].position.start,q(i).position.end),e.transformContent(t),i)}function po(t){let e=[],n=Rt(t,0),r=!1;for(let s=0;s=0;r--)if(n.test(t[r]))return r;return-1}function ps(t,e){let n=t.cstNode;return fs(e.transformRange({origStart:n.valueRange.origStart,origEnd:us(e.text,n.valueRange.origEnd-1,/\S/)+1}),e.transformContent(t),n.strValue)}function ms(t){return{...t,type:"quoteDouble"}}function hs(t,e,n){return{...b("quoteValue",t),...e,...$(),value:n}}function Yt(t,e){let n=t.cstNode;return hs(e.transformRange(n.valueRange),e.transformContent(t),n.strValue)}function gs(t,e){return ms(Yt(t,e))}function ds(t){return{...t,type:"quoteSingle"}}function ys(t,e){return ds(Yt(t,e))}function Es(t,e,n){return{...b("sequence",t),...X(),...F(),...e,children:n}}function Ss(t,e){return{...b("sequenceItem",t),...$(),...F(),children:e?[e]:[]}}function ws(t,e){let r=ce(t.cstNode.items,e).map((s,i)=>{Re(s,e);let o=e.transformNode(t.items[i]);return Ss(K(e.transformOffset(s.valueRange.origStart),o===null?e.transformOffset(s.valueRange.origStart+1):o.position.end),o)});return Es(K(r[0].position.start,q(r).position.end),e.transformContent(t),r)}function bs(t,e){if(t===null||t.type===void 0&&t.value===null)return null;switch(t.type){case"ALIAS":return Br(t,e);case"BLOCK_FOLDED":return Vr(t,e);case"BLOCK_LITERAL":return jr(t,e);case"COMMENT":return Qr(t,e);case"DIRECTIVE":return Gr(t,e);case"DOCUMENT":return ts(t,e);case"FLOW_MAP":return rs(t,e);case"FLOW_SEQ":return os(t,e);case"MAP":return ls(t,e);case"PLAIN":return ps(t,e);case"QUOTE_DOUBLE":return gs(t,e);case"QUOTE_SINGLE":return ys(t,e);case"SEQ":return ws(t,e);default:throw new Error(`Unexpected node type ${t.type}`)}}function Ns(t,e,n){let r=new SyntaxError(t);return r.name="YAMLSyntaxError",r.source=e,r.position=n,r}function Os(t,e){let n=t.source.range||t.source.valueRange;return Ns(t.message,e.text,e.transformRange(n))}function Ls(t,e,n){return{offset:t,line:e,column:n}}function As(t,e){t<0?t=0:t>e.text.length&&(t=e.text.length);let n=e.locator.locationForIndex(t);return Ls(t,n.line+1,n.column+1)}function Ts(t,e){return K(e.transformOffset(t.origStart),e.transformOffset(t.origEnd))}function Cs(t){if(!t.setOrigRanges()){let e=n=>{if(mo(n))return n.origStart=n.start,n.origEnd=n.end,!0;if(ho(n))return n.origOffset=n.offset,!0};t.forEach(n=>bn(n,e))}}function bn(t,e){if(!(!t||typeof t!="object")&&e(t)!==!0)for(let n of Object.keys(t)){if(n==="context"||n==="error")continue;let r=t[n];Array.isArray(r)?r.forEach(s=>bn(s,e)):bn(r,e)}}function mo(t){return typeof t.start=="number"}function ho(t){return typeof t.offset=="number"}function Nn(t){if("children"in t){if(t.children.length===1){let e=t.children[0];if(e.type==="plain"&&e.tag===null&&e.anchor===null&&e.value==="")return t.children.splice(0,1),t}t.children.forEach(Nn)}return t}function On(t,e,n,r){let s=e(t);return i=>{r(s,i)&&n(t,s=i)}}function Ln(t){if(t===null||!("children"in t))return;let e=t.children;if(e.forEach(Ln),t.type==="document"){let[i,o]=t.children;i.position.start.offset===i.position.end.offset?i.position.start=i.position.end=o.position.start:o.position.start.offset===o.position.end.offset&&(o.position.start=o.position.end=i.position.end)}let n=On(t.position,go,yo,wo),r=On(t.position,Eo,So,bo);"endComments"in t&&t.endComments.length!==0&&(n(t.endComments[0].position.start),r(q(t.endComments).position.end));let s=e.filter(i=>i!==null);if(s.length!==0){let i=s[0],o=q(s);n(i.position.start),r(o.position.end),"leadingComments"in i&&i.leadingComments.length!==0&&n(i.leadingComments[0].position.start),"tag"in i&&i.tag&&n(i.tag.position.start),"anchor"in i&&i.anchor&&n(i.anchor.position.start),"trailingComment"in o&&o.trailingComment&&r(o.trailingComment.position.end)}}function go(t){return t.start}function yo(t,e){t.start=e}function Eo(t){return t.end}function So(t,e){t.end=e}function wo(t,e){return e.offsett.offset}var di=rr(hi(),1);var J=rr(gi(),1),_m=J.default.findPair,xm=J.default.toJSON,Rm=J.default.parseMap,Dm=J.default.parseSeq,Ym=J.default.stringifyNumber,Bm=J.default.stringifyString,$m=J.default.Type,qa=J.default.YAMLError,Fm=J.default.YAMLReferenceError,Zn=J.default.YAMLSemanticError,Ua=J.default.YAMLSyntaxError,qm=J.default.YAMLWarning;var{Document:yi,parseCST:Ei}=di.default;function Si(t){let e=Ei(t);Cs(e);let n=e.map(a=>new yi({merge:!1,keepCstNodes:!0}).parse(a)),r=new Pr(t),s=[],i={text:t,locator:r,comments:s,transformOffset:a=>As(a,i),transformRange:a=>Ts(a,i),transformNode:a=>bs(a,i),transformContent:a=>kt(a,i)};for(let a of n)for(let c of a.errors)if(!(c instanceof Zn&&c.message==='Map keys must be unique; "<<" is repeated'))throw Os(c,i);n.forEach(a=>ct(a.cstNode));let o=Dr(i.transformRange({origStart:0,origEnd:i.text.length}),n.map(i.transformNode),s);return _r(o),Ln(o),Nn(o),o}function Va(t,e){let n=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(n,e)}var wi=Va;function Wa(t){try{let e=Si(t);return delete e.comments,e}catch(e){throw e!=null&&e.position?wi(e.message,{loc:e.position,cause:e}):e}}var ja={astFormat:"yaml",parse:Wa,hasPragma:pr,locStart:ve,locEnd:hr};var bi=[{linguistLanguageId:407,name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock",".prettierrc",".stylelintrc",".lintstagedrc"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"]}];var tn={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Qa={bracketSpacing:tn.bracketSpacing,singleQuote:tn.singleQuote,proseWrap:tn.proseWrap},Ni=Qa;var Ja={yaml:vr};var yh=tr;export{yh as default,bi as languages,Ni as options,er as parsers,Ja as printers}; diff --git a/node_modules/prettier/standalone.d.ts b/node_modules/prettier/standalone.d.ts index 5dbb70e..b77367b 100644 --- a/node_modules/prettier/standalone.d.ts +++ b/node_modules/prettier/standalone.d.ts @@ -13,7 +13,7 @@ import { CursorOptions, CursorResult, Options, SupportInfo } from "./index.js"; */ export function formatWithCursor( source: string, - options: CursorOptions + options: CursorOptions, ): Promise; /** diff --git a/node_modules/prettier/standalone.js b/node_modules/prettier/standalone.js index 7b9e694..c69ab26 100644 --- a/node_modules/prettier/standalone.js +++ b/node_modules/prettier/standalone.js @@ -1,34 +1,37 @@ -(function(t){function e(){var o=t();return o.default||o}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var f=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};f.prettier=e()}})(function(){"use strict";var zu=Object.create;var et=Object.defineProperty;var Wu=Object.getOwnPropertyDescriptor;var Gu=Object.getOwnPropertyNames;var Uu=Object.getPrototypeOf,Ku=Object.prototype.hasOwnProperty;var Ot=(e,t)=>()=>(e&&(t=e(e=0)),t);var E=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ge=(e,t)=>{for(var r in t)et(e,r,{get:t[r],enumerable:!0})},jr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Gu(t))!Ku.call(e,i)&&i!==r&&et(e,i,{get:()=>t[i],enumerable:!(n=Wu(t,i))||n.enumerable});return e};var kt=(e,t,r)=>(r=e!=null?zu(Uu(e)):{},jr(t||!e||!e.__esModule?et(r,"default",{value:e,enumerable:!0}):r,e)),Y=e=>jr(et({},"__esModule",{value:!0}),e);var Hu=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var St=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)};var ye=(e,t,r)=>(Hu(e,t,"access private method"),r);var Mr=E(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.default=Yr;function Yr(){}Yr.prototype={diff:function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.callback;typeof n=="function"&&(i=n,n={}),this.options=n;var u=this;function o(p){return i?(setTimeout(function(){i(void 0,p)},0),!0):p}t=this.castInput(t),r=this.castInput(r),t=this.removeEmpty(this.tokenize(t)),r=this.removeEmpty(this.tokenize(r));var s=r.length,a=t.length,D=1,c=s+a;n.maxEditLength&&(c=Math.min(c,n.maxEditLength));var d=[{newPos:-1,components:[]}],l=this.extractCommon(d[0],r,t,0);if(d[0].newPos+1>=s&&l+1>=a)return o([{value:this.join(r),count:r.length}]);function F(){for(var p=-1*D;p<=D;p+=2){var m=void 0,h=d[p-1],C=d[p+1],g=(C?C.newPos:0)-p;h&&(d[p-1]=void 0);var y=h&&h.newPos+1=s&&g+1>=a)return o(Xu(u,m.components,r,t,u.useLongestToken));d[p]=m}D++}if(i)(function p(){setTimeout(function(){if(D>c)return i();F()||p()},0)})();else for(;D<=c;){var f=F();if(f)return f}},pushComponent:function(t,r,n){var i=t[t.length-1];i&&i.added===r&&i.removed===n?t[t.length-1]={count:i.count+1,added:r,removed:n}:t.push({count:1,added:r,removed:n})},extractCommon:function(t,r,n,i){for(var u=r.length,o=n.length,s=t.newPos,a=s-i,D=0;s+1F.length?p:F}),D.value=e.join(c)}else D.value=e.join(r.slice(s,s+D.count));s+=D.count,D.added||(a+=D.count)}}var l=t[o-1];return o>1&&typeof l.value=="string"&&(l.added||l.removed)&&e.equals("",l.value)&&(t[o-2].value+=l.value,t.pop()),t}function Zu(e){return{newPos:e.newPos,components:e.components.slice(0)}}});var qr=E(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.diffArrays=ti;ve.arrayDiff=void 0;var Qu=ei(Mr());function ei(e){return e&&e.__esModule?e:{default:e}}var Se=new Qu.default;ve.arrayDiff=Se;Se.tokenize=function(e){return e.slice()};Se.join=Se.removeEmpty=function(e){return e};function ti(e,t,r){return Se.diff(e,t,r)}});var ne={};ge(ne,{__assign:()=>Yt,__asyncDelegator:()=>Pi,__asyncGenerator:()=>Ni,__asyncValues:()=>Ri,__await:()=>ze,__awaiter:()=>wi,__classPrivateFieldGet:()=>Yi,__classPrivateFieldSet:()=>Mi,__createBinding:()=>ki,__decorate:()=>bi,__exportStar:()=>Si,__extends:()=>_i,__generator:()=>Oi,__importDefault:()=>ji,__importStar:()=>Li,__makeTemplateObject:()=>Ii,__metadata:()=>Bi,__param:()=>Ai,__read:()=>En,__rest:()=>xi,__spread:()=>vi,__spreadArrays:()=>Ti,__values:()=>Mt});function _i(e,t){jt(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function xi(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i=0;s--)(o=e[s])&&(u=(i<3?o(u):i>3?o(t,r,u):o(t,r))||u);return i>3&&u&&Object.defineProperty(t,r,u),u}function Ai(e,t){return function(r,n){t(r,n,e)}}function Bi(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function wi(e,t,r,n){function i(u){return u instanceof r?u:new r(function(o){o(u)})}return new(r||(r=Promise))(function(u,o){function s(c){try{D(n.next(c))}catch(d){o(d)}}function a(c){try{D(n.throw(c))}catch(d){o(d)}}function D(c){c.done?u(c.value):i(c.value).then(s,a)}D((n=n.apply(e,t||[])).next())})}function Oi(e,t){var r={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},n,i,u,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(D){return function(c){return a([D,c])}}function a(D){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(u=D[0]&2?i.return:D[0]?i.throw||((u=i.return)&&u.call(i),0):i.next)&&!(u=u.call(i,D[1])).done)return u;switch(i=0,u&&(D=[D[0]&2,u.value]),D[0]){case 0:case 1:u=D;break;case 4:return r.label++,{value:D[1],done:!1};case 5:r.label++,i=D[1],D=[0];continue;case 7:D=r.ops.pop(),r.trys.pop();continue;default:if(u=r.trys,!(u=u.length>0&&u[u.length-1])&&(D[0]===6||D[0]===2)){r=0;continue}if(D[0]===3&&(!u||D[1]>u[0]&&D[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function En(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return u}function vi(){for(var e=[],t=0;t1||s(l,F)})})}function s(l,F){try{a(n[l](F))}catch(f){d(u[0][3],f)}}function a(l){l.value instanceof ze?Promise.resolve(l.value.v).then(D,c):d(u[0][2],l)}function D(l){s("next",l)}function c(l){s("throw",l)}function d(l,F){l(F),u.shift(),u.length&&s(u[0][0],u[0][1])}}function Pi(e){var t,r;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,u){t[i]=e[i]?function(o){return(r=!r)?{value:ze(e[i](o)),done:i==="return"}:u?u(o):o}:u}}function Ri(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof Mt=="function"?Mt(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(u){r[u]=e[u]&&function(o){return new Promise(function(s,a){o=e[u](o),i(s,a,o.done,o.value)})}}function i(u,o,s,a){Promise.resolve(a).then(function(D){u({value:D,done:s})},o)}}function Ii(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function Li(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function ji(e){return e&&e.__esModule?e:{default:e}}function Yi(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function Mi(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}var jt,Yt,ue=Ot(()=>{jt=function(e,t){return jt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},jt(e,t)};Yt=function(){return Yt=Object.assign||function(t){for(var r,n=1,i=arguments.length;n{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.apiDescriptor={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(r=>me.apiDescriptor.value(r)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(r=>`${me.apiDescriptor.key(r)}: ${me.apiDescriptor.value(e[r])}`).join(", ")} }`},pair:({key:e,value:t})=>me.apiDescriptor.value({[e]:t})}});var Cn=E($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});var qi=(ue(),Y(ne));qi.__exportStar(qt(),$t)});var ft={};ge(ft,{default:()=>Vt});var M,Vt,We=Ot(()=>{M=e=>e;M.grey=M;M.red=M;M.bold=M;M.yellow=M;M.blue=M;M.default=M;Vt=M});var Wt=E(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});var gn=(We(),Y(ft));zt.commonDeprecatedHandler=(e,t,{descriptor:r})=>{let n=[`${gn.default.yellow(typeof e=="string"?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${gn.default.blue(typeof t=="string"?r.key(t):r.pair(t))}`),n.join("; ")+"."}});var yn=E(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});var $i=(ue(),Y(ne));$i.__exportStar(Wt(),Gt)});var _n=E(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});var Ut=(We(),Y(ft));Kt.commonInvalidHandler=(e,t,r)=>[`Invalid ${Ut.default.red(r.descriptor.key(e))} value.`,`Expected ${Ut.default.blue(r.schemas[e].expected(r))},`,`but received ${Ut.default.red(r.descriptor.value(t))}.`].join(" ")});var Jt=E(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});var Vi=(ue(),Y(ne));Vi.__exportStar(_n(),Ht)});var An=E((Pa,bn)=>{"use strict";var Xt=[],xn=[];bn.exports=function(e,t){if(e===t)return 0;var r=e;e.length>t.length&&(e=t,t=r);var n=e.length,i=t.length;if(n===0)return i;if(i===0)return n;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-i);)n--,i--;if(n===0)return i;for(var u=0;us?D>s?s+1:D:D>a?a+1:D;return s}});var Qt=E(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});var Bn=(We(),Y(ft)),zi=An();Zt.levenUnknownHandler=(e,t,{descriptor:r,logger:n,schemas:i})=>{let u=[`Ignored unknown option ${Bn.default.yellow(r.pair({key:e,value:t}))}.`],o=Object.keys(i).sort().find(s=>zi(e,s)<3);o&&u.push(`Did you mean ${Bn.default.blue(r.key(o))}?`),n.warn(u.join(" "))}});var wn=E(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});var Wi=(ue(),Y(ne));Wi.__exportStar(Qt(),er)});var On=E(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});var tr=(ue(),Y(ne));tr.__exportStar(yn(),Ge);tr.__exportStar(Jt(),Ge);tr.__exportStar(wn(),Ge)});var ie=E(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});var Gi=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function kn(e,t){let r=new e(t),n=Object.create(r);for(let i of Gi)i in t&&(n[i]=Ui(t[i],r,pt.prototype[i].length));return n}dt.createSchema=kn;var pt=class{constructor(t){this.name=t.name}static create(t){return kn(this,t)}default(t){}expected(t){return"nothing"}validate(t,r){return!1}deprecated(t,r){return!1}forward(t,r){}redirect(t,r){}overlap(t,r,n){return t}preprocess(t,r){return t}postprocess(t,r){return t}};dt.Schema=pt;function Ui(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}});var Sn=E(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});var Ki=ie(),rr=class extends Ki.Schema{constructor(t){super(t),this._sourceName=t.sourceName}expected(t){return t.schemas[this._sourceName].expected(t)}validate(t,r){return r.schemas[this._sourceName].validate(t,r)}redirect(t,r){return this._sourceName}};nr.AliasSchema=rr});var vn=E(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});var Hi=ie(),ur=class extends Hi.Schema{expected(){return"anything"}validate(){return!0}};ir.AnySchema=ur});var Nn=E(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});var Ji=(ue(),Y(ne)),Xi=ie(),or=class extends Xi.Schema{constructor(t){var{valueSchema:r,name:n=r.name}=t,i=Ji.__rest(t,["valueSchema","name"]);super(Object.assign({},i,{name:n})),this._valueSchema=r}expected(t){return`an array of ${this._valueSchema.expected(t)}`}validate(t,r){if(!Array.isArray(t))return!1;let n=[];for(let i of t){let u=r.normalizeValidateResult(this._valueSchema.validate(i,r),i);u!==!0&&n.push(u.value)}return n.length===0?!0:{value:n}}deprecated(t,r){let n=[];for(let i of t){let u=r.normalizeDeprecatedResult(this._valueSchema.deprecated(i,r),i);u!==!1&&n.push(...u.map(({value:o})=>({value:[o]})))}return n}forward(t,r){let n=[];for(let i of t){let u=r.normalizeForwardResult(this._valueSchema.forward(i,r),i);n.push(...u.map(Tn))}return n}redirect(t,r){let n=[],i=[];for(let u of t){let o=r.normalizeRedirectResult(this._valueSchema.redirect(u,r),u);"remain"in o&&n.push(o.remain),i.push(...o.redirect.map(Tn))}return n.length===0?{redirect:i}:{redirect:i,remain:n}}overlap(t,r){return t.concat(r)}};sr.ArraySchema=or;function Tn({from:e,to:t}){return{from:[e],to:t}}});var Pn=E(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});var Zi=ie(),ar=class extends Zi.Schema{expected(){return"true or false"}validate(t){return typeof t=="boolean"}};Dr.BooleanSchema=ar});var Ft=E(j=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});function Qi(e,t){let r=Object.create(null);for(let n of e){let i=n[t];if(r[i])throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);r[i]=n}return r}j.recordFromArray=Qi;function eo(e,t){let r=new Map;for(let n of e){let i=n[t];if(r.has(i))throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);r.set(i,n)}return r}j.mapFromArray=eo;function to(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}j.createAutoChecklist=to;function ro(e,t){let r=[],n=[];for(let i of e)t(i)?r.push(i):n.push(i);return[r,n]}j.partition=ro;function no(e){return e===Math.floor(e)}j.isInt=no;function uo(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,i=["undefined","object","boolean","number","string"];return r!==n?i.indexOf(r)-i.indexOf(n):r!=="string"?Number(e)-Number(t):e.localeCompare(t)}j.comparePrimitive=uo;function io(e){return e===void 0?{}:e}j.normalizeDefaultResult=io;function oo(e,t){return e===!0?!0:e===!1?{value:t}:e}j.normalizeValidateResult=oo;function so(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}j.normalizeDeprecatedResult=so;function cr(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}j.normalizeTransferResult=cr;function Rn(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>cr(r,t)):[cr(e,t)]}j.normalizeForwardResult=Rn;function ao(e,t){let r=Rn(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return r.length===0?{remain:t,redirect:r}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}j.normalizeRedirectResult=ao});var Ln=E(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});var Do=ie(),In=Ft(),lr=class extends Do.Schema{constructor(t){super(t),this._choices=In.mapFromArray(t.choices.map(r=>r&&typeof r=="object"?r:{value:r}),"value")}expected({descriptor:t}){let r=Array.from(this._choices.keys()).map(u=>this._choices.get(u)).filter(u=>!u.deprecated).map(u=>u.value).sort(In.comparePrimitive).map(t.value),n=r.slice(0,-2),i=r.slice(-2);return n.concat(i.join(" or ")).join(", ")}validate(t){return this._choices.has(t)}deprecated(t){let r=this._choices.get(t);return r&&r.deprecated?{value:t}:!1}forward(t){let r=this._choices.get(t);return r?r.forward:void 0}redirect(t){let r=this._choices.get(t);return r?r.redirect:void 0}};fr.ChoiceSchema=lr});var Fr=E(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});var co=ie(),pr=class extends co.Schema{expected(){return"a number"}validate(t,r){return typeof t=="number"}};dr.NumberSchema=pr});var jn=E(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});var lo=Ft(),fo=Fr(),mr=class extends fo.NumberSchema{expected(){return"an integer"}validate(t,r){return r.normalizeValidateResult(super.validate(t,r),t)===!0&&lo.isInt(t)}};hr.IntegerSchema=mr});var Yn=E(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});var po=ie(),Er=class extends po.Schema{expected(){return"a string"}validate(t){return typeof t=="string"}};Cr.StringSchema=Er});var Mn=E(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var ce=(ue(),Y(ne));ce.__exportStar(Sn(),Q);ce.__exportStar(vn(),Q);ce.__exportStar(Nn(),Q);ce.__exportStar(Pn(),Q);ce.__exportStar(Ln(),Q);ce.__exportStar(jn(),Q);ce.__exportStar(Fr(),Q);ce.__exportStar(Yn(),Q)});var qn=E(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});var Fo=qt(),mo=Wt(),ho=Jt(),Eo=Qt();Ae.defaultDescriptor=Fo.apiDescriptor;Ae.defaultUnknownHandler=Eo.levenUnknownHandler;Ae.defaultInvalidHandler=ho.commonInvalidHandler;Ae.defaultDeprecatedHandler=mo.commonDeprecatedHandler});var $n=E(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});var mt=qn(),q=Ft();Et.normalize=(e,t,r)=>new ht(t,r).normalize(e);var ht=class{constructor(t,r){let{logger:n=console,descriptor:i=mt.defaultDescriptor,unknown:u=mt.defaultUnknownHandler,invalid:o=mt.defaultInvalidHandler,deprecated:s=mt.defaultDeprecatedHandler}=r||{};this._utils={descriptor:i,logger:n||{warn:()=>{}},schemas:q.recordFromArray(t,"name"),normalizeDefaultResult:q.normalizeDefaultResult,normalizeDeprecatedResult:q.normalizeDeprecatedResult,normalizeForwardResult:q.normalizeForwardResult,normalizeRedirectResult:q.normalizeRedirectResult,normalizeValidateResult:q.normalizeValidateResult},this._unknownHandler=u,this._invalidHandler=o,this._deprecatedHandler=s,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=q.createAutoChecklist()}normalize(t){let r={},n=[t],i=()=>{for(;n.length!==0;){let u=n.shift(),o=this._applyNormalization(u,r);n.push(...o)}};i();for(let u of Object.keys(this._utils.schemas)){let o=this._utils.schemas[u];if(!(u in r)){let s=q.normalizeDefaultResult(o.default(this._utils));"value"in s&&n.push({[u]:s.value})}}i();for(let u of Object.keys(this._utils.schemas)){let o=this._utils.schemas[u];u in r&&(r[u]=o.postprocess(r[u],this._utils))}return r}_applyNormalization(t,r){let n=[],[i,u]=q.partition(Object.keys(t),o=>o in this._utils.schemas);for(let o of i){let s=this._utils.schemas[o],a=s.preprocess(t[o],this._utils),D=q.normalizeValidateResult(s.validate(a,this._utils),a);if(D!==!0){let{value:f}=D,p=this._invalidHandler(o,f,this._utils);throw typeof p=="string"?new Error(p):p}let c=({from:f,to:p})=>{n.push(typeof p=="string"?{[p]:f}:{[p.key]:p.value})},d=({value:f,redirectTo:p})=>{let m=q.normalizeDeprecatedResult(s.deprecated(f,this._utils),a,!0);if(m!==!1)if(m===!0)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,p,this._utils));else for(let{value:h}of m){let C={key:o,value:h};if(!this._hasDeprecationWarned(C)){let g=typeof p=="string"?{key:p,value:h}:p;this._utils.logger.warn(this._deprecatedHandler(C,g,this._utils))}}};q.normalizeForwardResult(s.forward(a,this._utils),a).forEach(c);let F=q.normalizeRedirectResult(s.redirect(a,this._utils),a);if(F.redirect.forEach(c),"remain"in F){let f=F.remain;r[o]=o in r?s.overlap(r[o],f,this._utils):f,d({value:f})}for(let{from:f,to:p}of F.redirect)d({value:f,redirectTo:p})}for(let o of u){let s=t[o],a=this._unknownHandler(o,s,this._utils);if(a)for(let D of Object.keys(a)){let c={[D]:a[D]};D in this._utils.schemas?n.push(c):Object.assign(r,c)}}return n}};Et.Normalizer=ht});var Vn=E(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});var Ue=(ue(),Y(ne));Ue.__exportStar(Cn(),he);Ue.__exportStar(On(),he);Ue.__exportStar(Mn(),he);Ue.__exportStar($n(),he);Ue.__exportStar(ie(),he)});var Jn={};ge(Jn,{getChalk:()=>wo,shouldHighlight:()=>Bo});var Bo,wo,Xn=Ot(()=>{We();Bo=()=>!1,wo=()=>Vt});var tu=E(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.codeFrameColumns=eu;gt.default=So;var xr=(Xn(),Y(Jn)),Zn=!1;function Oo(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}var Qn=/\r\n|[\n\r\u2028\u2029]/;function ko(e,t,r){let n=Object.assign({column:0,line:-1},e.start),i=Object.assign({},n,e.end),{linesAbove:u=2,linesBelow:o=3}=r||{},s=n.line,a=n.column,D=i.line,c=i.column,d=Math.max(s-(u+1),0),l=Math.min(t.length,D+o);s===-1&&(d=0),D===-1&&(l=t.length);let F=D-s,f={};if(F)for(let p=0;p<=F;p++){let m=p+s;if(!a)f[m]=!0;else if(p===0){let h=t[m-1].length;f[m]=[a,h-a+1]}else if(p===F)f[m]=[0,c];else{let h=t[m-p].length;f[m]=[0,h]}}else a===c?a?f[s]=[a,0]:f[s]=!0:f[s]=[a,c-a];return{start:d,end:l,markerLines:f}}function eu(e,t,r={}){let n=(r.highlightCode||r.forceColor)&&(0,xr.shouldHighlight)(r),i=(0,xr.getChalk)(r),u=Oo(i),o=(p,m)=>n?p(m):m,s=e.split(Qn),{start:a,end:D,markerLines:c}=ko(t,s,r),d=t.start&&typeof t.start.column=="number",l=String(D).length,f=(n?(0,xr.default)(e,r):e).split(Qn,D).slice(a,D).map((p,m)=>{let h=a+1+m,g=` ${` ${h}`.slice(-l)} |`,y=c[h],b=!c[h+1];if(y){let se="";if(Array.isArray(y)){let G=p.slice(0,Math.max(y[0]-1,0)).replace(/[^\t]/g," "),ae=y[1]||1;se=[` - `,o(u.gutter,g.replace(/\d/g," "))," ",G,o(u.marker,"^").repeat(ae)].join(""),b&&r.message&&(se+=" "+o(u.message,r.message))}return[o(u.marker,">"),o(u.gutter,g),p.length>0?` ${p}`:"",se].join("")}else return` ${o(u.gutter,g)}${p.length>0?` ${p}`:""}`}).join(` -`);return r.message&&!d&&(f=`${" ".repeat(l+1)}${r.message} -${f}`),n?i.reset(f):f}function So(e,t,r,n={}){if(!Zn){Zn=!0;let u="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";{let o=new Error(u);o.name="DeprecationWarning",console.warn(new Error(u))}}return r=Math.max(r,0),eu(e,{start:{column:r,line:t}},n)}});var xs={};ge(xs,{__debug:()=>_s,check:()=>gs,doc:()=>wt,format:()=>Vu,formatWithCursor:()=>$u,getSupportInfo:()=>ys,util:()=>Bt,version:()=>qu});var Ju=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},De=Ju;var Bu=kt(qr(),1);var U="string",V="array",K="cursor",v="indent",T="align",N="trim",A="group",w="fill",B="if-break",P="indent-if-break",R="line-suffix",I="line-suffix-boundary",x="line",k="label",O="break-parent",tt=new Set([K,v,T,N,A,w,B,P,R,I,x,k,O]);function ri(e){if(typeof e=="string")return U;if(Array.isArray(e))return V;if(!e)return;let{type:t}=e;if(tt.has(t))return t}var H=ri;var ni=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function ui(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', -Expected it to be 'string' or 'object'.`;if(H(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=ni([...tt].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'. -Expected it to be ${n}.`}var Tt=class extends Error{name="InvalidDocError";constructor(t){super(ui(t)),this.doc=t}},te=Tt;var $r={};function ii(e,t,r,n){let i=[e];for(;i.length>0;){let u=i.pop();if(u===$r){r(i.pop());continue}r&&i.push(u,$r);let o=H(u);if(!o)throw new te(u);if((t==null?void 0:t(u))!==!1)switch(o){case V:case w:{let s=o===V?u:u.parts;for(let a=s.length,D=a-1;D>=0;--D)i.push(s[D]);break}case B:i.push(u.flatContents,u.breakContents);break;case A:if(n&&u.expandedStates)for(let s=u.expandedStates.length,a=s-1;a>=0;--a)i.push(u.expandedStates[a]);else i.push(u.contents);break;case T:case v:case P:case k:case R:i.push(u.contents);break;case U:case K:case N:case I:case x:case O:break;default:throw new te(u)}}}var Te=ii;var Vr=()=>{},J=Vr,rt=Vr;function Fe(e){return J(e),{type:v,contents:e}}function de(e,t){return J(t),{type:T,contents:t,n:e}}function Nt(e,t={}){return J(e),rt(t.expandedStates,!0),{type:A,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function zr(e){return de(Number.NEGATIVE_INFINITY,e)}function Wr(e){return de({type:"root"},e)}function Gr(e){return de(-1,e)}function Ur(e,t){return Nt(e[0],{...t,expandedStates:e})}function nt(e){return rt(e),{type:w,parts:e}}function Kr(e,t="",r={}){return J(e),t!==""&&J(t),{type:B,breakContents:e,flatContents:t,groupId:r.groupId}}function Hr(e,t){return J(e),{type:P,contents:e,groupId:t.groupId,negate:t.negate}}function Ne(e){return J(e),{type:R,contents:e}}var Jr={type:I},_e={type:O},Xr={type:N},Pe={type:x,hard:!0},Pt={type:x,hard:!0,literal:!0},ut={type:x},Zr={type:x,soft:!0},X=[Pe,_e],it=[Pt,_e],Re={type:K};function Ie(e,t){J(e),rt(t);let r=[];for(let n=0;n0){for(let i=0;i{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},_=oi;function en(e){let t=e.indexOf("\r");return t>=0?e.charAt(t+1)===` -`?"crlf":"cr":"lf"}function Le(e){switch(e){case"cr":return"\r";case"crlf":return`\r +(function(t){function e(){var o=t();return o.default||o}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var f=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};f.prettier=e()}})(function(){"use strict";var au=Object.create;var $e=Object.defineProperty;var Du=Object.getOwnPropertyDescriptor;var cu=Object.getOwnPropertyNames;var lu=Object.getPrototypeOf,fu=Object.prototype.hasOwnProperty;var pu=(t,e)=>()=>(t&&(e=t(t=0)),e);var Ue=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Me=(t,e)=>{for(var r in e)$e(t,r,{get:e[r],enumerable:!0})},rr=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of cu(e))!fu.call(t,o)&&o!==r&&$e(t,o,{get:()=>e[o],enumerable:!(n=Du(e,o))||n.enumerable});return t};var Ce=(t,e,r)=>(r=t!=null?au(lu(t)):{},rr(e||!t||!t.__esModule?$e(r,"default",{value:t,enumerable:!0}):r,t)),nr=t=>rr($e({},"__esModule",{value:!0}),t);var du=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var Ct=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)};var ce=(t,e,r)=>(du(t,e,"access private method"),r);var or=Ue(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.default=ur;function ur(){}ur.prototype={diff:function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=n.callback;typeof n=="function"&&(o=n,n={}),this.options=n;var u=this;function i(p){return o?(setTimeout(function(){o(void 0,p)},0),!0):p}e=this.castInput(e),r=this.castInput(r),e=this.removeEmpty(this.tokenize(e)),r=this.removeEmpty(this.tokenize(r));var s=r.length,a=e.length,D=1,c=s+a;n.maxEditLength&&(c=Math.min(c,n.maxEditLength));var F=[{newPos:-1,components:[]}],f=this.extractCommon(F[0],r,e,0);if(F[0].newPos+1>=s&&f+1>=a)return i([{value:this.join(r),count:r.length}]);function d(){for(var p=-1*D;p<=D;p+=2){var m=void 0,E=F[p-1],h=F[p+1],g=(h?h.newPos:0)-p;E&&(F[p-1]=void 0);var C=E&&E.newPos+1=s&&g+1>=a)return i(mu(u,m.components,r,e,u.useLongestToken));F[p]=m}D++}if(o)(function p(){setTimeout(function(){if(D>c)return o();d()||p()},0)})();else for(;D<=c;){var l=d();if(l)return l}},pushComponent:function(e,r,n){var o=e[e.length-1];o&&o.added===r&&o.removed===n?e[e.length-1]={count:o.count+1,added:r,removed:n}:e.push({count:1,added:r,removed:n})},extractCommon:function(e,r,n,o){for(var u=r.length,i=n.length,s=e.newPos,a=s-o,D=0;s+1d.length?p:d}),D.value=t.join(c)}else D.value=t.join(r.slice(s,s+D.count));s+=D.count,D.added||(a+=D.count)}}var f=e[i-1];return i>1&&typeof f.value=="string"&&(f.added||f.removed)&&t.equals("",f.value)&&(e[i-2].value+=f.value,e.pop()),e}function Eu(t){return{newPos:t.newPos,components:t.components.slice(0)}}});var ir=Ue(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.diffArrays=gu;ye.arrayDiff=void 0;var hu=Cu(or());function Cu(t){return t&&t.__esModule?t:{default:t}}var ge=new hu.default;ye.arrayDiff=ge;ge.tokenize=function(t){return t.slice()};ge.join=ge.removeEmpty=function(t){return t};function gu(t,e,r){return ge.diff(t,e,r)}});var Pe=Ue((ss,Rr)=>{"use strict";var Ir=new Proxy(String,{get:()=>Ir});Rr.exports=Ir});var ln={};Me(ln,{default:()=>eo,shouldHighlight:()=>Qu});var Qu,eo,fn=pu(()=>{Qu=()=>!1,eo=String});var hn=Ue(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.codeFrameColumns=En;pt.default=oo;var pn=(fn(),nr(ln)),to=Pe(),dn=to,jt;function ro(t){if(t){var e;return(e=jt)!=null||(jt=new dn.constructor({enabled:!0,level:1})),jt}return dn}var Fn=!1;function no(t){return{gutter:t.grey,marker:t.red.bold,message:t.red.bold}}var mn=/\r\n|[\n\r\u2028\u2029]/;function uo(t,e,r){let n=Object.assign({column:0,line:-1},t.start),o=Object.assign({},n,t.end),{linesAbove:u=2,linesBelow:i=3}=r||{},s=n.line,a=n.column,D=o.line,c=o.column,F=Math.max(s-(u+1),0),f=Math.min(e.length,D+i);s===-1&&(F=0),D===-1&&(f=e.length);let d=D-s,l={};if(d)for(let p=0;p<=d;p++){let m=p+s;if(!a)l[m]=!0;else if(p===0){let E=e[m-1].length;l[m]=[a,E-a+1]}else if(p===d)l[m]=[0,c];else{let E=e[m-p].length;l[m]=[0,E]}}else a===c?a?l[s]=[a,0]:l[s]=!0:l[s]=[a,c-a];return{start:F,end:f,markerLines:l}}function En(t,e,r={}){let n=(r.highlightCode||r.forceColor)&&(0,pn.shouldHighlight)(r),o=ro(r.forceColor),u=no(o),i=(p,m)=>n?p(m):m,s=t.split(mn),{start:a,end:D,markerLines:c}=uo(e,s,r),F=e.start&&typeof e.start.column=="number",f=String(D).length,l=(n?(0,pn.default)(t,r):t).split(mn,D).slice(a,D).map((p,m)=>{let E=a+1+m,g=` ${` ${E}`.slice(-f)} |`,C=c[E],_=!c[E+1];if(C){let Z="";if(Array.isArray(C)){let $=p.slice(0,Math.max(C[0]-1,0)).replace(/[^\t]/g," "),Q=C[1]||1;Z=[` + `,i(u.gutter,g.replace(/\d/g," "))," ",$,i(u.marker,"^").repeat(Q)].join(""),_&&r.message&&(Z+=" "+i(u.message,r.message))}return[i(u.marker,">"),i(u.gutter,g),p.length>0?` ${p}`:"",Z].join("")}else return` ${i(u.gutter,g)}${p.length>0?` ${p}`:""}`}).join(` +`);return r.message&&!F&&(l=`${" ".repeat(f+1)}${r.message} +${l}`),n?o.reset(l):l}function oo(t,e,r,n={}){if(!Fn){Fn=!0;let u="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";{let i=new Error(u);i.name="DeprecationWarning",console.warn(new Error(u))}}return r=Math.max(r,0),En(t,{start:{column:r,line:e}},n)}});var Qo={};Me(Qo,{__debug:()=>Zo,check:()=>Jo,doc:()=>er,format:()=>su,formatWithCursor:()=>iu,getSupportInfo:()=>Xo,util:()=>Qt,version:()=>ou});var Fu=(t,e,r,n)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(r,n):r.global?e.replace(r,n):e.split(r).join(n)},ee=Fu;var Wn=Ce(ir(),1);var U="string",j="array",M="cursor",T="indent",S="align",v="trim",A="group",k="fill",B="if-break",P="indent-if-break",L="line-suffix",I="line-suffix-boundary",x="line",O="label",b="break-parent",We=new Set([M,T,S,v,A,k,B,P,L,I,x,O,b]);function yu(t){if(typeof t=="string")return U;if(Array.isArray(t))return j;if(!t)return;let{type:e}=t;if(We.has(e))return e}var W=yu;var xu=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function _u(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', +Expected it to be 'string' or 'object'.`;if(W(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=xu([...We].map(o=>`'${o}'`));return`Unexpected doc.type '${t.type}'. +Expected it to be ${n}.`}var yt=class extends Error{name="InvalidDocError";constructor(e){super(_u(e)),this.doc=e}},q=yt;var sr={};function Au(t,e,r,n){let o=[t];for(;o.length>0;){let u=o.pop();if(u===sr){r(o.pop());continue}r&&o.push(u,sr);let i=W(u);if(!i)throw new q(u);if((e==null?void 0:e(u))!==!1)switch(i){case j:case k:{let s=i===j?u:u.parts;for(let a=s.length,D=a-1;D>=0;--D)o.push(s[D]);break}case B:o.push(u.flatContents,u.breakContents);break;case A:if(n&&u.expandedStates)for(let s=u.expandedStates.length,a=s-1;a>=0;--a)o.push(u.expandedStates[a]);else o.push(u.contents);break;case S:case T:case P:case O:case L:o.push(u.contents);break;case U:case M:case v:case I:case x:case b:break;default:throw new q(u)}}}var xe=Au;var ar=()=>{},z=ar,ze=ar;function ie(t){return z(t),{type:T,contents:t}}function oe(t,e){return z(e),{type:S,contents:e,n:t}}function xt(t,e={}){return z(t),ze(e.expandedStates,!0),{type:A,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function Dr(t){return oe(Number.NEGATIVE_INFINITY,t)}function cr(t){return oe({type:"root"},t)}function lr(t){return oe(-1,t)}function fr(t,e){return xt(t[0],{...e,expandedStates:t})}function Ge(t){return ze(t),{type:k,parts:t}}function pr(t,e="",r={}){return z(t),e!==""&&z(e),{type:B,breakContents:t,flatContents:e,groupId:r.groupId}}function dr(t,e){return z(t),{type:P,contents:t,groupId:e.groupId,negate:e.negate}}function _e(t){return z(t),{type:L,contents:t}}var Fr={type:I},le={type:b},mr={type:v},Ae={type:x,hard:!0},_t={type:x,hard:!0,literal:!0},Ke={type:x},Er={type:x,soft:!0},G=[Ae,le],He=[_t,le],Be={type:M};function ke(t,e){z(t),ze(e);let r=[];for(let n=0;n0){for(let o=0;o{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[r<0?e.length+r:r]:e.at(r)},y=Bu;function Cr(t){let e=t.indexOf("\r");return e>=0?t.charAt(e+1)===` +`?"crlf":"cr":"lf"}function be(t){switch(t){case"cr":return"\r";case"crlf":return`\r `;default:return` -`}}function Rt(e,t){let r;switch(t){case` +`}}function At(t,e){let r;switch(e){case` `:r=/\n/g;break;case"\r":r=/\r/g;break;case`\r -`:r=/\r\n/g;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let n=e.match(r);return n?n.length:0}function tn(e){return De(!1,e,/\r\n?/g,` -`)}var rn=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;var nn={eastAsianWidth(e){var t=e.charCodeAt(0),r=e.length==2?e.charCodeAt(1):0,n=t;return 55296<=t&&t<=56319&&56320<=r&&r<=57343&&(t&=1023,r&=1023,n=t<<10|r,n+=65536),n==12288||65281<=n&&n<=65376||65504<=n&&n<=65510?"F":4352<=n&&n<=4447||4515<=n&&n<=4519||4602<=n&&n<=4607||9001<=n&&n<=9002||11904<=n&&n<=11929||11931<=n&&n<=12019||12032<=n&&n<=12245||12272<=n&&n<=12283||12289<=n&&n<=12350||12353<=n&&n<=12438||12441<=n&&n<=12543||12549<=n&&n<=12589||12593<=n&&n<=12686||12688<=n&&n<=12730||12736<=n&&n<=12771||12784<=n&&n<=12830||12832<=n&&n<=12871||12880<=n&&n<=13054||13056<=n&&n<=19903||19968<=n&&n<=42124||42128<=n&&n<=42182||43360<=n&&n<=43388||44032<=n&&n<=55203||55216<=n&&n<=55238||55243<=n&&n<=55291||63744<=n&&n<=64255||65040<=n&&n<=65049||65072<=n&&n<=65106||65108<=n&&n<=65126||65128<=n&&n<=65131||110592<=n&&n<=110593||127488<=n&&n<=127490||127504<=n&&n<=127546||127552<=n&&n<=127560||127568<=n&&n<=127569||131072<=n&&n<=194367||177984<=n&&n<=196605||196608<=n&&n<=262141?"W":"N"}};var si=/[^\x20-\x7F]/;function ai(e){if(!e)return 0;if(!si.test(e))return e.length;e=e.replace(rn()," ");let t=0;for(let r of e){let n=r.codePointAt(0);if(n<=31||n>=127&&n<=159||n>=768&&n<=879)continue;let i=nn.eastAsianWidth(r);t+=i==="F"||i==="W"?2:1}return t}var je=ai;var sn=e=>{if(Array.isArray(e))return e;if(e.type!==w)throw new Error(`Expect doc to be 'array' or '${w}'.`);return e.parts};function Me(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(u){if(r.has(u))return r.get(u);let o=i(u);return r.set(u,o),o}function i(u){switch(H(u)){case V:return t(u.map(n));case w:return t({...u,parts:u.parts.map(n)});case B:return t({...u,breakContents:n(u.breakContents),flatContents:n(u.flatContents)});case A:{let{expandedStates:o,contents:s}=u;return o?(o=o.map(n),s=o[0]):s=n(s),t({...u,contents:s,expandedStates:o})}case T:case v:case P:case k:case R:return t({...u,contents:n(u.contents)});case U:case K:case N:case I:case x:case O:return t(u);default:throw new te(u)}}}function st(e,t,r){let n=r,i=!1;function u(o){if(i)return!1;let s=t(o);s!==void 0&&(i=!0,n=s)}return Te(e,u),n}function Di(e){if(e.type===A&&e.break||e.type===x&&e.hard||e.type===O)return!0}function an(e){return st(e,Di,!1)}function un(e){if(e.length>0){let t=_(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Dn(e){let t=new Set,r=[];function n(u){if(u.type===O&&un(r),u.type===A){if(r.push(u),t.has(u))return!1;t.add(u)}}function i(u){u.type===A&&r.pop().break&&un(r)}Te(e,n,i,!0)}function ci(e){return e.type===x&&!e.hard?e.soft?"":" ":e.type===B?e.flatContents:e}function cn(e){return Me(e,ci)}function on(e){for(e=[...e];e.length>=2&&_(!1,e,-2).type===x&&_(!1,e,-1).type===O;)e.length-=2;if(e.length>0){let t=Ye(_(!1,e,-1));e[e.length-1]=t}return e}function Ye(e){switch(H(e)){case T:case v:case P:case A:case R:case k:{let t=Ye(e.contents);return{...e,contents:t}}case B:return{...e,breakContents:Ye(e.breakContents),flatContents:Ye(e.flatContents)};case w:return{...e,parts:on(e.parts)};case V:return on(e);case U:return e.replace(/[\n\r]*$/,"");case K:case N:case I:case x:case O:break;default:throw new te(e)}return e}function at(e){return Ye(fi(e))}function li(e){switch(H(e)){case w:if(e.parts.every(t=>t===""))return"";break;case A:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===A&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case T:case v:case P:case R:if(!e.contents)return"";break;case B:if(!e.flatContents&&!e.breakContents)return"";break;case V:{let t=[];for(let r of e){if(!r)continue;let[n,...i]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof _(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...i)}return t.length===0?"":t.length===1?t[0]:t}case U:case K:case N:case I:case x:case k:case O:break;default:throw new te(e)}return e}function fi(e){return Me(e,t=>li(t))}function ln(e,t=it){return Me(e,r=>typeof r=="string"?Ie(t,r.split(` -`)):r)}function pi(e){if(e.type===x)return!0}function fn(e){return st(e,pi,!1)}function Dt(e,t){return e.type===k?{...e,contents:t(e.contents)}:t(e)}var L=Symbol("MODE_BREAK"),Z=Symbol("MODE_FLAT"),qe=Symbol("cursor");function pn(){return{value:"",length:0,queue:[]}}function di(e,t){return It(e,{type:"indent"},t)}function Fi(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||pn():t<0?It(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:It(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function It(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],i="",u=0,o=0,s=0;for(let f of n)switch(f.type){case"indent":c(),r.useTabs?a(1):D(r.tabWidth);break;case"stringAlign":c(),i+=f.n,u+=f.n.length;break;case"numberAlign":o+=1,s+=f.n;break;default:throw new Error(`Unexpected type '${f.type}'`)}return l(),{...e,value:i,length:u,queue:n};function a(f){i+=" ".repeat(f),u+=r.tabWidth*f}function D(f){i+=" ".repeat(f),u+=f}function c(){r.useTabs?d():l()}function d(){o>0&&a(o),F()}function l(){s>0&&D(s),F()}function F(){o=0,s=0}}function Lt(e){let t=0,r=0,n=e.length;e:for(;n--;){let i=e[n];if(i===qe){r++;continue}for(let u=i.length-1;u>=0;u--){let o=i[u];if(o===" "||o===" ")t++;else{e[n]=i.slice(0,u+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(qe);return t}function ct(e,t,r,n,i,u){if(r===Number.POSITIVE_INFINITY)return!0;let o=t.length,s=[e],a=[];for(;r>=0;){if(s.length===0){if(o===0)return!0;s.push(t[--o]);continue}let{mode:D,doc:c}=s.pop();switch(H(c)){case U:a.push(c),r-=je(c);break;case V:case w:{let d=sn(c);for(let l=d.length-1;l>=0;l--)s.push({mode:D,doc:d[l]});break}case v:case T:case P:case k:s.push({mode:D,doc:c.contents});break;case N:r+=Lt(a);break;case A:{if(u&&c.break)return!1;let d=c.break?L:D,l=c.expandedStates&&d===L?_(!1,c.expandedStates,-1):c.contents;s.push({mode:d,doc:l});break}case B:{let l=(c.groupId?i[c.groupId]||Z:D)===L?c.breakContents:c.flatContents;l&&s.push({mode:D,doc:l});break}case x:if(D===L||c.hard)return!0;c.soft||(a.push(" "),r--);break;case R:n=!0;break;case I:if(n)return!1;break}}return!1}function xe(e,t){let r={},n=t.printWidth,i=Le(t.endOfLine),u=0,o=[{ind:pn(),mode:L,doc:e}],s=[],a=!1,D=[],c=0;for(Dn(e);o.length>0;){let{ind:l,mode:F,doc:f}=o.pop();switch(H(f)){case U:{let p=i!==` -`?De(!1,f,` -`,i):f;s.push(p),o.length>0&&(u+=je(p));break}case V:for(let p=f.length-1;p>=0;p--)o.push({ind:l,mode:F,doc:f[p]});break;case K:if(c>=2)throw new Error("There are too many 'cursor' in doc.");s.push(qe),c++;break;case v:o.push({ind:di(l,t),mode:F,doc:f.contents});break;case T:o.push({ind:Fi(l,f.n,t),mode:F,doc:f.contents});break;case N:u-=Lt(s);break;case A:switch(F){case Z:if(!a){o.push({ind:l,mode:f.break?L:Z,doc:f.contents});break}case L:{a=!1;let p={ind:l,mode:Z,doc:f.contents},m=n-u,h=D.length>0;if(!f.break&&ct(p,o,m,h,r))o.push(p);else if(f.expandedStates){let C=_(!1,f.expandedStates,-1);if(f.break){o.push({ind:l,mode:L,doc:C});break}else for(let g=1;g=f.expandedStates.length){o.push({ind:l,mode:L,doc:C});break}else{let y=f.expandedStates[g],b={ind:l,mode:Z,doc:y};if(ct(b,o,m,h,r)){o.push(b);break}}}else o.push({ind:l,mode:L,doc:f.contents});break}}f.id&&(r[f.id]=_(!1,o,-1).mode);break;case w:{let p=n-u,{parts:m}=f;if(m.length===0)break;let[h,C]=m,g={ind:l,mode:Z,doc:h},y={ind:l,mode:L,doc:h},b=ct(g,[],p,D.length>0,r,!0);if(m.length===1){b?o.push(g):o.push(y);break}let se={ind:l,mode:Z,doc:C},G={ind:l,mode:L,doc:C};if(m.length===2){b?o.push(se,g):o.push(G,y);break}m.splice(0,2);let ae={ind:l,mode:F,doc:nt(m)},Lr=m[0];ct({ind:l,mode:Z,doc:[h,C,Lr]},[],p,D.length>0,r,!0)?o.push(ae,se,g):b?o.push(ae,G,g):o.push(ae,G,y);break}case B:case P:{let p=f.groupId?r[f.groupId]:F;if(p===L){let m=f.type===B?f.breakContents:f.negate?f.contents:Fe(f.contents);m&&o.push({ind:l,mode:F,doc:m})}if(p===Z){let m=f.type===B?f.flatContents:f.negate?Fe(f.contents):f.contents;m&&o.push({ind:l,mode:F,doc:m})}break}case R:D.push({ind:l,mode:F,doc:f.contents});break;case I:D.length>0&&o.push({ind:l,mode:F,doc:Pe});break;case x:switch(F){case Z:if(f.hard)a=!0;else{f.soft||(s.push(" "),u+=1);break}case L:if(D.length>0){o.push({ind:l,mode:F,doc:f},...D.reverse()),D.length=0;break}f.literal?l.root?(s.push(i,l.root.value),u=l.root.length):(s.push(i),u=0):(u-=Lt(s),s.push(i+l.value),u=l.length);break}break;case k:o.push({ind:l,mode:F,doc:f.contents});break;case O:break;default:throw new te(f)}o.length===0&&D.length>0&&(o.push(...D.reverse()),D.length=0)}let d=s.indexOf(qe);if(d!==-1){let l=s.indexOf(qe,d+1),F=s.slice(0,d).join(""),f=s.slice(d+1,l).join(""),p=s.slice(l+1).join("");return{formatted:F+f+p,cursorNodeStart:F.length,cursorNodeText:f}}return{formatted:s.join("")}}function re(e){var t;if(!e)return"";if(Array.isArray(e)){let r=[];for(let n of e)if(Array.isArray(n))r.push(...re(n));else{let i=re(n);i!==""&&r.push(i)}return r}return e.type===B?{...e,breakContents:re(e.breakContents),flatContents:re(e.flatContents)}:e.type===A?{...e,contents:re(e.contents),expandedStates:(t=e.expandedStates)==null?void 0:t.map(re)}:e.type===w?{type:"fill",parts:e.parts.map(re)}:e.contents?{...e,contents:re(e.contents)}:e}function dn(e){let t=Object.create(null),r=new Set;return n(re(e));function n(u,o,s){var a,D;if(typeof u=="string")return JSON.stringify(u);if(Array.isArray(u)){let c=u.map(n).filter(Boolean);return c.length===1?c[0]:`[${c.join(", ")}]`}if(u.type===x){let c=((a=s==null?void 0:s[o+1])==null?void 0:a.type)===O;return u.literal?c?"literalline":"literallineWithoutBreakParent":u.hard?c?"hardline":"hardlineWithoutBreakParent":u.soft?"softline":"line"}if(u.type===O)return((D=s==null?void 0:s[o-1])==null?void 0:D.type)===x&&s[o-1].hard?void 0:"breakParent";if(u.type===N)return"trim";if(u.type===v)return"indent("+n(u.contents)+")";if(u.type===T)return u.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+n(u.contents)+")":u.n<0?"dedent("+n(u.contents)+")":u.n.type==="root"?"markAsRoot("+n(u.contents)+")":"align("+JSON.stringify(u.n)+", "+n(u.contents)+")";if(u.type===B)return"ifBreak("+n(u.breakContents)+(u.flatContents?", "+n(u.flatContents):"")+(u.groupId?(u.flatContents?"":', ""')+`, { groupId: ${i(u.groupId)} }`:"")+")";if(u.type===P){let c=[];u.negate&&c.push("negate: true"),u.groupId&&c.push(`groupId: ${i(u.groupId)}`);let d=c.length>0?`, { ${c.join(", ")} }`:"";return`indentIfBreak(${n(u.contents)}${d})`}if(u.type===A){let c=[];u.break&&u.break!=="propagated"&&c.push("shouldBreak: true"),u.id&&c.push(`id: ${i(u.id)}`);let d=c.length>0?`, { ${c.join(", ")} }`:"";return u.expandedStates?`conditionalGroup([${u.expandedStates.map(l=>n(l)).join(",")}]${d})`:`group(${n(u.contents)}${d})`}if(u.type===w)return`fill([${u.parts.map(c=>n(c)).join(", ")}])`;if(u.type===R)return"lineSuffix("+n(u.contents)+")";if(u.type===I)return"lineSuffixBoundary";if(u.type===k)return`label(${JSON.stringify(u.label)}, ${n(u.contents)})`;throw new Error("Unknown doc type "+u.type)}function i(u){if(typeof u!="symbol")return JSON.stringify(String(u));if(u in t)return t[u];let o=u.description||"symbol";for(let s=0;;s++){let a=o+(s>0?` #${s}`:"");if(!r.has(a))return r.add(a),t[u]=`Symbol.for(${JSON.stringify(a)})`}}}function mi(e,t,r=0){let n=0;for(let i=r;i/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;var xr={eastAsianWidth(t){var e=t.charCodeAt(0),r=t.length==2?t.charCodeAt(1):0,n=e;return 55296<=e&&e<=56319&&56320<=r&&r<=57343&&(e&=1023,r&=1023,n=e<<10|r,n+=65536),n==12288||65281<=n&&n<=65376||65504<=n&&n<=65510?"F":4352<=n&&n<=4447||4515<=n&&n<=4519||4602<=n&&n<=4607||9001<=n&&n<=9002||11904<=n&&n<=11929||11931<=n&&n<=12019||12032<=n&&n<=12245||12272<=n&&n<=12283||12289<=n&&n<=12350||12353<=n&&n<=12438||12441<=n&&n<=12543||12549<=n&&n<=12589||12593<=n&&n<=12686||12688<=n&&n<=12730||12736<=n&&n<=12771||12784<=n&&n<=12830||12832<=n&&n<=12871||12880<=n&&n<=13054||13056<=n&&n<=19903||19968<=n&&n<=42124||42128<=n&&n<=42182||43360<=n&&n<=43388||44032<=n&&n<=55203||55216<=n&&n<=55238||55243<=n&&n<=55291||63744<=n&&n<=64255||65040<=n&&n<=65049||65072<=n&&n<=65106||65108<=n&&n<=65126||65128<=n&&n<=65131||110592<=n&&n<=110593||127488<=n&&n<=127490||127504<=n&&n<=127546||127552<=n&&n<=127560||127568<=n&&n<=127569||131072<=n&&n<=194367||177984<=n&&n<=196605||196608<=n&&n<=262141?"W":"N"}};var ku=/[^\x20-\x7F]/;function bu(t){if(!t)return 0;if(!ku.test(t))return t.length;t=t.replace(yr()," ");let e=0;for(let r of t){let n=r.codePointAt(0);if(n<=31||n>=127&&n<=159||n>=768&&n<=879)continue;let o=xr.eastAsianWidth(r);e+=o==="F"||o==="W"?2:1}return e}var we=bu;var Br=t=>{if(Array.isArray(t))return t;if(t.type!==k)throw new Error(`Expect doc to be 'array' or '${k}'.`);return t.parts};function Ne(t,e){if(typeof t=="string")return e(t);let r=new Map;return n(t);function n(u){if(r.has(u))return r.get(u);let i=o(u);return r.set(u,i),i}function o(u){switch(W(u)){case j:return e(u.map(n));case k:return e({...u,parts:u.parts.map(n)});case B:return e({...u,breakContents:n(u.breakContents),flatContents:n(u.flatContents)});case A:{let{expandedStates:i,contents:s}=u;return i?(i=i.map(n),s=i[0]):s=n(s),e({...u,contents:s,expandedStates:i})}case S:case T:case P:case O:case L:return e({...u,contents:n(u.contents)});case U:case M:case v:case I:case x:case b:return e(u);default:throw new q(u)}}}function Je(t,e,r){let n=r,o=!1;function u(i){if(o)return!1;let s=e(i);s!==void 0&&(o=!0,n=s)}return xe(t,u),n}function wu(t){if(t.type===A&&t.break||t.type===x&&t.hard||t.type===b)return!0}function kr(t){return Je(t,wu,!1)}function _r(t){if(t.length>0){let e=y(!1,t,-1);!e.expandedStates&&!e.break&&(e.break="propagated")}return null}function br(t){let e=new Set,r=[];function n(u){if(u.type===b&&_r(r),u.type===A){if(r.push(u),e.has(u))return!1;e.add(u)}}function o(u){u.type===A&&r.pop().break&&_r(r)}xe(t,n,o,!0)}function Ou(t){return t.type===x&&!t.hard?t.soft?"":" ":t.type===B?t.flatContents:t}function wr(t){return Ne(t,Ou)}function Ar(t){for(t=[...t];t.length>=2&&y(!1,t,-2).type===x&&y(!1,t,-1).type===b;)t.length-=2;if(t.length>0){let e=Oe(y(!1,t,-1));t[t.length-1]=e}return t}function Oe(t){switch(W(t)){case S:case T:case P:case A:case L:case O:{let e=Oe(t.contents);return{...t,contents:e}}case B:return{...t,breakContents:Oe(t.breakContents),flatContents:Oe(t.flatContents)};case k:return{...t,parts:Ar(t.parts)};case j:return Ar(t);case U:return t.replace(/[\n\r]*$/,"");case M:case v:case I:case x:case b:break;default:throw new q(t)}return t}function Xe(t){return Oe(Tu(t))}function Nu(t){switch(W(t)){case k:if(t.parts.every(e=>e===""))return"";break;case A:if(!t.contents&&!t.id&&!t.break&&!t.expandedStates)return"";if(t.contents.type===A&&t.contents.id===t.id&&t.contents.break===t.break&&t.contents.expandedStates===t.expandedStates)return t.contents;break;case S:case T:case P:case L:if(!t.contents)return"";break;case B:if(!t.flatContents&&!t.breakContents)return"";break;case j:{let e=[];for(let r of t){if(!r)continue;let[n,...o]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof y(!1,e,-1)=="string"?e[e.length-1]+=n:e.push(n),e.push(...o)}return e.length===0?"":e.length===1?e[0]:e}case U:case M:case v:case I:case x:case O:case b:break;default:throw new q(t)}return t}function Tu(t){return Ne(t,e=>Nu(e))}function Or(t,e=He){return Ne(t,r=>typeof r=="string"?ke(e,r.split(` +`)):r)}function Su(t){if(t.type===x)return!0}function Nr(t){return Je(t,Su,!1)}function Ze(t,e){return t.type===O?{...t,contents:e(t.contents)}:e(t)}var R=Symbol("MODE_BREAK"),K=Symbol("MODE_FLAT"),Te=Symbol("cursor");function Tr(){return{value:"",length:0,queue:[]}}function vu(t,e){return Bt(t,{type:"indent"},e)}function Pu(t,e,r){return e===Number.NEGATIVE_INFINITY?t.root||Tr():e<0?Bt(t,{type:"dedent"},r):e?e.type==="root"?{...t,root:t}:Bt(t,{type:typeof e=="string"?"stringAlign":"numberAlign",n:e},r):t}function Bt(t,e,r){let n=e.type==="dedent"?t.queue.slice(0,-1):[...t.queue,e],o="",u=0,i=0,s=0;for(let l of n)switch(l.type){case"indent":c(),r.useTabs?a(1):D(r.tabWidth);break;case"stringAlign":c(),o+=l.n,u+=l.n.length;break;case"numberAlign":i+=1,s+=l.n;break;default:throw new Error(`Unexpected type '${l.type}'`)}return f(),{...t,value:o,length:u,queue:n};function a(l){o+=" ".repeat(l),u+=r.tabWidth*l}function D(l){o+=" ".repeat(l),u+=l}function c(){r.useTabs?F():f()}function F(){i>0&&a(i),d()}function f(){s>0&&D(s),d()}function d(){i=0,s=0}}function kt(t){let e=0,r=0,n=t.length;e:for(;n--;){let o=t[n];if(o===Te){r++;continue}for(let u=o.length-1;u>=0;u--){let i=o[u];if(i===" "||i===" ")e++;else{t[n]=o.slice(0,u+1);break e}}}if(e>0||r>0)for(t.length=n+1;r-- >0;)t.push(Te);return e}function Qe(t,e,r,n,o,u){if(r===Number.POSITIVE_INFINITY)return!0;let i=e.length,s=[t],a=[];for(;r>=0;){if(s.length===0){if(i===0)return!0;s.push(e[--i]);continue}let{mode:D,doc:c}=s.pop();switch(W(c)){case U:a.push(c),r-=we(c);break;case j:case k:{let F=Br(c);for(let f=F.length-1;f>=0;f--)s.push({mode:D,doc:F[f]});break}case T:case S:case P:case O:s.push({mode:D,doc:c.contents});break;case v:r+=kt(a);break;case A:{if(u&&c.break)return!1;let F=c.break?R:D,f=c.expandedStates&&F===R?y(!1,c.expandedStates,-1):c.contents;s.push({mode:F,doc:f});break}case B:{let f=(c.groupId?o[c.groupId]||K:D)===R?c.breakContents:c.flatContents;f&&s.push({mode:D,doc:f});break}case x:if(D===R||c.hard)return!0;c.soft||(a.push(" "),r--);break;case L:n=!0;break;case I:if(n)return!1;break}}return!1}function fe(t,e){let r={},n=e.printWidth,o=be(e.endOfLine),u=0,i=[{ind:Tr(),mode:R,doc:t}],s=[],a=!1,D=[],c=0;for(br(t);i.length>0;){let{ind:f,mode:d,doc:l}=i.pop();switch(W(l)){case U:{let p=o!==` +`?ee(!1,l,` +`,o):l;s.push(p),i.length>0&&(u+=we(p));break}case j:for(let p=l.length-1;p>=0;p--)i.push({ind:f,mode:d,doc:l[p]});break;case M:if(c>=2)throw new Error("There are too many 'cursor' in doc.");s.push(Te),c++;break;case T:i.push({ind:vu(f,e),mode:d,doc:l.contents});break;case S:i.push({ind:Pu(f,l.n,e),mode:d,doc:l.contents});break;case v:u-=kt(s);break;case A:switch(d){case K:if(!a){i.push({ind:f,mode:l.break?R:K,doc:l.contents});break}case R:{a=!1;let p={ind:f,mode:K,doc:l.contents},m=n-u,E=D.length>0;if(!l.break&&Qe(p,i,m,E,r))i.push(p);else if(l.expandedStates){let h=y(!1,l.expandedStates,-1);if(l.break){i.push({ind:f,mode:R,doc:h});break}else for(let g=1;g=l.expandedStates.length){i.push({ind:f,mode:R,doc:h});break}else{let C=l.expandedStates[g],_={ind:f,mode:K,doc:C};if(Qe(_,i,m,E,r)){i.push(_);break}}}else i.push({ind:f,mode:R,doc:l.contents});break}}l.id&&(r[l.id]=y(!1,i,-1).mode);break;case k:{let p=n-u,{parts:m}=l;if(m.length===0)break;let[E,h]=m,g={ind:f,mode:K,doc:E},C={ind:f,mode:R,doc:E},_=Qe(g,[],p,D.length>0,r,!0);if(m.length===1){_?i.push(g):i.push(C);break}let Z={ind:f,mode:K,doc:h},$={ind:f,mode:R,doc:h};if(m.length===2){_?i.push(Z,g):i.push($,C);break}m.splice(0,2);let Q={ind:f,mode:d,doc:Ge(m)},tr=m[0];Qe({ind:f,mode:K,doc:[E,h,tr]},[],p,D.length>0,r,!0)?i.push(Q,Z,g):_?i.push(Q,$,g):i.push(Q,$,C);break}case B:case P:{let p=l.groupId?r[l.groupId]:d;if(p===R){let m=l.type===B?l.breakContents:l.negate?l.contents:ie(l.contents);m&&i.push({ind:f,mode:d,doc:m})}if(p===K){let m=l.type===B?l.flatContents:l.negate?ie(l.contents):l.contents;m&&i.push({ind:f,mode:d,doc:m})}break}case L:D.push({ind:f,mode:d,doc:l.contents});break;case I:D.length>0&&i.push({ind:f,mode:d,doc:Ae});break;case x:switch(d){case K:if(l.hard)a=!0;else{l.soft||(s.push(" "),u+=1);break}case R:if(D.length>0){i.push({ind:f,mode:d,doc:l},...D.reverse()),D.length=0;break}l.literal?f.root?(s.push(o,f.root.value),u=f.root.length):(s.push(o),u=0):(u-=kt(s),s.push(o+f.value),u=f.length);break}break;case O:i.push({ind:f,mode:d,doc:l.contents});break;case b:break;default:throw new q(l)}i.length===0&&D.length>0&&(i.push(...D.reverse()),D.length=0)}let F=s.indexOf(Te);if(F!==-1){let f=s.indexOf(Te,F+1),d=s.slice(0,F).join(""),l=s.slice(F+1,f).join(""),p=s.slice(f+1).join("");return{formatted:d+l+p,cursorNodeStart:d.length,cursorNodeText:l}}return{formatted:s.join("")}}function J(t){var e;if(!t)return"";if(Array.isArray(t)){let r=[];for(let n of t)if(Array.isArray(n))r.push(...J(n));else{let o=J(n);o!==""&&r.push(o)}return r}return t.type===B?{...t,breakContents:J(t.breakContents),flatContents:J(t.flatContents)}:t.type===A?{...t,contents:J(t.contents),expandedStates:(e=t.expandedStates)==null?void 0:e.map(J)}:t.type===k?{type:"fill",parts:t.parts.map(J)}:t.contents?{...t,contents:J(t.contents)}:t}function Sr(t){let e=Object.create(null),r=new Set;return n(J(t));function n(u,i,s){var a,D;if(typeof u=="string")return JSON.stringify(u);if(Array.isArray(u)){let c=u.map(n).filter(Boolean);return c.length===1?c[0]:`[${c.join(", ")}]`}if(u.type===x){let c=((a=s==null?void 0:s[i+1])==null?void 0:a.type)===b;return u.literal?c?"literalline":"literallineWithoutBreakParent":u.hard?c?"hardline":"hardlineWithoutBreakParent":u.soft?"softline":"line"}if(u.type===b)return((D=s==null?void 0:s[i-1])==null?void 0:D.type)===x&&s[i-1].hard?void 0:"breakParent";if(u.type===v)return"trim";if(u.type===T)return"indent("+n(u.contents)+")";if(u.type===S)return u.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+n(u.contents)+")":u.n<0?"dedent("+n(u.contents)+")":u.n.type==="root"?"markAsRoot("+n(u.contents)+")":"align("+JSON.stringify(u.n)+", "+n(u.contents)+")";if(u.type===B)return"ifBreak("+n(u.breakContents)+(u.flatContents?", "+n(u.flatContents):"")+(u.groupId?(u.flatContents?"":', ""')+`, { groupId: ${o(u.groupId)} }`:"")+")";if(u.type===P){let c=[];u.negate&&c.push("negate: true"),u.groupId&&c.push(`groupId: ${o(u.groupId)}`);let F=c.length>0?`, { ${c.join(", ")} }`:"";return`indentIfBreak(${n(u.contents)}${F})`}if(u.type===A){let c=[];u.break&&u.break!=="propagated"&&c.push("shouldBreak: true"),u.id&&c.push(`id: ${o(u.id)}`);let F=c.length>0?`, { ${c.join(", ")} }`:"";return u.expandedStates?`conditionalGroup([${u.expandedStates.map(f=>n(f)).join(",")}]${F})`:`group(${n(u.contents)}${F})`}if(u.type===k)return`fill([${u.parts.map(c=>n(c)).join(", ")}])`;if(u.type===L)return"lineSuffix("+n(u.contents)+")";if(u.type===I)return"lineSuffixBoundary";if(u.type===O)return`label(${JSON.stringify(u.label)}, ${n(u.contents)})`;throw new Error("Unknown doc type "+u.type)}function o(u){if(typeof u!="symbol")return JSON.stringify(String(u));if(u in e)return e[u];let i=u.description||"symbol";for(let s=0;;s++){let a=i+(s>0?` #${s}`:"");if(!r.has(a))return r.add(a),e[u]=`Symbol.for(${JSON.stringify(a)})`}}}function Lu(t,e,r=0){let n=0;for(let o=r;otypeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive). +(mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:t=>typeof t=="string"||typeof t=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:t=>typeof t=="string"||typeof t=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive). The range will extend forwards to the end of the selected statement. This option cannot be used with --cursor-offset.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset. The range will extend backwards to the start of the first line containing the selected statement. This option cannot be used with --cursor-offset.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:`Require either '@prettier' or '@format' to be present in the file's first docblock comment -in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function lt({plugins:e=[],showDeprecated:t=!1}={}){let r=e.flatMap(i=>i.languages??[]),n=[];for(let i of Ei(Object.assign({},...e.map(({options:u})=>u),Fn)))!t&&i.deprecated||(Array.isArray(i.choices)&&(t||(i.choices=i.choices.filter(u=>!u.deprecated)),i.name==="parser"&&(i.choices=[...i.choices,...hi(i.choices,r,e)])),i.pluginDefaults=Object.fromEntries(e.filter(u=>{var o;return((o=u.defaultOptions)==null?void 0:o[i.name])!==void 0}).map(u=>[u.name,u.defaultOptions[i.name]])),n.push(i));return{languages:r,options:n}}function*hi(e,t,r){let n=new Set(e.map(i=>i.value));for(let i of t)if(i.parsers){for(let u of i.parsers)if(!n.has(u)){n.add(u);let o=r.find(a=>a.parsers&&Object.prototype.hasOwnProperty.call(a.parsers,u)),s=i.name;o!=null&&o.name&&(s+=` (plugin: ${o.name})`),yield{value:u,description:s}}}}function Ei(e){let t=[];for(let[r,n]of Object.entries(e)){let i={name:r,...n};Array.isArray(i.default)&&(i.default=_(!1,i.default,-1).value),t.push(i)}return t}var Ci=e=>e.split(/[/\\]/).pop();function mn(e,t){if(!t)return;let r=Ci(t).toLowerCase();return e.find(n=>{var i,u;return((i=n.extensions)==null?void 0:i.some(o=>r.endsWith(o)))||((u=n.filenames)==null?void 0:u.some(o=>o.toLowerCase()===r))})}function gi(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r==null?void 0:r.includes(t))??e.find(({extensions:r})=>r==null?void 0:r.includes(`.${t}`))}function yi(e,t){let r=e.plugins.flatMap(i=>i.languages??[]),n=gi(r,t.language)??mn(r,t.physicalFile)??mn(r,t.file)??(t.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var hn=yi;var z=kt(Vn(),1),gr;function Co(e,t,{logger:r=!1,isCLI:n=!1,passThrough:i=!1,FlagSchema:u,descriptor:o}={}){if(n){if(!u)throw new Error("'FlagSchema' option is required.");if(!o)throw new Error("'descriptor' option is required.")}else o=z.default.apiDescriptor;let s=i?Array.isArray(i)?(l,F)=>i.includes(l)?{[l]:F}:void 0:(l,F)=>({[l]:F}):(l,F,f)=>{let{_:p,...m}=f.schemas;return z.default.levenUnknownHandler(l,F,{...f,schemas:m})},a=go(t,{isCLI:n,FlagSchema:u}),D=new z.default.Normalizer(a,{logger:r,unknown:s,descriptor:o}),c=r!==!1;c&&gr&&(D._hasDeprecationWarned=gr);let d=D.normalize(e);return c&&(gr=D._hasDeprecationWarned),d}function go(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(z.default.AnySchema.create({name:"_"}));for(let i of e)n.push(yo(i,{isCLI:t,optionInfos:e,FlagSchema:r})),i.alias&&t&&n.push(z.default.AliasSchema.create({name:i.alias,sourceName:i.name}));return n}function yo(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let{name:i}=e,u={name:i},o,s={};switch(e.type){case"int":o=z.default.IntegerSchema,t&&(u.preprocess=Number);break;case"string":o=z.default.StringSchema;break;case"choice":o=z.default.ChoiceSchema,u.choices=e.choices.map(a=>a!=null&&a.redirect?{...a,redirect:{to:{key:e.name,value:a.redirect}}}:a);break;case"boolean":o=z.default.BooleanSchema;break;case"flag":o=n,u.flags=r.flatMap(a=>[a.alias,a.description&&a.name,a.oppositeDescription&&`no-${a.name}`].filter(Boolean));break;case"path":o=z.default.StringSchema;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?u.validate=(a,D,c)=>e.exception(a)||D.validate(a,c):u.validate=(a,D,c)=>a===void 0||D.validate(a,c),e.redirect&&(s.redirect=a=>a?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(s.deprecated=!0),t&&!e.array){let a=u.preprocess||(D=>D);u.preprocess=(D,c,d)=>c.preprocess(a(Array.isArray(D)?_(!1,D,-1):D),d)}return e.array?z.default.ArraySchema.create({...t?{preprocess:a=>Array.isArray(a)?a:[a]}:{},...s,valueSchema:o.create(u)}):o.create({...u,...s})}var zn=Co;function yr(e,t){if(!t)throw new Error("parserName is required.");for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.parsers&&Object.prototype.hasOwnProperty.call(i.parsers,t))return i}let r=`Couldn't resolve parser "${t}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new $e(r)}function Wn(e,t){if(!t)throw new Error("astFormat is required.");for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.printers&&Object.prototype.hasOwnProperty.call(i.printers,t))return i}let r=`Couldn't find plugin for AST format "${t}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new $e(r)}function Ct({plugins:e,parser:t}){let r=yr(e,t);return _r(r,t)}function _r(e,t){let r=e.parsers[t];return typeof r=="function"?r():r}function Gn(e,t){let r=e.printers[t];return typeof r=="function"?r():r}var Un={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function _o(e,t={}){var d;let r={...e};if(!r.parser)if(r.filepath){if(r.parser=hn(r,{physicalFile:r.filepath}),!r.parser)throw new Ve(`No parser could be inferred for file "${r.filepath}".`)}else throw new Ve("No parser and no file path given, couldn't infer a parser.");let n=lt({plugins:e.plugins,showDeprecated:!0}).options,i={...Un,...Object.fromEntries(n.filter(l=>l.default!==void 0).map(l=>[l.name,l.default]))},u=yr(r.plugins,r.parser),o=await _r(u,r.parser);r.astFormat=o.astFormat,r.locEnd=o.locEnd,r.locStart=o.locStart;let s=(d=u.printers)!=null&&d[o.astFormat]?u:Wn(r.plugins,o.astFormat),a=await Gn(s,o.astFormat);r.printer=a;let D=s.defaultOptions?Object.fromEntries(Object.entries(s.defaultOptions).filter(([,l])=>l!==void 0)):{},c={...i,...D};for(let[l,F]of Object.entries(c))(r[l]===null||r[l]===void 0)&&(r[l]=F);return r.parser==="json"&&(r.trailingComma="none"),zn(r,n,{passThrough:Object.keys(Un),...t})}var le=_o;var Kn=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),xo=e=>Object.keys(e).filter(t=>!Kn.has(t));function bo(e){return e?t=>e(t,Kn):xo}var ee=bo;function Ao(e,t){let{printer:{massageAstNode:r,getVisitorKeys:n}}=t;if(!r)return e;let i=ee(n),u=r.ignoredProperties??new Set;return o(e);function o(s,a){if(!(s!==null&&typeof s=="object"))return s;if(Array.isArray(s))return s.map(l=>o(l,a)).filter(Boolean);let D={},c=new Set(i(s));for(let l in s)!Object.prototype.hasOwnProperty.call(s,l)||u.has(l)||(c.has(l)?D[l]=o(s[l],s):D[l]=s[l]);let d=r(s,D,a);if(d!==null)return d??D}}var Hn=Ao;var ru=kt(tu(),1);async function vo(e,t){let r=await Ct(t),n=r.preprocess?r.preprocess(e,t):e;t.originalText=n;let i;try{i=await r.parse(n,t,t)}catch(u){To(u,e)}return{text:n,ast:i}}function To(e,t){let{loc:r}=e;if(r){let n=(0,ru.codeFrameColumns)(t,r,{highlightCode:!0});throw e.message+=` -`+n,e.codeFrame=n,e}throw e}var Ee=vo;var Ke,Ar,Be,yt,br=class{constructor(t){St(this,Ke);St(this,Be);this.stack=[t]}get key(){let{stack:t,siblings:r}=this;return _(!1,t,r===null?-2:-4)??null}get index(){return this.siblings===null?null:_(!1,this.stack,-2)}get node(){return _(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:t}=this,r=_(!1,t,-3);return Array.isArray(r)?r:null}get next(){let{siblings:t}=this;return t===null?null:t[this.index+1]}get previous(){let{siblings:t}=this;return t===null?null:t[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:t,index:r}=this;return t!==null&&r===t.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...ye(this,Be,yt).call(this)]}getName(){let{stack:t}=this,{length:r}=t;return r>1?_(!1,t,-2):null}getValue(){return _(!1,this.stack,-1)}getNode(t=0){let r=ye(this,Ke,Ar).call(this,t);return r===-1?null:this.stack[r]}getParentNode(t=0){return this.getNode(t+1)}call(t,...r){let{stack:n}=this,{length:i}=n,u=_(!1,n,-1);for(let o of r)u=u[o],n.push(o,u);try{return t(this)}finally{n.length=i}}callParent(t,r=0){let n=ye(this,Ke,Ar).call(this,r+1),i=this.stack.splice(n+1);try{return t(this)}finally{this.stack.push(...i)}}each(t,...r){let{stack:n}=this,{length:i}=n,u=_(!1,n,-1);for(let o of r)u=u[o],n.push(o,u);try{for(let o=0;o{n[u]=t(i,u,o)},...r),n}match(...t){let r=this.stack.length-1,n=null,i=this.stack[r--];for(let u of t){if(i===void 0)return!1;let o=null;if(typeof n=="number"&&(o=n,n=this.stack[r--],i=this.stack[r--]),u&&!u(i,n,o))return!1;n=this.stack[r--],i=this.stack[r--]}return!0}findAncestor(t){for(let r of ye(this,Be,yt).call(this))if(t(r))return r}hasAncestor(t){for(let r of ye(this,Be,yt).call(this))if(t(r))return!0;return!1}};Ke=new WeakSet,Ar=function(t){let{stack:r}=this;for(let n=r.length-1;n>=0;n-=2)if(!Array.isArray(r[n])&&--t<0)return n;return-1},Be=new WeakSet,yt=function*(){let{stack:t}=this;for(let r=t.length-3;r>=0;r-=2){let n=t[r];Array.isArray(n)||(yield n)}};var nu=br;var He=()=>{};He.ok=He;He.strictEqual=He;var Je=He;function we(e){return(t,r,n)=>{let i=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:u}=t,o=r;for(;o>=0&&o0}var Br=Ro;function Io(e){return e!==null&&typeof e=="object"}var iu=Io;function*wr(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,i=u=>iu(u)&&n(u);for(let u of r(e)){let o=e[u];if(Array.isArray(o))for(let s of o)i(s)&&(yield s);else i(o)&&(yield o)}}function*ou(e,t){let r=[e];for(let n=0;n20&&(r=r.slice(0,19)+"\u2026"),t+(r?" "+r:"")}function Or(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=Lo(e)}function fe(e,t){t.leading=!0,t.trailing=!1,Or(e,t)}function oe(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Or(e,t)}function pe(e,t){t.leading=!1,t.trailing=!0,Or(e,t)}var kr=new WeakMap;function bt(e,t){if(kr.has(e))return kr.get(e);let{printer:{getCommentChildNodes:r,canAttachComment:n,getVisitorKeys:i},locStart:u,locEnd:o}=t;if(!n)return[];let s=((r==null?void 0:r(e,t))??[...wr(e,{getVisitorKeys:ee(i)})]).flatMap(a=>n(a)?[a]:bt(a,t));return s.sort((a,D)=>u(a)-u(D)||o(a)-o(D)),kr.set(e,s),s}function au(e,t,r,n){let{locStart:i,locEnd:u}=r,o=i(t),s=u(t),a=bt(e,r),D,c,d=0,l=a.length;for(;d>1,f=a[F],p=i(f),m=u(f);if(p<=o&&s<=m)return au(f,t,r,f);if(m<=o){D=f,d=F+1;continue}if(s<=p){c=f,l=F;continue}throw new Error("Comment location overlaps with node location")}if((n==null?void 0:n.type)==="TemplateLiteral"){let{quasis:F}=n,f=vr(F,t,r);D&&vr(F,D,r)!==f&&(D=null),c&&vr(F,c,r)!==f&&(c=null)}return{enclosingNode:n,precedingNode:D,followingNode:c}}var Sr=()=>!1;function Du(e,t){let{comments:r}=e;if(delete e.comments,!Br(r)||!t.printer.canAttachComment)return;let n=[],{locStart:i,locEnd:u,printer:{experimentalFeatures:{avoidAstMutation:o=!1}={},handleComments:s={}},originalText:a}=t,{ownLine:D=Sr,endOfLine:c=Sr,remaining:d=Sr}=s,l=r.map((F,f)=>({...au(e,F,t),comment:F,text:a,options:t,ast:e,isLastComment:r.length-1===f}));for(let[F,f]of l.entries()){let{comment:p,precedingNode:m,enclosingNode:h,followingNode:C,text:g,options:y,ast:b,isLastComment:se}=f;if(y.parser==="json"||y.parser==="json5"||y.parser==="__js_expression"||y.parser==="__ts_expression"||y.parser==="__vue_expression"||y.parser==="__vue_ts_expression"){if(i(p)-i(b)<=0){fe(b,p);continue}if(u(p)-u(b)>=0){pe(b,p);continue}}let G;if(o?G=[f]:(p.enclosingNode=h,p.precedingNode=m,p.followingNode=C,G=[p,g,y,b,se]),jo(g,y,l,F))p.placement="ownLine",D(...G)||(C?fe(C,p):m?pe(m,p):h?oe(h,p):oe(b,p));else if(Yo(g,y,l,F))p.placement="endOfLine",c(...G)||(m?pe(m,p):C?fe(C,p):h?oe(h,p):oe(b,p));else if(p.placement="remaining",!d(...G))if(m&&C){let ae=n.length;ae>0&&n[ae-1].followingNode!==C&&su(n,y),n.push(f)}else m?pe(m,p):C?fe(C,p):h?oe(h,p):oe(b,p)}if(su(n,t),!o)for(let F of r)delete F.precedingNode,delete F.enclosingNode,delete F.followingNode}var cu=e=>!/[\S\n\u2028\u2029]/.test(e);function jo(e,t,r,n){let{comment:i,precedingNode:u}=r[n],{locStart:o,locEnd:s}=t,a=o(i);if(u)for(let D=n-1;D>=0;D--){let{comment:c,precedingNode:d}=r[D];if(d!==u||!cu(e.slice(s(c),a)))break;a=o(c)}return W(e,a,{backwards:!0})}function Yo(e,t,r,n){let{comment:i,followingNode:u}=r[n],{locStart:o,locEnd:s}=t,a=s(i);if(u)for(let D=n+1;D0;--o){let{comment:D,precedingNode:c,followingNode:d}=e[o-1];Je.strictEqual(c,n),Je.strictEqual(d,i);let l=t.originalText.slice(t.locEnd(D),u);if(((a=(s=t.printer).isGap)==null?void 0:a.call(s,l,t))??/^[\s(]*$/.test(l))u=t.locStart(D);else break}for(let[D,{comment:c}]of e.entries())D1&&D.comments.sort((c,d)=>t.locStart(c)-t.locStart(d));e.length=0}function vr(e,t,r){let n=r.locStart(t)-1;for(let i=1;i!n.has(a)).length===0)return{leading:"",trailing:""};let u=[],o=[],s;return e.each(()=>{let a=e.node;if(n!=null&&n.has(a))return;let{leading:D,trailing:c}=a;D?u.push(qo(e,t)):c&&(s=$o(e,t,s),o.push(s.doc))},"comments"),{leading:u,trailing:o}}function fu(e,t,r){let{leading:n,trailing:i}=Vo(e,r);return!n&&!i?t:Dt(t,u=>[n,u,i])}function pu(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:r}=e;for(let n of t){if(!n.printed&&!r.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}async function du(e,t,r,n,i){let{embeddedLanguageFormatting:u,printer:{embed:o,hasPrettierIgnore:s=()=>!1,getVisitorKeys:a}}=r;if(!o||u!=="auto")return;if(o.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");let D=ee(o.getVisitorKeys??a),c=[];F();let d=e.stack;for(let{print:f,node:p,pathStack:m}of c)try{e.stack=m;let h=await f(l,t,e,r);h&&i.set(p,h)}catch(h){if(globalThis.PRETTIER_DEBUG)throw h}e.stack=d;function l(f,p){return zo(f,p,r,n)}function F(){let{node:f}=e;if(f===null||typeof f!="object"||s(e))return;for(let m of D(f))Array.isArray(f[m])?e.each(F,m):e.call(F,m);let p=o(e,r);if(p){if(typeof p=="function"){c.push({print:p,node:f,pathStack:[...e.stack]});return}i.set(f,p)}}}async function zo(e,t,r,n){let i=await le({...r,...t,parentParser:r.parser,originalText:e},{passThrough:!0}),{ast:u}=await Ee(e,i),o=await n(u,i);return at(o)}function Wo(e){return()=>{}}var Fu=Wo;function Go(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:i,locEnd:u,[Symbol.for("printedComments")]:o}=t,{node:s}=e,a=i(s),D=u(s);for(let c of n)i(c)>=a&&u(c)<=D&&o.add(c);return r.slice(a,D)}var mu=Go;async function Ze(e,t){({ast:e}=await Tr(e,t));let r=new Map,n=new nu(e),i=Fu(t),u=new Map;await du(n,s,t,Ze,u);let o=await hu(n,t,s,void 0,u);return pu(t),o;function s(D,c){return D===void 0||D===n?a(c):Array.isArray(D)?n.call(()=>a(c),...D):n.call(()=>a(c),D)}function a(D){i(n);let c=n.node;if(c==null)return"";let d=c&&typeof c=="object"&&D===void 0;if(d&&r.has(c))return r.get(c);let l=hu(n,t,s,D,u);return d&&r.set(c,l),l}}function hu(e,t,r,n,i){var a;let{node:u}=e,{printer:o}=t,s;return(a=o.hasPrettierIgnore)!=null&&a.call(o,e)?s=mu(e,t):i.has(u)?s=i.get(u):s=o.print(e,t,r,n),o.printComment&&(!o.willPrintOwnComments||!o.willPrintOwnComments(e,t))&&(s=fu(e,s,t)),u===t.cursorNode&&(s=Dt(s,D=>[Re,D,Re])),s}async function Tr(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,Du(e,t);let{printer:{preprocess:n}}=t;return e=n?await n(e,t):e,{ast:e,comments:r}}var Uo=({parser:e})=>e==="json"||e==="json5"||e==="json-stringify";function Ko(e,t){let r=[e.node,...e.parentNodes],n=new Set([t.node,...t.parentNodes]);return r.find(i=>gu.has(i.type)&&n.has(i))}function Eu(e){let t=e.length-1;for(;;){let r=e[t];if((r==null?void 0:r.type)==="Program"||(r==null?void 0:r.type)==="File")t--;else break}return e.slice(0,t+1)}function Ho(e,t,{locStart:r,locEnd:n}){let i=e.node,u=t.node;if(i===u)return{startNode:i,endNode:u};let o=r(e.node);for(let a of Eu(t.parentNodes))if(r(a)>=o)u=a;else break;let s=n(t.node);for(let a of Eu(e.parentNodes)){if(n(a)<=s)i=a;else break;if(i===u)break}return{startNode:i,endNode:u}}function Nr(e,t,r,n,i=[],u){let{locStart:o,locEnd:s}=r,a=o(e),D=s(e);if(!(t>D||tn);let s=e.slice(n,i).search(/\S/),a=s===-1;if(!a)for(n+=s;i>n&&!/\S/.test(e[i-1]);--i);let D=Nr(r,n,t,(F,f)=>Cu(t,F,f),[],"rangeStart"),c=a?D:Nr(r,i,t,F=>Cu(t,F),[],"rangeEnd");if(!D||!c)return{rangeStart:0,rangeEnd:0};let d,l;if(Uo(t)){let F=Ko(D,c);d=F,l=F}else({startNode:d,endNode:l}=Ho(D,c,t));return{rangeStart:Math.min(u(d),u(l)),rangeEnd:Math.max(o(d),o(l))}}function Zo(e,t){let{cursorOffset:r,locStart:n,locEnd:i}=t,u=ee(t.printer.getVisitorKeys),o=a=>n(a)<=r&&i(a)>=r,s=e;for(let a of ou(e,{getVisitorKeys:u,filter:o}))s=a;return s}var _u=Zo;var wu="\uFEFF",xu=Symbol("cursor");async function Ou(e,t,r=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:i}=await Ee(e,t);t.cursorOffset>=0&&(t.cursorNode=_u(n,t));let u=await Ze(n,t,r);r>0&&(u=ot([X,u],r,t.tabWidth));let o=xe(u,t);if(r>0){let a=o.formatted.trim();o.cursorNodeStart!==void 0&&(o.cursorNodeStart-=o.formatted.indexOf(a)),o.formatted=a+Le(t.endOfLine)}let s=t[Symbol.for("comments")];if(t.cursorOffset>=0){let a,D,c,d,l;if(t.cursorNode&&o.cursorNodeText?(a=t.locStart(t.cursorNode),D=i.slice(a,t.locEnd(t.cursorNode)),c=t.cursorOffset-a,d=o.cursorNodeStart,l=o.cursorNodeText):(a=0,D=i,c=t.cursorOffset,d=0,l=o.formatted),D===l)return{formatted:o.formatted,cursorOffset:d+c,comments:s};let F=D.split("");F.splice(c,0,xu);let f=l.split(""),p=(0,Bu.diffArrays)(F,f),m=d;for(let h of p)if(h.removed){if(h.value.includes(xu))break}else m+=h.count;return{formatted:o.formatted,cursorOffset:m,comments:s}}return{formatted:o.formatted,cursorOffset:-1,comments:s}}async function Qo(e,t){let{ast:r,text:n}=await Ee(e,t),{rangeStart:i,rangeEnd:u}=yu(n,t,r),o=n.slice(i,u),s=Math.min(i,n.lastIndexOf(` -`,i)+1),a=n.slice(s,i).match(/^\s*/)[0],D=be(a,t.tabWidth),c=await Ou(o,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>i&&t.cursorOffset<=u?t.cursorOffset-i:-1,endOfLine:"lf"},D),d=c.formatted.trimEnd(),{cursorOffset:l}=t;l>u?l+=d.length-o.length:c.cursorOffset>=0&&(l=c.cursorOffset+i);let F=n.slice(0,i)+d+n.slice(u);if(t.endOfLine!=="lf"){let f=Le(t.endOfLine);l>=0&&f===`\r -`&&(l+=Rt(F.slice(0,l),` -`)),F=De(!1,F,` -`,f)}return{formatted:F,cursorOffset:l,comments:c.comments}}function Pr(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function bu(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i}=t;return r=Pr(e,r,-1),n=Pr(e,n,0),i=Pr(e,i,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:i}}function ku(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:u}=bu(e,t),o=e.charAt(0)===wu;if(o&&(e=e.slice(1),r--,n--,i--),u==="auto"&&(u=en(e)),e.includes("\r")){let s=a=>Rt(e.slice(0,Math.max(a,0)),`\r -`);r-=s(r),n-=s(n),i-=s(i),e=tn(e)}return{hasBOM:o,text:e,options:bu(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:u})}}async function Au(e,t){let r=await Ct(t);return!r.hasPragma||r.hasPragma(e)}async function Rr(e,t){let{hasBOM:r,text:n,options:i}=ku(e,await le(t));if(i.rangeStart>=i.rangeEnd&&n!==""||i.requirePragma&&!await Au(n,i))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let u;return i.rangeStart>0||i.rangeEnd=0&&u.cursorOffset++),u}async function Su(e,t,r){let{text:n,options:i}=ku(e,await le(t)),u=await Ee(n,i);return r&&(r.preprocessForPrint&&(u.ast=await Tr(u.ast,i)),r.massage&&(u.ast=Hn(u.ast,i))),u}async function vu(e,t){t=await le(t);let r=await Ze(e,t);return xe(r,t)}async function Tu(e,t){let r=dn(e),{formatted:n}=await Rr(r,{...t,parser:"__js_expression"});return n}async function Nu(e,t){t=await le(t);let{ast:r}=await Ee(e,t);return Ze(r,t)}async function Pu(e,t){return xe(e,await le(t))}var Bt={};ge(Bt,{addDanglingComment:()=>oe,addLeadingComment:()=>fe,addTrailingComment:()=>pe,getAlignmentSize:()=>be,getIndentSize:()=>Iu,getMaxContinuousCount:()=>Ru,getNextNonSpaceNonCommentCharacter:()=>Yu,getNextNonSpaceNonCommentCharacterIndex:()=>fs,getStringWidth:()=>je,hasNewline:()=>W,hasNewlineInRange:()=>Lu,hasSpaces:()=>ju,isNextLineEmpty:()=>ms,isNextLineEmptyAfterIndex:()=>At,isPreviousLineEmpty:()=>ds,makeString:()=>Mu,skip:()=>we,skipEverythingButNewLine:()=>xt,skipInlineComment:()=>Oe,skipNewline:()=>$,skipSpaces:()=>S,skipToLineEnd:()=>_t,skipTrailingComment:()=>ke,skipWhitespace:()=>uu});function ts(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;rMath.max(n,i.length/t.length),0)}var Ru=is;function os(e,t){let r=e.lastIndexOf(` -`);return r===-1?0:be(e.slice(r+1).match(/^[\t ]*/)[0],t)}var Iu=os;function ss(e,t,r){for(let n=t;ns===n?s:a===t?"\\"+a:a||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(s)?s:"\\"+s));return t+u+t}var Mu=cs;function ls(e,t,r){return Qe(e,r(t))}function fs(e,t){return arguments.length===2||typeof t=="number"?Qe(e,t):ls(...arguments)}function ps(e,t,r){return Xe(e,r(t))}function ds(e,t){return arguments.length===2||typeof t=="number"?Xe(e,t):ps(...arguments)}function Fs(e,t,r){return At(e,r(t))}function ms(e,t){return arguments.length===2||typeof t=="number"?At(e,t):Fs(...arguments)}var wt={};ge(wt,{builders:()=>hs,printer:()=>Es,utils:()=>Cs});var hs={join:Ie,line:ut,softline:Zr,hardline:X,literalline:it,group:Nt,conditionalGroup:Ur,fill:nt,lineSuffix:Ne,lineSuffixBoundary:Jr,cursor:Re,breakParent:_e,ifBreak:Kr,trim:Xr,indent:Fe,indentIfBreak:Hr,align:de,addAlignmentToDoc:ot,markAsRoot:Wr,dedentToRoot:zr,dedent:Gr,hardlineWithoutBreakParent:Pe,literallineWithoutBreakParent:Pt,label:Qr,concat:e=>e},Es={printDocToString:xe},Cs={willBreak:an,traverseDoc:Te,findInDoc:st,mapDoc:Me,removeLines:cn,stripTrailingHardline:at,replaceEndOfLine:ln,canBreak:fn};var qu="3.0.0";function Ce(e,t=1){return async(...r)=>{let n=r[t]??{},i=n.plugins??[];return r[t]={...n,plugins:Array.isArray(i)?i:Object.values(i)},e(...r)}}var $u=Ce(Rr);async function Vu(e,t){let{formatted:r}=await $u(e,{...t,cursorOffset:-1});return r}async function gs(e,t){return await Vu(e,t)===e}var ys=Ce(lt,0),_s={parse:Ce(Su),formatAST:Ce(vu),formatDoc:Ce(Tu),printToDoc:Ce(Nu),printDocToString:Ce(Pu)};return Y(xs);}); \ No newline at end of file +in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function et({plugins:t=[],showDeprecated:e=!1}={}){let r=t.flatMap(o=>o.languages??[]),n=[];for(let o of Ru(Object.assign({},...t.map(({options:u})=>u),vr)))!e&&o.deprecated||(Array.isArray(o.choices)&&(e||(o.choices=o.choices.filter(u=>!u.deprecated)),o.name==="parser"&&(o.choices=[...o.choices,...Iu(o.choices,r,t)])),o.pluginDefaults=Object.fromEntries(t.filter(u=>{var i;return((i=u.defaultOptions)==null?void 0:i[o.name])!==void 0}).map(u=>[u.name,u.defaultOptions[o.name]])),n.push(o));return{languages:r,options:n}}function*Iu(t,e,r){let n=new Set(t.map(o=>o.value));for(let o of e)if(o.parsers){for(let u of o.parsers)if(!n.has(u)){n.add(u);let i=r.find(a=>a.parsers&&Object.prototype.hasOwnProperty.call(a.parsers,u)),s=o.name;i!=null&&i.name&&(s+=` (plugin: ${i.name})`),yield{value:u,description:s}}}}function Ru(t){let e=[];for(let[r,n]of Object.entries(t)){let o={name:r,...n};Array.isArray(o.default)&&(o.default=y(!1,o.default,-1).value),e.push(o)}return e}var Yu=t=>t.split(/[/\\]/).pop();function Pr(t,e){if(!e)return;let r=Yu(e).toLowerCase();return t.find(n=>{var o,u;return((o=n.extensions)==null?void 0:o.some(i=>r.endsWith(i)))||((u=n.filenames)==null?void 0:u.some(i=>i.toLowerCase()===r))})}function ju(t,e){if(e)return t.find(({name:r})=>r.toLowerCase()===e)??t.find(({aliases:r})=>r==null?void 0:r.includes(e))??t.find(({extensions:r})=>r==null?void 0:r.includes(`.${e}`))}function Vu(t,e){let r=t.plugins.flatMap(o=>o.languages??[]),n=ju(r,e.language)??Pr(r,e.physicalFile)??Pr(r,e.file)??(e.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var Lr=Vu;var te={key:t=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(t)?t:JSON.stringify(t),value(t){if(t===null||typeof t!="object")return JSON.stringify(t);if(Array.isArray(t))return`[${t.map(r=>te.value(r)).join(", ")}]`;let e=Object.keys(t);return e.length===0?"{}":`{ ${e.map(r=>`${te.key(r)}: ${te.value(t[r])}`).join(", ")} }`},pair:({key:t,value:e})=>te.value({[t]:e})};var bt=Ce(Pe(),1),Yr=(t,e,{descriptor:r})=>{let n=[`${bt.default.yellow(typeof t=="string"?r.key(t):r.pair(t))} is deprecated`];return e&&n.push(`we now treat it as ${bt.default.blue(typeof e=="string"?r.key(e):r.pair(e))}`),n.join("; ")+"."};var se=Ce(Pe(),1);var tt=Symbol.for("vnopts.VALUE_NOT_EXIST"),de=Symbol.for("vnopts.VALUE_UNCHANGED");var jr=" ".repeat(2),$r=(t,e,r)=>{let{text:n,list:o}=r.normalizeExpectedResult(r.schemas[t].expected(r)),u=[];return n&&u.push(Vr(t,e,n,r.descriptor)),o&&u.push([Vr(t,e,o.title,r.descriptor)].concat(o.values.map(i=>Ur(i,r.loggerPrintWidth))).join(` +`)),Mr(u,r.loggerPrintWidth)};function Vr(t,e,r,n){return[`Invalid ${se.default.red(n.key(t))} value.`,`Expected ${se.default.blue(r)},`,`but received ${e===tt?se.default.gray("nothing"):se.default.red(n.value(e))}.`].join(" ")}function Ur({text:t,list:e},r){let n=[];return t&&n.push(`- ${se.default.blue(t)}`),e&&n.push([`- ${se.default.blue(e.title)}:`].concat(e.values.map(o=>Ur(o,r-jr.length).replace(/^|\n/g,`$&${jr}`))).join(` +`)),Mr(n,r)}function Mr(t,e){if(t.length===1)return t[0];let[r,n]=t,[o,u]=t.map(i=>i.split(` +`,1)[0].length);return o>e&&o>u?n:r}var Nt=Ce(Pe(),1);var wt=[],Wr=[];function Ot(t,e){if(t===e)return 0;let r=t;t.length>e.length&&(t=e,e=r);let n=t.length,o=e.length;for(;n>0&&t.charCodeAt(~-n)===e.charCodeAt(~-o);)n--,o--;let u=0;for(;us?D>s?s+1:D:D>a?a+1:D;return s}var rt=(t,e,{descriptor:r,logger:n,schemas:o})=>{let u=[`Ignored unknown option ${Nt.default.yellow(r.pair({key:t,value:e}))}.`],i=Object.keys(o).sort().find(s=>Ot(t,s)<3);i&&u.push(`Did you mean ${Nt.default.blue(r.key(i))}?`),n.warn(u.join(" "))};var $u=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function Uu(t,e){let r=new t(e),n=Object.create(r);for(let o of $u)o in e&&(n[o]=Mu(e[o],r,w.prototype[o].length));return n}var w=class{static create(e){return Uu(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,r){return!1}deprecated(e,r){return!1}forward(e,r){}redirect(e,r){}overlap(e,r,n){return e}preprocess(e,r){return e}postprocess(e,r){return de}};function Mu(t,e,r){return typeof t=="function"?(...n)=>t(...n.slice(0,r-1),e,...n.slice(r-1)):()=>t}var nt=class extends w{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,r){return r.schemas[this._sourceName].validate(e,r)}redirect(e,r){return this._sourceName}};var ut=class extends w{expected(){return"anything"}validate(){return!0}};var ot=class extends w{constructor({valueSchema:e,name:r=e.name,...n}){super({...n,name:r}),this._valueSchema=e}expected(e){let{text:r,list:n}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:r&&`an array of ${r}`,list:n&&{title:"an array of the following values",values:[{list:n}]}}}validate(e,r){if(!Array.isArray(e))return!1;let n=[];for(let o of e){let u=r.normalizeValidateResult(this._valueSchema.validate(o,r),o);u!==!0&&n.push(u.value)}return n.length===0?!0:{value:n}}deprecated(e,r){let n=[];for(let o of e){let u=r.normalizeDeprecatedResult(this._valueSchema.deprecated(o,r),o);u!==!1&&n.push(...u.map(({value:i})=>({value:[i]})))}return n}forward(e,r){let n=[];for(let o of e){let u=r.normalizeForwardResult(this._valueSchema.forward(o,r),o);n.push(...u.map(zr))}return n}redirect(e,r){let n=[],o=[];for(let u of e){let i=r.normalizeRedirectResult(this._valueSchema.redirect(u,r),u);"remain"in i&&n.push(i.remain),o.push(...i.redirect.map(zr))}return n.length===0?{redirect:o}:{redirect:o,remain:n}}overlap(e,r){return e.concat(r)}};function zr({from:t,to:e}){return{from:[t],to:e}}var it=class extends w{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function Kr(t,e){let r=Object.create(null);for(let n of t){let o=n[e];if(r[o])throw new Error(`Duplicate ${e} ${JSON.stringify(o)}`);r[o]=n}return r}function Hr(t,e){let r=new Map;for(let n of t){let o=n[e];if(r.has(o))throw new Error(`Duplicate ${e} ${JSON.stringify(o)}`);r.set(o,n)}return r}function qr(){let t=Object.create(null);return e=>{let r=JSON.stringify(e);return t[r]?!0:(t[r]=!0,!1)}}function Jr(t,e){let r=[],n=[];for(let o of t)e(o)?r.push(o):n.push(o);return[r,n]}function Xr(t){return t===Math.floor(t)}function Zr(t,e){if(t===e)return 0;let r=typeof t,n=typeof e,o=["undefined","object","boolean","number","string"];return r!==n?o.indexOf(r)-o.indexOf(n):r!=="string"?Number(t)-Number(e):t.localeCompare(e)}function Qr(t){return(...e)=>{let r=t(...e);return typeof r=="string"?new Error(r):r}}function Tt(t){return t===void 0?{}:t}function St(t){if(typeof t=="string")return{text:t};let{text:e,list:r}=t;return Wu((e||r)!==void 0,"Unexpected `expected` result, there should be at least one field."),r?{text:e,list:{title:r.title,values:r.values.map(St)}}:{text:e}}function vt(t,e){return t===!0?!0:t===!1?{value:e}:t}function Pt(t,e,r=!1){return t===!1?!1:t===!0?r?!0:[{value:e}]:"value"in t?[t]:t.length===0?!1:t}function Gr(t,e){return typeof t=="string"||"key"in t?{from:e,to:t}:"from"in t?{from:t.from,to:t.to}:{from:e,to:t.to}}function st(t,e){return t===void 0?[]:Array.isArray(t)?t.map(r=>Gr(r,e)):[Gr(t,e)]}function Lt(t,e){let r=st(typeof t=="object"&&"redirect"in t?t.redirect:t,e);return r.length===0?{remain:e,redirect:r}:typeof t=="object"&&"remain"in t?{remain:t.remain,redirect:r}:{redirect:r}}function Wu(t,e){if(!t)throw new Error(e)}var at=class extends w{constructor(e){super(e),this._choices=Hr(e.choices.map(r=>r&&typeof r=="object"?r:{value:r}),"value")}expected({descriptor:e}){let r=Array.from(this._choices.keys()).map(i=>this._choices.get(i)).filter(({hidden:i})=>!i).map(i=>i.value).sort(Zr).map(e.value),n=r.slice(0,-2),o=r.slice(-2);return{text:n.concat(o.join(" or ")).join(", "),list:{title:"one of the following values",values:r}}}validate(e){return this._choices.has(e)}deprecated(e){let r=this._choices.get(e);return r&&r.deprecated?{value:e}:!1}forward(e){let r=this._choices.get(e);return r?r.forward:void 0}redirect(e){let r=this._choices.get(e);return r?r.redirect:void 0}};var Dt=class extends w{expected(){return"a number"}validate(e,r){return typeof e=="number"}};var ct=class extends Dt{expected(){return"an integer"}validate(e,r){return r.normalizeValidateResult(super.validate(e,r),e)===!0&&Xr(e)}};var Le=class extends w{expected(){return"a string"}validate(e){return typeof e=="string"}};var en=te,tn=rt,rn=$r,nn=Yr;var lt=class{constructor(e,r){let{logger:n=console,loggerPrintWidth:o=80,descriptor:u=en,unknown:i=tn,invalid:s=rn,deprecated:a=nn,missing:D=()=>!1,required:c=()=>!1,preprocess:F=d=>d,postprocess:f=()=>de}=r||{};this._utils={descriptor:u,logger:n||{warn:()=>{}},loggerPrintWidth:o,schemas:Kr(e,"name"),normalizeDefaultResult:Tt,normalizeExpectedResult:St,normalizeDeprecatedResult:Pt,normalizeForwardResult:st,normalizeRedirectResult:Lt,normalizeValidateResult:vt},this._unknownHandler=i,this._invalidHandler=Qr(s),this._deprecatedHandler=a,this._identifyMissing=(d,l)=>!(d in l)||D(d,l),this._identifyRequired=c,this._preprocess=F,this._postprocess=f,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=qr()}normalize(e){let r={},o=[this._preprocess(e,this._utils)],u=()=>{for(;o.length!==0;){let i=o.shift(),s=this._applyNormalization(i,r);o.push(...s)}};u();for(let i of Object.keys(this._utils.schemas)){let s=this._utils.schemas[i];if(!(i in r)){let a=Tt(s.default(this._utils));"value"in a&&o.push({[i]:a.value})}}u();for(let i of Object.keys(this._utils.schemas)){if(!(i in r))continue;let s=this._utils.schemas[i],a=r[i],D=s.postprocess(a,this._utils);D!==de&&(this._applyValidation(D,i,s),r[i]=D)}return this._applyPostprocess(r),this._applyRequiredCheck(r),r}_applyNormalization(e,r){let n=[],{knownKeys:o,unknownKeys:u}=this._partitionOptionKeys(e);for(let i of o){let s=this._utils.schemas[i],a=s.preprocess(e[i],this._utils);this._applyValidation(a,i,s);let D=({from:d,to:l})=>{n.push(typeof l=="string"?{[l]:d}:{[l.key]:l.value})},c=({value:d,redirectTo:l})=>{let p=Pt(s.deprecated(d,this._utils),a,!0);if(p!==!1)if(p===!0)this._hasDeprecationWarned(i)||this._utils.logger.warn(this._deprecatedHandler(i,l,this._utils));else for(let{value:m}of p){let E={key:i,value:m};if(!this._hasDeprecationWarned(E)){let h=typeof l=="string"?{key:l,value:m}:l;this._utils.logger.warn(this._deprecatedHandler(E,h,this._utils))}}};st(s.forward(a,this._utils),a).forEach(D);let f=Lt(s.redirect(a,this._utils),a);if(f.redirect.forEach(D),"remain"in f){let d=f.remain;r[i]=i in r?s.overlap(r[i],d,this._utils):d,c({value:d})}for(let{from:d,to:l}of f.redirect)c({value:d,redirectTo:l})}for(let i of u){let s=e[i];this._applyUnknownHandler(i,s,r,(a,D)=>{n.push({[a]:D})})}return n}_applyRequiredCheck(e){for(let r of Object.keys(this._utils.schemas))if(this._identifyMissing(r,e)&&this._identifyRequired(r))throw this._invalidHandler(r,tt,this._utils)}_partitionOptionKeys(e){let[r,n]=Jr(Object.keys(e).filter(o=>!this._identifyMissing(o,e)),o=>o in this._utils.schemas);return{knownKeys:r,unknownKeys:n}}_applyValidation(e,r,n){let o=vt(n.validate(e,this._utils),e);if(o!==!0)throw this._invalidHandler(r,o.value,this._utils)}_applyUnknownHandler(e,r,n,o){let u=this._unknownHandler(e,r,this._utils);if(u)for(let i of Object.keys(u)){if(this._identifyMissing(i,u))continue;let s=u[i];i in this._utils.schemas?o(i,s):n[i]=s}}_applyPostprocess(e){let r=this._postprocess(e,this._utils);if(r!==de){if(r.delete)for(let n of r.delete)delete e[n];if(r.override){let{knownKeys:n,unknownKeys:o}=this._partitionOptionKeys(r.override);for(let u of n){let i=r.override[u];this._applyValidation(i,u,this._utils.schemas[u]),e[u]=i}for(let u of o){let i=r.override[u];this._applyUnknownHandler(u,i,e,(s,a)=>{let D=this._utils.schemas[s];this._applyValidation(a,s,D),e[s]=a})}}}}};var It;function Gu(t,e,{logger:r=!1,isCLI:n=!1,passThrough:o=!1,FlagSchema:u,descriptor:i}={}){if(n){if(!u)throw new Error("'FlagSchema' option is required.");if(!i)throw new Error("'descriptor' option is required.")}else i=te;let s=o?Array.isArray(o)?(f,d)=>o.includes(f)?{[f]:d}:void 0:(f,d)=>({[f]:d}):(f,d,l)=>{let{_:p,...m}=l.schemas;return rt(f,d,{...l,schemas:m})},a=Ku(e,{isCLI:n,FlagSchema:u}),D=new lt(a,{logger:r,unknown:s,descriptor:i}),c=r!==!1;c&&It&&(D._hasDeprecationWarned=It);let F=D.normalize(t);return c&&(It=D._hasDeprecationWarned),F}function Ku(t,{isCLI:e,FlagSchema:r}){let n=[];e&&n.push(ut.create({name:"_"}));for(let o of t)n.push(Hu(o,{isCLI:e,optionInfos:t,FlagSchema:r})),o.alias&&e&&n.push(nt.create({name:o.alias,sourceName:o.name}));return n}function Hu(t,{isCLI:e,optionInfos:r,FlagSchema:n}){let{name:o}=t,u={name:o},i,s={};switch(t.type){case"int":i=ct,e&&(u.preprocess=Number);break;case"string":i=Le;break;case"choice":i=at,u.choices=t.choices.map(a=>a!=null&&a.redirect?{...a,redirect:{to:{key:t.name,value:a.redirect}}}:a);break;case"boolean":i=it;break;case"flag":i=n,u.flags=r.flatMap(a=>[a.alias,a.description&&a.name,a.oppositeDescription&&`no-${a.name}`].filter(Boolean));break;case"path":i=Le;break;default:throw new Error(`Unexpected type ${t.type}`)}if(t.exception?u.validate=(a,D,c)=>t.exception(a)||D.validate(a,c):u.validate=(a,D,c)=>a===void 0||D.validate(a,c),t.redirect&&(s.redirect=a=>a?{to:{key:t.redirect.option,value:t.redirect.value}}:void 0),t.deprecated&&(s.deprecated=!0),e&&!t.array){let a=u.preprocess||(D=>D);u.preprocess=(D,c,F)=>c.preprocess(a(Array.isArray(D)?y(!1,D,-1):D),F)}return t.array?ot.create({...e?{preprocess:a=>Array.isArray(a)?a:[a]}:{},...s,valueSchema:i.create(u)}):i.create({...u,...s})}var un=Gu;function Rt(t,e){if(!e)throw new Error("parserName is required.");for(let n=t.length-1;n>=0;n--){let o=t[n];if(o.parsers&&Object.prototype.hasOwnProperty.call(o.parsers,e))return o}let r=`Couldn't resolve parser "${e}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new Se(r)}function on(t,e){if(!e)throw new Error("astFormat is required.");for(let n=t.length-1;n>=0;n--){let o=t[n];if(o.printers&&Object.prototype.hasOwnProperty.call(o.printers,e))return o}let r=`Couldn't find plugin for AST format "${e}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new Se(r)}function ft({plugins:t,parser:e}){let r=Rt(t,e);return Yt(r,e)}function Yt(t,e){let r=t.parsers[e];return typeof r=="function"?r():r}function sn(t,e){let r=t.printers[e];return typeof r=="function"?r():r}var an={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function qu(t,e={}){var F;let r={...t};if(!r.parser)if(r.filepath){if(r.parser=Lr(r,{physicalFile:r.filepath}),!r.parser)throw new ve(`No parser could be inferred for file "${r.filepath}".`)}else throw new ve("No parser and no file path given, couldn't infer a parser.");let n=et({plugins:t.plugins,showDeprecated:!0}).options,o={...an,...Object.fromEntries(n.filter(f=>f.default!==void 0).map(f=>[f.name,f.default]))},u=Rt(r.plugins,r.parser),i=await Yt(u,r.parser);r.astFormat=i.astFormat,r.locEnd=i.locEnd,r.locStart=i.locStart;let s=(F=u.printers)!=null&&F[i.astFormat]?u:on(r.plugins,i.astFormat),a=await sn(s,i.astFormat);r.printer=a;let D=s.defaultOptions?Object.fromEntries(Object.entries(s.defaultOptions).filter(([,f])=>f!==void 0)):{},c={...o,...D};for(let[f,d]of Object.entries(c))(r[f]===null||r[f]===void 0)&&(r[f]=d);return r.parser==="json"&&(r.trailingComma="none"),un(r,n,{passThrough:Object.keys(an),...e})}var re=qu;var Dn=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),Ju=t=>Object.keys(t).filter(e=>!Dn.has(e));function Xu(t){return t?e=>t(e,Dn):Ju}var H=Xu;function Zu(t,e){let{printer:{massageAstNode:r,getVisitorKeys:n}}=e;if(!r)return t;let o=H(n),u=r.ignoredProperties??new Set;return i(t);function i(s,a){if(!(s!==null&&typeof s=="object"))return s;if(Array.isArray(s))return s.map(f=>i(f,a)).filter(Boolean);let D={},c=new Set(o(s));for(let f in s)!Object.prototype.hasOwnProperty.call(s,f)||u.has(f)||(c.has(f)?D[f]=i(s[f],s):D[f]=s[f]);let F=r(s,D,a);if(F!==null)return F??D}}var cn=Zu;var Cn=Ce(hn(),1);async function io(t,e){let r=await ft(e),n=r.preprocess?r.preprocess(t,e):t;e.originalText=n;let o;try{o=await r.parse(n,e,e)}catch(u){so(u,t)}return{text:n,ast:o}}function so(t,e){let{loc:r}=t;if(r){let n=(0,Cn.codeFrameColumns)(e,r,{highlightCode:!0});throw t.message+=` +`+n,t.codeFrame=n,t}throw t}var ae=io;var Ie,$t,Fe,dt,Vt=class{constructor(e){Ct(this,Ie);Ct(this,Fe);this.stack=[e]}get key(){let{stack:e,siblings:r}=this;return y(!1,e,r===null?-2:-4)??null}get index(){return this.siblings===null?null:y(!1,this.stack,-2)}get node(){return y(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:e}=this,r=y(!1,e,-3);return Array.isArray(r)?r:null}get next(){let{siblings:e}=this;return e===null?null:e[this.index+1]}get previous(){let{siblings:e}=this;return e===null?null:e[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:e,index:r}=this;return e!==null&&r===e.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...ce(this,Fe,dt).call(this)]}getName(){let{stack:e}=this,{length:r}=e;return r>1?y(!1,e,-2):null}getValue(){return y(!1,this.stack,-1)}getNode(e=0){let r=ce(this,Ie,$t).call(this,e);return r===-1?null:this.stack[r]}getParentNode(e=0){return this.getNode(e+1)}call(e,...r){let{stack:n}=this,{length:o}=n,u=y(!1,n,-1);for(let i of r)u=u[i],n.push(i,u);try{return e(this)}finally{n.length=o}}callParent(e,r=0){let n=ce(this,Ie,$t).call(this,r+1),o=this.stack.splice(n+1);try{return e(this)}finally{this.stack.push(...o)}}each(e,...r){let{stack:n}=this,{length:o}=n,u=y(!1,n,-1);for(let i of r)u=u[i],n.push(i,u);try{for(let i=0;i{n[u]=e(o,u,i)},...r),n}match(...e){let r=this.stack.length-1,n=null,o=this.stack[r--];for(let u of e){if(o===void 0)return!1;let i=null;if(typeof n=="number"&&(i=n,n=this.stack[r--],o=this.stack[r--]),u&&!u(o,n,i))return!1;n=this.stack[r--],o=this.stack[r--]}return!0}findAncestor(e){for(let r of ce(this,Fe,dt).call(this))if(e(r))return r}hasAncestor(e){for(let r of ce(this,Fe,dt).call(this))if(e(r))return!0;return!1}};Ie=new WeakSet,$t=function(e){let{stack:r}=this;for(let n=r.length-1;n>=0;n-=2)if(!Array.isArray(r[n])&&--e<0)return n;return-1},Fe=new WeakSet,dt=function*(){let{stack:e}=this;for(let r=e.length-3;r>=0;r-=2){let n=e[r];Array.isArray(n)||(yield n)}};var gn=Vt;var yn=new Proxy(()=>{},{get:()=>yn}),Re=yn;function me(t){return(e,r,n)=>{let o=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:u}=e,i=r;for(;i>=0&&i0}var Ut=co;function lo(t){return t!==null&&typeof t=="object"}var _n=lo;function*Mt(t,e){let{getVisitorKeys:r,filter:n=()=>!0}=e,o=u=>_n(u)&&n(u);for(let u of r(t)){let i=t[u];if(Array.isArray(i))for(let s of i)o(s)&&(yield s);else o(i)&&(yield i)}}function*An(t,e){let r=[t];for(let n=0;n20&&(r=r.slice(0,19)+"\u2026"),e+(r?" "+r:"")}function Wt(t,e){(t.comments??(t.comments=[])).push(e),e.printed=!1,e.nodeDescription=fo(t)}function ne(t,e){e.leading=!0,e.trailing=!1,Wt(t,e)}function X(t,e,r){e.leading=!1,e.trailing=!1,r&&(e.marker=r),Wt(t,e)}function ue(t,e){e.leading=!1,e.trailing=!0,Wt(t,e)}var zt=new WeakMap;function Et(t,e){if(zt.has(t))return zt.get(t);let{printer:{getCommentChildNodes:r,canAttachComment:n,getVisitorKeys:o},locStart:u,locEnd:i}=e;if(!n)return[];let s=((r==null?void 0:r(t,e))??[...Mt(t,{getVisitorKeys:H(o)})]).flatMap(a=>n(a)?[a]:Et(a,e));return s.sort((a,D)=>u(a)-u(D)||i(a)-i(D)),zt.set(t,s),s}function kn(t,e,r,n){let{locStart:o,locEnd:u}=r,i=o(e),s=u(e),a=Et(t,r),D,c,F=0,f=a.length;for(;F>1,l=a[d],p=o(l),m=u(l);if(p<=i&&s<=m)return kn(l,e,r,l);if(m<=i){D=l,F=d+1;continue}if(s<=p){c=l,f=d;continue}throw new Error("Comment location overlaps with node location")}if((n==null?void 0:n.type)==="TemplateLiteral"){let{quasis:d}=n,l=Kt(d,e,r);D&&Kt(d,D,r)!==l&&(D=null),c&&Kt(d,c,r)!==l&&(c=null)}return{enclosingNode:n,precedingNode:D,followingNode:c}}var Gt=()=>!1;function bn(t,e){let{comments:r}=t;if(delete t.comments,!Ut(r)||!e.printer.canAttachComment)return;let n=[],{locStart:o,locEnd:u,printer:{experimentalFeatures:{avoidAstMutation:i=!1}={},handleComments:s={}},originalText:a}=e,{ownLine:D=Gt,endOfLine:c=Gt,remaining:F=Gt}=s,f=r.map((d,l)=>({...kn(t,d,e),comment:d,text:a,options:e,ast:t,isLastComment:r.length-1===l}));for(let[d,l]of f.entries()){let{comment:p,precedingNode:m,enclosingNode:E,followingNode:h,text:g,options:C,ast:_,isLastComment:Z}=l;if(C.parser==="json"||C.parser==="json5"||C.parser==="__js_expression"||C.parser==="__ts_expression"||C.parser==="__vue_expression"||C.parser==="__vue_ts_expression"){if(o(p)-o(_)<=0){ne(_,p);continue}if(u(p)-u(_)>=0){ue(_,p);continue}}let $;if(i?$=[l]:(p.enclosingNode=E,p.precedingNode=m,p.followingNode=h,$=[p,g,C,_,Z]),po(g,C,f,d))p.placement="ownLine",D(...$)||(h?ne(h,p):m?ue(m,p):E?X(E,p):X(_,p));else if(Fo(g,C,f,d))p.placement="endOfLine",c(...$)||(m?ue(m,p):h?ne(h,p):E?X(E,p):X(_,p));else if(p.placement="remaining",!F(...$))if(m&&h){let Q=n.length;Q>0&&n[Q-1].followingNode!==h&&Bn(n,C),n.push(l)}else m?ue(m,p):h?ne(h,p):E?X(E,p):X(_,p)}if(Bn(n,e),!i)for(let d of r)delete d.precedingNode,delete d.enclosingNode,delete d.followingNode}var wn=t=>!/[\S\n\u2028\u2029]/.test(t);function po(t,e,r,n){let{comment:o,precedingNode:u}=r[n],{locStart:i,locEnd:s}=e,a=i(o);if(u)for(let D=n-1;D>=0;D--){let{comment:c,precedingNode:F}=r[D];if(F!==u||!wn(t.slice(s(c),a)))break;a=i(c)}return V(t,a,{backwards:!0})}function Fo(t,e,r,n){let{comment:o,followingNode:u}=r[n],{locStart:i,locEnd:s}=e,a=s(o);if(u)for(let D=n+1;D0;--i){let{comment:D,precedingNode:c,followingNode:F}=t[i-1];Re.strictEqual(c,n),Re.strictEqual(F,o);let f=e.originalText.slice(e.locEnd(D),u);if(((a=(s=e.printer).isGap)==null?void 0:a.call(s,f,e))??/^[\s(]*$/.test(f))u=e.locStart(D);else break}for(let[D,{comment:c}]of t.entries())D1&&D.comments.sort((c,F)=>e.locStart(c)-e.locStart(F));t.length=0}function Kt(t,e,r){let n=r.locStart(e)-1;for(let o=1;o!n.has(a)).length===0)return{leading:"",trailing:""};let u=[],i=[],s;return t.each(()=>{let a=t.node;if(n!=null&&n.has(a))return;let{leading:D,trailing:c}=a;D?u.push(Eo(t,e)):c&&(s=ho(t,e,s),i.push(s.doc))},"comments"),{leading:u,trailing:i}}function Nn(t,e,r){let{leading:n,trailing:o}=Co(t,r);return!n&&!o?e:Ze(e,u=>[n,u,o])}function Tn(t){let{[Symbol.for("comments")]:e,[Symbol.for("printedComments")]:r}=t;for(let n of e){if(!n.printed&&!r.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}async function Sn(t,e,r,n,o){let{embeddedLanguageFormatting:u,printer:{embed:i,hasPrettierIgnore:s=()=>!1,getVisitorKeys:a}}=r;if(!i||u!=="auto")return;if(i.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");let D=H(i.getVisitorKeys??a),c=[];d();let F=t.stack;for(let{print:l,node:p,pathStack:m}of c)try{t.stack=m;let E=await l(f,e,t,r);E&&o.set(p,E)}catch(E){if(globalThis.PRETTIER_DEBUG)throw E}t.stack=F;function f(l,p){return go(l,p,r,n)}function d(){let{node:l}=t;if(l===null||typeof l!="object"||s(t))return;for(let m of D(l))Array.isArray(l[m])?t.each(d,m):t.call(d,m);let p=i(t,r);if(p){if(typeof p=="function"){c.push({print:p,node:l,pathStack:[...t.stack]});return}o.set(l,p)}}}async function go(t,e,r,n){let o=await re({...r,...e,parentParser:r.parser,originalText:t},{passThrough:!0}),{ast:u}=await ae(t,o),i=await n(u,o);return Xe(i)}function yo(t){return()=>{}}var vn=yo;function xo(t,e){let{originalText:r,[Symbol.for("comments")]:n,locStart:o,locEnd:u,[Symbol.for("printedComments")]:i}=e,{node:s}=t,a=o(s),D=u(s);for(let c of n)o(c)>=a&&u(c)<=D&&i.add(c);return r.slice(a,D)}var Pn=xo;async function je(t,e){({ast:t}=await Ht(t,e));let r=new Map,n=new gn(t),o=vn(e),u=new Map;await Sn(n,s,e,je,u);let i=await Ln(n,e,s,void 0,u);return Tn(e),i;function s(D,c){return D===void 0||D===n?a(c):Array.isArray(D)?n.call(()=>a(c),...D):n.call(()=>a(c),D)}function a(D){o(n);let c=n.node;if(c==null)return"";let F=c&&typeof c=="object"&&D===void 0;if(F&&r.has(c))return r.get(c);let f=Ln(n,e,s,D,u);return F&&r.set(c,f),f}}function Ln(t,e,r,n,o){var a;let{node:u}=t,{printer:i}=e,s;return(a=i.hasPrettierIgnore)!=null&&a.call(i,t)?s=Pn(t,e):o.has(u)?s=o.get(u):s=i.print(t,e,r,n),u===e.cursorNode&&(s=Ze(s,D=>[Be,D,Be])),i.printComment&&(!i.willPrintOwnComments||!i.willPrintOwnComments(t,e))&&(s=Nn(t,s,e)),s}async function Ht(t,e){let r=t.comments??[];e[Symbol.for("comments")]=r,e[Symbol.for("tokens")]=t.tokens??[],e[Symbol.for("printedComments")]=new Set,bn(t,e);let{printer:{preprocess:n}}=e;return t=n?await n(t,e):t,{ast:t,comments:r}}var _o=({parser:t})=>t==="json"||t==="json5"||t==="json-stringify";function Ao(t,e){let r=[t.node,...t.parentNodes],n=new Set([e.node,...e.parentNodes]);return r.find(o=>Yn.has(o.type)&&n.has(o))}function In(t){let e=t.length-1;for(;;){let r=t[e];if((r==null?void 0:r.type)==="Program"||(r==null?void 0:r.type)==="File")e--;else break}return t.slice(0,e+1)}function Bo(t,e,{locStart:r,locEnd:n}){let o=t.node,u=e.node;if(o===u)return{startNode:o,endNode:u};let i=r(t.node);for(let a of In(e.parentNodes))if(r(a)>=i)u=a;else break;let s=n(e.node);for(let a of In(t.parentNodes)){if(n(a)<=s)o=a;else break;if(o===u)break}return{startNode:o,endNode:u}}function qt(t,e,r,n,o=[],u){let{locStart:i,locEnd:s}=r,a=i(t),D=s(t);if(!(e>D||en);let s=t.slice(n,o).search(/\S/),a=s===-1;if(!a)for(n+=s;o>n&&!/\S/.test(t[o-1]);--o);let D=qt(r,n,e,(d,l)=>Rn(e,d,l),[],"rangeStart"),c=a?D:qt(r,o,e,d=>Rn(e,d),[],"rangeEnd");if(!D||!c)return{rangeStart:0,rangeEnd:0};let F,f;if(_o(e)){let d=Ao(D,c);F=d,f=d}else({startNode:F,endNode:f}=Bo(D,c,e));return{rangeStart:Math.min(u(F),u(f)),rangeEnd:Math.max(i(F),i(f))}}function wo(t,e){let{cursorOffset:r,locStart:n,locEnd:o}=e,u=H(e.printer.getVisitorKeys),i=a=>n(a)<=r&&o(a)>=r,s=t;for(let a of An(t,{getVisitorKeys:u,filter:i}))s=a;return s}var Vn=wo;var zn="\uFEFF",$n=Symbol("cursor");async function Gn(t,e,r=0){if(!t||t.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:o}=await ae(t,e);e.cursorOffset>=0&&(e.cursorNode=Vn(n,e));let u=await je(n,e,r);r>0&&(u=qe([G,u],r,e.tabWidth));let i=fe(u,e);if(r>0){let a=i.formatted.trim();i.cursorNodeStart!==void 0&&(i.cursorNodeStart-=i.formatted.indexOf(a)),i.formatted=a+be(e.endOfLine)}let s=e[Symbol.for("comments")];if(e.cursorOffset>=0){let a,D,c,F,f;if(e.cursorNode&&i.cursorNodeText?(a=e.locStart(e.cursorNode),D=o.slice(a,e.locEnd(e.cursorNode)),c=e.cursorOffset-a,F=i.cursorNodeStart,f=i.cursorNodeText):(a=0,D=o,c=e.cursorOffset,F=0,f=i.formatted),D===f)return{formatted:i.formatted,cursorOffset:F+c,comments:s};let d=D.split("");d.splice(c,0,$n);let l=f.split(""),p=(0,Wn.diffArrays)(d,l),m=F;for(let E of p)if(E.removed){if(E.value.includes($n))break}else m+=E.count;return{formatted:i.formatted,cursorOffset:m,comments:s}}return{formatted:i.formatted,cursorOffset:-1,comments:s}}async function Oo(t,e){let{ast:r,text:n}=await ae(t,e),{rangeStart:o,rangeEnd:u}=jn(n,e,r),i=n.slice(o,u),s=Math.min(o,n.lastIndexOf(` +`,o)+1),a=n.slice(s,o).match(/^\s*/)[0],D=pe(a,e.tabWidth),c=await Gn(i,{...e,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:e.cursorOffset>o&&e.cursorOffset<=u?e.cursorOffset-o:-1,endOfLine:"lf"},D),F=c.formatted.trimEnd(),{cursorOffset:f}=e;f>u?f+=F.length-i.length:c.cursorOffset>=0&&(f=c.cursorOffset+o);let d=n.slice(0,o)+F+n.slice(u);if(e.endOfLine!=="lf"){let l=be(e.endOfLine);f>=0&&l===`\r +`&&(f+=At(d.slice(0,f),` +`)),d=ee(!1,d,` +`,l)}return{formatted:d,cursorOffset:f,comments:c.comments}}function Jt(t,e,r){return typeof e!="number"||Number.isNaN(e)||e<0||e>t.length?r:e}function Un(t,e){let{cursorOffset:r,rangeStart:n,rangeEnd:o}=e;return r=Jt(t,r,-1),n=Jt(t,n,0),o=Jt(t,o,t.length),{...e,cursorOffset:r,rangeStart:n,rangeEnd:o}}function Kn(t,e){let{cursorOffset:r,rangeStart:n,rangeEnd:o,endOfLine:u}=Un(t,e),i=t.charAt(0)===zn;if(i&&(t=t.slice(1),r--,n--,o--),u==="auto"&&(u=Cr(t)),t.includes("\r")){let s=a=>At(t.slice(0,Math.max(a,0)),`\r +`);r-=s(r),n-=s(n),o-=s(o),t=gr(t)}return{hasBOM:i,text:t,options:Un(t,{...e,cursorOffset:r,rangeStart:n,rangeEnd:o,endOfLine:u})}}async function Mn(t,e){let r=await ft(e);return!r.hasPragma||r.hasPragma(t)}async function Xt(t,e){let{hasBOM:r,text:n,options:o}=Kn(t,await re(e));if(o.rangeStart>=o.rangeEnd&&n!==""||o.requirePragma&&!await Mn(n,o))return{formatted:t,cursorOffset:e.cursorOffset,comments:[]};let u;return o.rangeStart>0||o.rangeEnd=0&&u.cursorOffset++),u}async function Hn(t,e,r){let{text:n,options:o}=Kn(t,await re(e)),u=await ae(n,o);return r&&(r.preprocessForPrint&&(u.ast=await Ht(u.ast,o)),r.massage&&(u.ast=cn(u.ast,o))),u}async function qn(t,e){e=await re(e);let r=await je(t,e);return fe(r,e)}async function Jn(t,e){let r=Sr(t),{formatted:n}=await Xt(r,{...e,parser:"__js_expression"});return n}async function Xn(t,e){e=await re(e);let{ast:r}=await ae(t,e);return je(r,e)}async function Zn(t,e){return fe(t,await re(e))}var Qt={};Me(Qt,{addDanglingComment:()=>X,addLeadingComment:()=>ne,addTrailingComment:()=>ue,getAlignmentSize:()=>pe,getIndentSize:()=>eu,getMaxContinuousCount:()=>Qn,getNextNonSpaceNonCommentCharacter:()=>nu,getNextNonSpaceNonCommentCharacterIndex:()=>Uo,getStringWidth:()=>we,hasNewline:()=>V,hasNewlineInRange:()=>tu,hasSpaces:()=>ru,isNextLineEmpty:()=>Go,isNextLineEmptyAfterIndex:()=>ht,isPreviousLineEmpty:()=>Wo,makeString:()=>uu,skip:()=>me,skipEverythingButNewLine:()=>mt,skipInlineComment:()=>Ee,skipNewline:()=>Y,skipSpaces:()=>N,skipToLineEnd:()=>Ft,skipTrailingComment:()=>he,skipWhitespace:()=>xn});function To(t,e){if(e===!1)return!1;if(t.charAt(e)==="/"&&t.charAt(e+1)==="*"){for(let r=e+2;rMath.max(n,o.length/e.length),0)}var Qn=Lo;function Io(t,e){let r=t.lastIndexOf(` +`);return r===-1?0:pe(t.slice(r+1).match(/^[\t ]*/)[0],e)}var eu=Io;function Ro(t,e,r){for(let n=e;ns===n?s:a===e?"\\"+a:a||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(s)?s:"\\"+s));return e+u+e}var uu=Vo;function $o(t,e,r){return Ve(t,r(e))}function Uo(t,e){return arguments.length===2||typeof e=="number"?Ve(t,e):$o(...arguments)}function Mo(t,e,r){return Ye(t,r(e))}function Wo(t,e){return arguments.length===2||typeof e=="number"?Ye(t,e):Mo(...arguments)}function zo(t,e,r){return ht(t,r(e))}function Go(t,e){return arguments.length===2||typeof e=="number"?ht(t,e):zo(...arguments)}var er={};Me(er,{builders:()=>Ko,printer:()=>Ho,utils:()=>qo});var Ko={join:ke,line:Ke,softline:Er,hardline:G,literalline:He,group:xt,conditionalGroup:fr,fill:Ge,lineSuffix:_e,lineSuffixBoundary:Fr,cursor:Be,breakParent:le,ifBreak:pr,trim:mr,indent:ie,indentIfBreak:dr,align:oe,addAlignmentToDoc:qe,markAsRoot:cr,dedentToRoot:Dr,dedent:lr,hardlineWithoutBreakParent:Ae,literallineWithoutBreakParent:_t,label:hr,concat:t=>t},Ho={printDocToString:fe},qo={willBreak:kr,traverseDoc:xe,findInDoc:Je,mapDoc:Ne,removeLines:wr,stripTrailingHardline:Xe,replaceEndOfLine:Or,canBreak:Nr};var ou="3.0.3";function De(t,e=1){return async(...r)=>{let n=r[e]??{},o=n.plugins??[];return r[e]={...n,plugins:Array.isArray(o)?o:Object.values(o)},t(...r)}}var iu=De(Xt);async function su(t,e){let{formatted:r}=await iu(t,{...e,cursorOffset:-1});return r}async function Jo(t,e){return await su(t,e)===t}var Xo=De(et,0),Zo={parse:De(Hn),formatAST:De(qn),formatDoc:De(Jn),printToDoc:De(Xn),printDocToString:De(Zn)};return nr(Qo);}); \ No newline at end of file diff --git a/node_modules/prettier/standalone.mjs b/node_modules/prettier/standalone.mjs index 0bbf6e1..bb7ec7a 100644 --- a/node_modules/prettier/standalone.mjs +++ b/node_modules/prettier/standalone.mjs @@ -1,34 +1,37 @@ -var Wu=Object.create;var et=Object.defineProperty;var Gu=Object.getOwnPropertyDescriptor;var Uu=Object.getOwnPropertyNames;var Ku=Object.getPrototypeOf,Hu=Object.prototype.hasOwnProperty;var Ot=(e,t)=>()=>(e&&(t=e(e=0)),t);var E=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ge=(e,t)=>{for(var r in t)et(e,r,{get:t[r],enumerable:!0})},Yr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Uu(t))!Hu.call(e,i)&&i!==r&&et(e,i,{get:()=>t[i],enumerable:!(n=Gu(t,i))||n.enumerable});return e};var kt=(e,t,r)=>(r=e!=null?Wu(Ku(e)):{},Yr(t||!e||!e.__esModule?et(r,"default",{value:e,enumerable:!0}):r,e)),$=e=>Yr(et({},"__esModule",{value:!0}),e);var Ju=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var St=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)};var ye=(e,t,r)=>(Ju(e,t,"access private method"),r);var qr=E(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.default=Mr;function Mr(){}Mr.prototype={diff:function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.callback;typeof n=="function"&&(i=n,n={}),this.options=n;var u=this;function o(p){return i?(setTimeout(function(){i(void 0,p)},0),!0):p}t=this.castInput(t),r=this.castInput(r),t=this.removeEmpty(this.tokenize(t)),r=this.removeEmpty(this.tokenize(r));var s=r.length,a=t.length,D=1,c=s+a;n.maxEditLength&&(c=Math.min(c,n.maxEditLength));var d=[{newPos:-1,components:[]}],l=this.extractCommon(d[0],r,t,0);if(d[0].newPos+1>=s&&l+1>=a)return o([{value:this.join(r),count:r.length}]);function F(){for(var p=-1*D;p<=D;p+=2){var m=void 0,h=d[p-1],C=d[p+1],g=(C?C.newPos:0)-p;h&&(d[p-1]=void 0);var y=h&&h.newPos+1=s&&g+1>=a)return o(Zu(u,m.components,r,t,u.useLongestToken));d[p]=m}D++}if(i)(function p(){setTimeout(function(){if(D>c)return i();F()||p()},0)})();else for(;D<=c;){var f=F();if(f)return f}},pushComponent:function(t,r,n){var i=t[t.length-1];i&&i.added===r&&i.removed===n?t[t.length-1]={count:i.count+1,added:r,removed:n}:t.push({count:1,added:r,removed:n})},extractCommon:function(t,r,n,i){for(var u=r.length,o=n.length,s=t.newPos,a=s-i,D=0;s+1F.length?p:F}),D.value=e.join(c)}else D.value=e.join(r.slice(s,s+D.count));s+=D.count,D.added||(a+=D.count)}}var l=t[o-1];return o>1&&typeof l.value=="string"&&(l.added||l.removed)&&e.equals("",l.value)&&(t[o-2].value+=l.value,t.pop()),t}function Qu(e){return{newPos:e.newPos,components:e.components.slice(0)}}});var $r=E(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.diffArrays=ri;ve.arrayDiff=void 0;var ei=ti(qr());function ti(e){return e&&e.__esModule?e:{default:e}}var Se=new ei.default;ve.arrayDiff=Se;Se.tokenize=function(e){return e.slice()};Se.join=Se.removeEmpty=function(e){return e};function ri(e,t,r){return Se.diff(e,t,r)}});var ne={};ge(ne,{__assign:()=>Yt,__asyncDelegator:()=>Ri,__asyncGenerator:()=>Pi,__asyncValues:()=>Ii,__await:()=>ze,__awaiter:()=>Oi,__classPrivateFieldGet:()=>Mi,__classPrivateFieldSet:()=>qi,__createBinding:()=>Si,__decorate:()=>Ai,__exportStar:()=>vi,__extends:()=>xi,__generator:()=>ki,__importDefault:()=>Yi,__importStar:()=>ji,__makeTemplateObject:()=>Li,__metadata:()=>wi,__param:()=>Bi,__read:()=>Cn,__rest:()=>bi,__spread:()=>Ti,__spreadArrays:()=>Ni,__values:()=>Mt});function xi(e,t){jt(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function bi(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i=0;s--)(o=e[s])&&(u=(i<3?o(u):i>3?o(t,r,u):o(t,r))||u);return i>3&&u&&Object.defineProperty(t,r,u),u}function Bi(e,t){return function(r,n){t(r,n,e)}}function wi(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Oi(e,t,r,n){function i(u){return u instanceof r?u:new r(function(o){o(u)})}return new(r||(r=Promise))(function(u,o){function s(c){try{D(n.next(c))}catch(d){o(d)}}function a(c){try{D(n.throw(c))}catch(d){o(d)}}function D(c){c.done?u(c.value):i(c.value).then(s,a)}D((n=n.apply(e,t||[])).next())})}function ki(e,t){var r={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},n,i,u,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(D){return function(c){return a([D,c])}}function a(D){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(u=D[0]&2?i.return:D[0]?i.throw||((u=i.return)&&u.call(i),0):i.next)&&!(u=u.call(i,D[1])).done)return u;switch(i=0,u&&(D=[D[0]&2,u.value]),D[0]){case 0:case 1:u=D;break;case 4:return r.label++,{value:D[1],done:!1};case 5:r.label++,i=D[1],D=[0];continue;case 7:D=r.ops.pop(),r.trys.pop();continue;default:if(u=r.trys,!(u=u.length>0&&u[u.length-1])&&(D[0]===6||D[0]===2)){r=0;continue}if(D[0]===3&&(!u||D[1]>u[0]&&D[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Cn(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return u}function Ti(){for(var e=[],t=0;t1||s(l,F)})})}function s(l,F){try{a(n[l](F))}catch(f){d(u[0][3],f)}}function a(l){l.value instanceof ze?Promise.resolve(l.value.v).then(D,c):d(u[0][2],l)}function D(l){s("next",l)}function c(l){s("throw",l)}function d(l,F){l(F),u.shift(),u.length&&s(u[0][0],u[0][1])}}function Ri(e){var t,r;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,u){t[i]=e[i]?function(o){return(r=!r)?{value:ze(e[i](o)),done:i==="return"}:u?u(o):o}:u}}function Ii(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof Mt=="function"?Mt(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(u){r[u]=e[u]&&function(o){return new Promise(function(s,a){o=e[u](o),i(s,a,o.done,o.value)})}}function i(u,o,s,a){Promise.resolve(a).then(function(D){u({value:D,done:s})},o)}}function Li(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function ji(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function Yi(e){return e&&e.__esModule?e:{default:e}}function Mi(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function qi(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}var jt,Yt,ue=Ot(()=>{jt=function(e,t){return jt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},jt(e,t)};Yt=function(){return Yt=Object.assign||function(t){for(var r,n=1,i=arguments.length;n{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.apiDescriptor={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(r=>me.apiDescriptor.value(r)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(r=>`${me.apiDescriptor.key(r)}: ${me.apiDescriptor.value(e[r])}`).join(", ")} }`},pair:({key:e,value:t})=>me.apiDescriptor.value({[e]:t})}});var gn=E($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});var $i=(ue(),$(ne));$i.__exportStar(qt(),$t)});var ft={};ge(ft,{default:()=>Vt});var Y,Vt,We=Ot(()=>{Y=e=>e;Y.grey=Y;Y.red=Y;Y.bold=Y;Y.yellow=Y;Y.blue=Y;Y.default=Y;Vt=Y});var Wt=E(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});var yn=(We(),$(ft));zt.commonDeprecatedHandler=(e,t,{descriptor:r})=>{let n=[`${yn.default.yellow(typeof e=="string"?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${yn.default.blue(typeof t=="string"?r.key(t):r.pair(t))}`),n.join("; ")+"."}});var _n=E(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});var Vi=(ue(),$(ne));Vi.__exportStar(Wt(),Gt)});var xn=E(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});var Ut=(We(),$(ft));Kt.commonInvalidHandler=(e,t,r)=>[`Invalid ${Ut.default.red(r.descriptor.key(e))} value.`,`Expected ${Ut.default.blue(r.schemas[e].expected(r))},`,`but received ${Ut.default.red(r.descriptor.value(t))}.`].join(" ")});var Jt=E(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});var zi=(ue(),$(ne));zi.__exportStar(xn(),Ht)});var Bn=E((Pa,An)=>{"use strict";var Xt=[],bn=[];An.exports=function(e,t){if(e===t)return 0;var r=e;e.length>t.length&&(e=t,t=r);var n=e.length,i=t.length;if(n===0)return i;if(i===0)return n;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-i);)n--,i--;if(n===0)return i;for(var u=0;us?D>s?s+1:D:D>a?a+1:D;return s}});var Qt=E(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});var wn=(We(),$(ft)),Wi=Bn();Zt.levenUnknownHandler=(e,t,{descriptor:r,logger:n,schemas:i})=>{let u=[`Ignored unknown option ${wn.default.yellow(r.pair({key:e,value:t}))}.`],o=Object.keys(i).sort().find(s=>Wi(e,s)<3);o&&u.push(`Did you mean ${wn.default.blue(r.key(o))}?`),n.warn(u.join(" "))}});var On=E(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});var Gi=(ue(),$(ne));Gi.__exportStar(Qt(),er)});var kn=E(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});var tr=(ue(),$(ne));tr.__exportStar(_n(),Ge);tr.__exportStar(Jt(),Ge);tr.__exportStar(On(),Ge)});var ie=E(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});var Ui=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function Sn(e,t){let r=new e(t),n=Object.create(r);for(let i of Ui)i in t&&(n[i]=Ki(t[i],r,pt.prototype[i].length));return n}dt.createSchema=Sn;var pt=class{constructor(t){this.name=t.name}static create(t){return Sn(this,t)}default(t){}expected(t){return"nothing"}validate(t,r){return!1}deprecated(t,r){return!1}forward(t,r){}redirect(t,r){}overlap(t,r,n){return t}preprocess(t,r){return t}postprocess(t,r){return t}};dt.Schema=pt;function Ki(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}});var vn=E(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});var Hi=ie(),rr=class extends Hi.Schema{constructor(t){super(t),this._sourceName=t.sourceName}expected(t){return t.schemas[this._sourceName].expected(t)}validate(t,r){return r.schemas[this._sourceName].validate(t,r)}redirect(t,r){return this._sourceName}};nr.AliasSchema=rr});var Tn=E(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});var Ji=ie(),ur=class extends Ji.Schema{expected(){return"anything"}validate(){return!0}};ir.AnySchema=ur});var Pn=E(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});var Xi=(ue(),$(ne)),Zi=ie(),or=class extends Zi.Schema{constructor(t){var{valueSchema:r,name:n=r.name}=t,i=Xi.__rest(t,["valueSchema","name"]);super(Object.assign({},i,{name:n})),this._valueSchema=r}expected(t){return`an array of ${this._valueSchema.expected(t)}`}validate(t,r){if(!Array.isArray(t))return!1;let n=[];for(let i of t){let u=r.normalizeValidateResult(this._valueSchema.validate(i,r),i);u!==!0&&n.push(u.value)}return n.length===0?!0:{value:n}}deprecated(t,r){let n=[];for(let i of t){let u=r.normalizeDeprecatedResult(this._valueSchema.deprecated(i,r),i);u!==!1&&n.push(...u.map(({value:o})=>({value:[o]})))}return n}forward(t,r){let n=[];for(let i of t){let u=r.normalizeForwardResult(this._valueSchema.forward(i,r),i);n.push(...u.map(Nn))}return n}redirect(t,r){let n=[],i=[];for(let u of t){let o=r.normalizeRedirectResult(this._valueSchema.redirect(u,r),u);"remain"in o&&n.push(o.remain),i.push(...o.redirect.map(Nn))}return n.length===0?{redirect:i}:{redirect:i,remain:n}}overlap(t,r){return t.concat(r)}};sr.ArraySchema=or;function Nn({from:e,to:t}){return{from:[e],to:t}}});var Rn=E(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});var Qi=ie(),ar=class extends Qi.Schema{expected(){return"true or false"}validate(t){return typeof t=="boolean"}};Dr.BooleanSchema=ar});var Ft=E(j=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});function eo(e,t){let r=Object.create(null);for(let n of e){let i=n[t];if(r[i])throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);r[i]=n}return r}j.recordFromArray=eo;function to(e,t){let r=new Map;for(let n of e){let i=n[t];if(r.has(i))throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);r.set(i,n)}return r}j.mapFromArray=to;function ro(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}j.createAutoChecklist=ro;function no(e,t){let r=[],n=[];for(let i of e)t(i)?r.push(i):n.push(i);return[r,n]}j.partition=no;function uo(e){return e===Math.floor(e)}j.isInt=uo;function io(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,i=["undefined","object","boolean","number","string"];return r!==n?i.indexOf(r)-i.indexOf(n):r!=="string"?Number(e)-Number(t):e.localeCompare(t)}j.comparePrimitive=io;function oo(e){return e===void 0?{}:e}j.normalizeDefaultResult=oo;function so(e,t){return e===!0?!0:e===!1?{value:t}:e}j.normalizeValidateResult=so;function ao(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}j.normalizeDeprecatedResult=ao;function cr(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}j.normalizeTransferResult=cr;function In(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>cr(r,t)):[cr(e,t)]}j.normalizeForwardResult=In;function Do(e,t){let r=In(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return r.length===0?{remain:t,redirect:r}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}j.normalizeRedirectResult=Do});var jn=E(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});var co=ie(),Ln=Ft(),lr=class extends co.Schema{constructor(t){super(t),this._choices=Ln.mapFromArray(t.choices.map(r=>r&&typeof r=="object"?r:{value:r}),"value")}expected({descriptor:t}){let r=Array.from(this._choices.keys()).map(u=>this._choices.get(u)).filter(u=>!u.deprecated).map(u=>u.value).sort(Ln.comparePrimitive).map(t.value),n=r.slice(0,-2),i=r.slice(-2);return n.concat(i.join(" or ")).join(", ")}validate(t){return this._choices.has(t)}deprecated(t){let r=this._choices.get(t);return r&&r.deprecated?{value:t}:!1}forward(t){let r=this._choices.get(t);return r?r.forward:void 0}redirect(t){let r=this._choices.get(t);return r?r.redirect:void 0}};fr.ChoiceSchema=lr});var Fr=E(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});var lo=ie(),pr=class extends lo.Schema{expected(){return"a number"}validate(t,r){return typeof t=="number"}};dr.NumberSchema=pr});var Yn=E(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});var fo=Ft(),po=Fr(),mr=class extends po.NumberSchema{expected(){return"an integer"}validate(t,r){return r.normalizeValidateResult(super.validate(t,r),t)===!0&&fo.isInt(t)}};hr.IntegerSchema=mr});var Mn=E(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});var Fo=ie(),Er=class extends Fo.Schema{expected(){return"a string"}validate(t){return typeof t=="string"}};Cr.StringSchema=Er});var qn=E(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var ce=(ue(),$(ne));ce.__exportStar(vn(),Q);ce.__exportStar(Tn(),Q);ce.__exportStar(Pn(),Q);ce.__exportStar(Rn(),Q);ce.__exportStar(jn(),Q);ce.__exportStar(Yn(),Q);ce.__exportStar(Fr(),Q);ce.__exportStar(Mn(),Q)});var $n=E(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});var mo=qt(),ho=Wt(),Eo=Jt(),Co=Qt();Ae.defaultDescriptor=mo.apiDescriptor;Ae.defaultUnknownHandler=Co.levenUnknownHandler;Ae.defaultInvalidHandler=Eo.commonInvalidHandler;Ae.defaultDeprecatedHandler=ho.commonDeprecatedHandler});var Vn=E(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});var mt=$n(),M=Ft();Et.normalize=(e,t,r)=>new ht(t,r).normalize(e);var ht=class{constructor(t,r){let{logger:n=console,descriptor:i=mt.defaultDescriptor,unknown:u=mt.defaultUnknownHandler,invalid:o=mt.defaultInvalidHandler,deprecated:s=mt.defaultDeprecatedHandler}=r||{};this._utils={descriptor:i,logger:n||{warn:()=>{}},schemas:M.recordFromArray(t,"name"),normalizeDefaultResult:M.normalizeDefaultResult,normalizeDeprecatedResult:M.normalizeDeprecatedResult,normalizeForwardResult:M.normalizeForwardResult,normalizeRedirectResult:M.normalizeRedirectResult,normalizeValidateResult:M.normalizeValidateResult},this._unknownHandler=u,this._invalidHandler=o,this._deprecatedHandler=s,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=M.createAutoChecklist()}normalize(t){let r={},n=[t],i=()=>{for(;n.length!==0;){let u=n.shift(),o=this._applyNormalization(u,r);n.push(...o)}};i();for(let u of Object.keys(this._utils.schemas)){let o=this._utils.schemas[u];if(!(u in r)){let s=M.normalizeDefaultResult(o.default(this._utils));"value"in s&&n.push({[u]:s.value})}}i();for(let u of Object.keys(this._utils.schemas)){let o=this._utils.schemas[u];u in r&&(r[u]=o.postprocess(r[u],this._utils))}return r}_applyNormalization(t,r){let n=[],[i,u]=M.partition(Object.keys(t),o=>o in this._utils.schemas);for(let o of i){let s=this._utils.schemas[o],a=s.preprocess(t[o],this._utils),D=M.normalizeValidateResult(s.validate(a,this._utils),a);if(D!==!0){let{value:f}=D,p=this._invalidHandler(o,f,this._utils);throw typeof p=="string"?new Error(p):p}let c=({from:f,to:p})=>{n.push(typeof p=="string"?{[p]:f}:{[p.key]:p.value})},d=({value:f,redirectTo:p})=>{let m=M.normalizeDeprecatedResult(s.deprecated(f,this._utils),a,!0);if(m!==!1)if(m===!0)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,p,this._utils));else for(let{value:h}of m){let C={key:o,value:h};if(!this._hasDeprecationWarned(C)){let g=typeof p=="string"?{key:p,value:h}:p;this._utils.logger.warn(this._deprecatedHandler(C,g,this._utils))}}};M.normalizeForwardResult(s.forward(a,this._utils),a).forEach(c);let F=M.normalizeRedirectResult(s.redirect(a,this._utils),a);if(F.redirect.forEach(c),"remain"in F){let f=F.remain;r[o]=o in r?s.overlap(r[o],f,this._utils):f,d({value:f})}for(let{from:f,to:p}of F.redirect)d({value:f,redirectTo:p})}for(let o of u){let s=t[o],a=this._unknownHandler(o,s,this._utils);if(a)for(let D of Object.keys(a)){let c={[D]:a[D]};D in this._utils.schemas?n.push(c):Object.assign(r,c)}}return n}};Et.Normalizer=ht});var zn=E(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});var Ue=(ue(),$(ne));Ue.__exportStar(gn(),he);Ue.__exportStar(kn(),he);Ue.__exportStar(qn(),he);Ue.__exportStar(Vn(),he);Ue.__exportStar(ie(),he)});var Xn={};ge(Xn,{getChalk:()=>Oo,shouldHighlight:()=>wo});var wo,Oo,Zn=Ot(()=>{We();wo=()=>!1,Oo=()=>Vt});var ru=E(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.codeFrameColumns=tu;gt.default=vo;var xr=(Zn(),$(Xn)),Qn=!1;function ko(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}var eu=/\r\n|[\n\r\u2028\u2029]/;function So(e,t,r){let n=Object.assign({column:0,line:-1},e.start),i=Object.assign({},n,e.end),{linesAbove:u=2,linesBelow:o=3}=r||{},s=n.line,a=n.column,D=i.line,c=i.column,d=Math.max(s-(u+1),0),l=Math.min(t.length,D+o);s===-1&&(d=0),D===-1&&(l=t.length);let F=D-s,f={};if(F)for(let p=0;p<=F;p++){let m=p+s;if(!a)f[m]=!0;else if(p===0){let h=t[m-1].length;f[m]=[a,h-a+1]}else if(p===F)f[m]=[0,c];else{let h=t[m-p].length;f[m]=[0,h]}}else a===c?a?f[s]=[a,0]:f[s]=!0:f[s]=[a,c-a];return{start:d,end:l,markerLines:f}}function tu(e,t,r={}){let n=(r.highlightCode||r.forceColor)&&(0,xr.shouldHighlight)(r),i=(0,xr.getChalk)(r),u=ko(i),o=(p,m)=>n?p(m):m,s=e.split(eu),{start:a,end:D,markerLines:c}=So(t,s,r),d=t.start&&typeof t.start.column=="number",l=String(D).length,f=(n?(0,xr.default)(e,r):e).split(eu,D).slice(a,D).map((p,m)=>{let h=a+1+m,g=` ${` ${h}`.slice(-l)} |`,y=c[h],b=!c[h+1];if(y){let se="";if(Array.isArray(y)){let G=p.slice(0,Math.max(y[0]-1,0)).replace(/[^\t]/g," "),ae=y[1]||1;se=[` - `,o(u.gutter,g.replace(/\d/g," "))," ",G,o(u.marker,"^").repeat(ae)].join(""),b&&r.message&&(se+=" "+o(u.message,r.message))}return[o(u.marker,">"),o(u.gutter,g),p.length>0?` ${p}`:"",se].join("")}else return` ${o(u.gutter,g)}${p.length>0?` ${p}`:""}`}).join(` -`);return r.message&&!d&&(f=`${" ".repeat(l+1)}${r.message} -${f}`),n?i.reset(f):f}function vo(e,t,r,n={}){if(!Qn){Qn=!0;let u="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";{let o=new Error(u);o.name="DeprecationWarning",console.warn(new Error(u))}}return r=Math.max(r,0),tu(e,{start:{column:r,line:t}},n)}});var Lr={};ge(Lr,{__debug:()=>xs,check:()=>ys,doc:()=>wt,format:()=>zu,formatWithCursor:()=>Vu,getSupportInfo:()=>_s,util:()=>Bt,version:()=>$u});var Xu=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},De=Xu;var wu=kt($r(),1);var U="string",V="array",K="cursor",v="indent",T="align",N="trim",A="group",w="fill",B="if-break",P="indent-if-break",R="line-suffix",I="line-suffix-boundary",x="line",k="label",O="break-parent",tt=new Set([K,v,T,N,A,w,B,P,R,I,x,k,O]);function ni(e){if(typeof e=="string")return U;if(Array.isArray(e))return V;if(!e)return;let{type:t}=e;if(tt.has(t))return t}var H=ni;var ui=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function ii(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', -Expected it to be 'string' or 'object'.`;if(H(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=ui([...tt].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'. -Expected it to be ${n}.`}var Tt=class extends Error{name="InvalidDocError";constructor(t){super(ii(t)),this.doc=t}},te=Tt;var Vr={};function oi(e,t,r,n){let i=[e];for(;i.length>0;){let u=i.pop();if(u===Vr){r(i.pop());continue}r&&i.push(u,Vr);let o=H(u);if(!o)throw new te(u);if((t==null?void 0:t(u))!==!1)switch(o){case V:case w:{let s=o===V?u:u.parts;for(let a=s.length,D=a-1;D>=0;--D)i.push(s[D]);break}case B:i.push(u.flatContents,u.breakContents);break;case A:if(n&&u.expandedStates)for(let s=u.expandedStates.length,a=s-1;a>=0;--a)i.push(u.expandedStates[a]);else i.push(u.contents);break;case T:case v:case P:case k:case R:i.push(u.contents);break;case U:case K:case N:case I:case x:case O:break;default:throw new te(u)}}}var Te=oi;var zr=()=>{},J=zr,rt=zr;function Fe(e){return J(e),{type:v,contents:e}}function de(e,t){return J(t),{type:T,contents:t,n:e}}function Nt(e,t={}){return J(e),rt(t.expandedStates,!0),{type:A,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Wr(e){return de(Number.NEGATIVE_INFINITY,e)}function Gr(e){return de({type:"root"},e)}function Ur(e){return de(-1,e)}function Kr(e,t){return Nt(e[0],{...t,expandedStates:e})}function nt(e){return rt(e),{type:w,parts:e}}function Hr(e,t="",r={}){return J(e),t!==""&&J(t),{type:B,breakContents:e,flatContents:t,groupId:r.groupId}}function Jr(e,t){return J(e),{type:P,contents:e,groupId:t.groupId,negate:t.negate}}function Ne(e){return J(e),{type:R,contents:e}}var Xr={type:I},_e={type:O},Zr={type:N},Pe={type:x,hard:!0},Pt={type:x,hard:!0,literal:!0},ut={type:x},Qr={type:x,soft:!0},X=[Pe,_e],it=[Pt,_e],Re={type:K};function Ie(e,t){J(e),rt(t);let r=[];for(let n=0;n0){for(let i=0;i{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},_=si;function tn(e){let t=e.indexOf("\r");return t>=0?e.charAt(t+1)===` -`?"crlf":"cr":"lf"}function Le(e){switch(e){case"cr":return"\r";case"crlf":return`\r +var au=Object.create;var $e=Object.defineProperty;var Du=Object.getOwnPropertyDescriptor;var cu=Object.getOwnPropertyNames;var lu=Object.getPrototypeOf,fu=Object.prototype.hasOwnProperty;var pu=(t,e)=>()=>(t&&(e=t(t=0)),e);var Ue=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Me=(t,e)=>{for(var r in e)$e(t,r,{get:e[r],enumerable:!0})},nr=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of cu(e))!fu.call(t,o)&&o!==r&&$e(t,o,{get:()=>e[o],enumerable:!(n=Du(e,o))||n.enumerable});return t};var Ce=(t,e,r)=>(r=t!=null?au(lu(t)):{},nr(e||!t||!t.__esModule?$e(r,"default",{value:t,enumerable:!0}):r,t)),du=t=>nr($e({},"__esModule",{value:!0}),t);var Fu=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var Ct=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)};var ce=(t,e,r)=>(Fu(t,e,"access private method"),r);var or=Ue(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.default=ur;function ur(){}ur.prototype={diff:function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=n.callback;typeof n=="function"&&(o=n,n={}),this.options=n;var u=this;function i(p){return o?(setTimeout(function(){o(void 0,p)},0),!0):p}e=this.castInput(e),r=this.castInput(r),e=this.removeEmpty(this.tokenize(e)),r=this.removeEmpty(this.tokenize(r));var s=r.length,a=e.length,D=1,c=s+a;n.maxEditLength&&(c=Math.min(c,n.maxEditLength));var F=[{newPos:-1,components:[]}],f=this.extractCommon(F[0],r,e,0);if(F[0].newPos+1>=s&&f+1>=a)return i([{value:this.join(r),count:r.length}]);function d(){for(var p=-1*D;p<=D;p+=2){var m=void 0,E=F[p-1],h=F[p+1],g=(h?h.newPos:0)-p;E&&(F[p-1]=void 0);var C=E&&E.newPos+1=s&&g+1>=a)return i(Eu(u,m.components,r,e,u.useLongestToken));F[p]=m}D++}if(o)(function p(){setTimeout(function(){if(D>c)return o();d()||p()},0)})();else for(;D<=c;){var l=d();if(l)return l}},pushComponent:function(e,r,n){var o=e[e.length-1];o&&o.added===r&&o.removed===n?e[e.length-1]={count:o.count+1,added:r,removed:n}:e.push({count:1,added:r,removed:n})},extractCommon:function(e,r,n,o){for(var u=r.length,i=n.length,s=e.newPos,a=s-o,D=0;s+1d.length?p:d}),D.value=t.join(c)}else D.value=t.join(r.slice(s,s+D.count));s+=D.count,D.added||(a+=D.count)}}var f=e[i-1];return i>1&&typeof f.value=="string"&&(f.added||f.removed)&&t.equals("",f.value)&&(e[i-2].value+=f.value,e.pop()),e}function hu(t){return{newPos:t.newPos,components:t.components.slice(0)}}});var ir=Ue(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.diffArrays=yu;ye.arrayDiff=void 0;var Cu=gu(or());function gu(t){return t&&t.__esModule?t:{default:t}}var ge=new Cu.default;ye.arrayDiff=ge;ge.tokenize=function(t){return t.slice()};ge.join=ge.removeEmpty=function(t){return t};function yu(t,e,r){return ge.diff(t,e,r)}});var Pe=Ue((ss,Rr)=>{"use strict";var Ir=new Proxy(String,{get:()=>Ir});Rr.exports=Ir});var ln={};Me(ln,{default:()=>to,shouldHighlight:()=>eo});var eo,to,fn=pu(()=>{eo=()=>!1,to=String});var hn=Ue(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.codeFrameColumns=En;pt.default=io;var pn=(fn(),du(ln)),ro=Pe(),dn=ro,jt;function no(t){if(t){var e;return(e=jt)!=null||(jt=new dn.constructor({enabled:!0,level:1})),jt}return dn}var Fn=!1;function uo(t){return{gutter:t.grey,marker:t.red.bold,message:t.red.bold}}var mn=/\r\n|[\n\r\u2028\u2029]/;function oo(t,e,r){let n=Object.assign({column:0,line:-1},t.start),o=Object.assign({},n,t.end),{linesAbove:u=2,linesBelow:i=3}=r||{},s=n.line,a=n.column,D=o.line,c=o.column,F=Math.max(s-(u+1),0),f=Math.min(e.length,D+i);s===-1&&(F=0),D===-1&&(f=e.length);let d=D-s,l={};if(d)for(let p=0;p<=d;p++){let m=p+s;if(!a)l[m]=!0;else if(p===0){let E=e[m-1].length;l[m]=[a,E-a+1]}else if(p===d)l[m]=[0,c];else{let E=e[m-p].length;l[m]=[0,E]}}else a===c?a?l[s]=[a,0]:l[s]=!0:l[s]=[a,c-a];return{start:F,end:f,markerLines:l}}function En(t,e,r={}){let n=(r.highlightCode||r.forceColor)&&(0,pn.shouldHighlight)(r),o=no(r.forceColor),u=uo(o),i=(p,m)=>n?p(m):m,s=t.split(mn),{start:a,end:D,markerLines:c}=oo(e,s,r),F=e.start&&typeof e.start.column=="number",f=String(D).length,l=(n?(0,pn.default)(t,r):t).split(mn,D).slice(a,D).map((p,m)=>{let E=a+1+m,g=` ${` ${E}`.slice(-f)} |`,C=c[E],_=!c[E+1];if(C){let Z="";if(Array.isArray(C)){let $=p.slice(0,Math.max(C[0]-1,0)).replace(/[^\t]/g," "),Q=C[1]||1;Z=[` + `,i(u.gutter,g.replace(/\d/g," "))," ",$,i(u.marker,"^").repeat(Q)].join(""),_&&r.message&&(Z+=" "+i(u.message,r.message))}return[i(u.marker,">"),i(u.gutter,g),p.length>0?` ${p}`:"",Z].join("")}else return` ${i(u.gutter,g)}${p.length>0?` ${p}`:""}`}).join(` +`);return r.message&&!F&&(l=`${" ".repeat(f+1)}${r.message} +${l}`),n?o.reset(l):l}function io(t,e,r,n={}){if(!Fn){Fn=!0;let u="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";{let i=new Error(u);i.name="DeprecationWarning",console.warn(new Error(u))}}return r=Math.max(r,0),En(t,{start:{column:r,line:e}},n)}});var tr={};Me(tr,{__debug:()=>Qo,check:()=>Xo,doc:()=>er,format:()=>su,formatWithCursor:()=>iu,getSupportInfo:()=>Zo,util:()=>Qt,version:()=>ou});var mu=(t,e,r,n)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(r,n):r.global?e.replace(r,n):e.split(r).join(n)},ee=mu;var Wn=Ce(ir(),1);var U="string",j="array",M="cursor",T="indent",S="align",v="trim",A="group",k="fill",B="if-break",P="indent-if-break",L="line-suffix",I="line-suffix-boundary",x="line",O="label",b="break-parent",We=new Set([M,T,S,v,A,k,B,P,L,I,x,O,b]);function xu(t){if(typeof t=="string")return U;if(Array.isArray(t))return j;if(!t)return;let{type:e}=t;if(We.has(e))return e}var W=xu;var _u=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function Au(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', +Expected it to be 'string' or 'object'.`;if(W(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=_u([...We].map(o=>`'${o}'`));return`Unexpected doc.type '${t.type}'. +Expected it to be ${n}.`}var yt=class extends Error{name="InvalidDocError";constructor(e){super(Au(e)),this.doc=e}},q=yt;var sr={};function Bu(t,e,r,n){let o=[t];for(;o.length>0;){let u=o.pop();if(u===sr){r(o.pop());continue}r&&o.push(u,sr);let i=W(u);if(!i)throw new q(u);if((e==null?void 0:e(u))!==!1)switch(i){case j:case k:{let s=i===j?u:u.parts;for(let a=s.length,D=a-1;D>=0;--D)o.push(s[D]);break}case B:o.push(u.flatContents,u.breakContents);break;case A:if(n&&u.expandedStates)for(let s=u.expandedStates.length,a=s-1;a>=0;--a)o.push(u.expandedStates[a]);else o.push(u.contents);break;case S:case T:case P:case O:case L:o.push(u.contents);break;case U:case M:case v:case I:case x:case b:break;default:throw new q(u)}}}var xe=Bu;var ar=()=>{},z=ar,ze=ar;function ie(t){return z(t),{type:T,contents:t}}function oe(t,e){return z(e),{type:S,contents:e,n:t}}function xt(t,e={}){return z(t),ze(e.expandedStates,!0),{type:A,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function Dr(t){return oe(Number.NEGATIVE_INFINITY,t)}function cr(t){return oe({type:"root"},t)}function lr(t){return oe(-1,t)}function fr(t,e){return xt(t[0],{...e,expandedStates:t})}function Ge(t){return ze(t),{type:k,parts:t}}function pr(t,e="",r={}){return z(t),e!==""&&z(e),{type:B,breakContents:t,flatContents:e,groupId:r.groupId}}function dr(t,e){return z(t),{type:P,contents:t,groupId:e.groupId,negate:e.negate}}function _e(t){return z(t),{type:L,contents:t}}var Fr={type:I},le={type:b},mr={type:v},Ae={type:x,hard:!0},_t={type:x,hard:!0,literal:!0},Ke={type:x},Er={type:x,soft:!0},G=[Ae,le],He=[_t,le],Be={type:M};function ke(t,e){z(t),ze(e);let r=[];for(let n=0;n0){for(let o=0;o{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[r<0?e.length+r:r]:e.at(r)},y=ku;function Cr(t){let e=t.indexOf("\r");return e>=0?t.charAt(e+1)===` +`?"crlf":"cr":"lf"}function be(t){switch(t){case"cr":return"\r";case"crlf":return`\r `;default:return` -`}}function Rt(e,t){let r;switch(t){case` +`}}function At(t,e){let r;switch(e){case` `:r=/\n/g;break;case"\r":r=/\r/g;break;case`\r -`:r=/\r\n/g;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let n=e.match(r);return n?n.length:0}function rn(e){return De(!1,e,/\r\n?/g,` -`)}var nn=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;var un={eastAsianWidth(e){var t=e.charCodeAt(0),r=e.length==2?e.charCodeAt(1):0,n=t;return 55296<=t&&t<=56319&&56320<=r&&r<=57343&&(t&=1023,r&=1023,n=t<<10|r,n+=65536),n==12288||65281<=n&&n<=65376||65504<=n&&n<=65510?"F":4352<=n&&n<=4447||4515<=n&&n<=4519||4602<=n&&n<=4607||9001<=n&&n<=9002||11904<=n&&n<=11929||11931<=n&&n<=12019||12032<=n&&n<=12245||12272<=n&&n<=12283||12289<=n&&n<=12350||12353<=n&&n<=12438||12441<=n&&n<=12543||12549<=n&&n<=12589||12593<=n&&n<=12686||12688<=n&&n<=12730||12736<=n&&n<=12771||12784<=n&&n<=12830||12832<=n&&n<=12871||12880<=n&&n<=13054||13056<=n&&n<=19903||19968<=n&&n<=42124||42128<=n&&n<=42182||43360<=n&&n<=43388||44032<=n&&n<=55203||55216<=n&&n<=55238||55243<=n&&n<=55291||63744<=n&&n<=64255||65040<=n&&n<=65049||65072<=n&&n<=65106||65108<=n&&n<=65126||65128<=n&&n<=65131||110592<=n&&n<=110593||127488<=n&&n<=127490||127504<=n&&n<=127546||127552<=n&&n<=127560||127568<=n&&n<=127569||131072<=n&&n<=194367||177984<=n&&n<=196605||196608<=n&&n<=262141?"W":"N"}};var ai=/[^\x20-\x7F]/;function Di(e){if(!e)return 0;if(!ai.test(e))return e.length;e=e.replace(nn()," ");let t=0;for(let r of e){let n=r.codePointAt(0);if(n<=31||n>=127&&n<=159||n>=768&&n<=879)continue;let i=un.eastAsianWidth(r);t+=i==="F"||i==="W"?2:1}return t}var je=Di;var an=e=>{if(Array.isArray(e))return e;if(e.type!==w)throw new Error(`Expect doc to be 'array' or '${w}'.`);return e.parts};function Me(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(u){if(r.has(u))return r.get(u);let o=i(u);return r.set(u,o),o}function i(u){switch(H(u)){case V:return t(u.map(n));case w:return t({...u,parts:u.parts.map(n)});case B:return t({...u,breakContents:n(u.breakContents),flatContents:n(u.flatContents)});case A:{let{expandedStates:o,contents:s}=u;return o?(o=o.map(n),s=o[0]):s=n(s),t({...u,contents:s,expandedStates:o})}case T:case v:case P:case k:case R:return t({...u,contents:n(u.contents)});case U:case K:case N:case I:case x:case O:return t(u);default:throw new te(u)}}}function st(e,t,r){let n=r,i=!1;function u(o){if(i)return!1;let s=t(o);s!==void 0&&(i=!0,n=s)}return Te(e,u),n}function ci(e){if(e.type===A&&e.break||e.type===x&&e.hard||e.type===O)return!0}function Dn(e){return st(e,ci,!1)}function on(e){if(e.length>0){let t=_(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function cn(e){let t=new Set,r=[];function n(u){if(u.type===O&&on(r),u.type===A){if(r.push(u),t.has(u))return!1;t.add(u)}}function i(u){u.type===A&&r.pop().break&&on(r)}Te(e,n,i,!0)}function li(e){return e.type===x&&!e.hard?e.soft?"":" ":e.type===B?e.flatContents:e}function ln(e){return Me(e,li)}function sn(e){for(e=[...e];e.length>=2&&_(!1,e,-2).type===x&&_(!1,e,-1).type===O;)e.length-=2;if(e.length>0){let t=Ye(_(!1,e,-1));e[e.length-1]=t}return e}function Ye(e){switch(H(e)){case T:case v:case P:case A:case R:case k:{let t=Ye(e.contents);return{...e,contents:t}}case B:return{...e,breakContents:Ye(e.breakContents),flatContents:Ye(e.flatContents)};case w:return{...e,parts:sn(e.parts)};case V:return sn(e);case U:return e.replace(/[\n\r]*$/,"");case K:case N:case I:case x:case O:break;default:throw new te(e)}return e}function at(e){return Ye(pi(e))}function fi(e){switch(H(e)){case w:if(e.parts.every(t=>t===""))return"";break;case A:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===A&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case T:case v:case P:case R:if(!e.contents)return"";break;case B:if(!e.flatContents&&!e.breakContents)return"";break;case V:{let t=[];for(let r of e){if(!r)continue;let[n,...i]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof _(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...i)}return t.length===0?"":t.length===1?t[0]:t}case U:case K:case N:case I:case x:case k:case O:break;default:throw new te(e)}return e}function pi(e){return Me(e,t=>fi(t))}function fn(e,t=it){return Me(e,r=>typeof r=="string"?Ie(t,r.split(` -`)):r)}function di(e){if(e.type===x)return!0}function pn(e){return st(e,di,!1)}function Dt(e,t){return e.type===k?{...e,contents:t(e.contents)}:t(e)}var L=Symbol("MODE_BREAK"),Z=Symbol("MODE_FLAT"),qe=Symbol("cursor");function dn(){return{value:"",length:0,queue:[]}}function Fi(e,t){return It(e,{type:"indent"},t)}function mi(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||dn():t<0?It(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:It(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function It(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],i="",u=0,o=0,s=0;for(let f of n)switch(f.type){case"indent":c(),r.useTabs?a(1):D(r.tabWidth);break;case"stringAlign":c(),i+=f.n,u+=f.n.length;break;case"numberAlign":o+=1,s+=f.n;break;default:throw new Error(`Unexpected type '${f.type}'`)}return l(),{...e,value:i,length:u,queue:n};function a(f){i+=" ".repeat(f),u+=r.tabWidth*f}function D(f){i+=" ".repeat(f),u+=f}function c(){r.useTabs?d():l()}function d(){o>0&&a(o),F()}function l(){s>0&&D(s),F()}function F(){o=0,s=0}}function Lt(e){let t=0,r=0,n=e.length;e:for(;n--;){let i=e[n];if(i===qe){r++;continue}for(let u=i.length-1;u>=0;u--){let o=i[u];if(o===" "||o===" ")t++;else{e[n]=i.slice(0,u+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(qe);return t}function ct(e,t,r,n,i,u){if(r===Number.POSITIVE_INFINITY)return!0;let o=t.length,s=[e],a=[];for(;r>=0;){if(s.length===0){if(o===0)return!0;s.push(t[--o]);continue}let{mode:D,doc:c}=s.pop();switch(H(c)){case U:a.push(c),r-=je(c);break;case V:case w:{let d=an(c);for(let l=d.length-1;l>=0;l--)s.push({mode:D,doc:d[l]});break}case v:case T:case P:case k:s.push({mode:D,doc:c.contents});break;case N:r+=Lt(a);break;case A:{if(u&&c.break)return!1;let d=c.break?L:D,l=c.expandedStates&&d===L?_(!1,c.expandedStates,-1):c.contents;s.push({mode:d,doc:l});break}case B:{let l=(c.groupId?i[c.groupId]||Z:D)===L?c.breakContents:c.flatContents;l&&s.push({mode:D,doc:l});break}case x:if(D===L||c.hard)return!0;c.soft||(a.push(" "),r--);break;case R:n=!0;break;case I:if(n)return!1;break}}return!1}function xe(e,t){let r={},n=t.printWidth,i=Le(t.endOfLine),u=0,o=[{ind:dn(),mode:L,doc:e}],s=[],a=!1,D=[],c=0;for(cn(e);o.length>0;){let{ind:l,mode:F,doc:f}=o.pop();switch(H(f)){case U:{let p=i!==` -`?De(!1,f,` -`,i):f;s.push(p),o.length>0&&(u+=je(p));break}case V:for(let p=f.length-1;p>=0;p--)o.push({ind:l,mode:F,doc:f[p]});break;case K:if(c>=2)throw new Error("There are too many 'cursor' in doc.");s.push(qe),c++;break;case v:o.push({ind:Fi(l,t),mode:F,doc:f.contents});break;case T:o.push({ind:mi(l,f.n,t),mode:F,doc:f.contents});break;case N:u-=Lt(s);break;case A:switch(F){case Z:if(!a){o.push({ind:l,mode:f.break?L:Z,doc:f.contents});break}case L:{a=!1;let p={ind:l,mode:Z,doc:f.contents},m=n-u,h=D.length>0;if(!f.break&&ct(p,o,m,h,r))o.push(p);else if(f.expandedStates){let C=_(!1,f.expandedStates,-1);if(f.break){o.push({ind:l,mode:L,doc:C});break}else for(let g=1;g=f.expandedStates.length){o.push({ind:l,mode:L,doc:C});break}else{let y=f.expandedStates[g],b={ind:l,mode:Z,doc:y};if(ct(b,o,m,h,r)){o.push(b);break}}}else o.push({ind:l,mode:L,doc:f.contents});break}}f.id&&(r[f.id]=_(!1,o,-1).mode);break;case w:{let p=n-u,{parts:m}=f;if(m.length===0)break;let[h,C]=m,g={ind:l,mode:Z,doc:h},y={ind:l,mode:L,doc:h},b=ct(g,[],p,D.length>0,r,!0);if(m.length===1){b?o.push(g):o.push(y);break}let se={ind:l,mode:Z,doc:C},G={ind:l,mode:L,doc:C};if(m.length===2){b?o.push(se,g):o.push(G,y);break}m.splice(0,2);let ae={ind:l,mode:F,doc:nt(m)},jr=m[0];ct({ind:l,mode:Z,doc:[h,C,jr]},[],p,D.length>0,r,!0)?o.push(ae,se,g):b?o.push(ae,G,g):o.push(ae,G,y);break}case B:case P:{let p=f.groupId?r[f.groupId]:F;if(p===L){let m=f.type===B?f.breakContents:f.negate?f.contents:Fe(f.contents);m&&o.push({ind:l,mode:F,doc:m})}if(p===Z){let m=f.type===B?f.flatContents:f.negate?Fe(f.contents):f.contents;m&&o.push({ind:l,mode:F,doc:m})}break}case R:D.push({ind:l,mode:F,doc:f.contents});break;case I:D.length>0&&o.push({ind:l,mode:F,doc:Pe});break;case x:switch(F){case Z:if(f.hard)a=!0;else{f.soft||(s.push(" "),u+=1);break}case L:if(D.length>0){o.push({ind:l,mode:F,doc:f},...D.reverse()),D.length=0;break}f.literal?l.root?(s.push(i,l.root.value),u=l.root.length):(s.push(i),u=0):(u-=Lt(s),s.push(i+l.value),u=l.length);break}break;case k:o.push({ind:l,mode:F,doc:f.contents});break;case O:break;default:throw new te(f)}o.length===0&&D.length>0&&(o.push(...D.reverse()),D.length=0)}let d=s.indexOf(qe);if(d!==-1){let l=s.indexOf(qe,d+1),F=s.slice(0,d).join(""),f=s.slice(d+1,l).join(""),p=s.slice(l+1).join("");return{formatted:F+f+p,cursorNodeStart:F.length,cursorNodeText:f}}return{formatted:s.join("")}}function re(e){var t;if(!e)return"";if(Array.isArray(e)){let r=[];for(let n of e)if(Array.isArray(n))r.push(...re(n));else{let i=re(n);i!==""&&r.push(i)}return r}return e.type===B?{...e,breakContents:re(e.breakContents),flatContents:re(e.flatContents)}:e.type===A?{...e,contents:re(e.contents),expandedStates:(t=e.expandedStates)==null?void 0:t.map(re)}:e.type===w?{type:"fill",parts:e.parts.map(re)}:e.contents?{...e,contents:re(e.contents)}:e}function Fn(e){let t=Object.create(null),r=new Set;return n(re(e));function n(u,o,s){var a,D;if(typeof u=="string")return JSON.stringify(u);if(Array.isArray(u)){let c=u.map(n).filter(Boolean);return c.length===1?c[0]:`[${c.join(", ")}]`}if(u.type===x){let c=((a=s==null?void 0:s[o+1])==null?void 0:a.type)===O;return u.literal?c?"literalline":"literallineWithoutBreakParent":u.hard?c?"hardline":"hardlineWithoutBreakParent":u.soft?"softline":"line"}if(u.type===O)return((D=s==null?void 0:s[o-1])==null?void 0:D.type)===x&&s[o-1].hard?void 0:"breakParent";if(u.type===N)return"trim";if(u.type===v)return"indent("+n(u.contents)+")";if(u.type===T)return u.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+n(u.contents)+")":u.n<0?"dedent("+n(u.contents)+")":u.n.type==="root"?"markAsRoot("+n(u.contents)+")":"align("+JSON.stringify(u.n)+", "+n(u.contents)+")";if(u.type===B)return"ifBreak("+n(u.breakContents)+(u.flatContents?", "+n(u.flatContents):"")+(u.groupId?(u.flatContents?"":', ""')+`, { groupId: ${i(u.groupId)} }`:"")+")";if(u.type===P){let c=[];u.negate&&c.push("negate: true"),u.groupId&&c.push(`groupId: ${i(u.groupId)}`);let d=c.length>0?`, { ${c.join(", ")} }`:"";return`indentIfBreak(${n(u.contents)}${d})`}if(u.type===A){let c=[];u.break&&u.break!=="propagated"&&c.push("shouldBreak: true"),u.id&&c.push(`id: ${i(u.id)}`);let d=c.length>0?`, { ${c.join(", ")} }`:"";return u.expandedStates?`conditionalGroup([${u.expandedStates.map(l=>n(l)).join(",")}]${d})`:`group(${n(u.contents)}${d})`}if(u.type===w)return`fill([${u.parts.map(c=>n(c)).join(", ")}])`;if(u.type===R)return"lineSuffix("+n(u.contents)+")";if(u.type===I)return"lineSuffixBoundary";if(u.type===k)return`label(${JSON.stringify(u.label)}, ${n(u.contents)})`;throw new Error("Unknown doc type "+u.type)}function i(u){if(typeof u!="symbol")return JSON.stringify(String(u));if(u in t)return t[u];let o=u.description||"symbol";for(let s=0;;s++){let a=o+(s>0?` #${s}`:"");if(!r.has(a))return r.add(a),t[u]=`Symbol.for(${JSON.stringify(a)})`}}}function hi(e,t,r=0){let n=0;for(let i=r;i/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;var xr={eastAsianWidth(t){var e=t.charCodeAt(0),r=t.length==2?t.charCodeAt(1):0,n=e;return 55296<=e&&e<=56319&&56320<=r&&r<=57343&&(e&=1023,r&=1023,n=e<<10|r,n+=65536),n==12288||65281<=n&&n<=65376||65504<=n&&n<=65510?"F":4352<=n&&n<=4447||4515<=n&&n<=4519||4602<=n&&n<=4607||9001<=n&&n<=9002||11904<=n&&n<=11929||11931<=n&&n<=12019||12032<=n&&n<=12245||12272<=n&&n<=12283||12289<=n&&n<=12350||12353<=n&&n<=12438||12441<=n&&n<=12543||12549<=n&&n<=12589||12593<=n&&n<=12686||12688<=n&&n<=12730||12736<=n&&n<=12771||12784<=n&&n<=12830||12832<=n&&n<=12871||12880<=n&&n<=13054||13056<=n&&n<=19903||19968<=n&&n<=42124||42128<=n&&n<=42182||43360<=n&&n<=43388||44032<=n&&n<=55203||55216<=n&&n<=55238||55243<=n&&n<=55291||63744<=n&&n<=64255||65040<=n&&n<=65049||65072<=n&&n<=65106||65108<=n&&n<=65126||65128<=n&&n<=65131||110592<=n&&n<=110593||127488<=n&&n<=127490||127504<=n&&n<=127546||127552<=n&&n<=127560||127568<=n&&n<=127569||131072<=n&&n<=194367||177984<=n&&n<=196605||196608<=n&&n<=262141?"W":"N"}};var bu=/[^\x20-\x7F]/;function wu(t){if(!t)return 0;if(!bu.test(t))return t.length;t=t.replace(yr()," ");let e=0;for(let r of t){let n=r.codePointAt(0);if(n<=31||n>=127&&n<=159||n>=768&&n<=879)continue;let o=xr.eastAsianWidth(r);e+=o==="F"||o==="W"?2:1}return e}var we=wu;var Br=t=>{if(Array.isArray(t))return t;if(t.type!==k)throw new Error(`Expect doc to be 'array' or '${k}'.`);return t.parts};function Ne(t,e){if(typeof t=="string")return e(t);let r=new Map;return n(t);function n(u){if(r.has(u))return r.get(u);let i=o(u);return r.set(u,i),i}function o(u){switch(W(u)){case j:return e(u.map(n));case k:return e({...u,parts:u.parts.map(n)});case B:return e({...u,breakContents:n(u.breakContents),flatContents:n(u.flatContents)});case A:{let{expandedStates:i,contents:s}=u;return i?(i=i.map(n),s=i[0]):s=n(s),e({...u,contents:s,expandedStates:i})}case S:case T:case P:case O:case L:return e({...u,contents:n(u.contents)});case U:case M:case v:case I:case x:case b:return e(u);default:throw new q(u)}}}function Je(t,e,r){let n=r,o=!1;function u(i){if(o)return!1;let s=e(i);s!==void 0&&(o=!0,n=s)}return xe(t,u),n}function Ou(t){if(t.type===A&&t.break||t.type===x&&t.hard||t.type===b)return!0}function kr(t){return Je(t,Ou,!1)}function _r(t){if(t.length>0){let e=y(!1,t,-1);!e.expandedStates&&!e.break&&(e.break="propagated")}return null}function br(t){let e=new Set,r=[];function n(u){if(u.type===b&&_r(r),u.type===A){if(r.push(u),e.has(u))return!1;e.add(u)}}function o(u){u.type===A&&r.pop().break&&_r(r)}xe(t,n,o,!0)}function Nu(t){return t.type===x&&!t.hard?t.soft?"":" ":t.type===B?t.flatContents:t}function wr(t){return Ne(t,Nu)}function Ar(t){for(t=[...t];t.length>=2&&y(!1,t,-2).type===x&&y(!1,t,-1).type===b;)t.length-=2;if(t.length>0){let e=Oe(y(!1,t,-1));t[t.length-1]=e}return t}function Oe(t){switch(W(t)){case S:case T:case P:case A:case L:case O:{let e=Oe(t.contents);return{...t,contents:e}}case B:return{...t,breakContents:Oe(t.breakContents),flatContents:Oe(t.flatContents)};case k:return{...t,parts:Ar(t.parts)};case j:return Ar(t);case U:return t.replace(/[\n\r]*$/,"");case M:case v:case I:case x:case b:break;default:throw new q(t)}return t}function Xe(t){return Oe(Su(t))}function Tu(t){switch(W(t)){case k:if(t.parts.every(e=>e===""))return"";break;case A:if(!t.contents&&!t.id&&!t.break&&!t.expandedStates)return"";if(t.contents.type===A&&t.contents.id===t.id&&t.contents.break===t.break&&t.contents.expandedStates===t.expandedStates)return t.contents;break;case S:case T:case P:case L:if(!t.contents)return"";break;case B:if(!t.flatContents&&!t.breakContents)return"";break;case j:{let e=[];for(let r of t){if(!r)continue;let[n,...o]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof y(!1,e,-1)=="string"?e[e.length-1]+=n:e.push(n),e.push(...o)}return e.length===0?"":e.length===1?e[0]:e}case U:case M:case v:case I:case x:case O:case b:break;default:throw new q(t)}return t}function Su(t){return Ne(t,e=>Tu(e))}function Or(t,e=He){return Ne(t,r=>typeof r=="string"?ke(e,r.split(` +`)):r)}function vu(t){if(t.type===x)return!0}function Nr(t){return Je(t,vu,!1)}function Ze(t,e){return t.type===O?{...t,contents:e(t.contents)}:e(t)}var R=Symbol("MODE_BREAK"),K=Symbol("MODE_FLAT"),Te=Symbol("cursor");function Tr(){return{value:"",length:0,queue:[]}}function Pu(t,e){return Bt(t,{type:"indent"},e)}function Lu(t,e,r){return e===Number.NEGATIVE_INFINITY?t.root||Tr():e<0?Bt(t,{type:"dedent"},r):e?e.type==="root"?{...t,root:t}:Bt(t,{type:typeof e=="string"?"stringAlign":"numberAlign",n:e},r):t}function Bt(t,e,r){let n=e.type==="dedent"?t.queue.slice(0,-1):[...t.queue,e],o="",u=0,i=0,s=0;for(let l of n)switch(l.type){case"indent":c(),r.useTabs?a(1):D(r.tabWidth);break;case"stringAlign":c(),o+=l.n,u+=l.n.length;break;case"numberAlign":i+=1,s+=l.n;break;default:throw new Error(`Unexpected type '${l.type}'`)}return f(),{...t,value:o,length:u,queue:n};function a(l){o+=" ".repeat(l),u+=r.tabWidth*l}function D(l){o+=" ".repeat(l),u+=l}function c(){r.useTabs?F():f()}function F(){i>0&&a(i),d()}function f(){s>0&&D(s),d()}function d(){i=0,s=0}}function kt(t){let e=0,r=0,n=t.length;e:for(;n--;){let o=t[n];if(o===Te){r++;continue}for(let u=o.length-1;u>=0;u--){let i=o[u];if(i===" "||i===" ")e++;else{t[n]=o.slice(0,u+1);break e}}}if(e>0||r>0)for(t.length=n+1;r-- >0;)t.push(Te);return e}function Qe(t,e,r,n,o,u){if(r===Number.POSITIVE_INFINITY)return!0;let i=e.length,s=[t],a=[];for(;r>=0;){if(s.length===0){if(i===0)return!0;s.push(e[--i]);continue}let{mode:D,doc:c}=s.pop();switch(W(c)){case U:a.push(c),r-=we(c);break;case j:case k:{let F=Br(c);for(let f=F.length-1;f>=0;f--)s.push({mode:D,doc:F[f]});break}case T:case S:case P:case O:s.push({mode:D,doc:c.contents});break;case v:r+=kt(a);break;case A:{if(u&&c.break)return!1;let F=c.break?R:D,f=c.expandedStates&&F===R?y(!1,c.expandedStates,-1):c.contents;s.push({mode:F,doc:f});break}case B:{let f=(c.groupId?o[c.groupId]||K:D)===R?c.breakContents:c.flatContents;f&&s.push({mode:D,doc:f});break}case x:if(D===R||c.hard)return!0;c.soft||(a.push(" "),r--);break;case L:n=!0;break;case I:if(n)return!1;break}}return!1}function fe(t,e){let r={},n=e.printWidth,o=be(e.endOfLine),u=0,i=[{ind:Tr(),mode:R,doc:t}],s=[],a=!1,D=[],c=0;for(br(t);i.length>0;){let{ind:f,mode:d,doc:l}=i.pop();switch(W(l)){case U:{let p=o!==` +`?ee(!1,l,` +`,o):l;s.push(p),i.length>0&&(u+=we(p));break}case j:for(let p=l.length-1;p>=0;p--)i.push({ind:f,mode:d,doc:l[p]});break;case M:if(c>=2)throw new Error("There are too many 'cursor' in doc.");s.push(Te),c++;break;case T:i.push({ind:Pu(f,e),mode:d,doc:l.contents});break;case S:i.push({ind:Lu(f,l.n,e),mode:d,doc:l.contents});break;case v:u-=kt(s);break;case A:switch(d){case K:if(!a){i.push({ind:f,mode:l.break?R:K,doc:l.contents});break}case R:{a=!1;let p={ind:f,mode:K,doc:l.contents},m=n-u,E=D.length>0;if(!l.break&&Qe(p,i,m,E,r))i.push(p);else if(l.expandedStates){let h=y(!1,l.expandedStates,-1);if(l.break){i.push({ind:f,mode:R,doc:h});break}else for(let g=1;g=l.expandedStates.length){i.push({ind:f,mode:R,doc:h});break}else{let C=l.expandedStates[g],_={ind:f,mode:K,doc:C};if(Qe(_,i,m,E,r)){i.push(_);break}}}else i.push({ind:f,mode:R,doc:l.contents});break}}l.id&&(r[l.id]=y(!1,i,-1).mode);break;case k:{let p=n-u,{parts:m}=l;if(m.length===0)break;let[E,h]=m,g={ind:f,mode:K,doc:E},C={ind:f,mode:R,doc:E},_=Qe(g,[],p,D.length>0,r,!0);if(m.length===1){_?i.push(g):i.push(C);break}let Z={ind:f,mode:K,doc:h},$={ind:f,mode:R,doc:h};if(m.length===2){_?i.push(Z,g):i.push($,C);break}m.splice(0,2);let Q={ind:f,mode:d,doc:Ge(m)},rr=m[0];Qe({ind:f,mode:K,doc:[E,h,rr]},[],p,D.length>0,r,!0)?i.push(Q,Z,g):_?i.push(Q,$,g):i.push(Q,$,C);break}case B:case P:{let p=l.groupId?r[l.groupId]:d;if(p===R){let m=l.type===B?l.breakContents:l.negate?l.contents:ie(l.contents);m&&i.push({ind:f,mode:d,doc:m})}if(p===K){let m=l.type===B?l.flatContents:l.negate?ie(l.contents):l.contents;m&&i.push({ind:f,mode:d,doc:m})}break}case L:D.push({ind:f,mode:d,doc:l.contents});break;case I:D.length>0&&i.push({ind:f,mode:d,doc:Ae});break;case x:switch(d){case K:if(l.hard)a=!0;else{l.soft||(s.push(" "),u+=1);break}case R:if(D.length>0){i.push({ind:f,mode:d,doc:l},...D.reverse()),D.length=0;break}l.literal?f.root?(s.push(o,f.root.value),u=f.root.length):(s.push(o),u=0):(u-=kt(s),s.push(o+f.value),u=f.length);break}break;case O:i.push({ind:f,mode:d,doc:l.contents});break;case b:break;default:throw new q(l)}i.length===0&&D.length>0&&(i.push(...D.reverse()),D.length=0)}let F=s.indexOf(Te);if(F!==-1){let f=s.indexOf(Te,F+1),d=s.slice(0,F).join(""),l=s.slice(F+1,f).join(""),p=s.slice(f+1).join("");return{formatted:d+l+p,cursorNodeStart:d.length,cursorNodeText:l}}return{formatted:s.join("")}}function J(t){var e;if(!t)return"";if(Array.isArray(t)){let r=[];for(let n of t)if(Array.isArray(n))r.push(...J(n));else{let o=J(n);o!==""&&r.push(o)}return r}return t.type===B?{...t,breakContents:J(t.breakContents),flatContents:J(t.flatContents)}:t.type===A?{...t,contents:J(t.contents),expandedStates:(e=t.expandedStates)==null?void 0:e.map(J)}:t.type===k?{type:"fill",parts:t.parts.map(J)}:t.contents?{...t,contents:J(t.contents)}:t}function Sr(t){let e=Object.create(null),r=new Set;return n(J(t));function n(u,i,s){var a,D;if(typeof u=="string")return JSON.stringify(u);if(Array.isArray(u)){let c=u.map(n).filter(Boolean);return c.length===1?c[0]:`[${c.join(", ")}]`}if(u.type===x){let c=((a=s==null?void 0:s[i+1])==null?void 0:a.type)===b;return u.literal?c?"literalline":"literallineWithoutBreakParent":u.hard?c?"hardline":"hardlineWithoutBreakParent":u.soft?"softline":"line"}if(u.type===b)return((D=s==null?void 0:s[i-1])==null?void 0:D.type)===x&&s[i-1].hard?void 0:"breakParent";if(u.type===v)return"trim";if(u.type===T)return"indent("+n(u.contents)+")";if(u.type===S)return u.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+n(u.contents)+")":u.n<0?"dedent("+n(u.contents)+")":u.n.type==="root"?"markAsRoot("+n(u.contents)+")":"align("+JSON.stringify(u.n)+", "+n(u.contents)+")";if(u.type===B)return"ifBreak("+n(u.breakContents)+(u.flatContents?", "+n(u.flatContents):"")+(u.groupId?(u.flatContents?"":', ""')+`, { groupId: ${o(u.groupId)} }`:"")+")";if(u.type===P){let c=[];u.negate&&c.push("negate: true"),u.groupId&&c.push(`groupId: ${o(u.groupId)}`);let F=c.length>0?`, { ${c.join(", ")} }`:"";return`indentIfBreak(${n(u.contents)}${F})`}if(u.type===A){let c=[];u.break&&u.break!=="propagated"&&c.push("shouldBreak: true"),u.id&&c.push(`id: ${o(u.id)}`);let F=c.length>0?`, { ${c.join(", ")} }`:"";return u.expandedStates?`conditionalGroup([${u.expandedStates.map(f=>n(f)).join(",")}]${F})`:`group(${n(u.contents)}${F})`}if(u.type===k)return`fill([${u.parts.map(c=>n(c)).join(", ")}])`;if(u.type===L)return"lineSuffix("+n(u.contents)+")";if(u.type===I)return"lineSuffixBoundary";if(u.type===O)return`label(${JSON.stringify(u.label)}, ${n(u.contents)})`;throw new Error("Unknown doc type "+u.type)}function o(u){if(typeof u!="symbol")return JSON.stringify(String(u));if(u in e)return e[u];let i=u.description||"symbol";for(let s=0;;s++){let a=i+(s>0?` #${s}`:"");if(!r.has(a))return r.add(a),e[u]=`Symbol.for(${JSON.stringify(a)})`}}}function Iu(t,e,r=0){let n=0;for(let o=r;otypeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive). +(mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:t=>typeof t=="string"||typeof t=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:t=>typeof t=="string"||typeof t=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive). The range will extend forwards to the end of the selected statement. This option cannot be used with --cursor-offset.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset. The range will extend backwards to the start of the first line containing the selected statement. This option cannot be used with --cursor-offset.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:`Require either '@prettier' or '@format' to be present in the file's first docblock comment -in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function lt({plugins:e=[],showDeprecated:t=!1}={}){let r=e.flatMap(i=>i.languages??[]),n=[];for(let i of Ci(Object.assign({},...e.map(({options:u})=>u),mn)))!t&&i.deprecated||(Array.isArray(i.choices)&&(t||(i.choices=i.choices.filter(u=>!u.deprecated)),i.name==="parser"&&(i.choices=[...i.choices,...Ei(i.choices,r,e)])),i.pluginDefaults=Object.fromEntries(e.filter(u=>{var o;return((o=u.defaultOptions)==null?void 0:o[i.name])!==void 0}).map(u=>[u.name,u.defaultOptions[i.name]])),n.push(i));return{languages:r,options:n}}function*Ei(e,t,r){let n=new Set(e.map(i=>i.value));for(let i of t)if(i.parsers){for(let u of i.parsers)if(!n.has(u)){n.add(u);let o=r.find(a=>a.parsers&&Object.prototype.hasOwnProperty.call(a.parsers,u)),s=i.name;o!=null&&o.name&&(s+=` (plugin: ${o.name})`),yield{value:u,description:s}}}}function Ci(e){let t=[];for(let[r,n]of Object.entries(e)){let i={name:r,...n};Array.isArray(i.default)&&(i.default=_(!1,i.default,-1).value),t.push(i)}return t}var gi=e=>e.split(/[/\\]/).pop();function hn(e,t){if(!t)return;let r=gi(t).toLowerCase();return e.find(n=>{var i,u;return((i=n.extensions)==null?void 0:i.some(o=>r.endsWith(o)))||((u=n.filenames)==null?void 0:u.some(o=>o.toLowerCase()===r))})}function yi(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r==null?void 0:r.includes(t))??e.find(({extensions:r})=>r==null?void 0:r.includes(`.${t}`))}function _i(e,t){let r=e.plugins.flatMap(i=>i.languages??[]),n=yi(r,t.language)??hn(r,t.physicalFile)??hn(r,t.file)??(t.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var En=_i;var z=kt(zn(),1),gr;function go(e,t,{logger:r=!1,isCLI:n=!1,passThrough:i=!1,FlagSchema:u,descriptor:o}={}){if(n){if(!u)throw new Error("'FlagSchema' option is required.");if(!o)throw new Error("'descriptor' option is required.")}else o=z.default.apiDescriptor;let s=i?Array.isArray(i)?(l,F)=>i.includes(l)?{[l]:F}:void 0:(l,F)=>({[l]:F}):(l,F,f)=>{let{_:p,...m}=f.schemas;return z.default.levenUnknownHandler(l,F,{...f,schemas:m})},a=yo(t,{isCLI:n,FlagSchema:u}),D=new z.default.Normalizer(a,{logger:r,unknown:s,descriptor:o}),c=r!==!1;c&&gr&&(D._hasDeprecationWarned=gr);let d=D.normalize(e);return c&&(gr=D._hasDeprecationWarned),d}function yo(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(z.default.AnySchema.create({name:"_"}));for(let i of e)n.push(_o(i,{isCLI:t,optionInfos:e,FlagSchema:r})),i.alias&&t&&n.push(z.default.AliasSchema.create({name:i.alias,sourceName:i.name}));return n}function _o(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let{name:i}=e,u={name:i},o,s={};switch(e.type){case"int":o=z.default.IntegerSchema,t&&(u.preprocess=Number);break;case"string":o=z.default.StringSchema;break;case"choice":o=z.default.ChoiceSchema,u.choices=e.choices.map(a=>a!=null&&a.redirect?{...a,redirect:{to:{key:e.name,value:a.redirect}}}:a);break;case"boolean":o=z.default.BooleanSchema;break;case"flag":o=n,u.flags=r.flatMap(a=>[a.alias,a.description&&a.name,a.oppositeDescription&&`no-${a.name}`].filter(Boolean));break;case"path":o=z.default.StringSchema;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?u.validate=(a,D,c)=>e.exception(a)||D.validate(a,c):u.validate=(a,D,c)=>a===void 0||D.validate(a,c),e.redirect&&(s.redirect=a=>a?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(s.deprecated=!0),t&&!e.array){let a=u.preprocess||(D=>D);u.preprocess=(D,c,d)=>c.preprocess(a(Array.isArray(D)?_(!1,D,-1):D),d)}return e.array?z.default.ArraySchema.create({...t?{preprocess:a=>Array.isArray(a)?a:[a]}:{},...s,valueSchema:o.create(u)}):o.create({...u,...s})}var Wn=go;function yr(e,t){if(!t)throw new Error("parserName is required.");for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.parsers&&Object.prototype.hasOwnProperty.call(i.parsers,t))return i}let r=`Couldn't resolve parser "${t}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new $e(r)}function Gn(e,t){if(!t)throw new Error("astFormat is required.");for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.printers&&Object.prototype.hasOwnProperty.call(i.printers,t))return i}let r=`Couldn't find plugin for AST format "${t}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new $e(r)}function Ct({plugins:e,parser:t}){let r=yr(e,t);return _r(r,t)}function _r(e,t){let r=e.parsers[t];return typeof r=="function"?r():r}function Un(e,t){let r=e.printers[t];return typeof r=="function"?r():r}var Kn={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function xo(e,t={}){var d;let r={...e};if(!r.parser)if(r.filepath){if(r.parser=En(r,{physicalFile:r.filepath}),!r.parser)throw new Ve(`No parser could be inferred for file "${r.filepath}".`)}else throw new Ve("No parser and no file path given, couldn't infer a parser.");let n=lt({plugins:e.plugins,showDeprecated:!0}).options,i={...Kn,...Object.fromEntries(n.filter(l=>l.default!==void 0).map(l=>[l.name,l.default]))},u=yr(r.plugins,r.parser),o=await _r(u,r.parser);r.astFormat=o.astFormat,r.locEnd=o.locEnd,r.locStart=o.locStart;let s=(d=u.printers)!=null&&d[o.astFormat]?u:Gn(r.plugins,o.astFormat),a=await Un(s,o.astFormat);r.printer=a;let D=s.defaultOptions?Object.fromEntries(Object.entries(s.defaultOptions).filter(([,l])=>l!==void 0)):{},c={...i,...D};for(let[l,F]of Object.entries(c))(r[l]===null||r[l]===void 0)&&(r[l]=F);return r.parser==="json"&&(r.trailingComma="none"),Wn(r,n,{passThrough:Object.keys(Kn),...t})}var le=xo;var Hn=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),bo=e=>Object.keys(e).filter(t=>!Hn.has(t));function Ao(e){return e?t=>e(t,Hn):bo}var ee=Ao;function Bo(e,t){let{printer:{massageAstNode:r,getVisitorKeys:n}}=t;if(!r)return e;let i=ee(n),u=r.ignoredProperties??new Set;return o(e);function o(s,a){if(!(s!==null&&typeof s=="object"))return s;if(Array.isArray(s))return s.map(l=>o(l,a)).filter(Boolean);let D={},c=new Set(i(s));for(let l in s)!Object.prototype.hasOwnProperty.call(s,l)||u.has(l)||(c.has(l)?D[l]=o(s[l],s):D[l]=s[l]);let d=r(s,D,a);if(d!==null)return d??D}}var Jn=Bo;var nu=kt(ru(),1);async function To(e,t){let r=await Ct(t),n=r.preprocess?r.preprocess(e,t):e;t.originalText=n;let i;try{i=await r.parse(n,t,t)}catch(u){No(u,e)}return{text:n,ast:i}}function No(e,t){let{loc:r}=e;if(r){let n=(0,nu.codeFrameColumns)(t,r,{highlightCode:!0});throw e.message+=` -`+n,e.codeFrame=n,e}throw e}var Ee=To;var Ke,Ar,Be,yt,br=class{constructor(t){St(this,Ke);St(this,Be);this.stack=[t]}get key(){let{stack:t,siblings:r}=this;return _(!1,t,r===null?-2:-4)??null}get index(){return this.siblings===null?null:_(!1,this.stack,-2)}get node(){return _(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:t}=this,r=_(!1,t,-3);return Array.isArray(r)?r:null}get next(){let{siblings:t}=this;return t===null?null:t[this.index+1]}get previous(){let{siblings:t}=this;return t===null?null:t[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:t,index:r}=this;return t!==null&&r===t.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...ye(this,Be,yt).call(this)]}getName(){let{stack:t}=this,{length:r}=t;return r>1?_(!1,t,-2):null}getValue(){return _(!1,this.stack,-1)}getNode(t=0){let r=ye(this,Ke,Ar).call(this,t);return r===-1?null:this.stack[r]}getParentNode(t=0){return this.getNode(t+1)}call(t,...r){let{stack:n}=this,{length:i}=n,u=_(!1,n,-1);for(let o of r)u=u[o],n.push(o,u);try{return t(this)}finally{n.length=i}}callParent(t,r=0){let n=ye(this,Ke,Ar).call(this,r+1),i=this.stack.splice(n+1);try{return t(this)}finally{this.stack.push(...i)}}each(t,...r){let{stack:n}=this,{length:i}=n,u=_(!1,n,-1);for(let o of r)u=u[o],n.push(o,u);try{for(let o=0;o{n[u]=t(i,u,o)},...r),n}match(...t){let r=this.stack.length-1,n=null,i=this.stack[r--];for(let u of t){if(i===void 0)return!1;let o=null;if(typeof n=="number"&&(o=n,n=this.stack[r--],i=this.stack[r--]),u&&!u(i,n,o))return!1;n=this.stack[r--],i=this.stack[r--]}return!0}findAncestor(t){for(let r of ye(this,Be,yt).call(this))if(t(r))return r}hasAncestor(t){for(let r of ye(this,Be,yt).call(this))if(t(r))return!0;return!1}};Ke=new WeakSet,Ar=function(t){let{stack:r}=this;for(let n=r.length-1;n>=0;n-=2)if(!Array.isArray(r[n])&&--t<0)return n;return-1},Be=new WeakSet,yt=function*(){let{stack:t}=this;for(let r=t.length-3;r>=0;r-=2){let n=t[r];Array.isArray(n)||(yield n)}};var uu=br;var He=()=>{};He.ok=He;He.strictEqual=He;var Je=He;function we(e){return(t,r,n)=>{let i=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:u}=t,o=r;for(;o>=0&&o0}var Br=Io;function Lo(e){return e!==null&&typeof e=="object"}var ou=Lo;function*wr(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,i=u=>ou(u)&&n(u);for(let u of r(e)){let o=e[u];if(Array.isArray(o))for(let s of o)i(s)&&(yield s);else i(o)&&(yield o)}}function*su(e,t){let r=[e];for(let n=0;n20&&(r=r.slice(0,19)+"\u2026"),t+(r?" "+r:"")}function Or(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=jo(e)}function fe(e,t){t.leading=!0,t.trailing=!1,Or(e,t)}function oe(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Or(e,t)}function pe(e,t){t.leading=!1,t.trailing=!0,Or(e,t)}var kr=new WeakMap;function bt(e,t){if(kr.has(e))return kr.get(e);let{printer:{getCommentChildNodes:r,canAttachComment:n,getVisitorKeys:i},locStart:u,locEnd:o}=t;if(!n)return[];let s=((r==null?void 0:r(e,t))??[...wr(e,{getVisitorKeys:ee(i)})]).flatMap(a=>n(a)?[a]:bt(a,t));return s.sort((a,D)=>u(a)-u(D)||o(a)-o(D)),kr.set(e,s),s}function Du(e,t,r,n){let{locStart:i,locEnd:u}=r,o=i(t),s=u(t),a=bt(e,r),D,c,d=0,l=a.length;for(;d>1,f=a[F],p=i(f),m=u(f);if(p<=o&&s<=m)return Du(f,t,r,f);if(m<=o){D=f,d=F+1;continue}if(s<=p){c=f,l=F;continue}throw new Error("Comment location overlaps with node location")}if((n==null?void 0:n.type)==="TemplateLiteral"){let{quasis:F}=n,f=vr(F,t,r);D&&vr(F,D,r)!==f&&(D=null),c&&vr(F,c,r)!==f&&(c=null)}return{enclosingNode:n,precedingNode:D,followingNode:c}}var Sr=()=>!1;function cu(e,t){let{comments:r}=e;if(delete e.comments,!Br(r)||!t.printer.canAttachComment)return;let n=[],{locStart:i,locEnd:u,printer:{experimentalFeatures:{avoidAstMutation:o=!1}={},handleComments:s={}},originalText:a}=t,{ownLine:D=Sr,endOfLine:c=Sr,remaining:d=Sr}=s,l=r.map((F,f)=>({...Du(e,F,t),comment:F,text:a,options:t,ast:e,isLastComment:r.length-1===f}));for(let[F,f]of l.entries()){let{comment:p,precedingNode:m,enclosingNode:h,followingNode:C,text:g,options:y,ast:b,isLastComment:se}=f;if(y.parser==="json"||y.parser==="json5"||y.parser==="__js_expression"||y.parser==="__ts_expression"||y.parser==="__vue_expression"||y.parser==="__vue_ts_expression"){if(i(p)-i(b)<=0){fe(b,p);continue}if(u(p)-u(b)>=0){pe(b,p);continue}}let G;if(o?G=[f]:(p.enclosingNode=h,p.precedingNode=m,p.followingNode=C,G=[p,g,y,b,se]),Yo(g,y,l,F))p.placement="ownLine",D(...G)||(C?fe(C,p):m?pe(m,p):h?oe(h,p):oe(b,p));else if(Mo(g,y,l,F))p.placement="endOfLine",c(...G)||(m?pe(m,p):C?fe(C,p):h?oe(h,p):oe(b,p));else if(p.placement="remaining",!d(...G))if(m&&C){let ae=n.length;ae>0&&n[ae-1].followingNode!==C&&au(n,y),n.push(f)}else m?pe(m,p):C?fe(C,p):h?oe(h,p):oe(b,p)}if(au(n,t),!o)for(let F of r)delete F.precedingNode,delete F.enclosingNode,delete F.followingNode}var lu=e=>!/[\S\n\u2028\u2029]/.test(e);function Yo(e,t,r,n){let{comment:i,precedingNode:u}=r[n],{locStart:o,locEnd:s}=t,a=o(i);if(u)for(let D=n-1;D>=0;D--){let{comment:c,precedingNode:d}=r[D];if(d!==u||!lu(e.slice(s(c),a)))break;a=o(c)}return W(e,a,{backwards:!0})}function Mo(e,t,r,n){let{comment:i,followingNode:u}=r[n],{locStart:o,locEnd:s}=t,a=s(i);if(u)for(let D=n+1;D0;--o){let{comment:D,precedingNode:c,followingNode:d}=e[o-1];Je.strictEqual(c,n),Je.strictEqual(d,i);let l=t.originalText.slice(t.locEnd(D),u);if(((a=(s=t.printer).isGap)==null?void 0:a.call(s,l,t))??/^[\s(]*$/.test(l))u=t.locStart(D);else break}for(let[D,{comment:c}]of e.entries())D1&&D.comments.sort((c,d)=>t.locStart(c)-t.locStart(d));e.length=0}function vr(e,t,r){let n=r.locStart(t)-1;for(let i=1;i!n.has(a)).length===0)return{leading:"",trailing:""};let u=[],o=[],s;return e.each(()=>{let a=e.node;if(n!=null&&n.has(a))return;let{leading:D,trailing:c}=a;D?u.push($o(e,t)):c&&(s=Vo(e,t,s),o.push(s.doc))},"comments"),{leading:u,trailing:o}}function pu(e,t,r){let{leading:n,trailing:i}=zo(e,r);return!n&&!i?t:Dt(t,u=>[n,u,i])}function du(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:r}=e;for(let n of t){if(!n.printed&&!r.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}async function Fu(e,t,r,n,i){let{embeddedLanguageFormatting:u,printer:{embed:o,hasPrettierIgnore:s=()=>!1,getVisitorKeys:a}}=r;if(!o||u!=="auto")return;if(o.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");let D=ee(o.getVisitorKeys??a),c=[];F();let d=e.stack;for(let{print:f,node:p,pathStack:m}of c)try{e.stack=m;let h=await f(l,t,e,r);h&&i.set(p,h)}catch(h){if(globalThis.PRETTIER_DEBUG)throw h}e.stack=d;function l(f,p){return Wo(f,p,r,n)}function F(){let{node:f}=e;if(f===null||typeof f!="object"||s(e))return;for(let m of D(f))Array.isArray(f[m])?e.each(F,m):e.call(F,m);let p=o(e,r);if(p){if(typeof p=="function"){c.push({print:p,node:f,pathStack:[...e.stack]});return}i.set(f,p)}}}async function Wo(e,t,r,n){let i=await le({...r,...t,parentParser:r.parser,originalText:e},{passThrough:!0}),{ast:u}=await Ee(e,i),o=await n(u,i);return at(o)}function Go(e){return()=>{}}var mu=Go;function Uo(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:i,locEnd:u,[Symbol.for("printedComments")]:o}=t,{node:s}=e,a=i(s),D=u(s);for(let c of n)i(c)>=a&&u(c)<=D&&o.add(c);return r.slice(a,D)}var hu=Uo;async function Ze(e,t){({ast:e}=await Tr(e,t));let r=new Map,n=new uu(e),i=mu(t),u=new Map;await Fu(n,s,t,Ze,u);let o=await Eu(n,t,s,void 0,u);return du(t),o;function s(D,c){return D===void 0||D===n?a(c):Array.isArray(D)?n.call(()=>a(c),...D):n.call(()=>a(c),D)}function a(D){i(n);let c=n.node;if(c==null)return"";let d=c&&typeof c=="object"&&D===void 0;if(d&&r.has(c))return r.get(c);let l=Eu(n,t,s,D,u);return d&&r.set(c,l),l}}function Eu(e,t,r,n,i){var a;let{node:u}=e,{printer:o}=t,s;return(a=o.hasPrettierIgnore)!=null&&a.call(o,e)?s=hu(e,t):i.has(u)?s=i.get(u):s=o.print(e,t,r,n),o.printComment&&(!o.willPrintOwnComments||!o.willPrintOwnComments(e,t))&&(s=pu(e,s,t)),u===t.cursorNode&&(s=Dt(s,D=>[Re,D,Re])),s}async function Tr(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,cu(e,t);let{printer:{preprocess:n}}=t;return e=n?await n(e,t):e,{ast:e,comments:r}}var Ko=({parser:e})=>e==="json"||e==="json5"||e==="json-stringify";function Ho(e,t){let r=[e.node,...e.parentNodes],n=new Set([t.node,...t.parentNodes]);return r.find(i=>yu.has(i.type)&&n.has(i))}function Cu(e){let t=e.length-1;for(;;){let r=e[t];if((r==null?void 0:r.type)==="Program"||(r==null?void 0:r.type)==="File")t--;else break}return e.slice(0,t+1)}function Jo(e,t,{locStart:r,locEnd:n}){let i=e.node,u=t.node;if(i===u)return{startNode:i,endNode:u};let o=r(e.node);for(let a of Cu(t.parentNodes))if(r(a)>=o)u=a;else break;let s=n(t.node);for(let a of Cu(e.parentNodes)){if(n(a)<=s)i=a;else break;if(i===u)break}return{startNode:i,endNode:u}}function Nr(e,t,r,n,i=[],u){let{locStart:o,locEnd:s}=r,a=o(e),D=s(e);if(!(t>D||tn);let s=e.slice(n,i).search(/\S/),a=s===-1;if(!a)for(n+=s;i>n&&!/\S/.test(e[i-1]);--i);let D=Nr(r,n,t,(F,f)=>gu(t,F,f),[],"rangeStart"),c=a?D:Nr(r,i,t,F=>gu(t,F),[],"rangeEnd");if(!D||!c)return{rangeStart:0,rangeEnd:0};let d,l;if(Ko(t)){let F=Ho(D,c);d=F,l=F}else({startNode:d,endNode:l}=Jo(D,c,t));return{rangeStart:Math.min(u(d),u(l)),rangeEnd:Math.max(o(d),o(l))}}function Qo(e,t){let{cursorOffset:r,locStart:n,locEnd:i}=t,u=ee(t.printer.getVisitorKeys),o=a=>n(a)<=r&&i(a)>=r,s=e;for(let a of su(e,{getVisitorKeys:u,filter:o}))s=a;return s}var xu=Qo;var Ou="\uFEFF",bu=Symbol("cursor");async function ku(e,t,r=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:i}=await Ee(e,t);t.cursorOffset>=0&&(t.cursorNode=xu(n,t));let u=await Ze(n,t,r);r>0&&(u=ot([X,u],r,t.tabWidth));let o=xe(u,t);if(r>0){let a=o.formatted.trim();o.cursorNodeStart!==void 0&&(o.cursorNodeStart-=o.formatted.indexOf(a)),o.formatted=a+Le(t.endOfLine)}let s=t[Symbol.for("comments")];if(t.cursorOffset>=0){let a,D,c,d,l;if(t.cursorNode&&o.cursorNodeText?(a=t.locStart(t.cursorNode),D=i.slice(a,t.locEnd(t.cursorNode)),c=t.cursorOffset-a,d=o.cursorNodeStart,l=o.cursorNodeText):(a=0,D=i,c=t.cursorOffset,d=0,l=o.formatted),D===l)return{formatted:o.formatted,cursorOffset:d+c,comments:s};let F=D.split("");F.splice(c,0,bu);let f=l.split(""),p=(0,wu.diffArrays)(F,f),m=d;for(let h of p)if(h.removed){if(h.value.includes(bu))break}else m+=h.count;return{formatted:o.formatted,cursorOffset:m,comments:s}}return{formatted:o.formatted,cursorOffset:-1,comments:s}}async function es(e,t){let{ast:r,text:n}=await Ee(e,t),{rangeStart:i,rangeEnd:u}=_u(n,t,r),o=n.slice(i,u),s=Math.min(i,n.lastIndexOf(` -`,i)+1),a=n.slice(s,i).match(/^\s*/)[0],D=be(a,t.tabWidth),c=await ku(o,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>i&&t.cursorOffset<=u?t.cursorOffset-i:-1,endOfLine:"lf"},D),d=c.formatted.trimEnd(),{cursorOffset:l}=t;l>u?l+=d.length-o.length:c.cursorOffset>=0&&(l=c.cursorOffset+i);let F=n.slice(0,i)+d+n.slice(u);if(t.endOfLine!=="lf"){let f=Le(t.endOfLine);l>=0&&f===`\r -`&&(l+=Rt(F.slice(0,l),` -`)),F=De(!1,F,` -`,f)}return{formatted:F,cursorOffset:l,comments:c.comments}}function Pr(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function Au(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i}=t;return r=Pr(e,r,-1),n=Pr(e,n,0),i=Pr(e,i,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:i}}function Su(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:u}=Au(e,t),o=e.charAt(0)===Ou;if(o&&(e=e.slice(1),r--,n--,i--),u==="auto"&&(u=tn(e)),e.includes("\r")){let s=a=>Rt(e.slice(0,Math.max(a,0)),`\r -`);r-=s(r),n-=s(n),i-=s(i),e=rn(e)}return{hasBOM:o,text:e,options:Au(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:u})}}async function Bu(e,t){let r=await Ct(t);return!r.hasPragma||r.hasPragma(e)}async function Rr(e,t){let{hasBOM:r,text:n,options:i}=Su(e,await le(t));if(i.rangeStart>=i.rangeEnd&&n!==""||i.requirePragma&&!await Bu(n,i))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let u;return i.rangeStart>0||i.rangeEnd=0&&u.cursorOffset++),u}async function vu(e,t,r){let{text:n,options:i}=Su(e,await le(t)),u=await Ee(n,i);return r&&(r.preprocessForPrint&&(u.ast=await Tr(u.ast,i)),r.massage&&(u.ast=Jn(u.ast,i))),u}async function Tu(e,t){t=await le(t);let r=await Ze(e,t);return xe(r,t)}async function Nu(e,t){let r=Fn(e),{formatted:n}=await Rr(r,{...t,parser:"__js_expression"});return n}async function Pu(e,t){t=await le(t);let{ast:r}=await Ee(e,t);return Ze(r,t)}async function Ru(e,t){return xe(e,await le(t))}var Bt={};ge(Bt,{addDanglingComment:()=>oe,addLeadingComment:()=>fe,addTrailingComment:()=>pe,getAlignmentSize:()=>be,getIndentSize:()=>Lu,getMaxContinuousCount:()=>Iu,getNextNonSpaceNonCommentCharacter:()=>Mu,getNextNonSpaceNonCommentCharacterIndex:()=>ps,getStringWidth:()=>je,hasNewline:()=>W,hasNewlineInRange:()=>ju,hasSpaces:()=>Yu,isNextLineEmpty:()=>hs,isNextLineEmptyAfterIndex:()=>At,isPreviousLineEmpty:()=>Fs,makeString:()=>qu,skip:()=>we,skipEverythingButNewLine:()=>xt,skipInlineComment:()=>Oe,skipNewline:()=>q,skipSpaces:()=>S,skipToLineEnd:()=>_t,skipTrailingComment:()=>ke,skipWhitespace:()=>iu});function rs(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;rMath.max(n,i.length/t.length),0)}var Iu=os;function ss(e,t){let r=e.lastIndexOf(` -`);return r===-1?0:be(e.slice(r+1).match(/^[\t ]*/)[0],t)}var Lu=ss;function as(e,t,r){for(let n=t;ns===n?s:a===t?"\\"+a:a||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(s)?s:"\\"+s));return t+u+t}var qu=ls;function fs(e,t,r){return Qe(e,r(t))}function ps(e,t){return arguments.length===2||typeof t=="number"?Qe(e,t):fs(...arguments)}function ds(e,t,r){return Xe(e,r(t))}function Fs(e,t){return arguments.length===2||typeof t=="number"?Xe(e,t):ds(...arguments)}function ms(e,t,r){return At(e,r(t))}function hs(e,t){return arguments.length===2||typeof t=="number"?At(e,t):ms(...arguments)}var wt={};ge(wt,{builders:()=>Es,printer:()=>Cs,utils:()=>gs});var Es={join:Ie,line:ut,softline:Qr,hardline:X,literalline:it,group:Nt,conditionalGroup:Kr,fill:nt,lineSuffix:Ne,lineSuffixBoundary:Xr,cursor:Re,breakParent:_e,ifBreak:Hr,trim:Zr,indent:Fe,indentIfBreak:Jr,align:de,addAlignmentToDoc:ot,markAsRoot:Gr,dedentToRoot:Wr,dedent:Ur,hardlineWithoutBreakParent:Pe,literallineWithoutBreakParent:Pt,label:en,concat:e=>e},Cs={printDocToString:xe},gs={willBreak:Dn,traverseDoc:Te,findInDoc:st,mapDoc:Me,removeLines:ln,stripTrailingHardline:at,replaceEndOfLine:fn,canBreak:pn};var $u="3.0.0";function Ce(e,t=1){return async(...r)=>{let n=r[t]??{},i=n.plugins??[];return r[t]={...n,plugins:Array.isArray(i)?i:Object.values(i)},e(...r)}}var Vu=Ce(Rr);async function zu(e,t){let{formatted:r}=await Vu(e,{...t,cursorOffset:-1});return r}async function ys(e,t){return await zu(e,t)===e}var _s=Ce(lt,0),xs={parse:Ce(vu),formatAST:Ce(Tu),formatDoc:Ce(Nu),printToDoc:Ce(Pu),printDocToString:Ce(Ru)};var bl=Lr;export{xs as __debug,ys as check,bl as default,wt as doc,zu as format,Vu as formatWithCursor,_s as getSupportInfo,Bt as util,$u as version}; +in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function et({plugins:t=[],showDeprecated:e=!1}={}){let r=t.flatMap(o=>o.languages??[]),n=[];for(let o of Yu(Object.assign({},...t.map(({options:u})=>u),vr)))!e&&o.deprecated||(Array.isArray(o.choices)&&(e||(o.choices=o.choices.filter(u=>!u.deprecated)),o.name==="parser"&&(o.choices=[...o.choices,...Ru(o.choices,r,t)])),o.pluginDefaults=Object.fromEntries(t.filter(u=>{var i;return((i=u.defaultOptions)==null?void 0:i[o.name])!==void 0}).map(u=>[u.name,u.defaultOptions[o.name]])),n.push(o));return{languages:r,options:n}}function*Ru(t,e,r){let n=new Set(t.map(o=>o.value));for(let o of e)if(o.parsers){for(let u of o.parsers)if(!n.has(u)){n.add(u);let i=r.find(a=>a.parsers&&Object.prototype.hasOwnProperty.call(a.parsers,u)),s=o.name;i!=null&&i.name&&(s+=` (plugin: ${i.name})`),yield{value:u,description:s}}}}function Yu(t){let e=[];for(let[r,n]of Object.entries(t)){let o={name:r,...n};Array.isArray(o.default)&&(o.default=y(!1,o.default,-1).value),e.push(o)}return e}var ju=t=>t.split(/[/\\]/).pop();function Pr(t,e){if(!e)return;let r=ju(e).toLowerCase();return t.find(n=>{var o,u;return((o=n.extensions)==null?void 0:o.some(i=>r.endsWith(i)))||((u=n.filenames)==null?void 0:u.some(i=>i.toLowerCase()===r))})}function Vu(t,e){if(e)return t.find(({name:r})=>r.toLowerCase()===e)??t.find(({aliases:r})=>r==null?void 0:r.includes(e))??t.find(({extensions:r})=>r==null?void 0:r.includes(`.${e}`))}function $u(t,e){let r=t.plugins.flatMap(o=>o.languages??[]),n=Vu(r,e.language)??Pr(r,e.physicalFile)??Pr(r,e.file)??(e.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var Lr=$u;var te={key:t=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(t)?t:JSON.stringify(t),value(t){if(t===null||typeof t!="object")return JSON.stringify(t);if(Array.isArray(t))return`[${t.map(r=>te.value(r)).join(", ")}]`;let e=Object.keys(t);return e.length===0?"{}":`{ ${e.map(r=>`${te.key(r)}: ${te.value(t[r])}`).join(", ")} }`},pair:({key:t,value:e})=>te.value({[t]:e})};var bt=Ce(Pe(),1),Yr=(t,e,{descriptor:r})=>{let n=[`${bt.default.yellow(typeof t=="string"?r.key(t):r.pair(t))} is deprecated`];return e&&n.push(`we now treat it as ${bt.default.blue(typeof e=="string"?r.key(e):r.pair(e))}`),n.join("; ")+"."};var se=Ce(Pe(),1);var tt=Symbol.for("vnopts.VALUE_NOT_EXIST"),de=Symbol.for("vnopts.VALUE_UNCHANGED");var jr=" ".repeat(2),$r=(t,e,r)=>{let{text:n,list:o}=r.normalizeExpectedResult(r.schemas[t].expected(r)),u=[];return n&&u.push(Vr(t,e,n,r.descriptor)),o&&u.push([Vr(t,e,o.title,r.descriptor)].concat(o.values.map(i=>Ur(i,r.loggerPrintWidth))).join(` +`)),Mr(u,r.loggerPrintWidth)};function Vr(t,e,r,n){return[`Invalid ${se.default.red(n.key(t))} value.`,`Expected ${se.default.blue(r)},`,`but received ${e===tt?se.default.gray("nothing"):se.default.red(n.value(e))}.`].join(" ")}function Ur({text:t,list:e},r){let n=[];return t&&n.push(`- ${se.default.blue(t)}`),e&&n.push([`- ${se.default.blue(e.title)}:`].concat(e.values.map(o=>Ur(o,r-jr.length).replace(/^|\n/g,`$&${jr}`))).join(` +`)),Mr(n,r)}function Mr(t,e){if(t.length===1)return t[0];let[r,n]=t,[o,u]=t.map(i=>i.split(` +`,1)[0].length);return o>e&&o>u?n:r}var Nt=Ce(Pe(),1);var wt=[],Wr=[];function Ot(t,e){if(t===e)return 0;let r=t;t.length>e.length&&(t=e,e=r);let n=t.length,o=e.length;for(;n>0&&t.charCodeAt(~-n)===e.charCodeAt(~-o);)n--,o--;let u=0;for(;us?D>s?s+1:D:D>a?a+1:D;return s}var rt=(t,e,{descriptor:r,logger:n,schemas:o})=>{let u=[`Ignored unknown option ${Nt.default.yellow(r.pair({key:t,value:e}))}.`],i=Object.keys(o).sort().find(s=>Ot(t,s)<3);i&&u.push(`Did you mean ${Nt.default.blue(r.key(i))}?`),n.warn(u.join(" "))};var Uu=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function Mu(t,e){let r=new t(e),n=Object.create(r);for(let o of Uu)o in e&&(n[o]=Wu(e[o],r,w.prototype[o].length));return n}var w=class{static create(e){return Mu(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,r){return!1}deprecated(e,r){return!1}forward(e,r){}redirect(e,r){}overlap(e,r,n){return e}preprocess(e,r){return e}postprocess(e,r){return de}};function Wu(t,e,r){return typeof t=="function"?(...n)=>t(...n.slice(0,r-1),e,...n.slice(r-1)):()=>t}var nt=class extends w{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,r){return r.schemas[this._sourceName].validate(e,r)}redirect(e,r){return this._sourceName}};var ut=class extends w{expected(){return"anything"}validate(){return!0}};var ot=class extends w{constructor({valueSchema:e,name:r=e.name,...n}){super({...n,name:r}),this._valueSchema=e}expected(e){let{text:r,list:n}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:r&&`an array of ${r}`,list:n&&{title:"an array of the following values",values:[{list:n}]}}}validate(e,r){if(!Array.isArray(e))return!1;let n=[];for(let o of e){let u=r.normalizeValidateResult(this._valueSchema.validate(o,r),o);u!==!0&&n.push(u.value)}return n.length===0?!0:{value:n}}deprecated(e,r){let n=[];for(let o of e){let u=r.normalizeDeprecatedResult(this._valueSchema.deprecated(o,r),o);u!==!1&&n.push(...u.map(({value:i})=>({value:[i]})))}return n}forward(e,r){let n=[];for(let o of e){let u=r.normalizeForwardResult(this._valueSchema.forward(o,r),o);n.push(...u.map(zr))}return n}redirect(e,r){let n=[],o=[];for(let u of e){let i=r.normalizeRedirectResult(this._valueSchema.redirect(u,r),u);"remain"in i&&n.push(i.remain),o.push(...i.redirect.map(zr))}return n.length===0?{redirect:o}:{redirect:o,remain:n}}overlap(e,r){return e.concat(r)}};function zr({from:t,to:e}){return{from:[t],to:e}}var it=class extends w{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function Kr(t,e){let r=Object.create(null);for(let n of t){let o=n[e];if(r[o])throw new Error(`Duplicate ${e} ${JSON.stringify(o)}`);r[o]=n}return r}function Hr(t,e){let r=new Map;for(let n of t){let o=n[e];if(r.has(o))throw new Error(`Duplicate ${e} ${JSON.stringify(o)}`);r.set(o,n)}return r}function qr(){let t=Object.create(null);return e=>{let r=JSON.stringify(e);return t[r]?!0:(t[r]=!0,!1)}}function Jr(t,e){let r=[],n=[];for(let o of t)e(o)?r.push(o):n.push(o);return[r,n]}function Xr(t){return t===Math.floor(t)}function Zr(t,e){if(t===e)return 0;let r=typeof t,n=typeof e,o=["undefined","object","boolean","number","string"];return r!==n?o.indexOf(r)-o.indexOf(n):r!=="string"?Number(t)-Number(e):t.localeCompare(e)}function Qr(t){return(...e)=>{let r=t(...e);return typeof r=="string"?new Error(r):r}}function Tt(t){return t===void 0?{}:t}function St(t){if(typeof t=="string")return{text:t};let{text:e,list:r}=t;return zu((e||r)!==void 0,"Unexpected `expected` result, there should be at least one field."),r?{text:e,list:{title:r.title,values:r.values.map(St)}}:{text:e}}function vt(t,e){return t===!0?!0:t===!1?{value:e}:t}function Pt(t,e,r=!1){return t===!1?!1:t===!0?r?!0:[{value:e}]:"value"in t?[t]:t.length===0?!1:t}function Gr(t,e){return typeof t=="string"||"key"in t?{from:e,to:t}:"from"in t?{from:t.from,to:t.to}:{from:e,to:t.to}}function st(t,e){return t===void 0?[]:Array.isArray(t)?t.map(r=>Gr(r,e)):[Gr(t,e)]}function Lt(t,e){let r=st(typeof t=="object"&&"redirect"in t?t.redirect:t,e);return r.length===0?{remain:e,redirect:r}:typeof t=="object"&&"remain"in t?{remain:t.remain,redirect:r}:{redirect:r}}function zu(t,e){if(!t)throw new Error(e)}var at=class extends w{constructor(e){super(e),this._choices=Hr(e.choices.map(r=>r&&typeof r=="object"?r:{value:r}),"value")}expected({descriptor:e}){let r=Array.from(this._choices.keys()).map(i=>this._choices.get(i)).filter(({hidden:i})=>!i).map(i=>i.value).sort(Zr).map(e.value),n=r.slice(0,-2),o=r.slice(-2);return{text:n.concat(o.join(" or ")).join(", "),list:{title:"one of the following values",values:r}}}validate(e){return this._choices.has(e)}deprecated(e){let r=this._choices.get(e);return r&&r.deprecated?{value:e}:!1}forward(e){let r=this._choices.get(e);return r?r.forward:void 0}redirect(e){let r=this._choices.get(e);return r?r.redirect:void 0}};var Dt=class extends w{expected(){return"a number"}validate(e,r){return typeof e=="number"}};var ct=class extends Dt{expected(){return"an integer"}validate(e,r){return r.normalizeValidateResult(super.validate(e,r),e)===!0&&Xr(e)}};var Le=class extends w{expected(){return"a string"}validate(e){return typeof e=="string"}};var en=te,tn=rt,rn=$r,nn=Yr;var lt=class{constructor(e,r){let{logger:n=console,loggerPrintWidth:o=80,descriptor:u=en,unknown:i=tn,invalid:s=rn,deprecated:a=nn,missing:D=()=>!1,required:c=()=>!1,preprocess:F=d=>d,postprocess:f=()=>de}=r||{};this._utils={descriptor:u,logger:n||{warn:()=>{}},loggerPrintWidth:o,schemas:Kr(e,"name"),normalizeDefaultResult:Tt,normalizeExpectedResult:St,normalizeDeprecatedResult:Pt,normalizeForwardResult:st,normalizeRedirectResult:Lt,normalizeValidateResult:vt},this._unknownHandler=i,this._invalidHandler=Qr(s),this._deprecatedHandler=a,this._identifyMissing=(d,l)=>!(d in l)||D(d,l),this._identifyRequired=c,this._preprocess=F,this._postprocess=f,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=qr()}normalize(e){let r={},o=[this._preprocess(e,this._utils)],u=()=>{for(;o.length!==0;){let i=o.shift(),s=this._applyNormalization(i,r);o.push(...s)}};u();for(let i of Object.keys(this._utils.schemas)){let s=this._utils.schemas[i];if(!(i in r)){let a=Tt(s.default(this._utils));"value"in a&&o.push({[i]:a.value})}}u();for(let i of Object.keys(this._utils.schemas)){if(!(i in r))continue;let s=this._utils.schemas[i],a=r[i],D=s.postprocess(a,this._utils);D!==de&&(this._applyValidation(D,i,s),r[i]=D)}return this._applyPostprocess(r),this._applyRequiredCheck(r),r}_applyNormalization(e,r){let n=[],{knownKeys:o,unknownKeys:u}=this._partitionOptionKeys(e);for(let i of o){let s=this._utils.schemas[i],a=s.preprocess(e[i],this._utils);this._applyValidation(a,i,s);let D=({from:d,to:l})=>{n.push(typeof l=="string"?{[l]:d}:{[l.key]:l.value})},c=({value:d,redirectTo:l})=>{let p=Pt(s.deprecated(d,this._utils),a,!0);if(p!==!1)if(p===!0)this._hasDeprecationWarned(i)||this._utils.logger.warn(this._deprecatedHandler(i,l,this._utils));else for(let{value:m}of p){let E={key:i,value:m};if(!this._hasDeprecationWarned(E)){let h=typeof l=="string"?{key:l,value:m}:l;this._utils.logger.warn(this._deprecatedHandler(E,h,this._utils))}}};st(s.forward(a,this._utils),a).forEach(D);let f=Lt(s.redirect(a,this._utils),a);if(f.redirect.forEach(D),"remain"in f){let d=f.remain;r[i]=i in r?s.overlap(r[i],d,this._utils):d,c({value:d})}for(let{from:d,to:l}of f.redirect)c({value:d,redirectTo:l})}for(let i of u){let s=e[i];this._applyUnknownHandler(i,s,r,(a,D)=>{n.push({[a]:D})})}return n}_applyRequiredCheck(e){for(let r of Object.keys(this._utils.schemas))if(this._identifyMissing(r,e)&&this._identifyRequired(r))throw this._invalidHandler(r,tt,this._utils)}_partitionOptionKeys(e){let[r,n]=Jr(Object.keys(e).filter(o=>!this._identifyMissing(o,e)),o=>o in this._utils.schemas);return{knownKeys:r,unknownKeys:n}}_applyValidation(e,r,n){let o=vt(n.validate(e,this._utils),e);if(o!==!0)throw this._invalidHandler(r,o.value,this._utils)}_applyUnknownHandler(e,r,n,o){let u=this._unknownHandler(e,r,this._utils);if(u)for(let i of Object.keys(u)){if(this._identifyMissing(i,u))continue;let s=u[i];i in this._utils.schemas?o(i,s):n[i]=s}}_applyPostprocess(e){let r=this._postprocess(e,this._utils);if(r!==de){if(r.delete)for(let n of r.delete)delete e[n];if(r.override){let{knownKeys:n,unknownKeys:o}=this._partitionOptionKeys(r.override);for(let u of n){let i=r.override[u];this._applyValidation(i,u,this._utils.schemas[u]),e[u]=i}for(let u of o){let i=r.override[u];this._applyUnknownHandler(u,i,e,(s,a)=>{let D=this._utils.schemas[s];this._applyValidation(a,s,D),e[s]=a})}}}}};var It;function Ku(t,e,{logger:r=!1,isCLI:n=!1,passThrough:o=!1,FlagSchema:u,descriptor:i}={}){if(n){if(!u)throw new Error("'FlagSchema' option is required.");if(!i)throw new Error("'descriptor' option is required.")}else i=te;let s=o?Array.isArray(o)?(f,d)=>o.includes(f)?{[f]:d}:void 0:(f,d)=>({[f]:d}):(f,d,l)=>{let{_:p,...m}=l.schemas;return rt(f,d,{...l,schemas:m})},a=Hu(e,{isCLI:n,FlagSchema:u}),D=new lt(a,{logger:r,unknown:s,descriptor:i}),c=r!==!1;c&&It&&(D._hasDeprecationWarned=It);let F=D.normalize(t);return c&&(It=D._hasDeprecationWarned),F}function Hu(t,{isCLI:e,FlagSchema:r}){let n=[];e&&n.push(ut.create({name:"_"}));for(let o of t)n.push(qu(o,{isCLI:e,optionInfos:t,FlagSchema:r})),o.alias&&e&&n.push(nt.create({name:o.alias,sourceName:o.name}));return n}function qu(t,{isCLI:e,optionInfos:r,FlagSchema:n}){let{name:o}=t,u={name:o},i,s={};switch(t.type){case"int":i=ct,e&&(u.preprocess=Number);break;case"string":i=Le;break;case"choice":i=at,u.choices=t.choices.map(a=>a!=null&&a.redirect?{...a,redirect:{to:{key:t.name,value:a.redirect}}}:a);break;case"boolean":i=it;break;case"flag":i=n,u.flags=r.flatMap(a=>[a.alias,a.description&&a.name,a.oppositeDescription&&`no-${a.name}`].filter(Boolean));break;case"path":i=Le;break;default:throw new Error(`Unexpected type ${t.type}`)}if(t.exception?u.validate=(a,D,c)=>t.exception(a)||D.validate(a,c):u.validate=(a,D,c)=>a===void 0||D.validate(a,c),t.redirect&&(s.redirect=a=>a?{to:{key:t.redirect.option,value:t.redirect.value}}:void 0),t.deprecated&&(s.deprecated=!0),e&&!t.array){let a=u.preprocess||(D=>D);u.preprocess=(D,c,F)=>c.preprocess(a(Array.isArray(D)?y(!1,D,-1):D),F)}return t.array?ot.create({...e?{preprocess:a=>Array.isArray(a)?a:[a]}:{},...s,valueSchema:i.create(u)}):i.create({...u,...s})}var un=Ku;function Rt(t,e){if(!e)throw new Error("parserName is required.");for(let n=t.length-1;n>=0;n--){let o=t[n];if(o.parsers&&Object.prototype.hasOwnProperty.call(o.parsers,e))return o}let r=`Couldn't resolve parser "${e}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new Se(r)}function on(t,e){if(!e)throw new Error("astFormat is required.");for(let n=t.length-1;n>=0;n--){let o=t[n];if(o.printers&&Object.prototype.hasOwnProperty.call(o.printers,e))return o}let r=`Couldn't find plugin for AST format "${e}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new Se(r)}function ft({plugins:t,parser:e}){let r=Rt(t,e);return Yt(r,e)}function Yt(t,e){let r=t.parsers[e];return typeof r=="function"?r():r}function sn(t,e){let r=t.printers[e];return typeof r=="function"?r():r}var an={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function Ju(t,e={}){var F;let r={...t};if(!r.parser)if(r.filepath){if(r.parser=Lr(r,{physicalFile:r.filepath}),!r.parser)throw new ve(`No parser could be inferred for file "${r.filepath}".`)}else throw new ve("No parser and no file path given, couldn't infer a parser.");let n=et({plugins:t.plugins,showDeprecated:!0}).options,o={...an,...Object.fromEntries(n.filter(f=>f.default!==void 0).map(f=>[f.name,f.default]))},u=Rt(r.plugins,r.parser),i=await Yt(u,r.parser);r.astFormat=i.astFormat,r.locEnd=i.locEnd,r.locStart=i.locStart;let s=(F=u.printers)!=null&&F[i.astFormat]?u:on(r.plugins,i.astFormat),a=await sn(s,i.astFormat);r.printer=a;let D=s.defaultOptions?Object.fromEntries(Object.entries(s.defaultOptions).filter(([,f])=>f!==void 0)):{},c={...o,...D};for(let[f,d]of Object.entries(c))(r[f]===null||r[f]===void 0)&&(r[f]=d);return r.parser==="json"&&(r.trailingComma="none"),un(r,n,{passThrough:Object.keys(an),...e})}var re=Ju;var Dn=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),Xu=t=>Object.keys(t).filter(e=>!Dn.has(e));function Zu(t){return t?e=>t(e,Dn):Xu}var H=Zu;function Qu(t,e){let{printer:{massageAstNode:r,getVisitorKeys:n}}=e;if(!r)return t;let o=H(n),u=r.ignoredProperties??new Set;return i(t);function i(s,a){if(!(s!==null&&typeof s=="object"))return s;if(Array.isArray(s))return s.map(f=>i(f,a)).filter(Boolean);let D={},c=new Set(o(s));for(let f in s)!Object.prototype.hasOwnProperty.call(s,f)||u.has(f)||(c.has(f)?D[f]=i(s[f],s):D[f]=s[f]);let F=r(s,D,a);if(F!==null)return F??D}}var cn=Qu;var Cn=Ce(hn(),1);async function so(t,e){let r=await ft(e),n=r.preprocess?r.preprocess(t,e):t;e.originalText=n;let o;try{o=await r.parse(n,e,e)}catch(u){ao(u,t)}return{text:n,ast:o}}function ao(t,e){let{loc:r}=t;if(r){let n=(0,Cn.codeFrameColumns)(e,r,{highlightCode:!0});throw t.message+=` +`+n,t.codeFrame=n,t}throw t}var ae=so;var Ie,$t,Fe,dt,Vt=class{constructor(e){Ct(this,Ie);Ct(this,Fe);this.stack=[e]}get key(){let{stack:e,siblings:r}=this;return y(!1,e,r===null?-2:-4)??null}get index(){return this.siblings===null?null:y(!1,this.stack,-2)}get node(){return y(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:e}=this,r=y(!1,e,-3);return Array.isArray(r)?r:null}get next(){let{siblings:e}=this;return e===null?null:e[this.index+1]}get previous(){let{siblings:e}=this;return e===null?null:e[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:e,index:r}=this;return e!==null&&r===e.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...ce(this,Fe,dt).call(this)]}getName(){let{stack:e}=this,{length:r}=e;return r>1?y(!1,e,-2):null}getValue(){return y(!1,this.stack,-1)}getNode(e=0){let r=ce(this,Ie,$t).call(this,e);return r===-1?null:this.stack[r]}getParentNode(e=0){return this.getNode(e+1)}call(e,...r){let{stack:n}=this,{length:o}=n,u=y(!1,n,-1);for(let i of r)u=u[i],n.push(i,u);try{return e(this)}finally{n.length=o}}callParent(e,r=0){let n=ce(this,Ie,$t).call(this,r+1),o=this.stack.splice(n+1);try{return e(this)}finally{this.stack.push(...o)}}each(e,...r){let{stack:n}=this,{length:o}=n,u=y(!1,n,-1);for(let i of r)u=u[i],n.push(i,u);try{for(let i=0;i{n[u]=e(o,u,i)},...r),n}match(...e){let r=this.stack.length-1,n=null,o=this.stack[r--];for(let u of e){if(o===void 0)return!1;let i=null;if(typeof n=="number"&&(i=n,n=this.stack[r--],o=this.stack[r--]),u&&!u(o,n,i))return!1;n=this.stack[r--],o=this.stack[r--]}return!0}findAncestor(e){for(let r of ce(this,Fe,dt).call(this))if(e(r))return r}hasAncestor(e){for(let r of ce(this,Fe,dt).call(this))if(e(r))return!0;return!1}};Ie=new WeakSet,$t=function(e){let{stack:r}=this;for(let n=r.length-1;n>=0;n-=2)if(!Array.isArray(r[n])&&--e<0)return n;return-1},Fe=new WeakSet,dt=function*(){let{stack:e}=this;for(let r=e.length-3;r>=0;r-=2){let n=e[r];Array.isArray(n)||(yield n)}};var gn=Vt;var yn=new Proxy(()=>{},{get:()=>yn}),Re=yn;function me(t){return(e,r,n)=>{let o=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:u}=e,i=r;for(;i>=0&&i0}var Ut=lo;function fo(t){return t!==null&&typeof t=="object"}var _n=fo;function*Mt(t,e){let{getVisitorKeys:r,filter:n=()=>!0}=e,o=u=>_n(u)&&n(u);for(let u of r(t)){let i=t[u];if(Array.isArray(i))for(let s of i)o(s)&&(yield s);else o(i)&&(yield i)}}function*An(t,e){let r=[t];for(let n=0;n20&&(r=r.slice(0,19)+"\u2026"),e+(r?" "+r:"")}function Wt(t,e){(t.comments??(t.comments=[])).push(e),e.printed=!1,e.nodeDescription=po(t)}function ne(t,e){e.leading=!0,e.trailing=!1,Wt(t,e)}function X(t,e,r){e.leading=!1,e.trailing=!1,r&&(e.marker=r),Wt(t,e)}function ue(t,e){e.leading=!1,e.trailing=!0,Wt(t,e)}var zt=new WeakMap;function Et(t,e){if(zt.has(t))return zt.get(t);let{printer:{getCommentChildNodes:r,canAttachComment:n,getVisitorKeys:o},locStart:u,locEnd:i}=e;if(!n)return[];let s=((r==null?void 0:r(t,e))??[...Mt(t,{getVisitorKeys:H(o)})]).flatMap(a=>n(a)?[a]:Et(a,e));return s.sort((a,D)=>u(a)-u(D)||i(a)-i(D)),zt.set(t,s),s}function kn(t,e,r,n){let{locStart:o,locEnd:u}=r,i=o(e),s=u(e),a=Et(t,r),D,c,F=0,f=a.length;for(;F>1,l=a[d],p=o(l),m=u(l);if(p<=i&&s<=m)return kn(l,e,r,l);if(m<=i){D=l,F=d+1;continue}if(s<=p){c=l,f=d;continue}throw new Error("Comment location overlaps with node location")}if((n==null?void 0:n.type)==="TemplateLiteral"){let{quasis:d}=n,l=Kt(d,e,r);D&&Kt(d,D,r)!==l&&(D=null),c&&Kt(d,c,r)!==l&&(c=null)}return{enclosingNode:n,precedingNode:D,followingNode:c}}var Gt=()=>!1;function bn(t,e){let{comments:r}=t;if(delete t.comments,!Ut(r)||!e.printer.canAttachComment)return;let n=[],{locStart:o,locEnd:u,printer:{experimentalFeatures:{avoidAstMutation:i=!1}={},handleComments:s={}},originalText:a}=e,{ownLine:D=Gt,endOfLine:c=Gt,remaining:F=Gt}=s,f=r.map((d,l)=>({...kn(t,d,e),comment:d,text:a,options:e,ast:t,isLastComment:r.length-1===l}));for(let[d,l]of f.entries()){let{comment:p,precedingNode:m,enclosingNode:E,followingNode:h,text:g,options:C,ast:_,isLastComment:Z}=l;if(C.parser==="json"||C.parser==="json5"||C.parser==="__js_expression"||C.parser==="__ts_expression"||C.parser==="__vue_expression"||C.parser==="__vue_ts_expression"){if(o(p)-o(_)<=0){ne(_,p);continue}if(u(p)-u(_)>=0){ue(_,p);continue}}let $;if(i?$=[l]:(p.enclosingNode=E,p.precedingNode=m,p.followingNode=h,$=[p,g,C,_,Z]),Fo(g,C,f,d))p.placement="ownLine",D(...$)||(h?ne(h,p):m?ue(m,p):E?X(E,p):X(_,p));else if(mo(g,C,f,d))p.placement="endOfLine",c(...$)||(m?ue(m,p):h?ne(h,p):E?X(E,p):X(_,p));else if(p.placement="remaining",!F(...$))if(m&&h){let Q=n.length;Q>0&&n[Q-1].followingNode!==h&&Bn(n,C),n.push(l)}else m?ue(m,p):h?ne(h,p):E?X(E,p):X(_,p)}if(Bn(n,e),!i)for(let d of r)delete d.precedingNode,delete d.enclosingNode,delete d.followingNode}var wn=t=>!/[\S\n\u2028\u2029]/.test(t);function Fo(t,e,r,n){let{comment:o,precedingNode:u}=r[n],{locStart:i,locEnd:s}=e,a=i(o);if(u)for(let D=n-1;D>=0;D--){let{comment:c,precedingNode:F}=r[D];if(F!==u||!wn(t.slice(s(c),a)))break;a=i(c)}return V(t,a,{backwards:!0})}function mo(t,e,r,n){let{comment:o,followingNode:u}=r[n],{locStart:i,locEnd:s}=e,a=s(o);if(u)for(let D=n+1;D0;--i){let{comment:D,precedingNode:c,followingNode:F}=t[i-1];Re.strictEqual(c,n),Re.strictEqual(F,o);let f=e.originalText.slice(e.locEnd(D),u);if(((a=(s=e.printer).isGap)==null?void 0:a.call(s,f,e))??/^[\s(]*$/.test(f))u=e.locStart(D);else break}for(let[D,{comment:c}]of t.entries())D1&&D.comments.sort((c,F)=>e.locStart(c)-e.locStart(F));t.length=0}function Kt(t,e,r){let n=r.locStart(e)-1;for(let o=1;o!n.has(a)).length===0)return{leading:"",trailing:""};let u=[],i=[],s;return t.each(()=>{let a=t.node;if(n!=null&&n.has(a))return;let{leading:D,trailing:c}=a;D?u.push(ho(t,e)):c&&(s=Co(t,e,s),i.push(s.doc))},"comments"),{leading:u,trailing:i}}function Nn(t,e,r){let{leading:n,trailing:o}=go(t,r);return!n&&!o?e:Ze(e,u=>[n,u,o])}function Tn(t){let{[Symbol.for("comments")]:e,[Symbol.for("printedComments")]:r}=t;for(let n of e){if(!n.printed&&!r.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}async function Sn(t,e,r,n,o){let{embeddedLanguageFormatting:u,printer:{embed:i,hasPrettierIgnore:s=()=>!1,getVisitorKeys:a}}=r;if(!i||u!=="auto")return;if(i.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");let D=H(i.getVisitorKeys??a),c=[];d();let F=t.stack;for(let{print:l,node:p,pathStack:m}of c)try{t.stack=m;let E=await l(f,e,t,r);E&&o.set(p,E)}catch(E){if(globalThis.PRETTIER_DEBUG)throw E}t.stack=F;function f(l,p){return yo(l,p,r,n)}function d(){let{node:l}=t;if(l===null||typeof l!="object"||s(t))return;for(let m of D(l))Array.isArray(l[m])?t.each(d,m):t.call(d,m);let p=i(t,r);if(p){if(typeof p=="function"){c.push({print:p,node:l,pathStack:[...t.stack]});return}o.set(l,p)}}}async function yo(t,e,r,n){let o=await re({...r,...e,parentParser:r.parser,originalText:t},{passThrough:!0}),{ast:u}=await ae(t,o),i=await n(u,o);return Xe(i)}function xo(t){return()=>{}}var vn=xo;function _o(t,e){let{originalText:r,[Symbol.for("comments")]:n,locStart:o,locEnd:u,[Symbol.for("printedComments")]:i}=e,{node:s}=t,a=o(s),D=u(s);for(let c of n)o(c)>=a&&u(c)<=D&&i.add(c);return r.slice(a,D)}var Pn=_o;async function je(t,e){({ast:t}=await Ht(t,e));let r=new Map,n=new gn(t),o=vn(e),u=new Map;await Sn(n,s,e,je,u);let i=await Ln(n,e,s,void 0,u);return Tn(e),i;function s(D,c){return D===void 0||D===n?a(c):Array.isArray(D)?n.call(()=>a(c),...D):n.call(()=>a(c),D)}function a(D){o(n);let c=n.node;if(c==null)return"";let F=c&&typeof c=="object"&&D===void 0;if(F&&r.has(c))return r.get(c);let f=Ln(n,e,s,D,u);return F&&r.set(c,f),f}}function Ln(t,e,r,n,o){var a;let{node:u}=t,{printer:i}=e,s;return(a=i.hasPrettierIgnore)!=null&&a.call(i,t)?s=Pn(t,e):o.has(u)?s=o.get(u):s=i.print(t,e,r,n),u===e.cursorNode&&(s=Ze(s,D=>[Be,D,Be])),i.printComment&&(!i.willPrintOwnComments||!i.willPrintOwnComments(t,e))&&(s=Nn(t,s,e)),s}async function Ht(t,e){let r=t.comments??[];e[Symbol.for("comments")]=r,e[Symbol.for("tokens")]=t.tokens??[],e[Symbol.for("printedComments")]=new Set,bn(t,e);let{printer:{preprocess:n}}=e;return t=n?await n(t,e):t,{ast:t,comments:r}}var Ao=({parser:t})=>t==="json"||t==="json5"||t==="json-stringify";function Bo(t,e){let r=[t.node,...t.parentNodes],n=new Set([e.node,...e.parentNodes]);return r.find(o=>Yn.has(o.type)&&n.has(o))}function In(t){let e=t.length-1;for(;;){let r=t[e];if((r==null?void 0:r.type)==="Program"||(r==null?void 0:r.type)==="File")e--;else break}return t.slice(0,e+1)}function ko(t,e,{locStart:r,locEnd:n}){let o=t.node,u=e.node;if(o===u)return{startNode:o,endNode:u};let i=r(t.node);for(let a of In(e.parentNodes))if(r(a)>=i)u=a;else break;let s=n(e.node);for(let a of In(t.parentNodes)){if(n(a)<=s)o=a;else break;if(o===u)break}return{startNode:o,endNode:u}}function qt(t,e,r,n,o=[],u){let{locStart:i,locEnd:s}=r,a=i(t),D=s(t);if(!(e>D||en);let s=t.slice(n,o).search(/\S/),a=s===-1;if(!a)for(n+=s;o>n&&!/\S/.test(t[o-1]);--o);let D=qt(r,n,e,(d,l)=>Rn(e,d,l),[],"rangeStart"),c=a?D:qt(r,o,e,d=>Rn(e,d),[],"rangeEnd");if(!D||!c)return{rangeStart:0,rangeEnd:0};let F,f;if(Ao(e)){let d=Bo(D,c);F=d,f=d}else({startNode:F,endNode:f}=ko(D,c,e));return{rangeStart:Math.min(u(F),u(f)),rangeEnd:Math.max(i(F),i(f))}}function Oo(t,e){let{cursorOffset:r,locStart:n,locEnd:o}=e,u=H(e.printer.getVisitorKeys),i=a=>n(a)<=r&&o(a)>=r,s=t;for(let a of An(t,{getVisitorKeys:u,filter:i}))s=a;return s}var Vn=Oo;var zn="\uFEFF",$n=Symbol("cursor");async function Gn(t,e,r=0){if(!t||t.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:o}=await ae(t,e);e.cursorOffset>=0&&(e.cursorNode=Vn(n,e));let u=await je(n,e,r);r>0&&(u=qe([G,u],r,e.tabWidth));let i=fe(u,e);if(r>0){let a=i.formatted.trim();i.cursorNodeStart!==void 0&&(i.cursorNodeStart-=i.formatted.indexOf(a)),i.formatted=a+be(e.endOfLine)}let s=e[Symbol.for("comments")];if(e.cursorOffset>=0){let a,D,c,F,f;if(e.cursorNode&&i.cursorNodeText?(a=e.locStart(e.cursorNode),D=o.slice(a,e.locEnd(e.cursorNode)),c=e.cursorOffset-a,F=i.cursorNodeStart,f=i.cursorNodeText):(a=0,D=o,c=e.cursorOffset,F=0,f=i.formatted),D===f)return{formatted:i.formatted,cursorOffset:F+c,comments:s};let d=D.split("");d.splice(c,0,$n);let l=f.split(""),p=(0,Wn.diffArrays)(d,l),m=F;for(let E of p)if(E.removed){if(E.value.includes($n))break}else m+=E.count;return{formatted:i.formatted,cursorOffset:m,comments:s}}return{formatted:i.formatted,cursorOffset:-1,comments:s}}async function No(t,e){let{ast:r,text:n}=await ae(t,e),{rangeStart:o,rangeEnd:u}=jn(n,e,r),i=n.slice(o,u),s=Math.min(o,n.lastIndexOf(` +`,o)+1),a=n.slice(s,o).match(/^\s*/)[0],D=pe(a,e.tabWidth),c=await Gn(i,{...e,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:e.cursorOffset>o&&e.cursorOffset<=u?e.cursorOffset-o:-1,endOfLine:"lf"},D),F=c.formatted.trimEnd(),{cursorOffset:f}=e;f>u?f+=F.length-i.length:c.cursorOffset>=0&&(f=c.cursorOffset+o);let d=n.slice(0,o)+F+n.slice(u);if(e.endOfLine!=="lf"){let l=be(e.endOfLine);f>=0&&l===`\r +`&&(f+=At(d.slice(0,f),` +`)),d=ee(!1,d,` +`,l)}return{formatted:d,cursorOffset:f,comments:c.comments}}function Jt(t,e,r){return typeof e!="number"||Number.isNaN(e)||e<0||e>t.length?r:e}function Un(t,e){let{cursorOffset:r,rangeStart:n,rangeEnd:o}=e;return r=Jt(t,r,-1),n=Jt(t,n,0),o=Jt(t,o,t.length),{...e,cursorOffset:r,rangeStart:n,rangeEnd:o}}function Kn(t,e){let{cursorOffset:r,rangeStart:n,rangeEnd:o,endOfLine:u}=Un(t,e),i=t.charAt(0)===zn;if(i&&(t=t.slice(1),r--,n--,o--),u==="auto"&&(u=Cr(t)),t.includes("\r")){let s=a=>At(t.slice(0,Math.max(a,0)),`\r +`);r-=s(r),n-=s(n),o-=s(o),t=gr(t)}return{hasBOM:i,text:t,options:Un(t,{...e,cursorOffset:r,rangeStart:n,rangeEnd:o,endOfLine:u})}}async function Mn(t,e){let r=await ft(e);return!r.hasPragma||r.hasPragma(t)}async function Xt(t,e){let{hasBOM:r,text:n,options:o}=Kn(t,await re(e));if(o.rangeStart>=o.rangeEnd&&n!==""||o.requirePragma&&!await Mn(n,o))return{formatted:t,cursorOffset:e.cursorOffset,comments:[]};let u;return o.rangeStart>0||o.rangeEnd=0&&u.cursorOffset++),u}async function Hn(t,e,r){let{text:n,options:o}=Kn(t,await re(e)),u=await ae(n,o);return r&&(r.preprocessForPrint&&(u.ast=await Ht(u.ast,o)),r.massage&&(u.ast=cn(u.ast,o))),u}async function qn(t,e){e=await re(e);let r=await je(t,e);return fe(r,e)}async function Jn(t,e){let r=Sr(t),{formatted:n}=await Xt(r,{...e,parser:"__js_expression"});return n}async function Xn(t,e){e=await re(e);let{ast:r}=await ae(t,e);return je(r,e)}async function Zn(t,e){return fe(t,await re(e))}var Qt={};Me(Qt,{addDanglingComment:()=>X,addLeadingComment:()=>ne,addTrailingComment:()=>ue,getAlignmentSize:()=>pe,getIndentSize:()=>eu,getMaxContinuousCount:()=>Qn,getNextNonSpaceNonCommentCharacter:()=>nu,getNextNonSpaceNonCommentCharacterIndex:()=>Mo,getStringWidth:()=>we,hasNewline:()=>V,hasNewlineInRange:()=>tu,hasSpaces:()=>ru,isNextLineEmpty:()=>Ko,isNextLineEmptyAfterIndex:()=>ht,isPreviousLineEmpty:()=>zo,makeString:()=>uu,skip:()=>me,skipEverythingButNewLine:()=>mt,skipInlineComment:()=>Ee,skipNewline:()=>Y,skipSpaces:()=>N,skipToLineEnd:()=>Ft,skipTrailingComment:()=>he,skipWhitespace:()=>xn});function So(t,e){if(e===!1)return!1;if(t.charAt(e)==="/"&&t.charAt(e+1)==="*"){for(let r=e+2;rMath.max(n,o.length/e.length),0)}var Qn=Io;function Ro(t,e){let r=t.lastIndexOf(` +`);return r===-1?0:pe(t.slice(r+1).match(/^[\t ]*/)[0],e)}var eu=Ro;function Yo(t,e,r){for(let n=e;ns===n?s:a===e?"\\"+a:a||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(s)?s:"\\"+s));return e+u+e}var uu=$o;function Uo(t,e,r){return Ve(t,r(e))}function Mo(t,e){return arguments.length===2||typeof e=="number"?Ve(t,e):Uo(...arguments)}function Wo(t,e,r){return Ye(t,r(e))}function zo(t,e){return arguments.length===2||typeof e=="number"?Ye(t,e):Wo(...arguments)}function Go(t,e,r){return ht(t,r(e))}function Ko(t,e){return arguments.length===2||typeof e=="number"?ht(t,e):Go(...arguments)}var er={};Me(er,{builders:()=>Ho,printer:()=>qo,utils:()=>Jo});var Ho={join:ke,line:Ke,softline:Er,hardline:G,literalline:He,group:xt,conditionalGroup:fr,fill:Ge,lineSuffix:_e,lineSuffixBoundary:Fr,cursor:Be,breakParent:le,ifBreak:pr,trim:mr,indent:ie,indentIfBreak:dr,align:oe,addAlignmentToDoc:qe,markAsRoot:cr,dedentToRoot:Dr,dedent:lr,hardlineWithoutBreakParent:Ae,literallineWithoutBreakParent:_t,label:hr,concat:t=>t},qo={printDocToString:fe},Jo={willBreak:kr,traverseDoc:xe,findInDoc:Je,mapDoc:Ne,removeLines:wr,stripTrailingHardline:Xe,replaceEndOfLine:Or,canBreak:Nr};var ou="3.0.3";function De(t,e=1){return async(...r)=>{let n=r[e]??{},o=n.plugins??[];return r[e]={...n,plugins:Array.isArray(o)?o:Object.values(o)},t(...r)}}var iu=De(Xt);async function su(t,e){let{formatted:r}=await iu(t,{...e,cursorOffset:-1});return r}async function Xo(t,e){return await su(t,e)===t}var Zo=De(et,0),Qo={parse:De(Hn),formatAST:De(qn),formatDoc:De(Jn),printToDoc:De(Xn),printDocToString:De(Zn)};var Uc=tr;export{Qo as __debug,Xo as check,Uc as default,er as doc,su as format,iu as formatWithCursor,Zo as getSupportInfo,Qt as util,ou as version}; diff --git a/node_modules/typescript/lib/lib.decorators.d.ts b/node_modules/typescript/lib/lib.decorators.d.ts index 2d2b4ee..11a8ca6 100644 --- a/node_modules/typescript/lib/lib.decorators.d.ts +++ b/node_modules/typescript/lib/lib.decorators.d.ts @@ -35,6 +35,11 @@ type DecoratorContext = | ClassMemberDecoratorContext ; +type DecoratorMetadataObject = Record & object; + +type DecoratorMetadata = + typeof globalThis extends { Symbol: { readonly metadata: symbol } } ? DecoratorMetadataObject : DecoratorMetadataObject | undefined; + /** * Context provided to a class decorator. * @template Class The type of the decorated class associated with this context. @@ -66,6 +71,8 @@ interface ClassDecoratorContext< * ``` */ addInitializer(initializer: (this: Class) => void): void; + + readonly metadata: DecoratorMetadata; } /** @@ -130,6 +137,8 @@ interface ClassMethodDecoratorContext< * ``` */ addInitializer(initializer: (this: This) => void): void; + + readonly metadata: DecoratorMetadata; } /** @@ -175,6 +184,8 @@ interface ClassGetterDecoratorContext< * decorating a non-`static` element). */ addInitializer(initializer: (this: This) => void): void; + + readonly metadata: DecoratorMetadata; } /** @@ -220,6 +231,8 @@ interface ClassSetterDecoratorContext< * decorating a non-`static` element). */ addInitializer(initializer: (this: This) => void): void; + + readonly metadata: DecoratorMetadata; } /** @@ -274,6 +287,8 @@ interface ClassAccessorDecoratorContext< * decorating a non-`static` element). */ addInitializer(initializer: (this: This) => void): void; + + readonly metadata: DecoratorMetadata; } /** @@ -369,4 +384,6 @@ interface ClassFieldDecoratorContext< * decorating a non-`static` element). */ addInitializer(initializer: (this: This) => void): void; + + readonly metadata: DecoratorMetadata; } diff --git a/node_modules/typescript/lib/lib.dom.d.ts b/node_modules/typescript/lib/lib.dom.d.ts index da240cc..91596a0 100644 --- a/node_modules/typescript/lib/lib.dom.d.ts +++ b/node_modules/typescript/lib/lib.dom.d.ts @@ -750,6 +750,7 @@ interface Keyframe { interface KeyframeAnimationOptions extends KeyframeEffectOptions { id?: string; + timeline?: AnimationTimeline | null; } interface KeyframeEffectOptions extends EffectTiming { @@ -1034,7 +1035,7 @@ interface NotificationOptions { lang?: string; renotify?: boolean; requireInteraction?: boolean; - silent?: boolean; + silent?: boolean | null; tag?: string; timestamp?: EpochTimeStamp; vibrate?: VibratePattern; @@ -1351,7 +1352,6 @@ interface RTCEncodedAudioFrameMetadata { } interface RTCEncodedVideoFrameMetadata { - contributingSources?: number[]; dependencies?: number[]; frameId?: number; height?: number; @@ -1871,8 +1871,13 @@ interface TextDecoderOptions { } interface TextEncoderEncodeIntoResult { - read?: number; - written?: number; + read: number; + written: number; +} + +interface ToggleEventInit extends EventInit { + newState?: string; + oldState?: string; } interface TouchEventInit extends EventModifierInit { @@ -2105,6 +2110,32 @@ interface WebGLContextEventInit extends EventInit { statusMessage?: string; } +interface WebTransportCloseInfo { + closeCode?: number; + reason?: string; +} + +interface WebTransportErrorOptions { + source?: WebTransportErrorSource; + streamErrorCode?: number | null; +} + +interface WebTransportHash { + algorithm?: string; + value?: BufferSource; +} + +interface WebTransportOptions { + allowPooling?: boolean; + congestionControl?: WebTransportCongestionControl; + requireUnreliable?: boolean; + serverCertificateHashes?: WebTransportHash[]; +} + +interface WebTransportSendStreamOptions { + sendOrder?: number | null; +} + interface WheelEventInit extends MouseEventInit { deltaMode?: number; deltaX?: number; @@ -2304,9 +2335,9 @@ interface AbortSignal extends EventTarget { declare var AbortSignal: { prototype: AbortSignal; new(): AbortSignal; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */ abort(reason?: any): AbortSignal; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */ timeout(milliseconds: number): AbortSignal; }; @@ -3344,7 +3375,7 @@ interface CSSImportRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/media) */ readonly media: MediaList; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/styleSheet) */ - readonly styleSheet: CSSStyleSheet; + readonly styleSheet: CSSStyleSheet | null; } declare var CSSImportRule: { @@ -3377,6 +3408,7 @@ declare var CSSKeyframeRule: { interface CSSKeyframesRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/cssRules) */ readonly cssRules: CSSRuleList; + readonly length: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/name) */ name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/appendRule) */ @@ -3597,7 +3629,7 @@ interface CSSNumericValue extends CSSStyleValue { declare var CSSNumericValue: { prototype: CSSNumericValue; new(): CSSNumericValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/parse) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/parse_static) */ parse(cssText: string): CSSNumericValue; }; @@ -4108,8 +4140,11 @@ interface CSSStyleDeclaration { fontStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis) */ fontSynthesis: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-small-caps) */ fontSynthesisSmallCaps: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-style) */ fontSynthesisStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-weight) */ fontSynthesisWeight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant) */ fontVariant: string; @@ -4129,6 +4164,8 @@ interface CSSStyleDeclaration { fontVariationSettings: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-weight) */ fontWeight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/forced-color-adjust) */ + forcedColorAdjust: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/gap) */ gap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid) */ @@ -4996,12 +5033,15 @@ declare var CSSStyleDeclaration: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule) */ interface CSSStyleRule extends CSSRule { + readonly cssRules: CSSRuleList; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/selectorText) */ selectorText: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style) */ readonly style: CSSStyleDeclaration; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/styleMap) */ readonly styleMap: StylePropertyMap; + deleteRule(index: number): void; + insertRule(rule: string, index?: number): number; } declare var CSSStyleRule: { @@ -5060,9 +5100,9 @@ interface CSSStyleValue { declare var CSSStyleValue: { prototype: CSSStyleValue; new(): CSSStyleValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parse) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parse_static) */ parse(property: string, cssText: string): CSSStyleValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parseAll) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parseAll_static) */ parseAll(property: string, cssText: string): CSSStyleValue[]; }; @@ -5438,6 +5478,8 @@ interface CanvasShadowStyles { } interface CanvasState { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */ + reset(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */ restore(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/save) */ @@ -5623,8 +5665,6 @@ declare var ClipboardEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem) */ interface ClipboardItem { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/presentationStyle) */ - readonly presentationStyle: PresentationStyle; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/types) */ readonly types: ReadonlyArray; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/getType) */ @@ -6174,7 +6214,7 @@ interface DOMPoint extends DOMPointReadOnly { declare var DOMPoint: { prototype: DOMPoint; new(x?: number, y?: number, z?: number, w?: number): DOMPoint; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static) */ fromPoint(other?: DOMPointInit): DOMPoint; }; @@ -6200,7 +6240,7 @@ interface DOMPointReadOnly { declare var DOMPointReadOnly: { prototype: DOMPointReadOnly; new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static) */ fromPoint(other?: DOMPointInit): DOMPointReadOnly; }; @@ -6278,7 +6318,7 @@ interface DOMRectReadOnly { declare var DOMRectReadOnly: { prototype: DOMRectReadOnly; new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static) */ fromRect(other?: DOMRectInit): DOMRectReadOnly; }; @@ -7118,6 +7158,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent; createEvent(eventInterface: "StorageEvent"): StorageEvent; createEvent(eventInterface: "SubmitEvent"): SubmitEvent; + createEvent(eventInterface: "ToggleEvent"): ToggleEvent; createEvent(eventInterface: "TouchEvent"): TouchEvent; createEvent(eventInterface: "TrackEvent"): TrackEvent; createEvent(eventInterface: "TransitionEvent"): TransitionEvent; @@ -8865,6 +8906,7 @@ interface GlobalEventHandlersEventMap { "reset": Event; "resize": UIEvent; "scroll": Event; + "scrollend": Event; "securitypolicyviolation": SecurityPolicyViolationEvent; "seeked": Event; "seeking": Event; @@ -9037,7 +9079,7 @@ interface GlobalEventHandlers { * Fires when an error occurs during object loading. * @param ev The event. * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/error_event) + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) */ onerror: OnErrorEventHandler; /** @@ -9215,6 +9257,8 @@ interface GlobalEventHandlers { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event) */ onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollend_event) */ + onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event) */ onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null; /** @@ -9636,7 +9680,7 @@ declare var HTMLBodyElement: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement) */ -interface HTMLButtonElement extends HTMLElement { +interface HTMLButtonElement extends HTMLElement, PopoverInvokerElement { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/disabled) */ disabled: boolean; /** @@ -10032,6 +10076,8 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit readonly offsetWidth: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/outerText) */ outerText: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/popover) */ + popover: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/spellcheck) */ spellcheck: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/title) */ @@ -10041,6 +10087,12 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit attachInternals(): ElementInternals; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/click) */ click(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidePopover) */ + hidePopover(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/showPopover) */ + showPopover(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/togglePopover) */ + togglePopover(force?: boolean): void; addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -10232,7 +10284,7 @@ interface HTMLFormElement extends HTMLElement { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/autocomplete) */ - autocomplete: string; + autocomplete: AutoFillBase; /** * Retrieves a collection, in source order, of all controls in a given form. * @@ -10885,7 +10937,7 @@ declare var HTMLImageElement: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement) */ -interface HTMLInputElement extends HTMLElement { +interface HTMLInputElement extends HTMLElement, PopoverInvokerElement { /** Sets or retrieves a comma-separated list of content types. */ accept: string; /** @@ -10900,7 +10952,7 @@ interface HTMLInputElement extends HTMLElement { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/autocomplete) */ - autocomplete: string; + autocomplete: AutoFill; capture: string; /** Sets or retrieves the state of the check box or radio button. */ checked: boolean; @@ -12270,7 +12322,7 @@ interface HTMLScriptElement extends HTMLElement { declare var HTMLScriptElement: { prototype: HTMLScriptElement; new(): HTMLScriptElement; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/supports) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/supports_static) */ supports(type: string): boolean; }; @@ -12281,7 +12333,7 @@ declare var HTMLScriptElement: { */ interface HTMLSelectElement extends HTMLElement { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/autocomplete) */ - autocomplete: string; + autocomplete: AutoFill; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/disabled) */ disabled: boolean; /** @@ -13083,7 +13135,7 @@ declare var HTMLTemplateElement: { */ interface HTMLTextAreaElement extends HTMLElement { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/autocomplete) */ - autocomplete: string; + autocomplete: AutoFill; /** Sets or retrieves the width of the object. */ cols: number; /** Sets or retrieves the initial contents of the object. */ @@ -13391,6 +13443,8 @@ interface Headers { delete(name: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get) */ get(name: string): string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie) */ + getSetCookie(): string[]; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has) */ has(name: string): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set) */ @@ -13768,25 +13822,25 @@ declare var IDBKeyRange: { /** * Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range. * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/bound) + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/bound_static) */ bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange; /** * Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range. * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerBound) + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerBound_static) */ lowerBound(lower: any, open?: boolean): IDBKeyRange; /** * Returns a new IDBKeyRange spanning only key. * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/only) + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/only_static) */ only(value: any): IDBKeyRange; /** * Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range. * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperBound) + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperBound_static) */ upperBound(upper: any, open?: boolean): IDBKeyRange; }; @@ -14229,6 +14283,8 @@ interface InnerHTML { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputDeviceInfo) */ interface InputDeviceInfo extends MediaDeviceInfo { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputDeviceInfo/getCapabilities) */ + getCapabilities(): MediaTrackCapabilities; } declare var InputDeviceInfo: { @@ -15111,7 +15167,7 @@ interface MediaRecorder extends EventTarget { declare var MediaRecorder: { prototype: MediaRecorder; new(stream: MediaStream, options?: MediaRecorderOptions): MediaRecorder; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/isTypeSupported) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/isTypeSupported_static) */ isTypeSupported(type: string): boolean; }; @@ -15177,7 +15233,7 @@ interface MediaSource extends EventTarget { declare var MediaSource: { prototype: MediaSource; new(): MediaSource; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/isTypeSupported) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/isTypeSupported_static) */ isTypeSupported(type: string): boolean; }; @@ -16342,6 +16398,8 @@ interface Notification extends EventTarget { onerror: ((this: Notification, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */ onshow: ((this: Notification, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent) */ + readonly silent: boolean | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) */ readonly tag: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/title) */ @@ -16357,9 +16415,9 @@ interface Notification extends EventTarget { declare var Notification: { prototype: Notification; new(title: string, options?: NotificationOptions): Notification; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/permission) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/permission_static) */ readonly permission: NotificationPermission; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requestPermission) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requestPermission_static) */ requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise; }; @@ -17099,7 +17157,7 @@ interface PerformanceObserver { declare var PerformanceObserver: { prototype: PerformanceObserver; new(callback: PerformanceObserverCallback): PerformanceObserver; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/supportedEntryTypes) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/supportedEntryTypes_static) */ readonly supportedEntryTypes: ReadonlyArray; }; @@ -17577,6 +17635,13 @@ declare var PopStateEvent: { new(type: string, eventInitDict?: PopStateEventInit): PopStateEvent; }; +interface PopoverInvokerElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/popoverTargetAction) */ + popoverTargetAction: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/popoverTargetElement) */ + popoverTargetElement: Element | null; +} + /** * A processing instruction embeds application-specific instructions in XML which can be ignored by other applications that don't recognize them. * @@ -17645,7 +17710,7 @@ declare var PublicKeyCredential: { prototype: PublicKeyCredential; new(): PublicKeyCredential; isConditionalMediationAvailable(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isUserVerifyingPlatformAuthenticatorAvailable) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isUserVerifyingPlatformAuthenticatorAvailable_static) */ isUserVerifyingPlatformAuthenticatorAvailable(): Promise; }; @@ -17667,7 +17732,7 @@ interface PushManager { declare var PushManager: { prototype: PushManager; new(): PushManager; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/supportedContentEncodings) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/supportedContentEncodings_static) */ readonly supportedContentEncodings: ReadonlyArray; }; @@ -18112,7 +18177,7 @@ interface RTCPeerConnection extends EventTarget { declare var RTCPeerConnection: { prototype: RTCPeerConnection; new(configuration?: RTCConfiguration): RTCPeerConnection; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/generateCertificate) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/generateCertificate_static) */ generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise; }; @@ -18172,7 +18237,7 @@ interface RTCRtpReceiver { declare var RTCRtpReceiver: { prototype: RTCRtpReceiver; new(): RTCRtpReceiver; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getCapabilities) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getCapabilities_static) */ getCapabilities(kind: string): RTCRtpCapabilities | null; }; @@ -18203,7 +18268,7 @@ interface RTCRtpSender { declare var RTCRtpSender: { prototype: RTCRtpSender; new(): RTCRtpSender; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getCapabilities) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getCapabilities_static) */ getCapabilities(kind: string): RTCRtpCapabilities | null; }; @@ -18748,9 +18813,11 @@ interface Response extends Body { declare var Response: { prototype: Response; new(body?: BodyInit | null, init?: ResponseInit): Response; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static) */ error(): Response; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/json_static) */ + json(data: any, init?: ResponseInit): Response; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect_static) */ redirect(url: string | URL, status?: number): Response; }; @@ -20915,8 +20982,6 @@ interface ScreenOrientation extends EventTarget { onchange: ((this: ScreenOrientation, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/type) */ readonly type: OrientationType; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/lock) */ - lock(orientation: OrientationLockType): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/unlock) */ unlock(): void; addEventListener(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; @@ -21110,7 +21175,6 @@ interface ServiceWorkerContainer extends EventTarget { oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) */ onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/messageerror_event) */ onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready) */ readonly ready: Promise; @@ -21847,7 +21911,7 @@ interface TextDecoder extends TextDecoderCommon { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode) */ - decode(input?: BufferSource, options?: TextDecodeOptions): string; + decode(input?: AllowSharedBufferSource, options?: TextDecodeOptions): string; } declare var TextDecoder: { @@ -22229,6 +22293,19 @@ declare var TimeRanges: { new(): TimeRanges; }; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent) */ +interface ToggleEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/newState) */ + readonly newState: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState) */ + readonly oldState: string; +} + +declare var ToggleEvent: { + prototype: ToggleEvent; + new(type: string, eventInitDict?: ToggleEventInit): ToggleEvent; +}; + /** * A single contact point on a touch-sensitive device. The contact point is commonly a finger or stylus and the device may be a touchscreen or trackpad. * @@ -22481,9 +22558,11 @@ interface URL { declare var URL: { prototype: URL; new(url: string | URL, base?: string | URL): URL; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) */ + canParse(url: string | URL, base?: string): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) */ createObjectURL(obj: Blob | MediaSource): string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static) */ revokeObjectURL(url: string): void; }; @@ -22492,6 +22571,8 @@ declare var webkitURL: typeof URL; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams) */ interface URLSearchParams { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size) */ + readonly size: number; /** * Appends a specified key/value pair as a new search parameter. * @@ -22503,7 +22584,7 @@ interface URLSearchParams { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete) */ - delete(name: string): void; + delete(name: string, value?: string): void; /** * Returns the first value associated to the given search parameter. * @@ -22521,7 +22602,7 @@ interface URLSearchParams { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has) */ - has(name: string): boolean; + has(name: string, value?: string): boolean; /** * Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. * @@ -22621,6 +22702,7 @@ declare var VTTRegion: { interface ValidityState { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/badInput) */ readonly badInput: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/customError) */ readonly customError: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/patternMismatch) */ readonly patternMismatch: boolean; @@ -22636,7 +22718,9 @@ interface ValidityState { readonly tooShort: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/typeMismatch) */ readonly typeMismatch: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/valid) */ readonly valid: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/valueMissing) */ readonly valueMissing: boolean; } @@ -25351,6 +25435,96 @@ declare var WebSocket: { readonly CLOSED: 3; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport) + */ +interface WebTransport { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */ + readonly closed: Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ + readonly datagrams: WebTransportDatagramDuplexStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingBidirectionalStreams) */ + readonly incomingBidirectionalStreams: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ + readonly incomingUnidirectionalStreams: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */ + readonly ready: Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/close) */ + close(closeInfo?: WebTransportCloseInfo): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ + createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */ + createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise; +} + +declare var WebTransport: { + prototype: WebTransport; + new(url: string | URL, options?: WebTransportOptions): WebTransport; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream) + */ +interface WebTransportBidirectionalStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/readable) */ + readonly readable: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/writable) */ + readonly writable: WritableStream; +} + +declare var WebTransportBidirectionalStream: { + prototype: WebTransportBidirectionalStream; + new(): WebTransportBidirectionalStream; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream) + */ +interface WebTransportDatagramDuplexStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark) */ + incomingHighWaterMark: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */ + incomingMaxAge: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize) */ + readonly maxDatagramSize: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark) */ + outgoingHighWaterMark: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */ + outgoingMaxAge: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable) */ + readonly readable: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ + readonly writable: WritableStream; +} + +declare var WebTransportDatagramDuplexStream: { + prototype: WebTransportDatagramDuplexStream; + new(): WebTransportDatagramDuplexStream; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError) + */ +interface WebTransportError extends DOMException { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/source) */ + readonly source: WebTransportErrorSource; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/streamErrorCode) */ + readonly streamErrorCode: number | null; +} + +declare var WebTransportError: { + prototype: WebTransportError; + new(message?: string, options?: WebTransportErrorOptions): WebTransportError; +}; + /** * Events that occur due to the user moving a mouse wheel or similar input device. * @@ -26294,96 +26468,120 @@ declare var console: Console; /** Holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface. */ declare namespace CSS { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/Hz) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function Hz(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/Q) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function Q(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/ch) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function ch(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/cm) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function cm(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function cqb(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function cqh(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function cqi(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function cqmax(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function cqmin(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function cqw(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/deg) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function deg(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/dpcm) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function dpcm(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/dpi) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function dpi(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/dppx) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function dppx(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function dvb(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function dvh(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function dvi(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function dvmax(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function dvmin(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function dvw(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/em) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function em(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/escape) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/escape_static) */ function escape(ident: string): string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/ex) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function ex(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/fr) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function fr(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/grad) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function grad(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/kHz) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function kHz(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function lvb(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function lvh(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function lvi(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function lvmax(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function lvmin(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function lvw(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/mm) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function mm(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/ms) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function ms(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/number) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function number(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/pc) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function pc(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/percent) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function percent(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/pt) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function pt(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/px) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function px(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/rad) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function rad(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/registerProperty) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/registerProperty_static) */ function registerProperty(definition: PropertyDefinition): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/rem) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function rem(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/s) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function s(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/supports) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/supports_static) */ function supports(property: string, value: string): boolean; function supports(conditionText: string): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function svb(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function svh(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function svi(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function svmax(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function svmin(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function svw(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/turn) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function turn(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/vb) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function vb(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/vh) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function vh(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/vi) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function vi(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/vmax) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function vmax(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/vmin) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function vmin(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/vw) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function vw(value: number): CSSUnitValue; } @@ -26398,16 +26596,16 @@ declare namespace WebAssembly { }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global) */ - interface Global { + interface Global { /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global/value) */ - value: any; + value: ValueTypeMap[T]; /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global/valueOf) */ - valueOf(): any; + valueOf(): ValueTypeMap[T]; } var Global: { prototype: Global; - new(descriptor: GlobalDescriptor, v?: any): Global; + new(descriptor: GlobalDescriptor, v?: ValueTypeMap[T]): Global; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance) */ @@ -26484,9 +26682,9 @@ declare namespace WebAssembly { new(descriptor: TableDescriptor, value?: any): Table; }; - interface GlobalDescriptor { + interface GlobalDescriptor { mutable?: boolean; - value: ValueType; + value: T; } interface MemoryDescriptor { @@ -26512,6 +26710,16 @@ declare namespace WebAssembly { maximum?: number; } + interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; + } + interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; @@ -26519,12 +26727,12 @@ declare namespace WebAssembly { type ImportExportKind = "function" | "global" | "memory" | "table"; type TableKind = "anyfunc" | "externref"; - type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128"; type ExportValue = Function | Global | Memory | Table; type Exports = Record; type ImportValue = ExportValue | number; type Imports = Record; type ModuleImports = Record; + type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/compile) */ function compile(bytes: BufferSource): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/compileStreaming) */ @@ -27368,7 +27576,7 @@ declare var onended: ((this: Window, ev: Event) => any) | null; * Fires when an error occurs during object loading. * @param ev The event. * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/error_event) + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) */ declare var onerror: OnErrorEventHandler; /** @@ -27546,6 +27754,8 @@ declare var onresize: ((this: Window, ev: UIEvent) => any) | null; * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event) */ declare var onscroll: ((this: Window, ev: Event) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollend_event) */ +declare var onscrollend: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event) */ declare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null; /** @@ -27742,6 +27952,10 @@ declare function addEventListener(type: string, listener: EventListenerOrEventLi declare function removeEventListener(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void; declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; type AlgorithmIdentifier = Algorithm | string; +type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView; +type AutoFill = AutoFillBase | `${OptionalPrefixToken}${OptionalPrefixToken}${AutoFillField}${OptionalPostfixToken}`; +type AutoFillField = AutoFillNormalField | `${OptionalPrefixToken}${AutoFillContactField}`; +type AutoFillSection = `section-${string}`; type BigInteger = Uint8Array; type BinaryData = ArrayBuffer | ArrayBufferView; type BlobPart = BufferSource | Blob | string; @@ -27792,6 +28006,8 @@ type NamedCurve = string; type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext; type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null; type OnErrorEventHandler = OnErrorEventHandlerNonNull | null; +type OptionalPostfixToken = ` ${T}` | ""; +type OptionalPrefixToken = `${T} ` | ""; type PerformanceEntryList = PerformanceEntry[]; type ReadableStreamController = ReadableStreamDefaultController | ReadableByteStreamController; type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableStreamReadDoneResult; @@ -27816,6 +28032,12 @@ type AudioContextLatencyCategory = "balanced" | "interactive" | "playback"; type AudioContextState = "closed" | "running" | "suspended"; type AuthenticatorAttachment = "cross-platform" | "platform"; type AuthenticatorTransport = "ble" | "hybrid" | "internal" | "nfc" | "usb"; +type AutoFillAddressKind = "billing" | "shipping"; +type AutoFillBase = "" | "off" | "on"; +type AutoFillContactField = "email" | "tel" | "tel-area-code" | "tel-country-code" | "tel-extension" | "tel-local" | "tel-local-prefix" | "tel-local-suffix" | "tel-national"; +type AutoFillContactKind = "home" | "mobile" | "work"; +type AutoFillCredentialField = "webauthn"; +type AutoFillNormalField = "additional-name" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "address-line1" | "address-line2" | "address-line3" | "bday-day" | "bday-month" | "bday-year" | "cc-csc" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-family-name" | "cc-given-name" | "cc-name" | "cc-number" | "cc-type" | "country" | "country-name" | "current-password" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "name" | "new-password" | "one-time-code" | "organization" | "postal-code" | "street-address" | "transaction-amount" | "transaction-currency" | "username"; type AutoKeyword = "auto"; type AutomationRate = "a-rate" | "k-rate"; type AvcBitstreamFormat = "annexb" | "avc"; @@ -27898,7 +28120,6 @@ type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload" type NotificationDirection = "auto" | "ltr" | "rtl"; type NotificationPermission = "default" | "denied" | "granted"; type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu"; -type OrientationLockType = "any" | "landscape" | "landscape-primary" | "landscape-secondary" | "natural" | "portrait" | "portrait-primary" | "portrait-secondary"; type OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary"; type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle"; type OverSampleType = "2x" | "4x" | "none"; @@ -27936,7 +28157,7 @@ type RTCSctpTransportState = "closed" | "connected" | "connecting"; type RTCSdpType = "answer" | "offer" | "pranswer" | "rollback"; type RTCSignalingState = "closed" | "have-local-offer" | "have-local-pranswer" | "have-remote-offer" | "have-remote-pranswer" | "stable"; type RTCStatsIceCandidatePairState = "failed" | "frozen" | "in-progress" | "inprogress" | "succeeded" | "waiting"; -type RTCStatsType = "candidate-pair" | "certificate" | "codec" | "data-channel" | "inbound-rtp" | "local-candidate" | "media-source" | "outbound-rtp" | "peer-connection" | "remote-candidate" | "remote-inbound-rtp" | "remote-outbound-rtp" | "track" | "transport"; +type RTCStatsType = "candidate-pair" | "certificate" | "codec" | "data-channel" | "inbound-rtp" | "local-candidate" | "media-source" | "outbound-rtp" | "peer-connection" | "remote-candidate" | "remote-inbound-rtp" | "remote-outbound-rtp" | "transport"; type ReadableStreamReaderMode = "byob"; type ReadableStreamType = "bytes"; type ReadyState = "closed" | "ended" | "open"; @@ -27976,6 +28197,8 @@ type VideoPixelFormat = "BGRA" | "BGRX" | "I420" | "I420A" | "I422" | "I444" | " type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m"; type WakeLockType = "screen"; type WebGLPowerPreference = "default" | "high-performance" | "low-power"; +type WebTransportCongestionControl = "default" | "low-latency" | "throughput"; +type WebTransportErrorSource = "session" | "stream"; type WorkerType = "classic" | "module"; type WriteCommandType = "seek" | "truncate" | "write"; type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text"; diff --git a/node_modules/typescript/lib/lib.es2015.collection.d.ts b/node_modules/typescript/lib/lib.es2015.collection.d.ts index b97201a..f94c485 100644 --- a/node_modules/typescript/lib/lib.es2015.collection.d.ts +++ b/node_modules/typescript/lib/lib.es2015.collection.d.ts @@ -60,7 +60,7 @@ interface ReadonlyMap { readonly size: number; } -interface WeakMap { +interface WeakMap { /** * Removes the specified element from the WeakMap. * @returns true if the element was successfully removed, or false if it was not present. @@ -76,14 +76,14 @@ interface WeakMap { has(key: K): boolean; /** * Adds a new element with a specified key and value. - * @param key Must be an object. + * @param key Must be an object or symbol. */ set(key: K, value: V): this; } interface WeakMapConstructor { - new (entries?: readonly (readonly [K, V])[] | null): WeakMap; - readonly prototype: WeakMap; + new (entries?: readonly (readonly [K, V])[] | null): WeakMap; + readonly prototype: WeakMap; } declare var WeakMap: WeakMapConstructor; @@ -125,9 +125,9 @@ interface ReadonlySet { readonly size: number; } -interface WeakSet { +interface WeakSet { /** - * Appends a new object to the end of the WeakSet. + * Appends a new value to the end of the WeakSet. */ add(value: T): this; /** @@ -136,13 +136,13 @@ interface WeakSet { */ delete(value: T): boolean; /** - * @returns a boolean indicating whether an object exists in the WeakSet or not. + * @returns a boolean indicating whether a value exists in the WeakSet or not. */ has(value: T): boolean; } interface WeakSetConstructor { - new (values?: readonly T[] | null): WeakSet; - readonly prototype: WeakSet; + new (values?: readonly T[] | null): WeakSet; + readonly prototype: WeakSet; } declare var WeakSet: WeakSetConstructor; diff --git a/node_modules/typescript/lib/lib.es2015.core.d.ts b/node_modules/typescript/lib/lib.es2015.core.d.ts index 1ca098d..ecd2e02 100644 --- a/node_modules/typescript/lib/lib.es2015.core.d.ts +++ b/node_modules/typescript/lib/lib.es2015.core.d.ts @@ -56,10 +56,10 @@ interface Array { * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. If start is omitted, `0` is used. + * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ - copyWithin(target: number, start?: number, end?: number): this; + copyWithin(target: number, start: number, end?: number): this; } interface ArrayConstructor { diff --git a/node_modules/typescript/lib/lib.es2015.iterable.d.ts b/node_modules/typescript/lib/lib.es2015.iterable.d.ts index 31be935..7aa2601 100644 --- a/node_modules/typescript/lib/lib.es2015.iterable.d.ts +++ b/node_modules/typescript/lib/lib.es2015.iterable.d.ts @@ -159,10 +159,10 @@ interface MapConstructor { new (iterable?: Iterable | null): Map; } -interface WeakMap { } +interface WeakMap { } interface WeakMapConstructor { - new (iterable: Iterable): WeakMap; + new (iterable: Iterable): WeakMap; } interface Set { @@ -207,10 +207,10 @@ interface SetConstructor { new (iterable?: Iterable | null): Set; } -interface WeakSet { } +interface WeakSet { } interface WeakSetConstructor { - new (iterable: Iterable): WeakSet; + new (iterable: Iterable): WeakSet; } interface Promise { } diff --git a/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts b/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts index f2d9b4f..06bcc35 100644 --- a/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +++ b/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts @@ -137,7 +137,7 @@ interface Map { readonly [Symbol.toStringTag]: string; } -interface WeakMap { +interface WeakMap { readonly [Symbol.toStringTag]: string; } @@ -145,7 +145,7 @@ interface Set { readonly [Symbol.toStringTag]: string; } -interface WeakSet { +interface WeakSet { readonly [Symbol.toStringTag]: string; } diff --git a/node_modules/typescript/lib/lib.es2017.d.ts b/node_modules/typescript/lib/lib.es2017.d.ts index bbeabf4..e0bd4ee 100644 --- a/node_modules/typescript/lib/lib.es2017.d.ts +++ b/node_modules/typescript/lib/lib.es2017.d.ts @@ -22,3 +22,4 @@ and limitations under the License. /// /// /// +/// diff --git a/node_modules/typescript/lib/lib.es2020.bigint.d.ts b/node_modules/typescript/lib/lib.es2020.bigint.d.ts index f7727a6..73df22e 100644 --- a/node_modules/typescript/lib/lib.es2020.bigint.d.ts +++ b/node_modules/typescript/lib/lib.es2020.bigint.d.ts @@ -165,10 +165,10 @@ interface BigInt64Array { * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. If start is omitted, `0` is used. + * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ - copyWithin(target: number, start?: number, end?: number): this; + copyWithin(target: number, start: number, end?: number): this; /** Yields index, value pairs for every entry in the array. */ entries(): IterableIterator<[number, bigint]>; @@ -437,10 +437,10 @@ interface BigUint64Array { * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. If start is omitted, `0` is used. + * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ - copyWithin(target: number, start?: number, end?: number): this; + copyWithin(target: number, start: number, end?: number): this; /** Yields index, value pairs for every entry in the array. */ entries(): IterableIterator<[number, bigint]>; diff --git a/node_modules/typescript/lib/lib.es2021.weakref.d.ts b/node_modules/typescript/lib/lib.es2021.weakref.d.ts index 9ff32d0..3a8be26 100644 --- a/node_modules/typescript/lib/lib.es2021.weakref.d.ts +++ b/node_modules/typescript/lib/lib.es2021.weakref.d.ts @@ -16,12 +16,13 @@ and limitations under the License. /// -interface WeakRef { +interface WeakRef { readonly [Symbol.toStringTag]: "WeakRef"; /** - * Returns the WeakRef instance's target object, or undefined if the target object has been + * Returns the WeakRef instance's target value, or undefined if the target value has been * reclaimed. + * In es2023 the value can be either a symbol or an object, in previous versions only object is permissible. */ deref(): T | undefined; } @@ -30,10 +31,11 @@ interface WeakRefConstructor { readonly prototype: WeakRef; /** - * Creates a WeakRef instance for the given target object. - * @param target The target object for the WeakRef instance. + * Creates a WeakRef instance for the given target value. + * In es2023 the value can be either a symbol or an object, in previous versions only object is permissible. + * @param target The target value for the WeakRef instance. */ - new(target: T): WeakRef; + new(target: T): WeakRef; } declare var WeakRef: WeakRefConstructor; @@ -42,22 +44,23 @@ interface FinalizationRegistry { readonly [Symbol.toStringTag]: "FinalizationRegistry"; /** - * Registers an object with the registry. - * @param target The target object to register. - * @param heldValue The value to pass to the finalizer for this object. This cannot be the - * target object. + * Registers a value with the registry. + * In es2023 the value can be either a symbol or an object, in previous versions only object is permissible. + * @param target The target value to register. + * @param heldValue The value to pass to the finalizer for this value. This cannot be the + * target value. * @param unregisterToken The token to pass to the unregister method to unregister the target - * object. If provided (and not undefined), this must be an object. If not provided, the target - * cannot be unregistered. + * value. If not provided, the target cannot be unregistered. */ - register(target: object, heldValue: T, unregisterToken?: object): void; + register(target: WeakKey, heldValue: T, unregisterToken?: WeakKey): void; /** - * Unregisters an object from the registry. + * Unregisters a value from the registry. + * In es2023 the value can be either a symbol or an object, in previous versions only object is permissible. * @param unregisterToken The token that was used as the unregisterToken argument when calling - * register to register the target object. + * register to register the target value. */ - unregister(unregisterToken: object): void; + unregister(unregisterToken: WeakKey): void; } interface FinalizationRegistryConstructor { @@ -65,7 +68,7 @@ interface FinalizationRegistryConstructor { /** * Creates a finalization registry with an associated cleanup callback - * @param cleanupCallback The callback to call after an object in the registry has been reclaimed. + * @param cleanupCallback The callback to call after a value in the registry has been reclaimed. */ new(cleanupCallback: (heldValue: T) => void): FinalizationRegistry; } diff --git a/node_modules/typescript/lib/lib.es2023.array.d.ts b/node_modules/typescript/lib/lib.es2023.array.d.ts index 9b01b26..d8d5cc9 100644 --- a/node_modules/typescript/lib/lib.es2023.array.d.ts +++ b/node_modules/typescript/lib/lib.es2023.array.d.ts @@ -39,6 +39,50 @@ interface Array { * predicate. If it is not provided, undefined is used instead. */ findLastIndex(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): number; + + /** + * Returns a copy of an array with its elements reversed. + */ + toReversed(): T[]; + + /** + * Returns a copy of an array with its elements sorted. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive + * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. + * ```ts + * [11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22] + * ``` + */ + toSorted(compareFn?: (a: T, b: T) => number): T[]; + + /** + * Copies an array and removes elements and, if necessary, inserts new elements in their place. Returns the copied array. + * @param start The zero-based location in the array from which to start removing elements. + * @param deleteCount The number of elements to remove. + * @param items Elements to insert into the copied array in place of the deleted elements. + * @returns The copied array. + */ + toSpliced(start: number, deleteCount: number, ...items: T[]): T[]; + + /** + * Copies an array and removes elements while returning the remaining elements. + * @param start The zero-based location in the array from which to start removing elements. + * @param deleteCount The number of elements to remove. + * @returns A copy of the original array with the remaining elements. + */ + toSpliced(start: number, deleteCount?: number): T[]; + + /** + * Copies an array, then overwrites the value at the provided index with the + * given value. If the index is negative, then it replaces from the end + * of the array. + * @param index The index of the value to overwrite. If the index is + * negative, then it replaces from the end of the array. + * @param value The value to write into the copied array. + * @returns The copied array with the updated value. + */ + with(index: number, value: T): T[]; } interface ReadonlyArray { @@ -51,8 +95,14 @@ interface ReadonlyArray { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findLast(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S | undefined; - findLast(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): T | undefined; + findLast( + predicate: (value: T, index: number, array: readonly T[]) => value is S, + thisArg?: any + ): S | undefined; + findLast( + predicate: (value: T, index: number, array: readonly T[]) => unknown, + thisArg?: any + ): T | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 @@ -63,7 +113,54 @@ interface ReadonlyArray { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findLastIndex(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): number; + findLastIndex( + predicate: (value: T, index: number, array: readonly T[]) => unknown, + thisArg?: any + ): number; + + /** + * Copies the array and returns the copied array with all of its elements reversed. + */ + toReversed(): T[]; + + /** + * Copies and sorts the array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive + * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. + * ```ts + * [11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22] + * ``` + */ + toSorted(compareFn?: (a: T, b: T) => number): T[]; + + /** + * Copies an array and removes elements while, if necessary, inserting new elements in their place, returning the remaining elements. + * @param start The zero-based location in the array from which to start removing elements. + * @param deleteCount The number of elements to remove. + * @param items Elements to insert into the copied array in place of the deleted elements. + * @returns A copy of the original array with the remaining elements. + */ + toSpliced(start: number, deleteCount: number, ...items: T[]): T[]; + + /** + * Copies an array and removes elements while returning the remaining elements. + * @param start The zero-based location in the array from which to start removing elements. + * @param deleteCount The number of elements to remove. + * @returns A copy of the original array with the remaining elements. + */ + toSpliced(start: number, deleteCount?: number): T[]; + + /** + * Copies an array, then overwrites the value at the provided index with the + * given value. If the index is negative, then it replaces from the end + * of the array + * @param index The index of the value to overwrite. If the index is + * negative, then it replaces from the end of the array. + * @param value The value to insert into the copied array. + * @returns A copy of the original array with the inserted value. + */ + with(index: number, value: T): T[]; } interface Int8Array { @@ -76,8 +173,18 @@ interface Int8Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findLast(predicate: (value: number, index: number, array: Int8Array) => value is S, thisArg?: any): S | undefined; - findLast(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): number | undefined; + findLast( + predicate: ( + value: number, + index: number, + array: Int8Array + ) => value is S, + thisArg?: any + ): S | undefined; + findLast( + predicate: (value: number, index: number, array: Int8Array) => unknown, + thisArg?: any + ): number | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 @@ -88,7 +195,36 @@ interface Int8Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findLastIndex(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): number; + findLastIndex( + predicate: (value: number, index: number, array: Int8Array) => unknown, + thisArg?: any + ): number; + + /** + * Copies the array and returns the copy with the elements in reverse order. + */ + toReversed(): Uint8Array; + + /** + * Copies and sorts the array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive + * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. + * ```ts + * const myNums = Uint8Array.from([11, 2, 22, 1]); + * myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22] + * ``` + */ + toSorted(compareFn?: (a: number, b: number) => number): Uint8Array; + + /** + * Copies the array and inserts the given number at the provided index. + * @param index The index of the value to overwrite. If the index is + * negative, then it replaces from the end of the array. + * @param value The value to insert into the copied array. + * @returns A copy of the original array with the inserted value. + */ + with(index: number, value: number): Uint8Array; } interface Uint8Array { @@ -101,8 +237,18 @@ interface Uint8Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findLast(predicate: (value: number, index: number, array: Uint8Array) => value is S, thisArg?: any): S | undefined; - findLast(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): number | undefined; + findLast( + predicate: ( + value: number, + index: number, + array: Uint8Array + ) => value is S, + thisArg?: any + ): S | undefined; + findLast( + predicate: (value: number, index: number, array: Uint8Array) => unknown, + thisArg?: any + ): number | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 @@ -113,7 +259,36 @@ interface Uint8Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findLastIndex(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): number; + findLastIndex( + predicate: (value: number, index: number, array: Uint8Array) => unknown, + thisArg?: any + ): number; + + /** + * Copies the array and returns the copy with the elements in reverse order. + */ + toReversed(): Uint8Array; + + /** + * Copies and sorts the array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive + * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. + * ```ts + * const myNums = Uint8Array.from([11, 2, 22, 1]); + * myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22] + * ``` + */ + toSorted(compareFn?: (a: number, b: number) => number): Uint8Array; + + /** + * Copies the array and inserts the given number at the provided index. + * @param index The index of the value to overwrite. If the index is + * negative, then it replaces from the end of the array. + * @param value The value to insert into the copied array. + * @returns A copy of the original array with the inserted value. + */ + with(index: number, value: number): Uint8Array; } interface Uint8ClampedArray { @@ -126,8 +301,22 @@ interface Uint8ClampedArray { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findLast(predicate: (value: number, index: number, array: Uint8ClampedArray) => value is S, thisArg?: any): S | undefined; - findLast(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): number | undefined; + findLast( + predicate: ( + value: number, + index: number, + array: Uint8ClampedArray + ) => value is S, + thisArg?: any + ): S | undefined; + findLast( + predicate: ( + value: number, + index: number, + array: Uint8ClampedArray + ) => unknown, + thisArg?: any + ): number | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 @@ -138,7 +327,40 @@ interface Uint8ClampedArray { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findLastIndex(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): number; + findLastIndex( + predicate: ( + value: number, + index: number, + array: Uint8ClampedArray + ) => unknown, + thisArg?: any + ): number; + + /** + * Copies the array and returns the copy with the elements in reverse order. + */ + toReversed(): Uint8ClampedArray; + + /** + * Copies and sorts the array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive + * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. + * ```ts + * const myNums = Uint8ClampedArray.from([11, 2, 22, 1]); + * myNums.toSorted((a, b) => a - b) // Uint8ClampedArray(4) [1, 2, 11, 22] + * ``` + */ + toSorted(compareFn?: (a: number, b: number) => number): Uint8ClampedArray; + + /** + * Copies the array and inserts the given number at the provided index. + * @param index The index of the value to overwrite. If the index is + * negative, then it replaces from the end of the array. + * @param value The value to insert into the copied array. + * @returns A copy of the original array with the inserted value. + */ + with(index: number, value: number): Uint8ClampedArray; } interface Int16Array { @@ -151,8 +373,18 @@ interface Int16Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findLast(predicate: (value: number, index: number, array: Int16Array) => value is S, thisArg?: any): S | undefined; - findLast(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): number | undefined; + findLast( + predicate: ( + value: number, + index: number, + array: Int16Array + ) => value is S, + thisArg?: any + ): S | undefined; + findLast( + predicate: (value: number, index: number, array: Int16Array) => unknown, + thisArg?: any + ): number | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 @@ -163,7 +395,36 @@ interface Int16Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findLastIndex(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): number; + findLastIndex( + predicate: (value: number, index: number, array: Int16Array) => unknown, + thisArg?: any + ): number; + + /** + * Copies the array and returns the copy with the elements in reverse order. + */ + toReversed(): Int16Array; + + /** + * Copies and sorts the array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive + * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. + * ```ts + * const myNums = Int16Array.from([11, 2, -22, 1]); + * myNums.toSorted((a, b) => a - b) // Int16Array(4) [-22, 1, 2, 11] + * ``` + */ + toSorted(compareFn?: (a: number, b: number) => number): Int16Array; + + /** + * Copies the array and inserts the given number at the provided index. + * @param index The index of the value to overwrite. If the index is + * negative, then it replaces from the end of the array. + * @param value The value to insert into the copied array. + * @returns A copy of the original array with the inserted value. + */ + with(index: number, value: number): Int16Array; } interface Uint16Array { @@ -176,8 +437,22 @@ interface Uint16Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findLast(predicate: (value: number, index: number, array: Uint16Array) => value is S, thisArg?: any): S | undefined; - findLast(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): number | undefined; + findLast( + predicate: ( + value: number, + index: number, + array: Uint16Array + ) => value is S, + thisArg?: any + ): S | undefined; + findLast( + predicate: ( + value: number, + index: number, + array: Uint16Array + ) => unknown, + thisArg?: any + ): number | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 @@ -188,7 +463,40 @@ interface Uint16Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findLastIndex(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): number; + findLastIndex( + predicate: ( + value: number, + index: number, + array: Uint16Array + ) => unknown, + thisArg?: any + ): number; + + /** + * Copies the array and returns the copy with the elements in reverse order. + */ + toReversed(): Uint16Array; + + /** + * Copies and sorts the array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive + * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. + * ```ts + * const myNums = Uint16Array.from([11, 2, 22, 1]); + * myNums.toSorted((a, b) => a - b) // Uint16Array(4) [1, 2, 11, 22] + * ``` + */ + toSorted(compareFn?: (a: number, b: number) => number): Uint16Array; + + /** + * Copies the array and inserts the given number at the provided index. + * @param index The index of the value to overwrite. If the index is + * negative, then it replaces from the end of the array. + * @param value The value to insert into the copied array. + * @returns A copy of the original array with the inserted value. + */ + with(index: number, value: number): Uint16Array; } interface Int32Array { @@ -201,8 +509,18 @@ interface Int32Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findLast(predicate: (value: number, index: number, array: Int32Array) => value is S, thisArg?: any): S | undefined; - findLast(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): number | undefined; + findLast( + predicate: ( + value: number, + index: number, + array: Int32Array + ) => value is S, + thisArg?: any + ): S | undefined; + findLast( + predicate: (value: number, index: number, array: Int32Array) => unknown, + thisArg?: any + ): number | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 @@ -213,7 +531,36 @@ interface Int32Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findLastIndex(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): number; + findLastIndex( + predicate: (value: number, index: number, array: Int32Array) => unknown, + thisArg?: any + ): number; + + /** + * Copies the array and returns the copy with the elements in reverse order. + */ + toReversed(): Int32Array; + + /** + * Copies and sorts the array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive + * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. + * ```ts + * const myNums = Int32Array.from([11, 2, -22, 1]); + * myNums.toSorted((a, b) => a - b) // Int32Array(4) [-22, 1, 2, 11] + * ``` + */ + toSorted(compareFn?: (a: number, b: number) => number): Int32Array; + + /** + * Copies the array and inserts the given number at the provided index. + * @param index The index of the value to overwrite. If the index is + * negative, then it replaces from the end of the array. + * @param value The value to insert into the copied array. + * @returns A copy of the original array with the inserted value. + */ + with(index: number, value: number): Int32Array; } interface Uint32Array { @@ -226,8 +573,22 @@ interface Uint32Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findLast(predicate: (value: number, index: number, array: Uint32Array) => value is S, thisArg?: any): S | undefined; - findLast(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): number | undefined; + findLast( + predicate: ( + value: number, + index: number, + array: Uint32Array + ) => value is S, + thisArg?: any + ): S | undefined; + findLast( + predicate: ( + value: number, + index: number, + array: Uint32Array + ) => unknown, + thisArg?: any + ): number | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 @@ -238,7 +599,40 @@ interface Uint32Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findLastIndex(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): number; + findLastIndex( + predicate: ( + value: number, + index: number, + array: Uint32Array + ) => unknown, + thisArg?: any + ): number; + + /** + * Copies the array and returns the copy with the elements in reverse order. + */ + toReversed(): Uint32Array; + + /** + * Copies and sorts the array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive + * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. + * ```ts + * const myNums = Uint32Array.from([11, 2, 22, 1]); + * myNums.toSorted((a, b) => a - b) // Uint32Array(4) [1, 2, 11, 22] + * ``` + */ + toSorted(compareFn?: (a: number, b: number) => number): Uint32Array; + + /** + * Copies the array and inserts the given number at the provided index. + * @param index The index of the value to overwrite. If the index is + * negative, then it replaces from the end of the array. + * @param value The value to insert into the copied array. + * @returns A copy of the original array with the inserted value. + */ + with(index: number, value: number): Uint32Array; } interface Float32Array { @@ -251,8 +645,22 @@ interface Float32Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findLast(predicate: (value: number, index: number, array: Float32Array) => value is S, thisArg?: any): S | undefined; - findLast(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): number | undefined; + findLast( + predicate: ( + value: number, + index: number, + array: Float32Array + ) => value is S, + thisArg?: any + ): S | undefined; + findLast( + predicate: ( + value: number, + index: number, + array: Float32Array + ) => unknown, + thisArg?: any + ): number | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 @@ -263,7 +671,40 @@ interface Float32Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findLastIndex(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): number; + findLastIndex( + predicate: ( + value: number, + index: number, + array: Float32Array + ) => unknown, + thisArg?: any + ): number; + + /** + * Copies the array and returns the copy with the elements in reverse order. + */ + toReversed(): Float32Array; + + /** + * Copies and sorts the array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive + * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. + * ```ts + * const myNums = Float32Array.from([11.25, 2, -22.5, 1]); + * myNums.toSorted((a, b) => a - b) // Float32Array(4) [-22.5, 1, 2, 11.5] + * ``` + */ + toSorted(compareFn?: (a: number, b: number) => number): Float32Array; + + /** + * Copies the array and inserts the given number at the provided index. + * @param index The index of the value to overwrite. If the index is + * negative, then it replaces from the end of the array. + * @param value The value to insert into the copied array. + * @returns A copy of the original array with the inserted value. + */ + with(index: number, value: number): Float32Array; } interface Float64Array { @@ -276,8 +717,22 @@ interface Float64Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findLast(predicate: (value: number, index: number, array: Float64Array) => value is S, thisArg?: any): S | undefined; - findLast(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): number | undefined; + findLast( + predicate: ( + value: number, + index: number, + array: Float64Array + ) => value is S, + thisArg?: any + ): S | undefined; + findLast( + predicate: ( + value: number, + index: number, + array: Float64Array + ) => unknown, + thisArg?: any + ): number | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 @@ -288,7 +743,40 @@ interface Float64Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findLastIndex(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): number; + findLastIndex( + predicate: ( + value: number, + index: number, + array: Float64Array + ) => unknown, + thisArg?: any + ): number; + + /** + * Copies the array and returns the copy with the elements in reverse order. + */ + toReversed(): Float64Array; + + /** + * Copies and sorts the array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive + * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. + * ```ts + * const myNums = Float64Array.from([11.25, 2, -22.5, 1]); + * myNums.toSorted((a, b) => a - b) // Float64Array(4) [-22.5, 1, 2, 11.5] + * ``` + */ + toSorted(compareFn?: (a: number, b: number) => number): Float64Array; + + /** + * Copies the array and inserts the given number at the provided index. + * @param index The index of the value to overwrite. If the index is + * negative, then it replaces from the end of the array. + * @param value The value to insert into the copied array. + * @returns A copy of the original array with the inserted value. + */ + with(index: number, value: number): Float64Array; } interface BigInt64Array { @@ -301,8 +789,22 @@ interface BigInt64Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findLast(predicate: (value: bigint, index: number, array: BigInt64Array) => value is S, thisArg?: any): S | undefined; - findLast(predicate: (value: bigint, index: number, array: BigInt64Array) => unknown, thisArg?: any): bigint | undefined; + findLast( + predicate: ( + value: bigint, + index: number, + array: BigInt64Array + ) => value is S, + thisArg?: any + ): S | undefined; + findLast( + predicate: ( + value: bigint, + index: number, + array: BigInt64Array + ) => unknown, + thisArg?: any + ): bigint | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 @@ -313,7 +815,40 @@ interface BigInt64Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findLastIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => unknown, thisArg?: any): number; + findLastIndex( + predicate: ( + value: bigint, + index: number, + array: BigInt64Array + ) => unknown, + thisArg?: any + ): number; + + /** + * Copies the array and returns the copy with the elements in reverse order. + */ + toReversed(): BigInt64Array; + + /** + * Copies and sorts the array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive + * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. + * ```ts + * const myNums = BigInt64Array.from([11n, 2n, -22n, 1n]); + * myNums.toSorted((a, b) => Number(a - b)) // BigInt64Array(4) [-22n, 1n, 2n, 11n] + * ``` + */ + toSorted(compareFn?: (a: bigint, b: bigint) => number): BigInt64Array; + + /** + * Copies the array and inserts the given bigint at the provided index. + * @param index The index of the value to overwrite. If the index is + * negative, then it replaces from the end of the array. + * @param value The value to insert into the copied array. + * @returns A copy of the original array with the inserted value. + */ + with(index: number, value: bigint): BigInt64Array; } interface BigUint64Array { @@ -326,8 +861,22 @@ interface BigUint64Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findLast(predicate: (value: bigint, index: number, array: BigUint64Array) => value is S, thisArg?: any): S | undefined; - findLast(predicate: (value: bigint, index: number, array: BigUint64Array) => unknown, thisArg?: any): bigint | undefined; + findLast( + predicate: ( + value: bigint, + index: number, + array: BigUint64Array + ) => value is S, + thisArg?: any + ): S | undefined; + findLast( + predicate: ( + value: bigint, + index: number, + array: BigUint64Array + ) => unknown, + thisArg?: any + ): bigint | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 @@ -338,5 +887,38 @@ interface BigUint64Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findLastIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => unknown, thisArg?: any): number; + findLastIndex( + predicate: ( + value: bigint, + index: number, + array: BigUint64Array + ) => unknown, + thisArg?: any + ): number; + + /** + * Copies the array and returns the copy with the elements in reverse order. + */ + toReversed(): BigUint64Array; + + /** + * Copies and sorts the array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive + * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. + * ```ts + * const myNums = BigUint64Array.from([11n, 2n, 22n, 1n]); + * myNums.toSorted((a, b) => Number(a - b)) // BigUint64Array(4) [1n, 2n, 11n, 22n] + * ``` + */ + toSorted(compareFn?: (a: bigint, b: bigint) => number): BigUint64Array; + + /** + * Copies the array and inserts the given bigint at the provided index. + * @param index The index of the value to overwrite. If the index is + * negative, then it replaces from the end of the array. + * @param value The value to insert into the copied array. + * @returns A copy of the original array with the inserted value. + */ + with(index: number, value: bigint): BigUint64Array; } diff --git a/node_modules/typescript/lib/lib.es2023.d.ts b/node_modules/typescript/lib/lib.es2023.d.ts index d8e0657..b70830c 100644 --- a/node_modules/typescript/lib/lib.es2023.d.ts +++ b/node_modules/typescript/lib/lib.es2023.d.ts @@ -18,3 +18,4 @@ and limitations under the License. /// /// +/// diff --git a/node_modules/typescript/lib/lib.es5.d.ts b/node_modules/typescript/lib/lib.es5.d.ts index 870d8a0..a88d3b6 100644 --- a/node_modules/typescript/lib/lib.es5.d.ts +++ b/node_modules/typescript/lib/lib.es5.d.ts @@ -1665,6 +1665,15 @@ type Uncapitalize = intrinsic; */ interface ThisType { } +/** + * Stores types to be used with WeakSet, WeakMap, WeakRef, and FinalizationRegistry + */ +interface WeakKeyTypes { + object: object; +} + +type WeakKey = WeakKeyTypes[keyof WeakKeyTypes]; + /** * Represents a raw buffer of binary data, which is used to store data for the * different typed arrays. ArrayBuffers cannot be read from or written to directly, @@ -1880,10 +1889,10 @@ interface Int8Array { * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. If start is omitted, `0` is used. + * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ - copyWithin(target: number, start?: number, end?: number): this; + copyWithin(target: number, start: number, end?: number): this; /** * Determines whether all the members of an array satisfy the specified test. @@ -2162,10 +2171,10 @@ interface Uint8Array { * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. If start is omitted, `0` is used. + * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ - copyWithin(target: number, start?: number, end?: number): this; + copyWithin(target: number, start: number, end?: number): this; /** * Determines whether all the members of an array satisfy the specified test. @@ -2444,10 +2453,10 @@ interface Uint8ClampedArray { * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. If start is omitted, `0` is used. + * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ - copyWithin(target: number, start?: number, end?: number): this; + copyWithin(target: number, start: number, end?: number): this; /** * Determines whether all the members of an array satisfy the specified test. @@ -2725,10 +2734,10 @@ interface Int16Array { * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. If start is omitted, `0` is used. + * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ - copyWithin(target: number, start?: number, end?: number): this; + copyWithin(target: number, start: number, end?: number): this; /** * Determines whether all the members of an array satisfy the specified test. @@ -3007,10 +3016,10 @@ interface Uint16Array { * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. If start is omitted, `0` is used. + * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ - copyWithin(target: number, start?: number, end?: number): this; + copyWithin(target: number, start: number, end?: number): this; /** * Determines whether all the members of an array satisfy the specified test. @@ -3289,10 +3298,10 @@ interface Int32Array { * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. If start is omitted, `0` is used. + * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ - copyWithin(target: number, start?: number, end?: number): this; + copyWithin(target: number, start: number, end?: number): this; /** * Determines whether all the members of an array satisfy the specified test. @@ -3571,10 +3580,10 @@ interface Uint32Array { * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. If start is omitted, `0` is used. + * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ - copyWithin(target: number, start?: number, end?: number): this; + copyWithin(target: number, start: number, end?: number): this; /** * Determines whether all the members of an array satisfy the specified test. @@ -3852,10 +3861,10 @@ interface Float32Array { * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. If start is omitted, `0` is used. + * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ - copyWithin(target: number, start?: number, end?: number): this; + copyWithin(target: number, start: number, end?: number): this; /** * Determines whether all the members of an array satisfy the specified test. @@ -4135,10 +4144,10 @@ interface Float64Array { * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. If start is omitted, `0` is used. + * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ - copyWithin(target: number, start?: number, end?: number): this; + copyWithin(target: number, start: number, end?: number): this; /** * Determines whether all the members of an array satisfy the specified test. diff --git a/node_modules/typescript/lib/lib.esnext.d.ts b/node_modules/typescript/lib/lib.esnext.d.ts index e04d1f8..a788452 100644 --- a/node_modules/typescript/lib/lib.esnext.d.ts +++ b/node_modules/typescript/lib/lib.esnext.d.ts @@ -18,3 +18,5 @@ and limitations under the License. /// /// +/// +/// diff --git a/node_modules/typescript/lib/lib.webworker.d.ts b/node_modules/typescript/lib/lib.webworker.d.ts index b4e21e2..e371b06 100644 --- a/node_modules/typescript/lib/lib.webworker.d.ts +++ b/node_modules/typescript/lib/lib.webworker.d.ts @@ -454,7 +454,7 @@ interface NotificationOptions { lang?: string; renotify?: boolean; requireInteraction?: boolean; - silent?: boolean; + silent?: boolean | null; tag?: string; timestamp?: EpochTimeStamp; vibrate?: VibratePattern; @@ -539,7 +539,6 @@ interface RTCEncodedAudioFrameMetadata { } interface RTCEncodedVideoFrameMetadata { - contributingSources?: number[]; dependencies?: number[]; frameId?: number; height?: number; @@ -709,8 +708,8 @@ interface TextDecoderOptions { } interface TextEncoderEncodeIntoResult { - read?: number; - written?: number; + read: number; + written: number; } interface Transformer { @@ -866,6 +865,32 @@ interface WebGLContextEventInit extends EventInit { statusMessage?: string; } +interface WebTransportCloseInfo { + closeCode?: number; + reason?: string; +} + +interface WebTransportErrorOptions { + source?: WebTransportErrorSource; + streamErrorCode?: number | null; +} + +interface WebTransportHash { + algorithm?: string; + value?: BufferSource; +} + +interface WebTransportOptions { + allowPooling?: boolean; + congestionControl?: WebTransportCongestionControl; + requireUnreliable?: boolean; + serverCertificateHashes?: WebTransportHash[]; +} + +interface WebTransportSendStreamOptions { + sendOrder?: number | null; +} + interface WorkerOptions { credentials?: RequestCredentials; name?: string; @@ -950,9 +975,9 @@ interface AbortSignal extends EventTarget { declare var AbortSignal: { prototype: AbortSignal; new(): AbortSignal; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */ abort(reason?: any): AbortSignal; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */ timeout(milliseconds: number): AbortSignal; }; @@ -1633,6 +1658,8 @@ interface CanvasShadowStyles { } interface CanvasState { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */ + reset(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */ restore(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/save) */ @@ -2083,7 +2110,7 @@ interface DOMPoint extends DOMPointReadOnly { declare var DOMPoint: { prototype: DOMPoint; new(x?: number, y?: number, z?: number, w?: number): DOMPoint; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static) */ fromPoint(other?: DOMPointInit): DOMPoint; }; @@ -2106,7 +2133,7 @@ interface DOMPointReadOnly { declare var DOMPointReadOnly: { prototype: DOMPointReadOnly; new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static) */ fromPoint(other?: DOMPointInit): DOMPointReadOnly; }; @@ -2170,7 +2197,7 @@ interface DOMRectReadOnly { declare var DOMRectReadOnly: { prototype: DOMRectReadOnly; new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static) */ fromRect(other?: DOMRectInit): DOMRectReadOnly; }; @@ -2878,11 +2905,11 @@ interface FileSystemSyncAccessHandle { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/getSize) */ getSize(): number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/read) */ - read(buffer: BufferSource, options?: FileSystemReadWriteOptions): number; + read(buffer: AllowSharedBufferSource, options?: FileSystemReadWriteOptions): number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/truncate) */ truncate(newSize: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/write) */ - write(buffer: BufferSource, options?: FileSystemReadWriteOptions): number; + write(buffer: AllowSharedBufferSource, options?: FileSystemReadWriteOptions): number; } declare var FileSystemSyncAccessHandle: { @@ -3045,6 +3072,8 @@ interface Headers { delete(name: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get) */ get(name: string): string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie) */ + getSetCookie(): string[]; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has) */ has(name: string): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set) */ @@ -3393,25 +3422,25 @@ declare var IDBKeyRange: { /** * Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range. * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/bound) + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/bound_static) */ bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange; /** * Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range. * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerBound) + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerBound_static) */ lowerBound(lower: any, open?: boolean): IDBKeyRange; /** * Returns a new IDBKeyRange spanning only key. * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/only) + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/only_static) */ only(value: any): IDBKeyRange; /** * Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range. * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperBound) + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperBound_static) */ upperBound(upper: any, open?: boolean): IDBKeyRange; }; @@ -4111,6 +4140,8 @@ interface Notification extends EventTarget { onerror: ((this: Notification, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */ onshow: ((this: Notification, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent) */ + readonly silent: boolean | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) */ readonly tag: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/title) */ @@ -4126,7 +4157,7 @@ interface Notification extends EventTarget { declare var Notification: { prototype: Notification; new(title: string, options?: NotificationOptions): Notification; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/permission) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/permission_static) */ readonly permission: NotificationPermission; }; @@ -4450,7 +4481,7 @@ interface PerformanceObserver { declare var PerformanceObserver: { prototype: PerformanceObserver; new(callback: PerformanceObserverCallback): PerformanceObserver; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/supportedEntryTypes) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/supportedEntryTypes_static) */ readonly supportedEntryTypes: ReadonlyArray; }; @@ -4638,7 +4669,7 @@ interface PushManager { declare var PushManager: { prototype: PushManager; new(): PushManager; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/supportedContentEncodings) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/supportedContentEncodings_static) */ readonly supportedContentEncodings: ReadonlyArray; }; @@ -5004,9 +5035,11 @@ interface Response extends Body { declare var Response: { prototype: Response; new(body?: BodyInit | null, init?: ResponseInit): Response; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static) */ error(): Response; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/json_static) */ + json(data: any, init?: ResponseInit): Response; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect_static) */ redirect(url: string | URL, status?: number): Response; }; @@ -5097,7 +5130,6 @@ interface ServiceWorkerContainer extends EventTarget { oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) */ onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/messageerror_event) */ onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready) */ readonly ready: Promise; @@ -5351,7 +5383,7 @@ interface TextDecoder extends TextDecoderCommon { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode) */ - decode(input?: BufferSource, options?: TextDecodeOptions): string; + decode(input?: AllowSharedBufferSource, options?: TextDecodeOptions): string; } declare var TextDecoder: { @@ -5559,14 +5591,18 @@ interface URL { declare var URL: { prototype: URL; new(url: string | URL, base?: string | URL): URL; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) */ + canParse(url: string | URL, base?: string): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) */ createObjectURL(obj: Blob): string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static) */ revokeObjectURL(url: string): void; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams) */ interface URLSearchParams { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size) */ + readonly size: number; /** * Appends a specified key/value pair as a new search parameter. * @@ -5578,7 +5614,7 @@ interface URLSearchParams { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete) */ - delete(name: string): void; + delete(name: string, value?: string): void; /** * Returns the first value associated to the given search parameter. * @@ -5596,7 +5632,7 @@ interface URLSearchParams { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has) */ - has(name: string): boolean; + has(name: string, value?: string): boolean; /** * Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. * @@ -8197,6 +8233,96 @@ declare var WebSocket: { readonly CLOSED: 3; }; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport) + */ +interface WebTransport { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */ + readonly closed: Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ + readonly datagrams: WebTransportDatagramDuplexStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingBidirectionalStreams) */ + readonly incomingBidirectionalStreams: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ + readonly incomingUnidirectionalStreams: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */ + readonly ready: Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/close) */ + close(closeInfo?: WebTransportCloseInfo): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ + createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */ + createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise; +} + +declare var WebTransport: { + prototype: WebTransport; + new(url: string | URL, options?: WebTransportOptions): WebTransport; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream) + */ +interface WebTransportBidirectionalStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/readable) */ + readonly readable: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/writable) */ + readonly writable: WritableStream; +} + +declare var WebTransportBidirectionalStream: { + prototype: WebTransportBidirectionalStream; + new(): WebTransportBidirectionalStream; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream) + */ +interface WebTransportDatagramDuplexStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark) */ + incomingHighWaterMark: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */ + incomingMaxAge: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize) */ + readonly maxDatagramSize: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark) */ + outgoingHighWaterMark: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */ + outgoingMaxAge: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable) */ + readonly readable: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ + readonly writable: WritableStream; +} + +declare var WebTransportDatagramDuplexStream: { + prototype: WebTransportDatagramDuplexStream; + new(): WebTransportDatagramDuplexStream; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError) + */ +interface WebTransportError extends DOMException { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/source) */ + readonly source: WebTransportErrorSource; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/streamErrorCode) */ + readonly streamErrorCode: number | null; +} + +declare var WebTransportError: { + prototype: WebTransportError; + new(message?: string, options?: WebTransportErrorOptions): WebTransportError; +}; + /** * This ServiceWorker API interface represents the scope of a service worker client that is a document in a browser context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources. * @@ -8718,16 +8844,16 @@ declare namespace WebAssembly { }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global) */ - interface Global { + interface Global { /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global/value) */ - value: any; + value: ValueTypeMap[T]; /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global/valueOf) */ - valueOf(): any; + valueOf(): ValueTypeMap[T]; } var Global: { prototype: Global; - new(descriptor: GlobalDescriptor, v?: any): Global; + new(descriptor: GlobalDescriptor, v?: ValueTypeMap[T]): Global; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance) */ @@ -8804,9 +8930,9 @@ declare namespace WebAssembly { new(descriptor: TableDescriptor, value?: any): Table; }; - interface GlobalDescriptor { + interface GlobalDescriptor { mutable?: boolean; - value: ValueType; + value: T; } interface MemoryDescriptor { @@ -8832,6 +8958,16 @@ declare namespace WebAssembly { maximum?: number; } + interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; + } + interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; @@ -8839,12 +8975,12 @@ declare namespace WebAssembly { type ImportExportKind = "function" | "global" | "memory" | "table"; type TableKind = "anyfunc" | "externref"; - type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128"; type ExportValue = Function | Global | Memory | Table; type Exports = Record; type ImportValue = ExportValue | number; type Imports = Record; type ModuleImports = Record; + type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/compile) */ function compile(bytes: BufferSource): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/compileStreaming) */ @@ -9057,6 +9193,7 @@ declare function addEventListener(type: string, listener: EventListenerOrEventLi declare function removeEventListener(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; type AlgorithmIdentifier = Algorithm | string; +type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView; type BigInteger = Uint8Array; type BinaryData = ArrayBuffer | ArrayBufferView; type BlobPart = BufferSource | Blob | string; @@ -9180,6 +9317,8 @@ type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m"; type VideoPixelFormat = "BGRA" | "BGRX" | "I420" | "I420A" | "I422" | "I444" | "NV12" | "RGBA" | "RGBX"; type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m"; type WebGLPowerPreference = "default" | "high-performance" | "low-power"; +type WebTransportCongestionControl = "default" | "low-latency" | "throughput"; +type WebTransportErrorSource = "session" | "stream"; type WorkerType = "classic" | "module"; type WriteCommandType = "seek" | "truncate" | "write"; type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text"; diff --git a/node_modules/typescript/lib/tsc.js b/node_modules/typescript/lib/tsc.js index 5e73584..8c0c6bf 100644 --- a/node_modules/typescript/lib/tsc.js +++ b/node_modules/typescript/lib/tsc.js @@ -17,8 +17,8 @@ and limitations under the License. "use strict"; // src/compiler/corePublic.ts -var versionMajorMinor = "5.1"; -var version = "5.1.6"; +var versionMajorMinor = "5.2"; +var version = "5.2.2"; // src/compiler/core.ts var emptyArray = []; @@ -908,7 +908,7 @@ function identity(x) { function toLowerCase(x) { return x.toLowerCase(); } -var fileNameLowerCaseRegExp = /[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g; +var fileNameLowerCaseRegExp = /[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g; function toFileNameLowerCase(x) { return fileNameLowerCaseRegExp.test(x) ? x.replace(fileNameLowerCaseRegExp, toLowerCase) : x; } @@ -1145,8 +1145,8 @@ function unorderedRemoveFirstItemWhere(array, predicate) { } return false; } -function createGetCanonicalFileName(useCaseSensitiveFileNames) { - return useCaseSensitiveFileNames ? identity : toFileNameLowerCase; +function createGetCanonicalFileName(useCaseSensitiveFileNames2) { + return useCaseSensitiveFileNames2 ? identity : toFileNameLowerCase; } function patternText({ prefix, suffix }) { return `${prefix}*${suffix}`; @@ -1526,7 +1526,7 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`, return func.name; } else { const text = Function.prototype.toString.call(func); - const match = /^function\s+([\w\$]+)\s*\(/.exec(text); + const match = /^function\s+([\w$]+)\s*\(/.exec(text); return match ? match[1] : ""; } } @@ -1600,6 +1600,15 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`, ); } Debug2.formatSnippetKind = formatSnippetKind; + function formatScriptKind(kind) { + return formatEnum( + kind, + ScriptKind, + /*isFlags*/ + false + ); + } + Debug2.formatScriptKind = formatScriptKind; function formatNodeFlags(flags) { return formatEnum( flags, @@ -2300,13 +2309,13 @@ ${lanes.join("\n")} })(Debug || (Debug = {})); // src/compiler/semver.ts -var versionRegExp = /^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i; +var versionRegExp = /^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i; var prereleaseRegExp = /^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i; var prereleasePartRegExp = /^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i; var buildRegExp = /^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i; var buildPartRegExp = /^[a-z0-9-]+$/i; var numericIdentifierRegExp = /^(0|[1-9]\d*)$/; -var _Version = class { +var _Version = class _Version { constructor(major, minor = 0, patch = 0, prerelease = "", build2 = "") { if (typeof major === "string") { const result = Debug.checkDefined(tryParseComponents(major), "Invalid version"); @@ -2370,8 +2379,8 @@ var _Version = class { return result; } }; +_Version.zero = new _Version(0, 0, 0, ["0"]); var Version = _Version; -Version.zero = new _Version(0, 0, 0, ["0"]); function tryParseComponents(text) { const match = versionRegExp.exec(text); if (!match) @@ -2418,14 +2427,14 @@ function comparePrereleaseIdentifiers(left, right) { } return compareValues(left.length, right.length); } -var VersionRange = class { +var VersionRange = class _VersionRange { constructor(spec) { this._alternatives = spec ? Debug.checkDefined(parseRange(spec), "Invalid range spec.") : emptyArray; } static tryParse(text) { const sets = parseRange(text); if (sets) { - const range = new VersionRange(""); + const range = new _VersionRange(""); range._alternatives = sets; return range; } @@ -3194,210 +3203,211 @@ var SyntaxKind = /* @__PURE__ */ ((SyntaxKind4) => { SyntaxKind4[SyntaxKind4["UndefinedKeyword"] = 157] = "UndefinedKeyword"; SyntaxKind4[SyntaxKind4["UniqueKeyword"] = 158] = "UniqueKeyword"; SyntaxKind4[SyntaxKind4["UnknownKeyword"] = 159] = "UnknownKeyword"; - SyntaxKind4[SyntaxKind4["FromKeyword"] = 160] = "FromKeyword"; - SyntaxKind4[SyntaxKind4["GlobalKeyword"] = 161] = "GlobalKeyword"; - SyntaxKind4[SyntaxKind4["BigIntKeyword"] = 162] = "BigIntKeyword"; - SyntaxKind4[SyntaxKind4["OverrideKeyword"] = 163] = "OverrideKeyword"; - SyntaxKind4[SyntaxKind4["OfKeyword"] = 164] = "OfKeyword"; - SyntaxKind4[SyntaxKind4["QualifiedName"] = 165] = "QualifiedName"; - SyntaxKind4[SyntaxKind4["ComputedPropertyName"] = 166] = "ComputedPropertyName"; - SyntaxKind4[SyntaxKind4["TypeParameter"] = 167] = "TypeParameter"; - SyntaxKind4[SyntaxKind4["Parameter"] = 168] = "Parameter"; - SyntaxKind4[SyntaxKind4["Decorator"] = 169] = "Decorator"; - SyntaxKind4[SyntaxKind4["PropertySignature"] = 170] = "PropertySignature"; - SyntaxKind4[SyntaxKind4["PropertyDeclaration"] = 171] = "PropertyDeclaration"; - SyntaxKind4[SyntaxKind4["MethodSignature"] = 172] = "MethodSignature"; - SyntaxKind4[SyntaxKind4["MethodDeclaration"] = 173] = "MethodDeclaration"; - SyntaxKind4[SyntaxKind4["ClassStaticBlockDeclaration"] = 174] = "ClassStaticBlockDeclaration"; - SyntaxKind4[SyntaxKind4["Constructor"] = 175] = "Constructor"; - SyntaxKind4[SyntaxKind4["GetAccessor"] = 176] = "GetAccessor"; - SyntaxKind4[SyntaxKind4["SetAccessor"] = 177] = "SetAccessor"; - SyntaxKind4[SyntaxKind4["CallSignature"] = 178] = "CallSignature"; - SyntaxKind4[SyntaxKind4["ConstructSignature"] = 179] = "ConstructSignature"; - SyntaxKind4[SyntaxKind4["IndexSignature"] = 180] = "IndexSignature"; - SyntaxKind4[SyntaxKind4["TypePredicate"] = 181] = "TypePredicate"; - SyntaxKind4[SyntaxKind4["TypeReference"] = 182] = "TypeReference"; - SyntaxKind4[SyntaxKind4["FunctionType"] = 183] = "FunctionType"; - SyntaxKind4[SyntaxKind4["ConstructorType"] = 184] = "ConstructorType"; - SyntaxKind4[SyntaxKind4["TypeQuery"] = 185] = "TypeQuery"; - SyntaxKind4[SyntaxKind4["TypeLiteral"] = 186] = "TypeLiteral"; - SyntaxKind4[SyntaxKind4["ArrayType"] = 187] = "ArrayType"; - SyntaxKind4[SyntaxKind4["TupleType"] = 188] = "TupleType"; - SyntaxKind4[SyntaxKind4["OptionalType"] = 189] = "OptionalType"; - SyntaxKind4[SyntaxKind4["RestType"] = 190] = "RestType"; - SyntaxKind4[SyntaxKind4["UnionType"] = 191] = "UnionType"; - SyntaxKind4[SyntaxKind4["IntersectionType"] = 192] = "IntersectionType"; - SyntaxKind4[SyntaxKind4["ConditionalType"] = 193] = "ConditionalType"; - SyntaxKind4[SyntaxKind4["InferType"] = 194] = "InferType"; - SyntaxKind4[SyntaxKind4["ParenthesizedType"] = 195] = "ParenthesizedType"; - SyntaxKind4[SyntaxKind4["ThisType"] = 196] = "ThisType"; - SyntaxKind4[SyntaxKind4["TypeOperator"] = 197] = "TypeOperator"; - SyntaxKind4[SyntaxKind4["IndexedAccessType"] = 198] = "IndexedAccessType"; - SyntaxKind4[SyntaxKind4["MappedType"] = 199] = "MappedType"; - SyntaxKind4[SyntaxKind4["LiteralType"] = 200] = "LiteralType"; - SyntaxKind4[SyntaxKind4["NamedTupleMember"] = 201] = "NamedTupleMember"; - SyntaxKind4[SyntaxKind4["TemplateLiteralType"] = 202] = "TemplateLiteralType"; - SyntaxKind4[SyntaxKind4["TemplateLiteralTypeSpan"] = 203] = "TemplateLiteralTypeSpan"; - SyntaxKind4[SyntaxKind4["ImportType"] = 204] = "ImportType"; - SyntaxKind4[SyntaxKind4["ObjectBindingPattern"] = 205] = "ObjectBindingPattern"; - SyntaxKind4[SyntaxKind4["ArrayBindingPattern"] = 206] = "ArrayBindingPattern"; - SyntaxKind4[SyntaxKind4["BindingElement"] = 207] = "BindingElement"; - SyntaxKind4[SyntaxKind4["ArrayLiteralExpression"] = 208] = "ArrayLiteralExpression"; - SyntaxKind4[SyntaxKind4["ObjectLiteralExpression"] = 209] = "ObjectLiteralExpression"; - SyntaxKind4[SyntaxKind4["PropertyAccessExpression"] = 210] = "PropertyAccessExpression"; - SyntaxKind4[SyntaxKind4["ElementAccessExpression"] = 211] = "ElementAccessExpression"; - SyntaxKind4[SyntaxKind4["CallExpression"] = 212] = "CallExpression"; - SyntaxKind4[SyntaxKind4["NewExpression"] = 213] = "NewExpression"; - SyntaxKind4[SyntaxKind4["TaggedTemplateExpression"] = 214] = "TaggedTemplateExpression"; - SyntaxKind4[SyntaxKind4["TypeAssertionExpression"] = 215] = "TypeAssertionExpression"; - SyntaxKind4[SyntaxKind4["ParenthesizedExpression"] = 216] = "ParenthesizedExpression"; - SyntaxKind4[SyntaxKind4["FunctionExpression"] = 217] = "FunctionExpression"; - SyntaxKind4[SyntaxKind4["ArrowFunction"] = 218] = "ArrowFunction"; - SyntaxKind4[SyntaxKind4["DeleteExpression"] = 219] = "DeleteExpression"; - SyntaxKind4[SyntaxKind4["TypeOfExpression"] = 220] = "TypeOfExpression"; - SyntaxKind4[SyntaxKind4["VoidExpression"] = 221] = "VoidExpression"; - SyntaxKind4[SyntaxKind4["AwaitExpression"] = 222] = "AwaitExpression"; - SyntaxKind4[SyntaxKind4["PrefixUnaryExpression"] = 223] = "PrefixUnaryExpression"; - SyntaxKind4[SyntaxKind4["PostfixUnaryExpression"] = 224] = "PostfixUnaryExpression"; - SyntaxKind4[SyntaxKind4["BinaryExpression"] = 225] = "BinaryExpression"; - SyntaxKind4[SyntaxKind4["ConditionalExpression"] = 226] = "ConditionalExpression"; - SyntaxKind4[SyntaxKind4["TemplateExpression"] = 227] = "TemplateExpression"; - SyntaxKind4[SyntaxKind4["YieldExpression"] = 228] = "YieldExpression"; - SyntaxKind4[SyntaxKind4["SpreadElement"] = 229] = "SpreadElement"; - SyntaxKind4[SyntaxKind4["ClassExpression"] = 230] = "ClassExpression"; - SyntaxKind4[SyntaxKind4["OmittedExpression"] = 231] = "OmittedExpression"; - SyntaxKind4[SyntaxKind4["ExpressionWithTypeArguments"] = 232] = "ExpressionWithTypeArguments"; - SyntaxKind4[SyntaxKind4["AsExpression"] = 233] = "AsExpression"; - SyntaxKind4[SyntaxKind4["NonNullExpression"] = 234] = "NonNullExpression"; - SyntaxKind4[SyntaxKind4["MetaProperty"] = 235] = "MetaProperty"; - SyntaxKind4[SyntaxKind4["SyntheticExpression"] = 236] = "SyntheticExpression"; - SyntaxKind4[SyntaxKind4["SatisfiesExpression"] = 237] = "SatisfiesExpression"; - SyntaxKind4[SyntaxKind4["TemplateSpan"] = 238] = "TemplateSpan"; - SyntaxKind4[SyntaxKind4["SemicolonClassElement"] = 239] = "SemicolonClassElement"; - SyntaxKind4[SyntaxKind4["Block"] = 240] = "Block"; - SyntaxKind4[SyntaxKind4["EmptyStatement"] = 241] = "EmptyStatement"; - SyntaxKind4[SyntaxKind4["VariableStatement"] = 242] = "VariableStatement"; - SyntaxKind4[SyntaxKind4["ExpressionStatement"] = 243] = "ExpressionStatement"; - SyntaxKind4[SyntaxKind4["IfStatement"] = 244] = "IfStatement"; - SyntaxKind4[SyntaxKind4["DoStatement"] = 245] = "DoStatement"; - SyntaxKind4[SyntaxKind4["WhileStatement"] = 246] = "WhileStatement"; - SyntaxKind4[SyntaxKind4["ForStatement"] = 247] = "ForStatement"; - SyntaxKind4[SyntaxKind4["ForInStatement"] = 248] = "ForInStatement"; - SyntaxKind4[SyntaxKind4["ForOfStatement"] = 249] = "ForOfStatement"; - SyntaxKind4[SyntaxKind4["ContinueStatement"] = 250] = "ContinueStatement"; - SyntaxKind4[SyntaxKind4["BreakStatement"] = 251] = "BreakStatement"; - SyntaxKind4[SyntaxKind4["ReturnStatement"] = 252] = "ReturnStatement"; - SyntaxKind4[SyntaxKind4["WithStatement"] = 253] = "WithStatement"; - SyntaxKind4[SyntaxKind4["SwitchStatement"] = 254] = "SwitchStatement"; - SyntaxKind4[SyntaxKind4["LabeledStatement"] = 255] = "LabeledStatement"; - SyntaxKind4[SyntaxKind4["ThrowStatement"] = 256] = "ThrowStatement"; - SyntaxKind4[SyntaxKind4["TryStatement"] = 257] = "TryStatement"; - SyntaxKind4[SyntaxKind4["DebuggerStatement"] = 258] = "DebuggerStatement"; - SyntaxKind4[SyntaxKind4["VariableDeclaration"] = 259] = "VariableDeclaration"; - SyntaxKind4[SyntaxKind4["VariableDeclarationList"] = 260] = "VariableDeclarationList"; - SyntaxKind4[SyntaxKind4["FunctionDeclaration"] = 261] = "FunctionDeclaration"; - SyntaxKind4[SyntaxKind4["ClassDeclaration"] = 262] = "ClassDeclaration"; - SyntaxKind4[SyntaxKind4["InterfaceDeclaration"] = 263] = "InterfaceDeclaration"; - SyntaxKind4[SyntaxKind4["TypeAliasDeclaration"] = 264] = "TypeAliasDeclaration"; - SyntaxKind4[SyntaxKind4["EnumDeclaration"] = 265] = "EnumDeclaration"; - SyntaxKind4[SyntaxKind4["ModuleDeclaration"] = 266] = "ModuleDeclaration"; - SyntaxKind4[SyntaxKind4["ModuleBlock"] = 267] = "ModuleBlock"; - SyntaxKind4[SyntaxKind4["CaseBlock"] = 268] = "CaseBlock"; - SyntaxKind4[SyntaxKind4["NamespaceExportDeclaration"] = 269] = "NamespaceExportDeclaration"; - SyntaxKind4[SyntaxKind4["ImportEqualsDeclaration"] = 270] = "ImportEqualsDeclaration"; - SyntaxKind4[SyntaxKind4["ImportDeclaration"] = 271] = "ImportDeclaration"; - SyntaxKind4[SyntaxKind4["ImportClause"] = 272] = "ImportClause"; - SyntaxKind4[SyntaxKind4["NamespaceImport"] = 273] = "NamespaceImport"; - SyntaxKind4[SyntaxKind4["NamedImports"] = 274] = "NamedImports"; - SyntaxKind4[SyntaxKind4["ImportSpecifier"] = 275] = "ImportSpecifier"; - SyntaxKind4[SyntaxKind4["ExportAssignment"] = 276] = "ExportAssignment"; - SyntaxKind4[SyntaxKind4["ExportDeclaration"] = 277] = "ExportDeclaration"; - SyntaxKind4[SyntaxKind4["NamedExports"] = 278] = "NamedExports"; - SyntaxKind4[SyntaxKind4["NamespaceExport"] = 279] = "NamespaceExport"; - SyntaxKind4[SyntaxKind4["ExportSpecifier"] = 280] = "ExportSpecifier"; - SyntaxKind4[SyntaxKind4["MissingDeclaration"] = 281] = "MissingDeclaration"; - SyntaxKind4[SyntaxKind4["ExternalModuleReference"] = 282] = "ExternalModuleReference"; - SyntaxKind4[SyntaxKind4["JsxElement"] = 283] = "JsxElement"; - SyntaxKind4[SyntaxKind4["JsxSelfClosingElement"] = 284] = "JsxSelfClosingElement"; - SyntaxKind4[SyntaxKind4["JsxOpeningElement"] = 285] = "JsxOpeningElement"; - SyntaxKind4[SyntaxKind4["JsxClosingElement"] = 286] = "JsxClosingElement"; - SyntaxKind4[SyntaxKind4["JsxFragment"] = 287] = "JsxFragment"; - SyntaxKind4[SyntaxKind4["JsxOpeningFragment"] = 288] = "JsxOpeningFragment"; - SyntaxKind4[SyntaxKind4["JsxClosingFragment"] = 289] = "JsxClosingFragment"; - SyntaxKind4[SyntaxKind4["JsxAttribute"] = 290] = "JsxAttribute"; - SyntaxKind4[SyntaxKind4["JsxAttributes"] = 291] = "JsxAttributes"; - SyntaxKind4[SyntaxKind4["JsxSpreadAttribute"] = 292] = "JsxSpreadAttribute"; - SyntaxKind4[SyntaxKind4["JsxExpression"] = 293] = "JsxExpression"; - SyntaxKind4[SyntaxKind4["JsxNamespacedName"] = 294] = "JsxNamespacedName"; - SyntaxKind4[SyntaxKind4["CaseClause"] = 295] = "CaseClause"; - SyntaxKind4[SyntaxKind4["DefaultClause"] = 296] = "DefaultClause"; - SyntaxKind4[SyntaxKind4["HeritageClause"] = 297] = "HeritageClause"; - SyntaxKind4[SyntaxKind4["CatchClause"] = 298] = "CatchClause"; - SyntaxKind4[SyntaxKind4["AssertClause"] = 299] = "AssertClause"; - SyntaxKind4[SyntaxKind4["AssertEntry"] = 300] = "AssertEntry"; - SyntaxKind4[SyntaxKind4["ImportTypeAssertionContainer"] = 301] = "ImportTypeAssertionContainer"; - SyntaxKind4[SyntaxKind4["PropertyAssignment"] = 302] = "PropertyAssignment"; - SyntaxKind4[SyntaxKind4["ShorthandPropertyAssignment"] = 303] = "ShorthandPropertyAssignment"; - SyntaxKind4[SyntaxKind4["SpreadAssignment"] = 304] = "SpreadAssignment"; - SyntaxKind4[SyntaxKind4["EnumMember"] = 305] = "EnumMember"; - SyntaxKind4[SyntaxKind4["UnparsedPrologue"] = 306] = "UnparsedPrologue"; - SyntaxKind4[SyntaxKind4["UnparsedPrepend"] = 307] = "UnparsedPrepend"; - SyntaxKind4[SyntaxKind4["UnparsedText"] = 308] = "UnparsedText"; - SyntaxKind4[SyntaxKind4["UnparsedInternalText"] = 309] = "UnparsedInternalText"; - SyntaxKind4[SyntaxKind4["UnparsedSyntheticReference"] = 310] = "UnparsedSyntheticReference"; - SyntaxKind4[SyntaxKind4["SourceFile"] = 311] = "SourceFile"; - SyntaxKind4[SyntaxKind4["Bundle"] = 312] = "Bundle"; - SyntaxKind4[SyntaxKind4["UnparsedSource"] = 313] = "UnparsedSource"; - SyntaxKind4[SyntaxKind4["InputFiles"] = 314] = "InputFiles"; - SyntaxKind4[SyntaxKind4["JSDocTypeExpression"] = 315] = "JSDocTypeExpression"; - SyntaxKind4[SyntaxKind4["JSDocNameReference"] = 316] = "JSDocNameReference"; - SyntaxKind4[SyntaxKind4["JSDocMemberName"] = 317] = "JSDocMemberName"; - SyntaxKind4[SyntaxKind4["JSDocAllType"] = 318] = "JSDocAllType"; - SyntaxKind4[SyntaxKind4["JSDocUnknownType"] = 319] = "JSDocUnknownType"; - SyntaxKind4[SyntaxKind4["JSDocNullableType"] = 320] = "JSDocNullableType"; - SyntaxKind4[SyntaxKind4["JSDocNonNullableType"] = 321] = "JSDocNonNullableType"; - SyntaxKind4[SyntaxKind4["JSDocOptionalType"] = 322] = "JSDocOptionalType"; - SyntaxKind4[SyntaxKind4["JSDocFunctionType"] = 323] = "JSDocFunctionType"; - SyntaxKind4[SyntaxKind4["JSDocVariadicType"] = 324] = "JSDocVariadicType"; - SyntaxKind4[SyntaxKind4["JSDocNamepathType"] = 325] = "JSDocNamepathType"; - SyntaxKind4[SyntaxKind4["JSDoc"] = 326] = "JSDoc"; - SyntaxKind4[SyntaxKind4["JSDocComment"] = 326 /* JSDoc */] = "JSDocComment"; - SyntaxKind4[SyntaxKind4["JSDocText"] = 327] = "JSDocText"; - SyntaxKind4[SyntaxKind4["JSDocTypeLiteral"] = 328] = "JSDocTypeLiteral"; - SyntaxKind4[SyntaxKind4["JSDocSignature"] = 329] = "JSDocSignature"; - SyntaxKind4[SyntaxKind4["JSDocLink"] = 330] = "JSDocLink"; - SyntaxKind4[SyntaxKind4["JSDocLinkCode"] = 331] = "JSDocLinkCode"; - SyntaxKind4[SyntaxKind4["JSDocLinkPlain"] = 332] = "JSDocLinkPlain"; - SyntaxKind4[SyntaxKind4["JSDocTag"] = 333] = "JSDocTag"; - SyntaxKind4[SyntaxKind4["JSDocAugmentsTag"] = 334] = "JSDocAugmentsTag"; - SyntaxKind4[SyntaxKind4["JSDocImplementsTag"] = 335] = "JSDocImplementsTag"; - SyntaxKind4[SyntaxKind4["JSDocAuthorTag"] = 336] = "JSDocAuthorTag"; - SyntaxKind4[SyntaxKind4["JSDocDeprecatedTag"] = 337] = "JSDocDeprecatedTag"; - SyntaxKind4[SyntaxKind4["JSDocClassTag"] = 338] = "JSDocClassTag"; - SyntaxKind4[SyntaxKind4["JSDocPublicTag"] = 339] = "JSDocPublicTag"; - SyntaxKind4[SyntaxKind4["JSDocPrivateTag"] = 340] = "JSDocPrivateTag"; - SyntaxKind4[SyntaxKind4["JSDocProtectedTag"] = 341] = "JSDocProtectedTag"; - SyntaxKind4[SyntaxKind4["JSDocReadonlyTag"] = 342] = "JSDocReadonlyTag"; - SyntaxKind4[SyntaxKind4["JSDocOverrideTag"] = 343] = "JSDocOverrideTag"; - SyntaxKind4[SyntaxKind4["JSDocCallbackTag"] = 344] = "JSDocCallbackTag"; - SyntaxKind4[SyntaxKind4["JSDocOverloadTag"] = 345] = "JSDocOverloadTag"; - SyntaxKind4[SyntaxKind4["JSDocEnumTag"] = 346] = "JSDocEnumTag"; - SyntaxKind4[SyntaxKind4["JSDocParameterTag"] = 347] = "JSDocParameterTag"; - SyntaxKind4[SyntaxKind4["JSDocReturnTag"] = 348] = "JSDocReturnTag"; - SyntaxKind4[SyntaxKind4["JSDocThisTag"] = 349] = "JSDocThisTag"; - SyntaxKind4[SyntaxKind4["JSDocTypeTag"] = 350] = "JSDocTypeTag"; - SyntaxKind4[SyntaxKind4["JSDocTemplateTag"] = 351] = "JSDocTemplateTag"; - SyntaxKind4[SyntaxKind4["JSDocTypedefTag"] = 352] = "JSDocTypedefTag"; - SyntaxKind4[SyntaxKind4["JSDocSeeTag"] = 353] = "JSDocSeeTag"; - SyntaxKind4[SyntaxKind4["JSDocPropertyTag"] = 354] = "JSDocPropertyTag"; - SyntaxKind4[SyntaxKind4["JSDocThrowsTag"] = 355] = "JSDocThrowsTag"; - SyntaxKind4[SyntaxKind4["JSDocSatisfiesTag"] = 356] = "JSDocSatisfiesTag"; - SyntaxKind4[SyntaxKind4["SyntaxList"] = 357] = "SyntaxList"; - SyntaxKind4[SyntaxKind4["NotEmittedStatement"] = 358] = "NotEmittedStatement"; - SyntaxKind4[SyntaxKind4["PartiallyEmittedExpression"] = 359] = "PartiallyEmittedExpression"; - SyntaxKind4[SyntaxKind4["CommaListExpression"] = 360] = "CommaListExpression"; - SyntaxKind4[SyntaxKind4["SyntheticReferenceExpression"] = 361] = "SyntheticReferenceExpression"; - SyntaxKind4[SyntaxKind4["Count"] = 362] = "Count"; + SyntaxKind4[SyntaxKind4["UsingKeyword"] = 160] = "UsingKeyword"; + SyntaxKind4[SyntaxKind4["FromKeyword"] = 161] = "FromKeyword"; + SyntaxKind4[SyntaxKind4["GlobalKeyword"] = 162] = "GlobalKeyword"; + SyntaxKind4[SyntaxKind4["BigIntKeyword"] = 163] = "BigIntKeyword"; + SyntaxKind4[SyntaxKind4["OverrideKeyword"] = 164] = "OverrideKeyword"; + SyntaxKind4[SyntaxKind4["OfKeyword"] = 165] = "OfKeyword"; + SyntaxKind4[SyntaxKind4["QualifiedName"] = 166] = "QualifiedName"; + SyntaxKind4[SyntaxKind4["ComputedPropertyName"] = 167] = "ComputedPropertyName"; + SyntaxKind4[SyntaxKind4["TypeParameter"] = 168] = "TypeParameter"; + SyntaxKind4[SyntaxKind4["Parameter"] = 169] = "Parameter"; + SyntaxKind4[SyntaxKind4["Decorator"] = 170] = "Decorator"; + SyntaxKind4[SyntaxKind4["PropertySignature"] = 171] = "PropertySignature"; + SyntaxKind4[SyntaxKind4["PropertyDeclaration"] = 172] = "PropertyDeclaration"; + SyntaxKind4[SyntaxKind4["MethodSignature"] = 173] = "MethodSignature"; + SyntaxKind4[SyntaxKind4["MethodDeclaration"] = 174] = "MethodDeclaration"; + SyntaxKind4[SyntaxKind4["ClassStaticBlockDeclaration"] = 175] = "ClassStaticBlockDeclaration"; + SyntaxKind4[SyntaxKind4["Constructor"] = 176] = "Constructor"; + SyntaxKind4[SyntaxKind4["GetAccessor"] = 177] = "GetAccessor"; + SyntaxKind4[SyntaxKind4["SetAccessor"] = 178] = "SetAccessor"; + SyntaxKind4[SyntaxKind4["CallSignature"] = 179] = "CallSignature"; + SyntaxKind4[SyntaxKind4["ConstructSignature"] = 180] = "ConstructSignature"; + SyntaxKind4[SyntaxKind4["IndexSignature"] = 181] = "IndexSignature"; + SyntaxKind4[SyntaxKind4["TypePredicate"] = 182] = "TypePredicate"; + SyntaxKind4[SyntaxKind4["TypeReference"] = 183] = "TypeReference"; + SyntaxKind4[SyntaxKind4["FunctionType"] = 184] = "FunctionType"; + SyntaxKind4[SyntaxKind4["ConstructorType"] = 185] = "ConstructorType"; + SyntaxKind4[SyntaxKind4["TypeQuery"] = 186] = "TypeQuery"; + SyntaxKind4[SyntaxKind4["TypeLiteral"] = 187] = "TypeLiteral"; + SyntaxKind4[SyntaxKind4["ArrayType"] = 188] = "ArrayType"; + SyntaxKind4[SyntaxKind4["TupleType"] = 189] = "TupleType"; + SyntaxKind4[SyntaxKind4["OptionalType"] = 190] = "OptionalType"; + SyntaxKind4[SyntaxKind4["RestType"] = 191] = "RestType"; + SyntaxKind4[SyntaxKind4["UnionType"] = 192] = "UnionType"; + SyntaxKind4[SyntaxKind4["IntersectionType"] = 193] = "IntersectionType"; + SyntaxKind4[SyntaxKind4["ConditionalType"] = 194] = "ConditionalType"; + SyntaxKind4[SyntaxKind4["InferType"] = 195] = "InferType"; + SyntaxKind4[SyntaxKind4["ParenthesizedType"] = 196] = "ParenthesizedType"; + SyntaxKind4[SyntaxKind4["ThisType"] = 197] = "ThisType"; + SyntaxKind4[SyntaxKind4["TypeOperator"] = 198] = "TypeOperator"; + SyntaxKind4[SyntaxKind4["IndexedAccessType"] = 199] = "IndexedAccessType"; + SyntaxKind4[SyntaxKind4["MappedType"] = 200] = "MappedType"; + SyntaxKind4[SyntaxKind4["LiteralType"] = 201] = "LiteralType"; + SyntaxKind4[SyntaxKind4["NamedTupleMember"] = 202] = "NamedTupleMember"; + SyntaxKind4[SyntaxKind4["TemplateLiteralType"] = 203] = "TemplateLiteralType"; + SyntaxKind4[SyntaxKind4["TemplateLiteralTypeSpan"] = 204] = "TemplateLiteralTypeSpan"; + SyntaxKind4[SyntaxKind4["ImportType"] = 205] = "ImportType"; + SyntaxKind4[SyntaxKind4["ObjectBindingPattern"] = 206] = "ObjectBindingPattern"; + SyntaxKind4[SyntaxKind4["ArrayBindingPattern"] = 207] = "ArrayBindingPattern"; + SyntaxKind4[SyntaxKind4["BindingElement"] = 208] = "BindingElement"; + SyntaxKind4[SyntaxKind4["ArrayLiteralExpression"] = 209] = "ArrayLiteralExpression"; + SyntaxKind4[SyntaxKind4["ObjectLiteralExpression"] = 210] = "ObjectLiteralExpression"; + SyntaxKind4[SyntaxKind4["PropertyAccessExpression"] = 211] = "PropertyAccessExpression"; + SyntaxKind4[SyntaxKind4["ElementAccessExpression"] = 212] = "ElementAccessExpression"; + SyntaxKind4[SyntaxKind4["CallExpression"] = 213] = "CallExpression"; + SyntaxKind4[SyntaxKind4["NewExpression"] = 214] = "NewExpression"; + SyntaxKind4[SyntaxKind4["TaggedTemplateExpression"] = 215] = "TaggedTemplateExpression"; + SyntaxKind4[SyntaxKind4["TypeAssertionExpression"] = 216] = "TypeAssertionExpression"; + SyntaxKind4[SyntaxKind4["ParenthesizedExpression"] = 217] = "ParenthesizedExpression"; + SyntaxKind4[SyntaxKind4["FunctionExpression"] = 218] = "FunctionExpression"; + SyntaxKind4[SyntaxKind4["ArrowFunction"] = 219] = "ArrowFunction"; + SyntaxKind4[SyntaxKind4["DeleteExpression"] = 220] = "DeleteExpression"; + SyntaxKind4[SyntaxKind4["TypeOfExpression"] = 221] = "TypeOfExpression"; + SyntaxKind4[SyntaxKind4["VoidExpression"] = 222] = "VoidExpression"; + SyntaxKind4[SyntaxKind4["AwaitExpression"] = 223] = "AwaitExpression"; + SyntaxKind4[SyntaxKind4["PrefixUnaryExpression"] = 224] = "PrefixUnaryExpression"; + SyntaxKind4[SyntaxKind4["PostfixUnaryExpression"] = 225] = "PostfixUnaryExpression"; + SyntaxKind4[SyntaxKind4["BinaryExpression"] = 226] = "BinaryExpression"; + SyntaxKind4[SyntaxKind4["ConditionalExpression"] = 227] = "ConditionalExpression"; + SyntaxKind4[SyntaxKind4["TemplateExpression"] = 228] = "TemplateExpression"; + SyntaxKind4[SyntaxKind4["YieldExpression"] = 229] = "YieldExpression"; + SyntaxKind4[SyntaxKind4["SpreadElement"] = 230] = "SpreadElement"; + SyntaxKind4[SyntaxKind4["ClassExpression"] = 231] = "ClassExpression"; + SyntaxKind4[SyntaxKind4["OmittedExpression"] = 232] = "OmittedExpression"; + SyntaxKind4[SyntaxKind4["ExpressionWithTypeArguments"] = 233] = "ExpressionWithTypeArguments"; + SyntaxKind4[SyntaxKind4["AsExpression"] = 234] = "AsExpression"; + SyntaxKind4[SyntaxKind4["NonNullExpression"] = 235] = "NonNullExpression"; + SyntaxKind4[SyntaxKind4["MetaProperty"] = 236] = "MetaProperty"; + SyntaxKind4[SyntaxKind4["SyntheticExpression"] = 237] = "SyntheticExpression"; + SyntaxKind4[SyntaxKind4["SatisfiesExpression"] = 238] = "SatisfiesExpression"; + SyntaxKind4[SyntaxKind4["TemplateSpan"] = 239] = "TemplateSpan"; + SyntaxKind4[SyntaxKind4["SemicolonClassElement"] = 240] = "SemicolonClassElement"; + SyntaxKind4[SyntaxKind4["Block"] = 241] = "Block"; + SyntaxKind4[SyntaxKind4["EmptyStatement"] = 242] = "EmptyStatement"; + SyntaxKind4[SyntaxKind4["VariableStatement"] = 243] = "VariableStatement"; + SyntaxKind4[SyntaxKind4["ExpressionStatement"] = 244] = "ExpressionStatement"; + SyntaxKind4[SyntaxKind4["IfStatement"] = 245] = "IfStatement"; + SyntaxKind4[SyntaxKind4["DoStatement"] = 246] = "DoStatement"; + SyntaxKind4[SyntaxKind4["WhileStatement"] = 247] = "WhileStatement"; + SyntaxKind4[SyntaxKind4["ForStatement"] = 248] = "ForStatement"; + SyntaxKind4[SyntaxKind4["ForInStatement"] = 249] = "ForInStatement"; + SyntaxKind4[SyntaxKind4["ForOfStatement"] = 250] = "ForOfStatement"; + SyntaxKind4[SyntaxKind4["ContinueStatement"] = 251] = "ContinueStatement"; + SyntaxKind4[SyntaxKind4["BreakStatement"] = 252] = "BreakStatement"; + SyntaxKind4[SyntaxKind4["ReturnStatement"] = 253] = "ReturnStatement"; + SyntaxKind4[SyntaxKind4["WithStatement"] = 254] = "WithStatement"; + SyntaxKind4[SyntaxKind4["SwitchStatement"] = 255] = "SwitchStatement"; + SyntaxKind4[SyntaxKind4["LabeledStatement"] = 256] = "LabeledStatement"; + SyntaxKind4[SyntaxKind4["ThrowStatement"] = 257] = "ThrowStatement"; + SyntaxKind4[SyntaxKind4["TryStatement"] = 258] = "TryStatement"; + SyntaxKind4[SyntaxKind4["DebuggerStatement"] = 259] = "DebuggerStatement"; + SyntaxKind4[SyntaxKind4["VariableDeclaration"] = 260] = "VariableDeclaration"; + SyntaxKind4[SyntaxKind4["VariableDeclarationList"] = 261] = "VariableDeclarationList"; + SyntaxKind4[SyntaxKind4["FunctionDeclaration"] = 262] = "FunctionDeclaration"; + SyntaxKind4[SyntaxKind4["ClassDeclaration"] = 263] = "ClassDeclaration"; + SyntaxKind4[SyntaxKind4["InterfaceDeclaration"] = 264] = "InterfaceDeclaration"; + SyntaxKind4[SyntaxKind4["TypeAliasDeclaration"] = 265] = "TypeAliasDeclaration"; + SyntaxKind4[SyntaxKind4["EnumDeclaration"] = 266] = "EnumDeclaration"; + SyntaxKind4[SyntaxKind4["ModuleDeclaration"] = 267] = "ModuleDeclaration"; + SyntaxKind4[SyntaxKind4["ModuleBlock"] = 268] = "ModuleBlock"; + SyntaxKind4[SyntaxKind4["CaseBlock"] = 269] = "CaseBlock"; + SyntaxKind4[SyntaxKind4["NamespaceExportDeclaration"] = 270] = "NamespaceExportDeclaration"; + SyntaxKind4[SyntaxKind4["ImportEqualsDeclaration"] = 271] = "ImportEqualsDeclaration"; + SyntaxKind4[SyntaxKind4["ImportDeclaration"] = 272] = "ImportDeclaration"; + SyntaxKind4[SyntaxKind4["ImportClause"] = 273] = "ImportClause"; + SyntaxKind4[SyntaxKind4["NamespaceImport"] = 274] = "NamespaceImport"; + SyntaxKind4[SyntaxKind4["NamedImports"] = 275] = "NamedImports"; + SyntaxKind4[SyntaxKind4["ImportSpecifier"] = 276] = "ImportSpecifier"; + SyntaxKind4[SyntaxKind4["ExportAssignment"] = 277] = "ExportAssignment"; + SyntaxKind4[SyntaxKind4["ExportDeclaration"] = 278] = "ExportDeclaration"; + SyntaxKind4[SyntaxKind4["NamedExports"] = 279] = "NamedExports"; + SyntaxKind4[SyntaxKind4["NamespaceExport"] = 280] = "NamespaceExport"; + SyntaxKind4[SyntaxKind4["ExportSpecifier"] = 281] = "ExportSpecifier"; + SyntaxKind4[SyntaxKind4["MissingDeclaration"] = 282] = "MissingDeclaration"; + SyntaxKind4[SyntaxKind4["ExternalModuleReference"] = 283] = "ExternalModuleReference"; + SyntaxKind4[SyntaxKind4["JsxElement"] = 284] = "JsxElement"; + SyntaxKind4[SyntaxKind4["JsxSelfClosingElement"] = 285] = "JsxSelfClosingElement"; + SyntaxKind4[SyntaxKind4["JsxOpeningElement"] = 286] = "JsxOpeningElement"; + SyntaxKind4[SyntaxKind4["JsxClosingElement"] = 287] = "JsxClosingElement"; + SyntaxKind4[SyntaxKind4["JsxFragment"] = 288] = "JsxFragment"; + SyntaxKind4[SyntaxKind4["JsxOpeningFragment"] = 289] = "JsxOpeningFragment"; + SyntaxKind4[SyntaxKind4["JsxClosingFragment"] = 290] = "JsxClosingFragment"; + SyntaxKind4[SyntaxKind4["JsxAttribute"] = 291] = "JsxAttribute"; + SyntaxKind4[SyntaxKind4["JsxAttributes"] = 292] = "JsxAttributes"; + SyntaxKind4[SyntaxKind4["JsxSpreadAttribute"] = 293] = "JsxSpreadAttribute"; + SyntaxKind4[SyntaxKind4["JsxExpression"] = 294] = "JsxExpression"; + SyntaxKind4[SyntaxKind4["JsxNamespacedName"] = 295] = "JsxNamespacedName"; + SyntaxKind4[SyntaxKind4["CaseClause"] = 296] = "CaseClause"; + SyntaxKind4[SyntaxKind4["DefaultClause"] = 297] = "DefaultClause"; + SyntaxKind4[SyntaxKind4["HeritageClause"] = 298] = "HeritageClause"; + SyntaxKind4[SyntaxKind4["CatchClause"] = 299] = "CatchClause"; + SyntaxKind4[SyntaxKind4["AssertClause"] = 300] = "AssertClause"; + SyntaxKind4[SyntaxKind4["AssertEntry"] = 301] = "AssertEntry"; + SyntaxKind4[SyntaxKind4["ImportTypeAssertionContainer"] = 302] = "ImportTypeAssertionContainer"; + SyntaxKind4[SyntaxKind4["PropertyAssignment"] = 303] = "PropertyAssignment"; + SyntaxKind4[SyntaxKind4["ShorthandPropertyAssignment"] = 304] = "ShorthandPropertyAssignment"; + SyntaxKind4[SyntaxKind4["SpreadAssignment"] = 305] = "SpreadAssignment"; + SyntaxKind4[SyntaxKind4["EnumMember"] = 306] = "EnumMember"; + SyntaxKind4[SyntaxKind4["UnparsedPrologue"] = 307] = "UnparsedPrologue"; + SyntaxKind4[SyntaxKind4["UnparsedPrepend"] = 308] = "UnparsedPrepend"; + SyntaxKind4[SyntaxKind4["UnparsedText"] = 309] = "UnparsedText"; + SyntaxKind4[SyntaxKind4["UnparsedInternalText"] = 310] = "UnparsedInternalText"; + SyntaxKind4[SyntaxKind4["UnparsedSyntheticReference"] = 311] = "UnparsedSyntheticReference"; + SyntaxKind4[SyntaxKind4["SourceFile"] = 312] = "SourceFile"; + SyntaxKind4[SyntaxKind4["Bundle"] = 313] = "Bundle"; + SyntaxKind4[SyntaxKind4["UnparsedSource"] = 314] = "UnparsedSource"; + SyntaxKind4[SyntaxKind4["InputFiles"] = 315] = "InputFiles"; + SyntaxKind4[SyntaxKind4["JSDocTypeExpression"] = 316] = "JSDocTypeExpression"; + SyntaxKind4[SyntaxKind4["JSDocNameReference"] = 317] = "JSDocNameReference"; + SyntaxKind4[SyntaxKind4["JSDocMemberName"] = 318] = "JSDocMemberName"; + SyntaxKind4[SyntaxKind4["JSDocAllType"] = 319] = "JSDocAllType"; + SyntaxKind4[SyntaxKind4["JSDocUnknownType"] = 320] = "JSDocUnknownType"; + SyntaxKind4[SyntaxKind4["JSDocNullableType"] = 321] = "JSDocNullableType"; + SyntaxKind4[SyntaxKind4["JSDocNonNullableType"] = 322] = "JSDocNonNullableType"; + SyntaxKind4[SyntaxKind4["JSDocOptionalType"] = 323] = "JSDocOptionalType"; + SyntaxKind4[SyntaxKind4["JSDocFunctionType"] = 324] = "JSDocFunctionType"; + SyntaxKind4[SyntaxKind4["JSDocVariadicType"] = 325] = "JSDocVariadicType"; + SyntaxKind4[SyntaxKind4["JSDocNamepathType"] = 326] = "JSDocNamepathType"; + SyntaxKind4[SyntaxKind4["JSDoc"] = 327] = "JSDoc"; + SyntaxKind4[SyntaxKind4["JSDocComment"] = 327 /* JSDoc */] = "JSDocComment"; + SyntaxKind4[SyntaxKind4["JSDocText"] = 328] = "JSDocText"; + SyntaxKind4[SyntaxKind4["JSDocTypeLiteral"] = 329] = "JSDocTypeLiteral"; + SyntaxKind4[SyntaxKind4["JSDocSignature"] = 330] = "JSDocSignature"; + SyntaxKind4[SyntaxKind4["JSDocLink"] = 331] = "JSDocLink"; + SyntaxKind4[SyntaxKind4["JSDocLinkCode"] = 332] = "JSDocLinkCode"; + SyntaxKind4[SyntaxKind4["JSDocLinkPlain"] = 333] = "JSDocLinkPlain"; + SyntaxKind4[SyntaxKind4["JSDocTag"] = 334] = "JSDocTag"; + SyntaxKind4[SyntaxKind4["JSDocAugmentsTag"] = 335] = "JSDocAugmentsTag"; + SyntaxKind4[SyntaxKind4["JSDocImplementsTag"] = 336] = "JSDocImplementsTag"; + SyntaxKind4[SyntaxKind4["JSDocAuthorTag"] = 337] = "JSDocAuthorTag"; + SyntaxKind4[SyntaxKind4["JSDocDeprecatedTag"] = 338] = "JSDocDeprecatedTag"; + SyntaxKind4[SyntaxKind4["JSDocClassTag"] = 339] = "JSDocClassTag"; + SyntaxKind4[SyntaxKind4["JSDocPublicTag"] = 340] = "JSDocPublicTag"; + SyntaxKind4[SyntaxKind4["JSDocPrivateTag"] = 341] = "JSDocPrivateTag"; + SyntaxKind4[SyntaxKind4["JSDocProtectedTag"] = 342] = "JSDocProtectedTag"; + SyntaxKind4[SyntaxKind4["JSDocReadonlyTag"] = 343] = "JSDocReadonlyTag"; + SyntaxKind4[SyntaxKind4["JSDocOverrideTag"] = 344] = "JSDocOverrideTag"; + SyntaxKind4[SyntaxKind4["JSDocCallbackTag"] = 345] = "JSDocCallbackTag"; + SyntaxKind4[SyntaxKind4["JSDocOverloadTag"] = 346] = "JSDocOverloadTag"; + SyntaxKind4[SyntaxKind4["JSDocEnumTag"] = 347] = "JSDocEnumTag"; + SyntaxKind4[SyntaxKind4["JSDocParameterTag"] = 348] = "JSDocParameterTag"; + SyntaxKind4[SyntaxKind4["JSDocReturnTag"] = 349] = "JSDocReturnTag"; + SyntaxKind4[SyntaxKind4["JSDocThisTag"] = 350] = "JSDocThisTag"; + SyntaxKind4[SyntaxKind4["JSDocTypeTag"] = 351] = "JSDocTypeTag"; + SyntaxKind4[SyntaxKind4["JSDocTemplateTag"] = 352] = "JSDocTemplateTag"; + SyntaxKind4[SyntaxKind4["JSDocTypedefTag"] = 353] = "JSDocTypedefTag"; + SyntaxKind4[SyntaxKind4["JSDocSeeTag"] = 354] = "JSDocSeeTag"; + SyntaxKind4[SyntaxKind4["JSDocPropertyTag"] = 355] = "JSDocPropertyTag"; + SyntaxKind4[SyntaxKind4["JSDocThrowsTag"] = 356] = "JSDocThrowsTag"; + SyntaxKind4[SyntaxKind4["JSDocSatisfiesTag"] = 357] = "JSDocSatisfiesTag"; + SyntaxKind4[SyntaxKind4["SyntaxList"] = 358] = "SyntaxList"; + SyntaxKind4[SyntaxKind4["NotEmittedStatement"] = 359] = "NotEmittedStatement"; + SyntaxKind4[SyntaxKind4["PartiallyEmittedExpression"] = 360] = "PartiallyEmittedExpression"; + SyntaxKind4[SyntaxKind4["CommaListExpression"] = 361] = "CommaListExpression"; + SyntaxKind4[SyntaxKind4["SyntheticReferenceExpression"] = 362] = "SyntheticReferenceExpression"; + SyntaxKind4[SyntaxKind4["Count"] = 363] = "Count"; SyntaxKind4[SyntaxKind4["FirstAssignment"] = 64 /* EqualsToken */] = "FirstAssignment"; SyntaxKind4[SyntaxKind4["LastAssignment"] = 79 /* CaretEqualsToken */] = "LastAssignment"; SyntaxKind4[SyntaxKind4["FirstCompoundAssignment"] = 65 /* PlusEqualsToken */] = "FirstCompoundAssignment"; @@ -3405,15 +3415,15 @@ var SyntaxKind = /* @__PURE__ */ ((SyntaxKind4) => { SyntaxKind4[SyntaxKind4["FirstReservedWord"] = 83 /* BreakKeyword */] = "FirstReservedWord"; SyntaxKind4[SyntaxKind4["LastReservedWord"] = 118 /* WithKeyword */] = "LastReservedWord"; SyntaxKind4[SyntaxKind4["FirstKeyword"] = 83 /* BreakKeyword */] = "FirstKeyword"; - SyntaxKind4[SyntaxKind4["LastKeyword"] = 164 /* OfKeyword */] = "LastKeyword"; + SyntaxKind4[SyntaxKind4["LastKeyword"] = 165 /* OfKeyword */] = "LastKeyword"; SyntaxKind4[SyntaxKind4["FirstFutureReservedWord"] = 119 /* ImplementsKeyword */] = "FirstFutureReservedWord"; SyntaxKind4[SyntaxKind4["LastFutureReservedWord"] = 127 /* YieldKeyword */] = "LastFutureReservedWord"; - SyntaxKind4[SyntaxKind4["FirstTypeNode"] = 181 /* TypePredicate */] = "FirstTypeNode"; - SyntaxKind4[SyntaxKind4["LastTypeNode"] = 204 /* ImportType */] = "LastTypeNode"; + SyntaxKind4[SyntaxKind4["FirstTypeNode"] = 182 /* TypePredicate */] = "FirstTypeNode"; + SyntaxKind4[SyntaxKind4["LastTypeNode"] = 205 /* ImportType */] = "LastTypeNode"; SyntaxKind4[SyntaxKind4["FirstPunctuation"] = 19 /* OpenBraceToken */] = "FirstPunctuation"; SyntaxKind4[SyntaxKind4["LastPunctuation"] = 79 /* CaretEqualsToken */] = "LastPunctuation"; SyntaxKind4[SyntaxKind4["FirstToken"] = 0 /* Unknown */] = "FirstToken"; - SyntaxKind4[SyntaxKind4["LastToken"] = 164 /* LastKeyword */] = "LastToken"; + SyntaxKind4[SyntaxKind4["LastToken"] = 165 /* LastKeyword */] = "LastToken"; SyntaxKind4[SyntaxKind4["FirstTriviaToken"] = 2 /* SingleLineCommentTrivia */] = "FirstTriviaToken"; SyntaxKind4[SyntaxKind4["LastTriviaToken"] = 7 /* ConflictMarkerTrivia */] = "LastTriviaToken"; SyntaxKind4[SyntaxKind4["FirstLiteralToken"] = 9 /* NumericLiteral */] = "FirstLiteralToken"; @@ -3422,56 +3432,59 @@ var SyntaxKind = /* @__PURE__ */ ((SyntaxKind4) => { SyntaxKind4[SyntaxKind4["LastTemplateToken"] = 18 /* TemplateTail */] = "LastTemplateToken"; SyntaxKind4[SyntaxKind4["FirstBinaryOperator"] = 30 /* LessThanToken */] = "FirstBinaryOperator"; SyntaxKind4[SyntaxKind4["LastBinaryOperator"] = 79 /* CaretEqualsToken */] = "LastBinaryOperator"; - SyntaxKind4[SyntaxKind4["FirstStatement"] = 242 /* VariableStatement */] = "FirstStatement"; - SyntaxKind4[SyntaxKind4["LastStatement"] = 258 /* DebuggerStatement */] = "LastStatement"; - SyntaxKind4[SyntaxKind4["FirstNode"] = 165 /* QualifiedName */] = "FirstNode"; - SyntaxKind4[SyntaxKind4["FirstJSDocNode"] = 315 /* JSDocTypeExpression */] = "FirstJSDocNode"; - SyntaxKind4[SyntaxKind4["LastJSDocNode"] = 356 /* JSDocSatisfiesTag */] = "LastJSDocNode"; - SyntaxKind4[SyntaxKind4["FirstJSDocTagNode"] = 333 /* JSDocTag */] = "FirstJSDocTagNode"; - SyntaxKind4[SyntaxKind4["LastJSDocTagNode"] = 356 /* JSDocSatisfiesTag */] = "LastJSDocTagNode"; + SyntaxKind4[SyntaxKind4["FirstStatement"] = 243 /* VariableStatement */] = "FirstStatement"; + SyntaxKind4[SyntaxKind4["LastStatement"] = 259 /* DebuggerStatement */] = "LastStatement"; + SyntaxKind4[SyntaxKind4["FirstNode"] = 166 /* QualifiedName */] = "FirstNode"; + SyntaxKind4[SyntaxKind4["FirstJSDocNode"] = 316 /* JSDocTypeExpression */] = "FirstJSDocNode"; + SyntaxKind4[SyntaxKind4["LastJSDocNode"] = 357 /* JSDocSatisfiesTag */] = "LastJSDocNode"; + SyntaxKind4[SyntaxKind4["FirstJSDocTagNode"] = 334 /* JSDocTag */] = "FirstJSDocTagNode"; + SyntaxKind4[SyntaxKind4["LastJSDocTagNode"] = 357 /* JSDocSatisfiesTag */] = "LastJSDocTagNode"; SyntaxKind4[SyntaxKind4["FirstContextualKeyword"] = 128 /* AbstractKeyword */] = "FirstContextualKeyword"; - SyntaxKind4[SyntaxKind4["LastContextualKeyword"] = 164 /* OfKeyword */] = "LastContextualKeyword"; + SyntaxKind4[SyntaxKind4["LastContextualKeyword"] = 165 /* OfKeyword */] = "LastContextualKeyword"; return SyntaxKind4; })(SyntaxKind || {}); var NodeFlags = /* @__PURE__ */ ((NodeFlags3) => { NodeFlags3[NodeFlags3["None"] = 0] = "None"; NodeFlags3[NodeFlags3["Let"] = 1] = "Let"; NodeFlags3[NodeFlags3["Const"] = 2] = "Const"; - NodeFlags3[NodeFlags3["NestedNamespace"] = 4] = "NestedNamespace"; - NodeFlags3[NodeFlags3["Synthesized"] = 8] = "Synthesized"; - NodeFlags3[NodeFlags3["Namespace"] = 16] = "Namespace"; - NodeFlags3[NodeFlags3["OptionalChain"] = 32] = "OptionalChain"; - NodeFlags3[NodeFlags3["ExportContext"] = 64] = "ExportContext"; - NodeFlags3[NodeFlags3["ContainsThis"] = 128] = "ContainsThis"; - NodeFlags3[NodeFlags3["HasImplicitReturn"] = 256] = "HasImplicitReturn"; - NodeFlags3[NodeFlags3["HasExplicitReturn"] = 512] = "HasExplicitReturn"; - NodeFlags3[NodeFlags3["GlobalAugmentation"] = 1024] = "GlobalAugmentation"; - NodeFlags3[NodeFlags3["HasAsyncFunctions"] = 2048] = "HasAsyncFunctions"; - NodeFlags3[NodeFlags3["DisallowInContext"] = 4096] = "DisallowInContext"; - NodeFlags3[NodeFlags3["YieldContext"] = 8192] = "YieldContext"; - NodeFlags3[NodeFlags3["DecoratorContext"] = 16384] = "DecoratorContext"; - NodeFlags3[NodeFlags3["AwaitContext"] = 32768] = "AwaitContext"; - NodeFlags3[NodeFlags3["DisallowConditionalTypesContext"] = 65536] = "DisallowConditionalTypesContext"; - NodeFlags3[NodeFlags3["ThisNodeHasError"] = 131072] = "ThisNodeHasError"; - NodeFlags3[NodeFlags3["JavaScriptFile"] = 262144] = "JavaScriptFile"; - NodeFlags3[NodeFlags3["ThisNodeOrAnySubNodesHasError"] = 524288] = "ThisNodeOrAnySubNodesHasError"; - NodeFlags3[NodeFlags3["HasAggregatedChildData"] = 1048576] = "HasAggregatedChildData"; - NodeFlags3[NodeFlags3["PossiblyContainsDynamicImport"] = 2097152] = "PossiblyContainsDynamicImport"; - NodeFlags3[NodeFlags3["PossiblyContainsImportMeta"] = 4194304] = "PossiblyContainsImportMeta"; - NodeFlags3[NodeFlags3["JSDoc"] = 8388608] = "JSDoc"; - NodeFlags3[NodeFlags3["Ambient"] = 16777216] = "Ambient"; - NodeFlags3[NodeFlags3["InWithStatement"] = 33554432] = "InWithStatement"; - NodeFlags3[NodeFlags3["JsonFile"] = 67108864] = "JsonFile"; - NodeFlags3[NodeFlags3["TypeCached"] = 134217728] = "TypeCached"; - NodeFlags3[NodeFlags3["Deprecated"] = 268435456] = "Deprecated"; - NodeFlags3[NodeFlags3["BlockScoped"] = 3] = "BlockScoped"; - NodeFlags3[NodeFlags3["ReachabilityCheckFlags"] = 768] = "ReachabilityCheckFlags"; - NodeFlags3[NodeFlags3["ReachabilityAndEmitFlags"] = 2816] = "ReachabilityAndEmitFlags"; - NodeFlags3[NodeFlags3["ContextFlags"] = 50720768] = "ContextFlags"; - NodeFlags3[NodeFlags3["TypeExcludesFlags"] = 40960] = "TypeExcludesFlags"; - NodeFlags3[NodeFlags3["PermanentlySetIncrementalFlags"] = 6291456] = "PermanentlySetIncrementalFlags"; - NodeFlags3[NodeFlags3["IdentifierHasExtendedUnicodeEscape"] = 128 /* ContainsThis */] = "IdentifierHasExtendedUnicodeEscape"; - NodeFlags3[NodeFlags3["IdentifierIsInJSDocNamespace"] = 2048 /* HasAsyncFunctions */] = "IdentifierIsInJSDocNamespace"; + NodeFlags3[NodeFlags3["Using"] = 4] = "Using"; + NodeFlags3[NodeFlags3["AwaitUsing"] = 6] = "AwaitUsing"; + NodeFlags3[NodeFlags3["NestedNamespace"] = 8] = "NestedNamespace"; + NodeFlags3[NodeFlags3["Synthesized"] = 16] = "Synthesized"; + NodeFlags3[NodeFlags3["Namespace"] = 32] = "Namespace"; + NodeFlags3[NodeFlags3["OptionalChain"] = 64] = "OptionalChain"; + NodeFlags3[NodeFlags3["ExportContext"] = 128] = "ExportContext"; + NodeFlags3[NodeFlags3["ContainsThis"] = 256] = "ContainsThis"; + NodeFlags3[NodeFlags3["HasImplicitReturn"] = 512] = "HasImplicitReturn"; + NodeFlags3[NodeFlags3["HasExplicitReturn"] = 1024] = "HasExplicitReturn"; + NodeFlags3[NodeFlags3["GlobalAugmentation"] = 2048] = "GlobalAugmentation"; + NodeFlags3[NodeFlags3["HasAsyncFunctions"] = 4096] = "HasAsyncFunctions"; + NodeFlags3[NodeFlags3["DisallowInContext"] = 8192] = "DisallowInContext"; + NodeFlags3[NodeFlags3["YieldContext"] = 16384] = "YieldContext"; + NodeFlags3[NodeFlags3["DecoratorContext"] = 32768] = "DecoratorContext"; + NodeFlags3[NodeFlags3["AwaitContext"] = 65536] = "AwaitContext"; + NodeFlags3[NodeFlags3["DisallowConditionalTypesContext"] = 131072] = "DisallowConditionalTypesContext"; + NodeFlags3[NodeFlags3["ThisNodeHasError"] = 262144] = "ThisNodeHasError"; + NodeFlags3[NodeFlags3["JavaScriptFile"] = 524288] = "JavaScriptFile"; + NodeFlags3[NodeFlags3["ThisNodeOrAnySubNodesHasError"] = 1048576] = "ThisNodeOrAnySubNodesHasError"; + NodeFlags3[NodeFlags3["HasAggregatedChildData"] = 2097152] = "HasAggregatedChildData"; + NodeFlags3[NodeFlags3["PossiblyContainsDynamicImport"] = 4194304] = "PossiblyContainsDynamicImport"; + NodeFlags3[NodeFlags3["PossiblyContainsImportMeta"] = 8388608] = "PossiblyContainsImportMeta"; + NodeFlags3[NodeFlags3["JSDoc"] = 16777216] = "JSDoc"; + NodeFlags3[NodeFlags3["Ambient"] = 33554432] = "Ambient"; + NodeFlags3[NodeFlags3["InWithStatement"] = 67108864] = "InWithStatement"; + NodeFlags3[NodeFlags3["JsonFile"] = 134217728] = "JsonFile"; + NodeFlags3[NodeFlags3["TypeCached"] = 268435456] = "TypeCached"; + NodeFlags3[NodeFlags3["Deprecated"] = 536870912] = "Deprecated"; + NodeFlags3[NodeFlags3["BlockScoped"] = 7] = "BlockScoped"; + NodeFlags3[NodeFlags3["Constant"] = 6] = "Constant"; + NodeFlags3[NodeFlags3["ReachabilityCheckFlags"] = 1536] = "ReachabilityCheckFlags"; + NodeFlags3[NodeFlags3["ReachabilityAndEmitFlags"] = 5632] = "ReachabilityAndEmitFlags"; + NodeFlags3[NodeFlags3["ContextFlags"] = 101441536] = "ContextFlags"; + NodeFlags3[NodeFlags3["TypeExcludesFlags"] = 81920] = "TypeExcludesFlags"; + NodeFlags3[NodeFlags3["PermanentlySetIncrementalFlags"] = 12582912] = "PermanentlySetIncrementalFlags"; + NodeFlags3[NodeFlags3["IdentifierHasExtendedUnicodeEscape"] = 256 /* ContainsThis */] = "IdentifierHasExtendedUnicodeEscape"; + NodeFlags3[NodeFlags3["IdentifierIsInJSDocNamespace"] = 4096 /* HasAsyncFunctions */] = "IdentifierIsInJSDocNamespace"; return NodeFlags3; })(NodeFlags || {}); var ModifierFlags = /* @__PURE__ */ ((ModifierFlags3) => { @@ -3749,7 +3762,8 @@ var SignatureFlags = /* @__PURE__ */ ((SignatureFlags4) => { SignatureFlags4[SignatureFlags4["IsOuterCallChain"] = 16] = "IsOuterCallChain"; SignatureFlags4[SignatureFlags4["IsUntypedSignatureInJSFile"] = 32] = "IsUntypedSignatureInJSFile"; SignatureFlags4[SignatureFlags4["IsNonInferrable"] = 64] = "IsNonInferrable"; - SignatureFlags4[SignatureFlags4["PropagatingFlags"] = 39] = "PropagatingFlags"; + SignatureFlags4[SignatureFlags4["IsSignatureCandidateForOverloadFailure"] = 128] = "IsSignatureCandidateForOverloadFailure"; + SignatureFlags4[SignatureFlags4["PropagatingFlags"] = 167] = "PropagatingFlags"; SignatureFlags4[SignatureFlags4["CallChainFlags"] = 24] = "CallChainFlags"; return SignatureFlags4; })(SignatureFlags || {}); @@ -3787,6 +3801,17 @@ var ModuleKind = /* @__PURE__ */ ((ModuleKind2) => { ModuleKind2[ModuleKind2["NodeNext"] = 199] = "NodeNext"; return ModuleKind2; })(ModuleKind || {}); +var ScriptKind = /* @__PURE__ */ ((ScriptKind3) => { + ScriptKind3[ScriptKind3["Unknown"] = 0] = "Unknown"; + ScriptKind3[ScriptKind3["JS"] = 1] = "JS"; + ScriptKind3[ScriptKind3["JSX"] = 2] = "JSX"; + ScriptKind3[ScriptKind3["TS"] = 3] = "TS"; + ScriptKind3[ScriptKind3["TSX"] = 4] = "TSX"; + ScriptKind3[ScriptKind3["External"] = 5] = "External"; + ScriptKind3[ScriptKind3["JSON"] = 6] = "JSON"; + ScriptKind3[ScriptKind3["Deferred"] = 7] = "Deferred"; + return ScriptKind3; +})(ScriptKind || {}); var TransformFlags = /* @__PURE__ */ ((TransformFlags3) => { TransformFlags3[TransformFlags3["None"] = 0] = "None"; TransformFlags3[TransformFlags3["ContainsTypeScript"] = 1] = "ContainsTypeScript"; @@ -4149,10 +4174,10 @@ function createDynamicPriorityPollingWatchFile(host) { pollingIntervalQueue(pollingInterval).pollScheduled = host.setTimeout(pollingInterval === 250 /* Low */ ? pollLowPollingIntervalQueue : pollPollingIntervalQueue, pollingInterval, pollingInterval === 250 /* Low */ ? "pollLowPollingIntervalQueue" : "pollPollingIntervalQueue", pollingIntervalQueue(pollingInterval)); } } -function createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames) { +function createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames2) { const fileWatcherCallbacks = createMultiMap(); const dirWatchers = /* @__PURE__ */ new Map(); - const toCanonicalName = createGetCanonicalFileName(useCaseSensitiveFileNames); + const toCanonicalName = createGetCanonicalFileName(useCaseSensitiveFileNames2); return nonPollingWatchFile; function nonPollingWatchFile(fileName, callback, _pollingInterval, fallbackOptions) { const filePath = toCanonicalName(fileName); @@ -4228,8 +4253,8 @@ function createFixedChunkSizePollingWatchFile(host) { pollScheduled = host.setTimeout(pollQueue, 2e3 /* High */, "pollQueue"); } } -function createSingleWatcherPerName(cache, useCaseSensitiveFileNames, name, callback, createWatcher) { - const toCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames); +function createSingleWatcherPerName(cache, useCaseSensitiveFileNames2, name, callback, createWatcher) { + const toCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2); const path = toCanonicalFileName(name); const existing = cache.get(path); if (existing) { @@ -4281,7 +4306,7 @@ function setSysLog(logger) { } function createDirectoryWatcherSupportingRecursive({ watchDirectory, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, getCurrentDirectory, getAccessibleSortedChildDirectories, fileSystemEntryExists, @@ -4293,8 +4318,8 @@ function createDirectoryWatcherSupportingRecursive({ const callbackCache = createMultiMap(); const cacheToUpdateChildWatches = /* @__PURE__ */ new Map(); let timerToUpdateChildWatches; - const filePathComparer = getStringComparer(!useCaseSensitiveFileNames); - const toCanonicalFilePath = createGetCanonicalFileName(useCaseSensitiveFileNames); + const filePathComparer = getStringComparer(!useCaseSensitiveFileNames2); + const toCanonicalFilePath = createGetCanonicalFileName(useCaseSensitiveFileNames2); return (dirName, callback, recursive, options) => recursive ? createDirectoryWatcher(dirName, options, callback) : watchDirectory(dirName, callback, recursive, options); function createDirectoryWatcher(dirName, options, callback) { const dirPath = toCanonicalFilePath(dirName); @@ -4461,12 +4486,12 @@ function createDirectoryWatcherSupportingRecursive({ } } function isIgnoredPath(path, options) { - return some(ignoredPaths, (searchPath) => isInPath(path, searchPath)) || isIgnoredByWatchOptions(path, options, useCaseSensitiveFileNames, getCurrentDirectory); + return some(ignoredPaths, (searchPath) => isInPath(path, searchPath)) || isIgnoredByWatchOptions(path, options, useCaseSensitiveFileNames2, getCurrentDirectory); } function isInPath(path, searchPath) { if (stringContains(path, searchPath)) return true; - if (useCaseSensitiveFileNames) + if (useCaseSensitiveFileNames2) return false; return stringContains(toCanonicalFilePath(path), searchPath); } @@ -4484,14 +4509,14 @@ function createFsWatchCallbackForFileWatcherCallback(fileName, callback, getModi } }; } -function isIgnoredByWatchOptions(pathToCheck, options, useCaseSensitiveFileNames, getCurrentDirectory) { - return ((options == null ? void 0 : options.excludeDirectories) || (options == null ? void 0 : options.excludeFiles)) && (matchesExclude(pathToCheck, options == null ? void 0 : options.excludeFiles, useCaseSensitiveFileNames, getCurrentDirectory()) || matchesExclude(pathToCheck, options == null ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames, getCurrentDirectory())); +function isIgnoredByWatchOptions(pathToCheck, options, useCaseSensitiveFileNames2, getCurrentDirectory) { + return ((options == null ? void 0 : options.excludeDirectories) || (options == null ? void 0 : options.excludeFiles)) && (matchesExclude(pathToCheck, options == null ? void 0 : options.excludeFiles, useCaseSensitiveFileNames2, getCurrentDirectory()) || matchesExclude(pathToCheck, options == null ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames2, getCurrentDirectory())); } -function createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames, getCurrentDirectory) { +function createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames2, getCurrentDirectory) { return (eventName, relativeFileName) => { if (eventName === "rename") { const fileName = !relativeFileName ? directoryName : normalizePath(combinePaths(directoryName, relativeFileName)); - if (!relativeFileName || !isIgnoredByWatchOptions(fileName, options, useCaseSensitiveFileNames, getCurrentDirectory)) { + if (!relativeFileName || !isIgnoredByWatchOptions(fileName, options, useCaseSensitiveFileNames2, getCurrentDirectory)) { callback(fileName); } } @@ -4504,7 +4529,7 @@ function createSystemWatchFunctions({ clearTimeout: clearTimeout2, fsWatchWorker, fileSystemEntryExists, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, getCurrentDirectory, fsSupportsRecursiveFsWatch, getAccessibleSortedChildDirectories, @@ -4576,7 +4601,7 @@ function createSystemWatchFunctions({ ); case 5 /* UseFsEventsOnParentDirectory */: if (!nonPollingWatchFile) { - nonPollingWatchFile = createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames); + nonPollingWatchFile = createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames2); } return nonPollingWatchFile(fileName, callback, pollingInterval, getFallbackOptions(options)); default: @@ -4625,7 +4650,7 @@ function createSystemWatchFunctions({ return fsWatch( directoryName, 1 /* Directory */, - createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames, getCurrentDirectory), + createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames2, getCurrentDirectory), recursive, 500 /* Medium */, getFallbackOptions(options) @@ -4633,7 +4658,7 @@ function createSystemWatchFunctions({ } if (!hostRecursiveDirectoryWatcher) { hostRecursiveDirectoryWatcher = createDirectoryWatcherSupportingRecursive({ - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, getCurrentDirectory, fileSystemEntryExists, getAccessibleSortedChildDirectories, @@ -4679,7 +4704,7 @@ function createSystemWatchFunctions({ return fsWatch( directoryName, 1 /* Directory */, - createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames, getCurrentDirectory), + createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames2, getCurrentDirectory), recursive, 500 /* Medium */, getFallbackOptions(watchDirectoryOptions) @@ -4707,7 +4732,7 @@ function createSystemWatchFunctions({ function pollingWatchFile(fileName, callback, pollingInterval, options) { return createSingleWatcherPerName( pollingWatches, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames2, fileName, callback, (cb) => pollingWatchFileWorker(fileName, cb, pollingInterval, options) @@ -4716,7 +4741,7 @@ function createSystemWatchFunctions({ function fsWatch(fileOrDirectory, entryKind, callback, recursive, fallbackPollingInterval, fallbackOptions) { return createSingleWatcherPerName( recursive ? fsWatchesRecursive : fsWatches, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames2, fileOrDirectory, callback, (cb) => fsWatchHandlingExistenceOnHost(fileOrDirectory, entryKind, cb, recursive, fallbackPollingInterval, fallbackOptions) @@ -4844,7 +4869,7 @@ var sys = (() => { const Buffer = require("buffer").Buffer; const isLinuxOrMacOs = process.platform === "linux" || process.platform === "darwin"; const platform = _os.platform(); - const useCaseSensitiveFileNames = isFileSystemCaseSensitive(); + const useCaseSensitiveFileNames2 = isFileSystemCaseSensitive(); const fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync; const executingFilePath = __filename.endsWith("sys.js") ? _path.join(_path.dirname(__dirname), "__fake__.js") : __filename; const fsSupportsRecursiveFsWatch = process.platform === "win32" || process.platform === "darwin"; @@ -4855,7 +4880,7 @@ var sys = (() => { setTimeout, clearTimeout, fsWatchWorker, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, getCurrentDirectory, fileSystemEntryExists, // Node 4.0 `fs.watch` function supports the "recursive" option on both OSX and Windows @@ -4872,7 +4897,7 @@ var sys = (() => { const nodeSystem = { args: process.argv.slice(2), newLine: _os.EOL, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, write(s) { process.stdout.write(s); }, @@ -4937,7 +4962,7 @@ var sys = (() => { disableCPUProfiler, cpuProfilingEnabled: () => !!activeSession || contains(process.execArgv, "--cpu-prof") || contains(process.execArgv, "--prof"), realpath, - debugMode: !!process.env.NODE_INSPECTOR_IPC || !!process.env.VSCODE_INSPECTOR_OPTIONS || some(process.execArgv, (arg) => /^--(inspect|debug)(-brk)?(=\d+)?$/i.test(arg)), + debugMode: !!process.env.NODE_INSPECTOR_IPC || !!process.env.VSCODE_INSPECTOR_OPTIONS || some(process.execArgv, (arg) => /^--(inspect|debug)(-brk)?(=\d+)?$/i.test(arg)) || !!process.recordreplay, tryEnableSourceMapsForHost() { try { require("source-map-support").install(); @@ -5001,12 +5026,12 @@ var sys = (() => { for (const node of profile.nodes) { if (node.callFrame.url) { const url = normalizeSlashes(node.callFrame.url); - if (containsPath(fileUrlRoot, url, useCaseSensitiveFileNames)) { + if (containsPath(fileUrlRoot, url, useCaseSensitiveFileNames2)) { node.callFrame.url = getRelativePathToDirectoryOrUrl( fileUrlRoot, url, fileUrlRoot, - createGetCanonicalFileName(useCaseSensitiveFileNames), + createGetCanonicalFileName(useCaseSensitiveFileNames2), /*isAbsolutePathAnUrl*/ true ); @@ -5186,7 +5211,7 @@ var sys = (() => { } } function readDirectory(path, extensions, excludes, includes, depth) { - return matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, process.cwd(), depth, getAccessibleFileSystemEntries, realpath); + return matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames2, process.cwd(), depth, getAccessibleFileSystemEntries, realpath); } function fileSystemEntryExists(path, entryKind) { const originalStackTraceLimit = Error.stackTraceLimit; @@ -5739,6 +5764,7 @@ var Diagnostics = { Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method: diag(1062, 1 /* Error */, "Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062", "Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."), An_export_assignment_cannot_be_used_in_a_namespace: diag(1063, 1 /* Error */, "An_export_assignment_cannot_be_used_in_a_namespace_1063", "An export assignment cannot be used in a namespace."), The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0: diag(1064, 1 /* Error */, "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064", "The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"), + The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type: diag(1065, 1 /* Error */, "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065", "The return type of an async function or method must be the global Promise type."), In_ambient_enum_declarations_member_initializer_must_be_constant_expression: diag(1066, 1 /* Error */, "In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066", "In ambient enum declarations member initializer must be constant expression."), Unexpected_token_A_constructor_method_accessor_or_property_was_expected: diag(1068, 1 /* Error */, "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068", "Unexpected token. A constructor, method, accessor, or property was expected."), Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces: diag(1069, 1 /* Error */, "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069", "Unexpected token. A type parameter name was expected without curly braces."), @@ -5768,6 +5794,7 @@ var Diagnostics = { A_return_statement_can_only_be_used_within_a_function_body: diag(1108, 1 /* Error */, "A_return_statement_can_only_be_used_within_a_function_body_1108", "A 'return' statement can only be used within a function body."), Expression_expected: diag(1109, 1 /* Error */, "Expression_expected_1109", "Expression expected."), Type_expected: diag(1110, 1 /* Error */, "Type_expected_1110", "Type expected."), + Private_field_0_must_be_declared_in_an_enclosing_class: diag(1111, 1 /* Error */, "Private_field_0_must_be_declared_in_an_enclosing_class_1111", "Private field '{0}' must be declared in an enclosing class."), A_default_clause_cannot_appear_more_than_once_in_a_switch_statement: diag(1113, 1 /* Error */, "A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113", "A 'default' clause cannot appear more than once in a 'switch' statement."), Duplicate_label_0: diag(1114, 1 /* Error */, "Duplicate_label_0_1114", "Duplicate label '{0}'."), A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement: diag(1115, 1 /* Error */, "A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115", "A 'continue' statement can only jump to a label of an enclosing iteration statement."), @@ -5802,9 +5829,8 @@ var Diagnostics = { Import_declarations_in_a_namespace_cannot_reference_a_module: diag(1147, 1 /* Error */, "Import_declarations_in_a_namespace_cannot_reference_a_module_1147", "Import declarations in a namespace cannot reference a module."), Cannot_use_imports_exports_or_module_augmentations_when_module_is_none: diag(1148, 1 /* Error */, "Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148", "Cannot use imports, exports, or module augmentations when '--module' is 'none'."), File_name_0_differs_from_already_included_file_name_1_only_in_casing: diag(1149, 1 /* Error */, "File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149", "File name '{0}' differs from already included file name '{1}' only in casing."), - const_declarations_must_be_initialized: diag(1155, 1 /* Error */, "const_declarations_must_be_initialized_1155", "'const' declarations must be initialized."), - const_declarations_can_only_be_declared_inside_a_block: diag(1156, 1 /* Error */, "const_declarations_can_only_be_declared_inside_a_block_1156", "'const' declarations can only be declared inside a block."), - let_declarations_can_only_be_declared_inside_a_block: diag(1157, 1 /* Error */, "let_declarations_can_only_be_declared_inside_a_block_1157", "'let' declarations can only be declared inside a block."), + _0_declarations_must_be_initialized: diag(1155, 1 /* Error */, "_0_declarations_must_be_initialized_1155", "'{0}' declarations must be initialized."), + _0_declarations_can_only_be_declared_inside_a_block: diag(1156, 1 /* Error */, "_0_declarations_can_only_be_declared_inside_a_block_1156", "'{0}' declarations can only be declared inside a block."), Unterminated_template_literal: diag(1160, 1 /* Error */, "Unterminated_template_literal_1160", "Unterminated template literal."), Unterminated_regular_expression_literal: diag(1161, 1 /* Error */, "Unterminated_regular_expression_literal_1161", "Unterminated regular expression literal."), An_object_member_cannot_be_declared_optional: diag(1162, 1 /* Error */, "An_object_member_cannot_be_declared_optional_1162", "An object member cannot be declared optional."), @@ -5986,8 +6012,6 @@ var Diagnostics = { Class_constructor_may_not_be_a_generator: diag(1368, 1 /* Error */, "Class_constructor_may_not_be_a_generator_1368", "Class constructor may not be a generator."), Did_you_mean_0: diag(1369, 3 /* Message */, "Did_you_mean_0_1369", "Did you mean '{0}'?"), This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error: diag(1371, 1 /* Error */, "This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371", "This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."), - Convert_to_type_only_import: diag(1373, 3 /* Message */, "Convert_to_type_only_import_1373", "Convert to type-only import"), - Convert_all_imports_not_used_as_a_value_to_type_only_imports: diag(1374, 3 /* Message */, "Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374", "Convert all imports not used as a value to type-only imports"), await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module: diag(1375, 1 /* Error */, "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375", "'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."), _0_was_imported_here: diag(1376, 3 /* Message */, "_0_was_imported_here_1376", "'{0}' was imported here."), _0_was_exported_here: diag(1377, 3 /* Message */, "_0_was_exported_here_1377", "'{0}' was exported here."), @@ -6091,6 +6115,11 @@ var Diagnostics = { Escape_sequence_0_is_not_allowed: diag(1488, 1 /* Error */, "Escape_sequence_0_is_not_allowed_1488", "Escape sequence '{0}' is not allowed."), Decimals_with_leading_zeros_are_not_allowed: diag(1489, 1 /* Error */, "Decimals_with_leading_zeros_are_not_allowed_1489", "Decimals with leading zeros are not allowed."), File_appears_to_be_binary: diag(1490, 1 /* Error */, "File_appears_to_be_binary_1490", "File appears to be binary."), + _0_modifier_cannot_appear_on_a_using_declaration: diag(1491, 1 /* Error */, "_0_modifier_cannot_appear_on_a_using_declaration_1491", "'{0}' modifier cannot appear on a 'using' declaration."), + _0_declarations_may_not_have_binding_patterns: diag(1492, 1 /* Error */, "_0_declarations_may_not_have_binding_patterns_1492", "'{0}' declarations may not have binding patterns."), + The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration: diag(1493, 1 /* Error */, "The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493", "The left-hand side of a 'for...in' statement cannot be a 'using' declaration."), + The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration: diag(1494, 1 /* Error */, "The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494", "The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."), + _0_modifier_cannot_appear_on_an_await_using_declaration: diag(1495, 1 /* Error */, "_0_modifier_cannot_appear_on_an_await_using_declaration_1495", "'{0}' modifier cannot appear on an 'await using' declaration."), The_types_of_0_are_incompatible_between_these_types: diag(2200, 1 /* Error */, "The_types_of_0_are_incompatible_between_these_types_2200", "The types of '{0}' are incompatible between these types."), The_types_returned_by_0_are_incompatible_between_these_types: diag(2201, 1 /* Error */, "The_types_returned_by_0_are_incompatible_between_these_types_2201", "The types returned by '{0}' are incompatible between these types."), Call_signature_return_types_0_and_1_are_incompatible: diag( @@ -6185,7 +6214,6 @@ var Diagnostics = { This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0: diag(2343, 1 /* Error */, "This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343", "This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."), Type_0_does_not_satisfy_the_constraint_1: diag(2344, 1 /* Error */, "Type_0_does_not_satisfy_the_constraint_1_2344", "Type '{0}' does not satisfy the constraint '{1}'."), Argument_of_type_0_is_not_assignable_to_parameter_of_type_1: diag(2345, 1 /* Error */, "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345", "Argument of type '{0}' is not assignable to parameter of type '{1}'."), - Call_target_does_not_contain_any_signatures: diag(2346, 1 /* Error */, "Call_target_does_not_contain_any_signatures_2346", "Call target does not contain any signatures."), Untyped_function_calls_may_not_accept_type_arguments: diag(2347, 1 /* Error */, "Untyped_function_calls_may_not_accept_type_arguments_2347", "Untyped function calls may not accept type arguments."), Value_of_type_0_is_not_callable_Did_you_mean_to_include_new: diag(2348, 1 /* Error */, "Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348", "Value of type '{0}' is not callable. Did you mean to include 'new'?"), This_expression_is_not_callable: diag(2349, 1 /* Error */, "This_expression_is_not_callable_2349", "This expression is not callable."), @@ -6637,6 +6665,11 @@ var Diagnostics = { A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead: diag(2846, 1 /* Error */, "A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846", "A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"), The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression: diag(2848, 1 /* Error */, "The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848", "The right-hand side of an 'instanceof' expression must not be an instantiation expression."), Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1: diag(2849, 1 /* Error */, "Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849", "Target signature provides too few arguments. Expected {0} or more, but got {1}."), + The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined: diag(2850, 1 /* Error */, "The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850", "The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."), + The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined: diag(2851, 1 /* Error */, "The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851", "The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."), + await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules: diag(2852, 1 /* Error */, "await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852", "'await using' statements are only allowed within async functions and at the top levels of modules."), + await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module: diag(2853, 1 /* Error */, "await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853", "'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."), + Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher: diag(2854, 1 /* Error */, "Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854", "Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."), Import_declaration_0_is_using_private_name_1: diag(4e3, 1 /* Error */, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."), Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, 1 /* Error */, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."), Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, 1 /* Error */, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."), @@ -6790,7 +6823,6 @@ var Diagnostics = { Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0: diag(5081, 1 /* Error */, "Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081", "Cannot find a tsconfig.json file at the current directory: {0}."), _0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1: diag(5082, 1 /* Error */, "_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082", "'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."), Cannot_read_file_0: diag(5083, 1 /* Error */, "Cannot_read_file_0_5083", "Cannot read file '{0}'."), - Tuple_members_must_all_have_names_or_all_not_have_names: diag(5084, 1 /* Error */, "Tuple_members_must_all_have_names_or_all_not_have_names_5084", "Tuple members must all have names or all not have names."), A_tuple_member_cannot_be_both_optional_and_rest: diag(5085, 1 /* Error */, "A_tuple_member_cannot_be_both_optional_and_rest_5085", "A tuple member cannot be both optional and rest."), A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type: diag(5086, 1 /* Error */, "A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086", "A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."), A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type: diag(5087, 1 /* Error */, "A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087", "A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."), @@ -6813,6 +6845,8 @@ var Diagnostics = { Use_0_instead: diag(5106, 3 /* Message */, "Use_0_instead_5106", "Use '{0}' instead."), Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error: diag(5107, 1 /* Error */, "Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107", `Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`), Option_0_1_has_been_removed_Please_remove_it_from_your_configuration: diag(5108, 1 /* Error */, "Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108", "Option '{0}={1}' has been removed. Please remove it from your configuration."), + Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1: diag(5109, 1 /* Error */, "Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109", "Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."), + Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1: diag(5110, 1 /* Error */, "Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110", "Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."), Generates_a_sourcemap_for_each_corresponding_d_ts_file: diag(6e3, 3 /* Message */, "Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000", "Generates a sourcemap for each corresponding '.d.ts' file."), Concatenate_and_emit_output_to_single_file: diag(6001, 3 /* Message */, "Concatenate_and_emit_output_to_single_file_6001", "Concatenate and emit output to single file."), Generates_corresponding_d_ts_file: diag(6002, 3 /* Message */, "Generates_corresponding_d_ts_file_6002", "Generates corresponding '.d.ts' file."), @@ -7193,6 +7227,8 @@ var Diagnostics = { Resolved_under_condition_0: diag(6414, 3 /* Message */, "Resolved_under_condition_0_6414", "Resolved under condition '{0}'."), Failed_to_resolve_under_condition_0: diag(6415, 3 /* Message */, "Failed_to_resolve_under_condition_0_6415", "Failed to resolve under condition '{0}'."), Exiting_conditional_exports: diag(6416, 3 /* Message */, "Exiting_conditional_exports_6416", "Exiting conditional exports."), + Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0: diag(6417, 3 /* Message */, "Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417", "Searching all ancestor node_modules directories for preferred extensions: {0}."), + Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0: diag(6418, 3 /* Message */, "Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418", "Searching all ancestor node_modules directories for fallback extensions: {0}."), The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1: diag(6500, 3 /* Message */, "The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500", "The expected type comes from property '{0}' which is declared here on type '{1}'"), The_expected_type_comes_from_this_index_signature: diag(6501, 3 /* Message */, "The_expected_type_comes_from_this_index_signature_6501", "The expected type comes from this index signature."), The_expected_type_comes_from_the_return_type_of_this_signature: diag(6502, 3 /* Message */, "The_expected_type_comes_from_the_return_type_of_this_signature_6502", "The expected type comes from the return type of this signature."), @@ -7431,6 +7467,7 @@ var Diagnostics = { Parameter_modifiers_can_only_be_used_in_TypeScript_files: diag(8012, 1 /* Error */, "Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012", "Parameter modifiers can only be used in TypeScript files."), Non_null_assertions_can_only_be_used_in_TypeScript_files: diag(8013, 1 /* Error */, "Non_null_assertions_can_only_be_used_in_TypeScript_files_8013", "Non-null assertions can only be used in TypeScript files."), Type_assertion_expressions_can_only_be_used_in_TypeScript_files: diag(8016, 1 /* Error */, "Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016", "Type assertion expressions can only be used in TypeScript files."), + Signature_declarations_can_only_be_used_in_TypeScript_files: diag(8017, 1 /* Error */, "Signature_declarations_can_only_be_used_in_TypeScript_files_8017", "Signature declarations can only be used in TypeScript files."), Report_errors_in_js_files: diag(8019, 3 /* Message */, "Report_errors_in_js_files_8019", "Report errors in .js files."), JSDoc_types_can_only_be_used_inside_documentation_comments: diag(8020, 1 /* Error */, "JSDoc_types_can_only_be_used_inside_documentation_comments_8020", "JSDoc types can only be used inside documentation comments."), JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags: diag(8021, 1 /* Error */, "JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021", "JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."), @@ -7705,6 +7742,14 @@ var Diagnostics = { Convert_all_typedef_to_TypeScript_types: diag(95177, 3 /* Message */, "Convert_all_typedef_to_TypeScript_types_95177", "Convert all typedef to TypeScript types."), Move_to_file: diag(95178, 3 /* Message */, "Move_to_file_95178", "Move to file"), Cannot_move_to_file_selected_file_is_invalid: diag(95179, 3 /* Message */, "Cannot_move_to_file_selected_file_is_invalid_95179", "Cannot move to file, selected file is invalid"), + Use_import_type: diag(95180, 3 /* Message */, "Use_import_type_95180", "Use 'import type'"), + Use_type_0: diag(95181, 3 /* Message */, "Use_type_0_95181", "Use 'type {0}'"), + Fix_all_with_type_only_imports: diag(95182, 3 /* Message */, "Fix_all_with_type_only_imports_95182", "Fix all with type-only imports"), + Cannot_move_statements_to_the_selected_file: diag(95183, 3 /* Message */, "Cannot_move_statements_to_the_selected_file_95183", "Cannot move statements to the selected file"), + Inline_variable: diag(95184, 3 /* Message */, "Inline_variable_95184", "Inline variable"), + Could_not_find_variable_to_inline: diag(95185, 3 /* Message */, "Could_not_find_variable_to_inline_95185", "Could not find variable to inline."), + Variables_with_multiple_declarations_cannot_be_inlined: diag(95186, 3 /* Message */, "Variables_with_multiple_declarations_cannot_be_inlined_95186", "Variables with multiple declarations cannot be inlined."), + Add_missing_comma_for_object_member_completion_0: diag(95187, 3 /* Message */, "Add_missing_comma_for_object_member_completion_0_95187", "Add missing comma for object member completion '{0}'."), No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer: diag(18004, 1 /* Error */, "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004", "No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."), Classes_may_not_have_a_field_named_constructor: diag(18006, 1 /* Error */, "Classes_may_not_have_a_field_named_constructor_18006", "Classes may not have a field named 'constructor'."), JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array: diag(18007, 1 /* Error */, "JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007", "JSX expressions may not use the comma operator. Did you mean to write an array?"), @@ -7731,8 +7776,8 @@ var Diagnostics = { Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment: diag(18034, 3 /* Message */, "Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034", "Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."), Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name: diag(18035, 1 /* Error */, "Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035", "Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."), Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator: diag(18036, 1 /* Error */, "Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036", "Class decorators can't be used with static private identifier. Consider removing the experimental decorator."), - Await_expression_cannot_be_used_inside_a_class_static_block: diag(18037, 1 /* Error */, "Await_expression_cannot_be_used_inside_a_class_static_block_18037", "Await expression cannot be used inside a class static block."), - For_await_loops_cannot_be_used_inside_a_class_static_block: diag(18038, 1 /* Error */, "For_await_loops_cannot_be_used_inside_a_class_static_block_18038", "'For await' loops cannot be used inside a class static block."), + await_expression_cannot_be_used_inside_a_class_static_block: diag(18037, 1 /* Error */, "await_expression_cannot_be_used_inside_a_class_static_block_18037", "'await' expression cannot be used inside a class static block."), + for_await_loops_cannot_be_used_inside_a_class_static_block: diag(18038, 1 /* Error */, "for_await_loops_cannot_be_used_inside_a_class_static_block_18038", "'for await' loops cannot be used inside a class static block."), Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block: diag(18039, 1 /* Error */, "Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039", "Invalid use of '{0}'. It cannot be used inside a class static block."), A_return_statement_cannot_be_used_inside_a_class_static_block: diag(18041, 1 /* Error */, "A_return_statement_cannot_be_used_inside_a_class_static_block_18041", "A 'return' statement cannot be used inside a class static block."), _0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation: diag(18042, 1 /* Error */, "_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042", "'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."), @@ -7746,7 +7791,8 @@ var Diagnostics = { The_value_0_cannot_be_used_here: diag(18050, 1 /* Error */, "The_value_0_cannot_be_used_here_18050", "The value '{0}' cannot be used here."), Compiler_option_0_cannot_be_given_an_empty_string: diag(18051, 1 /* Error */, "Compiler_option_0_cannot_be_given_an_empty_string_18051", "Compiler option '{0}' cannot be given an empty string."), Non_abstract_class_0_does_not_implement_all_abstract_members_of_1: diag(18052, 1 /* Error */, "Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052", "Non-abstract class '{0}' does not implement all abstract members of '{1}'"), - Its_type_0_is_not_a_valid_JSX_element_type: diag(18053, 1 /* Error */, "Its_type_0_is_not_a_valid_JSX_element_type_18053", "Its type '{0}' is not a valid JSX element type.") + Its_type_0_is_not_a_valid_JSX_element_type: diag(18053, 1 /* Error */, "Its_type_0_is_not_a_valid_JSX_element_type_18053", "Its type '{0}' is not a valid JSX element type."), + await_using_statements_cannot_be_used_inside_a_class_static_block: diag(18054, 1 /* Error */, "await_using_statements_cannot_be_used_inside_a_class_static_block_18054", "'await using' statements cannot be used inside a class static block.") }; // src/compiler/scanner.ts @@ -7763,7 +7809,7 @@ var textToKeywordObj = { as: 130 /* AsKeyword */, asserts: 131 /* AssertsKeyword */, assert: 132 /* AssertKeyword */, - bigint: 162 /* BigIntKeyword */, + bigint: 163 /* BigIntKeyword */, boolean: 136 /* BooleanKeyword */, break: 83 /* BreakKeyword */, case: 84 /* CaseKeyword */, @@ -7784,7 +7830,7 @@ var textToKeywordObj = { false: 97 /* FalseKeyword */, finally: 98 /* FinallyKeyword */, for: 99 /* ForKeyword */, - from: 160 /* FromKeyword */, + from: 161 /* FromKeyword */, function: 100 /* FunctionKeyword */, get: 139 /* GetKeyword */, if: 101 /* IfKeyword */, @@ -7809,11 +7855,11 @@ var textToKeywordObj = { private: 123 /* PrivateKeyword */, protected: 124 /* ProtectedKeyword */, public: 125 /* PublicKeyword */, - override: 163 /* OverrideKeyword */, + override: 164 /* OverrideKeyword */, out: 147 /* OutKeyword */, readonly: 148 /* ReadonlyKeyword */, require: 149 /* RequireKeyword */, - global: 161 /* GlobalKeyword */, + global: 162 /* GlobalKeyword */, return: 107 /* ReturnKeyword */, satisfies: 152 /* SatisfiesKeyword */, set: 153 /* SetKeyword */, @@ -7831,6 +7877,7 @@ var textToKeywordObj = { undefined: 157 /* UndefinedKeyword */, unique: 158 /* UniqueKeyword */, unknown: 159 /* UnknownKeyword */, + using: 160 /* UsingKeyword */, var: 115 /* VarKeyword */, void: 116 /* VoidKeyword */, while: 117 /* WhileKeyword */, @@ -7838,7 +7885,7 @@ var textToKeywordObj = { yield: 127 /* YieldKeyword */, async: 134 /* AsyncKeyword */, await: 135 /* AwaitKeyword */, - of: 164 /* OfKeyword */ + of: 165 /* OfKeyword */ }; var textToKeyword = new Map(Object.entries(textToKeywordObj)); var textToToken = new Map(Object.entries({ @@ -8528,7 +8575,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan if (withMinus) start2--; error(Diagnostics.Octal_literals_are_not_allowed_Use_the_syntax_0, start2, pos - start2, literal); - return { type: 9 /* NumericLiteral */, value: tokenValue }; + return 9 /* NumericLiteral */; } } else { mainFragment = scanNumberFragment(); @@ -8568,20 +8615,18 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan } if (tokenFlags & 8192 /* ContainsLeadingZero */) { error(Diagnostics.Decimals_with_leading_zeros_are_not_allowed, start2, end2 - start2); - return { type: 9 /* NumericLiteral */, value: "" + +result }; + tokenValue = "" + +result; + return 9 /* NumericLiteral */; } if (decimalFragment !== void 0 || tokenFlags & 16 /* Scientific */) { checkForIdentifierStartAfterNumericLiteral(start2, decimalFragment === void 0 && !!(tokenFlags & 16 /* Scientific */)); - return { - type: 9 /* NumericLiteral */, - value: "" + +result - // if value is not an integer, it can be safely coerced to a number - }; + tokenValue = "" + +result; + return 9 /* NumericLiteral */; } else { tokenValue = result; const type = checkBigIntSuffix(); checkForIdentifierStartAfterNumericLiteral(start2); - return { type, value: tokenValue }; + return type; } } function checkForIdentifierStartAfterNumericLiteral(numericStart, isScientific) { @@ -9190,7 +9235,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan return token = 41 /* MinusToken */; case 46 /* dot */: if (isDigit(text.charCodeAt(pos + 1))) { - tokenValue = scanNumber().value; + scanNumber(); return token = 9 /* NumericLiteral */; } if (text.charCodeAt(pos + 1) === 46 /* dot */ && text.charCodeAt(pos + 2) === 46 /* dot */) { @@ -9308,8 +9353,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan case 55 /* _7 */: case 56 /* _8 */: case 57 /* _9 */: - ({ type: token, value: tokenValue } = scanNumber()); - return token; + return token = scanNumber(); case 58 /* colon */: pos++; return token = 59 /* ColonToken */; @@ -10026,7 +10070,7 @@ function createTextChangeRange(span, newLength) { } var unchangedTextChangeRange = createTextChangeRange(createTextSpan(0, 0), 0); function isParameterPropertyDeclaration(node, parent) { - return isParameter(node) && hasSyntacticModifier(node, 16476 /* ParameterPropertyModifier */) && parent.kind === 175 /* Constructor */; + return isParameter(node) && hasSyntacticModifier(node, 16476 /* ParameterPropertyModifier */) && parent.kind === 176 /* Constructor */; } function walkUpBindingElementsAndPatterns(binding) { let node = binding.parent; @@ -10040,14 +10084,14 @@ function getCombinedFlags(node, getFlags) { node = walkUpBindingElementsAndPatterns(node); } let flags = getFlags(node); - if (node.kind === 259 /* VariableDeclaration */) { + if (node.kind === 260 /* VariableDeclaration */) { node = node.parent; } - if (node && node.kind === 260 /* VariableDeclarationList */) { + if (node && node.kind === 261 /* VariableDeclarationList */) { flags |= getFlags(node); node = node.parent; } - if (node && node.kind === 242 /* VariableStatement */) { + if (node && node.kind === 243 /* VariableStatement */) { flags |= getFlags(node); } return flags; @@ -10056,12 +10100,15 @@ function getCombinedModifierFlags(node) { return getCombinedFlags(node, getEffectiveModifierFlags); } function getCombinedNodeFlags(node) { - return getCombinedFlags(node, (n) => n.flags); + return getCombinedFlags(node, getNodeFlags); +} +function getNodeFlags(node) { + return node.flags; } var supportedLocaleDirectories = ["cs", "de", "es", "fr", "it", "ja", "ko", "pl", "pt-br", "ru", "tr", "zh-cn", "zh-tw"]; function validateLocaleAndSetLanguage(locale, sys2, errors) { const lowerCaseLocale = locale.toLowerCase(); - const matchResult = /^([a-z]+)([_\-]([a-z]+))?$/.exec(lowerCaseLocale); + const matchResult = /^([a-z]+)([_-]([a-z]+))?$/.exec(lowerCaseLocale); if (!matchResult) { if (errors) { errors.push(createCompilerDiagnostic(Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1, "en", "ja-jp")); @@ -10134,7 +10181,7 @@ function findAncestor(node, callback) { return void 0; } function isParseTreeNode(node) { - return (node.flags & 8 /* Synthesized */) === 0; + return (node.flags & 16 /* Synthesized */) === 0; } function getParseTreeNode(node, nodeTest) { if (node === void 0 || isParseTreeNode(node)) { @@ -10177,30 +10224,30 @@ function nameForNamelessJSDocTypedef(declaration) { return getDeclarationIdentifier(hostNode); } switch (hostNode.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: if (hostNode.declarationList && hostNode.declarationList.declarations[0]) { return getDeclarationIdentifier(hostNode.declarationList.declarations[0]); } break; - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: let expr = hostNode.expression; - if (expr.kind === 225 /* BinaryExpression */ && expr.operatorToken.kind === 64 /* EqualsToken */) { + if (expr.kind === 226 /* BinaryExpression */ && expr.operatorToken.kind === 64 /* EqualsToken */) { expr = expr.left; } switch (expr.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return expr.name; - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: const arg = expr.argumentExpression; if (isIdentifier(arg)) { return arg; } } break; - case 216 /* ParenthesizedExpression */: { + case 217 /* ParenthesizedExpression */: { return getDeclarationIdentifier(hostNode.expression); } - case 255 /* LabeledStatement */: { + case 256 /* LabeledStatement */: { if (isDeclaration(hostNode.statement) || isExpression(hostNode.statement)) { return getDeclarationIdentifier(hostNode.statement); } @@ -10231,16 +10278,16 @@ function getNonAssignedNameOfDeclaration(declaration) { switch (declaration.kind) { case 80 /* Identifier */: return declaration; - case 354 /* JSDocPropertyTag */: - case 347 /* JSDocParameterTag */: { + case 355 /* JSDocPropertyTag */: + case 348 /* JSDocParameterTag */: { const { name } = declaration; - if (name.kind === 165 /* QualifiedName */) { + if (name.kind === 166 /* QualifiedName */) { return name.right; } break; } - case 212 /* CallExpression */: - case 225 /* BinaryExpression */: { + case 213 /* CallExpression */: + case 226 /* BinaryExpression */: { const expr2 = declaration; switch (getAssignmentDeclarationKind(expr2)) { case 1 /* ExportsProperty */: @@ -10256,15 +10303,15 @@ function getNonAssignedNameOfDeclaration(declaration) { return void 0; } } - case 352 /* JSDocTypedefTag */: + case 353 /* JSDocTypedefTag */: return getNameOfJSDocTypedef(declaration); - case 346 /* JSDocEnumTag */: + case 347 /* JSDocEnumTag */: return nameForNamelessJSDocTypedef(declaration); - case 276 /* ExportAssignment */: { + case 277 /* ExportAssignment */: { const { expression } = declaration; return isIdentifier(expression) ? expression : void 0; } - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: const expr = declaration; if (isBindableStaticElementAccessExpression(expr)) { return expr.argumentExpression; @@ -10486,10 +10533,10 @@ function getAllJSDocTags(node, predicate) { return getJSDocTags(node).filter(predicate); } function getTextOfJSDocComment(comment) { - return typeof comment === "string" ? comment : comment == null ? void 0 : comment.map((c) => c.kind === 327 /* JSDocText */ ? c.text : formatJSDocLink(c)).join(""); + return typeof comment === "string" ? comment : comment == null ? void 0 : comment.map((c) => c.kind === 328 /* JSDocText */ ? c.text : formatJSDocLink(c)).join(""); } function formatJSDocLink(link) { - const kind = link.kind === 330 /* JSDocLink */ ? "link" : link.kind === 331 /* JSDocLinkCode */ ? "linkcode" : "linkplain"; + const kind = link.kind === 331 /* JSDocLink */ ? "link" : link.kind === 332 /* JSDocLinkCode */ ? "linkcode" : "linkplain"; const name = link.name ? entityNameToString(link.name) : ""; const space = link.name && link.text.startsWith("://") ? "" : " "; return `{@${kind} ${name}${space}${link.text}}`; @@ -10505,7 +10552,7 @@ function getEffectiveTypeParameterDeclarations(node) { return emptyArray; } if (isJSDocTypeAlias(node)) { - Debug.assert(node.parent.kind === 326 /* JSDoc */); + Debug.assert(node.parent.kind === 327 /* JSDoc */); return flatMap(node.parent.tags, (tag) => isJSDocTemplateTag(tag) ? tag.typeParameters : void 0); } if (node.typeParameters) { @@ -10533,20 +10580,20 @@ function isMemberName(node) { return node.kind === 80 /* Identifier */ || node.kind === 81 /* PrivateIdentifier */; } function isGetOrSetAccessorDeclaration(node) { - return node.kind === 177 /* SetAccessor */ || node.kind === 176 /* GetAccessor */; + return node.kind === 178 /* SetAccessor */ || node.kind === 177 /* GetAccessor */; } function isPropertyAccessChain(node) { - return isPropertyAccessExpression(node) && !!(node.flags & 32 /* OptionalChain */); + return isPropertyAccessExpression(node) && !!(node.flags & 64 /* OptionalChain */); } function isElementAccessChain(node) { - return isElementAccessExpression(node) && !!(node.flags & 32 /* OptionalChain */); + return isElementAccessExpression(node) && !!(node.flags & 64 /* OptionalChain */); } function isCallChain(node) { - return isCallExpression(node) && !!(node.flags & 32 /* OptionalChain */); + return isCallExpression(node) && !!(node.flags & 64 /* OptionalChain */); } function isOptionalChain(node) { const kind = node.kind; - return !!(node.flags & 32 /* OptionalChain */) && (kind === 210 /* PropertyAccessExpression */ || kind === 211 /* ElementAccessExpression */ || kind === 212 /* CallExpression */ || kind === 234 /* NonNullExpression */); + return !!(node.flags & 64 /* OptionalChain */) && (kind === 211 /* PropertyAccessExpression */ || kind === 212 /* ElementAccessExpression */ || kind === 213 /* CallExpression */ || kind === 235 /* NonNullExpression */); } function isOptionalChainRoot(node) { return isOptionalChain(node) && !isNonNullExpression(node) && !!node.questionDotToken; @@ -10558,7 +10605,7 @@ function isOutermostOptionalChain(node) { return !isOptionalChain(node.parent) || isOptionalChainRoot(node.parent) || node !== node.parent.expression; } function isNullishCoalesce(node) { - return node.kind === 225 /* BinaryExpression */ && node.operatorToken.kind === 61 /* QuestionQuestionToken */; + return node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 61 /* QuestionQuestionToken */; } function isConstTypeReference(node) { return isTypeReferenceNode(node) && isIdentifier(node.typeName) && node.typeName.escapedText === "const" && !node.typeArguments; @@ -10567,31 +10614,31 @@ function skipPartiallyEmittedExpressions(node) { return skipOuterExpressions(node, 8 /* PartiallyEmittedExpressions */); } function isNonNullChain(node) { - return isNonNullExpression(node) && !!(node.flags & 32 /* OptionalChain */); + return isNonNullExpression(node) && !!(node.flags & 64 /* OptionalChain */); } function isNamedExportBindings(node) { - return node.kind === 279 /* NamespaceExport */ || node.kind === 278 /* NamedExports */; + return node.kind === 280 /* NamespaceExport */ || node.kind === 279 /* NamedExports */; } function isUnparsedTextLike(node) { switch (node.kind) { - case 308 /* UnparsedText */: - case 309 /* UnparsedInternalText */: + case 309 /* UnparsedText */: + case 310 /* UnparsedInternalText */: return true; default: return false; } } function isUnparsedNode(node) { - return isUnparsedTextLike(node) || node.kind === 306 /* UnparsedPrologue */ || node.kind === 310 /* UnparsedSyntheticReference */; + return isUnparsedTextLike(node) || node.kind === 307 /* UnparsedPrologue */ || node.kind === 311 /* UnparsedSyntheticReference */; } function isJSDocPropertyLikeTag(node) { - return node.kind === 354 /* JSDocPropertyTag */ || node.kind === 347 /* JSDocParameterTag */; + return node.kind === 355 /* JSDocPropertyTag */ || node.kind === 348 /* JSDocParameterTag */; } function isNodeKind(kind) { - return kind >= 165 /* FirstNode */; + return kind >= 166 /* FirstNode */; } function isTokenKind(kind) { - return kind >= 0 /* FirstToken */ && kind <= 164 /* LastToken */; + return kind >= 0 /* FirstToken */ && kind <= 165 /* LastToken */; } function isNodeArray(array) { return hasProperty(array, "pos") && hasProperty(array, "end"); @@ -10604,11 +10651,11 @@ function isLiteralExpression(node) { } function isLiteralExpressionOfObject(node) { switch (node.kind) { - case 209 /* ObjectLiteralExpression */: - case 208 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: + case 209 /* ArrayLiteralExpression */: case 14 /* RegularExpressionLiteral */: - case 217 /* FunctionExpression */: - case 230 /* ClassExpression */: + case 218 /* FunctionExpression */: + case 231 /* ClassExpression */: return true; } return false; @@ -10625,23 +10672,23 @@ function isImportOrExportSpecifier(node) { } function isTypeOnlyImportDeclaration(node) { switch (node.kind) { - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: return node.isTypeOnly || node.parent.parent.isTypeOnly; - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: return node.parent.isTypeOnly; - case 272 /* ImportClause */: - case 270 /* ImportEqualsDeclaration */: + case 273 /* ImportClause */: + case 271 /* ImportEqualsDeclaration */: return node.isTypeOnly; } return false; } function isTypeOnlyExportDeclaration(node) { switch (node.kind) { - case 280 /* ExportSpecifier */: + case 281 /* ExportSpecifier */: return node.isTypeOnly || node.parent.parent.isTypeOnly; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return node.isTypeOnly && !!node.moduleSpecifier && !node.exportClause; - case 279 /* NamespaceExport */: + case 280 /* NamespaceExport */: return node.parent.isTypeOnly; } return false; @@ -10660,6 +10707,10 @@ function isGeneratedPrivateIdentifier(node) { var _a; return isPrivateIdentifier(node) && ((_a = node.emitNode) == null ? void 0 : _a.autoGenerate) !== void 0; } +function isFileLevelReservedGeneratedIdentifier(node) { + const flags = node.emitNode.autoGenerate.flags; + return !!(flags & 32 /* FileLevel */) && !!(flags & 16 /* Optimistic */) && !!(flags & 8 /* ReservedInNestedScopes */); +} function isPrivateIdentifierClassElementDeclaration(node) { return (isPropertyDeclaration(node) || isMethodOrAccessor(node)) && isPrivateIdentifier(node.name); } @@ -10682,7 +10733,7 @@ function isModifierKind(token) { case 148 /* ReadonlyKeyword */: case 126 /* StaticKeyword */: case 147 /* OutKeyword */: - case 163 /* OverrideKeyword */: + case 164 /* OverrideKeyword */: return true; } return false; @@ -10691,22 +10742,22 @@ function isParameterPropertyModifier(kind) { return !!(modifierToFlag(kind) & 16476 /* ParameterPropertyModifier */); } function isClassMemberModifier(idToken) { - return isParameterPropertyModifier(idToken) || idToken === 126 /* StaticKeyword */ || idToken === 163 /* OverrideKeyword */ || idToken === 129 /* AccessorKeyword */; + return isParameterPropertyModifier(idToken) || idToken === 126 /* StaticKeyword */ || idToken === 164 /* OverrideKeyword */ || idToken === 129 /* AccessorKeyword */; } function isModifier(node) { return isModifierKind(node.kind); } function isEntityName(node) { const kind = node.kind; - return kind === 165 /* QualifiedName */ || kind === 80 /* Identifier */; + return kind === 166 /* QualifiedName */ || kind === 80 /* Identifier */; } function isPropertyName(node) { const kind = node.kind; - return kind === 80 /* Identifier */ || kind === 81 /* PrivateIdentifier */ || kind === 11 /* StringLiteral */ || kind === 9 /* NumericLiteral */ || kind === 166 /* ComputedPropertyName */; + return kind === 80 /* Identifier */ || kind === 81 /* PrivateIdentifier */ || kind === 11 /* StringLiteral */ || kind === 9 /* NumericLiteral */ || kind === 167 /* ComputedPropertyName */; } function isBindingName(node) { const kind = node.kind; - return kind === 80 /* Identifier */ || kind === 205 /* ObjectBindingPattern */ || kind === 206 /* ArrayBindingPattern */; + return kind === 80 /* Identifier */ || kind === 206 /* ObjectBindingPattern */ || kind === 207 /* ArrayBindingPattern */; } function isFunctionLike(node) { return !!node && isFunctionLikeKind(node.kind); @@ -10722,13 +10773,13 @@ function isBooleanLiteral(node) { } function isFunctionLikeDeclarationKind(kind) { switch (kind) { - case 261 /* FunctionDeclaration */: - case 173 /* MethodDeclaration */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return true; default: return false; @@ -10736,14 +10787,14 @@ function isFunctionLikeDeclarationKind(kind) { } function isFunctionLikeKind(kind) { switch (kind) { - case 172 /* MethodSignature */: - case 178 /* CallSignature */: - case 329 /* JSDocSignature */: - case 179 /* ConstructSignature */: - case 180 /* IndexSignature */: - case 183 /* FunctionType */: - case 323 /* JSDocFunctionType */: - case 184 /* ConstructorType */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 330 /* JSDocSignature */: + case 180 /* ConstructSignature */: + case 181 /* IndexSignature */: + case 184 /* FunctionType */: + case 324 /* JSDocFunctionType */: + case 185 /* ConstructorType */: return true; default: return isFunctionLikeDeclarationKind(kind); @@ -10754,22 +10805,22 @@ function isFunctionOrModuleBlock(node) { } function isClassElement(node) { const kind = node.kind; - return kind === 175 /* Constructor */ || kind === 171 /* PropertyDeclaration */ || kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */ || kind === 180 /* IndexSignature */ || kind === 174 /* ClassStaticBlockDeclaration */ || kind === 239 /* SemicolonClassElement */; + return kind === 176 /* Constructor */ || kind === 172 /* PropertyDeclaration */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 181 /* IndexSignature */ || kind === 175 /* ClassStaticBlockDeclaration */ || kind === 240 /* SemicolonClassElement */; } function isClassLike(node) { - return node && (node.kind === 262 /* ClassDeclaration */ || node.kind === 230 /* ClassExpression */); + return node && (node.kind === 263 /* ClassDeclaration */ || node.kind === 231 /* ClassExpression */); } function isAccessor(node) { - return node && (node.kind === 176 /* GetAccessor */ || node.kind === 177 /* SetAccessor */); + return node && (node.kind === 177 /* GetAccessor */ || node.kind === 178 /* SetAccessor */); } function isAutoAccessorPropertyDeclaration(node) { return isPropertyDeclaration(node) && hasAccessorModifier(node); } function isMethodOrAccessor(node) { switch (node.kind) { - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return true; default: return false; @@ -10777,10 +10828,10 @@ function isMethodOrAccessor(node) { } function isNamedClassElement(node) { switch (node.kind) { - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 171 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 172 /* PropertyDeclaration */: return true; default: return false; @@ -10791,19 +10842,19 @@ function isModifierLike(node) { } function isTypeElement(node) { const kind = node.kind; - return kind === 179 /* ConstructSignature */ || kind === 178 /* CallSignature */ || kind === 170 /* PropertySignature */ || kind === 172 /* MethodSignature */ || kind === 180 /* IndexSignature */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */; + return kind === 180 /* ConstructSignature */ || kind === 179 /* CallSignature */ || kind === 171 /* PropertySignature */ || kind === 173 /* MethodSignature */ || kind === 181 /* IndexSignature */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; } function isObjectLiteralElementLike(node) { const kind = node.kind; - return kind === 302 /* PropertyAssignment */ || kind === 303 /* ShorthandPropertyAssignment */ || kind === 304 /* SpreadAssignment */ || kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */; + return kind === 303 /* PropertyAssignment */ || kind === 304 /* ShorthandPropertyAssignment */ || kind === 305 /* SpreadAssignment */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; } function isTypeNode(node) { return isTypeNodeKind(node.kind); } function isFunctionOrConstructorTypeNode(node) { switch (node.kind) { - case 183 /* FunctionType */: - case 184 /* ConstructorType */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: return true; } return false; @@ -10811,23 +10862,23 @@ function isFunctionOrConstructorTypeNode(node) { function isBindingPattern(node) { if (node) { const kind = node.kind; - return kind === 206 /* ArrayBindingPattern */ || kind === 205 /* ObjectBindingPattern */; + return kind === 207 /* ArrayBindingPattern */ || kind === 206 /* ObjectBindingPattern */; } return false; } function isAssignmentPattern(node) { const kind = node.kind; - return kind === 208 /* ArrayLiteralExpression */ || kind === 209 /* ObjectLiteralExpression */; + return kind === 209 /* ArrayLiteralExpression */ || kind === 210 /* ObjectLiteralExpression */; } function isArrayBindingElement(node) { const kind = node.kind; - return kind === 207 /* BindingElement */ || kind === 231 /* OmittedExpression */; + return kind === 208 /* BindingElement */ || kind === 232 /* OmittedExpression */; } function isDeclarationBindingElement(bindingElement) { switch (bindingElement.kind) { - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 207 /* BindingElement */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 208 /* BindingElement */: return true; } return false; @@ -10840,40 +10891,40 @@ function isBindingOrAssignmentPattern(node) { } function isObjectBindingOrAssignmentPattern(node) { switch (node.kind) { - case 205 /* ObjectBindingPattern */: - case 209 /* ObjectLiteralExpression */: + case 206 /* ObjectBindingPattern */: + case 210 /* ObjectLiteralExpression */: return true; } return false; } function isObjectBindingOrAssignmentElement(node) { switch (node.kind) { - case 207 /* BindingElement */: - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: - case 304 /* SpreadAssignment */: + case 208 /* BindingElement */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 305 /* SpreadAssignment */: return true; } return false; } function isArrayBindingOrAssignmentPattern(node) { switch (node.kind) { - case 206 /* ArrayBindingPattern */: - case 208 /* ArrayLiteralExpression */: + case 207 /* ArrayBindingPattern */: + case 209 /* ArrayLiteralExpression */: return true; } return false; } function isArrayBindingOrAssignmentElement(node) { switch (node.kind) { - case 207 /* BindingElement */: - case 231 /* OmittedExpression */: - case 229 /* SpreadElement */: - case 208 /* ArrayLiteralExpression */: - case 209 /* ObjectLiteralExpression */: + case 208 /* BindingElement */: + case 232 /* OmittedExpression */: + case 230 /* SpreadElement */: + case 209 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: case 80 /* Identifier */: - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return true; } return isAssignmentExpression( @@ -10884,46 +10935,46 @@ function isArrayBindingOrAssignmentElement(node) { } function isPropertyAccessOrQualifiedNameOrImportTypeNode(node) { const kind = node.kind; - return kind === 210 /* PropertyAccessExpression */ || kind === 165 /* QualifiedName */ || kind === 204 /* ImportType */; + return kind === 211 /* PropertyAccessExpression */ || kind === 166 /* QualifiedName */ || kind === 205 /* ImportType */; } function isCallLikeExpression(node) { switch (node.kind) { - case 285 /* JsxOpeningElement */: - case 284 /* JsxSelfClosingElement */: - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 214 /* TaggedTemplateExpression */: - case 169 /* Decorator */: + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 215 /* TaggedTemplateExpression */: + case 170 /* Decorator */: return true; default: return false; } } function isCallOrNewExpression(node) { - return node.kind === 212 /* CallExpression */ || node.kind === 213 /* NewExpression */; + return node.kind === 213 /* CallExpression */ || node.kind === 214 /* NewExpression */; } function isTemplateLiteral(node) { const kind = node.kind; - return kind === 227 /* TemplateExpression */ || kind === 15 /* NoSubstitutionTemplateLiteral */; + return kind === 228 /* TemplateExpression */ || kind === 15 /* NoSubstitutionTemplateLiteral */; } function isLeftHandSideExpression(node) { return isLeftHandSideExpressionKind(skipPartiallyEmittedExpressions(node).kind); } function isLeftHandSideExpressionKind(kind) { switch (kind) { - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: - case 213 /* NewExpression */: - case 212 /* CallExpression */: - case 283 /* JsxElement */: - case 284 /* JsxSelfClosingElement */: - case 287 /* JsxFragment */: - case 214 /* TaggedTemplateExpression */: - case 208 /* ArrayLiteralExpression */: - case 216 /* ParenthesizedExpression */: - case 209 /* ObjectLiteralExpression */: - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + case 214 /* NewExpression */: + case 213 /* CallExpression */: + case 284 /* JsxElement */: + case 285 /* JsxSelfClosingElement */: + case 288 /* JsxFragment */: + case 215 /* TaggedTemplateExpression */: + case 209 /* ArrayLiteralExpression */: + case 217 /* ParenthesizedExpression */: + case 210 /* ObjectLiteralExpression */: + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: case 80 /* Identifier */: case 81 /* PrivateIdentifier */: case 14 /* RegularExpressionLiteral */: @@ -10931,17 +10982,17 @@ function isLeftHandSideExpressionKind(kind) { case 10 /* BigIntLiteral */: case 11 /* StringLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: - case 227 /* TemplateExpression */: + case 228 /* TemplateExpression */: case 97 /* FalseKeyword */: case 106 /* NullKeyword */: case 110 /* ThisKeyword */: case 112 /* TrueKeyword */: case 108 /* SuperKeyword */: - case 234 /* NonNullExpression */: - case 232 /* ExpressionWithTypeArguments */: - case 235 /* MetaProperty */: + case 235 /* NonNullExpression */: + case 233 /* ExpressionWithTypeArguments */: + case 236 /* MetaProperty */: case 102 /* ImportKeyword */: - case 281 /* MissingDeclaration */: + case 282 /* MissingDeclaration */: return true; default: return false; @@ -10952,13 +11003,13 @@ function isUnaryExpression(node) { } function isUnaryExpressionKind(kind) { switch (kind) { - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: - case 219 /* DeleteExpression */: - case 220 /* TypeOfExpression */: - case 221 /* VoidExpression */: - case 222 /* AwaitExpression */: - case 215 /* TypeAssertionExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: + case 220 /* DeleteExpression */: + case 221 /* TypeOfExpression */: + case 222 /* VoidExpression */: + case 223 /* AwaitExpression */: + case 216 /* TypeAssertionExpression */: return true; default: return isLeftHandSideExpressionKind(kind); @@ -10969,7 +11020,7 @@ function isLiteralTypeLiteral(node) { case 106 /* NullKeyword */: case 112 /* TrueKeyword */: case 97 /* FalseKeyword */: - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: return true; default: return isLiteralExpression(node); @@ -10980,16 +11031,16 @@ function isExpression(node) { } function isExpressionKind(kind) { switch (kind) { - case 226 /* ConditionalExpression */: - case 228 /* YieldExpression */: - case 218 /* ArrowFunction */: - case 225 /* BinaryExpression */: - case 229 /* SpreadElement */: - case 233 /* AsExpression */: - case 231 /* OmittedExpression */: - case 360 /* CommaListExpression */: - case 359 /* PartiallyEmittedExpression */: - case 237 /* SatisfiesExpression */: + case 227 /* ConditionalExpression */: + case 229 /* YieldExpression */: + case 219 /* ArrowFunction */: + case 226 /* BinaryExpression */: + case 230 /* SpreadElement */: + case 234 /* AsExpression */: + case 232 /* OmittedExpression */: + case 361 /* CommaListExpression */: + case 360 /* PartiallyEmittedExpression */: + case 238 /* SatisfiesExpression */: return true; default: return isUnaryExpressionKind(kind); @@ -10997,17 +11048,17 @@ function isExpressionKind(kind) { } function isAssertionExpression(node) { const kind = node.kind; - return kind === 215 /* TypeAssertionExpression */ || kind === 233 /* AsExpression */; + return kind === 216 /* TypeAssertionExpression */ || kind === 234 /* AsExpression */; } function isIterationStatement(node, lookInLabeledStatements) { switch (node.kind) { - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: return true; - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return lookInLabeledStatements && isIterationStatement(node.statement, lookInLabeledStatements); } return false; @@ -11025,7 +11076,7 @@ function isExternalModuleIndicator(result) { return isAnyImportOrReExport(result) || isExportAssignment(result) || hasSyntacticModifier(result, 1 /* Export */); } function isForInOrOfStatement(node) { - return node.kind === 248 /* ForInStatement */ || node.kind === 249 /* ForOfStatement */; + return node.kind === 249 /* ForInStatement */ || node.kind === 250 /* ForOfStatement */; } function isConciseBody(node) { return isBlock(node) || isExpression(node); @@ -11035,81 +11086,81 @@ function isForInitializer(node) { } function isModuleBody(node) { const kind = node.kind; - return kind === 267 /* ModuleBlock */ || kind === 266 /* ModuleDeclaration */ || kind === 80 /* Identifier */; + return kind === 268 /* ModuleBlock */ || kind === 267 /* ModuleDeclaration */ || kind === 80 /* Identifier */; } function isNamedImportBindings(node) { const kind = node.kind; - return kind === 274 /* NamedImports */ || kind === 273 /* NamespaceImport */; + return kind === 275 /* NamedImports */ || kind === 274 /* NamespaceImport */; } function isModuleOrEnumDeclaration(node) { - return node.kind === 266 /* ModuleDeclaration */ || node.kind === 265 /* EnumDeclaration */; + return node.kind === 267 /* ModuleDeclaration */ || node.kind === 266 /* EnumDeclaration */; } function canHaveSymbol(node) { switch (node.kind) { - case 218 /* ArrowFunction */: - case 225 /* BinaryExpression */: - case 207 /* BindingElement */: - case 212 /* CallExpression */: - case 178 /* CallSignature */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 174 /* ClassStaticBlockDeclaration */: - case 175 /* Constructor */: - case 184 /* ConstructorType */: - case 179 /* ConstructSignature */: - case 211 /* ElementAccessExpression */: - case 265 /* EnumDeclaration */: - case 305 /* EnumMember */: - case 276 /* ExportAssignment */: - case 277 /* ExportDeclaration */: - case 280 /* ExportSpecifier */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 183 /* FunctionType */: - case 176 /* GetAccessor */: + case 219 /* ArrowFunction */: + case 226 /* BinaryExpression */: + case 208 /* BindingElement */: + case 213 /* CallExpression */: + case 179 /* CallSignature */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 175 /* ClassStaticBlockDeclaration */: + case 176 /* Constructor */: + case 185 /* ConstructorType */: + case 180 /* ConstructSignature */: + case 212 /* ElementAccessExpression */: + case 266 /* EnumDeclaration */: + case 306 /* EnumMember */: + case 277 /* ExportAssignment */: + case 278 /* ExportDeclaration */: + case 281 /* ExportSpecifier */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 184 /* FunctionType */: + case 177 /* GetAccessor */: case 80 /* Identifier */: - case 272 /* ImportClause */: - case 270 /* ImportEqualsDeclaration */: - case 275 /* ImportSpecifier */: - case 180 /* IndexSignature */: - case 263 /* InterfaceDeclaration */: - case 344 /* JSDocCallbackTag */: - case 346 /* JSDocEnumTag */: - case 323 /* JSDocFunctionType */: - case 347 /* JSDocParameterTag */: - case 354 /* JSDocPropertyTag */: - case 329 /* JSDocSignature */: - case 352 /* JSDocTypedefTag */: - case 328 /* JSDocTypeLiteral */: - case 290 /* JsxAttribute */: - case 291 /* JsxAttributes */: - case 292 /* JsxSpreadAttribute */: - case 199 /* MappedType */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 266 /* ModuleDeclaration */: - case 201 /* NamedTupleMember */: - case 279 /* NamespaceExport */: - case 269 /* NamespaceExportDeclaration */: - case 273 /* NamespaceImport */: - case 213 /* NewExpression */: + case 273 /* ImportClause */: + case 271 /* ImportEqualsDeclaration */: + case 276 /* ImportSpecifier */: + case 181 /* IndexSignature */: + case 264 /* InterfaceDeclaration */: + case 345 /* JSDocCallbackTag */: + case 347 /* JSDocEnumTag */: + case 324 /* JSDocFunctionType */: + case 348 /* JSDocParameterTag */: + case 355 /* JSDocPropertyTag */: + case 330 /* JSDocSignature */: + case 353 /* JSDocTypedefTag */: + case 329 /* JSDocTypeLiteral */: + case 291 /* JsxAttribute */: + case 292 /* JsxAttributes */: + case 293 /* JsxSpreadAttribute */: + case 200 /* MappedType */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 267 /* ModuleDeclaration */: + case 202 /* NamedTupleMember */: + case 280 /* NamespaceExport */: + case 270 /* NamespaceExportDeclaration */: + case 274 /* NamespaceImport */: + case 214 /* NewExpression */: case 15 /* NoSubstitutionTemplateLiteral */: case 9 /* NumericLiteral */: - case 209 /* ObjectLiteralExpression */: - case 168 /* Parameter */: - case 210 /* PropertyAccessExpression */: - case 302 /* PropertyAssignment */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 177 /* SetAccessor */: - case 303 /* ShorthandPropertyAssignment */: - case 311 /* SourceFile */: - case 304 /* SpreadAssignment */: + case 210 /* ObjectLiteralExpression */: + case 169 /* Parameter */: + case 211 /* PropertyAccessExpression */: + case 303 /* PropertyAssignment */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 178 /* SetAccessor */: + case 304 /* ShorthandPropertyAssignment */: + case 312 /* SourceFile */: + case 305 /* SpreadAssignment */: case 11 /* StringLiteral */: - case 264 /* TypeAliasDeclaration */: - case 186 /* TypeLiteral */: - case 167 /* TypeParameter */: - case 259 /* VariableDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 187 /* TypeLiteral */: + case 168 /* TypeParameter */: + case 260 /* VariableDeclaration */: return true; default: return false; @@ -11117,53 +11168,53 @@ function canHaveSymbol(node) { } function canHaveLocals(node) { switch (node.kind) { - case 218 /* ArrowFunction */: - case 240 /* Block */: - case 178 /* CallSignature */: - case 268 /* CaseBlock */: - case 298 /* CatchClause */: - case 174 /* ClassStaticBlockDeclaration */: - case 193 /* ConditionalType */: - case 175 /* Constructor */: - case 184 /* ConstructorType */: - case 179 /* ConstructSignature */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 183 /* FunctionType */: - case 176 /* GetAccessor */: - case 180 /* IndexSignature */: - case 344 /* JSDocCallbackTag */: - case 346 /* JSDocEnumTag */: - case 323 /* JSDocFunctionType */: - case 329 /* JSDocSignature */: - case 352 /* JSDocTypedefTag */: - case 199 /* MappedType */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 266 /* ModuleDeclaration */: - case 177 /* SetAccessor */: - case 311 /* SourceFile */: - case 264 /* TypeAliasDeclaration */: + case 219 /* ArrowFunction */: + case 241 /* Block */: + case 179 /* CallSignature */: + case 269 /* CaseBlock */: + case 299 /* CatchClause */: + case 175 /* ClassStaticBlockDeclaration */: + case 194 /* ConditionalType */: + case 176 /* Constructor */: + case 185 /* ConstructorType */: + case 180 /* ConstructSignature */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 184 /* FunctionType */: + case 177 /* GetAccessor */: + case 181 /* IndexSignature */: + case 345 /* JSDocCallbackTag */: + case 347 /* JSDocEnumTag */: + case 324 /* JSDocFunctionType */: + case 330 /* JSDocSignature */: + case 353 /* JSDocTypedefTag */: + case 200 /* MappedType */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 267 /* ModuleDeclaration */: + case 178 /* SetAccessor */: + case 312 /* SourceFile */: + case 265 /* TypeAliasDeclaration */: return true; default: return false; } } function isDeclarationKind(kind) { - return kind === 218 /* ArrowFunction */ || kind === 207 /* BindingElement */ || kind === 262 /* ClassDeclaration */ || kind === 230 /* ClassExpression */ || kind === 174 /* ClassStaticBlockDeclaration */ || kind === 175 /* Constructor */ || kind === 265 /* EnumDeclaration */ || kind === 305 /* EnumMember */ || kind === 280 /* ExportSpecifier */ || kind === 261 /* FunctionDeclaration */ || kind === 217 /* FunctionExpression */ || kind === 176 /* GetAccessor */ || kind === 272 /* ImportClause */ || kind === 270 /* ImportEqualsDeclaration */ || kind === 275 /* ImportSpecifier */ || kind === 263 /* InterfaceDeclaration */ || kind === 290 /* JsxAttribute */ || kind === 173 /* MethodDeclaration */ || kind === 172 /* MethodSignature */ || kind === 266 /* ModuleDeclaration */ || kind === 269 /* NamespaceExportDeclaration */ || kind === 273 /* NamespaceImport */ || kind === 279 /* NamespaceExport */ || kind === 168 /* Parameter */ || kind === 302 /* PropertyAssignment */ || kind === 171 /* PropertyDeclaration */ || kind === 170 /* PropertySignature */ || kind === 177 /* SetAccessor */ || kind === 303 /* ShorthandPropertyAssignment */ || kind === 264 /* TypeAliasDeclaration */ || kind === 167 /* TypeParameter */ || kind === 259 /* VariableDeclaration */ || kind === 352 /* JSDocTypedefTag */ || kind === 344 /* JSDocCallbackTag */ || kind === 354 /* JSDocPropertyTag */; + return kind === 219 /* ArrowFunction */ || kind === 208 /* BindingElement */ || kind === 263 /* ClassDeclaration */ || kind === 231 /* ClassExpression */ || kind === 175 /* ClassStaticBlockDeclaration */ || kind === 176 /* Constructor */ || kind === 266 /* EnumDeclaration */ || kind === 306 /* EnumMember */ || kind === 281 /* ExportSpecifier */ || kind === 262 /* FunctionDeclaration */ || kind === 218 /* FunctionExpression */ || kind === 177 /* GetAccessor */ || kind === 273 /* ImportClause */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 276 /* ImportSpecifier */ || kind === 264 /* InterfaceDeclaration */ || kind === 291 /* JsxAttribute */ || kind === 174 /* MethodDeclaration */ || kind === 173 /* MethodSignature */ || kind === 267 /* ModuleDeclaration */ || kind === 270 /* NamespaceExportDeclaration */ || kind === 274 /* NamespaceImport */ || kind === 280 /* NamespaceExport */ || kind === 169 /* Parameter */ || kind === 303 /* PropertyAssignment */ || kind === 172 /* PropertyDeclaration */ || kind === 171 /* PropertySignature */ || kind === 178 /* SetAccessor */ || kind === 304 /* ShorthandPropertyAssignment */ || kind === 265 /* TypeAliasDeclaration */ || kind === 168 /* TypeParameter */ || kind === 260 /* VariableDeclaration */ || kind === 353 /* JSDocTypedefTag */ || kind === 345 /* JSDocCallbackTag */ || kind === 355 /* JSDocPropertyTag */; } function isDeclarationStatementKind(kind) { - return kind === 261 /* FunctionDeclaration */ || kind === 281 /* MissingDeclaration */ || kind === 262 /* ClassDeclaration */ || kind === 263 /* InterfaceDeclaration */ || kind === 264 /* TypeAliasDeclaration */ || kind === 265 /* EnumDeclaration */ || kind === 266 /* ModuleDeclaration */ || kind === 271 /* ImportDeclaration */ || kind === 270 /* ImportEqualsDeclaration */ || kind === 277 /* ExportDeclaration */ || kind === 276 /* ExportAssignment */ || kind === 269 /* NamespaceExportDeclaration */; + return kind === 262 /* FunctionDeclaration */ || kind === 282 /* MissingDeclaration */ || kind === 263 /* ClassDeclaration */ || kind === 264 /* InterfaceDeclaration */ || kind === 265 /* TypeAliasDeclaration */ || kind === 266 /* EnumDeclaration */ || kind === 267 /* ModuleDeclaration */ || kind === 272 /* ImportDeclaration */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 278 /* ExportDeclaration */ || kind === 277 /* ExportAssignment */ || kind === 270 /* NamespaceExportDeclaration */; } function isStatementKindButNotDeclarationKind(kind) { - return kind === 251 /* BreakStatement */ || kind === 250 /* ContinueStatement */ || kind === 258 /* DebuggerStatement */ || kind === 245 /* DoStatement */ || kind === 243 /* ExpressionStatement */ || kind === 241 /* EmptyStatement */ || kind === 248 /* ForInStatement */ || kind === 249 /* ForOfStatement */ || kind === 247 /* ForStatement */ || kind === 244 /* IfStatement */ || kind === 255 /* LabeledStatement */ || kind === 252 /* ReturnStatement */ || kind === 254 /* SwitchStatement */ || kind === 256 /* ThrowStatement */ || kind === 257 /* TryStatement */ || kind === 242 /* VariableStatement */ || kind === 246 /* WhileStatement */ || kind === 253 /* WithStatement */ || kind === 358 /* NotEmittedStatement */; + return kind === 252 /* BreakStatement */ || kind === 251 /* ContinueStatement */ || kind === 259 /* DebuggerStatement */ || kind === 246 /* DoStatement */ || kind === 244 /* ExpressionStatement */ || kind === 242 /* EmptyStatement */ || kind === 249 /* ForInStatement */ || kind === 250 /* ForOfStatement */ || kind === 248 /* ForStatement */ || kind === 245 /* IfStatement */ || kind === 256 /* LabeledStatement */ || kind === 253 /* ReturnStatement */ || kind === 255 /* SwitchStatement */ || kind === 257 /* ThrowStatement */ || kind === 258 /* TryStatement */ || kind === 243 /* VariableStatement */ || kind === 247 /* WhileStatement */ || kind === 254 /* WithStatement */ || kind === 359 /* NotEmittedStatement */; } function isDeclaration(node) { - if (node.kind === 167 /* TypeParameter */) { - return node.parent && node.parent.kind !== 351 /* JSDocTemplateTag */ || isInJSFile(node); + if (node.kind === 168 /* TypeParameter */) { + return node.parent && node.parent.kind !== 352 /* JSDocTemplateTag */ || isInJSFile(node); } return isDeclarationKind(node.kind); } @@ -11178,10 +11229,10 @@ function isStatement(node) { return isStatementKindButNotDeclarationKind(kind) || isDeclarationStatementKind(kind) || isBlockStatement(node); } function isBlockStatement(node) { - if (node.kind !== 240 /* Block */) + if (node.kind !== 241 /* Block */) return false; if (node.parent !== void 0) { - if (node.parent.kind === 257 /* TryStatement */ || node.parent.kind === 298 /* CatchClause */) { + if (node.parent.kind === 258 /* TryStatement */ || node.parent.kind === 299 /* CatchClause */) { return false; } } @@ -11189,47 +11240,47 @@ function isBlockStatement(node) { } function isStatementOrBlock(node) { const kind = node.kind; - return isStatementKindButNotDeclarationKind(kind) || isDeclarationStatementKind(kind) || kind === 240 /* Block */; + return isStatementKindButNotDeclarationKind(kind) || isDeclarationStatementKind(kind) || kind === 241 /* Block */; } function isModuleReference(node) { const kind = node.kind; - return kind === 282 /* ExternalModuleReference */ || kind === 165 /* QualifiedName */ || kind === 80 /* Identifier */; + return kind === 283 /* ExternalModuleReference */ || kind === 166 /* QualifiedName */ || kind === 80 /* Identifier */; } function isJsxTagNameExpression(node) { const kind = node.kind; - return kind === 110 /* ThisKeyword */ || kind === 80 /* Identifier */ || kind === 210 /* PropertyAccessExpression */ || kind === 294 /* JsxNamespacedName */; + return kind === 110 /* ThisKeyword */ || kind === 80 /* Identifier */ || kind === 211 /* PropertyAccessExpression */ || kind === 295 /* JsxNamespacedName */; } function isJsxChild(node) { const kind = node.kind; - return kind === 283 /* JsxElement */ || kind === 293 /* JsxExpression */ || kind === 284 /* JsxSelfClosingElement */ || kind === 12 /* JsxText */ || kind === 287 /* JsxFragment */; + return kind === 284 /* JsxElement */ || kind === 294 /* JsxExpression */ || kind === 285 /* JsxSelfClosingElement */ || kind === 12 /* JsxText */ || kind === 288 /* JsxFragment */; } function isJsxAttributeLike(node) { const kind = node.kind; - return kind === 290 /* JsxAttribute */ || kind === 292 /* JsxSpreadAttribute */; + return kind === 291 /* JsxAttribute */ || kind === 293 /* JsxSpreadAttribute */; } function isStringLiteralOrJsxExpression(node) { const kind = node.kind; - return kind === 11 /* StringLiteral */ || kind === 293 /* JsxExpression */; + return kind === 11 /* StringLiteral */ || kind === 294 /* JsxExpression */; } function isJsxOpeningLikeElement(node) { const kind = node.kind; - return kind === 285 /* JsxOpeningElement */ || kind === 284 /* JsxSelfClosingElement */; + return kind === 286 /* JsxOpeningElement */ || kind === 285 /* JsxSelfClosingElement */; } function isCaseOrDefaultClause(node) { const kind = node.kind; - return kind === 295 /* CaseClause */ || kind === 296 /* DefaultClause */; + return kind === 296 /* CaseClause */ || kind === 297 /* DefaultClause */; } function isJSDocNode(node) { - return node.kind >= 315 /* FirstJSDocNode */ && node.kind <= 356 /* LastJSDocNode */; + return node.kind >= 316 /* FirstJSDocNode */ && node.kind <= 357 /* LastJSDocNode */; } function isJSDocTag(node) { - return node.kind >= 333 /* FirstJSDocTagNode */ && node.kind <= 356 /* LastJSDocTagNode */; + return node.kind >= 334 /* FirstJSDocTagNode */ && node.kind <= 357 /* LastJSDocTagNode */; } function isSetAccessor(node) { - return node.kind === 177 /* SetAccessor */; + return node.kind === 178 /* SetAccessor */; } function isGetAccessor(node) { - return node.kind === 176 /* GetAccessor */; + return node.kind === 177 /* GetAccessor */; } function hasJSDocNodes(node) { if (!canHaveJSDoc(node)) @@ -11245,19 +11296,19 @@ function hasInitializer(node) { } function hasOnlyExpressionInitializer(node) { switch (node.kind) { - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 207 /* BindingElement */: - case 171 /* PropertyDeclaration */: - case 302 /* PropertyAssignment */: - case 305 /* EnumMember */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 208 /* BindingElement */: + case 172 /* PropertyDeclaration */: + case 303 /* PropertyAssignment */: + case 306 /* EnumMember */: return true; default: return false; } } function isTypeReferenceType(node) { - return node.kind === 182 /* TypeReference */ || node.kind === 232 /* ExpressionWithTypeArguments */; + return node.kind === 183 /* TypeReference */ || node.kind === 233 /* ExpressionWithTypeArguments */; } var MAX_SMI_X86 = 1073741823; function guessIndentation(lines) { @@ -11285,7 +11336,7 @@ function isStringLiteralLike(node) { return node.kind === 11 /* StringLiteral */ || node.kind === 15 /* NoSubstitutionTemplateLiteral */; } function isJSDocLinkLike(node) { - return node.kind === 330 /* JSDocLink */ || node.kind === 331 /* JSDocLinkCode */ || node.kind === 332 /* JSDocLinkPlain */; + return node.kind === 331 /* JSDocLink */ || node.kind === 332 /* JSDocLinkCode */ || node.kind === 333 /* JSDocLinkPlain */; } function hasRestParameter(s) { const last2 = lastOrUndefined(s.parameters); @@ -11293,7 +11344,7 @@ function hasRestParameter(s) { } function isRestParameter(node) { const type = isJSDocParameterTag(node) ? node.typeExpression && node.typeExpression.type : node.type; - return node.dotDotDotToken !== void 0 || !!type && type.kind === 324 /* JSDocVariadicType */; + return node.dotDotDotToken !== void 0 || !!type && type.kind === 325 /* JSDocVariadicType */; } // src/compiler/utilities.ts @@ -11494,19 +11545,19 @@ function hasChangesInResolutions(names, newSourceFile, newResolutions, oldResolu } function containsParseError(node) { aggregateChildData(node); - return (node.flags & 524288 /* ThisNodeOrAnySubNodesHasError */) !== 0; + return (node.flags & 1048576 /* ThisNodeOrAnySubNodesHasError */) !== 0; } function aggregateChildData(node) { - if (!(node.flags & 1048576 /* HasAggregatedChildData */)) { - const thisNodeOrAnySubNodesHasError = (node.flags & 131072 /* ThisNodeHasError */) !== 0 || forEachChild(node, containsParseError); + if (!(node.flags & 2097152 /* HasAggregatedChildData */)) { + const thisNodeOrAnySubNodesHasError = (node.flags & 262144 /* ThisNodeHasError */) !== 0 || forEachChild(node, containsParseError); if (thisNodeOrAnySubNodesHasError) { - node.flags |= 524288 /* ThisNodeOrAnySubNodesHasError */; + node.flags |= 1048576 /* ThisNodeOrAnySubNodesHasError */; } - node.flags |= 1048576 /* HasAggregatedChildData */; + node.flags |= 2097152 /* HasAggregatedChildData */; } } function getSourceFileOfNode(node) { - while (node && node.kind !== 311 /* SourceFile */) { + while (node && node.kind !== 312 /* SourceFile */) { node = node.parent; } return node; @@ -11519,11 +11570,11 @@ function isPlainJsFile(file, checkJs) { } function isStatementWithLocals(node) { switch (node.kind) { - case 240 /* Block */: - case 268 /* CaseBlock */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: + case 241 /* Block */: + case 269 /* CaseBlock */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: return true; } return false; @@ -11640,7 +11691,7 @@ function getTokenPosOfNode(node, sourceFile, includeJsDoc) { if (includeJsDoc && hasJSDocNodes(node)) { return getTokenPosOfNode(node.jsDoc[0], sourceFile); } - if (node.kind === 357 /* SyntaxList */ && node._children.length > 0) { + if (node.kind === 358 /* SyntaxList */ && node._children.length > 0) { return getTokenPosOfNode(node._children[0], sourceFile, includeJsDoc); } return skipTrivia( @@ -12145,11 +12196,11 @@ function makeIdentifierFromModuleName(moduleName) { return getBaseFileName(moduleName).replace(/^(\d)/, "_$1").replace(/\W/g, "_"); } function isBlockOrCatchScoped(declaration) { - return (getCombinedNodeFlags(declaration) & 3 /* BlockScoped */) !== 0 || isCatchClauseVariableDeclarationOrBindingElement(declaration); + return (getCombinedNodeFlags(declaration) & 7 /* BlockScoped */) !== 0 || isCatchClauseVariableDeclarationOrBindingElement(declaration); } function isCatchClauseVariableDeclarationOrBindingElement(declaration) { const node = getRootDeclaration(declaration); - return node.kind === 259 /* VariableDeclaration */ && node.parent.kind === 298 /* CatchClause */; + return node.kind === 260 /* VariableDeclaration */ && node.parent.kind === 299 /* CatchClause */; } function isAmbientModule(node) { return isModuleDeclaration(node) && (node.name.kind === 11 /* StringLiteral */ || isGlobalScopeAugmentation(node)); @@ -12167,22 +12218,22 @@ function isShorthandAmbientModuleSymbol(moduleSymbol) { return isShorthandAmbientModule(moduleSymbol.valueDeclaration); } function isShorthandAmbientModule(node) { - return !!node && node.kind === 266 /* ModuleDeclaration */ && !node.body; + return !!node && node.kind === 267 /* ModuleDeclaration */ && !node.body; } function isBlockScopedContainerTopLevel(node) { - return node.kind === 311 /* SourceFile */ || node.kind === 266 /* ModuleDeclaration */ || isFunctionLikeOrClassStaticBlockDeclaration(node); + return node.kind === 312 /* SourceFile */ || node.kind === 267 /* ModuleDeclaration */ || isFunctionLikeOrClassStaticBlockDeclaration(node); } function isGlobalScopeAugmentation(module2) { - return !!(module2.flags & 1024 /* GlobalAugmentation */); + return !!(module2.flags & 2048 /* GlobalAugmentation */); } function isExternalModuleAugmentation(node) { return isAmbientModule(node) && isModuleAugmentationExternal(node); } function isModuleAugmentationExternal(node) { switch (node.parent.kind) { - case 311 /* SourceFile */: + case 312 /* SourceFile */: return isExternalModule(node.parent); - case 267 /* ModuleBlock */: + case 268 /* ModuleBlock */: return isAmbientModule(node.parent.parent) && isSourceFile(node.parent.parent.parent) && !isExternalModule(node.parent.parent.parent); } return false; @@ -12225,36 +12276,36 @@ function isEffectiveStrictModeSourceFile(node, compilerOptions) { return false; } function isAmbientPropertyDeclaration(node) { - return !!(node.flags & 16777216 /* Ambient */) || hasSyntacticModifier(node, 2 /* Ambient */); + return !!(node.flags & 33554432 /* Ambient */) || hasSyntacticModifier(node, 2 /* Ambient */); } function isBlockScope(node, parentNode) { switch (node.kind) { - case 311 /* SourceFile */: - case 268 /* CaseBlock */: - case 298 /* CatchClause */: - case 266 /* ModuleDeclaration */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 175 /* Constructor */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 171 /* PropertyDeclaration */: - case 174 /* ClassStaticBlockDeclaration */: + case 312 /* SourceFile */: + case 269 /* CaseBlock */: + case 299 /* CatchClause */: + case 267 /* ModuleDeclaration */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 172 /* PropertyDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: return true; - case 240 /* Block */: + case 241 /* Block */: return !isFunctionLikeOrClassStaticBlockDeclaration(parentNode); } return false; } function isAnyImportSyntax(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: - case 270 /* ImportEqualsDeclaration */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: return true; default: return false; @@ -12262,15 +12313,15 @@ function isAnyImportSyntax(node) { } function isLateVisibilityPaintedStatement(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: - case 270 /* ImportEqualsDeclaration */: - case 242 /* VariableStatement */: - case 262 /* ClassDeclaration */: - case 261 /* FunctionDeclaration */: - case 266 /* ModuleDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 243 /* VariableStatement */: + case 263 /* ClassDeclaration */: + case 262 /* FunctionDeclaration */: + case 267 /* ModuleDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: return true; default: return false; @@ -12282,6 +12333,9 @@ function hasPossibleExternalModuleReference(node) { function isAnyImportOrReExport(node) { return isAnyImportSyntax(node) || isExportDeclaration(node); } +function getEnclosingContainer(node) { + return findAncestor(node.parent, (n) => !!(getContainerFlags(n) & 1 /* IsContainer */)); +} function getEnclosingBlockScopeContainer(node) { return findAncestor(node.parent, (current) => isBlockScope(current, current.parent)); } @@ -12299,7 +12353,7 @@ function getNameFromIndexInfo(info) { return info.declaration ? declarationNameToString(info.declaration.parameters[0].name) : void 0; } function isComputedNonLiteralName(name) { - return name.kind === 166 /* ComputedPropertyName */ && !isStringOrNumericLiteralLike(name.expression); + return name.kind === 167 /* ComputedPropertyName */ && !isStringOrNumericLiteralLike(name.expression); } function tryGetTextOfPropertyName(name) { var _a; @@ -12311,11 +12365,11 @@ function tryGetTextOfPropertyName(name) { case 9 /* NumericLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: return escapeLeadingUnderscores(name.text); - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: if (isStringOrNumericLiteralLike(name.expression)) return escapeLeadingUnderscores(name.expression.text); return void 0; - case 294 /* JsxNamespacedName */: + case 295 /* JsxNamespacedName */: return getEscapedTextOfJsxNamespacedName(name); default: return Debug.assertNever(name); @@ -12331,17 +12385,17 @@ function entityNameToString(name) { case 81 /* PrivateIdentifier */: case 80 /* Identifier */: return getFullWidth(name) === 0 ? idText(name) : getTextOfNode(name); - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: return entityNameToString(name.left) + "." + entityNameToString(name.right); - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: if (isIdentifier(name.name) || isPrivateIdentifier(name.name)) { return entityNameToString(name.expression) + "." + entityNameToString(name.name); } else { return Debug.assertNever(name.name); } - case 317 /* JSDocMemberName */: + case 318 /* JSDocMemberName */: return entityNameToString(name.left) + entityNameToString(name.right); - case 294 /* JsxNamespacedName */: + case 295 /* JsxNamespacedName */: return entityNameToString(name.namespace) + ":" + entityNameToString(name.name); default: return Debug.assertNever(name); @@ -12447,7 +12501,7 @@ function scanTokenAtPosition(sourceFile, pos) { } function getErrorSpanForArrowFunction(sourceFile, node) { const pos = skipTrivia(sourceFile.text, node.pos); - if (node.body && node.body.kind === 240 /* Block */) { + if (node.body && node.body.kind === 241 /* Block */) { const { line: startLine } = getLineAndCharacterOfPosition(sourceFile, node.body.pos); const { line: endLine } = getLineAndCharacterOfPosition(sourceFile, node.body.end); if (startLine < endLine) { @@ -12459,7 +12513,7 @@ function getErrorSpanForArrowFunction(sourceFile, node) { function getErrorSpanForNode(sourceFile, node) { let errorNode = node; switch (node.kind) { - case 311 /* SourceFile */: { + case 312 /* SourceFile */: { const pos2 = skipTrivia( sourceFile.text, 0, @@ -12471,43 +12525,43 @@ function getErrorSpanForNode(sourceFile, node) { } return getSpanOfTokenAtPosition(sourceFile, pos2); } - case 259 /* VariableDeclaration */: - case 207 /* BindingElement */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 266 /* ModuleDeclaration */: - case 265 /* EnumDeclaration */: - case 305 /* EnumMember */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 264 /* TypeAliasDeclaration */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 273 /* NamespaceImport */: + case 260 /* VariableDeclaration */: + case 208 /* BindingElement */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 267 /* ModuleDeclaration */: + case 266 /* EnumDeclaration */: + case 306 /* EnumMember */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 265 /* TypeAliasDeclaration */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 274 /* NamespaceImport */: errorNode = node.name; break; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return getErrorSpanForArrowFunction(sourceFile, node); - case 295 /* CaseClause */: - case 296 /* DefaultClause */: { + case 296 /* CaseClause */: + case 297 /* DefaultClause */: { const start = skipTrivia(sourceFile.text, node.pos); const end = node.statements.length > 0 ? node.statements[0].pos : node.end; return createTextSpanFromBounds(start, end); } - case 252 /* ReturnStatement */: - case 228 /* YieldExpression */: { + case 253 /* ReturnStatement */: + case 229 /* YieldExpression */: { const pos2 = skipTrivia(sourceFile.text, node.pos); return getSpanOfTokenAtPosition(sourceFile, pos2); } - case 237 /* SatisfiesExpression */: { + case 238 /* SatisfiesExpression */: { const pos2 = skipTrivia(sourceFile.text, node.expression.end); return getSpanOfTokenAtPosition(sourceFile, pos2); } - case 356 /* JSDocSatisfiesTag */: { + case 357 /* JSDocSatisfiesTag */: { const pos2 = skipTrivia(sourceFile.text, node.tagName.pos); return getSpanOfTokenAtPosition(sourceFile, pos2); } @@ -12539,17 +12593,23 @@ function isEnumConst(node) { function isDeclarationReadonly(declaration) { return !!(getCombinedModifierFlags(declaration) & 64 /* Readonly */ && !isParameterPropertyDeclaration(declaration, declaration.parent)); } +function isVarAwaitUsing(node) { + return (getCombinedNodeFlags(node) & 7 /* BlockScoped */) === 6 /* AwaitUsing */; +} +function isVarUsing(node) { + return (getCombinedNodeFlags(node) & 7 /* BlockScoped */) === 4 /* Using */; +} function isVarConst(node) { - return !!(getCombinedNodeFlags(node) & 2 /* Const */); + return (getCombinedNodeFlags(node) & 7 /* BlockScoped */) === 2 /* Const */; } function isLet(node) { - return !!(getCombinedNodeFlags(node) & 1 /* Let */); + return (getCombinedNodeFlags(node) & 7 /* BlockScoped */) === 1 /* Let */; } function isSuperCall(n) { - return n.kind === 212 /* CallExpression */ && n.expression.kind === 108 /* SuperKeyword */; + return n.kind === 213 /* CallExpression */ && n.expression.kind === 108 /* SuperKeyword */; } function isImportCall(n) { - return n.kind === 212 /* CallExpression */ && n.expression.kind === 102 /* ImportKeyword */; + return n.kind === 213 /* CallExpression */ && n.expression.kind === 102 /* ImportKeyword */; } function isImportMeta(n) { return isMetaProperty(n) && n.keywordToken === 102 /* ImportKeyword */ && n.name.escapedText === "meta"; @@ -12558,7 +12618,7 @@ function isLiteralImportTypeNode(n) { return isImportTypeNode(n) && isLiteralTypeNode(n.argument) && isStringLiteral(n.argument.literal); } function isPrologueDirective(node) { - return node.kind === 243 /* ExpressionStatement */ && node.expression.kind === 11 /* StringLiteral */; + return node.kind === 244 /* ExpressionStatement */ && node.expression.kind === 11 /* StringLiteral */; } function isCustomPrologue(node) { return !!(getEmitFlags(node) & 2097152 /* CustomPrologue */); @@ -12576,7 +12636,7 @@ function getLeadingCommentRangesOfNode(node, sourceFileOfNode) { return node.kind !== 12 /* JsxText */ ? getLeadingCommentRanges(sourceFileOfNode.text, node.pos) : void 0; } function getJSDocCommentRanges(node, text) { - const commentRanges = node.kind === 168 /* Parameter */ || node.kind === 167 /* TypeParameter */ || node.kind === 217 /* FunctionExpression */ || node.kind === 218 /* ArrowFunction */ || node.kind === 216 /* ParenthesizedExpression */ || node.kind === 259 /* VariableDeclaration */ || node.kind === 280 /* ExportSpecifier */ ? concatenate(getTrailingCommentRanges(text, node.pos), getLeadingCommentRanges(text, node.pos)) : getLeadingCommentRanges(text, node.pos); + const commentRanges = node.kind === 169 /* Parameter */ || node.kind === 168 /* TypeParameter */ || node.kind === 218 /* FunctionExpression */ || node.kind === 219 /* ArrowFunction */ || node.kind === 217 /* ParenthesizedExpression */ || node.kind === 260 /* VariableDeclaration */ || node.kind === 281 /* ExportSpecifier */ ? concatenate(getTrailingCommentRanges(text, node.pos), getLeadingCommentRanges(text, node.pos)) : getLeadingCommentRanges(text, node.pos); return filter(commentRanges, (comment) => text.charCodeAt(comment.pos + 1) === 42 /* asterisk */ && text.charCodeAt(comment.pos + 2) === 42 /* asterisk */ && text.charCodeAt(comment.pos + 3) !== 47 /* slash */); } var fullTripleSlashReferencePathRegEx = /^(\/\/\/\s*/; @@ -12586,14 +12646,14 @@ var fullTripleSlashAMDReferencePathRegEx = /^(\/\/\/\s*/; var defaultLibReferenceRegEx = /^(\/\/\/\s*/; function isPartOfTypeNode(node) { - if (181 /* FirstTypeNode */ <= node.kind && node.kind <= 204 /* LastTypeNode */) { + if (182 /* FirstTypeNode */ <= node.kind && node.kind <= 205 /* LastTypeNode */) { return true; } switch (node.kind) { case 133 /* AnyKeyword */: case 159 /* UnknownKeyword */: case 150 /* NumberKeyword */: - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: case 154 /* StringKeyword */: case 136 /* BooleanKeyword */: case 155 /* SymbolKeyword */: @@ -12603,64 +12663,64 @@ function isPartOfTypeNode(node) { case 146 /* NeverKeyword */: return true; case 116 /* VoidKeyword */: - return node.parent.kind !== 221 /* VoidExpression */; - case 232 /* ExpressionWithTypeArguments */: + return node.parent.kind !== 222 /* VoidExpression */; + case 233 /* ExpressionWithTypeArguments */: return isHeritageClause(node.parent) && !isExpressionWithTypeArgumentsInClassExtendsClause(node); - case 167 /* TypeParameter */: - return node.parent.kind === 199 /* MappedType */ || node.parent.kind === 194 /* InferType */; + case 168 /* TypeParameter */: + return node.parent.kind === 200 /* MappedType */ || node.parent.kind === 195 /* InferType */; case 80 /* Identifier */: - if (node.parent.kind === 165 /* QualifiedName */ && node.parent.right === node) { + if (node.parent.kind === 166 /* QualifiedName */ && node.parent.right === node) { node = node.parent; - } else if (node.parent.kind === 210 /* PropertyAccessExpression */ && node.parent.name === node) { + } else if (node.parent.kind === 211 /* PropertyAccessExpression */ && node.parent.name === node) { node = node.parent; } Debug.assert( - node.kind === 80 /* Identifier */ || node.kind === 165 /* QualifiedName */ || node.kind === 210 /* PropertyAccessExpression */, + node.kind === 80 /* Identifier */ || node.kind === 166 /* QualifiedName */ || node.kind === 211 /* PropertyAccessExpression */, "'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'." ); - case 165 /* QualifiedName */: - case 210 /* PropertyAccessExpression */: + case 166 /* QualifiedName */: + case 211 /* PropertyAccessExpression */: case 110 /* ThisKeyword */: { const { parent } = node; - if (parent.kind === 185 /* TypeQuery */) { + if (parent.kind === 186 /* TypeQuery */) { return false; } - if (parent.kind === 204 /* ImportType */) { + if (parent.kind === 205 /* ImportType */) { return !parent.isTypeOf; } - if (181 /* FirstTypeNode */ <= parent.kind && parent.kind <= 204 /* LastTypeNode */) { + if (182 /* FirstTypeNode */ <= parent.kind && parent.kind <= 205 /* LastTypeNode */) { return true; } switch (parent.kind) { - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return isHeritageClause(parent.parent) && !isExpressionWithTypeArgumentsInClassExtendsClause(parent); - case 167 /* TypeParameter */: + case 168 /* TypeParameter */: return node === parent.constraint; - case 351 /* JSDocTemplateTag */: + case 352 /* JSDocTemplateTag */: return node === parent.constraint; - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 168 /* Parameter */: - case 259 /* VariableDeclaration */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 169 /* Parameter */: + case 260 /* VariableDeclaration */: return node === parent.type; - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 175 /* Constructor */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return node === parent.type; - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 180 /* IndexSignature */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 181 /* IndexSignature */: return node === parent.type; - case 215 /* TypeAssertionExpression */: + case 216 /* TypeAssertionExpression */: return node === parent.type; - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 214 /* TaggedTemplateExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 215 /* TaggedTemplateExpression */: return contains(parent.typeArguments, node); } } @@ -12671,23 +12731,23 @@ function forEachReturnStatement(body, visitor) { return traverse(body); function traverse(node) { switch (node.kind) { - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: return visitor(node); - case 268 /* CaseBlock */: - case 240 /* Block */: - case 244 /* IfStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 253 /* WithStatement */: - case 254 /* SwitchStatement */: - case 295 /* CaseClause */: - case 296 /* DefaultClause */: - case 255 /* LabeledStatement */: - case 257 /* TryStatement */: - case 298 /* CatchClause */: + case 269 /* CaseBlock */: + case 241 /* Block */: + case 245 /* IfStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 254 /* WithStatement */: + case 255 /* SwitchStatement */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: + case 256 /* LabeledStatement */: + case 258 /* TryStatement */: + case 299 /* CatchClause */: return forEachChild(node, traverse); } } @@ -12696,21 +12756,21 @@ function forEachYieldExpression(body, visitor) { return traverse(body); function traverse(node) { switch (node.kind) { - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: visitor(node); const operand = node.expression; if (operand) { traverse(operand); } return; - case 265 /* EnumDeclaration */: - case 263 /* InterfaceDeclaration */: - case 266 /* ModuleDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 266 /* EnumDeclaration */: + case 264 /* InterfaceDeclaration */: + case 267 /* ModuleDeclaration */: + case 265 /* TypeAliasDeclaration */: return; default: if (isFunctionLike(node)) { - if (node.name && node.name.kind === 166 /* ComputedPropertyName */) { + if (node.name && node.name.kind === 167 /* ComputedPropertyName */) { traverse(node.name.expression); return; } @@ -12721,9 +12781,9 @@ function forEachYieldExpression(body, visitor) { } } function getRestParameterElementType(node) { - if (node && node.kind === 187 /* ArrayType */) { + if (node && node.kind === 188 /* ArrayType */) { return node.elementType; - } else if (node && node.kind === 182 /* TypeReference */) { + } else if (node && node.kind === 183 /* TypeReference */) { return singleOrUndefined(node.typeArguments); } else { return void 0; @@ -12731,26 +12791,26 @@ function getRestParameterElementType(node) { } function getMembersOfDeclaration(node) { switch (node.kind) { - case 263 /* InterfaceDeclaration */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 186 /* TypeLiteral */: + case 264 /* InterfaceDeclaration */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 187 /* TypeLiteral */: return node.members; - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return node.properties; } } function isVariableLike(node) { if (node) { switch (node.kind) { - case 207 /* BindingElement */: - case 305 /* EnumMember */: - case 168 /* Parameter */: - case 302 /* PropertyAssignment */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 303 /* ShorthandPropertyAssignment */: - case 259 /* VariableDeclaration */: + case 208 /* BindingElement */: + case 306 /* EnumMember */: + case 169 /* Parameter */: + case 303 /* PropertyAssignment */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 304 /* ShorthandPropertyAssignment */: + case 260 /* VariableDeclaration */: return true; } } @@ -12760,7 +12820,7 @@ function isVariableLikeOrAccessor(node) { return isVariableLike(node) || isAccessor(node); } function isVariableDeclarationInVariableStatement(node) { - return node.parent.kind === 260 /* VariableDeclarationList */ && node.parent.parent.kind === 242 /* VariableStatement */; + return node.parent.kind === 261 /* VariableDeclarationList */ && node.parent.parent.kind === 243 /* VariableStatement */; } function isCommonJsExportedExpression(node) { if (!isInJSFile(node)) @@ -12777,13 +12837,13 @@ function isValidESSymbolDeclaration(node) { } function introducesArgumentsExoticObject(node) { switch (node.kind) { - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: return true; } return false; @@ -12793,20 +12853,20 @@ function unwrapInnermostStatementOfLabel(node, beforeUnwrapLabelCallback) { if (beforeUnwrapLabelCallback) { beforeUnwrapLabelCallback(node); } - if (node.statement.kind !== 255 /* LabeledStatement */) { + if (node.statement.kind !== 256 /* LabeledStatement */) { return node.statement; } node = node.statement; } } function isFunctionBlock(node) { - return node && node.kind === 240 /* Block */ && isFunctionLike(node.parent); + return node && node.kind === 241 /* Block */ && isFunctionLike(node.parent); } function isObjectLiteralMethod(node) { - return node && node.kind === 173 /* MethodDeclaration */ && node.parent.kind === 209 /* ObjectLiteralExpression */; + return node && node.kind === 174 /* MethodDeclaration */ && node.parent.kind === 210 /* ObjectLiteralExpression */; } function isObjectLiteralOrClassExpressionMethodOrAccessor(node) { - return (node.kind === 173 /* MethodDeclaration */ || node.kind === 176 /* GetAccessor */ || node.kind === 177 /* SetAccessor */) && (node.parent.kind === 209 /* ObjectLiteralExpression */ || node.parent.kind === 230 /* ClassExpression */); + return (node.kind === 174 /* MethodDeclaration */ || node.kind === 177 /* GetAccessor */ || node.kind === 178 /* SetAccessor */) && (node.parent.kind === 210 /* ObjectLiteralExpression */ || node.parent.kind === 231 /* ClassExpression */); } function isIdentifierTypePredicate(predicate) { return predicate && predicate.kind === 1 /* Identifier */; @@ -12855,64 +12915,68 @@ function getContainingClassStaticBlock(node) { function getContainingFunctionOrClassStaticBlock(node) { return findAncestor(node.parent, isFunctionLikeOrClassStaticBlockDeclaration); } +function getContainingClassExcludingClassDecorators(node) { + const decorator = findAncestor(node.parent, (n) => isClassLike(n) ? "quit" : isDecorator(n)); + return decorator && isClassLike(decorator.parent) ? getContainingClass(decorator.parent) : getContainingClass(decorator ?? node); +} function getThisContainer(node, includeArrowFunctions, includeClassComputedPropertyName) { - Debug.assert(node.kind !== 311 /* SourceFile */); + Debug.assert(node.kind !== 312 /* SourceFile */); while (true) { node = node.parent; if (!node) { return Debug.fail(); } switch (node.kind) { - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: if (includeClassComputedPropertyName && isClassLike(node.parent.parent)) { return node; } node = node.parent.parent; break; - case 169 /* Decorator */: - if (node.parent.kind === 168 /* Parameter */ && isClassElement(node.parent.parent)) { + case 170 /* Decorator */: + if (node.parent.kind === 169 /* Parameter */ && isClassElement(node.parent.parent)) { node = node.parent.parent; } else if (isClassElement(node.parent)) { node = node.parent; } break; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: if (!includeArrowFunctions) { continue; } - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 266 /* ModuleDeclaration */: - case 174 /* ClassStaticBlockDeclaration */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 180 /* IndexSignature */: - case 265 /* EnumDeclaration */: - case 311 /* SourceFile */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 267 /* ModuleDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 181 /* IndexSignature */: + case 266 /* EnumDeclaration */: + case 312 /* SourceFile */: return node; } } } function isThisContainerOrFunctionBlock(node) { switch (node.kind) { - case 218 /* ArrowFunction */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 171 /* PropertyDeclaration */: + case 219 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 172 /* PropertyDeclaration */: return true; - case 240 /* Block */: + case 241 /* Block */: switch (node.parent.kind) { - case 175 /* Constructor */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return true; default: return false; @@ -12944,9 +13008,9 @@ function getNewTargetContainer(node) { ); if (container) { switch (container.kind) { - case 175 /* Constructor */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 176 /* Constructor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: return container; } } @@ -12959,26 +13023,26 @@ function getSuperContainer(node, stopOnFunctions) { return void 0; } switch (node.kind) { - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: node = node.parent; break; - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: if (!stopOnFunctions) { continue; } - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 174 /* ClassStaticBlockDeclaration */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 175 /* ClassStaticBlockDeclaration */: return node; - case 169 /* Decorator */: - if (node.parent.kind === 168 /* Parameter */ && isClassElement(node.parent.parent)) { + case 170 /* Decorator */: + if (node.parent.kind === 169 /* Parameter */ && isClassElement(node.parent.parent)) { node = node.parent.parent; } else if (isClassElement(node.parent)) { node = node.parent; @@ -12988,25 +13052,25 @@ function getSuperContainer(node, stopOnFunctions) { } } function getImmediatelyInvokedFunctionExpression(func) { - if (func.kind === 217 /* FunctionExpression */ || func.kind === 218 /* ArrowFunction */) { + if (func.kind === 218 /* FunctionExpression */ || func.kind === 219 /* ArrowFunction */) { let prev = func; let parent = func.parent; - while (parent.kind === 216 /* ParenthesizedExpression */) { + while (parent.kind === 217 /* ParenthesizedExpression */) { prev = parent; parent = parent.parent; } - if (parent.kind === 212 /* CallExpression */ && parent.expression === prev) { + if (parent.kind === 213 /* CallExpression */ && parent.expression === prev) { return parent; } } } function isSuperProperty(node) { const kind = node.kind; - return (kind === 210 /* PropertyAccessExpression */ || kind === 211 /* ElementAccessExpression */) && node.expression.kind === 108 /* SuperKeyword */; + return (kind === 211 /* PropertyAccessExpression */ || kind === 212 /* ElementAccessExpression */) && node.expression.kind === 108 /* SuperKeyword */; } function isThisProperty(node) { const kind = node.kind; - return (kind === 210 /* PropertyAccessExpression */ || kind === 211 /* ElementAccessExpression */) && node.expression.kind === 110 /* ThisKeyword */; + return (kind === 211 /* PropertyAccessExpression */ || kind === 212 /* ElementAccessExpression */) && node.expression.kind === 110 /* ThisKeyword */; } function isThisInitializedDeclaration(node) { var _a; @@ -13017,22 +13081,22 @@ function isThisInitializedObjectBindingExpression(node) { } function getEntityNameFromTypeNode(node) { switch (node.kind) { - case 182 /* TypeReference */: + case 183 /* TypeReference */: return node.typeName; - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return isEntityNameExpression(node.expression) ? node.expression : void 0; case 80 /* Identifier */: - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: return node; } return void 0; } function getInvokedExpression(node) { switch (node.kind) { - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return node.tag; - case 285 /* JsxOpeningElement */: - case 284 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: return node.tagName; default: return node.expression; @@ -13043,20 +13107,20 @@ function nodeCanBeDecorated(useLegacyDecorators, node, parent, grandparent) { return false; } switch (node.kind) { - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return true; - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return !useLegacyDecorators; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return parent !== void 0 && (useLegacyDecorators ? isClassDeclaration(parent) : isClassLike(parent) && !hasAbstractModifier(node) && !hasAmbientModifier(node)); - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 173 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: return node.body !== void 0 && parent !== void 0 && (useLegacyDecorators ? isClassDeclaration(parent) : isClassLike(parent)); - case 168 /* Parameter */: + case 169 /* Parameter */: if (!useLegacyDecorators) return false; - return parent !== void 0 && parent.body !== void 0 && (parent.kind === 175 /* Constructor */ || parent.kind === 173 /* MethodDeclaration */ || parent.kind === 177 /* SetAccessor */) && getThisParameter(parent) !== node && grandparent !== void 0 && grandparent.kind === 262 /* ClassDeclaration */; + return parent !== void 0 && parent.body !== void 0 && (parent.kind === 176 /* Constructor */ || parent.kind === 174 /* MethodDeclaration */ || parent.kind === 178 /* SetAccessor */) && getThisParameter(parent) !== node && grandparent !== void 0 && grandparent.kind === 263 /* ClassDeclaration */; } return false; } @@ -13068,13 +13132,13 @@ function nodeOrChildIsDecorated(useLegacyDecorators, node, parent, grandparent) } function childIsDecorated(useLegacyDecorators, node, parent) { switch (node.kind) { - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return some(node.members, (m) => nodeOrChildIsDecorated(useLegacyDecorators, m, node, parent)); - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return !useLegacyDecorators && some(node.members, (m) => nodeOrChildIsDecorated(useLegacyDecorators, m, node, parent)); - case 173 /* MethodDeclaration */: - case 177 /* SetAccessor */: - case 175 /* Constructor */: + case 174 /* MethodDeclaration */: + case 178 /* SetAccessor */: + case 176 /* Constructor */: return some(node.parameters, (p) => nodeIsDecorated(useLegacyDecorators, p, node, parent)); default: return false; @@ -13125,7 +13189,7 @@ function isEmptyStringLiteral(node) { } function isJSXTagName(node) { const { parent } = node; - if (parent.kind === 285 /* JsxOpeningElement */ || parent.kind === 284 /* JsxSelfClosingElement */ || parent.kind === 286 /* JsxClosingElement */) { + if (parent.kind === 286 /* JsxOpeningElement */ || parent.kind === 285 /* JsxSelfClosingElement */ || parent.kind === 287 /* JsxClosingElement */) { return parent.tagName === node; } return false; @@ -13137,54 +13201,54 @@ function isExpressionNode(node) { case 112 /* TrueKeyword */: case 97 /* FalseKeyword */: case 14 /* RegularExpressionLiteral */: - case 208 /* ArrayLiteralExpression */: - case 209 /* ObjectLiteralExpression */: - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 214 /* TaggedTemplateExpression */: - case 233 /* AsExpression */: - case 215 /* TypeAssertionExpression */: - case 237 /* SatisfiesExpression */: - case 234 /* NonNullExpression */: - case 216 /* ParenthesizedExpression */: - case 217 /* FunctionExpression */: - case 230 /* ClassExpression */: - case 218 /* ArrowFunction */: - case 221 /* VoidExpression */: - case 219 /* DeleteExpression */: - case 220 /* TypeOfExpression */: - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: - case 225 /* BinaryExpression */: - case 226 /* ConditionalExpression */: - case 229 /* SpreadElement */: - case 227 /* TemplateExpression */: - case 231 /* OmittedExpression */: - case 283 /* JsxElement */: - case 284 /* JsxSelfClosingElement */: - case 287 /* JsxFragment */: - case 228 /* YieldExpression */: - case 222 /* AwaitExpression */: - case 235 /* MetaProperty */: + case 209 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 215 /* TaggedTemplateExpression */: + case 234 /* AsExpression */: + case 216 /* TypeAssertionExpression */: + case 238 /* SatisfiesExpression */: + case 235 /* NonNullExpression */: + case 217 /* ParenthesizedExpression */: + case 218 /* FunctionExpression */: + case 231 /* ClassExpression */: + case 219 /* ArrowFunction */: + case 222 /* VoidExpression */: + case 220 /* DeleteExpression */: + case 221 /* TypeOfExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: + case 226 /* BinaryExpression */: + case 227 /* ConditionalExpression */: + case 230 /* SpreadElement */: + case 228 /* TemplateExpression */: + case 232 /* OmittedExpression */: + case 284 /* JsxElement */: + case 285 /* JsxSelfClosingElement */: + case 288 /* JsxFragment */: + case 229 /* YieldExpression */: + case 223 /* AwaitExpression */: + case 236 /* MetaProperty */: return true; - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return !isHeritageClause(node.parent) && !isJSDocAugmentsTag(node.parent); - case 165 /* QualifiedName */: - while (node.parent.kind === 165 /* QualifiedName */) { + case 166 /* QualifiedName */: + while (node.parent.kind === 166 /* QualifiedName */) { node = node.parent; } - return node.parent.kind === 185 /* TypeQuery */ || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node); - case 317 /* JSDocMemberName */: + return node.parent.kind === 186 /* TypeQuery */ || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node); + case 318 /* JSDocMemberName */: while (isJSDocMemberName(node.parent)) { node = node.parent; } - return node.parent.kind === 185 /* TypeQuery */ || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node); + return node.parent.kind === 186 /* TypeQuery */ || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node); case 81 /* PrivateIdentifier */: return isBinaryExpression(node.parent) && node.parent.left === node && node.parent.operatorToken.kind === 103 /* InKeyword */; case 80 /* Identifier */: - if (node.parent.kind === 185 /* TypeQuery */ || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node)) { + if (node.parent.kind === 186 /* TypeQuery */ || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node)) { return true; } case 9 /* NumericLiteral */: @@ -13200,64 +13264,64 @@ function isExpressionNode(node) { function isInExpressionContext(node) { const { parent } = node; switch (parent.kind) { - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 305 /* EnumMember */: - case 302 /* PropertyAssignment */: - case 207 /* BindingElement */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 306 /* EnumMember */: + case 303 /* PropertyAssignment */: + case 208 /* BindingElement */: return parent.initializer === node; - case 243 /* ExpressionStatement */: - case 244 /* IfStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: - case 252 /* ReturnStatement */: - case 253 /* WithStatement */: - case 254 /* SwitchStatement */: - case 295 /* CaseClause */: - case 256 /* ThrowStatement */: + case 244 /* ExpressionStatement */: + case 245 /* IfStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 253 /* ReturnStatement */: + case 254 /* WithStatement */: + case 255 /* SwitchStatement */: + case 296 /* CaseClause */: + case 257 /* ThrowStatement */: return parent.expression === node; - case 247 /* ForStatement */: + case 248 /* ForStatement */: const forStatement = parent; - return forStatement.initializer === node && forStatement.initializer.kind !== 260 /* VariableDeclarationList */ || forStatement.condition === node || forStatement.incrementor === node; - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: + return forStatement.initializer === node && forStatement.initializer.kind !== 261 /* VariableDeclarationList */ || forStatement.condition === node || forStatement.incrementor === node; + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: const forInStatement = parent; - return forInStatement.initializer === node && forInStatement.initializer.kind !== 260 /* VariableDeclarationList */ || forInStatement.expression === node; - case 215 /* TypeAssertionExpression */: - case 233 /* AsExpression */: + return forInStatement.initializer === node && forInStatement.initializer.kind !== 261 /* VariableDeclarationList */ || forInStatement.expression === node; + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: return node === parent.expression; - case 238 /* TemplateSpan */: + case 239 /* TemplateSpan */: return node === parent.expression; - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: return node === parent.expression; - case 169 /* Decorator */: - case 293 /* JsxExpression */: - case 292 /* JsxSpreadAttribute */: - case 304 /* SpreadAssignment */: + case 170 /* Decorator */: + case 294 /* JsxExpression */: + case 293 /* JsxSpreadAttribute */: + case 305 /* SpreadAssignment */: return true; - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return parent.expression === node && !isPartOfTypeNode(parent); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return parent.objectAssignmentInitializer === node; - case 237 /* SatisfiesExpression */: + case 238 /* SatisfiesExpression */: return node === parent.expression; default: return isExpressionNode(parent); } } function isPartOfTypeQuery(node) { - while (node.kind === 165 /* QualifiedName */ || node.kind === 80 /* Identifier */) { + while (node.kind === 166 /* QualifiedName */ || node.kind === 80 /* Identifier */) { node = node.parent; } - return node.kind === 185 /* TypeQuery */; + return node.kind === 186 /* TypeQuery */; } function isNamespaceReexportDeclaration(node) { return isNamespaceExport(node) && !!node.parent.moduleSpecifier; } function isExternalModuleImportEqualsDeclaration(node) { - return node.kind === 270 /* ImportEqualsDeclaration */ && node.moduleReference.kind === 282 /* ExternalModuleReference */; + return node.kind === 271 /* ImportEqualsDeclaration */ && node.moduleReference.kind === 283 /* ExternalModuleReference */; } function getExternalModuleImportEqualsDeclarationExpression(node) { Debug.assert(isExternalModuleImportEqualsDeclaration(node)); @@ -13267,28 +13331,28 @@ function getExternalModuleRequireArgument(node) { return isVariableDeclarationInitializedToBareOrAccessedRequire(node) && getLeftmostAccessExpression(node.initializer).arguments[0]; } function isInternalModuleImportEqualsDeclaration(node) { - return node.kind === 270 /* ImportEqualsDeclaration */ && node.moduleReference.kind !== 282 /* ExternalModuleReference */; + return node.kind === 271 /* ImportEqualsDeclaration */ && node.moduleReference.kind !== 283 /* ExternalModuleReference */; } function isSourceFileJS(file) { return isInJSFile(file); } function isInJSFile(node) { - return !!node && !!(node.flags & 262144 /* JavaScriptFile */); + return !!node && !!(node.flags & 524288 /* JavaScriptFile */); } function isInJsonFile(node) { - return !!node && !!(node.flags & 67108864 /* JsonFile */); + return !!node && !!(node.flags & 134217728 /* JsonFile */); } function isSourceFileNotJson(file) { return !isJsonSourceFile(file); } function isInJSDoc(node) { - return !!node && !!(node.flags & 8388608 /* JSDoc */); + return !!node && !!(node.flags & 16777216 /* JSDoc */); } function isJSDocIndexSignature(node) { return isTypeReferenceNode(node) && isIdentifier(node.typeName) && node.typeName.escapedText === "Object" && node.typeArguments && node.typeArguments.length === 2 && (node.typeArguments[0].kind === 154 /* StringKeyword */ || node.typeArguments[0].kind === 150 /* NumberKeyword */); } function isRequireCall(callExpression, requireStringLiteralLikeArgument) { - if (callExpression.kind !== 212 /* CallExpression */) { + if (callExpression.kind !== 213 /* CallExpression */) { return false; } const { expression, arguments: args } = callExpression; @@ -13365,9 +13429,9 @@ function getAssignedExpandoInitializer(node) { function getExpandoInitializer(initializer, isPrototypeAssignment) { if (isCallExpression(initializer)) { const e = skipParentheses(initializer.expression); - return e.kind === 217 /* FunctionExpression */ || e.kind === 218 /* ArrowFunction */ ? initializer : void 0; + return e.kind === 218 /* FunctionExpression */ || e.kind === 219 /* ArrowFunction */ ? initializer : void 0; } - if (initializer.kind === 217 /* FunctionExpression */ || initializer.kind === 230 /* ClassExpression */ || initializer.kind === 218 /* ArrowFunction */) { + if (initializer.kind === 218 /* FunctionExpression */ || initializer.kind === 231 /* ClassExpression */ || initializer.kind === 219 /* ArrowFunction */) { return initializer; } if (isObjectLiteralExpression(initializer) && (initializer.properties.length === 0 || isPrototypeAssignment)) { @@ -13558,11 +13622,11 @@ function isPrototypePropertyAssignment(node) { return isBinaryExpression(node) && getAssignmentDeclarationKind(node) === 3 /* PrototypeProperty */; } function isSpecialPropertyDeclaration(expr) { - return isInJSFile(expr) && expr.parent && expr.parent.kind === 243 /* ExpressionStatement */ && (!isElementAccessExpression(expr) || isLiteralLikeElementAccess(expr)) && !!getJSDocTypeTag(expr.parent); + return isInJSFile(expr) && expr.parent && expr.parent.kind === 244 /* ExpressionStatement */ && (!isElementAccessExpression(expr) || isLiteralLikeElementAccess(expr)) && !!getJSDocTypeTag(expr.parent); } function setValueDeclaration(symbol, node) { const { valueDeclaration } = symbol; - if (!valueDeclaration || !(node.flags & 16777216 /* Ambient */ && !isInJSFile(node) && !(valueDeclaration.flags & 16777216 /* Ambient */)) && (isAssignmentDeclaration(valueDeclaration) && !isAssignmentDeclaration(node)) || valueDeclaration.kind !== node.kind && isEffectiveModuleDeclaration(valueDeclaration)) { + if (!valueDeclaration || !(node.flags & 33554432 /* Ambient */ && !isInJSFile(node) && !(valueDeclaration.flags & 33554432 /* Ambient */)) && (isAssignmentDeclaration(valueDeclaration) && !isAssignmentDeclaration(node)) || valueDeclaration.kind !== node.kind && isEffectiveModuleDeclaration(valueDeclaration)) { symbol.valueDeclaration = node; } } @@ -13571,29 +13635,29 @@ function isFunctionSymbol(symbol) { return false; } const decl = symbol.valueDeclaration; - return decl.kind === 261 /* FunctionDeclaration */ || isVariableDeclaration(decl) && decl.initializer && isFunctionLike(decl.initializer); + return decl.kind === 262 /* FunctionDeclaration */ || isVariableDeclaration(decl) && decl.initializer && isFunctionLike(decl.initializer); } function tryGetModuleSpecifierFromDeclaration(node) { var _a, _b; switch (node.kind) { - case 259 /* VariableDeclaration */: - case 207 /* BindingElement */: + case 260 /* VariableDeclaration */: + case 208 /* BindingElement */: return (_a = findAncestor(node.initializer, (node2) => isRequireCall( node2, /*requireStringLiteralLikeArgument*/ true ))) == null ? void 0 : _a.arguments[0]; - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return tryCast(node.moduleSpecifier, isStringLiteralLike); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return tryCast((_b = tryCast(node.moduleReference, isExternalModuleReference)) == null ? void 0 : _b.expression, isStringLiteralLike); - case 272 /* ImportClause */: - case 279 /* NamespaceExport */: + case 273 /* ImportClause */: + case 280 /* NamespaceExport */: return tryCast(node.parent.moduleSpecifier, isStringLiteralLike); - case 273 /* NamespaceImport */: - case 280 /* ExportSpecifier */: + case 274 /* NamespaceImport */: + case 281 /* ExportSpecifier */: return tryCast(node.parent.parent.moduleSpecifier, isStringLiteralLike); - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: return tryCast(node.parent.parent.parent.moduleSpecifier, isStringLiteralLike); default: Debug.assertNever(node); @@ -13601,16 +13665,16 @@ function tryGetModuleSpecifierFromDeclaration(node) { } function getExternalModuleName(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: - case 277 /* ExportDeclaration */: + case 272 /* ImportDeclaration */: + case 278 /* ExportDeclaration */: return node.moduleSpecifier; - case 270 /* ImportEqualsDeclaration */: - return node.moduleReference.kind === 282 /* ExternalModuleReference */ ? node.moduleReference.expression : void 0; - case 204 /* ImportType */: + case 271 /* ImportEqualsDeclaration */: + return node.moduleReference.kind === 283 /* ExternalModuleReference */ ? node.moduleReference.expression : void 0; + case 205 /* ImportType */: return isLiteralImportTypeNode(node) ? node.argument.literal : void 0; - case 212 /* CallExpression */: + case 213 /* CallExpression */: return node.arguments[0]; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return node.name.kind === 11 /* StringLiteral */ ? node.name : void 0; default: return Debug.assertNever(node); @@ -13618,18 +13682,18 @@ function getExternalModuleName(node) { } function getNamespaceDeclarationNode(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return node.importClause && tryCast(node.importClause.namedBindings, isNamespaceImport); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return node; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return node.exportClause && tryCast(node.exportClause, isNamespaceExport); default: return Debug.assertNever(node); } } function isDefaultImport(node) { - return node.kind === 271 /* ImportDeclaration */ && !!node.importClause && !!node.importClause.name; + return node.kind === 272 /* ImportDeclaration */ && !!node.importClause && !!node.importClause.name; } function forEachImportClauseDeclaration(node, action) { if (node.name) { @@ -13646,13 +13710,13 @@ function forEachImportClauseDeclaration(node, action) { function hasQuestionToken(node) { if (node) { switch (node.kind) { - case 168 /* Parameter */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 303 /* ShorthandPropertyAssignment */: - case 302 /* PropertyAssignment */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: + case 169 /* Parameter */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 304 /* ShorthandPropertyAssignment */: + case 303 /* PropertyAssignment */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: return node.questionToken !== void 0; } } @@ -13664,7 +13728,7 @@ function isJSDocConstructSignature(node) { return !!name && name.escapedText === "new"; } function isJSDocTypeAlias(node) { - return node.kind === 352 /* JSDocTypedefTag */ || node.kind === 344 /* JSDocCallbackTag */ || node.kind === 346 /* JSDocEnumTag */; + return node.kind === 353 /* JSDocTypedefTag */ || node.kind === 345 /* JSDocCallbackTag */ || node.kind === 347 /* JSDocEnumTag */; } function isTypeAlias(node) { return isJSDocTypeAlias(node) || isTypeAliasDeclaration(node); @@ -13677,12 +13741,12 @@ function getSourceOfDefaultedAssignment(node) { } function getSingleInitializerOfVariableStatementOrPropertyDeclaration(node) { switch (node.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: const v = getSingleVariableOfVariableStatement(node); return v && v.initializer; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return node.initializer; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return node.initializer; } } @@ -13690,26 +13754,26 @@ function getSingleVariableOfVariableStatement(node) { return isVariableStatement(node) ? firstOrUndefined(node.declarationList.declarations) : void 0; } function getNestedModuleDeclaration(node) { - return isModuleDeclaration(node) && node.body && node.body.kind === 266 /* ModuleDeclaration */ ? node.body : void 0; + return isModuleDeclaration(node) && node.body && node.body.kind === 267 /* ModuleDeclaration */ ? node.body : void 0; } function canHaveFlowNode(node) { - if (node.kind >= 242 /* FirstStatement */ && node.kind <= 258 /* LastStatement */) { + if (node.kind >= 243 /* FirstStatement */ && node.kind <= 259 /* LastStatement */) { return true; } switch (node.kind) { case 80 /* Identifier */: case 110 /* ThisKeyword */: case 108 /* SuperKeyword */: - case 165 /* QualifiedName */: - case 235 /* MetaProperty */: - case 211 /* ElementAccessExpression */: - case 210 /* PropertyAccessExpression */: - case 207 /* BindingElement */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 166 /* QualifiedName */: + case 236 /* MetaProperty */: + case 212 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 208 /* BindingElement */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return true; default: return false; @@ -13717,72 +13781,72 @@ function canHaveFlowNode(node) { } function canHaveJSDoc(node) { switch (node.kind) { - case 218 /* ArrowFunction */: - case 225 /* BinaryExpression */: - case 240 /* Block */: - case 251 /* BreakStatement */: - case 178 /* CallSignature */: - case 295 /* CaseClause */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 174 /* ClassStaticBlockDeclaration */: - case 175 /* Constructor */: - case 184 /* ConstructorType */: - case 179 /* ConstructSignature */: - case 250 /* ContinueStatement */: - case 258 /* DebuggerStatement */: - case 245 /* DoStatement */: - case 211 /* ElementAccessExpression */: - case 241 /* EmptyStatement */: + case 219 /* ArrowFunction */: + case 226 /* BinaryExpression */: + case 241 /* Block */: + case 252 /* BreakStatement */: + case 179 /* CallSignature */: + case 296 /* CaseClause */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 175 /* ClassStaticBlockDeclaration */: + case 176 /* Constructor */: + case 185 /* ConstructorType */: + case 180 /* ConstructSignature */: + case 251 /* ContinueStatement */: + case 259 /* DebuggerStatement */: + case 246 /* DoStatement */: + case 212 /* ElementAccessExpression */: + case 242 /* EmptyStatement */: case 1 /* EndOfFileToken */: - case 265 /* EnumDeclaration */: - case 305 /* EnumMember */: - case 276 /* ExportAssignment */: - case 277 /* ExportDeclaration */: - case 280 /* ExportSpecifier */: - case 243 /* ExpressionStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 247 /* ForStatement */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 183 /* FunctionType */: - case 176 /* GetAccessor */: + case 266 /* EnumDeclaration */: + case 306 /* EnumMember */: + case 277 /* ExportAssignment */: + case 278 /* ExportDeclaration */: + case 281 /* ExportSpecifier */: + case 244 /* ExpressionStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 248 /* ForStatement */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 184 /* FunctionType */: + case 177 /* GetAccessor */: case 80 /* Identifier */: - case 244 /* IfStatement */: - case 271 /* ImportDeclaration */: - case 270 /* ImportEqualsDeclaration */: - case 180 /* IndexSignature */: - case 263 /* InterfaceDeclaration */: - case 323 /* JSDocFunctionType */: - case 329 /* JSDocSignature */: - case 255 /* LabeledStatement */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 266 /* ModuleDeclaration */: - case 201 /* NamedTupleMember */: - case 269 /* NamespaceExportDeclaration */: - case 209 /* ObjectLiteralExpression */: - case 168 /* Parameter */: - case 216 /* ParenthesizedExpression */: - case 210 /* PropertyAccessExpression */: - case 302 /* PropertyAssignment */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 252 /* ReturnStatement */: - case 239 /* SemicolonClassElement */: - case 177 /* SetAccessor */: - case 303 /* ShorthandPropertyAssignment */: - case 304 /* SpreadAssignment */: - case 254 /* SwitchStatement */: - case 256 /* ThrowStatement */: - case 257 /* TryStatement */: - case 264 /* TypeAliasDeclaration */: - case 167 /* TypeParameter */: - case 259 /* VariableDeclaration */: - case 242 /* VariableStatement */: - case 246 /* WhileStatement */: - case 253 /* WithStatement */: + case 245 /* IfStatement */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 181 /* IndexSignature */: + case 264 /* InterfaceDeclaration */: + case 324 /* JSDocFunctionType */: + case 330 /* JSDocSignature */: + case 256 /* LabeledStatement */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 267 /* ModuleDeclaration */: + case 202 /* NamedTupleMember */: + case 270 /* NamespaceExportDeclaration */: + case 210 /* ObjectLiteralExpression */: + case 169 /* Parameter */: + case 217 /* ParenthesizedExpression */: + case 211 /* PropertyAccessExpression */: + case 303 /* PropertyAssignment */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 253 /* ReturnStatement */: + case 240 /* SemicolonClassElement */: + case 178 /* SetAccessor */: + case 304 /* ShorthandPropertyAssignment */: + case 305 /* SpreadAssignment */: + case 255 /* SwitchStatement */: + case 257 /* ThrowStatement */: + case 258 /* TryStatement */: + case 265 /* TypeAliasDeclaration */: + case 168 /* TypeParameter */: + case 260 /* VariableDeclaration */: + case 243 /* VariableStatement */: + case 247 /* WhileStatement */: + case 254 /* WithStatement */: return true; default: return false; @@ -13798,11 +13862,11 @@ function getJSDocCommentsAndTags(hostNode, noCache) { if (hasJSDocNodes(node)) { result = addRange(result, filterOwnedJSDocTags(hostNode, last(node.jsDoc))); } - if (node.kind === 168 /* Parameter */) { + if (node.kind === 169 /* Parameter */) { result = addRange(result, (noCache ? getJSDocParameterTagsNoCache : getJSDocParameterTags)(node)); break; } - if (node.kind === 167 /* TypeParameter */) { + if (node.kind === 168 /* TypeParameter */) { result = addRange(result, (noCache ? getJSDocTypeParameterTagsNoCache : getJSDocTypeParameterTags)(node)); break; } @@ -13822,7 +13886,7 @@ function ownsJSDocTag(hostNode, tag) { } function getNextJSDocCommentLocation(node) { const parent = node.parent; - if (parent.kind === 302 /* PropertyAssignment */ || parent.kind === 276 /* ExportAssignment */ || parent.kind === 171 /* PropertyDeclaration */ || parent.kind === 243 /* ExpressionStatement */ && node.kind === 210 /* PropertyAccessExpression */ || parent.kind === 252 /* ReturnStatement */ || getNestedModuleDeclaration(parent) || isBinaryExpression(node) && node.operatorToken.kind === 64 /* EqualsToken */) { + if (parent.kind === 303 /* PropertyAssignment */ || parent.kind === 277 /* ExportAssignment */ || parent.kind === 172 /* PropertyDeclaration */ || parent.kind === 244 /* ExpressionStatement */ && node.kind === 211 /* PropertyAccessExpression */ || parent.kind === 253 /* ReturnStatement */ || getNestedModuleDeclaration(parent) || isBinaryExpression(node) && node.operatorToken.kind === 64 /* EqualsToken */) { return parent; } else if (parent.parent && (getSingleVariableOfVariableStatement(parent.parent) === node || isBinaryExpression(parent) && parent.operatorToken.kind === 64 /* EqualsToken */)) { return parent.parent; @@ -13889,32 +13953,32 @@ function getAssignmentTargetKind(node) { let parent = node.parent; while (true) { switch (parent.kind) { - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: const binaryOperator = parent.operatorToken.kind; return isAssignmentOperator(binaryOperator) && parent.left === node ? binaryOperator === 64 /* EqualsToken */ || isLogicalOrCoalescingAssignmentOperator(binaryOperator) ? 1 /* Definite */ : 2 /* Compound */ : 0 /* None */; - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: const unaryOperator = parent.operator; return unaryOperator === 46 /* PlusPlusToken */ || unaryOperator === 47 /* MinusMinusToken */ ? 2 /* Compound */ : 0 /* None */; - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: return parent.initializer === node ? 1 /* Definite */ : 0 /* None */; - case 216 /* ParenthesizedExpression */: - case 208 /* ArrayLiteralExpression */: - case 229 /* SpreadElement */: - case 234 /* NonNullExpression */: + case 217 /* ParenthesizedExpression */: + case 209 /* ArrayLiteralExpression */: + case 230 /* SpreadElement */: + case 235 /* NonNullExpression */: node = parent; break; - case 304 /* SpreadAssignment */: + case 305 /* SpreadAssignment */: node = parent.parent; break; - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: if (parent.name !== node) { return 0 /* None */; } node = parent.parent; break; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: if (parent.name === node) { return 0 /* None */; } @@ -13931,22 +13995,22 @@ function isAssignmentTarget(node) { } function isNodeWithPossibleHoistedDeclaration(node) { switch (node.kind) { - case 240 /* Block */: - case 242 /* VariableStatement */: - case 253 /* WithStatement */: - case 244 /* IfStatement */: - case 254 /* SwitchStatement */: - case 268 /* CaseBlock */: - case 295 /* CaseClause */: - case 296 /* DefaultClause */: - case 255 /* LabeledStatement */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: - case 257 /* TryStatement */: - case 298 /* CatchClause */: + case 241 /* Block */: + case 243 /* VariableStatement */: + case 254 /* WithStatement */: + case 245 /* IfStatement */: + case 255 /* SwitchStatement */: + case 269 /* CaseBlock */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: + case 256 /* LabeledStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 258 /* TryStatement */: + case 299 /* CatchClause */: return true; } return false; @@ -13961,14 +14025,14 @@ function walkUp(node, kind) { return node; } function walkUpParenthesizedTypes(node) { - return walkUp(node, 195 /* ParenthesizedType */); + return walkUp(node, 196 /* ParenthesizedType */); } function walkUpParenthesizedExpressions(node) { - return walkUp(node, 216 /* ParenthesizedExpression */); + return walkUp(node, 217 /* ParenthesizedExpression */); } function walkUpParenthesizedTypesAndGetParentAndChild(node) { let child; - while (node && node.kind === 195 /* ParenthesizedType */) { + while (node && node.kind === 196 /* ParenthesizedType */) { child = node; node = node.parent; } @@ -13984,11 +14048,11 @@ function skipParentheses(node, excludeJSDocTypeAssertions) { return skipOuterExpressions(node, flags); } function isDeleteTarget(node) { - if (node.kind !== 210 /* PropertyAccessExpression */ && node.kind !== 211 /* ElementAccessExpression */) { + if (node.kind !== 211 /* PropertyAccessExpression */ && node.kind !== 212 /* ElementAccessExpression */) { return false; } node = walkUpParenthesizedExpressions(node.parent); - return node && node.kind === 219 /* DeleteExpression */; + return node && node.kind === 220 /* DeleteExpression */; } function isNodeDescendantOf(node, ancestor) { while (node) { @@ -14002,49 +14066,49 @@ function isDeclarationName(name) { return !isSourceFile(name) && !isBindingPattern(name) && isDeclaration(name.parent) && name.parent.name === name; } function isLiteralComputedPropertyDeclarationName(node) { - return isStringOrNumericLiteralLike(node) && node.parent.kind === 166 /* ComputedPropertyName */ && isDeclaration(node.parent.parent); + return isStringOrNumericLiteralLike(node) && node.parent.kind === 167 /* ComputedPropertyName */ && isDeclaration(node.parent.parent); } function isIdentifierName(node) { const parent = node.parent; switch (parent.kind) { - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 305 /* EnumMember */: - case 302 /* PropertyAssignment */: - case 210 /* PropertyAccessExpression */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 306 /* EnumMember */: + case 303 /* PropertyAssignment */: + case 211 /* PropertyAccessExpression */: return parent.name === node; - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: return parent.right === node; - case 207 /* BindingElement */: - case 275 /* ImportSpecifier */: + case 208 /* BindingElement */: + case 276 /* ImportSpecifier */: return parent.propertyName === node; - case 280 /* ExportSpecifier */: - case 290 /* JsxAttribute */: - case 284 /* JsxSelfClosingElement */: - case 285 /* JsxOpeningElement */: - case 286 /* JsxClosingElement */: + case 281 /* ExportSpecifier */: + case 291 /* JsxAttribute */: + case 285 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 287 /* JsxClosingElement */: return true; } return false; } function getAliasDeclarationFromName(node) { switch (node.parent.kind) { - case 272 /* ImportClause */: - case 275 /* ImportSpecifier */: - case 273 /* NamespaceImport */: - case 280 /* ExportSpecifier */: - case 276 /* ExportAssignment */: - case 270 /* ImportEqualsDeclaration */: - case 279 /* NamespaceExport */: + case 273 /* ImportClause */: + case 276 /* ImportSpecifier */: + case 274 /* NamespaceImport */: + case 281 /* ExportSpecifier */: + case 277 /* ExportAssignment */: + case 271 /* ImportEqualsDeclaration */: + case 280 /* NamespaceExport */: return node.parent; - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: do { node = node.parent; - } while (node.parent.kind === 165 /* QualifiedName */); + } while (node.parent.kind === 166 /* QualifiedName */); return getAliasDeclarationFromName(node); } } @@ -14059,7 +14123,7 @@ function getExportAssignmentExpression(node) { return isExportAssignment(node) ? node.expression : node.right; } function getPropertyAssignmentAliasLikeExpression(node) { - return node.kind === 303 /* ShorthandPropertyAssignment */ ? node.name : node.kind === 302 /* PropertyAssignment */ ? node.initializer : node.parent.right; + return node.kind === 304 /* ShorthandPropertyAssignment */ ? node.name : node.kind === 303 /* PropertyAssignment */ ? node.initializer : node.parent.right; } function getEffectiveBaseTypeNode(node) { const baseType = getClassExtendsHeritageElement(node); @@ -14107,7 +14171,7 @@ function getAncestor(node, kind) { return void 0; } function isKeyword(token) { - return 83 /* FirstKeyword */ <= token && token <= 164 /* LastKeyword */; + return 83 /* FirstKeyword */ <= token && token <= 165 /* LastKeyword */; } function isPunctuation(token) { return 19 /* FirstPunctuation */ <= token && token <= 79 /* LastPunctuation */; @@ -14116,7 +14180,7 @@ function isKeywordOrPunctuation(token) { return isKeyword(token) || isPunctuation(token); } function isContextualKeyword(token) { - return 128 /* FirstContextualKeyword */ <= token && token <= 164 /* LastContextualKeyword */; + return 128 /* FirstContextualKeyword */ <= token && token <= 165 /* LastContextualKeyword */; } function isNonContextualKeyword(token) { return isKeyword(token) && !isContextualKeyword(token); @@ -14135,13 +14199,13 @@ function getFunctionFlags(node) { } let flags = 0 /* Normal */; switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 173 /* MethodDeclaration */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 174 /* MethodDeclaration */: if (node.asteriskToken) { flags |= 1 /* Generator */; } - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: if (hasSyntacticModifier(node, 512 /* Async */)) { flags |= 2 /* Async */; } @@ -14154,10 +14218,10 @@ function getFunctionFlags(node) { } function isAsyncFunction(node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: return node.body !== void 0 && node.asteriskToken === void 0 && hasSyntacticModifier(node, 512 /* Async */); } return false; @@ -14173,7 +14237,7 @@ function hasDynamicName(declaration) { return !!name && isDynamicName(name); } function isDynamicName(name) { - if (!(name.kind === 166 /* ComputedPropertyName */ || name.kind === 211 /* ElementAccessExpression */)) { + if (!(name.kind === 167 /* ComputedPropertyName */ || name.kind === 212 /* ElementAccessExpression */)) { return false; } const expr = isElementAccessExpression(name) ? skipParentheses(name.argumentExpression) : name.expression; @@ -14187,7 +14251,7 @@ function getPropertyNameForPropertyNameNode(name) { case 11 /* StringLiteral */: case 9 /* NumericLiteral */: return escapeLeadingUnderscores(name.text); - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: const nameExpression = name.expression; if (isStringOrNumericLiteralLike(nameExpression)) { return escapeLeadingUnderscores(nameExpression.text); @@ -14198,7 +14262,7 @@ function getPropertyNameForPropertyNameNode(name) { return nameExpression.operand.text; } return void 0; - case 294 /* JsxNamespacedName */: + case 295 /* JsxNamespacedName */: return getEscapedTextOfJsxNamespacedName(name); default: return Debug.assertNever(name); @@ -14233,13 +14297,17 @@ function isProtoSetter(node) { function isAnonymousFunctionDefinition(node, cb) { node = skipOuterExpressions(node); switch (node.kind) { - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: + case 231 /* ClassExpression */: + if (classHasDeclaredOrExplicitlyAssignedName(node)) { + return false; + } + break; + case 218 /* FunctionExpression */: if (node.name) { return false; } break; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: break; default: return false; @@ -14248,19 +14316,19 @@ function isAnonymousFunctionDefinition(node, cb) { } function isNamedEvaluationSource(node) { switch (node.kind) { - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return !isProtoSetter(node.name); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return !!node.objectAssignmentInitializer; - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return isIdentifier(node.name) && !!node.initializer; - case 168 /* Parameter */: + case 169 /* Parameter */: return isIdentifier(node.name) && !!node.initializer && !node.dotDotDotToken; - case 207 /* BindingElement */: + case 208 /* BindingElement */: return isIdentifier(node.name) && !!node.initializer && !node.dotDotDotToken; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return !!node.initializer; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: switch (node.operatorToken.kind) { case 64 /* EqualsToken */: case 77 /* AmpersandAmpersandEqualsToken */: @@ -14269,7 +14337,7 @@ function isNamedEvaluationSource(node) { return isIdentifier(node.left); } break; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return true; } return false; @@ -14278,18 +14346,18 @@ function isNamedEvaluation(node, cb) { if (!isNamedEvaluationSource(node)) return false; switch (node.kind) { - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return isAnonymousFunctionDefinition(node.initializer, cb); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return isAnonymousFunctionDefinition(node.objectAssignmentInitializer, cb); - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 207 /* BindingElement */: - case 171 /* PropertyDeclaration */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 208 /* BindingElement */: + case 172 /* PropertyDeclaration */: return isAnonymousFunctionDefinition(node.initializer, cb); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return isAnonymousFunctionDefinition(node.right, cb); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return isAnonymousFunctionDefinition(node.expression, cb); } } @@ -14298,39 +14366,39 @@ function isPushOrUnshiftIdentifier(node) { } function isParameterDeclaration(node) { const root = getRootDeclaration(node); - return root.kind === 168 /* Parameter */; + return root.kind === 169 /* Parameter */; } function getRootDeclaration(node) { - while (node.kind === 207 /* BindingElement */) { + while (node.kind === 208 /* BindingElement */) { node = node.parent.parent; } return node; } function nodeStartsNewLexicalEnvironment(node) { const kind = node.kind; - return kind === 175 /* Constructor */ || kind === 217 /* FunctionExpression */ || kind === 261 /* FunctionDeclaration */ || kind === 218 /* ArrowFunction */ || kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */ || kind === 266 /* ModuleDeclaration */ || kind === 311 /* SourceFile */; + return kind === 176 /* Constructor */ || kind === 218 /* FunctionExpression */ || kind === 262 /* FunctionDeclaration */ || kind === 219 /* ArrowFunction */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 267 /* ModuleDeclaration */ || kind === 312 /* SourceFile */; } function nodeIsSynthesized(range) { return positionIsSynthesized(range.pos) || positionIsSynthesized(range.end); } function getExpressionAssociativity(expression) { const operator = getOperator(expression); - const hasArguments = expression.kind === 213 /* NewExpression */ && expression.arguments !== void 0; + const hasArguments = expression.kind === 214 /* NewExpression */ && expression.arguments !== void 0; return getOperatorAssociativity(expression.kind, operator, hasArguments); } function getOperatorAssociativity(kind, operator, hasArguments) { switch (kind) { - case 213 /* NewExpression */: + case 214 /* NewExpression */: return hasArguments ? 0 /* Left */ : 1 /* Right */; - case 223 /* PrefixUnaryExpression */: - case 220 /* TypeOfExpression */: - case 221 /* VoidExpression */: - case 219 /* DeleteExpression */: - case 222 /* AwaitExpression */: - case 226 /* ConditionalExpression */: - case 228 /* YieldExpression */: + case 224 /* PrefixUnaryExpression */: + case 221 /* TypeOfExpression */: + case 222 /* VoidExpression */: + case 220 /* DeleteExpression */: + case 223 /* AwaitExpression */: + case 227 /* ConditionalExpression */: + case 229 /* YieldExpression */: return 1 /* Right */; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: switch (operator) { case 43 /* AsteriskAsteriskToken */: case 64 /* EqualsToken */: @@ -14356,13 +14424,13 @@ function getOperatorAssociativity(kind, operator, hasArguments) { } function getExpressionPrecedence(expression) { const operator = getOperator(expression); - const hasArguments = expression.kind === 213 /* NewExpression */ && expression.arguments !== void 0; + const hasArguments = expression.kind === 214 /* NewExpression */ && expression.arguments !== void 0; return getOperatorPrecedence(expression.kind, operator, hasArguments); } function getOperator(expression) { - if (expression.kind === 225 /* BinaryExpression */) { + if (expression.kind === 226 /* BinaryExpression */) { return expression.operatorToken.kind; - } else if (expression.kind === 223 /* PrefixUnaryExpression */ || expression.kind === 224 /* PostfixUnaryExpression */) { + } else if (expression.kind === 224 /* PrefixUnaryExpression */ || expression.kind === 225 /* PostfixUnaryExpression */) { return expression.operator; } else { return expression.kind; @@ -14370,15 +14438,15 @@ function getOperator(expression) { } function getOperatorPrecedence(nodeKind, operatorKind, hasArguments) { switch (nodeKind) { - case 360 /* CommaListExpression */: + case 361 /* CommaListExpression */: return 0 /* Comma */; - case 229 /* SpreadElement */: + case 230 /* SpreadElement */: return 1 /* Spread */; - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: return 2 /* Yield */; - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: return 4 /* Conditional */; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: switch (operatorKind) { case 28 /* CommaToken */: return 0 /* Comma */; @@ -14402,27 +14470,27 @@ function getOperatorPrecedence(nodeKind, operatorKind, hasArguments) { default: return getBinaryOperatorPrecedence(operatorKind); } - case 215 /* TypeAssertionExpression */: - case 234 /* NonNullExpression */: - case 223 /* PrefixUnaryExpression */: - case 220 /* TypeOfExpression */: - case 221 /* VoidExpression */: - case 219 /* DeleteExpression */: - case 222 /* AwaitExpression */: + case 216 /* TypeAssertionExpression */: + case 235 /* NonNullExpression */: + case 224 /* PrefixUnaryExpression */: + case 221 /* TypeOfExpression */: + case 222 /* VoidExpression */: + case 220 /* DeleteExpression */: + case 223 /* AwaitExpression */: return 16 /* Unary */; - case 224 /* PostfixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return 17 /* Update */; - case 212 /* CallExpression */: + case 213 /* CallExpression */: return 18 /* LeftHandSide */; - case 213 /* NewExpression */: + case 214 /* NewExpression */: return hasArguments ? 19 /* Member */ : 18 /* LeftHandSide */; - case 214 /* TaggedTemplateExpression */: - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: - case 235 /* MetaProperty */: + case 215 /* TaggedTemplateExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + case 236 /* MetaProperty */: return 19 /* Member */; - case 233 /* AsExpression */: - case 237 /* SatisfiesExpression */: + case 234 /* AsExpression */: + case 238 /* SatisfiesExpression */: return 11 /* Relational */; case 110 /* ThisKeyword */: case 108 /* SuperKeyword */: @@ -14434,19 +14502,19 @@ function getOperatorPrecedence(nodeKind, operatorKind, hasArguments) { case 9 /* NumericLiteral */: case 10 /* BigIntLiteral */: case 11 /* StringLiteral */: - case 208 /* ArrayLiteralExpression */: - case 209 /* ObjectLiteralExpression */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 230 /* ClassExpression */: + case 209 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 231 /* ClassExpression */: case 14 /* RegularExpressionLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: - case 227 /* TemplateExpression */: - case 216 /* ParenthesizedExpression */: - case 231 /* OmittedExpression */: - case 283 /* JsxElement */: - case 284 /* JsxSelfClosingElement */: - case 287 /* JsxFragment */: + case 228 /* TemplateExpression */: + case 217 /* ParenthesizedExpression */: + case 232 /* OmittedExpression */: + case 284 /* JsxElement */: + case 285 /* JsxSelfClosingElement */: + case 288 /* JsxFragment */: return 20 /* Primary */; default: return -1 /* Invalid */; @@ -14499,7 +14567,7 @@ function getBinaryOperatorPrecedence(kind) { function getSemanticJsxChildren(children) { return filter(children, (i) => { switch (i.kind) { - case 293 /* JsxExpression */: + case 294 /* JsxExpression */: return !!i.expression; case 12 /* JsxText */: return !i.containsOnlyTriviaWhiteSpaces; @@ -14576,9 +14644,9 @@ function escapeTemplateSubstitution(str) { function hasInvalidEscape(template) { return template && !!(isNoSubstitutionTemplateLiteral(template) ? template.templateFlags : template.head.templateFlags || some(template.templateSpans, (span) => !!span.literal.templateFlags)); } -var doubleQuoteEscapedCharsRegExp = /[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g; -var singleQuoteEscapedCharsRegExp = /[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g; -var backtickQuoteEscapedCharsRegExp = /\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g; +var doubleQuoteEscapedCharsRegExp = /[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g; +var singleQuoteEscapedCharsRegExp = /[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g; +var backtickQuoteEscapedCharsRegExp = /\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g; var escapedCharsMap = new Map(Object.entries({ " ": "\\t", "\v": "\\v", @@ -14623,8 +14691,8 @@ function escapeNonAsciiString(s, quoteChar) { s = escapeString(s, quoteChar); return nonAsciiCharacters.test(s) ? s.replace(nonAsciiCharacters, (c) => encodeUtf16EscapeSequence(c.charCodeAt(0))) : s; } -var jsxDoubleQuoteEscapedCharsRegExp = /[\"\u0000-\u001f\u2028\u2029\u0085]/g; -var jsxSingleQuoteEscapedCharsRegExp = /[\'\u0000-\u001f\u2028\u2029\u0085]/g; +var jsxDoubleQuoteEscapedCharsRegExp = /["\u0000-\u001f\u2028\u2029\u0085]/g; +var jsxSingleQuoteEscapedCharsRegExp = /['\u0000-\u001f\u2028\u2029\u0085]/g; var jsxEscapedCharsMap = new Map(Object.entries({ '"': """, "'": "'" @@ -14996,6 +15064,12 @@ function parameterIsThisKeyword(parameter) { function isThisIdentifier(node) { return !!node && node.kind === 80 /* Identifier */ && identifierIsThisKeyword(node); } +function isInTypeQuery(node) { + return !!findAncestor( + node, + (n) => n.kind === 186 /* TypeQuery */ ? true : n.kind === 80 /* Identifier */ || n.kind === 166 /* QualifiedName */ ? false : "quit" + ); +} function isThisInTypeQuery(node) { if (!isThisIdentifier(node)) { return false; @@ -15003,7 +15077,7 @@ function isThisInTypeQuery(node) { while (isQualifiedName(node.parent) && node.parent.left === node) { node = node.parent; } - return node.parent.kind === 185 /* TypeQuery */; + return node.parent.kind === 186 /* TypeQuery */; } function identifierIsThisKeyword(id) { return id.escapedText === "this"; @@ -15015,9 +15089,9 @@ function getAllAccessorDeclarations(declarations, accessor) { let setAccessor; if (hasDynamicName(accessor)) { firstAccessor = accessor; - if (accessor.kind === 176 /* GetAccessor */) { + if (accessor.kind === 177 /* GetAccessor */) { getAccessor = accessor; - } else if (accessor.kind === 177 /* SetAccessor */) { + } else if (accessor.kind === 178 /* SetAccessor */) { setAccessor = accessor; } else { Debug.fail("Accessor has wrong kind"); @@ -15033,10 +15107,10 @@ function getAllAccessorDeclarations(declarations, accessor) { } else if (!secondAccessor) { secondAccessor = member; } - if (member.kind === 176 /* GetAccessor */ && !getAccessor) { + if (member.kind === 177 /* GetAccessor */ && !getAccessor) { getAccessor = member; } - if (member.kind === 177 /* SetAccessor */ && !setAccessor) { + if (member.kind === 178 /* SetAccessor */ && !setAccessor) { setAccessor = member; } } @@ -15065,7 +15139,7 @@ function getJSDocTypeParameterDeclarations(node) { return flatMap(getJSDocTags(node), (tag) => isNonTypeAliasTemplate(tag) ? tag.typeParameters : void 0); } function isNonTypeAliasTemplate(tag) { - return isJSDocTemplateTag(tag) && !(tag.parent.kind === 326 /* JSDoc */ && (tag.parent.tags.some(isJSDocTypeAlias) || tag.parent.tags.some(isJSDocOverloadTag))); + return isJSDocTemplateTag(tag) && !(tag.parent.kind === 327 /* JSDoc */ && (tag.parent.tags.some(isJSDocTypeAlias) || tag.parent.tags.some(isJSDocOverloadTag))); } function getEffectiveSetAccessorTypeAnnotationNode(node) { const parameter = getSetAccessorValueParameter(node); @@ -15255,7 +15329,7 @@ function getSelectedSyntacticModifierFlags(node, flags) { return getSyntacticModifierFlags(node) & flags; } function getModifierFlagsWorker(node, includeJSDoc, alwaysIncludeJSDoc) { - if (node.kind >= 0 /* FirstToken */ && node.kind <= 164 /* LastToken */) { + if (node.kind >= 0 /* FirstToken */ && node.kind <= 165 /* LastToken */) { return 0 /* None */; } if (!(node.modifierFlagsCache & 536870912 /* HasComputedFlags */)) { @@ -15305,7 +15379,7 @@ function getEffectiveModifierFlagsNoCache(node) { } function getSyntacticModifierFlagsNoCache(node) { let flags = canHaveModifiers(node) ? modifiersToFlags(node.modifiers) : 0 /* None */; - if (node.flags & 4 /* NestedNamespace */ || node.kind === 80 /* Identifier */ && node.flags & 2048 /* IdentifierIsInJSDocNamespace */) { + if (node.flags & 8 /* NestedNamespace */ || node.kind === 80 /* Identifier */ && node.flags & 4096 /* IdentifierIsInJSDocNamespace */) { flags |= 1 /* Export */; } return flags; @@ -15345,13 +15419,13 @@ function modifierToFlag(token) { return 512 /* Async */; case 148 /* ReadonlyKeyword */: return 64 /* Readonly */; - case 163 /* OverrideKeyword */: + case 164 /* OverrideKeyword */: return 16384 /* Override */; case 103 /* InKeyword */: return 32768 /* In */; case 147 /* OutKeyword */: return 65536 /* Out */; - case 169 /* Decorator */: + case 170 /* Decorator */: return 131072 /* Decorator */; } return 0 /* None */; @@ -15405,7 +15479,7 @@ function isDestructuringAssignment(node) { true )) { const kind = node.left.kind; - return kind === 209 /* ObjectLiteralExpression */ || kind === 208 /* ArrayLiteralExpression */; + return kind === 210 /* ObjectLiteralExpression */ || kind === 209 /* ArrayLiteralExpression */; } return false; } @@ -15419,12 +15493,12 @@ function getFirstIdentifier(node) { switch (node.kind) { case 80 /* Identifier */: return node; - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: do { node = node.left; } while (node.kind !== 80 /* Identifier */); return node; - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: do { node = node.expression; } while (node.kind !== 80 /* Identifier */); @@ -15432,7 +15506,7 @@ function getFirstIdentifier(node) { } } function isDottedName(node) { - return node.kind === 80 /* Identifier */ || node.kind === 110 /* ThisKeyword */ || node.kind === 108 /* SuperKeyword */ || node.kind === 235 /* MetaProperty */ || node.kind === 210 /* PropertyAccessExpression */ && isDottedName(node.expression) || node.kind === 216 /* ParenthesizedExpression */ && isDottedName(node.expression); + return node.kind === 80 /* Identifier */ || node.kind === 110 /* ThisKeyword */ || node.kind === 108 /* SuperKeyword */ || node.kind === 236 /* MetaProperty */ || node.kind === 211 /* PropertyAccessExpression */ && isDottedName(node.expression) || node.kind === 217 /* ParenthesizedExpression */ && isDottedName(node.expression); } function isPropertyAccessEntityNameExpression(node) { return isPropertyAccessExpression(node) && isIdentifier(node.name) && isEntityNameExpression(node.expression); @@ -15459,16 +15533,16 @@ function isPrototypeAccess(node) { return isBindableStaticAccessExpression(node) && getElementOrPropertyAccessName(node) === "prototype"; } function isRightSideOfQualifiedNameOrPropertyAccess(node) { - return node.parent.kind === 165 /* QualifiedName */ && node.parent.right === node || node.parent.kind === 210 /* PropertyAccessExpression */ && node.parent.name === node; + return node.parent.kind === 166 /* QualifiedName */ && node.parent.right === node || node.parent.kind === 211 /* PropertyAccessExpression */ && node.parent.name === node || node.parent.kind === 236 /* MetaProperty */ && node.parent.name === node; } function isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(node) { return isQualifiedName(node.parent) && node.parent.right === node || isPropertyAccessExpression(node.parent) && node.parent.name === node || isJSDocMemberName(node.parent) && node.parent.right === node; } function isEmptyObjectLiteral(expression) { - return expression.kind === 209 /* ObjectLiteralExpression */ && expression.properties.length === 0; + return expression.kind === 210 /* ObjectLiteralExpression */ && expression.properties.length === 0; } function isEmptyArrayLiteral(expression) { - return expression.kind === 208 /* ArrayLiteralExpression */ && expression.elements.length === 0; + return expression.kind === 209 /* ArrayLiteralExpression */ && expression.elements.length === 0; } function getLocalSymbolForExportDefault(symbol) { if (!isExportDefaultSymbol(symbol) || !symbol.declarations) @@ -15673,8 +15747,8 @@ function isDeclarationNameOfEnumOrNamespace(node) { const parseNode = getParseTreeNode(node); if (parseNode) { switch (parseNode.parent.kind) { - case 265 /* EnumDeclaration */: - case 266 /* ModuleDeclaration */: + case 266 /* EnumDeclaration */: + case 267 /* ModuleDeclaration */: return parseNode === parseNode.parent.name; } } @@ -15724,24 +15798,24 @@ function isWriteAccess(node) { function accessKind(node) { const { parent } = node; switch (parent == null ? void 0 : parent.kind) { - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return accessKind(parent); - case 224 /* PostfixUnaryExpression */: - case 223 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: const { operator } = parent; return operator === 46 /* PlusPlusToken */ || operator === 47 /* MinusMinusToken */ ? 2 /* ReadWrite */ : 0 /* Read */; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: const { left, operatorToken } = parent; return left === node && isAssignmentOperator(operatorToken.kind) ? operatorToken.kind === 64 /* EqualsToken */ ? 1 /* Write */ : 2 /* ReadWrite */ : 0 /* Read */; - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return parent.name !== node ? 0 /* Read */ : accessKind(parent); - case 302 /* PropertyAssignment */: { + case 303 /* PropertyAssignment */: { const parentAccess = accessKind(parent.parent); return node === parent.name ? reverseAccessKind(parentAccess) : parentAccess; } - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return node === parent.objectAssignmentInitializer ? 0 /* Read */ : accessKind(parent.parent); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return accessKind(parent); default: return 0 /* Read */; @@ -15831,10 +15905,10 @@ function getLastChild(node) { return lastChild; } function isTypeNodeKind(kind) { - return kind >= 181 /* FirstTypeNode */ && kind <= 204 /* LastTypeNode */ || kind === 133 /* AnyKeyword */ || kind === 159 /* UnknownKeyword */ || kind === 150 /* NumberKeyword */ || kind === 162 /* BigIntKeyword */ || kind === 151 /* ObjectKeyword */ || kind === 136 /* BooleanKeyword */ || kind === 154 /* StringKeyword */ || kind === 155 /* SymbolKeyword */ || kind === 116 /* VoidKeyword */ || kind === 157 /* UndefinedKeyword */ || kind === 146 /* NeverKeyword */ || kind === 141 /* IntrinsicKeyword */ || kind === 232 /* ExpressionWithTypeArguments */ || kind === 318 /* JSDocAllType */ || kind === 319 /* JSDocUnknownType */ || kind === 320 /* JSDocNullableType */ || kind === 321 /* JSDocNonNullableType */ || kind === 322 /* JSDocOptionalType */ || kind === 323 /* JSDocFunctionType */ || kind === 324 /* JSDocVariadicType */; + return kind >= 182 /* FirstTypeNode */ && kind <= 205 /* LastTypeNode */ || kind === 133 /* AnyKeyword */ || kind === 159 /* UnknownKeyword */ || kind === 150 /* NumberKeyword */ || kind === 163 /* BigIntKeyword */ || kind === 151 /* ObjectKeyword */ || kind === 136 /* BooleanKeyword */ || kind === 154 /* StringKeyword */ || kind === 155 /* SymbolKeyword */ || kind === 116 /* VoidKeyword */ || kind === 157 /* UndefinedKeyword */ || kind === 146 /* NeverKeyword */ || kind === 141 /* IntrinsicKeyword */ || kind === 233 /* ExpressionWithTypeArguments */ || kind === 319 /* JSDocAllType */ || kind === 320 /* JSDocUnknownType */ || kind === 321 /* JSDocNullableType */ || kind === 322 /* JSDocNonNullableType */ || kind === 323 /* JSDocOptionalType */ || kind === 324 /* JSDocFunctionType */ || kind === 325 /* JSDocVariadicType */; } function isAccessExpression(node) { - return node.kind === 210 /* PropertyAccessExpression */ || node.kind === 211 /* ElementAccessExpression */; + return node.kind === 211 /* PropertyAccessExpression */ || node.kind === 212 /* ElementAccessExpression */; } function isBundleFileTextLike(section) { switch (section.kind) { @@ -15854,28 +15928,28 @@ function getLeftmostAccessExpression(expr) { function getLeftmostExpression(node, stopAtCallExpressions) { while (true) { switch (node.kind) { - case 224 /* PostfixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: node = node.operand; continue; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: node = node.left; continue; - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: node = node.condition; continue; - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: node = node.tag; continue; - case 212 /* CallExpression */: + case 213 /* CallExpression */: if (stopAtCallExpressions) { return node; } - case 233 /* AsExpression */: - case 211 /* ElementAccessExpression */: - case 210 /* PropertyAccessExpression */: - case 234 /* NonNullExpression */: - case 359 /* PartiallyEmittedExpression */: - case 237 /* SatisfiesExpression */: + case 234 /* AsExpression */: + case 212 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 235 /* NonNullExpression */: + case 360 /* PartiallyEmittedExpression */: + case 238 /* SatisfiesExpression */: node = node.expression; continue; } @@ -16313,6 +16387,9 @@ function getAllowJSCompilerOption(compilerOptions) { function getUseDefineForClassFields(compilerOptions) { return compilerOptions.useDefineForClassFields === void 0 ? getEmitScriptTarget(compilerOptions) >= 9 /* ES2022 */ : compilerOptions.useDefineForClassFields; } +function getEmitStandardClassFields(compilerOptions) { + return compilerOptions.useDefineForClassFields !== false && getEmitScriptTarget(compilerOptions) >= 9 /* ES2022 */; +} function compilerOptionsAffectSemanticDiagnostics(newOptions, oldOptions) { return optionsHaveChanges(oldOptions, newOptions, semanticDiagnosticsOptionDeclarations); } @@ -16410,7 +16487,7 @@ function guessDirectorySymlink(a, b, cwd, getCanonicalFileName) { function isNodeModulesOrScopedPackageDirectory(s, getCanonicalFileName) { return s !== void 0 && (getCanonicalFileName(s) === "node_modules" || startsWith(s, "@")); } -var reservedCharacterPattern = /[^\w\s\/]/g; +var reservedCharacterPattern = /[^\w\s/]/g; var wildcardCharCodes = [42 /* asterisk */, 63 /* question */]; var commonPackageFolders = ["node_modules", "bower_components", "jspm_packages"]; var implicitExcludePathRegexPattern = `(?!(${commonPackageFolders.join("|")})(/|$))`; @@ -16523,7 +16600,7 @@ function getSubPatternFromSpec(spec, basePath, usage, { singleAsteriskRegexFragm function replaceWildcardCharacter(match, singleAsteriskRegexFragment) { return match === "*" ? singleAsteriskRegexFragment : match === "?" ? "[^/]" : "\\" + match; } -function getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames, currentDirectory) { +function getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames2, currentDirectory) { path = normalizePath(path); currentDirectory = normalizePath(currentDirectory); const absolutePath = combinePaths(currentDirectory, path); @@ -16532,22 +16609,22 @@ function getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNa includeFilePattern: getRegularExpressionForWildcard(includes, absolutePath, "files"), includeDirectoryPattern: getRegularExpressionForWildcard(includes, absolutePath, "directories"), excludePattern: getRegularExpressionForWildcard(excludes, absolutePath, "exclude"), - basePaths: getBasePaths(path, includes, useCaseSensitiveFileNames) + basePaths: getBasePaths(path, includes, useCaseSensitiveFileNames2) }; } -function getRegexFromPattern(pattern, useCaseSensitiveFileNames) { - return new RegExp(pattern, useCaseSensitiveFileNames ? "" : "i"); +function getRegexFromPattern(pattern, useCaseSensitiveFileNames2) { + return new RegExp(pattern, useCaseSensitiveFileNames2 ? "" : "i"); } -function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath) { +function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames2, currentDirectory, depth, getFileSystemEntries, realpath) { path = normalizePath(path); currentDirectory = normalizePath(currentDirectory); - const patterns = getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames, currentDirectory); - const includeFileRegexes = patterns.includeFilePatterns && patterns.includeFilePatterns.map((pattern) => getRegexFromPattern(pattern, useCaseSensitiveFileNames)); - const includeDirectoryRegex = patterns.includeDirectoryPattern && getRegexFromPattern(patterns.includeDirectoryPattern, useCaseSensitiveFileNames); - const excludeRegex = patterns.excludePattern && getRegexFromPattern(patterns.excludePattern, useCaseSensitiveFileNames); + const patterns = getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames2, currentDirectory); + const includeFileRegexes = patterns.includeFilePatterns && patterns.includeFilePatterns.map((pattern) => getRegexFromPattern(pattern, useCaseSensitiveFileNames2)); + const includeDirectoryRegex = patterns.includeDirectoryPattern && getRegexFromPattern(patterns.includeDirectoryPattern, useCaseSensitiveFileNames2); + const excludeRegex = patterns.excludePattern && getRegexFromPattern(patterns.excludePattern, useCaseSensitiveFileNames2); const results = includeFileRegexes ? includeFileRegexes.map(() => []) : [[]]; const visited = /* @__PURE__ */ new Map(); - const toCanonical = createGetCanonicalFileName(useCaseSensitiveFileNames); + const toCanonical = createGetCanonicalFileName(useCaseSensitiveFileNames2); for (const basePath of patterns.basePaths) { visitDirectory(basePath, combinePaths(currentDirectory, basePath), depth); } @@ -16589,7 +16666,7 @@ function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNa } } } -function getBasePaths(path, includes, useCaseSensitiveFileNames) { +function getBasePaths(path, includes, useCaseSensitiveFileNames2) { const basePaths = [path]; if (includes) { const includeBasePaths = []; @@ -16597,9 +16674,9 @@ function getBasePaths(path, includes, useCaseSensitiveFileNames) { const absolute = isRootedDiskPath(include) ? include : normalizePath(combinePaths(path, include)); includeBasePaths.push(getIncludeBasePath(absolute)); } - includeBasePaths.sort(getStringComparer(!useCaseSensitiveFileNames)); + includeBasePaths.sort(getStringComparer(!useCaseSensitiveFileNames2)); for (const includeBasePath of includeBasePaths) { - if (every(basePaths, (basePath) => !containsPath(basePath, includeBasePath, path, !useCaseSensitiveFileNames))) { + if (every(basePaths, (basePath) => !containsPath(basePath, includeBasePath, path, !useCaseSensitiveFileNames2))) { basePaths.push(includeBasePath); } } @@ -16961,39 +17038,39 @@ function isValidBigIntString(s, roundTripOnly) { return success && result === 10 /* BigIntLiteral */ && scanner.getTokenEnd() === s.length + 1 && !(flags & 512 /* ContainsSeparator */) && (!roundTripOnly || s === pseudoBigIntToString({ negative, base10Value: parsePseudoBigInt(scanner.getTokenValue()) })); } function isValidTypeOnlyAliasUseSite(useSite) { - return !!(useSite.flags & 16777216 /* Ambient */) || isPartOfTypeQuery(useSite) || isIdentifierInNonEmittingHeritageClause(useSite) || isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(useSite) || !(isExpressionNode(useSite) || isShorthandPropertyNameUseSite(useSite)); + return !!(useSite.flags & 33554432 /* Ambient */) || isPartOfTypeQuery(useSite) || isIdentifierInNonEmittingHeritageClause(useSite) || isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(useSite) || !(isExpressionNode(useSite) || isShorthandPropertyNameUseSite(useSite)); } function isShorthandPropertyNameUseSite(useSite) { return isIdentifier(useSite) && isShorthandPropertyAssignment(useSite.parent) && useSite.parent.name === useSite; } function isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(node) { - while (node.kind === 80 /* Identifier */ || node.kind === 210 /* PropertyAccessExpression */) { + while (node.kind === 80 /* Identifier */ || node.kind === 211 /* PropertyAccessExpression */) { node = node.parent; } - if (node.kind !== 166 /* ComputedPropertyName */) { + if (node.kind !== 167 /* ComputedPropertyName */) { return false; } if (hasSyntacticModifier(node.parent, 256 /* Abstract */)) { return true; } const containerKind = node.parent.parent.kind; - return containerKind === 263 /* InterfaceDeclaration */ || containerKind === 186 /* TypeLiteral */; + return containerKind === 264 /* InterfaceDeclaration */ || containerKind === 187 /* TypeLiteral */; } function isIdentifierInNonEmittingHeritageClause(node) { if (node.kind !== 80 /* Identifier */) return false; const heritageClause = findAncestor(node.parent, (parent) => { switch (parent.kind) { - case 297 /* HeritageClause */: + case 298 /* HeritageClause */: return true; - case 210 /* PropertyAccessExpression */: - case 232 /* ExpressionWithTypeArguments */: + case 211 /* PropertyAccessExpression */: + case 233 /* ExpressionWithTypeArguments */: return false; default: return "quit"; } }); - return (heritageClause == null ? void 0 : heritageClause.token) === 119 /* ImplementsKeyword */ || (heritageClause == null ? void 0 : heritageClause.parent.kind) === 263 /* InterfaceDeclaration */; + return (heritageClause == null ? void 0 : heritageClause.token) === 119 /* ImplementsKeyword */ || (heritageClause == null ? void 0 : heritageClause.parent.kind) === 264 /* InterfaceDeclaration */; } function isIdentifierTypeReference(node) { return isTypeReferenceNode(node) && isIdentifier(node.typeName); @@ -17105,20 +17182,20 @@ function getContainingNodeArray(node) { if (!node.parent) return void 0; switch (node.kind) { - case 167 /* TypeParameter */: + case 168 /* TypeParameter */: const { parent: parent2 } = node; - return parent2.kind === 194 /* InferType */ ? void 0 : parent2.typeParameters; - case 168 /* Parameter */: + return parent2.kind === 195 /* InferType */ ? void 0 : parent2.typeParameters; + case 169 /* Parameter */: return node.parent.parameters; - case 203 /* TemplateLiteralTypeSpan */: + case 204 /* TemplateLiteralTypeSpan */: return node.parent.templateSpans; - case 238 /* TemplateSpan */: + case 239 /* TemplateSpan */: return node.parent.templateSpans; - case 169 /* Decorator */: { + case 170 /* Decorator */: { const { parent: parent3 } = node; return canHaveDecorators(parent3) ? parent3.modifiers : void 0; } - case 297 /* HeritageClause */: + case 298 /* HeritageClause */: return node.parent.heritageClauses; } const { parent } = node; @@ -17126,43 +17203,43 @@ function getContainingNodeArray(node) { return isJSDocTypeLiteral(node.parent) ? void 0 : node.parent.tags; } switch (parent.kind) { - case 186 /* TypeLiteral */: - case 263 /* InterfaceDeclaration */: + case 187 /* TypeLiteral */: + case 264 /* InterfaceDeclaration */: return isTypeElement(node) ? parent.members : void 0; - case 191 /* UnionType */: - case 192 /* IntersectionType */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: return parent.types; - case 188 /* TupleType */: - case 208 /* ArrayLiteralExpression */: - case 360 /* CommaListExpression */: - case 274 /* NamedImports */: - case 278 /* NamedExports */: + case 189 /* TupleType */: + case 209 /* ArrayLiteralExpression */: + case 361 /* CommaListExpression */: + case 275 /* NamedImports */: + case 279 /* NamedExports */: return parent.elements; - case 209 /* ObjectLiteralExpression */: - case 291 /* JsxAttributes */: + case 210 /* ObjectLiteralExpression */: + case 292 /* JsxAttributes */: return parent.properties; - case 212 /* CallExpression */: - case 213 /* NewExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: return isTypeNode(node) ? parent.typeArguments : parent.expression === node ? void 0 : parent.arguments; - case 283 /* JsxElement */: - case 287 /* JsxFragment */: + case 284 /* JsxElement */: + case 288 /* JsxFragment */: return isJsxChild(node) ? parent.children : void 0; - case 285 /* JsxOpeningElement */: - case 284 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: return isTypeNode(node) ? parent.typeArguments : void 0; - case 240 /* Block */: - case 295 /* CaseClause */: - case 296 /* DefaultClause */: - case 267 /* ModuleBlock */: + case 241 /* Block */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: + case 268 /* ModuleBlock */: return parent.statements; - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: return parent.clauses; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return isClassElement(node) ? parent.members : void 0; - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return isEnumMember(node) ? parent.members : void 0; - case 311 /* SourceFile */: + case 312 /* SourceFile */: return parent.statements; } } @@ -17171,7 +17248,7 @@ function hasContextSensitiveParameters(node) { if (some(node.parameters, (p) => !getEffectiveTypeAnnotationNode(p))) { return true; } - if (node.kind !== 218 /* ArrowFunction */) { + if (node.kind !== 219 /* ArrowFunction */) { const parameter = firstOrUndefined(node.parameters); if (!(parameter && parameterIsThisKeyword(parameter))) { return true; @@ -17184,14 +17261,14 @@ function isInfinityOrNaNString(name) { return name === "Infinity" || name === "-Infinity" || name === "NaN"; } function isCatchClauseVariableDeclaration(node) { - return node.kind === 259 /* VariableDeclaration */ && node.parent.kind === 298 /* CatchClause */; + return node.kind === 260 /* VariableDeclaration */ && node.parent.kind === 299 /* CatchClause */; } function isParameterOrCatchClauseVariable(symbol) { const declaration = symbol.valueDeclaration && getRootDeclaration(symbol.valueDeclaration); return !!declaration && (isParameter(declaration) || isCatchClauseVariableDeclaration(declaration)); } function isFunctionExpressionOrArrowFunction(node) { - return node.kind === 217 /* FunctionExpression */ || node.kind === 218 /* ArrowFunction */; + return node.kind === 218 /* FunctionExpression */ || node.kind === 219 /* ArrowFunction */; } function isNumericLiteralName(name) { return (+name).toString() === name; @@ -17251,19 +17328,19 @@ function getNodeModulePathParts(fullPath) { } function isTypeDeclaration(node) { switch (node.kind) { - case 167 /* TypeParameter */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 265 /* EnumDeclaration */: - case 352 /* JSDocTypedefTag */: - case 344 /* JSDocCallbackTag */: - case 346 /* JSDocEnumTag */: + case 168 /* TypeParameter */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 266 /* EnumDeclaration */: + case 353 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: + case 347 /* JSDocEnumTag */: return true; - case 272 /* ImportClause */: + case 273 /* ImportClause */: return node.isTypeOnly; - case 275 /* ImportSpecifier */: - case 280 /* ExportSpecifier */: + case 276 /* ImportSpecifier */: + case 281 /* ExportSpecifier */: return node.parent.parent.isTypeOnly; default: return false; @@ -17277,7 +17354,7 @@ function isOptionalJSDocPropertyLikeTag(node) { return false; } const { isBracketed, typeExpression } = node; - return isBracketed || !!typeExpression && typeExpression.type.kind === 322 /* JSDocOptionalType */; + return isBracketed || !!typeExpression && typeExpression.type.kind === 323 /* JSDocOptionalType */; } function canUsePropertyAccess(name, languageVersion) { if (name.length === 0) { @@ -17288,17 +17365,17 @@ function canUsePropertyAccess(name, languageVersion) { } function isJSDocOptionalParameter(node) { return isInJSFile(node) && // node.type should only be a JSDocOptionalType when node is a parameter of a JSDocFunctionType - (node.type && node.type.kind === 322 /* JSDocOptionalType */ || getJSDocParameterTags(node).some(({ isBracketed, typeExpression }) => isBracketed || !!typeExpression && typeExpression.type.kind === 322 /* JSDocOptionalType */)); + (node.type && node.type.kind === 323 /* JSDocOptionalType */ || getJSDocParameterTags(node).some(({ isBracketed, typeExpression }) => isBracketed || !!typeExpression && typeExpression.type.kind === 323 /* JSDocOptionalType */)); } function isOptionalDeclaration(declaration) { switch (declaration.kind) { - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: return !!declaration.questionToken; - case 168 /* Parameter */: + case 169 /* Parameter */: return !!declaration.questionToken || isJSDocOptionalParameter(declaration); - case 354 /* JSDocPropertyTag */: - case 347 /* JSDocParameterTag */: + case 355 /* JSDocPropertyTag */: + case 348 /* JSDocParameterTag */: return isOptionalJSDocPropertyLikeTag(declaration); default: return false; @@ -17306,7 +17383,7 @@ function isOptionalDeclaration(declaration) { } function isNonNullAccess(node) { const kind = node.kind; - return (kind === 210 /* PropertyAccessExpression */ || kind === 211 /* ElementAccessExpression */) && isNonNullExpression(node.expression); + return (kind === 211 /* PropertyAccessExpression */ || kind === 212 /* ElementAccessExpression */) && isNonNullExpression(node.expression); } function isJSDocSatisfiesExpression(node) { return isInJSFile(node) && isParenthesizedExpression(node) && hasJSDocNodes(node) && !!getJSDocSatisfiesTag(node); @@ -17326,7 +17403,7 @@ function getTextOfJsxAttributeName(node) { } function isJsxAttributeName(node) { const kind = node.kind; - return kind === 80 /* Identifier */ || kind === 294 /* JsxNamespacedName */; + return kind === 80 /* Identifier */ || kind === 295 /* JsxNamespacedName */; } function getEscapedTextOfJsxNamespacedName(node) { return `${node.namespace.escapedText}:${idText(node.name)}`; @@ -17337,6 +17414,18 @@ function getTextOfJsxNamespacedName(node) { function intrinsicTagNameToString(node) { return isIdentifier(node) ? idText(node) : getTextOfJsxNamespacedName(node); } +function isTypeUsableAsPropertyName(type) { + return !!(type.flags & 8576 /* StringOrNumberLiteralOrUnique */); +} +function getPropertyNameFromType(type) { + if (type.flags & 8192 /* UniqueESSymbol */) { + return type.escapedName; + } + if (type.flags & (128 /* StringLiteral */ | 256 /* NumberLiteral */)) { + return escapeLeadingUnderscores("" + type.value); + } + return Debug.fail(); +} // src/compiler/factory/baseNodeFactory.ts function createBaseNodeFactory() { @@ -17459,16 +17548,16 @@ function createParenthesizerRules(factory2) { return parenthesizerRule; } function binaryOperandNeedsParentheses(binaryOperator, operand, isLeftSideOfBinary, leftOperand) { - const binaryOperatorPrecedence = getOperatorPrecedence(225 /* BinaryExpression */, binaryOperator); - const binaryOperatorAssociativity = getOperatorAssociativity(225 /* BinaryExpression */, binaryOperator); + const binaryOperatorPrecedence = getOperatorPrecedence(226 /* BinaryExpression */, binaryOperator); + const binaryOperatorAssociativity = getOperatorAssociativity(226 /* BinaryExpression */, binaryOperator); const emittedOperand = skipPartiallyEmittedExpressions(operand); - if (!isLeftSideOfBinary && operand.kind === 218 /* ArrowFunction */ && binaryOperatorPrecedence > 3 /* Assignment */) { + if (!isLeftSideOfBinary && operand.kind === 219 /* ArrowFunction */ && binaryOperatorPrecedence > 3 /* Assignment */) { return true; } const operandPrecedence = getExpressionPrecedence(emittedOperand); switch (compareValues(operandPrecedence, binaryOperatorPrecedence)) { case -1 /* LessThan */: - if (!isLeftSideOfBinary && binaryOperatorAssociativity === 1 /* Right */ && operand.kind === 228 /* YieldExpression */) { + if (!isLeftSideOfBinary && binaryOperatorAssociativity === 1 /* Right */ && operand.kind === 229 /* YieldExpression */) { return false; } return true; @@ -17502,7 +17591,7 @@ function createParenthesizerRules(factory2) { if (isLiteralKind(node.kind)) { return node.kind; } - if (node.kind === 225 /* BinaryExpression */ && node.operatorToken.kind === 40 /* PlusToken */) { + if (node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 40 /* PlusToken */) { if (node.cachedLiteralKind !== void 0) { return node.cachedLiteralKind; } @@ -17515,7 +17604,7 @@ function createParenthesizerRules(factory2) { } function parenthesizeBinaryOperand(binaryOperator, operand, isLeftSideOfBinary, leftOperand) { const skipped = skipPartiallyEmittedExpressions(operand); - if (skipped.kind === 216 /* ParenthesizedExpression */) { + if (skipped.kind === 217 /* ParenthesizedExpression */) { return operand; } return binaryOperandNeedsParentheses(binaryOperator, operand, isLeftSideOfBinary, leftOperand) ? factory2.createParenthesizedExpression(operand) : operand; @@ -17541,7 +17630,7 @@ function createParenthesizerRules(factory2) { return isCommaSequence(expression) ? factory2.createParenthesizedExpression(expression) : expression; } function parenthesizeConditionOfConditionalExpression(condition) { - const conditionalPrecedence = getOperatorPrecedence(226 /* ConditionalExpression */, 58 /* QuestionToken */); + const conditionalPrecedence = getOperatorPrecedence(227 /* ConditionalExpression */, 58 /* QuestionToken */); const emittedCondition = skipPartiallyEmittedExpressions(condition); const conditionPrecedence = getExpressionPrecedence(emittedCondition); if (compareValues(conditionPrecedence, conditionalPrecedence) !== 1 /* GreaterThan */) { @@ -17562,8 +17651,8 @@ function createParenthesizerRules(factory2) { /*stopAtCallExpressions*/ false ).kind) { - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: needsParens = true; } } @@ -17576,16 +17665,16 @@ function createParenthesizerRules(factory2) { true ); switch (leftmostExpr.kind) { - case 212 /* CallExpression */: + case 213 /* CallExpression */: return factory2.createParenthesizedExpression(expression); - case 213 /* NewExpression */: + case 214 /* NewExpression */: return !leftmostExpr.arguments ? factory2.createParenthesizedExpression(expression) : expression; } return parenthesizeLeftSideOfAccess(expression); } function parenthesizeLeftSideOfAccess(expression, optionalChain) { const emittedExpression = skipPartiallyEmittedExpressions(expression); - if (isLeftHandSideExpression(emittedExpression) && (emittedExpression.kind !== 213 /* NewExpression */ || emittedExpression.arguments) && (optionalChain || !isOptionalChain(emittedExpression))) { + if (isLeftHandSideExpression(emittedExpression) && (emittedExpression.kind !== 214 /* NewExpression */ || emittedExpression.arguments) && (optionalChain || !isOptionalChain(emittedExpression))) { return expression; } return setTextRange(factory2.createParenthesizedExpression(expression), expression); @@ -17603,7 +17692,7 @@ function createParenthesizerRules(factory2) { function parenthesizeExpressionForDisallowedComma(expression) { const emittedExpression = skipPartiallyEmittedExpressions(expression); const expressionPrecedence = getExpressionPrecedence(emittedExpression); - const commaPrecedence = getOperatorPrecedence(225 /* BinaryExpression */, 28 /* CommaToken */); + const commaPrecedence = getOperatorPrecedence(226 /* BinaryExpression */, 28 /* CommaToken */); return expressionPrecedence > commaPrecedence ? expression : setTextRange(factory2.createParenthesizedExpression(expression), expression); } function parenthesizeExpressionOfExpressionStatement(expression) { @@ -17611,7 +17700,7 @@ function createParenthesizerRules(factory2) { if (isCallExpression(emittedExpression)) { const callee = emittedExpression.expression; const kind = skipPartiallyEmittedExpressions(callee).kind; - if (kind === 217 /* FunctionExpression */ || kind === 218 /* ArrowFunction */) { + if (kind === 218 /* FunctionExpression */ || kind === 219 /* ArrowFunction */) { const updated = factory2.updateCallExpression( emittedExpression, setTextRange(factory2.createParenthesizedExpression(callee), callee), @@ -17626,7 +17715,7 @@ function createParenthesizerRules(factory2) { /*stopAtCallExpressions*/ false ).kind; - if (leftmostExpressionKind === 209 /* ObjectLiteralExpression */ || leftmostExpressionKind === 217 /* FunctionExpression */) { + if (leftmostExpressionKind === 210 /* ObjectLiteralExpression */ || leftmostExpressionKind === 218 /* FunctionExpression */) { return setTextRange(factory2.createParenthesizedExpression(expression), expression); } return expression; @@ -17636,31 +17725,31 @@ function createParenthesizerRules(factory2) { body, /*stopAtCallExpressions*/ false - ).kind === 209 /* ObjectLiteralExpression */)) { + ).kind === 210 /* ObjectLiteralExpression */)) { return setTextRange(factory2.createParenthesizedExpression(body), body); } return body; } function parenthesizeCheckTypeOfConditionalType(checkType) { switch (checkType.kind) { - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 193 /* ConditionalType */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 194 /* ConditionalType */: return factory2.createParenthesizedType(checkType); } return checkType; } function parenthesizeExtendsTypeOfConditionalType(extendsType) { switch (extendsType.kind) { - case 193 /* ConditionalType */: + case 194 /* ConditionalType */: return factory2.createParenthesizedType(extendsType); } return extendsType; } function parenthesizeConstituentTypeOfUnionType(type) { switch (type.kind) { - case 191 /* UnionType */: - case 192 /* IntersectionType */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: return factory2.createParenthesizedType(type); } return parenthesizeCheckTypeOfConditionalType(type); @@ -17670,8 +17759,8 @@ function createParenthesizerRules(factory2) { } function parenthesizeConstituentTypeOfIntersectionType(type) { switch (type.kind) { - case 191 /* UnionType */: - case 192 /* IntersectionType */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: return factory2.createParenthesizedType(type); } return parenthesizeConstituentTypeOfUnionType(type); @@ -17681,23 +17770,23 @@ function createParenthesizerRules(factory2) { } function parenthesizeOperandOfTypeOperator(type) { switch (type.kind) { - case 192 /* IntersectionType */: + case 193 /* IntersectionType */: return factory2.createParenthesizedType(type); } return parenthesizeConstituentTypeOfIntersectionType(type); } function parenthesizeOperandOfReadonlyTypeOperator(type) { switch (type.kind) { - case 197 /* TypeOperator */: + case 198 /* TypeOperator */: return factory2.createParenthesizedType(type); } return parenthesizeOperandOfTypeOperator(type); } function parenthesizeNonArrayTypeOfPostfixType(type) { switch (type.kind) { - case 194 /* InferType */: - case 197 /* TypeOperator */: - case 185 /* TypeQuery */: + case 195 /* InferType */: + case 198 /* TypeOperator */: + case 186 /* TypeQuery */: return factory2.createParenthesizedType(type); } return parenthesizeOperandOfTypeOperator(type); @@ -17782,6 +17871,7 @@ function createNodeConverters(factory2) { return { convertToFunctionBlock, convertToFunctionExpression, + convertToClassExpression, convertToArrayAssignmentElement, convertToObjectAssignmentElement, convertToAssignmentPattern, @@ -17799,10 +17889,11 @@ function createNodeConverters(factory2) { return body; } function convertToFunctionExpression(node) { + var _a; if (!node.body) return Debug.fail(`Cannot convert a FunctionDeclaration without a body`); const updated = factory2.createFunctionExpression( - getModifiers(node), + (_a = getModifiers(node)) == null ? void 0 : _a.filter((modifier) => !isExportModifier(modifier) && !isDefaultModifier(modifier)), node.asteriskToken, node.name, node.typeParameters, @@ -17821,6 +17912,26 @@ function createNodeConverters(factory2) { } return updated; } + function convertToClassExpression(node) { + var _a; + const updated = factory2.createClassExpression( + (_a = node.modifiers) == null ? void 0 : _a.filter((modifier) => !isExportModifier(modifier) && !isDefaultModifier(modifier)), + node.name, + node.typeParameters, + node.heritageClauses, + node.members + ); + setOriginalNode(updated, node); + setTextRange(updated, node); + if (getStartsOnNewLine(node)) { + setStartsOnNewLine( + updated, + /*newLine*/ + true + ); + } + return updated; + } function convertToArrayAssignmentElement(element) { if (isBindingElement(element)) { if (element.dotDotDotToken) { @@ -17855,11 +17966,11 @@ function createNodeConverters(factory2) { } function convertToAssignmentPattern(node) { switch (node.kind) { - case 206 /* ArrayBindingPattern */: - case 208 /* ArrayLiteralExpression */: + case 207 /* ArrayBindingPattern */: + case 209 /* ArrayLiteralExpression */: return convertToArrayAssignmentPattern(node); - case 205 /* ObjectBindingPattern */: - case 209 /* ObjectLiteralExpression */: + case 206 /* ObjectBindingPattern */: + case 210 /* ObjectLiteralExpression */: return convertToObjectAssignmentPattern(node); } } @@ -17897,6 +18008,7 @@ function createNodeConverters(factory2) { var nullNodeConverters = { convertToFunctionBlock: notImplemented, convertToFunctionExpression: notImplemented, + convertToClassExpression: notImplemented, convertToArrayAssignmentElement: notImplemented, convertToObjectAssignmentElement: notImplemented, convertToAssignmentPattern: notImplemented, @@ -18206,40 +18318,40 @@ function createNodeFactory(flags, baseFactory2) { updateExternalModuleReference, // lazily load factory members for JSDoc types with similar structure get createJSDocAllType() { - return getJSDocPrimaryTypeCreateFunction(318 /* JSDocAllType */); + return getJSDocPrimaryTypeCreateFunction(319 /* JSDocAllType */); }, get createJSDocUnknownType() { - return getJSDocPrimaryTypeCreateFunction(319 /* JSDocUnknownType */); + return getJSDocPrimaryTypeCreateFunction(320 /* JSDocUnknownType */); }, get createJSDocNonNullableType() { - return getJSDocPrePostfixUnaryTypeCreateFunction(321 /* JSDocNonNullableType */); + return getJSDocPrePostfixUnaryTypeCreateFunction(322 /* JSDocNonNullableType */); }, get updateJSDocNonNullableType() { - return getJSDocPrePostfixUnaryTypeUpdateFunction(321 /* JSDocNonNullableType */); + return getJSDocPrePostfixUnaryTypeUpdateFunction(322 /* JSDocNonNullableType */); }, get createJSDocNullableType() { - return getJSDocPrePostfixUnaryTypeCreateFunction(320 /* JSDocNullableType */); + return getJSDocPrePostfixUnaryTypeCreateFunction(321 /* JSDocNullableType */); }, get updateJSDocNullableType() { - return getJSDocPrePostfixUnaryTypeUpdateFunction(320 /* JSDocNullableType */); + return getJSDocPrePostfixUnaryTypeUpdateFunction(321 /* JSDocNullableType */); }, get createJSDocOptionalType() { - return getJSDocUnaryTypeCreateFunction(322 /* JSDocOptionalType */); + return getJSDocUnaryTypeCreateFunction(323 /* JSDocOptionalType */); }, get updateJSDocOptionalType() { - return getJSDocUnaryTypeUpdateFunction(322 /* JSDocOptionalType */); + return getJSDocUnaryTypeUpdateFunction(323 /* JSDocOptionalType */); }, get createJSDocVariadicType() { - return getJSDocUnaryTypeCreateFunction(324 /* JSDocVariadicType */); + return getJSDocUnaryTypeCreateFunction(325 /* JSDocVariadicType */); }, get updateJSDocVariadicType() { - return getJSDocUnaryTypeUpdateFunction(324 /* JSDocVariadicType */); + return getJSDocUnaryTypeUpdateFunction(325 /* JSDocVariadicType */); }, get createJSDocNamepathType() { - return getJSDocUnaryTypeCreateFunction(325 /* JSDocNamepathType */); + return getJSDocUnaryTypeCreateFunction(326 /* JSDocNamepathType */); }, get updateJSDocNamepathType() { - return getJSDocUnaryTypeUpdateFunction(325 /* JSDocNamepathType */); + return getJSDocUnaryTypeUpdateFunction(326 /* JSDocNamepathType */); }, createJSDocFunctionType, updateJSDocFunctionType, @@ -18279,82 +18391,82 @@ function createNodeFactory(flags, baseFactory2) { updateJSDocLinkPlain, // lazily load factory members for JSDoc tags with similar structure get createJSDocTypeTag() { - return getJSDocTypeLikeTagCreateFunction(350 /* JSDocTypeTag */); + return getJSDocTypeLikeTagCreateFunction(351 /* JSDocTypeTag */); }, get updateJSDocTypeTag() { - return getJSDocTypeLikeTagUpdateFunction(350 /* JSDocTypeTag */); + return getJSDocTypeLikeTagUpdateFunction(351 /* JSDocTypeTag */); }, get createJSDocReturnTag() { - return getJSDocTypeLikeTagCreateFunction(348 /* JSDocReturnTag */); + return getJSDocTypeLikeTagCreateFunction(349 /* JSDocReturnTag */); }, get updateJSDocReturnTag() { - return getJSDocTypeLikeTagUpdateFunction(348 /* JSDocReturnTag */); + return getJSDocTypeLikeTagUpdateFunction(349 /* JSDocReturnTag */); }, get createJSDocThisTag() { - return getJSDocTypeLikeTagCreateFunction(349 /* JSDocThisTag */); + return getJSDocTypeLikeTagCreateFunction(350 /* JSDocThisTag */); }, get updateJSDocThisTag() { - return getJSDocTypeLikeTagUpdateFunction(349 /* JSDocThisTag */); + return getJSDocTypeLikeTagUpdateFunction(350 /* JSDocThisTag */); }, get createJSDocAuthorTag() { - return getJSDocSimpleTagCreateFunction(336 /* JSDocAuthorTag */); + return getJSDocSimpleTagCreateFunction(337 /* JSDocAuthorTag */); }, get updateJSDocAuthorTag() { - return getJSDocSimpleTagUpdateFunction(336 /* JSDocAuthorTag */); + return getJSDocSimpleTagUpdateFunction(337 /* JSDocAuthorTag */); }, get createJSDocClassTag() { - return getJSDocSimpleTagCreateFunction(338 /* JSDocClassTag */); + return getJSDocSimpleTagCreateFunction(339 /* JSDocClassTag */); }, get updateJSDocClassTag() { - return getJSDocSimpleTagUpdateFunction(338 /* JSDocClassTag */); + return getJSDocSimpleTagUpdateFunction(339 /* JSDocClassTag */); }, get createJSDocPublicTag() { - return getJSDocSimpleTagCreateFunction(339 /* JSDocPublicTag */); + return getJSDocSimpleTagCreateFunction(340 /* JSDocPublicTag */); }, get updateJSDocPublicTag() { - return getJSDocSimpleTagUpdateFunction(339 /* JSDocPublicTag */); + return getJSDocSimpleTagUpdateFunction(340 /* JSDocPublicTag */); }, get createJSDocPrivateTag() { - return getJSDocSimpleTagCreateFunction(340 /* JSDocPrivateTag */); + return getJSDocSimpleTagCreateFunction(341 /* JSDocPrivateTag */); }, get updateJSDocPrivateTag() { - return getJSDocSimpleTagUpdateFunction(340 /* JSDocPrivateTag */); + return getJSDocSimpleTagUpdateFunction(341 /* JSDocPrivateTag */); }, get createJSDocProtectedTag() { - return getJSDocSimpleTagCreateFunction(341 /* JSDocProtectedTag */); + return getJSDocSimpleTagCreateFunction(342 /* JSDocProtectedTag */); }, get updateJSDocProtectedTag() { - return getJSDocSimpleTagUpdateFunction(341 /* JSDocProtectedTag */); + return getJSDocSimpleTagUpdateFunction(342 /* JSDocProtectedTag */); }, get createJSDocReadonlyTag() { - return getJSDocSimpleTagCreateFunction(342 /* JSDocReadonlyTag */); + return getJSDocSimpleTagCreateFunction(343 /* JSDocReadonlyTag */); }, get updateJSDocReadonlyTag() { - return getJSDocSimpleTagUpdateFunction(342 /* JSDocReadonlyTag */); + return getJSDocSimpleTagUpdateFunction(343 /* JSDocReadonlyTag */); }, get createJSDocOverrideTag() { - return getJSDocSimpleTagCreateFunction(343 /* JSDocOverrideTag */); + return getJSDocSimpleTagCreateFunction(344 /* JSDocOverrideTag */); }, get updateJSDocOverrideTag() { - return getJSDocSimpleTagUpdateFunction(343 /* JSDocOverrideTag */); + return getJSDocSimpleTagUpdateFunction(344 /* JSDocOverrideTag */); }, get createJSDocDeprecatedTag() { - return getJSDocSimpleTagCreateFunction(337 /* JSDocDeprecatedTag */); + return getJSDocSimpleTagCreateFunction(338 /* JSDocDeprecatedTag */); }, get updateJSDocDeprecatedTag() { - return getJSDocSimpleTagUpdateFunction(337 /* JSDocDeprecatedTag */); + return getJSDocSimpleTagUpdateFunction(338 /* JSDocDeprecatedTag */); }, get createJSDocThrowsTag() { - return getJSDocTypeLikeTagCreateFunction(355 /* JSDocThrowsTag */); + return getJSDocTypeLikeTagCreateFunction(356 /* JSDocThrowsTag */); }, get updateJSDocThrowsTag() { - return getJSDocTypeLikeTagUpdateFunction(355 /* JSDocThrowsTag */); + return getJSDocTypeLikeTagUpdateFunction(356 /* JSDocThrowsTag */); }, get createJSDocSatisfiesTag() { - return getJSDocTypeLikeTagCreateFunction(356 /* JSDocSatisfiesTag */); + return getJSDocTypeLikeTagCreateFunction(357 /* JSDocSatisfiesTag */); }, get updateJSDocSatisfiesTag() { - return getJSDocTypeLikeTagUpdateFunction(356 /* JSDocSatisfiesTag */); + return getJSDocTypeLikeTagUpdateFunction(357 /* JSDocSatisfiesTag */); }, createJSDocEnumTag, updateJSDocEnumTag, @@ -18529,6 +18641,7 @@ function createNodeFactory(flags, baseFactory2) { createExportDefault, createExternalModuleExport, createTypeCheck, + createIsNotTypeCheck, createMethodCall, createGlobalMethodCall, createFunctionBindCall, @@ -18560,7 +18673,8 @@ function createNodeFactory(flags, baseFactory2) { ensureUseStrict, liftToBlock, mergeLexicalEnvironment, - updateModifiers + updateModifiers, + updateModifierLike }; forEach(nodeFactoryPatchers, (fn) => fn(factory2)); return factory2; @@ -18718,11 +18832,11 @@ function createNodeFactory(flags, baseFactory2) { } const node = createBaseIdentifier(escapeLeadingUnderscores(text)); if (hasExtendedUnicodeEscape) - node.flags |= 128 /* IdentifierHasExtendedUnicodeEscape */; + node.flags |= 256 /* IdentifierHasExtendedUnicodeEscape */; if (node.escapedText === "await") { node.transformFlags |= 67108864 /* ContainsPossibleTopLevelAwait */; } - if (node.flags & 128 /* IdentifierHasExtendedUnicodeEscape */) { + if (node.flags & 256 /* IdentifierHasExtendedUnicodeEscape */) { node.transformFlags |= 1024 /* ContainsES2015 */; } return node; @@ -18817,7 +18931,7 @@ function createNodeFactory(flags, baseFactory2) { return baseFactory2.createBaseTokenNode(kind); } function createToken(token) { - Debug.assert(token >= 0 /* FirstToken */ && token <= 164 /* LastToken */, "Invalid token"); + Debug.assert(token >= 0 /* FirstToken */ && token <= 165 /* LastToken */, "Invalid token"); Debug.assert(token <= 15 /* FirstTemplateToken */ || token >= 18 /* LastTemplateToken */, "Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."); Debug.assert(token <= 9 /* FirstLiteralToken */ || token >= 15 /* LastLiteralToken */, "Invalid token. Use 'createLiteralLikeNode' to create literals."); Debug.assert(token !== 80 /* Identifier */, "Invalid token. Use 'createIdentifier' to create identifiers"); @@ -18827,6 +18941,9 @@ function createNodeFactory(flags, baseFactory2) { case 134 /* AsyncKeyword */: transformFlags = 256 /* ContainsES2017 */ | 128 /* ContainsES2018 */; break; + case 160 /* UsingKeyword */: + transformFlags = 4 /* ContainsESNext */; + break; case 125 /* PublicKeyword */: case 123 /* PrivateKeyword */: case 124 /* ProtectedKeyword */: @@ -18836,12 +18953,12 @@ function createNodeFactory(flags, baseFactory2) { case 87 /* ConstKeyword */: case 133 /* AnyKeyword */: case 150 /* NumberKeyword */: - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: case 146 /* NeverKeyword */: case 151 /* ObjectKeyword */: case 103 /* InKeyword */: case 147 /* OutKeyword */: - case 163 /* OverrideKeyword */: + case 164 /* OverrideKeyword */: case 154 /* StringKeyword */: case 136 /* BooleanKeyword */: case 155 /* SymbolKeyword */: @@ -18909,7 +19026,7 @@ function createNodeFactory(flags, baseFactory2) { if (flags2 & 32 /* Static */) result.push(createModifier(126 /* StaticKeyword */)); if (flags2 & 16384 /* Override */) - result.push(createModifier(163 /* OverrideKeyword */)); + result.push(createModifier(164 /* OverrideKeyword */)); if (flags2 & 64 /* Readonly */) result.push(createModifier(148 /* ReadonlyKeyword */)); if (flags2 & 128 /* Accessor */) @@ -18923,7 +19040,7 @@ function createNodeFactory(flags, baseFactory2) { return result.length ? result : void 0; } function createQualifiedName(left, right) { - const node = createBaseNode(165 /* QualifiedName */); + const node = createBaseNode(166 /* QualifiedName */); node.left = left; node.right = asName(right); node.transformFlags |= propagateChildFlags(node.left) | propagateIdentifierNameFlags(node.right); @@ -18934,7 +19051,7 @@ function createNodeFactory(flags, baseFactory2) { return node.left !== left || node.right !== right ? update(createQualifiedName(left, right), node) : node; } function createComputedPropertyName(expression) { - const node = createBaseNode(166 /* ComputedPropertyName */); + const node = createBaseNode(167 /* ComputedPropertyName */); node.expression = parenthesizerRules().parenthesizeExpressionOfComputedPropertyName(expression); node.transformFlags |= propagateChildFlags(node.expression) | 1024 /* ContainsES2015 */ | 131072 /* ContainsComputedPropertyName */; return node; @@ -18943,7 +19060,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createComputedPropertyName(expression), node) : node; } function createTypeParameterDeclaration(modifiers, name, constraint, defaultType) { - const node = createBaseDeclaration(167 /* TypeParameter */); + const node = createBaseDeclaration(168 /* TypeParameter */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.constraint = constraint; @@ -18957,7 +19074,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.name !== name || node.constraint !== constraint || node.default !== defaultType ? update(createTypeParameterDeclaration(modifiers, name, constraint, defaultType), node) : node; } function createParameterDeclaration(modifiers, dotDotDotToken, name, questionToken, type, initializer) { - const node = createBaseDeclaration(168 /* Parameter */); + const node = createBaseDeclaration(169 /* Parameter */); node.modifiers = asNodeArray(modifiers); node.dotDotDotToken = dotDotDotToken; node.name = asName(name); @@ -18976,7 +19093,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.dotDotDotToken !== dotDotDotToken || node.name !== name || node.questionToken !== questionToken || node.type !== type || node.initializer !== initializer ? update(createParameterDeclaration(modifiers, dotDotDotToken, name, questionToken, type, initializer), node) : node; } function createDecorator(expression) { - const node = createBaseNode(169 /* Decorator */); + const node = createBaseNode(170 /* Decorator */); node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess( expression, /*optionalChain*/ @@ -18989,7 +19106,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createDecorator(expression), node) : node; } function createPropertySignature(modifiers, name, questionToken, type) { - const node = createBaseDeclaration(170 /* PropertySignature */); + const node = createBaseDeclaration(171 /* PropertySignature */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.type = type; @@ -19009,14 +19126,14 @@ function createNodeFactory(flags, baseFactory2) { return update(updated, original); } function createPropertyDeclaration(modifiers, name, questionOrExclamationToken, type, initializer) { - const node = createBaseDeclaration(171 /* PropertyDeclaration */); + const node = createBaseDeclaration(172 /* PropertyDeclaration */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.questionToken = questionOrExclamationToken && isQuestionToken(questionOrExclamationToken) ? questionOrExclamationToken : void 0; node.exclamationToken = questionOrExclamationToken && isExclamationToken(questionOrExclamationToken) ? questionOrExclamationToken : void 0; node.type = type; node.initializer = asInitializer(initializer); - const isAmbient = node.flags & 16777216 /* Ambient */ || modifiersToFlags(node.modifiers) & 2 /* Ambient */; + const isAmbient = node.flags & 33554432 /* Ambient */ || modifiersToFlags(node.modifiers) & 2 /* Ambient */; node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateNameFlags(node.name) | propagateChildFlags(node.initializer) | (isAmbient || node.questionToken || node.exclamationToken || node.type ? 1 /* ContainsTypeScript */ : 0 /* None */) | (isComputedPropertyName(node.name) || modifiersToFlags(node.modifiers) & 32 /* Static */ && node.initializer ? 8192 /* ContainsTypeScriptClassSyntax */ : 0 /* None */) | 16777216 /* ContainsClassFields */; node.jsDoc = void 0; return node; @@ -19025,7 +19142,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.name !== name || node.questionToken !== (questionOrExclamationToken !== void 0 && isQuestionToken(questionOrExclamationToken) ? questionOrExclamationToken : void 0) || node.exclamationToken !== (questionOrExclamationToken !== void 0 && isExclamationToken(questionOrExclamationToken) ? questionOrExclamationToken : void 0) || node.type !== type || node.initializer !== initializer ? update(createPropertyDeclaration(modifiers, name, questionOrExclamationToken, type, initializer), node) : node; } function createMethodSignature(modifiers, name, questionToken, typeParameters, parameters, type) { - const node = createBaseDeclaration(172 /* MethodSignature */); + const node = createBaseDeclaration(173 /* MethodSignature */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.questionToken = questionToken; @@ -19043,7 +19160,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.name !== name || node.questionToken !== questionToken || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type ? finishUpdateBaseSignatureDeclaration(createMethodSignature(modifiers, name, questionToken, typeParameters, parameters, type), node) : node; } function createMethodDeclaration(modifiers, asteriskToken, name, questionToken, typeParameters, parameters, type, body) { - const node = createBaseDeclaration(173 /* MethodDeclaration */); + const node = createBaseDeclaration(174 /* MethodDeclaration */); node.modifiers = asNodeArray(modifiers); node.asteriskToken = asteriskToken; node.name = asName(name); @@ -19080,7 +19197,7 @@ function createNodeFactory(flags, baseFactory2) { return update(updated, original); } function createClassStaticBlockDeclaration(body) { - const node = createBaseDeclaration(174 /* ClassStaticBlockDeclaration */); + const node = createBaseDeclaration(175 /* ClassStaticBlockDeclaration */); node.body = body; node.transformFlags = propagateChildFlags(body) | 16777216 /* ContainsClassFields */; node.modifiers = void 0; @@ -19101,7 +19218,7 @@ function createNodeFactory(flags, baseFactory2) { return update(updated, original); } function createConstructorDeclaration(modifiers, parameters, body) { - const node = createBaseDeclaration(175 /* Constructor */); + const node = createBaseDeclaration(176 /* Constructor */); node.modifiers = asNodeArray(modifiers); node.parameters = createNodeArray(parameters); node.body = body; @@ -19127,7 +19244,7 @@ function createNodeFactory(flags, baseFactory2) { return finishUpdateBaseSignatureDeclaration(updated, original); } function createGetAccessorDeclaration(modifiers, name, parameters, type, body) { - const node = createBaseDeclaration(176 /* GetAccessor */); + const node = createBaseDeclaration(177 /* GetAccessor */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.parameters = createNodeArray(parameters); @@ -19158,7 +19275,7 @@ function createNodeFactory(flags, baseFactory2) { return finishUpdateBaseSignatureDeclaration(updated, original); } function createSetAccessorDeclaration(modifiers, name, parameters, body) { - const node = createBaseDeclaration(177 /* SetAccessor */); + const node = createBaseDeclaration(178 /* SetAccessor */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.parameters = createNodeArray(parameters); @@ -19190,7 +19307,7 @@ function createNodeFactory(flags, baseFactory2) { return finishUpdateBaseSignatureDeclaration(updated, original); } function createCallSignature(typeParameters, parameters, type) { - const node = createBaseDeclaration(178 /* CallSignature */); + const node = createBaseDeclaration(179 /* CallSignature */); node.typeParameters = asNodeArray(typeParameters); node.parameters = asNodeArray(parameters); node.type = type; @@ -19205,7 +19322,7 @@ function createNodeFactory(flags, baseFactory2) { return node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type ? finishUpdateBaseSignatureDeclaration(createCallSignature(typeParameters, parameters, type), node) : node; } function createConstructSignature(typeParameters, parameters, type) { - const node = createBaseDeclaration(179 /* ConstructSignature */); + const node = createBaseDeclaration(180 /* ConstructSignature */); node.typeParameters = asNodeArray(typeParameters); node.parameters = asNodeArray(parameters); node.type = type; @@ -19220,7 +19337,7 @@ function createNodeFactory(flags, baseFactory2) { return node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type ? finishUpdateBaseSignatureDeclaration(createConstructSignature(typeParameters, parameters, type), node) : node; } function createIndexSignature(modifiers, parameters, type) { - const node = createBaseDeclaration(180 /* IndexSignature */); + const node = createBaseDeclaration(181 /* IndexSignature */); node.modifiers = asNodeArray(modifiers); node.parameters = asNodeArray(parameters); node.type = type; @@ -19235,7 +19352,7 @@ function createNodeFactory(flags, baseFactory2) { return node.parameters !== parameters || node.type !== type || node.modifiers !== modifiers ? finishUpdateBaseSignatureDeclaration(createIndexSignature(modifiers, parameters, type), node) : node; } function createTemplateLiteralTypeSpan(type, literal) { - const node = createBaseNode(203 /* TemplateLiteralTypeSpan */); + const node = createBaseNode(204 /* TemplateLiteralTypeSpan */); node.type = type; node.literal = literal; node.transformFlags = 1 /* ContainsTypeScript */; @@ -19248,7 +19365,7 @@ function createNodeFactory(flags, baseFactory2) { return createToken(kind); } function createTypePredicateNode(assertsModifier, parameterName, type) { - const node = createBaseNode(181 /* TypePredicate */); + const node = createBaseNode(182 /* TypePredicate */); node.assertsModifier = assertsModifier; node.parameterName = asName(parameterName); node.type = type; @@ -19259,7 +19376,7 @@ function createNodeFactory(flags, baseFactory2) { return node.assertsModifier !== assertsModifier || node.parameterName !== parameterName || node.type !== type ? update(createTypePredicateNode(assertsModifier, parameterName, type), node) : node; } function createTypeReferenceNode(typeName, typeArguments) { - const node = createBaseNode(182 /* TypeReference */); + const node = createBaseNode(183 /* TypeReference */); node.typeName = asName(typeName); node.typeArguments = typeArguments && parenthesizerRules().parenthesizeTypeArguments(createNodeArray(typeArguments)); node.transformFlags = 1 /* ContainsTypeScript */; @@ -19269,7 +19386,7 @@ function createNodeFactory(flags, baseFactory2) { return node.typeName !== typeName || node.typeArguments !== typeArguments ? update(createTypeReferenceNode(typeName, typeArguments), node) : node; } function createFunctionTypeNode(typeParameters, parameters, type) { - const node = createBaseDeclaration(183 /* FunctionType */); + const node = createBaseDeclaration(184 /* FunctionType */); node.typeParameters = asNodeArray(typeParameters); node.parameters = asNodeArray(parameters); node.type = type; @@ -19294,7 +19411,7 @@ function createNodeFactory(flags, baseFactory2) { return args.length === 4 ? createConstructorTypeNode1(...args) : args.length === 3 ? createConstructorTypeNode2(...args) : Debug.fail("Incorrect number of arguments specified."); } function createConstructorTypeNode1(modifiers, typeParameters, parameters, type) { - const node = createBaseDeclaration(184 /* ConstructorType */); + const node = createBaseDeclaration(185 /* ConstructorType */); node.modifiers = asNodeArray(modifiers); node.typeParameters = asNodeArray(typeParameters); node.parameters = asNodeArray(parameters); @@ -19325,7 +19442,7 @@ function createNodeFactory(flags, baseFactory2) { return updateConstructorTypeNode1(node, node.modifiers, typeParameters, parameters, type); } function createTypeQueryNode(exprName, typeArguments) { - const node = createBaseNode(185 /* TypeQuery */); + const node = createBaseNode(186 /* TypeQuery */); node.exprName = exprName; node.typeArguments = typeArguments && parenthesizerRules().parenthesizeTypeArguments(typeArguments); node.transformFlags = 1 /* ContainsTypeScript */; @@ -19335,7 +19452,7 @@ function createNodeFactory(flags, baseFactory2) { return node.exprName !== exprName || node.typeArguments !== typeArguments ? update(createTypeQueryNode(exprName, typeArguments), node) : node; } function createTypeLiteralNode(members) { - const node = createBaseDeclaration(186 /* TypeLiteral */); + const node = createBaseDeclaration(187 /* TypeLiteral */); node.members = createNodeArray(members); node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -19344,7 +19461,7 @@ function createNodeFactory(flags, baseFactory2) { return node.members !== members ? update(createTypeLiteralNode(members), node) : node; } function createArrayTypeNode(elementType) { - const node = createBaseNode(187 /* ArrayType */); + const node = createBaseNode(188 /* ArrayType */); node.elementType = parenthesizerRules().parenthesizeNonArrayTypeOfPostfixType(elementType); node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -19353,7 +19470,7 @@ function createNodeFactory(flags, baseFactory2) { return node.elementType !== elementType ? update(createArrayTypeNode(elementType), node) : node; } function createTupleTypeNode(elements) { - const node = createBaseNode(188 /* TupleType */); + const node = createBaseNode(189 /* TupleType */); node.elements = createNodeArray(parenthesizerRules().parenthesizeElementTypesOfTupleType(elements)); node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -19362,7 +19479,7 @@ function createNodeFactory(flags, baseFactory2) { return node.elements !== elements ? update(createTupleTypeNode(elements), node) : node; } function createNamedTupleMember(dotDotDotToken, name, questionToken, type) { - const node = createBaseDeclaration(201 /* NamedTupleMember */); + const node = createBaseDeclaration(202 /* NamedTupleMember */); node.dotDotDotToken = dotDotDotToken; node.name = name; node.questionToken = questionToken; @@ -19375,7 +19492,7 @@ function createNodeFactory(flags, baseFactory2) { return node.dotDotDotToken !== dotDotDotToken || node.name !== name || node.questionToken !== questionToken || node.type !== type ? update(createNamedTupleMember(dotDotDotToken, name, questionToken, type), node) : node; } function createOptionalTypeNode(type) { - const node = createBaseNode(189 /* OptionalType */); + const node = createBaseNode(190 /* OptionalType */); node.type = parenthesizerRules().parenthesizeTypeOfOptionalType(type); node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -19384,7 +19501,7 @@ function createNodeFactory(flags, baseFactory2) { return node.type !== type ? update(createOptionalTypeNode(type), node) : node; } function createRestTypeNode(type) { - const node = createBaseNode(190 /* RestType */); + const node = createBaseNode(191 /* RestType */); node.type = type; node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -19402,19 +19519,19 @@ function createNodeFactory(flags, baseFactory2) { return node.types !== types ? update(createUnionOrIntersectionTypeNode(node.kind, types, parenthesize), node) : node; } function createUnionTypeNode(types) { - return createUnionOrIntersectionTypeNode(191 /* UnionType */, types, parenthesizerRules().parenthesizeConstituentTypesOfUnionType); + return createUnionOrIntersectionTypeNode(192 /* UnionType */, types, parenthesizerRules().parenthesizeConstituentTypesOfUnionType); } function updateUnionTypeNode(node, types) { return updateUnionOrIntersectionTypeNode(node, types, parenthesizerRules().parenthesizeConstituentTypesOfUnionType); } function createIntersectionTypeNode(types) { - return createUnionOrIntersectionTypeNode(192 /* IntersectionType */, types, parenthesizerRules().parenthesizeConstituentTypesOfIntersectionType); + return createUnionOrIntersectionTypeNode(193 /* IntersectionType */, types, parenthesizerRules().parenthesizeConstituentTypesOfIntersectionType); } function updateIntersectionTypeNode(node, types) { return updateUnionOrIntersectionTypeNode(node, types, parenthesizerRules().parenthesizeConstituentTypesOfIntersectionType); } function createConditionalTypeNode(checkType, extendsType, trueType, falseType) { - const node = createBaseNode(193 /* ConditionalType */); + const node = createBaseNode(194 /* ConditionalType */); node.checkType = parenthesizerRules().parenthesizeCheckTypeOfConditionalType(checkType); node.extendsType = parenthesizerRules().parenthesizeExtendsTypeOfConditionalType(extendsType); node.trueType = trueType; @@ -19428,7 +19545,7 @@ function createNodeFactory(flags, baseFactory2) { return node.checkType !== checkType || node.extendsType !== extendsType || node.trueType !== trueType || node.falseType !== falseType ? update(createConditionalTypeNode(checkType, extendsType, trueType, falseType), node) : node; } function createInferTypeNode(typeParameter) { - const node = createBaseNode(194 /* InferType */); + const node = createBaseNode(195 /* InferType */); node.typeParameter = typeParameter; node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -19437,7 +19554,7 @@ function createNodeFactory(flags, baseFactory2) { return node.typeParameter !== typeParameter ? update(createInferTypeNode(typeParameter), node) : node; } function createTemplateLiteralType(head, templateSpans) { - const node = createBaseNode(202 /* TemplateLiteralType */); + const node = createBaseNode(203 /* TemplateLiteralType */); node.head = head; node.templateSpans = createNodeArray(templateSpans); node.transformFlags = 1 /* ContainsTypeScript */; @@ -19447,7 +19564,7 @@ function createNodeFactory(flags, baseFactory2) { return node.head !== head || node.templateSpans !== templateSpans ? update(createTemplateLiteralType(head, templateSpans), node) : node; } function createImportTypeNode(argument, assertions, qualifier, typeArguments, isTypeOf = false) { - const node = createBaseNode(204 /* ImportType */); + const node = createBaseNode(205 /* ImportType */); node.argument = argument; node.assertions = assertions; node.qualifier = qualifier; @@ -19460,7 +19577,7 @@ function createNodeFactory(flags, baseFactory2) { return node.argument !== argument || node.assertions !== assertions || node.qualifier !== qualifier || node.typeArguments !== typeArguments || node.isTypeOf !== isTypeOf ? update(createImportTypeNode(argument, assertions, qualifier, typeArguments, isTypeOf), node) : node; } function createParenthesizedType(type) { - const node = createBaseNode(195 /* ParenthesizedType */); + const node = createBaseNode(196 /* ParenthesizedType */); node.type = type; node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -19469,12 +19586,12 @@ function createNodeFactory(flags, baseFactory2) { return node.type !== type ? update(createParenthesizedType(type), node) : node; } function createThisTypeNode() { - const node = createBaseNode(196 /* ThisType */); + const node = createBaseNode(197 /* ThisType */); node.transformFlags = 1 /* ContainsTypeScript */; return node; } function createTypeOperatorNode(operator, type) { - const node = createBaseNode(197 /* TypeOperator */); + const node = createBaseNode(198 /* TypeOperator */); node.operator = operator; node.type = operator === 148 /* ReadonlyKeyword */ ? parenthesizerRules().parenthesizeOperandOfReadonlyTypeOperator(type) : parenthesizerRules().parenthesizeOperandOfTypeOperator(type); node.transformFlags = 1 /* ContainsTypeScript */; @@ -19484,7 +19601,7 @@ function createNodeFactory(flags, baseFactory2) { return node.type !== type ? update(createTypeOperatorNode(node.operator, type), node) : node; } function createIndexedAccessTypeNode(objectType, indexType) { - const node = createBaseNode(198 /* IndexedAccessType */); + const node = createBaseNode(199 /* IndexedAccessType */); node.objectType = parenthesizerRules().parenthesizeNonArrayTypeOfPostfixType(objectType); node.indexType = indexType; node.transformFlags = 1 /* ContainsTypeScript */; @@ -19494,7 +19611,7 @@ function createNodeFactory(flags, baseFactory2) { return node.objectType !== objectType || node.indexType !== indexType ? update(createIndexedAccessTypeNode(objectType, indexType), node) : node; } function createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type, members) { - const node = createBaseDeclaration(199 /* MappedType */); + const node = createBaseDeclaration(200 /* MappedType */); node.readonlyToken = readonlyToken; node.typeParameter = typeParameter; node.nameType = nameType; @@ -19510,7 +19627,7 @@ function createNodeFactory(flags, baseFactory2) { return node.readonlyToken !== readonlyToken || node.typeParameter !== typeParameter || node.nameType !== nameType || node.questionToken !== questionToken || node.type !== type || node.members !== members ? update(createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type, members), node) : node; } function createLiteralTypeNode(literal) { - const node = createBaseNode(200 /* LiteralType */); + const node = createBaseNode(201 /* LiteralType */); node.literal = literal; node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -19519,7 +19636,7 @@ function createNodeFactory(flags, baseFactory2) { return node.literal !== literal ? update(createLiteralTypeNode(literal), node) : node; } function createObjectBindingPattern(elements) { - const node = createBaseNode(205 /* ObjectBindingPattern */); + const node = createBaseNode(206 /* ObjectBindingPattern */); node.elements = createNodeArray(elements); node.transformFlags |= propagateChildrenFlags(node.elements) | 1024 /* ContainsES2015 */ | 524288 /* ContainsBindingPattern */; if (node.transformFlags & 32768 /* ContainsRestOrSpread */) { @@ -19531,7 +19648,7 @@ function createNodeFactory(flags, baseFactory2) { return node.elements !== elements ? update(createObjectBindingPattern(elements), node) : node; } function createArrayBindingPattern(elements) { - const node = createBaseNode(206 /* ArrayBindingPattern */); + const node = createBaseNode(207 /* ArrayBindingPattern */); node.elements = createNodeArray(elements); node.transformFlags |= propagateChildrenFlags(node.elements) | 1024 /* ContainsES2015 */ | 524288 /* ContainsBindingPattern */; return node; @@ -19540,7 +19657,7 @@ function createNodeFactory(flags, baseFactory2) { return node.elements !== elements ? update(createArrayBindingPattern(elements), node) : node; } function createBindingElement(dotDotDotToken, propertyName, name, initializer) { - const node = createBaseDeclaration(207 /* BindingElement */); + const node = createBaseDeclaration(208 /* BindingElement */); node.dotDotDotToken = dotDotDotToken; node.propertyName = asName(propertyName); node.name = asName(name); @@ -19553,7 +19670,7 @@ function createNodeFactory(flags, baseFactory2) { return node.propertyName !== propertyName || node.dotDotDotToken !== dotDotDotToken || node.name !== name || node.initializer !== initializer ? update(createBindingElement(dotDotDotToken, propertyName, name, initializer), node) : node; } function createArrayLiteralExpression(elements, multiLine) { - const node = createBaseNode(208 /* ArrayLiteralExpression */); + const node = createBaseNode(209 /* ArrayLiteralExpression */); const lastElement = elements && lastOrUndefined(elements); const elementsArray = createNodeArray(elements, lastElement && isOmittedExpression(lastElement) ? true : void 0); node.elements = parenthesizerRules().parenthesizeExpressionsOfCommaDelimitedList(elementsArray); @@ -19565,7 +19682,7 @@ function createNodeFactory(flags, baseFactory2) { return node.elements !== elements ? update(createArrayLiteralExpression(elements, node.multiLine), node) : node; } function createObjectLiteralExpression(properties, multiLine) { - const node = createBaseDeclaration(209 /* ObjectLiteralExpression */); + const node = createBaseDeclaration(210 /* ObjectLiteralExpression */); node.properties = createNodeArray(properties); node.multiLine = multiLine; node.transformFlags |= propagateChildrenFlags(node.properties); @@ -19576,7 +19693,7 @@ function createNodeFactory(flags, baseFactory2) { return node.properties !== properties ? update(createObjectLiteralExpression(properties, node.multiLine), node) : node; } function createBasePropertyAccessExpression(expression, questionDotToken, name) { - const node = createBaseDeclaration(210 /* PropertyAccessExpression */); + const node = createBaseDeclaration(211 /* PropertyAccessExpression */); node.expression = expression; node.questionDotToken = questionDotToken; node.name = name; @@ -19617,16 +19734,16 @@ function createNodeFactory(flags, baseFactory2) { questionDotToken, asName(name) ); - node.flags |= 32 /* OptionalChain */; + node.flags |= 64 /* OptionalChain */; node.transformFlags |= 32 /* ContainsES2020 */; return node; } function updatePropertyAccessChain(node, expression, questionDotToken, name) { - Debug.assert(!!(node.flags & 32 /* OptionalChain */), "Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."); + Debug.assert(!!(node.flags & 64 /* OptionalChain */), "Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."); return node.expression !== expression || node.questionDotToken !== questionDotToken || node.name !== name ? update(createPropertyAccessChain(expression, questionDotToken, name), node) : node; } function createBaseElementAccessExpression(expression, questionDotToken, argumentExpression) { - const node = createBaseDeclaration(211 /* ElementAccessExpression */); + const node = createBaseDeclaration(212 /* ElementAccessExpression */); node.expression = expression; node.questionDotToken = questionDotToken; node.argumentExpression = argumentExpression; @@ -19667,16 +19784,16 @@ function createNodeFactory(flags, baseFactory2) { questionDotToken, asExpression(index) ); - node.flags |= 32 /* OptionalChain */; + node.flags |= 64 /* OptionalChain */; node.transformFlags |= 32 /* ContainsES2020 */; return node; } function updateElementAccessChain(node, expression, questionDotToken, argumentExpression) { - Debug.assert(!!(node.flags & 32 /* OptionalChain */), "Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."); + Debug.assert(!!(node.flags & 64 /* OptionalChain */), "Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."); return node.expression !== expression || node.questionDotToken !== questionDotToken || node.argumentExpression !== argumentExpression ? update(createElementAccessChain(expression, questionDotToken, argumentExpression), node) : node; } function createBaseCallExpression(expression, questionDotToken, typeArguments, argumentsArray) { - const node = createBaseDeclaration(212 /* CallExpression */); + const node = createBaseDeclaration(213 /* CallExpression */); node.expression = expression; node.questionDotToken = questionDotToken; node.typeArguments = typeArguments; @@ -19724,16 +19841,16 @@ function createNodeFactory(flags, baseFactory2) { asNodeArray(typeArguments), parenthesizerRules().parenthesizeExpressionsOfCommaDelimitedList(createNodeArray(argumentsArray)) ); - node.flags |= 32 /* OptionalChain */; + node.flags |= 64 /* OptionalChain */; node.transformFlags |= 32 /* ContainsES2020 */; return node; } function updateCallChain(node, expression, questionDotToken, typeArguments, argumentsArray) { - Debug.assert(!!(node.flags & 32 /* OptionalChain */), "Cannot update a CallExpression using updateCallChain. Use updateCall instead."); + Debug.assert(!!(node.flags & 64 /* OptionalChain */), "Cannot update a CallExpression using updateCallChain. Use updateCall instead."); return node.expression !== expression || node.questionDotToken !== questionDotToken || node.typeArguments !== typeArguments || node.arguments !== argumentsArray ? update(createCallChain(expression, questionDotToken, typeArguments, argumentsArray), node) : node; } function createNewExpression(expression, typeArguments, argumentsArray) { - const node = createBaseDeclaration(213 /* NewExpression */); + const node = createBaseDeclaration(214 /* NewExpression */); node.expression = parenthesizerRules().parenthesizeExpressionOfNew(expression); node.typeArguments = asNodeArray(typeArguments); node.arguments = argumentsArray ? parenthesizerRules().parenthesizeExpressionsOfCommaDelimitedList(argumentsArray) : void 0; @@ -19747,7 +19864,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression || node.typeArguments !== typeArguments || node.arguments !== argumentsArray ? update(createNewExpression(expression, typeArguments, argumentsArray), node) : node; } function createTaggedTemplateExpression(tag, typeArguments, template) { - const node = createBaseNode(214 /* TaggedTemplateExpression */); + const node = createBaseNode(215 /* TaggedTemplateExpression */); node.tag = parenthesizerRules().parenthesizeLeftSideOfAccess( tag, /*optionalChain*/ @@ -19768,7 +19885,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tag !== tag || node.typeArguments !== typeArguments || node.template !== template ? update(createTaggedTemplateExpression(tag, typeArguments, template), node) : node; } function createTypeAssertion(type, expression) { - const node = createBaseNode(215 /* TypeAssertionExpression */); + const node = createBaseNode(216 /* TypeAssertionExpression */); node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); node.type = type; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.type) | 1 /* ContainsTypeScript */; @@ -19778,7 +19895,7 @@ function createNodeFactory(flags, baseFactory2) { return node.type !== type || node.expression !== expression ? update(createTypeAssertion(type, expression), node) : node; } function createParenthesizedExpression(expression) { - const node = createBaseNode(216 /* ParenthesizedExpression */); + const node = createBaseNode(217 /* ParenthesizedExpression */); node.expression = expression; node.transformFlags = propagateChildFlags(node.expression); node.jsDoc = void 0; @@ -19788,7 +19905,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createParenthesizedExpression(expression), node) : node; } function createFunctionExpression(modifiers, asteriskToken, name, typeParameters, parameters, type, body) { - const node = createBaseDeclaration(217 /* FunctionExpression */); + const node = createBaseDeclaration(218 /* FunctionExpression */); node.modifiers = asNodeArray(modifiers); node.asteriskToken = asteriskToken; node.name = asName(name); @@ -19813,7 +19930,7 @@ function createNodeFactory(flags, baseFactory2) { return node.name !== name || node.modifiers !== modifiers || node.asteriskToken !== asteriskToken || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type || node.body !== body ? finishUpdateBaseSignatureDeclaration(createFunctionExpression(modifiers, asteriskToken, name, typeParameters, parameters, type, body), node) : node; } function createArrowFunction(modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body) { - const node = createBaseDeclaration(218 /* ArrowFunction */); + const node = createBaseDeclaration(219 /* ArrowFunction */); node.modifiers = asNodeArray(modifiers); node.typeParameters = asNodeArray(typeParameters); node.parameters = createNodeArray(parameters); @@ -19835,7 +19952,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type || node.equalsGreaterThanToken !== equalsGreaterThanToken || node.body !== body ? finishUpdateBaseSignatureDeclaration(createArrowFunction(modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body), node) : node; } function createDeleteExpression(expression) { - const node = createBaseNode(219 /* DeleteExpression */); + const node = createBaseNode(220 /* DeleteExpression */); node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); node.transformFlags |= propagateChildFlags(node.expression); return node; @@ -19844,7 +19961,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createDeleteExpression(expression), node) : node; } function createTypeOfExpression(expression) { - const node = createBaseNode(220 /* TypeOfExpression */); + const node = createBaseNode(221 /* TypeOfExpression */); node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); node.transformFlags |= propagateChildFlags(node.expression); return node; @@ -19853,7 +19970,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createTypeOfExpression(expression), node) : node; } function createVoidExpression(expression) { - const node = createBaseNode(221 /* VoidExpression */); + const node = createBaseNode(222 /* VoidExpression */); node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); node.transformFlags |= propagateChildFlags(node.expression); return node; @@ -19862,7 +19979,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createVoidExpression(expression), node) : node; } function createAwaitExpression(expression) { - const node = createBaseNode(222 /* AwaitExpression */); + const node = createBaseNode(223 /* AwaitExpression */); node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); node.transformFlags |= propagateChildFlags(node.expression) | 256 /* ContainsES2017 */ | 128 /* ContainsES2018 */ | 2097152 /* ContainsAwait */; return node; @@ -19871,7 +19988,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createAwaitExpression(expression), node) : node; } function createPrefixUnaryExpression(operator, operand) { - const node = createBaseNode(223 /* PrefixUnaryExpression */); + const node = createBaseNode(224 /* PrefixUnaryExpression */); node.operator = operator; node.operand = parenthesizerRules().parenthesizeOperandOfPrefixUnary(operand); node.transformFlags |= propagateChildFlags(node.operand); @@ -19884,7 +20001,7 @@ function createNodeFactory(flags, baseFactory2) { return node.operand !== operand ? update(createPrefixUnaryExpression(node.operator, operand), node) : node; } function createPostfixUnaryExpression(operand, operator) { - const node = createBaseNode(224 /* PostfixUnaryExpression */); + const node = createBaseNode(225 /* PostfixUnaryExpression */); node.operator = operator; node.operand = parenthesizerRules().parenthesizeOperandOfPostfixUnary(operand); node.transformFlags |= propagateChildFlags(node.operand); @@ -19897,7 +20014,7 @@ function createNodeFactory(flags, baseFactory2) { return node.operand !== operand ? update(createPostfixUnaryExpression(operand, node.operator), node) : node; } function createBinaryExpression(left, operator, right) { - const node = createBaseDeclaration(225 /* BinaryExpression */); + const node = createBaseDeclaration(226 /* BinaryExpression */); const operatorToken = asToken(operator); const operatorKind = operatorToken.kind; node.left = parenthesizerRules().parenthesizeLeftSideOfBinary(operatorKind, left); @@ -19930,7 +20047,7 @@ function createNodeFactory(flags, baseFactory2) { return node.left !== left || node.operatorToken !== operator || node.right !== right ? update(createBinaryExpression(left, operator, right), node) : node; } function createConditionalExpression(condition, questionToken, whenTrue, colonToken, whenFalse) { - const node = createBaseNode(226 /* ConditionalExpression */); + const node = createBaseNode(227 /* ConditionalExpression */); node.condition = parenthesizerRules().parenthesizeConditionOfConditionalExpression(condition); node.questionToken = questionToken ?? createToken(58 /* QuestionToken */); node.whenTrue = parenthesizerRules().parenthesizeBranchOfConditionalExpression(whenTrue); @@ -19943,7 +20060,7 @@ function createNodeFactory(flags, baseFactory2) { return node.condition !== condition || node.questionToken !== questionToken || node.whenTrue !== whenTrue || node.colonToken !== colonToken || node.whenFalse !== whenFalse ? update(createConditionalExpression(condition, questionToken, whenTrue, colonToken, whenFalse), node) : node; } function createTemplateExpression(head, templateSpans) { - const node = createBaseNode(227 /* TemplateExpression */); + const node = createBaseNode(228 /* TemplateExpression */); node.head = head; node.templateSpans = createNodeArray(templateSpans); node.transformFlags |= propagateChildFlags(node.head) | propagateChildrenFlags(node.templateSpans) | 1024 /* ContainsES2015 */; @@ -20018,7 +20135,7 @@ function createNodeFactory(flags, baseFactory2) { } function createYieldExpression(asteriskToken, expression) { Debug.assert(!asteriskToken || !!expression, "A `YieldExpression` with an asteriskToken must have an expression."); - const node = createBaseNode(228 /* YieldExpression */); + const node = createBaseNode(229 /* YieldExpression */); node.expression = expression && parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); node.asteriskToken = asteriskToken; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.asteriskToken) | 1024 /* ContainsES2015 */ | 128 /* ContainsES2018 */ | 1048576 /* ContainsYield */; @@ -20028,7 +20145,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression || node.asteriskToken !== asteriskToken ? update(createYieldExpression(asteriskToken, expression), node) : node; } function createSpreadElement(expression) { - const node = createBaseNode(229 /* SpreadElement */); + const node = createBaseNode(230 /* SpreadElement */); node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); node.transformFlags |= propagateChildFlags(node.expression) | 1024 /* ContainsES2015 */ | 32768 /* ContainsRestOrSpread */; return node; @@ -20037,7 +20154,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createSpreadElement(expression), node) : node; } function createClassExpression(modifiers, name, typeParameters, heritageClauses, members) { - const node = createBaseDeclaration(230 /* ClassExpression */); + const node = createBaseDeclaration(231 /* ClassExpression */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.typeParameters = asNodeArray(typeParameters); @@ -20051,10 +20168,10 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.heritageClauses !== heritageClauses || node.members !== members ? update(createClassExpression(modifiers, name, typeParameters, heritageClauses, members), node) : node; } function createOmittedExpression() { - return createBaseNode(231 /* OmittedExpression */); + return createBaseNode(232 /* OmittedExpression */); } function createExpressionWithTypeArguments(expression, typeArguments) { - const node = createBaseNode(232 /* ExpressionWithTypeArguments */); + const node = createBaseNode(233 /* ExpressionWithTypeArguments */); node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess( expression, /*optionalChain*/ @@ -20068,7 +20185,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression || node.typeArguments !== typeArguments ? update(createExpressionWithTypeArguments(expression, typeArguments), node) : node; } function createAsExpression(expression, type) { - const node = createBaseNode(233 /* AsExpression */); + const node = createBaseNode(234 /* AsExpression */); node.expression = expression; node.type = type; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.type) | 1 /* ContainsTypeScript */; @@ -20078,7 +20195,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression || node.type !== type ? update(createAsExpression(expression, type), node) : node; } function createNonNullExpression(expression) { - const node = createBaseNode(234 /* NonNullExpression */); + const node = createBaseNode(235 /* NonNullExpression */); node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess( expression, /*optionalChain*/ @@ -20094,7 +20211,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createNonNullExpression(expression), node) : node; } function createSatisfiesExpression(expression, type) { - const node = createBaseNode(237 /* SatisfiesExpression */); + const node = createBaseNode(238 /* SatisfiesExpression */); node.expression = expression; node.type = type; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.type) | 1 /* ContainsTypeScript */; @@ -20104,8 +20221,8 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression || node.type !== type ? update(createSatisfiesExpression(expression, type), node) : node; } function createNonNullChain(expression) { - const node = createBaseNode(234 /* NonNullExpression */); - node.flags |= 32 /* OptionalChain */; + const node = createBaseNode(235 /* NonNullExpression */); + node.flags |= 64 /* OptionalChain */; node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess( expression, /*optionalChain*/ @@ -20115,11 +20232,11 @@ function createNodeFactory(flags, baseFactory2) { return node; } function updateNonNullChain(node, expression) { - Debug.assert(!!(node.flags & 32 /* OptionalChain */), "Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."); + Debug.assert(!!(node.flags & 64 /* OptionalChain */), "Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."); return node.expression !== expression ? update(createNonNullChain(expression), node) : node; } function createMetaProperty(keywordToken, name) { - const node = createBaseNode(235 /* MetaProperty */); + const node = createBaseNode(236 /* MetaProperty */); node.keywordToken = keywordToken; node.name = name; node.transformFlags |= propagateChildFlags(node.name); @@ -20140,7 +20257,7 @@ function createNodeFactory(flags, baseFactory2) { return node.name !== name ? update(createMetaProperty(node.keywordToken, name), node) : node; } function createTemplateSpan(expression, literal) { - const node = createBaseNode(238 /* TemplateSpan */); + const node = createBaseNode(239 /* TemplateSpan */); node.expression = expression; node.literal = literal; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.literal) | 1024 /* ContainsES2015 */; @@ -20150,12 +20267,12 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression || node.literal !== literal ? update(createTemplateSpan(expression, literal), node) : node; } function createSemicolonClassElement() { - const node = createBaseNode(239 /* SemicolonClassElement */); + const node = createBaseNode(240 /* SemicolonClassElement */); node.transformFlags |= 1024 /* ContainsES2015 */; return node; } function createBlock(statements, multiLine) { - const node = createBaseNode(240 /* Block */); + const node = createBaseNode(241 /* Block */); node.statements = createNodeArray(statements); node.multiLine = multiLine; node.transformFlags |= propagateChildrenFlags(node.statements); @@ -20168,7 +20285,7 @@ function createNodeFactory(flags, baseFactory2) { return node.statements !== statements ? update(createBlock(statements, node.multiLine), node) : node; } function createVariableStatement(modifiers, declarationList) { - const node = createBaseNode(242 /* VariableStatement */); + const node = createBaseNode(243 /* VariableStatement */); node.modifiers = asNodeArray(modifiers); node.declarationList = isArray(declarationList) ? createVariableDeclarationList(declarationList) : declarationList; node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.declarationList); @@ -20183,12 +20300,12 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.declarationList !== declarationList ? update(createVariableStatement(modifiers, declarationList), node) : node; } function createEmptyStatement() { - const node = createBaseNode(241 /* EmptyStatement */); + const node = createBaseNode(242 /* EmptyStatement */); node.jsDoc = void 0; return node; } function createExpressionStatement(expression) { - const node = createBaseNode(243 /* ExpressionStatement */); + const node = createBaseNode(244 /* ExpressionStatement */); node.expression = parenthesizerRules().parenthesizeExpressionOfExpressionStatement(expression); node.transformFlags |= propagateChildFlags(node.expression); node.jsDoc = void 0; @@ -20199,7 +20316,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createExpressionStatement(expression), node) : node; } function createIfStatement(expression, thenStatement, elseStatement) { - const node = createBaseNode(244 /* IfStatement */); + const node = createBaseNode(245 /* IfStatement */); node.expression = expression; node.thenStatement = asEmbeddedStatement(thenStatement); node.elseStatement = asEmbeddedStatement(elseStatement); @@ -20212,7 +20329,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression || node.thenStatement !== thenStatement || node.elseStatement !== elseStatement ? update(createIfStatement(expression, thenStatement, elseStatement), node) : node; } function createDoStatement(statement, expression) { - const node = createBaseNode(245 /* DoStatement */); + const node = createBaseNode(246 /* DoStatement */); node.statement = asEmbeddedStatement(statement); node.expression = expression; node.transformFlags |= propagateChildFlags(node.statement) | propagateChildFlags(node.expression); @@ -20224,7 +20341,7 @@ function createNodeFactory(flags, baseFactory2) { return node.statement !== statement || node.expression !== expression ? update(createDoStatement(statement, expression), node) : node; } function createWhileStatement(expression, statement) { - const node = createBaseNode(246 /* WhileStatement */); + const node = createBaseNode(247 /* WhileStatement */); node.expression = expression; node.statement = asEmbeddedStatement(statement); node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.statement); @@ -20236,7 +20353,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression || node.statement !== statement ? update(createWhileStatement(expression, statement), node) : node; } function createForStatement(initializer, condition, incrementor, statement) { - const node = createBaseNode(247 /* ForStatement */); + const node = createBaseNode(248 /* ForStatement */); node.initializer = initializer; node.condition = condition; node.incrementor = incrementor; @@ -20252,7 +20369,7 @@ function createNodeFactory(flags, baseFactory2) { return node.initializer !== initializer || node.condition !== condition || node.incrementor !== incrementor || node.statement !== statement ? update(createForStatement(initializer, condition, incrementor, statement), node) : node; } function createForInStatement(initializer, expression, statement) { - const node = createBaseNode(248 /* ForInStatement */); + const node = createBaseNode(249 /* ForInStatement */); node.initializer = initializer; node.expression = expression; node.statement = asEmbeddedStatement(statement); @@ -20267,7 +20384,7 @@ function createNodeFactory(flags, baseFactory2) { return node.initializer !== initializer || node.expression !== expression || node.statement !== statement ? update(createForInStatement(initializer, expression, statement), node) : node; } function createForOfStatement(awaitModifier, initializer, expression, statement) { - const node = createBaseNode(249 /* ForOfStatement */); + const node = createBaseNode(250 /* ForOfStatement */); node.awaitModifier = awaitModifier; node.initializer = initializer; node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); @@ -20285,7 +20402,7 @@ function createNodeFactory(flags, baseFactory2) { return node.awaitModifier !== awaitModifier || node.initializer !== initializer || node.expression !== expression || node.statement !== statement ? update(createForOfStatement(awaitModifier, initializer, expression, statement), node) : node; } function createContinueStatement(label) { - const node = createBaseNode(250 /* ContinueStatement */); + const node = createBaseNode(251 /* ContinueStatement */); node.label = asName(label); node.transformFlags |= propagateChildFlags(node.label) | 4194304 /* ContainsHoistedDeclarationOrCompletion */; node.jsDoc = void 0; @@ -20296,7 +20413,7 @@ function createNodeFactory(flags, baseFactory2) { return node.label !== label ? update(createContinueStatement(label), node) : node; } function createBreakStatement(label) { - const node = createBaseNode(251 /* BreakStatement */); + const node = createBaseNode(252 /* BreakStatement */); node.label = asName(label); node.transformFlags |= propagateChildFlags(node.label) | 4194304 /* ContainsHoistedDeclarationOrCompletion */; node.jsDoc = void 0; @@ -20307,7 +20424,7 @@ function createNodeFactory(flags, baseFactory2) { return node.label !== label ? update(createBreakStatement(label), node) : node; } function createReturnStatement(expression) { - const node = createBaseNode(252 /* ReturnStatement */); + const node = createBaseNode(253 /* ReturnStatement */); node.expression = expression; node.transformFlags |= propagateChildFlags(node.expression) | 128 /* ContainsES2018 */ | 4194304 /* ContainsHoistedDeclarationOrCompletion */; node.jsDoc = void 0; @@ -20318,7 +20435,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createReturnStatement(expression), node) : node; } function createWithStatement(expression, statement) { - const node = createBaseNode(253 /* WithStatement */); + const node = createBaseNode(254 /* WithStatement */); node.expression = expression; node.statement = asEmbeddedStatement(statement); node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.statement); @@ -20330,7 +20447,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression || node.statement !== statement ? update(createWithStatement(expression, statement), node) : node; } function createSwitchStatement(expression, caseBlock) { - const node = createBaseNode(254 /* SwitchStatement */); + const node = createBaseNode(255 /* SwitchStatement */); node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); node.caseBlock = caseBlock; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.caseBlock); @@ -20343,7 +20460,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression || node.caseBlock !== caseBlock ? update(createSwitchStatement(expression, caseBlock), node) : node; } function createLabeledStatement(label, statement) { - const node = createBaseNode(255 /* LabeledStatement */); + const node = createBaseNode(256 /* LabeledStatement */); node.label = asName(label); node.statement = asEmbeddedStatement(statement); node.transformFlags |= propagateChildFlags(node.label) | propagateChildFlags(node.statement); @@ -20355,7 +20472,7 @@ function createNodeFactory(flags, baseFactory2) { return node.label !== label || node.statement !== statement ? update(createLabeledStatement(label, statement), node) : node; } function createThrowStatement(expression) { - const node = createBaseNode(256 /* ThrowStatement */); + const node = createBaseNode(257 /* ThrowStatement */); node.expression = expression; node.transformFlags |= propagateChildFlags(node.expression); node.jsDoc = void 0; @@ -20366,7 +20483,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createThrowStatement(expression), node) : node; } function createTryStatement(tryBlock, catchClause, finallyBlock) { - const node = createBaseNode(257 /* TryStatement */); + const node = createBaseNode(258 /* TryStatement */); node.tryBlock = tryBlock; node.catchClause = catchClause; node.finallyBlock = finallyBlock; @@ -20379,13 +20496,13 @@ function createNodeFactory(flags, baseFactory2) { return node.tryBlock !== tryBlock || node.catchClause !== catchClause || node.finallyBlock !== finallyBlock ? update(createTryStatement(tryBlock, catchClause, finallyBlock), node) : node; } function createDebuggerStatement() { - const node = createBaseNode(258 /* DebuggerStatement */); + const node = createBaseNode(259 /* DebuggerStatement */); node.jsDoc = void 0; node.flowNode = void 0; return node; } function createVariableDeclaration(name, exclamationToken, type, initializer) { - const node = createBaseDeclaration(259 /* VariableDeclaration */); + const node = createBaseDeclaration(260 /* VariableDeclaration */); node.name = asName(name); node.exclamationToken = exclamationToken; node.type = type; @@ -20398,20 +20515,23 @@ function createNodeFactory(flags, baseFactory2) { return node.name !== name || node.type !== type || node.exclamationToken !== exclamationToken || node.initializer !== initializer ? update(createVariableDeclaration(name, exclamationToken, type, initializer), node) : node; } function createVariableDeclarationList(declarations, flags2 = 0 /* None */) { - const node = createBaseNode(260 /* VariableDeclarationList */); - node.flags |= flags2 & 3 /* BlockScoped */; + const node = createBaseNode(261 /* VariableDeclarationList */); + node.flags |= flags2 & 7 /* BlockScoped */; node.declarations = createNodeArray(declarations); node.transformFlags |= propagateChildrenFlags(node.declarations) | 4194304 /* ContainsHoistedDeclarationOrCompletion */; - if (flags2 & 3 /* BlockScoped */) { + if (flags2 & 7 /* BlockScoped */) { node.transformFlags |= 1024 /* ContainsES2015 */ | 262144 /* ContainsBlockScopedBinding */; } + if (flags2 & 4 /* Using */) { + node.transformFlags |= 4 /* ContainsESNext */; + } return node; } function updateVariableDeclarationList(node, declarations) { return node.declarations !== declarations ? update(createVariableDeclarationList(declarations, node.flags), node) : node; } function createFunctionDeclaration(modifiers, asteriskToken, name, typeParameters, parameters, type, body) { - const node = createBaseDeclaration(261 /* FunctionDeclaration */); + const node = createBaseDeclaration(262 /* FunctionDeclaration */); node.modifiers = asNodeArray(modifiers); node.asteriskToken = asteriskToken; node.name = asName(name); @@ -20447,7 +20567,7 @@ function createNodeFactory(flags, baseFactory2) { return finishUpdateBaseSignatureDeclaration(updated, original); } function createClassDeclaration(modifiers, name, typeParameters, heritageClauses, members) { - const node = createBaseDeclaration(262 /* ClassDeclaration */); + const node = createBaseDeclaration(263 /* ClassDeclaration */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.typeParameters = asNodeArray(typeParameters); @@ -20468,7 +20588,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.heritageClauses !== heritageClauses || node.members !== members ? update(createClassDeclaration(modifiers, name, typeParameters, heritageClauses, members), node) : node; } function createInterfaceDeclaration(modifiers, name, typeParameters, heritageClauses, members) { - const node = createBaseDeclaration(263 /* InterfaceDeclaration */); + const node = createBaseDeclaration(264 /* InterfaceDeclaration */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.typeParameters = asNodeArray(typeParameters); @@ -20482,7 +20602,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.heritageClauses !== heritageClauses || node.members !== members ? update(createInterfaceDeclaration(modifiers, name, typeParameters, heritageClauses, members), node) : node; } function createTypeAliasDeclaration(modifiers, name, typeParameters, type) { - const node = createBaseDeclaration(264 /* TypeAliasDeclaration */); + const node = createBaseDeclaration(265 /* TypeAliasDeclaration */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.typeParameters = asNodeArray(typeParameters); @@ -20497,7 +20617,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.type !== type ? update(createTypeAliasDeclaration(modifiers, name, typeParameters, type), node) : node; } function createEnumDeclaration(modifiers, name, members) { - const node = createBaseDeclaration(265 /* EnumDeclaration */); + const node = createBaseDeclaration(266 /* EnumDeclaration */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.members = createNodeArray(members); @@ -20510,9 +20630,9 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.name !== name || node.members !== members ? update(createEnumDeclaration(modifiers, name, members), node) : node; } function createModuleDeclaration(modifiers, name, body, flags2 = 0 /* None */) { - const node = createBaseDeclaration(266 /* ModuleDeclaration */); + const node = createBaseDeclaration(267 /* ModuleDeclaration */); node.modifiers = asNodeArray(modifiers); - node.flags |= flags2 & (16 /* Namespace */ | 4 /* NestedNamespace */ | 1024 /* GlobalAugmentation */); + node.flags |= flags2 & (32 /* Namespace */ | 8 /* NestedNamespace */ | 2048 /* GlobalAugmentation */); node.name = name; node.body = body; if (modifiersToFlags(node.modifiers) & 2 /* Ambient */) { @@ -20530,7 +20650,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.name !== name || node.body !== body ? update(createModuleDeclaration(modifiers, name, body, node.flags), node) : node; } function createModuleBlock(statements) { - const node = createBaseNode(267 /* ModuleBlock */); + const node = createBaseNode(268 /* ModuleBlock */); node.statements = createNodeArray(statements); node.transformFlags |= propagateChildrenFlags(node.statements); node.jsDoc = void 0; @@ -20540,7 +20660,7 @@ function createNodeFactory(flags, baseFactory2) { return node.statements !== statements ? update(createModuleBlock(statements), node) : node; } function createCaseBlock(clauses) { - const node = createBaseNode(268 /* CaseBlock */); + const node = createBaseNode(269 /* CaseBlock */); node.clauses = createNodeArray(clauses); node.transformFlags |= propagateChildrenFlags(node.clauses); node.locals = void 0; @@ -20551,7 +20671,7 @@ function createNodeFactory(flags, baseFactory2) { return node.clauses !== clauses ? update(createCaseBlock(clauses), node) : node; } function createNamespaceExportDeclaration(name) { - const node = createBaseDeclaration(269 /* NamespaceExportDeclaration */); + const node = createBaseDeclaration(270 /* NamespaceExportDeclaration */); node.name = asName(name); node.transformFlags |= propagateIdentifierNameFlags(node.name) | 1 /* ContainsTypeScript */; node.modifiers = void 0; @@ -20568,7 +20688,7 @@ function createNodeFactory(flags, baseFactory2) { return update(updated, original); } function createImportEqualsDeclaration(modifiers, isTypeOnly, name, moduleReference) { - const node = createBaseDeclaration(270 /* ImportEqualsDeclaration */); + const node = createBaseDeclaration(271 /* ImportEqualsDeclaration */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.isTypeOnly = isTypeOnly; @@ -20585,7 +20705,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.isTypeOnly !== isTypeOnly || node.name !== name || node.moduleReference !== moduleReference ? update(createImportEqualsDeclaration(modifiers, isTypeOnly, name, moduleReference), node) : node; } function createImportDeclaration(modifiers, importClause, moduleSpecifier, assertClause) { - const node = createBaseNode(271 /* ImportDeclaration */); + const node = createBaseNode(272 /* ImportDeclaration */); node.modifiers = asNodeArray(modifiers); node.importClause = importClause; node.moduleSpecifier = moduleSpecifier; @@ -20599,7 +20719,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.importClause !== importClause || node.moduleSpecifier !== moduleSpecifier || node.assertClause !== assertClause ? update(createImportDeclaration(modifiers, importClause, moduleSpecifier, assertClause), node) : node; } function createImportClause(isTypeOnly, name, namedBindings) { - const node = createBaseDeclaration(272 /* ImportClause */); + const node = createBaseDeclaration(273 /* ImportClause */); node.isTypeOnly = isTypeOnly; node.name = name; node.namedBindings = namedBindings; @@ -20614,7 +20734,7 @@ function createNodeFactory(flags, baseFactory2) { return node.isTypeOnly !== isTypeOnly || node.name !== name || node.namedBindings !== namedBindings ? update(createImportClause(isTypeOnly, name, namedBindings), node) : node; } function createAssertClause(elements, multiLine) { - const node = createBaseNode(299 /* AssertClause */); + const node = createBaseNode(300 /* AssertClause */); node.elements = createNodeArray(elements); node.multiLine = multiLine; node.transformFlags |= 4 /* ContainsESNext */; @@ -20624,7 +20744,7 @@ function createNodeFactory(flags, baseFactory2) { return node.elements !== elements || node.multiLine !== multiLine ? update(createAssertClause(elements, multiLine), node) : node; } function createAssertEntry(name, value) { - const node = createBaseNode(300 /* AssertEntry */); + const node = createBaseNode(301 /* AssertEntry */); node.name = name; node.value = value; node.transformFlags |= 4 /* ContainsESNext */; @@ -20634,7 +20754,7 @@ function createNodeFactory(flags, baseFactory2) { return node.name !== name || node.value !== value ? update(createAssertEntry(name, value), node) : node; } function createImportTypeAssertionContainer(clause, multiLine) { - const node = createBaseNode(301 /* ImportTypeAssertionContainer */); + const node = createBaseNode(302 /* ImportTypeAssertionContainer */); node.assertClause = clause; node.multiLine = multiLine; return node; @@ -20643,7 +20763,7 @@ function createNodeFactory(flags, baseFactory2) { return node.assertClause !== clause || node.multiLine !== multiLine ? update(createImportTypeAssertionContainer(clause, multiLine), node) : node; } function createNamespaceImport(name) { - const node = createBaseDeclaration(273 /* NamespaceImport */); + const node = createBaseDeclaration(274 /* NamespaceImport */); node.name = name; node.transformFlags |= propagateChildFlags(node.name); node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; @@ -20653,7 +20773,7 @@ function createNodeFactory(flags, baseFactory2) { return node.name !== name ? update(createNamespaceImport(name), node) : node; } function createNamespaceExport(name) { - const node = createBaseDeclaration(279 /* NamespaceExport */); + const node = createBaseDeclaration(280 /* NamespaceExport */); node.name = name; node.transformFlags |= propagateChildFlags(node.name) | 32 /* ContainsES2020 */; node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; @@ -20663,7 +20783,7 @@ function createNodeFactory(flags, baseFactory2) { return node.name !== name ? update(createNamespaceExport(name), node) : node; } function createNamedImports(elements) { - const node = createBaseNode(274 /* NamedImports */); + const node = createBaseNode(275 /* NamedImports */); node.elements = createNodeArray(elements); node.transformFlags |= propagateChildrenFlags(node.elements); node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; @@ -20673,7 +20793,7 @@ function createNodeFactory(flags, baseFactory2) { return node.elements !== elements ? update(createNamedImports(elements), node) : node; } function createImportSpecifier(isTypeOnly, propertyName, name) { - const node = createBaseDeclaration(275 /* ImportSpecifier */); + const node = createBaseDeclaration(276 /* ImportSpecifier */); node.isTypeOnly = isTypeOnly; node.propertyName = propertyName; node.name = name; @@ -20685,7 +20805,7 @@ function createNodeFactory(flags, baseFactory2) { return node.isTypeOnly !== isTypeOnly || node.propertyName !== propertyName || node.name !== name ? update(createImportSpecifier(isTypeOnly, propertyName, name), node) : node; } function createExportAssignment(modifiers, isExportEquals, expression) { - const node = createBaseDeclaration(276 /* ExportAssignment */); + const node = createBaseDeclaration(277 /* ExportAssignment */); node.modifiers = asNodeArray(modifiers); node.isExportEquals = isExportEquals; node.expression = isExportEquals ? parenthesizerRules().parenthesizeRightSideOfBinary( @@ -20703,7 +20823,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.expression !== expression ? update(createExportAssignment(modifiers, node.isExportEquals, expression), node) : node; } function createExportDeclaration(modifiers, isTypeOnly, exportClause, moduleSpecifier, assertClause) { - const node = createBaseDeclaration(277 /* ExportDeclaration */); + const node = createBaseDeclaration(278 /* ExportDeclaration */); node.modifiers = asNodeArray(modifiers); node.isTypeOnly = isTypeOnly; node.exportClause = exportClause; @@ -20726,7 +20846,7 @@ function createNodeFactory(flags, baseFactory2) { return update(updated, original); } function createNamedExports(elements) { - const node = createBaseNode(278 /* NamedExports */); + const node = createBaseNode(279 /* NamedExports */); node.elements = createNodeArray(elements); node.transformFlags |= propagateChildrenFlags(node.elements); node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; @@ -20736,7 +20856,7 @@ function createNodeFactory(flags, baseFactory2) { return node.elements !== elements ? update(createNamedExports(elements), node) : node; } function createExportSpecifier(isTypeOnly, propertyName, name) { - const node = createBaseNode(280 /* ExportSpecifier */); + const node = createBaseNode(281 /* ExportSpecifier */); node.isTypeOnly = isTypeOnly; node.propertyName = asName(propertyName); node.name = asName(name); @@ -20749,12 +20869,12 @@ function createNodeFactory(flags, baseFactory2) { return node.isTypeOnly !== isTypeOnly || node.propertyName !== propertyName || node.name !== name ? update(createExportSpecifier(isTypeOnly, propertyName, name), node) : node; } function createMissingDeclaration() { - const node = createBaseDeclaration(281 /* MissingDeclaration */); + const node = createBaseDeclaration(282 /* MissingDeclaration */); node.jsDoc = void 0; return node; } function createExternalModuleReference(expression) { - const node = createBaseNode(282 /* ExternalModuleReference */); + const node = createBaseNode(283 /* ExternalModuleReference */); node.expression = expression; node.transformFlags |= propagateChildFlags(node.expression); node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; @@ -20786,7 +20906,7 @@ function createNodeFactory(flags, baseFactory2) { return node.type !== type ? update(createJSDocUnaryTypeWorker(kind, type), node) : node; } function createJSDocFunctionType(parameters, type) { - const node = createBaseDeclaration(323 /* JSDocFunctionType */); + const node = createBaseDeclaration(324 /* JSDocFunctionType */); node.parameters = asNodeArray(parameters); node.type = type; node.transformFlags = propagateChildrenFlags(node.parameters) | (node.type ? 1 /* ContainsTypeScript */ : 0 /* None */); @@ -20800,7 +20920,7 @@ function createNodeFactory(flags, baseFactory2) { return node.parameters !== parameters || node.type !== type ? update(createJSDocFunctionType(parameters, type), node) : node; } function createJSDocTypeLiteral(propertyTags, isArrayType = false) { - const node = createBaseDeclaration(328 /* JSDocTypeLiteral */); + const node = createBaseDeclaration(329 /* JSDocTypeLiteral */); node.jsDocPropertyTags = asNodeArray(propertyTags); node.isArrayType = isArrayType; return node; @@ -20809,7 +20929,7 @@ function createNodeFactory(flags, baseFactory2) { return node.jsDocPropertyTags !== propertyTags || node.isArrayType !== isArrayType ? update(createJSDocTypeLiteral(propertyTags, isArrayType), node) : node; } function createJSDocTypeExpression(type) { - const node = createBaseNode(315 /* JSDocTypeExpression */); + const node = createBaseNode(316 /* JSDocTypeExpression */); node.type = type; return node; } @@ -20817,7 +20937,7 @@ function createNodeFactory(flags, baseFactory2) { return node.type !== type ? update(createJSDocTypeExpression(type), node) : node; } function createJSDocSignature(typeParameters, parameters, type) { - const node = createBaseDeclaration(329 /* JSDocSignature */); + const node = createBaseDeclaration(330 /* JSDocSignature */); node.typeParameters = asNodeArray(typeParameters); node.parameters = createNodeArray(parameters); node.type = type; @@ -20846,7 +20966,7 @@ function createNodeFactory(flags, baseFactory2) { return node; } function createJSDocTemplateTag(tagName, constraint, typeParameters, comment) { - const node = createBaseJSDocTag(351 /* JSDocTemplateTag */, tagName ?? createIdentifier("template"), comment); + const node = createBaseJSDocTag(352 /* JSDocTemplateTag */, tagName ?? createIdentifier("template"), comment); node.constraint = constraint; node.typeParameters = createNodeArray(typeParameters); return node; @@ -20855,7 +20975,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.constraint !== constraint || node.typeParameters !== typeParameters || node.comment !== comment ? update(createJSDocTemplateTag(tagName, constraint, typeParameters, comment), node) : node; } function createJSDocTypedefTag(tagName, typeExpression, fullName, comment) { - const node = createBaseJSDocTagDeclaration(352 /* JSDocTypedefTag */, tagName ?? createIdentifier("typedef"), comment); + const node = createBaseJSDocTagDeclaration(353 /* JSDocTypedefTag */, tagName ?? createIdentifier("typedef"), comment); node.typeExpression = typeExpression; node.fullName = fullName; node.name = getJSDocTypeAliasName(fullName); @@ -20867,7 +20987,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.typeExpression !== typeExpression || node.fullName !== fullName || node.comment !== comment ? update(createJSDocTypedefTag(tagName, typeExpression, fullName, comment), node) : node; } function createJSDocParameterTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment) { - const node = createBaseJSDocTagDeclaration(347 /* JSDocParameterTag */, tagName ?? createIdentifier("param"), comment); + const node = createBaseJSDocTagDeclaration(348 /* JSDocParameterTag */, tagName ?? createIdentifier("param"), comment); node.typeExpression = typeExpression; node.name = name; node.isNameFirst = !!isNameFirst; @@ -20878,7 +20998,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.name !== name || node.isBracketed !== isBracketed || node.typeExpression !== typeExpression || node.isNameFirst !== isNameFirst || node.comment !== comment ? update(createJSDocParameterTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment), node) : node; } function createJSDocPropertyTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment) { - const node = createBaseJSDocTagDeclaration(354 /* JSDocPropertyTag */, tagName ?? createIdentifier("prop"), comment); + const node = createBaseJSDocTagDeclaration(355 /* JSDocPropertyTag */, tagName ?? createIdentifier("prop"), comment); node.typeExpression = typeExpression; node.name = name; node.isNameFirst = !!isNameFirst; @@ -20889,7 +21009,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.name !== name || node.isBracketed !== isBracketed || node.typeExpression !== typeExpression || node.isNameFirst !== isNameFirst || node.comment !== comment ? update(createJSDocPropertyTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment), node) : node; } function createJSDocCallbackTag(tagName, typeExpression, fullName, comment) { - const node = createBaseJSDocTagDeclaration(344 /* JSDocCallbackTag */, tagName ?? createIdentifier("callback"), comment); + const node = createBaseJSDocTagDeclaration(345 /* JSDocCallbackTag */, tagName ?? createIdentifier("callback"), comment); node.typeExpression = typeExpression; node.fullName = fullName; node.name = getJSDocTypeAliasName(fullName); @@ -20901,7 +21021,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.typeExpression !== typeExpression || node.fullName !== fullName || node.comment !== comment ? update(createJSDocCallbackTag(tagName, typeExpression, fullName, comment), node) : node; } function createJSDocOverloadTag(tagName, typeExpression, comment) { - const node = createBaseJSDocTag(345 /* JSDocOverloadTag */, tagName ?? createIdentifier("overload"), comment); + const node = createBaseJSDocTag(346 /* JSDocOverloadTag */, tagName ?? createIdentifier("overload"), comment); node.typeExpression = typeExpression; return node; } @@ -20909,7 +21029,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocOverloadTag(tagName, typeExpression, comment), node) : node; } function createJSDocAugmentsTag(tagName, className, comment) { - const node = createBaseJSDocTag(334 /* JSDocAugmentsTag */, tagName ?? createIdentifier("augments"), comment); + const node = createBaseJSDocTag(335 /* JSDocAugmentsTag */, tagName ?? createIdentifier("augments"), comment); node.class = className; return node; } @@ -20917,12 +21037,12 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.class !== className || node.comment !== comment ? update(createJSDocAugmentsTag(tagName, className, comment), node) : node; } function createJSDocImplementsTag(tagName, className, comment) { - const node = createBaseJSDocTag(335 /* JSDocImplementsTag */, tagName ?? createIdentifier("implements"), comment); + const node = createBaseJSDocTag(336 /* JSDocImplementsTag */, tagName ?? createIdentifier("implements"), comment); node.class = className; return node; } function createJSDocSeeTag(tagName, name, comment) { - const node = createBaseJSDocTag(353 /* JSDocSeeTag */, tagName ?? createIdentifier("see"), comment); + const node = createBaseJSDocTag(354 /* JSDocSeeTag */, tagName ?? createIdentifier("see"), comment); node.name = name; return node; } @@ -20930,7 +21050,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.name !== name || node.comment !== comment ? update(createJSDocSeeTag(tagName, name, comment), node) : node; } function createJSDocNameReference(name) { - const node = createBaseNode(316 /* JSDocNameReference */); + const node = createBaseNode(317 /* JSDocNameReference */); node.name = name; return node; } @@ -20938,7 +21058,7 @@ function createNodeFactory(flags, baseFactory2) { return node.name !== name ? update(createJSDocNameReference(name), node) : node; } function createJSDocMemberName(left, right) { - const node = createBaseNode(317 /* JSDocMemberName */); + const node = createBaseNode(318 /* JSDocMemberName */); node.left = left; node.right = right; node.transformFlags |= propagateChildFlags(node.left) | propagateChildFlags(node.right); @@ -20948,7 +21068,7 @@ function createNodeFactory(flags, baseFactory2) { return node.left !== left || node.right !== right ? update(createJSDocMemberName(left, right), node) : node; } function createJSDocLink(name, text) { - const node = createBaseNode(330 /* JSDocLink */); + const node = createBaseNode(331 /* JSDocLink */); node.name = name; node.text = text; return node; @@ -20957,7 +21077,7 @@ function createNodeFactory(flags, baseFactory2) { return node.name !== name ? update(createJSDocLink(name, text), node) : node; } function createJSDocLinkCode(name, text) { - const node = createBaseNode(331 /* JSDocLinkCode */); + const node = createBaseNode(332 /* JSDocLinkCode */); node.name = name; node.text = text; return node; @@ -20966,7 +21086,7 @@ function createNodeFactory(flags, baseFactory2) { return node.name !== name ? update(createJSDocLinkCode(name, text), node) : node; } function createJSDocLinkPlain(name, text) { - const node = createBaseNode(332 /* JSDocLinkPlain */); + const node = createBaseNode(333 /* JSDocLinkPlain */); node.name = name; node.text = text; return node; @@ -20993,14 +21113,14 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocTypeLikeTagWorker(kind, tagName, typeExpression, comment), node) : node; } function createJSDocUnknownTag(tagName, comment) { - const node = createBaseJSDocTag(333 /* JSDocTag */, tagName, comment); + const node = createBaseJSDocTag(334 /* JSDocTag */, tagName, comment); return node; } function updateJSDocUnknownTag(node, tagName, comment) { return node.tagName !== tagName || node.comment !== comment ? update(createJSDocUnknownTag(tagName, comment), node) : node; } function createJSDocEnumTag(tagName, typeExpression, comment) { - const node = createBaseJSDocTagDeclaration(346 /* JSDocEnumTag */, tagName ?? createIdentifier(getDefaultTagNameForKind(346 /* JSDocEnumTag */)), comment); + const node = createBaseJSDocTagDeclaration(347 /* JSDocEnumTag */, tagName ?? createIdentifier(getDefaultTagNameForKind(347 /* JSDocEnumTag */)), comment); node.typeExpression = typeExpression; node.locals = void 0; node.nextContainer = void 0; @@ -21010,7 +21130,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocEnumTag(tagName, typeExpression, comment), node) : node; } function createJSDocText(text) { - const node = createBaseNode(327 /* JSDocText */); + const node = createBaseNode(328 /* JSDocText */); node.text = text; return node; } @@ -21018,7 +21138,7 @@ function createNodeFactory(flags, baseFactory2) { return node.text !== text ? update(createJSDocText(text), node) : node; } function createJSDocComment(comment, tags) { - const node = createBaseNode(326 /* JSDoc */); + const node = createBaseNode(327 /* JSDoc */); node.comment = comment; node.tags = asNodeArray(tags); return node; @@ -21027,7 +21147,7 @@ function createNodeFactory(flags, baseFactory2) { return node.comment !== comment || node.tags !== tags ? update(createJSDocComment(comment, tags), node) : node; } function createJsxElement(openingElement, children, closingElement) { - const node = createBaseNode(283 /* JsxElement */); + const node = createBaseNode(284 /* JsxElement */); node.openingElement = openingElement; node.children = createNodeArray(children); node.closingElement = closingElement; @@ -21038,7 +21158,7 @@ function createNodeFactory(flags, baseFactory2) { return node.openingElement !== openingElement || node.children !== children || node.closingElement !== closingElement ? update(createJsxElement(openingElement, children, closingElement), node) : node; } function createJsxSelfClosingElement(tagName, typeArguments, attributes) { - const node = createBaseNode(284 /* JsxSelfClosingElement */); + const node = createBaseNode(285 /* JsxSelfClosingElement */); node.tagName = tagName; node.typeArguments = asNodeArray(typeArguments); node.attributes = attributes; @@ -21052,7 +21172,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.typeArguments !== typeArguments || node.attributes !== attributes ? update(createJsxSelfClosingElement(tagName, typeArguments, attributes), node) : node; } function createJsxOpeningElement(tagName, typeArguments, attributes) { - const node = createBaseNode(285 /* JsxOpeningElement */); + const node = createBaseNode(286 /* JsxOpeningElement */); node.tagName = tagName; node.typeArguments = asNodeArray(typeArguments); node.attributes = attributes; @@ -21066,7 +21186,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.typeArguments !== typeArguments || node.attributes !== attributes ? update(createJsxOpeningElement(tagName, typeArguments, attributes), node) : node; } function createJsxClosingElement(tagName) { - const node = createBaseNode(286 /* JsxClosingElement */); + const node = createBaseNode(287 /* JsxClosingElement */); node.tagName = tagName; node.transformFlags |= propagateChildFlags(node.tagName) | 2 /* ContainsJsx */; return node; @@ -21075,7 +21195,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName ? update(createJsxClosingElement(tagName), node) : node; } function createJsxFragment(openingFragment, children, closingFragment) { - const node = createBaseNode(287 /* JsxFragment */); + const node = createBaseNode(288 /* JsxFragment */); node.openingFragment = openingFragment; node.children = createNodeArray(children); node.closingFragment = closingFragment; @@ -21096,17 +21216,17 @@ function createNodeFactory(flags, baseFactory2) { return node.text !== text || node.containsOnlyTriviaWhiteSpaces !== containsOnlyTriviaWhiteSpaces ? update(createJsxText(text, containsOnlyTriviaWhiteSpaces), node) : node; } function createJsxOpeningFragment() { - const node = createBaseNode(288 /* JsxOpeningFragment */); + const node = createBaseNode(289 /* JsxOpeningFragment */); node.transformFlags |= 2 /* ContainsJsx */; return node; } function createJsxJsxClosingFragment() { - const node = createBaseNode(289 /* JsxClosingFragment */); + const node = createBaseNode(290 /* JsxClosingFragment */); node.transformFlags |= 2 /* ContainsJsx */; return node; } function createJsxAttribute(name, initializer) { - const node = createBaseDeclaration(290 /* JsxAttribute */); + const node = createBaseDeclaration(291 /* JsxAttribute */); node.name = name; node.initializer = initializer; node.transformFlags |= propagateChildFlags(node.name) | propagateChildFlags(node.initializer) | 2 /* ContainsJsx */; @@ -21116,7 +21236,7 @@ function createNodeFactory(flags, baseFactory2) { return node.name !== name || node.initializer !== initializer ? update(createJsxAttribute(name, initializer), node) : node; } function createJsxAttributes(properties) { - const node = createBaseDeclaration(291 /* JsxAttributes */); + const node = createBaseDeclaration(292 /* JsxAttributes */); node.properties = createNodeArray(properties); node.transformFlags |= propagateChildrenFlags(node.properties) | 2 /* ContainsJsx */; return node; @@ -21125,7 +21245,7 @@ function createNodeFactory(flags, baseFactory2) { return node.properties !== properties ? update(createJsxAttributes(properties), node) : node; } function createJsxSpreadAttribute(expression) { - const node = createBaseNode(292 /* JsxSpreadAttribute */); + const node = createBaseNode(293 /* JsxSpreadAttribute */); node.expression = expression; node.transformFlags |= propagateChildFlags(node.expression) | 2 /* ContainsJsx */; return node; @@ -21134,7 +21254,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createJsxSpreadAttribute(expression), node) : node; } function createJsxExpression(dotDotDotToken, expression) { - const node = createBaseNode(293 /* JsxExpression */); + const node = createBaseNode(294 /* JsxExpression */); node.dotDotDotToken = dotDotDotToken; node.expression = expression; node.transformFlags |= propagateChildFlags(node.dotDotDotToken) | propagateChildFlags(node.expression) | 2 /* ContainsJsx */; @@ -21144,7 +21264,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createJsxExpression(node.dotDotDotToken, expression), node) : node; } function createJsxNamespacedName(namespace, name) { - const node = createBaseNode(294 /* JsxNamespacedName */); + const node = createBaseNode(295 /* JsxNamespacedName */); node.namespace = namespace; node.name = name; node.transformFlags |= propagateChildFlags(node.namespace) | propagateChildFlags(node.name) | 2 /* ContainsJsx */; @@ -21154,7 +21274,7 @@ function createNodeFactory(flags, baseFactory2) { return node.namespace !== namespace || node.name !== name ? update(createJsxNamespacedName(namespace, name), node) : node; } function createCaseClause(expression, statements) { - const node = createBaseNode(295 /* CaseClause */); + const node = createBaseNode(296 /* CaseClause */); node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); node.statements = createNodeArray(statements); node.transformFlags |= propagateChildFlags(node.expression) | propagateChildrenFlags(node.statements); @@ -21165,7 +21285,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression || node.statements !== statements ? update(createCaseClause(expression, statements), node) : node; } function createDefaultClause(statements) { - const node = createBaseNode(296 /* DefaultClause */); + const node = createBaseNode(297 /* DefaultClause */); node.statements = createNodeArray(statements); node.transformFlags = propagateChildrenFlags(node.statements); return node; @@ -21174,7 +21294,7 @@ function createNodeFactory(flags, baseFactory2) { return node.statements !== statements ? update(createDefaultClause(statements), node) : node; } function createHeritageClause(token, types) { - const node = createBaseNode(297 /* HeritageClause */); + const node = createBaseNode(298 /* HeritageClause */); node.token = token; node.types = createNodeArray(types); node.transformFlags |= propagateChildrenFlags(node.types); @@ -21194,7 +21314,7 @@ function createNodeFactory(flags, baseFactory2) { return node.types !== types ? update(createHeritageClause(node.token, types), node) : node; } function createCatchClause(variableDeclaration, block) { - const node = createBaseNode(298 /* CatchClause */); + const node = createBaseNode(299 /* CatchClause */); node.variableDeclaration = asVariableDeclaration(variableDeclaration); node.block = block; node.transformFlags |= propagateChildFlags(node.variableDeclaration) | propagateChildFlags(node.block) | (!variableDeclaration ? 64 /* ContainsES2019 */ : 0 /* None */); @@ -21206,7 +21326,7 @@ function createNodeFactory(flags, baseFactory2) { return node.variableDeclaration !== variableDeclaration || node.block !== block ? update(createCatchClause(variableDeclaration, block), node) : node; } function createPropertyAssignment(name, initializer) { - const node = createBaseDeclaration(302 /* PropertyAssignment */); + const node = createBaseDeclaration(303 /* PropertyAssignment */); node.name = asName(name); node.initializer = parenthesizerRules().parenthesizeExpressionForDisallowedComma(initializer); node.transformFlags |= propagateNameFlags(node.name) | propagateChildFlags(node.initializer); @@ -21228,7 +21348,7 @@ function createNodeFactory(flags, baseFactory2) { return update(updated, original); } function createShorthandPropertyAssignment(name, objectAssignmentInitializer) { - const node = createBaseDeclaration(303 /* ShorthandPropertyAssignment */); + const node = createBaseDeclaration(304 /* ShorthandPropertyAssignment */); node.name = asName(name); node.objectAssignmentInitializer = objectAssignmentInitializer && parenthesizerRules().parenthesizeExpressionForDisallowedComma(objectAssignmentInitializer); node.transformFlags |= propagateIdentifierNameFlags(node.name) | propagateChildFlags(node.objectAssignmentInitializer) | 1024 /* ContainsES2015 */; @@ -21252,7 +21372,7 @@ function createNodeFactory(flags, baseFactory2) { return update(updated, original); } function createSpreadAssignment(expression) { - const node = createBaseDeclaration(304 /* SpreadAssignment */); + const node = createBaseDeclaration(305 /* SpreadAssignment */); node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); node.transformFlags |= propagateChildFlags(node.expression) | 128 /* ContainsES2018 */ | 65536 /* ContainsObjectRestOrSpread */; node.jsDoc = void 0; @@ -21262,7 +21382,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createSpreadAssignment(expression), node) : node; } function createEnumMember(name, initializer) { - const node = createBaseDeclaration(305 /* EnumMember */); + const node = createBaseDeclaration(306 /* EnumMember */); node.name = asName(name); node.initializer = initializer && parenthesizerRules().parenthesizeExpressionForDisallowedComma(initializer); node.transformFlags |= propagateChildFlags(node.name) | propagateChildFlags(node.initializer) | 1 /* ContainsTypeScript */; @@ -21273,7 +21393,7 @@ function createNodeFactory(flags, baseFactory2) { return node.name !== name || node.initializer !== initializer ? update(createEnumMember(name, initializer), node) : node; } function createSourceFile2(statements, endOfFileToken, flags2) { - const node = baseFactory2.createBaseSourceFileNode(311 /* SourceFile */); + const node = baseFactory2.createBaseSourceFileNode(312 /* SourceFile */); node.statements = createNodeArray(statements); node.endOfFileToken = endOfFileToken; node.flags |= flags2; @@ -21343,7 +21463,7 @@ function createNodeFactory(flags, baseFactory2) { } function cloneRedirectedSourceFile(source) { const node = createRedirectedSourceFile(source.redirectInfo); - node.flags |= source.flags & ~8 /* Synthesized */; + node.flags |= source.flags & ~16 /* Synthesized */; node.fileName = source.fileName; node.path = source.path; node.resolvedPath = source.resolvedPath; @@ -21354,8 +21474,8 @@ function createNodeFactory(flags, baseFactory2) { return node; } function cloneSourceFileWorker(source) { - const node = baseFactory2.createBaseSourceFileNode(311 /* SourceFile */); - node.flags |= source.flags & ~8 /* Synthesized */; + const node = baseFactory2.createBaseSourceFileNode(312 /* SourceFile */); + node.flags |= source.flags & ~16 /* Synthesized */; for (const p in source) { if (hasProperty(node, p) || !hasProperty(source, p)) { continue; @@ -21388,7 +21508,7 @@ function createNodeFactory(flags, baseFactory2) { return node.statements !== statements || node.isDeclarationFile !== isDeclarationFile || node.referencedFiles !== referencedFiles || node.typeReferenceDirectives !== typeReferenceDirectives || node.hasNoDefaultLib !== hasNoDefaultLib || node.libReferenceDirectives !== libReferenceDirectives ? update(cloneSourceFileWithChanges(node, statements, isDeclarationFile, referencedFiles, typeReferenceDirectives, hasNoDefaultLib, libReferenceDirectives), node) : node; } function createBundle(sourceFiles, prepends = emptyArray) { - const node = createBaseNode(312 /* Bundle */); + const node = createBaseNode(313 /* Bundle */); node.prepends = prepends; node.sourceFiles = sourceFiles; node.syntheticFileReferences = void 0; @@ -21401,7 +21521,7 @@ function createNodeFactory(flags, baseFactory2) { return node.sourceFiles !== sourceFiles || node.prepends !== prepends ? update(createBundle(sourceFiles, prepends), node) : node; } function createUnparsedSource(prologues, syntheticReferences, texts) { - const node = createBaseNode(313 /* UnparsedSource */); + const node = createBaseNode(314 /* UnparsedSource */); node.prologues = prologues; node.syntheticReferences = syntheticReferences; node.texts = texts; @@ -21418,48 +21538,48 @@ function createNodeFactory(flags, baseFactory2) { return node; } function createUnparsedPrologue(data) { - return createBaseUnparsedNode(306 /* UnparsedPrologue */, data); + return createBaseUnparsedNode(307 /* UnparsedPrologue */, data); } function createUnparsedPrepend(data, texts) { - const node = createBaseUnparsedNode(307 /* UnparsedPrepend */, data); + const node = createBaseUnparsedNode(308 /* UnparsedPrepend */, data); node.texts = texts; return node; } function createUnparsedTextLike(data, internal) { - return createBaseUnparsedNode(internal ? 309 /* UnparsedInternalText */ : 308 /* UnparsedText */, data); + return createBaseUnparsedNode(internal ? 310 /* UnparsedInternalText */ : 309 /* UnparsedText */, data); } function createUnparsedSyntheticReference(section) { - const node = createBaseNode(310 /* UnparsedSyntheticReference */); + const node = createBaseNode(311 /* UnparsedSyntheticReference */); node.data = section.data; node.section = section; return node; } function createInputFiles() { - const node = createBaseNode(314 /* InputFiles */); + const node = createBaseNode(315 /* InputFiles */); node.javascriptText = ""; node.declarationText = ""; return node; } function createSyntheticExpression(type, isSpread = false, tupleNameSource) { - const node = createBaseNode(236 /* SyntheticExpression */); + const node = createBaseNode(237 /* SyntheticExpression */); node.type = type; node.isSpread = isSpread; node.tupleNameSource = tupleNameSource; return node; } function createSyntaxList(children) { - const node = createBaseNode(357 /* SyntaxList */); + const node = createBaseNode(358 /* SyntaxList */); node._children = children; return node; } function createNotEmittedStatement(original) { - const node = createBaseNode(358 /* NotEmittedStatement */); + const node = createBaseNode(359 /* NotEmittedStatement */); node.original = original; setTextRange(node, original); return node; } function createPartiallyEmittedExpression(expression, original) { - const node = createBaseNode(359 /* PartiallyEmittedExpression */); + const node = createBaseNode(360 /* PartiallyEmittedExpression */); node.expression = expression; node.original = original; node.transformFlags |= propagateChildFlags(node.expression) | 1 /* ContainsTypeScript */; @@ -21481,7 +21601,7 @@ function createNodeFactory(flags, baseFactory2) { return node; } function createCommaListExpression(elements) { - const node = createBaseNode(360 /* CommaListExpression */); + const node = createBaseNode(361 /* CommaListExpression */); node.elements = createNodeArray(sameFlatMap(elements, flattenCommaElements)); node.transformFlags |= propagateChildrenFlags(node.elements); return node; @@ -21490,7 +21610,7 @@ function createNodeFactory(flags, baseFactory2) { return node.elements !== elements ? update(createCommaListExpression(elements), node) : node; } function createSyntheticReferenceExpression(expression, thisArg) { - const node = createBaseNode(361 /* SyntheticReferenceExpression */); + const node = createBaseNode(362 /* SyntheticReferenceExpression */); node.expression = expression; node.thisArg = thisArg; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.thisArg); @@ -21501,7 +21621,7 @@ function createNodeFactory(flags, baseFactory2) { } function cloneGeneratedIdentifier(node) { const clone2 = createBaseIdentifier(node.escapedText); - clone2.flags |= node.flags & ~8 /* Synthesized */; + clone2.flags |= node.flags & ~16 /* Synthesized */; clone2.transformFlags = node.transformFlags; setOriginalNode(clone2, node); setIdentifierAutoGenerate(clone2, { ...node.emitNode.autoGenerate }); @@ -21509,7 +21629,7 @@ function createNodeFactory(flags, baseFactory2) { } function cloneIdentifier(node) { const clone2 = createBaseIdentifier(node.escapedText); - clone2.flags |= node.flags & ~8 /* Synthesized */; + clone2.flags |= node.flags & ~16 /* Synthesized */; clone2.jsDoc = node.jsDoc; clone2.flowNode = node.flowNode; clone2.symbol = node.symbol; @@ -21522,7 +21642,7 @@ function createNodeFactory(flags, baseFactory2) { } function cloneGeneratedPrivateIdentifier(node) { const clone2 = createBasePrivateIdentifier(node.escapedText); - clone2.flags |= node.flags & ~8 /* Synthesized */; + clone2.flags |= node.flags & ~16 /* Synthesized */; clone2.transformFlags = node.transformFlags; setOriginalNode(clone2, node); setIdentifierAutoGenerate(clone2, { ...node.emitNode.autoGenerate }); @@ -21530,7 +21650,7 @@ function createNodeFactory(flags, baseFactory2) { } function clonePrivateIdentifier(node) { const clone2 = createBasePrivateIdentifier(node.escapedText); - clone2.flags |= node.flags & ~8 /* Synthesized */; + clone2.flags |= node.flags & ~16 /* Synthesized */; clone2.transformFlags = node.transformFlags; setOriginalNode(clone2, node); return clone2; @@ -21555,7 +21675,7 @@ function createNodeFactory(flags, baseFactory2) { return clonePrivateIdentifier(node); } const clone2 = !isNodeKind(node.kind) ? baseFactory2.createBaseTokenNode(node.kind) : baseFactory2.createBaseNode(node.kind); - clone2.flags |= node.flags & ~8 /* Synthesized */; + clone2.flags |= node.flags & ~16 /* Synthesized */; clone2.transformFlags = node.transformFlags; setOriginalNode(clone2, node); for (const key in node) { @@ -21648,7 +21768,10 @@ function createNodeFactory(flags, baseFactory2) { ); } function createTypeCheck(value, tag) { - return tag === "undefined" ? factory2.createStrictEquality(value, createVoidZero()) : factory2.createStrictEquality(createTypeOfExpression(value), createStringLiteral(tag)); + return tag === "null" ? factory2.createStrictEquality(value, createNull()) : tag === "undefined" ? factory2.createStrictEquality(value, createVoidZero()) : factory2.createStrictEquality(createTypeOfExpression(value), createStringLiteral(tag)); + } + function createIsNotTypeCheck(value, tag) { + return tag === "null" ? factory2.createStrictInequality(value, createNull()) : tag === "undefined" ? factory2.createStrictInequality(value, createVoidZero()) : factory2.createStrictInequality(createTypeOfExpression(value), createStringLiteral(tag)); } function createMethodCall(object, methodName, argumentsList) { if (isCallChain(object)) { @@ -21723,17 +21846,17 @@ function createNodeFactory(flags, baseFactory2) { } function updateOuterExpression(outerExpression, expression) { switch (outerExpression.kind) { - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return updateParenthesizedExpression(outerExpression, expression); - case 215 /* TypeAssertionExpression */: + case 216 /* TypeAssertionExpression */: return updateTypeAssertion(outerExpression, outerExpression.type, expression); - case 233 /* AsExpression */: + case 234 /* AsExpression */: return updateAsExpression(outerExpression, expression, outerExpression.type); - case 237 /* SatisfiesExpression */: + case 238 /* SatisfiesExpression */: return updateSatisfiesExpression(outerExpression, expression, outerExpression.type); - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: return updateNonNullExpression(outerExpression, expression); - case 359 /* PartiallyEmittedExpression */: + case 360 /* PartiallyEmittedExpression */: return updatePartiallyEmittedExpression(outerExpression, expression); } } @@ -21773,13 +21896,13 @@ function createNodeFactory(flags, baseFactory2) { case 10 /* BigIntLiteral */: case 11 /* StringLiteral */: return false; - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: const elements = target.elements; if (elements.length === 0) { return false; } return true; - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return target.properties.length > 0; default: return true; @@ -22042,6 +22165,9 @@ function createNodeFactory(flags, baseFactory2) { } return isTypeParameterDeclaration(node) ? updateTypeParameterDeclaration(node, modifierArray, node.name, node.constraint, node.default) : isParameter(node) ? updateParameterDeclaration(node, modifierArray, node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer) : isConstructorTypeNode(node) ? updateConstructorTypeNode1(node, modifierArray, node.typeParameters, node.parameters, node.type) : isPropertySignature(node) ? updatePropertySignature(node, modifierArray, node.name, node.questionToken, node.type) : isPropertyDeclaration(node) ? updatePropertyDeclaration(node, modifierArray, node.name, node.questionToken ?? node.exclamationToken, node.type, node.initializer) : isMethodSignature(node) ? updateMethodSignature(node, modifierArray, node.name, node.questionToken, node.typeParameters, node.parameters, node.type) : isMethodDeclaration(node) ? updateMethodDeclaration(node, modifierArray, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body) : isConstructorDeclaration(node) ? updateConstructorDeclaration(node, modifierArray, node.parameters, node.body) : isGetAccessorDeclaration(node) ? updateGetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.type, node.body) : isSetAccessorDeclaration(node) ? updateSetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.body) : isIndexSignatureDeclaration(node) ? updateIndexSignature(node, modifierArray, node.parameters, node.type) : isFunctionExpression(node) ? updateFunctionExpression(node, modifierArray, node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body) : isArrowFunction(node) ? updateArrowFunction(node, modifierArray, node.typeParameters, node.parameters, node.type, node.equalsGreaterThanToken, node.body) : isClassExpression(node) ? updateClassExpression(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isVariableStatement(node) ? updateVariableStatement(node, modifierArray, node.declarationList) : isFunctionDeclaration(node) ? updateFunctionDeclaration(node, modifierArray, node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body) : isClassDeclaration(node) ? updateClassDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isInterfaceDeclaration(node) ? updateInterfaceDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isTypeAliasDeclaration(node) ? updateTypeAliasDeclaration(node, modifierArray, node.name, node.typeParameters, node.type) : isEnumDeclaration(node) ? updateEnumDeclaration(node, modifierArray, node.name, node.members) : isModuleDeclaration(node) ? updateModuleDeclaration(node, modifierArray, node.name, node.body) : isImportEqualsDeclaration(node) ? updateImportEqualsDeclaration(node, modifierArray, node.isTypeOnly, node.name, node.moduleReference) : isImportDeclaration(node) ? updateImportDeclaration(node, modifierArray, node.importClause, node.moduleSpecifier, node.assertClause) : isExportAssignment(node) ? updateExportAssignment(node, modifierArray, node.expression) : isExportDeclaration(node) ? updateExportDeclaration(node, modifierArray, node.isTypeOnly, node.exportClause, node.moduleSpecifier, node.assertClause) : Debug.assertNever(node); } + function updateModifierLike(node, modifierArray) { + return isParameter(node) ? updateParameterDeclaration(node, modifierArray, node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer) : isPropertyDeclaration(node) ? updatePropertyDeclaration(node, modifierArray, node.name, node.questionToken ?? node.exclamationToken, node.type, node.initializer) : isMethodDeclaration(node) ? updateMethodDeclaration(node, modifierArray, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body) : isGetAccessorDeclaration(node) ? updateGetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.type, node.body) : isSetAccessorDeclaration(node) ? updateSetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.body) : isClassExpression(node) ? updateClassExpression(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isClassDeclaration(node) ? updateClassDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : Debug.assertNever(node); + } function asNodeArray(array) { return array ? createNodeArray(array) : void 0; } @@ -22090,43 +22216,43 @@ function updateWithOriginal(updated, original) { } function getDefaultTagNameForKind(kind) { switch (kind) { - case 350 /* JSDocTypeTag */: + case 351 /* JSDocTypeTag */: return "type"; - case 348 /* JSDocReturnTag */: + case 349 /* JSDocReturnTag */: return "returns"; - case 349 /* JSDocThisTag */: + case 350 /* JSDocThisTag */: return "this"; - case 346 /* JSDocEnumTag */: + case 347 /* JSDocEnumTag */: return "enum"; - case 336 /* JSDocAuthorTag */: + case 337 /* JSDocAuthorTag */: return "author"; - case 338 /* JSDocClassTag */: + case 339 /* JSDocClassTag */: return "class"; - case 339 /* JSDocPublicTag */: + case 340 /* JSDocPublicTag */: return "public"; - case 340 /* JSDocPrivateTag */: + case 341 /* JSDocPrivateTag */: return "private"; - case 341 /* JSDocProtectedTag */: + case 342 /* JSDocProtectedTag */: return "protected"; - case 342 /* JSDocReadonlyTag */: + case 343 /* JSDocReadonlyTag */: return "readonly"; - case 343 /* JSDocOverrideTag */: + case 344 /* JSDocOverrideTag */: return "override"; - case 351 /* JSDocTemplateTag */: + case 352 /* JSDocTemplateTag */: return "template"; - case 352 /* JSDocTypedefTag */: + case 353 /* JSDocTypedefTag */: return "typedef"; - case 347 /* JSDocParameterTag */: + case 348 /* JSDocParameterTag */: return "param"; - case 354 /* JSDocPropertyTag */: + case 355 /* JSDocPropertyTag */: return "prop"; - case 344 /* JSDocCallbackTag */: + case 345 /* JSDocCallbackTag */: return "callback"; - case 345 /* JSDocOverloadTag */: + case 346 /* JSDocOverloadTag */: return "overload"; - case 334 /* JSDocAugmentsTag */: + case 335 /* JSDocAugmentsTag */: return "augments"; - case 335 /* JSDocImplementsTag */: + case 336 /* JSDocImplementsTag */: return "implements"; default: return Debug.fail(`Unsupported kind: ${Debug.formatSyntaxKind(kind)}`); @@ -22210,70 +22336,70 @@ function aggregateChildrenFlags(children) { children.transformFlags = subtreeFlags; } function getTransformFlagsSubtreeExclusions(kind) { - if (kind >= 181 /* FirstTypeNode */ && kind <= 204 /* LastTypeNode */) { + if (kind >= 182 /* FirstTypeNode */ && kind <= 205 /* LastTypeNode */) { return -2 /* TypeExcludes */; } switch (kind) { - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 208 /* ArrayLiteralExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 209 /* ArrayLiteralExpression */: return -2147450880 /* ArrayLiteralOrCallOrNewExcludes */; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return -1941676032 /* ModuleExcludes */; - case 168 /* Parameter */: + case 169 /* Parameter */: return -2147483648 /* ParameterExcludes */; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return -2072174592 /* ArrowFunctionExcludes */; - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: return -1937940480 /* FunctionExcludes */; - case 260 /* VariableDeclarationList */: + case 261 /* VariableDeclarationList */: return -2146893824 /* VariableDeclarationListExcludes */; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return -2147344384 /* ClassExcludes */; - case 175 /* Constructor */: + case 176 /* Constructor */: return -1937948672 /* ConstructorExcludes */; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return -2013249536 /* PropertyExcludes */; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return -2005057536 /* MethodOrAccessorExcludes */; case 133 /* AnyKeyword */: case 150 /* NumberKeyword */: - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: case 146 /* NeverKeyword */: case 154 /* StringKeyword */: case 151 /* ObjectKeyword */: case 136 /* BooleanKeyword */: case 155 /* SymbolKeyword */: case 116 /* VoidKeyword */: - case 167 /* TypeParameter */: - case 170 /* PropertySignature */: - case 172 /* MethodSignature */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 180 /* IndexSignature */: - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 168 /* TypeParameter */: + case 171 /* PropertySignature */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 181 /* IndexSignature */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: return -2 /* TypeExcludes */; - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return -2147278848 /* ObjectLiteralExcludes */; - case 298 /* CatchClause */: + case 299 /* CatchClause */: return -2147418112 /* CatchClauseExcludes */; - case 205 /* ObjectBindingPattern */: - case 206 /* ArrayBindingPattern */: + case 206 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: return -2147450880 /* BindingPatternExcludes */; - case 215 /* TypeAssertionExpression */: - case 237 /* SatisfiesExpression */: - case 233 /* AsExpression */: - case 359 /* PartiallyEmittedExpression */: - case 216 /* ParenthesizedExpression */: + case 216 /* TypeAssertionExpression */: + case 238 /* SatisfiesExpression */: + case 234 /* AsExpression */: + case 360 /* PartiallyEmittedExpression */: + case 217 /* ParenthesizedExpression */: case 108 /* SuperKeyword */: return -2147483648 /* OuterExpressionExcludes */; - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return -2147483648 /* PropertyAccessExcludes */; default: return -2147483648 /* NodeExcludes */; @@ -22281,7 +22407,7 @@ function getTransformFlagsSubtreeExclusions(kind) { } var baseFactory = createBaseNodeFactory(); function makeSynthetic(node) { - node.flags |= 8 /* Synthesized */; + node.flags |= 16 /* Synthesized */; return node; } var syntheticFactory = { @@ -22514,11 +22640,13 @@ function createInputFilesWithFileTexts(javascriptPath, javascriptText, javascrip return node; } function setOriginalNode(node, original) { - node.original = original; - if (original) { - const emitNode = original.emitNode; - if (emitNode) - node.emitNode = mergeEmitNode(emitNode, node.emitNode); + if (node.original !== original) { + node.original = original; + if (original) { + const emitNode = original.emitNode; + if (emitNode) + node.emitNode = mergeEmitNode(emitNode, node.emitNode); + } } return node; } @@ -22534,35 +22662,53 @@ function mergeEmitNode(sourceEmitNode, destEmitNode) { constantValue, helpers, startsOnNewLine, - snippetElement + snippetElement, + classThis, + assignedName } = sourceEmitNode; if (!destEmitNode) destEmitNode = {}; - if (leadingComments) - destEmitNode.leadingComments = addRange(leadingComments.slice(), destEmitNode.leadingComments); - if (trailingComments) - destEmitNode.trailingComments = addRange(trailingComments.slice(), destEmitNode.trailingComments); - if (flags) + if (flags) { destEmitNode.flags = flags; - if (internalFlags) + } + if (internalFlags) { destEmitNode.internalFlags = internalFlags & ~8 /* Immutable */; - if (commentRange) + } + if (leadingComments) { + destEmitNode.leadingComments = addRange(leadingComments.slice(), destEmitNode.leadingComments); + } + if (trailingComments) { + destEmitNode.trailingComments = addRange(trailingComments.slice(), destEmitNode.trailingComments); + } + if (commentRange) { destEmitNode.commentRange = commentRange; - if (sourceMapRange) + } + if (sourceMapRange) { destEmitNode.sourceMapRange = sourceMapRange; - if (tokenSourceMapRanges) + } + if (tokenSourceMapRanges) { destEmitNode.tokenSourceMapRanges = mergeTokenSourceMapRanges(tokenSourceMapRanges, destEmitNode.tokenSourceMapRanges); - if (constantValue !== void 0) + } + if (constantValue !== void 0) { destEmitNode.constantValue = constantValue; + } if (helpers) { for (const helper of helpers) { destEmitNode.helpers = appendIfUnique(destEmitNode.helpers, helper); } } - if (startsOnNewLine !== void 0) + if (startsOnNewLine !== void 0) { destEmitNode.startsOnNewLine = startsOnNewLine; - if (snippetElement !== void 0) + } + if (snippetElement !== void 0) { destEmitNode.snippetElement = snippetElement; + } + if (classThis) { + destEmitNode.classThis = classThis; + } + if (assignedName) { + destEmitNode.assignedName = assignedName; + } return destEmitNode; } function mergeTokenSourceMapRanges(sourceRanges, destRanges) { @@ -22578,7 +22724,7 @@ function mergeTokenSourceMapRanges(sourceRanges, destRanges) { function getOrCreateEmitNode(node) { if (!node.emitNode) { if (isParseTreeNode(node)) { - if (node.kind === 311 /* SourceFile */) { + if (node.kind === 312 /* SourceFile */) { return node.emitNode = { annotatedNodes: [node] }; } const sourceFile = getSourceFileOfNode(getParseTreeNode(getSourceFileOfNode(node))) ?? Debug.fail("Could not determine parsed source file."); @@ -22809,7 +22955,10 @@ function createEmitHelperFactory(context) { // Class Fields Helpers createClassPrivateFieldGetHelper, createClassPrivateFieldSetHelper, - createClassPrivateFieldInHelper + createClassPrivateFieldInHelper, + // 'using' helpers + createAddDisposableResourceHelper, + createDisposeResourcesHelper }; function getUnscopedHelperName(name) { return setEmitFlags(factory2.createIdentifier(name), 8192 /* HelperName */ | 4 /* AdviseOnEmitNode */); @@ -22864,10 +23013,12 @@ function createEmitHelperFactory(context) { ); } function createESDecorateClassContextObject(contextIn) { - return factory2.createObjectLiteralExpression([ + const properties = [ factory2.createPropertyAssignment(factory2.createIdentifier("kind"), factory2.createStringLiteral("class")), - factory2.createPropertyAssignment(factory2.createIdentifier("name"), contextIn.name) - ]); + factory2.createPropertyAssignment(factory2.createIdentifier("name"), contextIn.name), + factory2.createPropertyAssignment(factory2.createIdentifier("metadata"), contextIn.metadata) + ]; + return factory2.createObjectLiteralExpression(properties); } function createESDecorateClassElementAccessGetMethod(elementName) { const accessor = elementName.computed ? factory2.createElementAccessExpression(factory2.createIdentifier("obj"), elementName.name) : factory2.createPropertyAccessExpression(factory2.createIdentifier("obj"), elementName.name); @@ -22971,13 +23122,15 @@ function createEmitHelperFactory(context) { return factory2.createObjectLiteralExpression(properties); } function createESDecorateClassElementContextObject(contextIn) { - return factory2.createObjectLiteralExpression([ + const properties = [ factory2.createPropertyAssignment(factory2.createIdentifier("kind"), factory2.createStringLiteral(contextIn.kind)), factory2.createPropertyAssignment(factory2.createIdentifier("name"), contextIn.name.computed ? contextIn.name.name : factory2.createStringLiteralFromNode(contextIn.name.name)), factory2.createPropertyAssignment(factory2.createIdentifier("static"), contextIn.static ? factory2.createTrue() : factory2.createFalse()), factory2.createPropertyAssignment(factory2.createIdentifier("private"), contextIn.private ? factory2.createTrue() : factory2.createFalse()), - factory2.createPropertyAssignment(factory2.createIdentifier("access"), createESDecorateClassElementAccessObject(contextIn.name, contextIn.access)) - ]); + factory2.createPropertyAssignment(factory2.createIdentifier("access"), createESDecorateClassElementAccessObject(contextIn.name, contextIn.access)), + factory2.createPropertyAssignment(factory2.createIdentifier("metadata"), contextIn.metadata) + ]; + return factory2.createObjectLiteralExpression(properties); } function createESDecorateContextObject(contextIn) { return contextIn.kind === "class" ? createESDecorateClassContextObject(contextIn) : createESDecorateClassElementContextObject(contextIn); @@ -23288,6 +23441,24 @@ function createEmitHelperFactory(context) { [state, receiver] ); } + function createAddDisposableResourceHelper(envBinding, value, async) { + context.requestEmitHelper(addDisposableResourceHelper); + return factory2.createCallExpression( + getUnscopedHelperName("__addDisposableResource"), + /*typeArguments*/ + void 0, + [envBinding, value, async ? factory2.createTrue() : factory2.createFalse()] + ); + } + function createDisposeResourcesHelper(envBinding) { + context.requestEmitHelper(disposeResourcesHelper); + return factory2.createCallExpression( + getUnscopedHelperName("__disposeResources"), + /*typeArguments*/ + void 0, + [envBinding] + ); + } } function compareEmitHelpers(x, y) { if (x === y) @@ -23732,6 +23903,63 @@ var classPrivateFieldInHelper = { return typeof state === "function" ? receiver === state : state.has(receiver); };` }; +var addDisposableResourceHelper = { + name: "typescript:addDisposableResource", + importName: "__addDisposableResource", + scoped: false, + text: ` + var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) { + if (value !== null && value !== void 0) { + if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); + var dispose; + if (async) { + if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); + dispose = value[Symbol.asyncDispose]; + } + if (dispose === void 0) { + if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); + dispose = value[Symbol.dispose]; + } + if (typeof dispose !== "function") throw new TypeError("Object not disposable."); + env.stack.push({ value: value, dispose: dispose, async: async }); + } + else if (async) { + env.stack.push({ async: true }); + } + return value; + };` +}; +var disposeResourcesHelper = { + name: "typescript:disposeResources", + importName: "__disposeResources", + scoped: false, + text: ` + var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) { + return function (env) { + function fail(e) { + env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; + env.hasError = true; + } + function next() { + while (env.stack.length) { + var rec = env.stack.pop(); + try { + var result = rec.dispose && rec.dispose.call(rec.value); + if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); + } + catch (e) { + fail(e); + } + } + if (env.hasError) throw env.error; + } + return next(); + }; + })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { + var e = new Error(message); + return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; + });` +}; var allUnscopedEmitHelpers; function getAllUnscopedEmitHelpers() { return allUnscopedEmitHelpers || (allUnscopedEmitHelpers = arrayToMap([ @@ -23762,7 +23990,9 @@ function getAllUnscopedEmitHelpers() { classPrivateFieldSetHelper, classPrivateFieldInHelper, createBindingHelper, - setModuleDefaultHelper + setModuleDefaultHelper, + addDisposableResourceHelper, + disposeResourcesHelper ], (helper) => helper.name)); } var asyncSuperHelper = { @@ -23870,502 +24100,502 @@ function isImportKeyword(node) { return node.kind === 102 /* ImportKeyword */; } function isQualifiedName(node) { - return node.kind === 165 /* QualifiedName */; + return node.kind === 166 /* QualifiedName */; } function isComputedPropertyName(node) { - return node.kind === 166 /* ComputedPropertyName */; + return node.kind === 167 /* ComputedPropertyName */; } function isTypeParameterDeclaration(node) { - return node.kind === 167 /* TypeParameter */; + return node.kind === 168 /* TypeParameter */; } function isParameter(node) { - return node.kind === 168 /* Parameter */; + return node.kind === 169 /* Parameter */; } function isDecorator(node) { - return node.kind === 169 /* Decorator */; + return node.kind === 170 /* Decorator */; } function isPropertySignature(node) { - return node.kind === 170 /* PropertySignature */; + return node.kind === 171 /* PropertySignature */; } function isPropertyDeclaration(node) { - return node.kind === 171 /* PropertyDeclaration */; + return node.kind === 172 /* PropertyDeclaration */; } function isMethodSignature(node) { - return node.kind === 172 /* MethodSignature */; + return node.kind === 173 /* MethodSignature */; } function isMethodDeclaration(node) { - return node.kind === 173 /* MethodDeclaration */; + return node.kind === 174 /* MethodDeclaration */; } function isClassStaticBlockDeclaration(node) { - return node.kind === 174 /* ClassStaticBlockDeclaration */; + return node.kind === 175 /* ClassStaticBlockDeclaration */; } function isConstructorDeclaration(node) { - return node.kind === 175 /* Constructor */; + return node.kind === 176 /* Constructor */; } function isGetAccessorDeclaration(node) { - return node.kind === 176 /* GetAccessor */; + return node.kind === 177 /* GetAccessor */; } function isSetAccessorDeclaration(node) { - return node.kind === 177 /* SetAccessor */; + return node.kind === 178 /* SetAccessor */; } function isCallSignatureDeclaration(node) { - return node.kind === 178 /* CallSignature */; + return node.kind === 179 /* CallSignature */; } function isConstructSignatureDeclaration(node) { - return node.kind === 179 /* ConstructSignature */; + return node.kind === 180 /* ConstructSignature */; } function isIndexSignatureDeclaration(node) { - return node.kind === 180 /* IndexSignature */; + return node.kind === 181 /* IndexSignature */; } function isTypePredicateNode(node) { - return node.kind === 181 /* TypePredicate */; + return node.kind === 182 /* TypePredicate */; } function isTypeReferenceNode(node) { - return node.kind === 182 /* TypeReference */; + return node.kind === 183 /* TypeReference */; } function isFunctionTypeNode(node) { - return node.kind === 183 /* FunctionType */; + return node.kind === 184 /* FunctionType */; } function isConstructorTypeNode(node) { - return node.kind === 184 /* ConstructorType */; + return node.kind === 185 /* ConstructorType */; } function isTypeQueryNode(node) { - return node.kind === 185 /* TypeQuery */; + return node.kind === 186 /* TypeQuery */; } function isTypeLiteralNode(node) { - return node.kind === 186 /* TypeLiteral */; + return node.kind === 187 /* TypeLiteral */; } function isArrayTypeNode(node) { - return node.kind === 187 /* ArrayType */; + return node.kind === 188 /* ArrayType */; } function isTupleTypeNode(node) { - return node.kind === 188 /* TupleType */; + return node.kind === 189 /* TupleType */; } function isNamedTupleMember(node) { - return node.kind === 201 /* NamedTupleMember */; + return node.kind === 202 /* NamedTupleMember */; } function isOptionalTypeNode(node) { - return node.kind === 189 /* OptionalType */; + return node.kind === 190 /* OptionalType */; } function isRestTypeNode(node) { - return node.kind === 190 /* RestType */; + return node.kind === 191 /* RestType */; } function isUnionTypeNode(node) { - return node.kind === 191 /* UnionType */; + return node.kind === 192 /* UnionType */; } function isIntersectionTypeNode(node) { - return node.kind === 192 /* IntersectionType */; + return node.kind === 193 /* IntersectionType */; } function isConditionalTypeNode(node) { - return node.kind === 193 /* ConditionalType */; + return node.kind === 194 /* ConditionalType */; } function isInferTypeNode(node) { - return node.kind === 194 /* InferType */; + return node.kind === 195 /* InferType */; } function isParenthesizedTypeNode(node) { - return node.kind === 195 /* ParenthesizedType */; + return node.kind === 196 /* ParenthesizedType */; } function isThisTypeNode(node) { - return node.kind === 196 /* ThisType */; + return node.kind === 197 /* ThisType */; } function isTypeOperatorNode(node) { - return node.kind === 197 /* TypeOperator */; + return node.kind === 198 /* TypeOperator */; } function isIndexedAccessTypeNode(node) { - return node.kind === 198 /* IndexedAccessType */; + return node.kind === 199 /* IndexedAccessType */; } function isMappedTypeNode(node) { - return node.kind === 199 /* MappedType */; + return node.kind === 200 /* MappedType */; } function isLiteralTypeNode(node) { - return node.kind === 200 /* LiteralType */; + return node.kind === 201 /* LiteralType */; } function isImportTypeNode(node) { - return node.kind === 204 /* ImportType */; + return node.kind === 205 /* ImportType */; } function isTemplateLiteralTypeSpan(node) { - return node.kind === 203 /* TemplateLiteralTypeSpan */; + return node.kind === 204 /* TemplateLiteralTypeSpan */; } function isObjectBindingPattern(node) { - return node.kind === 205 /* ObjectBindingPattern */; + return node.kind === 206 /* ObjectBindingPattern */; } function isArrayBindingPattern(node) { - return node.kind === 206 /* ArrayBindingPattern */; + return node.kind === 207 /* ArrayBindingPattern */; } function isBindingElement(node) { - return node.kind === 207 /* BindingElement */; + return node.kind === 208 /* BindingElement */; } function isArrayLiteralExpression(node) { - return node.kind === 208 /* ArrayLiteralExpression */; + return node.kind === 209 /* ArrayLiteralExpression */; } function isObjectLiteralExpression(node) { - return node.kind === 209 /* ObjectLiteralExpression */; + return node.kind === 210 /* ObjectLiteralExpression */; } function isPropertyAccessExpression(node) { - return node.kind === 210 /* PropertyAccessExpression */; + return node.kind === 211 /* PropertyAccessExpression */; } function isElementAccessExpression(node) { - return node.kind === 211 /* ElementAccessExpression */; + return node.kind === 212 /* ElementAccessExpression */; } function isCallExpression(node) { - return node.kind === 212 /* CallExpression */; + return node.kind === 213 /* CallExpression */; } function isNewExpression(node) { - return node.kind === 213 /* NewExpression */; + return node.kind === 214 /* NewExpression */; } function isTaggedTemplateExpression(node) { - return node.kind === 214 /* TaggedTemplateExpression */; + return node.kind === 215 /* TaggedTemplateExpression */; } function isParenthesizedExpression(node) { - return node.kind === 216 /* ParenthesizedExpression */; + return node.kind === 217 /* ParenthesizedExpression */; } function isFunctionExpression(node) { - return node.kind === 217 /* FunctionExpression */; + return node.kind === 218 /* FunctionExpression */; } function isArrowFunction(node) { - return node.kind === 218 /* ArrowFunction */; + return node.kind === 219 /* ArrowFunction */; } function isTypeOfExpression(node) { - return node.kind === 220 /* TypeOfExpression */; + return node.kind === 221 /* TypeOfExpression */; } function isVoidExpression(node) { - return node.kind === 221 /* VoidExpression */; + return node.kind === 222 /* VoidExpression */; } function isAwaitExpression(node) { - return node.kind === 222 /* AwaitExpression */; + return node.kind === 223 /* AwaitExpression */; } function isPrefixUnaryExpression(node) { - return node.kind === 223 /* PrefixUnaryExpression */; + return node.kind === 224 /* PrefixUnaryExpression */; } function isPostfixUnaryExpression(node) { - return node.kind === 224 /* PostfixUnaryExpression */; + return node.kind === 225 /* PostfixUnaryExpression */; } function isBinaryExpression(node) { - return node.kind === 225 /* BinaryExpression */; + return node.kind === 226 /* BinaryExpression */; } function isConditionalExpression(node) { - return node.kind === 226 /* ConditionalExpression */; + return node.kind === 227 /* ConditionalExpression */; } function isSpreadElement(node) { - return node.kind === 229 /* SpreadElement */; + return node.kind === 230 /* SpreadElement */; } function isClassExpression(node) { - return node.kind === 230 /* ClassExpression */; + return node.kind === 231 /* ClassExpression */; } function isOmittedExpression(node) { - return node.kind === 231 /* OmittedExpression */; + return node.kind === 232 /* OmittedExpression */; } function isExpressionWithTypeArguments(node) { - return node.kind === 232 /* ExpressionWithTypeArguments */; + return node.kind === 233 /* ExpressionWithTypeArguments */; } function isNonNullExpression(node) { - return node.kind === 234 /* NonNullExpression */; + return node.kind === 235 /* NonNullExpression */; } function isMetaProperty(node) { - return node.kind === 235 /* MetaProperty */; + return node.kind === 236 /* MetaProperty */; } function isPartiallyEmittedExpression(node) { - return node.kind === 359 /* PartiallyEmittedExpression */; + return node.kind === 360 /* PartiallyEmittedExpression */; } function isCommaListExpression(node) { - return node.kind === 360 /* CommaListExpression */; + return node.kind === 361 /* CommaListExpression */; } function isTemplateSpan(node) { - return node.kind === 238 /* TemplateSpan */; + return node.kind === 239 /* TemplateSpan */; } function isSemicolonClassElement(node) { - return node.kind === 239 /* SemicolonClassElement */; + return node.kind === 240 /* SemicolonClassElement */; } function isBlock(node) { - return node.kind === 240 /* Block */; + return node.kind === 241 /* Block */; } function isVariableStatement(node) { - return node.kind === 242 /* VariableStatement */; + return node.kind === 243 /* VariableStatement */; } function isEmptyStatement(node) { - return node.kind === 241 /* EmptyStatement */; + return node.kind === 242 /* EmptyStatement */; } function isExpressionStatement(node) { - return node.kind === 243 /* ExpressionStatement */; + return node.kind === 244 /* ExpressionStatement */; } function isIfStatement(node) { - return node.kind === 244 /* IfStatement */; + return node.kind === 245 /* IfStatement */; } function isForStatement(node) { - return node.kind === 247 /* ForStatement */; + return node.kind === 248 /* ForStatement */; } function isForInStatement(node) { - return node.kind === 248 /* ForInStatement */; + return node.kind === 249 /* ForInStatement */; } function isForOfStatement(node) { - return node.kind === 249 /* ForOfStatement */; + return node.kind === 250 /* ForOfStatement */; } function isReturnStatement(node) { - return node.kind === 252 /* ReturnStatement */; + return node.kind === 253 /* ReturnStatement */; } function isWithStatement(node) { - return node.kind === 253 /* WithStatement */; + return node.kind === 254 /* WithStatement */; } function isSwitchStatement(node) { - return node.kind === 254 /* SwitchStatement */; + return node.kind === 255 /* SwitchStatement */; } function isLabeledStatement(node) { - return node.kind === 255 /* LabeledStatement */; + return node.kind === 256 /* LabeledStatement */; } function isTryStatement(node) { - return node.kind === 257 /* TryStatement */; + return node.kind === 258 /* TryStatement */; } function isVariableDeclaration(node) { - return node.kind === 259 /* VariableDeclaration */; + return node.kind === 260 /* VariableDeclaration */; } function isVariableDeclarationList(node) { - return node.kind === 260 /* VariableDeclarationList */; + return node.kind === 261 /* VariableDeclarationList */; } function isFunctionDeclaration(node) { - return node.kind === 261 /* FunctionDeclaration */; + return node.kind === 262 /* FunctionDeclaration */; } function isClassDeclaration(node) { - return node.kind === 262 /* ClassDeclaration */; + return node.kind === 263 /* ClassDeclaration */; } function isInterfaceDeclaration(node) { - return node.kind === 263 /* InterfaceDeclaration */; + return node.kind === 264 /* InterfaceDeclaration */; } function isTypeAliasDeclaration(node) { - return node.kind === 264 /* TypeAliasDeclaration */; + return node.kind === 265 /* TypeAliasDeclaration */; } function isEnumDeclaration(node) { - return node.kind === 265 /* EnumDeclaration */; + return node.kind === 266 /* EnumDeclaration */; } function isModuleDeclaration(node) { - return node.kind === 266 /* ModuleDeclaration */; + return node.kind === 267 /* ModuleDeclaration */; } function isModuleBlock(node) { - return node.kind === 267 /* ModuleBlock */; + return node.kind === 268 /* ModuleBlock */; } function isCaseBlock(node) { - return node.kind === 268 /* CaseBlock */; + return node.kind === 269 /* CaseBlock */; } function isNamespaceExportDeclaration(node) { - return node.kind === 269 /* NamespaceExportDeclaration */; + return node.kind === 270 /* NamespaceExportDeclaration */; } function isImportEqualsDeclaration(node) { - return node.kind === 270 /* ImportEqualsDeclaration */; + return node.kind === 271 /* ImportEqualsDeclaration */; } function isImportDeclaration(node) { - return node.kind === 271 /* ImportDeclaration */; + return node.kind === 272 /* ImportDeclaration */; } function isImportClause(node) { - return node.kind === 272 /* ImportClause */; + return node.kind === 273 /* ImportClause */; } function isImportTypeAssertionContainer(node) { - return node.kind === 301 /* ImportTypeAssertionContainer */; + return node.kind === 302 /* ImportTypeAssertionContainer */; } function isAssertClause(node) { - return node.kind === 299 /* AssertClause */; + return node.kind === 300 /* AssertClause */; } function isAssertEntry(node) { - return node.kind === 300 /* AssertEntry */; + return node.kind === 301 /* AssertEntry */; } function isNamespaceImport(node) { - return node.kind === 273 /* NamespaceImport */; + return node.kind === 274 /* NamespaceImport */; } function isNamespaceExport(node) { - return node.kind === 279 /* NamespaceExport */; + return node.kind === 280 /* NamespaceExport */; } function isNamedImports(node) { - return node.kind === 274 /* NamedImports */; + return node.kind === 275 /* NamedImports */; } function isImportSpecifier(node) { - return node.kind === 275 /* ImportSpecifier */; + return node.kind === 276 /* ImportSpecifier */; } function isExportAssignment(node) { - return node.kind === 276 /* ExportAssignment */; + return node.kind === 277 /* ExportAssignment */; } function isExportDeclaration(node) { - return node.kind === 277 /* ExportDeclaration */; + return node.kind === 278 /* ExportDeclaration */; } function isNamedExports(node) { - return node.kind === 278 /* NamedExports */; + return node.kind === 279 /* NamedExports */; } function isExportSpecifier(node) { - return node.kind === 280 /* ExportSpecifier */; + return node.kind === 281 /* ExportSpecifier */; } function isNotEmittedStatement(node) { - return node.kind === 358 /* NotEmittedStatement */; + return node.kind === 359 /* NotEmittedStatement */; } function isSyntheticReference(node) { - return node.kind === 361 /* SyntheticReferenceExpression */; + return node.kind === 362 /* SyntheticReferenceExpression */; } function isExternalModuleReference(node) { - return node.kind === 282 /* ExternalModuleReference */; + return node.kind === 283 /* ExternalModuleReference */; } function isJsxElement(node) { - return node.kind === 283 /* JsxElement */; + return node.kind === 284 /* JsxElement */; } function isJsxSelfClosingElement(node) { - return node.kind === 284 /* JsxSelfClosingElement */; + return node.kind === 285 /* JsxSelfClosingElement */; } function isJsxOpeningElement(node) { - return node.kind === 285 /* JsxOpeningElement */; + return node.kind === 286 /* JsxOpeningElement */; } function isJsxClosingElement(node) { - return node.kind === 286 /* JsxClosingElement */; + return node.kind === 287 /* JsxClosingElement */; } function isJsxFragment(node) { - return node.kind === 287 /* JsxFragment */; + return node.kind === 288 /* JsxFragment */; } function isJsxOpeningFragment(node) { - return node.kind === 288 /* JsxOpeningFragment */; + return node.kind === 289 /* JsxOpeningFragment */; } function isJsxClosingFragment(node) { - return node.kind === 289 /* JsxClosingFragment */; + return node.kind === 290 /* JsxClosingFragment */; } function isJsxAttribute(node) { - return node.kind === 290 /* JsxAttribute */; + return node.kind === 291 /* JsxAttribute */; } function isJsxAttributes(node) { - return node.kind === 291 /* JsxAttributes */; + return node.kind === 292 /* JsxAttributes */; } function isJsxSpreadAttribute(node) { - return node.kind === 292 /* JsxSpreadAttribute */; + return node.kind === 293 /* JsxSpreadAttribute */; } function isJsxNamespacedName(node) { - return node.kind === 294 /* JsxNamespacedName */; + return node.kind === 295 /* JsxNamespacedName */; } function isCaseClause(node) { - return node.kind === 295 /* CaseClause */; + return node.kind === 296 /* CaseClause */; } function isDefaultClause(node) { - return node.kind === 296 /* DefaultClause */; + return node.kind === 297 /* DefaultClause */; } function isHeritageClause(node) { - return node.kind === 297 /* HeritageClause */; + return node.kind === 298 /* HeritageClause */; } function isCatchClause(node) { - return node.kind === 298 /* CatchClause */; + return node.kind === 299 /* CatchClause */; } function isPropertyAssignment(node) { - return node.kind === 302 /* PropertyAssignment */; + return node.kind === 303 /* PropertyAssignment */; } function isShorthandPropertyAssignment(node) { - return node.kind === 303 /* ShorthandPropertyAssignment */; + return node.kind === 304 /* ShorthandPropertyAssignment */; } function isSpreadAssignment(node) { - return node.kind === 304 /* SpreadAssignment */; + return node.kind === 305 /* SpreadAssignment */; } function isEnumMember(node) { - return node.kind === 305 /* EnumMember */; + return node.kind === 306 /* EnumMember */; } function isUnparsedPrepend(node) { - return node.kind === 307 /* UnparsedPrepend */; + return node.kind === 308 /* UnparsedPrepend */; } function isSourceFile(node) { - return node.kind === 311 /* SourceFile */; + return node.kind === 312 /* SourceFile */; } function isBundle(node) { - return node.kind === 312 /* Bundle */; + return node.kind === 313 /* Bundle */; } function isUnparsedSource(node) { - return node.kind === 313 /* UnparsedSource */; + return node.kind === 314 /* UnparsedSource */; } function isJSDocTypeExpression(node) { - return node.kind === 315 /* JSDocTypeExpression */; + return node.kind === 316 /* JSDocTypeExpression */; } function isJSDocNameReference(node) { - return node.kind === 316 /* JSDocNameReference */; + return node.kind === 317 /* JSDocNameReference */; } function isJSDocMemberName(node) { - return node.kind === 317 /* JSDocMemberName */; + return node.kind === 318 /* JSDocMemberName */; } function isJSDocAllType(node) { - return node.kind === 318 /* JSDocAllType */; + return node.kind === 319 /* JSDocAllType */; } function isJSDocUnknownType(node) { - return node.kind === 319 /* JSDocUnknownType */; + return node.kind === 320 /* JSDocUnknownType */; } function isJSDocNullableType(node) { - return node.kind === 320 /* JSDocNullableType */; + return node.kind === 321 /* JSDocNullableType */; } function isJSDocNonNullableType(node) { - return node.kind === 321 /* JSDocNonNullableType */; + return node.kind === 322 /* JSDocNonNullableType */; } function isJSDocOptionalType(node) { - return node.kind === 322 /* JSDocOptionalType */; + return node.kind === 323 /* JSDocOptionalType */; } function isJSDocFunctionType(node) { - return node.kind === 323 /* JSDocFunctionType */; + return node.kind === 324 /* JSDocFunctionType */; } function isJSDocVariadicType(node) { - return node.kind === 324 /* JSDocVariadicType */; + return node.kind === 325 /* JSDocVariadicType */; } function isJSDoc(node) { - return node.kind === 326 /* JSDoc */; + return node.kind === 327 /* JSDoc */; } function isJSDocTypeLiteral(node) { - return node.kind === 328 /* JSDocTypeLiteral */; + return node.kind === 329 /* JSDocTypeLiteral */; } function isJSDocSignature(node) { - return node.kind === 329 /* JSDocSignature */; + return node.kind === 330 /* JSDocSignature */; } function isJSDocAugmentsTag(node) { - return node.kind === 334 /* JSDocAugmentsTag */; + return node.kind === 335 /* JSDocAugmentsTag */; } function isJSDocClassTag(node) { - return node.kind === 338 /* JSDocClassTag */; + return node.kind === 339 /* JSDocClassTag */; } function isJSDocCallbackTag(node) { - return node.kind === 344 /* JSDocCallbackTag */; + return node.kind === 345 /* JSDocCallbackTag */; } function isJSDocPublicTag(node) { - return node.kind === 339 /* JSDocPublicTag */; + return node.kind === 340 /* JSDocPublicTag */; } function isJSDocPrivateTag(node) { - return node.kind === 340 /* JSDocPrivateTag */; + return node.kind === 341 /* JSDocPrivateTag */; } function isJSDocProtectedTag(node) { - return node.kind === 341 /* JSDocProtectedTag */; + return node.kind === 342 /* JSDocProtectedTag */; } function isJSDocReadonlyTag(node) { - return node.kind === 342 /* JSDocReadonlyTag */; + return node.kind === 343 /* JSDocReadonlyTag */; } function isJSDocOverrideTag(node) { - return node.kind === 343 /* JSDocOverrideTag */; + return node.kind === 344 /* JSDocOverrideTag */; } function isJSDocOverloadTag(node) { - return node.kind === 345 /* JSDocOverloadTag */; + return node.kind === 346 /* JSDocOverloadTag */; } function isJSDocDeprecatedTag(node) { - return node.kind === 337 /* JSDocDeprecatedTag */; + return node.kind === 338 /* JSDocDeprecatedTag */; } function isJSDocEnumTag(node) { - return node.kind === 346 /* JSDocEnumTag */; + return node.kind === 347 /* JSDocEnumTag */; } function isJSDocParameterTag(node) { - return node.kind === 347 /* JSDocParameterTag */; + return node.kind === 348 /* JSDocParameterTag */; } function isJSDocReturnTag(node) { - return node.kind === 348 /* JSDocReturnTag */; + return node.kind === 349 /* JSDocReturnTag */; } function isJSDocThisTag(node) { - return node.kind === 349 /* JSDocThisTag */; + return node.kind === 350 /* JSDocThisTag */; } function isJSDocTypeTag(node) { - return node.kind === 350 /* JSDocTypeTag */; + return node.kind === 351 /* JSDocTypeTag */; } function isJSDocTemplateTag(node) { - return node.kind === 351 /* JSDocTemplateTag */; + return node.kind === 352 /* JSDocTemplateTag */; } function isJSDocTypedefTag(node) { - return node.kind === 352 /* JSDocTypedefTag */; + return node.kind === 353 /* JSDocTypedefTag */; } function isJSDocPropertyTag(node) { - return node.kind === 354 /* JSDocPropertyTag */; + return node.kind === 355 /* JSDocPropertyTag */; } function isJSDocImplementsTag(node) { - return node.kind === 335 /* JSDocImplementsTag */; + return node.kind === 336 /* JSDocImplementsTag */; } function isJSDocSatisfiesTag(node) { - return node.kind === 356 /* JSDocSatisfiesTag */; + return node.kind === 357 /* JSDocSatisfiesTag */; } // src/compiler/factory/utilities.ts @@ -24662,14 +24892,14 @@ function createExpressionForObjectLiteralElementLike(factory2, node, property, r Debug.failBadSyntaxKind(property.name, "Private identifiers are not allowed in object literals."); } switch (property.kind) { - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return createExpressionForAccessorDeclaration(factory2, node.properties, property, receiver, !!node.multiLine); - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return createExpressionForPropertyAssignment(factory2, property, receiver); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return createExpressionForShorthandPropertyAssignment(factory2, property, receiver); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return createExpressionForMethodDeclaration(factory2, property, receiver); } } @@ -24722,7 +24952,7 @@ function startsWithUseStrict(statements) { return firstStatement !== void 0 && isPrologueDirective(firstStatement) && isUseStrictPrologue(firstStatement); } function isCommaExpression(node) { - return node.kind === 225 /* BinaryExpression */ && node.operatorToken.kind === 28 /* CommaToken */; + return node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 28 /* CommaToken */; } function isCommaSequence(node) { return isCommaExpression(node) || isCommaListExpression(node); @@ -24737,19 +24967,19 @@ function getJSDocTypeAssertionType(node) { } function isOuterExpression(node, kinds = 15 /* All */) { switch (node.kind) { - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: if (kinds & 16 /* ExcludeJSDocTypeAssertion */ && isJSDocTypeAssertion(node)) { return false; } return (kinds & 1 /* Parentheses */) !== 0; - case 215 /* TypeAssertionExpression */: - case 233 /* AsExpression */: - case 232 /* ExpressionWithTypeArguments */: - case 237 /* SatisfiesExpression */: + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: + case 233 /* ExpressionWithTypeArguments */: + case 238 /* SatisfiesExpression */: return (kinds & 2 /* TypeAssertions */) !== 0; - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: return (kinds & 4 /* NonNullAssertions */) !== 0; - case 359 /* PartiallyEmittedExpression */: + case 360 /* PartiallyEmittedExpression */: return (kinds & 8 /* PartiallyEmittedExpressions */) !== 0; } return false; @@ -24883,10 +25113,10 @@ function getLocalNameForExternalImport(factory2, node, sourceFile) { const name = namespaceDeclaration.name; return isGeneratedIdentifier(name) ? name : factory2.createIdentifier(getSourceTextOfNodeFromSourceFile(sourceFile, name) || idText(name)); } - if (node.kind === 271 /* ImportDeclaration */ && node.importClause) { + if (node.kind === 272 /* ImportDeclaration */ && node.importClause) { return factory2.getGeneratedNameForNode(node); } - if (node.kind === 277 /* ExportDeclaration */ && node.moduleSpecifier) { + if (node.kind === 278 /* ExportDeclaration */ && node.moduleSpecifier) { return factory2.getGeneratedNameForNode(node); } return void 0; @@ -24949,11 +25179,11 @@ function getTargetOfBindingOrAssignmentElement(bindingElement) { } if (isObjectLiteralElementLike(bindingElement)) { switch (bindingElement.kind) { - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return getTargetOfBindingOrAssignmentElement(bindingElement.initializer); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return bindingElement.name; - case 304 /* SpreadAssignment */: + case 305 /* SpreadAssignment */: return getTargetOfBindingOrAssignmentElement(bindingElement.expression); } return void 0; @@ -24972,11 +25202,11 @@ function getTargetOfBindingOrAssignmentElement(bindingElement) { } function getRestIndicatorOfBindingOrAssignmentElement(bindingElement) { switch (bindingElement.kind) { - case 168 /* Parameter */: - case 207 /* BindingElement */: + case 169 /* Parameter */: + case 208 /* BindingElement */: return bindingElement.dotDotDotToken; - case 229 /* SpreadElement */: - case 304 /* SpreadAssignment */: + case 230 /* SpreadElement */: + case 305 /* SpreadAssignment */: return bindingElement; } return void 0; @@ -24988,7 +25218,7 @@ function getPropertyNameOfBindingOrAssignmentElement(bindingElement) { } function tryGetPropertyNameOfBindingOrAssignmentElement(bindingElement) { switch (bindingElement.kind) { - case 207 /* BindingElement */: + case 208 /* BindingElement */: if (bindingElement.propertyName) { const propertyName = bindingElement.propertyName; if (isPrivateIdentifier(propertyName)) { @@ -24997,7 +25227,7 @@ function tryGetPropertyNameOfBindingOrAssignmentElement(bindingElement) { return isComputedPropertyName(propertyName) && isStringOrNumericLiteral(propertyName.expression) ? propertyName.expression : propertyName; } break; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: if (bindingElement.name) { const propertyName = bindingElement.name; if (isPrivateIdentifier(propertyName)) { @@ -25006,7 +25236,7 @@ function tryGetPropertyNameOfBindingOrAssignmentElement(bindingElement) { return isComputedPropertyName(propertyName) && isStringOrNumericLiteral(propertyName.expression) ? propertyName.expression : propertyName; } break; - case 304 /* SpreadAssignment */: + case 305 /* SpreadAssignment */: if (bindingElement.name && isPrivateIdentifier(bindingElement.name)) { return Debug.failBadSyntaxKind(bindingElement.name); } @@ -25023,11 +25253,11 @@ function isStringOrNumericLiteral(node) { } function getElementsOfBindingOrAssignmentPattern(name) { switch (name.kind) { - case 205 /* ObjectBindingPattern */: - case 206 /* ArrayBindingPattern */: - case 208 /* ArrayLiteralExpression */: + case 206 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: + case 209 /* ArrayLiteralExpression */: return name.elements; - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return name.properties; } } @@ -25044,15 +25274,15 @@ function getJSDocTypeAliasName(fullName) { } function canHaveIllegalTypeParameters(node) { const kind = node.kind; - return kind === 175 /* Constructor */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */; + return kind === 176 /* Constructor */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; } function canHaveIllegalDecorators(node) { const kind = node.kind; - return kind === 302 /* PropertyAssignment */ || kind === 303 /* ShorthandPropertyAssignment */ || kind === 261 /* FunctionDeclaration */ || kind === 175 /* Constructor */ || kind === 180 /* IndexSignature */ || kind === 174 /* ClassStaticBlockDeclaration */ || kind === 281 /* MissingDeclaration */ || kind === 242 /* VariableStatement */ || kind === 263 /* InterfaceDeclaration */ || kind === 264 /* TypeAliasDeclaration */ || kind === 265 /* EnumDeclaration */ || kind === 266 /* ModuleDeclaration */ || kind === 270 /* ImportEqualsDeclaration */ || kind === 271 /* ImportDeclaration */ || kind === 269 /* NamespaceExportDeclaration */ || kind === 277 /* ExportDeclaration */ || kind === 276 /* ExportAssignment */; + return kind === 303 /* PropertyAssignment */ || kind === 304 /* ShorthandPropertyAssignment */ || kind === 262 /* FunctionDeclaration */ || kind === 176 /* Constructor */ || kind === 181 /* IndexSignature */ || kind === 175 /* ClassStaticBlockDeclaration */ || kind === 282 /* MissingDeclaration */ || kind === 243 /* VariableStatement */ || kind === 264 /* InterfaceDeclaration */ || kind === 265 /* TypeAliasDeclaration */ || kind === 266 /* EnumDeclaration */ || kind === 267 /* ModuleDeclaration */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 272 /* ImportDeclaration */ || kind === 270 /* NamespaceExportDeclaration */ || kind === 278 /* ExportDeclaration */ || kind === 277 /* ExportAssignment */; } function canHaveIllegalModifiers(node) { const kind = node.kind; - return kind === 174 /* ClassStaticBlockDeclaration */ || kind === 302 /* PropertyAssignment */ || kind === 303 /* ShorthandPropertyAssignment */ || kind === 281 /* MissingDeclaration */ || kind === 269 /* NamespaceExportDeclaration */; + return kind === 175 /* ClassStaticBlockDeclaration */ || kind === 303 /* PropertyAssignment */ || kind === 304 /* ShorthandPropertyAssignment */ || kind === 282 /* MissingDeclaration */ || kind === 270 /* NamespaceExportDeclaration */; } function isQuestionOrExclamationToken(node) { return isQuestionToken(node) || isExclamationToken(node); @@ -25322,7 +25552,7 @@ function createAccessorPropertyBackingField(factory2, node, modifiers, initializ initializer ); } -function createAccessorPropertyGetRedirector(factory2, node, modifiers, name) { +function createAccessorPropertyGetRedirector(factory2, node, modifiers, name, receiver = factory2.createThis()) { return factory2.createGetAccessorDeclaration( modifiers, name, @@ -25332,7 +25562,7 @@ function createAccessorPropertyGetRedirector(factory2, node, modifiers, name) { factory2.createBlock([ factory2.createReturnStatement( factory2.createPropertyAccessExpression( - factory2.createThis(), + receiver, factory2.getGeneratedPrivateNameForNode( node.name, /*prefix*/ @@ -25344,7 +25574,7 @@ function createAccessorPropertyGetRedirector(factory2, node, modifiers, name) { ]) ); } -function createAccessorPropertySetRedirector(factory2, node, modifiers, name) { +function createAccessorPropertySetRedirector(factory2, node, modifiers, name, receiver = factory2.createThis()) { return factory2.createSetAccessorDeclaration( modifiers, name, @@ -25359,7 +25589,7 @@ function createAccessorPropertySetRedirector(factory2, node, modifiers, name) { factory2.createExpressionStatement( factory2.createAssignment( factory2.createPropertyAccessExpression( - factory2.createThis(), + receiver, factory2.getGeneratedPrivateNameForNode( node.name, /*prefix*/ @@ -25443,11 +25673,11 @@ function setTextRange(range, location) { } function canHaveModifiers(node) { const kind = node.kind; - return kind === 167 /* TypeParameter */ || kind === 168 /* Parameter */ || kind === 170 /* PropertySignature */ || kind === 171 /* PropertyDeclaration */ || kind === 172 /* MethodSignature */ || kind === 173 /* MethodDeclaration */ || kind === 175 /* Constructor */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */ || kind === 180 /* IndexSignature */ || kind === 184 /* ConstructorType */ || kind === 217 /* FunctionExpression */ || kind === 218 /* ArrowFunction */ || kind === 230 /* ClassExpression */ || kind === 242 /* VariableStatement */ || kind === 261 /* FunctionDeclaration */ || kind === 262 /* ClassDeclaration */ || kind === 263 /* InterfaceDeclaration */ || kind === 264 /* TypeAliasDeclaration */ || kind === 265 /* EnumDeclaration */ || kind === 266 /* ModuleDeclaration */ || kind === 270 /* ImportEqualsDeclaration */ || kind === 271 /* ImportDeclaration */ || kind === 276 /* ExportAssignment */ || kind === 277 /* ExportDeclaration */; + return kind === 168 /* TypeParameter */ || kind === 169 /* Parameter */ || kind === 171 /* PropertySignature */ || kind === 172 /* PropertyDeclaration */ || kind === 173 /* MethodSignature */ || kind === 174 /* MethodDeclaration */ || kind === 176 /* Constructor */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 181 /* IndexSignature */ || kind === 185 /* ConstructorType */ || kind === 218 /* FunctionExpression */ || kind === 219 /* ArrowFunction */ || kind === 231 /* ClassExpression */ || kind === 243 /* VariableStatement */ || kind === 262 /* FunctionDeclaration */ || kind === 263 /* ClassDeclaration */ || kind === 264 /* InterfaceDeclaration */ || kind === 265 /* TypeAliasDeclaration */ || kind === 266 /* EnumDeclaration */ || kind === 267 /* ModuleDeclaration */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 272 /* ImportDeclaration */ || kind === 277 /* ExportAssignment */ || kind === 278 /* ExportDeclaration */; } function canHaveDecorators(node) { const kind = node.kind; - return kind === 168 /* Parameter */ || kind === 171 /* PropertyDeclaration */ || kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */ || kind === 230 /* ClassExpression */ || kind === 262 /* ClassDeclaration */; + return kind === 169 /* Parameter */ || kind === 172 /* PropertyDeclaration */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 231 /* ClassExpression */ || kind === 263 /* ClassDeclaration */; } // src/compiler/parser.ts @@ -25490,7 +25720,7 @@ function isAnExternalModuleIndicatorNode(node) { return canHaveModifiers(node) && hasModifierOfKind(node, 95 /* ExportKeyword */) || isImportEqualsDeclaration(node) && isExternalModuleReference(node.moduleReference) || isImportDeclaration(node) || isExportAssignment(node) || isExportDeclaration(node) ? node : void 0; } function getImportMetaIfNecessary(sourceFile) { - return sourceFile.flags & 4194304 /* PossiblyContainsImportMeta */ ? walkTreeForImportMeta(sourceFile) : void 0; + return sourceFile.flags & 8388608 /* PossiblyContainsImportMeta */ ? walkTreeForImportMeta(sourceFile) : void 0; } function walkTreeForImportMeta(node) { return isImportMeta2(node) ? node : forEachChild(node, walkTreeForImportMeta); @@ -25502,428 +25732,428 @@ function isImportMeta2(node) { return isMetaProperty(node) && node.keywordToken === 102 /* ImportKeyword */ && node.name.escapedText === "meta"; } var forEachChildTable = { - [165 /* QualifiedName */]: function forEachChildInQualifiedName(node, cbNode, _cbNodes) { + [166 /* QualifiedName */]: function forEachChildInQualifiedName(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.left) || visitNode2(cbNode, node.right); }, - [167 /* TypeParameter */]: function forEachChildInTypeParameter(node, cbNode, cbNodes) { + [168 /* TypeParameter */]: function forEachChildInTypeParameter(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.constraint) || visitNode2(cbNode, node.default) || visitNode2(cbNode, node.expression); }, - [303 /* ShorthandPropertyAssignment */]: function forEachChildInShorthandPropertyAssignment(node, cbNode, cbNodes) { + [304 /* ShorthandPropertyAssignment */]: function forEachChildInShorthandPropertyAssignment(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.equalsToken) || visitNode2(cbNode, node.objectAssignmentInitializer); }, - [304 /* SpreadAssignment */]: function forEachChildInSpreadAssignment(node, cbNode, _cbNodes) { + [305 /* SpreadAssignment */]: function forEachChildInSpreadAssignment(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [168 /* Parameter */]: function forEachChildInParameter(node, cbNode, cbNodes) { + [169 /* Parameter */]: function forEachChildInParameter(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.dotDotDotToken) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.initializer); }, - [171 /* PropertyDeclaration */]: function forEachChildInPropertyDeclaration(node, cbNode, cbNodes) { + [172 /* PropertyDeclaration */]: function forEachChildInPropertyDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.initializer); }, - [170 /* PropertySignature */]: function forEachChildInPropertySignature(node, cbNode, cbNodes) { + [171 /* PropertySignature */]: function forEachChildInPropertySignature(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.initializer); }, - [302 /* PropertyAssignment */]: function forEachChildInPropertyAssignment(node, cbNode, cbNodes) { + [303 /* PropertyAssignment */]: function forEachChildInPropertyAssignment(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.initializer); }, - [259 /* VariableDeclaration */]: function forEachChildInVariableDeclaration(node, cbNode, _cbNodes) { + [260 /* VariableDeclaration */]: function forEachChildInVariableDeclaration(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.initializer); }, - [207 /* BindingElement */]: function forEachChildInBindingElement(node, cbNode, _cbNodes) { + [208 /* BindingElement */]: function forEachChildInBindingElement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.dotDotDotToken) || visitNode2(cbNode, node.propertyName) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.initializer); }, - [180 /* IndexSignature */]: function forEachChildInIndexSignature(node, cbNode, cbNodes) { + [181 /* IndexSignature */]: function forEachChildInIndexSignature(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); }, - [184 /* ConstructorType */]: function forEachChildInConstructorType(node, cbNode, cbNodes) { + [185 /* ConstructorType */]: function forEachChildInConstructorType(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); }, - [183 /* FunctionType */]: function forEachChildInFunctionType(node, cbNode, cbNodes) { + [184 /* FunctionType */]: function forEachChildInFunctionType(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); }, - [178 /* CallSignature */]: forEachChildInCallOrConstructSignature, - [179 /* ConstructSignature */]: forEachChildInCallOrConstructSignature, - [173 /* MethodDeclaration */]: function forEachChildInMethodDeclaration(node, cbNode, cbNodes) { + [179 /* CallSignature */]: forEachChildInCallOrConstructSignature, + [180 /* ConstructSignature */]: forEachChildInCallOrConstructSignature, + [174 /* MethodDeclaration */]: function forEachChildInMethodDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.asteriskToken) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); }, - [172 /* MethodSignature */]: function forEachChildInMethodSignature(node, cbNode, cbNodes) { + [173 /* MethodSignature */]: function forEachChildInMethodSignature(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); }, - [175 /* Constructor */]: function forEachChildInConstructor(node, cbNode, cbNodes) { + [176 /* Constructor */]: function forEachChildInConstructor(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); }, - [176 /* GetAccessor */]: function forEachChildInGetAccessor(node, cbNode, cbNodes) { + [177 /* GetAccessor */]: function forEachChildInGetAccessor(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); }, - [177 /* SetAccessor */]: function forEachChildInSetAccessor(node, cbNode, cbNodes) { + [178 /* SetAccessor */]: function forEachChildInSetAccessor(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); }, - [261 /* FunctionDeclaration */]: function forEachChildInFunctionDeclaration(node, cbNode, cbNodes) { + [262 /* FunctionDeclaration */]: function forEachChildInFunctionDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.asteriskToken) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); }, - [217 /* FunctionExpression */]: function forEachChildInFunctionExpression(node, cbNode, cbNodes) { + [218 /* FunctionExpression */]: function forEachChildInFunctionExpression(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.asteriskToken) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); }, - [218 /* ArrowFunction */]: function forEachChildInArrowFunction(node, cbNode, cbNodes) { + [219 /* ArrowFunction */]: function forEachChildInArrowFunction(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.equalsGreaterThanToken) || visitNode2(cbNode, node.body); }, - [174 /* ClassStaticBlockDeclaration */]: function forEachChildInClassStaticBlockDeclaration(node, cbNode, cbNodes) { + [175 /* ClassStaticBlockDeclaration */]: function forEachChildInClassStaticBlockDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.body); }, - [182 /* TypeReference */]: function forEachChildInTypeReference(node, cbNode, cbNodes) { + [183 /* TypeReference */]: function forEachChildInTypeReference(node, cbNode, cbNodes) { return visitNode2(cbNode, node.typeName) || visitNodes(cbNode, cbNodes, node.typeArguments); }, - [181 /* TypePredicate */]: function forEachChildInTypePredicate(node, cbNode, _cbNodes) { + [182 /* TypePredicate */]: function forEachChildInTypePredicate(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.assertsModifier) || visitNode2(cbNode, node.parameterName) || visitNode2(cbNode, node.type); }, - [185 /* TypeQuery */]: function forEachChildInTypeQuery(node, cbNode, cbNodes) { + [186 /* TypeQuery */]: function forEachChildInTypeQuery(node, cbNode, cbNodes) { return visitNode2(cbNode, node.exprName) || visitNodes(cbNode, cbNodes, node.typeArguments); }, - [186 /* TypeLiteral */]: function forEachChildInTypeLiteral(node, cbNode, cbNodes) { + [187 /* TypeLiteral */]: function forEachChildInTypeLiteral(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.members); }, - [187 /* ArrayType */]: function forEachChildInArrayType(node, cbNode, _cbNodes) { + [188 /* ArrayType */]: function forEachChildInArrayType(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.elementType); }, - [188 /* TupleType */]: function forEachChildInTupleType(node, cbNode, cbNodes) { + [189 /* TupleType */]: function forEachChildInTupleType(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.elements); }, - [191 /* UnionType */]: forEachChildInUnionOrIntersectionType, - [192 /* IntersectionType */]: forEachChildInUnionOrIntersectionType, - [193 /* ConditionalType */]: function forEachChildInConditionalType(node, cbNode, _cbNodes) { + [192 /* UnionType */]: forEachChildInUnionOrIntersectionType, + [193 /* IntersectionType */]: forEachChildInUnionOrIntersectionType, + [194 /* ConditionalType */]: function forEachChildInConditionalType(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.checkType) || visitNode2(cbNode, node.extendsType) || visitNode2(cbNode, node.trueType) || visitNode2(cbNode, node.falseType); }, - [194 /* InferType */]: function forEachChildInInferType(node, cbNode, _cbNodes) { + [195 /* InferType */]: function forEachChildInInferType(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.typeParameter); }, - [204 /* ImportType */]: function forEachChildInImportType(node, cbNode, cbNodes) { + [205 /* ImportType */]: function forEachChildInImportType(node, cbNode, cbNodes) { return visitNode2(cbNode, node.argument) || visitNode2(cbNode, node.assertions) || visitNode2(cbNode, node.qualifier) || visitNodes(cbNode, cbNodes, node.typeArguments); }, - [301 /* ImportTypeAssertionContainer */]: function forEachChildInImportTypeAssertionContainer(node, cbNode, _cbNodes) { + [302 /* ImportTypeAssertionContainer */]: function forEachChildInImportTypeAssertionContainer(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.assertClause); }, - [195 /* ParenthesizedType */]: forEachChildInParenthesizedTypeOrTypeOperator, - [197 /* TypeOperator */]: forEachChildInParenthesizedTypeOrTypeOperator, - [198 /* IndexedAccessType */]: function forEachChildInIndexedAccessType(node, cbNode, _cbNodes) { + [196 /* ParenthesizedType */]: forEachChildInParenthesizedTypeOrTypeOperator, + [198 /* TypeOperator */]: forEachChildInParenthesizedTypeOrTypeOperator, + [199 /* IndexedAccessType */]: function forEachChildInIndexedAccessType(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.objectType) || visitNode2(cbNode, node.indexType); }, - [199 /* MappedType */]: function forEachChildInMappedType(node, cbNode, cbNodes) { + [200 /* MappedType */]: function forEachChildInMappedType(node, cbNode, cbNodes) { return visitNode2(cbNode, node.readonlyToken) || visitNode2(cbNode, node.typeParameter) || visitNode2(cbNode, node.nameType) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.type) || visitNodes(cbNode, cbNodes, node.members); }, - [200 /* LiteralType */]: function forEachChildInLiteralType(node, cbNode, _cbNodes) { + [201 /* LiteralType */]: function forEachChildInLiteralType(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.literal); }, - [201 /* NamedTupleMember */]: function forEachChildInNamedTupleMember(node, cbNode, _cbNodes) { + [202 /* NamedTupleMember */]: function forEachChildInNamedTupleMember(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.dotDotDotToken) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.type); }, - [205 /* ObjectBindingPattern */]: forEachChildInObjectOrArrayBindingPattern, - [206 /* ArrayBindingPattern */]: forEachChildInObjectOrArrayBindingPattern, - [208 /* ArrayLiteralExpression */]: function forEachChildInArrayLiteralExpression(node, cbNode, cbNodes) { + [206 /* ObjectBindingPattern */]: forEachChildInObjectOrArrayBindingPattern, + [207 /* ArrayBindingPattern */]: forEachChildInObjectOrArrayBindingPattern, + [209 /* ArrayLiteralExpression */]: function forEachChildInArrayLiteralExpression(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.elements); }, - [209 /* ObjectLiteralExpression */]: function forEachChildInObjectLiteralExpression(node, cbNode, cbNodes) { + [210 /* ObjectLiteralExpression */]: function forEachChildInObjectLiteralExpression(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.properties); }, - [210 /* PropertyAccessExpression */]: function forEachChildInPropertyAccessExpression(node, cbNode, _cbNodes) { + [211 /* PropertyAccessExpression */]: function forEachChildInPropertyAccessExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.questionDotToken) || visitNode2(cbNode, node.name); }, - [211 /* ElementAccessExpression */]: function forEachChildInElementAccessExpression(node, cbNode, _cbNodes) { + [212 /* ElementAccessExpression */]: function forEachChildInElementAccessExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.questionDotToken) || visitNode2(cbNode, node.argumentExpression); }, - [212 /* CallExpression */]: forEachChildInCallOrNewExpression, - [213 /* NewExpression */]: forEachChildInCallOrNewExpression, - [214 /* TaggedTemplateExpression */]: function forEachChildInTaggedTemplateExpression(node, cbNode, cbNodes) { + [213 /* CallExpression */]: forEachChildInCallOrNewExpression, + [214 /* NewExpression */]: forEachChildInCallOrNewExpression, + [215 /* TaggedTemplateExpression */]: function forEachChildInTaggedTemplateExpression(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tag) || visitNode2(cbNode, node.questionDotToken) || visitNodes(cbNode, cbNodes, node.typeArguments) || visitNode2(cbNode, node.template); }, - [215 /* TypeAssertionExpression */]: function forEachChildInTypeAssertionExpression(node, cbNode, _cbNodes) { + [216 /* TypeAssertionExpression */]: function forEachChildInTypeAssertionExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.type) || visitNode2(cbNode, node.expression); }, - [216 /* ParenthesizedExpression */]: function forEachChildInParenthesizedExpression(node, cbNode, _cbNodes) { + [217 /* ParenthesizedExpression */]: function forEachChildInParenthesizedExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [219 /* DeleteExpression */]: function forEachChildInDeleteExpression(node, cbNode, _cbNodes) { + [220 /* DeleteExpression */]: function forEachChildInDeleteExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [220 /* TypeOfExpression */]: function forEachChildInTypeOfExpression(node, cbNode, _cbNodes) { + [221 /* TypeOfExpression */]: function forEachChildInTypeOfExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [221 /* VoidExpression */]: function forEachChildInVoidExpression(node, cbNode, _cbNodes) { + [222 /* VoidExpression */]: function forEachChildInVoidExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [223 /* PrefixUnaryExpression */]: function forEachChildInPrefixUnaryExpression(node, cbNode, _cbNodes) { + [224 /* PrefixUnaryExpression */]: function forEachChildInPrefixUnaryExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.operand); }, - [228 /* YieldExpression */]: function forEachChildInYieldExpression(node, cbNode, _cbNodes) { + [229 /* YieldExpression */]: function forEachChildInYieldExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.asteriskToken) || visitNode2(cbNode, node.expression); }, - [222 /* AwaitExpression */]: function forEachChildInAwaitExpression(node, cbNode, _cbNodes) { + [223 /* AwaitExpression */]: function forEachChildInAwaitExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [224 /* PostfixUnaryExpression */]: function forEachChildInPostfixUnaryExpression(node, cbNode, _cbNodes) { + [225 /* PostfixUnaryExpression */]: function forEachChildInPostfixUnaryExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.operand); }, - [225 /* BinaryExpression */]: function forEachChildInBinaryExpression(node, cbNode, _cbNodes) { + [226 /* BinaryExpression */]: function forEachChildInBinaryExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.left) || visitNode2(cbNode, node.operatorToken) || visitNode2(cbNode, node.right); }, - [233 /* AsExpression */]: function forEachChildInAsExpression(node, cbNode, _cbNodes) { + [234 /* AsExpression */]: function forEachChildInAsExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.type); }, - [234 /* NonNullExpression */]: function forEachChildInNonNullExpression(node, cbNode, _cbNodes) { + [235 /* NonNullExpression */]: function forEachChildInNonNullExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [237 /* SatisfiesExpression */]: function forEachChildInSatisfiesExpression(node, cbNode, _cbNodes) { + [238 /* SatisfiesExpression */]: function forEachChildInSatisfiesExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.type); }, - [235 /* MetaProperty */]: function forEachChildInMetaProperty(node, cbNode, _cbNodes) { + [236 /* MetaProperty */]: function forEachChildInMetaProperty(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name); }, - [226 /* ConditionalExpression */]: function forEachChildInConditionalExpression(node, cbNode, _cbNodes) { + [227 /* ConditionalExpression */]: function forEachChildInConditionalExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.condition) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.whenTrue) || visitNode2(cbNode, node.colonToken) || visitNode2(cbNode, node.whenFalse); }, - [229 /* SpreadElement */]: function forEachChildInSpreadElement(node, cbNode, _cbNodes) { + [230 /* SpreadElement */]: function forEachChildInSpreadElement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [240 /* Block */]: forEachChildInBlock, - [267 /* ModuleBlock */]: forEachChildInBlock, - [311 /* SourceFile */]: function forEachChildInSourceFile(node, cbNode, cbNodes) { + [241 /* Block */]: forEachChildInBlock, + [268 /* ModuleBlock */]: forEachChildInBlock, + [312 /* SourceFile */]: function forEachChildInSourceFile(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.statements) || visitNode2(cbNode, node.endOfFileToken); }, - [242 /* VariableStatement */]: function forEachChildInVariableStatement(node, cbNode, cbNodes) { + [243 /* VariableStatement */]: function forEachChildInVariableStatement(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.declarationList); }, - [260 /* VariableDeclarationList */]: function forEachChildInVariableDeclarationList(node, cbNode, cbNodes) { + [261 /* VariableDeclarationList */]: function forEachChildInVariableDeclarationList(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.declarations); }, - [243 /* ExpressionStatement */]: function forEachChildInExpressionStatement(node, cbNode, _cbNodes) { + [244 /* ExpressionStatement */]: function forEachChildInExpressionStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [244 /* IfStatement */]: function forEachChildInIfStatement(node, cbNode, _cbNodes) { + [245 /* IfStatement */]: function forEachChildInIfStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.thenStatement) || visitNode2(cbNode, node.elseStatement); }, - [245 /* DoStatement */]: function forEachChildInDoStatement(node, cbNode, _cbNodes) { + [246 /* DoStatement */]: function forEachChildInDoStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.statement) || visitNode2(cbNode, node.expression); }, - [246 /* WhileStatement */]: function forEachChildInWhileStatement(node, cbNode, _cbNodes) { + [247 /* WhileStatement */]: function forEachChildInWhileStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.statement); }, - [247 /* ForStatement */]: function forEachChildInForStatement(node, cbNode, _cbNodes) { + [248 /* ForStatement */]: function forEachChildInForStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.initializer) || visitNode2(cbNode, node.condition) || visitNode2(cbNode, node.incrementor) || visitNode2(cbNode, node.statement); }, - [248 /* ForInStatement */]: function forEachChildInForInStatement(node, cbNode, _cbNodes) { + [249 /* ForInStatement */]: function forEachChildInForInStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.initializer) || visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.statement); }, - [249 /* ForOfStatement */]: function forEachChildInForOfStatement(node, cbNode, _cbNodes) { + [250 /* ForOfStatement */]: function forEachChildInForOfStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.awaitModifier) || visitNode2(cbNode, node.initializer) || visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.statement); }, - [250 /* ContinueStatement */]: forEachChildInContinueOrBreakStatement, - [251 /* BreakStatement */]: forEachChildInContinueOrBreakStatement, - [252 /* ReturnStatement */]: function forEachChildInReturnStatement(node, cbNode, _cbNodes) { + [251 /* ContinueStatement */]: forEachChildInContinueOrBreakStatement, + [252 /* BreakStatement */]: forEachChildInContinueOrBreakStatement, + [253 /* ReturnStatement */]: function forEachChildInReturnStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [253 /* WithStatement */]: function forEachChildInWithStatement(node, cbNode, _cbNodes) { + [254 /* WithStatement */]: function forEachChildInWithStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.statement); }, - [254 /* SwitchStatement */]: function forEachChildInSwitchStatement(node, cbNode, _cbNodes) { + [255 /* SwitchStatement */]: function forEachChildInSwitchStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.caseBlock); }, - [268 /* CaseBlock */]: function forEachChildInCaseBlock(node, cbNode, cbNodes) { + [269 /* CaseBlock */]: function forEachChildInCaseBlock(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.clauses); }, - [295 /* CaseClause */]: function forEachChildInCaseClause(node, cbNode, cbNodes) { + [296 /* CaseClause */]: function forEachChildInCaseClause(node, cbNode, cbNodes) { return visitNode2(cbNode, node.expression) || visitNodes(cbNode, cbNodes, node.statements); }, - [296 /* DefaultClause */]: function forEachChildInDefaultClause(node, cbNode, cbNodes) { + [297 /* DefaultClause */]: function forEachChildInDefaultClause(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.statements); }, - [255 /* LabeledStatement */]: function forEachChildInLabeledStatement(node, cbNode, _cbNodes) { + [256 /* LabeledStatement */]: function forEachChildInLabeledStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.label) || visitNode2(cbNode, node.statement); }, - [256 /* ThrowStatement */]: function forEachChildInThrowStatement(node, cbNode, _cbNodes) { + [257 /* ThrowStatement */]: function forEachChildInThrowStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [257 /* TryStatement */]: function forEachChildInTryStatement(node, cbNode, _cbNodes) { + [258 /* TryStatement */]: function forEachChildInTryStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.tryBlock) || visitNode2(cbNode, node.catchClause) || visitNode2(cbNode, node.finallyBlock); }, - [298 /* CatchClause */]: function forEachChildInCatchClause(node, cbNode, _cbNodes) { + [299 /* CatchClause */]: function forEachChildInCatchClause(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.variableDeclaration) || visitNode2(cbNode, node.block); }, - [169 /* Decorator */]: function forEachChildInDecorator(node, cbNode, _cbNodes) { + [170 /* Decorator */]: function forEachChildInDecorator(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [262 /* ClassDeclaration */]: forEachChildInClassDeclarationOrExpression, - [230 /* ClassExpression */]: forEachChildInClassDeclarationOrExpression, - [263 /* InterfaceDeclaration */]: function forEachChildInInterfaceDeclaration(node, cbNode, cbNodes) { + [263 /* ClassDeclaration */]: forEachChildInClassDeclarationOrExpression, + [231 /* ClassExpression */]: forEachChildInClassDeclarationOrExpression, + [264 /* InterfaceDeclaration */]: function forEachChildInInterfaceDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.heritageClauses) || visitNodes(cbNode, cbNodes, node.members); }, - [264 /* TypeAliasDeclaration */]: function forEachChildInTypeAliasDeclaration(node, cbNode, cbNodes) { + [265 /* TypeAliasDeclaration */]: function forEachChildInTypeAliasDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNode2(cbNode, node.type); }, - [265 /* EnumDeclaration */]: function forEachChildInEnumDeclaration(node, cbNode, cbNodes) { + [266 /* EnumDeclaration */]: function forEachChildInEnumDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.members); }, - [305 /* EnumMember */]: function forEachChildInEnumMember(node, cbNode, _cbNodes) { + [306 /* EnumMember */]: function forEachChildInEnumMember(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.initializer); }, - [266 /* ModuleDeclaration */]: function forEachChildInModuleDeclaration(node, cbNode, cbNodes) { + [267 /* ModuleDeclaration */]: function forEachChildInModuleDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.body); }, - [270 /* ImportEqualsDeclaration */]: function forEachChildInImportEqualsDeclaration(node, cbNode, cbNodes) { + [271 /* ImportEqualsDeclaration */]: function forEachChildInImportEqualsDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.moduleReference); }, - [271 /* ImportDeclaration */]: function forEachChildInImportDeclaration(node, cbNode, cbNodes) { + [272 /* ImportDeclaration */]: function forEachChildInImportDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.importClause) || visitNode2(cbNode, node.moduleSpecifier) || visitNode2(cbNode, node.assertClause); }, - [272 /* ImportClause */]: function forEachChildInImportClause(node, cbNode, _cbNodes) { + [273 /* ImportClause */]: function forEachChildInImportClause(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.namedBindings); }, - [299 /* AssertClause */]: function forEachChildInAssertClause(node, cbNode, cbNodes) { + [300 /* AssertClause */]: function forEachChildInAssertClause(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.elements); }, - [300 /* AssertEntry */]: function forEachChildInAssertEntry(node, cbNode, _cbNodes) { + [301 /* AssertEntry */]: function forEachChildInAssertEntry(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.value); }, - [269 /* NamespaceExportDeclaration */]: function forEachChildInNamespaceExportDeclaration(node, cbNode, cbNodes) { + [270 /* NamespaceExportDeclaration */]: function forEachChildInNamespaceExportDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name); }, - [273 /* NamespaceImport */]: function forEachChildInNamespaceImport(node, cbNode, _cbNodes) { + [274 /* NamespaceImport */]: function forEachChildInNamespaceImport(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name); }, - [279 /* NamespaceExport */]: function forEachChildInNamespaceExport(node, cbNode, _cbNodes) { + [280 /* NamespaceExport */]: function forEachChildInNamespaceExport(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name); }, - [274 /* NamedImports */]: forEachChildInNamedImportsOrExports, - [278 /* NamedExports */]: forEachChildInNamedImportsOrExports, - [277 /* ExportDeclaration */]: function forEachChildInExportDeclaration(node, cbNode, cbNodes) { + [275 /* NamedImports */]: forEachChildInNamedImportsOrExports, + [279 /* NamedExports */]: forEachChildInNamedImportsOrExports, + [278 /* ExportDeclaration */]: function forEachChildInExportDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.exportClause) || visitNode2(cbNode, node.moduleSpecifier) || visitNode2(cbNode, node.assertClause); }, - [275 /* ImportSpecifier */]: forEachChildInImportOrExportSpecifier, - [280 /* ExportSpecifier */]: forEachChildInImportOrExportSpecifier, - [276 /* ExportAssignment */]: function forEachChildInExportAssignment(node, cbNode, cbNodes) { + [276 /* ImportSpecifier */]: forEachChildInImportOrExportSpecifier, + [281 /* ExportSpecifier */]: forEachChildInImportOrExportSpecifier, + [277 /* ExportAssignment */]: function forEachChildInExportAssignment(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.expression); }, - [227 /* TemplateExpression */]: function forEachChildInTemplateExpression(node, cbNode, cbNodes) { + [228 /* TemplateExpression */]: function forEachChildInTemplateExpression(node, cbNode, cbNodes) { return visitNode2(cbNode, node.head) || visitNodes(cbNode, cbNodes, node.templateSpans); }, - [238 /* TemplateSpan */]: function forEachChildInTemplateSpan(node, cbNode, _cbNodes) { + [239 /* TemplateSpan */]: function forEachChildInTemplateSpan(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.literal); }, - [202 /* TemplateLiteralType */]: function forEachChildInTemplateLiteralType(node, cbNode, cbNodes) { + [203 /* TemplateLiteralType */]: function forEachChildInTemplateLiteralType(node, cbNode, cbNodes) { return visitNode2(cbNode, node.head) || visitNodes(cbNode, cbNodes, node.templateSpans); }, - [203 /* TemplateLiteralTypeSpan */]: function forEachChildInTemplateLiteralTypeSpan(node, cbNode, _cbNodes) { + [204 /* TemplateLiteralTypeSpan */]: function forEachChildInTemplateLiteralTypeSpan(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.type) || visitNode2(cbNode, node.literal); }, - [166 /* ComputedPropertyName */]: function forEachChildInComputedPropertyName(node, cbNode, _cbNodes) { + [167 /* ComputedPropertyName */]: function forEachChildInComputedPropertyName(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [297 /* HeritageClause */]: function forEachChildInHeritageClause(node, cbNode, cbNodes) { + [298 /* HeritageClause */]: function forEachChildInHeritageClause(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.types); }, - [232 /* ExpressionWithTypeArguments */]: function forEachChildInExpressionWithTypeArguments(node, cbNode, cbNodes) { + [233 /* ExpressionWithTypeArguments */]: function forEachChildInExpressionWithTypeArguments(node, cbNode, cbNodes) { return visitNode2(cbNode, node.expression) || visitNodes(cbNode, cbNodes, node.typeArguments); }, - [282 /* ExternalModuleReference */]: function forEachChildInExternalModuleReference(node, cbNode, _cbNodes) { + [283 /* ExternalModuleReference */]: function forEachChildInExternalModuleReference(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [281 /* MissingDeclaration */]: function forEachChildInMissingDeclaration(node, cbNode, cbNodes) { + [282 /* MissingDeclaration */]: function forEachChildInMissingDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers); }, - [360 /* CommaListExpression */]: function forEachChildInCommaListExpression(node, cbNode, cbNodes) { + [361 /* CommaListExpression */]: function forEachChildInCommaListExpression(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.elements); }, - [283 /* JsxElement */]: function forEachChildInJsxElement(node, cbNode, cbNodes) { + [284 /* JsxElement */]: function forEachChildInJsxElement(node, cbNode, cbNodes) { return visitNode2(cbNode, node.openingElement) || visitNodes(cbNode, cbNodes, node.children) || visitNode2(cbNode, node.closingElement); }, - [287 /* JsxFragment */]: function forEachChildInJsxFragment(node, cbNode, cbNodes) { + [288 /* JsxFragment */]: function forEachChildInJsxFragment(node, cbNode, cbNodes) { return visitNode2(cbNode, node.openingFragment) || visitNodes(cbNode, cbNodes, node.children) || visitNode2(cbNode, node.closingFragment); }, - [284 /* JsxSelfClosingElement */]: forEachChildInJsxOpeningOrSelfClosingElement, - [285 /* JsxOpeningElement */]: forEachChildInJsxOpeningOrSelfClosingElement, - [291 /* JsxAttributes */]: function forEachChildInJsxAttributes(node, cbNode, cbNodes) { + [285 /* JsxSelfClosingElement */]: forEachChildInJsxOpeningOrSelfClosingElement, + [286 /* JsxOpeningElement */]: forEachChildInJsxOpeningOrSelfClosingElement, + [292 /* JsxAttributes */]: function forEachChildInJsxAttributes(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.properties); }, - [290 /* JsxAttribute */]: function forEachChildInJsxAttribute(node, cbNode, _cbNodes) { + [291 /* JsxAttribute */]: function forEachChildInJsxAttribute(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.initializer); }, - [292 /* JsxSpreadAttribute */]: function forEachChildInJsxSpreadAttribute(node, cbNode, _cbNodes) { + [293 /* JsxSpreadAttribute */]: function forEachChildInJsxSpreadAttribute(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [293 /* JsxExpression */]: function forEachChildInJsxExpression(node, cbNode, _cbNodes) { + [294 /* JsxExpression */]: function forEachChildInJsxExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.dotDotDotToken) || visitNode2(cbNode, node.expression); }, - [286 /* JsxClosingElement */]: function forEachChildInJsxClosingElement(node, cbNode, _cbNodes) { + [287 /* JsxClosingElement */]: function forEachChildInJsxClosingElement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.tagName); }, - [294 /* JsxNamespacedName */]: function forEachChildInJsxNamespacedName(node, cbNode, _cbNodes) { + [295 /* JsxNamespacedName */]: function forEachChildInJsxNamespacedName(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.namespace) || visitNode2(cbNode, node.name); }, - [189 /* OptionalType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [190 /* RestType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [315 /* JSDocTypeExpression */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [321 /* JSDocNonNullableType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [320 /* JSDocNullableType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [322 /* JSDocOptionalType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [324 /* JSDocVariadicType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [323 /* JSDocFunctionType */]: function forEachChildInJSDocFunctionType(node, cbNode, cbNodes) { + [190 /* OptionalType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [191 /* RestType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [316 /* JSDocTypeExpression */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [322 /* JSDocNonNullableType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [321 /* JSDocNullableType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [323 /* JSDocOptionalType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [325 /* JSDocVariadicType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [324 /* JSDocFunctionType */]: function forEachChildInJSDocFunctionType(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); }, - [326 /* JSDoc */]: function forEachChildInJSDoc(node, cbNode, cbNodes) { + [327 /* JSDoc */]: function forEachChildInJSDoc(node, cbNode, cbNodes) { return (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)) || visitNodes(cbNode, cbNodes, node.tags); }, - [353 /* JSDocSeeTag */]: function forEachChildInJSDocSeeTag(node, cbNode, cbNodes) { + [354 /* JSDocSeeTag */]: function forEachChildInJSDocSeeTag(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.name) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); }, - [316 /* JSDocNameReference */]: function forEachChildInJSDocNameReference(node, cbNode, _cbNodes) { + [317 /* JSDocNameReference */]: function forEachChildInJSDocNameReference(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name); }, - [317 /* JSDocMemberName */]: function forEachChildInJSDocMemberName(node, cbNode, _cbNodes) { + [318 /* JSDocMemberName */]: function forEachChildInJSDocMemberName(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.left) || visitNode2(cbNode, node.right); }, - [347 /* JSDocParameterTag */]: forEachChildInJSDocParameterOrPropertyTag, - [354 /* JSDocPropertyTag */]: forEachChildInJSDocParameterOrPropertyTag, - [336 /* JSDocAuthorTag */]: function forEachChildInJSDocAuthorTag(node, cbNode, cbNodes) { + [348 /* JSDocParameterTag */]: forEachChildInJSDocParameterOrPropertyTag, + [355 /* JSDocPropertyTag */]: forEachChildInJSDocParameterOrPropertyTag, + [337 /* JSDocAuthorTag */]: function forEachChildInJSDocAuthorTag(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tagName) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); }, - [335 /* JSDocImplementsTag */]: function forEachChildInJSDocImplementsTag(node, cbNode, cbNodes) { + [336 /* JSDocImplementsTag */]: function forEachChildInJSDocImplementsTag(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.class) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); }, - [334 /* JSDocAugmentsTag */]: function forEachChildInJSDocAugmentsTag(node, cbNode, cbNodes) { + [335 /* JSDocAugmentsTag */]: function forEachChildInJSDocAugmentsTag(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.class) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); }, - [351 /* JSDocTemplateTag */]: function forEachChildInJSDocTemplateTag(node, cbNode, cbNodes) { + [352 /* JSDocTemplateTag */]: function forEachChildInJSDocTemplateTag(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.constraint) || visitNodes(cbNode, cbNodes, node.typeParameters) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); }, - [352 /* JSDocTypedefTag */]: function forEachChildInJSDocTypedefTag(node, cbNode, cbNodes) { - return visitNode2(cbNode, node.tagName) || (node.typeExpression && node.typeExpression.kind === 315 /* JSDocTypeExpression */ ? visitNode2(cbNode, node.typeExpression) || visitNode2(cbNode, node.fullName) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)) : visitNode2(cbNode, node.fullName) || visitNode2(cbNode, node.typeExpression) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment))); + [353 /* JSDocTypedefTag */]: function forEachChildInJSDocTypedefTag(node, cbNode, cbNodes) { + return visitNode2(cbNode, node.tagName) || (node.typeExpression && node.typeExpression.kind === 316 /* JSDocTypeExpression */ ? visitNode2(cbNode, node.typeExpression) || visitNode2(cbNode, node.fullName) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)) : visitNode2(cbNode, node.fullName) || visitNode2(cbNode, node.typeExpression) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment))); }, - [344 /* JSDocCallbackTag */]: function forEachChildInJSDocCallbackTag(node, cbNode, cbNodes) { + [345 /* JSDocCallbackTag */]: function forEachChildInJSDocCallbackTag(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.fullName) || visitNode2(cbNode, node.typeExpression) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); }, - [348 /* JSDocReturnTag */]: forEachChildInJSDocTypeLikeTag, - [350 /* JSDocTypeTag */]: forEachChildInJSDocTypeLikeTag, - [349 /* JSDocThisTag */]: forEachChildInJSDocTypeLikeTag, - [346 /* JSDocEnumTag */]: forEachChildInJSDocTypeLikeTag, - [356 /* JSDocSatisfiesTag */]: forEachChildInJSDocTypeLikeTag, - [355 /* JSDocThrowsTag */]: forEachChildInJSDocTypeLikeTag, - [345 /* JSDocOverloadTag */]: forEachChildInJSDocTypeLikeTag, - [329 /* JSDocSignature */]: function forEachChildInJSDocSignature(node, cbNode, _cbNodes) { + [349 /* JSDocReturnTag */]: forEachChildInJSDocTypeLikeTag, + [351 /* JSDocTypeTag */]: forEachChildInJSDocTypeLikeTag, + [350 /* JSDocThisTag */]: forEachChildInJSDocTypeLikeTag, + [347 /* JSDocEnumTag */]: forEachChildInJSDocTypeLikeTag, + [357 /* JSDocSatisfiesTag */]: forEachChildInJSDocTypeLikeTag, + [356 /* JSDocThrowsTag */]: forEachChildInJSDocTypeLikeTag, + [346 /* JSDocOverloadTag */]: forEachChildInJSDocTypeLikeTag, + [330 /* JSDocSignature */]: function forEachChildInJSDocSignature(node, cbNode, _cbNodes) { return forEach(node.typeParameters, cbNode) || forEach(node.parameters, cbNode) || visitNode2(cbNode, node.type); }, - [330 /* JSDocLink */]: forEachChildInJSDocLinkCodeOrPlain, - [331 /* JSDocLinkCode */]: forEachChildInJSDocLinkCodeOrPlain, - [332 /* JSDocLinkPlain */]: forEachChildInJSDocLinkCodeOrPlain, - [328 /* JSDocTypeLiteral */]: function forEachChildInJSDocTypeLiteral(node, cbNode, _cbNodes) { + [331 /* JSDocLink */]: forEachChildInJSDocLinkCodeOrPlain, + [332 /* JSDocLinkCode */]: forEachChildInJSDocLinkCodeOrPlain, + [333 /* JSDocLinkPlain */]: forEachChildInJSDocLinkCodeOrPlain, + [329 /* JSDocTypeLiteral */]: function forEachChildInJSDocTypeLiteral(node, cbNode, _cbNodes) { return forEach(node.jsDocPropertyTags, cbNode); }, - [333 /* JSDocTag */]: forEachChildInJSDocTag, - [338 /* JSDocClassTag */]: forEachChildInJSDocTag, - [339 /* JSDocPublicTag */]: forEachChildInJSDocTag, - [340 /* JSDocPrivateTag */]: forEachChildInJSDocTag, - [341 /* JSDocProtectedTag */]: forEachChildInJSDocTag, - [342 /* JSDocReadonlyTag */]: forEachChildInJSDocTag, - [337 /* JSDocDeprecatedTag */]: forEachChildInJSDocTag, - [343 /* JSDocOverrideTag */]: forEachChildInJSDocTag, - [359 /* PartiallyEmittedExpression */]: forEachChildInPartiallyEmittedExpression + [334 /* JSDocTag */]: forEachChildInJSDocTag, + [339 /* JSDocClassTag */]: forEachChildInJSDocTag, + [340 /* JSDocPublicTag */]: forEachChildInJSDocTag, + [341 /* JSDocPrivateTag */]: forEachChildInJSDocTag, + [342 /* JSDocProtectedTag */]: forEachChildInJSDocTag, + [343 /* JSDocReadonlyTag */]: forEachChildInJSDocTag, + [338 /* JSDocDeprecatedTag */]: forEachChildInJSDocTag, + [344 /* JSDocOverrideTag */]: forEachChildInJSDocTag, + [360 /* PartiallyEmittedExpression */]: forEachChildInPartiallyEmittedExpression }; function forEachChildInCallOrConstructSignature(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); @@ -25978,7 +26208,7 @@ function forEachChildInPartiallyEmittedExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); } function forEachChild(node, cbNode, cbNodes) { - if (node === void 0 || node.kind <= 164 /* LastToken */) { + if (node === void 0 || node.kind <= 165 /* LastToken */) { return; } const fn = forEachChildTable[node.kind]; @@ -26013,7 +26243,7 @@ function forEachChildRecursively(rootNode, cbNode, cbNodes) { continue; return res; } - if (current.kind >= 165 /* FirstNode */) { + if (current.kind >= 166 /* FirstNode */) { for (const child of gatherPossibleChildren(current)) { queue.push(child); parents.push(current); @@ -26099,7 +26329,7 @@ var Parser; /*skipTrivia*/ true ); - var disallowInAndDecoratorContext = 4096 /* DisallowInContext */ | 16384 /* DecoratorContext */; + var disallowInAndDecoratorContext = 8192 /* DisallowInContext */ | 32768 /* DecoratorContext */; var NodeConstructor2; var TokenConstructor2; var IdentifierConstructor2; @@ -26344,10 +26574,10 @@ var Parser; switch (scriptKind) { case 1 /* JS */: case 2 /* JSX */: - contextFlags = 262144 /* JavaScriptFile */; + contextFlags = 524288 /* JavaScriptFile */; break; case 6 /* JSON */: - contextFlags = 262144 /* JavaScriptFile */ | 67108864 /* JsonFile */; + contextFlags = 524288 /* JavaScriptFile */ | 134217728 /* JsonFile */; break; default: contextFlags = 0 /* None */; @@ -26379,13 +26609,14 @@ var Parser; function parseSourceFileWorker(languageVersion2, setParentNodes, scriptKind2, setExternalModuleIndicator2) { const isDeclarationFile = isDeclarationFileName(fileName); if (isDeclarationFile) { - contextFlags |= 16777216 /* Ambient */; + contextFlags |= 33554432 /* Ambient */; } sourceFlags = contextFlags; nextToken(); const statements = parseList(0 /* SourceElements */, parseStatement); Debug.assert(token() === 1 /* EndOfFileToken */); - const endOfFileToken = addJSDocComment(parseTokenNode()); + const endHasJSDoc = hasPrecedingJSDocComment(); + const endOfFileToken = withJSDoc(parseTokenNode(), endHasJSDoc); const sourceFile = createSourceFile2(fileName, languageVersion2, scriptKind2, isDeclarationFile, statements, endOfFileToken, sourceFlags, setExternalModuleIndicator2); processCommentPragmas(sourceFile, sourceText); processPragmasIntoFields(sourceFile, reportPragmaDiagnostic); @@ -26405,18 +26636,18 @@ var Parser; parseDiagnostics.push(createDetachedDiagnostic(fileName, pos, end, diagnostic)); } } - function withJSDoc(node, hasJSDoc) { - return hasJSDoc ? addJSDocComment(node) : node; - } let hasDeprecatedTag = false; - function addJSDocComment(node) { + function withJSDoc(node, hasJSDoc) { + if (!hasJSDoc) { + return node; + } Debug.assert(!node.jsDoc); const jsDoc = mapDefined(getJSDocCommentRanges(node, sourceText), (comment) => JSDocParser.parseJSDocComment(node, comment.pos, comment.end - comment.pos)); if (jsDoc.length) node.jsDoc = jsDoc; if (hasDeprecatedTag) { hasDeprecatedTag = false; - node.flags |= 268435456 /* Deprecated */; + node.flags |= 536870912 /* Deprecated */; } return node; } @@ -26441,7 +26672,7 @@ var Parser; } speculationHelper(() => { const savedContextFlags = contextFlags; - contextFlags |= 32768 /* AwaitContext */; + contextFlags |= 65536 /* AwaitContext */; scanner.resetTokenState(nextStatement.pos); nextToken(); while (token() !== 1 /* EndOfFileToken */) { @@ -26476,7 +26707,7 @@ var Parser; syntaxCursor = savedSyntaxCursor; return factory2.updateSourceFile(sourceFile, setTextRange(factoryCreateNodeArray(statements), sourceFile.statements)); function containsPossibleTopLevelAwait(node) { - return !(node.flags & 32768 /* AwaitContext */) && !!(node.transformFlags & 67108864 /* ContainsPossibleTopLevelAwait */); + return !(node.flags & 65536 /* AwaitContext */) && !!(node.transformFlags & 67108864 /* ContainsPossibleTopLevelAwait */); } function findNextStatementWithAwait(statements2, start2) { for (let i = start2; i < statements2.length; i++) { @@ -26540,16 +26771,16 @@ var Parser; } } function setDisallowInContext(val) { - setContextFlag(val, 4096 /* DisallowInContext */); + setContextFlag(val, 8192 /* DisallowInContext */); } function setYieldContext(val) { - setContextFlag(val, 8192 /* YieldContext */); + setContextFlag(val, 16384 /* YieldContext */); } function setDecoratorContext(val) { - setContextFlag(val, 16384 /* DecoratorContext */); + setContextFlag(val, 32768 /* DecoratorContext */); } function setAwaitContext(val) { - setContextFlag(val, 32768 /* AwaitContext */); + setContextFlag(val, 65536 /* AwaitContext */); } function doOutsideOfContext(context, func) { const contextFlagsToClear = context & contextFlags; @@ -26588,52 +26819,52 @@ var Parser; return func(); } function allowInAnd(func) { - return doOutsideOfContext(4096 /* DisallowInContext */, func); + return doOutsideOfContext(8192 /* DisallowInContext */, func); } function disallowInAnd(func) { - return doInsideOfContext(4096 /* DisallowInContext */, func); + return doInsideOfContext(8192 /* DisallowInContext */, func); } function allowConditionalTypesAnd(func) { - return doOutsideOfContext(65536 /* DisallowConditionalTypesContext */, func); + return doOutsideOfContext(131072 /* DisallowConditionalTypesContext */, func); } function disallowConditionalTypesAnd(func) { - return doInsideOfContext(65536 /* DisallowConditionalTypesContext */, func); + return doInsideOfContext(131072 /* DisallowConditionalTypesContext */, func); } function doInYieldContext(func) { - return doInsideOfContext(8192 /* YieldContext */, func); + return doInsideOfContext(16384 /* YieldContext */, func); } function doInDecoratorContext(func) { - return doInsideOfContext(16384 /* DecoratorContext */, func); + return doInsideOfContext(32768 /* DecoratorContext */, func); } function doInAwaitContext(func) { - return doInsideOfContext(32768 /* AwaitContext */, func); + return doInsideOfContext(65536 /* AwaitContext */, func); } function doOutsideOfAwaitContext(func) { - return doOutsideOfContext(32768 /* AwaitContext */, func); + return doOutsideOfContext(65536 /* AwaitContext */, func); } function doInYieldAndAwaitContext(func) { - return doInsideOfContext(8192 /* YieldContext */ | 32768 /* AwaitContext */, func); + return doInsideOfContext(16384 /* YieldContext */ | 65536 /* AwaitContext */, func); } function doOutsideOfYieldAndAwaitContext(func) { - return doOutsideOfContext(8192 /* YieldContext */ | 32768 /* AwaitContext */, func); + return doOutsideOfContext(16384 /* YieldContext */ | 65536 /* AwaitContext */, func); } function inContext(flags) { return (contextFlags & flags) !== 0; } function inYieldContext() { - return inContext(8192 /* YieldContext */); + return inContext(16384 /* YieldContext */); } function inDisallowInContext() { - return inContext(4096 /* DisallowInContext */); + return inContext(8192 /* DisallowInContext */); } function inDisallowConditionalTypesContext() { - return inContext(65536 /* DisallowConditionalTypesContext */); + return inContext(131072 /* DisallowConditionalTypesContext */); } function inDecoratorContext() { - return inContext(16384 /* DecoratorContext */); + return inContext(32768 /* DecoratorContext */); } function inAwaitContext() { - return inContext(32768 /* AwaitContext */); + return inContext(65536 /* AwaitContext */); } function parseErrorAtCurrentToken(message, ...args) { return parseErrorAt(scanner.getTokenStart(), scanner.getTokenEnd(), message, ...args); @@ -26957,7 +27188,7 @@ var Parser; } if (parseErrorBeforeNextFinishedNode) { parseErrorBeforeNextFinishedNode = false; - node.flags |= 131072 /* ThisNodeHasError */; + node.flags |= 262144 /* ThisNodeHasError */; } return node; } @@ -26986,7 +27217,7 @@ var Parser; "", /*isSingleQuote*/ void 0 - ) : kind === 281 /* MissingDeclaration */ ? factory2.createMissingDeclaration() : factoryCreateToken(kind); + ) : kind === 282 /* MissingDeclaration */ ? factory2.createMissingDeclaration() : factoryCreateToken(kind); return finishNode(result, pos); } function internIdentifier(text) { @@ -27203,6 +27434,9 @@ var Parser; case 22 /* HeritageClauses */: return isHeritageClause2(); case 23 /* ImportOrExportSpecifiers */: + if (token() === 161 /* FromKeyword */ && lookAhead(nextTokenIsStringLiteral)) { + return false; + } return tokenIsIdentifierOrKeyword(token()); case 13 /* JsxAttributes */: return tokenIsIdentifierOrKeyword(token()) || token() === 19 /* OpenBraceToken */; @@ -27359,7 +27593,7 @@ var Parser; if (nodeIsMissing(node) || node.intersectsChange || containsParseError(node)) { return void 0; } - const nodeContextFlags = node.flags & 50720768 /* ContextFlags */; + const nodeContextFlags = node.flags & 101441536 /* ContextFlags */; if (nodeContextFlags !== contextFlags) { return void 0; } @@ -27417,14 +27651,14 @@ var Parser; function isReusableClassMember(node) { if (node) { switch (node.kind) { - case 175 /* Constructor */: - case 180 /* IndexSignature */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 171 /* PropertyDeclaration */: - case 239 /* SemicolonClassElement */: + case 176 /* Constructor */: + case 181 /* IndexSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 172 /* PropertyDeclaration */: + case 240 /* SemicolonClassElement */: return true; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: const methodDeclaration = node; const nameIsConstructor = methodDeclaration.name.kind === 80 /* Identifier */ && methodDeclaration.name.escapedText === "constructor"; return !nameIsConstructor; @@ -27435,8 +27669,8 @@ var Parser; function isReusableSwitchClause(node) { if (node) { switch (node.kind) { - case 295 /* CaseClause */: - case 296 /* DefaultClause */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: return true; } } @@ -27445,65 +27679,65 @@ var Parser; function isReusableStatement(node) { if (node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 242 /* VariableStatement */: - case 240 /* Block */: - case 244 /* IfStatement */: - case 243 /* ExpressionStatement */: - case 256 /* ThrowStatement */: - case 252 /* ReturnStatement */: - case 254 /* SwitchStatement */: - case 251 /* BreakStatement */: - case 250 /* ContinueStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 247 /* ForStatement */: - case 246 /* WhileStatement */: - case 253 /* WithStatement */: - case 241 /* EmptyStatement */: - case 257 /* TryStatement */: - case 255 /* LabeledStatement */: - case 245 /* DoStatement */: - case 258 /* DebuggerStatement */: - case 271 /* ImportDeclaration */: - case 270 /* ImportEqualsDeclaration */: - case 277 /* ExportDeclaration */: - case 276 /* ExportAssignment */: - case 266 /* ModuleDeclaration */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 262 /* FunctionDeclaration */: + case 243 /* VariableStatement */: + case 241 /* Block */: + case 245 /* IfStatement */: + case 244 /* ExpressionStatement */: + case 257 /* ThrowStatement */: + case 253 /* ReturnStatement */: + case 255 /* SwitchStatement */: + case 252 /* BreakStatement */: + case 251 /* ContinueStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 248 /* ForStatement */: + case 247 /* WhileStatement */: + case 254 /* WithStatement */: + case 242 /* EmptyStatement */: + case 258 /* TryStatement */: + case 256 /* LabeledStatement */: + case 246 /* DoStatement */: + case 259 /* DebuggerStatement */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 278 /* ExportDeclaration */: + case 277 /* ExportAssignment */: + case 267 /* ModuleDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + case 265 /* TypeAliasDeclaration */: return true; } } return false; } function isReusableEnumMember(node) { - return node.kind === 305 /* EnumMember */; + return node.kind === 306 /* EnumMember */; } function isReusableTypeMember(node) { if (node) { switch (node.kind) { - case 179 /* ConstructSignature */: - case 172 /* MethodSignature */: - case 180 /* IndexSignature */: - case 170 /* PropertySignature */: - case 178 /* CallSignature */: + case 180 /* ConstructSignature */: + case 173 /* MethodSignature */: + case 181 /* IndexSignature */: + case 171 /* PropertySignature */: + case 179 /* CallSignature */: return true; } } return false; } function isReusableVariableDeclaration(node) { - if (node.kind !== 259 /* VariableDeclaration */) { + if (node.kind !== 260 /* VariableDeclaration */) { return false; } const variableDeclarator = node; return variableDeclarator.initializer === void 0; } function isReusableParameter(node) { - if (node.kind !== 168 /* Parameter */) { + if (node.kind !== 169 /* Parameter */) { return false; } const parameter = node; @@ -27561,6 +27795,9 @@ var Parser; case 22 /* HeritageClauses */: return parseErrorAtCurrentToken(Diagnostics.Unexpected_token_expected); case 23 /* ImportOrExportSpecifiers */: + if (token() === 161 /* FromKeyword */) { + return parseErrorAtCurrentToken(Diagnostics._0_expected, "}"); + } return parseErrorAtCurrentToken(Diagnostics.Identifier_expected); case 13 /* JsxAttributes */: return parseErrorAtCurrentToken(Diagnostics.Identifier_expected); @@ -27840,14 +28077,14 @@ var Parser; } function typeHasArrowFunctionBlockingParseError(node) { switch (node.kind) { - case 182 /* TypeReference */: + case 183 /* TypeReference */: return nodeIsMissing(node.typeName); - case 183 /* FunctionType */: - case 184 /* ConstructorType */: { + case 184 /* FunctionType */: + case 185 /* ConstructorType */: { const { parameters, type } = node; return isMissingList(parameters) || typeHasArrowFunctionBlockingParseError(type); } - case 195 /* ParenthesizedType */: + case 196 /* ParenthesizedType */: return typeHasArrowFunctionBlockingParseError(node.type); default: return false; @@ -28139,7 +28376,7 @@ var Parser; function parseSignatureMember(kind) { const pos = getNodePos(); const hasJSDoc = hasPrecedingJSDocComment(); - if (kind === 179 /* ConstructSignature */) { + if (kind === 180 /* ConstructSignature */) { parseExpected(105 /* NewKeyword */); } const typeParameters = parseTypeParameters(); @@ -28150,7 +28387,7 @@ var Parser; true ); parseTypeMemberSemicolon(); - const node = kind === 178 /* CallSignature */ ? factory2.createCallSignature(typeParameters, parameters, type) : factory2.createConstructSignature(typeParameters, parameters, type); + const node = kind === 179 /* CallSignature */ ? factory2.createCallSignature(typeParameters, parameters, type) : factory2.createConstructSignature(typeParameters, parameters, type); return withJSDoc(finishNode(node, pos), hasJSDoc); } function isIndexSignature() { @@ -28235,10 +28472,10 @@ var Parser; } function parseTypeMember() { if (token() === 21 /* OpenParenToken */ || token() === 30 /* LessThanToken */) { - return parseSignatureMember(178 /* CallSignature */); + return parseSignatureMember(179 /* CallSignature */); } if (token() === 105 /* NewKeyword */ && lookAhead(nextTokenIsOpenParenOrLessThan)) { - return parseSignatureMember(179 /* ConstructSignature */); + return parseSignatureMember(180 /* ConstructSignature */); } const pos = getNodePos(); const hasJSDoc = hasPrecedingJSDocComment(); @@ -28247,10 +28484,10 @@ var Parser; false ); if (parseContextualModifier(139 /* GetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 176 /* GetAccessor */, 4 /* Type */); + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* GetAccessor */, 4 /* Type */); } if (parseContextualModifier(153 /* SetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* SetAccessor */, 4 /* Type */); + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 178 /* SetAccessor */, 4 /* Type */); } if (isIndexSignature()) { return parseIndexSignatureDeclaration(pos, hasJSDoc, modifiers); @@ -28459,7 +28696,7 @@ var Parser; return finishNode(factory2.createImportTypeAssertionContainer(clause, multiLine), pos); } function parseImportType() { - sourceFlags |= 2097152 /* PossiblyContainsDynamicImport */; + sourceFlags |= 4194304 /* PossiblyContainsDynamicImport */; const pos = getNodePos(); const isTypeOf = parseOptional(114 /* TypeOfKeyword */); parseExpected(102 /* ImportKeyword */); @@ -28484,7 +28721,7 @@ var Parser; case 159 /* UnknownKeyword */: case 154 /* StringKeyword */: case 150 /* NumberKeyword */: - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: case 155 /* SymbolKeyword */: case 136 /* BooleanKeyword */: case 157 /* UndefinedKeyword */: @@ -28550,7 +28787,7 @@ var Parser; case 159 /* UnknownKeyword */: case 154 /* StringKeyword */: case 150 /* NumberKeyword */: - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: case 136 /* BooleanKeyword */: case 148 /* ReadonlyKeyword */: case 155 /* SymbolKeyword */: @@ -28796,8 +29033,8 @@ var Parser; return finishNode(factory2.createTypePredicateNode(assertsModifier, parameterName, type), pos); } function parseType() { - if (contextFlags & 40960 /* TypeExcludesFlags */) { - return doOutsideOfContext(40960 /* TypeExcludesFlags */, parseType); + if (contextFlags & 81920 /* TypeExcludesFlags */) { + return doOutsideOfContext(81920 /* TypeExcludesFlags */, parseType); } if (isStartOfFunctionTypeOrConstructorType()) { return parseFunctionOrConstructorType(); @@ -28918,12 +29155,14 @@ var Parser; return arrowExpression; } const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); const expr = parseBinaryExpressionOrHigher(0 /* Lowest */); if (expr.kind === 80 /* Identifier */ && token() === 39 /* EqualsGreaterThanToken */) { return parseSimpleArrowFunctionExpression( pos, expr, allowReturnTypeInArrowFunction, + hasJSDoc, /*asyncModifier*/ void 0 ); @@ -28969,7 +29208,7 @@ var Parser; ), pos); } } - function parseSimpleArrowFunctionExpression(pos, identifier, allowReturnTypeInArrowFunction, asyncModifier) { + function parseSimpleArrowFunctionExpression(pos, identifier, allowReturnTypeInArrowFunction, hasJSDoc, asyncModifier) { Debug.assert(token() === 39 /* EqualsGreaterThanToken */, "parseSimpleArrowFunctionExpression should only have been called if we had a =>"); const parameter = factory2.createParameterDeclaration( /*modifiers*/ @@ -29002,7 +29241,7 @@ var Parser; equalsGreaterThanToken, body ); - return addJSDocComment(finishNode(node, pos)); + return withJSDoc(finishNode(node, pos), hasJSDoc); } function tryParseParenthesizedArrowFunctionExpression(allowReturnTypeInArrowFunction) { const triState = isParenthesizedArrowFunctionExpression(); @@ -29130,9 +29369,10 @@ var Parser; if (token() === 134 /* AsyncKeyword */) { if (lookAhead(isUnParenthesizedAsyncArrowFunctionWorker) === 1 /* True */) { const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); const asyncModifier = parseModifiersForArrowFunction(); const expr = parseBinaryExpressionOrHigher(0 /* Lowest */); - return parseSimpleArrowFunctionExpression(pos, expr, allowReturnTypeInArrowFunction, asyncModifier); + return parseSimpleArrowFunctionExpression(pos, expr, allowReturnTypeInArrowFunction, hasJSDoc, asyncModifier); } } return void 0; @@ -29186,7 +29426,7 @@ var Parser; return void 0; } let unwrappedType = type; - while ((unwrappedType == null ? void 0 : unwrappedType.kind) === 195 /* ParenthesizedType */) { + while ((unwrappedType == null ? void 0 : unwrappedType.kind) === 196 /* ParenthesizedType */) { unwrappedType = unwrappedType.type; } const hasJSDocFunctionType = unwrappedType && isJSDocFunctionType(unwrappedType); @@ -29249,7 +29489,7 @@ var Parser; return parseBinaryExpressionRest(precedence, leftOperand, pos); } function isInOrOfKeyword(t) { - return t === 103 /* InKeyword */ || t === 164 /* OfKeyword */; + return t === 103 /* InKeyword */ || t === 165 /* OfKeyword */; } function parseBinaryExpressionRest(precedence, leftOperand, pos) { while (true) { @@ -29331,7 +29571,7 @@ var Parser; if (token() === 43 /* AsteriskAsteriskToken */) { const pos = skipTrivia(sourceText, simpleUnaryExpression.pos); const { end } = simpleUnaryExpression; - if (simpleUnaryExpression.kind === 215 /* TypeAssertionExpression */) { + if (simpleUnaryExpression.kind === 216 /* TypeAssertionExpression */) { parseErrorAt(pos, end, Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses); } else { Debug.assert(isKeywordOrPunctuation(unaryOperator)); @@ -29418,13 +29658,13 @@ var Parser; let expression; if (token() === 102 /* ImportKeyword */) { if (lookAhead(nextTokenIsOpenParenOrLessThan)) { - sourceFlags |= 2097152 /* PossiblyContainsDynamicImport */; + sourceFlags |= 4194304 /* PossiblyContainsDynamicImport */; expression = parseTokenNode(); } else if (lookAhead(nextTokenIsDot)) { nextToken(); nextToken(); expression = finishNode(factory2.createMetaProperty(102 /* ImportKeyword */, parseIdentifierName()), pos); - sourceFlags |= 4194304 /* PossiblyContainsImportMeta */; + sourceFlags |= 8388608 /* PossiblyContainsImportMeta */; } else { expression = parseMemberExpressionOrHigher(); } @@ -29471,11 +29711,11 @@ var Parser; const pos = getNodePos(); const opening = parseJsxOpeningOrSelfClosingElementOrOpeningFragment(inExpressionContext); let result; - if (opening.kind === 285 /* JsxOpeningElement */) { + if (opening.kind === 286 /* JsxOpeningElement */) { let children = parseJsxChildren(opening); let closingElement; const lastChild = children[children.length - 1]; - if ((lastChild == null ? void 0 : lastChild.kind) === 283 /* JsxElement */ && !tagNamesAreEquivalent(lastChild.openingElement.tagName, lastChild.closingElement.tagName) && tagNamesAreEquivalent(opening.tagName, lastChild.closingElement.tagName)) { + if ((lastChild == null ? void 0 : lastChild.kind) === 284 /* JsxElement */ && !tagNamesAreEquivalent(lastChild.openingElement.tagName, lastChild.closingElement.tagName) && tagNamesAreEquivalent(opening.tagName, lastChild.closingElement.tagName)) { const end = lastChild.children.end; const newLast = finishNode( factory2.createJsxElement( @@ -29499,10 +29739,10 @@ var Parser; } } result = finishNode(factory2.createJsxElement(opening, children, closingElement), pos); - } else if (opening.kind === 288 /* JsxOpeningFragment */) { + } else if (opening.kind === 289 /* JsxOpeningFragment */) { result = finishNode(factory2.createJsxFragment(opening, parseJsxChildren(opening), parseJsxClosingFragment(inExpressionContext)), pos); } else { - Debug.assert(opening.kind === 284 /* JsxSelfClosingElement */); + Debug.assert(opening.kind === 285 /* JsxSelfClosingElement */); result = opening; } if (!mustBeUnary && inExpressionContext && token() === 30 /* LessThanToken */) { @@ -29575,7 +29815,7 @@ var Parser; if (!child) break; list.push(child); - if (isJsxOpeningElement(openingTag) && (child == null ? void 0 : child.kind) === 283 /* JsxElement */ && !tagNamesAreEquivalent(child.openingElement.tagName, child.closingElement.tagName) && tagNamesAreEquivalent(openingTag.tagName, child.closingElement.tagName)) { + if (isJsxOpeningElement(openingTag) && (child == null ? void 0 : child.kind) === 284 /* JsxElement */ && !tagNamesAreEquivalent(child.openingElement.tagName, child.closingElement.tagName) && tagNamesAreEquivalent(openingTag.tagName, child.closingElement.tagName)) { break; } } @@ -29594,7 +29834,7 @@ var Parser; return finishNode(factory2.createJsxOpeningFragment(), pos); } const tagName = parseJsxElementName(); - const typeArguments = (contextFlags & 262144 /* JavaScriptFile */) === 0 ? tryParseTypeArguments() : void 0; + const typeArguments = (contextFlags & 524288 /* JavaScriptFile */) === 0 ? tryParseTypeArguments() : void 0; const attributes = parseJsxAttributes(); let node; if (token() === 32 /* GreaterThanToken */) { @@ -29772,17 +30012,17 @@ var Parser; return token() === 29 /* QuestionDotToken */ && lookAhead(nextTokenIsIdentifierOrKeywordOrOpenBracketOrTemplate); } function tryReparseOptionalChain(node) { - if (node.flags & 32 /* OptionalChain */) { + if (node.flags & 64 /* OptionalChain */) { return true; } if (isNonNullExpression(node)) { let expr = node.expression; - while (isNonNullExpression(expr) && !(expr.flags & 32 /* OptionalChain */)) { + while (isNonNullExpression(expr) && !(expr.flags & 64 /* OptionalChain */)) { expr = expr.expression; } - if (expr.flags & 32 /* OptionalChain */) { + if (expr.flags & 64 /* OptionalChain */) { while (isNonNullExpression(node)) { - node.flags |= 32 /* OptionalChain */; + node.flags |= 64 /* OptionalChain */; node = node.expression; } return true; @@ -29848,7 +30088,7 @@ var Parser; continue; } if (isTemplateStartOfTaggedTemplate()) { - expression = !questionDotToken && expression.kind === 232 /* ExpressionWithTypeArguments */ ? parseTaggedTemplateRest(pos, expression.expression, questionDotToken, expression.typeArguments) : parseTaggedTemplateRest( + expression = !questionDotToken && expression.kind === 233 /* ExpressionWithTypeArguments */ ? parseTaggedTemplateRest(pos, expression.expression, questionDotToken, expression.typeArguments) : parseTaggedTemplateRest( pos, expression, questionDotToken, @@ -29887,8 +30127,8 @@ var Parser; true ) ); - if (questionDotToken || tag.flags & 32 /* OptionalChain */) { - tagExpression.flags |= 32 /* OptionalChain */; + if (questionDotToken || tag.flags & 64 /* OptionalChain */) { + tagExpression.flags |= 64 /* OptionalChain */; } tagExpression.questionDotToken = questionDotToken; return finishNode(tagExpression, pos); @@ -29911,7 +30151,7 @@ var Parser; } } if (typeArguments || token() === 21 /* OpenParenToken */) { - if (!questionDotToken && expression.kind === 232 /* ExpressionWithTypeArguments */) { + if (!questionDotToken && expression.kind === 233 /* ExpressionWithTypeArguments */) { typeArguments = expression.typeArguments; expression = expression.expression; } @@ -29940,7 +30180,7 @@ var Parser; return result; } function parseTypeArgumentsInExpression() { - if ((contextFlags & 262144 /* JavaScriptFile */) !== 0) { + if ((contextFlags & 524288 /* JavaScriptFile */) !== 0) { return void 0; } if (reScanLessThanToken() !== 30 /* LessThanToken */) { @@ -30072,10 +30312,10 @@ var Parser; true ); if (parseContextualModifier(139 /* GetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 176 /* GetAccessor */, 0 /* None */); + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* GetAccessor */, 0 /* None */); } if (parseContextualModifier(153 /* SetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* SetAccessor */, 0 /* None */); + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 178 /* SetAccessor */, 0 /* None */); } const asteriskToken = parseOptionalToken(42 /* AsteriskToken */); const tokenIsIdentifier = isIdentifier2(); @@ -30169,7 +30409,7 @@ var Parser; false ); let typeArguments; - if (expression.kind === 232 /* ExpressionWithTypeArguments */) { + if (expression.kind === 233 /* ExpressionWithTypeArguments */) { typeArguments = expression.typeArguments; expression = expression.expression; } @@ -30279,7 +30519,7 @@ var Parser; parseExpected(21 /* OpenParenToken */); let initializer; if (token() !== 27 /* SemicolonToken */) { - if (token() === 115 /* VarKeyword */ || token() === 121 /* LetKeyword */ || token() === 87 /* ConstKeyword */) { + if (token() === 115 /* VarKeyword */ || token() === 121 /* LetKeyword */ || token() === 87 /* ConstKeyword */ || token() === 160 /* UsingKeyword */ && lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLineDisallowOf) || token() === 135 /* AwaitKeyword */ && lookAhead(nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLineDisallowOf)) { initializer = parseVariableDeclarationList( /*inForStatementInitializer*/ true @@ -30289,7 +30529,7 @@ var Parser; } } let node; - if (awaitToken ? parseExpected(164 /* OfKeyword */) : parseOptional(164 /* OfKeyword */)) { + if (awaitToken ? parseExpected(165 /* OfKeyword */) : parseOptional(165 /* OfKeyword */)) { const expression = allowInAnd(() => parseAssignmentExpressionOrHigher( /*allowReturnTypeInArrowFunction*/ true @@ -30313,10 +30553,10 @@ var Parser; function parseBreakOrContinueStatement(kind) { const pos = getNodePos(); const hasJSDoc = hasPrecedingJSDocComment(); - parseExpected(kind === 251 /* BreakStatement */ ? 83 /* BreakKeyword */ : 88 /* ContinueKeyword */); + parseExpected(kind === 252 /* BreakStatement */ ? 83 /* BreakKeyword */ : 88 /* ContinueKeyword */); const label = canParseSemicolon() ? void 0 : parseIdentifier(); parseSemicolon(); - const node = kind === 251 /* BreakStatement */ ? factory2.createBreakStatement(label) : factory2.createContinueStatement(label); + const node = kind === 252 /* BreakStatement */ ? factory2.createBreakStatement(label) : factory2.createContinueStatement(label); return withJSDoc(finishNode(node, pos), hasJSDoc); } function parseReturnStatement() { @@ -30335,7 +30575,7 @@ var Parser; const openParenParsed = parseExpected(21 /* OpenParenToken */); const expression = allowInAnd(parseExpression); parseExpectedMatchingBrackets(21 /* OpenParenToken */, 22 /* CloseParenToken */, openParenParsed, openParenPosition); - const statement = doInsideOfContext(33554432 /* InWithStatement */, parseStatement); + const statement = doInsideOfContext(67108864 /* InWithStatement */, parseStatement); return withJSDoc(finishNode(factory2.createWithStatement(expression, statement), pos), hasJSDoc); } function parseCaseClause() { @@ -30475,6 +30715,10 @@ var Parser; case 86 /* ClassKeyword */: case 94 /* EnumKeyword */: return true; + case 160 /* UsingKeyword */: + return isUsingDeclaration(); + case 135 /* AwaitKeyword */: + return isAwaitUsingDeclaration(); case 120 /* InterfaceKeyword */: case 156 /* TypeKeyword */: return nextTokenIsIdentifierOnSameLine(); @@ -30489,12 +30733,16 @@ var Parser; case 124 /* ProtectedKeyword */: case 125 /* PublicKeyword */: case 148 /* ReadonlyKeyword */: + const previousToken = token(); nextToken(); if (scanner.hasPrecedingLineBreak()) { return false; } + if (previousToken === 138 /* DeclareKeyword */ && token() === 156 /* TypeKeyword */) { + return true; + } continue; - case 161 /* GlobalKeyword */: + case 162 /* GlobalKeyword */: nextToken(); return token() === 19 /* OpenBraceToken */ || token() === 80 /* Identifier */ || token() === 95 /* ExportKeyword */; case 102 /* ImportKeyword */: @@ -30527,6 +30775,7 @@ var Parser; case 19 /* OpenBraceToken */: case 115 /* VarKeyword */: case 121 /* LetKeyword */: + case 160 /* UsingKeyword */: case 100 /* FunctionKeyword */: case 86 /* ClassKeyword */: case 94 /* EnumKeyword */: @@ -30556,7 +30805,7 @@ var Parser; case 144 /* ModuleKeyword */: case 145 /* NamespaceKeyword */: case 156 /* TypeKeyword */: - case 161 /* GlobalKeyword */: + case 162 /* GlobalKeyword */: return true; case 129 /* AccessorKeyword */: case 125 /* PublicKeyword */: @@ -30576,6 +30825,36 @@ var Parser; function isLetDeclaration() { return lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuring); } + function nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLineDisallowOf() { + return nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine( + /*disallowOf*/ + true + ); + } + function nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine(disallowOf) { + nextToken(); + if (disallowOf && token() === 165 /* OfKeyword */) + return false; + return (isBindingIdentifier() || token() === 19 /* OpenBraceToken */) && !scanner.hasPrecedingLineBreak(); + } + function isUsingDeclaration() { + return lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine); + } + function nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLineDisallowOf() { + return nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLine( + /*disallowOf*/ + true + ); + } + function nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLine(disallowOf) { + if (nextToken() === 160 /* UsingKeyword */) { + return nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine(disallowOf); + } + return false; + } + function isAwaitUsingDeclaration() { + return lookAhead(nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLine); + } function parseStatement() { switch (token()) { case 27 /* SemicolonToken */: @@ -30602,6 +30881,26 @@ var Parser; ); } break; + case 135 /* AwaitKeyword */: + if (isAwaitUsingDeclaration()) { + return parseVariableStatement( + getNodePos(), + hasPrecedingJSDocComment(), + /*modifiers*/ + void 0 + ); + } + break; + case 160 /* UsingKeyword */: + if (isUsingDeclaration()) { + return parseVariableStatement( + getNodePos(), + hasPrecedingJSDocComment(), + /*modifiers*/ + void 0 + ); + } + break; case 100 /* FunctionKeyword */: return parseFunctionDeclaration( getNodePos(), @@ -30625,9 +30924,9 @@ var Parser; case 99 /* ForKeyword */: return parseForOrForInOrForOfStatement(); case 88 /* ContinueKeyword */: - return parseBreakOrContinueStatement(250 /* ContinueStatement */); + return parseBreakOrContinueStatement(251 /* ContinueStatement */); case 83 /* BreakKeyword */: - return parseBreakOrContinueStatement(251 /* BreakStatement */); + return parseBreakOrContinueStatement(252 /* BreakStatement */); case 107 /* ReturnKeyword */: return parseReturnStatement(); case 118 /* WithKeyword */: @@ -30661,7 +30960,7 @@ var Parser; case 129 /* AccessorKeyword */: case 126 /* StaticKeyword */: case 148 /* ReadonlyKeyword */: - case 161 /* GlobalKeyword */: + case 162 /* GlobalKeyword */: if (isStartOfDeclaration()) { return parseDeclaration(); } @@ -30686,15 +30985,15 @@ var Parser; return node; } for (const m of modifiers) { - m.flags |= 16777216 /* Ambient */; + m.flags |= 33554432 /* Ambient */; } - return doInsideOfContext(16777216 /* Ambient */, () => parseDeclarationWorker(pos, hasJSDoc, modifiers)); + return doInsideOfContext(33554432 /* Ambient */, () => parseDeclarationWorker(pos, hasJSDoc, modifiers)); } else { return parseDeclarationWorker(pos, hasJSDoc, modifiers); } } function tryReuseAmbientDeclaration(pos) { - return doInsideOfContext(16777216 /* Ambient */, () => { + return doInsideOfContext(33554432 /* Ambient */, () => { const node = currentNode(parsingContext, pos); if (node) { return consumeNode(node); @@ -30706,6 +31005,8 @@ var Parser; case 115 /* VarKeyword */: case 121 /* LetKeyword */: case 87 /* ConstKeyword */: + case 160 /* UsingKeyword */: + case 135 /* AwaitKeyword */: return parseVariableStatement(pos, hasJSDoc, modifiersIn); case 100 /* FunctionKeyword */: return parseFunctionDeclaration(pos, hasJSDoc, modifiersIn); @@ -30717,7 +31018,7 @@ var Parser; return parseTypeAliasDeclaration(pos, hasJSDoc, modifiersIn); case 94 /* EnumKeyword */: return parseEnumDeclaration(pos, hasJSDoc, modifiersIn); - case 161 /* GlobalKeyword */: + case 162 /* GlobalKeyword */: case 144 /* ModuleKeyword */: case 145 /* NamespaceKeyword */: return parseModuleDeclaration(pos, hasJSDoc, modifiersIn); @@ -30737,7 +31038,7 @@ var Parser; default: if (modifiersIn) { const missing = createMissingNode( - 281 /* MissingDeclaration */, + 282 /* MissingDeclaration */, /*reportAtCurrentPosition*/ true, Diagnostics.Declaration_expected @@ -30749,6 +31050,9 @@ var Parser; return void 0; } } + function nextTokenIsStringLiteral() { + return nextToken() === 11 /* StringLiteral */; + } function nextTokenIsIdentifierOrStringLiteralOnSameLine() { nextToken(); return !scanner.hasPrecedingLineBreak() && (isIdentifier2() || token() === 11 /* StringLiteral */); @@ -30801,14 +31105,14 @@ var Parser; function parseObjectBindingPattern() { const pos = getNodePos(); parseExpected(19 /* OpenBraceToken */); - const elements = parseDelimitedList(9 /* ObjectBindingElements */, parseObjectBindingElement); + const elements = allowInAnd(() => parseDelimitedList(9 /* ObjectBindingElements */, parseObjectBindingElement)); parseExpected(20 /* CloseBraceToken */); return finishNode(factory2.createObjectBindingPattern(elements), pos); } function parseArrayBindingPattern() { const pos = getNodePos(); parseExpected(23 /* OpenBracketToken */); - const elements = parseDelimitedList(10 /* ArrayBindingElements */, parseArrayBindingElement); + const elements = allowInAnd(() => parseDelimitedList(10 /* ArrayBindingElements */, parseArrayBindingElement)); parseExpected(24 /* CloseBracketToken */); return finishNode(factory2.createArrayBindingPattern(elements), pos); } @@ -30855,12 +31159,20 @@ var Parser; case 87 /* ConstKeyword */: flags |= 2 /* Const */; break; + case 160 /* UsingKeyword */: + flags |= 4 /* Using */; + break; + case 135 /* AwaitKeyword */: + Debug.assert(isAwaitUsingDeclaration()); + flags |= 6 /* AwaitUsing */; + nextToken(); + break; default: Debug.fail(); } nextToken(); let declarations; - if (token() === 164 /* OfKeyword */ && lookAhead(canFollowContextualOfKeyword)) { + if (token() === 165 /* OfKeyword */ && lookAhead(canFollowContextualOfKeyword)) { declarations = createMissingList(); } else { const savedDisallowIn = inDisallowInContext(); @@ -30966,7 +31278,7 @@ var Parser; function parsePropertyDeclaration(pos, hasJSDoc, modifiers, name, questionToken) { const exclamationToken = !questionToken && !scanner.hasPrecedingLineBreak() ? parseOptionalToken(54 /* ExclamationToken */) : void 0; const type = parseTypeAnnotation(); - const initializer = doOutsideOfContext(8192 /* YieldContext */ | 32768 /* AwaitContext */ | 4096 /* DisallowInContext */, parseInitializer); + const initializer = doOutsideOfContext(16384 /* YieldContext */ | 65536 /* AwaitContext */ | 8192 /* DisallowInContext */, parseInitializer); parseSemicolonAfterPropertyName(name, type, initializer); const node = factory2.createPropertyDeclaration( modifiers, @@ -31006,7 +31318,7 @@ var Parser; false ); const body = parseFunctionBlockOrSemicolon(flags); - const node = kind === 176 /* GetAccessor */ ? factory2.createGetAccessorDeclaration(modifiers, name, parameters, type, body) : factory2.createSetAccessorDeclaration(modifiers, name, parameters, body); + const node = kind === 177 /* GetAccessor */ ? factory2.createGetAccessorDeclaration(modifiers, name, parameters, type, body) : factory2.createSetAccessorDeclaration(modifiers, name, parameters, body); node.typeParameters = typeParameters; if (isSetAccessorDeclaration(node)) node.type = type; @@ -31172,10 +31484,10 @@ var Parser; return parseClassStaticBlockDeclaration(pos, hasJSDoc, modifiers); } if (parseContextualModifier(139 /* GetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 176 /* GetAccessor */, 0 /* None */); + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* GetAccessor */, 0 /* None */); } if (parseContextualModifier(153 /* SetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* SetAccessor */, 0 /* None */); + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 178 /* SetAccessor */, 0 /* None */); } if (token() === 137 /* ConstructorKeyword */ || token() === 11 /* StringLiteral */) { const constructorDeclaration = tryParseConstructorDeclaration(pos, hasJSDoc, modifiers); @@ -31190,9 +31502,9 @@ var Parser; const isAmbient = some(modifiers, isDeclareModifier); if (isAmbient) { for (const m of modifiers) { - m.flags |= 16777216 /* Ambient */; + m.flags |= 33554432 /* Ambient */; } - return doInsideOfContext(16777216 /* Ambient */, () => parsePropertyOrMethodDeclaration(pos, hasJSDoc, modifiers)); + return doInsideOfContext(33554432 /* Ambient */, () => parsePropertyOrMethodDeclaration(pos, hasJSDoc, modifiers)); } else { return parsePropertyOrMethodDeclaration(pos, hasJSDoc, modifiers); } @@ -31223,10 +31535,10 @@ var Parser; true ); if (token() === 86 /* ClassKeyword */) { - return parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, 230 /* ClassExpression */); + return parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, 231 /* ClassExpression */); } const missing = createMissingNode( - 281 /* MissingDeclaration */, + 282 /* MissingDeclaration */, /*reportAtCurrentPosition*/ true, Diagnostics.Expression_expected @@ -31241,11 +31553,11 @@ var Parser; hasPrecedingJSDocComment(), /*modifiers*/ void 0, - 230 /* ClassExpression */ + 231 /* ClassExpression */ ); } function parseClassDeclaration(pos, hasJSDoc, modifiers) { - return parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, 262 /* ClassDeclaration */); + return parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, 263 /* ClassDeclaration */); } function parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, kind) { const savedAwaitContext = inAwaitContext(); @@ -31266,7 +31578,7 @@ var Parser; members = createMissingList(); } setAwaitContext(savedAwaitContext); - const node = kind === 262 /* ClassDeclaration */ ? factory2.createClassDeclaration(modifiers, name, typeParameters, heritageClauses, members) : factory2.createClassExpression(modifiers, name, typeParameters, heritageClauses, members); + const node = kind === 263 /* ClassDeclaration */ ? factory2.createClassDeclaration(modifiers, name, typeParameters, heritageClauses, members) : factory2.createClassExpression(modifiers, name, typeParameters, heritageClauses, members); return withJSDoc(finishNode(node, pos), hasJSDoc); } function parseNameOfClassDeclarationOrExpression() { @@ -31292,7 +31604,7 @@ var Parser; function parseExpressionWithTypeArguments() { const pos = getNodePos(); const expression = parseLeftHandSideExpressionOrHigher(); - if (expression.kind === 232 /* ExpressionWithTypeArguments */) { + if (expression.kind === 233 /* ExpressionWithTypeArguments */) { return expression; } const typeArguments = tryParseTypeArguments(); @@ -31318,6 +31630,9 @@ var Parser; } function parseTypeAliasDeclaration(pos, hasJSDoc, modifiers) { parseExpected(156 /* TypeKeyword */); + if (scanner.hasPrecedingLineBreak()) { + parseErrorAtCurrentToken(Diagnostics.Line_break_not_permitted_here); + } const name = parseIdentifier(); const typeParameters = parseTypeParameters(); parseExpected(64 /* EqualsToken */); @@ -31358,7 +31673,7 @@ var Parser; return finishNode(factory2.createModuleBlock(statements), pos); } function parseModuleOrNamespaceDeclaration(pos, hasJSDoc, modifiers, flags) { - const namespaceFlag = flags & 16 /* Namespace */; + const namespaceFlag = flags & 32 /* Namespace */; const name = parseIdentifier(); const body = parseOptional(25 /* DotToken */) ? parseModuleOrNamespaceDeclaration( getNodePos(), @@ -31366,7 +31681,7 @@ var Parser; false, /*modifiers*/ void 0, - 4 /* NestedNamespace */ | namespaceFlag + 8 /* NestedNamespace */ | namespaceFlag ) : parseModuleBlock(); const node = factory2.createModuleDeclaration(modifiers, name, body, flags); return withJSDoc(finishNode(node, pos), hasJSDoc); @@ -31374,9 +31689,9 @@ var Parser; function parseAmbientExternalModuleDeclaration(pos, hasJSDoc, modifiersIn) { let flags = 0; let name; - if (token() === 161 /* GlobalKeyword */) { + if (token() === 162 /* GlobalKeyword */) { name = parseIdentifier(); - flags |= 1024 /* GlobalAugmentation */; + flags |= 2048 /* GlobalAugmentation */; } else { name = parseLiteralNode(); name.text = internIdentifier(name.text); @@ -31392,10 +31707,10 @@ var Parser; } function parseModuleDeclaration(pos, hasJSDoc, modifiersIn) { let flags = 0; - if (token() === 161 /* GlobalKeyword */) { + if (token() === 162 /* GlobalKeyword */) { return parseAmbientExternalModuleDeclaration(pos, hasJSDoc, modifiersIn); } else if (parseOptional(145 /* NamespaceKeyword */)) { - flags |= 16 /* Namespace */; + flags |= 32 /* Namespace */; } else { parseExpected(144 /* ModuleKeyword */); if (token() === 11 /* StringLiteral */) { @@ -31433,7 +31748,7 @@ var Parser; identifier = parseIdentifier(); } let isTypeOnly = false; - if (token() !== 160 /* FromKeyword */ && (identifier == null ? void 0 : identifier.escapedText) === "type" && (isIdentifier2() || tokenAfterImportDefinitelyProducesImportDeclaration())) { + if (token() !== 161 /* FromKeyword */ && (identifier == null ? void 0 : identifier.escapedText) === "type" && (isIdentifier2() || tokenAfterImportDefinitelyProducesImportDeclaration())) { isTypeOnly = true; identifier = isIdentifier2() ? parseIdentifier() : void 0; } @@ -31445,7 +31760,7 @@ var Parser; token() === 42 /* AsteriskToken */ || // import * token() === 19 /* OpenBraceToken */) { importClause = parseImportClause(identifier, afterImportPos, isTypeOnly); - parseExpected(160 /* FromKeyword */); + parseExpected(161 /* FromKeyword */); } const moduleSpecifier = parseModuleSpecifier(); let assertClause; @@ -31510,7 +31825,7 @@ var Parser; return token() === 42 /* AsteriskToken */ || token() === 19 /* OpenBraceToken */; } function tokenAfterImportedIdentifierDefinitelyProducesImportDeclaration() { - return token() === 28 /* CommaToken */ || token() === 160 /* FromKeyword */; + return token() === 28 /* CommaToken */ || token() === 161 /* FromKeyword */; } function parseImportEqualsDeclaration(pos, hasJSDoc, modifiers, identifier, isTypeOnly) { parseExpected(64 /* EqualsToken */); @@ -31523,7 +31838,7 @@ var Parser; function parseImportClause(identifier, pos, isTypeOnly) { let namedBindings; if (!identifier || parseOptional(28 /* CommaToken */)) { - namedBindings = token() === 42 /* AsteriskToken */ ? parseNamespaceImport() : parseNamedImportsOrExports(274 /* NamedImports */); + namedBindings = token() === 42 /* AsteriskToken */ ? parseNamespaceImport() : parseNamedImportsOrExports(275 /* NamedImports */); } return finishNode(factory2.createImportClause(isTypeOnly, identifier, namedBindings), pos); } @@ -31559,15 +31874,15 @@ var Parser; } function parseNamedImportsOrExports(kind) { const pos = getNodePos(); - const node = kind === 274 /* NamedImports */ ? factory2.createNamedImports(parseBracketedList(23 /* ImportOrExportSpecifiers */, parseImportSpecifier, 19 /* OpenBraceToken */, 20 /* CloseBraceToken */)) : factory2.createNamedExports(parseBracketedList(23 /* ImportOrExportSpecifiers */, parseExportSpecifier, 19 /* OpenBraceToken */, 20 /* CloseBraceToken */)); + const node = kind === 275 /* NamedImports */ ? factory2.createNamedImports(parseBracketedList(23 /* ImportOrExportSpecifiers */, parseImportSpecifier, 19 /* OpenBraceToken */, 20 /* CloseBraceToken */)) : factory2.createNamedExports(parseBracketedList(23 /* ImportOrExportSpecifiers */, parseExportSpecifier, 19 /* OpenBraceToken */, 20 /* CloseBraceToken */)); return finishNode(node, pos); } function parseExportSpecifier() { const hasJSDoc = hasPrecedingJSDocComment(); - return withJSDoc(parseImportOrExportSpecifier(280 /* ExportSpecifier */), hasJSDoc); + return withJSDoc(parseImportOrExportSpecifier(281 /* ExportSpecifier */), hasJSDoc); } function parseImportSpecifier() { - return parseImportOrExportSpecifier(275 /* ImportSpecifier */); + return parseImportOrExportSpecifier(276 /* ImportSpecifier */); } function parseImportOrExportSpecifier(kind) { const pos = getNodePos(); @@ -31611,10 +31926,10 @@ var Parser; parseExpected(130 /* AsKeyword */); name = parseNameWithKeywordCheck(); } - if (kind === 275 /* ImportSpecifier */ && checkIdentifierIsKeyword) { + if (kind === 276 /* ImportSpecifier */ && checkIdentifierIsKeyword) { parseErrorAt(checkIdentifierStart, checkIdentifierEnd, Diagnostics.Identifier_expected); } - const node = kind === 275 /* ImportSpecifier */ ? factory2.createImportSpecifier(isTypeOnly, propertyName, name) : factory2.createExportSpecifier(isTypeOnly, propertyName, name); + const node = kind === 276 /* ImportSpecifier */ ? factory2.createImportSpecifier(isTypeOnly, propertyName, name) : factory2.createExportSpecifier(isTypeOnly, propertyName, name); return finishNode(node, pos); function parseNameWithKeywordCheck() { checkIdentifierIsKeyword = isKeyword(token()) && !isIdentifier2(); @@ -31641,12 +31956,12 @@ var Parser; if (parseOptional(130 /* AsKeyword */)) { exportClause = parseNamespaceExport(namespaceExportPos); } - parseExpected(160 /* FromKeyword */); + parseExpected(161 /* FromKeyword */); moduleSpecifier = parseModuleSpecifier(); } else { - exportClause = parseNamedImportsOrExports(278 /* NamedExports */); - if (token() === 160 /* FromKeyword */ || token() === 11 /* StringLiteral */ && !scanner.hasPrecedingLineBreak()) { - parseExpected(160 /* FromKeyword */); + exportClause = parseNamedImportsOrExports(279 /* NamedExports */); + if (token() === 161 /* FromKeyword */ || token() === 11 /* StringLiteral */ && !scanner.hasPrecedingLineBreak()) { + parseExpected(161 /* FromKeyword */); moduleSpecifier = parseModuleSpecifier(); } } @@ -31751,7 +32066,7 @@ var Parser; function parseJSDocTypeExpression(mayOmitBraces) { const pos = getNodePos(); const hasBrace = (mayOmitBraces ? parseOptional : parseExpected)(19 /* OpenBraceToken */); - const type = doInsideOfContext(8388608 /* JSDoc */, parseJSDocType); + const type = doInsideOfContext(16777216 /* JSDoc */, parseJSDocType); if (!mayOmitBraces || hasBrace) { parseExpectedJSDoc(20 /* CloseBraceToken */); } @@ -31790,7 +32105,7 @@ var Parser; void 0, 1 /* JS */ ); - const jsDoc = doInsideOfContext(8388608 /* JSDoc */, () => parseJSDocCommentWorker(start, length2)); + const jsDoc = doInsideOfContext(16777216 /* JSDoc */, () => parseJSDocCommentWorker(start, length2)); const sourceFile = { languageVariant: 0 /* Standard */, text: content }; const diagnostics = attachFileToDiagnostics(parseDiagnostics, sourceFile); clearState(); @@ -31801,9 +32116,9 @@ var Parser; const saveToken = currentToken; const saveParseDiagnosticsLength = parseDiagnostics.length; const saveParseErrorBeforeNextFinishedNode = parseErrorBeforeNextFinishedNode; - const comment = doInsideOfContext(8388608 /* JSDoc */, () => parseJSDocCommentWorker(start, length2)); + const comment = doInsideOfContext(16777216 /* JSDoc */, () => parseJSDocCommentWorker(start, length2)); setParent(comment, parent); - if (contextFlags & 262144 /* JavaScriptFile */) { + if (contextFlags & 524288 /* JavaScriptFile */) { if (!jsDocDiagnostics) { jsDocDiagnostics = []; } @@ -32284,7 +32599,7 @@ var Parser; switch (node.kind) { case 151 /* ObjectKeyword */: return true; - case 187 /* ArrayType */: + case 188 /* ArrayType */: return isObjectOrObjectArrayTypeReference(node.elementType); default: return isTypeReferenceNode(node) && isIdentifier(node.typeName) && node.typeName.escapedText === "Object" && !node.typeArguments; @@ -32300,7 +32615,7 @@ var Parser; typeExpression = tryParseTypeExpression(); } const comment = parseTrailingTagComments(start2, getNodePos(), indent2, indentText); - const nestedTypeLiteral = target !== 4 /* CallbackParameter */ && parseNestedTypeLiteral(typeExpression, name, target, indent2); + const nestedTypeLiteral = parseNestedTypeLiteral(typeExpression, name, target, indent2); if (nestedTypeLiteral) { typeExpression = nestedTypeLiteral; isNameFirst = true; @@ -32314,14 +32629,14 @@ var Parser; let child; let children; while (child = tryParse(() => parseChildParameterOrPropertyTag(target, indent2, name))) { - if (child.kind === 347 /* JSDocParameterTag */ || child.kind === 354 /* JSDocPropertyTag */) { + if (child.kind === 348 /* JSDocParameterTag */ || child.kind === 355 /* JSDocPropertyTag */) { children = append(children, child); - } else if (child.kind === 351 /* JSDocTemplateTag */) { + } else if (child.kind === 352 /* JSDocTemplateTag */) { parseErrorAtRange(child.tagName, Diagnostics.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag); } } if (children) { - const literal = finishNode(factory2.createJSDocTypeLiteral(children, typeExpression.type.kind === 187 /* ArrayType */), pos); + const literal = finishNode(factory2.createJSDocTypeLiteral(children, typeExpression.type.kind === 188 /* ArrayType */), pos); return finishNode(factory2.createJSDocTypeExpression(literal), pos); } } @@ -32456,11 +32771,11 @@ var Parser; let jsDocPropertyTags; let hasChildren = false; while (child = tryParse(() => parseChildPropertyTag(indent2))) { - if (child.kind === 351 /* JSDocTemplateTag */) { + if (child.kind === 352 /* JSDocTemplateTag */) { break; } hasChildren = true; - if (child.kind === 350 /* JSDocTypeTag */) { + if (child.kind === 351 /* JSDocTypeTag */) { if (childTypeTag) { const lastError = parseErrorAtCurrentToken(Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags); if (lastError) { @@ -32475,7 +32790,7 @@ var Parser; } } if (hasChildren) { - const isArrayType = typeExpression && typeExpression.type.kind === 187 /* ArrayType */; + const isArrayType = typeExpression && typeExpression.type.kind === 188 /* ArrayType */; const jsdocTypeLiteral = factory2.createJSDocTypeLiteral(jsDocPropertyTags, isArrayType); typeExpression = childTypeTag && childTypeTag.typeExpression && !isObjectOrObjectArrayTypeReference(childTypeTag.typeExpression.type) ? childTypeTag.typeExpression : finishNode(jsdocTypeLiteral, start2); end2 = typeExpression.end; @@ -32504,12 +32819,12 @@ var Parser; void 0, typeNameOrNamespaceName, body, - nested ? 4 /* NestedNamespace */ : void 0 + nested ? 8 /* NestedNamespace */ : void 0 ); return finishNode(jsDocNamespaceNode, start2); } if (nested) { - typeNameOrNamespaceName.flags |= 2048 /* IdentifierIsInJSDocNamespace */; + typeNameOrNamespaceName.flags |= 4096 /* IdentifierIsInJSDocNamespace */; } return typeNameOrNamespaceName; } @@ -32518,7 +32833,7 @@ var Parser; let child; let parameters; while (child = tryParse(() => parseChildParameterOrPropertyTag(4 /* CallbackParameter */, indent2))) { - if (child.kind === 351 /* JSDocTemplateTag */) { + if (child.kind === 352 /* JSDocTemplateTag */) { parseErrorAtRange(child.tagName, Diagnostics.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag); break; } @@ -32531,7 +32846,7 @@ var Parser; const returnTag = tryParse(() => { if (parseOptionalJsdoc(60 /* AtToken */)) { const tag = parseTag(indent2); - if (tag && tag.kind === 348 /* JSDocReturnTag */) { + if (tag && tag.kind === 349 /* JSDocReturnTag */) { return tag; } } @@ -32586,7 +32901,7 @@ var Parser; case 60 /* AtToken */: if (canParseTag) { const child = tryParseChildTag(target, indent2); - if (child && (child.kind === 347 /* JSDocParameterTag */ || child.kind === 354 /* JSDocPropertyTag */) && target !== 4 /* CallbackParameter */ && name && (isIdentifier(child.name) || !escapedTextsEqual(name, child.name.left))) { + if (child && (child.kind === 348 /* JSDocParameterTag */ || child.kind === 355 /* JSDocPropertyTag */) && name && (isIdentifier(child.name) || !escapedTextsEqual(name, child.name.left))) { return false; } return child; @@ -32651,7 +32966,7 @@ var Parser; if (isBracketed) { skipWhitespace(); parseExpected(64 /* EqualsToken */); - defaultType = doInsideOfContext(8388608 /* JSDoc */, parseJSDocType); + defaultType = doInsideOfContext(16777216 /* JSDoc */, parseJSDocType); parseExpected(24 /* CloseBracketToken */); } if (nodeIsMissing(name)) { @@ -33219,7 +33534,7 @@ function getNamedArgRegEx(name) { return result; } var tripleSlashXMLCommentStartRegEx = /^\/\/\/\s*<(\S+)\s.*?\/>/im; -var singleLinePragmaRegEx = /^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im; +var singleLinePragmaRegEx = /^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im; function extractPragmas(pragmas, range, text) { const tripleSlash = range.kind === 2 /* SingleLineCommentTrivia */ && tripleSlashXMLCommentStartRegEx.exec(text); if (tripleSlash) { @@ -33311,7 +33626,7 @@ function tagNamesAreEquivalent(lhs, rhs) { if (lhs.kind === 110 /* ThisKeyword */) { return true; } - if (lhs.kind === 294 /* JsxNamespacedName */) { + if (lhs.kind === 295 /* JsxNamespacedName */) { return lhs.namespace.escapedText === rhs.namespace.escapedText && lhs.name.escapedText === rhs.name.escapedText; } return lhs.name.escapedText === rhs.name.escapedText && tagNamesAreEquivalent(lhs.expression, rhs.expression); @@ -33364,6 +33679,7 @@ var libEntries = [ ["es2015.symbol", "lib.es2015.symbol.d.ts"], ["es2015.symbol.wellknown", "lib.es2015.symbol.wellknown.d.ts"], ["es2016.array.include", "lib.es2016.array.include.d.ts"], + ["es2017.date", "lib.es2017.date.d.ts"], ["es2017.object", "lib.es2017.object.d.ts"], ["es2017.sharedmemory", "lib.es2017.sharedmemory.d.ts"], ["es2017.string", "lib.es2017.string.d.ts"], @@ -33399,14 +33715,18 @@ var libEntries = [ ["es2022.string", "lib.es2022.string.d.ts"], ["es2022.regexp", "lib.es2022.regexp.d.ts"], ["es2023.array", "lib.es2023.array.d.ts"], + ["es2023.collection", "lib.es2023.collection.d.ts"], ["esnext.array", "lib.es2023.array.d.ts"], + ["esnext.collection", "lib.es2023.collection.d.ts"], ["esnext.symbol", "lib.es2019.symbol.d.ts"], ["esnext.asynciterable", "lib.es2018.asynciterable.d.ts"], ["esnext.intl", "lib.esnext.intl.d.ts"], + ["esnext.disposable", "lib.esnext.disposable.d.ts"], ["esnext.bigint", "lib.es2020.bigint.d.ts"], ["esnext.string", "lib.es2022.string.d.ts"], ["esnext.promise", "lib.es2021.promise.d.ts"], ["esnext.weakref", "lib.es2021.weakref.d.ts"], + ["esnext.decorators", "lib.esnext.decorators.d.ts"], ["decorators", "lib.decorators.d.ts"], ["decorators.legacy", "lib.decorators.legacy.d.ts"] ]; @@ -33814,6 +34134,7 @@ var commandOptionsWithoutBuild = [ { name: "checkJs", type: "boolean", + affectsModuleResolution: true, showInSimplifiedHelpView: true, category: Diagnostics.JavaScript_Support, description: Diagnostics.Enable_error_reporting_in_type_checked_JavaScript_files, @@ -34040,7 +34361,7 @@ var commandOptionsWithoutBuild = [ strictFlag: true, category: Diagnostics.Type_Checking, description: Diagnostics.Default_catch_clause_variables_as_unknown_instead_of_any, - defaultValueDescription: false + defaultValueDescription: Diagnostics.false_unless_strict_is_set }, { name: "alwaysStrict", @@ -35220,7 +35541,7 @@ function getTsconfigRootOptionsMap() { function convertConfigFileToObject(sourceFile, errors, jsonConversionNotifier) { var _a; const rootExpression = (_a = sourceFile.statements[0]) == null ? void 0 : _a.expression; - if (rootExpression && rootExpression.kind !== 209 /* ObjectLiteralExpression */) { + if (rootExpression && rootExpression.kind !== 210 /* ObjectLiteralExpression */) { errors.push(createDiagnosticForNodeInSourceFile( sourceFile, rootExpression, @@ -35272,7 +35593,7 @@ function convertToJson(sourceFile, rootExpression, errors, returnValue, jsonConv var _a; const result = returnValue ? {} : void 0; for (const element of node.properties) { - if (element.kind !== 302 /* PropertyAssignment */) { + if (element.kind !== 303 /* PropertyAssignment */) { errors.push(createDiagnosticForNodeInSourceFile(sourceFile, element, Diagnostics.Property_assignment_expected)); continue; } @@ -35317,15 +35638,15 @@ function convertToJson(sourceFile, rootExpression, errors, returnValue, jsonConv return valueExpression.text; case 9 /* NumericLiteral */: return Number(valueExpression.text); - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: if (valueExpression.operator !== 41 /* MinusToken */ || valueExpression.operand.kind !== 9 /* NumericLiteral */) { break; } return -Number(valueExpression.operand.text); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: const objectLiteralExpression = valueExpression; return convertObjectLiteralExpressionToJson(objectLiteralExpression, option); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return convertArrayLiteralExpressionToJson( valueExpression.elements, option && option.element @@ -36224,19 +36545,19 @@ function getFileNamesFromConfigSpecs(configFileSpecs, basePath, options, host, e const wildcardFiles = arrayFrom(wildcardFileMap.values()); return literalFiles.concat(wildcardFiles, arrayFrom(wildCardJsonFileMap.values())); } -function isExcludedFile(pathToCheck, spec, basePath, useCaseSensitiveFileNames, currentDirectory) { +function isExcludedFile(pathToCheck, spec, basePath, useCaseSensitiveFileNames2, currentDirectory) { const { validatedFilesSpec, validatedIncludeSpecs, validatedExcludeSpecs } = spec; if (!length(validatedIncludeSpecs) || !length(validatedExcludeSpecs)) return false; basePath = normalizePath(basePath); - const keyMapper = createGetCanonicalFileName(useCaseSensitiveFileNames); + const keyMapper = createGetCanonicalFileName(useCaseSensitiveFileNames2); if (validatedFilesSpec) { for (const fileName of validatedFilesSpec) { if (keyMapper(getNormalizedAbsolutePath(fileName, basePath)) === pathToCheck) return false; } } - return matchesExcludeWorker(pathToCheck, validatedExcludeSpecs, useCaseSensitiveFileNames, currentDirectory, basePath); + return matchesExcludeWorker(pathToCheck, validatedExcludeSpecs, useCaseSensitiveFileNames2, currentDirectory, basePath); } function invalidDotDotAfterRecursiveWildcard(s) { const wildcardIndex = startsWith(s, "**/") ? 0 : s.indexOf("/**/"); @@ -36246,17 +36567,17 @@ function invalidDotDotAfterRecursiveWildcard(s) { const lastDotIndex = endsWith(s, "/..") ? s.length : s.lastIndexOf("/../"); return lastDotIndex > wildcardIndex; } -function matchesExclude(pathToCheck, excludeSpecs, useCaseSensitiveFileNames, currentDirectory) { +function matchesExclude(pathToCheck, excludeSpecs, useCaseSensitiveFileNames2, currentDirectory) { return matchesExcludeWorker( pathToCheck, filter(excludeSpecs, (spec) => !invalidDotDotAfterRecursiveWildcard(spec)), - useCaseSensitiveFileNames, + useCaseSensitiveFileNames2, currentDirectory ); } -function matchesExcludeWorker(pathToCheck, excludeSpecs, useCaseSensitiveFileNames, currentDirectory, basePath) { +function matchesExcludeWorker(pathToCheck, excludeSpecs, useCaseSensitiveFileNames2, currentDirectory, basePath) { const excludePattern = getRegularExpressionForWildcard(excludeSpecs, combinePaths(normalizePath(currentDirectory), basePath), "exclude"); - const excludeRegex = excludePattern && getRegexFromPattern(excludePattern, useCaseSensitiveFileNames); + const excludeRegex = excludePattern && getRegexFromPattern(excludePattern, useCaseSensitiveFileNames2); if (!excludeRegex) return false; if (excludeRegex.test(pathToCheck)) @@ -36286,9 +36607,9 @@ function specToDiagnostic(spec, disallowTrailingRecursion) { return [Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0, spec]; } } -function getWildcardDirectories({ validatedIncludeSpecs: include, validatedExcludeSpecs: exclude }, path, useCaseSensitiveFileNames) { +function getWildcardDirectories({ validatedIncludeSpecs: include, validatedExcludeSpecs: exclude }, path, useCaseSensitiveFileNames2) { const rawExcludeRegex = getRegularExpressionForWildcard(exclude, path, "exclude"); - const excludeRegex = rawExcludeRegex && new RegExp(rawExcludeRegex, useCaseSensitiveFileNames ? "" : "i"); + const excludeRegex = rawExcludeRegex && new RegExp(rawExcludeRegex, useCaseSensitiveFileNames2 ? "" : "i"); const wildcardDirectories = {}; if (include !== void 0) { const recursiveKeys = []; @@ -36297,7 +36618,7 @@ function getWildcardDirectories({ validatedIncludeSpecs: include, validatedExclu if (excludeRegex && excludeRegex.test(spec)) { continue; } - const match = getWildcardDirectoryFromSpec(spec, useCaseSensitiveFileNames); + const match = getWildcardDirectoryFromSpec(spec, useCaseSensitiveFileNames2); if (match) { const { key, flags } = match; const existingFlags = wildcardDirectories[key]; @@ -36312,7 +36633,7 @@ function getWildcardDirectories({ validatedIncludeSpecs: include, validatedExclu for (const key in wildcardDirectories) { if (hasProperty(wildcardDirectories, key)) { for (const recursiveKey of recursiveKeys) { - if (key !== recursiveKey && containsPath(recursiveKey, key, path, !useCaseSensitiveFileNames)) { + if (key !== recursiveKey && containsPath(recursiveKey, key, path, !useCaseSensitiveFileNames2)) { delete wildcardDirectories[key]; } } @@ -36321,20 +36642,20 @@ function getWildcardDirectories({ validatedIncludeSpecs: include, validatedExclu } return wildcardDirectories; } -function getWildcardDirectoryFromSpec(spec, useCaseSensitiveFileNames) { +function getWildcardDirectoryFromSpec(spec, useCaseSensitiveFileNames2) { const match = wildcardDirectoryPattern.exec(spec); if (match) { const questionWildcardIndex = spec.indexOf("?"); const starWildcardIndex = spec.indexOf("*"); const lastDirectorySeperatorIndex = spec.lastIndexOf(directorySeparator); return { - key: useCaseSensitiveFileNames ? match[0] : toFileNameLowerCase(match[0]), + key: useCaseSensitiveFileNames2 ? match[0] : toFileNameLowerCase(match[0]), flags: questionWildcardIndex !== -1 && questionWildcardIndex < lastDirectorySeperatorIndex || starWildcardIndex !== -1 && starWildcardIndex < lastDirectorySeperatorIndex ? 1 /* Recursive */ : 0 /* None */ }; } if (isImplicitGlob(spec.substring(spec.lastIndexOf(directorySeparator) + 1))) { return { - key: removeTrailingDirectorySeparator(useCaseSensitiveFileNames ? spec : toFileNameLowerCase(spec)), + key: removeTrailingDirectorySeparator(useCaseSensitiveFileNames2 ? spec : toFileNameLowerCase(spec)), flags: 1 /* Recursive */ }; } @@ -36616,8 +36937,8 @@ function getDefaultTypeRoots(currentDirectory) { } var nodeModulesAtTypes = combinePaths("node_modules", "@types"); function arePathsEqual(path1, path2, host) { - const useCaseSensitiveFileNames = typeof host.useCaseSensitiveFileNames === "function" ? host.useCaseSensitiveFileNames() : host.useCaseSensitiveFileNames; - return comparePaths(path1, path2, !useCaseSensitiveFileNames) === 0 /* EqualTo */; + const useCaseSensitiveFileNames2 = typeof host.useCaseSensitiveFileNames === "function" ? host.useCaseSensitiveFileNames() : host.useCaseSensitiveFileNames; + return comparePaths(path1, path2, !useCaseSensitiveFileNames2) === 0 /* EqualTo */; } function getOriginalAndResolvedFileName(fileName, host, traceEnabled) { const resolvedFileName = realPath(fileName, host, traceEnabled); @@ -36905,7 +37226,7 @@ function compilerOptionValueToString(value) { return str + "}"; } function getKeyForCompilerOptions(options, affectingOptionDeclarations) { - return affectingOptionDeclarations.map((option) => compilerOptionValueToString(getCompilerOptionValue(options, option))).join("|") + (options.pathsBasePath ? `|${options.pathsBasePath}` : void 0); + return affectingOptionDeclarations.map((option) => compilerOptionValueToString(getCompilerOptionValue(options, option))).join("|") + `|${options.pathsBasePath}`; } function createCacheWithRedirects(ownOptions) { const redirectsMap = /* @__PURE__ */ new Map(); @@ -38012,6 +38333,9 @@ function loadModuleFromSelfNameReference(extensions, moduleName, directory, stat } const trailingParts = parts.slice(nameParts.length); const subpath = !length(trailingParts) ? "." : `.${directorySeparator}${trailingParts.join(directorySeparator)}`; + if (getAllowJSCompilerOption(state.compilerOptions) && !pathContainsNodeModules(directory)) { + return loadModuleFromExports(scope, extensions, subpath, state, cache, redirectedReference); + } const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */); const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */); return loadModuleFromExports(scope, priorityExtensions, subpath, state, cache, redirectedReference) || loadModuleFromExports(scope, secondaryExtensions, subpath, state, cache, redirectedReference); @@ -38359,13 +38683,10 @@ function getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirec function combineDirectoryPath(root, dir) { return ensureTrailingDirectorySeparator(combinePaths(root, dir)); } - function useCaseSensitiveFileNames() { - return !state.host.useCaseSensitiveFileNames ? true : typeof state.host.useCaseSensitiveFileNames === "boolean" ? state.host.useCaseSensitiveFileNames : state.host.useCaseSensitiveFileNames(); - } function tryLoadInputFileForPath(finalPath, entry, packagePath, isImports2) { var _a, _b, _c, _d; - if (!state.isConfigLookup && (state.compilerOptions.declarationDir || state.compilerOptions.outDir) && finalPath.indexOf("/node_modules/") === -1 && (state.compilerOptions.configFile ? containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames()) : true)) { - const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames }); + if (!state.isConfigLookup && (state.compilerOptions.declarationDir || state.compilerOptions.outDir) && finalPath.indexOf("/node_modules/") === -1 && (state.compilerOptions.configFile ? containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames(state)) : true)) { + const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames: () => useCaseSensitiveFileNames(state) }); const commonSourceDirGuesses = []; if (state.compilerOptions.rootDir || state.compilerOptions.composite && state.compilerOptions.configFilePath) { const commonDir = toAbsolutePath(getCommonSourceDirectory(state.compilerOptions, () => [], ((_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a)) || "", getCanonicalFileName)); @@ -38394,7 +38715,7 @@ function getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirec for (const commonSourceDirGuess of commonSourceDirGuesses) { const candidateDirectories = getOutputDirectoriesForBaseDirectory(commonSourceDirGuess); for (const candidateDir of candidateDirectories) { - if (containsPath(candidateDir, finalPath, !useCaseSensitiveFileNames())) { + if (containsPath(candidateDir, finalPath, !useCaseSensitiveFileNames(state))) { const pathFragment = finalPath.slice(candidateDir.length + 1); const possibleInputBase = combinePaths(commonSourceDirGuess, pathFragment); const jsAndDtsExtensions = [".mjs" /* Mjs */, ".cjs" /* Cjs */, ".js" /* Js */, ".json" /* Json */, ".d.mts" /* Dmts */, ".d.cts" /* Dcts */, ".d.ts" /* Dts */]; @@ -38404,7 +38725,7 @@ function getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirec for (const possibleExt of inputExts) { if (!extensionIsOk(extensions, possibleExt)) continue; - const possibleInputWithInputExtension = changeAnyExtension(possibleInputBase, possibleExt, ext, !useCaseSensitiveFileNames()); + const possibleInputWithInputExtension = changeAnyExtension(possibleInputBase, possibleExt, ext, !useCaseSensitiveFileNames(state)); if (state.host.fileExists(possibleInputWithInputExtension)) { return toSearchResult(withPackageId(scope, loadFileNameFromPackageJsonField( extensions, @@ -38478,11 +38799,13 @@ function loadModuleFromNearestNodeModulesDirectoryWorker(extensions, moduleName, const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */); const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */); if (priorityExtensions) { + traceIfEnabled(state, Diagnostics.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0, formatExtensions(priorityExtensions)); const result = lookup(priorityExtensions); if (result) return result; } if (secondaryExtensions && !typesScopeOnly) { + traceIfEnabled(state, Diagnostics.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0, formatExtensions(secondaryExtensions)); return lookup(secondaryExtensions); } function lookup(extensions2) { @@ -38819,6 +39142,9 @@ function traceIfEnabled(state, diagnostic, ...args) { trace(state.host, diagnostic, ...args); } } +function useCaseSensitiveFileNames(state) { + return !state.host.useCaseSensitiveFileNames ? true : typeof state.host.useCaseSensitiveFileNames === "boolean" ? state.host.useCaseSensitiveFileNames : state.host.useCaseSensitiveFileNames(); +} // src/compiler/binder.ts function getModuleInstanceState(node, visited) { @@ -38844,23 +39170,23 @@ function getModuleInstanceStateCached(node, visited = /* @__PURE__ */ new Map()) } function getModuleInstanceStateWorker(node, visited) { switch (node.kind) { - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: return 0 /* NonInstantiated */; - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: if (isEnumConst(node)) { return 2 /* ConstEnumOnly */; } break; - case 271 /* ImportDeclaration */: - case 270 /* ImportEqualsDeclaration */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: if (!hasSyntacticModifier(node, 1 /* Export */)) { return 0 /* NonInstantiated */; } break; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: const exportDeclaration = node; - if (!exportDeclaration.moduleSpecifier && exportDeclaration.exportClause && exportDeclaration.exportClause.kind === 278 /* NamedExports */) { + if (!exportDeclaration.moduleSpecifier && exportDeclaration.exportClause && exportDeclaration.exportClause.kind === 279 /* NamedExports */) { let state = 0 /* NonInstantiated */; for (const specifier of exportDeclaration.exportClause.elements) { const specifierState = getModuleInstanceStateForAliasTarget(specifier, visited); @@ -38874,7 +39200,7 @@ function getModuleInstanceStateWorker(node, visited) { return state; } break; - case 267 /* ModuleBlock */: { + case 268 /* ModuleBlock */: { let state = 0 /* NonInstantiated */; forEachChild(node, (n) => { const childState = getModuleInstanceStateCached(n, visited); @@ -38893,10 +39219,10 @@ function getModuleInstanceStateWorker(node, visited) { }); return state; } - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return getModuleInstanceState(node, visited); case 80 /* Identifier */: - if (node.flags & 2048 /* IdentifierIsInJSDocNamespace */) { + if (node.flags & 4096 /* IdentifierIsInJSDocNamespace */) { return 0 /* NonInstantiated */; } } @@ -38926,6 +39252,9 @@ function getModuleInstanceStateForAliasTarget(specifier, visited) { if (found === 1 /* Instantiated */) { return found; } + if (statement.kind === 271 /* ImportEqualsDeclaration */) { + found = 1 /* Instantiated */; + } } } if (found !== void 0) { @@ -39060,7 +39389,7 @@ function createBinder() { } } function getDeclarationName(node) { - if (node.kind === 276 /* ExportAssignment */) { + if (node.kind === 277 /* ExportAssignment */) { return node.isExportEquals ? "export=" /* ExportEquals */ : "default" /* Default */; } const name = getNameOfDeclaration(node); @@ -39069,7 +39398,7 @@ function createBinder() { const moduleName = getTextOfIdentifierOrLiteral(name); return isGlobalScopeAugmentation(node) ? "__global" : `"${moduleName}"`; } - if (name.kind === 166 /* ComputedPropertyName */) { + if (name.kind === 167 /* ComputedPropertyName */) { const nameExpression = name.expression; if (isStringOrNumericLiteralLike(nameExpression)) { return escapeLeadingUnderscores(nameExpression.text); @@ -39094,31 +39423,31 @@ function createBinder() { return isPropertyNameLiteral(name) ? getEscapedTextOfIdentifierOrLiteral(name) : void 0; } switch (node.kind) { - case 175 /* Constructor */: + case 176 /* Constructor */: return "__constructor" /* Constructor */; - case 183 /* FunctionType */: - case 178 /* CallSignature */: - case 329 /* JSDocSignature */: + case 184 /* FunctionType */: + case 179 /* CallSignature */: + case 330 /* JSDocSignature */: return "__call" /* Call */; - case 184 /* ConstructorType */: - case 179 /* ConstructSignature */: + case 185 /* ConstructorType */: + case 180 /* ConstructSignature */: return "__new" /* New */; - case 180 /* IndexSignature */: + case 181 /* IndexSignature */: return "__index" /* Index */; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return "__export" /* ExportStar */; - case 311 /* SourceFile */: + case 312 /* SourceFile */: return "export=" /* ExportEquals */; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: if (getAssignmentDeclarationKind(node) === 2 /* ModuleExports */) { return "export=" /* ExportEquals */; } Debug.fail("Unknown binary declaration kind"); break; - case 323 /* JSDocFunctionType */: + case 324 /* JSDocFunctionType */: return isJSDocConstructSignature(node) ? "__new" /* New */ : "__call" /* Call */; - case 168 /* Parameter */: - Debug.assert(node.parent.kind === 323 /* JSDocFunctionType */, "Impossible parameter parent kind", () => `parent is: ${Debug.formatSyntaxKind(node.parent.kind)}, expected JSDocFunctionType`); + case 169 /* Parameter */: + Debug.assert(node.parent.kind === 324 /* JSDocFunctionType */, "Impossible parameter parent kind", () => `parent is: ${Debug.formatSyntaxKind(node.parent.kind)}, expected JSDocFunctionType`); const functionType = node.parent; const index = functionType.parameters.indexOf(node); return "arg" + index; @@ -39165,7 +39494,7 @@ function createBinder() { messageNeedsName = false; multipleDefaultExports = true; } else { - if (symbol.declarations && symbol.declarations.length && (node.kind === 276 /* ExportAssignment */ && !node.isExportEquals)) { + if (symbol.declarations && symbol.declarations.length && (node.kind === 277 /* ExportAssignment */ && !node.isExportEquals)) { message = Diagnostics.A_module_cannot_have_multiple_default_exports; messageNeedsName = false; multipleDefaultExports = true; @@ -39204,7 +39533,7 @@ function createBinder() { function declareModuleMember(node, symbolFlags, symbolExcludes) { const hasExportModifier = !!(getCombinedModifierFlags(node) & 1 /* Export */) || jsdocTreatAsExported(node); if (symbolFlags & 2097152 /* Alias */) { - if (node.kind === 280 /* ExportSpecifier */ || node.kind === 270 /* ImportEqualsDeclaration */ && hasExportModifier) { + if (node.kind === 281 /* ExportSpecifier */ || node.kind === 271 /* ImportEqualsDeclaration */ && hasExportModifier) { return declareSymbol(container.symbol.exports, container.symbol, node, symbolFlags, symbolExcludes); } else { Debug.assertNode(container, canHaveLocals); @@ -39220,7 +39549,7 @@ function createBinder() { } else { if (isJSDocTypeAlias(node)) Debug.assert(isInJSFile(node)); - if (!isAmbientModule(node) && (hasExportModifier || container.flags & 64 /* ExportContext */)) { + if (!isAmbientModule(node) && (hasExportModifier || container.flags & 128 /* ExportContext */)) { if (!canHaveLocals(container) || !container.locals || hasSyntacticModifier(node, 1024 /* Default */) && !getDeclarationName(node)) { return declareSymbol(container.symbol.exports, container.symbol, node, symbolFlags, symbolExcludes); } @@ -39271,7 +39600,7 @@ function createBinder() { const saveThisParentContainer = thisParentContainer; const savedBlockScopeContainer = blockScopeContainer; if (containerFlags & 1 /* IsContainer */) { - if (node.kind !== 218 /* ArrowFunction */) { + if (node.kind !== 219 /* ArrowFunction */) { thisParentContainer = container; } container = blockScopeContainer = node; @@ -39293,35 +39622,35 @@ function createBinder() { const saveExceptionTarget = currentExceptionTarget; const saveActiveLabelList = activeLabelList; const saveHasExplicitReturn = hasExplicitReturn; - const isImmediatelyInvoked = containerFlags & 16 /* IsFunctionExpression */ && !hasSyntacticModifier(node, 512 /* Async */) && !node.asteriskToken && !!getImmediatelyInvokedFunctionExpression(node) || node.kind === 174 /* ClassStaticBlockDeclaration */; + const isImmediatelyInvoked = containerFlags & 16 /* IsFunctionExpression */ && !hasSyntacticModifier(node, 512 /* Async */) && !node.asteriskToken && !!getImmediatelyInvokedFunctionExpression(node) || node.kind === 175 /* ClassStaticBlockDeclaration */; if (!isImmediatelyInvoked) { currentFlow = initFlowNode({ flags: 2 /* Start */ }); if (containerFlags & (16 /* IsFunctionExpression */ | 128 /* IsObjectLiteralOrClassExpressionMethodOrAccessor */)) { currentFlow.node = node; } } - currentReturnTarget = isImmediatelyInvoked || node.kind === 175 /* Constructor */ || isInJSFile(node) && (node.kind === 261 /* FunctionDeclaration */ || node.kind === 217 /* FunctionExpression */) ? createBranchLabel() : void 0; + currentReturnTarget = isImmediatelyInvoked || node.kind === 176 /* Constructor */ || isInJSFile(node) && (node.kind === 262 /* FunctionDeclaration */ || node.kind === 218 /* FunctionExpression */) ? createBranchLabel() : void 0; currentExceptionTarget = void 0; currentBreakTarget = void 0; currentContinueTarget = void 0; activeLabelList = void 0; hasExplicitReturn = false; bindChildren(node); - node.flags &= ~2816 /* ReachabilityAndEmitFlags */; + node.flags &= ~5632 /* ReachabilityAndEmitFlags */; if (!(currentFlow.flags & 1 /* Unreachable */) && containerFlags & 8 /* IsFunctionLike */ && nodeIsPresent(node.body)) { - node.flags |= 256 /* HasImplicitReturn */; + node.flags |= 512 /* HasImplicitReturn */; if (hasExplicitReturn) - node.flags |= 512 /* HasExplicitReturn */; + node.flags |= 1024 /* HasExplicitReturn */; node.endFlowNode = currentFlow; } - if (node.kind === 311 /* SourceFile */) { + if (node.kind === 312 /* SourceFile */) { node.flags |= emitFlags; node.endFlowNode = currentFlow; } if (currentReturnTarget) { addAntecedent(currentReturnTarget, currentFlow); currentFlow = finishFlowLabel(currentReturnTarget); - if (node.kind === 175 /* Constructor */ || node.kind === 174 /* ClassStaticBlockDeclaration */ || isInJSFile(node) && (node.kind === 261 /* FunctionDeclaration */ || node.kind === 217 /* FunctionExpression */)) { + if (node.kind === 176 /* Constructor */ || node.kind === 175 /* ClassStaticBlockDeclaration */ || isInJSFile(node) && (node.kind === 262 /* FunctionDeclaration */ || node.kind === 218 /* FunctionExpression */)) { node.returnFlowNode = currentFlow; } } @@ -39338,7 +39667,7 @@ function createBinder() { seenThisKeyword = false; bindChildren(node); Debug.assertNotNode(node, isIdentifier); - node.flags = seenThisKeyword ? node.flags | 128 /* ContainsThis */ : node.flags & ~128 /* ContainsThis */; + node.flags = seenThisKeyword ? node.flags | 256 /* ContainsThis */ : node.flags & ~256 /* ContainsThis */; } else { bindChildren(node); } @@ -39347,8 +39676,8 @@ function createBinder() { blockScopeContainer = savedBlockScopeContainer; } function bindEachFunctionsFirst(nodes) { - bindEach(nodes, (n) => n.kind === 261 /* FunctionDeclaration */ ? bind(n) : void 0); - bindEach(nodes, (n) => n.kind !== 261 /* FunctionDeclaration */ ? bind(n) : void 0); + bindEach(nodes, (n) => n.kind === 262 /* FunctionDeclaration */ ? bind(n) : void 0); + bindEach(nodes, (n) => n.kind !== 262 /* FunctionDeclaration */ ? bind(n) : void 0); } function bindEach(nodes, bindFunction = bind) { if (nodes === void 0) { @@ -39368,59 +39697,59 @@ function createBinder() { inAssignmentPattern = saveInAssignmentPattern; return; } - if (node.kind >= 242 /* FirstStatement */ && node.kind <= 258 /* LastStatement */ && !options.allowUnreachableCode) { + if (node.kind >= 243 /* FirstStatement */ && node.kind <= 259 /* LastStatement */ && !options.allowUnreachableCode) { node.flowNode = currentFlow; } switch (node.kind) { - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: bindWhileStatement(node); break; - case 245 /* DoStatement */: + case 246 /* DoStatement */: bindDoStatement(node); break; - case 247 /* ForStatement */: + case 248 /* ForStatement */: bindForStatement(node); break; - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: bindForInOrForOfStatement(node); break; - case 244 /* IfStatement */: + case 245 /* IfStatement */: bindIfStatement(node); break; - case 252 /* ReturnStatement */: - case 256 /* ThrowStatement */: + case 253 /* ReturnStatement */: + case 257 /* ThrowStatement */: bindReturnOrThrow(node); break; - case 251 /* BreakStatement */: - case 250 /* ContinueStatement */: + case 252 /* BreakStatement */: + case 251 /* ContinueStatement */: bindBreakOrContinueStatement(node); break; - case 257 /* TryStatement */: + case 258 /* TryStatement */: bindTryStatement(node); break; - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: bindSwitchStatement(node); break; - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: bindCaseBlock(node); break; - case 295 /* CaseClause */: + case 296 /* CaseClause */: bindCaseClause(node); break; - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: bindExpressionStatement(node); break; - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: bindLabeledStatement(node); break; - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: bindPrefixUnaryExpressionFlow(node); break; - case 224 /* PostfixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: bindPostfixUnaryExpressionFlow(node); break; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: if (isDestructuringAssignment(node)) { inAssignmentPattern = saveInAssignmentPattern; bindDestructuringAssignmentFlow(node); @@ -39428,49 +39757,49 @@ function createBinder() { } bindBinaryExpressionFlow(node); break; - case 219 /* DeleteExpression */: + case 220 /* DeleteExpression */: bindDeleteExpressionFlow(node); break; - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: bindConditionalExpressionFlow(node); break; - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: bindVariableDeclarationFlow(node); break; - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: bindAccessExpressionFlow(node); break; - case 212 /* CallExpression */: + case 213 /* CallExpression */: bindCallExpressionFlow(node); break; - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: bindNonNullExpressionFlow(node); break; - case 352 /* JSDocTypedefTag */: - case 344 /* JSDocCallbackTag */: - case 346 /* JSDocEnumTag */: + case 353 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: + case 347 /* JSDocEnumTag */: bindJSDocTypeAlias(node); break; - case 311 /* SourceFile */: { + case 312 /* SourceFile */: { bindEachFunctionsFirst(node.statements); bind(node.endOfFileToken); break; } - case 240 /* Block */: - case 267 /* ModuleBlock */: + case 241 /* Block */: + case 268 /* ModuleBlock */: bindEachFunctionsFirst(node.statements); break; - case 207 /* BindingElement */: + case 208 /* BindingElement */: bindBindingElementFlow(node); break; - case 168 /* Parameter */: + case 169 /* Parameter */: bindParameterFlow(node); break; - case 209 /* ObjectLiteralExpression */: - case 208 /* ArrayLiteralExpression */: - case 302 /* PropertyAssignment */: - case 229 /* SpreadElement */: + case 210 /* ObjectLiteralExpression */: + case 209 /* ArrayLiteralExpression */: + case 303 /* PropertyAssignment */: + case 230 /* SpreadElement */: inAssignmentPattern = saveInAssignmentPattern; default: bindEachChild(node); @@ -39484,19 +39813,19 @@ function createBinder() { case 80 /* Identifier */: case 81 /* PrivateIdentifier */: case 110 /* ThisKeyword */: - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return containsNarrowableReference(expr); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return hasNarrowableArgument(expr); - case 216 /* ParenthesizedExpression */: - case 234 /* NonNullExpression */: + case 217 /* ParenthesizedExpression */: + case 235 /* NonNullExpression */: return isNarrowingExpression(expr.expression); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return isNarrowingBinaryExpression(expr); - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: return expr.operator === 54 /* ExclamationToken */ && isNarrowingExpression(expr.operand); - case 220 /* TypeOfExpression */: + case 221 /* TypeOfExpression */: return isNarrowingExpression(expr.expression); } return false; @@ -39515,7 +39844,7 @@ function createBinder() { } } } - if (expr.expression.kind === 210 /* PropertyAccessExpression */ && containsNarrowableReference(expr.expression.expression)) { + if (expr.expression.kind === 211 /* PropertyAccessExpression */ && containsNarrowableReference(expr.expression.expression)) { return true; } return false; @@ -39546,9 +39875,9 @@ function createBinder() { } function isNarrowableOperand(expr) { switch (expr.kind) { - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return isNarrowableOperand(expr.expression); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: switch (expr.operatorToken.kind) { case 64 /* EqualsToken */: return isNarrowableOperand(expr.left); @@ -39621,21 +39950,21 @@ function createBinder() { function isStatementCondition(node) { const parent2 = node.parent; switch (parent2.kind) { - case 244 /* IfStatement */: - case 246 /* WhileStatement */: - case 245 /* DoStatement */: + case 245 /* IfStatement */: + case 247 /* WhileStatement */: + case 246 /* DoStatement */: return parent2.expression === node; - case 247 /* ForStatement */: - case 226 /* ConditionalExpression */: + case 248 /* ForStatement */: + case 227 /* ConditionalExpression */: return parent2.condition === node; } return false; } function isLogicalExpression(node) { while (true) { - if (node.kind === 216 /* ParenthesizedExpression */) { + if (node.kind === 217 /* ParenthesizedExpression */) { node = node.expression; - } else if (node.kind === 223 /* PrefixUnaryExpression */ && node.operator === 54 /* ExclamationToken */) { + } else if (node.kind === 224 /* PrefixUnaryExpression */ && node.operator === 54 /* ExclamationToken */) { node = node.operand; } else { return isLogicalOrCoalescingBinaryExpression(node); @@ -39678,7 +40007,7 @@ function createBinder() { } function setContinueTarget(node, target) { let label = activeLabelList; - while (label && node.parent.kind === 255 /* LabeledStatement */) { + while (label && node.parent.kind === 256 /* LabeledStatement */) { label.continueTarget = target; label = label.next; node = node.parent; @@ -39729,12 +40058,12 @@ function createBinder() { bind(node.expression); addAntecedent(preLoopLabel, currentFlow); currentFlow = preLoopLabel; - if (node.kind === 249 /* ForOfStatement */) { + if (node.kind === 250 /* ForOfStatement */) { bind(node.awaitModifier); } addAntecedent(postLoopLabel, currentFlow); bind(node.initializer); - if (node.initializer.kind !== 260 /* VariableDeclarationList */) { + if (node.initializer.kind !== 261 /* VariableDeclarationList */) { bindAssignmentTargetFlow(node.initializer); } bindIterativeStatement(node.statement, postLoopLabel, preLoopLabel); @@ -39756,7 +40085,7 @@ function createBinder() { } function bindReturnOrThrow(node) { bind(node.expression); - if (node.kind === 252 /* ReturnStatement */) { + if (node.kind === 253 /* ReturnStatement */) { hasExplicitReturn = true; if (currentReturnTarget) { addAntecedent(currentReturnTarget, currentFlow); @@ -39773,7 +40102,7 @@ function createBinder() { return void 0; } function bindBreakOrContinueFlow(node, breakTarget, continueTarget) { - const flowLabel = node.kind === 251 /* BreakStatement */ ? breakTarget : continueTarget; + const flowLabel = node.kind === 252 /* BreakStatement */ ? breakTarget : continueTarget; if (flowLabel) { addAntecedent(flowLabel, currentFlow); currentFlow = unreachableFlow; @@ -39843,7 +40172,7 @@ function createBinder() { preSwitchCaseFlow = currentFlow; bind(node.caseBlock); addAntecedent(postSwitchLabel, currentFlow); - const hasDefault = forEach(node.caseBlock.clauses, (c) => c.kind === 296 /* DefaultClause */); + const hasDefault = forEach(node.caseBlock.clauses, (c) => c.kind === 297 /* DefaultClause */); node.possiblyExhaustive = !hasDefault && !postSwitchLabel.antecedents; if (!hasDefault) { addAntecedent(postSwitchLabel, createFlowSwitchClause(preSwitchCaseFlow, node, 0, 0)); @@ -39886,7 +40215,7 @@ function createBinder() { maybeBindExpressionFlowIfCall(node.expression); } function maybeBindExpressionFlowIfCall(node) { - if (node.kind === 212 /* CallExpression */) { + if (node.kind === 213 /* CallExpression */) { const call = node; if (call.expression.kind !== 108 /* SuperKeyword */ && isDottedName(call.expression)) { currentFlow = createFlowCall(currentFlow, call); @@ -39912,7 +40241,7 @@ function createBinder() { currentFlow = finishFlowLabel(postStatementLabel); } function bindDestructuringTargetFlow(node) { - if (node.kind === 225 /* BinaryExpression */ && node.operatorToken.kind === 64 /* EqualsToken */) { + if (node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 64 /* EqualsToken */) { bindAssignmentTargetFlow(node.left); } else { bindAssignmentTargetFlow(node); @@ -39921,21 +40250,21 @@ function createBinder() { function bindAssignmentTargetFlow(node) { if (isNarrowableReference(node)) { currentFlow = createFlowMutation(16 /* Assignment */, currentFlow, node); - } else if (node.kind === 208 /* ArrayLiteralExpression */) { + } else if (node.kind === 209 /* ArrayLiteralExpression */) { for (const e of node.elements) { - if (e.kind === 229 /* SpreadElement */) { + if (e.kind === 230 /* SpreadElement */) { bindAssignmentTargetFlow(e.expression); } else { bindDestructuringTargetFlow(e); } } - } else if (node.kind === 209 /* ObjectLiteralExpression */) { + } else if (node.kind === 210 /* ObjectLiteralExpression */) { for (const p of node.properties) { - if (p.kind === 302 /* PropertyAssignment */) { + if (p.kind === 303 /* PropertyAssignment */) { bindDestructuringTargetFlow(p.initializer); - } else if (p.kind === 303 /* ShorthandPropertyAssignment */) { + } else if (p.kind === 304 /* ShorthandPropertyAssignment */) { bindAssignmentTargetFlow(p.name); - } else if (p.kind === 304 /* SpreadAssignment */) { + } else if (p.kind === 305 /* SpreadAssignment */) { bindAssignmentTargetFlow(p.expression); } } @@ -40066,7 +40395,7 @@ function createBinder() { const operator = node.operatorToken.kind; if (isAssignmentOperator(operator) && !isAssignmentTarget(node)) { bindAssignmentTargetFlow(node.left); - if (operator === 64 /* EqualsToken */ && node.left.kind === 211 /* ElementAccessExpression */) { + if (operator === 64 /* EqualsToken */ && node.left.kind === 212 /* ElementAccessExpression */) { const elementAccess = node.left; if (isNarrowableOperand(elementAccess.expression)) { currentFlow = createFlowMutation(256 /* ArrayMutation */, currentFlow, node); @@ -40094,7 +40423,7 @@ function createBinder() { } function bindDeleteExpressionFlow(node) { bindEachChild(node); - if (node.expression.kind === 210 /* PropertyAccessExpression */) { + if (node.expression.kind === 211 /* PropertyAccessExpression */) { bindAssignmentTargetFlow(node.expression); } } @@ -40159,7 +40488,7 @@ function createBinder() { } function bindJSDocTypeAlias(node) { bind(node.tagName); - if (node.kind !== 346 /* JSDocEnumTag */ && node.fullName) { + if (node.kind !== 347 /* JSDocEnumTag */ && node.fullName) { setParent(node.fullName, node); setParentRecursive( node.fullName, @@ -40174,7 +40503,7 @@ function createBinder() { function bindJSDocClassTag(node) { bindEachChild(node); const host = getHostSignatureFromJSDoc(node); - if (host && host.kind !== 173 /* MethodDeclaration */) { + if (host && host.kind !== 174 /* MethodDeclaration */) { addDeclarationToSymbol(host.symbol, host, 32 /* Class */); } } @@ -40187,15 +40516,15 @@ function createBinder() { } function bindOptionalChainRest(node) { switch (node.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: bind(node.questionDotToken); bind(node.name); break; - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: bind(node.questionDotToken); bind(node.argumentExpression); break; - case 212 /* CallExpression */: + case 213 /* CallExpression */: bind(node.questionDotToken); bindEach(node.typeArguments); bindEach(node.arguments); @@ -40242,7 +40571,7 @@ function createBinder() { bindOptionalChainFlow(node); } else { const expr = skipParentheses(node.expression); - if (expr.kind === 217 /* FunctionExpression */ || expr.kind === 218 /* ArrowFunction */) { + if (expr.kind === 218 /* FunctionExpression */ || expr.kind === 219 /* ArrowFunction */) { bindEach(node.typeArguments); bindEach(node.arguments); bind(node.expression); @@ -40253,7 +40582,7 @@ function createBinder() { } } } - if (node.expression.kind === 210 /* PropertyAccessExpression */) { + if (node.expression.kind === 211 /* PropertyAccessExpression */) { const propertyAccess = node.expression; if (isIdentifier(propertyAccess.name) && isNarrowableOperand(propertyAccess.expression) && isPushOrUnshiftIdentifier(propertyAccess.name)) { currentFlow = createFlowMutation(256 /* ArrayMutation */, currentFlow, node); @@ -40268,39 +40597,39 @@ function createBinder() { } function declareSymbolAndAddToSymbolTable(node, symbolFlags, symbolExcludes) { switch (container.kind) { - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return declareModuleMember(node, symbolFlags, symbolExcludes); - case 311 /* SourceFile */: + case 312 /* SourceFile */: return declareSourceFileMember(node, symbolFlags, symbolExcludes); - case 230 /* ClassExpression */: - case 262 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 263 /* ClassDeclaration */: return declareClassMember(node, symbolFlags, symbolExcludes); - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return declareSymbol(container.symbol.exports, container.symbol, node, symbolFlags, symbolExcludes); - case 186 /* TypeLiteral */: - case 328 /* JSDocTypeLiteral */: - case 209 /* ObjectLiteralExpression */: - case 263 /* InterfaceDeclaration */: - case 291 /* JsxAttributes */: + case 187 /* TypeLiteral */: + case 329 /* JSDocTypeLiteral */: + case 210 /* ObjectLiteralExpression */: + case 264 /* InterfaceDeclaration */: + case 292 /* JsxAttributes */: return declareSymbol(container.symbol.members, container.symbol, node, symbolFlags, symbolExcludes); - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 329 /* JSDocSignature */: - case 180 /* IndexSignature */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 323 /* JSDocFunctionType */: - case 174 /* ClassStaticBlockDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 199 /* MappedType */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 330 /* JSDocSignature */: + case 181 /* IndexSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 324 /* JSDocFunctionType */: + case 175 /* ClassStaticBlockDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 200 /* MappedType */: if (container.locals) Debug.assertNode(container, canHaveLocals); return declareSymbol( @@ -40331,10 +40660,10 @@ function createBinder() { return !!body && body.statements.some((s) => isExportDeclaration(s) || isExportAssignment(s)); } function setExportContextFlag(node) { - if (node.flags & 16777216 /* Ambient */ && !hasExportDeclarations(node)) { - node.flags |= 64 /* ExportContext */; + if (node.flags & 33554432 /* Ambient */ && !hasExportDeclarations(node)) { + node.flags |= 128 /* ExportContext */; } else { - node.flags &= ~64 /* ExportContext */; + node.flags &= ~128 /* ExportContext */; } } function bindModuleDeclaration(node) { @@ -40402,10 +40731,10 @@ function createBinder() { } function bindBlockScopedDeclaration(node, symbolFlags, symbolExcludes) { switch (blockScopeContainer.kind) { - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: declareModuleMember(node, symbolFlags, symbolExcludes); break; - case 311 /* SourceFile */: + case 312 /* SourceFile */: if (isExternalOrCommonJsModule(container)) { declareModuleMember(node, symbolFlags, symbolExcludes); break; @@ -40437,7 +40766,7 @@ function createBinder() { const saveCurrentFlow = currentFlow; for (const typeAlias of delayedTypeAliases) { const host = typeAlias.parent.parent; - container = findAncestor(host.parent, (n) => !!(getContainerFlags(n) & 1 /* IsContainer */)) || file; + container = getEnclosingContainer(host) || file; blockScopeContainer = getEnclosingBlockScopeContainer(host) || file; currentFlow = initFlowNode({ flags: 2 /* Start */ }); parent = typeAlias; @@ -40495,7 +40824,7 @@ function createBinder() { currentFlow = saveCurrentFlow; } function checkContextualIdentifier(node) { - if (!file.parseDiagnostics.length && !(node.flags & 16777216 /* Ambient */) && !(node.flags & 8388608 /* JSDoc */) && !isIdentifierName(node)) { + if (!file.parseDiagnostics.length && !(node.flags & 33554432 /* Ambient */) && !(node.flags & 16777216 /* JSDoc */) && !isIdentifierName(node)) { const originalKeywordKind = identifierToKeywordKind(node); if (originalKeywordKind === void 0) { return; @@ -40513,14 +40842,14 @@ function createBinder() { Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module, declarationNameToString(node) )); - } else if (node.flags & 32768 /* AwaitContext */) { + } else if (node.flags & 65536 /* AwaitContext */) { file.bindDiagnostics.push(createDiagnosticForNode2( node, Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here, declarationNameToString(node) )); } - } else if (originalKeywordKind === 127 /* YieldKeyword */ && node.flags & 8192 /* YieldContext */) { + } else if (originalKeywordKind === 127 /* YieldKeyword */ && node.flags & 16384 /* YieldContext */) { file.bindDiagnostics.push(createDiagnosticForNode2( node, Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here, @@ -40608,7 +40937,7 @@ function createBinder() { } function checkStrictModeFunctionDeclaration(node) { if (languageVersion < 2 /* ES2015 */) { - if (blockScopeContainer.kind !== 311 /* SourceFile */ && blockScopeContainer.kind !== 266 /* ModuleDeclaration */ && !isFunctionLikeOrClassStaticBlockDeclaration(blockScopeContainer)) { + if (blockScopeContainer.kind !== 312 /* SourceFile */ && blockScopeContainer.kind !== 267 /* ModuleDeclaration */ && !isFunctionLikeOrClassStaticBlockDeclaration(blockScopeContainer)) { const errorSpan = getErrorSpanForNode(file, node); file.bindDiagnostics.push(createFileDiagnostic( file, @@ -40670,7 +40999,7 @@ function createBinder() { node.tracingPath = file.path; const saveInStrictMode = inStrictMode; bindWorker(node); - if (node.kind > 164 /* LastToken */) { + if (node.kind > 165 /* LastToken */) { const saveParent = parent; parent = node; const containerFlags = getContainerFlags(node); @@ -40727,7 +41056,7 @@ function createBinder() { function bindWorker(node) { switch (node.kind) { case 80 /* Identifier */: - if (node.flags & 2048 /* IdentifierIsInJSDocNamespace */) { + if (node.flags & 4096 /* IdentifierIsInJSDocNamespace */) { let parentNode = node.parent; while (parentNode && !isJSDocTypeAlias(parentNode)) { parentNode = parentNode.parent; @@ -40736,23 +41065,23 @@ function createBinder() { break; } case 110 /* ThisKeyword */: - if (currentFlow && (isExpression(node) || parent.kind === 303 /* ShorthandPropertyAssignment */)) { + if (currentFlow && (isExpression(node) || parent.kind === 304 /* ShorthandPropertyAssignment */)) { node.flowNode = currentFlow; } return checkContextualIdentifier(node); - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: if (currentFlow && isPartOfTypeQuery(node)) { node.flowNode = currentFlow; } break; - case 235 /* MetaProperty */: + case 236 /* MetaProperty */: case 108 /* SuperKeyword */: node.flowNode = currentFlow; break; case 81 /* PrivateIdentifier */: return checkPrivateIdentifier(node); - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: const expr = node; if (currentFlow && isNarrowableReference(expr)) { expr.flowNode = currentFlow; @@ -40771,7 +41100,7 @@ function createBinder() { ); } break; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: const specialKind = getAssignmentDeclarationKind(node); switch (specialKind) { case 1 /* ExportsProperty */: @@ -40806,81 +41135,81 @@ function createBinder() { Debug.fail("Unknown binary expression special property assignment kind"); } return checkStrictModeBinaryExpression(node); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return checkStrictModeCatchClause(node); - case 219 /* DeleteExpression */: + case 220 /* DeleteExpression */: return checkStrictModeDeleteExpression(node); - case 224 /* PostfixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return checkStrictModePostfixUnaryExpression(node); - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: return checkStrictModePrefixUnaryExpression(node); - case 253 /* WithStatement */: + case 254 /* WithStatement */: return checkStrictModeWithStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return checkStrictModeLabeledStatement(node); - case 196 /* ThisType */: + case 197 /* ThisType */: seenThisKeyword = true; return; - case 181 /* TypePredicate */: + case 182 /* TypePredicate */: break; - case 167 /* TypeParameter */: + case 168 /* TypeParameter */: return bindTypeParameter(node); - case 168 /* Parameter */: + case 169 /* Parameter */: return bindParameter(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return bindVariableDeclarationOrBindingElement(node); - case 207 /* BindingElement */: + case 208 /* BindingElement */: node.flowNode = currentFlow; return bindVariableDeclarationOrBindingElement(node); - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: return bindPropertyWorker(node); - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return bindPropertyOrMethodOrAccessor(node, 4 /* Property */, 0 /* PropertyExcludes */); - case 305 /* EnumMember */: + case 306 /* EnumMember */: return bindPropertyOrMethodOrAccessor(node, 8 /* EnumMember */, 900095 /* EnumMemberExcludes */); - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 180 /* IndexSignature */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 181 /* IndexSignature */: return declareSymbolAndAddToSymbolTable(node, 131072 /* Signature */, 0 /* None */); - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: return bindPropertyOrMethodOrAccessor( node, 8192 /* Method */ | (node.questionToken ? 16777216 /* Optional */ : 0 /* None */), isObjectLiteralMethod(node) ? 0 /* PropertyExcludes */ : 103359 /* MethodExcludes */ ); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return bindFunctionDeclaration(node); - case 175 /* Constructor */: + case 176 /* Constructor */: return declareSymbolAndAddToSymbolTable( node, 16384 /* Constructor */, /*symbolExcludes:*/ 0 /* None */ ); - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return bindPropertyOrMethodOrAccessor(node, 32768 /* GetAccessor */, 46015 /* GetAccessorExcludes */); - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return bindPropertyOrMethodOrAccessor(node, 65536 /* SetAccessor */, 78783 /* SetAccessorExcludes */); - case 183 /* FunctionType */: - case 323 /* JSDocFunctionType */: - case 329 /* JSDocSignature */: - case 184 /* ConstructorType */: + case 184 /* FunctionType */: + case 324 /* JSDocFunctionType */: + case 330 /* JSDocSignature */: + case 185 /* ConstructorType */: return bindFunctionOrConstructorType(node); - case 186 /* TypeLiteral */: - case 328 /* JSDocTypeLiteral */: - case 199 /* MappedType */: + case 187 /* TypeLiteral */: + case 329 /* JSDocTypeLiteral */: + case 200 /* MappedType */: return bindAnonymousTypeWorker(node); - case 338 /* JSDocClassTag */: + case 339 /* JSDocClassTag */: return bindJSDocClassTag(node); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return bindObjectLiteralExpression(node); - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return bindFunctionExpression(node); - case 212 /* CallExpression */: + case 213 /* CallExpression */: const assignmentKind = getAssignmentDeclarationKind(node); switch (assignmentKind) { case 7 /* ObjectDefinePropertyValue */: @@ -40898,60 +41227,60 @@ function createBinder() { bindCallExpression(node); } break; - case 230 /* ClassExpression */: - case 262 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 263 /* ClassDeclaration */: inStrictMode = true; return bindClassLikeDeclaration(node); - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: return bindBlockScopedDeclaration(node, 64 /* Interface */, 788872 /* InterfaceExcludes */); - case 264 /* TypeAliasDeclaration */: + case 265 /* TypeAliasDeclaration */: return bindBlockScopedDeclaration(node, 524288 /* TypeAlias */, 788968 /* TypeAliasExcludes */); - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return bindEnumDeclaration(node); - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return bindModuleDeclaration(node); - case 291 /* JsxAttributes */: + case 292 /* JsxAttributes */: return bindJsxAttributes(node); - case 290 /* JsxAttribute */: + case 291 /* JsxAttribute */: return bindJsxAttribute(node, 4 /* Property */, 0 /* PropertyExcludes */); - case 270 /* ImportEqualsDeclaration */: - case 273 /* NamespaceImport */: - case 275 /* ImportSpecifier */: - case 280 /* ExportSpecifier */: + case 271 /* ImportEqualsDeclaration */: + case 274 /* NamespaceImport */: + case 276 /* ImportSpecifier */: + case 281 /* ExportSpecifier */: return declareSymbolAndAddToSymbolTable(node, 2097152 /* Alias */, 2097152 /* AliasExcludes */); - case 269 /* NamespaceExportDeclaration */: + case 270 /* NamespaceExportDeclaration */: return bindNamespaceExportDeclaration(node); - case 272 /* ImportClause */: + case 273 /* ImportClause */: return bindImportClause(node); - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return bindExportDeclaration(node); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return bindExportAssignment(node); - case 311 /* SourceFile */: + case 312 /* SourceFile */: updateStrictModeStatementList(node.statements); return bindSourceFileIfExternalModule(); - case 240 /* Block */: + case 241 /* Block */: if (!isFunctionLikeOrClassStaticBlockDeclaration(node.parent)) { return; } - case 267 /* ModuleBlock */: + case 268 /* ModuleBlock */: return updateStrictModeStatementList(node.statements); - case 347 /* JSDocParameterTag */: - if (node.parent.kind === 329 /* JSDocSignature */) { + case 348 /* JSDocParameterTag */: + if (node.parent.kind === 330 /* JSDocSignature */) { return bindParameter(node); } - if (node.parent.kind !== 328 /* JSDocTypeLiteral */) { + if (node.parent.kind !== 329 /* JSDocTypeLiteral */) { break; } - case 354 /* JSDocPropertyTag */: + case 355 /* JSDocPropertyTag */: const propTag = node; - const flags = propTag.isBracketed || propTag.typeExpression && propTag.typeExpression.type.kind === 322 /* JSDocOptionalType */ ? 4 /* Property */ | 16777216 /* Optional */ : 4 /* Property */; + const flags = propTag.isBracketed || propTag.typeExpression && propTag.typeExpression.type.kind === 323 /* JSDocOptionalType */ ? 4 /* Property */ | 16777216 /* Optional */ : 4 /* Property */; return declareSymbolAndAddToSymbolTable(propTag, flags, 0 /* PropertyExcludes */); - case 352 /* JSDocTypedefTag */: - case 344 /* JSDocCallbackTag */: - case 346 /* JSDocEnumTag */: + case 353 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: + case 347 /* JSDocEnumTag */: return (delayedTypeAliases || (delayedTypeAliases = [])).push(node); - case 345 /* JSDocOverloadTag */: + case 346 /* JSDocOverloadTag */: return bind(node.typeExpression); } } @@ -41103,8 +41432,8 @@ function createBinder() { false ); switch (thisContainer.kind) { - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: let constructorSymbol = thisContainer.symbol; if (isBinaryExpression(thisContainer.parent) && thisContainer.parent.operatorToken.kind === 64 /* EqualsToken */) { const l = thisContainer.parent.left; @@ -41122,12 +41451,12 @@ function createBinder() { addDeclarationToSymbol(constructorSymbol, constructorSymbol.valueDeclaration, 32 /* Class */); } break; - case 175 /* Constructor */: - case 171 /* PropertyDeclaration */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 174 /* ClassStaticBlockDeclaration */: + case 176 /* Constructor */: + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 175 /* ClassStaticBlockDeclaration */: const containingClass = thisContainer.parent; const symbolTable = isStatic(thisContainer) ? containingClass.symbol.exports : containingClass.symbol.members; if (hasDynamicName(node)) { @@ -41144,7 +41473,7 @@ function createBinder() { ); } break; - case 311 /* SourceFile */: + case 312 /* SourceFile */: if (hasDynamicName(node)) { break; } else if (thisContainer.commonJsModuleIndicator) { @@ -41153,7 +41482,7 @@ function createBinder() { declareSymbolAndAddToSymbolTable(node, 1 /* FunctionScopedVariable */, 111550 /* FunctionScopedVariableExcludes */); } break; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: break; default: Debug.failBadSyntaxKind(thisContainer); @@ -41181,7 +41510,7 @@ function createBinder() { function bindSpecialPropertyDeclaration(node) { if (node.expression.kind === 110 /* ThisKeyword */) { bindThisPropertyAssignment(node); - } else if (isBindableStaticAccessExpression(node) && node.parent.parent.kind === 311 /* SourceFile */) { + } else if (isBindableStaticAccessExpression(node) && node.parent.parent.kind === 312 /* SourceFile */) { if (isPrototypeAccess(node.expression)) { bindPrototypePropertyAssignment(node, node.parent); } else { @@ -41230,7 +41559,7 @@ function createBinder() { } function bindObjectDefinePropertyAssignment(node) { let namespaceSymbol = lookupSymbolForPropertyAccess(node.arguments[0]); - const isToplevel = node.parent.parent.kind === 311 /* SourceFile */; + const isToplevel = node.parent.parent.kind === 312 /* SourceFile */; namespaceSymbol = bindPotentiallyMissingNamespaces( namespaceSymbol, node.arguments[0], @@ -41344,7 +41673,7 @@ function createBinder() { declareSymbol(symbolTable, namespaceSymbol, declaration, includes | 67108864 /* Assignment */, excludes & ~67108864 /* Assignment */); } function isTopLevelNamespaceAssignment(propertyAccess) { - return isBinaryExpression(propertyAccess.parent) ? getParentOfBinaryExpression(propertyAccess.parent).parent.kind === 311 /* SourceFile */ : propertyAccess.parent.parent.kind === 311 /* SourceFile */; + return isBinaryExpression(propertyAccess.parent) ? getParentOfBinaryExpression(propertyAccess.parent).parent.kind === 312 /* SourceFile */ : propertyAccess.parent.parent.kind === 312 /* SourceFile */; } function bindPropertyAssignment(name, propertyAccess, isPrototypeProperty, containerIsClass) { let namespaceSymbol = lookupSymbolForPropertyAccess(name, container) || lookupSymbolForPropertyAccess(name, blockScopeContainer); @@ -41406,7 +41735,7 @@ function createBinder() { } } function bindClassLikeDeclaration(node) { - if (node.kind === 262 /* ClassDeclaration */) { + if (node.kind === 263 /* ClassDeclaration */) { bindBlockScopedDeclaration(node, 32 /* Class */, 899503 /* ClassExcludes */); } else { const bindingName = node.name ? node.name.escapedText : "__class" /* Class */; @@ -41435,7 +41764,7 @@ function createBinder() { checkStrictModeEvalOrArguments(node, node.name); } if (!isBindingPattern(node.name)) { - const possibleVariableDecl = node.kind === 259 /* VariableDeclaration */ ? node : node.parent.parent; + const possibleVariableDecl = node.kind === 260 /* VariableDeclaration */ ? node : node.parent.parent; if (isInJSFile(node) && shouldResolveJsRequire(options) && isVariableDeclarationInitializedToBareOrAccessedRequire(possibleVariableDecl) && !getJSDocTypeTag(node) && !(getCombinedModifierFlags(node) & 1 /* Export */)) { declareSymbolAndAddToSymbolTable(node, 2097152 /* Alias */, 2097152 /* AliasExcludes */); } else if (isBlockOrCatchScoped(node)) { @@ -41448,10 +41777,10 @@ function createBinder() { } } function bindParameter(node) { - if (node.kind === 347 /* JSDocParameterTag */ && container.kind !== 329 /* JSDocSignature */) { + if (node.kind === 348 /* JSDocParameterTag */ && container.kind !== 330 /* JSDocSignature */) { return; } - if (inStrictMode && !(node.flags & 16777216 /* Ambient */)) { + if (inStrictMode && !(node.flags & 33554432 /* Ambient */)) { checkStrictModeEvalOrArguments(node, node.name); } if (isBindingPattern(node.name)) { @@ -41465,9 +41794,9 @@ function createBinder() { } } function bindFunctionDeclaration(node) { - if (!file.isDeclarationFile && !(node.flags & 16777216 /* Ambient */)) { + if (!file.isDeclarationFile && !(node.flags & 33554432 /* Ambient */)) { if (isAsyncFunction(node)) { - emitFlags |= 2048 /* HasAsyncFunctions */; + emitFlags |= 4096 /* HasAsyncFunctions */; } } checkStrictModeFunctionName(node); @@ -41479,9 +41808,9 @@ function createBinder() { } } function bindFunctionExpression(node) { - if (!file.isDeclarationFile && !(node.flags & 16777216 /* Ambient */)) { + if (!file.isDeclarationFile && !(node.flags & 33554432 /* Ambient */)) { if (isAsyncFunction(node)) { - emitFlags |= 2048 /* HasAsyncFunctions */; + emitFlags |= 4096 /* HasAsyncFunctions */; } } if (currentFlow) { @@ -41492,8 +41821,8 @@ function createBinder() { return bindAnonymousDeclaration(node, 16 /* Function */, bindingName); } function bindPropertyOrMethodOrAccessor(node, symbolFlags, symbolExcludes) { - if (!file.isDeclarationFile && !(node.flags & 16777216 /* Ambient */) && isAsyncFunction(node)) { - emitFlags |= 2048 /* HasAsyncFunctions */; + if (!file.isDeclarationFile && !(node.flags & 33554432 /* Ambient */) && isAsyncFunction(node)) { + emitFlags |= 4096 /* HasAsyncFunctions */; } if (currentFlow && isObjectLiteralOrClassExpressionMethodOrAccessor(node)) { node.flowNode = currentFlow; @@ -41521,7 +41850,7 @@ function createBinder() { } else { declareSymbolAndAddToSymbolTable(node, 262144 /* TypeParameter */, 526824 /* TypeParameterExcludes */); } - } else if (node.parent.kind === 194 /* InferType */) { + } else if (node.parent.kind === 195 /* InferType */) { const container2 = getInferTypeContainer(node.parent); if (container2) { Debug.assertNode(container2, canHaveLocals); @@ -41552,14 +41881,14 @@ function createBinder() { if (currentFlow === unreachableFlow) { const reportError = ( // report error on all statements except empty ones - isStatementButNotDeclaration(node) && node.kind !== 241 /* EmptyStatement */ || // report error on class declarations - node.kind === 262 /* ClassDeclaration */ || // report error on instantiated modules or const-enums only modules if preserveConstEnums is set - node.kind === 266 /* ModuleDeclaration */ && shouldReportErrorOnModuleDeclaration(node) + isStatementButNotDeclaration(node) && node.kind !== 242 /* EmptyStatement */ || // report error on class declarations + node.kind === 263 /* ClassDeclaration */ || // report error on instantiated modules or const-enums only modules if preserveConstEnums is set + node.kind === 267 /* ModuleDeclaration */ && shouldReportErrorOnModuleDeclaration(node) ); if (reportError) { currentFlow = reportedUnreachableFlow; if (!options.allowUnreachableCode) { - const isError = unreachableCodeIsError(options) && !(node.flags & 16777216 /* Ambient */) && (!isVariableStatement(node) || !!(getCombinedNodeFlags(node.declarationList) & 3 /* BlockScoped */) || node.declarationList.declarations.some((d) => !!d.initializer)); + const isError = unreachableCodeIsError(options) && !(node.flags & 33554432 /* Ambient */) && (!isVariableStatement(node) || !!(getCombinedNodeFlags(node.declarationList) & 7 /* BlockScoped */) || node.declarationList.declarations.some((d) => !!d.initializer)); eachUnreachableRange(node, (start, end) => errorOrSuggestionOnRange(isError, start, end, Diagnostics.Unreachable_code_detected)); } } @@ -41578,16 +41907,16 @@ function eachUnreachableRange(node, cb) { } function isExecutableStatement(s) { return !isFunctionDeclaration(s) && !isPurelyTypeDeclaration(s) && !isEnumDeclaration(s) && // `var x;` may declare a variable used above - !(isVariableStatement(s) && !(getCombinedNodeFlags(s) & (1 /* Let */ | 2 /* Const */)) && s.declarationList.declarations.some((d) => !d.initializer)); + !(isVariableStatement(s) && !(getCombinedNodeFlags(s) & 7 /* BlockScoped */) && s.declarationList.declarations.some((d) => !d.initializer)); } function isPurelyTypeDeclaration(s) { switch (s.kind) { - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: return true; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return getModuleInstanceState(s) !== 1 /* Instantiated */; - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return hasSyntacticModifier(s, 2048 /* Const */); default: return false; @@ -41622,54 +41951,54 @@ function isExportsOrModuleExportsOrAlias(sourceFile, node) { } function getContainerFlags(node) { switch (node.kind) { - case 230 /* ClassExpression */: - case 262 /* ClassDeclaration */: - case 265 /* EnumDeclaration */: - case 209 /* ObjectLiteralExpression */: - case 186 /* TypeLiteral */: - case 328 /* JSDocTypeLiteral */: - case 291 /* JsxAttributes */: + case 231 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 266 /* EnumDeclaration */: + case 210 /* ObjectLiteralExpression */: + case 187 /* TypeLiteral */: + case 329 /* JSDocTypeLiteral */: + case 292 /* JsxAttributes */: return 1 /* IsContainer */; - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: return 1 /* IsContainer */ | 64 /* IsInterface */; - case 266 /* ModuleDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 199 /* MappedType */: - case 180 /* IndexSignature */: + case 267 /* ModuleDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 200 /* MappedType */: + case 181 /* IndexSignature */: return 1 /* IsContainer */ | 32 /* HasLocals */; - case 311 /* SourceFile */: + case 312 /* SourceFile */: return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */; - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 173 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: if (isObjectLiteralOrClassExpressionMethodOrAccessor(node)) { return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */ | 8 /* IsFunctionLike */ | 128 /* IsObjectLiteralOrClassExpressionMethodOrAccessor */; } - case 175 /* Constructor */: - case 261 /* FunctionDeclaration */: - case 172 /* MethodSignature */: - case 178 /* CallSignature */: - case 329 /* JSDocSignature */: - case 323 /* JSDocFunctionType */: - case 183 /* FunctionType */: - case 179 /* ConstructSignature */: - case 184 /* ConstructorType */: - case 174 /* ClassStaticBlockDeclaration */: + case 176 /* Constructor */: + case 262 /* FunctionDeclaration */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 330 /* JSDocSignature */: + case 324 /* JSDocFunctionType */: + case 184 /* FunctionType */: + case 180 /* ConstructSignature */: + case 185 /* ConstructorType */: + case 175 /* ClassStaticBlockDeclaration */: return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */ | 8 /* IsFunctionLike */; - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */ | 8 /* IsFunctionLike */ | 16 /* IsFunctionExpression */; - case 267 /* ModuleBlock */: + case 268 /* ModuleBlock */: return 4 /* IsControlFlowContainer */; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return node.initializer ? 4 /* IsControlFlowContainer */ : 0; - case 298 /* CatchClause */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 268 /* CaseBlock */: + case 299 /* CatchClause */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 269 /* CaseBlock */: return 2 /* IsBlockScopedContainer */ | 32 /* HasLocals */; - case 240 /* Block */: + case 241 /* Block */: return isFunctionLike(node.parent) || isClassStaticBlockDeclaration(node.parent) ? 0 /* None */ : 2 /* IsBlockScopedContainer */ | 32 /* HasLocals */; } return 0 /* None */; @@ -41830,7 +42159,7 @@ function createGetSymbolWalker(getRestTypeOfSignature, getTypePredicateOfSignatu symbol.exports.forEach(visitSymbol); } forEach(symbol.declarations, (d) => { - if (d.type && d.type.kind === 185 /* TypeQuery */) { + if (d.type && d.type.kind === 186 /* TypeQuery */) { const query = d.type; const entity = getResolvedSymbol(getFirstIdentifier2(query.exprName)); visitSymbol(entity); @@ -42206,7 +42535,7 @@ function tryGetModuleNameFromAmbientModule(moduleSymbol, checker) { if (originalExportSymbol === d.symbol) return topNamespace.parent.parent; function getTopNamespace(namespaceDeclaration) { - while (namespaceDeclaration.flags & 4 /* NestedNamespace */) { + while (namespaceDeclaration.flags & 8 /* NestedNamespace */) { namespaceDeclaration = namespaceDeclaration.parent; } return namespaceDeclaration; @@ -42236,7 +42565,9 @@ function tryGetModuleNameFromPaths(relativeToBaseUrl, paths, allowedEndings, hos for (const { ending, value } of candidates) { if (value.length >= prefix.length + suffix.length && startsWith(value, prefix) && endsWith(value, suffix) && validateEnding({ ending, value })) { const matchedStar = value.substring(prefix.length, value.length - suffix.length); - return pathIsRelative(matchedStar) ? void 0 : key.replace("*", matchedStar); + if (!pathIsRelative(matchedStar)) { + return key.replace("*", matchedStar); + } } } } else if (some(candidates, (c) => c.ending !== 0 /* Minimal */ && pattern === c.value) || some(candidates, (c) => c.ending === 0 /* Minimal */ && pattern === c.value && validateEnding(c))) { @@ -42308,7 +42639,7 @@ function tryGetModuleNameFromExports(options, targetFilePath, packageDirectory, for (const key of getOwnKeys(exports)) { if (key === "default" || conditions.indexOf(key) >= 0 || isApplicableVersionedTypesKey(conditions, key)) { const subTarget = exports[key]; - const result = tryGetModuleNameFromExports(options, targetFilePath, packageDirectory, packageName, subTarget, conditions); + const result = tryGetModuleNameFromExports(options, targetFilePath, packageDirectory, packageName, subTarget, conditions, mode); if (result) { return result; } @@ -42651,6 +42982,7 @@ var CheckMode = /* @__PURE__ */ ((CheckMode3) => { CheckMode3[CheckMode3["IsForSignatureHelp"] = 16] = "IsForSignatureHelp"; CheckMode3[CheckMode3["IsForStringLiteralArgumentCompletions"] = 32] = "IsForStringLiteralArgumentCompletions"; CheckMode3[CheckMode3["RestBindingElement"] = 64] = "RestBindingElement"; + CheckMode3[CheckMode3["TypeOnly"] = 128] = "TypeOnly"; return CheckMode3; })(CheckMode || {}); var SignatureCheckMode = /* @__PURE__ */ ((SignatureCheckMode3) => { @@ -42721,6 +43053,7 @@ function createTypeChecker(host) { var moduleKind = getEmitModuleKind(compilerOptions); var legacyDecorators = !!compilerOptions.experimentalDecorators; var useDefineForClassFields = getUseDefineForClassFields(compilerOptions); + var emitStandardClassFields = getEmitStandardClassFields(compilerOptions); var allowSyntheticDefaultImports = getAllowSyntheticDefaultImports(compilerOptions); var strictNullChecks = getStrictOptionValue(compilerOptions, "strictNullChecks"); var strictFunctionTypes = getStrictOptionValue(compilerOptions, "strictFunctionTypes"); @@ -42748,6 +43081,10 @@ function createTypeChecker(host) { var isolatedModulesLikeFlagName = compilerOptions.verbatimModuleSyntax ? "verbatimModuleSyntax" : "isolatedModules"; var canCollectSymbolAliasAccessabilityData = !compilerOptions.verbatimModuleSyntax || !!compilerOptions.importsNotUsedAsValues; var apparentArgumentCount; + var lastGetCombinedNodeFlagsNode; + var lastGetCombinedNodeFlagsResult = 0 /* None */; + var lastGetCombinedModifierFlagsNode; + var lastGetCombinedModifierFlagsResult = 0 /* None */; const checker = { getNodeCount: () => reduceLeft(host.getSourceFiles(), (n, s) => n + s.nodeCount, 0), getIdentifierCount: () => reduceLeft(host.getSourceFiles(), (n, s) => n + s.identifierCount, 0), @@ -42807,7 +43144,7 @@ function createTypeChecker(host) { return node ? getTypeFromTypeNode(node) : errorType; }, getParameterType: getTypeAtPosition, - getParameterIdentifierNameAtPosition, + getParameterIdentifierInfoAtPosition, getPromisedTypeOfPromise, getAwaitedType: (type) => getAwaitedType(type), getReturnTypeOfSignature, @@ -42925,13 +43262,24 @@ function createTypeChecker(host) { getTypeOfPropertyOfContextualType, getFullyQualifiedName, getResolvedSignature: (node, candidatesOutArray, argumentCount) => getResolvedSignatureWorker(node, candidatesOutArray, argumentCount, 0 /* Normal */), - getResolvedSignatureForStringLiteralCompletions: (call, editingArgument, candidatesOutArray) => runWithInferenceBlockedFromSourceNode(editingArgument, () => getResolvedSignatureWorker( - call, - candidatesOutArray, - /*argumentCount*/ - void 0, - 32 /* IsForStringLiteralArgumentCompletions */ - )), + getResolvedSignatureForStringLiteralCompletions: (call, editingArgument, candidatesOutArray, checkMode = 32 /* IsForStringLiteralArgumentCompletions */) => { + if (checkMode & 32 /* IsForStringLiteralArgumentCompletions */) { + return runWithInferenceBlockedFromSourceNode(editingArgument, () => getResolvedSignatureWorker( + call, + candidatesOutArray, + /*argumentCount*/ + void 0, + checkMode & ~32 /* IsForStringLiteralArgumentCompletions */ + )); + } + return runWithoutResolvedSignatureCaching(editingArgument, () => getResolvedSignatureWorker( + call, + candidatesOutArray, + /*argumentCount*/ + void 0, + checkMode & ~32 /* IsForStringLiteralArgumentCompletions */ + )); + }, getResolvedSignatureForSignatureHelp: (node, candidatesOutArray, argumentCount) => runWithoutResolvedSignatureCaching(node, () => getResolvedSignatureWorker(node, candidatesOutArray, argumentCount, 16 /* IsForSignatureHelp */)), getExpandedParameters, hasEffectiveRestParameter, @@ -43105,7 +43453,7 @@ function createTypeChecker(host) { Debug.assert(!!(getNodeLinks(file).flags & 1 /* TypeChecked */)); diagnostics2 = addRange(diagnostics2, suggestionDiagnostics.getDiagnostics(file.fileName)); checkUnusedIdentifiers(getPotentiallyUnusedIdentifiers(file), (containingNode, kind, diag2) => { - if (!containsParseError(containingNode) && !unusedIsError(kind, !!(containingNode.flags & 16777216 /* Ambient */))) { + if (!containsParseError(containingNode) && !unusedIsError(kind, !!(containingNode.flags & 33554432 /* Ambient */))) { (diagnostics2 || (diagnostics2 = [])).push({ ...diag2, category: 2 /* Suggestion */ }); } }); @@ -43131,14 +43479,19 @@ function createTypeChecker(host) { typeHasCallOrConstructSignatures }; function runWithoutResolvedSignatureCaching(node, fn) { - const containingCall = findAncestor(node, isCallLikeExpression); - const containingCallResolvedSignature = containingCall && getNodeLinks(containingCall).resolvedSignature; - if (containingCall) { - getNodeLinks(containingCall).resolvedSignature = void 0; + const cachedSignatures = []; + while (node) { + if (isCallLikeExpression(node)) { + const nodeLinks2 = getNodeLinks(node); + const resolvedSignature = nodeLinks2.resolvedSignature; + cachedSignatures.push([nodeLinks2, resolvedSignature]); + nodeLinks2.resolvedSignature = void 0; + } + node = node.parent; } const result = fn(); - if (containingCall) { - getNodeLinks(containingCall).resolvedSignature = containingCallResolvedSignature; + for (const [nodeLinks2, resolvedSignature] of cachedSignatures) { + nodeLinks2.resolvedSignature = resolvedSignature; } return result; } @@ -43444,7 +43797,7 @@ function createTypeChecker(host) { }; var amalgamatedDuplicates; var reverseMappedCache = /* @__PURE__ */ new Map(); - var inInferTypeForHomomorphicMappedType = false; + var homomorphicMappedTypeInferenceStack = []; var ambientModulesCache; var patternAmbientModules; var patternAmbientModuleAugmentations; @@ -43485,6 +43838,8 @@ function createTypeChecker(host) { var deferredGlobalImportMetaType; var deferredGlobalImportMetaExpressionType; var deferredGlobalImportCallOptionsType; + var deferredGlobalDisposableType; + var deferredGlobalAsyncDisposableType; var deferredGlobalExtractSymbol; var deferredGlobalOmitSymbol; var deferredGlobalAwaitedSymbol; @@ -43713,7 +44068,7 @@ function createTypeChecker(host) { return !!symbol.valueDeclaration && isDeprecatedDeclaration(symbol.valueDeclaration) || length(symbol.declarations) && every(symbol.declarations, isDeprecatedDeclaration); } function isDeprecatedDeclaration(declaration) { - return !!(getCombinedNodeFlags(declaration) & 268435456 /* Deprecated */); + return !!(getCombinedNodeFlagsCached(declaration) & 536870912 /* Deprecated */); } function addDeprecatedSuggestion(location, declarations, deprecatedEntity) { const diagnostic = createDiagnosticForNode(location, Diagnostics._0_is_deprecated, deprecatedEntity); @@ -43927,7 +44282,7 @@ function createTypeChecker(host) { if (isGlobalScopeAugmentation(moduleAugmentation)) { mergeSymbolTable(globals, moduleAugmentation.symbol.exports); } else { - const moduleNotFoundError = !(moduleName.parent.parent.flags & 16777216 /* Ambient */) ? Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found : void 0; + const moduleNotFoundError = !(moduleName.parent.parent.flags & 33554432 /* Ambient */) ? Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found : void 0; let mainModule = resolveExternalModuleNameWorker( moduleName, moduleName, @@ -43991,7 +44346,7 @@ function createTypeChecker(host) { return nodeLinks[nodeId] || (nodeLinks[nodeId] = new NodeLinks()); } function isGlobalSourceFile(node) { - return node.kind === 311 /* SourceFile */ && !isExternalOrCommonJsModule(node); + return node.kind === 312 /* SourceFile */ && !isExternalOrCommonJsModule(node); } function getSymbol(symbols, name, meaning) { if (meaning) { @@ -44002,7 +44357,7 @@ function createTypeChecker(host) { return symbol; } if (symbol.flags & 2097152 /* Alias */) { - const targetFlags = getAllSymbolFlags(symbol); + const targetFlags = getSymbolFlags(symbol); if (targetFlags & meaning) { return symbol; } @@ -44025,7 +44380,7 @@ function createTypeChecker(host) { const useFile = getSourceFileOfNode(usage); const declContainer = getEnclosingBlockScopeContainer(declaration); if (declarationFile !== useFile) { - if (moduleKind && (declarationFile.externalModuleIndicator || useFile.externalModuleIndicator) || !outFile(compilerOptions) || isInTypeQuery(usage) || declaration.flags & 16777216 /* Ambient */) { + if (moduleKind && (declarationFile.externalModuleIndicator || useFile.externalModuleIndicator) || !outFile(compilerOptions) || isInTypeQuery(usage) || declaration.flags & 33554432 /* Ambient */) { return true; } if (isUsedInFunctionOrInstanceProperty(usage, declaration)) { @@ -44035,13 +44390,13 @@ function createTypeChecker(host) { return sourceFiles.indexOf(declarationFile) <= sourceFiles.indexOf(useFile); } if (declaration.pos <= usage.pos && !(isPropertyDeclaration(declaration) && isThisProperty(usage.parent) && !declaration.initializer && !declaration.exclamationToken)) { - if (declaration.kind === 207 /* BindingElement */) { - const errorBindingElement = getAncestor(usage, 207 /* BindingElement */); + if (declaration.kind === 208 /* BindingElement */) { + const errorBindingElement = getAncestor(usage, 208 /* BindingElement */); if (errorBindingElement) { return findAncestor(errorBindingElement, isBindingElement) !== findAncestor(declaration, isBindingElement) || declaration.pos < errorBindingElement.pos; } - return isBlockScopedNameDeclaredBeforeUse(getAncestor(declaration, 259 /* VariableDeclaration */), usage); - } else if (declaration.kind === 259 /* VariableDeclaration */) { + return isBlockScopedNameDeclaredBeforeUse(getAncestor(declaration, 260 /* VariableDeclaration */), usage); + } else if (declaration.kind === 260 /* VariableDeclaration */) { return !isImmediatelyUsedInInitializerOfBlockScopedVariable(declaration, usage); } else if (isClassDeclaration(declaration)) { return !findAncestor(usage, (n) => isComputedPropertyName(n) && n.parent.parent === declaration); @@ -44053,21 +44408,21 @@ function createTypeChecker(host) { false ); } else if (isParameterPropertyDeclaration(declaration, declaration.parent)) { - return !(getEmitScriptTarget(compilerOptions) === 99 /* ESNext */ && useDefineForClassFields && getContainingClass(declaration) === getContainingClass(usage) && isUsedInFunctionOrInstanceProperty(usage, declaration)); + return !(emitStandardClassFields && getContainingClass(declaration) === getContainingClass(usage) && isUsedInFunctionOrInstanceProperty(usage, declaration)); } return true; } - if (usage.parent.kind === 280 /* ExportSpecifier */ || usage.parent.kind === 276 /* ExportAssignment */ && usage.parent.isExportEquals) { + if (usage.parent.kind === 281 /* ExportSpecifier */ || usage.parent.kind === 277 /* ExportAssignment */ && usage.parent.isExportEquals) { return true; } - if (usage.kind === 276 /* ExportAssignment */ && usage.isExportEquals) { + if (usage.kind === 277 /* ExportAssignment */ && usage.isExportEquals) { return true; } - if (!!(usage.flags & 8388608 /* JSDoc */) || isInTypeQuery(usage) || isInAmbientOrTypeNode(usage)) { + if (!!(usage.flags & 16777216 /* JSDoc */) || isInTypeQuery(usage) || isInAmbientOrTypeNode(usage)) { return true; } if (isUsedInFunctionOrInstanceProperty(usage, declaration)) { - if (getEmitScriptTarget(compilerOptions) >= 9 /* ES2022 */ && useDefineForClassFields && getContainingClass(declaration) && (isPropertyDeclaration(declaration) || isParameterPropertyDeclaration(declaration, declaration.parent))) { + if (emitStandardClassFields && getContainingClass(declaration) && (isPropertyDeclaration(declaration) || isParameterPropertyDeclaration(declaration, declaration.parent))) { return !isPropertyImmediatelyReferencedWithinDeclaration( declaration, usage, @@ -44081,9 +44436,9 @@ function createTypeChecker(host) { return false; function isImmediatelyUsedInInitializerOfBlockScopedVariable(declaration2, usage2) { switch (declaration2.parent.parent.kind) { - case 242 /* VariableStatement */: - case 247 /* ForStatement */: - case 249 /* ForOfStatement */: + case 243 /* VariableStatement */: + case 248 /* ForStatement */: + case 250 /* ForOfStatement */: if (isSameScopeDescendentOf(usage2, declaration2, declContainer)) { return true; } @@ -44108,7 +44463,7 @@ function createTypeChecker(host) { const initializerOfProperty = propertyDeclaration.initializer === current; if (initializerOfProperty) { if (isStatic(current.parent)) { - if (declaration2.kind === 173 /* MethodDeclaration */) { + if (declaration2.kind === 174 /* MethodDeclaration */) { return true; } if (isPropertyDeclaration(declaration2) && getContainingClass(usage2) === getContainingClass(declaration2)) { @@ -44122,7 +44477,7 @@ function createTypeChecker(host) { } } } else { - const isDeclarationInstanceProperty = declaration2.kind === 171 /* PropertyDeclaration */ && !isStatic(declaration2); + const isDeclarationInstanceProperty = declaration2.kind === 172 /* PropertyDeclaration */ && !isStatic(declaration2); if (!isDeclarationInstanceProperty || getContainingClass(usage2) !== getContainingClass(declaration2)) { return true; } @@ -44141,15 +44496,15 @@ function createTypeChecker(host) { return "quit"; } switch (node.kind) { - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return true; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return stopAtAnyPropertyDeclaration && (isPropertyDeclaration(declaration2) && node.parent === declaration2.parent || isParameterPropertyDeclaration(declaration2, declaration2.parent) && node.parent === declaration2.parent.parent) ? "quit" : true; - case 240 /* Block */: + case 241 /* Block */: switch (node.parent.kind) { - case 176 /* GetAccessor */: - case 173 /* MethodDeclaration */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 174 /* MethodDeclaration */: + case 178 /* SetAccessor */: return true; default: return false; @@ -44179,19 +44534,19 @@ function createTypeChecker(host) { } function requiresScopeChangeWorker(node) { switch (node.kind) { - case 218 /* ArrowFunction */: - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: - case 175 /* Constructor */: + case 219 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 176 /* Constructor */: return false; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 302 /* PropertyAssignment */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 303 /* PropertyAssignment */: return requiresScopeChangeWorker(node.name); - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: if (hasStaticModifier(node)) { - return target < 99 /* ESNext */ || !useDefineForClassFields; + return !emitStandardClassFields; } return requiresScopeChangeWorker(node.name); default: @@ -44230,7 +44585,7 @@ function createTypeChecker(host) { if (name === "const" && isConstAssertion(location)) { return void 0; } - if (isModuleDeclaration(location) && lastLocation && location.name === lastLocation) { + if (isModuleOrEnumDeclaration(location) && lastLocation && location.name === lastLocation) { lastLocation = location; location = location.parent; } @@ -44238,17 +44593,17 @@ function createTypeChecker(host) { if (result = lookup(location.locals, name, meaning)) { let useResult = true; if (isFunctionLike(location) && lastLocation && lastLocation !== location.body) { - if (meaning & result.flags & 788968 /* Type */ && lastLocation.kind !== 326 /* JSDoc */) { - useResult = result.flags & 262144 /* TypeParameter */ ? lastLocation === location.type || lastLocation.kind === 168 /* Parameter */ || lastLocation.kind === 347 /* JSDocParameterTag */ || lastLocation.kind === 348 /* JSDocReturnTag */ || lastLocation.kind === 167 /* TypeParameter */ : false; + if (meaning & result.flags & 788968 /* Type */ && lastLocation.kind !== 327 /* JSDoc */) { + useResult = result.flags & 262144 /* TypeParameter */ ? lastLocation === location.type || lastLocation.kind === 169 /* Parameter */ || lastLocation.kind === 348 /* JSDocParameterTag */ || lastLocation.kind === 349 /* JSDocReturnTag */ || lastLocation.kind === 168 /* TypeParameter */ : false; } if (meaning & result.flags & 3 /* Variable */) { if (useOuterVariableScopeInParameter(result, location, lastLocation)) { useResult = false; } else if (result.flags & 1 /* FunctionScopedVariable */) { - useResult = lastLocation.kind === 168 /* Parameter */ || lastLocation === location.type && !!findAncestor(result.valueDeclaration, isParameter); + useResult = lastLocation.kind === 169 /* Parameter */ || lastLocation === location.type && !!findAncestor(result.valueDeclaration, isParameter); } } - } else if (location.kind === 193 /* ConditionalType */) { + } else if (location.kind === 194 /* ConditionalType */) { useResult = lastLocation === location.trueType; } if (useResult) { @@ -44260,13 +44615,13 @@ function createTypeChecker(host) { } withinDeferredContext = withinDeferredContext || getIsDeferredContext(location, lastLocation); switch (location.kind) { - case 311 /* SourceFile */: + case 312 /* SourceFile */: if (!isExternalOrCommonJsModule(location)) break; isInExternalModule = true; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: const moduleExports = ((_a = getSymbolOfDeclaration(location)) == null ? void 0 : _a.exports) || emptySymbols; - if (location.kind === 311 /* SourceFile */ || isModuleDeclaration(location) && location.flags & 16777216 /* Ambient */ && !isGlobalScopeAugmentation(location)) { + if (location.kind === 312 /* SourceFile */ || isModuleDeclaration(location) && location.flags & 33554432 /* Ambient */ && !isGlobalScopeAugmentation(location)) { if (result = moduleExports.get("default" /* Default */)) { const localSymbol = getLocalSymbolForExportDefault(result); if (localSymbol && result.flags & meaning && localSymbol.escapedName === name) { @@ -44275,7 +44630,7 @@ function createTypeChecker(host) { result = void 0; } const moduleExport = moduleExports.get(name); - if (moduleExport && moduleExport.flags === 2097152 /* Alias */ && (getDeclarationOfKind(moduleExport, 280 /* ExportSpecifier */) || getDeclarationOfKind(moduleExport, 279 /* NamespaceExport */))) { + if (moduleExport && moduleExport.flags === 2097152 /* Alias */ && (getDeclarationOfKind(moduleExport, 281 /* ExportSpecifier */) || getDeclarationOfKind(moduleExport, 280 /* NamespaceExport */))) { break; } } @@ -44287,9 +44642,9 @@ function createTypeChecker(host) { } } break; - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: if (result = lookup(((_c = getSymbolOfDeclaration(location)) == null ? void 0 : _c.exports) || emptySymbols, name, meaning & 8 /* EnumMember */)) { - if (nameNotFoundMessage && getIsolatedModules(compilerOptions) && !(location.flags & 16777216 /* Ambient */) && getSourceFileOfNode(location) !== getSourceFileOfNode(result.valueDeclaration)) { + if (nameNotFoundMessage && getIsolatedModules(compilerOptions) && !(location.flags & 33554432 /* Ambient */) && getSourceFileOfNode(location) !== getSourceFileOfNode(result.valueDeclaration)) { error( errorLocation, Diagnostics.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead, @@ -44301,7 +44656,7 @@ function createTypeChecker(host) { break loop; } break; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: if (!isStatic(location)) { const ctor = findConstructorDeclaration(location.parent); if (ctor && ctor.locals) { @@ -44312,9 +44667,9 @@ function createTypeChecker(host) { } } break; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: if (result = lookup(getSymbolOfDeclaration(location).members || emptySymbols, name, meaning & 788968 /* Type */)) { if (!isTypeParameterSymbolDeclaredInContainer(result, location)) { result = void 0; @@ -44336,7 +44691,7 @@ function createTypeChecker(host) { } } break; - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: if (lastLocation === location.expression && location.parent.token === 96 /* ExtendsKeyword */) { const container = location.parent.parent; if (isClassLike(container) && (result = lookup(getSymbolOfDeclaration(container).members, name, meaning & 788968 /* Type */))) { @@ -44347,9 +44702,9 @@ function createTypeChecker(host) { } } break; - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: grandparent = location.parent.parent; - if (isClassLike(grandparent) || grandparent.kind === 263 /* InterfaceDeclaration */) { + if (isClassLike(grandparent) || grandparent.kind === 264 /* InterfaceDeclaration */) { if (result = lookup(getSymbolOfDeclaration(grandparent).members, name, meaning & 788968 /* Type */)) { if (nameNotFoundMessage) { error(errorLocation, Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type); @@ -44358,21 +44713,21 @@ function createTypeChecker(host) { } } break; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: if (getEmitScriptTarget(compilerOptions) >= 2 /* ES2015 */) { break; } - case 173 /* MethodDeclaration */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 261 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 262 /* FunctionDeclaration */: if (meaning & 3 /* Variable */ && name === "arguments") { result = argumentsSymbol; break loop; } break; - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: if (meaning & 3 /* Variable */ && name === "arguments") { result = argumentsSymbol; break loop; @@ -44385,37 +44740,37 @@ function createTypeChecker(host) { } } break; - case 169 /* Decorator */: - if (location.parent && location.parent.kind === 168 /* Parameter */) { + case 170 /* Decorator */: + if (location.parent && location.parent.kind === 169 /* Parameter */) { location = location.parent; } - if (location.parent && (isClassElement(location.parent) || location.parent.kind === 262 /* ClassDeclaration */)) { + if (location.parent && (isClassElement(location.parent) || location.parent.kind === 263 /* ClassDeclaration */)) { location = location.parent; } break; - case 352 /* JSDocTypedefTag */: - case 344 /* JSDocCallbackTag */: - case 346 /* JSDocEnumTag */: + case 353 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: + case 347 /* JSDocEnumTag */: const root = getJSDocRoot(location); if (root) { location = root.parent; } break; - case 168 /* Parameter */: + case 169 /* Parameter */: if (lastLocation && (lastLocation === location.initializer || lastLocation === location.name && isBindingPattern(lastLocation))) { if (!associatedDeclarationForContainingInitializerOrBindingName) { associatedDeclarationForContainingInitializerOrBindingName = location; } } break; - case 207 /* BindingElement */: + case 208 /* BindingElement */: if (lastLocation && (lastLocation === location.initializer || lastLocation === location.name && isBindingPattern(lastLocation))) { if (isParameterDeclaration(location) && !associatedDeclarationForContainingInitializerOrBindingName) { associatedDeclarationForContainingInitializerOrBindingName = location; } } break; - case 194 /* InferType */: + case 195 /* InferType */: if (meaning & 262144 /* TypeParameter */) { const parameterName = location.typeParameter.name; if (parameterName && name === parameterName.escapedText) { @@ -44424,7 +44779,7 @@ function createTypeChecker(host) { } } break; - case 280 /* ExportSpecifier */: + case 281 /* ExportSpecifier */: if (lastLocation && lastLocation === location.propertyName && location.parent.parent.moduleSpecifier) { location = location.parent.parent.parent; } @@ -44462,7 +44817,7 @@ function createTypeChecker(host) { } } function checkAndReportErrorForInvalidInitializer() { - if (propertyWithInvalidInitializer && !(useDefineForClassFields && getEmitScriptTarget(compilerOptions) >= 9 /* ES2022 */)) { + if (propertyWithInvalidInitializer && !emitStandardClassFields) { error( errorLocation, errorLocation && propertyWithInvalidInitializer.type && textRangeContainsPositionInclusive(propertyWithInvalidInitializer.type, errorLocation.pos) ? Diagnostics.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor : Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor, @@ -44476,7 +44831,7 @@ function createTypeChecker(host) { if (!result) { if (nameNotFoundMessage) { addLazyDiagnostic(() => { - if (!errorLocation || errorLocation.parent.kind !== 330 /* JSDocLink */ && !checkAndReportErrorForMissingPrefix(errorLocation, name, nameArg) && // TODO: GH#18217 + if (!errorLocation || errorLocation.parent.kind !== 331 /* JSDocLink */ && !checkAndReportErrorForMissingPrefix(errorLocation, name, nameArg) && // TODO: GH#18217 !checkAndReportErrorForInvalidInitializer() && !checkAndReportErrorForExtendingInterface(errorLocation) && !checkAndReportErrorForUsingTypeAsNamespace(errorLocation, name, meaning) && !checkAndReportErrorForExportingPrimitiveType(errorLocation, name) && !checkAndReportErrorForUsingNamespaceAsTypeOrValue(errorLocation, name, meaning) && !checkAndReportErrorForUsingTypeAsValue(errorLocation, name, meaning) && !checkAndReportErrorForUsingValueAsType(errorLocation, name, meaning)) { let suggestion; let suggestedLib; @@ -44530,7 +44885,7 @@ function createTypeChecker(host) { checkResolvedBlockScopedVariable(exportOrLocalSymbol, errorLocation); } } - if (result && isInExternalModule && (meaning & 111551 /* Value */) === 111551 /* Value */ && !(originalLocation.flags & 8388608 /* JSDoc */)) { + if (result && isInExternalModule && (meaning & 111551 /* Value */) === 111551 /* Value */ && !(originalLocation.flags & 16777216 /* JSDoc */)) { const merged = getMergedSymbol(result); if (length(merged.declarations) && every(merged.declarations, (d) => isNamespaceExportDeclaration(d) || isSourceFile(d) && !!d.symbol.globalExports)) { errorOrSuggestion(!compilerOptions.allowUmdGlobalAccess, errorLocation, Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead, unescapeLeadingUnderscores(name)); @@ -44548,7 +44903,7 @@ function createTypeChecker(host) { if (result && errorLocation && meaning & 111551 /* Value */ && result.flags & 2097152 /* Alias */ && !(result.flags & 111551 /* Value */) && !isValidTypeOnlyAliasUseSite(errorLocation)) { const typeOnlyDeclaration = getTypeOnlyAliasDeclaration(result, 111551 /* Value */); if (typeOnlyDeclaration) { - const message = typeOnlyDeclaration.kind === 280 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 277 /* ExportDeclaration */ || typeOnlyDeclaration.kind === 279 /* NamespaceExport */ ? Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type : Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type; + const message = typeOnlyDeclaration.kind === 281 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 278 /* ExportDeclaration */ || typeOnlyDeclaration.kind === 280 /* NamespaceExport */ ? Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type : Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type; const unescapedName = unescapeLeadingUnderscores(name); addTypeOnlyDeclarationRelatedInfo( error(errorLocation, message, unescapedName), @@ -44568,14 +44923,14 @@ function createTypeChecker(host) { diagnostic, createDiagnosticForNode( typeOnlyDeclaration, - typeOnlyDeclaration.kind === 280 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 277 /* ExportDeclaration */ || typeOnlyDeclaration.kind === 279 /* NamespaceExport */ ? Diagnostics._0_was_exported_here : Diagnostics._0_was_imported_here, + typeOnlyDeclaration.kind === 281 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 278 /* ExportDeclaration */ || typeOnlyDeclaration.kind === 280 /* NamespaceExport */ ? Diagnostics._0_was_exported_here : Diagnostics._0_was_imported_here, unescapedName ) ); } function getIsDeferredContext(location, lastLocation) { - if (location.kind !== 218 /* ArrowFunction */ && location.kind !== 217 /* FunctionExpression */) { - return isTypeQueryNode(location) || (isFunctionLikeDeclaration(location) || location.kind === 171 /* PropertyDeclaration */ && !isStatic(location)) && (!lastLocation || lastLocation !== location.name); + if (location.kind !== 219 /* ArrowFunction */ && location.kind !== 218 /* FunctionExpression */) { + return isTypeQueryNode(location) || (isFunctionLikeDeclaration(location) || location.kind === 172 /* PropertyDeclaration */ && !isStatic(location)) && (!lastLocation || lastLocation !== location.name); } if (lastLocation && lastLocation === location.name) { return false; @@ -44587,12 +44942,12 @@ function createTypeChecker(host) { } function isSelfReferenceLocation(node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 266 /* ModuleDeclaration */: + case 262 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 267 /* ModuleDeclaration */: return true; default: return false; @@ -44604,7 +44959,7 @@ function createTypeChecker(host) { function isTypeParameterSymbolDeclaredInContainer(symbol, container) { if (symbol.declarations) { for (const decl of symbol.declarations) { - if (decl.kind === 167 /* TypeParameter */) { + if (decl.kind === 168 /* TypeParameter */) { const parent = isJSDocTemplateTag(decl.parent) ? getJSDocHost(decl.parent) : decl.parent; if (parent === container) { return !(isJSDocTemplateTag(decl.parent) && find(decl.parent.parent.tags, isJSDocTypeAlias)); @@ -44665,9 +45020,9 @@ function createTypeChecker(host) { function getEntityNameForExtendingInterface(node) { switch (node.kind) { case 80 /* Identifier */: - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return node.parent ? getEntityNameForExtendingInterface(node.parent) : void 0; - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: if (isEntityNameExpression(node.expression)) { return node.expression; } @@ -44735,7 +45090,7 @@ function createTypeChecker(host) { return name === "any" || name === "string" || name === "number" || name === "boolean" || name === "never" || name === "unknown"; } function checkAndReportErrorForExportingPrimitiveType(errorLocation, name) { - if (isPrimitiveTypeName(name) && errorLocation.parent.kind === 280 /* ExportSpecifier */) { + if (isPrimitiveTypeName(name) && errorLocation.parent.kind === 281 /* ExportSpecifier */) { error(errorLocation, Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module, name); return true; } @@ -44762,7 +45117,7 @@ function createTypeChecker(host) { /*isUse*/ false )); - const allFlags = symbol && getAllSymbolFlags(symbol); + const allFlags = symbol && getSymbolFlags(symbol); if (symbol && allFlags !== void 0 && !(allFlags & 111551 /* Value */)) { const rawName = unescapeLeadingUnderscores(name); if (isES2015OrLaterConstructorName(name)) { @@ -44859,11 +45214,11 @@ function createTypeChecker(host) { return; } const declaration = (_a = result.declarations) == null ? void 0 : _a.find( - (d) => isBlockOrCatchScoped(d) || isClassLike(d) || d.kind === 265 /* EnumDeclaration */ + (d) => isBlockOrCatchScoped(d) || isClassLike(d) || d.kind === 266 /* EnumDeclaration */ ); if (declaration === void 0) return Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration"); - if (!(declaration.flags & 16777216 /* Ambient */) && !isBlockScopedNameDeclaredBeforeUse(declaration, errorLocation)) { + if (!(declaration.flags & 33554432 /* Ambient */) && !isBlockScopedNameDeclaredBeforeUse(declaration, errorLocation)) { let diagnosticMessage; const declarationName = declarationNameToString(getNameOfDeclaration(declaration)); if (result.flags & 2 /* BlockScopedVariable */) { @@ -44886,13 +45241,13 @@ function createTypeChecker(host) { } function getAnyImportSyntax(node) { switch (node.kind) { - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return node; - case 272 /* ImportClause */: + case 273 /* ImportClause */: return node.parent; - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: return node.parent.parent; - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: return node.parent.parent.parent; default: return void 0; @@ -44902,7 +45257,7 @@ function createTypeChecker(host) { return symbol.declarations && findLast(symbol.declarations, isAliasSymbolDeclaration); } function isAliasSymbolDeclaration(node) { - return node.kind === 270 /* ImportEqualsDeclaration */ || node.kind === 269 /* NamespaceExportDeclaration */ || node.kind === 272 /* ImportClause */ && !!node.name || node.kind === 273 /* NamespaceImport */ || node.kind === 279 /* NamespaceExport */ || node.kind === 275 /* ImportSpecifier */ || node.kind === 280 /* ExportSpecifier */ || node.kind === 276 /* ExportAssignment */ && exportAssignmentIsAlias(node) || isBinaryExpression(node) && getAssignmentDeclarationKind(node) === 2 /* ModuleExports */ && exportAssignmentIsAlias(node) || isAccessExpression(node) && isBinaryExpression(node.parent) && node.parent.left === node && node.parent.operatorToken.kind === 64 /* EqualsToken */ && isAliasableOrJsExpression(node.parent.right) || node.kind === 303 /* ShorthandPropertyAssignment */ || node.kind === 302 /* PropertyAssignment */ && isAliasableOrJsExpression(node.initializer) || node.kind === 259 /* VariableDeclaration */ && isVariableDeclarationInitializedToBareOrAccessedRequire(node) || node.kind === 207 /* BindingElement */ && isVariableDeclarationInitializedToBareOrAccessedRequire(node.parent.parent); + return node.kind === 271 /* ImportEqualsDeclaration */ || node.kind === 270 /* NamespaceExportDeclaration */ || node.kind === 273 /* ImportClause */ && !!node.name || node.kind === 274 /* NamespaceImport */ || node.kind === 280 /* NamespaceExport */ || node.kind === 276 /* ImportSpecifier */ || node.kind === 281 /* ExportSpecifier */ || node.kind === 277 /* ExportAssignment */ && exportAssignmentIsAlias(node) || isBinaryExpression(node) && getAssignmentDeclarationKind(node) === 2 /* ModuleExports */ && exportAssignmentIsAlias(node) || isAccessExpression(node) && isBinaryExpression(node.parent) && node.parent.left === node && node.parent.operatorToken.kind === 64 /* EqualsToken */ && isAliasableOrJsExpression(node.parent.right) || node.kind === 304 /* ShorthandPropertyAssignment */ || node.kind === 303 /* PropertyAssignment */ && isAliasableOrJsExpression(node.initializer) || node.kind === 260 /* VariableDeclaration */ && isVariableDeclarationInitializedToBareOrAccessedRequire(node) || node.kind === 208 /* BindingElement */ && isVariableDeclarationInitializedToBareOrAccessedRequire(node.parent.parent); } function isAliasableOrJsExpression(e) { return isAliasableExpression(e) || isFunctionExpression(e) && isJSConstructor(e); @@ -44913,7 +45268,7 @@ function createTypeChecker(host) { const name = getLeftmostAccessExpression(commonJSPropertyAccess.expression).arguments[0]; return isIdentifier(commonJSPropertyAccess.name) ? resolveSymbol(getPropertyOfType(resolveExternalModuleTypeByLiteral(name), commonJSPropertyAccess.name.escapedText)) : void 0; } - if (isVariableDeclaration(node) || node.moduleReference.kind === 282 /* ExternalModuleReference */) { + if (isVariableDeclaration(node) || node.moduleReference.kind === 283 /* ExternalModuleReference */) { const immediate = resolveExternalModuleName( node, getExternalModuleRequireArgument(node) || getExternalModuleImportEqualsDeclarationExpression(node) @@ -44942,10 +45297,10 @@ function createTypeChecker(host) { false ) && !node.isTypeOnly) { const typeOnlyDeclaration = getTypeOnlyAliasDeclaration(getSymbolOfDeclaration(node)); - const isExport = typeOnlyDeclaration.kind === 280 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 277 /* ExportDeclaration */; + const isExport = typeOnlyDeclaration.kind === 281 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 278 /* ExportDeclaration */; const message = isExport ? Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type : Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type; const relatedMessage = isExport ? Diagnostics._0_was_exported_here : Diagnostics._0_was_imported_here; - const name = typeOnlyDeclaration.kind === 277 /* ExportDeclaration */ ? "*" : unescapeLeadingUnderscores(typeOnlyDeclaration.name.escapedText); + const name = typeOnlyDeclaration.kind === 278 /* ExportDeclaration */ ? "*" : unescapeLeadingUnderscores(typeOnlyDeclaration.name.escapedText); addRelatedInfo(error(node.moduleReference, message), createDiagnosticForNode(typeOnlyDeclaration, relatedMessage, name)); } } @@ -45087,15 +45442,15 @@ function createTypeChecker(host) { } function getModuleSpecifierForImportOrExport(node) { switch (node.kind) { - case 272 /* ImportClause */: + case 273 /* ImportClause */: return node.parent.moduleSpecifier; - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return isExternalModuleReference(node.moduleReference) ? node.moduleReference.expression : void 0; - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: return node.parent.parent.moduleSpecifier; - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: return node.parent.parent.parent.moduleSpecifier; - case 280 /* ExportSpecifier */: + case 281 /* ExportSpecifier */: return node.parent.parent.moduleSpecifier; default: return Debug.assertNever(node); @@ -45428,26 +45783,26 @@ function createTypeChecker(host) { } function getTargetOfAliasDeclaration(node, dontRecursivelyResolve = false) { switch (node.kind) { - case 270 /* ImportEqualsDeclaration */: - case 259 /* VariableDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 260 /* VariableDeclaration */: return getTargetOfImportEqualsDeclaration(node, dontRecursivelyResolve); - case 272 /* ImportClause */: + case 273 /* ImportClause */: return getTargetOfImportClause(node, dontRecursivelyResolve); - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: return getTargetOfNamespaceImport(node, dontRecursivelyResolve); - case 279 /* NamespaceExport */: + case 280 /* NamespaceExport */: return getTargetOfNamespaceExport(node, dontRecursivelyResolve); - case 275 /* ImportSpecifier */: - case 207 /* BindingElement */: + case 276 /* ImportSpecifier */: + case 208 /* BindingElement */: return getTargetOfImportSpecifier(node, dontRecursivelyResolve); - case 280 /* ExportSpecifier */: + case 281 /* ExportSpecifier */: return getTargetOfExportSpecifier(node, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */, dontRecursivelyResolve); - case 276 /* ExportAssignment */: - case 225 /* BinaryExpression */: + case 277 /* ExportAssignment */: + case 226 /* BinaryExpression */: return getTargetOfExportAssignment(node, dontRecursivelyResolve); - case 269 /* NamespaceExportDeclaration */: + case 270 /* NamespaceExportDeclaration */: return getTargetOfNamespaceExportDeclaration(node, dontRecursivelyResolve); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return resolveEntityName( node.name, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */, @@ -45455,10 +45810,10 @@ function createTypeChecker(host) { true, dontRecursivelyResolve ); - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return getTargetOfAliasLikeExpression(node.initializer, dontRecursivelyResolve); - case 211 /* ElementAccessExpression */: - case 210 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: return getTargetOfAccessExpression(node, dontRecursivelyResolve); default: return Debug.fail(); @@ -45498,11 +45853,23 @@ function createTypeChecker(host) { } return void 0; } - function getAllSymbolFlags(symbol) { - let flags = symbol.flags; + function getSymbolFlags(symbol, excludeTypeOnlyMeanings, excludeLocalMeanings) { + const typeOnlyDeclaration = excludeTypeOnlyMeanings && getTypeOnlyAliasDeclaration(symbol); + const typeOnlyDeclarationIsExportStar = typeOnlyDeclaration && isExportDeclaration(typeOnlyDeclaration); + const typeOnlyResolution = typeOnlyDeclaration && (typeOnlyDeclarationIsExportStar ? resolveExternalModuleName( + typeOnlyDeclaration.moduleSpecifier, + typeOnlyDeclaration.moduleSpecifier, + /*ignoreErrors*/ + true + ) : resolveAlias(typeOnlyDeclaration.symbol)); + const typeOnlyExportStarTargets = typeOnlyDeclarationIsExportStar && typeOnlyResolution ? getExportsOfModule(typeOnlyResolution) : void 0; + let flags = excludeLocalMeanings ? 0 /* None */ : symbol.flags; let seenSymbols; while (symbol.flags & 2097152 /* Alias */) { - const target = resolveAlias(symbol); + const target = getExportSymbolOfValueSymbolIfExported(resolveAlias(symbol)); + if (!typeOnlyDeclarationIsExportStar && target === typeOnlyResolution || (typeOnlyExportStarTargets == null ? void 0 : typeOnlyExportStarTargets.get(target.escapedName)) === target) { + break; + } if (target === unknownSymbol) { return 67108863 /* All */; } @@ -45559,8 +45926,8 @@ function createTypeChecker(host) { return links.typeOnlyDeclaration || void 0; } if (links.typeOnlyDeclaration) { - const resolved = links.typeOnlyDeclaration.kind === 277 /* ExportDeclaration */ ? resolveSymbol(getExportsOfModule(links.typeOnlyDeclaration.symbol.parent).get(links.typeOnlyExportStarName || symbol.escapedName)) : resolveAlias(links.typeOnlyDeclaration.symbol); - return getAllSymbolFlags(resolved) & include ? links.typeOnlyDeclaration : void 0; + const resolved = links.typeOnlyDeclaration.kind === 278 /* ExportDeclaration */ ? resolveSymbol(getExportsOfModule(links.typeOnlyDeclaration.symbol.parent).get(links.typeOnlyExportStarName || symbol.escapedName)) : resolveAlias(links.typeOnlyDeclaration.symbol); + return getSymbolFlags(resolved) & include ? links.typeOnlyDeclaration : void 0; } return void 0; } @@ -45571,7 +45938,11 @@ function createTypeChecker(host) { const symbol = getSymbolOfDeclaration(node); const target = resolveAlias(symbol); if (target) { - const markAlias = target === unknownSymbol || getAllSymbolFlags(target) & 111551 /* Value */ && !isConstEnumOrConstEnumOnlyModule(target) && !getTypeOnlyAliasDeclaration(symbol, 111551 /* Value */); + const markAlias = target === unknownSymbol || getSymbolFlags( + symbol, + /*excludeTypeOnlyMeanings*/ + true + ) & 111551 /* Value */ && !isConstEnumOrConstEnumOnlyModule(target); if (markAlias) { markAliasSymbolAsReferenced(symbol); } @@ -45586,7 +45957,7 @@ function createTypeChecker(host) { if (!node) return Debug.fail(); if (isInternalModuleImportEqualsDeclaration(node)) { - if (getAllSymbolFlags(resolveSymbol(symbol)) & 111551 /* Value */) { + if (getSymbolFlags(resolveSymbol(symbol)) & 111551 /* Value */) { checkExpressionCached(node.moduleReference); } } @@ -45602,7 +45973,7 @@ function createTypeChecker(host) { if (entityName.kind === 80 /* Identifier */ && isRightSideOfQualifiedNameOrPropertyAccess(entityName)) { entityName = entityName.parent; } - if (entityName.kind === 80 /* Identifier */ || entityName.parent.kind === 165 /* QualifiedName */) { + if (entityName.kind === 80 /* Identifier */ || entityName.parent.kind === 166 /* QualifiedName */) { return resolveEntityName( entityName, 1920 /* Namespace */, @@ -45611,7 +45982,7 @@ function createTypeChecker(host) { dontResolveAlias ); } else { - Debug.assert(entityName.parent.kind === 270 /* ImportEqualsDeclaration */); + Debug.assert(entityName.parent.kind === 271 /* ImportEqualsDeclaration */); return resolveEntityName( entityName, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */, @@ -45684,9 +46055,9 @@ function createTypeChecker(host) { if (!symbol) { return getMergedSymbol(symbolFromJSPrototype); } - } else if (name.kind === 165 /* QualifiedName */ || name.kind === 210 /* PropertyAccessExpression */) { - const left = name.kind === 165 /* QualifiedName */ ? name.left : name.expression; - const right = name.kind === 165 /* QualifiedName */ ? name.right : name.name; + } else if (name.kind === 166 /* QualifiedName */ || name.kind === 211 /* PropertyAccessExpression */) { + const left = name.kind === 166 /* QualifiedName */ ? name.left : name.expression; + const right = name.kind === 166 /* QualifiedName */ ? name.right : name.name; let namespace = resolveEntityName( left, namespaceMeaning, @@ -45753,7 +46124,7 @@ function createTypeChecker(host) { Debug.assertNever(name, "Unknown entity name kind."); } Debug.assert((getCheckFlags(symbol) & 1 /* Instantiated */) === 0, "Should never get an instantiated symbol here."); - if (!nodeIsSynthesized(name) && isEntityName(name) && (symbol.flags & 2097152 /* Alias */ || name.parent.kind === 276 /* ExportAssignment */)) { + if (!nodeIsSynthesized(name) && isEntityName(name) && (symbol.flags & 2097152 /* Alias */ || name.parent.kind === 277 /* ExportAssignment */)) { markSymbolOfAliasDeclarationIfTypeOnly( getAliasDeclarationFromName(name), symbol, @@ -45783,7 +46154,7 @@ function createTypeChecker(host) { } } function getAssignmentDeclarationLocation(node) { - const typeAlias = findAncestor(node, (node2) => !(isJSDocNode(node2) || node2.flags & 8388608 /* JSDoc */) ? "quit" : isJSDocTypeAlias(node2)); + const typeAlias = findAncestor(node, (node2) => !(isJSDocNode(node2) || node2.flags & 16777216 /* JSDoc */) ? "quit" : isJSDocTypeAlias(node2)); if (typeAlias) { return; } @@ -45846,7 +46217,7 @@ function createTypeChecker(host) { return isStringLiteralLike(moduleReferenceExpression) ? resolveExternalModule(location, moduleReferenceExpression.text, moduleNotFoundError, moduleReferenceExpression, isForAugmentation) : void 0; } function resolveExternalModule(location, moduleReference, moduleNotFoundError, errorNode, isForAugmentation = false) { - var _a, _b, _c, _d, _e, _f, _g, _h, _i; + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j; if (startsWith(moduleReference, "@types/")) { const diag2 = Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1; const withoutAtTypePrefix = removePrefix(moduleReference, "@types/"); @@ -45881,8 +46252,11 @@ function createTypeChecker(host) { ); } } else if (resolvedModule.resolvedUsingTsExtension && !shouldAllowImportingTsExtension(compilerOptions, currentSourceFile.fileName)) { - const tsExtension = Debug.checkDefined(tryExtractTSExtension(moduleReference)); - error(errorNode, Diagnostics.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled, tsExtension); + const importOrExport = ((_h = findAncestor(location, isImportDeclaration)) == null ? void 0 : _h.importClause) || findAncestor(location, or(isImportEqualsDeclaration, isExportDeclaration)); + if (!((importOrExport == null ? void 0 : importOrExport.isTypeOnly) || findAncestor(location, isImportTypeNode))) { + const tsExtension = Debug.checkDefined(tryExtractTSExtension(moduleReference)); + error(errorNode, Diagnostics.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled, tsExtension); + } } if (sourceFile.symbol) { if (resolvedModule.isExternalLibraryImport && !resolutionExtensionIsTSOrJson(resolvedModule.extension)) { @@ -45899,7 +46273,7 @@ function createTypeChecker(host) { if (moduleResolutionKind === 3 /* Node16 */ || moduleResolutionKind === 99 /* NodeNext */) { const isSyncImport = currentSourceFile.impliedNodeFormat === 1 /* CommonJS */ && !findAncestor(location, isImportCall) || !!findAncestor(location, isImportEqualsDeclaration); const overrideClauseHost = findAncestor(location, (l) => isImportTypeNode(l) || isExportDeclaration(l) || isImportDeclaration(l)); - const overrideClause = overrideClauseHost && isImportTypeNode(overrideClauseHost) ? (_h = overrideClauseHost.assertions) == null ? void 0 : _h.assertClause : overrideClauseHost == null ? void 0 : overrideClauseHost.assertClause; + const overrideClause = overrideClauseHost && isImportTypeNode(overrideClauseHost) ? (_i = overrideClauseHost.assertions) == null ? void 0 : _i.assertClause : overrideClauseHost == null ? void 0 : overrideClauseHost.assertClause; if (isSyncImport && sourceFile.impliedNodeFormat === 99 /* ESNext */ && !getResolutionModeOverrideForClause(overrideClause)) { if (findAncestor(location, isImportEqualsDeclaration)) { error(errorNode, Diagnostics.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead, moduleReference); @@ -46002,7 +46376,7 @@ function createTypeChecker(host) { error(errorNode, Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension, moduleReference); } else if (mode === 99 /* ESNext */ && resolutionIsNode16OrNext && isExtensionlessRelativePathImport) { const absoluteRef = getNormalizedAbsolutePath(moduleReference, getDirectoryPath(currentSourceFile.path)); - const suggestedExt = (_i = suggestedExtensions.find(([actualExt, _importExt]) => host.fileExists(absoluteRef + actualExt))) == null ? void 0 : _i[1]; + const suggestedExt = (_j = suggestedExtensions.find(([actualExt, _importExt]) => host.fileExists(absoluteRef + actualExt))) == null ? void 0 : _j[1]; if (suggestedExt) { error( errorNode, @@ -46077,7 +46451,7 @@ function createTypeChecker(host) { var _a; const symbol = resolveExternalModuleSymbol(moduleSymbol, dontResolveAlias); if (!dontResolveAlias && symbol) { - if (!suppressInteropError && !(symbol.flags & (1536 /* Module */ | 3 /* Variable */)) && !getDeclarationOfKind(symbol, 311 /* SourceFile */)) { + if (!suppressInteropError && !(symbol.flags & (1536 /* Module */ | 3 /* Variable */)) && !getDeclarationOfKind(symbol, 312 /* SourceFile */)) { const compilerOptionName = moduleKind >= 5 /* ES2015 */ ? "allowSyntheticDefaultImports" : "esModuleInterop"; error(referencingLocation, Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export, compilerOptionName); return symbol; @@ -46434,12 +46808,12 @@ function createTypeChecker(host) { return getMergedSymbol(symbol && (symbol.flags & 1048576 /* ExportValue */) !== 0 && symbol.exportSymbol || symbol); } function symbolIsValue(symbol, includeTypeOnlyMembers) { - return !!(symbol.flags & 111551 /* Value */ || symbol.flags & 2097152 /* Alias */ && getAllSymbolFlags(symbol) & 111551 /* Value */ && (includeTypeOnlyMembers || !getTypeOnlyAliasDeclaration(symbol))); + return !!(symbol.flags & 111551 /* Value */ || symbol.flags & 2097152 /* Alias */ && getSymbolFlags(symbol, !includeTypeOnlyMembers) & 111551 /* Value */); } function findConstructorDeclaration(node) { const members = node.members; for (const member of members) { - if (member.kind === 175 /* Constructor */ && nodeIsPresent(member.body)) { + if (member.kind === 176 /* Constructor */ && nodeIsPresent(member.body)) { return member; } } @@ -46463,7 +46837,7 @@ function createTypeChecker(host) { function createIntrinsicType(kind, intrinsicName, objectFlags = 0 /* None */) { const type = createType(kind); type.intrinsicName = intrinsicName; - type.objectFlags = objectFlags; + type.objectFlags = objectFlags | 524288 /* CouldContainTypeVariablesComputed */ | 2097152 /* IsGenericTypeComputed */ | 33554432 /* IsUnknownLikeUnionComputed */ | 16777216 /* IsNeverIntersectionComputed */; return type; } function createObjectType(objectFlags, symbol) { @@ -46557,11 +46931,11 @@ function createTypeChecker(host) { } } switch (location.kind) { - case 311 /* SourceFile */: + case 312 /* SourceFile */: if (!isExternalOrCommonJsModule(location)) { break; } - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: const sym = getSymbolOfDeclaration(location); if (result = callback( (sym == null ? void 0 : sym.exports) || emptySymbols, @@ -46574,9 +46948,9 @@ function createTypeChecker(host) { return result; } break; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: let table; (getSymbolOfDeclaration(location).members || emptySymbols).forEach((memberSymbol, key) => { if (memberSymbol.flags & (788968 /* Type */ & ~67108864 /* Assignment */)) { @@ -46654,7 +47028,7 @@ function createTypeChecker(host) { return [symbol]; } const result2 = forEachEntry(symbols, (symbolFromSymbolTable) => { - if (symbolFromSymbolTable.flags & 2097152 /* Alias */ && symbolFromSymbolTable.escapedName !== "export=" /* ExportEquals */ && symbolFromSymbolTable.escapedName !== "default" /* Default */ && !(isUMDExportSymbol(symbolFromSymbolTable) && enclosingDeclaration && isExternalModule(getSourceFileOfNode(enclosingDeclaration))) && (!useOnlyExternalAliasing || some(symbolFromSymbolTable.declarations, isExternalModuleImportEqualsDeclaration)) && (isLocalNameLookup ? !some(symbolFromSymbolTable.declarations, isNamespaceReexportDeclaration) : true) && (ignoreQualification || !getDeclarationOfKind(symbolFromSymbolTable, 280 /* ExportSpecifier */))) { + if (symbolFromSymbolTable.flags & 2097152 /* Alias */ && symbolFromSymbolTable.escapedName !== "export=" /* ExportEquals */ && symbolFromSymbolTable.escapedName !== "default" /* Default */ && !(isUMDExportSymbol(symbolFromSymbolTable) && enclosingDeclaration && isExternalModule(getSourceFileOfNode(enclosingDeclaration))) && (!useOnlyExternalAliasing || some(symbolFromSymbolTable.declarations, isExternalModuleImportEqualsDeclaration)) && (isLocalNameLookup ? !some(symbolFromSymbolTable.declarations, isNamespaceReexportDeclaration) : true) && (ignoreQualification || !getDeclarationOfKind(symbolFromSymbolTable, 281 /* ExportSpecifier */))) { const resolvedImportedSymbol = resolveAlias(symbolFromSymbolTable); const candidate = getCandidateListForSymbol(symbolFromSymbolTable, resolvedImportedSymbol, ignoreQualification); if (candidate) { @@ -46699,9 +47073,9 @@ function createTypeChecker(host) { if (symbolFromSymbolTable === symbol) { return true; } - const shouldResolveAlias = symbolFromSymbolTable.flags & 2097152 /* Alias */ && !getDeclarationOfKind(symbolFromSymbolTable, 280 /* ExportSpecifier */); + const shouldResolveAlias = symbolFromSymbolTable.flags & 2097152 /* Alias */ && !getDeclarationOfKind(symbolFromSymbolTable, 281 /* ExportSpecifier */); symbolFromSymbolTable = shouldResolveAlias ? resolveAlias(symbolFromSymbolTable) : symbolFromSymbolTable; - const flags = shouldResolveAlias ? getAllSymbolFlags(symbolFromSymbolTable) : symbolFromSymbolTable.flags; + const flags = shouldResolveAlias ? getSymbolFlags(symbolFromSymbolTable) : symbolFromSymbolTable.flags; if (flags & meaning) { qualify = true; return true; @@ -46714,10 +47088,10 @@ function createTypeChecker(host) { if (symbol.declarations && symbol.declarations.length) { for (const declaration of symbol.declarations) { switch (declaration.kind) { - case 171 /* PropertyDeclaration */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: continue; default: return false; @@ -46853,10 +47227,10 @@ function createTypeChecker(host) { return node && getSymbolOfDeclaration(node); } function hasExternalModuleSymbol(declaration) { - return isAmbientModule(declaration) || declaration.kind === 311 /* SourceFile */ && isExternalOrCommonJsModule(declaration); + return isAmbientModule(declaration) || declaration.kind === 312 /* SourceFile */ && isExternalOrCommonJsModule(declaration); } function hasNonGlobalAugmentationExternalModuleSymbol(declaration) { - return isModuleWithStringLiteralName(declaration) || declaration.kind === 311 /* SourceFile */ && isExternalOrCommonJsModule(declaration); + return isModuleWithStringLiteralName(declaration) || declaration.kind === 312 /* SourceFile */ && isExternalOrCommonJsModule(declaration); } function hasVisibleDeclarations(symbol, shouldComputeAliasToMakeVisible) { let aliasesToMakeVisible; @@ -46904,9 +47278,9 @@ function createTypeChecker(host) { } function isEntityNameVisible(entityName, enclosingDeclaration) { let meaning; - if (entityName.parent.kind === 185 /* TypeQuery */ || entityName.parent.kind === 232 /* ExpressionWithTypeArguments */ && !isPartOfTypeNode(entityName.parent) || entityName.parent.kind === 166 /* ComputedPropertyName */) { + if (entityName.parent.kind === 186 /* TypeQuery */ || entityName.parent.kind === 233 /* ExpressionWithTypeArguments */ && !isPartOfTypeNode(entityName.parent) || entityName.parent.kind === 167 /* ComputedPropertyName */) { meaning = 111551 /* Value */ | 1048576 /* ExportValue */; - } else if (entityName.kind === 165 /* QualifiedName */ || entityName.kind === 210 /* PropertyAccessExpression */ || entityName.parent.kind === 270 /* ImportEqualsDeclaration */) { + } else if (entityName.kind === 166 /* QualifiedName */ || entityName.kind === 211 /* PropertyAccessExpression */ || entityName.parent.kind === 271 /* ImportEqualsDeclaration */) { meaning = 1920 /* Namespace */; } else { meaning = 788968 /* Type */; @@ -46972,7 +47346,7 @@ function createTypeChecker(host) { return writer ? symbolToStringWorker(writer).getText() : usingSingleLineStringWriter(symbolToStringWorker); function symbolToStringWorker(writer2) { const entity = builder(symbol, meaning, enclosingDeclaration, nodeFlags); - const printer = (enclosingDeclaration == null ? void 0 : enclosingDeclaration.kind) === 311 /* SourceFile */ ? createPrinterWithRemoveCommentsNeverAsciiEscape() : createPrinterWithRemoveComments(); + const printer = (enclosingDeclaration == null ? void 0 : enclosingDeclaration.kind) === 312 /* SourceFile */ ? createPrinterWithRemoveCommentsNeverAsciiEscape() : createPrinterWithRemoveComments(); const sourceFile = enclosingDeclaration && getSourceFileOfNode(enclosingDeclaration); printer.writeNode( 4 /* Unspecified */, @@ -46989,9 +47363,9 @@ function createTypeChecker(host) { function signatureToStringWorker(writer2) { let sigOutput; if (flags & 262144 /* WriteArrowStyleSignature */) { - sigOutput = kind === 1 /* Construct */ ? 184 /* ConstructorType */ : 183 /* FunctionType */; + sigOutput = kind === 1 /* Construct */ ? 185 /* ConstructorType */ : 184 /* FunctionType */; } else { - sigOutput = kind === 1 /* Construct */ ? 179 /* ConstructSignature */ : 178 /* CallSignature */; + sigOutput = kind === 1 /* Construct */ ? 180 /* ConstructSignature */ : 179 /* CallSignature */; } const sig = nodeBuilder.signatureToSignatureDeclaration(signature, sigOutput, enclosingDeclaration, toNodeBuilderFlags(flags) | 70221824 /* IgnoreErrors */ | 512 /* WriteTypeParametersInQualifiedName */); const printer = createPrinterWithRemoveCommentsOmitTrailingSemicolon(); @@ -47093,7 +47467,7 @@ function createTypeChecker(host) { return symbolToExpression(symbol, context, meaning); } function withContext(enclosingDeclaration, flags, tracker, cb) { - Debug.assert(enclosingDeclaration === void 0 || (enclosingDeclaration.flags & 8 /* Synthesized */) === 0); + Debug.assert(enclosingDeclaration === void 0 || (enclosingDeclaration.flags & 16 /* Synthesized */) === 0); const moduleResolverHost = (tracker == null ? void 0 : tracker.trackSymbol) ? tracker.moduleResolverHost : flags & 134217728 /* DoNotIncludeSymbolChain */ ? createBasicNodeBuilderModuleSpecifierResolutionHost(host) : void 0; const context = { enclosingDeclaration, @@ -47165,7 +47539,7 @@ function createTypeChecker(host) { } if (type.flags & 64 /* BigInt */) { context.approximateLength += 6; - return factory.createKeywordTypeNode(162 /* BigIntKeyword */); + return factory.createKeywordTypeNode(163 /* BigIntKeyword */); } if (type.flags & 16 /* Boolean */ && !type.aliasSymbol) { context.approximateLength += 7; @@ -47438,11 +47812,13 @@ function createTypeChecker(host) { return !!type2.target && isMappedTypeHomomorphic(type2.target) && !isMappedTypeHomomorphic(type2); } function createMappedTypeNodeFromType(type2) { + var _a2; Debug.assert(!!(type2.flags & 524288 /* Object */)); const readonlyToken = type2.declaration.readonlyToken ? factory.createToken(type2.declaration.readonlyToken.kind) : void 0; const questionToken = type2.declaration.questionToken ? factory.createToken(type2.declaration.questionToken.kind) : void 0; let appropriateConstraintTypeNode; let newTypeVariable; + const needsModifierPreservingWrapper = !isMappedTypeWithKeyofConstraintDeclaration(type2) && !(getModifiersTypeFromMappedType(type2).flags & 2 /* Unknown */) && context.flags & 4 /* GenerateNamesForShadowedTypeParams */ && !(getConstraintTypeFromMappedType(type2).flags & 262144 /* TypeParameter */ && ((_a2 = getConstraintOfTypeParameter(getConstraintTypeFromMappedType(type2))) == null ? void 0 : _a2.flags) & 4194304 /* Index */); if (isMappedTypeWithKeyofConstraintDeclaration(type2)) { if (isHomomorphicMappedTypeWithNonHomomorphicInstantiation(type2) && context.flags & 4 /* GenerateNamesForShadowedTypeParams */) { const newParam = createTypeParameter(createSymbol(262144 /* TypeParameter */, "T")); @@ -47450,6 +47826,11 @@ function createTypeChecker(host) { newTypeVariable = factory.createTypeReferenceNode(name); } appropriateConstraintTypeNode = factory.createTypeOperatorNode(143 /* KeyOfKeyword */, newTypeVariable || typeToTypeNodeHelper(getModifiersTypeFromMappedType(type2), context)); + } else if (needsModifierPreservingWrapper) { + const newParam = createTypeParameter(createSymbol(262144 /* TypeParameter */, "T")); + const name = typeParameterToName(newParam, context); + newTypeVariable = factory.createTypeReferenceNode(name); + appropriateConstraintTypeNode = newTypeVariable; } else { appropriateConstraintTypeNode = typeToTypeNodeHelper(getConstraintTypeFromMappedType(type2), context); } @@ -47480,6 +47861,18 @@ function createTypeChecker(host) { result, factory.createKeywordTypeNode(146 /* NeverKeyword */) ); + } else if (needsModifierPreservingWrapper) { + return factory.createConditionalTypeNode( + typeToTypeNodeHelper(getConstraintTypeFromMappedType(type2), context), + factory.createInferTypeNode(factory.createTypeParameterDeclaration( + /*modifiers*/ + void 0, + factory.cloneNode(newTypeVariable.typeName), + factory.createTypeOperatorNode(143 /* KeyOfKeyword */, typeToTypeNodeHelper(getModifiersTypeFromMappedType(type2), context)) + )), + result, + factory.createKeywordTypeNode(146 /* NeverKeyword */) + ); } return result; } @@ -47531,7 +47924,7 @@ function createTypeChecker(host) { const isStaticMethodSymbol = !!(symbol.flags & 8192 /* Method */) && // typeof static method some(symbol.declarations, (declaration) => isStatic(declaration)); const isNonLocalFunctionSymbol = !!(symbol.flags & 16 /* Function */) && (symbol.parent || // is exported function symbol - forEach(symbol.declarations, (declaration) => declaration.parent.kind === 311 /* SourceFile */ || declaration.parent.kind === 267 /* ModuleBlock */)); + forEach(symbol.declarations, (declaration) => declaration.parent.kind === 312 /* SourceFile */ || declaration.parent.kind === 268 /* ModuleBlock */)); if (isStaticMethodSymbol || isNonLocalFunctionSymbol) { return (!!(context.flags & 4096 /* UseTypeOfFunction */) || ((_a3 = context.visitedTypes) == null ? void 0 : _a3.has(typeId))) && // it is type of the symbol uses itself recursively (!(context.flags & 8 /* UseStructuralFallback */) || isValueSymbolAccessible(symbol, context.enclosingDeclaration)); @@ -47614,12 +48007,12 @@ function createTypeChecker(host) { } if (resolved.callSignatures.length === 1 && !resolved.constructSignatures.length) { const signature = resolved.callSignatures[0]; - const signatureNode = signatureToSignatureDeclarationHelper(signature, 183 /* FunctionType */, context); + const signatureNode = signatureToSignatureDeclarationHelper(signature, 184 /* FunctionType */, context); return signatureNode; } if (resolved.constructSignatures.length === 1 && !resolved.callSignatures.length) { const signature = resolved.constructSignatures[0]; - const signatureNode = signatureToSignatureDeclarationHelper(signature, 184 /* ConstructorType */, context); + const signatureNode = signatureToSignatureDeclarationHelper(signature, 185 /* ConstructorType */, context); return signatureNode; } } @@ -47659,19 +48052,18 @@ function createTypeChecker(host) { const arity = getTypeReferenceArity(type2); const tupleConstituentNodes = mapToTypeNodes(typeArguments.slice(0, arity), context); if (tupleConstituentNodes) { - if (type2.target.labeledElementDeclarations) { - for (let i = 0; i < tupleConstituentNodes.length; i++) { - const flags = type2.target.elementFlags[i]; + const { labeledElementDeclarations } = type2.target; + for (let i = 0; i < tupleConstituentNodes.length; i++) { + const flags = type2.target.elementFlags[i]; + const labeledElementDeclaration = labeledElementDeclarations == null ? void 0 : labeledElementDeclarations[i]; + if (labeledElementDeclaration) { tupleConstituentNodes[i] = factory.createNamedTupleMember( flags & 12 /* Variable */ ? factory.createToken(26 /* DotDotDotToken */) : void 0, - factory.createIdentifier(unescapeLeadingUnderscores(getTupleElementLabel(type2.target.labeledElementDeclarations[i]))), + factory.createIdentifier(unescapeLeadingUnderscores(getTupleElementLabel(labeledElementDeclaration))), flags & 2 /* Optional */ ? factory.createToken(58 /* QuestionToken */) : void 0, flags & 4 /* Rest */ ? factory.createArrayTypeNode(tupleConstituentNodes[i]) : tupleConstituentNodes[i] ); - } - } else { - for (let i = 0; i < Math.min(arity, tupleConstituentNodes.length); i++) { - const flags = type2.target.elementFlags[i]; + } else { tupleConstituentNodes[i] = flags & 12 /* Variable */ ? factory.createRestTypeNode(flags & 4 /* Rest */ ? factory.createArrayTypeNode(tupleConstituentNodes[i]) : tupleConstituentNodes[i]) : flags & 2 /* Optional */ ? factory.createOptionalTypeNode(tupleConstituentNodes[i]) : tupleConstituentNodes[i]; } } @@ -47805,12 +48197,12 @@ function createTypeChecker(host) { } const typeElements = []; for (const signature of resolvedType.callSignatures) { - typeElements.push(signatureToSignatureDeclarationHelper(signature, 178 /* CallSignature */, context)); + typeElements.push(signatureToSignatureDeclarationHelper(signature, 179 /* CallSignature */, context)); } for (const signature of resolvedType.constructSignatures) { if (signature.flags & 4 /* Abstract */) continue; - typeElements.push(signatureToSignatureDeclarationHelper(signature, 179 /* ConstructSignature */, context)); + typeElements.push(signatureToSignatureDeclarationHelper(signature, 180 /* ConstructSignature */, context)); } for (const info of resolvedType.indexInfos) { typeElements.push(indexInfoToIndexSignatureDeclarationHelper(info, context, resolvedType.objectFlags & 1024 /* ReverseMapped */ ? createElidedInformationPlaceholder(context) : void 0)); @@ -47894,39 +48286,41 @@ function createTypeChecker(host) { if (propertySymbol.flags & (16 /* Function */ | 8192 /* Method */) && !getPropertiesOfObjectType(propertyType).length && !isReadonlySymbol(propertySymbol)) { const signatures = getSignaturesOfType(filterType(propertyType, (t) => !(t.flags & 32768 /* Undefined */)), 0 /* Call */); for (const signature of signatures) { - const methodDeclaration = signatureToSignatureDeclarationHelper(signature, 172 /* MethodSignature */, context, { name: propertyName, questionToken: optionalToken }); + const methodDeclaration = signatureToSignatureDeclarationHelper(signature, 173 /* MethodSignature */, context, { name: propertyName, questionToken: optionalToken }); typeElements.push(preserveCommentsOn(methodDeclaration)); } + if (signatures.length || !optionalToken) { + return; + } + } + let propertyTypeNode; + if (shouldUsePlaceholderForProperty(propertySymbol, context)) { + propertyTypeNode = createElidedInformationPlaceholder(context); } else { - let propertyTypeNode; - if (shouldUsePlaceholderForProperty(propertySymbol, context)) { - propertyTypeNode = createElidedInformationPlaceholder(context); - } else { - if (propertyIsReverseMapped) { - context.reverseMappedStack || (context.reverseMappedStack = []); - context.reverseMappedStack.push(propertySymbol); - } - propertyTypeNode = propertyType ? serializeTypeForDeclaration(context, propertyType, propertySymbol, saveEnclosingDeclaration) : factory.createKeywordTypeNode(133 /* AnyKeyword */); - if (propertyIsReverseMapped) { - context.reverseMappedStack.pop(); - } + if (propertyIsReverseMapped) { + context.reverseMappedStack || (context.reverseMappedStack = []); + context.reverseMappedStack.push(propertySymbol); } - const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0; - if (modifiers) { - context.approximateLength += 9; + propertyTypeNode = propertyType ? serializeTypeForDeclaration(context, propertyType, propertySymbol, saveEnclosingDeclaration) : factory.createKeywordTypeNode(133 /* AnyKeyword */); + if (propertyIsReverseMapped) { + context.reverseMappedStack.pop(); } - const propertySignature = factory.createPropertySignature( - modifiers, - propertyName, - optionalToken, - propertyTypeNode - ); - typeElements.push(preserveCommentsOn(propertySignature)); } + const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0; + if (modifiers) { + context.approximateLength += 9; + } + const propertySignature = factory.createPropertySignature( + modifiers, + propertyName, + optionalToken, + propertyTypeNode + ); + typeElements.push(preserveCommentsOn(propertySignature)); function preserveCommentsOn(node) { var _a2; - if (some(propertySymbol.declarations, (d) => d.kind === 354 /* JSDocPropertyTag */)) { - const d = (_a2 = propertySymbol.declarations) == null ? void 0 : _a2.find((d2) => d2.kind === 354 /* JSDocPropertyTag */); + if (some(propertySymbol.declarations, (d) => d.kind === 355 /* JSDocPropertyTag */)) { + const d = (_a2 = propertySymbol.declarations) == null ? void 0 : _a2.find((d2) => d2.kind === 355 /* JSDocPropertyTag */); const commentText = getTextOfJSDocComment(d.comment); if (commentText) { setSyntheticLeadingComments(node, [{ kind: 3 /* MultiLineCommentTrivia */, text: "*\n * " + commentText.replace(/\n/g, "\n * ") + "\n ", pos: -1, end: -1, hasTrailingNewLine: true }]); @@ -48032,6 +48426,7 @@ function createTypeChecker(host) { ); } function signatureToSignatureDeclarationHelper(signature, kind, context, options) { + var _a; const suppressAny = context.flags & 256 /* SuppressAnyReturnType */; if (suppressAny) context.flags &= ~256 /* SuppressAnyReturnType */; @@ -48081,7 +48476,7 @@ function createTypeChecker(host) { } } } - const parameters = (some(expandedParams, (p) => p !== expandedParams[expandedParams.length - 1] && !!(getCheckFlags(p) & 32768 /* RestParameter */)) ? signature.parameters : expandedParams).map((parameter) => symbolToParameterDeclaration(parameter, context, kind === 175 /* Constructor */, options == null ? void 0 : options.privateSymbolVisitor, options == null ? void 0 : options.bundledImports)); + const parameters = (some(expandedParams, (p) => p !== expandedParams[expandedParams.length - 1] && !!(getCheckFlags(p) & 32768 /* RestParameter */)) ? signature.parameters : expandedParams).map((parameter) => symbolToParameterDeclaration(parameter, context, kind === 176 /* Constructor */, options == null ? void 0 : options.privateSymbolVisitor, options == null ? void 0 : options.bundledImports)); const thisParameter = context.flags & 33554432 /* OmitThisParameter */ ? void 0 : tryGetThisParameterDeclaration(signature, context); if (thisParameter) { parameters.unshift(thisParameter); @@ -48102,11 +48497,11 @@ function createTypeChecker(host) { } } let modifiers = options == null ? void 0 : options.modifiers; - if (kind === 184 /* ConstructorType */ && signature.flags & 4 /* Abstract */) { + if (kind === 185 /* ConstructorType */ && signature.flags & 4 /* Abstract */) { const flags = modifiersToFlags(modifiers); modifiers = factory.createModifiersFromModifierFlags(flags | 256 /* Abstract */); } - const node = kind === 178 /* CallSignature */ ? factory.createCallSignature(typeParameters, parameters, returnTypeNode) : kind === 179 /* ConstructSignature */ ? factory.createConstructSignature(typeParameters, parameters, returnTypeNode) : kind === 172 /* MethodSignature */ ? factory.createMethodSignature(modifiers, (options == null ? void 0 : options.name) ?? factory.createIdentifier(""), options == null ? void 0 : options.questionToken, typeParameters, parameters, returnTypeNode) : kind === 173 /* MethodDeclaration */ ? factory.createMethodDeclaration( + const node = kind === 179 /* CallSignature */ ? factory.createCallSignature(typeParameters, parameters, returnTypeNode) : kind === 180 /* ConstructSignature */ ? factory.createConstructSignature(typeParameters, parameters, returnTypeNode) : kind === 173 /* MethodSignature */ ? factory.createMethodSignature(modifiers, (options == null ? void 0 : options.name) ?? factory.createIdentifier(""), options == null ? void 0 : options.questionToken, typeParameters, parameters, returnTypeNode) : kind === 174 /* MethodDeclaration */ ? factory.createMethodDeclaration( modifiers, /*asteriskToken*/ void 0, @@ -48118,25 +48513,25 @@ function createTypeChecker(host) { returnTypeNode, /*body*/ void 0 - ) : kind === 175 /* Constructor */ ? factory.createConstructorDeclaration( + ) : kind === 176 /* Constructor */ ? factory.createConstructorDeclaration( modifiers, parameters, /*body*/ void 0 - ) : kind === 176 /* GetAccessor */ ? factory.createGetAccessorDeclaration( + ) : kind === 177 /* GetAccessor */ ? factory.createGetAccessorDeclaration( modifiers, (options == null ? void 0 : options.name) ?? factory.createIdentifier(""), parameters, returnTypeNode, /*body*/ void 0 - ) : kind === 177 /* SetAccessor */ ? factory.createSetAccessorDeclaration( + ) : kind === 178 /* SetAccessor */ ? factory.createSetAccessorDeclaration( modifiers, (options == null ? void 0 : options.name) ?? factory.createIdentifier(""), parameters, /*body*/ void 0 - ) : kind === 180 /* IndexSignature */ ? factory.createIndexSignature(modifiers, parameters, returnTypeNode) : kind === 323 /* JSDocFunctionType */ ? factory.createJSDocFunctionType(parameters, returnTypeNode) : kind === 183 /* FunctionType */ ? factory.createFunctionTypeNode(typeParameters, parameters, returnTypeNode ?? factory.createTypeReferenceNode(factory.createIdentifier(""))) : kind === 184 /* ConstructorType */ ? factory.createConstructorTypeNode(modifiers, typeParameters, parameters, returnTypeNode ?? factory.createTypeReferenceNode(factory.createIdentifier(""))) : kind === 261 /* FunctionDeclaration */ ? factory.createFunctionDeclaration( + ) : kind === 181 /* IndexSignature */ ? factory.createIndexSignature(modifiers, parameters, returnTypeNode) : kind === 324 /* JSDocFunctionType */ ? factory.createJSDocFunctionType(parameters, returnTypeNode) : kind === 184 /* FunctionType */ ? factory.createFunctionTypeNode(typeParameters, parameters, returnTypeNode ?? factory.createTypeReferenceNode(factory.createIdentifier(""))) : kind === 185 /* ConstructorType */ ? factory.createConstructorTypeNode(modifiers, typeParameters, parameters, returnTypeNode ?? factory.createTypeReferenceNode(factory.createIdentifier(""))) : kind === 262 /* FunctionDeclaration */ ? factory.createFunctionDeclaration( modifiers, /*asteriskToken*/ void 0, @@ -48146,7 +48541,7 @@ function createTypeChecker(host) { returnTypeNode, /*body*/ void 0 - ) : kind === 217 /* FunctionExpression */ ? factory.createFunctionExpression( + ) : kind === 218 /* FunctionExpression */ ? factory.createFunctionExpression( modifiers, /*asteriskToken*/ void 0, @@ -48155,7 +48550,7 @@ function createTypeChecker(host) { parameters, returnTypeNode, factory.createBlock([]) - ) : kind === 218 /* ArrowFunction */ ? factory.createArrowFunction( + ) : kind === 219 /* ArrowFunction */ ? factory.createArrowFunction( modifiers, typeParameters, parameters, @@ -48167,6 +48562,20 @@ function createTypeChecker(host) { if (typeArguments) { node.typeArguments = factory.createNodeArray(typeArguments); } + if (((_a = signature.declaration) == null ? void 0 : _a.kind) === 330 /* JSDocSignature */ && signature.declaration.parent.kind === 346 /* JSDocOverloadTag */) { + const comment = getTextOfNode( + signature.declaration.parent.parent, + /*includeTrivia*/ + true + ).slice(2, -2).split(/\r\n|\n|\r/).map((line) => line.replace(/^\s+/, " ")).join("\n"); + addSyntheticLeadingComment( + node, + 3 /* MultiLineCommentTrivia */, + comment, + /*hasTrailingNewLine*/ + true + ); + } cleanup == null ? void 0 : cleanup(); return node; } @@ -48205,9 +48614,9 @@ function createTypeChecker(host) { return typeParameterToDeclarationWithConstraint(type, context, constraintNode); } function symbolToParameterDeclaration(parameterSymbol, context, preserveModifierFlags, privateSymbolVisitor, bundledImports) { - let parameterDeclaration = getDeclarationOfKind(parameterSymbol, 168 /* Parameter */); + let parameterDeclaration = getDeclarationOfKind(parameterSymbol, 169 /* Parameter */); if (!parameterDeclaration && !isTransientSymbol(parameterSymbol)) { - parameterDeclaration = getDeclarationOfKind(parameterSymbol, 347 /* JSDocParameterTag */); + parameterDeclaration = getDeclarationOfKind(parameterSymbol, 348 /* JSDocParameterTag */); } let parameterType = getTypeOfSymbol(parameterSymbol); if (parameterDeclaration && isRequiredInitializedParameter(parameterDeclaration)) { @@ -48217,7 +48626,7 @@ function createTypeChecker(host) { const modifiers = !(context.flags & 8192 /* OmitParameterModifiers */) && preserveModifierFlags && parameterDeclaration && canHaveModifiers(parameterDeclaration) ? map(getModifiers(parameterDeclaration), factory.cloneNode) : void 0; const isRest = parameterDeclaration && isRestParameter(parameterDeclaration) || getCheckFlags(parameterSymbol) & 32768 /* RestParameter */; const dotDotDotToken = isRest ? factory.createToken(26 /* DotDotDotToken */) : void 0; - const name = parameterDeclaration ? parameterDeclaration.name ? parameterDeclaration.name.kind === 80 /* Identifier */ ? setEmitFlags(factory.cloneNode(parameterDeclaration.name), 16777216 /* NoAsciiEscaping */) : parameterDeclaration.name.kind === 165 /* QualifiedName */ ? setEmitFlags(factory.cloneNode(parameterDeclaration.name.right), 16777216 /* NoAsciiEscaping */) : cloneBindingName(parameterDeclaration.name) : symbolName(parameterSymbol) : symbolName(parameterSymbol); + const name = parameterDeclaration ? parameterDeclaration.name ? parameterDeclaration.name.kind === 80 /* Identifier */ ? setEmitFlags(factory.cloneNode(parameterDeclaration.name), 16777216 /* NoAsciiEscaping */) : parameterDeclaration.name.kind === 166 /* QualifiedName */ ? setEmitFlags(factory.cloneNode(parameterDeclaration.name.right), 16777216 /* NoAsciiEscaping */) : cloneBindingName(parameterDeclaration.name) : symbolName(parameterSymbol) : symbolName(parameterSymbol); const isOptional = parameterDeclaration && isOptionalParameter(parameterDeclaration) || getCheckFlags(parameterSymbol) & 16384 /* OptionalParameter */; const questionToken = isOptional ? factory.createToken(58 /* QuestionToken */) : void 0; const parameterNode = factory.createParameterDeclaration( @@ -48397,11 +48806,11 @@ function createTypeChecker(host) { return top; } function getSpecifierForModuleSymbol(symbol, context, overrideImportMode) { - let file = getDeclarationOfKind(symbol, 311 /* SourceFile */); + let file = getDeclarationOfKind(symbol, 312 /* SourceFile */); if (!file) { const equivalentFileSymbol = firstDefined(symbol.declarations, (d) => getFileSymbolIfFileSymbolExportEqualsContainer(d, symbol)); if (equivalentFileSymbol) { - file = getDeclarationOfKind(equivalentFileSymbol, 311 /* SourceFile */); + file = getDeclarationOfKind(equivalentFileSymbol, 312 /* SourceFile */); } } if (file && file.moduleName !== void 0) { @@ -48881,7 +49290,7 @@ function createTypeChecker(host) { } return transformed === existing ? setTextRange(factory.cloneNode(existing), existing) : transformed; function visitExistingNodeTreeSymbols(node) { - if (isJSDocAllType(node) || node.kind === 325 /* JSDocNamepathType */) { + if (isJSDocAllType(node) || node.kind === 326 /* JSDocNamepathType */) { return factory.createKeywordTypeNode(133 /* AnyKeyword */); } if (isJSDocUnknownType(node)) { @@ -49045,13 +49454,13 @@ function createTypeChecker(host) { function symbolTableToDeclarationStatements(symbolTable, context, bundled) { const serializePropertySymbolForClass = makeSerializePropertySymbol( factory.createPropertyDeclaration, - 173 /* MethodDeclaration */, + 174 /* MethodDeclaration */, /*useAccessors*/ true ); const serializePropertySymbolForInterfaceWorker = makeSerializePropertySymbol( (mods, name, question, type) => factory.createPropertySignature(mods, name, question, type), - 172 /* MethodSignature */, + 173 /* MethodSignature */, /*useAccessors*/ false ); @@ -49320,7 +49729,7 @@ function createTypeChecker(host) { if (!(symbol.flags & 16 /* Function */) && isTypeRepresentableAsFunctionNamespaceMerge(type, symbol)) { serializeAsFunctionNamespaceMerge(type, symbol, localName, modifierFlags); } else { - const flags = !(symbol.flags & 2 /* BlockScopedVariable */) ? ((_a = symbol.parent) == null ? void 0 : _a.valueDeclaration) && isSourceFile((_b = symbol.parent) == null ? void 0 : _b.valueDeclaration) ? 2 /* Const */ : void 0 : isConstVariable(symbol) ? 2 /* Const */ : 1 /* Let */; + const flags = !(symbol.flags & 2 /* BlockScopedVariable */) ? ((_a = symbol.parent) == null ? void 0 : _a.valueDeclaration) && isSourceFile((_b = symbol.parent) == null ? void 0 : _b.valueDeclaration) ? 2 /* Const */ : void 0 : isConstantVariable(symbol) ? 2 /* Const */ : 1 /* Let */; const name = needsPostExportDefault || !(symbol.flags & 4 /* Property */) ? localName : getUnusedName(localName, symbol); let textRange = symbol.declarations && find(symbol.declarations, (d) => isVariableDeclaration(d)); if (textRange && isVariableDeclarationList(textRange.parent) && textRange.parent.declarations.length === 1) { @@ -49466,7 +49875,7 @@ function createTypeChecker(host) { if (additionalModifierFlags & 1 /* Export */ && enclosingDeclaration2 && (isExportingScope(enclosingDeclaration2) || isModuleDeclaration(enclosingDeclaration2)) && canHaveExportModifier(node)) { newModifierFlags |= 1 /* Export */; } - if (addingDeclare && !(newModifierFlags & 1 /* Export */) && (!enclosingDeclaration2 || !(enclosingDeclaration2.flags & 16777216 /* Ambient */)) && (isEnumDeclaration(node) || isVariableStatement(node) || isFunctionDeclaration(node) || isClassDeclaration(node) || isModuleDeclaration(node))) { + if (addingDeclare && !(newModifierFlags & 1 /* Export */) && (!enclosingDeclaration2 || !(enclosingDeclaration2.flags & 33554432 /* Ambient */)) && (isEnumDeclaration(node) || isVariableStatement(node) || isFunctionDeclaration(node) || isClassDeclaration(node) || isModuleDeclaration(node))) { newModifierFlags |= 2 /* Ambient */; } if (additionalModifierFlags & 1024 /* Default */ && (isClassDeclaration(node) || isInterfaceDeclaration(node) || isFunctionDeclaration(node))) { @@ -49510,8 +49919,8 @@ function createTypeChecker(host) { const baseTypes = getBaseTypes(interfaceType); const baseType = length(baseTypes) ? getIntersectionType(baseTypes) : void 0; const members = flatMap(getPropertiesOfType(interfaceType), (p) => serializePropertySymbolForInterface(p, baseType)); - const callSignatures = serializeSignatures(0 /* Call */, interfaceType, baseType, 178 /* CallSignature */); - const constructSignatures = serializeSignatures(1 /* Construct */, interfaceType, baseType, 179 /* ConstructSignature */); + const callSignatures = serializeSignatures(0 /* Call */, interfaceType, baseType, 179 /* CallSignature */); + const constructSignatures = serializeSignatures(1 /* Construct */, interfaceType, baseType, 180 /* ConstructSignature */); const indexSignatures = serializeIndexSignatures(interfaceType, baseType); const heritageClauses = !length(baseTypes) ? void 0 : [factory.createHeritageClause(96 /* ExtendsKeyword */, mapDefined(baseTypes, (b) => trySerializeAsTypeReference(b, 111551 /* Value */)))]; addResult(factory.createInterfaceDeclaration( @@ -49528,7 +49937,7 @@ function createTypeChecker(host) { return !exports ? [] : filter(arrayFrom(exports.values()), (m) => isNamespaceMember(m) && isIdentifierText(m.escapedName, 99 /* ESNext */)); } function isTypeOnlyNamespace(symbol) { - return every(getNamespaceMembersForSerialization(symbol), (m) => !(getAllSymbolFlags(resolveSymbol(m)) & 111551 /* Value */)); + return every(getNamespaceMembersForSerialization(symbol), (m) => !(getSymbolFlags(resolveSymbol(m)) & 111551 /* Value */)); } function serializeModule(symbol, symbolName2, modifierFlags) { const members = getNamespaceMembersForSerialization(symbol); @@ -49576,7 +49985,7 @@ function createTypeChecker(host) { void 0, factory.createIdentifier(localName), nsBody, - 16 /* Namespace */ + 32 /* Namespace */ ), 0 /* None */); } } @@ -49593,7 +50002,7 @@ function createTypeChecker(host) { function serializeAsFunctionNamespaceMerge(type, symbol, localName, modifierFlags) { const signatures = getSignaturesOfType(type, 0 /* Call */); for (const sig of signatures) { - const decl = signatureToSignatureDeclarationHelper(sig, 261 /* FunctionDeclaration */, context, { name: factory.createIdentifier(localName), privateSymbolVisitor: includePrivateSymbol, bundledImports: bundled }); + const decl = signatureToSignatureDeclarationHelper(sig, 262 /* FunctionDeclaration */, context, { name: factory.createIdentifier(localName), privateSymbolVisitor: includePrivateSymbol, bundledImports: bundled }); addResult(setTextRange(decl, getSignatureTextRangeLocation(sig)), modifierFlags); } if (!(symbol.flags & (512 /* ValueModule */ | 1024 /* NamespaceModule */) && !!symbol.exports && !!symbol.exports.size)) { @@ -49633,7 +50042,7 @@ function createTypeChecker(host) { void 0, factory.createIdentifier(localName), factory.createModuleBlock([]), - 16 /* Namespace */ + 32 /* Namespace */ ); setParent(fakespace, enclosingDeclaration); fakespace.locals = createSymbolTable(props); @@ -49777,7 +50186,7 @@ function createTypeChecker(host) { [], /*body*/ void 0 - )] : serializeSignatures(1 /* Construct */, staticType, staticBaseType, 175 /* Constructor */); + )] : serializeSignatures(1 /* Construct */, staticType, staticBaseType, 176 /* Constructor */); const indexSignatures = serializeIndexSignatures(classType, baseTypes[0]); context.enclosingDeclaration = oldEnclosing; addResult(setTextRange(factory.createClassDeclaration( @@ -49829,8 +50238,8 @@ function createTypeChecker(host) { const targetName = getInternalSymbolName(target, verbatimTargetName); includePrivateSymbol(target); switch (node.kind) { - case 207 /* BindingElement */: - if (((_b = (_a = node.parent) == null ? void 0 : _a.parent) == null ? void 0 : _b.kind) === 259 /* VariableDeclaration */) { + case 208 /* BindingElement */: + if (((_b = (_a = node.parent) == null ? void 0 : _a.parent) == null ? void 0 : _b.kind) === 260 /* VariableDeclaration */) { const specifier2 = getSpecifierForModuleSymbol(target.parent || target, context); const { propertyName } = node; addResult(factory.createImportDeclaration( @@ -49856,15 +50265,15 @@ function createTypeChecker(host) { } Debug.failBadSyntaxKind(((_c = node.parent) == null ? void 0 : _c.parent) || node, "Unhandled binding element grandparent kind in declaration serialization"); break; - case 303 /* ShorthandPropertyAssignment */: - if (((_e = (_d = node.parent) == null ? void 0 : _d.parent) == null ? void 0 : _e.kind) === 225 /* BinaryExpression */) { + case 304 /* ShorthandPropertyAssignment */: + if (((_e = (_d = node.parent) == null ? void 0 : _d.parent) == null ? void 0 : _e.kind) === 226 /* BinaryExpression */) { serializeExportSpecifier( unescapeLeadingUnderscores(symbol.escapedName), targetName ); } break; - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: if (isPropertyAccessExpression(node.initializer)) { const initializer = node.initializer; const uniqueName = factory.createUniqueName(localName); @@ -49887,7 +50296,7 @@ function createTypeChecker(host) { ), modifierFlags); break; } - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: if (target.escapedName === "export=" /* ExportEquals */ && some(target.declarations, (d) => isSourceFile(d) && isJsonSourceFile(d))) { serializeMaybeAliasAssignment(symbol); break; @@ -49908,10 +50317,10 @@ function createTypeChecker(host) { ) : factory.createExternalModuleReference(factory.createStringLiteral(getSpecifierForModuleSymbol(target, context))) ), isLocalImport ? modifierFlags : 0 /* None */); break; - case 269 /* NamespaceExportDeclaration */: + case 270 /* NamespaceExportDeclaration */: addResult(factory.createNamespaceExportDeclaration(idText(node.name)), 0 /* None */); break; - case 272 /* ImportClause */: { + case 273 /* ImportClause */: { const generatedSpecifier = getSpecifierForModuleSymbol(target.parent || target, context); const specifier2 = bundled ? factory.createStringLiteral(generatedSpecifier) : node.parent.moduleSpecifier; addResult(factory.createImportDeclaration( @@ -49929,7 +50338,7 @@ function createTypeChecker(host) { ), 0 /* None */); break; } - case 273 /* NamespaceImport */: { + case 274 /* NamespaceImport */: { const generatedSpecifier = getSpecifierForModuleSymbol(target.parent || target, context); const specifier2 = bundled ? factory.createStringLiteral(generatedSpecifier) : node.parent.parent.moduleSpecifier; addResult(factory.createImportDeclaration( @@ -49947,7 +50356,7 @@ function createTypeChecker(host) { ), 0 /* None */); break; } - case 279 /* NamespaceExport */: + case 280 /* NamespaceExport */: addResult(factory.createExportDeclaration( /*modifiers*/ void 0, @@ -49957,7 +50366,7 @@ function createTypeChecker(host) { factory.createStringLiteral(getSpecifierForModuleSymbol(target, context)) ), 0 /* None */); break; - case 275 /* ImportSpecifier */: { + case 276 /* ImportSpecifier */: { const generatedSpecifier = getSpecifierForModuleSymbol(target.parent || target, context); const specifier2 = bundled ? factory.createStringLiteral(generatedSpecifier) : node.parent.parent.parent.moduleSpecifier; addResult(factory.createImportDeclaration( @@ -49982,7 +50391,7 @@ function createTypeChecker(host) { ), 0 /* None */); break; } - case 280 /* ExportSpecifier */: + case 281 /* ExportSpecifier */: const specifier = node.parent.parent.moduleSpecifier; serializeExportSpecifier( unescapeLeadingUnderscores(symbol.escapedName), @@ -49990,12 +50399,12 @@ function createTypeChecker(host) { specifier && isStringLiteralLike(specifier) ? factory.createStringLiteral(specifier.text) : void 0 ); break; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: serializeMaybeAliasAssignment(symbol); break; - case 225 /* BinaryExpression */: - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 226 /* BinaryExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: if (symbol.escapedName === "default" /* Default */ || symbol.escapedName === "export=" /* ExportEquals */) { serializeMaybeAliasAssignment(symbol); } else { @@ -50102,7 +50511,7 @@ function createTypeChecker(host) { void 0, serializeTypeForDeclaration(context, typeToSerialize, symbol, enclosingDeclaration, includePrivateSymbol, bundled) ) - ], ((_a = context.enclosingDeclaration) == null ? void 0 : _a.kind) === 266 /* ModuleDeclaration */ ? 1 /* Let */ : 2 /* Const */) + ], ((_a = context.enclosingDeclaration) == null ? void 0 : _a.kind) === 267 /* ModuleDeclaration */ ? 1 /* Let */ : 2 /* Const */) ); addResult( statement, @@ -50475,10 +50884,10 @@ function createTypeChecker(host) { return void 0; } function isTopLevelInExternalModuleAugmentation(node) { - return node && node.parent && node.parent.kind === 267 /* ModuleBlock */ && isExternalModuleAugmentation(node.parent.parent); + return node && node.parent && node.parent.kind === 268 /* ModuleBlock */ && isExternalModuleAugmentation(node.parent.parent); } function isDefaultBindingContext(location) { - return location.kind === 311 /* SourceFile */ || isAmbientModule(location); + return location.kind === 312 /* SourceFile */ || isAmbientModule(location); } function getNameOfSymbolFromNameType(symbol, context) { const nameType = getSymbolLinks(symbol).nameType; @@ -50526,17 +50935,17 @@ function createTypeChecker(host) { if (!declaration) { declaration = symbol.declarations[0]; } - if (declaration.parent && declaration.parent.kind === 259 /* VariableDeclaration */) { + if (declaration.parent && declaration.parent.kind === 260 /* VariableDeclaration */) { return declarationNameToString(declaration.parent.name); } switch (declaration.kind) { - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: if (context && !context.encounteredError && !(context.flags & 131072 /* AllowAnonymousIdentifier */)) { context.encounteredError = true; } - return declaration.kind === 230 /* ClassExpression */ ? "(Anonymous class)" : "(Anonymous function)"; + return declaration.kind === 231 /* ClassExpression */ ? "(Anonymous class)" : "(Anonymous function)"; } } const name = getNameOfSymbolFromNameType(symbol, context); @@ -50553,66 +50962,66 @@ function createTypeChecker(host) { return false; function determineIfDeclarationIsVisible() { switch (node.kind) { - case 344 /* JSDocCallbackTag */: - case 352 /* JSDocTypedefTag */: - case 346 /* JSDocEnumTag */: + case 345 /* JSDocCallbackTag */: + case 353 /* JSDocTypedefTag */: + case 347 /* JSDocEnumTag */: return !!(node.parent && node.parent.parent && node.parent.parent.parent && isSourceFile(node.parent.parent.parent)); - case 207 /* BindingElement */: + case 208 /* BindingElement */: return isDeclarationVisible(node.parent.parent); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: if (isBindingPattern(node.name) && !node.name.elements.length) { return false; } - case 266 /* ModuleDeclaration */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 261 /* FunctionDeclaration */: - case 265 /* EnumDeclaration */: - case 270 /* ImportEqualsDeclaration */: + case 267 /* ModuleDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 262 /* FunctionDeclaration */: + case 266 /* EnumDeclaration */: + case 271 /* ImportEqualsDeclaration */: if (isExternalModuleAugmentation(node)) { return true; } const parent = getDeclarationContainer(node); - if (!(getCombinedModifierFlags(node) & 1 /* Export */) && !(node.kind !== 270 /* ImportEqualsDeclaration */ && parent.kind !== 311 /* SourceFile */ && parent.flags & 16777216 /* Ambient */)) { + if (!(getCombinedModifierFlagsCached(node) & 1 /* Export */) && !(node.kind !== 271 /* ImportEqualsDeclaration */ && parent.kind !== 312 /* SourceFile */ && parent.flags & 33554432 /* Ambient */)) { return isGlobalSourceFile(parent); } return isDeclarationVisible(parent); - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: if (hasEffectiveModifier(node, 8 /* Private */ | 16 /* Protected */)) { return false; } - case 175 /* Constructor */: - case 179 /* ConstructSignature */: - case 178 /* CallSignature */: - case 180 /* IndexSignature */: - case 168 /* Parameter */: - case 267 /* ModuleBlock */: - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 186 /* TypeLiteral */: - case 182 /* TypeReference */: - case 187 /* ArrayType */: - case 188 /* TupleType */: - case 191 /* UnionType */: - case 192 /* IntersectionType */: - case 195 /* ParenthesizedType */: - case 201 /* NamedTupleMember */: + case 176 /* Constructor */: + case 180 /* ConstructSignature */: + case 179 /* CallSignature */: + case 181 /* IndexSignature */: + case 169 /* Parameter */: + case 268 /* ModuleBlock */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 187 /* TypeLiteral */: + case 183 /* TypeReference */: + case 188 /* ArrayType */: + case 189 /* TupleType */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: + case 196 /* ParenthesizedType */: + case 202 /* NamedTupleMember */: return isDeclarationVisible(node.parent); - case 272 /* ImportClause */: - case 273 /* NamespaceImport */: - case 275 /* ImportSpecifier */: + case 273 /* ImportClause */: + case 274 /* NamespaceImport */: + case 276 /* ImportSpecifier */: return false; - case 167 /* TypeParameter */: - case 311 /* SourceFile */: - case 269 /* NamespaceExportDeclaration */: + case 168 /* TypeParameter */: + case 312 /* SourceFile */: + case 270 /* NamespaceExportDeclaration */: return true; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return false; default: return false; @@ -50621,7 +51030,7 @@ function createTypeChecker(host) { } function collectLinkedAliases(node, setVisibility) { let exportSymbol; - if (node.parent && node.parent.kind === 276 /* ExportAssignment */) { + if (node.parent && node.parent.kind === 277 /* ExportAssignment */) { exportSymbol = resolveName( node, node.escapedText, @@ -50632,7 +51041,7 @@ function createTypeChecker(host) { /*isUse*/ false ); - } else if (node.parent.kind === 280 /* ExportSpecifier */) { + } else if (node.parent.kind === 281 /* ExportSpecifier */) { exportSymbol = getTargetOfExportSpecifier(node.parent, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */); } let result; @@ -50736,12 +51145,12 @@ function createTypeChecker(host) { function getDeclarationContainer(node) { return findAncestor(getRootDeclaration(node), (node2) => { switch (node2.kind) { - case 259 /* VariableDeclaration */: - case 260 /* VariableDeclarationList */: - case 275 /* ImportSpecifier */: - case 274 /* NamedImports */: - case 273 /* NamespaceImport */: - case 272 /* ImportClause */: + case 260 /* VariableDeclaration */: + case 261 /* VariableDeclarationList */: + case 276 /* ImportSpecifier */: + case 275 /* NamedImports */: + case 274 /* NamespaceImport */: + case 273 /* ImportClause */: return false; default: return true; @@ -50760,6 +51169,17 @@ function createTypeChecker(host) { var _a; return getTypeOfPropertyOfType(type, name) || ((_a = getApplicableIndexInfoForName(type, name)) == null ? void 0 : _a.type) || unknownType; } + function getTypeOfPropertyOrIndexSignatureOfType(type, name) { + var _a; + let propType; + return getTypeOfPropertyOfType(type, name) || (propType = (_a = getApplicableIndexInfoForName(type, name)) == null ? void 0 : _a.type) && addOptionality( + propType, + /*isProperty*/ + true, + /*isOptional*/ + true + ); + } function isTypeAny(type) { return type && (type.flags & 1 /* Any */) !== 0; } @@ -50859,23 +51279,23 @@ function createTypeChecker(host) { function getParentElementAccess(node) { const ancestor = node.parent.parent; switch (ancestor.kind) { - case 207 /* BindingElement */: - case 302 /* PropertyAssignment */: + case 208 /* BindingElement */: + case 303 /* PropertyAssignment */: return getSyntheticElementAccess(ancestor); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return getSyntheticElementAccess(node.parent); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return ancestor.initializer; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return ancestor.right; } } function getDestructuringPropertyName(node) { const parent = node.parent; - if (node.kind === 207 /* BindingElement */ && parent.kind === 205 /* ObjectBindingPattern */) { + if (node.kind === 208 /* BindingElement */ && parent.kind === 206 /* ObjectBindingPattern */) { return getLiteralPropertyNameText(node.propertyName || node.name); } - if (node.kind === 302 /* PropertyAssignment */ || node.kind === 303 /* ShorthandPropertyAssignment */) { + if (node.kind === 303 /* PropertyAssignment */ || node.kind === 304 /* ShorthandPropertyAssignment */) { return getLiteralPropertyNameText(node.name); } return "" + parent.elements.indexOf(node); @@ -50894,13 +51314,13 @@ function createTypeChecker(host) { return parentType; } const pattern = declaration.parent; - if (strictNullChecks && declaration.flags & 16777216 /* Ambient */ && isParameterDeclaration(declaration)) { + if (strictNullChecks && declaration.flags & 33554432 /* Ambient */ && isParameterDeclaration(declaration)) { parentType = getNonNullableType(parentType); } else if (strictNullChecks && pattern.parent.initializer && !(getTypeFacts(getTypeOfInitializer(pattern.parent.initializer)) & 65536 /* EQUndefined */)) { parentType = getTypeWithFacts(parentType, 524288 /* NEUndefined */); } let type; - if (pattern.kind === 205 /* ObjectBindingPattern */) { + if (pattern.kind === 206 /* ObjectBindingPattern */) { if (declaration.dotDotDotToken) { parentType = getReducedType(parentType); if (parentType.flags & 2 /* Unknown */ || !isValidSpreadType(parentType)) { @@ -50964,13 +51384,13 @@ function createTypeChecker(host) { /*excludeJSDocTypeAssertions*/ true ); - return expr.kind === 208 /* ArrayLiteralExpression */ && expr.elements.length === 0; + return expr.kind === 209 /* ArrayLiteralExpression */ && expr.elements.length === 0; } function addOptionality(type, isProperty = false, isOptional = true) { return strictNullChecks && isOptional ? getOptionalType(type, isProperty) : type; } function getTypeForVariableLikeDeclaration(declaration, includeOptionality, checkMode) { - if (isVariableDeclaration(declaration) && declaration.parent.parent.kind === 248 /* ForInStatement */) { + if (isVariableDeclaration(declaration) && declaration.parent.parent.kind === 249 /* ForInStatement */) { const indexType = getIndexType(getNonNullableTypeIfNeeded(checkExpression( declaration.parent.parent.expression, /*checkMode*/ @@ -50978,7 +51398,7 @@ function createTypeChecker(host) { ))); return indexType.flags & (262144 /* TypeParameter */ | 4194304 /* Index */) ? getExtractStringType(indexType) : stringType; } - if (isVariableDeclaration(declaration) && declaration.parent.parent.kind === 249 /* ForOfStatement */) { + if (isVariableDeclaration(declaration) && declaration.parent.parent.kind === 250 /* ForOfStatement */) { const forOfStatement = declaration.parent.parent; return checkRightHandSideOfForOf(forOfStatement) || anyType; } @@ -50997,8 +51417,8 @@ function createTypeChecker(host) { if (declaredType) { return addOptionality(declaredType, isProperty, isOptional); } - if ((noImplicitAny || isInJSFile(declaration)) && isVariableDeclaration(declaration) && !isBindingPattern(declaration.name) && !(getCombinedModifierFlags(declaration) & 1 /* Export */) && !(declaration.flags & 16777216 /* Ambient */)) { - if (!(getCombinedNodeFlags(declaration) & 2 /* Const */) && (!declaration.initializer || isNullOrUndefined2(declaration.initializer))) { + if ((noImplicitAny || isInJSFile(declaration)) && isVariableDeclaration(declaration) && !isBindingPattern(declaration.name) && !(getCombinedModifierFlagsCached(declaration) & 1 /* Export */) && !(declaration.flags & 33554432 /* Ambient */)) { + if (!(getCombinedNodeFlagsCached(declaration) & 6 /* Constant */) && (!declaration.initializer || isNullOrUndefined2(declaration.initializer))) { return autoType; } if (declaration.initializer && isEmptyArrayLiteral2(declaration.initializer)) { @@ -51007,8 +51427,8 @@ function createTypeChecker(host) { } if (isParameter(declaration)) { const func = declaration.parent; - if (func.kind === 177 /* SetAccessor */ && hasBindableName(func)) { - const getter = getDeclarationOfKind(getSymbolOfDeclaration(declaration.parent), 176 /* GetAccessor */); + if (func.kind === 178 /* SetAccessor */ && hasBindableName(func)) { + const getter = getDeclarationOfKind(getSymbolOfDeclaration(declaration.parent), 177 /* GetAccessor */); if (getter) { const getterSignature = getSignatureFromDeclaration(getter); const thisParameter = getAccessorThisParameter(func); @@ -51082,7 +51502,7 @@ function createTypeChecker(host) { const links = getSymbolLinks(symbol); if (links.isConstructorDeclaredProperty === void 0) { links.isConstructorDeclaredProperty = false; - links.isConstructorDeclaredProperty = !!getDeclaringConstructor(symbol) && every(symbol.declarations, (declaration) => isBinaryExpression(declaration) && isPossiblyAliasedThisProperty(declaration) && (declaration.left.kind !== 211 /* ElementAccessExpression */ || isStringOrNumericLiteralLike(declaration.left.argumentExpression)) && !getAnnotatedTypeForAssignmentDeclaration( + links.isConstructorDeclaredProperty = !!getDeclaringConstructor(symbol) && every(symbol.declarations, (declaration) => isBinaryExpression(declaration) && isPossiblyAliasedThisProperty(declaration) && (declaration.left.kind !== 212 /* ElementAccessExpression */ || isStringOrNumericLiteralLike(declaration.left.argumentExpression)) && !getAnnotatedTypeForAssignmentDeclaration( /*declaredType*/ void 0, declaration, @@ -51110,7 +51530,7 @@ function createTypeChecker(host) { /*includeClassComputedPropertyName*/ false ); - if (container && (container.kind === 175 /* Constructor */ || isJSConstructor(container))) { + if (container && (container.kind === 176 /* Constructor */ || isJSConstructor(container))) { return container; } } @@ -51225,7 +51645,7 @@ function createTypeChecker(host) { false, definedInMethod && !definedInConstructor )); - if (symbol.valueDeclaration && filterType(widened, (t) => !!(t.flags & ~98304 /* Nullable */)) === neverType) { + if (symbol.valueDeclaration && isInJSFile(symbol.valueDeclaration) && filterType(widened, (t) => !!(t.flags & ~98304 /* Nullable */)) === neverType) { reportImplicitAny(symbol.valueDeclaration, anyType); return anyType; } @@ -51390,7 +51810,7 @@ function createTypeChecker(host) { /*includeClassComputedPropertyName*/ false ); - return thisContainer.kind === 175 /* Constructor */ || thisContainer.kind === 261 /* FunctionDeclaration */ || thisContainer.kind === 217 /* FunctionExpression */ && !isPrototypePropertyAssignment(thisContainer.parent); + return thisContainer.kind === 176 /* Constructor */ || thisContainer.kind === 262 /* FunctionDeclaration */ || thisContainer.kind === 218 /* FunctionExpression */ && !isPrototypePropertyAssignment(thisContainer.parent); } function getConstructorDefinedThisAssignmentTypes(types, declarations) { Debug.assert(types.length === declarations.length); @@ -51464,7 +51884,7 @@ function createTypeChecker(host) { function getTypeFromArrayBindingPattern(pattern, includePatternInType, reportErrors2) { const elements = pattern.elements; const lastElement = lastOrUndefined(elements); - const restElement = lastElement && lastElement.kind === 207 /* BindingElement */ && lastElement.dotDotDotToken ? lastElement : void 0; + const restElement = lastElement && lastElement.kind === 208 /* BindingElement */ && lastElement.dotDotDotToken ? lastElement : void 0; if (elements.length === 0 || elements.length === 1 && restElement) { return languageVersion >= 2 /* ES2015 */ ? createIterableType(anyType) : anyArrayType; } @@ -51480,7 +51900,7 @@ function createTypeChecker(host) { return result; } function getTypeFromBindingPattern(pattern, includePatternInType = false, reportErrors2 = false) { - return pattern.kind === 205 /* ObjectBindingPattern */ ? getTypeFromObjectBindingPattern(pattern, includePatternInType, reportErrors2) : getTypeFromArrayBindingPattern(pattern, includePatternInType, reportErrors2); + return pattern.kind === 206 /* ObjectBindingPattern */ ? getTypeFromObjectBindingPattern(pattern, includePatternInType, reportErrors2) : getTypeFromArrayBindingPattern(pattern, includePatternInType, reportErrors2); } function getWidenedTypeForVariableLikeDeclaration(declaration, reportErrors2) { return widenTypeForVariableLikeDeclaration(getTypeForVariableLikeDeclaration( @@ -51521,7 +51941,7 @@ function createTypeChecker(host) { } function declarationBelongsToPrivateAmbientMember(declaration) { const root = getRootDeclaration(declaration); - const memberDeclaration = root.kind === 168 /* Parameter */ ? root.parent : root; + const memberDeclaration = root.kind === 169 /* Parameter */ ? root.parent : root; return isPrivateWithinAmbient(memberDeclaration); } function tryGetTypeFromEffectiveTypeNode(node) { @@ -51595,7 +52015,7 @@ function createTypeChecker(host) { return reportCircularityError(symbol); } let type; - if (declaration.kind === 276 /* ExportAssignment */) { + if (declaration.kind === 277 /* ExportAssignment */) { type = widenTypeForVariableLikeDeclaration(tryGetTypeFromEffectiveTypeNode(declaration) || checkExpressionCached(declaration.expression), declaration); } else if (isBinaryExpression(declaration) || isInJSFile(declaration) && (isCallExpression(declaration) || (isPropertyAccessExpression(declaration) || isBindableStaticElementAccessExpression(declaration)) && isBinaryExpression(declaration.parent))) { type = getWidenedTypeForAssignmentDeclaration(symbol); @@ -51636,13 +52056,13 @@ function createTypeChecker(host) { function getAnnotatedAccessorTypeNode(accessor) { if (accessor) { switch (accessor.kind) { - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: const getterTypeAnnotation = getEffectiveReturnTypeNode(accessor); return getterTypeAnnotation; - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: const setterTypeAnnotation = getEffectiveSetAccessorTypeAnnotationNode(accessor); return setterTypeAnnotation; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: Debug.assert(hasAccessorModifier(accessor)); const accessorTypeAnnotation = getEffectiveTypeAnnotationNode(accessor); return accessorTypeAnnotation; @@ -51667,9 +52087,9 @@ function createTypeChecker(host) { if (!pushTypeResolution(symbol, 0 /* Type */)) { return errorType; } - const getter = getDeclarationOfKind(symbol, 176 /* GetAccessor */); - const setter = getDeclarationOfKind(symbol, 177 /* SetAccessor */); - const accessor = tryCast(getDeclarationOfKind(symbol, 171 /* PropertyDeclaration */), isAutoAccessorPropertyDeclaration); + const getter = getDeclarationOfKind(symbol, 177 /* GetAccessor */); + const setter = getDeclarationOfKind(symbol, 178 /* SetAccessor */); + const accessor = tryCast(getDeclarationOfKind(symbol, 172 /* PropertyDeclaration */), isAutoAccessorPropertyDeclaration); let type = getter && isInJSFile(getter) && getTypeForDeclarationFromJSDocComment(getter) || getAnnotatedAccessorType(getter) || getAnnotatedAccessorType(setter) || getAnnotatedAccessorType(accessor) || getter && getter.body && getReturnTypeFromBody(getter) || accessor && accessor.initializer && getWidenedTypeForVariableLikeDeclaration( accessor, /*reportErrors*/ @@ -51707,7 +52127,7 @@ function createTypeChecker(host) { if (!pushTypeResolution(symbol, 8 /* WriteType */)) { return errorType; } - const setter = getDeclarationOfKind(symbol, 177 /* SetAccessor */) ?? tryCast(getDeclarationOfKind(symbol, 171 /* PropertyDeclaration */), isAutoAccessorPropertyDeclaration); + const setter = getDeclarationOfKind(symbol, 178 /* SetAccessor */) ?? tryCast(getDeclarationOfKind(symbol, 172 /* PropertyDeclaration */), isAutoAccessorPropertyDeclaration); let writeType = getAnnotatedAccessorType(setter); if (!popTypeResolution()) { if (getAnnotatedAccessorTypeNode(setter)) { @@ -51747,7 +52167,7 @@ function createTypeChecker(host) { const declaration = symbol.valueDeclaration; if (symbol.flags & 1536 /* Module */ && isShorthandAmbientModuleSymbol(symbol)) { return anyType; - } else if (declaration && (declaration.kind === 225 /* BinaryExpression */ || isAccessExpression(declaration) && declaration.parent.kind === 225 /* BinaryExpression */)) { + } else if (declaration && (declaration.kind === 226 /* BinaryExpression */ || isAccessExpression(declaration) && declaration.parent.kind === 226 /* BinaryExpression */)) { return getWidenedTypeForAssignmentDeclaration(symbol); } else if (symbol.flags & 512 /* ValueModule */ && declaration && isSourceFile(declaration) && declaration.commonJsModuleIndicator) { const resolvedModule = resolveExternalModuleSymbol(symbol); @@ -51789,7 +52209,7 @@ function createTypeChecker(host) { true ); const declaredType = firstDefined(exportSymbol == null ? void 0 : exportSymbol.declarations, (d) => isExportAssignment(d) ? tryGetTypeFromEffectiveTypeNode(d) : void 0); - links.type = (exportSymbol == null ? void 0 : exportSymbol.declarations) && isDuplicatedCommonJSExport(exportSymbol.declarations) && symbol.declarations.length ? getFlowTypeFromCommonJSExport(exportSymbol) : isDuplicatedCommonJSExport(symbol.declarations) ? autoType : declaredType ? declaredType : getAllSymbolFlags(targetSymbol) & 111551 /* Value */ ? getTypeOfSymbol(targetSymbol) : errorType; + links.type = (exportSymbol == null ? void 0 : exportSymbol.declarations) && isDuplicatedCommonJSExport(exportSymbol.declarations) && symbol.declarations.length ? getFlowTypeFromCommonJSExport(exportSymbol) : isDuplicatedCommonJSExport(symbol.declarations) ? autoType : declaredType ? declaredType : getSymbolFlags(targetSymbol) & 111551 /* Value */ ? getTypeOfSymbol(targetSymbol) : errorType; } return links.type; } @@ -51811,7 +52231,7 @@ function createTypeChecker(host) { ); return errorType; } - if (noImplicitAny && (declaration.kind !== 168 /* Parameter */ || declaration.initializer)) { + if (noImplicitAny && (declaration.kind !== 169 /* Parameter */ || declaration.initializer)) { error( symbol.valueDeclaration, Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer, @@ -51925,43 +52345,43 @@ function createTypeChecker(host) { return void 0; } switch (node.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 172 /* MethodSignature */: - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 323 /* JSDocFunctionType */: - case 261 /* FunctionDeclaration */: - case 173 /* MethodDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 264 /* TypeAliasDeclaration */: - case 351 /* JSDocTemplateTag */: - case 352 /* JSDocTypedefTag */: - case 346 /* JSDocEnumTag */: - case 344 /* JSDocCallbackTag */: - case 199 /* MappedType */: - case 193 /* ConditionalType */: { + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 173 /* MethodSignature */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 324 /* JSDocFunctionType */: + case 262 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 265 /* TypeAliasDeclaration */: + case 352 /* JSDocTemplateTag */: + case 353 /* JSDocTypedefTag */: + case 347 /* JSDocEnumTag */: + case 345 /* JSDocCallbackTag */: + case 200 /* MappedType */: + case 194 /* ConditionalType */: { const outerTypeParameters = getOuterTypeParameters(node, includeThisTypes); - if (node.kind === 199 /* MappedType */) { + if (node.kind === 200 /* MappedType */) { return append(outerTypeParameters, getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(node.typeParameter))); - } else if (node.kind === 193 /* ConditionalType */) { + } else if (node.kind === 194 /* ConditionalType */) { return concatenate(outerTypeParameters, getInferTypeParameters(node)); } const outerAndOwnTypeParameters = appendTypeParameters(outerTypeParameters, getEffectiveTypeParameterDeclarations(node)); - const thisType = includeThisTypes && (node.kind === 262 /* ClassDeclaration */ || node.kind === 230 /* ClassExpression */ || node.kind === 263 /* InterfaceDeclaration */ || isJSConstructor(node)) && getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(node)).thisType; + const thisType = includeThisTypes && (node.kind === 263 /* ClassDeclaration */ || node.kind === 231 /* ClassExpression */ || node.kind === 264 /* InterfaceDeclaration */ || isJSConstructor(node)) && getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(node)).thisType; return thisType ? append(outerAndOwnTypeParameters, thisType) : outerAndOwnTypeParameters; } - case 347 /* JSDocParameterTag */: + case 348 /* JSDocParameterTag */: const paramSymbol = getParameterSymbolFromJSDoc(node); if (paramSymbol) { node = paramSymbol.valueDeclaration; } break; - case 326 /* JSDoc */: { + case 327 /* JSDoc */: { const outerTypeParameters = getOuterTypeParameters(node, includeThisTypes); return node.tags ? appendTypeParameters(outerTypeParameters, flatMap(node.tags, (t) => isJSDocTemplateTag(t) ? t.typeParameters : void 0)) : outerTypeParameters; } @@ -51971,14 +52391,14 @@ function createTypeChecker(host) { function getOuterTypeParametersOfClassOrInterface(symbol) { var _a; const declaration = symbol.flags & 32 /* Class */ || symbol.flags & 16 /* Function */ ? symbol.valueDeclaration : (_a = symbol.declarations) == null ? void 0 : _a.find((decl) => { - if (decl.kind === 263 /* InterfaceDeclaration */) { + if (decl.kind === 264 /* InterfaceDeclaration */) { return true; } - if (decl.kind !== 259 /* VariableDeclaration */) { + if (decl.kind !== 260 /* VariableDeclaration */) { return false; } const initializer = decl.initializer; - return !!initializer && (initializer.kind === 217 /* FunctionExpression */ || initializer.kind === 218 /* ArrowFunction */); + return !!initializer && (initializer.kind === 218 /* FunctionExpression */ || initializer.kind === 219 /* ArrowFunction */); }); Debug.assert(!!declaration, "Class was missing valueDeclaration -OR- non-class had no interface declarations"); return getOuterTypeParameters(declaration); @@ -51989,7 +52409,7 @@ function createTypeChecker(host) { } let result; for (const node of symbol.declarations) { - if (node.kind === 263 /* InterfaceDeclaration */ || node.kind === 262 /* ClassDeclaration */ || node.kind === 230 /* ClassExpression */ || isJSConstructor(node) || isTypeAlias(node)) { + if (node.kind === 264 /* InterfaceDeclaration */ || node.kind === 263 /* ClassDeclaration */ || node.kind === 231 /* ClassExpression */ || isJSConstructor(node) || isTypeAlias(node)) { const declaration = node; result = appendTypeParameters(result, getEffectiveTypeParameterDeclarations(declaration)); } @@ -52127,7 +52547,7 @@ function createTypeChecker(host) { } if (!popTypeResolution() && type.symbol.declarations) { for (const declaration of type.symbol.declarations) { - if (declaration.kind === 262 /* ClassDeclaration */ || declaration.kind === 263 /* InterfaceDeclaration */) { + if (declaration.kind === 263 /* ClassDeclaration */ || declaration.kind === 264 /* InterfaceDeclaration */) { reportCircularBaseType(declaration, type); } } @@ -52216,7 +52636,7 @@ function createTypeChecker(host) { type.resolvedBaseTypes = type.resolvedBaseTypes || emptyArray; if (type.symbol.declarations) { for (const declaration of type.symbol.declarations) { - if (declaration.kind === 263 /* InterfaceDeclaration */ && getInterfaceBaseTypeNodes(declaration)) { + if (declaration.kind === 264 /* InterfaceDeclaration */ && getInterfaceBaseTypeNodes(declaration)) { for (const node of getInterfaceBaseTypeNodes(declaration)) { const baseType = getReducedType(getTypeFromTypeNode(node)); if (!isErrorType(baseType)) { @@ -52244,8 +52664,8 @@ function createTypeChecker(host) { return true; } for (const declaration of symbol.declarations) { - if (declaration.kind === 263 /* InterfaceDeclaration */) { - if (declaration.flags & 128 /* ContainsThis */) { + if (declaration.kind === 264 /* InterfaceDeclaration */) { + if (declaration.flags & 256 /* ContainsThis */) { return false; } const baseTypeNodes = getInterfaceBaseTypeNodes(declaration); @@ -52316,7 +52736,7 @@ function createTypeChecker(host) { } } else { type = errorType; - if (declaration.kind === 346 /* JSDocEnumTag */) { + if (declaration.kind === 347 /* JSDocEnumTag */) { error(declaration.typeExpression.type, Diagnostics.Type_alias_0_circularly_references_itself, symbolToString(symbol)); } else { error(isNamedDeclaration(declaration) ? declaration.name || declaration : declaration, Diagnostics.Type_alias_0_circularly_references_itself, symbolToString(symbol)); @@ -52335,7 +52755,7 @@ function createTypeChecker(host) { const memberTypeList = []; if (symbol.declarations) { for (const declaration of symbol.declarations) { - if (declaration.kind === 265 /* EnumDeclaration */) { + if (declaration.kind === 266 /* EnumDeclaration */) { for (const member of declaration.members) { if (hasBindableName(member)) { const memberSymbol = getSymbolOfDeclaration(member); @@ -52420,18 +52840,18 @@ function createTypeChecker(host) { case 159 /* UnknownKeyword */: case 154 /* StringKeyword */: case 150 /* NumberKeyword */: - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: case 136 /* BooleanKeyword */: case 155 /* SymbolKeyword */: case 151 /* ObjectKeyword */: case 116 /* VoidKeyword */: case 157 /* UndefinedKeyword */: case 146 /* NeverKeyword */: - case 200 /* LiteralType */: + case 201 /* LiteralType */: return true; - case 187 /* ArrayType */: + case 188 /* ArrayType */: return isThislessType(node.elementType); - case 182 /* TypeReference */: + case 183 /* TypeReference */: return !node.typeArguments || node.typeArguments.every(isThislessType); } return false; @@ -52447,21 +52867,21 @@ function createTypeChecker(host) { function isThislessFunctionLikeDeclaration(node) { const returnType = getEffectiveReturnTypeNode(node); const typeParameters = getEffectiveTypeParameterDeclarations(node); - return (node.kind === 175 /* Constructor */ || !!returnType && isThislessType(returnType)) && node.parameters.every(isThislessVariableLikeDeclaration) && typeParameters.every(isThislessTypeParameter); + return (node.kind === 176 /* Constructor */ || !!returnType && isThislessType(returnType)) && node.parameters.every(isThislessVariableLikeDeclaration) && typeParameters.every(isThislessTypeParameter); } function isThisless(symbol) { if (symbol.declarations && symbol.declarations.length === 1) { const declaration = symbol.declarations[0]; if (declaration) { switch (declaration.kind) { - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: return isThislessVariableLikeDeclaration(declaration); - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return isThislessFunctionLikeDeclaration(declaration); } } @@ -52504,9 +52924,6 @@ function createTypeChecker(host) { } return type; } - function isTypeUsableAsPropertyName(type) { - return !!(type.flags & 8576 /* StringOrNumberLiteralOrUnique */); - } function isLateBindableName(node) { if (!isComputedPropertyName(node) && !isElementAccessExpression(node)) { return false; @@ -52527,15 +52944,6 @@ function createTypeChecker(host) { function isNonBindableDynamicName(node) { return isDynamicName(node) && !isLateBindableName(node); } - function getPropertyNameFromType(type) { - if (type.flags & 8192 /* UniqueESSymbol */) { - return type.escapedName; - } - if (type.flags & (128 /* StringLiteral */ | 256 /* NumberLiteral */)) { - return escapeLeadingUnderscores("" + type.value); - } - return Debug.fail(); - } function addDeclarationToLateBoundSymbol(symbol, member, symbolFlags) { Debug.assert(!!(getCheckFlags(symbol) & 4096 /* Late */), "Expected a late-bound symbol."); symbol.flags |= symbolFlags; @@ -52585,6 +52993,7 @@ function createTypeChecker(host) { return links.resolvedSymbol; } function getResolvedMembersOrExportsOfSymbol(symbol, resolutionKind) { + var _a, _b, _c; const links = getSymbolLinks(symbol); if (!links[resolutionKind]) { const isStatic2 = resolutionKind === "resolvedExports" /* resolvedExports */; @@ -52603,7 +53012,7 @@ function createTypeChecker(host) { } } } - const assignments = symbol.assignmentDeclarationMembers; + const assignments = (((_a = symbol.valueDeclaration) == null ? void 0 : _a.kind) === 219 /* ArrowFunction */ || ((_b = symbol.valueDeclaration) == null ? void 0 : _b.kind) === 218 /* FunctionExpression */) && ((_c = getSymbolOfNode(symbol.valueDeclaration.parent)) == null ? void 0 : _c.assignmentDeclarationMembers) || symbol.assignmentDeclarationMembers; if (assignments) { const decls = arrayFrom(assignments.values()); for (const member of decls) { @@ -52732,7 +53141,7 @@ function createTypeChecker(host) { /*resolvedTypePredicate*/ void 0, sig.minArgumentCount, - sig.flags & 39 /* PropagatingFlags */ + sig.flags & 167 /* PropagatingFlags */ ); result.target = sig.target; result.mapper = sig.mapper; @@ -52770,17 +53179,18 @@ function createTypeChecker(host) { function getExpandedParameters(sig, skipUnionExpanding) { if (signatureHasRestParameter(sig)) { const restIndex = sig.parameters.length - 1; + const restName = sig.parameters[restIndex].escapedName; const restType = getTypeOfSymbol(sig.parameters[restIndex]); if (isTupleType(restType)) { - return [expandSignatureParametersWithTupleMembers(restType, restIndex)]; + return [expandSignatureParametersWithTupleMembers(restType, restIndex, restName)]; } else if (!skipUnionExpanding && restType.flags & 1048576 /* Union */ && every(restType.types, isTupleType)) { - return map(restType.types, (t) => expandSignatureParametersWithTupleMembers(t, restIndex)); + return map(restType.types, (t) => expandSignatureParametersWithTupleMembers(t, restIndex, restName)); } } return [sig.parameters]; - function expandSignatureParametersWithTupleMembers(restType, restIndex) { - const elementTypes = getElementTypes(restType); - const associatedNames = getUniqAssociatedNamesFromTupleType(restType); + function expandSignatureParametersWithTupleMembers(restType, restIndex, restName) { + const elementTypes = getTypeArguments(restType); + const associatedNames = getUniqAssociatedNamesFromTupleType(restType, restName); const restParams = map(elementTypes, (t, i) => { const name = associatedNames && associatedNames[i] ? associatedNames[i] : getParameterNameAtPosition(sig, restIndex + i, restType); const flags = restType.target.elementFlags[i]; @@ -52791,10 +53201,10 @@ function createTypeChecker(host) { }); return concatenate(sig.parameters.slice(0, restIndex), restParams); } - function getUniqAssociatedNamesFromTupleType(type) { + function getUniqAssociatedNamesFromTupleType(type, restName) { const associatedNamesMap = /* @__PURE__ */ new Map(); - return map(type.target.labeledElementDeclarations, (labeledElement) => { - const name = getTupleElementLabel(labeledElement); + return map(type.target.labeledElementDeclarations, (labeledElement, i) => { + const name = getTupleElementLabel(labeledElement, i, restName); const prevCounter = associatedNamesMap.get(name); if (prevCounter === void 0) { associatedNamesMap.set(name, 1); @@ -53032,7 +53442,7 @@ function createTypeChecker(host) { /*resolvedTypePredicate*/ void 0, minArgCount, - (left.flags | right.flags) & 39 /* PropagatingFlags */ + (left.flags | right.flags) & 167 /* PropagatingFlags */ ); result.compositeKind = 1048576 /* Union */; result.compositeSignatures = concatenate(left.compositeKind !== 2097152 /* Intersection */ && left.compositeSignatures || [left], [right]); @@ -53180,20 +53590,17 @@ function createTypeChecker(host) { setStructuredTypeMembers(type, members2, callSignatures, constructSignatures, indexInfos2); return; } - let members = emptySymbols; + let members = getExportsOfSymbol(symbol); let indexInfos; - if (symbol.exports) { - members = getExportsOfSymbol(symbol); - if (symbol === globalThisSymbol) { - const varsOnly = /* @__PURE__ */ new Map(); - members.forEach((p) => { - var _a; - if (!(p.flags & 418 /* BlockScoped */) && !(p.flags & 512 /* ValueModule */ && ((_a = p.declarations) == null ? void 0 : _a.length) && every(p.declarations, isAmbientModule))) { - varsOnly.set(p.escapedName, p); - } - }); - members = varsOnly; - } + if (symbol === globalThisSymbol) { + const varsOnly = /* @__PURE__ */ new Map(); + members.forEach((p) => { + var _a; + if (!(p.flags & 418 /* BlockScoped */) && !(p.flags & 512 /* ValueModule */ && ((_a = p.declarations) == null ? void 0 : _a.length) && every(p.declarations, isAmbientModule))) { + varsOnly.set(p.escapedName, p); + } + }); + members = varsOnly; } let baseConstructorIndexInfo; setStructuredTypeMembers(type, members, emptyArray, emptyArray, emptyArray); @@ -53242,7 +53649,7 @@ function createTypeChecker(host) { /*resolvedTypePredicate*/ void 0, sig.minArgumentCount, - sig.flags & 39 /* PropagatingFlags */ + sig.flags & 167 /* PropagatingFlags */ ) : void 0 )); } @@ -53438,7 +53845,7 @@ function createTypeChecker(host) { } function isMappedTypeWithKeyofConstraintDeclaration(type) { const constraintDeclaration = getConstraintDeclarationForMappedType(type); - return constraintDeclaration.kind === 197 /* TypeOperator */ && constraintDeclaration.operator === 143 /* KeyOfKeyword */; + return constraintDeclaration.kind === 198 /* TypeOperator */ && constraintDeclaration.operator === 143 /* KeyOfKeyword */; } function getModifiersTypeFromMappedType(type) { if (!type.modifiersType) { @@ -53593,9 +54000,9 @@ function createTypeChecker(host) { function getConstraintOfTypeParameter(typeParameter) { return hasNonCircularBaseConstraint(typeParameter) ? getConstraintFromTypeParameter(typeParameter) : void 0; } - function isConstTypeVariable(type) { + function isConstTypeVariable(type, depth = 0) { var _a; - return !!(type && (type.flags & 262144 /* TypeParameter */ && some((_a = type.symbol) == null ? void 0 : _a.declarations, (d) => hasSyntacticModifier(d, 2048 /* Const */)) || type.flags & 1048576 /* Union */ && some(type.types, isConstTypeVariable) || type.flags & 8388608 /* IndexedAccess */ && isConstTypeVariable(type.objectType) || type.flags & 16777216 /* Conditional */ && isConstTypeVariable(getConstraintOfConditionalType(type)) || type.flags & 33554432 /* Substitution */ && isConstTypeVariable(type.baseType) || isGenericTupleType(type) && findIndex(getElementTypes(type), (t, i) => !!(type.target.elementFlags[i] & 8 /* Variadic */) && isConstTypeVariable(t)) >= 0)); + return depth < 5 && !!(type && (type.flags & 262144 /* TypeParameter */ && some((_a = type.symbol) == null ? void 0 : _a.declarations, (d) => hasSyntacticModifier(d, 2048 /* Const */)) || type.flags & 1048576 /* Union */ && some(type.types, (t) => isConstTypeVariable(t, depth)) || type.flags & 8388608 /* IndexedAccess */ && isConstTypeVariable(type.objectType, depth + 1) || type.flags & 16777216 /* Conditional */ && isConstTypeVariable(getConstraintOfConditionalType(type), depth + 1) || type.flags & 33554432 /* Substitution */ && isConstTypeVariable(type.baseType, depth) || isGenericTupleType(type) && findIndex(getElementTypes(type), (t, i) => !!(type.target.elementFlags[i] & 8 /* Variadic */) && isConstTypeVariable(t, depth)) >= 0)); } function getConstraintOfIndexedAccess(type) { return hasNonCircularBaseConstraint(type) ? getConstraintFromIndexedAccess(type) : void 0; @@ -54152,7 +54559,35 @@ function createTypeChecker(host) { return emptyArray; } function getSignaturesOfType(type, kind) { - return getSignaturesOfStructuredType(getReducedApparentType(type), kind); + const result = getSignaturesOfStructuredType(getReducedApparentType(type), kind); + if (kind === 0 /* Call */ && !length(result) && type.flags & 1048576 /* Union */) { + if (type.arrayFallbackSignatures) { + return type.arrayFallbackSignatures; + } + let memberName; + if (everyType(type, (t) => { + var _a; + return !!((_a = t.symbol) == null ? void 0 : _a.parent) && isArrayOrTupleSymbol(t.symbol.parent) && (!memberName ? (memberName = t.symbol.escapedName, true) : memberName === t.symbol.escapedName); + })) { + const arrayArg = mapType(type, (t) => getMappedType((isReadonlyArraySymbol(t.symbol.parent) ? globalReadonlyArrayType : globalArrayType).typeParameters[0], t.mapper)); + const arrayType = createArrayType(arrayArg, someType(type, (t) => isReadonlyArraySymbol(t.symbol.parent))); + return type.arrayFallbackSignatures = getSignaturesOfType(getTypeOfPropertyOfType(arrayType, memberName), kind); + } + type.arrayFallbackSignatures = result; + } + return result; + } + function isArrayOrTupleSymbol(symbol) { + if (!symbol || !globalArrayType.symbol || !globalReadonlyArrayType.symbol) { + return false; + } + return !!getSymbolIfSameReference(symbol, globalArrayType.symbol) || !!getSymbolIfSameReference(symbol, globalReadonlyArrayType.symbol); + } + function isReadonlyArraySymbol(symbol) { + if (!symbol || !globalReadonlyArrayType.symbol) { + return false; + } + return !!getSymbolIfSameReference(symbol, globalReadonlyArrayType.symbol); } function findIndexInfo(indexInfos, keyType) { return find(indexInfos, (info) => info.keyType === keyType); @@ -54331,7 +54766,7 @@ function createTypeChecker(host) { } else { parameters.push(paramSymbol); } - if (type && type.kind === 200 /* LiteralType */) { + if (type && type.kind === 201 /* LiteralType */) { flags |= 2 /* HasLiteralTypes */; } const isOptionalParameter2 = isOptionalJSDocPropertyLikeTag(param) || param.initializer || param.questionToken || isRestParameter(param) || iife && parameters.length > iife.arguments.length && !type || isJSDocOptionalParameter(param); @@ -54339,8 +54774,8 @@ function createTypeChecker(host) { minArgumentCount = parameters.length; } } - if ((declaration.kind === 176 /* GetAccessor */ || declaration.kind === 177 /* SetAccessor */) && hasBindableName(declaration) && (!hasThisParameter || !thisParameter)) { - const otherKind = declaration.kind === 176 /* GetAccessor */ ? 177 /* SetAccessor */ : 176 /* GetAccessor */; + if ((declaration.kind === 177 /* GetAccessor */ || declaration.kind === 178 /* SetAccessor */) && hasBindableName(declaration) && (!hasThisParameter || !thisParameter)) { + const otherKind = declaration.kind === 177 /* GetAccessor */ ? 178 /* SetAccessor */ : 177 /* GetAccessor */; const other = getDeclarationOfKind(getSymbolOfDeclaration(declaration), otherKind); if (other) { thisParameter = getAnnotatedAccessorThisParameter(other); @@ -54431,15 +54866,15 @@ function createTypeChecker(host) { switch (node.kind) { case 80 /* Identifier */: return node.escapedText === argumentsSymbol.escapedName && getReferencedValueSymbol(node) === argumentsSymbol; - case 171 /* PropertyDeclaration */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - return node.name.kind === 166 /* ComputedPropertyName */ && traverse(node.name); - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + return node.name.kind === 167 /* ComputedPropertyName */ && traverse(node.name); + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return traverse(node.expression); - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return traverse(node.initializer); default: return !nodeStartsNewLexicalEnvironment(node) && !isPartOfTypeNode(node) && !!forEachChild(node, traverse); @@ -54526,7 +54961,7 @@ function createTypeChecker(host) { function createTypePredicateFromTypePredicateNode(node, signature) { const parameterName = node.parameterName; const type = node.type && getTypeFromTypeNode(node.type); - return parameterName.kind === 196 /* ThisType */ ? createTypePredicate( + return parameterName.kind === 197 /* ThisType */ ? createTypePredicate( node.assertsModifier ? 2 /* AssertsThis */ : 0 /* This */, /*parameterName*/ void 0, @@ -54576,7 +55011,7 @@ function createTypeChecker(host) { return signature.resolvedReturnType; } function getReturnTypeFromAnnotation(declaration) { - if (declaration.kind === 175 /* Constructor */) { + if (declaration.kind === 176 /* Constructor */) { return getDeclaredTypeOfClassOrInterface(getMergedSymbol(declaration.parent.symbol)); } const typeNode = getEffectiveReturnTypeNode(declaration); @@ -54592,12 +55027,12 @@ function createTypeChecker(host) { if (typeNode) { return getTypeFromTypeNode(typeNode); } - if (declaration.kind === 176 /* GetAccessor */ && hasBindableName(declaration)) { + if (declaration.kind === 177 /* GetAccessor */ && hasBindableName(declaration)) { const jsDocType = isInJSFile(declaration) && getTypeForDeclarationFromJSDocComment(declaration); if (jsDocType) { return jsDocType; } - const setter = getDeclarationOfKind(getSymbolOfDeclaration(declaration), 177 /* SetAccessor */); + const setter = getDeclarationOfKind(getSymbolOfDeclaration(declaration), 178 /* SetAccessor */); const setterType = getAnnotatedAccessorType(setter); if (setterType) { return setterType; @@ -54606,7 +55041,7 @@ function createTypeChecker(host) { return getReturnTypeOfTypeTag(declaration); } function isResolvingReturnTypeOfSignature(signature) { - return !signature.resolvedReturnType && findResolutionCycleStartIndex(signature, 3 /* ResolvedReturnType */) >= 0; + return signature.compositeSignatures && some(signature.compositeSignatures, isResolvingReturnTypeOfSignature) || !signature.resolvedReturnType && findResolutionCycleStartIndex(signature, 3 /* ResolvedReturnType */) >= 0; } function getRestTypeOfSignature(signature) { return tryGetRestTypeOfSignature(signature) || anyType; @@ -54700,7 +55135,7 @@ function createTypeChecker(host) { var _a; if (!signature.isolatedSignatureType) { const kind = (_a = signature.declaration) == null ? void 0 : _a.kind; - const isConstructor = kind === void 0 || kind === 175 /* Constructor */ || kind === 179 /* ConstructSignature */ || kind === 184 /* ConstructorType */; + const isConstructor = kind === void 0 || kind === 176 /* Constructor */ || kind === 180 /* ConstructSignature */ || kind === 185 /* ConstructorType */; const type = createObjectType(16 /* Anonymous */); type.members = emptySymbols; type.properties = emptyArray; @@ -54759,9 +55194,9 @@ function createTypeChecker(host) { let inferences; if ((_a = typeParameter.symbol) == null ? void 0 : _a.declarations) { for (const declaration of typeParameter.symbol.declarations) { - if (declaration.parent.kind === 194 /* InferType */) { + if (declaration.parent.kind === 195 /* InferType */) { const [childTypeParameter = declaration.parent, grandParent] = walkUpParenthesizedTypesAndGetParentAndChild(declaration.parent.parent); - if (grandParent.kind === 182 /* TypeReference */ && !omitTypeReferences) { + if (grandParent.kind === 183 /* TypeReference */ && !omitTypeReferences) { const typeReference = grandParent; const typeParameters = getTypeParametersForTypeReferenceOrImport(typeReference); if (typeParameters) { @@ -54779,13 +55214,13 @@ function createTypeChecker(host) { } } } - } else if (grandParent.kind === 168 /* Parameter */ && grandParent.dotDotDotToken || grandParent.kind === 190 /* RestType */ || grandParent.kind === 201 /* NamedTupleMember */ && grandParent.dotDotDotToken) { + } else if (grandParent.kind === 169 /* Parameter */ && grandParent.dotDotDotToken || grandParent.kind === 191 /* RestType */ || grandParent.kind === 202 /* NamedTupleMember */ && grandParent.dotDotDotToken) { inferences = append(inferences, createArrayType(unknownType)); - } else if (grandParent.kind === 203 /* TemplateLiteralTypeSpan */) { + } else if (grandParent.kind === 204 /* TemplateLiteralTypeSpan */) { inferences = append(inferences, stringType); - } else if (grandParent.kind === 167 /* TypeParameter */ && grandParent.parent.kind === 199 /* MappedType */) { + } else if (grandParent.kind === 168 /* TypeParameter */ && grandParent.parent.kind === 200 /* MappedType */) { inferences = append(inferences, keyofConstraintType); - } else if (grandParent.kind === 199 /* MappedType */ && grandParent.type && skipParentheses(grandParent.type) === declaration.parent && grandParent.parent.kind === 193 /* ConditionalType */ && grandParent.parent.extendsType === grandParent && grandParent.parent.checkType.kind === 199 /* MappedType */ && grandParent.parent.checkType.type) { + } else if (grandParent.kind === 200 /* MappedType */ && grandParent.type && skipParentheses(grandParent.type) === declaration.parent && grandParent.parent.kind === 194 /* ConditionalType */ && grandParent.parent.extendsType === grandParent && grandParent.parent.checkType.kind === 200 /* MappedType */ && grandParent.parent.checkType.type) { const checkMappedType2 = grandParent.parent.checkType; const nodeType = getTypeFromTypeNode(checkMappedType2.type); inferences = append(inferences, instantiateType( @@ -54810,7 +55245,7 @@ function createTypeChecker(host) { } else { let type = getTypeFromTypeNode(constraintDeclaration); if (type.flags & 1 /* Any */ && !isErrorType(type)) { - type = constraintDeclaration.parent.parent.kind === 199 /* MappedType */ ? keyofConstraintType : unknownType; + type = constraintDeclaration.parent.parent.kind === 200 /* MappedType */ ? keyofConstraintType : unknownType; } typeParameter.constraint = type; } @@ -54819,7 +55254,7 @@ function createTypeChecker(host) { return typeParameter.constraint === noConstraintType ? void 0 : typeParameter.constraint; } function getParentSymbolOfTypeParameter(typeParameter) { - const tp = getDeclarationOfKind(typeParameter.symbol, 167 /* TypeParameter */); + const tp = getDeclarationOfKind(typeParameter.symbol, 168 /* TypeParameter */); const host2 = isJSDocTemplateTag(tp.parent) ? getEffectiveContainerForJSDocTemplateTag(tp.parent) : tp.parent; return host2 && getSymbolOfNode(host2); } @@ -54904,7 +55339,7 @@ function createTypeChecker(host) { return ((_a = type.target.localTypeParameters) == null ? void 0 : _a.map(() => errorType)) || emptyArray; } const node = type.node; - const typeArguments = !node ? emptyArray : node.kind === 182 /* TypeReference */ ? concatenate(type.target.outerTypeParameters, getEffectiveTypeArguments(node, type.target.localTypeParameters)) : node.kind === 187 /* ArrayType */ ? [getTypeFromTypeNode(node.elementType)] : map(node.elements, getTypeFromTypeNode); + const typeArguments = !node ? emptyArray : node.kind === 183 /* TypeReference */ ? concatenate(type.target.outerTypeParameters, getEffectiveTypeArguments(node, type.target.localTypeParameters)) : node.kind === 188 /* ArrayType */ ? [getTypeFromTypeNode(node.elementType)] : map(node.elements, getTypeFromTypeNode); if (popTypeResolution()) { type.resolvedTypeArguments = type.mapper ? instantiateTypes(typeArguments, type.mapper) : typeArguments; } else { @@ -54943,7 +55378,7 @@ function createTypeChecker(host) { return errorType; } } - if (node.kind === 182 /* TypeReference */ && isDeferredTypeReferenceNode(node, length(node.typeArguments) !== typeParameters.length)) { + if (node.kind === 183 /* TypeReference */ && isDeferredTypeReferenceNode(node, length(node.typeArguments) !== typeParameters.length)) { return createDeferredTypeReference( type, node, @@ -55034,9 +55469,9 @@ function createTypeChecker(host) { } function getTypeReferenceName(node) { switch (node.kind) { - case 182 /* TypeReference */: + case 183 /* TypeReference */: return node.typeName; - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: const expr = node.expression; if (isEntityNameExpression(expr)) { return expr; @@ -55048,10 +55483,10 @@ function createTypeChecker(host) { return symbol.parent ? `${getSymbolPath(symbol.parent)}.${symbol.escapedName}` : symbol.escapedName; } function getUnresolvedSymbolForEntityName(name) { - const identifier = name.kind === 165 /* QualifiedName */ ? name.right : name.kind === 210 /* PropertyAccessExpression */ ? name.name : name; + const identifier = name.kind === 166 /* QualifiedName */ ? name.right : name.kind === 211 /* PropertyAccessExpression */ ? name.name : name; const text = identifier.escapedText; if (text) { - const parentSymbol = name.kind === 165 /* QualifiedName */ ? getUnresolvedSymbolForEntityName(name.left) : name.kind === 210 /* PropertyAccessExpression */ ? getUnresolvedSymbolForEntityName(name.expression) : void 0; + const parentSymbol = name.kind === 166 /* QualifiedName */ ? getUnresolvedSymbolForEntityName(name.left) : name.kind === 211 /* PropertyAccessExpression */ ? getUnresolvedSymbolForEntityName(name.expression) : void 0; const path = parentSymbol ? `${getSymbolPath(parentSymbol)}.${text}` : text; let result = unresolvedSymbols.get(path); if (!result) { @@ -55103,7 +55538,7 @@ function createTypeChecker(host) { const valueType = getTypeOfSymbol(symbol); let typeType = valueType; if (symbol.valueDeclaration) { - const isImportTypeWithQualifier = node.kind === 204 /* ImportType */ && node.qualifier; + const isImportTypeWithQualifier = node.kind === 205 /* ImportType */ && node.qualifier; if (valueType.symbol && valueType.symbol !== symbol && isImportTypeWithQualifier) { typeType = getTypeReferenceType(node, valueType.symbol); } @@ -55131,7 +55566,7 @@ function createTypeChecker(host) { return getIntersectionType([substitutionType.constraint, substitutionType.baseType]); } function isUnaryTupleTypeNode(node) { - return node.kind === 188 /* TupleType */ && node.elements.length === 1; + return node.kind === 189 /* TupleType */ && node.elements.length === 1; } function getImpliedConstraint(type, checkNode, extendsNode) { return isUnaryTupleTypeNode(checkNode) && isUnaryTupleTypeNode(extendsNode) ? getImpliedConstraint(type, checkNode.elements[0], extendsNode.elements[0]) : getActualTypeVariable(getTypeFromTypeNode(checkNode)) === getActualTypeVariable(type) ? getTypeFromTypeNode(extendsNode) : void 0; @@ -55139,17 +55574,17 @@ function createTypeChecker(host) { function getConditionalFlowTypeOfType(type, node) { let constraints; let covariant = true; - while (node && !isStatement(node) && node.kind !== 326 /* JSDoc */) { + while (node && !isStatement(node) && node.kind !== 327 /* JSDoc */) { const parent = node.parent; - if (parent.kind === 168 /* Parameter */) { + if (parent.kind === 169 /* Parameter */) { covariant = !covariant; } - if ((covariant || type.flags & 8650752 /* TypeVariable */) && parent.kind === 193 /* ConditionalType */ && node === parent.trueType) { + if ((covariant || type.flags & 8650752 /* TypeVariable */) && parent.kind === 194 /* ConditionalType */ && node === parent.trueType) { const constraint = getImpliedConstraint(type, parent.checkType, parent.extendsType); if (constraint) { constraints = append(constraints, constraint); } - } else if (type.flags & 262144 /* TypeParameter */ && parent.kind === 199 /* MappedType */ && node === parent.type) { + } else if (type.flags & 262144 /* TypeParameter */ && parent.kind === 200 /* MappedType */ && node === parent.type) { const mappedType = getTypeFromTypeNode(parent); if (getTypeParameterFromMappedType(mappedType) === getActualTypeVariable(type)) { const typeParameter = getHomomorphicTypeVariable(mappedType); @@ -55166,7 +55601,7 @@ function createTypeChecker(host) { return constraints ? getSubstitutionType(type, getIntersectionType(constraints)) : type; } function isJSDocTypeReference(node) { - return !!(node.flags & 8388608 /* JSDoc */) && (node.kind === 182 /* TypeReference */ || node.kind === 204 /* ImportType */); + return !!(node.flags & 16777216 /* JSDoc */) && (node.kind === 183 /* TypeReference */ || node.kind === 205 /* ImportType */); } function checkNoTypeArguments(node, symbol) { if (node.typeArguments) { @@ -55289,9 +55724,9 @@ function createTypeChecker(host) { if (declarations) { for (const declaration of declarations) { switch (declaration.kind) { - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: return declaration; } } @@ -55519,6 +55954,22 @@ function createTypeChecker(host) { reportErrors2 )) || emptyGenericType; } + function getGlobalDisposableType(reportErrors2) { + return deferredGlobalDisposableType || (deferredGlobalDisposableType = getGlobalType( + "Disposable", + /*arity*/ + 0, + reportErrors2 + )) || emptyObjectType; + } + function getGlobalAsyncDisposableType(reportErrors2) { + return deferredGlobalAsyncDisposableType || (deferredGlobalAsyncDisposableType = getGlobalType( + "AsyncDisposable", + /*arity*/ + 0, + reportErrors2 + )) || emptyObjectType; + } function getGlobalTypeOrUndefined(name, arity = 0) { const symbol = getGlobalSymbol( name, @@ -55664,11 +56115,11 @@ function createTypeChecker(host) { } function getTupleElementFlags(node) { switch (node.kind) { - case 189 /* OptionalType */: + case 190 /* OptionalType */: return 2 /* Optional */; - case 190 /* RestType */: + case 191 /* RestType */: return getRestTypeElementFlags(node); - case 201 /* NamedTupleMember */: + case 202 /* NamedTupleMember */: return node.questionToken ? 2 /* Optional */ : node.dotDotDotToken ? getRestTypeElementFlags(node) : 1 /* Required */; default: return 1 /* Required */; @@ -55684,60 +56135,57 @@ function createTypeChecker(host) { return readonly ? globalReadonlyArrayType : globalArrayType; } const elementFlags = map(node.elements, getTupleElementFlags); - const missingName = some(node.elements, (e) => e.kind !== 201 /* NamedTupleMember */); - return getTupleTargetType( - elementFlags, - readonly, - /*associatedNames*/ - missingName ? void 0 : node.elements - ); + return getTupleTargetType(elementFlags, readonly, map(node.elements, memberIfLabeledElementDeclaration)); + } + function memberIfLabeledElementDeclaration(member) { + return isNamedTupleMember(member) || isParameter(member) ? member : void 0; } function isDeferredTypeReferenceNode(node, hasDefaultTypeArguments) { - return !!getAliasSymbolForTypeNode(node) || isResolvedByTypeAlias(node) && (node.kind === 187 /* ArrayType */ ? mayResolveTypeAlias(node.elementType) : node.kind === 188 /* TupleType */ ? some(node.elements, mayResolveTypeAlias) : hasDefaultTypeArguments || some(node.typeArguments, mayResolveTypeAlias)); + return !!getAliasSymbolForTypeNode(node) || isResolvedByTypeAlias(node) && (node.kind === 188 /* ArrayType */ ? mayResolveTypeAlias(node.elementType) : node.kind === 189 /* TupleType */ ? some(node.elements, mayResolveTypeAlias) : hasDefaultTypeArguments || some(node.typeArguments, mayResolveTypeAlias)); } function isResolvedByTypeAlias(node) { const parent = node.parent; switch (parent.kind) { - case 195 /* ParenthesizedType */: - case 201 /* NamedTupleMember */: - case 182 /* TypeReference */: - case 191 /* UnionType */: - case 192 /* IntersectionType */: - case 198 /* IndexedAccessType */: - case 193 /* ConditionalType */: - case 197 /* TypeOperator */: - case 187 /* ArrayType */: - case 188 /* TupleType */: + case 196 /* ParenthesizedType */: + case 202 /* NamedTupleMember */: + case 183 /* TypeReference */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: + case 199 /* IndexedAccessType */: + case 194 /* ConditionalType */: + case 198 /* TypeOperator */: + case 188 /* ArrayType */: + case 189 /* TupleType */: return isResolvedByTypeAlias(parent); - case 264 /* TypeAliasDeclaration */: + case 265 /* TypeAliasDeclaration */: return true; } return false; } function mayResolveTypeAlias(node) { switch (node.kind) { - case 182 /* TypeReference */: + case 183 /* TypeReference */: return isJSDocTypeReference(node) || !!(resolveTypeReferenceName(node, 788968 /* Type */).flags & 524288 /* TypeAlias */); - case 185 /* TypeQuery */: + case 186 /* TypeQuery */: return true; - case 197 /* TypeOperator */: + case 198 /* TypeOperator */: return node.operator !== 158 /* UniqueKeyword */ && mayResolveTypeAlias(node.type); - case 195 /* ParenthesizedType */: - case 189 /* OptionalType */: - case 201 /* NamedTupleMember */: - case 322 /* JSDocOptionalType */: - case 320 /* JSDocNullableType */: - case 321 /* JSDocNonNullableType */: - case 315 /* JSDocTypeExpression */: + case 196 /* ParenthesizedType */: + case 190 /* OptionalType */: + case 202 /* NamedTupleMember */: + case 323 /* JSDocOptionalType */: + case 321 /* JSDocNullableType */: + case 322 /* JSDocNonNullableType */: + case 316 /* JSDocTypeExpression */: return mayResolveTypeAlias(node.type); - case 190 /* RestType */: - return node.type.kind !== 187 /* ArrayType */ || mayResolveTypeAlias(node.type.elementType); - case 191 /* UnionType */: - case 192 /* IntersectionType */: + case 191 /* RestType */: + return node.type.kind !== 188 /* ArrayType */ || mayResolveTypeAlias(node.type.elementType); + case 192 /* UnionType */: + case 193 /* IntersectionType */: return some(node.types, mayResolveTypeAlias); - case 198 /* IndexedAccessType */: + case 199 /* IndexedAccessType */: return mayResolveTypeAlias(node.objectType) || mayResolveTypeAlias(node.indexType); - case 193 /* ConditionalType */: + case 194 /* ConditionalType */: return mayResolveTypeAlias(node.checkType) || mayResolveTypeAlias(node.extendsType) || mayResolveTypeAlias(node.trueType) || mayResolveTypeAlias(node.falseType); } return false; @@ -55748,15 +56196,15 @@ function createTypeChecker(host) { const target = getArrayOrTupleTargetType(node); if (target === emptyGenericType) { links.resolvedType = emptyObjectType; - } else if (!(node.kind === 188 /* TupleType */ && some(node.elements, (e) => !!(getTupleElementFlags(e) & 8 /* Variadic */))) && isDeferredTypeReferenceNode(node)) { - links.resolvedType = node.kind === 188 /* TupleType */ && node.elements.length === 0 ? target : createDeferredTypeReference( + } else if (!(node.kind === 189 /* TupleType */ && some(node.elements, (e) => !!(getTupleElementFlags(e) & 8 /* Variadic */))) && isDeferredTypeReferenceNode(node)) { + links.resolvedType = node.kind === 189 /* TupleType */ && node.elements.length === 0 ? target : createDeferredTypeReference( target, node, /*mapper*/ void 0 ); } else { - const elementTypes = node.kind === 187 /* ArrayType */ ? [getTypeFromTypeNode(node.elementType)] : map(node.elements, getTypeFromTypeNode); + const elementTypes = node.kind === 188 /* ArrayType */ ? [getTypeFromTypeNode(node.elementType)] : map(node.elements, getTypeFromTypeNode); links.resolvedType = createNormalizedTypeReference(target, elementTypes); } } @@ -55765,7 +56213,7 @@ function createTypeChecker(host) { function isReadonlyTypeOperator(node) { return isTypeOperatorNode(node) && node.operator === 148 /* ReadonlyKeyword */; } - function createTupleType(elementTypes, elementFlags, readonly = false, namedMemberDeclarations) { + function createTupleType(elementTypes, elementFlags, readonly = false, namedMemberDeclarations = []) { const tupleTarget = getTupleTargetType(elementFlags || map(elementTypes, (_) => 1 /* Required */), readonly, namedMemberDeclarations); return tupleTarget === emptyGenericType ? emptyObjectType : elementTypes.length ? createNormalizedTypeReference(tupleTarget, elementTypes) : tupleTarget; } @@ -55773,7 +56221,8 @@ function createTypeChecker(host) { if (elementFlags.length === 1 && elementFlags[0] & 4 /* Rest */) { return readonly ? globalReadonlyArrayType : globalArrayType; } - const key = map(elementFlags, (f) => f & 1 /* Required */ ? "#" : f & 2 /* Optional */ ? "?" : f & 4 /* Rest */ ? "." : "*").join() + (readonly ? "R" : "") + (namedMemberDeclarations && namedMemberDeclarations.length ? "," + map(namedMemberDeclarations, getNodeId).join(",") : ""); + const memberIds = mapDefined(namedMemberDeclarations, (node) => node ? getNodeId(node) : void 0); + const key = map(elementFlags, (f) => f & 1 /* Required */ ? "#" : f & 2 /* Optional */ ? "?" : f & 4 /* Rest */ ? "." : "*").join() + (readonly ? "R" : "") + (memberIds.length ? "," + memberIds.join(",") : ""); let type = tupleTypes.get(key); if (!type) { tupleTypes.set(key, type = createTupleTargetType(elementFlags, readonly, namedMemberDeclarations)); @@ -55855,7 +56304,7 @@ function createTypeChecker(host) { } const expandedTypes = []; const expandedFlags = []; - let expandedDeclarations = []; + const expandedDeclarations = []; let lastRequiredIndex = -1; let firstRestIndex = -1; let lastOptionalOrRestIndex = -1; @@ -55893,7 +56342,7 @@ function createTypeChecker(host) { )); expandedTypes.splice(firstRestIndex + 1, lastOptionalOrRestIndex - firstRestIndex); expandedFlags.splice(firstRestIndex + 1, lastOptionalOrRestIndex - firstRestIndex); - expandedDeclarations == null ? void 0 : expandedDeclarations.splice(firstRestIndex + 1, lastOptionalOrRestIndex - firstRestIndex); + expandedDeclarations.splice(firstRestIndex + 1, lastOptionalOrRestIndex - firstRestIndex); } const tupleTarget = getTupleTargetType(expandedFlags, target.readonly, expandedDeclarations); return tupleTarget === emptyGenericType ? emptyObjectType : expandedFlags.length ? createTypeReference(tupleTarget, expandedTypes) : tupleTarget; @@ -55913,11 +56362,7 @@ function createTypeChecker(host) { true ) : type); expandedFlags.push(flags); - if (expandedDeclarations && declaration) { - expandedDeclarations.push(declaration); - } else { - expandedDeclarations = void 0; - } + expandedDeclarations.push(declaration); } } function sliceTupleType(type, index, endSkipCount = 0) { @@ -55944,6 +56389,9 @@ function createTypeChecker(host) { function getEndElementCount(type, flags) { return type.elementFlags.length - findLastIndex(type.elementFlags, (f) => !(f & flags)) - 1; } + function getTotalFixedElementCount(type) { + return type.fixedLength + getEndElementCount(type, 3 /* Fixed */); + } function getElementTypes(type) { const typeArguments = getTypeArguments(type); const arity = getTypeReferenceArity(type); @@ -56794,12 +57242,12 @@ function createTypeChecker(host) { if (isCallLikeExpression(parent)) { return isCallOrNewExpression(parent) && isIdentifier(node) && hasMatchingArgument(parent, node); } - return every(symbol.declarations, (d) => !isFunctionLike(d) || !!(getCombinedNodeFlags(d) & 268435456 /* Deprecated */)); + return every(symbol.declarations, (d) => !isFunctionLike(d) || isDeprecatedDeclaration(d)); } return true; } function getPropertyTypeForIndexType(originalObjectType, objectType, indexType, fullIndexType, accessNode, accessFlags) { - const accessExpression = accessNode && accessNode.kind === 211 /* ElementAccessExpression */ ? accessNode : void 0; + const accessExpression = accessNode && accessNode.kind === 212 /* ElementAccessExpression */ ? accessNode : void 0; const propName = accessNode && isPrivateIdentifier(accessNode) ? void 0 : getPropertyNameFromIndex(indexType, accessNode); if (propName !== void 0) { if (accessFlags & 256 /* Contextual */) { @@ -56849,10 +57297,7 @@ function createTypeChecker(host) { } if (index >= 0) { errorIfWritingToReadonlyIndex(getIndexInfoOfType(objectType, numberType)); - return mapType(objectType, (t) => { - const restType = getRestTypeOfTupleType(t) || undefinedType; - return accessFlags & 1 /* IncludeUndefined */ ? getUnionType([restType, missingType]) : restType; - }); + return getTupleElementTypeOutOfStartCount(objectType, index, accessFlags & 1 /* IncludeUndefined */ ? missingType : void 0); } } } @@ -56997,7 +57442,7 @@ function createTypeChecker(host) { } } function getIndexNodeForAccessExpression(accessNode) { - return accessNode.kind === 211 /* ElementAccessExpression */ ? accessNode.argumentExpression : accessNode.kind === 198 /* IndexedAccessType */ ? accessNode.indexType : accessNode.kind === 166 /* ComputedPropertyName */ ? accessNode.expression : accessNode; + return accessNode.kind === 212 /* ElementAccessExpression */ ? accessNode.argumentExpression : accessNode.kind === 199 /* IndexedAccessType */ ? accessNode.indexType : accessNode.kind === 167 /* ComputedPropertyName */ ? accessNode.expression : accessNode; } function isPatternLiteralPlaceholderType(type) { if (type.flags & 2097152 /* Intersection */) { @@ -57137,7 +57582,7 @@ function createTypeChecker(host) { } if (compilerOptions.noUncheckedIndexedAccess && accessFlags & 32 /* ExpressionPosition */) accessFlags |= 1 /* IncludeUndefined */; - if (isGenericIndexType(indexType) || (accessNode && accessNode.kind !== 198 /* IndexedAccessType */ ? isGenericTupleType(objectType) && !indexTypeLessThan(indexType, objectType.target.fixedLength) : isGenericObjectType(objectType) && !(isTupleType(objectType) && indexTypeLessThan(indexType, objectType.target.fixedLength)) || isGenericReducibleType(objectType))) { + if (isGenericIndexType(indexType) || (accessNode && accessNode.kind !== 199 /* IndexedAccessType */ ? isGenericTupleType(objectType) && !indexTypeLessThan(indexType, getTotalFixedElementCount(objectType.target)) : isGenericObjectType(objectType) && !(isTupleType(objectType) && indexTypeLessThan(indexType, getTotalFixedElementCount(objectType.target))) || isGenericReducibleType(objectType))) { if (objectType.flags & 3 /* AnyOrUnknown */) { return objectType; } @@ -57242,9 +57687,9 @@ function createTypeChecker(host) { ); if (freshMapper) { const freshCombinedMapper = combineTypeMappers(mapper, freshMapper); - for (const p of freshParams) { - if (root.inferTypeParameters.indexOf(p) === -1) { - p.mapper = freshCombinedMapper; + for (let i = 0; i < freshParams.length; i++) { + if (freshParams[i] !== root.inferTypeParameters[i]) { + freshParams[i].mapper = freshCombinedMapper; } } } @@ -57399,7 +57844,7 @@ function createTypeChecker(host) { links.resolvedSymbol = unknownSymbol; return links.resolvedType = errorType; } - const targetMeaning = node.isTypeOf ? 111551 /* Value */ : node.flags & 8388608 /* JSDoc */ ? 111551 /* Value */ | 788968 /* Type */ : 788968 /* Type */; + const targetMeaning = node.isTypeOf ? 111551 /* Value */ : node.flags & 16777216 /* JSDoc */ ? 111551 /* Value */ | 788968 /* Type */ : 788968 /* Type */; const innerModuleSymbol = resolveExternalModuleName(node, node.argument.literal); if (!innerModuleSymbol) { links.resolvedSymbol = unknownSymbol; @@ -57705,7 +58150,7 @@ function createTypeChecker(host) { false ); const parent = container && container.parent; - if (parent && (isClassLike(parent) || parent.kind === 263 /* InterfaceDeclaration */)) { + if (parent && (isClassLike(parent) || parent.kind === 264 /* InterfaceDeclaration */)) { if (!isStatic(container) && (!isConstructorDeclaration(container) || isNodeDescendantOf(node, container.body))) { return getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(parent)).thisType; } @@ -57713,7 +58158,7 @@ function createTypeChecker(host) { if (parent && isObjectLiteralExpression(parent) && isBinaryExpression(parent.parent) && getAssignmentDeclarationKind(parent.parent) === 6 /* Prototype */) { return getDeclaredTypeOfClassOrInterface(getSymbolOfNode(parent.parent.left).parent).thisType; } - const host2 = node.flags & 8388608 /* JSDoc */ ? getHostSignatureFromJSDoc(node) : void 0; + const host2 = node.flags & 16777216 /* JSDoc */ ? getHostSignatureFromJSDoc(node) : void 0; if (host2 && isFunctionExpression(host2) && isBinaryExpression(host2.parent) && getAssignmentDeclarationKind(host2.parent) === 3 /* PrototypeProperty */) { return getDeclaredTypeOfClassOrInterface(getSymbolOfNode(host2.parent.left).parent).thisType; } @@ -57735,17 +58180,17 @@ function createTypeChecker(host) { } function getArrayElementTypeNode(node) { switch (node.kind) { - case 195 /* ParenthesizedType */: + case 196 /* ParenthesizedType */: return getArrayElementTypeNode(node.type); - case 188 /* TupleType */: + case 189 /* TupleType */: if (node.elements.length === 1) { node = node.elements[0]; - if (node.kind === 190 /* RestType */ || node.kind === 201 /* NamedTupleMember */ && node.dotDotDotToken) { + if (node.kind === 191 /* RestType */ || node.kind === 202 /* NamedTupleMember */ && node.dotDotDotToken) { return getArrayElementTypeNode(node.type); } } break; - case 187 /* ArrayType */: + case 188 /* ArrayType */: return node.elementType; } return void 0; @@ -57765,8 +58210,8 @@ function createTypeChecker(host) { function getTypeFromTypeNodeWorker(node) { switch (node.kind) { case 133 /* AnyKeyword */: - case 318 /* JSDocAllType */: - case 319 /* JSDocUnknownType */: + case 319 /* JSDocAllType */: + case 320 /* JSDocUnknownType */: return anyType; case 159 /* UnknownKeyword */: return unknownType; @@ -57774,7 +58219,7 @@ function createTypeChecker(host) { return stringType; case 150 /* NumberKeyword */: return numberType; - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: return bigintType; case 136 /* BooleanKeyword */: return booleanType; @@ -57789,69 +58234,69 @@ function createTypeChecker(host) { case 146 /* NeverKeyword */: return neverType; case 151 /* ObjectKeyword */: - return node.flags & 262144 /* JavaScriptFile */ && !noImplicitAny ? anyType : nonPrimitiveType; + return node.flags & 524288 /* JavaScriptFile */ && !noImplicitAny ? anyType : nonPrimitiveType; case 141 /* IntrinsicKeyword */: return intrinsicMarkerType; - case 196 /* ThisType */: + case 197 /* ThisType */: case 110 /* ThisKeyword */: return getTypeFromThisTypeNode(node); - case 200 /* LiteralType */: + case 201 /* LiteralType */: return getTypeFromLiteralTypeNode(node); - case 182 /* TypeReference */: + case 183 /* TypeReference */: return getTypeFromTypeReference(node); - case 181 /* TypePredicate */: + case 182 /* TypePredicate */: return node.assertsModifier ? voidType : booleanType; - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return getTypeFromTypeReference(node); - case 185 /* TypeQuery */: + case 186 /* TypeQuery */: return getTypeFromTypeQueryNode(node); - case 187 /* ArrayType */: - case 188 /* TupleType */: + case 188 /* ArrayType */: + case 189 /* TupleType */: return getTypeFromArrayOrTupleTypeNode(node); - case 189 /* OptionalType */: + case 190 /* OptionalType */: return getTypeFromOptionalTypeNode(node); - case 191 /* UnionType */: + case 192 /* UnionType */: return getTypeFromUnionTypeNode(node); - case 192 /* IntersectionType */: + case 193 /* IntersectionType */: return getTypeFromIntersectionTypeNode(node); - case 320 /* JSDocNullableType */: + case 321 /* JSDocNullableType */: return getTypeFromJSDocNullableTypeNode(node); - case 322 /* JSDocOptionalType */: + case 323 /* JSDocOptionalType */: return addOptionality(getTypeFromTypeNode(node.type)); - case 201 /* NamedTupleMember */: + case 202 /* NamedTupleMember */: return getTypeFromNamedTupleTypeNode(node); - case 195 /* ParenthesizedType */: - case 321 /* JSDocNonNullableType */: - case 315 /* JSDocTypeExpression */: + case 196 /* ParenthesizedType */: + case 322 /* JSDocNonNullableType */: + case 316 /* JSDocTypeExpression */: return getTypeFromTypeNode(node.type); - case 190 /* RestType */: + case 191 /* RestType */: return getTypeFromRestTypeNode(node); - case 324 /* JSDocVariadicType */: + case 325 /* JSDocVariadicType */: return getTypeFromJSDocVariadicType(node); - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 186 /* TypeLiteral */: - case 328 /* JSDocTypeLiteral */: - case 323 /* JSDocFunctionType */: - case 329 /* JSDocSignature */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 187 /* TypeLiteral */: + case 329 /* JSDocTypeLiteral */: + case 324 /* JSDocFunctionType */: + case 330 /* JSDocSignature */: return getTypeFromTypeLiteralOrFunctionOrConstructorTypeNode(node); - case 197 /* TypeOperator */: + case 198 /* TypeOperator */: return getTypeFromTypeOperatorNode(node); - case 198 /* IndexedAccessType */: + case 199 /* IndexedAccessType */: return getTypeFromIndexedAccessTypeNode(node); - case 199 /* MappedType */: + case 200 /* MappedType */: return getTypeFromMappedTypeNode(node); - case 193 /* ConditionalType */: + case 194 /* ConditionalType */: return getTypeFromConditionalTypeNode(node); - case 194 /* InferType */: + case 195 /* InferType */: return getTypeFromInferTypeNode(node); - case 202 /* TemplateLiteralType */: + case 203 /* TemplateLiteralType */: return getTypeFromTemplateTypeNode(node); - case 204 /* ImportType */: + case 205 /* ImportType */: return getTypeFromImportTypeNode(node); case 80 /* Identifier */: - case 165 /* QualifiedName */: - case 210 /* PropertyAccessExpression */: + case 166 /* QualifiedName */: + case 211 /* PropertyAccessExpression */: const symbol = getSymbolAtLocation(node); return symbol ? getDeclaredTypeOfSymbol(symbol) : errorType; default: @@ -57987,7 +58432,7 @@ function createTypeChecker(host) { /*resolvedTypePredicate*/ void 0, signature.minArgumentCount, - signature.flags & 39 /* PropagatingFlags */ + signature.flags & 167 /* PropagatingFlags */ ); result.target = signature; result.mapper = mapper; @@ -58049,26 +58494,31 @@ function createTypeChecker(host) { if (!result) { const newMapper = createTypeMapper(typeParameters, typeArguments); result = target.objectFlags & 4 /* Reference */ ? createDeferredTypeReference(type.target, type.node, newMapper, newAliasSymbol, newAliasTypeArguments) : target.objectFlags & 32 /* Mapped */ ? instantiateMappedType(target, newMapper, newAliasSymbol, newAliasTypeArguments) : instantiateAnonymousType(target, newMapper, newAliasSymbol, newAliasTypeArguments); - if (result.flags & 138117121 /* ObjectFlagsType */ && !(result.objectFlags & 524288 /* CouldContainTypeVariablesComputed */)) { + target.instantiations.set(id, result); + const resultObjectFlags = getObjectFlags(result); + if (result.flags & 138117121 /* ObjectFlagsType */ && !(resultObjectFlags & 524288 /* CouldContainTypeVariablesComputed */)) { const resultCouldContainTypeVariables = some(typeArguments, couldContainTypeVariables); - if (!(result.objectFlags & 524288 /* CouldContainTypeVariablesComputed */)) { - result.objectFlags |= 524288 /* CouldContainTypeVariablesComputed */ | (resultCouldContainTypeVariables ? 1048576 /* CouldContainTypeVariables */ : 0); + if (!(getObjectFlags(result) & 524288 /* CouldContainTypeVariablesComputed */)) { + if (resultObjectFlags & (32 /* Mapped */ | 16 /* Anonymous */ | 4 /* Reference */)) { + result.objectFlags |= 524288 /* CouldContainTypeVariablesComputed */ | (resultCouldContainTypeVariables ? 1048576 /* CouldContainTypeVariables */ : 0); + } else { + result.objectFlags |= !resultCouldContainTypeVariables ? 524288 /* CouldContainTypeVariablesComputed */ : 0; + } } } - target.instantiations.set(id, result); } return result; } return type; } function maybeTypeParameterReference(node) { - return !(node.parent.kind === 182 /* TypeReference */ && node.parent.typeArguments && node === node.parent.typeName || node.parent.kind === 204 /* ImportType */ && node.parent.typeArguments && node === node.parent.qualifier); + return !(node.parent.kind === 183 /* TypeReference */ && node.parent.typeArguments && node === node.parent.typeName || node.parent.kind === 205 /* ImportType */ && node.parent.typeArguments && node === node.parent.qualifier); } function isTypeParameterPossiblyReferenced(tp, node) { if (tp.symbol && tp.symbol.declarations && tp.symbol.declarations.length === 1) { const container = tp.symbol.declarations[0].parent; for (let n = node; n !== container; n = n.parent) { - if (!n || n.kind === 240 /* Block */ || n.kind === 193 /* ConditionalType */ && forEachChild(n.extendsType, containsReference)) { + if (!n || n.kind === 241 /* Block */ || n.kind === 194 /* ConditionalType */ && forEachChild(n.extendsType, containsReference)) { return true; } } @@ -58077,17 +58527,17 @@ function createTypeChecker(host) { return true; function containsReference(node2) { switch (node2.kind) { - case 196 /* ThisType */: + case 197 /* ThisType */: return !!tp.isThisType; case 80 /* Identifier */: return !tp.isThisType && isPartOfTypeNode(node2) && maybeTypeParameterReference(node2) && getTypeFromTypeNodeWorker(node2) === tp; - case 185 /* TypeQuery */: + case 186 /* TypeQuery */: const entityName = node2.exprName; const firstIdentifier = getFirstIdentifier(entityName); if (!isThisIdentifier(firstIdentifier)) { const firstIdentifierSymbol = getResolvedSymbol(firstIdentifier); const tpDeclaration = tp.symbol.declarations[0]; - const tpScope = tpDeclaration.kind === 167 /* TypeParameter */ ? tpDeclaration.parent : ( + const tpScope = tpDeclaration.kind === 168 /* TypeParameter */ ? tpDeclaration.parent : ( // Type parameter is a regular type parameter, e.g. foo tp.isThisType ? tpDeclaration : ( // Type parameter is the this type, and its declaration is the class declaration. @@ -58099,8 +58549,8 @@ function createTypeChecker(host) { } } return true; - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: return !node2.type && !!node2.body || some(node2.typeParameters, containsReference) || some(node2.parameters, containsReference) || !!node2.type && containsReference(node2.type); } return !!forEachChild(node2, containsReference); @@ -58150,6 +58600,9 @@ function createTypeChecker(host) { const elementFlags = tupleType.target.elementFlags; const elementTypes = map(getElementTypes(tupleType), (t, i) => { const singleton = elementFlags[i] & 8 /* Variadic */ ? t : elementFlags[i] & 4 /* Rest */ ? createArrayType(t) : createTupleType([t], [elementFlags[i]]); + if (singleton === typeVariable) { + return mappedType; + } return instantiateMappedType(mappedType, prependTypeMapping(typeVariable, singleton, mapper)); }); const newReadonly = getModifiedReadonlyState(tupleType.target.readonly, getMappedTypeModifiers(mappedType)); @@ -58353,32 +58806,32 @@ function createTypeChecker(host) { return createIndexInfo(info.keyType, instantiateType(info.type, mapper), info.isReadonly, info.declaration); } function isContextSensitive(node) { - Debug.assert(node.kind !== 173 /* MethodDeclaration */ || isObjectLiteralMethod(node)); + Debug.assert(node.kind !== 174 /* MethodDeclaration */ || isObjectLiteralMethod(node)); switch (node.kind) { - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: - case 261 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 262 /* FunctionDeclaration */: return isContextSensitiveFunctionLikeDeclaration(node); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return some(node.properties, isContextSensitive); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return some(node.elements, isContextSensitive); - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: return isContextSensitive(node.whenTrue) || isContextSensitive(node.whenFalse); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return (node.operatorToken.kind === 57 /* BarBarToken */ || node.operatorToken.kind === 61 /* QuestionQuestionToken */) && (isContextSensitive(node.left) || isContextSensitive(node.right)); - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return isContextSensitive(node.initializer); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return isContextSensitive(node.expression); - case 291 /* JsxAttributes */: + case 292 /* JsxAttributes */: return some(node.properties, isContextSensitive) || isJsxOpeningElement(node.parent) && some(node.parent.parent.children, isContextSensitive); - case 290 /* JsxAttribute */: { + case 291 /* JsxAttribute */: { const { initializer } = node; return !!initializer && isContextSensitive(initializer); } - case 293 /* JsxExpression */: { + case 294 /* JsxExpression */: { const { expression } = node; return !!expression && isContextSensitive(expression); } @@ -58392,7 +58845,7 @@ function createTypeChecker(host) { if (node.typeParameters || getEffectiveReturnTypeNode(node) || !node.body) { return false; } - if (node.body.kind !== 240 /* Block */) { + if (node.body.kind !== 241 /* Block */) { return isContextSensitive(node.body); } return !!forEachReturnStatement(node.body, (statement) => !!statement.expression && isContextSensitive(statement.expression)); @@ -58487,23 +58940,27 @@ function createTypeChecker(host) { return true; } switch (node.kind) { - case 293 /* JsxExpression */: - case 216 /* ParenthesizedExpression */: + case 234 /* AsExpression */: + if (!isConstAssertion(node)) { + break; + } + case 294 /* JsxExpression */: + case 217 /* ParenthesizedExpression */: return elaborateError(node.expression, source, target, relation, headMessage, containingMessageChain, errorOutputContainer); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: switch (node.operatorToken.kind) { case 64 /* EqualsToken */: case 28 /* CommaToken */: return elaborateError(node.right, source, target, relation, headMessage, containingMessageChain, errorOutputContainer); } break; - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return elaborateObjectLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return elaborateArrayLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer); - case 291 /* JsxAttributes */: + case 292 /* JsxAttributes */: return elaborateJsxComponents(node, source, target, relation, containingMessageChain, errorOutputContainer); - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return elaborateArrowFunction(node, source, target, relation, containingMessageChain, errorOutputContainer); } return false; @@ -58803,16 +59260,16 @@ function createTypeChecker(host) { } function getElaborationElementForJsxChild(child, nameType, getInvalidTextDiagnostic) { switch (child.kind) { - case 293 /* JsxExpression */: + case 294 /* JsxExpression */: return { errorNode: child, innerExpression: child.expression, nameType }; case 12 /* JsxText */: if (child.containsOnlyTriviaWhiteSpaces) { break; } return { errorNode: child, innerExpression: void 0, nameType, errorMessage: getInvalidTextDiagnostic() }; - case 283 /* JsxElement */: - case 284 /* JsxSelfClosingElement */: - case 287 /* JsxFragment */: + case 284 /* JsxElement */: + case 285 /* JsxSelfClosingElement */: + case 288 /* JsxFragment */: return { errorNode: child, innerExpression: child, nameType }; default: return Debug.assertNever(child, "Found invalid jsx child"); @@ -58962,13 +59419,13 @@ function createTypeChecker(host) { continue; } switch (prop.kind) { - case 177 /* SetAccessor */: - case 176 /* GetAccessor */: - case 173 /* MethodDeclaration */: - case 303 /* ShorthandPropertyAssignment */: + case 178 /* SetAccessor */: + case 177 /* GetAccessor */: + case 174 /* MethodDeclaration */: + case 304 /* ShorthandPropertyAssignment */: yield { errorNode: prop.name, innerExpression: void 0, nameType: type }; break; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: yield { errorNode: prop.name, innerExpression: prop.initializer, nameType: type, errorMessage: isComputedNonLiteralName(prop.name) ? Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1 : void 0 }; break; default: @@ -59043,7 +59500,7 @@ function createTypeChecker(host) { void instantiateType(sourceRestType || targetRestType, reportUnreliableMarkers); } const kind = target.declaration ? target.declaration.kind : 0 /* Unknown */; - const strictVariance = !(checkMode & 3 /* Callback */) && strictFunctionTypes && kind !== 173 /* MethodDeclaration */ && kind !== 172 /* MethodSignature */ && kind !== 175 /* Constructor */; + const strictVariance = !(checkMode & 3 /* Callback */) && strictFunctionTypes && kind !== 174 /* MethodDeclaration */ && kind !== 173 /* MethodSignature */ && kind !== 176 /* Constructor */; let result = -1 /* True */; const sourceThisType = getThisTypeOfSignature(source); if (sourceThisType && sourceThisType !== voidType) { @@ -59362,6 +59819,7 @@ function createTypeChecker(host) { let errorInfo; let relatedInfo; let maybeKeys; + let maybeKeysSet; let sourceStack; let targetStack; let maybeCount = 0; @@ -60231,9 +60689,13 @@ function createTypeChecker(host) { } if (!maybeKeys) { maybeKeys = []; + maybeKeysSet = /* @__PURE__ */ new Set(); sourceStack = []; targetStack = []; } else { + if (maybeKeysSet.has(id)) { + return 3 /* Maybe */; + } const broadestEquivalentId = id.startsWith("*") ? getRelationKey( source2, target2, @@ -60242,10 +60704,8 @@ function createTypeChecker(host) { /*ignoreConstraints*/ true ) : void 0; - for (let i = 0; i < maybeCount; i++) { - if (id === maybeKeys[i] || broadestEquivalentId && broadestEquivalentId === maybeKeys[i]) { - return 3 /* Maybe */; - } + if (broadestEquivalentId && maybeKeysSet.has(broadestEquivalentId)) { + return 3 /* Maybe */; } if (sourceDepth === 100 || targetDepth === 100) { overflow = true; @@ -60254,6 +60714,7 @@ function createTypeChecker(host) { } const maybeStart = maybeCount; maybeKeys[maybeCount] = id; + maybeKeysSet.add(id); maybeCount++; const saveExpandingFlags = expandingFlags; if (recursionFlags & 1 /* Source */) { @@ -60306,17 +60767,34 @@ function createTypeChecker(host) { if (result2) { if (result2 === -1 /* True */ || sourceDepth === 0 && targetDepth === 0) { if (result2 === -1 /* True */ || result2 === 3 /* Maybe */) { - for (let i = maybeStart; i < maybeCount; i++) { - relation.set(maybeKeys[i], 1 /* Succeeded */ | propagatingVarianceFlags); - } + resetMaybeStack( + /*markAllAsSucceeded*/ + true + ); + } else { + resetMaybeStack( + /*markAllAsSucceeded*/ + false + ); } - maybeCount = maybeStart; } } else { relation.set(id, (reportErrors2 ? 4 /* Reported */ : 0) | 2 /* Failed */ | propagatingVarianceFlags); - maybeCount = maybeStart; + resetMaybeStack( + /*markAllAsSucceeded*/ + false + ); } return result2; + function resetMaybeStack(markAllAsSucceeded) { + for (let i = maybeStart; i < maybeCount; i++) { + maybeKeysSet.delete(maybeKeys[i]); + if (markAllAsSucceeded) { + relation.set(maybeKeys[i], 1 /* Succeeded */ | propagatingVarianceFlags); + } + } + maybeCount = maybeStart; + } } function structuredTypeRelatedTo(source2, target2, reportErrors2, intersectionState) { const saveErrorInfo = captureErrorCalculationState(); @@ -60728,26 +61206,6 @@ function createTypeChecker(host) { )) { return result2; } - if (sourceFlags & 8388608 /* IndexedAccess */) { - const indexType = source2.indexType; - if (indexType.flags & 4194304 /* Index */) { - const unresolvedIndexConstraint = getBaseConstraintOfType(indexType.type); - const indexConstraint = unresolvedIndexConstraint && unresolvedIndexConstraint !== noConstraintType ? getIndexType(unresolvedIndexConstraint) : keyofConstraintType; - const constraint2 = getIndexedAccessType(source2.objectType, indexConstraint); - if (result2 = isRelatedTo( - constraint2, - target2, - 1 /* Source */, - /*reportErrors*/ - false, - /*headMessage*/ - void 0, - intersectionState - )) { - return result2; - } - } - } if (isMappedTypeGenericIndexedAccess(source2)) { const indexConstraint = getConstraintOfType(source2.indexType); if (indexConstraint) { @@ -61433,7 +61891,7 @@ function createTypeChecker(host) { const sourceSignature = first(sourceSignatures); const targetSignature = first(targetSignatures); result2 = signatureRelatedTo(sourceSignature, targetSignature, eraseGenerics, reportErrors2, intersectionState, incompatibleReporter(sourceSignature, targetSignature)); - if (!result2 && reportErrors2 && kind === 1 /* Construct */ && sourceObjectFlags & targetObjectFlags && (((_a2 = targetSignature.declaration) == null ? void 0 : _a2.kind) === 175 /* Constructor */ || ((_b = sourceSignature.declaration) == null ? void 0 : _b.kind) === 175 /* Constructor */)) { + if (!result2 && reportErrors2 && kind === 1 /* Construct */ && sourceObjectFlags & targetObjectFlags && (((_a2 = targetSignature.declaration) == null ? void 0 : _a2.kind) === 176 /* Constructor */ || ((_b = sourceSignature.declaration) == null ? void 0 : _b.kind) === 176 /* Constructor */)) { const constructSignatureToString = (signature) => signatureToString( signature, /*enclosingDeclaration*/ @@ -61719,7 +62177,7 @@ function createTypeChecker(host) { let matched = false; for (let i = 0; i < types.length; i++) { if (include[i]) { - const targetType = getTypeOfPropertyOfType(types[i], propertyName); + const targetType = getTypeOfPropertyOrIndexSignatureOfType(types[i], propertyName); if (targetType && related(getDiscriminatingType(), targetType)) { matched = true; } else { @@ -61733,7 +62191,7 @@ function createTypeChecker(host) { } } } - const filtered = contains(include, 0 /* False */) ? getUnionType(types.filter((_, i) => include[i])) : target; + const filtered = contains(include, 0 /* False */) ? getUnionType(types.filter((_, i) => include[i]), 0 /* None */) : target; return filtered.flags & 131072 /* Never */ ? target : filtered; } function isWeakType(type) { @@ -61937,7 +62395,7 @@ function createTypeChecker(host) { } function getRecursionIdentity(type) { if (type.flags & 524288 /* Object */ && !isObjectOrArrayLiteralType(type)) { - if (getObjectFlags(type) && 4 /* Reference */ && type.node) { + if (getObjectFlags(type) & 4 /* Reference */ && type.node) { return type.node; } if (type.symbol && !(getObjectFlags(type) & 16 /* Anonymous */ && type.symbol.flags & 32 /* Class */)) { @@ -62118,7 +62576,7 @@ function createTypeChecker(host) { const target = type.target; if (getObjectFlags(target) & 1 /* Class */) { const baseTypeNode = getBaseTypeNodeOfClass(target); - if (baseTypeNode && baseTypeNode.expression.kind !== 80 /* Identifier */ && baseTypeNode.expression.kind !== 210 /* PropertyAccessExpression */) { + if (baseTypeNode && baseTypeNode.expression.kind !== 80 /* Identifier */ && baseTypeNode.expression.kind !== 211 /* PropertyAccessExpression */) { return void 0; } } @@ -62144,7 +62602,8 @@ function createTypeChecker(host) { return !!elementType && isEmptyLiteralType(elementType); } function isTupleLikeType(type) { - return isTupleType(type) || !!getPropertyOfType(type, "0"); + let lengthType; + return isTupleType(type) || !!getPropertyOfType(type, "0") || isArrayLikeType(type) && !!(lengthType = getTypeOfPropertyOfType(type, "length")) && everyType(lengthType, (t) => !!(t.flags & 256 /* NumberLiteral */)); } function isArrayOrTupleLikeType(type) { return isArrayLikeType(type) || isTupleLikeType(type); @@ -62155,17 +62614,7 @@ function createTypeChecker(host) { return propType; } if (everyType(type, isTupleType)) { - return mapType(type, (t) => { - const tupleType = t; - const restType = getRestTypeOfTupleType(tupleType); - if (!restType) { - return undefinedType; - } - if (compilerOptions.noUncheckedIndexedAccess && index >= tupleType.target.fixedLength + getEndElementCount(tupleType.target, 3 /* Fixed */)) { - return getUnionType([restType, undefinedType]); - } - return restType; - }); + return getTupleElementTypeOutOfStartCount(type, index, compilerOptions.noUncheckedIndexedAccess ? undefinedType : void 0); } return void 0; } @@ -62233,6 +62682,19 @@ function createTypeChecker(host) { function getRestTypeOfTupleType(type) { return getElementTypeOfSliceOfTupleType(type, type.target.fixedLength); } + function getTupleElementTypeOutOfStartCount(type, index, undefinedOrMissingType2) { + return mapType(type, (t) => { + const tupleType = t; + const restType = getRestTypeOfTupleType(tupleType); + if (!restType) { + return undefinedType; + } + if (undefinedOrMissingType2 && index >= getTotalFixedElementCount(tupleType.target)) { + return getUnionType([restType, undefinedOrMissingType2]); + } + return restType; + }); + } function getRestArrayTypeOfTupleType(type) { const restType = getRestTypeOfTupleType(type); return restType && createArrayType(restType); @@ -62517,12 +62979,12 @@ function createTypeChecker(host) { } let diagnostic; switch (declaration.kind) { - case 225 /* BinaryExpression */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: + case 226 /* BinaryExpression */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: diagnostic = noImplicitAny ? Diagnostics.Member_0_implicitly_has_an_1_type : Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage; break; - case 168 /* Parameter */: + case 169 /* Parameter */: const param = declaration; if (isIdentifier(param.name)) { const originalKeywordKind = identifierToKeywordKind(param.name); @@ -62544,27 +63006,27 @@ function createTypeChecker(host) { } diagnostic = declaration.dotDotDotToken ? noImplicitAny ? Diagnostics.Rest_parameter_0_implicitly_has_an_any_type : Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage : noImplicitAny ? Diagnostics.Parameter_0_implicitly_has_an_1_type : Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage; break; - case 207 /* BindingElement */: + case 208 /* BindingElement */: diagnostic = Diagnostics.Binding_element_0_implicitly_has_an_1_type; if (!noImplicitAny) { return; } break; - case 323 /* JSDocFunctionType */: + case 324 /* JSDocFunctionType */: error(declaration, Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type, typeAsString); return; - case 329 /* JSDocSignature */: + case 330 /* JSDocSignature */: if (noImplicitAny && isJSDocOverloadTag(declaration.parent)) { error(declaration.parent.tagName, Diagnostics.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation, typeAsString); } return; - case 261 /* FunctionDeclaration */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: if (noImplicitAny && !declaration.name) { if (wideningKind === 3 /* GeneratorYield */) { error(declaration, Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation, typeAsString); @@ -62575,7 +63037,7 @@ function createTypeChecker(host) { } diagnostic = !noImplicitAny ? Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage : wideningKind === 3 /* GeneratorYield */ ? Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type : Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type; break; - case 199 /* MappedType */: + case 200 /* MappedType */: if (noImplicitAny) { error(declaration, Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type); } @@ -62672,7 +63134,7 @@ function createTypeChecker(host) { function inferFromIntraExpressionSites(context) { if (context.intraExpressionInferenceSites) { for (const { node, type } of context.intraExpressionInferenceSites) { - const contextualType = node.kind === 173 /* MethodDeclaration */ ? getContextualTypeForObjectLiteralMethod(node, 2 /* NoConstraints */) : getContextualType(node, 2 /* NoConstraints */); + const contextualType = node.kind === 174 /* MethodDeclaration */ ? getContextualTypeForObjectLiteralMethod(node, 2 /* NoConstraints */) : getContextualType(node, 2 /* NoConstraints */); if (contextualType) { inferTypes(context.inferences, type, contextualType); } @@ -62724,8 +63186,8 @@ function createTypeChecker(host) { } function isNonGenericTopLevelType(type) { if (type.aliasSymbol && !type.aliasTypeArguments) { - const declaration = getDeclarationOfKind(type.aliasSymbol, 264 /* TypeAliasDeclaration */); - return !!(declaration && findAncestor(declaration.parent, (n) => n.kind === 311 /* SourceFile */ ? true : n.kind === 266 /* ModuleDeclaration */ ? false : "quit")); + const declaration = getDeclarationOfKind(type.aliasSymbol, 265 /* TypeAliasDeclaration */); + return !!(declaration && findAncestor(declaration.parent, (n) => n.kind === 312 /* SourceFile */ ? true : n.kind === 267 /* ModuleDeclaration */ ? false : "quit")); } return false; } @@ -62767,17 +63229,18 @@ function createTypeChecker(host) { ); } function inferTypeForHomomorphicMappedType(source, target, constraint) { - if (inInferTypeForHomomorphicMappedType) { - return void 0; + const cacheKey = source.id + "," + target.id + "," + constraint.id; + if (reverseMappedCache.has(cacheKey)) { + return reverseMappedCache.get(cacheKey); } - const key = source.id + "," + target.id + "," + constraint.id; - if (reverseMappedCache.has(key)) { - return reverseMappedCache.get(key); + const recursionKey = source.id + "," + (target.target || target).id; + if (contains(homomorphicMappedTypeInferenceStack, recursionKey)) { + return void 0; } - inInferTypeForHomomorphicMappedType = true; + homomorphicMappedTypeInferenceStack.push(recursionKey); const type = createReverseMappedType(source, target, constraint); - inInferTypeForHomomorphicMappedType = false; - reverseMappedCache.set(key, type); + homomorphicMappedTypeInferenceStack.pop(); + reverseMappedCache.set(cacheKey, type); return type; } function isPartiallyInferableType(type) { @@ -63550,7 +64013,7 @@ function createTypeChecker(host) { if (!(source.flags & 64 /* IsNonInferrable */)) { const saveBivariant = bivariant; const kind = target.declaration ? target.declaration.kind : 0 /* Unknown */; - bivariant = bivariant || kind === 173 /* MethodDeclaration */ || kind === 172 /* MethodSignature */ || kind === 175 /* Constructor */; + bivariant = bivariant || kind === 174 /* MethodDeclaration */ || kind === 173 /* MethodSignature */ || kind === 176 /* Constructor */; applyToParameterTypes(source, target, inferFromContravariantTypesIfStrictFunctionTypes); bivariant = saveBivariant; } @@ -63650,7 +64113,7 @@ function createTypeChecker(host) { const constraint = getConstraintOfTypeParameter(inference.typeParameter); if (constraint) { const instantiatedConstraint = instantiateType(constraint, context.nonFixingMapper); - if (!inferredType || !context.compareTypes(inferredType, getTypeWithThisArgument(instantiatedConstraint, inferredType))) { + if (!inferredType || inferredType === wildcardType || !context.compareTypes(inferredType, getTypeWithThisArgument(instantiatedConstraint, inferredType))) { inference.inferredType = fallbackType && context.compareTypes(fallbackType, getTypeWithThisArgument(instantiatedConstraint, fallbackType)) ? fallbackType : instantiatedConstraint; } } @@ -63708,7 +64171,7 @@ function createTypeChecker(host) { return Diagnostics.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function; } default: - if (node.parent.kind === 303 /* ShorthandPropertyAssignment */) { + if (node.parent.kind === 304 /* ShorthandPropertyAssignment */) { return Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer; } else { return Diagnostics.Cannot_find_name_0; @@ -63731,14 +64194,8 @@ function createTypeChecker(host) { } return links.resolvedSymbol; } - function isInTypeQuery(node) { - return !!findAncestor( - node, - (n) => n.kind === 185 /* TypeQuery */ ? true : n.kind === 80 /* Identifier */ || n.kind === 165 /* QualifiedName */ ? false : "quit" - ); - } function isInAmbientOrTypeNode(node) { - return !!(node.flags & 16777216 /* Ambient */ || findAncestor(node, (n) => isInterfaceDeclaration(n) || isTypeAliasDeclaration(n) || isTypeLiteralNode(n))); + return !!(node.flags & 33554432 /* Ambient */ || findAncestor(node, (n) => isInterfaceDeclaration(n) || isTypeAliasDeclaration(n) || isTypeLiteralNode(n))); } function getFlowCacheKey(node, declaredType, initialType, flowContainer) { switch (node.kind) { @@ -63749,41 +64206,41 @@ function createTypeChecker(host) { } case 110 /* ThisKeyword */: return `0|${flowContainer ? getNodeId(flowContainer) : "-1"}|${getTypeId(declaredType)}|${getTypeId(initialType)}`; - case 234 /* NonNullExpression */: - case 216 /* ParenthesizedExpression */: + case 235 /* NonNullExpression */: + case 217 /* ParenthesizedExpression */: return getFlowCacheKey(node.expression, declaredType, initialType, flowContainer); - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: const left = getFlowCacheKey(node.left, declaredType, initialType, flowContainer); return left && left + "." + node.right.escapedText; - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: const propName = getAccessedPropertyName(node); if (propName !== void 0) { const key = getFlowCacheKey(node.expression, declaredType, initialType, flowContainer); return key && key + "." + propName; } break; - case 205 /* ObjectBindingPattern */: - case 206 /* ArrayBindingPattern */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: + case 206 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: return `${getNodeId(node)}#${getTypeId(declaredType)}`; } return void 0; } function isMatchingReference(source, target) { switch (target.kind) { - case 216 /* ParenthesizedExpression */: - case 234 /* NonNullExpression */: + case 217 /* ParenthesizedExpression */: + case 235 /* NonNullExpression */: return isMatchingReference(source, target.expression); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return isAssignmentExpression(target) && isMatchingReference(source, target.left) || isBinaryExpression(target) && target.operatorToken.kind === 28 /* CommaToken */ && isMatchingReference(source, target.right); } switch (source.kind) { - case 235 /* MetaProperty */: - return target.kind === 235 /* MetaProperty */ && source.keywordToken === target.keywordToken && source.name.escapedText === target.name.escapedText; + case 236 /* MetaProperty */: + return target.kind === 236 /* MetaProperty */ && source.keywordToken === target.keywordToken && source.name.escapedText === target.name.escapedText; case 80 /* Identifier */: case 81 /* PrivateIdentifier */: return isThisInTypeQuery(source) ? target.kind === 110 /* ThisKeyword */ : target.kind === 80 /* Identifier */ && getResolvedSymbol(source) === getResolvedSymbol(target) || (isVariableDeclaration(target) || isBindingElement(target)) && getExportSymbolOfValueSymbolIfExported(getResolvedSymbol(source)) === getSymbolOfDeclaration(target); @@ -63791,17 +64248,17 @@ function createTypeChecker(host) { return target.kind === 110 /* ThisKeyword */; case 108 /* SuperKeyword */: return target.kind === 108 /* SuperKeyword */; - case 234 /* NonNullExpression */: - case 216 /* ParenthesizedExpression */: + case 235 /* NonNullExpression */: + case 217 /* ParenthesizedExpression */: return isMatchingReference(source.expression, target); - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: const sourcePropertyName = getAccessedPropertyName(source); const targetPropertyName = isAccessExpression(target) ? getAccessedPropertyName(target) : void 0; return sourcePropertyName !== void 0 && targetPropertyName !== void 0 && targetPropertyName === sourcePropertyName && isMatchingReference(source.expression, target.expression); - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: return isAccessExpression(target) && source.right.escapedText === getAccessedPropertyName(target) && isMatchingReference(source.left, target.expression); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return isBinaryExpression(source) && source.operatorToken.kind === 28 /* CommaToken */ && isMatchingReference(source.right, target); } return false; @@ -63835,7 +64292,7 @@ function createTypeChecker(host) { /*ignoreErrors*/ true ); - if (!symbol || !(isConstVariable(symbol) || symbol.flags & 8 /* EnumMember */)) + if (!symbol || !(isConstantVariable(symbol) || symbol.flags & 8 /* EnumMember */)) return void 0; const declaration = symbol.valueDeclaration; if (declaration === void 0) @@ -63954,7 +64411,7 @@ function createTypeChecker(host) { } function getMatchingUnionConstituentForObjectLiteral(unionType, node) { const keyPropertyName = getKeyPropertyName(unionType); - const propNode = keyPropertyName && find(node.properties, (p) => p.symbol && p.kind === 302 /* PropertyAssignment */ && p.symbol.escapedName === keyPropertyName && isPossiblyDiscriminantValue(p.initializer)); + const propNode = keyPropertyName && find(node.properties, (p) => p.symbol && p.kind === 303 /* PropertyAssignment */ && p.symbol.escapedName === keyPropertyName && isPossiblyDiscriminantValue(p.initializer)); const propType = propNode && getContextFreeTypeOfExpression(propNode.initializer); return propType && getConstituentTypeForKeyType(unionType, propType); } @@ -63969,7 +64426,7 @@ function createTypeChecker(host) { } } } - if (expression.expression.kind === 210 /* PropertyAccessExpression */ && isOrContainsMatchingReference(reference, expression.expression.expression)) { + if (expression.expression.kind === 211 /* PropertyAccessExpression */ && isOrContainsMatchingReference(reference, expression.expression.expression)) { return true; } return false; @@ -64141,11 +64598,11 @@ function createTypeChecker(host) { ) || errorType); } function getAssignedTypeOfBinaryExpression(node) { - const isDestructuringDefaultAssignment = node.parent.kind === 208 /* ArrayLiteralExpression */ && isDestructuringAssignmentTarget(node.parent) || node.parent.kind === 302 /* PropertyAssignment */ && isDestructuringAssignmentTarget(node.parent.parent); + const isDestructuringDefaultAssignment = node.parent.kind === 209 /* ArrayLiteralExpression */ && isDestructuringAssignmentTarget(node.parent) || node.parent.kind === 303 /* PropertyAssignment */ && isDestructuringAssignmentTarget(node.parent.parent); return isDestructuringDefaultAssignment ? getTypeWithDefault(getAssignedType(node), node.right) : getTypeOfExpression(node.right); } function isDestructuringAssignmentTarget(parent) { - return parent.parent.kind === 225 /* BinaryExpression */ && parent.parent.left === parent || parent.parent.kind === 249 /* ForOfStatement */ && parent.parent.initializer === parent; + return parent.parent.kind === 226 /* BinaryExpression */ && parent.parent.left === parent || parent.parent.kind === 250 /* ForOfStatement */ && parent.parent.initializer === parent; } function getAssignedTypeOfArrayLiteralElement(node, element) { return getTypeOfDestructuredArrayElement(getAssignedType(node), node.elements.indexOf(element)); @@ -64162,21 +64619,21 @@ function createTypeChecker(host) { function getAssignedType(node) { const { parent } = node; switch (parent.kind) { - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return stringType; - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return checkRightHandSideOfForOf(parent) || errorType; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return getAssignedTypeOfBinaryExpression(parent); - case 219 /* DeleteExpression */: + case 220 /* DeleteExpression */: return undefinedType; - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return getAssignedTypeOfArrayLiteralElement(parent, node); - case 229 /* SpreadElement */: + case 230 /* SpreadElement */: return getAssignedTypeOfSpreadExpression(parent); - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return getAssignedTypeOfPropertyAssignment(parent); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return getAssignedTypeOfShorthandPropertyAssignment(parent); } return errorType; @@ -64184,7 +64641,7 @@ function createTypeChecker(host) { function getInitialTypeOfBindingElement(node) { const pattern = node.parent; const parentType = getInitialType(pattern.parent); - const type = pattern.kind === 205 /* ObjectBindingPattern */ ? getTypeOfDestructuredProperty(parentType, node.propertyName || node.name) : !node.dotDotDotToken ? getTypeOfDestructuredArrayElement(parentType, pattern.elements.indexOf(node)) : getTypeOfDestructuredSpreadExpression(parentType); + const type = pattern.kind === 206 /* ObjectBindingPattern */ ? getTypeOfDestructuredProperty(parentType, node.propertyName || node.name) : !node.dotDotDotToken ? getTypeOfDestructuredArrayElement(parentType, pattern.elements.indexOf(node)) : getTypeOfDestructuredSpreadExpression(parentType); return getTypeWithDefault(type, node.initializer); } function getTypeOfInitializer(node) { @@ -64195,25 +64652,25 @@ function createTypeChecker(host) { if (node.initializer) { return getTypeOfInitializer(node.initializer); } - if (node.parent.parent.kind === 248 /* ForInStatement */) { + if (node.parent.parent.kind === 249 /* ForInStatement */) { return stringType; } - if (node.parent.parent.kind === 249 /* ForOfStatement */) { + if (node.parent.parent.kind === 250 /* ForOfStatement */) { return checkRightHandSideOfForOf(node.parent.parent) || errorType; } return errorType; } function getInitialType(node) { - return node.kind === 259 /* VariableDeclaration */ ? getInitialTypeOfVariableDeclaration(node) : getInitialTypeOfBindingElement(node); + return node.kind === 260 /* VariableDeclaration */ ? getInitialTypeOfVariableDeclaration(node) : getInitialTypeOfBindingElement(node); } function isEmptyArrayAssignment(node) { - return node.kind === 259 /* VariableDeclaration */ && node.initializer && isEmptyArrayLiteral2(node.initializer) || node.kind !== 207 /* BindingElement */ && node.parent.kind === 225 /* BinaryExpression */ && isEmptyArrayLiteral2(node.parent.right); + return node.kind === 260 /* VariableDeclaration */ && node.initializer && isEmptyArrayLiteral2(node.initializer) || node.kind !== 208 /* BindingElement */ && node.parent.kind === 226 /* BinaryExpression */ && isEmptyArrayLiteral2(node.parent.right); } function getReferenceCandidate(node) { switch (node.kind) { - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return getReferenceCandidate(node.expression); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: switch (node.operatorToken.kind) { case 64 /* EqualsToken */: case 76 /* BarBarEqualsToken */: @@ -64228,10 +64685,10 @@ function createTypeChecker(host) { } function getReferenceRoot(node) { const { parent } = node; - return parent.kind === 216 /* ParenthesizedExpression */ || parent.kind === 225 /* BinaryExpression */ && parent.operatorToken.kind === 64 /* EqualsToken */ && parent.left === node || parent.kind === 225 /* BinaryExpression */ && parent.operatorToken.kind === 28 /* CommaToken */ && parent.right === node ? getReferenceRoot(parent) : node; + return parent.kind === 217 /* ParenthesizedExpression */ || parent.kind === 226 /* BinaryExpression */ && parent.operatorToken.kind === 64 /* EqualsToken */ && parent.left === node || parent.kind === 226 /* BinaryExpression */ && parent.operatorToken.kind === 28 /* CommaToken */ && parent.right === node ? getReferenceRoot(parent) : node; } function getTypeOfSwitchClause(clause) { - if (clause.kind === 295 /* CaseClause */) { + if (clause.kind === 296 /* CaseClause */) { return getRegularTypeOfLiteralType(getTypeOfExpression(clause.expression)); } return neverType; @@ -64247,12 +64704,12 @@ function createTypeChecker(host) { return links.switchTypes; } function getSwitchClauseTypeOfWitnesses(switchStatement) { - if (some(switchStatement.caseBlock.clauses, (clause) => clause.kind === 295 /* CaseClause */ && !isStringLiteralLike(clause.expression))) { + if (some(switchStatement.caseBlock.clauses, (clause) => clause.kind === 296 /* CaseClause */ && !isStringLiteralLike(clause.expression))) { return void 0; } const witnesses = []; for (const clause of switchStatement.caseBlock.clauses) { - const text = clause.kind === 295 /* CaseClause */ ? clause.expression.text : void 0; + const text = clause.kind === 296 /* CaseClause */ ? clause.expression.text : void 0; witnesses.push(text && !contains(witnesses, text) ? text : void 0); } return witnesses; @@ -64410,8 +64867,8 @@ function createTypeChecker(host) { function isEvolvingArrayOperationTarget(node) { const root = getReferenceRoot(node); const parent = root.parent; - const isLengthPushOrUnshift = isPropertyAccessExpression(parent) && (parent.name.escapedText === "length" || parent.parent.kind === 212 /* CallExpression */ && isIdentifier(parent.name) && isPushOrUnshiftIdentifier(parent.name)); - const isElementAssignment = parent.kind === 211 /* ElementAccessExpression */ && parent.expression === root && parent.parent.kind === 225 /* BinaryExpression */ && parent.parent.operatorToken.kind === 64 /* EqualsToken */ && parent.parent.left === parent && !isAssignmentTarget(parent.parent) && isTypeAssignableToKind(getTypeOfExpression(parent.argumentExpression), 296 /* NumberLike */); + const isLengthPushOrUnshift = isPropertyAccessExpression(parent) && (parent.name.escapedText === "length" || parent.parent.kind === 213 /* CallExpression */ && isIdentifier(parent.name) && isPushOrUnshiftIdentifier(parent.name)); + const isElementAssignment = parent.kind === 212 /* ElementAccessExpression */ && parent.expression === root && parent.parent.kind === 226 /* BinaryExpression */ && parent.parent.operatorToken.kind === 64 /* EqualsToken */ && parent.parent.left === parent && !isAssignmentTarget(parent.parent) && isTypeAssignableToKind(getTypeOfExpression(parent.argumentExpression), 296 /* NumberLike */); return isLengthPushOrUnshift || isElementAssignment; } function isDeclarationWithExplicitTypeAnnotation(node) { @@ -64434,7 +64891,7 @@ function createTypeChecker(host) { if (isDeclarationWithExplicitTypeAnnotation(declaration)) { return getTypeOfSymbol(symbol); } - if (isVariableDeclaration(declaration) && declaration.parent.parent.kind === 249 /* ForOfStatement */) { + if (isVariableDeclaration(declaration) && declaration.parent.parent.kind === 250 /* ForOfStatement */) { const statement = declaration.parent.parent; const expressionType = getTypeOfDottedName( statement.expression, @@ -64459,7 +64916,7 @@ function createTypeChecker(host) { } } function getTypeOfDottedName(node, diagnostic) { - if (!(node.flags & 33554432 /* InWithStatement */)) { + if (!(node.flags & 67108864 /* InWithStatement */)) { switch (node.kind) { case 80 /* Identifier */: const symbol = getExportSymbolOfValueSymbolIfExported(getResolvedSymbol(node)); @@ -64468,7 +64925,7 @@ function createTypeChecker(host) { return getExplicitThisType(node); case 108 /* SuperKeyword */: return checkSuperExpression(node); - case 210 /* PropertyAccessExpression */: { + case 211 /* PropertyAccessExpression */: { const type = getTypeOfDottedName(node.expression, diagnostic); if (type) { const name = node.name; @@ -64485,7 +64942,7 @@ function createTypeChecker(host) { } return void 0; } - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return getTypeOfDottedName(node.expression, diagnostic); } } @@ -64495,7 +64952,7 @@ function createTypeChecker(host) { let signature = links.effectsSignature; if (signature === void 0) { let funcType; - if (node.parent.kind === 243 /* ExpressionStatement */) { + if (node.parent.kind === 244 /* ExpressionStatement */) { funcType = getTypeOfDottedName( node.expression, /*diagnostic*/ @@ -64549,7 +65006,7 @@ function createTypeChecker(host) { /*excludeJSDocTypeAssertions*/ true ); - return node.kind === 97 /* FalseKeyword */ || node.kind === 225 /* BinaryExpression */ && (node.operatorToken.kind === 56 /* AmpersandAmpersandToken */ && (isFalseExpression(node.left) || isFalseExpression(node.right)) || node.operatorToken.kind === 57 /* BarBarToken */ && isFalseExpression(node.left) && isFalseExpression(node.right)); + return node.kind === 97 /* FalseKeyword */ || node.kind === 226 /* BinaryExpression */ && (node.operatorToken.kind === 56 /* AmpersandAmpersandToken */ && (isFalseExpression(node.left) || isFalseExpression(node.right)) || node.operatorToken.kind === 57 /* BarBarToken */ && isFalseExpression(node.left) && isFalseExpression(node.right)); } function isReachableFlowNodeWorker(flow, noCacheCheck) { while (true) { @@ -64668,14 +65125,16 @@ function createTypeChecker(host) { } function isConstantReference(node) { switch (node.kind) { + case 110 /* ThisKeyword */: + return true; case 80 /* Identifier */: if (!isThisInTypeQuery(node)) { const symbol = getResolvedSymbol(node); - return isConstVariable(symbol) || isParameterOrCatchClauseVariable(symbol) && !isSymbolAssigned(symbol); + return isConstantVariable(symbol) || isParameterOrCatchClauseVariable(symbol) && !isSymbolAssigned(symbol); } break; - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return isConstantReference(node.expression) && isReadonlySymbol(getNodeLinks(node).resolvedSymbol || unknownSymbol); } return false; @@ -64695,7 +65154,7 @@ function createTypeChecker(host) { const evolvedType = getTypeFromFlowType(getTypeAtFlowNode(flowNode)); sharedFlowCount = sharedFlowStart; const resultType = getObjectFlags(evolvedType) & 256 /* EvolvingArray */ && isEvolvingArrayOperationTarget(reference) ? autoArrayType : finalizeEvolvingArrayType(evolvedType); - if (resultType === unreachableNeverType || reference.parent && reference.parent.kind === 234 /* NonNullExpression */ && !(resultType.flags & 131072 /* Never */) && getTypeWithFacts(resultType, 2097152 /* NEUndefinedOrNull */).flags & 131072 /* Never */) { + if (resultType === unreachableNeverType || reference.parent && reference.parent.kind === 235 /* NonNullExpression */ && !(resultType.flags & 131072 /* Never */) && getTypeWithFacts(resultType, 2097152 /* NEUndefinedOrNull */).flags & 131072 /* Never */) { return declaredType; } return resultType === nonNullUnknownType ? unknownType : resultType; @@ -64764,7 +65223,7 @@ function createTypeChecker(host) { target.antecedents = saveAntecedents; } else if (flags & 2 /* Start */) { const container = flow.node; - if (container && container !== flowContainer && reference.kind !== 210 /* PropertyAccessExpression */ && reference.kind !== 211 /* ElementAccessExpression */ && reference.kind !== 110 /* ThisKeyword */) { + if (container && container !== flowContainer && reference.kind !== 211 /* PropertyAccessExpression */ && reference.kind !== 212 /* ElementAccessExpression */ && !(reference.kind === 110 /* ThisKeyword */ && container.kind !== 219 /* ArrowFunction */)) { flow = container.flowNode; continue; } @@ -64783,7 +65242,7 @@ function createTypeChecker(host) { } function getInitialOrAssignedType(flow) { const node = flow.node; - return getNarrowableTypeForReference(node.kind === 259 /* VariableDeclaration */ || node.kind === 207 /* BindingElement */ ? getInitialType(node) : getAssignedType(node), reference); + return getNarrowableTypeForReference(node.kind === 260 /* VariableDeclaration */ || node.kind === 208 /* BindingElement */ ? getInitialType(node) : getAssignedType(node), reference); } function getTypeAtFlowAssignment(flow) { const node = flow.node; @@ -64811,15 +65270,15 @@ function createTypeChecker(host) { if (!isReachableFlowNode(flow)) { return unreachableNeverType; } - if (isVariableDeclaration(node) && (isInJSFile(node) || isVarConst(node))) { + if (isVariableDeclaration(node) && (isInJSFile(node) || isVarConstLike(node))) { const init = getDeclaredExpandoInitializer(node); - if (init && (init.kind === 217 /* FunctionExpression */ || init.kind === 218 /* ArrowFunction */)) { + if (init && (init.kind === 218 /* FunctionExpression */ || init.kind === 219 /* ArrowFunction */)) { return getTypeAtFlowNode(flow.antecedent); } } return declaredType; } - if (isVariableDeclaration(node) && node.parent.parent.kind === 248 /* ForInStatement */ && (isMatchingReference(reference, node.parent.parent.expression) || optionalChainContainsReference(node.parent.parent.expression, reference))) { + if (isVariableDeclaration(node) && node.parent.parent.kind === 249 /* ForInStatement */ && (isMatchingReference(reference, node.parent.parent.expression) || optionalChainContainsReference(node.parent.parent.expression, reference))) { return getNonNullableTypeIfNeeded(finalizeEvolvingArrayType(getTypeFromFlowType(getTypeAtFlowNode(flow.antecedent)))); } return void 0; @@ -64833,7 +65292,7 @@ function createTypeChecker(host) { if (node.kind === 97 /* FalseKeyword */) { return unreachableNeverType; } - if (node.kind === 225 /* BinaryExpression */) { + if (node.kind === 226 /* BinaryExpression */) { if (node.operatorToken.kind === 56 /* AmpersandAmpersandToken */) { return narrowTypeByAssertion(narrowTypeByAssertion(type, node.left), node.right); } @@ -64873,13 +65332,13 @@ function createTypeChecker(host) { function getTypeAtFlowArrayMutation(flow) { if (declaredType === autoType || declaredType === autoArrayType) { const node = flow.node; - const expr = node.kind === 212 /* CallExpression */ ? node.expression.expression : node.left.expression; + const expr = node.kind === 213 /* CallExpression */ ? node.expression.expression : node.left.expression; if (isMatchingReference(reference, getReferenceCandidate(expr))) { const flowType = getTypeAtFlowNode(flow.antecedent); const type = getTypeFromFlowType(flowType); if (getObjectFlags(type) & 256 /* EvolvingArray */) { let evolvedType2 = type; - if (node.kind === 212 /* CallExpression */) { + if (node.kind === 213 /* CallExpression */) { for (const arg of node.arguments) { evolvedType2 = addEvolvingArrayElementType(evolvedType2, arg); } @@ -64916,7 +65375,7 @@ function createTypeChecker(host) { let type = getTypeFromFlowType(flowType); if (isMatchingReference(reference, expr)) { type = narrowTypeBySwitchOnDiscriminant(type, flow.switchStatement, flow.clauseStart, flow.clauseEnd); - } else if (expr.kind === 220 /* TypeOfExpression */ && isMatchingReference(reference, expr.expression)) { + } else if (expr.kind === 221 /* TypeOfExpression */ && isMatchingReference(reference, expr.expression)) { type = narrowTypeBySwitchOnTypeOf(type, flow.switchStatement, flow.clauseStart, flow.clauseEnd); } else { if (strictNullChecks) { @@ -64928,7 +65387,7 @@ function createTypeChecker(host) { flow.clauseEnd, (t) => !(t.flags & (32768 /* Undefined */ | 131072 /* Never */)) ); - } else if (expr.kind === 220 /* TypeOfExpression */ && optionalChainContainsReference(expr.expression, reference)) { + } else if (expr.kind === 221 /* TypeOfExpression */ && optionalChainContainsReference(expr.expression, reference)) { type = narrowTypeBySwitchOptionalChainContainment( type, flow.switchStatement, @@ -65073,7 +65532,7 @@ function createTypeChecker(host) { } } else if (isIdentifier(expr)) { const symbol = getResolvedSymbol(expr); - if (isConstVariable(symbol)) { + if (isConstantVariable(symbol)) { const declaration = symbol.valueDeclaration; if (isVariableDeclaration(declaration) && !declaration.type && declaration.initializer && isAccessExpression(declaration.initializer) && isMatchingReference(reference, declaration.initializer.expression)) { return declaration.initializer; @@ -65191,10 +65650,10 @@ function createTypeChecker(host) { const operator = expr.operatorToken.kind; const left = getReferenceCandidate(expr.left); const right = getReferenceCandidate(expr.right); - if (left.kind === 220 /* TypeOfExpression */ && isStringLiteralLike(right)) { + if (left.kind === 221 /* TypeOfExpression */ && isStringLiteralLike(right)) { return narrowTypeByTypeof(type, left, operator, right, assumeTrue); } - if (right.kind === 220 /* TypeOfExpression */ && isStringLiteralLike(left)) { + if (right.kind === 221 /* TypeOfExpression */ && isStringLiteralLike(left)) { return narrowTypeByTypeof(type, right, operator, left, assumeTrue); } if (isMatchingReference(reference, left)) { @@ -65232,12 +65691,15 @@ function createTypeChecker(host) { return narrowTypeByPrivateIdentifierInInExpression(type, expr, assumeTrue); } const target = getReferenceCandidate(expr.right); - const leftType = getTypeOfExpression(expr.left); - if (leftType.flags & 8576 /* StringOrNumberLiteralOrUnique */) { - if (containsMissingType(type) && isAccessExpression(reference) && isMatchingReference(reference.expression, target) && getAccessedPropertyName(reference) === getPropertyNameFromType(leftType)) { + if (containsMissingType(type) && isAccessExpression(reference) && isMatchingReference(reference.expression, target)) { + const leftType = getTypeOfExpression(expr.left); + if (isTypeUsableAsPropertyName(leftType) && getAccessedPropertyName(reference) === getPropertyNameFromType(leftType)) { return getTypeWithFacts(type, assumeTrue ? 524288 /* NEUndefined */ : 65536 /* EQUndefined */); } - if (isMatchingReference(reference, target)) { + } + if (isMatchingReference(reference, target)) { + const leftType = getTypeOfExpression(expr.left); + if (isTypeUsableAsPropertyName(leftType)) { return narrowTypeByInKeyword(type, leftType, assumeTrue); } } @@ -65453,7 +65915,7 @@ function createTypeChecker(host) { if (!witnesses) { return type; } - const defaultIndex = findIndex(switchStatement.caseBlock.clauses, (clause) => clause.kind === 296 /* DefaultClause */); + const defaultIndex = findIndex(switchStatement.caseBlock.clauses, (clause) => clause.kind === 297 /* DefaultClause */); const hasDefaultClause = clauseStart === clauseEnd || defaultIndex >= clauseStart && defaultIndex < clauseEnd; if (hasDefaultClause) { const notEqualFacts = getNotEqualFactsFromTypeofSwitch(clauseStart, clauseEnd, witnesses); @@ -65617,7 +66079,7 @@ function createTypeChecker(host) { case 80 /* Identifier */: if (!isMatchingReference(reference, expr) && inlineLevel < 5) { const symbol = getResolvedSymbol(expr); - if (isConstVariable(symbol)) { + if (isConstantVariable(symbol)) { const declaration = symbol.valueDeclaration; if (declaration && isVariableDeclaration(declaration) && !declaration.type && declaration.initializer && isConstantReference(reference)) { inlineLevel++; @@ -65629,17 +66091,17 @@ function createTypeChecker(host) { } case 110 /* ThisKeyword */: case 108 /* SuperKeyword */: - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return narrowTypeByTruthiness(type, expr, assumeTrue); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return narrowTypeByCallExpression(type, expr, assumeTrue); - case 216 /* ParenthesizedExpression */: - case 234 /* NonNullExpression */: + case 217 /* ParenthesizedExpression */: + case 235 /* NonNullExpression */: return narrowType(type, expr.expression, assumeTrue); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return narrowTypeByBinaryExpression(type, expr, assumeTrue); - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: if (expr.operator === 54 /* ExclamationToken */) { return narrowType(type, expr.operand, !assumeTrue); } @@ -65665,7 +66127,7 @@ function createTypeChecker(host) { location = location.parent; } if (isExpressionNode(location) && (!isAssignmentTarget(location) || isWriteAccess(location))) { - const type = getTypeOfExpression(location); + const type = removeOptionalTypeMarker(getTypeOfExpression(location)); if (getExportSymbolOfValueSymbolIfExported(getNodeLinks(location).resolvedSymbol) === symbol) { return type; } @@ -65677,7 +66139,7 @@ function createTypeChecker(host) { return getNonMissingTypeOfSymbol(symbol); } function getControlFlowContainer(node) { - return findAncestor(node.parent, (node2) => isFunctionLike(node2) && !getImmediatelyInvokedFunctionExpression(node2) || node2.kind === 267 /* ModuleBlock */ || node2.kind === 311 /* SourceFile */ || node2.kind === 171 /* PropertyDeclaration */); + return findAncestor(node.parent, (node2) => isFunctionLike(node2) && !getImmediatelyInvokedFunctionExpression(node2) || node2.kind === 268 /* ModuleBlock */ || node2.kind === 312 /* SourceFile */ || node2.kind === 172 /* PropertyDeclaration */); } function isSymbolAssigned(symbol) { if (!symbol.valueDeclaration) { @@ -65685,8 +66147,8 @@ function createTypeChecker(host) { } const parent = getRootDeclaration(symbol.valueDeclaration).parent; const links = getNodeLinks(parent); - if (!(links.flags & 524288 /* AssignmentsMarked */)) { - links.flags |= 524288 /* AssignmentsMarked */; + if (!(links.flags & 131072 /* AssignmentsMarked */)) { + links.flags |= 131072 /* AssignmentsMarked */; if (!hasParentWithAssignmentsMarked(parent)) { markNodeAssignments(parent); } @@ -65694,7 +66156,7 @@ function createTypeChecker(host) { return symbol.isAssigned || false; } function hasParentWithAssignmentsMarked(node) { - return !!findAncestor(node.parent, (node2) => (isFunctionLike(node2) || isCatchClause(node2)) && !!(getNodeLinks(node2).flags & 524288 /* AssignmentsMarked */)); + return !!findAncestor(node.parent, (node2) => (isFunctionLike(node2) || isCatchClause(node2)) && !!(getNodeLinks(node2).flags & 131072 /* AssignmentsMarked */)); } function markNodeAssignments(node) { if (node.kind === 80 /* Identifier */) { @@ -65708,8 +66170,8 @@ function createTypeChecker(host) { forEachChild(node, markNodeAssignments); } } - function isConstVariable(symbol) { - return symbol.flags & 3 /* Variable */ && (getDeclarationNodeFlagsFromSymbol(symbol) & 2 /* Const */) !== 0; + function isConstantVariable(symbol) { + return symbol.flags & 3 /* Variable */ && (getDeclarationNodeFlagsFromSymbol(symbol) & 6 /* Constant */) !== 0; } function parameterInitializerContainsUndefined(declaration) { const links = getNodeLinks(declaration); @@ -65728,12 +66190,12 @@ function createTypeChecker(host) { return links.parameterInitializerContainsUndefined; } function removeOptionalityFromDeclaredType(declaredType, declaration) { - const removeUndefined = strictNullChecks && declaration.kind === 168 /* Parameter */ && declaration.initializer && getTypeFacts(declaredType) & 16777216 /* IsUndefined */ && !parameterInitializerContainsUndefined(declaration); + const removeUndefined = strictNullChecks && declaration.kind === 169 /* Parameter */ && declaration.initializer && getTypeFacts(declaredType) & 16777216 /* IsUndefined */ && !parameterInitializerContainsUndefined(declaration); return removeUndefined ? getTypeWithFacts(declaredType, 524288 /* NEUndefined */) : declaredType; } function isConstraintPosition(type, node) { const parent = node.parent; - return parent.kind === 210 /* PropertyAccessExpression */ || parent.kind === 165 /* QualifiedName */ || parent.kind === 212 /* CallExpression */ && parent.expression === node || parent.kind === 211 /* ElementAccessExpression */ && parent.expression === node && !(someType(type, isGenericTypeWithoutNullableConstraint) && isGenericIndexType(getTypeOfExpression(parent.argumentExpression))); + return parent.kind === 211 /* PropertyAccessExpression */ || parent.kind === 166 /* QualifiedName */ || parent.kind === 213 /* CallExpression */ && parent.expression === node || parent.kind === 212 /* ElementAccessExpression */ && parent.expression === node && !(someType(type, isGenericTypeWithoutNullableConstraint) && isGenericIndexType(getTypeOfExpression(parent.argumentExpression))); } function isGenericTypeWithUnionConstraint(type) { return type.flags & 2097152 /* Intersection */ ? some(type.types, isGenericTypeWithUnionConstraint) : !!(type.flags & 465829888 /* Instantiable */ && getBaseConstraintOrType(type).flags & (98304 /* Nullable */ | 1048576 /* Union */)); @@ -65776,9 +66238,13 @@ function createTypeChecker(host) { symbol, /*excludes*/ 111551 /* Value */ - ) && !isInTypeQuery(location) && !getTypeOnlyAliasDeclaration(symbol, 111551 /* Value */)) { + ) && !isInTypeQuery(location)) { const target = resolveAlias(symbol); - if (getAllSymbolFlags(target) & (111551 /* Value */ | 1048576 /* ExportValue */)) { + if (getSymbolFlags( + symbol, + /*excludeTypeOnlyMeanings*/ + true + ) & (111551 /* Value */ | 1048576 /* ExportValue */)) { if (getIsolatedModules(compilerOptions) || shouldPreserveConstEnums(compilerOptions) && isExportOrExportExpression(location) || !isConstEnumOrConstEnumOnlyModule(getExportSymbolOfValueSymbolIfExported(target))) { markAliasSymbolAsReferenced(symbol); } else { @@ -65794,14 +66260,14 @@ function createTypeChecker(host) { if (declaration) { if (isBindingElement(declaration) && !declaration.initializer && !declaration.dotDotDotToken && declaration.parent.elements.length >= 2) { const parent = declaration.parent.parent; - if (parent.kind === 259 /* VariableDeclaration */ && getCombinedNodeFlags(declaration) & 2 /* Const */ || parent.kind === 168 /* Parameter */) { + if (parent.kind === 260 /* VariableDeclaration */ && getCombinedNodeFlagsCached(declaration) & 6 /* Constant */ || parent.kind === 169 /* Parameter */) { const links = getNodeLinks(parent); - if (!(links.flags & 16777216 /* InCheckIdentifier */)) { - links.flags |= 16777216 /* InCheckIdentifier */; + if (!(links.flags & 4194304 /* InCheckIdentifier */)) { + links.flags |= 4194304 /* InCheckIdentifier */; const parentType = getTypeForBindingElementParent(parent, 0 /* Normal */); const parentTypeConstraint = parentType && mapType(parentType, getBaseConstraintOrType); - links.flags &= ~16777216 /* InCheckIdentifier */; - if (parentTypeConstraint && parentTypeConstraint.flags & 1048576 /* Union */ && !(parent.kind === 168 /* Parameter */ && isSymbolAssigned(symbol))) { + links.flags &= ~4194304 /* InCheckIdentifier */; + if (parentTypeConstraint && parentTypeConstraint.flags & 1048576 /* Union */ && !(parent.kind === 169 /* Parameter */ && isSymbolAssigned(symbol))) { const pattern = declaration.parent; const narrowedType = getFlowTypeOfReference( pattern, @@ -65858,7 +66324,7 @@ function createTypeChecker(host) { } const container = getContainingFunction(node); if (languageVersion < 2 /* ES2015 */) { - if (container.kind === 218 /* ArrowFunction */) { + if (container.kind === 219 /* ArrowFunction */) { error(node, Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression); } else if (hasSyntacticModifier(container, 512 /* Async */)) { error(node, Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method); @@ -65877,17 +66343,7 @@ function createTypeChecker(host) { } let declaration = localOrExportSymbol.valueDeclaration; if (declaration && localOrExportSymbol.flags & 32 /* Class */) { - if (declaration.kind === 262 /* ClassDeclaration */ && nodeIsDecorated(legacyDecorators, declaration)) { - let container = getContainingClass(node); - while (container !== void 0) { - if (container === declaration && container.name !== node) { - getNodeLinks(declaration).flags |= 1048576 /* ClassWithConstructorReference */; - getNodeLinks(node).flags |= 2097152 /* ConstructorReferenceInClass */; - break; - } - container = getContainingClass(container); - } - } else if (declaration.kind === 230 /* ClassExpression */) { + if (isClassLike(declaration) && declaration.name !== node) { let container = getThisContainer( node, /*includeArrowFunctions*/ @@ -65895,14 +66351,7 @@ function createTypeChecker(host) { /*includeClassComputedPropertyName*/ false ); - while (container.kind !== 311 /* SourceFile */) { - if (container.parent === declaration) { - if (isPropertyDeclaration(container) && isStatic(container) || isClassStaticBlockDeclaration(container)) { - getNodeLinks(declaration).flags |= 1048576 /* ClassWithConstructorReference */; - getNodeLinks(node).flags |= 2097152 /* ConstructorReferenceInClass */; - } - break; - } + while (container.kind !== 312 /* SourceFile */ && container.parent !== declaration) { container = getThisContainer( container, /*includeArrowFunctions*/ @@ -65911,6 +66360,11 @@ function createTypeChecker(host) { false ); } + if (container.kind !== 312 /* SourceFile */) { + getNodeLinks(declaration).flags |= 262144 /* ContainsConstructorReference */; + getNodeLinks(container).flags |= 262144 /* ContainsConstructorReference */; + getNodeLinks(node).flags |= 536870912 /* ConstructorReference */; + } } } checkNestedBlockScopedBinding(node, symbol); @@ -65945,18 +66399,18 @@ function createTypeChecker(host) { return type; } type = getNarrowableTypeForReference(type, node, checkMode); - const isParameter2 = getRootDeclaration(declaration).kind === 168 /* Parameter */; + const isParameter2 = getRootDeclaration(declaration).kind === 169 /* Parameter */; const declarationContainer = getControlFlowContainer(declaration); let flowContainer = getControlFlowContainer(node); const isOuterVariable = flowContainer !== declarationContainer; const isSpreadDestructuringAssignmentTarget = node.parent && node.parent.parent && isSpreadAssignment(node.parent) && isDestructuringAssignmentTarget(node.parent.parent); const isModuleExports = symbol.flags & 134217728 /* ModuleExports */; const typeIsAutomatic = type === autoType || type === autoArrayType; - const isAutomaticTypeInNonNull = typeIsAutomatic && node.parent.kind === 234 /* NonNullExpression */; - while (flowContainer !== declarationContainer && (flowContainer.kind === 217 /* FunctionExpression */ || flowContainer.kind === 218 /* ArrowFunction */ || isObjectLiteralOrClassExpressionMethodOrAccessor(flowContainer)) && (isConstVariable(localOrExportSymbol) && type !== autoArrayType || isParameter2 && !isSymbolAssigned(localOrExportSymbol))) { + const isAutomaticTypeInNonNull = typeIsAutomatic && node.parent.kind === 235 /* NonNullExpression */; + while (flowContainer !== declarationContainer && (flowContainer.kind === 218 /* FunctionExpression */ || flowContainer.kind === 219 /* ArrowFunction */ || isObjectLiteralOrClassExpressionMethodOrAccessor(flowContainer)) && (isConstantVariable(localOrExportSymbol) && type !== autoArrayType || isParameter2 && !isSymbolAssigned(localOrExportSymbol))) { flowContainer = getControlFlowContainer(flowContainer); } - const assumeInitialized = isParameter2 || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || isSameScopedBindingElement(node, declaration) || type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (3 /* AnyOrUnknown */ | 16384 /* Void */)) !== 0 || isInTypeQuery(node) || isInAmbientOrTypeNode(node) || node.parent.kind === 280 /* ExportSpecifier */) || node.parent.kind === 234 /* NonNullExpression */ || declaration.kind === 259 /* VariableDeclaration */ && declaration.exclamationToken || declaration.flags & 16777216 /* Ambient */; + const assumeInitialized = isParameter2 || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || isSameScopedBindingElement(node, declaration) || type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (3 /* AnyOrUnknown */ | 16384 /* Void */)) !== 0 || isInTypeQuery(node) || isInAmbientOrTypeNode(node) || node.parent.kind === 281 /* ExportSpecifier */) || node.parent.kind === 235 /* NonNullExpression */ || declaration.kind === 260 /* VariableDeclaration */ && declaration.exclamationToken || declaration.flags & 33554432 /* Ambient */; const initialType = isAutomaticTypeInNonNull ? undefinedType : assumeInitialized ? isParameter2 ? removeOptionalityFromDeclaredType(type, declaration) : type : typeIsAutomatic ? undefinedType : getOptionalType(type); const flowType = isAutomaticTypeInNonNull ? getNonNullableType(getFlowTypeOfReference(node, type, initialType, flowContainer)) : getFlowTypeOfReference(node, type, initialType, flowContainer); if (!isEvolvingArrayOperationTarget(node) && (type === autoType || type === autoArrayType)) { @@ -66010,7 +66464,7 @@ function createTypeChecker(host) { )); } function checkNestedBlockScopedBinding(node, symbol) { - if (languageVersion >= 2 /* ES2015 */ || (symbol.flags & (2 /* BlockScopedVariable */ | 32 /* Class */)) === 0 || !symbol.valueDeclaration || isSourceFile(symbol.valueDeclaration) || symbol.valueDeclaration.parent.kind === 298 /* CatchClause */) { + if (languageVersion >= 2 /* ES2015 */ || (symbol.flags & (2 /* BlockScopedVariable */ | 32 /* Class */)) === 0 || !symbol.valueDeclaration || isSourceFile(symbol.valueDeclaration) || symbol.valueDeclaration.parent.kind === 299 /* CatchClause */) { return; } const container = getEnclosingBlockScopeContainer(symbol.valueDeclaration); @@ -66020,7 +66474,7 @@ function createTypeChecker(host) { if (isCaptured) { let capturesBlockScopeBindingInLoopBody = true; if (isForStatement(container)) { - const varDeclList = getAncestor(symbol.valueDeclaration, 260 /* VariableDeclarationList */); + const varDeclList = getAncestor(symbol.valueDeclaration, 261 /* VariableDeclarationList */); if (varDeclList && varDeclList.parent === container) { const part = getPartOfForStatementContainingNode(node.parent, container); if (part) { @@ -66039,9 +66493,9 @@ function createTypeChecker(host) { } } if (isForStatement(container)) { - const varDeclList = getAncestor(symbol.valueDeclaration, 260 /* VariableDeclarationList */); + const varDeclList = getAncestor(symbol.valueDeclaration, 261 /* VariableDeclarationList */); if (varDeclList && varDeclList.parent === container && isAssignedInBodyOfForStatement(node, container)) { - getNodeLinks(symbol.valueDeclaration).flags |= 262144 /* NeedsLoopOutParameter */; + getNodeLinks(symbol.valueDeclaration).flags |= 65536 /* NeedsLoopOutParameter */; } } getNodeLinks(symbol.valueDeclaration).flags |= 32768 /* BlockScopedBindingInLoop */; @@ -66056,13 +66510,13 @@ function createTypeChecker(host) { } function isAssignedInBodyOfForStatement(node, container) { let current = node; - while (current.parent.kind === 216 /* ParenthesizedExpression */) { + while (current.parent.kind === 217 /* ParenthesizedExpression */) { current = current.parent; } let isAssigned = false; if (isAssignmentTarget(current)) { isAssigned = true; - } else if (current.parent.kind === 223 /* PrefixUnaryExpression */ || current.parent.kind === 224 /* PostfixUnaryExpression */) { + } else if (current.parent.kind === 224 /* PrefixUnaryExpression */ || current.parent.kind === 225 /* PostfixUnaryExpression */) { const expr = current.parent; isAssigned = expr.operator === 46 /* PlusPlusToken */ || expr.operator === 47 /* MinusMinusToken */; } @@ -66073,7 +66527,7 @@ function createTypeChecker(host) { } function captureLexicalThis(node, container) { getNodeLinks(node).flags |= 2 /* LexicalThis */; - if (container.kind === 171 /* PropertyDeclaration */ || container.kind === 175 /* Constructor */) { + if (container.kind === 172 /* PropertyDeclaration */ || container.kind === 176 /* Constructor */) { const classNode = container.parent; getNodeLinks(classNode).flags |= 4 /* CaptureThis */; } else { @@ -66118,11 +66572,11 @@ function createTypeChecker(host) { ); let capturedByArrowFunction = false; let thisInComputedPropertyName = false; - if (container.kind === 175 /* Constructor */) { + if (container.kind === 176 /* Constructor */) { checkThisBeforeSuper(node, container, Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class); } while (true) { - if (container.kind === 218 /* ArrowFunction */) { + if (container.kind === 219 /* ArrowFunction */) { container = getThisContainer( container, /*includeArrowFunctions*/ @@ -66131,7 +66585,7 @@ function createTypeChecker(host) { ); capturedByArrowFunction = true; } - if (container.kind === 166 /* ComputedPropertyName */) { + if (container.kind === 167 /* ComputedPropertyName */) { container = getThisContainer( container, !capturedByArrowFunction, @@ -66148,13 +66602,13 @@ function createTypeChecker(host) { error(node, Diagnostics.this_cannot_be_referenced_in_a_computed_property_name); } else { switch (container.kind) { - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: error(node, Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body); break; - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: error(node, Diagnostics.this_cannot_be_referenced_in_current_location); break; - case 175 /* Constructor */: + case 176 /* Constructor */: if (isInConstructorArgumentInitializer(node, container)) { error(node, Diagnostics.this_cannot_be_referenced_in_constructor_arguments); } @@ -66248,36 +66702,33 @@ function createTypeChecker(host) { } } function getClassNameFromPrototypeMethod(container) { - if (container.kind === 217 /* FunctionExpression */ && isBinaryExpression(container.parent) && getAssignmentDeclarationKind(container.parent) === 3 /* PrototypeProperty */) { + if (container.kind === 218 /* FunctionExpression */ && isBinaryExpression(container.parent) && getAssignmentDeclarationKind(container.parent) === 3 /* PrototypeProperty */) { return container.parent.left.expression.expression; - } else if (container.kind === 173 /* MethodDeclaration */ && container.parent.kind === 209 /* ObjectLiteralExpression */ && isBinaryExpression(container.parent.parent) && getAssignmentDeclarationKind(container.parent.parent) === 6 /* Prototype */) { + } else if (container.kind === 174 /* MethodDeclaration */ && container.parent.kind === 210 /* ObjectLiteralExpression */ && isBinaryExpression(container.parent.parent) && getAssignmentDeclarationKind(container.parent.parent) === 6 /* Prototype */) { return container.parent.parent.left.expression; - } else if (container.kind === 217 /* FunctionExpression */ && container.parent.kind === 302 /* PropertyAssignment */ && container.parent.parent.kind === 209 /* ObjectLiteralExpression */ && isBinaryExpression(container.parent.parent.parent) && getAssignmentDeclarationKind(container.parent.parent.parent) === 6 /* Prototype */) { + } else if (container.kind === 218 /* FunctionExpression */ && container.parent.kind === 303 /* PropertyAssignment */ && container.parent.parent.kind === 210 /* ObjectLiteralExpression */ && isBinaryExpression(container.parent.parent.parent) && getAssignmentDeclarationKind(container.parent.parent.parent) === 6 /* Prototype */) { return container.parent.parent.parent.left.expression; - } else if (container.kind === 217 /* FunctionExpression */ && isPropertyAssignment(container.parent) && isIdentifier(container.parent.name) && (container.parent.name.escapedText === "value" || container.parent.name.escapedText === "get" || container.parent.name.escapedText === "set") && isObjectLiteralExpression(container.parent.parent) && isCallExpression(container.parent.parent.parent) && container.parent.parent.parent.arguments[2] === container.parent.parent && getAssignmentDeclarationKind(container.parent.parent.parent) === 9 /* ObjectDefinePrototypeProperty */) { + } else if (container.kind === 218 /* FunctionExpression */ && isPropertyAssignment(container.parent) && isIdentifier(container.parent.name) && (container.parent.name.escapedText === "value" || container.parent.name.escapedText === "get" || container.parent.name.escapedText === "set") && isObjectLiteralExpression(container.parent.parent) && isCallExpression(container.parent.parent.parent) && container.parent.parent.parent.arguments[2] === container.parent.parent && getAssignmentDeclarationKind(container.parent.parent.parent) === 9 /* ObjectDefinePrototypeProperty */) { return container.parent.parent.parent.arguments[0].expression; } else if (isMethodDeclaration(container) && isIdentifier(container.name) && (container.name.escapedText === "value" || container.name.escapedText === "get" || container.name.escapedText === "set") && isObjectLiteralExpression(container.parent) && isCallExpression(container.parent.parent) && container.parent.parent.arguments[2] === container.parent && getAssignmentDeclarationKind(container.parent.parent) === 9 /* ObjectDefinePrototypeProperty */) { return container.parent.parent.arguments[0].expression; } } function getTypeForThisExpressionFromJSDoc(node) { - const jsdocType = getJSDocType(node); - if (jsdocType && jsdocType.kind === 323 /* JSDocFunctionType */) { - const jsDocFunctionType = jsdocType; - if (jsDocFunctionType.parameters.length > 0 && jsDocFunctionType.parameters[0].name && jsDocFunctionType.parameters[0].name.escapedText === "this" /* This */) { - return getTypeFromTypeNode(jsDocFunctionType.parameters[0].type); - } - } const thisTag = getJSDocThisTag(node); if (thisTag && thisTag.typeExpression) { return getTypeFromTypeNode(thisTag.typeExpression); } + const signature = getSignatureOfTypeTag(node); + if (signature) { + return getThisTypeOfSignature(signature); + } } function isInConstructorArgumentInitializer(node, constructorDecl) { - return !!findAncestor(node, (n) => isFunctionLikeDeclaration(n) ? "quit" : n.kind === 168 /* Parameter */ && n.parent === constructorDecl); + return !!findAncestor(node, (n) => isFunctionLikeDeclaration(n) ? "quit" : n.kind === 169 /* Parameter */ && n.parent === constructorDecl); } function checkSuperExpression(node) { - const isCallExpression2 = node.parent.kind === 212 /* CallExpression */ && node.parent.expression === node; + const isCallExpression2 = node.parent.kind === 213 /* CallExpression */ && node.parent.expression === node; const immediateContainer = getSuperContainer( node, /*stopOnFunctions*/ @@ -66287,7 +66738,7 @@ function createTypeChecker(host) { let needToCaptureLexicalThis = false; let inAsyncFunction = false; if (!isCallExpression2) { - while (container && container.kind === 218 /* ArrowFunction */) { + while (container && container.kind === 219 /* ArrowFunction */) { if (hasSyntacticModifier(container, 512 /* Async */)) inAsyncFunction = true; container = getSuperContainer( @@ -66302,19 +66753,19 @@ function createTypeChecker(host) { } let nodeCheckFlag = 0; if (!container || !isLegalUsageOfSuperExpression(container)) { - const current = findAncestor(node, (n) => n === container ? "quit" : n.kind === 166 /* ComputedPropertyName */); - if (current && current.kind === 166 /* ComputedPropertyName */) { + const current = findAncestor(node, (n) => n === container ? "quit" : n.kind === 167 /* ComputedPropertyName */); + if (current && current.kind === 167 /* ComputedPropertyName */) { error(node, Diagnostics.super_cannot_be_referenced_in_a_computed_property_name); } else if (isCallExpression2) { error(node, Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors); - } else if (!container || !container.parent || !(isClassLike(container.parent) || container.parent.kind === 209 /* ObjectLiteralExpression */)) { + } else if (!container || !container.parent || !(isClassLike(container.parent) || container.parent.kind === 210 /* ObjectLiteralExpression */)) { error(node, Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions); } else { error(node, Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class); } return errorType; } - if (!isCallExpression2 && immediateContainer.kind === 175 /* Constructor */) { + if (!isCallExpression2 && immediateContainer.kind === 176 /* Constructor */) { checkThisBeforeSuper(node, container, Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class); } if (isStatic(container) || isCallExpression2) { @@ -66322,7 +66773,7 @@ function createTypeChecker(host) { if (!isCallExpression2 && languageVersion >= 2 /* ES2015 */ && languageVersion <= 8 /* ES2021 */ && (isPropertyDeclaration(container) || isClassStaticBlockDeclaration(container))) { forEachEnclosingBlockScopeContainer(node.parent, (current) => { if (!isSourceFile(current) || isExternalOrCommonJsModule(current)) { - getNodeLinks(current).flags |= 8388608 /* ContainsSuperPropertyInStaticInitializer */; + getNodeLinks(current).flags |= 2097152 /* ContainsSuperPropertyInStaticInitializer */; } }); } @@ -66330,7 +66781,7 @@ function createTypeChecker(host) { nodeCheckFlag = 16 /* SuperInstance */; } getNodeLinks(node).flags |= nodeCheckFlag; - if (container.kind === 173 /* MethodDeclaration */ && inAsyncFunction) { + if (container.kind === 174 /* MethodDeclaration */ && inAsyncFunction) { if (isSuperProperty(node.parent) && isAssignmentTarget(node.parent)) { getNodeLinks(container).flags |= 256 /* MethodWithSuperPropertyAssignmentInAsync */; } else { @@ -66340,7 +66791,7 @@ function createTypeChecker(host) { if (needToCaptureLexicalThis) { captureLexicalThis(node.parent, container); } - if (container.parent.kind === 209 /* ObjectLiteralExpression */) { + if (container.parent.kind === 210 /* ObjectLiteralExpression */) { if (languageVersion < 2 /* ES2015 */) { error(node, Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher); return errorType; @@ -66358,20 +66809,20 @@ function createTypeChecker(host) { if (!baseClassType) { return errorType; } - if (container.kind === 175 /* Constructor */ && isInConstructorArgumentInitializer(node, container)) { + if (container.kind === 176 /* Constructor */ && isInConstructorArgumentInitializer(node, container)) { error(node, Diagnostics.super_cannot_be_referenced_in_constructor_arguments); return errorType; } return nodeCheckFlag === 32 /* SuperStatic */ ? getBaseConstructorTypeOfClass(classType) : getTypeWithThisArgument(baseClassType, classType.thisType); function isLegalUsageOfSuperExpression(container2) { if (isCallExpression2) { - return container2.kind === 175 /* Constructor */; + return container2.kind === 176 /* Constructor */; } else { - if (isClassLike(container2.parent) || container2.parent.kind === 209 /* ObjectLiteralExpression */) { + if (isClassLike(container2.parent) || container2.parent.kind === 210 /* ObjectLiteralExpression */) { if (isStatic(container2)) { - return container2.kind === 173 /* MethodDeclaration */ || container2.kind === 172 /* MethodSignature */ || container2.kind === 176 /* GetAccessor */ || container2.kind === 177 /* SetAccessor */ || container2.kind === 171 /* PropertyDeclaration */ || container2.kind === 174 /* ClassStaticBlockDeclaration */; + return container2.kind === 174 /* MethodDeclaration */ || container2.kind === 173 /* MethodSignature */ || container2.kind === 177 /* GetAccessor */ || container2.kind === 178 /* SetAccessor */ || container2.kind === 172 /* PropertyDeclaration */ || container2.kind === 175 /* ClassStaticBlockDeclaration */; } else { - return container2.kind === 173 /* MethodDeclaration */ || container2.kind === 172 /* MethodSignature */ || container2.kind === 176 /* GetAccessor */ || container2.kind === 177 /* SetAccessor */ || container2.kind === 171 /* PropertyDeclaration */ || container2.kind === 170 /* PropertySignature */ || container2.kind === 175 /* Constructor */; + return container2.kind === 174 /* MethodDeclaration */ || container2.kind === 173 /* MethodSignature */ || container2.kind === 177 /* GetAccessor */ || container2.kind === 178 /* SetAccessor */ || container2.kind === 172 /* PropertyDeclaration */ || container2.kind === 171 /* PropertySignature */ || container2.kind === 176 /* Constructor */; } } } @@ -66379,7 +66830,7 @@ function createTypeChecker(host) { } } function getContainingObjectLiteral(func) { - return (func.kind === 173 /* MethodDeclaration */ || func.kind === 176 /* GetAccessor */ || func.kind === 177 /* SetAccessor */) && func.parent.kind === 209 /* ObjectLiteralExpression */ ? func.parent : func.kind === 217 /* FunctionExpression */ && func.parent.kind === 302 /* PropertyAssignment */ ? func.parent.parent : void 0; + return (func.kind === 174 /* MethodDeclaration */ || func.kind === 177 /* GetAccessor */ || func.kind === 178 /* SetAccessor */) && func.parent.kind === 210 /* ObjectLiteralExpression */ ? func.parent : func.kind === 218 /* FunctionExpression */ && func.parent.kind === 303 /* PropertyAssignment */ ? func.parent.parent : void 0; } function getThisTypeArgument(type) { return getObjectFlags(type) & 4 /* Reference */ && type.target === globalThisType ? getTypeArguments(type)[0] : void 0; @@ -66389,8 +66840,27 @@ function createTypeChecker(host) { return t.flags & 2097152 /* Intersection */ ? forEach(t.types, getThisTypeArgument) : getThisTypeArgument(t); }); } + function getThisTypeOfObjectLiteralFromContextualType(containingLiteral, contextualType) { + let literal = containingLiteral; + let type = contextualType; + while (type) { + const thisType = getThisTypeFromContextualType(type); + if (thisType) { + return thisType; + } + if (literal.parent.kind !== 303 /* PropertyAssignment */) { + break; + } + literal = literal.parent.parent; + type = getApparentTypeOfContextualType( + literal, + /*contextFlags*/ + void 0 + ); + } + } function getContextualThisParameterType(func) { - if (func.kind === 218 /* ArrowFunction */) { + if (func.kind === 219 /* ArrowFunction */) { return void 0; } if (isContextSensitiveFunctionOrObjectLiteralMethod(func)) { @@ -66411,27 +66881,14 @@ function createTypeChecker(host) { /*contextFlags*/ void 0 ); - let literal = containingLiteral; - let type = contextualType; - while (type) { - const thisType = getThisTypeFromContextualType(type); - if (thisType) { - return instantiateType(thisType, getMapperFromContext(getInferenceContext(containingLiteral))); - } - if (literal.parent.kind !== 302 /* PropertyAssignment */) { - break; - } - literal = literal.parent.parent; - type = getApparentTypeOfContextualType( - literal, - /*contextFlags*/ - void 0 - ); + const thisType = getThisTypeOfObjectLiteralFromContextualType(containingLiteral, contextualType); + if (thisType) { + return instantiateType(thisType, getMapperFromContext(getInferenceContext(containingLiteral))); } return getWidenedType(contextualType ? getNonNullableType(contextualType) : checkExpressionCached(containingLiteral)); } const parent = walkUpParenthesizedExpressions(func.parent); - if (parent.kind === 225 /* BinaryExpression */ && parent.operatorToken.kind === 64 /* EqualsToken */) { + if (parent.kind === 226 /* BinaryExpression */ && parent.operatorToken.kind === 64 /* EqualsToken */) { const target = parent.left; if (isAccessExpression(target)) { const { expression } = target; @@ -66486,11 +66943,11 @@ function createTypeChecker(host) { return getTypeFromTypeNode(typeNode); } switch (declaration.kind) { - case 168 /* Parameter */: + case 169 /* Parameter */: return getContextuallyTypedParameterType(declaration); - case 207 /* BindingElement */: + case 208 /* BindingElement */: return getContextualTypeForBindingElement(declaration, contextFlags); - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: if (isStatic(declaration)) { return getContextualTypeForStaticPropertyDeclaration(declaration, contextFlags); } @@ -66499,10 +66956,10 @@ function createTypeChecker(host) { function getContextualTypeForBindingElement(declaration, contextFlags) { const parent = declaration.parent.parent; const name = declaration.propertyName || declaration.name; - const parentType = getContextualTypeForVariableLikeDeclaration(parent, contextFlags) || parent.kind !== 207 /* BindingElement */ && parent.initializer && checkDeclarationInitializer(parent, declaration.dotDotDotToken ? 64 /* RestBindingElement */ : 0 /* Normal */); + const parentType = getContextualTypeForVariableLikeDeclaration(parent, contextFlags) || parent.kind !== 208 /* BindingElement */ && parent.initializer && checkDeclarationInitializer(parent, declaration.dotDotDotToken ? 64 /* RestBindingElement */ : 0 /* Normal */); if (!parentType || isBindingPattern(name) || isComputedNonLiteralName(name)) return void 0; - if (parent.name.kind === 206 /* ArrayBindingPattern */) { + if (parent.name.kind === 207 /* ArrayBindingPattern */) { const index = indexOfNode(declaration.parent.elements, declaration); if (index < 0) return void 0; @@ -66652,7 +67109,7 @@ function createTypeChecker(host) { return signature ? getOrCreateTypeFromSignature(signature) : void 0; } function getContextualTypeForSubstitutionExpression(template, substitutionExpression) { - if (template.parent.kind === 214 /* TaggedTemplateExpression */) { + if (template.parent.kind === 215 /* TaggedTemplateExpression */) { return getContextualTypeForArgument(template.parent, substitutionExpression); } return void 0; @@ -66870,7 +67327,7 @@ function createTypeChecker(host) { } function getContextualTypeForObjectLiteralMethod(node, contextFlags) { Debug.assert(isObjectLiteralMethod(node)); - if (node.flags & 33554432 /* InWithStatement */) { + if (node.flags & 67108864 /* InWithStatement */) { return void 0; } return getContextualTypeForObjectLiteralElement(node, contextFlags); @@ -67006,16 +67463,17 @@ function createTypeChecker(host) { case 9 /* NumericLiteral */: case 10 /* BigIntLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: + case 228 /* TemplateExpression */: case 112 /* TrueKeyword */: case 97 /* FalseKeyword */: case 106 /* NullKeyword */: case 80 /* Identifier */: case 157 /* UndefinedKeyword */: return true; - case 210 /* PropertyAccessExpression */: - case 216 /* ParenthesizedExpression */: + case 211 /* PropertyAccessExpression */: + case 217 /* ParenthesizedExpression */: return isPossiblyDiscriminantValue(node.expression); - case 293 /* JsxExpression */: + case 294 /* JsxExpression */: return !node.expression || isPossiblyDiscriminantValue(node.expression); } return false; @@ -67025,7 +67483,7 @@ function createTypeChecker(host) { contextualType, concatenate( map( - filter(node.properties, (p) => !!p.symbol && p.kind === 302 /* PropertyAssignment */ && isPossiblyDiscriminantValue(p.initializer) && isDiscriminantProperty(contextualType, p.symbol.escapedName)), + filter(node.properties, (p) => !!p.symbol && p.kind === 303 /* PropertyAssignment */ && isPossiblyDiscriminantValue(p.initializer) && isDiscriminantProperty(contextualType, p.symbol.escapedName)), (prop) => [() => getContextFreeTypeOfExpression(prop.initializer), prop.symbol.escapedName] ), map( @@ -67045,7 +67503,7 @@ function createTypeChecker(host) { contextualType, concatenate( map( - filter(node.properties, (p) => !!p.symbol && p.kind === 290 /* JsxAttribute */ && isDiscriminantProperty(contextualType, p.symbol.escapedName) && (!p.initializer || isPossiblyDiscriminantValue(p.initializer))), + filter(node.properties, (p) => !!p.symbol && p.kind === 291 /* JsxAttribute */ && isDiscriminantProperty(contextualType, p.symbol.escapedName) && (!p.initializer || isPossiblyDiscriminantValue(p.initializer))), (prop) => [!prop.initializer ? () => trueType : () => getContextFreeTypeOfExpression(prop.initializer), prop.symbol.escapedName] ), map( @@ -67110,7 +67568,7 @@ function createTypeChecker(host) { } function getContextualType(node, contextFlags) { var _a; - if (node.flags & 33554432 /* InWithStatement */) { + if (node.flags & 67108864 /* InWithStatement */) { return void 0; } const index = findContextualNode( @@ -67123,47 +67581,47 @@ function createTypeChecker(host) { } const { parent } = node; switch (parent.kind) { - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 207 /* BindingElement */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 208 /* BindingElement */: return getContextualTypeForInitializerExpression(node, contextFlags); - case 218 /* ArrowFunction */: - case 252 /* ReturnStatement */: + case 219 /* ArrowFunction */: + case 253 /* ReturnStatement */: return getContextualTypeForReturnExpression(node, contextFlags); - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: return getContextualTypeForYieldOperand(parent, contextFlags); - case 222 /* AwaitExpression */: + case 223 /* AwaitExpression */: return getContextualTypeForAwaitOperand(parent, contextFlags); - case 212 /* CallExpression */: - case 213 /* NewExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: return getContextualTypeForArgument(parent, node); - case 169 /* Decorator */: + case 170 /* Decorator */: return getContextualTypeForDecorator(parent); - case 215 /* TypeAssertionExpression */: - case 233 /* AsExpression */: + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: return isConstTypeReference(parent.type) ? getContextualType(parent, contextFlags) : getTypeFromTypeNode(parent.type); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return getContextualTypeForBinaryOperand(node, contextFlags); - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return getContextualTypeForObjectLiteralElement(parent, contextFlags); - case 304 /* SpreadAssignment */: + case 305 /* SpreadAssignment */: return getContextualType(parent.parent, contextFlags); - case 208 /* ArrayLiteralExpression */: { + case 209 /* ArrayLiteralExpression */: { const arrayLiteral = parent; const type = getApparentTypeOfContextualType(arrayLiteral, contextFlags); const elementIndex = indexOfNode(arrayLiteral.elements, node); const spreadIndices = (_a = getNodeLinks(arrayLiteral)).spreadIndices ?? (_a.spreadIndices = getSpreadIndices(arrayLiteral.elements)); return getContextualTypeForElementExpression(type, elementIndex, arrayLiteral.elements.length, spreadIndices.first, spreadIndices.last); } - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: return getContextualTypeForConditionalOperand(node, contextFlags); - case 238 /* TemplateSpan */: - Debug.assert(parent.parent.kind === 227 /* TemplateExpression */); + case 239 /* TemplateSpan */: + Debug.assert(parent.parent.kind === 228 /* TemplateExpression */); return getContextualTypeForSubstitutionExpression(parent.parent, node); - case 216 /* ParenthesizedExpression */: { + case 217 /* ParenthesizedExpression */: { if (isInJSFile(parent)) { if (isJSDocSatisfiesExpression(parent)) { return getTypeFromTypeNode(getJSDocSatisfiesExpressionType(parent)); @@ -67175,19 +67633,19 @@ function createTypeChecker(host) { } return getContextualType(parent, contextFlags); } - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: return getContextualType(parent, contextFlags); - case 237 /* SatisfiesExpression */: + case 238 /* SatisfiesExpression */: return getTypeFromTypeNode(parent.type); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return tryGetTypeFromEffectiveTypeNode(parent); - case 293 /* JsxExpression */: + case 294 /* JsxExpression */: return getContextualTypeForJsxExpression(parent, contextFlags); - case 290 /* JsxAttribute */: - case 292 /* JsxSpreadAttribute */: + case 291 /* JsxAttribute */: + case 293 /* JsxSpreadAttribute */: return getContextualTypeForJsxAttribute(parent, contextFlags); - case 285 /* JsxOpeningElement */: - case 284 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: return getContextualJsxElementAttributesType(parent, contextFlags); } return void 0; @@ -67416,7 +67874,7 @@ function createTypeChecker(host) { /*resolvedTypePredicate*/ void 0, minArgCount, - (left.flags | right.flags) & 39 /* PropagatingFlags */ + (left.flags | right.flags) & 167 /* PropagatingFlags */ ); result.compositeKind = 2097152 /* Intersection */; result.compositeSignatures = concatenate(left.compositeKind === 2097152 /* Intersection */ && left.compositeSignatures || [left], [right]); @@ -67447,7 +67905,7 @@ function createTypeChecker(host) { return isFunctionExpressionOrArrowFunction(node) || isObjectLiteralMethod(node) ? getContextualSignature(node) : void 0; } function getContextualSignature(node) { - Debug.assert(node.kind !== 173 /* MethodDeclaration */ || isObjectLiteralMethod(node)); + Debug.assert(node.kind !== 174 /* MethodDeclaration */ || isObjectLiteralMethod(node)); const typeTagSignature = getSignatureOfTypeTag(node); if (typeTagSignature) { return typeTagSignature; @@ -67498,7 +67956,11 @@ function createTypeChecker(host) { return node.isSpread ? getIndexedAccessType(node.type, numberType) : node.type; } function hasDefaultValue(node) { - return node.kind === 207 /* BindingElement */ && !!node.initializer || node.kind === 225 /* BinaryExpression */ && node.operatorToken.kind === 64 /* EqualsToken */; + return node.kind === 208 /* BindingElement */ && !!node.initializer || node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 64 /* EqualsToken */; + } + function isSpreadIntoCallOrNew(node) { + const parent = walkUpParenthesizedExpressions(node.parent); + return isSpreadElement(parent) && isCallOrNewExpression(parent.parent); } function checkArrayLiteral(node, checkMode, forceTuple) { const elements = node.elements; @@ -67507,18 +67969,17 @@ function createTypeChecker(host) { const elementFlags = []; pushCachedContextualType(node); const inDestructuringPattern = isAssignmentTarget(node); - const isSpreadIntoCallOrNew = isSpreadElement(node.parent) && isCallOrNewExpression(node.parent.parent); - const inConstContext = isSpreadIntoCallOrNew || isConstContext(node); + const inConstContext = isConstContext(node); const contextualType = getApparentTypeOfContextualType( node, /*contextFlags*/ void 0 ); - const inTupleContext = isSpreadIntoCallOrNew || !!contextualType && someType(contextualType, isTupleLikeType); + const inTupleContext = isSpreadIntoCallOrNew(node) || !!contextualType && someType(contextualType, isTupleLikeType); let hasOmittedExpression = false; for (let i = 0; i < elementCount; i++) { const e = elements[i]; - if (e.kind === 229 /* SpreadElement */) { + if (e.kind === 230 /* SpreadElement */) { if (languageVersion < 2 /* ES2015 */) { checkExternalEmitHelpers(e, compilerOptions.downlevelIteration ? 1536 /* SpreadIncludes */ : 1024 /* SpreadArray */); } @@ -67542,7 +68003,7 @@ function createTypeChecker(host) { elementTypes.push(checkIteratedTypeOrElementType(33 /* Spread */, spreadType, undefinedType, e.expression)); elementFlags.push(4 /* Rest */); } - } else if (exactOptionalPropertyTypes && e.kind === 231 /* OmittedExpression */) { + } else if (exactOptionalPropertyTypes && e.kind === 232 /* OmittedExpression */) { hasOmittedExpression = true; elementTypes.push(undefinedOrMissingType); elementFlags.push(2 /* Optional */); @@ -67589,7 +68050,7 @@ function createTypeChecker(host) { } function isNumericName(name) { switch (name.kind) { - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: return isNumericComputedName(name); case 80 /* Identifier */: return isNumericLiteralName(name.escapedText); @@ -67606,7 +68067,7 @@ function createTypeChecker(host) { function checkComputedPropertyName(node) { const links = getNodeLinks(node.expression); if (!links.resolvedType) { - if ((isTypeLiteralNode(node.parent.parent) || isClassLike(node.parent.parent) || isInterfaceDeclaration(node.parent.parent)) && isBinaryExpression(node.expression) && node.expression.operatorToken.kind === 103 /* InKeyword */ && node.parent.kind !== 176 /* GetAccessor */ && node.parent.kind !== 177 /* SetAccessor */) { + if ((isTypeLiteralNode(node.parent.parent) || isClassLike(node.parent.parent) || isInterfaceDeclaration(node.parent.parent)) && isBinaryExpression(node.expression) && node.expression.operatorToken.kind === 103 /* InKeyword */ && node.parent.kind !== 177 /* GetAccessor */ && node.parent.kind !== 178 /* SetAccessor */) { return links.resolvedType = errorType; } links.resolvedType = checkExpression(node.expression); @@ -67675,7 +68136,7 @@ function createTypeChecker(host) { /*contextFlags*/ void 0 ); - const contextualTypeHasPattern = contextualType && contextualType.pattern && (contextualType.pattern.kind === 205 /* ObjectBindingPattern */ || contextualType.pattern.kind === 209 /* ObjectLiteralExpression */); + const contextualTypeHasPattern = contextualType && contextualType.pattern && (contextualType.pattern.kind === 206 /* ObjectBindingPattern */ || contextualType.pattern.kind === 210 /* ObjectLiteralExpression */); const inConstContext = isConstContext(node); const checkFlags = inConstContext ? 8 /* Readonly */ : 0; const isInJavascript = isInJSFile(node) && !isInJsonFile(node); @@ -67694,13 +68155,13 @@ function createTypeChecker(host) { let offset = 0; for (const memberDecl of node.properties) { let member = getSymbolOfDeclaration(memberDecl); - const computedNameType = memberDecl.name && memberDecl.name.kind === 166 /* ComputedPropertyName */ ? checkComputedPropertyName(memberDecl.name) : void 0; - if (memberDecl.kind === 302 /* PropertyAssignment */ || memberDecl.kind === 303 /* ShorthandPropertyAssignment */ || isObjectLiteralMethod(memberDecl)) { - let type = memberDecl.kind === 302 /* PropertyAssignment */ ? checkPropertyAssignment(memberDecl, checkMode) : ( + const computedNameType = memberDecl.name && memberDecl.name.kind === 167 /* ComputedPropertyName */ ? checkComputedPropertyName(memberDecl.name) : void 0; + if (memberDecl.kind === 303 /* PropertyAssignment */ || memberDecl.kind === 304 /* ShorthandPropertyAssignment */ || isObjectLiteralMethod(memberDecl)) { + let type = memberDecl.kind === 303 /* PropertyAssignment */ ? checkPropertyAssignment(memberDecl, checkMode) : ( // avoid resolving the left side of the ShorthandPropertyAssignment outside of the destructuring // for error recovery purposes. For example, if a user wrote `{ a = 100 }` instead of `{ a: 100 }`. // we don't want to say "could not find 'a'". - memberDecl.kind === 303 /* ShorthandPropertyAssignment */ ? checkExpressionForMutableLocation(!inDestructuringPattern && memberDecl.objectAssignmentInitializer ? memberDecl.objectAssignmentInitializer : memberDecl.name, checkMode) : checkObjectLiteralMethod(memberDecl, checkMode) + memberDecl.kind === 304 /* ShorthandPropertyAssignment */ ? checkExpressionForMutableLocation(!inDestructuringPattern && memberDecl.objectAssignmentInitializer ? memberDecl.objectAssignmentInitializer : memberDecl.name, checkMode) : checkObjectLiteralMethod(memberDecl, checkMode) ); if (isInJavascript) { const jsDocType = getTypeForDeclarationFromJSDocComment(memberDecl); @@ -67718,7 +68179,7 @@ function createTypeChecker(host) { prop.links.nameType = nameType; } if (inDestructuringPattern) { - const isOptional = memberDecl.kind === 302 /* PropertyAssignment */ && hasDefaultValue(memberDecl.initializer) || memberDecl.kind === 303 /* ShorthandPropertyAssignment */ && memberDecl.objectAssignmentInitializer; + const isOptional = memberDecl.kind === 303 /* PropertyAssignment */ && hasDefaultValue(memberDecl.initializer) || memberDecl.kind === 304 /* ShorthandPropertyAssignment */ && memberDecl.objectAssignmentInitializer; if (isOptional) { prop.flags |= 16777216 /* Optional */; } @@ -67744,13 +68205,13 @@ function createTypeChecker(host) { prop.links.target = member; member = prop; allPropertiesTable == null ? void 0 : allPropertiesTable.set(prop.escapedName, prop); - if (contextualType && checkMode & 2 /* Inferential */ && !(checkMode & 4 /* SkipContextSensitive */) && (memberDecl.kind === 302 /* PropertyAssignment */ || memberDecl.kind === 173 /* MethodDeclaration */) && isContextSensitive(memberDecl)) { + if (contextualType && checkMode & 2 /* Inferential */ && !(checkMode & 4 /* SkipContextSensitive */) && (memberDecl.kind === 303 /* PropertyAssignment */ || memberDecl.kind === 174 /* MethodDeclaration */) && isContextSensitive(memberDecl)) { const inferenceContext = getInferenceContext(node); Debug.assert(inferenceContext); - const inferenceNode = memberDecl.kind === 302 /* PropertyAssignment */ ? memberDecl.initializer : memberDecl; + const inferenceNode = memberDecl.kind === 303 /* PropertyAssignment */ ? memberDecl.initializer : memberDecl; addIntraExpressionInferenceSite(inferenceContext, inferenceNode, type); } - } else if (memberDecl.kind === 304 /* SpreadAssignment */) { + } else if (memberDecl.kind === 305 /* SpreadAssignment */) { if (languageVersion < 2 /* ES2015 */) { checkExternalEmitHelpers(memberDecl, 2 /* Assign */); } @@ -67779,7 +68240,7 @@ function createTypeChecker(host) { } continue; } else { - Debug.assert(memberDecl.kind === 176 /* GetAccessor */ || memberDecl.kind === 177 /* SetAccessor */); + Debug.assert(memberDecl.kind === 177 /* GetAccessor */ || memberDecl.kind === 178 /* SetAccessor */); checkNodeDeferred(memberDecl); } if (computedNameType && !(computedNameType.flags & 8576 /* StringOrNumberLiteralOrUnique */)) { @@ -67804,13 +68265,13 @@ function createTypeChecker(host) { if (contextualTypeHasPattern) { const rootPatternParent = findAncestor( contextualType.pattern.parent, - (n) => n.kind === 259 /* VariableDeclaration */ || n.kind === 225 /* BinaryExpression */ || n.kind === 168 /* Parameter */ + (n) => n.kind === 260 /* VariableDeclaration */ || n.kind === 226 /* BinaryExpression */ || n.kind === 169 /* Parameter */ ); const spreadOrOutsideRootObject = findAncestor( node, - (n) => n === rootPatternParent || n.kind === 304 /* SpreadAssignment */ + (n) => n === rootPatternParent || n.kind === 305 /* SpreadAssignment */ ); - if (spreadOrOutsideRootObject.kind !== 304 /* SpreadAssignment */) { + if (spreadOrOutsideRootObject.kind !== 305 /* SpreadAssignment */) { for (const prop of getPropertiesOfType(contextualType)) { if (!propertiesTable.get(prop.escapedName) && !getPropertyOfType(spread, prop.escapedName)) { if (!(prop.flags & 16777216 /* Optional */)) { @@ -67945,7 +68406,7 @@ function createTypeChecker(host) { addIntraExpressionInferenceSite(inferenceContext, inferenceNode, exprType); } } else { - Debug.assert(attributeDecl.kind === 292 /* JsxSpreadAttribute */); + Debug.assert(attributeDecl.kind === 293 /* JsxSpreadAttribute */); if (attributesTable.size > 0) { spread = getSpreadType( spread, @@ -67991,7 +68452,7 @@ function createTypeChecker(host) { ); } } - const parent = openingLikeElement.parent.kind === 283 /* JsxElement */ ? openingLikeElement.parent : void 0; + const parent = openingLikeElement.parent.kind === 284 /* JsxElement */ ? openingLikeElement.parent : void 0; if (parent && parent.openingElement === openingLikeElement && parent.children.length > 0) { const childrenTypes = checkJsxChildren(parent, checkMode); if (!hasSpreadAnyType && jsxChildrenPropertyName && jsxChildrenPropertyName !== "") { @@ -68050,7 +68511,7 @@ function createTypeChecker(host) { if (!child.containsOnlyTriviaWhiteSpaces) { childrenTypes.push(stringType); } - } else if (child.kind === 293 /* JsxExpression */ && !child.expression) { + } else if (child.kind === 294 /* JsxExpression */ && !child.expression) { continue; } else { childrenTypes.push(checkExpressionForMutableLocation(child, checkMode)); @@ -68435,7 +68896,7 @@ function createTypeChecker(host) { } } function getDeclarationNodeFlagsFromSymbol(s) { - return s.valueDeclaration ? getCombinedNodeFlags(s.valueDeclaration) : 0; + return s.valueDeclaration ? getCombinedNodeFlagsCached(s.valueDeclaration) : 0; } function isPrototypeProperty(symbol) { if (symbol.flags & 8192 /* Method */ || getCheckFlags(symbol) & 4 /* SyntheticMethod */) { @@ -68447,7 +68908,7 @@ function createTypeChecker(host) { } } function checkPropertyAccessibility(node, isSuper, writing, type, prop, reportError = true) { - const errorNode = !reportError ? void 0 : node.kind === 165 /* QualifiedName */ ? node.right : node.kind === 204 /* ImportType */ ? node : node.kind === 207 /* BindingElement */ && node.propertyName ? node.propertyName : node.name; + const errorNode = !reportError ? void 0 : node.kind === 166 /* QualifiedName */ ? node.right : node.kind === 205 /* ImportType */ ? node : node.kind === 208 /* BindingElement */ && node.propertyName ? node.propertyName : node.name; return checkPropertyAccessibilityAtLocation(node, isSuper, writing, type, prop, errorNode); } function checkPropertyAccessibilityAtLocation(location, isSuper, writing, containingType, prop, errorNode) { @@ -68651,7 +69112,7 @@ function createTypeChecker(host) { return nonNullType; } function checkPropertyAccessExpression(node, checkMode, writeOnly) { - return node.flags & 32 /* OptionalChain */ ? checkPropertyAccessChain(node, checkMode) : checkPropertyAccessExpressionOrQualifiedName(node, node.expression, checkNonNullExpression(node.expression), node.name, checkMode, writeOnly); + return node.flags & 64 /* OptionalChain */ ? checkPropertyAccessChain(node, checkMode) : checkPropertyAccessExpressionOrQualifiedName(node, node.expression, checkNonNullExpression(node.expression), node.name, checkMode, writeOnly); } function checkPropertyAccessChain(node, checkMode) { const leftType = checkExpression(node.expression); @@ -68663,13 +69124,13 @@ function createTypeChecker(host) { return checkPropertyAccessExpressionOrQualifiedName(node, node.left, leftType, node.right, checkMode); } function isMethodAccessForCall(node) { - while (node.parent.kind === 216 /* ParenthesizedExpression */) { + while (node.parent.kind === 217 /* ParenthesizedExpression */) { node = node.parent; } return isCallOrNewExpression(node.parent) && node.parent.expression === node; } function lookupSymbolForPrivateIdentifierDeclaration(propName, location) { - for (let containingClass = getContainingClass(location); !!containingClass; containingClass = getContainingClass(containingClass)) { + for (let containingClass = getContainingClassExcludingClassDecorators(location); !!containingClass; containingClass = getContainingClass(containingClass)) { const { symbol } = containingClass; const name = getSymbolNameForPrivateIdentifier(symbol, propName); const prop = symbol.members && symbol.members.get(name) || symbol.exports && symbol.exports.get(name); @@ -68805,16 +69266,22 @@ function createTypeChecker(host) { if (lexicallyScopedSymbol) { return isErrorType(apparentType) ? errorType : apparentType; } - if (!getContainingClass(right)) { + if (getContainingClassExcludingClassDecorators(right) === void 0) { grammarErrorOnNode(right, Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies); return anyType; } } - prop = lexicallyScopedSymbol ? getPrivateIdentifierPropertyOfType(leftType, lexicallyScopedSymbol) : void 0; - if (!prop && checkPrivateIdentifierPropertyAccess(leftType, right, lexicallyScopedSymbol)) { - return errorType; + prop = lexicallyScopedSymbol && getPrivateIdentifierPropertyOfType(leftType, lexicallyScopedSymbol); + if (prop === void 0) { + if (checkPrivateIdentifierPropertyAccess(leftType, right, lexicallyScopedSymbol)) { + return errorType; + } + const containingClass = getContainingClassExcludingClassDecorators(right); + if (containingClass && isPlainJsFile(getSourceFileOfNode(containingClass), compilerOptions.checkJs)) { + grammarErrorOnNode(right, Diagnostics.Private_field_0_must_be_declared_in_an_enclosing_class, idText(right)); + } } else { - const isSetonlyAccessor = prop && prop.flags & 65536 /* SetAccessor */ && !(prop.flags & 32768 /* GetAccessor */); + const isSetonlyAccessor = prop.flags & 65536 /* SetAccessor */ && !(prop.flags & 32768 /* GetAccessor */); if (isSetonlyAccessor && assignmentKind !== 1 /* Definite */) { error(node, Diagnostics.Private_accessor_was_defined_without_a_getter); } @@ -68832,10 +69299,10 @@ function createTypeChecker(host) { /*skipObjectFunctionPropertyAugment*/ false, /*includeTypeOnlyMembers*/ - node.kind === 165 /* QualifiedName */ + node.kind === 166 /* QualifiedName */ ); } - if (isIdentifier(left) && parentSymbol && (getIsolatedModules(compilerOptions) || !(prop && (isConstEnumOrConstEnumOnlyModule(prop) || prop.flags & 8 /* EnumMember */ && node.parent.kind === 305 /* EnumMember */)) || shouldPreserveConstEnums(compilerOptions) && isExportOrExportExpression(node))) { + if (isIdentifier(left) && parentSymbol && (getIsolatedModules(compilerOptions) || !(prop && (isConstEnumOrConstEnumOnlyModule(prop) || prop.flags & 8 /* EnumMember */ && node.parent.kind === 306 /* EnumMember */)) || shouldPreserveConstEnums(compilerOptions) && isExportOrExportExpression(node))) { markAliasReferenced(parentSymbol, node); } let propType; @@ -68871,7 +69338,7 @@ function createTypeChecker(host) { if (compilerOptions.noPropertyAccessFromIndexSignature && isPropertyAccessExpression(node)) { error(right, Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0, unescapeLeadingUnderscores(right.escapedText)); } - if (indexInfo.declaration && getCombinedNodeFlags(indexInfo.declaration) & 268435456 /* Deprecated */) { + if (indexInfo.declaration && isDeprecatedDeclaration(indexInfo.declaration)) { addDeprecatedSuggestion(right, [indexInfo.declaration], right.escapedText); } } else { @@ -68919,7 +69386,7 @@ function createTypeChecker(host) { if (declaration && isPropertyWithoutInitializer(declaration)) { if (!isStatic(declaration)) { const flowContainer = getControlFlowContainer(node); - if (flowContainer.kind === 175 /* Constructor */ && flowContainer.parent === declaration.parent && !(declaration.flags & 16777216 /* Ambient */)) { + if (flowContainer.kind === 176 /* Constructor */ && flowContainer.parent === declaration.parent && !(declaration.flags & 33554432 /* Ambient */)) { assumeUninitialized = true; } } @@ -68941,9 +69408,9 @@ function createTypeChecker(host) { } let diagnosticMessage; const declarationName = idText(right); - if (isInPropertyInitializerOrClassStaticBlock(node) && !isOptionalPropertyDeclaration(valueDeclaration) && !(isAccessExpression(node) && isAccessExpression(node.expression)) && !isBlockScopedNameDeclaredBeforeUse(valueDeclaration, right) && !(isMethodDeclaration(valueDeclaration) && getCombinedModifierFlags(valueDeclaration) & 32 /* Static */) && (compilerOptions.useDefineForClassFields || !isPropertyDeclaredInAncestorClass(prop))) { + if (isInPropertyInitializerOrClassStaticBlock(node) && !isOptionalPropertyDeclaration(valueDeclaration) && !(isAccessExpression(node) && isAccessExpression(node.expression)) && !isBlockScopedNameDeclaredBeforeUse(valueDeclaration, right) && !(isMethodDeclaration(valueDeclaration) && getCombinedModifierFlagsCached(valueDeclaration) & 32 /* Static */) && (useDefineForClassFields || !isPropertyDeclaredInAncestorClass(prop))) { diagnosticMessage = error(right, Diagnostics.Property_0_is_used_before_its_initialization, declarationName); - } else if (valueDeclaration.kind === 262 /* ClassDeclaration */ && node.parent.kind !== 182 /* TypeReference */ && !(valueDeclaration.flags & 16777216 /* Ambient */) && !isBlockScopedNameDeclaredBeforeUse(valueDeclaration, right)) { + } else if (valueDeclaration.kind === 263 /* ClassDeclaration */ && node.parent.kind !== 183 /* TypeReference */ && !(valueDeclaration.flags & 33554432 /* Ambient */) && !isBlockScopedNameDeclaredBeforeUse(valueDeclaration, right)) { diagnosticMessage = error(right, Diagnostics.Class_0_used_before_its_declaration, declarationName); } if (diagnosticMessage) { @@ -68956,25 +69423,25 @@ function createTypeChecker(host) { function isInPropertyInitializerOrClassStaticBlock(node) { return !!findAncestor(node, (node2) => { switch (node2.kind) { - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return true; - case 302 /* PropertyAssignment */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 304 /* SpreadAssignment */: - case 166 /* ComputedPropertyName */: - case 238 /* TemplateSpan */: - case 293 /* JsxExpression */: - case 290 /* JsxAttribute */: - case 291 /* JsxAttributes */: - case 292 /* JsxSpreadAttribute */: - case 285 /* JsxOpeningElement */: - case 232 /* ExpressionWithTypeArguments */: - case 297 /* HeritageClause */: + case 303 /* PropertyAssignment */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 305 /* SpreadAssignment */: + case 167 /* ComputedPropertyName */: + case 239 /* TemplateSpan */: + case 294 /* JsxExpression */: + case 291 /* JsxAttribute */: + case 292 /* JsxAttributes */: + case 293 /* JsxSpreadAttribute */: + case 286 /* JsxOpeningElement */: + case 233 /* ExpressionWithTypeArguments */: + case 298 /* HeritageClause */: return false; - case 218 /* ArrowFunction */: - case 243 /* ExpressionStatement */: + case 219 /* ArrowFunction */: + case 244 /* ExpressionStatement */: return isBlock(node2.parent) && isClassStaticBlockDeclaration(node2.parent.parent) ? true : "quit"; default: return isExpressionNode(node2) ? false : "quit"; @@ -69219,9 +69686,9 @@ function createTypeChecker(host) { } function isValidPropertyAccess(node, propertyName) { switch (node.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return isValidPropertyAccessWithType(node, node.expression.kind === 108 /* SuperKeyword */, propertyName, getWidenedType(checkExpression(node.expression))); - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: return isValidPropertyAccessWithType( node, /*isSuper*/ @@ -69229,7 +69696,7 @@ function createTypeChecker(host) { propertyName, getWidenedType(checkExpression(node.left)) ); - case 204 /* ImportType */: + case 205 /* ImportType */: return isValidPropertyAccessWithType( node, /*isSuper*/ @@ -69242,7 +69709,7 @@ function createTypeChecker(host) { function isValidPropertyAccessForCompletions(node, type, property) { return isPropertyAccessible( node, - node.kind === 210 /* PropertyAccessExpression */ && node.expression.kind === 108 /* SuperKeyword */, + node.kind === 211 /* PropertyAccessExpression */ && node.expression.kind === 108 /* SuperKeyword */, /*isWrite*/ false, type, @@ -69275,7 +69742,7 @@ function createTypeChecker(host) { } function getForInVariableSymbol(node) { const initializer = node.initializer; - if (initializer.kind === 260 /* VariableDeclarationList */) { + if (initializer.kind === 261 /* VariableDeclarationList */) { const variable = initializer.declarations[0]; if (variable && !isBindingPattern(variable.name)) { return getSymbolOfDeclaration(variable); @@ -69296,7 +69763,7 @@ function createTypeChecker(host) { let child = expr; let node = expr.parent; while (node) { - if (node.kind === 248 /* ForInStatement */ && child === node.statement && getForInVariableSymbol(node) === symbol && hasNumericPropertyNames(getTypeOfExpression(node.expression))) { + if (node.kind === 249 /* ForInStatement */ && child === node.statement && getForInVariableSymbol(node) === symbol && hasNumericPropertyNames(getTypeOfExpression(node.expression))) { return true; } child = node; @@ -69307,7 +69774,7 @@ function createTypeChecker(host) { return false; } function checkIndexedAccess(node, checkMode) { - return node.flags & 32 /* OptionalChain */ ? checkElementAccessChain(node, checkMode) : checkElementAccessExpression(node, checkNonNullExpression(node.expression), checkMode); + return node.flags & 64 /* OptionalChain */ ? checkElementAccessChain(node, checkMode) : checkElementAccessExpression(node, checkNonNullExpression(node.expression), checkMode); } function checkElementAccessChain(node, checkMode) { const exprType = checkExpression(node.expression); @@ -69337,11 +69804,11 @@ function createTypeChecker(host) { if (callLikeExpressionMayHaveTypeArguments(node)) { forEach(node.typeArguments, checkSourceElement); } - if (node.kind === 214 /* TaggedTemplateExpression */) { + if (node.kind === 215 /* TaggedTemplateExpression */) { checkExpression(node.template); } else if (isJsxOpeningLikeElement(node)) { checkExpression(node.attributes); - } else if (node.kind !== 169 /* Decorator */) { + } else if (node.kind !== 170 /* Decorator */) { forEach(node.arguments, (argument) => { checkExpression(argument); }); @@ -69386,7 +69853,7 @@ function createTypeChecker(host) { } } function isSpreadArgument(arg) { - return !!arg && (arg.kind === 229 /* SpreadElement */ || arg.kind === 236 /* SyntheticExpression */ && arg.isSpread); + return !!arg && (arg.kind === 230 /* SpreadElement */ || arg.kind === 237 /* SyntheticExpression */ && arg.isSpread); } function getSpreadArgumentIndex(args) { return findIndex(args, isSpreadArgument); @@ -69402,9 +69869,9 @@ function createTypeChecker(host) { let callIsIncomplete = false; let effectiveParameterCount = getParameterCount(signature); let effectiveMinimumArguments = getMinArgumentCount(signature); - if (node.kind === 214 /* TaggedTemplateExpression */) { + if (node.kind === 215 /* TaggedTemplateExpression */) { argCount = args.length; - if (node.template.kind === 227 /* TemplateExpression */) { + if (node.template.kind === 228 /* TemplateExpression */) { const lastSpan = last(node.template.templateSpans); callIsIncomplete = nodeIsMissing(lastSpan.literal) || !!lastSpan.literal.isUnterminated; } else { @@ -69412,7 +69879,7 @@ function createTypeChecker(host) { Debug.assert(templateLiteral.kind === 15 /* NoSubstitutionTemplateLiteral */); callIsIncomplete = !!templateLiteral.isUnterminated; } - } else if (node.kind === 169 /* Decorator */) { + } else if (node.kind === 170 /* Decorator */) { argCount = getDecoratorArgumentCount(node, signature); } else if (isJsxOpeningLikeElement(node)) { callIsIncomplete = node.attributes.end === node.end; @@ -69423,7 +69890,7 @@ function createTypeChecker(host) { effectiveParameterCount = args.length === 0 ? effectiveParameterCount : 1; effectiveMinimumArguments = Math.min(effectiveMinimumArguments, 1); } else if (!node.arguments) { - Debug.assert(node.kind === 213 /* NewExpression */); + Debug.assert(node.kind === 214 /* NewExpression */); return getMinArgumentCount(signature) === 0; } else { argCount = signatureHelpTrailingComma ? args.length + 1 : args.length; @@ -69519,7 +69986,7 @@ function createTypeChecker(host) { if (isJsxOpeningLikeElement(node)) { return inferJsxTypeArguments(node, signature, checkMode, context); } - if (node.kind !== 169 /* Decorator */) { + if (node.kind !== 170 /* Decorator */) { const skipBindingPatterns = every(signature.typeParameters, (p) => !!getDefaultFromTypeParameter(p)); const contextualType = getContextualType(node, skipBindingPatterns ? 8 /* SkipBindingPatterns */ : 0 /* None */); if (contextualType) { @@ -69556,7 +70023,7 @@ function createTypeChecker(host) { } for (let i = 0; i < argCount; i++) { const arg = args[i]; - if (arg.kind !== 231 /* OmittedExpression */ && !(checkMode & 32 /* IsForStringLiteralArgumentCompletions */ && hasSkipDirectInferenceFlag(arg))) { + if (arg.kind !== 232 /* OmittedExpression */) { const paramType = getTypeAtPosition(signature, i); if (couldContainTypeVariables(paramType)) { const argType = checkExpressionWithContextualType(arg, paramType, context, checkMode); @@ -69584,11 +70051,11 @@ function createTypeChecker(host) { if (index >= argCount - 1) { const arg = args[argCount - 1]; if (isSpreadArgument(arg)) { - const spreadType = arg.kind === 236 /* SyntheticExpression */ ? arg.type : checkExpressionWithContextualType(arg.expression, restType, context, checkMode); + const spreadType = arg.kind === 237 /* SyntheticExpression */ ? arg.type : checkExpressionWithContextualType(arg.expression, restType, context, checkMode); if (isArrayLikeType(spreadType)) { return getMutableArrayOrTupleType(spreadType); } - return createArrayType(checkIteratedTypeOrElementType(33 /* Spread */, spreadType, undefinedType, arg.kind === 229 /* SpreadElement */ ? arg.expression : arg), inConstContext); + return createArrayType(checkIteratedTypeOrElementType(33 /* Spread */, spreadType, undefinedType, arg.kind === 230 /* SpreadElement */ ? arg.expression : arg), inConstContext); } } const types = []; @@ -69597,12 +70064,12 @@ function createTypeChecker(host) { for (let i = index; i < argCount; i++) { const arg = args[i]; if (isSpreadArgument(arg)) { - const spreadType = arg.kind === 236 /* SyntheticExpression */ ? arg.type : checkExpression(arg.expression); + const spreadType = arg.kind === 237 /* SyntheticExpression */ ? arg.type : checkExpression(arg.expression); if (isArrayLikeType(spreadType)) { types.push(spreadType); flags.push(8 /* Variadic */); } else { - types.push(checkIteratedTypeOrElementType(33 /* Spread */, spreadType, undefinedType, arg.kind === 229 /* SpreadElement */ ? arg.expression : arg)); + types.push(checkIteratedTypeOrElementType(33 /* Spread */, spreadType, undefinedType, arg.kind === 230 /* SpreadElement */ ? arg.expression : arg)); flags.push(4 /* Rest */); } } else { @@ -69612,7 +70079,7 @@ function createTypeChecker(host) { types.push(hasPrimitiveContextualType ? getRegularTypeOfLiteralType(argType) : getWidenedLiteralType(argType)); flags.push(1 /* Required */); } - if (arg.kind === 236 /* SyntheticExpression */ && arg.tupleNameSource) { + if (arg.kind === 237 /* SyntheticExpression */ && arg.tupleNameSource) { names.push(arg.tupleNameSource); } } @@ -69672,8 +70139,9 @@ function createTypeChecker(host) { void 0, checkMode ); + const checkAttributesType = checkMode & 4 /* SkipContextSensitive */ ? getRegularTypeOfObjectLiteral(attributesType) : attributesType; return checkTagNameDoesNotExpectTooManyArguments() && checkTypeRelatedToAndOptionallyElaborate( - attributesType, + checkAttributesType, paramType, relation, reportErrors2 ? node.tagName : void 0, @@ -69789,7 +70257,7 @@ function createTypeChecker(host) { const argCount = restType ? Math.min(getParameterCount(signature) - 1, args.length) : args.length; for (let i = 0; i < argCount; i++) { const arg = args[i]; - if (arg.kind !== 231 /* OmittedExpression */) { + if (arg.kind !== 232 /* OmittedExpression */) { const paramType = getTypeAtPosition(signature, i); const argType = checkExpressionWithContextualType( arg, @@ -69847,7 +70315,7 @@ function createTypeChecker(host) { } } function getThisArgumentOfCall(node) { - const expression = node.kind === 212 /* CallExpression */ ? node.expression : node.kind === 214 /* TaggedTemplateExpression */ ? node.tag : void 0; + const expression = node.kind === 213 /* CallExpression */ ? node.expression : node.kind === 215 /* TaggedTemplateExpression */ ? node.tag : node.kind === 170 /* Decorator */ && !legacyDecorators ? node.expression : void 0; if (expression) { const callee = skipOuterExpressions(expression); if (isAccessExpression(callee)) { @@ -69862,17 +70330,17 @@ function createTypeChecker(host) { return result; } function getEffectiveCallArguments(node) { - if (node.kind === 214 /* TaggedTemplateExpression */) { + if (node.kind === 215 /* TaggedTemplateExpression */) { const template = node.template; const args2 = [createSyntheticExpression(template, getGlobalTemplateStringsArrayType())]; - if (template.kind === 227 /* TemplateExpression */) { + if (template.kind === 228 /* TemplateExpression */) { forEach(template.templateSpans, (span) => { args2.push(span.expression); }); } return args2; } - if (node.kind === 169 /* Decorator */) { + if (node.kind === 170 /* Decorator */) { return getEffectiveDecoratorArguments(node); } if (isJsxOpeningLikeElement(node)) { @@ -69884,7 +70352,7 @@ function createTypeChecker(host) { const effectiveArgs = args.slice(0, spreadIndex); for (let i = spreadIndex; i < args.length; i++) { const arg = args[i]; - const spreadType = arg.kind === 229 /* SpreadElement */ && (flowLoopCount ? checkExpression(arg.expression) : checkExpressionCached(arg.expression)); + const spreadType = arg.kind === 230 /* SpreadElement */ && (flowLoopCount ? checkExpression(arg.expression) : checkExpressionCached(arg.expression)); if (spreadType && isTupleType(spreadType)) { forEach(getElementTypes(spreadType), (t, i2) => { var _a; @@ -69923,16 +70391,16 @@ function createTypeChecker(host) { } function getLegacyDecoratorArgumentCount(node, signature) { switch (node.parent.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return 1; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return hasAccessorModifier(node.parent) ? 3 : 2; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return languageVersion === 0 /* ES3 */ || signature.parameters.length <= 2 ? 2 : 3; - case 168 /* Parameter */: + case 169 /* Parameter */: return 3; default: return Debug.fail(); @@ -70146,8 +70614,8 @@ function createTypeChecker(host) { return createDiagnosticForNodeArray(getSourceFileOfNode(node), typeArguments, Diagnostics.Expected_0_type_arguments_but_got_1, belowArgCount === -Infinity ? aboveArgCount : belowArgCount, argCount); } function resolveCall(node, signatures, candidatesOutArray, checkMode, callChainFlags, headMessage) { - const isTaggedTemplate = node.kind === 214 /* TaggedTemplateExpression */; - const isDecorator2 = node.kind === 169 /* Decorator */; + const isTaggedTemplate = node.kind === 215 /* TaggedTemplateExpression */; + const isDecorator2 = node.kind === 170 /* Decorator */; const isJsxOpeningOrSelfClosingElement = isJsxOpeningLikeElement(node); const reportErrors2 = !isInferencePartiallyBlocked && !candidatesOutArray; let typeArguments; @@ -70159,21 +70627,15 @@ function createTypeChecker(host) { } const candidates = candidatesOutArray || []; reorderCandidates(signatures, candidates, callChainFlags); - if (!candidates.length) { - if (reportErrors2) { - diagnostics.add(getDiagnosticForCallNode(node, Diagnostics.Call_target_does_not_contain_any_signatures)); - } - return resolveErrorCall(node); - } + Debug.assert(candidates.length, "Revert #54442 and add a testcase with whatever triggered this"); const args = getEffectiveCallArguments(node); const isSingleNonGenericCandidate = candidates.length === 1 && !candidates[0].typeParameters; let argCheckMode = !isDecorator2 && !isSingleNonGenericCandidate && some(args, isContextSensitive) ? 4 /* SkipContextSensitive */ : 0 /* Normal */; - argCheckMode |= checkMode & 32 /* IsForStringLiteralArgumentCompletions */; let candidatesForArgumentError; let candidateForArgumentArityError; let candidateForTypeArgumentError; let result; - const signatureHelpTrailingComma = !!(checkMode & 16 /* IsForSignatureHelp */) && node.kind === 212 /* CallExpression */ && node.arguments.hasTrailingComma; + const signatureHelpTrailingComma = !!(checkMode & 16 /* IsForSignatureHelp */) && node.kind === 213 /* CallExpression */ && node.arguments.hasTrailingComma; if (candidates.length > 1) { result = chooseOverload(candidates, subtypeRelation, isSingleNonGenericCandidate, signatureHelpTrailingComma); } @@ -70392,7 +70854,7 @@ function createTypeChecker(host) { continue; } if (argCheckMode) { - argCheckMode = checkMode & 32 /* IsForStringLiteralArgumentCompletions */; + argCheckMode = 0 /* Normal */; if (inferenceContext) { const typeArgumentTypes = inferTypeArguments(node, candidate, args, argCheckMode, inferenceContext); checkCandidate = getSignatureInstantiation(candidate, typeArgumentTypes, isInJSFile(candidate.declaration), inferenceContext.inferredTypeParameters); @@ -70441,7 +70903,7 @@ function createTypeChecker(host) { parameters.push(createCombinedSymbolFromTypes(symbols, mapDefined(candidates, (candidate) => tryGetTypeAtPosition(candidate, i)))); } const restParameterSymbols = mapDefined(candidates, (c) => signatureHasRestParameter(c) ? last(c.parameters) : void 0); - let flags = 0 /* None */; + let flags = 128 /* IsSignatureCandidateForOverloadFailure */; if (restParameterSymbols.length !== 0) { const type = createArrayType(getUnionType(mapDefined(candidates, tryGetRestTypeOfSignature), 2 /* Subtype */)); parameters.push(createCombinedSymbolForOverloadFailure(restParameterSymbols, type)); @@ -70701,7 +71163,7 @@ function createTypeChecker(host) { } const declaration = signature.declaration; const modifiers = getSelectedEffectiveModifierFlags(declaration, 24 /* NonPublicAccessibilityModifier */); - if (!modifiers || declaration.kind !== 175 /* Constructor */) { + if (!modifiers || declaration.kind !== 176 /* Constructor */) { return true; } const declaringClassDeclaration = getClassLikeDeclarationOfSymbol(declaration.parent.symbol); @@ -70848,16 +71310,16 @@ function createTypeChecker(host) { } function getDiagnosticHeadMessageForDecoratorResolution(node) { switch (node.parent.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression; - case 168 /* Parameter */: + case 169 /* Parameter */: return Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression; default: return Debug.fail(); @@ -70980,16 +71442,16 @@ function createTypeChecker(host) { } function resolveSignature(node, candidatesOutArray, checkMode) { switch (node.kind) { - case 212 /* CallExpression */: + case 213 /* CallExpression */: return resolveCallExpression(node, candidatesOutArray, checkMode); - case 213 /* NewExpression */: + case 214 /* NewExpression */: return resolveNewExpression(node, candidatesOutArray, checkMode); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return resolveTaggedTemplateExpression(node, candidatesOutArray, checkMode); - case 169 /* Decorator */: + case 170 /* Decorator */: return resolveDecorator(node, candidatesOutArray, checkMode); - case 285 /* JsxOpeningElement */: - case 284 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: return resolveJsxOpeningLikeElement(node, candidatesOutArray, checkMode); } Debug.assertNever(node, "Branch in 'resolveSignature' should be unreachable."); @@ -71065,7 +71527,7 @@ function createTypeChecker(host) { let name; let decl; if (isVariableDeclaration(node.parent) && node.parent.initializer === node) { - if (!isInJSFile(node) && !(isVarConst(node.parent) && isFunctionLikeDeclaration(node))) { + if (!isInJSFile(node) && !(isVarConstLike(node.parent) && isFunctionLikeDeclaration(node))) { return void 0; } name = node.parent.name; @@ -71102,7 +71564,7 @@ function createTypeChecker(host) { return false; } let parent = node.parent; - while (parent && parent.kind === 210 /* PropertyAccessExpression */) { + while (parent && parent.kind === 211 /* PropertyAccessExpression */) { parent = parent.parent; } if (parent && isBinaryExpression(parent) && isPrototypeAccess(parent.left) && parent.operatorToken.kind === 64 /* EqualsToken */) { @@ -71126,9 +71588,9 @@ function createTypeChecker(host) { if (node.expression.kind === 108 /* SuperKeyword */) { return voidType; } - if (node.kind === 213 /* NewExpression */) { + if (node.kind === 214 /* NewExpression */) { const declaration = signature.declaration; - if (declaration && declaration.kind !== 175 /* Constructor */ && declaration.kind !== 179 /* ConstructSignature */ && declaration.kind !== 184 /* ConstructorType */ && !(isJSDocSignature(declaration) && ((_b = (_a = getJSDocRoot(declaration)) == null ? void 0 : _a.parent) == null ? void 0 : _b.kind) === 175 /* Constructor */) && !isJSDocConstructSignature(declaration) && !isJSConstructor(declaration)) { + if (declaration && declaration.kind !== 176 /* Constructor */ && declaration.kind !== 180 /* ConstructSignature */ && declaration.kind !== 185 /* ConstructorType */ && !(isJSDocSignature(declaration) && ((_b = (_a = getJSDocRoot(declaration)) == null ? void 0 : _a.parent) == null ? void 0 : _b.kind) === 176 /* Constructor */) && !isJSDocConstructSignature(declaration) && !isJSConstructor(declaration)) { if (noImplicitAny) { error(node, Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type); } @@ -71142,7 +71604,7 @@ function createTypeChecker(host) { if (returnType.flags & 12288 /* ESSymbolLike */ && isSymbolOrSymbolForCall(node)) { return getESSymbolLikeTypeForNode(walkUpParenthesizedExpressions(node.parent)); } - if (node.kind === 212 /* CallExpression */ && !node.questionDotToken && node.parent.kind === 243 /* ExpressionStatement */ && returnType.flags & 16384 /* Void */ && getTypePredicateOfSignature(signature)) { + if (node.kind === 213 /* CallExpression */ && !node.questionDotToken && node.parent.kind === 244 /* ExpressionStatement */ && returnType.flags & 16384 /* Void */ && getTypePredicateOfSignature(signature)) { if (!isDottedName(node.expression)) { error(node.expression, Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name); } else if (!getEffectsSignature(node)) { @@ -71165,7 +71627,9 @@ function createTypeChecker(host) { return returnType; } function checkDeprecatedSignature(signature, node) { - if (signature.declaration && signature.declaration.flags & 268435456 /* Deprecated */) { + if (signature.flags & 128 /* IsSignatureCandidateForOverloadFailure */) + return; + if (signature.declaration && signature.declaration.flags & 536870912 /* Deprecated */) { const suggestionNode = getDeprecatedSuggestionNode(node); const name = tryGetPropertyAccessOrIdentifierToString(getInvokedExpression(node)); addDeprecatedSuggestionWithSignature(suggestionNode, signature.declaration, name, signatureToString(signature)); @@ -71174,20 +71638,20 @@ function createTypeChecker(host) { function getDeprecatedSuggestionNode(node) { node = skipParentheses(node); switch (node.kind) { - case 212 /* CallExpression */: - case 169 /* Decorator */: - case 213 /* NewExpression */: + case 213 /* CallExpression */: + case 170 /* Decorator */: + case 214 /* NewExpression */: return getDeprecatedSuggestionNode(node.expression); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return getDeprecatedSuggestionNode(node.tag); - case 285 /* JsxOpeningElement */: - case 284 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: return getDeprecatedSuggestionNode(node.tagName); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return node.argumentExpression; - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return node.name; - case 182 /* TypeReference */: + case 183 /* TypeReference */: const typeReference = node; return isQualifiedName(typeReference.typeName) ? typeReference.typeName.right : typeReference; default: @@ -71347,10 +71811,10 @@ function createTypeChecker(host) { if (resolvedRequire.flags & 2097152 /* Alias */) { return false; } - const targetDeclarationKind = resolvedRequire.flags & 16 /* Function */ ? 261 /* FunctionDeclaration */ : resolvedRequire.flags & 3 /* Variable */ ? 259 /* VariableDeclaration */ : 0 /* Unknown */; + const targetDeclarationKind = resolvedRequire.flags & 16 /* Function */ ? 262 /* FunctionDeclaration */ : resolvedRequire.flags & 3 /* Variable */ ? 260 /* VariableDeclaration */ : 0 /* Unknown */; if (targetDeclarationKind !== 0 /* Unknown */) { const decl = getDeclarationOfKind(resolvedRequire, targetDeclarationKind); - return !!decl && !!(decl.flags & 16777216 /* Ambient */); + return !!decl && !!(decl.flags & 33554432 /* Ambient */); } return false; } @@ -71365,7 +71829,7 @@ function createTypeChecker(host) { return getReturnTypeOfSignature(signature); } function checkAssertion(node, checkMode) { - if (node.kind === 215 /* TypeAssertionExpression */) { + if (node.kind === 216 /* TypeAssertionExpression */) { const file = getSourceFileOfNode(node); if (file && fileExtensionIsOneOf(file.fileName, [".cts" /* Cts */, ".mts" /* Mts */])) { grammarErrorOnNode(node, Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead); @@ -71381,18 +71845,18 @@ function createTypeChecker(host) { case 10 /* BigIntLiteral */: case 112 /* TrueKeyword */: case 97 /* FalseKeyword */: - case 208 /* ArrayLiteralExpression */: - case 209 /* ObjectLiteralExpression */: - case 227 /* TemplateExpression */: + case 209 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: + case 228 /* TemplateExpression */: return true; - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return isValidConstAssertionArgument(node.expression); - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: const op = node.operator; const arg = node.operand; return op === 41 /* MinusToken */ && (arg.kind === 9 /* NumericLiteral */ || arg.kind === 10 /* BigIntLiteral */) || op === 40 /* PlusToken */ && arg.kind === 9 /* NumericLiteral */; - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: const expr = skipParentheses(node.expression); const symbol = isEntityNameExpression(expr) ? resolveEntityName( expr, @@ -71423,12 +71887,12 @@ function createTypeChecker(host) { let type; let expression; switch (node.kind) { - case 233 /* AsExpression */: - case 215 /* TypeAssertionExpression */: + case 234 /* AsExpression */: + case 216 /* TypeAssertionExpression */: type = node.type; expression = node.expression; break; - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: type = getJSDocTypeAssertionType(node); expression = node.expression; break; @@ -71462,18 +71926,18 @@ function createTypeChecker(host) { return propagateOptionalTypeMarker(getNonNullableType(nonOptionalType), node, nonOptionalType !== leftType); } function checkNonNullAssertion(node) { - return node.flags & 32 /* OptionalChain */ ? checkNonNullChain(node) : getNonNullableType(checkExpression(node.expression)); + return node.flags & 64 /* OptionalChain */ ? checkNonNullChain(node) : getNonNullableType(checkExpression(node.expression)); } function checkExpressionWithTypeArguments(node) { checkGrammarExpressionWithTypeArguments(node); forEach(node.typeArguments, checkSourceElement); - if (node.kind === 232 /* ExpressionWithTypeArguments */) { + if (node.kind === 233 /* ExpressionWithTypeArguments */) { const parent = walkUpParenthesizedExpressions(node.parent); - if (parent.kind === 225 /* BinaryExpression */ && parent.operatorToken.kind === 104 /* InstanceOfKeyword */ && isNodeDescendantOf(node, parent.right)) { + if (parent.kind === 226 /* BinaryExpression */ && parent.operatorToken.kind === 104 /* InstanceOfKeyword */ && isNodeDescendantOf(node, parent.right)) { error(node, Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression); } } - const exprType = node.kind === 232 /* ExpressionWithTypeArguments */ ? checkExpression(node.expression) : isThisIdentifier(node.exprName) ? checkThisExpression(node.exprName) : checkExpression(node.exprName); + const exprType = node.kind === 233 /* ExpressionWithTypeArguments */ ? checkExpression(node.expression) : isThisIdentifier(node.exprName) ? checkThisExpression(node.exprName) : checkExpression(node.exprName); return getInstantiationExpressionType(exprType, node); } function getInstantiationExpressionType(exprType, node) { @@ -71557,7 +72021,7 @@ function createTypeChecker(host) { if (isErrorType(targetType)) { return targetType; } - const errorNode = findAncestor(target.parent, (n) => n.kind === 237 /* SatisfiesExpression */ || n.kind === 356 /* JSDocSatisfiesTag */); + const errorNode = findAncestor(target.parent, (n) => n.kind === 238 /* SatisfiesExpression */ || n.kind === 357 /* JSDocSatisfiesTag */); checkTypeAssignableToAndOptionallyElaborate(exprType, targetType, errorNode, expression, Diagnostics.Type_0_does_not_satisfy_the_expected_type_1); return exprType; } @@ -71587,7 +72051,7 @@ function createTypeChecker(host) { if (!container) { error(node, Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor, "new.target"); return errorType; - } else if (container.kind === 175 /* Constructor */) { + } else if (container.kind === 176 /* Constructor */) { const symbol = getSymbolOfDeclaration(container.parent); return getTypeOfSymbol(symbol); } else { @@ -71604,7 +72068,7 @@ function createTypeChecker(host) { error(node, Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext); } const file = getSourceFileOfNode(node); - Debug.assert(!!(file.flags & 4194304 /* PossiblyContainsImportMeta */), "Containing file is missing import meta node flag."); + Debug.assert(!!(file.flags & 8388608 /* PossiblyContainsImportMeta */), "Containing file is missing import meta node flag."); return node.name.escapedText === "meta" ? getGlobalImportMetaType() : errorType; } function getTypeOfParameter(symbol) { @@ -71617,7 +72081,10 @@ function createTypeChecker(host) { } return type; } - function getTupleElementLabel(d) { + function getTupleElementLabel(d, index, restParameterName = "arg") { + if (!d) { + return `${restParameterName}_${index}`; + } Debug.assert(isIdentifier(d.name)); return d.name.escapedText; } @@ -71631,22 +72098,28 @@ function createTypeChecker(host) { if (isTupleType(restType)) { const associatedNames = restType.target.labeledElementDeclarations; const index = pos - paramCount; - return associatedNames && getTupleElementLabel(associatedNames[index]) || restParameter.escapedName + "_" + index; + return getTupleElementLabel(associatedNames == null ? void 0 : associatedNames[index], index, restParameter.escapedName); } return restParameter.escapedName; } - function getParameterIdentifierNameAtPosition(signature, pos) { + function getParameterIdentifierInfoAtPosition(signature, pos) { var _a; - if (((_a = signature.declaration) == null ? void 0 : _a.kind) === 323 /* JSDocFunctionType */) { + if (((_a = signature.declaration) == null ? void 0 : _a.kind) === 324 /* JSDocFunctionType */) { return void 0; } const paramCount = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0); if (pos < paramCount) { const param = signature.parameters[pos]; - return isParameterDeclarationWithIdentifierName(param) ? [param.escapedName, false] : void 0; + const paramIdent = getParameterDeclarationIdentifier(param); + return paramIdent ? { + parameter: paramIdent, + parameterName: param.escapedName, + isRestParameter: false + } : void 0; } const restParameter = signature.parameters[paramCount] || unknownSymbol; - if (!isParameterDeclarationWithIdentifierName(restParameter)) { + const restIdent = getParameterDeclarationIdentifier(restParameter); + if (!restIdent) { return void 0; } const restType = getTypeOfSymbol(restParameter); @@ -71655,21 +72128,22 @@ function createTypeChecker(host) { const index = pos - paramCount; const associatedName = associatedNames == null ? void 0 : associatedNames[index]; const isRestTupleElement = !!(associatedName == null ? void 0 : associatedName.dotDotDotToken); - return associatedName ? [ - getTupleElementLabel(associatedName), - isRestTupleElement - ] : void 0; + if (associatedName) { + Debug.assert(isIdentifier(associatedName.name)); + return { parameter: associatedName.name, parameterName: associatedName.name.escapedText, isRestParameter: isRestTupleElement }; + } + return void 0; } if (pos === paramCount) { - return [restParameter.escapedName, true]; + return { parameter: restIdent, parameterName: restParameter.escapedName, isRestParameter: true }; } return void 0; } - function isParameterDeclarationWithIdentifierName(symbol) { - return symbol.valueDeclaration && isParameter(symbol.valueDeclaration) && isIdentifier(symbol.valueDeclaration.name); + function getParameterDeclarationIdentifier(symbol) { + return symbol.valueDeclaration && isParameter(symbol.valueDeclaration) && isIdentifier(symbol.valueDeclaration.name) && symbol.valueDeclaration.name; } function isValidDeclarationForTupleLabel(d) { - return d.kind === 201 /* NamedTupleMember */ || isParameter(d) && d.name && isIdentifier(d.name); + return d.kind === 202 /* NamedTupleMember */ || isParameter(d) && d.name && isIdentifier(d.name); } function getNameableDeclarationAtPosition(signature, pos) { const paramCount = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0); @@ -72005,17 +72479,17 @@ function createTypeChecker(host) { if (!links.decoratorSignature) { links.decoratorSignature = anySignature; switch (parent.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: { + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: { const node = parent; const targetType = getTypeOfSymbol(getSymbolOfDeclaration(node)); const contextType = createClassDecoratorContextType(targetType); links.decoratorSignature = createESDecoratorCallSignature(targetType, contextType, targetType); break; } - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: { + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: { const node = parent; if (!isClassLike(node.parent)) break; @@ -72027,7 +72501,7 @@ function createTypeChecker(host) { links.decoratorSignature = createESDecoratorCallSignature(targetType, contextType, returnType); break; } - case 171 /* PropertyDeclaration */: { + case 172 /* PropertyDeclaration */: { const node = parent; if (!isClassLike(node.parent)) break; @@ -72049,8 +72523,8 @@ function createTypeChecker(host) { if (!links.decoratorSignature) { links.decoratorSignature = anySignature; switch (parent.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: { + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: { const node = parent; const targetType = getTypeOfSymbol(getSymbolOfDeclaration(node)); const targetParam = createParameter("target", targetType); @@ -72064,7 +72538,7 @@ function createTypeChecker(host) { ); break; } - case 168 /* Parameter */: { + case 169 /* Parameter */: { const node = parent; if (!isConstructorDeclaration(node.parent) && !(isMethodDeclaration(node.parent) || isSetAccessorDeclaration(node.parent) && isClassLike(node.parent.parent))) { break; @@ -72090,10 +72564,10 @@ function createTypeChecker(host) { ); break; } - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 171 /* PropertyDeclaration */: { + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 172 /* PropertyDeclaration */: { const node = parent; if (!isClassLike(node.parent)) break; @@ -72188,7 +72662,7 @@ function createTypeChecker(host) { let yieldType; let nextType; let fallbackReturnType = voidType; - if (func.body.kind !== 240 /* Block */) { + if (func.body.kind !== 241 /* Block */) { returnType = checkExpressionCached(func.body, checkMode && checkMode & ~8 /* SkipGenericFunctions */); if (isAsync) { returnType = unwrapAwaitedType(checkAwaitedType( @@ -72371,7 +72845,7 @@ function createTypeChecker(host) { return links.isExhaustive; } function computeExhaustiveSwitchStatement(node) { - if (node.expression.kind === 220 /* TypeOfExpression */) { + if (node.expression.kind === 221 /* TypeOfExpression */) { const witnesses = getSwitchClauseTypeOfWitnesses(node); if (!witnesses) { return false; @@ -72404,7 +72878,7 @@ function createTypeChecker(host) { forEachReturnStatement(func.body, (returnStatement) => { const expr = returnStatement.expression; if (expr) { - if (expr.kind === 212 /* CallExpression */ && expr.expression.kind === 80 /* Identifier */ && checkExpressionCached(expr.expression).symbol === func.symbol) { + if (expr.kind === 213 /* CallExpression */ && expr.expression.kind === 80 /* Identifier */ && checkExpressionCached(expr.expression).symbol === func.symbol) { hasReturnOfTypeNever = true; return; } @@ -72436,11 +72910,11 @@ function createTypeChecker(host) { } function mayReturnNever(func) { switch (func.kind) { - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return true; - case 173 /* MethodDeclaration */: - return func.parent.kind === 209 /* ObjectLiteralExpression */; + case 174 /* MethodDeclaration */: + return func.parent.kind === 210 /* ObjectLiteralExpression */; default: return false; } @@ -72454,10 +72928,10 @@ function createTypeChecker(host) { if (type && (maybeTypeOfKind(type, 16384 /* Void */) || type.flags & (1 /* Any */ | 32768 /* Undefined */))) { return; } - if (func.kind === 172 /* MethodSignature */ || nodeIsMissing(func.body) || func.body.kind !== 240 /* Block */ || !functionHasImplicitReturn(func)) { + if (func.kind === 173 /* MethodSignature */ || nodeIsMissing(func.body) || func.body.kind !== 241 /* Block */ || !functionHasImplicitReturn(func)) { return; } - const hasExplicitReturn = func.flags & 512 /* HasExplicitReturn */; + const hasExplicitReturn = func.flags & 1024 /* HasExplicitReturn */; const errorNode = getEffectiveReturnTypeNode(func) || func; if (type && type.flags & 131072 /* Never */) { error(errorNode, Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point); @@ -72480,7 +72954,7 @@ function createTypeChecker(host) { } } function checkFunctionExpressionOrObjectLiteralMethod(node, checkMode) { - Debug.assert(node.kind !== 173 /* MethodDeclaration */ || isObjectLiteralMethod(node)); + Debug.assert(node.kind !== 174 /* MethodDeclaration */ || isObjectLiteralMethod(node)); checkNodeDeferred(node); if (isFunctionExpression(node)) { checkCollisionsForDeclarationName(node, node.name); @@ -72516,7 +72990,7 @@ function createTypeChecker(host) { return anyFunctionType; } const hasGrammarError = checkGrammarFunctionLikeDeclaration(node); - if (!hasGrammarError && node.kind === 217 /* FunctionExpression */) { + if (!hasGrammarError && node.kind === 218 /* FunctionExpression */) { checkGrammarForGenerator(node); } contextuallyCheckFunctionExpressionOrObjectLiteralMethod(node, checkMode); @@ -72565,7 +73039,7 @@ function createTypeChecker(host) { } } function checkFunctionExpressionOrObjectLiteralMethodDeferred(node) { - Debug.assert(node.kind !== 173 /* MethodDeclaration */ || isObjectLiteralMethod(node)); + Debug.assert(node.kind !== 174 /* MethodDeclaration */ || isObjectLiteralMethod(node)); const functionFlags = getFunctionFlags(node); const returnType = getReturnTypeFromAnnotation(node); checkAllCodePathsInNonVoidFunctionReturnOrThrow(node, returnType); @@ -72573,7 +73047,7 @@ function createTypeChecker(host) { if (!getEffectiveReturnTypeNode(node)) { getReturnTypeOfSignature(getSignatureFromDeclaration(node)); } - if (node.body.kind === 240 /* Block */) { + if (node.body.kind === 241 /* Block */) { checkSourceElement(node.body); } else { const exprType = checkExpression(node.body); @@ -72635,7 +73109,7 @@ function createTypeChecker(host) { return !setProp; } function isReadonlySymbol(symbol) { - return !!(getCheckFlags(symbol) & 8 /* Readonly */ || symbol.flags & 4 /* Property */ && getDeclarationModifierFlagsFromSymbol(symbol) & 64 /* Readonly */ || symbol.flags & 3 /* Variable */ && getDeclarationNodeFlagsFromSymbol(symbol) & 2 /* Const */ || symbol.flags & 98304 /* Accessor */ && !(symbol.flags & 65536 /* SetAccessor */) || symbol.flags & 8 /* EnumMember */ || some(symbol.declarations, isReadonlyAssignmentDeclaration)); + return !!(getCheckFlags(symbol) & 8 /* Readonly */ || symbol.flags & 4 /* Property */ && getDeclarationModifierFlagsFromSymbol(symbol) & 64 /* Readonly */ || symbol.flags & 3 /* Variable */ && getDeclarationNodeFlagsFromSymbol(symbol) & 6 /* Constant */ || symbol.flags & 98304 /* Accessor */ && !(symbol.flags & 65536 /* SetAccessor */) || symbol.flags & 8 /* EnumMember */ || some(symbol.declarations, isReadonlyAssignmentDeclaration)); } function isAssignmentToReadonlyEntity(expr, symbol, assignmentKind) { var _a, _b; @@ -72645,7 +73119,7 @@ function createTypeChecker(host) { if (isReadonlySymbol(symbol)) { if (symbol.flags & 4 /* Property */ && isAccessExpression(expr) && expr.expression.kind === 110 /* ThisKeyword */) { const ctor = getContainingFunction(expr); - if (!(ctor && (ctor.kind === 175 /* Constructor */ || isJSConstructor(ctor)))) { + if (!(ctor && (ctor.kind === 176 /* Constructor */ || isJSConstructor(ctor)))) { return true; } if (symbol.valueDeclaration) { @@ -72666,7 +73140,7 @@ function createTypeChecker(host) { const symbol2 = getNodeLinks(node).resolvedSymbol; if (symbol2.flags & 2097152 /* Alias */) { const declaration = getDeclarationOfAliasSymbol(symbol2); - return !!declaration && declaration.kind === 273 /* NamespaceImport */; + return !!declaration && declaration.kind === 274 /* NamespaceImport */; } } } @@ -72678,7 +73152,7 @@ function createTypeChecker(host) { error(expr, invalidReferenceMessage); return false; } - if (node.flags & 32 /* OptionalChain */) { + if (node.flags & 64 /* OptionalChain */) { error(expr, invalidOptionalChainMessage); return false; } @@ -72718,24 +73192,24 @@ function createTypeChecker(host) { checkExpression(node.expression); return undefinedWideningType; } - function checkAwaitExpressionGrammar(node) { + function checkAwaitGrammar(node) { + let hasError = false; const container = getContainingFunctionOrClassStaticBlock(node); if (container && isClassStaticBlockDeclaration(container)) { - error(node, Diagnostics.Await_expression_cannot_be_used_inside_a_class_static_block); - } else if (!(node.flags & 32768 /* AwaitContext */)) { + const message = isAwaitExpression(node) ? Diagnostics.await_expression_cannot_be_used_inside_a_class_static_block : Diagnostics.await_using_statements_cannot_be_used_inside_a_class_static_block; + error(node, message); + hasError = true; + } else if (!(node.flags & 65536 /* AwaitContext */)) { if (isInTopLevelContext(node)) { const sourceFile = getSourceFileOfNode(node); if (!hasParseDiagnostics(sourceFile)) { let span; if (!isEffectiveExternalModule(sourceFile, compilerOptions)) { span ?? (span = getSpanOfTokenAtPosition(sourceFile, node.pos)); - const diagnostic = createFileDiagnostic( - sourceFile, - span.start, - span.length, - Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module - ); + const message = isAwaitExpression(node) ? Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module : Diagnostics.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module; + const diagnostic = createFileDiagnostic(sourceFile, span.start, span.length, message); diagnostics.add(diagnostic); + hasError = true; } switch (moduleKind) { case 100 /* Node16 */: @@ -72745,6 +73219,7 @@ function createTypeChecker(host) { diagnostics.add( createFileDiagnostic(sourceFile, span.start, span.length, Diagnostics.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level) ); + hasError = true; break; } case 7 /* ES2022 */: @@ -72755,14 +73230,9 @@ function createTypeChecker(host) { } default: span ?? (span = getSpanOfTokenAtPosition(sourceFile, node.pos)); - diagnostics.add( - createFileDiagnostic( - sourceFile, - span.start, - span.length, - Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher - ) - ); + const message = isAwaitExpression(node) ? Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher : Diagnostics.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher; + diagnostics.add(createFileDiagnostic(sourceFile, span.start, span.length, message)); + hasError = true; break; } } @@ -72770,21 +73240,25 @@ function createTypeChecker(host) { const sourceFile = getSourceFileOfNode(node); if (!hasParseDiagnostics(sourceFile)) { const span = getSpanOfTokenAtPosition(sourceFile, node.pos); - const diagnostic = createFileDiagnostic(sourceFile, span.start, span.length, Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules); - if (container && container.kind !== 175 /* Constructor */ && (getFunctionFlags(container) & 2 /* Async */) === 0) { + const message = isAwaitExpression(node) ? Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules : Diagnostics.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules; + const diagnostic = createFileDiagnostic(sourceFile, span.start, span.length, message); + if (container && container.kind !== 176 /* Constructor */ && (getFunctionFlags(container) & 2 /* Async */) === 0) { const relatedInfo = createDiagnosticForNode(container, Diagnostics.Did_you_mean_to_mark_this_function_as_async); addRelatedInfo(diagnostic, relatedInfo); } diagnostics.add(diagnostic); + hasError = true; } } } - if (isInParameterInitializerBeforeContainingFunction(node)) { + if (isAwaitExpression(node) && isInParameterInitializerBeforeContainingFunction(node)) { error(node, Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer); + hasError = true; } + return hasError; } function checkAwaitExpression(node) { - addLazyDiagnostic(() => checkAwaitExpressionGrammar(node)); + addLazyDiagnostic(() => checkAwaitGrammar(node)); const operandType = checkExpression(node.expression); const awaitedType = checkAwaitedType( operandType, @@ -72980,7 +73454,7 @@ function createTypeChecker(host) { function checkObjectLiteralDestructuringPropertyAssignment(node, objectLiteralType, propertyIndex, allProperties, rightIsThis = false) { const properties = node.properties; const property = properties[propertyIndex]; - if (property.kind === 302 /* PropertyAssignment */ || property.kind === 303 /* ShorthandPropertyAssignment */) { + if (property.kind === 303 /* PropertyAssignment */ || property.kind === 304 /* ShorthandPropertyAssignment */) { const name = property.name; const exprType = getLiteralTypeFromPropertyName(name); if (isTypeUsableAsPropertyName(exprType)) { @@ -73001,8 +73475,8 @@ function createTypeChecker(host) { } const elementType = getIndexedAccessType(objectLiteralType, exprType, 32 /* ExpressionPosition */, name); const type = getFlowTypeOfDestructuring(property, elementType); - return checkDestructuringAssignment(property.kind === 303 /* ShorthandPropertyAssignment */ ? property : property.initializer, type); - } else if (property.kind === 304 /* SpreadAssignment */) { + return checkDestructuringAssignment(property.kind === 304 /* ShorthandPropertyAssignment */ ? property : property.initializer, type); + } else if (property.kind === 305 /* SpreadAssignment */) { if (propertyIndex < properties.length - 1) { error(property, Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern); } else { @@ -73034,7 +73508,7 @@ function createTypeChecker(host) { let inBoundsType = compilerOptions.noUncheckedIndexedAccess ? void 0 : possiblyOutOfBoundsType; for (let i = 0; i < elements.length; i++) { let type = possiblyOutOfBoundsType; - if (node.elements[i].kind === 229 /* SpreadElement */) { + if (node.elements[i].kind === 230 /* SpreadElement */) { type = inBoundsType = inBoundsType ?? (checkIteratedTypeOrElementType(65 /* Destructuring */, sourceType, undefinedType, node) || errorType); } checkArrayLiteralDestructuringElementAssignment(node, sourceType, i, type, checkMode); @@ -73044,8 +73518,8 @@ function createTypeChecker(host) { function checkArrayLiteralDestructuringElementAssignment(node, sourceType, elementIndex, elementType, checkMode) { const elements = node.elements; const element = elements[elementIndex]; - if (element.kind !== 231 /* OmittedExpression */) { - if (element.kind !== 229 /* SpreadElement */) { + if (element.kind !== 232 /* OmittedExpression */) { + if (element.kind !== 230 /* SpreadElement */) { const indexType = getNumberLiteralType(elementIndex); if (isArrayLikeType(sourceType)) { const accessFlags = 32 /* ExpressionPosition */ | (hasDefaultValue(element) ? 16 /* NoTupleBoundsCheck */ : 0); @@ -73060,7 +73534,7 @@ function createTypeChecker(host) { error(element, Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern); } else { const restExpression = element.expression; - if (restExpression.kind === 225 /* BinaryExpression */ && restExpression.operatorToken.kind === 64 /* EqualsToken */) { + if (restExpression.kind === 226 /* BinaryExpression */ && restExpression.operatorToken.kind === 64 /* EqualsToken */) { error(restExpression.operatorToken, Diagnostics.A_rest_element_cannot_have_an_initializer); } else { checkGrammarForDisallowedTrailingComma(node.elements, Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma); @@ -73073,7 +73547,7 @@ function createTypeChecker(host) { } function checkDestructuringAssignment(exprOrAssignment, sourceType, checkMode, rightIsThis) { let target; - if (exprOrAssignment.kind === 303 /* ShorthandPropertyAssignment */) { + if (exprOrAssignment.kind === 304 /* ShorthandPropertyAssignment */) { const prop = exprOrAssignment; if (prop.objectAssignmentInitializer) { if (strictNullChecks && !(getTypeFacts(checkExpression(prop.objectAssignmentInitializer)) & 16777216 /* IsUndefined */)) { @@ -73085,25 +73559,25 @@ function createTypeChecker(host) { } else { target = exprOrAssignment; } - if (target.kind === 225 /* BinaryExpression */ && target.operatorToken.kind === 64 /* EqualsToken */) { + if (target.kind === 226 /* BinaryExpression */ && target.operatorToken.kind === 64 /* EqualsToken */) { checkBinaryExpression(target, checkMode); target = target.left; if (strictNullChecks) { sourceType = getTypeWithFacts(sourceType, 524288 /* NEUndefined */); } } - if (target.kind === 209 /* ObjectLiteralExpression */) { + if (target.kind === 210 /* ObjectLiteralExpression */) { return checkObjectLiteralAssignment(target, sourceType, rightIsThis); } - if (target.kind === 208 /* ArrayLiteralExpression */) { + if (target.kind === 209 /* ArrayLiteralExpression */) { return checkArrayLiteralAssignment(target, sourceType, checkMode); } return checkReferenceAssignment(target, sourceType, checkMode); } function checkReferenceAssignment(target, sourceType, checkMode) { const targetType = checkExpression(target, checkMode); - const error2 = target.parent.kind === 304 /* SpreadAssignment */ ? Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access : Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access; - const optionalError = target.parent.kind === 304 /* SpreadAssignment */ ? Diagnostics.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access : Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access; + const error2 = target.parent.kind === 305 /* SpreadAssignment */ ? Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access : Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access; + const optionalError = target.parent.kind === 305 /* SpreadAssignment */ ? Diagnostics.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access : Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access; if (checkReferenceExpression(target, error2, optionalError)) { checkTypeAssignableToAndOptionallyElaborate(sourceType, targetType, target, target); } @@ -73118,8 +73592,8 @@ function createTypeChecker(host) { case 80 /* Identifier */: case 11 /* StringLiteral */: case 14 /* RegularExpressionLiteral */: - case 214 /* TaggedTemplateExpression */: - case 227 /* TemplateExpression */: + case 215 /* TaggedTemplateExpression */: + case 228 /* TemplateExpression */: case 15 /* NoSubstitutionTemplateLiteral */: case 9 /* NumericLiteral */: case 10 /* BigIntLiteral */: @@ -73127,25 +73601,25 @@ function createTypeChecker(host) { case 97 /* FalseKeyword */: case 106 /* NullKeyword */: case 157 /* UndefinedKeyword */: - case 217 /* FunctionExpression */: - case 230 /* ClassExpression */: - case 218 /* ArrowFunction */: - case 208 /* ArrayLiteralExpression */: - case 209 /* ObjectLiteralExpression */: - case 220 /* TypeOfExpression */: - case 234 /* NonNullExpression */: - case 284 /* JsxSelfClosingElement */: - case 283 /* JsxElement */: + case 218 /* FunctionExpression */: + case 231 /* ClassExpression */: + case 219 /* ArrowFunction */: + case 209 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: + case 221 /* TypeOfExpression */: + case 235 /* NonNullExpression */: + case 285 /* JsxSelfClosingElement */: + case 284 /* JsxElement */: return true; - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: return isSideEffectFree(node.whenTrue) && isSideEffectFree(node.whenFalse); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: if (isAssignmentOperator(node.operatorToken.kind)) { return false; } return isSideEffectFree(node.left) && isSideEffectFree(node.right); - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: switch (node.operator) { case 54 /* ExclamationToken */: case 40 /* PlusToken */: @@ -73154,9 +73628,9 @@ function createTypeChecker(host) { return true; } return false; - case 221 /* VoidExpression */: - case 215 /* TypeAssertionExpression */: - case 233 /* AsExpression */: + case 222 /* VoidExpression */: + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: default: return false; } @@ -73200,7 +73674,7 @@ function createTypeChecker(host) { } checkGrammarNullishCoalesceWithLogicalExpression(node); const operator = node.operatorToken.kind; - if (operator === 64 /* EqualsToken */ && (node.left.kind === 209 /* ObjectLiteralExpression */ || node.left.kind === 208 /* ArrayLiteralExpression */)) { + if (operator === 64 /* EqualsToken */ && (node.left.kind === 210 /* ObjectLiteralExpression */ || node.left.kind === 209 /* ArrayLiteralExpression */)) { state.skip = true; setLastResult(state, checkDestructuringAssignment(node.left, checkExpression(node.right, checkMode), checkMode, node.right.kind === 110 /* ThisKeyword */)); return state; @@ -73225,7 +73699,7 @@ function createTypeChecker(host) { const operator = operatorToken.kind; if (isLogicalOrCoalescingBinaryOperator(operator)) { let parent = node.parent; - while (parent.kind === 216 /* ParenthesizedExpression */ || isLogicalOrCoalescingBinaryExpression(parent)) { + while (parent.kind === 217 /* ParenthesizedExpression */ || isLogicalOrCoalescingBinaryExpression(parent)) { parent = parent.parent; } if (operator === 56 /* AmpersandAmpersandToken */ || isIfStatement(parent)) { @@ -73249,7 +73723,7 @@ function createTypeChecker(host) { Debug.assertIsDefined(leftType); const rightType = getLastResult(state); Debug.assertIsDefined(rightType); - result = checkBinaryLikeExpressionWorker(node.left, node.operatorToken, node.right, leftType, rightType, node); + result = checkBinaryLikeExpressionWorker(node.left, node.operatorToken, node.right, leftType, rightType, state.checkMode, node); } state.skip = false; setLeftType( @@ -73301,7 +73775,7 @@ function createTypeChecker(host) { } function checkBinaryLikeExpression(left, operatorToken, right, checkMode, errorNode) { const operator = operatorToken.kind; - if (operator === 64 /* EqualsToken */ && (left.kind === 209 /* ObjectLiteralExpression */ || left.kind === 208 /* ArrayLiteralExpression */)) { + if (operator === 64 /* EqualsToken */ && (left.kind === 210 /* ObjectLiteralExpression */ || left.kind === 209 /* ArrayLiteralExpression */)) { return checkDestructuringAssignment(left, checkExpression(right, checkMode), checkMode, right.kind === 110 /* ThisKeyword */); } let leftType; @@ -73311,9 +73785,9 @@ function createTypeChecker(host) { leftType = checkExpression(left, checkMode); } const rightType = checkExpression(right, checkMode); - return checkBinaryLikeExpressionWorker(left, operatorToken, right, leftType, rightType, errorNode); + return checkBinaryLikeExpressionWorker(left, operatorToken, right, leftType, rightType, checkMode, errorNode); } - function checkBinaryLikeExpressionWorker(left, operatorToken, right, leftType, rightType, errorNode) { + function checkBinaryLikeExpressionWorker(left, operatorToken, right, leftType, rightType, checkMode, errorNode) { const operator = operatorToken.kind; switch (operator) { case 42 /* AsteriskToken */: @@ -73470,12 +73944,15 @@ function createTypeChecker(host) { case 36 /* ExclamationEqualsToken */: case 37 /* EqualsEqualsEqualsToken */: case 38 /* ExclamationEqualsEqualsToken */: - if (isLiteralExpressionOfObject(left) || isLiteralExpressionOfObject(right)) { - const eqType = operator === 35 /* EqualsEqualsToken */ || operator === 37 /* EqualsEqualsEqualsToken */; - error(errorNode, Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value, eqType ? "false" : "true"); + if (!(checkMode && checkMode & 128 /* TypeOnly */)) { + if ((isLiteralExpressionOfObject(left) || isLiteralExpressionOfObject(right)) && // only report for === and !== in JS, not == or != + (!isInJSFile(left) || (operator === 37 /* EqualsEqualsEqualsToken */ || operator === 38 /* ExclamationEqualsEqualsToken */))) { + const eqType = operator === 35 /* EqualsEqualsToken */ || operator === 37 /* EqualsEqualsEqualsToken */; + error(errorNode, Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value, eqType ? "false" : "true"); + } + checkNaNEquality(errorNode, operator, left, right); + reportOperatorErrorUnless((left2, right2) => isTypeEqualityComparableTo(left2, right2) || isTypeEqualityComparableTo(right2, left2)); } - checkNaNEquality(errorNode, operator, left, right); - reportOperatorErrorUnless((left2, right2) => isTypeEqualityComparableTo(left2, right2) || isTypeEqualityComparableTo(right2, left2)); return booleanType; case 104 /* InstanceOfKeyword */: return checkInstanceOfExpression(left, right, leftType, rightType); @@ -73562,7 +74039,7 @@ function createTypeChecker(host) { } } function isIndirectCall(node) { - return node.parent.kind === 216 /* ParenthesizedExpression */ && isNumericLiteral(node.left) && node.left.text === "0" && (isCallExpression(node.parent.parent) && node.parent.parent.expression === node.parent || node.parent.parent.kind === 214 /* TaggedTemplateExpression */) && // special-case for "eval" because it's the only non-access case where an indirect call actually affects behavior. + return node.parent.kind === 217 /* ParenthesizedExpression */ && isNumericLiteral(node.left) && node.left.text === "0" && (isCallExpression(node.parent.parent) && node.parent.parent.expression === node.parent || node.parent.parent.kind === 215 /* TaggedTemplateExpression */) && // special-case for "eval" because it's the only non-access case where an indirect call actually affects behavior. (isAccessExpression(node.right) || isIdentifier(node.right) && node.right.escapedText === "eval"); } function checkForDisallowedESSymbolOperand(operator2) { @@ -73594,7 +74071,7 @@ function createTypeChecker(host) { } function checkAssignmentOperatorWorker() { let assigneeType = leftType; - if (isCompoundAssignment(operatorToken.kind) && left.kind === 210 /* PropertyAccessExpression */) { + if (isCompoundAssignment(operatorToken.kind) && left.kind === 211 /* PropertyAccessExpression */) { assigneeType = checkPropertyAccessExpression( left, /*checkMode*/ @@ -73777,7 +74254,7 @@ function createTypeChecker(host) { } return type; function checkYieldExpressionGrammar() { - if (!(node.flags & 8192 /* YieldContext */)) { + if (!(node.flags & 16384 /* YieldContext */)) { grammarErrorOnFirstToken(node, Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body); } if (isInParameterInitializerBeforeContainingFunction(node)) { @@ -73786,7 +74263,7 @@ function createTypeChecker(host) { } } function checkConditionalExpression(node, checkMode) { - const type = checkTruthinessExpression(node.condition); + const type = checkTruthinessExpression(node.condition, checkMode); checkTestingKnownTruthyCallableOrAwaitableType(node.condition, type, node.whenTrue); const type1 = checkExpression(node.whenTrue, checkMode); const type2 = checkExpression(node.whenFalse, checkMode); @@ -73807,11 +74284,15 @@ function createTypeChecker(host) { texts.push(span.literal.text); types.push(isTypeAssignableTo(type, templateConstraintType) ? type : stringType); } - return isConstContext(node) || isTemplateLiteralContext(node) || someType(getContextualType( + if (isConstContext(node) || isTemplateLiteralContext(node) || someType(getContextualType( node, /*contextFlags*/ void 0 - ) || unknownType, isTemplateLiteralContextualType) ? getTemplateLiteralType(texts, types) : stringType; + ) || unknownType, isTemplateLiteralContextualType)) { + return getTemplateLiteralType(texts, types); + } + const evaluated = node.parent.kind !== 215 /* TaggedTemplateExpression */ && evaluateTemplateExpression(node); + return evaluated ? getFreshTypeOfLiteralType(getStringLiteralType(evaluated)) : stringType; } function isTemplateLiteralContextualType(type) { return !!(type.flags & (128 /* StringLiteral */ | 134217728 /* TemplateLiteral */) || type.flags & 58982400 /* InstantiableNonPrimitive */ && maybeTypeOfKind(getBaseConstraintOfType(type) || unknownType, 402653316 /* StringLike */)); @@ -73867,7 +74348,7 @@ function createTypeChecker(host) { /*excludeJSDocTypeAssertions*/ true ); - return node.kind === 215 /* TypeAssertionExpression */ || node.kind === 233 /* AsExpression */ || isJSDocTypeAssertion(node); + return node.kind === 216 /* TypeAssertionExpression */ || node.kind === 234 /* AsExpression */ || isJSDocTypeAssertion(node); } function checkDeclarationInitializer(declaration, checkMode, contextualType) { const initializer = getEffectiveInitializer(declaration); @@ -73884,7 +74365,7 @@ function createTypeChecker(host) { void 0, checkMode || 0 /* Normal */ ) : checkExpressionCached(initializer, checkMode)); - return isParameter(declaration) && declaration.name.kind === 206 /* ArrayBindingPattern */ && isTupleType(type) && !type.target.hasRestElement && getTypeReferenceArity(type) < declaration.name.elements.length ? padTupleType(type, declaration.name) : type; + return isParameter(declaration) && declaration.name.kind === 207 /* ArrayBindingPattern */ && isTupleType(type) && !type.target.hasRestElement && getTypeReferenceArity(type) < declaration.name.elements.length ? padTupleType(type, declaration.name) : type; } function padTupleType(type, pattern) { const patternElements = pattern.elements; @@ -73892,7 +74373,7 @@ function createTypeChecker(host) { const elementFlags = type.target.elementFlags.slice(); for (let i = getTypeReferenceArity(type); i < patternElements.length; i++) { const e = patternElements[i]; - if (i < patternElements.length - 1 || !(e.kind === 207 /* BindingElement */ && e.dotDotDotToken)) { + if (i < patternElements.length - 1 || !(e.kind === 208 /* BindingElement */ && e.dotDotDotToken)) { elementTypes.push(!isOmittedExpression(e) && hasDefaultValue(e) ? getTypeFromBindingElement( e, /*includePatternInType*/ @@ -73909,7 +74390,7 @@ function createTypeChecker(host) { return createTupleType(elementTypes, elementFlags, type.target.readonly); } function widenTypeInferredFromInitializer(declaration, type) { - const widened = getCombinedNodeFlags(declaration) & 2 /* Const */ || isDeclarationReadonly(declaration) ? type : getWidenedLiteralType(type); + const widened = getCombinedNodeFlagsCached(declaration) & 6 /* Constant */ || isDeclarationReadonly(declaration) ? type : getWidenedLiteralType(type); if (isInJSFile(declaration)) { if (isEmptyLiteralType(widened)) { reportImplicitAny(declaration, anyType); @@ -73953,14 +74434,14 @@ function createTypeChecker(host) { )); } function checkPropertyAssignment(node, checkMode) { - if (node.name.kind === 166 /* ComputedPropertyName */) { + if (node.name.kind === 167 /* ComputedPropertyName */) { checkComputedPropertyName(node.name); } return checkExpressionForMutableLocation(node.initializer, checkMode); } function checkObjectLiteralMethod(node, checkMode) { checkGrammarMethod(node); - if (node.name.kind === 166 /* ComputedPropertyName */) { + if (node.name.kind === 167 /* ComputedPropertyName */) { checkComputedPropertyName(node.name); } const uninstantiatedType = checkFunctionExpressionOrObjectLiteralMethod(node, checkMode); @@ -74116,18 +74597,18 @@ function createTypeChecker(host) { if (quickType) { return quickType; } - if (node.flags & 134217728 /* TypeCached */ && flowTypeCache) { + if (node.flags & 268435456 /* TypeCached */ && flowTypeCache) { const cachedType = flowTypeCache[getNodeId(node)]; if (cachedType) { return cachedType; } } const startInvocationCount = flowInvocationCount; - const type = checkExpression(node); + const type = checkExpression(node, 128 /* TypeOnly */); if (flowInvocationCount !== startInvocationCount) { const cache = flowTypeCache || (flowTypeCache = []); cache[getNodeId(node)] = type; - setNodeFlags(node, node.flags | 134217728 /* TypeCached */); + setNodeFlags(node, node.flags | 268435456 /* TypeCached */); } return type; } @@ -74192,14 +74673,14 @@ function createTypeChecker(host) { return type; } function checkConstEnumAccess(node, type) { - const ok = node.parent.kind === 210 /* PropertyAccessExpression */ && node.parent.expression === node || node.parent.kind === 211 /* ElementAccessExpression */ && node.parent.expression === node || ((node.kind === 80 /* Identifier */ || node.kind === 165 /* QualifiedName */) && isInRightSideOfImportOrExportAssignment(node) || node.parent.kind === 185 /* TypeQuery */ && node.parent.exprName === node) || node.parent.kind === 280 /* ExportSpecifier */; + const ok = node.parent.kind === 211 /* PropertyAccessExpression */ && node.parent.expression === node || node.parent.kind === 212 /* ElementAccessExpression */ && node.parent.expression === node || ((node.kind === 80 /* Identifier */ || node.kind === 166 /* QualifiedName */) && isInRightSideOfImportOrExportAssignment(node) || node.parent.kind === 186 /* TypeQuery */ && node.parent.exprName === node) || node.parent.kind === 281 /* ExportSpecifier */; if (!ok) { error(node, Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query); } if (getIsolatedModules(compilerOptions)) { Debug.assert(!!(type.symbol.flags & 128 /* ConstEnum */)); const constEnumDeclaration = type.symbol.valueDeclaration; - if (constEnumDeclaration.flags & 16777216 /* Ambient */) { + if (constEnumDeclaration.flags & 33554432 /* Ambient */ && !isValidTypeOnlyAliasUseSite(node)) { error(node, Diagnostics.Cannot_access_ambient_const_enums_when_0_is_enabled, isolatedModulesLikeFlagName); } } @@ -74219,9 +74700,9 @@ function createTypeChecker(host) { const kind = node.kind; if (cancellationToken) { switch (kind) { - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: cancellationToken.throwIfCancellationRequested(); } } @@ -74238,7 +74719,7 @@ function createTypeChecker(host) { return nullWideningType; case 15 /* NoSubstitutionTemplateLiteral */: case 11 /* StringLiteral */: - return hasSkipDirectInferenceFlag(node) ? anyType : getFreshTypeOfLiteralType(getStringLiteralType(node.text)); + return hasSkipDirectInferenceFlag(node) ? wildcardType : getFreshTypeOfLiteralType(getStringLiteralType(node.text)); case 9 /* NumericLiteral */: checkGrammarNumericLiteral(node); return getFreshTypeOfLiteralType(getNumberLiteralType(+node.text)); @@ -74252,81 +74733,81 @@ function createTypeChecker(host) { return trueType; case 97 /* FalseKeyword */: return falseType; - case 227 /* TemplateExpression */: + case 228 /* TemplateExpression */: return checkTemplateExpression(node); case 14 /* RegularExpressionLiteral */: return globalRegExpType; - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return checkArrayLiteral(node, checkMode, forceTuple); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return checkObjectLiteral(node, checkMode); - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return checkPropertyAccessExpression(node, checkMode); - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: return checkQualifiedName(node, checkMode); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return checkIndexedAccess(node, checkMode); - case 212 /* CallExpression */: + case 213 /* CallExpression */: if (node.expression.kind === 102 /* ImportKeyword */) { return checkImportCallExpression(node); } - case 213 /* NewExpression */: + case 214 /* NewExpression */: return checkCallExpression(node, checkMode); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return checkTaggedTemplateExpression(node); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return checkParenthesizedExpression(node, checkMode); - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return checkClassExpression(node); - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return checkFunctionExpressionOrObjectLiteralMethod(node, checkMode); - case 220 /* TypeOfExpression */: + case 221 /* TypeOfExpression */: return checkTypeOfExpression(node); - case 215 /* TypeAssertionExpression */: - case 233 /* AsExpression */: + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: return checkAssertion(node, checkMode); - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: return checkNonNullAssertion(node); - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return checkExpressionWithTypeArguments(node); - case 237 /* SatisfiesExpression */: + case 238 /* SatisfiesExpression */: return checkSatisfiesExpression(node); - case 235 /* MetaProperty */: + case 236 /* MetaProperty */: return checkMetaProperty(node); - case 219 /* DeleteExpression */: + case 220 /* DeleteExpression */: return checkDeleteExpression(node); - case 221 /* VoidExpression */: + case 222 /* VoidExpression */: return checkVoidExpression(node); - case 222 /* AwaitExpression */: + case 223 /* AwaitExpression */: return checkAwaitExpression(node); - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: return checkPrefixUnaryExpression(node); - case 224 /* PostfixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return checkPostfixUnaryExpression(node); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return checkBinaryExpression(node, checkMode); - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: return checkConditionalExpression(node, checkMode); - case 229 /* SpreadElement */: + case 230 /* SpreadElement */: return checkSpreadExpression(node, checkMode); - case 231 /* OmittedExpression */: + case 232 /* OmittedExpression */: return undefinedWideningType; - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: return checkYieldExpression(node); - case 236 /* SyntheticExpression */: + case 237 /* SyntheticExpression */: return checkSyntheticExpression(node); - case 293 /* JsxExpression */: + case 294 /* JsxExpression */: return checkJsxExpression(node, checkMode); - case 283 /* JsxElement */: + case 284 /* JsxElement */: return checkJsxElement(node, checkMode); - case 284 /* JsxSelfClosingElement */: + case 285 /* JsxSelfClosingElement */: return checkJsxSelfClosingElement(node, checkMode); - case 287 /* JsxFragment */: + case 288 /* JsxFragment */: return checkJsxFragment(node); - case 291 /* JsxAttributes */: + case 292 /* JsxAttributes */: return checkJsxAttributes(node, checkMode); - case 285 /* JsxOpeningElement */: + case 286 /* JsxOpeningElement */: Debug.fail("Shouldn't ever directly check a JsxOpeningElement"); } return errorType; @@ -74378,10 +74859,10 @@ function createTypeChecker(host) { checkVariableLikeDeclaration(node); const func = getContainingFunction(node); if (hasSyntacticModifier(node, 16476 /* ParameterPropertyModifier */)) { - if (!(func.kind === 175 /* Constructor */ && nodeIsPresent(func.body))) { + if (!(func.kind === 176 /* Constructor */ && nodeIsPresent(func.body))) { error(node, Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation); } - if (func.kind === 175 /* Constructor */ && isIdentifier(node.name) && node.name.escapedText === "constructor") { + if (func.kind === 176 /* Constructor */ && isIdentifier(node.name) && node.name.escapedText === "constructor") { error(node.name, Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name); } } @@ -74392,13 +74873,13 @@ function createTypeChecker(host) { if (func.parameters.indexOf(node) !== 0) { error(node, Diagnostics.A_0_parameter_must_be_the_first_parameter, node.name.escapedText); } - if (func.kind === 175 /* Constructor */ || func.kind === 179 /* ConstructSignature */ || func.kind === 184 /* ConstructorType */) { + if (func.kind === 176 /* Constructor */ || func.kind === 180 /* ConstructSignature */ || func.kind === 185 /* ConstructorType */) { error(node, Diagnostics.A_constructor_cannot_have_a_this_parameter); } - if (func.kind === 218 /* ArrowFunction */) { + if (func.kind === 219 /* ArrowFunction */) { error(node, Diagnostics.An_arrow_function_cannot_have_a_this_parameter); } - if (func.kind === 176 /* GetAccessor */ || func.kind === 177 /* SetAccessor */) { + if (func.kind === 177 /* GetAccessor */ || func.kind === 178 /* SetAccessor */) { error(node, Diagnostics.get_and_set_accessors_cannot_declare_this_parameters); } } @@ -74458,13 +74939,13 @@ function createTypeChecker(host) { } function getTypePredicateParent(node) { switch (node.parent.kind) { - case 218 /* ArrowFunction */: - case 178 /* CallSignature */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 183 /* FunctionType */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 219 /* ArrowFunction */: + case 179 /* CallSignature */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 184 /* FunctionType */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: const parent = node.parent; if (node === parent.type) { return parent; @@ -74484,7 +74965,7 @@ function createTypeChecker(host) { predicateVariableName ); return true; - } else if (name.kind === 206 /* ArrayBindingPattern */ || name.kind === 205 /* ObjectBindingPattern */) { + } else if (name.kind === 207 /* ArrayBindingPattern */ || name.kind === 206 /* ObjectBindingPattern */) { if (checkIfTypePredicateVariableIsDeclaredInBindingPattern( name, predicateVariableNode, @@ -74496,9 +74977,9 @@ function createTypeChecker(host) { } } function checkSignatureDeclaration(node) { - if (node.kind === 180 /* IndexSignature */) { + if (node.kind === 181 /* IndexSignature */) { checkGrammarIndexSignature(node); - } else if (node.kind === 183 /* FunctionType */ || node.kind === 261 /* FunctionDeclaration */ || node.kind === 184 /* ConstructorType */ || node.kind === 178 /* CallSignature */ || node.kind === 175 /* Constructor */ || node.kind === 179 /* ConstructSignature */) { + } else if (node.kind === 184 /* FunctionType */ || node.kind === 262 /* FunctionDeclaration */ || node.kind === 185 /* ConstructorType */ || node.kind === 179 /* CallSignature */ || node.kind === 176 /* Constructor */ || node.kind === 180 /* ConstructSignature */) { checkGrammarFunctionLikeDeclaration(node); } const functionFlags = getFunctionFlags(node); @@ -74522,35 +75003,46 @@ function createTypeChecker(host) { addLazyDiagnostic(checkSignatureDeclarationDiagnostics); function checkSignatureDeclarationDiagnostics() { checkCollisionWithArgumentsInGeneratedCode(node); - const returnTypeNode = getEffectiveReturnTypeNode(node); + let returnTypeNode = getEffectiveReturnTypeNode(node); + let returnTypeErrorLocation = returnTypeNode; + if (isInJSFile(node)) { + const typeTag = getJSDocTypeTag(node); + if (typeTag && typeTag.typeExpression && isTypeReferenceNode(typeTag.typeExpression.type)) { + const signature = getSingleCallSignature(getTypeFromTypeNode(typeTag.typeExpression)); + if (signature && signature.declaration) { + returnTypeNode = getEffectiveReturnTypeNode(signature.declaration); + returnTypeErrorLocation = typeTag.typeExpression.type; + } + } + } if (noImplicitAny && !returnTypeNode) { switch (node.kind) { - case 179 /* ConstructSignature */: + case 180 /* ConstructSignature */: error(node, Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type); break; - case 178 /* CallSignature */: + case 179 /* CallSignature */: error(node, Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type); break; } } - if (returnTypeNode) { + if (returnTypeNode && returnTypeErrorLocation) { const functionFlags2 = getFunctionFlags(node); if ((functionFlags2 & (4 /* Invalid */ | 1 /* Generator */)) === 1 /* Generator */) { const returnType = getTypeFromTypeNode(returnTypeNode); if (returnType === voidType) { - error(returnTypeNode, Diagnostics.A_generator_cannot_have_a_void_type_annotation); + error(returnTypeErrorLocation, Diagnostics.A_generator_cannot_have_a_void_type_annotation); } else { const generatorYieldType = getIterationTypeOfGeneratorFunctionReturnType(0 /* Yield */, returnType, (functionFlags2 & 2 /* Async */) !== 0) || anyType; const generatorReturnType = getIterationTypeOfGeneratorFunctionReturnType(1 /* Return */, returnType, (functionFlags2 & 2 /* Async */) !== 0) || generatorYieldType; const generatorNextType = getIterationTypeOfGeneratorFunctionReturnType(2 /* Next */, returnType, (functionFlags2 & 2 /* Async */) !== 0) || unknownType; const generatorInstantiation = createGeneratorReturnType(generatorYieldType, generatorReturnType, generatorNextType, !!(functionFlags2 & 2 /* Async */)); - checkTypeAssignableTo(generatorInstantiation, returnType, returnTypeNode); + checkTypeAssignableTo(generatorInstantiation, returnType, returnTypeErrorLocation); } } else if ((functionFlags2 & 3 /* AsyncGenerator */) === 2 /* Async */) { - checkAsyncFunctionReturnType(node, returnTypeNode); + checkAsyncFunctionReturnType(node, returnTypeNode, returnTypeErrorLocation); } } - if (node.kind !== 180 /* IndexSignature */ && node.kind !== 323 /* JSDocFunctionType */) { + if (node.kind !== 181 /* IndexSignature */ && node.kind !== 324 /* JSDocFunctionType */) { registerForUnusedIdentifiersCheck(node); } } @@ -74560,7 +75052,7 @@ function createTypeChecker(host) { const staticNames = /* @__PURE__ */ new Map(); const privateIdentifiers = /* @__PURE__ */ new Map(); for (const member of node.members) { - if (member.kind === 175 /* Constructor */) { + if (member.kind === 176 /* Constructor */) { for (const param of member.parameters) { if (isParameterPropertyDeclaration(param, member) && !isBindingPattern(param.name)) { addName(instanceNames, param.name, param.name.escapedText, 3 /* GetOrSetAccessor */); @@ -74578,16 +75070,16 @@ function createTypeChecker(host) { const memberName = name && getPropertyNameForPropertyNameNode(name); if (memberName) { switch (member.kind) { - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: addName(names, name, memberName, 1 /* GetAccessor */ | privateStaticFlags); break; - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: addName(names, name, memberName, 2 /* SetAccessor */ | privateStaticFlags); break; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: addName(names, name, memberName, 3 /* GetOrSetAccessor */ | privateStaticFlags); break; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: addName(names, name, memberName, 8 /* Method */ | privateStaticFlags); break; } @@ -74628,6 +75120,9 @@ function createTypeChecker(host) { case "length": case "caller": case "arguments": + if (useDefineForClassFields) { + break; + } case "prototype": const message = Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1; const className = getNameOfSymbolAsWritten(getSymbolOfDeclaration(node)); @@ -74640,7 +75135,7 @@ function createTypeChecker(host) { function checkObjectTypeForDuplicateDeclarations(node) { const names = /* @__PURE__ */ new Map(); for (const member of node.members) { - if (member.kind === 170 /* PropertySignature */) { + if (member.kind === 171 /* PropertySignature */) { let memberName; const name = member.name; switch (name.kind) { @@ -74664,7 +75159,7 @@ function createTypeChecker(host) { } } function checkTypeForDuplicateIndexSignatures(node) { - if (node.kind === 263 /* InterfaceDeclaration */) { + if (node.kind === 264 /* InterfaceDeclaration */) { const nodeSymbol = getSymbolOfDeclaration(node); if (nodeSymbol.declarations && nodeSymbol.declarations.length > 0 && nodeSymbol.declarations[0] !== node) { return; @@ -74699,7 +75194,7 @@ function createTypeChecker(host) { checkGrammarComputedPropertyName(node.name); checkVariableLikeDeclaration(node); setNodeLinksForPrivateIdentifierScope(node); - if (hasSyntacticModifier(node, 256 /* Abstract */) && node.kind === 171 /* PropertyDeclaration */ && node.initializer) { + if (hasSyntacticModifier(node, 256 /* Abstract */) && node.kind === 172 /* PropertyDeclaration */ && node.initializer) { error(node, Diagnostics.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract, declarationNameToString(node.name)); } } @@ -74716,7 +75211,7 @@ function createTypeChecker(host) { error(node.name, Diagnostics.Class_constructor_may_not_be_a_generator); } checkFunctionOrMethodDeclaration(node); - if (hasSyntacticModifier(node, 256 /* Abstract */) && node.kind === 173 /* MethodDeclaration */ && node.body) { + if (hasSyntacticModifier(node, 256 /* Abstract */) && node.kind === 174 /* MethodDeclaration */ && node.body) { error(node, Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract, declarationNameToString(node.name)); } if (isPrivateIdentifier(node.name) && !getContainingClass(node)) { @@ -74727,7 +75222,7 @@ function createTypeChecker(host) { function setNodeLinksForPrivateIdentifierScope(node) { if (isPrivateIdentifier(node.name) && languageVersion < 99 /* ESNext */) { for (let lexicalScope = getEnclosingBlockScopeContainer(node); !!lexicalScope; lexicalScope = getEnclosingBlockScopeContainer(lexicalScope)) { - getNodeLinks(lexicalScope).flags |= 4194304 /* ContainsClassWithPrivateIdentifiers */; + getNodeLinks(lexicalScope).flags |= 1048576 /* ContainsClassWithPrivateIdentifiers */; } if (isClassExpression(node.parent)) { const enclosingIterationStatement = getEnclosingIterationStatement(node.parent); @@ -74761,7 +75256,7 @@ function createTypeChecker(host) { if (isPrivateIdentifierClassElementDeclaration(n)) { return true; } - return n.kind === 171 /* PropertyDeclaration */ && !isStatic(n) && !!n.initializer; + return n.kind === 172 /* PropertyDeclaration */ && !isStatic(n) && !!n.initializer; } function checkConstructorDeclarationDiagnostics() { const containingClassDecl = node.parent; @@ -74773,7 +75268,7 @@ function createTypeChecker(host) { if (classExtendsNull) { error(superCall, Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null); } - const superCallShouldBeRootLevel = (getEmitScriptTarget(compilerOptions) !== 99 /* ESNext */ || !useDefineForClassFields) && (some(node.parent.members, isInstancePropertyWithInitializerOrPrivateIdentifierProperty) || some(node.parameters, (p) => hasSyntacticModifier(p, 16476 /* ParameterPropertyModifier */))); + const superCallShouldBeRootLevel = !emitStandardClassFields && (some(node.parent.members, isInstancePropertyWithInitializerOrPrivateIdentifierProperty) || some(node.parameters, (p) => hasSyntacticModifier(p, 16476 /* ParameterPropertyModifier */))); if (superCallShouldBeRootLevel) { if (!superCallIsRootLevelInConstructor(superCall, node.body)) { error(superCall, Diagnostics.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers); @@ -74824,20 +75319,20 @@ function createTypeChecker(host) { checkGrammarComputedPropertyName(node.name); checkDecorators(node); checkSignatureDeclaration(node); - if (node.kind === 176 /* GetAccessor */) { - if (!(node.flags & 16777216 /* Ambient */) && nodeIsPresent(node.body) && node.flags & 256 /* HasImplicitReturn */) { - if (!(node.flags & 512 /* HasExplicitReturn */)) { + if (node.kind === 177 /* GetAccessor */) { + if (!(node.flags & 33554432 /* Ambient */) && nodeIsPresent(node.body) && node.flags & 512 /* HasImplicitReturn */) { + if (!(node.flags & 1024 /* HasExplicitReturn */)) { error(node.name, Diagnostics.A_get_accessor_must_return_a_value); } } } - if (node.name.kind === 166 /* ComputedPropertyName */) { + if (node.name.kind === 167 /* ComputedPropertyName */) { checkComputedPropertyName(node.name); } if (hasBindableName(node)) { const symbol = getSymbolOfDeclaration(node); - const getter = getDeclarationOfKind(symbol, 176 /* GetAccessor */); - const setter = getDeclarationOfKind(symbol, 177 /* SetAccessor */); + const getter = getDeclarationOfKind(symbol, 177 /* GetAccessor */); + const setter = getDeclarationOfKind(symbol, 178 /* SetAccessor */); if (getter && setter && !(getNodeCheckFlags(getter) & 1 /* TypeChecked */)) { getNodeLinks(getter).flags |= 1 /* TypeChecked */; const getterFlags = getEffectiveModifierFlags(getter); @@ -74853,7 +75348,7 @@ function createTypeChecker(host) { } } const returnType = getTypeOfAccessors(getSymbolOfDeclaration(node)); - if (node.kind === 176 /* GetAccessor */) { + if (node.kind === 177 /* GetAccessor */) { checkAllCodePathsInNonVoidFunctionReturnOrThrow(node, returnType); } } @@ -74914,7 +75409,7 @@ function createTypeChecker(host) { } function checkTypeReferenceNode(node) { checkGrammarTypeArguments(node, node.typeArguments); - if (node.kind === 182 /* TypeReference */ && !isInJSFile(node) && !isInJSDoc(node) && node.typeArguments && node.typeName.end !== node.typeArguments.pos) { + if (node.kind === 183 /* TypeReference */ && !isInJSFile(node) && !isInJSDoc(node) && node.typeArguments && node.typeName.end !== node.typeArguments.pos) { const sourceFile = getSourceFileOfNode(node); if (scanTokenAtPosition(sourceFile, node.typeName.end) === 25 /* DotToken */) { grammarErrorAtPos(node, skipTrivia(sourceFile.text, node.typeName.end), 1, Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments); @@ -74936,7 +75431,7 @@ function createTypeChecker(host) { } const symbol = getNodeLinks(node).resolvedSymbol; if (symbol) { - if (some(symbol.declarations, (d) => isTypeDeclaration(d) && !!(d.flags & 268435456 /* Deprecated */))) { + if (some(symbol.declarations, (d) => isTypeDeclaration(d) && !!(d.flags & 536870912 /* Deprecated */))) { addDeprecatedSuggestion( getDeprecatedSuggestionNode(node), symbol.declarations, @@ -74976,12 +75471,7 @@ function createTypeChecker(host) { const elementTypes = node.elements; let seenOptionalElement = false; let seenRestElement = false; - const hasNamedElement = some(elementTypes, isNamedTupleMember); for (const e of elementTypes) { - if (e.kind !== 201 /* NamedTupleMember */ && hasNamedElement) { - grammarErrorOnNode(e, Diagnostics.Tuple_members_must_all_have_names_or_all_not_have_names); - break; - } const flags = getTupleElementFlags(e); if (flags & 8 /* Variadic */) { const type = getTypeFromTypeNode(e.type); @@ -75023,7 +75513,7 @@ function createTypeChecker(host) { const objectType = type.objectType; const indexType = type.indexType; if (isTypeAssignableTo(indexType, getIndexType(objectType, 0 /* None */))) { - if (accessNode.kind === 211 /* ElementAccessExpression */ && isAssignmentTarget(accessNode) && getObjectFlags(objectType) & 32 /* Mapped */ && getMappedTypeModifiers(objectType) & 1 /* IncludeReadonly */) { + if (accessNode.kind === 212 /* ElementAccessExpression */ && isAssignmentTarget(accessNode) && getObjectFlags(objectType) & 32 /* Mapped */ && getMappedTypeModifiers(objectType) & 1 /* IncludeReadonly */) { error(accessNode, Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(objectType)); } return type; @@ -75084,7 +75574,7 @@ function createTypeChecker(host) { forEachChild(node, checkSourceElement); } function checkInferType(node) { - if (!findAncestor(node, (n) => n.parent && n.parent.kind === 193 /* ConditionalType */ && n.parent.extendsType === n)) { + if (!findAncestor(node, (n) => n.parent && n.parent.kind === 194 /* ConditionalType */ && n.parent.extendsType === n)) { grammarErrorOnNode(node, Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type); } checkSourceElement(node.typeParameter); @@ -75094,7 +75584,7 @@ function createTypeChecker(host) { if (!links.typeParametersChecked) { links.typeParametersChecked = true; const typeParameter = getDeclaredTypeOfTypeParameter(symbol); - const declarations = getDeclarationsOfKind(symbol, 167 /* TypeParameter */); + const declarations = getDeclarationsOfKind(symbol, 168 /* TypeParameter */); if (!areTypeParametersIdentical(declarations, [typeParameter], (decl) => [decl])) { const name = symbolToString(symbol); for (const declaration of declarations) { @@ -75132,22 +75622,23 @@ function createTypeChecker(host) { if (node.dotDotDotToken && node.questionToken) { grammarErrorOnNode(node, Diagnostics.A_tuple_member_cannot_be_both_optional_and_rest); } - if (node.type.kind === 189 /* OptionalType */) { + if (node.type.kind === 190 /* OptionalType */) { grammarErrorOnNode(node.type, Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type); } - if (node.type.kind === 190 /* RestType */) { + if (node.type.kind === 191 /* RestType */) { grammarErrorOnNode(node.type, Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type); } checkSourceElement(node.type); getTypeFromTypeNode(node); } function isPrivateWithinAmbient(node) { - return (hasEffectiveModifier(node, 8 /* Private */) || isPrivateIdentifierClassElementDeclaration(node)) && !!(node.flags & 16777216 /* Ambient */); + return (hasEffectiveModifier(node, 8 /* Private */) || isPrivateIdentifierClassElementDeclaration(node)) && !!(node.flags & 33554432 /* Ambient */); } function getEffectiveDeclarationFlags(n, flagsToCheck) { - let flags = getCombinedModifierFlags(n); - if (n.parent.kind !== 263 /* InterfaceDeclaration */ && n.parent.kind !== 262 /* ClassDeclaration */ && n.parent.kind !== 230 /* ClassExpression */ && n.flags & 16777216 /* Ambient */) { - if (!(flags & 2 /* Ambient */) && !(isModuleBlock(n.parent) && isModuleDeclaration(n.parent.parent) && isGlobalScopeAugmentation(n.parent.parent))) { + let flags = getCombinedModifierFlagsCached(n); + if (n.parent.kind !== 264 /* InterfaceDeclaration */ && n.parent.kind !== 263 /* ClassDeclaration */ && n.parent.kind !== 231 /* ClassExpression */ && n.flags & 33554432 /* Ambient */) { + const container = getEnclosingContainer(n); + if (container && container.flags & 128 /* ExportContext */ && !(flags & 2 /* Ambient */) && !(isModuleBlock(n.parent) && isModuleDeclaration(n.parent.parent) && isGlobalScopeAugmentation(n.parent.parent))) { flags |= 1 /* Export */; } flags |= 2 /* Ambient */; @@ -75222,7 +75713,7 @@ function createTypeChecker(host) { (isPrivateIdentifier(node.name) && isPrivateIdentifier(subsequentName) && node.name.escapedText === subsequentName.escapedText || // Both are computed property names isComputedPropertyName(node.name) && isComputedPropertyName(subsequentName) && isTypeIdenticalTo(checkComputedPropertyName(node.name), checkComputedPropertyName(subsequentName)) || // Both are literal property names that are the same. isPropertyNameLiteral(node.name) && isPropertyNameLiteral(subsequentName) && getEscapedTextOfIdentifierOrLiteral(node.name) === getEscapedTextOfIdentifierOrLiteral(subsequentName))) { - const reportError = (node.kind === 173 /* MethodDeclaration */ || node.kind === 172 /* MethodSignature */) && isStatic(node) !== isStatic(subsequentNode); + const reportError = (node.kind === 174 /* MethodDeclaration */ || node.kind === 173 /* MethodSignature */) && isStatic(node) !== isStatic(subsequentNode); if (reportError) { const diagnostic = isStatic(node) ? Diagnostics.Function_overload_must_be_static : Diagnostics.Function_overload_must_not_be_static; error(errorNode2, diagnostic); @@ -75253,15 +75744,15 @@ function createTypeChecker(host) { if (declarations) { for (const current of declarations) { const node = current; - const inAmbientContext = node.flags & 16777216 /* Ambient */; - const inAmbientContextOrInterface = node.parent && (node.parent.kind === 263 /* InterfaceDeclaration */ || node.parent.kind === 186 /* TypeLiteral */) || inAmbientContext; + const inAmbientContext = node.flags & 33554432 /* Ambient */; + const inAmbientContextOrInterface = node.parent && (node.parent.kind === 264 /* InterfaceDeclaration */ || node.parent.kind === 187 /* TypeLiteral */) || inAmbientContext; if (inAmbientContextOrInterface) { previousDeclaration = void 0; } - if ((node.kind === 262 /* ClassDeclaration */ || node.kind === 230 /* ClassExpression */) && !inAmbientContext) { + if ((node.kind === 263 /* ClassDeclaration */ || node.kind === 231 /* ClassExpression */) && !inAmbientContext) { hasNonAmbientClass = true; } - if (node.kind === 261 /* FunctionDeclaration */ || node.kind === 173 /* MethodDeclaration */ || node.kind === 172 /* MethodSignature */ || node.kind === 175 /* Constructor */) { + if (node.kind === 262 /* FunctionDeclaration */ || node.kind === 174 /* MethodDeclaration */ || node.kind === 173 /* MethodSignature */ || node.kind === 176 /* Constructor */) { functionDeclarations.push(node); const currentNodeFlags = getEffectiveDeclarationFlags(node, flagsToCheck); someNodeFlags |= currentNodeFlags; @@ -75314,9 +75805,9 @@ function createTypeChecker(host) { }); } if (hasNonAmbientClass && !isConstructor && symbol.flags & 16 /* Function */ && declarations) { - const relatedDiagnostics = filter(declarations, (d) => d.kind === 262 /* ClassDeclaration */).map((d) => createDiagnosticForNode(d, Diagnostics.Consider_adding_a_declare_modifier_to_this_class)); + const relatedDiagnostics = filter(declarations, (d) => d.kind === 263 /* ClassDeclaration */).map((d) => createDiagnosticForNode(d, Diagnostics.Consider_adding_a_declare_modifier_to_this_class)); forEach(declarations, (declaration) => { - const diagnostic = declaration.kind === 262 /* ClassDeclaration */ ? Diagnostics.Class_declaration_cannot_implement_overload_list_for_0 : declaration.kind === 261 /* FunctionDeclaration */ ? Diagnostics.Function_with_bodies_can_only_merge_with_classes_that_are_ambient : void 0; + const diagnostic = declaration.kind === 263 /* ClassDeclaration */ ? Diagnostics.Class_declaration_cannot_implement_overload_list_for_0 : declaration.kind === 262 /* FunctionDeclaration */ ? Diagnostics.Function_with_bodies_can_only_merge_with_classes_that_are_ambient : void 0; if (diagnostic) { addRelatedInfo( error(getNameOfDeclaration(declaration) || declaration, diagnostic, symbolName(symbol)), @@ -75396,45 +75887,45 @@ function createTypeChecker(host) { function getDeclarationSpaces(decl) { let d = decl; switch (d.kind) { - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 352 /* JSDocTypedefTag */: - case 344 /* JSDocCallbackTag */: - case 346 /* JSDocEnumTag */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 353 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: + case 347 /* JSDocEnumTag */: return 2 /* ExportType */; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return isAmbientModule(d) || getModuleInstanceState(d) !== 0 /* NonInstantiated */ ? 4 /* ExportNamespace */ | 1 /* ExportValue */ : 4 /* ExportNamespace */; - case 262 /* ClassDeclaration */: - case 265 /* EnumDeclaration */: - case 305 /* EnumMember */: + case 263 /* ClassDeclaration */: + case 266 /* EnumDeclaration */: + case 306 /* EnumMember */: return 2 /* ExportType */ | 1 /* ExportValue */; - case 311 /* SourceFile */: + case 312 /* SourceFile */: return 2 /* ExportType */ | 1 /* ExportValue */ | 4 /* ExportNamespace */; - case 276 /* ExportAssignment */: - case 225 /* BinaryExpression */: + case 277 /* ExportAssignment */: + case 226 /* BinaryExpression */: const node2 = d; const expression = isExportAssignment(node2) ? node2.expression : node2.right; if (!isEntityNameExpression(expression)) { return 1 /* ExportValue */; } d = expression; - case 270 /* ImportEqualsDeclaration */: - case 273 /* NamespaceImport */: - case 272 /* ImportClause */: + case 271 /* ImportEqualsDeclaration */: + case 274 /* NamespaceImport */: + case 273 /* ImportClause */: let result = 0 /* None */; const target = resolveAlias(getSymbolOfDeclaration(d)); forEach(target.declarations, (d2) => { result |= getDeclarationSpaces(d2); }); return result; - case 259 /* VariableDeclaration */: - case 207 /* BindingElement */: - case 261 /* FunctionDeclaration */: - case 275 /* ImportSpecifier */: + case 260 /* VariableDeclaration */: + case 208 /* BindingElement */: + case 262 /* FunctionDeclaration */: + case 276 /* ImportSpecifier */: case 80 /* Identifier */: return 1 /* ExportValue */; - case 172 /* MethodSignature */: - case 170 /* PropertySignature */: + case 173 /* MethodSignature */: + case 171 /* PropertySignature */: return 2 /* ExportType */; default: return Debug.failBadSyntaxKind(d); @@ -75630,7 +76121,7 @@ function createTypeChecker(host) { } return typeAsAwaitable.awaitedTypeOfType = type; } - function checkAsyncFunctionReturnType(node, returnTypeNode) { + function checkAsyncFunctionReturnType(node, returnTypeNode, returnTypeErrorLocation) { const returnType = getTypeFromTypeNode(returnTypeNode); if (languageVersion >= 2 /* ES2015 */) { if (isErrorType(returnType)) { @@ -75641,7 +76132,7 @@ function createTypeChecker(host) { true ); if (globalPromiseType !== emptyGenericType && !isReferenceToType(returnType, globalPromiseType)) { - error(returnTypeNode, Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0, typeToString(getAwaitedTypeNoAlias(returnType) || voidType)); + reportErrorForInvalidReturnType(Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0, returnTypeNode, returnTypeErrorLocation, typeToString(getAwaitedTypeNoAlias(returnType) || voidType)); return; } } else { @@ -75651,7 +76142,7 @@ function createTypeChecker(host) { } const promiseConstructorName = getEntityNameFromTypeNode(returnTypeNode); if (promiseConstructorName === void 0) { - error(returnTypeNode, Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, typeToString(returnType)); + reportErrorForInvalidReturnType(Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, returnTypeNode, returnTypeErrorLocation, typeToString(returnType)); return; } const promiseConstructorSymbol = resolveEntityName( @@ -75666,9 +76157,9 @@ function createTypeChecker(host) { /*reportErrors*/ false )) { - error(returnTypeNode, Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option); + error(returnTypeErrorLocation, Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option); } else { - error(returnTypeNode, Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, entityNameToString(promiseConstructorName)); + reportErrorForInvalidReturnType(Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, returnTypeNode, returnTypeErrorLocation, entityNameToString(promiseConstructorName)); } return; } @@ -75677,15 +76168,16 @@ function createTypeChecker(host) { true ); if (globalPromiseConstructorLikeType === emptyObjectType) { - error(returnTypeNode, Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, entityNameToString(promiseConstructorName)); + reportErrorForInvalidReturnType(Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, returnTypeNode, returnTypeErrorLocation, entityNameToString(promiseConstructorName)); return; } - if (!checkTypeAssignableTo( - promiseConstructorType, - globalPromiseConstructorLikeType, - returnTypeNode, - Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value - )) { + const headMessage = Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value; + const errorInfo = () => returnTypeNode === returnTypeErrorLocation ? void 0 : chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type + ); + if (!checkTypeAssignableTo(promiseConstructorType, globalPromiseConstructorLikeType, returnTypeErrorLocation, headMessage, errorInfo)) { return; } const rootName = promiseConstructorName && getFirstIdentifier(promiseConstructorName); @@ -75707,6 +76199,14 @@ function createTypeChecker(host) { node, Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member ); + function reportErrorForInvalidReturnType(message, returnTypeNode2, returnTypeErrorLocation2, typeName) { + if (returnTypeNode2 === returnTypeErrorLocation2) { + error(returnTypeErrorLocation2, message, typeName); + } else { + const diag2 = error(returnTypeErrorLocation2, Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type); + addRelatedInfo(diag2, createDiagnosticForNode(returnTypeNode2, message, typeName)); + } + } } function checkDecorator(node) { const signature = getResolvedSignature(node); @@ -75721,21 +76221,21 @@ function createTypeChecker(host) { let headMessage; const expectedReturnType = decoratorSignature.resolvedReturnType; switch (node.parent.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: headMessage = Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1; break; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: if (!legacyDecorators) { headMessage = Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1; break; } - case 168 /* Parameter */: + case 169 /* Parameter */: headMessage = Diagnostics.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any; break; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: headMessage = Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1; break; default: @@ -75825,15 +76325,15 @@ function createTypeChecker(host) { function getEntityNameForDecoratorMetadata(node) { if (node) { switch (node.kind) { - case 192 /* IntersectionType */: - case 191 /* UnionType */: + case 193 /* IntersectionType */: + case 192 /* UnionType */: return getEntityNameForDecoratorMetadataFromTypeList(node.types); - case 193 /* ConditionalType */: + case 194 /* ConditionalType */: return getEntityNameForDecoratorMetadataFromTypeList([node.trueType, node.falseType]); - case 195 /* ParenthesizedType */: - case 201 /* NamedTupleMember */: + case 196 /* ParenthesizedType */: + case 202 /* NamedTupleMember */: return getEntityNameForDecoratorMetadata(node.type); - case 182 /* TypeReference */: + case 183 /* TypeReference */: return node.typeName; } } @@ -75841,13 +76341,13 @@ function createTypeChecker(host) { function getEntityNameForDecoratorMetadataFromTypeList(types) { let commonEntityName; for (let typeNode of types) { - while (typeNode.kind === 195 /* ParenthesizedType */ || typeNode.kind === 201 /* NamedTupleMember */) { + while (typeNode.kind === 196 /* ParenthesizedType */ || typeNode.kind === 202 /* NamedTupleMember */) { typeNode = typeNode.type; } if (typeNode.kind === 146 /* NeverKeyword */) { continue; } - if (!strictNullChecks && (typeNode.kind === 200 /* LiteralType */ && typeNode.literal.kind === 106 /* NullKeyword */ || typeNode.kind === 157 /* UndefinedKeyword */)) { + if (!strictNullChecks && (typeNode.kind === 201 /* LiteralType */ && typeNode.literal.kind === 106 /* NullKeyword */ || typeNode.kind === 157 /* UndefinedKeyword */)) { continue; } const individualEntityName = getEntityNameForDecoratorMetadata(typeNode); @@ -75878,7 +76378,7 @@ function createTypeChecker(host) { } if (legacyDecorators) { checkExternalEmitHelpers(firstDecorator, 8 /* Decorate */); - if (node.kind === 168 /* Parameter */) { + if (node.kind === 169 /* Parameter */) { checkExternalEmitHelpers(firstDecorator, 32 /* Param */); } } else if (languageVersion < 99 /* ESNext */) { @@ -75904,7 +76404,7 @@ function createTypeChecker(host) { if (compilerOptions.emitDecoratorMetadata) { checkExternalEmitHelpers(firstDecorator, 16 /* Metadata */); switch (node.kind) { - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: const constructor = getFirstConstructorWithBody(node); if (constructor) { for (const parameter of constructor.parameters) { @@ -75912,27 +76412,28 @@ function createTypeChecker(host) { } } break; - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - const otherKind = node.kind === 176 /* GetAccessor */ ? 177 /* SetAccessor */ : 176 /* GetAccessor */; + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + const otherKind = node.kind === 177 /* GetAccessor */ ? 178 /* SetAccessor */ : 177 /* GetAccessor */; const otherAccessor = getDeclarationOfKind(getSymbolOfDeclaration(node), otherKind); markDecoratorMedataDataTypeNodeAsReferenced(getAnnotatedAccessorTypeNode(node) || otherAccessor && getAnnotatedAccessorTypeNode(otherAccessor)); break; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: for (const parameter of node.parameters) { markDecoratorMedataDataTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(parameter)); } markDecoratorMedataDataTypeNodeAsReferenced(getEffectiveReturnTypeNode(node)); break; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: markDecoratorMedataDataTypeNodeAsReferenced(getEffectiveTypeAnnotationNode(node)); break; - case 168 /* Parameter */: + case 169 /* Parameter */: markDecoratorMedataDataTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(node)); const containingSignature = node.parent; for (const parameter of containingSignature.parameters) { markDecoratorMedataDataTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(parameter)); } + markDecoratorMedataDataTypeNodeAsReferenced(getEffectiveReturnTypeNode(containingSignature)); break; } } @@ -76042,7 +76543,7 @@ function createTypeChecker(host) { switch (node.kind) { case 80 /* Identifier */: return node; - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return node.name; default: return void 0; @@ -76053,7 +76554,7 @@ function createTypeChecker(host) { checkDecorators(node); checkSignatureDeclaration(node); const functionFlags = getFunctionFlags(node); - if (node.name && node.name.kind === 166 /* ComputedPropertyName */) { + if (node.name && node.name.kind === 167 /* ComputedPropertyName */) { checkComputedPropertyName(node.name); } if (hasBindableName(node)) { @@ -76061,7 +76562,7 @@ function createTypeChecker(host) { const localSymbol = node.localSymbol || symbol; const firstDeclaration = (_a = localSymbol.declarations) == null ? void 0 : _a.find( // Get first non javascript function declaration - (declaration) => declaration.kind === node.kind && !(declaration.flags & 262144 /* JavaScriptFile */) + (declaration) => declaration.kind === node.kind && !(declaration.flags & 524288 /* JavaScriptFile */) ); if (node === firstDeclaration) { checkFunctionOrConstructorSymbol(localSymbol); @@ -76070,7 +76571,7 @@ function createTypeChecker(host) { checkFunctionOrConstructorSymbol(symbol); } } - const body = node.kind === 172 /* MethodSignature */ ? void 0 : node.body; + const body = node.kind === 173 /* MethodSignature */ ? void 0 : node.body; checkSourceElement(body); checkAllCodePathsInNonVoidFunctionReturnOrThrow(node, getReturnTypeFromAnnotation(node)); addLazyDiagnostic(checkFunctionOrMethodDeclarationDiagnostics); @@ -76106,42 +76607,42 @@ function createTypeChecker(host) { function checkUnusedIdentifiers(potentiallyUnusedIdentifiers, addDiagnostic) { for (const node of potentiallyUnusedIdentifiers) { switch (node.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: checkUnusedClassMembers(node, addDiagnostic); checkUnusedTypeParameters(node, addDiagnostic); break; - case 311 /* SourceFile */: - case 266 /* ModuleDeclaration */: - case 240 /* Block */: - case 268 /* CaseBlock */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: + case 312 /* SourceFile */: + case 267 /* ModuleDeclaration */: + case 241 /* Block */: + case 269 /* CaseBlock */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: checkUnusedLocalsAndParameters(node, addDiagnostic); break; - case 175 /* Constructor */: - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 176 /* Constructor */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: if (node.body) { checkUnusedLocalsAndParameters(node, addDiagnostic); } checkUnusedTypeParameters(node, addDiagnostic); break; - case 172 /* MethodSignature */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 264 /* TypeAliasDeclaration */: - case 263 /* InterfaceDeclaration */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 265 /* TypeAliasDeclaration */: + case 264 /* InterfaceDeclaration */: checkUnusedTypeParameters(node, addDiagnostic); break; - case 194 /* InferType */: + case 195 /* InferType */: checkUnusedInferTypeParameter(node, addDiagnostic); break; default: @@ -76160,28 +76661,28 @@ function createTypeChecker(host) { function checkUnusedClassMembers(node, addDiagnostic) { for (const member of node.members) { switch (member.kind) { - case 173 /* MethodDeclaration */: - case 171 /* PropertyDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - if (member.kind === 177 /* SetAccessor */ && member.symbol.flags & 32768 /* GetAccessor */) { + case 174 /* MethodDeclaration */: + case 172 /* PropertyDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + if (member.kind === 178 /* SetAccessor */ && member.symbol.flags & 32768 /* GetAccessor */) { break; } const symbol = getSymbolOfDeclaration(member); - if (!symbol.isReferenced && (hasEffectiveModifier(member, 8 /* Private */) || isNamedDeclaration(member) && isPrivateIdentifier(member.name)) && !(member.flags & 16777216 /* Ambient */)) { + if (!symbol.isReferenced && (hasEffectiveModifier(member, 8 /* Private */) || isNamedDeclaration(member) && isPrivateIdentifier(member.name)) && !(member.flags & 33554432 /* Ambient */)) { addDiagnostic(member, 0 /* Local */, createDiagnosticForNode(member.name, Diagnostics._0_is_declared_but_its_value_is_never_read, symbolToString(symbol))); } break; - case 175 /* Constructor */: + case 176 /* Constructor */: for (const parameter of member.parameters) { if (!parameter.symbol.isReferenced && hasSyntacticModifier(parameter, 8 /* Private */)) { addDiagnostic(parameter, 0 /* Local */, createDiagnosticForNode(parameter.name, Diagnostics.Property_0_is_declared_but_its_value_is_never_read, symbolName(parameter.symbol))); } } break; - case 180 /* IndexSignature */: - case 239 /* SemicolonClassElement */: - case 174 /* ClassStaticBlockDeclaration */: + case 181 /* IndexSignature */: + case 240 /* SemicolonClassElement */: + case 175 /* ClassStaticBlockDeclaration */: break; default: Debug.fail("Unexpected class member"); @@ -76205,7 +76706,7 @@ function createTypeChecker(host) { continue; const name = idText(typeParameter.name); const { parent } = typeParameter; - if (parent.kind !== 194 /* InferType */ && parent.typeParameters.every(isTypeParameterUnused)) { + if (parent.kind !== 195 /* InferType */ && parent.typeParameters.every(isTypeParameterUnused)) { if (tryAddToSet(seenParentsWithEveryUnused, parent)) { const sourceFile = getSourceFileOfNode(parent); const range = isJSDocTemplateTag(parent) ? rangeOfNode(parent) : rangeOfTypeParameters(sourceFile, parent.typeParameters); @@ -76263,7 +76764,11 @@ function createTypeChecker(host) { addToGroup(unusedDestructures, declaration.parent, declaration, getNodeId); } } else if (isVariableDeclaration(declaration)) { - addToGroup(unusedVariables, declaration.parent, declaration, getNodeId); + const blockScopeKind = getCombinedNodeFlagsCached(declaration) & 7 /* BlockScoped */; + const name = getNameOfDeclaration(declaration); + if (blockScopeKind !== 4 /* Using */ && blockScopeKind !== 6 /* AwaitUsing */ || !name || !isIdentifierThatStartsWithUnderscore(name)) { + addToGroup(unusedVariables, declaration.parent, declaration, getNodeId); + } } else { const parameter = local.valueDeclaration && tryGetRootParameterDeclaration(local.valueDeclaration); const name = local.valueDeclaration && getNameOfDeclaration(local.valueDeclaration); @@ -76284,7 +76789,7 @@ function createTypeChecker(host) { }); unusedImports.forEach(([importClause, unuseds]) => { const importDecl = importClause.parent; - const nDeclarations = (importClause.name ? 1 : 0) + (importClause.namedBindings ? importClause.namedBindings.kind === 273 /* NamespaceImport */ ? 1 : importClause.namedBindings.elements.length : 0); + const nDeclarations = (importClause.name ? 1 : 0) + (importClause.namedBindings ? importClause.namedBindings.kind === 274 /* NamespaceImport */ ? 1 : importClause.namedBindings.elements.length : 0); if (nDeclarations === unuseds.length) { addDiagnostic(importDecl, 0 /* Local */, unuseds.length === 1 ? createDiagnosticForNode(importDecl, Diagnostics._0_is_declared_but_its_value_is_never_read, idText(first(unuseds).name)) : createDiagnosticForNode(importDecl, Diagnostics.All_imports_in_import_declaration_are_unused)); } else { @@ -76295,7 +76800,7 @@ function createTypeChecker(host) { unusedDestructures.forEach(([bindingPattern, bindingElements]) => { const kind = tryGetRootParameterDeclaration(bindingPattern.parent) ? 1 /* Parameter */ : 0 /* Local */; if (bindingPattern.elements.length === bindingElements.length) { - if (bindingElements.length === 1 && bindingPattern.parent.kind === 259 /* VariableDeclaration */ && bindingPattern.parent.parent.kind === 260 /* VariableDeclarationList */) { + if (bindingElements.length === 1 && bindingPattern.parent.kind === 260 /* VariableDeclaration */ && bindingPattern.parent.parent.kind === 261 /* VariableDeclarationList */) { addToGroup(unusedVariables, bindingPattern.parent.parent, bindingPattern.parent, getNodeId); } else { addDiagnostic(bindingPattern, kind, bindingElements.length === 1 ? createDiagnosticForNode(bindingPattern, Diagnostics._0_is_declared_but_its_value_is_never_read, bindingNameText(first(bindingElements).name)) : createDiagnosticForNode(bindingPattern, Diagnostics.All_destructured_elements_are_unused)); @@ -76308,7 +76813,7 @@ function createTypeChecker(host) { }); unusedVariables.forEach(([declarationList, declarations]) => { if (declarationList.declarations.length === declarations.length) { - addDiagnostic(declarationList, 0 /* Local */, declarations.length === 1 ? createDiagnosticForNode(first(declarations).name, Diagnostics._0_is_declared_but_its_value_is_never_read, bindingNameText(first(declarations).name)) : createDiagnosticForNode(declarationList.parent.kind === 242 /* VariableStatement */ ? declarationList.parent : declarationList, Diagnostics.All_variables_are_unused)); + addDiagnostic(declarationList, 0 /* Local */, declarations.length === 1 ? createDiagnosticForNode(first(declarations).name, Diagnostics._0_is_declared_but_its_value_is_never_read, bindingNameText(first(declarations).name)) : createDiagnosticForNode(declarationList.parent.kind === 243 /* VariableStatement */ ? declarationList.parent : declarationList, Diagnostics.All_variables_are_unused)); } else { for (const decl of declarations) { addDiagnostic(decl, 0 /* Local */, createDiagnosticForNode(decl, Diagnostics._0_is_declared_but_its_value_is_never_read, bindingNameText(decl.name))); @@ -76337,21 +76842,21 @@ function createTypeChecker(host) { switch (name.kind) { case 80 /* Identifier */: return idText(name); - case 206 /* ArrayBindingPattern */: - case 205 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: + case 206 /* ObjectBindingPattern */: return bindingNameText(cast(first(name.elements), isBindingElement).name); default: return Debug.assertNever(name); } } function isImportedDeclaration(node) { - return node.kind === 272 /* ImportClause */ || node.kind === 275 /* ImportSpecifier */ || node.kind === 273 /* NamespaceImport */; + return node.kind === 273 /* ImportClause */ || node.kind === 276 /* ImportSpecifier */ || node.kind === 274 /* NamespaceImport */; } function importClauseFromImported(decl) { - return decl.kind === 272 /* ImportClause */ ? decl : decl.kind === 273 /* NamespaceImport */ ? decl.parent : decl.parent.parent; + return decl.kind === 273 /* ImportClause */ ? decl : decl.kind === 274 /* NamespaceImport */ ? decl.parent : decl.parent.parent; } function checkBlock(node) { - if (node.kind === 240 /* Block */) { + if (node.kind === 241 /* Block */) { checkGrammarStatementInAmbientContext(node); } if (isFunctionOrModuleBlock(node)) { @@ -76366,7 +76871,7 @@ function createTypeChecker(host) { } } function checkCollisionWithArgumentsInGeneratedCode(node) { - if (languageVersion >= 2 /* ES2015 */ || !hasRestParameter(node) || node.flags & 16777216 /* Ambient */ || nodeIsMissing(node.body)) { + if (languageVersion >= 2 /* ES2015 */ || !hasRestParameter(node) || node.flags & 33554432 /* Ambient */ || nodeIsMissing(node.body)) { return; } forEach(node.parameters, (p) => { @@ -76379,10 +76884,10 @@ function createTypeChecker(host) { if ((identifier == null ? void 0 : identifier.escapedText) !== name) { return false; } - if (node.kind === 171 /* PropertyDeclaration */ || node.kind === 170 /* PropertySignature */ || node.kind === 173 /* MethodDeclaration */ || node.kind === 172 /* MethodSignature */ || node.kind === 176 /* GetAccessor */ || node.kind === 177 /* SetAccessor */ || node.kind === 302 /* PropertyAssignment */) { + if (node.kind === 172 /* PropertyDeclaration */ || node.kind === 171 /* PropertySignature */ || node.kind === 174 /* MethodDeclaration */ || node.kind === 173 /* MethodSignature */ || node.kind === 177 /* GetAccessor */ || node.kind === 178 /* SetAccessor */ || node.kind === 303 /* PropertyAssignment */) { return false; } - if (node.flags & 16777216 /* Ambient */) { + if (node.flags & 33554432 /* Ambient */) { return false; } if (isImportClause(node) || isImportEqualsDeclaration(node) || isImportSpecifier(node)) { @@ -76435,7 +76940,7 @@ function createTypeChecker(host) { return; } const parent = getDeclarationContainer(node); - if (parent.kind === 311 /* SourceFile */ && isExternalOrCommonJsModule(parent)) { + if (parent.kind === 312 /* SourceFile */ && isExternalOrCommonJsModule(parent)) { errorSkippedOn( "noEmit", name, @@ -76453,7 +76958,7 @@ function createTypeChecker(host) { return; } const parent = getDeclarationContainer(node); - if (parent.kind === 311 /* SourceFile */ && isExternalOrCommonJsModule(parent) && parent.flags & 2048 /* HasAsyncFunctions */) { + if (parent.kind === 312 /* SourceFile */ && isExternalOrCommonJsModule(parent) && parent.flags & 4096 /* HasAsyncFunctions */) { errorSkippedOn( "noEmit", name, @@ -76470,7 +76975,7 @@ function createTypeChecker(host) { } function checkWeakMapSetCollision(node) { const enclosingBlockScope = getEnclosingBlockScopeContainer(node); - if (getNodeCheckFlags(enclosingBlockScope) & 4194304 /* ContainsClassWithPrivateIdentifiers */) { + if (getNodeCheckFlags(enclosingBlockScope) & 1048576 /* ContainsClassWithPrivateIdentifiers */) { Debug.assert(isNamedDeclaration(node) && isIdentifier(node.name) && typeof node.name.escapedText === "string", "The target of a WeakMap/WeakSet collision check should be an identifier"); errorSkippedOn("noEmit", node, Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel, node.name.escapedText); } @@ -76484,18 +76989,18 @@ function createTypeChecker(host) { let hasCollision = false; if (isClassExpression(node)) { for (const member of node.members) { - if (getNodeCheckFlags(member) & 8388608 /* ContainsSuperPropertyInStaticInitializer */) { + if (getNodeCheckFlags(member) & 2097152 /* ContainsSuperPropertyInStaticInitializer */) { hasCollision = true; break; } } } else if (isFunctionExpression(node)) { - if (getNodeCheckFlags(node) & 8388608 /* ContainsSuperPropertyInStaticInitializer */) { + if (getNodeCheckFlags(node) & 2097152 /* ContainsSuperPropertyInStaticInitializer */) { hasCollision = true; } } else { const container = getEnclosingBlockScopeContainer(node); - if (container && getNodeCheckFlags(container) & 8388608 /* ContainsSuperPropertyInStaticInitializer */) { + if (container && getNodeCheckFlags(container) & 2097152 /* ContainsSuperPropertyInStaticInitializer */) { hasCollision = true; } } @@ -76519,7 +77024,7 @@ function createTypeChecker(host) { recordPotentialCollisionWithReflectInGeneratedCode(node, name); if (isClassLike(node)) { checkTypeNameIsReserved(name, Diagnostics.Class_name_cannot_be_0); - if (!(node.flags & 16777216 /* Ambient */)) { + if (!(node.flags & 33554432 /* Ambient */)) { checkClassNameCollisionWithObject(name); } } else if (isEnumDeclaration(node)) { @@ -76527,10 +77032,7 @@ function createTypeChecker(host) { } } function checkVarDeclaredNamesNotShadowed(node) { - if ((getCombinedNodeFlags(node) & 3 /* BlockScoped */) !== 0 || isParameterDeclaration(node)) { - return; - } - if (node.kind === 259 /* VariableDeclaration */ && !node.initializer) { + if ((getCombinedNodeFlagsCached(node) & 7 /* BlockScoped */) !== 0 || isParameterDeclaration(node)) { return; } const symbol = getSymbolOfDeclaration(node); @@ -76549,10 +77051,10 @@ function createTypeChecker(host) { false ); if (localDeclarationSymbol && localDeclarationSymbol !== symbol && localDeclarationSymbol.flags & 2 /* BlockScopedVariable */) { - if (getDeclarationNodeFlagsFromSymbol(localDeclarationSymbol) & 3 /* BlockScoped */) { - const varDeclList = getAncestor(localDeclarationSymbol.valueDeclaration, 260 /* VariableDeclarationList */); - const container = varDeclList.parent.kind === 242 /* VariableStatement */ && varDeclList.parent.parent ? varDeclList.parent.parent : void 0; - const namesShareScope = container && (container.kind === 240 /* Block */ && isFunctionLike(container.parent) || container.kind === 267 /* ModuleBlock */ || container.kind === 266 /* ModuleDeclaration */ || container.kind === 311 /* SourceFile */); + if (getDeclarationNodeFlagsFromSymbol(localDeclarationSymbol) & 7 /* BlockScoped */) { + const varDeclList = getAncestor(localDeclarationSymbol.valueDeclaration, 261 /* VariableDeclarationList */); + const container = varDeclList.parent.kind === 243 /* VariableStatement */ && varDeclList.parent.parent ? varDeclList.parent.parent : void 0; + const namesShareScope = container && (container.kind === 241 /* Block */ && isFunctionLike(container.parent) || container.kind === 268 /* ModuleBlock */ || container.kind === 267 /* ModuleDeclaration */ || container.kind === 312 /* SourceFile */); if (!namesShareScope) { const name = symbolToString(localDeclarationSymbol); error(node, Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1, name, name); @@ -76573,7 +77075,7 @@ function createTypeChecker(host) { if (!node.name) { return; } - if (node.name.kind === 166 /* ComputedPropertyName */) { + if (node.name.kind === 167 /* ComputedPropertyName */) { checkComputedPropertyName(node.name); if (hasOnlyExpressionInitializer(node) && node.initializer) { checkExpressionCached(node.initializer); @@ -76587,7 +77089,7 @@ function createTypeChecker(host) { if (isObjectBindingPattern(node.parent) && node.dotDotDotToken && languageVersion < 5 /* ES2018 */) { checkExternalEmitHelpers(node, 4 /* Rest */); } - if (node.propertyName && node.propertyName.kind === 166 /* ComputedPropertyName */) { + if (node.propertyName && node.propertyName.kind === 167 /* ComputedPropertyName */) { checkComputedPropertyName(node.propertyName); } const parent = node.parent.parent; @@ -76620,7 +77122,7 @@ function createTypeChecker(host) { } } if (isBindingPattern(node.name)) { - if (node.name.kind === 206 /* ArrayBindingPattern */ && languageVersion < 2 /* ES2015 */ && compilerOptions.downlevelIteration) { + if (node.name.kind === 207 /* ArrayBindingPattern */ && languageVersion < 2 /* ES2015 */ && compilerOptions.downlevelIteration) { checkExternalEmitHelpers(node, 512 /* Read */); } forEach(node.name.elements, checkSourceElement); @@ -76633,7 +77135,7 @@ function createTypeChecker(host) { if (isInAmbientOrTypeNode(node)) { return; } - const needCheckInitializer = hasOnlyExpressionInitializer(node) && node.initializer && node.parent.parent.kind !== 248 /* ForInStatement */; + const needCheckInitializer = hasOnlyExpressionInitializer(node) && node.initializer && node.parent.parent.kind !== 249 /* ForInStatement */; const needCheckWidenedType = !some(node.name.elements, not(isOmittedExpression)); if (needCheckInitializer || needCheckWidenedType) { const widenedType = getWidenedTypeForVariableLikeDeclaration(node); @@ -76665,15 +77167,40 @@ function createTypeChecker(host) { const initializer = hasOnlyExpressionInitializer(node) && getEffectiveInitializer(node); if (initializer) { const isJSObjectLiteralInitializer = isInJSFile(node) && isObjectLiteralExpression(initializer) && (initializer.properties.length === 0 || isPrototypeAccess(node.name)) && !!((_a = symbol.exports) == null ? void 0 : _a.size); - if (!isJSObjectLiteralInitializer && node.parent.parent.kind !== 248 /* ForInStatement */) { + if (!isJSObjectLiteralInitializer && node.parent.parent.kind !== 249 /* ForInStatement */) { + const initializerType = checkExpressionCached(initializer); checkTypeAssignableToAndOptionallyElaborate( - checkExpressionCached(initializer), + initializerType, type, node, initializer, /*headMessage*/ void 0 ); + const blockScopeKind = getCombinedNodeFlagsCached(node) & 7 /* BlockScoped */; + if (blockScopeKind === 6 /* AwaitUsing */) { + const globalAsyncDisposableType = getGlobalAsyncDisposableType( + /*reportErrors*/ + true + ); + const globalDisposableType = getGlobalDisposableType( + /*reportErrors*/ + true + ); + if (globalAsyncDisposableType !== emptyObjectType && globalDisposableType !== emptyObjectType) { + const optionalDisposableType = getUnionType([globalAsyncDisposableType, globalDisposableType, nullType, undefinedType]); + checkTypeAssignableTo(initializerType, optionalDisposableType, initializer, Diagnostics.The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined); + } + } else if (blockScopeKind === 4 /* Using */) { + const globalDisposableType = getGlobalDisposableType( + /*reportErrors*/ + true + ); + if (globalDisposableType !== emptyObjectType) { + const optionalDisposableType = getUnionType([globalDisposableType, nullType, undefinedType]); + checkTypeAssignableTo(initializerType, optionalDisposableType, initializer, Diagnostics.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined); + } + } } } if (symbol.declarations && symbol.declarations.length > 1) { @@ -76700,9 +77227,9 @@ function createTypeChecker(host) { error(node.name, Diagnostics.All_declarations_of_0_must_have_identical_modifiers, declarationNameToString(node.name)); } } - if (node.kind !== 171 /* PropertyDeclaration */ && node.kind !== 170 /* PropertySignature */) { + if (node.kind !== 172 /* PropertyDeclaration */ && node.kind !== 171 /* PropertySignature */) { checkExportsOnMergedDeclarations(node); - if (node.kind === 259 /* VariableDeclaration */ || node.kind === 207 /* BindingElement */) { + if (node.kind === 260 /* VariableDeclaration */ || node.kind === 208 /* BindingElement */) { checkVarDeclaredNamesNotShadowed(node); } checkCollisionsForDeclarationName(node, node.name); @@ -76710,7 +77237,7 @@ function createTypeChecker(host) { } function errorNextVariableOrPropertyDeclarationMustHaveSameType(firstDeclaration, firstType, nextDeclaration, nextType) { const nextDeclarationName = getNameOfDeclaration(nextDeclaration); - const message = nextDeclaration.kind === 171 /* PropertyDeclaration */ || nextDeclaration.kind === 170 /* PropertySignature */ ? Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2 : Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2; + const message = nextDeclaration.kind === 172 /* PropertyDeclaration */ || nextDeclaration.kind === 171 /* PropertySignature */ ? Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2 : Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2; const declName = declarationNameToString(nextDeclarationName); const err = error( nextDeclarationName, @@ -76727,7 +77254,7 @@ function createTypeChecker(host) { } } function areDeclarationFlagsIdentical(left, right) { - if (left.kind === 168 /* Parameter */ && right.kind === 259 /* VariableDeclaration */ || left.kind === 259 /* VariableDeclaration */ && right.kind === 168 /* Parameter */) { + if (left.kind === 169 /* Parameter */ && right.kind === 260 /* VariableDeclaration */ || left.kind === 260 /* VariableDeclaration */ && right.kind === 169 /* Parameter */) { return true; } if (hasQuestionToken(left) !== hasQuestionToken(right)) { @@ -76747,10 +77274,17 @@ function createTypeChecker(host) { checkGrammarBindingElement(node); return checkVariableLikeDeclaration(node); } + function checkVariableDeclarationList(node) { + const blockScopeKind = getCombinedNodeFlags(node) & 7 /* BlockScoped */; + if (blockScopeKind === 4 /* Using */ || blockScopeKind === 6 /* AwaitUsing */) { + checkExternalEmitHelpers(node, 33554432 /* AddDisposableResourceAndDisposeResources */); + } + forEach(node.declarations, checkSourceElement); + } function checkVariableStatement(node) { if (!checkGrammarModifiers(node) && !checkGrammarVariableDeclarationList(node.declarationList)) - checkGrammarForDisallowedLetOrConstStatement(node); - forEach(node.declarationList.declarations, checkSourceElement); + checkGrammarForDisallowedBlockScopedVariableStatement(node); + checkVariableDeclarationList(node.declarationList); } function checkExpressionStatement(node) { checkGrammarStatementInAmbientContext(node); @@ -76761,7 +77295,7 @@ function createTypeChecker(host) { const type = checkTruthinessExpression(node.expression); checkTestingKnownTruthyCallableOrAwaitableType(node.expression, type, node.thenStatement); checkSourceElement(node.thenStatement); - if (node.thenStatement.kind === 241 /* EmptyStatement */) { + if (node.thenStatement.kind === 242 /* EmptyStatement */) { error(node.thenStatement, Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement); } checkSourceElement(node.elseStatement); @@ -76887,13 +77421,13 @@ function createTypeChecker(host) { } function checkForStatement(node) { if (!checkGrammarStatementInAmbientContext(node)) { - if (node.initializer && node.initializer.kind === 260 /* VariableDeclarationList */) { + if (node.initializer && node.initializer.kind === 261 /* VariableDeclarationList */) { checkGrammarVariableDeclarationList(node.initializer); } } if (node.initializer) { - if (node.initializer.kind === 260 /* VariableDeclarationList */) { - forEach(node.initializer.declarations, checkVariableDeclaration); + if (node.initializer.kind === 261 /* VariableDeclarationList */) { + checkVariableDeclarationList(node.initializer); } else { checkExpression(node.initializer); } @@ -76912,7 +77446,7 @@ function createTypeChecker(host) { const container = getContainingFunctionOrClassStaticBlock(node); if (node.awaitModifier) { if (container && isClassStaticBlockDeclaration(container)) { - grammarErrorOnNode(node.awaitModifier, Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block); + grammarErrorOnNode(node.awaitModifier, Diagnostics.for_await_loops_cannot_be_used_inside_a_class_static_block); } else { const functionFlags = getFunctionFlags(container); if ((functionFlags & (4 /* Invalid */ | 2 /* Async */)) === 2 /* Async */ && languageVersion < 99 /* ESNext */) { @@ -76922,12 +77456,12 @@ function createTypeChecker(host) { } else if (compilerOptions.downlevelIteration && languageVersion < 2 /* ES2015 */) { checkExternalEmitHelpers(node, 256 /* ForOfIncludes */); } - if (node.initializer.kind === 260 /* VariableDeclarationList */) { - checkForInOrForOfVariableDeclaration(node); + if (node.initializer.kind === 261 /* VariableDeclarationList */) { + checkVariableDeclarationList(node.initializer); } else { const varExpr = node.initializer; const iteratedType = checkRightHandSideOfForOf(node); - if (varExpr.kind === 208 /* ArrayLiteralExpression */ || varExpr.kind === 209 /* ObjectLiteralExpression */) { + if (varExpr.kind === 209 /* ArrayLiteralExpression */ || varExpr.kind === 210 /* ObjectLiteralExpression */) { checkDestructuringAssignment(varExpr, iteratedType || errorType); } else { const leftType = checkExpression(varExpr); @@ -76949,16 +77483,16 @@ function createTypeChecker(host) { function checkForInStatement(node) { checkGrammarForInOrForOfStatement(node); const rightType = getNonNullableTypeIfNeeded(checkExpression(node.expression)); - if (node.initializer.kind === 260 /* VariableDeclarationList */) { + if (node.initializer.kind === 261 /* VariableDeclarationList */) { const variable = node.initializer.declarations[0]; if (variable && isBindingPattern(variable.name)) { error(variable.name, Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern); } - checkForInOrForOfVariableDeclaration(node); + checkVariableDeclarationList(node.initializer); } else { const varExpr = node.initializer; const leftType = checkExpression(varExpr); - if (varExpr.kind === 208 /* ArrayLiteralExpression */ || varExpr.kind === 209 /* ObjectLiteralExpression */) { + if (varExpr.kind === 209 /* ArrayLiteralExpression */ || varExpr.kind === 210 /* ObjectLiteralExpression */) { error(varExpr, Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern); } else if (!isTypeAssignableTo(getIndexTypeOrString(rightType), leftType)) { error(varExpr, Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any); @@ -76978,13 +77512,6 @@ function createTypeChecker(host) { registerForUnusedIdentifiersCheck(node); } } - function checkForInOrForOfVariableDeclaration(iterationStatement) { - const variableDeclarationList = iterationStatement.initializer; - if (variableDeclarationList.declarations.length >= 1) { - const decl = variableDeclarationList.declarations[0]; - checkVariableDeclaration(decl); - } - } function checkRightHandSideOfForOf(statement) { const use = statement.awaitModifier ? 15 /* ForAwaitOf */ : 13 /* ForOf */; return checkIteratedTypeOrElementType(use, checkNonNullExpression(statement.expression), undefinedType, statement.expression); @@ -77641,11 +78168,11 @@ function createTypeChecker(host) { const functionFlags = getFunctionFlags(container); if (strictNullChecks || node.expression || returnType.flags & 131072 /* Never */) { const exprType = node.expression ? checkExpressionCached(node.expression) : undefinedType; - if (container.kind === 177 /* SetAccessor */) { + if (container.kind === 178 /* SetAccessor */) { if (node.expression) { error(node, Diagnostics.Setters_cannot_return_a_value); } - } else if (container.kind === 175 /* Constructor */) { + } else if (container.kind === 176 /* Constructor */) { if (node.expression && !checkTypeAssignableToAndOptionallyElaborate(exprType, returnType, node, node.expression)) { error(node, Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class); } @@ -77662,13 +78189,13 @@ function createTypeChecker(host) { checkTypeAssignableToAndOptionallyElaborate(unwrappedExprType, unwrappedReturnType, node, node.expression); } } - } else if (container.kind !== 175 /* Constructor */ && compilerOptions.noImplicitReturns && !isUnwrappedReturnTypeUndefinedVoidOrAny(container, returnType)) { + } else if (container.kind !== 176 /* Constructor */ && compilerOptions.noImplicitReturns && !isUnwrappedReturnTypeUndefinedVoidOrAny(container, returnType)) { error(node, Diagnostics.Not_all_code_paths_return_a_value); } } function checkWithStatement(node) { if (!checkGrammarStatementInAmbientContext(node)) { - if (node.flags & 32768 /* AwaitContext */) { + if (node.flags & 65536 /* AwaitContext */) { grammarErrorOnFirstToken(node, Diagnostics.with_statements_are_not_allowed_in_an_async_function_block); } } @@ -77686,7 +78213,7 @@ function createTypeChecker(host) { let hasDuplicateDefaultClause = false; const expressionType = checkExpression(node.expression); forEach(node.caseBlock.clauses, (clause) => { - if (clause.kind === 296 /* DefaultClause */ && !hasDuplicateDefaultClause) { + if (clause.kind === 297 /* DefaultClause */ && !hasDuplicateDefaultClause) { if (firstDefaultClause === void 0) { firstDefaultClause = clause; } else { @@ -77694,7 +78221,7 @@ function createTypeChecker(host) { hasDuplicateDefaultClause = true; } } - if (clause.kind === 295 /* CaseClause */) { + if (clause.kind === 296 /* CaseClause */) { addLazyDiagnostic(createLazyCaseClauseDiagnostics(clause)); } forEach(clause.statements, checkSourceElement); @@ -77726,7 +78253,7 @@ function createTypeChecker(host) { if (isFunctionLike(current)) { return "quit"; } - if (current.kind === 255 /* LabeledStatement */ && current.label.escapedText === node.label.escapedText) { + if (current.kind === 256 /* LabeledStatement */ && current.label.escapedText === node.label.escapedText) { grammarErrorOnNode(node.label, Diagnostics.Duplicate_label_0, getTextOfNode(node.label)); return true; } @@ -77816,8 +78343,8 @@ function createTypeChecker(host) { return; } const indexInfos = getApplicableIndexInfos(type, propNameType); - const interfaceDeclaration = getObjectFlags(type) & 2 /* Interface */ ? getDeclarationOfKind(type.symbol, 263 /* InterfaceDeclaration */) : void 0; - const propDeclaration = declaration && declaration.kind === 225 /* BinaryExpression */ || name && name.kind === 166 /* ComputedPropertyName */ ? declaration : void 0; + const interfaceDeclaration = getObjectFlags(type) & 2 /* Interface */ ? getDeclarationOfKind(type.symbol, 264 /* InterfaceDeclaration */) : void 0; + const propDeclaration = declaration && declaration.kind === 226 /* BinaryExpression */ || name && name.kind === 167 /* ComputedPropertyName */ ? declaration : void 0; const localPropDeclaration = getParentOfSymbol(prop) === type.symbol ? declaration : void 0; for (const info of indexInfos) { const localIndexDeclaration = info.declaration && getParentOfSymbol(getSymbolOfDeclaration(info.declaration)) === type.symbol ? info.declaration : void 0; @@ -77841,7 +78368,7 @@ function createTypeChecker(host) { function checkIndexConstraintForIndexSignature(type, checkInfo) { const declaration = checkInfo.declaration; const indexInfos = getApplicableIndexInfos(type, checkInfo.keyType); - const interfaceDeclaration = getObjectFlags(type) & 2 /* Interface */ ? getDeclarationOfKind(type.symbol, 263 /* InterfaceDeclaration */) : void 0; + const interfaceDeclaration = getObjectFlags(type) & 2 /* Interface */ ? getDeclarationOfKind(type.symbol, 264 /* InterfaceDeclaration */) : void 0; const localCheckDeclaration = declaration && getParentOfSymbol(getSymbolOfDeclaration(declaration)) === type.symbol ? declaration : void 0; for (const info of indexInfos) { if (info === checkInfo) @@ -77947,7 +78474,7 @@ function createTypeChecker(host) { function checkTypeParametersNotReferenced(root, typeParameters, index) { visit(root); function visit(node) { - if (node.kind === 182 /* TypeReference */) { + if (node.kind === 183 /* TypeReference */) { const type = getTypeFromTypeReference(node); if (type.flags & 262144 /* TypeParameter */) { for (let i = index; i < typeParameters.length; i++) { @@ -78017,7 +78544,7 @@ function createTypeChecker(host) { node ); const willTransformPrivateElementsOrClassStaticBlocks = languageVersion <= 9 /* ES2022 */; - const willTransformInitializers = !useDefineForClassFields || languageVersion < 9 /* ES2022 */; + const willTransformInitializers = !emitStandardClassFields; if (willTransformStaticElementsOfDecoratedClass || willTransformPrivateElementsOrClassStaticBlocks) { for (const member of node.members) { if (willTransformStaticElementsOfDecoratedClass && classElementOrClassElementParameterIsDecorated( @@ -78098,7 +78625,7 @@ function createTypeChecker(host) { checkTypeParameterListsIdentical(symbol); checkFunctionOrConstructorSymbol(symbol); checkClassForDuplicateDeclarations(node); - const nodeInAmbientContext = !!(node.flags & 16777216 /* Ambient */); + const nodeInAmbientContext = !!(node.flags & 33554432 /* Ambient */); if (!nodeInAmbientContext) { checkClassForStaticPropertyNameConflicts(node); } @@ -78269,7 +78796,7 @@ function createTypeChecker(host) { } function checkMemberForOverrideModifier(node, staticType, baseStaticType, baseWithThis, type, typeWithThis, memberHasOverrideModifier, memberHasAbstractModifier, memberIsStatic, memberIsParameterProperty, memberName, errorNode) { const isJs = isInJSFile(node); - const nodeInAmbientContext = !!(node.flags & 16777216 /* Ambient */); + const nodeInAmbientContext = !!(node.flags & 33554432 /* Ambient */); if (baseWithThis && (memberHasOverrideModifier || compilerOptions.noImplicitOverride)) { const memberEscapedName = escapeLeadingUnderscores(memberName); const thisType = memberIsStatic ? staticType : typeWithThis; @@ -78403,7 +78930,7 @@ function createTypeChecker(host) { return getCheckFlags(s) & 1 /* Instantiated */ ? s.links.target : s; } function getClassOrInterfaceDeclarationsOfSymbol(symbol) { - return filter(symbol.declarations, (d) => d.kind === 262 /* ClassDeclaration */ || d.kind === 263 /* InterfaceDeclaration */); + return filter(symbol.declarations, (d) => d.kind === 263 /* ClassDeclaration */ || d.kind === 264 /* InterfaceDeclaration */); } function checkKindsOfPropertyMemberOverrides(type, baseType) { var _a, _b, _c, _d; @@ -78442,7 +78969,7 @@ function createTypeChecker(host) { typeToString(baseType) ); } - if (derivedClassDecl.kind === 230 /* ClassExpression */) { + if (derivedClassDecl.kind === 231 /* ClassExpression */) { addRelatedInfo( inheritedAbstractMemberNotImplementedError, createDiagnosticForNode( @@ -78483,8 +79010,8 @@ function createTypeChecker(host) { const errorMessage2 = overriddenInstanceProperty ? Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property : Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor; error(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage2, symbolToString(base), typeToString(baseType), typeToString(type)); } else if (useDefineForClassFields) { - const uninitialized = (_c = derived.declarations) == null ? void 0 : _c.find((d) => d.kind === 171 /* PropertyDeclaration */ && !d.initializer); - if (uninitialized && !(derived.flags & 33554432 /* Transient */) && !(baseDeclarationFlags & 256 /* Abstract */) && !(derivedDeclarationFlags & 256 /* Abstract */) && !((_d = derived.declarations) == null ? void 0 : _d.some((d) => !!(d.flags & 16777216 /* Ambient */)))) { + const uninitialized = (_c = derived.declarations) == null ? void 0 : _c.find((d) => d.kind === 172 /* PropertyDeclaration */ && !d.initializer); + if (uninitialized && !(derived.flags & 33554432 /* Transient */) && !(baseDeclarationFlags & 256 /* Abstract */) && !(derivedDeclarationFlags & 256 /* Abstract */) && !((_d = derived.declarations) == null ? void 0 : _d.some((d) => !!(d.flags & 33554432 /* Ambient */)))) { const constructor = findConstructorDeclaration(getClassLikeDeclarationOfSymbol(type.symbol)); const propName = uninitialized.name; if (uninitialized.exclamationToken || !constructor || !isIdentifier(propName) || !strictNullChecks || !isPropertyInitializedInConstructor(propName, type, constructor)) { @@ -78571,7 +79098,7 @@ function createTypeChecker(host) { return ok; } function checkPropertyInitialization(node) { - if (!strictNullChecks || !strictPropertyInitialization || node.flags & 16777216 /* Ambient */) { + if (!strictNullChecks || !strictPropertyInitialization || node.flags & 33554432 /* Ambient */) { return; } const constructor = findConstructorDeclaration(node); @@ -78593,7 +79120,7 @@ function createTypeChecker(host) { } } function isPropertyWithoutInitializer(node) { - return node.kind === 171 /* PropertyDeclaration */ && !hasAbstractModifier(node) && !node.exclamationToken && !node.initializer; + return node.kind === 172 /* PropertyDeclaration */ && !hasAbstractModifier(node) && !node.exclamationToken && !node.initializer; } function isPropertyInitializedInStaticBlocks(propName, propType, staticBlocks, startPos, endPos) { for (const staticBlock of staticBlocks) { @@ -78627,7 +79154,7 @@ function createTypeChecker(host) { checkExportsOnMergedDeclarations(node); const symbol = getSymbolOfDeclaration(node); checkTypeParameterListsIdentical(symbol); - const firstInterfaceDecl = getDeclarationOfKind(symbol, 263 /* InterfaceDeclaration */); + const firstInterfaceDecl = getDeclarationOfKind(symbol, 264 /* InterfaceDeclaration */); if (node === firstInterfaceDecl) { const type = getDeclaredTypeOfSymbol(symbol); const typeWithThis = getTypeWithThisArgument(type); @@ -78690,7 +79217,7 @@ function createTypeChecker(host) { if (member.initializer) { return computeConstantValue(member); } - if (member.parent.flags & 16777216 /* Ambient */ && !isEnumConst(member.parent)) { + if (member.parent.flags & 33554432 /* Ambient */ && !isEnumConst(member.parent)) { return void 0; } if (autoValue !== void 0) { @@ -78709,7 +79236,7 @@ function createTypeChecker(host) { } } else if (isConstEnum) { error(initializer, Diagnostics.const_enum_member_initializers_must_be_constant_expressions); - } else if (member.parent.flags & 16777216 /* Ambient */) { + } else if (member.parent.flags & 33554432 /* Ambient */) { error(initializer, Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression); } else { checkTypeAssignableTo(checkExpression(initializer), numberType, initializer, Diagnostics.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values); @@ -78718,7 +79245,7 @@ function createTypeChecker(host) { } function evaluate(expr, location) { switch (expr.kind) { - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: const value = evaluate(expr.operand, location); if (typeof value === "number") { switch (expr.operator) { @@ -78731,7 +79258,7 @@ function createTypeChecker(host) { } } break; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: const left = evaluate(expr.left, location); const right = evaluate(expr.right, location); if (typeof left === "number" && typeof right === "number") { @@ -78768,18 +79295,30 @@ function createTypeChecker(host) { case 11 /* StringLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: return expr.text; - case 227 /* TemplateExpression */: + case 228 /* TemplateExpression */: return evaluateTemplateExpression(expr, location); case 9 /* NumericLiteral */: checkGrammarNumericLiteral(expr); return +expr.text; - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return evaluate(expr.expression, location); - case 80 /* Identifier */: - if (isInfinityOrNaNString(expr.escapedText)) { - return +expr.escapedText; + case 80 /* Identifier */: { + const identifier = expr; + if (isInfinityOrNaNString(identifier.escapedText) && resolveEntityName( + identifier, + 111551 /* Value */, + /*ignoreErrors*/ + true + ) === getGlobalSymbol( + identifier.escapedText, + 111551 /* Value */, + /*diagnostic*/ + void 0 + )) { + return +identifier.escapedText; } - case 210 /* PropertyAccessExpression */: + } + case 211 /* PropertyAccessExpression */: if (isEntityNameExpression(expr)) { const symbol = resolveEntityName( expr, @@ -78789,18 +79328,18 @@ function createTypeChecker(host) { ); if (symbol) { if (symbol.flags & 8 /* EnumMember */) { - return evaluateEnumMember(expr, symbol, location); + return location ? evaluateEnumMember(expr, symbol, location) : getEnumMemberValue(symbol.valueDeclaration); } - if (isConstVariable(symbol)) { + if (isConstantVariable(symbol)) { const declaration = symbol.valueDeclaration; - if (declaration && !declaration.type && declaration.initializer && declaration !== location && isBlockScopedNameDeclaredBeforeUse(declaration, location)) { + if (declaration && !declaration.type && declaration.initializer && (!location || declaration !== location && isBlockScopedNameDeclaredBeforeUse(declaration, location))) { return evaluate(declaration.initializer, declaration); } } } } break; - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: const root = expr.expression; if (isEntityNameExpression(root) && isStringLiteralLike(expr.argumentExpression)) { const rootSymbol = resolveEntityName( @@ -78813,7 +79352,7 @@ function createTypeChecker(host) { const name = escapeLeadingUnderscores(expr.argumentExpression.text); const member = rootSymbol.exports.get(name); if (member) { - return evaluateEnumMember(expr, member, location); + return location ? evaluateEnumMember(expr, member, location) : getEnumMemberValue(member.valueDeclaration); } } } @@ -78867,7 +79406,7 @@ function createTypeChecker(host) { } let seenEnumMissingInitialInitializer = false; forEach(enumSymbol.declarations, (declaration) => { - if (declaration.kind !== 265 /* EnumDeclaration */) { + if (declaration.kind !== 266 /* EnumDeclaration */) { return false; } const enumDeclaration = declaration; @@ -78897,7 +79436,7 @@ function createTypeChecker(host) { const declarations = symbol.declarations; if (declarations) { for (const declaration of declarations) { - if ((declaration.kind === 262 /* ClassDeclaration */ || declaration.kind === 261 /* FunctionDeclaration */ && nodeIsPresent(declaration.body)) && !(declaration.flags & 16777216 /* Ambient */)) { + if ((declaration.kind === 263 /* ClassDeclaration */ || declaration.kind === 262 /* FunctionDeclaration */ && nodeIsPresent(declaration.body)) && !(declaration.flags & 33554432 /* Ambient */)) { return declaration; } } @@ -78926,7 +79465,7 @@ function createTypeChecker(host) { function checkModuleDeclarationDiagnostics() { var _a, _b; const isGlobalAugmentation = isGlobalScopeAugmentation(node); - const inAmbientContext = node.flags & 16777216 /* Ambient */; + const inAmbientContext = node.flags & 33554432 /* Ambient */; if (isGlobalAugmentation && !inAmbientContext) { error(node.name, Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context); } @@ -78958,12 +79497,12 @@ function createTypeChecker(host) { error(node.name, Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged); } } - const mergedClass = getDeclarationOfKind(symbol, 262 /* ClassDeclaration */); + const mergedClass = getDeclarationOfKind(symbol, 263 /* ClassDeclaration */); if (mergedClass && inSameLexicalScope(node, mergedClass)) { getNodeLinks(node).flags |= 2048 /* LexicalModuleMergesWithClass */; } } - if (compilerOptions.verbatimModuleSyntax && node.parent.kind === 311 /* SourceFile */ && (moduleKind === 1 /* CommonJS */ || node.parent.impliedNodeFormat === 1 /* CommonJS */)) { + if (compilerOptions.verbatimModuleSyntax && node.parent.kind === 312 /* SourceFile */ && (moduleKind === 1 /* CommonJS */ || node.parent.impliedNodeFormat === 1 /* CommonJS */)) { const exportModifier = (_b = node.modifiers) == null ? void 0 : _b.find((m) => m.kind === 95 /* ExportKeyword */); if (exportModifier) { error(exportModifier, Diagnostics.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); @@ -78996,21 +79535,21 @@ function createTypeChecker(host) { } function checkModuleAugmentationElement(node, isGlobalAugmentation) { switch (node.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: for (const decl of node.declarationList.declarations) { checkModuleAugmentationElement(decl, isGlobalAugmentation); } break; - case 276 /* ExportAssignment */: - case 277 /* ExportDeclaration */: + case 277 /* ExportAssignment */: + case 278 /* ExportDeclaration */: grammarErrorOnFirstToken(node, Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations); break; - case 270 /* ImportEqualsDeclaration */: - case 271 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 272 /* ImportDeclaration */: grammarErrorOnFirstToken(node, Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module); break; - case 207 /* BindingElement */: - case 259 /* VariableDeclaration */: + case 208 /* BindingElement */: + case 260 /* VariableDeclaration */: const name = node.name; if (isBindingPattern(name)) { for (const el of name.elements) { @@ -79018,12 +79557,12 @@ function createTypeChecker(host) { } break; } - case 262 /* ClassDeclaration */: - case 265 /* EnumDeclaration */: - case 261 /* FunctionDeclaration */: - case 263 /* InterfaceDeclaration */: - case 266 /* ModuleDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 263 /* ClassDeclaration */: + case 266 /* EnumDeclaration */: + case 262 /* FunctionDeclaration */: + case 264 /* InterfaceDeclaration */: + case 267 /* ModuleDeclaration */: + case 265 /* TypeAliasDeclaration */: if (isGlobalAugmentation) { return; } @@ -79034,12 +79573,12 @@ function createTypeChecker(host) { switch (node.kind) { case 80 /* Identifier */: return node; - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: do { node = node.left; } while (node.kind !== 80 /* Identifier */); return node; - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: do { if (isModuleExportsAccessExpression(node.expression) && !isPrivateIdentifier(node.name)) { return node.name; @@ -79058,9 +79597,9 @@ function createTypeChecker(host) { error(moduleName, Diagnostics.String_literal_expected); return false; } - const inAmbientExternalModule = node.parent.kind === 267 /* ModuleBlock */ && isAmbientModule(node.parent.parent); - if (node.parent.kind !== 311 /* SourceFile */ && !inAmbientExternalModule) { - error(moduleName, node.kind === 277 /* ExportDeclaration */ ? Diagnostics.Export_declarations_are_not_permitted_in_a_namespace : Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module); + const inAmbientExternalModule = node.parent.kind === 268 /* ModuleBlock */ && isAmbientModule(node.parent.parent); + if (node.parent.kind !== 312 /* SourceFile */ && !inAmbientExternalModule) { + error(moduleName, node.kind === 278 /* ExportDeclaration */ ? Diagnostics.Export_declarations_are_not_permitted_in_a_namespace : Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module); return false; } if (inAmbientExternalModule && isExternalModuleNameRelative(moduleName.text)) { @@ -79089,8 +79628,8 @@ function createTypeChecker(host) { symbol = getMergedSymbol(symbol.exportSymbol || symbol); if (isInJSFile(node) && !(target.flags & 111551 /* Value */) && !isTypeOnlyImportOrExportDeclaration(node)) { const errorNode = isImportOrExportSpecifier(node) ? node.propertyName || node.name : isNamedDeclaration(node) ? node.name : node; - Debug.assert(node.kind !== 279 /* NamespaceExport */); - if (node.kind === 280 /* ExportSpecifier */) { + Debug.assert(node.kind !== 280 /* NamespaceExport */); + if (node.kind === 281 /* ExportSpecifier */) { const diag2 = error(errorNode, Diagnostics.Types_cannot_appear_in_export_declarations_in_JavaScript_files); const alreadyExportedSymbol = (_b = (_a = getSourceFileOfNode(node).symbol) == null ? void 0 : _a.exports) == null ? void 0 : _b.get((node.propertyName || node.name).escapedText); if (alreadyExportedSymbol === target) { @@ -79104,7 +79643,7 @@ function createTypeChecker(host) { } } } else { - Debug.assert(node.kind !== 259 /* VariableDeclaration */); + Debug.assert(node.kind !== 260 /* VariableDeclaration */); const importDeclaration = findAncestor(node, or(isImportDeclaration, isImportEqualsDeclaration)); const moduleSpecifier = (importDeclaration && ((_d = tryGetModuleSpecifierFromDeclaration(importDeclaration)) == null ? void 0 : _d.text)) ?? "..."; const importedIdentifier = unescapeLeadingUnderscores(isIdentifier(errorNode) ? errorNode.escapedText : symbol.escapedName); @@ -79117,36 +79656,36 @@ function createTypeChecker(host) { } return; } - const targetFlags = getAllSymbolFlags(target); + const targetFlags = getSymbolFlags(target); const excludedMeanings = (symbol.flags & (111551 /* Value */ | 1048576 /* ExportValue */) ? 111551 /* Value */ : 0) | (symbol.flags & 788968 /* Type */ ? 788968 /* Type */ : 0) | (symbol.flags & 1920 /* Namespace */ ? 1920 /* Namespace */ : 0); if (targetFlags & excludedMeanings) { - const message = node.kind === 280 /* ExportSpecifier */ ? Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0 : Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0; + const message = node.kind === 281 /* ExportSpecifier */ ? Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0 : Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0; error(node, message, symbolToString(symbol)); } - if (getIsolatedModules(compilerOptions) && !isTypeOnlyImportOrExportDeclaration(node) && !(node.flags & 16777216 /* Ambient */)) { + if (getIsolatedModules(compilerOptions) && !isTypeOnlyImportOrExportDeclaration(node) && !(node.flags & 33554432 /* Ambient */)) { const typeOnlyAlias = getTypeOnlyAliasDeclaration(symbol); const isType = !(targetFlags & 111551 /* Value */); if (isType || typeOnlyAlias) { switch (node.kind) { - case 272 /* ImportClause */: - case 275 /* ImportSpecifier */: - case 270 /* ImportEqualsDeclaration */: { + case 273 /* ImportClause */: + case 276 /* ImportSpecifier */: + case 271 /* ImportEqualsDeclaration */: { if (compilerOptions.preserveValueImports || compilerOptions.verbatimModuleSyntax) { Debug.assertIsDefined(node.name, "An ImportClause with a symbol should have a name"); const message = compilerOptions.verbatimModuleSyntax && isInternalModuleImportEqualsDeclaration(node) ? Diagnostics.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled : isType ? compilerOptions.verbatimModuleSyntax ? Diagnostics._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled : Diagnostics._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled : compilerOptions.verbatimModuleSyntax ? Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled : Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled; - const name = idText(node.kind === 275 /* ImportSpecifier */ ? node.propertyName || node.name : node.name); + const name = idText(node.kind === 276 /* ImportSpecifier */ ? node.propertyName || node.name : node.name); addTypeOnlyDeclarationRelatedInfo( error(node, message, name), isType ? void 0 : typeOnlyAlias, name ); } - if (isType && node.kind === 270 /* ImportEqualsDeclaration */ && hasEffectiveModifier(node, 1 /* Export */)) { + if (isType && node.kind === 271 /* ImportEqualsDeclaration */ && hasEffectiveModifier(node, 1 /* Export */)) { error(node, Diagnostics.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled, isolatedModulesLikeFlagName); } break; } - case 280 /* ExportSpecifier */: { + case 281 /* ExportSpecifier */: { if (compilerOptions.verbatimModuleSyntax || getSourceFileOfNode(typeOnlyAlias) !== getSourceFileOfNode(node)) { const name = idText(node.propertyName || node.name); const diagnostic = isType ? error(node, Diagnostics.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type, isolatedModulesLikeFlagName) : error(node, Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled, name, isolatedModulesLikeFlagName); @@ -79156,7 +79695,7 @@ function createTypeChecker(host) { } } } - if (compilerOptions.verbatimModuleSyntax && node.kind !== 270 /* ImportEqualsDeclaration */ && !isInJSFile(node) && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { + if (compilerOptions.verbatimModuleSyntax && node.kind !== 271 /* ImportEqualsDeclaration */ && !isInJSFile(node) && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { error(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); } } @@ -79199,7 +79738,7 @@ function createTypeChecker(host) { function checkImportBinding(node) { checkCollisionsForDeclarationName(node, node.name); checkAliasSymbol(node); - if (node.kind === 275 /* ImportSpecifier */ && idText(node.propertyName || node.name) === "default" && getESModuleInterop(compilerOptions) && moduleKind !== 4 /* System */ && (moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { + if (node.kind === 276 /* ImportSpecifier */ && idText(node.propertyName || node.name) === "default" && getESModuleInterop(compilerOptions) && moduleKind !== 4 /* System */ && (moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { checkExternalEmitHelpers(node, 131072 /* ImportDefault */); } } @@ -79246,7 +79785,7 @@ function createTypeChecker(host) { checkImportBinding(importClause); } if (importClause.namedBindings) { - if (importClause.namedBindings.kind === 273 /* NamespaceImport */) { + if (importClause.namedBindings.kind === 274 /* NamespaceImport */) { checkImportBinding(importClause.namedBindings); if (moduleKind !== 4 /* System */ && (moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */) && getESModuleInterop(compilerOptions)) { checkExternalEmitHelpers(node, 65536 /* ImportStar */); @@ -79272,10 +79811,10 @@ function createTypeChecker(host) { if (hasSyntacticModifier(node, 1 /* Export */)) { markExportAsReferenced(node); } - if (node.moduleReference.kind !== 282 /* ExternalModuleReference */) { + if (node.moduleReference.kind !== 283 /* ExternalModuleReference */) { const target = resolveAlias(getSymbolOfDeclaration(node)); if (target !== unknownSymbol) { - const targetFlags = getAllSymbolFlags(target); + const targetFlags = getSymbolFlags(target); if (targetFlags & 111551 /* Value */) { const moduleName = getFirstIdentifier(node.moduleReference); if (!(resolveEntityName(moduleName, 111551 /* Value */ | 1920 /* Namespace */).flags & 1920 /* Namespace */)) { @@ -79290,7 +79829,7 @@ function createTypeChecker(host) { grammarErrorOnNode(node, Diagnostics.An_import_alias_cannot_use_import_type); } } else { - if (moduleKind >= 5 /* ES2015 */ && getSourceFileOfNode(node).impliedNodeFormat === void 0 && !node.isTypeOnly && !(node.flags & 16777216 /* Ambient */)) { + if (moduleKind >= 5 /* ES2015 */ && getSourceFileOfNode(node).impliedNodeFormat === void 0 && !node.isTypeOnly && !(node.flags & 33554432 /* Ambient */)) { grammarErrorOnNode(node, Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead); } } @@ -79310,9 +79849,9 @@ function createTypeChecker(host) { if (!node.moduleSpecifier || checkExternalImportOrExportDeclaration(node)) { if (node.exportClause && !isNamespaceExport(node.exportClause)) { forEach(node.exportClause.elements, checkExportSpecifier); - const inAmbientExternalModule = node.parent.kind === 267 /* ModuleBlock */ && isAmbientModule(node.parent.parent); - const inAmbientNamespaceDeclaration = !inAmbientExternalModule && node.parent.kind === 267 /* ModuleBlock */ && !node.moduleSpecifier && node.flags & 16777216 /* Ambient */; - if (node.parent.kind !== 311 /* SourceFile */ && !inAmbientExternalModule && !inAmbientNamespaceDeclaration) { + const inAmbientExternalModule = node.parent.kind === 268 /* ModuleBlock */ && isAmbientModule(node.parent.parent); + const inAmbientNamespaceDeclaration = !inAmbientExternalModule && node.parent.kind === 268 /* ModuleBlock */ && !node.moduleSpecifier && node.flags & 33554432 /* Ambient */; + if (node.parent.kind !== 312 /* SourceFile */ && !inAmbientExternalModule && !inAmbientNamespaceDeclaration) { error(node, Diagnostics.Export_declarations_are_not_permitted_in_a_namespace); } } else { @@ -79337,13 +79876,13 @@ function createTypeChecker(host) { } function checkGrammarExportDeclaration(node) { var _a; - if (node.isTypeOnly && ((_a = node.exportClause) == null ? void 0 : _a.kind) === 278 /* NamedExports */) { + if (node.isTypeOnly && ((_a = node.exportClause) == null ? void 0 : _a.kind) === 279 /* NamedExports */) { return checkGrammarNamedImportsOrExports(node.exportClause); } return false; } function checkGrammarModuleElementContext(node, errorMessage) { - const isInAppropriateContext = node.parent.kind === 311 /* SourceFile */ || node.parent.kind === 267 /* ModuleBlock */ || node.parent.kind === 266 /* ModuleDeclaration */; + const isInAppropriateContext = node.parent.kind === 312 /* SourceFile */ || node.parent.kind === 268 /* ModuleBlock */ || node.parent.kind === 267 /* ModuleDeclaration */; if (!isInAppropriateContext) { grammarErrorOnFirstToken(node, errorMessage); } @@ -79415,7 +79954,7 @@ function createTypeChecker(host) { markExportAsReferenced(node); } const target = symbol && (symbol.flags & 2097152 /* Alias */ ? resolveAlias(symbol) : symbol); - if (!target || getAllSymbolFlags(target) & 111551 /* Value */) { + if (!target || getSymbolFlags(target) & 111551 /* Value */) { checkExpressionCached(node.propertyName || node.name); } } @@ -79430,8 +79969,8 @@ function createTypeChecker(host) { if (checkGrammarModuleElementContext(node, illegalContextMessage)) { return; } - const container = node.parent.kind === 311 /* SourceFile */ ? node.parent : node.parent.parent; - if (container.kind === 266 /* ModuleDeclaration */ && !isAmbientModule(container)) { + const container = node.parent.kind === 312 /* SourceFile */ ? node.parent : node.parent.parent; + if (container.kind === 267 /* ModuleDeclaration */ && !isAmbientModule(container)) { if (node.isExportEquals) { error(node, Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace); } else { @@ -79446,7 +79985,7 @@ function createTypeChecker(host) { if (typeAnnotationNode) { checkTypeAssignableTo(checkExpressionCached(node.expression), getTypeFromTypeNode(typeAnnotationNode), node.expression); } - const isIllegalExportDefaultInCJS = !node.isExportEquals && !(node.flags & 16777216 /* Ambient */) && compilerOptions.verbatimModuleSyntax && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */); + const isIllegalExportDefaultInCJS = !node.isExportEquals && !(node.flags & 33554432 /* Ambient */) && compilerOptions.verbatimModuleSyntax && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */); if (node.expression.kind === 80 /* Identifier */) { const id = node.expression; const sym = getExportSymbolOfValueSymbolIfExported(resolveEntityName( @@ -79460,16 +79999,16 @@ function createTypeChecker(host) { )); if (sym) { markAliasReferenced(sym, id); - if (getAllSymbolFlags(sym) & 111551 /* Value */) { + if (getSymbolFlags(sym) & 111551 /* Value */) { checkExpressionCached(id); - if (!isIllegalExportDefaultInCJS && !(node.flags & 16777216 /* Ambient */) && compilerOptions.verbatimModuleSyntax && getTypeOnlyAliasDeclaration(sym, 111551 /* Value */)) { + if (!isIllegalExportDefaultInCJS && !(node.flags & 33554432 /* Ambient */) && compilerOptions.verbatimModuleSyntax && getTypeOnlyAliasDeclaration(sym, 111551 /* Value */)) { error( id, node.isExportEquals ? Diagnostics.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration : Diagnostics.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration, idText(id) ); } - } else if (!isIllegalExportDefaultInCJS && !(node.flags & 16777216 /* Ambient */) && compilerOptions.verbatimModuleSyntax) { + } else if (!isIllegalExportDefaultInCJS && !(node.flags & 33554432 /* Ambient */) && compilerOptions.verbatimModuleSyntax) { error( id, node.isExportEquals ? Diagnostics.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type : Diagnostics.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type, @@ -79493,13 +80032,13 @@ function createTypeChecker(host) { error(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); } checkExternalModuleExports(container); - if (node.flags & 16777216 /* Ambient */ && !isEntityNameExpression(node.expression)) { + if (node.flags & 33554432 /* Ambient */ && !isEntityNameExpression(node.expression)) { grammarErrorOnNode(node.expression, Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context); } if (node.isExportEquals) { - if (moduleKind >= 5 /* ES2015 */ && (node.flags & 16777216 /* Ambient */ && getSourceFileOfNode(node).impliedNodeFormat === 99 /* ESNext */ || !(node.flags & 16777216 /* Ambient */) && getSourceFileOfNode(node).impliedNodeFormat !== 1 /* CommonJS */)) { + if (moduleKind >= 5 /* ES2015 */ && (node.flags & 33554432 /* Ambient */ && getSourceFileOfNode(node).impliedNodeFormat === 99 /* ESNext */ || !(node.flags & 33554432 /* Ambient */) && getSourceFileOfNode(node).impliedNodeFormat !== 1 /* CommonJS */)) { grammarErrorOnNode(node, Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead); - } else if (moduleKind === 4 /* System */ && !(node.flags & 16777216 /* Ambient */)) { + } else if (moduleKind === 4 /* System */ && !(node.flags & 33554432 /* Ambient */)) { grammarErrorOnNode(node, Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system); } } @@ -79572,182 +80111,182 @@ function createTypeChecker(host) { const kind = node.kind; if (cancellationToken) { switch (kind) { - case 266 /* ModuleDeclaration */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 261 /* FunctionDeclaration */: + case 267 /* ModuleDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 262 /* FunctionDeclaration */: cancellationToken.throwIfCancellationRequested(); } } - if (kind >= 242 /* FirstStatement */ && kind <= 258 /* LastStatement */ && canHaveFlowNode(node) && node.flowNode && !isReachableFlowNode(node.flowNode)) { + if (kind >= 243 /* FirstStatement */ && kind <= 259 /* LastStatement */ && canHaveFlowNode(node) && node.flowNode && !isReachableFlowNode(node.flowNode)) { errorOrSuggestion(compilerOptions.allowUnreachableCode === false, node, Diagnostics.Unreachable_code_detected); } switch (kind) { - case 167 /* TypeParameter */: + case 168 /* TypeParameter */: return checkTypeParameter(node); - case 168 /* Parameter */: + case 169 /* Parameter */: return checkParameter(node); - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return checkPropertyDeclaration(node); - case 170 /* PropertySignature */: + case 171 /* PropertySignature */: return checkPropertySignature(node); - case 184 /* ConstructorType */: - case 183 /* FunctionType */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 180 /* IndexSignature */: + case 185 /* ConstructorType */: + case 184 /* FunctionType */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 181 /* IndexSignature */: return checkSignatureDeclaration(node); - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: return checkMethodDeclaration(node); - case 174 /* ClassStaticBlockDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: return checkClassStaticBlockDeclaration(node); - case 175 /* Constructor */: + case 176 /* Constructor */: return checkConstructorDeclaration(node); - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return checkAccessorDeclaration(node); - case 182 /* TypeReference */: + case 183 /* TypeReference */: return checkTypeReferenceNode(node); - case 181 /* TypePredicate */: + case 182 /* TypePredicate */: return checkTypePredicate(node); - case 185 /* TypeQuery */: + case 186 /* TypeQuery */: return checkTypeQuery(node); - case 186 /* TypeLiteral */: + case 187 /* TypeLiteral */: return checkTypeLiteral(node); - case 187 /* ArrayType */: + case 188 /* ArrayType */: return checkArrayType(node); - case 188 /* TupleType */: + case 189 /* TupleType */: return checkTupleType(node); - case 191 /* UnionType */: - case 192 /* IntersectionType */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: return checkUnionOrIntersectionType(node); - case 195 /* ParenthesizedType */: - case 189 /* OptionalType */: - case 190 /* RestType */: + case 196 /* ParenthesizedType */: + case 190 /* OptionalType */: + case 191 /* RestType */: return checkSourceElement(node.type); - case 196 /* ThisType */: + case 197 /* ThisType */: return checkThisType(node); - case 197 /* TypeOperator */: + case 198 /* TypeOperator */: return checkTypeOperator(node); - case 193 /* ConditionalType */: + case 194 /* ConditionalType */: return checkConditionalType(node); - case 194 /* InferType */: + case 195 /* InferType */: return checkInferType(node); - case 202 /* TemplateLiteralType */: + case 203 /* TemplateLiteralType */: return checkTemplateLiteralType(node); - case 204 /* ImportType */: + case 205 /* ImportType */: return checkImportType(node); - case 201 /* NamedTupleMember */: + case 202 /* NamedTupleMember */: return checkNamedTupleMember(node); - case 334 /* JSDocAugmentsTag */: + case 335 /* JSDocAugmentsTag */: return checkJSDocAugmentsTag(node); - case 335 /* JSDocImplementsTag */: + case 336 /* JSDocImplementsTag */: return checkJSDocImplementsTag(node); - case 352 /* JSDocTypedefTag */: - case 344 /* JSDocCallbackTag */: - case 346 /* JSDocEnumTag */: + case 353 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: + case 347 /* JSDocEnumTag */: return checkJSDocTypeAliasTag(node); - case 351 /* JSDocTemplateTag */: + case 352 /* JSDocTemplateTag */: return checkJSDocTemplateTag(node); - case 350 /* JSDocTypeTag */: + case 351 /* JSDocTypeTag */: return checkJSDocTypeTag(node); - case 330 /* JSDocLink */: - case 331 /* JSDocLinkCode */: - case 332 /* JSDocLinkPlain */: + case 331 /* JSDocLink */: + case 332 /* JSDocLinkCode */: + case 333 /* JSDocLinkPlain */: return checkJSDocLinkLikeTag(node); - case 347 /* JSDocParameterTag */: + case 348 /* JSDocParameterTag */: return checkJSDocParameterTag(node); - case 354 /* JSDocPropertyTag */: + case 355 /* JSDocPropertyTag */: return checkJSDocPropertyTag(node); - case 323 /* JSDocFunctionType */: + case 324 /* JSDocFunctionType */: checkJSDocFunctionType(node); - case 321 /* JSDocNonNullableType */: - case 320 /* JSDocNullableType */: - case 318 /* JSDocAllType */: - case 319 /* JSDocUnknownType */: - case 328 /* JSDocTypeLiteral */: + case 322 /* JSDocNonNullableType */: + case 321 /* JSDocNullableType */: + case 319 /* JSDocAllType */: + case 320 /* JSDocUnknownType */: + case 329 /* JSDocTypeLiteral */: checkJSDocTypeIsInJsFile(node); forEachChild(node, checkSourceElement); return; - case 324 /* JSDocVariadicType */: + case 325 /* JSDocVariadicType */: checkJSDocVariadicType(node); return; - case 315 /* JSDocTypeExpression */: + case 316 /* JSDocTypeExpression */: return checkSourceElement(node.type); - case 339 /* JSDocPublicTag */: - case 341 /* JSDocProtectedTag */: - case 340 /* JSDocPrivateTag */: + case 340 /* JSDocPublicTag */: + case 342 /* JSDocProtectedTag */: + case 341 /* JSDocPrivateTag */: return checkJSDocAccessibilityModifiers(node); - case 356 /* JSDocSatisfiesTag */: + case 357 /* JSDocSatisfiesTag */: return checkJSDocSatisfiesTag(node); - case 198 /* IndexedAccessType */: + case 199 /* IndexedAccessType */: return checkIndexedAccessType(node); - case 199 /* MappedType */: + case 200 /* MappedType */: return checkMappedType(node); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return checkFunctionDeclaration(node); - case 240 /* Block */: - case 267 /* ModuleBlock */: + case 241 /* Block */: + case 268 /* ModuleBlock */: return checkBlock(node); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return checkVariableStatement(node); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return checkExpressionStatement(node); - case 244 /* IfStatement */: + case 245 /* IfStatement */: return checkIfStatement(node); - case 245 /* DoStatement */: + case 246 /* DoStatement */: return checkDoStatement(node); - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: return checkWhileStatement(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return checkForStatement(node); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return checkForInStatement(node); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return checkForOfStatement(node); - case 250 /* ContinueStatement */: - case 251 /* BreakStatement */: + case 251 /* ContinueStatement */: + case 252 /* BreakStatement */: return checkBreakOrContinueStatement(node); - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: return checkReturnStatement(node); - case 253 /* WithStatement */: + case 254 /* WithStatement */: return checkWithStatement(node); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return checkSwitchStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return checkLabeledStatement(node); - case 256 /* ThrowStatement */: + case 257 /* ThrowStatement */: return checkThrowStatement(node); - case 257 /* TryStatement */: + case 258 /* TryStatement */: return checkTryStatement(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return checkVariableDeclaration(node); - case 207 /* BindingElement */: + case 208 /* BindingElement */: return checkBindingElement(node); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return checkClassDeclaration(node); - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: return checkInterfaceDeclaration(node); - case 264 /* TypeAliasDeclaration */: + case 265 /* TypeAliasDeclaration */: return checkTypeAliasDeclaration(node); - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return checkEnumDeclaration(node); - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return checkModuleDeclaration(node); - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return checkImportDeclaration(node); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return checkImportEqualsDeclaration(node); - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return checkExportDeclaration(node); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return checkExportAssignment(node); - case 241 /* EmptyStatement */: - case 258 /* DebuggerStatement */: + case 242 /* EmptyStatement */: + case 259 /* DebuggerStatement */: checkGrammarStatementInAmbientContext(node); return; - case 281 /* MissingDeclaration */: + case 282 /* MissingDeclaration */: return checkMissingDeclaration(node); } } @@ -79846,38 +80385,38 @@ function createTypeChecker(host) { currentNode = node; instantiationCount = 0; switch (node.kind) { - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 214 /* TaggedTemplateExpression */: - case 169 /* Decorator */: - case 285 /* JsxOpeningElement */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 215 /* TaggedTemplateExpression */: + case 170 /* Decorator */: + case 286 /* JsxOpeningElement */: resolveUntypedCall(node); break; - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: checkFunctionExpressionOrObjectLiteralMethodDeferred(node); break; - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: checkAccessorDeclaration(node); break; - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: checkClassExpressionDeferred(node); break; - case 167 /* TypeParameter */: + case 168 /* TypeParameter */: checkTypeParameterDeferred(node); break; - case 284 /* JsxSelfClosingElement */: + case 285 /* JsxSelfClosingElement */: checkJsxSelfClosingElementDeferred(node); break; - case 283 /* JsxElement */: + case 284 /* JsxElement */: checkJsxElementDeferred(node); break; - case 215 /* TypeAssertionExpression */: - case 233 /* AsExpression */: - case 216 /* ParenthesizedExpression */: + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: + case 217 /* ParenthesizedExpression */: checkAssertionDeferred(node); } currentNode = saveCurrentNode; @@ -79935,7 +80474,7 @@ function createTypeChecker(host) { addLazyDiagnostic(() => { if (!node.isDeclarationFile && (compilerOptions.noUnusedLocals || compilerOptions.noUnusedParameters)) { checkUnusedIdentifiers(getPotentiallyUnusedIdentifiers(node), (containingNode, kind, diag2) => { - if (!containsParseError(containingNode) && unusedIsError(kind, !!(containingNode.flags & 16777216 /* Ambient */))) { + if (!containsParseError(containingNode) && unusedIsError(kind, !!(containingNode.flags & 33554432 /* Ambient */))) { diagnostics.add(diag2); } }); @@ -80014,7 +80553,7 @@ function createTypeChecker(host) { return diagnostics.getGlobalDiagnostics(); } function getSymbolsInScope(location, meaning) { - if (location.flags & 33554432 /* InWithStatement */) { + if (location.flags & 67108864 /* InWithStatement */) { return []; } const symbols = createSymbolTable(); @@ -80028,27 +80567,27 @@ function createTypeChecker(host) { copySymbols(location.locals, meaning); } switch (location.kind) { - case 311 /* SourceFile */: + case 312 /* SourceFile */: if (!isExternalModule(location)) break; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: copyLocallyVisibleExportSymbols(getSymbolOfDeclaration(location).exports, meaning & 2623475 /* ModuleMember */); break; - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: copySymbols(getSymbolOfDeclaration(location).exports, meaning & 8 /* EnumMember */); break; - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: const className = location.name; if (className) { copySymbol(location.symbol, meaning); } - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: if (!isStaticSymbol) { copySymbols(getMembersOfSymbol(getSymbolOfDeclaration(location)), meaning & 788968 /* Type */); } break; - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: const funcName = location.name; if (funcName) { copySymbol(location.symbol, meaning); @@ -80081,7 +80620,7 @@ function createTypeChecker(host) { function copyLocallyVisibleExportSymbols(source, meaning2) { if (meaning2) { source.forEach((symbol) => { - if (!getDeclarationOfKind(symbol, 280 /* ExportSpecifier */) && !getDeclarationOfKind(symbol, 279 /* NamespaceExport */)) { + if (!getDeclarationOfKind(symbol, 281 /* ExportSpecifier */) && !getDeclarationOfKind(symbol, 280 /* NamespaceExport */) && symbol.escapedName !== "default" /* Default */) { copySymbol(symbol, meaning2); } }); @@ -80092,16 +80631,16 @@ function createTypeChecker(host) { return name.kind === 80 /* Identifier */ && isTypeDeclaration(name.parent) && getNameOfDeclaration(name.parent) === name; } function isTypeReferenceIdentifier(node) { - while (node.parent.kind === 165 /* QualifiedName */) { + while (node.parent.kind === 166 /* QualifiedName */) { node = node.parent; } - return node.parent.kind === 182 /* TypeReference */; + return node.parent.kind === 183 /* TypeReference */; } function isInNameOfExpressionWithTypeArguments(node) { - while (node.parent.kind === 210 /* PropertyAccessExpression */) { + while (node.parent.kind === 211 /* PropertyAccessExpression */) { node = node.parent; } - return node.parent.kind === 232 /* ExpressionWithTypeArguments */; + return node.parent.kind === 233 /* ExpressionWithTypeArguments */; } function forEachEnclosingClass(node, callback) { let result; @@ -80127,13 +80666,13 @@ function createTypeChecker(host) { return !!forEachEnclosingClass(node, (n) => n === classDeclaration); } function getLeftSideOfImportEqualsOrExportAssignment(nodeOnRightSide) { - while (nodeOnRightSide.parent.kind === 165 /* QualifiedName */) { + while (nodeOnRightSide.parent.kind === 166 /* QualifiedName */) { nodeOnRightSide = nodeOnRightSide.parent; } - if (nodeOnRightSide.parent.kind === 270 /* ImportEqualsDeclaration */) { + if (nodeOnRightSide.parent.kind === 271 /* ImportEqualsDeclaration */) { return nodeOnRightSide.parent.moduleReference === nodeOnRightSide ? nodeOnRightSide.parent : void 0; } - if (nodeOnRightSide.parent.kind === 276 /* ExportAssignment */) { + if (nodeOnRightSide.parent.kind === 277 /* ExportAssignment */) { return nodeOnRightSide.parent.expression === nodeOnRightSide ? nodeOnRightSide.parent : void 0; } return void 0; @@ -80159,7 +80698,7 @@ function createTypeChecker(host) { node = parent; parent = parent.parent; } - if (parent && parent.kind === 204 /* ImportType */ && parent.qualifier === node) { + if (parent && parent.kind === 205 /* ImportType */ && parent.qualifier === node) { return parent; } return void 0; @@ -80181,7 +80720,7 @@ function createTypeChecker(host) { /*contextFlags*/ void 0 ); - const type = contextualType && getThisTypeFromContextualType(contextualType); + const type = getThisTypeOfObjectLiteralFromContextualType(containingLiteral, contextualType); return type && !isTypeAny(type); } } @@ -80191,7 +80730,7 @@ function createTypeChecker(host) { if (isDeclarationName(name)) { return getSymbolOfNode(name.parent); } - if (isInJSFile(name) && name.parent.kind === 210 /* PropertyAccessExpression */ && name.parent === name.parent.parent.left) { + if (isInJSFile(name) && name.parent.kind === 211 /* PropertyAccessExpression */ && name.parent === name.parent.parent.left) { if (!isPrivateIdentifier(name) && !isJSDocMemberName(name) && !isThisPropertyAndThisTyped(name.parent)) { const specialPropertyAssignmentSymbol = getSpecialPropertyAssignmentSymbolFromEntityName(name); if (specialPropertyAssignmentSymbol) { @@ -80199,7 +80738,7 @@ function createTypeChecker(host) { } } } - if (name.parent.kind === 276 /* ExportAssignment */ && isEntityNameExpression(name)) { + if (name.parent.kind === 277 /* ExportAssignment */ && isEntityNameExpression(name)) { const success = resolveEntityName( name, /*all meanings*/ @@ -80211,7 +80750,7 @@ function createTypeChecker(host) { return success; } } else if (isEntityName(name) && isInRightSideOfImportOrExportAssignment(name)) { - const importEqualsDeclaration = getAncestor(name, 270 /* ImportEqualsDeclaration */); + const importEqualsDeclaration = getAncestor(name, 271 /* ImportEqualsDeclaration */); Debug.assert(importEqualsDeclaration !== void 0); return getSymbolOfPartOfRightHandSideOfImportEquals( name, @@ -80232,7 +80771,7 @@ function createTypeChecker(host) { } if (isInNameOfExpressionWithTypeArguments(name)) { let meaning = 0 /* None */; - if (name.parent.kind === 232 /* ExpressionWithTypeArguments */) { + if (name.parent.kind === 233 /* ExpressionWithTypeArguments */) { meaning = isPartOfTypeNode(name) ? 788968 /* Type */ : 111551 /* Value */; if (isExpressionWithTypeArgumentsInClassExtendsClause(name.parent)) { meaning |= 111551 /* Value */; @@ -80251,10 +80790,10 @@ function createTypeChecker(host) { return entityNameSymbol; } } - if (name.parent.kind === 347 /* JSDocParameterTag */) { + if (name.parent.kind === 348 /* JSDocParameterTag */) { return getParameterSymbolFromJSDoc(name.parent); } - if (name.parent.kind === 167 /* TypeParameter */ && name.parent.parent.kind === 351 /* JSDocTemplateTag */) { + if (name.parent.kind === 168 /* TypeParameter */ && name.parent.parent.kind === 352 /* JSDocTemplateTag */) { Debug.assert(!isInJSFile(name)); const typeParameter = getTypeParameterFromJsDoc(name.parent); return typeParameter && typeParameter.symbol; @@ -80307,12 +80846,12 @@ function createTypeChecker(host) { return result; } else if (isPrivateIdentifier(name)) { return getSymbolForPrivateIdentifierExpression(name); - } else if (name.kind === 210 /* PropertyAccessExpression */ || name.kind === 165 /* QualifiedName */) { + } else if (name.kind === 211 /* PropertyAccessExpression */ || name.kind === 166 /* QualifiedName */) { const links = getNodeLinks(name); if (links.resolvedSymbol) { return links.resolvedSymbol; } - if (name.kind === 210 /* PropertyAccessExpression */) { + if (name.kind === 211 /* PropertyAccessExpression */) { checkPropertyAccessExpression(name, 0 /* Normal */); if (!links.resolvedSymbol) { const expressionType = checkExpressionCached(name.expression); @@ -80352,7 +80891,7 @@ function createTypeChecker(host) { return resolveJSDocMemberName(name); } } else if (isTypeReferenceIdentifier(name)) { - const meaning = name.parent.kind === 182 /* TypeReference */ ? 788968 /* Type */ : 1920 /* Namespace */; + const meaning = name.parent.kind === 183 /* TypeReference */ ? 788968 /* Type */ : 1920 /* Namespace */; const symbol = resolveEntityName( name, meaning, @@ -80363,7 +80902,7 @@ function createTypeChecker(host) { ); return symbol && symbol !== unknownSymbol ? symbol : getUnresolvedSymbolForEntityName(name); } - if (name.parent.kind === 181 /* TypePredicate */) { + if (name.parent.kind === 182 /* TypePredicate */) { return resolveEntityName( name, /*meaning*/ @@ -80404,7 +80943,7 @@ function createTypeChecker(host) { } const { parent } = node; const grandParent = parent.parent; - if (node.flags & 33554432 /* InWithStatement */) { + if (node.flags & 67108864 /* InWithStatement */) { return void 0; } if (isDeclarationNameOrImportPropertyName(node)) { @@ -80416,7 +80955,7 @@ function createTypeChecker(host) { if (node.kind === 80 /* Identifier */) { if (isInRightSideOfImportOrExportAssignment(node)) { return getSymbolOfNameOrPropertyAccessExpression(node); - } else if (parent.kind === 207 /* BindingElement */ && grandParent.kind === 205 /* ObjectBindingPattern */ && node === parent.propertyName) { + } else if (parent.kind === 208 /* BindingElement */ && grandParent.kind === 206 /* ObjectBindingPattern */ && node === parent.propertyName) { const typeOfPattern = getTypeOfNode(grandParent); const propertyDeclaration = getPropertyOfType(typeOfPattern, node.escapedText); if (propertyDeclaration) { @@ -80435,8 +80974,8 @@ function createTypeChecker(host) { switch (node.kind) { case 80 /* Identifier */: case 81 /* PrivateIdentifier */: - case 210 /* PropertyAccessExpression */: - case 165 /* QualifiedName */: + case 211 /* PropertyAccessExpression */: + case 166 /* QualifiedName */: if (!isThisInTypeQuery(node)) { return getSymbolOfNameOrPropertyAccessExpression(node); } @@ -80457,19 +80996,19 @@ function createTypeChecker(host) { if (isInExpressionContext(node)) { return checkExpression(node).symbol; } - case 196 /* ThisType */: + case 197 /* ThisType */: return getTypeFromThisTypeNode(node).symbol; case 108 /* SuperKeyword */: return checkExpression(node).symbol; case 137 /* ConstructorKeyword */: const constructorDeclaration = node.parent; - if (constructorDeclaration && constructorDeclaration.kind === 175 /* Constructor */) { + if (constructorDeclaration && constructorDeclaration.kind === 176 /* Constructor */) { return constructorDeclaration.parent.symbol; } return void 0; case 11 /* StringLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: - if (isExternalModuleImportEqualsDeclaration(node.parent.parent) && getExternalModuleImportEqualsDeclarationExpression(node.parent.parent) === node || (node.parent.kind === 271 /* ImportDeclaration */ || node.parent.kind === 277 /* ExportDeclaration */) && node.parent.moduleSpecifier === node || (isInJSFile(node) && getEmitModuleResolutionKind(compilerOptions) !== 100 /* Bundler */ && isRequireCall( + if (isExternalModuleImportEqualsDeclaration(node.parent.parent) && getExternalModuleImportEqualsDeclarationExpression(node.parent.parent) === node || (node.parent.kind === 272 /* ImportDeclaration */ || node.parent.kind === 278 /* ExportDeclaration */) && node.parent.moduleSpecifier === node || (isInJSFile(node) && getEmitModuleResolutionKind(compilerOptions) !== 100 /* Bundler */ && isRequireCall( node.parent, /*requireStringLiteralLikeArgument*/ false @@ -80487,16 +81026,16 @@ function createTypeChecker(host) { case 39 /* EqualsGreaterThanToken */: case 86 /* ClassKeyword */: return getSymbolOfNode(node.parent); - case 204 /* ImportType */: + case 205 /* ImportType */: return isLiteralImportTypeNode(node) ? getSymbolAtLocation(node.argument.literal, ignoreErrors) : void 0; case 95 /* ExportKeyword */: return isExportAssignment(node.parent) ? Debug.checkDefined(node.parent.symbol) : void 0; case 102 /* ImportKeyword */: case 105 /* NewKeyword */: return isMetaProperty(node.parent) ? checkMetaPropertyKeyword(node.parent).symbol : void 0; - case 235 /* MetaProperty */: + case 236 /* MetaProperty */: return checkExpression(node).symbol; - case 294 /* JsxNamespacedName */: + case 295 /* JsxNamespacedName */: if (isJSXTagName(node) && isJsxIntrinsicTagName(node)) { const symbol = getIntrinsicTagSymbol(node.parent); return symbol === unknownSymbol ? void 0 : symbol; @@ -80515,7 +81054,7 @@ function createTypeChecker(host) { return void 0; } function getShorthandAssignmentValueSymbol(location) { - if (location && location.kind === 303 /* ShorthandPropertyAssignment */) { + if (location && location.kind === 304 /* ShorthandPropertyAssignment */) { return resolveEntityName(location.name, 111551 /* Value */ | 2097152 /* Alias */); } return void 0; @@ -80531,7 +81070,7 @@ function createTypeChecker(host) { if (isSourceFile(node) && !isExternalModule(node)) { return errorType; } - if (node.flags & 33554432 /* InWithStatement */) { + if (node.flags & 67108864 /* InWithStatement */) { return errorType; } const classDecl = tryGetClassImplementingOrExtendingExpressionWithTypeArguments(node); @@ -80595,16 +81134,16 @@ function createTypeChecker(host) { return errorType; } function getTypeOfAssignmentPattern(expr) { - Debug.assert(expr.kind === 209 /* ObjectLiteralExpression */ || expr.kind === 208 /* ArrayLiteralExpression */); - if (expr.parent.kind === 249 /* ForOfStatement */) { + Debug.assert(expr.kind === 210 /* ObjectLiteralExpression */ || expr.kind === 209 /* ArrayLiteralExpression */); + if (expr.parent.kind === 250 /* ForOfStatement */) { const iteratedType = checkRightHandSideOfForOf(expr.parent); return checkDestructuringAssignment(expr, iteratedType || errorType); } - if (expr.parent.kind === 225 /* BinaryExpression */) { + if (expr.parent.kind === 226 /* BinaryExpression */) { const iteratedType = getTypeOfExpression(expr.parent.right); return checkDestructuringAssignment(expr, iteratedType || errorType); } - if (expr.parent.kind === 302 /* PropertyAssignment */) { + if (expr.parent.kind === 303 /* PropertyAssignment */) { const node2 = cast(expr.parent.parent, isObjectLiteralExpression); const typeOfParentObjectLiteral = getTypeOfAssignmentPattern(node2) || errorType; const propertyIndex = indexOfNode(node2.properties, expr.parent); @@ -80637,7 +81176,7 @@ function createTypeChecker(host) { case 9 /* NumericLiteral */: case 11 /* StringLiteral */: return getStringLiteralType(name.text); - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: const nameType = checkComputedPropertyName(name); return isTypeAssignableToKind(nameType, 12288 /* ESSymbolLike */) ? nameType : stringType; default: @@ -80707,7 +81246,7 @@ function createTypeChecker(host) { return symbolLinks2.exportsSomeValue; function isValue(s) { s = resolveSymbol(s); - return s && !!(getAllSymbolFlags(s) & 111551 /* Value */); + return s && !!(getSymbolFlags(s) & 111551 /* Value */); } } function isNameOfModuleOrEnumDeclaration(node) { @@ -80732,7 +81271,7 @@ function createTypeChecker(host) { } const parentSymbol = getParentOfSymbol(symbol); if (parentSymbol) { - if (parentSymbol.flags & 512 /* ValueModule */ && ((_a = parentSymbol.valueDeclaration) == null ? void 0 : _a.kind) === 311 /* SourceFile */) { + if (parentSymbol.flags & 512 /* ValueModule */ && ((_a = parentSymbol.valueDeclaration) == null ? void 0 : _a.kind) === 312 /* SourceFile */) { const symbolFile = parentSymbol.valueDeclaration; const referenceFile = getSourceFileOfNode(node); const symbolIsUmdExport = symbolFile !== referenceFile; @@ -80762,7 +81301,7 @@ function createTypeChecker(host) { return void 0; } function isSymbolOfDestructuredElementOfCatchBinding(symbol) { - return symbol.valueDeclaration && isBindingElement(symbol.valueDeclaration) && walkUpBindingElementsAndPatterns(symbol.valueDeclaration).parent.kind === 298 /* CatchClause */; + return symbol.valueDeclaration && isBindingElement(symbol.valueDeclaration) && walkUpBindingElementsAndPatterns(symbol.valueDeclaration).parent.kind === 299 /* CatchClause */; } function isSymbolOfDeclarationWithCollidingName(symbol) { if (symbol.flags & 418 /* BlockScoped */ && symbol.valueDeclaration && !isSourceFile(symbol.valueDeclaration)) { @@ -80790,7 +81329,7 @@ function createTypeChecker(host) { /*lookInLabeledStatements*/ false ); - const inLoopBodyBlock = container.kind === 240 /* Block */ && isIterationStatement( + const inLoopBodyBlock = container.kind === 241 /* Block */ && isIterationStatement( container.parent, /*lookInLabeledStatements*/ false @@ -80830,31 +81369,35 @@ function createTypeChecker(host) { function isValueAliasDeclaration(node) { Debug.assert(canCollectSymbolAliasAccessabilityData); switch (node.kind) { - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return isAliasResolvedToValue(getSymbolOfDeclaration(node)); - case 272 /* ImportClause */: - case 273 /* NamespaceImport */: - case 275 /* ImportSpecifier */: - case 280 /* ExportSpecifier */: + case 273 /* ImportClause */: + case 274 /* NamespaceImport */: + case 276 /* ImportSpecifier */: + case 281 /* ExportSpecifier */: const symbol = getSymbolOfDeclaration(node); - return !!symbol && isAliasResolvedToValue(symbol) && !getTypeOnlyAliasDeclaration(symbol, 111551 /* Value */); - case 277 /* ExportDeclaration */: + return !!symbol && isAliasResolvedToValue( + symbol, + /*excludeTypeOnlyValues*/ + true + ); + case 278 /* ExportDeclaration */: const exportClause = node.exportClause; return !!exportClause && (isNamespaceExport(exportClause) || some(exportClause.elements, isValueAliasDeclaration)); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return node.expression && node.expression.kind === 80 /* Identifier */ ? isAliasResolvedToValue(getSymbolOfDeclaration(node)) : true; } return false; } function isTopLevelValueImportEqualsWithEntityName(nodeIn) { const node = getParseTreeNode(nodeIn, isImportEqualsDeclaration); - if (node === void 0 || node.parent.kind !== 311 /* SourceFile */ || !isInternalModuleImportEqualsDeclaration(node)) { + if (node === void 0 || node.parent.kind !== 312 /* SourceFile */ || !isInternalModuleImportEqualsDeclaration(node)) { return false; } const isValue = isAliasResolvedToValue(getSymbolOfDeclaration(node)); return isValue && node.moduleReference && !nodeIsMissing(node.moduleReference); } - function isAliasResolvedToValue(symbol) { + function isAliasResolvedToValue(symbol, excludeTypeOnlyValues) { if (!symbol) { return false; } @@ -80862,7 +81405,12 @@ function createTypeChecker(host) { if (target === unknownSymbol) { return true; } - return !!((getAllSymbolFlags(target) ?? -1) & 111551 /* Value */) && (shouldPreserveConstEnums(compilerOptions) || !isConstEnumOrConstEnumOnlyModule(target)); + return !!(getSymbolFlags( + symbol, + excludeTypeOnlyValues, + /*excludeLocalMeanings*/ + true + ) & 111551 /* Value */) && (shouldPreserveConstEnums(compilerOptions) || !isConstEnumOrConstEnumOnlyModule(target)); } function isConstEnumOrConstEnumOnlyModule(s) { return isConstEnumSymbol(s) || !!s.constEnumOnlyModule; @@ -80876,7 +81424,7 @@ function createTypeChecker(host) { return true; } const target = getSymbolLinks(symbol).aliasTarget; - if (target && getEffectiveModifierFlags(node) & 1 /* Export */ && getAllSymbolFlags(target) & 111551 /* Value */ && (shouldPreserveConstEnums(compilerOptions) || !isConstEnumOrConstEnumOnlyModule(target))) { + if (target && getEffectiveModifierFlags(node) & 1 /* Export */ && getSymbolFlags(target) & 111551 /* Value */ && (shouldPreserveConstEnums(compilerOptions) || !isConstEnumOrConstEnumOnlyModule(target))) { return true; } } @@ -80938,15 +81486,15 @@ function createTypeChecker(host) { } function canHaveConstantValue(node) { switch (node.kind) { - case 305 /* EnumMember */: - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 306 /* EnumMember */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return true; } return false; } function getConstantValue2(node) { - if (node.kind === 305 /* EnumMember */) { + if (node.kind === 306 /* EnumMember */) { return getEnumMemberValue(node); } const symbol = getNodeLinks(node).resolvedSymbol; @@ -81146,24 +81694,24 @@ function createTypeChecker(host) { if (symbol) { return filter(getExportSymbolOfValueSymbolIfExported(symbol).declarations, (declaration) => { switch (declaration.kind) { - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 207 /* BindingElement */: - case 171 /* PropertyDeclaration */: - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: - case 305 /* EnumMember */: - case 209 /* ObjectLiteralExpression */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 265 /* EnumDeclaration */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 266 /* ModuleDeclaration */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 208 /* BindingElement */: + case 172 /* PropertyDeclaration */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 306 /* EnumMember */: + case 210 /* ObjectLiteralExpression */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 266 /* EnumDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 267 /* ModuleDeclaration */: return true; } return false; @@ -81174,7 +81722,7 @@ function createTypeChecker(host) { return void 0; } function isLiteralConstDeclaration(node) { - if (isDeclarationReadonly(node) || isVariableDeclaration(node) && isVarConst(node)) { + if (isDeclarationReadonly(node) || isVariableDeclaration(node) && isVarConstLike(node)) { return isFreshLiteralType(getTypeOfSymbol(getSymbolOfDeclaration(node))); } return false; @@ -81292,12 +81840,12 @@ function createTypeChecker(host) { getJsxFragmentFactoryEntity, getAllAccessorDeclarations(accessor) { accessor = getParseTreeNode(accessor, isGetOrSetAccessorDeclaration); - const otherKind = accessor.kind === 177 /* SetAccessor */ ? 176 /* GetAccessor */ : 177 /* SetAccessor */; + const otherKind = accessor.kind === 178 /* SetAccessor */ ? 177 /* GetAccessor */ : 178 /* SetAccessor */; const otherAccessor = getDeclarationOfKind(getSymbolOfDeclaration(accessor), otherKind); const firstAccessor = otherAccessor && otherAccessor.pos < accessor.pos ? otherAccessor : accessor; const secondAccessor = otherAccessor && otherAccessor.pos < accessor.pos ? accessor : otherAccessor; - const setAccessor = accessor.kind === 177 /* SetAccessor */ ? accessor : otherAccessor; - const getAccessor = accessor.kind === 176 /* GetAccessor */ ? accessor : otherAccessor; + const setAccessor = accessor.kind === 178 /* SetAccessor */ ? accessor : otherAccessor; + const getAccessor = accessor.kind === 177 /* GetAccessor */ ? accessor : otherAccessor; return { firstAccessor, secondAccessor, @@ -81318,7 +81866,7 @@ function createTypeChecker(host) { }, getDeclarationStatementsForSourceFile: (node, flags, tracker, bundled) => { const n = getParseTreeNode(node); - Debug.assert(n && n.kind === 311 /* SourceFile */, "Non-sourcefile node passed into getDeclarationsForSourceFile"); + Debug.assert(n && n.kind === 312 /* SourceFile */, "Non-sourcefile node passed into getDeclarationsForSourceFile"); const sym = getSymbolOfDeclaration(node); if (!sym) { return !node.locals ? [] : nodeBuilder.symbolTableToDeclarationStatements(node.locals, node, flags, tracker, bundled); @@ -81353,18 +81901,18 @@ function createTypeChecker(host) { return false; } function isInHeritageClause(node) { - return node.parent && node.parent.kind === 232 /* ExpressionWithTypeArguments */ && node.parent.parent && node.parent.parent.kind === 297 /* HeritageClause */; + return node.parent && node.parent.kind === 233 /* ExpressionWithTypeArguments */ && node.parent.parent && node.parent.parent.kind === 298 /* HeritageClause */; } function getTypeReferenceDirectivesForEntityName(node) { if (!fileToDirective) { return void 0; } let meaning; - if (node.parent.kind === 166 /* ComputedPropertyName */) { + if (node.parent.kind === 167 /* ComputedPropertyName */) { meaning = 111551 /* Value */ | 1048576 /* ExportValue */; } else { meaning = 788968 /* Type */ | 1920 /* Namespace */; - if (node.kind === 80 /* Identifier */ && isInTypeQuery(node) || node.kind === 210 /* PropertyAccessExpression */ && !isInHeritageClause(node)) { + if (node.kind === 80 /* Identifier */ && isInTypeQuery(node) || node.kind === 211 /* PropertyAccessExpression */ && !isInHeritageClause(node)) { meaning = 111551 /* Value */ | 1048576 /* ExportValue */; } } @@ -81407,7 +81955,7 @@ function createTypeChecker(host) { break; } } - if (current.valueDeclaration && current.valueDeclaration.kind === 311 /* SourceFile */ && current.flags & 512 /* ValueModule */) { + if (current.valueDeclaration && current.valueDeclaration.kind === 312 /* SourceFile */ && current.flags & 512 /* ValueModule */) { return false; } for (const decl of symbol.declarations) { @@ -81432,7 +81980,7 @@ function createTypeChecker(host) { } } function getExternalModuleFileFromDeclaration(declaration) { - const specifier = declaration.kind === 266 /* ModuleDeclaration */ ? tryCast(declaration.name, isStringLiteral) : getExternalModuleName(declaration); + const specifier = declaration.kind === 267 /* ModuleDeclaration */ ? tryCast(declaration.name, isStringLiteral) : getExternalModuleName(declaration); const moduleSymbol = resolveExternalModuleNameWorker( specifier, specifier, @@ -81442,7 +81990,7 @@ function createTypeChecker(host) { if (!moduleSymbol) { return void 0; } - return getDeclarationOfKind(moduleSymbol, 311 /* SourceFile */); + return getDeclarationOfKind(moduleSymbol, 312 /* SourceFile */); } function initializeTypeChecker() { for (const file of host.getSourceFiles()) { @@ -81624,11 +82172,11 @@ function createTypeChecker(host) { function checkExternalEmitHelpers(location, helpers) { if ((requestedExternalEmitHelpers & helpers) !== helpers && compilerOptions.importHelpers) { const sourceFile = getSourceFileOfNode(location); - if (isEffectiveExternalModule(sourceFile, compilerOptions) && !(location.flags & 16777216 /* Ambient */)) { + if (isEffectiveExternalModule(sourceFile, compilerOptions) && !(location.flags & 33554432 /* Ambient */)) { const helpersModule = resolveHelpersModule(sourceFile, location); if (helpersModule !== unknownSymbol) { const uncheckedHelpers = helpers & ~requestedExternalEmitHelpers; - for (let helper = 1 /* FirstEmitHelper */; helper <= 16777216 /* LastEmitHelper */; helper <<= 1) { + for (let helper = 1 /* FirstEmitHelper */; helper <= 33554432 /* LastEmitHelper */; helper <<= 1) { if (uncheckedHelpers & helper) { for (const name of getHelperNames(helper)) { if (requestedExternalEmitHelperNames.has(name)) @@ -81710,6 +82258,8 @@ function createTypeChecker(host) { return ["__setFunctionName"]; case 16777216 /* PropKey */: return ["__propKey"]; + case 33554432 /* AddDisposableResourceAndDisposeResources */: + return ["__addDisposableResource", "__disposeResources"]; default: return Debug.fail("Unrecognized helper"); } @@ -81728,6 +82278,7 @@ function createTypeChecker(host) { if (isParameter(node) && parameterIsThisKeyword(node)) { return grammarErrorOnFirstToken(node, Diagnostics.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters); } + const blockScopeKind = isVariableStatement(node) ? node.declarationList.flags & 7 /* BlockScoped */ : 0 /* None */; let lastStatic, lastDeclare, lastAsync, lastOverride, firstDecorator; let flags = 0 /* None */; let sawExportBeforeDecorators = false; @@ -81735,12 +82286,12 @@ function createTypeChecker(host) { for (const modifier of node.modifiers) { if (isDecorator(modifier)) { if (!nodeCanBeDecorated(legacyDecorators, node, node.parent, node.parent.parent)) { - if (node.kind === 173 /* MethodDeclaration */ && !nodeIsPresent(node.body)) { + if (node.kind === 174 /* MethodDeclaration */ && !nodeIsPresent(node.body)) { return grammarErrorOnFirstToken(node, Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload); } else { return grammarErrorOnFirstToken(node, Diagnostics.Decorators_are_not_valid_here); } - } else if (legacyDecorators && (node.kind === 176 /* GetAccessor */ || node.kind === 177 /* SetAccessor */)) { + } else if (legacyDecorators && (node.kind === 177 /* GetAccessor */ || node.kind === 178 /* SetAccessor */)) { const accessors = getAllAccessorDeclarations(node.parent.members, node); if (hasDecorators(accessors.firstAccessor) && node === accessors.secondAccessor) { return grammarErrorOnFirstToken(node, Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name); @@ -81770,29 +82321,29 @@ function createTypeChecker(host) { firstDecorator ?? (firstDecorator = modifier); } else { if (modifier.kind !== 148 /* ReadonlyKeyword */) { - if (node.kind === 170 /* PropertySignature */ || node.kind === 172 /* MethodSignature */) { + if (node.kind === 171 /* PropertySignature */ || node.kind === 173 /* MethodSignature */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_type_member, tokenToString(modifier.kind)); } - if (node.kind === 180 /* IndexSignature */ && (modifier.kind !== 126 /* StaticKeyword */ || !isClassLike(node.parent))) { + if (node.kind === 181 /* IndexSignature */ && (modifier.kind !== 126 /* StaticKeyword */ || !isClassLike(node.parent))) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_an_index_signature, tokenToString(modifier.kind)); } } if (modifier.kind !== 103 /* InKeyword */ && modifier.kind !== 147 /* OutKeyword */ && modifier.kind !== 87 /* ConstKeyword */) { - if (node.kind === 167 /* TypeParameter */) { + if (node.kind === 168 /* TypeParameter */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_type_parameter, tokenToString(modifier.kind)); } } switch (modifier.kind) { case 87 /* ConstKeyword */: - if (node.kind !== 265 /* EnumDeclaration */ && node.kind !== 167 /* TypeParameter */) { + if (node.kind !== 266 /* EnumDeclaration */ && node.kind !== 168 /* TypeParameter */) { return grammarErrorOnNode(node, Diagnostics.A_class_member_cannot_have_the_0_keyword, tokenToString(87 /* ConstKeyword */)); } const parent = node.parent; - if (node.kind === 167 /* TypeParameter */ && !(isFunctionLikeDeclaration(parent) || isClassLike(parent) || isFunctionTypeNode(parent) || isConstructorTypeNode(parent) || isCallSignatureDeclaration(parent) || isConstructSignatureDeclaration(parent) || isMethodSignature(parent))) { + if (node.kind === 168 /* TypeParameter */ && !(isFunctionLikeDeclaration(parent) || isClassLike(parent) || isFunctionTypeNode(parent) || isConstructorTypeNode(parent) || isCallSignatureDeclaration(parent) || isConstructSignatureDeclaration(parent) || isMethodSignature(parent))) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class, tokenToString(modifier.kind)); } break; - case 163 /* OverrideKeyword */: + case 164 /* OverrideKeyword */: if (flags & 16384 /* Override */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, "override"); } else if (flags & 2 /* Ambient */) { @@ -81823,7 +82374,7 @@ function createTypeChecker(host) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, text, "readonly"); } else if (flags & 512 /* Async */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, text, "async"); - } else if (node.parent.kind === 267 /* ModuleBlock */ || node.parent.kind === 311 /* SourceFile */) { + } else if (node.parent.kind === 268 /* ModuleBlock */ || node.parent.kind === 312 /* SourceFile */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element, text); } else if (flags & 256 /* Abstract */) { if (modifier.kind === 123 /* PrivateKeyword */) { @@ -81845,9 +82396,9 @@ function createTypeChecker(host) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "static", "async"); } else if (flags & 128 /* Accessor */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "static", "accessor"); - } else if (node.parent.kind === 267 /* ModuleBlock */ || node.parent.kind === 311 /* SourceFile */) { + } else if (node.parent.kind === 268 /* ModuleBlock */ || node.parent.kind === 312 /* SourceFile */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element, "static"); - } else if (node.kind === 168 /* Parameter */) { + } else if (node.kind === 169 /* Parameter */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_parameter, "static"); } else if (flags & 256 /* Abstract */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "static", "abstract"); @@ -81864,7 +82415,7 @@ function createTypeChecker(host) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "accessor", "readonly"); } else if (flags & 2 /* Ambient */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "accessor", "declare"); - } else if (node.kind !== 171 /* PropertyDeclaration */) { + } else if (node.kind !== 172 /* PropertyDeclaration */) { return grammarErrorOnNode(modifier, Diagnostics.accessor_modifier_can_only_appear_on_a_property_declaration); } flags |= 128 /* Accessor */; @@ -81872,7 +82423,7 @@ function createTypeChecker(host) { case 148 /* ReadonlyKeyword */: if (flags & 64 /* Readonly */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, "readonly"); - } else if (node.kind !== 171 /* PropertyDeclaration */ && node.kind !== 170 /* PropertySignature */ && node.kind !== 180 /* IndexSignature */ && node.kind !== 168 /* Parameter */) { + } else if (node.kind !== 172 /* PropertyDeclaration */ && node.kind !== 171 /* PropertySignature */ && node.kind !== 181 /* IndexSignature */ && node.kind !== 169 /* Parameter */) { return grammarErrorOnNode(modifier, Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature); } else if (flags & 128 /* Accessor */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "readonly", "accessor"); @@ -81880,8 +82431,8 @@ function createTypeChecker(host) { flags |= 64 /* Readonly */; break; case 95 /* ExportKeyword */: - if (compilerOptions.verbatimModuleSyntax && !(node.flags & 16777216 /* Ambient */) && node.kind !== 264 /* TypeAliasDeclaration */ && node.kind !== 263 /* InterfaceDeclaration */ && // ModuleDeclaration needs to be checked that it is uninstantiated later - node.kind !== 266 /* ModuleDeclaration */ && node.parent.kind === 311 /* SourceFile */ && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { + if (compilerOptions.verbatimModuleSyntax && !(node.flags & 33554432 /* Ambient */) && node.kind !== 265 /* TypeAliasDeclaration */ && node.kind !== 264 /* InterfaceDeclaration */ && // ModuleDeclaration needs to be checked that it is uninstantiated later + node.kind !== 267 /* ModuleDeclaration */ && node.parent.kind === 312 /* SourceFile */ && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { return grammarErrorOnNode(modifier, Diagnostics.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); } if (flags & 1 /* Export */) { @@ -81894,15 +82445,23 @@ function createTypeChecker(host) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "export", "async"); } else if (isClassLike(node.parent)) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind, "export"); - } else if (node.kind === 168 /* Parameter */) { + } else if (node.kind === 169 /* Parameter */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_parameter, "export"); + } else if (blockScopeKind === 4 /* Using */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_using_declaration, "export"); + } else if (blockScopeKind === 6 /* AwaitUsing */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_an_await_using_declaration, "export"); } flags |= 1 /* Export */; break; case 90 /* DefaultKeyword */: - const container = node.parent.kind === 311 /* SourceFile */ ? node.parent : node.parent.parent; - if (container.kind === 266 /* ModuleDeclaration */ && !isAmbientModule(container)) { + const container = node.parent.kind === 312 /* SourceFile */ ? node.parent : node.parent.parent; + if (container.kind === 267 /* ModuleDeclaration */ && !isAmbientModule(container)) { return grammarErrorOnNode(modifier, Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module); + } else if (blockScopeKind === 4 /* Using */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_using_declaration, "default"); + } else if (blockScopeKind === 6 /* AwaitUsing */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_an_await_using_declaration, "default"); } else if (!(flags & 1 /* Export */)) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "export", "default"); } else if (sawExportBeforeDecorators) { @@ -81919,9 +82478,13 @@ function createTypeChecker(host) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context, "override"); } else if (isClassLike(node.parent) && !isPropertyDeclaration(node)) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind, "declare"); - } else if (node.kind === 168 /* Parameter */) { + } else if (node.kind === 169 /* Parameter */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_parameter, "declare"); - } else if (node.parent.flags & 16777216 /* Ambient */ && node.parent.kind === 267 /* ModuleBlock */) { + } else if (blockScopeKind === 4 /* Using */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_using_declaration, "declare"); + } else if (blockScopeKind === 6 /* AwaitUsing */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_an_await_using_declaration, "declare"); + } else if (node.parent.flags & 33554432 /* Ambient */ && node.parent.kind === 268 /* ModuleBlock */) { return grammarErrorOnNode(modifier, Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context); } else if (isPrivateIdentifierClassElementDeclaration(node)) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier, "declare"); @@ -81935,12 +82498,12 @@ function createTypeChecker(host) { if (flags & 256 /* Abstract */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, "abstract"); } - if (node.kind !== 262 /* ClassDeclaration */ && node.kind !== 184 /* ConstructorType */) { - if (node.kind !== 173 /* MethodDeclaration */ && node.kind !== 171 /* PropertyDeclaration */ && node.kind !== 176 /* GetAccessor */ && node.kind !== 177 /* SetAccessor */) { + if (node.kind !== 263 /* ClassDeclaration */ && node.kind !== 185 /* ConstructorType */) { + if (node.kind !== 174 /* MethodDeclaration */ && node.kind !== 172 /* PropertyDeclaration */ && node.kind !== 177 /* GetAccessor */ && node.kind !== 178 /* SetAccessor */) { return grammarErrorOnNode(modifier, Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration); } - if (!(node.parent.kind === 262 /* ClassDeclaration */ && hasSyntacticModifier(node.parent, 256 /* Abstract */))) { - const message = node.kind === 171 /* PropertyDeclaration */ ? Diagnostics.Abstract_properties_can_only_appear_within_an_abstract_class : Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class; + if (!(node.parent.kind === 263 /* ClassDeclaration */ && hasSyntacticModifier(node.parent, 256 /* Abstract */))) { + const message = node.kind === 172 /* PropertyDeclaration */ ? Diagnostics.Abstract_properties_can_only_appear_within_an_abstract_class : Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class; return grammarErrorOnNode(modifier, message); } if (flags & 32 /* Static */) { @@ -81967,9 +82530,9 @@ function createTypeChecker(host) { case 134 /* AsyncKeyword */: if (flags & 512 /* Async */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, "async"); - } else if (flags & 2 /* Ambient */ || node.parent.flags & 16777216 /* Ambient */) { + } else if (flags & 2 /* Ambient */ || node.parent.flags & 33554432 /* Ambient */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context, "async"); - } else if (node.kind === 168 /* Parameter */) { + } else if (node.kind === 169 /* Parameter */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_parameter, "async"); } if (flags & 256 /* Abstract */) { @@ -81982,7 +82545,7 @@ function createTypeChecker(host) { case 147 /* OutKeyword */: const inOutFlag = modifier.kind === 103 /* InKeyword */ ? 32768 /* In */ : 65536 /* Out */; const inOutText = modifier.kind === 103 /* InKeyword */ ? "in" : "out"; - if (node.kind !== 167 /* TypeParameter */ || !(isInterfaceDeclaration(node.parent) || isClassLike(node.parent) || isTypeAliasDeclaration(node.parent))) { + if (node.kind !== 168 /* TypeParameter */ || !(isInterfaceDeclaration(node.parent) || isClassLike(node.parent) || isTypeAliasDeclaration(node.parent))) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias, inOutText); } if (flags & inOutFlag) { @@ -81996,7 +82559,7 @@ function createTypeChecker(host) { } } } - if (node.kind === 175 /* Constructor */) { + if (node.kind === 176 /* Constructor */) { if (flags & 32 /* Static */) { return grammarErrorOnNode(lastStatic, Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "static"); } @@ -82007,11 +82570,11 @@ function createTypeChecker(host) { return grammarErrorOnNode(lastAsync, Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "async"); } return false; - } else if ((node.kind === 271 /* ImportDeclaration */ || node.kind === 270 /* ImportEqualsDeclaration */) && flags & 2 /* Ambient */) { + } else if ((node.kind === 272 /* ImportDeclaration */ || node.kind === 271 /* ImportEqualsDeclaration */) && flags & 2 /* Ambient */) { return grammarErrorOnNode(lastDeclare, Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration, "declare"); - } else if (node.kind === 168 /* Parameter */ && flags & 16476 /* ParameterPropertyModifier */ && isBindingPattern(node.name)) { + } else if (node.kind === 169 /* Parameter */ && flags & 16476 /* ParameterPropertyModifier */ && isBindingPattern(node.name)) { return grammarErrorOnNode(node, Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern); - } else if (node.kind === 168 /* Parameter */ && flags & 16476 /* ParameterPropertyModifier */ && node.dotDotDotToken) { + } else if (node.kind === 169 /* Parameter */ && flags & 16476 /* ParameterPropertyModifier */ && node.dotDotDotToken) { return grammarErrorOnNode(node, Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter); } if (flags & 512 /* Async */) { @@ -82031,46 +82594,47 @@ function createTypeChecker(host) { } function findFirstIllegalModifier(node) { switch (node.kind) { - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 175 /* Constructor */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 180 /* IndexSignature */: - case 266 /* ModuleDeclaration */: - case 271 /* ImportDeclaration */: - case 270 /* ImportEqualsDeclaration */: - case 277 /* ExportDeclaration */: - case 276 /* ExportAssignment */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 168 /* Parameter */: - case 167 /* TypeParameter */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 176 /* Constructor */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 181 /* IndexSignature */: + case 267 /* ModuleDeclaration */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 278 /* ExportDeclaration */: + case 277 /* ExportAssignment */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 169 /* Parameter */: + case 168 /* TypeParameter */: return void 0; - case 174 /* ClassStaticBlockDeclaration */: - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: - case 269 /* NamespaceExportDeclaration */: - case 281 /* MissingDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 270 /* NamespaceExportDeclaration */: + case 282 /* MissingDeclaration */: return find(node.modifiers, isModifier); default: - if (node.parent.kind === 267 /* ModuleBlock */ || node.parent.kind === 311 /* SourceFile */) { + if (node.parent.kind === 268 /* ModuleBlock */ || node.parent.kind === 312 /* SourceFile */) { return void 0; } switch (node.kind) { - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return findFirstModifierExcept(node, 134 /* AsyncKeyword */); - case 262 /* ClassDeclaration */: - case 184 /* ConstructorType */: + case 263 /* ClassDeclaration */: + case 185 /* ConstructorType */: return findFirstModifierExcept(node, 128 /* AbstractKeyword */); - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 242 /* VariableStatement */: - case 264 /* TypeAliasDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: return find(node.modifiers, isModifier); - case 265 /* EnumDeclaration */: + case 243 /* VariableStatement */: + return node.declarationList.flags & 4 /* Using */ ? findFirstModifierExcept(node, 135 /* AwaitKeyword */) : find(node.modifiers, isModifier); + case 266 /* EnumDeclaration */: return findFirstModifierExcept(node, 87 /* ConstKeyword */); default: Debug.assertNever(node); @@ -82086,10 +82650,10 @@ function createTypeChecker(host) { } function checkGrammarAsyncModifier(node, asyncModifier) { switch (node.kind) { - case 173 /* MethodDeclaration */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return false; } return grammarErrorOnNode(asyncModifier, Diagnostics._0_modifier_cannot_be_used_here, "async"); @@ -82117,7 +82681,7 @@ function createTypeChecker(host) { if (i !== parameterCount - 1) { return grammarErrorOnNode(parameter.dotDotDotToken, Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list); } - if (!(parameter.flags & 16777216 /* Ambient */)) { + if (!(parameter.flags & 33554432 /* Ambient */)) { checkGrammarForDisallowedTrailingComma(parameters, Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma); } if (parameter.questionToken) { @@ -82234,7 +82798,7 @@ function createTypeChecker(host) { return checkGrammarForDisallowedTrailingComma(typeArguments) || checkGrammarForAtLeastOneTypeArgument(node, typeArguments); } function checkGrammarTaggedTemplateChain(node) { - if (node.questionDotToken || node.flags & 32 /* OptionalChain */) { + if (node.questionDotToken || node.flags & 64 /* OptionalChain */) { return grammarErrorOnNode(node.template, Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain); } return false; @@ -82302,11 +82866,11 @@ function createTypeChecker(host) { return false; } function checkGrammarComputedPropertyName(node) { - if (node.kind !== 166 /* ComputedPropertyName */) { + if (node.kind !== 167 /* ComputedPropertyName */) { return false; } const computedPropertyName = node; - if (computedPropertyName.expression.kind === 225 /* BinaryExpression */ && computedPropertyName.expression.operatorToken.kind === 28 /* CommaToken */) { + if (computedPropertyName.expression.kind === 226 /* BinaryExpression */ && computedPropertyName.expression.operatorToken.kind === 28 /* CommaToken */) { return grammarErrorOnNode(computedPropertyName.expression, Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name); } return false; @@ -82314,9 +82878,9 @@ function createTypeChecker(host) { function checkGrammarForGenerator(node) { if (node.asteriskToken) { Debug.assert( - node.kind === 261 /* FunctionDeclaration */ || node.kind === 217 /* FunctionExpression */ || node.kind === 173 /* MethodDeclaration */ + node.kind === 262 /* FunctionDeclaration */ || node.kind === 218 /* FunctionExpression */ || node.kind === 174 /* MethodDeclaration */ ); - if (node.flags & 16777216 /* Ambient */) { + if (node.flags & 33554432 /* Ambient */) { return grammarErrorOnNode(node.asteriskToken, Diagnostics.Generators_are_not_allowed_in_an_ambient_context); } if (!node.body) { @@ -82333,7 +82897,7 @@ function createTypeChecker(host) { function checkGrammarObjectLiteralExpression(node, inDestructuring) { const seen = /* @__PURE__ */ new Map(); for (const prop of node.properties) { - if (prop.kind === 304 /* SpreadAssignment */) { + if (prop.kind === 305 /* SpreadAssignment */) { if (inDestructuring) { const expression = skipParentheses(prop.expression); if (isArrayLiteralExpression(expression) || isObjectLiteralExpression(expression)) { @@ -82343,10 +82907,10 @@ function createTypeChecker(host) { continue; } const name = prop.name; - if (name.kind === 166 /* ComputedPropertyName */) { + if (name.kind === 167 /* ComputedPropertyName */) { checkGrammarComputedPropertyName(name); } - if (prop.kind === 303 /* ShorthandPropertyAssignment */ && !inDestructuring && prop.objectAssignmentInitializer) { + if (prop.kind === 304 /* ShorthandPropertyAssignment */ && !inDestructuring && prop.objectAssignmentInitializer) { grammarErrorOnNode(prop.equalsToken, Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern); } if (name.kind === 81 /* PrivateIdentifier */) { @@ -82354,7 +82918,7 @@ function createTypeChecker(host) { } if (canHaveModifiers(prop) && prop.modifiers) { for (const mod of prop.modifiers) { - if (isModifier(mod) && (mod.kind !== 134 /* AsyncKeyword */ || prop.kind !== 173 /* MethodDeclaration */)) { + if (isModifier(mod) && (mod.kind !== 134 /* AsyncKeyword */ || prop.kind !== 174 /* MethodDeclaration */)) { grammarErrorOnNode(mod, Diagnostics._0_modifier_cannot_be_used_here, getTextOfNode(mod)); } } @@ -82367,8 +82931,8 @@ function createTypeChecker(host) { } let currentKind; switch (prop.kind) { - case 303 /* ShorthandPropertyAssignment */: - case 302 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 303 /* PropertyAssignment */: checkGrammarForInvalidExclamationToken(prop.exclamationToken, Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context); checkGrammarForInvalidQuestionMark(prop.questionToken, Diagnostics.An_object_member_cannot_be_declared_optional); if (name.kind === 9 /* NumericLiteral */) { @@ -82376,13 +82940,13 @@ function createTypeChecker(host) { } currentKind = 4 /* PropertyAssignment */; break; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: currentKind = 8 /* Method */; break; - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: currentKind = 1 /* GetAccessor */; break; - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: currentKind = 2 /* SetAccessor */; break; default: @@ -82419,7 +82983,7 @@ function createTypeChecker(host) { checkGrammarTypeArguments(node, node.typeArguments); const seen = /* @__PURE__ */ new Map(); for (const attr of node.attributes.properties) { - if (attr.kind === 292 /* JsxSpreadAttribute */) { + if (attr.kind === 293 /* JsxSpreadAttribute */) { continue; } const { name, initializer } = attr; @@ -82429,7 +82993,7 @@ function createTypeChecker(host) { } else { return grammarErrorOnNode(name, Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name); } - if (initializer && initializer.kind === 293 /* JsxExpression */ && !initializer.expression) { + if (initializer && initializer.kind === 294 /* JsxExpression */ && !initializer.expression) { return grammarErrorOnNode(initializer, Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression); } } @@ -82451,8 +83015,8 @@ function createTypeChecker(host) { if (checkGrammarStatementInAmbientContext(forInOrOfStatement)) { return true; } - if (forInOrOfStatement.kind === 249 /* ForOfStatement */ && forInOrOfStatement.awaitModifier) { - if (!(forInOrOfStatement.flags & 32768 /* AwaitContext */)) { + if (forInOrOfStatement.kind === 250 /* ForOfStatement */ && forInOrOfStatement.awaitModifier) { + if (!(forInOrOfStatement.flags & 65536 /* AwaitContext */)) { const sourceFile = getSourceFileOfNode(forInOrOfStatement); if (isInTopLevelContext(forInOrOfStatement)) { if (!hasParseDiagnostics(sourceFile)) { @@ -82491,7 +83055,7 @@ function createTypeChecker(host) { if (!hasParseDiagnostics(sourceFile)) { const diagnostic = createDiagnosticForNode(forInOrOfStatement.awaitModifier, Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules); const func = getContainingFunction(forInOrOfStatement); - if (func && func.kind !== 175 /* Constructor */) { + if (func && func.kind !== 176 /* Constructor */) { Debug.assert((getFunctionFlags(func) & 2 /* Async */) === 0, "Enclosing function should never be an async function."); const relatedInfo = createDiagnosticForNode(func, Diagnostics.Did_you_mean_to_mark_this_function_as_async); addRelatedInfo(diagnostic, relatedInfo); @@ -82503,11 +83067,11 @@ function createTypeChecker(host) { return false; } } - if (isForOfStatement(forInOrOfStatement) && !(forInOrOfStatement.flags & 32768 /* AwaitContext */) && isIdentifier(forInOrOfStatement.initializer) && forInOrOfStatement.initializer.escapedText === "async") { + if (isForOfStatement(forInOrOfStatement) && !(forInOrOfStatement.flags & 65536 /* AwaitContext */) && isIdentifier(forInOrOfStatement.initializer) && forInOrOfStatement.initializer.escapedText === "async") { grammarErrorOnNode(forInOrOfStatement.initializer, Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async); return false; } - if (forInOrOfStatement.initializer.kind === 260 /* VariableDeclarationList */) { + if (forInOrOfStatement.initializer.kind === 261 /* VariableDeclarationList */) { const variableList = forInOrOfStatement.initializer; if (!checkGrammarVariableDeclarationList(variableList)) { const declarations = variableList.declarations; @@ -82515,16 +83079,16 @@ function createTypeChecker(host) { return false; } if (declarations.length > 1) { - const diagnostic = forInOrOfStatement.kind === 248 /* ForInStatement */ ? Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement : Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement; + const diagnostic = forInOrOfStatement.kind === 249 /* ForInStatement */ ? Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement : Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement; return grammarErrorOnFirstToken(variableList.declarations[1], diagnostic); } const firstDeclaration = declarations[0]; if (firstDeclaration.initializer) { - const diagnostic = forInOrOfStatement.kind === 248 /* ForInStatement */ ? Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer : Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer; + const diagnostic = forInOrOfStatement.kind === 249 /* ForInStatement */ ? Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer : Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer; return grammarErrorOnNode(firstDeclaration.name, diagnostic); } if (firstDeclaration.type) { - const diagnostic = forInOrOfStatement.kind === 248 /* ForInStatement */ ? Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation : Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation; + const diagnostic = forInOrOfStatement.kind === 249 /* ForInStatement */ ? Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation : Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation; return grammarErrorOnNode(firstDeclaration, diagnostic); } } @@ -82532,7 +83096,7 @@ function createTypeChecker(host) { return false; } function checkGrammarAccessor(accessor) { - if (!(accessor.flags & 16777216 /* Ambient */) && accessor.parent.kind !== 186 /* TypeLiteral */ && accessor.parent.kind !== 263 /* InterfaceDeclaration */) { + if (!(accessor.flags & 33554432 /* Ambient */) && accessor.parent.kind !== 187 /* TypeLiteral */ && accessor.parent.kind !== 264 /* InterfaceDeclaration */) { if (languageVersion < 1 /* ES5 */) { return grammarErrorOnNode(accessor.name, Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher); } @@ -82547,7 +83111,7 @@ function createTypeChecker(host) { if (hasSyntacticModifier(accessor, 256 /* Abstract */)) { return grammarErrorOnNode(accessor, Diagnostics.An_abstract_accessor_cannot_have_an_implementation); } - if (accessor.parent.kind === 186 /* TypeLiteral */ || accessor.parent.kind === 263 /* InterfaceDeclaration */) { + if (accessor.parent.kind === 187 /* TypeLiteral */ || accessor.parent.kind === 264 /* InterfaceDeclaration */) { return grammarErrorOnNode(accessor.body, Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts); } } @@ -82557,10 +83121,10 @@ function createTypeChecker(host) { if (!doesAccessorHaveCorrectParameterCount(accessor)) { return grammarErrorOnNode( accessor.name, - accessor.kind === 176 /* GetAccessor */ ? Diagnostics.A_get_accessor_cannot_have_parameters : Diagnostics.A_set_accessor_must_have_exactly_one_parameter + accessor.kind === 177 /* GetAccessor */ ? Diagnostics.A_get_accessor_cannot_have_parameters : Diagnostics.A_set_accessor_must_have_exactly_one_parameter ); } - if (accessor.kind === 177 /* SetAccessor */) { + if (accessor.kind === 178 /* SetAccessor */) { if (accessor.type) { return grammarErrorOnNode(accessor.name, Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation); } @@ -82578,10 +83142,10 @@ function createTypeChecker(host) { return false; } function doesAccessorHaveCorrectParameterCount(accessor) { - return getAccessorThisParameter(accessor) || accessor.parameters.length === (accessor.kind === 176 /* GetAccessor */ ? 0 : 1); + return getAccessorThisParameter(accessor) || accessor.parameters.length === (accessor.kind === 177 /* GetAccessor */ ? 0 : 1); } function getAccessorThisParameter(accessor) { - if (accessor.parameters.length === (accessor.kind === 176 /* GetAccessor */ ? 1 : 2)) { + if (accessor.parameters.length === (accessor.kind === 177 /* GetAccessor */ ? 1 : 2)) { return getThisParameter(accessor); } } @@ -82598,7 +83162,7 @@ function createTypeChecker(host) { } } switch (parent.kind) { - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: const decl = parent; if (decl.name.kind !== 80 /* Identifier */) { return grammarErrorOnNode(node, Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name); @@ -82610,12 +83174,12 @@ function createTypeChecker(host) { return grammarErrorOnNode(parent.name, Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const); } break; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: if (!isStatic(parent) || !hasEffectiveReadonlyModifier(parent)) { return grammarErrorOnNode(parent.name, Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly); } break; - case 170 /* PropertySignature */: + case 171 /* PropertySignature */: if (!hasSyntacticModifier(parent, 64 /* Readonly */)) { return grammarErrorOnNode(parent.name, Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly); } @@ -82624,7 +83188,7 @@ function createTypeChecker(host) { return grammarErrorOnNode(node, Diagnostics.unique_symbol_types_are_not_allowed_here); } } else if (node.operator === 148 /* ReadonlyKeyword */) { - if (node.type.kind !== 187 /* ArrayType */ && node.type.kind !== 188 /* TupleType */) { + if (node.type.kind !== 188 /* ArrayType */ && node.type.kind !== 189 /* TupleType */) { return grammarErrorOnFirstToken(node, Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types, tokenToString(155 /* SymbolKeyword */)); } } @@ -82638,8 +83202,8 @@ function createTypeChecker(host) { if (checkGrammarFunctionLikeDeclaration(node)) { return true; } - if (node.kind === 173 /* MethodDeclaration */) { - if (node.parent.kind === 209 /* ObjectLiteralExpression */) { + if (node.kind === 174 /* MethodDeclaration */) { + if (node.parent.kind === 210 /* ObjectLiteralExpression */) { if (node.modifiers && !(node.modifiers.length === 1 && first(node.modifiers).kind === 134 /* AsyncKeyword */)) { return grammarErrorOnFirstToken(node, Diagnostics.Modifiers_cannot_appear_here); } else if (checkGrammarForInvalidQuestionMark(node.questionToken, Diagnostics.An_object_member_cannot_be_declared_optional)) { @@ -82658,14 +83222,14 @@ function createTypeChecker(host) { if (languageVersion < 2 /* ES2015 */ && isPrivateIdentifier(node.name)) { return grammarErrorOnNode(node.name, Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher); } - if (node.flags & 16777216 /* Ambient */) { + if (node.flags & 33554432 /* Ambient */) { return checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type); - } else if (node.kind === 173 /* MethodDeclaration */ && !node.body) { + } else if (node.kind === 174 /* MethodDeclaration */ && !node.body) { return checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type); } - } else if (node.parent.kind === 263 /* InterfaceDeclaration */) { + } else if (node.parent.kind === 264 /* InterfaceDeclaration */) { return checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type); - } else if (node.parent.kind === 186 /* TypeLiteral */) { + } else if (node.parent.kind === 187 /* TypeLiteral */) { return checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type); } } @@ -82676,9 +83240,9 @@ function createTypeChecker(host) { return grammarErrorOnNode(node, Diagnostics.Jump_target_cannot_cross_function_boundary); } switch (current.kind) { - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: if (node.label && current.label.escapedText === node.label.escapedText) { - const isMisplacedContinueLabel = node.kind === 250 /* ContinueStatement */ && !isIterationStatement( + const isMisplacedContinueLabel = node.kind === 251 /* ContinueStatement */ && !isIterationStatement( current.statement, /*lookInLabeledStatements*/ true @@ -82689,8 +83253,8 @@ function createTypeChecker(host) { return false; } break; - case 254 /* SwitchStatement */: - if (node.kind === 251 /* BreakStatement */ && !node.label) { + case 255 /* SwitchStatement */: + if (node.kind === 252 /* BreakStatement */ && !node.label) { return false; } break; @@ -82707,10 +83271,10 @@ function createTypeChecker(host) { current = current.parent; } if (node.label) { - const message = node.kind === 251 /* BreakStatement */ ? Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement : Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement; + const message = node.kind === 252 /* BreakStatement */ ? Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement : Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement; return grammarErrorOnNode(node, message); } else { - const message = node.kind === 251 /* BreakStatement */ ? Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement : Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement; + const message = node.kind === 252 /* BreakStatement */ ? Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement : Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement; return grammarErrorOnNode(node, message); } } @@ -82730,10 +83294,10 @@ function createTypeChecker(host) { } } function isStringOrNumberLiteralExpression(expr) { - return isStringOrNumericLiteralLike(expr) || expr.kind === 223 /* PrefixUnaryExpression */ && expr.operator === 41 /* MinusToken */ && expr.operand.kind === 9 /* NumericLiteral */; + return isStringOrNumericLiteralLike(expr) || expr.kind === 224 /* PrefixUnaryExpression */ && expr.operator === 41 /* MinusToken */ && expr.operand.kind === 9 /* NumericLiteral */; } function isBigIntLiteralExpression(expr) { - return expr.kind === 10 /* BigIntLiteral */ || expr.kind === 223 /* PrefixUnaryExpression */ && expr.operator === 41 /* MinusToken */ && expr.operand.kind === 10 /* BigIntLiteral */; + return expr.kind === 10 /* BigIntLiteral */ || expr.kind === 224 /* PrefixUnaryExpression */ && expr.operator === 41 /* MinusToken */ && expr.operand.kind === 10 /* BigIntLiteral */; } function isSimpleLiteralEnumReference(expr) { if ((isPropertyAccessExpression(expr) || isElementAccessExpression(expr) && isStringOrNumberLiteralExpression(expr.argumentExpression)) && isEntityNameExpression(expr.expression)) { @@ -82744,7 +83308,7 @@ function createTypeChecker(host) { const initializer = node.initializer; if (initializer) { const isInvalidInitializer = !(isStringOrNumberLiteralExpression(initializer) || isSimpleLiteralEnumReference(initializer) || initializer.kind === 112 /* TrueKeyword */ || initializer.kind === 97 /* FalseKeyword */ || isBigIntLiteralExpression(initializer)); - const isConstOrReadonly = isDeclarationReadonly(node) || isVariableDeclaration(node) && isVarConst(node); + const isConstOrReadonly = isDeclarationReadonly(node) || isVariableDeclaration(node) && isVarConstLike(node); if (isConstOrReadonly && !node.type) { if (isInvalidInitializer) { return grammarErrorOnNode(initializer, Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference); @@ -82755,27 +83319,41 @@ function createTypeChecker(host) { } } function checkGrammarVariableDeclaration(node) { - if (node.parent.parent.kind !== 248 /* ForInStatement */ && node.parent.parent.kind !== 249 /* ForOfStatement */) { - if (node.flags & 16777216 /* Ambient */) { + const nodeFlags = getCombinedNodeFlagsCached(node); + const blockScopeKind = nodeFlags & 7 /* BlockScoped */; + if (isBindingPattern(node.name)) { + switch (blockScopeKind) { + case 6 /* AwaitUsing */: + return grammarErrorOnNode(node, Diagnostics._0_declarations_may_not_have_binding_patterns, "await using"); + case 4 /* Using */: + return grammarErrorOnNode(node, Diagnostics._0_declarations_may_not_have_binding_patterns, "using"); + } + } + if (node.parent.parent.kind !== 249 /* ForInStatement */ && node.parent.parent.kind !== 250 /* ForOfStatement */) { + if (nodeFlags & 33554432 /* Ambient */) { checkAmbientInitializer(node); } else if (!node.initializer) { if (isBindingPattern(node.name) && !isBindingPattern(node.parent)) { return grammarErrorOnNode(node, Diagnostics.A_destructuring_declaration_must_have_an_initializer); } - if (isVarConst(node)) { - return grammarErrorOnNode(node, Diagnostics.const_declarations_must_be_initialized); + switch (blockScopeKind) { + case 6 /* AwaitUsing */: + return grammarErrorOnNode(node, Diagnostics._0_declarations_must_be_initialized, "await using"); + case 4 /* Using */: + return grammarErrorOnNode(node, Diagnostics._0_declarations_must_be_initialized, "using"); + case 2 /* Const */: + return grammarErrorOnNode(node, Diagnostics._0_declarations_must_be_initialized, "const"); } } } - if (node.exclamationToken && (node.parent.parent.kind !== 242 /* VariableStatement */ || !node.type || node.initializer || node.flags & 16777216 /* Ambient */)) { + if (node.exclamationToken && (node.parent.parent.kind !== 243 /* VariableStatement */ || !node.type || node.initializer || nodeFlags & 33554432 /* Ambient */)) { const message = node.initializer ? Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions : !node.type ? Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations : Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context; return grammarErrorOnNode(node.exclamationToken, message); } - if ((moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */) && moduleKind !== 4 /* System */ && !(node.parent.parent.flags & 16777216 /* Ambient */) && hasSyntacticModifier(node.parent.parent, 1 /* Export */)) { + if ((moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */) && moduleKind !== 4 /* System */ && !(node.parent.parent.flags & 33554432 /* Ambient */) && hasSyntacticModifier(node.parent.parent, 1 /* Export */)) { checkESModuleMarker(node.name); } - const checkLetConstNames = isLet(node) || isVarConst(node); - return checkLetConstNames && checkGrammarNameInLetOrConstDeclarations(node.name); + return !!blockScopeKind && checkGrammarNameInLetOrConstDeclarations(node.name); } function checkESModuleMarker(name) { if (name.kind === 80 /* Identifier */) { @@ -82815,29 +83393,39 @@ function createTypeChecker(host) { if (!declarationList.declarations.length) { return grammarErrorAtPos(declarationList, declarations.pos, declarations.end - declarations.pos, Diagnostics.Variable_declaration_list_cannot_be_empty); } + const blockScopeFlags = declarationList.flags & 7 /* BlockScoped */; + if ((blockScopeFlags === 4 /* Using */ || blockScopeFlags === 6 /* AwaitUsing */) && isForInStatement(declarationList.parent)) { + return grammarErrorOnNode( + declarationList, + blockScopeFlags === 4 /* Using */ ? Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration : Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration + ); + } + if (blockScopeFlags === 6 /* AwaitUsing */) { + return checkAwaitGrammar(declarationList); + } return false; } function allowLetAndConstDeclarations(parent) { switch (parent.kind) { - case 244 /* IfStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: - case 253 /* WithStatement */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: + case 245 /* IfStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 254 /* WithStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: return false; - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return allowLetAndConstDeclarations(parent.parent); } return true; } - function checkGrammarForDisallowedLetOrConstStatement(node) { + function checkGrammarForDisallowedBlockScopedVariableStatement(node) { if (!allowLetAndConstDeclarations(node.parent)) { - if (isLet(node.declarationList)) { - return grammarErrorOnNode(node, Diagnostics.let_declarations_can_only_be_declared_inside_a_block); - } else if (isVarConst(node.declarationList)) { - return grammarErrorOnNode(node, Diagnostics.const_declarations_can_only_be_declared_inside_a_block); + const blockScopeKind = getCombinedNodeFlagsCached(node.declarationList) & 7 /* BlockScoped */; + if (blockScopeKind) { + const keyword = blockScopeKind === 1 /* Let */ ? "let" : blockScopeKind === 2 /* Const */ ? "const" : blockScopeKind === 4 /* Using */ ? "using" : blockScopeKind === 6 /* AwaitUsing */ ? "await using" : Debug.fail("Unknown BlockScope flag"); + return grammarErrorOnNode(node, Diagnostics._0_declarations_can_only_be_declared_inside_a_block, keyword); } } } @@ -82926,7 +83514,7 @@ function createTypeChecker(host) { if (isAutoAccessorPropertyDeclaration(node) && checkGrammarForInvalidQuestionMark(node.questionToken, Diagnostics.An_accessor_property_cannot_be_declared_optional)) { return true; } - } else if (node.parent.kind === 263 /* InterfaceDeclaration */) { + } else if (node.parent.kind === 264 /* InterfaceDeclaration */) { if (checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)) { return true; } @@ -82943,23 +83531,23 @@ function createTypeChecker(host) { return grammarErrorOnNode(node.initializer, Diagnostics.A_type_literal_property_cannot_have_an_initializer); } } - if (node.flags & 16777216 /* Ambient */) { + if (node.flags & 33554432 /* Ambient */) { checkAmbientInitializer(node); } - if (isPropertyDeclaration(node) && node.exclamationToken && (!isClassLike(node.parent) || !node.type || node.initializer || node.flags & 16777216 /* Ambient */ || isStatic(node) || hasAbstractModifier(node))) { + if (isPropertyDeclaration(node) && node.exclamationToken && (!isClassLike(node.parent) || !node.type || node.initializer || node.flags & 33554432 /* Ambient */ || isStatic(node) || hasAbstractModifier(node))) { const message = node.initializer ? Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions : !node.type ? Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations : Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context; return grammarErrorOnNode(node.exclamationToken, message); } } function checkGrammarTopLevelElementForRequiredDeclareModifier(node) { - if (node.kind === 263 /* InterfaceDeclaration */ || node.kind === 264 /* TypeAliasDeclaration */ || node.kind === 271 /* ImportDeclaration */ || node.kind === 270 /* ImportEqualsDeclaration */ || node.kind === 277 /* ExportDeclaration */ || node.kind === 276 /* ExportAssignment */ || node.kind === 269 /* NamespaceExportDeclaration */ || hasSyntacticModifier(node, 2 /* Ambient */ | 1 /* Export */ | 1024 /* Default */)) { + if (node.kind === 264 /* InterfaceDeclaration */ || node.kind === 265 /* TypeAliasDeclaration */ || node.kind === 272 /* ImportDeclaration */ || node.kind === 271 /* ImportEqualsDeclaration */ || node.kind === 278 /* ExportDeclaration */ || node.kind === 277 /* ExportAssignment */ || node.kind === 270 /* NamespaceExportDeclaration */ || hasSyntacticModifier(node, 2 /* Ambient */ | 1 /* Export */ | 1024 /* Default */)) { return false; } return grammarErrorOnFirstToken(node, Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier); } function checkGrammarTopLevelElementsForRequiredDeclareModifier(file) { for (const decl of file.statements) { - if (isDeclaration(decl) || decl.kind === 242 /* VariableStatement */) { + if (isDeclaration(decl) || decl.kind === 243 /* VariableStatement */) { if (checkGrammarTopLevelElementForRequiredDeclareModifier(decl)) { return true; } @@ -82968,15 +83556,15 @@ function createTypeChecker(host) { return false; } function checkGrammarSourceFile(node) { - return !!(node.flags & 16777216 /* Ambient */) && checkGrammarTopLevelElementsForRequiredDeclareModifier(node); + return !!(node.flags & 33554432 /* Ambient */) && checkGrammarTopLevelElementsForRequiredDeclareModifier(node); } function checkGrammarStatementInAmbientContext(node) { - if (node.flags & 16777216 /* Ambient */) { + if (node.flags & 33554432 /* Ambient */) { const links = getNodeLinks(node); if (!links.hasReportedStatementInAmbientContext && (isFunctionLike(node.parent) || isAccessor(node.parent))) { return getNodeLinks(node).hasReportedStatementInAmbientContext = grammarErrorOnFirstToken(node, Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts); } - if (node.parent.kind === 240 /* Block */ || node.parent.kind === 267 /* ModuleBlock */ || node.parent.kind === 311 /* SourceFile */) { + if (node.parent.kind === 241 /* Block */ || node.parent.kind === 268 /* ModuleBlock */ || node.parent.kind === 312 /* SourceFile */) { const links2 = getNodeLinks(node.parent); if (!links2.hasReportedStatementInAmbientContext) { return links2.hasReportedStatementInAmbientContext = grammarErrorOnFirstToken(node, Diagnostics.Statements_are_not_allowed_in_ambient_contexts); @@ -83045,7 +83633,7 @@ function createTypeChecker(host) { if (node.isTypeOnly && node.name && node.namedBindings) { return grammarErrorOnNode(node, Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both); } - if (node.isTypeOnly && ((_a = node.namedBindings) == null ? void 0 : _a.kind) === 274 /* NamedImports */) { + if (node.isTypeOnly && ((_a = node.namedBindings) == null ? void 0 : _a.kind) === 275 /* NamedImports */) { return checkGrammarNamedImportsOrExports(node.namedBindings); } return false; @@ -83055,7 +83643,7 @@ function createTypeChecker(host) { if (specifier.isTypeOnly) { return grammarErrorOnFirstToken( specifier, - specifier.kind === 275 /* ImportSpecifier */ ? Diagnostics.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement : Diagnostics.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement + specifier.kind === 276 /* ImportSpecifier */ ? Diagnostics.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement : Diagnostics.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement ); } }); @@ -83169,17 +83757,37 @@ function createTypeChecker(host) { const name = getPropertyNameForPropertyNameNode(node); return name ? name : isComputedPropertyName(node) && isEntityNameExpression(node.expression) ? tryGetNameFromEntityNameExpression(node.expression) : void 0; } + function getCombinedModifierFlagsCached(node) { + if (lastGetCombinedModifierFlagsNode === node) { + return lastGetCombinedModifierFlagsResult; + } + lastGetCombinedModifierFlagsNode = node; + lastGetCombinedModifierFlagsResult = getCombinedModifierFlags(node); + return lastGetCombinedModifierFlagsResult; + } + function getCombinedNodeFlagsCached(node) { + if (lastGetCombinedNodeFlagsNode === node) { + return lastGetCombinedNodeFlagsResult; + } + lastGetCombinedNodeFlagsNode = node; + lastGetCombinedNodeFlagsResult = getCombinedNodeFlags(node); + return lastGetCombinedNodeFlagsResult; + } + function isVarConstLike(node) { + const blockScopeKind = getCombinedNodeFlagsCached(node) & 7 /* BlockScoped */; + return blockScopeKind === 2 /* Const */ || blockScopeKind === 4 /* Using */ || blockScopeKind === 6 /* AwaitUsing */; + } } function isNotAccessor(declaration) { return !isAccessor(declaration); } function isNotOverload(declaration) { - return declaration.kind !== 261 /* FunctionDeclaration */ && declaration.kind !== 173 /* MethodDeclaration */ || !!declaration.body; + return declaration.kind !== 262 /* FunctionDeclaration */ && declaration.kind !== 174 /* MethodDeclaration */ || !!declaration.body; } function isDeclarationNameOrImportPropertyName(name) { switch (name.parent.kind) { - case 275 /* ImportSpecifier */: - case 280 /* ExportSpecifier */: + case 276 /* ImportSpecifier */: + case 281 /* ExportSpecifier */: return isIdentifier(name); default: return isDeclarationName(name); @@ -83232,13 +83840,13 @@ function createBasicNodeBuilderModuleSpecifierResolutionHost(host) { readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0 }; } -var SymbolTrackerImpl = class { +var SymbolTrackerImpl = class _SymbolTrackerImpl { constructor(context, tracker, moduleResolverHost) { this.moduleResolverHost = void 0; this.inner = void 0; this.disableTrackSymbol = false; var _a; - while (tracker instanceof SymbolTrackerImpl) { + while (tracker instanceof _SymbolTrackerImpl) { tracker = tracker.inner; } this.inner = tracker; @@ -83596,21 +84204,21 @@ function visitEachChild(node, visitor, context, nodesVisitor = visitNodes2, toke return fn === void 0 ? node : fn(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor); } var visitEachChildTable = { - [165 /* QualifiedName */]: function visitEachChildOfQualifiedName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [166 /* QualifiedName */]: function visitEachChildOfQualifiedName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateQualifiedName( node, Debug.checkDefined(nodeVisitor(node.left, visitor, isEntityName)), Debug.checkDefined(nodeVisitor(node.right, visitor, isIdentifier)) ); }, - [166 /* ComputedPropertyName */]: function visitEachChildOfComputedPropertyName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [167 /* ComputedPropertyName */]: function visitEachChildOfComputedPropertyName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateComputedPropertyName( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, // Signature elements - [167 /* TypeParameter */]: function visitEachChildOfTypeParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [168 /* TypeParameter */]: function visitEachChildOfTypeParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeParameterDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -83619,7 +84227,7 @@ var visitEachChildTable = { nodeVisitor(node.default, visitor, isTypeNode) ); }, - [168 /* Parameter */]: function visitEachChildOfParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [169 /* Parameter */]: function visitEachChildOfParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateParameterDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -83630,14 +84238,14 @@ var visitEachChildTable = { nodeVisitor(node.initializer, visitor, isExpression) ); }, - [169 /* Decorator */]: function visitEachChildOfDecorator(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [170 /* Decorator */]: function visitEachChildOfDecorator(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateDecorator( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, // Type elements - [170 /* PropertySignature */]: function visitEachChildOfPropertySignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [171 /* PropertySignature */]: function visitEachChildOfPropertySignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updatePropertySignature( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -83646,7 +84254,7 @@ var visitEachChildTable = { nodeVisitor(node.type, visitor, isTypeNode) ); }, - [171 /* PropertyDeclaration */]: function visitEachChildOfPropertyDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [172 /* PropertyDeclaration */]: function visitEachChildOfPropertyDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updatePropertyDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -83657,7 +84265,7 @@ var visitEachChildTable = { nodeVisitor(node.initializer, visitor, isExpression) ); }, - [172 /* MethodSignature */]: function visitEachChildOfMethodSignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [173 /* MethodSignature */]: function visitEachChildOfMethodSignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateMethodSignature( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -83668,7 +84276,7 @@ var visitEachChildTable = { nodeVisitor(node.type, visitor, isTypeNode) ); }, - [173 /* MethodDeclaration */]: function visitEachChildOfMethodDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [174 /* MethodDeclaration */]: function visitEachChildOfMethodDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateMethodDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -83681,7 +84289,7 @@ var visitEachChildTable = { visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [175 /* Constructor */]: function visitEachChildOfConstructorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [176 /* Constructor */]: function visitEachChildOfConstructorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateConstructorDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -83689,7 +84297,7 @@ var visitEachChildTable = { visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [176 /* GetAccessor */]: function visitEachChildOfGetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [177 /* GetAccessor */]: function visitEachChildOfGetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateGetAccessorDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -83699,7 +84307,7 @@ var visitEachChildTable = { visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [177 /* SetAccessor */]: function visitEachChildOfSetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [178 /* SetAccessor */]: function visitEachChildOfSetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateSetAccessorDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -83708,7 +84316,7 @@ var visitEachChildTable = { visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [174 /* ClassStaticBlockDeclaration */]: function visitEachChildOfClassStaticBlockDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [175 /* ClassStaticBlockDeclaration */]: function visitEachChildOfClassStaticBlockDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { context.startLexicalEnvironment(); context.suspendLexicalEnvironment(); return context.factory.updateClassStaticBlockDeclaration( @@ -83716,7 +84324,7 @@ var visitEachChildTable = { visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [178 /* CallSignature */]: function visitEachChildOfCallSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [179 /* CallSignature */]: function visitEachChildOfCallSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateCallSignature( node, nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), @@ -83724,7 +84332,7 @@ var visitEachChildTable = { nodeVisitor(node.type, visitor, isTypeNode) ); }, - [179 /* ConstructSignature */]: function visitEachChildOfConstructSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [180 /* ConstructSignature */]: function visitEachChildOfConstructSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateConstructSignature( node, nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), @@ -83732,7 +84340,7 @@ var visitEachChildTable = { nodeVisitor(node.type, visitor, isTypeNode) ); }, - [180 /* IndexSignature */]: function visitEachChildOfIndexSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [181 /* IndexSignature */]: function visitEachChildOfIndexSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateIndexSignature( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -83741,7 +84349,7 @@ var visitEachChildTable = { ); }, // Types - [181 /* TypePredicate */]: function visitEachChildOfTypePredicateNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [182 /* TypePredicate */]: function visitEachChildOfTypePredicateNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypePredicateNode( node, nodeVisitor(node.assertsModifier, visitor, isAssertsKeyword), @@ -83749,14 +84357,14 @@ var visitEachChildTable = { nodeVisitor(node.type, visitor, isTypeNode) ); }, - [182 /* TypeReference */]: function visitEachChildOfTypeReferenceNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [183 /* TypeReference */]: function visitEachChildOfTypeReferenceNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeReferenceNode( node, Debug.checkDefined(nodeVisitor(node.typeName, visitor, isEntityName)), nodesVisitor(node.typeArguments, visitor, isTypeNode) ); }, - [183 /* FunctionType */]: function visitEachChildOfFunctionTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [184 /* FunctionType */]: function visitEachChildOfFunctionTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateFunctionTypeNode( node, nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), @@ -83764,7 +84372,7 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [184 /* ConstructorType */]: function visitEachChildOfConstructorTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [185 /* ConstructorType */]: function visitEachChildOfConstructorTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateConstructorTypeNode( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -83773,56 +84381,56 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [185 /* TypeQuery */]: function visitEachChildOfTypeQueryNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [186 /* TypeQuery */]: function visitEachChildOfTypeQueryNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeQueryNode( node, Debug.checkDefined(nodeVisitor(node.exprName, visitor, isEntityName)), nodesVisitor(node.typeArguments, visitor, isTypeNode) ); }, - [186 /* TypeLiteral */]: function visitEachChildOfTypeLiteralNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [187 /* TypeLiteral */]: function visitEachChildOfTypeLiteralNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateTypeLiteralNode( node, nodesVisitor(node.members, visitor, isTypeElement) ); }, - [187 /* ArrayType */]: function visitEachChildOfArrayTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [188 /* ArrayType */]: function visitEachChildOfArrayTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateArrayTypeNode( node, Debug.checkDefined(nodeVisitor(node.elementType, visitor, isTypeNode)) ); }, - [188 /* TupleType */]: function visitEachChildOfTupleTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [189 /* TupleType */]: function visitEachChildOfTupleTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateTupleTypeNode( node, nodesVisitor(node.elements, visitor, isTypeNode) ); }, - [189 /* OptionalType */]: function visitEachChildOfOptionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [190 /* OptionalType */]: function visitEachChildOfOptionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateOptionalTypeNode( node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [190 /* RestType */]: function visitEachChildOfRestTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [191 /* RestType */]: function visitEachChildOfRestTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateRestTypeNode( node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [191 /* UnionType */]: function visitEachChildOfUnionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [192 /* UnionType */]: function visitEachChildOfUnionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateUnionTypeNode( node, nodesVisitor(node.types, visitor, isTypeNode) ); }, - [192 /* IntersectionType */]: function visitEachChildOfIntersectionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [193 /* IntersectionType */]: function visitEachChildOfIntersectionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateIntersectionTypeNode( node, nodesVisitor(node.types, visitor, isTypeNode) ); }, - [193 /* ConditionalType */]: function visitEachChildOfConditionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [194 /* ConditionalType */]: function visitEachChildOfConditionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateConditionalTypeNode( node, Debug.checkDefined(nodeVisitor(node.checkType, visitor, isTypeNode)), @@ -83831,13 +84439,13 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.falseType, visitor, isTypeNode)) ); }, - [194 /* InferType */]: function visitEachChildOfInferTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [195 /* InferType */]: function visitEachChildOfInferTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateInferTypeNode( node, Debug.checkDefined(nodeVisitor(node.typeParameter, visitor, isTypeParameterDeclaration)) ); }, - [204 /* ImportType */]: function visitEachChildOfImportTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [205 /* ImportType */]: function visitEachChildOfImportTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateImportTypeNode( node, Debug.checkDefined(nodeVisitor(node.argument, visitor, isTypeNode)), @@ -83847,14 +84455,14 @@ var visitEachChildTable = { node.isTypeOf ); }, - [301 /* ImportTypeAssertionContainer */]: function visitEachChildOfImportTypeAssertionContainer(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [302 /* ImportTypeAssertionContainer */]: function visitEachChildOfImportTypeAssertionContainer(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateImportTypeAssertionContainer( node, Debug.checkDefined(nodeVisitor(node.assertClause, visitor, isAssertClause)), node.multiLine ); }, - [201 /* NamedTupleMember */]: function visitEachChildOfNamedTupleMember(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [202 /* NamedTupleMember */]: function visitEachChildOfNamedTupleMember(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateNamedTupleMember( node, tokenVisitor ? nodeVisitor(node.dotDotDotToken, tokenVisitor, isDotDotDotToken) : node.dotDotDotToken, @@ -83863,26 +84471,26 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [195 /* ParenthesizedType */]: function visitEachChildOfParenthesizedType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [196 /* ParenthesizedType */]: function visitEachChildOfParenthesizedType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateParenthesizedType( node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [197 /* TypeOperator */]: function visitEachChildOfTypeOperatorNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [198 /* TypeOperator */]: function visitEachChildOfTypeOperatorNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeOperatorNode( node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [198 /* IndexedAccessType */]: function visitEachChildOfIndexedAccessType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [199 /* IndexedAccessType */]: function visitEachChildOfIndexedAccessType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateIndexedAccessTypeNode( node, Debug.checkDefined(nodeVisitor(node.objectType, visitor, isTypeNode)), Debug.checkDefined(nodeVisitor(node.indexType, visitor, isTypeNode)) ); }, - [199 /* MappedType */]: function visitEachChildOfMappedType(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [200 /* MappedType */]: function visitEachChildOfMappedType(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateMappedTypeNode( node, tokenVisitor ? nodeVisitor(node.readonlyToken, tokenVisitor, isReadonlyKeywordOrPlusOrMinusToken) : node.readonlyToken, @@ -83893,20 +84501,20 @@ var visitEachChildTable = { nodesVisitor(node.members, visitor, isTypeElement) ); }, - [200 /* LiteralType */]: function visitEachChildOfLiteralTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [201 /* LiteralType */]: function visitEachChildOfLiteralTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateLiteralTypeNode( node, Debug.checkDefined(nodeVisitor(node.literal, visitor, isLiteralTypeLiteral)) ); }, - [202 /* TemplateLiteralType */]: function visitEachChildOfTemplateLiteralType(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [203 /* TemplateLiteralType */]: function visitEachChildOfTemplateLiteralType(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTemplateLiteralType( node, Debug.checkDefined(nodeVisitor(node.head, visitor, isTemplateHead)), nodesVisitor(node.templateSpans, visitor, isTemplateLiteralTypeSpan) ); }, - [203 /* TemplateLiteralTypeSpan */]: function visitEachChildOfTemplateLiteralTypeSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [204 /* TemplateLiteralTypeSpan */]: function visitEachChildOfTemplateLiteralTypeSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTemplateLiteralTypeSpan( node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)), @@ -83914,19 +84522,19 @@ var visitEachChildTable = { ); }, // Binding patterns - [205 /* ObjectBindingPattern */]: function visitEachChildOfObjectBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [206 /* ObjectBindingPattern */]: function visitEachChildOfObjectBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateObjectBindingPattern( node, nodesVisitor(node.elements, visitor, isBindingElement) ); }, - [206 /* ArrayBindingPattern */]: function visitEachChildOfArrayBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [207 /* ArrayBindingPattern */]: function visitEachChildOfArrayBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateArrayBindingPattern( node, nodesVisitor(node.elements, visitor, isArrayBindingElement) ); }, - [207 /* BindingElement */]: function visitEachChildOfBindingElement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [208 /* BindingElement */]: function visitEachChildOfBindingElement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateBindingElement( node, tokenVisitor ? nodeVisitor(node.dotDotDotToken, tokenVisitor, isDotDotDotToken) : node.dotDotDotToken, @@ -83936,19 +84544,19 @@ var visitEachChildTable = { ); }, // Expression - [208 /* ArrayLiteralExpression */]: function visitEachChildOfArrayLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [209 /* ArrayLiteralExpression */]: function visitEachChildOfArrayLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateArrayLiteralExpression( node, nodesVisitor(node.elements, visitor, isExpression) ); }, - [209 /* ObjectLiteralExpression */]: function visitEachChildOfObjectLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [210 /* ObjectLiteralExpression */]: function visitEachChildOfObjectLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateObjectLiteralExpression( node, nodesVisitor(node.properties, visitor, isObjectLiteralElementLike) ); }, - [210 /* PropertyAccessExpression */]: function visitEachChildOfPropertyAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [211 /* PropertyAccessExpression */]: function visitEachChildOfPropertyAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return isPropertyAccessChain(node) ? context.factory.updatePropertyAccessChain( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), @@ -83960,7 +84568,7 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.name, visitor, isMemberName)) ); }, - [211 /* ElementAccessExpression */]: function visitEachChildOfElementAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [212 /* ElementAccessExpression */]: function visitEachChildOfElementAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return isElementAccessChain(node) ? context.factory.updateElementAccessChain( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), @@ -83972,7 +84580,7 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.argumentExpression, visitor, isExpression)) ); }, - [212 /* CallExpression */]: function visitEachChildOfCallExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [213 /* CallExpression */]: function visitEachChildOfCallExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return isCallChain(node) ? context.factory.updateCallChain( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), @@ -83986,7 +84594,7 @@ var visitEachChildTable = { nodesVisitor(node.arguments, visitor, isExpression) ); }, - [213 /* NewExpression */]: function visitEachChildOfNewExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [214 /* NewExpression */]: function visitEachChildOfNewExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateNewExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), @@ -83994,7 +84602,7 @@ var visitEachChildTable = { nodesVisitor(node.arguments, visitor, isExpression) ); }, - [214 /* TaggedTemplateExpression */]: function visitEachChildOfTaggedTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [215 /* TaggedTemplateExpression */]: function visitEachChildOfTaggedTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTaggedTemplateExpression( node, Debug.checkDefined(nodeVisitor(node.tag, visitor, isExpression)), @@ -84002,20 +84610,20 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.template, visitor, isTemplateLiteral)) ); }, - [215 /* TypeAssertionExpression */]: function visitEachChildOfTypeAssertionExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [216 /* TypeAssertionExpression */]: function visitEachChildOfTypeAssertionExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeAssertion( node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)), Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [216 /* ParenthesizedExpression */]: function visitEachChildOfParenthesizedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [217 /* ParenthesizedExpression */]: function visitEachChildOfParenthesizedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateParenthesizedExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [217 /* FunctionExpression */]: function visitEachChildOfFunctionExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [218 /* FunctionExpression */]: function visitEachChildOfFunctionExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateFunctionExpression( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -84027,7 +84635,7 @@ var visitEachChildTable = { visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [218 /* ArrowFunction */]: function visitEachChildOfArrowFunction(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [219 /* ArrowFunction */]: function visitEachChildOfArrowFunction(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateArrowFunction( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -84038,43 +84646,43 @@ var visitEachChildTable = { visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [219 /* DeleteExpression */]: function visitEachChildOfDeleteExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [220 /* DeleteExpression */]: function visitEachChildOfDeleteExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateDeleteExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [220 /* TypeOfExpression */]: function visitEachChildOfTypeOfExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [221 /* TypeOfExpression */]: function visitEachChildOfTypeOfExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeOfExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [221 /* VoidExpression */]: function visitEachChildOfVoidExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [222 /* VoidExpression */]: function visitEachChildOfVoidExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateVoidExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [222 /* AwaitExpression */]: function visitEachChildOfAwaitExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [223 /* AwaitExpression */]: function visitEachChildOfAwaitExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateAwaitExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [223 /* PrefixUnaryExpression */]: function visitEachChildOfPrefixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [224 /* PrefixUnaryExpression */]: function visitEachChildOfPrefixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updatePrefixUnaryExpression( node, Debug.checkDefined(nodeVisitor(node.operand, visitor, isExpression)) ); }, - [224 /* PostfixUnaryExpression */]: function visitEachChildOfPostfixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [225 /* PostfixUnaryExpression */]: function visitEachChildOfPostfixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updatePostfixUnaryExpression( node, Debug.checkDefined(nodeVisitor(node.operand, visitor, isExpression)) ); }, - [225 /* BinaryExpression */]: function visitEachChildOfBinaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [226 /* BinaryExpression */]: function visitEachChildOfBinaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateBinaryExpression( node, Debug.checkDefined(nodeVisitor(node.left, visitor, isExpression)), @@ -84082,7 +84690,7 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.right, visitor, isExpression)) ); }, - [226 /* ConditionalExpression */]: function visitEachChildOfConditionalExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [227 /* ConditionalExpression */]: function visitEachChildOfConditionalExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateConditionalExpression( node, Debug.checkDefined(nodeVisitor(node.condition, visitor, isExpression)), @@ -84092,27 +84700,27 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.whenFalse, visitor, isExpression)) ); }, - [227 /* TemplateExpression */]: function visitEachChildOfTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [228 /* TemplateExpression */]: function visitEachChildOfTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTemplateExpression( node, Debug.checkDefined(nodeVisitor(node.head, visitor, isTemplateHead)), nodesVisitor(node.templateSpans, visitor, isTemplateSpan) ); }, - [228 /* YieldExpression */]: function visitEachChildOfYieldExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [229 /* YieldExpression */]: function visitEachChildOfYieldExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateYieldExpression( node, tokenVisitor ? nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken) : node.asteriskToken, nodeVisitor(node.expression, visitor, isExpression) ); }, - [229 /* SpreadElement */]: function visitEachChildOfSpreadElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [230 /* SpreadElement */]: function visitEachChildOfSpreadElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateSpreadElement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [230 /* ClassExpression */]: function visitEachChildOfClassExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [231 /* ClassExpression */]: function visitEachChildOfClassExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateClassExpression( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -84122,28 +84730,28 @@ var visitEachChildTable = { nodesVisitor(node.members, visitor, isClassElement) ); }, - [232 /* ExpressionWithTypeArguments */]: function visitEachChildOfExpressionWithTypeArguments(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [233 /* ExpressionWithTypeArguments */]: function visitEachChildOfExpressionWithTypeArguments(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateExpressionWithTypeArguments( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), nodesVisitor(node.typeArguments, visitor, isTypeNode) ); }, - [233 /* AsExpression */]: function visitEachChildOfAsExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [234 /* AsExpression */]: function visitEachChildOfAsExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateAsExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [237 /* SatisfiesExpression */]: function visitEachChildOfSatisfiesExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [238 /* SatisfiesExpression */]: function visitEachChildOfSatisfiesExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateSatisfiesExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [234 /* NonNullExpression */]: function visitEachChildOfNonNullExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [235 /* NonNullExpression */]: function visitEachChildOfNonNullExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return isOptionalChain(node) ? context.factory.updateNonNullChain( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) @@ -84152,14 +84760,14 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [235 /* MetaProperty */]: function visitEachChildOfMetaProperty(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [236 /* MetaProperty */]: function visitEachChildOfMetaProperty(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateMetaProperty( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) ); }, // Misc - [238 /* TemplateSpan */]: function visitEachChildOfTemplateSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [239 /* TemplateSpan */]: function visitEachChildOfTemplateSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTemplateSpan( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), @@ -84167,26 +84775,26 @@ var visitEachChildTable = { ); }, // Element - [240 /* Block */]: function visitEachChildOfBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [241 /* Block */]: function visitEachChildOfBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateBlock( node, nodesVisitor(node.statements, visitor, isStatement) ); }, - [242 /* VariableStatement */]: function visitEachChildOfVariableStatement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [243 /* VariableStatement */]: function visitEachChildOfVariableStatement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateVariableStatement( node, nodesVisitor(node.modifiers, visitor, isModifierLike), Debug.checkDefined(nodeVisitor(node.declarationList, visitor, isVariableDeclarationList)) ); }, - [243 /* ExpressionStatement */]: function visitEachChildOfExpressionStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [244 /* ExpressionStatement */]: function visitEachChildOfExpressionStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateExpressionStatement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [244 /* IfStatement */]: function visitEachChildOfIfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [245 /* IfStatement */]: function visitEachChildOfIfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateIfStatement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), @@ -84194,21 +84802,21 @@ var visitEachChildTable = { nodeVisitor(node.elseStatement, visitor, isStatement, context.factory.liftToBlock) ); }, - [245 /* DoStatement */]: function visitEachChildOfDoStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [246 /* DoStatement */]: function visitEachChildOfDoStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateDoStatement( node, visitIterationBody(node.statement, visitor, context, nodeVisitor), Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [246 /* WhileStatement */]: function visitEachChildOfWhileStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [247 /* WhileStatement */]: function visitEachChildOfWhileStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateWhileStatement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), visitIterationBody(node.statement, visitor, context, nodeVisitor) ); }, - [247 /* ForStatement */]: function visitEachChildOfForStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [248 /* ForStatement */]: function visitEachChildOfForStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateForStatement( node, nodeVisitor(node.initializer, visitor, isForInitializer), @@ -84217,7 +84825,7 @@ var visitEachChildTable = { visitIterationBody(node.statement, visitor, context, nodeVisitor) ); }, - [248 /* ForInStatement */]: function visitEachChildOfForInStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [249 /* ForInStatement */]: function visitEachChildOfForInStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateForInStatement( node, Debug.checkDefined(nodeVisitor(node.initializer, visitor, isForInitializer)), @@ -84225,7 +84833,7 @@ var visitEachChildTable = { visitIterationBody(node.statement, visitor, context, nodeVisitor) ); }, - [249 /* ForOfStatement */]: function visitEachChildOfForOfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [250 /* ForOfStatement */]: function visitEachChildOfForOfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateForOfStatement( node, tokenVisitor ? nodeVisitor(node.awaitModifier, tokenVisitor, isAwaitKeyword) : node.awaitModifier, @@ -84234,52 +84842,52 @@ var visitEachChildTable = { visitIterationBody(node.statement, visitor, context, nodeVisitor) ); }, - [250 /* ContinueStatement */]: function visitEachChildOfContinueStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [251 /* ContinueStatement */]: function visitEachChildOfContinueStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateContinueStatement( node, nodeVisitor(node.label, visitor, isIdentifier) ); }, - [251 /* BreakStatement */]: function visitEachChildOfBreakStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [252 /* BreakStatement */]: function visitEachChildOfBreakStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateBreakStatement( node, nodeVisitor(node.label, visitor, isIdentifier) ); }, - [252 /* ReturnStatement */]: function visitEachChildOfReturnStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [253 /* ReturnStatement */]: function visitEachChildOfReturnStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateReturnStatement( node, nodeVisitor(node.expression, visitor, isExpression) ); }, - [253 /* WithStatement */]: function visitEachChildOfWithStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [254 /* WithStatement */]: function visitEachChildOfWithStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateWithStatement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), Debug.checkDefined(nodeVisitor(node.statement, visitor, isStatement, context.factory.liftToBlock)) ); }, - [254 /* SwitchStatement */]: function visitEachChildOfSwitchStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [255 /* SwitchStatement */]: function visitEachChildOfSwitchStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateSwitchStatement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), Debug.checkDefined(nodeVisitor(node.caseBlock, visitor, isCaseBlock)) ); }, - [255 /* LabeledStatement */]: function visitEachChildOfLabeledStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [256 /* LabeledStatement */]: function visitEachChildOfLabeledStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateLabeledStatement( node, Debug.checkDefined(nodeVisitor(node.label, visitor, isIdentifier)), Debug.checkDefined(nodeVisitor(node.statement, visitor, isStatement, context.factory.liftToBlock)) ); }, - [256 /* ThrowStatement */]: function visitEachChildOfThrowStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [257 /* ThrowStatement */]: function visitEachChildOfThrowStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateThrowStatement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [257 /* TryStatement */]: function visitEachChildOfTryStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [258 /* TryStatement */]: function visitEachChildOfTryStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTryStatement( node, Debug.checkDefined(nodeVisitor(node.tryBlock, visitor, isBlock)), @@ -84287,7 +84895,7 @@ var visitEachChildTable = { nodeVisitor(node.finallyBlock, visitor, isBlock) ); }, - [259 /* VariableDeclaration */]: function visitEachChildOfVariableDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [260 /* VariableDeclaration */]: function visitEachChildOfVariableDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateVariableDeclaration( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isBindingName)), @@ -84296,13 +84904,13 @@ var visitEachChildTable = { nodeVisitor(node.initializer, visitor, isExpression) ); }, - [260 /* VariableDeclarationList */]: function visitEachChildOfVariableDeclarationList(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [261 /* VariableDeclarationList */]: function visitEachChildOfVariableDeclarationList(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateVariableDeclarationList( node, nodesVisitor(node.declarations, visitor, isVariableDeclaration) ); }, - [261 /* FunctionDeclaration */]: function visitEachChildOfFunctionDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [262 /* FunctionDeclaration */]: function visitEachChildOfFunctionDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateFunctionDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -84314,7 +84922,7 @@ var visitEachChildTable = { visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [262 /* ClassDeclaration */]: function visitEachChildOfClassDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [263 /* ClassDeclaration */]: function visitEachChildOfClassDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateClassDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -84324,7 +84932,7 @@ var visitEachChildTable = { nodesVisitor(node.members, visitor, isClassElement) ); }, - [263 /* InterfaceDeclaration */]: function visitEachChildOfInterfaceDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [264 /* InterfaceDeclaration */]: function visitEachChildOfInterfaceDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateInterfaceDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -84334,7 +84942,7 @@ var visitEachChildTable = { nodesVisitor(node.members, visitor, isTypeElement) ); }, - [264 /* TypeAliasDeclaration */]: function visitEachChildOfTypeAliasDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [265 /* TypeAliasDeclaration */]: function visitEachChildOfTypeAliasDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeAliasDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -84343,7 +84951,7 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [265 /* EnumDeclaration */]: function visitEachChildOfEnumDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [266 /* EnumDeclaration */]: function visitEachChildOfEnumDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateEnumDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -84351,7 +84959,7 @@ var visitEachChildTable = { nodesVisitor(node.members, visitor, isEnumMember) ); }, - [266 /* ModuleDeclaration */]: function visitEachChildOfModuleDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [267 /* ModuleDeclaration */]: function visitEachChildOfModuleDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateModuleDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -84359,25 +84967,25 @@ var visitEachChildTable = { nodeVisitor(node.body, visitor, isModuleBody) ); }, - [267 /* ModuleBlock */]: function visitEachChildOfModuleBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [268 /* ModuleBlock */]: function visitEachChildOfModuleBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateModuleBlock( node, nodesVisitor(node.statements, visitor, isStatement) ); }, - [268 /* CaseBlock */]: function visitEachChildOfCaseBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [269 /* CaseBlock */]: function visitEachChildOfCaseBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateCaseBlock( node, nodesVisitor(node.clauses, visitor, isCaseOrDefaultClause) ); }, - [269 /* NamespaceExportDeclaration */]: function visitEachChildOfNamespaceExportDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [270 /* NamespaceExportDeclaration */]: function visitEachChildOfNamespaceExportDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateNamespaceExportDeclaration( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) ); }, - [270 /* ImportEqualsDeclaration */]: function visitEachChildOfImportEqualsDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [271 /* ImportEqualsDeclaration */]: function visitEachChildOfImportEqualsDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateImportEqualsDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -84386,7 +84994,7 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.moduleReference, visitor, isModuleReference)) ); }, - [271 /* ImportDeclaration */]: function visitEachChildOfImportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [272 /* ImportDeclaration */]: function visitEachChildOfImportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateImportDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -84395,21 +85003,21 @@ var visitEachChildTable = { nodeVisitor(node.assertClause, visitor, isAssertClause) ); }, - [299 /* AssertClause */]: function visitEachChildOfAssertClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [300 /* AssertClause */]: function visitEachChildOfAssertClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateAssertClause( node, nodesVisitor(node.elements, visitor, isAssertEntry), node.multiLine ); }, - [300 /* AssertEntry */]: function visitEachChildOfAssertEntry(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [301 /* AssertEntry */]: function visitEachChildOfAssertEntry(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateAssertEntry( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isAssertionKey)), Debug.checkDefined(nodeVisitor(node.value, visitor, isExpression)) ); }, - [272 /* ImportClause */]: function visitEachChildOfImportClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [273 /* ImportClause */]: function visitEachChildOfImportClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateImportClause( node, node.isTypeOnly, @@ -84417,25 +85025,25 @@ var visitEachChildTable = { nodeVisitor(node.namedBindings, visitor, isNamedImportBindings) ); }, - [273 /* NamespaceImport */]: function visitEachChildOfNamespaceImport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [274 /* NamespaceImport */]: function visitEachChildOfNamespaceImport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateNamespaceImport( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) ); }, - [279 /* NamespaceExport */]: function visitEachChildOfNamespaceExport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [280 /* NamespaceExport */]: function visitEachChildOfNamespaceExport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateNamespaceExport( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) ); }, - [274 /* NamedImports */]: function visitEachChildOfNamedImports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [275 /* NamedImports */]: function visitEachChildOfNamedImports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateNamedImports( node, nodesVisitor(node.elements, visitor, isImportSpecifier) ); }, - [275 /* ImportSpecifier */]: function visitEachChildOfImportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [276 /* ImportSpecifier */]: function visitEachChildOfImportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateImportSpecifier( node, node.isTypeOnly, @@ -84443,14 +85051,14 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) ); }, - [276 /* ExportAssignment */]: function visitEachChildOfExportAssignment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [277 /* ExportAssignment */]: function visitEachChildOfExportAssignment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateExportAssignment( node, nodesVisitor(node.modifiers, visitor, isModifierLike), Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [277 /* ExportDeclaration */]: function visitEachChildOfExportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [278 /* ExportDeclaration */]: function visitEachChildOfExportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateExportDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -84460,13 +85068,13 @@ var visitEachChildTable = { nodeVisitor(node.assertClause, visitor, isAssertClause) ); }, - [278 /* NamedExports */]: function visitEachChildOfNamedExports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [279 /* NamedExports */]: function visitEachChildOfNamedExports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateNamedExports( node, nodesVisitor(node.elements, visitor, isExportSpecifier) ); }, - [280 /* ExportSpecifier */]: function visitEachChildOfExportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [281 /* ExportSpecifier */]: function visitEachChildOfExportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateExportSpecifier( node, node.isTypeOnly, @@ -84475,14 +85083,14 @@ var visitEachChildTable = { ); }, // Module references - [282 /* ExternalModuleReference */]: function visitEachChildOfExternalModuleReference(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [283 /* ExternalModuleReference */]: function visitEachChildOfExternalModuleReference(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateExternalModuleReference( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, // JSX - [283 /* JsxElement */]: function visitEachChildOfJsxElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [284 /* JsxElement */]: function visitEachChildOfJsxElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxElement( node, Debug.checkDefined(nodeVisitor(node.openingElement, visitor, isJsxOpeningElement)), @@ -84490,7 +85098,7 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.closingElement, visitor, isJsxClosingElement)) ); }, - [284 /* JsxSelfClosingElement */]: function visitEachChildOfJsxSelfClosingElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [285 /* JsxSelfClosingElement */]: function visitEachChildOfJsxSelfClosingElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxSelfClosingElement( node, Debug.checkDefined(nodeVisitor(node.tagName, visitor, isJsxTagNameExpression)), @@ -84498,7 +85106,7 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.attributes, visitor, isJsxAttributes)) ); }, - [285 /* JsxOpeningElement */]: function visitEachChildOfJsxOpeningElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [286 /* JsxOpeningElement */]: function visitEachChildOfJsxOpeningElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxOpeningElement( node, Debug.checkDefined(nodeVisitor(node.tagName, visitor, isJsxTagNameExpression)), @@ -84506,20 +85114,20 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.attributes, visitor, isJsxAttributes)) ); }, - [286 /* JsxClosingElement */]: function visitEachChildOfJsxClosingElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [287 /* JsxClosingElement */]: function visitEachChildOfJsxClosingElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxClosingElement( node, Debug.checkDefined(nodeVisitor(node.tagName, visitor, isJsxTagNameExpression)) ); }, - [294 /* JsxNamespacedName */]: function forEachChildInJsxNamespacedName2(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [295 /* JsxNamespacedName */]: function forEachChildInJsxNamespacedName2(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxNamespacedName( node, Debug.checkDefined(nodeVisitor(node.namespace, visitor, isIdentifier)), Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) ); }, - [287 /* JsxFragment */]: function visitEachChildOfJsxFragment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [288 /* JsxFragment */]: function visitEachChildOfJsxFragment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxFragment( node, Debug.checkDefined(nodeVisitor(node.openingFragment, visitor, isJsxOpeningFragment)), @@ -84527,52 +85135,52 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.closingFragment, visitor, isJsxClosingFragment)) ); }, - [290 /* JsxAttribute */]: function visitEachChildOfJsxAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [291 /* JsxAttribute */]: function visitEachChildOfJsxAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxAttribute( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isJsxAttributeName)), nodeVisitor(node.initializer, visitor, isStringLiteralOrJsxExpression) ); }, - [291 /* JsxAttributes */]: function visitEachChildOfJsxAttributes(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [292 /* JsxAttributes */]: function visitEachChildOfJsxAttributes(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateJsxAttributes( node, nodesVisitor(node.properties, visitor, isJsxAttributeLike) ); }, - [292 /* JsxSpreadAttribute */]: function visitEachChildOfJsxSpreadAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [293 /* JsxSpreadAttribute */]: function visitEachChildOfJsxSpreadAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxSpreadAttribute( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [293 /* JsxExpression */]: function visitEachChildOfJsxExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [294 /* JsxExpression */]: function visitEachChildOfJsxExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxExpression( node, nodeVisitor(node.expression, visitor, isExpression) ); }, // Clauses - [295 /* CaseClause */]: function visitEachChildOfCaseClause(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [296 /* CaseClause */]: function visitEachChildOfCaseClause(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateCaseClause( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), nodesVisitor(node.statements, visitor, isStatement) ); }, - [296 /* DefaultClause */]: function visitEachChildOfDefaultClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [297 /* DefaultClause */]: function visitEachChildOfDefaultClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateDefaultClause( node, nodesVisitor(node.statements, visitor, isStatement) ); }, - [297 /* HeritageClause */]: function visitEachChildOfHeritageClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [298 /* HeritageClause */]: function visitEachChildOfHeritageClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateHeritageClause( node, nodesVisitor(node.types, visitor, isExpressionWithTypeArguments) ); }, - [298 /* CatchClause */]: function visitEachChildOfCatchClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [299 /* CatchClause */]: function visitEachChildOfCatchClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateCatchClause( node, nodeVisitor(node.variableDeclaration, visitor, isVariableDeclaration), @@ -84580,28 +85188,28 @@ var visitEachChildTable = { ); }, // Property assignments - [302 /* PropertyAssignment */]: function visitEachChildOfPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [303 /* PropertyAssignment */]: function visitEachChildOfPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updatePropertyAssignment( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), Debug.checkDefined(nodeVisitor(node.initializer, visitor, isExpression)) ); }, - [303 /* ShorthandPropertyAssignment */]: function visitEachChildOfShorthandPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [304 /* ShorthandPropertyAssignment */]: function visitEachChildOfShorthandPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateShorthandPropertyAssignment( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)), nodeVisitor(node.objectAssignmentInitializer, visitor, isExpression) ); }, - [304 /* SpreadAssignment */]: function visitEachChildOfSpreadAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [305 /* SpreadAssignment */]: function visitEachChildOfSpreadAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateSpreadAssignment( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, // Enum - [305 /* EnumMember */]: function visitEachChildOfEnumMember(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [306 /* EnumMember */]: function visitEachChildOfEnumMember(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateEnumMember( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), @@ -84609,20 +85217,20 @@ var visitEachChildTable = { ); }, // Top-level nodes - [311 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context, _nodesVisitor, _nodeVisitor, _tokenVisitor) { + [312 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context, _nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateSourceFile( node, visitLexicalEnvironment(node.statements, visitor, context) ); }, // Transformation nodes - [359 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [360 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updatePartiallyEmittedExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [360 /* CommaListExpression */]: function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [361 /* CommaListExpression */]: function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateCommaListExpression( node, nodesVisitor(node.elements, visitor, isExpression) @@ -85056,7 +85664,7 @@ function isNamedDefaultReference(e) { function chainBundle(context, transformSourceFile) { return transformSourceFileOrBundle; function transformSourceFileOrBundle(node) { - return node.kind === 311 /* SourceFile */ ? transformSourceFile(node) : transformBundle(node); + return node.kind === 312 /* SourceFile */ ? transformSourceFile(node) : transformBundle(node); } function transformBundle(node) { return context.factory.createBundle(map(node.sourceFiles, transformSourceFile), node.prepends); @@ -85086,9 +85694,11 @@ function getImportNeedsImportStarHelper(node) { function getImportNeedsImportDefaultHelper(node) { return !getImportNeedsImportStarHelper(node) && (isDefaultImport(node) || !!node.importClause && isNamedImports(node.importClause.namedBindings) && containsDefaultReference(node.importClause.namedBindings)); } -function collectExternalModuleInfo(context, sourceFile, resolver, compilerOptions) { +function collectExternalModuleInfo(context, sourceFile) { + const resolver = context.getEmitResolver(); + const compilerOptions = context.getCompilerOptions(); const externalImports = []; - const exportSpecifiers = createMultiMap(); + const exportSpecifiers = new IdentifierNameMultiMap(); const exportedBindings = []; const uniqueExports = /* @__PURE__ */ new Map(); let exportedNames; @@ -85099,7 +85709,7 @@ function collectExternalModuleInfo(context, sourceFile, resolver, compilerOption let hasImportDefault = false; for (const node of sourceFile.statements) { switch (node.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: externalImports.push(node); if (!hasImportStar && getImportNeedsImportStarHelper(node)) { hasImportStar = true; @@ -85108,12 +85718,12 @@ function collectExternalModuleInfo(context, sourceFile, resolver, compilerOption hasImportDefault = true; } break; - case 270 /* ImportEqualsDeclaration */: - if (node.moduleReference.kind === 282 /* ExternalModuleReference */) { + case 271 /* ImportEqualsDeclaration */: + if (node.moduleReference.kind === 283 /* ExternalModuleReference */) { externalImports.push(node); } break; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: if (node.moduleSpecifier) { if (!node.exportClause) { externalImports.push(node); @@ -85136,19 +85746,19 @@ function collectExternalModuleInfo(context, sourceFile, resolver, compilerOption addExportedNamesForExportDeclaration(node); } break; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: if (node.isExportEquals && !exportEquals) { exportEquals = node; } break; - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: if (hasSyntacticModifier(node, 1 /* Export */)) { for (const decl of node.declarationList.declarations) { exportedNames = collectExportedVariableInfo(decl, uniqueExports, exportedNames, exportedBindings); } } break; - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: if (hasSyntacticModifier(node, 1 /* Export */)) { if (hasSyntacticModifier(node, 1024 /* Default */)) { if (!hasExportDefault) { @@ -85165,7 +85775,7 @@ function collectExternalModuleInfo(context, sourceFile, resolver, compilerOption } } break; - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: if (hasSyntacticModifier(node, 1 /* Export */)) { if (hasSyntacticModifier(node, 1024 /* Default */)) { if (!hasExportDefault) { @@ -85194,7 +85804,7 @@ function collectExternalModuleInfo(context, sourceFile, resolver, compilerOption if (!uniqueExports.get(idText(specifier.name))) { const name = specifier.propertyName || specifier.name; if (!node.moduleSpecifier) { - exportSpecifiers.add(idText(name), specifier); + exportSpecifiers.add(name, specifier); } const decl = resolver.getReferencedImportDeclaration(name) || resolver.getReferencedValueDeclaration(name); if (decl) { @@ -85234,6 +85844,85 @@ function multiMapSparseArrayAdd(map2, key, value) { } return values; } +var IdentifierNameMap = class _IdentifierNameMap { + constructor() { + this._map = /* @__PURE__ */ new Map(); + } + get size() { + return this._map.size; + } + has(key) { + return this._map.has(_IdentifierNameMap.toKey(key)); + } + get(key) { + return this._map.get(_IdentifierNameMap.toKey(key)); + } + set(key, value) { + this._map.set(_IdentifierNameMap.toKey(key), value); + return this; + } + delete(key) { + var _a; + return ((_a = this._map) == null ? void 0 : _a.delete(_IdentifierNameMap.toKey(key))) ?? false; + } + clear() { + this._map.clear(); + } + values() { + return this._map.values(); + } + static toKey(name) { + if (isGeneratedPrivateIdentifier(name) || isGeneratedIdentifier(name)) { + const autoGenerate = name.emitNode.autoGenerate; + if ((autoGenerate.flags & 7 /* KindMask */) === 4 /* Node */) { + const node = getNodeForGeneratedName(name); + const baseName = isMemberName(node) && node !== name ? _IdentifierNameMap.toKey(node) : `(generated@${getNodeId(node)})`; + return formatGeneratedName( + /*privateName*/ + false, + autoGenerate.prefix, + baseName, + autoGenerate.suffix, + _IdentifierNameMap.toKey + ); + } else { + const baseName = `(auto@${autoGenerate.id})`; + return formatGeneratedName( + /*privateName*/ + false, + autoGenerate.prefix, + baseName, + autoGenerate.suffix, + _IdentifierNameMap.toKey + ); + } + } + if (isPrivateIdentifier(name)) { + return idText(name).slice(1); + } + return idText(name); + } +}; +var IdentifierNameMultiMap = class extends IdentifierNameMap { + add(key, value) { + let values = this.get(key); + if (values) { + values.push(value); + } else { + this.set(key, values = [value]); + } + return values; + } + remove(key, value) { + const values = this.get(key); + if (values) { + unorderedRemoveItem(values, value); + if (!values.length) { + this.delete(key); + } + } + } +}; function isSimpleCopiableExpression(expression) { return isStringLiteralLike(expression) || expression.kind === 9 /* NumericLiteral */ || isKeyword(expression.kind) || isIdentifier(expression); } @@ -85284,14 +85973,23 @@ function getSuperCallFromStatement(statement) { const expression = skipParentheses(statement.expression); return isSuperCall(expression) ? expression : void 0; } -function findSuperStatementIndex(statements, indexAfterLastPrologueStatement) { - for (let i = indexAfterLastPrologueStatement; i < statements.length; i += 1) { +function findSuperStatementIndexPathWorker(statements, start, indices) { + for (let i = start; i < statements.length; i += 1) { const statement = statements[i]; if (getSuperCallFromStatement(statement)) { - return i; + indices.unshift(i); + return true; + } else if (isTryStatement(statement) && findSuperStatementIndexPathWorker(statement.tryBlock.statements, 0, indices)) { + indices.unshift(i); + return true; } } - return -1; + return false; +} +function findSuperStatementIndexPath(statements, start) { + const indices = []; + findSuperStatementIndexPathWorker(statements, start, indices); + return indices; } function getProperties(node, requireInitializer, isStatic2) { return filter(node.members, (m) => isInitializedOrStaticProperty(m, requireInitializer, isStatic2)); @@ -85309,7 +86007,7 @@ function isStaticPropertyDeclaration(member) { return isPropertyDeclaration(member) && hasStaticModifier(member); } function isInitializedProperty(member) { - return member.kind === 171 /* PropertyDeclaration */ && member.initializer !== void 0; + return member.kind === 172 /* PropertyDeclaration */ && member.initializer !== void 0; } function isNonStaticMethodOrAccessorWithPrivateName(member) { return !isStatic(member) && (isMethodOrAccessor(member) || isAutoAccessorPropertyDeclaration(member)) && isPrivateIdentifier(member.name); @@ -85346,15 +86044,15 @@ function getAllDecoratorsOfClass(node) { } function getAllDecoratorsOfClassElement(member, parent, useLegacyDecorators) { switch (member.kind) { - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: if (!useLegacyDecorators) { return getAllDecoratorsOfMethod(member); } return getAllDecoratorsOfAccessors(member, parent); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return getAllDecoratorsOfMethod(member); - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return getAllDecoratorsOfProperty(member); default: return void 0; @@ -85883,6 +86581,275 @@ function makeAssignmentElement(name) { return name; } +// src/compiler/transformers/classThis.ts +function createClassThisAssignmentBlock(factory2, classThis, thisExpression = factory2.createThis()) { + const expression = factory2.createAssignment(classThis, thisExpression); + const statement = factory2.createExpressionStatement(expression); + const body = factory2.createBlock( + [statement], + /*multiLine*/ + false + ); + const block = factory2.createClassStaticBlockDeclaration(body); + getOrCreateEmitNode(block).classThis = classThis; + return block; +} +function isClassThisAssignmentBlock(node) { + var _a; + if (!isClassStaticBlockDeclaration(node) || node.body.statements.length !== 1) { + return false; + } + const statement = node.body.statements[0]; + return isExpressionStatement(statement) && isAssignmentExpression( + statement.expression, + /*excludeCompoundAssignment*/ + true + ) && isIdentifier(statement.expression.left) && ((_a = node.emitNode) == null ? void 0 : _a.classThis) === statement.expression.left && statement.expression.right.kind === 110 /* ThisKeyword */; +} +function classHasClassThisAssignment(node) { + var _a; + return !!((_a = node.emitNode) == null ? void 0 : _a.classThis) && some(node.members, isClassThisAssignmentBlock); +} +function injectClassThisAssignmentIfMissing(factory2, node, classThis, thisExpression) { + if (classHasClassThisAssignment(node)) { + return node; + } + const staticBlock = createClassThisAssignmentBlock(factory2, classThis, thisExpression); + if (node.name) { + setSourceMapRange(staticBlock.body.statements[0], node.name); + } + const members = factory2.createNodeArray([staticBlock, ...node.members]); + setTextRange(members, node.members); + const updatedNode = isClassDeclaration(node) ? factory2.updateClassDeclaration( + node, + node.modifiers, + node.name, + node.typeParameters, + node.heritageClauses, + members + ) : factory2.updateClassExpression( + node, + node.modifiers, + node.name, + node.typeParameters, + node.heritageClauses, + members + ); + getOrCreateEmitNode(updatedNode).classThis = classThis; + return updatedNode; +} + +// src/compiler/transformers/namedEvaluation.ts +function getAssignedNameOfIdentifier(factory2, name, expression) { + const original = getOriginalNode(skipOuterExpressions(expression)); + if ((isClassDeclaration(original) || isFunctionDeclaration(original)) && !original.name && hasSyntacticModifier(original, 1024 /* Default */)) { + return factory2.createStringLiteral("default"); + } + return factory2.createStringLiteralFromNode(name); +} +function getAssignedNameOfPropertyName(context, name, assignedNameText) { + const { factory: factory2 } = context; + if (assignedNameText !== void 0) { + const assignedName2 = factory2.createStringLiteral(assignedNameText); + return { assignedName: assignedName2, name }; + } + if (isPropertyNameLiteral(name) || isPrivateIdentifier(name)) { + const assignedName2 = factory2.createStringLiteralFromNode(name); + return { assignedName: assignedName2, name }; + } + if (isPropertyNameLiteral(name.expression) && !isIdentifier(name.expression)) { + const assignedName2 = factory2.createStringLiteralFromNode(name.expression); + return { assignedName: assignedName2, name }; + } + const assignedName = factory2.getGeneratedNameForNode(name); + context.hoistVariableDeclaration(assignedName); + const key = context.getEmitHelperFactory().createPropKeyHelper(name.expression); + const assignment = factory2.createAssignment(assignedName, key); + const updatedName = factory2.updateComputedPropertyName(name, assignment); + return { assignedName, name: updatedName }; +} +function createClassNamedEvaluationHelperBlock(context, assignedName, thisExpression = context.factory.createThis()) { + const { factory: factory2 } = context; + const expression = context.getEmitHelperFactory().createSetFunctionNameHelper(thisExpression, assignedName); + const statement = factory2.createExpressionStatement(expression); + const body = factory2.createBlock( + [statement], + /*multiLine*/ + false + ); + const block = factory2.createClassStaticBlockDeclaration(body); + getOrCreateEmitNode(block).assignedName = assignedName; + return block; +} +function isClassNamedEvaluationHelperBlock(node) { + var _a; + if (!isClassStaticBlockDeclaration(node) || node.body.statements.length !== 1) { + return false; + } + const statement = node.body.statements[0]; + return isExpressionStatement(statement) && isCallToHelper(statement.expression, "___setFunctionName") && statement.expression.arguments.length >= 2 && statement.expression.arguments[1] === ((_a = node.emitNode) == null ? void 0 : _a.assignedName); +} +function classHasExplicitlyAssignedName(node) { + var _a; + return !!((_a = node.emitNode) == null ? void 0 : _a.assignedName) && some(node.members, isClassNamedEvaluationHelperBlock); +} +function classHasDeclaredOrExplicitlyAssignedName(node) { + return !!node.name || classHasExplicitlyAssignedName(node); +} +function injectClassNamedEvaluationHelperBlockIfMissing(context, node, assignedName, thisExpression) { + if (classHasExplicitlyAssignedName(node)) { + return node; + } + const { factory: factory2 } = context; + const namedEvaluationBlock = createClassNamedEvaluationHelperBlock(context, assignedName, thisExpression); + if (node.name) { + setSourceMapRange(namedEvaluationBlock.body.statements[0], node.name); + } + const insertionIndex = findIndex(node.members, isClassThisAssignmentBlock) + 1; + const leading = node.members.slice(0, insertionIndex); + const trailing = node.members.slice(insertionIndex); + const members = factory2.createNodeArray([...leading, namedEvaluationBlock, ...trailing]); + setTextRange(members, node.members); + node = isClassDeclaration(node) ? factory2.updateClassDeclaration( + node, + node.modifiers, + node.name, + node.typeParameters, + node.heritageClauses, + members + ) : factory2.updateClassExpression( + node, + node.modifiers, + node.name, + node.typeParameters, + node.heritageClauses, + members + ); + getOrCreateEmitNode(node).assignedName = assignedName; + return node; +} +function finishTransformNamedEvaluation(context, expression, assignedName, ignoreEmptyStringLiteral) { + if (ignoreEmptyStringLiteral && isStringLiteral(assignedName) && isEmptyStringLiteral(assignedName)) { + return expression; + } + const { factory: factory2 } = context; + const innerExpression = skipOuterExpressions(expression); + const updatedExpression = isClassExpression(innerExpression) ? cast(injectClassNamedEvaluationHelperBlockIfMissing(context, innerExpression, assignedName), isClassExpression) : context.getEmitHelperFactory().createSetFunctionNameHelper(innerExpression, assignedName); + return factory2.restoreOuterExpressions(expression, updatedExpression); +} +function transformNamedEvaluationOfPropertyAssignment(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const { assignedName, name } = getAssignedNameOfPropertyName(context, node.name, assignedNameText); + const initializer = finishTransformNamedEvaluation(context, node.initializer, assignedName, ignoreEmptyStringLiteral); + return factory2.updatePropertyAssignment( + node, + name, + initializer + ); +} +function transformNamedEvaluationOfShorthandAssignmentProperty(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : getAssignedNameOfIdentifier(factory2, node.name, node.objectAssignmentInitializer); + const objectAssignmentInitializer = finishTransformNamedEvaluation(context, node.objectAssignmentInitializer, assignedName, ignoreEmptyStringLiteral); + return factory2.updateShorthandPropertyAssignment( + node, + node.name, + objectAssignmentInitializer + ); +} +function transformNamedEvaluationOfVariableDeclaration(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : getAssignedNameOfIdentifier(factory2, node.name, node.initializer); + const initializer = finishTransformNamedEvaluation(context, node.initializer, assignedName, ignoreEmptyStringLiteral); + return factory2.updateVariableDeclaration( + node, + node.name, + node.exclamationToken, + node.type, + initializer + ); +} +function transformNamedEvaluationOfParameterDeclaration(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : getAssignedNameOfIdentifier(factory2, node.name, node.initializer); + const initializer = finishTransformNamedEvaluation(context, node.initializer, assignedName, ignoreEmptyStringLiteral); + return factory2.updateParameterDeclaration( + node, + node.modifiers, + node.dotDotDotToken, + node.name, + node.questionToken, + node.type, + initializer + ); +} +function transformNamedEvaluationOfBindingElement(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : getAssignedNameOfIdentifier(factory2, node.name, node.initializer); + const initializer = finishTransformNamedEvaluation(context, node.initializer, assignedName, ignoreEmptyStringLiteral); + return factory2.updateBindingElement( + node, + node.dotDotDotToken, + node.propertyName, + node.name, + initializer + ); +} +function transformNamedEvaluationOfPropertyDeclaration(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const { assignedName, name } = getAssignedNameOfPropertyName(context, node.name, assignedNameText); + const initializer = finishTransformNamedEvaluation(context, node.initializer, assignedName, ignoreEmptyStringLiteral); + return factory2.updatePropertyDeclaration( + node, + node.modifiers, + name, + node.questionToken ?? node.exclamationToken, + node.type, + initializer + ); +} +function transformNamedEvaluationOfAssignmentExpression(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : getAssignedNameOfIdentifier(factory2, node.left, node.right); + const right = finishTransformNamedEvaluation(context, node.right, assignedName, ignoreEmptyStringLiteral); + return factory2.updateBinaryExpression( + node, + node.left, + node.operatorToken, + right + ); +} +function transformNamedEvaluationOfExportAssignment(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : factory2.createStringLiteral(node.isExportEquals ? "" : "default"); + const expression = finishTransformNamedEvaluation(context, node.expression, assignedName, ignoreEmptyStringLiteral); + return factory2.updateExportAssignment( + node, + node.modifiers, + expression + ); +} +function transformNamedEvaluation(context, node, ignoreEmptyStringLiteral, assignedName) { + switch (node.kind) { + case 303 /* PropertyAssignment */: + return transformNamedEvaluationOfPropertyAssignment(context, node, ignoreEmptyStringLiteral, assignedName); + case 304 /* ShorthandPropertyAssignment */: + return transformNamedEvaluationOfShorthandAssignmentProperty(context, node, ignoreEmptyStringLiteral, assignedName); + case 260 /* VariableDeclaration */: + return transformNamedEvaluationOfVariableDeclaration(context, node, ignoreEmptyStringLiteral, assignedName); + case 169 /* Parameter */: + return transformNamedEvaluationOfParameterDeclaration(context, node, ignoreEmptyStringLiteral, assignedName); + case 208 /* BindingElement */: + return transformNamedEvaluationOfBindingElement(context, node, ignoreEmptyStringLiteral, assignedName); + case 172 /* PropertyDeclaration */: + return transformNamedEvaluationOfPropertyDeclaration(context, node, ignoreEmptyStringLiteral, assignedName); + case 226 /* BinaryExpression */: + return transformNamedEvaluationOfAssignmentExpression(context, node, ignoreEmptyStringLiteral, assignedName); + case 277 /* ExportAssignment */: + return transformNamedEvaluationOfExportAssignment(context, node, ignoreEmptyStringLiteral, assignedName); + } +} + // src/compiler/transformers/taggedTemplate.ts function processTaggedTemplateExpression(context, node, visitor, currentSourceFile, recordTaggedTemplateString, level) { const tag = visitNode(node.tag, visitor, isExpression); @@ -85970,8 +86937,8 @@ function transformTypeScript(context) { const previousOnSubstituteNode = context.onSubstituteNode; context.onEmitNode = onEmitNode; context.onSubstituteNode = onSubstituteNode; - context.enableSubstitution(210 /* PropertyAccessExpression */); - context.enableSubstitution(211 /* ElementAccessExpression */); + context.enableSubstitution(211 /* PropertyAccessExpression */); + context.enableSubstitution(212 /* ElementAccessExpression */); let currentSourceFile; let currentNamespace; let currentNamespaceContainerName; @@ -85982,14 +86949,14 @@ function transformTypeScript(context) { let applicableSubstitutions; return transformSourceFileOrBundle; function transformSourceFileOrBundle(node) { - if (node.kind === 312 /* Bundle */) { + if (node.kind === 313 /* Bundle */) { return transformBundle(node); } return transformSourceFile(node); } function transformBundle(node) { return factory2.createBundle(node.sourceFiles.map(transformSourceFile), mapDefined(node.prepends, (prepend) => { - if (prepend.kind === 314 /* InputFiles */) { + if (prepend.kind === 315 /* InputFiles */) { return createUnparsedSourceFile(prepend, "js"); } return prepend; @@ -86020,22 +86987,22 @@ function transformTypeScript(context) { } function onBeforeVisitNode(node) { switch (node.kind) { - case 311 /* SourceFile */: - case 268 /* CaseBlock */: - case 267 /* ModuleBlock */: - case 240 /* Block */: + case 312 /* SourceFile */: + case 269 /* CaseBlock */: + case 268 /* ModuleBlock */: + case 241 /* Block */: currentLexicalScope = node; currentScopeFirstDeclarationsOfName = void 0; break; - case 262 /* ClassDeclaration */: - case 261 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: + case 262 /* FunctionDeclaration */: if (hasSyntacticModifier(node, 2 /* Ambient */)) { break; } if (node.name) { recordEmittedDeclarationInScope(node); } else { - Debug.assert(node.kind === 262 /* ClassDeclaration */ || hasSyntacticModifier(node, 1024 /* Default */)); + Debug.assert(node.kind === 263 /* ClassDeclaration */ || hasSyntacticModifier(node, 1024 /* Default */)); } break; } @@ -86054,10 +87021,10 @@ function transformTypeScript(context) { } function sourceElementVisitorWorker(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: - case 270 /* ImportEqualsDeclaration */: - case 276 /* ExportAssignment */: - case 277 /* ExportDeclaration */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 277 /* ExportAssignment */: + case 278 /* ExportDeclaration */: return visitElidableStatement(node); default: return visitorWorker(node); @@ -86072,13 +87039,13 @@ function transformTypeScript(context) { return node; } switch (node.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return visitImportDeclaration(node); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return visitImportEqualsDeclaration(node); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return visitExportAssignment(node); - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return visitExportDeclaration(node); default: Debug.fail("Unhandled ellided statement"); @@ -86088,7 +87055,7 @@ function transformTypeScript(context) { return saveStateAndInvoke(node, namespaceElementVisitorWorker); } function namespaceElementVisitorWorker(node) { - if (node.kind === 277 /* ExportDeclaration */ || node.kind === 271 /* ImportDeclaration */ || node.kind === 272 /* ImportClause */ || node.kind === 270 /* ImportEqualsDeclaration */ && node.moduleReference.kind === 282 /* ExternalModuleReference */) { + if (node.kind === 278 /* ExportDeclaration */ || node.kind === 272 /* ImportDeclaration */ || node.kind === 273 /* ImportClause */ || node.kind === 271 /* ImportEqualsDeclaration */ && node.moduleReference.kind === 283 /* ExternalModuleReference */) { return void 0; } else if (node.transformFlags & 1 /* ContainsTypeScript */ || hasSyntacticModifier(node, 1 /* Export */)) { return visitTypeScript(node); @@ -86100,21 +87067,21 @@ function transformTypeScript(context) { } function classElementVisitorWorker(node, parent) { switch (node.kind) { - case 175 /* Constructor */: + case 176 /* Constructor */: return visitConstructor(node); - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return visitPropertyDeclaration(node, parent); - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return visitGetAccessor(node, parent); - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return visitSetAccessor(node, parent); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return visitMethodDeclaration(node, parent); - case 174 /* ClassStaticBlockDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: return visitEachChild(node, visitor, context); - case 239 /* SemicolonClassElement */: + case 240 /* SemicolonClassElement */: return node; - case 180 /* IndexSignature */: + case 181 /* IndexSignature */: return; default: return Debug.failBadSyntaxKind(node); @@ -86125,15 +87092,15 @@ function transformTypeScript(context) { } function objectLiteralElementVisitorWorker(node, parent) { switch (node.kind) { - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: - case 304 /* SpreadAssignment */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 305 /* SpreadAssignment */: return visitor(node); - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return visitGetAccessor(node, parent); - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return visitSetAccessor(node, parent); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return visitMethodDeclaration(node, parent); default: return Debug.failBadSyntaxKind(node); @@ -86167,19 +87134,19 @@ function transformTypeScript(context) { case 123 /* PrivateKeyword */: case 124 /* ProtectedKeyword */: case 128 /* AbstractKeyword */: - case 163 /* OverrideKeyword */: + case 164 /* OverrideKeyword */: case 87 /* ConstKeyword */: case 138 /* DeclareKeyword */: case 148 /* ReadonlyKeyword */: case 103 /* InKeyword */: case 147 /* OutKeyword */: - case 187 /* ArrayType */: - case 188 /* TupleType */: - case 189 /* OptionalType */: - case 190 /* RestType */: - case 186 /* TypeLiteral */: - case 181 /* TypePredicate */: - case 167 /* TypeParameter */: + case 188 /* ArrayType */: + case 189 /* TupleType */: + case 190 /* OptionalType */: + case 191 /* RestType */: + case 187 /* TypeLiteral */: + case 182 /* TypePredicate */: + case 168 /* TypeParameter */: case 133 /* AnyKeyword */: case 159 /* UnknownKeyword */: case 136 /* BooleanKeyword */: @@ -86188,80 +87155,80 @@ function transformTypeScript(context) { case 146 /* NeverKeyword */: case 116 /* VoidKeyword */: case 155 /* SymbolKeyword */: - case 184 /* ConstructorType */: - case 183 /* FunctionType */: - case 185 /* TypeQuery */: - case 182 /* TypeReference */: - case 191 /* UnionType */: - case 192 /* IntersectionType */: - case 193 /* ConditionalType */: - case 195 /* ParenthesizedType */: - case 196 /* ThisType */: - case 197 /* TypeOperator */: - case 198 /* IndexedAccessType */: - case 199 /* MappedType */: - case 200 /* LiteralType */: - case 180 /* IndexSignature */: + case 185 /* ConstructorType */: + case 184 /* FunctionType */: + case 186 /* TypeQuery */: + case 183 /* TypeReference */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: + case 194 /* ConditionalType */: + case 196 /* ParenthesizedType */: + case 197 /* ThisType */: + case 198 /* TypeOperator */: + case 199 /* IndexedAccessType */: + case 200 /* MappedType */: + case 201 /* LiteralType */: + case 181 /* IndexSignature */: return void 0; - case 264 /* TypeAliasDeclaration */: + case 265 /* TypeAliasDeclaration */: return factory2.createNotEmittedStatement(node); - case 269 /* NamespaceExportDeclaration */: + case 270 /* NamespaceExportDeclaration */: return void 0; - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: return factory2.createNotEmittedStatement(node); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return visitClassDeclaration(node); - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return visitClassExpression(node); - case 297 /* HeritageClause */: + case 298 /* HeritageClause */: return visitHeritageClause(node); - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return visitExpressionWithTypeArguments(node); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return visitObjectLiteralExpression(node); - case 175 /* Constructor */: - case 171 /* PropertyDeclaration */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 174 /* ClassStaticBlockDeclaration */: + case 176 /* Constructor */: + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 175 /* ClassStaticBlockDeclaration */: return Debug.fail("Class and object literal elements must be visited with their respective visitors"); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return visitFunctionDeclaration(node); - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: return visitFunctionExpression(node); - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return visitArrowFunction(node); - case 168 /* Parameter */: + case 169 /* Parameter */: return visitParameter(node); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression(node); - case 215 /* TypeAssertionExpression */: - case 233 /* AsExpression */: + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: return visitAssertionExpression(node); - case 237 /* SatisfiesExpression */: + case 238 /* SatisfiesExpression */: return visitSatisfiesExpression(node); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return visitCallExpression(node); - case 213 /* NewExpression */: + case 214 /* NewExpression */: return visitNewExpression(node); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return visitTaggedTemplateExpression(node); - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: return visitNonNullExpression(node); - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return visitEnumDeclaration(node); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return visitVariableStatement(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return visitVariableDeclaration(node); - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return visitModuleDeclaration(node); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return visitImportEqualsDeclaration(node); - case 284 /* JsxSelfClosingElement */: + case 285 /* JsxSelfClosingElement */: return visitJsxSelfClosingElement(node); - case 285 /* JsxOpeningElement */: + case 286 /* JsxOpeningElement */: return visitJsxJsxOpeningElement(node); default: return visitEachChild(node, visitor, context); @@ -86371,25 +87338,25 @@ function transformTypeScript(context) { insertStatementsAfterStandardPrologue(statements, context.endLexicalEnvironment()); const iife = factory2.createImmediatelyInvokedArrowFunction(statements); setInternalEmitFlags(iife, 1 /* TypeScriptClassWrapper */); - const modifiers2 = facts & 16 /* IsNamedExternalExport */ ? factory2.createModifiersFromModifierFlags(1 /* Export */) : void 0; + const varDecl = factory2.createVariableDeclaration( + factory2.getLocalName( + node, + /*allowComments*/ + false, + /*allowSourceMaps*/ + false + ), + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + iife + ); + setOriginalNode(varDecl, node); const varStatement = factory2.createVariableStatement( - modifiers2, - factory2.createVariableDeclarationList([ - factory2.createVariableDeclaration( - factory2.getLocalName( - node, - /*allowComments*/ - false, - /*allowSourceMaps*/ - false - ), - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - iife - ) - ], 1 /* Let */) + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList([varDecl], 1 /* Let */) ); setOriginalNode(varStatement, node); setCommentRange(varStatement, node); @@ -86418,10 +87385,10 @@ function transformTypeScript(context) { )) ]; } - if (facts & 16 /* IsNamedExternalExport */ && !promoteToIIFE) { + if (facts & 16 /* IsNamedExternalExport */) { return [ statement, - factory2.createExternalModuleExport(factory2.getLocalName( + factory2.createExternalModuleExport(factory2.getDeclarationName( node, /*allowComments*/ false, @@ -86585,19 +87552,19 @@ function transformTypeScript(context) { } function shouldAddTypeMetadata(node) { const kind = node.kind; - return kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */ || kind === 171 /* PropertyDeclaration */; + return kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 172 /* PropertyDeclaration */; } function shouldAddReturnTypeMetadata(node) { - return node.kind === 173 /* MethodDeclaration */; + return node.kind === 174 /* MethodDeclaration */; } function shouldAddParamTypesMetadata(node) { switch (node.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return getFirstConstructorWithBody(node) !== void 0; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return true; } return false; @@ -86646,7 +87613,7 @@ function transformTypeScript(context) { return !nodeIsMissing(node.body); } function visitPropertyDeclaration(node, parent) { - const isAmbient = node.flags & 16777216 /* Ambient */ || hasSyntacticModifier(node, 256 /* Abstract */); + const isAmbient = node.flags & 33554432 /* Ambient */ || hasSyntacticModifier(node, 256 /* Abstract */); if (isAmbient && !(legacyDecorators && hasDecorators(node))) { return void 0; } @@ -86688,6 +87655,35 @@ function transformTypeScript(context) { transformConstructorBody(node.body, node) ); } + function transformConstructorBodyWorker(statementsOut, statementsIn, statementOffset, superPath, superPathDepth, initializerStatements) { + const superStatementIndex = superPath[superPathDepth]; + const superStatement = statementsIn[superStatementIndex]; + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, statementOffset, superStatementIndex - statementOffset)); + if (isTryStatement(superStatement)) { + const tryBlockStatements = []; + transformConstructorBodyWorker( + tryBlockStatements, + superStatement.tryBlock.statements, + /*statementOffset*/ + 0, + superPath, + superPathDepth + 1, + initializerStatements + ); + const tryBlockStatementsArray = factory2.createNodeArray(tryBlockStatements); + setTextRange(tryBlockStatementsArray, superStatement.tryBlock.statements); + statementsOut.push(factory2.updateTryStatement( + superStatement, + factory2.updateBlock(superStatement.tryBlock, tryBlockStatements), + visitNode(superStatement.catchClause, visitor, isCatchClause), + visitNode(superStatement.finallyBlock, visitor, isBlock) + )); + } else { + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex, 1)); + addRange(statementsOut, initializerStatements); + } + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex + 1)); + } function transformConstructorBody(body, constructor) { const parametersWithPropertyAssignments = constructor && filter(constructor.parameters, (p) => isParameterPropertyDeclaration(p, constructor)); if (!some(parametersWithPropertyAssignments)) { @@ -86702,25 +87698,22 @@ function transformTypeScript(context) { false, visitor ); - const superStatementIndex = findSuperStatementIndex(body.statements, prologueStatementCount); - if (superStatementIndex >= 0) { - addRange( + const superPath = findSuperStatementIndexPath(body.statements, prologueStatementCount); + const parameterPropertyAssignments = mapDefined(parametersWithPropertyAssignments, transformParameterWithPropertyAssignment); + if (superPath.length) { + transformConstructorBodyWorker( statements, - visitNodes2(body.statements, visitor, isStatement, prologueStatementCount, superStatementIndex + 1 - prologueStatementCount) + body.statements, + prologueStatementCount, + superPath, + /*superPathDepth*/ + 0, + parameterPropertyAssignments ); - } - const parameterPropertyAssignments = mapDefined(parametersWithPropertyAssignments, transformParameterWithPropertyAssignment); - if (superStatementIndex >= 0) { - addRange(statements, parameterPropertyAssignments); } else { - statements = [ - ...statements.slice(0, prologueStatementCount), - ...parameterPropertyAssignments, - ...statements.slice(prologueStatementCount) - ]; + addRange(statements, parameterPropertyAssignments); + addRange(statements, visitNodes2(body.statements, visitor, isStatement, prologueStatementCount)); } - const start = superStatementIndex >= 0 ? superStatementIndex + 1 : prologueStatementCount; - addRange(statements, visitNodes2(body.statements, visitor, isStatement, start)); statements = factory2.mergeLexicalEnvironment(statements, endLexicalEnvironment()); const block = factory2.createBlock( setTextRange(factory2.createNodeArray(statements), body.statements), @@ -87216,7 +88209,7 @@ function transformTypeScript(context) { /*allowSourceMaps*/ true )); - const varFlags = currentLexicalScope.kind === 311 /* SourceFile */ ? 0 /* None */ : 1 /* Let */; + const varFlags = currentLexicalScope.kind === 312 /* SourceFile */ ? 0 /* None */ : 1 /* Let */; const statement = factory2.createVariableStatement( visitNodes2(node.modifiers, modifierVisitor, isModifier), factory2.createVariableDeclarationList([varDecl], varFlags) @@ -87227,7 +88220,7 @@ function transformTypeScript(context) { setOriginalNode(statement, node); recordEmittedDeclarationInScope(node); if (isFirstEmittedDeclarationInScope(node)) { - if (node.kind === 265 /* EnumDeclaration */) { + if (node.kind === 266 /* EnumDeclaration */) { setSourceMapRange(statement.declarationList, node); } else { setSourceMapRange(statement, node); @@ -87335,7 +88328,7 @@ function transformTypeScript(context) { let statementsLocation; let blockLocation; if (node.body) { - if (node.body.kind === 267 /* ModuleBlock */) { + if (node.body.kind === 268 /* ModuleBlock */) { saveStateAndInvoke(node.body, (body) => addRange(statements, visitNodes2(body.statements, namespaceElementVisitor, isStatement))); statementsLocation = node.body.statements; blockLocation = node.body; @@ -87366,13 +88359,13 @@ function transformTypeScript(context) { true ); setTextRange(block, blockLocation); - if (!node.body || node.body.kind !== 267 /* ModuleBlock */) { + if (!node.body || node.body.kind !== 268 /* ModuleBlock */) { setEmitFlags(block, getEmitFlags(block) | 3072 /* NoComments */); } return block; } function getInnerMostModuleDeclarationFromDottedModule(moduleDeclaration) { - if (moduleDeclaration.body.kind === 266 /* ModuleDeclaration */) { + if (moduleDeclaration.body.kind === 267 /* ModuleDeclaration */) { const recursiveInnerModule = getInnerMostModuleDeclarationFromDottedModule(moduleDeclaration.body); return recursiveInnerModule || moduleDeclaration.body; } @@ -87407,7 +88400,7 @@ function transformTypeScript(context) { ) : void 0; } function visitNamedImportBindings(node) { - if (node.kind === 273 /* NamespaceImport */) { + if (node.kind === 274 /* NamespaceImport */) { return shouldEmitAliasDeclaration(node) ? node : void 0; } else { const allowEmpty = compilerOptions.verbatimModuleSyntax || compilerOptions.preserveValueImports && (compilerOptions.importsNotUsedAsValues === 1 /* Preserve */ || compilerOptions.importsNotUsedAsValues === 2 /* Error */); @@ -87605,15 +88598,15 @@ function transformTypeScript(context) { if ((enabledSubstitutions & 2 /* NamespaceExports */) === 0) { enabledSubstitutions |= 2 /* NamespaceExports */; context.enableSubstitution(80 /* Identifier */); - context.enableSubstitution(303 /* ShorthandPropertyAssignment */); - context.enableEmitNotification(266 /* ModuleDeclaration */); + context.enableSubstitution(304 /* ShorthandPropertyAssignment */); + context.enableEmitNotification(267 /* ModuleDeclaration */); } } function isTransformedModuleDeclaration(node) { - return getOriginalNode(node).kind === 266 /* ModuleDeclaration */; + return getOriginalNode(node).kind === 267 /* ModuleDeclaration */; } function isTransformedEnumDeclaration(node) { - return getOriginalNode(node).kind === 265 /* EnumDeclaration */; + return getOriginalNode(node).kind === 266 /* EnumDeclaration */; } function onEmitNode(hint, node, emitCallback) { const savedApplicableSubstitutions = applicableSubstitutions; @@ -87658,9 +88651,9 @@ function transformTypeScript(context) { switch (node.kind) { case 80 /* Identifier */: return substituteExpressionIdentifier(node); - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return substitutePropertyAccessExpression(node); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return substituteElementAccessExpression(node); } return node; @@ -87675,8 +88668,8 @@ function transformTypeScript(context) { /*prefixLocals*/ false ); - if (container && container.kind !== 311 /* SourceFile */) { - const substitute = applicableSubstitutions & 2 /* NamespaceExports */ && container.kind === 266 /* ModuleDeclaration */ || applicableSubstitutions & 8 /* NonQualifiedEnumMembers */ && container.kind === 265 /* EnumDeclaration */; + if (container && container.kind !== 312 /* SourceFile */) { + const substitute = applicableSubstitutions & 2 /* NamespaceExports */ && container.kind === 267 /* ModuleDeclaration */ || applicableSubstitutions & 8 /* NonQualifiedEnumMembers */ && container.kind === 266 /* EnumDeclaration */; if (substitute) { return setTextRange( factory2.createPropertyAccessExpression(factory2.getGeneratedNameForNode(container), node), @@ -87701,7 +88694,7 @@ function transformTypeScript(context) { const constantValue = tryGetConstEnumValue(node); if (constantValue !== void 0) { setConstantValue(node, constantValue); - const substitute = typeof constantValue === "string" ? factory2.createStringLiteral(constantValue) : factory2.createNumericLiteral(constantValue); + const substitute = typeof constantValue === "string" ? factory2.createStringLiteral(constantValue) : constantValue < 0 ? factory2.createPrefixUnaryExpression(41 /* MinusToken */, factory2.createNumericLiteral(Math.abs(constantValue))) : factory2.createNumericLiteral(constantValue); if (!compilerOptions.removeComments) { const originalNode = getOriginalNode(node, isAccessExpression); addSyntheticTrailingComment(substitute, 3 /* MultiLineCommentTrivia */, ` ${safeMultiLineComment(getTextOfNode(originalNode))} `); @@ -87756,8 +88749,9 @@ function transformClassFields(context) { let pendingStatements; let lexicalEnvironment; const lexicalEnvironmentMap = /* @__PURE__ */ new Map(); + const noSubstitution = /* @__PURE__ */ new Set(); let currentClassContainer; - let currentStaticPropertyDeclarationOrStaticBlock; + let currentClassElement; let shouldSubstituteThisWithClassThis = false; let previousShouldSubstituteThisWithClassThis = false; return chainBundle(context, transformSourceFile); @@ -87789,76 +88783,77 @@ function transformClassFields(context) { switch (node.kind) { case 129 /* AccessorKeyword */: return Debug.fail("Use `modifierVisitor` instead."); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return visitClassDeclaration(node); - case 230 /* ClassExpression */: - return visitClassExpression( - node, - /*referencedName*/ - void 0 - ); - case 174 /* ClassStaticBlockDeclaration */: - case 171 /* PropertyDeclaration */: + case 231 /* ClassExpression */: + return visitClassExpression(node); + case 175 /* ClassStaticBlockDeclaration */: + case 172 /* PropertyDeclaration */: return Debug.fail("Use `classElementVisitor` instead."); - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return visitPropertyAssignment(node); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return visitVariableStatement(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return visitVariableDeclaration(node); - case 168 /* Parameter */: + case 169 /* Parameter */: return visitParameterDeclaration(node); - case 207 /* BindingElement */: + case 208 /* BindingElement */: return visitBindingElement(node); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return visitExportAssignment(node); case 81 /* PrivateIdentifier */: return visitPrivateIdentifier(node); - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return visitPropertyAccessExpression(node); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return visitElementAccessExpression(node); - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return visitPreOrPostfixUnaryExpression( node, /*discarded*/ false ); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return visitBinaryExpression( node, /*discarded*/ false ); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression( node, /*discarded*/ - false, - /*referencedName*/ - void 0 + false ); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return visitCallExpression(node); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return visitExpressionStatement(node); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return visitTaggedTemplateExpression(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement(node); - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 175 /* Constructor */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: { - return setCurrentStaticPropertyDeclarationOrStaticBlockAnd( - /*current*/ + case 110 /* ThisKeyword */: + return visitThisExpression(node); + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + return setCurrentClassElementAnd( + /*classElement*/ void 0, fallbackVisitor, node ); + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: { + return setCurrentClassElementAnd( + node, + fallbackVisitor, + node + ); } default: return fallbackVisitor(node); @@ -87867,56 +88862,32 @@ function transformClassFields(context) { function fallbackVisitor(node) { return visitEachChild(node, visitor, context); } - function namedEvaluationVisitor(node, referencedName) { - switch (node.kind) { - case 359 /* PartiallyEmittedExpression */: - return visitPartiallyEmittedExpression( - node, - /*discarded*/ - false, - referencedName - ); - case 216 /* ParenthesizedExpression */: - return visitParenthesizedExpression( - node, - /*discarded*/ - false, - referencedName - ); - case 230 /* ClassExpression */: - return visitClassExpression(node, referencedName); - default: - return visitor(node); - } - } function discardedValueVisitor(node) { switch (node.kind) { - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return visitPreOrPostfixUnaryExpression( node, /*discarded*/ true ); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return visitBinaryExpression( node, /*discarded*/ true ); - case 360 /* CommaListExpression */: + case 361 /* CommaListExpression */: return visitCommaListExpression( node, /*discarded*/ true ); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression( node, /*discarded*/ - true, - /*referencedName*/ - void 0 + true ); default: return visitor(node); @@ -87924,9 +88895,9 @@ function transformClassFields(context) { } function heritageClauseVisitor(node) { switch (node.kind) { - case 297 /* HeritageClause */: + case 298 /* HeritageClause */: return visitEachChild(node, heritageClauseVisitor, context); - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return visitExpressionWithTypeArgumentsInHeritageClause(node); default: return visitor(node); @@ -87934,8 +88905,8 @@ function transformClassFields(context) { } function assignmentTargetVisitor(node) { switch (node.kind) { - case 209 /* ObjectLiteralExpression */: - case 208 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return visitAssignmentPattern(node); default: return visitor(node); @@ -87943,29 +88914,35 @@ function transformClassFields(context) { } function classElementVisitor(node) { switch (node.kind) { - case 175 /* Constructor */: - return visitConstructorDeclaration(node); - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 173 /* MethodDeclaration */: - return setCurrentStaticPropertyDeclarationOrStaticBlockAnd( - /*current*/ - void 0, + case 176 /* Constructor */: + return setCurrentClassElementAnd( + node, + visitConstructorDeclaration, + node + ); + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: + return setCurrentClassElementAnd( + node, visitMethodOrAccessorDeclaration, node ); - case 171 /* PropertyDeclaration */: - return setCurrentStaticPropertyDeclarationOrStaticBlockAnd( - /*current*/ - void 0, + case 172 /* PropertyDeclaration */: + return setCurrentClassElementAnd( + node, visitPropertyDeclaration, node ); - case 174 /* ClassStaticBlockDeclaration */: - return visitClassStaticBlockDeclaration(node); - case 166 /* ComputedPropertyName */: + case 175 /* ClassStaticBlockDeclaration */: + return setCurrentClassElementAnd( + node, + visitClassStaticBlockDeclaration, + node + ); + case 167 /* ComputedPropertyName */: return visitComputedPropertyName(node); - case 239 /* SemicolonClassElement */: + case 240 /* SemicolonClassElement */: return node; default: return isModifierLike(node) ? modifierVisitor(node) : visitor(node); @@ -87973,7 +88950,7 @@ function transformClassFields(context) { } function propertyNameVisitor(node) { switch (node.kind) { - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: return visitComputedPropertyName(node); default: return visitor(node); @@ -87981,10 +88958,10 @@ function transformClassFields(context) { } function accessorFieldResultVisitor(node) { switch (node.kind) { - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return transformFieldInitializer(node); - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return classElementVisitor(node); default: Debug.assertMissingNode(node, "Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration"); @@ -88013,9 +88990,7 @@ function transformClassFields(context) { } function visitPropertyAssignment(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const { referencedName, name } = visitReferencedPropertyName(node.name); - const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, referencedName), isExpression); - return factory2.updatePropertyAssignment(node, name, initializer); + node = transformNamedEvaluation(context, node); } return visitEachChild(node, visitor, context); } @@ -88027,71 +89002,33 @@ function transformClassFields(context) { pendingStatements = savedPendingStatements; return statement; } - function getAssignedNameOfIdentifier(name, initializer) { - const originalClass = getOriginalNode(initializer, isClassLike); - return originalClass && !originalClass.name && hasSyntacticModifier(originalClass, 1024 /* Default */) ? factory2.createStringLiteral("default") : factory2.createStringLiteralFromNode(name); - } function visitVariableDeclaration(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.name, node.initializer); - const name = visitNode(node.name, visitor, isBindingName); - const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateVariableDeclaration( - node, - name, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - initializer - ); + node = transformNamedEvaluation(context, node); } return visitEachChild(node, visitor, context); } function visitParameterDeclaration(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.name, node.initializer); - const name = visitNode(node.name, visitor, isBindingName); - const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateParameterDeclaration( - node, - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - name, - /*questionToken*/ - void 0, - /*type*/ - void 0, - initializer - ); + node = transformNamedEvaluation(context, node); } return visitEachChild(node, visitor, context); } function visitBindingElement(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.name, node.initializer); - const propertyName = visitNode(node.propertyName, visitor, isPropertyName); - const name = visitNode(node.name, visitor, isBindingName); - const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateBindingElement( - node, - /*dotDotDotToken*/ - void 0, - propertyName, - name, - initializer - ); + node = transformNamedEvaluation(context, node); } return visitEachChild(node, visitor, context); } function visitExportAssignment(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = factory2.createStringLiteral(node.isExportEquals ? "" : "default"); - const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); - const expression = visitNode(node.expression, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateExportAssignment(node, modifiers, expression); + node = transformNamedEvaluation( + context, + node, + /*ignoreEmptyStringLiteral*/ + true, + node.isExportEquals ? "" : "default" + ); } return visitEachChild(node, visitor, context); } @@ -88156,12 +89093,15 @@ function transformClassFields(context) { } return void 0; } - function setCurrentStaticPropertyDeclarationOrStaticBlockAnd(current, visitor2, arg) { - const savedCurrentStaticPropertyDeclarationOrStaticBlock = currentStaticPropertyDeclarationOrStaticBlock; - currentStaticPropertyDeclarationOrStaticBlock = current; - const result = visitor2(arg); - currentStaticPropertyDeclarationOrStaticBlock = savedCurrentStaticPropertyDeclarationOrStaticBlock; - return result; + function setCurrentClassElementAnd(classElement, visitor2, arg) { + if (classElement !== currentClassElement) { + const savedCurrentClassElement = currentClassElement; + currentClassElement = classElement; + const result = visitor2(arg); + currentClassElement = savedCurrentClassElement; + return result; + } + return visitor2(arg); } function getHoistedFunctionName(node) { Debug.assert(isPrivateIdentifier(node.name)); @@ -88179,6 +89119,11 @@ function transformClassFields(context) { } } } + function getClassThis() { + const lex = getClassLexicalEnvironment(); + const classThis = lex.classThis ?? lex.classConstructor ?? (currentClassContainer == null ? void 0 : currentClassContainer.name); + return Debug.checkDefined(classThis); + } function transformAutoAccessor(node) { const commentRange = getCommentRange(node); const sourceMapRange = getSourceMapRange(node); @@ -88205,11 +89150,13 @@ function transformClassFields(context) { setOriginalNode(backingField, node); setEmitFlags(backingField, 3072 /* NoComments */); setSourceMapRange(backingField, sourceMapRange); - const getter = createAccessorPropertyGetRedirector(factory2, node, modifiers, getterName); + const receiver = isStatic(node) ? getClassThis() : factory2.createThis(); + const getter = createAccessorPropertyGetRedirector(factory2, node, modifiers, getterName, receiver); setOriginalNode(getter, node); setCommentRange(getter, commentRange); setSourceMapRange(getter, sourceMapRange); - const setter = createAccessorPropertySetRedirector(factory2, node, modifiers, setterName); + const setterModifiers = factory2.createModifiersFromModifierFlags(modifiersToFlags(modifiers)); + const setter = createAccessorPropertySetRedirector(factory2, node, setterModifiers, setterName, receiver); setOriginalNode(setter, node); setEmitFlags(setter, 3072 /* NoComments */); setSourceMapRange(setter, sourceMapRange); @@ -88248,17 +89195,7 @@ function transformClassFields(context) { ); } if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const { referencedName, name } = visitReferencedPropertyName(node.name); - return factory2.updatePropertyDeclaration( - node, - visitNodes2(node.modifiers, modifierVisitor, isModifier), - name, - /*questionOrExclamationToken*/ - void 0, - /*type*/ - void 0, - visitNode(node.initializer, (child) => namedEvaluationVisitor(child, referencedName), isExpression) - ); + node = transformNamedEvaluation(context, node); } return factory2.updatePropertyDeclaration( node, @@ -88276,9 +89213,7 @@ function transformClassFields(context) { const expr = getPropertyNameExpressionIfNeeded( node.name, /*shouldHoist*/ - !!node.initializer || useDefineForClassFields, - /*captureReferencedName*/ - isNamedEvaluation(node, isAnonymousClassNeedingAssignedName) + !!node.initializer || useDefineForClassFields ); if (expr) { getPendingExpressions().push(...flattenCommaList(expr)); @@ -88323,8 +89258,21 @@ function transformClassFields(context) { } return transformFieldInitializer(node); } + function shouldForceDynamicThis() { + return !!currentClassElement && hasStaticModifier(currentClassElement) && isAccessor(currentClassElement) && isAutoAccessorPropertyDeclaration(getOriginalNode(currentClassElement)); + } + function ensureDynamicThisIfNeeded(node) { + if (shouldForceDynamicThis()) { + const innerExpression = skipOuterExpressions(node); + if (innerExpression.kind === 110 /* ThisKeyword */) { + noSubstitution.add(innerExpression); + } + } + } function createPrivateIdentifierAccess(info, receiver) { - return createPrivateIdentifierAccessHelper(info, visitNode(receiver, visitor, isExpression)); + receiver = visitNode(receiver, visitor, isExpression); + ensureDynamicThisIfNeeded(receiver); + return createPrivateIdentifierAccessHelper(info, receiver); } function createPrivateIdentifierAccessHelper(info, receiver) { setCommentRange(receiver, moveRangePos(receiver, -1)); @@ -88369,7 +89317,7 @@ function transformClassFields(context) { ); } } - if (shouldTransformSuperInStaticInitializers && isSuperProperty(node) && isIdentifier(node.name) && currentStaticPropertyDeclarationOrStaticBlock && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node) && isIdentifier(node.name) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { const { classConstructor, superClassReference, facts } = lexicalEnvironment.data; if (facts & 1 /* ClassWasDecorated */) { return visitInvalidSuperProperty(node); @@ -88388,7 +89336,7 @@ function transformClassFields(context) { return visitEachChild(node, visitor, context); } function visitElementAccessExpression(node) { - if (shouldTransformSuperInStaticInitializers && isSuperProperty(node) && currentStaticPropertyDeclarationOrStaticBlock && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { const { classConstructor, superClassReference, facts } = lexicalEnvironment.data; if (facts & 1 /* ClassWasDecorated */) { return visitInvalidSuperProperty(node); @@ -88413,6 +89361,7 @@ function transformClassFields(context) { let info; if (info = accessPrivateIdentifier2(operand.name)) { const receiver = visitNode(operand.expression, visitor, isExpression); + ensureDynamicThisIfNeeded(receiver); const { readExpression, initializeExpression } = createCopiableReceiverExpr(receiver); let expression = createPrivateIdentifierAccess(info, readExpression); const temp = isPrefixUnaryExpression(node) || discarded ? void 0 : factory2.createTempVariable(hoistVariableDeclaration); @@ -88431,7 +89380,7 @@ function transformClassFields(context) { } return expression; } - } else if (shouldTransformSuperInStaticInitializers && isSuperProperty(operand) && currentStaticPropertyDeclarationOrStaticBlock && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + } else if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(operand) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { const { classConstructor, superClassReference, facts } = lexicalEnvironment.data; if (facts & 1 /* ClassWasDecorated */) { const expression = visitInvalidSuperProperty(operand); @@ -88488,6 +89437,9 @@ function transformClassFields(context) { } function createCopiableReceiverExpr(receiver) { const clone2 = nodeIsSynthesized(receiver) ? receiver : factory2.cloneNode(receiver); + if (receiver.kind === 110 /* ThisKeyword */ && noSubstitution.has(receiver)) { + noSubstitution.add(clone2); + } if (isSimpleInlineableExpression(receiver)) { return { readExpression: clone2, initializeExpression: void 0 }; } @@ -88518,7 +89470,7 @@ function transformClassFields(context) { [visitNode(thisArg, visitor, isExpression), ...visitNodes2(node.arguments, visitor, isExpression)] ); } - if (shouldTransformSuperInStaticInitializers && isSuperProperty(node.expression) && currentStaticPropertyDeclarationOrStaticBlock && ((_a = lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) == null ? void 0 : _a.classConstructor)) { + if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node.expression) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && ((_a = lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) == null ? void 0 : _a.classConstructor)) { const invocation = factory2.createFunctionCallCall( visitNode(node.expression, visitor, isExpression), lexicalEnvironment.data.classConstructor, @@ -88547,7 +89499,7 @@ function transformClassFields(context) { visitNode(node.template, visitor, isTemplateLiteral) ); } - if (shouldTransformSuperInStaticInitializers && isSuperProperty(node.tag) && currentStaticPropertyDeclarationOrStaticBlock && ((_a = lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) == null ? void 0 : _a.classConstructor)) { + if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node.tag) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && ((_a = lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) == null ? void 0 : _a.classConstructor)) { const invocation = factory2.createFunctionBindCall( visitNode(node.tag, visitor, isExpression), lexicalEnvironment.data.classConstructor, @@ -88570,30 +89522,40 @@ function transformClassFields(context) { lexicalEnvironmentMap.set(getOriginalNode(node), lexicalEnvironment); } if (shouldTransformPrivateElementsOrClassStaticBlocks) { + if (isClassThisAssignmentBlock(node)) { + const result = visitNode(node.body.statements[0].expression, visitor, isExpression); + if (isAssignmentExpression( + result, + /*excludeCompoundAssignment*/ + true + ) && result.left === result.right) { + return void 0; + } + return result; + } + if (isClassNamedEvaluationHelperBlock(node)) { + return visitNode(node.body.statements[0].expression, visitor, isExpression); + } startLexicalEnvironment(); - let statements = setCurrentStaticPropertyDeclarationOrStaticBlockAnd( + let statements = setCurrentClassElementAnd( node, (statements2) => visitNodes2(statements2, visitor, isStatement), node.body.statements ); statements = factory2.mergeLexicalEnvironment(statements, endLexicalEnvironment()); const iife = factory2.createImmediatelyInvokedArrowFunction(statements); + setOriginalNode(skipParentheses(iife.expression), node); + addEmitFlags(skipParentheses(iife.expression), 4 /* AdviseOnEmitNode */); setOriginalNode(iife, node); setTextRange(iife, node); - addEmitFlags(iife, 4 /* AdviseOnEmitNode */); return iife; } } function isAnonymousClassNeedingAssignedName(node) { if (isClassExpression(node) && !node.name) { const staticPropertiesOrClassStaticBlocks = getStaticPropertiesAndClassStaticBlock(node); - const classStaticBlock = find(staticPropertiesOrClassStaticBlocks, isClassStaticBlockDeclaration); - if (classStaticBlock) { - for (const statement of classStaticBlock.body.statements) { - if (isExpressionStatement(statement) && isCallToHelper(statement.expression, "___setFunctionName")) { - return false; - } - } + if (some(staticPropertiesOrClassStaticBlocks, isClassNamedEvaluationHelperBlock)) { + return false; } const hasTransformableStatics = (shouldTransformPrivateElementsOrClassStaticBlocks || !!(getInternalEmitFlags(node) && 32 /* TransformPrivateStaticElements */)) && some(staticPropertiesOrClassStaticBlocks, (node2) => isClassStaticBlockDeclaration(node2) || isPrivateIdentifierClassElementDeclaration(node2) || shouldTransformInitializers && isInitializedProperty(node2)); return hasTransformableStatics; @@ -88616,10 +89578,8 @@ function transformClassFields(context) { } if (isAssignmentExpression(node)) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.left, node.right); - const left2 = visitNode(node.left, visitor, isExpression); - const right = visitNode(node.right, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateBinaryExpression(node, left2, node.operatorToken, right); + node = transformNamedEvaluation(context, node); + Debug.assertNode(node, isAssignmentExpression); } const left = skipOuterExpressions(node.left, 8 /* PartiallyEmittedExpressions */ | 1 /* Parentheses */); if (isPrivateIdentifierPropertyAccessExpression(left)) { @@ -88633,7 +89593,7 @@ function transformClassFields(context) { node ); } - } else if (shouldTransformSuperInStaticInitializers && isSuperProperty(node.left) && currentStaticPropertyDeclarationOrStaticBlock && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + } else if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node.left) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { const { classConstructor, superClassReference, facts } = lexicalEnvironment.data; if (facts & 1 /* ClassWasDecorated */) { return factory2.updateBinaryExpression( @@ -88698,36 +89658,15 @@ function transformClassFields(context) { const elements = discarded ? visitCommaListElements(node.elements, discardedValueVisitor) : visitCommaListElements(node.elements, visitor, discardedValueVisitor); return factory2.updateCommaListExpression(node, elements); } - function visitParenthesizedExpression(node, discarded, referencedName) { - const visitorFunc = discarded ? discardedValueVisitor : referencedName ? (node2) => namedEvaluationVisitor(node2, referencedName) : visitor; + function visitParenthesizedExpression(node, discarded) { + const visitorFunc = discarded ? discardedValueVisitor : visitor; const expression = visitNode(node.expression, visitorFunc, isExpression); return factory2.updateParenthesizedExpression(node, expression); } - function visitPartiallyEmittedExpression(node, discarded, referencedName) { - const visitorFunc = discarded ? discardedValueVisitor : referencedName ? (node2) => namedEvaluationVisitor(node2, referencedName) : visitor; - const expression = visitNode(node.expression, visitorFunc, isExpression); - return factory2.updatePartiallyEmittedExpression(node, expression); - } - function visitReferencedPropertyName(node) { - if (isPropertyNameLiteral(node) || isPrivateIdentifier(node)) { - const referencedName2 = factory2.createStringLiteralFromNode(node); - const name2 = visitNode(node, visitor, isPropertyName); - return { referencedName: referencedName2, name: name2 }; - } - if (isPropertyNameLiteral(node.expression) && !isIdentifier(node.expression)) { - const referencedName2 = factory2.createStringLiteralFromNode(node.expression); - const name2 = visitNode(node, visitor, isPropertyName); - return { referencedName: referencedName2, name: name2 }; - } - const referencedName = factory2.createTempVariable(hoistVariableDeclaration); - const key = emitHelpers().createPropKeyHelper(visitNode(node.expression, visitor, isExpression)); - const assignment = factory2.createAssignment(referencedName, key); - const name = factory2.updateComputedPropertyName(node, injectPendingExpressions(assignment)); - return { referencedName, name }; - } function createPrivateIdentifierAssignment(info, receiver, right, operator) { receiver = visitNode(receiver, visitor, isExpression); right = visitNode(right, visitor, isExpression); + ensureDynamicThisIfNeeded(receiver); if (isCompoundAssignment(operator)) { const { readExpression, initializeExpression } = createCopiableReceiverExpr(receiver); receiver = initializeExpression || readExpression; @@ -88774,11 +89713,15 @@ function transformClassFields(context) { return filter(node.members, isNonStaticMethodOrAccessorWithPrivateName); } function getClassFacts(node) { + var _a; let facts = 0 /* None */; const original = getOriginalNode(node); if (isClassDeclaration(original) && classOrConstructorParameterIsDecorated(legacyDecorators, original)) { facts |= 1 /* ClassWasDecorated */; } + if (shouldTransformPrivateElementsOrClassStaticBlocks && (classHasClassThisAssignment(node) || classHasExplicitlyAssignedName(node))) { + facts |= 2 /* NeedsClassConstructorReference */; + } let containsPublicInstanceFields = false; let containsInitializedPublicInstanceFields = false; let containsInstancePrivateElements = false; @@ -88787,6 +89730,8 @@ function transformClassFields(context) { if (isStatic(member)) { if (member.name && (isPrivateIdentifier(member.name) || isAutoAccessorPropertyDeclaration(member)) && shouldTransformPrivateElementsOrClassStaticBlocks) { facts |= 2 /* NeedsClassConstructorReference */; + } else if (isAutoAccessorPropertyDeclaration(member) && shouldTransformAutoAccessors === -1 /* True */ && !node.name && !((_a = node.emitNode) == null ? void 0 : _a.classThis)) { + facts |= 2 /* NeedsClassConstructorReference */; } if (isPropertyDeclaration(member) || isClassStaticBlockDeclaration(member)) { if (shouldTransformThisInStaticInitializers && member.transformFlags & 16384 /* ContainsLexicalThis */) { @@ -88807,6 +89752,9 @@ function transformClassFields(context) { containsInstancePrivateElements || (containsInstancePrivateElements = isPrivateIdentifierClassElementDeclaration(member)); } else if (isPrivateIdentifierClassElementDeclaration(member)) { containsInstancePrivateElements = true; + if (resolver.getNodeCheckFlags(member) & 262144 /* ContainsConstructorReference */) { + facts |= 2 /* NeedsClassConstructorReference */; + } } else if (isPropertyDeclaration(member)) { containsPublicInstanceFields = true; containsInitializedPublicInstanceFields || (containsInitializedPublicInstanceFields = !!member.initializer); @@ -88841,7 +89789,8 @@ function transformClassFields(context) { } return visitEachChild(node, visitor, context); } - function visitInNewClassLexicalEnvironment(node, referencedName, visitor2) { + function visitInNewClassLexicalEnvironment(node, visitor2) { + var _a; const savedCurrentClassContainer = currentClassContainer; const savedPendingExpressions = pendingExpressions; const savedLexicalEnvironment = lexicalEnvironment; @@ -88853,6 +89802,15 @@ function transformClassFields(context) { const name = getNameOfDeclaration(node); if (name && isIdentifier(name)) { getPrivateIdentifierEnvironment().data.className = name; + } else if ((_a = node.emitNode) == null ? void 0 : _a.assignedName) { + if (isStringLiteral(node.emitNode.assignedName)) { + if (node.emitNode.assignedName.textSourceNode && isIdentifier(node.emitNode.assignedName.textSourceNode)) { + getPrivateIdentifierEnvironment().data.className = node.emitNode.assignedName.textSourceNode; + } else if (isIdentifierText(node.emitNode.assignedName.text, languageVersion)) { + const prefixName = factory2.createIdentifier(node.emitNode.assignedName.text); + getPrivateIdentifierEnvironment().data.className = prefixName; + } + } } } if (shouldTransformPrivateElementsOrClassStaticBlocks) { @@ -88871,7 +89829,7 @@ function transformClassFields(context) { if (facts & 8 /* NeedsSubstitutionForThisInClassStaticField */) { enableSubstitutionForClassStaticThisOrSuperReference(); } - const result = visitor2(node, facts, referencedName); + const result = visitor2(node, facts); endClassLexicalEnvironment(); Debug.assert(lexicalEnvironment === savedLexicalEnvironment); currentClassContainer = savedCurrentClassContainer; @@ -88879,12 +89837,7 @@ function transformClassFields(context) { return result; } function visitClassDeclaration(node) { - return visitInNewClassLexicalEnvironment( - node, - /*referencedName*/ - void 0, - visitClassDeclarationInNewClassLexicalEnvironment - ); + return visitInNewClassLexicalEnvironment(node, visitClassDeclarationInNewClassLexicalEnvironment); } function visitClassDeclarationInNewClassLexicalEnvironment(node, facts) { var _a, _b; @@ -88902,10 +89855,11 @@ function transformClassFields(context) { getClassLexicalEnvironment().classConstructor = factory2.cloneNode(temp); pendingClassReferenceAssignment = factory2.createAssignment(temp, factory2.getInternalName(node)); } - if ((_b = node.emitNode) == null ? void 0 : _b.classThis) { - getClassLexicalEnvironment().classThis = node.emitNode.classThis; - } } + if ((_b = node.emitNode) == null ? void 0 : _b.classThis) { + getClassLexicalEnvironment().classThis = node.emitNode.classThis; + } + const isClassWithConstructorReference = resolver.getNodeCheckFlags(node) & 262144 /* ContainsConstructorReference */; const isExport = hasSyntacticModifier(node, 1 /* Export */); const isDefault = hasSyntacticModifier(node, 1024 /* Default */); let modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); @@ -88940,6 +89894,11 @@ function transformClassFields(context) { ) )); } + const alias = getClassLexicalEnvironment().classConstructor; + if (isClassWithConstructorReference && alias) { + enableSubstitutionForClassAliases(); + classAliases[getOriginalNodeId(node)] = alias; + } const classDecl = factory2.updateClassDeclaration( node, modifiers, @@ -88955,24 +89914,27 @@ function transformClassFields(context) { } return statements; } - function visitClassExpression(node, referencedName) { - return visitInNewClassLexicalEnvironment(node, referencedName, visitClassExpressionInNewClassLexicalEnvironment); + function visitClassExpression(node) { + return visitInNewClassLexicalEnvironment(node, visitClassExpressionInNewClassLexicalEnvironment); } - function visitClassExpressionInNewClassLexicalEnvironment(node, facts, referencedName) { - var _a, _b, _c, _d; + function visitClassExpressionInNewClassLexicalEnvironment(node, facts) { + var _a, _b, _c; const isDecoratedClassDeclaration = !!(facts & 1 /* ClassWasDecorated */); const staticPropertiesOrClassStaticBlocks = getStaticPropertiesAndClassStaticBlock(node); - const isClassWithConstructorReference = resolver.getNodeCheckFlags(node) & 1048576 /* ClassWithConstructorReference */; + const classCheckFlags = resolver.getNodeCheckFlags(node); + const isClassWithConstructorReference = classCheckFlags & 262144 /* ContainsConstructorReference */; let temp; function createClassTempVar() { var _a2; if (shouldTransformPrivateElementsOrClassStaticBlocks && ((_a2 = node.emitNode) == null ? void 0 : _a2.classThis)) { return getClassLexicalEnvironment().classConstructor = node.emitNode.classThis; } - const classCheckFlags = resolver.getNodeCheckFlags(node); - const isClassWithConstructorReference2 = classCheckFlags & 1048576 /* ClassWithConstructorReference */; const requiresBlockScopedVar = classCheckFlags & 32768 /* BlockScopedBindingInLoop */; - const temp2 = factory2.createTempVariable(requiresBlockScopedVar ? addBlockScopedVariable : hoistVariableDeclaration, !!isClassWithConstructorReference2); + const temp2 = factory2.createTempVariable( + requiresBlockScopedVar ? addBlockScopedVariable : hoistVariableDeclaration, + /*reservedInNestedScopes*/ + true + ); getClassLexicalEnvironment().classConstructor = factory2.cloneNode(temp2); return temp2; } @@ -88985,7 +89947,7 @@ function transformClassFields(context) { const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); const heritageClauses = visitNodes2(node.heritageClauses, heritageClauseVisitor, isHeritageClause); const { members, prologue } = transformClassMembers(node); - let classExpression = factory2.updateClassExpression( + const classExpression = factory2.updateClassExpression( node, modifiers, node.name, @@ -88999,41 +89961,18 @@ function transformClassFields(context) { expressions.push(prologue); } const hasTransformableStatics = (shouldTransformPrivateElementsOrClassStaticBlocks || getInternalEmitFlags(node) & 32 /* TransformPrivateStaticElements */) && some(staticPropertiesOrClassStaticBlocks, (node2) => isClassStaticBlockDeclaration(node2) || isPrivateIdentifierClassElementDeclaration(node2) || shouldTransformInitializers && isInitializedProperty(node2)); - if (hasTransformableStatics || some(pendingExpressions) || referencedName) { + if (hasTransformableStatics || some(pendingExpressions)) { if (isDecoratedClassDeclaration) { Debug.assertIsDefined(pendingStatements, "Decorated classes transformed by TypeScript are expected to be within a variable declaration."); if (some(pendingExpressions)) { addRange(pendingStatements, map(pendingExpressions, factory2.createExpressionStatement)); } - if (referencedName) { - if (shouldTransformPrivateElementsOrClassStaticBlocks) { - const setNameExpression = emitHelpers().createSetFunctionNameHelper(temp ?? ((_b = node.emitNode) == null ? void 0 : _b.classThis) ?? factory2.getInternalName(node), referencedName); - pendingStatements.push(factory2.createExpressionStatement(setNameExpression)); - } else { - const setNameExpression = emitHelpers().createSetFunctionNameHelper(factory2.createThis(), referencedName); - classExpression = factory2.updateClassExpression( - classExpression, - classExpression.modifiers, - classExpression.name, - classExpression.typeParameters, - classExpression.heritageClauses, - [ - factory2.createClassStaticBlockDeclaration( - factory2.createBlock([ - factory2.createExpressionStatement(setNameExpression) - ]) - ), - ...classExpression.members - ] - ); - } - } if (some(staticPropertiesOrClassStaticBlocks)) { - addPropertyOrClassStaticBlockStatements(pendingStatements, staticPropertiesOrClassStaticBlocks, ((_c = node.emitNode) == null ? void 0 : _c.classThis) ?? factory2.getInternalName(node)); + addPropertyOrClassStaticBlockStatements(pendingStatements, staticPropertiesOrClassStaticBlocks, ((_b = node.emitNode) == null ? void 0 : _b.classThis) ?? factory2.getInternalName(node)); } if (temp) { expressions.push(factory2.createAssignment(temp, classExpression)); - } else if (shouldTransformPrivateElementsOrClassStaticBlocks && ((_d = node.emitNode) == null ? void 0 : _d.classThis)) { + } else if (shouldTransformPrivateElementsOrClassStaticBlocks && ((_c = node.emitNode) == null ? void 0 : _c.classThis)) { expressions.push(factory2.createAssignment(node.emitNode.classThis, classExpression)); } else { expressions.push(classExpression); @@ -89048,9 +89987,6 @@ function transformClassFields(context) { } expressions.push(factory2.createAssignment(temp, classExpression)); addRange(expressions, pendingExpressions); - if (referencedName) { - expressions.push(emitHelpers().createSetFunctionNameHelper(temp, referencedName)); - } addRange(expressions, generateInitializedPropertyExpressionsOrClassStaticBlock(staticPropertiesOrClassStaticBlocks, temp)); expressions.push(factory2.cloneNode(temp)); } @@ -89069,6 +90005,13 @@ function transformClassFields(context) { } return void 0; } + function visitThisExpression(node) { + if (shouldTransformThisInStaticInitializers && currentClassElement && isClassStaticBlockDeclaration(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + const { classThis, classConstructor } = lexicalEnvironment.data; + return classThis ?? classConstructor ?? node; + } + return node; + } function transformClassMembers(node) { const shouldTransformPrivateStaticElementsInClass = !!(getInternalEmitFlags(node) & 32 /* TransformPrivateStaticElements */); if (shouldTransformPrivateElementsOrClassStaticBlocks || shouldTransformPrivateStaticElementsInFile) { @@ -89148,9 +90091,14 @@ function transformClassFields(context) { } if (syntheticConstructor || syntheticStaticBlock) { let membersArray; + const classThisAssignmentBlock = find(members, isClassThisAssignmentBlock); + const classNamedEvaluationHelperBlock = find(members, isClassNamedEvaluationHelperBlock); + membersArray = append(membersArray, classThisAssignmentBlock); + membersArray = append(membersArray, classNamedEvaluationHelperBlock); membersArray = append(membersArray, syntheticConstructor); membersArray = append(membersArray, syntheticStaticBlock); - membersArray = addRange(membersArray, members); + const remainingMembers = classThisAssignmentBlock || classNamedEvaluationHelperBlock ? filter(members, (member) => member !== classThisAssignmentBlock && member !== classNamedEvaluationHelperBlock) : members; + membersArray = addRange(membersArray, remainingMembers); members = setTextRange( factory2.createNodeArray(membersArray), /*location*/ @@ -89211,8 +90159,46 @@ function transformClassFields(context) { ) ); } + function transformConstructorBodyWorker(statementsOut, statementsIn, statementOffset, superPath, superPathDepth, initializerStatements, constructor) { + const superStatementIndex = superPath[superPathDepth]; + const superStatement = statementsIn[superStatementIndex]; + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, statementOffset, superStatementIndex - statementOffset)); + statementOffset = superStatementIndex + 1; + if (isTryStatement(superStatement)) { + const tryBlockStatements = []; + transformConstructorBodyWorker( + tryBlockStatements, + superStatement.tryBlock.statements, + /*statementOffset*/ + 0, + superPath, + superPathDepth + 1, + initializerStatements, + constructor + ); + const tryBlockStatementsArray = factory2.createNodeArray(tryBlockStatements); + setTextRange(tryBlockStatementsArray, superStatement.tryBlock.statements); + statementsOut.push(factory2.updateTryStatement( + superStatement, + factory2.updateBlock(superStatement.tryBlock, tryBlockStatements), + visitNode(superStatement.catchClause, visitor, isCatchClause), + visitNode(superStatement.finallyBlock, visitor, isBlock) + )); + } else { + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex, 1)); + while (statementOffset < statementsIn.length) { + const statement = statementsIn[statementOffset]; + if (isParameterPropertyDeclaration(getOriginalNode(statement), constructor)) { + statementOffset++; + } else { + break; + } + } + addRange(statementsOut, initializerStatements); + } + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, statementOffset)); + } function transformConstructorBody(node, constructor, isDerivedClass) { - var _a; const instanceProperties = getProperties( node, /*requireInitializer*/ @@ -89236,68 +90222,65 @@ function transformClassFields(context) { } resumeLexicalEnvironment(); const needsSyntheticConstructor = !constructor && isDerivedClass; - let indexOfFirstStatementAfterSuperAndPrologue = 0; - let prologueStatementCount = 0; - let superStatementIndex = -1; + let statementOffset = 0; let statements = []; - if ((_a = constructor == null ? void 0 : constructor.body) == null ? void 0 : _a.statements) { - prologueStatementCount = factory2.copyPrologue( + const initializerStatements = []; + const receiver = factory2.createThis(); + addInstanceMethodStatements(initializerStatements, privateMethodsAndAccessors, receiver); + if (constructor) { + const parameterProperties = filter(instanceProperties, (prop) => isParameterPropertyDeclaration(getOriginalNode(prop), constructor)); + const nonParameterProperties = filter(properties, (prop) => !isParameterPropertyDeclaration(getOriginalNode(prop), constructor)); + addPropertyOrClassStaticBlockStatements(initializerStatements, parameterProperties, receiver); + addPropertyOrClassStaticBlockStatements(initializerStatements, nonParameterProperties, receiver); + } else { + addPropertyOrClassStaticBlockStatements(initializerStatements, properties, receiver); + } + if (constructor == null ? void 0 : constructor.body) { + statementOffset = factory2.copyPrologue( constructor.body.statements, statements, /*ensureUseStrict*/ false, visitor ); - superStatementIndex = findSuperStatementIndex(constructor.body.statements, prologueStatementCount); - if (superStatementIndex >= 0) { - indexOfFirstStatementAfterSuperAndPrologue = superStatementIndex + 1; - statements = [ - ...statements.slice(0, prologueStatementCount), - ...visitNodes2(constructor.body.statements, visitor, isStatement, prologueStatementCount, indexOfFirstStatementAfterSuperAndPrologue - prologueStatementCount), - ...statements.slice(prologueStatementCount) - ]; - } else if (prologueStatementCount >= 0) { - indexOfFirstStatementAfterSuperAndPrologue = prologueStatementCount; - } - } - if (needsSyntheticConstructor) { - statements.push( - factory2.createExpressionStatement( - factory2.createCallExpression( - factory2.createSuper(), - /*typeArguments*/ - void 0, - [factory2.createSpreadElement(factory2.createIdentifier("arguments"))] - ) - ) - ); - } - let parameterPropertyDeclarationCount = 0; - if (constructor == null ? void 0 : constructor.body) { - for (let i = indexOfFirstStatementAfterSuperAndPrologue; i < constructor.body.statements.length; i++) { - const statement = constructor.body.statements[i]; - if (isParameterPropertyDeclaration(getOriginalNode(statement), constructor)) { - parameterPropertyDeclarationCount++; - } else { - break; + const superStatementIndices = findSuperStatementIndexPath(constructor.body.statements, statementOffset); + if (superStatementIndices.length) { + transformConstructorBodyWorker( + statements, + constructor.body.statements, + statementOffset, + superStatementIndices, + /*superPathDepth*/ + 0, + initializerStatements, + constructor + ); + } else { + while (statementOffset < constructor.body.statements.length) { + const statement = constructor.body.statements[statementOffset]; + if (isParameterPropertyDeclaration(getOriginalNode(statement), constructor)) { + statementOffset++; + } else { + break; + } } + addRange(statements, initializerStatements); + addRange(statements, visitNodes2(constructor.body.statements, visitor, isStatement, statementOffset)); } - if (parameterPropertyDeclarationCount > 0) { - indexOfFirstStatementAfterSuperAndPrologue += parameterPropertyDeclarationCount; - } - } - const receiver = factory2.createThis(); - addInstanceMethodStatements(statements, privateMethodsAndAccessors, receiver); - if (constructor) { - const parameterProperties = filter(instanceProperties, (prop) => isParameterPropertyDeclaration(getOriginalNode(prop), constructor)); - const nonParameterProperties = filter(properties, (prop) => !isParameterPropertyDeclaration(getOriginalNode(prop), constructor)); - addPropertyOrClassStaticBlockStatements(statements, parameterProperties, receiver); - addPropertyOrClassStaticBlockStatements(statements, nonParameterProperties, receiver); } else { - addPropertyOrClassStaticBlockStatements(statements, properties, receiver); - } - if (constructor) { - addRange(statements, visitNodes2(constructor.body.statements, visitor, isStatement, indexOfFirstStatementAfterSuperAndPrologue)); + if (needsSyntheticConstructor) { + statements.push( + factory2.createExpressionStatement( + factory2.createCallExpression( + factory2.createSuper(), + /*typeArguments*/ + void 0, + [factory2.createSpreadElement(factory2.createIdentifier("arguments"))] + ) + ) + ); + } + addRange(statements, initializerStatements); } statements = factory2.mergeLexicalEnvironment(statements, endLexicalEnvironment()); if (statements.length === 0 && !constructor) { @@ -89330,7 +90313,7 @@ function transformClassFields(context) { } } function transformPropertyOrClassStaticBlock(property, receiver) { - const expression = isClassStaticBlockDeclaration(property) ? transformClassStaticBlockDeclaration(property) : transformProperty(property, receiver); + const expression = isClassStaticBlockDeclaration(property) ? setCurrentClassElementAnd(property, transformClassStaticBlockDeclaration, property) : transformProperty(property, receiver); if (!expression) { return void 0; } @@ -89355,7 +90338,12 @@ function transformClassFields(context) { function generateInitializedPropertyExpressionsOrClassStaticBlock(propertiesOrClassStaticBlocks, receiver) { const expressions = []; for (const property of propertiesOrClassStaticBlocks) { - const expression = isClassStaticBlockDeclaration(property) ? transformClassStaticBlockDeclaration(property) : transformProperty(property, receiver); + const expression = isClassStaticBlockDeclaration(property) ? setCurrentClassElementAnd(property, transformClassStaticBlockDeclaration, property) : setCurrentClassElementAnd( + property, + () => transformProperty(property, receiver), + /*arg*/ + void 0 + ); if (!expression) { continue; } @@ -89370,7 +90358,7 @@ function transformClassFields(context) { } function transformProperty(property, receiver) { var _a; - const savedCurrentStaticPropertyDeclarationOrStaticBlock = currentStaticPropertyDeclarationOrStaticBlock; + const savedCurrentClassElement = currentClassElement; const transformed = transformPropertyWorker(property, receiver); if (transformed && hasStaticModifier(property) && ((_a = lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) == null ? void 0 : _a.facts)) { setOriginalNode(transformed, property); @@ -89378,26 +90366,18 @@ function transformClassFields(context) { setSourceMapRange(transformed, getSourceMapRange(property.name)); lexicalEnvironmentMap.set(getOriginalNode(property), lexicalEnvironment); } - currentStaticPropertyDeclarationOrStaticBlock = savedCurrentStaticPropertyDeclarationOrStaticBlock; + currentClassElement = savedCurrentClassElement; return transformed; } function transformPropertyWorker(property, receiver) { const emitAssignment = !useDefineForClassFields; - let referencedName; if (isNamedEvaluation(property, isAnonymousClassNeedingAssignedName)) { - if (isPropertyNameLiteral(property.name) || isPrivateIdentifier(property.name)) { - referencedName = factory2.createStringLiteralFromNode(property.name); - } else if (isPropertyNameLiteral(property.name.expression) && !isIdentifier(property.name.expression)) { - referencedName = factory2.createStringLiteralFromNode(property.name.expression); - } else { - referencedName = factory2.getGeneratedNameForNode(property.name); - } + property = transformNamedEvaluation(context, property); } const propertyName = hasAccessorModifier(property) ? factory2.getGeneratedPrivateNameForNode(property.name) : isComputedPropertyName(property.name) && !isSimpleInlineableExpression(property.name.expression) ? factory2.updateComputedPropertyName(property.name, factory2.getGeneratedNameForNode(property.name)) : property.name; if (hasStaticModifier(property)) { - currentStaticPropertyDeclarationOrStaticBlock = property; + currentClassElement = property; } - const initializerVisitor = referencedName ? (child) => namedEvaluationVisitor(child, referencedName) : visitor; if (isPrivateIdentifier(propertyName) && shouldTransformClassElementToWeakMap(property)) { const privateIdentifierInfo = accessPrivateIdentifier2(propertyName); if (privateIdentifierInfo) { @@ -89406,14 +90386,14 @@ function transformClassFields(context) { return createPrivateInstanceFieldInitializer( factory2, receiver, - visitNode(property.initializer, initializerVisitor, isExpression), + visitNode(property.initializer, visitor, isExpression), privateIdentifierInfo.brandCheckIdentifier ); } else { return createPrivateStaticFieldInitializer( factory2, privateIdentifierInfo.variableName, - visitNode(property.initializer, initializerVisitor, isExpression) + visitNode(property.initializer, visitor, isExpression) ); } } else { @@ -89430,7 +90410,7 @@ function transformClassFields(context) { if (hasSyntacticModifier(propertyOriginalNode, 256 /* Abstract */)) { return void 0; } - let initializer = visitNode(property.initializer, initializerVisitor, isExpression); + let initializer = visitNode(property.initializer, visitor, isExpression); if (isParameterPropertyDeclaration(propertyOriginalNode, propertyOriginalNode.parent) && isIdentifier(propertyName)) { const localName = factory2.cloneNode(propertyName); if (initializer) { @@ -89475,14 +90455,14 @@ function transformClassFields(context) { if ((enabledSubstitutions & 2 /* ClassStaticThisOrSuperReference */) === 0) { enabledSubstitutions |= 2 /* ClassStaticThisOrSuperReference */; context.enableSubstitution(110 /* ThisKeyword */); - context.enableEmitNotification(261 /* FunctionDeclaration */); - context.enableEmitNotification(217 /* FunctionExpression */); - context.enableEmitNotification(175 /* Constructor */); - context.enableEmitNotification(176 /* GetAccessor */); - context.enableEmitNotification(177 /* SetAccessor */); - context.enableEmitNotification(173 /* MethodDeclaration */); - context.enableEmitNotification(171 /* PropertyDeclaration */); - context.enableEmitNotification(166 /* ComputedPropertyName */); + context.enableEmitNotification(262 /* FunctionDeclaration */); + context.enableEmitNotification(218 /* FunctionExpression */); + context.enableEmitNotification(176 /* Constructor */); + context.enableEmitNotification(177 /* GetAccessor */); + context.enableEmitNotification(178 /* SetAccessor */); + context.enableEmitNotification(174 /* MethodDeclaration */); + context.enableEmitNotification(172 /* PropertyDeclaration */); + context.enableEmitNotification(167 /* ComputedPropertyName */); } } function addInstanceMethodStatements(statements, methods, receiver) { @@ -89508,10 +90488,10 @@ function transformClassFields(context) { visitNode(node.argumentExpression, visitor, isExpression) ); } - function getPropertyNameExpressionIfNeeded(name, shouldHoist, captureReferencedName) { + function getPropertyNameExpressionIfNeeded(name, shouldHoist) { if (isComputedPropertyName(name)) { const cacheAssignment = findComputedPropertyNameCacheAssignment(name); - let expression = visitNode(name.expression, visitor, isExpression); + const expression = visitNode(name.expression, visitor, isExpression); const innerExpression = skipPartiallyEmittedExpressions(expression); const inlinable = isSimpleInlineableExpression(innerExpression); const alreadyTransformed = !!cacheAssignment || isAssignmentExpression(innerExpression) && isGeneratedIdentifier(innerExpression.left); @@ -89522,9 +90502,6 @@ function transformClassFields(context) { } else { hoistVariableDeclaration(generatedName); } - if (captureReferencedName) { - expression = emitHelpers().createPropKeyHelper(expression); - } return factory2.createAssignment(generatedName, expression); } return inlinable || isIdentifier(innerExpression) ? void 0 : expression; @@ -89720,7 +90697,7 @@ function transformClassFields(context) { } if (isPrivateIdentifierPropertyAccessExpression(node)) { return wrapPrivateIdentifierForDestructuringTarget(node); - } else if (shouldTransformSuperInStaticInitializers && isSuperProperty(node) && currentStaticPropertyDeclarationOrStaticBlock && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + } else if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { const { classConstructor, superClassReference, facts } = lexicalEnvironment.data; if (facts & 1 /* ClassWasDecorated */) { return visitInvalidSuperProperty(node); @@ -89747,10 +90724,7 @@ function transformClassFields(context) { } function visitAssignmentElement(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const left = visitDestructuringAssignmentTarget(node.left); - const assignedName = getAssignedNameOfIdentifier(node.left, node.right); - const right = visitNode(node.right, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateBinaryExpression(node, left, node.operatorToken, right); + node = transformNamedEvaluation(context, node); } if (isAssignmentExpression( node, @@ -89797,9 +90771,7 @@ function transformClassFields(context) { } function visitShorthandAssignmentProperty(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.name, node.objectAssignmentInitializer); - const objectAssignmentInitializer = visitNode(node.objectAssignmentInitializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateShorthandPropertyAssignment(node, node.name, objectAssignmentInitializer); + node = transformNamedEvaluation(context, node); } return visitEachChild(node, visitor, context); } @@ -89849,16 +90821,16 @@ function transformClassFields(context) { return; } switch (node.kind) { - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: if (isArrowFunction(original) || getEmitFlags(node) & 524288 /* AsyncFunctionBody */) { break; } - case 261 /* FunctionDeclaration */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 173 /* MethodDeclaration */: - case 171 /* PropertyDeclaration */: { + case 262 /* FunctionDeclaration */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 172 /* PropertyDeclaration */: { const savedLexicalEnvironment = lexicalEnvironment; const savedPreviousShouldSubstituteThisWithClassThis = previousShouldSubstituteThisWithClassThis; lexicalEnvironment = void 0; @@ -89870,7 +90842,7 @@ function transformClassFields(context) { lexicalEnvironment = savedLexicalEnvironment; return; } - case 166 /* ComputedPropertyName */: { + case 167 /* ComputedPropertyName */: { const savedLexicalEnvironment = lexicalEnvironment; const savedShouldSubstituteThisWithClassThis = shouldSubstituteThisWithClassThis; lexicalEnvironment = lexicalEnvironment == null ? void 0 : lexicalEnvironment.previous; @@ -89900,11 +90872,8 @@ function transformClassFields(context) { return node; } function substituteThisExpression(node) { - if (enabledSubstitutions & 2 /* ClassStaticThisOrSuperReference */ && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + if (enabledSubstitutions & 2 /* ClassStaticThisOrSuperReference */ && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) && !noSubstitution.has(node)) { const { facts, classConstructor, classThis } = lexicalEnvironment.data; - if (facts & 1 /* ClassWasDecorated */ && legacyDecorators) { - return factory2.createParenthesizedExpression(factory2.createVoidZero()); - } const substituteThis = shouldSubstituteThisWithClassThis ? classThis ?? classConstructor : classConstructor; if (substituteThis) { return setTextRange( @@ -89915,6 +90884,9 @@ function transformClassFields(context) { node ); } + if (facts & 1 /* ClassWasDecorated */ && legacyDecorators) { + return factory2.createParenthesizedExpression(factory2.createVoidZero()); + } } return node; } @@ -89923,7 +90895,7 @@ function transformClassFields(context) { } function trySubstituteClassAlias(node) { if (enabledSubstitutions & 1 /* ClassAliases */) { - if (resolver.getNodeCheckFlags(node) & 2097152 /* ConstructorReferenceInClass */) { + if (resolver.getNodeCheckFlags(node) & 536870912 /* ConstructorReference */) { const declaration = resolver.getReferencedValueDeclaration(node); if (declaration) { const classAlias = classAliases[declaration.id]; @@ -89969,6 +90941,12 @@ function isReservedPrivateName(node) { function isPrivateIdentifierInExpression(node) { return isPrivateIdentifier(node.left) && node.operatorToken.kind === 103 /* InKeyword */; } +function isStaticPropertyDeclaration2(node) { + return isPropertyDeclaration(node) && hasStaticModifier(node); +} +function isStaticPropertyDeclarationOrClassStaticBlock(node) { + return isClassStaticBlockDeclaration(node) || isStaticPropertyDeclaration2(node); +} // src/compiler/transformers/typeSerializer.ts function createRuntimeTypeSerializer(context) { @@ -90004,15 +90982,15 @@ function createRuntimeTypeSerializer(context) { } function serializeTypeOfNode(node) { switch (node.kind) { - case 171 /* PropertyDeclaration */: - case 168 /* Parameter */: + case 172 /* PropertyDeclaration */: + case 169 /* Parameter */: return serializeTypeNode(node.type); - case 177 /* SetAccessor */: - case 176 /* GetAccessor */: + case 178 /* SetAccessor */: + case 177 /* GetAccessor */: return serializeTypeNode(getAccessorTypeNode(node)); - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 173 /* MethodDeclaration */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 174 /* MethodDeclaration */: return factory2.createIdentifier("Function"); default: return factory2.createVoidZero(); @@ -90039,7 +91017,7 @@ function createRuntimeTypeSerializer(context) { return factory2.createArrayLiteralExpression(expressions); } function getParametersOfDecoratedDeclaration(node, container) { - if (container && node.kind === 176 /* GetAccessor */) { + if (container && node.kind === 177 /* GetAccessor */) { const { setAccessor } = getAllAccessorDeclarations(container.members, node); if (setAccessor) { return setAccessor.parameters; @@ -90065,72 +91043,72 @@ function createRuntimeTypeSerializer(context) { case 157 /* UndefinedKeyword */: case 146 /* NeverKeyword */: return factory2.createVoidZero(); - case 183 /* FunctionType */: - case 184 /* ConstructorType */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: return factory2.createIdentifier("Function"); - case 187 /* ArrayType */: - case 188 /* TupleType */: + case 188 /* ArrayType */: + case 189 /* TupleType */: return factory2.createIdentifier("Array"); - case 181 /* TypePredicate */: + case 182 /* TypePredicate */: return node.assertsModifier ? factory2.createVoidZero() : factory2.createIdentifier("Boolean"); case 136 /* BooleanKeyword */: return factory2.createIdentifier("Boolean"); - case 202 /* TemplateLiteralType */: + case 203 /* TemplateLiteralType */: case 154 /* StringKeyword */: return factory2.createIdentifier("String"); case 151 /* ObjectKeyword */: return factory2.createIdentifier("Object"); - case 200 /* LiteralType */: + case 201 /* LiteralType */: return serializeLiteralOfLiteralTypeNode(node.literal); case 150 /* NumberKeyword */: return factory2.createIdentifier("Number"); - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: return getGlobalConstructor("BigInt", 7 /* ES2020 */); case 155 /* SymbolKeyword */: return getGlobalConstructor("Symbol", 2 /* ES2015 */); - case 182 /* TypeReference */: + case 183 /* TypeReference */: return serializeTypeReferenceNode(node); - case 192 /* IntersectionType */: + case 193 /* IntersectionType */: return serializeUnionOrIntersectionConstituents( node.types, /*isIntersection*/ true ); - case 191 /* UnionType */: + case 192 /* UnionType */: return serializeUnionOrIntersectionConstituents( node.types, /*isIntersection*/ false ); - case 193 /* ConditionalType */: + case 194 /* ConditionalType */: return serializeUnionOrIntersectionConstituents( [node.trueType, node.falseType], /*isIntersection*/ false ); - case 197 /* TypeOperator */: + case 198 /* TypeOperator */: if (node.operator === 148 /* ReadonlyKeyword */) { return serializeTypeNode(node.type); } break; - case 185 /* TypeQuery */: - case 198 /* IndexedAccessType */: - case 199 /* MappedType */: - case 186 /* TypeLiteral */: + case 186 /* TypeQuery */: + case 199 /* IndexedAccessType */: + case 200 /* MappedType */: + case 187 /* TypeLiteral */: case 133 /* AnyKeyword */: case 159 /* UnknownKeyword */: - case 196 /* ThisType */: - case 204 /* ImportType */: + case 197 /* ThisType */: + case 205 /* ImportType */: break; - case 318 /* JSDocAllType */: - case 319 /* JSDocUnknownType */: - case 323 /* JSDocFunctionType */: - case 324 /* JSDocVariadicType */: - case 325 /* JSDocNamepathType */: + case 319 /* JSDocAllType */: + case 320 /* JSDocUnknownType */: + case 324 /* JSDocFunctionType */: + case 325 /* JSDocVariadicType */: + case 326 /* JSDocNamepathType */: break; - case 320 /* JSDocNullableType */: - case 321 /* JSDocNonNullableType */: - case 322 /* JSDocOptionalType */: + case 321 /* JSDocNullableType */: + case 322 /* JSDocNonNullableType */: + case 323 /* JSDocOptionalType */: return serializeTypeNode(node.type); default: return Debug.failBadSyntaxKind(node); @@ -90142,7 +91120,7 @@ function createRuntimeTypeSerializer(context) { case 11 /* StringLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: return factory2.createIdentifier("String"); - case 223 /* PrefixUnaryExpression */: { + case 224 /* PrefixUnaryExpression */: { const operand = node.operand; switch (operand.kind) { case 9 /* NumericLiteral */: @@ -90301,7 +91279,7 @@ function createRuntimeTypeSerializer(context) { name.original = void 0; setParent(name, getParseTreeNode(currentLexicalScope)); return name; - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: return serializeQualifiedNameAsExpression(node); } } @@ -90351,23 +91329,23 @@ function transformLegacyDecorators(context) { return node; } switch (node.kind) { - case 169 /* Decorator */: + case 170 /* Decorator */: return void 0; - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return visitClassDeclaration(node); - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return visitClassExpression(node); - case 175 /* Constructor */: + case 176 /* Constructor */: return visitConstructorDeclaration(node); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return visitMethodDeclaration(node); - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return visitSetAccessorDeclaration(node); - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return visitGetAccessorDeclaration(node); - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return visitPropertyDeclaration(node); - case 168 /* Parameter */: + case 169 /* Parameter */: return visitParameterDeclaration(node); default: return visitEachChild(node, visitor, context); @@ -90507,39 +91485,36 @@ function transformLegacyDecorators(context) { ); setOriginalNode(classExpression, node); setTextRange(classExpression, location); + const varInitializer = classAlias && !assignClassAliasInStaticBlock ? factory2.createAssignment(classAlias, classExpression) : classExpression; const varDecl = factory2.createVariableDeclaration( declName, /*exclamationToken*/ void 0, /*type*/ void 0, - classAlias && !assignClassAliasInStaticBlock ? factory2.createAssignment(classAlias, classExpression) : classExpression + varInitializer ); setOriginalNode(varDecl, node); - let varModifiers; - if (isExport && !isDefault) { - varModifiers = factory2.createModifiersFromModifierFlags(1 /* Export */); - } - const statement = factory2.createVariableStatement( - varModifiers, - factory2.createVariableDeclarationList([ - varDecl - ], 1 /* Let */) + const varDeclList = factory2.createVariableDeclarationList([varDecl], 1 /* Let */); + const varStatement = factory2.createVariableStatement( + /*modifiers*/ + void 0, + varDeclList ); - setOriginalNode(statement, node); - setTextRange(statement, location); - setCommentRange(statement, node); - const statements = [statement]; + setOriginalNode(varStatement, node); + setTextRange(varStatement, location); + setCommentRange(varStatement, node); + const statements = [varStatement]; addRange(statements, decorationStatements); addConstructorDecorationStatement(statements, node); - if (isExport && isDefault) { - statements.push(factory2.createExportAssignment( - /*modifiers*/ - void 0, - /*isExportEquals*/ - false, - declName - )); + if (isExport) { + if (isDefault) { + const exportStatement = factory2.createExportDefault(declName); + statements.push(exportStatement); + } else { + const exportStatement = factory2.createExternalModuleExport(factory2.getDeclarationName(node)); + statements.push(exportStatement); + } } return statements; } @@ -90606,7 +91581,7 @@ function transformLegacyDecorators(context) { ), node); } function visitPropertyDeclaration(node) { - if (node.flags & 16777216 /* Ambient */ || hasSyntacticModifier(node, 2 /* Ambient */)) { + if (node.flags & 33554432 /* Ambient */ || hasSyntacticModifier(node, 2 /* Ambient */)) { return void 0; } return finishClassElement(factory2.updatePropertyDeclaration( @@ -90774,7 +91749,7 @@ function transformLegacyDecorators(context) { } } function getClassAliasIfNeeded(node) { - if (resolver.getNodeCheckFlags(node) & 1048576 /* ClassWithConstructorReference */) { + if (resolver.getNodeCheckFlags(node) & 262144 /* ContainsConstructorReference */) { enableSubstitutionForClassAliases(); const classAlias = factory2.createUniqueName(node.name && !isGeneratedIdentifier(node.name) ? idText(node.name) : "default"); classAliases[getOriginalNodeId(node)] = classAlias; @@ -90807,7 +91782,7 @@ function transformLegacyDecorators(context) { } function trySubstituteClassAlias(node) { if (classAliases) { - if (resolver.getNodeCheckFlags(node) & 2097152 /* ConstructorReferenceInClass */) { + if (resolver.getNodeCheckFlags(node) & 536870912 /* ConstructorReference */) { const declaration = resolver.getReferencedValueDeclaration(node); if (declaration) { const classAlias = classAliases[declaration.id]; @@ -90833,8 +91808,7 @@ function transformESDecorators(context) { endLexicalEnvironment, hoistVariableDeclaration } = context; - const compilerOptions = context.getCompilerOptions(); - const languageVersion = getEmitScriptTarget(compilerOptions); + const languageVersion = getEmitScriptTarget(context.getCompilerOptions()); let top; let classInfo; let classThis; @@ -90946,86 +91920,78 @@ function transformESDecorators(context) { return node; } switch (node.kind) { - case 169 /* Decorator */: + case 170 /* Decorator */: return Debug.fail("Use `modifierVisitor` instead."); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return visitClassDeclaration(node); - case 230 /* ClassExpression */: - return visitClassExpression( - node, - /*referencedName*/ - void 0 - ); - case 175 /* Constructor */: - case 171 /* PropertyDeclaration */: - case 174 /* ClassStaticBlockDeclaration */: + case 231 /* ClassExpression */: + return visitClassExpression(node); + case 176 /* Constructor */: + case 172 /* PropertyDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: return Debug.fail("Not supported outside of a class. Use 'classElementVisitor' instead."); - case 168 /* Parameter */: + case 169 /* Parameter */: return visitParameterDeclaration(node); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return visitBinaryExpression( node, /*discarded*/ false ); - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return visitPropertyAssignment(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return visitVariableDeclaration(node); - case 207 /* BindingElement */: + case 208 /* BindingElement */: return visitBindingElement(node); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return visitExportAssignment(node); case 110 /* ThisKeyword */: return visitThisExpression(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement(node); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return visitExpressionStatement(node); - case 360 /* CommaListExpression */: + case 361 /* CommaListExpression */: return visitCommaListExpression( node, /*discarded*/ false ); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression( node, /*discarded*/ - false, - /*referencedName*/ - void 0 + false ); - case 359 /* PartiallyEmittedExpression */: + case 360 /* PartiallyEmittedExpression */: return visitPartiallyEmittedExpression( node, /*discarded*/ - false, - /*referencedName*/ - void 0 + false ); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return visitCallExpression(node); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return visitTaggedTemplateExpression(node); - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return visitPreOrPostfixUnaryExpression( node, /*discarded*/ false ); - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return visitPropertyAccessExpression(node); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return visitElementAccessExpression(node); - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: return visitComputedPropertyName(node); - case 173 /* MethodDeclaration */: - case 177 /* SetAccessor */: - case 176 /* GetAccessor */: - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: { + case 174 /* MethodDeclaration */: + case 178 /* SetAccessor */: + case 177 /* GetAccessor */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: { enterOther(); const result = visitEachChild(node, fallbackVisitor, context); exitOther(); @@ -91037,7 +92003,7 @@ function transformESDecorators(context) { } function fallbackVisitor(node) { switch (node.kind) { - case 169 /* Decorator */: + case 170 /* Decorator */: return void 0; default: return visitor(node); @@ -91045,7 +92011,7 @@ function transformESDecorators(context) { } function modifierVisitor(node) { switch (node.kind) { - case 169 /* Decorator */: + case 170 /* Decorator */: return void 0; default: return node; @@ -91053,72 +92019,48 @@ function transformESDecorators(context) { } function classElementVisitor(node) { switch (node.kind) { - case 175 /* Constructor */: + case 176 /* Constructor */: return visitConstructorDeclaration(node); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return visitMethodDeclaration(node); - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return visitGetAccessorDeclaration(node); - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return visitSetAccessorDeclaration(node); - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return visitPropertyDeclaration(node); - case 174 /* ClassStaticBlockDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: return visitClassStaticBlockDeclaration(node); default: return visitor(node); } } - function namedEvaluationVisitor(node, referencedName) { - switch (node.kind) { - case 359 /* PartiallyEmittedExpression */: - return visitPartiallyEmittedExpression( - node, - /*discarded*/ - false, - referencedName - ); - case 216 /* ParenthesizedExpression */: - return visitParenthesizedExpression( - node, - /*discarded*/ - false, - referencedName - ); - case 230 /* ClassExpression */: - return visitClassExpression(node, referencedName); - default: - return visitor(node); - } - } function discardedValueVisitor(node) { switch (node.kind) { - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return visitPreOrPostfixUnaryExpression( node, /*discarded*/ true ); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return visitBinaryExpression( node, /*discarded*/ true ); - case 360 /* CommaListExpression */: + case 361 /* CommaListExpression */: return visitCommaListExpression( node, /*discarded*/ true ); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression( node, /*discarded*/ - true, - /*referencedName*/ - void 0 + true ); default: return visitor(node); @@ -91156,6 +92098,7 @@ function transformESDecorators(context) { ); } function createClassInfo(node) { + const metadataReference = factory2.createUniqueName("_metadata", 16 /* Optimistic */ | 32 /* FileLevel */); let instanceExtraInitializersName; let staticExtraInitializersName; let hasStaticInitializers = false; @@ -91169,13 +92112,15 @@ function transformESDecorators(context) { node )) { if (hasStaticModifier(member)) { - staticExtraInitializersName ?? (staticExtraInitializersName = factory2.createUniqueName("_staticExtraInitializers", 16 /* Optimistic */)); + staticExtraInitializersName ?? (staticExtraInitializersName = factory2.createUniqueName("_staticExtraInitializers", 16 /* Optimistic */ | 32 /* FileLevel */)); } else { - instanceExtraInitializersName ?? (instanceExtraInitializersName = factory2.createUniqueName("_instanceExtraInitializers", 16 /* Optimistic */)); + instanceExtraInitializersName ?? (instanceExtraInitializersName = factory2.createUniqueName("_instanceExtraInitializers", 16 /* Optimistic */ | 32 /* FileLevel */)); } } if (isClassStaticBlockDeclaration(member)) { - hasStaticInitializers = true; + if (!isClassNamedEvaluationHelperBlock(member)) { + hasStaticInitializers = true; + } } else if (isPropertyDeclaration(member)) { if (hasStaticModifier(member)) { hasStaticInitializers || (hasStaticInitializers = !!member.initializer || hasDecorators(member)); @@ -91192,6 +92137,7 @@ function transformESDecorators(context) { } return { class: node, + metadataReference, instanceExtraInitializersName, staticExtraInitializersName, hasStaticInitializers, @@ -91199,19 +92145,15 @@ function transformESDecorators(context) { hasStaticPrivateClassElements }; } - function containsLexicalSuperInStaticInitializer(node) { - for (const member of node.members) { - if (isClassStaticBlockDeclaration(member) || isPropertyDeclaration(member) && hasStaticModifier(member)) { - if (member.transformFlags & 134217728 /* ContainsLexicalSuper */) { - return true; - } - } - } - return false; - } - function transformClassLike(node, className) { - var _a; + function transformClassLike(node) { startLexicalEnvironment(); + if (!classHasDeclaredOrExplicitlyAssignedName(node) && classOrConstructorParameterIsDecorated( + /*useLegacyDecorators*/ + false, + node + )) { + node = injectClassNamedEvaluationHelperBlockIfMissing(context, node, factory2.createStringLiteral("")); + } const classReference = factory2.getLocalName( node, /*allowComments*/ @@ -91230,10 +92172,11 @@ function transformESDecorators(context) { let shouldTransformPrivateStaticElementsInClass = false; const classDecorators = transformAllDecoratorsOfDeclaration(getAllDecoratorsOfClass(node)); if (classDecorators) { - classInfo2.classDecoratorsName = factory2.createUniqueName("_classDecorators", 16 /* Optimistic */); - classInfo2.classDescriptorName = factory2.createUniqueName("_classDescriptor", 16 /* Optimistic */); - classInfo2.classExtraInitializersName = factory2.createUniqueName("_classExtraInitializers", 16 /* Optimistic */); - classInfo2.classThis = factory2.createUniqueName("_classThis", 16 /* Optimistic */); + classInfo2.classDecoratorsName = factory2.createUniqueName("_classDecorators", 16 /* Optimistic */ | 32 /* FileLevel */); + classInfo2.classDescriptorName = factory2.createUniqueName("_classDescriptor", 16 /* Optimistic */ | 32 /* FileLevel */); + classInfo2.classExtraInitializersName = factory2.createUniqueName("_classExtraInitializers", 16 /* Optimistic */ | 32 /* FileLevel */); + const needsUniqueClassThis = some(node.members, (member) => (isPrivateIdentifierClassElementDeclaration(member) || isAutoAccessorPropertyDeclaration(member)) && hasStaticModifier(member)); + classInfo2.classThis = factory2.createUniqueName("_classThis", needsUniqueClassThis ? 16 /* Optimistic */ | 8 /* ReservedInNestedScopes */ : 16 /* Optimistic */ | 32 /* FileLevel */); classDefinitionStatements.push( createLet(classInfo2.classDecoratorsName, factory2.createArrayLiteralExpression(classDecorators)), createLet(classInfo2.classDescriptorName), @@ -91245,34 +92188,26 @@ function transformESDecorators(context) { shouldTransformPrivateStaticElementsInFile = true; } } - if (classDecorators && containsLexicalSuperInStaticInitializer(node)) { - const extendsClause = getHeritageClause(node.heritageClauses, 96 /* ExtendsKeyword */); - const extendsElement = extendsClause && firstOrUndefined(extendsClause.types); - const extendsExpression = extendsElement && visitNode(extendsElement.expression, visitor, isExpression); - if (extendsExpression) { - classInfo2.classSuper = factory2.createUniqueName("_classSuper", 16 /* Optimistic */); - const unwrapped = skipOuterExpressions(extendsExpression); - const safeExtendsExpression = isClassExpression(unwrapped) && !unwrapped.name || isFunctionExpression(unwrapped) && !unwrapped.name || isArrowFunction(unwrapped) ? factory2.createComma(factory2.createNumericLiteral(0), extendsExpression) : extendsExpression; - classDefinitionStatements.push(createLet(classInfo2.classSuper, safeExtendsExpression)); - const updatedExtendsElement = factory2.updateExpressionWithTypeArguments( - extendsElement, - classInfo2.classSuper, - /*typeArguments*/ - void 0 - ); - const updatedExtendsClause = factory2.updateHeritageClause(extendsClause, [updatedExtendsElement]); - heritageClauses = factory2.createNodeArray([updatedExtendsClause]); - } - } else { - heritageClauses = visitNodes2(node.heritageClauses, visitor, isHeritageClause); + const extendsClause = getHeritageClause(node.heritageClauses, 96 /* ExtendsKeyword */); + const extendsElement = extendsClause && firstOrUndefined(extendsClause.types); + const extendsExpression = extendsElement && visitNode(extendsElement.expression, visitor, isExpression); + if (extendsExpression) { + classInfo2.classSuper = factory2.createUniqueName("_classSuper", 16 /* Optimistic */ | 32 /* FileLevel */); + const unwrapped = skipOuterExpressions(extendsExpression); + const safeExtendsExpression = isClassExpression(unwrapped) && !unwrapped.name || isFunctionExpression(unwrapped) && !unwrapped.name || isArrowFunction(unwrapped) ? factory2.createComma(factory2.createNumericLiteral(0), extendsExpression) : extendsExpression; + classDefinitionStatements.push(createLet(classInfo2.classSuper, safeExtendsExpression)); + const updatedExtendsElement = factory2.updateExpressionWithTypeArguments( + extendsElement, + classInfo2.classSuper, + /*typeArguments*/ + void 0 + ); + const updatedExtendsClause = factory2.updateHeritageClause(extendsClause, [updatedExtendsElement]); + heritageClauses = factory2.createNodeArray([updatedExtendsClause]); } const renamedClassThis = classInfo2.classThis ?? factory2.createThis(); - const needsSetNameHelper = !((_a = getOriginalNode(node, isClassLike)) == null ? void 0 : _a.name) && (classDecorators || !isStringLiteral(className) || !isEmptyStringLiteral(className)); - if (needsSetNameHelper) { - const setNameExpr = emitHelpers().createSetFunctionNameHelper(factory2.createThis(), className); - leadingBlockStatements = append(leadingBlockStatements, factory2.createExpressionStatement(setNameExpr)); - } enterClass(classInfo2); + leadingBlockStatements = append(leadingBlockStatements, createMetadata(classInfo2.metadataReference, classInfo2.classSuper)); let members = visitNodes2(node.members, classElementVisitor, isClassElement); if (pendingExpressions) { let outerThis; @@ -91370,15 +92305,15 @@ function transformESDecorators(context) { leadingBlockStatements = addRange(leadingBlockStatements, classInfo2.nonStaticFieldDecorationStatements); if (classInfo2.classDescriptorName && classInfo2.classDecoratorsName && classInfo2.classExtraInitializersName && classInfo2.classThis) { leadingBlockStatements ?? (leadingBlockStatements = []); - const valueProperty = factory2.createPropertyAssignment("value", factory2.createThis()); + const valueProperty = factory2.createPropertyAssignment("value", renamedClassThis); const classDescriptor = factory2.createObjectLiteralExpression([valueProperty]); const classDescriptorAssignment = factory2.createAssignment(classInfo2.classDescriptorName, classDescriptor); - const classNameReference = factory2.createPropertyAccessExpression(factory2.createThis(), "name"); + const classNameReference = factory2.createPropertyAccessExpression(renamedClassThis, "name"); const esDecorateHelper2 = emitHelpers().createESDecorateHelper( factory2.createNull(), classDescriptorAssignment, classInfo2.classDecoratorsName, - { kind: "class", name: classNameReference }, + { kind: "class", name: classNameReference, metadata: classInfo2.metadataReference }, factory2.createNull(), classInfo2.classExtraInitializersName ); @@ -91390,6 +92325,7 @@ function transformESDecorators(context) { const classReferenceAssignment = factory2.createAssignment(classReference, classThisAssignment); leadingBlockStatements.push(factory2.createExpressionStatement(classReferenceAssignment)); } + leadingBlockStatements.push(createSymbolMetadata(renamedClassThis, classInfo2.metadataReference)); if (classInfo2.staticExtraInitializersName) { const runStaticInitializersHelper = emitHelpers().createRunInitializersHelper(renamedClassThis, classInfo2.staticExtraInitializersName); const runStaticInitializersStatement = factory2.createExpressionStatement(runStaticInitializersHelper); @@ -91406,32 +92342,35 @@ function transformESDecorators(context) { addRange(leadingBlockStatements, trailingBlockStatements); trailingBlockStatements = void 0; } - let newMembers = members; - if (leadingBlockStatements) { - const leadingStaticBlockBody = factory2.createBlock( - leadingBlockStatements, - /*multiLine*/ - true - ); - const leadingStaticBlock = factory2.createClassStaticBlockDeclaration(leadingStaticBlockBody); - if (shouldTransformPrivateStaticElementsInClass) { - setInternalEmitFlags(leadingStaticBlock, 32 /* TransformPrivateStaticElements */); - } - newMembers = [leadingStaticBlock, ...newMembers]; - } - if (syntheticConstructor) { - newMembers = [...newMembers, syntheticConstructor]; - } - if (trailingBlockStatements) { - const trailingStaticBlockBody = factory2.createBlock( - trailingBlockStatements, - /*multiLine*/ - true - ); - const trailingStaticBlock = factory2.createClassStaticBlockDeclaration(trailingStaticBlockBody); - newMembers = [...newMembers, trailingStaticBlock]; + const leadingStaticBlock = leadingBlockStatements && factory2.createClassStaticBlockDeclaration(factory2.createBlock( + leadingBlockStatements, + /*multiLine*/ + true + )); + if (leadingStaticBlock && shouldTransformPrivateStaticElementsInClass) { + setInternalEmitFlags(leadingStaticBlock, 32 /* TransformPrivateStaticElements */); } - if (newMembers !== members) { + const trailingStaticBlock = trailingBlockStatements && factory2.createClassStaticBlockDeclaration(factory2.createBlock( + trailingBlockStatements, + /*multiLine*/ + true + )); + if (leadingStaticBlock || syntheticConstructor || trailingStaticBlock) { + const newMembers = []; + const existingNamedEvaluationHelperBlockIndex = members.findIndex(isClassNamedEvaluationHelperBlock); + if (leadingStaticBlock) { + addRange(newMembers, members, 0, existingNamedEvaluationHelperBlockIndex + 1); + newMembers.push(leadingStaticBlock); + addRange(newMembers, members, existingNamedEvaluationHelperBlockIndex + 1); + } else { + addRange(newMembers, members); + } + if (syntheticConstructor) { + newMembers.push(syntheticConstructor); + } + if (trailingStaticBlock) { + newMembers.push(trailingStaticBlock); + } members = setTextRange(factory2.createNodeArray(newMembers), members); } const lexicalEnvironment = endLexicalEnvironment(); @@ -91447,6 +92386,9 @@ function transformESDecorators(context) { heritageClauses, members ); + if (classInfo2.classThis) { + classExpression = injectClassThisAssignmentIfMissing(factory2, classExpression, classInfo2.classThis); + } const classReferenceDeclaration = factory2.createVariableDeclaration( classReference, /*exclamationToken*/ @@ -91486,7 +92428,6 @@ function transformESDecorators(context) { } } setOriginalNode(classExpression, node); - getOrCreateEmitNode(classExpression).classThis = classInfo2.classThis; return factory2.createImmediatelyInvokedArrowFunction(factory2.mergeLexicalEnvironment(classDefinitionStatements, lexicalEnvironment)); } function isDecoratedClassLike(node) { @@ -91502,26 +92443,51 @@ function transformESDecorators(context) { } function visitClassDeclaration(node) { if (isDecoratedClassLike(node)) { - if (hasSyntacticModifier(node, 1 /* Export */) && hasSyntacticModifier(node, 1024 /* Default */)) { - const originalClass = getOriginalNode(node, isClassLike) ?? node; - const className = originalClass.name ? factory2.createStringLiteralFromNode(originalClass.name) : factory2.createStringLiteral("default"); - const iife = transformClassLike(node, className); - const statement = factory2.createExportDefault(iife); - setOriginalNode(statement, node); - setCommentRange(statement, getCommentRange(node)); - setSourceMapRange(statement, moveRangePastDecorators(node)); - return statement; + const statements = []; + const originalClass = getOriginalNode(node, isClassLike) ?? node; + const className = originalClass.name ? factory2.createStringLiteralFromNode(originalClass.name) : factory2.createStringLiteral("default"); + const isExport = hasSyntacticModifier(node, 1 /* Export */); + const isDefault = hasSyntacticModifier(node, 1024 /* Default */); + if (!node.name) { + node = injectClassNamedEvaluationHelperBlockIfMissing(context, node, className); + } + if (isExport && isDefault) { + const iife = transformClassLike(node); + if (node.name) { + const varDecl = factory2.createVariableDeclaration( + factory2.getLocalName(node), + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + iife + ); + setOriginalNode(varDecl, node); + const varDecls = factory2.createVariableDeclarationList([varDecl], 1 /* Let */); + const varStatement = factory2.createVariableStatement( + /*modifiers*/ + void 0, + varDecls + ); + statements.push(varStatement); + const exportStatement = factory2.createExportDefault(factory2.getDeclarationName(node)); + setOriginalNode(exportStatement, node); + setCommentRange(exportStatement, getCommentRange(node)); + setSourceMapRange(exportStatement, moveRangePastDecorators(node)); + statements.push(exportStatement); + } else { + const exportStatement = factory2.createExportDefault(iife); + setOriginalNode(exportStatement, node); + setCommentRange(exportStatement, getCommentRange(node)); + setSourceMapRange(exportStatement, moveRangePastDecorators(node)); + statements.push(exportStatement); + } } else { Debug.assertIsDefined(node.name, "A class declaration that is not a default export must have a name."); - const iife = transformClassLike(node, factory2.createStringLiteralFromNode(node.name)); - const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); - const declName = languageVersion <= 2 /* ES2015 */ ? factory2.getInternalName( - node, - /*allowComments*/ - false, - /*allowSourceMaps*/ - true - ) : factory2.getLocalName( + const iife = transformClassLike(node); + const modifierVisitorNoExport = isExport ? (node2) => isExportModifier(node2) ? void 0 : modifierVisitor(node2) : modifierVisitor; + const modifiers = visitNodes2(node.modifiers, modifierVisitorNoExport, isModifier); + const declName = factory2.getLocalName( node, /*allowComments*/ false, @@ -91538,11 +92504,17 @@ function transformESDecorators(context) { ); setOriginalNode(varDecl, node); const varDecls = factory2.createVariableDeclarationList([varDecl], 1 /* Let */); - const statement = factory2.createVariableStatement(modifiers, varDecls); - setOriginalNode(statement, node); - setCommentRange(statement, getCommentRange(node)); - return statement; + const varStatement = factory2.createVariableStatement(modifiers, varDecls); + setOriginalNode(varStatement, node); + setCommentRange(varStatement, getCommentRange(node)); + statements.push(varStatement); + if (isExport) { + const exportStatement = factory2.createExternalModuleExport(declName); + setOriginalNode(exportStatement, node); + statements.push(exportStatement); + } } + return singleOrMany(statements); } else { const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); const heritageClauses = visitNodes2(node.heritageClauses, visitor, isHeritageClause); @@ -91563,10 +92535,9 @@ function transformESDecorators(context) { ); } } - function visitClassExpression(node, referencedName) { + function visitClassExpression(node) { if (isDecoratedClassLike(node)) { - const className = node.name ? factory2.createStringLiteralFromNode(node.name) : referencedName ?? factory2.createStringLiteral(""); - const iife = transformClassLike(node, className); + const iife = transformClassLike(node); setOriginalNode(iife, node); return iife; } else { @@ -91603,6 +92574,35 @@ function transformESDecorators(context) { return statements; } } + function transformConstructorBodyWorker(statementsOut, statementsIn, statementOffset, superPath, superPathDepth, initializerStatements) { + const superStatementIndex = superPath[superPathDepth]; + const superStatement = statementsIn[superStatementIndex]; + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, statementOffset, superStatementIndex - statementOffset)); + if (isTryStatement(superStatement)) { + const tryBlockStatements = []; + transformConstructorBodyWorker( + tryBlockStatements, + superStatement.tryBlock.statements, + /*statementOffset*/ + 0, + superPath, + superPathDepth + 1, + initializerStatements + ); + const tryBlockStatementsArray = factory2.createNodeArray(tryBlockStatements); + setTextRange(tryBlockStatementsArray, superStatement.tryBlock.statements); + statementsOut.push(factory2.updateTryStatement( + superStatement, + factory2.updateBlock(superStatement.tryBlock, tryBlockStatements), + visitNode(superStatement.catchClause, visitor, isCatchClause), + visitNode(superStatement.finallyBlock, visitor, isBlock) + )); + } else { + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex, 1)); + addRange(statementsOut, initializerStatements); + } + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex + 1)); + } function visitConstructorDeclaration(node) { enterClassElement(node); const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); @@ -91619,11 +92619,9 @@ function transformESDecorators(context) { false, visitor ); - const superStatementIndex = findSuperStatementIndex(node.body.statements, nonPrologueStart); - if (superStatementIndex >= 0) { - addRange(statements, visitNodes2(node.body.statements, visitor, isStatement, nonPrologueStart, superStatementIndex + 1 - nonPrologueStart)); - addRange(statements, initializerStatements); - addRange(statements, visitNodes2(node.body.statements, visitor, isStatement, superStatementIndex + 1)); + const superStatementIndices = findSuperStatementIndexPath(node.body.statements, nonPrologueStart); + if (superStatementIndices.length > 0) { + transformConstructorBodyWorker(statements, node.body.statements, nonPrologueStart, superStatementIndices, 0, initializerStatements); } else { addRange(statements, initializerStatements); addRange(statements, visitNodes2(node.body.statements, visitor, isStatement)); @@ -91648,7 +92646,7 @@ function transformESDecorators(context) { } return updated; } - function partialTransformClassElement(member, useNamedEvaluation, classInfo2, createDescriptor) { + function partialTransformClassElement(member, classInfo2, createDescriptor) { let referencedName; let name; let initializersName; @@ -91657,11 +92655,7 @@ function transformESDecorators(context) { if (!classInfo2) { const modifiers2 = visitNodes2(member.modifiers, modifierVisitor, isModifier); enterName(); - if (useNamedEvaluation) { - ({ referencedName, name } = visitReferencedPropertyName(member.name)); - } else { - name = visitPropertyName(member.name); - } + name = visitPropertyName(member.name); exitName(); return { modifiers: modifiers2, referencedName, name, initializersName, descriptorName, thisArg }; } @@ -91710,9 +92704,10 @@ function transformESDecorators(context) { get: isPropertyDeclaration(member) || isGetAccessorDeclaration(member) || isMethodDeclaration(member), // 3. If _kind_ is ~field~, ~accessor~, or ~setter~, then ... set: isPropertyDeclaration(member) || isSetAccessorDeclaration(member) - } + }, + metadata: classInfo2.metadataReference }; - const extraInitializers = isStatic(member) ? classInfo2.staticExtraInitializersName ?? (classInfo2.staticExtraInitializersName = factory2.createUniqueName("_staticExtraInitializers", 16 /* Optimistic */)) : classInfo2.instanceExtraInitializersName ?? (classInfo2.instanceExtraInitializersName = factory2.createUniqueName("_instanceExtraInitializers", 16 /* Optimistic */)); + const extraInitializers = isStatic(member) ? classInfo2.staticExtraInitializersName ?? (classInfo2.staticExtraInitializersName = factory2.createUniqueName("_staticExtraInitializers", 16 /* Optimistic */ | 32 /* FileLevel */)) : classInfo2.instanceExtraInitializersName ?? (classInfo2.instanceExtraInitializersName = factory2.createUniqueName("_instanceExtraInitializers", 16 /* Optimistic */ | 32 /* FileLevel */)); if (isMethodOrAccessor(member)) { let descriptor; if (isPrivateIdentifierClassElementDeclaration(member) && createDescriptor) { @@ -91754,11 +92749,7 @@ function transformESDecorators(context) { } if (name === void 0) { enterName(); - if (useNamedEvaluation) { - ({ referencedName, name } = visitReferencedPropertyName(member.name)); - } else { - name = visitPropertyName(member.name); - } + name = visitPropertyName(member.name); exitName(); } if (!some(modifiers) && (isMethodDeclaration(member) || isPropertyDeclaration(member))) { @@ -91768,13 +92759,7 @@ function transformESDecorators(context) { } function visitMethodDeclaration(node) { enterClassElement(node); - const { modifiers, name, descriptorName } = partialTransformClassElement( - node, - /*useNamedEvaluation*/ - false, - classInfo, - createMethodDescriptorObject - ); + const { modifiers, name, descriptorName } = partialTransformClassElement(node, classInfo, createMethodDescriptorObject); if (descriptorName) { exitClassElement(); return finishClassElement(createMethodDescriptorForwarder(modifiers, name, descriptorName), node); @@ -91800,13 +92785,7 @@ function transformESDecorators(context) { } function visitGetAccessorDeclaration(node) { enterClassElement(node); - const { modifiers, name, descriptorName } = partialTransformClassElement( - node, - /*useNamedEvaluation*/ - false, - classInfo, - createGetAccessorDescriptorObject - ); + const { modifiers, name, descriptorName } = partialTransformClassElement(node, classInfo, createGetAccessorDescriptorObject); if (descriptorName) { exitClassElement(); return finishClassElement(createGetAccessorDescriptorForwarder(modifiers, name, descriptorName), node); @@ -91827,13 +92806,7 @@ function transformESDecorators(context) { } function visitSetAccessorDeclaration(node) { enterClassElement(node); - const { modifiers, name, descriptorName } = partialTransformClassElement( - node, - /*useNamedEvaluation*/ - false, - classInfo, - createSetAccessorDescriptorObject - ); + const { modifiers, name, descriptorName } = partialTransformClassElement(node, classInfo, createSetAccessorDescriptorObject); if (descriptorName) { exitClassElement(); return finishClassElement(createSetAccessorDescriptorForwarder(modifiers, name, descriptorName), node); @@ -91846,19 +92819,31 @@ function transformESDecorators(context) { } function visitClassStaticBlockDeclaration(node) { enterClassElement(node); - if (classInfo) - classInfo.hasStaticInitializers = true; - const result = visitEachChild(node, visitor, context); + let result; + if (isClassNamedEvaluationHelperBlock(node)) { + result = visitEachChild(node, visitor, context); + } else if (isClassThisAssignmentBlock(node)) { + const savedClassThis = classThis; + classThis = void 0; + result = visitEachChild(node, visitor, context); + classThis = savedClassThis; + } else { + if (classInfo) + classInfo.hasStaticInitializers = true; + result = visitEachChild(node, visitor, context); + } exitClassElement(); return result; } function visitPropertyDeclaration(node) { + if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.initializer)); + } enterClassElement(node); Debug.assert(!isAmbientPropertyDeclaration(node), "Not yet implemented."); - const useNamedEvaluation = isNamedEvaluation(node, isAnonymousClassNeedingAssignedName); - const { modifiers, name, referencedName, initializersName, descriptorName, thisArg } = partialTransformClassElement(node, useNamedEvaluation, classInfo, hasAccessorModifier(node) ? createAccessorPropertyDescriptorObject : void 0); + const { modifiers, name, initializersName, descriptorName, thisArg } = partialTransformClassElement(node, classInfo, hasAccessorModifier(node) ? createAccessorPropertyDescriptorObject : void 0); startLexicalEnvironment(); - let initializer = referencedName ? visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, referencedName), isExpression) : visitNode(node.initializer, visitor, isExpression); + let initializer = visitNode(node.initializer, visitor, isExpression); if (initializersName) { initializer = emitHelpers().createRunInitializersHelper( thisArg ?? factory2.createThis(), @@ -91988,38 +92973,21 @@ function transformESDecorators(context) { return visitEachChild(node, visitor, context); } function visitParameterDeclaration(node) { - let updated; if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.name, node.initializer); - const name = visitNode(node.name, visitor, isBindingName); - const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - updated = factory2.updateParameterDeclaration( - node, - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - name, - /*questionToken*/ - void 0, - /*type*/ - void 0, - initializer - ); - } else { - updated = factory2.updateParameterDeclaration( - node, - /*modifiers*/ - void 0, - node.dotDotDotToken, - visitNode(node.name, visitor, isBindingName), - /*questionToken*/ - void 0, - /*type*/ - void 0, - visitNode(node.initializer, visitor, isExpression) - ); + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.initializer)); } + const updated = factory2.updateParameterDeclaration( + node, + /*modifiers*/ + void 0, + node.dotDotDotToken, + visitNode(node.name, visitor, isBindingName), + /*questionToken*/ + void 0, + /*type*/ + void 0, + visitNode(node.initializer, visitor, isExpression) + ); if (updated !== node) { setCommentRange(updated, node); setTextRange(updated, moveRangePastModifiers(node)); @@ -92031,6 +92999,14 @@ function transformESDecorators(context) { function isAnonymousClassNeedingAssignedName(node) { return isClassExpression(node) && !node.name && isDecoratedClassLike(node); } + function canIgnoreEmptyStringLiteralInAssignedName(node) { + const innerExpression = skipOuterExpressions(node); + return isClassExpression(innerExpression) && !innerExpression.name && !classOrConstructorParameterIsDecorated( + /*useLegacyDecorators*/ + false, + innerExpression + ); + } function visitForStatement(node) { return factory2.updateForStatement( node, @@ -92051,10 +93027,8 @@ function transformESDecorators(context) { } if (isAssignmentExpression(node)) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.left, node.right); - const left = visitNode(node.left, visitor, isExpression); - const right = visitNode(node.right, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateBinaryExpression(node, left, node.operatorToken, right); + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.right)); + return visitEachChild(node, visitor, context); } if (isSuperProperty(node.left) && classThis && classSuper) { let setterName = isElementAccessExpression(node.left) ? visitNode(node.left.argumentExpression, visitor, isExpression) : isIdentifier(node.left.name) ? factory2.createStringLiteralFromNode(node.left.name) : void 0; @@ -92174,43 +93148,19 @@ function transformESDecorators(context) { } function visitPropertyAssignment(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const { referencedName, name } = visitReferencedPropertyName(node.name); - const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, referencedName), isExpression); - return factory2.updatePropertyAssignment(node, name, initializer); + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.initializer)); } return visitEachChild(node, visitor, context); } function visitVariableDeclaration(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.name, node.initializer); - const name = visitNode(node.name, visitor, isBindingName); - const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateVariableDeclaration( - node, - name, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - initializer - ); + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.initializer)); } return visitEachChild(node, visitor, context); } function visitBindingElement(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.name, node.initializer); - const propertyName = visitNode(node.propertyName, visitor, isPropertyName); - const name = visitNode(node.name, visitor, isBindingName); - const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateBindingElement( - node, - /*dotDotDotToken*/ - void 0, - propertyName, - name, - initializer - ); + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.initializer)); } return visitEachChild(node, visitor, context); } @@ -92247,14 +93197,11 @@ function transformESDecorators(context) { /*excludeCompoundAssignment*/ true )) { - const assignmentTarget = visitDestructuringAssignmentTarget(node.left); - let initializer; if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.left, node.right); - initializer = visitNode(node.right, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - } else { - initializer = visitNode(node.right, visitor, isExpression); + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.right)); } + const assignmentTarget = visitDestructuringAssignmentTarget(node.left); + const initializer = visitNode(node.right, visitor, isExpression); return factory2.updateBinaryExpression(node, assignmentTarget, node.operatorToken, initializer); } else { return visitDestructuringAssignmentTarget(node); @@ -92293,10 +93240,7 @@ function transformESDecorators(context) { } function visitShorthandAssignmentProperty(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.name, node.objectAssignmentInitializer); - const name = visitNode(node.name, visitor, isIdentifier); - const objectAssignmentInitializer = visitNode(node.objectAssignmentInitializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateShorthandPropertyAssignment(node, name, objectAssignmentInitializer); + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.objectAssignmentInitializer)); } return visitEachChild(node, visitor, context); } @@ -92328,20 +93272,17 @@ function transformESDecorators(context) { } function visitExportAssignment(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const referencedName = factory2.createStringLiteral(node.isExportEquals ? "" : "default"); - const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); - const expression = visitNode(node.expression, (node2) => namedEvaluationVisitor(node2, referencedName), isExpression); - return factory2.updateExportAssignment(node, modifiers, expression); + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.expression)); } return visitEachChild(node, visitor, context); } - function visitParenthesizedExpression(node, discarded, referencedName) { - const visitorFunc = discarded ? discardedValueVisitor : referencedName ? (node2) => namedEvaluationVisitor(node2, referencedName) : visitor; + function visitParenthesizedExpression(node, discarded) { + const visitorFunc = discarded ? discardedValueVisitor : visitor; const expression = visitNode(node.expression, visitorFunc, isExpression); return factory2.updateParenthesizedExpression(node, expression); } - function visitPartiallyEmittedExpression(node, discarded, referencedName) { - const visitorFunc = discarded ? discardedValueVisitor : referencedName ? (node2) => namedEvaluationVisitor(node2, referencedName) : visitor; + function visitPartiallyEmittedExpression(node, discarded) { + const visitorFunc = discarded ? discardedValueVisitor : visitor; const expression = visitNode(node.expression, visitorFunc, isExpression); return factory2.updatePartiallyEmittedExpression(node, expression); } @@ -92369,6 +93310,17 @@ function transformESDecorators(context) { function transformDecorator(decorator) { const expression = visitNode(decorator.expression, visitor, isExpression); setEmitFlags(expression, 3072 /* NoComments */); + const innerExpression = skipOuterExpressions(expression); + if (isAccessExpression(innerExpression)) { + const { target, thisArg } = factory2.createCallBinding( + expression, + hoistVariableDeclaration, + languageVersion, + /*cacheIdentifiers*/ + true + ); + return factory2.restoreOuterExpressions(expression, factory2.createFunctionBindCall(target, thisArg, [])); + } return expression; } function createDescriptorMethod(original, name, modifiers, asteriskToken, kind, parameters, body) { @@ -92554,9 +93506,59 @@ function transformESDecorators(context) { ]) ); } - function getAssignedNameOfIdentifier(name, initializer) { - const originalClass = getOriginalNode(initializer, isClassLike); - return originalClass && !originalClass.name && hasSyntacticModifier(originalClass, 1024 /* Default */) ? factory2.createStringLiteral("default") : factory2.createStringLiteralFromNode(name); + function createMetadata(name, classSuper2) { + const varDecl = factory2.createVariableDeclaration( + name, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + factory2.createConditionalExpression( + factory2.createLogicalAnd( + factory2.createTypeCheck(factory2.createIdentifier("Symbol"), "function"), + factory2.createPropertyAccessExpression(factory2.createIdentifier("Symbol"), "metadata") + ), + factory2.createToken(58 /* QuestionToken */), + factory2.createCallExpression( + factory2.createPropertyAccessExpression(factory2.createIdentifier("Object"), "create"), + /*typeArguments*/ + void 0, + [classSuper2 ? createSymbolMetadataReference(classSuper2) : factory2.createNull()] + ), + factory2.createToken(59 /* ColonToken */), + factory2.createVoidZero() + ) + ); + return factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList([varDecl], 2 /* Const */) + ); + } + function createSymbolMetadata(target, value) { + const defineProperty = factory2.createObjectDefinePropertyCall( + target, + factory2.createPropertyAccessExpression(factory2.createIdentifier("Symbol"), "metadata"), + factory2.createPropertyDescriptor( + { configurable: true, writable: true, enumerable: true, value }, + /*singleLine*/ + true + ) + ); + return setEmitFlags( + factory2.createIfStatement(value, factory2.createExpressionStatement(defineProperty)), + 1 /* SingleLine */ + ); + } + function createSymbolMetadataReference(classSuper2) { + return factory2.createBinaryExpression( + factory2.createElementAccessExpression( + classSuper2, + factory2.createPropertyAccessExpression(factory2.createIdentifier("Symbol"), "metadata") + ), + 61 /* QuestionQuestionToken */, + factory2.createNull() + ); } } @@ -92634,34 +93636,34 @@ function transformES2017(context) { switch (node.kind) { case 134 /* AsyncKeyword */: return void 0; - case 222 /* AwaitExpression */: + case 223 /* AwaitExpression */: return visitAwaitExpression(node); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitMethodDeclaration, node); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitFunctionDeclaration, node); - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitFunctionExpression, node); - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return doWithContext(1 /* NonTopLevel */, visitArrowFunction, node); - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: if (capturedSuperProperties && isPropertyAccessExpression(node) && node.expression.kind === 108 /* SuperKeyword */) { capturedSuperProperties.add(node.name.escapedText); } return visitEachChild(node, visitor, context); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: if (capturedSuperProperties && node.expression.kind === 108 /* SuperKeyword */) { hasSuperElementAccess = true; } return visitEachChild(node, visitor, context); - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitGetAccessorDeclaration, node); - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitSetAccessorDeclaration, node); - case 175 /* Constructor */: + case 176 /* Constructor */: return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitConstructorDeclaration, node); - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitDefault, node); default: return visitEachChild(node, visitor, context); @@ -92670,27 +93672,27 @@ function transformES2017(context) { function asyncBodyVisitor(node) { if (isNodeWithPossibleHoistedDeclaration(node)) { switch (node.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return visitVariableStatementInAsyncBody(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatementInAsyncBody(node); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return visitForInStatementInAsyncBody(node); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return visitForOfStatementInAsyncBody(node); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return visitCatchClauseInAsyncBody(node); - case 240 /* Block */: - case 254 /* SwitchStatement */: - case 268 /* CaseBlock */: - case 295 /* CaseClause */: - case 296 /* DefaultClause */: - case 257 /* TryStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: - case 244 /* IfStatement */: - case 253 /* WithStatement */: - case 255 /* LabeledStatement */: + case 241 /* Block */: + case 255 /* SwitchStatement */: + case 269 /* CaseBlock */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: + case 258 /* TryStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 245 /* IfStatement */: + case 254 /* WithStatement */: + case 256 /* LabeledStatement */: return visitEachChild(node, asyncBodyVisitor, context); default: return Debug.assertNever(node, "Unhandled node."); @@ -92883,7 +93885,7 @@ function transformES2017(context) { } } function isVariableDeclarationListWithCollidingName(node) { - return !!node && isVariableDeclarationList(node) && !(node.flags & 3 /* BlockScoped */) && node.declarations.some(collidesWithParameterName); + return !!node && isVariableDeclarationList(node) && !(node.flags & 7 /* BlockScoped */) && node.declarations.some(collidesWithParameterName); } function visitVariableDeclarationListWithCollidingNames(node, hasReceiver) { hoistVariableDeclarationList(node); @@ -92967,7 +93969,7 @@ function transformES2017(context) { const original = getOriginalNode(node, isFunctionLike); const nodeType = original.type; const promiseConstructor = languageVersion < 2 /* ES2015 */ ? getPromiseConstructor(nodeType) : void 0; - const isArrowFunction2 = node.kind === 218 /* ArrowFunction */; + const isArrowFunction2 = node.kind === 219 /* ArrowFunction */; const hasLexicalArguments = (resolver.getNodeCheckFlags(node) & 512 /* CaptureArguments */) !== 0; const savedEnclosingFunctionParameterNames = enclosingFunctionParameterNames; enclosingFunctionParameterNames = /* @__PURE__ */ new Set(); @@ -93066,15 +94068,15 @@ function transformES2017(context) { function enableSubstitutionForAsyncMethodsWithSuper() { if ((enabledSubstitutions & 1 /* AsyncMethodsWithSuper */) === 0) { enabledSubstitutions |= 1 /* AsyncMethodsWithSuper */; - context.enableSubstitution(212 /* CallExpression */); - context.enableSubstitution(210 /* PropertyAccessExpression */); - context.enableSubstitution(211 /* ElementAccessExpression */); - context.enableEmitNotification(262 /* ClassDeclaration */); - context.enableEmitNotification(173 /* MethodDeclaration */); - context.enableEmitNotification(176 /* GetAccessor */); - context.enableEmitNotification(177 /* SetAccessor */); - context.enableEmitNotification(175 /* Constructor */); - context.enableEmitNotification(242 /* VariableStatement */); + context.enableSubstitution(213 /* CallExpression */); + context.enableSubstitution(211 /* PropertyAccessExpression */); + context.enableSubstitution(212 /* ElementAccessExpression */); + context.enableEmitNotification(263 /* ClassDeclaration */); + context.enableEmitNotification(174 /* MethodDeclaration */); + context.enableEmitNotification(177 /* GetAccessor */); + context.enableEmitNotification(178 /* SetAccessor */); + context.enableEmitNotification(176 /* Constructor */); + context.enableEmitNotification(243 /* VariableStatement */); } } function onEmitNode(hint, node, emitCallback) { @@ -93105,11 +94107,11 @@ function transformES2017(context) { } function substituteExpression(node) { switch (node.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return substitutePropertyAccessExpression(node); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return substituteElementAccessExpression(node); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return substituteCallExpression(node); } return node; @@ -93153,7 +94155,7 @@ function transformES2017(context) { } function isSuperContainer(node) { const kind = node.kind; - return kind === 262 /* ClassDeclaration */ || kind === 175 /* Constructor */ || kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */; + return kind === 263 /* ClassDeclaration */ || kind === 176 /* Constructor */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; } function createSuperElementAccessInAsyncMethod(argumentExpression, location) { if (enclosingSuperContainerFlags & 256 /* MethodWithSuperPropertyAssignmentInAsync */) { @@ -93393,119 +94395,119 @@ function transformES2018(context) { return node; } switch (node.kind) { - case 222 /* AwaitExpression */: + case 223 /* AwaitExpression */: return visitAwaitExpression(node); - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: return visitYieldExpression(node); - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: return visitReturnStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return visitLabeledStatement(node); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return visitObjectLiteralExpression(node); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return visitBinaryExpression(node, expressionResultIsUnused2); - case 360 /* CommaListExpression */: + case 361 /* CommaListExpression */: return visitCommaListExpression(node, expressionResultIsUnused2); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return visitCatchClause(node); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return visitVariableStatement(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return visitVariableDeclaration(node); - case 245 /* DoStatement */: - case 246 /* WhileStatement */: - case 248 /* ForInStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 249 /* ForInStatement */: return doWithHierarchyFacts( visitDefault, node, 0 /* IterationStatementExcludes */, 2 /* IterationStatementIncludes */ ); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return visitForOfStatement( node, /*outermostLabeledStatement*/ void 0 ); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return doWithHierarchyFacts( visitForStatement, node, 0 /* IterationStatementExcludes */, 2 /* IterationStatementIncludes */ ); - case 221 /* VoidExpression */: + case 222 /* VoidExpression */: return visitVoidExpression(node); - case 175 /* Constructor */: + case 176 /* Constructor */: return doWithHierarchyFacts( visitConstructorDeclaration, node, 2 /* ClassOrFunctionExcludes */, 1 /* ClassOrFunctionIncludes */ ); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return doWithHierarchyFacts( visitMethodDeclaration, node, 2 /* ClassOrFunctionExcludes */, 1 /* ClassOrFunctionIncludes */ ); - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return doWithHierarchyFacts( visitGetAccessorDeclaration, node, 2 /* ClassOrFunctionExcludes */, 1 /* ClassOrFunctionIncludes */ ); - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return doWithHierarchyFacts( visitSetAccessorDeclaration, node, 2 /* ClassOrFunctionExcludes */, 1 /* ClassOrFunctionIncludes */ ); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return doWithHierarchyFacts( visitFunctionDeclaration, node, 2 /* ClassOrFunctionExcludes */, 1 /* ClassOrFunctionIncludes */ ); - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: return doWithHierarchyFacts( visitFunctionExpression, node, 2 /* ClassOrFunctionExcludes */, 1 /* ClassOrFunctionIncludes */ ); - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return doWithHierarchyFacts( visitArrowFunction, node, 2 /* ArrowFunctionExcludes */, 0 /* ArrowFunctionIncludes */ ); - case 168 /* Parameter */: + case 169 /* Parameter */: return visitParameter(node); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return visitExpressionStatement(node); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression(node, expressionResultIsUnused2); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return visitTaggedTemplateExpression(node); - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: if (capturedSuperProperties && isPropertyAccessExpression(node) && node.expression.kind === 108 /* SuperKeyword */) { capturedSuperProperties.add(node.name.escapedText); } return visitEachChild(node, visitor, context); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: if (capturedSuperProperties && node.expression.kind === 108 /* SuperKeyword */) { hasSuperElementAccess = true; } return visitEachChild(node, visitor, context); - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return doWithHierarchyFacts( visitDefault, node, @@ -93590,7 +94592,7 @@ function transformES2018(context) { function visitLabeledStatement(node) { if (enclosingFunctionFlags & 2 /* Async */) { const statement = unwrapInnermostStatementOfLabel(node); - if (statement.kind === 249 /* ForOfStatement */ && statement.awaitModifier) { + if (statement.kind === 250 /* ForOfStatement */ && statement.awaitModifier) { return visitForOfStatement(statement, node); } return factory2.restoreEnclosingLabel(visitNode(statement, visitor, isStatement, factory2.liftToBlock), node); @@ -93601,7 +94603,7 @@ function transformES2018(context) { let chunkObject; const objects = []; for (const e of elements) { - if (e.kind === 304 /* SpreadAssignment */) { + if (e.kind === 305 /* SpreadAssignment */) { if (chunkObject) { objects.push(factory2.createObjectLiteralExpression(chunkObject)); chunkObject = void 0; @@ -93609,7 +94611,7 @@ function transformES2018(context) { const target = e.expression; objects.push(visitNode(target, visitor, isExpression)); } else { - chunkObject = append(chunkObject, e.kind === 302 /* PropertyAssignment */ ? factory2.createPropertyAssignment(e.name, visitNode(e.initializer, visitor, isExpression)) : visitNode(e, visitor, isObjectLiteralElementLike)); + chunkObject = append(chunkObject, e.kind === 303 /* PropertyAssignment */ ? factory2.createPropertyAssignment(e.name, visitNode(e.initializer, visitor, isExpression)) : visitNode(e, visitor, isObjectLiteralElementLike)); } } if (chunkObject) { @@ -93620,7 +94622,7 @@ function transformES2018(context) { function visitObjectLiteralExpression(node) { if (node.transformFlags & 65536 /* ContainsObjectRestOrSpread */) { const objects = chunkObjectLiteralElements(node.properties); - if (objects.length && objects[0].kind !== 209 /* ObjectLiteralExpression */) { + if (objects.length && objects[0].kind !== 210 /* ObjectLiteralExpression */) { objects.unshift(factory2.createObjectLiteralExpression()); } let expression = objects[0]; @@ -94389,15 +95391,15 @@ function transformES2018(context) { function enableSubstitutionForAsyncMethodsWithSuper() { if ((enabledSubstitutions & 1 /* AsyncMethodsWithSuper */) === 0) { enabledSubstitutions |= 1 /* AsyncMethodsWithSuper */; - context.enableSubstitution(212 /* CallExpression */); - context.enableSubstitution(210 /* PropertyAccessExpression */); - context.enableSubstitution(211 /* ElementAccessExpression */); - context.enableEmitNotification(262 /* ClassDeclaration */); - context.enableEmitNotification(173 /* MethodDeclaration */); - context.enableEmitNotification(176 /* GetAccessor */); - context.enableEmitNotification(177 /* SetAccessor */); - context.enableEmitNotification(175 /* Constructor */); - context.enableEmitNotification(242 /* VariableStatement */); + context.enableSubstitution(213 /* CallExpression */); + context.enableSubstitution(211 /* PropertyAccessExpression */); + context.enableSubstitution(212 /* ElementAccessExpression */); + context.enableEmitNotification(263 /* ClassDeclaration */); + context.enableEmitNotification(174 /* MethodDeclaration */); + context.enableEmitNotification(177 /* GetAccessor */); + context.enableEmitNotification(178 /* SetAccessor */); + context.enableEmitNotification(176 /* Constructor */); + context.enableEmitNotification(243 /* VariableStatement */); } } function onEmitNode(hint, node, emitCallback) { @@ -94428,11 +95430,11 @@ function transformES2018(context) { } function substituteExpression(node) { switch (node.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return substitutePropertyAccessExpression(node); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return substituteElementAccessExpression(node); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return substituteCallExpression(node); } return node; @@ -94476,7 +95478,7 @@ function transformES2018(context) { } function isSuperContainer(node) { const kind = node.kind; - return kind === 262 /* ClassDeclaration */ || kind === 175 /* Constructor */ || kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */; + return kind === 263 /* ClassDeclaration */ || kind === 176 /* Constructor */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; } function createSuperElementAccessInAsyncMethod(argumentExpression, location) { if (enclosingSuperContainerFlags & 256 /* MethodWithSuperPropertyAssignmentInAsync */) { @@ -94521,7 +95523,7 @@ function transformES2019(context) { return node; } switch (node.kind) { - case 298 /* CatchClause */: + case 299 /* CatchClause */: return visitCatchClause(node); default: return visitEachChild(node, visitor, context); @@ -94560,7 +95562,7 @@ function transformES2020(context) { return node; } switch (node.kind) { - case 212 /* CallExpression */: { + case 213 /* CallExpression */: { const updated = visitNonOptionalCallExpression( node, /*captureThisArg*/ @@ -94569,8 +95571,8 @@ function transformES2020(context) { Debug.assertNotNode(updated, isSyntheticReference); return updated; } - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: if (isOptionalChain(node)) { const updated = visitOptionalExpression( node, @@ -94583,12 +95585,12 @@ function transformES2020(context) { return updated; } return visitEachChild(node, visitor, context); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: if (node.operatorToken.kind === 61 /* QuestionQuestionToken */) { return transformNullishCoalescingExpression(node); } return visitEachChild(node, visitor, context); - case 219 /* DeleteExpression */: + case 220 /* DeleteExpression */: return visitDeleteExpression(node); default: return visitEachChild(node, visitor, context); @@ -94626,7 +95628,7 @@ function transformES2020(context) { thisArg = expression; } } - expression = node.kind === 210 /* PropertyAccessExpression */ ? factory2.updatePropertyAccessExpression(node, expression, visitNode(node.name, visitor, isIdentifier)) : factory2.updateElementAccessExpression(node, expression, visitNode(node.argumentExpression, visitor, isExpression)); + expression = node.kind === 211 /* PropertyAccessExpression */ ? factory2.updatePropertyAccessExpression(node, expression, visitNode(node.name, visitor, isIdentifier)) : factory2.updateElementAccessExpression(node, expression, visitNode(node.argumentExpression, visitor, isExpression)); return thisArg ? factory2.createSyntheticReferenceExpression(expression, thisArg) : expression; } function visitNonOptionalCallExpression(node, captureThisArg) { @@ -94662,12 +95664,12 @@ function transformES2020(context) { } function visitNonOptionalExpression(node, captureThisArg, isDelete) { switch (node.kind) { - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitNonOptionalParenthesizedExpression(node, captureThisArg, isDelete); - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return visitNonOptionalPropertyOrElementAccessExpression(node, captureThisArg, isDelete); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return visitNonOptionalCallExpression(node, captureThisArg); default: return visitNode(node, visitor, isExpression); @@ -94693,8 +95695,8 @@ function transformES2020(context) { for (let i = 0; i < chain.length; i++) { const segment = chain[i]; switch (segment.kind) { - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: if (i === chain.length - 1 && captureThisArg) { if (!isSimpleCopiableExpression(rightExpression)) { thisArg = factory2.createTempVariable(hoistVariableDeclaration); @@ -94703,9 +95705,9 @@ function transformES2020(context) { thisArg = rightExpression; } } - rightExpression = segment.kind === 210 /* PropertyAccessExpression */ ? factory2.createPropertyAccessExpression(rightExpression, visitNode(segment.name, visitor, isIdentifier)) : factory2.createElementAccessExpression(rightExpression, visitNode(segment.argumentExpression, visitor, isExpression)); + rightExpression = segment.kind === 211 /* PropertyAccessExpression */ ? factory2.createPropertyAccessExpression(rightExpression, visitNode(segment.name, visitor, isIdentifier)) : factory2.createElementAccessExpression(rightExpression, visitNode(segment.argumentExpression, visitor, isExpression)); break; - case 212 /* CallExpression */: + case 213 /* CallExpression */: if (i === 0 && leftThisArg) { if (!isGeneratedIdentifier(leftThisArg)) { leftThisArg = factory2.cloneNode(leftThisArg); @@ -94876,22 +95878,636 @@ function transformES2021(context) { // src/compiler/transformers/esnext.ts function transformESNext(context) { + const { + factory: factory2, + getEmitHelperFactory: emitHelpers, + hoistVariableDeclaration, + startLexicalEnvironment, + endLexicalEnvironment + } = context; + let exportBindings; + let exportVars; + let defaultExportBinding; + let exportEqualsBinding; return chainBundle(context, transformSourceFile); function transformSourceFile(node) { if (node.isDeclarationFile) { return node; } - return visitEachChild(node, visitor, context); + const visited = visitNode(node, visitor, isSourceFile); + addEmitHelpers(visited, context.readEmitHelpers()); + exportVars = void 0; + exportBindings = void 0; + defaultExportBinding = void 0; + return visited; } function visitor(node) { if ((node.transformFlags & 4 /* ContainsESNext */) === 0) { return node; } switch (node.kind) { + case 312 /* SourceFile */: + return visitSourceFile(node); + case 241 /* Block */: + return visitBlock(node); + case 248 /* ForStatement */: + return visitForStatement(node); + case 250 /* ForOfStatement */: + return visitForOfStatement(node); + case 255 /* SwitchStatement */: + return visitSwitchStatement(node); default: return visitEachChild(node, visitor, context); } } + function visitSourceFile(node) { + const usingKind = getUsingKindOfStatements(node.statements); + if (usingKind) { + startLexicalEnvironment(); + exportBindings = new IdentifierNameMap(); + exportVars = []; + const prologueCount = countPrologueStatements(node.statements); + const topLevelStatements = []; + addRange(topLevelStatements, visitArray(node.statements, visitor, isStatement, 0, prologueCount)); + let pos = prologueCount; + while (pos < node.statements.length) { + const statement = node.statements[pos]; + if (getUsingKind(statement) !== 0 /* None */) { + if (pos > prologueCount) { + addRange(topLevelStatements, visitNodes2(node.statements, visitor, isStatement, prologueCount, pos - prologueCount)); + } + break; + } + pos++; + } + Debug.assert(pos < node.statements.length, "Should have encountered at least one 'using' statement."); + const envBinding = createEnvBinding(); + const bodyStatements = transformUsingDeclarations(node.statements, pos, node.statements.length, envBinding, topLevelStatements); + if (exportBindings.size) { + append(topLevelStatements, factory2.createExportDeclaration( + /*modifiers*/ + void 0, + /*isTypeOnly*/ + false, + factory2.createNamedExports(arrayFrom(exportBindings.values())) + )); + } + addRange(topLevelStatements, endLexicalEnvironment()); + if (exportVars.length) { + topLevelStatements.push(factory2.createVariableStatement( + factory2.createModifiersFromModifierFlags(1 /* Export */), + factory2.createVariableDeclarationList( + exportVars, + 1 /* Let */ + ) + )); + } + addRange(topLevelStatements, createDownlevelUsingStatements(bodyStatements, envBinding, usingKind === 2 /* Async */)); + if (exportEqualsBinding) { + topLevelStatements.push(factory2.createExportAssignment( + /*modifiers*/ + void 0, + /*isExportEquals*/ + true, + exportEqualsBinding + )); + } + return factory2.updateSourceFile(node, topLevelStatements); + } + return visitEachChild(node, visitor, context); + } + function visitBlock(node) { + const usingKind = getUsingKindOfStatements(node.statements); + if (usingKind) { + const prologueCount = countPrologueStatements(node.statements); + const envBinding = createEnvBinding(); + return factory2.updateBlock( + node, + [ + ...visitArray(node.statements, visitor, isStatement, 0, prologueCount), + ...createDownlevelUsingStatements( + transformUsingDeclarations( + node.statements, + prologueCount, + node.statements.length, + envBinding, + /*topLevelStatements*/ + void 0 + ), + envBinding, + usingKind === 2 /* Async */ + ) + ] + ); + } + return visitEachChild(node, visitor, context); + } + function visitForStatement(node) { + if (node.initializer && isUsingVariableDeclarationList(node.initializer)) { + return visitNode( + factory2.createBlock([ + factory2.createVariableStatement( + /*modifiers*/ + void 0, + node.initializer + ), + factory2.updateForStatement( + node, + /*initializer*/ + void 0, + node.condition, + node.incrementor, + node.statement + ) + ]), + visitor, + isStatement + ); + } + return visitEachChild(node, visitor, context); + } + function visitForOfStatement(node) { + if (isUsingVariableDeclarationList(node.initializer)) { + const forInitializer = node.initializer; + Debug.assertNode(forInitializer, isUsingVariableDeclarationList); + Debug.assert(forInitializer.declarations.length === 1, "ForInitializer may only have one declaration"); + const forDecl = forInitializer.declarations[0]; + Debug.assert(!forDecl.initializer, "ForInitializer may not have an initializer"); + const isAwaitUsing = getUsingKindOfVariableDeclarationList(forInitializer) === 2 /* Async */; + const temp = factory2.getGeneratedNameForNode(forDecl.name); + const usingVar = factory2.updateVariableDeclaration( + forDecl, + forDecl.name, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + temp + ); + const usingVarList = factory2.createVariableDeclarationList([usingVar], isAwaitUsing ? 6 /* AwaitUsing */ : 4 /* Using */); + const usingVarStatement = factory2.createVariableStatement( + /*modifiers*/ + void 0, + usingVarList + ); + return visitNode( + factory2.updateForOfStatement( + node, + node.awaitModifier, + factory2.createVariableDeclarationList([ + factory2.createVariableDeclaration(temp) + ], 2 /* Const */), + node.expression, + isBlock(node.statement) ? factory2.updateBlock(node.statement, [ + usingVarStatement, + ...node.statement.statements + ]) : factory2.createBlock( + [ + usingVarStatement, + node.statement + ], + /*multiLine*/ + true + ) + ), + visitor, + isStatement + ); + } + return visitEachChild(node, visitor, context); + } + function visitCaseOrDefaultClause(node, envBinding) { + if (getUsingKindOfStatements(node.statements) !== 0 /* None */) { + if (isCaseClause(node)) { + return factory2.updateCaseClause( + node, + visitNode(node.expression, visitor, isExpression), + transformUsingDeclarations( + node.statements, + /*start*/ + 0, + node.statements.length, + envBinding, + /*topLevelStatements*/ + void 0 + ) + ); + } else { + return factory2.updateDefaultClause( + node, + transformUsingDeclarations( + node.statements, + /*start*/ + 0, + node.statements.length, + envBinding, + /*topLevelStatements*/ + void 0 + ) + ); + } + } + return visitEachChild(node, visitor, context); + } + function visitSwitchStatement(node) { + const usingKind = getUsingKindOfCaseOrDefaultClauses(node.caseBlock.clauses); + if (usingKind) { + const envBinding = createEnvBinding(); + return createDownlevelUsingStatements( + [ + factory2.updateSwitchStatement( + node, + visitNode(node.expression, visitor, isExpression), + factory2.updateCaseBlock( + node.caseBlock, + node.caseBlock.clauses.map((clause) => visitCaseOrDefaultClause(clause, envBinding)) + ) + ) + ], + envBinding, + usingKind === 2 /* Async */ + ); + } + return visitEachChild(node, visitor, context); + } + function transformUsingDeclarations(statementsIn, start, end, envBinding, topLevelStatements) { + const statements = []; + for (let i = start; i < end; i++) { + const statement = statementsIn[i]; + const usingKind = getUsingKind(statement); + if (usingKind) { + Debug.assertNode(statement, isVariableStatement); + const declarations = []; + for (let declaration of statement.declarationList.declarations) { + if (!isIdentifier(declaration.name)) { + declarations.length = 0; + break; + } + if (isNamedEvaluation(declaration)) { + declaration = transformNamedEvaluation(context, declaration); + } + const initializer = visitNode(declaration.initializer, visitor, isExpression) ?? factory2.createVoidZero(); + declarations.push(factory2.updateVariableDeclaration( + declaration, + declaration.name, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + emitHelpers().createAddDisposableResourceHelper( + envBinding, + initializer, + usingKind === 2 /* Async */ + ) + )); + } + if (declarations.length) { + const varList = factory2.createVariableDeclarationList(declarations, 2 /* Const */); + setOriginalNode(varList, statement.declarationList); + setTextRange(varList, statement.declarationList); + hoistOrAppendNode(factory2.updateVariableStatement( + statement, + /*modifiers*/ + void 0, + varList + )); + continue; + } + } + const result = visitor(statement); + if (isArray(result)) { + result.forEach(hoistOrAppendNode); + } else if (result) { + hoistOrAppendNode(result); + } + } + return statements; + function hoistOrAppendNode(node) { + Debug.assertNode(node, isStatement); + append(statements, hoist(node)); + } + function hoist(node) { + if (!topLevelStatements) + return node; + switch (node.kind) { + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 278 /* ExportDeclaration */: + case 262 /* FunctionDeclaration */: + return hoistImportOrExportOrHoistedDeclaration(node, topLevelStatements); + case 277 /* ExportAssignment */: + return hoistExportAssignment(node); + case 263 /* ClassDeclaration */: + return hoistClassDeclaration(node); + case 243 /* VariableStatement */: + return hoistVariableStatement(node); + } + return node; + } + } + function hoistImportOrExportOrHoistedDeclaration(node, topLevelStatements) { + topLevelStatements.push(node); + return void 0; + } + function hoistExportAssignment(node) { + return node.isExportEquals ? hoistExportEquals(node) : hoistExportDefault(node); + } + function hoistExportDefault(node) { + if (defaultExportBinding) { + return node; + } + defaultExportBinding = factory2.createUniqueName("_default", 8 /* ReservedInNestedScopes */ | 32 /* FileLevel */ | 16 /* Optimistic */); + hoistBindingIdentifier( + defaultExportBinding, + /*isExport*/ + true, + "default", + node + ); + let expression = node.expression; + let innerExpression = skipOuterExpressions(expression); + if (isNamedEvaluation(innerExpression)) { + innerExpression = transformNamedEvaluation( + context, + innerExpression, + /*ignoreEmptyStringLiteral*/ + false, + "default" + ); + expression = factory2.restoreOuterExpressions(expression, innerExpression); + } + const assignment = factory2.createAssignment(defaultExportBinding, expression); + return factory2.createExpressionStatement(assignment); + } + function hoistExportEquals(node) { + if (exportEqualsBinding) { + return node; + } + exportEqualsBinding = factory2.createUniqueName("_default", 8 /* ReservedInNestedScopes */ | 32 /* FileLevel */ | 16 /* Optimistic */); + hoistVariableDeclaration(exportEqualsBinding); + const assignment = factory2.createAssignment(exportEqualsBinding, node.expression); + return factory2.createExpressionStatement(assignment); + } + function hoistClassDeclaration(node) { + if (!node.name && defaultExportBinding) { + return node; + } + const isExported = hasSyntacticModifier(node, 1 /* Export */); + const isDefault = hasSyntacticModifier(node, 1024 /* Default */); + let expression = factory2.converters.convertToClassExpression(node); + if (node.name) { + hoistBindingIdentifier( + factory2.getLocalName(node), + isExported && !isDefault, + /*exportAlias*/ + void 0, + node + ); + expression = factory2.createAssignment(factory2.getDeclarationName(node), expression); + if (isNamedEvaluation(expression)) { + expression = transformNamedEvaluation( + context, + expression, + /*ignoreEmptyStringLiteral*/ + false + ); + } + setOriginalNode(expression, node); + setSourceMapRange(expression, node); + setCommentRange(expression, node); + } + if (isDefault && !defaultExportBinding) { + defaultExportBinding = factory2.createUniqueName("_default", 8 /* ReservedInNestedScopes */ | 32 /* FileLevel */ | 16 /* Optimistic */); + hoistBindingIdentifier( + defaultExportBinding, + /*isExport*/ + true, + "default", + node + ); + expression = factory2.createAssignment(defaultExportBinding, expression); + if (isNamedEvaluation(expression)) { + expression = transformNamedEvaluation( + context, + expression, + /*ignoreEmptyStringLiteral*/ + false, + "default" + ); + } + setOriginalNode(expression, node); + } + return factory2.createExpressionStatement(expression); + } + function hoistVariableStatement(node) { + let expressions; + const isExported = hasSyntacticModifier(node, 1 /* Export */); + for (const variable of node.declarationList.declarations) { + hoistBindingElement(variable, isExported, variable); + if (variable.initializer) { + expressions = append(expressions, hoistInitializedVariable(variable)); + } + } + if (expressions) { + const statement = factory2.createExpressionStatement(factory2.inlineExpressions(expressions)); + setOriginalNode(statement, node); + setCommentRange(statement, node); + setSourceMapRange(statement, node); + return statement; + } + return void 0; + } + function hoistInitializedVariable(node) { + Debug.assertIsDefined(node.initializer); + let target; + if (isIdentifier(node.name)) { + target = factory2.cloneNode(node.name); + setEmitFlags(target, getEmitFlags(target) & ~(32768 /* LocalName */ | 16384 /* ExportName */ | 65536 /* InternalName */)); + } else { + target = factory2.converters.convertToAssignmentPattern(node.name); + } + const assignment = factory2.createAssignment(target, node.initializer); + setOriginalNode(assignment, node); + setCommentRange(assignment, node); + setSourceMapRange(assignment, node); + return assignment; + } + function hoistBindingElement(node, isExportedDeclaration, original) { + if (isBindingPattern(node.name)) { + for (const element of node.name.elements) { + if (!isOmittedExpression(element)) { + hoistBindingElement(element, isExportedDeclaration, original); + } + } + } else { + hoistBindingIdentifier( + node.name, + isExportedDeclaration, + /*exportAlias*/ + void 0, + original + ); + } + } + function hoistBindingIdentifier(node, isExport, exportAlias, original) { + const name = isGeneratedIdentifier(node) ? node : factory2.cloneNode(node); + if (isExport) { + if (exportAlias === void 0 && !isLocalName(name)) { + const varDecl = factory2.createVariableDeclaration(name); + if (original) { + setOriginalNode(varDecl, original); + } + exportVars.push(varDecl); + return; + } + const localName = exportAlias !== void 0 ? name : void 0; + const exportName = exportAlias !== void 0 ? exportAlias : name; + const specifier = factory2.createExportSpecifier( + /*isTypeOnly*/ + false, + localName, + exportName + ); + if (original) { + setOriginalNode(specifier, original); + } + exportBindings.set(name, specifier); + } + hoistVariableDeclaration(name); + } + function createEnvBinding() { + return factory2.createUniqueName("env"); + } + function createDownlevelUsingStatements(bodyStatements, envBinding, async) { + const statements = []; + const envObject = factory2.createObjectLiteralExpression([ + factory2.createPropertyAssignment("stack", factory2.createArrayLiteralExpression()), + factory2.createPropertyAssignment("error", factory2.createVoidZero()), + factory2.createPropertyAssignment("hasError", factory2.createFalse()) + ]); + const envVar = factory2.createVariableDeclaration( + envBinding, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + envObject + ); + const envVarList = factory2.createVariableDeclarationList([envVar], 2 /* Const */); + const envVarStatement = factory2.createVariableStatement( + /*modifiers*/ + void 0, + envVarList + ); + statements.push(envVarStatement); + const tryBlock = factory2.createBlock( + bodyStatements, + /*multiLine*/ + true + ); + const bodyCatchBinding = factory2.createUniqueName("e"); + const catchClause = factory2.createCatchClause( + bodyCatchBinding, + factory2.createBlock( + [ + factory2.createExpressionStatement( + factory2.createAssignment( + factory2.createPropertyAccessExpression(envBinding, "error"), + bodyCatchBinding + ) + ), + factory2.createExpressionStatement( + factory2.createAssignment( + factory2.createPropertyAccessExpression(envBinding, "hasError"), + factory2.createTrue() + ) + ) + ], + /*multiLine*/ + true + ) + ); + let finallyBlock; + if (async) { + const result = factory2.createUniqueName("result"); + finallyBlock = factory2.createBlock( + [ + factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList([ + factory2.createVariableDeclaration( + result, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + emitHelpers().createDisposeResourcesHelper(envBinding) + ) + ], 2 /* Const */) + ), + factory2.createIfStatement(result, factory2.createExpressionStatement(factory2.createAwaitExpression(result))) + ], + /*multiLine*/ + true + ); + } else { + finallyBlock = factory2.createBlock( + [ + factory2.createExpressionStatement( + emitHelpers().createDisposeResourcesHelper(envBinding) + ) + ], + /*multiLine*/ + true + ); + } + const tryStatement = factory2.createTryStatement(tryBlock, catchClause, finallyBlock); + statements.push(tryStatement); + return statements; + } +} +function countPrologueStatements(statements) { + for (let i = 0; i < statements.length; i++) { + if (!isPrologueDirective(statements[i]) && !isCustomPrologue(statements[i])) { + return i; + } + } + return 0; +} +function isUsingVariableDeclarationList(node) { + return isVariableDeclarationList(node) && getUsingKindOfVariableDeclarationList(node) !== 0 /* None */; +} +function getUsingKindOfVariableDeclarationList(node) { + return (node.flags & 7 /* BlockScoped */) === 6 /* AwaitUsing */ ? 2 /* Async */ : (node.flags & 7 /* BlockScoped */) === 4 /* Using */ ? 1 /* Sync */ : 0 /* None */; +} +function getUsingKindOfVariableStatement(node) { + return getUsingKindOfVariableDeclarationList(node.declarationList); +} +function getUsingKind(statement) { + return isVariableStatement(statement) ? getUsingKindOfVariableStatement(statement) : 0 /* None */; +} +function getUsingKindOfStatements(statements) { + let result = 0 /* None */; + for (const statement of statements) { + const usingKind = getUsingKind(statement); + if (usingKind === 2 /* Async */) + return 2 /* Async */; + if (usingKind > result) + result = usingKind; + } + return result; +} +function getUsingKindOfCaseOrDefaultClauses(clauses) { + let result = 0 /* None */; + for (const clause of clauses) { + const usingKind = getUsingKindOfStatements(clause.statements); + if (usingKind === 2 /* Async */) + return 2 /* Async */; + if (usingKind > result) + result = usingKind; + } + return result; } // src/compiler/transformers/jsx.ts @@ -95045,25 +96661,25 @@ function transformJsx(context) { } function visitorWorker(node) { switch (node.kind) { - case 283 /* JsxElement */: + case 284 /* JsxElement */: return visitJsxElement( node, /*isChild*/ false ); - case 284 /* JsxSelfClosingElement */: + case 285 /* JsxSelfClosingElement */: return visitJsxSelfClosingElement( node, /*isChild*/ false ); - case 287 /* JsxFragment */: + case 288 /* JsxFragment */: return visitJsxFragment( node, /*isChild*/ false ); - case 293 /* JsxExpression */: + case 294 /* JsxExpression */: return visitJsxExpression(node); default: return visitEachChild(node, visitor, context); @@ -95073,21 +96689,21 @@ function transformJsx(context) { switch (node.kind) { case 12 /* JsxText */: return visitJsxText(node); - case 293 /* JsxExpression */: + case 294 /* JsxExpression */: return visitJsxExpression(node); - case 283 /* JsxElement */: + case 284 /* JsxElement */: return visitJsxElement( node, /*isChild*/ true ); - case 284 /* JsxSelfClosingElement */: + case 285 /* JsxSelfClosingElement */: return visitJsxSelfClosingElement( node, /*isChild*/ true ); - case 287 /* JsxFragment */: + case 288 /* JsxFragment */: return visitJsxFragment( node, /*isChild*/ @@ -95295,10 +96911,10 @@ function transformJsx(context) { for (const prop of attr.expression.properties) { if (isSpreadAssignment(prop)) { finishObjectLiteralIfNeeded(); - expressions.push(prop.expression); + expressions.push(Debug.checkDefined(visitNode(prop.expression, visitor, isExpression))); continue; } - properties.push(prop); + properties.push(Debug.checkDefined(visitNode(prop, visitor))); } continue; } @@ -95337,7 +96953,7 @@ function transformJsx(context) { const literal = factory2.createStringLiteral(tryDecodeEntities(node.text) || node.text, singleQuote); return setTextRange(literal, node); } - if (node.kind === 293 /* JsxExpression */) { + if (node.kind === 294 /* JsxExpression */) { if (node.expression === void 0) { return factory2.createTrue(); } @@ -95411,7 +97027,7 @@ function transformJsx(context) { return decoded === text ? void 0 : decoded; } function getTagName(node) { - if (node.kind === 283 /* JsxElement */) { + if (node.kind === 284 /* JsxElement */) { return getTagName(node.openingElement); } else { const tagName = node.tagName; @@ -95711,7 +97327,7 @@ function transformES2016(context) { return node; } switch (node.kind) { - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return visitBinaryExpression(node); default: return visitEachChild(node, visitor, context); @@ -95839,7 +97455,7 @@ function transformES2015(context) { hierarchyFacts = (hierarchyFacts & ~excludeFacts | includeFacts) & -32768 /* SubtreeFactsMask */ | ancestorFacts; } function isReturnVoidStatementInConstructorWithCapturedSuper(node) { - return (hierarchyFacts & 8192 /* ConstructorWithCapturedSuper */) !== 0 && node.kind === 252 /* ReturnStatement */ && !node.expression; + return (hierarchyFacts & 8192 /* ConstructorWithCapturedSuper */) !== 0 && node.kind === 253 /* ReturnStatement */ && !node.expression; } function isOrMayContainReturnCompletion(node) { return node.transformFlags & 4194304 /* ContainsHoistedDeclarationOrCompletion */ && (isReturnStatement(node) || isIfStatement(node) || isWithStatement(node) || isSwitchStatement(node) || isCaseBlock(node) || isCaseClause(node) || isDefaultClause(node) || isTryStatement(node) || isCatchClause(node) || isLabeledStatement(node) || isIterationStatement( @@ -95906,85 +97522,85 @@ function transformES2015(context) { switch (node.kind) { case 126 /* StaticKeyword */: return void 0; - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return visitClassDeclaration(node); - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return visitClassExpression(node); - case 168 /* Parameter */: + case 169 /* Parameter */: return visitParameter(node); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return visitFunctionDeclaration(node); - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return visitArrowFunction(node); - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: return visitFunctionExpression(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return visitVariableDeclaration(node); case 80 /* Identifier */: return visitIdentifier(node); - case 260 /* VariableDeclarationList */: + case 261 /* VariableDeclarationList */: return visitVariableDeclarationList(node); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return visitSwitchStatement(node); - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: return visitCaseBlock(node); - case 240 /* Block */: + case 241 /* Block */: return visitBlock( node, /*isFunctionBody*/ false ); - case 251 /* BreakStatement */: - case 250 /* ContinueStatement */: + case 252 /* BreakStatement */: + case 251 /* ContinueStatement */: return visitBreakOrContinueStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return visitLabeledStatement(node); - case 245 /* DoStatement */: - case 246 /* WhileStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: return visitDoOrWhileStatement( node, /*outermostLabeledStatement*/ void 0 ); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement( node, /*outermostLabeledStatement*/ void 0 ); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return visitForInStatement( node, /*outermostLabeledStatement*/ void 0 ); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return visitForOfStatement( node, /*outermostLabeledStatement*/ void 0 ); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return visitExpressionStatement(node); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return visitObjectLiteralExpression(node); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return visitCatchClause(node); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return visitShorthandPropertyAssignment(node); - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: return visitComputedPropertyName(node); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return visitArrayLiteralExpression(node); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return visitCallExpression(node); - case 213 /* NewExpression */: + case 214 /* NewExpression */: return visitNewExpression(node); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression(node, expressionResultIsUnused2); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return visitBinaryExpression(node, expressionResultIsUnused2); - case 360 /* CommaListExpression */: + case 361 /* CommaListExpression */: return visitCommaListExpression(node, expressionResultIsUnused2); case 15 /* NoSubstitutionTemplateLiteral */: case 16 /* TemplateHead */: @@ -95995,13 +97611,13 @@ function transformES2015(context) { return visitStringLiteral(node); case 9 /* NumericLiteral */: return visitNumericLiteral(node); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return visitTaggedTemplateExpression(node); - case 227 /* TemplateExpression */: + case 228 /* TemplateExpression */: return visitTemplateExpression(node); - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: return visitYieldExpression(node); - case 229 /* SpreadElement */: + case 230 /* SpreadElement */: return visitSpreadElement(node); case 108 /* SuperKeyword */: return visitSuperKeyword( @@ -96010,18 +97626,18 @@ function transformES2015(context) { ); case 110 /* ThisKeyword */: return visitThisKeyword(node); - case 235 /* MetaProperty */: + case 236 /* MetaProperty */: return visitMetaProperty(node); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return visitMethodDeclaration(node); - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return visitAccessorDeclaration(node); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return visitVariableStatement(node); - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: return visitReturnStatement(node); - case 221 /* VoidExpression */: + case 222 /* VoidExpression */: return visitVoidExpression(node); default: return visitEachChild(node, visitor, context); @@ -96119,7 +97735,7 @@ function transformES2015(context) { return convertedLoopState.argumentsName || (convertedLoopState.argumentsName = factory2.createUniqueName("arguments")); } } - if (node.flags & 128 /* IdentifierHasExtendedUnicodeEscape */) { + if (node.flags & 256 /* IdentifierHasExtendedUnicodeEscape */) { return setOriginalNode(setTextRange( factory2.createIdentifier(unescapeLeadingUnderscores(node.escapedText)), node @@ -96129,13 +97745,13 @@ function transformES2015(context) { } function visitBreakOrContinueStatement(node) { if (convertedLoopState) { - const jump = node.kind === 251 /* BreakStatement */ ? 2 /* Break */ : 4 /* Continue */; + const jump = node.kind === 252 /* BreakStatement */ ? 2 /* Break */ : 4 /* Continue */; const canUseBreakOrContinue = node.label && convertedLoopState.labels && convertedLoopState.labels.get(idText(node.label)) || !node.label && convertedLoopState.allowedNonLabeledJumps & jump; if (!canUseBreakOrContinue) { let labelMarker; const label = node.label; if (!label) { - if (node.kind === 251 /* BreakStatement */) { + if (node.kind === 252 /* BreakStatement */) { convertedLoopState.nonLocalJumps |= 2 /* Break */; labelMarker = "break"; } else { @@ -96143,7 +97759,7 @@ function transformES2015(context) { labelMarker = "continue"; } } else { - if (node.kind === 251 /* BreakStatement */) { + if (node.kind === 252 /* BreakStatement */) { labelMarker = `break-${label.escapedText}`; setLabeledJump( convertedLoopState, @@ -96349,6 +97965,104 @@ function transformES2015(context) { setEmitFlags(block, 3072 /* NoComments */); return block; } + function transformConstructorBodyWorker(prologueOut, statementsOut, statementsIn, statementOffset, superPath, superPathDepth, constructor, isDerivedClass, hasSynthesizedSuper, isFirstStatement) { + let mayReplaceThis = false; + const superStatementIndex = superPathDepth < superPath.length ? superPath[superPathDepth] : -1; + const leadingStatementsEnd = superStatementIndex >= 0 ? superStatementIndex : statementsIn.length; + if (isFirstStatement && superStatementIndex >= 0) { + let firstMaterialIndex = statementOffset; + while (isFirstStatement && firstMaterialIndex < superStatementIndex) { + const statement = constructor.body.statements[firstMaterialIndex]; + if (!isUninitializedVariableStatement(statement) && !isUsingDeclarationStateVariableStatement(statement)) + break; + firstMaterialIndex++; + } + isFirstStatement = superStatementIndex === firstMaterialIndex; + } + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, statementOffset, leadingStatementsEnd - statementOffset)); + const superStatement = superStatementIndex >= 0 ? statementsIn[superStatementIndex] : void 0; + if (superStatement && isTryStatement(superStatement)) { + const tryBlockStatements = []; + mayReplaceThis = transformConstructorBodyWorker( + prologueOut, + tryBlockStatements, + superStatement.tryBlock.statements, + /*statementOffset*/ + 0, + superPath, + superPathDepth + 1, + constructor, + isDerivedClass, + hasSynthesizedSuper, + isFirstStatement + ); + const tryBlockStatementsArray = factory2.createNodeArray(tryBlockStatements); + setTextRange(tryBlockStatementsArray, superStatement.tryBlock.statements); + statementsOut.push(factory2.updateTryStatement( + superStatement, + factory2.updateBlock(superStatement.tryBlock, tryBlockStatements), + visitNode(superStatement.catchClause, visitor, isCatchClause), + visitNode(superStatement.finallyBlock, visitor, isBlock) + )); + } else { + const superCall = superStatement && getSuperCallFromStatement(superStatement); + let superCallExpression; + if (hasSynthesizedSuper) { + superCallExpression = createDefaultSuperCallOrThis(); + hierarchyFacts |= 8192 /* ConstructorWithCapturedSuper */; + } else if (superCall) { + superCallExpression = visitSuperCallInBody(superCall); + hierarchyFacts |= 8192 /* ConstructorWithCapturedSuper */; + } + if (isDerivedClass || superCallExpression) { + if (superCallExpression && superStatementIndex === statementsIn.length - 1 && !(constructor.body.transformFlags & 16384 /* ContainsLexicalThis */)) { + const superCall2 = cast(cast(superCallExpression, isBinaryExpression).left, isCallExpression); + const returnStatement = factory2.createReturnStatement(superCallExpression); + setCommentRange(returnStatement, getCommentRange(superCall2)); + setEmitFlags(superCall2, 3072 /* NoComments */); + statementsOut.push(returnStatement); + return false; + } else { + if (isFirstStatement) { + insertCaptureThisForNode(statementsOut, constructor, superCallExpression || createActualThis()); + } else { + insertCaptureThisForNode(prologueOut, constructor, createActualThis()); + if (superCallExpression) { + addSuperThisCaptureThisForNode(statementsOut, superCallExpression); + } + } + mayReplaceThis = true; + } + } else { + insertCaptureThisForNodeIfNeeded(prologueOut, constructor); + } + } + if (superStatementIndex >= 0) { + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex + 1)); + } + return mayReplaceThis; + } + function isUninitializedVariableStatement(node) { + return isVariableStatement(node) && every(node.declarationList.declarations, (decl) => isIdentifier(decl.name) && !decl.initializer); + } + function isUsingDeclarationStateVariableStatement(node) { + if (!isVariableStatement(node) || node.declarationList.declarations.length !== 1) + return false; + const varDecl = node.declarationList.declarations[0]; + if (!isIdentifier(varDecl.name) || !varDecl.initializer) + return false; + const initializer = varDecl.initializer; + if (!isObjectLiteralExpression(initializer) || initializer.properties.length !== 3) + return false; + const [stackProp, errorProp, hasErrorProp] = initializer.properties; + if (!isPropertyAssignment(stackProp) || !isIdentifier(stackProp.name) || idText(stackProp.name) !== "stack" || !isArrayLiteralExpression(stackProp.initializer)) + return false; + if (!isPropertyAssignment(errorProp) || !isIdentifier(errorProp.name) || idText(errorProp.name) !== "error" || !isVoidExpression(errorProp.initializer) || !isNumericLiteral(errorProp.initializer.expression)) + return false; + if (!isPropertyAssignment(hasErrorProp) || !isIdentifier(hasErrorProp.name) || idText(hasErrorProp.name) !== "hasError" || hasErrorProp.initializer.kind !== 97 /* FalseKeyword */) + return false; + return true; + } function transformConstructorBody(constructor, node, extendsClauseElement, hasSynthesizedSuper) { const isDerivedClass = !!extendsClauseElement && skipOuterExpressions(extendsClauseElement.expression).kind !== 106 /* NullKeyword */; if (!constructor) @@ -96356,82 +98070,43 @@ function transformES2015(context) { const prologue = []; const statements = []; resumeLexicalEnvironment(); - const existingPrologue = takeWhile(constructor.body.statements, isPrologueDirective); - const { superCall, superStatementIndex } = findSuperCallAndStatementIndex(constructor.body.statements, existingPrologue); - const postSuperStatementsStart = superStatementIndex === -1 ? existingPrologue.length : superStatementIndex + 1; - let statementOffset = postSuperStatementsStart; - if (!hasSynthesizedSuper) - statementOffset = factory2.copyStandardPrologue( - constructor.body.statements, - prologue, - statementOffset, - /*ensureUseStrict*/ - false - ); - if (!hasSynthesizedSuper) - statementOffset = factory2.copyCustomPrologue( - constructor.body.statements, - statements, - statementOffset, - visitor, - /*filter*/ - void 0 - ); - let superCallExpression; - if (hasSynthesizedSuper) { - superCallExpression = createDefaultSuperCallOrThis(); - } else if (superCall) { - superCallExpression = visitSuperCallInBody(superCall); - } - if (superCallExpression) { + const standardPrologueEnd = factory2.copyStandardPrologue( + constructor.body.statements, + prologue, + /*statementOffset*/ + 0 + ); + const superStatementIndices = findSuperStatementIndexPath(constructor.body.statements, standardPrologueEnd); + if (hasSynthesizedSuper || superStatementIndices.length > 0) { hierarchyFacts |= 8192 /* ConstructorWithCapturedSuper */; } - addDefaultValueAssignmentsIfNeeded2(prologue, constructor); - addRestParameterIfNeeded(prologue, constructor, hasSynthesizedSuper); - addRange(statements, visitNodes2( - constructor.body.statements, - visitor, - isStatement, - /*start*/ - statementOffset - )); - factory2.mergeLexicalEnvironment(prologue, endLexicalEnvironment()); - insertCaptureNewTargetIfNeeded( + const mayReplaceThis = transformConstructorBodyWorker( prologue, + statements, + constructor.body.statements, + standardPrologueEnd, + superStatementIndices, + /*superPathDepth*/ + 0, constructor, - /*copyOnWrite*/ - false + isDerivedClass, + hasSynthesizedSuper, + /*isFirstStatement*/ + true + // NOTE: this will be recalculated inside of transformConstructorBodyWorker ); - if (isDerivedClass || superCallExpression) { - if (superCallExpression && postSuperStatementsStart === constructor.body.statements.length && !(constructor.body.transformFlags & 16384 /* ContainsLexicalThis */)) { - const superCall2 = cast(cast(superCallExpression, isBinaryExpression).left, isCallExpression); - const returnStatement = factory2.createReturnStatement(superCallExpression); - setCommentRange(returnStatement, getCommentRange(superCall2)); - setEmitFlags(superCall2, 3072 /* NoComments */); - statements.push(returnStatement); - } else { - if (superStatementIndex <= existingPrologue.length) { - insertCaptureThisForNode(statements, constructor, superCallExpression || createActualThis()); - } else { - insertCaptureThisForNode(prologue, constructor, createActualThis()); - if (superCallExpression) { - insertSuperThisCaptureThisForNode(statements, superCallExpression); - } - } - if (!isSufficientlyCoveredByReturnStatements(constructor.body)) { - statements.push(factory2.createReturnStatement(factory2.createUniqueName("_this", 16 /* Optimistic */ | 32 /* FileLevel */))); - } - } - } else { - insertCaptureThisForNodeIfNeeded(prologue, constructor); + addDefaultValueAssignmentsIfNeeded2(prologue, constructor); + addRestParameterIfNeeded(prologue, constructor, hasSynthesizedSuper); + insertCaptureNewTargetIfNeeded(prologue, constructor); + factory2.mergeLexicalEnvironment(prologue, endLexicalEnvironment()); + if (mayReplaceThis && !isSufficientlyCoveredByReturnStatements(constructor.body)) { + statements.push(factory2.createReturnStatement(factory2.createUniqueName("_this", 16 /* Optimistic */ | 32 /* FileLevel */))); } const body = factory2.createBlock( setTextRange( factory2.createNodeArray( [ - ...existingPrologue, ...prologue, - ...superStatementIndex <= existingPrologue.length ? emptyArray : visitNodes2(constructor.body.statements, visitor, isStatement, existingPrologue.length, superStatementIndex - existingPrologue.length), ...statements ] ), @@ -96444,29 +98119,15 @@ function transformES2015(context) { setTextRange(body, constructor.body); return body; } - function findSuperCallAndStatementIndex(originalBodyStatements, existingPrologue) { - for (let i = existingPrologue.length; i < originalBodyStatements.length; i += 1) { - const superCall = getSuperCallFromStatement(originalBodyStatements[i]); - if (superCall) { - return { - superCall, - superStatementIndex: i - }; - } - } - return { - superStatementIndex: -1 - }; - } function isSufficientlyCoveredByReturnStatements(statement) { - if (statement.kind === 252 /* ReturnStatement */) { + if (statement.kind === 253 /* ReturnStatement */) { return true; - } else if (statement.kind === 244 /* IfStatement */) { + } else if (statement.kind === 245 /* IfStatement */) { const ifStatement = statement; if (ifStatement.elseStatement) { return isSufficientlyCoveredByReturnStatements(ifStatement.thenStatement) && isSufficientlyCoveredByReturnStatements(ifStatement.elseStatement); } - } else if (statement.kind === 240 /* Block */) { + } else if (statement.kind === 241 /* Block */) { const lastStatement = lastOrUndefined(statement.statements); if (lastStatement && isSufficientlyCoveredByReturnStatements(lastStatement)) { return true; @@ -96740,13 +98401,13 @@ function transformES2015(context) { return true; } function insertCaptureThisForNodeIfNeeded(statements, node) { - if (hierarchyFacts & 65536 /* CapturedLexicalThis */ && node.kind !== 218 /* ArrowFunction */) { + if (hierarchyFacts & 65536 /* CapturedLexicalThis */ && node.kind !== 219 /* ArrowFunction */) { insertCaptureThisForNode(statements, node, factory2.createThis()); return true; } return false; } - function insertSuperThisCaptureThisForNode(statements, superExpression) { + function addSuperThisCaptureThisForNode(statements, superExpression) { enableSubstitutionsForCapturedThis(); const assignSuperExpression = factory2.createExpressionStatement( factory2.createBinaryExpression( @@ -96755,7 +98416,7 @@ function transformES2015(context) { superExpression ) ); - insertStatementAfterCustomPrologue(statements, assignSuperExpression); + statements.push(assignSuperExpression); setCommentRange(assignSuperExpression, getOriginalNode(superExpression).parent); } function insertCaptureThisForNode(statements, node, initializer) { @@ -96778,25 +98439,25 @@ function transformES2015(context) { setSourceMapRange(captureThisStatement, node); insertStatementAfterCustomPrologue(statements, captureThisStatement); } - function insertCaptureNewTargetIfNeeded(statements, node, copyOnWrite) { + function insertCaptureNewTargetIfNeeded(statements, node) { if (hierarchyFacts & 32768 /* NewTarget */) { let newTarget; switch (node.kind) { - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return statements; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: newTarget = factory2.createVoidZero(); break; - case 175 /* Constructor */: + case 176 /* Constructor */: newTarget = factory2.createPropertyAccessExpression( setEmitFlags(factory2.createThis(), 8 /* NoSubstitution */), "constructor" ); break; - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: newTarget = factory2.createConditionalExpression( factory2.createLogicalAnd( setEmitFlags(factory2.createThis(), 8 /* NoSubstitution */), @@ -96835,9 +98496,6 @@ function transformES2015(context) { ]) ); setEmitFlags(captureNewTargetStatement, 3072 /* NoComments */ | 2097152 /* CustomPrologue */); - if (copyOnWrite) { - statements = statements.slice(); - } insertStatementAfterCustomPrologue(statements, captureNewTargetStatement); } return statements; @@ -96845,21 +98503,21 @@ function transformES2015(context) { function addClassMembers(statements, node) { for (const member of node.members) { switch (member.kind) { - case 239 /* SemicolonClassElement */: + case 240 /* SemicolonClassElement */: statements.push(transformSemicolonClassElementToStatement(member)); break; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: statements.push(transformClassMethodDeclarationToStatement(getClassMemberPrefix(node, member), member, node)); break; - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: const accessors = getAllAccessorDeclarations(node.members, member); if (member === accessors.firstAccessor) { statements.push(transformAccessorsToStatement(getClassMemberPrefix(node, member), accessors, node)); } break; - case 175 /* Constructor */: - case 174 /* ClassStaticBlockDeclaration */: + case 176 /* Constructor */: + case 175 /* ClassStaticBlockDeclaration */: break; default: Debug.failBadSyntaxKind(member, currentSourceFile && currentSourceFile.fileName); @@ -97066,7 +98724,7 @@ function transformES2015(context) { const ancestorFacts = container && isClassLike(container) && !isStatic(node) ? enterSubtree(32670 /* FunctionExcludes */, 65 /* FunctionIncludes */ | 8 /* NonStaticClassElement */) : enterSubtree(32670 /* FunctionExcludes */, 65 /* FunctionIncludes */); const parameters = visitParameterList(node.parameters, visitor, context); const body = transformFunctionBody(node); - if (hierarchyFacts & 32768 /* NewTarget */ && !name && (node.kind === 261 /* FunctionDeclaration */ || node.kind === 217 /* FunctionExpression */)) { + if (hierarchyFacts & 32768 /* NewTarget */ && !name && (node.kind === 262 /* FunctionDeclaration */ || node.kind === 218 /* FunctionExpression */)) { name = factory2.getGeneratedNameForNode(node); } exitSubtree(ancestorFacts, 98304 /* FunctionSubtreeExcludes */, 0 /* None */); @@ -97127,7 +98785,7 @@ function transformES2015(context) { multiLine = true; } } else { - Debug.assert(node.kind === 218 /* ArrowFunction */); + Debug.assert(node.kind === 219 /* ArrowFunction */); statementsLocation = moveRangeEnd(body, -1); const equalsGreaterThanToken = node.equalsGreaterThanToken; if (!nodeIsSynthesized(equalsGreaterThanToken) && !nodeIsSynthesized(body)) { @@ -97146,12 +98804,7 @@ function transformES2015(context) { closeBraceLocation = body; } factory2.mergeLexicalEnvironment(prologue, endLexicalEnvironment()); - insertCaptureNewTargetIfNeeded( - prologue, - node, - /*copyOnWrite*/ - false - ); + insertCaptureNewTargetIfNeeded(prologue, node); insertCaptureThisForNodeIfNeeded(prologue, node); if (some(prologue)) { multiLine = true; @@ -97229,7 +98882,7 @@ function transformES2015(context) { function visitVariableStatement(node) { const ancestorFacts = enterSubtree(0 /* None */, hasSyntacticModifier(node, 1 /* Export */) ? 32 /* ExportedVariableStatement */ : 0 /* None */); let updated; - if (convertedLoopState && (node.declarationList.flags & 3 /* BlockScoped */) === 0 && !isVariableStatementOfTypeScriptClassWrapper(node)) { + if (convertedLoopState && (node.declarationList.flags & 7 /* BlockScoped */) === 0 && !isVariableStatementOfTypeScriptClassWrapper(node)) { let assignments; for (const decl of node.declarationList.declarations) { hoistVariableDeclarationDeclaredInConvertedLoop(convertedLoopState, decl); @@ -97261,8 +98914,8 @@ function transformES2015(context) { return updated; } function visitVariableDeclarationList(node) { - if (node.flags & 3 /* BlockScoped */ || node.transformFlags & 524288 /* ContainsBindingPattern */) { - if (node.flags & 3 /* BlockScoped */) { + if (node.flags & 7 /* BlockScoped */ || node.transformFlags & 524288 /* ContainsBindingPattern */) { + if (node.flags & 7 /* BlockScoped */) { enableSubstitutionsForBlockScopedBindings(); } const declarations = visitNodes2(node.declarations, node.flags & 1 /* Let */ ? visitVariableDeclarationInLetDeclarationList : visitVariableDeclaration, isVariableDeclaration); @@ -97353,14 +99006,14 @@ function transformES2015(context) { } function visitIterationStatement(node, outermostLabeledStatement) { switch (node.kind) { - case 245 /* DoStatement */: - case 246 /* WhileStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: return visitDoOrWhileStatement(node, outermostLabeledStatement); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement(node, outermostLabeledStatement); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return visitForInStatement(node, outermostLabeledStatement); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return visitForOfStatement(node, outermostLabeledStatement); } } @@ -97416,7 +99069,7 @@ function transformES2015(context) { const statements = []; const initializer = node.initializer; if (isVariableDeclarationList(initializer)) { - if (node.initializer.flags & 3 /* BlockScoped */) { + if (node.initializer.flags & 7 /* BlockScoped */) { enableSubstitutionsForBlockScopedBindings(); } const firstOriginalDeclaration = firstOrUndefined(initializer.declarations); @@ -97710,7 +99363,7 @@ function transformES2015(context) { let numInitialProperties = -1, hasComputed = false; for (let i = 0; i < properties.length; i++) { const property = properties[i]; - if (property.transformFlags & 1048576 /* ContainsYield */ && hierarchyFacts & 4 /* AsyncFunctionBody */ || (hasComputed = Debug.checkDefined(property.name).kind === 166 /* ComputedPropertyName */)) { + if (property.transformFlags & 1048576 /* ContainsYield */ && hierarchyFacts & 4 /* AsyncFunctionBody */ || (hasComputed = Debug.checkDefined(property.name).kind === 167 /* ComputedPropertyName */)) { numInitialProperties = i; break; } @@ -97832,15 +99485,15 @@ function transformES2015(context) { } function convertIterationStatementCore(node, initializerFunction, convertedLoopBody) { switch (node.kind) { - case 247 /* ForStatement */: + case 248 /* ForStatement */: return convertForStatement(node, initializerFunction, convertedLoopBody); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return convertForInStatement(node, convertedLoopBody); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return convertForOfStatement(node, convertedLoopBody); - case 245 /* DoStatement */: + case 246 /* DoStatement */: return convertDoStatement(node, convertedLoopBody); - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: return convertWhileStatement(node, convertedLoopBody); default: return Debug.failBadSyntaxKind(node, "IterationStatement expected"); @@ -97892,18 +99545,18 @@ function transformES2015(context) { function createConvertedLoopState(node) { let loopInitializer; switch (node.kind) { - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: const initializer = node.initializer; - if (initializer && initializer.kind === 260 /* VariableDeclarationList */) { + if (initializer && initializer.kind === 261 /* VariableDeclarationList */) { loopInitializer = initializer; } break; } const loopParameters = []; const loopOutParameters = []; - if (loopInitializer && getCombinedNodeFlags(loopInitializer) & 3 /* BlockScoped */) { + if (loopInitializer && getCombinedNodeFlags(loopInitializer) & 7 /* BlockScoped */) { const hasCapturedBindingsInForHead = shouldConvertInitializerOfForStatement(node) || shouldConvertConditionOfForStatement(node) || shouldConvertIncrementorOfForStatement(node); for (const decl of loopInitializer.declarations) { processLoopVariableDeclaration(node, decl, loopParameters, loopOutParameters, hasCapturedBindingsInForHead); @@ -98311,10 +99964,10 @@ function transformES2015(context) { name )); const checkFlags = resolver.getNodeCheckFlags(decl); - if (checkFlags & 262144 /* NeedsLoopOutParameter */ || hasCapturedBindingsInForHead) { + if (checkFlags & 65536 /* NeedsLoopOutParameter */ || hasCapturedBindingsInForHead) { const outParamName = factory2.createUniqueName("out_" + idText(name)); let flags = 0 /* None */; - if (checkFlags & 262144 /* NeedsLoopOutParameter */) { + if (checkFlags & 65536 /* NeedsLoopOutParameter */) { flags |= 1 /* Body */; } if (isForStatement(container)) { @@ -98335,20 +99988,20 @@ function transformES2015(context) { for (let i = start; i < numProperties; i++) { const property = properties[i]; switch (property.kind) { - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: const accessors = getAllAccessorDeclarations(node.properties, property); if (property === accessors.firstAccessor) { expressions.push(transformAccessorsToExpression(receiver, accessors, node, !!node.multiLine)); } break; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: expressions.push(transformObjectLiteralMethodDeclarationToExpression(property, receiver, node, node.multiLine)); break; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: expressions.push(transformPropertyAssignmentToExpression(property, receiver, node.multiLine)); break; - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: expressions.push(transformShorthandPropertyAssignmentToExpression(property, receiver, node.multiLine)); break; default: @@ -98474,7 +100127,7 @@ function transformES2015(context) { let updated; const parameters = visitParameterList(node.parameters, visitor, context); const body = transformFunctionBody(node); - if (node.kind === 176 /* GetAccessor */) { + if (node.kind === 177 /* GetAccessor */) { updated = factory2.updateGetAccessorDeclaration(node, node.modifiers, node.name, parameters, node.type, body); } else { updated = factory2.updateSetAccessorDeclaration(node, node.modifiers, node.name, parameters, body); @@ -98838,13 +100491,13 @@ function transformES2015(context) { if ((enabledSubstitutions & 1 /* CapturedThis */) === 0) { enabledSubstitutions |= 1 /* CapturedThis */; context.enableSubstitution(110 /* ThisKeyword */); - context.enableEmitNotification(175 /* Constructor */); - context.enableEmitNotification(173 /* MethodDeclaration */); - context.enableEmitNotification(176 /* GetAccessor */); - context.enableEmitNotification(177 /* SetAccessor */); - context.enableEmitNotification(218 /* ArrowFunction */); - context.enableEmitNotification(217 /* FunctionExpression */); - context.enableEmitNotification(261 /* FunctionDeclaration */); + context.enableEmitNotification(176 /* Constructor */); + context.enableEmitNotification(174 /* MethodDeclaration */); + context.enableEmitNotification(177 /* GetAccessor */); + context.enableEmitNotification(178 /* SetAccessor */); + context.enableEmitNotification(219 /* ArrowFunction */); + context.enableEmitNotification(218 /* FunctionExpression */); + context.enableEmitNotification(262 /* FunctionDeclaration */); } } function onSubstituteNode(hint, node) { @@ -98868,10 +100521,10 @@ function transformES2015(context) { } function isNameOfDeclarationWithCollidingName(node) { switch (node.parent.kind) { - case 207 /* BindingElement */: - case 262 /* ClassDeclaration */: - case 265 /* EnumDeclaration */: - case 259 /* VariableDeclaration */: + case 208 /* BindingElement */: + case 263 /* ClassDeclaration */: + case 266 /* EnumDeclaration */: + case 260 /* VariableDeclaration */: return node.parent.name === node && resolver.isDeclarationWithCollidingName(node.parent); } return false; @@ -98928,11 +100581,11 @@ function transformES2015(context) { return false; } const statement = firstOrUndefined(constructor.body.statements); - if (!statement || !nodeIsSynthesized(statement) || statement.kind !== 243 /* ExpressionStatement */) { + if (!statement || !nodeIsSynthesized(statement) || statement.kind !== 244 /* ExpressionStatement */) { return false; } const statementExpression = statement.expression; - if (!nodeIsSynthesized(statementExpression) || statementExpression.kind !== 212 /* CallExpression */) { + if (!nodeIsSynthesized(statementExpression) || statementExpression.kind !== 213 /* CallExpression */) { return false; } const callTarget = statementExpression.expression; @@ -98940,7 +100593,7 @@ function transformES2015(context) { return false; } const callArgument = singleOrUndefined(statementExpression.arguments); - if (!callArgument || !nodeIsSynthesized(callArgument) || callArgument.kind !== 229 /* SpreadElement */) { + if (!callArgument || !nodeIsSynthesized(callArgument) || callArgument.kind !== 230 /* SpreadElement */) { return false; } const expression = callArgument.expression; @@ -98957,24 +100610,24 @@ function transformES5(context) { if (compilerOptions.jsx === 1 /* Preserve */ || compilerOptions.jsx === 3 /* ReactNative */) { previousOnEmitNode = context.onEmitNode; context.onEmitNode = onEmitNode; - context.enableEmitNotification(285 /* JsxOpeningElement */); - context.enableEmitNotification(286 /* JsxClosingElement */); - context.enableEmitNotification(284 /* JsxSelfClosingElement */); + context.enableEmitNotification(286 /* JsxOpeningElement */); + context.enableEmitNotification(287 /* JsxClosingElement */); + context.enableEmitNotification(285 /* JsxSelfClosingElement */); noSubstitution = []; } const previousOnSubstituteNode = context.onSubstituteNode; context.onSubstituteNode = onSubstituteNode; - context.enableSubstitution(210 /* PropertyAccessExpression */); - context.enableSubstitution(302 /* PropertyAssignment */); + context.enableSubstitution(211 /* PropertyAccessExpression */); + context.enableSubstitution(303 /* PropertyAssignment */); return chainBundle(context, transformSourceFile); function transformSourceFile(node) { return node; } function onEmitNode(hint, node, emitCallback) { switch (node.kind) { - case 285 /* JsxOpeningElement */: - case 286 /* JsxClosingElement */: - case 284 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 287 /* JsxClosingElement */: + case 285 /* JsxSelfClosingElement */: const tagName = node.tagName; noSubstitution[getOriginalNodeId(tagName)] = true; break; @@ -99100,13 +100753,13 @@ function transformGenerators(context) { } function visitJavaScriptInStatementContainingYield(node) { switch (node.kind) { - case 245 /* DoStatement */: + case 246 /* DoStatement */: return visitDoStatement(node); - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: return visitWhileStatement(node); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return visitSwitchStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return visitLabeledStatement(node); default: return visitJavaScriptInGeneratorFunctionBody(node); @@ -99114,24 +100767,24 @@ function transformGenerators(context) { } function visitJavaScriptInGeneratorFunctionBody(node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return visitFunctionDeclaration(node); - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: return visitFunctionExpression(node); - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return visitAccessorDeclaration(node); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return visitVariableStatement(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement(node); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return visitForInStatement(node); - case 251 /* BreakStatement */: + case 252 /* BreakStatement */: return visitBreakStatement(node); - case 250 /* ContinueStatement */: + case 251 /* ContinueStatement */: return visitContinueStatement(node); - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: return visitReturnStatement(node); default: if (node.transformFlags & 1048576 /* ContainsYield */) { @@ -99145,23 +100798,23 @@ function transformGenerators(context) { } function visitJavaScriptContainingYield(node) { switch (node.kind) { - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return visitBinaryExpression(node); - case 360 /* CommaListExpression */: + case 361 /* CommaListExpression */: return visitCommaListExpression(node); - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: return visitConditionalExpression(node); - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: return visitYieldExpression(node); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return visitArrayLiteralExpression(node); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return visitObjectLiteralExpression(node); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return visitElementAccessExpression(node); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return visitCallExpression(node); - case 213 /* NewExpression */: + case 214 /* NewExpression */: return visitNewExpression(node); default: return visitEachChild(node, visitor, context); @@ -99169,9 +100822,9 @@ function transformGenerators(context) { } function visitGenerator(node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return visitFunctionDeclaration(node); - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: return visitFunctionExpression(node); default: return Debug.failBadSyntaxKind(node); @@ -99356,14 +101009,14 @@ function transformGenerators(context) { if (containsYield(right)) { let target; switch (left.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: target = factory2.updatePropertyAccessExpression( left, cacheExpression(Debug.checkDefined(visitNode(left.expression, visitor, isLeftHandSideExpression))), left.name ); break; - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: target = factory2.updateElementAccessExpression( left, cacheExpression(Debug.checkDefined(visitNode(left.expression, visitor, isLeftHandSideExpression))), @@ -99696,35 +101349,35 @@ function transformGenerators(context) { } function transformAndEmitStatementWorker(node) { switch (node.kind) { - case 240 /* Block */: + case 241 /* Block */: return transformAndEmitBlock(node); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return transformAndEmitExpressionStatement(node); - case 244 /* IfStatement */: + case 245 /* IfStatement */: return transformAndEmitIfStatement(node); - case 245 /* DoStatement */: + case 246 /* DoStatement */: return transformAndEmitDoStatement(node); - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: return transformAndEmitWhileStatement(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return transformAndEmitForStatement(node); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return transformAndEmitForInStatement(node); - case 250 /* ContinueStatement */: + case 251 /* ContinueStatement */: return transformAndEmitContinueStatement(node); - case 251 /* BreakStatement */: + case 252 /* BreakStatement */: return transformAndEmitBreakStatement(node); - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: return transformAndEmitReturnStatement(node); - case 253 /* WithStatement */: + case 254 /* WithStatement */: return transformAndEmitWithStatement(node); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return transformAndEmitSwitchStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return transformAndEmitLabeledStatement(node); - case 256 /* ThrowStatement */: + case 257 /* ThrowStatement */: return transformAndEmitThrowStatement(node); - case 257 /* TryStatement */: + case 258 /* TryStatement */: return transformAndEmitTryStatement(node); default: return emitStatement(visitNode(node, visitor, isStatement)); @@ -100076,7 +101729,7 @@ function transformGenerators(context) { for (let i = 0; i < numClauses; i++) { const clause = caseBlock.clauses[i]; clauseLabels.push(defineLabel()); - if (clause.kind === 296 /* DefaultClause */ && defaultClauseIndex === -1) { + if (clause.kind === 297 /* DefaultClause */ && defaultClauseIndex === -1) { defaultClauseIndex = i; } } @@ -100086,7 +101739,7 @@ function transformGenerators(context) { let defaultClausesSkipped = 0; for (let i = clausesWritten; i < numClauses; i++) { const clause = caseBlock.clauses[i]; - if (clause.kind === 295 /* CaseClause */) { + if (clause.kind === 296 /* CaseClause */) { if (containsYield(clause.expression) && pendingClauses.length > 0) { break; } @@ -101053,12 +102706,12 @@ function transformModule(context) { const previousOnEmitNode = context.onEmitNode; context.onSubstituteNode = onSubstituteNode; context.onEmitNode = onEmitNode; - context.enableSubstitution(212 /* CallExpression */); - context.enableSubstitution(214 /* TaggedTemplateExpression */); + context.enableSubstitution(213 /* CallExpression */); + context.enableSubstitution(215 /* TaggedTemplateExpression */); context.enableSubstitution(80 /* Identifier */); - context.enableSubstitution(225 /* BinaryExpression */); - context.enableSubstitution(303 /* ShorthandPropertyAssignment */); - context.enableEmitNotification(311 /* SourceFile */); + context.enableSubstitution(226 /* BinaryExpression */); + context.enableSubstitution(304 /* ShorthandPropertyAssignment */); + context.enableEmitNotification(312 /* SourceFile */); const moduleInfoMap = []; let currentSourceFile; let currentModuleInfo; @@ -101070,7 +102723,7 @@ function transformModule(context) { return node; } currentSourceFile = node; - currentModuleInfo = collectExternalModuleInfo(context, node, resolver, compilerOptions); + currentModuleInfo = collectExternalModuleInfo(context, node); moduleInfoMap[getOriginalNodeId(node)] = currentModuleInfo; const transformModule2 = getTransformModuleDelegate(moduleKind); const updated = transformModule2(node); @@ -101470,63 +103123,59 @@ function transformModule(context) { } function topLevelVisitor(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: - return visitImportDeclaration(node); - case 270 /* ImportEqualsDeclaration */: - return visitImportEqualsDeclaration(node); - case 277 /* ExportDeclaration */: - return visitExportDeclaration(node); - case 276 /* ExportAssignment */: - return visitExportAssignment(node); - case 261 /* FunctionDeclaration */: - return visitFunctionDeclaration(node); - case 262 /* ClassDeclaration */: - return visitClassDeclaration(node); + case 272 /* ImportDeclaration */: + return visitTopLevelImportDeclaration(node); + case 271 /* ImportEqualsDeclaration */: + return visitTopLevelImportEqualsDeclaration(node); + case 278 /* ExportDeclaration */: + return visitTopLevelExportDeclaration(node); + case 277 /* ExportAssignment */: + return visitTopLevelExportAssignment(node); default: return topLevelNestedVisitor(node); } } function topLevelNestedVisitor(node) { switch (node.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return visitVariableStatement(node); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return visitFunctionDeclaration(node); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return visitClassDeclaration(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement( node, /*isTopLevel*/ true ); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return visitForInStatement(node); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return visitForOfStatement(node); - case 245 /* DoStatement */: + case 246 /* DoStatement */: return visitDoStatement(node); - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: return visitWhileStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return visitLabeledStatement(node); - case 253 /* WithStatement */: + case 254 /* WithStatement */: return visitWithStatement(node); - case 244 /* IfStatement */: + case 245 /* IfStatement */: return visitIfStatement(node); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return visitSwitchStatement(node); - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: return visitCaseBlock(node); - case 295 /* CaseClause */: + case 296 /* CaseClause */: return visitCaseClause(node); - case 296 /* DefaultClause */: + case 297 /* DefaultClause */: return visitDefaultClause(node); - case 257 /* TryStatement */: + case 258 /* TryStatement */: return visitTryStatement(node); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return visitCatchClause(node); - case 240 /* Block */: + case 241 /* Block */: return visitBlock(node); default: return visitor(node); @@ -101537,30 +103186,30 @@ function transformModule(context) { return node; } switch (node.kind) { - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement( node, /*isTopLevel*/ false ); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return visitExpressionStatement(node); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression(node, valueIsDiscarded); - case 359 /* PartiallyEmittedExpression */: + case 360 /* PartiallyEmittedExpression */: return visitPartiallyEmittedExpression(node, valueIsDiscarded); - case 212 /* CallExpression */: + case 213 /* CallExpression */: if (isImportCall(node) && currentSourceFile.impliedNodeFormat === void 0) { return visitImportCallExpression(node); } break; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: if (isDestructuringAssignment(node)) { return visitDestructuringAssignment(node, valueIsDiscarded); } break; - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return visitPreOrPostfixUnaryExpression(node, valueIsDiscarded); } return visitEachChild(node, visitor, context); @@ -101583,24 +103232,24 @@ function transformModule(context) { if (isObjectLiteralExpression(node)) { for (const elem of node.properties) { switch (elem.kind) { - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: if (destructuringNeedsFlattening(elem.initializer)) { return true; } break; - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: if (destructuringNeedsFlattening(elem.name)) { return true; } break; - case 304 /* SpreadAssignment */: + case 305 /* SpreadAssignment */: if (destructuringNeedsFlattening(elem.expression)) { return true; } break; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return false; default: Debug.assertNever(elem, "Unhandled object member kind"); @@ -101628,7 +103277,7 @@ function transformModule(context) { return visitEachChild(node, visitor, context); } function visitForStatement(node, isTopLevel) { - if (isTopLevel && node.initializer && isVariableDeclarationList(node.initializer) && !(node.initializer.flags & 3 /* BlockScoped */)) { + if (isTopLevel && node.initializer && isVariableDeclarationList(node.initializer) && !(node.initializer.flags & 7 /* BlockScoped */)) { const exportStatements = appendExportsOfVariableDeclarationList( /*statements*/ void 0, @@ -101669,7 +103318,7 @@ function transformModule(context) { ); } function visitForInStatement(node) { - if (isVariableDeclarationList(node.initializer) && !(node.initializer.flags & 3 /* BlockScoped */)) { + if (isVariableDeclarationList(node.initializer) && !(node.initializer.flags & 7 /* BlockScoped */)) { const exportStatements = appendExportsOfVariableDeclarationList( /*statements*/ void 0, @@ -101697,7 +103346,7 @@ function transformModule(context) { ); } function visitForOfStatement(node) { - if (isVariableDeclarationList(node.initializer) && !(node.initializer.flags & 3 /* BlockScoped */)) { + if (isVariableDeclarationList(node.initializer) && !(node.initializer.flags & 7 /* BlockScoped */)) { const exportStatements = appendExportsOfVariableDeclarationList( /*statements*/ void 0, @@ -102077,7 +103726,7 @@ function transformModule(context) { } return innerExpr; } - function visitImportDeclaration(node) { + function visitTopLevelImportDeclaration(node) { let statements; const namespaceDeclaration = getNamespaceDeclarationNode(node); if (moduleKind !== 2 /* AMD */) { @@ -102186,7 +103835,7 @@ function transformModule(context) { args ); } - function visitImportEqualsDeclaration(node) { + function visitTopLevelImportEqualsDeclaration(node) { Debug.assert(isExternalModuleImportEqualsDeclaration(node), "import= for internal module references should be handled in an earlier transformer."); let statements; if (moduleKind !== 2 /* AMD */) { @@ -102254,7 +103903,7 @@ function transformModule(context) { statements = appendExportsOfImportEqualsDeclaration(statements, node); return singleOrMany(statements); } - function visitExportDeclaration(node) { + function visitTopLevelExportDeclaration(node) { if (!node.moduleSpecifier) { return void 0; } @@ -102356,7 +104005,7 @@ function transformModule(context) { ); } } - function visitExportAssignment(node) { + function visitTopLevelExportAssignment(node) { if (node.isExportEquals) { return void 0; } @@ -102560,19 +104209,21 @@ function transformModule(context) { if (!importClause) { return statements; } + const seen = new IdentifierNameMap(); if (importClause.name) { - statements = appendExportsOfDeclaration(statements, importClause); + statements = appendExportsOfDeclaration(statements, seen, importClause); } const namedBindings = importClause.namedBindings; if (namedBindings) { switch (namedBindings.kind) { - case 273 /* NamespaceImport */: - statements = appendExportsOfDeclaration(statements, namedBindings); + case 274 /* NamespaceImport */: + statements = appendExportsOfDeclaration(statements, seen, namedBindings); break; - case 274 /* NamedImports */: + case 275 /* NamedImports */: for (const importBinding of namedBindings.elements) { statements = appendExportsOfDeclaration( statements, + seen, importBinding, /*liveBinding*/ true @@ -102587,7 +104238,7 @@ function transformModule(context) { if (currentModuleInfo.exportEquals) { return statements; } - return appendExportsOfDeclaration(statements, decl); + return appendExportsOfDeclaration(statements, new IdentifierNameMap(), decl); } function appendExportsOfVariableStatement(statements, node) { return appendExportsOfVariableDeclarationList( @@ -102617,7 +104268,7 @@ function transformModule(context) { } } } else if (!isGeneratedIdentifier(decl.name) && (!isVariableDeclaration(decl) || decl.initializer || isForInOrOfInitializer)) { - statements = appendExportsOfDeclaration(statements, decl); + statements = appendExportsOfDeclaration(statements, new IdentifierNameMap(), decl); } return statements; } @@ -102625,10 +104276,12 @@ function transformModule(context) { if (currentModuleInfo.exportEquals) { return statements; } + const seen = new IdentifierNameMap(); if (hasSyntacticModifier(decl, 1 /* Export */)) { const exportName = hasSyntacticModifier(decl, 1024 /* Default */) ? factory2.createIdentifier("default") : factory2.getDeclarationName(decl); statements = appendExportStatement( statements, + seen, exportName, factory2.getLocalName(decl), /*location*/ @@ -102636,17 +104289,18 @@ function transformModule(context) { ); } if (decl.name) { - statements = appendExportsOfDeclaration(statements, decl); + statements = appendExportsOfDeclaration(statements, seen, decl); } return statements; } - function appendExportsOfDeclaration(statements, decl, liveBinding) { + function appendExportsOfDeclaration(statements, seen, decl, liveBinding) { const name = factory2.getDeclarationName(decl); - const exportSpecifiers = currentModuleInfo.exportSpecifiers.get(idText(name)); + const exportSpecifiers = currentModuleInfo.exportSpecifiers.get(name); if (exportSpecifiers) { for (const exportSpecifier of exportSpecifiers) { statements = appendExportStatement( statements, + seen, exportSpecifier.name, name, /*location*/ @@ -102659,8 +104313,11 @@ function transformModule(context) { } return statements; } - function appendExportStatement(statements, exportName, expression, location, allowComments, liveBinding) { - statements = append(statements, createExportStatement(exportName, expression, location, allowComments, liveBinding)); + function appendExportStatement(statements, seen, exportName, expression, location, allowComments, liveBinding) { + if (!seen.has(exportName)) { + seen.set(exportName, true); + statements = append(statements, createExportStatement(exportName, expression, location, allowComments, liveBinding)); + } return statements; } function createUnderscoreUnderscoreESModule() { @@ -102755,7 +104412,7 @@ function transformModule(context) { return node; } function onEmitNode(hint, node, emitCallback) { - if (node.kind === 311 /* SourceFile */) { + if (node.kind === 312 /* SourceFile */) { currentSourceFile = node; currentModuleInfo = moduleInfoMap[getOriginalNodeId(currentSourceFile)]; previousOnEmitNode(hint, node, emitCallback); @@ -102793,11 +104450,11 @@ function transformModule(context) { switch (node.kind) { case 80 /* Identifier */: return substituteExpressionIdentifier(node); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return substituteCallExpression(node); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return substituteTaggedTemplateExpression(node); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return substituteBinaryExpression(node); } return node; @@ -102850,7 +104507,7 @@ function transformModule(context) { return node; } else if (!(isGeneratedIdentifier(node) && !(node.emitNode.autoGenerate.flags & 64 /* AllowNameSubstitution */)) && !isLocalName(node)) { const exportContainer = resolver.getReferencedExportContainer(node, isExportName(node)); - if (exportContainer && exportContainer.kind === 311 /* SourceFile */) { + if (exportContainer && exportContainer.kind === 312 /* SourceFile */) { return setTextRange( factory2.createPropertyAccessExpression( factory2.createIdentifier("exports"), @@ -102887,7 +104544,7 @@ function transformModule(context) { return node; } function substituteBinaryExpression(node) { - if (isAssignmentOperator(node.operatorToken.kind) && isIdentifier(node.left) && !isGeneratedIdentifier(node.left) && !isLocalName(node.left)) { + if (isAssignmentOperator(node.operatorToken.kind) && isIdentifier(node.left) && (!isGeneratedIdentifier(node.left) || isFileLevelReservedGeneratedIdentifier(node.left)) && !isLocalName(node.left)) { const exportedNames = getExports(node.left); if (exportedNames) { let expression = node; @@ -102926,6 +104583,15 @@ function transformModule(context) { return arrayFrom(bindingsSet); } } + } else if (isFileLevelReservedGeneratedIdentifier(name)) { + const exportSpecifiers = currentModuleInfo == null ? void 0 : currentModuleInfo.exportSpecifiers.get(name); + if (exportSpecifiers) { + const exportedNames = []; + for (const exportSpecifier of exportSpecifiers) { + exportedNames.push(exportSpecifier.name); + } + return exportedNames; + } } } } @@ -102952,10 +104618,10 @@ function transformSystemModule(context) { context.onSubstituteNode = onSubstituteNode; context.onEmitNode = onEmitNode; context.enableSubstitution(80 /* Identifier */); - context.enableSubstitution(303 /* ShorthandPropertyAssignment */); - context.enableSubstitution(225 /* BinaryExpression */); - context.enableSubstitution(235 /* MetaProperty */); - context.enableEmitNotification(311 /* SourceFile */); + context.enableSubstitution(304 /* ShorthandPropertyAssignment */); + context.enableSubstitution(226 /* BinaryExpression */); + context.enableSubstitution(236 /* MetaProperty */); + context.enableEmitNotification(312 /* SourceFile */); const moduleInfoMap = []; const exportFunctionsMap = []; const noSubstitutionMap = []; @@ -102975,7 +104641,7 @@ function transformSystemModule(context) { const id = getOriginalNodeId(node); currentSourceFile = node; enclosingBlockScopedContainer = node; - moduleInfo = moduleInfoMap[id] = collectExternalModuleInfo(context, node, resolver, compilerOptions); + moduleInfo = moduleInfoMap[id] = collectExternalModuleInfo(context, node); exportFunction = factory2.createUniqueName("exports"); exportFunctionsMap[id] = exportFunction; contextObject = contextObjectMap[id] = factory2.createUniqueName("context"); @@ -103142,7 +104808,7 @@ function transformSystemModule(context) { if (!moduleInfo.exportedNames && moduleInfo.exportSpecifiers.size === 0) { let hasExportDeclarationWithExportClause = false; for (const externalImport of moduleInfo.externalImports) { - if (externalImport.kind === 277 /* ExportDeclaration */ && externalImport.exportClause) { + if (externalImport.kind === 278 /* ExportDeclaration */ && externalImport.exportClause) { hasExportDeclarationWithExportClause = true; break; } @@ -103290,11 +104956,11 @@ function transformSystemModule(context) { for (const entry of group2.externalImports) { const importVariableName = getLocalNameForExternalImport(factory2, entry, currentSourceFile); switch (entry.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: if (!entry.importClause) { break; } - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: Debug.assert(importVariableName !== void 0); statements.push( factory2.createExpressionStatement( @@ -103317,7 +104983,7 @@ function transformSystemModule(context) { ); } break; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: Debug.assert(importVariableName !== void 0); if (entry.exportClause) { if (isNamedExports(entry.exportClause)) { @@ -103412,13 +105078,13 @@ function transformSystemModule(context) { } function topLevelVisitor(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return visitImportDeclaration(node); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return visitImportEqualsDeclaration(node); - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return visitExportDeclaration(node); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return visitExportAssignment(node); default: return topLevelNestedVisitor(node); @@ -103515,18 +105181,43 @@ function transformSystemModule(context) { if (!shouldHoistVariableDeclarationList(node.declarationList)) { return visitNode(node, visitor, isStatement); } - let expressions; - const isExportedDeclaration = hasSyntacticModifier(node, 1 /* Export */); - for (const variable of node.declarationList.declarations) { - if (variable.initializer) { - expressions = append(expressions, transformInitializedVariable(variable, isExportedDeclaration)); - } else { - hoistBindingElement(variable); - } - } let statements; - if (expressions) { - statements = append(statements, setTextRange(factory2.createExpressionStatement(factory2.inlineExpressions(expressions)), node)); + if (isVarUsing(node.declarationList) || isVarAwaitUsing(node.declarationList)) { + const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifierLike); + const declarations = []; + for (const variable of node.declarationList.declarations) { + declarations.push(factory2.updateVariableDeclaration( + variable, + factory2.getGeneratedNameForNode(variable.name), + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + transformInitializedVariable( + variable, + /*isExportedDeclaration*/ + false + ) + )); + } + const declarationList = factory2.updateVariableDeclarationList( + node.declarationList, + declarations + ); + statements = append(statements, factory2.updateVariableStatement(node, modifiers, declarationList)); + } else { + let expressions; + const isExportedDeclaration = hasSyntacticModifier(node, 1 /* Export */); + for (const variable of node.declarationList.declarations) { + if (variable.initializer) { + expressions = append(expressions, transformInitializedVariable(variable, isExportedDeclaration)); + } else { + hoistBindingElement(variable); + } + } + if (expressions) { + statements = append(statements, setTextRange(factory2.createExpressionStatement(factory2.inlineExpressions(expressions)), node)); + } } statements = appendExportsOfVariableStatement( statements, @@ -103548,7 +105239,7 @@ function transformSystemModule(context) { } } function shouldHoistVariableDeclarationList(node) { - return (getEmitFlags(node) & 4194304 /* NoHoisting */) === 0 && (enclosingBlockScopedContainer.kind === 311 /* SourceFile */ || (getOriginalNode(node).flags & 3 /* BlockScoped */) === 0); + return (getEmitFlags(node) & 4194304 /* NoHoisting */) === 0 && (enclosingBlockScopedContainer.kind === 312 /* SourceFile */ || (getOriginalNode(node).flags & 7 /* BlockScoped */) === 0); } function transformInitializedVariable(node, isExportedDeclaration) { const createAssignment = isExportedDeclaration ? createExportedVariableAssignment : createNonExportedVariableAssignment; @@ -103598,10 +105289,10 @@ function transformSystemModule(context) { const namedBindings = importClause.namedBindings; if (namedBindings) { switch (namedBindings.kind) { - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: statements = appendExportsOfDeclaration(statements, namedBindings); break; - case 274 /* NamedImports */: + case 275 /* NamedImports */: for (const importBinding of namedBindings.elements) { statements = appendExportsOfDeclaration(statements, importBinding); } @@ -103667,7 +105358,7 @@ function transformSystemModule(context) { return statements; } const name = factory2.getDeclarationName(decl); - const exportSpecifiers = moduleInfo.exportSpecifiers.get(idText(name)); + const exportSpecifiers = moduleInfo.exportSpecifiers.get(name); if (exportSpecifiers) { for (const exportSpecifier of exportSpecifiers) { if (exportSpecifier.name.escapedText !== excludeName) { @@ -103701,45 +105392,45 @@ function transformSystemModule(context) { } function topLevelNestedVisitor(node) { switch (node.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return visitVariableStatement(node); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return visitFunctionDeclaration(node); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return visitClassDeclaration(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement( node, /*isTopLevel*/ true ); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return visitForInStatement(node); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return visitForOfStatement(node); - case 245 /* DoStatement */: + case 246 /* DoStatement */: return visitDoStatement(node); - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: return visitWhileStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return visitLabeledStatement(node); - case 253 /* WithStatement */: + case 254 /* WithStatement */: return visitWithStatement(node); - case 244 /* IfStatement */: + case 245 /* IfStatement */: return visitIfStatement(node); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return visitSwitchStatement(node); - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: return visitCaseBlock(node); - case 295 /* CaseClause */: + case 296 /* CaseClause */: return visitCaseClause(node); - case 296 /* DefaultClause */: + case 297 /* DefaultClause */: return visitDefaultClause(node); - case 257 /* TryStatement */: + case 258 /* TryStatement */: return visitTryStatement(node); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return visitCatchClause(node); - case 240 /* Block */: + case 241 /* Block */: return visitBlock(node); default: return visitor(node); @@ -103893,30 +105584,30 @@ function transformSystemModule(context) { return node; } switch (node.kind) { - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement( node, /*isTopLevel*/ false ); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return visitExpressionStatement(node); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression(node, valueIsDiscarded); - case 359 /* PartiallyEmittedExpression */: + case 360 /* PartiallyEmittedExpression */: return visitPartiallyEmittedExpression(node, valueIsDiscarded); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: if (isDestructuringAssignment(node)) { return visitDestructuringAssignment(node, valueIsDiscarded); } break; - case 212 /* CallExpression */: + case 213 /* CallExpression */: if (isImportCall(node)) { return visitImportCallExpression(node); } break; - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return visitPrefixOrPostfixUnaryExpression(node, valueIsDiscarded); } return visitEachChild(node, visitor, context); @@ -103989,7 +105680,7 @@ function transformSystemModule(context) { return hasExportedReferenceInDestructuringTarget(node.initializer); } else if (isIdentifier(node)) { const container = resolver.getReferencedExportContainer(node); - return container !== void 0 && container.kind === 311 /* SourceFile */; + return container !== void 0 && container.kind === 312 /* SourceFile */; } else { return false; } @@ -104033,7 +105724,7 @@ function transformSystemModule(context) { return node; } function onEmitNode(hint, node, emitCallback) { - if (node.kind === 311 /* SourceFile */) { + if (node.kind === 312 /* SourceFile */) { const id = getOriginalNodeId(node); currentSourceFile = node; moduleInfo = moduleInfoMap[id]; @@ -104067,7 +105758,7 @@ function transformSystemModule(context) { } function substituteUnspecified(node) { switch (node.kind) { - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return substituteShorthandPropertyAssignment(node); } return node; @@ -104111,9 +105802,9 @@ function transformSystemModule(context) { switch (node.kind) { case 80 /* Identifier */: return substituteExpressionIdentifier(node); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return substituteBinaryExpression(node); - case 235 /* MetaProperty */: + case 236 /* MetaProperty */: return substituteMetaProperty(node); } return node; @@ -104154,7 +105845,7 @@ function transformSystemModule(context) { return node; } function substituteBinaryExpression(node) { - if (isAssignmentOperator(node.operatorToken.kind) && isIdentifier(node.left) && !isGeneratedIdentifier(node.left) && !isLocalName(node.left)) { + if (isAssignmentOperator(node.operatorToken.kind) && isIdentifier(node.left) && (!isGeneratedIdentifier(node.left) || isFileLevelReservedGeneratedIdentifier(node.left)) && !isLocalName(node.left)) { const exportedNames = getExports(node.left); if (exportedNames) { let expression = node; @@ -104181,10 +105872,19 @@ function transformSystemModule(context) { /*prefixLocals*/ false ); - if (exportContainer && exportContainer.kind === 311 /* SourceFile */) { + if (exportContainer && exportContainer.kind === 312 /* SourceFile */) { exportedNames = append(exportedNames, factory2.getDeclarationName(valueDeclaration)); } exportedNames = addRange(exportedNames, moduleInfo == null ? void 0 : moduleInfo.exportedBindings[getOriginalNodeId(valueDeclaration)]); + } else if (isGeneratedIdentifier(name) && isFileLevelReservedGeneratedIdentifier(name)) { + const exportSpecifiers = moduleInfo == null ? void 0 : moduleInfo.exportSpecifiers.get(name); + if (exportSpecifiers) { + const exportedNames2 = []; + for (const exportSpecifier of exportSpecifiers) { + exportedNames2.push(exportSpecifier.name); + } + return exportedNames2; + } } return exportedNames; } @@ -104231,7 +105931,7 @@ function transformECMAScriptModule(context) { const previousOnSubstituteNode = context.onSubstituteNode; context.onEmitNode = onEmitNode; context.onSubstituteNode = onSubstituteNode; - context.enableEmitNotification(311 /* SourceFile */); + context.enableEmitNotification(312 /* SourceFile */); context.enableSubstitution(80 /* Identifier */); let helperNameSubstitutions; let currentSourceFile; @@ -104279,11 +105979,11 @@ function transformECMAScriptModule(context) { } function visitor(node) { switch (node.kind) { - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return getEmitModuleKind(compilerOptions) >= 100 /* Node16 */ ? visitImportEqualsDeclaration(node) : void 0; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return visitExportAssignment(node); - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: const exportDecl = node; return visitExportDeclaration(exportDecl); } @@ -104488,8 +106188,8 @@ function transformNodeModule(context) { const cjsOnEmitNode = context.onEmitNode; context.onSubstituteNode = onSubstituteNode; context.onEmitNode = onEmitNode; - context.enableSubstitution(311 /* SourceFile */); - context.enableEmitNotification(311 /* SourceFile */); + context.enableSubstitution(312 /* SourceFile */); + context.enableEmitNotification(312 /* SourceFile */); let currentSourceFile; return transformSourceFileOrBundle; function onSubstituteNode(hint, node) { @@ -104532,7 +106232,7 @@ function transformNodeModule(context) { return result; } function transformSourceFileOrBundle(node) { - return node.kind === 311 /* SourceFile */ ? transformSourceFile(node) : transformBundle(node); + return node.kind === 312 /* SourceFile */ ? transformSourceFile(node) : transformBundle(node); } function transformBundle(node) { return context.factory.createBundle(map(node.sourceFiles, transformSourceFile), node.prepends); @@ -104562,7 +106262,7 @@ function createGetSymbolAccessibilityDiagnosticForNodeName(node) { function getAccessorNameVisibilityDiagnosticMessage(symbolAccessibilityResult) { if (isStatic(node)) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1; - } else if (node.parent.kind === 262 /* ClassDeclaration */) { + } else if (node.parent.kind === 263 /* ClassDeclaration */) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1; } else { return symbolAccessibilityResult.errorModuleName ? Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1; @@ -104579,7 +106279,7 @@ function createGetSymbolAccessibilityDiagnosticForNodeName(node) { function getMethodNameVisibilityDiagnosticMessage(symbolAccessibilityResult) { if (isStatic(node)) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1; - } else if (node.parent.kind === 262 /* ClassDeclaration */) { + } else if (node.parent.kind === 263 /* ClassDeclaration */) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1; } else { return symbolAccessibilityResult.errorModuleName ? Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1; @@ -104610,12 +106310,12 @@ function createGetSymbolAccessibilityDiagnosticForNode(node) { return Debug.assertNever(node, `Attempted to set a declaration diagnostic context for unhandled node kind: ${Debug.formatSyntaxKind(node.kind)}`); } function getVariableDeclarationTypeVisibilityDiagnosticMessage(symbolAccessibilityResult) { - if (node.kind === 259 /* VariableDeclaration */ || node.kind === 207 /* BindingElement */) { + if (node.kind === 260 /* VariableDeclaration */ || node.kind === 208 /* BindingElement */) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Exported_variable_0_has_or_is_using_private_name_1; - } else if (node.kind === 171 /* PropertyDeclaration */ || node.kind === 210 /* PropertyAccessExpression */ || node.kind === 211 /* ElementAccessExpression */ || node.kind === 225 /* BinaryExpression */ || node.kind === 170 /* PropertySignature */ || node.kind === 168 /* Parameter */ && hasSyntacticModifier(node.parent, 8 /* Private */)) { + } else if (node.kind === 172 /* PropertyDeclaration */ || node.kind === 211 /* PropertyAccessExpression */ || node.kind === 212 /* ElementAccessExpression */ || node.kind === 226 /* BinaryExpression */ || node.kind === 171 /* PropertySignature */ || node.kind === 169 /* Parameter */ && hasSyntacticModifier(node.parent, 8 /* Private */)) { if (isStatic(node)) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1; - } else if (node.parent.kind === 262 /* ClassDeclaration */ || node.kind === 168 /* Parameter */) { + } else if (node.parent.kind === 263 /* ClassDeclaration */ || node.kind === 169 /* Parameter */) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1; } else { return symbolAccessibilityResult.errorModuleName ? Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1; @@ -104632,7 +106332,7 @@ function createGetSymbolAccessibilityDiagnosticForNode(node) { } function getAccessorDeclarationTypeVisibilityError(symbolAccessibilityResult) { let diagnosticMessage; - if (node.kind === 177 /* SetAccessor */) { + if (node.kind === 178 /* SetAccessor */) { if (isStatic(node)) { diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1; } else { @@ -104654,26 +106354,26 @@ function createGetSymbolAccessibilityDiagnosticForNode(node) { function getReturnTypeVisibilityError(symbolAccessibilityResult) { let diagnosticMessage; switch (node.kind) { - case 179 /* ConstructSignature */: + case 180 /* ConstructSignature */: diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0; break; - case 178 /* CallSignature */: + case 179 /* CallSignature */: diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0; break; - case 180 /* IndexSignature */: + case 181 /* IndexSignature */: diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0; break; - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: if (isStatic(node)) { diagnosticMessage = symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0; - } else if (node.parent.kind === 262 /* ClassDeclaration */) { + } else if (node.parent.kind === 263 /* ClassDeclaration */) { diagnosticMessage = symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0; } else { diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0; } break; - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: diagnosticMessage = symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0; break; default: @@ -104694,29 +106394,29 @@ function createGetSymbolAccessibilityDiagnosticForNode(node) { } function getParameterDeclarationTypeVisibilityDiagnosticMessage(symbolAccessibilityResult) { switch (node.parent.kind) { - case 175 /* Constructor */: + case 176 /* Constructor */: return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1; - case 179 /* ConstructSignature */: - case 184 /* ConstructorType */: + case 180 /* ConstructSignature */: + case 185 /* ConstructorType */: return symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1; - case 178 /* CallSignature */: + case 179 /* CallSignature */: return symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1; - case 180 /* IndexSignature */: + case 181 /* IndexSignature */: return symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1; - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: if (isStatic(node.parent)) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1; - } else if (node.parent.parent.kind === 262 /* ClassDeclaration */) { + } else if (node.parent.parent.kind === 263 /* ClassDeclaration */) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1; } else { return symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1; } - case 261 /* FunctionDeclaration */: - case 183 /* FunctionType */: + case 262 /* FunctionDeclaration */: + case 184 /* FunctionType */: return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1; - case 177 /* SetAccessor */: - case 176 /* GetAccessor */: + case 178 /* SetAccessor */: + case 177 /* GetAccessor */: return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1; default: return Debug.fail(`Unknown parent for parameter: ${Debug.formatSyntaxKind(node.parent.kind)}`); @@ -104725,40 +106425,40 @@ function createGetSymbolAccessibilityDiagnosticForNode(node) { function getTypeParameterConstraintVisibilityError() { let diagnosticMessage; switch (node.parent.kind) { - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1; break; - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1; break; - case 199 /* MappedType */: + case 200 /* MappedType */: diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1; break; - case 184 /* ConstructorType */: - case 179 /* ConstructSignature */: + case 185 /* ConstructorType */: + case 180 /* ConstructSignature */: diagnosticMessage = Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1; break; - case 178 /* CallSignature */: + case 179 /* CallSignature */: diagnosticMessage = Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1; break; - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: if (isStatic(node.parent)) { diagnosticMessage = Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1; - } else if (node.parent.parent.kind === 262 /* ClassDeclaration */) { + } else if (node.parent.parent.kind === 263 /* ClassDeclaration */) { diagnosticMessage = Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1; } else { diagnosticMessage = Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1; } break; - case 183 /* FunctionType */: - case 261 /* FunctionDeclaration */: + case 184 /* FunctionType */: + case 262 /* FunctionDeclaration */: diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1; break; - case 194 /* InferType */: + case 195 /* InferType */: diagnosticMessage = Diagnostics.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1; break; - case 264 /* TypeAliasDeclaration */: + case 265 /* TypeAliasDeclaration */: diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1; break; default: @@ -104820,7 +106520,7 @@ function hasInternalAnnotation(range, currentSourceFile) { } function isInternalDeclaration(node, currentSourceFile) { const parseTreeNode = getParseTreeNode(node); - if (parseTreeNode && parseTreeNode.kind === 168 /* Parameter */) { + if (parseTreeNode && parseTreeNode.kind === 169 /* Parameter */) { const paramIdx = parseTreeNode.parent.parameters.indexOf(parseTreeNode); const previousSibling = paramIdx > 0 ? parseTreeNode.parent.parameters[paramIdx - 1] : void 0; const text = currentSourceFile.text; @@ -105052,10 +106752,10 @@ function transformDeclarations(context) { return result; } function transformRoot(node) { - if (node.kind === 311 /* SourceFile */ && node.isDeclarationFile) { + if (node.kind === 312 /* SourceFile */ && node.isDeclarationFile) { return node; } - if (node.kind === 312 /* Bundle */) { + if (node.kind === 313 /* Bundle */) { isBundledEmit = true; refs = /* @__PURE__ */ new Map(); libs2 = /* @__PURE__ */ new Map(); @@ -105122,7 +106822,7 @@ function transformDeclarations(context) { ); } ), mapDefined(node.prepends, (prepend) => { - if (prepend.kind === 314 /* InputFiles */) { + if (prepend.kind === 315 /* InputFiles */) { const sourceFile = createUnparsedSourceFile(prepend, "dts", stripInternal); hasNoDefaultLib = hasNoDefaultLib || !!sourceFile.hasNoDefaultLib; collectReferences(sourceFile, refs); @@ -105290,14 +106990,14 @@ function transformDeclarations(context) { if (name.kind === 80 /* Identifier */) { return name; } else { - if (name.kind === 206 /* ArrayBindingPattern */) { + if (name.kind === 207 /* ArrayBindingPattern */) { return factory2.updateArrayBindingPattern(name, visitNodes2(name.elements, visitBindingElement, isArrayBindingElement)); } else { return factory2.updateObjectBindingPattern(name, visitNodes2(name.elements, visitBindingElement, isBindingElement)); } } function visitBindingElement(elem) { - if (elem.kind === 231 /* OmittedExpression */) { + if (elem.kind === 232 /* OmittedExpression */) { return elem; } if (elem.propertyName && isIdentifier(elem.propertyName) && isIdentifier(elem.name) && !elem.symbol.isReferenced && !isIdentifierANonContextualKeyword(elem.propertyName)) { @@ -105361,14 +107061,14 @@ function transformDeclarations(context) { if (shouldPrintWithInitializer(node)) { return; } - const shouldUseResolverType = node.kind === 168 /* Parameter */ && (resolver.isRequiredInitializedParameter(node) || resolver.isOptionalUninitializedParameterProperty(node)); + const shouldUseResolverType = node.kind === 169 /* Parameter */ && (resolver.isRequiredInitializedParameter(node) || resolver.isOptionalUninitializedParameterProperty(node)); if (type && !shouldUseResolverType) { return visitNode(type, visitDeclarationSubtree, isTypeNode); } if (!getParseTreeNode(node)) { return type ? visitNode(type, visitDeclarationSubtree, isTypeNode) : factory2.createKeywordTypeNode(133 /* AnyKeyword */); } - if (node.kind === 177 /* SetAccessor */) { + if (node.kind === 178 /* SetAccessor */) { return factory2.createKeywordTypeNode(133 /* AnyKeyword */); } errorNameNode = node.name; @@ -105377,10 +107077,10 @@ function transformDeclarations(context) { oldDiag = getSymbolAccessibilityDiagnostic; getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(node); } - if (node.kind === 259 /* VariableDeclaration */ || node.kind === 207 /* BindingElement */) { + if (node.kind === 260 /* VariableDeclaration */ || node.kind === 208 /* BindingElement */) { return cleanup(resolver.createTypeOfDeclaration(node, enclosingDeclaration, declarationEmitNodeBuilderFlags, symbolTracker)); } - if (node.kind === 168 /* Parameter */ || node.kind === 171 /* PropertyDeclaration */ || node.kind === 170 /* PropertySignature */) { + if (node.kind === 169 /* Parameter */ || node.kind === 172 /* PropertyDeclaration */ || node.kind === 171 /* PropertySignature */) { if (isPropertySignature(node) || !node.initializer) return cleanup(resolver.createTypeOfDeclaration(node, enclosingDeclaration, declarationEmitNodeBuilderFlags, symbolTracker, shouldUseResolverType)); return cleanup(resolver.createTypeOfDeclaration(node, enclosingDeclaration, declarationEmitNodeBuilderFlags, symbolTracker, shouldUseResolverType) || resolver.createTypeOfExpression(node.initializer, enclosingDeclaration, declarationEmitNodeBuilderFlags, symbolTracker)); @@ -105397,21 +107097,21 @@ function transformDeclarations(context) { function isDeclarationAndNotVisible(node) { node = getParseTreeNode(node); switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 266 /* ModuleDeclaration */: - case 263 /* InterfaceDeclaration */: - case 262 /* ClassDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 265 /* EnumDeclaration */: + case 262 /* FunctionDeclaration */: + case 267 /* ModuleDeclaration */: + case 264 /* InterfaceDeclaration */: + case 263 /* ClassDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 266 /* EnumDeclaration */: return !resolver.isDeclarationVisible(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return !getBindingNameVisible(node); - case 270 /* ImportEqualsDeclaration */: - case 271 /* ImportDeclaration */: - case 277 /* ExportDeclaration */: - case 276 /* ExportAssignment */: + case 271 /* ImportEqualsDeclaration */: + case 272 /* ImportDeclaration */: + case 278 /* ExportDeclaration */: + case 277 /* ExportAssignment */: return false; - case 174 /* ClassStaticBlockDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: return true; } return false; @@ -105499,7 +107199,7 @@ function transformDeclarations(context) { function rewriteModuleSpecifier(parent, input) { if (!input) return void 0; - resultHasExternalModuleIndicator = resultHasExternalModuleIndicator || parent.kind !== 266 /* ModuleDeclaration */ && parent.kind !== 204 /* ImportType */; + resultHasExternalModuleIndicator = resultHasExternalModuleIndicator || parent.kind !== 267 /* ModuleDeclaration */ && parent.kind !== 205 /* ImportType */; if (isStringLiteralLike(input)) { if (isBundledEmit) { const newName = getExternalModuleNameFromDeclaration(context.getEmitHost(), resolver, parent); @@ -105518,7 +107218,7 @@ function transformDeclarations(context) { function transformImportEqualsDeclaration(decl) { if (!resolver.isDeclarationVisible(decl)) return; - if (decl.moduleReference.kind === 282 /* ExternalModuleReference */) { + if (decl.moduleReference.kind === 283 /* ExternalModuleReference */) { const specifier = getExternalModuleImportEqualsDeclarationExpression(decl); return factory2.updateImportEqualsDeclaration( decl, @@ -105555,7 +107255,7 @@ function transformDeclarations(context) { void 0 ), rewriteModuleSpecifier(decl, decl.moduleSpecifier), getResolutionModeOverrideForClauseInNightly(decl.assertClause)); } - if (decl.importClause.namedBindings.kind === 273 /* NamespaceImport */) { + if (decl.importClause.namedBindings.kind === 274 /* NamespaceImport */) { const namedBindings = resolver.isDeclarationVisible(decl.importClause.namedBindings) ? decl.importClause.namedBindings : ( /*namedBindings*/ void 0 @@ -105658,7 +107358,7 @@ function transformDeclarations(context) { const oldDiag = getSymbolAccessibilityDiagnostic; const canProduceDiagnostic = canProduceDiagnostics(input); const oldWithinObjectLiteralType = suppressNewDiagnosticContexts; - let shouldEnterSuppressNewDiagnosticsContextContext = (input.kind === 186 /* TypeLiteral */ || input.kind === 199 /* MappedType */) && input.parent.kind !== 264 /* TypeAliasDeclaration */; + let shouldEnterSuppressNewDiagnosticsContextContext = (input.kind === 187 /* TypeLiteral */ || input.kind === 200 /* MappedType */) && input.parent.kind !== 265 /* TypeAliasDeclaration */; if (isMethodDeclaration(input) || isMethodSignature(input)) { if (hasEffectiveModifier(input, 8 /* Private */)) { if (input.symbol && input.symbol.declarations && input.symbol.declarations[0] !== input) @@ -105686,26 +107386,26 @@ function transformDeclarations(context) { } if (isProcessedComponent(input)) { switch (input.kind) { - case 232 /* ExpressionWithTypeArguments */: { + case 233 /* ExpressionWithTypeArguments */: { if (isEntityName(input.expression) || isEntityNameExpression(input.expression)) { checkEntityNameVisibility(input.expression, enclosingDeclaration); } const node = visitEachChild(input, visitDeclarationSubtree, context); return cleanup(factory2.updateExpressionWithTypeArguments(node, node.expression, node.typeArguments)); } - case 182 /* TypeReference */: { + case 183 /* TypeReference */: { checkEntityNameVisibility(input.typeName, enclosingDeclaration); const node = visitEachChild(input, visitDeclarationSubtree, context); return cleanup(factory2.updateTypeReferenceNode(node, node.typeName, node.typeArguments)); } - case 179 /* ConstructSignature */: + case 180 /* ConstructSignature */: return cleanup(factory2.updateConstructSignature( input, ensureTypeParams(input, input.typeParameters), updateParamsList(input, input.parameters), ensureType(input, input.type) )); - case 175 /* Constructor */: { + case 176 /* Constructor */: { const ctor = factory2.createConstructorDeclaration( /*modifiers*/ ensureModifiers(input), @@ -105715,7 +107415,7 @@ function transformDeclarations(context) { ); return cleanup(ctor); } - case 173 /* MethodDeclaration */: { + case 174 /* MethodDeclaration */: { if (isPrivateIdentifier(input.name)) { return cleanup( /*returnValue*/ @@ -105736,7 +107436,7 @@ function transformDeclarations(context) { ); return cleanup(sig); } - case 176 /* GetAccessor */: { + case 177 /* GetAccessor */: { if (isPrivateIdentifier(input.name)) { return cleanup( /*returnValue*/ @@ -105754,7 +107454,7 @@ function transformDeclarations(context) { void 0 )); } - case 177 /* SetAccessor */: { + case 178 /* SetAccessor */: { if (isPrivateIdentifier(input.name)) { return cleanup( /*returnValue*/ @@ -105770,7 +107470,7 @@ function transformDeclarations(context) { void 0 )); } - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: if (isPrivateIdentifier(input.name)) { return cleanup( /*returnValue*/ @@ -105785,7 +107485,7 @@ function transformDeclarations(context) { ensureType(input, input.type), ensureNoInitializer(input) )); - case 170 /* PropertySignature */: + case 171 /* PropertySignature */: if (isPrivateIdentifier(input.name)) { return cleanup( /*returnValue*/ @@ -105799,7 +107499,7 @@ function transformDeclarations(context) { input.questionToken, ensureType(input, input.type) )); - case 172 /* MethodSignature */: { + case 173 /* MethodSignature */: { if (isPrivateIdentifier(input.name)) { return cleanup( /*returnValue*/ @@ -105816,7 +107516,7 @@ function transformDeclarations(context) { ensureType(input, input.type) )); } - case 178 /* CallSignature */: { + case 179 /* CallSignature */: { return cleanup(factory2.updateCallSignature( input, ensureTypeParams(input, input.typeParameters), @@ -105824,7 +107524,7 @@ function transformDeclarations(context) { ensureType(input, input.type) )); } - case 180 /* IndexSignature */: { + case 181 /* IndexSignature */: { return cleanup(factory2.updateIndexSignature( input, ensureModifiers(input), @@ -105832,7 +107532,7 @@ function transformDeclarations(context) { visitNode(input.type, visitDeclarationSubtree, isTypeNode) || factory2.createKeywordTypeNode(133 /* AnyKeyword */) )); } - case 259 /* VariableDeclaration */: { + case 260 /* VariableDeclaration */: { if (isBindingPattern(input.name)) { return recreateBindingPattern(input.name); } @@ -105847,7 +107547,7 @@ function transformDeclarations(context) { ensureNoInitializer(input) )); } - case 167 /* TypeParameter */: { + case 168 /* TypeParameter */: { if (isPrivateMethodTypeParameter(input) && (input.default || input.constraint)) { return cleanup(factory2.updateTypeParameterDeclaration( input, @@ -105861,7 +107561,7 @@ function transformDeclarations(context) { } return cleanup(visitEachChild(input, visitDeclarationSubtree, context)); } - case 193 /* ConditionalType */: { + case 194 /* ConditionalType */: { const checkType = visitNode(input.checkType, visitDeclarationSubtree, isTypeNode); const extendsType = visitNode(input.extendsType, visitDeclarationSubtree, isTypeNode); const oldEnclosingDecl = enclosingDeclaration; @@ -105875,13 +107575,13 @@ function transformDeclarations(context) { Debug.assert(falseType); return cleanup(factory2.updateConditionalTypeNode(input, checkType, extendsType, trueType, falseType)); } - case 183 /* FunctionType */: { + case 184 /* FunctionType */: { return cleanup(factory2.updateFunctionTypeNode(input, visitNodes2(input.typeParameters, visitDeclarationSubtree, isTypeParameterDeclaration), updateParamsList(input, input.parameters), Debug.checkDefined(visitNode(input.type, visitDeclarationSubtree, isTypeNode)))); } - case 184 /* ConstructorType */: { + case 185 /* ConstructorType */: { return cleanup(factory2.updateConstructorTypeNode(input, ensureModifiers(input), visitNodes2(input.typeParameters, visitDeclarationSubtree, isTypeParameterDeclaration), updateParamsList(input, input.parameters), Debug.checkDefined(visitNode(input.type, visitDeclarationSubtree, isTypeNode)))); } - case 204 /* ImportType */: { + case 205 /* ImportType */: { if (!isLiteralImportTypeNode(input)) return cleanup(input); return cleanup(factory2.updateImportTypeNode( @@ -105921,7 +107621,7 @@ function transformDeclarations(context) { } } function isPrivateMethodTypeParameter(node) { - return node.parent.kind === 173 /* MethodDeclaration */ && hasEffectiveModifier(node.parent, 8 /* Private */); + return node.parent.kind === 174 /* MethodDeclaration */ && hasEffectiveModifier(node.parent, 8 /* Private */); } function visitDeclarationStatements(input) { if (!isPreservedDeclarationStatement(input)) { @@ -105930,7 +107630,7 @@ function transformDeclarations(context) { if (shouldStripInternal(input)) return; switch (input.kind) { - case 277 /* ExportDeclaration */: { + case 278 /* ExportDeclaration */: { if (isSourceFile(input.parent)) { resultHasExternalModuleIndicator = true; } @@ -105944,7 +107644,7 @@ function transformDeclarations(context) { getResolutionModeOverrideForClause(input.assertClause) ? input.assertClause : void 0 ); } - case 276 /* ExportAssignment */: { + case 277 /* ExportAssignment */: { if (isSourceFile(input.parent)) { resultHasExternalModuleIndicator = true; } @@ -105985,6 +107685,21 @@ function transformDeclarations(context) { const modifiers = factory2.createModifiersFromModifierFlags(getEffectiveModifierFlags(statement) & (258047 /* All */ ^ 1 /* Export */)); return factory2.updateModifiers(statement, modifiers); } + function updateModuleDeclarationAndKeyword(node, modifiers, name, body) { + const updated = factory2.updateModuleDeclaration(node, modifiers, name, body); + if (isAmbientModule(updated) || updated.flags & 32 /* Namespace */) { + return updated; + } + const fixed = factory2.createModuleDeclaration( + updated.modifiers, + updated.name, + updated.body, + updated.flags | 32 /* Namespace */ + ); + setOriginalNode(fixed, updated); + setTextRange(fixed, updated); + return fixed; + } function transformTopLevelDeclaration(input) { if (lateMarkedStatements) { while (orderedRemoveItem(lateMarkedStatements, input)) @@ -105993,10 +107708,10 @@ function transformDeclarations(context) { if (shouldStripInternal(input)) return; switch (input.kind) { - case 270 /* ImportEqualsDeclaration */: { + case 271 /* ImportEqualsDeclaration */: { return transformImportEqualsDeclaration(input); } - case 271 /* ImportDeclaration */: { + case 272 /* ImportDeclaration */: { return transformImportDeclaration(input); } } @@ -106016,7 +107731,7 @@ function transformDeclarations(context) { } const previousNeedsDeclare = needsDeclare; switch (input.kind) { - case 264 /* TypeAliasDeclaration */: { + case 265 /* TypeAliasDeclaration */: { needsDeclare = false; const clean2 = cleanup(factory2.updateTypeAliasDeclaration( input, @@ -106028,7 +107743,7 @@ function transformDeclarations(context) { needsDeclare = previousNeedsDeclare; return clean2; } - case 263 /* InterfaceDeclaration */: { + case 264 /* InterfaceDeclaration */: { return cleanup(factory2.updateInterfaceDeclaration( input, ensureModifiers(input), @@ -106038,7 +107753,7 @@ function transformDeclarations(context) { visitNodes2(input.members, visitDeclarationSubtree, isTypeElement) )); } - case 261 /* FunctionDeclaration */: { + case 262 /* FunctionDeclaration */: { const clean2 = cleanup(factory2.updateFunctionDeclaration( input, ensureModifiers(input), @@ -106058,7 +107773,7 @@ function transformDeclarations(context) { void 0, clean2.name || factory2.createIdentifier("_default"), factory2.createModuleBlock([]), - 16 /* Namespace */ + 32 /* Namespace */ ); setParent(fakespace, enclosingDeclaration); fakespace.locals = createSymbolTable(props); @@ -106108,7 +107823,7 @@ function transformDeclarations(context) { })) )); } - const namespaceDecl = factory2.createModuleDeclaration(ensureModifiers(input), input.name, factory2.createModuleBlock(declarations), 16 /* Namespace */); + const namespaceDecl = factory2.createModuleDeclaration(ensureModifiers(input), input.name, factory2.createModuleBlock(declarations), 32 /* Namespace */); if (!hasEffectiveModifier(clean2, 1024 /* Default */)) { return [clean2, namespaceDecl]; } @@ -106147,17 +107862,17 @@ function transformDeclarations(context) { return clean2; } } - case 266 /* ModuleDeclaration */: { + case 267 /* ModuleDeclaration */: { needsDeclare = false; const inner = input.body; - if (inner && inner.kind === 267 /* ModuleBlock */) { + if (inner && inner.kind === 268 /* ModuleBlock */) { const oldNeedsScopeFix = needsScopeFixMarker; const oldHasScopeFix = resultHasScopeMarker; resultHasScopeMarker = false; needsScopeFixMarker = false; const statements = visitNodes2(inner.statements, visitDeclarationStatements, isStatement); let lateStatements = transformAndReplaceLatePaintedStatements(statements); - if (input.flags & 16777216 /* Ambient */) { + if (input.flags & 33554432 /* Ambient */) { needsScopeFixMarker = false; } if (!isGlobalScopeAugmentation(input) && !hasScopeMarker2(lateStatements) && !resultHasScopeMarker) { @@ -106172,7 +107887,7 @@ function transformDeclarations(context) { needsScopeFixMarker = oldNeedsScopeFix; resultHasScopeMarker = oldHasScopeFix; const mods = ensureModifiers(input); - return cleanup(factory2.updateModuleDeclaration( + return cleanup(updateModuleDeclarationAndKeyword( input, mods, isExternalModuleAugmentation(input) ? rewriteModuleSpecifier(input, input.name) : input.name, @@ -106186,7 +107901,7 @@ function transformDeclarations(context) { const id = getOriginalNodeId(inner); const body = lateStatementReplacementMap.get(id); lateStatementReplacementMap.delete(id); - return cleanup(factory2.updateModuleDeclaration( + return cleanup(updateModuleDeclarationAndKeyword( input, mods, input.name, @@ -106194,7 +107909,7 @@ function transformDeclarations(context) { )); } } - case 262 /* ClassDeclaration */: { + case 263 /* ClassDeclaration */: { errorNameNode = input.name; errorFallbackNode = input; const modifiers = factory2.createNodeArray(ensureModifiers(input)); @@ -106310,10 +108025,10 @@ function transformDeclarations(context) { )); } } - case 242 /* VariableStatement */: { + case 243 /* VariableStatement */: { return cleanup(transformVariableStatement(input)); } - case 265 /* EnumDeclaration */: { + case 266 /* EnumDeclaration */: { return cleanup(factory2.updateEnumDeclaration(input, factory2.createNodeArray(ensureModifiers(input)), input.name, factory2.createNodeArray(mapDefined(input.members, (m) => { if (shouldStripInternal(m)) return; @@ -106330,7 +108045,7 @@ function transformDeclarations(context) { if (canProdiceDiagnostic) { getSymbolAccessibilityDiagnostic = oldDiag; } - if (input.kind === 266 /* ModuleDeclaration */) { + if (input.kind === 267 /* ModuleDeclaration */) { needsDeclare = previousNeedsDeclare; } if (node === input) { @@ -106347,13 +108062,23 @@ function transformDeclarations(context) { const nodes = visitNodes2(input.declarationList.declarations, visitDeclarationSubtree, isVariableDeclaration); if (!length(nodes)) return; - return factory2.updateVariableStatement(input, factory2.createNodeArray(ensureModifiers(input)), factory2.updateVariableDeclarationList(input.declarationList, nodes)); + const modifiers = factory2.createNodeArray(ensureModifiers(input)); + let declList; + if (isVarUsing(input.declarationList) || isVarAwaitUsing(input.declarationList)) { + declList = factory2.createVariableDeclarationList(nodes, 2 /* Const */); + setOriginalNode(declList, input.declarationList); + setTextRange(declList, input.declarationList); + setCommentRange(declList, input.declarationList); + } else { + declList = factory2.updateVariableDeclarationList(input.declarationList, nodes); + } + return factory2.updateVariableStatement(input, modifiers, declList); } function recreateBindingPattern(d) { return flatten(mapDefined(d.elements, (e) => recreateBindingElement(e))); } function recreateBindingElement(e) { - if (e.kind === 231 /* OmittedExpression */) { + if (e.kind === 232 /* OmittedExpression */) { return; } if (e.name) { @@ -106413,7 +108138,7 @@ function transformDeclarations(context) { function ensureModifierFlags(node) { let mask = 258047 /* All */ ^ (4 /* Public */ | 512 /* Async */ | 16384 /* Override */); let additions = needsDeclare && !isAlwaysType(node) ? 2 /* Ambient */ : 0 /* None */; - const parentIsFile = node.parent.kind === 311 /* SourceFile */; + const parentIsFile = node.parent.kind === 312 /* SourceFile */; if (!parentIsFile || isBundledEmit && parentIsFile && isExternalModule(node.parent)) { mask ^= 2 /* Ambient */; additions = 0 /* None */; @@ -106439,7 +108164,7 @@ function transformDeclarations(context) { } } function isAlwaysType(node) { - if (node.kind === 263 /* InterfaceDeclaration */) { + if (node.kind === 264 /* InterfaceDeclaration */) { return true; } return false; @@ -106459,57 +108184,57 @@ function maskModifierFlags(node, modifierMask = 258047 /* All */ ^ 4 /* Public * } function getTypeAnnotationFromAccessor(accessor) { if (accessor) { - return accessor.kind === 176 /* GetAccessor */ ? accessor.type : accessor.parameters.length > 0 ? accessor.parameters[0].type : void 0; + return accessor.kind === 177 /* GetAccessor */ ? accessor.type : accessor.parameters.length > 0 ? accessor.parameters[0].type : void 0; } } function canHaveLiteralInitializer(node) { switch (node.kind) { - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: return !hasEffectiveModifier(node, 8 /* Private */); - case 168 /* Parameter */: - case 259 /* VariableDeclaration */: + case 169 /* Parameter */: + case 260 /* VariableDeclaration */: return true; } return false; } function isPreservedDeclarationStatement(node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 266 /* ModuleDeclaration */: - case 270 /* ImportEqualsDeclaration */: - case 263 /* InterfaceDeclaration */: - case 262 /* ClassDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 265 /* EnumDeclaration */: - case 242 /* VariableStatement */: - case 271 /* ImportDeclaration */: - case 277 /* ExportDeclaration */: - case 276 /* ExportAssignment */: + case 262 /* FunctionDeclaration */: + case 267 /* ModuleDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 264 /* InterfaceDeclaration */: + case 263 /* ClassDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 266 /* EnumDeclaration */: + case 243 /* VariableStatement */: + case 272 /* ImportDeclaration */: + case 278 /* ExportDeclaration */: + case 277 /* ExportAssignment */: return true; } return false; } function isProcessedComponent(node) { switch (node.kind) { - case 179 /* ConstructSignature */: - case 175 /* Constructor */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 172 /* MethodSignature */: - case 178 /* CallSignature */: - case 180 /* IndexSignature */: - case 259 /* VariableDeclaration */: - case 167 /* TypeParameter */: - case 232 /* ExpressionWithTypeArguments */: - case 182 /* TypeReference */: - case 193 /* ConditionalType */: - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 204 /* ImportType */: + case 180 /* ConstructSignature */: + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 181 /* IndexSignature */: + case 260 /* VariableDeclaration */: + case 168 /* TypeParameter */: + case 233 /* ExpressionWithTypeArguments */: + case 183 /* TypeReference */: + case 194 /* ConditionalType */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 205 /* ImportType */: return true; } return false; @@ -106550,16 +108275,17 @@ function getScriptTransformers(compilerOptions, customTransformers, emitOnly) { transformers.push(transformTypeScript); if (compilerOptions.experimentalDecorators) { transformers.push(transformLegacyDecorators); - } else if (languageVersion < 99 /* ESNext */ || !useDefineForClassFields) { - transformers.push(transformESDecorators); } - transformers.push(transformClassFields); if (getJSXTransformEnabled(compilerOptions)) { transformers.push(transformJsx); } if (languageVersion < 99 /* ESNext */) { transformers.push(transformESNext); } + if (!compilerOptions.experimentalDecorators && (languageVersion < 99 /* ESNext */ || !useDefineForClassFields)) { + transformers.push(transformESDecorators); + } + transformers.push(transformClassFields); if (languageVersion < 8 /* ES2021 */) { transformers.push(transformES2021); } @@ -106618,7 +108344,7 @@ function noEmitNotification(hint, node, callback) { } function transformNodes(resolver, host, factory2, options, nodes, transformers, allowDtsFiles) { var _a, _b; - const enabledSyntaxKindFeatures = new Array(362 /* Count */); + const enabledSyntaxKindFeatures = new Array(363 /* Count */); let lexicalEnvironmentVariableDeclarations; let lexicalEnvironmentFunctionDeclarations; let lexicalEnvironmentStatements; @@ -106697,7 +108423,7 @@ function transformNodes(resolver, host, factory2, options, nodes, transformers, state = 1 /* Initialized */; const transformed = []; for (const node of nodes) { - (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.Emit, "transformNodes", node.kind === 311 /* SourceFile */ ? { path: node.path } : { kind: node.kind, pos: node.pos, end: node.end }); + (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.Emit, "transformNodes", node.kind === 312 /* SourceFile */ ? { path: node.path } : { kind: node.kind, pos: node.pos, end: node.end }); transformed.push((allowDtsFiles ? transformation : transformRoot)(node)); (_b = tracing) == null ? void 0 : _b.pop(); } @@ -107017,7 +108743,7 @@ function getOutputPathsForBundle(options, forceDtsPaths) { } function getOutputPathsFor(sourceFile, host, forceDtsPaths) { const options = host.getCompilerOptions(); - if (sourceFile.kind === 312 /* Bundle */) { + if (sourceFile.kind === 313 /* Bundle */) { return getOutputPathsForBundle(options, forceDtsPaths); } else { const ownOutputFilePath = getOwnEmitOutputFilePath(sourceFile.fileName, host, getOutputExtension(sourceFile.fileName, options)); @@ -107398,8 +109124,8 @@ function emitFiles(resolver, host, targetSourceFile, { scriptTransformers, decla } function printSourceFileOrBundle(jsFilePath, sourceMapFilePath, transform, printer, mapOptions) { const sourceFileOrBundle = transform.transformed[0]; - const bundle = sourceFileOrBundle.kind === 312 /* Bundle */ ? sourceFileOrBundle : void 0; - const sourceFile = sourceFileOrBundle.kind === 311 /* SourceFile */ ? sourceFileOrBundle : void 0; + const bundle = sourceFileOrBundle.kind === 313 /* Bundle */ ? sourceFileOrBundle : void 0; + const sourceFile = sourceFileOrBundle.kind === 312 /* SourceFile */ ? sourceFileOrBundle : void 0; const sourceFiles = bundle ? bundle.sourceFiles : [sourceFile]; let sourceMapGenerator; if (shouldEmitSourceMaps(mapOptions, sourceFileOrBundle)) { @@ -107461,7 +109187,7 @@ function emitFiles(resolver, host, targetSourceFile, { scriptTransformers, decla writer.clear(); } function shouldEmitSourceMaps(mapOptions, sourceFileOrBundle) { - return (mapOptions.sourceMap || mapOptions.inlineSourceMap) && (sourceFileOrBundle.kind !== 311 /* SourceFile */ || !fileExtensionIs(sourceFileOrBundle.fileName, ".json" /* Json */)); + return (mapOptions.sourceMap || mapOptions.inlineSourceMap) && (sourceFileOrBundle.kind !== 312 /* SourceFile */ || !fileExtensionIs(sourceFileOrBundle.fileName, ".json" /* Json */)); } function getSourceRoot(mapOptions) { const sourceRoot = normalizeSlashes(mapOptions.sourceRoot || ""); @@ -107829,11 +109555,11 @@ function createPrinter(printerOptions = {}, handlers = {}) { break; } switch (node.kind) { - case 311 /* SourceFile */: + case 312 /* SourceFile */: return printFile(node); - case 312 /* Bundle */: + case 313 /* Bundle */: return printBundle(node); - case 313 /* UnparsedSource */: + case 314 /* UnparsedSource */: return printUnparsedSource(node); } writeNode(hint, node, sourceFile, beginPrint()); @@ -108212,301 +109938,301 @@ function createPrinter(printerOptions = {}, handlers = {}) { return emitIdentifier(node); case 81 /* PrivateIdentifier */: return emitPrivateIdentifier(node); - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: return emitQualifiedName(node); - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: return emitComputedPropertyName(node); - case 167 /* TypeParameter */: + case 168 /* TypeParameter */: return emitTypeParameter(node); - case 168 /* Parameter */: + case 169 /* Parameter */: return emitParameter(node); - case 169 /* Decorator */: + case 170 /* Decorator */: return emitDecorator(node); - case 170 /* PropertySignature */: + case 171 /* PropertySignature */: return emitPropertySignature(node); - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return emitPropertyDeclaration(node); - case 172 /* MethodSignature */: + case 173 /* MethodSignature */: return emitMethodSignature(node); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return emitMethodDeclaration(node); - case 174 /* ClassStaticBlockDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: return emitClassStaticBlockDeclaration(node); - case 175 /* Constructor */: + case 176 /* Constructor */: return emitConstructor(node); - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return emitAccessorDeclaration(node); - case 178 /* CallSignature */: + case 179 /* CallSignature */: return emitCallSignature(node); - case 179 /* ConstructSignature */: + case 180 /* ConstructSignature */: return emitConstructSignature(node); - case 180 /* IndexSignature */: + case 181 /* IndexSignature */: return emitIndexSignature(node); - case 181 /* TypePredicate */: + case 182 /* TypePredicate */: return emitTypePredicate(node); - case 182 /* TypeReference */: + case 183 /* TypeReference */: return emitTypeReference(node); - case 183 /* FunctionType */: + case 184 /* FunctionType */: return emitFunctionType(node); - case 184 /* ConstructorType */: + case 185 /* ConstructorType */: return emitConstructorType(node); - case 185 /* TypeQuery */: + case 186 /* TypeQuery */: return emitTypeQuery(node); - case 186 /* TypeLiteral */: + case 187 /* TypeLiteral */: return emitTypeLiteral(node); - case 187 /* ArrayType */: + case 188 /* ArrayType */: return emitArrayType(node); - case 188 /* TupleType */: + case 189 /* TupleType */: return emitTupleType(node); - case 189 /* OptionalType */: + case 190 /* OptionalType */: return emitOptionalType(node); - case 191 /* UnionType */: + case 192 /* UnionType */: return emitUnionType(node); - case 192 /* IntersectionType */: + case 193 /* IntersectionType */: return emitIntersectionType(node); - case 193 /* ConditionalType */: + case 194 /* ConditionalType */: return emitConditionalType(node); - case 194 /* InferType */: + case 195 /* InferType */: return emitInferType(node); - case 195 /* ParenthesizedType */: + case 196 /* ParenthesizedType */: return emitParenthesizedType(node); - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return emitExpressionWithTypeArguments(node); - case 196 /* ThisType */: + case 197 /* ThisType */: return emitThisType(); - case 197 /* TypeOperator */: + case 198 /* TypeOperator */: return emitTypeOperator(node); - case 198 /* IndexedAccessType */: + case 199 /* IndexedAccessType */: return emitIndexedAccessType(node); - case 199 /* MappedType */: + case 200 /* MappedType */: return emitMappedType(node); - case 200 /* LiteralType */: + case 201 /* LiteralType */: return emitLiteralType(node); - case 201 /* NamedTupleMember */: + case 202 /* NamedTupleMember */: return emitNamedTupleMember(node); - case 202 /* TemplateLiteralType */: + case 203 /* TemplateLiteralType */: return emitTemplateType(node); - case 203 /* TemplateLiteralTypeSpan */: + case 204 /* TemplateLiteralTypeSpan */: return emitTemplateTypeSpan(node); - case 204 /* ImportType */: + case 205 /* ImportType */: return emitImportTypeNode(node); - case 205 /* ObjectBindingPattern */: + case 206 /* ObjectBindingPattern */: return emitObjectBindingPattern(node); - case 206 /* ArrayBindingPattern */: + case 207 /* ArrayBindingPattern */: return emitArrayBindingPattern(node); - case 207 /* BindingElement */: + case 208 /* BindingElement */: return emitBindingElement(node); - case 238 /* TemplateSpan */: + case 239 /* TemplateSpan */: return emitTemplateSpan(node); - case 239 /* SemicolonClassElement */: + case 240 /* SemicolonClassElement */: return emitSemicolonClassElement(); - case 240 /* Block */: + case 241 /* Block */: return emitBlock(node); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return emitVariableStatement(node); - case 241 /* EmptyStatement */: + case 242 /* EmptyStatement */: return emitEmptyStatement( /*isEmbeddedStatement*/ false ); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return emitExpressionStatement(node); - case 244 /* IfStatement */: + case 245 /* IfStatement */: return emitIfStatement(node); - case 245 /* DoStatement */: + case 246 /* DoStatement */: return emitDoStatement(node); - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: return emitWhileStatement(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return emitForStatement(node); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return emitForInStatement(node); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return emitForOfStatement(node); - case 250 /* ContinueStatement */: + case 251 /* ContinueStatement */: return emitContinueStatement(node); - case 251 /* BreakStatement */: + case 252 /* BreakStatement */: return emitBreakStatement(node); - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: return emitReturnStatement(node); - case 253 /* WithStatement */: + case 254 /* WithStatement */: return emitWithStatement(node); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return emitSwitchStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return emitLabeledStatement(node); - case 256 /* ThrowStatement */: + case 257 /* ThrowStatement */: return emitThrowStatement(node); - case 257 /* TryStatement */: + case 258 /* TryStatement */: return emitTryStatement(node); - case 258 /* DebuggerStatement */: + case 259 /* DebuggerStatement */: return emitDebuggerStatement(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return emitVariableDeclaration(node); - case 260 /* VariableDeclarationList */: + case 261 /* VariableDeclarationList */: return emitVariableDeclarationList(node); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return emitFunctionDeclaration(node); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return emitClassDeclaration(node); - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: return emitInterfaceDeclaration(node); - case 264 /* TypeAliasDeclaration */: + case 265 /* TypeAliasDeclaration */: return emitTypeAliasDeclaration(node); - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return emitEnumDeclaration(node); - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return emitModuleDeclaration(node); - case 267 /* ModuleBlock */: + case 268 /* ModuleBlock */: return emitModuleBlock(node); - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: return emitCaseBlock(node); - case 269 /* NamespaceExportDeclaration */: + case 270 /* NamespaceExportDeclaration */: return emitNamespaceExportDeclaration(node); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return emitImportEqualsDeclaration(node); - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return emitImportDeclaration(node); - case 272 /* ImportClause */: + case 273 /* ImportClause */: return emitImportClause(node); - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: return emitNamespaceImport(node); - case 279 /* NamespaceExport */: + case 280 /* NamespaceExport */: return emitNamespaceExport(node); - case 274 /* NamedImports */: + case 275 /* NamedImports */: return emitNamedImports(node); - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: return emitImportSpecifier(node); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return emitExportAssignment(node); - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return emitExportDeclaration(node); - case 278 /* NamedExports */: + case 279 /* NamedExports */: return emitNamedExports(node); - case 280 /* ExportSpecifier */: + case 281 /* ExportSpecifier */: return emitExportSpecifier(node); - case 299 /* AssertClause */: + case 300 /* AssertClause */: return emitAssertClause(node); - case 300 /* AssertEntry */: + case 301 /* AssertEntry */: return emitAssertEntry(node); - case 281 /* MissingDeclaration */: + case 282 /* MissingDeclaration */: return; - case 282 /* ExternalModuleReference */: + case 283 /* ExternalModuleReference */: return emitExternalModuleReference(node); case 12 /* JsxText */: return emitJsxText(node); - case 285 /* JsxOpeningElement */: - case 288 /* JsxOpeningFragment */: + case 286 /* JsxOpeningElement */: + case 289 /* JsxOpeningFragment */: return emitJsxOpeningElementOrFragment(node); - case 286 /* JsxClosingElement */: - case 289 /* JsxClosingFragment */: + case 287 /* JsxClosingElement */: + case 290 /* JsxClosingFragment */: return emitJsxClosingElementOrFragment(node); - case 290 /* JsxAttribute */: + case 291 /* JsxAttribute */: return emitJsxAttribute(node); - case 291 /* JsxAttributes */: + case 292 /* JsxAttributes */: return emitJsxAttributes(node); - case 292 /* JsxSpreadAttribute */: + case 293 /* JsxSpreadAttribute */: return emitJsxSpreadAttribute(node); - case 293 /* JsxExpression */: + case 294 /* JsxExpression */: return emitJsxExpression(node); - case 294 /* JsxNamespacedName */: + case 295 /* JsxNamespacedName */: return emitJsxNamespacedName(node); - case 295 /* CaseClause */: + case 296 /* CaseClause */: return emitCaseClause(node); - case 296 /* DefaultClause */: + case 297 /* DefaultClause */: return emitDefaultClause(node); - case 297 /* HeritageClause */: + case 298 /* HeritageClause */: return emitHeritageClause(node); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return emitCatchClause(node); - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return emitPropertyAssignment(node); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return emitShorthandPropertyAssignment(node); - case 304 /* SpreadAssignment */: + case 305 /* SpreadAssignment */: return emitSpreadAssignment(node); - case 305 /* EnumMember */: + case 306 /* EnumMember */: return emitEnumMember(node); - case 306 /* UnparsedPrologue */: + case 307 /* UnparsedPrologue */: return writeUnparsedNode(node); - case 313 /* UnparsedSource */: - case 307 /* UnparsedPrepend */: + case 314 /* UnparsedSource */: + case 308 /* UnparsedPrepend */: return emitUnparsedSourceOrPrepend(node); - case 308 /* UnparsedText */: - case 309 /* UnparsedInternalText */: + case 309 /* UnparsedText */: + case 310 /* UnparsedInternalText */: return emitUnparsedTextLike(node); - case 310 /* UnparsedSyntheticReference */: + case 311 /* UnparsedSyntheticReference */: return emitUnparsedSyntheticReference(node); - case 311 /* SourceFile */: + case 312 /* SourceFile */: return emitSourceFile(node); - case 312 /* Bundle */: + case 313 /* Bundle */: return Debug.fail("Bundles should be printed using printBundle"); - case 314 /* InputFiles */: + case 315 /* InputFiles */: return Debug.fail("InputFiles should not be printed"); - case 315 /* JSDocTypeExpression */: + case 316 /* JSDocTypeExpression */: return emitJSDocTypeExpression(node); - case 316 /* JSDocNameReference */: + case 317 /* JSDocNameReference */: return emitJSDocNameReference(node); - case 318 /* JSDocAllType */: + case 319 /* JSDocAllType */: return writePunctuation("*"); - case 319 /* JSDocUnknownType */: + case 320 /* JSDocUnknownType */: return writePunctuation("?"); - case 320 /* JSDocNullableType */: + case 321 /* JSDocNullableType */: return emitJSDocNullableType(node); - case 321 /* JSDocNonNullableType */: + case 322 /* JSDocNonNullableType */: return emitJSDocNonNullableType(node); - case 322 /* JSDocOptionalType */: + case 323 /* JSDocOptionalType */: return emitJSDocOptionalType(node); - case 323 /* JSDocFunctionType */: + case 324 /* JSDocFunctionType */: return emitJSDocFunctionType(node); - case 190 /* RestType */: - case 324 /* JSDocVariadicType */: + case 191 /* RestType */: + case 325 /* JSDocVariadicType */: return emitRestOrJSDocVariadicType(node); - case 325 /* JSDocNamepathType */: + case 326 /* JSDocNamepathType */: return; - case 326 /* JSDoc */: + case 327 /* JSDoc */: return emitJSDoc(node); - case 328 /* JSDocTypeLiteral */: + case 329 /* JSDocTypeLiteral */: return emitJSDocTypeLiteral(node); - case 329 /* JSDocSignature */: + case 330 /* JSDocSignature */: return emitJSDocSignature(node); - case 333 /* JSDocTag */: - case 338 /* JSDocClassTag */: - case 343 /* JSDocOverrideTag */: + case 334 /* JSDocTag */: + case 339 /* JSDocClassTag */: + case 344 /* JSDocOverrideTag */: return emitJSDocSimpleTag(node); - case 334 /* JSDocAugmentsTag */: - case 335 /* JSDocImplementsTag */: + case 335 /* JSDocAugmentsTag */: + case 336 /* JSDocImplementsTag */: return emitJSDocHeritageTag(node); - case 336 /* JSDocAuthorTag */: - case 337 /* JSDocDeprecatedTag */: + case 337 /* JSDocAuthorTag */: + case 338 /* JSDocDeprecatedTag */: return; - case 339 /* JSDocPublicTag */: - case 340 /* JSDocPrivateTag */: - case 341 /* JSDocProtectedTag */: - case 342 /* JSDocReadonlyTag */: + case 340 /* JSDocPublicTag */: + case 341 /* JSDocPrivateTag */: + case 342 /* JSDocProtectedTag */: + case 343 /* JSDocReadonlyTag */: return; - case 344 /* JSDocCallbackTag */: + case 345 /* JSDocCallbackTag */: return emitJSDocCallbackTag(node); - case 345 /* JSDocOverloadTag */: + case 346 /* JSDocOverloadTag */: return emitJSDocOverloadTag(node); - case 347 /* JSDocParameterTag */: - case 354 /* JSDocPropertyTag */: + case 348 /* JSDocParameterTag */: + case 355 /* JSDocPropertyTag */: return emitJSDocPropertyLikeTag(node); - case 346 /* JSDocEnumTag */: - case 348 /* JSDocReturnTag */: - case 349 /* JSDocThisTag */: - case 350 /* JSDocTypeTag */: - case 355 /* JSDocThrowsTag */: - case 356 /* JSDocSatisfiesTag */: + case 347 /* JSDocEnumTag */: + case 349 /* JSDocReturnTag */: + case 350 /* JSDocThisTag */: + case 351 /* JSDocTypeTag */: + case 356 /* JSDocThrowsTag */: + case 357 /* JSDocSatisfiesTag */: return emitJSDocSimpleTypedTag(node); - case 351 /* JSDocTemplateTag */: + case 352 /* JSDocTemplateTag */: return emitJSDocTemplateTag(node); - case 352 /* JSDocTypedefTag */: + case 353 /* JSDocTypedefTag */: return emitJSDocTypedefTag(node); - case 353 /* JSDocSeeTag */: + case 354 /* JSDocSeeTag */: return emitJSDocSeeTag(node); - case 358 /* NotEmittedStatement */: + case 359 /* NotEmittedStatement */: return; } if (isExpression(node)) { @@ -108539,83 +110265,83 @@ function createPrinter(printerOptions = {}, handlers = {}) { return emitIdentifier(node); case 81 /* PrivateIdentifier */: return emitPrivateIdentifier(node); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return emitArrayLiteralExpression(node); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return emitObjectLiteralExpression(node); - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return emitPropertyAccessExpression(node); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return emitElementAccessExpression(node); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return emitCallExpression(node); - case 213 /* NewExpression */: + case 214 /* NewExpression */: return emitNewExpression(node); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return emitTaggedTemplateExpression(node); - case 215 /* TypeAssertionExpression */: + case 216 /* TypeAssertionExpression */: return emitTypeAssertionExpression(node); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return emitParenthesizedExpression(node); - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: return emitFunctionExpression(node); - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return emitArrowFunction(node); - case 219 /* DeleteExpression */: + case 220 /* DeleteExpression */: return emitDeleteExpression(node); - case 220 /* TypeOfExpression */: + case 221 /* TypeOfExpression */: return emitTypeOfExpression(node); - case 221 /* VoidExpression */: + case 222 /* VoidExpression */: return emitVoidExpression(node); - case 222 /* AwaitExpression */: + case 223 /* AwaitExpression */: return emitAwaitExpression(node); - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: return emitPrefixUnaryExpression(node); - case 224 /* PostfixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return emitPostfixUnaryExpression(node); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return emitBinaryExpression(node); - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: return emitConditionalExpression(node); - case 227 /* TemplateExpression */: + case 228 /* TemplateExpression */: return emitTemplateExpression(node); - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: return emitYieldExpression(node); - case 229 /* SpreadElement */: + case 230 /* SpreadElement */: return emitSpreadElement(node); - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return emitClassExpression(node); - case 231 /* OmittedExpression */: + case 232 /* OmittedExpression */: return; - case 233 /* AsExpression */: + case 234 /* AsExpression */: return emitAsExpression(node); - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: return emitNonNullExpression(node); - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return emitExpressionWithTypeArguments(node); - case 237 /* SatisfiesExpression */: + case 238 /* SatisfiesExpression */: return emitSatisfiesExpression(node); - case 235 /* MetaProperty */: + case 236 /* MetaProperty */: return emitMetaProperty(node); - case 236 /* SyntheticExpression */: + case 237 /* SyntheticExpression */: return Debug.fail("SyntheticExpression should never be printed."); - case 281 /* MissingDeclaration */: + case 282 /* MissingDeclaration */: return; - case 283 /* JsxElement */: + case 284 /* JsxElement */: return emitJsxElement(node); - case 284 /* JsxSelfClosingElement */: + case 285 /* JsxSelfClosingElement */: return emitJsxSelfClosingElement(node); - case 287 /* JsxFragment */: + case 288 /* JsxFragment */: return emitJsxFragment(node); - case 357 /* SyntaxList */: + case 358 /* SyntaxList */: return Debug.fail("SyntaxList should not be printed"); - case 358 /* NotEmittedStatement */: + case 359 /* NotEmittedStatement */: return; - case 359 /* PartiallyEmittedExpression */: + case 360 /* PartiallyEmittedExpression */: return emitPartiallyEmittedExpression(node); - case 360 /* CommaListExpression */: + case 361 /* CommaListExpression */: return emitCommaList(node); - case 361 /* SyntheticReferenceExpression */: + case 362 /* SyntheticReferenceExpression */: return Debug.fail("SyntheticReferenceExpression should not be printed"); } } @@ -108661,7 +110387,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { } function emitHelpers(node) { let helpersEmitted = false; - const bundle = node.kind === 312 /* Bundle */ ? node : void 0; + const bundle = node.kind === 313 /* Bundle */ ? node : void 0; if (bundle && moduleKind === 0 /* None */) { return; } @@ -108736,7 +110462,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { updateOrPushBundleFileTextLike( pos, writer.getTextPos(), - unparsed.kind === 308 /* UnparsedText */ ? "text" /* Text */ : "internal" /* Internal */ + unparsed.kind === 309 /* UnparsedText */ ? "text" /* Text */ : "internal" /* Internal */ ); } } @@ -108772,7 +110498,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { } function emitTabStop(hint, node, snippet) { Debug.assert( - node.kind === 241 /* EmptyStatement */, + node.kind === 242 /* EmptyStatement */, `A tab stop cannot be attached to a node of kind ${Debug.formatSyntaxKind(node.kind)}.` ); Debug.assert( @@ -108844,7 +110570,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { emit(node.dotDotDotToken); emitNodeWithWriter(node.name, writeParameter); emit(node.questionToken); - if (node.parent && node.parent.kind === 323 /* JSDocFunctionType */ && !node.name) { + if (node.parent && node.parent.kind === 324 /* JSDocFunctionType */ && !node.name) { emit(node.type); } else { emitTypeAnnotation(node.type); @@ -108920,7 +110646,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { /*allowDecorators*/ true ); - const token = node.kind === 176 /* GetAccessor */ ? 139 /* GetKeyword */ : 153 /* SetKeyword */; + const token = node.kind === 177 /* GetAccessor */ ? 139 /* GetKeyword */ : 153 /* SetKeyword */; emitTokenWithComment(token, pos, writeKeyword, node); writeSpace(); emit(node.name); @@ -109274,7 +111000,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { return !(expression.numericLiteralFlags & 448 /* WithSpecifier */) && !stringContains(text, tokenToString(25 /* DotToken */)) && !stringContains(text, String.fromCharCode(69 /* E */)) && !stringContains(text, String.fromCharCode(101 /* e */)); } else if (isAccessExpression(expression)) { const constantValue = getConstantValue(expression); - return typeof constantValue === "number" && isFinite(constantValue) && Math.floor(constantValue) === constantValue; + return typeof constantValue === "number" && isFinite(constantValue) && constantValue >= 0 && Math.floor(constantValue) === constantValue; } } function emitElementAccessExpression(node) { @@ -109385,7 +111111,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { } function shouldEmitWhitespaceBeforeOperand(node) { const operand = node.operand; - return operand.kind === 223 /* PrefixUnaryExpression */ && (node.operator === 40 /* PlusToken */ && (operand.operator === 40 /* PlusToken */ || operand.operator === 46 /* PlusPlusToken */) || node.operator === 41 /* MinusToken */ && (operand.operator === 41 /* MinusToken */ || operand.operator === 47 /* MinusMinusToken */)); + return operand.kind === 224 /* PrefixUnaryExpression */ && (node.operator === 40 /* PlusToken */ && (operand.operator === 40 /* PlusToken */ || operand.operator === 46 /* PlusPlusToken */) || node.operator === 41 /* MinusToken */ && (operand.operator === 41 /* MinusToken */ || operand.operator === 47 /* MinusMinusToken */)); } function emitPostfixUnaryExpression(node) { emitExpression(node.operand, parenthesizer.parenthesizeOperandOfPostfixUnary); @@ -109644,7 +111370,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { if (node.elseStatement) { writeLineOrSpace(node, node.thenStatement, node.elseStatement); emitTokenWithComment(93 /* ElseKeyword */, node.thenStatement.end, writeKeyword, node); - if (node.elseStatement.kind === 244 /* IfStatement */) { + if (node.elseStatement.kind === 245 /* IfStatement */) { writeSpace(); emit(node.elseStatement); } else { @@ -109711,7 +111437,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { emitTokenWithComment(21 /* OpenParenToken */, openParenPos, writePunctuation, node); emitForBinding(node.initializer); writeSpace(); - emitTokenWithComment(164 /* OfKeyword */, node.initializer.end, writeKeyword, node); + emitTokenWithComment(165 /* OfKeyword */, node.initializer.end, writeKeyword, node); writeSpace(); emitExpression(node.expression); emitTokenWithComment(22 /* CloseParenToken */, node.expression.end, writePunctuation, node); @@ -109719,7 +111445,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { } function emitForBinding(node) { if (node !== void 0) { - if (node.kind === 260 /* VariableDeclarationList */) { + if (node.kind === 261 /* VariableDeclarationList */) { emit(node); } else { emitExpression(node); @@ -109755,7 +111481,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { } pos = writeTokenText(token, writer2, pos); if (isSimilarNode && contextNode.end !== pos) { - const isJsxExprContext = contextNode.kind === 293 /* JsxExpression */; + const isJsxExprContext = contextNode.kind === 294 /* JsxExpression */; emitTrailingCommentsOfPosition( pos, /*prefixSpace*/ @@ -109867,7 +111593,14 @@ function createPrinter(printerOptions = {}, handlers = {}) { emitInitializer(node.initializer, ((_a = node.type) == null ? void 0 : _a.end) ?? ((_c = (_b = node.name.emitNode) == null ? void 0 : _b.typeNode) == null ? void 0 : _c.end) ?? node.name.end, node, parenthesizer.parenthesizeExpressionForDisallowedComma); } function emitVariableDeclarationList(node) { - writeKeyword(isLet(node) ? "let" : isVarConst(node) ? "const" : "var"); + if (isVarAwaitUsing(node)) { + writeKeyword("await"); + writeSpace(); + writeKeyword("using"); + } else { + const head = isLet(node) ? "let" : isVarConst(node) ? "const" : isVarUsing(node) ? "using" : "var"; + writeKeyword(head); + } writeSpace(); emitList(node, node.declarations, 528 /* VariableDeclarationList */); } @@ -110076,8 +111809,8 @@ function createPrinter(printerOptions = {}, handlers = {}) { /*allowDecorators*/ false ); - if (~node.flags & 1024 /* GlobalAugmentation */) { - writeKeyword(node.flags & 16 /* Namespace */ ? "namespace" : "module"); + if (~node.flags & 2048 /* GlobalAugmentation */) { + writeKeyword(node.flags & 32 /* Namespace */ ? "namespace" : "module"); writeSpace(); } emit(node.name); @@ -110153,7 +111886,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { if (node.importClause) { emit(node.importClause); writeSpace(); - emitTokenWithComment(160 /* FromKeyword */, node.importClause.end, writeKeyword, node); + emitTokenWithComment(161 /* FromKeyword */, node.importClause.end, writeKeyword, node); writeSpace(); } emitExpression(node.moduleSpecifier); @@ -110220,7 +111953,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { if (node.moduleSpecifier) { writeSpace(); const fromPos = node.exportClause ? node.exportClause.end : nextPos; - emitTokenWithComment(160 /* FromKeyword */, fromPos, writeKeyword, node); + emitTokenWithComment(161 /* FromKeyword */, fromPos, writeKeyword, node); writeSpace(); emitExpression(node.moduleSpecifier); } @@ -110475,7 +112208,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { } } if (node.tags) { - if (node.tags.length === 1 && node.tags[0].kind === 350 /* JSDocTypeTag */ && !node.comment) { + if (node.tags.length === 1 && node.tags[0].kind === 351 /* JSDocTypeTag */ && !node.comment) { writeSpace(); emit(node.tags[0]); } else { @@ -110519,7 +112252,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { function emitJSDocTypedefTag(tag) { emitJSDocTagName(tag.tagName); if (tag.typeExpression) { - if (tag.typeExpression.kind === 315 /* JSDocTypeExpression */) { + if (tag.typeExpression.kind === 316 /* JSDocTypeExpression */) { emitJSDocTypeExpression(tag.typeExpression); } else { writeSpace(); @@ -110537,7 +112270,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { emit(tag.fullName); } emitJSDocComment(tag.comment); - if (tag.typeExpression && tag.typeExpression.kind === 328 /* JSDocTypeLiteral */) { + if (tag.typeExpression && tag.typeExpression.kind === 329 /* JSDocTypeLiteral */) { emitJSDocTypeLiteral(tag.typeExpression); } } @@ -111420,7 +113153,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { return block.statements.length === 0 && (!currentSourceFile || rangeEndIsOnSameLineAsRangeStart(block, block, currentSourceFile)); } function skipSynthesizedParentheses(node) { - while (node.kind === 216 /* ParenthesizedExpression */ && nodeIsSynthesized(node)) { + while (node.kind === 217 /* ParenthesizedExpression */ && nodeIsSynthesized(node)) { node = node.expression; } return node; @@ -111507,84 +113240,84 @@ function createPrinter(printerOptions = {}, handlers = {}) { if (!node) return; switch (node.kind) { - case 240 /* Block */: + case 241 /* Block */: forEach(node.statements, generateNames); break; - case 255 /* LabeledStatement */: - case 253 /* WithStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: + case 256 /* LabeledStatement */: + case 254 /* WithStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: generateNames(node.statement); break; - case 244 /* IfStatement */: + case 245 /* IfStatement */: generateNames(node.thenStatement); generateNames(node.elseStatement); break; - case 247 /* ForStatement */: - case 249 /* ForOfStatement */: - case 248 /* ForInStatement */: + case 248 /* ForStatement */: + case 250 /* ForOfStatement */: + case 249 /* ForInStatement */: generateNames(node.initializer); generateNames(node.statement); break; - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: generateNames(node.caseBlock); break; - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: forEach(node.clauses, generateNames); break; - case 295 /* CaseClause */: - case 296 /* DefaultClause */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: forEach(node.statements, generateNames); break; - case 257 /* TryStatement */: + case 258 /* TryStatement */: generateNames(node.tryBlock); generateNames(node.catchClause); generateNames(node.finallyBlock); break; - case 298 /* CatchClause */: + case 299 /* CatchClause */: generateNames(node.variableDeclaration); generateNames(node.block); break; - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: generateNames(node.declarationList); break; - case 260 /* VariableDeclarationList */: + case 261 /* VariableDeclarationList */: forEach(node.declarations, generateNames); break; - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 207 /* BindingElement */: - case 262 /* ClassDeclaration */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 208 /* BindingElement */: + case 263 /* ClassDeclaration */: generateNameIfNeeded(node.name); break; - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: generateNameIfNeeded(node.name); if (getEmitFlags(node) & 1048576 /* ReuseTempVariableScope */) { forEach(node.parameters, generateNames); generateNames(node.body); } break; - case 205 /* ObjectBindingPattern */: - case 206 /* ArrayBindingPattern */: + case 206 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: forEach(node.elements, generateNames); break; - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: generateNames(node.importClause); break; - case 272 /* ImportClause */: + case 273 /* ImportClause */: generateNameIfNeeded(node.name); generateNames(node.namedBindings); break; - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: generateNameIfNeeded(node.name); break; - case 279 /* NamespaceExport */: + case 280 /* NamespaceExport */: generateNameIfNeeded(node.name); break; - case 274 /* NamedImports */: + case 275 /* NamedImports */: forEach(node.elements, generateNames); break; - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: generateNameIfNeeded(node.propertyName || node.name); break; } @@ -111593,12 +113326,12 @@ function createPrinter(printerOptions = {}, handlers = {}) { if (!node) return; switch (node.kind) { - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: - case 171 /* PropertyDeclaration */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: generateNameIfNeeded(node.name); break; } @@ -111856,16 +113589,16 @@ function createPrinter(printerOptions = {}, handlers = {}) { prefix, suffix ); - case 266 /* ModuleDeclaration */: - case 265 /* EnumDeclaration */: + case 267 /* ModuleDeclaration */: + case 266 /* EnumDeclaration */: Debug.assert(!prefix && !suffix && !privateName); return generateNameForModuleOrEnum(node); - case 271 /* ImportDeclaration */: - case 277 /* ExportDeclaration */: + case 272 /* ImportDeclaration */: + case 278 /* ExportDeclaration */: Debug.assert(!prefix && !suffix && !privateName); return generateNameForImportOrExportDeclaration(node); - case 261 /* FunctionDeclaration */: - case 262 /* ClassDeclaration */: { + case 262 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: { Debug.assert(!prefix && !suffix && !privateName); const name = node.name; if (name && !isGeneratedIdentifier(name)) { @@ -111880,17 +113613,17 @@ function createPrinter(printerOptions = {}, handlers = {}) { } return generateNameForExportDefault(); } - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: Debug.assert(!prefix && !suffix && !privateName); return generateNameForExportDefault(); - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: Debug.assert(!prefix && !suffix && !privateName); return generateNameForClassExpression(); - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return generateNameForMethodOrAccessor(node, privateName, prefix, suffix); - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: return makeTempVariableName( 0 /* Auto */, /*reservedInNestedScopes*/ @@ -111984,7 +113717,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { emitLeadingComments( pos, /*isEmittedNode*/ - node.kind !== 358 /* NotEmittedStatement */ + node.kind !== 359 /* NotEmittedStatement */ ); } if (!skipLeadingComments || pos >= 0 && (emitFlags & 1024 /* NoLeadingComments */) !== 0) { @@ -111992,7 +113725,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { } if (!skipTrailingComments || end >= 0 && (emitFlags & 2048 /* NoTrailingComments */) !== 0) { containerEnd = end; - if (node.kind === 260 /* VariableDeclarationList */) { + if (node.kind === 261 /* VariableDeclarationList */) { declarationListContainerEnd = end; } } @@ -112008,7 +113741,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { containerPos = savedContainerPos; containerEnd = savedContainerEnd; declarationListContainerEnd = savedDeclarationListContainerEnd; - if (!skipTrailingComments && node.kind !== 358 /* NotEmittedStatement */) { + if (!skipTrailingComments && node.kind !== 359 /* NotEmittedStatement */) { emitTrailingComments(end); } } @@ -112280,7 +114013,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { } } else { const source = sourceMapRange.source || sourceMapSource; - if (node.kind !== 358 /* NotEmittedStatement */ && (emitFlags & 32 /* NoLeadingSourceMap */) === 0 && sourceMapRange.pos >= 0) { + if (node.kind !== 359 /* NotEmittedStatement */ && (emitFlags & 32 /* NoLeadingSourceMap */) === 0 && sourceMapRange.pos >= 0) { emitSourcePos(sourceMapRange.source || sourceMapSource, skipSourceTrivia(source, sourceMapRange.pos)); } if (emitFlags & 128 /* NoNestedSourceMaps */) { @@ -112295,7 +114028,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { if (emitFlags & 128 /* NoNestedSourceMaps */) { sourceMapsDisabled = false; } - if (node.kind !== 358 /* NotEmittedStatement */ && (emitFlags & 64 /* NoTrailingSourceMap */) === 0 && sourceMapRange.end >= 0) { + if (node.kind !== 359 /* NotEmittedStatement */ && (emitFlags & 64 /* NoTrailingSourceMap */) === 0 && sourceMapRange.end >= 0) { emitSourcePos(sourceMapRange.source || sourceMapSource, sourceMapRange.end); } } @@ -112404,14 +114137,14 @@ function getEmitListItem(emit, parenthesizerRule) { } // src/compiler/watchUtilities.ts -function createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensitiveFileNames) { +function createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensitiveFileNames2) { if (!host.getDirectories || !host.readDirectory) { return void 0; } const cachedReadDirectoryResult = /* @__PURE__ */ new Map(); - const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames); + const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2); return { - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, fileExists, readFile: (path, encoding) => host.readFile(path, encoding), directoryExists: host.directoryExists && directoryExists, @@ -112533,7 +114266,7 @@ function createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensi const rootResult = tryReadDirectory(rootDir, rootDirPath); let rootSymLinkResult; if (rootResult !== void 0) { - return matchFiles(rootDir, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath); + return matchFiles(rootDir, extensions, excludes, includes, useCaseSensitiveFileNames2, currentDirectory, depth, getFileSystemEntries, realpath); } return host.readDirectory(rootDir, extensions, excludes, includes, depth); function getFileSystemEntries(dir) { @@ -112717,7 +114450,7 @@ function isIgnoredFileFromWildCardWatching({ program, extraFileExtensions, currentDirectory, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, writeLog, toPath: toPath3 }) { @@ -112733,7 +114466,7 @@ function isIgnoredFileFromWildCardWatching({ writeLog(`Project: ${configFileName} Detected file add/remove of non supported extension: ${fileOrDirectory}`); return true; } - if (isExcludedFile(fileOrDirectory, options.configFile.configFileSpecs, getNormalizedAbsolutePath(getDirectoryPath(configFileName), currentDirectory), useCaseSensitiveFileNames, currentDirectory)) { + if (isExcludedFile(fileOrDirectory, options.configFile.configFileSpecs, getNormalizedAbsolutePath(getDirectoryPath(configFileName), currentDirectory), useCaseSensitiveFileNames2, currentDirectory)) { writeLog(`Project: ${configFileName} Detected excluded file: ${fileOrDirectory}`); return true; } @@ -112790,7 +114523,7 @@ function getWatchFactory(host, watchLogLevel, log, getDetailWatchInfo) { function createExcludeHandlingAddWatch(key) { return (file, cb, flags, options, detailInfo1, detailInfo2) => { var _a; - return !matchesExclude(file, key === "watchFile" ? options == null ? void 0 : options.excludeFiles : options == null ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames(), ((_a = host.getCurrentDirectory) == null ? void 0 : _a.call(host)) || "") ? factory2[key].call( + return !matchesExclude(file, key === "watchFile" ? options == null ? void 0 : options.excludeFiles : options == null ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames2(), ((_a = host.getCurrentDirectory) == null ? void 0 : _a.call(host)) || "") ? factory2[key].call( /*thisArgs*/ void 0, file, @@ -112802,7 +114535,7 @@ function getWatchFactory(host, watchLogLevel, log, getDetailWatchInfo) { ) : excludeWatcherFactory(file, flags, options, detailInfo1, detailInfo2); }; } - function useCaseSensitiveFileNames() { + function useCaseSensitiveFileNames2() { return typeof host.useCaseSensitiveFileNames === "boolean" ? host.useCaseSensitiveFileNames : host.useCaseSensitiveFileNames(); } function createExcludeWatcherWithLogging(file, flags, options, detailInfo1, detailInfo2) { @@ -113588,7 +115321,7 @@ var plainJSErrors = /* @__PURE__ */ new Set([ Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code, Diagnostics.Duplicate_label_0.code, Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments.code, - Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block.code, + Diagnostics.for_await_loops_cannot_be_used_inside_a_class_static_block.code, Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code, Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code, Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code, @@ -113618,14 +115351,17 @@ var plainJSErrors = /* @__PURE__ */ new Set([ Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind.code, Diagnostics._0_modifier_cannot_be_used_here.code, Diagnostics._0_modifier_must_precede_1_modifier.code, - Diagnostics.const_declarations_can_only_be_declared_inside_a_block.code, - Diagnostics.const_declarations_must_be_initialized.code, + Diagnostics._0_declarations_can_only_be_declared_inside_a_block.code, + Diagnostics._0_declarations_must_be_initialized.code, Diagnostics.extends_clause_already_seen.code, - Diagnostics.let_declarations_can_only_be_declared_inside_a_block.code, Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code, Diagnostics.Class_constructor_may_not_be_a_generator.code, Diagnostics.Class_constructor_may_not_be_an_accessor.code, - Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code + Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code, + Diagnostics.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code, + Diagnostics.Private_field_0_must_be_declared_in_an_enclosing_class.code, + // Type errors + Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code ]); function shouldProgramCreateNewSourceFiles(program, newOptions) { if (!program) @@ -114374,13 +116110,13 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config sourceFileOptions, /*onError*/ void 0, - shouldCreateNewSourceFile || sourceFileOptions.impliedNodeFormat !== oldSourceFile.impliedNodeFormat + shouldCreateNewSourceFile ) : host.getSourceFile( oldSourceFile.fileName, sourceFileOptions, /*onError*/ void 0, - shouldCreateNewSourceFile || sourceFileOptions.impliedNodeFormat !== oldSourceFile.impliedNodeFormat + shouldCreateNewSourceFile ); if (!newSourceFile) { return 0 /* Not */; @@ -114431,7 +116167,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config structureIsReused = 1 /* SafeModules */; } else if (!arrayIsEqualTo(oldSourceFile.moduleAugmentations, newSourceFile.moduleAugmentations, moduleNameIsEqualTo)) { structureIsReused = 1 /* SafeModules */; - } else if ((oldSourceFile.flags & 6291456 /* PermanentlySetIncrementalFlags */) !== (newSourceFile.flags & 6291456 /* PermanentlySetIncrementalFlags */)) { + } else if ((oldSourceFile.flags & 12582912 /* PermanentlySetIncrementalFlags */) !== (newSourceFile.flags & 12582912 /* PermanentlySetIncrementalFlags */)) { structureIsReused = 1 /* SafeModules */; } else if (!arrayIsEqualTo(oldSourceFile.typeReferenceDirectives, newSourceFile.typeReferenceDirectives, fileReferenceIsEqualTo)) { structureIsReused = 1 /* SafeModules */; @@ -114822,89 +116558,97 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config return diagnostics; function walk(node, parent) { switch (parent.kind) { - case 168 /* Parameter */: - case 171 /* PropertyDeclaration */: - case 173 /* MethodDeclaration */: + case 169 /* Parameter */: + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: if (parent.questionToken === node) { diagnostics.push(createDiagnosticForNode2(node, Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, "?")); return "skip"; } - case 172 /* MethodSignature */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: - case 218 /* ArrowFunction */: - case 259 /* VariableDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 219 /* ArrowFunction */: + case 260 /* VariableDeclaration */: if (parent.type === node) { diagnostics.push(createDiagnosticForNode2(node, Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files)); return "skip"; } } switch (node.kind) { - case 272 /* ImportClause */: + case 273 /* ImportClause */: if (node.isTypeOnly) { diagnostics.push(createDiagnosticForNode2(parent, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, "import type")); return "skip"; } break; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: if (node.isTypeOnly) { diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, "export type")); return "skip"; } break; - case 275 /* ImportSpecifier */: - case 280 /* ExportSpecifier */: + case 276 /* ImportSpecifier */: + case 281 /* ExportSpecifier */: if (node.isTypeOnly) { diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, isImportSpecifier(node) ? "import...type" : "export...type")); return "skip"; } break; - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: diagnostics.push(createDiagnosticForNode2(node, Diagnostics.import_can_only_be_used_in_TypeScript_files)); return "skip"; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: if (node.isExportEquals) { diagnostics.push(createDiagnosticForNode2(node, Diagnostics.export_can_only_be_used_in_TypeScript_files)); return "skip"; } break; - case 297 /* HeritageClause */: + case 298 /* HeritageClause */: const heritageClause = node; if (heritageClause.token === 119 /* ImplementsKeyword */) { diagnostics.push(createDiagnosticForNode2(node, Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)); return "skip"; } break; - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: const interfaceKeyword = tokenToString(120 /* InterfaceKeyword */); Debug.assertIsDefined(interfaceKeyword); diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, interfaceKeyword)); return "skip"; - case 266 /* ModuleDeclaration */: - const moduleKeyword = node.flags & 16 /* Namespace */ ? tokenToString(145 /* NamespaceKeyword */) : tokenToString(144 /* ModuleKeyword */); + case 267 /* ModuleDeclaration */: + const moduleKeyword = node.flags & 32 /* Namespace */ ? tokenToString(145 /* NamespaceKeyword */) : tokenToString(144 /* ModuleKeyword */); Debug.assertIsDefined(moduleKeyword); diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, moduleKeyword)); return "skip"; - case 264 /* TypeAliasDeclaration */: + case 265 /* TypeAliasDeclaration */: diagnostics.push(createDiagnosticForNode2(node, Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)); return "skip"; - case 265 /* EnumDeclaration */: + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 262 /* FunctionDeclaration */: + if (!node.body) { + diagnostics.push(createDiagnosticForNode2(node, Diagnostics.Signature_declarations_can_only_be_used_in_TypeScript_files)); + return "skip"; + } + return; + case 266 /* EnumDeclaration */: const enumKeyword = Debug.checkDefined(tokenToString(94 /* EnumKeyword */)); diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, enumKeyword)); return "skip"; - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: diagnostics.push(createDiagnosticForNode2(node, Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)); return "skip"; - case 233 /* AsExpression */: + case 234 /* AsExpression */: diagnostics.push(createDiagnosticForNode2(node.type, Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)); return "skip"; - case 237 /* SatisfiesExpression */: + case 238 /* SatisfiesExpression */: diagnostics.push(createDiagnosticForNode2(node.type, Diagnostics.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)); return "skip"; - case 215 /* TypeAssertionExpression */: + case 216 /* TypeAssertionExpression */: Debug.fail(); } } @@ -114939,26 +116683,26 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config } } switch (parent.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 173 /* MethodDeclaration */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: - case 218 /* ArrowFunction */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 219 /* ArrowFunction */: if (nodes === parent.typeParameters) { diagnostics.push(createDiagnosticForNodeArray2(nodes, Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)); return "skip"; } - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: if (nodes === parent.modifiers) { - checkModifiers(parent.modifiers, parent.kind === 242 /* VariableStatement */); + checkModifiers(parent.modifiers, parent.kind === 243 /* VariableStatement */); return "skip"; } break; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: if (nodes === parent.modifiers) { for (const modifier of nodes) { if (isModifier(modifier) && modifier.kind !== 126 /* StaticKeyword */ && modifier.kind !== 129 /* AccessorKeyword */) { @@ -114968,18 +116712,18 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config return "skip"; } break; - case 168 /* Parameter */: + case 169 /* Parameter */: if (nodes === parent.modifiers && some(nodes, isModifier)) { diagnostics.push(createDiagnosticForNodeArray2(nodes, Diagnostics.Parameter_modifiers_can_only_be_used_in_TypeScript_files)); return "skip"; } break; - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 232 /* ExpressionWithTypeArguments */: - case 284 /* JsxSelfClosingElement */: - case 285 /* JsxOpeningElement */: - case 214 /* TaggedTemplateExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 233 /* ExpressionWithTypeArguments */: + case 285 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 215 /* TaggedTemplateExpression */: if (nodes === parent.typeArguments) { diagnostics.push(createDiagnosticForNodeArray2(nodes, Diagnostics.Type_arguments_can_only_be_used_in_TypeScript_files)); return "skip"; @@ -115000,7 +116744,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config case 148 /* ReadonlyKeyword */: case 138 /* DeclareKeyword */: case 128 /* AbstractKeyword */: - case 163 /* OverrideKeyword */: + case 164 /* OverrideKeyword */: case 103 /* InKeyword */: case 147 /* OutKeyword */: diagnostics.push(createDiagnosticForNode2(modifier, Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, tokenToString(modifier.kind))); @@ -115098,8 +116842,8 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config addInternalEmitFlags(importDecl, 2 /* NeverApplyImportHelper */); setParent(externalHelpersModuleReference, importDecl); setParent(importDecl, file); - externalHelpersModuleReference.flags &= ~8 /* Synthesized */; - importDecl.flags &= ~8 /* Synthesized */; + externalHelpersModuleReference.flags &= ~16 /* Synthesized */; + importDecl.flags &= ~16 /* Synthesized */; return externalHelpersModuleReference; } function collectExternalModuleReferences(file) { @@ -115128,7 +116872,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config ); } const shouldProcessRequires = isJavaScriptFile && shouldResolveJsRequire(options); - if (file.flags & 2097152 /* PossiblyContainsDynamicImport */ || shouldProcessRequires) { + if (file.flags & 4194304 /* PossiblyContainsDynamicImport */ || shouldProcessRequires) { collectDynamicImportOrRequireCalls(file); } file.imports = imports || emptyArray; @@ -115336,7 +117080,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config return typeof result === "object" ? { ...result, languageVersion, setExternalModuleIndicator: setExternalModuleIndicator2 } : { languageVersion, impliedNodeFormat: result, setExternalModuleIndicator: setExternalModuleIndicator2 }; } function findSourceFileWorker(fileName, isDefaultLib, ignoreNoDefaultLib, reason, packageId) { - var _a2, _b2; + var _a2; const path = toPath3(fileName); if (useSourceOfProjectReferenceRedirect) { let source = getSourceOfProjectReferenceRedirect(path); @@ -115415,7 +117159,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config Diagnostics.Cannot_read_file_0_Colon_1, [fileName, hostErrorMessage] ), - shouldCreateNewSourceFile || ((_a2 = oldProgram == null ? void 0 : oldProgram.getSourceFileByPath(toPath3(fileName))) == null ? void 0 : _a2.impliedNodeFormat) !== sourceFileOptions.impliedNodeFormat + shouldCreateNewSourceFile ); if (packageId) { const packageIdKey = packageIdToString(packageId); @@ -115440,7 +117184,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config file.path = path; file.resolvedPath = toPath3(fileName); file.originalFileName = originalFileName; - file.packageJsonLocations = ((_b2 = sourceFileOptions.packageJsonLocations) == null ? void 0 : _b2.length) ? sourceFileOptions.packageJsonLocations : void 0; + file.packageJsonLocations = ((_a2 = sourceFileOptions.packageJsonLocations) == null ? void 0 : _a2.length) ? sourceFileOptions.packageJsonLocations : void 0; file.packageJsonScope = sourceFileOptions.packageJsonScope; addFileIncludeReason(file, reason); if (host.useCaseSensitiveFileNames()) { @@ -115750,7 +117494,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config currentNodeModulesDepth++; } const elideImport = isJsFileFromNodeModules && currentNodeModulesDepth > maxNodeModuleJsDepth; - const shouldAddFile = resolvedFileName && !getResolutionDiagnostic(optionsForFile, resolution, file) && !optionsForFile.noResolve && index < file.imports.length && !elideImport && !(isJsFile && !getAllowJSCompilerOption(optionsForFile)) && (isInJSFile(file.imports[index]) || !(file.imports[index].flags & 8388608 /* JSDoc */)); + const shouldAddFile = resolvedFileName && !getResolutionDiagnostic(optionsForFile, resolution, file) && !optionsForFile.noResolve && index < file.imports.length && !elideImport && !(isJsFile && !getAllowJSCompilerOption(optionsForFile)) && (isInJSFile(file.imports[index]) || !(file.imports[index].flags & 16777216 /* JSDoc */)); if (elideImport) { modulesWithElidedImports.set(file.path, true); } else if (shouldAddFile) { @@ -116109,6 +117853,13 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config if (moduleResolution === 100 /* Bundler */ && !emitModuleKindIsNonNodeESM(moduleKind)) { createOptionValueDiagnostic("moduleResolution", Diagnostics.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later, "bundler"); } + if (ModuleKind[moduleKind] && (100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */) && !(3 /* Node16 */ <= moduleResolution && moduleResolution <= 99 /* NodeNext */)) { + const moduleKindName = ModuleKind[moduleKind]; + createOptionValueDiagnostic("moduleResolution", Diagnostics.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1, moduleKindName, moduleKindName); + } else if (ModuleResolutionKind[moduleResolution] && (3 /* Node16 */ <= moduleResolution && moduleResolution <= 99 /* NodeNext */) && !(100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */)) { + const moduleResolutionName = ModuleResolutionKind[moduleResolution]; + createOptionValueDiagnostic("module", Diagnostics.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1, moduleResolutionName, moduleResolutionName); + } if (!options.noEmit && !options.suppressOutputPathCheck) { const emitHost = getEmitHost(); const emitFilesSeen = /* @__PURE__ */ new Set(); @@ -116799,6 +118550,9 @@ function parseConfigHostFromCompilerHostLike(host, directoryStructureHost = host return directoryStructureHost.readDirectory(root, extensions, excludes, includes, depth); }, readFile: (f) => directoryStructureHost.readFile(f), + directoryExists: maybeBind(directoryStructureHost, directoryStructureHost.directoryExists), + getDirectories: maybeBind(directoryStructureHost, directoryStructureHost.getDirectories), + realpath: maybeBind(directoryStructureHost, directoryStructureHost.realpath), useCaseSensitiveFileNames: host.useCaseSensitiveFileNames(), getCurrentDirectory: () => host.getCurrentDirectory(), onUnRecoverableConfigFileDiagnostic: host.onUnRecoverableConfigFileDiagnostic || returnUndefined, @@ -119803,12 +121557,12 @@ function getMatchedIncludeSpec(program, fileName) { return true; const isJsonFile = fileExtensionIs(fileName, ".json" /* Json */); const basePath = getDirectoryPath(getNormalizedAbsolutePath(configFile.fileName, program.getCurrentDirectory())); - const useCaseSensitiveFileNames = program.useCaseSensitiveFileNames(); + const useCaseSensitiveFileNames2 = program.useCaseSensitiveFileNames(); return find((_b = configFile == null ? void 0 : configFile.configFileSpecs) == null ? void 0 : _b.validatedIncludeSpecs, (includeSpec) => { if (isJsonFile && !endsWith(includeSpec, ".json" /* Json */)) return false; const pattern = getPatternFromSpec(includeSpec, basePath, "files"); - return !!pattern && getRegexFromPattern(`(${pattern})$`, useCaseSensitiveFileNames).test(fileName); + return !!pattern && getRegexFromPattern(`(${pattern})$`, useCaseSensitiveFileNames2).test(fileName); }); } function fileIncludeReasonToDiagnostics(program, reason, fileNameConvertor) { @@ -120037,7 +121791,7 @@ function createWatchFactory(host, options) { return result; } function createCompilerHostFromProgramHost(host, getCompilerOptions, directoryStructureHost = host) { - const useCaseSensitiveFileNames = host.useCaseSensitiveFileNames(); + const useCaseSensitiveFileNames2 = host.useCaseSensitiveFileNames(); const compilerHost = { getSourceFile: createGetSourceFile( (fileName, encoding) => !encoding ? compilerHost.readFile(fileName) : host.readFile(fileName, encoding), @@ -120053,8 +121807,8 @@ function createCompilerHostFromProgramHost(host, getCompilerOptions, directorySt (path) => host.directoryExists(path) ), getCurrentDirectory: memoize(() => host.getCurrentDirectory()), - useCaseSensitiveFileNames: () => useCaseSensitiveFileNames, - getCanonicalFileName: createGetCanonicalFileName(useCaseSensitiveFileNames), + useCaseSensitiveFileNames: () => useCaseSensitiveFileNames2, + getCanonicalFileName: createGetCanonicalFileName(useCaseSensitiveFileNames2), getNewLine: () => getNewLineCharacter(getCompilerOptions()), fileExists: (f) => host.fileExists(f), readFile: (f) => host.readFile(f), @@ -120269,7 +122023,7 @@ function createWatchProgram(host) { const sourceFilesCache = /* @__PURE__ */ new Map(); let missingFilePathsRequestedForRelease; let hasChangedCompilerOptions = false; - const useCaseSensitiveFileNames = host.useCaseSensitiveFileNames(); + const useCaseSensitiveFileNames2 = host.useCaseSensitiveFileNames(); const currentDirectory = host.getCurrentDirectory(); const { configFileName, optionsToExtend: optionsToExtendForConfigFile = {}, watchOptionsToExtend, extraFileExtensions, createProgram: createProgram2 } = host; let { rootFiles: rootFileNames, options: compilerOptions, watchOptions, projectReferences } = host; @@ -120277,7 +122031,7 @@ function createWatchProgram(host) { let configFileParsingDiagnostics; let canConfigFileJsonReportNoInputFiles = false; let hasChangedConfigFileParsingErrors = false; - const cachedDirectoryStructureHost = configFileName === void 0 ? void 0 : createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensitiveFileNames); + const cachedDirectoryStructureHost = configFileName === void 0 ? void 0 : createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensitiveFileNames2); const directoryStructureHost = cachedDirectoryStructureHost || host; const parseConfigFileHost = parseConfigHostFromCompilerHostLike(host, directoryStructureHost); let newLine = updateNewLine(); @@ -120295,8 +122049,8 @@ function createWatchProgram(host) { Debug.assert(compilerOptions); Debug.assert(rootFileNames); const { watchFile: watchFile2, watchDirectory, writeLog } = createWatchFactory(host, compilerOptions); - const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames); - writeLog(`Current directory: ${currentDirectory} CaseSensitiveFileNames: ${useCaseSensitiveFileNames}`); + const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2); + writeLog(`Current directory: ${currentDirectory} CaseSensitiveFileNames: ${useCaseSensitiveFileNames2}`); let configFileWatcher; if (configFileName) { configFileWatcher = watchFile2(configFileName, scheduleProgramReload, 2e3 /* High */, watchOptions, WatchType.ConfigFile); @@ -120405,7 +122159,6 @@ function createWatchProgram(host) { if (hasChangedCompilerOptions) { newLine = updateNewLine(); if (program && changesAffectModuleResolution(program.getCompilerOptions(), compilerOptions)) { - debugger; resolutionCache.onChangesAffectModuleResolution(); } } @@ -120510,7 +122263,8 @@ function createWatchProgram(host) { if (isFileMissingOnHost(hostSourceFile)) { return void 0; } - if (hostSourceFile === void 0 || shouldCreateNewSourceFile || isFilePresenceUnknownOnHost(hostSourceFile)) { + const impliedNodeFormat = typeof languageVersionOrOptions === "object" ? languageVersionOrOptions.impliedNodeFormat : void 0; + if (hostSourceFile === void 0 || shouldCreateNewSourceFile || isFilePresenceUnknownOnHost(hostSourceFile) || hostSourceFile.sourceFile.impliedNodeFormat !== impliedNodeFormat) { const sourceFile = getNewSourceFile(fileName, languageVersionOrOptions, onError); if (hostSourceFile) { if (sourceFile) { @@ -120801,7 +122555,7 @@ function createWatchProgram(host) { options: compilerOptions, program: getCurrentBuilderProgram() || rootFileNames, currentDirectory, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, writeLog, toPath: toPath3 })) @@ -120891,7 +122645,7 @@ function createWatchProgram(host) { options: config.parsedCommandLine.options, program: config.parsedCommandLine.fileNames, currentDirectory, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, writeLog, toPath: toPath3 })) diff --git a/node_modules/typescript/lib/tsserver.js b/node_modules/typescript/lib/tsserver.js index 2329a12..382e1e2 100644 --- a/node_modules/typescript/lib/tsserver.js +++ b/node_modules/typescript/lib/tsserver.js @@ -59,6 +59,7 @@ __export(server_exports, { CompletionTriggerKind: () => CompletionTriggerKind, Completions: () => ts_Completions_exports, ConfigFileProgramReloadLevel: () => ConfigFileProgramReloadLevel, + ContainerFlags: () => ContainerFlags, ContextFlags: () => ContextFlags, CoreServicesShimHostAdapter: () => CoreServicesShimHostAdapter, Debug: () => Debug, @@ -88,6 +89,8 @@ __export(server_exports, { GetLiteralTextFlags: () => GetLiteralTextFlags, GoToDefinition: () => ts_GoToDefinition_exports, HighlightSpanKind: () => HighlightSpanKind, + IdentifierNameMap: () => IdentifierNameMap, + IdentifierNameMultiMap: () => IdentifierNameMultiMap, ImportKind: () => ImportKind, ImportsNotUsedAsValues: () => ImportsNotUsedAsValues, IndentStyle: () => IndentStyle, @@ -192,6 +195,7 @@ __export(server_exports, { WatchLogLevel: () => WatchLogLevel, WatchType: () => WatchType, accessPrivateIdentifier: () => accessPrivateIdentifier, + addDisposableResourceHelper: () => addDisposableResourceHelper, addEmitFlags: () => addEmitFlags, addEmitHelper: () => addEmitHelper, addEmitHelpers: () => addEmitHelpers, @@ -271,6 +275,9 @@ __export(server_exports, { changesAffectingProgramStructure: () => changesAffectingProgramStructure, childIsDecorated: () => childIsDecorated, classElementOrClassElementParameterIsDecorated: () => classElementOrClassElementParameterIsDecorated, + classHasClassThisAssignment: () => classHasClassThisAssignment, + classHasDeclaredOrExplicitlyAssignedName: () => classHasDeclaredOrExplicitlyAssignedName, + classHasExplicitlyAssignedName: () => classHasExplicitlyAssignedName, classOrConstructorParameterIsDecorated: () => classOrConstructorParameterIsDecorated, classPrivateFieldGetHelper: () => classPrivateFieldGetHelper, classPrivateFieldInHelper: () => classPrivateFieldInHelper, @@ -368,6 +375,8 @@ __export(server_exports, { createCacheWithRedirects: () => createCacheWithRedirects, createCacheableExportInfoMap: () => createCacheableExportInfoMap, createCachedDirectoryStructureHost: () => createCachedDirectoryStructureHost, + createClassNamedEvaluationHelperBlock: () => createClassNamedEvaluationHelperBlock, + createClassThisAssignmentBlock: () => createClassThisAssignmentBlock, createClassifier: () => createClassifier, createCommentDirectivesMap: () => createCommentDirectivesMap, createCompilerDiagnostic: () => createCompilerDiagnostic, @@ -500,6 +509,7 @@ __export(server_exports, { displayPart: () => displayPart, displayPartsToString: () => displayPartsToString, disposeEmitNodes: () => disposeEmitNodes, + disposeResourcesHelper: () => disposeResourcesHelper, documentSpansEqual: () => documentSpansEqual, dumpTracingLegend: () => dumpTracingLegend, elementAt: () => elementAt, @@ -577,7 +587,7 @@ __export(server_exports, { findPackageJsons: () => findPackageJsons, findPrecedingMatchingToken: () => findPrecedingMatchingToken, findPrecedingToken: () => findPrecedingToken, - findSuperStatementIndex: () => findSuperStatementIndex, + findSuperStatementIndexPath: () => findSuperStatementIndexPath, findTokenOnLeftOfPosition: () => findTokenOnLeftOfPosition, findUseStrictPrologue: () => findUseStrictPrologue, first: () => first, @@ -652,6 +662,7 @@ __export(server_exports, { getAreDeclarationMapsEnabled: () => getAreDeclarationMapsEnabled, getAssignedExpandoInitializer: () => getAssignedExpandoInitializer, getAssignedName: () => getAssignedName, + getAssignedNameOfIdentifier: () => getAssignedNameOfIdentifier, getAssignmentDeclarationKind: () => getAssignmentDeclarationKind, getAssignmentDeclarationPropertyAccessKind: () => getAssignmentDeclarationPropertyAccessKind, getAssignmentTargetKind: () => getAssignmentTargetKind, @@ -679,8 +690,10 @@ __export(server_exports, { getConditions: () => getConditions, getConfigFileParsingDiagnostics: () => getConfigFileParsingDiagnostics, getConstantValue: () => getConstantValue, + getContainerFlags: () => getContainerFlags, getContainerNode: () => getContainerNode, getContainingClass: () => getContainingClass, + getContainingClassExcludingClassDecorators: () => getContainingClassExcludingClassDecorators, getContainingClassStaticBlock: () => getContainingClassStaticBlock, getContainingFunction: () => getContainingFunction, getContainingFunctionDeclaration: () => getContainingFunctionDeclaration, @@ -738,7 +751,9 @@ __export(server_exports, { getEmitModuleKind: () => getEmitModuleKind, getEmitModuleResolutionKind: () => getEmitModuleResolutionKind, getEmitScriptTarget: () => getEmitScriptTarget, + getEmitStandardClassFields: () => getEmitStandardClassFields, getEnclosingBlockScopeContainer: () => getEnclosingBlockScopeContainer, + getEnclosingContainer: () => getEnclosingContainer, getEncodedSemanticClassifications: () => getEncodedSemanticClassifications, getEncodedSyntacticClassifications: () => getEncodedSyntacticClassifications, getEndLinePosition: () => getEndLinePosition, @@ -956,6 +971,7 @@ __export(server_exports, { getPropertyAssignmentAliasLikeExpression: () => getPropertyAssignmentAliasLikeExpression, getPropertyNameForPropertyNameNode: () => getPropertyNameForPropertyNameNode, getPropertyNameForUniqueESSymbol: () => getPropertyNameForUniqueESSymbol, + getPropertyNameFromType: () => getPropertyNameFromType, getPropertyNameOfBindingOrAssignmentElement: () => getPropertyNameOfBindingOrAssignmentElement, getPropertySymbolFromBindingElement: () => getPropertySymbolFromBindingElement, getPropertySymbolsFromContextualType: () => getPropertySymbolsFromContextualType, @@ -1136,6 +1152,8 @@ __export(server_exports, { indexOfNode: () => indexOfNode, indicesOf: () => indicesOf, inferredTypesContainingFile: () => inferredTypesContainingFile, + injectClassNamedEvaluationHelperBlockIfMissing: () => injectClassNamedEvaluationHelperBlockIfMissing, + injectClassThisAssignmentIfMissing: () => injectClassThisAssignmentIfMissing, insertImports: () => insertImports, insertLeadingStatement: () => insertLeadingStatement, insertSorted: () => insertSorted, @@ -1238,8 +1256,10 @@ __export(server_exports, { isClassExpression: () => isClassExpression, isClassLike: () => isClassLike, isClassMemberModifier: () => isClassMemberModifier, + isClassNamedEvaluationHelperBlock: () => isClassNamedEvaluationHelperBlock, isClassOrTypeElement: () => isClassOrTypeElement, isClassStaticBlockDeclaration: () => isClassStaticBlockDeclaration, + isClassThisAssignmentBlock: () => isClassThisAssignmentBlock, isCollapsedRange: () => isCollapsedRange, isColonToken: () => isColonToken, isCommaExpression: () => isCommaExpression, @@ -1285,6 +1305,7 @@ __export(server_exports, { isDiagnosticWithLocation: () => isDiagnosticWithLocation, isDiskPathRoot: () => isDiskPathRoot, isDoStatement: () => isDoStatement, + isDocumentRegistryEntry: () => isDocumentRegistryEntry, isDotDotDotToken: () => isDotDotDotToken, isDottedName: () => isDottedName, isDynamicName: () => isDynamicName, @@ -1335,6 +1356,7 @@ __export(server_exports, { isExternalModuleReference: () => isExternalModuleReference, isExternalModuleSymbol: () => isExternalModuleSymbol, isExternalOrCommonJsModule: () => isExternalOrCommonJsModule, + isFileLevelReservedGeneratedIdentifier: () => isFileLevelReservedGeneratedIdentifier, isFileLevelUniqueName: () => isFileLevelUniqueName, isFileProbablyExternalModule: () => isFileProbablyExternalModule, isFirstDeclarationOfSymbolParameter: () => isFirstDeclarationOfSymbolParameter, @@ -1405,6 +1427,7 @@ __export(server_exports, { isInString: () => isInString, isInTemplateString: () => isInTemplateString, isInTopLevelContext: () => isInTopLevelContext, + isInTypeQuery: () => isInTypeQuery, isIncrementalCompilation: () => isIncrementalCompilation, isIndexSignatureDeclaration: () => isIndexSignatureDeclaration, isIndexedAccessTypeNode: () => isIndexedAccessTypeNode, @@ -1782,6 +1805,7 @@ __export(server_exports, { isTypeQueryNode: () => isTypeQueryNode, isTypeReferenceNode: () => isTypeReferenceNode, isTypeReferenceType: () => isTypeReferenceType, + isTypeUsableAsPropertyName: () => isTypeUsableAsPropertyName, isUMDExportSymbol: () => isUMDExportSymbol, isUnaryExpression: () => isUnaryExpression, isUnaryExpressionWithWrite: () => isUnaryExpressionWithWrite, @@ -1796,7 +1820,9 @@ __export(server_exports, { isValidESSymbolDeclaration: () => isValidESSymbolDeclaration, isValidTypeOnlyAliasUseSite: () => isValidTypeOnlyAliasUseSite, isValueSignatureDeclaration: () => isValueSignatureDeclaration, + isVarAwaitUsing: () => isVarAwaitUsing, isVarConst: () => isVarConst, + isVarUsing: () => isVarUsing, isVariableDeclaration: () => isVariableDeclaration, isVariableDeclarationInVariableStatement: () => isVariableDeclarationInVariableStatement, isVariableDeclarationInitializedToBareOrAccessedRequire: () => isVariableDeclarationInitializedToBareOrAccessedRequire, @@ -2208,6 +2234,7 @@ __export(server_exports, { transformJsx: () => transformJsx, transformLegacyDecorators: () => transformLegacyDecorators, transformModule: () => transformModule, + transformNamedEvaluation: () => transformNamedEvaluation, transformNodeModule: () => transformNodeModule, transformNodes: () => transformNodes, transformSystemModule: () => transformSystemModule, @@ -2303,8 +2330,8 @@ __export(server_exports, { module.exports = __toCommonJS(server_exports); // src/compiler/corePublic.ts -var versionMajorMinor = "5.1"; -var version = "5.1.6"; +var versionMajorMinor = "5.2"; +var version = "5.2.2"; var Comparison = /* @__PURE__ */ ((Comparison3) => { Comparison3[Comparison3["LessThan"] = -1] = "LessThan"; Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo"; @@ -3473,7 +3500,7 @@ function identity(x) { function toLowerCase(x) { return x.toLowerCase(); } -var fileNameLowerCaseRegExp = /[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g; +var fileNameLowerCaseRegExp = /[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g; function toFileNameLowerCase(x) { return fileNameLowerCaseRegExp.test(x) ? x.replace(fileNameLowerCaseRegExp, toLowerCase) : x; } @@ -3816,8 +3843,8 @@ function unorderedRemoveFirstItemWhere(array, predicate) { } return false; } -function createGetCanonicalFileName(useCaseSensitiveFileNames) { - return useCaseSensitiveFileNames ? identity : toFileNameLowerCase; +function createGetCanonicalFileName(useCaseSensitiveFileNames2) { + return useCaseSensitiveFileNames2 ? identity : toFileNameLowerCase; } function patternText({ prefix, suffix }) { return `${prefix}*${suffix}`; @@ -4005,10 +4032,10 @@ var Debug; } Debug2.log = log; ((_log) => { - function error(s) { + function error2(s) { logMessage(1 /* Error */, s); } - _log.error = error; + _log.error = error2; function warn(s) { logMessage(2 /* Warning */, s); } @@ -4208,7 +4235,7 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`, return func.name; } else { const text = Function.prototype.toString.call(func); - const match = /^function\s+([\w\$]+)\s*\(/.exec(text); + const match = /^function\s+([\w$]+)\s*\(/.exec(text); return match ? match[1] : ""; } } @@ -4282,6 +4309,15 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`, ); } Debug2.formatSnippetKind = formatSnippetKind; + function formatScriptKind(kind) { + return formatEnum( + kind, + ScriptKind, + /*isFlags*/ + false + ); + } + Debug2.formatScriptKind = formatScriptKind; function formatNodeFlags(flags) { return formatEnum( flags, @@ -4982,13 +5018,13 @@ ${lanes.join("\n")} })(Debug || (Debug = {})); // src/compiler/semver.ts -var versionRegExp = /^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i; +var versionRegExp = /^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i; var prereleaseRegExp = /^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i; var prereleasePartRegExp = /^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i; var buildRegExp = /^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i; var buildPartRegExp = /^[a-z0-9-]+$/i; var numericIdentifierRegExp = /^(0|[1-9]\d*)$/; -var _Version = class { +var _Version = class _Version { constructor(major, minor = 0, patch = 0, prerelease = "", build2 = "") { if (typeof major === "string") { const result = Debug.checkDefined(tryParseComponents(major), "Invalid version"); @@ -5052,8 +5088,8 @@ var _Version = class { return result; } }; +_Version.zero = new _Version(0, 0, 0, ["0"]); var Version = _Version; -Version.zero = new _Version(0, 0, 0, ["0"]); function tryParseComponents(text) { const match = versionRegExp.exec(text); if (!match) @@ -5100,14 +5136,14 @@ function comparePrereleaseIdentifiers(left, right) { } return compareValues(left.length, right.length); } -var VersionRange = class { +var VersionRange = class _VersionRange { constructor(spec) { this._alternatives = spec ? Debug.checkDefined(parseRange(spec), "Invalid range spec.") : emptyArray; } static tryParse(text) { const sets = parseRange(text); if (sets) { - const range = new VersionRange(""); + const range = new _VersionRange(""); range._alternatives = sets; return range; } @@ -5895,210 +5931,211 @@ var SyntaxKind = /* @__PURE__ */ ((SyntaxKind5) => { SyntaxKind5[SyntaxKind5["UndefinedKeyword"] = 157] = "UndefinedKeyword"; SyntaxKind5[SyntaxKind5["UniqueKeyword"] = 158] = "UniqueKeyword"; SyntaxKind5[SyntaxKind5["UnknownKeyword"] = 159] = "UnknownKeyword"; - SyntaxKind5[SyntaxKind5["FromKeyword"] = 160] = "FromKeyword"; - SyntaxKind5[SyntaxKind5["GlobalKeyword"] = 161] = "GlobalKeyword"; - SyntaxKind5[SyntaxKind5["BigIntKeyword"] = 162] = "BigIntKeyword"; - SyntaxKind5[SyntaxKind5["OverrideKeyword"] = 163] = "OverrideKeyword"; - SyntaxKind5[SyntaxKind5["OfKeyword"] = 164] = "OfKeyword"; - SyntaxKind5[SyntaxKind5["QualifiedName"] = 165] = "QualifiedName"; - SyntaxKind5[SyntaxKind5["ComputedPropertyName"] = 166] = "ComputedPropertyName"; - SyntaxKind5[SyntaxKind5["TypeParameter"] = 167] = "TypeParameter"; - SyntaxKind5[SyntaxKind5["Parameter"] = 168] = "Parameter"; - SyntaxKind5[SyntaxKind5["Decorator"] = 169] = "Decorator"; - SyntaxKind5[SyntaxKind5["PropertySignature"] = 170] = "PropertySignature"; - SyntaxKind5[SyntaxKind5["PropertyDeclaration"] = 171] = "PropertyDeclaration"; - SyntaxKind5[SyntaxKind5["MethodSignature"] = 172] = "MethodSignature"; - SyntaxKind5[SyntaxKind5["MethodDeclaration"] = 173] = "MethodDeclaration"; - SyntaxKind5[SyntaxKind5["ClassStaticBlockDeclaration"] = 174] = "ClassStaticBlockDeclaration"; - SyntaxKind5[SyntaxKind5["Constructor"] = 175] = "Constructor"; - SyntaxKind5[SyntaxKind5["GetAccessor"] = 176] = "GetAccessor"; - SyntaxKind5[SyntaxKind5["SetAccessor"] = 177] = "SetAccessor"; - SyntaxKind5[SyntaxKind5["CallSignature"] = 178] = "CallSignature"; - SyntaxKind5[SyntaxKind5["ConstructSignature"] = 179] = "ConstructSignature"; - SyntaxKind5[SyntaxKind5["IndexSignature"] = 180] = "IndexSignature"; - SyntaxKind5[SyntaxKind5["TypePredicate"] = 181] = "TypePredicate"; - SyntaxKind5[SyntaxKind5["TypeReference"] = 182] = "TypeReference"; - SyntaxKind5[SyntaxKind5["FunctionType"] = 183] = "FunctionType"; - SyntaxKind5[SyntaxKind5["ConstructorType"] = 184] = "ConstructorType"; - SyntaxKind5[SyntaxKind5["TypeQuery"] = 185] = "TypeQuery"; - SyntaxKind5[SyntaxKind5["TypeLiteral"] = 186] = "TypeLiteral"; - SyntaxKind5[SyntaxKind5["ArrayType"] = 187] = "ArrayType"; - SyntaxKind5[SyntaxKind5["TupleType"] = 188] = "TupleType"; - SyntaxKind5[SyntaxKind5["OptionalType"] = 189] = "OptionalType"; - SyntaxKind5[SyntaxKind5["RestType"] = 190] = "RestType"; - SyntaxKind5[SyntaxKind5["UnionType"] = 191] = "UnionType"; - SyntaxKind5[SyntaxKind5["IntersectionType"] = 192] = "IntersectionType"; - SyntaxKind5[SyntaxKind5["ConditionalType"] = 193] = "ConditionalType"; - SyntaxKind5[SyntaxKind5["InferType"] = 194] = "InferType"; - SyntaxKind5[SyntaxKind5["ParenthesizedType"] = 195] = "ParenthesizedType"; - SyntaxKind5[SyntaxKind5["ThisType"] = 196] = "ThisType"; - SyntaxKind5[SyntaxKind5["TypeOperator"] = 197] = "TypeOperator"; - SyntaxKind5[SyntaxKind5["IndexedAccessType"] = 198] = "IndexedAccessType"; - SyntaxKind5[SyntaxKind5["MappedType"] = 199] = "MappedType"; - SyntaxKind5[SyntaxKind5["LiteralType"] = 200] = "LiteralType"; - SyntaxKind5[SyntaxKind5["NamedTupleMember"] = 201] = "NamedTupleMember"; - SyntaxKind5[SyntaxKind5["TemplateLiteralType"] = 202] = "TemplateLiteralType"; - SyntaxKind5[SyntaxKind5["TemplateLiteralTypeSpan"] = 203] = "TemplateLiteralTypeSpan"; - SyntaxKind5[SyntaxKind5["ImportType"] = 204] = "ImportType"; - SyntaxKind5[SyntaxKind5["ObjectBindingPattern"] = 205] = "ObjectBindingPattern"; - SyntaxKind5[SyntaxKind5["ArrayBindingPattern"] = 206] = "ArrayBindingPattern"; - SyntaxKind5[SyntaxKind5["BindingElement"] = 207] = "BindingElement"; - SyntaxKind5[SyntaxKind5["ArrayLiteralExpression"] = 208] = "ArrayLiteralExpression"; - SyntaxKind5[SyntaxKind5["ObjectLiteralExpression"] = 209] = "ObjectLiteralExpression"; - SyntaxKind5[SyntaxKind5["PropertyAccessExpression"] = 210] = "PropertyAccessExpression"; - SyntaxKind5[SyntaxKind5["ElementAccessExpression"] = 211] = "ElementAccessExpression"; - SyntaxKind5[SyntaxKind5["CallExpression"] = 212] = "CallExpression"; - SyntaxKind5[SyntaxKind5["NewExpression"] = 213] = "NewExpression"; - SyntaxKind5[SyntaxKind5["TaggedTemplateExpression"] = 214] = "TaggedTemplateExpression"; - SyntaxKind5[SyntaxKind5["TypeAssertionExpression"] = 215] = "TypeAssertionExpression"; - SyntaxKind5[SyntaxKind5["ParenthesizedExpression"] = 216] = "ParenthesizedExpression"; - SyntaxKind5[SyntaxKind5["FunctionExpression"] = 217] = "FunctionExpression"; - SyntaxKind5[SyntaxKind5["ArrowFunction"] = 218] = "ArrowFunction"; - SyntaxKind5[SyntaxKind5["DeleteExpression"] = 219] = "DeleteExpression"; - SyntaxKind5[SyntaxKind5["TypeOfExpression"] = 220] = "TypeOfExpression"; - SyntaxKind5[SyntaxKind5["VoidExpression"] = 221] = "VoidExpression"; - SyntaxKind5[SyntaxKind5["AwaitExpression"] = 222] = "AwaitExpression"; - SyntaxKind5[SyntaxKind5["PrefixUnaryExpression"] = 223] = "PrefixUnaryExpression"; - SyntaxKind5[SyntaxKind5["PostfixUnaryExpression"] = 224] = "PostfixUnaryExpression"; - SyntaxKind5[SyntaxKind5["BinaryExpression"] = 225] = "BinaryExpression"; - SyntaxKind5[SyntaxKind5["ConditionalExpression"] = 226] = "ConditionalExpression"; - SyntaxKind5[SyntaxKind5["TemplateExpression"] = 227] = "TemplateExpression"; - SyntaxKind5[SyntaxKind5["YieldExpression"] = 228] = "YieldExpression"; - SyntaxKind5[SyntaxKind5["SpreadElement"] = 229] = "SpreadElement"; - SyntaxKind5[SyntaxKind5["ClassExpression"] = 230] = "ClassExpression"; - SyntaxKind5[SyntaxKind5["OmittedExpression"] = 231] = "OmittedExpression"; - SyntaxKind5[SyntaxKind5["ExpressionWithTypeArguments"] = 232] = "ExpressionWithTypeArguments"; - SyntaxKind5[SyntaxKind5["AsExpression"] = 233] = "AsExpression"; - SyntaxKind5[SyntaxKind5["NonNullExpression"] = 234] = "NonNullExpression"; - SyntaxKind5[SyntaxKind5["MetaProperty"] = 235] = "MetaProperty"; - SyntaxKind5[SyntaxKind5["SyntheticExpression"] = 236] = "SyntheticExpression"; - SyntaxKind5[SyntaxKind5["SatisfiesExpression"] = 237] = "SatisfiesExpression"; - SyntaxKind5[SyntaxKind5["TemplateSpan"] = 238] = "TemplateSpan"; - SyntaxKind5[SyntaxKind5["SemicolonClassElement"] = 239] = "SemicolonClassElement"; - SyntaxKind5[SyntaxKind5["Block"] = 240] = "Block"; - SyntaxKind5[SyntaxKind5["EmptyStatement"] = 241] = "EmptyStatement"; - SyntaxKind5[SyntaxKind5["VariableStatement"] = 242] = "VariableStatement"; - SyntaxKind5[SyntaxKind5["ExpressionStatement"] = 243] = "ExpressionStatement"; - SyntaxKind5[SyntaxKind5["IfStatement"] = 244] = "IfStatement"; - SyntaxKind5[SyntaxKind5["DoStatement"] = 245] = "DoStatement"; - SyntaxKind5[SyntaxKind5["WhileStatement"] = 246] = "WhileStatement"; - SyntaxKind5[SyntaxKind5["ForStatement"] = 247] = "ForStatement"; - SyntaxKind5[SyntaxKind5["ForInStatement"] = 248] = "ForInStatement"; - SyntaxKind5[SyntaxKind5["ForOfStatement"] = 249] = "ForOfStatement"; - SyntaxKind5[SyntaxKind5["ContinueStatement"] = 250] = "ContinueStatement"; - SyntaxKind5[SyntaxKind5["BreakStatement"] = 251] = "BreakStatement"; - SyntaxKind5[SyntaxKind5["ReturnStatement"] = 252] = "ReturnStatement"; - SyntaxKind5[SyntaxKind5["WithStatement"] = 253] = "WithStatement"; - SyntaxKind5[SyntaxKind5["SwitchStatement"] = 254] = "SwitchStatement"; - SyntaxKind5[SyntaxKind5["LabeledStatement"] = 255] = "LabeledStatement"; - SyntaxKind5[SyntaxKind5["ThrowStatement"] = 256] = "ThrowStatement"; - SyntaxKind5[SyntaxKind5["TryStatement"] = 257] = "TryStatement"; - SyntaxKind5[SyntaxKind5["DebuggerStatement"] = 258] = "DebuggerStatement"; - SyntaxKind5[SyntaxKind5["VariableDeclaration"] = 259] = "VariableDeclaration"; - SyntaxKind5[SyntaxKind5["VariableDeclarationList"] = 260] = "VariableDeclarationList"; - SyntaxKind5[SyntaxKind5["FunctionDeclaration"] = 261] = "FunctionDeclaration"; - SyntaxKind5[SyntaxKind5["ClassDeclaration"] = 262] = "ClassDeclaration"; - SyntaxKind5[SyntaxKind5["InterfaceDeclaration"] = 263] = "InterfaceDeclaration"; - SyntaxKind5[SyntaxKind5["TypeAliasDeclaration"] = 264] = "TypeAliasDeclaration"; - SyntaxKind5[SyntaxKind5["EnumDeclaration"] = 265] = "EnumDeclaration"; - SyntaxKind5[SyntaxKind5["ModuleDeclaration"] = 266] = "ModuleDeclaration"; - SyntaxKind5[SyntaxKind5["ModuleBlock"] = 267] = "ModuleBlock"; - SyntaxKind5[SyntaxKind5["CaseBlock"] = 268] = "CaseBlock"; - SyntaxKind5[SyntaxKind5["NamespaceExportDeclaration"] = 269] = "NamespaceExportDeclaration"; - SyntaxKind5[SyntaxKind5["ImportEqualsDeclaration"] = 270] = "ImportEqualsDeclaration"; - SyntaxKind5[SyntaxKind5["ImportDeclaration"] = 271] = "ImportDeclaration"; - SyntaxKind5[SyntaxKind5["ImportClause"] = 272] = "ImportClause"; - SyntaxKind5[SyntaxKind5["NamespaceImport"] = 273] = "NamespaceImport"; - SyntaxKind5[SyntaxKind5["NamedImports"] = 274] = "NamedImports"; - SyntaxKind5[SyntaxKind5["ImportSpecifier"] = 275] = "ImportSpecifier"; - SyntaxKind5[SyntaxKind5["ExportAssignment"] = 276] = "ExportAssignment"; - SyntaxKind5[SyntaxKind5["ExportDeclaration"] = 277] = "ExportDeclaration"; - SyntaxKind5[SyntaxKind5["NamedExports"] = 278] = "NamedExports"; - SyntaxKind5[SyntaxKind5["NamespaceExport"] = 279] = "NamespaceExport"; - SyntaxKind5[SyntaxKind5["ExportSpecifier"] = 280] = "ExportSpecifier"; - SyntaxKind5[SyntaxKind5["MissingDeclaration"] = 281] = "MissingDeclaration"; - SyntaxKind5[SyntaxKind5["ExternalModuleReference"] = 282] = "ExternalModuleReference"; - SyntaxKind5[SyntaxKind5["JsxElement"] = 283] = "JsxElement"; - SyntaxKind5[SyntaxKind5["JsxSelfClosingElement"] = 284] = "JsxSelfClosingElement"; - SyntaxKind5[SyntaxKind5["JsxOpeningElement"] = 285] = "JsxOpeningElement"; - SyntaxKind5[SyntaxKind5["JsxClosingElement"] = 286] = "JsxClosingElement"; - SyntaxKind5[SyntaxKind5["JsxFragment"] = 287] = "JsxFragment"; - SyntaxKind5[SyntaxKind5["JsxOpeningFragment"] = 288] = "JsxOpeningFragment"; - SyntaxKind5[SyntaxKind5["JsxClosingFragment"] = 289] = "JsxClosingFragment"; - SyntaxKind5[SyntaxKind5["JsxAttribute"] = 290] = "JsxAttribute"; - SyntaxKind5[SyntaxKind5["JsxAttributes"] = 291] = "JsxAttributes"; - SyntaxKind5[SyntaxKind5["JsxSpreadAttribute"] = 292] = "JsxSpreadAttribute"; - SyntaxKind5[SyntaxKind5["JsxExpression"] = 293] = "JsxExpression"; - SyntaxKind5[SyntaxKind5["JsxNamespacedName"] = 294] = "JsxNamespacedName"; - SyntaxKind5[SyntaxKind5["CaseClause"] = 295] = "CaseClause"; - SyntaxKind5[SyntaxKind5["DefaultClause"] = 296] = "DefaultClause"; - SyntaxKind5[SyntaxKind5["HeritageClause"] = 297] = "HeritageClause"; - SyntaxKind5[SyntaxKind5["CatchClause"] = 298] = "CatchClause"; - SyntaxKind5[SyntaxKind5["AssertClause"] = 299] = "AssertClause"; - SyntaxKind5[SyntaxKind5["AssertEntry"] = 300] = "AssertEntry"; - SyntaxKind5[SyntaxKind5["ImportTypeAssertionContainer"] = 301] = "ImportTypeAssertionContainer"; - SyntaxKind5[SyntaxKind5["PropertyAssignment"] = 302] = "PropertyAssignment"; - SyntaxKind5[SyntaxKind5["ShorthandPropertyAssignment"] = 303] = "ShorthandPropertyAssignment"; - SyntaxKind5[SyntaxKind5["SpreadAssignment"] = 304] = "SpreadAssignment"; - SyntaxKind5[SyntaxKind5["EnumMember"] = 305] = "EnumMember"; - SyntaxKind5[SyntaxKind5["UnparsedPrologue"] = 306] = "UnparsedPrologue"; - SyntaxKind5[SyntaxKind5["UnparsedPrepend"] = 307] = "UnparsedPrepend"; - SyntaxKind5[SyntaxKind5["UnparsedText"] = 308] = "UnparsedText"; - SyntaxKind5[SyntaxKind5["UnparsedInternalText"] = 309] = "UnparsedInternalText"; - SyntaxKind5[SyntaxKind5["UnparsedSyntheticReference"] = 310] = "UnparsedSyntheticReference"; - SyntaxKind5[SyntaxKind5["SourceFile"] = 311] = "SourceFile"; - SyntaxKind5[SyntaxKind5["Bundle"] = 312] = "Bundle"; - SyntaxKind5[SyntaxKind5["UnparsedSource"] = 313] = "UnparsedSource"; - SyntaxKind5[SyntaxKind5["InputFiles"] = 314] = "InputFiles"; - SyntaxKind5[SyntaxKind5["JSDocTypeExpression"] = 315] = "JSDocTypeExpression"; - SyntaxKind5[SyntaxKind5["JSDocNameReference"] = 316] = "JSDocNameReference"; - SyntaxKind5[SyntaxKind5["JSDocMemberName"] = 317] = "JSDocMemberName"; - SyntaxKind5[SyntaxKind5["JSDocAllType"] = 318] = "JSDocAllType"; - SyntaxKind5[SyntaxKind5["JSDocUnknownType"] = 319] = "JSDocUnknownType"; - SyntaxKind5[SyntaxKind5["JSDocNullableType"] = 320] = "JSDocNullableType"; - SyntaxKind5[SyntaxKind5["JSDocNonNullableType"] = 321] = "JSDocNonNullableType"; - SyntaxKind5[SyntaxKind5["JSDocOptionalType"] = 322] = "JSDocOptionalType"; - SyntaxKind5[SyntaxKind5["JSDocFunctionType"] = 323] = "JSDocFunctionType"; - SyntaxKind5[SyntaxKind5["JSDocVariadicType"] = 324] = "JSDocVariadicType"; - SyntaxKind5[SyntaxKind5["JSDocNamepathType"] = 325] = "JSDocNamepathType"; - SyntaxKind5[SyntaxKind5["JSDoc"] = 326] = "JSDoc"; - SyntaxKind5[SyntaxKind5["JSDocComment"] = 326 /* JSDoc */] = "JSDocComment"; - SyntaxKind5[SyntaxKind5["JSDocText"] = 327] = "JSDocText"; - SyntaxKind5[SyntaxKind5["JSDocTypeLiteral"] = 328] = "JSDocTypeLiteral"; - SyntaxKind5[SyntaxKind5["JSDocSignature"] = 329] = "JSDocSignature"; - SyntaxKind5[SyntaxKind5["JSDocLink"] = 330] = "JSDocLink"; - SyntaxKind5[SyntaxKind5["JSDocLinkCode"] = 331] = "JSDocLinkCode"; - SyntaxKind5[SyntaxKind5["JSDocLinkPlain"] = 332] = "JSDocLinkPlain"; - SyntaxKind5[SyntaxKind5["JSDocTag"] = 333] = "JSDocTag"; - SyntaxKind5[SyntaxKind5["JSDocAugmentsTag"] = 334] = "JSDocAugmentsTag"; - SyntaxKind5[SyntaxKind5["JSDocImplementsTag"] = 335] = "JSDocImplementsTag"; - SyntaxKind5[SyntaxKind5["JSDocAuthorTag"] = 336] = "JSDocAuthorTag"; - SyntaxKind5[SyntaxKind5["JSDocDeprecatedTag"] = 337] = "JSDocDeprecatedTag"; - SyntaxKind5[SyntaxKind5["JSDocClassTag"] = 338] = "JSDocClassTag"; - SyntaxKind5[SyntaxKind5["JSDocPublicTag"] = 339] = "JSDocPublicTag"; - SyntaxKind5[SyntaxKind5["JSDocPrivateTag"] = 340] = "JSDocPrivateTag"; - SyntaxKind5[SyntaxKind5["JSDocProtectedTag"] = 341] = "JSDocProtectedTag"; - SyntaxKind5[SyntaxKind5["JSDocReadonlyTag"] = 342] = "JSDocReadonlyTag"; - SyntaxKind5[SyntaxKind5["JSDocOverrideTag"] = 343] = "JSDocOverrideTag"; - SyntaxKind5[SyntaxKind5["JSDocCallbackTag"] = 344] = "JSDocCallbackTag"; - SyntaxKind5[SyntaxKind5["JSDocOverloadTag"] = 345] = "JSDocOverloadTag"; - SyntaxKind5[SyntaxKind5["JSDocEnumTag"] = 346] = "JSDocEnumTag"; - SyntaxKind5[SyntaxKind5["JSDocParameterTag"] = 347] = "JSDocParameterTag"; - SyntaxKind5[SyntaxKind5["JSDocReturnTag"] = 348] = "JSDocReturnTag"; - SyntaxKind5[SyntaxKind5["JSDocThisTag"] = 349] = "JSDocThisTag"; - SyntaxKind5[SyntaxKind5["JSDocTypeTag"] = 350] = "JSDocTypeTag"; - SyntaxKind5[SyntaxKind5["JSDocTemplateTag"] = 351] = "JSDocTemplateTag"; - SyntaxKind5[SyntaxKind5["JSDocTypedefTag"] = 352] = "JSDocTypedefTag"; - SyntaxKind5[SyntaxKind5["JSDocSeeTag"] = 353] = "JSDocSeeTag"; - SyntaxKind5[SyntaxKind5["JSDocPropertyTag"] = 354] = "JSDocPropertyTag"; - SyntaxKind5[SyntaxKind5["JSDocThrowsTag"] = 355] = "JSDocThrowsTag"; - SyntaxKind5[SyntaxKind5["JSDocSatisfiesTag"] = 356] = "JSDocSatisfiesTag"; - SyntaxKind5[SyntaxKind5["SyntaxList"] = 357] = "SyntaxList"; - SyntaxKind5[SyntaxKind5["NotEmittedStatement"] = 358] = "NotEmittedStatement"; - SyntaxKind5[SyntaxKind5["PartiallyEmittedExpression"] = 359] = "PartiallyEmittedExpression"; - SyntaxKind5[SyntaxKind5["CommaListExpression"] = 360] = "CommaListExpression"; - SyntaxKind5[SyntaxKind5["SyntheticReferenceExpression"] = 361] = "SyntheticReferenceExpression"; - SyntaxKind5[SyntaxKind5["Count"] = 362] = "Count"; + SyntaxKind5[SyntaxKind5["UsingKeyword"] = 160] = "UsingKeyword"; + SyntaxKind5[SyntaxKind5["FromKeyword"] = 161] = "FromKeyword"; + SyntaxKind5[SyntaxKind5["GlobalKeyword"] = 162] = "GlobalKeyword"; + SyntaxKind5[SyntaxKind5["BigIntKeyword"] = 163] = "BigIntKeyword"; + SyntaxKind5[SyntaxKind5["OverrideKeyword"] = 164] = "OverrideKeyword"; + SyntaxKind5[SyntaxKind5["OfKeyword"] = 165] = "OfKeyword"; + SyntaxKind5[SyntaxKind5["QualifiedName"] = 166] = "QualifiedName"; + SyntaxKind5[SyntaxKind5["ComputedPropertyName"] = 167] = "ComputedPropertyName"; + SyntaxKind5[SyntaxKind5["TypeParameter"] = 168] = "TypeParameter"; + SyntaxKind5[SyntaxKind5["Parameter"] = 169] = "Parameter"; + SyntaxKind5[SyntaxKind5["Decorator"] = 170] = "Decorator"; + SyntaxKind5[SyntaxKind5["PropertySignature"] = 171] = "PropertySignature"; + SyntaxKind5[SyntaxKind5["PropertyDeclaration"] = 172] = "PropertyDeclaration"; + SyntaxKind5[SyntaxKind5["MethodSignature"] = 173] = "MethodSignature"; + SyntaxKind5[SyntaxKind5["MethodDeclaration"] = 174] = "MethodDeclaration"; + SyntaxKind5[SyntaxKind5["ClassStaticBlockDeclaration"] = 175] = "ClassStaticBlockDeclaration"; + SyntaxKind5[SyntaxKind5["Constructor"] = 176] = "Constructor"; + SyntaxKind5[SyntaxKind5["GetAccessor"] = 177] = "GetAccessor"; + SyntaxKind5[SyntaxKind5["SetAccessor"] = 178] = "SetAccessor"; + SyntaxKind5[SyntaxKind5["CallSignature"] = 179] = "CallSignature"; + SyntaxKind5[SyntaxKind5["ConstructSignature"] = 180] = "ConstructSignature"; + SyntaxKind5[SyntaxKind5["IndexSignature"] = 181] = "IndexSignature"; + SyntaxKind5[SyntaxKind5["TypePredicate"] = 182] = "TypePredicate"; + SyntaxKind5[SyntaxKind5["TypeReference"] = 183] = "TypeReference"; + SyntaxKind5[SyntaxKind5["FunctionType"] = 184] = "FunctionType"; + SyntaxKind5[SyntaxKind5["ConstructorType"] = 185] = "ConstructorType"; + SyntaxKind5[SyntaxKind5["TypeQuery"] = 186] = "TypeQuery"; + SyntaxKind5[SyntaxKind5["TypeLiteral"] = 187] = "TypeLiteral"; + SyntaxKind5[SyntaxKind5["ArrayType"] = 188] = "ArrayType"; + SyntaxKind5[SyntaxKind5["TupleType"] = 189] = "TupleType"; + SyntaxKind5[SyntaxKind5["OptionalType"] = 190] = "OptionalType"; + SyntaxKind5[SyntaxKind5["RestType"] = 191] = "RestType"; + SyntaxKind5[SyntaxKind5["UnionType"] = 192] = "UnionType"; + SyntaxKind5[SyntaxKind5["IntersectionType"] = 193] = "IntersectionType"; + SyntaxKind5[SyntaxKind5["ConditionalType"] = 194] = "ConditionalType"; + SyntaxKind5[SyntaxKind5["InferType"] = 195] = "InferType"; + SyntaxKind5[SyntaxKind5["ParenthesizedType"] = 196] = "ParenthesizedType"; + SyntaxKind5[SyntaxKind5["ThisType"] = 197] = "ThisType"; + SyntaxKind5[SyntaxKind5["TypeOperator"] = 198] = "TypeOperator"; + SyntaxKind5[SyntaxKind5["IndexedAccessType"] = 199] = "IndexedAccessType"; + SyntaxKind5[SyntaxKind5["MappedType"] = 200] = "MappedType"; + SyntaxKind5[SyntaxKind5["LiteralType"] = 201] = "LiteralType"; + SyntaxKind5[SyntaxKind5["NamedTupleMember"] = 202] = "NamedTupleMember"; + SyntaxKind5[SyntaxKind5["TemplateLiteralType"] = 203] = "TemplateLiteralType"; + SyntaxKind5[SyntaxKind5["TemplateLiteralTypeSpan"] = 204] = "TemplateLiteralTypeSpan"; + SyntaxKind5[SyntaxKind5["ImportType"] = 205] = "ImportType"; + SyntaxKind5[SyntaxKind5["ObjectBindingPattern"] = 206] = "ObjectBindingPattern"; + SyntaxKind5[SyntaxKind5["ArrayBindingPattern"] = 207] = "ArrayBindingPattern"; + SyntaxKind5[SyntaxKind5["BindingElement"] = 208] = "BindingElement"; + SyntaxKind5[SyntaxKind5["ArrayLiteralExpression"] = 209] = "ArrayLiteralExpression"; + SyntaxKind5[SyntaxKind5["ObjectLiteralExpression"] = 210] = "ObjectLiteralExpression"; + SyntaxKind5[SyntaxKind5["PropertyAccessExpression"] = 211] = "PropertyAccessExpression"; + SyntaxKind5[SyntaxKind5["ElementAccessExpression"] = 212] = "ElementAccessExpression"; + SyntaxKind5[SyntaxKind5["CallExpression"] = 213] = "CallExpression"; + SyntaxKind5[SyntaxKind5["NewExpression"] = 214] = "NewExpression"; + SyntaxKind5[SyntaxKind5["TaggedTemplateExpression"] = 215] = "TaggedTemplateExpression"; + SyntaxKind5[SyntaxKind5["TypeAssertionExpression"] = 216] = "TypeAssertionExpression"; + SyntaxKind5[SyntaxKind5["ParenthesizedExpression"] = 217] = "ParenthesizedExpression"; + SyntaxKind5[SyntaxKind5["FunctionExpression"] = 218] = "FunctionExpression"; + SyntaxKind5[SyntaxKind5["ArrowFunction"] = 219] = "ArrowFunction"; + SyntaxKind5[SyntaxKind5["DeleteExpression"] = 220] = "DeleteExpression"; + SyntaxKind5[SyntaxKind5["TypeOfExpression"] = 221] = "TypeOfExpression"; + SyntaxKind5[SyntaxKind5["VoidExpression"] = 222] = "VoidExpression"; + SyntaxKind5[SyntaxKind5["AwaitExpression"] = 223] = "AwaitExpression"; + SyntaxKind5[SyntaxKind5["PrefixUnaryExpression"] = 224] = "PrefixUnaryExpression"; + SyntaxKind5[SyntaxKind5["PostfixUnaryExpression"] = 225] = "PostfixUnaryExpression"; + SyntaxKind5[SyntaxKind5["BinaryExpression"] = 226] = "BinaryExpression"; + SyntaxKind5[SyntaxKind5["ConditionalExpression"] = 227] = "ConditionalExpression"; + SyntaxKind5[SyntaxKind5["TemplateExpression"] = 228] = "TemplateExpression"; + SyntaxKind5[SyntaxKind5["YieldExpression"] = 229] = "YieldExpression"; + SyntaxKind5[SyntaxKind5["SpreadElement"] = 230] = "SpreadElement"; + SyntaxKind5[SyntaxKind5["ClassExpression"] = 231] = "ClassExpression"; + SyntaxKind5[SyntaxKind5["OmittedExpression"] = 232] = "OmittedExpression"; + SyntaxKind5[SyntaxKind5["ExpressionWithTypeArguments"] = 233] = "ExpressionWithTypeArguments"; + SyntaxKind5[SyntaxKind5["AsExpression"] = 234] = "AsExpression"; + SyntaxKind5[SyntaxKind5["NonNullExpression"] = 235] = "NonNullExpression"; + SyntaxKind5[SyntaxKind5["MetaProperty"] = 236] = "MetaProperty"; + SyntaxKind5[SyntaxKind5["SyntheticExpression"] = 237] = "SyntheticExpression"; + SyntaxKind5[SyntaxKind5["SatisfiesExpression"] = 238] = "SatisfiesExpression"; + SyntaxKind5[SyntaxKind5["TemplateSpan"] = 239] = "TemplateSpan"; + SyntaxKind5[SyntaxKind5["SemicolonClassElement"] = 240] = "SemicolonClassElement"; + SyntaxKind5[SyntaxKind5["Block"] = 241] = "Block"; + SyntaxKind5[SyntaxKind5["EmptyStatement"] = 242] = "EmptyStatement"; + SyntaxKind5[SyntaxKind5["VariableStatement"] = 243] = "VariableStatement"; + SyntaxKind5[SyntaxKind5["ExpressionStatement"] = 244] = "ExpressionStatement"; + SyntaxKind5[SyntaxKind5["IfStatement"] = 245] = "IfStatement"; + SyntaxKind5[SyntaxKind5["DoStatement"] = 246] = "DoStatement"; + SyntaxKind5[SyntaxKind5["WhileStatement"] = 247] = "WhileStatement"; + SyntaxKind5[SyntaxKind5["ForStatement"] = 248] = "ForStatement"; + SyntaxKind5[SyntaxKind5["ForInStatement"] = 249] = "ForInStatement"; + SyntaxKind5[SyntaxKind5["ForOfStatement"] = 250] = "ForOfStatement"; + SyntaxKind5[SyntaxKind5["ContinueStatement"] = 251] = "ContinueStatement"; + SyntaxKind5[SyntaxKind5["BreakStatement"] = 252] = "BreakStatement"; + SyntaxKind5[SyntaxKind5["ReturnStatement"] = 253] = "ReturnStatement"; + SyntaxKind5[SyntaxKind5["WithStatement"] = 254] = "WithStatement"; + SyntaxKind5[SyntaxKind5["SwitchStatement"] = 255] = "SwitchStatement"; + SyntaxKind5[SyntaxKind5["LabeledStatement"] = 256] = "LabeledStatement"; + SyntaxKind5[SyntaxKind5["ThrowStatement"] = 257] = "ThrowStatement"; + SyntaxKind5[SyntaxKind5["TryStatement"] = 258] = "TryStatement"; + SyntaxKind5[SyntaxKind5["DebuggerStatement"] = 259] = "DebuggerStatement"; + SyntaxKind5[SyntaxKind5["VariableDeclaration"] = 260] = "VariableDeclaration"; + SyntaxKind5[SyntaxKind5["VariableDeclarationList"] = 261] = "VariableDeclarationList"; + SyntaxKind5[SyntaxKind5["FunctionDeclaration"] = 262] = "FunctionDeclaration"; + SyntaxKind5[SyntaxKind5["ClassDeclaration"] = 263] = "ClassDeclaration"; + SyntaxKind5[SyntaxKind5["InterfaceDeclaration"] = 264] = "InterfaceDeclaration"; + SyntaxKind5[SyntaxKind5["TypeAliasDeclaration"] = 265] = "TypeAliasDeclaration"; + SyntaxKind5[SyntaxKind5["EnumDeclaration"] = 266] = "EnumDeclaration"; + SyntaxKind5[SyntaxKind5["ModuleDeclaration"] = 267] = "ModuleDeclaration"; + SyntaxKind5[SyntaxKind5["ModuleBlock"] = 268] = "ModuleBlock"; + SyntaxKind5[SyntaxKind5["CaseBlock"] = 269] = "CaseBlock"; + SyntaxKind5[SyntaxKind5["NamespaceExportDeclaration"] = 270] = "NamespaceExportDeclaration"; + SyntaxKind5[SyntaxKind5["ImportEqualsDeclaration"] = 271] = "ImportEqualsDeclaration"; + SyntaxKind5[SyntaxKind5["ImportDeclaration"] = 272] = "ImportDeclaration"; + SyntaxKind5[SyntaxKind5["ImportClause"] = 273] = "ImportClause"; + SyntaxKind5[SyntaxKind5["NamespaceImport"] = 274] = "NamespaceImport"; + SyntaxKind5[SyntaxKind5["NamedImports"] = 275] = "NamedImports"; + SyntaxKind5[SyntaxKind5["ImportSpecifier"] = 276] = "ImportSpecifier"; + SyntaxKind5[SyntaxKind5["ExportAssignment"] = 277] = "ExportAssignment"; + SyntaxKind5[SyntaxKind5["ExportDeclaration"] = 278] = "ExportDeclaration"; + SyntaxKind5[SyntaxKind5["NamedExports"] = 279] = "NamedExports"; + SyntaxKind5[SyntaxKind5["NamespaceExport"] = 280] = "NamespaceExport"; + SyntaxKind5[SyntaxKind5["ExportSpecifier"] = 281] = "ExportSpecifier"; + SyntaxKind5[SyntaxKind5["MissingDeclaration"] = 282] = "MissingDeclaration"; + SyntaxKind5[SyntaxKind5["ExternalModuleReference"] = 283] = "ExternalModuleReference"; + SyntaxKind5[SyntaxKind5["JsxElement"] = 284] = "JsxElement"; + SyntaxKind5[SyntaxKind5["JsxSelfClosingElement"] = 285] = "JsxSelfClosingElement"; + SyntaxKind5[SyntaxKind5["JsxOpeningElement"] = 286] = "JsxOpeningElement"; + SyntaxKind5[SyntaxKind5["JsxClosingElement"] = 287] = "JsxClosingElement"; + SyntaxKind5[SyntaxKind5["JsxFragment"] = 288] = "JsxFragment"; + SyntaxKind5[SyntaxKind5["JsxOpeningFragment"] = 289] = "JsxOpeningFragment"; + SyntaxKind5[SyntaxKind5["JsxClosingFragment"] = 290] = "JsxClosingFragment"; + SyntaxKind5[SyntaxKind5["JsxAttribute"] = 291] = "JsxAttribute"; + SyntaxKind5[SyntaxKind5["JsxAttributes"] = 292] = "JsxAttributes"; + SyntaxKind5[SyntaxKind5["JsxSpreadAttribute"] = 293] = "JsxSpreadAttribute"; + SyntaxKind5[SyntaxKind5["JsxExpression"] = 294] = "JsxExpression"; + SyntaxKind5[SyntaxKind5["JsxNamespacedName"] = 295] = "JsxNamespacedName"; + SyntaxKind5[SyntaxKind5["CaseClause"] = 296] = "CaseClause"; + SyntaxKind5[SyntaxKind5["DefaultClause"] = 297] = "DefaultClause"; + SyntaxKind5[SyntaxKind5["HeritageClause"] = 298] = "HeritageClause"; + SyntaxKind5[SyntaxKind5["CatchClause"] = 299] = "CatchClause"; + SyntaxKind5[SyntaxKind5["AssertClause"] = 300] = "AssertClause"; + SyntaxKind5[SyntaxKind5["AssertEntry"] = 301] = "AssertEntry"; + SyntaxKind5[SyntaxKind5["ImportTypeAssertionContainer"] = 302] = "ImportTypeAssertionContainer"; + SyntaxKind5[SyntaxKind5["PropertyAssignment"] = 303] = "PropertyAssignment"; + SyntaxKind5[SyntaxKind5["ShorthandPropertyAssignment"] = 304] = "ShorthandPropertyAssignment"; + SyntaxKind5[SyntaxKind5["SpreadAssignment"] = 305] = "SpreadAssignment"; + SyntaxKind5[SyntaxKind5["EnumMember"] = 306] = "EnumMember"; + SyntaxKind5[SyntaxKind5["UnparsedPrologue"] = 307] = "UnparsedPrologue"; + SyntaxKind5[SyntaxKind5["UnparsedPrepend"] = 308] = "UnparsedPrepend"; + SyntaxKind5[SyntaxKind5["UnparsedText"] = 309] = "UnparsedText"; + SyntaxKind5[SyntaxKind5["UnparsedInternalText"] = 310] = "UnparsedInternalText"; + SyntaxKind5[SyntaxKind5["UnparsedSyntheticReference"] = 311] = "UnparsedSyntheticReference"; + SyntaxKind5[SyntaxKind5["SourceFile"] = 312] = "SourceFile"; + SyntaxKind5[SyntaxKind5["Bundle"] = 313] = "Bundle"; + SyntaxKind5[SyntaxKind5["UnparsedSource"] = 314] = "UnparsedSource"; + SyntaxKind5[SyntaxKind5["InputFiles"] = 315] = "InputFiles"; + SyntaxKind5[SyntaxKind5["JSDocTypeExpression"] = 316] = "JSDocTypeExpression"; + SyntaxKind5[SyntaxKind5["JSDocNameReference"] = 317] = "JSDocNameReference"; + SyntaxKind5[SyntaxKind5["JSDocMemberName"] = 318] = "JSDocMemberName"; + SyntaxKind5[SyntaxKind5["JSDocAllType"] = 319] = "JSDocAllType"; + SyntaxKind5[SyntaxKind5["JSDocUnknownType"] = 320] = "JSDocUnknownType"; + SyntaxKind5[SyntaxKind5["JSDocNullableType"] = 321] = "JSDocNullableType"; + SyntaxKind5[SyntaxKind5["JSDocNonNullableType"] = 322] = "JSDocNonNullableType"; + SyntaxKind5[SyntaxKind5["JSDocOptionalType"] = 323] = "JSDocOptionalType"; + SyntaxKind5[SyntaxKind5["JSDocFunctionType"] = 324] = "JSDocFunctionType"; + SyntaxKind5[SyntaxKind5["JSDocVariadicType"] = 325] = "JSDocVariadicType"; + SyntaxKind5[SyntaxKind5["JSDocNamepathType"] = 326] = "JSDocNamepathType"; + SyntaxKind5[SyntaxKind5["JSDoc"] = 327] = "JSDoc"; + SyntaxKind5[SyntaxKind5["JSDocComment"] = 327 /* JSDoc */] = "JSDocComment"; + SyntaxKind5[SyntaxKind5["JSDocText"] = 328] = "JSDocText"; + SyntaxKind5[SyntaxKind5["JSDocTypeLiteral"] = 329] = "JSDocTypeLiteral"; + SyntaxKind5[SyntaxKind5["JSDocSignature"] = 330] = "JSDocSignature"; + SyntaxKind5[SyntaxKind5["JSDocLink"] = 331] = "JSDocLink"; + SyntaxKind5[SyntaxKind5["JSDocLinkCode"] = 332] = "JSDocLinkCode"; + SyntaxKind5[SyntaxKind5["JSDocLinkPlain"] = 333] = "JSDocLinkPlain"; + SyntaxKind5[SyntaxKind5["JSDocTag"] = 334] = "JSDocTag"; + SyntaxKind5[SyntaxKind5["JSDocAugmentsTag"] = 335] = "JSDocAugmentsTag"; + SyntaxKind5[SyntaxKind5["JSDocImplementsTag"] = 336] = "JSDocImplementsTag"; + SyntaxKind5[SyntaxKind5["JSDocAuthorTag"] = 337] = "JSDocAuthorTag"; + SyntaxKind5[SyntaxKind5["JSDocDeprecatedTag"] = 338] = "JSDocDeprecatedTag"; + SyntaxKind5[SyntaxKind5["JSDocClassTag"] = 339] = "JSDocClassTag"; + SyntaxKind5[SyntaxKind5["JSDocPublicTag"] = 340] = "JSDocPublicTag"; + SyntaxKind5[SyntaxKind5["JSDocPrivateTag"] = 341] = "JSDocPrivateTag"; + SyntaxKind5[SyntaxKind5["JSDocProtectedTag"] = 342] = "JSDocProtectedTag"; + SyntaxKind5[SyntaxKind5["JSDocReadonlyTag"] = 343] = "JSDocReadonlyTag"; + SyntaxKind5[SyntaxKind5["JSDocOverrideTag"] = 344] = "JSDocOverrideTag"; + SyntaxKind5[SyntaxKind5["JSDocCallbackTag"] = 345] = "JSDocCallbackTag"; + SyntaxKind5[SyntaxKind5["JSDocOverloadTag"] = 346] = "JSDocOverloadTag"; + SyntaxKind5[SyntaxKind5["JSDocEnumTag"] = 347] = "JSDocEnumTag"; + SyntaxKind5[SyntaxKind5["JSDocParameterTag"] = 348] = "JSDocParameterTag"; + SyntaxKind5[SyntaxKind5["JSDocReturnTag"] = 349] = "JSDocReturnTag"; + SyntaxKind5[SyntaxKind5["JSDocThisTag"] = 350] = "JSDocThisTag"; + SyntaxKind5[SyntaxKind5["JSDocTypeTag"] = 351] = "JSDocTypeTag"; + SyntaxKind5[SyntaxKind5["JSDocTemplateTag"] = 352] = "JSDocTemplateTag"; + SyntaxKind5[SyntaxKind5["JSDocTypedefTag"] = 353] = "JSDocTypedefTag"; + SyntaxKind5[SyntaxKind5["JSDocSeeTag"] = 354] = "JSDocSeeTag"; + SyntaxKind5[SyntaxKind5["JSDocPropertyTag"] = 355] = "JSDocPropertyTag"; + SyntaxKind5[SyntaxKind5["JSDocThrowsTag"] = 356] = "JSDocThrowsTag"; + SyntaxKind5[SyntaxKind5["JSDocSatisfiesTag"] = 357] = "JSDocSatisfiesTag"; + SyntaxKind5[SyntaxKind5["SyntaxList"] = 358] = "SyntaxList"; + SyntaxKind5[SyntaxKind5["NotEmittedStatement"] = 359] = "NotEmittedStatement"; + SyntaxKind5[SyntaxKind5["PartiallyEmittedExpression"] = 360] = "PartiallyEmittedExpression"; + SyntaxKind5[SyntaxKind5["CommaListExpression"] = 361] = "CommaListExpression"; + SyntaxKind5[SyntaxKind5["SyntheticReferenceExpression"] = 362] = "SyntheticReferenceExpression"; + SyntaxKind5[SyntaxKind5["Count"] = 363] = "Count"; SyntaxKind5[SyntaxKind5["FirstAssignment"] = 64 /* EqualsToken */] = "FirstAssignment"; SyntaxKind5[SyntaxKind5["LastAssignment"] = 79 /* CaretEqualsToken */] = "LastAssignment"; SyntaxKind5[SyntaxKind5["FirstCompoundAssignment"] = 65 /* PlusEqualsToken */] = "FirstCompoundAssignment"; @@ -6106,15 +6143,15 @@ var SyntaxKind = /* @__PURE__ */ ((SyntaxKind5) => { SyntaxKind5[SyntaxKind5["FirstReservedWord"] = 83 /* BreakKeyword */] = "FirstReservedWord"; SyntaxKind5[SyntaxKind5["LastReservedWord"] = 118 /* WithKeyword */] = "LastReservedWord"; SyntaxKind5[SyntaxKind5["FirstKeyword"] = 83 /* BreakKeyword */] = "FirstKeyword"; - SyntaxKind5[SyntaxKind5["LastKeyword"] = 164 /* OfKeyword */] = "LastKeyword"; + SyntaxKind5[SyntaxKind5["LastKeyword"] = 165 /* OfKeyword */] = "LastKeyword"; SyntaxKind5[SyntaxKind5["FirstFutureReservedWord"] = 119 /* ImplementsKeyword */] = "FirstFutureReservedWord"; SyntaxKind5[SyntaxKind5["LastFutureReservedWord"] = 127 /* YieldKeyword */] = "LastFutureReservedWord"; - SyntaxKind5[SyntaxKind5["FirstTypeNode"] = 181 /* TypePredicate */] = "FirstTypeNode"; - SyntaxKind5[SyntaxKind5["LastTypeNode"] = 204 /* ImportType */] = "LastTypeNode"; + SyntaxKind5[SyntaxKind5["FirstTypeNode"] = 182 /* TypePredicate */] = "FirstTypeNode"; + SyntaxKind5[SyntaxKind5["LastTypeNode"] = 205 /* ImportType */] = "LastTypeNode"; SyntaxKind5[SyntaxKind5["FirstPunctuation"] = 19 /* OpenBraceToken */] = "FirstPunctuation"; SyntaxKind5[SyntaxKind5["LastPunctuation"] = 79 /* CaretEqualsToken */] = "LastPunctuation"; SyntaxKind5[SyntaxKind5["FirstToken"] = 0 /* Unknown */] = "FirstToken"; - SyntaxKind5[SyntaxKind5["LastToken"] = 164 /* LastKeyword */] = "LastToken"; + SyntaxKind5[SyntaxKind5["LastToken"] = 165 /* LastKeyword */] = "LastToken"; SyntaxKind5[SyntaxKind5["FirstTriviaToken"] = 2 /* SingleLineCommentTrivia */] = "FirstTriviaToken"; SyntaxKind5[SyntaxKind5["LastTriviaToken"] = 7 /* ConflictMarkerTrivia */] = "LastTriviaToken"; SyntaxKind5[SyntaxKind5["FirstLiteralToken"] = 9 /* NumericLiteral */] = "FirstLiteralToken"; @@ -6123,56 +6160,59 @@ var SyntaxKind = /* @__PURE__ */ ((SyntaxKind5) => { SyntaxKind5[SyntaxKind5["LastTemplateToken"] = 18 /* TemplateTail */] = "LastTemplateToken"; SyntaxKind5[SyntaxKind5["FirstBinaryOperator"] = 30 /* LessThanToken */] = "FirstBinaryOperator"; SyntaxKind5[SyntaxKind5["LastBinaryOperator"] = 79 /* CaretEqualsToken */] = "LastBinaryOperator"; - SyntaxKind5[SyntaxKind5["FirstStatement"] = 242 /* VariableStatement */] = "FirstStatement"; - SyntaxKind5[SyntaxKind5["LastStatement"] = 258 /* DebuggerStatement */] = "LastStatement"; - SyntaxKind5[SyntaxKind5["FirstNode"] = 165 /* QualifiedName */] = "FirstNode"; - SyntaxKind5[SyntaxKind5["FirstJSDocNode"] = 315 /* JSDocTypeExpression */] = "FirstJSDocNode"; - SyntaxKind5[SyntaxKind5["LastJSDocNode"] = 356 /* JSDocSatisfiesTag */] = "LastJSDocNode"; - SyntaxKind5[SyntaxKind5["FirstJSDocTagNode"] = 333 /* JSDocTag */] = "FirstJSDocTagNode"; - SyntaxKind5[SyntaxKind5["LastJSDocTagNode"] = 356 /* JSDocSatisfiesTag */] = "LastJSDocTagNode"; + SyntaxKind5[SyntaxKind5["FirstStatement"] = 243 /* VariableStatement */] = "FirstStatement"; + SyntaxKind5[SyntaxKind5["LastStatement"] = 259 /* DebuggerStatement */] = "LastStatement"; + SyntaxKind5[SyntaxKind5["FirstNode"] = 166 /* QualifiedName */] = "FirstNode"; + SyntaxKind5[SyntaxKind5["FirstJSDocNode"] = 316 /* JSDocTypeExpression */] = "FirstJSDocNode"; + SyntaxKind5[SyntaxKind5["LastJSDocNode"] = 357 /* JSDocSatisfiesTag */] = "LastJSDocNode"; + SyntaxKind5[SyntaxKind5["FirstJSDocTagNode"] = 334 /* JSDocTag */] = "FirstJSDocTagNode"; + SyntaxKind5[SyntaxKind5["LastJSDocTagNode"] = 357 /* JSDocSatisfiesTag */] = "LastJSDocTagNode"; SyntaxKind5[SyntaxKind5["FirstContextualKeyword"] = 128 /* AbstractKeyword */] = "FirstContextualKeyword"; - SyntaxKind5[SyntaxKind5["LastContextualKeyword"] = 164 /* OfKeyword */] = "LastContextualKeyword"; + SyntaxKind5[SyntaxKind5["LastContextualKeyword"] = 165 /* OfKeyword */] = "LastContextualKeyword"; return SyntaxKind5; })(SyntaxKind || {}); var NodeFlags = /* @__PURE__ */ ((NodeFlags3) => { NodeFlags3[NodeFlags3["None"] = 0] = "None"; NodeFlags3[NodeFlags3["Let"] = 1] = "Let"; NodeFlags3[NodeFlags3["Const"] = 2] = "Const"; - NodeFlags3[NodeFlags3["NestedNamespace"] = 4] = "NestedNamespace"; - NodeFlags3[NodeFlags3["Synthesized"] = 8] = "Synthesized"; - NodeFlags3[NodeFlags3["Namespace"] = 16] = "Namespace"; - NodeFlags3[NodeFlags3["OptionalChain"] = 32] = "OptionalChain"; - NodeFlags3[NodeFlags3["ExportContext"] = 64] = "ExportContext"; - NodeFlags3[NodeFlags3["ContainsThis"] = 128] = "ContainsThis"; - NodeFlags3[NodeFlags3["HasImplicitReturn"] = 256] = "HasImplicitReturn"; - NodeFlags3[NodeFlags3["HasExplicitReturn"] = 512] = "HasExplicitReturn"; - NodeFlags3[NodeFlags3["GlobalAugmentation"] = 1024] = "GlobalAugmentation"; - NodeFlags3[NodeFlags3["HasAsyncFunctions"] = 2048] = "HasAsyncFunctions"; - NodeFlags3[NodeFlags3["DisallowInContext"] = 4096] = "DisallowInContext"; - NodeFlags3[NodeFlags3["YieldContext"] = 8192] = "YieldContext"; - NodeFlags3[NodeFlags3["DecoratorContext"] = 16384] = "DecoratorContext"; - NodeFlags3[NodeFlags3["AwaitContext"] = 32768] = "AwaitContext"; - NodeFlags3[NodeFlags3["DisallowConditionalTypesContext"] = 65536] = "DisallowConditionalTypesContext"; - NodeFlags3[NodeFlags3["ThisNodeHasError"] = 131072] = "ThisNodeHasError"; - NodeFlags3[NodeFlags3["JavaScriptFile"] = 262144] = "JavaScriptFile"; - NodeFlags3[NodeFlags3["ThisNodeOrAnySubNodesHasError"] = 524288] = "ThisNodeOrAnySubNodesHasError"; - NodeFlags3[NodeFlags3["HasAggregatedChildData"] = 1048576] = "HasAggregatedChildData"; - NodeFlags3[NodeFlags3["PossiblyContainsDynamicImport"] = 2097152] = "PossiblyContainsDynamicImport"; - NodeFlags3[NodeFlags3["PossiblyContainsImportMeta"] = 4194304] = "PossiblyContainsImportMeta"; - NodeFlags3[NodeFlags3["JSDoc"] = 8388608] = "JSDoc"; - NodeFlags3[NodeFlags3["Ambient"] = 16777216] = "Ambient"; - NodeFlags3[NodeFlags3["InWithStatement"] = 33554432] = "InWithStatement"; - NodeFlags3[NodeFlags3["JsonFile"] = 67108864] = "JsonFile"; - NodeFlags3[NodeFlags3["TypeCached"] = 134217728] = "TypeCached"; - NodeFlags3[NodeFlags3["Deprecated"] = 268435456] = "Deprecated"; - NodeFlags3[NodeFlags3["BlockScoped"] = 3] = "BlockScoped"; - NodeFlags3[NodeFlags3["ReachabilityCheckFlags"] = 768] = "ReachabilityCheckFlags"; - NodeFlags3[NodeFlags3["ReachabilityAndEmitFlags"] = 2816] = "ReachabilityAndEmitFlags"; - NodeFlags3[NodeFlags3["ContextFlags"] = 50720768] = "ContextFlags"; - NodeFlags3[NodeFlags3["TypeExcludesFlags"] = 40960] = "TypeExcludesFlags"; - NodeFlags3[NodeFlags3["PermanentlySetIncrementalFlags"] = 6291456] = "PermanentlySetIncrementalFlags"; - NodeFlags3[NodeFlags3["IdentifierHasExtendedUnicodeEscape"] = 128 /* ContainsThis */] = "IdentifierHasExtendedUnicodeEscape"; - NodeFlags3[NodeFlags3["IdentifierIsInJSDocNamespace"] = 2048 /* HasAsyncFunctions */] = "IdentifierIsInJSDocNamespace"; + NodeFlags3[NodeFlags3["Using"] = 4] = "Using"; + NodeFlags3[NodeFlags3["AwaitUsing"] = 6] = "AwaitUsing"; + NodeFlags3[NodeFlags3["NestedNamespace"] = 8] = "NestedNamespace"; + NodeFlags3[NodeFlags3["Synthesized"] = 16] = "Synthesized"; + NodeFlags3[NodeFlags3["Namespace"] = 32] = "Namespace"; + NodeFlags3[NodeFlags3["OptionalChain"] = 64] = "OptionalChain"; + NodeFlags3[NodeFlags3["ExportContext"] = 128] = "ExportContext"; + NodeFlags3[NodeFlags3["ContainsThis"] = 256] = "ContainsThis"; + NodeFlags3[NodeFlags3["HasImplicitReturn"] = 512] = "HasImplicitReturn"; + NodeFlags3[NodeFlags3["HasExplicitReturn"] = 1024] = "HasExplicitReturn"; + NodeFlags3[NodeFlags3["GlobalAugmentation"] = 2048] = "GlobalAugmentation"; + NodeFlags3[NodeFlags3["HasAsyncFunctions"] = 4096] = "HasAsyncFunctions"; + NodeFlags3[NodeFlags3["DisallowInContext"] = 8192] = "DisallowInContext"; + NodeFlags3[NodeFlags3["YieldContext"] = 16384] = "YieldContext"; + NodeFlags3[NodeFlags3["DecoratorContext"] = 32768] = "DecoratorContext"; + NodeFlags3[NodeFlags3["AwaitContext"] = 65536] = "AwaitContext"; + NodeFlags3[NodeFlags3["DisallowConditionalTypesContext"] = 131072] = "DisallowConditionalTypesContext"; + NodeFlags3[NodeFlags3["ThisNodeHasError"] = 262144] = "ThisNodeHasError"; + NodeFlags3[NodeFlags3["JavaScriptFile"] = 524288] = "JavaScriptFile"; + NodeFlags3[NodeFlags3["ThisNodeOrAnySubNodesHasError"] = 1048576] = "ThisNodeOrAnySubNodesHasError"; + NodeFlags3[NodeFlags3["HasAggregatedChildData"] = 2097152] = "HasAggregatedChildData"; + NodeFlags3[NodeFlags3["PossiblyContainsDynamicImport"] = 4194304] = "PossiblyContainsDynamicImport"; + NodeFlags3[NodeFlags3["PossiblyContainsImportMeta"] = 8388608] = "PossiblyContainsImportMeta"; + NodeFlags3[NodeFlags3["JSDoc"] = 16777216] = "JSDoc"; + NodeFlags3[NodeFlags3["Ambient"] = 33554432] = "Ambient"; + NodeFlags3[NodeFlags3["InWithStatement"] = 67108864] = "InWithStatement"; + NodeFlags3[NodeFlags3["JsonFile"] = 134217728] = "JsonFile"; + NodeFlags3[NodeFlags3["TypeCached"] = 268435456] = "TypeCached"; + NodeFlags3[NodeFlags3["Deprecated"] = 536870912] = "Deprecated"; + NodeFlags3[NodeFlags3["BlockScoped"] = 7] = "BlockScoped"; + NodeFlags3[NodeFlags3["Constant"] = 6] = "Constant"; + NodeFlags3[NodeFlags3["ReachabilityCheckFlags"] = 1536] = "ReachabilityCheckFlags"; + NodeFlags3[NodeFlags3["ReachabilityAndEmitFlags"] = 5632] = "ReachabilityAndEmitFlags"; + NodeFlags3[NodeFlags3["ContextFlags"] = 101441536] = "ContextFlags"; + NodeFlags3[NodeFlags3["TypeExcludesFlags"] = 81920] = "TypeExcludesFlags"; + NodeFlags3[NodeFlags3["PermanentlySetIncrementalFlags"] = 12582912] = "PermanentlySetIncrementalFlags"; + NodeFlags3[NodeFlags3["IdentifierHasExtendedUnicodeEscape"] = 256 /* ContainsThis */] = "IdentifierHasExtendedUnicodeEscape"; + NodeFlags3[NodeFlags3["IdentifierIsInJSDocNamespace"] = 4096 /* HasAsyncFunctions */] = "IdentifierIsInJSDocNamespace"; return NodeFlags3; })(NodeFlags || {}); var ModifierFlags = /* @__PURE__ */ ((ModifierFlags3) => { @@ -6585,15 +6625,13 @@ var NodeCheckFlags = /* @__PURE__ */ ((NodeCheckFlags2) => { NodeCheckFlags2[NodeCheckFlags2["ContainsCapturedBlockScopeBinding"] = 8192] = "ContainsCapturedBlockScopeBinding"; NodeCheckFlags2[NodeCheckFlags2["CapturedBlockScopedBinding"] = 16384] = "CapturedBlockScopedBinding"; NodeCheckFlags2[NodeCheckFlags2["BlockScopedBindingInLoop"] = 32768] = "BlockScopedBindingInLoop"; - NodeCheckFlags2[NodeCheckFlags2["ClassWithBodyScopedClassBinding"] = 65536] = "ClassWithBodyScopedClassBinding"; - NodeCheckFlags2[NodeCheckFlags2["BodyScopedClassBinding"] = 131072] = "BodyScopedClassBinding"; - NodeCheckFlags2[NodeCheckFlags2["NeedsLoopOutParameter"] = 262144] = "NeedsLoopOutParameter"; - NodeCheckFlags2[NodeCheckFlags2["AssignmentsMarked"] = 524288] = "AssignmentsMarked"; - NodeCheckFlags2[NodeCheckFlags2["ClassWithConstructorReference"] = 1048576] = "ClassWithConstructorReference"; - NodeCheckFlags2[NodeCheckFlags2["ConstructorReferenceInClass"] = 2097152] = "ConstructorReferenceInClass"; - NodeCheckFlags2[NodeCheckFlags2["ContainsClassWithPrivateIdentifiers"] = 4194304] = "ContainsClassWithPrivateIdentifiers"; - NodeCheckFlags2[NodeCheckFlags2["ContainsSuperPropertyInStaticInitializer"] = 8388608] = "ContainsSuperPropertyInStaticInitializer"; - NodeCheckFlags2[NodeCheckFlags2["InCheckIdentifier"] = 16777216] = "InCheckIdentifier"; + NodeCheckFlags2[NodeCheckFlags2["NeedsLoopOutParameter"] = 65536] = "NeedsLoopOutParameter"; + NodeCheckFlags2[NodeCheckFlags2["AssignmentsMarked"] = 131072] = "AssignmentsMarked"; + NodeCheckFlags2[NodeCheckFlags2["ContainsConstructorReference"] = 262144] = "ContainsConstructorReference"; + NodeCheckFlags2[NodeCheckFlags2["ConstructorReference"] = 536870912] = "ConstructorReference"; + NodeCheckFlags2[NodeCheckFlags2["ContainsClassWithPrivateIdentifiers"] = 1048576] = "ContainsClassWithPrivateIdentifiers"; + NodeCheckFlags2[NodeCheckFlags2["ContainsSuperPropertyInStaticInitializer"] = 2097152] = "ContainsSuperPropertyInStaticInitializer"; + NodeCheckFlags2[NodeCheckFlags2["InCheckIdentifier"] = 4194304] = "InCheckIdentifier"; return NodeCheckFlags2; })(NodeCheckFlags || {}); var TypeFlags = /* @__PURE__ */ ((TypeFlags2) => { @@ -6774,7 +6812,8 @@ var SignatureFlags = /* @__PURE__ */ ((SignatureFlags5) => { SignatureFlags5[SignatureFlags5["IsOuterCallChain"] = 16] = "IsOuterCallChain"; SignatureFlags5[SignatureFlags5["IsUntypedSignatureInJSFile"] = 32] = "IsUntypedSignatureInJSFile"; SignatureFlags5[SignatureFlags5["IsNonInferrable"] = 64] = "IsNonInferrable"; - SignatureFlags5[SignatureFlags5["PropagatingFlags"] = 39] = "PropagatingFlags"; + SignatureFlags5[SignatureFlags5["IsSignatureCandidateForOverloadFailure"] = 128] = "IsSignatureCandidateForOverloadFailure"; + SignatureFlags5[SignatureFlags5["PropagatingFlags"] = 167] = "PropagatingFlags"; SignatureFlags5[SignatureFlags5["CallChainFlags"] = 24] = "CallChainFlags"; return SignatureFlags5; })(SignatureFlags || {}); @@ -6920,16 +6959,16 @@ var NewLineKind = /* @__PURE__ */ ((NewLineKind3) => { NewLineKind3[NewLineKind3["LineFeed"] = 1] = "LineFeed"; return NewLineKind3; })(NewLineKind || {}); -var ScriptKind = /* @__PURE__ */ ((ScriptKind6) => { - ScriptKind6[ScriptKind6["Unknown"] = 0] = "Unknown"; - ScriptKind6[ScriptKind6["JS"] = 1] = "JS"; - ScriptKind6[ScriptKind6["JSX"] = 2] = "JSX"; - ScriptKind6[ScriptKind6["TS"] = 3] = "TS"; - ScriptKind6[ScriptKind6["TSX"] = 4] = "TSX"; - ScriptKind6[ScriptKind6["External"] = 5] = "External"; - ScriptKind6[ScriptKind6["JSON"] = 6] = "JSON"; - ScriptKind6[ScriptKind6["Deferred"] = 7] = "Deferred"; - return ScriptKind6; +var ScriptKind = /* @__PURE__ */ ((ScriptKind7) => { + ScriptKind7[ScriptKind7["Unknown"] = 0] = "Unknown"; + ScriptKind7[ScriptKind7["JS"] = 1] = "JS"; + ScriptKind7[ScriptKind7["JSX"] = 2] = "JSX"; + ScriptKind7[ScriptKind7["TS"] = 3] = "TS"; + ScriptKind7[ScriptKind7["TSX"] = 4] = "TSX"; + ScriptKind7[ScriptKind7["External"] = 5] = "External"; + ScriptKind7[ScriptKind7["JSON"] = 6] = "JSON"; + ScriptKind7[ScriptKind7["Deferred"] = 7] = "Deferred"; + return ScriptKind7; })(ScriptKind || {}); var ScriptTarget = /* @__PURE__ */ ((ScriptTarget11) => { ScriptTarget11[ScriptTarget11["ES3"] = 0] = "ES3"; @@ -7244,8 +7283,9 @@ var ExternalEmitHelpers = /* @__PURE__ */ ((ExternalEmitHelpers2) => { ExternalEmitHelpers2[ExternalEmitHelpers2["CreateBinding"] = 4194304] = "CreateBinding"; ExternalEmitHelpers2[ExternalEmitHelpers2["SetFunctionName"] = 8388608] = "SetFunctionName"; ExternalEmitHelpers2[ExternalEmitHelpers2["PropKey"] = 16777216] = "PropKey"; + ExternalEmitHelpers2[ExternalEmitHelpers2["AddDisposableResourceAndDisposeResources"] = 33554432] = "AddDisposableResourceAndDisposeResources"; ExternalEmitHelpers2[ExternalEmitHelpers2["FirstEmitHelper"] = 1 /* Extends */] = "FirstEmitHelper"; - ExternalEmitHelpers2[ExternalEmitHelpers2["LastEmitHelper"] = 16777216 /* PropKey */] = "LastEmitHelper"; + ExternalEmitHelpers2[ExternalEmitHelpers2["LastEmitHelper"] = 33554432 /* AddDisposableResourceAndDisposeResources */] = "LastEmitHelper"; ExternalEmitHelpers2[ExternalEmitHelpers2["ForOfIncludes"] = 256 /* Values */] = "ForOfIncludes"; ExternalEmitHelpers2[ExternalEmitHelpers2["ForAwaitOfIncludes"] = 16384 /* AsyncValues */] = "ForAwaitOfIncludes"; ExternalEmitHelpers2[ExternalEmitHelpers2["AsyncGeneratorIncludes"] = 6144] = "AsyncGeneratorIncludes"; @@ -7640,10 +7680,10 @@ function createDynamicPriorityPollingWatchFile(host) { pollingIntervalQueue(pollingInterval).pollScheduled = host.setTimeout(pollingInterval === 250 /* Low */ ? pollLowPollingIntervalQueue : pollPollingIntervalQueue, pollingInterval, pollingInterval === 250 /* Low */ ? "pollLowPollingIntervalQueue" : "pollPollingIntervalQueue", pollingIntervalQueue(pollingInterval)); } } -function createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames) { +function createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames2) { const fileWatcherCallbacks = createMultiMap(); const dirWatchers = /* @__PURE__ */ new Map(); - const toCanonicalName = createGetCanonicalFileName(useCaseSensitiveFileNames); + const toCanonicalName = createGetCanonicalFileName(useCaseSensitiveFileNames2); return nonPollingWatchFile; function nonPollingWatchFile(fileName, callback, _pollingInterval, fallbackOptions) { const filePath = toCanonicalName(fileName); @@ -7719,8 +7759,8 @@ function createFixedChunkSizePollingWatchFile(host) { pollScheduled = host.setTimeout(pollQueue, 2e3 /* High */, "pollQueue"); } } -function createSingleWatcherPerName(cache, useCaseSensitiveFileNames, name, callback, createWatcher) { - const toCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames); +function createSingleWatcherPerName(cache, useCaseSensitiveFileNames2, name, callback, createWatcher) { + const toCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2); const path = toCanonicalFileName(name); const existing = cache.get(path); if (existing) { @@ -7772,7 +7812,7 @@ function setSysLog(logger) { } function createDirectoryWatcherSupportingRecursive({ watchDirectory, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, getCurrentDirectory, getAccessibleSortedChildDirectories, fileSystemEntryExists, @@ -7784,8 +7824,8 @@ function createDirectoryWatcherSupportingRecursive({ const callbackCache = createMultiMap(); const cacheToUpdateChildWatches = /* @__PURE__ */ new Map(); let timerToUpdateChildWatches; - const filePathComparer = getStringComparer(!useCaseSensitiveFileNames); - const toCanonicalFilePath = createGetCanonicalFileName(useCaseSensitiveFileNames); + const filePathComparer = getStringComparer(!useCaseSensitiveFileNames2); + const toCanonicalFilePath = createGetCanonicalFileName(useCaseSensitiveFileNames2); return (dirName, callback, recursive, options) => recursive ? createDirectoryWatcher(dirName, options, callback) : watchDirectory(dirName, callback, recursive, options); function createDirectoryWatcher(dirName, options, callback) { const dirPath = toCanonicalFilePath(dirName); @@ -7952,12 +7992,12 @@ function createDirectoryWatcherSupportingRecursive({ } } function isIgnoredPath(path, options) { - return some(ignoredPaths, (searchPath) => isInPath(path, searchPath)) || isIgnoredByWatchOptions(path, options, useCaseSensitiveFileNames, getCurrentDirectory); + return some(ignoredPaths, (searchPath) => isInPath(path, searchPath)) || isIgnoredByWatchOptions(path, options, useCaseSensitiveFileNames2, getCurrentDirectory); } function isInPath(path, searchPath) { if (stringContains(path, searchPath)) return true; - if (useCaseSensitiveFileNames) + if (useCaseSensitiveFileNames2) return false; return stringContains(toCanonicalFilePath(path), searchPath); } @@ -7980,14 +8020,14 @@ function createFsWatchCallbackForFileWatcherCallback(fileName, callback, getModi } }; } -function isIgnoredByWatchOptions(pathToCheck, options, useCaseSensitiveFileNames, getCurrentDirectory) { - return ((options == null ? void 0 : options.excludeDirectories) || (options == null ? void 0 : options.excludeFiles)) && (matchesExclude(pathToCheck, options == null ? void 0 : options.excludeFiles, useCaseSensitiveFileNames, getCurrentDirectory()) || matchesExclude(pathToCheck, options == null ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames, getCurrentDirectory())); +function isIgnoredByWatchOptions(pathToCheck, options, useCaseSensitiveFileNames2, getCurrentDirectory) { + return ((options == null ? void 0 : options.excludeDirectories) || (options == null ? void 0 : options.excludeFiles)) && (matchesExclude(pathToCheck, options == null ? void 0 : options.excludeFiles, useCaseSensitiveFileNames2, getCurrentDirectory()) || matchesExclude(pathToCheck, options == null ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames2, getCurrentDirectory())); } -function createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames, getCurrentDirectory) { +function createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames2, getCurrentDirectory) { return (eventName, relativeFileName) => { if (eventName === "rename") { const fileName = !relativeFileName ? directoryName : normalizePath(combinePaths(directoryName, relativeFileName)); - if (!relativeFileName || !isIgnoredByWatchOptions(fileName, options, useCaseSensitiveFileNames, getCurrentDirectory)) { + if (!relativeFileName || !isIgnoredByWatchOptions(fileName, options, useCaseSensitiveFileNames2, getCurrentDirectory)) { callback(fileName); } } @@ -8000,7 +8040,7 @@ function createSystemWatchFunctions({ clearTimeout: clearTimeout2, fsWatchWorker, fileSystemEntryExists, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, getCurrentDirectory, fsSupportsRecursiveFsWatch, getAccessibleSortedChildDirectories, @@ -8072,7 +8112,7 @@ function createSystemWatchFunctions({ ); case 5 /* UseFsEventsOnParentDirectory */: if (!nonPollingWatchFile) { - nonPollingWatchFile = createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames); + nonPollingWatchFile = createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames2); } return nonPollingWatchFile(fileName, callback, pollingInterval, getFallbackOptions(options)); default: @@ -8121,7 +8161,7 @@ function createSystemWatchFunctions({ return fsWatch( directoryName, 1 /* Directory */, - createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames, getCurrentDirectory), + createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames2, getCurrentDirectory), recursive, 500 /* Medium */, getFallbackOptions(options) @@ -8129,7 +8169,7 @@ function createSystemWatchFunctions({ } if (!hostRecursiveDirectoryWatcher) { hostRecursiveDirectoryWatcher = createDirectoryWatcherSupportingRecursive({ - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, getCurrentDirectory, fileSystemEntryExists, getAccessibleSortedChildDirectories, @@ -8175,7 +8215,7 @@ function createSystemWatchFunctions({ return fsWatch( directoryName, 1 /* Directory */, - createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames, getCurrentDirectory), + createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames2, getCurrentDirectory), recursive, 500 /* Medium */, getFallbackOptions(watchDirectoryOptions) @@ -8203,7 +8243,7 @@ function createSystemWatchFunctions({ function pollingWatchFile(fileName, callback, pollingInterval, options) { return createSingleWatcherPerName( pollingWatches, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames2, fileName, callback, (cb) => pollingWatchFileWorker(fileName, cb, pollingInterval, options) @@ -8212,7 +8252,7 @@ function createSystemWatchFunctions({ function fsWatch(fileOrDirectory, entryKind, callback, recursive, fallbackPollingInterval, fallbackOptions) { return createSingleWatcherPerName( recursive ? fsWatchesRecursive : fsWatches, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames2, fileOrDirectory, callback, (cb) => fsWatchHandlingExistenceOnHost(fileOrDirectory, entryKind, cb, recursive, fallbackPollingInterval, fallbackOptions) @@ -8340,7 +8380,7 @@ var sys = (() => { const Buffer2 = require("buffer").Buffer; const isLinuxOrMacOs = process.platform === "linux" || process.platform === "darwin"; const platform = _os.platform(); - const useCaseSensitiveFileNames = isFileSystemCaseSensitive(); + const useCaseSensitiveFileNames2 = isFileSystemCaseSensitive(); const fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync; const executingFilePath = __filename.endsWith("sys.js") ? _path.join(_path.dirname(__dirname), "__fake__.js") : __filename; const fsSupportsRecursiveFsWatch = process.platform === "win32" || process.platform === "darwin"; @@ -8351,7 +8391,7 @@ var sys = (() => { setTimeout, clearTimeout, fsWatchWorker, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, getCurrentDirectory, fileSystemEntryExists, // Node 4.0 `fs.watch` function supports the "recursive" option on both OSX and Windows @@ -8368,7 +8408,7 @@ var sys = (() => { const nodeSystem = { args: process.argv.slice(2), newLine: _os.EOL, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, write(s) { process.stdout.write(s); }, @@ -8433,7 +8473,7 @@ var sys = (() => { disableCPUProfiler, cpuProfilingEnabled: () => !!activeSession || contains(process.execArgv, "--cpu-prof") || contains(process.execArgv, "--prof"), realpath, - debugMode: !!process.env.NODE_INSPECTOR_IPC || !!process.env.VSCODE_INSPECTOR_OPTIONS || some(process.execArgv, (arg) => /^--(inspect|debug)(-brk)?(=\d+)?$/i.test(arg)), + debugMode: !!process.env.NODE_INSPECTOR_IPC || !!process.env.VSCODE_INSPECTOR_OPTIONS || some(process.execArgv, (arg) => /^--(inspect|debug)(-brk)?(=\d+)?$/i.test(arg)) || !!process.recordreplay, tryEnableSourceMapsForHost() { try { require("source-map-support").install(); @@ -8459,8 +8499,8 @@ var sys = (() => { try { const modulePath = resolveJSModule(moduleName, baseDir, nodeSystem); return { module: require(modulePath), modulePath, error: void 0 }; - } catch (error) { - return { module: void 0, modulePath: void 0, error }; + } catch (error2) { + return { module: void 0, modulePath: void 0, error: error2 }; } } }; @@ -8497,12 +8537,12 @@ var sys = (() => { for (const node of profile.nodes) { if (node.callFrame.url) { const url = normalizeSlashes(node.callFrame.url); - if (containsPath(fileUrlRoot, url, useCaseSensitiveFileNames)) { + if (containsPath(fileUrlRoot, url, useCaseSensitiveFileNames2)) { node.callFrame.url = getRelativePathToDirectoryOrUrl( fileUrlRoot, url, fileUrlRoot, - createGetCanonicalFileName(useCaseSensitiveFileNames), + createGetCanonicalFileName(useCaseSensitiveFileNames2), /*isAbsolutePathAnUrl*/ true ); @@ -8682,7 +8722,7 @@ var sys = (() => { } } function readDirectory(path, extensions, excludes, includes, depth) { - return matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, process.cwd(), depth, getAccessibleFileSystemEntries, realpath); + return matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames2, process.cwd(), depth, getAccessibleFileSystemEntries, realpath); } function fileSystemEntryExists(path, entryKind) { const originalStackTraceLimit = Error.stackTraceLimit; @@ -9247,6 +9287,7 @@ var Diagnostics = { Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method: diag(1062, 1 /* Error */, "Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062", "Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."), An_export_assignment_cannot_be_used_in_a_namespace: diag(1063, 1 /* Error */, "An_export_assignment_cannot_be_used_in_a_namespace_1063", "An export assignment cannot be used in a namespace."), The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0: diag(1064, 1 /* Error */, "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064", "The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"), + The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type: diag(1065, 1 /* Error */, "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065", "The return type of an async function or method must be the global Promise type."), In_ambient_enum_declarations_member_initializer_must_be_constant_expression: diag(1066, 1 /* Error */, "In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066", "In ambient enum declarations member initializer must be constant expression."), Unexpected_token_A_constructor_method_accessor_or_property_was_expected: diag(1068, 1 /* Error */, "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068", "Unexpected token. A constructor, method, accessor, or property was expected."), Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces: diag(1069, 1 /* Error */, "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069", "Unexpected token. A type parameter name was expected without curly braces."), @@ -9276,6 +9317,7 @@ var Diagnostics = { A_return_statement_can_only_be_used_within_a_function_body: diag(1108, 1 /* Error */, "A_return_statement_can_only_be_used_within_a_function_body_1108", "A 'return' statement can only be used within a function body."), Expression_expected: diag(1109, 1 /* Error */, "Expression_expected_1109", "Expression expected."), Type_expected: diag(1110, 1 /* Error */, "Type_expected_1110", "Type expected."), + Private_field_0_must_be_declared_in_an_enclosing_class: diag(1111, 1 /* Error */, "Private_field_0_must_be_declared_in_an_enclosing_class_1111", "Private field '{0}' must be declared in an enclosing class."), A_default_clause_cannot_appear_more_than_once_in_a_switch_statement: diag(1113, 1 /* Error */, "A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113", "A 'default' clause cannot appear more than once in a 'switch' statement."), Duplicate_label_0: diag(1114, 1 /* Error */, "Duplicate_label_0_1114", "Duplicate label '{0}'."), A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement: diag(1115, 1 /* Error */, "A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115", "A 'continue' statement can only jump to a label of an enclosing iteration statement."), @@ -9310,9 +9352,8 @@ var Diagnostics = { Import_declarations_in_a_namespace_cannot_reference_a_module: diag(1147, 1 /* Error */, "Import_declarations_in_a_namespace_cannot_reference_a_module_1147", "Import declarations in a namespace cannot reference a module."), Cannot_use_imports_exports_or_module_augmentations_when_module_is_none: diag(1148, 1 /* Error */, "Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148", "Cannot use imports, exports, or module augmentations when '--module' is 'none'."), File_name_0_differs_from_already_included_file_name_1_only_in_casing: diag(1149, 1 /* Error */, "File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149", "File name '{0}' differs from already included file name '{1}' only in casing."), - const_declarations_must_be_initialized: diag(1155, 1 /* Error */, "const_declarations_must_be_initialized_1155", "'const' declarations must be initialized."), - const_declarations_can_only_be_declared_inside_a_block: diag(1156, 1 /* Error */, "const_declarations_can_only_be_declared_inside_a_block_1156", "'const' declarations can only be declared inside a block."), - let_declarations_can_only_be_declared_inside_a_block: diag(1157, 1 /* Error */, "let_declarations_can_only_be_declared_inside_a_block_1157", "'let' declarations can only be declared inside a block."), + _0_declarations_must_be_initialized: diag(1155, 1 /* Error */, "_0_declarations_must_be_initialized_1155", "'{0}' declarations must be initialized."), + _0_declarations_can_only_be_declared_inside_a_block: diag(1156, 1 /* Error */, "_0_declarations_can_only_be_declared_inside_a_block_1156", "'{0}' declarations can only be declared inside a block."), Unterminated_template_literal: diag(1160, 1 /* Error */, "Unterminated_template_literal_1160", "Unterminated template literal."), Unterminated_regular_expression_literal: diag(1161, 1 /* Error */, "Unterminated_regular_expression_literal_1161", "Unterminated regular expression literal."), An_object_member_cannot_be_declared_optional: diag(1162, 1 /* Error */, "An_object_member_cannot_be_declared_optional_1162", "An object member cannot be declared optional."), @@ -9494,8 +9535,6 @@ var Diagnostics = { Class_constructor_may_not_be_a_generator: diag(1368, 1 /* Error */, "Class_constructor_may_not_be_a_generator_1368", "Class constructor may not be a generator."), Did_you_mean_0: diag(1369, 3 /* Message */, "Did_you_mean_0_1369", "Did you mean '{0}'?"), This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error: diag(1371, 1 /* Error */, "This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371", "This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."), - Convert_to_type_only_import: diag(1373, 3 /* Message */, "Convert_to_type_only_import_1373", "Convert to type-only import"), - Convert_all_imports_not_used_as_a_value_to_type_only_imports: diag(1374, 3 /* Message */, "Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374", "Convert all imports not used as a value to type-only imports"), await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module: diag(1375, 1 /* Error */, "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375", "'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."), _0_was_imported_here: diag(1376, 3 /* Message */, "_0_was_imported_here_1376", "'{0}' was imported here."), _0_was_exported_here: diag(1377, 3 /* Message */, "_0_was_exported_here_1377", "'{0}' was exported here."), @@ -9599,6 +9638,11 @@ var Diagnostics = { Escape_sequence_0_is_not_allowed: diag(1488, 1 /* Error */, "Escape_sequence_0_is_not_allowed_1488", "Escape sequence '{0}' is not allowed."), Decimals_with_leading_zeros_are_not_allowed: diag(1489, 1 /* Error */, "Decimals_with_leading_zeros_are_not_allowed_1489", "Decimals with leading zeros are not allowed."), File_appears_to_be_binary: diag(1490, 1 /* Error */, "File_appears_to_be_binary_1490", "File appears to be binary."), + _0_modifier_cannot_appear_on_a_using_declaration: diag(1491, 1 /* Error */, "_0_modifier_cannot_appear_on_a_using_declaration_1491", "'{0}' modifier cannot appear on a 'using' declaration."), + _0_declarations_may_not_have_binding_patterns: diag(1492, 1 /* Error */, "_0_declarations_may_not_have_binding_patterns_1492", "'{0}' declarations may not have binding patterns."), + The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration: diag(1493, 1 /* Error */, "The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493", "The left-hand side of a 'for...in' statement cannot be a 'using' declaration."), + The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration: diag(1494, 1 /* Error */, "The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494", "The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."), + _0_modifier_cannot_appear_on_an_await_using_declaration: diag(1495, 1 /* Error */, "_0_modifier_cannot_appear_on_an_await_using_declaration_1495", "'{0}' modifier cannot appear on an 'await using' declaration."), The_types_of_0_are_incompatible_between_these_types: diag(2200, 1 /* Error */, "The_types_of_0_are_incompatible_between_these_types_2200", "The types of '{0}' are incompatible between these types."), The_types_returned_by_0_are_incompatible_between_these_types: diag(2201, 1 /* Error */, "The_types_returned_by_0_are_incompatible_between_these_types_2201", "The types returned by '{0}' are incompatible between these types."), Call_signature_return_types_0_and_1_are_incompatible: diag( @@ -9693,7 +9737,6 @@ var Diagnostics = { This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0: diag(2343, 1 /* Error */, "This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343", "This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."), Type_0_does_not_satisfy_the_constraint_1: diag(2344, 1 /* Error */, "Type_0_does_not_satisfy_the_constraint_1_2344", "Type '{0}' does not satisfy the constraint '{1}'."), Argument_of_type_0_is_not_assignable_to_parameter_of_type_1: diag(2345, 1 /* Error */, "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345", "Argument of type '{0}' is not assignable to parameter of type '{1}'."), - Call_target_does_not_contain_any_signatures: diag(2346, 1 /* Error */, "Call_target_does_not_contain_any_signatures_2346", "Call target does not contain any signatures."), Untyped_function_calls_may_not_accept_type_arguments: diag(2347, 1 /* Error */, "Untyped_function_calls_may_not_accept_type_arguments_2347", "Untyped function calls may not accept type arguments."), Value_of_type_0_is_not_callable_Did_you_mean_to_include_new: diag(2348, 1 /* Error */, "Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348", "Value of type '{0}' is not callable. Did you mean to include 'new'?"), This_expression_is_not_callable: diag(2349, 1 /* Error */, "This_expression_is_not_callable_2349", "This expression is not callable."), @@ -10145,6 +10188,11 @@ var Diagnostics = { A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead: diag(2846, 1 /* Error */, "A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846", "A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"), The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression: diag(2848, 1 /* Error */, "The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848", "The right-hand side of an 'instanceof' expression must not be an instantiation expression."), Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1: diag(2849, 1 /* Error */, "Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849", "Target signature provides too few arguments. Expected {0} or more, but got {1}."), + The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined: diag(2850, 1 /* Error */, "The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850", "The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."), + The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined: diag(2851, 1 /* Error */, "The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851", "The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."), + await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules: diag(2852, 1 /* Error */, "await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852", "'await using' statements are only allowed within async functions and at the top levels of modules."), + await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module: diag(2853, 1 /* Error */, "await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853", "'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."), + Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher: diag(2854, 1 /* Error */, "Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854", "Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."), Import_declaration_0_is_using_private_name_1: diag(4e3, 1 /* Error */, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."), Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, 1 /* Error */, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."), Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, 1 /* Error */, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."), @@ -10298,7 +10346,6 @@ var Diagnostics = { Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0: diag(5081, 1 /* Error */, "Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081", "Cannot find a tsconfig.json file at the current directory: {0}."), _0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1: diag(5082, 1 /* Error */, "_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082", "'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."), Cannot_read_file_0: diag(5083, 1 /* Error */, "Cannot_read_file_0_5083", "Cannot read file '{0}'."), - Tuple_members_must_all_have_names_or_all_not_have_names: diag(5084, 1 /* Error */, "Tuple_members_must_all_have_names_or_all_not_have_names_5084", "Tuple members must all have names or all not have names."), A_tuple_member_cannot_be_both_optional_and_rest: diag(5085, 1 /* Error */, "A_tuple_member_cannot_be_both_optional_and_rest_5085", "A tuple member cannot be both optional and rest."), A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type: diag(5086, 1 /* Error */, "A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086", "A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."), A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type: diag(5087, 1 /* Error */, "A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087", "A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."), @@ -10321,6 +10368,8 @@ var Diagnostics = { Use_0_instead: diag(5106, 3 /* Message */, "Use_0_instead_5106", "Use '{0}' instead."), Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error: diag(5107, 1 /* Error */, "Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107", `Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`), Option_0_1_has_been_removed_Please_remove_it_from_your_configuration: diag(5108, 1 /* Error */, "Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108", "Option '{0}={1}' has been removed. Please remove it from your configuration."), + Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1: diag(5109, 1 /* Error */, "Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109", "Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."), + Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1: diag(5110, 1 /* Error */, "Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110", "Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."), Generates_a_sourcemap_for_each_corresponding_d_ts_file: diag(6e3, 3 /* Message */, "Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000", "Generates a sourcemap for each corresponding '.d.ts' file."), Concatenate_and_emit_output_to_single_file: diag(6001, 3 /* Message */, "Concatenate_and_emit_output_to_single_file_6001", "Concatenate and emit output to single file."), Generates_corresponding_d_ts_file: diag(6002, 3 /* Message */, "Generates_corresponding_d_ts_file_6002", "Generates corresponding '.d.ts' file."), @@ -10701,6 +10750,8 @@ var Diagnostics = { Resolved_under_condition_0: diag(6414, 3 /* Message */, "Resolved_under_condition_0_6414", "Resolved under condition '{0}'."), Failed_to_resolve_under_condition_0: diag(6415, 3 /* Message */, "Failed_to_resolve_under_condition_0_6415", "Failed to resolve under condition '{0}'."), Exiting_conditional_exports: diag(6416, 3 /* Message */, "Exiting_conditional_exports_6416", "Exiting conditional exports."), + Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0: diag(6417, 3 /* Message */, "Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417", "Searching all ancestor node_modules directories for preferred extensions: {0}."), + Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0: diag(6418, 3 /* Message */, "Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418", "Searching all ancestor node_modules directories for fallback extensions: {0}."), The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1: diag(6500, 3 /* Message */, "The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500", "The expected type comes from property '{0}' which is declared here on type '{1}'"), The_expected_type_comes_from_this_index_signature: diag(6501, 3 /* Message */, "The_expected_type_comes_from_this_index_signature_6501", "The expected type comes from this index signature."), The_expected_type_comes_from_the_return_type_of_this_signature: diag(6502, 3 /* Message */, "The_expected_type_comes_from_the_return_type_of_this_signature_6502", "The expected type comes from the return type of this signature."), @@ -10939,6 +10990,7 @@ var Diagnostics = { Parameter_modifiers_can_only_be_used_in_TypeScript_files: diag(8012, 1 /* Error */, "Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012", "Parameter modifiers can only be used in TypeScript files."), Non_null_assertions_can_only_be_used_in_TypeScript_files: diag(8013, 1 /* Error */, "Non_null_assertions_can_only_be_used_in_TypeScript_files_8013", "Non-null assertions can only be used in TypeScript files."), Type_assertion_expressions_can_only_be_used_in_TypeScript_files: diag(8016, 1 /* Error */, "Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016", "Type assertion expressions can only be used in TypeScript files."), + Signature_declarations_can_only_be_used_in_TypeScript_files: diag(8017, 1 /* Error */, "Signature_declarations_can_only_be_used_in_TypeScript_files_8017", "Signature declarations can only be used in TypeScript files."), Report_errors_in_js_files: diag(8019, 3 /* Message */, "Report_errors_in_js_files_8019", "Report errors in .js files."), JSDoc_types_can_only_be_used_inside_documentation_comments: diag(8020, 1 /* Error */, "JSDoc_types_can_only_be_used_inside_documentation_comments_8020", "JSDoc types can only be used inside documentation comments."), JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags: diag(8021, 1 /* Error */, "JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021", "JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."), @@ -11213,6 +11265,14 @@ var Diagnostics = { Convert_all_typedef_to_TypeScript_types: diag(95177, 3 /* Message */, "Convert_all_typedef_to_TypeScript_types_95177", "Convert all typedef to TypeScript types."), Move_to_file: diag(95178, 3 /* Message */, "Move_to_file_95178", "Move to file"), Cannot_move_to_file_selected_file_is_invalid: diag(95179, 3 /* Message */, "Cannot_move_to_file_selected_file_is_invalid_95179", "Cannot move to file, selected file is invalid"), + Use_import_type: diag(95180, 3 /* Message */, "Use_import_type_95180", "Use 'import type'"), + Use_type_0: diag(95181, 3 /* Message */, "Use_type_0_95181", "Use 'type {0}'"), + Fix_all_with_type_only_imports: diag(95182, 3 /* Message */, "Fix_all_with_type_only_imports_95182", "Fix all with type-only imports"), + Cannot_move_statements_to_the_selected_file: diag(95183, 3 /* Message */, "Cannot_move_statements_to_the_selected_file_95183", "Cannot move statements to the selected file"), + Inline_variable: diag(95184, 3 /* Message */, "Inline_variable_95184", "Inline variable"), + Could_not_find_variable_to_inline: diag(95185, 3 /* Message */, "Could_not_find_variable_to_inline_95185", "Could not find variable to inline."), + Variables_with_multiple_declarations_cannot_be_inlined: diag(95186, 3 /* Message */, "Variables_with_multiple_declarations_cannot_be_inlined_95186", "Variables with multiple declarations cannot be inlined."), + Add_missing_comma_for_object_member_completion_0: diag(95187, 3 /* Message */, "Add_missing_comma_for_object_member_completion_0_95187", "Add missing comma for object member completion '{0}'."), No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer: diag(18004, 1 /* Error */, "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004", "No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."), Classes_may_not_have_a_field_named_constructor: diag(18006, 1 /* Error */, "Classes_may_not_have_a_field_named_constructor_18006", "Classes may not have a field named 'constructor'."), JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array: diag(18007, 1 /* Error */, "JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007", "JSX expressions may not use the comma operator. Did you mean to write an array?"), @@ -11239,8 +11299,8 @@ var Diagnostics = { Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment: diag(18034, 3 /* Message */, "Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034", "Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."), Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name: diag(18035, 1 /* Error */, "Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035", "Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."), Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator: diag(18036, 1 /* Error */, "Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036", "Class decorators can't be used with static private identifier. Consider removing the experimental decorator."), - Await_expression_cannot_be_used_inside_a_class_static_block: diag(18037, 1 /* Error */, "Await_expression_cannot_be_used_inside_a_class_static_block_18037", "Await expression cannot be used inside a class static block."), - For_await_loops_cannot_be_used_inside_a_class_static_block: diag(18038, 1 /* Error */, "For_await_loops_cannot_be_used_inside_a_class_static_block_18038", "'For await' loops cannot be used inside a class static block."), + await_expression_cannot_be_used_inside_a_class_static_block: diag(18037, 1 /* Error */, "await_expression_cannot_be_used_inside_a_class_static_block_18037", "'await' expression cannot be used inside a class static block."), + for_await_loops_cannot_be_used_inside_a_class_static_block: diag(18038, 1 /* Error */, "for_await_loops_cannot_be_used_inside_a_class_static_block_18038", "'for await' loops cannot be used inside a class static block."), Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block: diag(18039, 1 /* Error */, "Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039", "Invalid use of '{0}'. It cannot be used inside a class static block."), A_return_statement_cannot_be_used_inside_a_class_static_block: diag(18041, 1 /* Error */, "A_return_statement_cannot_be_used_inside_a_class_static_block_18041", "A 'return' statement cannot be used inside a class static block."), _0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation: diag(18042, 1 /* Error */, "_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042", "'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."), @@ -11254,7 +11314,8 @@ var Diagnostics = { The_value_0_cannot_be_used_here: diag(18050, 1 /* Error */, "The_value_0_cannot_be_used_here_18050", "The value '{0}' cannot be used here."), Compiler_option_0_cannot_be_given_an_empty_string: diag(18051, 1 /* Error */, "Compiler_option_0_cannot_be_given_an_empty_string_18051", "Compiler option '{0}' cannot be given an empty string."), Non_abstract_class_0_does_not_implement_all_abstract_members_of_1: diag(18052, 1 /* Error */, "Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052", "Non-abstract class '{0}' does not implement all abstract members of '{1}'"), - Its_type_0_is_not_a_valid_JSX_element_type: diag(18053, 1 /* Error */, "Its_type_0_is_not_a_valid_JSX_element_type_18053", "Its type '{0}' is not a valid JSX element type.") + Its_type_0_is_not_a_valid_JSX_element_type: diag(18053, 1 /* Error */, "Its_type_0_is_not_a_valid_JSX_element_type_18053", "Its type '{0}' is not a valid JSX element type."), + await_using_statements_cannot_be_used_inside_a_class_static_block: diag(18054, 1 /* Error */, "await_using_statements_cannot_be_used_inside_a_class_static_block_18054", "'await using' statements cannot be used inside a class static block.") }; // src/compiler/scanner.ts @@ -11271,7 +11332,7 @@ var textToKeywordObj = { as: 130 /* AsKeyword */, asserts: 131 /* AssertsKeyword */, assert: 132 /* AssertKeyword */, - bigint: 162 /* BigIntKeyword */, + bigint: 163 /* BigIntKeyword */, boolean: 136 /* BooleanKeyword */, break: 83 /* BreakKeyword */, case: 84 /* CaseKeyword */, @@ -11292,7 +11353,7 @@ var textToKeywordObj = { false: 97 /* FalseKeyword */, finally: 98 /* FinallyKeyword */, for: 99 /* ForKeyword */, - from: 160 /* FromKeyword */, + from: 161 /* FromKeyword */, function: 100 /* FunctionKeyword */, get: 139 /* GetKeyword */, if: 101 /* IfKeyword */, @@ -11317,11 +11378,11 @@ var textToKeywordObj = { private: 123 /* PrivateKeyword */, protected: 124 /* ProtectedKeyword */, public: 125 /* PublicKeyword */, - override: 163 /* OverrideKeyword */, + override: 164 /* OverrideKeyword */, out: 147 /* OutKeyword */, readonly: 148 /* ReadonlyKeyword */, require: 149 /* RequireKeyword */, - global: 161 /* GlobalKeyword */, + global: 162 /* GlobalKeyword */, return: 107 /* ReturnKeyword */, satisfies: 152 /* SatisfiesKeyword */, set: 153 /* SetKeyword */, @@ -11339,6 +11400,7 @@ var textToKeywordObj = { undefined: 157 /* UndefinedKeyword */, unique: 158 /* UniqueKeyword */, unknown: 159 /* UnknownKeyword */, + using: 160 /* UsingKeyword */, var: 115 /* VarKeyword */, void: 116 /* VoidKeyword */, while: 117 /* WhileKeyword */, @@ -11346,7 +11408,7 @@ var textToKeywordObj = { yield: 127 /* YieldKeyword */, async: 134 /* AsyncKeyword */, await: 135 /* AwaitKeyword */, - of: 164 /* OfKeyword */ + of: 165 /* OfKeyword */ }; var textToKeyword = new Map(Object.entries(textToKeywordObj)); var textToToken = new Map(Object.entries({ @@ -11688,9 +11750,9 @@ function isConflictMarkerTrivia(text, pos) { } return false; } -function scanConflictMarkerTrivia(text, pos, error) { - if (error) { - error(Diagnostics.Merge_conflict_marker_encountered, pos, mergeConflictMarkerLength); +function scanConflictMarkerTrivia(text, pos, error2) { + if (error2) { + error2(Diagnostics.Merge_conflict_marker_encountered, pos, mergeConflictMarkerLength); } const ch = text.charCodeAt(pos); const len = text.length; @@ -11987,7 +12049,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan }); } return scanner2; - function error(message, errPos = pos, length3, arg0) { + function error2(message, errPos = pos, length3, arg0) { if (onError) { const oldPos = pos; pos = errPos; @@ -12011,9 +12073,9 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan } else { tokenFlags |= 16384 /* ContainsInvalidSeparator */; if (isPreviousTokenSeparator) { - error(Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1); + error2(Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1); } else { - error(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1); + error2(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1); } } pos++; @@ -12030,7 +12092,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan } if (text.charCodeAt(pos - 1) === 95 /* _ */) { tokenFlags |= 16384 /* ContainsInvalidSeparator */; - error(Diagnostics.Numeric_separators_are_not_allowed_here, pos - 1, 1); + error2(Diagnostics.Numeric_separators_are_not_allowed_here, pos - 1, 1); } return result + text.substring(start3, pos); } @@ -12041,7 +12103,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan pos++; if (text.charCodeAt(pos) === 95 /* _ */) { tokenFlags |= 512 /* ContainsSeparator */ | 16384 /* ContainsInvalidSeparator */; - error(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1); + error2(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1); pos--; mainFragment = scanNumberFragment(); } else if (!scanDigits()) { @@ -12056,8 +12118,8 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan const literal = (withMinus ? "-" : "") + "0o" + (+tokenValue).toString(8); if (withMinus) start3--; - error(Diagnostics.Octal_literals_are_not_allowed_Use_the_syntax_0, start3, pos - start3, literal); - return { type: 9 /* NumericLiteral */, value: tokenValue }; + error2(Diagnostics.Octal_literals_are_not_allowed_Use_the_syntax_0, start3, pos - start3, literal); + return 9 /* NumericLiteral */; } } else { mainFragment = scanNumberFragment(); @@ -12077,7 +12139,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan const preNumericPart = pos; const finalFragment = scanNumberFragment(); if (!finalFragment) { - error(Diagnostics.Digit_expected); + error2(Diagnostics.Digit_expected); } else { scientificFragment = text.substring(end2, preNumericPart) + finalFragment; end2 = pos; @@ -12096,21 +12158,19 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan result = text.substring(start3, end2); } if (tokenFlags & 8192 /* ContainsLeadingZero */) { - error(Diagnostics.Decimals_with_leading_zeros_are_not_allowed, start3, end2 - start3); - return { type: 9 /* NumericLiteral */, value: "" + +result }; + error2(Diagnostics.Decimals_with_leading_zeros_are_not_allowed, start3, end2 - start3); + tokenValue = "" + +result; + return 9 /* NumericLiteral */; } if (decimalFragment !== void 0 || tokenFlags & 16 /* Scientific */) { checkForIdentifierStartAfterNumericLiteral(start3, decimalFragment === void 0 && !!(tokenFlags & 16 /* Scientific */)); - return { - type: 9 /* NumericLiteral */, - value: "" + +result - // if value is not an integer, it can be safely coerced to a number - }; + tokenValue = "" + +result; + return 9 /* NumericLiteral */; } else { tokenValue = result; const type = checkBigIntSuffix(); checkForIdentifierStartAfterNumericLiteral(start3); - return { type, value: tokenValue }; + return type; } } function checkForIdentifierStartAfterNumericLiteral(numericStart, isScientific) { @@ -12121,12 +12181,12 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan const { length: length3 } = scanIdentifierParts(); if (length3 === 1 && text[identifierStart] === "n") { if (isScientific) { - error(Diagnostics.A_bigint_literal_cannot_use_exponential_notation, numericStart, identifierStart - numericStart + 1); + error2(Diagnostics.A_bigint_literal_cannot_use_exponential_notation, numericStart, identifierStart - numericStart + 1); } else { - error(Diagnostics.A_bigint_literal_must_be_an_integer, numericStart, identifierStart - numericStart + 1); + error2(Diagnostics.A_bigint_literal_must_be_an_integer, numericStart, identifierStart - numericStart + 1); } } else { - error(Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal, identifierStart, length3); + error2(Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal, identifierStart, length3); pos = identifierStart; } } @@ -12173,9 +12233,9 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan allowSeparator = false; isPreviousTokenSeparator = true; } else if (isPreviousTokenSeparator) { - error(Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1); + error2(Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1); } else { - error(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1); + error2(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1); } pos++; continue; @@ -12194,7 +12254,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan valueChars = []; } if (text.charCodeAt(pos - 1) === 95 /* _ */) { - error(Diagnostics.Numeric_separators_are_not_allowed_here, pos - 1, 1); + error2(Diagnostics.Numeric_separators_are_not_allowed_here, pos - 1, 1); } return String.fromCharCode(...valueChars); } @@ -12207,7 +12267,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan if (pos >= end) { result += text.substring(start3, pos); tokenFlags |= 4 /* Unterminated */; - error(Diagnostics.Unterminated_string_literal); + error2(Diagnostics.Unterminated_string_literal); break; } const ch = text.charCodeAt(pos); @@ -12228,7 +12288,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan if (isLineBreak(ch) && !jsxAttributeString) { result += text.substring(start3, pos); tokenFlags |= 4 /* Unterminated */; - error(Diagnostics.Unterminated_string_literal); + error2(Diagnostics.Unterminated_string_literal); break; } pos++; @@ -12245,7 +12305,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan if (pos >= end) { contents += text.substring(start3, pos); tokenFlags |= 4 /* Unterminated */; - error(Diagnostics.Unterminated_template_literal); + error2(Diagnostics.Unterminated_template_literal); resultingToken = startedWithBacktick ? 15 /* NoSubstitutionTemplateLiteral */ : 18 /* TemplateTail */; break; } @@ -12288,7 +12348,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan const start3 = pos; pos++; if (pos >= end) { - error(Diagnostics.Unexpected_end_of_text); + error2(Diagnostics.Unexpected_end_of_text); return ""; } const ch = text.charCodeAt(pos); @@ -12314,7 +12374,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan tokenFlags |= 2048 /* ContainsInvalidEscape */; if (shouldEmitInvalidEscapeError) { const code = parseInt(text.substring(start3 + 1, pos), 8); - error(Diagnostics.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0, start3, pos - start3, "\\x" + padLeft(code.toString(16), 2, "0")); + error2(Diagnostics.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0, start3, pos - start3, "\\x" + padLeft(code.toString(16), 2, "0")); return String.fromCharCode(code); } return text.substring(start3, pos); @@ -12322,7 +12382,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan case 57 /* _9 */: tokenFlags |= 2048 /* ContainsInvalidEscape */; if (shouldEmitInvalidEscapeError) { - error(Diagnostics.Escape_sequence_0_is_not_allowed, start3, pos - start3, text.substring(start3, pos)); + error2(Diagnostics.Escape_sequence_0_is_not_allowed, start3, pos - start3, text.substring(start3, pos)); return String.fromCharCode(ch); } return text.substring(start3, pos); @@ -12354,28 +12414,28 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan if (escapedValue < 0) { tokenFlags |= 2048 /* ContainsInvalidEscape */; if (shouldEmitInvalidEscapeError) { - error(Diagnostics.Hexadecimal_digit_expected); + error2(Diagnostics.Hexadecimal_digit_expected); } return text.substring(start3, pos); } if (!isCodePoint(escapedValue)) { tokenFlags |= 2048 /* ContainsInvalidEscape */; if (shouldEmitInvalidEscapeError) { - error(Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive); + error2(Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive); } return text.substring(start3, pos); } if (pos >= end) { tokenFlags |= 2048 /* ContainsInvalidEscape */; if (shouldEmitInvalidEscapeError) { - error(Diagnostics.Unexpected_end_of_text); + error2(Diagnostics.Unexpected_end_of_text); } return text.substring(start3, pos); } if (text.charCodeAt(pos) !== 125 /* closeBrace */) { tokenFlags |= 2048 /* ContainsInvalidEscape */; if (shouldEmitInvalidEscapeError) { - error(Diagnostics.Unterminated_Unicode_escape_sequence); + error2(Diagnostics.Unterminated_Unicode_escape_sequence); } return text.substring(start3, pos); } @@ -12387,7 +12447,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan if (!(pos < end && isHexDigit(text.charCodeAt(pos)))) { tokenFlags |= 2048 /* ContainsInvalidEscape */; if (shouldEmitInvalidEscapeError) { - error(Diagnostics.Hexadecimal_digit_expected); + error2(Diagnostics.Hexadecimal_digit_expected); } return text.substring(start3, pos); } @@ -12399,7 +12459,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan if (!(pos < end && isHexDigit(text.charCodeAt(pos)))) { tokenFlags |= 2048 /* ContainsInvalidEscape */; if (shouldEmitInvalidEscapeError) { - error(Diagnostics.Hexadecimal_digit_expected); + error2(Diagnostics.Hexadecimal_digit_expected); } return text.substring(start3, pos); } @@ -12427,19 +12487,19 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan const escapedValue = escapedValueString ? parseInt(escapedValueString, 16) : -1; let isInvalidExtendedEscape = false; if (escapedValue < 0) { - error(Diagnostics.Hexadecimal_digit_expected); + error2(Diagnostics.Hexadecimal_digit_expected); isInvalidExtendedEscape = true; } else if (escapedValue > 1114111) { - error(Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive); + error2(Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive); isInvalidExtendedEscape = true; } if (pos >= end) { - error(Diagnostics.Unexpected_end_of_text); + error2(Diagnostics.Unexpected_end_of_text); isInvalidExtendedEscape = true; } else if (text.charCodeAt(pos) === 125 /* closeBrace */) { pos++; } else { - error(Diagnostics.Unterminated_Unicode_escape_sequence); + error2(Diagnostics.Unterminated_Unicode_escape_sequence); isInvalidExtendedEscape = true; } if (isInvalidExtendedEscape) { @@ -12533,9 +12593,9 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan separatorAllowed = false; isPreviousTokenSeparator = true; } else if (isPreviousTokenSeparator) { - error(Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1); + error2(Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1); } else { - error(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1); + error2(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1); } pos++; continue; @@ -12549,7 +12609,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan isPreviousTokenSeparator = false; } if (text.charCodeAt(pos - 1) === 95 /* _ */) { - error(Diagnostics.Numeric_separators_are_not_allowed_here, pos - 1, 1); + error2(Diagnostics.Numeric_separators_are_not_allowed_here, pos - 1, 1); } return value; } @@ -12579,7 +12639,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan const ch = codePointAt(text, pos); if (pos === 0) { if (ch === 65533 /* replacementCharacter */) { - error(Diagnostics.File_appears_to_be_binary); + error2(Diagnostics.File_appears_to_be_binary); pos = end; return token = 8 /* NonTextFileMarkerTrivia */; } @@ -12719,7 +12779,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan return token = 41 /* MinusToken */; case 46 /* dot */: if (isDigit(text.charCodeAt(pos + 1))) { - tokenValue = scanNumber().value; + scanNumber(); return token = 9 /* NumericLiteral */; } if (text.charCodeAt(pos + 1) === 46 /* dot */ && text.charCodeAt(pos + 2) === 46 /* dot */) { @@ -12770,7 +12830,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan } commentDirectives = appendIfCommentDirective(commentDirectives, text.slice(lastLineStart, pos), commentDirectiveRegExMultiLine, lastLineStart); if (!commentClosed) { - error(Diagnostics.Asterisk_Slash_expected); + error2(Diagnostics.Asterisk_Slash_expected); } if (skipTrivia2) { continue; @@ -12795,7 +12855,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan true ); if (!tokenValue) { - error(Diagnostics.Hexadecimal_digit_expected); + error2(Diagnostics.Hexadecimal_digit_expected); tokenValue = "0"; } tokenValue = "0x" + tokenValue; @@ -12808,7 +12868,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan 2 ); if (!tokenValue) { - error(Diagnostics.Binary_digit_expected); + error2(Diagnostics.Binary_digit_expected); tokenValue = "0"; } tokenValue = "0b" + tokenValue; @@ -12821,7 +12881,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan 8 ); if (!tokenValue) { - error(Diagnostics.Octal_digit_expected); + error2(Diagnostics.Octal_digit_expected); tokenValue = "0"; } tokenValue = "0o" + tokenValue; @@ -12837,8 +12897,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan case 55 /* _7 */: case 56 /* _8 */: case 57 /* _9 */: - ({ type: token, value: tokenValue } = scanNumber()); - return token; + return token = scanNumber(); case 58 /* colon */: pos++; return token = 59 /* ColonToken */; @@ -12847,7 +12906,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan return token = 27 /* SemicolonToken */; case 60 /* lessThan */: if (isConflictMarkerTrivia(text, pos)) { - pos = scanConflictMarkerTrivia(text, pos, error); + pos = scanConflictMarkerTrivia(text, pos, error2); if (skipTrivia2) { continue; } else { @@ -12870,7 +12929,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan return token = 30 /* LessThanToken */; case 61 /* equals */: if (isConflictMarkerTrivia(text, pos)) { - pos = scanConflictMarkerTrivia(text, pos, error); + pos = scanConflictMarkerTrivia(text, pos, error2); if (skipTrivia2) { continue; } else { @@ -12890,7 +12949,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan return token = 64 /* EqualsToken */; case 62 /* greaterThan */: if (isConflictMarkerTrivia(text, pos)) { - pos = scanConflictMarkerTrivia(text, pos, error); + pos = scanConflictMarkerTrivia(text, pos, error2); if (skipTrivia2) { continue; } else { @@ -12928,7 +12987,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan return token = 19 /* OpenBraceToken */; case 124 /* bar */: if (isConflictMarkerTrivia(text, pos)) { - pos = scanConflictMarkerTrivia(text, pos, error); + pos = scanConflictMarkerTrivia(text, pos, error2); if (skipTrivia2) { continue; } else { @@ -12970,12 +13029,12 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan tokenValue = String.fromCharCode(cookedChar) + scanIdentifierParts(); return token = getIdentifierToken(); } - error(Diagnostics.Invalid_character); + error2(Diagnostics.Invalid_character); pos++; return token = 0 /* Unknown */; case 35 /* hash */: if (pos !== 0 && text[pos + 1] === "!") { - error(Diagnostics.can_only_be_used_at_the_start_of_a_file); + error2(Diagnostics.can_only_be_used_at_the_start_of_a_file); pos++; return token = 0 /* Unknown */; } @@ -13003,7 +13062,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan scanIdentifier(charAfterHash, languageVersion); } else { tokenValue = "#"; - error(Diagnostics.Invalid_character, pos++, charSize(ch)); + error2(Diagnostics.Invalid_character, pos++, charSize(ch)); } return token = 81 /* PrivateIdentifier */; default: @@ -13019,7 +13078,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan continue; } const size = charSize(ch); - error(Diagnostics.Invalid_character, pos, size); + error2(Diagnostics.Invalid_character, pos, size); pos += size; return token = 0 /* Unknown */; } @@ -13085,13 +13144,13 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan while (true) { if (p >= end) { tokenFlags |= 4 /* Unterminated */; - error(Diagnostics.Unterminated_regular_expression_literal); + error2(Diagnostics.Unterminated_regular_expression_literal); break; } const ch = text.charCodeAt(p); if (isLineBreak(ch)) { tokenFlags |= 4 /* Unterminated */; - error(Diagnostics.Unterminated_regular_expression_literal); + error2(Diagnostics.Unterminated_regular_expression_literal); break; } if (inEscape) { @@ -13203,16 +13262,16 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan } if (char === 60 /* lessThan */) { if (isConflictMarkerTrivia(text, pos)) { - pos = scanConflictMarkerTrivia(text, pos, error); + pos = scanConflictMarkerTrivia(text, pos, error2); return token = 7 /* ConflictMarkerTrivia */; } break; } if (char === 62 /* greaterThan */) { - error(Diagnostics.Unexpected_token_Did_you_mean_or_gt, pos, 1); + error2(Diagnostics.Unexpected_token_Did_you_mean_or_gt, pos, 1); } if (char === 125 /* closeBrace */) { - error(Diagnostics.Unexpected_token_Did_you_mean_or_rbrace, pos, 1); + error2(Diagnostics.Unexpected_token_Did_you_mean_or_rbrace, pos, 1); } if (isLineBreak(char) && firstNonWhitespace === 0) { firstNonWhitespace = -1; @@ -13613,16 +13672,16 @@ function collapseTextChangeRangesAcrossMultipleVersions(changes) { ); } function getTypeParameterOwner(d) { - if (d && d.kind === 167 /* TypeParameter */) { + if (d && d.kind === 168 /* TypeParameter */) { for (let current = d; current; current = current.parent) { - if (isFunctionLike(current) || isClassLike(current) || current.kind === 263 /* InterfaceDeclaration */) { + if (isFunctionLike(current) || isClassLike(current) || current.kind === 264 /* InterfaceDeclaration */) { return current; } } } } function isParameterPropertyDeclaration(node, parent2) { - return isParameter(node) && hasSyntacticModifier(node, 16476 /* ParameterPropertyModifier */) && parent2.kind === 175 /* Constructor */; + return isParameter(node) && hasSyntacticModifier(node, 16476 /* ParameterPropertyModifier */) && parent2.kind === 176 /* Constructor */; } function isEmptyBindingPattern(node) { if (isBindingPattern(node)) { @@ -13648,14 +13707,14 @@ function getCombinedFlags(node, getFlags) { node = walkUpBindingElementsAndPatterns(node); } let flags = getFlags(node); - if (node.kind === 259 /* VariableDeclaration */) { + if (node.kind === 260 /* VariableDeclaration */) { node = node.parent; } - if (node && node.kind === 260 /* VariableDeclarationList */) { + if (node && node.kind === 261 /* VariableDeclarationList */) { flags |= getFlags(node); node = node.parent; } - if (node && node.kind === 242 /* VariableStatement */) { + if (node && node.kind === 243 /* VariableStatement */) { flags |= getFlags(node); } return flags; @@ -13667,12 +13726,15 @@ function getCombinedNodeFlagsAlwaysIncludeJSDoc(node) { return getCombinedFlags(node, getEffectiveModifierFlagsAlwaysIncludeJSDoc); } function getCombinedNodeFlags(node) { - return getCombinedFlags(node, (n) => n.flags); + return getCombinedFlags(node, getNodeFlags); +} +function getNodeFlags(node) { + return node.flags; } var supportedLocaleDirectories = ["cs", "de", "es", "fr", "it", "ja", "ko", "pl", "pt-br", "ru", "tr", "zh-cn", "zh-tw"]; function validateLocaleAndSetLanguage(locale, sys2, errors) { const lowerCaseLocale = locale.toLowerCase(); - const matchResult = /^([a-z]+)([_\-]([a-z]+))?$/.exec(lowerCaseLocale); + const matchResult = /^([a-z]+)([_-]([a-z]+))?$/.exec(lowerCaseLocale); if (!matchResult) { if (errors) { errors.push(createCompilerDiagnostic(Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1, "en", "ja-jp")); @@ -13745,7 +13807,7 @@ function findAncestor(node, callback) { return void 0; } function isParseTreeNode(node) { - return (node.flags & 8 /* Synthesized */) === 0; + return (node.flags & 16 /* Synthesized */) === 0; } function getParseTreeNode(node, nodeTest) { if (node === void 0 || isParseTreeNode(node)) { @@ -13788,30 +13850,30 @@ function nameForNamelessJSDocTypedef(declaration) { return getDeclarationIdentifier(hostNode); } switch (hostNode.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: if (hostNode.declarationList && hostNode.declarationList.declarations[0]) { return getDeclarationIdentifier(hostNode.declarationList.declarations[0]); } break; - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: let expr = hostNode.expression; - if (expr.kind === 225 /* BinaryExpression */ && expr.operatorToken.kind === 64 /* EqualsToken */) { + if (expr.kind === 226 /* BinaryExpression */ && expr.operatorToken.kind === 64 /* EqualsToken */) { expr = expr.left; } switch (expr.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return expr.name; - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: const arg = expr.argumentExpression; if (isIdentifier(arg)) { return arg; } } break; - case 216 /* ParenthesizedExpression */: { + case 217 /* ParenthesizedExpression */: { return getDeclarationIdentifier(hostNode.expression); } - case 255 /* LabeledStatement */: { + case 256 /* LabeledStatement */: { if (isDeclaration(hostNode.statement) || isExpression(hostNode.statement)) { return getDeclarationIdentifier(hostNode.statement); } @@ -13842,16 +13904,16 @@ function getNonAssignedNameOfDeclaration(declaration) { switch (declaration.kind) { case 80 /* Identifier */: return declaration; - case 354 /* JSDocPropertyTag */: - case 347 /* JSDocParameterTag */: { + case 355 /* JSDocPropertyTag */: + case 348 /* JSDocParameterTag */: { const { name } = declaration; - if (name.kind === 165 /* QualifiedName */) { + if (name.kind === 166 /* QualifiedName */) { return name.right; } break; } - case 212 /* CallExpression */: - case 225 /* BinaryExpression */: { + case 213 /* CallExpression */: + case 226 /* BinaryExpression */: { const expr2 = declaration; switch (getAssignmentDeclarationKind(expr2)) { case 1 /* ExportsProperty */: @@ -13867,15 +13929,15 @@ function getNonAssignedNameOfDeclaration(declaration) { return void 0; } } - case 352 /* JSDocTypedefTag */: + case 353 /* JSDocTypedefTag */: return getNameOfJSDocTypedef(declaration); - case 346 /* JSDocEnumTag */: + case 347 /* JSDocEnumTag */: return nameForNamelessJSDocTypedef(declaration); - case 276 /* ExportAssignment */: { + case 277 /* ExportAssignment */: { const { expression } = declaration; return isIdentifier(expression) ? expression : void 0; } - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: const expr = declaration; if (isBindableStaticElementAccessExpression(expr)) { return expr.argumentExpression; @@ -14122,10 +14184,10 @@ function getAllJSDocTagsOfKind(node, kind) { return getJSDocTags(node).filter((doc) => doc.kind === kind); } function getTextOfJSDocComment(comment) { - return typeof comment === "string" ? comment : comment == null ? void 0 : comment.map((c) => c.kind === 327 /* JSDocText */ ? c.text : formatJSDocLink(c)).join(""); + return typeof comment === "string" ? comment : comment == null ? void 0 : comment.map((c) => c.kind === 328 /* JSDocText */ ? c.text : formatJSDocLink(c)).join(""); } function formatJSDocLink(link) { - const kind = link.kind === 330 /* JSDocLink */ ? "link" : link.kind === 331 /* JSDocLinkCode */ ? "linkcode" : "linkplain"; + const kind = link.kind === 331 /* JSDocLink */ ? "link" : link.kind === 332 /* JSDocLinkCode */ ? "linkcode" : "linkplain"; const name = link.name ? entityNameToString(link.name) : ""; const space = link.name && link.text.startsWith("://") ? "" : " "; return `{@${kind} ${name}${space}${link.text}}`; @@ -14141,7 +14203,7 @@ function getEffectiveTypeParameterDeclarations(node) { return emptyArray; } if (isJSDocTypeAlias(node)) { - Debug.assert(node.parent.kind === 326 /* JSDoc */); + Debug.assert(node.parent.kind === 327 /* JSDoc */); return flatMap(node.parent.tags, (tag) => isJSDocTemplateTag(tag) ? tag.typeParameters : void 0); } if (node.typeParameters) { @@ -14169,20 +14231,20 @@ function isMemberName(node) { return node.kind === 80 /* Identifier */ || node.kind === 81 /* PrivateIdentifier */; } function isGetOrSetAccessorDeclaration(node) { - return node.kind === 177 /* SetAccessor */ || node.kind === 176 /* GetAccessor */; + return node.kind === 178 /* SetAccessor */ || node.kind === 177 /* GetAccessor */; } function isPropertyAccessChain(node) { - return isPropertyAccessExpression(node) && !!(node.flags & 32 /* OptionalChain */); + return isPropertyAccessExpression(node) && !!(node.flags & 64 /* OptionalChain */); } function isElementAccessChain(node) { - return isElementAccessExpression(node) && !!(node.flags & 32 /* OptionalChain */); + return isElementAccessExpression(node) && !!(node.flags & 64 /* OptionalChain */); } function isCallChain(node) { - return isCallExpression(node) && !!(node.flags & 32 /* OptionalChain */); + return isCallExpression(node) && !!(node.flags & 64 /* OptionalChain */); } function isOptionalChain(node) { const kind = node.kind; - return !!(node.flags & 32 /* OptionalChain */) && (kind === 210 /* PropertyAccessExpression */ || kind === 211 /* ElementAccessExpression */ || kind === 212 /* CallExpression */ || kind === 234 /* NonNullExpression */); + return !!(node.flags & 64 /* OptionalChain */) && (kind === 211 /* PropertyAccessExpression */ || kind === 212 /* ElementAccessExpression */ || kind === 213 /* CallExpression */ || kind === 235 /* NonNullExpression */); } function isOptionalChainRoot(node) { return isOptionalChain(node) && !isNonNullExpression(node) && !!node.questionDotToken; @@ -14194,7 +14256,7 @@ function isOutermostOptionalChain(node) { return !isOptionalChain(node.parent) || isOptionalChainRoot(node.parent) || node !== node.parent.expression; } function isNullishCoalesce(node) { - return node.kind === 225 /* BinaryExpression */ && node.operatorToken.kind === 61 /* QuestionQuestionToken */; + return node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 61 /* QuestionQuestionToken */; } function isConstTypeReference(node) { return isTypeReferenceNode(node) && isIdentifier(node.typeName) && node.typeName.escapedText === "const" && !node.typeArguments; @@ -14203,37 +14265,37 @@ function skipPartiallyEmittedExpressions(node) { return skipOuterExpressions(node, 8 /* PartiallyEmittedExpressions */); } function isNonNullChain(node) { - return isNonNullExpression(node) && !!(node.flags & 32 /* OptionalChain */); + return isNonNullExpression(node) && !!(node.flags & 64 /* OptionalChain */); } function isBreakOrContinueStatement(node) { - return node.kind === 251 /* BreakStatement */ || node.kind === 250 /* ContinueStatement */; + return node.kind === 252 /* BreakStatement */ || node.kind === 251 /* ContinueStatement */; } function isNamedExportBindings(node) { - return node.kind === 279 /* NamespaceExport */ || node.kind === 278 /* NamedExports */; + return node.kind === 280 /* NamespaceExport */ || node.kind === 279 /* NamedExports */; } function isUnparsedTextLike(node) { switch (node.kind) { - case 308 /* UnparsedText */: - case 309 /* UnparsedInternalText */: + case 309 /* UnparsedText */: + case 310 /* UnparsedInternalText */: return true; default: return false; } } function isUnparsedNode(node) { - return isUnparsedTextLike(node) || node.kind === 306 /* UnparsedPrologue */ || node.kind === 310 /* UnparsedSyntheticReference */; + return isUnparsedTextLike(node) || node.kind === 307 /* UnparsedPrologue */ || node.kind === 311 /* UnparsedSyntheticReference */; } function isJSDocPropertyLikeTag(node) { - return node.kind === 354 /* JSDocPropertyTag */ || node.kind === 347 /* JSDocParameterTag */; + return node.kind === 355 /* JSDocPropertyTag */ || node.kind === 348 /* JSDocParameterTag */; } function isNode(node) { return isNodeKind(node.kind); } function isNodeKind(kind) { - return kind >= 165 /* FirstNode */; + return kind >= 166 /* FirstNode */; } function isTokenKind(kind) { - return kind >= 0 /* FirstToken */ && kind <= 164 /* LastToken */; + return kind >= 0 /* FirstToken */ && kind <= 165 /* LastToken */; } function isToken(n) { return isTokenKind(n.kind); @@ -14249,11 +14311,11 @@ function isLiteralExpression(node) { } function isLiteralExpressionOfObject(node) { switch (node.kind) { - case 209 /* ObjectLiteralExpression */: - case 208 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: + case 209 /* ArrayLiteralExpression */: case 14 /* RegularExpressionLiteral */: - case 217 /* FunctionExpression */: - case 230 /* ClassExpression */: + case 218 /* FunctionExpression */: + case 231 /* ClassExpression */: return true; } return false; @@ -14273,23 +14335,23 @@ function isImportOrExportSpecifier(node) { } function isTypeOnlyImportDeclaration(node) { switch (node.kind) { - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: return node.isTypeOnly || node.parent.parent.isTypeOnly; - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: return node.parent.isTypeOnly; - case 272 /* ImportClause */: - case 270 /* ImportEqualsDeclaration */: + case 273 /* ImportClause */: + case 271 /* ImportEqualsDeclaration */: return node.isTypeOnly; } return false; } function isTypeOnlyExportDeclaration(node) { switch (node.kind) { - case 280 /* ExportSpecifier */: + case 281 /* ExportSpecifier */: return node.isTypeOnly || node.parent.parent.isTypeOnly; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return node.isTypeOnly && !!node.moduleSpecifier && !node.exportClause; - case 279 /* NamespaceExport */: + case 280 /* NamespaceExport */: return node.parent.isTypeOnly; } return false; @@ -14311,6 +14373,10 @@ function isGeneratedPrivateIdentifier(node) { var _a; return isPrivateIdentifier(node) && ((_a = node.emitNode) == null ? void 0 : _a.autoGenerate) !== void 0; } +function isFileLevelReservedGeneratedIdentifier(node) { + const flags = node.emitNode.autoGenerate.flags; + return !!(flags & 32 /* FileLevel */) && !!(flags & 16 /* Optimistic */) && !!(flags & 8 /* ReservedInNestedScopes */); +} function isPrivateIdentifierClassElementDeclaration(node) { return (isPropertyDeclaration(node) || isMethodOrAccessor(node)) && isPrivateIdentifier(node.name); } @@ -14333,7 +14399,7 @@ function isModifierKind(token) { case 148 /* ReadonlyKeyword */: case 126 /* StaticKeyword */: case 147 /* OutKeyword */: - case 163 /* OverrideKeyword */: + case 164 /* OverrideKeyword */: return true; } return false; @@ -14342,22 +14408,22 @@ function isParameterPropertyModifier(kind) { return !!(modifierToFlag(kind) & 16476 /* ParameterPropertyModifier */); } function isClassMemberModifier(idToken) { - return isParameterPropertyModifier(idToken) || idToken === 126 /* StaticKeyword */ || idToken === 163 /* OverrideKeyword */ || idToken === 129 /* AccessorKeyword */; + return isParameterPropertyModifier(idToken) || idToken === 126 /* StaticKeyword */ || idToken === 164 /* OverrideKeyword */ || idToken === 129 /* AccessorKeyword */; } function isModifier(node) { return isModifierKind(node.kind); } function isEntityName(node) { const kind = node.kind; - return kind === 165 /* QualifiedName */ || kind === 80 /* Identifier */; + return kind === 166 /* QualifiedName */ || kind === 80 /* Identifier */; } function isPropertyName(node) { const kind = node.kind; - return kind === 80 /* Identifier */ || kind === 81 /* PrivateIdentifier */ || kind === 11 /* StringLiteral */ || kind === 9 /* NumericLiteral */ || kind === 166 /* ComputedPropertyName */; + return kind === 80 /* Identifier */ || kind === 81 /* PrivateIdentifier */ || kind === 11 /* StringLiteral */ || kind === 9 /* NumericLiteral */ || kind === 167 /* ComputedPropertyName */; } function isBindingName(node) { const kind = node.kind; - return kind === 80 /* Identifier */ || kind === 205 /* ObjectBindingPattern */ || kind === 206 /* ArrayBindingPattern */; + return kind === 80 /* Identifier */ || kind === 206 /* ObjectBindingPattern */ || kind === 207 /* ArrayBindingPattern */; } function isFunctionLike(node) { return !!node && isFunctionLikeKind(node.kind); @@ -14373,13 +14439,13 @@ function isBooleanLiteral(node) { } function isFunctionLikeDeclarationKind(kind) { switch (kind) { - case 261 /* FunctionDeclaration */: - case 173 /* MethodDeclaration */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return true; default: return false; @@ -14387,14 +14453,14 @@ function isFunctionLikeDeclarationKind(kind) { } function isFunctionLikeKind(kind) { switch (kind) { - case 172 /* MethodSignature */: - case 178 /* CallSignature */: - case 329 /* JSDocSignature */: - case 179 /* ConstructSignature */: - case 180 /* IndexSignature */: - case 183 /* FunctionType */: - case 323 /* JSDocFunctionType */: - case 184 /* ConstructorType */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 330 /* JSDocSignature */: + case 180 /* ConstructSignature */: + case 181 /* IndexSignature */: + case 184 /* FunctionType */: + case 324 /* JSDocFunctionType */: + case 185 /* ConstructorType */: return true; default: return isFunctionLikeDeclarationKind(kind); @@ -14405,22 +14471,22 @@ function isFunctionOrModuleBlock(node) { } function isClassElement(node) { const kind = node.kind; - return kind === 175 /* Constructor */ || kind === 171 /* PropertyDeclaration */ || kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */ || kind === 180 /* IndexSignature */ || kind === 174 /* ClassStaticBlockDeclaration */ || kind === 239 /* SemicolonClassElement */; + return kind === 176 /* Constructor */ || kind === 172 /* PropertyDeclaration */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 181 /* IndexSignature */ || kind === 175 /* ClassStaticBlockDeclaration */ || kind === 240 /* SemicolonClassElement */; } function isClassLike(node) { - return node && (node.kind === 262 /* ClassDeclaration */ || node.kind === 230 /* ClassExpression */); + return node && (node.kind === 263 /* ClassDeclaration */ || node.kind === 231 /* ClassExpression */); } function isAccessor(node) { - return node && (node.kind === 176 /* GetAccessor */ || node.kind === 177 /* SetAccessor */); + return node && (node.kind === 177 /* GetAccessor */ || node.kind === 178 /* SetAccessor */); } function isAutoAccessorPropertyDeclaration(node) { return isPropertyDeclaration(node) && hasAccessorModifier(node); } function isMethodOrAccessor(node) { switch (node.kind) { - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return true; default: return false; @@ -14428,10 +14494,10 @@ function isMethodOrAccessor(node) { } function isNamedClassElement(node) { switch (node.kind) { - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 171 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 172 /* PropertyDeclaration */: return true; default: return false; @@ -14442,22 +14508,22 @@ function isModifierLike(node) { } function isTypeElement(node) { const kind = node.kind; - return kind === 179 /* ConstructSignature */ || kind === 178 /* CallSignature */ || kind === 170 /* PropertySignature */ || kind === 172 /* MethodSignature */ || kind === 180 /* IndexSignature */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */; + return kind === 180 /* ConstructSignature */ || kind === 179 /* CallSignature */ || kind === 171 /* PropertySignature */ || kind === 173 /* MethodSignature */ || kind === 181 /* IndexSignature */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; } function isClassOrTypeElement(node) { return isTypeElement(node) || isClassElement(node); } function isObjectLiteralElementLike(node) { const kind = node.kind; - return kind === 302 /* PropertyAssignment */ || kind === 303 /* ShorthandPropertyAssignment */ || kind === 304 /* SpreadAssignment */ || kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */; + return kind === 303 /* PropertyAssignment */ || kind === 304 /* ShorthandPropertyAssignment */ || kind === 305 /* SpreadAssignment */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; } function isTypeNode(node) { return isTypeNodeKind(node.kind); } function isFunctionOrConstructorTypeNode(node) { switch (node.kind) { - case 183 /* FunctionType */: - case 184 /* ConstructorType */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: return true; } return false; @@ -14465,23 +14531,23 @@ function isFunctionOrConstructorTypeNode(node) { function isBindingPattern(node) { if (node) { const kind = node.kind; - return kind === 206 /* ArrayBindingPattern */ || kind === 205 /* ObjectBindingPattern */; + return kind === 207 /* ArrayBindingPattern */ || kind === 206 /* ObjectBindingPattern */; } return false; } function isAssignmentPattern(node) { const kind = node.kind; - return kind === 208 /* ArrayLiteralExpression */ || kind === 209 /* ObjectLiteralExpression */; + return kind === 209 /* ArrayLiteralExpression */ || kind === 210 /* ObjectLiteralExpression */; } function isArrayBindingElement(node) { const kind = node.kind; - return kind === 207 /* BindingElement */ || kind === 231 /* OmittedExpression */; + return kind === 208 /* BindingElement */ || kind === 232 /* OmittedExpression */; } function isDeclarationBindingElement(bindingElement) { switch (bindingElement.kind) { - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 207 /* BindingElement */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 208 /* BindingElement */: return true; } return false; @@ -14494,40 +14560,40 @@ function isBindingOrAssignmentPattern(node) { } function isObjectBindingOrAssignmentPattern(node) { switch (node.kind) { - case 205 /* ObjectBindingPattern */: - case 209 /* ObjectLiteralExpression */: + case 206 /* ObjectBindingPattern */: + case 210 /* ObjectLiteralExpression */: return true; } return false; } function isObjectBindingOrAssignmentElement(node) { switch (node.kind) { - case 207 /* BindingElement */: - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: - case 304 /* SpreadAssignment */: + case 208 /* BindingElement */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 305 /* SpreadAssignment */: return true; } return false; } function isArrayBindingOrAssignmentPattern(node) { switch (node.kind) { - case 206 /* ArrayBindingPattern */: - case 208 /* ArrayLiteralExpression */: + case 207 /* ArrayBindingPattern */: + case 209 /* ArrayLiteralExpression */: return true; } return false; } function isArrayBindingOrAssignmentElement(node) { switch (node.kind) { - case 207 /* BindingElement */: - case 231 /* OmittedExpression */: - case 229 /* SpreadElement */: - case 208 /* ArrayLiteralExpression */: - case 209 /* ObjectLiteralExpression */: + case 208 /* BindingElement */: + case 232 /* OmittedExpression */: + case 230 /* SpreadElement */: + case 209 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: case 80 /* Identifier */: - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return true; } return isAssignmentExpression( @@ -14538,50 +14604,50 @@ function isArrayBindingOrAssignmentElement(node) { } function isPropertyAccessOrQualifiedNameOrImportTypeNode(node) { const kind = node.kind; - return kind === 210 /* PropertyAccessExpression */ || kind === 165 /* QualifiedName */ || kind === 204 /* ImportType */; + return kind === 211 /* PropertyAccessExpression */ || kind === 166 /* QualifiedName */ || kind === 205 /* ImportType */; } function isPropertyAccessOrQualifiedName(node) { const kind = node.kind; - return kind === 210 /* PropertyAccessExpression */ || kind === 165 /* QualifiedName */; + return kind === 211 /* PropertyAccessExpression */ || kind === 166 /* QualifiedName */; } function isCallLikeExpression(node) { switch (node.kind) { - case 285 /* JsxOpeningElement */: - case 284 /* JsxSelfClosingElement */: - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 214 /* TaggedTemplateExpression */: - case 169 /* Decorator */: + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 215 /* TaggedTemplateExpression */: + case 170 /* Decorator */: return true; default: return false; } } function isCallOrNewExpression(node) { - return node.kind === 212 /* CallExpression */ || node.kind === 213 /* NewExpression */; + return node.kind === 213 /* CallExpression */ || node.kind === 214 /* NewExpression */; } function isTemplateLiteral(node) { const kind = node.kind; - return kind === 227 /* TemplateExpression */ || kind === 15 /* NoSubstitutionTemplateLiteral */; + return kind === 228 /* TemplateExpression */ || kind === 15 /* NoSubstitutionTemplateLiteral */; } function isLeftHandSideExpression(node) { return isLeftHandSideExpressionKind(skipPartiallyEmittedExpressions(node).kind); } function isLeftHandSideExpressionKind(kind) { switch (kind) { - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: - case 213 /* NewExpression */: - case 212 /* CallExpression */: - case 283 /* JsxElement */: - case 284 /* JsxSelfClosingElement */: - case 287 /* JsxFragment */: - case 214 /* TaggedTemplateExpression */: - case 208 /* ArrayLiteralExpression */: - case 216 /* ParenthesizedExpression */: - case 209 /* ObjectLiteralExpression */: - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + case 214 /* NewExpression */: + case 213 /* CallExpression */: + case 284 /* JsxElement */: + case 285 /* JsxSelfClosingElement */: + case 288 /* JsxFragment */: + case 215 /* TaggedTemplateExpression */: + case 209 /* ArrayLiteralExpression */: + case 217 /* ParenthesizedExpression */: + case 210 /* ObjectLiteralExpression */: + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: case 80 /* Identifier */: case 81 /* PrivateIdentifier */: case 14 /* RegularExpressionLiteral */: @@ -14589,17 +14655,17 @@ function isLeftHandSideExpressionKind(kind) { case 10 /* BigIntLiteral */: case 11 /* StringLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: - case 227 /* TemplateExpression */: + case 228 /* TemplateExpression */: case 97 /* FalseKeyword */: case 106 /* NullKeyword */: case 110 /* ThisKeyword */: case 112 /* TrueKeyword */: case 108 /* SuperKeyword */: - case 234 /* NonNullExpression */: - case 232 /* ExpressionWithTypeArguments */: - case 235 /* MetaProperty */: + case 235 /* NonNullExpression */: + case 233 /* ExpressionWithTypeArguments */: + case 236 /* MetaProperty */: case 102 /* ImportKeyword */: - case 281 /* MissingDeclaration */: + case 282 /* MissingDeclaration */: return true; default: return false; @@ -14610,13 +14676,13 @@ function isUnaryExpression(node) { } function isUnaryExpressionKind(kind) { switch (kind) { - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: - case 219 /* DeleteExpression */: - case 220 /* TypeOfExpression */: - case 221 /* VoidExpression */: - case 222 /* AwaitExpression */: - case 215 /* TypeAssertionExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: + case 220 /* DeleteExpression */: + case 221 /* TypeOfExpression */: + case 222 /* VoidExpression */: + case 223 /* AwaitExpression */: + case 216 /* TypeAssertionExpression */: return true; default: return isLeftHandSideExpressionKind(kind); @@ -14624,9 +14690,9 @@ function isUnaryExpressionKind(kind) { } function isUnaryExpressionWithWrite(expr) { switch (expr.kind) { - case 224 /* PostfixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return true; - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: return expr.operator === 46 /* PlusPlusToken */ || expr.operator === 47 /* MinusMinusToken */; default: return false; @@ -14637,7 +14703,7 @@ function isLiteralTypeLiteral(node) { case 106 /* NullKeyword */: case 112 /* TrueKeyword */: case 97 /* FalseKeyword */: - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: return true; default: return isLiteralExpression(node); @@ -14648,16 +14714,16 @@ function isExpression(node) { } function isExpressionKind(kind) { switch (kind) { - case 226 /* ConditionalExpression */: - case 228 /* YieldExpression */: - case 218 /* ArrowFunction */: - case 225 /* BinaryExpression */: - case 229 /* SpreadElement */: - case 233 /* AsExpression */: - case 231 /* OmittedExpression */: - case 360 /* CommaListExpression */: - case 359 /* PartiallyEmittedExpression */: - case 237 /* SatisfiesExpression */: + case 227 /* ConditionalExpression */: + case 229 /* YieldExpression */: + case 219 /* ArrowFunction */: + case 226 /* BinaryExpression */: + case 230 /* SpreadElement */: + case 234 /* AsExpression */: + case 232 /* OmittedExpression */: + case 361 /* CommaListExpression */: + case 360 /* PartiallyEmittedExpression */: + case 238 /* SatisfiesExpression */: return true; default: return isUnaryExpressionKind(kind); @@ -14665,20 +14731,20 @@ function isExpressionKind(kind) { } function isAssertionExpression(node) { const kind = node.kind; - return kind === 215 /* TypeAssertionExpression */ || kind === 233 /* AsExpression */; + return kind === 216 /* TypeAssertionExpression */ || kind === 234 /* AsExpression */; } function isNotEmittedOrPartiallyEmittedNode(node) { return isNotEmittedStatement(node) || isPartiallyEmittedExpression(node); } function isIterationStatement(node, lookInLabeledStatements) { switch (node.kind) { - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: return true; - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return lookInLabeledStatements && isIterationStatement(node.statement, lookInLabeledStatements); } return false; @@ -14696,7 +14762,7 @@ function isExternalModuleIndicator(result) { return isAnyImportOrReExport(result) || isExportAssignment(result) || hasSyntacticModifier(result, 1 /* Export */); } function isForInOrOfStatement(node) { - return node.kind === 248 /* ForInStatement */ || node.kind === 249 /* ForOfStatement */; + return node.kind === 249 /* ForInStatement */ || node.kind === 250 /* ForOfStatement */; } function isConciseBody(node) { return isBlock(node) || isExpression(node); @@ -14709,89 +14775,89 @@ function isForInitializer(node) { } function isModuleBody(node) { const kind = node.kind; - return kind === 267 /* ModuleBlock */ || kind === 266 /* ModuleDeclaration */ || kind === 80 /* Identifier */; + return kind === 268 /* ModuleBlock */ || kind === 267 /* ModuleDeclaration */ || kind === 80 /* Identifier */; } function isNamespaceBody(node) { const kind = node.kind; - return kind === 267 /* ModuleBlock */ || kind === 266 /* ModuleDeclaration */; + return kind === 268 /* ModuleBlock */ || kind === 267 /* ModuleDeclaration */; } function isJSDocNamespaceBody(node) { const kind = node.kind; - return kind === 80 /* Identifier */ || kind === 266 /* ModuleDeclaration */; + return kind === 80 /* Identifier */ || kind === 267 /* ModuleDeclaration */; } function isNamedImportBindings(node) { const kind = node.kind; - return kind === 274 /* NamedImports */ || kind === 273 /* NamespaceImport */; + return kind === 275 /* NamedImports */ || kind === 274 /* NamespaceImport */; } function isModuleOrEnumDeclaration(node) { - return node.kind === 266 /* ModuleDeclaration */ || node.kind === 265 /* EnumDeclaration */; + return node.kind === 267 /* ModuleDeclaration */ || node.kind === 266 /* EnumDeclaration */; } function canHaveSymbol(node) { switch (node.kind) { - case 218 /* ArrowFunction */: - case 225 /* BinaryExpression */: - case 207 /* BindingElement */: - case 212 /* CallExpression */: - case 178 /* CallSignature */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 174 /* ClassStaticBlockDeclaration */: - case 175 /* Constructor */: - case 184 /* ConstructorType */: - case 179 /* ConstructSignature */: - case 211 /* ElementAccessExpression */: - case 265 /* EnumDeclaration */: - case 305 /* EnumMember */: - case 276 /* ExportAssignment */: - case 277 /* ExportDeclaration */: - case 280 /* ExportSpecifier */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 183 /* FunctionType */: - case 176 /* GetAccessor */: + case 219 /* ArrowFunction */: + case 226 /* BinaryExpression */: + case 208 /* BindingElement */: + case 213 /* CallExpression */: + case 179 /* CallSignature */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 175 /* ClassStaticBlockDeclaration */: + case 176 /* Constructor */: + case 185 /* ConstructorType */: + case 180 /* ConstructSignature */: + case 212 /* ElementAccessExpression */: + case 266 /* EnumDeclaration */: + case 306 /* EnumMember */: + case 277 /* ExportAssignment */: + case 278 /* ExportDeclaration */: + case 281 /* ExportSpecifier */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 184 /* FunctionType */: + case 177 /* GetAccessor */: case 80 /* Identifier */: - case 272 /* ImportClause */: - case 270 /* ImportEqualsDeclaration */: - case 275 /* ImportSpecifier */: - case 180 /* IndexSignature */: - case 263 /* InterfaceDeclaration */: - case 344 /* JSDocCallbackTag */: - case 346 /* JSDocEnumTag */: - case 323 /* JSDocFunctionType */: - case 347 /* JSDocParameterTag */: - case 354 /* JSDocPropertyTag */: - case 329 /* JSDocSignature */: - case 352 /* JSDocTypedefTag */: - case 328 /* JSDocTypeLiteral */: - case 290 /* JsxAttribute */: - case 291 /* JsxAttributes */: - case 292 /* JsxSpreadAttribute */: - case 199 /* MappedType */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 266 /* ModuleDeclaration */: - case 201 /* NamedTupleMember */: - case 279 /* NamespaceExport */: - case 269 /* NamespaceExportDeclaration */: - case 273 /* NamespaceImport */: - case 213 /* NewExpression */: + case 273 /* ImportClause */: + case 271 /* ImportEqualsDeclaration */: + case 276 /* ImportSpecifier */: + case 181 /* IndexSignature */: + case 264 /* InterfaceDeclaration */: + case 345 /* JSDocCallbackTag */: + case 347 /* JSDocEnumTag */: + case 324 /* JSDocFunctionType */: + case 348 /* JSDocParameterTag */: + case 355 /* JSDocPropertyTag */: + case 330 /* JSDocSignature */: + case 353 /* JSDocTypedefTag */: + case 329 /* JSDocTypeLiteral */: + case 291 /* JsxAttribute */: + case 292 /* JsxAttributes */: + case 293 /* JsxSpreadAttribute */: + case 200 /* MappedType */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 267 /* ModuleDeclaration */: + case 202 /* NamedTupleMember */: + case 280 /* NamespaceExport */: + case 270 /* NamespaceExportDeclaration */: + case 274 /* NamespaceImport */: + case 214 /* NewExpression */: case 15 /* NoSubstitutionTemplateLiteral */: case 9 /* NumericLiteral */: - case 209 /* ObjectLiteralExpression */: - case 168 /* Parameter */: - case 210 /* PropertyAccessExpression */: - case 302 /* PropertyAssignment */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 177 /* SetAccessor */: - case 303 /* ShorthandPropertyAssignment */: - case 311 /* SourceFile */: - case 304 /* SpreadAssignment */: + case 210 /* ObjectLiteralExpression */: + case 169 /* Parameter */: + case 211 /* PropertyAccessExpression */: + case 303 /* PropertyAssignment */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 178 /* SetAccessor */: + case 304 /* ShorthandPropertyAssignment */: + case 312 /* SourceFile */: + case 305 /* SpreadAssignment */: case 11 /* StringLiteral */: - case 264 /* TypeAliasDeclaration */: - case 186 /* TypeLiteral */: - case 167 /* TypeParameter */: - case 259 /* VariableDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 187 /* TypeLiteral */: + case 168 /* TypeParameter */: + case 260 /* VariableDeclaration */: return true; default: return false; @@ -14799,53 +14865,53 @@ function canHaveSymbol(node) { } function canHaveLocals(node) { switch (node.kind) { - case 218 /* ArrowFunction */: - case 240 /* Block */: - case 178 /* CallSignature */: - case 268 /* CaseBlock */: - case 298 /* CatchClause */: - case 174 /* ClassStaticBlockDeclaration */: - case 193 /* ConditionalType */: - case 175 /* Constructor */: - case 184 /* ConstructorType */: - case 179 /* ConstructSignature */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 183 /* FunctionType */: - case 176 /* GetAccessor */: - case 180 /* IndexSignature */: - case 344 /* JSDocCallbackTag */: - case 346 /* JSDocEnumTag */: - case 323 /* JSDocFunctionType */: - case 329 /* JSDocSignature */: - case 352 /* JSDocTypedefTag */: - case 199 /* MappedType */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 266 /* ModuleDeclaration */: - case 177 /* SetAccessor */: - case 311 /* SourceFile */: - case 264 /* TypeAliasDeclaration */: + case 219 /* ArrowFunction */: + case 241 /* Block */: + case 179 /* CallSignature */: + case 269 /* CaseBlock */: + case 299 /* CatchClause */: + case 175 /* ClassStaticBlockDeclaration */: + case 194 /* ConditionalType */: + case 176 /* Constructor */: + case 185 /* ConstructorType */: + case 180 /* ConstructSignature */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 184 /* FunctionType */: + case 177 /* GetAccessor */: + case 181 /* IndexSignature */: + case 345 /* JSDocCallbackTag */: + case 347 /* JSDocEnumTag */: + case 324 /* JSDocFunctionType */: + case 330 /* JSDocSignature */: + case 353 /* JSDocTypedefTag */: + case 200 /* MappedType */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 267 /* ModuleDeclaration */: + case 178 /* SetAccessor */: + case 312 /* SourceFile */: + case 265 /* TypeAliasDeclaration */: return true; default: return false; } } function isDeclarationKind(kind) { - return kind === 218 /* ArrowFunction */ || kind === 207 /* BindingElement */ || kind === 262 /* ClassDeclaration */ || kind === 230 /* ClassExpression */ || kind === 174 /* ClassStaticBlockDeclaration */ || kind === 175 /* Constructor */ || kind === 265 /* EnumDeclaration */ || kind === 305 /* EnumMember */ || kind === 280 /* ExportSpecifier */ || kind === 261 /* FunctionDeclaration */ || kind === 217 /* FunctionExpression */ || kind === 176 /* GetAccessor */ || kind === 272 /* ImportClause */ || kind === 270 /* ImportEqualsDeclaration */ || kind === 275 /* ImportSpecifier */ || kind === 263 /* InterfaceDeclaration */ || kind === 290 /* JsxAttribute */ || kind === 173 /* MethodDeclaration */ || kind === 172 /* MethodSignature */ || kind === 266 /* ModuleDeclaration */ || kind === 269 /* NamespaceExportDeclaration */ || kind === 273 /* NamespaceImport */ || kind === 279 /* NamespaceExport */ || kind === 168 /* Parameter */ || kind === 302 /* PropertyAssignment */ || kind === 171 /* PropertyDeclaration */ || kind === 170 /* PropertySignature */ || kind === 177 /* SetAccessor */ || kind === 303 /* ShorthandPropertyAssignment */ || kind === 264 /* TypeAliasDeclaration */ || kind === 167 /* TypeParameter */ || kind === 259 /* VariableDeclaration */ || kind === 352 /* JSDocTypedefTag */ || kind === 344 /* JSDocCallbackTag */ || kind === 354 /* JSDocPropertyTag */; + return kind === 219 /* ArrowFunction */ || kind === 208 /* BindingElement */ || kind === 263 /* ClassDeclaration */ || kind === 231 /* ClassExpression */ || kind === 175 /* ClassStaticBlockDeclaration */ || kind === 176 /* Constructor */ || kind === 266 /* EnumDeclaration */ || kind === 306 /* EnumMember */ || kind === 281 /* ExportSpecifier */ || kind === 262 /* FunctionDeclaration */ || kind === 218 /* FunctionExpression */ || kind === 177 /* GetAccessor */ || kind === 273 /* ImportClause */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 276 /* ImportSpecifier */ || kind === 264 /* InterfaceDeclaration */ || kind === 291 /* JsxAttribute */ || kind === 174 /* MethodDeclaration */ || kind === 173 /* MethodSignature */ || kind === 267 /* ModuleDeclaration */ || kind === 270 /* NamespaceExportDeclaration */ || kind === 274 /* NamespaceImport */ || kind === 280 /* NamespaceExport */ || kind === 169 /* Parameter */ || kind === 303 /* PropertyAssignment */ || kind === 172 /* PropertyDeclaration */ || kind === 171 /* PropertySignature */ || kind === 178 /* SetAccessor */ || kind === 304 /* ShorthandPropertyAssignment */ || kind === 265 /* TypeAliasDeclaration */ || kind === 168 /* TypeParameter */ || kind === 260 /* VariableDeclaration */ || kind === 353 /* JSDocTypedefTag */ || kind === 345 /* JSDocCallbackTag */ || kind === 355 /* JSDocPropertyTag */; } function isDeclarationStatementKind(kind) { - return kind === 261 /* FunctionDeclaration */ || kind === 281 /* MissingDeclaration */ || kind === 262 /* ClassDeclaration */ || kind === 263 /* InterfaceDeclaration */ || kind === 264 /* TypeAliasDeclaration */ || kind === 265 /* EnumDeclaration */ || kind === 266 /* ModuleDeclaration */ || kind === 271 /* ImportDeclaration */ || kind === 270 /* ImportEqualsDeclaration */ || kind === 277 /* ExportDeclaration */ || kind === 276 /* ExportAssignment */ || kind === 269 /* NamespaceExportDeclaration */; + return kind === 262 /* FunctionDeclaration */ || kind === 282 /* MissingDeclaration */ || kind === 263 /* ClassDeclaration */ || kind === 264 /* InterfaceDeclaration */ || kind === 265 /* TypeAliasDeclaration */ || kind === 266 /* EnumDeclaration */ || kind === 267 /* ModuleDeclaration */ || kind === 272 /* ImportDeclaration */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 278 /* ExportDeclaration */ || kind === 277 /* ExportAssignment */ || kind === 270 /* NamespaceExportDeclaration */; } function isStatementKindButNotDeclarationKind(kind) { - return kind === 251 /* BreakStatement */ || kind === 250 /* ContinueStatement */ || kind === 258 /* DebuggerStatement */ || kind === 245 /* DoStatement */ || kind === 243 /* ExpressionStatement */ || kind === 241 /* EmptyStatement */ || kind === 248 /* ForInStatement */ || kind === 249 /* ForOfStatement */ || kind === 247 /* ForStatement */ || kind === 244 /* IfStatement */ || kind === 255 /* LabeledStatement */ || kind === 252 /* ReturnStatement */ || kind === 254 /* SwitchStatement */ || kind === 256 /* ThrowStatement */ || kind === 257 /* TryStatement */ || kind === 242 /* VariableStatement */ || kind === 246 /* WhileStatement */ || kind === 253 /* WithStatement */ || kind === 358 /* NotEmittedStatement */; + return kind === 252 /* BreakStatement */ || kind === 251 /* ContinueStatement */ || kind === 259 /* DebuggerStatement */ || kind === 246 /* DoStatement */ || kind === 244 /* ExpressionStatement */ || kind === 242 /* EmptyStatement */ || kind === 249 /* ForInStatement */ || kind === 250 /* ForOfStatement */ || kind === 248 /* ForStatement */ || kind === 245 /* IfStatement */ || kind === 256 /* LabeledStatement */ || kind === 253 /* ReturnStatement */ || kind === 255 /* SwitchStatement */ || kind === 257 /* ThrowStatement */ || kind === 258 /* TryStatement */ || kind === 243 /* VariableStatement */ || kind === 247 /* WhileStatement */ || kind === 254 /* WithStatement */ || kind === 359 /* NotEmittedStatement */; } function isDeclaration(node) { - if (node.kind === 167 /* TypeParameter */) { - return node.parent && node.parent.kind !== 351 /* JSDocTemplateTag */ || isInJSFile(node); + if (node.kind === 168 /* TypeParameter */) { + return node.parent && node.parent.kind !== 352 /* JSDocTemplateTag */ || isInJSFile(node); } return isDeclarationKind(node.kind); } @@ -14860,10 +14926,10 @@ function isStatement(node) { return isStatementKindButNotDeclarationKind(kind) || isDeclarationStatementKind(kind) || isBlockStatement(node); } function isBlockStatement(node) { - if (node.kind !== 240 /* Block */) + if (node.kind !== 241 /* Block */) return false; if (node.parent !== void 0) { - if (node.parent.kind === 257 /* TryStatement */ || node.parent.kind === 298 /* CatchClause */) { + if (node.parent.kind === 258 /* TryStatement */ || node.parent.kind === 299 /* CatchClause */) { return false; } } @@ -14871,50 +14937,50 @@ function isBlockStatement(node) { } function isStatementOrBlock(node) { const kind = node.kind; - return isStatementKindButNotDeclarationKind(kind) || isDeclarationStatementKind(kind) || kind === 240 /* Block */; + return isStatementKindButNotDeclarationKind(kind) || isDeclarationStatementKind(kind) || kind === 241 /* Block */; } function isModuleReference(node) { const kind = node.kind; - return kind === 282 /* ExternalModuleReference */ || kind === 165 /* QualifiedName */ || kind === 80 /* Identifier */; + return kind === 283 /* ExternalModuleReference */ || kind === 166 /* QualifiedName */ || kind === 80 /* Identifier */; } function isJsxTagNameExpression(node) { const kind = node.kind; - return kind === 110 /* ThisKeyword */ || kind === 80 /* Identifier */ || kind === 210 /* PropertyAccessExpression */ || kind === 294 /* JsxNamespacedName */; + return kind === 110 /* ThisKeyword */ || kind === 80 /* Identifier */ || kind === 211 /* PropertyAccessExpression */ || kind === 295 /* JsxNamespacedName */; } function isJsxChild(node) { const kind = node.kind; - return kind === 283 /* JsxElement */ || kind === 293 /* JsxExpression */ || kind === 284 /* JsxSelfClosingElement */ || kind === 12 /* JsxText */ || kind === 287 /* JsxFragment */; + return kind === 284 /* JsxElement */ || kind === 294 /* JsxExpression */ || kind === 285 /* JsxSelfClosingElement */ || kind === 12 /* JsxText */ || kind === 288 /* JsxFragment */; } function isJsxAttributeLike(node) { const kind = node.kind; - return kind === 290 /* JsxAttribute */ || kind === 292 /* JsxSpreadAttribute */; + return kind === 291 /* JsxAttribute */ || kind === 293 /* JsxSpreadAttribute */; } function isStringLiteralOrJsxExpression(node) { const kind = node.kind; - return kind === 11 /* StringLiteral */ || kind === 293 /* JsxExpression */; + return kind === 11 /* StringLiteral */ || kind === 294 /* JsxExpression */; } function isJsxOpeningLikeElement(node) { const kind = node.kind; - return kind === 285 /* JsxOpeningElement */ || kind === 284 /* JsxSelfClosingElement */; + return kind === 286 /* JsxOpeningElement */ || kind === 285 /* JsxSelfClosingElement */; } function isCaseOrDefaultClause(node) { const kind = node.kind; - return kind === 295 /* CaseClause */ || kind === 296 /* DefaultClause */; + return kind === 296 /* CaseClause */ || kind === 297 /* DefaultClause */; } function isJSDocNode(node) { - return node.kind >= 315 /* FirstJSDocNode */ && node.kind <= 356 /* LastJSDocNode */; + return node.kind >= 316 /* FirstJSDocNode */ && node.kind <= 357 /* LastJSDocNode */; } function isJSDocCommentContainingNode(node) { - return node.kind === 326 /* JSDoc */ || node.kind === 325 /* JSDocNamepathType */ || node.kind === 327 /* JSDocText */ || isJSDocLinkLike(node) || isJSDocTag(node) || isJSDocTypeLiteral(node) || isJSDocSignature(node); + return node.kind === 327 /* JSDoc */ || node.kind === 326 /* JSDocNamepathType */ || node.kind === 328 /* JSDocText */ || isJSDocLinkLike(node) || isJSDocTag(node) || isJSDocTypeLiteral(node) || isJSDocSignature(node); } function isJSDocTag(node) { - return node.kind >= 333 /* FirstJSDocTagNode */ && node.kind <= 356 /* LastJSDocTagNode */; + return node.kind >= 334 /* FirstJSDocTagNode */ && node.kind <= 357 /* LastJSDocTagNode */; } function isSetAccessor(node) { - return node.kind === 177 /* SetAccessor */; + return node.kind === 178 /* SetAccessor */; } function isGetAccessor(node) { - return node.kind === 176 /* GetAccessor */; + return node.kind === 177 /* GetAccessor */; } function hasJSDocNodes(node) { if (!canHaveJSDoc(node)) @@ -14930,22 +14996,22 @@ function hasInitializer(node) { } function hasOnlyExpressionInitializer(node) { switch (node.kind) { - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 207 /* BindingElement */: - case 171 /* PropertyDeclaration */: - case 302 /* PropertyAssignment */: - case 305 /* EnumMember */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 208 /* BindingElement */: + case 172 /* PropertyDeclaration */: + case 303 /* PropertyAssignment */: + case 306 /* EnumMember */: return true; default: return false; } } function isObjectLiteralElement(node) { - return node.kind === 290 /* JsxAttribute */ || node.kind === 292 /* JsxSpreadAttribute */ || isObjectLiteralElementLike(node); + return node.kind === 291 /* JsxAttribute */ || node.kind === 293 /* JsxSpreadAttribute */ || isObjectLiteralElementLike(node); } function isTypeReferenceType(node) { - return node.kind === 182 /* TypeReference */ || node.kind === 232 /* ExpressionWithTypeArguments */; + return node.kind === 183 /* TypeReference */ || node.kind === 233 /* ExpressionWithTypeArguments */; } var MAX_SMI_X86 = 1073741823; function guessIndentation(lines) { @@ -14973,7 +15039,7 @@ function isStringLiteralLike(node) { return node.kind === 11 /* StringLiteral */ || node.kind === 15 /* NoSubstitutionTemplateLiteral */; } function isJSDocLinkLike(node) { - return node.kind === 330 /* JSDocLink */ || node.kind === 331 /* JSDocLinkCode */ || node.kind === 332 /* JSDocLinkPlain */; + return node.kind === 331 /* JSDocLink */ || node.kind === 332 /* JSDocLinkCode */ || node.kind === 333 /* JSDocLinkPlain */; } function hasRestParameter(s) { const last2 = lastOrUndefined(s.parameters); @@ -14981,7 +15047,7 @@ function hasRestParameter(s) { } function isRestParameter(node) { const type = isJSDocParameterTag(node) ? node.typeExpression && node.typeExpression.type : node.type; - return node.dotDotDotToken !== void 0 || !!type && type.kind === 324 /* JSDocVariadicType */; + return node.dotDotDotToken !== void 0 || !!type && type.kind === 325 /* JSDocVariadicType */; } // src/compiler/utilities.ts @@ -15198,19 +15264,19 @@ function hasChangesInResolutions(names, newSourceFile, newResolutions, oldResolu } function containsParseError(node) { aggregateChildData(node); - return (node.flags & 524288 /* ThisNodeOrAnySubNodesHasError */) !== 0; + return (node.flags & 1048576 /* ThisNodeOrAnySubNodesHasError */) !== 0; } function aggregateChildData(node) { - if (!(node.flags & 1048576 /* HasAggregatedChildData */)) { - const thisNodeOrAnySubNodesHasError = (node.flags & 131072 /* ThisNodeHasError */) !== 0 || forEachChild(node, containsParseError); + if (!(node.flags & 2097152 /* HasAggregatedChildData */)) { + const thisNodeOrAnySubNodesHasError = (node.flags & 262144 /* ThisNodeHasError */) !== 0 || forEachChild(node, containsParseError); if (thisNodeOrAnySubNodesHasError) { - node.flags |= 524288 /* ThisNodeOrAnySubNodesHasError */; + node.flags |= 1048576 /* ThisNodeOrAnySubNodesHasError */; } - node.flags |= 1048576 /* HasAggregatedChildData */; + node.flags |= 2097152 /* HasAggregatedChildData */; } } function getSourceFileOfNode(node) { - while (node && node.kind !== 311 /* SourceFile */) { + while (node && node.kind !== 312 /* SourceFile */) { node = node.parent; } return node; @@ -15223,11 +15289,11 @@ function isPlainJsFile(file, checkJs) { } function isStatementWithLocals(node) { switch (node.kind) { - case 240 /* Block */: - case 268 /* CaseBlock */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: + case 241 /* Block */: + case 269 /* CaseBlock */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: return true; } return false; @@ -15386,7 +15452,7 @@ function getTokenPosOfNode(node, sourceFile, includeJsDoc) { if (includeJsDoc && hasJSDocNodes(node)) { return getTokenPosOfNode(node.jsDoc[0], sourceFile); } - if (node.kind === 357 /* SyntaxList */ && node._children.length > 0) { + if (node.kind === 358 /* SyntaxList */ && node._children.length > 0) { return getTokenPosOfNode(node._children[0], sourceFile, includeJsDoc); } return skipTrivia( @@ -15909,11 +15975,11 @@ function makeIdentifierFromModuleName(moduleName) { return getBaseFileName(moduleName).replace(/^(\d)/, "_$1").replace(/\W/g, "_"); } function isBlockOrCatchScoped(declaration) { - return (getCombinedNodeFlags(declaration) & 3 /* BlockScoped */) !== 0 || isCatchClauseVariableDeclarationOrBindingElement(declaration); + return (getCombinedNodeFlags(declaration) & 7 /* BlockScoped */) !== 0 || isCatchClauseVariableDeclarationOrBindingElement(declaration); } function isCatchClauseVariableDeclarationOrBindingElement(declaration) { const node = getRootDeclaration(declaration); - return node.kind === 259 /* VariableDeclaration */ && node.parent.kind === 298 /* CatchClause */; + return node.kind === 260 /* VariableDeclaration */ && node.parent.kind === 299 /* CatchClause */; } function isAmbientModule(node) { return isModuleDeclaration(node) && (node.name.kind === 11 /* StringLiteral */ || isGlobalScopeAugmentation(node)); @@ -15931,22 +15997,22 @@ function isShorthandAmbientModuleSymbol(moduleSymbol) { return isShorthandAmbientModule(moduleSymbol.valueDeclaration); } function isShorthandAmbientModule(node) { - return !!node && node.kind === 266 /* ModuleDeclaration */ && !node.body; + return !!node && node.kind === 267 /* ModuleDeclaration */ && !node.body; } function isBlockScopedContainerTopLevel(node) { - return node.kind === 311 /* SourceFile */ || node.kind === 266 /* ModuleDeclaration */ || isFunctionLikeOrClassStaticBlockDeclaration(node); + return node.kind === 312 /* SourceFile */ || node.kind === 267 /* ModuleDeclaration */ || isFunctionLikeOrClassStaticBlockDeclaration(node); } function isGlobalScopeAugmentation(module2) { - return !!(module2.flags & 1024 /* GlobalAugmentation */); + return !!(module2.flags & 2048 /* GlobalAugmentation */); } function isExternalModuleAugmentation(node) { return isAmbientModule(node) && isModuleAugmentationExternal(node); } function isModuleAugmentationExternal(node) { switch (node.parent.kind) { - case 311 /* SourceFile */: + case 312 /* SourceFile */: return isExternalModule(node.parent); - case 267 /* ModuleBlock */: + case 268 /* ModuleBlock */: return isAmbientModule(node.parent.parent) && isSourceFile(node.parent.parent.parent) && !isExternalModule(node.parent.parent.parent); } return false; @@ -15989,28 +16055,28 @@ function isEffectiveStrictModeSourceFile(node, compilerOptions) { return false; } function isAmbientPropertyDeclaration(node) { - return !!(node.flags & 16777216 /* Ambient */) || hasSyntacticModifier(node, 2 /* Ambient */); + return !!(node.flags & 33554432 /* Ambient */) || hasSyntacticModifier(node, 2 /* Ambient */); } function isBlockScope(node, parentNode) { switch (node.kind) { - case 311 /* SourceFile */: - case 268 /* CaseBlock */: - case 298 /* CatchClause */: - case 266 /* ModuleDeclaration */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 175 /* Constructor */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 171 /* PropertyDeclaration */: - case 174 /* ClassStaticBlockDeclaration */: + case 312 /* SourceFile */: + case 269 /* CaseBlock */: + case 299 /* CatchClause */: + case 267 /* ModuleDeclaration */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 172 /* PropertyDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: return true; - case 240 /* Block */: + case 241 /* Block */: return !isFunctionLikeOrClassStaticBlockDeclaration(parentNode); } return false; @@ -16018,9 +16084,9 @@ function isBlockScope(node, parentNode) { function isDeclarationWithTypeParameters(node) { Debug.type(node); switch (node.kind) { - case 344 /* JSDocCallbackTag */: - case 352 /* JSDocTypedefTag */: - case 329 /* JSDocSignature */: + case 345 /* JSDocCallbackTag */: + case 353 /* JSDocTypedefTag */: + case 330 /* JSDocSignature */: return true; default: assertType(node); @@ -16030,25 +16096,25 @@ function isDeclarationWithTypeParameters(node) { function isDeclarationWithTypeParameterChildren(node) { Debug.type(node); switch (node.kind) { - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 172 /* MethodSignature */: - case 180 /* IndexSignature */: - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 323 /* JSDocFunctionType */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 351 /* JSDocTemplateTag */: - case 261 /* FunctionDeclaration */: - case 173 /* MethodDeclaration */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 173 /* MethodSignature */: + case 181 /* IndexSignature */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 324 /* JSDocFunctionType */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 352 /* JSDocTemplateTag */: + case 262 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return true; default: assertType(node); @@ -16057,8 +16123,8 @@ function isDeclarationWithTypeParameterChildren(node) { } function isAnyImportSyntax(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: - case 270 /* ImportEqualsDeclaration */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: return true; default: return false; @@ -16069,15 +16135,15 @@ function isAnyImportOrBareOrAccessedRequire(node) { } function isLateVisibilityPaintedStatement(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: - case 270 /* ImportEqualsDeclaration */: - case 242 /* VariableStatement */: - case 262 /* ClassDeclaration */: - case 261 /* FunctionDeclaration */: - case 266 /* ModuleDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 243 /* VariableStatement */: + case 263 /* ClassDeclaration */: + case 262 /* FunctionDeclaration */: + case 267 /* ModuleDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: return true; default: return false; @@ -16089,6 +16155,9 @@ function hasPossibleExternalModuleReference(node) { function isAnyImportOrReExport(node) { return isAnyImportSyntax(node) || isExportDeclaration(node); } +function getEnclosingContainer(node) { + return findAncestor(node.parent, (n) => !!(getContainerFlags(n) & 1 /* IsContainer */)); +} function getEnclosingBlockScopeContainer(node) { return findAncestor(node.parent, (current) => isBlockScope(current, current.parent)); } @@ -16106,7 +16175,7 @@ function getNameFromIndexInfo(info) { return info.declaration ? declarationNameToString(info.declaration.parameters[0].name) : void 0; } function isComputedNonLiteralName(name) { - return name.kind === 166 /* ComputedPropertyName */ && !isStringOrNumericLiteralLike(name.expression); + return name.kind === 167 /* ComputedPropertyName */ && !isStringOrNumericLiteralLike(name.expression); } function tryGetTextOfPropertyName(name) { var _a; @@ -16118,11 +16187,11 @@ function tryGetTextOfPropertyName(name) { case 9 /* NumericLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: return escapeLeadingUnderscores(name.text); - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: if (isStringOrNumericLiteralLike(name.expression)) return escapeLeadingUnderscores(name.expression.text); return void 0; - case 294 /* JsxNamespacedName */: + case 295 /* JsxNamespacedName */: return getEscapedTextOfJsxNamespacedName(name); default: return Debug.assertNever(name); @@ -16138,17 +16207,17 @@ function entityNameToString(name) { case 81 /* PrivateIdentifier */: case 80 /* Identifier */: return getFullWidth(name) === 0 ? idText(name) : getTextOfNode(name); - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: return entityNameToString(name.left) + "." + entityNameToString(name.right); - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: if (isIdentifier(name.name) || isPrivateIdentifier(name.name)) { return entityNameToString(name.expression) + "." + entityNameToString(name.name); } else { return Debug.assertNever(name.name); } - case 317 /* JSDocMemberName */: + case 318 /* JSDocMemberName */: return entityNameToString(name.left) + entityNameToString(name.right); - case 294 /* JsxNamespacedName */: + case 295 /* JsxNamespacedName */: return entityNameToString(name.namespace) + ":" + entityNameToString(name.name); default: return Debug.assertNever(name); @@ -16254,7 +16323,7 @@ function scanTokenAtPosition(sourceFile, pos) { } function getErrorSpanForArrowFunction(sourceFile, node) { const pos = skipTrivia(sourceFile.text, node.pos); - if (node.body && node.body.kind === 240 /* Block */) { + if (node.body && node.body.kind === 241 /* Block */) { const { line: startLine } = getLineAndCharacterOfPosition(sourceFile, node.body.pos); const { line: endLine } = getLineAndCharacterOfPosition(sourceFile, node.body.end); if (startLine < endLine) { @@ -16266,7 +16335,7 @@ function getErrorSpanForArrowFunction(sourceFile, node) { function getErrorSpanForNode(sourceFile, node) { let errorNode = node; switch (node.kind) { - case 311 /* SourceFile */: { + case 312 /* SourceFile */: { const pos2 = skipTrivia( sourceFile.text, 0, @@ -16278,43 +16347,43 @@ function getErrorSpanForNode(sourceFile, node) { } return getSpanOfTokenAtPosition(sourceFile, pos2); } - case 259 /* VariableDeclaration */: - case 207 /* BindingElement */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 266 /* ModuleDeclaration */: - case 265 /* EnumDeclaration */: - case 305 /* EnumMember */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 264 /* TypeAliasDeclaration */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 273 /* NamespaceImport */: + case 260 /* VariableDeclaration */: + case 208 /* BindingElement */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 267 /* ModuleDeclaration */: + case 266 /* EnumDeclaration */: + case 306 /* EnumMember */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 265 /* TypeAliasDeclaration */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 274 /* NamespaceImport */: errorNode = node.name; break; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return getErrorSpanForArrowFunction(sourceFile, node); - case 295 /* CaseClause */: - case 296 /* DefaultClause */: { + case 296 /* CaseClause */: + case 297 /* DefaultClause */: { const start2 = skipTrivia(sourceFile.text, node.pos); const end = node.statements.length > 0 ? node.statements[0].pos : node.end; return createTextSpanFromBounds(start2, end); } - case 252 /* ReturnStatement */: - case 228 /* YieldExpression */: { + case 253 /* ReturnStatement */: + case 229 /* YieldExpression */: { const pos2 = skipTrivia(sourceFile.text, node.pos); return getSpanOfTokenAtPosition(sourceFile, pos2); } - case 237 /* SatisfiesExpression */: { + case 238 /* SatisfiesExpression */: { const pos2 = skipTrivia(sourceFile.text, node.expression.end); return getSpanOfTokenAtPosition(sourceFile, pos2); } - case 356 /* JSDocSatisfiesTag */: { + case 357 /* JSDocSatisfiesTag */: { const pos2 = skipTrivia(sourceFile.text, node.tagName.pos); return getSpanOfTokenAtPosition(sourceFile, pos2); } @@ -16346,17 +16415,23 @@ function isEnumConst(node) { function isDeclarationReadonly(declaration) { return !!(getCombinedModifierFlags(declaration) & 64 /* Readonly */ && !isParameterPropertyDeclaration(declaration, declaration.parent)); } +function isVarAwaitUsing(node) { + return (getCombinedNodeFlags(node) & 7 /* BlockScoped */) === 6 /* AwaitUsing */; +} +function isVarUsing(node) { + return (getCombinedNodeFlags(node) & 7 /* BlockScoped */) === 4 /* Using */; +} function isVarConst(node) { - return !!(getCombinedNodeFlags(node) & 2 /* Const */); + return (getCombinedNodeFlags(node) & 7 /* BlockScoped */) === 2 /* Const */; } function isLet(node) { - return !!(getCombinedNodeFlags(node) & 1 /* Let */); + return (getCombinedNodeFlags(node) & 7 /* BlockScoped */) === 1 /* Let */; } function isSuperCall(n) { - return n.kind === 212 /* CallExpression */ && n.expression.kind === 108 /* SuperKeyword */; + return n.kind === 213 /* CallExpression */ && n.expression.kind === 108 /* SuperKeyword */; } function isImportCall(n) { - return n.kind === 212 /* CallExpression */ && n.expression.kind === 102 /* ImportKeyword */; + return n.kind === 213 /* CallExpression */ && n.expression.kind === 102 /* ImportKeyword */; } function isImportMeta(n) { return isMetaProperty(n) && n.keywordToken === 102 /* ImportKeyword */ && n.name.escapedText === "meta"; @@ -16365,7 +16440,7 @@ function isLiteralImportTypeNode(n) { return isImportTypeNode(n) && isLiteralTypeNode(n.argument) && isStringLiteral(n.argument.literal); } function isPrologueDirective(node) { - return node.kind === 243 /* ExpressionStatement */ && node.expression.kind === 11 /* StringLiteral */; + return node.kind === 244 /* ExpressionStatement */ && node.expression.kind === 11 /* StringLiteral */; } function isCustomPrologue(node) { return !!(getEmitFlags(node) & 2097152 /* CustomPrologue */); @@ -16383,7 +16458,7 @@ function getLeadingCommentRangesOfNode(node, sourceFileOfNode) { return node.kind !== 12 /* JsxText */ ? getLeadingCommentRanges(sourceFileOfNode.text, node.pos) : void 0; } function getJSDocCommentRanges(node, text) { - const commentRanges = node.kind === 168 /* Parameter */ || node.kind === 167 /* TypeParameter */ || node.kind === 217 /* FunctionExpression */ || node.kind === 218 /* ArrowFunction */ || node.kind === 216 /* ParenthesizedExpression */ || node.kind === 259 /* VariableDeclaration */ || node.kind === 280 /* ExportSpecifier */ ? concatenate(getTrailingCommentRanges(text, node.pos), getLeadingCommentRanges(text, node.pos)) : getLeadingCommentRanges(text, node.pos); + const commentRanges = node.kind === 169 /* Parameter */ || node.kind === 168 /* TypeParameter */ || node.kind === 218 /* FunctionExpression */ || node.kind === 219 /* ArrowFunction */ || node.kind === 217 /* ParenthesizedExpression */ || node.kind === 260 /* VariableDeclaration */ || node.kind === 281 /* ExportSpecifier */ ? concatenate(getTrailingCommentRanges(text, node.pos), getLeadingCommentRanges(text, node.pos)) : getLeadingCommentRanges(text, node.pos); return filter(commentRanges, (comment) => text.charCodeAt(comment.pos + 1) === 42 /* asterisk */ && text.charCodeAt(comment.pos + 2) === 42 /* asterisk */ && text.charCodeAt(comment.pos + 3) !== 47 /* slash */); } var fullTripleSlashReferencePathRegEx = /^(\/\/\/\s*/; @@ -16393,14 +16468,14 @@ var fullTripleSlashAMDReferencePathRegEx = /^(\/\/\/\s*/; var defaultLibReferenceRegEx = /^(\/\/\/\s*/; function isPartOfTypeNode(node) { - if (181 /* FirstTypeNode */ <= node.kind && node.kind <= 204 /* LastTypeNode */) { + if (182 /* FirstTypeNode */ <= node.kind && node.kind <= 205 /* LastTypeNode */) { return true; } switch (node.kind) { case 133 /* AnyKeyword */: case 159 /* UnknownKeyword */: case 150 /* NumberKeyword */: - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: case 154 /* StringKeyword */: case 136 /* BooleanKeyword */: case 155 /* SymbolKeyword */: @@ -16410,64 +16485,64 @@ function isPartOfTypeNode(node) { case 146 /* NeverKeyword */: return true; case 116 /* VoidKeyword */: - return node.parent.kind !== 221 /* VoidExpression */; - case 232 /* ExpressionWithTypeArguments */: + return node.parent.kind !== 222 /* VoidExpression */; + case 233 /* ExpressionWithTypeArguments */: return isHeritageClause(node.parent) && !isExpressionWithTypeArgumentsInClassExtendsClause(node); - case 167 /* TypeParameter */: - return node.parent.kind === 199 /* MappedType */ || node.parent.kind === 194 /* InferType */; + case 168 /* TypeParameter */: + return node.parent.kind === 200 /* MappedType */ || node.parent.kind === 195 /* InferType */; case 80 /* Identifier */: - if (node.parent.kind === 165 /* QualifiedName */ && node.parent.right === node) { + if (node.parent.kind === 166 /* QualifiedName */ && node.parent.right === node) { node = node.parent; - } else if (node.parent.kind === 210 /* PropertyAccessExpression */ && node.parent.name === node) { + } else if (node.parent.kind === 211 /* PropertyAccessExpression */ && node.parent.name === node) { node = node.parent; } Debug.assert( - node.kind === 80 /* Identifier */ || node.kind === 165 /* QualifiedName */ || node.kind === 210 /* PropertyAccessExpression */, + node.kind === 80 /* Identifier */ || node.kind === 166 /* QualifiedName */ || node.kind === 211 /* PropertyAccessExpression */, "'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'." ); - case 165 /* QualifiedName */: - case 210 /* PropertyAccessExpression */: + case 166 /* QualifiedName */: + case 211 /* PropertyAccessExpression */: case 110 /* ThisKeyword */: { const { parent: parent2 } = node; - if (parent2.kind === 185 /* TypeQuery */) { + if (parent2.kind === 186 /* TypeQuery */) { return false; } - if (parent2.kind === 204 /* ImportType */) { + if (parent2.kind === 205 /* ImportType */) { return !parent2.isTypeOf; } - if (181 /* FirstTypeNode */ <= parent2.kind && parent2.kind <= 204 /* LastTypeNode */) { + if (182 /* FirstTypeNode */ <= parent2.kind && parent2.kind <= 205 /* LastTypeNode */) { return true; } switch (parent2.kind) { - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return isHeritageClause(parent2.parent) && !isExpressionWithTypeArgumentsInClassExtendsClause(parent2); - case 167 /* TypeParameter */: + case 168 /* TypeParameter */: return node === parent2.constraint; - case 351 /* JSDocTemplateTag */: + case 352 /* JSDocTemplateTag */: return node === parent2.constraint; - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 168 /* Parameter */: - case 259 /* VariableDeclaration */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 169 /* Parameter */: + case 260 /* VariableDeclaration */: return node === parent2.type; - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 175 /* Constructor */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return node === parent2.type; - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 180 /* IndexSignature */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 181 /* IndexSignature */: return node === parent2.type; - case 215 /* TypeAssertionExpression */: + case 216 /* TypeAssertionExpression */: return node === parent2.type; - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 214 /* TaggedTemplateExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 215 /* TaggedTemplateExpression */: return contains(parent2.typeArguments, node); } } @@ -16487,23 +16562,23 @@ function forEachReturnStatement(body, visitor) { return traverse(body); function traverse(node) { switch (node.kind) { - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: return visitor(node); - case 268 /* CaseBlock */: - case 240 /* Block */: - case 244 /* IfStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 253 /* WithStatement */: - case 254 /* SwitchStatement */: - case 295 /* CaseClause */: - case 296 /* DefaultClause */: - case 255 /* LabeledStatement */: - case 257 /* TryStatement */: - case 298 /* CatchClause */: + case 269 /* CaseBlock */: + case 241 /* Block */: + case 245 /* IfStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 254 /* WithStatement */: + case 255 /* SwitchStatement */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: + case 256 /* LabeledStatement */: + case 258 /* TryStatement */: + case 299 /* CatchClause */: return forEachChild(node, traverse); } } @@ -16512,21 +16587,21 @@ function forEachYieldExpression(body, visitor) { return traverse(body); function traverse(node) { switch (node.kind) { - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: visitor(node); const operand = node.expression; if (operand) { traverse(operand); } return; - case 265 /* EnumDeclaration */: - case 263 /* InterfaceDeclaration */: - case 266 /* ModuleDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 266 /* EnumDeclaration */: + case 264 /* InterfaceDeclaration */: + case 267 /* ModuleDeclaration */: + case 265 /* TypeAliasDeclaration */: return; default: if (isFunctionLike(node)) { - if (node.name && node.name.kind === 166 /* ComputedPropertyName */) { + if (node.name && node.name.kind === 167 /* ComputedPropertyName */) { traverse(node.name.expression); return; } @@ -16537,9 +16612,9 @@ function forEachYieldExpression(body, visitor) { } } function getRestParameterElementType(node) { - if (node && node.kind === 187 /* ArrayType */) { + if (node && node.kind === 188 /* ArrayType */) { return node.elementType; - } else if (node && node.kind === 182 /* TypeReference */) { + } else if (node && node.kind === 183 /* TypeReference */) { return singleOrUndefined(node.typeArguments); } else { return void 0; @@ -16547,26 +16622,26 @@ function getRestParameterElementType(node) { } function getMembersOfDeclaration(node) { switch (node.kind) { - case 263 /* InterfaceDeclaration */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 186 /* TypeLiteral */: + case 264 /* InterfaceDeclaration */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 187 /* TypeLiteral */: return node.members; - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return node.properties; } } function isVariableLike(node) { if (node) { switch (node.kind) { - case 207 /* BindingElement */: - case 305 /* EnumMember */: - case 168 /* Parameter */: - case 302 /* PropertyAssignment */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 303 /* ShorthandPropertyAssignment */: - case 259 /* VariableDeclaration */: + case 208 /* BindingElement */: + case 306 /* EnumMember */: + case 169 /* Parameter */: + case 303 /* PropertyAssignment */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 304 /* ShorthandPropertyAssignment */: + case 260 /* VariableDeclaration */: return true; } } @@ -16576,7 +16651,7 @@ function isVariableLikeOrAccessor(node) { return isVariableLike(node) || isAccessor(node); } function isVariableDeclarationInVariableStatement(node) { - return node.parent.kind === 260 /* VariableDeclarationList */ && node.parent.parent.kind === 242 /* VariableStatement */; + return node.parent.kind === 261 /* VariableDeclarationList */ && node.parent.parent.kind === 243 /* VariableStatement */; } function isCommonJsExportedExpression(node) { if (!isInJSFile(node)) @@ -16593,13 +16668,13 @@ function isValidESSymbolDeclaration(node) { } function introducesArgumentsExoticObject(node) { switch (node.kind) { - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: return true; } return false; @@ -16609,20 +16684,20 @@ function unwrapInnermostStatementOfLabel(node, beforeUnwrapLabelCallback) { if (beforeUnwrapLabelCallback) { beforeUnwrapLabelCallback(node); } - if (node.statement.kind !== 255 /* LabeledStatement */) { + if (node.statement.kind !== 256 /* LabeledStatement */) { return node.statement; } node = node.statement; } } function isFunctionBlock(node) { - return node && node.kind === 240 /* Block */ && isFunctionLike(node.parent); + return node && node.kind === 241 /* Block */ && isFunctionLike(node.parent); } function isObjectLiteralMethod(node) { - return node && node.kind === 173 /* MethodDeclaration */ && node.parent.kind === 209 /* ObjectLiteralExpression */; + return node && node.kind === 174 /* MethodDeclaration */ && node.parent.kind === 210 /* ObjectLiteralExpression */; } function isObjectLiteralOrClassExpressionMethodOrAccessor(node) { - return (node.kind === 173 /* MethodDeclaration */ || node.kind === 176 /* GetAccessor */ || node.kind === 177 /* SetAccessor */) && (node.parent.kind === 209 /* ObjectLiteralExpression */ || node.parent.kind === 230 /* ClassExpression */); + return (node.kind === 174 /* MethodDeclaration */ || node.kind === 177 /* GetAccessor */ || node.kind === 178 /* SetAccessor */) && (node.parent.kind === 210 /* ObjectLiteralExpression */ || node.parent.kind === 231 /* ClassExpression */); } function isIdentifierTypePredicate(predicate) { return predicate && predicate.kind === 1 /* Identifier */; @@ -16677,64 +16752,68 @@ function getContainingClassStaticBlock(node) { function getContainingFunctionOrClassStaticBlock(node) { return findAncestor(node.parent, isFunctionLikeOrClassStaticBlockDeclaration); } +function getContainingClassExcludingClassDecorators(node) { + const decorator = findAncestor(node.parent, (n) => isClassLike(n) ? "quit" : isDecorator(n)); + return decorator && isClassLike(decorator.parent) ? getContainingClass(decorator.parent) : getContainingClass(decorator ?? node); +} function getThisContainer(node, includeArrowFunctions, includeClassComputedPropertyName) { - Debug.assert(node.kind !== 311 /* SourceFile */); + Debug.assert(node.kind !== 312 /* SourceFile */); while (true) { node = node.parent; if (!node) { return Debug.fail(); } switch (node.kind) { - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: if (includeClassComputedPropertyName && isClassLike(node.parent.parent)) { return node; } node = node.parent.parent; break; - case 169 /* Decorator */: - if (node.parent.kind === 168 /* Parameter */ && isClassElement(node.parent.parent)) { + case 170 /* Decorator */: + if (node.parent.kind === 169 /* Parameter */ && isClassElement(node.parent.parent)) { node = node.parent.parent; } else if (isClassElement(node.parent)) { node = node.parent; } break; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: if (!includeArrowFunctions) { continue; } - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 266 /* ModuleDeclaration */: - case 174 /* ClassStaticBlockDeclaration */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 180 /* IndexSignature */: - case 265 /* EnumDeclaration */: - case 311 /* SourceFile */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 267 /* ModuleDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 181 /* IndexSignature */: + case 266 /* EnumDeclaration */: + case 312 /* SourceFile */: return node; } } } function isThisContainerOrFunctionBlock(node) { switch (node.kind) { - case 218 /* ArrowFunction */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 171 /* PropertyDeclaration */: + case 219 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 172 /* PropertyDeclaration */: return true; - case 240 /* Block */: + case 241 /* Block */: switch (node.parent.kind) { - case 175 /* Constructor */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return true; default: return false; @@ -16766,9 +16845,9 @@ function getNewTargetContainer(node) { ); if (container) { switch (container.kind) { - case 175 /* Constructor */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 176 /* Constructor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: return container; } } @@ -16781,26 +16860,26 @@ function getSuperContainer(node, stopOnFunctions) { return void 0; } switch (node.kind) { - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: node = node.parent; break; - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: if (!stopOnFunctions) { continue; } - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 174 /* ClassStaticBlockDeclaration */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 175 /* ClassStaticBlockDeclaration */: return node; - case 169 /* Decorator */: - if (node.parent.kind === 168 /* Parameter */ && isClassElement(node.parent.parent)) { + case 170 /* Decorator */: + if (node.parent.kind === 169 /* Parameter */ && isClassElement(node.parent.parent)) { node = node.parent.parent; } else if (isClassElement(node.parent)) { node = node.parent; @@ -16810,14 +16889,14 @@ function getSuperContainer(node, stopOnFunctions) { } } function getImmediatelyInvokedFunctionExpression(func) { - if (func.kind === 217 /* FunctionExpression */ || func.kind === 218 /* ArrowFunction */) { + if (func.kind === 218 /* FunctionExpression */ || func.kind === 219 /* ArrowFunction */) { let prev = func; let parent2 = func.parent; - while (parent2.kind === 216 /* ParenthesizedExpression */) { + while (parent2.kind === 217 /* ParenthesizedExpression */) { prev = parent2; parent2 = parent2.parent; } - if (parent2.kind === 212 /* CallExpression */ && parent2.expression === prev) { + if (parent2.kind === 213 /* CallExpression */ && parent2.expression === prev) { return parent2; } } @@ -16827,11 +16906,11 @@ function isSuperOrSuperProperty(node) { } function isSuperProperty(node) { const kind = node.kind; - return (kind === 210 /* PropertyAccessExpression */ || kind === 211 /* ElementAccessExpression */) && node.expression.kind === 108 /* SuperKeyword */; + return (kind === 211 /* PropertyAccessExpression */ || kind === 212 /* ElementAccessExpression */) && node.expression.kind === 108 /* SuperKeyword */; } function isThisProperty(node) { const kind = node.kind; - return (kind === 210 /* PropertyAccessExpression */ || kind === 211 /* ElementAccessExpression */) && node.expression.kind === 110 /* ThisKeyword */; + return (kind === 211 /* PropertyAccessExpression */ || kind === 212 /* ElementAccessExpression */) && node.expression.kind === 110 /* ThisKeyword */; } function isThisInitializedDeclaration(node) { var _a; @@ -16842,22 +16921,22 @@ function isThisInitializedObjectBindingExpression(node) { } function getEntityNameFromTypeNode(node) { switch (node.kind) { - case 182 /* TypeReference */: + case 183 /* TypeReference */: return node.typeName; - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return isEntityNameExpression(node.expression) ? node.expression : void 0; case 80 /* Identifier */: - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: return node; } return void 0; } function getInvokedExpression(node) { switch (node.kind) { - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return node.tag; - case 285 /* JsxOpeningElement */: - case 284 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: return node.tagName; default: return node.expression; @@ -16868,20 +16947,20 @@ function nodeCanBeDecorated(useLegacyDecorators, node, parent2, grandparent) { return false; } switch (node.kind) { - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return true; - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return !useLegacyDecorators; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return parent2 !== void 0 && (useLegacyDecorators ? isClassDeclaration(parent2) : isClassLike(parent2) && !hasAbstractModifier(node) && !hasAmbientModifier(node)); - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 173 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: return node.body !== void 0 && parent2 !== void 0 && (useLegacyDecorators ? isClassDeclaration(parent2) : isClassLike(parent2)); - case 168 /* Parameter */: + case 169 /* Parameter */: if (!useLegacyDecorators) return false; - return parent2 !== void 0 && parent2.body !== void 0 && (parent2.kind === 175 /* Constructor */ || parent2.kind === 173 /* MethodDeclaration */ || parent2.kind === 177 /* SetAccessor */) && getThisParameter(parent2) !== node && grandparent !== void 0 && grandparent.kind === 262 /* ClassDeclaration */; + return parent2 !== void 0 && parent2.body !== void 0 && (parent2.kind === 176 /* Constructor */ || parent2.kind === 174 /* MethodDeclaration */ || parent2.kind === 178 /* SetAccessor */) && getThisParameter(parent2) !== node && grandparent !== void 0 && grandparent.kind === 263 /* ClassDeclaration */; } return false; } @@ -16893,13 +16972,13 @@ function nodeOrChildIsDecorated(useLegacyDecorators, node, parent2, grandparent) } function childIsDecorated(useLegacyDecorators, node, parent2) { switch (node.kind) { - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return some(node.members, (m) => nodeOrChildIsDecorated(useLegacyDecorators, m, node, parent2)); - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return !useLegacyDecorators && some(node.members, (m) => nodeOrChildIsDecorated(useLegacyDecorators, m, node, parent2)); - case 173 /* MethodDeclaration */: - case 177 /* SetAccessor */: - case 175 /* Constructor */: + case 174 /* MethodDeclaration */: + case 178 /* SetAccessor */: + case 176 /* Constructor */: return some(node.parameters, (p) => nodeIsDecorated(useLegacyDecorators, p, node, parent2)); default: return false; @@ -16950,7 +17029,7 @@ function isEmptyStringLiteral(node) { } function isJSXTagName(node) { const { parent: parent2 } = node; - if (parent2.kind === 285 /* JsxOpeningElement */ || parent2.kind === 284 /* JsxSelfClosingElement */ || parent2.kind === 286 /* JsxClosingElement */) { + if (parent2.kind === 286 /* JsxOpeningElement */ || parent2.kind === 285 /* JsxSelfClosingElement */ || parent2.kind === 287 /* JsxClosingElement */) { return parent2.tagName === node; } return false; @@ -16962,54 +17041,54 @@ function isExpressionNode(node) { case 112 /* TrueKeyword */: case 97 /* FalseKeyword */: case 14 /* RegularExpressionLiteral */: - case 208 /* ArrayLiteralExpression */: - case 209 /* ObjectLiteralExpression */: - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 214 /* TaggedTemplateExpression */: - case 233 /* AsExpression */: - case 215 /* TypeAssertionExpression */: - case 237 /* SatisfiesExpression */: - case 234 /* NonNullExpression */: - case 216 /* ParenthesizedExpression */: - case 217 /* FunctionExpression */: - case 230 /* ClassExpression */: - case 218 /* ArrowFunction */: - case 221 /* VoidExpression */: - case 219 /* DeleteExpression */: - case 220 /* TypeOfExpression */: - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: - case 225 /* BinaryExpression */: - case 226 /* ConditionalExpression */: - case 229 /* SpreadElement */: - case 227 /* TemplateExpression */: - case 231 /* OmittedExpression */: - case 283 /* JsxElement */: - case 284 /* JsxSelfClosingElement */: - case 287 /* JsxFragment */: - case 228 /* YieldExpression */: - case 222 /* AwaitExpression */: - case 235 /* MetaProperty */: + case 209 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 215 /* TaggedTemplateExpression */: + case 234 /* AsExpression */: + case 216 /* TypeAssertionExpression */: + case 238 /* SatisfiesExpression */: + case 235 /* NonNullExpression */: + case 217 /* ParenthesizedExpression */: + case 218 /* FunctionExpression */: + case 231 /* ClassExpression */: + case 219 /* ArrowFunction */: + case 222 /* VoidExpression */: + case 220 /* DeleteExpression */: + case 221 /* TypeOfExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: + case 226 /* BinaryExpression */: + case 227 /* ConditionalExpression */: + case 230 /* SpreadElement */: + case 228 /* TemplateExpression */: + case 232 /* OmittedExpression */: + case 284 /* JsxElement */: + case 285 /* JsxSelfClosingElement */: + case 288 /* JsxFragment */: + case 229 /* YieldExpression */: + case 223 /* AwaitExpression */: + case 236 /* MetaProperty */: return true; - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return !isHeritageClause(node.parent) && !isJSDocAugmentsTag(node.parent); - case 165 /* QualifiedName */: - while (node.parent.kind === 165 /* QualifiedName */) { + case 166 /* QualifiedName */: + while (node.parent.kind === 166 /* QualifiedName */) { node = node.parent; } - return node.parent.kind === 185 /* TypeQuery */ || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node); - case 317 /* JSDocMemberName */: + return node.parent.kind === 186 /* TypeQuery */ || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node); + case 318 /* JSDocMemberName */: while (isJSDocMemberName(node.parent)) { node = node.parent; } - return node.parent.kind === 185 /* TypeQuery */ || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node); + return node.parent.kind === 186 /* TypeQuery */ || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node); case 81 /* PrivateIdentifier */: return isBinaryExpression(node.parent) && node.parent.left === node && node.parent.operatorToken.kind === 103 /* InKeyword */; case 80 /* Identifier */: - if (node.parent.kind === 185 /* TypeQuery */ || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node)) { + if (node.parent.kind === 186 /* TypeQuery */ || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node)) { return true; } case 9 /* NumericLiteral */: @@ -17025,64 +17104,64 @@ function isExpressionNode(node) { function isInExpressionContext(node) { const { parent: parent2 } = node; switch (parent2.kind) { - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 305 /* EnumMember */: - case 302 /* PropertyAssignment */: - case 207 /* BindingElement */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 306 /* EnumMember */: + case 303 /* PropertyAssignment */: + case 208 /* BindingElement */: return parent2.initializer === node; - case 243 /* ExpressionStatement */: - case 244 /* IfStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: - case 252 /* ReturnStatement */: - case 253 /* WithStatement */: - case 254 /* SwitchStatement */: - case 295 /* CaseClause */: - case 256 /* ThrowStatement */: + case 244 /* ExpressionStatement */: + case 245 /* IfStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 253 /* ReturnStatement */: + case 254 /* WithStatement */: + case 255 /* SwitchStatement */: + case 296 /* CaseClause */: + case 257 /* ThrowStatement */: return parent2.expression === node; - case 247 /* ForStatement */: + case 248 /* ForStatement */: const forStatement = parent2; - return forStatement.initializer === node && forStatement.initializer.kind !== 260 /* VariableDeclarationList */ || forStatement.condition === node || forStatement.incrementor === node; - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: + return forStatement.initializer === node && forStatement.initializer.kind !== 261 /* VariableDeclarationList */ || forStatement.condition === node || forStatement.incrementor === node; + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: const forInStatement = parent2; - return forInStatement.initializer === node && forInStatement.initializer.kind !== 260 /* VariableDeclarationList */ || forInStatement.expression === node; - case 215 /* TypeAssertionExpression */: - case 233 /* AsExpression */: + return forInStatement.initializer === node && forInStatement.initializer.kind !== 261 /* VariableDeclarationList */ || forInStatement.expression === node; + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: return node === parent2.expression; - case 238 /* TemplateSpan */: + case 239 /* TemplateSpan */: return node === parent2.expression; - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: return node === parent2.expression; - case 169 /* Decorator */: - case 293 /* JsxExpression */: - case 292 /* JsxSpreadAttribute */: - case 304 /* SpreadAssignment */: + case 170 /* Decorator */: + case 294 /* JsxExpression */: + case 293 /* JsxSpreadAttribute */: + case 305 /* SpreadAssignment */: return true; - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return parent2.expression === node && !isPartOfTypeNode(parent2); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return parent2.objectAssignmentInitializer === node; - case 237 /* SatisfiesExpression */: + case 238 /* SatisfiesExpression */: return node === parent2.expression; default: return isExpressionNode(parent2); } } function isPartOfTypeQuery(node) { - while (node.kind === 165 /* QualifiedName */ || node.kind === 80 /* Identifier */) { + while (node.kind === 166 /* QualifiedName */ || node.kind === 80 /* Identifier */) { node = node.parent; } - return node.kind === 185 /* TypeQuery */; + return node.kind === 186 /* TypeQuery */; } function isNamespaceReexportDeclaration(node) { return isNamespaceExport(node) && !!node.parent.moduleSpecifier; } function isExternalModuleImportEqualsDeclaration(node) { - return node.kind === 270 /* ImportEqualsDeclaration */ && node.moduleReference.kind === 282 /* ExternalModuleReference */; + return node.kind === 271 /* ImportEqualsDeclaration */ && node.moduleReference.kind === 283 /* ExternalModuleReference */; } function getExternalModuleImportEqualsDeclarationExpression(node) { Debug.assert(isExternalModuleImportEqualsDeclaration(node)); @@ -17092,7 +17171,7 @@ function getExternalModuleRequireArgument(node) { return isVariableDeclarationInitializedToBareOrAccessedRequire(node) && getLeftmostAccessExpression(node.initializer).arguments[0]; } function isInternalModuleImportEqualsDeclaration(node) { - return node.kind === 270 /* ImportEqualsDeclaration */ && node.moduleReference.kind !== 282 /* ExternalModuleReference */; + return node.kind === 271 /* ImportEqualsDeclaration */ && node.moduleReference.kind !== 283 /* ExternalModuleReference */; } function isSourceFileJS(file) { return isInJSFile(file); @@ -17101,22 +17180,22 @@ function isSourceFileNotJS(file) { return !isInJSFile(file); } function isInJSFile(node) { - return !!node && !!(node.flags & 262144 /* JavaScriptFile */); + return !!node && !!(node.flags & 524288 /* JavaScriptFile */); } function isInJsonFile(node) { - return !!node && !!(node.flags & 67108864 /* JsonFile */); + return !!node && !!(node.flags & 134217728 /* JsonFile */); } function isSourceFileNotJson(file) { return !isJsonSourceFile(file); } function isInJSDoc(node) { - return !!node && !!(node.flags & 8388608 /* JSDoc */); + return !!node && !!(node.flags & 16777216 /* JSDoc */); } function isJSDocIndexSignature(node) { return isTypeReferenceNode(node) && isIdentifier(node.typeName) && node.typeName.escapedText === "Object" && node.typeArguments && node.typeArguments.length === 2 && (node.typeArguments[0].kind === 154 /* StringKeyword */ || node.typeArguments[0].kind === 150 /* NumberKeyword */); } function isRequireCall(callExpression, requireStringLiteralLikeArgument) { - if (callExpression.kind !== 212 /* CallExpression */) { + if (callExpression.kind !== 213 /* CallExpression */) { return false; } const { expression, arguments: args } = callExpression; @@ -17193,9 +17272,9 @@ function getAssignedExpandoInitializer(node) { function getExpandoInitializer(initializer, isPrototypeAssignment) { if (isCallExpression(initializer)) { const e = skipParentheses(initializer.expression); - return e.kind === 217 /* FunctionExpression */ || e.kind === 218 /* ArrowFunction */ ? initializer : void 0; + return e.kind === 218 /* FunctionExpression */ || e.kind === 219 /* ArrowFunction */ ? initializer : void 0; } - if (initializer.kind === 217 /* FunctionExpression */ || initializer.kind === 230 /* ClassExpression */ || initializer.kind === 218 /* ArrowFunction */) { + if (initializer.kind === 218 /* FunctionExpression */ || initializer.kind === 231 /* ClassExpression */ || initializer.kind === 219 /* ArrowFunction */) { return initializer; } if (isObjectLiteralExpression(initializer) && (initializer.properties.length === 0 || isPrototypeAssignment)) { @@ -17386,11 +17465,11 @@ function isPrototypePropertyAssignment(node) { return isBinaryExpression(node) && getAssignmentDeclarationKind(node) === 3 /* PrototypeProperty */; } function isSpecialPropertyDeclaration(expr) { - return isInJSFile(expr) && expr.parent && expr.parent.kind === 243 /* ExpressionStatement */ && (!isElementAccessExpression(expr) || isLiteralLikeElementAccess(expr)) && !!getJSDocTypeTag(expr.parent); + return isInJSFile(expr) && expr.parent && expr.parent.kind === 244 /* ExpressionStatement */ && (!isElementAccessExpression(expr) || isLiteralLikeElementAccess(expr)) && !!getJSDocTypeTag(expr.parent); } function setValueDeclaration(symbol, node) { const { valueDeclaration } = symbol; - if (!valueDeclaration || !(node.flags & 16777216 /* Ambient */ && !isInJSFile(node) && !(valueDeclaration.flags & 16777216 /* Ambient */)) && (isAssignmentDeclaration(valueDeclaration) && !isAssignmentDeclaration(node)) || valueDeclaration.kind !== node.kind && isEffectiveModuleDeclaration(valueDeclaration)) { + if (!valueDeclaration || !(node.flags & 33554432 /* Ambient */ && !isInJSFile(node) && !(valueDeclaration.flags & 33554432 /* Ambient */)) && (isAssignmentDeclaration(valueDeclaration) && !isAssignmentDeclaration(node)) || valueDeclaration.kind !== node.kind && isEffectiveModuleDeclaration(valueDeclaration)) { symbol.valueDeclaration = node; } } @@ -17399,29 +17478,29 @@ function isFunctionSymbol(symbol) { return false; } const decl = symbol.valueDeclaration; - return decl.kind === 261 /* FunctionDeclaration */ || isVariableDeclaration(decl) && decl.initializer && isFunctionLike(decl.initializer); + return decl.kind === 262 /* FunctionDeclaration */ || isVariableDeclaration(decl) && decl.initializer && isFunctionLike(decl.initializer); } function tryGetModuleSpecifierFromDeclaration(node) { var _a, _b; switch (node.kind) { - case 259 /* VariableDeclaration */: - case 207 /* BindingElement */: + case 260 /* VariableDeclaration */: + case 208 /* BindingElement */: return (_a = findAncestor(node.initializer, (node2) => isRequireCall( node2, /*requireStringLiteralLikeArgument*/ true ))) == null ? void 0 : _a.arguments[0]; - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return tryCast(node.moduleSpecifier, isStringLiteralLike); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return tryCast((_b = tryCast(node.moduleReference, isExternalModuleReference)) == null ? void 0 : _b.expression, isStringLiteralLike); - case 272 /* ImportClause */: - case 279 /* NamespaceExport */: + case 273 /* ImportClause */: + case 280 /* NamespaceExport */: return tryCast(node.parent.moduleSpecifier, isStringLiteralLike); - case 273 /* NamespaceImport */: - case 280 /* ExportSpecifier */: + case 274 /* NamespaceImport */: + case 281 /* ExportSpecifier */: return tryCast(node.parent.parent.moduleSpecifier, isStringLiteralLike); - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: return tryCast(node.parent.parent.parent.moduleSpecifier, isStringLiteralLike); default: Debug.assertNever(node); @@ -17432,18 +17511,18 @@ function importFromModuleSpecifier(node) { } function tryGetImportFromModuleSpecifier(node) { switch (node.parent.kind) { - case 271 /* ImportDeclaration */: - case 277 /* ExportDeclaration */: + case 272 /* ImportDeclaration */: + case 278 /* ExportDeclaration */: return node.parent; - case 282 /* ExternalModuleReference */: + case 283 /* ExternalModuleReference */: return node.parent.parent; - case 212 /* CallExpression */: + case 213 /* CallExpression */: return isImportCall(node.parent) || isRequireCall( node.parent, /*requireStringLiteralLikeArgument*/ false ) ? node.parent : void 0; - case 200 /* LiteralType */: + case 201 /* LiteralType */: Debug.assert(isStringLiteral(node)); return tryCast(node.parent.parent, isImportTypeNode); default: @@ -17452,16 +17531,16 @@ function tryGetImportFromModuleSpecifier(node) { } function getExternalModuleName(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: - case 277 /* ExportDeclaration */: + case 272 /* ImportDeclaration */: + case 278 /* ExportDeclaration */: return node.moduleSpecifier; - case 270 /* ImportEqualsDeclaration */: - return node.moduleReference.kind === 282 /* ExternalModuleReference */ ? node.moduleReference.expression : void 0; - case 204 /* ImportType */: + case 271 /* ImportEqualsDeclaration */: + return node.moduleReference.kind === 283 /* ExternalModuleReference */ ? node.moduleReference.expression : void 0; + case 205 /* ImportType */: return isLiteralImportTypeNode(node) ? node.argument.literal : void 0; - case 212 /* CallExpression */: + case 213 /* CallExpression */: return node.arguments[0]; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return node.name.kind === 11 /* StringLiteral */ ? node.name : void 0; default: return Debug.assertNever(node); @@ -17469,18 +17548,18 @@ function getExternalModuleName(node) { } function getNamespaceDeclarationNode(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return node.importClause && tryCast(node.importClause.namedBindings, isNamespaceImport); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return node; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return node.exportClause && tryCast(node.exportClause, isNamespaceExport); default: return Debug.assertNever(node); } } function isDefaultImport(node) { - return node.kind === 271 /* ImportDeclaration */ && !!node.importClause && !!node.importClause.name; + return node.kind === 272 /* ImportDeclaration */ && !!node.importClause && !!node.importClause.name; } function forEachImportClauseDeclaration(node, action) { if (node.name) { @@ -17497,13 +17576,13 @@ function forEachImportClauseDeclaration(node, action) { function hasQuestionToken(node) { if (node) { switch (node.kind) { - case 168 /* Parameter */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 303 /* ShorthandPropertyAssignment */: - case 302 /* PropertyAssignment */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: + case 169 /* Parameter */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 304 /* ShorthandPropertyAssignment */: + case 303 /* PropertyAssignment */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: return node.questionToken !== void 0; } } @@ -17515,7 +17594,7 @@ function isJSDocConstructSignature(node) { return !!name && name.escapedText === "new"; } function isJSDocTypeAlias(node) { - return node.kind === 352 /* JSDocTypedefTag */ || node.kind === 344 /* JSDocCallbackTag */ || node.kind === 346 /* JSDocEnumTag */; + return node.kind === 353 /* JSDocTypedefTag */ || node.kind === 345 /* JSDocCallbackTag */ || node.kind === 347 /* JSDocEnumTag */; } function isTypeAlias(node) { return isJSDocTypeAlias(node) || isTypeAliasDeclaration(node); @@ -17528,12 +17607,12 @@ function getSourceOfDefaultedAssignment(node) { } function getSingleInitializerOfVariableStatementOrPropertyDeclaration(node) { switch (node.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: const v = getSingleVariableOfVariableStatement(node); return v && v.initializer; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return node.initializer; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return node.initializer; } } @@ -17541,26 +17620,26 @@ function getSingleVariableOfVariableStatement(node) { return isVariableStatement(node) ? firstOrUndefined(node.declarationList.declarations) : void 0; } function getNestedModuleDeclaration(node) { - return isModuleDeclaration(node) && node.body && node.body.kind === 266 /* ModuleDeclaration */ ? node.body : void 0; + return isModuleDeclaration(node) && node.body && node.body.kind === 267 /* ModuleDeclaration */ ? node.body : void 0; } function canHaveFlowNode(node) { - if (node.kind >= 242 /* FirstStatement */ && node.kind <= 258 /* LastStatement */) { + if (node.kind >= 243 /* FirstStatement */ && node.kind <= 259 /* LastStatement */) { return true; } switch (node.kind) { case 80 /* Identifier */: case 110 /* ThisKeyword */: case 108 /* SuperKeyword */: - case 165 /* QualifiedName */: - case 235 /* MetaProperty */: - case 211 /* ElementAccessExpression */: - case 210 /* PropertyAccessExpression */: - case 207 /* BindingElement */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 166 /* QualifiedName */: + case 236 /* MetaProperty */: + case 212 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 208 /* BindingElement */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return true; default: return false; @@ -17568,72 +17647,72 @@ function canHaveFlowNode(node) { } function canHaveJSDoc(node) { switch (node.kind) { - case 218 /* ArrowFunction */: - case 225 /* BinaryExpression */: - case 240 /* Block */: - case 251 /* BreakStatement */: - case 178 /* CallSignature */: - case 295 /* CaseClause */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 174 /* ClassStaticBlockDeclaration */: - case 175 /* Constructor */: - case 184 /* ConstructorType */: - case 179 /* ConstructSignature */: - case 250 /* ContinueStatement */: - case 258 /* DebuggerStatement */: - case 245 /* DoStatement */: - case 211 /* ElementAccessExpression */: - case 241 /* EmptyStatement */: + case 219 /* ArrowFunction */: + case 226 /* BinaryExpression */: + case 241 /* Block */: + case 252 /* BreakStatement */: + case 179 /* CallSignature */: + case 296 /* CaseClause */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 175 /* ClassStaticBlockDeclaration */: + case 176 /* Constructor */: + case 185 /* ConstructorType */: + case 180 /* ConstructSignature */: + case 251 /* ContinueStatement */: + case 259 /* DebuggerStatement */: + case 246 /* DoStatement */: + case 212 /* ElementAccessExpression */: + case 242 /* EmptyStatement */: case 1 /* EndOfFileToken */: - case 265 /* EnumDeclaration */: - case 305 /* EnumMember */: - case 276 /* ExportAssignment */: - case 277 /* ExportDeclaration */: - case 280 /* ExportSpecifier */: - case 243 /* ExpressionStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 247 /* ForStatement */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 183 /* FunctionType */: - case 176 /* GetAccessor */: + case 266 /* EnumDeclaration */: + case 306 /* EnumMember */: + case 277 /* ExportAssignment */: + case 278 /* ExportDeclaration */: + case 281 /* ExportSpecifier */: + case 244 /* ExpressionStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 248 /* ForStatement */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 184 /* FunctionType */: + case 177 /* GetAccessor */: case 80 /* Identifier */: - case 244 /* IfStatement */: - case 271 /* ImportDeclaration */: - case 270 /* ImportEqualsDeclaration */: - case 180 /* IndexSignature */: - case 263 /* InterfaceDeclaration */: - case 323 /* JSDocFunctionType */: - case 329 /* JSDocSignature */: - case 255 /* LabeledStatement */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 266 /* ModuleDeclaration */: - case 201 /* NamedTupleMember */: - case 269 /* NamespaceExportDeclaration */: - case 209 /* ObjectLiteralExpression */: - case 168 /* Parameter */: - case 216 /* ParenthesizedExpression */: - case 210 /* PropertyAccessExpression */: - case 302 /* PropertyAssignment */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 252 /* ReturnStatement */: - case 239 /* SemicolonClassElement */: - case 177 /* SetAccessor */: - case 303 /* ShorthandPropertyAssignment */: - case 304 /* SpreadAssignment */: - case 254 /* SwitchStatement */: - case 256 /* ThrowStatement */: - case 257 /* TryStatement */: - case 264 /* TypeAliasDeclaration */: - case 167 /* TypeParameter */: - case 259 /* VariableDeclaration */: - case 242 /* VariableStatement */: - case 246 /* WhileStatement */: - case 253 /* WithStatement */: + case 245 /* IfStatement */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 181 /* IndexSignature */: + case 264 /* InterfaceDeclaration */: + case 324 /* JSDocFunctionType */: + case 330 /* JSDocSignature */: + case 256 /* LabeledStatement */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 267 /* ModuleDeclaration */: + case 202 /* NamedTupleMember */: + case 270 /* NamespaceExportDeclaration */: + case 210 /* ObjectLiteralExpression */: + case 169 /* Parameter */: + case 217 /* ParenthesizedExpression */: + case 211 /* PropertyAccessExpression */: + case 303 /* PropertyAssignment */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 253 /* ReturnStatement */: + case 240 /* SemicolonClassElement */: + case 178 /* SetAccessor */: + case 304 /* ShorthandPropertyAssignment */: + case 305 /* SpreadAssignment */: + case 255 /* SwitchStatement */: + case 257 /* ThrowStatement */: + case 258 /* TryStatement */: + case 265 /* TypeAliasDeclaration */: + case 168 /* TypeParameter */: + case 260 /* VariableDeclaration */: + case 243 /* VariableStatement */: + case 247 /* WhileStatement */: + case 254 /* WithStatement */: return true; default: return false; @@ -17649,11 +17728,11 @@ function getJSDocCommentsAndTags(hostNode, noCache) { if (hasJSDocNodes(node)) { result = addRange(result, filterOwnedJSDocTags(hostNode, last(node.jsDoc))); } - if (node.kind === 168 /* Parameter */) { + if (node.kind === 169 /* Parameter */) { result = addRange(result, (noCache ? getJSDocParameterTagsNoCache : getJSDocParameterTags)(node)); break; } - if (node.kind === 167 /* TypeParameter */) { + if (node.kind === 168 /* TypeParameter */) { result = addRange(result, (noCache ? getJSDocTypeParameterTagsNoCache : getJSDocTypeParameterTags)(node)); break; } @@ -17673,7 +17752,7 @@ function ownsJSDocTag(hostNode, tag) { } function getNextJSDocCommentLocation(node) { const parent2 = node.parent; - if (parent2.kind === 302 /* PropertyAssignment */ || parent2.kind === 276 /* ExportAssignment */ || parent2.kind === 171 /* PropertyDeclaration */ || parent2.kind === 243 /* ExpressionStatement */ && node.kind === 210 /* PropertyAccessExpression */ || parent2.kind === 252 /* ReturnStatement */ || getNestedModuleDeclaration(parent2) || isBinaryExpression(node) && node.operatorToken.kind === 64 /* EqualsToken */) { + if (parent2.kind === 303 /* PropertyAssignment */ || parent2.kind === 277 /* ExportAssignment */ || parent2.kind === 172 /* PropertyDeclaration */ || parent2.kind === 244 /* ExpressionStatement */ && node.kind === 211 /* PropertyAccessExpression */ || parent2.kind === 253 /* ReturnStatement */ || getNestedModuleDeclaration(parent2) || isBinaryExpression(node) && node.operatorToken.kind === 64 /* EqualsToken */) { return parent2; } else if (parent2.parent && (getSingleVariableOfVariableStatement(parent2.parent) === node || isBinaryExpression(parent2) && parent2.operatorToken.kind === 64 /* EqualsToken */)) { return parent2.parent; @@ -17749,32 +17828,32 @@ function getAssignmentTargetKind(node) { let parent2 = node.parent; while (true) { switch (parent2.kind) { - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: const binaryOperator = parent2.operatorToken.kind; return isAssignmentOperator(binaryOperator) && parent2.left === node ? binaryOperator === 64 /* EqualsToken */ || isLogicalOrCoalescingAssignmentOperator(binaryOperator) ? 1 /* Definite */ : 2 /* Compound */ : 0 /* None */; - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: const unaryOperator = parent2.operator; return unaryOperator === 46 /* PlusPlusToken */ || unaryOperator === 47 /* MinusMinusToken */ ? 2 /* Compound */ : 0 /* None */; - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: return parent2.initializer === node ? 1 /* Definite */ : 0 /* None */; - case 216 /* ParenthesizedExpression */: - case 208 /* ArrayLiteralExpression */: - case 229 /* SpreadElement */: - case 234 /* NonNullExpression */: + case 217 /* ParenthesizedExpression */: + case 209 /* ArrayLiteralExpression */: + case 230 /* SpreadElement */: + case 235 /* NonNullExpression */: node = parent2; break; - case 304 /* SpreadAssignment */: + case 305 /* SpreadAssignment */: node = parent2.parent; break; - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: if (parent2.name !== node) { return 0 /* None */; } node = parent2.parent; break; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: if (parent2.name === node) { return 0 /* None */; } @@ -17791,22 +17870,22 @@ function isAssignmentTarget(node) { } function isNodeWithPossibleHoistedDeclaration(node) { switch (node.kind) { - case 240 /* Block */: - case 242 /* VariableStatement */: - case 253 /* WithStatement */: - case 244 /* IfStatement */: - case 254 /* SwitchStatement */: - case 268 /* CaseBlock */: - case 295 /* CaseClause */: - case 296 /* DefaultClause */: - case 255 /* LabeledStatement */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: - case 257 /* TryStatement */: - case 298 /* CatchClause */: + case 241 /* Block */: + case 243 /* VariableStatement */: + case 254 /* WithStatement */: + case 245 /* IfStatement */: + case 255 /* SwitchStatement */: + case 269 /* CaseBlock */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: + case 256 /* LabeledStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 258 /* TryStatement */: + case 299 /* CatchClause */: return true; } return false; @@ -17821,14 +17900,14 @@ function walkUp(node, kind) { return node; } function walkUpParenthesizedTypes(node) { - return walkUp(node, 195 /* ParenthesizedType */); + return walkUp(node, 196 /* ParenthesizedType */); } function walkUpParenthesizedExpressions(node) { - return walkUp(node, 216 /* ParenthesizedExpression */); + return walkUp(node, 217 /* ParenthesizedExpression */); } function walkUpParenthesizedTypesAndGetParentAndChild(node) { let child; - while (node && node.kind === 195 /* ParenthesizedType */) { + while (node && node.kind === 196 /* ParenthesizedType */) { child = node; node = node.parent; } @@ -17844,11 +17923,11 @@ function skipParentheses(node, excludeJSDocTypeAssertions) { return skipOuterExpressions(node, flags); } function isDeleteTarget(node) { - if (node.kind !== 210 /* PropertyAccessExpression */ && node.kind !== 211 /* ElementAccessExpression */) { + if (node.kind !== 211 /* PropertyAccessExpression */ && node.kind !== 212 /* ElementAccessExpression */) { return false; } node = walkUpParenthesizedExpressions(node.parent); - return node && node.kind === 219 /* DeleteExpression */; + return node && node.kind === 220 /* DeleteExpression */; } function isNodeDescendantOf(node, ancestor) { while (node) { @@ -17886,55 +17965,55 @@ function getDeclarationFromName(name) { } } function isLiteralComputedPropertyDeclarationName(node) { - return isStringOrNumericLiteralLike(node) && node.parent.kind === 166 /* ComputedPropertyName */ && isDeclaration(node.parent.parent); + return isStringOrNumericLiteralLike(node) && node.parent.kind === 167 /* ComputedPropertyName */ && isDeclaration(node.parent.parent); } function isIdentifierName(node) { const parent2 = node.parent; switch (parent2.kind) { - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 305 /* EnumMember */: - case 302 /* PropertyAssignment */: - case 210 /* PropertyAccessExpression */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 306 /* EnumMember */: + case 303 /* PropertyAssignment */: + case 211 /* PropertyAccessExpression */: return parent2.name === node; - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: return parent2.right === node; - case 207 /* BindingElement */: - case 275 /* ImportSpecifier */: + case 208 /* BindingElement */: + case 276 /* ImportSpecifier */: return parent2.propertyName === node; - case 280 /* ExportSpecifier */: - case 290 /* JsxAttribute */: - case 284 /* JsxSelfClosingElement */: - case 285 /* JsxOpeningElement */: - case 286 /* JsxClosingElement */: + case 281 /* ExportSpecifier */: + case 291 /* JsxAttribute */: + case 285 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 287 /* JsxClosingElement */: return true; } return false; } function isAliasSymbolDeclaration(node) { - if (node.kind === 270 /* ImportEqualsDeclaration */ || node.kind === 269 /* NamespaceExportDeclaration */ || node.kind === 272 /* ImportClause */ && !!node.name || node.kind === 273 /* NamespaceImport */ || node.kind === 279 /* NamespaceExport */ || node.kind === 275 /* ImportSpecifier */ || node.kind === 280 /* ExportSpecifier */ || node.kind === 276 /* ExportAssignment */ && exportAssignmentIsAlias(node)) { + if (node.kind === 271 /* ImportEqualsDeclaration */ || node.kind === 270 /* NamespaceExportDeclaration */ || node.kind === 273 /* ImportClause */ && !!node.name || node.kind === 274 /* NamespaceImport */ || node.kind === 280 /* NamespaceExport */ || node.kind === 276 /* ImportSpecifier */ || node.kind === 281 /* ExportSpecifier */ || node.kind === 277 /* ExportAssignment */ && exportAssignmentIsAlias(node)) { return true; } return isInJSFile(node) && (isBinaryExpression(node) && getAssignmentDeclarationKind(node) === 2 /* ModuleExports */ && exportAssignmentIsAlias(node) || isPropertyAccessExpression(node) && isBinaryExpression(node.parent) && node.parent.left === node && node.parent.operatorToken.kind === 64 /* EqualsToken */ && isAliasableExpression(node.parent.right)); } function getAliasDeclarationFromName(node) { switch (node.parent.kind) { - case 272 /* ImportClause */: - case 275 /* ImportSpecifier */: - case 273 /* NamespaceImport */: - case 280 /* ExportSpecifier */: - case 276 /* ExportAssignment */: - case 270 /* ImportEqualsDeclaration */: - case 279 /* NamespaceExport */: + case 273 /* ImportClause */: + case 276 /* ImportSpecifier */: + case 274 /* NamespaceImport */: + case 281 /* ExportSpecifier */: + case 277 /* ExportAssignment */: + case 271 /* ImportEqualsDeclaration */: + case 280 /* NamespaceExport */: return node.parent; - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: do { node = node.parent; - } while (node.parent.kind === 165 /* QualifiedName */); + } while (node.parent.kind === 166 /* QualifiedName */); return getAliasDeclarationFromName(node); } } @@ -17949,7 +18028,7 @@ function getExportAssignmentExpression(node) { return isExportAssignment(node) ? node.expression : node.right; } function getPropertyAssignmentAliasLikeExpression(node) { - return node.kind === 303 /* ShorthandPropertyAssignment */ ? node.name : node.kind === 302 /* PropertyAssignment */ ? node.initializer : node.parent.right; + return node.kind === 304 /* ShorthandPropertyAssignment */ ? node.name : node.kind === 303 /* PropertyAssignment */ ? node.initializer : node.parent.right; } function getEffectiveBaseTypeNode(node) { const baseType = getClassExtendsHeritageElement(node); @@ -18000,7 +18079,7 @@ function getAncestor(node, kind) { return void 0; } function isKeyword(token) { - return 83 /* FirstKeyword */ <= token && token <= 164 /* LastKeyword */; + return 83 /* FirstKeyword */ <= token && token <= 165 /* LastKeyword */; } function isPunctuation(token) { return 19 /* FirstPunctuation */ <= token && token <= 79 /* LastPunctuation */; @@ -18009,7 +18088,7 @@ function isKeywordOrPunctuation(token) { return isKeyword(token) || isPunctuation(token); } function isContextualKeyword(token) { - return 128 /* FirstContextualKeyword */ <= token && token <= 164 /* LastContextualKeyword */; + return 128 /* FirstContextualKeyword */ <= token && token <= 165 /* LastContextualKeyword */; } function isNonContextualKeyword(token) { return isKeyword(token) && !isContextualKeyword(token); @@ -18046,13 +18125,13 @@ function getFunctionFlags(node) { } let flags = 0 /* Normal */; switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 173 /* MethodDeclaration */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 174 /* MethodDeclaration */: if (node.asteriskToken) { flags |= 1 /* Generator */; } - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: if (hasSyntacticModifier(node, 512 /* Async */)) { flags |= 2 /* Async */; } @@ -18065,10 +18144,10 @@ function getFunctionFlags(node) { } function isAsyncFunction(node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: return node.body !== void 0 && node.asteriskToken === void 0 && hasSyntacticModifier(node, 512 /* Async */); } return false; @@ -18084,7 +18163,7 @@ function hasDynamicName(declaration) { return !!name && isDynamicName(name); } function isDynamicName(name) { - if (!(name.kind === 166 /* ComputedPropertyName */ || name.kind === 211 /* ElementAccessExpression */)) { + if (!(name.kind === 167 /* ComputedPropertyName */ || name.kind === 212 /* ElementAccessExpression */)) { return false; } const expr = isElementAccessExpression(name) ? skipParentheses(name.argumentExpression) : name.expression; @@ -18098,7 +18177,7 @@ function getPropertyNameForPropertyNameNode(name) { case 11 /* StringLiteral */: case 9 /* NumericLiteral */: return escapeLeadingUnderscores(name.text); - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: const nameExpression = name.expression; if (isStringOrNumericLiteralLike(nameExpression)) { return escapeLeadingUnderscores(nameExpression.text); @@ -18109,7 +18188,7 @@ function getPropertyNameForPropertyNameNode(name) { return nameExpression.operand.text; } return void 0; - case 294 /* JsxNamespacedName */: + case 295 /* JsxNamespacedName */: return getEscapedTextOfJsxNamespacedName(name); default: return Debug.assertNever(name); @@ -18153,13 +18232,17 @@ function isProtoSetter(node) { function isAnonymousFunctionDefinition(node, cb) { node = skipOuterExpressions(node); switch (node.kind) { - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: + case 231 /* ClassExpression */: + if (classHasDeclaredOrExplicitlyAssignedName(node)) { + return false; + } + break; + case 218 /* FunctionExpression */: if (node.name) { return false; } break; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: break; default: return false; @@ -18168,19 +18251,19 @@ function isAnonymousFunctionDefinition(node, cb) { } function isNamedEvaluationSource(node) { switch (node.kind) { - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return !isProtoSetter(node.name); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return !!node.objectAssignmentInitializer; - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return isIdentifier(node.name) && !!node.initializer; - case 168 /* Parameter */: + case 169 /* Parameter */: return isIdentifier(node.name) && !!node.initializer && !node.dotDotDotToken; - case 207 /* BindingElement */: + case 208 /* BindingElement */: return isIdentifier(node.name) && !!node.initializer && !node.dotDotDotToken; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return !!node.initializer; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: switch (node.operatorToken.kind) { case 64 /* EqualsToken */: case 77 /* AmpersandAmpersandEqualsToken */: @@ -18189,7 +18272,7 @@ function isNamedEvaluationSource(node) { return isIdentifier(node.left); } break; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return true; } return false; @@ -18198,18 +18281,18 @@ function isNamedEvaluation(node, cb) { if (!isNamedEvaluationSource(node)) return false; switch (node.kind) { - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return isAnonymousFunctionDefinition(node.initializer, cb); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return isAnonymousFunctionDefinition(node.objectAssignmentInitializer, cb); - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 207 /* BindingElement */: - case 171 /* PropertyDeclaration */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 208 /* BindingElement */: + case 172 /* PropertyDeclaration */: return isAnonymousFunctionDefinition(node.initializer, cb); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return isAnonymousFunctionDefinition(node.right, cb); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return isAnonymousFunctionDefinition(node.expression, cb); } } @@ -18218,17 +18301,17 @@ function isPushOrUnshiftIdentifier(node) { } function isParameterDeclaration(node) { const root = getRootDeclaration(node); - return root.kind === 168 /* Parameter */; + return root.kind === 169 /* Parameter */; } function getRootDeclaration(node) { - while (node.kind === 207 /* BindingElement */) { + while (node.kind === 208 /* BindingElement */) { node = node.parent.parent; } return node; } function nodeStartsNewLexicalEnvironment(node) { const kind = node.kind; - return kind === 175 /* Constructor */ || kind === 217 /* FunctionExpression */ || kind === 261 /* FunctionDeclaration */ || kind === 218 /* ArrowFunction */ || kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */ || kind === 266 /* ModuleDeclaration */ || kind === 311 /* SourceFile */; + return kind === 176 /* Constructor */ || kind === 218 /* FunctionExpression */ || kind === 262 /* FunctionDeclaration */ || kind === 219 /* ArrowFunction */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 267 /* ModuleDeclaration */ || kind === 312 /* SourceFile */; } function nodeIsSynthesized(range) { return positionIsSynthesized(range.pos) || positionIsSynthesized(range.end); @@ -18243,22 +18326,22 @@ var Associativity = /* @__PURE__ */ ((Associativity2) => { })(Associativity || {}); function getExpressionAssociativity(expression) { const operator = getOperator(expression); - const hasArguments = expression.kind === 213 /* NewExpression */ && expression.arguments !== void 0; + const hasArguments = expression.kind === 214 /* NewExpression */ && expression.arguments !== void 0; return getOperatorAssociativity(expression.kind, operator, hasArguments); } function getOperatorAssociativity(kind, operator, hasArguments) { switch (kind) { - case 213 /* NewExpression */: + case 214 /* NewExpression */: return hasArguments ? 0 /* Left */ : 1 /* Right */; - case 223 /* PrefixUnaryExpression */: - case 220 /* TypeOfExpression */: - case 221 /* VoidExpression */: - case 219 /* DeleteExpression */: - case 222 /* AwaitExpression */: - case 226 /* ConditionalExpression */: - case 228 /* YieldExpression */: + case 224 /* PrefixUnaryExpression */: + case 221 /* TypeOfExpression */: + case 222 /* VoidExpression */: + case 220 /* DeleteExpression */: + case 223 /* AwaitExpression */: + case 227 /* ConditionalExpression */: + case 229 /* YieldExpression */: return 1 /* Right */; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: switch (operator) { case 43 /* AsteriskAsteriskToken */: case 64 /* EqualsToken */: @@ -18284,13 +18367,13 @@ function getOperatorAssociativity(kind, operator, hasArguments) { } function getExpressionPrecedence(expression) { const operator = getOperator(expression); - const hasArguments = expression.kind === 213 /* NewExpression */ && expression.arguments !== void 0; + const hasArguments = expression.kind === 214 /* NewExpression */ && expression.arguments !== void 0; return getOperatorPrecedence(expression.kind, operator, hasArguments); } function getOperator(expression) { - if (expression.kind === 225 /* BinaryExpression */) { + if (expression.kind === 226 /* BinaryExpression */) { return expression.operatorToken.kind; - } else if (expression.kind === 223 /* PrefixUnaryExpression */ || expression.kind === 224 /* PostfixUnaryExpression */) { + } else if (expression.kind === 224 /* PrefixUnaryExpression */ || expression.kind === 225 /* PostfixUnaryExpression */) { return expression.operator; } else { return expression.kind; @@ -18326,15 +18409,15 @@ var OperatorPrecedence = /* @__PURE__ */ ((OperatorPrecedence2) => { })(OperatorPrecedence || {}); function getOperatorPrecedence(nodeKind, operatorKind, hasArguments) { switch (nodeKind) { - case 360 /* CommaListExpression */: + case 361 /* CommaListExpression */: return 0 /* Comma */; - case 229 /* SpreadElement */: + case 230 /* SpreadElement */: return 1 /* Spread */; - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: return 2 /* Yield */; - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: return 4 /* Conditional */; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: switch (operatorKind) { case 28 /* CommaToken */: return 0 /* Comma */; @@ -18358,27 +18441,27 @@ function getOperatorPrecedence(nodeKind, operatorKind, hasArguments) { default: return getBinaryOperatorPrecedence(operatorKind); } - case 215 /* TypeAssertionExpression */: - case 234 /* NonNullExpression */: - case 223 /* PrefixUnaryExpression */: - case 220 /* TypeOfExpression */: - case 221 /* VoidExpression */: - case 219 /* DeleteExpression */: - case 222 /* AwaitExpression */: + case 216 /* TypeAssertionExpression */: + case 235 /* NonNullExpression */: + case 224 /* PrefixUnaryExpression */: + case 221 /* TypeOfExpression */: + case 222 /* VoidExpression */: + case 220 /* DeleteExpression */: + case 223 /* AwaitExpression */: return 16 /* Unary */; - case 224 /* PostfixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return 17 /* Update */; - case 212 /* CallExpression */: + case 213 /* CallExpression */: return 18 /* LeftHandSide */; - case 213 /* NewExpression */: + case 214 /* NewExpression */: return hasArguments ? 19 /* Member */ : 18 /* LeftHandSide */; - case 214 /* TaggedTemplateExpression */: - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: - case 235 /* MetaProperty */: + case 215 /* TaggedTemplateExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + case 236 /* MetaProperty */: return 19 /* Member */; - case 233 /* AsExpression */: - case 237 /* SatisfiesExpression */: + case 234 /* AsExpression */: + case 238 /* SatisfiesExpression */: return 11 /* Relational */; case 110 /* ThisKeyword */: case 108 /* SuperKeyword */: @@ -18390,19 +18473,19 @@ function getOperatorPrecedence(nodeKind, operatorKind, hasArguments) { case 9 /* NumericLiteral */: case 10 /* BigIntLiteral */: case 11 /* StringLiteral */: - case 208 /* ArrayLiteralExpression */: - case 209 /* ObjectLiteralExpression */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 230 /* ClassExpression */: + case 209 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 231 /* ClassExpression */: case 14 /* RegularExpressionLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: - case 227 /* TemplateExpression */: - case 216 /* ParenthesizedExpression */: - case 231 /* OmittedExpression */: - case 283 /* JsxElement */: - case 284 /* JsxSelfClosingElement */: - case 287 /* JsxFragment */: + case 228 /* TemplateExpression */: + case 217 /* ParenthesizedExpression */: + case 232 /* OmittedExpression */: + case 284 /* JsxElement */: + case 285 /* JsxSelfClosingElement */: + case 288 /* JsxFragment */: return 20 /* Primary */; default: return -1 /* Invalid */; @@ -18455,7 +18538,7 @@ function getBinaryOperatorPrecedence(kind) { function getSemanticJsxChildren(children) { return filter(children, (i) => { switch (i.kind) { - case 293 /* JsxExpression */: + case 294 /* JsxExpression */: return !!i.expression; case 12 /* JsxText */: return !i.containsOnlyTriviaWhiteSpaces; @@ -18532,9 +18615,9 @@ function escapeTemplateSubstitution(str) { function hasInvalidEscape(template) { return template && !!(isNoSubstitutionTemplateLiteral(template) ? template.templateFlags : template.head.templateFlags || some(template.templateSpans, (span) => !!span.literal.templateFlags)); } -var doubleQuoteEscapedCharsRegExp = /[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g; -var singleQuoteEscapedCharsRegExp = /[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g; -var backtickQuoteEscapedCharsRegExp = /\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g; +var doubleQuoteEscapedCharsRegExp = /[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g; +var singleQuoteEscapedCharsRegExp = /[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g; +var backtickQuoteEscapedCharsRegExp = /\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g; var escapedCharsMap = new Map(Object.entries({ " ": "\\t", "\v": "\\v", @@ -18579,8 +18662,8 @@ function escapeNonAsciiString(s, quoteChar) { s = escapeString(s, quoteChar); return nonAsciiCharacters.test(s) ? s.replace(nonAsciiCharacters, (c) => encodeUtf16EscapeSequence(c.charCodeAt(0))) : s; } -var jsxDoubleQuoteEscapedCharsRegExp = /[\"\u0000-\u001f\u2028\u2029\u0085]/g; -var jsxSingleQuoteEscapedCharsRegExp = /[\'\u0000-\u001f\u2028\u2029\u0085]/g; +var jsxDoubleQuoteEscapedCharsRegExp = /["\u0000-\u001f\u2028\u2029\u0085]/g; +var jsxSingleQuoteEscapedCharsRegExp = /['\u0000-\u001f\u2028\u2029\u0085]/g; var jsxEscapedCharsMap = new Map(Object.entries({ '"': """, "'": "'" @@ -18956,6 +19039,12 @@ function parameterIsThisKeyword(parameter) { function isThisIdentifier(node) { return !!node && node.kind === 80 /* Identifier */ && identifierIsThisKeyword(node); } +function isInTypeQuery(node) { + return !!findAncestor( + node, + (n) => n.kind === 186 /* TypeQuery */ ? true : n.kind === 80 /* Identifier */ || n.kind === 166 /* QualifiedName */ ? false : "quit" + ); +} function isThisInTypeQuery(node) { if (!isThisIdentifier(node)) { return false; @@ -18963,7 +19052,7 @@ function isThisInTypeQuery(node) { while (isQualifiedName(node.parent) && node.parent.left === node) { node = node.parent; } - return node.parent.kind === 185 /* TypeQuery */; + return node.parent.kind === 186 /* TypeQuery */; } function identifierIsThisKeyword(id) { return id.escapedText === "this"; @@ -18975,9 +19064,9 @@ function getAllAccessorDeclarations(declarations, accessor) { let setAccessor; if (hasDynamicName(accessor)) { firstAccessor = accessor; - if (accessor.kind === 176 /* GetAccessor */) { + if (accessor.kind === 177 /* GetAccessor */) { getAccessor = accessor; - } else if (accessor.kind === 177 /* SetAccessor */) { + } else if (accessor.kind === 178 /* SetAccessor */) { setAccessor = accessor; } else { Debug.fail("Accessor has wrong kind"); @@ -18993,10 +19082,10 @@ function getAllAccessorDeclarations(declarations, accessor) { } else if (!secondAccessor) { secondAccessor = member; } - if (member.kind === 176 /* GetAccessor */ && !getAccessor) { + if (member.kind === 177 /* GetAccessor */ && !getAccessor) { getAccessor = member; } - if (member.kind === 177 /* SetAccessor */ && !setAccessor) { + if (member.kind === 178 /* SetAccessor */ && !setAccessor) { setAccessor = member; } } @@ -19028,7 +19117,7 @@ function getJSDocTypeParameterDeclarations(node) { return flatMap(getJSDocTags(node), (tag) => isNonTypeAliasTemplate(tag) ? tag.typeParameters : void 0); } function isNonTypeAliasTemplate(tag) { - return isJSDocTemplateTag(tag) && !(tag.parent.kind === 326 /* JSDoc */ && (tag.parent.tags.some(isJSDocTypeAlias) || tag.parent.tags.some(isJSDocOverloadTag))); + return isJSDocTemplateTag(tag) && !(tag.parent.kind === 327 /* JSDoc */ && (tag.parent.tags.some(isJSDocTypeAlias) || tag.parent.tags.some(isJSDocOverloadTag))); } function getEffectiveSetAccessorTypeAnnotationNode(node) { const parameter = getSetAccessorValueParameter(node); @@ -19218,7 +19307,7 @@ function getSelectedSyntacticModifierFlags(node, flags) { return getSyntacticModifierFlags(node) & flags; } function getModifierFlagsWorker(node, includeJSDoc, alwaysIncludeJSDoc) { - if (node.kind >= 0 /* FirstToken */ && node.kind <= 164 /* LastToken */) { + if (node.kind >= 0 /* FirstToken */ && node.kind <= 165 /* LastToken */) { return 0 /* None */; } if (!(node.modifierFlagsCache & 536870912 /* HasComputedFlags */)) { @@ -19277,7 +19366,7 @@ function getEffectiveModifierFlagsNoCache(node) { } function getSyntacticModifierFlagsNoCache(node) { let flags = canHaveModifiers(node) ? modifiersToFlags(node.modifiers) : 0 /* None */; - if (node.flags & 4 /* NestedNamespace */ || node.kind === 80 /* Identifier */ && node.flags & 2048 /* IdentifierIsInJSDocNamespace */) { + if (node.flags & 8 /* NestedNamespace */ || node.kind === 80 /* Identifier */ && node.flags & 4096 /* IdentifierIsInJSDocNamespace */) { flags |= 1 /* Export */; } return flags; @@ -19317,13 +19406,13 @@ function modifierToFlag(token) { return 512 /* Async */; case 148 /* ReadonlyKeyword */: return 64 /* Readonly */; - case 163 /* OverrideKeyword */: + case 164 /* OverrideKeyword */: return 16384 /* Override */; case 103 /* InKeyword */: return 32768 /* In */; case 147 /* OutKeyword */: return 65536 /* Out */; - case 169 /* Decorator */: + case 170 /* Decorator */: return 131072 /* Decorator */; } return 0 /* None */; @@ -19380,7 +19469,7 @@ function isDestructuringAssignment(node) { true )) { const kind = node.left.kind; - return kind === 209 /* ObjectLiteralExpression */ || kind === 208 /* ArrayLiteralExpression */; + return kind === 210 /* ObjectLiteralExpression */ || kind === 209 /* ArrayLiteralExpression */; } return false; } @@ -19394,12 +19483,12 @@ function getFirstIdentifier(node) { switch (node.kind) { case 80 /* Identifier */: return node; - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: do { node = node.left; } while (node.kind !== 80 /* Identifier */); return node; - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: do { node = node.expression; } while (node.kind !== 80 /* Identifier */); @@ -19407,7 +19496,7 @@ function getFirstIdentifier(node) { } } function isDottedName(node) { - return node.kind === 80 /* Identifier */ || node.kind === 110 /* ThisKeyword */ || node.kind === 108 /* SuperKeyword */ || node.kind === 235 /* MetaProperty */ || node.kind === 210 /* PropertyAccessExpression */ && isDottedName(node.expression) || node.kind === 216 /* ParenthesizedExpression */ && isDottedName(node.expression); + return node.kind === 80 /* Identifier */ || node.kind === 110 /* ThisKeyword */ || node.kind === 108 /* SuperKeyword */ || node.kind === 236 /* MetaProperty */ || node.kind === 211 /* PropertyAccessExpression */ && isDottedName(node.expression) || node.kind === 217 /* ParenthesizedExpression */ && isDottedName(node.expression); } function isPropertyAccessEntityNameExpression(node) { return isPropertyAccessExpression(node) && isIdentifier(node.name) && isEntityNameExpression(node.expression); @@ -19434,7 +19523,7 @@ function isPrototypeAccess(node) { return isBindableStaticAccessExpression(node) && getElementOrPropertyAccessName(node) === "prototype"; } function isRightSideOfQualifiedNameOrPropertyAccess(node) { - return node.parent.kind === 165 /* QualifiedName */ && node.parent.right === node || node.parent.kind === 210 /* PropertyAccessExpression */ && node.parent.name === node; + return node.parent.kind === 166 /* QualifiedName */ && node.parent.right === node || node.parent.kind === 211 /* PropertyAccessExpression */ && node.parent.name === node || node.parent.kind === 236 /* MetaProperty */ && node.parent.name === node; } function isRightSideOfAccessExpression(node) { return isPropertyAccessExpression(node.parent) && node.parent.name === node || isElementAccessExpression(node.parent) && node.parent.argumentExpression === node; @@ -19443,10 +19532,10 @@ function isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(node) { return isQualifiedName(node.parent) && node.parent.right === node || isPropertyAccessExpression(node.parent) && node.parent.name === node || isJSDocMemberName(node.parent) && node.parent.right === node; } function isEmptyObjectLiteral(expression) { - return expression.kind === 209 /* ObjectLiteralExpression */ && expression.properties.length === 0; + return expression.kind === 210 /* ObjectLiteralExpression */ && expression.properties.length === 0; } function isEmptyArrayLiteral(expression) { - return expression.kind === 208 /* ArrayLiteralExpression */ && expression.elements.length === 0; + return expression.kind === 209 /* ArrayLiteralExpression */ && expression.elements.length === 0; } function getLocalSymbolForExportDefault(symbol) { if (!isExportDefaultSymbol(symbol) || !symbol.declarations) @@ -19715,8 +19804,8 @@ function isDeclarationNameOfEnumOrNamespace(node) { const parseNode = getParseTreeNode(node); if (parseNode) { switch (parseNode.parent.kind) { - case 265 /* EnumDeclaration */: - case 266 /* ModuleDeclaration */: + case 266 /* EnumDeclaration */: + case 267 /* ModuleDeclaration */: return parseNode === parseNode.parent.name; } } @@ -19769,24 +19858,24 @@ function isWriteAccess(node) { function accessKind(node) { const { parent: parent2 } = node; switch (parent2 == null ? void 0 : parent2.kind) { - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return accessKind(parent2); - case 224 /* PostfixUnaryExpression */: - case 223 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: const { operator } = parent2; return operator === 46 /* PlusPlusToken */ || operator === 47 /* MinusMinusToken */ ? 2 /* ReadWrite */ : 0 /* Read */; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: const { left, operatorToken } = parent2; return left === node && isAssignmentOperator(operatorToken.kind) ? operatorToken.kind === 64 /* EqualsToken */ ? 1 /* Write */ : 2 /* ReadWrite */ : 0 /* Read */; - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return parent2.name !== node ? 0 /* Read */ : accessKind(parent2); - case 302 /* PropertyAssignment */: { + case 303 /* PropertyAssignment */: { const parentAccess = accessKind(parent2.parent); return node === parent2.name ? reverseAccessKind(parentAccess) : parentAccess; } - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return node === parent2.objectAssignmentInitializer ? 0 /* Read */ : accessKind(parent2.parent); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return accessKind(parent2); default: return 0 /* Read */; @@ -19899,16 +19988,16 @@ function isObjectTypeDeclaration(node) { return isClassLike(node) || isInterfaceDeclaration(node) || isTypeLiteralNode(node); } function isTypeNodeKind(kind) { - return kind >= 181 /* FirstTypeNode */ && kind <= 204 /* LastTypeNode */ || kind === 133 /* AnyKeyword */ || kind === 159 /* UnknownKeyword */ || kind === 150 /* NumberKeyword */ || kind === 162 /* BigIntKeyword */ || kind === 151 /* ObjectKeyword */ || kind === 136 /* BooleanKeyword */ || kind === 154 /* StringKeyword */ || kind === 155 /* SymbolKeyword */ || kind === 116 /* VoidKeyword */ || kind === 157 /* UndefinedKeyword */ || kind === 146 /* NeverKeyword */ || kind === 141 /* IntrinsicKeyword */ || kind === 232 /* ExpressionWithTypeArguments */ || kind === 318 /* JSDocAllType */ || kind === 319 /* JSDocUnknownType */ || kind === 320 /* JSDocNullableType */ || kind === 321 /* JSDocNonNullableType */ || kind === 322 /* JSDocOptionalType */ || kind === 323 /* JSDocFunctionType */ || kind === 324 /* JSDocVariadicType */; + return kind >= 182 /* FirstTypeNode */ && kind <= 205 /* LastTypeNode */ || kind === 133 /* AnyKeyword */ || kind === 159 /* UnknownKeyword */ || kind === 150 /* NumberKeyword */ || kind === 163 /* BigIntKeyword */ || kind === 151 /* ObjectKeyword */ || kind === 136 /* BooleanKeyword */ || kind === 154 /* StringKeyword */ || kind === 155 /* SymbolKeyword */ || kind === 116 /* VoidKeyword */ || kind === 157 /* UndefinedKeyword */ || kind === 146 /* NeverKeyword */ || kind === 141 /* IntrinsicKeyword */ || kind === 233 /* ExpressionWithTypeArguments */ || kind === 319 /* JSDocAllType */ || kind === 320 /* JSDocUnknownType */ || kind === 321 /* JSDocNullableType */ || kind === 322 /* JSDocNonNullableType */ || kind === 323 /* JSDocOptionalType */ || kind === 324 /* JSDocFunctionType */ || kind === 325 /* JSDocVariadicType */; } function isAccessExpression(node) { - return node.kind === 210 /* PropertyAccessExpression */ || node.kind === 211 /* ElementAccessExpression */; + return node.kind === 211 /* PropertyAccessExpression */ || node.kind === 212 /* ElementAccessExpression */; } function getNameOfAccessExpression(node) { - if (node.kind === 210 /* PropertyAccessExpression */) { + if (node.kind === 211 /* PropertyAccessExpression */) { return node.name; } - Debug.assert(node.kind === 211 /* ElementAccessExpression */); + Debug.assert(node.kind === 212 /* ElementAccessExpression */); return node.argumentExpression; } function isBundleFileTextLike(section) { @@ -19921,7 +20010,7 @@ function isBundleFileTextLike(section) { } } function isNamedImportsOrExports(node) { - return node.kind === 274 /* NamedImports */ || node.kind === 278 /* NamedExports */; + return node.kind === 275 /* NamedImports */ || node.kind === 279 /* NamedExports */; } function getLeftmostAccessExpression(expr) { while (isAccessExpression(expr)) { @@ -19934,12 +20023,12 @@ function forEachNameInAccessChainWalkingLeft(name, action) { return walkAccessExpression(name.parent); } function walkAccessExpression(access) { - if (access.kind === 210 /* PropertyAccessExpression */) { + if (access.kind === 211 /* PropertyAccessExpression */) { const res = action(access.name); if (res !== void 0) { return res; } - } else if (access.kind === 211 /* ElementAccessExpression */) { + } else if (access.kind === 212 /* ElementAccessExpression */) { if (isIdentifier(access.argumentExpression) || isStringLiteralLike(access.argumentExpression)) { const res = action(access.argumentExpression); if (res !== void 0) { @@ -19961,28 +20050,28 @@ function forEachNameInAccessChainWalkingLeft(name, action) { function getLeftmostExpression(node, stopAtCallExpressions) { while (true) { switch (node.kind) { - case 224 /* PostfixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: node = node.operand; continue; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: node = node.left; continue; - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: node = node.condition; continue; - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: node = node.tag; continue; - case 212 /* CallExpression */: + case 213 /* CallExpression */: if (stopAtCallExpressions) { return node; } - case 233 /* AsExpression */: - case 211 /* ElementAccessExpression */: - case 210 /* PropertyAccessExpression */: - case 234 /* NonNullExpression */: - case 359 /* PartiallyEmittedExpression */: - case 237 /* SatisfiesExpression */: + case 234 /* AsExpression */: + case 212 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 235 /* NonNullExpression */: + case 360 /* PartiallyEmittedExpression */: + case 238 /* SatisfiesExpression */: node = node.expression; continue; } @@ -20453,6 +20542,9 @@ function getAllowJSCompilerOption(compilerOptions) { function getUseDefineForClassFields(compilerOptions) { return compilerOptions.useDefineForClassFields === void 0 ? getEmitScriptTarget(compilerOptions) >= 9 /* ES2022 */ : compilerOptions.useDefineForClassFields; } +function getEmitStandardClassFields(compilerOptions) { + return compilerOptions.useDefineForClassFields !== false && getEmitScriptTarget(compilerOptions) >= 9 /* ES2022 */; +} function compilerOptionsAffectSemanticDiagnostics(newOptions, oldOptions) { return optionsHaveChanges(oldOptions, newOptions, semanticDiagnosticsOptionDeclarations); } @@ -20557,7 +20649,7 @@ function tryRemoveDirectoryPrefix(path, dirPath, getCanonicalFileName) { const withoutPrefix = tryRemovePrefix(path, dirPath, getCanonicalFileName); return withoutPrefix === void 0 ? void 0 : stripLeadingDirectorySeparator(withoutPrefix); } -var reservedCharacterPattern = /[^\w\s\/]/g; +var reservedCharacterPattern = /[^\w\s/]/g; function regExpEscape(text) { return text.replace(reservedCharacterPattern, escapeRegExpCharacter); } @@ -20676,7 +20768,7 @@ function getSubPatternFromSpec(spec, basePath, usage, { singleAsteriskRegexFragm function replaceWildcardCharacter(match, singleAsteriskRegexFragment) { return match === "*" ? singleAsteriskRegexFragment : match === "?" ? "[^/]" : "\\" + match; } -function getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames, currentDirectory) { +function getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames2, currentDirectory) { path = normalizePath(path); currentDirectory = normalizePath(currentDirectory); const absolutePath = combinePaths(currentDirectory, path); @@ -20685,22 +20777,22 @@ function getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNa includeFilePattern: getRegularExpressionForWildcard(includes, absolutePath, "files"), includeDirectoryPattern: getRegularExpressionForWildcard(includes, absolutePath, "directories"), excludePattern: getRegularExpressionForWildcard(excludes, absolutePath, "exclude"), - basePaths: getBasePaths(path, includes, useCaseSensitiveFileNames) + basePaths: getBasePaths(path, includes, useCaseSensitiveFileNames2) }; } -function getRegexFromPattern(pattern, useCaseSensitiveFileNames) { - return new RegExp(pattern, useCaseSensitiveFileNames ? "" : "i"); +function getRegexFromPattern(pattern, useCaseSensitiveFileNames2) { + return new RegExp(pattern, useCaseSensitiveFileNames2 ? "" : "i"); } -function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath) { +function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames2, currentDirectory, depth, getFileSystemEntries, realpath) { path = normalizePath(path); currentDirectory = normalizePath(currentDirectory); - const patterns = getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames, currentDirectory); - const includeFileRegexes = patterns.includeFilePatterns && patterns.includeFilePatterns.map((pattern) => getRegexFromPattern(pattern, useCaseSensitiveFileNames)); - const includeDirectoryRegex = patterns.includeDirectoryPattern && getRegexFromPattern(patterns.includeDirectoryPattern, useCaseSensitiveFileNames); - const excludeRegex = patterns.excludePattern && getRegexFromPattern(patterns.excludePattern, useCaseSensitiveFileNames); + const patterns = getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames2, currentDirectory); + const includeFileRegexes = patterns.includeFilePatterns && patterns.includeFilePatterns.map((pattern) => getRegexFromPattern(pattern, useCaseSensitiveFileNames2)); + const includeDirectoryRegex = patterns.includeDirectoryPattern && getRegexFromPattern(patterns.includeDirectoryPattern, useCaseSensitiveFileNames2); + const excludeRegex = patterns.excludePattern && getRegexFromPattern(patterns.excludePattern, useCaseSensitiveFileNames2); const results = includeFileRegexes ? includeFileRegexes.map(() => []) : [[]]; const visited = /* @__PURE__ */ new Map(); - const toCanonical = createGetCanonicalFileName(useCaseSensitiveFileNames); + const toCanonical = createGetCanonicalFileName(useCaseSensitiveFileNames2); for (const basePath of patterns.basePaths) { visitDirectory(basePath, combinePaths(currentDirectory, basePath), depth); } @@ -20742,7 +20834,7 @@ function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNa } } } -function getBasePaths(path, includes, useCaseSensitiveFileNames) { +function getBasePaths(path, includes, useCaseSensitiveFileNames2) { const basePaths = [path]; if (includes) { const includeBasePaths = []; @@ -20750,9 +20842,9 @@ function getBasePaths(path, includes, useCaseSensitiveFileNames) { const absolute = isRootedDiskPath(include) ? include : normalizePath(combinePaths(path, include)); includeBasePaths.push(getIncludeBasePath(absolute)); } - includeBasePaths.sort(getStringComparer(!useCaseSensitiveFileNames)); + includeBasePaths.sort(getStringComparer(!useCaseSensitiveFileNames2)); for (const includeBasePath of includeBasePaths) { - if (every(basePaths, (basePath) => !containsPath(basePath, includeBasePath, path, !useCaseSensitiveFileNames))) { + if (every(basePaths, (basePath) => !containsPath(basePath, includeBasePath, path, !useCaseSensitiveFileNames2))) { basePaths.push(includeBasePath); } } @@ -21134,39 +21226,39 @@ function isValidBigIntString(s, roundTripOnly) { return success && result === 10 /* BigIntLiteral */ && scanner2.getTokenEnd() === s.length + 1 && !(flags & 512 /* ContainsSeparator */) && (!roundTripOnly || s === pseudoBigIntToString({ negative, base10Value: parsePseudoBigInt(scanner2.getTokenValue()) })); } function isValidTypeOnlyAliasUseSite(useSite) { - return !!(useSite.flags & 16777216 /* Ambient */) || isPartOfTypeQuery(useSite) || isIdentifierInNonEmittingHeritageClause(useSite) || isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(useSite) || !(isExpressionNode(useSite) || isShorthandPropertyNameUseSite(useSite)); + return !!(useSite.flags & 33554432 /* Ambient */) || isPartOfTypeQuery(useSite) || isIdentifierInNonEmittingHeritageClause(useSite) || isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(useSite) || !(isExpressionNode(useSite) || isShorthandPropertyNameUseSite(useSite)); } function isShorthandPropertyNameUseSite(useSite) { return isIdentifier(useSite) && isShorthandPropertyAssignment(useSite.parent) && useSite.parent.name === useSite; } function isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(node) { - while (node.kind === 80 /* Identifier */ || node.kind === 210 /* PropertyAccessExpression */) { + while (node.kind === 80 /* Identifier */ || node.kind === 211 /* PropertyAccessExpression */) { node = node.parent; } - if (node.kind !== 166 /* ComputedPropertyName */) { + if (node.kind !== 167 /* ComputedPropertyName */) { return false; } if (hasSyntacticModifier(node.parent, 256 /* Abstract */)) { return true; } const containerKind = node.parent.parent.kind; - return containerKind === 263 /* InterfaceDeclaration */ || containerKind === 186 /* TypeLiteral */; + return containerKind === 264 /* InterfaceDeclaration */ || containerKind === 187 /* TypeLiteral */; } function isIdentifierInNonEmittingHeritageClause(node) { if (node.kind !== 80 /* Identifier */) return false; const heritageClause = findAncestor(node.parent, (parent2) => { switch (parent2.kind) { - case 297 /* HeritageClause */: + case 298 /* HeritageClause */: return true; - case 210 /* PropertyAccessExpression */: - case 232 /* ExpressionWithTypeArguments */: + case 211 /* PropertyAccessExpression */: + case 233 /* ExpressionWithTypeArguments */: return false; default: return "quit"; } }); - return (heritageClause == null ? void 0 : heritageClause.token) === 119 /* ImplementsKeyword */ || (heritageClause == null ? void 0 : heritageClause.parent.kind) === 263 /* InterfaceDeclaration */; + return (heritageClause == null ? void 0 : heritageClause.token) === 119 /* ImplementsKeyword */ || (heritageClause == null ? void 0 : heritageClause.parent.kind) === 264 /* InterfaceDeclaration */; } function isIdentifierTypeReference(node) { return isTypeReferenceNode(node) && isIdentifier(node.typeName); @@ -21278,20 +21370,20 @@ function getContainingNodeArray(node) { if (!node.parent) return void 0; switch (node.kind) { - case 167 /* TypeParameter */: + case 168 /* TypeParameter */: const { parent: parent3 } = node; - return parent3.kind === 194 /* InferType */ ? void 0 : parent3.typeParameters; - case 168 /* Parameter */: + return parent3.kind === 195 /* InferType */ ? void 0 : parent3.typeParameters; + case 169 /* Parameter */: return node.parent.parameters; - case 203 /* TemplateLiteralTypeSpan */: + case 204 /* TemplateLiteralTypeSpan */: return node.parent.templateSpans; - case 238 /* TemplateSpan */: + case 239 /* TemplateSpan */: return node.parent.templateSpans; - case 169 /* Decorator */: { + case 170 /* Decorator */: { const { parent: parent4 } = node; return canHaveDecorators(parent4) ? parent4.modifiers : void 0; } - case 297 /* HeritageClause */: + case 298 /* HeritageClause */: return node.parent.heritageClauses; } const { parent: parent2 } = node; @@ -21299,43 +21391,43 @@ function getContainingNodeArray(node) { return isJSDocTypeLiteral(node.parent) ? void 0 : node.parent.tags; } switch (parent2.kind) { - case 186 /* TypeLiteral */: - case 263 /* InterfaceDeclaration */: + case 187 /* TypeLiteral */: + case 264 /* InterfaceDeclaration */: return isTypeElement(node) ? parent2.members : void 0; - case 191 /* UnionType */: - case 192 /* IntersectionType */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: return parent2.types; - case 188 /* TupleType */: - case 208 /* ArrayLiteralExpression */: - case 360 /* CommaListExpression */: - case 274 /* NamedImports */: - case 278 /* NamedExports */: + case 189 /* TupleType */: + case 209 /* ArrayLiteralExpression */: + case 361 /* CommaListExpression */: + case 275 /* NamedImports */: + case 279 /* NamedExports */: return parent2.elements; - case 209 /* ObjectLiteralExpression */: - case 291 /* JsxAttributes */: + case 210 /* ObjectLiteralExpression */: + case 292 /* JsxAttributes */: return parent2.properties; - case 212 /* CallExpression */: - case 213 /* NewExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: return isTypeNode(node) ? parent2.typeArguments : parent2.expression === node ? void 0 : parent2.arguments; - case 283 /* JsxElement */: - case 287 /* JsxFragment */: + case 284 /* JsxElement */: + case 288 /* JsxFragment */: return isJsxChild(node) ? parent2.children : void 0; - case 285 /* JsxOpeningElement */: - case 284 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: return isTypeNode(node) ? parent2.typeArguments : void 0; - case 240 /* Block */: - case 295 /* CaseClause */: - case 296 /* DefaultClause */: - case 267 /* ModuleBlock */: + case 241 /* Block */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: + case 268 /* ModuleBlock */: return parent2.statements; - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: return parent2.clauses; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return isClassElement(node) ? parent2.members : void 0; - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return isEnumMember(node) ? parent2.members : void 0; - case 311 /* SourceFile */: + case 312 /* SourceFile */: return parent2.statements; } } @@ -21344,7 +21436,7 @@ function hasContextSensitiveParameters(node) { if (some(node.parameters, (p) => !getEffectiveTypeAnnotationNode(p))) { return true; } - if (node.kind !== 218 /* ArrowFunction */) { + if (node.kind !== 219 /* ArrowFunction */) { const parameter = firstOrUndefined(node.parameters); if (!(parameter && parameterIsThisKeyword(parameter))) { return true; @@ -21357,14 +21449,14 @@ function isInfinityOrNaNString(name) { return name === "Infinity" || name === "-Infinity" || name === "NaN"; } function isCatchClauseVariableDeclaration(node) { - return node.kind === 259 /* VariableDeclaration */ && node.parent.kind === 298 /* CatchClause */; + return node.kind === 260 /* VariableDeclaration */ && node.parent.kind === 299 /* CatchClause */; } function isParameterOrCatchClauseVariable(symbol) { const declaration = symbol.valueDeclaration && getRootDeclaration(symbol.valueDeclaration); return !!declaration && (isParameter(declaration) || isCatchClauseVariableDeclaration(declaration)); } function isFunctionExpressionOrArrowFunction(node) { - return node.kind === 217 /* FunctionExpression */ || node.kind === 218 /* ArrowFunction */; + return node.kind === 218 /* FunctionExpression */ || node.kind === 219 /* ArrowFunction */; } function escapeSnippetText(text) { return text.replace(/\$/gm, () => "\\$"); @@ -21427,23 +21519,23 @@ function getNodeModulePathParts(fullPath) { } function getParameterTypeNode(parameter) { var _a; - return parameter.kind === 347 /* JSDocParameterTag */ ? (_a = parameter.typeExpression) == null ? void 0 : _a.type : parameter.type; + return parameter.kind === 348 /* JSDocParameterTag */ ? (_a = parameter.typeExpression) == null ? void 0 : _a.type : parameter.type; } function isTypeDeclaration(node) { switch (node.kind) { - case 167 /* TypeParameter */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 265 /* EnumDeclaration */: - case 352 /* JSDocTypedefTag */: - case 344 /* JSDocCallbackTag */: - case 346 /* JSDocEnumTag */: + case 168 /* TypeParameter */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 266 /* EnumDeclaration */: + case 353 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: + case 347 /* JSDocEnumTag */: return true; - case 272 /* ImportClause */: + case 273 /* ImportClause */: return node.isTypeOnly; - case 275 /* ImportSpecifier */: - case 280 /* ExportSpecifier */: + case 276 /* ImportSpecifier */: + case 281 /* ExportSpecifier */: return node.parent.parent.isTypeOnly; default: return false; @@ -21457,7 +21549,7 @@ function isOptionalJSDocPropertyLikeTag(node) { return false; } const { isBracketed, typeExpression } = node; - return isBracketed || !!typeExpression && typeExpression.type.kind === 322 /* JSDocOptionalType */; + return isBracketed || !!typeExpression && typeExpression.type.kind === 323 /* JSDocOptionalType */; } function canUsePropertyAccess(name, languageVersion) { if (name.length === 0) { @@ -21472,17 +21564,17 @@ function hasTabstop(node) { } function isJSDocOptionalParameter(node) { return isInJSFile(node) && // node.type should only be a JSDocOptionalType when node is a parameter of a JSDocFunctionType - (node.type && node.type.kind === 322 /* JSDocOptionalType */ || getJSDocParameterTags(node).some(({ isBracketed, typeExpression }) => isBracketed || !!typeExpression && typeExpression.type.kind === 322 /* JSDocOptionalType */)); + (node.type && node.type.kind === 323 /* JSDocOptionalType */ || getJSDocParameterTags(node).some(({ isBracketed, typeExpression }) => isBracketed || !!typeExpression && typeExpression.type.kind === 323 /* JSDocOptionalType */)); } function isOptionalDeclaration(declaration) { switch (declaration.kind) { - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: return !!declaration.questionToken; - case 168 /* Parameter */: + case 169 /* Parameter */: return !!declaration.questionToken || isJSDocOptionalParameter(declaration); - case 354 /* JSDocPropertyTag */: - case 347 /* JSDocParameterTag */: + case 355 /* JSDocPropertyTag */: + case 348 /* JSDocParameterTag */: return isOptionalJSDocPropertyLikeTag(declaration); default: return false; @@ -21490,7 +21582,7 @@ function isOptionalDeclaration(declaration) { } function isNonNullAccess(node) { const kind = node.kind; - return (kind === 210 /* PropertyAccessExpression */ || kind === 211 /* ElementAccessExpression */) && isNonNullExpression(node.expression); + return (kind === 211 /* PropertyAccessExpression */ || kind === 212 /* ElementAccessExpression */) && isNonNullExpression(node.expression); } function isJSDocSatisfiesExpression(node) { return isInJSFile(node) && isParenthesizedExpression(node) && hasJSDocNodes(node) && !!getJSDocSatisfiesTag(node); @@ -21510,7 +21602,7 @@ function getTextOfJsxAttributeName(node) { } function isJsxAttributeName(node) { const kind = node.kind; - return kind === 80 /* Identifier */ || kind === 294 /* JsxNamespacedName */; + return kind === 80 /* Identifier */ || kind === 295 /* JsxNamespacedName */; } function getEscapedTextOfJsxNamespacedName(node) { return `${node.namespace.escapedText}:${idText(node.name)}`; @@ -21521,6 +21613,18 @@ function getTextOfJsxNamespacedName(node) { function intrinsicTagNameToString(node) { return isIdentifier(node) ? idText(node) : getTextOfJsxNamespacedName(node); } +function isTypeUsableAsPropertyName(type) { + return !!(type.flags & 8576 /* StringOrNumberLiteralOrUnique */); +} +function getPropertyNameFromType(type) { + if (type.flags & 8192 /* UniqueESSymbol */) { + return type.escapedName; + } + if (type.flags & (128 /* StringLiteral */ | 256 /* NumberLiteral */)) { + return escapeLeadingUnderscores("" + type.value); + } + return Debug.fail(); +} // src/compiler/factory/baseNodeFactory.ts function createBaseNodeFactory() { @@ -21643,16 +21747,16 @@ function createParenthesizerRules(factory2) { return parenthesizerRule; } function binaryOperandNeedsParentheses(binaryOperator, operand, isLeftSideOfBinary, leftOperand) { - const binaryOperatorPrecedence = getOperatorPrecedence(225 /* BinaryExpression */, binaryOperator); - const binaryOperatorAssociativity = getOperatorAssociativity(225 /* BinaryExpression */, binaryOperator); + const binaryOperatorPrecedence = getOperatorPrecedence(226 /* BinaryExpression */, binaryOperator); + const binaryOperatorAssociativity = getOperatorAssociativity(226 /* BinaryExpression */, binaryOperator); const emittedOperand = skipPartiallyEmittedExpressions(operand); - if (!isLeftSideOfBinary && operand.kind === 218 /* ArrowFunction */ && binaryOperatorPrecedence > 3 /* Assignment */) { + if (!isLeftSideOfBinary && operand.kind === 219 /* ArrowFunction */ && binaryOperatorPrecedence > 3 /* Assignment */) { return true; } const operandPrecedence = getExpressionPrecedence(emittedOperand); switch (compareValues(operandPrecedence, binaryOperatorPrecedence)) { case -1 /* LessThan */: - if (!isLeftSideOfBinary && binaryOperatorAssociativity === 1 /* Right */ && operand.kind === 228 /* YieldExpression */) { + if (!isLeftSideOfBinary && binaryOperatorAssociativity === 1 /* Right */ && operand.kind === 229 /* YieldExpression */) { return false; } return true; @@ -21686,7 +21790,7 @@ function createParenthesizerRules(factory2) { if (isLiteralKind(node.kind)) { return node.kind; } - if (node.kind === 225 /* BinaryExpression */ && node.operatorToken.kind === 40 /* PlusToken */) { + if (node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 40 /* PlusToken */) { if (node.cachedLiteralKind !== void 0) { return node.cachedLiteralKind; } @@ -21699,7 +21803,7 @@ function createParenthesizerRules(factory2) { } function parenthesizeBinaryOperand(binaryOperator, operand, isLeftSideOfBinary, leftOperand) { const skipped = skipPartiallyEmittedExpressions(operand); - if (skipped.kind === 216 /* ParenthesizedExpression */) { + if (skipped.kind === 217 /* ParenthesizedExpression */) { return operand; } return binaryOperandNeedsParentheses(binaryOperator, operand, isLeftSideOfBinary, leftOperand) ? factory2.createParenthesizedExpression(operand) : operand; @@ -21725,7 +21829,7 @@ function createParenthesizerRules(factory2) { return isCommaSequence(expression) ? factory2.createParenthesizedExpression(expression) : expression; } function parenthesizeConditionOfConditionalExpression(condition) { - const conditionalPrecedence = getOperatorPrecedence(226 /* ConditionalExpression */, 58 /* QuestionToken */); + const conditionalPrecedence = getOperatorPrecedence(227 /* ConditionalExpression */, 58 /* QuestionToken */); const emittedCondition = skipPartiallyEmittedExpressions(condition); const conditionPrecedence = getExpressionPrecedence(emittedCondition); if (compareValues(conditionPrecedence, conditionalPrecedence) !== 1 /* GreaterThan */) { @@ -21746,8 +21850,8 @@ function createParenthesizerRules(factory2) { /*stopAtCallExpressions*/ false ).kind) { - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: needsParens = true; } } @@ -21760,16 +21864,16 @@ function createParenthesizerRules(factory2) { true ); switch (leftmostExpr.kind) { - case 212 /* CallExpression */: + case 213 /* CallExpression */: return factory2.createParenthesizedExpression(expression); - case 213 /* NewExpression */: + case 214 /* NewExpression */: return !leftmostExpr.arguments ? factory2.createParenthesizedExpression(expression) : expression; } return parenthesizeLeftSideOfAccess(expression); } function parenthesizeLeftSideOfAccess(expression, optionalChain) { const emittedExpression = skipPartiallyEmittedExpressions(expression); - if (isLeftHandSideExpression(emittedExpression) && (emittedExpression.kind !== 213 /* NewExpression */ || emittedExpression.arguments) && (optionalChain || !isOptionalChain(emittedExpression))) { + if (isLeftHandSideExpression(emittedExpression) && (emittedExpression.kind !== 214 /* NewExpression */ || emittedExpression.arguments) && (optionalChain || !isOptionalChain(emittedExpression))) { return expression; } return setTextRange(factory2.createParenthesizedExpression(expression), expression); @@ -21787,7 +21891,7 @@ function createParenthesizerRules(factory2) { function parenthesizeExpressionForDisallowedComma(expression) { const emittedExpression = skipPartiallyEmittedExpressions(expression); const expressionPrecedence = getExpressionPrecedence(emittedExpression); - const commaPrecedence = getOperatorPrecedence(225 /* BinaryExpression */, 28 /* CommaToken */); + const commaPrecedence = getOperatorPrecedence(226 /* BinaryExpression */, 28 /* CommaToken */); return expressionPrecedence > commaPrecedence ? expression : setTextRange(factory2.createParenthesizedExpression(expression), expression); } function parenthesizeExpressionOfExpressionStatement(expression) { @@ -21795,7 +21899,7 @@ function createParenthesizerRules(factory2) { if (isCallExpression(emittedExpression)) { const callee = emittedExpression.expression; const kind = skipPartiallyEmittedExpressions(callee).kind; - if (kind === 217 /* FunctionExpression */ || kind === 218 /* ArrowFunction */) { + if (kind === 218 /* FunctionExpression */ || kind === 219 /* ArrowFunction */) { const updated = factory2.updateCallExpression( emittedExpression, setTextRange(factory2.createParenthesizedExpression(callee), callee), @@ -21810,7 +21914,7 @@ function createParenthesizerRules(factory2) { /*stopAtCallExpressions*/ false ).kind; - if (leftmostExpressionKind === 209 /* ObjectLiteralExpression */ || leftmostExpressionKind === 217 /* FunctionExpression */) { + if (leftmostExpressionKind === 210 /* ObjectLiteralExpression */ || leftmostExpressionKind === 218 /* FunctionExpression */) { return setTextRange(factory2.createParenthesizedExpression(expression), expression); } return expression; @@ -21820,31 +21924,31 @@ function createParenthesizerRules(factory2) { body, /*stopAtCallExpressions*/ false - ).kind === 209 /* ObjectLiteralExpression */)) { + ).kind === 210 /* ObjectLiteralExpression */)) { return setTextRange(factory2.createParenthesizedExpression(body), body); } return body; } function parenthesizeCheckTypeOfConditionalType(checkType) { switch (checkType.kind) { - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 193 /* ConditionalType */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 194 /* ConditionalType */: return factory2.createParenthesizedType(checkType); } return checkType; } function parenthesizeExtendsTypeOfConditionalType(extendsType) { switch (extendsType.kind) { - case 193 /* ConditionalType */: + case 194 /* ConditionalType */: return factory2.createParenthesizedType(extendsType); } return extendsType; } function parenthesizeConstituentTypeOfUnionType(type) { switch (type.kind) { - case 191 /* UnionType */: - case 192 /* IntersectionType */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: return factory2.createParenthesizedType(type); } return parenthesizeCheckTypeOfConditionalType(type); @@ -21854,8 +21958,8 @@ function createParenthesizerRules(factory2) { } function parenthesizeConstituentTypeOfIntersectionType(type) { switch (type.kind) { - case 191 /* UnionType */: - case 192 /* IntersectionType */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: return factory2.createParenthesizedType(type); } return parenthesizeConstituentTypeOfUnionType(type); @@ -21865,23 +21969,23 @@ function createParenthesizerRules(factory2) { } function parenthesizeOperandOfTypeOperator(type) { switch (type.kind) { - case 192 /* IntersectionType */: + case 193 /* IntersectionType */: return factory2.createParenthesizedType(type); } return parenthesizeConstituentTypeOfIntersectionType(type); } function parenthesizeOperandOfReadonlyTypeOperator(type) { switch (type.kind) { - case 197 /* TypeOperator */: + case 198 /* TypeOperator */: return factory2.createParenthesizedType(type); } return parenthesizeOperandOfTypeOperator(type); } function parenthesizeNonArrayTypeOfPostfixType(type) { switch (type.kind) { - case 194 /* InferType */: - case 197 /* TypeOperator */: - case 185 /* TypeQuery */: + case 195 /* InferType */: + case 198 /* TypeOperator */: + case 186 /* TypeQuery */: return factory2.createParenthesizedType(type); } return parenthesizeOperandOfTypeOperator(type); @@ -21966,6 +22070,7 @@ function createNodeConverters(factory2) { return { convertToFunctionBlock, convertToFunctionExpression, + convertToClassExpression, convertToArrayAssignmentElement, convertToObjectAssignmentElement, convertToAssignmentPattern, @@ -21983,10 +22088,11 @@ function createNodeConverters(factory2) { return body; } function convertToFunctionExpression(node) { + var _a; if (!node.body) return Debug.fail(`Cannot convert a FunctionDeclaration without a body`); const updated = factory2.createFunctionExpression( - getModifiers(node), + (_a = getModifiers(node)) == null ? void 0 : _a.filter((modifier) => !isExportModifier(modifier) && !isDefaultModifier(modifier)), node.asteriskToken, node.name, node.typeParameters, @@ -22005,6 +22111,26 @@ function createNodeConverters(factory2) { } return updated; } + function convertToClassExpression(node) { + var _a; + const updated = factory2.createClassExpression( + (_a = node.modifiers) == null ? void 0 : _a.filter((modifier) => !isExportModifier(modifier) && !isDefaultModifier(modifier)), + node.name, + node.typeParameters, + node.heritageClauses, + node.members + ); + setOriginalNode(updated, node); + setTextRange(updated, node); + if (getStartsOnNewLine(node)) { + setStartsOnNewLine( + updated, + /*newLine*/ + true + ); + } + return updated; + } function convertToArrayAssignmentElement(element) { if (isBindingElement(element)) { if (element.dotDotDotToken) { @@ -22039,11 +22165,11 @@ function createNodeConverters(factory2) { } function convertToAssignmentPattern(node) { switch (node.kind) { - case 206 /* ArrayBindingPattern */: - case 208 /* ArrayLiteralExpression */: + case 207 /* ArrayBindingPattern */: + case 209 /* ArrayLiteralExpression */: return convertToArrayAssignmentPattern(node); - case 205 /* ObjectBindingPattern */: - case 209 /* ObjectLiteralExpression */: + case 206 /* ObjectBindingPattern */: + case 210 /* ObjectLiteralExpression */: return convertToObjectAssignmentPattern(node); } } @@ -22081,6 +22207,7 @@ function createNodeConverters(factory2) { var nullNodeConverters = { convertToFunctionBlock: notImplemented, convertToFunctionExpression: notImplemented, + convertToClassExpression: notImplemented, convertToArrayAssignmentElement: notImplemented, convertToObjectAssignmentElement: notImplemented, convertToAssignmentPattern: notImplemented, @@ -22401,40 +22528,40 @@ function createNodeFactory(flags, baseFactory2) { updateExternalModuleReference, // lazily load factory members for JSDoc types with similar structure get createJSDocAllType() { - return getJSDocPrimaryTypeCreateFunction(318 /* JSDocAllType */); + return getJSDocPrimaryTypeCreateFunction(319 /* JSDocAllType */); }, get createJSDocUnknownType() { - return getJSDocPrimaryTypeCreateFunction(319 /* JSDocUnknownType */); + return getJSDocPrimaryTypeCreateFunction(320 /* JSDocUnknownType */); }, get createJSDocNonNullableType() { - return getJSDocPrePostfixUnaryTypeCreateFunction(321 /* JSDocNonNullableType */); + return getJSDocPrePostfixUnaryTypeCreateFunction(322 /* JSDocNonNullableType */); }, get updateJSDocNonNullableType() { - return getJSDocPrePostfixUnaryTypeUpdateFunction(321 /* JSDocNonNullableType */); + return getJSDocPrePostfixUnaryTypeUpdateFunction(322 /* JSDocNonNullableType */); }, get createJSDocNullableType() { - return getJSDocPrePostfixUnaryTypeCreateFunction(320 /* JSDocNullableType */); + return getJSDocPrePostfixUnaryTypeCreateFunction(321 /* JSDocNullableType */); }, get updateJSDocNullableType() { - return getJSDocPrePostfixUnaryTypeUpdateFunction(320 /* JSDocNullableType */); + return getJSDocPrePostfixUnaryTypeUpdateFunction(321 /* JSDocNullableType */); }, get createJSDocOptionalType() { - return getJSDocUnaryTypeCreateFunction(322 /* JSDocOptionalType */); + return getJSDocUnaryTypeCreateFunction(323 /* JSDocOptionalType */); }, get updateJSDocOptionalType() { - return getJSDocUnaryTypeUpdateFunction(322 /* JSDocOptionalType */); + return getJSDocUnaryTypeUpdateFunction(323 /* JSDocOptionalType */); }, get createJSDocVariadicType() { - return getJSDocUnaryTypeCreateFunction(324 /* JSDocVariadicType */); + return getJSDocUnaryTypeCreateFunction(325 /* JSDocVariadicType */); }, get updateJSDocVariadicType() { - return getJSDocUnaryTypeUpdateFunction(324 /* JSDocVariadicType */); + return getJSDocUnaryTypeUpdateFunction(325 /* JSDocVariadicType */); }, get createJSDocNamepathType() { - return getJSDocUnaryTypeCreateFunction(325 /* JSDocNamepathType */); + return getJSDocUnaryTypeCreateFunction(326 /* JSDocNamepathType */); }, get updateJSDocNamepathType() { - return getJSDocUnaryTypeUpdateFunction(325 /* JSDocNamepathType */); + return getJSDocUnaryTypeUpdateFunction(326 /* JSDocNamepathType */); }, createJSDocFunctionType, updateJSDocFunctionType, @@ -22474,82 +22601,82 @@ function createNodeFactory(flags, baseFactory2) { updateJSDocLinkPlain, // lazily load factory members for JSDoc tags with similar structure get createJSDocTypeTag() { - return getJSDocTypeLikeTagCreateFunction(350 /* JSDocTypeTag */); + return getJSDocTypeLikeTagCreateFunction(351 /* JSDocTypeTag */); }, get updateJSDocTypeTag() { - return getJSDocTypeLikeTagUpdateFunction(350 /* JSDocTypeTag */); + return getJSDocTypeLikeTagUpdateFunction(351 /* JSDocTypeTag */); }, get createJSDocReturnTag() { - return getJSDocTypeLikeTagCreateFunction(348 /* JSDocReturnTag */); + return getJSDocTypeLikeTagCreateFunction(349 /* JSDocReturnTag */); }, get updateJSDocReturnTag() { - return getJSDocTypeLikeTagUpdateFunction(348 /* JSDocReturnTag */); + return getJSDocTypeLikeTagUpdateFunction(349 /* JSDocReturnTag */); }, get createJSDocThisTag() { - return getJSDocTypeLikeTagCreateFunction(349 /* JSDocThisTag */); + return getJSDocTypeLikeTagCreateFunction(350 /* JSDocThisTag */); }, get updateJSDocThisTag() { - return getJSDocTypeLikeTagUpdateFunction(349 /* JSDocThisTag */); + return getJSDocTypeLikeTagUpdateFunction(350 /* JSDocThisTag */); }, get createJSDocAuthorTag() { - return getJSDocSimpleTagCreateFunction(336 /* JSDocAuthorTag */); + return getJSDocSimpleTagCreateFunction(337 /* JSDocAuthorTag */); }, get updateJSDocAuthorTag() { - return getJSDocSimpleTagUpdateFunction(336 /* JSDocAuthorTag */); + return getJSDocSimpleTagUpdateFunction(337 /* JSDocAuthorTag */); }, get createJSDocClassTag() { - return getJSDocSimpleTagCreateFunction(338 /* JSDocClassTag */); + return getJSDocSimpleTagCreateFunction(339 /* JSDocClassTag */); }, get updateJSDocClassTag() { - return getJSDocSimpleTagUpdateFunction(338 /* JSDocClassTag */); + return getJSDocSimpleTagUpdateFunction(339 /* JSDocClassTag */); }, get createJSDocPublicTag() { - return getJSDocSimpleTagCreateFunction(339 /* JSDocPublicTag */); + return getJSDocSimpleTagCreateFunction(340 /* JSDocPublicTag */); }, get updateJSDocPublicTag() { - return getJSDocSimpleTagUpdateFunction(339 /* JSDocPublicTag */); + return getJSDocSimpleTagUpdateFunction(340 /* JSDocPublicTag */); }, get createJSDocPrivateTag() { - return getJSDocSimpleTagCreateFunction(340 /* JSDocPrivateTag */); + return getJSDocSimpleTagCreateFunction(341 /* JSDocPrivateTag */); }, get updateJSDocPrivateTag() { - return getJSDocSimpleTagUpdateFunction(340 /* JSDocPrivateTag */); + return getJSDocSimpleTagUpdateFunction(341 /* JSDocPrivateTag */); }, get createJSDocProtectedTag() { - return getJSDocSimpleTagCreateFunction(341 /* JSDocProtectedTag */); + return getJSDocSimpleTagCreateFunction(342 /* JSDocProtectedTag */); }, get updateJSDocProtectedTag() { - return getJSDocSimpleTagUpdateFunction(341 /* JSDocProtectedTag */); + return getJSDocSimpleTagUpdateFunction(342 /* JSDocProtectedTag */); }, get createJSDocReadonlyTag() { - return getJSDocSimpleTagCreateFunction(342 /* JSDocReadonlyTag */); + return getJSDocSimpleTagCreateFunction(343 /* JSDocReadonlyTag */); }, get updateJSDocReadonlyTag() { - return getJSDocSimpleTagUpdateFunction(342 /* JSDocReadonlyTag */); + return getJSDocSimpleTagUpdateFunction(343 /* JSDocReadonlyTag */); }, get createJSDocOverrideTag() { - return getJSDocSimpleTagCreateFunction(343 /* JSDocOverrideTag */); + return getJSDocSimpleTagCreateFunction(344 /* JSDocOverrideTag */); }, get updateJSDocOverrideTag() { - return getJSDocSimpleTagUpdateFunction(343 /* JSDocOverrideTag */); + return getJSDocSimpleTagUpdateFunction(344 /* JSDocOverrideTag */); }, get createJSDocDeprecatedTag() { - return getJSDocSimpleTagCreateFunction(337 /* JSDocDeprecatedTag */); + return getJSDocSimpleTagCreateFunction(338 /* JSDocDeprecatedTag */); }, get updateJSDocDeprecatedTag() { - return getJSDocSimpleTagUpdateFunction(337 /* JSDocDeprecatedTag */); + return getJSDocSimpleTagUpdateFunction(338 /* JSDocDeprecatedTag */); }, get createJSDocThrowsTag() { - return getJSDocTypeLikeTagCreateFunction(355 /* JSDocThrowsTag */); + return getJSDocTypeLikeTagCreateFunction(356 /* JSDocThrowsTag */); }, get updateJSDocThrowsTag() { - return getJSDocTypeLikeTagUpdateFunction(355 /* JSDocThrowsTag */); + return getJSDocTypeLikeTagUpdateFunction(356 /* JSDocThrowsTag */); }, get createJSDocSatisfiesTag() { - return getJSDocTypeLikeTagCreateFunction(356 /* JSDocSatisfiesTag */); + return getJSDocTypeLikeTagCreateFunction(357 /* JSDocSatisfiesTag */); }, get updateJSDocSatisfiesTag() { - return getJSDocTypeLikeTagUpdateFunction(356 /* JSDocSatisfiesTag */); + return getJSDocTypeLikeTagUpdateFunction(357 /* JSDocSatisfiesTag */); }, createJSDocEnumTag, updateJSDocEnumTag, @@ -22724,6 +22851,7 @@ function createNodeFactory(flags, baseFactory2) { createExportDefault, createExternalModuleExport, createTypeCheck, + createIsNotTypeCheck, createMethodCall, createGlobalMethodCall, createFunctionBindCall, @@ -22755,7 +22883,8 @@ function createNodeFactory(flags, baseFactory2) { ensureUseStrict, liftToBlock, mergeLexicalEnvironment, - updateModifiers + updateModifiers, + updateModifierLike }; forEach(nodeFactoryPatchers, (fn) => fn(factory2)); return factory2; @@ -22913,11 +23042,11 @@ function createNodeFactory(flags, baseFactory2) { } const node = createBaseIdentifier(escapeLeadingUnderscores(text)); if (hasExtendedUnicodeEscape) - node.flags |= 128 /* IdentifierHasExtendedUnicodeEscape */; + node.flags |= 256 /* IdentifierHasExtendedUnicodeEscape */; if (node.escapedText === "await") { node.transformFlags |= 67108864 /* ContainsPossibleTopLevelAwait */; } - if (node.flags & 128 /* IdentifierHasExtendedUnicodeEscape */) { + if (node.flags & 256 /* IdentifierHasExtendedUnicodeEscape */) { node.transformFlags |= 1024 /* ContainsES2015 */; } return node; @@ -23012,7 +23141,7 @@ function createNodeFactory(flags, baseFactory2) { return baseFactory2.createBaseTokenNode(kind); } function createToken(token) { - Debug.assert(token >= 0 /* FirstToken */ && token <= 164 /* LastToken */, "Invalid token"); + Debug.assert(token >= 0 /* FirstToken */ && token <= 165 /* LastToken */, "Invalid token"); Debug.assert(token <= 15 /* FirstTemplateToken */ || token >= 18 /* LastTemplateToken */, "Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."); Debug.assert(token <= 9 /* FirstLiteralToken */ || token >= 15 /* LastLiteralToken */, "Invalid token. Use 'createLiteralLikeNode' to create literals."); Debug.assert(token !== 80 /* Identifier */, "Invalid token. Use 'createIdentifier' to create identifiers"); @@ -23022,6 +23151,9 @@ function createNodeFactory(flags, baseFactory2) { case 134 /* AsyncKeyword */: transformFlags = 256 /* ContainsES2017 */ | 128 /* ContainsES2018 */; break; + case 160 /* UsingKeyword */: + transformFlags = 4 /* ContainsESNext */; + break; case 125 /* PublicKeyword */: case 123 /* PrivateKeyword */: case 124 /* ProtectedKeyword */: @@ -23031,12 +23163,12 @@ function createNodeFactory(flags, baseFactory2) { case 87 /* ConstKeyword */: case 133 /* AnyKeyword */: case 150 /* NumberKeyword */: - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: case 146 /* NeverKeyword */: case 151 /* ObjectKeyword */: case 103 /* InKeyword */: case 147 /* OutKeyword */: - case 163 /* OverrideKeyword */: + case 164 /* OverrideKeyword */: case 154 /* StringKeyword */: case 136 /* BooleanKeyword */: case 155 /* SymbolKeyword */: @@ -23104,7 +23236,7 @@ function createNodeFactory(flags, baseFactory2) { if (flags2 & 32 /* Static */) result.push(createModifier(126 /* StaticKeyword */)); if (flags2 & 16384 /* Override */) - result.push(createModifier(163 /* OverrideKeyword */)); + result.push(createModifier(164 /* OverrideKeyword */)); if (flags2 & 64 /* Readonly */) result.push(createModifier(148 /* ReadonlyKeyword */)); if (flags2 & 128 /* Accessor */) @@ -23118,7 +23250,7 @@ function createNodeFactory(flags, baseFactory2) { return result.length ? result : void 0; } function createQualifiedName(left, right) { - const node = createBaseNode(165 /* QualifiedName */); + const node = createBaseNode(166 /* QualifiedName */); node.left = left; node.right = asName(right); node.transformFlags |= propagateChildFlags(node.left) | propagateIdentifierNameFlags(node.right); @@ -23129,7 +23261,7 @@ function createNodeFactory(flags, baseFactory2) { return node.left !== left || node.right !== right ? update(createQualifiedName(left, right), node) : node; } function createComputedPropertyName(expression) { - const node = createBaseNode(166 /* ComputedPropertyName */); + const node = createBaseNode(167 /* ComputedPropertyName */); node.expression = parenthesizerRules().parenthesizeExpressionOfComputedPropertyName(expression); node.transformFlags |= propagateChildFlags(node.expression) | 1024 /* ContainsES2015 */ | 131072 /* ContainsComputedPropertyName */; return node; @@ -23138,7 +23270,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createComputedPropertyName(expression), node) : node; } function createTypeParameterDeclaration(modifiers, name, constraint, defaultType) { - const node = createBaseDeclaration(167 /* TypeParameter */); + const node = createBaseDeclaration(168 /* TypeParameter */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.constraint = constraint; @@ -23152,7 +23284,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.name !== name || node.constraint !== constraint || node.default !== defaultType ? update(createTypeParameterDeclaration(modifiers, name, constraint, defaultType), node) : node; } function createParameterDeclaration(modifiers, dotDotDotToken, name, questionToken, type, initializer) { - const node = createBaseDeclaration(168 /* Parameter */); + const node = createBaseDeclaration(169 /* Parameter */); node.modifiers = asNodeArray(modifiers); node.dotDotDotToken = dotDotDotToken; node.name = asName(name); @@ -23171,7 +23303,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.dotDotDotToken !== dotDotDotToken || node.name !== name || node.questionToken !== questionToken || node.type !== type || node.initializer !== initializer ? update(createParameterDeclaration(modifiers, dotDotDotToken, name, questionToken, type, initializer), node) : node; } function createDecorator(expression) { - const node = createBaseNode(169 /* Decorator */); + const node = createBaseNode(170 /* Decorator */); node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess( expression, /*optionalChain*/ @@ -23184,7 +23316,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createDecorator(expression), node) : node; } function createPropertySignature(modifiers, name, questionToken, type) { - const node = createBaseDeclaration(170 /* PropertySignature */); + const node = createBaseDeclaration(171 /* PropertySignature */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.type = type; @@ -23204,14 +23336,14 @@ function createNodeFactory(flags, baseFactory2) { return update(updated, original); } function createPropertyDeclaration(modifiers, name, questionOrExclamationToken, type, initializer) { - const node = createBaseDeclaration(171 /* PropertyDeclaration */); + const node = createBaseDeclaration(172 /* PropertyDeclaration */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.questionToken = questionOrExclamationToken && isQuestionToken(questionOrExclamationToken) ? questionOrExclamationToken : void 0; node.exclamationToken = questionOrExclamationToken && isExclamationToken(questionOrExclamationToken) ? questionOrExclamationToken : void 0; node.type = type; node.initializer = asInitializer(initializer); - const isAmbient = node.flags & 16777216 /* Ambient */ || modifiersToFlags(node.modifiers) & 2 /* Ambient */; + const isAmbient = node.flags & 33554432 /* Ambient */ || modifiersToFlags(node.modifiers) & 2 /* Ambient */; node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateNameFlags(node.name) | propagateChildFlags(node.initializer) | (isAmbient || node.questionToken || node.exclamationToken || node.type ? 1 /* ContainsTypeScript */ : 0 /* None */) | (isComputedPropertyName(node.name) || modifiersToFlags(node.modifiers) & 32 /* Static */ && node.initializer ? 8192 /* ContainsTypeScriptClassSyntax */ : 0 /* None */) | 16777216 /* ContainsClassFields */; node.jsDoc = void 0; return node; @@ -23220,7 +23352,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.name !== name || node.questionToken !== (questionOrExclamationToken !== void 0 && isQuestionToken(questionOrExclamationToken) ? questionOrExclamationToken : void 0) || node.exclamationToken !== (questionOrExclamationToken !== void 0 && isExclamationToken(questionOrExclamationToken) ? questionOrExclamationToken : void 0) || node.type !== type || node.initializer !== initializer ? update(createPropertyDeclaration(modifiers, name, questionOrExclamationToken, type, initializer), node) : node; } function createMethodSignature(modifiers, name, questionToken, typeParameters, parameters, type) { - const node = createBaseDeclaration(172 /* MethodSignature */); + const node = createBaseDeclaration(173 /* MethodSignature */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.questionToken = questionToken; @@ -23238,7 +23370,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.name !== name || node.questionToken !== questionToken || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type ? finishUpdateBaseSignatureDeclaration(createMethodSignature(modifiers, name, questionToken, typeParameters, parameters, type), node) : node; } function createMethodDeclaration(modifiers, asteriskToken, name, questionToken, typeParameters, parameters, type, body) { - const node = createBaseDeclaration(173 /* MethodDeclaration */); + const node = createBaseDeclaration(174 /* MethodDeclaration */); node.modifiers = asNodeArray(modifiers); node.asteriskToken = asteriskToken; node.name = asName(name); @@ -23275,7 +23407,7 @@ function createNodeFactory(flags, baseFactory2) { return update(updated, original); } function createClassStaticBlockDeclaration(body) { - const node = createBaseDeclaration(174 /* ClassStaticBlockDeclaration */); + const node = createBaseDeclaration(175 /* ClassStaticBlockDeclaration */); node.body = body; node.transformFlags = propagateChildFlags(body) | 16777216 /* ContainsClassFields */; node.modifiers = void 0; @@ -23296,7 +23428,7 @@ function createNodeFactory(flags, baseFactory2) { return update(updated, original); } function createConstructorDeclaration(modifiers, parameters, body) { - const node = createBaseDeclaration(175 /* Constructor */); + const node = createBaseDeclaration(176 /* Constructor */); node.modifiers = asNodeArray(modifiers); node.parameters = createNodeArray(parameters); node.body = body; @@ -23322,7 +23454,7 @@ function createNodeFactory(flags, baseFactory2) { return finishUpdateBaseSignatureDeclaration(updated, original); } function createGetAccessorDeclaration(modifiers, name, parameters, type, body) { - const node = createBaseDeclaration(176 /* GetAccessor */); + const node = createBaseDeclaration(177 /* GetAccessor */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.parameters = createNodeArray(parameters); @@ -23353,7 +23485,7 @@ function createNodeFactory(flags, baseFactory2) { return finishUpdateBaseSignatureDeclaration(updated, original); } function createSetAccessorDeclaration(modifiers, name, parameters, body) { - const node = createBaseDeclaration(177 /* SetAccessor */); + const node = createBaseDeclaration(178 /* SetAccessor */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.parameters = createNodeArray(parameters); @@ -23385,7 +23517,7 @@ function createNodeFactory(flags, baseFactory2) { return finishUpdateBaseSignatureDeclaration(updated, original); } function createCallSignature(typeParameters, parameters, type) { - const node = createBaseDeclaration(178 /* CallSignature */); + const node = createBaseDeclaration(179 /* CallSignature */); node.typeParameters = asNodeArray(typeParameters); node.parameters = asNodeArray(parameters); node.type = type; @@ -23400,7 +23532,7 @@ function createNodeFactory(flags, baseFactory2) { return node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type ? finishUpdateBaseSignatureDeclaration(createCallSignature(typeParameters, parameters, type), node) : node; } function createConstructSignature(typeParameters, parameters, type) { - const node = createBaseDeclaration(179 /* ConstructSignature */); + const node = createBaseDeclaration(180 /* ConstructSignature */); node.typeParameters = asNodeArray(typeParameters); node.parameters = asNodeArray(parameters); node.type = type; @@ -23415,7 +23547,7 @@ function createNodeFactory(flags, baseFactory2) { return node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type ? finishUpdateBaseSignatureDeclaration(createConstructSignature(typeParameters, parameters, type), node) : node; } function createIndexSignature(modifiers, parameters, type) { - const node = createBaseDeclaration(180 /* IndexSignature */); + const node = createBaseDeclaration(181 /* IndexSignature */); node.modifiers = asNodeArray(modifiers); node.parameters = asNodeArray(parameters); node.type = type; @@ -23430,7 +23562,7 @@ function createNodeFactory(flags, baseFactory2) { return node.parameters !== parameters || node.type !== type || node.modifiers !== modifiers ? finishUpdateBaseSignatureDeclaration(createIndexSignature(modifiers, parameters, type), node) : node; } function createTemplateLiteralTypeSpan(type, literal) { - const node = createBaseNode(203 /* TemplateLiteralTypeSpan */); + const node = createBaseNode(204 /* TemplateLiteralTypeSpan */); node.type = type; node.literal = literal; node.transformFlags = 1 /* ContainsTypeScript */; @@ -23443,7 +23575,7 @@ function createNodeFactory(flags, baseFactory2) { return createToken(kind); } function createTypePredicateNode(assertsModifier, parameterName, type) { - const node = createBaseNode(181 /* TypePredicate */); + const node = createBaseNode(182 /* TypePredicate */); node.assertsModifier = assertsModifier; node.parameterName = asName(parameterName); node.type = type; @@ -23454,7 +23586,7 @@ function createNodeFactory(flags, baseFactory2) { return node.assertsModifier !== assertsModifier || node.parameterName !== parameterName || node.type !== type ? update(createTypePredicateNode(assertsModifier, parameterName, type), node) : node; } function createTypeReferenceNode(typeName, typeArguments) { - const node = createBaseNode(182 /* TypeReference */); + const node = createBaseNode(183 /* TypeReference */); node.typeName = asName(typeName); node.typeArguments = typeArguments && parenthesizerRules().parenthesizeTypeArguments(createNodeArray(typeArguments)); node.transformFlags = 1 /* ContainsTypeScript */; @@ -23464,7 +23596,7 @@ function createNodeFactory(flags, baseFactory2) { return node.typeName !== typeName || node.typeArguments !== typeArguments ? update(createTypeReferenceNode(typeName, typeArguments), node) : node; } function createFunctionTypeNode(typeParameters, parameters, type) { - const node = createBaseDeclaration(183 /* FunctionType */); + const node = createBaseDeclaration(184 /* FunctionType */); node.typeParameters = asNodeArray(typeParameters); node.parameters = asNodeArray(parameters); node.type = type; @@ -23489,7 +23621,7 @@ function createNodeFactory(flags, baseFactory2) { return args.length === 4 ? createConstructorTypeNode1(...args) : args.length === 3 ? createConstructorTypeNode2(...args) : Debug.fail("Incorrect number of arguments specified."); } function createConstructorTypeNode1(modifiers, typeParameters, parameters, type) { - const node = createBaseDeclaration(184 /* ConstructorType */); + const node = createBaseDeclaration(185 /* ConstructorType */); node.modifiers = asNodeArray(modifiers); node.typeParameters = asNodeArray(typeParameters); node.parameters = asNodeArray(parameters); @@ -23520,7 +23652,7 @@ function createNodeFactory(flags, baseFactory2) { return updateConstructorTypeNode1(node, node.modifiers, typeParameters, parameters, type); } function createTypeQueryNode(exprName, typeArguments) { - const node = createBaseNode(185 /* TypeQuery */); + const node = createBaseNode(186 /* TypeQuery */); node.exprName = exprName; node.typeArguments = typeArguments && parenthesizerRules().parenthesizeTypeArguments(typeArguments); node.transformFlags = 1 /* ContainsTypeScript */; @@ -23530,7 +23662,7 @@ function createNodeFactory(flags, baseFactory2) { return node.exprName !== exprName || node.typeArguments !== typeArguments ? update(createTypeQueryNode(exprName, typeArguments), node) : node; } function createTypeLiteralNode(members) { - const node = createBaseDeclaration(186 /* TypeLiteral */); + const node = createBaseDeclaration(187 /* TypeLiteral */); node.members = createNodeArray(members); node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -23539,7 +23671,7 @@ function createNodeFactory(flags, baseFactory2) { return node.members !== members ? update(createTypeLiteralNode(members), node) : node; } function createArrayTypeNode(elementType) { - const node = createBaseNode(187 /* ArrayType */); + const node = createBaseNode(188 /* ArrayType */); node.elementType = parenthesizerRules().parenthesizeNonArrayTypeOfPostfixType(elementType); node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -23548,7 +23680,7 @@ function createNodeFactory(flags, baseFactory2) { return node.elementType !== elementType ? update(createArrayTypeNode(elementType), node) : node; } function createTupleTypeNode(elements) { - const node = createBaseNode(188 /* TupleType */); + const node = createBaseNode(189 /* TupleType */); node.elements = createNodeArray(parenthesizerRules().parenthesizeElementTypesOfTupleType(elements)); node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -23557,7 +23689,7 @@ function createNodeFactory(flags, baseFactory2) { return node.elements !== elements ? update(createTupleTypeNode(elements), node) : node; } function createNamedTupleMember(dotDotDotToken, name, questionToken, type) { - const node = createBaseDeclaration(201 /* NamedTupleMember */); + const node = createBaseDeclaration(202 /* NamedTupleMember */); node.dotDotDotToken = dotDotDotToken; node.name = name; node.questionToken = questionToken; @@ -23570,7 +23702,7 @@ function createNodeFactory(flags, baseFactory2) { return node.dotDotDotToken !== dotDotDotToken || node.name !== name || node.questionToken !== questionToken || node.type !== type ? update(createNamedTupleMember(dotDotDotToken, name, questionToken, type), node) : node; } function createOptionalTypeNode(type) { - const node = createBaseNode(189 /* OptionalType */); + const node = createBaseNode(190 /* OptionalType */); node.type = parenthesizerRules().parenthesizeTypeOfOptionalType(type); node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -23579,7 +23711,7 @@ function createNodeFactory(flags, baseFactory2) { return node.type !== type ? update(createOptionalTypeNode(type), node) : node; } function createRestTypeNode(type) { - const node = createBaseNode(190 /* RestType */); + const node = createBaseNode(191 /* RestType */); node.type = type; node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -23597,19 +23729,19 @@ function createNodeFactory(flags, baseFactory2) { return node.types !== types ? update(createUnionOrIntersectionTypeNode(node.kind, types, parenthesize), node) : node; } function createUnionTypeNode(types) { - return createUnionOrIntersectionTypeNode(191 /* UnionType */, types, parenthesizerRules().parenthesizeConstituentTypesOfUnionType); + return createUnionOrIntersectionTypeNode(192 /* UnionType */, types, parenthesizerRules().parenthesizeConstituentTypesOfUnionType); } function updateUnionTypeNode(node, types) { return updateUnionOrIntersectionTypeNode(node, types, parenthesizerRules().parenthesizeConstituentTypesOfUnionType); } function createIntersectionTypeNode(types) { - return createUnionOrIntersectionTypeNode(192 /* IntersectionType */, types, parenthesizerRules().parenthesizeConstituentTypesOfIntersectionType); + return createUnionOrIntersectionTypeNode(193 /* IntersectionType */, types, parenthesizerRules().parenthesizeConstituentTypesOfIntersectionType); } function updateIntersectionTypeNode(node, types) { return updateUnionOrIntersectionTypeNode(node, types, parenthesizerRules().parenthesizeConstituentTypesOfIntersectionType); } function createConditionalTypeNode(checkType, extendsType, trueType, falseType) { - const node = createBaseNode(193 /* ConditionalType */); + const node = createBaseNode(194 /* ConditionalType */); node.checkType = parenthesizerRules().parenthesizeCheckTypeOfConditionalType(checkType); node.extendsType = parenthesizerRules().parenthesizeExtendsTypeOfConditionalType(extendsType); node.trueType = trueType; @@ -23623,7 +23755,7 @@ function createNodeFactory(flags, baseFactory2) { return node.checkType !== checkType || node.extendsType !== extendsType || node.trueType !== trueType || node.falseType !== falseType ? update(createConditionalTypeNode(checkType, extendsType, trueType, falseType), node) : node; } function createInferTypeNode(typeParameter) { - const node = createBaseNode(194 /* InferType */); + const node = createBaseNode(195 /* InferType */); node.typeParameter = typeParameter; node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -23632,7 +23764,7 @@ function createNodeFactory(flags, baseFactory2) { return node.typeParameter !== typeParameter ? update(createInferTypeNode(typeParameter), node) : node; } function createTemplateLiteralType(head, templateSpans) { - const node = createBaseNode(202 /* TemplateLiteralType */); + const node = createBaseNode(203 /* TemplateLiteralType */); node.head = head; node.templateSpans = createNodeArray(templateSpans); node.transformFlags = 1 /* ContainsTypeScript */; @@ -23642,7 +23774,7 @@ function createNodeFactory(flags, baseFactory2) { return node.head !== head || node.templateSpans !== templateSpans ? update(createTemplateLiteralType(head, templateSpans), node) : node; } function createImportTypeNode(argument, assertions, qualifier, typeArguments, isTypeOf = false) { - const node = createBaseNode(204 /* ImportType */); + const node = createBaseNode(205 /* ImportType */); node.argument = argument; node.assertions = assertions; node.qualifier = qualifier; @@ -23655,7 +23787,7 @@ function createNodeFactory(flags, baseFactory2) { return node.argument !== argument || node.assertions !== assertions || node.qualifier !== qualifier || node.typeArguments !== typeArguments || node.isTypeOf !== isTypeOf ? update(createImportTypeNode(argument, assertions, qualifier, typeArguments, isTypeOf), node) : node; } function createParenthesizedType(type) { - const node = createBaseNode(195 /* ParenthesizedType */); + const node = createBaseNode(196 /* ParenthesizedType */); node.type = type; node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -23664,12 +23796,12 @@ function createNodeFactory(flags, baseFactory2) { return node.type !== type ? update(createParenthesizedType(type), node) : node; } function createThisTypeNode() { - const node = createBaseNode(196 /* ThisType */); + const node = createBaseNode(197 /* ThisType */); node.transformFlags = 1 /* ContainsTypeScript */; return node; } function createTypeOperatorNode(operator, type) { - const node = createBaseNode(197 /* TypeOperator */); + const node = createBaseNode(198 /* TypeOperator */); node.operator = operator; node.type = operator === 148 /* ReadonlyKeyword */ ? parenthesizerRules().parenthesizeOperandOfReadonlyTypeOperator(type) : parenthesizerRules().parenthesizeOperandOfTypeOperator(type); node.transformFlags = 1 /* ContainsTypeScript */; @@ -23679,7 +23811,7 @@ function createNodeFactory(flags, baseFactory2) { return node.type !== type ? update(createTypeOperatorNode(node.operator, type), node) : node; } function createIndexedAccessTypeNode(objectType, indexType) { - const node = createBaseNode(198 /* IndexedAccessType */); + const node = createBaseNode(199 /* IndexedAccessType */); node.objectType = parenthesizerRules().parenthesizeNonArrayTypeOfPostfixType(objectType); node.indexType = indexType; node.transformFlags = 1 /* ContainsTypeScript */; @@ -23689,7 +23821,7 @@ function createNodeFactory(flags, baseFactory2) { return node.objectType !== objectType || node.indexType !== indexType ? update(createIndexedAccessTypeNode(objectType, indexType), node) : node; } function createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type, members) { - const node = createBaseDeclaration(199 /* MappedType */); + const node = createBaseDeclaration(200 /* MappedType */); node.readonlyToken = readonlyToken; node.typeParameter = typeParameter; node.nameType = nameType; @@ -23705,7 +23837,7 @@ function createNodeFactory(flags, baseFactory2) { return node.readonlyToken !== readonlyToken || node.typeParameter !== typeParameter || node.nameType !== nameType || node.questionToken !== questionToken || node.type !== type || node.members !== members ? update(createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type, members), node) : node; } function createLiteralTypeNode(literal) { - const node = createBaseNode(200 /* LiteralType */); + const node = createBaseNode(201 /* LiteralType */); node.literal = literal; node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -23714,7 +23846,7 @@ function createNodeFactory(flags, baseFactory2) { return node.literal !== literal ? update(createLiteralTypeNode(literal), node) : node; } function createObjectBindingPattern(elements) { - const node = createBaseNode(205 /* ObjectBindingPattern */); + const node = createBaseNode(206 /* ObjectBindingPattern */); node.elements = createNodeArray(elements); node.transformFlags |= propagateChildrenFlags(node.elements) | 1024 /* ContainsES2015 */ | 524288 /* ContainsBindingPattern */; if (node.transformFlags & 32768 /* ContainsRestOrSpread */) { @@ -23726,7 +23858,7 @@ function createNodeFactory(flags, baseFactory2) { return node.elements !== elements ? update(createObjectBindingPattern(elements), node) : node; } function createArrayBindingPattern(elements) { - const node = createBaseNode(206 /* ArrayBindingPattern */); + const node = createBaseNode(207 /* ArrayBindingPattern */); node.elements = createNodeArray(elements); node.transformFlags |= propagateChildrenFlags(node.elements) | 1024 /* ContainsES2015 */ | 524288 /* ContainsBindingPattern */; return node; @@ -23735,7 +23867,7 @@ function createNodeFactory(flags, baseFactory2) { return node.elements !== elements ? update(createArrayBindingPattern(elements), node) : node; } function createBindingElement(dotDotDotToken, propertyName, name, initializer) { - const node = createBaseDeclaration(207 /* BindingElement */); + const node = createBaseDeclaration(208 /* BindingElement */); node.dotDotDotToken = dotDotDotToken; node.propertyName = asName(propertyName); node.name = asName(name); @@ -23748,7 +23880,7 @@ function createNodeFactory(flags, baseFactory2) { return node.propertyName !== propertyName || node.dotDotDotToken !== dotDotDotToken || node.name !== name || node.initializer !== initializer ? update(createBindingElement(dotDotDotToken, propertyName, name, initializer), node) : node; } function createArrayLiteralExpression(elements, multiLine) { - const node = createBaseNode(208 /* ArrayLiteralExpression */); + const node = createBaseNode(209 /* ArrayLiteralExpression */); const lastElement = elements && lastOrUndefined(elements); const elementsArray = createNodeArray(elements, lastElement && isOmittedExpression(lastElement) ? true : void 0); node.elements = parenthesizerRules().parenthesizeExpressionsOfCommaDelimitedList(elementsArray); @@ -23760,7 +23892,7 @@ function createNodeFactory(flags, baseFactory2) { return node.elements !== elements ? update(createArrayLiteralExpression(elements, node.multiLine), node) : node; } function createObjectLiteralExpression(properties, multiLine) { - const node = createBaseDeclaration(209 /* ObjectLiteralExpression */); + const node = createBaseDeclaration(210 /* ObjectLiteralExpression */); node.properties = createNodeArray(properties); node.multiLine = multiLine; node.transformFlags |= propagateChildrenFlags(node.properties); @@ -23771,7 +23903,7 @@ function createNodeFactory(flags, baseFactory2) { return node.properties !== properties ? update(createObjectLiteralExpression(properties, node.multiLine), node) : node; } function createBasePropertyAccessExpression(expression, questionDotToken, name) { - const node = createBaseDeclaration(210 /* PropertyAccessExpression */); + const node = createBaseDeclaration(211 /* PropertyAccessExpression */); node.expression = expression; node.questionDotToken = questionDotToken; node.name = name; @@ -23812,16 +23944,16 @@ function createNodeFactory(flags, baseFactory2) { questionDotToken, asName(name) ); - node.flags |= 32 /* OptionalChain */; + node.flags |= 64 /* OptionalChain */; node.transformFlags |= 32 /* ContainsES2020 */; return node; } function updatePropertyAccessChain(node, expression, questionDotToken, name) { - Debug.assert(!!(node.flags & 32 /* OptionalChain */), "Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."); + Debug.assert(!!(node.flags & 64 /* OptionalChain */), "Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."); return node.expression !== expression || node.questionDotToken !== questionDotToken || node.name !== name ? update(createPropertyAccessChain(expression, questionDotToken, name), node) : node; } function createBaseElementAccessExpression(expression, questionDotToken, argumentExpression) { - const node = createBaseDeclaration(211 /* ElementAccessExpression */); + const node = createBaseDeclaration(212 /* ElementAccessExpression */); node.expression = expression; node.questionDotToken = questionDotToken; node.argumentExpression = argumentExpression; @@ -23862,16 +23994,16 @@ function createNodeFactory(flags, baseFactory2) { questionDotToken, asExpression(index) ); - node.flags |= 32 /* OptionalChain */; + node.flags |= 64 /* OptionalChain */; node.transformFlags |= 32 /* ContainsES2020 */; return node; } function updateElementAccessChain(node, expression, questionDotToken, argumentExpression) { - Debug.assert(!!(node.flags & 32 /* OptionalChain */), "Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."); + Debug.assert(!!(node.flags & 64 /* OptionalChain */), "Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."); return node.expression !== expression || node.questionDotToken !== questionDotToken || node.argumentExpression !== argumentExpression ? update(createElementAccessChain(expression, questionDotToken, argumentExpression), node) : node; } function createBaseCallExpression(expression, questionDotToken, typeArguments, argumentsArray) { - const node = createBaseDeclaration(212 /* CallExpression */); + const node = createBaseDeclaration(213 /* CallExpression */); node.expression = expression; node.questionDotToken = questionDotToken; node.typeArguments = typeArguments; @@ -23919,16 +24051,16 @@ function createNodeFactory(flags, baseFactory2) { asNodeArray(typeArguments), parenthesizerRules().parenthesizeExpressionsOfCommaDelimitedList(createNodeArray(argumentsArray)) ); - node.flags |= 32 /* OptionalChain */; + node.flags |= 64 /* OptionalChain */; node.transformFlags |= 32 /* ContainsES2020 */; return node; } function updateCallChain(node, expression, questionDotToken, typeArguments, argumentsArray) { - Debug.assert(!!(node.flags & 32 /* OptionalChain */), "Cannot update a CallExpression using updateCallChain. Use updateCall instead."); + Debug.assert(!!(node.flags & 64 /* OptionalChain */), "Cannot update a CallExpression using updateCallChain. Use updateCall instead."); return node.expression !== expression || node.questionDotToken !== questionDotToken || node.typeArguments !== typeArguments || node.arguments !== argumentsArray ? update(createCallChain(expression, questionDotToken, typeArguments, argumentsArray), node) : node; } function createNewExpression(expression, typeArguments, argumentsArray) { - const node = createBaseDeclaration(213 /* NewExpression */); + const node = createBaseDeclaration(214 /* NewExpression */); node.expression = parenthesizerRules().parenthesizeExpressionOfNew(expression); node.typeArguments = asNodeArray(typeArguments); node.arguments = argumentsArray ? parenthesizerRules().parenthesizeExpressionsOfCommaDelimitedList(argumentsArray) : void 0; @@ -23942,7 +24074,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression || node.typeArguments !== typeArguments || node.arguments !== argumentsArray ? update(createNewExpression(expression, typeArguments, argumentsArray), node) : node; } function createTaggedTemplateExpression(tag, typeArguments, template) { - const node = createBaseNode(214 /* TaggedTemplateExpression */); + const node = createBaseNode(215 /* TaggedTemplateExpression */); node.tag = parenthesizerRules().parenthesizeLeftSideOfAccess( tag, /*optionalChain*/ @@ -23963,7 +24095,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tag !== tag || node.typeArguments !== typeArguments || node.template !== template ? update(createTaggedTemplateExpression(tag, typeArguments, template), node) : node; } function createTypeAssertion(type, expression) { - const node = createBaseNode(215 /* TypeAssertionExpression */); + const node = createBaseNode(216 /* TypeAssertionExpression */); node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); node.type = type; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.type) | 1 /* ContainsTypeScript */; @@ -23973,7 +24105,7 @@ function createNodeFactory(flags, baseFactory2) { return node.type !== type || node.expression !== expression ? update(createTypeAssertion(type, expression), node) : node; } function createParenthesizedExpression(expression) { - const node = createBaseNode(216 /* ParenthesizedExpression */); + const node = createBaseNode(217 /* ParenthesizedExpression */); node.expression = expression; node.transformFlags = propagateChildFlags(node.expression); node.jsDoc = void 0; @@ -23983,7 +24115,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createParenthesizedExpression(expression), node) : node; } function createFunctionExpression(modifiers, asteriskToken, name, typeParameters, parameters, type, body) { - const node = createBaseDeclaration(217 /* FunctionExpression */); + const node = createBaseDeclaration(218 /* FunctionExpression */); node.modifiers = asNodeArray(modifiers); node.asteriskToken = asteriskToken; node.name = asName(name); @@ -24008,7 +24140,7 @@ function createNodeFactory(flags, baseFactory2) { return node.name !== name || node.modifiers !== modifiers || node.asteriskToken !== asteriskToken || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type || node.body !== body ? finishUpdateBaseSignatureDeclaration(createFunctionExpression(modifiers, asteriskToken, name, typeParameters, parameters, type, body), node) : node; } function createArrowFunction(modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body) { - const node = createBaseDeclaration(218 /* ArrowFunction */); + const node = createBaseDeclaration(219 /* ArrowFunction */); node.modifiers = asNodeArray(modifiers); node.typeParameters = asNodeArray(typeParameters); node.parameters = createNodeArray(parameters); @@ -24030,7 +24162,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type || node.equalsGreaterThanToken !== equalsGreaterThanToken || node.body !== body ? finishUpdateBaseSignatureDeclaration(createArrowFunction(modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body), node) : node; } function createDeleteExpression(expression) { - const node = createBaseNode(219 /* DeleteExpression */); + const node = createBaseNode(220 /* DeleteExpression */); node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); node.transformFlags |= propagateChildFlags(node.expression); return node; @@ -24039,7 +24171,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createDeleteExpression(expression), node) : node; } function createTypeOfExpression(expression) { - const node = createBaseNode(220 /* TypeOfExpression */); + const node = createBaseNode(221 /* TypeOfExpression */); node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); node.transformFlags |= propagateChildFlags(node.expression); return node; @@ -24048,7 +24180,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createTypeOfExpression(expression), node) : node; } function createVoidExpression(expression) { - const node = createBaseNode(221 /* VoidExpression */); + const node = createBaseNode(222 /* VoidExpression */); node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); node.transformFlags |= propagateChildFlags(node.expression); return node; @@ -24057,7 +24189,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createVoidExpression(expression), node) : node; } function createAwaitExpression(expression) { - const node = createBaseNode(222 /* AwaitExpression */); + const node = createBaseNode(223 /* AwaitExpression */); node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); node.transformFlags |= propagateChildFlags(node.expression) | 256 /* ContainsES2017 */ | 128 /* ContainsES2018 */ | 2097152 /* ContainsAwait */; return node; @@ -24066,7 +24198,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createAwaitExpression(expression), node) : node; } function createPrefixUnaryExpression(operator, operand) { - const node = createBaseNode(223 /* PrefixUnaryExpression */); + const node = createBaseNode(224 /* PrefixUnaryExpression */); node.operator = operator; node.operand = parenthesizerRules().parenthesizeOperandOfPrefixUnary(operand); node.transformFlags |= propagateChildFlags(node.operand); @@ -24079,7 +24211,7 @@ function createNodeFactory(flags, baseFactory2) { return node.operand !== operand ? update(createPrefixUnaryExpression(node.operator, operand), node) : node; } function createPostfixUnaryExpression(operand, operator) { - const node = createBaseNode(224 /* PostfixUnaryExpression */); + const node = createBaseNode(225 /* PostfixUnaryExpression */); node.operator = operator; node.operand = parenthesizerRules().parenthesizeOperandOfPostfixUnary(operand); node.transformFlags |= propagateChildFlags(node.operand); @@ -24092,7 +24224,7 @@ function createNodeFactory(flags, baseFactory2) { return node.operand !== operand ? update(createPostfixUnaryExpression(operand, node.operator), node) : node; } function createBinaryExpression(left, operator, right) { - const node = createBaseDeclaration(225 /* BinaryExpression */); + const node = createBaseDeclaration(226 /* BinaryExpression */); const operatorToken = asToken(operator); const operatorKind = operatorToken.kind; node.left = parenthesizerRules().parenthesizeLeftSideOfBinary(operatorKind, left); @@ -24125,7 +24257,7 @@ function createNodeFactory(flags, baseFactory2) { return node.left !== left || node.operatorToken !== operator || node.right !== right ? update(createBinaryExpression(left, operator, right), node) : node; } function createConditionalExpression(condition, questionToken, whenTrue, colonToken, whenFalse) { - const node = createBaseNode(226 /* ConditionalExpression */); + const node = createBaseNode(227 /* ConditionalExpression */); node.condition = parenthesizerRules().parenthesizeConditionOfConditionalExpression(condition); node.questionToken = questionToken ?? createToken(58 /* QuestionToken */); node.whenTrue = parenthesizerRules().parenthesizeBranchOfConditionalExpression(whenTrue); @@ -24138,7 +24270,7 @@ function createNodeFactory(flags, baseFactory2) { return node.condition !== condition || node.questionToken !== questionToken || node.whenTrue !== whenTrue || node.colonToken !== colonToken || node.whenFalse !== whenFalse ? update(createConditionalExpression(condition, questionToken, whenTrue, colonToken, whenFalse), node) : node; } function createTemplateExpression(head, templateSpans) { - const node = createBaseNode(227 /* TemplateExpression */); + const node = createBaseNode(228 /* TemplateExpression */); node.head = head; node.templateSpans = createNodeArray(templateSpans); node.transformFlags |= propagateChildFlags(node.head) | propagateChildrenFlags(node.templateSpans) | 1024 /* ContainsES2015 */; @@ -24213,7 +24345,7 @@ function createNodeFactory(flags, baseFactory2) { } function createYieldExpression(asteriskToken, expression) { Debug.assert(!asteriskToken || !!expression, "A `YieldExpression` with an asteriskToken must have an expression."); - const node = createBaseNode(228 /* YieldExpression */); + const node = createBaseNode(229 /* YieldExpression */); node.expression = expression && parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); node.asteriskToken = asteriskToken; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.asteriskToken) | 1024 /* ContainsES2015 */ | 128 /* ContainsES2018 */ | 1048576 /* ContainsYield */; @@ -24223,7 +24355,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression || node.asteriskToken !== asteriskToken ? update(createYieldExpression(asteriskToken, expression), node) : node; } function createSpreadElement(expression) { - const node = createBaseNode(229 /* SpreadElement */); + const node = createBaseNode(230 /* SpreadElement */); node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); node.transformFlags |= propagateChildFlags(node.expression) | 1024 /* ContainsES2015 */ | 32768 /* ContainsRestOrSpread */; return node; @@ -24232,7 +24364,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createSpreadElement(expression), node) : node; } function createClassExpression(modifiers, name, typeParameters, heritageClauses, members) { - const node = createBaseDeclaration(230 /* ClassExpression */); + const node = createBaseDeclaration(231 /* ClassExpression */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.typeParameters = asNodeArray(typeParameters); @@ -24246,10 +24378,10 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.heritageClauses !== heritageClauses || node.members !== members ? update(createClassExpression(modifiers, name, typeParameters, heritageClauses, members), node) : node; } function createOmittedExpression() { - return createBaseNode(231 /* OmittedExpression */); + return createBaseNode(232 /* OmittedExpression */); } function createExpressionWithTypeArguments(expression, typeArguments) { - const node = createBaseNode(232 /* ExpressionWithTypeArguments */); + const node = createBaseNode(233 /* ExpressionWithTypeArguments */); node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess( expression, /*optionalChain*/ @@ -24263,7 +24395,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression || node.typeArguments !== typeArguments ? update(createExpressionWithTypeArguments(expression, typeArguments), node) : node; } function createAsExpression(expression, type) { - const node = createBaseNode(233 /* AsExpression */); + const node = createBaseNode(234 /* AsExpression */); node.expression = expression; node.type = type; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.type) | 1 /* ContainsTypeScript */; @@ -24273,7 +24405,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression || node.type !== type ? update(createAsExpression(expression, type), node) : node; } function createNonNullExpression(expression) { - const node = createBaseNode(234 /* NonNullExpression */); + const node = createBaseNode(235 /* NonNullExpression */); node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess( expression, /*optionalChain*/ @@ -24289,7 +24421,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createNonNullExpression(expression), node) : node; } function createSatisfiesExpression(expression, type) { - const node = createBaseNode(237 /* SatisfiesExpression */); + const node = createBaseNode(238 /* SatisfiesExpression */); node.expression = expression; node.type = type; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.type) | 1 /* ContainsTypeScript */; @@ -24299,8 +24431,8 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression || node.type !== type ? update(createSatisfiesExpression(expression, type), node) : node; } function createNonNullChain(expression) { - const node = createBaseNode(234 /* NonNullExpression */); - node.flags |= 32 /* OptionalChain */; + const node = createBaseNode(235 /* NonNullExpression */); + node.flags |= 64 /* OptionalChain */; node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess( expression, /*optionalChain*/ @@ -24310,11 +24442,11 @@ function createNodeFactory(flags, baseFactory2) { return node; } function updateNonNullChain(node, expression) { - Debug.assert(!!(node.flags & 32 /* OptionalChain */), "Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."); + Debug.assert(!!(node.flags & 64 /* OptionalChain */), "Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."); return node.expression !== expression ? update(createNonNullChain(expression), node) : node; } function createMetaProperty(keywordToken, name) { - const node = createBaseNode(235 /* MetaProperty */); + const node = createBaseNode(236 /* MetaProperty */); node.keywordToken = keywordToken; node.name = name; node.transformFlags |= propagateChildFlags(node.name); @@ -24335,7 +24467,7 @@ function createNodeFactory(flags, baseFactory2) { return node.name !== name ? update(createMetaProperty(node.keywordToken, name), node) : node; } function createTemplateSpan(expression, literal) { - const node = createBaseNode(238 /* TemplateSpan */); + const node = createBaseNode(239 /* TemplateSpan */); node.expression = expression; node.literal = literal; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.literal) | 1024 /* ContainsES2015 */; @@ -24345,12 +24477,12 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression || node.literal !== literal ? update(createTemplateSpan(expression, literal), node) : node; } function createSemicolonClassElement() { - const node = createBaseNode(239 /* SemicolonClassElement */); + const node = createBaseNode(240 /* SemicolonClassElement */); node.transformFlags |= 1024 /* ContainsES2015 */; return node; } function createBlock(statements, multiLine) { - const node = createBaseNode(240 /* Block */); + const node = createBaseNode(241 /* Block */); node.statements = createNodeArray(statements); node.multiLine = multiLine; node.transformFlags |= propagateChildrenFlags(node.statements); @@ -24363,7 +24495,7 @@ function createNodeFactory(flags, baseFactory2) { return node.statements !== statements ? update(createBlock(statements, node.multiLine), node) : node; } function createVariableStatement(modifiers, declarationList) { - const node = createBaseNode(242 /* VariableStatement */); + const node = createBaseNode(243 /* VariableStatement */); node.modifiers = asNodeArray(modifiers); node.declarationList = isArray(declarationList) ? createVariableDeclarationList(declarationList) : declarationList; node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.declarationList); @@ -24378,12 +24510,12 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.declarationList !== declarationList ? update(createVariableStatement(modifiers, declarationList), node) : node; } function createEmptyStatement() { - const node = createBaseNode(241 /* EmptyStatement */); + const node = createBaseNode(242 /* EmptyStatement */); node.jsDoc = void 0; return node; } function createExpressionStatement(expression) { - const node = createBaseNode(243 /* ExpressionStatement */); + const node = createBaseNode(244 /* ExpressionStatement */); node.expression = parenthesizerRules().parenthesizeExpressionOfExpressionStatement(expression); node.transformFlags |= propagateChildFlags(node.expression); node.jsDoc = void 0; @@ -24394,7 +24526,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createExpressionStatement(expression), node) : node; } function createIfStatement(expression, thenStatement, elseStatement) { - const node = createBaseNode(244 /* IfStatement */); + const node = createBaseNode(245 /* IfStatement */); node.expression = expression; node.thenStatement = asEmbeddedStatement(thenStatement); node.elseStatement = asEmbeddedStatement(elseStatement); @@ -24407,7 +24539,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression || node.thenStatement !== thenStatement || node.elseStatement !== elseStatement ? update(createIfStatement(expression, thenStatement, elseStatement), node) : node; } function createDoStatement(statement, expression) { - const node = createBaseNode(245 /* DoStatement */); + const node = createBaseNode(246 /* DoStatement */); node.statement = asEmbeddedStatement(statement); node.expression = expression; node.transformFlags |= propagateChildFlags(node.statement) | propagateChildFlags(node.expression); @@ -24419,7 +24551,7 @@ function createNodeFactory(flags, baseFactory2) { return node.statement !== statement || node.expression !== expression ? update(createDoStatement(statement, expression), node) : node; } function createWhileStatement(expression, statement) { - const node = createBaseNode(246 /* WhileStatement */); + const node = createBaseNode(247 /* WhileStatement */); node.expression = expression; node.statement = asEmbeddedStatement(statement); node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.statement); @@ -24431,7 +24563,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression || node.statement !== statement ? update(createWhileStatement(expression, statement), node) : node; } function createForStatement(initializer, condition, incrementor, statement) { - const node = createBaseNode(247 /* ForStatement */); + const node = createBaseNode(248 /* ForStatement */); node.initializer = initializer; node.condition = condition; node.incrementor = incrementor; @@ -24447,7 +24579,7 @@ function createNodeFactory(flags, baseFactory2) { return node.initializer !== initializer || node.condition !== condition || node.incrementor !== incrementor || node.statement !== statement ? update(createForStatement(initializer, condition, incrementor, statement), node) : node; } function createForInStatement(initializer, expression, statement) { - const node = createBaseNode(248 /* ForInStatement */); + const node = createBaseNode(249 /* ForInStatement */); node.initializer = initializer; node.expression = expression; node.statement = asEmbeddedStatement(statement); @@ -24462,7 +24594,7 @@ function createNodeFactory(flags, baseFactory2) { return node.initializer !== initializer || node.expression !== expression || node.statement !== statement ? update(createForInStatement(initializer, expression, statement), node) : node; } function createForOfStatement(awaitModifier, initializer, expression, statement) { - const node = createBaseNode(249 /* ForOfStatement */); + const node = createBaseNode(250 /* ForOfStatement */); node.awaitModifier = awaitModifier; node.initializer = initializer; node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); @@ -24480,7 +24612,7 @@ function createNodeFactory(flags, baseFactory2) { return node.awaitModifier !== awaitModifier || node.initializer !== initializer || node.expression !== expression || node.statement !== statement ? update(createForOfStatement(awaitModifier, initializer, expression, statement), node) : node; } function createContinueStatement(label) { - const node = createBaseNode(250 /* ContinueStatement */); + const node = createBaseNode(251 /* ContinueStatement */); node.label = asName(label); node.transformFlags |= propagateChildFlags(node.label) | 4194304 /* ContainsHoistedDeclarationOrCompletion */; node.jsDoc = void 0; @@ -24491,7 +24623,7 @@ function createNodeFactory(flags, baseFactory2) { return node.label !== label ? update(createContinueStatement(label), node) : node; } function createBreakStatement(label) { - const node = createBaseNode(251 /* BreakStatement */); + const node = createBaseNode(252 /* BreakStatement */); node.label = asName(label); node.transformFlags |= propagateChildFlags(node.label) | 4194304 /* ContainsHoistedDeclarationOrCompletion */; node.jsDoc = void 0; @@ -24502,7 +24634,7 @@ function createNodeFactory(flags, baseFactory2) { return node.label !== label ? update(createBreakStatement(label), node) : node; } function createReturnStatement(expression) { - const node = createBaseNode(252 /* ReturnStatement */); + const node = createBaseNode(253 /* ReturnStatement */); node.expression = expression; node.transformFlags |= propagateChildFlags(node.expression) | 128 /* ContainsES2018 */ | 4194304 /* ContainsHoistedDeclarationOrCompletion */; node.jsDoc = void 0; @@ -24513,7 +24645,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createReturnStatement(expression), node) : node; } function createWithStatement(expression, statement) { - const node = createBaseNode(253 /* WithStatement */); + const node = createBaseNode(254 /* WithStatement */); node.expression = expression; node.statement = asEmbeddedStatement(statement); node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.statement); @@ -24525,7 +24657,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression || node.statement !== statement ? update(createWithStatement(expression, statement), node) : node; } function createSwitchStatement(expression, caseBlock) { - const node = createBaseNode(254 /* SwitchStatement */); + const node = createBaseNode(255 /* SwitchStatement */); node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); node.caseBlock = caseBlock; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.caseBlock); @@ -24538,7 +24670,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression || node.caseBlock !== caseBlock ? update(createSwitchStatement(expression, caseBlock), node) : node; } function createLabeledStatement(label, statement) { - const node = createBaseNode(255 /* LabeledStatement */); + const node = createBaseNode(256 /* LabeledStatement */); node.label = asName(label); node.statement = asEmbeddedStatement(statement); node.transformFlags |= propagateChildFlags(node.label) | propagateChildFlags(node.statement); @@ -24550,7 +24682,7 @@ function createNodeFactory(flags, baseFactory2) { return node.label !== label || node.statement !== statement ? update(createLabeledStatement(label, statement), node) : node; } function createThrowStatement(expression) { - const node = createBaseNode(256 /* ThrowStatement */); + const node = createBaseNode(257 /* ThrowStatement */); node.expression = expression; node.transformFlags |= propagateChildFlags(node.expression); node.jsDoc = void 0; @@ -24561,7 +24693,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createThrowStatement(expression), node) : node; } function createTryStatement(tryBlock, catchClause, finallyBlock) { - const node = createBaseNode(257 /* TryStatement */); + const node = createBaseNode(258 /* TryStatement */); node.tryBlock = tryBlock; node.catchClause = catchClause; node.finallyBlock = finallyBlock; @@ -24574,13 +24706,13 @@ function createNodeFactory(flags, baseFactory2) { return node.tryBlock !== tryBlock || node.catchClause !== catchClause || node.finallyBlock !== finallyBlock ? update(createTryStatement(tryBlock, catchClause, finallyBlock), node) : node; } function createDebuggerStatement() { - const node = createBaseNode(258 /* DebuggerStatement */); + const node = createBaseNode(259 /* DebuggerStatement */); node.jsDoc = void 0; node.flowNode = void 0; return node; } function createVariableDeclaration(name, exclamationToken, type, initializer) { - const node = createBaseDeclaration(259 /* VariableDeclaration */); + const node = createBaseDeclaration(260 /* VariableDeclaration */); node.name = asName(name); node.exclamationToken = exclamationToken; node.type = type; @@ -24593,20 +24725,23 @@ function createNodeFactory(flags, baseFactory2) { return node.name !== name || node.type !== type || node.exclamationToken !== exclamationToken || node.initializer !== initializer ? update(createVariableDeclaration(name, exclamationToken, type, initializer), node) : node; } function createVariableDeclarationList(declarations, flags2 = 0 /* None */) { - const node = createBaseNode(260 /* VariableDeclarationList */); - node.flags |= flags2 & 3 /* BlockScoped */; + const node = createBaseNode(261 /* VariableDeclarationList */); + node.flags |= flags2 & 7 /* BlockScoped */; node.declarations = createNodeArray(declarations); node.transformFlags |= propagateChildrenFlags(node.declarations) | 4194304 /* ContainsHoistedDeclarationOrCompletion */; - if (flags2 & 3 /* BlockScoped */) { + if (flags2 & 7 /* BlockScoped */) { node.transformFlags |= 1024 /* ContainsES2015 */ | 262144 /* ContainsBlockScopedBinding */; } + if (flags2 & 4 /* Using */) { + node.transformFlags |= 4 /* ContainsESNext */; + } return node; } function updateVariableDeclarationList(node, declarations) { return node.declarations !== declarations ? update(createVariableDeclarationList(declarations, node.flags), node) : node; } function createFunctionDeclaration(modifiers, asteriskToken, name, typeParameters, parameters, type, body) { - const node = createBaseDeclaration(261 /* FunctionDeclaration */); + const node = createBaseDeclaration(262 /* FunctionDeclaration */); node.modifiers = asNodeArray(modifiers); node.asteriskToken = asteriskToken; node.name = asName(name); @@ -24642,7 +24777,7 @@ function createNodeFactory(flags, baseFactory2) { return finishUpdateBaseSignatureDeclaration(updated, original); } function createClassDeclaration(modifiers, name, typeParameters, heritageClauses, members) { - const node = createBaseDeclaration(262 /* ClassDeclaration */); + const node = createBaseDeclaration(263 /* ClassDeclaration */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.typeParameters = asNodeArray(typeParameters); @@ -24663,7 +24798,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.heritageClauses !== heritageClauses || node.members !== members ? update(createClassDeclaration(modifiers, name, typeParameters, heritageClauses, members), node) : node; } function createInterfaceDeclaration(modifiers, name, typeParameters, heritageClauses, members) { - const node = createBaseDeclaration(263 /* InterfaceDeclaration */); + const node = createBaseDeclaration(264 /* InterfaceDeclaration */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.typeParameters = asNodeArray(typeParameters); @@ -24677,7 +24812,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.heritageClauses !== heritageClauses || node.members !== members ? update(createInterfaceDeclaration(modifiers, name, typeParameters, heritageClauses, members), node) : node; } function createTypeAliasDeclaration(modifiers, name, typeParameters, type) { - const node = createBaseDeclaration(264 /* TypeAliasDeclaration */); + const node = createBaseDeclaration(265 /* TypeAliasDeclaration */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.typeParameters = asNodeArray(typeParameters); @@ -24692,7 +24827,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.type !== type ? update(createTypeAliasDeclaration(modifiers, name, typeParameters, type), node) : node; } function createEnumDeclaration(modifiers, name, members) { - const node = createBaseDeclaration(265 /* EnumDeclaration */); + const node = createBaseDeclaration(266 /* EnumDeclaration */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.members = createNodeArray(members); @@ -24705,9 +24840,9 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.name !== name || node.members !== members ? update(createEnumDeclaration(modifiers, name, members), node) : node; } function createModuleDeclaration(modifiers, name, body, flags2 = 0 /* None */) { - const node = createBaseDeclaration(266 /* ModuleDeclaration */); + const node = createBaseDeclaration(267 /* ModuleDeclaration */); node.modifiers = asNodeArray(modifiers); - node.flags |= flags2 & (16 /* Namespace */ | 4 /* NestedNamespace */ | 1024 /* GlobalAugmentation */); + node.flags |= flags2 & (32 /* Namespace */ | 8 /* NestedNamespace */ | 2048 /* GlobalAugmentation */); node.name = name; node.body = body; if (modifiersToFlags(node.modifiers) & 2 /* Ambient */) { @@ -24725,7 +24860,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.name !== name || node.body !== body ? update(createModuleDeclaration(modifiers, name, body, node.flags), node) : node; } function createModuleBlock(statements) { - const node = createBaseNode(267 /* ModuleBlock */); + const node = createBaseNode(268 /* ModuleBlock */); node.statements = createNodeArray(statements); node.transformFlags |= propagateChildrenFlags(node.statements); node.jsDoc = void 0; @@ -24735,7 +24870,7 @@ function createNodeFactory(flags, baseFactory2) { return node.statements !== statements ? update(createModuleBlock(statements), node) : node; } function createCaseBlock(clauses) { - const node = createBaseNode(268 /* CaseBlock */); + const node = createBaseNode(269 /* CaseBlock */); node.clauses = createNodeArray(clauses); node.transformFlags |= propagateChildrenFlags(node.clauses); node.locals = void 0; @@ -24746,7 +24881,7 @@ function createNodeFactory(flags, baseFactory2) { return node.clauses !== clauses ? update(createCaseBlock(clauses), node) : node; } function createNamespaceExportDeclaration(name) { - const node = createBaseDeclaration(269 /* NamespaceExportDeclaration */); + const node = createBaseDeclaration(270 /* NamespaceExportDeclaration */); node.name = asName(name); node.transformFlags |= propagateIdentifierNameFlags(node.name) | 1 /* ContainsTypeScript */; node.modifiers = void 0; @@ -24763,7 +24898,7 @@ function createNodeFactory(flags, baseFactory2) { return update(updated, original); } function createImportEqualsDeclaration(modifiers, isTypeOnly, name, moduleReference) { - const node = createBaseDeclaration(270 /* ImportEqualsDeclaration */); + const node = createBaseDeclaration(271 /* ImportEqualsDeclaration */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.isTypeOnly = isTypeOnly; @@ -24780,7 +24915,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.isTypeOnly !== isTypeOnly || node.name !== name || node.moduleReference !== moduleReference ? update(createImportEqualsDeclaration(modifiers, isTypeOnly, name, moduleReference), node) : node; } function createImportDeclaration(modifiers, importClause, moduleSpecifier, assertClause) { - const node = createBaseNode(271 /* ImportDeclaration */); + const node = createBaseNode(272 /* ImportDeclaration */); node.modifiers = asNodeArray(modifiers); node.importClause = importClause; node.moduleSpecifier = moduleSpecifier; @@ -24794,7 +24929,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.importClause !== importClause || node.moduleSpecifier !== moduleSpecifier || node.assertClause !== assertClause ? update(createImportDeclaration(modifiers, importClause, moduleSpecifier, assertClause), node) : node; } function createImportClause(isTypeOnly, name, namedBindings) { - const node = createBaseDeclaration(272 /* ImportClause */); + const node = createBaseDeclaration(273 /* ImportClause */); node.isTypeOnly = isTypeOnly; node.name = name; node.namedBindings = namedBindings; @@ -24809,7 +24944,7 @@ function createNodeFactory(flags, baseFactory2) { return node.isTypeOnly !== isTypeOnly || node.name !== name || node.namedBindings !== namedBindings ? update(createImportClause(isTypeOnly, name, namedBindings), node) : node; } function createAssertClause(elements, multiLine) { - const node = createBaseNode(299 /* AssertClause */); + const node = createBaseNode(300 /* AssertClause */); node.elements = createNodeArray(elements); node.multiLine = multiLine; node.transformFlags |= 4 /* ContainsESNext */; @@ -24819,7 +24954,7 @@ function createNodeFactory(flags, baseFactory2) { return node.elements !== elements || node.multiLine !== multiLine ? update(createAssertClause(elements, multiLine), node) : node; } function createAssertEntry(name, value) { - const node = createBaseNode(300 /* AssertEntry */); + const node = createBaseNode(301 /* AssertEntry */); node.name = name; node.value = value; node.transformFlags |= 4 /* ContainsESNext */; @@ -24829,7 +24964,7 @@ function createNodeFactory(flags, baseFactory2) { return node.name !== name || node.value !== value ? update(createAssertEntry(name, value), node) : node; } function createImportTypeAssertionContainer(clause, multiLine) { - const node = createBaseNode(301 /* ImportTypeAssertionContainer */); + const node = createBaseNode(302 /* ImportTypeAssertionContainer */); node.assertClause = clause; node.multiLine = multiLine; return node; @@ -24838,7 +24973,7 @@ function createNodeFactory(flags, baseFactory2) { return node.assertClause !== clause || node.multiLine !== multiLine ? update(createImportTypeAssertionContainer(clause, multiLine), node) : node; } function createNamespaceImport(name) { - const node = createBaseDeclaration(273 /* NamespaceImport */); + const node = createBaseDeclaration(274 /* NamespaceImport */); node.name = name; node.transformFlags |= propagateChildFlags(node.name); node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; @@ -24848,7 +24983,7 @@ function createNodeFactory(flags, baseFactory2) { return node.name !== name ? update(createNamespaceImport(name), node) : node; } function createNamespaceExport(name) { - const node = createBaseDeclaration(279 /* NamespaceExport */); + const node = createBaseDeclaration(280 /* NamespaceExport */); node.name = name; node.transformFlags |= propagateChildFlags(node.name) | 32 /* ContainsES2020 */; node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; @@ -24858,7 +24993,7 @@ function createNodeFactory(flags, baseFactory2) { return node.name !== name ? update(createNamespaceExport(name), node) : node; } function createNamedImports(elements) { - const node = createBaseNode(274 /* NamedImports */); + const node = createBaseNode(275 /* NamedImports */); node.elements = createNodeArray(elements); node.transformFlags |= propagateChildrenFlags(node.elements); node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; @@ -24868,7 +25003,7 @@ function createNodeFactory(flags, baseFactory2) { return node.elements !== elements ? update(createNamedImports(elements), node) : node; } function createImportSpecifier(isTypeOnly, propertyName, name) { - const node = createBaseDeclaration(275 /* ImportSpecifier */); + const node = createBaseDeclaration(276 /* ImportSpecifier */); node.isTypeOnly = isTypeOnly; node.propertyName = propertyName; node.name = name; @@ -24880,7 +25015,7 @@ function createNodeFactory(flags, baseFactory2) { return node.isTypeOnly !== isTypeOnly || node.propertyName !== propertyName || node.name !== name ? update(createImportSpecifier(isTypeOnly, propertyName, name), node) : node; } function createExportAssignment2(modifiers, isExportEquals, expression) { - const node = createBaseDeclaration(276 /* ExportAssignment */); + const node = createBaseDeclaration(277 /* ExportAssignment */); node.modifiers = asNodeArray(modifiers); node.isExportEquals = isExportEquals; node.expression = isExportEquals ? parenthesizerRules().parenthesizeRightSideOfBinary( @@ -24898,7 +25033,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.expression !== expression ? update(createExportAssignment2(modifiers, node.isExportEquals, expression), node) : node; } function createExportDeclaration(modifiers, isTypeOnly, exportClause, moduleSpecifier, assertClause) { - const node = createBaseDeclaration(277 /* ExportDeclaration */); + const node = createBaseDeclaration(278 /* ExportDeclaration */); node.modifiers = asNodeArray(modifiers); node.isTypeOnly = isTypeOnly; node.exportClause = exportClause; @@ -24921,7 +25056,7 @@ function createNodeFactory(flags, baseFactory2) { return update(updated, original); } function createNamedExports(elements) { - const node = createBaseNode(278 /* NamedExports */); + const node = createBaseNode(279 /* NamedExports */); node.elements = createNodeArray(elements); node.transformFlags |= propagateChildrenFlags(node.elements); node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; @@ -24931,7 +25066,7 @@ function createNodeFactory(flags, baseFactory2) { return node.elements !== elements ? update(createNamedExports(elements), node) : node; } function createExportSpecifier(isTypeOnly, propertyName, name) { - const node = createBaseNode(280 /* ExportSpecifier */); + const node = createBaseNode(281 /* ExportSpecifier */); node.isTypeOnly = isTypeOnly; node.propertyName = asName(propertyName); node.name = asName(name); @@ -24944,12 +25079,12 @@ function createNodeFactory(flags, baseFactory2) { return node.isTypeOnly !== isTypeOnly || node.propertyName !== propertyName || node.name !== name ? update(createExportSpecifier(isTypeOnly, propertyName, name), node) : node; } function createMissingDeclaration() { - const node = createBaseDeclaration(281 /* MissingDeclaration */); + const node = createBaseDeclaration(282 /* MissingDeclaration */); node.jsDoc = void 0; return node; } function createExternalModuleReference(expression) { - const node = createBaseNode(282 /* ExternalModuleReference */); + const node = createBaseNode(283 /* ExternalModuleReference */); node.expression = expression; node.transformFlags |= propagateChildFlags(node.expression); node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; @@ -24981,7 +25116,7 @@ function createNodeFactory(flags, baseFactory2) { return node.type !== type ? update(createJSDocUnaryTypeWorker(kind, type), node) : node; } function createJSDocFunctionType(parameters, type) { - const node = createBaseDeclaration(323 /* JSDocFunctionType */); + const node = createBaseDeclaration(324 /* JSDocFunctionType */); node.parameters = asNodeArray(parameters); node.type = type; node.transformFlags = propagateChildrenFlags(node.parameters) | (node.type ? 1 /* ContainsTypeScript */ : 0 /* None */); @@ -24995,7 +25130,7 @@ function createNodeFactory(flags, baseFactory2) { return node.parameters !== parameters || node.type !== type ? update(createJSDocFunctionType(parameters, type), node) : node; } function createJSDocTypeLiteral(propertyTags, isArrayType = false) { - const node = createBaseDeclaration(328 /* JSDocTypeLiteral */); + const node = createBaseDeclaration(329 /* JSDocTypeLiteral */); node.jsDocPropertyTags = asNodeArray(propertyTags); node.isArrayType = isArrayType; return node; @@ -25004,7 +25139,7 @@ function createNodeFactory(flags, baseFactory2) { return node.jsDocPropertyTags !== propertyTags || node.isArrayType !== isArrayType ? update(createJSDocTypeLiteral(propertyTags, isArrayType), node) : node; } function createJSDocTypeExpression(type) { - const node = createBaseNode(315 /* JSDocTypeExpression */); + const node = createBaseNode(316 /* JSDocTypeExpression */); node.type = type; return node; } @@ -25012,7 +25147,7 @@ function createNodeFactory(flags, baseFactory2) { return node.type !== type ? update(createJSDocTypeExpression(type), node) : node; } function createJSDocSignature(typeParameters, parameters, type) { - const node = createBaseDeclaration(329 /* JSDocSignature */); + const node = createBaseDeclaration(330 /* JSDocSignature */); node.typeParameters = asNodeArray(typeParameters); node.parameters = createNodeArray(parameters); node.type = type; @@ -25041,7 +25176,7 @@ function createNodeFactory(flags, baseFactory2) { return node; } function createJSDocTemplateTag(tagName, constraint, typeParameters, comment) { - const node = createBaseJSDocTag(351 /* JSDocTemplateTag */, tagName ?? createIdentifier("template"), comment); + const node = createBaseJSDocTag(352 /* JSDocTemplateTag */, tagName ?? createIdentifier("template"), comment); node.constraint = constraint; node.typeParameters = createNodeArray(typeParameters); return node; @@ -25050,7 +25185,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.constraint !== constraint || node.typeParameters !== typeParameters || node.comment !== comment ? update(createJSDocTemplateTag(tagName, constraint, typeParameters, comment), node) : node; } function createJSDocTypedefTag(tagName, typeExpression, fullName, comment) { - const node = createBaseJSDocTagDeclaration(352 /* JSDocTypedefTag */, tagName ?? createIdentifier("typedef"), comment); + const node = createBaseJSDocTagDeclaration(353 /* JSDocTypedefTag */, tagName ?? createIdentifier("typedef"), comment); node.typeExpression = typeExpression; node.fullName = fullName; node.name = getJSDocTypeAliasName(fullName); @@ -25062,7 +25197,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.typeExpression !== typeExpression || node.fullName !== fullName || node.comment !== comment ? update(createJSDocTypedefTag(tagName, typeExpression, fullName, comment), node) : node; } function createJSDocParameterTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment) { - const node = createBaseJSDocTagDeclaration(347 /* JSDocParameterTag */, tagName ?? createIdentifier("param"), comment); + const node = createBaseJSDocTagDeclaration(348 /* JSDocParameterTag */, tagName ?? createIdentifier("param"), comment); node.typeExpression = typeExpression; node.name = name; node.isNameFirst = !!isNameFirst; @@ -25073,7 +25208,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.name !== name || node.isBracketed !== isBracketed || node.typeExpression !== typeExpression || node.isNameFirst !== isNameFirst || node.comment !== comment ? update(createJSDocParameterTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment), node) : node; } function createJSDocPropertyTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment) { - const node = createBaseJSDocTagDeclaration(354 /* JSDocPropertyTag */, tagName ?? createIdentifier("prop"), comment); + const node = createBaseJSDocTagDeclaration(355 /* JSDocPropertyTag */, tagName ?? createIdentifier("prop"), comment); node.typeExpression = typeExpression; node.name = name; node.isNameFirst = !!isNameFirst; @@ -25084,7 +25219,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.name !== name || node.isBracketed !== isBracketed || node.typeExpression !== typeExpression || node.isNameFirst !== isNameFirst || node.comment !== comment ? update(createJSDocPropertyTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment), node) : node; } function createJSDocCallbackTag(tagName, typeExpression, fullName, comment) { - const node = createBaseJSDocTagDeclaration(344 /* JSDocCallbackTag */, tagName ?? createIdentifier("callback"), comment); + const node = createBaseJSDocTagDeclaration(345 /* JSDocCallbackTag */, tagName ?? createIdentifier("callback"), comment); node.typeExpression = typeExpression; node.fullName = fullName; node.name = getJSDocTypeAliasName(fullName); @@ -25096,7 +25231,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.typeExpression !== typeExpression || node.fullName !== fullName || node.comment !== comment ? update(createJSDocCallbackTag(tagName, typeExpression, fullName, comment), node) : node; } function createJSDocOverloadTag(tagName, typeExpression, comment) { - const node = createBaseJSDocTag(345 /* JSDocOverloadTag */, tagName ?? createIdentifier("overload"), comment); + const node = createBaseJSDocTag(346 /* JSDocOverloadTag */, tagName ?? createIdentifier("overload"), comment); node.typeExpression = typeExpression; return node; } @@ -25104,7 +25239,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocOverloadTag(tagName, typeExpression, comment), node) : node; } function createJSDocAugmentsTag(tagName, className, comment) { - const node = createBaseJSDocTag(334 /* JSDocAugmentsTag */, tagName ?? createIdentifier("augments"), comment); + const node = createBaseJSDocTag(335 /* JSDocAugmentsTag */, tagName ?? createIdentifier("augments"), comment); node.class = className; return node; } @@ -25112,12 +25247,12 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.class !== className || node.comment !== comment ? update(createJSDocAugmentsTag(tagName, className, comment), node) : node; } function createJSDocImplementsTag(tagName, className, comment) { - const node = createBaseJSDocTag(335 /* JSDocImplementsTag */, tagName ?? createIdentifier("implements"), comment); + const node = createBaseJSDocTag(336 /* JSDocImplementsTag */, tagName ?? createIdentifier("implements"), comment); node.class = className; return node; } function createJSDocSeeTag(tagName, name, comment) { - const node = createBaseJSDocTag(353 /* JSDocSeeTag */, tagName ?? createIdentifier("see"), comment); + const node = createBaseJSDocTag(354 /* JSDocSeeTag */, tagName ?? createIdentifier("see"), comment); node.name = name; return node; } @@ -25125,7 +25260,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.name !== name || node.comment !== comment ? update(createJSDocSeeTag(tagName, name, comment), node) : node; } function createJSDocNameReference(name) { - const node = createBaseNode(316 /* JSDocNameReference */); + const node = createBaseNode(317 /* JSDocNameReference */); node.name = name; return node; } @@ -25133,7 +25268,7 @@ function createNodeFactory(flags, baseFactory2) { return node.name !== name ? update(createJSDocNameReference(name), node) : node; } function createJSDocMemberName(left, right) { - const node = createBaseNode(317 /* JSDocMemberName */); + const node = createBaseNode(318 /* JSDocMemberName */); node.left = left; node.right = right; node.transformFlags |= propagateChildFlags(node.left) | propagateChildFlags(node.right); @@ -25143,7 +25278,7 @@ function createNodeFactory(flags, baseFactory2) { return node.left !== left || node.right !== right ? update(createJSDocMemberName(left, right), node) : node; } function createJSDocLink(name, text) { - const node = createBaseNode(330 /* JSDocLink */); + const node = createBaseNode(331 /* JSDocLink */); node.name = name; node.text = text; return node; @@ -25152,7 +25287,7 @@ function createNodeFactory(flags, baseFactory2) { return node.name !== name ? update(createJSDocLink(name, text), node) : node; } function createJSDocLinkCode(name, text) { - const node = createBaseNode(331 /* JSDocLinkCode */); + const node = createBaseNode(332 /* JSDocLinkCode */); node.name = name; node.text = text; return node; @@ -25161,7 +25296,7 @@ function createNodeFactory(flags, baseFactory2) { return node.name !== name ? update(createJSDocLinkCode(name, text), node) : node; } function createJSDocLinkPlain(name, text) { - const node = createBaseNode(332 /* JSDocLinkPlain */); + const node = createBaseNode(333 /* JSDocLinkPlain */); node.name = name; node.text = text; return node; @@ -25188,14 +25323,14 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocTypeLikeTagWorker(kind, tagName, typeExpression, comment), node) : node; } function createJSDocUnknownTag(tagName, comment) { - const node = createBaseJSDocTag(333 /* JSDocTag */, tagName, comment); + const node = createBaseJSDocTag(334 /* JSDocTag */, tagName, comment); return node; } function updateJSDocUnknownTag(node, tagName, comment) { return node.tagName !== tagName || node.comment !== comment ? update(createJSDocUnknownTag(tagName, comment), node) : node; } function createJSDocEnumTag(tagName, typeExpression, comment) { - const node = createBaseJSDocTagDeclaration(346 /* JSDocEnumTag */, tagName ?? createIdentifier(getDefaultTagNameForKind(346 /* JSDocEnumTag */)), comment); + const node = createBaseJSDocTagDeclaration(347 /* JSDocEnumTag */, tagName ?? createIdentifier(getDefaultTagNameForKind(347 /* JSDocEnumTag */)), comment); node.typeExpression = typeExpression; node.locals = void 0; node.nextContainer = void 0; @@ -25205,7 +25340,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocEnumTag(tagName, typeExpression, comment), node) : node; } function createJSDocText(text) { - const node = createBaseNode(327 /* JSDocText */); + const node = createBaseNode(328 /* JSDocText */); node.text = text; return node; } @@ -25213,7 +25348,7 @@ function createNodeFactory(flags, baseFactory2) { return node.text !== text ? update(createJSDocText(text), node) : node; } function createJSDocComment(comment, tags) { - const node = createBaseNode(326 /* JSDoc */); + const node = createBaseNode(327 /* JSDoc */); node.comment = comment; node.tags = asNodeArray(tags); return node; @@ -25222,7 +25357,7 @@ function createNodeFactory(flags, baseFactory2) { return node.comment !== comment || node.tags !== tags ? update(createJSDocComment(comment, tags), node) : node; } function createJsxElement(openingElement, children, closingElement) { - const node = createBaseNode(283 /* JsxElement */); + const node = createBaseNode(284 /* JsxElement */); node.openingElement = openingElement; node.children = createNodeArray(children); node.closingElement = closingElement; @@ -25233,7 +25368,7 @@ function createNodeFactory(flags, baseFactory2) { return node.openingElement !== openingElement || node.children !== children || node.closingElement !== closingElement ? update(createJsxElement(openingElement, children, closingElement), node) : node; } function createJsxSelfClosingElement(tagName, typeArguments, attributes) { - const node = createBaseNode(284 /* JsxSelfClosingElement */); + const node = createBaseNode(285 /* JsxSelfClosingElement */); node.tagName = tagName; node.typeArguments = asNodeArray(typeArguments); node.attributes = attributes; @@ -25247,7 +25382,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.typeArguments !== typeArguments || node.attributes !== attributes ? update(createJsxSelfClosingElement(tagName, typeArguments, attributes), node) : node; } function createJsxOpeningElement(tagName, typeArguments, attributes) { - const node = createBaseNode(285 /* JsxOpeningElement */); + const node = createBaseNode(286 /* JsxOpeningElement */); node.tagName = tagName; node.typeArguments = asNodeArray(typeArguments); node.attributes = attributes; @@ -25261,7 +25396,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.typeArguments !== typeArguments || node.attributes !== attributes ? update(createJsxOpeningElement(tagName, typeArguments, attributes), node) : node; } function createJsxClosingElement(tagName) { - const node = createBaseNode(286 /* JsxClosingElement */); + const node = createBaseNode(287 /* JsxClosingElement */); node.tagName = tagName; node.transformFlags |= propagateChildFlags(node.tagName) | 2 /* ContainsJsx */; return node; @@ -25270,7 +25405,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName ? update(createJsxClosingElement(tagName), node) : node; } function createJsxFragment(openingFragment, children, closingFragment) { - const node = createBaseNode(287 /* JsxFragment */); + const node = createBaseNode(288 /* JsxFragment */); node.openingFragment = openingFragment; node.children = createNodeArray(children); node.closingFragment = closingFragment; @@ -25291,17 +25426,17 @@ function createNodeFactory(flags, baseFactory2) { return node.text !== text || node.containsOnlyTriviaWhiteSpaces !== containsOnlyTriviaWhiteSpaces ? update(createJsxText(text, containsOnlyTriviaWhiteSpaces), node) : node; } function createJsxOpeningFragment() { - const node = createBaseNode(288 /* JsxOpeningFragment */); + const node = createBaseNode(289 /* JsxOpeningFragment */); node.transformFlags |= 2 /* ContainsJsx */; return node; } function createJsxJsxClosingFragment() { - const node = createBaseNode(289 /* JsxClosingFragment */); + const node = createBaseNode(290 /* JsxClosingFragment */); node.transformFlags |= 2 /* ContainsJsx */; return node; } function createJsxAttribute(name, initializer) { - const node = createBaseDeclaration(290 /* JsxAttribute */); + const node = createBaseDeclaration(291 /* JsxAttribute */); node.name = name; node.initializer = initializer; node.transformFlags |= propagateChildFlags(node.name) | propagateChildFlags(node.initializer) | 2 /* ContainsJsx */; @@ -25311,7 +25446,7 @@ function createNodeFactory(flags, baseFactory2) { return node.name !== name || node.initializer !== initializer ? update(createJsxAttribute(name, initializer), node) : node; } function createJsxAttributes(properties) { - const node = createBaseDeclaration(291 /* JsxAttributes */); + const node = createBaseDeclaration(292 /* JsxAttributes */); node.properties = createNodeArray(properties); node.transformFlags |= propagateChildrenFlags(node.properties) | 2 /* ContainsJsx */; return node; @@ -25320,7 +25455,7 @@ function createNodeFactory(flags, baseFactory2) { return node.properties !== properties ? update(createJsxAttributes(properties), node) : node; } function createJsxSpreadAttribute(expression) { - const node = createBaseNode(292 /* JsxSpreadAttribute */); + const node = createBaseNode(293 /* JsxSpreadAttribute */); node.expression = expression; node.transformFlags |= propagateChildFlags(node.expression) | 2 /* ContainsJsx */; return node; @@ -25329,7 +25464,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createJsxSpreadAttribute(expression), node) : node; } function createJsxExpression(dotDotDotToken, expression) { - const node = createBaseNode(293 /* JsxExpression */); + const node = createBaseNode(294 /* JsxExpression */); node.dotDotDotToken = dotDotDotToken; node.expression = expression; node.transformFlags |= propagateChildFlags(node.dotDotDotToken) | propagateChildFlags(node.expression) | 2 /* ContainsJsx */; @@ -25339,7 +25474,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createJsxExpression(node.dotDotDotToken, expression), node) : node; } function createJsxNamespacedName(namespace, name) { - const node = createBaseNode(294 /* JsxNamespacedName */); + const node = createBaseNode(295 /* JsxNamespacedName */); node.namespace = namespace; node.name = name; node.transformFlags |= propagateChildFlags(node.namespace) | propagateChildFlags(node.name) | 2 /* ContainsJsx */; @@ -25349,7 +25484,7 @@ function createNodeFactory(flags, baseFactory2) { return node.namespace !== namespace || node.name !== name ? update(createJsxNamespacedName(namespace, name), node) : node; } function createCaseClause(expression, statements) { - const node = createBaseNode(295 /* CaseClause */); + const node = createBaseNode(296 /* CaseClause */); node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); node.statements = createNodeArray(statements); node.transformFlags |= propagateChildFlags(node.expression) | propagateChildrenFlags(node.statements); @@ -25360,7 +25495,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression || node.statements !== statements ? update(createCaseClause(expression, statements), node) : node; } function createDefaultClause(statements) { - const node = createBaseNode(296 /* DefaultClause */); + const node = createBaseNode(297 /* DefaultClause */); node.statements = createNodeArray(statements); node.transformFlags = propagateChildrenFlags(node.statements); return node; @@ -25369,7 +25504,7 @@ function createNodeFactory(flags, baseFactory2) { return node.statements !== statements ? update(createDefaultClause(statements), node) : node; } function createHeritageClause(token, types) { - const node = createBaseNode(297 /* HeritageClause */); + const node = createBaseNode(298 /* HeritageClause */); node.token = token; node.types = createNodeArray(types); node.transformFlags |= propagateChildrenFlags(node.types); @@ -25389,7 +25524,7 @@ function createNodeFactory(flags, baseFactory2) { return node.types !== types ? update(createHeritageClause(node.token, types), node) : node; } function createCatchClause(variableDeclaration, block) { - const node = createBaseNode(298 /* CatchClause */); + const node = createBaseNode(299 /* CatchClause */); node.variableDeclaration = asVariableDeclaration(variableDeclaration); node.block = block; node.transformFlags |= propagateChildFlags(node.variableDeclaration) | propagateChildFlags(node.block) | (!variableDeclaration ? 64 /* ContainsES2019 */ : 0 /* None */); @@ -25401,7 +25536,7 @@ function createNodeFactory(flags, baseFactory2) { return node.variableDeclaration !== variableDeclaration || node.block !== block ? update(createCatchClause(variableDeclaration, block), node) : node; } function createPropertyAssignment(name, initializer) { - const node = createBaseDeclaration(302 /* PropertyAssignment */); + const node = createBaseDeclaration(303 /* PropertyAssignment */); node.name = asName(name); node.initializer = parenthesizerRules().parenthesizeExpressionForDisallowedComma(initializer); node.transformFlags |= propagateNameFlags(node.name) | propagateChildFlags(node.initializer); @@ -25423,7 +25558,7 @@ function createNodeFactory(flags, baseFactory2) { return update(updated, original); } function createShorthandPropertyAssignment(name, objectAssignmentInitializer) { - const node = createBaseDeclaration(303 /* ShorthandPropertyAssignment */); + const node = createBaseDeclaration(304 /* ShorthandPropertyAssignment */); node.name = asName(name); node.objectAssignmentInitializer = objectAssignmentInitializer && parenthesizerRules().parenthesizeExpressionForDisallowedComma(objectAssignmentInitializer); node.transformFlags |= propagateIdentifierNameFlags(node.name) | propagateChildFlags(node.objectAssignmentInitializer) | 1024 /* ContainsES2015 */; @@ -25447,7 +25582,7 @@ function createNodeFactory(flags, baseFactory2) { return update(updated, original); } function createSpreadAssignment(expression) { - const node = createBaseDeclaration(304 /* SpreadAssignment */); + const node = createBaseDeclaration(305 /* SpreadAssignment */); node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); node.transformFlags |= propagateChildFlags(node.expression) | 128 /* ContainsES2018 */ | 65536 /* ContainsObjectRestOrSpread */; node.jsDoc = void 0; @@ -25457,7 +25592,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createSpreadAssignment(expression), node) : node; } function createEnumMember(name, initializer) { - const node = createBaseDeclaration(305 /* EnumMember */); + const node = createBaseDeclaration(306 /* EnumMember */); node.name = asName(name); node.initializer = initializer && parenthesizerRules().parenthesizeExpressionForDisallowedComma(initializer); node.transformFlags |= propagateChildFlags(node.name) | propagateChildFlags(node.initializer) | 1 /* ContainsTypeScript */; @@ -25468,7 +25603,7 @@ function createNodeFactory(flags, baseFactory2) { return node.name !== name || node.initializer !== initializer ? update(createEnumMember(name, initializer), node) : node; } function createSourceFile2(statements, endOfFileToken, flags2) { - const node = baseFactory2.createBaseSourceFileNode(311 /* SourceFile */); + const node = baseFactory2.createBaseSourceFileNode(312 /* SourceFile */); node.statements = createNodeArray(statements); node.endOfFileToken = endOfFileToken; node.flags |= flags2; @@ -25538,7 +25673,7 @@ function createNodeFactory(flags, baseFactory2) { } function cloneRedirectedSourceFile(source) { const node = createRedirectedSourceFile(source.redirectInfo); - node.flags |= source.flags & ~8 /* Synthesized */; + node.flags |= source.flags & ~16 /* Synthesized */; node.fileName = source.fileName; node.path = source.path; node.resolvedPath = source.resolvedPath; @@ -25549,8 +25684,8 @@ function createNodeFactory(flags, baseFactory2) { return node; } function cloneSourceFileWorker(source) { - const node = baseFactory2.createBaseSourceFileNode(311 /* SourceFile */); - node.flags |= source.flags & ~8 /* Synthesized */; + const node = baseFactory2.createBaseSourceFileNode(312 /* SourceFile */); + node.flags |= source.flags & ~16 /* Synthesized */; for (const p in source) { if (hasProperty(node, p) || !hasProperty(source, p)) { continue; @@ -25583,7 +25718,7 @@ function createNodeFactory(flags, baseFactory2) { return node.statements !== statements || node.isDeclarationFile !== isDeclarationFile || node.referencedFiles !== referencedFiles || node.typeReferenceDirectives !== typeReferenceDirectives || node.hasNoDefaultLib !== hasNoDefaultLib || node.libReferenceDirectives !== libReferenceDirectives ? update(cloneSourceFileWithChanges(node, statements, isDeclarationFile, referencedFiles, typeReferenceDirectives, hasNoDefaultLib, libReferenceDirectives), node) : node; } function createBundle(sourceFiles, prepends = emptyArray) { - const node = createBaseNode(312 /* Bundle */); + const node = createBaseNode(313 /* Bundle */); node.prepends = prepends; node.sourceFiles = sourceFiles; node.syntheticFileReferences = void 0; @@ -25596,7 +25731,7 @@ function createNodeFactory(flags, baseFactory2) { return node.sourceFiles !== sourceFiles || node.prepends !== prepends ? update(createBundle(sourceFiles, prepends), node) : node; } function createUnparsedSource(prologues, syntheticReferences, texts) { - const node = createBaseNode(313 /* UnparsedSource */); + const node = createBaseNode(314 /* UnparsedSource */); node.prologues = prologues; node.syntheticReferences = syntheticReferences; node.texts = texts; @@ -25613,48 +25748,48 @@ function createNodeFactory(flags, baseFactory2) { return node; } function createUnparsedPrologue(data) { - return createBaseUnparsedNode(306 /* UnparsedPrologue */, data); + return createBaseUnparsedNode(307 /* UnparsedPrologue */, data); } function createUnparsedPrepend(data, texts) { - const node = createBaseUnparsedNode(307 /* UnparsedPrepend */, data); + const node = createBaseUnparsedNode(308 /* UnparsedPrepend */, data); node.texts = texts; return node; } function createUnparsedTextLike(data, internal) { - return createBaseUnparsedNode(internal ? 309 /* UnparsedInternalText */ : 308 /* UnparsedText */, data); + return createBaseUnparsedNode(internal ? 310 /* UnparsedInternalText */ : 309 /* UnparsedText */, data); } function createUnparsedSyntheticReference(section) { - const node = createBaseNode(310 /* UnparsedSyntheticReference */); + const node = createBaseNode(311 /* UnparsedSyntheticReference */); node.data = section.data; node.section = section; return node; } function createInputFiles2() { - const node = createBaseNode(314 /* InputFiles */); + const node = createBaseNode(315 /* InputFiles */); node.javascriptText = ""; node.declarationText = ""; return node; } function createSyntheticExpression(type, isSpread = false, tupleNameSource) { - const node = createBaseNode(236 /* SyntheticExpression */); + const node = createBaseNode(237 /* SyntheticExpression */); node.type = type; node.isSpread = isSpread; node.tupleNameSource = tupleNameSource; return node; } function createSyntaxList3(children) { - const node = createBaseNode(357 /* SyntaxList */); + const node = createBaseNode(358 /* SyntaxList */); node._children = children; return node; } function createNotEmittedStatement(original) { - const node = createBaseNode(358 /* NotEmittedStatement */); + const node = createBaseNode(359 /* NotEmittedStatement */); node.original = original; setTextRange(node, original); return node; } function createPartiallyEmittedExpression(expression, original) { - const node = createBaseNode(359 /* PartiallyEmittedExpression */); + const node = createBaseNode(360 /* PartiallyEmittedExpression */); node.expression = expression; node.original = original; node.transformFlags |= propagateChildFlags(node.expression) | 1 /* ContainsTypeScript */; @@ -25676,7 +25811,7 @@ function createNodeFactory(flags, baseFactory2) { return node; } function createCommaListExpression(elements) { - const node = createBaseNode(360 /* CommaListExpression */); + const node = createBaseNode(361 /* CommaListExpression */); node.elements = createNodeArray(sameFlatMap(elements, flattenCommaElements)); node.transformFlags |= propagateChildrenFlags(node.elements); return node; @@ -25685,7 +25820,7 @@ function createNodeFactory(flags, baseFactory2) { return node.elements !== elements ? update(createCommaListExpression(elements), node) : node; } function createSyntheticReferenceExpression(expression, thisArg) { - const node = createBaseNode(361 /* SyntheticReferenceExpression */); + const node = createBaseNode(362 /* SyntheticReferenceExpression */); node.expression = expression; node.thisArg = thisArg; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.thisArg); @@ -25696,7 +25831,7 @@ function createNodeFactory(flags, baseFactory2) { } function cloneGeneratedIdentifier(node) { const clone2 = createBaseIdentifier(node.escapedText); - clone2.flags |= node.flags & ~8 /* Synthesized */; + clone2.flags |= node.flags & ~16 /* Synthesized */; clone2.transformFlags = node.transformFlags; setOriginalNode(clone2, node); setIdentifierAutoGenerate(clone2, { ...node.emitNode.autoGenerate }); @@ -25704,7 +25839,7 @@ function createNodeFactory(flags, baseFactory2) { } function cloneIdentifier(node) { const clone2 = createBaseIdentifier(node.escapedText); - clone2.flags |= node.flags & ~8 /* Synthesized */; + clone2.flags |= node.flags & ~16 /* Synthesized */; clone2.jsDoc = node.jsDoc; clone2.flowNode = node.flowNode; clone2.symbol = node.symbol; @@ -25717,7 +25852,7 @@ function createNodeFactory(flags, baseFactory2) { } function cloneGeneratedPrivateIdentifier(node) { const clone2 = createBasePrivateIdentifier(node.escapedText); - clone2.flags |= node.flags & ~8 /* Synthesized */; + clone2.flags |= node.flags & ~16 /* Synthesized */; clone2.transformFlags = node.transformFlags; setOriginalNode(clone2, node); setIdentifierAutoGenerate(clone2, { ...node.emitNode.autoGenerate }); @@ -25725,7 +25860,7 @@ function createNodeFactory(flags, baseFactory2) { } function clonePrivateIdentifier(node) { const clone2 = createBasePrivateIdentifier(node.escapedText); - clone2.flags |= node.flags & ~8 /* Synthesized */; + clone2.flags |= node.flags & ~16 /* Synthesized */; clone2.transformFlags = node.transformFlags; setOriginalNode(clone2, node); return clone2; @@ -25750,7 +25885,7 @@ function createNodeFactory(flags, baseFactory2) { return clonePrivateIdentifier(node); } const clone2 = !isNodeKind(node.kind) ? baseFactory2.createBaseTokenNode(node.kind) : baseFactory2.createBaseNode(node.kind); - clone2.flags |= node.flags & ~8 /* Synthesized */; + clone2.flags |= node.flags & ~16 /* Synthesized */; clone2.transformFlags = node.transformFlags; setOriginalNode(clone2, node); for (const key in node) { @@ -25843,7 +25978,10 @@ function createNodeFactory(flags, baseFactory2) { ); } function createTypeCheck(value, tag) { - return tag === "undefined" ? factory2.createStrictEquality(value, createVoidZero()) : factory2.createStrictEquality(createTypeOfExpression(value), createStringLiteral(tag)); + return tag === "null" ? factory2.createStrictEquality(value, createNull()) : tag === "undefined" ? factory2.createStrictEquality(value, createVoidZero()) : factory2.createStrictEquality(createTypeOfExpression(value), createStringLiteral(tag)); + } + function createIsNotTypeCheck(value, tag) { + return tag === "null" ? factory2.createStrictInequality(value, createNull()) : tag === "undefined" ? factory2.createStrictInequality(value, createVoidZero()) : factory2.createStrictInequality(createTypeOfExpression(value), createStringLiteral(tag)); } function createMethodCall(object, methodName, argumentsList) { if (isCallChain(object)) { @@ -25918,17 +26056,17 @@ function createNodeFactory(flags, baseFactory2) { } function updateOuterExpression(outerExpression, expression) { switch (outerExpression.kind) { - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return updateParenthesizedExpression(outerExpression, expression); - case 215 /* TypeAssertionExpression */: + case 216 /* TypeAssertionExpression */: return updateTypeAssertion(outerExpression, outerExpression.type, expression); - case 233 /* AsExpression */: + case 234 /* AsExpression */: return updateAsExpression(outerExpression, expression, outerExpression.type); - case 237 /* SatisfiesExpression */: + case 238 /* SatisfiesExpression */: return updateSatisfiesExpression(outerExpression, expression, outerExpression.type); - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: return updateNonNullExpression(outerExpression, expression); - case 359 /* PartiallyEmittedExpression */: + case 360 /* PartiallyEmittedExpression */: return updatePartiallyEmittedExpression(outerExpression, expression); } } @@ -25968,13 +26106,13 @@ function createNodeFactory(flags, baseFactory2) { case 10 /* BigIntLiteral */: case 11 /* StringLiteral */: return false; - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: const elements = target.elements; if (elements.length === 0) { return false; } return true; - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return target.properties.length > 0; default: return true; @@ -26237,6 +26375,9 @@ function createNodeFactory(flags, baseFactory2) { } return isTypeParameterDeclaration(node) ? updateTypeParameterDeclaration(node, modifierArray, node.name, node.constraint, node.default) : isParameter(node) ? updateParameterDeclaration(node, modifierArray, node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer) : isConstructorTypeNode(node) ? updateConstructorTypeNode1(node, modifierArray, node.typeParameters, node.parameters, node.type) : isPropertySignature(node) ? updatePropertySignature(node, modifierArray, node.name, node.questionToken, node.type) : isPropertyDeclaration(node) ? updatePropertyDeclaration2(node, modifierArray, node.name, node.questionToken ?? node.exclamationToken, node.type, node.initializer) : isMethodSignature(node) ? updateMethodSignature(node, modifierArray, node.name, node.questionToken, node.typeParameters, node.parameters, node.type) : isMethodDeclaration(node) ? updateMethodDeclaration(node, modifierArray, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body) : isConstructorDeclaration(node) ? updateConstructorDeclaration(node, modifierArray, node.parameters, node.body) : isGetAccessorDeclaration(node) ? updateGetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.type, node.body) : isSetAccessorDeclaration(node) ? updateSetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.body) : isIndexSignatureDeclaration(node) ? updateIndexSignature(node, modifierArray, node.parameters, node.type) : isFunctionExpression(node) ? updateFunctionExpression(node, modifierArray, node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body) : isArrowFunction(node) ? updateArrowFunction(node, modifierArray, node.typeParameters, node.parameters, node.type, node.equalsGreaterThanToken, node.body) : isClassExpression(node) ? updateClassExpression(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isVariableStatement(node) ? updateVariableStatement(node, modifierArray, node.declarationList) : isFunctionDeclaration(node) ? updateFunctionDeclaration(node, modifierArray, node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body) : isClassDeclaration(node) ? updateClassDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isInterfaceDeclaration(node) ? updateInterfaceDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isTypeAliasDeclaration(node) ? updateTypeAliasDeclaration(node, modifierArray, node.name, node.typeParameters, node.type) : isEnumDeclaration(node) ? updateEnumDeclaration(node, modifierArray, node.name, node.members) : isModuleDeclaration(node) ? updateModuleDeclaration(node, modifierArray, node.name, node.body) : isImportEqualsDeclaration(node) ? updateImportEqualsDeclaration(node, modifierArray, node.isTypeOnly, node.name, node.moduleReference) : isImportDeclaration(node) ? updateImportDeclaration(node, modifierArray, node.importClause, node.moduleSpecifier, node.assertClause) : isExportAssignment(node) ? updateExportAssignment(node, modifierArray, node.expression) : isExportDeclaration(node) ? updateExportDeclaration(node, modifierArray, node.isTypeOnly, node.exportClause, node.moduleSpecifier, node.assertClause) : Debug.assertNever(node); } + function updateModifierLike(node, modifierArray) { + return isParameter(node) ? updateParameterDeclaration(node, modifierArray, node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer) : isPropertyDeclaration(node) ? updatePropertyDeclaration2(node, modifierArray, node.name, node.questionToken ?? node.exclamationToken, node.type, node.initializer) : isMethodDeclaration(node) ? updateMethodDeclaration(node, modifierArray, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body) : isGetAccessorDeclaration(node) ? updateGetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.type, node.body) : isSetAccessorDeclaration(node) ? updateSetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.body) : isClassExpression(node) ? updateClassExpression(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isClassDeclaration(node) ? updateClassDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : Debug.assertNever(node); + } function asNodeArray(array) { return array ? createNodeArray(array) : void 0; } @@ -26285,43 +26426,43 @@ function updateWithOriginal(updated, original) { } function getDefaultTagNameForKind(kind) { switch (kind) { - case 350 /* JSDocTypeTag */: + case 351 /* JSDocTypeTag */: return "type"; - case 348 /* JSDocReturnTag */: + case 349 /* JSDocReturnTag */: return "returns"; - case 349 /* JSDocThisTag */: + case 350 /* JSDocThisTag */: return "this"; - case 346 /* JSDocEnumTag */: + case 347 /* JSDocEnumTag */: return "enum"; - case 336 /* JSDocAuthorTag */: + case 337 /* JSDocAuthorTag */: return "author"; - case 338 /* JSDocClassTag */: + case 339 /* JSDocClassTag */: return "class"; - case 339 /* JSDocPublicTag */: + case 340 /* JSDocPublicTag */: return "public"; - case 340 /* JSDocPrivateTag */: + case 341 /* JSDocPrivateTag */: return "private"; - case 341 /* JSDocProtectedTag */: + case 342 /* JSDocProtectedTag */: return "protected"; - case 342 /* JSDocReadonlyTag */: + case 343 /* JSDocReadonlyTag */: return "readonly"; - case 343 /* JSDocOverrideTag */: + case 344 /* JSDocOverrideTag */: return "override"; - case 351 /* JSDocTemplateTag */: + case 352 /* JSDocTemplateTag */: return "template"; - case 352 /* JSDocTypedefTag */: + case 353 /* JSDocTypedefTag */: return "typedef"; - case 347 /* JSDocParameterTag */: + case 348 /* JSDocParameterTag */: return "param"; - case 354 /* JSDocPropertyTag */: + case 355 /* JSDocPropertyTag */: return "prop"; - case 344 /* JSDocCallbackTag */: + case 345 /* JSDocCallbackTag */: return "callback"; - case 345 /* JSDocOverloadTag */: + case 346 /* JSDocOverloadTag */: return "overload"; - case 334 /* JSDocAugmentsTag */: + case 335 /* JSDocAugmentsTag */: return "augments"; - case 335 /* JSDocImplementsTag */: + case 336 /* JSDocImplementsTag */: return "implements"; default: return Debug.fail(`Unsupported kind: ${Debug.formatSyntaxKind(kind)}`); @@ -26405,70 +26546,70 @@ function aggregateChildrenFlags(children) { children.transformFlags = subtreeFlags; } function getTransformFlagsSubtreeExclusions(kind) { - if (kind >= 181 /* FirstTypeNode */ && kind <= 204 /* LastTypeNode */) { + if (kind >= 182 /* FirstTypeNode */ && kind <= 205 /* LastTypeNode */) { return -2 /* TypeExcludes */; } switch (kind) { - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 208 /* ArrayLiteralExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 209 /* ArrayLiteralExpression */: return -2147450880 /* ArrayLiteralOrCallOrNewExcludes */; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return -1941676032 /* ModuleExcludes */; - case 168 /* Parameter */: + case 169 /* Parameter */: return -2147483648 /* ParameterExcludes */; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return -2072174592 /* ArrowFunctionExcludes */; - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: return -1937940480 /* FunctionExcludes */; - case 260 /* VariableDeclarationList */: + case 261 /* VariableDeclarationList */: return -2146893824 /* VariableDeclarationListExcludes */; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return -2147344384 /* ClassExcludes */; - case 175 /* Constructor */: + case 176 /* Constructor */: return -1937948672 /* ConstructorExcludes */; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return -2013249536 /* PropertyExcludes */; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return -2005057536 /* MethodOrAccessorExcludes */; case 133 /* AnyKeyword */: case 150 /* NumberKeyword */: - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: case 146 /* NeverKeyword */: case 154 /* StringKeyword */: case 151 /* ObjectKeyword */: case 136 /* BooleanKeyword */: case 155 /* SymbolKeyword */: case 116 /* VoidKeyword */: - case 167 /* TypeParameter */: - case 170 /* PropertySignature */: - case 172 /* MethodSignature */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 180 /* IndexSignature */: - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 168 /* TypeParameter */: + case 171 /* PropertySignature */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 181 /* IndexSignature */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: return -2 /* TypeExcludes */; - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return -2147278848 /* ObjectLiteralExcludes */; - case 298 /* CatchClause */: + case 299 /* CatchClause */: return -2147418112 /* CatchClauseExcludes */; - case 205 /* ObjectBindingPattern */: - case 206 /* ArrayBindingPattern */: + case 206 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: return -2147450880 /* BindingPatternExcludes */; - case 215 /* TypeAssertionExpression */: - case 237 /* SatisfiesExpression */: - case 233 /* AsExpression */: - case 359 /* PartiallyEmittedExpression */: - case 216 /* ParenthesizedExpression */: + case 216 /* TypeAssertionExpression */: + case 238 /* SatisfiesExpression */: + case 234 /* AsExpression */: + case 360 /* PartiallyEmittedExpression */: + case 217 /* ParenthesizedExpression */: case 108 /* SuperKeyword */: return -2147483648 /* OuterExpressionExcludes */; - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return -2147483648 /* PropertyAccessExcludes */; default: return -2147483648 /* NodeExcludes */; @@ -26476,7 +26617,7 @@ function getTransformFlagsSubtreeExclusions(kind) { } var baseFactory = createBaseNodeFactory(); function makeSynthetic(node) { - node.flags |= 8 /* Synthesized */; + node.flags |= 16 /* Synthesized */; return node; } var syntheticFactory = { @@ -26734,11 +26875,13 @@ function createSourceMapSource(fileName, text, skipTrivia2) { return new (SourceMapSource2 || (SourceMapSource2 = objectAllocator.getSourceMapSourceConstructor()))(fileName, text, skipTrivia2); } function setOriginalNode(node, original) { - node.original = original; - if (original) { - const emitNode = original.emitNode; - if (emitNode) - node.emitNode = mergeEmitNode(emitNode, node.emitNode); + if (node.original !== original) { + node.original = original; + if (original) { + const emitNode = original.emitNode; + if (emitNode) + node.emitNode = mergeEmitNode(emitNode, node.emitNode); + } } return node; } @@ -26754,35 +26897,53 @@ function mergeEmitNode(sourceEmitNode, destEmitNode) { constantValue, helpers, startsOnNewLine, - snippetElement + snippetElement, + classThis, + assignedName } = sourceEmitNode; if (!destEmitNode) destEmitNode = {}; - if (leadingComments) - destEmitNode.leadingComments = addRange(leadingComments.slice(), destEmitNode.leadingComments); - if (trailingComments) - destEmitNode.trailingComments = addRange(trailingComments.slice(), destEmitNode.trailingComments); - if (flags) + if (flags) { destEmitNode.flags = flags; - if (internalFlags) + } + if (internalFlags) { destEmitNode.internalFlags = internalFlags & ~8 /* Immutable */; - if (commentRange) + } + if (leadingComments) { + destEmitNode.leadingComments = addRange(leadingComments.slice(), destEmitNode.leadingComments); + } + if (trailingComments) { + destEmitNode.trailingComments = addRange(trailingComments.slice(), destEmitNode.trailingComments); + } + if (commentRange) { destEmitNode.commentRange = commentRange; - if (sourceMapRange) + } + if (sourceMapRange) { destEmitNode.sourceMapRange = sourceMapRange; - if (tokenSourceMapRanges) + } + if (tokenSourceMapRanges) { destEmitNode.tokenSourceMapRanges = mergeTokenSourceMapRanges(tokenSourceMapRanges, destEmitNode.tokenSourceMapRanges); - if (constantValue !== void 0) + } + if (constantValue !== void 0) { destEmitNode.constantValue = constantValue; + } if (helpers) { for (const helper of helpers) { destEmitNode.helpers = appendIfUnique(destEmitNode.helpers, helper); } } - if (startsOnNewLine !== void 0) + if (startsOnNewLine !== void 0) { destEmitNode.startsOnNewLine = startsOnNewLine; - if (snippetElement !== void 0) + } + if (snippetElement !== void 0) { destEmitNode.snippetElement = snippetElement; + } + if (classThis) { + destEmitNode.classThis = classThis; + } + if (assignedName) { + destEmitNode.assignedName = assignedName; + } return destEmitNode; } function mergeTokenSourceMapRanges(sourceRanges, destRanges) { @@ -26798,7 +26959,7 @@ function mergeTokenSourceMapRanges(sourceRanges, destRanges) { function getOrCreateEmitNode(node) { if (!node.emitNode) { if (isParseTreeNode(node)) { - if (node.kind === 311 /* SourceFile */) { + if (node.kind === 312 /* SourceFile */) { return node.emitNode = { annotatedNodes: [node] }; } const sourceFile = getSourceFileOfNode(getParseTreeNode(getSourceFileOfNode(node))) ?? Debug.fail("Could not determine parsed source file."); @@ -27060,7 +27221,10 @@ function createEmitHelperFactory(context) { // Class Fields Helpers createClassPrivateFieldGetHelper, createClassPrivateFieldSetHelper, - createClassPrivateFieldInHelper + createClassPrivateFieldInHelper, + // 'using' helpers + createAddDisposableResourceHelper, + createDisposeResourcesHelper }; function getUnscopedHelperName(name) { return setEmitFlags(factory2.createIdentifier(name), 8192 /* HelperName */ | 4 /* AdviseOnEmitNode */); @@ -27115,10 +27279,12 @@ function createEmitHelperFactory(context) { ); } function createESDecorateClassContextObject(contextIn) { - return factory2.createObjectLiteralExpression([ + const properties = [ factory2.createPropertyAssignment(factory2.createIdentifier("kind"), factory2.createStringLiteral("class")), - factory2.createPropertyAssignment(factory2.createIdentifier("name"), contextIn.name) - ]); + factory2.createPropertyAssignment(factory2.createIdentifier("name"), contextIn.name), + factory2.createPropertyAssignment(factory2.createIdentifier("metadata"), contextIn.metadata) + ]; + return factory2.createObjectLiteralExpression(properties); } function createESDecorateClassElementAccessGetMethod(elementName) { const accessor = elementName.computed ? factory2.createElementAccessExpression(factory2.createIdentifier("obj"), elementName.name) : factory2.createPropertyAccessExpression(factory2.createIdentifier("obj"), elementName.name); @@ -27222,13 +27388,15 @@ function createEmitHelperFactory(context) { return factory2.createObjectLiteralExpression(properties); } function createESDecorateClassElementContextObject(contextIn) { - return factory2.createObjectLiteralExpression([ + const properties = [ factory2.createPropertyAssignment(factory2.createIdentifier("kind"), factory2.createStringLiteral(contextIn.kind)), factory2.createPropertyAssignment(factory2.createIdentifier("name"), contextIn.name.computed ? contextIn.name.name : factory2.createStringLiteralFromNode(contextIn.name.name)), factory2.createPropertyAssignment(factory2.createIdentifier("static"), contextIn.static ? factory2.createTrue() : factory2.createFalse()), factory2.createPropertyAssignment(factory2.createIdentifier("private"), contextIn.private ? factory2.createTrue() : factory2.createFalse()), - factory2.createPropertyAssignment(factory2.createIdentifier("access"), createESDecorateClassElementAccessObject(contextIn.name, contextIn.access)) - ]); + factory2.createPropertyAssignment(factory2.createIdentifier("access"), createESDecorateClassElementAccessObject(contextIn.name, contextIn.access)), + factory2.createPropertyAssignment(factory2.createIdentifier("metadata"), contextIn.metadata) + ]; + return factory2.createObjectLiteralExpression(properties); } function createESDecorateContextObject(contextIn) { return contextIn.kind === "class" ? createESDecorateClassContextObject(contextIn) : createESDecorateClassElementContextObject(contextIn); @@ -27539,6 +27707,24 @@ function createEmitHelperFactory(context) { [state, receiver] ); } + function createAddDisposableResourceHelper(envBinding, value, async) { + context.requestEmitHelper(addDisposableResourceHelper); + return factory2.createCallExpression( + getUnscopedHelperName("__addDisposableResource"), + /*typeArguments*/ + void 0, + [envBinding, value, async ? factory2.createTrue() : factory2.createFalse()] + ); + } + function createDisposeResourcesHelper(envBinding) { + context.requestEmitHelper(disposeResourcesHelper); + return factory2.createCallExpression( + getUnscopedHelperName("__disposeResources"), + /*typeArguments*/ + void 0, + [envBinding] + ); + } } function compareEmitHelpers(x, y) { if (x === y) @@ -27983,6 +28169,63 @@ var classPrivateFieldInHelper = { return typeof state === "function" ? receiver === state : state.has(receiver); };` }; +var addDisposableResourceHelper = { + name: "typescript:addDisposableResource", + importName: "__addDisposableResource", + scoped: false, + text: ` + var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) { + if (value !== null && value !== void 0) { + if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); + var dispose; + if (async) { + if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); + dispose = value[Symbol.asyncDispose]; + } + if (dispose === void 0) { + if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); + dispose = value[Symbol.dispose]; + } + if (typeof dispose !== "function") throw new TypeError("Object not disposable."); + env.stack.push({ value: value, dispose: dispose, async: async }); + } + else if (async) { + env.stack.push({ async: true }); + } + return value; + };` +}; +var disposeResourcesHelper = { + name: "typescript:disposeResources", + importName: "__disposeResources", + scoped: false, + text: ` + var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) { + return function (env) { + function fail(e) { + env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; + env.hasError = true; + } + function next() { + while (env.stack.length) { + var rec = env.stack.pop(); + try { + var result = rec.dispose && rec.dispose.call(rec.value); + if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); + } + catch (e) { + fail(e); + } + } + if (env.hasError) throw env.error; + } + return next(); + }; + })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { + var e = new Error(message); + return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; + });` +}; var allUnscopedEmitHelpers; function getAllUnscopedEmitHelpers() { return allUnscopedEmitHelpers || (allUnscopedEmitHelpers = arrayToMap([ @@ -28013,7 +28256,9 @@ function getAllUnscopedEmitHelpers() { classPrivateFieldSetHelper, classPrivateFieldInHelper, createBindingHelper, - setModuleDefaultHelper + setModuleDefaultHelper, + addDisposableResourceHelper, + disposeResourcesHelper ], (helper) => helper.name)); } var asyncSuperHelper = { @@ -28124,7 +28369,7 @@ function isAbstractModifier(node) { return node.kind === 128 /* AbstractKeyword */; } function isOverrideModifier(node) { - return node.kind === 163 /* OverrideKeyword */; + return node.kind === 164 /* OverrideKeyword */; } function isAccessorModifier(node) { return node.kind === 129 /* AccessorKeyword */; @@ -28139,577 +28384,577 @@ function isCaseKeyword(node) { return node.kind === 84 /* CaseKeyword */; } function isQualifiedName(node) { - return node.kind === 165 /* QualifiedName */; + return node.kind === 166 /* QualifiedName */; } function isComputedPropertyName(node) { - return node.kind === 166 /* ComputedPropertyName */; + return node.kind === 167 /* ComputedPropertyName */; } function isTypeParameterDeclaration(node) { - return node.kind === 167 /* TypeParameter */; + return node.kind === 168 /* TypeParameter */; } function isParameter(node) { - return node.kind === 168 /* Parameter */; + return node.kind === 169 /* Parameter */; } function isDecorator(node) { - return node.kind === 169 /* Decorator */; + return node.kind === 170 /* Decorator */; } function isPropertySignature(node) { - return node.kind === 170 /* PropertySignature */; + return node.kind === 171 /* PropertySignature */; } function isPropertyDeclaration(node) { - return node.kind === 171 /* PropertyDeclaration */; + return node.kind === 172 /* PropertyDeclaration */; } function isMethodSignature(node) { - return node.kind === 172 /* MethodSignature */; + return node.kind === 173 /* MethodSignature */; } function isMethodDeclaration(node) { - return node.kind === 173 /* MethodDeclaration */; + return node.kind === 174 /* MethodDeclaration */; } function isClassStaticBlockDeclaration(node) { - return node.kind === 174 /* ClassStaticBlockDeclaration */; + return node.kind === 175 /* ClassStaticBlockDeclaration */; } function isConstructorDeclaration(node) { - return node.kind === 175 /* Constructor */; + return node.kind === 176 /* Constructor */; } function isGetAccessorDeclaration(node) { - return node.kind === 176 /* GetAccessor */; + return node.kind === 177 /* GetAccessor */; } function isSetAccessorDeclaration(node) { - return node.kind === 177 /* SetAccessor */; + return node.kind === 178 /* SetAccessor */; } function isCallSignatureDeclaration(node) { - return node.kind === 178 /* CallSignature */; + return node.kind === 179 /* CallSignature */; } function isConstructSignatureDeclaration(node) { - return node.kind === 179 /* ConstructSignature */; + return node.kind === 180 /* ConstructSignature */; } function isIndexSignatureDeclaration(node) { - return node.kind === 180 /* IndexSignature */; + return node.kind === 181 /* IndexSignature */; } function isTypePredicateNode(node) { - return node.kind === 181 /* TypePredicate */; + return node.kind === 182 /* TypePredicate */; } function isTypeReferenceNode(node) { - return node.kind === 182 /* TypeReference */; + return node.kind === 183 /* TypeReference */; } function isFunctionTypeNode(node) { - return node.kind === 183 /* FunctionType */; + return node.kind === 184 /* FunctionType */; } function isConstructorTypeNode(node) { - return node.kind === 184 /* ConstructorType */; + return node.kind === 185 /* ConstructorType */; } function isTypeQueryNode(node) { - return node.kind === 185 /* TypeQuery */; + return node.kind === 186 /* TypeQuery */; } function isTypeLiteralNode(node) { - return node.kind === 186 /* TypeLiteral */; + return node.kind === 187 /* TypeLiteral */; } function isArrayTypeNode(node) { - return node.kind === 187 /* ArrayType */; + return node.kind === 188 /* ArrayType */; } function isTupleTypeNode(node) { - return node.kind === 188 /* TupleType */; + return node.kind === 189 /* TupleType */; } function isNamedTupleMember(node) { - return node.kind === 201 /* NamedTupleMember */; + return node.kind === 202 /* NamedTupleMember */; } function isOptionalTypeNode(node) { - return node.kind === 189 /* OptionalType */; + return node.kind === 190 /* OptionalType */; } function isRestTypeNode(node) { - return node.kind === 190 /* RestType */; + return node.kind === 191 /* RestType */; } function isUnionTypeNode(node) { - return node.kind === 191 /* UnionType */; + return node.kind === 192 /* UnionType */; } function isIntersectionTypeNode(node) { - return node.kind === 192 /* IntersectionType */; + return node.kind === 193 /* IntersectionType */; } function isConditionalTypeNode(node) { - return node.kind === 193 /* ConditionalType */; + return node.kind === 194 /* ConditionalType */; } function isInferTypeNode(node) { - return node.kind === 194 /* InferType */; + return node.kind === 195 /* InferType */; } function isParenthesizedTypeNode(node) { - return node.kind === 195 /* ParenthesizedType */; + return node.kind === 196 /* ParenthesizedType */; } function isThisTypeNode(node) { - return node.kind === 196 /* ThisType */; + return node.kind === 197 /* ThisType */; } function isTypeOperatorNode(node) { - return node.kind === 197 /* TypeOperator */; + return node.kind === 198 /* TypeOperator */; } function isIndexedAccessTypeNode(node) { - return node.kind === 198 /* IndexedAccessType */; + return node.kind === 199 /* IndexedAccessType */; } function isMappedTypeNode(node) { - return node.kind === 199 /* MappedType */; + return node.kind === 200 /* MappedType */; } function isLiteralTypeNode(node) { - return node.kind === 200 /* LiteralType */; + return node.kind === 201 /* LiteralType */; } function isImportTypeNode(node) { - return node.kind === 204 /* ImportType */; + return node.kind === 205 /* ImportType */; } function isTemplateLiteralTypeSpan(node) { - return node.kind === 203 /* TemplateLiteralTypeSpan */; + return node.kind === 204 /* TemplateLiteralTypeSpan */; } function isTemplateLiteralTypeNode(node) { - return node.kind === 202 /* TemplateLiteralType */; + return node.kind === 203 /* TemplateLiteralType */; } function isObjectBindingPattern(node) { - return node.kind === 205 /* ObjectBindingPattern */; + return node.kind === 206 /* ObjectBindingPattern */; } function isArrayBindingPattern(node) { - return node.kind === 206 /* ArrayBindingPattern */; + return node.kind === 207 /* ArrayBindingPattern */; } function isBindingElement(node) { - return node.kind === 207 /* BindingElement */; + return node.kind === 208 /* BindingElement */; } function isArrayLiteralExpression(node) { - return node.kind === 208 /* ArrayLiteralExpression */; + return node.kind === 209 /* ArrayLiteralExpression */; } function isObjectLiteralExpression(node) { - return node.kind === 209 /* ObjectLiteralExpression */; + return node.kind === 210 /* ObjectLiteralExpression */; } function isPropertyAccessExpression(node) { - return node.kind === 210 /* PropertyAccessExpression */; + return node.kind === 211 /* PropertyAccessExpression */; } function isElementAccessExpression(node) { - return node.kind === 211 /* ElementAccessExpression */; + return node.kind === 212 /* ElementAccessExpression */; } function isCallExpression(node) { - return node.kind === 212 /* CallExpression */; + return node.kind === 213 /* CallExpression */; } function isNewExpression(node) { - return node.kind === 213 /* NewExpression */; + return node.kind === 214 /* NewExpression */; } function isTaggedTemplateExpression(node) { - return node.kind === 214 /* TaggedTemplateExpression */; + return node.kind === 215 /* TaggedTemplateExpression */; } function isTypeAssertionExpression(node) { - return node.kind === 215 /* TypeAssertionExpression */; + return node.kind === 216 /* TypeAssertionExpression */; } function isParenthesizedExpression(node) { - return node.kind === 216 /* ParenthesizedExpression */; + return node.kind === 217 /* ParenthesizedExpression */; } function isFunctionExpression(node) { - return node.kind === 217 /* FunctionExpression */; + return node.kind === 218 /* FunctionExpression */; } function isArrowFunction(node) { - return node.kind === 218 /* ArrowFunction */; + return node.kind === 219 /* ArrowFunction */; } function isDeleteExpression(node) { - return node.kind === 219 /* DeleteExpression */; + return node.kind === 220 /* DeleteExpression */; } function isTypeOfExpression(node) { - return node.kind === 220 /* TypeOfExpression */; + return node.kind === 221 /* TypeOfExpression */; } function isVoidExpression(node) { - return node.kind === 221 /* VoidExpression */; + return node.kind === 222 /* VoidExpression */; } function isAwaitExpression(node) { - return node.kind === 222 /* AwaitExpression */; + return node.kind === 223 /* AwaitExpression */; } function isPrefixUnaryExpression(node) { - return node.kind === 223 /* PrefixUnaryExpression */; + return node.kind === 224 /* PrefixUnaryExpression */; } function isPostfixUnaryExpression(node) { - return node.kind === 224 /* PostfixUnaryExpression */; + return node.kind === 225 /* PostfixUnaryExpression */; } function isBinaryExpression(node) { - return node.kind === 225 /* BinaryExpression */; + return node.kind === 226 /* BinaryExpression */; } function isConditionalExpression(node) { - return node.kind === 226 /* ConditionalExpression */; + return node.kind === 227 /* ConditionalExpression */; } function isTemplateExpression(node) { - return node.kind === 227 /* TemplateExpression */; + return node.kind === 228 /* TemplateExpression */; } function isYieldExpression(node) { - return node.kind === 228 /* YieldExpression */; + return node.kind === 229 /* YieldExpression */; } function isSpreadElement(node) { - return node.kind === 229 /* SpreadElement */; + return node.kind === 230 /* SpreadElement */; } function isClassExpression(node) { - return node.kind === 230 /* ClassExpression */; + return node.kind === 231 /* ClassExpression */; } function isOmittedExpression(node) { - return node.kind === 231 /* OmittedExpression */; + return node.kind === 232 /* OmittedExpression */; } function isExpressionWithTypeArguments(node) { - return node.kind === 232 /* ExpressionWithTypeArguments */; + return node.kind === 233 /* ExpressionWithTypeArguments */; } function isAsExpression(node) { - return node.kind === 233 /* AsExpression */; + return node.kind === 234 /* AsExpression */; } function isSatisfiesExpression(node) { - return node.kind === 237 /* SatisfiesExpression */; + return node.kind === 238 /* SatisfiesExpression */; } function isNonNullExpression(node) { - return node.kind === 234 /* NonNullExpression */; + return node.kind === 235 /* NonNullExpression */; } function isMetaProperty(node) { - return node.kind === 235 /* MetaProperty */; + return node.kind === 236 /* MetaProperty */; } function isSyntheticExpression(node) { - return node.kind === 236 /* SyntheticExpression */; + return node.kind === 237 /* SyntheticExpression */; } function isPartiallyEmittedExpression(node) { - return node.kind === 359 /* PartiallyEmittedExpression */; + return node.kind === 360 /* PartiallyEmittedExpression */; } function isCommaListExpression(node) { - return node.kind === 360 /* CommaListExpression */; + return node.kind === 361 /* CommaListExpression */; } function isTemplateSpan(node) { - return node.kind === 238 /* TemplateSpan */; + return node.kind === 239 /* TemplateSpan */; } function isSemicolonClassElement(node) { - return node.kind === 239 /* SemicolonClassElement */; + return node.kind === 240 /* SemicolonClassElement */; } function isBlock(node) { - return node.kind === 240 /* Block */; + return node.kind === 241 /* Block */; } function isVariableStatement(node) { - return node.kind === 242 /* VariableStatement */; + return node.kind === 243 /* VariableStatement */; } function isEmptyStatement(node) { - return node.kind === 241 /* EmptyStatement */; + return node.kind === 242 /* EmptyStatement */; } function isExpressionStatement(node) { - return node.kind === 243 /* ExpressionStatement */; + return node.kind === 244 /* ExpressionStatement */; } function isIfStatement(node) { - return node.kind === 244 /* IfStatement */; + return node.kind === 245 /* IfStatement */; } function isDoStatement(node) { - return node.kind === 245 /* DoStatement */; + return node.kind === 246 /* DoStatement */; } function isWhileStatement(node) { - return node.kind === 246 /* WhileStatement */; + return node.kind === 247 /* WhileStatement */; } function isForStatement(node) { - return node.kind === 247 /* ForStatement */; + return node.kind === 248 /* ForStatement */; } function isForInStatement(node) { - return node.kind === 248 /* ForInStatement */; + return node.kind === 249 /* ForInStatement */; } function isForOfStatement(node) { - return node.kind === 249 /* ForOfStatement */; + return node.kind === 250 /* ForOfStatement */; } function isContinueStatement(node) { - return node.kind === 250 /* ContinueStatement */; + return node.kind === 251 /* ContinueStatement */; } function isBreakStatement(node) { - return node.kind === 251 /* BreakStatement */; + return node.kind === 252 /* BreakStatement */; } function isReturnStatement(node) { - return node.kind === 252 /* ReturnStatement */; + return node.kind === 253 /* ReturnStatement */; } function isWithStatement(node) { - return node.kind === 253 /* WithStatement */; + return node.kind === 254 /* WithStatement */; } function isSwitchStatement(node) { - return node.kind === 254 /* SwitchStatement */; + return node.kind === 255 /* SwitchStatement */; } function isLabeledStatement(node) { - return node.kind === 255 /* LabeledStatement */; + return node.kind === 256 /* LabeledStatement */; } function isThrowStatement(node) { - return node.kind === 256 /* ThrowStatement */; + return node.kind === 257 /* ThrowStatement */; } function isTryStatement(node) { - return node.kind === 257 /* TryStatement */; + return node.kind === 258 /* TryStatement */; } function isDebuggerStatement(node) { - return node.kind === 258 /* DebuggerStatement */; + return node.kind === 259 /* DebuggerStatement */; } function isVariableDeclaration(node) { - return node.kind === 259 /* VariableDeclaration */; + return node.kind === 260 /* VariableDeclaration */; } function isVariableDeclarationList(node) { - return node.kind === 260 /* VariableDeclarationList */; + return node.kind === 261 /* VariableDeclarationList */; } function isFunctionDeclaration(node) { - return node.kind === 261 /* FunctionDeclaration */; + return node.kind === 262 /* FunctionDeclaration */; } function isClassDeclaration(node) { - return node.kind === 262 /* ClassDeclaration */; + return node.kind === 263 /* ClassDeclaration */; } function isInterfaceDeclaration(node) { - return node.kind === 263 /* InterfaceDeclaration */; + return node.kind === 264 /* InterfaceDeclaration */; } function isTypeAliasDeclaration(node) { - return node.kind === 264 /* TypeAliasDeclaration */; + return node.kind === 265 /* TypeAliasDeclaration */; } function isEnumDeclaration(node) { - return node.kind === 265 /* EnumDeclaration */; + return node.kind === 266 /* EnumDeclaration */; } function isModuleDeclaration(node) { - return node.kind === 266 /* ModuleDeclaration */; + return node.kind === 267 /* ModuleDeclaration */; } function isModuleBlock(node) { - return node.kind === 267 /* ModuleBlock */; + return node.kind === 268 /* ModuleBlock */; } function isCaseBlock(node) { - return node.kind === 268 /* CaseBlock */; + return node.kind === 269 /* CaseBlock */; } function isNamespaceExportDeclaration(node) { - return node.kind === 269 /* NamespaceExportDeclaration */; + return node.kind === 270 /* NamespaceExportDeclaration */; } function isImportEqualsDeclaration(node) { - return node.kind === 270 /* ImportEqualsDeclaration */; + return node.kind === 271 /* ImportEqualsDeclaration */; } function isImportDeclaration(node) { - return node.kind === 271 /* ImportDeclaration */; + return node.kind === 272 /* ImportDeclaration */; } function isImportClause(node) { - return node.kind === 272 /* ImportClause */; + return node.kind === 273 /* ImportClause */; } function isImportTypeAssertionContainer(node) { - return node.kind === 301 /* ImportTypeAssertionContainer */; + return node.kind === 302 /* ImportTypeAssertionContainer */; } function isAssertClause(node) { - return node.kind === 299 /* AssertClause */; + return node.kind === 300 /* AssertClause */; } function isAssertEntry(node) { - return node.kind === 300 /* AssertEntry */; + return node.kind === 301 /* AssertEntry */; } function isNamespaceImport(node) { - return node.kind === 273 /* NamespaceImport */; + return node.kind === 274 /* NamespaceImport */; } function isNamespaceExport(node) { - return node.kind === 279 /* NamespaceExport */; + return node.kind === 280 /* NamespaceExport */; } function isNamedImports(node) { - return node.kind === 274 /* NamedImports */; + return node.kind === 275 /* NamedImports */; } function isImportSpecifier(node) { - return node.kind === 275 /* ImportSpecifier */; + return node.kind === 276 /* ImportSpecifier */; } function isExportAssignment(node) { - return node.kind === 276 /* ExportAssignment */; + return node.kind === 277 /* ExportAssignment */; } function isExportDeclaration(node) { - return node.kind === 277 /* ExportDeclaration */; + return node.kind === 278 /* ExportDeclaration */; } function isNamedExports(node) { - return node.kind === 278 /* NamedExports */; + return node.kind === 279 /* NamedExports */; } function isExportSpecifier(node) { - return node.kind === 280 /* ExportSpecifier */; + return node.kind === 281 /* ExportSpecifier */; } function isMissingDeclaration(node) { - return node.kind === 281 /* MissingDeclaration */; + return node.kind === 282 /* MissingDeclaration */; } function isNotEmittedStatement(node) { - return node.kind === 358 /* NotEmittedStatement */; + return node.kind === 359 /* NotEmittedStatement */; } function isSyntheticReference(node) { - return node.kind === 361 /* SyntheticReferenceExpression */; + return node.kind === 362 /* SyntheticReferenceExpression */; } function isExternalModuleReference(node) { - return node.kind === 282 /* ExternalModuleReference */; + return node.kind === 283 /* ExternalModuleReference */; } function isJsxElement(node) { - return node.kind === 283 /* JsxElement */; + return node.kind === 284 /* JsxElement */; } function isJsxSelfClosingElement(node) { - return node.kind === 284 /* JsxSelfClosingElement */; + return node.kind === 285 /* JsxSelfClosingElement */; } function isJsxOpeningElement(node) { - return node.kind === 285 /* JsxOpeningElement */; + return node.kind === 286 /* JsxOpeningElement */; } function isJsxClosingElement(node) { - return node.kind === 286 /* JsxClosingElement */; + return node.kind === 287 /* JsxClosingElement */; } function isJsxFragment(node) { - return node.kind === 287 /* JsxFragment */; + return node.kind === 288 /* JsxFragment */; } function isJsxOpeningFragment(node) { - return node.kind === 288 /* JsxOpeningFragment */; + return node.kind === 289 /* JsxOpeningFragment */; } function isJsxClosingFragment(node) { - return node.kind === 289 /* JsxClosingFragment */; + return node.kind === 290 /* JsxClosingFragment */; } function isJsxAttribute(node) { - return node.kind === 290 /* JsxAttribute */; + return node.kind === 291 /* JsxAttribute */; } function isJsxAttributes(node) { - return node.kind === 291 /* JsxAttributes */; + return node.kind === 292 /* JsxAttributes */; } function isJsxSpreadAttribute(node) { - return node.kind === 292 /* JsxSpreadAttribute */; + return node.kind === 293 /* JsxSpreadAttribute */; } function isJsxExpression(node) { - return node.kind === 293 /* JsxExpression */; + return node.kind === 294 /* JsxExpression */; } function isJsxNamespacedName(node) { - return node.kind === 294 /* JsxNamespacedName */; + return node.kind === 295 /* JsxNamespacedName */; } function isCaseClause(node) { - return node.kind === 295 /* CaseClause */; + return node.kind === 296 /* CaseClause */; } function isDefaultClause(node) { - return node.kind === 296 /* DefaultClause */; + return node.kind === 297 /* DefaultClause */; } function isHeritageClause(node) { - return node.kind === 297 /* HeritageClause */; + return node.kind === 298 /* HeritageClause */; } function isCatchClause(node) { - return node.kind === 298 /* CatchClause */; + return node.kind === 299 /* CatchClause */; } function isPropertyAssignment(node) { - return node.kind === 302 /* PropertyAssignment */; + return node.kind === 303 /* PropertyAssignment */; } function isShorthandPropertyAssignment(node) { - return node.kind === 303 /* ShorthandPropertyAssignment */; + return node.kind === 304 /* ShorthandPropertyAssignment */; } function isSpreadAssignment(node) { - return node.kind === 304 /* SpreadAssignment */; + return node.kind === 305 /* SpreadAssignment */; } function isEnumMember(node) { - return node.kind === 305 /* EnumMember */; + return node.kind === 306 /* EnumMember */; } function isUnparsedPrepend(node) { - return node.kind === 307 /* UnparsedPrepend */; + return node.kind === 308 /* UnparsedPrepend */; } function isSourceFile(node) { - return node.kind === 311 /* SourceFile */; + return node.kind === 312 /* SourceFile */; } function isBundle(node) { - return node.kind === 312 /* Bundle */; + return node.kind === 313 /* Bundle */; } function isUnparsedSource(node) { - return node.kind === 313 /* UnparsedSource */; + return node.kind === 314 /* UnparsedSource */; } function isJSDocTypeExpression(node) { - return node.kind === 315 /* JSDocTypeExpression */; + return node.kind === 316 /* JSDocTypeExpression */; } function isJSDocNameReference(node) { - return node.kind === 316 /* JSDocNameReference */; + return node.kind === 317 /* JSDocNameReference */; } function isJSDocMemberName(node) { - return node.kind === 317 /* JSDocMemberName */; + return node.kind === 318 /* JSDocMemberName */; } function isJSDocLink(node) { - return node.kind === 330 /* JSDocLink */; + return node.kind === 331 /* JSDocLink */; } function isJSDocLinkCode(node) { - return node.kind === 331 /* JSDocLinkCode */; + return node.kind === 332 /* JSDocLinkCode */; } function isJSDocLinkPlain(node) { - return node.kind === 332 /* JSDocLinkPlain */; + return node.kind === 333 /* JSDocLinkPlain */; } function isJSDocAllType(node) { - return node.kind === 318 /* JSDocAllType */; + return node.kind === 319 /* JSDocAllType */; } function isJSDocUnknownType(node) { - return node.kind === 319 /* JSDocUnknownType */; + return node.kind === 320 /* JSDocUnknownType */; } function isJSDocNullableType(node) { - return node.kind === 320 /* JSDocNullableType */; + return node.kind === 321 /* JSDocNullableType */; } function isJSDocNonNullableType(node) { - return node.kind === 321 /* JSDocNonNullableType */; + return node.kind === 322 /* JSDocNonNullableType */; } function isJSDocOptionalType(node) { - return node.kind === 322 /* JSDocOptionalType */; + return node.kind === 323 /* JSDocOptionalType */; } function isJSDocFunctionType(node) { - return node.kind === 323 /* JSDocFunctionType */; + return node.kind === 324 /* JSDocFunctionType */; } function isJSDocVariadicType(node) { - return node.kind === 324 /* JSDocVariadicType */; + return node.kind === 325 /* JSDocVariadicType */; } function isJSDocNamepathType(node) { - return node.kind === 325 /* JSDocNamepathType */; + return node.kind === 326 /* JSDocNamepathType */; } function isJSDoc(node) { - return node.kind === 326 /* JSDoc */; + return node.kind === 327 /* JSDoc */; } function isJSDocTypeLiteral(node) { - return node.kind === 328 /* JSDocTypeLiteral */; + return node.kind === 329 /* JSDocTypeLiteral */; } function isJSDocSignature(node) { - return node.kind === 329 /* JSDocSignature */; + return node.kind === 330 /* JSDocSignature */; } function isJSDocAugmentsTag(node) { - return node.kind === 334 /* JSDocAugmentsTag */; + return node.kind === 335 /* JSDocAugmentsTag */; } function isJSDocAuthorTag(node) { - return node.kind === 336 /* JSDocAuthorTag */; + return node.kind === 337 /* JSDocAuthorTag */; } function isJSDocClassTag(node) { - return node.kind === 338 /* JSDocClassTag */; + return node.kind === 339 /* JSDocClassTag */; } function isJSDocCallbackTag(node) { - return node.kind === 344 /* JSDocCallbackTag */; + return node.kind === 345 /* JSDocCallbackTag */; } function isJSDocPublicTag(node) { - return node.kind === 339 /* JSDocPublicTag */; + return node.kind === 340 /* JSDocPublicTag */; } function isJSDocPrivateTag(node) { - return node.kind === 340 /* JSDocPrivateTag */; + return node.kind === 341 /* JSDocPrivateTag */; } function isJSDocProtectedTag(node) { - return node.kind === 341 /* JSDocProtectedTag */; + return node.kind === 342 /* JSDocProtectedTag */; } function isJSDocReadonlyTag(node) { - return node.kind === 342 /* JSDocReadonlyTag */; + return node.kind === 343 /* JSDocReadonlyTag */; } function isJSDocOverrideTag(node) { - return node.kind === 343 /* JSDocOverrideTag */; + return node.kind === 344 /* JSDocOverrideTag */; } function isJSDocOverloadTag(node) { - return node.kind === 345 /* JSDocOverloadTag */; + return node.kind === 346 /* JSDocOverloadTag */; } function isJSDocDeprecatedTag(node) { - return node.kind === 337 /* JSDocDeprecatedTag */; + return node.kind === 338 /* JSDocDeprecatedTag */; } function isJSDocSeeTag(node) { - return node.kind === 353 /* JSDocSeeTag */; + return node.kind === 354 /* JSDocSeeTag */; } function isJSDocEnumTag(node) { - return node.kind === 346 /* JSDocEnumTag */; + return node.kind === 347 /* JSDocEnumTag */; } function isJSDocParameterTag(node) { - return node.kind === 347 /* JSDocParameterTag */; + return node.kind === 348 /* JSDocParameterTag */; } function isJSDocReturnTag(node) { - return node.kind === 348 /* JSDocReturnTag */; + return node.kind === 349 /* JSDocReturnTag */; } function isJSDocThisTag(node) { - return node.kind === 349 /* JSDocThisTag */; + return node.kind === 350 /* JSDocThisTag */; } function isJSDocTypeTag(node) { - return node.kind === 350 /* JSDocTypeTag */; + return node.kind === 351 /* JSDocTypeTag */; } function isJSDocTemplateTag(node) { - return node.kind === 351 /* JSDocTemplateTag */; + return node.kind === 352 /* JSDocTemplateTag */; } function isJSDocTypedefTag(node) { - return node.kind === 352 /* JSDocTypedefTag */; + return node.kind === 353 /* JSDocTypedefTag */; } function isJSDocUnknownTag(node) { - return node.kind === 333 /* JSDocTag */; + return node.kind === 334 /* JSDocTag */; } function isJSDocPropertyTag(node) { - return node.kind === 354 /* JSDocPropertyTag */; + return node.kind === 355 /* JSDocPropertyTag */; } function isJSDocImplementsTag(node) { - return node.kind === 335 /* JSDocImplementsTag */; + return node.kind === 336 /* JSDocImplementsTag */; } function isJSDocSatisfiesTag(node) { - return node.kind === 356 /* JSDocSatisfiesTag */; + return node.kind === 357 /* JSDocSatisfiesTag */; } function isJSDocThrowsTag(node) { - return node.kind === 355 /* JSDocThrowsTag */; + return node.kind === 356 /* JSDocThrowsTag */; } function isSyntaxList(n) { - return n.kind === 357 /* SyntaxList */; + return n.kind === 358 /* SyntaxList */; } // src/compiler/factory/utilities.ts @@ -29017,14 +29262,14 @@ function createExpressionForObjectLiteralElementLike(factory2, node, property, r Debug.failBadSyntaxKind(property.name, "Private identifiers are not allowed in object literals."); } switch (property.kind) { - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return createExpressionForAccessorDeclaration(factory2, node.properties, property, receiver, !!node.multiLine); - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return createExpressionForPropertyAssignment(factory2, property, receiver); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return createExpressionForShorthandPropertyAssignment(factory2, property, receiver); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return createExpressionForMethodDeclaration(factory2, property, receiver); } } @@ -29077,7 +29322,7 @@ function startsWithUseStrict(statements) { return firstStatement !== void 0 && isPrologueDirective(firstStatement) && isUseStrictPrologue(firstStatement); } function isCommaExpression(node) { - return node.kind === 225 /* BinaryExpression */ && node.operatorToken.kind === 28 /* CommaToken */; + return node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 28 /* CommaToken */; } function isCommaSequence(node) { return isCommaExpression(node) || isCommaListExpression(node); @@ -29092,19 +29337,19 @@ function getJSDocTypeAssertionType(node) { } function isOuterExpression(node, kinds = 15 /* All */) { switch (node.kind) { - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: if (kinds & 16 /* ExcludeJSDocTypeAssertion */ && isJSDocTypeAssertion(node)) { return false; } return (kinds & 1 /* Parentheses */) !== 0; - case 215 /* TypeAssertionExpression */: - case 233 /* AsExpression */: - case 232 /* ExpressionWithTypeArguments */: - case 237 /* SatisfiesExpression */: + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: + case 233 /* ExpressionWithTypeArguments */: + case 238 /* SatisfiesExpression */: return (kinds & 2 /* TypeAssertions */) !== 0; - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: return (kinds & 4 /* NonNullAssertions */) !== 0; - case 359 /* PartiallyEmittedExpression */: + case 360 /* PartiallyEmittedExpression */: return (kinds & 8 /* PartiallyEmittedExpressions */) !== 0; } return false; @@ -29241,10 +29486,10 @@ function getLocalNameForExternalImport(factory2, node, sourceFile) { const name = namespaceDeclaration.name; return isGeneratedIdentifier(name) ? name : factory2.createIdentifier(getSourceTextOfNodeFromSourceFile(sourceFile, name) || idText(name)); } - if (node.kind === 271 /* ImportDeclaration */ && node.importClause) { + if (node.kind === 272 /* ImportDeclaration */ && node.importClause) { return factory2.getGeneratedNameForNode(node); } - if (node.kind === 277 /* ExportDeclaration */ && node.moduleSpecifier) { + if (node.kind === 278 /* ExportDeclaration */ && node.moduleSpecifier) { return factory2.getGeneratedNameForNode(node); } return void 0; @@ -29307,11 +29552,11 @@ function getTargetOfBindingOrAssignmentElement(bindingElement) { } if (isObjectLiteralElementLike(bindingElement)) { switch (bindingElement.kind) { - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return getTargetOfBindingOrAssignmentElement(bindingElement.initializer); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return bindingElement.name; - case 304 /* SpreadAssignment */: + case 305 /* SpreadAssignment */: return getTargetOfBindingOrAssignmentElement(bindingElement.expression); } return void 0; @@ -29330,11 +29575,11 @@ function getTargetOfBindingOrAssignmentElement(bindingElement) { } function getRestIndicatorOfBindingOrAssignmentElement(bindingElement) { switch (bindingElement.kind) { - case 168 /* Parameter */: - case 207 /* BindingElement */: + case 169 /* Parameter */: + case 208 /* BindingElement */: return bindingElement.dotDotDotToken; - case 229 /* SpreadElement */: - case 304 /* SpreadAssignment */: + case 230 /* SpreadElement */: + case 305 /* SpreadAssignment */: return bindingElement; } return void 0; @@ -29346,7 +29591,7 @@ function getPropertyNameOfBindingOrAssignmentElement(bindingElement) { } function tryGetPropertyNameOfBindingOrAssignmentElement(bindingElement) { switch (bindingElement.kind) { - case 207 /* BindingElement */: + case 208 /* BindingElement */: if (bindingElement.propertyName) { const propertyName = bindingElement.propertyName; if (isPrivateIdentifier(propertyName)) { @@ -29355,7 +29600,7 @@ function tryGetPropertyNameOfBindingOrAssignmentElement(bindingElement) { return isComputedPropertyName(propertyName) && isStringOrNumericLiteral(propertyName.expression) ? propertyName.expression : propertyName; } break; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: if (bindingElement.name) { const propertyName = bindingElement.name; if (isPrivateIdentifier(propertyName)) { @@ -29364,7 +29609,7 @@ function tryGetPropertyNameOfBindingOrAssignmentElement(bindingElement) { return isComputedPropertyName(propertyName) && isStringOrNumericLiteral(propertyName.expression) ? propertyName.expression : propertyName; } break; - case 304 /* SpreadAssignment */: + case 305 /* SpreadAssignment */: if (bindingElement.name && isPrivateIdentifier(bindingElement.name)) { return Debug.failBadSyntaxKind(bindingElement.name); } @@ -29381,11 +29626,11 @@ function isStringOrNumericLiteral(node) { } function getElementsOfBindingOrAssignmentPattern(name) { switch (name.kind) { - case 205 /* ObjectBindingPattern */: - case 206 /* ArrayBindingPattern */: - case 208 /* ArrayLiteralExpression */: + case 206 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: + case 209 /* ArrayLiteralExpression */: return name.elements; - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return name.properties; } } @@ -29402,19 +29647,19 @@ function getJSDocTypeAliasName(fullName) { } function canHaveIllegalType(node) { const kind = node.kind; - return kind === 175 /* Constructor */ || kind === 177 /* SetAccessor */; + return kind === 176 /* Constructor */ || kind === 178 /* SetAccessor */; } function canHaveIllegalTypeParameters(node) { const kind = node.kind; - return kind === 175 /* Constructor */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */; + return kind === 176 /* Constructor */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; } function canHaveIllegalDecorators(node) { const kind = node.kind; - return kind === 302 /* PropertyAssignment */ || kind === 303 /* ShorthandPropertyAssignment */ || kind === 261 /* FunctionDeclaration */ || kind === 175 /* Constructor */ || kind === 180 /* IndexSignature */ || kind === 174 /* ClassStaticBlockDeclaration */ || kind === 281 /* MissingDeclaration */ || kind === 242 /* VariableStatement */ || kind === 263 /* InterfaceDeclaration */ || kind === 264 /* TypeAliasDeclaration */ || kind === 265 /* EnumDeclaration */ || kind === 266 /* ModuleDeclaration */ || kind === 270 /* ImportEqualsDeclaration */ || kind === 271 /* ImportDeclaration */ || kind === 269 /* NamespaceExportDeclaration */ || kind === 277 /* ExportDeclaration */ || kind === 276 /* ExportAssignment */; + return kind === 303 /* PropertyAssignment */ || kind === 304 /* ShorthandPropertyAssignment */ || kind === 262 /* FunctionDeclaration */ || kind === 176 /* Constructor */ || kind === 181 /* IndexSignature */ || kind === 175 /* ClassStaticBlockDeclaration */ || kind === 282 /* MissingDeclaration */ || kind === 243 /* VariableStatement */ || kind === 264 /* InterfaceDeclaration */ || kind === 265 /* TypeAliasDeclaration */ || kind === 266 /* EnumDeclaration */ || kind === 267 /* ModuleDeclaration */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 272 /* ImportDeclaration */ || kind === 270 /* NamespaceExportDeclaration */ || kind === 278 /* ExportDeclaration */ || kind === 277 /* ExportAssignment */; } function canHaveIllegalModifiers(node) { const kind = node.kind; - return kind === 174 /* ClassStaticBlockDeclaration */ || kind === 302 /* PropertyAssignment */ || kind === 303 /* ShorthandPropertyAssignment */ || kind === 281 /* MissingDeclaration */ || kind === 269 /* NamespaceExportDeclaration */; + return kind === 175 /* ClassStaticBlockDeclaration */ || kind === 303 /* PropertyAssignment */ || kind === 304 /* ShorthandPropertyAssignment */ || kind === 282 /* MissingDeclaration */ || kind === 270 /* NamespaceExportDeclaration */; } function isQuestionOrExclamationToken(node) { return isQuestionToken(node) || isExclamationToken(node); @@ -29692,7 +29937,7 @@ function createAccessorPropertyBackingField(factory2, node, modifiers, initializ initializer ); } -function createAccessorPropertyGetRedirector(factory2, node, modifiers, name) { +function createAccessorPropertyGetRedirector(factory2, node, modifiers, name, receiver = factory2.createThis()) { return factory2.createGetAccessorDeclaration( modifiers, name, @@ -29702,7 +29947,7 @@ function createAccessorPropertyGetRedirector(factory2, node, modifiers, name) { factory2.createBlock([ factory2.createReturnStatement( factory2.createPropertyAccessExpression( - factory2.createThis(), + receiver, factory2.getGeneratedPrivateNameForNode( node.name, /*prefix*/ @@ -29714,7 +29959,7 @@ function createAccessorPropertyGetRedirector(factory2, node, modifiers, name) { ]) ); } -function createAccessorPropertySetRedirector(factory2, node, modifiers, name) { +function createAccessorPropertySetRedirector(factory2, node, modifiers, name, receiver = factory2.createThis()) { return factory2.createSetAccessorDeclaration( modifiers, name, @@ -29729,7 +29974,7 @@ function createAccessorPropertySetRedirector(factory2, node, modifiers, name) { factory2.createExpressionStatement( factory2.createAssignment( factory2.createPropertyAccessExpression( - factory2.createThis(), + receiver, factory2.getGeneratedPrivateNameForNode( node.name, /*prefix*/ @@ -29813,11 +30058,11 @@ function setTextRange(range, location) { } function canHaveModifiers(node) { const kind = node.kind; - return kind === 167 /* TypeParameter */ || kind === 168 /* Parameter */ || kind === 170 /* PropertySignature */ || kind === 171 /* PropertyDeclaration */ || kind === 172 /* MethodSignature */ || kind === 173 /* MethodDeclaration */ || kind === 175 /* Constructor */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */ || kind === 180 /* IndexSignature */ || kind === 184 /* ConstructorType */ || kind === 217 /* FunctionExpression */ || kind === 218 /* ArrowFunction */ || kind === 230 /* ClassExpression */ || kind === 242 /* VariableStatement */ || kind === 261 /* FunctionDeclaration */ || kind === 262 /* ClassDeclaration */ || kind === 263 /* InterfaceDeclaration */ || kind === 264 /* TypeAliasDeclaration */ || kind === 265 /* EnumDeclaration */ || kind === 266 /* ModuleDeclaration */ || kind === 270 /* ImportEqualsDeclaration */ || kind === 271 /* ImportDeclaration */ || kind === 276 /* ExportAssignment */ || kind === 277 /* ExportDeclaration */; + return kind === 168 /* TypeParameter */ || kind === 169 /* Parameter */ || kind === 171 /* PropertySignature */ || kind === 172 /* PropertyDeclaration */ || kind === 173 /* MethodSignature */ || kind === 174 /* MethodDeclaration */ || kind === 176 /* Constructor */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 181 /* IndexSignature */ || kind === 185 /* ConstructorType */ || kind === 218 /* FunctionExpression */ || kind === 219 /* ArrowFunction */ || kind === 231 /* ClassExpression */ || kind === 243 /* VariableStatement */ || kind === 262 /* FunctionDeclaration */ || kind === 263 /* ClassDeclaration */ || kind === 264 /* InterfaceDeclaration */ || kind === 265 /* TypeAliasDeclaration */ || kind === 266 /* EnumDeclaration */ || kind === 267 /* ModuleDeclaration */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 272 /* ImportDeclaration */ || kind === 277 /* ExportAssignment */ || kind === 278 /* ExportDeclaration */; } function canHaveDecorators(node) { const kind = node.kind; - return kind === 168 /* Parameter */ || kind === 171 /* PropertyDeclaration */ || kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */ || kind === 230 /* ClassExpression */ || kind === 262 /* ClassDeclaration */; + return kind === 169 /* Parameter */ || kind === 172 /* PropertyDeclaration */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 231 /* ClassExpression */ || kind === 263 /* ClassDeclaration */; } // src/compiler/parser.ts @@ -29860,7 +30105,7 @@ function isAnExternalModuleIndicatorNode(node) { return canHaveModifiers(node) && hasModifierOfKind(node, 95 /* ExportKeyword */) || isImportEqualsDeclaration(node) && isExternalModuleReference(node.moduleReference) || isImportDeclaration(node) || isExportAssignment(node) || isExportDeclaration(node) ? node : void 0; } function getImportMetaIfNecessary(sourceFile) { - return sourceFile.flags & 4194304 /* PossiblyContainsImportMeta */ ? walkTreeForImportMeta(sourceFile) : void 0; + return sourceFile.flags & 8388608 /* PossiblyContainsImportMeta */ ? walkTreeForImportMeta(sourceFile) : void 0; } function walkTreeForImportMeta(node) { return isImportMeta2(node) ? node : forEachChild(node, walkTreeForImportMeta); @@ -29872,428 +30117,428 @@ function isImportMeta2(node) { return isMetaProperty(node) && node.keywordToken === 102 /* ImportKeyword */ && node.name.escapedText === "meta"; } var forEachChildTable = { - [165 /* QualifiedName */]: function forEachChildInQualifiedName(node, cbNode, _cbNodes) { + [166 /* QualifiedName */]: function forEachChildInQualifiedName(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.left) || visitNode2(cbNode, node.right); }, - [167 /* TypeParameter */]: function forEachChildInTypeParameter(node, cbNode, cbNodes) { + [168 /* TypeParameter */]: function forEachChildInTypeParameter(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.constraint) || visitNode2(cbNode, node.default) || visitNode2(cbNode, node.expression); }, - [303 /* ShorthandPropertyAssignment */]: function forEachChildInShorthandPropertyAssignment(node, cbNode, cbNodes) { + [304 /* ShorthandPropertyAssignment */]: function forEachChildInShorthandPropertyAssignment(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.equalsToken) || visitNode2(cbNode, node.objectAssignmentInitializer); }, - [304 /* SpreadAssignment */]: function forEachChildInSpreadAssignment(node, cbNode, _cbNodes) { + [305 /* SpreadAssignment */]: function forEachChildInSpreadAssignment(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [168 /* Parameter */]: function forEachChildInParameter(node, cbNode, cbNodes) { + [169 /* Parameter */]: function forEachChildInParameter(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.dotDotDotToken) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.initializer); }, - [171 /* PropertyDeclaration */]: function forEachChildInPropertyDeclaration(node, cbNode, cbNodes) { + [172 /* PropertyDeclaration */]: function forEachChildInPropertyDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.initializer); }, - [170 /* PropertySignature */]: function forEachChildInPropertySignature(node, cbNode, cbNodes) { + [171 /* PropertySignature */]: function forEachChildInPropertySignature(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.initializer); }, - [302 /* PropertyAssignment */]: function forEachChildInPropertyAssignment(node, cbNode, cbNodes) { + [303 /* PropertyAssignment */]: function forEachChildInPropertyAssignment(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.initializer); }, - [259 /* VariableDeclaration */]: function forEachChildInVariableDeclaration(node, cbNode, _cbNodes) { + [260 /* VariableDeclaration */]: function forEachChildInVariableDeclaration(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.initializer); }, - [207 /* BindingElement */]: function forEachChildInBindingElement(node, cbNode, _cbNodes) { + [208 /* BindingElement */]: function forEachChildInBindingElement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.dotDotDotToken) || visitNode2(cbNode, node.propertyName) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.initializer); }, - [180 /* IndexSignature */]: function forEachChildInIndexSignature(node, cbNode, cbNodes) { + [181 /* IndexSignature */]: function forEachChildInIndexSignature(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); }, - [184 /* ConstructorType */]: function forEachChildInConstructorType(node, cbNode, cbNodes) { + [185 /* ConstructorType */]: function forEachChildInConstructorType(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); }, - [183 /* FunctionType */]: function forEachChildInFunctionType(node, cbNode, cbNodes) { + [184 /* FunctionType */]: function forEachChildInFunctionType(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); }, - [178 /* CallSignature */]: forEachChildInCallOrConstructSignature, - [179 /* ConstructSignature */]: forEachChildInCallOrConstructSignature, - [173 /* MethodDeclaration */]: function forEachChildInMethodDeclaration(node, cbNode, cbNodes) { + [179 /* CallSignature */]: forEachChildInCallOrConstructSignature, + [180 /* ConstructSignature */]: forEachChildInCallOrConstructSignature, + [174 /* MethodDeclaration */]: function forEachChildInMethodDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.asteriskToken) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); }, - [172 /* MethodSignature */]: function forEachChildInMethodSignature(node, cbNode, cbNodes) { + [173 /* MethodSignature */]: function forEachChildInMethodSignature(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); }, - [175 /* Constructor */]: function forEachChildInConstructor(node, cbNode, cbNodes) { + [176 /* Constructor */]: function forEachChildInConstructor(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); }, - [176 /* GetAccessor */]: function forEachChildInGetAccessor(node, cbNode, cbNodes) { + [177 /* GetAccessor */]: function forEachChildInGetAccessor(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); }, - [177 /* SetAccessor */]: function forEachChildInSetAccessor(node, cbNode, cbNodes) { + [178 /* SetAccessor */]: function forEachChildInSetAccessor(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); }, - [261 /* FunctionDeclaration */]: function forEachChildInFunctionDeclaration(node, cbNode, cbNodes) { + [262 /* FunctionDeclaration */]: function forEachChildInFunctionDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.asteriskToken) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); }, - [217 /* FunctionExpression */]: function forEachChildInFunctionExpression(node, cbNode, cbNodes) { + [218 /* FunctionExpression */]: function forEachChildInFunctionExpression(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.asteriskToken) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); }, - [218 /* ArrowFunction */]: function forEachChildInArrowFunction(node, cbNode, cbNodes) { + [219 /* ArrowFunction */]: function forEachChildInArrowFunction(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.equalsGreaterThanToken) || visitNode2(cbNode, node.body); }, - [174 /* ClassStaticBlockDeclaration */]: function forEachChildInClassStaticBlockDeclaration(node, cbNode, cbNodes) { + [175 /* ClassStaticBlockDeclaration */]: function forEachChildInClassStaticBlockDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.body); }, - [182 /* TypeReference */]: function forEachChildInTypeReference(node, cbNode, cbNodes) { + [183 /* TypeReference */]: function forEachChildInTypeReference(node, cbNode, cbNodes) { return visitNode2(cbNode, node.typeName) || visitNodes(cbNode, cbNodes, node.typeArguments); }, - [181 /* TypePredicate */]: function forEachChildInTypePredicate(node, cbNode, _cbNodes) { + [182 /* TypePredicate */]: function forEachChildInTypePredicate(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.assertsModifier) || visitNode2(cbNode, node.parameterName) || visitNode2(cbNode, node.type); }, - [185 /* TypeQuery */]: function forEachChildInTypeQuery(node, cbNode, cbNodes) { + [186 /* TypeQuery */]: function forEachChildInTypeQuery(node, cbNode, cbNodes) { return visitNode2(cbNode, node.exprName) || visitNodes(cbNode, cbNodes, node.typeArguments); }, - [186 /* TypeLiteral */]: function forEachChildInTypeLiteral(node, cbNode, cbNodes) { + [187 /* TypeLiteral */]: function forEachChildInTypeLiteral(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.members); }, - [187 /* ArrayType */]: function forEachChildInArrayType(node, cbNode, _cbNodes) { + [188 /* ArrayType */]: function forEachChildInArrayType(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.elementType); }, - [188 /* TupleType */]: function forEachChildInTupleType(node, cbNode, cbNodes) { + [189 /* TupleType */]: function forEachChildInTupleType(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.elements); }, - [191 /* UnionType */]: forEachChildInUnionOrIntersectionType, - [192 /* IntersectionType */]: forEachChildInUnionOrIntersectionType, - [193 /* ConditionalType */]: function forEachChildInConditionalType(node, cbNode, _cbNodes) { + [192 /* UnionType */]: forEachChildInUnionOrIntersectionType, + [193 /* IntersectionType */]: forEachChildInUnionOrIntersectionType, + [194 /* ConditionalType */]: function forEachChildInConditionalType(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.checkType) || visitNode2(cbNode, node.extendsType) || visitNode2(cbNode, node.trueType) || visitNode2(cbNode, node.falseType); }, - [194 /* InferType */]: function forEachChildInInferType(node, cbNode, _cbNodes) { + [195 /* InferType */]: function forEachChildInInferType(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.typeParameter); }, - [204 /* ImportType */]: function forEachChildInImportType(node, cbNode, cbNodes) { + [205 /* ImportType */]: function forEachChildInImportType(node, cbNode, cbNodes) { return visitNode2(cbNode, node.argument) || visitNode2(cbNode, node.assertions) || visitNode2(cbNode, node.qualifier) || visitNodes(cbNode, cbNodes, node.typeArguments); }, - [301 /* ImportTypeAssertionContainer */]: function forEachChildInImportTypeAssertionContainer(node, cbNode, _cbNodes) { + [302 /* ImportTypeAssertionContainer */]: function forEachChildInImportTypeAssertionContainer(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.assertClause); }, - [195 /* ParenthesizedType */]: forEachChildInParenthesizedTypeOrTypeOperator, - [197 /* TypeOperator */]: forEachChildInParenthesizedTypeOrTypeOperator, - [198 /* IndexedAccessType */]: function forEachChildInIndexedAccessType(node, cbNode, _cbNodes) { + [196 /* ParenthesizedType */]: forEachChildInParenthesizedTypeOrTypeOperator, + [198 /* TypeOperator */]: forEachChildInParenthesizedTypeOrTypeOperator, + [199 /* IndexedAccessType */]: function forEachChildInIndexedAccessType(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.objectType) || visitNode2(cbNode, node.indexType); }, - [199 /* MappedType */]: function forEachChildInMappedType(node, cbNode, cbNodes) { + [200 /* MappedType */]: function forEachChildInMappedType(node, cbNode, cbNodes) { return visitNode2(cbNode, node.readonlyToken) || visitNode2(cbNode, node.typeParameter) || visitNode2(cbNode, node.nameType) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.type) || visitNodes(cbNode, cbNodes, node.members); }, - [200 /* LiteralType */]: function forEachChildInLiteralType(node, cbNode, _cbNodes) { + [201 /* LiteralType */]: function forEachChildInLiteralType(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.literal); }, - [201 /* NamedTupleMember */]: function forEachChildInNamedTupleMember(node, cbNode, _cbNodes) { + [202 /* NamedTupleMember */]: function forEachChildInNamedTupleMember(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.dotDotDotToken) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.type); }, - [205 /* ObjectBindingPattern */]: forEachChildInObjectOrArrayBindingPattern, - [206 /* ArrayBindingPattern */]: forEachChildInObjectOrArrayBindingPattern, - [208 /* ArrayLiteralExpression */]: function forEachChildInArrayLiteralExpression(node, cbNode, cbNodes) { + [206 /* ObjectBindingPattern */]: forEachChildInObjectOrArrayBindingPattern, + [207 /* ArrayBindingPattern */]: forEachChildInObjectOrArrayBindingPattern, + [209 /* ArrayLiteralExpression */]: function forEachChildInArrayLiteralExpression(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.elements); }, - [209 /* ObjectLiteralExpression */]: function forEachChildInObjectLiteralExpression(node, cbNode, cbNodes) { + [210 /* ObjectLiteralExpression */]: function forEachChildInObjectLiteralExpression(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.properties); }, - [210 /* PropertyAccessExpression */]: function forEachChildInPropertyAccessExpression(node, cbNode, _cbNodes) { + [211 /* PropertyAccessExpression */]: function forEachChildInPropertyAccessExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.questionDotToken) || visitNode2(cbNode, node.name); }, - [211 /* ElementAccessExpression */]: function forEachChildInElementAccessExpression(node, cbNode, _cbNodes) { + [212 /* ElementAccessExpression */]: function forEachChildInElementAccessExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.questionDotToken) || visitNode2(cbNode, node.argumentExpression); }, - [212 /* CallExpression */]: forEachChildInCallOrNewExpression, - [213 /* NewExpression */]: forEachChildInCallOrNewExpression, - [214 /* TaggedTemplateExpression */]: function forEachChildInTaggedTemplateExpression(node, cbNode, cbNodes) { + [213 /* CallExpression */]: forEachChildInCallOrNewExpression, + [214 /* NewExpression */]: forEachChildInCallOrNewExpression, + [215 /* TaggedTemplateExpression */]: function forEachChildInTaggedTemplateExpression(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tag) || visitNode2(cbNode, node.questionDotToken) || visitNodes(cbNode, cbNodes, node.typeArguments) || visitNode2(cbNode, node.template); }, - [215 /* TypeAssertionExpression */]: function forEachChildInTypeAssertionExpression(node, cbNode, _cbNodes) { + [216 /* TypeAssertionExpression */]: function forEachChildInTypeAssertionExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.type) || visitNode2(cbNode, node.expression); }, - [216 /* ParenthesizedExpression */]: function forEachChildInParenthesizedExpression(node, cbNode, _cbNodes) { + [217 /* ParenthesizedExpression */]: function forEachChildInParenthesizedExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [219 /* DeleteExpression */]: function forEachChildInDeleteExpression(node, cbNode, _cbNodes) { + [220 /* DeleteExpression */]: function forEachChildInDeleteExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [220 /* TypeOfExpression */]: function forEachChildInTypeOfExpression(node, cbNode, _cbNodes) { + [221 /* TypeOfExpression */]: function forEachChildInTypeOfExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [221 /* VoidExpression */]: function forEachChildInVoidExpression(node, cbNode, _cbNodes) { + [222 /* VoidExpression */]: function forEachChildInVoidExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [223 /* PrefixUnaryExpression */]: function forEachChildInPrefixUnaryExpression(node, cbNode, _cbNodes) { + [224 /* PrefixUnaryExpression */]: function forEachChildInPrefixUnaryExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.operand); }, - [228 /* YieldExpression */]: function forEachChildInYieldExpression(node, cbNode, _cbNodes) { + [229 /* YieldExpression */]: function forEachChildInYieldExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.asteriskToken) || visitNode2(cbNode, node.expression); }, - [222 /* AwaitExpression */]: function forEachChildInAwaitExpression(node, cbNode, _cbNodes) { + [223 /* AwaitExpression */]: function forEachChildInAwaitExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [224 /* PostfixUnaryExpression */]: function forEachChildInPostfixUnaryExpression(node, cbNode, _cbNodes) { + [225 /* PostfixUnaryExpression */]: function forEachChildInPostfixUnaryExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.operand); }, - [225 /* BinaryExpression */]: function forEachChildInBinaryExpression(node, cbNode, _cbNodes) { + [226 /* BinaryExpression */]: function forEachChildInBinaryExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.left) || visitNode2(cbNode, node.operatorToken) || visitNode2(cbNode, node.right); }, - [233 /* AsExpression */]: function forEachChildInAsExpression(node, cbNode, _cbNodes) { + [234 /* AsExpression */]: function forEachChildInAsExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.type); }, - [234 /* NonNullExpression */]: function forEachChildInNonNullExpression(node, cbNode, _cbNodes) { + [235 /* NonNullExpression */]: function forEachChildInNonNullExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [237 /* SatisfiesExpression */]: function forEachChildInSatisfiesExpression(node, cbNode, _cbNodes) { + [238 /* SatisfiesExpression */]: function forEachChildInSatisfiesExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.type); }, - [235 /* MetaProperty */]: function forEachChildInMetaProperty(node, cbNode, _cbNodes) { + [236 /* MetaProperty */]: function forEachChildInMetaProperty(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name); }, - [226 /* ConditionalExpression */]: function forEachChildInConditionalExpression(node, cbNode, _cbNodes) { + [227 /* ConditionalExpression */]: function forEachChildInConditionalExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.condition) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.whenTrue) || visitNode2(cbNode, node.colonToken) || visitNode2(cbNode, node.whenFalse); }, - [229 /* SpreadElement */]: function forEachChildInSpreadElement(node, cbNode, _cbNodes) { + [230 /* SpreadElement */]: function forEachChildInSpreadElement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [240 /* Block */]: forEachChildInBlock, - [267 /* ModuleBlock */]: forEachChildInBlock, - [311 /* SourceFile */]: function forEachChildInSourceFile(node, cbNode, cbNodes) { + [241 /* Block */]: forEachChildInBlock, + [268 /* ModuleBlock */]: forEachChildInBlock, + [312 /* SourceFile */]: function forEachChildInSourceFile(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.statements) || visitNode2(cbNode, node.endOfFileToken); }, - [242 /* VariableStatement */]: function forEachChildInVariableStatement(node, cbNode, cbNodes) { + [243 /* VariableStatement */]: function forEachChildInVariableStatement(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.declarationList); }, - [260 /* VariableDeclarationList */]: function forEachChildInVariableDeclarationList(node, cbNode, cbNodes) { + [261 /* VariableDeclarationList */]: function forEachChildInVariableDeclarationList(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.declarations); }, - [243 /* ExpressionStatement */]: function forEachChildInExpressionStatement(node, cbNode, _cbNodes) { + [244 /* ExpressionStatement */]: function forEachChildInExpressionStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [244 /* IfStatement */]: function forEachChildInIfStatement(node, cbNode, _cbNodes) { + [245 /* IfStatement */]: function forEachChildInIfStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.thenStatement) || visitNode2(cbNode, node.elseStatement); }, - [245 /* DoStatement */]: function forEachChildInDoStatement(node, cbNode, _cbNodes) { + [246 /* DoStatement */]: function forEachChildInDoStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.statement) || visitNode2(cbNode, node.expression); }, - [246 /* WhileStatement */]: function forEachChildInWhileStatement(node, cbNode, _cbNodes) { + [247 /* WhileStatement */]: function forEachChildInWhileStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.statement); }, - [247 /* ForStatement */]: function forEachChildInForStatement(node, cbNode, _cbNodes) { + [248 /* ForStatement */]: function forEachChildInForStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.initializer) || visitNode2(cbNode, node.condition) || visitNode2(cbNode, node.incrementor) || visitNode2(cbNode, node.statement); }, - [248 /* ForInStatement */]: function forEachChildInForInStatement(node, cbNode, _cbNodes) { + [249 /* ForInStatement */]: function forEachChildInForInStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.initializer) || visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.statement); }, - [249 /* ForOfStatement */]: function forEachChildInForOfStatement(node, cbNode, _cbNodes) { + [250 /* ForOfStatement */]: function forEachChildInForOfStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.awaitModifier) || visitNode2(cbNode, node.initializer) || visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.statement); }, - [250 /* ContinueStatement */]: forEachChildInContinueOrBreakStatement, - [251 /* BreakStatement */]: forEachChildInContinueOrBreakStatement, - [252 /* ReturnStatement */]: function forEachChildInReturnStatement(node, cbNode, _cbNodes) { + [251 /* ContinueStatement */]: forEachChildInContinueOrBreakStatement, + [252 /* BreakStatement */]: forEachChildInContinueOrBreakStatement, + [253 /* ReturnStatement */]: function forEachChildInReturnStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [253 /* WithStatement */]: function forEachChildInWithStatement(node, cbNode, _cbNodes) { + [254 /* WithStatement */]: function forEachChildInWithStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.statement); }, - [254 /* SwitchStatement */]: function forEachChildInSwitchStatement(node, cbNode, _cbNodes) { + [255 /* SwitchStatement */]: function forEachChildInSwitchStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.caseBlock); }, - [268 /* CaseBlock */]: function forEachChildInCaseBlock(node, cbNode, cbNodes) { + [269 /* CaseBlock */]: function forEachChildInCaseBlock(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.clauses); }, - [295 /* CaseClause */]: function forEachChildInCaseClause(node, cbNode, cbNodes) { + [296 /* CaseClause */]: function forEachChildInCaseClause(node, cbNode, cbNodes) { return visitNode2(cbNode, node.expression) || visitNodes(cbNode, cbNodes, node.statements); }, - [296 /* DefaultClause */]: function forEachChildInDefaultClause(node, cbNode, cbNodes) { + [297 /* DefaultClause */]: function forEachChildInDefaultClause(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.statements); }, - [255 /* LabeledStatement */]: function forEachChildInLabeledStatement(node, cbNode, _cbNodes) { + [256 /* LabeledStatement */]: function forEachChildInLabeledStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.label) || visitNode2(cbNode, node.statement); }, - [256 /* ThrowStatement */]: function forEachChildInThrowStatement(node, cbNode, _cbNodes) { + [257 /* ThrowStatement */]: function forEachChildInThrowStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [257 /* TryStatement */]: function forEachChildInTryStatement(node, cbNode, _cbNodes) { + [258 /* TryStatement */]: function forEachChildInTryStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.tryBlock) || visitNode2(cbNode, node.catchClause) || visitNode2(cbNode, node.finallyBlock); }, - [298 /* CatchClause */]: function forEachChildInCatchClause(node, cbNode, _cbNodes) { + [299 /* CatchClause */]: function forEachChildInCatchClause(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.variableDeclaration) || visitNode2(cbNode, node.block); }, - [169 /* Decorator */]: function forEachChildInDecorator(node, cbNode, _cbNodes) { + [170 /* Decorator */]: function forEachChildInDecorator(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [262 /* ClassDeclaration */]: forEachChildInClassDeclarationOrExpression, - [230 /* ClassExpression */]: forEachChildInClassDeclarationOrExpression, - [263 /* InterfaceDeclaration */]: function forEachChildInInterfaceDeclaration(node, cbNode, cbNodes) { + [263 /* ClassDeclaration */]: forEachChildInClassDeclarationOrExpression, + [231 /* ClassExpression */]: forEachChildInClassDeclarationOrExpression, + [264 /* InterfaceDeclaration */]: function forEachChildInInterfaceDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.heritageClauses) || visitNodes(cbNode, cbNodes, node.members); }, - [264 /* TypeAliasDeclaration */]: function forEachChildInTypeAliasDeclaration(node, cbNode, cbNodes) { + [265 /* TypeAliasDeclaration */]: function forEachChildInTypeAliasDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNode2(cbNode, node.type); }, - [265 /* EnumDeclaration */]: function forEachChildInEnumDeclaration(node, cbNode, cbNodes) { + [266 /* EnumDeclaration */]: function forEachChildInEnumDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.members); }, - [305 /* EnumMember */]: function forEachChildInEnumMember(node, cbNode, _cbNodes) { + [306 /* EnumMember */]: function forEachChildInEnumMember(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.initializer); }, - [266 /* ModuleDeclaration */]: function forEachChildInModuleDeclaration(node, cbNode, cbNodes) { + [267 /* ModuleDeclaration */]: function forEachChildInModuleDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.body); }, - [270 /* ImportEqualsDeclaration */]: function forEachChildInImportEqualsDeclaration(node, cbNode, cbNodes) { + [271 /* ImportEqualsDeclaration */]: function forEachChildInImportEqualsDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.moduleReference); }, - [271 /* ImportDeclaration */]: function forEachChildInImportDeclaration(node, cbNode, cbNodes) { + [272 /* ImportDeclaration */]: function forEachChildInImportDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.importClause) || visitNode2(cbNode, node.moduleSpecifier) || visitNode2(cbNode, node.assertClause); }, - [272 /* ImportClause */]: function forEachChildInImportClause(node, cbNode, _cbNodes) { + [273 /* ImportClause */]: function forEachChildInImportClause(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.namedBindings); }, - [299 /* AssertClause */]: function forEachChildInAssertClause(node, cbNode, cbNodes) { + [300 /* AssertClause */]: function forEachChildInAssertClause(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.elements); }, - [300 /* AssertEntry */]: function forEachChildInAssertEntry(node, cbNode, _cbNodes) { + [301 /* AssertEntry */]: function forEachChildInAssertEntry(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.value); }, - [269 /* NamespaceExportDeclaration */]: function forEachChildInNamespaceExportDeclaration(node, cbNode, cbNodes) { + [270 /* NamespaceExportDeclaration */]: function forEachChildInNamespaceExportDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name); }, - [273 /* NamespaceImport */]: function forEachChildInNamespaceImport(node, cbNode, _cbNodes) { + [274 /* NamespaceImport */]: function forEachChildInNamespaceImport(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name); }, - [279 /* NamespaceExport */]: function forEachChildInNamespaceExport(node, cbNode, _cbNodes) { + [280 /* NamespaceExport */]: function forEachChildInNamespaceExport(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name); }, - [274 /* NamedImports */]: forEachChildInNamedImportsOrExports, - [278 /* NamedExports */]: forEachChildInNamedImportsOrExports, - [277 /* ExportDeclaration */]: function forEachChildInExportDeclaration(node, cbNode, cbNodes) { + [275 /* NamedImports */]: forEachChildInNamedImportsOrExports, + [279 /* NamedExports */]: forEachChildInNamedImportsOrExports, + [278 /* ExportDeclaration */]: function forEachChildInExportDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.exportClause) || visitNode2(cbNode, node.moduleSpecifier) || visitNode2(cbNode, node.assertClause); }, - [275 /* ImportSpecifier */]: forEachChildInImportOrExportSpecifier, - [280 /* ExportSpecifier */]: forEachChildInImportOrExportSpecifier, - [276 /* ExportAssignment */]: function forEachChildInExportAssignment(node, cbNode, cbNodes) { + [276 /* ImportSpecifier */]: forEachChildInImportOrExportSpecifier, + [281 /* ExportSpecifier */]: forEachChildInImportOrExportSpecifier, + [277 /* ExportAssignment */]: function forEachChildInExportAssignment(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.expression); }, - [227 /* TemplateExpression */]: function forEachChildInTemplateExpression(node, cbNode, cbNodes) { + [228 /* TemplateExpression */]: function forEachChildInTemplateExpression(node, cbNode, cbNodes) { return visitNode2(cbNode, node.head) || visitNodes(cbNode, cbNodes, node.templateSpans); }, - [238 /* TemplateSpan */]: function forEachChildInTemplateSpan(node, cbNode, _cbNodes) { + [239 /* TemplateSpan */]: function forEachChildInTemplateSpan(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.literal); }, - [202 /* TemplateLiteralType */]: function forEachChildInTemplateLiteralType(node, cbNode, cbNodes) { + [203 /* TemplateLiteralType */]: function forEachChildInTemplateLiteralType(node, cbNode, cbNodes) { return visitNode2(cbNode, node.head) || visitNodes(cbNode, cbNodes, node.templateSpans); }, - [203 /* TemplateLiteralTypeSpan */]: function forEachChildInTemplateLiteralTypeSpan(node, cbNode, _cbNodes) { + [204 /* TemplateLiteralTypeSpan */]: function forEachChildInTemplateLiteralTypeSpan(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.type) || visitNode2(cbNode, node.literal); }, - [166 /* ComputedPropertyName */]: function forEachChildInComputedPropertyName(node, cbNode, _cbNodes) { + [167 /* ComputedPropertyName */]: function forEachChildInComputedPropertyName(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [297 /* HeritageClause */]: function forEachChildInHeritageClause(node, cbNode, cbNodes) { + [298 /* HeritageClause */]: function forEachChildInHeritageClause(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.types); }, - [232 /* ExpressionWithTypeArguments */]: function forEachChildInExpressionWithTypeArguments(node, cbNode, cbNodes) { + [233 /* ExpressionWithTypeArguments */]: function forEachChildInExpressionWithTypeArguments(node, cbNode, cbNodes) { return visitNode2(cbNode, node.expression) || visitNodes(cbNode, cbNodes, node.typeArguments); }, - [282 /* ExternalModuleReference */]: function forEachChildInExternalModuleReference(node, cbNode, _cbNodes) { + [283 /* ExternalModuleReference */]: function forEachChildInExternalModuleReference(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [281 /* MissingDeclaration */]: function forEachChildInMissingDeclaration(node, cbNode, cbNodes) { + [282 /* MissingDeclaration */]: function forEachChildInMissingDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers); }, - [360 /* CommaListExpression */]: function forEachChildInCommaListExpression(node, cbNode, cbNodes) { + [361 /* CommaListExpression */]: function forEachChildInCommaListExpression(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.elements); }, - [283 /* JsxElement */]: function forEachChildInJsxElement(node, cbNode, cbNodes) { + [284 /* JsxElement */]: function forEachChildInJsxElement(node, cbNode, cbNodes) { return visitNode2(cbNode, node.openingElement) || visitNodes(cbNode, cbNodes, node.children) || visitNode2(cbNode, node.closingElement); }, - [287 /* JsxFragment */]: function forEachChildInJsxFragment(node, cbNode, cbNodes) { + [288 /* JsxFragment */]: function forEachChildInJsxFragment(node, cbNode, cbNodes) { return visitNode2(cbNode, node.openingFragment) || visitNodes(cbNode, cbNodes, node.children) || visitNode2(cbNode, node.closingFragment); }, - [284 /* JsxSelfClosingElement */]: forEachChildInJsxOpeningOrSelfClosingElement, - [285 /* JsxOpeningElement */]: forEachChildInJsxOpeningOrSelfClosingElement, - [291 /* JsxAttributes */]: function forEachChildInJsxAttributes(node, cbNode, cbNodes) { + [285 /* JsxSelfClosingElement */]: forEachChildInJsxOpeningOrSelfClosingElement, + [286 /* JsxOpeningElement */]: forEachChildInJsxOpeningOrSelfClosingElement, + [292 /* JsxAttributes */]: function forEachChildInJsxAttributes(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.properties); }, - [290 /* JsxAttribute */]: function forEachChildInJsxAttribute(node, cbNode, _cbNodes) { + [291 /* JsxAttribute */]: function forEachChildInJsxAttribute(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.initializer); }, - [292 /* JsxSpreadAttribute */]: function forEachChildInJsxSpreadAttribute(node, cbNode, _cbNodes) { + [293 /* JsxSpreadAttribute */]: function forEachChildInJsxSpreadAttribute(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [293 /* JsxExpression */]: function forEachChildInJsxExpression(node, cbNode, _cbNodes) { + [294 /* JsxExpression */]: function forEachChildInJsxExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.dotDotDotToken) || visitNode2(cbNode, node.expression); }, - [286 /* JsxClosingElement */]: function forEachChildInJsxClosingElement(node, cbNode, _cbNodes) { + [287 /* JsxClosingElement */]: function forEachChildInJsxClosingElement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.tagName); }, - [294 /* JsxNamespacedName */]: function forEachChildInJsxNamespacedName(node, cbNode, _cbNodes) { + [295 /* JsxNamespacedName */]: function forEachChildInJsxNamespacedName(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.namespace) || visitNode2(cbNode, node.name); }, - [189 /* OptionalType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [190 /* RestType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [315 /* JSDocTypeExpression */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [321 /* JSDocNonNullableType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [320 /* JSDocNullableType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [322 /* JSDocOptionalType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [324 /* JSDocVariadicType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [323 /* JSDocFunctionType */]: function forEachChildInJSDocFunctionType(node, cbNode, cbNodes) { + [190 /* OptionalType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [191 /* RestType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [316 /* JSDocTypeExpression */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [322 /* JSDocNonNullableType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [321 /* JSDocNullableType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [323 /* JSDocOptionalType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [325 /* JSDocVariadicType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [324 /* JSDocFunctionType */]: function forEachChildInJSDocFunctionType(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); }, - [326 /* JSDoc */]: function forEachChildInJSDoc(node, cbNode, cbNodes) { + [327 /* JSDoc */]: function forEachChildInJSDoc(node, cbNode, cbNodes) { return (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)) || visitNodes(cbNode, cbNodes, node.tags); }, - [353 /* JSDocSeeTag */]: function forEachChildInJSDocSeeTag(node, cbNode, cbNodes) { + [354 /* JSDocSeeTag */]: function forEachChildInJSDocSeeTag(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.name) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); }, - [316 /* JSDocNameReference */]: function forEachChildInJSDocNameReference(node, cbNode, _cbNodes) { + [317 /* JSDocNameReference */]: function forEachChildInJSDocNameReference(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name); }, - [317 /* JSDocMemberName */]: function forEachChildInJSDocMemberName(node, cbNode, _cbNodes) { + [318 /* JSDocMemberName */]: function forEachChildInJSDocMemberName(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.left) || visitNode2(cbNode, node.right); }, - [347 /* JSDocParameterTag */]: forEachChildInJSDocParameterOrPropertyTag, - [354 /* JSDocPropertyTag */]: forEachChildInJSDocParameterOrPropertyTag, - [336 /* JSDocAuthorTag */]: function forEachChildInJSDocAuthorTag(node, cbNode, cbNodes) { + [348 /* JSDocParameterTag */]: forEachChildInJSDocParameterOrPropertyTag, + [355 /* JSDocPropertyTag */]: forEachChildInJSDocParameterOrPropertyTag, + [337 /* JSDocAuthorTag */]: function forEachChildInJSDocAuthorTag(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tagName) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); }, - [335 /* JSDocImplementsTag */]: function forEachChildInJSDocImplementsTag(node, cbNode, cbNodes) { + [336 /* JSDocImplementsTag */]: function forEachChildInJSDocImplementsTag(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.class) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); }, - [334 /* JSDocAugmentsTag */]: function forEachChildInJSDocAugmentsTag(node, cbNode, cbNodes) { + [335 /* JSDocAugmentsTag */]: function forEachChildInJSDocAugmentsTag(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.class) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); }, - [351 /* JSDocTemplateTag */]: function forEachChildInJSDocTemplateTag(node, cbNode, cbNodes) { + [352 /* JSDocTemplateTag */]: function forEachChildInJSDocTemplateTag(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.constraint) || visitNodes(cbNode, cbNodes, node.typeParameters) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); }, - [352 /* JSDocTypedefTag */]: function forEachChildInJSDocTypedefTag(node, cbNode, cbNodes) { - return visitNode2(cbNode, node.tagName) || (node.typeExpression && node.typeExpression.kind === 315 /* JSDocTypeExpression */ ? visitNode2(cbNode, node.typeExpression) || visitNode2(cbNode, node.fullName) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)) : visitNode2(cbNode, node.fullName) || visitNode2(cbNode, node.typeExpression) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment))); + [353 /* JSDocTypedefTag */]: function forEachChildInJSDocTypedefTag(node, cbNode, cbNodes) { + return visitNode2(cbNode, node.tagName) || (node.typeExpression && node.typeExpression.kind === 316 /* JSDocTypeExpression */ ? visitNode2(cbNode, node.typeExpression) || visitNode2(cbNode, node.fullName) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)) : visitNode2(cbNode, node.fullName) || visitNode2(cbNode, node.typeExpression) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment))); }, - [344 /* JSDocCallbackTag */]: function forEachChildInJSDocCallbackTag(node, cbNode, cbNodes) { + [345 /* JSDocCallbackTag */]: function forEachChildInJSDocCallbackTag(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.fullName) || visitNode2(cbNode, node.typeExpression) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); }, - [348 /* JSDocReturnTag */]: forEachChildInJSDocTypeLikeTag, - [350 /* JSDocTypeTag */]: forEachChildInJSDocTypeLikeTag, - [349 /* JSDocThisTag */]: forEachChildInJSDocTypeLikeTag, - [346 /* JSDocEnumTag */]: forEachChildInJSDocTypeLikeTag, - [356 /* JSDocSatisfiesTag */]: forEachChildInJSDocTypeLikeTag, - [355 /* JSDocThrowsTag */]: forEachChildInJSDocTypeLikeTag, - [345 /* JSDocOverloadTag */]: forEachChildInJSDocTypeLikeTag, - [329 /* JSDocSignature */]: function forEachChildInJSDocSignature(node, cbNode, _cbNodes) { + [349 /* JSDocReturnTag */]: forEachChildInJSDocTypeLikeTag, + [351 /* JSDocTypeTag */]: forEachChildInJSDocTypeLikeTag, + [350 /* JSDocThisTag */]: forEachChildInJSDocTypeLikeTag, + [347 /* JSDocEnumTag */]: forEachChildInJSDocTypeLikeTag, + [357 /* JSDocSatisfiesTag */]: forEachChildInJSDocTypeLikeTag, + [356 /* JSDocThrowsTag */]: forEachChildInJSDocTypeLikeTag, + [346 /* JSDocOverloadTag */]: forEachChildInJSDocTypeLikeTag, + [330 /* JSDocSignature */]: function forEachChildInJSDocSignature(node, cbNode, _cbNodes) { return forEach(node.typeParameters, cbNode) || forEach(node.parameters, cbNode) || visitNode2(cbNode, node.type); }, - [330 /* JSDocLink */]: forEachChildInJSDocLinkCodeOrPlain, - [331 /* JSDocLinkCode */]: forEachChildInJSDocLinkCodeOrPlain, - [332 /* JSDocLinkPlain */]: forEachChildInJSDocLinkCodeOrPlain, - [328 /* JSDocTypeLiteral */]: function forEachChildInJSDocTypeLiteral(node, cbNode, _cbNodes) { + [331 /* JSDocLink */]: forEachChildInJSDocLinkCodeOrPlain, + [332 /* JSDocLinkCode */]: forEachChildInJSDocLinkCodeOrPlain, + [333 /* JSDocLinkPlain */]: forEachChildInJSDocLinkCodeOrPlain, + [329 /* JSDocTypeLiteral */]: function forEachChildInJSDocTypeLiteral(node, cbNode, _cbNodes) { return forEach(node.jsDocPropertyTags, cbNode); }, - [333 /* JSDocTag */]: forEachChildInJSDocTag, - [338 /* JSDocClassTag */]: forEachChildInJSDocTag, - [339 /* JSDocPublicTag */]: forEachChildInJSDocTag, - [340 /* JSDocPrivateTag */]: forEachChildInJSDocTag, - [341 /* JSDocProtectedTag */]: forEachChildInJSDocTag, - [342 /* JSDocReadonlyTag */]: forEachChildInJSDocTag, - [337 /* JSDocDeprecatedTag */]: forEachChildInJSDocTag, - [343 /* JSDocOverrideTag */]: forEachChildInJSDocTag, - [359 /* PartiallyEmittedExpression */]: forEachChildInPartiallyEmittedExpression + [334 /* JSDocTag */]: forEachChildInJSDocTag, + [339 /* JSDocClassTag */]: forEachChildInJSDocTag, + [340 /* JSDocPublicTag */]: forEachChildInJSDocTag, + [341 /* JSDocPrivateTag */]: forEachChildInJSDocTag, + [342 /* JSDocProtectedTag */]: forEachChildInJSDocTag, + [343 /* JSDocReadonlyTag */]: forEachChildInJSDocTag, + [338 /* JSDocDeprecatedTag */]: forEachChildInJSDocTag, + [344 /* JSDocOverrideTag */]: forEachChildInJSDocTag, + [360 /* PartiallyEmittedExpression */]: forEachChildInPartiallyEmittedExpression }; function forEachChildInCallOrConstructSignature(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); @@ -30348,7 +30593,7 @@ function forEachChildInPartiallyEmittedExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); } function forEachChild(node, cbNode, cbNodes) { - if (node === void 0 || node.kind <= 164 /* LastToken */) { + if (node === void 0 || node.kind <= 165 /* LastToken */) { return; } const fn = forEachChildTable[node.kind]; @@ -30383,7 +30628,7 @@ function forEachChildRecursively(rootNode, cbNode, cbNodes) { continue; return res; } - if (current.kind >= 165 /* FirstNode */) { + if (current.kind >= 166 /* FirstNode */) { for (const child of gatherPossibleChildren(current)) { queue.push(child); parents.push(current); @@ -30464,7 +30709,7 @@ function isExternalModule(file) { } function updateSourceFile(sourceFile, newText, textChangeRange, aggressiveChecks = false) { const newSourceFile = IncrementalParser.updateSourceFile(sourceFile, newText, textChangeRange, aggressiveChecks); - newSourceFile.flags |= sourceFile.flags & 6291456 /* PermanentlySetIncrementalFlags */; + newSourceFile.flags |= sourceFile.flags & 12582912 /* PermanentlySetIncrementalFlags */; return newSourceFile; } function parseIsolatedJSDocComment(content, start2, length2) { @@ -30484,7 +30729,7 @@ var Parser; /*skipTrivia*/ true ); - var disallowInAndDecoratorContext = 4096 /* DisallowInContext */ | 16384 /* DecoratorContext */; + var disallowInAndDecoratorContext = 8192 /* DisallowInContext */ | 32768 /* DecoratorContext */; var NodeConstructor2; var TokenConstructor2; var IdentifierConstructor2; @@ -30729,10 +30974,10 @@ var Parser; switch (scriptKind) { case 1 /* JS */: case 2 /* JSX */: - contextFlags = 262144 /* JavaScriptFile */; + contextFlags = 524288 /* JavaScriptFile */; break; case 6 /* JSON */: - contextFlags = 262144 /* JavaScriptFile */ | 67108864 /* JsonFile */; + contextFlags = 524288 /* JavaScriptFile */ | 134217728 /* JsonFile */; break; default: contextFlags = 0 /* None */; @@ -30764,13 +31009,14 @@ var Parser; function parseSourceFileWorker(languageVersion2, setParentNodes, scriptKind2, setExternalModuleIndicator2) { const isDeclarationFile = isDeclarationFileName(fileName); if (isDeclarationFile) { - contextFlags |= 16777216 /* Ambient */; + contextFlags |= 33554432 /* Ambient */; } sourceFlags = contextFlags; nextToken(); const statements = parseList(0 /* SourceElements */, parseStatement); Debug.assert(token() === 1 /* EndOfFileToken */); - const endOfFileToken = addJSDocComment(parseTokenNode()); + const endHasJSDoc = hasPrecedingJSDocComment(); + const endOfFileToken = withJSDoc(parseTokenNode(), endHasJSDoc); const sourceFile = createSourceFile2(fileName, languageVersion2, scriptKind2, isDeclarationFile, statements, endOfFileToken, sourceFlags, setExternalModuleIndicator2); processCommentPragmas(sourceFile, sourceText); processPragmasIntoFields(sourceFile, reportPragmaDiagnostic); @@ -30790,18 +31036,18 @@ var Parser; parseDiagnostics.push(createDetachedDiagnostic(fileName, pos, end, diagnostic)); } } - function withJSDoc(node, hasJSDoc) { - return hasJSDoc ? addJSDocComment(node) : node; - } let hasDeprecatedTag = false; - function addJSDocComment(node) { + function withJSDoc(node, hasJSDoc) { + if (!hasJSDoc) { + return node; + } Debug.assert(!node.jsDoc); const jsDoc = mapDefined(getJSDocCommentRanges(node, sourceText), (comment) => JSDocParser.parseJSDocComment(node, comment.pos, comment.end - comment.pos)); if (jsDoc.length) node.jsDoc = jsDoc; if (hasDeprecatedTag) { hasDeprecatedTag = false; - node.flags |= 268435456 /* Deprecated */; + node.flags |= 536870912 /* Deprecated */; } return node; } @@ -30826,7 +31072,7 @@ var Parser; } speculationHelper(() => { const savedContextFlags = contextFlags; - contextFlags |= 32768 /* AwaitContext */; + contextFlags |= 65536 /* AwaitContext */; scanner2.resetTokenState(nextStatement.pos); nextToken(); while (token() !== 1 /* EndOfFileToken */) { @@ -30861,7 +31107,7 @@ var Parser; syntaxCursor = savedSyntaxCursor; return factory2.updateSourceFile(sourceFile, setTextRange(factoryCreateNodeArray(statements), sourceFile.statements)); function containsPossibleTopLevelAwait(node) { - return !(node.flags & 32768 /* AwaitContext */) && !!(node.transformFlags & 67108864 /* ContainsPossibleTopLevelAwait */); + return !(node.flags & 65536 /* AwaitContext */) && !!(node.transformFlags & 67108864 /* ContainsPossibleTopLevelAwait */); } function findNextStatementWithAwait(statements2, start3) { for (let i = start3; i < statements2.length; i++) { @@ -30925,16 +31171,16 @@ var Parser; } } function setDisallowInContext(val) { - setContextFlag(val, 4096 /* DisallowInContext */); + setContextFlag(val, 8192 /* DisallowInContext */); } function setYieldContext(val) { - setContextFlag(val, 8192 /* YieldContext */); + setContextFlag(val, 16384 /* YieldContext */); } function setDecoratorContext(val) { - setContextFlag(val, 16384 /* DecoratorContext */); + setContextFlag(val, 32768 /* DecoratorContext */); } function setAwaitContext(val) { - setContextFlag(val, 32768 /* AwaitContext */); + setContextFlag(val, 65536 /* AwaitContext */); } function doOutsideOfContext(context, func) { const contextFlagsToClear = context & contextFlags; @@ -30973,52 +31219,52 @@ var Parser; return func(); } function allowInAnd(func) { - return doOutsideOfContext(4096 /* DisallowInContext */, func); + return doOutsideOfContext(8192 /* DisallowInContext */, func); } function disallowInAnd(func) { - return doInsideOfContext(4096 /* DisallowInContext */, func); + return doInsideOfContext(8192 /* DisallowInContext */, func); } function allowConditionalTypesAnd(func) { - return doOutsideOfContext(65536 /* DisallowConditionalTypesContext */, func); + return doOutsideOfContext(131072 /* DisallowConditionalTypesContext */, func); } function disallowConditionalTypesAnd(func) { - return doInsideOfContext(65536 /* DisallowConditionalTypesContext */, func); + return doInsideOfContext(131072 /* DisallowConditionalTypesContext */, func); } function doInYieldContext(func) { - return doInsideOfContext(8192 /* YieldContext */, func); + return doInsideOfContext(16384 /* YieldContext */, func); } function doInDecoratorContext(func) { - return doInsideOfContext(16384 /* DecoratorContext */, func); + return doInsideOfContext(32768 /* DecoratorContext */, func); } function doInAwaitContext(func) { - return doInsideOfContext(32768 /* AwaitContext */, func); + return doInsideOfContext(65536 /* AwaitContext */, func); } function doOutsideOfAwaitContext(func) { - return doOutsideOfContext(32768 /* AwaitContext */, func); + return doOutsideOfContext(65536 /* AwaitContext */, func); } function doInYieldAndAwaitContext(func) { - return doInsideOfContext(8192 /* YieldContext */ | 32768 /* AwaitContext */, func); + return doInsideOfContext(16384 /* YieldContext */ | 65536 /* AwaitContext */, func); } function doOutsideOfYieldAndAwaitContext(func) { - return doOutsideOfContext(8192 /* YieldContext */ | 32768 /* AwaitContext */, func); + return doOutsideOfContext(16384 /* YieldContext */ | 65536 /* AwaitContext */, func); } function inContext(flags) { return (contextFlags & flags) !== 0; } function inYieldContext() { - return inContext(8192 /* YieldContext */); + return inContext(16384 /* YieldContext */); } function inDisallowInContext() { - return inContext(4096 /* DisallowInContext */); + return inContext(8192 /* DisallowInContext */); } function inDisallowConditionalTypesContext() { - return inContext(65536 /* DisallowConditionalTypesContext */); + return inContext(131072 /* DisallowConditionalTypesContext */); } function inDecoratorContext() { - return inContext(16384 /* DecoratorContext */); + return inContext(32768 /* DecoratorContext */); } function inAwaitContext() { - return inContext(32768 /* AwaitContext */); + return inContext(65536 /* AwaitContext */); } function parseErrorAtCurrentToken(message, ...args) { return parseErrorAt(scanner2.getTokenStart(), scanner2.getTokenEnd(), message, ...args); @@ -31342,7 +31588,7 @@ var Parser; } if (parseErrorBeforeNextFinishedNode) { parseErrorBeforeNextFinishedNode = false; - node.flags |= 131072 /* ThisNodeHasError */; + node.flags |= 262144 /* ThisNodeHasError */; } return node; } @@ -31371,7 +31617,7 @@ var Parser; "", /*isSingleQuote*/ void 0 - ) : kind === 281 /* MissingDeclaration */ ? factory2.createMissingDeclaration() : factoryCreateToken(kind); + ) : kind === 282 /* MissingDeclaration */ ? factory2.createMissingDeclaration() : factoryCreateToken(kind); return finishNode(result, pos); } function internIdentifier(text) { @@ -31588,6 +31834,9 @@ var Parser; case 22 /* HeritageClauses */: return isHeritageClause2(); case 23 /* ImportOrExportSpecifiers */: + if (token() === 161 /* FromKeyword */ && lookAhead(nextTokenIsStringLiteral)) { + return false; + } return tokenIsIdentifierOrKeyword(token()); case 13 /* JsxAttributes */: return tokenIsIdentifierOrKeyword(token()) || token() === 19 /* OpenBraceToken */; @@ -31744,7 +31993,7 @@ var Parser; if (nodeIsMissing(node) || node.intersectsChange || containsParseError(node)) { return void 0; } - const nodeContextFlags = node.flags & 50720768 /* ContextFlags */; + const nodeContextFlags = node.flags & 101441536 /* ContextFlags */; if (nodeContextFlags !== contextFlags) { return void 0; } @@ -31802,14 +32051,14 @@ var Parser; function isReusableClassMember(node) { if (node) { switch (node.kind) { - case 175 /* Constructor */: - case 180 /* IndexSignature */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 171 /* PropertyDeclaration */: - case 239 /* SemicolonClassElement */: + case 176 /* Constructor */: + case 181 /* IndexSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 172 /* PropertyDeclaration */: + case 240 /* SemicolonClassElement */: return true; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: const methodDeclaration = node; const nameIsConstructor = methodDeclaration.name.kind === 80 /* Identifier */ && methodDeclaration.name.escapedText === "constructor"; return !nameIsConstructor; @@ -31820,8 +32069,8 @@ var Parser; function isReusableSwitchClause(node) { if (node) { switch (node.kind) { - case 295 /* CaseClause */: - case 296 /* DefaultClause */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: return true; } } @@ -31830,65 +32079,65 @@ var Parser; function isReusableStatement(node) { if (node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 242 /* VariableStatement */: - case 240 /* Block */: - case 244 /* IfStatement */: - case 243 /* ExpressionStatement */: - case 256 /* ThrowStatement */: - case 252 /* ReturnStatement */: - case 254 /* SwitchStatement */: - case 251 /* BreakStatement */: - case 250 /* ContinueStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 247 /* ForStatement */: - case 246 /* WhileStatement */: - case 253 /* WithStatement */: - case 241 /* EmptyStatement */: - case 257 /* TryStatement */: - case 255 /* LabeledStatement */: - case 245 /* DoStatement */: - case 258 /* DebuggerStatement */: - case 271 /* ImportDeclaration */: - case 270 /* ImportEqualsDeclaration */: - case 277 /* ExportDeclaration */: - case 276 /* ExportAssignment */: - case 266 /* ModuleDeclaration */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 262 /* FunctionDeclaration */: + case 243 /* VariableStatement */: + case 241 /* Block */: + case 245 /* IfStatement */: + case 244 /* ExpressionStatement */: + case 257 /* ThrowStatement */: + case 253 /* ReturnStatement */: + case 255 /* SwitchStatement */: + case 252 /* BreakStatement */: + case 251 /* ContinueStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 248 /* ForStatement */: + case 247 /* WhileStatement */: + case 254 /* WithStatement */: + case 242 /* EmptyStatement */: + case 258 /* TryStatement */: + case 256 /* LabeledStatement */: + case 246 /* DoStatement */: + case 259 /* DebuggerStatement */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 278 /* ExportDeclaration */: + case 277 /* ExportAssignment */: + case 267 /* ModuleDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + case 265 /* TypeAliasDeclaration */: return true; } } return false; } function isReusableEnumMember(node) { - return node.kind === 305 /* EnumMember */; + return node.kind === 306 /* EnumMember */; } function isReusableTypeMember(node) { if (node) { switch (node.kind) { - case 179 /* ConstructSignature */: - case 172 /* MethodSignature */: - case 180 /* IndexSignature */: - case 170 /* PropertySignature */: - case 178 /* CallSignature */: + case 180 /* ConstructSignature */: + case 173 /* MethodSignature */: + case 181 /* IndexSignature */: + case 171 /* PropertySignature */: + case 179 /* CallSignature */: return true; } } return false; } function isReusableVariableDeclaration(node) { - if (node.kind !== 259 /* VariableDeclaration */) { + if (node.kind !== 260 /* VariableDeclaration */) { return false; } const variableDeclarator = node; return variableDeclarator.initializer === void 0; } function isReusableParameter(node) { - if (node.kind !== 168 /* Parameter */) { + if (node.kind !== 169 /* Parameter */) { return false; } const parameter = node; @@ -31946,6 +32195,9 @@ var Parser; case 22 /* HeritageClauses */: return parseErrorAtCurrentToken(Diagnostics.Unexpected_token_expected); case 23 /* ImportOrExportSpecifiers */: + if (token() === 161 /* FromKeyword */) { + return parseErrorAtCurrentToken(Diagnostics._0_expected, "}"); + } return parseErrorAtCurrentToken(Diagnostics.Identifier_expected); case 13 /* JsxAttributes */: return parseErrorAtCurrentToken(Diagnostics.Identifier_expected); @@ -32225,14 +32477,14 @@ var Parser; } function typeHasArrowFunctionBlockingParseError(node) { switch (node.kind) { - case 182 /* TypeReference */: + case 183 /* TypeReference */: return nodeIsMissing(node.typeName); - case 183 /* FunctionType */: - case 184 /* ConstructorType */: { + case 184 /* FunctionType */: + case 185 /* ConstructorType */: { const { parameters, type } = node; return isMissingList(parameters) || typeHasArrowFunctionBlockingParseError(type); } - case 195 /* ParenthesizedType */: + case 196 /* ParenthesizedType */: return typeHasArrowFunctionBlockingParseError(node.type); default: return false; @@ -32524,7 +32776,7 @@ var Parser; function parseSignatureMember(kind) { const pos = getNodePos(); const hasJSDoc = hasPrecedingJSDocComment(); - if (kind === 179 /* ConstructSignature */) { + if (kind === 180 /* ConstructSignature */) { parseExpected(105 /* NewKeyword */); } const typeParameters = parseTypeParameters(); @@ -32535,7 +32787,7 @@ var Parser; true ); parseTypeMemberSemicolon(); - const node = kind === 178 /* CallSignature */ ? factory2.createCallSignature(typeParameters, parameters, type) : factory2.createConstructSignature(typeParameters, parameters, type); + const node = kind === 179 /* CallSignature */ ? factory2.createCallSignature(typeParameters, parameters, type) : factory2.createConstructSignature(typeParameters, parameters, type); return withJSDoc(finishNode(node, pos), hasJSDoc); } function isIndexSignature() { @@ -32620,10 +32872,10 @@ var Parser; } function parseTypeMember() { if (token() === 21 /* OpenParenToken */ || token() === 30 /* LessThanToken */) { - return parseSignatureMember(178 /* CallSignature */); + return parseSignatureMember(179 /* CallSignature */); } if (token() === 105 /* NewKeyword */ && lookAhead(nextTokenIsOpenParenOrLessThan)) { - return parseSignatureMember(179 /* ConstructSignature */); + return parseSignatureMember(180 /* ConstructSignature */); } const pos = getNodePos(); const hasJSDoc = hasPrecedingJSDocComment(); @@ -32632,10 +32884,10 @@ var Parser; false ); if (parseContextualModifier(139 /* GetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 176 /* GetAccessor */, 4 /* Type */); + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* GetAccessor */, 4 /* Type */); } if (parseContextualModifier(153 /* SetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* SetAccessor */, 4 /* Type */); + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 178 /* SetAccessor */, 4 /* Type */); } if (isIndexSignature()) { return parseIndexSignatureDeclaration(pos, hasJSDoc, modifiers); @@ -32844,7 +33096,7 @@ var Parser; return finishNode(factory2.createImportTypeAssertionContainer(clause, multiLine), pos); } function parseImportType() { - sourceFlags |= 2097152 /* PossiblyContainsDynamicImport */; + sourceFlags |= 4194304 /* PossiblyContainsDynamicImport */; const pos = getNodePos(); const isTypeOf = parseOptional(114 /* TypeOfKeyword */); parseExpected(102 /* ImportKeyword */); @@ -32869,7 +33121,7 @@ var Parser; case 159 /* UnknownKeyword */: case 154 /* StringKeyword */: case 150 /* NumberKeyword */: - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: case 155 /* SymbolKeyword */: case 136 /* BooleanKeyword */: case 157 /* UndefinedKeyword */: @@ -32935,7 +33187,7 @@ var Parser; case 159 /* UnknownKeyword */: case 154 /* StringKeyword */: case 150 /* NumberKeyword */: - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: case 136 /* BooleanKeyword */: case 148 /* ReadonlyKeyword */: case 155 /* SymbolKeyword */: @@ -33181,8 +33433,8 @@ var Parser; return finishNode(factory2.createTypePredicateNode(assertsModifier, parameterName, type), pos); } function parseType() { - if (contextFlags & 40960 /* TypeExcludesFlags */) { - return doOutsideOfContext(40960 /* TypeExcludesFlags */, parseType); + if (contextFlags & 81920 /* TypeExcludesFlags */) { + return doOutsideOfContext(81920 /* TypeExcludesFlags */, parseType); } if (isStartOfFunctionTypeOrConstructorType()) { return parseFunctionOrConstructorType(); @@ -33303,12 +33555,14 @@ var Parser; return arrowExpression; } const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); const expr = parseBinaryExpressionOrHigher(0 /* Lowest */); if (expr.kind === 80 /* Identifier */ && token() === 39 /* EqualsGreaterThanToken */) { return parseSimpleArrowFunctionExpression( pos, expr, allowReturnTypeInArrowFunction, + hasJSDoc, /*asyncModifier*/ void 0 ); @@ -33354,7 +33608,7 @@ var Parser; ), pos); } } - function parseSimpleArrowFunctionExpression(pos, identifier, allowReturnTypeInArrowFunction, asyncModifier) { + function parseSimpleArrowFunctionExpression(pos, identifier, allowReturnTypeInArrowFunction, hasJSDoc, asyncModifier) { Debug.assert(token() === 39 /* EqualsGreaterThanToken */, "parseSimpleArrowFunctionExpression should only have been called if we had a =>"); const parameter = factory2.createParameterDeclaration( /*modifiers*/ @@ -33387,7 +33641,7 @@ var Parser; equalsGreaterThanToken, body ); - return addJSDocComment(finishNode(node, pos)); + return withJSDoc(finishNode(node, pos), hasJSDoc); } function tryParseParenthesizedArrowFunctionExpression(allowReturnTypeInArrowFunction) { const triState = isParenthesizedArrowFunctionExpression(); @@ -33515,9 +33769,10 @@ var Parser; if (token() === 134 /* AsyncKeyword */) { if (lookAhead(isUnParenthesizedAsyncArrowFunctionWorker) === 1 /* True */) { const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); const asyncModifier = parseModifiersForArrowFunction(); const expr = parseBinaryExpressionOrHigher(0 /* Lowest */); - return parseSimpleArrowFunctionExpression(pos, expr, allowReturnTypeInArrowFunction, asyncModifier); + return parseSimpleArrowFunctionExpression(pos, expr, allowReturnTypeInArrowFunction, hasJSDoc, asyncModifier); } } return void 0; @@ -33571,7 +33826,7 @@ var Parser; return void 0; } let unwrappedType = type; - while ((unwrappedType == null ? void 0 : unwrappedType.kind) === 195 /* ParenthesizedType */) { + while ((unwrappedType == null ? void 0 : unwrappedType.kind) === 196 /* ParenthesizedType */) { unwrappedType = unwrappedType.type; } const hasJSDocFunctionType = unwrappedType && isJSDocFunctionType(unwrappedType); @@ -33634,7 +33889,7 @@ var Parser; return parseBinaryExpressionRest(precedence, leftOperand, pos); } function isInOrOfKeyword(t) { - return t === 103 /* InKeyword */ || t === 164 /* OfKeyword */; + return t === 103 /* InKeyword */ || t === 165 /* OfKeyword */; } function parseBinaryExpressionRest(precedence, leftOperand, pos) { while (true) { @@ -33716,7 +33971,7 @@ var Parser; if (token() === 43 /* AsteriskAsteriskToken */) { const pos = skipTrivia(sourceText, simpleUnaryExpression.pos); const { end } = simpleUnaryExpression; - if (simpleUnaryExpression.kind === 215 /* TypeAssertionExpression */) { + if (simpleUnaryExpression.kind === 216 /* TypeAssertionExpression */) { parseErrorAt(pos, end, Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses); } else { Debug.assert(isKeywordOrPunctuation(unaryOperator)); @@ -33803,13 +34058,13 @@ var Parser; let expression; if (token() === 102 /* ImportKeyword */) { if (lookAhead(nextTokenIsOpenParenOrLessThan)) { - sourceFlags |= 2097152 /* PossiblyContainsDynamicImport */; + sourceFlags |= 4194304 /* PossiblyContainsDynamicImport */; expression = parseTokenNode(); } else if (lookAhead(nextTokenIsDot)) { nextToken(); nextToken(); expression = finishNode(factory2.createMetaProperty(102 /* ImportKeyword */, parseIdentifierName()), pos); - sourceFlags |= 4194304 /* PossiblyContainsImportMeta */; + sourceFlags |= 8388608 /* PossiblyContainsImportMeta */; } else { expression = parseMemberExpressionOrHigher(); } @@ -33856,11 +34111,11 @@ var Parser; const pos = getNodePos(); const opening = parseJsxOpeningOrSelfClosingElementOrOpeningFragment(inExpressionContext); let result; - if (opening.kind === 285 /* JsxOpeningElement */) { + if (opening.kind === 286 /* JsxOpeningElement */) { let children = parseJsxChildren(opening); let closingElement; const lastChild = children[children.length - 1]; - if ((lastChild == null ? void 0 : lastChild.kind) === 283 /* JsxElement */ && !tagNamesAreEquivalent(lastChild.openingElement.tagName, lastChild.closingElement.tagName) && tagNamesAreEquivalent(opening.tagName, lastChild.closingElement.tagName)) { + if ((lastChild == null ? void 0 : lastChild.kind) === 284 /* JsxElement */ && !tagNamesAreEquivalent(lastChild.openingElement.tagName, lastChild.closingElement.tagName) && tagNamesAreEquivalent(opening.tagName, lastChild.closingElement.tagName)) { const end = lastChild.children.end; const newLast = finishNode( factory2.createJsxElement( @@ -33884,10 +34139,10 @@ var Parser; } } result = finishNode(factory2.createJsxElement(opening, children, closingElement), pos); - } else if (opening.kind === 288 /* JsxOpeningFragment */) { + } else if (opening.kind === 289 /* JsxOpeningFragment */) { result = finishNode(factory2.createJsxFragment(opening, parseJsxChildren(opening), parseJsxClosingFragment(inExpressionContext)), pos); } else { - Debug.assert(opening.kind === 284 /* JsxSelfClosingElement */); + Debug.assert(opening.kind === 285 /* JsxSelfClosingElement */); result = opening; } if (!mustBeUnary && inExpressionContext && token() === 30 /* LessThanToken */) { @@ -33960,7 +34215,7 @@ var Parser; if (!child) break; list.push(child); - if (isJsxOpeningElement(openingTag) && (child == null ? void 0 : child.kind) === 283 /* JsxElement */ && !tagNamesAreEquivalent(child.openingElement.tagName, child.closingElement.tagName) && tagNamesAreEquivalent(openingTag.tagName, child.closingElement.tagName)) { + if (isJsxOpeningElement(openingTag) && (child == null ? void 0 : child.kind) === 284 /* JsxElement */ && !tagNamesAreEquivalent(child.openingElement.tagName, child.closingElement.tagName) && tagNamesAreEquivalent(openingTag.tagName, child.closingElement.tagName)) { break; } } @@ -33979,7 +34234,7 @@ var Parser; return finishNode(factory2.createJsxOpeningFragment(), pos); } const tagName = parseJsxElementName(); - const typeArguments = (contextFlags & 262144 /* JavaScriptFile */) === 0 ? tryParseTypeArguments() : void 0; + const typeArguments = (contextFlags & 524288 /* JavaScriptFile */) === 0 ? tryParseTypeArguments() : void 0; const attributes = parseJsxAttributes(); let node; if (token() === 32 /* GreaterThanToken */) { @@ -34157,17 +34412,17 @@ var Parser; return token() === 29 /* QuestionDotToken */ && lookAhead(nextTokenIsIdentifierOrKeywordOrOpenBracketOrTemplate); } function tryReparseOptionalChain(node) { - if (node.flags & 32 /* OptionalChain */) { + if (node.flags & 64 /* OptionalChain */) { return true; } if (isNonNullExpression(node)) { let expr = node.expression; - while (isNonNullExpression(expr) && !(expr.flags & 32 /* OptionalChain */)) { + while (isNonNullExpression(expr) && !(expr.flags & 64 /* OptionalChain */)) { expr = expr.expression; } - if (expr.flags & 32 /* OptionalChain */) { + if (expr.flags & 64 /* OptionalChain */) { while (isNonNullExpression(node)) { - node.flags |= 32 /* OptionalChain */; + node.flags |= 64 /* OptionalChain */; node = node.expression; } return true; @@ -34233,7 +34488,7 @@ var Parser; continue; } if (isTemplateStartOfTaggedTemplate()) { - expression = !questionDotToken && expression.kind === 232 /* ExpressionWithTypeArguments */ ? parseTaggedTemplateRest(pos, expression.expression, questionDotToken, expression.typeArguments) : parseTaggedTemplateRest( + expression = !questionDotToken && expression.kind === 233 /* ExpressionWithTypeArguments */ ? parseTaggedTemplateRest(pos, expression.expression, questionDotToken, expression.typeArguments) : parseTaggedTemplateRest( pos, expression, questionDotToken, @@ -34272,8 +34527,8 @@ var Parser; true ) ); - if (questionDotToken || tag.flags & 32 /* OptionalChain */) { - tagExpression.flags |= 32 /* OptionalChain */; + if (questionDotToken || tag.flags & 64 /* OptionalChain */) { + tagExpression.flags |= 64 /* OptionalChain */; } tagExpression.questionDotToken = questionDotToken; return finishNode(tagExpression, pos); @@ -34296,7 +34551,7 @@ var Parser; } } if (typeArguments || token() === 21 /* OpenParenToken */) { - if (!questionDotToken && expression.kind === 232 /* ExpressionWithTypeArguments */) { + if (!questionDotToken && expression.kind === 233 /* ExpressionWithTypeArguments */) { typeArguments = expression.typeArguments; expression = expression.expression; } @@ -34325,7 +34580,7 @@ var Parser; return result; } function parseTypeArgumentsInExpression() { - if ((contextFlags & 262144 /* JavaScriptFile */) !== 0) { + if ((contextFlags & 524288 /* JavaScriptFile */) !== 0) { return void 0; } if (reScanLessThanToken() !== 30 /* LessThanToken */) { @@ -34457,10 +34712,10 @@ var Parser; true ); if (parseContextualModifier(139 /* GetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 176 /* GetAccessor */, 0 /* None */); + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* GetAccessor */, 0 /* None */); } if (parseContextualModifier(153 /* SetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* SetAccessor */, 0 /* None */); + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 178 /* SetAccessor */, 0 /* None */); } const asteriskToken = parseOptionalToken(42 /* AsteriskToken */); const tokenIsIdentifier = isIdentifier2(); @@ -34554,7 +34809,7 @@ var Parser; false ); let typeArguments; - if (expression.kind === 232 /* ExpressionWithTypeArguments */) { + if (expression.kind === 233 /* ExpressionWithTypeArguments */) { typeArguments = expression.typeArguments; expression = expression.expression; } @@ -34664,7 +34919,7 @@ var Parser; parseExpected(21 /* OpenParenToken */); let initializer; if (token() !== 27 /* SemicolonToken */) { - if (token() === 115 /* VarKeyword */ || token() === 121 /* LetKeyword */ || token() === 87 /* ConstKeyword */) { + if (token() === 115 /* VarKeyword */ || token() === 121 /* LetKeyword */ || token() === 87 /* ConstKeyword */ || token() === 160 /* UsingKeyword */ && lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLineDisallowOf) || token() === 135 /* AwaitKeyword */ && lookAhead(nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLineDisallowOf)) { initializer = parseVariableDeclarationList( /*inForStatementInitializer*/ true @@ -34674,7 +34929,7 @@ var Parser; } } let node; - if (awaitToken ? parseExpected(164 /* OfKeyword */) : parseOptional(164 /* OfKeyword */)) { + if (awaitToken ? parseExpected(165 /* OfKeyword */) : parseOptional(165 /* OfKeyword */)) { const expression = allowInAnd(() => parseAssignmentExpressionOrHigher( /*allowReturnTypeInArrowFunction*/ true @@ -34698,10 +34953,10 @@ var Parser; function parseBreakOrContinueStatement(kind) { const pos = getNodePos(); const hasJSDoc = hasPrecedingJSDocComment(); - parseExpected(kind === 251 /* BreakStatement */ ? 83 /* BreakKeyword */ : 88 /* ContinueKeyword */); + parseExpected(kind === 252 /* BreakStatement */ ? 83 /* BreakKeyword */ : 88 /* ContinueKeyword */); const label = canParseSemicolon() ? void 0 : parseIdentifier(); parseSemicolon(); - const node = kind === 251 /* BreakStatement */ ? factory2.createBreakStatement(label) : factory2.createContinueStatement(label); + const node = kind === 252 /* BreakStatement */ ? factory2.createBreakStatement(label) : factory2.createContinueStatement(label); return withJSDoc(finishNode(node, pos), hasJSDoc); } function parseReturnStatement() { @@ -34720,7 +34975,7 @@ var Parser; const openParenParsed = parseExpected(21 /* OpenParenToken */); const expression = allowInAnd(parseExpression); parseExpectedMatchingBrackets(21 /* OpenParenToken */, 22 /* CloseParenToken */, openParenParsed, openParenPosition); - const statement = doInsideOfContext(33554432 /* InWithStatement */, parseStatement); + const statement = doInsideOfContext(67108864 /* InWithStatement */, parseStatement); return withJSDoc(finishNode(factory2.createWithStatement(expression, statement), pos), hasJSDoc); } function parseCaseClause() { @@ -34860,6 +35115,10 @@ var Parser; case 86 /* ClassKeyword */: case 94 /* EnumKeyword */: return true; + case 160 /* UsingKeyword */: + return isUsingDeclaration(); + case 135 /* AwaitKeyword */: + return isAwaitUsingDeclaration(); case 120 /* InterfaceKeyword */: case 156 /* TypeKeyword */: return nextTokenIsIdentifierOnSameLine(); @@ -34874,12 +35133,16 @@ var Parser; case 124 /* ProtectedKeyword */: case 125 /* PublicKeyword */: case 148 /* ReadonlyKeyword */: + const previousToken = token(); nextToken(); if (scanner2.hasPrecedingLineBreak()) { return false; } + if (previousToken === 138 /* DeclareKeyword */ && token() === 156 /* TypeKeyword */) { + return true; + } continue; - case 161 /* GlobalKeyword */: + case 162 /* GlobalKeyword */: nextToken(); return token() === 19 /* OpenBraceToken */ || token() === 80 /* Identifier */ || token() === 95 /* ExportKeyword */; case 102 /* ImportKeyword */: @@ -34912,6 +35175,7 @@ var Parser; case 19 /* OpenBraceToken */: case 115 /* VarKeyword */: case 121 /* LetKeyword */: + case 160 /* UsingKeyword */: case 100 /* FunctionKeyword */: case 86 /* ClassKeyword */: case 94 /* EnumKeyword */: @@ -34941,7 +35205,7 @@ var Parser; case 144 /* ModuleKeyword */: case 145 /* NamespaceKeyword */: case 156 /* TypeKeyword */: - case 161 /* GlobalKeyword */: + case 162 /* GlobalKeyword */: return true; case 129 /* AccessorKeyword */: case 125 /* PublicKeyword */: @@ -34961,6 +35225,36 @@ var Parser; function isLetDeclaration() { return lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuring); } + function nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLineDisallowOf() { + return nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine( + /*disallowOf*/ + true + ); + } + function nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine(disallowOf) { + nextToken(); + if (disallowOf && token() === 165 /* OfKeyword */) + return false; + return (isBindingIdentifier() || token() === 19 /* OpenBraceToken */) && !scanner2.hasPrecedingLineBreak(); + } + function isUsingDeclaration() { + return lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine); + } + function nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLineDisallowOf() { + return nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLine( + /*disallowOf*/ + true + ); + } + function nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLine(disallowOf) { + if (nextToken() === 160 /* UsingKeyword */) { + return nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine(disallowOf); + } + return false; + } + function isAwaitUsingDeclaration() { + return lookAhead(nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLine); + } function parseStatement() { switch (token()) { case 27 /* SemicolonToken */: @@ -34987,6 +35281,26 @@ var Parser; ); } break; + case 135 /* AwaitKeyword */: + if (isAwaitUsingDeclaration()) { + return parseVariableStatement( + getNodePos(), + hasPrecedingJSDocComment(), + /*modifiers*/ + void 0 + ); + } + break; + case 160 /* UsingKeyword */: + if (isUsingDeclaration()) { + return parseVariableStatement( + getNodePos(), + hasPrecedingJSDocComment(), + /*modifiers*/ + void 0 + ); + } + break; case 100 /* FunctionKeyword */: return parseFunctionDeclaration( getNodePos(), @@ -35010,9 +35324,9 @@ var Parser; case 99 /* ForKeyword */: return parseForOrForInOrForOfStatement(); case 88 /* ContinueKeyword */: - return parseBreakOrContinueStatement(250 /* ContinueStatement */); + return parseBreakOrContinueStatement(251 /* ContinueStatement */); case 83 /* BreakKeyword */: - return parseBreakOrContinueStatement(251 /* BreakStatement */); + return parseBreakOrContinueStatement(252 /* BreakStatement */); case 107 /* ReturnKeyword */: return parseReturnStatement(); case 118 /* WithKeyword */: @@ -35046,7 +35360,7 @@ var Parser; case 129 /* AccessorKeyword */: case 126 /* StaticKeyword */: case 148 /* ReadonlyKeyword */: - case 161 /* GlobalKeyword */: + case 162 /* GlobalKeyword */: if (isStartOfDeclaration()) { return parseDeclaration(); } @@ -35071,15 +35385,15 @@ var Parser; return node; } for (const m of modifiers) { - m.flags |= 16777216 /* Ambient */; + m.flags |= 33554432 /* Ambient */; } - return doInsideOfContext(16777216 /* Ambient */, () => parseDeclarationWorker(pos, hasJSDoc, modifiers)); + return doInsideOfContext(33554432 /* Ambient */, () => parseDeclarationWorker(pos, hasJSDoc, modifiers)); } else { return parseDeclarationWorker(pos, hasJSDoc, modifiers); } } function tryReuseAmbientDeclaration(pos) { - return doInsideOfContext(16777216 /* Ambient */, () => { + return doInsideOfContext(33554432 /* Ambient */, () => { const node = currentNode(parsingContext, pos); if (node) { return consumeNode(node); @@ -35091,6 +35405,8 @@ var Parser; case 115 /* VarKeyword */: case 121 /* LetKeyword */: case 87 /* ConstKeyword */: + case 160 /* UsingKeyword */: + case 135 /* AwaitKeyword */: return parseVariableStatement(pos, hasJSDoc, modifiersIn); case 100 /* FunctionKeyword */: return parseFunctionDeclaration(pos, hasJSDoc, modifiersIn); @@ -35102,7 +35418,7 @@ var Parser; return parseTypeAliasDeclaration(pos, hasJSDoc, modifiersIn); case 94 /* EnumKeyword */: return parseEnumDeclaration(pos, hasJSDoc, modifiersIn); - case 161 /* GlobalKeyword */: + case 162 /* GlobalKeyword */: case 144 /* ModuleKeyword */: case 145 /* NamespaceKeyword */: return parseModuleDeclaration(pos, hasJSDoc, modifiersIn); @@ -35122,7 +35438,7 @@ var Parser; default: if (modifiersIn) { const missing = createMissingNode( - 281 /* MissingDeclaration */, + 282 /* MissingDeclaration */, /*reportAtCurrentPosition*/ true, Diagnostics.Declaration_expected @@ -35134,6 +35450,9 @@ var Parser; return void 0; } } + function nextTokenIsStringLiteral() { + return nextToken() === 11 /* StringLiteral */; + } function nextTokenIsIdentifierOrStringLiteralOnSameLine() { nextToken(); return !scanner2.hasPrecedingLineBreak() && (isIdentifier2() || token() === 11 /* StringLiteral */); @@ -35186,14 +35505,14 @@ var Parser; function parseObjectBindingPattern() { const pos = getNodePos(); parseExpected(19 /* OpenBraceToken */); - const elements = parseDelimitedList(9 /* ObjectBindingElements */, parseObjectBindingElement); + const elements = allowInAnd(() => parseDelimitedList(9 /* ObjectBindingElements */, parseObjectBindingElement)); parseExpected(20 /* CloseBraceToken */); return finishNode(factory2.createObjectBindingPattern(elements), pos); } function parseArrayBindingPattern() { const pos = getNodePos(); parseExpected(23 /* OpenBracketToken */); - const elements = parseDelimitedList(10 /* ArrayBindingElements */, parseArrayBindingElement); + const elements = allowInAnd(() => parseDelimitedList(10 /* ArrayBindingElements */, parseArrayBindingElement)); parseExpected(24 /* CloseBracketToken */); return finishNode(factory2.createArrayBindingPattern(elements), pos); } @@ -35240,12 +35559,20 @@ var Parser; case 87 /* ConstKeyword */: flags |= 2 /* Const */; break; + case 160 /* UsingKeyword */: + flags |= 4 /* Using */; + break; + case 135 /* AwaitKeyword */: + Debug.assert(isAwaitUsingDeclaration()); + flags |= 6 /* AwaitUsing */; + nextToken(); + break; default: Debug.fail(); } nextToken(); let declarations; - if (token() === 164 /* OfKeyword */ && lookAhead(canFollowContextualOfKeyword)) { + if (token() === 165 /* OfKeyword */ && lookAhead(canFollowContextualOfKeyword)) { declarations = createMissingList(); } else { const savedDisallowIn = inDisallowInContext(); @@ -35351,7 +35678,7 @@ var Parser; function parsePropertyDeclaration(pos, hasJSDoc, modifiers, name, questionToken) { const exclamationToken = !questionToken && !scanner2.hasPrecedingLineBreak() ? parseOptionalToken(54 /* ExclamationToken */) : void 0; const type = parseTypeAnnotation(); - const initializer = doOutsideOfContext(8192 /* YieldContext */ | 32768 /* AwaitContext */ | 4096 /* DisallowInContext */, parseInitializer); + const initializer = doOutsideOfContext(16384 /* YieldContext */ | 65536 /* AwaitContext */ | 8192 /* DisallowInContext */, parseInitializer); parseSemicolonAfterPropertyName(name, type, initializer); const node = factory2.createPropertyDeclaration( modifiers, @@ -35391,7 +35718,7 @@ var Parser; false ); const body = parseFunctionBlockOrSemicolon(flags); - const node = kind === 176 /* GetAccessor */ ? factory2.createGetAccessorDeclaration(modifiers, name, parameters, type, body) : factory2.createSetAccessorDeclaration(modifiers, name, parameters, body); + const node = kind === 177 /* GetAccessor */ ? factory2.createGetAccessorDeclaration(modifiers, name, parameters, type, body) : factory2.createSetAccessorDeclaration(modifiers, name, parameters, body); node.typeParameters = typeParameters; if (isSetAccessorDeclaration(node)) node.type = type; @@ -35557,10 +35884,10 @@ var Parser; return parseClassStaticBlockDeclaration(pos, hasJSDoc, modifiers); } if (parseContextualModifier(139 /* GetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 176 /* GetAccessor */, 0 /* None */); + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* GetAccessor */, 0 /* None */); } if (parseContextualModifier(153 /* SetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* SetAccessor */, 0 /* None */); + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 178 /* SetAccessor */, 0 /* None */); } if (token() === 137 /* ConstructorKeyword */ || token() === 11 /* StringLiteral */) { const constructorDeclaration = tryParseConstructorDeclaration(pos, hasJSDoc, modifiers); @@ -35575,9 +35902,9 @@ var Parser; const isAmbient = some(modifiers, isDeclareModifier); if (isAmbient) { for (const m of modifiers) { - m.flags |= 16777216 /* Ambient */; + m.flags |= 33554432 /* Ambient */; } - return doInsideOfContext(16777216 /* Ambient */, () => parsePropertyOrMethodDeclaration(pos, hasJSDoc, modifiers)); + return doInsideOfContext(33554432 /* Ambient */, () => parsePropertyOrMethodDeclaration(pos, hasJSDoc, modifiers)); } else { return parsePropertyOrMethodDeclaration(pos, hasJSDoc, modifiers); } @@ -35608,10 +35935,10 @@ var Parser; true ); if (token() === 86 /* ClassKeyword */) { - return parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, 230 /* ClassExpression */); + return parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, 231 /* ClassExpression */); } const missing = createMissingNode( - 281 /* MissingDeclaration */, + 282 /* MissingDeclaration */, /*reportAtCurrentPosition*/ true, Diagnostics.Expression_expected @@ -35626,11 +35953,11 @@ var Parser; hasPrecedingJSDocComment(), /*modifiers*/ void 0, - 230 /* ClassExpression */ + 231 /* ClassExpression */ ); } function parseClassDeclaration(pos, hasJSDoc, modifiers) { - return parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, 262 /* ClassDeclaration */); + return parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, 263 /* ClassDeclaration */); } function parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, kind) { const savedAwaitContext = inAwaitContext(); @@ -35651,7 +35978,7 @@ var Parser; members = createMissingList(); } setAwaitContext(savedAwaitContext); - const node = kind === 262 /* ClassDeclaration */ ? factory2.createClassDeclaration(modifiers, name, typeParameters, heritageClauses, members) : factory2.createClassExpression(modifiers, name, typeParameters, heritageClauses, members); + const node = kind === 263 /* ClassDeclaration */ ? factory2.createClassDeclaration(modifiers, name, typeParameters, heritageClauses, members) : factory2.createClassExpression(modifiers, name, typeParameters, heritageClauses, members); return withJSDoc(finishNode(node, pos), hasJSDoc); } function parseNameOfClassDeclarationOrExpression() { @@ -35677,7 +36004,7 @@ var Parser; function parseExpressionWithTypeArguments() { const pos = getNodePos(); const expression = parseLeftHandSideExpressionOrHigher(); - if (expression.kind === 232 /* ExpressionWithTypeArguments */) { + if (expression.kind === 233 /* ExpressionWithTypeArguments */) { return expression; } const typeArguments = tryParseTypeArguments(); @@ -35703,6 +36030,9 @@ var Parser; } function parseTypeAliasDeclaration(pos, hasJSDoc, modifiers) { parseExpected(156 /* TypeKeyword */); + if (scanner2.hasPrecedingLineBreak()) { + parseErrorAtCurrentToken(Diagnostics.Line_break_not_permitted_here); + } const name = parseIdentifier(); const typeParameters = parseTypeParameters(); parseExpected(64 /* EqualsToken */); @@ -35743,7 +36073,7 @@ var Parser; return finishNode(factory2.createModuleBlock(statements), pos); } function parseModuleOrNamespaceDeclaration(pos, hasJSDoc, modifiers, flags) { - const namespaceFlag = flags & 16 /* Namespace */; + const namespaceFlag = flags & 32 /* Namespace */; const name = parseIdentifier(); const body = parseOptional(25 /* DotToken */) ? parseModuleOrNamespaceDeclaration( getNodePos(), @@ -35751,7 +36081,7 @@ var Parser; false, /*modifiers*/ void 0, - 4 /* NestedNamespace */ | namespaceFlag + 8 /* NestedNamespace */ | namespaceFlag ) : parseModuleBlock(); const node = factory2.createModuleDeclaration(modifiers, name, body, flags); return withJSDoc(finishNode(node, pos), hasJSDoc); @@ -35759,9 +36089,9 @@ var Parser; function parseAmbientExternalModuleDeclaration(pos, hasJSDoc, modifiersIn) { let flags = 0; let name; - if (token() === 161 /* GlobalKeyword */) { + if (token() === 162 /* GlobalKeyword */) { name = parseIdentifier(); - flags |= 1024 /* GlobalAugmentation */; + flags |= 2048 /* GlobalAugmentation */; } else { name = parseLiteralNode(); name.text = internIdentifier(name.text); @@ -35777,10 +36107,10 @@ var Parser; } function parseModuleDeclaration(pos, hasJSDoc, modifiersIn) { let flags = 0; - if (token() === 161 /* GlobalKeyword */) { + if (token() === 162 /* GlobalKeyword */) { return parseAmbientExternalModuleDeclaration(pos, hasJSDoc, modifiersIn); } else if (parseOptional(145 /* NamespaceKeyword */)) { - flags |= 16 /* Namespace */; + flags |= 32 /* Namespace */; } else { parseExpected(144 /* ModuleKeyword */); if (token() === 11 /* StringLiteral */) { @@ -35818,7 +36148,7 @@ var Parser; identifier = parseIdentifier(); } let isTypeOnly = false; - if (token() !== 160 /* FromKeyword */ && (identifier == null ? void 0 : identifier.escapedText) === "type" && (isIdentifier2() || tokenAfterImportDefinitelyProducesImportDeclaration())) { + if (token() !== 161 /* FromKeyword */ && (identifier == null ? void 0 : identifier.escapedText) === "type" && (isIdentifier2() || tokenAfterImportDefinitelyProducesImportDeclaration())) { isTypeOnly = true; identifier = isIdentifier2() ? parseIdentifier() : void 0; } @@ -35830,7 +36160,7 @@ var Parser; token() === 42 /* AsteriskToken */ || // import * token() === 19 /* OpenBraceToken */) { importClause = parseImportClause(identifier, afterImportPos, isTypeOnly); - parseExpected(160 /* FromKeyword */); + parseExpected(161 /* FromKeyword */); } const moduleSpecifier = parseModuleSpecifier(); let assertClause; @@ -35895,7 +36225,7 @@ var Parser; return token() === 42 /* AsteriskToken */ || token() === 19 /* OpenBraceToken */; } function tokenAfterImportedIdentifierDefinitelyProducesImportDeclaration() { - return token() === 28 /* CommaToken */ || token() === 160 /* FromKeyword */; + return token() === 28 /* CommaToken */ || token() === 161 /* FromKeyword */; } function parseImportEqualsDeclaration(pos, hasJSDoc, modifiers, identifier, isTypeOnly) { parseExpected(64 /* EqualsToken */); @@ -35908,7 +36238,7 @@ var Parser; function parseImportClause(identifier, pos, isTypeOnly) { let namedBindings; if (!identifier || parseOptional(28 /* CommaToken */)) { - namedBindings = token() === 42 /* AsteriskToken */ ? parseNamespaceImport() : parseNamedImportsOrExports(274 /* NamedImports */); + namedBindings = token() === 42 /* AsteriskToken */ ? parseNamespaceImport() : parseNamedImportsOrExports(275 /* NamedImports */); } return finishNode(factory2.createImportClause(isTypeOnly, identifier, namedBindings), pos); } @@ -35944,15 +36274,15 @@ var Parser; } function parseNamedImportsOrExports(kind) { const pos = getNodePos(); - const node = kind === 274 /* NamedImports */ ? factory2.createNamedImports(parseBracketedList(23 /* ImportOrExportSpecifiers */, parseImportSpecifier, 19 /* OpenBraceToken */, 20 /* CloseBraceToken */)) : factory2.createNamedExports(parseBracketedList(23 /* ImportOrExportSpecifiers */, parseExportSpecifier, 19 /* OpenBraceToken */, 20 /* CloseBraceToken */)); + const node = kind === 275 /* NamedImports */ ? factory2.createNamedImports(parseBracketedList(23 /* ImportOrExportSpecifiers */, parseImportSpecifier, 19 /* OpenBraceToken */, 20 /* CloseBraceToken */)) : factory2.createNamedExports(parseBracketedList(23 /* ImportOrExportSpecifiers */, parseExportSpecifier, 19 /* OpenBraceToken */, 20 /* CloseBraceToken */)); return finishNode(node, pos); } function parseExportSpecifier() { const hasJSDoc = hasPrecedingJSDocComment(); - return withJSDoc(parseImportOrExportSpecifier(280 /* ExportSpecifier */), hasJSDoc); + return withJSDoc(parseImportOrExportSpecifier(281 /* ExportSpecifier */), hasJSDoc); } function parseImportSpecifier() { - return parseImportOrExportSpecifier(275 /* ImportSpecifier */); + return parseImportOrExportSpecifier(276 /* ImportSpecifier */); } function parseImportOrExportSpecifier(kind) { const pos = getNodePos(); @@ -35996,10 +36326,10 @@ var Parser; parseExpected(130 /* AsKeyword */); name = parseNameWithKeywordCheck(); } - if (kind === 275 /* ImportSpecifier */ && checkIdentifierIsKeyword) { + if (kind === 276 /* ImportSpecifier */ && checkIdentifierIsKeyword) { parseErrorAt(checkIdentifierStart, checkIdentifierEnd, Diagnostics.Identifier_expected); } - const node = kind === 275 /* ImportSpecifier */ ? factory2.createImportSpecifier(isTypeOnly, propertyName, name) : factory2.createExportSpecifier(isTypeOnly, propertyName, name); + const node = kind === 276 /* ImportSpecifier */ ? factory2.createImportSpecifier(isTypeOnly, propertyName, name) : factory2.createExportSpecifier(isTypeOnly, propertyName, name); return finishNode(node, pos); function parseNameWithKeywordCheck() { checkIdentifierIsKeyword = isKeyword(token()) && !isIdentifier2(); @@ -36026,12 +36356,12 @@ var Parser; if (parseOptional(130 /* AsKeyword */)) { exportClause = parseNamespaceExport(namespaceExportPos); } - parseExpected(160 /* FromKeyword */); + parseExpected(161 /* FromKeyword */); moduleSpecifier = parseModuleSpecifier(); } else { - exportClause = parseNamedImportsOrExports(278 /* NamedExports */); - if (token() === 160 /* FromKeyword */ || token() === 11 /* StringLiteral */ && !scanner2.hasPrecedingLineBreak()) { - parseExpected(160 /* FromKeyword */); + exportClause = parseNamedImportsOrExports(279 /* NamedExports */); + if (token() === 161 /* FromKeyword */ || token() === 11 /* StringLiteral */ && !scanner2.hasPrecedingLineBreak()) { + parseExpected(161 /* FromKeyword */); moduleSpecifier = parseModuleSpecifier(); } } @@ -36136,7 +36466,7 @@ var Parser; function parseJSDocTypeExpression(mayOmitBraces) { const pos = getNodePos(); const hasBrace = (mayOmitBraces ? parseOptional : parseExpected)(19 /* OpenBraceToken */); - const type = doInsideOfContext(8388608 /* JSDoc */, parseJSDocType); + const type = doInsideOfContext(16777216 /* JSDoc */, parseJSDocType); if (!mayOmitBraces || hasBrace) { parseExpectedJSDoc(20 /* CloseBraceToken */); } @@ -36175,7 +36505,7 @@ var Parser; void 0, 1 /* JS */ ); - const jsDoc = doInsideOfContext(8388608 /* JSDoc */, () => parseJSDocCommentWorker(start2, length2)); + const jsDoc = doInsideOfContext(16777216 /* JSDoc */, () => parseJSDocCommentWorker(start2, length2)); const sourceFile = { languageVariant: 0 /* Standard */, text: content }; const diagnostics = attachFileToDiagnostics(parseDiagnostics, sourceFile); clearState(); @@ -36186,9 +36516,9 @@ var Parser; const saveToken = currentToken; const saveParseDiagnosticsLength = parseDiagnostics.length; const saveParseErrorBeforeNextFinishedNode = parseErrorBeforeNextFinishedNode; - const comment = doInsideOfContext(8388608 /* JSDoc */, () => parseJSDocCommentWorker(start2, length2)); + const comment = doInsideOfContext(16777216 /* JSDoc */, () => parseJSDocCommentWorker(start2, length2)); setParent(comment, parent2); - if (contextFlags & 262144 /* JavaScriptFile */) { + if (contextFlags & 524288 /* JavaScriptFile */) { if (!jsDocDiagnostics) { jsDocDiagnostics = []; } @@ -36669,7 +36999,7 @@ var Parser; switch (node.kind) { case 151 /* ObjectKeyword */: return true; - case 187 /* ArrayType */: + case 188 /* ArrayType */: return isObjectOrObjectArrayTypeReference(node.elementType); default: return isTypeReferenceNode(node) && isIdentifier(node.typeName) && node.typeName.escapedText === "Object" && !node.typeArguments; @@ -36685,7 +37015,7 @@ var Parser; typeExpression = tryParseTypeExpression(); } const comment = parseTrailingTagComments(start3, getNodePos(), indent3, indentText); - const nestedTypeLiteral = target !== 4 /* CallbackParameter */ && parseNestedTypeLiteral(typeExpression, name, target, indent3); + const nestedTypeLiteral = parseNestedTypeLiteral(typeExpression, name, target, indent3); if (nestedTypeLiteral) { typeExpression = nestedTypeLiteral; isNameFirst = true; @@ -36699,14 +37029,14 @@ var Parser; let child; let children; while (child = tryParse(() => parseChildParameterOrPropertyTag(target, indent3, name))) { - if (child.kind === 347 /* JSDocParameterTag */ || child.kind === 354 /* JSDocPropertyTag */) { + if (child.kind === 348 /* JSDocParameterTag */ || child.kind === 355 /* JSDocPropertyTag */) { children = append(children, child); - } else if (child.kind === 351 /* JSDocTemplateTag */) { + } else if (child.kind === 352 /* JSDocTemplateTag */) { parseErrorAtRange(child.tagName, Diagnostics.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag); } } if (children) { - const literal = finishNode(factory2.createJSDocTypeLiteral(children, typeExpression.type.kind === 187 /* ArrayType */), pos); + const literal = finishNode(factory2.createJSDocTypeLiteral(children, typeExpression.type.kind === 188 /* ArrayType */), pos); return finishNode(factory2.createJSDocTypeExpression(literal), pos); } } @@ -36841,11 +37171,11 @@ var Parser; let jsDocPropertyTags; let hasChildren = false; while (child = tryParse(() => parseChildPropertyTag(indent3))) { - if (child.kind === 351 /* JSDocTemplateTag */) { + if (child.kind === 352 /* JSDocTemplateTag */) { break; } hasChildren = true; - if (child.kind === 350 /* JSDocTypeTag */) { + if (child.kind === 351 /* JSDocTypeTag */) { if (childTypeTag) { const lastError = parseErrorAtCurrentToken(Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags); if (lastError) { @@ -36860,7 +37190,7 @@ var Parser; } } if (hasChildren) { - const isArrayType = typeExpression && typeExpression.type.kind === 187 /* ArrayType */; + const isArrayType = typeExpression && typeExpression.type.kind === 188 /* ArrayType */; const jsdocTypeLiteral = factory2.createJSDocTypeLiteral(jsDocPropertyTags, isArrayType); typeExpression = childTypeTag && childTypeTag.typeExpression && !isObjectOrObjectArrayTypeReference(childTypeTag.typeExpression.type) ? childTypeTag.typeExpression : finishNode(jsdocTypeLiteral, start3); end2 = typeExpression.end; @@ -36889,12 +37219,12 @@ var Parser; void 0, typeNameOrNamespaceName, body, - nested ? 4 /* NestedNamespace */ : void 0 + nested ? 8 /* NestedNamespace */ : void 0 ); return finishNode(jsDocNamespaceNode, start3); } if (nested) { - typeNameOrNamespaceName.flags |= 2048 /* IdentifierIsInJSDocNamespace */; + typeNameOrNamespaceName.flags |= 4096 /* IdentifierIsInJSDocNamespace */; } return typeNameOrNamespaceName; } @@ -36903,7 +37233,7 @@ var Parser; let child; let parameters; while (child = tryParse(() => parseChildParameterOrPropertyTag(4 /* CallbackParameter */, indent3))) { - if (child.kind === 351 /* JSDocTemplateTag */) { + if (child.kind === 352 /* JSDocTemplateTag */) { parseErrorAtRange(child.tagName, Diagnostics.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag); break; } @@ -36916,7 +37246,7 @@ var Parser; const returnTag = tryParse(() => { if (parseOptionalJsdoc(60 /* AtToken */)) { const tag = parseTag(indent3); - if (tag && tag.kind === 348 /* JSDocReturnTag */) { + if (tag && tag.kind === 349 /* JSDocReturnTag */) { return tag; } } @@ -36971,7 +37301,7 @@ var Parser; case 60 /* AtToken */: if (canParseTag) { const child = tryParseChildTag(target, indent3); - if (child && (child.kind === 347 /* JSDocParameterTag */ || child.kind === 354 /* JSDocPropertyTag */) && target !== 4 /* CallbackParameter */ && name && (isIdentifier(child.name) || !escapedTextsEqual(name, child.name.left))) { + if (child && (child.kind === 348 /* JSDocParameterTag */ || child.kind === 355 /* JSDocPropertyTag */) && name && (isIdentifier(child.name) || !escapedTextsEqual(name, child.name.left))) { return false; } return child; @@ -37036,7 +37366,7 @@ var Parser; if (isBracketed) { skipWhitespace(); parseExpected(64 /* EqualsToken */); - defaultType = doInsideOfContext(8388608 /* JSDoc */, parseJSDocType); + defaultType = doInsideOfContext(16777216 /* JSDoc */, parseJSDocType); parseExpected(24 /* CloseBracketToken */); } if (nodeIsMissing(name)) { @@ -37604,7 +37934,7 @@ function getNamedArgRegEx(name) { return result; } var tripleSlashXMLCommentStartRegEx = /^\/\/\/\s*<(\S+)\s.*?\/>/im; -var singleLinePragmaRegEx = /^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im; +var singleLinePragmaRegEx = /^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im; function extractPragmas(pragmas, range, text) { const tripleSlash = range.kind === 2 /* SingleLineCommentTrivia */ && tripleSlashXMLCommentStartRegEx.exec(text); if (tripleSlash) { @@ -37696,7 +38026,7 @@ function tagNamesAreEquivalent(lhs, rhs) { if (lhs.kind === 110 /* ThisKeyword */) { return true; } - if (lhs.kind === 294 /* JsxNamespacedName */) { + if (lhs.kind === 295 /* JsxNamespacedName */) { return lhs.namespace.escapedText === rhs.namespace.escapedText && lhs.name.escapedText === rhs.name.escapedText; } return lhs.name.escapedText === rhs.name.escapedText && tagNamesAreEquivalent(lhs.expression, rhs.expression); @@ -37749,6 +38079,7 @@ var libEntries = [ ["es2015.symbol", "lib.es2015.symbol.d.ts"], ["es2015.symbol.wellknown", "lib.es2015.symbol.wellknown.d.ts"], ["es2016.array.include", "lib.es2016.array.include.d.ts"], + ["es2017.date", "lib.es2017.date.d.ts"], ["es2017.object", "lib.es2017.object.d.ts"], ["es2017.sharedmemory", "lib.es2017.sharedmemory.d.ts"], ["es2017.string", "lib.es2017.string.d.ts"], @@ -37784,14 +38115,18 @@ var libEntries = [ ["es2022.string", "lib.es2022.string.d.ts"], ["es2022.regexp", "lib.es2022.regexp.d.ts"], ["es2023.array", "lib.es2023.array.d.ts"], + ["es2023.collection", "lib.es2023.collection.d.ts"], ["esnext.array", "lib.es2023.array.d.ts"], + ["esnext.collection", "lib.es2023.collection.d.ts"], ["esnext.symbol", "lib.es2019.symbol.d.ts"], ["esnext.asynciterable", "lib.es2018.asynciterable.d.ts"], ["esnext.intl", "lib.esnext.intl.d.ts"], + ["esnext.disposable", "lib.esnext.disposable.d.ts"], ["esnext.bigint", "lib.es2020.bigint.d.ts"], ["esnext.string", "lib.es2022.string.d.ts"], ["esnext.promise", "lib.es2021.promise.d.ts"], ["esnext.weakref", "lib.es2021.weakref.d.ts"], + ["esnext.decorators", "lib.esnext.decorators.d.ts"], ["decorators", "lib.decorators.d.ts"], ["decorators.legacy", "lib.decorators.legacy.d.ts"] ]; @@ -38199,6 +38534,7 @@ var commandOptionsWithoutBuild = [ { name: "checkJs", type: "boolean", + affectsModuleResolution: true, showInSimplifiedHelpView: true, category: Diagnostics.JavaScript_Support, description: Diagnostics.Enable_error_reporting_in_type_checked_JavaScript_files, @@ -38425,7 +38761,7 @@ var commandOptionsWithoutBuild = [ strictFlag: true, category: Diagnostics.Type_Checking, description: Diagnostics.Default_catch_clause_variables_as_unknown_instead_of_any, - defaultValueDescription: false + defaultValueDescription: Diagnostics.false_unless_strict_is_set }, { name: "alwaysStrict", @@ -39615,7 +39951,7 @@ function getTsconfigRootOptionsMap() { function convertConfigFileToObject(sourceFile, errors, jsonConversionNotifier) { var _a; const rootExpression = (_a = sourceFile.statements[0]) == null ? void 0 : _a.expression; - if (rootExpression && rootExpression.kind !== 209 /* ObjectLiteralExpression */) { + if (rootExpression && rootExpression.kind !== 210 /* ObjectLiteralExpression */) { errors.push(createDiagnosticForNodeInSourceFile( sourceFile, rootExpression, @@ -39667,7 +40003,7 @@ function convertToJson(sourceFile, rootExpression, errors, returnValue, jsonConv var _a; const result = returnValue ? {} : void 0; for (const element of node.properties) { - if (element.kind !== 302 /* PropertyAssignment */) { + if (element.kind !== 303 /* PropertyAssignment */) { errors.push(createDiagnosticForNodeInSourceFile(sourceFile, element, Diagnostics.Property_assignment_expected)); continue; } @@ -39712,15 +40048,15 @@ function convertToJson(sourceFile, rootExpression, errors, returnValue, jsonConv return valueExpression.text; case 9 /* NumericLiteral */: return Number(valueExpression.text); - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: if (valueExpression.operator !== 41 /* MinusToken */ || valueExpression.operand.kind !== 9 /* NumericLiteral */) { break; } return -Number(valueExpression.operand.text); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: const objectLiteralExpression = valueExpression; return convertObjectLiteralExpressionToJson(objectLiteralExpression, option); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return convertArrayLiteralExpressionToJson( valueExpression.elements, option && option.element @@ -40104,8 +40440,8 @@ function parseJsonConfigFileContentWorker(json, sourceFile, host, basePath, exis const fileName = configFileName || "tsconfig.json"; const diagnosticMessage = Diagnostics.The_files_list_in_config_file_0_is_empty; const nodeValue = forEachTsConfigPropArray(sourceFile, "files", (property) => property.initializer); - const error = createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, nodeValue, diagnosticMessage, fileName); - errors.push(error); + const error2 = createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, nodeValue, diagnosticMessage, fileName); + errors.push(error2); } else { createCompilerDiagnosticOnlyIfJson(Diagnostics.The_files_list_in_config_file_0_is_empty, configFileName || "tsconfig.json"); } @@ -40212,8 +40548,8 @@ function parseJsonConfigFileContentWorker(json, sourceFile, host, basePath, exis } } } -function isErrorNoInputFiles(error) { - return error.code === Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code; +function isErrorNoInputFiles(error2) { + return error2.code === Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code; } function getErrorForNoInputFiles({ includeSpecs, excludeSpecs }, configFileName) { return createCompilerDiagnostic( @@ -40234,7 +40570,7 @@ function updateErrorForNoInputFiles(fileNames, configFileName, configFileSpecs, if (shouldReportNoInputFiles(fileNames, canJsonReportNoInutFiles)) { configParseDiagnostics.push(getErrorForNoInputFiles(configFileSpecs, configFileName)); } else { - filterMutate(configParseDiagnostics, (error) => !isErrorNoInputFiles(error)); + filterMutate(configParseDiagnostics, (error2) => !isErrorNoInputFiles(error2)); } return existingErrors !== configParseDiagnostics.length; } @@ -40644,19 +40980,19 @@ function getFileNamesFromConfigSpecs(configFileSpecs, basePath, options, host, e const wildcardFiles = arrayFrom(wildcardFileMap.values()); return literalFiles.concat(wildcardFiles, arrayFrom(wildCardJsonFileMap.values())); } -function isExcludedFile(pathToCheck, spec, basePath, useCaseSensitiveFileNames, currentDirectory) { +function isExcludedFile(pathToCheck, spec, basePath, useCaseSensitiveFileNames2, currentDirectory) { const { validatedFilesSpec, validatedIncludeSpecs, validatedExcludeSpecs } = spec; if (!length(validatedIncludeSpecs) || !length(validatedExcludeSpecs)) return false; basePath = normalizePath(basePath); - const keyMapper = createGetCanonicalFileName(useCaseSensitiveFileNames); + const keyMapper = createGetCanonicalFileName(useCaseSensitiveFileNames2); if (validatedFilesSpec) { for (const fileName of validatedFilesSpec) { if (keyMapper(getNormalizedAbsolutePath(fileName, basePath)) === pathToCheck) return false; } } - return matchesExcludeWorker(pathToCheck, validatedExcludeSpecs, useCaseSensitiveFileNames, currentDirectory, basePath); + return matchesExcludeWorker(pathToCheck, validatedExcludeSpecs, useCaseSensitiveFileNames2, currentDirectory, basePath); } function invalidDotDotAfterRecursiveWildcard(s) { const wildcardIndex = startsWith(s, "**/") ? 0 : s.indexOf("/**/"); @@ -40666,17 +41002,17 @@ function invalidDotDotAfterRecursiveWildcard(s) { const lastDotIndex = endsWith(s, "/..") ? s.length : s.lastIndexOf("/../"); return lastDotIndex > wildcardIndex; } -function matchesExclude(pathToCheck, excludeSpecs, useCaseSensitiveFileNames, currentDirectory) { +function matchesExclude(pathToCheck, excludeSpecs, useCaseSensitiveFileNames2, currentDirectory) { return matchesExcludeWorker( pathToCheck, filter(excludeSpecs, (spec) => !invalidDotDotAfterRecursiveWildcard(spec)), - useCaseSensitiveFileNames, + useCaseSensitiveFileNames2, currentDirectory ); } -function matchesExcludeWorker(pathToCheck, excludeSpecs, useCaseSensitiveFileNames, currentDirectory, basePath) { +function matchesExcludeWorker(pathToCheck, excludeSpecs, useCaseSensitiveFileNames2, currentDirectory, basePath) { const excludePattern = getRegularExpressionForWildcard(excludeSpecs, combinePaths(normalizePath(currentDirectory), basePath), "exclude"); - const excludeRegex = excludePattern && getRegexFromPattern(excludePattern, useCaseSensitiveFileNames); + const excludeRegex = excludePattern && getRegexFromPattern(excludePattern, useCaseSensitiveFileNames2); if (!excludeRegex) return false; if (excludeRegex.test(pathToCheck)) @@ -40706,9 +41042,9 @@ function specToDiagnostic(spec, disallowTrailingRecursion) { return [Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0, spec]; } } -function getWildcardDirectories({ validatedIncludeSpecs: include, validatedExcludeSpecs: exclude }, path, useCaseSensitiveFileNames) { +function getWildcardDirectories({ validatedIncludeSpecs: include, validatedExcludeSpecs: exclude }, path, useCaseSensitiveFileNames2) { const rawExcludeRegex = getRegularExpressionForWildcard(exclude, path, "exclude"); - const excludeRegex = rawExcludeRegex && new RegExp(rawExcludeRegex, useCaseSensitiveFileNames ? "" : "i"); + const excludeRegex = rawExcludeRegex && new RegExp(rawExcludeRegex, useCaseSensitiveFileNames2 ? "" : "i"); const wildcardDirectories = {}; if (include !== void 0) { const recursiveKeys = []; @@ -40717,7 +41053,7 @@ function getWildcardDirectories({ validatedIncludeSpecs: include, validatedExclu if (excludeRegex && excludeRegex.test(spec)) { continue; } - const match = getWildcardDirectoryFromSpec(spec, useCaseSensitiveFileNames); + const match = getWildcardDirectoryFromSpec(spec, useCaseSensitiveFileNames2); if (match) { const { key, flags } = match; const existingFlags = wildcardDirectories[key]; @@ -40732,7 +41068,7 @@ function getWildcardDirectories({ validatedIncludeSpecs: include, validatedExclu for (const key in wildcardDirectories) { if (hasProperty(wildcardDirectories, key)) { for (const recursiveKey of recursiveKeys) { - if (key !== recursiveKey && containsPath(recursiveKey, key, path, !useCaseSensitiveFileNames)) { + if (key !== recursiveKey && containsPath(recursiveKey, key, path, !useCaseSensitiveFileNames2)) { delete wildcardDirectories[key]; } } @@ -40741,20 +41077,20 @@ function getWildcardDirectories({ validatedIncludeSpecs: include, validatedExclu } return wildcardDirectories; } -function getWildcardDirectoryFromSpec(spec, useCaseSensitiveFileNames) { +function getWildcardDirectoryFromSpec(spec, useCaseSensitiveFileNames2) { const match = wildcardDirectoryPattern.exec(spec); if (match) { const questionWildcardIndex = spec.indexOf("?"); const starWildcardIndex = spec.indexOf("*"); const lastDirectorySeperatorIndex = spec.lastIndexOf(directorySeparator); return { - key: useCaseSensitiveFileNames ? match[0] : toFileNameLowerCase(match[0]), + key: useCaseSensitiveFileNames2 ? match[0] : toFileNameLowerCase(match[0]), flags: questionWildcardIndex !== -1 && questionWildcardIndex < lastDirectorySeperatorIndex || starWildcardIndex !== -1 && starWildcardIndex < lastDirectorySeperatorIndex ? 1 /* Recursive */ : 0 /* None */ }; } if (isImplicitGlob(spec.substring(spec.lastIndexOf(directorySeparator) + 1))) { return { - key: removeTrailingDirectorySeparator(useCaseSensitiveFileNames ? spec : toFileNameLowerCase(spec)), + key: removeTrailingDirectorySeparator(useCaseSensitiveFileNames2 ? spec : toFileNameLowerCase(spec)), flags: 1 /* Recursive */ }; } @@ -40900,6 +41236,18 @@ function formatExtensions(extensions) { result.push("JSON"); return result.join(", "); } +function extensionsToExtensionsArray(extensions) { + const result = []; + if (extensions & 1 /* TypeScript */) + result.push(...supportedTSImplementationExtensions); + if (extensions & 2 /* JavaScript */) + result.push(...supportedJSExtensionsFlat); + if (extensions & 4 /* Declaration */) + result.push(...supportedDeclarationExtensions); + if (extensions & 8 /* Json */) + result.push(".json" /* Json */); + return result; +} function resolvedTypeScriptOnly(resolved) { if (!resolved) { return void 0; @@ -41074,8 +41422,8 @@ function getDefaultTypeRoots(currentDirectory) { } var nodeModulesAtTypes = combinePaths("node_modules", "@types"); function arePathsEqual(path1, path2, host) { - const useCaseSensitiveFileNames = typeof host.useCaseSensitiveFileNames === "function" ? host.useCaseSensitiveFileNames() : host.useCaseSensitiveFileNames; - return comparePaths(path1, path2, !useCaseSensitiveFileNames) === 0 /* EqualTo */; + const useCaseSensitiveFileNames2 = typeof host.useCaseSensitiveFileNames === "function" ? host.useCaseSensitiveFileNames() : host.useCaseSensitiveFileNames; + return comparePaths(path1, path2, !useCaseSensitiveFileNames2) === 0 /* EqualTo */; } function getOriginalAndResolvedFileName(fileName, host, traceEnabled) { const resolvedFileName = realPath(fileName, host, traceEnabled); @@ -41378,7 +41726,7 @@ function compilerOptionValueToString(value) { return str + "}"; } function getKeyForCompilerOptions(options, affectingOptionDeclarations) { - return affectingOptionDeclarations.map((option) => compilerOptionValueToString(getCompilerOptionValue(options, option))).join("|") + (options.pathsBasePath ? `|${options.pathsBasePath}` : void 0); + return affectingOptionDeclarations.map((option) => compilerOptionValueToString(getCompilerOptionValue(options, option))).join("|") + `|${options.pathsBasePath}`; } function createCacheWithRedirects(ownOptions) { const redirectsMap = /* @__PURE__ */ new Map(); @@ -42352,7 +42700,7 @@ function getEntrypointsFromPackageJsonInfo(packageJsonInfo, options, host, cache arrayIsEqualTo ); for (const conditions of conditionSets) { - const loadPackageJsonExportsState = { ...loadPackageJsonMainState, failedLookupLocations: [], conditions }; + const loadPackageJsonExportsState = { ...loadPackageJsonMainState, failedLookupLocations: [], conditions, host }; const exportResolutions = loadEntrypointsFromExportMap( packageJsonInfo, packageJsonInfo.contents.packageJsonContent.exports, @@ -42384,23 +42732,42 @@ function loadEntrypointsFromExportMap(scope, exports, state, extensions) { return entrypoints; function loadEntrypointsFromTargetExports(target) { var _a, _b; - if (typeof target === "string" && startsWith(target, "./") && target.indexOf("*") === -1) { - const partsAfterFirst = getPathComponents(target).slice(2); - if (partsAfterFirst.indexOf("..") >= 0 || partsAfterFirst.indexOf(".") >= 0 || partsAfterFirst.indexOf("node_modules") >= 0) { - return false; - } - const resolvedTarget = combinePaths(scope.packageDirectory, target); - const finalPath = getNormalizedAbsolutePath(resolvedTarget, (_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a)); - const result = loadFileNameFromPackageJsonField( - extensions, - finalPath, - /*onlyRecordFailures*/ - false, - state - ); - if (result) { - entrypoints = appendIfUnique(entrypoints, result, (a, b) => a.path === b.path); - return true; + if (typeof target === "string" && startsWith(target, "./")) { + if (target.indexOf("*") >= 0 && state.host.readDirectory) { + if (target.indexOf("*") !== target.lastIndexOf("*")) { + return false; + } + state.host.readDirectory( + scope.packageDirectory, + extensionsToExtensionsArray(extensions), + /*excludes*/ + void 0, + [changeAnyExtension(target.replace("*", "**/*"), getDeclarationEmitExtensionForPath(target))] + ).forEach((entry) => { + entrypoints = appendIfUnique(entrypoints, { + path: entry, + ext: getAnyExtensionFromPath(entry), + resolvedUsingTsExtension: void 0 + }); + }); + } else { + const partsAfterFirst = getPathComponents(target).slice(2); + if (partsAfterFirst.indexOf("..") >= 0 || partsAfterFirst.indexOf(".") >= 0 || partsAfterFirst.indexOf("node_modules") >= 0) { + return false; + } + const resolvedTarget = combinePaths(scope.packageDirectory, target); + const finalPath = getNormalizedAbsolutePath(resolvedTarget, (_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a)); + const result = loadFileNameFromPackageJsonField( + extensions, + finalPath, + /*onlyRecordFailures*/ + false, + state + ); + if (result) { + entrypoints = appendIfUnique(entrypoints, result, (a, b) => a.path === b.path); + return true; + } } } else if (Array.isArray(target)) { for (const t of target) { @@ -42609,6 +42976,9 @@ function loadModuleFromSelfNameReference(extensions, moduleName, directory, stat } const trailingParts = parts.slice(nameParts.length); const subpath = !length(trailingParts) ? "." : `.${directorySeparator}${trailingParts.join(directorySeparator)}`; + if (getAllowJSCompilerOption(state.compilerOptions) && !pathContainsNodeModules(directory)) { + return loadModuleFromExports(scope, extensions, subpath, state, cache, redirectedReference); + } const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */); const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */); return loadModuleFromExports(scope, priorityExtensions, subpath, state, cache, redirectedReference) || loadModuleFromExports(scope, secondaryExtensions, subpath, state, cache, redirectedReference); @@ -42956,13 +43326,10 @@ function getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirec function combineDirectoryPath(root, dir) { return ensureTrailingDirectorySeparator(combinePaths(root, dir)); } - function useCaseSensitiveFileNames() { - return !state.host.useCaseSensitiveFileNames ? true : typeof state.host.useCaseSensitiveFileNames === "boolean" ? state.host.useCaseSensitiveFileNames : state.host.useCaseSensitiveFileNames(); - } function tryLoadInputFileForPath(finalPath, entry, packagePath, isImports2) { var _a, _b, _c, _d; - if (!state.isConfigLookup && (state.compilerOptions.declarationDir || state.compilerOptions.outDir) && finalPath.indexOf("/node_modules/") === -1 && (state.compilerOptions.configFile ? containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames()) : true)) { - const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames }); + if (!state.isConfigLookup && (state.compilerOptions.declarationDir || state.compilerOptions.outDir) && finalPath.indexOf("/node_modules/") === -1 && (state.compilerOptions.configFile ? containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames(state)) : true)) { + const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames: () => useCaseSensitiveFileNames(state) }); const commonSourceDirGuesses = []; if (state.compilerOptions.rootDir || state.compilerOptions.composite && state.compilerOptions.configFilePath) { const commonDir = toAbsolutePath(getCommonSourceDirectory(state.compilerOptions, () => [], ((_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a)) || "", getCanonicalFileName)); @@ -42991,7 +43358,7 @@ function getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirec for (const commonSourceDirGuess of commonSourceDirGuesses) { const candidateDirectories = getOutputDirectoriesForBaseDirectory(commonSourceDirGuess); for (const candidateDir of candidateDirectories) { - if (containsPath(candidateDir, finalPath, !useCaseSensitiveFileNames())) { + if (containsPath(candidateDir, finalPath, !useCaseSensitiveFileNames(state))) { const pathFragment = finalPath.slice(candidateDir.length + 1); const possibleInputBase = combinePaths(commonSourceDirGuess, pathFragment); const jsAndDtsExtensions = [".mjs" /* Mjs */, ".cjs" /* Cjs */, ".js" /* Js */, ".json" /* Json */, ".d.mts" /* Dmts */, ".d.cts" /* Dcts */, ".d.ts" /* Dts */]; @@ -43001,7 +43368,7 @@ function getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirec for (const possibleExt of inputExts) { if (!extensionIsOk(extensions, possibleExt)) continue; - const possibleInputWithInputExtension = changeAnyExtension(possibleInputBase, possibleExt, ext, !useCaseSensitiveFileNames()); + const possibleInputWithInputExtension = changeAnyExtension(possibleInputBase, possibleExt, ext, !useCaseSensitiveFileNames(state)); if (state.host.fileExists(possibleInputWithInputExtension)) { return toSearchResult(withPackageId(scope, loadFileNameFromPackageJsonField( extensions, @@ -43075,11 +43442,13 @@ function loadModuleFromNearestNodeModulesDirectoryWorker(extensions, moduleName, const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */); const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */); if (priorityExtensions) { + traceIfEnabled(state, Diagnostics.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0, formatExtensions(priorityExtensions)); const result = lookup(priorityExtensions); if (result) return result; } if (secondaryExtensions && !typesScopeOnly) { + traceIfEnabled(state, Diagnostics.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0, formatExtensions(secondaryExtensions)); return lookup(secondaryExtensions); } function lookup(extensions2) { @@ -43416,6 +43785,9 @@ function traceIfEnabled(state, diagnostic, ...args) { trace(state.host, diagnostic, ...args); } } +function useCaseSensitiveFileNames(state) { + return !state.host.useCaseSensitiveFileNames ? true : typeof state.host.useCaseSensitiveFileNames === "boolean" ? state.host.useCaseSensitiveFileNames : state.host.useCaseSensitiveFileNames(); +} // src/compiler/binder.ts var ModuleInstanceState = /* @__PURE__ */ ((ModuleInstanceState2) => { @@ -43447,23 +43819,23 @@ function getModuleInstanceStateCached(node, visited = /* @__PURE__ */ new Map()) } function getModuleInstanceStateWorker(node, visited) { switch (node.kind) { - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: return 0 /* NonInstantiated */; - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: if (isEnumConst(node)) { return 2 /* ConstEnumOnly */; } break; - case 271 /* ImportDeclaration */: - case 270 /* ImportEqualsDeclaration */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: if (!hasSyntacticModifier(node, 1 /* Export */)) { return 0 /* NonInstantiated */; } break; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: const exportDeclaration = node; - if (!exportDeclaration.moduleSpecifier && exportDeclaration.exportClause && exportDeclaration.exportClause.kind === 278 /* NamedExports */) { + if (!exportDeclaration.moduleSpecifier && exportDeclaration.exportClause && exportDeclaration.exportClause.kind === 279 /* NamedExports */) { let state = 0 /* NonInstantiated */; for (const specifier of exportDeclaration.exportClause.elements) { const specifierState = getModuleInstanceStateForAliasTarget(specifier, visited); @@ -43477,7 +43849,7 @@ function getModuleInstanceStateWorker(node, visited) { return state; } break; - case 267 /* ModuleBlock */: { + case 268 /* ModuleBlock */: { let state = 0 /* NonInstantiated */; forEachChild(node, (n) => { const childState = getModuleInstanceStateCached(n, visited); @@ -43496,10 +43868,10 @@ function getModuleInstanceStateWorker(node, visited) { }); return state; } - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return getModuleInstanceState(node, visited); case 80 /* Identifier */: - if (node.flags & 2048 /* IdentifierIsInJSDocNamespace */) { + if (node.flags & 4096 /* IdentifierIsInJSDocNamespace */) { return 0 /* NonInstantiated */; } } @@ -43529,6 +43901,9 @@ function getModuleInstanceStateForAliasTarget(specifier, visited) { if (found === 1 /* Instantiated */) { return found; } + if (statement.kind === 271 /* ImportEqualsDeclaration */) { + found = 1 /* Instantiated */; + } } } if (found !== void 0) { @@ -43539,6 +43914,18 @@ function getModuleInstanceStateForAliasTarget(specifier, visited) { } return 1 /* Instantiated */; } +var ContainerFlags = /* @__PURE__ */ ((ContainerFlags2) => { + ContainerFlags2[ContainerFlags2["None"] = 0] = "None"; + ContainerFlags2[ContainerFlags2["IsContainer"] = 1] = "IsContainer"; + ContainerFlags2[ContainerFlags2["IsBlockScopedContainer"] = 2] = "IsBlockScopedContainer"; + ContainerFlags2[ContainerFlags2["IsControlFlowContainer"] = 4] = "IsControlFlowContainer"; + ContainerFlags2[ContainerFlags2["IsFunctionLike"] = 8] = "IsFunctionLike"; + ContainerFlags2[ContainerFlags2["IsFunctionExpression"] = 16] = "IsFunctionExpression"; + ContainerFlags2[ContainerFlags2["HasLocals"] = 32] = "HasLocals"; + ContainerFlags2[ContainerFlags2["IsInterface"] = 64] = "IsInterface"; + ContainerFlags2[ContainerFlags2["IsObjectLiteralOrClassExpressionMethodOrAccessor"] = 128] = "IsObjectLiteralOrClassExpressionMethodOrAccessor"; + return ContainerFlags2; +})(ContainerFlags || {}); function initFlowNode(node) { Debug.attachFlowNodeDebugInfo(node); return node; @@ -43663,7 +44050,7 @@ function createBinder() { } } function getDeclarationName(node) { - if (node.kind === 276 /* ExportAssignment */) { + if (node.kind === 277 /* ExportAssignment */) { return node.isExportEquals ? "export=" /* ExportEquals */ : "default" /* Default */; } const name = getNameOfDeclaration(node); @@ -43672,7 +44059,7 @@ function createBinder() { const moduleName = getTextOfIdentifierOrLiteral(name); return isGlobalScopeAugmentation(node) ? "__global" : `"${moduleName}"`; } - if (name.kind === 166 /* ComputedPropertyName */) { + if (name.kind === 167 /* ComputedPropertyName */) { const nameExpression = name.expression; if (isStringOrNumericLiteralLike(nameExpression)) { return escapeLeadingUnderscores(nameExpression.text); @@ -43697,31 +44084,31 @@ function createBinder() { return isPropertyNameLiteral(name) ? getEscapedTextOfIdentifierOrLiteral(name) : void 0; } switch (node.kind) { - case 175 /* Constructor */: + case 176 /* Constructor */: return "__constructor" /* Constructor */; - case 183 /* FunctionType */: - case 178 /* CallSignature */: - case 329 /* JSDocSignature */: + case 184 /* FunctionType */: + case 179 /* CallSignature */: + case 330 /* JSDocSignature */: return "__call" /* Call */; - case 184 /* ConstructorType */: - case 179 /* ConstructSignature */: + case 185 /* ConstructorType */: + case 180 /* ConstructSignature */: return "__new" /* New */; - case 180 /* IndexSignature */: + case 181 /* IndexSignature */: return "__index" /* Index */; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return "__export" /* ExportStar */; - case 311 /* SourceFile */: + case 312 /* SourceFile */: return "export=" /* ExportEquals */; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: if (getAssignmentDeclarationKind(node) === 2 /* ModuleExports */) { return "export=" /* ExportEquals */; } Debug.fail("Unknown binary declaration kind"); break; - case 323 /* JSDocFunctionType */: + case 324 /* JSDocFunctionType */: return isJSDocConstructSignature(node) ? "__new" /* New */ : "__call" /* Call */; - case 168 /* Parameter */: - Debug.assert(node.parent.kind === 323 /* JSDocFunctionType */, "Impossible parameter parent kind", () => `parent is: ${Debug.formatSyntaxKind(node.parent.kind)}, expected JSDocFunctionType`); + case 169 /* Parameter */: + Debug.assert(node.parent.kind === 324 /* JSDocFunctionType */, "Impossible parameter parent kind", () => `parent is: ${Debug.formatSyntaxKind(node.parent.kind)}, expected JSDocFunctionType`); const functionType = node.parent; const index = functionType.parameters.indexOf(node); return "arg" + index; @@ -43768,7 +44155,7 @@ function createBinder() { messageNeedsName = false; multipleDefaultExports = true; } else { - if (symbol.declarations && symbol.declarations.length && (node.kind === 276 /* ExportAssignment */ && !node.isExportEquals)) { + if (symbol.declarations && symbol.declarations.length && (node.kind === 277 /* ExportAssignment */ && !node.isExportEquals)) { message = Diagnostics.A_module_cannot_have_multiple_default_exports; messageNeedsName = false; multipleDefaultExports = true; @@ -43807,7 +44194,7 @@ function createBinder() { function declareModuleMember(node, symbolFlags, symbolExcludes) { const hasExportModifier = !!(getCombinedModifierFlags(node) & 1 /* Export */) || jsdocTreatAsExported(node); if (symbolFlags & 2097152 /* Alias */) { - if (node.kind === 280 /* ExportSpecifier */ || node.kind === 270 /* ImportEqualsDeclaration */ && hasExportModifier) { + if (node.kind === 281 /* ExportSpecifier */ || node.kind === 271 /* ImportEqualsDeclaration */ && hasExportModifier) { return declareSymbol(container.symbol.exports, container.symbol, node, symbolFlags, symbolExcludes); } else { Debug.assertNode(container, canHaveLocals); @@ -43823,7 +44210,7 @@ function createBinder() { } else { if (isJSDocTypeAlias(node)) Debug.assert(isInJSFile(node)); - if (!isAmbientModule(node) && (hasExportModifier || container.flags & 64 /* ExportContext */)) { + if (!isAmbientModule(node) && (hasExportModifier || container.flags & 128 /* ExportContext */)) { if (!canHaveLocals(container) || !container.locals || hasSyntacticModifier(node, 1024 /* Default */) && !getDeclarationName(node)) { return declareSymbol(container.symbol.exports, container.symbol, node, symbolFlags, symbolExcludes); } @@ -43874,7 +44261,7 @@ function createBinder() { const saveThisParentContainer = thisParentContainer; const savedBlockScopeContainer = blockScopeContainer; if (containerFlags & 1 /* IsContainer */) { - if (node.kind !== 218 /* ArrowFunction */) { + if (node.kind !== 219 /* ArrowFunction */) { thisParentContainer = container; } container = blockScopeContainer = node; @@ -43896,35 +44283,35 @@ function createBinder() { const saveExceptionTarget = currentExceptionTarget; const saveActiveLabelList = activeLabelList; const saveHasExplicitReturn = hasExplicitReturn; - const isImmediatelyInvoked = containerFlags & 16 /* IsFunctionExpression */ && !hasSyntacticModifier(node, 512 /* Async */) && !node.asteriskToken && !!getImmediatelyInvokedFunctionExpression(node) || node.kind === 174 /* ClassStaticBlockDeclaration */; + const isImmediatelyInvoked = containerFlags & 16 /* IsFunctionExpression */ && !hasSyntacticModifier(node, 512 /* Async */) && !node.asteriskToken && !!getImmediatelyInvokedFunctionExpression(node) || node.kind === 175 /* ClassStaticBlockDeclaration */; if (!isImmediatelyInvoked) { currentFlow = initFlowNode({ flags: 2 /* Start */ }); if (containerFlags & (16 /* IsFunctionExpression */ | 128 /* IsObjectLiteralOrClassExpressionMethodOrAccessor */)) { currentFlow.node = node; } } - currentReturnTarget = isImmediatelyInvoked || node.kind === 175 /* Constructor */ || isInJSFile(node) && (node.kind === 261 /* FunctionDeclaration */ || node.kind === 217 /* FunctionExpression */) ? createBranchLabel() : void 0; + currentReturnTarget = isImmediatelyInvoked || node.kind === 176 /* Constructor */ || isInJSFile(node) && (node.kind === 262 /* FunctionDeclaration */ || node.kind === 218 /* FunctionExpression */) ? createBranchLabel() : void 0; currentExceptionTarget = void 0; currentBreakTarget = void 0; currentContinueTarget = void 0; activeLabelList = void 0; hasExplicitReturn = false; bindChildren(node); - node.flags &= ~2816 /* ReachabilityAndEmitFlags */; + node.flags &= ~5632 /* ReachabilityAndEmitFlags */; if (!(currentFlow.flags & 1 /* Unreachable */) && containerFlags & 8 /* IsFunctionLike */ && nodeIsPresent(node.body)) { - node.flags |= 256 /* HasImplicitReturn */; + node.flags |= 512 /* HasImplicitReturn */; if (hasExplicitReturn) - node.flags |= 512 /* HasExplicitReturn */; + node.flags |= 1024 /* HasExplicitReturn */; node.endFlowNode = currentFlow; } - if (node.kind === 311 /* SourceFile */) { + if (node.kind === 312 /* SourceFile */) { node.flags |= emitFlags; node.endFlowNode = currentFlow; } if (currentReturnTarget) { addAntecedent(currentReturnTarget, currentFlow); currentFlow = finishFlowLabel(currentReturnTarget); - if (node.kind === 175 /* Constructor */ || node.kind === 174 /* ClassStaticBlockDeclaration */ || isInJSFile(node) && (node.kind === 261 /* FunctionDeclaration */ || node.kind === 217 /* FunctionExpression */)) { + if (node.kind === 176 /* Constructor */ || node.kind === 175 /* ClassStaticBlockDeclaration */ || isInJSFile(node) && (node.kind === 262 /* FunctionDeclaration */ || node.kind === 218 /* FunctionExpression */)) { node.returnFlowNode = currentFlow; } } @@ -43941,7 +44328,7 @@ function createBinder() { seenThisKeyword = false; bindChildren(node); Debug.assertNotNode(node, isIdentifier); - node.flags = seenThisKeyword ? node.flags | 128 /* ContainsThis */ : node.flags & ~128 /* ContainsThis */; + node.flags = seenThisKeyword ? node.flags | 256 /* ContainsThis */ : node.flags & ~256 /* ContainsThis */; } else { bindChildren(node); } @@ -43950,8 +44337,8 @@ function createBinder() { blockScopeContainer = savedBlockScopeContainer; } function bindEachFunctionsFirst(nodes) { - bindEach(nodes, (n) => n.kind === 261 /* FunctionDeclaration */ ? bind(n) : void 0); - bindEach(nodes, (n) => n.kind !== 261 /* FunctionDeclaration */ ? bind(n) : void 0); + bindEach(nodes, (n) => n.kind === 262 /* FunctionDeclaration */ ? bind(n) : void 0); + bindEach(nodes, (n) => n.kind !== 262 /* FunctionDeclaration */ ? bind(n) : void 0); } function bindEach(nodes, bindFunction = bind) { if (nodes === void 0) { @@ -43971,59 +44358,59 @@ function createBinder() { inAssignmentPattern = saveInAssignmentPattern; return; } - if (node.kind >= 242 /* FirstStatement */ && node.kind <= 258 /* LastStatement */ && !options.allowUnreachableCode) { + if (node.kind >= 243 /* FirstStatement */ && node.kind <= 259 /* LastStatement */ && !options.allowUnreachableCode) { node.flowNode = currentFlow; } switch (node.kind) { - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: bindWhileStatement(node); break; - case 245 /* DoStatement */: + case 246 /* DoStatement */: bindDoStatement(node); break; - case 247 /* ForStatement */: + case 248 /* ForStatement */: bindForStatement(node); break; - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: bindForInOrForOfStatement(node); break; - case 244 /* IfStatement */: + case 245 /* IfStatement */: bindIfStatement(node); break; - case 252 /* ReturnStatement */: - case 256 /* ThrowStatement */: + case 253 /* ReturnStatement */: + case 257 /* ThrowStatement */: bindReturnOrThrow(node); break; - case 251 /* BreakStatement */: - case 250 /* ContinueStatement */: + case 252 /* BreakStatement */: + case 251 /* ContinueStatement */: bindBreakOrContinueStatement(node); break; - case 257 /* TryStatement */: + case 258 /* TryStatement */: bindTryStatement(node); break; - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: bindSwitchStatement(node); break; - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: bindCaseBlock(node); break; - case 295 /* CaseClause */: + case 296 /* CaseClause */: bindCaseClause(node); break; - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: bindExpressionStatement(node); break; - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: bindLabeledStatement(node); break; - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: bindPrefixUnaryExpressionFlow(node); break; - case 224 /* PostfixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: bindPostfixUnaryExpressionFlow(node); break; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: if (isDestructuringAssignment(node)) { inAssignmentPattern = saveInAssignmentPattern; bindDestructuringAssignmentFlow(node); @@ -44031,49 +44418,49 @@ function createBinder() { } bindBinaryExpressionFlow(node); break; - case 219 /* DeleteExpression */: + case 220 /* DeleteExpression */: bindDeleteExpressionFlow(node); break; - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: bindConditionalExpressionFlow(node); break; - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: bindVariableDeclarationFlow(node); break; - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: bindAccessExpressionFlow(node); break; - case 212 /* CallExpression */: + case 213 /* CallExpression */: bindCallExpressionFlow(node); break; - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: bindNonNullExpressionFlow(node); break; - case 352 /* JSDocTypedefTag */: - case 344 /* JSDocCallbackTag */: - case 346 /* JSDocEnumTag */: + case 353 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: + case 347 /* JSDocEnumTag */: bindJSDocTypeAlias(node); break; - case 311 /* SourceFile */: { + case 312 /* SourceFile */: { bindEachFunctionsFirst(node.statements); bind(node.endOfFileToken); break; } - case 240 /* Block */: - case 267 /* ModuleBlock */: + case 241 /* Block */: + case 268 /* ModuleBlock */: bindEachFunctionsFirst(node.statements); break; - case 207 /* BindingElement */: + case 208 /* BindingElement */: bindBindingElementFlow(node); break; - case 168 /* Parameter */: + case 169 /* Parameter */: bindParameterFlow(node); break; - case 209 /* ObjectLiteralExpression */: - case 208 /* ArrayLiteralExpression */: - case 302 /* PropertyAssignment */: - case 229 /* SpreadElement */: + case 210 /* ObjectLiteralExpression */: + case 209 /* ArrayLiteralExpression */: + case 303 /* PropertyAssignment */: + case 230 /* SpreadElement */: inAssignmentPattern = saveInAssignmentPattern; default: bindEachChild(node); @@ -44087,19 +44474,19 @@ function createBinder() { case 80 /* Identifier */: case 81 /* PrivateIdentifier */: case 110 /* ThisKeyword */: - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return containsNarrowableReference(expr); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return hasNarrowableArgument(expr); - case 216 /* ParenthesizedExpression */: - case 234 /* NonNullExpression */: + case 217 /* ParenthesizedExpression */: + case 235 /* NonNullExpression */: return isNarrowingExpression(expr.expression); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return isNarrowingBinaryExpression(expr); - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: return expr.operator === 54 /* ExclamationToken */ && isNarrowingExpression(expr.operand); - case 220 /* TypeOfExpression */: + case 221 /* TypeOfExpression */: return isNarrowingExpression(expr.expression); } return false; @@ -44118,7 +44505,7 @@ function createBinder() { } } } - if (expr.expression.kind === 210 /* PropertyAccessExpression */ && containsNarrowableReference(expr.expression.expression)) { + if (expr.expression.kind === 211 /* PropertyAccessExpression */ && containsNarrowableReference(expr.expression.expression)) { return true; } return false; @@ -44149,9 +44536,9 @@ function createBinder() { } function isNarrowableOperand(expr) { switch (expr.kind) { - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return isNarrowableOperand(expr.expression); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: switch (expr.operatorToken.kind) { case 64 /* EqualsToken */: return isNarrowableOperand(expr.left); @@ -44224,21 +44611,21 @@ function createBinder() { function isStatementCondition(node) { const parent3 = node.parent; switch (parent3.kind) { - case 244 /* IfStatement */: - case 246 /* WhileStatement */: - case 245 /* DoStatement */: + case 245 /* IfStatement */: + case 247 /* WhileStatement */: + case 246 /* DoStatement */: return parent3.expression === node; - case 247 /* ForStatement */: - case 226 /* ConditionalExpression */: + case 248 /* ForStatement */: + case 227 /* ConditionalExpression */: return parent3.condition === node; } return false; } function isLogicalExpression(node) { while (true) { - if (node.kind === 216 /* ParenthesizedExpression */) { + if (node.kind === 217 /* ParenthesizedExpression */) { node = node.expression; - } else if (node.kind === 223 /* PrefixUnaryExpression */ && node.operator === 54 /* ExclamationToken */) { + } else if (node.kind === 224 /* PrefixUnaryExpression */ && node.operator === 54 /* ExclamationToken */) { node = node.operand; } else { return isLogicalOrCoalescingBinaryExpression(node); @@ -44281,7 +44668,7 @@ function createBinder() { } function setContinueTarget(node, target) { let label = activeLabelList; - while (label && node.parent.kind === 255 /* LabeledStatement */) { + while (label && node.parent.kind === 256 /* LabeledStatement */) { label.continueTarget = target; label = label.next; node = node.parent; @@ -44332,12 +44719,12 @@ function createBinder() { bind(node.expression); addAntecedent(preLoopLabel, currentFlow); currentFlow = preLoopLabel; - if (node.kind === 249 /* ForOfStatement */) { + if (node.kind === 250 /* ForOfStatement */) { bind(node.awaitModifier); } addAntecedent(postLoopLabel, currentFlow); bind(node.initializer); - if (node.initializer.kind !== 260 /* VariableDeclarationList */) { + if (node.initializer.kind !== 261 /* VariableDeclarationList */) { bindAssignmentTargetFlow(node.initializer); } bindIterativeStatement(node.statement, postLoopLabel, preLoopLabel); @@ -44359,7 +44746,7 @@ function createBinder() { } function bindReturnOrThrow(node) { bind(node.expression); - if (node.kind === 252 /* ReturnStatement */) { + if (node.kind === 253 /* ReturnStatement */) { hasExplicitReturn = true; if (currentReturnTarget) { addAntecedent(currentReturnTarget, currentFlow); @@ -44376,7 +44763,7 @@ function createBinder() { return void 0; } function bindBreakOrContinueFlow(node, breakTarget, continueTarget) { - const flowLabel = node.kind === 251 /* BreakStatement */ ? breakTarget : continueTarget; + const flowLabel = node.kind === 252 /* BreakStatement */ ? breakTarget : continueTarget; if (flowLabel) { addAntecedent(flowLabel, currentFlow); currentFlow = unreachableFlow; @@ -44446,7 +44833,7 @@ function createBinder() { preSwitchCaseFlow = currentFlow; bind(node.caseBlock); addAntecedent(postSwitchLabel, currentFlow); - const hasDefault = forEach(node.caseBlock.clauses, (c) => c.kind === 296 /* DefaultClause */); + const hasDefault = forEach(node.caseBlock.clauses, (c) => c.kind === 297 /* DefaultClause */); node.possiblyExhaustive = !hasDefault && !postSwitchLabel.antecedents; if (!hasDefault) { addAntecedent(postSwitchLabel, createFlowSwitchClause(preSwitchCaseFlow, node, 0, 0)); @@ -44489,7 +44876,7 @@ function createBinder() { maybeBindExpressionFlowIfCall(node.expression); } function maybeBindExpressionFlowIfCall(node) { - if (node.kind === 212 /* CallExpression */) { + if (node.kind === 213 /* CallExpression */) { const call = node; if (call.expression.kind !== 108 /* SuperKeyword */ && isDottedName(call.expression)) { currentFlow = createFlowCall(currentFlow, call); @@ -44515,7 +44902,7 @@ function createBinder() { currentFlow = finishFlowLabel(postStatementLabel); } function bindDestructuringTargetFlow(node) { - if (node.kind === 225 /* BinaryExpression */ && node.operatorToken.kind === 64 /* EqualsToken */) { + if (node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 64 /* EqualsToken */) { bindAssignmentTargetFlow(node.left); } else { bindAssignmentTargetFlow(node); @@ -44524,21 +44911,21 @@ function createBinder() { function bindAssignmentTargetFlow(node) { if (isNarrowableReference(node)) { currentFlow = createFlowMutation(16 /* Assignment */, currentFlow, node); - } else if (node.kind === 208 /* ArrayLiteralExpression */) { + } else if (node.kind === 209 /* ArrayLiteralExpression */) { for (const e of node.elements) { - if (e.kind === 229 /* SpreadElement */) { + if (e.kind === 230 /* SpreadElement */) { bindAssignmentTargetFlow(e.expression); } else { bindDestructuringTargetFlow(e); } } - } else if (node.kind === 209 /* ObjectLiteralExpression */) { + } else if (node.kind === 210 /* ObjectLiteralExpression */) { for (const p of node.properties) { - if (p.kind === 302 /* PropertyAssignment */) { + if (p.kind === 303 /* PropertyAssignment */) { bindDestructuringTargetFlow(p.initializer); - } else if (p.kind === 303 /* ShorthandPropertyAssignment */) { + } else if (p.kind === 304 /* ShorthandPropertyAssignment */) { bindAssignmentTargetFlow(p.name); - } else if (p.kind === 304 /* SpreadAssignment */) { + } else if (p.kind === 305 /* SpreadAssignment */) { bindAssignmentTargetFlow(p.expression); } } @@ -44669,7 +45056,7 @@ function createBinder() { const operator = node.operatorToken.kind; if (isAssignmentOperator(operator) && !isAssignmentTarget(node)) { bindAssignmentTargetFlow(node.left); - if (operator === 64 /* EqualsToken */ && node.left.kind === 211 /* ElementAccessExpression */) { + if (operator === 64 /* EqualsToken */ && node.left.kind === 212 /* ElementAccessExpression */) { const elementAccess = node.left; if (isNarrowableOperand(elementAccess.expression)) { currentFlow = createFlowMutation(256 /* ArrayMutation */, currentFlow, node); @@ -44697,7 +45084,7 @@ function createBinder() { } function bindDeleteExpressionFlow(node) { bindEachChild(node); - if (node.expression.kind === 210 /* PropertyAccessExpression */) { + if (node.expression.kind === 211 /* PropertyAccessExpression */) { bindAssignmentTargetFlow(node.expression); } } @@ -44762,7 +45149,7 @@ function createBinder() { } function bindJSDocTypeAlias(node) { bind(node.tagName); - if (node.kind !== 346 /* JSDocEnumTag */ && node.fullName) { + if (node.kind !== 347 /* JSDocEnumTag */ && node.fullName) { setParent(node.fullName, node); setParentRecursive( node.fullName, @@ -44777,7 +45164,7 @@ function createBinder() { function bindJSDocClassTag(node) { bindEachChild(node); const host = getHostSignatureFromJSDoc(node); - if (host && host.kind !== 173 /* MethodDeclaration */) { + if (host && host.kind !== 174 /* MethodDeclaration */) { addDeclarationToSymbol(host.symbol, host, 32 /* Class */); } } @@ -44790,15 +45177,15 @@ function createBinder() { } function bindOptionalChainRest(node) { switch (node.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: bind(node.questionDotToken); bind(node.name); break; - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: bind(node.questionDotToken); bind(node.argumentExpression); break; - case 212 /* CallExpression */: + case 213 /* CallExpression */: bind(node.questionDotToken); bindEach(node.typeArguments); bindEach(node.arguments); @@ -44845,7 +45232,7 @@ function createBinder() { bindOptionalChainFlow(node); } else { const expr = skipParentheses(node.expression); - if (expr.kind === 217 /* FunctionExpression */ || expr.kind === 218 /* ArrowFunction */) { + if (expr.kind === 218 /* FunctionExpression */ || expr.kind === 219 /* ArrowFunction */) { bindEach(node.typeArguments); bindEach(node.arguments); bind(node.expression); @@ -44856,7 +45243,7 @@ function createBinder() { } } } - if (node.expression.kind === 210 /* PropertyAccessExpression */) { + if (node.expression.kind === 211 /* PropertyAccessExpression */) { const propertyAccess = node.expression; if (isIdentifier(propertyAccess.name) && isNarrowableOperand(propertyAccess.expression) && isPushOrUnshiftIdentifier(propertyAccess.name)) { currentFlow = createFlowMutation(256 /* ArrayMutation */, currentFlow, node); @@ -44871,39 +45258,39 @@ function createBinder() { } function declareSymbolAndAddToSymbolTable(node, symbolFlags, symbolExcludes) { switch (container.kind) { - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return declareModuleMember(node, symbolFlags, symbolExcludes); - case 311 /* SourceFile */: + case 312 /* SourceFile */: return declareSourceFileMember(node, symbolFlags, symbolExcludes); - case 230 /* ClassExpression */: - case 262 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 263 /* ClassDeclaration */: return declareClassMember(node, symbolFlags, symbolExcludes); - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return declareSymbol(container.symbol.exports, container.symbol, node, symbolFlags, symbolExcludes); - case 186 /* TypeLiteral */: - case 328 /* JSDocTypeLiteral */: - case 209 /* ObjectLiteralExpression */: - case 263 /* InterfaceDeclaration */: - case 291 /* JsxAttributes */: + case 187 /* TypeLiteral */: + case 329 /* JSDocTypeLiteral */: + case 210 /* ObjectLiteralExpression */: + case 264 /* InterfaceDeclaration */: + case 292 /* JsxAttributes */: return declareSymbol(container.symbol.members, container.symbol, node, symbolFlags, symbolExcludes); - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 329 /* JSDocSignature */: - case 180 /* IndexSignature */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 323 /* JSDocFunctionType */: - case 174 /* ClassStaticBlockDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 199 /* MappedType */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 330 /* JSDocSignature */: + case 181 /* IndexSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 324 /* JSDocFunctionType */: + case 175 /* ClassStaticBlockDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 200 /* MappedType */: if (container.locals) Debug.assertNode(container, canHaveLocals); return declareSymbol( @@ -44934,10 +45321,10 @@ function createBinder() { return !!body && body.statements.some((s) => isExportDeclaration(s) || isExportAssignment(s)); } function setExportContextFlag(node) { - if (node.flags & 16777216 /* Ambient */ && !hasExportDeclarations(node)) { - node.flags |= 64 /* ExportContext */; + if (node.flags & 33554432 /* Ambient */ && !hasExportDeclarations(node)) { + node.flags |= 128 /* ExportContext */; } else { - node.flags &= ~64 /* ExportContext */; + node.flags &= ~128 /* ExportContext */; } } function bindModuleDeclaration(node) { @@ -45005,10 +45392,10 @@ function createBinder() { } function bindBlockScopedDeclaration(node, symbolFlags, symbolExcludes) { switch (blockScopeContainer.kind) { - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: declareModuleMember(node, symbolFlags, symbolExcludes); break; - case 311 /* SourceFile */: + case 312 /* SourceFile */: if (isExternalOrCommonJsModule(container)) { declareModuleMember(node, symbolFlags, symbolExcludes); break; @@ -45040,7 +45427,7 @@ function createBinder() { const saveCurrentFlow = currentFlow; for (const typeAlias of delayedTypeAliases) { const host = typeAlias.parent.parent; - container = findAncestor(host.parent, (n) => !!(getContainerFlags(n) & 1 /* IsContainer */)) || file; + container = getEnclosingContainer(host) || file; blockScopeContainer = getEnclosingBlockScopeContainer(host) || file; currentFlow = initFlowNode({ flags: 2 /* Start */ }); parent2 = typeAlias; @@ -45098,7 +45485,7 @@ function createBinder() { currentFlow = saveCurrentFlow; } function checkContextualIdentifier(node) { - if (!file.parseDiagnostics.length && !(node.flags & 16777216 /* Ambient */) && !(node.flags & 8388608 /* JSDoc */) && !isIdentifierName(node)) { + if (!file.parseDiagnostics.length && !(node.flags & 33554432 /* Ambient */) && !(node.flags & 16777216 /* JSDoc */) && !isIdentifierName(node)) { const originalKeywordKind = identifierToKeywordKind(node); if (originalKeywordKind === void 0) { return; @@ -45116,14 +45503,14 @@ function createBinder() { Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module, declarationNameToString(node) )); - } else if (node.flags & 32768 /* AwaitContext */) { + } else if (node.flags & 65536 /* AwaitContext */) { file.bindDiagnostics.push(createDiagnosticForNode2( node, Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here, declarationNameToString(node) )); } - } else if (originalKeywordKind === 127 /* YieldKeyword */ && node.flags & 8192 /* YieldContext */) { + } else if (originalKeywordKind === 127 /* YieldKeyword */ && node.flags & 16384 /* YieldContext */) { file.bindDiagnostics.push(createDiagnosticForNode2( node, Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here, @@ -45211,7 +45598,7 @@ function createBinder() { } function checkStrictModeFunctionDeclaration(node) { if (languageVersion < 2 /* ES2015 */) { - if (blockScopeContainer.kind !== 311 /* SourceFile */ && blockScopeContainer.kind !== 266 /* ModuleDeclaration */ && !isFunctionLikeOrClassStaticBlockDeclaration(blockScopeContainer)) { + if (blockScopeContainer.kind !== 312 /* SourceFile */ && blockScopeContainer.kind !== 267 /* ModuleDeclaration */ && !isFunctionLikeOrClassStaticBlockDeclaration(blockScopeContainer)) { const errorSpan = getErrorSpanForNode(file, node); file.bindDiagnostics.push(createFileDiagnostic( file, @@ -45273,7 +45660,7 @@ function createBinder() { node.tracingPath = file.path; const saveInStrictMode = inStrictMode; bindWorker(node); - if (node.kind > 164 /* LastToken */) { + if (node.kind > 165 /* LastToken */) { const saveParent = parent2; parent2 = node; const containerFlags = getContainerFlags(node); @@ -45330,7 +45717,7 @@ function createBinder() { function bindWorker(node) { switch (node.kind) { case 80 /* Identifier */: - if (node.flags & 2048 /* IdentifierIsInJSDocNamespace */) { + if (node.flags & 4096 /* IdentifierIsInJSDocNamespace */) { let parentNode = node.parent; while (parentNode && !isJSDocTypeAlias(parentNode)) { parentNode = parentNode.parent; @@ -45339,23 +45726,23 @@ function createBinder() { break; } case 110 /* ThisKeyword */: - if (currentFlow && (isExpression(node) || parent2.kind === 303 /* ShorthandPropertyAssignment */)) { + if (currentFlow && (isExpression(node) || parent2.kind === 304 /* ShorthandPropertyAssignment */)) { node.flowNode = currentFlow; } return checkContextualIdentifier(node); - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: if (currentFlow && isPartOfTypeQuery(node)) { node.flowNode = currentFlow; } break; - case 235 /* MetaProperty */: + case 236 /* MetaProperty */: case 108 /* SuperKeyword */: node.flowNode = currentFlow; break; case 81 /* PrivateIdentifier */: return checkPrivateIdentifier(node); - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: const expr = node; if (currentFlow && isNarrowableReference(expr)) { expr.flowNode = currentFlow; @@ -45374,7 +45761,7 @@ function createBinder() { ); } break; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: const specialKind = getAssignmentDeclarationKind(node); switch (specialKind) { case 1 /* ExportsProperty */: @@ -45409,81 +45796,81 @@ function createBinder() { Debug.fail("Unknown binary expression special property assignment kind"); } return checkStrictModeBinaryExpression(node); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return checkStrictModeCatchClause(node); - case 219 /* DeleteExpression */: + case 220 /* DeleteExpression */: return checkStrictModeDeleteExpression(node); - case 224 /* PostfixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return checkStrictModePostfixUnaryExpression(node); - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: return checkStrictModePrefixUnaryExpression(node); - case 253 /* WithStatement */: + case 254 /* WithStatement */: return checkStrictModeWithStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return checkStrictModeLabeledStatement(node); - case 196 /* ThisType */: + case 197 /* ThisType */: seenThisKeyword = true; return; - case 181 /* TypePredicate */: + case 182 /* TypePredicate */: break; - case 167 /* TypeParameter */: + case 168 /* TypeParameter */: return bindTypeParameter(node); - case 168 /* Parameter */: + case 169 /* Parameter */: return bindParameter(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return bindVariableDeclarationOrBindingElement(node); - case 207 /* BindingElement */: + case 208 /* BindingElement */: node.flowNode = currentFlow; return bindVariableDeclarationOrBindingElement(node); - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: return bindPropertyWorker(node); - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return bindPropertyOrMethodOrAccessor(node, 4 /* Property */, 0 /* PropertyExcludes */); - case 305 /* EnumMember */: + case 306 /* EnumMember */: return bindPropertyOrMethodOrAccessor(node, 8 /* EnumMember */, 900095 /* EnumMemberExcludes */); - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 180 /* IndexSignature */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 181 /* IndexSignature */: return declareSymbolAndAddToSymbolTable(node, 131072 /* Signature */, 0 /* None */); - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: return bindPropertyOrMethodOrAccessor( node, 8192 /* Method */ | (node.questionToken ? 16777216 /* Optional */ : 0 /* None */), isObjectLiteralMethod(node) ? 0 /* PropertyExcludes */ : 103359 /* MethodExcludes */ ); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return bindFunctionDeclaration(node); - case 175 /* Constructor */: + case 176 /* Constructor */: return declareSymbolAndAddToSymbolTable( node, 16384 /* Constructor */, /*symbolExcludes:*/ 0 /* None */ ); - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return bindPropertyOrMethodOrAccessor(node, 32768 /* GetAccessor */, 46015 /* GetAccessorExcludes */); - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return bindPropertyOrMethodOrAccessor(node, 65536 /* SetAccessor */, 78783 /* SetAccessorExcludes */); - case 183 /* FunctionType */: - case 323 /* JSDocFunctionType */: - case 329 /* JSDocSignature */: - case 184 /* ConstructorType */: + case 184 /* FunctionType */: + case 324 /* JSDocFunctionType */: + case 330 /* JSDocSignature */: + case 185 /* ConstructorType */: return bindFunctionOrConstructorType(node); - case 186 /* TypeLiteral */: - case 328 /* JSDocTypeLiteral */: - case 199 /* MappedType */: + case 187 /* TypeLiteral */: + case 329 /* JSDocTypeLiteral */: + case 200 /* MappedType */: return bindAnonymousTypeWorker(node); - case 338 /* JSDocClassTag */: + case 339 /* JSDocClassTag */: return bindJSDocClassTag(node); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return bindObjectLiteralExpression(node); - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return bindFunctionExpression(node); - case 212 /* CallExpression */: + case 213 /* CallExpression */: const assignmentKind = getAssignmentDeclarationKind(node); switch (assignmentKind) { case 7 /* ObjectDefinePropertyValue */: @@ -45501,60 +45888,60 @@ function createBinder() { bindCallExpression(node); } break; - case 230 /* ClassExpression */: - case 262 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 263 /* ClassDeclaration */: inStrictMode = true; return bindClassLikeDeclaration(node); - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: return bindBlockScopedDeclaration(node, 64 /* Interface */, 788872 /* InterfaceExcludes */); - case 264 /* TypeAliasDeclaration */: + case 265 /* TypeAliasDeclaration */: return bindBlockScopedDeclaration(node, 524288 /* TypeAlias */, 788968 /* TypeAliasExcludes */); - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return bindEnumDeclaration(node); - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return bindModuleDeclaration(node); - case 291 /* JsxAttributes */: + case 292 /* JsxAttributes */: return bindJsxAttributes(node); - case 290 /* JsxAttribute */: + case 291 /* JsxAttribute */: return bindJsxAttribute(node, 4 /* Property */, 0 /* PropertyExcludes */); - case 270 /* ImportEqualsDeclaration */: - case 273 /* NamespaceImport */: - case 275 /* ImportSpecifier */: - case 280 /* ExportSpecifier */: + case 271 /* ImportEqualsDeclaration */: + case 274 /* NamespaceImport */: + case 276 /* ImportSpecifier */: + case 281 /* ExportSpecifier */: return declareSymbolAndAddToSymbolTable(node, 2097152 /* Alias */, 2097152 /* AliasExcludes */); - case 269 /* NamespaceExportDeclaration */: + case 270 /* NamespaceExportDeclaration */: return bindNamespaceExportDeclaration(node); - case 272 /* ImportClause */: + case 273 /* ImportClause */: return bindImportClause(node); - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return bindExportDeclaration(node); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return bindExportAssignment(node); - case 311 /* SourceFile */: + case 312 /* SourceFile */: updateStrictModeStatementList(node.statements); return bindSourceFileIfExternalModule(); - case 240 /* Block */: + case 241 /* Block */: if (!isFunctionLikeOrClassStaticBlockDeclaration(node.parent)) { return; } - case 267 /* ModuleBlock */: + case 268 /* ModuleBlock */: return updateStrictModeStatementList(node.statements); - case 347 /* JSDocParameterTag */: - if (node.parent.kind === 329 /* JSDocSignature */) { + case 348 /* JSDocParameterTag */: + if (node.parent.kind === 330 /* JSDocSignature */) { return bindParameter(node); } - if (node.parent.kind !== 328 /* JSDocTypeLiteral */) { + if (node.parent.kind !== 329 /* JSDocTypeLiteral */) { break; } - case 354 /* JSDocPropertyTag */: + case 355 /* JSDocPropertyTag */: const propTag = node; - const flags = propTag.isBracketed || propTag.typeExpression && propTag.typeExpression.type.kind === 322 /* JSDocOptionalType */ ? 4 /* Property */ | 16777216 /* Optional */ : 4 /* Property */; + const flags = propTag.isBracketed || propTag.typeExpression && propTag.typeExpression.type.kind === 323 /* JSDocOptionalType */ ? 4 /* Property */ | 16777216 /* Optional */ : 4 /* Property */; return declareSymbolAndAddToSymbolTable(propTag, flags, 0 /* PropertyExcludes */); - case 352 /* JSDocTypedefTag */: - case 344 /* JSDocCallbackTag */: - case 346 /* JSDocEnumTag */: + case 353 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: + case 347 /* JSDocEnumTag */: return (delayedTypeAliases || (delayedTypeAliases = [])).push(node); - case 345 /* JSDocOverloadTag */: + case 346 /* JSDocOverloadTag */: return bind(node.typeExpression); } } @@ -45706,8 +46093,8 @@ function createBinder() { false ); switch (thisContainer.kind) { - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: let constructorSymbol = thisContainer.symbol; if (isBinaryExpression(thisContainer.parent) && thisContainer.parent.operatorToken.kind === 64 /* EqualsToken */) { const l = thisContainer.parent.left; @@ -45725,12 +46112,12 @@ function createBinder() { addDeclarationToSymbol(constructorSymbol, constructorSymbol.valueDeclaration, 32 /* Class */); } break; - case 175 /* Constructor */: - case 171 /* PropertyDeclaration */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 174 /* ClassStaticBlockDeclaration */: + case 176 /* Constructor */: + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 175 /* ClassStaticBlockDeclaration */: const containingClass = thisContainer.parent; const symbolTable = isStatic(thisContainer) ? containingClass.symbol.exports : containingClass.symbol.members; if (hasDynamicName(node)) { @@ -45747,7 +46134,7 @@ function createBinder() { ); } break; - case 311 /* SourceFile */: + case 312 /* SourceFile */: if (hasDynamicName(node)) { break; } else if (thisContainer.commonJsModuleIndicator) { @@ -45756,7 +46143,7 @@ function createBinder() { declareSymbolAndAddToSymbolTable(node, 1 /* FunctionScopedVariable */, 111550 /* FunctionScopedVariableExcludes */); } break; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: break; default: Debug.failBadSyntaxKind(thisContainer); @@ -45784,7 +46171,7 @@ function createBinder() { function bindSpecialPropertyDeclaration(node) { if (node.expression.kind === 110 /* ThisKeyword */) { bindThisPropertyAssignment(node); - } else if (isBindableStaticAccessExpression(node) && node.parent.parent.kind === 311 /* SourceFile */) { + } else if (isBindableStaticAccessExpression(node) && node.parent.parent.kind === 312 /* SourceFile */) { if (isPrototypeAccess(node.expression)) { bindPrototypePropertyAssignment(node, node.parent); } else { @@ -45833,7 +46220,7 @@ function createBinder() { } function bindObjectDefinePropertyAssignment(node) { let namespaceSymbol = lookupSymbolForPropertyAccess(node.arguments[0]); - const isToplevel = node.parent.parent.kind === 311 /* SourceFile */; + const isToplevel = node.parent.parent.kind === 312 /* SourceFile */; namespaceSymbol = bindPotentiallyMissingNamespaces( namespaceSymbol, node.arguments[0], @@ -45947,7 +46334,7 @@ function createBinder() { declareSymbol(symbolTable, namespaceSymbol, declaration, includes | 67108864 /* Assignment */, excludes & ~67108864 /* Assignment */); } function isTopLevelNamespaceAssignment(propertyAccess) { - return isBinaryExpression(propertyAccess.parent) ? getParentOfBinaryExpression(propertyAccess.parent).parent.kind === 311 /* SourceFile */ : propertyAccess.parent.parent.kind === 311 /* SourceFile */; + return isBinaryExpression(propertyAccess.parent) ? getParentOfBinaryExpression(propertyAccess.parent).parent.kind === 312 /* SourceFile */ : propertyAccess.parent.parent.kind === 312 /* SourceFile */; } function bindPropertyAssignment(name, propertyAccess, isPrototypeProperty, containerIsClass) { let namespaceSymbol = lookupSymbolForPropertyAccess(name, container) || lookupSymbolForPropertyAccess(name, blockScopeContainer); @@ -46009,7 +46396,7 @@ function createBinder() { } } function bindClassLikeDeclaration(node) { - if (node.kind === 262 /* ClassDeclaration */) { + if (node.kind === 263 /* ClassDeclaration */) { bindBlockScopedDeclaration(node, 32 /* Class */, 899503 /* ClassExcludes */); } else { const bindingName = node.name ? node.name.escapedText : "__class" /* Class */; @@ -46038,7 +46425,7 @@ function createBinder() { checkStrictModeEvalOrArguments(node, node.name); } if (!isBindingPattern(node.name)) { - const possibleVariableDecl = node.kind === 259 /* VariableDeclaration */ ? node : node.parent.parent; + const possibleVariableDecl = node.kind === 260 /* VariableDeclaration */ ? node : node.parent.parent; if (isInJSFile(node) && shouldResolveJsRequire(options) && isVariableDeclarationInitializedToBareOrAccessedRequire(possibleVariableDecl) && !getJSDocTypeTag(node) && !(getCombinedModifierFlags(node) & 1 /* Export */)) { declareSymbolAndAddToSymbolTable(node, 2097152 /* Alias */, 2097152 /* AliasExcludes */); } else if (isBlockOrCatchScoped(node)) { @@ -46051,10 +46438,10 @@ function createBinder() { } } function bindParameter(node) { - if (node.kind === 347 /* JSDocParameterTag */ && container.kind !== 329 /* JSDocSignature */) { + if (node.kind === 348 /* JSDocParameterTag */ && container.kind !== 330 /* JSDocSignature */) { return; } - if (inStrictMode && !(node.flags & 16777216 /* Ambient */)) { + if (inStrictMode && !(node.flags & 33554432 /* Ambient */)) { checkStrictModeEvalOrArguments(node, node.name); } if (isBindingPattern(node.name)) { @@ -46068,9 +46455,9 @@ function createBinder() { } } function bindFunctionDeclaration(node) { - if (!file.isDeclarationFile && !(node.flags & 16777216 /* Ambient */)) { + if (!file.isDeclarationFile && !(node.flags & 33554432 /* Ambient */)) { if (isAsyncFunction(node)) { - emitFlags |= 2048 /* HasAsyncFunctions */; + emitFlags |= 4096 /* HasAsyncFunctions */; } } checkStrictModeFunctionName(node); @@ -46082,9 +46469,9 @@ function createBinder() { } } function bindFunctionExpression(node) { - if (!file.isDeclarationFile && !(node.flags & 16777216 /* Ambient */)) { + if (!file.isDeclarationFile && !(node.flags & 33554432 /* Ambient */)) { if (isAsyncFunction(node)) { - emitFlags |= 2048 /* HasAsyncFunctions */; + emitFlags |= 4096 /* HasAsyncFunctions */; } } if (currentFlow) { @@ -46095,8 +46482,8 @@ function createBinder() { return bindAnonymousDeclaration(node, 16 /* Function */, bindingName); } function bindPropertyOrMethodOrAccessor(node, symbolFlags, symbolExcludes) { - if (!file.isDeclarationFile && !(node.flags & 16777216 /* Ambient */) && isAsyncFunction(node)) { - emitFlags |= 2048 /* HasAsyncFunctions */; + if (!file.isDeclarationFile && !(node.flags & 33554432 /* Ambient */) && isAsyncFunction(node)) { + emitFlags |= 4096 /* HasAsyncFunctions */; } if (currentFlow && isObjectLiteralOrClassExpressionMethodOrAccessor(node)) { node.flowNode = currentFlow; @@ -46124,7 +46511,7 @@ function createBinder() { } else { declareSymbolAndAddToSymbolTable(node, 262144 /* TypeParameter */, 526824 /* TypeParameterExcludes */); } - } else if (node.parent.kind === 194 /* InferType */) { + } else if (node.parent.kind === 195 /* InferType */) { const container2 = getInferTypeContainer(node.parent); if (container2) { Debug.assertNode(container2, canHaveLocals); @@ -46155,14 +46542,14 @@ function createBinder() { if (currentFlow === unreachableFlow) { const reportError = ( // report error on all statements except empty ones - isStatementButNotDeclaration(node) && node.kind !== 241 /* EmptyStatement */ || // report error on class declarations - node.kind === 262 /* ClassDeclaration */ || // report error on instantiated modules or const-enums only modules if preserveConstEnums is set - node.kind === 266 /* ModuleDeclaration */ && shouldReportErrorOnModuleDeclaration(node) + isStatementButNotDeclaration(node) && node.kind !== 242 /* EmptyStatement */ || // report error on class declarations + node.kind === 263 /* ClassDeclaration */ || // report error on instantiated modules or const-enums only modules if preserveConstEnums is set + node.kind === 267 /* ModuleDeclaration */ && shouldReportErrorOnModuleDeclaration(node) ); if (reportError) { currentFlow = reportedUnreachableFlow; if (!options.allowUnreachableCode) { - const isError = unreachableCodeIsError(options) && !(node.flags & 16777216 /* Ambient */) && (!isVariableStatement(node) || !!(getCombinedNodeFlags(node.declarationList) & 3 /* BlockScoped */) || node.declarationList.declarations.some((d) => !!d.initializer)); + const isError = unreachableCodeIsError(options) && !(node.flags & 33554432 /* Ambient */) && (!isVariableStatement(node) || !!(getCombinedNodeFlags(node.declarationList) & 7 /* BlockScoped */) || node.declarationList.declarations.some((d) => !!d.initializer)); eachUnreachableRange(node, (start2, end) => errorOrSuggestionOnRange(isError, start2, end, Diagnostics.Unreachable_code_detected)); } } @@ -46181,16 +46568,16 @@ function eachUnreachableRange(node, cb) { } function isExecutableStatement(s) { return !isFunctionDeclaration(s) && !isPurelyTypeDeclaration(s) && !isEnumDeclaration(s) && // `var x;` may declare a variable used above - !(isVariableStatement(s) && !(getCombinedNodeFlags(s) & (1 /* Let */ | 2 /* Const */)) && s.declarationList.declarations.some((d) => !d.initializer)); + !(isVariableStatement(s) && !(getCombinedNodeFlags(s) & 7 /* BlockScoped */) && s.declarationList.declarations.some((d) => !d.initializer)); } function isPurelyTypeDeclaration(s) { switch (s.kind) { - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: return true; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return getModuleInstanceState(s) !== 1 /* Instantiated */; - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return hasSyntacticModifier(s, 2048 /* Const */); default: return false; @@ -46225,54 +46612,54 @@ function isExportsOrModuleExportsOrAlias(sourceFile, node) { } function getContainerFlags(node) { switch (node.kind) { - case 230 /* ClassExpression */: - case 262 /* ClassDeclaration */: - case 265 /* EnumDeclaration */: - case 209 /* ObjectLiteralExpression */: - case 186 /* TypeLiteral */: - case 328 /* JSDocTypeLiteral */: - case 291 /* JsxAttributes */: + case 231 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 266 /* EnumDeclaration */: + case 210 /* ObjectLiteralExpression */: + case 187 /* TypeLiteral */: + case 329 /* JSDocTypeLiteral */: + case 292 /* JsxAttributes */: return 1 /* IsContainer */; - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: return 1 /* IsContainer */ | 64 /* IsInterface */; - case 266 /* ModuleDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 199 /* MappedType */: - case 180 /* IndexSignature */: + case 267 /* ModuleDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 200 /* MappedType */: + case 181 /* IndexSignature */: return 1 /* IsContainer */ | 32 /* HasLocals */; - case 311 /* SourceFile */: + case 312 /* SourceFile */: return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */; - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 173 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: if (isObjectLiteralOrClassExpressionMethodOrAccessor(node)) { return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */ | 8 /* IsFunctionLike */ | 128 /* IsObjectLiteralOrClassExpressionMethodOrAccessor */; } - case 175 /* Constructor */: - case 261 /* FunctionDeclaration */: - case 172 /* MethodSignature */: - case 178 /* CallSignature */: - case 329 /* JSDocSignature */: - case 323 /* JSDocFunctionType */: - case 183 /* FunctionType */: - case 179 /* ConstructSignature */: - case 184 /* ConstructorType */: - case 174 /* ClassStaticBlockDeclaration */: + case 176 /* Constructor */: + case 262 /* FunctionDeclaration */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 330 /* JSDocSignature */: + case 324 /* JSDocFunctionType */: + case 184 /* FunctionType */: + case 180 /* ConstructSignature */: + case 185 /* ConstructorType */: + case 175 /* ClassStaticBlockDeclaration */: return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */ | 8 /* IsFunctionLike */; - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */ | 8 /* IsFunctionLike */ | 16 /* IsFunctionExpression */; - case 267 /* ModuleBlock */: + case 268 /* ModuleBlock */: return 4 /* IsControlFlowContainer */; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return node.initializer ? 4 /* IsControlFlowContainer */ : 0; - case 298 /* CatchClause */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 268 /* CaseBlock */: + case 299 /* CatchClause */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 269 /* CaseBlock */: return 2 /* IsBlockScopedContainer */ | 32 /* HasLocals */; - case 240 /* Block */: + case 241 /* Block */: return isFunctionLike(node.parent) || isClassStaticBlockDeclaration(node.parent) ? 0 /* None */ : 2 /* IsBlockScopedContainer */ | 32 /* HasLocals */; } return 0 /* None */; @@ -46433,7 +46820,7 @@ function createGetSymbolWalker(getRestTypeOfSignature, getTypePredicateOfSignatu symbol.exports.forEach(visitSymbol); } forEach(symbol.declarations, (d) => { - if (d.type && d.type.kind === 185 /* TypeQuery */) { + if (d.type && d.type.kind === 186 /* TypeQuery */) { const query = d.type; const entity = getResolvedSymbol(getFirstIdentifier2(query.exprName)); visitSymbol(entity); @@ -46857,7 +47244,7 @@ function tryGetModuleNameFromAmbientModule(moduleSymbol, checker) { if (originalExportSymbol === d.symbol) return topNamespace.parent.parent; function getTopNamespace(namespaceDeclaration) { - while (namespaceDeclaration.flags & 4 /* NestedNamespace */) { + while (namespaceDeclaration.flags & 8 /* NestedNamespace */) { namespaceDeclaration = namespaceDeclaration.parent; } return namespaceDeclaration; @@ -46887,7 +47274,9 @@ function tryGetModuleNameFromPaths(relativeToBaseUrl, paths, allowedEndings, hos for (const { ending, value } of candidates) { if (value.length >= prefix.length + suffix.length && startsWith(value, prefix) && endsWith(value, suffix) && validateEnding({ ending, value })) { const matchedStar = value.substring(prefix.length, value.length - suffix.length); - return pathIsRelative(matchedStar) ? void 0 : key.replace("*", matchedStar); + if (!pathIsRelative(matchedStar)) { + return key.replace("*", matchedStar); + } } } } else if (some(candidates, (c) => c.ending !== 0 /* Minimal */ && pattern === c.value) || some(candidates, (c) => c.ending === 0 /* Minimal */ && pattern === c.value && validateEnding(c))) { @@ -46959,7 +47348,7 @@ function tryGetModuleNameFromExports(options, targetFilePath, packageDirectory, for (const key of getOwnKeys(exports)) { if (key === "default" || conditions.indexOf(key) >= 0 || isApplicableVersionedTypesKey(conditions, key)) { const subTarget = exports[key]; - const result = tryGetModuleNameFromExports(options, targetFilePath, packageDirectory, packageName, subTarget, conditions); + const result = tryGetModuleNameFromExports(options, targetFilePath, packageDirectory, packageName, subTarget, conditions, mode); if (result) { return result; } @@ -47302,6 +47691,7 @@ var CheckMode = /* @__PURE__ */ ((CheckMode3) => { CheckMode3[CheckMode3["IsForSignatureHelp"] = 16] = "IsForSignatureHelp"; CheckMode3[CheckMode3["IsForStringLiteralArgumentCompletions"] = 32] = "IsForStringLiteralArgumentCompletions"; CheckMode3[CheckMode3["RestBindingElement"] = 64] = "RestBindingElement"; + CheckMode3[CheckMode3["TypeOnly"] = 128] = "TypeOnly"; return CheckMode3; })(CheckMode || {}); var SignatureCheckMode = /* @__PURE__ */ ((SignatureCheckMode3) => { @@ -47372,6 +47762,7 @@ function createTypeChecker(host) { var moduleKind = getEmitModuleKind(compilerOptions); var legacyDecorators = !!compilerOptions.experimentalDecorators; var useDefineForClassFields = getUseDefineForClassFields(compilerOptions); + var emitStandardClassFields = getEmitStandardClassFields(compilerOptions); var allowSyntheticDefaultImports = getAllowSyntheticDefaultImports(compilerOptions); var strictNullChecks = getStrictOptionValue(compilerOptions, "strictNullChecks"); var strictFunctionTypes = getStrictOptionValue(compilerOptions, "strictFunctionTypes"); @@ -47399,6 +47790,10 @@ function createTypeChecker(host) { var isolatedModulesLikeFlagName = compilerOptions.verbatimModuleSyntax ? "verbatimModuleSyntax" : "isolatedModules"; var canCollectSymbolAliasAccessabilityData = !compilerOptions.verbatimModuleSyntax || !!compilerOptions.importsNotUsedAsValues; var apparentArgumentCount; + var lastGetCombinedNodeFlagsNode; + var lastGetCombinedNodeFlagsResult = 0 /* None */; + var lastGetCombinedModifierFlagsNode; + var lastGetCombinedModifierFlagsResult = 0 /* None */; const checker = { getNodeCount: () => reduceLeft(host.getSourceFiles(), (n, s) => n + s.nodeCount, 0), getIdentifierCount: () => reduceLeft(host.getSourceFiles(), (n, s) => n + s.identifierCount, 0), @@ -47458,7 +47853,7 @@ function createTypeChecker(host) { return node ? getTypeFromTypeNode(node) : errorType; }, getParameterType: getTypeAtPosition, - getParameterIdentifierNameAtPosition, + getParameterIdentifierInfoAtPosition, getPromisedTypeOfPromise, getAwaitedType: (type) => getAwaitedType(type), getReturnTypeOfSignature, @@ -47576,13 +47971,24 @@ function createTypeChecker(host) { getTypeOfPropertyOfContextualType, getFullyQualifiedName, getResolvedSignature: (node, candidatesOutArray, argumentCount) => getResolvedSignatureWorker(node, candidatesOutArray, argumentCount, 0 /* Normal */), - getResolvedSignatureForStringLiteralCompletions: (call, editingArgument, candidatesOutArray) => runWithInferenceBlockedFromSourceNode(editingArgument, () => getResolvedSignatureWorker( - call, - candidatesOutArray, - /*argumentCount*/ - void 0, - 32 /* IsForStringLiteralArgumentCompletions */ - )), + getResolvedSignatureForStringLiteralCompletions: (call, editingArgument, candidatesOutArray, checkMode = 32 /* IsForStringLiteralArgumentCompletions */) => { + if (checkMode & 32 /* IsForStringLiteralArgumentCompletions */) { + return runWithInferenceBlockedFromSourceNode(editingArgument, () => getResolvedSignatureWorker( + call, + candidatesOutArray, + /*argumentCount*/ + void 0, + checkMode & ~32 /* IsForStringLiteralArgumentCompletions */ + )); + } + return runWithoutResolvedSignatureCaching(editingArgument, () => getResolvedSignatureWorker( + call, + candidatesOutArray, + /*argumentCount*/ + void 0, + checkMode & ~32 /* IsForStringLiteralArgumentCompletions */ + )); + }, getResolvedSignatureForSignatureHelp: (node, candidatesOutArray, argumentCount) => runWithoutResolvedSignatureCaching(node, () => getResolvedSignatureWorker(node, candidatesOutArray, argumentCount, 16 /* IsForSignatureHelp */)), getExpandedParameters, hasEffectiveRestParameter, @@ -47756,7 +48162,7 @@ function createTypeChecker(host) { Debug.assert(!!(getNodeLinks(file).flags & 1 /* TypeChecked */)); diagnostics2 = addRange(diagnostics2, suggestionDiagnostics.getDiagnostics(file.fileName)); checkUnusedIdentifiers(getPotentiallyUnusedIdentifiers(file), (containingNode, kind, diag2) => { - if (!containsParseError(containingNode) && !unusedIsError(kind, !!(containingNode.flags & 16777216 /* Ambient */))) { + if (!containsParseError(containingNode) && !unusedIsError(kind, !!(containingNode.flags & 33554432 /* Ambient */))) { (diagnostics2 || (diagnostics2 = [])).push({ ...diag2, category: 2 /* Suggestion */ }); } }); @@ -47782,14 +48188,19 @@ function createTypeChecker(host) { typeHasCallOrConstructSignatures }; function runWithoutResolvedSignatureCaching(node, fn) { - const containingCall = findAncestor(node, isCallLikeExpression); - const containingCallResolvedSignature = containingCall && getNodeLinks(containingCall).resolvedSignature; - if (containingCall) { - getNodeLinks(containingCall).resolvedSignature = void 0; + const cachedSignatures = []; + while (node) { + if (isCallLikeExpression(node)) { + const nodeLinks2 = getNodeLinks(node); + const resolvedSignature = nodeLinks2.resolvedSignature; + cachedSignatures.push([nodeLinks2, resolvedSignature]); + nodeLinks2.resolvedSignature = void 0; + } + node = node.parent; } const result = fn(); - if (containingCall) { - getNodeLinks(containingCall).resolvedSignature = containingCallResolvedSignature; + for (const [nodeLinks2, resolvedSignature] of cachedSignatures) { + nodeLinks2.resolvedSignature = resolvedSignature; } return result; } @@ -48095,7 +48506,7 @@ function createTypeChecker(host) { }; var amalgamatedDuplicates; var reverseMappedCache = /* @__PURE__ */ new Map(); - var inInferTypeForHomomorphicMappedType = false; + var homomorphicMappedTypeInferenceStack = []; var ambientModulesCache; var patternAmbientModules; var patternAmbientModuleAugmentations; @@ -48136,6 +48547,8 @@ function createTypeChecker(host) { var deferredGlobalImportMetaType; var deferredGlobalImportMetaExpressionType; var deferredGlobalImportCallOptionsType; + var deferredGlobalDisposableType; + var deferredGlobalAsyncDisposableType; var deferredGlobalExtractSymbol; var deferredGlobalOmitSymbol; var deferredGlobalAwaitedSymbol; @@ -48307,14 +48720,14 @@ function createTypeChecker(host) { } } function errorSkippedOn(key, location, message, ...args) { - const diagnostic = error(location, message, ...args); + const diagnostic = error2(location, message, ...args); diagnostic.skippedOn = key; return diagnostic; } function createError(location, message, ...args) { return location ? createDiagnosticForNode(location, message, ...args) : createCompilerDiagnostic(message, ...args); } - function error(location, message, ...args) { + function error2(location, message, ...args) { const diagnostic = createError(location, message, ...args); diagnostics.add(diagnostic); return diagnostic; @@ -48338,7 +48751,7 @@ function createTypeChecker(host) { addErrorOrSuggestion(isError, "message" in message ? createDiagnosticForNode(location, message, ...args) : createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(location), location, message)); } function errorAndMaybeSuggestAwait(location, maybeMissingAwait, message, ...args) { - const diagnostic = error(location, message, ...args); + const diagnostic = error2(location, message, ...args); if (maybeMissingAwait) { const related = createDiagnosticForNode(location, Diagnostics.Did_you_forget_to_use_await); addRelatedInfo(diagnostic, related); @@ -48364,7 +48777,7 @@ function createTypeChecker(host) { return !!symbol.valueDeclaration && isDeprecatedDeclaration2(symbol.valueDeclaration) || length(symbol.declarations) && every(symbol.declarations, isDeprecatedDeclaration2); } function isDeprecatedDeclaration2(declaration) { - return !!(getCombinedNodeFlags(declaration) & 268435456 /* Deprecated */); + return !!(getCombinedNodeFlagsCached(declaration) & 536870912 /* Deprecated */); } function addDeprecatedSuggestion(location, declarations, deprecatedEntity) { const diagnostic = createDiagnosticForNode(location, Diagnostics._0_is_deprecated, deprecatedEntity); @@ -48484,7 +48897,7 @@ function createTypeChecker(host) { } } else if (target.flags & 1024 /* NamespaceModule */) { if (target !== globalThisSymbol) { - error( + error2( source.declarations && getNameOfDeclaration(source.declarations[0]), Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity, symbolToString(target) @@ -48578,7 +48991,7 @@ function createTypeChecker(host) { if (isGlobalScopeAugmentation(moduleAugmentation)) { mergeSymbolTable(globals, moduleAugmentation.symbol.exports); } else { - const moduleNotFoundError = !(moduleName.parent.parent.flags & 16777216 /* Ambient */) ? Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found : void 0; + const moduleNotFoundError = !(moduleName.parent.parent.flags & 33554432 /* Ambient */) ? Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found : void 0; let mainModule = resolveExternalModuleNameWorker( moduleName, moduleName, @@ -48614,7 +49027,7 @@ function createTypeChecker(host) { mergeSymbol(mainModule, moduleAugmentation.symbol); } } else { - error(moduleName, Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity, moduleName.text); + error2(moduleName, Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity, moduleName.text); } } } @@ -48642,7 +49055,7 @@ function createTypeChecker(host) { return nodeLinks[nodeId] || (nodeLinks[nodeId] = new NodeLinks()); } function isGlobalSourceFile(node) { - return node.kind === 311 /* SourceFile */ && !isExternalOrCommonJsModule(node); + return node.kind === 312 /* SourceFile */ && !isExternalOrCommonJsModule(node); } function getSymbol2(symbols, name, meaning) { if (meaning) { @@ -48653,7 +49066,7 @@ function createTypeChecker(host) { return symbol; } if (symbol.flags & 2097152 /* Alias */) { - const targetFlags = getAllSymbolFlags(symbol); + const targetFlags = getSymbolFlags(symbol); if (targetFlags & meaning) { return symbol; } @@ -48676,7 +49089,7 @@ function createTypeChecker(host) { const useFile = getSourceFileOfNode(usage); const declContainer = getEnclosingBlockScopeContainer(declaration); if (declarationFile !== useFile) { - if (moduleKind && (declarationFile.externalModuleIndicator || useFile.externalModuleIndicator) || !outFile(compilerOptions) || isInTypeQuery(usage) || declaration.flags & 16777216 /* Ambient */) { + if (moduleKind && (declarationFile.externalModuleIndicator || useFile.externalModuleIndicator) || !outFile(compilerOptions) || isInTypeQuery(usage) || declaration.flags & 33554432 /* Ambient */) { return true; } if (isUsedInFunctionOrInstanceProperty(usage, declaration)) { @@ -48686,13 +49099,13 @@ function createTypeChecker(host) { return sourceFiles.indexOf(declarationFile) <= sourceFiles.indexOf(useFile); } if (declaration.pos <= usage.pos && !(isPropertyDeclaration(declaration) && isThisProperty(usage.parent) && !declaration.initializer && !declaration.exclamationToken)) { - if (declaration.kind === 207 /* BindingElement */) { - const errorBindingElement = getAncestor(usage, 207 /* BindingElement */); + if (declaration.kind === 208 /* BindingElement */) { + const errorBindingElement = getAncestor(usage, 208 /* BindingElement */); if (errorBindingElement) { return findAncestor(errorBindingElement, isBindingElement) !== findAncestor(declaration, isBindingElement) || declaration.pos < errorBindingElement.pos; } - return isBlockScopedNameDeclaredBeforeUse(getAncestor(declaration, 259 /* VariableDeclaration */), usage); - } else if (declaration.kind === 259 /* VariableDeclaration */) { + return isBlockScopedNameDeclaredBeforeUse(getAncestor(declaration, 260 /* VariableDeclaration */), usage); + } else if (declaration.kind === 260 /* VariableDeclaration */) { return !isImmediatelyUsedInInitializerOfBlockScopedVariable(declaration, usage); } else if (isClassDeclaration(declaration)) { return !findAncestor(usage, (n) => isComputedPropertyName(n) && n.parent.parent === declaration); @@ -48704,21 +49117,21 @@ function createTypeChecker(host) { false ); } else if (isParameterPropertyDeclaration(declaration, declaration.parent)) { - return !(getEmitScriptTarget(compilerOptions) === 99 /* ESNext */ && useDefineForClassFields && getContainingClass(declaration) === getContainingClass(usage) && isUsedInFunctionOrInstanceProperty(usage, declaration)); + return !(emitStandardClassFields && getContainingClass(declaration) === getContainingClass(usage) && isUsedInFunctionOrInstanceProperty(usage, declaration)); } return true; } - if (usage.parent.kind === 280 /* ExportSpecifier */ || usage.parent.kind === 276 /* ExportAssignment */ && usage.parent.isExportEquals) { + if (usage.parent.kind === 281 /* ExportSpecifier */ || usage.parent.kind === 277 /* ExportAssignment */ && usage.parent.isExportEquals) { return true; } - if (usage.kind === 276 /* ExportAssignment */ && usage.isExportEquals) { + if (usage.kind === 277 /* ExportAssignment */ && usage.isExportEquals) { return true; } - if (!!(usage.flags & 8388608 /* JSDoc */) || isInTypeQuery(usage) || isInAmbientOrTypeNode(usage)) { + if (!!(usage.flags & 16777216 /* JSDoc */) || isInTypeQuery(usage) || isInAmbientOrTypeNode(usage)) { return true; } if (isUsedInFunctionOrInstanceProperty(usage, declaration)) { - if (getEmitScriptTarget(compilerOptions) >= 9 /* ES2022 */ && useDefineForClassFields && getContainingClass(declaration) && (isPropertyDeclaration(declaration) || isParameterPropertyDeclaration(declaration, declaration.parent))) { + if (emitStandardClassFields && getContainingClass(declaration) && (isPropertyDeclaration(declaration) || isParameterPropertyDeclaration(declaration, declaration.parent))) { return !isPropertyImmediatelyReferencedWithinDeclaration( declaration, usage, @@ -48732,9 +49145,9 @@ function createTypeChecker(host) { return false; function isImmediatelyUsedInInitializerOfBlockScopedVariable(declaration2, usage2) { switch (declaration2.parent.parent.kind) { - case 242 /* VariableStatement */: - case 247 /* ForStatement */: - case 249 /* ForOfStatement */: + case 243 /* VariableStatement */: + case 248 /* ForStatement */: + case 250 /* ForOfStatement */: if (isSameScopeDescendentOf(usage2, declaration2, declContainer)) { return true; } @@ -48759,7 +49172,7 @@ function createTypeChecker(host) { const initializerOfProperty = propertyDeclaration.initializer === current; if (initializerOfProperty) { if (isStatic(current.parent)) { - if (declaration2.kind === 173 /* MethodDeclaration */) { + if (declaration2.kind === 174 /* MethodDeclaration */) { return true; } if (isPropertyDeclaration(declaration2) && getContainingClass(usage2) === getContainingClass(declaration2)) { @@ -48773,7 +49186,7 @@ function createTypeChecker(host) { } } } else { - const isDeclarationInstanceProperty = declaration2.kind === 171 /* PropertyDeclaration */ && !isStatic(declaration2); + const isDeclarationInstanceProperty = declaration2.kind === 172 /* PropertyDeclaration */ && !isStatic(declaration2); if (!isDeclarationInstanceProperty || getContainingClass(usage2) !== getContainingClass(declaration2)) { return true; } @@ -48792,15 +49205,15 @@ function createTypeChecker(host) { return "quit"; } switch (node.kind) { - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return true; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return stopAtAnyPropertyDeclaration && (isPropertyDeclaration(declaration2) && node.parent === declaration2.parent || isParameterPropertyDeclaration(declaration2, declaration2.parent) && node.parent === declaration2.parent.parent) ? "quit" : true; - case 240 /* Block */: + case 241 /* Block */: switch (node.parent.kind) { - case 176 /* GetAccessor */: - case 173 /* MethodDeclaration */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 174 /* MethodDeclaration */: + case 178 /* SetAccessor */: return true; default: return false; @@ -48830,19 +49243,19 @@ function createTypeChecker(host) { } function requiresScopeChangeWorker(node) { switch (node.kind) { - case 218 /* ArrowFunction */: - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: - case 175 /* Constructor */: + case 219 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 176 /* Constructor */: return false; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 302 /* PropertyAssignment */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 303 /* PropertyAssignment */: return requiresScopeChangeWorker(node.name); - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: if (hasStaticModifier(node)) { - return target < 99 /* ESNext */ || !useDefineForClassFields; + return !emitStandardClassFields; } return requiresScopeChangeWorker(node.name); default: @@ -48881,7 +49294,7 @@ function createTypeChecker(host) { if (name === "const" && isConstAssertion(location)) { return void 0; } - if (isModuleDeclaration(location) && lastLocation && location.name === lastLocation) { + if (isModuleOrEnumDeclaration(location) && lastLocation && location.name === lastLocation) { lastLocation = location; location = location.parent; } @@ -48889,17 +49302,17 @@ function createTypeChecker(host) { if (result = lookup(location.locals, name, meaning)) { let useResult = true; if (isFunctionLike(location) && lastLocation && lastLocation !== location.body) { - if (meaning & result.flags & 788968 /* Type */ && lastLocation.kind !== 326 /* JSDoc */) { - useResult = result.flags & 262144 /* TypeParameter */ ? lastLocation === location.type || lastLocation.kind === 168 /* Parameter */ || lastLocation.kind === 347 /* JSDocParameterTag */ || lastLocation.kind === 348 /* JSDocReturnTag */ || lastLocation.kind === 167 /* TypeParameter */ : false; + if (meaning & result.flags & 788968 /* Type */ && lastLocation.kind !== 327 /* JSDoc */) { + useResult = result.flags & 262144 /* TypeParameter */ ? lastLocation === location.type || lastLocation.kind === 169 /* Parameter */ || lastLocation.kind === 348 /* JSDocParameterTag */ || lastLocation.kind === 349 /* JSDocReturnTag */ || lastLocation.kind === 168 /* TypeParameter */ : false; } if (meaning & result.flags & 3 /* Variable */) { if (useOuterVariableScopeInParameter(result, location, lastLocation)) { useResult = false; } else if (result.flags & 1 /* FunctionScopedVariable */) { - useResult = lastLocation.kind === 168 /* Parameter */ || lastLocation === location.type && !!findAncestor(result.valueDeclaration, isParameter); + useResult = lastLocation.kind === 169 /* Parameter */ || lastLocation === location.type && !!findAncestor(result.valueDeclaration, isParameter); } } - } else if (location.kind === 193 /* ConditionalType */) { + } else if (location.kind === 194 /* ConditionalType */) { useResult = lastLocation === location.trueType; } if (useResult) { @@ -48911,13 +49324,13 @@ function createTypeChecker(host) { } withinDeferredContext = withinDeferredContext || getIsDeferredContext(location, lastLocation); switch (location.kind) { - case 311 /* SourceFile */: + case 312 /* SourceFile */: if (!isExternalOrCommonJsModule(location)) break; isInExternalModule = true; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: const moduleExports = ((_a = getSymbolOfDeclaration(location)) == null ? void 0 : _a.exports) || emptySymbols; - if (location.kind === 311 /* SourceFile */ || isModuleDeclaration(location) && location.flags & 16777216 /* Ambient */ && !isGlobalScopeAugmentation(location)) { + if (location.kind === 312 /* SourceFile */ || isModuleDeclaration(location) && location.flags & 33554432 /* Ambient */ && !isGlobalScopeAugmentation(location)) { if (result = moduleExports.get("default" /* Default */)) { const localSymbol = getLocalSymbolForExportDefault(result); if (localSymbol && result.flags & meaning && localSymbol.escapedName === name) { @@ -48926,7 +49339,7 @@ function createTypeChecker(host) { result = void 0; } const moduleExport = moduleExports.get(name); - if (moduleExport && moduleExport.flags === 2097152 /* Alias */ && (getDeclarationOfKind(moduleExport, 280 /* ExportSpecifier */) || getDeclarationOfKind(moduleExport, 279 /* NamespaceExport */))) { + if (moduleExport && moduleExport.flags === 2097152 /* Alias */ && (getDeclarationOfKind(moduleExport, 281 /* ExportSpecifier */) || getDeclarationOfKind(moduleExport, 280 /* NamespaceExport */))) { break; } } @@ -48938,10 +49351,10 @@ function createTypeChecker(host) { } } break; - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: if (result = lookup(((_c = getSymbolOfDeclaration(location)) == null ? void 0 : _c.exports) || emptySymbols, name, meaning & 8 /* EnumMember */)) { - if (nameNotFoundMessage && getIsolatedModules(compilerOptions) && !(location.flags & 16777216 /* Ambient */) && getSourceFileOfNode(location) !== getSourceFileOfNode(result.valueDeclaration)) { - error( + if (nameNotFoundMessage && getIsolatedModules(compilerOptions) && !(location.flags & 33554432 /* Ambient */) && getSourceFileOfNode(location) !== getSourceFileOfNode(result.valueDeclaration)) { + error2( errorLocation, Diagnostics.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead, unescapeLeadingUnderscores(name), @@ -48952,7 +49365,7 @@ function createTypeChecker(host) { break loop; } break; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: if (!isStatic(location)) { const ctor = findConstructorDeclaration(location.parent); if (ctor && ctor.locals) { @@ -48963,9 +49376,9 @@ function createTypeChecker(host) { } } break; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: if (result = lookup(getSymbolOfDeclaration(location).members || emptySymbols, name, meaning & 788968 /* Type */)) { if (!isTypeParameterSymbolDeclaredInContainer(result, location)) { result = void 0; @@ -48973,7 +49386,7 @@ function createTypeChecker(host) { } if (lastLocation && isStatic(lastLocation)) { if (nameNotFoundMessage) { - error(errorLocation, Diagnostics.Static_members_cannot_reference_class_type_parameters); + error2(errorLocation, Diagnostics.Static_members_cannot_reference_class_type_parameters); } return void 0; } @@ -48987,43 +49400,43 @@ function createTypeChecker(host) { } } break; - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: if (lastLocation === location.expression && location.parent.token === 96 /* ExtendsKeyword */) { const container = location.parent.parent; if (isClassLike(container) && (result = lookup(getSymbolOfDeclaration(container).members, name, meaning & 788968 /* Type */))) { if (nameNotFoundMessage) { - error(errorLocation, Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters); + error2(errorLocation, Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters); } return void 0; } } break; - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: grandparent = location.parent.parent; - if (isClassLike(grandparent) || grandparent.kind === 263 /* InterfaceDeclaration */) { + if (isClassLike(grandparent) || grandparent.kind === 264 /* InterfaceDeclaration */) { if (result = lookup(getSymbolOfDeclaration(grandparent).members, name, meaning & 788968 /* Type */)) { if (nameNotFoundMessage) { - error(errorLocation, Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type); + error2(errorLocation, Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type); } return void 0; } } break; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: if (getEmitScriptTarget(compilerOptions) >= 2 /* ES2015 */) { break; } - case 173 /* MethodDeclaration */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 261 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 262 /* FunctionDeclaration */: if (meaning & 3 /* Variable */ && name === "arguments") { result = argumentsSymbol; break loop; } break; - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: if (meaning & 3 /* Variable */ && name === "arguments") { result = argumentsSymbol; break loop; @@ -49036,37 +49449,37 @@ function createTypeChecker(host) { } } break; - case 169 /* Decorator */: - if (location.parent && location.parent.kind === 168 /* Parameter */) { + case 170 /* Decorator */: + if (location.parent && location.parent.kind === 169 /* Parameter */) { location = location.parent; } - if (location.parent && (isClassElement(location.parent) || location.parent.kind === 262 /* ClassDeclaration */)) { + if (location.parent && (isClassElement(location.parent) || location.parent.kind === 263 /* ClassDeclaration */)) { location = location.parent; } break; - case 352 /* JSDocTypedefTag */: - case 344 /* JSDocCallbackTag */: - case 346 /* JSDocEnumTag */: + case 353 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: + case 347 /* JSDocEnumTag */: const root = getJSDocRoot(location); if (root) { location = root.parent; } break; - case 168 /* Parameter */: + case 169 /* Parameter */: if (lastLocation && (lastLocation === location.initializer || lastLocation === location.name && isBindingPattern(lastLocation))) { if (!associatedDeclarationForContainingInitializerOrBindingName) { associatedDeclarationForContainingInitializerOrBindingName = location; } } break; - case 207 /* BindingElement */: + case 208 /* BindingElement */: if (lastLocation && (lastLocation === location.initializer || lastLocation === location.name && isBindingPattern(lastLocation))) { if (isParameterDeclaration(location) && !associatedDeclarationForContainingInitializerOrBindingName) { associatedDeclarationForContainingInitializerOrBindingName = location; } } break; - case 194 /* InferType */: + case 195 /* InferType */: if (meaning & 262144 /* TypeParameter */) { const parameterName = location.typeParameter.name; if (parameterName && name === parameterName.escapedText) { @@ -49075,7 +49488,7 @@ function createTypeChecker(host) { } } break; - case 280 /* ExportSpecifier */: + case 281 /* ExportSpecifier */: if (lastLocation && lastLocation === location.propertyName && location.parent.parent.moduleSpecifier) { location = location.parent.parent.parent; } @@ -49113,8 +49526,8 @@ function createTypeChecker(host) { } } function checkAndReportErrorForInvalidInitializer() { - if (propertyWithInvalidInitializer && !(useDefineForClassFields && getEmitScriptTarget(compilerOptions) >= 9 /* ES2022 */)) { - error( + if (propertyWithInvalidInitializer && !emitStandardClassFields) { + error2( errorLocation, errorLocation && propertyWithInvalidInitializer.type && textRangeContainsPositionInclusive(propertyWithInvalidInitializer.type, errorLocation.pos) ? Diagnostics.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor : Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor, declarationNameToString(propertyWithInvalidInitializer.name), @@ -49127,14 +49540,14 @@ function createTypeChecker(host) { if (!result) { if (nameNotFoundMessage) { addLazyDiagnostic(() => { - if (!errorLocation || errorLocation.parent.kind !== 330 /* JSDocLink */ && !checkAndReportErrorForMissingPrefix(errorLocation, name, nameArg) && // TODO: GH#18217 + if (!errorLocation || errorLocation.parent.kind !== 331 /* JSDocLink */ && !checkAndReportErrorForMissingPrefix(errorLocation, name, nameArg) && // TODO: GH#18217 !checkAndReportErrorForInvalidInitializer() && !checkAndReportErrorForExtendingInterface(errorLocation) && !checkAndReportErrorForUsingTypeAsNamespace(errorLocation, name, meaning) && !checkAndReportErrorForExportingPrimitiveType(errorLocation, name) && !checkAndReportErrorForUsingNamespaceAsTypeOrValue(errorLocation, name, meaning) && !checkAndReportErrorForUsingTypeAsValue(errorLocation, name, meaning) && !checkAndReportErrorForUsingValueAsType(errorLocation, name, meaning)) { let suggestion; let suggestedLib; if (nameArg) { suggestedLib = getSuggestedLibForNonExistentName(nameArg); if (suggestedLib) { - error(errorLocation, nameNotFoundMessage, diagnosticName(nameArg), suggestedLib); + error2(errorLocation, nameNotFoundMessage, diagnosticName(nameArg), suggestedLib); } } if (!suggestedLib && getSpellingSuggestions && suggestionCount < maximumSuggestionCount) { @@ -49163,7 +49576,7 @@ function createTypeChecker(host) { } } if (!suggestion && !suggestedLib && nameArg) { - error(errorLocation, nameNotFoundMessage, diagnosticName(nameArg)); + error2(errorLocation, nameNotFoundMessage, diagnosticName(nameArg)); } suggestionCount++; } @@ -49181,7 +49594,7 @@ function createTypeChecker(host) { checkResolvedBlockScopedVariable(exportOrLocalSymbol, errorLocation); } } - if (result && isInExternalModule && (meaning & 111551 /* Value */) === 111551 /* Value */ && !(originalLocation.flags & 8388608 /* JSDoc */)) { + if (result && isInExternalModule && (meaning & 111551 /* Value */) === 111551 /* Value */ && !(originalLocation.flags & 16777216 /* JSDoc */)) { const merged = getMergedSymbol(result); if (length(merged.declarations) && every(merged.declarations, (d) => isNamespaceExportDeclaration(d) || isSourceFile(d) && !!d.symbol.globalExports)) { errorOrSuggestion(!compilerOptions.allowUmdGlobalAccess, errorLocation, Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead, unescapeLeadingUnderscores(name)); @@ -49191,18 +49604,18 @@ function createTypeChecker(host) { const candidate = getMergedSymbol(getLateBoundSymbol(result)); const root = getRootDeclaration(associatedDeclarationForContainingInitializerOrBindingName); if (candidate === getSymbolOfDeclaration(associatedDeclarationForContainingInitializerOrBindingName)) { - error(errorLocation, Diagnostics.Parameter_0_cannot_reference_itself, declarationNameToString(associatedDeclarationForContainingInitializerOrBindingName.name)); + error2(errorLocation, Diagnostics.Parameter_0_cannot_reference_itself, declarationNameToString(associatedDeclarationForContainingInitializerOrBindingName.name)); } else if (candidate.valueDeclaration && candidate.valueDeclaration.pos > associatedDeclarationForContainingInitializerOrBindingName.pos && root.parent.locals && lookup(root.parent.locals, candidate.escapedName, meaning) === candidate) { - error(errorLocation, Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it, declarationNameToString(associatedDeclarationForContainingInitializerOrBindingName.name), declarationNameToString(errorLocation)); + error2(errorLocation, Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it, declarationNameToString(associatedDeclarationForContainingInitializerOrBindingName.name), declarationNameToString(errorLocation)); } } if (result && errorLocation && meaning & 111551 /* Value */ && result.flags & 2097152 /* Alias */ && !(result.flags & 111551 /* Value */) && !isValidTypeOnlyAliasUseSite(errorLocation)) { const typeOnlyDeclaration = getTypeOnlyAliasDeclaration(result, 111551 /* Value */); if (typeOnlyDeclaration) { - const message = typeOnlyDeclaration.kind === 280 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 277 /* ExportDeclaration */ || typeOnlyDeclaration.kind === 279 /* NamespaceExport */ ? Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type : Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type; + const message = typeOnlyDeclaration.kind === 281 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 278 /* ExportDeclaration */ || typeOnlyDeclaration.kind === 280 /* NamespaceExport */ ? Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type : Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type; const unescapedName = unescapeLeadingUnderscores(name); addTypeOnlyDeclarationRelatedInfo( - error(errorLocation, message, unescapedName), + error2(errorLocation, message, unescapedName), typeOnlyDeclaration, unescapedName ); @@ -49219,14 +49632,14 @@ function createTypeChecker(host) { diagnostic, createDiagnosticForNode( typeOnlyDeclaration, - typeOnlyDeclaration.kind === 280 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 277 /* ExportDeclaration */ || typeOnlyDeclaration.kind === 279 /* NamespaceExport */ ? Diagnostics._0_was_exported_here : Diagnostics._0_was_imported_here, + typeOnlyDeclaration.kind === 281 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 278 /* ExportDeclaration */ || typeOnlyDeclaration.kind === 280 /* NamespaceExport */ ? Diagnostics._0_was_exported_here : Diagnostics._0_was_imported_here, unescapedName ) ); } function getIsDeferredContext(location, lastLocation) { - if (location.kind !== 218 /* ArrowFunction */ && location.kind !== 217 /* FunctionExpression */) { - return isTypeQueryNode(location) || (isFunctionLikeDeclaration(location) || location.kind === 171 /* PropertyDeclaration */ && !isStatic(location)) && (!lastLocation || lastLocation !== location.name); + if (location.kind !== 219 /* ArrowFunction */ && location.kind !== 218 /* FunctionExpression */) { + return isTypeQueryNode(location) || (isFunctionLikeDeclaration(location) || location.kind === 172 /* PropertyDeclaration */ && !isStatic(location)) && (!lastLocation || lastLocation !== location.name); } if (lastLocation && lastLocation === location.name) { return false; @@ -49238,12 +49651,12 @@ function createTypeChecker(host) { } function isSelfReferenceLocation(node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 266 /* ModuleDeclaration */: + case 262 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 267 /* ModuleDeclaration */: return true; default: return false; @@ -49255,7 +49668,7 @@ function createTypeChecker(host) { function isTypeParameterSymbolDeclaredInContainer(symbol, container) { if (symbol.declarations) { for (const decl of symbol.declarations) { - if (decl.kind === 167 /* TypeParameter */) { + if (decl.kind === 168 /* TypeParameter */) { const parent2 = isJSDocTemplateTag(decl.parent) ? getJSDocHost(decl.parent) : decl.parent; if (parent2 === container) { return !(isJSDocTemplateTag(decl.parent) && find(decl.parent.parent.tags, isJSDocTypeAlias)); @@ -49285,13 +49698,13 @@ function createTypeChecker(host) { } const constructorType = getTypeOfSymbol(classSymbol); if (getPropertyOfType(constructorType, name)) { - error(errorLocation, Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0, diagnosticName(nameArg), symbolToString(classSymbol)); + error2(errorLocation, Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0, diagnosticName(nameArg), symbolToString(classSymbol)); return true; } if (location === container && !isStatic(location)) { const instanceType = getDeclaredTypeOfSymbol(classSymbol).thisType; if (getPropertyOfType(instanceType, name)) { - error(errorLocation, Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0, diagnosticName(nameArg)); + error2(errorLocation, Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0, diagnosticName(nameArg)); return true; } } @@ -49308,7 +49721,7 @@ function createTypeChecker(host) { /*ignoreErrors*/ true )) { - error(errorLocation, Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements, getTextOfNode(expression)); + error2(errorLocation, Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements, getTextOfNode(expression)); return true; } return false; @@ -49316,9 +49729,9 @@ function createTypeChecker(host) { function getEntityNameForExtendingInterface(node) { switch (node.kind) { case 80 /* Identifier */: - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return node.parent ? getEntityNameForExtendingInterface(node.parent) : void 0; - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: if (isEntityNameExpression(node.expression)) { return node.expression; } @@ -49347,7 +49760,7 @@ function createTypeChecker(host) { const propName = parent2.right.escapedText; const propType = getPropertyOfType(getDeclaredTypeOfSymbol(symbol), propName); if (propType) { - error( + error2( parent2, Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1, unescapeLeadingUnderscores(name), @@ -49356,7 +49769,7 @@ function createTypeChecker(host) { return true; } } - error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here, unescapeLeadingUnderscores(name)); + error2(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here, unescapeLeadingUnderscores(name)); return true; } } @@ -49376,7 +49789,7 @@ function createTypeChecker(host) { false )); if (symbol && !(symbol.flags & 1920 /* Namespace */)) { - error(errorLocation, Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0, unescapeLeadingUnderscores(name)); + error2(errorLocation, Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0, unescapeLeadingUnderscores(name)); return true; } } @@ -49386,8 +49799,8 @@ function createTypeChecker(host) { return name === "any" || name === "string" || name === "number" || name === "boolean" || name === "never" || name === "unknown"; } function checkAndReportErrorForExportingPrimitiveType(errorLocation, name) { - if (isPrimitiveTypeName(name) && errorLocation.parent.kind === 280 /* ExportSpecifier */) { - error(errorLocation, Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module, name); + if (isPrimitiveTypeName(name) && errorLocation.parent.kind === 281 /* ExportSpecifier */) { + error2(errorLocation, Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module, name); return true; } return false; @@ -49396,9 +49809,9 @@ function createTypeChecker(host) { if (meaning & 111551 /* Value */) { if (isPrimitiveTypeName(name)) { if (isExtendedByInterface(errorLocation)) { - error(errorLocation, Diagnostics.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes, unescapeLeadingUnderscores(name)); + error2(errorLocation, Diagnostics.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes, unescapeLeadingUnderscores(name)); } else { - error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here, unescapeLeadingUnderscores(name)); + error2(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here, unescapeLeadingUnderscores(name)); } return true; } @@ -49413,15 +49826,15 @@ function createTypeChecker(host) { /*isUse*/ false )); - const allFlags = symbol && getAllSymbolFlags(symbol); + const allFlags = symbol && getSymbolFlags(symbol); if (symbol && allFlags !== void 0 && !(allFlags & 111551 /* Value */)) { const rawName = unescapeLeadingUnderscores(name); if (isES2015OrLaterConstructorName(name)) { - error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later, rawName); + error2(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later, rawName); } else if (maybeMappedType(errorLocation, symbol)) { - error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0, rawName, rawName === "K" ? "P" : "K"); + error2(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0, rawName, rawName === "K" ? "P" : "K"); } else { - error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here, rawName); + error2(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here, rawName); } return true; } @@ -49477,7 +49890,7 @@ function createTypeChecker(host) { false )); if (symbol) { - error( + error2( errorLocation, Diagnostics.Cannot_use_namespace_0_as_a_value, unescapeLeadingUnderscores(name) @@ -49497,7 +49910,7 @@ function createTypeChecker(host) { false )); if (symbol) { - error(errorLocation, Diagnostics.Cannot_use_namespace_0_as_a_type, unescapeLeadingUnderscores(name)); + error2(errorLocation, Diagnostics.Cannot_use_namespace_0_as_a_type, unescapeLeadingUnderscores(name)); return true; } } @@ -49510,19 +49923,19 @@ function createTypeChecker(host) { return; } const declaration = (_a = result.declarations) == null ? void 0 : _a.find( - (d) => isBlockOrCatchScoped(d) || isClassLike(d) || d.kind === 265 /* EnumDeclaration */ + (d) => isBlockOrCatchScoped(d) || isClassLike(d) || d.kind === 266 /* EnumDeclaration */ ); if (declaration === void 0) return Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration"); - if (!(declaration.flags & 16777216 /* Ambient */) && !isBlockScopedNameDeclaredBeforeUse(declaration, errorLocation)) { + if (!(declaration.flags & 33554432 /* Ambient */) && !isBlockScopedNameDeclaredBeforeUse(declaration, errorLocation)) { let diagnosticMessage; const declarationName = declarationNameToString(getNameOfDeclaration(declaration)); if (result.flags & 2 /* BlockScopedVariable */) { - diagnosticMessage = error(errorLocation, Diagnostics.Block_scoped_variable_0_used_before_its_declaration, declarationName); + diagnosticMessage = error2(errorLocation, Diagnostics.Block_scoped_variable_0_used_before_its_declaration, declarationName); } else if (result.flags & 32 /* Class */) { - diagnosticMessage = error(errorLocation, Diagnostics.Class_0_used_before_its_declaration, declarationName); + diagnosticMessage = error2(errorLocation, Diagnostics.Class_0_used_before_its_declaration, declarationName); } else if (result.flags & 256 /* RegularEnum */) { - diagnosticMessage = error(errorLocation, Diagnostics.Enum_0_used_before_its_declaration, declarationName); + diagnosticMessage = error2(errorLocation, Diagnostics.Enum_0_used_before_its_declaration, declarationName); } if (diagnosticMessage) { addRelatedInfo( @@ -49537,13 +49950,13 @@ function createTypeChecker(host) { } function getAnyImportSyntax(node) { switch (node.kind) { - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return node; - case 272 /* ImportClause */: + case 273 /* ImportClause */: return node.parent; - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: return node.parent.parent; - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: return node.parent.parent.parent; default: return void 0; @@ -49553,7 +49966,7 @@ function createTypeChecker(host) { return symbol.declarations && findLast(symbol.declarations, isAliasSymbolDeclaration2); } function isAliasSymbolDeclaration2(node) { - return node.kind === 270 /* ImportEqualsDeclaration */ || node.kind === 269 /* NamespaceExportDeclaration */ || node.kind === 272 /* ImportClause */ && !!node.name || node.kind === 273 /* NamespaceImport */ || node.kind === 279 /* NamespaceExport */ || node.kind === 275 /* ImportSpecifier */ || node.kind === 280 /* ExportSpecifier */ || node.kind === 276 /* ExportAssignment */ && exportAssignmentIsAlias(node) || isBinaryExpression(node) && getAssignmentDeclarationKind(node) === 2 /* ModuleExports */ && exportAssignmentIsAlias(node) || isAccessExpression(node) && isBinaryExpression(node.parent) && node.parent.left === node && node.parent.operatorToken.kind === 64 /* EqualsToken */ && isAliasableOrJsExpression(node.parent.right) || node.kind === 303 /* ShorthandPropertyAssignment */ || node.kind === 302 /* PropertyAssignment */ && isAliasableOrJsExpression(node.initializer) || node.kind === 259 /* VariableDeclaration */ && isVariableDeclarationInitializedToBareOrAccessedRequire(node) || node.kind === 207 /* BindingElement */ && isVariableDeclarationInitializedToBareOrAccessedRequire(node.parent.parent); + return node.kind === 271 /* ImportEqualsDeclaration */ || node.kind === 270 /* NamespaceExportDeclaration */ || node.kind === 273 /* ImportClause */ && !!node.name || node.kind === 274 /* NamespaceImport */ || node.kind === 280 /* NamespaceExport */ || node.kind === 276 /* ImportSpecifier */ || node.kind === 281 /* ExportSpecifier */ || node.kind === 277 /* ExportAssignment */ && exportAssignmentIsAlias(node) || isBinaryExpression(node) && getAssignmentDeclarationKind(node) === 2 /* ModuleExports */ && exportAssignmentIsAlias(node) || isAccessExpression(node) && isBinaryExpression(node.parent) && node.parent.left === node && node.parent.operatorToken.kind === 64 /* EqualsToken */ && isAliasableOrJsExpression(node.parent.right) || node.kind === 304 /* ShorthandPropertyAssignment */ || node.kind === 303 /* PropertyAssignment */ && isAliasableOrJsExpression(node.initializer) || node.kind === 260 /* VariableDeclaration */ && isVariableDeclarationInitializedToBareOrAccessedRequire(node) || node.kind === 208 /* BindingElement */ && isVariableDeclarationInitializedToBareOrAccessedRequire(node.parent.parent); } function isAliasableOrJsExpression(e) { return isAliasableExpression(e) || isFunctionExpression(e) && isJSConstructor(e); @@ -49564,7 +49977,7 @@ function createTypeChecker(host) { const name = getLeftmostAccessExpression(commonJSPropertyAccess.expression).arguments[0]; return isIdentifier(commonJSPropertyAccess.name) ? resolveSymbol(getPropertyOfType(resolveExternalModuleTypeByLiteral(name), commonJSPropertyAccess.name.escapedText)) : void 0; } - if (isVariableDeclaration(node) || node.moduleReference.kind === 282 /* ExternalModuleReference */) { + if (isVariableDeclaration(node) || node.moduleReference.kind === 283 /* ExternalModuleReference */) { const immediate = resolveExternalModuleName( node, getExternalModuleRequireArgument(node) || getExternalModuleImportEqualsDeclarationExpression(node) @@ -49593,11 +50006,11 @@ function createTypeChecker(host) { false ) && !node.isTypeOnly) { const typeOnlyDeclaration = getTypeOnlyAliasDeclaration(getSymbolOfDeclaration(node)); - const isExport = typeOnlyDeclaration.kind === 280 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 277 /* ExportDeclaration */; + const isExport = typeOnlyDeclaration.kind === 281 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 278 /* ExportDeclaration */; const message = isExport ? Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type : Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type; const relatedMessage = isExport ? Diagnostics._0_was_exported_here : Diagnostics._0_was_imported_here; - const name = typeOnlyDeclaration.kind === 277 /* ExportDeclaration */ ? "*" : unescapeLeadingUnderscores(typeOnlyDeclaration.name.escapedText); - addRelatedInfo(error(node.moduleReference, message), createDiagnosticForNode(typeOnlyDeclaration, relatedMessage, name)); + const name = typeOnlyDeclaration.kind === 278 /* ExportDeclaration */ ? "*" : unescapeLeadingUnderscores(typeOnlyDeclaration.name.escapedText); + addRelatedInfo(error2(node.moduleReference, message), createDiagnosticForNode(typeOnlyDeclaration, relatedMessage, name)); } } function resolveExportByName(moduleSymbol, name, sourceNode, dontResolveAlias) { @@ -49702,7 +50115,7 @@ function createTypeChecker(host) { const compilerOptionName = moduleKind >= 5 /* ES2015 */ ? "allowSyntheticDefaultImports" : "esModuleInterop"; const exportEqualsSymbol = moduleSymbol.exports.get("export=" /* ExportEquals */); const exportAssignment = exportEqualsSymbol.valueDeclaration; - const err = error(node.name, Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag, symbolToString(moduleSymbol), compilerOptionName); + const err = error2(node.name, Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag, symbolToString(moduleSymbol), compilerOptionName); if (exportAssignment) { addRelatedInfo(err, createDiagnosticForNode( exportAssignment, @@ -49738,15 +50151,15 @@ function createTypeChecker(host) { } function getModuleSpecifierForImportOrExport(node) { switch (node.kind) { - case 272 /* ImportClause */: + case 273 /* ImportClause */: return node.parent.moduleSpecifier; - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return isExternalModuleReference(node.moduleReference) ? node.moduleReference.expression : void 0; - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: return node.parent.parent.moduleSpecifier; - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: return node.parent.parent.parent.moduleSpecifier; - case 280 /* ExportSpecifier */: + case 281 /* ExportSpecifier */: return node.parent.parent.moduleSpecifier; default: return Debug.assertNever(node); @@ -49755,14 +50168,14 @@ function createTypeChecker(host) { function reportNonDefaultExport(moduleSymbol, node) { var _a, _b, _c; if ((_a = moduleSymbol.exports) == null ? void 0 : _a.has(node.symbol.escapedName)) { - error( + error2( node.name, Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead, symbolToString(moduleSymbol), symbolToString(node.symbol) ); } else { - const diagnostic = error(node.name, Diagnostics.Module_0_has_no_default_export, symbolToString(moduleSymbol)); + const diagnostic = error2(node.name, Diagnostics.Module_0_has_no_default_export, symbolToString(moduleSymbol)); const exportStar = (_b = moduleSymbol.exports) == null ? void 0 : _b.get("__export" /* ExportStar */); if (exportStar) { const defaultExport = (_c = exportStar.declarations) == null ? void 0 : _c.find((decl) => { @@ -49913,7 +50326,7 @@ function createTypeChecker(host) { const suggestion = getSuggestedSymbolForNonexistentModule(name, targetSymbol); if (suggestion !== void 0) { const suggestionName = symbolToString(suggestion); - const diagnostic = error(name, Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2, moduleName, declarationName, suggestionName); + const diagnostic = error2(name, Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2, moduleName, declarationName, suggestionName); if (suggestion.valueDeclaration) { addRelatedInfo( diagnostic, @@ -49922,7 +50335,7 @@ function createTypeChecker(host) { } } else { if ((_a = moduleSymbol.exports) == null ? void 0 : _a.has("default" /* Default */)) { - error( + error2( name, Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead, moduleName, @@ -49940,10 +50353,10 @@ function createTypeChecker(host) { if (localSymbol) { const exportedEqualsSymbol = exports == null ? void 0 : exports.get("export=" /* ExportEquals */); if (exportedEqualsSymbol) { - getSymbolIfSameReference(exportedEqualsSymbol, localSymbol) ? reportInvalidImportEqualsExportMember(node, name, declarationName, moduleName) : error(name, Diagnostics.Module_0_has_no_exported_member_1, moduleName, declarationName); + getSymbolIfSameReference(exportedEqualsSymbol, localSymbol) ? reportInvalidImportEqualsExportMember(node, name, declarationName, moduleName) : error2(name, Diagnostics.Module_0_has_no_exported_member_1, moduleName, declarationName); } else { const exportedSymbol = exports ? find(symbolsToArray(exports), (symbol) => !!getSymbolIfSameReference(symbol, localSymbol)) : void 0; - const diagnostic = exportedSymbol ? error(name, Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2, moduleName, declarationName, symbolToString(exportedSymbol)) : error(name, Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported, moduleName, declarationName); + const diagnostic = exportedSymbol ? error2(name, Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2, moduleName, declarationName, symbolToString(exportedSymbol)) : error2(name, Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported, moduleName, declarationName); if (localSymbol.declarations) { addRelatedInfo( diagnostic, @@ -49952,20 +50365,20 @@ function createTypeChecker(host) { } } } else { - error(name, Diagnostics.Module_0_has_no_exported_member_1, moduleName, declarationName); + error2(name, Diagnostics.Module_0_has_no_exported_member_1, moduleName, declarationName); } } function reportInvalidImportEqualsExportMember(node, name, declarationName, moduleName) { if (moduleKind >= 5 /* ES2015 */) { const message = getESModuleInterop(compilerOptions) ? Diagnostics._0_can_only_be_imported_by_using_a_default_import : Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import; - error(name, message, declarationName); + error2(name, message, declarationName); } else { if (isInJSFile(node)) { const message = getESModuleInterop(compilerOptions) ? Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import : Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import; - error(name, message, declarationName); + error2(name, message, declarationName); } else { const message = getESModuleInterop(compilerOptions) ? Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import : Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import; - error(name, message, declarationName, declarationName, moduleName); + error2(name, message, declarationName, declarationName, moduleName); } } } @@ -50079,26 +50492,26 @@ function createTypeChecker(host) { } function getTargetOfAliasDeclaration(node, dontRecursivelyResolve = false) { switch (node.kind) { - case 270 /* ImportEqualsDeclaration */: - case 259 /* VariableDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 260 /* VariableDeclaration */: return getTargetOfImportEqualsDeclaration(node, dontRecursivelyResolve); - case 272 /* ImportClause */: + case 273 /* ImportClause */: return getTargetOfImportClause(node, dontRecursivelyResolve); - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: return getTargetOfNamespaceImport(node, dontRecursivelyResolve); - case 279 /* NamespaceExport */: + case 280 /* NamespaceExport */: return getTargetOfNamespaceExport(node, dontRecursivelyResolve); - case 275 /* ImportSpecifier */: - case 207 /* BindingElement */: + case 276 /* ImportSpecifier */: + case 208 /* BindingElement */: return getTargetOfImportSpecifier(node, dontRecursivelyResolve); - case 280 /* ExportSpecifier */: + case 281 /* ExportSpecifier */: return getTargetOfExportSpecifier(node, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */, dontRecursivelyResolve); - case 276 /* ExportAssignment */: - case 225 /* BinaryExpression */: + case 277 /* ExportAssignment */: + case 226 /* BinaryExpression */: return getTargetOfExportAssignment(node, dontRecursivelyResolve); - case 269 /* NamespaceExportDeclaration */: + case 270 /* NamespaceExportDeclaration */: return getTargetOfNamespaceExportDeclaration(node, dontRecursivelyResolve); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return resolveEntityName( node.name, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */, @@ -50106,10 +50519,10 @@ function createTypeChecker(host) { true, dontRecursivelyResolve ); - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return getTargetOfAliasLikeExpression(node.initializer, dontRecursivelyResolve); - case 211 /* ElementAccessExpression */: - case 210 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: return getTargetOfAccessExpression(node, dontRecursivelyResolve); default: return Debug.fail(); @@ -50135,7 +50548,7 @@ function createTypeChecker(host) { if (links.aliasTarget === resolvingSymbol) { links.aliasTarget = target || unknownSymbol; } else { - error(node, Diagnostics.Circular_definition_of_import_alias_0, symbolToString(symbol)); + error2(node, Diagnostics.Circular_definition_of_import_alias_0, symbolToString(symbol)); } } else if (links.aliasTarget === resolvingSymbol) { links.aliasTarget = unknownSymbol; @@ -50149,11 +50562,23 @@ function createTypeChecker(host) { } return void 0; } - function getAllSymbolFlags(symbol) { - let flags = symbol.flags; + function getSymbolFlags(symbol, excludeTypeOnlyMeanings, excludeLocalMeanings) { + const typeOnlyDeclaration = excludeTypeOnlyMeanings && getTypeOnlyAliasDeclaration(symbol); + const typeOnlyDeclarationIsExportStar = typeOnlyDeclaration && isExportDeclaration(typeOnlyDeclaration); + const typeOnlyResolution = typeOnlyDeclaration && (typeOnlyDeclarationIsExportStar ? resolveExternalModuleName( + typeOnlyDeclaration.moduleSpecifier, + typeOnlyDeclaration.moduleSpecifier, + /*ignoreErrors*/ + true + ) : resolveAlias(typeOnlyDeclaration.symbol)); + const typeOnlyExportStarTargets = typeOnlyDeclarationIsExportStar && typeOnlyResolution ? getExportsOfModule(typeOnlyResolution) : void 0; + let flags = excludeLocalMeanings ? 0 /* None */ : symbol.flags; let seenSymbols; while (symbol.flags & 2097152 /* Alias */) { - const target = resolveAlias(symbol); + const target = getExportSymbolOfValueSymbolIfExported(resolveAlias(symbol)); + if (!typeOnlyDeclarationIsExportStar && target === typeOnlyResolution || (typeOnlyExportStarTargets == null ? void 0 : typeOnlyExportStarTargets.get(target.escapedName)) === target) { + break; + } if (target === unknownSymbol) { return 67108863 /* All */; } @@ -50210,8 +50635,8 @@ function createTypeChecker(host) { return links.typeOnlyDeclaration || void 0; } if (links.typeOnlyDeclaration) { - const resolved = links.typeOnlyDeclaration.kind === 277 /* ExportDeclaration */ ? resolveSymbol(getExportsOfModule(links.typeOnlyDeclaration.symbol.parent).get(links.typeOnlyExportStarName || symbol.escapedName)) : resolveAlias(links.typeOnlyDeclaration.symbol); - return getAllSymbolFlags(resolved) & include ? links.typeOnlyDeclaration : void 0; + const resolved = links.typeOnlyDeclaration.kind === 278 /* ExportDeclaration */ ? resolveSymbol(getExportsOfModule(links.typeOnlyDeclaration.symbol.parent).get(links.typeOnlyExportStarName || symbol.escapedName)) : resolveAlias(links.typeOnlyDeclaration.symbol); + return getSymbolFlags(resolved) & include ? links.typeOnlyDeclaration : void 0; } return void 0; } @@ -50222,7 +50647,11 @@ function createTypeChecker(host) { const symbol = getSymbolOfDeclaration(node); const target = resolveAlias(symbol); if (target) { - const markAlias = target === unknownSymbol || getAllSymbolFlags(target) & 111551 /* Value */ && !isConstEnumOrConstEnumOnlyModule(target) && !getTypeOnlyAliasDeclaration(symbol, 111551 /* Value */); + const markAlias = target === unknownSymbol || getSymbolFlags( + symbol, + /*excludeTypeOnlyMeanings*/ + true + ) & 111551 /* Value */ && !isConstEnumOrConstEnumOnlyModule(target); if (markAlias) { markAliasSymbolAsReferenced(symbol); } @@ -50237,7 +50666,7 @@ function createTypeChecker(host) { if (!node) return Debug.fail(); if (isInternalModuleImportEqualsDeclaration(node)) { - if (getAllSymbolFlags(resolveSymbol(symbol)) & 111551 /* Value */) { + if (getSymbolFlags(resolveSymbol(symbol)) & 111551 /* Value */) { checkExpressionCached(node.moduleReference); } } @@ -50253,7 +50682,7 @@ function createTypeChecker(host) { if (entityName.kind === 80 /* Identifier */ && isRightSideOfQualifiedNameOrPropertyAccess(entityName)) { entityName = entityName.parent; } - if (entityName.kind === 80 /* Identifier */ || entityName.parent.kind === 165 /* QualifiedName */) { + if (entityName.kind === 80 /* Identifier */ || entityName.parent.kind === 166 /* QualifiedName */) { return resolveEntityName( entityName, 1920 /* Namespace */, @@ -50262,7 +50691,7 @@ function createTypeChecker(host) { dontResolveAlias ); } else { - Debug.assert(entityName.parent.kind === 270 /* ImportEqualsDeclaration */); + Debug.assert(entityName.parent.kind === 271 /* ImportEqualsDeclaration */); return resolveEntityName( entityName, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */, @@ -50335,9 +50764,9 @@ function createTypeChecker(host) { if (!symbol) { return getMergedSymbol(symbolFromJSPrototype); } - } else if (name.kind === 165 /* QualifiedName */ || name.kind === 210 /* PropertyAccessExpression */) { - const left = name.kind === 165 /* QualifiedName */ ? name.left : name.expression; - const right = name.kind === 165 /* QualifiedName */ ? name.right : name.name; + } else if (name.kind === 166 /* QualifiedName */ || name.kind === 211 /* PropertyAccessExpression */) { + const left = name.kind === 166 /* QualifiedName */ ? name.left : name.expression; + const right = name.kind === 166 /* QualifiedName */ ? name.right : name.name; let namespace = resolveEntityName( left, namespaceMeaning, @@ -50371,13 +50800,13 @@ function createTypeChecker(host) { const declarationName = declarationNameToString(right); const suggestionForNonexistentModule = getSuggestedSymbolForNonexistentModule(right, namespace); if (suggestionForNonexistentModule) { - error(right, Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2, namespaceName, declarationName, symbolToString(suggestionForNonexistentModule)); + error2(right, Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2, namespaceName, declarationName, symbolToString(suggestionForNonexistentModule)); return void 0; } const containingQualifiedName = isQualifiedName(name) && getContainingQualifiedNameNode(name); const canSuggestTypeof = globalObjectType && meaning & 788968 /* Type */ && containingQualifiedName && !isTypeOfExpression(containingQualifiedName.parent) && tryGetQualifiedNameAsValue(containingQualifiedName); if (canSuggestTypeof) { - error( + error2( containingQualifiedName, Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0, entityNameToString(containingQualifiedName) @@ -50387,7 +50816,7 @@ function createTypeChecker(host) { if (meaning & 1920 /* Namespace */ && isQualifiedName(name.parent)) { const exportedTypeSymbol = getMergedSymbol(getSymbol2(getExportsOfSymbol(namespace), right.escapedText, 788968 /* Type */)); if (exportedTypeSymbol) { - error( + error2( name.parent.right, Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1, symbolToString(exportedTypeSymbol), @@ -50396,7 +50825,7 @@ function createTypeChecker(host) { return void 0; } } - error(right, Diagnostics.Namespace_0_has_no_exported_member_1, namespaceName, declarationName); + error2(right, Diagnostics.Namespace_0_has_no_exported_member_1, namespaceName, declarationName); } return void 0; } @@ -50404,7 +50833,7 @@ function createTypeChecker(host) { Debug.assertNever(name, "Unknown entity name kind."); } Debug.assert((getCheckFlags(symbol) & 1 /* Instantiated */) === 0, "Should never get an instantiated symbol here."); - if (!nodeIsSynthesized(name) && isEntityName(name) && (symbol.flags & 2097152 /* Alias */ || name.parent.kind === 276 /* ExportAssignment */)) { + if (!nodeIsSynthesized(name) && isEntityName(name) && (symbol.flags & 2097152 /* Alias */ || name.parent.kind === 277 /* ExportAssignment */)) { markSymbolOfAliasDeclarationIfTypeOnly( getAliasDeclarationFromName(name), symbol, @@ -50434,7 +50863,7 @@ function createTypeChecker(host) { } } function getAssignmentDeclarationLocation(node) { - const typeAlias = findAncestor(node, (node2) => !(isJSDocNode(node2) || node2.flags & 8388608 /* JSDoc */) ? "quit" : isJSDocTypeAlias(node2)); + const typeAlias = findAncestor(node, (node2) => !(isJSDocNode(node2) || node2.flags & 16777216 /* JSDoc */) ? "quit" : isJSDocTypeAlias(node2)); if (typeAlias) { return; } @@ -50497,11 +50926,11 @@ function createTypeChecker(host) { return isStringLiteralLike(moduleReferenceExpression) ? resolveExternalModule(location, moduleReferenceExpression.text, moduleNotFoundError, moduleReferenceExpression, isForAugmentation) : void 0; } function resolveExternalModule(location, moduleReference, moduleNotFoundError, errorNode, isForAugmentation = false) { - var _a, _b, _c, _d, _e, _f, _g, _h, _i; + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j; if (startsWith(moduleReference, "@types/")) { const diag2 = Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1; const withoutAtTypePrefix = removePrefix(moduleReference, "@types/"); - error(errorNode, diag2, withoutAtTypePrefix, moduleReference); + error2(errorNode, diag2, withoutAtTypePrefix, moduleReference); } const ambientModule = tryFindAmbientModule( moduleReference, @@ -50520,20 +50949,23 @@ function createTypeChecker(host) { const sourceFile = resolvedModule && (!resolutionDiagnostic || resolutionDiagnostic === Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set) && host.getSourceFile(resolvedModule.resolvedFileName); if (sourceFile) { if (resolutionDiagnostic) { - error(errorNode, resolutionDiagnostic, moduleReference, resolvedModule.resolvedFileName); + error2(errorNode, resolutionDiagnostic, moduleReference, resolvedModule.resolvedFileName); } if (resolvedModule.resolvedUsingTsExtension && isDeclarationFileName(moduleReference)) { const importOrExport = ((_g = findAncestor(location, isImportDeclaration)) == null ? void 0 : _g.importClause) || findAncestor(location, or(isImportEqualsDeclaration, isExportDeclaration)); if (importOrExport && !importOrExport.isTypeOnly || findAncestor(location, isImportCall)) { - error( + error2( errorNode, Diagnostics.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead, getSuggestedImportSource(Debug.checkDefined(tryExtractTSExtension(moduleReference))) ); } } else if (resolvedModule.resolvedUsingTsExtension && !shouldAllowImportingTsExtension(compilerOptions, currentSourceFile.fileName)) { - const tsExtension = Debug.checkDefined(tryExtractTSExtension(moduleReference)); - error(errorNode, Diagnostics.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled, tsExtension); + const importOrExport = ((_h = findAncestor(location, isImportDeclaration)) == null ? void 0 : _h.importClause) || findAncestor(location, or(isImportEqualsDeclaration, isExportDeclaration)); + if (!((importOrExport == null ? void 0 : importOrExport.isTypeOnly) || findAncestor(location, isImportTypeNode))) { + const tsExtension = Debug.checkDefined(tryExtractTSExtension(moduleReference)); + error2(errorNode, Diagnostics.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled, tsExtension); + } } if (sourceFile.symbol) { if (resolvedModule.isExternalLibraryImport && !resolutionExtensionIsTSOrJson(resolvedModule.extension)) { @@ -50550,10 +50982,10 @@ function createTypeChecker(host) { if (moduleResolutionKind === 3 /* Node16 */ || moduleResolutionKind === 99 /* NodeNext */) { const isSyncImport = currentSourceFile.impliedNodeFormat === 1 /* CommonJS */ && !findAncestor(location, isImportCall) || !!findAncestor(location, isImportEqualsDeclaration); const overrideClauseHost = findAncestor(location, (l) => isImportTypeNode(l) || isExportDeclaration(l) || isImportDeclaration(l)); - const overrideClause = overrideClauseHost && isImportTypeNode(overrideClauseHost) ? (_h = overrideClauseHost.assertions) == null ? void 0 : _h.assertClause : overrideClauseHost == null ? void 0 : overrideClauseHost.assertClause; + const overrideClause = overrideClauseHost && isImportTypeNode(overrideClauseHost) ? (_i = overrideClauseHost.assertions) == null ? void 0 : _i.assertClause : overrideClauseHost == null ? void 0 : overrideClauseHost.assertClause; if (isSyncImport && sourceFile.impliedNodeFormat === 99 /* ESNext */ && !getResolutionModeOverrideForClause(overrideClause)) { if (findAncestor(location, isImportEqualsDeclaration)) { - error(errorNode, Diagnostics.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead, moduleReference); + error2(errorNode, Diagnostics.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead, moduleReference); } else { let diagnosticDetails; const ext = tryGetExtensionFromPath2(currentSourceFile.fileName); @@ -50605,7 +51037,7 @@ function createTypeChecker(host) { return getMergedSymbol(sourceFile.symbol); } if (moduleNotFoundError) { - error(errorNode, Diagnostics.File_0_is_not_a_module, sourceFile.fileName); + error2(errorNode, Diagnostics.File_0_is_not_a_module, sourceFile.fileName); } return void 0; } @@ -50622,7 +51054,7 @@ function createTypeChecker(host) { if (resolvedModule && !resolutionExtensionIsTSOrJson(resolvedModule.extension) && resolutionDiagnostic === void 0 || resolutionDiagnostic === Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type) { if (isForAugmentation) { const diag2 = Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented; - error(errorNode, diag2, moduleReference, resolvedModule.resolvedFileName); + error2(errorNode, diag2, moduleReference, resolvedModule.resolvedFileName); } else { errorOnImplicitAnyModule( /*isError*/ @@ -50640,31 +51072,31 @@ function createTypeChecker(host) { if (resolvedModule) { const redirect = host.getProjectReferenceRedirect(resolvedModule.resolvedFileName); if (redirect) { - error(errorNode, Diagnostics.Output_file_0_has_not_been_built_from_source_file_1, redirect, resolvedModule.resolvedFileName); + error2(errorNode, Diagnostics.Output_file_0_has_not_been_built_from_source_file_1, redirect, resolvedModule.resolvedFileName); return void 0; } } if (resolutionDiagnostic) { - error(errorNode, resolutionDiagnostic, moduleReference, resolvedModule.resolvedFileName); + error2(errorNode, resolutionDiagnostic, moduleReference, resolvedModule.resolvedFileName); } else { const isExtensionlessRelativePathImport = pathIsRelative(moduleReference) && !hasExtension(moduleReference); const resolutionIsNode16OrNext = moduleResolutionKind === 3 /* Node16 */ || moduleResolutionKind === 99 /* NodeNext */; if (!getResolveJsonModule(compilerOptions) && fileExtensionIs(moduleReference, ".json" /* Json */) && moduleResolutionKind !== 1 /* Classic */ && hasJsonModuleEmitEnabled(compilerOptions)) { - error(errorNode, Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension, moduleReference); + error2(errorNode, Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension, moduleReference); } else if (mode === 99 /* ESNext */ && resolutionIsNode16OrNext && isExtensionlessRelativePathImport) { const absoluteRef = getNormalizedAbsolutePath(moduleReference, getDirectoryPath(currentSourceFile.path)); - const suggestedExt = (_i = suggestedExtensions.find(([actualExt, _importExt]) => host.fileExists(absoluteRef + actualExt))) == null ? void 0 : _i[1]; + const suggestedExt = (_j = suggestedExtensions.find(([actualExt, _importExt]) => host.fileExists(absoluteRef + actualExt))) == null ? void 0 : _j[1]; if (suggestedExt) { - error( + error2( errorNode, Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0, moduleReference + suggestedExt ); } else { - error(errorNode, Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path); + error2(errorNode, Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path); } } else { - error(errorNode, moduleNotFoundError, moduleReference); + error2(errorNode, moduleNotFoundError, moduleReference); } } } @@ -50728,9 +51160,9 @@ function createTypeChecker(host) { var _a; const symbol = resolveExternalModuleSymbol(moduleSymbol, dontResolveAlias); if (!dontResolveAlias && symbol) { - if (!suppressInteropError && !(symbol.flags & (1536 /* Module */ | 3 /* Variable */)) && !getDeclarationOfKind(symbol, 311 /* SourceFile */)) { + if (!suppressInteropError && !(symbol.flags & (1536 /* Module */ | 3 /* Variable */)) && !getDeclarationOfKind(symbol, 312 /* SourceFile */)) { const compilerOptionName = moduleKind >= 5 /* ES2015 */ ? "allowSyntheticDefaultImports" : "esModuleInterop"; - error(referencingLocation, Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export, compilerOptionName); + error2(referencingLocation, Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export, compilerOptionName); return symbol; } const referenceParent = referencingLocation.parent; @@ -51085,12 +51517,12 @@ function createTypeChecker(host) { return getMergedSymbol(symbol && (symbol.flags & 1048576 /* ExportValue */) !== 0 && symbol.exportSymbol || symbol); } function symbolIsValue(symbol, includeTypeOnlyMembers) { - return !!(symbol.flags & 111551 /* Value */ || symbol.flags & 2097152 /* Alias */ && getAllSymbolFlags(symbol) & 111551 /* Value */ && (includeTypeOnlyMembers || !getTypeOnlyAliasDeclaration(symbol))); + return !!(symbol.flags & 111551 /* Value */ || symbol.flags & 2097152 /* Alias */ && getSymbolFlags(symbol, !includeTypeOnlyMembers) & 111551 /* Value */); } function findConstructorDeclaration(node) { const members = node.members; for (const member of members) { - if (member.kind === 175 /* Constructor */ && nodeIsPresent(member.body)) { + if (member.kind === 176 /* Constructor */ && nodeIsPresent(member.body)) { return member; } } @@ -51114,7 +51546,7 @@ function createTypeChecker(host) { function createIntrinsicType(kind, intrinsicName, objectFlags = 0 /* None */) { const type = createType(kind); type.intrinsicName = intrinsicName; - type.objectFlags = objectFlags; + type.objectFlags = objectFlags | 524288 /* CouldContainTypeVariablesComputed */ | 2097152 /* IsGenericTypeComputed */ | 33554432 /* IsUnknownLikeUnionComputed */ | 16777216 /* IsNeverIntersectionComputed */; return type; } function createObjectType(objectFlags, symbol) { @@ -51208,11 +51640,11 @@ function createTypeChecker(host) { } } switch (location.kind) { - case 311 /* SourceFile */: + case 312 /* SourceFile */: if (!isExternalOrCommonJsModule(location)) { break; } - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: const sym = getSymbolOfDeclaration(location); if (result = callback( (sym == null ? void 0 : sym.exports) || emptySymbols, @@ -51225,9 +51657,9 @@ function createTypeChecker(host) { return result; } break; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: let table; (getSymbolOfDeclaration(location).members || emptySymbols).forEach((memberSymbol, key) => { if (memberSymbol.flags & (788968 /* Type */ & ~67108864 /* Assignment */)) { @@ -51305,7 +51737,7 @@ function createTypeChecker(host) { return [symbol]; } const result2 = forEachEntry(symbols, (symbolFromSymbolTable) => { - if (symbolFromSymbolTable.flags & 2097152 /* Alias */ && symbolFromSymbolTable.escapedName !== "export=" /* ExportEquals */ && symbolFromSymbolTable.escapedName !== "default" /* Default */ && !(isUMDExportSymbol(symbolFromSymbolTable) && enclosingDeclaration && isExternalModule(getSourceFileOfNode(enclosingDeclaration))) && (!useOnlyExternalAliasing || some(symbolFromSymbolTable.declarations, isExternalModuleImportEqualsDeclaration)) && (isLocalNameLookup ? !some(symbolFromSymbolTable.declarations, isNamespaceReexportDeclaration) : true) && (ignoreQualification || !getDeclarationOfKind(symbolFromSymbolTable, 280 /* ExportSpecifier */))) { + if (symbolFromSymbolTable.flags & 2097152 /* Alias */ && symbolFromSymbolTable.escapedName !== "export=" /* ExportEquals */ && symbolFromSymbolTable.escapedName !== "default" /* Default */ && !(isUMDExportSymbol(symbolFromSymbolTable) && enclosingDeclaration && isExternalModule(getSourceFileOfNode(enclosingDeclaration))) && (!useOnlyExternalAliasing || some(symbolFromSymbolTable.declarations, isExternalModuleImportEqualsDeclaration)) && (isLocalNameLookup ? !some(symbolFromSymbolTable.declarations, isNamespaceReexportDeclaration) : true) && (ignoreQualification || !getDeclarationOfKind(symbolFromSymbolTable, 281 /* ExportSpecifier */))) { const resolvedImportedSymbol = resolveAlias(symbolFromSymbolTable); const candidate = getCandidateListForSymbol(symbolFromSymbolTable, resolvedImportedSymbol, ignoreQualification); if (candidate) { @@ -51350,9 +51782,9 @@ function createTypeChecker(host) { if (symbolFromSymbolTable === symbol) { return true; } - const shouldResolveAlias = symbolFromSymbolTable.flags & 2097152 /* Alias */ && !getDeclarationOfKind(symbolFromSymbolTable, 280 /* ExportSpecifier */); + const shouldResolveAlias = symbolFromSymbolTable.flags & 2097152 /* Alias */ && !getDeclarationOfKind(symbolFromSymbolTable, 281 /* ExportSpecifier */); symbolFromSymbolTable = shouldResolveAlias ? resolveAlias(symbolFromSymbolTable) : symbolFromSymbolTable; - const flags = shouldResolveAlias ? getAllSymbolFlags(symbolFromSymbolTable) : symbolFromSymbolTable.flags; + const flags = shouldResolveAlias ? getSymbolFlags(symbolFromSymbolTable) : symbolFromSymbolTable.flags; if (flags & meaning) { qualify = true; return true; @@ -51365,10 +51797,10 @@ function createTypeChecker(host) { if (symbol.declarations && symbol.declarations.length) { for (const declaration of symbol.declarations) { switch (declaration.kind) { - case 171 /* PropertyDeclaration */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: continue; default: return false; @@ -51504,10 +51936,10 @@ function createTypeChecker(host) { return node && getSymbolOfDeclaration(node); } function hasExternalModuleSymbol(declaration) { - return isAmbientModule(declaration) || declaration.kind === 311 /* SourceFile */ && isExternalOrCommonJsModule(declaration); + return isAmbientModule(declaration) || declaration.kind === 312 /* SourceFile */ && isExternalOrCommonJsModule(declaration); } function hasNonGlobalAugmentationExternalModuleSymbol(declaration) { - return isModuleWithStringLiteralName(declaration) || declaration.kind === 311 /* SourceFile */ && isExternalOrCommonJsModule(declaration); + return isModuleWithStringLiteralName(declaration) || declaration.kind === 312 /* SourceFile */ && isExternalOrCommonJsModule(declaration); } function hasVisibleDeclarations(symbol, shouldComputeAliasToMakeVisible) { let aliasesToMakeVisible; @@ -51555,9 +51987,9 @@ function createTypeChecker(host) { } function isEntityNameVisible(entityName, enclosingDeclaration) { let meaning; - if (entityName.parent.kind === 185 /* TypeQuery */ || entityName.parent.kind === 232 /* ExpressionWithTypeArguments */ && !isPartOfTypeNode(entityName.parent) || entityName.parent.kind === 166 /* ComputedPropertyName */) { + if (entityName.parent.kind === 186 /* TypeQuery */ || entityName.parent.kind === 233 /* ExpressionWithTypeArguments */ && !isPartOfTypeNode(entityName.parent) || entityName.parent.kind === 167 /* ComputedPropertyName */) { meaning = 111551 /* Value */ | 1048576 /* ExportValue */; - } else if (entityName.kind === 165 /* QualifiedName */ || entityName.kind === 210 /* PropertyAccessExpression */ || entityName.parent.kind === 270 /* ImportEqualsDeclaration */) { + } else if (entityName.kind === 166 /* QualifiedName */ || entityName.kind === 211 /* PropertyAccessExpression */ || entityName.parent.kind === 271 /* ImportEqualsDeclaration */) { meaning = 1920 /* Namespace */; } else { meaning = 788968 /* Type */; @@ -51623,7 +52055,7 @@ function createTypeChecker(host) { return writer ? symbolToStringWorker(writer).getText() : usingSingleLineStringWriter(symbolToStringWorker); function symbolToStringWorker(writer2) { const entity = builder(symbol, meaning, enclosingDeclaration, nodeFlags); - const printer = (enclosingDeclaration == null ? void 0 : enclosingDeclaration.kind) === 311 /* SourceFile */ ? createPrinterWithRemoveCommentsNeverAsciiEscape() : createPrinterWithRemoveComments(); + const printer = (enclosingDeclaration == null ? void 0 : enclosingDeclaration.kind) === 312 /* SourceFile */ ? createPrinterWithRemoveCommentsNeverAsciiEscape() : createPrinterWithRemoveComments(); const sourceFile = enclosingDeclaration && getSourceFileOfNode(enclosingDeclaration); printer.writeNode( 4 /* Unspecified */, @@ -51640,9 +52072,9 @@ function createTypeChecker(host) { function signatureToStringWorker(writer2) { let sigOutput; if (flags & 262144 /* WriteArrowStyleSignature */) { - sigOutput = kind === 1 /* Construct */ ? 184 /* ConstructorType */ : 183 /* FunctionType */; + sigOutput = kind === 1 /* Construct */ ? 185 /* ConstructorType */ : 184 /* FunctionType */; } else { - sigOutput = kind === 1 /* Construct */ ? 179 /* ConstructSignature */ : 178 /* CallSignature */; + sigOutput = kind === 1 /* Construct */ ? 180 /* ConstructSignature */ : 179 /* CallSignature */; } const sig = nodeBuilder.signatureToSignatureDeclaration(signature, sigOutput, enclosingDeclaration, toNodeBuilderFlags(flags) | 70221824 /* IgnoreErrors */ | 512 /* WriteTypeParametersInQualifiedName */); const printer = createPrinterWithRemoveCommentsOmitTrailingSemicolon(); @@ -51744,7 +52176,7 @@ function createTypeChecker(host) { return symbolToExpression(symbol, context, meaning); } function withContext(enclosingDeclaration, flags, tracker, cb) { - Debug.assert(enclosingDeclaration === void 0 || (enclosingDeclaration.flags & 8 /* Synthesized */) === 0); + Debug.assert(enclosingDeclaration === void 0 || (enclosingDeclaration.flags & 16 /* Synthesized */) === 0); const moduleResolverHost = (tracker == null ? void 0 : tracker.trackSymbol) ? tracker.moduleResolverHost : flags & 134217728 /* DoNotIncludeSymbolChain */ ? createBasicNodeBuilderModuleSpecifierResolutionHost(host) : void 0; const context = { enclosingDeclaration, @@ -51816,7 +52248,7 @@ function createTypeChecker(host) { } if (type.flags & 64 /* BigInt */) { context.approximateLength += 6; - return factory.createKeywordTypeNode(162 /* BigIntKeyword */); + return factory.createKeywordTypeNode(163 /* BigIntKeyword */); } if (type.flags & 16 /* Boolean */ && !type.aliasSymbol) { context.approximateLength += 7; @@ -52089,11 +52521,13 @@ function createTypeChecker(host) { return !!type2.target && isMappedTypeHomomorphic(type2.target) && !isMappedTypeHomomorphic(type2); } function createMappedTypeNodeFromType(type2) { + var _a2; Debug.assert(!!(type2.flags & 524288 /* Object */)); const readonlyToken = type2.declaration.readonlyToken ? factory.createToken(type2.declaration.readonlyToken.kind) : void 0; const questionToken = type2.declaration.questionToken ? factory.createToken(type2.declaration.questionToken.kind) : void 0; let appropriateConstraintTypeNode; let newTypeVariable; + const needsModifierPreservingWrapper = !isMappedTypeWithKeyofConstraintDeclaration(type2) && !(getModifiersTypeFromMappedType(type2).flags & 2 /* Unknown */) && context.flags & 4 /* GenerateNamesForShadowedTypeParams */ && !(getConstraintTypeFromMappedType(type2).flags & 262144 /* TypeParameter */ && ((_a2 = getConstraintOfTypeParameter(getConstraintTypeFromMappedType(type2))) == null ? void 0 : _a2.flags) & 4194304 /* Index */); if (isMappedTypeWithKeyofConstraintDeclaration(type2)) { if (isHomomorphicMappedTypeWithNonHomomorphicInstantiation(type2) && context.flags & 4 /* GenerateNamesForShadowedTypeParams */) { const newParam = createTypeParameter(createSymbol(262144 /* TypeParameter */, "T")); @@ -52101,6 +52535,11 @@ function createTypeChecker(host) { newTypeVariable = factory.createTypeReferenceNode(name); } appropriateConstraintTypeNode = factory.createTypeOperatorNode(143 /* KeyOfKeyword */, newTypeVariable || typeToTypeNodeHelper(getModifiersTypeFromMappedType(type2), context)); + } else if (needsModifierPreservingWrapper) { + const newParam = createTypeParameter(createSymbol(262144 /* TypeParameter */, "T")); + const name = typeParameterToName(newParam, context); + newTypeVariable = factory.createTypeReferenceNode(name); + appropriateConstraintTypeNode = newTypeVariable; } else { appropriateConstraintTypeNode = typeToTypeNodeHelper(getConstraintTypeFromMappedType(type2), context); } @@ -52131,6 +52570,18 @@ function createTypeChecker(host) { result, factory.createKeywordTypeNode(146 /* NeverKeyword */) ); + } else if (needsModifierPreservingWrapper) { + return factory.createConditionalTypeNode( + typeToTypeNodeHelper(getConstraintTypeFromMappedType(type2), context), + factory.createInferTypeNode(factory.createTypeParameterDeclaration( + /*modifiers*/ + void 0, + factory.cloneNode(newTypeVariable.typeName), + factory.createTypeOperatorNode(143 /* KeyOfKeyword */, typeToTypeNodeHelper(getModifiersTypeFromMappedType(type2), context)) + )), + result, + factory.createKeywordTypeNode(146 /* NeverKeyword */) + ); } return result; } @@ -52182,7 +52633,7 @@ function createTypeChecker(host) { const isStaticMethodSymbol = !!(symbol.flags & 8192 /* Method */) && // typeof static method some(symbol.declarations, (declaration) => isStatic(declaration)); const isNonLocalFunctionSymbol = !!(symbol.flags & 16 /* Function */) && (symbol.parent || // is exported function symbol - forEach(symbol.declarations, (declaration) => declaration.parent.kind === 311 /* SourceFile */ || declaration.parent.kind === 267 /* ModuleBlock */)); + forEach(symbol.declarations, (declaration) => declaration.parent.kind === 312 /* SourceFile */ || declaration.parent.kind === 268 /* ModuleBlock */)); if (isStaticMethodSymbol || isNonLocalFunctionSymbol) { return (!!(context.flags & 4096 /* UseTypeOfFunction */) || ((_a3 = context.visitedTypes) == null ? void 0 : _a3.has(typeId))) && // it is type of the symbol uses itself recursively (!(context.flags & 8 /* UseStructuralFallback */) || isValueSymbolAccessible(symbol, context.enclosingDeclaration)); @@ -52265,12 +52716,12 @@ function createTypeChecker(host) { } if (resolved.callSignatures.length === 1 && !resolved.constructSignatures.length) { const signature = resolved.callSignatures[0]; - const signatureNode = signatureToSignatureDeclarationHelper(signature, 183 /* FunctionType */, context); + const signatureNode = signatureToSignatureDeclarationHelper(signature, 184 /* FunctionType */, context); return signatureNode; } if (resolved.constructSignatures.length === 1 && !resolved.callSignatures.length) { const signature = resolved.constructSignatures[0]; - const signatureNode = signatureToSignatureDeclarationHelper(signature, 184 /* ConstructorType */, context); + const signatureNode = signatureToSignatureDeclarationHelper(signature, 185 /* ConstructorType */, context); return signatureNode; } } @@ -52310,19 +52761,18 @@ function createTypeChecker(host) { const arity = getTypeReferenceArity(type2); const tupleConstituentNodes = mapToTypeNodes(typeArguments.slice(0, arity), context); if (tupleConstituentNodes) { - if (type2.target.labeledElementDeclarations) { - for (let i = 0; i < tupleConstituentNodes.length; i++) { - const flags = type2.target.elementFlags[i]; + const { labeledElementDeclarations } = type2.target; + for (let i = 0; i < tupleConstituentNodes.length; i++) { + const flags = type2.target.elementFlags[i]; + const labeledElementDeclaration = labeledElementDeclarations == null ? void 0 : labeledElementDeclarations[i]; + if (labeledElementDeclaration) { tupleConstituentNodes[i] = factory.createNamedTupleMember( flags & 12 /* Variable */ ? factory.createToken(26 /* DotDotDotToken */) : void 0, - factory.createIdentifier(unescapeLeadingUnderscores(getTupleElementLabel(type2.target.labeledElementDeclarations[i]))), + factory.createIdentifier(unescapeLeadingUnderscores(getTupleElementLabel(labeledElementDeclaration))), flags & 2 /* Optional */ ? factory.createToken(58 /* QuestionToken */) : void 0, flags & 4 /* Rest */ ? factory.createArrayTypeNode(tupleConstituentNodes[i]) : tupleConstituentNodes[i] ); - } - } else { - for (let i = 0; i < Math.min(arity, tupleConstituentNodes.length); i++) { - const flags = type2.target.elementFlags[i]; + } else { tupleConstituentNodes[i] = flags & 12 /* Variable */ ? factory.createRestTypeNode(flags & 4 /* Rest */ ? factory.createArrayTypeNode(tupleConstituentNodes[i]) : tupleConstituentNodes[i]) : flags & 2 /* Optional */ ? factory.createOptionalTypeNode(tupleConstituentNodes[i]) : tupleConstituentNodes[i]; } } @@ -52456,12 +52906,12 @@ function createTypeChecker(host) { } const typeElements = []; for (const signature of resolvedType.callSignatures) { - typeElements.push(signatureToSignatureDeclarationHelper(signature, 178 /* CallSignature */, context)); + typeElements.push(signatureToSignatureDeclarationHelper(signature, 179 /* CallSignature */, context)); } for (const signature of resolvedType.constructSignatures) { if (signature.flags & 4 /* Abstract */) continue; - typeElements.push(signatureToSignatureDeclarationHelper(signature, 179 /* ConstructSignature */, context)); + typeElements.push(signatureToSignatureDeclarationHelper(signature, 180 /* ConstructSignature */, context)); } for (const info of resolvedType.indexInfos) { typeElements.push(indexInfoToIndexSignatureDeclarationHelper(info, context, resolvedType.objectFlags & 1024 /* ReverseMapped */ ? createElidedInformationPlaceholder(context) : void 0)); @@ -52545,39 +52995,41 @@ function createTypeChecker(host) { if (propertySymbol.flags & (16 /* Function */ | 8192 /* Method */) && !getPropertiesOfObjectType(propertyType).length && !isReadonlySymbol(propertySymbol)) { const signatures = getSignaturesOfType(filterType(propertyType, (t) => !(t.flags & 32768 /* Undefined */)), 0 /* Call */); for (const signature of signatures) { - const methodDeclaration = signatureToSignatureDeclarationHelper(signature, 172 /* MethodSignature */, context, { name: propertyName, questionToken: optionalToken }); + const methodDeclaration = signatureToSignatureDeclarationHelper(signature, 173 /* MethodSignature */, context, { name: propertyName, questionToken: optionalToken }); typeElements.push(preserveCommentsOn(methodDeclaration)); } + if (signatures.length || !optionalToken) { + return; + } + } + let propertyTypeNode; + if (shouldUsePlaceholderForProperty(propertySymbol, context)) { + propertyTypeNode = createElidedInformationPlaceholder(context); } else { - let propertyTypeNode; - if (shouldUsePlaceholderForProperty(propertySymbol, context)) { - propertyTypeNode = createElidedInformationPlaceholder(context); - } else { - if (propertyIsReverseMapped) { - context.reverseMappedStack || (context.reverseMappedStack = []); - context.reverseMappedStack.push(propertySymbol); - } - propertyTypeNode = propertyType ? serializeTypeForDeclaration(context, propertyType, propertySymbol, saveEnclosingDeclaration) : factory.createKeywordTypeNode(133 /* AnyKeyword */); - if (propertyIsReverseMapped) { - context.reverseMappedStack.pop(); - } + if (propertyIsReverseMapped) { + context.reverseMappedStack || (context.reverseMappedStack = []); + context.reverseMappedStack.push(propertySymbol); } - const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0; - if (modifiers) { - context.approximateLength += 9; + propertyTypeNode = propertyType ? serializeTypeForDeclaration(context, propertyType, propertySymbol, saveEnclosingDeclaration) : factory.createKeywordTypeNode(133 /* AnyKeyword */); + if (propertyIsReverseMapped) { + context.reverseMappedStack.pop(); } - const propertySignature = factory.createPropertySignature( - modifiers, - propertyName, - optionalToken, - propertyTypeNode - ); - typeElements.push(preserveCommentsOn(propertySignature)); } + const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0; + if (modifiers) { + context.approximateLength += 9; + } + const propertySignature = factory.createPropertySignature( + modifiers, + propertyName, + optionalToken, + propertyTypeNode + ); + typeElements.push(preserveCommentsOn(propertySignature)); function preserveCommentsOn(node) { var _a2; - if (some(propertySymbol.declarations, (d) => d.kind === 354 /* JSDocPropertyTag */)) { - const d = (_a2 = propertySymbol.declarations) == null ? void 0 : _a2.find((d2) => d2.kind === 354 /* JSDocPropertyTag */); + if (some(propertySymbol.declarations, (d) => d.kind === 355 /* JSDocPropertyTag */)) { + const d = (_a2 = propertySymbol.declarations) == null ? void 0 : _a2.find((d2) => d2.kind === 355 /* JSDocPropertyTag */); const commentText = getTextOfJSDocComment(d.comment); if (commentText) { setSyntheticLeadingComments(node, [{ kind: 3 /* MultiLineCommentTrivia */, text: "*\n * " + commentText.replace(/\n/g, "\n * ") + "\n ", pos: -1, end: -1, hasTrailingNewLine: true }]); @@ -52683,6 +53135,7 @@ function createTypeChecker(host) { ); } function signatureToSignatureDeclarationHelper(signature, kind, context, options) { + var _a; const suppressAny = context.flags & 256 /* SuppressAnyReturnType */; if (suppressAny) context.flags &= ~256 /* SuppressAnyReturnType */; @@ -52732,7 +53185,7 @@ function createTypeChecker(host) { } } } - const parameters = (some(expandedParams, (p) => p !== expandedParams[expandedParams.length - 1] && !!(getCheckFlags(p) & 32768 /* RestParameter */)) ? signature.parameters : expandedParams).map((parameter) => symbolToParameterDeclaration(parameter, context, kind === 175 /* Constructor */, options == null ? void 0 : options.privateSymbolVisitor, options == null ? void 0 : options.bundledImports)); + const parameters = (some(expandedParams, (p) => p !== expandedParams[expandedParams.length - 1] && !!(getCheckFlags(p) & 32768 /* RestParameter */)) ? signature.parameters : expandedParams).map((parameter) => symbolToParameterDeclaration(parameter, context, kind === 176 /* Constructor */, options == null ? void 0 : options.privateSymbolVisitor, options == null ? void 0 : options.bundledImports)); const thisParameter = context.flags & 33554432 /* OmitThisParameter */ ? void 0 : tryGetThisParameterDeclaration(signature, context); if (thisParameter) { parameters.unshift(thisParameter); @@ -52753,11 +53206,11 @@ function createTypeChecker(host) { } } let modifiers = options == null ? void 0 : options.modifiers; - if (kind === 184 /* ConstructorType */ && signature.flags & 4 /* Abstract */) { + if (kind === 185 /* ConstructorType */ && signature.flags & 4 /* Abstract */) { const flags = modifiersToFlags(modifiers); modifiers = factory.createModifiersFromModifierFlags(flags | 256 /* Abstract */); } - const node = kind === 178 /* CallSignature */ ? factory.createCallSignature(typeParameters, parameters, returnTypeNode) : kind === 179 /* ConstructSignature */ ? factory.createConstructSignature(typeParameters, parameters, returnTypeNode) : kind === 172 /* MethodSignature */ ? factory.createMethodSignature(modifiers, (options == null ? void 0 : options.name) ?? factory.createIdentifier(""), options == null ? void 0 : options.questionToken, typeParameters, parameters, returnTypeNode) : kind === 173 /* MethodDeclaration */ ? factory.createMethodDeclaration( + const node = kind === 179 /* CallSignature */ ? factory.createCallSignature(typeParameters, parameters, returnTypeNode) : kind === 180 /* ConstructSignature */ ? factory.createConstructSignature(typeParameters, parameters, returnTypeNode) : kind === 173 /* MethodSignature */ ? factory.createMethodSignature(modifiers, (options == null ? void 0 : options.name) ?? factory.createIdentifier(""), options == null ? void 0 : options.questionToken, typeParameters, parameters, returnTypeNode) : kind === 174 /* MethodDeclaration */ ? factory.createMethodDeclaration( modifiers, /*asteriskToken*/ void 0, @@ -52769,25 +53222,25 @@ function createTypeChecker(host) { returnTypeNode, /*body*/ void 0 - ) : kind === 175 /* Constructor */ ? factory.createConstructorDeclaration( + ) : kind === 176 /* Constructor */ ? factory.createConstructorDeclaration( modifiers, parameters, /*body*/ void 0 - ) : kind === 176 /* GetAccessor */ ? factory.createGetAccessorDeclaration( + ) : kind === 177 /* GetAccessor */ ? factory.createGetAccessorDeclaration( modifiers, (options == null ? void 0 : options.name) ?? factory.createIdentifier(""), parameters, returnTypeNode, /*body*/ void 0 - ) : kind === 177 /* SetAccessor */ ? factory.createSetAccessorDeclaration( + ) : kind === 178 /* SetAccessor */ ? factory.createSetAccessorDeclaration( modifiers, (options == null ? void 0 : options.name) ?? factory.createIdentifier(""), parameters, /*body*/ void 0 - ) : kind === 180 /* IndexSignature */ ? factory.createIndexSignature(modifiers, parameters, returnTypeNode) : kind === 323 /* JSDocFunctionType */ ? factory.createJSDocFunctionType(parameters, returnTypeNode) : kind === 183 /* FunctionType */ ? factory.createFunctionTypeNode(typeParameters, parameters, returnTypeNode ?? factory.createTypeReferenceNode(factory.createIdentifier(""))) : kind === 184 /* ConstructorType */ ? factory.createConstructorTypeNode(modifiers, typeParameters, parameters, returnTypeNode ?? factory.createTypeReferenceNode(factory.createIdentifier(""))) : kind === 261 /* FunctionDeclaration */ ? factory.createFunctionDeclaration( + ) : kind === 181 /* IndexSignature */ ? factory.createIndexSignature(modifiers, parameters, returnTypeNode) : kind === 324 /* JSDocFunctionType */ ? factory.createJSDocFunctionType(parameters, returnTypeNode) : kind === 184 /* FunctionType */ ? factory.createFunctionTypeNode(typeParameters, parameters, returnTypeNode ?? factory.createTypeReferenceNode(factory.createIdentifier(""))) : kind === 185 /* ConstructorType */ ? factory.createConstructorTypeNode(modifiers, typeParameters, parameters, returnTypeNode ?? factory.createTypeReferenceNode(factory.createIdentifier(""))) : kind === 262 /* FunctionDeclaration */ ? factory.createFunctionDeclaration( modifiers, /*asteriskToken*/ void 0, @@ -52797,7 +53250,7 @@ function createTypeChecker(host) { returnTypeNode, /*body*/ void 0 - ) : kind === 217 /* FunctionExpression */ ? factory.createFunctionExpression( + ) : kind === 218 /* FunctionExpression */ ? factory.createFunctionExpression( modifiers, /*asteriskToken*/ void 0, @@ -52806,7 +53259,7 @@ function createTypeChecker(host) { parameters, returnTypeNode, factory.createBlock([]) - ) : kind === 218 /* ArrowFunction */ ? factory.createArrowFunction( + ) : kind === 219 /* ArrowFunction */ ? factory.createArrowFunction( modifiers, typeParameters, parameters, @@ -52818,6 +53271,20 @@ function createTypeChecker(host) { if (typeArguments) { node.typeArguments = factory.createNodeArray(typeArguments); } + if (((_a = signature.declaration) == null ? void 0 : _a.kind) === 330 /* JSDocSignature */ && signature.declaration.parent.kind === 346 /* JSDocOverloadTag */) { + const comment = getTextOfNode( + signature.declaration.parent.parent, + /*includeTrivia*/ + true + ).slice(2, -2).split(/\r\n|\n|\r/).map((line) => line.replace(/^\s+/, " ")).join("\n"); + addSyntheticLeadingComment( + node, + 3 /* MultiLineCommentTrivia */, + comment, + /*hasTrailingNewLine*/ + true + ); + } cleanup == null ? void 0 : cleanup(); return node; } @@ -52856,9 +53323,9 @@ function createTypeChecker(host) { return typeParameterToDeclarationWithConstraint(type, context, constraintNode); } function symbolToParameterDeclaration(parameterSymbol, context, preserveModifierFlags, privateSymbolVisitor, bundledImports) { - let parameterDeclaration = getDeclarationOfKind(parameterSymbol, 168 /* Parameter */); + let parameterDeclaration = getDeclarationOfKind(parameterSymbol, 169 /* Parameter */); if (!parameterDeclaration && !isTransientSymbol(parameterSymbol)) { - parameterDeclaration = getDeclarationOfKind(parameterSymbol, 347 /* JSDocParameterTag */); + parameterDeclaration = getDeclarationOfKind(parameterSymbol, 348 /* JSDocParameterTag */); } let parameterType = getTypeOfSymbol(parameterSymbol); if (parameterDeclaration && isRequiredInitializedParameter(parameterDeclaration)) { @@ -52868,7 +53335,7 @@ function createTypeChecker(host) { const modifiers = !(context.flags & 8192 /* OmitParameterModifiers */) && preserveModifierFlags && parameterDeclaration && canHaveModifiers(parameterDeclaration) ? map(getModifiers(parameterDeclaration), factory.cloneNode) : void 0; const isRest = parameterDeclaration && isRestParameter(parameterDeclaration) || getCheckFlags(parameterSymbol) & 32768 /* RestParameter */; const dotDotDotToken = isRest ? factory.createToken(26 /* DotDotDotToken */) : void 0; - const name = parameterDeclaration ? parameterDeclaration.name ? parameterDeclaration.name.kind === 80 /* Identifier */ ? setEmitFlags(factory.cloneNode(parameterDeclaration.name), 16777216 /* NoAsciiEscaping */) : parameterDeclaration.name.kind === 165 /* QualifiedName */ ? setEmitFlags(factory.cloneNode(parameterDeclaration.name.right), 16777216 /* NoAsciiEscaping */) : cloneBindingName(parameterDeclaration.name) : symbolName(parameterSymbol) : symbolName(parameterSymbol); + const name = parameterDeclaration ? parameterDeclaration.name ? parameterDeclaration.name.kind === 80 /* Identifier */ ? setEmitFlags(factory.cloneNode(parameterDeclaration.name), 16777216 /* NoAsciiEscaping */) : parameterDeclaration.name.kind === 166 /* QualifiedName */ ? setEmitFlags(factory.cloneNode(parameterDeclaration.name.right), 16777216 /* NoAsciiEscaping */) : cloneBindingName(parameterDeclaration.name) : symbolName(parameterSymbol) : symbolName(parameterSymbol); const isOptional = parameterDeclaration && isOptionalParameter(parameterDeclaration) || getCheckFlags(parameterSymbol) & 16384 /* OptionalParameter */; const questionToken = isOptional ? factory.createToken(58 /* QuestionToken */) : void 0; const parameterNode = factory.createParameterDeclaration( @@ -53048,11 +53515,11 @@ function createTypeChecker(host) { return top; } function getSpecifierForModuleSymbol(symbol, context, overrideImportMode) { - let file = getDeclarationOfKind(symbol, 311 /* SourceFile */); + let file = getDeclarationOfKind(symbol, 312 /* SourceFile */); if (!file) { const equivalentFileSymbol = firstDefined(symbol.declarations, (d) => getFileSymbolIfFileSymbolExportEqualsContainer(d, symbol)); if (equivalentFileSymbol) { - file = getDeclarationOfKind(equivalentFileSymbol, 311 /* SourceFile */); + file = getDeclarationOfKind(equivalentFileSymbol, 312 /* SourceFile */); } } if (file && file.moduleName !== void 0) { @@ -53532,7 +53999,7 @@ function createTypeChecker(host) { } return transformed === existing ? setTextRange(factory.cloneNode(existing), existing) : transformed; function visitExistingNodeTreeSymbols(node) { - if (isJSDocAllType(node) || node.kind === 325 /* JSDocNamepathType */) { + if (isJSDocAllType(node) || node.kind === 326 /* JSDocNamepathType */) { return factory.createKeywordTypeNode(133 /* AnyKeyword */); } if (isJSDocUnknownType(node)) { @@ -53696,13 +54163,13 @@ function createTypeChecker(host) { function symbolTableToDeclarationStatements(symbolTable, context, bundled) { const serializePropertySymbolForClass = makeSerializePropertySymbol( factory.createPropertyDeclaration, - 173 /* MethodDeclaration */, + 174 /* MethodDeclaration */, /*useAccessors*/ true ); const serializePropertySymbolForInterfaceWorker = makeSerializePropertySymbol( (mods, name, question, type) => factory.createPropertySignature(mods, name, question, type), - 172 /* MethodSignature */, + 173 /* MethodSignature */, /*useAccessors*/ false ); @@ -53971,7 +54438,7 @@ function createTypeChecker(host) { if (!(symbol.flags & 16 /* Function */) && isTypeRepresentableAsFunctionNamespaceMerge(type, symbol)) { serializeAsFunctionNamespaceMerge(type, symbol, localName, modifierFlags); } else { - const flags = !(symbol.flags & 2 /* BlockScopedVariable */) ? ((_a = symbol.parent) == null ? void 0 : _a.valueDeclaration) && isSourceFile((_b = symbol.parent) == null ? void 0 : _b.valueDeclaration) ? 2 /* Const */ : void 0 : isConstVariable(symbol) ? 2 /* Const */ : 1 /* Let */; + const flags = !(symbol.flags & 2 /* BlockScopedVariable */) ? ((_a = symbol.parent) == null ? void 0 : _a.valueDeclaration) && isSourceFile((_b = symbol.parent) == null ? void 0 : _b.valueDeclaration) ? 2 /* Const */ : void 0 : isConstantVariable(symbol) ? 2 /* Const */ : 1 /* Let */; const name = needsPostExportDefault || !(symbol.flags & 4 /* Property */) ? localName : getUnusedName(localName, symbol); let textRange = symbol.declarations && find(symbol.declarations, (d) => isVariableDeclaration(d)); if (textRange && isVariableDeclarationList(textRange.parent) && textRange.parent.declarations.length === 1) { @@ -54117,7 +54584,7 @@ function createTypeChecker(host) { if (additionalModifierFlags & 1 /* Export */ && enclosingDeclaration2 && (isExportingScope(enclosingDeclaration2) || isModuleDeclaration(enclosingDeclaration2)) && canHaveExportModifier(node)) { newModifierFlags |= 1 /* Export */; } - if (addingDeclare && !(newModifierFlags & 1 /* Export */) && (!enclosingDeclaration2 || !(enclosingDeclaration2.flags & 16777216 /* Ambient */)) && (isEnumDeclaration(node) || isVariableStatement(node) || isFunctionDeclaration(node) || isClassDeclaration(node) || isModuleDeclaration(node))) { + if (addingDeclare && !(newModifierFlags & 1 /* Export */) && (!enclosingDeclaration2 || !(enclosingDeclaration2.flags & 33554432 /* Ambient */)) && (isEnumDeclaration(node) || isVariableStatement(node) || isFunctionDeclaration(node) || isClassDeclaration(node) || isModuleDeclaration(node))) { newModifierFlags |= 2 /* Ambient */; } if (additionalModifierFlags & 1024 /* Default */ && (isClassDeclaration(node) || isInterfaceDeclaration(node) || isFunctionDeclaration(node))) { @@ -54161,8 +54628,8 @@ function createTypeChecker(host) { const baseTypes = getBaseTypes(interfaceType); const baseType = length(baseTypes) ? getIntersectionType(baseTypes) : void 0; const members = flatMap(getPropertiesOfType(interfaceType), (p) => serializePropertySymbolForInterface(p, baseType)); - const callSignatures = serializeSignatures(0 /* Call */, interfaceType, baseType, 178 /* CallSignature */); - const constructSignatures = serializeSignatures(1 /* Construct */, interfaceType, baseType, 179 /* ConstructSignature */); + const callSignatures = serializeSignatures(0 /* Call */, interfaceType, baseType, 179 /* CallSignature */); + const constructSignatures = serializeSignatures(1 /* Construct */, interfaceType, baseType, 180 /* ConstructSignature */); const indexSignatures = serializeIndexSignatures(interfaceType, baseType); const heritageClauses = !length(baseTypes) ? void 0 : [factory.createHeritageClause(96 /* ExtendsKeyword */, mapDefined(baseTypes, (b) => trySerializeAsTypeReference(b, 111551 /* Value */)))]; addResult(factory.createInterfaceDeclaration( @@ -54179,7 +54646,7 @@ function createTypeChecker(host) { return !exports ? [] : filter(arrayFrom(exports.values()), (m) => isNamespaceMember(m) && isIdentifierText(m.escapedName, 99 /* ESNext */)); } function isTypeOnlyNamespace(symbol) { - return every(getNamespaceMembersForSerialization(symbol), (m) => !(getAllSymbolFlags(resolveSymbol(m)) & 111551 /* Value */)); + return every(getNamespaceMembersForSerialization(symbol), (m) => !(getSymbolFlags(resolveSymbol(m)) & 111551 /* Value */)); } function serializeModule(symbol, symbolName2, modifierFlags) { const members = getNamespaceMembersForSerialization(symbol); @@ -54227,7 +54694,7 @@ function createTypeChecker(host) { void 0, factory.createIdentifier(localName), nsBody, - 16 /* Namespace */ + 32 /* Namespace */ ), 0 /* None */); } } @@ -54244,7 +54711,7 @@ function createTypeChecker(host) { function serializeAsFunctionNamespaceMerge(type, symbol, localName, modifierFlags) { const signatures = getSignaturesOfType(type, 0 /* Call */); for (const sig of signatures) { - const decl = signatureToSignatureDeclarationHelper(sig, 261 /* FunctionDeclaration */, context, { name: factory.createIdentifier(localName), privateSymbolVisitor: includePrivateSymbol, bundledImports: bundled }); + const decl = signatureToSignatureDeclarationHelper(sig, 262 /* FunctionDeclaration */, context, { name: factory.createIdentifier(localName), privateSymbolVisitor: includePrivateSymbol, bundledImports: bundled }); addResult(setTextRange(decl, getSignatureTextRangeLocation(sig)), modifierFlags); } if (!(symbol.flags & (512 /* ValueModule */ | 1024 /* NamespaceModule */) && !!symbol.exports && !!symbol.exports.size)) { @@ -54284,7 +54751,7 @@ function createTypeChecker(host) { void 0, factory.createIdentifier(localName), factory.createModuleBlock([]), - 16 /* Namespace */ + 32 /* Namespace */ ); setParent(fakespace, enclosingDeclaration); fakespace.locals = createSymbolTable(props); @@ -54428,7 +54895,7 @@ function createTypeChecker(host) { [], /*body*/ void 0 - )] : serializeSignatures(1 /* Construct */, staticType, staticBaseType, 175 /* Constructor */); + )] : serializeSignatures(1 /* Construct */, staticType, staticBaseType, 176 /* Constructor */); const indexSignatures = serializeIndexSignatures(classType, baseTypes[0]); context.enclosingDeclaration = oldEnclosing; addResult(setTextRange(factory.createClassDeclaration( @@ -54480,8 +54947,8 @@ function createTypeChecker(host) { const targetName = getInternalSymbolName(target, verbatimTargetName); includePrivateSymbol(target); switch (node.kind) { - case 207 /* BindingElement */: - if (((_b = (_a = node.parent) == null ? void 0 : _a.parent) == null ? void 0 : _b.kind) === 259 /* VariableDeclaration */) { + case 208 /* BindingElement */: + if (((_b = (_a = node.parent) == null ? void 0 : _a.parent) == null ? void 0 : _b.kind) === 260 /* VariableDeclaration */) { const specifier2 = getSpecifierForModuleSymbol(target.parent || target, context); const { propertyName } = node; addResult(factory.createImportDeclaration( @@ -54507,15 +54974,15 @@ function createTypeChecker(host) { } Debug.failBadSyntaxKind(((_c = node.parent) == null ? void 0 : _c.parent) || node, "Unhandled binding element grandparent kind in declaration serialization"); break; - case 303 /* ShorthandPropertyAssignment */: - if (((_e = (_d = node.parent) == null ? void 0 : _d.parent) == null ? void 0 : _e.kind) === 225 /* BinaryExpression */) { + case 304 /* ShorthandPropertyAssignment */: + if (((_e = (_d = node.parent) == null ? void 0 : _d.parent) == null ? void 0 : _e.kind) === 226 /* BinaryExpression */) { serializeExportSpecifier( unescapeLeadingUnderscores(symbol.escapedName), targetName ); } break; - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: if (isPropertyAccessExpression(node.initializer)) { const initializer = node.initializer; const uniqueName = factory.createUniqueName(localName); @@ -54538,7 +55005,7 @@ function createTypeChecker(host) { ), modifierFlags); break; } - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: if (target.escapedName === "export=" /* ExportEquals */ && some(target.declarations, (d) => isSourceFile(d) && isJsonSourceFile(d))) { serializeMaybeAliasAssignment(symbol); break; @@ -54559,10 +55026,10 @@ function createTypeChecker(host) { ) : factory.createExternalModuleReference(factory.createStringLiteral(getSpecifierForModuleSymbol(target, context))) ), isLocalImport ? modifierFlags : 0 /* None */); break; - case 269 /* NamespaceExportDeclaration */: + case 270 /* NamespaceExportDeclaration */: addResult(factory.createNamespaceExportDeclaration(idText(node.name)), 0 /* None */); break; - case 272 /* ImportClause */: { + case 273 /* ImportClause */: { const generatedSpecifier = getSpecifierForModuleSymbol(target.parent || target, context); const specifier2 = bundled ? factory.createStringLiteral(generatedSpecifier) : node.parent.moduleSpecifier; addResult(factory.createImportDeclaration( @@ -54580,7 +55047,7 @@ function createTypeChecker(host) { ), 0 /* None */); break; } - case 273 /* NamespaceImport */: { + case 274 /* NamespaceImport */: { const generatedSpecifier = getSpecifierForModuleSymbol(target.parent || target, context); const specifier2 = bundled ? factory.createStringLiteral(generatedSpecifier) : node.parent.parent.moduleSpecifier; addResult(factory.createImportDeclaration( @@ -54598,7 +55065,7 @@ function createTypeChecker(host) { ), 0 /* None */); break; } - case 279 /* NamespaceExport */: + case 280 /* NamespaceExport */: addResult(factory.createExportDeclaration( /*modifiers*/ void 0, @@ -54608,7 +55075,7 @@ function createTypeChecker(host) { factory.createStringLiteral(getSpecifierForModuleSymbol(target, context)) ), 0 /* None */); break; - case 275 /* ImportSpecifier */: { + case 276 /* ImportSpecifier */: { const generatedSpecifier = getSpecifierForModuleSymbol(target.parent || target, context); const specifier2 = bundled ? factory.createStringLiteral(generatedSpecifier) : node.parent.parent.parent.moduleSpecifier; addResult(factory.createImportDeclaration( @@ -54633,7 +55100,7 @@ function createTypeChecker(host) { ), 0 /* None */); break; } - case 280 /* ExportSpecifier */: + case 281 /* ExportSpecifier */: const specifier = node.parent.parent.moduleSpecifier; serializeExportSpecifier( unescapeLeadingUnderscores(symbol.escapedName), @@ -54641,12 +55108,12 @@ function createTypeChecker(host) { specifier && isStringLiteralLike(specifier) ? factory.createStringLiteral(specifier.text) : void 0 ); break; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: serializeMaybeAliasAssignment(symbol); break; - case 225 /* BinaryExpression */: - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 226 /* BinaryExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: if (symbol.escapedName === "default" /* Default */ || symbol.escapedName === "export=" /* ExportEquals */) { serializeMaybeAliasAssignment(symbol); } else { @@ -54753,7 +55220,7 @@ function createTypeChecker(host) { void 0, serializeTypeForDeclaration(context, typeToSerialize, symbol, enclosingDeclaration, includePrivateSymbol, bundled) ) - ], ((_a = context.enclosingDeclaration) == null ? void 0 : _a.kind) === 266 /* ModuleDeclaration */ ? 1 /* Let */ : 2 /* Const */) + ], ((_a = context.enclosingDeclaration) == null ? void 0 : _a.kind) === 267 /* ModuleDeclaration */ ? 1 /* Let */ : 2 /* Const */) ); addResult( statement, @@ -55126,10 +55593,10 @@ function createTypeChecker(host) { return void 0; } function isTopLevelInExternalModuleAugmentation(node) { - return node && node.parent && node.parent.kind === 267 /* ModuleBlock */ && isExternalModuleAugmentation(node.parent.parent); + return node && node.parent && node.parent.kind === 268 /* ModuleBlock */ && isExternalModuleAugmentation(node.parent.parent); } function isDefaultBindingContext(location) { - return location.kind === 311 /* SourceFile */ || isAmbientModule(location); + return location.kind === 312 /* SourceFile */ || isAmbientModule(location); } function getNameOfSymbolFromNameType(symbol, context) { const nameType = getSymbolLinks(symbol).nameType; @@ -55177,17 +55644,17 @@ function createTypeChecker(host) { if (!declaration) { declaration = symbol.declarations[0]; } - if (declaration.parent && declaration.parent.kind === 259 /* VariableDeclaration */) { + if (declaration.parent && declaration.parent.kind === 260 /* VariableDeclaration */) { return declarationNameToString(declaration.parent.name); } switch (declaration.kind) { - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: if (context && !context.encounteredError && !(context.flags & 131072 /* AllowAnonymousIdentifier */)) { context.encounteredError = true; } - return declaration.kind === 230 /* ClassExpression */ ? "(Anonymous class)" : "(Anonymous function)"; + return declaration.kind === 231 /* ClassExpression */ ? "(Anonymous class)" : "(Anonymous function)"; } } const name = getNameOfSymbolFromNameType(symbol, context); @@ -55204,66 +55671,66 @@ function createTypeChecker(host) { return false; function determineIfDeclarationIsVisible() { switch (node.kind) { - case 344 /* JSDocCallbackTag */: - case 352 /* JSDocTypedefTag */: - case 346 /* JSDocEnumTag */: + case 345 /* JSDocCallbackTag */: + case 353 /* JSDocTypedefTag */: + case 347 /* JSDocEnumTag */: return !!(node.parent && node.parent.parent && node.parent.parent.parent && isSourceFile(node.parent.parent.parent)); - case 207 /* BindingElement */: + case 208 /* BindingElement */: return isDeclarationVisible(node.parent.parent); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: if (isBindingPattern(node.name) && !node.name.elements.length) { return false; } - case 266 /* ModuleDeclaration */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 261 /* FunctionDeclaration */: - case 265 /* EnumDeclaration */: - case 270 /* ImportEqualsDeclaration */: + case 267 /* ModuleDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 262 /* FunctionDeclaration */: + case 266 /* EnumDeclaration */: + case 271 /* ImportEqualsDeclaration */: if (isExternalModuleAugmentation(node)) { return true; } const parent2 = getDeclarationContainer(node); - if (!(getCombinedModifierFlags(node) & 1 /* Export */) && !(node.kind !== 270 /* ImportEqualsDeclaration */ && parent2.kind !== 311 /* SourceFile */ && parent2.flags & 16777216 /* Ambient */)) { + if (!(getCombinedModifierFlagsCached(node) & 1 /* Export */) && !(node.kind !== 271 /* ImportEqualsDeclaration */ && parent2.kind !== 312 /* SourceFile */ && parent2.flags & 33554432 /* Ambient */)) { return isGlobalSourceFile(parent2); } return isDeclarationVisible(parent2); - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: if (hasEffectiveModifier(node, 8 /* Private */ | 16 /* Protected */)) { return false; } - case 175 /* Constructor */: - case 179 /* ConstructSignature */: - case 178 /* CallSignature */: - case 180 /* IndexSignature */: - case 168 /* Parameter */: - case 267 /* ModuleBlock */: - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 186 /* TypeLiteral */: - case 182 /* TypeReference */: - case 187 /* ArrayType */: - case 188 /* TupleType */: - case 191 /* UnionType */: - case 192 /* IntersectionType */: - case 195 /* ParenthesizedType */: - case 201 /* NamedTupleMember */: + case 176 /* Constructor */: + case 180 /* ConstructSignature */: + case 179 /* CallSignature */: + case 181 /* IndexSignature */: + case 169 /* Parameter */: + case 268 /* ModuleBlock */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 187 /* TypeLiteral */: + case 183 /* TypeReference */: + case 188 /* ArrayType */: + case 189 /* TupleType */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: + case 196 /* ParenthesizedType */: + case 202 /* NamedTupleMember */: return isDeclarationVisible(node.parent); - case 272 /* ImportClause */: - case 273 /* NamespaceImport */: - case 275 /* ImportSpecifier */: + case 273 /* ImportClause */: + case 274 /* NamespaceImport */: + case 276 /* ImportSpecifier */: return false; - case 167 /* TypeParameter */: - case 311 /* SourceFile */: - case 269 /* NamespaceExportDeclaration */: + case 168 /* TypeParameter */: + case 312 /* SourceFile */: + case 270 /* NamespaceExportDeclaration */: return true; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return false; default: return false; @@ -55272,7 +55739,7 @@ function createTypeChecker(host) { } function collectLinkedAliases(node, setVisibility) { let exportSymbol; - if (node.parent && node.parent.kind === 276 /* ExportAssignment */) { + if (node.parent && node.parent.kind === 277 /* ExportAssignment */) { exportSymbol = resolveName( node, node.escapedText, @@ -55283,7 +55750,7 @@ function createTypeChecker(host) { /*isUse*/ false ); - } else if (node.parent.kind === 280 /* ExportSpecifier */) { + } else if (node.parent.kind === 281 /* ExportSpecifier */) { exportSymbol = getTargetOfExportSpecifier(node.parent, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */); } let result; @@ -55387,12 +55854,12 @@ function createTypeChecker(host) { function getDeclarationContainer(node) { return findAncestor(getRootDeclaration(node), (node2) => { switch (node2.kind) { - case 259 /* VariableDeclaration */: - case 260 /* VariableDeclarationList */: - case 275 /* ImportSpecifier */: - case 274 /* NamedImports */: - case 273 /* NamespaceImport */: - case 272 /* ImportClause */: + case 260 /* VariableDeclaration */: + case 261 /* VariableDeclarationList */: + case 276 /* ImportSpecifier */: + case 275 /* NamedImports */: + case 274 /* NamespaceImport */: + case 273 /* ImportClause */: return false; default: return true; @@ -55411,6 +55878,17 @@ function createTypeChecker(host) { var _a; return getTypeOfPropertyOfType(type, name) || ((_a = getApplicableIndexInfoForName(type, name)) == null ? void 0 : _a.type) || unknownType; } + function getTypeOfPropertyOrIndexSignatureOfType(type, name) { + var _a; + let propType; + return getTypeOfPropertyOfType(type, name) || (propType = (_a = getApplicableIndexInfoForName(type, name)) == null ? void 0 : _a.type) && addOptionality( + propType, + /*isProperty*/ + true, + /*isOptional*/ + true + ); + } function isTypeAny(type) { return type && (type.flags & 1 /* Any */) !== 0; } @@ -55510,23 +55988,23 @@ function createTypeChecker(host) { function getParentElementAccess(node) { const ancestor = node.parent.parent; switch (ancestor.kind) { - case 207 /* BindingElement */: - case 302 /* PropertyAssignment */: + case 208 /* BindingElement */: + case 303 /* PropertyAssignment */: return getSyntheticElementAccess(ancestor); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return getSyntheticElementAccess(node.parent); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return ancestor.initializer; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return ancestor.right; } } function getDestructuringPropertyName(node) { const parent2 = node.parent; - if (node.kind === 207 /* BindingElement */ && parent2.kind === 205 /* ObjectBindingPattern */) { + if (node.kind === 208 /* BindingElement */ && parent2.kind === 206 /* ObjectBindingPattern */) { return getLiteralPropertyNameText(node.propertyName || node.name); } - if (node.kind === 302 /* PropertyAssignment */ || node.kind === 303 /* ShorthandPropertyAssignment */) { + if (node.kind === 303 /* PropertyAssignment */ || node.kind === 304 /* ShorthandPropertyAssignment */) { return getLiteralPropertyNameText(node.name); } return "" + parent2.elements.indexOf(node); @@ -55545,17 +56023,17 @@ function createTypeChecker(host) { return parentType; } const pattern = declaration.parent; - if (strictNullChecks && declaration.flags & 16777216 /* Ambient */ && isParameterDeclaration(declaration)) { + if (strictNullChecks && declaration.flags & 33554432 /* Ambient */ && isParameterDeclaration(declaration)) { parentType = getNonNullableType(parentType); } else if (strictNullChecks && pattern.parent.initializer && !(getTypeFacts(getTypeOfInitializer(pattern.parent.initializer)) & 65536 /* EQUndefined */)) { parentType = getTypeWithFacts(parentType, 524288 /* NEUndefined */); } let type; - if (pattern.kind === 205 /* ObjectBindingPattern */) { + if (pattern.kind === 206 /* ObjectBindingPattern */) { if (declaration.dotDotDotToken) { parentType = getReducedType(parentType); if (parentType.flags & 2 /* Unknown */ || !isValidSpreadType(parentType)) { - error(declaration, Diagnostics.Rest_types_may_only_be_created_from_object_types); + error2(declaration, Diagnostics.Rest_types_may_only_be_created_from_object_types); return errorType; } const literalMembers = []; @@ -55615,13 +56093,13 @@ function createTypeChecker(host) { /*excludeJSDocTypeAssertions*/ true ); - return expr.kind === 208 /* ArrayLiteralExpression */ && expr.elements.length === 0; + return expr.kind === 209 /* ArrayLiteralExpression */ && expr.elements.length === 0; } function addOptionality(type, isProperty = false, isOptional = true) { return strictNullChecks && isOptional ? getOptionalType(type, isProperty) : type; } function getTypeForVariableLikeDeclaration(declaration, includeOptionality, checkMode) { - if (isVariableDeclaration(declaration) && declaration.parent.parent.kind === 248 /* ForInStatement */) { + if (isVariableDeclaration(declaration) && declaration.parent.parent.kind === 249 /* ForInStatement */) { const indexType = getIndexType(getNonNullableTypeIfNeeded(checkExpression( declaration.parent.parent.expression, /*checkMode*/ @@ -55629,7 +56107,7 @@ function createTypeChecker(host) { ))); return indexType.flags & (262144 /* TypeParameter */ | 4194304 /* Index */) ? getExtractStringType(indexType) : stringType; } - if (isVariableDeclaration(declaration) && declaration.parent.parent.kind === 249 /* ForOfStatement */) { + if (isVariableDeclaration(declaration) && declaration.parent.parent.kind === 250 /* ForOfStatement */) { const forOfStatement = declaration.parent.parent; return checkRightHandSideOfForOf(forOfStatement) || anyType; } @@ -55648,8 +56126,8 @@ function createTypeChecker(host) { if (declaredType) { return addOptionality(declaredType, isProperty, isOptional); } - if ((noImplicitAny || isInJSFile(declaration)) && isVariableDeclaration(declaration) && !isBindingPattern(declaration.name) && !(getCombinedModifierFlags(declaration) & 1 /* Export */) && !(declaration.flags & 16777216 /* Ambient */)) { - if (!(getCombinedNodeFlags(declaration) & 2 /* Const */) && (!declaration.initializer || isNullOrUndefined3(declaration.initializer))) { + if ((noImplicitAny || isInJSFile(declaration)) && isVariableDeclaration(declaration) && !isBindingPattern(declaration.name) && !(getCombinedModifierFlagsCached(declaration) & 1 /* Export */) && !(declaration.flags & 33554432 /* Ambient */)) { + if (!(getCombinedNodeFlagsCached(declaration) & 6 /* Constant */) && (!declaration.initializer || isNullOrUndefined3(declaration.initializer))) { return autoType; } if (declaration.initializer && isEmptyArrayLiteral2(declaration.initializer)) { @@ -55658,8 +56136,8 @@ function createTypeChecker(host) { } if (isParameter(declaration)) { const func = declaration.parent; - if (func.kind === 177 /* SetAccessor */ && hasBindableName(func)) { - const getter = getDeclarationOfKind(getSymbolOfDeclaration(declaration.parent), 176 /* GetAccessor */); + if (func.kind === 178 /* SetAccessor */ && hasBindableName(func)) { + const getter = getDeclarationOfKind(getSymbolOfDeclaration(declaration.parent), 177 /* GetAccessor */); if (getter) { const getterSignature = getSignatureFromDeclaration(getter); const thisParameter = getAccessorThisParameter(func); @@ -55733,7 +56211,7 @@ function createTypeChecker(host) { const links = getSymbolLinks(symbol); if (links.isConstructorDeclaredProperty === void 0) { links.isConstructorDeclaredProperty = false; - links.isConstructorDeclaredProperty = !!getDeclaringConstructor(symbol) && every(symbol.declarations, (declaration) => isBinaryExpression(declaration) && isPossiblyAliasedThisProperty(declaration) && (declaration.left.kind !== 211 /* ElementAccessExpression */ || isStringOrNumericLiteralLike(declaration.left.argumentExpression)) && !getAnnotatedTypeForAssignmentDeclaration( + links.isConstructorDeclaredProperty = !!getDeclaringConstructor(symbol) && every(symbol.declarations, (declaration) => isBinaryExpression(declaration) && isPossiblyAliasedThisProperty(declaration) && (declaration.left.kind !== 212 /* ElementAccessExpression */ || isStringOrNumericLiteralLike(declaration.left.argumentExpression)) && !getAnnotatedTypeForAssignmentDeclaration( /*declaredType*/ void 0, declaration, @@ -55761,7 +56239,7 @@ function createTypeChecker(host) { /*includeClassComputedPropertyName*/ false ); - if (container && (container.kind === 175 /* Constructor */ || isJSConstructor(container))) { + if (container && (container.kind === 176 /* Constructor */ || isJSConstructor(container))) { return container; } } @@ -55788,7 +56266,7 @@ function createTypeChecker(host) { reference.flowNode = staticBlock.returnFlowNode; const flowType = getFlowTypeOfProperty(reference, symbol); if (noImplicitAny && (flowType === autoType || flowType === autoArrayType)) { - error(symbol.valueDeclaration, Diagnostics.Member_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType)); + error2(symbol.valueDeclaration, Diagnostics.Member_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType)); } if (everyType(flowType, isNullableType)) { continue; @@ -55804,7 +56282,7 @@ function createTypeChecker(host) { reference.flowNode = constructor.returnFlowNode; const flowType = getFlowTypeOfProperty(reference, symbol); if (noImplicitAny && (flowType === autoType || flowType === autoArrayType)) { - error(symbol.valueDeclaration, Diagnostics.Member_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType)); + error2(symbol.valueDeclaration, Diagnostics.Member_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType)); } return everyType(flowType, isNullableType) ? void 0 : convertAutoToAny(flowType); } @@ -55876,7 +56354,7 @@ function createTypeChecker(host) { false, definedInMethod && !definedInConstructor )); - if (symbol.valueDeclaration && filterType(widened, (t) => !!(t.flags & ~98304 /* Nullable */)) === neverType) { + if (symbol.valueDeclaration && isInJSFile(symbol.valueDeclaration) && filterType(widened, (t) => !!(t.flags & ~98304 /* Nullable */)) === neverType) { reportImplicitAny(symbol.valueDeclaration, anyType); return anyType; } @@ -55979,11 +56457,11 @@ function createTypeChecker(host) { const unescapedName = unescapeLeadingUnderscores(s.escapedName); const exportedMemberName = ((_a = tryCast(exportedMember.valueDeclaration, isNamedDeclaration)) == null ? void 0 : _a.name) || exportedMember.valueDeclaration; addRelatedInfo( - error(s.valueDeclaration, Diagnostics.Duplicate_identifier_0, unescapedName), + error2(s.valueDeclaration, Diagnostics.Duplicate_identifier_0, unescapedName), createDiagnosticForNode(exportedMemberName, Diagnostics._0_was_also_declared_here, unescapedName) ); addRelatedInfo( - error(exportedMemberName, Diagnostics.Duplicate_identifier_0, unescapedName), + error2(exportedMemberName, Diagnostics.Duplicate_identifier_0, unescapedName), createDiagnosticForNode(s.valueDeclaration, Diagnostics._0_was_also_declared_here, unescapedName) ); } @@ -56041,7 +56519,7 @@ function createTypeChecker(host) { /*includeClassComputedPropertyName*/ false ); - return thisContainer.kind === 175 /* Constructor */ || thisContainer.kind === 261 /* FunctionDeclaration */ || thisContainer.kind === 217 /* FunctionExpression */ && !isPrototypePropertyAssignment(thisContainer.parent); + return thisContainer.kind === 176 /* Constructor */ || thisContainer.kind === 262 /* FunctionDeclaration */ || thisContainer.kind === 218 /* FunctionExpression */ && !isPrototypePropertyAssignment(thisContainer.parent); } function getConstructorDefinedThisAssignmentTypes(types, declarations) { Debug.assert(types.length === declarations.length); @@ -56115,7 +56593,7 @@ function createTypeChecker(host) { function getTypeFromArrayBindingPattern(pattern, includePatternInType, reportErrors2) { const elements = pattern.elements; const lastElement = lastOrUndefined(elements); - const restElement = lastElement && lastElement.kind === 207 /* BindingElement */ && lastElement.dotDotDotToken ? lastElement : void 0; + const restElement = lastElement && lastElement.kind === 208 /* BindingElement */ && lastElement.dotDotDotToken ? lastElement : void 0; if (elements.length === 0 || elements.length === 1 && restElement) { return languageVersion >= 2 /* ES2015 */ ? createIterableType(anyType) : anyArrayType; } @@ -56131,7 +56609,7 @@ function createTypeChecker(host) { return result; } function getTypeFromBindingPattern(pattern, includePatternInType = false, reportErrors2 = false) { - return pattern.kind === 205 /* ObjectBindingPattern */ ? getTypeFromObjectBindingPattern(pattern, includePatternInType, reportErrors2) : getTypeFromArrayBindingPattern(pattern, includePatternInType, reportErrors2); + return pattern.kind === 206 /* ObjectBindingPattern */ ? getTypeFromObjectBindingPattern(pattern, includePatternInType, reportErrors2) : getTypeFromArrayBindingPattern(pattern, includePatternInType, reportErrors2); } function getWidenedTypeForVariableLikeDeclaration(declaration, reportErrors2) { return widenTypeForVariableLikeDeclaration(getTypeForVariableLikeDeclaration( @@ -56172,7 +56650,7 @@ function createTypeChecker(host) { } function declarationBelongsToPrivateAmbientMember(declaration) { const root = getRootDeclaration(declaration); - const memberDeclaration = root.kind === 168 /* Parameter */ ? root.parent : root; + const memberDeclaration = root.kind === 169 /* Parameter */ ? root.parent : root; return isPrivateWithinAmbient(memberDeclaration); } function tryGetTypeFromEffectiveTypeNode(node) { @@ -56246,7 +56724,7 @@ function createTypeChecker(host) { return reportCircularityError(symbol); } let type; - if (declaration.kind === 276 /* ExportAssignment */) { + if (declaration.kind === 277 /* ExportAssignment */) { type = widenTypeForVariableLikeDeclaration(tryGetTypeFromEffectiveTypeNode(declaration) || checkExpressionCached(declaration.expression), declaration); } else if (isBinaryExpression(declaration) || isInJSFile(declaration) && (isCallExpression(declaration) || (isPropertyAccessExpression(declaration) || isBindableStaticElementAccessExpression(declaration)) && isBinaryExpression(declaration.parent))) { type = getWidenedTypeForAssignmentDeclaration(symbol); @@ -56287,13 +56765,13 @@ function createTypeChecker(host) { function getAnnotatedAccessorTypeNode(accessor) { if (accessor) { switch (accessor.kind) { - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: const getterTypeAnnotation = getEffectiveReturnTypeNode(accessor); return getterTypeAnnotation; - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: const setterTypeAnnotation = getEffectiveSetAccessorTypeAnnotationNode(accessor); return setterTypeAnnotation; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: Debug.assert(hasAccessorModifier(accessor)); const accessorTypeAnnotation = getEffectiveTypeAnnotationNode(accessor); return accessorTypeAnnotation; @@ -56318,9 +56796,9 @@ function createTypeChecker(host) { if (!pushTypeResolution(symbol, 0 /* Type */)) { return errorType; } - const getter = getDeclarationOfKind(symbol, 176 /* GetAccessor */); - const setter = getDeclarationOfKind(symbol, 177 /* SetAccessor */); - const accessor = tryCast(getDeclarationOfKind(symbol, 171 /* PropertyDeclaration */), isAutoAccessorPropertyDeclaration); + const getter = getDeclarationOfKind(symbol, 177 /* GetAccessor */); + const setter = getDeclarationOfKind(symbol, 178 /* SetAccessor */); + const accessor = tryCast(getDeclarationOfKind(symbol, 172 /* PropertyDeclaration */), isAutoAccessorPropertyDeclaration); let type = getter && isInJSFile(getter) && getTypeForDeclarationFromJSDocComment(getter) || getAnnotatedAccessorType(getter) || getAnnotatedAccessorType(setter) || getAnnotatedAccessorType(accessor) || getter && getter.body && getReturnTypeFromBody(getter) || accessor && accessor.initializer && getWidenedTypeForVariableLikeDeclaration( accessor, /*reportErrors*/ @@ -56338,13 +56816,13 @@ function createTypeChecker(host) { } if (!popTypeResolution()) { if (getAnnotatedAccessorTypeNode(getter)) { - error(getter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); + error2(getter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); } else if (getAnnotatedAccessorTypeNode(setter)) { - error(setter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); + error2(setter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); } else if (getAnnotatedAccessorTypeNode(accessor)) { - error(setter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); + error2(setter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); } else if (getter && noImplicitAny) { - error(getter, Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, symbolToString(symbol)); + error2(getter, Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, symbolToString(symbol)); } type = anyType; } @@ -56358,11 +56836,11 @@ function createTypeChecker(host) { if (!pushTypeResolution(symbol, 8 /* WriteType */)) { return errorType; } - const setter = getDeclarationOfKind(symbol, 177 /* SetAccessor */) ?? tryCast(getDeclarationOfKind(symbol, 171 /* PropertyDeclaration */), isAutoAccessorPropertyDeclaration); + const setter = getDeclarationOfKind(symbol, 178 /* SetAccessor */) ?? tryCast(getDeclarationOfKind(symbol, 172 /* PropertyDeclaration */), isAutoAccessorPropertyDeclaration); let writeType = getAnnotatedAccessorType(setter); if (!popTypeResolution()) { if (getAnnotatedAccessorTypeNode(setter)) { - error(setter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); + error2(setter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); } writeType = anyType; } @@ -56398,7 +56876,7 @@ function createTypeChecker(host) { const declaration = symbol.valueDeclaration; if (symbol.flags & 1536 /* Module */ && isShorthandAmbientModuleSymbol(symbol)) { return anyType; - } else if (declaration && (declaration.kind === 225 /* BinaryExpression */ || isAccessExpression(declaration) && declaration.parent.kind === 225 /* BinaryExpression */)) { + } else if (declaration && (declaration.kind === 226 /* BinaryExpression */ || isAccessExpression(declaration) && declaration.parent.kind === 226 /* BinaryExpression */)) { return getWidenedTypeForAssignmentDeclaration(symbol); } else if (symbol.flags & 512 /* ValueModule */ && declaration && isSourceFile(declaration) && declaration.commonJsModuleIndicator) { const resolvedModule = resolveExternalModuleSymbol(symbol); @@ -56440,7 +56918,7 @@ function createTypeChecker(host) { true ); const declaredType = firstDefined(exportSymbol == null ? void 0 : exportSymbol.declarations, (d) => isExportAssignment(d) ? tryGetTypeFromEffectiveTypeNode(d) : void 0); - links.type = (exportSymbol == null ? void 0 : exportSymbol.declarations) && isDuplicatedCommonJSExport(exportSymbol.declarations) && symbol.declarations.length ? getFlowTypeFromCommonJSExport(exportSymbol) : isDuplicatedCommonJSExport(symbol.declarations) ? autoType : declaredType ? declaredType : getAllSymbolFlags(targetSymbol) & 111551 /* Value */ ? getTypeOfSymbol(targetSymbol) : errorType; + links.type = (exportSymbol == null ? void 0 : exportSymbol.declarations) && isDuplicatedCommonJSExport(exportSymbol.declarations) && symbol.declarations.length ? getFlowTypeFromCommonJSExport(exportSymbol) : isDuplicatedCommonJSExport(symbol.declarations) ? autoType : declaredType ? declaredType : getSymbolFlags(targetSymbol) & 111551 /* Value */ ? getTypeOfSymbol(targetSymbol) : errorType; } return links.type; } @@ -56455,15 +56933,15 @@ function createTypeChecker(host) { function reportCircularityError(symbol) { const declaration = symbol.valueDeclaration; if (getEffectiveTypeAnnotationNode(declaration)) { - error( + error2( symbol.valueDeclaration, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol) ); return errorType; } - if (noImplicitAny && (declaration.kind !== 168 /* Parameter */ || declaration.initializer)) { - error( + if (noImplicitAny && (declaration.kind !== 169 /* Parameter */ || declaration.initializer)) { + error2( symbol.valueDeclaration, Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer, symbolToString(symbol) @@ -56576,43 +57054,43 @@ function createTypeChecker(host) { return void 0; } switch (node.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 172 /* MethodSignature */: - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 323 /* JSDocFunctionType */: - case 261 /* FunctionDeclaration */: - case 173 /* MethodDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 264 /* TypeAliasDeclaration */: - case 351 /* JSDocTemplateTag */: - case 352 /* JSDocTypedefTag */: - case 346 /* JSDocEnumTag */: - case 344 /* JSDocCallbackTag */: - case 199 /* MappedType */: - case 193 /* ConditionalType */: { + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 173 /* MethodSignature */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 324 /* JSDocFunctionType */: + case 262 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 265 /* TypeAliasDeclaration */: + case 352 /* JSDocTemplateTag */: + case 353 /* JSDocTypedefTag */: + case 347 /* JSDocEnumTag */: + case 345 /* JSDocCallbackTag */: + case 200 /* MappedType */: + case 194 /* ConditionalType */: { const outerTypeParameters = getOuterTypeParameters(node, includeThisTypes); - if (node.kind === 199 /* MappedType */) { + if (node.kind === 200 /* MappedType */) { return append(outerTypeParameters, getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(node.typeParameter))); - } else if (node.kind === 193 /* ConditionalType */) { + } else if (node.kind === 194 /* ConditionalType */) { return concatenate(outerTypeParameters, getInferTypeParameters(node)); } const outerAndOwnTypeParameters = appendTypeParameters(outerTypeParameters, getEffectiveTypeParameterDeclarations(node)); - const thisType = includeThisTypes && (node.kind === 262 /* ClassDeclaration */ || node.kind === 230 /* ClassExpression */ || node.kind === 263 /* InterfaceDeclaration */ || isJSConstructor(node)) && getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(node)).thisType; + const thisType = includeThisTypes && (node.kind === 263 /* ClassDeclaration */ || node.kind === 231 /* ClassExpression */ || node.kind === 264 /* InterfaceDeclaration */ || isJSConstructor(node)) && getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(node)).thisType; return thisType ? append(outerAndOwnTypeParameters, thisType) : outerAndOwnTypeParameters; } - case 347 /* JSDocParameterTag */: + case 348 /* JSDocParameterTag */: const paramSymbol = getParameterSymbolFromJSDoc(node); if (paramSymbol) { node = paramSymbol.valueDeclaration; } break; - case 326 /* JSDoc */: { + case 327 /* JSDoc */: { const outerTypeParameters = getOuterTypeParameters(node, includeThisTypes); return node.tags ? appendTypeParameters(outerTypeParameters, flatMap(node.tags, (t) => isJSDocTemplateTag(t) ? t.typeParameters : void 0)) : outerTypeParameters; } @@ -56622,14 +57100,14 @@ function createTypeChecker(host) { function getOuterTypeParametersOfClassOrInterface(symbol) { var _a; const declaration = symbol.flags & 32 /* Class */ || symbol.flags & 16 /* Function */ ? symbol.valueDeclaration : (_a = symbol.declarations) == null ? void 0 : _a.find((decl) => { - if (decl.kind === 263 /* InterfaceDeclaration */) { + if (decl.kind === 264 /* InterfaceDeclaration */) { return true; } - if (decl.kind !== 259 /* VariableDeclaration */) { + if (decl.kind !== 260 /* VariableDeclaration */) { return false; } const initializer = decl.initializer; - return !!initializer && (initializer.kind === 217 /* FunctionExpression */ || initializer.kind === 218 /* ArrowFunction */); + return !!initializer && (initializer.kind === 218 /* FunctionExpression */ || initializer.kind === 219 /* ArrowFunction */); }); Debug.assert(!!declaration, "Class was missing valueDeclaration -OR- non-class had no interface declarations"); return getOuterTypeParameters(declaration); @@ -56640,7 +57118,7 @@ function createTypeChecker(host) { } let result; for (const node of symbol.declarations) { - if (node.kind === 263 /* InterfaceDeclaration */ || node.kind === 262 /* ClassDeclaration */ || node.kind === 230 /* ClassExpression */ || isJSConstructor(node) || isTypeAlias(node)) { + if (node.kind === 264 /* InterfaceDeclaration */ || node.kind === 263 /* ClassDeclaration */ || node.kind === 231 /* ClassExpression */ || isJSConstructor(node) || isTypeAlias(node)) { const declaration = node; result = appendTypeParameters(result, getEffectiveTypeParameterDeclarations(declaration)); } @@ -56708,11 +57186,11 @@ function createTypeChecker(host) { resolveStructuredTypeMembers(baseConstructorType); } if (!popTypeResolution()) { - error(type.symbol.valueDeclaration, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression, symbolToString(type.symbol)); + error2(type.symbol.valueDeclaration, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression, symbolToString(type.symbol)); return type.resolvedBaseConstructorType = errorType; } if (!(baseConstructorType.flags & 1 /* Any */) && baseConstructorType !== nullWideningType && !isConstructorType(baseConstructorType)) { - const err = error(baseTypeNode.expression, Diagnostics.Type_0_is_not_a_constructor_function_type, typeToString(baseConstructorType)); + const err = error2(baseTypeNode.expression, Diagnostics.Type_0_is_not_a_constructor_function_type, typeToString(baseConstructorType)); if (baseConstructorType.flags & 262144 /* TypeParameter */) { const constraint = getConstraintFromTypeParameter(baseConstructorType); let ctorReturn = unknownType; @@ -56754,7 +57232,7 @@ function createTypeChecker(host) { return resolvedImplementsTypes; } function reportCircularBaseType(node, type) { - error(node, Diagnostics.Type_0_recursively_references_itself_as_a_base_type, typeToString( + error2(node, Diagnostics.Type_0_recursively_references_itself_as_a_base_type, typeToString( type, /*enclosingDeclaration*/ void 0, @@ -56778,7 +57256,7 @@ function createTypeChecker(host) { } if (!popTypeResolution() && type.symbol.declarations) { for (const declaration of type.symbol.declarations) { - if (declaration.kind === 262 /* ClassDeclaration */ || declaration.kind === 263 /* InterfaceDeclaration */) { + if (declaration.kind === 263 /* ClassDeclaration */ || declaration.kind === 264 /* InterfaceDeclaration */) { reportCircularBaseType(declaration, type); } } @@ -56808,7 +57286,7 @@ function createTypeChecker(host) { } else { const constructors = getInstantiatedConstructorsForTypeArguments(baseConstructorType, baseTypeNode.typeArguments, baseTypeNode); if (!constructors.length) { - error(baseTypeNode.expression, Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments); + error2(baseTypeNode.expression, Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments); return type.resolvedBaseTypes = emptyArray; } baseType = getReturnTypeOfSignature(constructors[0]); @@ -56828,7 +57306,7 @@ function createTypeChecker(host) { return type.resolvedBaseTypes = emptyArray; } if (type === reducedBaseType || hasBaseType(reducedBaseType, type)) { - error( + error2( type.symbol.valueDeclaration, Diagnostics.Type_0_recursively_references_itself_as_a_base_type, typeToString( @@ -56867,7 +57345,7 @@ function createTypeChecker(host) { type.resolvedBaseTypes = type.resolvedBaseTypes || emptyArray; if (type.symbol.declarations) { for (const declaration of type.symbol.declarations) { - if (declaration.kind === 263 /* InterfaceDeclaration */ && getInterfaceBaseTypeNodes(declaration)) { + if (declaration.kind === 264 /* InterfaceDeclaration */ && getInterfaceBaseTypeNodes(declaration)) { for (const node of getInterfaceBaseTypeNodes(declaration)) { const baseType = getReducedType(getTypeFromTypeNode(node)); if (!isErrorType(baseType)) { @@ -56882,7 +57360,7 @@ function createTypeChecker(host) { reportCircularBaseType(declaration, type); } } else { - error(node, Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members); + error2(node, Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members); } } } @@ -56895,8 +57373,8 @@ function createTypeChecker(host) { return true; } for (const declaration of symbol.declarations) { - if (declaration.kind === 263 /* InterfaceDeclaration */) { - if (declaration.flags & 128 /* ContainsThis */) { + if (declaration.kind === 264 /* InterfaceDeclaration */) { + if (declaration.flags & 256 /* ContainsThis */) { return false; } const baseTypeNodes = getInterfaceBaseTypeNodes(declaration); @@ -56967,10 +57445,10 @@ function createTypeChecker(host) { } } else { type = errorType; - if (declaration.kind === 346 /* JSDocEnumTag */) { - error(declaration.typeExpression.type, Diagnostics.Type_alias_0_circularly_references_itself, symbolToString(symbol)); + if (declaration.kind === 347 /* JSDocEnumTag */) { + error2(declaration.typeExpression.type, Diagnostics.Type_alias_0_circularly_references_itself, symbolToString(symbol)); } else { - error(isNamedDeclaration(declaration) ? declaration.name || declaration : declaration, Diagnostics.Type_alias_0_circularly_references_itself, symbolToString(symbol)); + error2(isNamedDeclaration(declaration) ? declaration.name || declaration : declaration, Diagnostics.Type_alias_0_circularly_references_itself, symbolToString(symbol)); } } links.declaredType = type; @@ -56986,7 +57464,7 @@ function createTypeChecker(host) { const memberTypeList = []; if (symbol.declarations) { for (const declaration of symbol.declarations) { - if (declaration.kind === 265 /* EnumDeclaration */) { + if (declaration.kind === 266 /* EnumDeclaration */) { for (const member of declaration.members) { if (hasBindableName(member)) { const memberSymbol = getSymbolOfDeclaration(member); @@ -57071,18 +57549,18 @@ function createTypeChecker(host) { case 159 /* UnknownKeyword */: case 154 /* StringKeyword */: case 150 /* NumberKeyword */: - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: case 136 /* BooleanKeyword */: case 155 /* SymbolKeyword */: case 151 /* ObjectKeyword */: case 116 /* VoidKeyword */: case 157 /* UndefinedKeyword */: case 146 /* NeverKeyword */: - case 200 /* LiteralType */: + case 201 /* LiteralType */: return true; - case 187 /* ArrayType */: + case 188 /* ArrayType */: return isThislessType(node.elementType); - case 182 /* TypeReference */: + case 183 /* TypeReference */: return !node.typeArguments || node.typeArguments.every(isThislessType); } return false; @@ -57098,21 +57576,21 @@ function createTypeChecker(host) { function isThislessFunctionLikeDeclaration(node) { const returnType = getEffectiveReturnTypeNode(node); const typeParameters = getEffectiveTypeParameterDeclarations(node); - return (node.kind === 175 /* Constructor */ || !!returnType && isThislessType(returnType)) && node.parameters.every(isThislessVariableLikeDeclaration) && typeParameters.every(isThislessTypeParameter); + return (node.kind === 176 /* Constructor */ || !!returnType && isThislessType(returnType)) && node.parameters.every(isThislessVariableLikeDeclaration) && typeParameters.every(isThislessTypeParameter); } function isThisless(symbol) { if (symbol.declarations && symbol.declarations.length === 1) { const declaration = symbol.declarations[0]; if (declaration) { switch (declaration.kind) { - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: return isThislessVariableLikeDeclaration(declaration); - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return isThislessFunctionLikeDeclaration(declaration); } } @@ -57155,9 +57633,6 @@ function createTypeChecker(host) { } return type; } - function isTypeUsableAsPropertyName(type) { - return !!(type.flags & 8576 /* StringOrNumberLiteralOrUnique */); - } function isLateBindableName(node) { if (!isComputedPropertyName(node) && !isElementAccessExpression(node)) { return false; @@ -57178,15 +57653,6 @@ function createTypeChecker(host) { function isNonBindableDynamicName(node) { return isDynamicName(node) && !isLateBindableName(node); } - function getPropertyNameFromType(type) { - if (type.flags & 8192 /* UniqueESSymbol */) { - return type.escapedName; - } - if (type.flags & (128 /* StringLiteral */ | 256 /* NumberLiteral */)) { - return escapeLeadingUnderscores("" + type.value); - } - return Debug.fail(); - } function addDeclarationToLateBoundSymbol(symbol, member, symbolFlags) { Debug.assert(!!(getCheckFlags(symbol) & 4096 /* Late */), "Expected a late-bound symbol."); symbol.flags |= symbolFlags; @@ -57219,8 +57685,8 @@ function createTypeChecker(host) { if (lateSymbol.flags & getExcludedSymbolFlags(symbolFlags) || earlySymbol) { const declarations = earlySymbol ? concatenate(earlySymbol.declarations, lateSymbol.declarations) : lateSymbol.declarations; const name = !(type.flags & 8192 /* UniqueESSymbol */) && unescapeLeadingUnderscores(memberName) || declarationNameToString(declName); - forEach(declarations, (declaration) => error(getNameOfDeclaration(declaration) || declaration, Diagnostics.Property_0_was_also_declared_here, name)); - error(declName || decl, Diagnostics.Duplicate_property_0, name); + forEach(declarations, (declaration) => error2(getNameOfDeclaration(declaration) || declaration, Diagnostics.Property_0_was_also_declared_here, name)); + error2(declName || decl, Diagnostics.Duplicate_property_0, name); lateSymbol = createSymbol(0 /* None */, memberName, 4096 /* Late */); } lateSymbol.links.nameType = type; @@ -57236,6 +57702,7 @@ function createTypeChecker(host) { return links.resolvedSymbol; } function getResolvedMembersOrExportsOfSymbol(symbol, resolutionKind) { + var _a, _b, _c; const links = getSymbolLinks(symbol); if (!links[resolutionKind]) { const isStatic2 = resolutionKind === "resolvedExports" /* resolvedExports */; @@ -57254,7 +57721,7 @@ function createTypeChecker(host) { } } } - const assignments = symbol.assignmentDeclarationMembers; + const assignments = (((_a = symbol.valueDeclaration) == null ? void 0 : _a.kind) === 219 /* ArrowFunction */ || ((_b = symbol.valueDeclaration) == null ? void 0 : _b.kind) === 218 /* FunctionExpression */) && ((_c = getSymbolOfNode(symbol.valueDeclaration.parent)) == null ? void 0 : _c.assignmentDeclarationMembers) || symbol.assignmentDeclarationMembers; if (assignments) { const decls = arrayFrom(assignments.values()); for (const member of decls) { @@ -57383,7 +57850,7 @@ function createTypeChecker(host) { /*resolvedTypePredicate*/ void 0, sig.minArgumentCount, - sig.flags & 39 /* PropagatingFlags */ + sig.flags & 167 /* PropagatingFlags */ ); result.target = sig.target; result.mapper = sig.mapper; @@ -57421,17 +57888,18 @@ function createTypeChecker(host) { function getExpandedParameters(sig, skipUnionExpanding) { if (signatureHasRestParameter(sig)) { const restIndex = sig.parameters.length - 1; + const restName = sig.parameters[restIndex].escapedName; const restType = getTypeOfSymbol(sig.parameters[restIndex]); if (isTupleType(restType)) { - return [expandSignatureParametersWithTupleMembers(restType, restIndex)]; + return [expandSignatureParametersWithTupleMembers(restType, restIndex, restName)]; } else if (!skipUnionExpanding && restType.flags & 1048576 /* Union */ && every(restType.types, isTupleType)) { - return map(restType.types, (t) => expandSignatureParametersWithTupleMembers(t, restIndex)); + return map(restType.types, (t) => expandSignatureParametersWithTupleMembers(t, restIndex, restName)); } } return [sig.parameters]; - function expandSignatureParametersWithTupleMembers(restType, restIndex) { - const elementTypes = getElementTypes(restType); - const associatedNames = getUniqAssociatedNamesFromTupleType(restType); + function expandSignatureParametersWithTupleMembers(restType, restIndex, restName) { + const elementTypes = getTypeArguments(restType); + const associatedNames = getUniqAssociatedNamesFromTupleType(restType, restName); const restParams = map(elementTypes, (t, i) => { const name = associatedNames && associatedNames[i] ? associatedNames[i] : getParameterNameAtPosition(sig, restIndex + i, restType); const flags = restType.target.elementFlags[i]; @@ -57442,10 +57910,10 @@ function createTypeChecker(host) { }); return concatenate(sig.parameters.slice(0, restIndex), restParams); } - function getUniqAssociatedNamesFromTupleType(type) { + function getUniqAssociatedNamesFromTupleType(type, restName) { const associatedNamesMap = /* @__PURE__ */ new Map(); - return map(type.target.labeledElementDeclarations, (labeledElement) => { - const name = getTupleElementLabel(labeledElement); + return map(type.target.labeledElementDeclarations, (labeledElement, i) => { + const name = getTupleElementLabel(labeledElement, i, restName); const prevCounter = associatedNamesMap.get(name); if (prevCounter === void 0) { associatedNamesMap.set(name, 1); @@ -57683,7 +58151,7 @@ function createTypeChecker(host) { /*resolvedTypePredicate*/ void 0, minArgCount, - (left.flags | right.flags) & 39 /* PropagatingFlags */ + (left.flags | right.flags) & 167 /* PropagatingFlags */ ); result.compositeKind = 1048576 /* Union */; result.compositeSignatures = concatenate(left.compositeKind !== 2097152 /* Intersection */ && left.compositeSignatures || [left], [right]); @@ -57831,20 +58299,17 @@ function createTypeChecker(host) { setStructuredTypeMembers(type, members2, callSignatures, constructSignatures, indexInfos2); return; } - let members = emptySymbols; + let members = getExportsOfSymbol(symbol); let indexInfos; - if (symbol.exports) { - members = getExportsOfSymbol(symbol); - if (symbol === globalThisSymbol) { - const varsOnly = /* @__PURE__ */ new Map(); - members.forEach((p) => { - var _a; - if (!(p.flags & 418 /* BlockScoped */) && !(p.flags & 512 /* ValueModule */ && ((_a = p.declarations) == null ? void 0 : _a.length) && every(p.declarations, isAmbientModule))) { - varsOnly.set(p.escapedName, p); - } - }); - members = varsOnly; - } + if (symbol === globalThisSymbol) { + const varsOnly = /* @__PURE__ */ new Map(); + members.forEach((p) => { + var _a; + if (!(p.flags & 418 /* BlockScoped */) && !(p.flags & 512 /* ValueModule */ && ((_a = p.declarations) == null ? void 0 : _a.length) && every(p.declarations, isAmbientModule))) { + varsOnly.set(p.escapedName, p); + } + }); + members = varsOnly; } let baseConstructorIndexInfo; setStructuredTypeMembers(type, members, emptyArray, emptyArray, emptyArray); @@ -57893,7 +58358,7 @@ function createTypeChecker(host) { /*resolvedTypePredicate*/ void 0, sig.minArgumentCount, - sig.flags & 39 /* PropagatingFlags */ + sig.flags & 167 /* PropagatingFlags */ ) : void 0 )); } @@ -58060,7 +58525,7 @@ function createTypeChecker(host) { true ) : symbol.links.checkFlags & 524288 /* StripOptional */ ? removeMissingOrUndefinedType(propType) : propType; if (!popTypeResolution()) { - error(currentNode, Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1, symbolToString(symbol), typeToString(mappedType)); + error2(currentNode, Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1, symbolToString(symbol), typeToString(mappedType)); type = errorType; } symbol.links.type = type; @@ -58089,7 +58554,7 @@ function createTypeChecker(host) { } function isMappedTypeWithKeyofConstraintDeclaration(type) { const constraintDeclaration = getConstraintDeclarationForMappedType(type); - return constraintDeclaration.kind === 197 /* TypeOperator */ && constraintDeclaration.operator === 143 /* KeyOfKeyword */; + return constraintDeclaration.kind === 198 /* TypeOperator */ && constraintDeclaration.operator === 143 /* KeyOfKeyword */; } function getModifiersTypeFromMappedType(type) { if (!type.modifiersType) { @@ -58244,9 +58709,9 @@ function createTypeChecker(host) { function getConstraintOfTypeParameter(typeParameter) { return hasNonCircularBaseConstraint(typeParameter) ? getConstraintFromTypeParameter(typeParameter) : void 0; } - function isConstTypeVariable(type) { + function isConstTypeVariable(type, depth = 0) { var _a; - return !!(type && (type.flags & 262144 /* TypeParameter */ && some((_a = type.symbol) == null ? void 0 : _a.declarations, (d) => hasSyntacticModifier(d, 2048 /* Const */)) || type.flags & 1048576 /* Union */ && some(type.types, isConstTypeVariable) || type.flags & 8388608 /* IndexedAccess */ && isConstTypeVariable(type.objectType) || type.flags & 16777216 /* Conditional */ && isConstTypeVariable(getConstraintOfConditionalType(type)) || type.flags & 33554432 /* Substitution */ && isConstTypeVariable(type.baseType) || isGenericTupleType(type) && findIndex(getElementTypes(type), (t, i) => !!(type.target.elementFlags[i] & 8 /* Variadic */) && isConstTypeVariable(t)) >= 0)); + return depth < 5 && !!(type && (type.flags & 262144 /* TypeParameter */ && some((_a = type.symbol) == null ? void 0 : _a.declarations, (d) => hasSyntacticModifier(d, 2048 /* Const */)) || type.flags & 1048576 /* Union */ && some(type.types, (t) => isConstTypeVariable(t, depth)) || type.flags & 8388608 /* IndexedAccess */ && isConstTypeVariable(type.objectType, depth + 1) || type.flags & 16777216 /* Conditional */ && isConstTypeVariable(getConstraintOfConditionalType(type), depth + 1) || type.flags & 33554432 /* Substitution */ && isConstTypeVariable(type.baseType, depth) || isGenericTupleType(type) && findIndex(getElementTypes(type), (t, i) => !!(type.target.elementFlags[i] & 8 /* Variadic */) && isConstTypeVariable(t, depth)) >= 0)); } function getConstraintOfIndexedAccess(type) { return hasNonCircularBaseConstraint(type) ? getConstraintFromIndexedAccess(type) : void 0; @@ -58386,7 +58851,7 @@ function createTypeChecker(host) { if (t.flags & 262144 /* TypeParameter */) { const errorNode = getConstraintDeclaration(t); if (errorNode) { - const diagnostic = error(errorNode, Diagnostics.Type_parameter_0_has_a_circular_constraint, typeToString(t)); + const diagnostic = error2(errorNode, Diagnostics.Type_parameter_0_has_a_circular_constraint, typeToString(t)); if (currentNode && !isNodeDescendantOf(errorNode, currentNode) && !isNodeDescendantOf(currentNode, errorNode)) { addRelatedInfo(diagnostic, createDiagnosticForNode(currentNode, Diagnostics.Circularity_originates_in_type_at_this_location)); } @@ -58803,7 +59268,35 @@ function createTypeChecker(host) { return emptyArray; } function getSignaturesOfType(type, kind) { - return getSignaturesOfStructuredType(getReducedApparentType(type), kind); + const result = getSignaturesOfStructuredType(getReducedApparentType(type), kind); + if (kind === 0 /* Call */ && !length(result) && type.flags & 1048576 /* Union */) { + if (type.arrayFallbackSignatures) { + return type.arrayFallbackSignatures; + } + let memberName; + if (everyType(type, (t) => { + var _a; + return !!((_a = t.symbol) == null ? void 0 : _a.parent) && isArrayOrTupleSymbol(t.symbol.parent) && (!memberName ? (memberName = t.symbol.escapedName, true) : memberName === t.symbol.escapedName); + })) { + const arrayArg = mapType(type, (t) => getMappedType((isReadonlyArraySymbol(t.symbol.parent) ? globalReadonlyArrayType : globalArrayType).typeParameters[0], t.mapper)); + const arrayType = createArrayType(arrayArg, someType(type, (t) => isReadonlyArraySymbol(t.symbol.parent))); + return type.arrayFallbackSignatures = getSignaturesOfType(getTypeOfPropertyOfType(arrayType, memberName), kind); + } + type.arrayFallbackSignatures = result; + } + return result; + } + function isArrayOrTupleSymbol(symbol) { + if (!symbol || !globalArrayType.symbol || !globalReadonlyArrayType.symbol) { + return false; + } + return !!getSymbolIfSameReference(symbol, globalArrayType.symbol) || !!getSymbolIfSameReference(symbol, globalReadonlyArrayType.symbol); + } + function isReadonlyArraySymbol(symbol) { + if (!symbol || !globalReadonlyArrayType.symbol) { + return false; + } + return !!getSymbolIfSameReference(symbol, globalReadonlyArrayType.symbol); } function findIndexInfo(indexInfos, keyType) { return find(indexInfos, (info) => info.keyType === keyType); @@ -58982,7 +59475,7 @@ function createTypeChecker(host) { } else { parameters.push(paramSymbol); } - if (type && type.kind === 200 /* LiteralType */) { + if (type && type.kind === 201 /* LiteralType */) { flags |= 2 /* HasLiteralTypes */; } const isOptionalParameter2 = isOptionalJSDocPropertyLikeTag(param) || param.initializer || param.questionToken || isRestParameter(param) || iife && parameters.length > iife.arguments.length && !type || isJSDocOptionalParameter(param); @@ -58990,8 +59483,8 @@ function createTypeChecker(host) { minArgumentCount = parameters.length; } } - if ((declaration.kind === 176 /* GetAccessor */ || declaration.kind === 177 /* SetAccessor */) && hasBindableName(declaration) && (!hasThisParameter2 || !thisParameter)) { - const otherKind = declaration.kind === 176 /* GetAccessor */ ? 177 /* SetAccessor */ : 176 /* GetAccessor */; + if ((declaration.kind === 177 /* GetAccessor */ || declaration.kind === 178 /* SetAccessor */) && hasBindableName(declaration) && (!hasThisParameter2 || !thisParameter)) { + const otherKind = declaration.kind === 177 /* GetAccessor */ ? 178 /* SetAccessor */ : 177 /* GetAccessor */; const other = getDeclarationOfKind(getSymbolOfDeclaration(declaration), otherKind); if (other) { thisParameter = getAnnotatedAccessorThisParameter(other); @@ -59082,15 +59575,15 @@ function createTypeChecker(host) { switch (node.kind) { case 80 /* Identifier */: return node.escapedText === argumentsSymbol.escapedName && getReferencedValueSymbol(node) === argumentsSymbol; - case 171 /* PropertyDeclaration */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - return node.name.kind === 166 /* ComputedPropertyName */ && traverse(node.name); - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + return node.name.kind === 167 /* ComputedPropertyName */ && traverse(node.name); + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return traverse(node.expression); - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return traverse(node.initializer); default: return !nodeStartsNewLexicalEnvironment(node) && !isPartOfTypeNode(node) && !!forEachChild(node, traverse); @@ -59177,7 +59670,7 @@ function createTypeChecker(host) { function createTypePredicateFromTypePredicateNode(node, signature) { const parameterName = node.parameterName; const type = node.type && getTypeFromTypeNode(node.type); - return parameterName.kind === 196 /* ThisType */ ? createTypePredicate( + return parameterName.kind === 197 /* ThisType */ ? createTypePredicate( node.assertsModifier ? 2 /* AssertsThis */ : 0 /* This */, /*parameterName*/ void 0, @@ -59209,14 +59702,14 @@ function createTypeChecker(host) { if (signature.declaration) { const typeNode = getEffectiveReturnTypeNode(signature.declaration); if (typeNode) { - error(typeNode, Diagnostics.Return_type_annotation_circularly_references_itself); + error2(typeNode, Diagnostics.Return_type_annotation_circularly_references_itself); } else if (noImplicitAny) { const declaration = signature.declaration; const name = getNameOfDeclaration(declaration); if (name) { - error(name, Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, declarationNameToString(name)); + error2(name, Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, declarationNameToString(name)); } else { - error(declaration, Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions); + error2(declaration, Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions); } } } @@ -59227,7 +59720,7 @@ function createTypeChecker(host) { return signature.resolvedReturnType; } function getReturnTypeFromAnnotation(declaration) { - if (declaration.kind === 175 /* Constructor */) { + if (declaration.kind === 176 /* Constructor */) { return getDeclaredTypeOfClassOrInterface(getMergedSymbol(declaration.parent.symbol)); } const typeNode = getEffectiveReturnTypeNode(declaration); @@ -59243,12 +59736,12 @@ function createTypeChecker(host) { if (typeNode) { return getTypeFromTypeNode(typeNode); } - if (declaration.kind === 176 /* GetAccessor */ && hasBindableName(declaration)) { + if (declaration.kind === 177 /* GetAccessor */ && hasBindableName(declaration)) { const jsDocType = isInJSFile(declaration) && getTypeForDeclarationFromJSDocComment(declaration); if (jsDocType) { return jsDocType; } - const setter = getDeclarationOfKind(getSymbolOfDeclaration(declaration), 177 /* SetAccessor */); + const setter = getDeclarationOfKind(getSymbolOfDeclaration(declaration), 178 /* SetAccessor */); const setterType = getAnnotatedAccessorType(setter); if (setterType) { return setterType; @@ -59257,7 +59750,7 @@ function createTypeChecker(host) { return getReturnTypeOfTypeTag(declaration); } function isResolvingReturnTypeOfSignature(signature) { - return !signature.resolvedReturnType && findResolutionCycleStartIndex(signature, 3 /* ResolvedReturnType */) >= 0; + return signature.compositeSignatures && some(signature.compositeSignatures, isResolvingReturnTypeOfSignature) || !signature.resolvedReturnType && findResolutionCycleStartIndex(signature, 3 /* ResolvedReturnType */) >= 0; } function getRestTypeOfSignature(signature) { return tryGetRestTypeOfSignature(signature) || anyType; @@ -59351,7 +59844,7 @@ function createTypeChecker(host) { var _a; if (!signature.isolatedSignatureType) { const kind = (_a = signature.declaration) == null ? void 0 : _a.kind; - const isConstructor = kind === void 0 || kind === 175 /* Constructor */ || kind === 179 /* ConstructSignature */ || kind === 184 /* ConstructorType */; + const isConstructor = kind === void 0 || kind === 176 /* Constructor */ || kind === 180 /* ConstructSignature */ || kind === 185 /* ConstructorType */; const type = createObjectType(16 /* Anonymous */); type.members = emptySymbols; type.properties = emptyArray; @@ -59410,9 +59903,9 @@ function createTypeChecker(host) { let inferences; if ((_a = typeParameter.symbol) == null ? void 0 : _a.declarations) { for (const declaration of typeParameter.symbol.declarations) { - if (declaration.parent.kind === 194 /* InferType */) { + if (declaration.parent.kind === 195 /* InferType */) { const [childTypeParameter = declaration.parent, grandParent] = walkUpParenthesizedTypesAndGetParentAndChild(declaration.parent.parent); - if (grandParent.kind === 182 /* TypeReference */ && !omitTypeReferences) { + if (grandParent.kind === 183 /* TypeReference */ && !omitTypeReferences) { const typeReference = grandParent; const typeParameters = getTypeParametersForTypeReferenceOrImport(typeReference); if (typeParameters) { @@ -59430,13 +59923,13 @@ function createTypeChecker(host) { } } } - } else if (grandParent.kind === 168 /* Parameter */ && grandParent.dotDotDotToken || grandParent.kind === 190 /* RestType */ || grandParent.kind === 201 /* NamedTupleMember */ && grandParent.dotDotDotToken) { + } else if (grandParent.kind === 169 /* Parameter */ && grandParent.dotDotDotToken || grandParent.kind === 191 /* RestType */ || grandParent.kind === 202 /* NamedTupleMember */ && grandParent.dotDotDotToken) { inferences = append(inferences, createArrayType(unknownType)); - } else if (grandParent.kind === 203 /* TemplateLiteralTypeSpan */) { + } else if (grandParent.kind === 204 /* TemplateLiteralTypeSpan */) { inferences = append(inferences, stringType); - } else if (grandParent.kind === 167 /* TypeParameter */ && grandParent.parent.kind === 199 /* MappedType */) { + } else if (grandParent.kind === 168 /* TypeParameter */ && grandParent.parent.kind === 200 /* MappedType */) { inferences = append(inferences, keyofConstraintType); - } else if (grandParent.kind === 199 /* MappedType */ && grandParent.type && skipParentheses(grandParent.type) === declaration.parent && grandParent.parent.kind === 193 /* ConditionalType */ && grandParent.parent.extendsType === grandParent && grandParent.parent.checkType.kind === 199 /* MappedType */ && grandParent.parent.checkType.type) { + } else if (grandParent.kind === 200 /* MappedType */ && grandParent.type && skipParentheses(grandParent.type) === declaration.parent && grandParent.parent.kind === 194 /* ConditionalType */ && grandParent.parent.extendsType === grandParent && grandParent.parent.checkType.kind === 200 /* MappedType */ && grandParent.parent.checkType.type) { const checkMappedType2 = grandParent.parent.checkType; const nodeType = getTypeFromTypeNode(checkMappedType2.type); inferences = append(inferences, instantiateType( @@ -59461,7 +59954,7 @@ function createTypeChecker(host) { } else { let type = getTypeFromTypeNode(constraintDeclaration); if (type.flags & 1 /* Any */ && !isErrorType(type)) { - type = constraintDeclaration.parent.parent.kind === 199 /* MappedType */ ? keyofConstraintType : unknownType; + type = constraintDeclaration.parent.parent.kind === 200 /* MappedType */ ? keyofConstraintType : unknownType; } typeParameter.constraint = type; } @@ -59470,7 +59963,7 @@ function createTypeChecker(host) { return typeParameter.constraint === noConstraintType ? void 0 : typeParameter.constraint; } function getParentSymbolOfTypeParameter(typeParameter) { - const tp = getDeclarationOfKind(typeParameter.symbol, 167 /* TypeParameter */); + const tp = getDeclarationOfKind(typeParameter.symbol, 168 /* TypeParameter */); const host2 = isJSDocTemplateTag(tp.parent) ? getEffectiveContainerForJSDocTemplateTag(tp.parent) : tp.parent; return host2 && getSymbolOfNode(host2); } @@ -59555,12 +60048,12 @@ function createTypeChecker(host) { return ((_a = type.target.localTypeParameters) == null ? void 0 : _a.map(() => errorType)) || emptyArray; } const node = type.node; - const typeArguments = !node ? emptyArray : node.kind === 182 /* TypeReference */ ? concatenate(type.target.outerTypeParameters, getEffectiveTypeArguments2(node, type.target.localTypeParameters)) : node.kind === 187 /* ArrayType */ ? [getTypeFromTypeNode(node.elementType)] : map(node.elements, getTypeFromTypeNode); + const typeArguments = !node ? emptyArray : node.kind === 183 /* TypeReference */ ? concatenate(type.target.outerTypeParameters, getEffectiveTypeArguments2(node, type.target.localTypeParameters)) : node.kind === 188 /* ArrayType */ ? [getTypeFromTypeNode(node.elementType)] : map(node.elements, getTypeFromTypeNode); if (popTypeResolution()) { type.resolvedTypeArguments = type.mapper ? instantiateTypes(typeArguments, type.mapper) : typeArguments; } else { type.resolvedTypeArguments = ((_b = type.target.localTypeParameters) == null ? void 0 : _b.map(() => errorType)) || emptyArray; - error( + error2( type.node || currentNode, type.target.symbol ? Diagnostics.Type_arguments_for_0_circularly_reference_themselves : Diagnostics.Tuple_type_arguments_circularly_reference_themselves, type.target.symbol && symbolToString(type.target.symbol) @@ -59589,12 +60082,12 @@ function createTypeChecker(host) { void 0, 2 /* WriteArrayAsGenericType */ ); - error(node, diag2, typeStr, minTypeArgumentCount, typeParameters.length); + error2(node, diag2, typeStr, minTypeArgumentCount, typeParameters.length); if (!isJs) { return errorType; } } - if (node.kind === 182 /* TypeReference */ && isDeferredTypeReferenceNode(node, length(node.typeArguments) !== typeParameters.length)) { + if (node.kind === 183 /* TypeReference */ && isDeferredTypeReferenceNode(node, length(node.typeArguments) !== typeParameters.length)) { return createDeferredTypeReference( type, node, @@ -59645,7 +60138,7 @@ function createTypeChecker(host) { const numTypeArguments = length(node.typeArguments); const minTypeArgumentCount = getMinTypeArgumentCount(typeParameters); if (numTypeArguments < minTypeArgumentCount || numTypeArguments > typeParameters.length) { - error( + error2( node, minTypeArgumentCount === typeParameters.length ? Diagnostics.Generic_type_0_requires_1_type_argument_s : Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments, symbolToString(symbol), @@ -59685,9 +60178,9 @@ function createTypeChecker(host) { } function getTypeReferenceName(node) { switch (node.kind) { - case 182 /* TypeReference */: + case 183 /* TypeReference */: return node.typeName; - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: const expr = node.expression; if (isEntityNameExpression(expr)) { return expr; @@ -59699,10 +60192,10 @@ function createTypeChecker(host) { return symbol.parent ? `${getSymbolPath(symbol.parent)}.${symbol.escapedName}` : symbol.escapedName; } function getUnresolvedSymbolForEntityName(name) { - const identifier = name.kind === 165 /* QualifiedName */ ? name.right : name.kind === 210 /* PropertyAccessExpression */ ? name.name : name; + const identifier = name.kind === 166 /* QualifiedName */ ? name.right : name.kind === 211 /* PropertyAccessExpression */ ? name.name : name; const text = identifier.escapedText; if (text) { - const parentSymbol = name.kind === 165 /* QualifiedName */ ? getUnresolvedSymbolForEntityName(name.left) : name.kind === 210 /* PropertyAccessExpression */ ? getUnresolvedSymbolForEntityName(name.expression) : void 0; + const parentSymbol = name.kind === 166 /* QualifiedName */ ? getUnresolvedSymbolForEntityName(name.left) : name.kind === 211 /* PropertyAccessExpression */ ? getUnresolvedSymbolForEntityName(name.expression) : void 0; const path = parentSymbol ? `${getSymbolPath(parentSymbol)}.${text}` : text; let result = unresolvedSymbols.get(path); if (!result) { @@ -59754,7 +60247,7 @@ function createTypeChecker(host) { const valueType = getTypeOfSymbol(symbol); let typeType = valueType; if (symbol.valueDeclaration) { - const isImportTypeWithQualifier = node.kind === 204 /* ImportType */ && node.qualifier; + const isImportTypeWithQualifier = node.kind === 205 /* ImportType */ && node.qualifier; if (valueType.symbol && valueType.symbol !== symbol && isImportTypeWithQualifier) { typeType = getTypeReferenceType(node, valueType.symbol); } @@ -59782,7 +60275,7 @@ function createTypeChecker(host) { return getIntersectionType([substitutionType.constraint, substitutionType.baseType]); } function isUnaryTupleTypeNode(node) { - return node.kind === 188 /* TupleType */ && node.elements.length === 1; + return node.kind === 189 /* TupleType */ && node.elements.length === 1; } function getImpliedConstraint(type, checkNode, extendsNode) { return isUnaryTupleTypeNode(checkNode) && isUnaryTupleTypeNode(extendsNode) ? getImpliedConstraint(type, checkNode.elements[0], extendsNode.elements[0]) : getActualTypeVariable(getTypeFromTypeNode(checkNode)) === getActualTypeVariable(type) ? getTypeFromTypeNode(extendsNode) : void 0; @@ -59790,17 +60283,17 @@ function createTypeChecker(host) { function getConditionalFlowTypeOfType(type, node) { let constraints; let covariant = true; - while (node && !isStatement(node) && node.kind !== 326 /* JSDoc */) { + while (node && !isStatement(node) && node.kind !== 327 /* JSDoc */) { const parent2 = node.parent; - if (parent2.kind === 168 /* Parameter */) { + if (parent2.kind === 169 /* Parameter */) { covariant = !covariant; } - if ((covariant || type.flags & 8650752 /* TypeVariable */) && parent2.kind === 193 /* ConditionalType */ && node === parent2.trueType) { + if ((covariant || type.flags & 8650752 /* TypeVariable */) && parent2.kind === 194 /* ConditionalType */ && node === parent2.trueType) { const constraint = getImpliedConstraint(type, parent2.checkType, parent2.extendsType); if (constraint) { constraints = append(constraints, constraint); } - } else if (type.flags & 262144 /* TypeParameter */ && parent2.kind === 199 /* MappedType */ && node === parent2.type) { + } else if (type.flags & 262144 /* TypeParameter */ && parent2.kind === 200 /* MappedType */ && node === parent2.type) { const mappedType = getTypeFromTypeNode(parent2); if (getTypeParameterFromMappedType(mappedType) === getActualTypeVariable(type)) { const typeParameter = getHomomorphicTypeVariable(mappedType); @@ -59817,11 +60310,11 @@ function createTypeChecker(host) { return constraints ? getSubstitutionType(type, getIntersectionType(constraints)) : type; } function isJSDocTypeReference(node) { - return !!(node.flags & 8388608 /* JSDoc */) && (node.kind === 182 /* TypeReference */ || node.kind === 204 /* ImportType */); + return !!(node.flags & 16777216 /* JSDoc */) && (node.kind === 183 /* TypeReference */ || node.kind === 205 /* ImportType */); } function checkNoTypeArguments(node, symbol) { if (node.typeArguments) { - error(node, Diagnostics.Type_0_is_not_generic, symbol ? symbolToString(symbol) : node.typeName ? declarationNameToString(node.typeName) : anon); + error2(node, Diagnostics.Type_0_is_not_generic, symbol ? symbolToString(symbol) : node.typeName ? declarationNameToString(node.typeName) : anon); return false; } return true; @@ -59940,9 +60433,9 @@ function createTypeChecker(host) { if (declarations) { for (const declaration of declarations) { switch (declaration.kind) { - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: return declaration; } } @@ -59953,11 +60446,11 @@ function createTypeChecker(host) { } const type = getDeclaredTypeOfSymbol(symbol); if (!(type.flags & 524288 /* Object */)) { - error(getTypeDeclaration(symbol), Diagnostics.Global_type_0_must_be_a_class_or_interface_type, symbolName(symbol)); + error2(getTypeDeclaration(symbol), Diagnostics.Global_type_0_must_be_a_class_or_interface_type, symbolName(symbol)); return arity ? emptyGenericType : emptyObjectType; } if (length(type.typeParameters) !== arity) { - error(getTypeDeclaration(symbol), Diagnostics.Global_type_0_must_have_1_type_parameter_s, symbolName(symbol), arity); + error2(getTypeDeclaration(symbol), Diagnostics.Global_type_0_must_have_1_type_parameter_s, symbolName(symbol), arity); return arity ? emptyGenericType : emptyObjectType; } return type; @@ -59974,7 +60467,7 @@ function createTypeChecker(host) { getDeclaredTypeOfSymbol(symbol); if (length(getSymbolLinks(symbol).typeParameters) !== arity) { const decl = symbol.declarations && find(symbol.declarations, isTypeAliasDeclaration); - error(decl, Diagnostics.Global_type_0_must_have_1_type_parameter_s, symbolName(symbol), arity); + error2(decl, Diagnostics.Global_type_0_must_have_1_type_parameter_s, symbolName(symbol), arity); return void 0; } } @@ -60170,6 +60663,22 @@ function createTypeChecker(host) { reportErrors2 )) || emptyGenericType; } + function getGlobalDisposableType(reportErrors2) { + return deferredGlobalDisposableType || (deferredGlobalDisposableType = getGlobalType( + "Disposable", + /*arity*/ + 0, + reportErrors2 + )) || emptyObjectType; + } + function getGlobalAsyncDisposableType(reportErrors2) { + return deferredGlobalAsyncDisposableType || (deferredGlobalAsyncDisposableType = getGlobalType( + "AsyncDisposable", + /*arity*/ + 0, + reportErrors2 + )) || emptyObjectType; + } function getGlobalTypeOrUndefined(name, arity = 0) { const symbol = getGlobalSymbol( name, @@ -60315,11 +60824,11 @@ function createTypeChecker(host) { } function getTupleElementFlags(node) { switch (node.kind) { - case 189 /* OptionalType */: + case 190 /* OptionalType */: return 2 /* Optional */; - case 190 /* RestType */: + case 191 /* RestType */: return getRestTypeElementFlags(node); - case 201 /* NamedTupleMember */: + case 202 /* NamedTupleMember */: return node.questionToken ? 2 /* Optional */ : node.dotDotDotToken ? getRestTypeElementFlags(node) : 1 /* Required */; default: return 1 /* Required */; @@ -60335,60 +60844,57 @@ function createTypeChecker(host) { return readonly ? globalReadonlyArrayType : globalArrayType; } const elementFlags = map(node.elements, getTupleElementFlags); - const missingName = some(node.elements, (e) => e.kind !== 201 /* NamedTupleMember */); - return getTupleTargetType( - elementFlags, - readonly, - /*associatedNames*/ - missingName ? void 0 : node.elements - ); + return getTupleTargetType(elementFlags, readonly, map(node.elements, memberIfLabeledElementDeclaration)); + } + function memberIfLabeledElementDeclaration(member) { + return isNamedTupleMember(member) || isParameter(member) ? member : void 0; } function isDeferredTypeReferenceNode(node, hasDefaultTypeArguments) { - return !!getAliasSymbolForTypeNode(node) || isResolvedByTypeAlias(node) && (node.kind === 187 /* ArrayType */ ? mayResolveTypeAlias(node.elementType) : node.kind === 188 /* TupleType */ ? some(node.elements, mayResolveTypeAlias) : hasDefaultTypeArguments || some(node.typeArguments, mayResolveTypeAlias)); + return !!getAliasSymbolForTypeNode(node) || isResolvedByTypeAlias(node) && (node.kind === 188 /* ArrayType */ ? mayResolveTypeAlias(node.elementType) : node.kind === 189 /* TupleType */ ? some(node.elements, mayResolveTypeAlias) : hasDefaultTypeArguments || some(node.typeArguments, mayResolveTypeAlias)); } function isResolvedByTypeAlias(node) { const parent2 = node.parent; switch (parent2.kind) { - case 195 /* ParenthesizedType */: - case 201 /* NamedTupleMember */: - case 182 /* TypeReference */: - case 191 /* UnionType */: - case 192 /* IntersectionType */: - case 198 /* IndexedAccessType */: - case 193 /* ConditionalType */: - case 197 /* TypeOperator */: - case 187 /* ArrayType */: - case 188 /* TupleType */: + case 196 /* ParenthesizedType */: + case 202 /* NamedTupleMember */: + case 183 /* TypeReference */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: + case 199 /* IndexedAccessType */: + case 194 /* ConditionalType */: + case 198 /* TypeOperator */: + case 188 /* ArrayType */: + case 189 /* TupleType */: return isResolvedByTypeAlias(parent2); - case 264 /* TypeAliasDeclaration */: + case 265 /* TypeAliasDeclaration */: return true; } return false; } function mayResolveTypeAlias(node) { switch (node.kind) { - case 182 /* TypeReference */: + case 183 /* TypeReference */: return isJSDocTypeReference(node) || !!(resolveTypeReferenceName(node, 788968 /* Type */).flags & 524288 /* TypeAlias */); - case 185 /* TypeQuery */: + case 186 /* TypeQuery */: return true; - case 197 /* TypeOperator */: + case 198 /* TypeOperator */: return node.operator !== 158 /* UniqueKeyword */ && mayResolveTypeAlias(node.type); - case 195 /* ParenthesizedType */: - case 189 /* OptionalType */: - case 201 /* NamedTupleMember */: - case 322 /* JSDocOptionalType */: - case 320 /* JSDocNullableType */: - case 321 /* JSDocNonNullableType */: - case 315 /* JSDocTypeExpression */: + case 196 /* ParenthesizedType */: + case 190 /* OptionalType */: + case 202 /* NamedTupleMember */: + case 323 /* JSDocOptionalType */: + case 321 /* JSDocNullableType */: + case 322 /* JSDocNonNullableType */: + case 316 /* JSDocTypeExpression */: return mayResolveTypeAlias(node.type); - case 190 /* RestType */: - return node.type.kind !== 187 /* ArrayType */ || mayResolveTypeAlias(node.type.elementType); - case 191 /* UnionType */: - case 192 /* IntersectionType */: + case 191 /* RestType */: + return node.type.kind !== 188 /* ArrayType */ || mayResolveTypeAlias(node.type.elementType); + case 192 /* UnionType */: + case 193 /* IntersectionType */: return some(node.types, mayResolveTypeAlias); - case 198 /* IndexedAccessType */: + case 199 /* IndexedAccessType */: return mayResolveTypeAlias(node.objectType) || mayResolveTypeAlias(node.indexType); - case 193 /* ConditionalType */: + case 194 /* ConditionalType */: return mayResolveTypeAlias(node.checkType) || mayResolveTypeAlias(node.extendsType) || mayResolveTypeAlias(node.trueType) || mayResolveTypeAlias(node.falseType); } return false; @@ -60399,15 +60905,15 @@ function createTypeChecker(host) { const target = getArrayOrTupleTargetType(node); if (target === emptyGenericType) { links.resolvedType = emptyObjectType; - } else if (!(node.kind === 188 /* TupleType */ && some(node.elements, (e) => !!(getTupleElementFlags(e) & 8 /* Variadic */))) && isDeferredTypeReferenceNode(node)) { - links.resolvedType = node.kind === 188 /* TupleType */ && node.elements.length === 0 ? target : createDeferredTypeReference( + } else if (!(node.kind === 189 /* TupleType */ && some(node.elements, (e) => !!(getTupleElementFlags(e) & 8 /* Variadic */))) && isDeferredTypeReferenceNode(node)) { + links.resolvedType = node.kind === 189 /* TupleType */ && node.elements.length === 0 ? target : createDeferredTypeReference( target, node, /*mapper*/ void 0 ); } else { - const elementTypes = node.kind === 187 /* ArrayType */ ? [getTypeFromTypeNode(node.elementType)] : map(node.elements, getTypeFromTypeNode); + const elementTypes = node.kind === 188 /* ArrayType */ ? [getTypeFromTypeNode(node.elementType)] : map(node.elements, getTypeFromTypeNode); links.resolvedType = createNormalizedTypeReference(target, elementTypes); } } @@ -60416,7 +60922,7 @@ function createTypeChecker(host) { function isReadonlyTypeOperator(node) { return isTypeOperatorNode(node) && node.operator === 148 /* ReadonlyKeyword */; } - function createTupleType(elementTypes, elementFlags, readonly = false, namedMemberDeclarations) { + function createTupleType(elementTypes, elementFlags, readonly = false, namedMemberDeclarations = []) { const tupleTarget = getTupleTargetType(elementFlags || map(elementTypes, (_) => 1 /* Required */), readonly, namedMemberDeclarations); return tupleTarget === emptyGenericType ? emptyObjectType : elementTypes.length ? createNormalizedTypeReference(tupleTarget, elementTypes) : tupleTarget; } @@ -60424,7 +60930,8 @@ function createTypeChecker(host) { if (elementFlags.length === 1 && elementFlags[0] & 4 /* Rest */) { return readonly ? globalReadonlyArrayType : globalArrayType; } - const key = map(elementFlags, (f) => f & 1 /* Required */ ? "#" : f & 2 /* Optional */ ? "?" : f & 4 /* Rest */ ? "." : "*").join() + (readonly ? "R" : "") + (namedMemberDeclarations && namedMemberDeclarations.length ? "," + map(namedMemberDeclarations, getNodeId).join(",") : ""); + const memberIds = mapDefined(namedMemberDeclarations, (node) => node ? getNodeId(node) : void 0); + const key = map(elementFlags, (f) => f & 1 /* Required */ ? "#" : f & 2 /* Optional */ ? "?" : f & 4 /* Rest */ ? "." : "*").join() + (readonly ? "R" : "") + (memberIds.length ? "," + memberIds.join(",") : ""); let type = tupleTypes.get(key); if (!type) { tupleTypes.set(key, type = createTupleTargetType(elementFlags, readonly, namedMemberDeclarations)); @@ -60506,7 +61013,7 @@ function createTypeChecker(host) { } const expandedTypes = []; const expandedFlags = []; - let expandedDeclarations = []; + const expandedDeclarations = []; let lastRequiredIndex = -1; let firstRestIndex = -1; let lastOptionalOrRestIndex = -1; @@ -60519,7 +61026,7 @@ function createTypeChecker(host) { } else if (isTupleType(type)) { const elements = getElementTypes(type); if (elements.length + expandedTypes.length >= 1e4) { - error(currentNode, isPartOfTypeNode(currentNode) ? Diagnostics.Type_produces_a_tuple_type_that_is_too_large_to_represent : Diagnostics.Expression_produces_a_tuple_type_that_is_too_large_to_represent); + error2(currentNode, isPartOfTypeNode(currentNode) ? Diagnostics.Type_produces_a_tuple_type_that_is_too_large_to_represent : Diagnostics.Expression_produces_a_tuple_type_that_is_too_large_to_represent); return errorType; } forEach(elements, (t, n) => { @@ -60544,7 +61051,7 @@ function createTypeChecker(host) { )); expandedTypes.splice(firstRestIndex + 1, lastOptionalOrRestIndex - firstRestIndex); expandedFlags.splice(firstRestIndex + 1, lastOptionalOrRestIndex - firstRestIndex); - expandedDeclarations == null ? void 0 : expandedDeclarations.splice(firstRestIndex + 1, lastOptionalOrRestIndex - firstRestIndex); + expandedDeclarations.splice(firstRestIndex + 1, lastOptionalOrRestIndex - firstRestIndex); } const tupleTarget = getTupleTargetType(expandedFlags, target.readonly, expandedDeclarations); return tupleTarget === emptyGenericType ? emptyObjectType : expandedFlags.length ? createTypeReference(tupleTarget, expandedTypes) : tupleTarget; @@ -60564,11 +61071,7 @@ function createTypeChecker(host) { true ) : type); expandedFlags.push(flags); - if (expandedDeclarations && declaration) { - expandedDeclarations.push(declaration); - } else { - expandedDeclarations = void 0; - } + expandedDeclarations.push(declaration); } } function sliceTupleType(type, index, endSkipCount = 0) { @@ -60595,6 +61098,9 @@ function createTypeChecker(host) { function getEndElementCount(type, flags) { return type.elementFlags.length - findLastIndex(type.elementFlags, (f) => !(f & flags)) - 1; } + function getTotalFixedElementCount(type) { + return type.fixedLength + getEndElementCount(type, 3 /* Fixed */); + } function getElementTypes(type) { const typeArguments = getTypeArguments(type); const arity = getTypeReferenceArity(type); @@ -60684,7 +61190,7 @@ function createTypeChecker(host) { const estimatedCount = count / (len - i) * len; if (estimatedCount > 1e6) { (_a = tracing) == null ? void 0 : _a.instant(tracing.Phase.CheckTypes, "removeSubtypes_DepthLimit", { typeIds: types.map((t) => t.id) }); - error(currentNode, Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent); + error2(currentNode, Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent); return void 0; } } @@ -61093,7 +61599,7 @@ function createTypeChecker(host) { const size = getCrossProductUnionSize(types); if (size >= 1e5) { (_a = tracing) == null ? void 0 : _a.instant(tracing.Phase.CheckTypes, "checkCrossProductUnion_DepthLimit", { typeIds: types.map((t) => t.id), size }); - error(currentNode, Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent); + error2(currentNode, Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent); return false; } return true; @@ -61445,12 +61951,12 @@ function createTypeChecker(host) { if (isCallLikeExpression(parent2)) { return isCallOrNewExpression(parent2) && isIdentifier(node) && hasMatchingArgument(parent2, node); } - return every(symbol.declarations, (d) => !isFunctionLike(d) || !!(getCombinedNodeFlags(d) & 268435456 /* Deprecated */)); + return every(symbol.declarations, (d) => !isFunctionLike(d) || isDeprecatedDeclaration2(d)); } return true; } function getPropertyTypeForIndexType(originalObjectType, objectType, indexType, fullIndexType, accessNode, accessFlags) { - const accessExpression = accessNode && accessNode.kind === 211 /* ElementAccessExpression */ ? accessNode : void 0; + const accessExpression = accessNode && accessNode.kind === 212 /* ElementAccessExpression */ ? accessNode : void 0; const propName = accessNode && isPrivateIdentifier(accessNode) ? void 0 : getPropertyNameFromIndex(indexType, accessNode); if (propName !== void 0) { if (accessFlags & 256 /* Contextual */) { @@ -61465,7 +61971,7 @@ function createTypeChecker(host) { if (accessExpression) { markPropertyAsReferenced(prop, accessExpression, isSelfTypeAccess(accessExpression.expression, objectType.symbol)); if (isAssignmentToReadonlyEntity(accessExpression, prop, getAssignmentTargetKind(accessExpression))) { - error(accessExpression.argumentExpression, Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property, symbolToString(prop)); + error2(accessExpression.argumentExpression, Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property, symbolToString(prop)); return void 0; } if (accessFlags & 8 /* CacheSymbol */) { @@ -61484,10 +61990,10 @@ function createTypeChecker(host) { const indexNode = getIndexNodeForAccessExpression(accessNode); if (isTupleType(objectType)) { if (index < 0) { - error(indexNode, Diagnostics.A_tuple_type_cannot_be_indexed_with_a_negative_value); + error2(indexNode, Diagnostics.A_tuple_type_cannot_be_indexed_with_a_negative_value); return undefinedType; } - error( + error2( indexNode, Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2, typeToString(objectType), @@ -61495,15 +62001,12 @@ function createTypeChecker(host) { unescapeLeadingUnderscores(propName) ); } else { - error(indexNode, Diagnostics.Property_0_does_not_exist_on_type_1, unescapeLeadingUnderscores(propName), typeToString(objectType)); + error2(indexNode, Diagnostics.Property_0_does_not_exist_on_type_1, unescapeLeadingUnderscores(propName), typeToString(objectType)); } } if (index >= 0) { errorIfWritingToReadonlyIndex(getIndexInfoOfType(objectType, numberType)); - return mapType(objectType, (t) => { - const restType = getRestTypeOfTupleType(t) || undefinedType; - return accessFlags & 1 /* IncludeUndefined */ ? getUnionType([restType, missingType]) : restType; - }); + return getTupleElementTypeOutOfStartCount(objectType, index, accessFlags & 1 /* IncludeUndefined */ ? missingType : void 0); } } } @@ -61515,13 +62018,13 @@ function createTypeChecker(host) { if (indexInfo) { if (accessFlags & 2 /* NoIndexSignatures */ && indexInfo.keyType !== numberType) { if (accessExpression) { - error(accessExpression, Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), typeToString(originalObjectType)); + error2(accessExpression, Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), typeToString(originalObjectType)); } return void 0; } if (accessNode && indexInfo.keyType === stringType && !isTypeAssignableToKind(indexType, 4 /* String */ | 8 /* Number */)) { const indexNode = getIndexNodeForAccessExpression(accessNode); - error(indexNode, Diagnostics.Type_0_cannot_be_used_as_an_index_type, typeToString(indexType)); + error2(indexNode, Diagnostics.Type_0_cannot_be_used_as_an_index_type, typeToString(indexType)); return accessFlags & 1 /* IncludeUndefined */ ? getUnionType([indexInfo.type, missingType]) : indexInfo.type; } errorIfWritingToReadonlyIndex(indexInfo); @@ -61549,23 +62052,23 @@ function createTypeChecker(host) { } } if (objectType.symbol === globalThisSymbol && propName !== void 0 && globalThisSymbol.exports.has(propName) && globalThisSymbol.exports.get(propName).flags & 418 /* BlockScoped */) { - error(accessExpression, Diagnostics.Property_0_does_not_exist_on_type_1, unescapeLeadingUnderscores(propName), typeToString(objectType)); + error2(accessExpression, Diagnostics.Property_0_does_not_exist_on_type_1, unescapeLeadingUnderscores(propName), typeToString(objectType)); } else if (noImplicitAny && !compilerOptions.suppressImplicitAnyIndexErrors && !(accessFlags & 128 /* SuppressNoImplicitAnyError */)) { if (propName !== void 0 && typeHasStaticProperty(propName, objectType)) { const typeName = typeToString(objectType); - error(accessExpression, Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead, propName, typeName, typeName + "[" + getTextOfNode(accessExpression.argumentExpression) + "]"); + error2(accessExpression, Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead, propName, typeName, typeName + "[" + getTextOfNode(accessExpression.argumentExpression) + "]"); } else if (getIndexTypeOfType(objectType, numberType)) { - error(accessExpression.argumentExpression, Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number); + error2(accessExpression.argumentExpression, Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number); } else { let suggestion; if (propName !== void 0 && (suggestion = getSuggestionForNonexistentProperty(propName, objectType))) { if (suggestion !== void 0) { - error(accessExpression.argumentExpression, Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2, propName, typeToString(objectType), suggestion); + error2(accessExpression.argumentExpression, Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2, propName, typeToString(objectType), suggestion); } } else { const suggestion2 = getSuggestionForNonexistentIndexSignature(objectType, accessExpression, indexType); if (suggestion2 !== void 0) { - error(accessExpression, Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1, typeToString(objectType), suggestion2); + error2(accessExpression, Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1, typeToString(objectType), suggestion2); } else { let errorInfo; if (indexType.flags & 1024 /* EnumLiteral */) { @@ -61630,11 +62133,11 @@ function createTypeChecker(host) { if (accessNode) { const indexNode = getIndexNodeForAccessExpression(accessNode); if (indexType.flags & (128 /* StringLiteral */ | 256 /* NumberLiteral */)) { - error(indexNode, Diagnostics.Property_0_does_not_exist_on_type_1, "" + indexType.value, typeToString(objectType)); + error2(indexNode, Diagnostics.Property_0_does_not_exist_on_type_1, "" + indexType.value, typeToString(objectType)); } else if (indexType.flags & (4 /* String */ | 8 /* Number */)) { - error(indexNode, Diagnostics.Type_0_has_no_matching_index_signature_for_type_1, typeToString(objectType), typeToString(indexType)); + error2(indexNode, Diagnostics.Type_0_has_no_matching_index_signature_for_type_1, typeToString(objectType), typeToString(indexType)); } else { - error(indexNode, Diagnostics.Type_0_cannot_be_used_as_an_index_type, typeToString(indexType)); + error2(indexNode, Diagnostics.Type_0_cannot_be_used_as_an_index_type, typeToString(indexType)); } } if (isTypeAny(indexType)) { @@ -61643,12 +62146,12 @@ function createTypeChecker(host) { return void 0; function errorIfWritingToReadonlyIndex(indexInfo) { if (indexInfo && indexInfo.isReadonly && accessExpression && (isAssignmentTarget(accessExpression) || isDeleteTarget(accessExpression))) { - error(accessExpression, Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(objectType)); + error2(accessExpression, Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(objectType)); } } } function getIndexNodeForAccessExpression(accessNode) { - return accessNode.kind === 211 /* ElementAccessExpression */ ? accessNode.argumentExpression : accessNode.kind === 198 /* IndexedAccessType */ ? accessNode.indexType : accessNode.kind === 166 /* ComputedPropertyName */ ? accessNode.expression : accessNode; + return accessNode.kind === 212 /* ElementAccessExpression */ ? accessNode.argumentExpression : accessNode.kind === 199 /* IndexedAccessType */ ? accessNode.indexType : accessNode.kind === 167 /* ComputedPropertyName */ ? accessNode.expression : accessNode; } function isPatternLiteralPlaceholderType(type) { if (type.flags & 2097152 /* Intersection */) { @@ -61788,7 +62291,7 @@ function createTypeChecker(host) { } if (compilerOptions.noUncheckedIndexedAccess && accessFlags & 32 /* ExpressionPosition */) accessFlags |= 1 /* IncludeUndefined */; - if (isGenericIndexType(indexType) || (accessNode && accessNode.kind !== 198 /* IndexedAccessType */ ? isGenericTupleType(objectType) && !indexTypeLessThan(indexType, objectType.target.fixedLength) : isGenericObjectType(objectType) && !(isTupleType(objectType) && indexTypeLessThan(indexType, objectType.target.fixedLength)) || isGenericReducibleType(objectType))) { + if (isGenericIndexType(indexType) || (accessNode && accessNode.kind !== 199 /* IndexedAccessType */ ? isGenericTupleType(objectType) && !indexTypeLessThan(indexType, getTotalFixedElementCount(objectType.target)) : isGenericObjectType(objectType) && !(isTupleType(objectType) && indexTypeLessThan(indexType, getTotalFixedElementCount(objectType.target))) || isGenericReducibleType(objectType))) { if (objectType.flags & 3 /* AnyOrUnknown */) { return objectType; } @@ -61868,7 +62371,7 @@ function createTypeChecker(host) { let tailCount = 0; while (true) { if (tailCount === 1e3) { - error(currentNode, Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite); + error2(currentNode, Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite); return errorType; } const checkType = instantiateType(getActualTypeVariable(root.checkType), mapper); @@ -61893,9 +62396,9 @@ function createTypeChecker(host) { ); if (freshMapper) { const freshCombinedMapper = combineTypeMappers(mapper, freshMapper); - for (const p of freshParams) { - if (root.inferTypeParameters.indexOf(p) === -1) { - p.mapper = freshCombinedMapper; + for (let i = 0; i < freshParams.length; i++) { + if (freshParams[i] !== root.inferTypeParameters[i]) { + freshParams[i].mapper = freshCombinedMapper; } } } @@ -62046,11 +62549,11 @@ function createTypeChecker(host) { const links = getNodeLinks(node); if (!links.resolvedType) { if (!isLiteralImportTypeNode(node)) { - error(node.argument, Diagnostics.String_literal_expected); + error2(node.argument, Diagnostics.String_literal_expected); links.resolvedSymbol = unknownSymbol; return links.resolvedType = errorType; } - const targetMeaning = node.isTypeOf ? 111551 /* Value */ : node.flags & 8388608 /* JSDoc */ ? 111551 /* Value */ | 788968 /* Type */ : 788968 /* Type */; + const targetMeaning = node.isTypeOf ? 111551 /* Value */ : node.flags & 16777216 /* JSDoc */ ? 111551 /* Value */ | 788968 /* Type */ : 788968 /* Type */; const innerModuleSymbol = resolveExternalModuleName(node, node.argument.literal); if (!innerModuleSymbol) { links.resolvedSymbol = unknownSymbol; @@ -62080,7 +62583,7 @@ function createTypeChecker(host) { const symbolFromModule = node.isTypeOf ? void 0 : getSymbol2(getExportsOfSymbol(mergedResolvedSymbol), current.escapedText, meaning); const next = symbolFromModule ?? symbolFromVariable; if (!next) { - error(current, Diagnostics.Namespace_0_has_no_exported_member_1, getFullyQualifiedName(currentNamespace), declarationNameToString(current)); + error2(current, Diagnostics.Namespace_0_has_no_exported_member_1, getFullyQualifiedName(currentNamespace), declarationNameToString(current)); return links.resolvedType = errorType; } getNodeLinks(current).resolvedSymbol = next; @@ -62093,7 +62596,7 @@ function createTypeChecker(host) { links.resolvedType = resolveImportSymbolType(node, links, moduleSymbol, targetMeaning); } else { const errorMessage = targetMeaning === 111551 /* Value */ ? Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here : Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0; - error(node, errorMessage, node.argument.literal.text); + error2(node, errorMessage, node.argument.literal.text); links.resolvedSymbol = unknownSymbol; links.resolvedType = errorType; } @@ -62356,7 +62859,7 @@ function createTypeChecker(host) { false ); const parent2 = container && container.parent; - if (parent2 && (isClassLike(parent2) || parent2.kind === 263 /* InterfaceDeclaration */)) { + if (parent2 && (isClassLike(parent2) || parent2.kind === 264 /* InterfaceDeclaration */)) { if (!isStatic(container) && (!isConstructorDeclaration(container) || isNodeDescendantOf(node, container.body))) { return getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(parent2)).thisType; } @@ -62364,14 +62867,14 @@ function createTypeChecker(host) { if (parent2 && isObjectLiteralExpression(parent2) && isBinaryExpression(parent2.parent) && getAssignmentDeclarationKind(parent2.parent) === 6 /* Prototype */) { return getDeclaredTypeOfClassOrInterface(getSymbolOfNode(parent2.parent.left).parent).thisType; } - const host2 = node.flags & 8388608 /* JSDoc */ ? getHostSignatureFromJSDoc(node) : void 0; + const host2 = node.flags & 16777216 /* JSDoc */ ? getHostSignatureFromJSDoc(node) : void 0; if (host2 && isFunctionExpression(host2) && isBinaryExpression(host2.parent) && getAssignmentDeclarationKind(host2.parent) === 3 /* PrototypeProperty */) { return getDeclaredTypeOfClassOrInterface(getSymbolOfNode(host2.parent.left).parent).thisType; } if (isJSConstructor(container) && isNodeDescendantOf(node, container.body)) { return getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(container)).thisType; } - error(node, Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface); + error2(node, Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface); return errorType; } function getTypeFromThisTypeNode(node) { @@ -62386,17 +62889,17 @@ function createTypeChecker(host) { } function getArrayElementTypeNode(node) { switch (node.kind) { - case 195 /* ParenthesizedType */: + case 196 /* ParenthesizedType */: return getArrayElementTypeNode(node.type); - case 188 /* TupleType */: + case 189 /* TupleType */: if (node.elements.length === 1) { node = node.elements[0]; - if (node.kind === 190 /* RestType */ || node.kind === 201 /* NamedTupleMember */ && node.dotDotDotToken) { + if (node.kind === 191 /* RestType */ || node.kind === 202 /* NamedTupleMember */ && node.dotDotDotToken) { return getArrayElementTypeNode(node.type); } } break; - case 187 /* ArrayType */: + case 188 /* ArrayType */: return node.elementType; } return void 0; @@ -62416,8 +62919,8 @@ function createTypeChecker(host) { function getTypeFromTypeNodeWorker(node) { switch (node.kind) { case 133 /* AnyKeyword */: - case 318 /* JSDocAllType */: - case 319 /* JSDocUnknownType */: + case 319 /* JSDocAllType */: + case 320 /* JSDocUnknownType */: return anyType; case 159 /* UnknownKeyword */: return unknownType; @@ -62425,7 +62928,7 @@ function createTypeChecker(host) { return stringType; case 150 /* NumberKeyword */: return numberType; - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: return bigintType; case 136 /* BooleanKeyword */: return booleanType; @@ -62440,69 +62943,69 @@ function createTypeChecker(host) { case 146 /* NeverKeyword */: return neverType; case 151 /* ObjectKeyword */: - return node.flags & 262144 /* JavaScriptFile */ && !noImplicitAny ? anyType : nonPrimitiveType; + return node.flags & 524288 /* JavaScriptFile */ && !noImplicitAny ? anyType : nonPrimitiveType; case 141 /* IntrinsicKeyword */: return intrinsicMarkerType; - case 196 /* ThisType */: + case 197 /* ThisType */: case 110 /* ThisKeyword */: return getTypeFromThisTypeNode(node); - case 200 /* LiteralType */: + case 201 /* LiteralType */: return getTypeFromLiteralTypeNode(node); - case 182 /* TypeReference */: + case 183 /* TypeReference */: return getTypeFromTypeReference(node); - case 181 /* TypePredicate */: + case 182 /* TypePredicate */: return node.assertsModifier ? voidType : booleanType; - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return getTypeFromTypeReference(node); - case 185 /* TypeQuery */: + case 186 /* TypeQuery */: return getTypeFromTypeQueryNode(node); - case 187 /* ArrayType */: - case 188 /* TupleType */: + case 188 /* ArrayType */: + case 189 /* TupleType */: return getTypeFromArrayOrTupleTypeNode(node); - case 189 /* OptionalType */: + case 190 /* OptionalType */: return getTypeFromOptionalTypeNode(node); - case 191 /* UnionType */: + case 192 /* UnionType */: return getTypeFromUnionTypeNode(node); - case 192 /* IntersectionType */: + case 193 /* IntersectionType */: return getTypeFromIntersectionTypeNode(node); - case 320 /* JSDocNullableType */: + case 321 /* JSDocNullableType */: return getTypeFromJSDocNullableTypeNode(node); - case 322 /* JSDocOptionalType */: + case 323 /* JSDocOptionalType */: return addOptionality(getTypeFromTypeNode(node.type)); - case 201 /* NamedTupleMember */: + case 202 /* NamedTupleMember */: return getTypeFromNamedTupleTypeNode(node); - case 195 /* ParenthesizedType */: - case 321 /* JSDocNonNullableType */: - case 315 /* JSDocTypeExpression */: + case 196 /* ParenthesizedType */: + case 322 /* JSDocNonNullableType */: + case 316 /* JSDocTypeExpression */: return getTypeFromTypeNode(node.type); - case 190 /* RestType */: + case 191 /* RestType */: return getTypeFromRestTypeNode(node); - case 324 /* JSDocVariadicType */: + case 325 /* JSDocVariadicType */: return getTypeFromJSDocVariadicType(node); - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 186 /* TypeLiteral */: - case 328 /* JSDocTypeLiteral */: - case 323 /* JSDocFunctionType */: - case 329 /* JSDocSignature */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 187 /* TypeLiteral */: + case 329 /* JSDocTypeLiteral */: + case 324 /* JSDocFunctionType */: + case 330 /* JSDocSignature */: return getTypeFromTypeLiteralOrFunctionOrConstructorTypeNode(node); - case 197 /* TypeOperator */: + case 198 /* TypeOperator */: return getTypeFromTypeOperatorNode(node); - case 198 /* IndexedAccessType */: + case 199 /* IndexedAccessType */: return getTypeFromIndexedAccessTypeNode(node); - case 199 /* MappedType */: + case 200 /* MappedType */: return getTypeFromMappedTypeNode(node); - case 193 /* ConditionalType */: + case 194 /* ConditionalType */: return getTypeFromConditionalTypeNode(node); - case 194 /* InferType */: + case 195 /* InferType */: return getTypeFromInferTypeNode(node); - case 202 /* TemplateLiteralType */: + case 203 /* TemplateLiteralType */: return getTypeFromTemplateTypeNode(node); - case 204 /* ImportType */: + case 205 /* ImportType */: return getTypeFromImportTypeNode(node); case 80 /* Identifier */: - case 165 /* QualifiedName */: - case 210 /* PropertyAccessExpression */: + case 166 /* QualifiedName */: + case 211 /* PropertyAccessExpression */: const symbol = getSymbolAtLocation(node); return symbol ? getDeclaredTypeOfSymbol(symbol) : errorType; default: @@ -62638,7 +63141,7 @@ function createTypeChecker(host) { /*resolvedTypePredicate*/ void 0, signature.minArgumentCount, - signature.flags & 39 /* PropagatingFlags */ + signature.flags & 167 /* PropagatingFlags */ ); result.target = signature; result.mapper = mapper; @@ -62700,26 +63203,31 @@ function createTypeChecker(host) { if (!result) { const newMapper = createTypeMapper(typeParameters, typeArguments); result = target.objectFlags & 4 /* Reference */ ? createDeferredTypeReference(type.target, type.node, newMapper, newAliasSymbol, newAliasTypeArguments) : target.objectFlags & 32 /* Mapped */ ? instantiateMappedType(target, newMapper, newAliasSymbol, newAliasTypeArguments) : instantiateAnonymousType(target, newMapper, newAliasSymbol, newAliasTypeArguments); - if (result.flags & 138117121 /* ObjectFlagsType */ && !(result.objectFlags & 524288 /* CouldContainTypeVariablesComputed */)) { + target.instantiations.set(id, result); + const resultObjectFlags = getObjectFlags(result); + if (result.flags & 138117121 /* ObjectFlagsType */ && !(resultObjectFlags & 524288 /* CouldContainTypeVariablesComputed */)) { const resultCouldContainTypeVariables = some(typeArguments, couldContainTypeVariables); - if (!(result.objectFlags & 524288 /* CouldContainTypeVariablesComputed */)) { - result.objectFlags |= 524288 /* CouldContainTypeVariablesComputed */ | (resultCouldContainTypeVariables ? 1048576 /* CouldContainTypeVariables */ : 0); + if (!(getObjectFlags(result) & 524288 /* CouldContainTypeVariablesComputed */)) { + if (resultObjectFlags & (32 /* Mapped */ | 16 /* Anonymous */ | 4 /* Reference */)) { + result.objectFlags |= 524288 /* CouldContainTypeVariablesComputed */ | (resultCouldContainTypeVariables ? 1048576 /* CouldContainTypeVariables */ : 0); + } else { + result.objectFlags |= !resultCouldContainTypeVariables ? 524288 /* CouldContainTypeVariablesComputed */ : 0; + } } } - target.instantiations.set(id, result); } return result; } return type; } function maybeTypeParameterReference(node) { - return !(node.parent.kind === 182 /* TypeReference */ && node.parent.typeArguments && node === node.parent.typeName || node.parent.kind === 204 /* ImportType */ && node.parent.typeArguments && node === node.parent.qualifier); + return !(node.parent.kind === 183 /* TypeReference */ && node.parent.typeArguments && node === node.parent.typeName || node.parent.kind === 205 /* ImportType */ && node.parent.typeArguments && node === node.parent.qualifier); } function isTypeParameterPossiblyReferenced(tp, node) { if (tp.symbol && tp.symbol.declarations && tp.symbol.declarations.length === 1) { const container = tp.symbol.declarations[0].parent; for (let n = node; n !== container; n = n.parent) { - if (!n || n.kind === 240 /* Block */ || n.kind === 193 /* ConditionalType */ && forEachChild(n.extendsType, containsReference)) { + if (!n || n.kind === 241 /* Block */ || n.kind === 194 /* ConditionalType */ && forEachChild(n.extendsType, containsReference)) { return true; } } @@ -62728,17 +63236,17 @@ function createTypeChecker(host) { return true; function containsReference(node2) { switch (node2.kind) { - case 196 /* ThisType */: + case 197 /* ThisType */: return !!tp.isThisType; case 80 /* Identifier */: return !tp.isThisType && isPartOfTypeNode(node2) && maybeTypeParameterReference(node2) && getTypeFromTypeNodeWorker(node2) === tp; - case 185 /* TypeQuery */: + case 186 /* TypeQuery */: const entityName = node2.exprName; const firstIdentifier = getFirstIdentifier(entityName); if (!isThisIdentifier(firstIdentifier)) { const firstIdentifierSymbol = getResolvedSymbol(firstIdentifier); const tpDeclaration = tp.symbol.declarations[0]; - const tpScope = tpDeclaration.kind === 167 /* TypeParameter */ ? tpDeclaration.parent : ( + const tpScope = tpDeclaration.kind === 168 /* TypeParameter */ ? tpDeclaration.parent : ( // Type parameter is a regular type parameter, e.g. foo tp.isThisType ? tpDeclaration : ( // Type parameter is the this type, and its declaration is the class declaration. @@ -62750,8 +63258,8 @@ function createTypeChecker(host) { } } return true; - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: return !node2.type && !!node2.body || some(node2.typeParameters, containsReference) || some(node2.parameters, containsReference) || !!node2.type && containsReference(node2.type); } return !!forEachChild(node2, containsReference); @@ -62801,6 +63309,9 @@ function createTypeChecker(host) { const elementFlags = tupleType.target.elementFlags; const elementTypes = map(getElementTypes(tupleType), (t, i) => { const singleton = elementFlags[i] & 8 /* Variadic */ ? t : elementFlags[i] & 4 /* Rest */ ? createArrayType(t) : createTupleType([t], [elementFlags[i]]); + if (singleton === typeVariable) { + return mappedType; + } return instantiateMappedType(mappedType, prependTypeMapping(typeVariable, singleton, mapper)); }); const newReadonly = getModifiedReadonlyState(tupleType.target.readonly, getMappedTypeModifiers(mappedType)); @@ -62888,7 +63399,7 @@ function createTypeChecker(host) { } if (instantiationDepth === 100 || instantiationCount >= 5e6) { (_a = tracing) == null ? void 0 : _a.instant(tracing.Phase.CheckTypes, "instantiateType_DepthLimit", { typeId: type.id, instantiationDepth, instantiationCount }); - error(currentNode, Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite); + error2(currentNode, Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite); return errorType; } totalInstantiationCount++; @@ -63004,32 +63515,32 @@ function createTypeChecker(host) { return createIndexInfo(info.keyType, instantiateType(info.type, mapper), info.isReadonly, info.declaration); } function isContextSensitive(node) { - Debug.assert(node.kind !== 173 /* MethodDeclaration */ || isObjectLiteralMethod(node)); + Debug.assert(node.kind !== 174 /* MethodDeclaration */ || isObjectLiteralMethod(node)); switch (node.kind) { - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: - case 261 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 262 /* FunctionDeclaration */: return isContextSensitiveFunctionLikeDeclaration(node); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return some(node.properties, isContextSensitive); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return some(node.elements, isContextSensitive); - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: return isContextSensitive(node.whenTrue) || isContextSensitive(node.whenFalse); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return (node.operatorToken.kind === 57 /* BarBarToken */ || node.operatorToken.kind === 61 /* QuestionQuestionToken */) && (isContextSensitive(node.left) || isContextSensitive(node.right)); - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return isContextSensitive(node.initializer); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return isContextSensitive(node.expression); - case 291 /* JsxAttributes */: + case 292 /* JsxAttributes */: return some(node.properties, isContextSensitive) || isJsxOpeningElement(node.parent) && some(node.parent.parent.children, isContextSensitive); - case 290 /* JsxAttribute */: { + case 291 /* JsxAttribute */: { const { initializer } = node; return !!initializer && isContextSensitive(initializer); } - case 293 /* JsxExpression */: { + case 294 /* JsxExpression */: { const { expression } = node; return !!expression && isContextSensitive(expression); } @@ -63043,7 +63554,7 @@ function createTypeChecker(host) { if (node.typeParameters || getEffectiveReturnTypeNode(node) || !node.body) { return false; } - if (node.body.kind !== 240 /* Block */) { + if (node.body.kind !== 241 /* Block */) { return isContextSensitive(node.body); } return !!forEachReturnStatement(node.body, (statement) => !!statement.expression && isContextSensitive(statement.expression)); @@ -63138,23 +63649,27 @@ function createTypeChecker(host) { return true; } switch (node.kind) { - case 293 /* JsxExpression */: - case 216 /* ParenthesizedExpression */: + case 234 /* AsExpression */: + if (!isConstAssertion(node)) { + break; + } + case 294 /* JsxExpression */: + case 217 /* ParenthesizedExpression */: return elaborateError(node.expression, source, target, relation, headMessage, containingMessageChain, errorOutputContainer); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: switch (node.operatorToken.kind) { case 64 /* EqualsToken */: case 28 /* CommaToken */: return elaborateError(node.right, source, target, relation, headMessage, containingMessageChain, errorOutputContainer); } break; - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return elaborateObjectLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return elaborateArrayLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer); - case 291 /* JsxAttributes */: + case 292 /* JsxAttributes */: return elaborateJsxComponents(node, source, target, relation, containingMessageChain, errorOutputContainer); - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return elaborateArrowFunction(node, source, target, relation, containingMessageChain, errorOutputContainer); } return false; @@ -63454,16 +63969,16 @@ function createTypeChecker(host) { } function getElaborationElementForJsxChild(child, nameType, getInvalidTextDiagnostic) { switch (child.kind) { - case 293 /* JsxExpression */: + case 294 /* JsxExpression */: return { errorNode: child, innerExpression: child.expression, nameType }; case 12 /* JsxText */: if (child.containsOnlyTriviaWhiteSpaces) { break; } return { errorNode: child, innerExpression: void 0, nameType, errorMessage: getInvalidTextDiagnostic() }; - case 283 /* JsxElement */: - case 284 /* JsxSelfClosingElement */: - case 287 /* JsxFragment */: + case 284 /* JsxElement */: + case 285 /* JsxSelfClosingElement */: + case 288 /* JsxFragment */: return { errorNode: child, innerExpression: child, nameType }; default: return Debug.assertNever(child, "Found invalid jsx child"); @@ -63504,7 +64019,7 @@ function createTypeChecker(host) { result = elaborateIterableOrArrayLikeTargetElementwise(children, realSource, arrayLikeTargetParts, relation, containingMessageChain, errorOutputContainer) || result; } else if (!isTypeRelatedTo(getIndexedAccessType(source, childrenNameType), childrenTargetType, relation)) { result = true; - const diag2 = error( + const diag2 = error2( containingElement.openingElement.tagName, Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided, childrenPropName, @@ -63532,7 +64047,7 @@ function createTypeChecker(host) { } } else if (!isTypeRelatedTo(getIndexedAccessType(source, childrenNameType), childrenTargetType, relation)) { result = true; - const diag2 = error( + const diag2 = error2( containingElement.openingElement.tagName, Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided, childrenPropName, @@ -63613,13 +64128,13 @@ function createTypeChecker(host) { continue; } switch (prop.kind) { - case 177 /* SetAccessor */: - case 176 /* GetAccessor */: - case 173 /* MethodDeclaration */: - case 303 /* ShorthandPropertyAssignment */: + case 178 /* SetAccessor */: + case 177 /* GetAccessor */: + case 174 /* MethodDeclaration */: + case 304 /* ShorthandPropertyAssignment */: yield { errorNode: prop.name, innerExpression: void 0, nameType: type }; break; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: yield { errorNode: prop.name, innerExpression: prop.initializer, nameType: type, errorMessage: isComputedNonLiteralName(prop.name) ? Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1 : void 0 }; break; default: @@ -63694,7 +64209,7 @@ function createTypeChecker(host) { void instantiateType(sourceRestType || targetRestType, reportUnreliableMarkers); } const kind = target.declaration ? target.declaration.kind : 0 /* Unknown */; - const strictVariance = !(checkMode & 3 /* Callback */) && strictFunctionTypes && kind !== 173 /* MethodDeclaration */ && kind !== 172 /* MethodSignature */ && kind !== 175 /* Constructor */; + const strictVariance = !(checkMode & 3 /* Callback */) && strictFunctionTypes && kind !== 174 /* MethodDeclaration */ && kind !== 173 /* MethodSignature */ && kind !== 176 /* Constructor */; let result = -1 /* True */; const sourceThisType = getThisTypeOfSignature(source); if (sourceThisType && sourceThisType !== voidType) { @@ -64013,6 +64528,7 @@ function createTypeChecker(host) { let errorInfo; let relatedInfo; let maybeKeys; + let maybeKeysSet; let sourceStack; let targetStack; let maybeCount = 0; @@ -64037,7 +64553,7 @@ function createTypeChecker(host) { } if (overflow) { (_a = tracing) == null ? void 0 : _a.instant(tracing.Phase.CheckTypes, "checkTypeRelatedTo_DepthLimit", { sourceId: source.id, targetId: target.id, depth: sourceDepth, targetDepth }); - const diag2 = error(errorNode || currentNode, Diagnostics.Excessive_stack_depth_comparing_types_0_and_1, typeToString(source), typeToString(target)); + const diag2 = error2(errorNode || currentNode, Diagnostics.Excessive_stack_depth_comparing_types_0_and_1, typeToString(source), typeToString(target)); if (errorOutputContainer) { (errorOutputContainer.errors || (errorOutputContainer.errors = [])).push(diag2); } @@ -64882,9 +65398,13 @@ function createTypeChecker(host) { } if (!maybeKeys) { maybeKeys = []; + maybeKeysSet = /* @__PURE__ */ new Set(); sourceStack = []; targetStack = []; } else { + if (maybeKeysSet.has(id)) { + return 3 /* Maybe */; + } const broadestEquivalentId = id.startsWith("*") ? getRelationKey( source2, target2, @@ -64893,10 +65413,8 @@ function createTypeChecker(host) { /*ignoreConstraints*/ true ) : void 0; - for (let i = 0; i < maybeCount; i++) { - if (id === maybeKeys[i] || broadestEquivalentId && broadestEquivalentId === maybeKeys[i]) { - return 3 /* Maybe */; - } + if (broadestEquivalentId && maybeKeysSet.has(broadestEquivalentId)) { + return 3 /* Maybe */; } if (sourceDepth === 100 || targetDepth === 100) { overflow = true; @@ -64905,6 +65423,7 @@ function createTypeChecker(host) { } const maybeStart = maybeCount; maybeKeys[maybeCount] = id; + maybeKeysSet.add(id); maybeCount++; const saveExpandingFlags = expandingFlags; if (recursionFlags & 1 /* Source */) { @@ -64957,17 +65476,34 @@ function createTypeChecker(host) { if (result2) { if (result2 === -1 /* True */ || sourceDepth === 0 && targetDepth === 0) { if (result2 === -1 /* True */ || result2 === 3 /* Maybe */) { - for (let i = maybeStart; i < maybeCount; i++) { - relation.set(maybeKeys[i], 1 /* Succeeded */ | propagatingVarianceFlags); - } + resetMaybeStack( + /*markAllAsSucceeded*/ + true + ); + } else { + resetMaybeStack( + /*markAllAsSucceeded*/ + false + ); } - maybeCount = maybeStart; } } else { relation.set(id, (reportErrors2 ? 4 /* Reported */ : 0) | 2 /* Failed */ | propagatingVarianceFlags); - maybeCount = maybeStart; + resetMaybeStack( + /*markAllAsSucceeded*/ + false + ); } return result2; + function resetMaybeStack(markAllAsSucceeded) { + for (let i = maybeStart; i < maybeCount; i++) { + maybeKeysSet.delete(maybeKeys[i]); + if (markAllAsSucceeded) { + relation.set(maybeKeys[i], 1 /* Succeeded */ | propagatingVarianceFlags); + } + } + maybeCount = maybeStart; + } } function structuredTypeRelatedTo(source2, target2, reportErrors2, intersectionState) { const saveErrorInfo = captureErrorCalculationState(); @@ -65379,26 +65915,6 @@ function createTypeChecker(host) { )) { return result2; } - if (sourceFlags & 8388608 /* IndexedAccess */) { - const indexType = source2.indexType; - if (indexType.flags & 4194304 /* Index */) { - const unresolvedIndexConstraint = getBaseConstraintOfType(indexType.type); - const indexConstraint = unresolvedIndexConstraint && unresolvedIndexConstraint !== noConstraintType ? getIndexType(unresolvedIndexConstraint) : keyofConstraintType; - const constraint2 = getIndexedAccessType(source2.objectType, indexConstraint); - if (result2 = isRelatedTo( - constraint2, - target2, - 1 /* Source */, - /*reportErrors*/ - false, - /*headMessage*/ - void 0, - intersectionState - )) { - return result2; - } - } - } if (isMappedTypeGenericIndexedAccess(source2)) { const indexConstraint = getConstraintOfType(source2.indexType); if (indexConstraint) { @@ -66084,7 +66600,7 @@ function createTypeChecker(host) { const sourceSignature = first(sourceSignatures); const targetSignature = first(targetSignatures); result2 = signatureRelatedTo(sourceSignature, targetSignature, eraseGenerics, reportErrors2, intersectionState, incompatibleReporter(sourceSignature, targetSignature)); - if (!result2 && reportErrors2 && kind === 1 /* Construct */ && sourceObjectFlags & targetObjectFlags && (((_a2 = targetSignature.declaration) == null ? void 0 : _a2.kind) === 175 /* Constructor */ || ((_b = sourceSignature.declaration) == null ? void 0 : _b.kind) === 175 /* Constructor */)) { + if (!result2 && reportErrors2 && kind === 1 /* Construct */ && sourceObjectFlags & targetObjectFlags && (((_a2 = targetSignature.declaration) == null ? void 0 : _a2.kind) === 176 /* Constructor */ || ((_b = sourceSignature.declaration) == null ? void 0 : _b.kind) === 176 /* Constructor */)) { const constructSignatureToString = (signature) => signatureToString( signature, /*enclosingDeclaration*/ @@ -66370,7 +66886,7 @@ function createTypeChecker(host) { let matched = false; for (let i = 0; i < types.length; i++) { if (include[i]) { - const targetType = getTypeOfPropertyOfType(types[i], propertyName); + const targetType = getTypeOfPropertyOrIndexSignatureOfType(types[i], propertyName); if (targetType && related(getDiscriminatingType(), targetType)) { matched = true; } else { @@ -66384,7 +66900,7 @@ function createTypeChecker(host) { } } } - const filtered = contains(include, 0 /* False */) ? getUnionType(types.filter((_, i) => include[i])) : target; + const filtered = contains(include, 0 /* False */) ? getUnionType(types.filter((_, i) => include[i]), 0 /* None */) : target; return filtered.flags & 131072 /* Never */ ? target : filtered; } function isWeakType(type) { @@ -66588,7 +67104,7 @@ function createTypeChecker(host) { } function getRecursionIdentity(type) { if (type.flags & 524288 /* Object */ && !isObjectOrArrayLiteralType(type)) { - if (getObjectFlags(type) && 4 /* Reference */ && type.node) { + if (getObjectFlags(type) & 4 /* Reference */ && type.node) { return type.node; } if (type.symbol && !(getObjectFlags(type) & 16 /* Anonymous */ && type.symbol.flags & 32 /* Class */)) { @@ -66769,7 +67285,7 @@ function createTypeChecker(host) { const target = type.target; if (getObjectFlags(target) & 1 /* Class */) { const baseTypeNode = getBaseTypeNodeOfClass(target); - if (baseTypeNode && baseTypeNode.expression.kind !== 80 /* Identifier */ && baseTypeNode.expression.kind !== 210 /* PropertyAccessExpression */) { + if (baseTypeNode && baseTypeNode.expression.kind !== 80 /* Identifier */ && baseTypeNode.expression.kind !== 211 /* PropertyAccessExpression */) { return void 0; } } @@ -66795,7 +67311,8 @@ function createTypeChecker(host) { return !!elementType && isEmptyLiteralType(elementType); } function isTupleLikeType(type) { - return isTupleType(type) || !!getPropertyOfType(type, "0"); + let lengthType; + return isTupleType(type) || !!getPropertyOfType(type, "0") || isArrayLikeType(type) && !!(lengthType = getTypeOfPropertyOfType(type, "length")) && everyType(lengthType, (t) => !!(t.flags & 256 /* NumberLiteral */)); } function isArrayOrTupleLikeType(type) { return isArrayLikeType(type) || isTupleLikeType(type); @@ -66806,17 +67323,7 @@ function createTypeChecker(host) { return propType; } if (everyType(type, isTupleType)) { - return mapType(type, (t) => { - const tupleType = t; - const restType = getRestTypeOfTupleType(tupleType); - if (!restType) { - return undefinedType; - } - if (compilerOptions.noUncheckedIndexedAccess && index >= tupleType.target.fixedLength + getEndElementCount(tupleType.target, 3 /* Fixed */)) { - return getUnionType([restType, undefinedType]); - } - return restType; - }); + return getTupleElementTypeOutOfStartCount(type, index, compilerOptions.noUncheckedIndexedAccess ? undefinedType : void 0); } return void 0; } @@ -66884,6 +67391,19 @@ function createTypeChecker(host) { function getRestTypeOfTupleType(type) { return getElementTypeOfSliceOfTupleType(type, type.target.fixedLength); } + function getTupleElementTypeOutOfStartCount(type, index, undefinedOrMissingType2) { + return mapType(type, (t) => { + const tupleType = t; + const restType = getRestTypeOfTupleType(tupleType); + if (!restType) { + return undefinedType; + } + if (undefinedOrMissingType2 && index >= getTotalFixedElementCount(tupleType.target)) { + return getUnionType([restType, undefinedOrMissingType2]); + } + return restType; + }); + } function getRestArrayTypeOfTupleType(type) { const restType = getRestTypeOfTupleType(type); return restType && createArrayType(restType); @@ -67152,7 +67672,7 @@ function createTypeChecker(host) { const t = getTypeOfSymbol(p); if (getObjectFlags(t) & 65536 /* ContainsWideningType */) { if (!reportWideningErrorsInType(t)) { - error(p.valueDeclaration, Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type, symbolToString(p), typeToString(getWidenedType(t))); + error2(p.valueDeclaration, Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type, symbolToString(p), typeToString(getWidenedType(t))); } errorReported = true; } @@ -67168,12 +67688,12 @@ function createTypeChecker(host) { } let diagnostic; switch (declaration.kind) { - case 225 /* BinaryExpression */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: + case 226 /* BinaryExpression */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: diagnostic = noImplicitAny ? Diagnostics.Member_0_implicitly_has_an_1_type : Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage; break; - case 168 /* Parameter */: + case 169 /* Parameter */: const param = declaration; if (isIdentifier(param.name)) { const originalKeywordKind = identifierToKeywordKind(param.name); @@ -67195,40 +67715,40 @@ function createTypeChecker(host) { } diagnostic = declaration.dotDotDotToken ? noImplicitAny ? Diagnostics.Rest_parameter_0_implicitly_has_an_any_type : Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage : noImplicitAny ? Diagnostics.Parameter_0_implicitly_has_an_1_type : Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage; break; - case 207 /* BindingElement */: + case 208 /* BindingElement */: diagnostic = Diagnostics.Binding_element_0_implicitly_has_an_1_type; if (!noImplicitAny) { return; } break; - case 323 /* JSDocFunctionType */: - error(declaration, Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type, typeAsString); + case 324 /* JSDocFunctionType */: + error2(declaration, Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type, typeAsString); return; - case 329 /* JSDocSignature */: + case 330 /* JSDocSignature */: if (noImplicitAny && isJSDocOverloadTag(declaration.parent)) { - error(declaration.parent.tagName, Diagnostics.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation, typeAsString); + error2(declaration.parent.tagName, Diagnostics.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation, typeAsString); } return; - case 261 /* FunctionDeclaration */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: if (noImplicitAny && !declaration.name) { if (wideningKind === 3 /* GeneratorYield */) { - error(declaration, Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation, typeAsString); + error2(declaration, Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation, typeAsString); } else { - error(declaration, Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type, typeAsString); + error2(declaration, Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type, typeAsString); } return; } diagnostic = !noImplicitAny ? Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage : wideningKind === 3 /* GeneratorYield */ ? Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type : Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type; break; - case 199 /* MappedType */: + case 200 /* MappedType */: if (noImplicitAny) { - error(declaration, Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type); + error2(declaration, Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type); } return; default: @@ -67323,7 +67843,7 @@ function createTypeChecker(host) { function inferFromIntraExpressionSites(context) { if (context.intraExpressionInferenceSites) { for (const { node, type } of context.intraExpressionInferenceSites) { - const contextualType = node.kind === 173 /* MethodDeclaration */ ? getContextualTypeForObjectLiteralMethod(node, 2 /* NoConstraints */) : getContextualType2(node, 2 /* NoConstraints */); + const contextualType = node.kind === 174 /* MethodDeclaration */ ? getContextualTypeForObjectLiteralMethod(node, 2 /* NoConstraints */) : getContextualType2(node, 2 /* NoConstraints */); if (contextualType) { inferTypes(context.inferences, type, contextualType); } @@ -67375,8 +67895,8 @@ function createTypeChecker(host) { } function isNonGenericTopLevelType(type) { if (type.aliasSymbol && !type.aliasTypeArguments) { - const declaration = getDeclarationOfKind(type.aliasSymbol, 264 /* TypeAliasDeclaration */); - return !!(declaration && findAncestor(declaration.parent, (n) => n.kind === 311 /* SourceFile */ ? true : n.kind === 266 /* ModuleDeclaration */ ? false : "quit")); + const declaration = getDeclarationOfKind(type.aliasSymbol, 265 /* TypeAliasDeclaration */); + return !!(declaration && findAncestor(declaration.parent, (n) => n.kind === 312 /* SourceFile */ ? true : n.kind === 267 /* ModuleDeclaration */ ? false : "quit")); } return false; } @@ -67418,17 +67938,18 @@ function createTypeChecker(host) { ); } function inferTypeForHomomorphicMappedType(source, target, constraint) { - if (inInferTypeForHomomorphicMappedType) { - return void 0; + const cacheKey = source.id + "," + target.id + "," + constraint.id; + if (reverseMappedCache.has(cacheKey)) { + return reverseMappedCache.get(cacheKey); } - const key = source.id + "," + target.id + "," + constraint.id; - if (reverseMappedCache.has(key)) { - return reverseMappedCache.get(key); + const recursionKey = source.id + "," + (target.target || target).id; + if (contains(homomorphicMappedTypeInferenceStack, recursionKey)) { + return void 0; } - inInferTypeForHomomorphicMappedType = true; + homomorphicMappedTypeInferenceStack.push(recursionKey); const type = createReverseMappedType(source, target, constraint); - inInferTypeForHomomorphicMappedType = false; - reverseMappedCache.set(key, type); + homomorphicMappedTypeInferenceStack.pop(); + reverseMappedCache.set(cacheKey, type); return type; } function isPartiallyInferableType(type) { @@ -68201,7 +68722,7 @@ function createTypeChecker(host) { if (!(source.flags & 64 /* IsNonInferrable */)) { const saveBivariant = bivariant; const kind = target.declaration ? target.declaration.kind : 0 /* Unknown */; - bivariant = bivariant || kind === 173 /* MethodDeclaration */ || kind === 172 /* MethodSignature */ || kind === 175 /* Constructor */; + bivariant = bivariant || kind === 174 /* MethodDeclaration */ || kind === 173 /* MethodSignature */ || kind === 176 /* Constructor */; applyToParameterTypes(source, target, inferFromContravariantTypesIfStrictFunctionTypes); bivariant = saveBivariant; } @@ -68301,7 +68822,7 @@ function createTypeChecker(host) { const constraint = getConstraintOfTypeParameter(inference.typeParameter); if (constraint) { const instantiatedConstraint = instantiateType(constraint, context.nonFixingMapper); - if (!inferredType || !context.compareTypes(inferredType, getTypeWithThisArgument(instantiatedConstraint, inferredType))) { + if (!inferredType || inferredType === wildcardType || !context.compareTypes(inferredType, getTypeWithThisArgument(instantiatedConstraint, inferredType))) { inference.inferredType = fallbackType && context.compareTypes(fallbackType, getTypeWithThisArgument(instantiatedConstraint, fallbackType)) ? fallbackType : instantiatedConstraint; } } @@ -68359,7 +68880,7 @@ function createTypeChecker(host) { return Diagnostics.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function; } default: - if (node.parent.kind === 303 /* ShorthandPropertyAssignment */) { + if (node.parent.kind === 304 /* ShorthandPropertyAssignment */) { return Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer; } else { return Diagnostics.Cannot_find_name_0; @@ -68382,14 +68903,8 @@ function createTypeChecker(host) { } return links.resolvedSymbol; } - function isInTypeQuery(node) { - return !!findAncestor( - node, - (n) => n.kind === 185 /* TypeQuery */ ? true : n.kind === 80 /* Identifier */ || n.kind === 165 /* QualifiedName */ ? false : "quit" - ); - } function isInAmbientOrTypeNode(node) { - return !!(node.flags & 16777216 /* Ambient */ || findAncestor(node, (n) => isInterfaceDeclaration(n) || isTypeAliasDeclaration(n) || isTypeLiteralNode(n))); + return !!(node.flags & 33554432 /* Ambient */ || findAncestor(node, (n) => isInterfaceDeclaration(n) || isTypeAliasDeclaration(n) || isTypeLiteralNode(n))); } function getFlowCacheKey(node, declaredType, initialType, flowContainer) { switch (node.kind) { @@ -68400,41 +68915,41 @@ function createTypeChecker(host) { } case 110 /* ThisKeyword */: return `0|${flowContainer ? getNodeId(flowContainer) : "-1"}|${getTypeId(declaredType)}|${getTypeId(initialType)}`; - case 234 /* NonNullExpression */: - case 216 /* ParenthesizedExpression */: + case 235 /* NonNullExpression */: + case 217 /* ParenthesizedExpression */: return getFlowCacheKey(node.expression, declaredType, initialType, flowContainer); - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: const left = getFlowCacheKey(node.left, declaredType, initialType, flowContainer); return left && left + "." + node.right.escapedText; - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: const propName = getAccessedPropertyName(node); if (propName !== void 0) { const key = getFlowCacheKey(node.expression, declaredType, initialType, flowContainer); return key && key + "." + propName; } break; - case 205 /* ObjectBindingPattern */: - case 206 /* ArrayBindingPattern */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: + case 206 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: return `${getNodeId(node)}#${getTypeId(declaredType)}`; } return void 0; } function isMatchingReference(source, target) { switch (target.kind) { - case 216 /* ParenthesizedExpression */: - case 234 /* NonNullExpression */: + case 217 /* ParenthesizedExpression */: + case 235 /* NonNullExpression */: return isMatchingReference(source, target.expression); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return isAssignmentExpression(target) && isMatchingReference(source, target.left) || isBinaryExpression(target) && target.operatorToken.kind === 28 /* CommaToken */ && isMatchingReference(source, target.right); } switch (source.kind) { - case 235 /* MetaProperty */: - return target.kind === 235 /* MetaProperty */ && source.keywordToken === target.keywordToken && source.name.escapedText === target.name.escapedText; + case 236 /* MetaProperty */: + return target.kind === 236 /* MetaProperty */ && source.keywordToken === target.keywordToken && source.name.escapedText === target.name.escapedText; case 80 /* Identifier */: case 81 /* PrivateIdentifier */: return isThisInTypeQuery(source) ? target.kind === 110 /* ThisKeyword */ : target.kind === 80 /* Identifier */ && getResolvedSymbol(source) === getResolvedSymbol(target) || (isVariableDeclaration(target) || isBindingElement(target)) && getExportSymbolOfValueSymbolIfExported(getResolvedSymbol(source)) === getSymbolOfDeclaration(target); @@ -68442,17 +68957,17 @@ function createTypeChecker(host) { return target.kind === 110 /* ThisKeyword */; case 108 /* SuperKeyword */: return target.kind === 108 /* SuperKeyword */; - case 234 /* NonNullExpression */: - case 216 /* ParenthesizedExpression */: + case 235 /* NonNullExpression */: + case 217 /* ParenthesizedExpression */: return isMatchingReference(source.expression, target); - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: const sourcePropertyName = getAccessedPropertyName(source); const targetPropertyName = isAccessExpression(target) ? getAccessedPropertyName(target) : void 0; return sourcePropertyName !== void 0 && targetPropertyName !== void 0 && targetPropertyName === sourcePropertyName && isMatchingReference(source.expression, target.expression); - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: return isAccessExpression(target) && source.right.escapedText === getAccessedPropertyName(target) && isMatchingReference(source.left, target.expression); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return isBinaryExpression(source) && source.operatorToken.kind === 28 /* CommaToken */ && isMatchingReference(source.right, target); } return false; @@ -68486,7 +69001,7 @@ function createTypeChecker(host) { /*ignoreErrors*/ true ); - if (!symbol || !(isConstVariable(symbol) || symbol.flags & 8 /* EnumMember */)) + if (!symbol || !(isConstantVariable(symbol) || symbol.flags & 8 /* EnumMember */)) return void 0; const declaration = symbol.valueDeclaration; if (declaration === void 0) @@ -68605,7 +69120,7 @@ function createTypeChecker(host) { } function getMatchingUnionConstituentForObjectLiteral(unionType, node) { const keyPropertyName = getKeyPropertyName(unionType); - const propNode = keyPropertyName && find(node.properties, (p) => p.symbol && p.kind === 302 /* PropertyAssignment */ && p.symbol.escapedName === keyPropertyName && isPossiblyDiscriminantValue(p.initializer)); + const propNode = keyPropertyName && find(node.properties, (p) => p.symbol && p.kind === 303 /* PropertyAssignment */ && p.symbol.escapedName === keyPropertyName && isPossiblyDiscriminantValue(p.initializer)); const propType = propNode && getContextFreeTypeOfExpression(propNode.initializer); return propType && getConstituentTypeForKeyType(unionType, propType); } @@ -68620,7 +69135,7 @@ function createTypeChecker(host) { } } } - if (expression.expression.kind === 210 /* PropertyAccessExpression */ && isOrContainsMatchingReference(reference, expression.expression.expression)) { + if (expression.expression.kind === 211 /* PropertyAccessExpression */ && isOrContainsMatchingReference(reference, expression.expression.expression)) { return true; } return false; @@ -68792,11 +69307,11 @@ function createTypeChecker(host) { ) || errorType); } function getAssignedTypeOfBinaryExpression(node) { - const isDestructuringDefaultAssignment = node.parent.kind === 208 /* ArrayLiteralExpression */ && isDestructuringAssignmentTarget(node.parent) || node.parent.kind === 302 /* PropertyAssignment */ && isDestructuringAssignmentTarget(node.parent.parent); + const isDestructuringDefaultAssignment = node.parent.kind === 209 /* ArrayLiteralExpression */ && isDestructuringAssignmentTarget(node.parent) || node.parent.kind === 303 /* PropertyAssignment */ && isDestructuringAssignmentTarget(node.parent.parent); return isDestructuringDefaultAssignment ? getTypeWithDefault(getAssignedType(node), node.right) : getTypeOfExpression(node.right); } function isDestructuringAssignmentTarget(parent2) { - return parent2.parent.kind === 225 /* BinaryExpression */ && parent2.parent.left === parent2 || parent2.parent.kind === 249 /* ForOfStatement */ && parent2.parent.initializer === parent2; + return parent2.parent.kind === 226 /* BinaryExpression */ && parent2.parent.left === parent2 || parent2.parent.kind === 250 /* ForOfStatement */ && parent2.parent.initializer === parent2; } function getAssignedTypeOfArrayLiteralElement(node, element) { return getTypeOfDestructuredArrayElement(getAssignedType(node), node.elements.indexOf(element)); @@ -68813,21 +69328,21 @@ function createTypeChecker(host) { function getAssignedType(node) { const { parent: parent2 } = node; switch (parent2.kind) { - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return stringType; - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return checkRightHandSideOfForOf(parent2) || errorType; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return getAssignedTypeOfBinaryExpression(parent2); - case 219 /* DeleteExpression */: + case 220 /* DeleteExpression */: return undefinedType; - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return getAssignedTypeOfArrayLiteralElement(parent2, node); - case 229 /* SpreadElement */: + case 230 /* SpreadElement */: return getAssignedTypeOfSpreadExpression(parent2); - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return getAssignedTypeOfPropertyAssignment(parent2); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return getAssignedTypeOfShorthandPropertyAssignment(parent2); } return errorType; @@ -68835,7 +69350,7 @@ function createTypeChecker(host) { function getInitialTypeOfBindingElement(node) { const pattern = node.parent; const parentType = getInitialType(pattern.parent); - const type = pattern.kind === 205 /* ObjectBindingPattern */ ? getTypeOfDestructuredProperty(parentType, node.propertyName || node.name) : !node.dotDotDotToken ? getTypeOfDestructuredArrayElement(parentType, pattern.elements.indexOf(node)) : getTypeOfDestructuredSpreadExpression(parentType); + const type = pattern.kind === 206 /* ObjectBindingPattern */ ? getTypeOfDestructuredProperty(parentType, node.propertyName || node.name) : !node.dotDotDotToken ? getTypeOfDestructuredArrayElement(parentType, pattern.elements.indexOf(node)) : getTypeOfDestructuredSpreadExpression(parentType); return getTypeWithDefault(type, node.initializer); } function getTypeOfInitializer(node) { @@ -68846,25 +69361,25 @@ function createTypeChecker(host) { if (node.initializer) { return getTypeOfInitializer(node.initializer); } - if (node.parent.parent.kind === 248 /* ForInStatement */) { + if (node.parent.parent.kind === 249 /* ForInStatement */) { return stringType; } - if (node.parent.parent.kind === 249 /* ForOfStatement */) { + if (node.parent.parent.kind === 250 /* ForOfStatement */) { return checkRightHandSideOfForOf(node.parent.parent) || errorType; } return errorType; } function getInitialType(node) { - return node.kind === 259 /* VariableDeclaration */ ? getInitialTypeOfVariableDeclaration(node) : getInitialTypeOfBindingElement(node); + return node.kind === 260 /* VariableDeclaration */ ? getInitialTypeOfVariableDeclaration(node) : getInitialTypeOfBindingElement(node); } function isEmptyArrayAssignment(node) { - return node.kind === 259 /* VariableDeclaration */ && node.initializer && isEmptyArrayLiteral2(node.initializer) || node.kind !== 207 /* BindingElement */ && node.parent.kind === 225 /* BinaryExpression */ && isEmptyArrayLiteral2(node.parent.right); + return node.kind === 260 /* VariableDeclaration */ && node.initializer && isEmptyArrayLiteral2(node.initializer) || node.kind !== 208 /* BindingElement */ && node.parent.kind === 226 /* BinaryExpression */ && isEmptyArrayLiteral2(node.parent.right); } function getReferenceCandidate(node) { switch (node.kind) { - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return getReferenceCandidate(node.expression); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: switch (node.operatorToken.kind) { case 64 /* EqualsToken */: case 76 /* BarBarEqualsToken */: @@ -68879,10 +69394,10 @@ function createTypeChecker(host) { } function getReferenceRoot(node) { const { parent: parent2 } = node; - return parent2.kind === 216 /* ParenthesizedExpression */ || parent2.kind === 225 /* BinaryExpression */ && parent2.operatorToken.kind === 64 /* EqualsToken */ && parent2.left === node || parent2.kind === 225 /* BinaryExpression */ && parent2.operatorToken.kind === 28 /* CommaToken */ && parent2.right === node ? getReferenceRoot(parent2) : node; + return parent2.kind === 217 /* ParenthesizedExpression */ || parent2.kind === 226 /* BinaryExpression */ && parent2.operatorToken.kind === 64 /* EqualsToken */ && parent2.left === node || parent2.kind === 226 /* BinaryExpression */ && parent2.operatorToken.kind === 28 /* CommaToken */ && parent2.right === node ? getReferenceRoot(parent2) : node; } function getTypeOfSwitchClause(clause) { - if (clause.kind === 295 /* CaseClause */) { + if (clause.kind === 296 /* CaseClause */) { return getRegularTypeOfLiteralType(getTypeOfExpression(clause.expression)); } return neverType; @@ -68898,12 +69413,12 @@ function createTypeChecker(host) { return links.switchTypes; } function getSwitchClauseTypeOfWitnesses(switchStatement) { - if (some(switchStatement.caseBlock.clauses, (clause) => clause.kind === 295 /* CaseClause */ && !isStringLiteralLike(clause.expression))) { + if (some(switchStatement.caseBlock.clauses, (clause) => clause.kind === 296 /* CaseClause */ && !isStringLiteralLike(clause.expression))) { return void 0; } const witnesses = []; for (const clause of switchStatement.caseBlock.clauses) { - const text = clause.kind === 295 /* CaseClause */ ? clause.expression.text : void 0; + const text = clause.kind === 296 /* CaseClause */ ? clause.expression.text : void 0; witnesses.push(text && !contains(witnesses, text) ? text : void 0); } return witnesses; @@ -69061,8 +69576,8 @@ function createTypeChecker(host) { function isEvolvingArrayOperationTarget(node) { const root = getReferenceRoot(node); const parent2 = root.parent; - const isLengthPushOrUnshift = isPropertyAccessExpression(parent2) && (parent2.name.escapedText === "length" || parent2.parent.kind === 212 /* CallExpression */ && isIdentifier(parent2.name) && isPushOrUnshiftIdentifier(parent2.name)); - const isElementAssignment = parent2.kind === 211 /* ElementAccessExpression */ && parent2.expression === root && parent2.parent.kind === 225 /* BinaryExpression */ && parent2.parent.operatorToken.kind === 64 /* EqualsToken */ && parent2.parent.left === parent2 && !isAssignmentTarget(parent2.parent) && isTypeAssignableToKind(getTypeOfExpression(parent2.argumentExpression), 296 /* NumberLike */); + const isLengthPushOrUnshift = isPropertyAccessExpression(parent2) && (parent2.name.escapedText === "length" || parent2.parent.kind === 213 /* CallExpression */ && isIdentifier(parent2.name) && isPushOrUnshiftIdentifier(parent2.name)); + const isElementAssignment = parent2.kind === 212 /* ElementAccessExpression */ && parent2.expression === root && parent2.parent.kind === 226 /* BinaryExpression */ && parent2.parent.operatorToken.kind === 64 /* EqualsToken */ && parent2.parent.left === parent2 && !isAssignmentTarget(parent2.parent) && isTypeAssignableToKind(getTypeOfExpression(parent2.argumentExpression), 296 /* NumberLike */); return isLengthPushOrUnshift || isElementAssignment; } function isDeclarationWithExplicitTypeAnnotation(node) { @@ -69085,7 +69600,7 @@ function createTypeChecker(host) { if (isDeclarationWithExplicitTypeAnnotation(declaration)) { return getTypeOfSymbol(symbol); } - if (isVariableDeclaration(declaration) && declaration.parent.parent.kind === 249 /* ForOfStatement */) { + if (isVariableDeclaration(declaration) && declaration.parent.parent.kind === 250 /* ForOfStatement */) { const statement = declaration.parent.parent; const expressionType = getTypeOfDottedName( statement.expression, @@ -69110,7 +69625,7 @@ function createTypeChecker(host) { } } function getTypeOfDottedName(node, diagnostic) { - if (!(node.flags & 33554432 /* InWithStatement */)) { + if (!(node.flags & 67108864 /* InWithStatement */)) { switch (node.kind) { case 80 /* Identifier */: const symbol = getExportSymbolOfValueSymbolIfExported(getResolvedSymbol(node)); @@ -69119,7 +69634,7 @@ function createTypeChecker(host) { return getExplicitThisType(node); case 108 /* SuperKeyword */: return checkSuperExpression(node); - case 210 /* PropertyAccessExpression */: { + case 211 /* PropertyAccessExpression */: { const type = getTypeOfDottedName(node.expression, diagnostic); if (type) { const name = node.name; @@ -69136,7 +69651,7 @@ function createTypeChecker(host) { } return void 0; } - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return getTypeOfDottedName(node.expression, diagnostic); } } @@ -69146,7 +69661,7 @@ function createTypeChecker(host) { let signature = links.effectsSignature; if (signature === void 0) { let funcType; - if (node.parent.kind === 243 /* ExpressionStatement */) { + if (node.parent.kind === 244 /* ExpressionStatement */) { funcType = getTypeOfDottedName( node.expression, /*diagnostic*/ @@ -69200,7 +69715,7 @@ function createTypeChecker(host) { /*excludeJSDocTypeAssertions*/ true ); - return node.kind === 97 /* FalseKeyword */ || node.kind === 225 /* BinaryExpression */ && (node.operatorToken.kind === 56 /* AmpersandAmpersandToken */ && (isFalseExpression(node.left) || isFalseExpression(node.right)) || node.operatorToken.kind === 57 /* BarBarToken */ && isFalseExpression(node.left) && isFalseExpression(node.right)); + return node.kind === 97 /* FalseKeyword */ || node.kind === 226 /* BinaryExpression */ && (node.operatorToken.kind === 56 /* AmpersandAmpersandToken */ && (isFalseExpression(node.left) || isFalseExpression(node.right)) || node.operatorToken.kind === 57 /* BarBarToken */ && isFalseExpression(node.left) && isFalseExpression(node.right)); } function isReachableFlowNodeWorker(flow, noCacheCheck) { while (true) { @@ -69319,14 +69834,16 @@ function createTypeChecker(host) { } function isConstantReference(node) { switch (node.kind) { + case 110 /* ThisKeyword */: + return true; case 80 /* Identifier */: if (!isThisInTypeQuery(node)) { const symbol = getResolvedSymbol(node); - return isConstVariable(symbol) || isParameterOrCatchClauseVariable(symbol) && !isSymbolAssigned(symbol); + return isConstantVariable(symbol) || isParameterOrCatchClauseVariable(symbol) && !isSymbolAssigned(symbol); } break; - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return isConstantReference(node.expression) && isReadonlySymbol(getNodeLinks(node).resolvedSymbol || unknownSymbol); } return false; @@ -69346,7 +69863,7 @@ function createTypeChecker(host) { const evolvedType = getTypeFromFlowType(getTypeAtFlowNode(flowNode)); sharedFlowCount = sharedFlowStart; const resultType = getObjectFlags(evolvedType) & 256 /* EvolvingArray */ && isEvolvingArrayOperationTarget(reference) ? autoArrayType : finalizeEvolvingArrayType(evolvedType); - if (resultType === unreachableNeverType || reference.parent && reference.parent.kind === 234 /* NonNullExpression */ && !(resultType.flags & 131072 /* Never */) && getTypeWithFacts(resultType, 2097152 /* NEUndefinedOrNull */).flags & 131072 /* Never */) { + if (resultType === unreachableNeverType || reference.parent && reference.parent.kind === 235 /* NonNullExpression */ && !(resultType.flags & 131072 /* Never */) && getTypeWithFacts(resultType, 2097152 /* NEUndefinedOrNull */).flags & 131072 /* Never */) { return declaredType; } return resultType === nonNullUnknownType ? unknownType : resultType; @@ -69415,7 +69932,7 @@ function createTypeChecker(host) { target.antecedents = saveAntecedents; } else if (flags & 2 /* Start */) { const container = flow.node; - if (container && container !== flowContainer && reference.kind !== 210 /* PropertyAccessExpression */ && reference.kind !== 211 /* ElementAccessExpression */ && reference.kind !== 110 /* ThisKeyword */) { + if (container && container !== flowContainer && reference.kind !== 211 /* PropertyAccessExpression */ && reference.kind !== 212 /* ElementAccessExpression */ && !(reference.kind === 110 /* ThisKeyword */ && container.kind !== 219 /* ArrowFunction */)) { flow = container.flowNode; continue; } @@ -69434,7 +69951,7 @@ function createTypeChecker(host) { } function getInitialOrAssignedType(flow) { const node = flow.node; - return getNarrowableTypeForReference(node.kind === 259 /* VariableDeclaration */ || node.kind === 207 /* BindingElement */ ? getInitialType(node) : getAssignedType(node), reference); + return getNarrowableTypeForReference(node.kind === 260 /* VariableDeclaration */ || node.kind === 208 /* BindingElement */ ? getInitialType(node) : getAssignedType(node), reference); } function getTypeAtFlowAssignment(flow) { const node = flow.node; @@ -69462,15 +69979,15 @@ function createTypeChecker(host) { if (!isReachableFlowNode(flow)) { return unreachableNeverType; } - if (isVariableDeclaration(node) && (isInJSFile(node) || isVarConst(node))) { + if (isVariableDeclaration(node) && (isInJSFile(node) || isVarConstLike(node))) { const init = getDeclaredExpandoInitializer(node); - if (init && (init.kind === 217 /* FunctionExpression */ || init.kind === 218 /* ArrowFunction */)) { + if (init && (init.kind === 218 /* FunctionExpression */ || init.kind === 219 /* ArrowFunction */)) { return getTypeAtFlowNode(flow.antecedent); } } return declaredType; } - if (isVariableDeclaration(node) && node.parent.parent.kind === 248 /* ForInStatement */ && (isMatchingReference(reference, node.parent.parent.expression) || optionalChainContainsReference(node.parent.parent.expression, reference))) { + if (isVariableDeclaration(node) && node.parent.parent.kind === 249 /* ForInStatement */ && (isMatchingReference(reference, node.parent.parent.expression) || optionalChainContainsReference(node.parent.parent.expression, reference))) { return getNonNullableTypeIfNeeded(finalizeEvolvingArrayType(getTypeFromFlowType(getTypeAtFlowNode(flow.antecedent)))); } return void 0; @@ -69484,7 +70001,7 @@ function createTypeChecker(host) { if (node.kind === 97 /* FalseKeyword */) { return unreachableNeverType; } - if (node.kind === 225 /* BinaryExpression */) { + if (node.kind === 226 /* BinaryExpression */) { if (node.operatorToken.kind === 56 /* AmpersandAmpersandToken */) { return narrowTypeByAssertion(narrowTypeByAssertion(type, node.left), node.right); } @@ -69524,13 +70041,13 @@ function createTypeChecker(host) { function getTypeAtFlowArrayMutation(flow) { if (declaredType === autoType || declaredType === autoArrayType) { const node = flow.node; - const expr = node.kind === 212 /* CallExpression */ ? node.expression.expression : node.left.expression; + const expr = node.kind === 213 /* CallExpression */ ? node.expression.expression : node.left.expression; if (isMatchingReference(reference, getReferenceCandidate(expr))) { const flowType = getTypeAtFlowNode(flow.antecedent); const type = getTypeFromFlowType(flowType); if (getObjectFlags(type) & 256 /* EvolvingArray */) { let evolvedType2 = type; - if (node.kind === 212 /* CallExpression */) { + if (node.kind === 213 /* CallExpression */) { for (const arg of node.arguments) { evolvedType2 = addEvolvingArrayElementType(evolvedType2, arg); } @@ -69567,7 +70084,7 @@ function createTypeChecker(host) { let type = getTypeFromFlowType(flowType); if (isMatchingReference(reference, expr)) { type = narrowTypeBySwitchOnDiscriminant(type, flow.switchStatement, flow.clauseStart, flow.clauseEnd); - } else if (expr.kind === 220 /* TypeOfExpression */ && isMatchingReference(reference, expr.expression)) { + } else if (expr.kind === 221 /* TypeOfExpression */ && isMatchingReference(reference, expr.expression)) { type = narrowTypeBySwitchOnTypeOf(type, flow.switchStatement, flow.clauseStart, flow.clauseEnd); } else { if (strictNullChecks) { @@ -69579,7 +70096,7 @@ function createTypeChecker(host) { flow.clauseEnd, (t) => !(t.flags & (32768 /* Undefined */ | 131072 /* Never */)) ); - } else if (expr.kind === 220 /* TypeOfExpression */ && optionalChainContainsReference(expr.expression, reference)) { + } else if (expr.kind === 221 /* TypeOfExpression */ && optionalChainContainsReference(expr.expression, reference)) { type = narrowTypeBySwitchOptionalChainContainment( type, flow.switchStatement, @@ -69724,7 +70241,7 @@ function createTypeChecker(host) { } } else if (isIdentifier(expr)) { const symbol = getResolvedSymbol(expr); - if (isConstVariable(symbol)) { + if (isConstantVariable(symbol)) { const declaration = symbol.valueDeclaration; if (isVariableDeclaration(declaration) && !declaration.type && declaration.initializer && isAccessExpression(declaration.initializer) && isMatchingReference(reference, declaration.initializer.expression)) { return declaration.initializer; @@ -69842,10 +70359,10 @@ function createTypeChecker(host) { const operator = expr.operatorToken.kind; const left = getReferenceCandidate(expr.left); const right = getReferenceCandidate(expr.right); - if (left.kind === 220 /* TypeOfExpression */ && isStringLiteralLike(right)) { + if (left.kind === 221 /* TypeOfExpression */ && isStringLiteralLike(right)) { return narrowTypeByTypeof(type, left, operator, right, assumeTrue); } - if (right.kind === 220 /* TypeOfExpression */ && isStringLiteralLike(left)) { + if (right.kind === 221 /* TypeOfExpression */ && isStringLiteralLike(left)) { return narrowTypeByTypeof(type, right, operator, left, assumeTrue); } if (isMatchingReference(reference, left)) { @@ -69883,12 +70400,15 @@ function createTypeChecker(host) { return narrowTypeByPrivateIdentifierInInExpression(type, expr, assumeTrue); } const target = getReferenceCandidate(expr.right); - const leftType = getTypeOfExpression(expr.left); - if (leftType.flags & 8576 /* StringOrNumberLiteralOrUnique */) { - if (containsMissingType(type) && isAccessExpression(reference) && isMatchingReference(reference.expression, target) && getAccessedPropertyName(reference) === getPropertyNameFromType(leftType)) { + if (containsMissingType(type) && isAccessExpression(reference) && isMatchingReference(reference.expression, target)) { + const leftType = getTypeOfExpression(expr.left); + if (isTypeUsableAsPropertyName(leftType) && getAccessedPropertyName(reference) === getPropertyNameFromType(leftType)) { return getTypeWithFacts(type, assumeTrue ? 524288 /* NEUndefined */ : 65536 /* EQUndefined */); } - if (isMatchingReference(reference, target)) { + } + if (isMatchingReference(reference, target)) { + const leftType = getTypeOfExpression(expr.left); + if (isTypeUsableAsPropertyName(leftType)) { return narrowTypeByInKeyword(type, leftType, assumeTrue); } } @@ -70104,7 +70624,7 @@ function createTypeChecker(host) { if (!witnesses) { return type; } - const defaultIndex = findIndex(switchStatement.caseBlock.clauses, (clause) => clause.kind === 296 /* DefaultClause */); + const defaultIndex = findIndex(switchStatement.caseBlock.clauses, (clause) => clause.kind === 297 /* DefaultClause */); const hasDefaultClause = clauseStart === clauseEnd || defaultIndex >= clauseStart && defaultIndex < clauseEnd; if (hasDefaultClause) { const notEqualFacts = getNotEqualFactsFromTypeofSwitch(clauseStart, clauseEnd, witnesses); @@ -70268,7 +70788,7 @@ function createTypeChecker(host) { case 80 /* Identifier */: if (!isMatchingReference(reference, expr) && inlineLevel < 5) { const symbol = getResolvedSymbol(expr); - if (isConstVariable(symbol)) { + if (isConstantVariable(symbol)) { const declaration = symbol.valueDeclaration; if (declaration && isVariableDeclaration(declaration) && !declaration.type && declaration.initializer && isConstantReference(reference)) { inlineLevel++; @@ -70280,17 +70800,17 @@ function createTypeChecker(host) { } case 110 /* ThisKeyword */: case 108 /* SuperKeyword */: - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return narrowTypeByTruthiness(type, expr, assumeTrue); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return narrowTypeByCallExpression(type, expr, assumeTrue); - case 216 /* ParenthesizedExpression */: - case 234 /* NonNullExpression */: + case 217 /* ParenthesizedExpression */: + case 235 /* NonNullExpression */: return narrowType(type, expr.expression, assumeTrue); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return narrowTypeByBinaryExpression(type, expr, assumeTrue); - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: if (expr.operator === 54 /* ExclamationToken */) { return narrowType(type, expr.operand, !assumeTrue); } @@ -70316,7 +70836,7 @@ function createTypeChecker(host) { location = location.parent; } if (isExpressionNode(location) && (!isAssignmentTarget(location) || isWriteAccess(location))) { - const type = getTypeOfExpression(location); + const type = removeOptionalTypeMarker(getTypeOfExpression(location)); if (getExportSymbolOfValueSymbolIfExported(getNodeLinks(location).resolvedSymbol) === symbol) { return type; } @@ -70328,7 +70848,7 @@ function createTypeChecker(host) { return getNonMissingTypeOfSymbol(symbol); } function getControlFlowContainer(node) { - return findAncestor(node.parent, (node2) => isFunctionLike(node2) && !getImmediatelyInvokedFunctionExpression(node2) || node2.kind === 267 /* ModuleBlock */ || node2.kind === 311 /* SourceFile */ || node2.kind === 171 /* PropertyDeclaration */); + return findAncestor(node.parent, (node2) => isFunctionLike(node2) && !getImmediatelyInvokedFunctionExpression(node2) || node2.kind === 268 /* ModuleBlock */ || node2.kind === 312 /* SourceFile */ || node2.kind === 172 /* PropertyDeclaration */); } function isSymbolAssigned(symbol) { if (!symbol.valueDeclaration) { @@ -70336,8 +70856,8 @@ function createTypeChecker(host) { } const parent2 = getRootDeclaration(symbol.valueDeclaration).parent; const links = getNodeLinks(parent2); - if (!(links.flags & 524288 /* AssignmentsMarked */)) { - links.flags |= 524288 /* AssignmentsMarked */; + if (!(links.flags & 131072 /* AssignmentsMarked */)) { + links.flags |= 131072 /* AssignmentsMarked */; if (!hasParentWithAssignmentsMarked(parent2)) { markNodeAssignments(parent2); } @@ -70345,7 +70865,7 @@ function createTypeChecker(host) { return symbol.isAssigned || false; } function hasParentWithAssignmentsMarked(node) { - return !!findAncestor(node.parent, (node2) => (isFunctionLike(node2) || isCatchClause(node2)) && !!(getNodeLinks(node2).flags & 524288 /* AssignmentsMarked */)); + return !!findAncestor(node.parent, (node2) => (isFunctionLike(node2) || isCatchClause(node2)) && !!(getNodeLinks(node2).flags & 131072 /* AssignmentsMarked */)); } function markNodeAssignments(node) { if (node.kind === 80 /* Identifier */) { @@ -70359,8 +70879,8 @@ function createTypeChecker(host) { forEachChild(node, markNodeAssignments); } } - function isConstVariable(symbol) { - return symbol.flags & 3 /* Variable */ && (getDeclarationNodeFlagsFromSymbol(symbol) & 2 /* Const */) !== 0; + function isConstantVariable(symbol) { + return symbol.flags & 3 /* Variable */ && (getDeclarationNodeFlagsFromSymbol(symbol) & 6 /* Constant */) !== 0; } function parameterInitializerContainsUndefined(declaration) { const links = getNodeLinks(declaration); @@ -70379,12 +70899,12 @@ function createTypeChecker(host) { return links.parameterInitializerContainsUndefined; } function removeOptionalityFromDeclaredType(declaredType, declaration) { - const removeUndefined = strictNullChecks && declaration.kind === 168 /* Parameter */ && declaration.initializer && getTypeFacts(declaredType) & 16777216 /* IsUndefined */ && !parameterInitializerContainsUndefined(declaration); + const removeUndefined = strictNullChecks && declaration.kind === 169 /* Parameter */ && declaration.initializer && getTypeFacts(declaredType) & 16777216 /* IsUndefined */ && !parameterInitializerContainsUndefined(declaration); return removeUndefined ? getTypeWithFacts(declaredType, 524288 /* NEUndefined */) : declaredType; } function isConstraintPosition(type, node) { const parent2 = node.parent; - return parent2.kind === 210 /* PropertyAccessExpression */ || parent2.kind === 165 /* QualifiedName */ || parent2.kind === 212 /* CallExpression */ && parent2.expression === node || parent2.kind === 211 /* ElementAccessExpression */ && parent2.expression === node && !(someType(type, isGenericTypeWithoutNullableConstraint) && isGenericIndexType(getTypeOfExpression(parent2.argumentExpression))); + return parent2.kind === 211 /* PropertyAccessExpression */ || parent2.kind === 166 /* QualifiedName */ || parent2.kind === 213 /* CallExpression */ && parent2.expression === node || parent2.kind === 212 /* ElementAccessExpression */ && parent2.expression === node && !(someType(type, isGenericTypeWithoutNullableConstraint) && isGenericIndexType(getTypeOfExpression(parent2.argumentExpression))); } function isGenericTypeWithUnionConstraint(type) { return type.flags & 2097152 /* Intersection */ ? some(type.types, isGenericTypeWithUnionConstraint) : !!(type.flags & 465829888 /* Instantiable */ && getBaseConstraintOrType(type).flags & (98304 /* Nullable */ | 1048576 /* Union */)); @@ -70427,9 +70947,13 @@ function createTypeChecker(host) { symbol, /*excludes*/ 111551 /* Value */ - ) && !isInTypeQuery(location) && !getTypeOnlyAliasDeclaration(symbol, 111551 /* Value */)) { + ) && !isInTypeQuery(location)) { const target = resolveAlias(symbol); - if (getAllSymbolFlags(target) & (111551 /* Value */ | 1048576 /* ExportValue */)) { + if (getSymbolFlags( + symbol, + /*excludeTypeOnlyMeanings*/ + true + ) & (111551 /* Value */ | 1048576 /* ExportValue */)) { if (getIsolatedModules(compilerOptions) || shouldPreserveConstEnums(compilerOptions) && isExportOrExportExpression(location) || !isConstEnumOrConstEnumOnlyModule(getExportSymbolOfValueSymbolIfExported(target))) { markAliasSymbolAsReferenced(symbol); } else { @@ -70445,14 +70969,14 @@ function createTypeChecker(host) { if (declaration) { if (isBindingElement(declaration) && !declaration.initializer && !declaration.dotDotDotToken && declaration.parent.elements.length >= 2) { const parent2 = declaration.parent.parent; - if (parent2.kind === 259 /* VariableDeclaration */ && getCombinedNodeFlags(declaration) & 2 /* Const */ || parent2.kind === 168 /* Parameter */) { + if (parent2.kind === 260 /* VariableDeclaration */ && getCombinedNodeFlagsCached(declaration) & 6 /* Constant */ || parent2.kind === 169 /* Parameter */) { const links = getNodeLinks(parent2); - if (!(links.flags & 16777216 /* InCheckIdentifier */)) { - links.flags |= 16777216 /* InCheckIdentifier */; + if (!(links.flags & 4194304 /* InCheckIdentifier */)) { + links.flags |= 4194304 /* InCheckIdentifier */; const parentType = getTypeForBindingElementParent(parent2, 0 /* Normal */); const parentTypeConstraint = parentType && mapType(parentType, getBaseConstraintOrType); - links.flags &= ~16777216 /* InCheckIdentifier */; - if (parentTypeConstraint && parentTypeConstraint.flags & 1048576 /* Union */ && !(parent2.kind === 168 /* Parameter */ && isSymbolAssigned(symbol))) { + links.flags &= ~4194304 /* InCheckIdentifier */; + if (parentTypeConstraint && parentTypeConstraint.flags & 1048576 /* Union */ && !(parent2.kind === 169 /* Parameter */ && isSymbolAssigned(symbol))) { const pattern = declaration.parent; const narrowedType = getFlowTypeOfReference( pattern, @@ -70504,15 +71028,15 @@ function createTypeChecker(host) { } if (symbol === argumentsSymbol) { if (isInPropertyInitializerOrClassStaticBlock(node)) { - error(node, Diagnostics.arguments_cannot_be_referenced_in_property_initializers); + error2(node, Diagnostics.arguments_cannot_be_referenced_in_property_initializers); return errorType; } const container = getContainingFunction(node); if (languageVersion < 2 /* ES2015 */) { - if (container.kind === 218 /* ArrowFunction */) { - error(node, Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression); + if (container.kind === 219 /* ArrowFunction */) { + error2(node, Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression); } else if (hasSyntacticModifier(container, 512 /* Async */)) { - error(node, Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method); + error2(node, Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method); } } getNodeLinks(container).flags |= 512 /* CaptureArguments */; @@ -70528,17 +71052,7 @@ function createTypeChecker(host) { } let declaration = localOrExportSymbol.valueDeclaration; if (declaration && localOrExportSymbol.flags & 32 /* Class */) { - if (declaration.kind === 262 /* ClassDeclaration */ && nodeIsDecorated(legacyDecorators, declaration)) { - let container = getContainingClass(node); - while (container !== void 0) { - if (container === declaration && container.name !== node) { - getNodeLinks(declaration).flags |= 1048576 /* ClassWithConstructorReference */; - getNodeLinks(node).flags |= 2097152 /* ConstructorReferenceInClass */; - break; - } - container = getContainingClass(container); - } - } else if (declaration.kind === 230 /* ClassExpression */) { + if (isClassLike(declaration) && declaration.name !== node) { let container = getThisContainer( node, /*includeArrowFunctions*/ @@ -70546,14 +71060,7 @@ function createTypeChecker(host) { /*includeClassComputedPropertyName*/ false ); - while (container.kind !== 311 /* SourceFile */) { - if (container.parent === declaration) { - if (isPropertyDeclaration(container) && isStatic(container) || isClassStaticBlockDeclaration(container)) { - getNodeLinks(declaration).flags |= 1048576 /* ClassWithConstructorReference */; - getNodeLinks(node).flags |= 2097152 /* ConstructorReferenceInClass */; - } - break; - } + while (container.kind !== 312 /* SourceFile */ && container.parent !== declaration) { container = getThisContainer( container, /*includeArrowFunctions*/ @@ -70562,6 +71069,11 @@ function createTypeChecker(host) { false ); } + if (container.kind !== 312 /* SourceFile */) { + getNodeLinks(declaration).flags |= 262144 /* ContainsConstructorReference */; + getNodeLinks(container).flags |= 262144 /* ContainsConstructorReference */; + getNodeLinks(node).flags |= 536870912 /* ConstructorReference */; + } } } checkNestedBlockScopedBinding(node, symbol); @@ -70570,14 +71082,14 @@ function createTypeChecker(host) { if (assignmentKind) { if (!(localOrExportSymbol.flags & 3 /* Variable */) && !(isInJSFile(node) && localOrExportSymbol.flags & 512 /* ValueModule */)) { const assignmentError = localOrExportSymbol.flags & 384 /* Enum */ ? Diagnostics.Cannot_assign_to_0_because_it_is_an_enum : localOrExportSymbol.flags & 32 /* Class */ ? Diagnostics.Cannot_assign_to_0_because_it_is_a_class : localOrExportSymbol.flags & 1536 /* Module */ ? Diagnostics.Cannot_assign_to_0_because_it_is_a_namespace : localOrExportSymbol.flags & 16 /* Function */ ? Diagnostics.Cannot_assign_to_0_because_it_is_a_function : localOrExportSymbol.flags & 2097152 /* Alias */ ? Diagnostics.Cannot_assign_to_0_because_it_is_an_import : Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable; - error(node, assignmentError, symbolToString(symbol)); + error2(node, assignmentError, symbolToString(symbol)); return errorType; } if (isReadonlySymbol(localOrExportSymbol)) { if (localOrExportSymbol.flags & 3 /* Variable */) { - error(node, Diagnostics.Cannot_assign_to_0_because_it_is_a_constant, symbolToString(symbol)); + error2(node, Diagnostics.Cannot_assign_to_0_because_it_is_a_constant, symbolToString(symbol)); } else { - error(node, Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property, symbolToString(symbol)); + error2(node, Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property, symbolToString(symbol)); } return errorType; } @@ -70596,30 +71108,30 @@ function createTypeChecker(host) { return type; } type = getNarrowableTypeForReference(type, node, checkMode); - const isParameter2 = getRootDeclaration(declaration).kind === 168 /* Parameter */; + const isParameter2 = getRootDeclaration(declaration).kind === 169 /* Parameter */; const declarationContainer = getControlFlowContainer(declaration); let flowContainer = getControlFlowContainer(node); const isOuterVariable = flowContainer !== declarationContainer; const isSpreadDestructuringAssignmentTarget = node.parent && node.parent.parent && isSpreadAssignment(node.parent) && isDestructuringAssignmentTarget(node.parent.parent); const isModuleExports = symbol.flags & 134217728 /* ModuleExports */; const typeIsAutomatic = type === autoType || type === autoArrayType; - const isAutomaticTypeInNonNull = typeIsAutomatic && node.parent.kind === 234 /* NonNullExpression */; - while (flowContainer !== declarationContainer && (flowContainer.kind === 217 /* FunctionExpression */ || flowContainer.kind === 218 /* ArrowFunction */ || isObjectLiteralOrClassExpressionMethodOrAccessor(flowContainer)) && (isConstVariable(localOrExportSymbol) && type !== autoArrayType || isParameter2 && !isSymbolAssigned(localOrExportSymbol))) { + const isAutomaticTypeInNonNull = typeIsAutomatic && node.parent.kind === 235 /* NonNullExpression */; + while (flowContainer !== declarationContainer && (flowContainer.kind === 218 /* FunctionExpression */ || flowContainer.kind === 219 /* ArrowFunction */ || isObjectLiteralOrClassExpressionMethodOrAccessor(flowContainer)) && (isConstantVariable(localOrExportSymbol) && type !== autoArrayType || isParameter2 && !isSymbolAssigned(localOrExportSymbol))) { flowContainer = getControlFlowContainer(flowContainer); } - const assumeInitialized = isParameter2 || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || isSameScopedBindingElement(node, declaration) || type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (3 /* AnyOrUnknown */ | 16384 /* Void */)) !== 0 || isInTypeQuery(node) || isInAmbientOrTypeNode(node) || node.parent.kind === 280 /* ExportSpecifier */) || node.parent.kind === 234 /* NonNullExpression */ || declaration.kind === 259 /* VariableDeclaration */ && declaration.exclamationToken || declaration.flags & 16777216 /* Ambient */; + const assumeInitialized = isParameter2 || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || isSameScopedBindingElement(node, declaration) || type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (3 /* AnyOrUnknown */ | 16384 /* Void */)) !== 0 || isInTypeQuery(node) || isInAmbientOrTypeNode(node) || node.parent.kind === 281 /* ExportSpecifier */) || node.parent.kind === 235 /* NonNullExpression */ || declaration.kind === 260 /* VariableDeclaration */ && declaration.exclamationToken || declaration.flags & 33554432 /* Ambient */; const initialType = isAutomaticTypeInNonNull ? undefinedType : assumeInitialized ? isParameter2 ? removeOptionalityFromDeclaredType(type, declaration) : type : typeIsAutomatic ? undefinedType : getOptionalType(type); const flowType = isAutomaticTypeInNonNull ? getNonNullableType(getFlowTypeOfReference(node, type, initialType, flowContainer)) : getFlowTypeOfReference(node, type, initialType, flowContainer); if (!isEvolvingArrayOperationTarget(node) && (type === autoType || type === autoArrayType)) { if (flowType === autoType || flowType === autoArrayType) { if (noImplicitAny) { - error(getNameOfDeclaration(declaration), Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined, symbolToString(symbol), typeToString(flowType)); - error(node, Diagnostics.Variable_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType)); + error2(getNameOfDeclaration(declaration), Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined, symbolToString(symbol), typeToString(flowType)); + error2(node, Diagnostics.Variable_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType)); } return convertAutoToAny(flowType); } } else if (!assumeInitialized && !containsUndefinedType(type) && containsUndefinedType(flowType)) { - error(node, Diagnostics.Variable_0_is_used_before_being_assigned, symbolToString(symbol)); + error2(node, Diagnostics.Variable_0_is_used_before_being_assigned, symbolToString(symbol)); return type; } return assignmentKind ? getBaseTypeOfLiteralType(flowType) : flowType; @@ -70661,7 +71173,7 @@ function createTypeChecker(host) { )); } function checkNestedBlockScopedBinding(node, symbol) { - if (languageVersion >= 2 /* ES2015 */ || (symbol.flags & (2 /* BlockScopedVariable */ | 32 /* Class */)) === 0 || !symbol.valueDeclaration || isSourceFile(symbol.valueDeclaration) || symbol.valueDeclaration.parent.kind === 298 /* CatchClause */) { + if (languageVersion >= 2 /* ES2015 */ || (symbol.flags & (2 /* BlockScopedVariable */ | 32 /* Class */)) === 0 || !symbol.valueDeclaration || isSourceFile(symbol.valueDeclaration) || symbol.valueDeclaration.parent.kind === 299 /* CatchClause */) { return; } const container = getEnclosingBlockScopeContainer(symbol.valueDeclaration); @@ -70671,7 +71183,7 @@ function createTypeChecker(host) { if (isCaptured) { let capturesBlockScopeBindingInLoopBody = true; if (isForStatement(container)) { - const varDeclList = getAncestor(symbol.valueDeclaration, 260 /* VariableDeclarationList */); + const varDeclList = getAncestor(symbol.valueDeclaration, 261 /* VariableDeclarationList */); if (varDeclList && varDeclList.parent === container) { const part = getPartOfForStatementContainingNode(node.parent, container); if (part) { @@ -70690,9 +71202,9 @@ function createTypeChecker(host) { } } if (isForStatement(container)) { - const varDeclList = getAncestor(symbol.valueDeclaration, 260 /* VariableDeclarationList */); + const varDeclList = getAncestor(symbol.valueDeclaration, 261 /* VariableDeclarationList */); if (varDeclList && varDeclList.parent === container && isAssignedInBodyOfForStatement(node, container)) { - getNodeLinks(symbol.valueDeclaration).flags |= 262144 /* NeedsLoopOutParameter */; + getNodeLinks(symbol.valueDeclaration).flags |= 65536 /* NeedsLoopOutParameter */; } } getNodeLinks(symbol.valueDeclaration).flags |= 32768 /* BlockScopedBindingInLoop */; @@ -70707,13 +71219,13 @@ function createTypeChecker(host) { } function isAssignedInBodyOfForStatement(node, container) { let current = node; - while (current.parent.kind === 216 /* ParenthesizedExpression */) { + while (current.parent.kind === 217 /* ParenthesizedExpression */) { current = current.parent; } let isAssigned = false; if (isAssignmentTarget(current)) { isAssigned = true; - } else if (current.parent.kind === 223 /* PrefixUnaryExpression */ || current.parent.kind === 224 /* PostfixUnaryExpression */) { + } else if (current.parent.kind === 224 /* PrefixUnaryExpression */ || current.parent.kind === 225 /* PostfixUnaryExpression */) { const expr = current.parent; isAssigned = expr.operator === 46 /* PlusPlusToken */ || expr.operator === 47 /* MinusMinusToken */; } @@ -70724,7 +71236,7 @@ function createTypeChecker(host) { } function captureLexicalThis(node, container) { getNodeLinks(node).flags |= 2 /* LexicalThis */; - if (container.kind === 171 /* PropertyDeclaration */ || container.kind === 175 /* Constructor */) { + if (container.kind === 172 /* PropertyDeclaration */ || container.kind === 176 /* Constructor */) { const classNode = container.parent; getNodeLinks(classNode).flags |= 4 /* CaptureThis */; } else { @@ -70749,13 +71261,13 @@ function createTypeChecker(host) { /*noCacheCheck*/ false )) { - error(node, diagnosticMessage); + error2(node, diagnosticMessage); } } } function checkThisInStaticClassFieldInitializerInDecoratedClass(thisExpression, container) { if (isPropertyDeclaration(container) && hasStaticModifier(container) && legacyDecorators && container.initializer && textRangeContainsPositionInclusive(container.initializer, thisExpression.pos) && hasDecorators(container.parent)) { - error(thisExpression, Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class); + error2(thisExpression, Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class); } } function checkThisExpression(node) { @@ -70769,11 +71281,11 @@ function createTypeChecker(host) { ); let capturedByArrowFunction = false; let thisInComputedPropertyName = false; - if (container.kind === 175 /* Constructor */) { + if (container.kind === 176 /* Constructor */) { checkThisBeforeSuper(node, container, Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class); } while (true) { - if (container.kind === 218 /* ArrowFunction */) { + if (container.kind === 219 /* ArrowFunction */) { container = getThisContainer( container, /*includeArrowFunctions*/ @@ -70782,7 +71294,7 @@ function createTypeChecker(host) { ); capturedByArrowFunction = true; } - if (container.kind === 166 /* ComputedPropertyName */) { + if (container.kind === 167 /* ComputedPropertyName */) { container = getThisContainer( container, !capturedByArrowFunction, @@ -70796,18 +71308,18 @@ function createTypeChecker(host) { } checkThisInStaticClassFieldInitializerInDecoratedClass(node, container); if (thisInComputedPropertyName) { - error(node, Diagnostics.this_cannot_be_referenced_in_a_computed_property_name); + error2(node, Diagnostics.this_cannot_be_referenced_in_a_computed_property_name); } else { switch (container.kind) { - case 266 /* ModuleDeclaration */: - error(node, Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body); + case 267 /* ModuleDeclaration */: + error2(node, Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body); break; - case 265 /* EnumDeclaration */: - error(node, Diagnostics.this_cannot_be_referenced_in_current_location); + case 266 /* EnumDeclaration */: + error2(node, Diagnostics.this_cannot_be_referenced_in_current_location); break; - case 175 /* Constructor */: + case 176 /* Constructor */: if (isInConstructorArgumentInitializer(node, container)) { - error(node, Diagnostics.this_cannot_be_referenced_in_constructor_arguments); + error2(node, Diagnostics.this_cannot_be_referenced_in_constructor_arguments); } break; } @@ -70824,9 +71336,9 @@ function createTypeChecker(host) { if (noImplicitThis) { const globalThisType2 = getTypeOfSymbol(globalThisSymbol); if (type === globalThisType2 && capturedByArrowFunction) { - error(node, Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this); + error2(node, Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this); } else if (!type) { - const diag2 = error(node, Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation); + const diag2 = error2(node, Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation); if (!isSourceFile(container)) { const outsideThis = tryGetThisTypeAt(container); if (outsideThis && outsideThis !== globalThisType2) { @@ -70899,36 +71411,33 @@ function createTypeChecker(host) { } } function getClassNameFromPrototypeMethod(container) { - if (container.kind === 217 /* FunctionExpression */ && isBinaryExpression(container.parent) && getAssignmentDeclarationKind(container.parent) === 3 /* PrototypeProperty */) { + if (container.kind === 218 /* FunctionExpression */ && isBinaryExpression(container.parent) && getAssignmentDeclarationKind(container.parent) === 3 /* PrototypeProperty */) { return container.parent.left.expression.expression; - } else if (container.kind === 173 /* MethodDeclaration */ && container.parent.kind === 209 /* ObjectLiteralExpression */ && isBinaryExpression(container.parent.parent) && getAssignmentDeclarationKind(container.parent.parent) === 6 /* Prototype */) { + } else if (container.kind === 174 /* MethodDeclaration */ && container.parent.kind === 210 /* ObjectLiteralExpression */ && isBinaryExpression(container.parent.parent) && getAssignmentDeclarationKind(container.parent.parent) === 6 /* Prototype */) { return container.parent.parent.left.expression; - } else if (container.kind === 217 /* FunctionExpression */ && container.parent.kind === 302 /* PropertyAssignment */ && container.parent.parent.kind === 209 /* ObjectLiteralExpression */ && isBinaryExpression(container.parent.parent.parent) && getAssignmentDeclarationKind(container.parent.parent.parent) === 6 /* Prototype */) { + } else if (container.kind === 218 /* FunctionExpression */ && container.parent.kind === 303 /* PropertyAssignment */ && container.parent.parent.kind === 210 /* ObjectLiteralExpression */ && isBinaryExpression(container.parent.parent.parent) && getAssignmentDeclarationKind(container.parent.parent.parent) === 6 /* Prototype */) { return container.parent.parent.parent.left.expression; - } else if (container.kind === 217 /* FunctionExpression */ && isPropertyAssignment(container.parent) && isIdentifier(container.parent.name) && (container.parent.name.escapedText === "value" || container.parent.name.escapedText === "get" || container.parent.name.escapedText === "set") && isObjectLiteralExpression(container.parent.parent) && isCallExpression(container.parent.parent.parent) && container.parent.parent.parent.arguments[2] === container.parent.parent && getAssignmentDeclarationKind(container.parent.parent.parent) === 9 /* ObjectDefinePrototypeProperty */) { + } else if (container.kind === 218 /* FunctionExpression */ && isPropertyAssignment(container.parent) && isIdentifier(container.parent.name) && (container.parent.name.escapedText === "value" || container.parent.name.escapedText === "get" || container.parent.name.escapedText === "set") && isObjectLiteralExpression(container.parent.parent) && isCallExpression(container.parent.parent.parent) && container.parent.parent.parent.arguments[2] === container.parent.parent && getAssignmentDeclarationKind(container.parent.parent.parent) === 9 /* ObjectDefinePrototypeProperty */) { return container.parent.parent.parent.arguments[0].expression; } else if (isMethodDeclaration(container) && isIdentifier(container.name) && (container.name.escapedText === "value" || container.name.escapedText === "get" || container.name.escapedText === "set") && isObjectLiteralExpression(container.parent) && isCallExpression(container.parent.parent) && container.parent.parent.arguments[2] === container.parent && getAssignmentDeclarationKind(container.parent.parent) === 9 /* ObjectDefinePrototypeProperty */) { return container.parent.parent.arguments[0].expression; } } function getTypeForThisExpressionFromJSDoc(node) { - const jsdocType = getJSDocType(node); - if (jsdocType && jsdocType.kind === 323 /* JSDocFunctionType */) { - const jsDocFunctionType = jsdocType; - if (jsDocFunctionType.parameters.length > 0 && jsDocFunctionType.parameters[0].name && jsDocFunctionType.parameters[0].name.escapedText === "this" /* This */) { - return getTypeFromTypeNode(jsDocFunctionType.parameters[0].type); - } - } const thisTag = getJSDocThisTag(node); if (thisTag && thisTag.typeExpression) { return getTypeFromTypeNode(thisTag.typeExpression); } + const signature = getSignatureOfTypeTag(node); + if (signature) { + return getThisTypeOfSignature(signature); + } } function isInConstructorArgumentInitializer(node, constructorDecl) { - return !!findAncestor(node, (n) => isFunctionLikeDeclaration(n) ? "quit" : n.kind === 168 /* Parameter */ && n.parent === constructorDecl); + return !!findAncestor(node, (n) => isFunctionLikeDeclaration(n) ? "quit" : n.kind === 169 /* Parameter */ && n.parent === constructorDecl); } function checkSuperExpression(node) { - const isCallExpression2 = node.parent.kind === 212 /* CallExpression */ && node.parent.expression === node; + const isCallExpression2 = node.parent.kind === 213 /* CallExpression */ && node.parent.expression === node; const immediateContainer = getSuperContainer( node, /*stopOnFunctions*/ @@ -70938,7 +71447,7 @@ function createTypeChecker(host) { let needToCaptureLexicalThis = false; let inAsyncFunction = false; if (!isCallExpression2) { - while (container && container.kind === 218 /* ArrowFunction */) { + while (container && container.kind === 219 /* ArrowFunction */) { if (hasSyntacticModifier(container, 512 /* Async */)) inAsyncFunction = true; container = getSuperContainer( @@ -70953,19 +71462,19 @@ function createTypeChecker(host) { } let nodeCheckFlag = 0; if (!container || !isLegalUsageOfSuperExpression(container)) { - const current = findAncestor(node, (n) => n === container ? "quit" : n.kind === 166 /* ComputedPropertyName */); - if (current && current.kind === 166 /* ComputedPropertyName */) { - error(node, Diagnostics.super_cannot_be_referenced_in_a_computed_property_name); + const current = findAncestor(node, (n) => n === container ? "quit" : n.kind === 167 /* ComputedPropertyName */); + if (current && current.kind === 167 /* ComputedPropertyName */) { + error2(node, Diagnostics.super_cannot_be_referenced_in_a_computed_property_name); } else if (isCallExpression2) { - error(node, Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors); - } else if (!container || !container.parent || !(isClassLike(container.parent) || container.parent.kind === 209 /* ObjectLiteralExpression */)) { - error(node, Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions); + error2(node, Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors); + } else if (!container || !container.parent || !(isClassLike(container.parent) || container.parent.kind === 210 /* ObjectLiteralExpression */)) { + error2(node, Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions); } else { - error(node, Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class); + error2(node, Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class); } return errorType; } - if (!isCallExpression2 && immediateContainer.kind === 175 /* Constructor */) { + if (!isCallExpression2 && immediateContainer.kind === 176 /* Constructor */) { checkThisBeforeSuper(node, container, Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class); } if (isStatic(container) || isCallExpression2) { @@ -70973,7 +71482,7 @@ function createTypeChecker(host) { if (!isCallExpression2 && languageVersion >= 2 /* ES2015 */ && languageVersion <= 8 /* ES2021 */ && (isPropertyDeclaration(container) || isClassStaticBlockDeclaration(container))) { forEachEnclosingBlockScopeContainer(node.parent, (current) => { if (!isSourceFile(current) || isExternalOrCommonJsModule(current)) { - getNodeLinks(current).flags |= 8388608 /* ContainsSuperPropertyInStaticInitializer */; + getNodeLinks(current).flags |= 2097152 /* ContainsSuperPropertyInStaticInitializer */; } }); } @@ -70981,7 +71490,7 @@ function createTypeChecker(host) { nodeCheckFlag = 16 /* SuperInstance */; } getNodeLinks(node).flags |= nodeCheckFlag; - if (container.kind === 173 /* MethodDeclaration */ && inAsyncFunction) { + if (container.kind === 174 /* MethodDeclaration */ && inAsyncFunction) { if (isSuperProperty(node.parent) && isAssignmentTarget(node.parent)) { getNodeLinks(container).flags |= 256 /* MethodWithSuperPropertyAssignmentInAsync */; } else { @@ -70991,9 +71500,9 @@ function createTypeChecker(host) { if (needToCaptureLexicalThis) { captureLexicalThis(node.parent, container); } - if (container.parent.kind === 209 /* ObjectLiteralExpression */) { + if (container.parent.kind === 210 /* ObjectLiteralExpression */) { if (languageVersion < 2 /* ES2015 */) { - error(node, Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher); + error2(node, Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher); return errorType; } else { return anyType; @@ -71001,7 +71510,7 @@ function createTypeChecker(host) { } const classLikeDeclaration = container.parent; if (!getClassExtendsHeritageElement(classLikeDeclaration)) { - error(node, Diagnostics.super_can_only_be_referenced_in_a_derived_class); + error2(node, Diagnostics.super_can_only_be_referenced_in_a_derived_class); return errorType; } const classType = getDeclaredTypeOfSymbol(getSymbolOfDeclaration(classLikeDeclaration)); @@ -71009,20 +71518,20 @@ function createTypeChecker(host) { if (!baseClassType) { return errorType; } - if (container.kind === 175 /* Constructor */ && isInConstructorArgumentInitializer(node, container)) { - error(node, Diagnostics.super_cannot_be_referenced_in_constructor_arguments); + if (container.kind === 176 /* Constructor */ && isInConstructorArgumentInitializer(node, container)) { + error2(node, Diagnostics.super_cannot_be_referenced_in_constructor_arguments); return errorType; } return nodeCheckFlag === 32 /* SuperStatic */ ? getBaseConstructorTypeOfClass(classType) : getTypeWithThisArgument(baseClassType, classType.thisType); function isLegalUsageOfSuperExpression(container2) { if (isCallExpression2) { - return container2.kind === 175 /* Constructor */; + return container2.kind === 176 /* Constructor */; } else { - if (isClassLike(container2.parent) || container2.parent.kind === 209 /* ObjectLiteralExpression */) { + if (isClassLike(container2.parent) || container2.parent.kind === 210 /* ObjectLiteralExpression */) { if (isStatic(container2)) { - return container2.kind === 173 /* MethodDeclaration */ || container2.kind === 172 /* MethodSignature */ || container2.kind === 176 /* GetAccessor */ || container2.kind === 177 /* SetAccessor */ || container2.kind === 171 /* PropertyDeclaration */ || container2.kind === 174 /* ClassStaticBlockDeclaration */; + return container2.kind === 174 /* MethodDeclaration */ || container2.kind === 173 /* MethodSignature */ || container2.kind === 177 /* GetAccessor */ || container2.kind === 178 /* SetAccessor */ || container2.kind === 172 /* PropertyDeclaration */ || container2.kind === 175 /* ClassStaticBlockDeclaration */; } else { - return container2.kind === 173 /* MethodDeclaration */ || container2.kind === 172 /* MethodSignature */ || container2.kind === 176 /* GetAccessor */ || container2.kind === 177 /* SetAccessor */ || container2.kind === 171 /* PropertyDeclaration */ || container2.kind === 170 /* PropertySignature */ || container2.kind === 175 /* Constructor */; + return container2.kind === 174 /* MethodDeclaration */ || container2.kind === 173 /* MethodSignature */ || container2.kind === 177 /* GetAccessor */ || container2.kind === 178 /* SetAccessor */ || container2.kind === 172 /* PropertyDeclaration */ || container2.kind === 171 /* PropertySignature */ || container2.kind === 176 /* Constructor */; } } } @@ -71030,7 +71539,7 @@ function createTypeChecker(host) { } } function getContainingObjectLiteral(func) { - return (func.kind === 173 /* MethodDeclaration */ || func.kind === 176 /* GetAccessor */ || func.kind === 177 /* SetAccessor */) && func.parent.kind === 209 /* ObjectLiteralExpression */ ? func.parent : func.kind === 217 /* FunctionExpression */ && func.parent.kind === 302 /* PropertyAssignment */ ? func.parent.parent : void 0; + return (func.kind === 174 /* MethodDeclaration */ || func.kind === 177 /* GetAccessor */ || func.kind === 178 /* SetAccessor */) && func.parent.kind === 210 /* ObjectLiteralExpression */ ? func.parent : func.kind === 218 /* FunctionExpression */ && func.parent.kind === 303 /* PropertyAssignment */ ? func.parent.parent : void 0; } function getThisTypeArgument(type) { return getObjectFlags(type) & 4 /* Reference */ && type.target === globalThisType ? getTypeArguments(type)[0] : void 0; @@ -71040,8 +71549,27 @@ function createTypeChecker(host) { return t.flags & 2097152 /* Intersection */ ? forEach(t.types, getThisTypeArgument) : getThisTypeArgument(t); }); } + function getThisTypeOfObjectLiteralFromContextualType(containingLiteral, contextualType) { + let literal = containingLiteral; + let type = contextualType; + while (type) { + const thisType = getThisTypeFromContextualType(type); + if (thisType) { + return thisType; + } + if (literal.parent.kind !== 303 /* PropertyAssignment */) { + break; + } + literal = literal.parent.parent; + type = getApparentTypeOfContextualType( + literal, + /*contextFlags*/ + void 0 + ); + } + } function getContextualThisParameterType(func) { - if (func.kind === 218 /* ArrowFunction */) { + if (func.kind === 219 /* ArrowFunction */) { return void 0; } if (isContextSensitiveFunctionOrObjectLiteralMethod(func)) { @@ -71062,27 +71590,14 @@ function createTypeChecker(host) { /*contextFlags*/ void 0 ); - let literal = containingLiteral; - let type = contextualType; - while (type) { - const thisType = getThisTypeFromContextualType(type); - if (thisType) { - return instantiateType(thisType, getMapperFromContext(getInferenceContext(containingLiteral))); - } - if (literal.parent.kind !== 302 /* PropertyAssignment */) { - break; - } - literal = literal.parent.parent; - type = getApparentTypeOfContextualType( - literal, - /*contextFlags*/ - void 0 - ); + const thisType = getThisTypeOfObjectLiteralFromContextualType(containingLiteral, contextualType); + if (thisType) { + return instantiateType(thisType, getMapperFromContext(getInferenceContext(containingLiteral))); } return getWidenedType(contextualType ? getNonNullableType(contextualType) : checkExpressionCached(containingLiteral)); } const parent2 = walkUpParenthesizedExpressions(func.parent); - if (parent2.kind === 225 /* BinaryExpression */ && parent2.operatorToken.kind === 64 /* EqualsToken */) { + if (parent2.kind === 226 /* BinaryExpression */ && parent2.operatorToken.kind === 64 /* EqualsToken */) { const target = parent2.left; if (isAccessExpression(target)) { const { expression } = target; @@ -71137,11 +71652,11 @@ function createTypeChecker(host) { return getTypeFromTypeNode(typeNode); } switch (declaration.kind) { - case 168 /* Parameter */: + case 169 /* Parameter */: return getContextuallyTypedParameterType(declaration); - case 207 /* BindingElement */: + case 208 /* BindingElement */: return getContextualTypeForBindingElement(declaration, contextFlags); - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: if (isStatic(declaration)) { return getContextualTypeForStaticPropertyDeclaration(declaration, contextFlags); } @@ -71150,10 +71665,10 @@ function createTypeChecker(host) { function getContextualTypeForBindingElement(declaration, contextFlags) { const parent2 = declaration.parent.parent; const name = declaration.propertyName || declaration.name; - const parentType = getContextualTypeForVariableLikeDeclaration(parent2, contextFlags) || parent2.kind !== 207 /* BindingElement */ && parent2.initializer && checkDeclarationInitializer(parent2, declaration.dotDotDotToken ? 64 /* RestBindingElement */ : 0 /* Normal */); + const parentType = getContextualTypeForVariableLikeDeclaration(parent2, contextFlags) || parent2.kind !== 208 /* BindingElement */ && parent2.initializer && checkDeclarationInitializer(parent2, declaration.dotDotDotToken ? 64 /* RestBindingElement */ : 0 /* Normal */); if (!parentType || isBindingPattern(name) || isComputedNonLiteralName(name)) return void 0; - if (parent2.name.kind === 206 /* ArrayBindingPattern */) { + if (parent2.name.kind === 207 /* ArrayBindingPattern */) { const index = indexOfNode(declaration.parent.elements, declaration); if (index < 0) return void 0; @@ -71303,7 +71818,7 @@ function createTypeChecker(host) { return signature ? getOrCreateTypeFromSignature(signature) : void 0; } function getContextualTypeForSubstitutionExpression(template, substitutionExpression) { - if (template.parent.kind === 214 /* TaggedTemplateExpression */) { + if (template.parent.kind === 215 /* TaggedTemplateExpression */) { return getContextualTypeForArgument(template.parent, substitutionExpression); } return void 0; @@ -71521,7 +72036,7 @@ function createTypeChecker(host) { } function getContextualTypeForObjectLiteralMethod(node, contextFlags) { Debug.assert(isObjectLiteralMethod(node)); - if (node.flags & 33554432 /* InWithStatement */) { + if (node.flags & 67108864 /* InWithStatement */) { return void 0; } return getContextualTypeForObjectLiteralElement(node, contextFlags); @@ -71657,16 +72172,17 @@ function createTypeChecker(host) { case 9 /* NumericLiteral */: case 10 /* BigIntLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: + case 228 /* TemplateExpression */: case 112 /* TrueKeyword */: case 97 /* FalseKeyword */: case 106 /* NullKeyword */: case 80 /* Identifier */: case 157 /* UndefinedKeyword */: return true; - case 210 /* PropertyAccessExpression */: - case 216 /* ParenthesizedExpression */: + case 211 /* PropertyAccessExpression */: + case 217 /* ParenthesizedExpression */: return isPossiblyDiscriminantValue(node.expression); - case 293 /* JsxExpression */: + case 294 /* JsxExpression */: return !node.expression || isPossiblyDiscriminantValue(node.expression); } return false; @@ -71676,7 +72192,7 @@ function createTypeChecker(host) { contextualType, concatenate( map( - filter(node.properties, (p) => !!p.symbol && p.kind === 302 /* PropertyAssignment */ && isPossiblyDiscriminantValue(p.initializer) && isDiscriminantProperty(contextualType, p.symbol.escapedName)), + filter(node.properties, (p) => !!p.symbol && p.kind === 303 /* PropertyAssignment */ && isPossiblyDiscriminantValue(p.initializer) && isDiscriminantProperty(contextualType, p.symbol.escapedName)), (prop) => [() => getContextFreeTypeOfExpression(prop.initializer), prop.symbol.escapedName] ), map( @@ -71696,7 +72212,7 @@ function createTypeChecker(host) { contextualType, concatenate( map( - filter(node.properties, (p) => !!p.symbol && p.kind === 290 /* JsxAttribute */ && isDiscriminantProperty(contextualType, p.symbol.escapedName) && (!p.initializer || isPossiblyDiscriminantValue(p.initializer))), + filter(node.properties, (p) => !!p.symbol && p.kind === 291 /* JsxAttribute */ && isDiscriminantProperty(contextualType, p.symbol.escapedName) && (!p.initializer || isPossiblyDiscriminantValue(p.initializer))), (prop) => [!prop.initializer ? () => trueType : () => getContextFreeTypeOfExpression(prop.initializer), prop.symbol.escapedName] ), map( @@ -71761,7 +72277,7 @@ function createTypeChecker(host) { } function getContextualType2(node, contextFlags) { var _a; - if (node.flags & 33554432 /* InWithStatement */) { + if (node.flags & 67108864 /* InWithStatement */) { return void 0; } const index = findContextualNode( @@ -71774,47 +72290,47 @@ function createTypeChecker(host) { } const { parent: parent2 } = node; switch (parent2.kind) { - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 207 /* BindingElement */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 208 /* BindingElement */: return getContextualTypeForInitializerExpression(node, contextFlags); - case 218 /* ArrowFunction */: - case 252 /* ReturnStatement */: + case 219 /* ArrowFunction */: + case 253 /* ReturnStatement */: return getContextualTypeForReturnExpression(node, contextFlags); - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: return getContextualTypeForYieldOperand(parent2, contextFlags); - case 222 /* AwaitExpression */: + case 223 /* AwaitExpression */: return getContextualTypeForAwaitOperand(parent2, contextFlags); - case 212 /* CallExpression */: - case 213 /* NewExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: return getContextualTypeForArgument(parent2, node); - case 169 /* Decorator */: + case 170 /* Decorator */: return getContextualTypeForDecorator(parent2); - case 215 /* TypeAssertionExpression */: - case 233 /* AsExpression */: + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: return isConstTypeReference(parent2.type) ? getContextualType2(parent2, contextFlags) : getTypeFromTypeNode(parent2.type); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return getContextualTypeForBinaryOperand(node, contextFlags); - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return getContextualTypeForObjectLiteralElement(parent2, contextFlags); - case 304 /* SpreadAssignment */: + case 305 /* SpreadAssignment */: return getContextualType2(parent2.parent, contextFlags); - case 208 /* ArrayLiteralExpression */: { + case 209 /* ArrayLiteralExpression */: { const arrayLiteral = parent2; const type = getApparentTypeOfContextualType(arrayLiteral, contextFlags); const elementIndex = indexOfNode(arrayLiteral.elements, node); const spreadIndices = (_a = getNodeLinks(arrayLiteral)).spreadIndices ?? (_a.spreadIndices = getSpreadIndices(arrayLiteral.elements)); return getContextualTypeForElementExpression(type, elementIndex, arrayLiteral.elements.length, spreadIndices.first, spreadIndices.last); } - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: return getContextualTypeForConditionalOperand(node, contextFlags); - case 238 /* TemplateSpan */: - Debug.assert(parent2.parent.kind === 227 /* TemplateExpression */); + case 239 /* TemplateSpan */: + Debug.assert(parent2.parent.kind === 228 /* TemplateExpression */); return getContextualTypeForSubstitutionExpression(parent2.parent, node); - case 216 /* ParenthesizedExpression */: { + case 217 /* ParenthesizedExpression */: { if (isInJSFile(parent2)) { if (isJSDocSatisfiesExpression(parent2)) { return getTypeFromTypeNode(getJSDocSatisfiesExpressionType(parent2)); @@ -71826,19 +72342,19 @@ function createTypeChecker(host) { } return getContextualType2(parent2, contextFlags); } - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: return getContextualType2(parent2, contextFlags); - case 237 /* SatisfiesExpression */: + case 238 /* SatisfiesExpression */: return getTypeFromTypeNode(parent2.type); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return tryGetTypeFromEffectiveTypeNode(parent2); - case 293 /* JsxExpression */: + case 294 /* JsxExpression */: return getContextualTypeForJsxExpression(parent2, contextFlags); - case 290 /* JsxAttribute */: - case 292 /* JsxSpreadAttribute */: + case 291 /* JsxAttribute */: + case 293 /* JsxSpreadAttribute */: return getContextualTypeForJsxAttribute(parent2, contextFlags); - case 285 /* JsxOpeningElement */: - case 284 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: return getContextualJsxElementAttributesType(parent2, contextFlags); } return void 0; @@ -71965,7 +72481,7 @@ function createTypeChecker(host) { let attributesType = forcedLookupLocation === void 0 ? getTypeOfFirstParameterOfSignatureWithFallback(sig, unknownType) : forcedLookupLocation === "" ? getReturnTypeOfSignature(sig) : getJsxPropsTypeForSignatureFromMember(sig, forcedLookupLocation); if (!attributesType) { if (!!forcedLookupLocation && !!length(context.attributes.properties)) { - error(context, Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property, unescapeLeadingUnderscores(forcedLookupLocation)); + error2(context, Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property, unescapeLeadingUnderscores(forcedLookupLocation)); } return unknownType; } @@ -72067,7 +72583,7 @@ function createTypeChecker(host) { /*resolvedTypePredicate*/ void 0, minArgCount, - (left.flags | right.flags) & 39 /* PropagatingFlags */ + (left.flags | right.flags) & 167 /* PropagatingFlags */ ); result.compositeKind = 2097152 /* Intersection */; result.compositeSignatures = concatenate(left.compositeKind === 2097152 /* Intersection */ && left.compositeSignatures || [left], [right]); @@ -72098,7 +72614,7 @@ function createTypeChecker(host) { return isFunctionExpressionOrArrowFunction(node) || isObjectLiteralMethod(node) ? getContextualSignature(node) : void 0; } function getContextualSignature(node) { - Debug.assert(node.kind !== 173 /* MethodDeclaration */ || isObjectLiteralMethod(node)); + Debug.assert(node.kind !== 174 /* MethodDeclaration */ || isObjectLiteralMethod(node)); const typeTagSignature = getSignatureOfTypeTag(node); if (typeTagSignature) { return typeTagSignature; @@ -72149,7 +72665,11 @@ function createTypeChecker(host) { return node.isSpread ? getIndexedAccessType(node.type, numberType) : node.type; } function hasDefaultValue(node) { - return node.kind === 207 /* BindingElement */ && !!node.initializer || node.kind === 225 /* BinaryExpression */ && node.operatorToken.kind === 64 /* EqualsToken */; + return node.kind === 208 /* BindingElement */ && !!node.initializer || node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 64 /* EqualsToken */; + } + function isSpreadIntoCallOrNew(node) { + const parent2 = walkUpParenthesizedExpressions(node.parent); + return isSpreadElement(parent2) && isCallOrNewExpression(parent2.parent); } function checkArrayLiteral(node, checkMode, forceTuple) { const elements = node.elements; @@ -72158,18 +72678,17 @@ function createTypeChecker(host) { const elementFlags = []; pushCachedContextualType(node); const inDestructuringPattern = isAssignmentTarget(node); - const isSpreadIntoCallOrNew = isSpreadElement(node.parent) && isCallOrNewExpression(node.parent.parent); - const inConstContext = isSpreadIntoCallOrNew || isConstContext(node); + const inConstContext = isConstContext(node); const contextualType = getApparentTypeOfContextualType( node, /*contextFlags*/ void 0 ); - const inTupleContext = isSpreadIntoCallOrNew || !!contextualType && someType(contextualType, isTupleLikeType); + const inTupleContext = isSpreadIntoCallOrNew(node) || !!contextualType && someType(contextualType, isTupleLikeType); let hasOmittedExpression = false; for (let i = 0; i < elementCount; i++) { const e = elements[i]; - if (e.kind === 229 /* SpreadElement */) { + if (e.kind === 230 /* SpreadElement */) { if (languageVersion < 2 /* ES2015 */) { checkExternalEmitHelpers(e, compilerOptions.downlevelIteration ? 1536 /* SpreadIncludes */ : 1024 /* SpreadArray */); } @@ -72193,7 +72712,7 @@ function createTypeChecker(host) { elementTypes.push(checkIteratedTypeOrElementType(33 /* Spread */, spreadType, undefinedType, e.expression)); elementFlags.push(4 /* Rest */); } - } else if (exactOptionalPropertyTypes && e.kind === 231 /* OmittedExpression */) { + } else if (exactOptionalPropertyTypes && e.kind === 232 /* OmittedExpression */) { hasOmittedExpression = true; elementTypes.push(undefinedOrMissingType); elementFlags.push(2 /* Optional */); @@ -72240,7 +72759,7 @@ function createTypeChecker(host) { } function isNumericName(name) { switch (name.kind) { - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: return isNumericComputedName(name); case 80 /* Identifier */: return isNumericLiteralName(name.escapedText); @@ -72257,7 +72776,7 @@ function createTypeChecker(host) { function checkComputedPropertyName(node) { const links = getNodeLinks(node.expression); if (!links.resolvedType) { - if ((isTypeLiteralNode(node.parent.parent) || isClassLike(node.parent.parent) || isInterfaceDeclaration(node.parent.parent)) && isBinaryExpression(node.expression) && node.expression.operatorToken.kind === 103 /* InKeyword */ && node.parent.kind !== 176 /* GetAccessor */ && node.parent.kind !== 177 /* SetAccessor */) { + if ((isTypeLiteralNode(node.parent.parent) || isClassLike(node.parent.parent) || isInterfaceDeclaration(node.parent.parent)) && isBinaryExpression(node.expression) && node.expression.operatorToken.kind === 103 /* InKeyword */ && node.parent.kind !== 177 /* GetAccessor */ && node.parent.kind !== 178 /* SetAccessor */) { return links.resolvedType = errorType; } links.resolvedType = checkExpression(node.expression); @@ -72271,7 +72790,7 @@ function createTypeChecker(host) { } } if (links.resolvedType.flags & 98304 /* Nullable */ || !isTypeAssignableToKind(links.resolvedType, 402653316 /* StringLike */ | 296 /* NumberLike */ | 12288 /* ESSymbolLike */) && !isTypeAssignableTo(links.resolvedType, stringNumberSymbolType)) { - error(node, Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any); + error2(node, Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any); } } return links.resolvedType; @@ -72326,7 +72845,7 @@ function createTypeChecker(host) { /*contextFlags*/ void 0 ); - const contextualTypeHasPattern = contextualType && contextualType.pattern && (contextualType.pattern.kind === 205 /* ObjectBindingPattern */ || contextualType.pattern.kind === 209 /* ObjectLiteralExpression */); + const contextualTypeHasPattern = contextualType && contextualType.pattern && (contextualType.pattern.kind === 206 /* ObjectBindingPattern */ || contextualType.pattern.kind === 210 /* ObjectLiteralExpression */); const inConstContext = isConstContext(node); const checkFlags = inConstContext ? 8 /* Readonly */ : 0; const isInJavascript = isInJSFile(node) && !isInJsonFile(node); @@ -72345,13 +72864,13 @@ function createTypeChecker(host) { let offset = 0; for (const memberDecl of node.properties) { let member = getSymbolOfDeclaration(memberDecl); - const computedNameType = memberDecl.name && memberDecl.name.kind === 166 /* ComputedPropertyName */ ? checkComputedPropertyName(memberDecl.name) : void 0; - if (memberDecl.kind === 302 /* PropertyAssignment */ || memberDecl.kind === 303 /* ShorthandPropertyAssignment */ || isObjectLiteralMethod(memberDecl)) { - let type = memberDecl.kind === 302 /* PropertyAssignment */ ? checkPropertyAssignment(memberDecl, checkMode) : ( + const computedNameType = memberDecl.name && memberDecl.name.kind === 167 /* ComputedPropertyName */ ? checkComputedPropertyName(memberDecl.name) : void 0; + if (memberDecl.kind === 303 /* PropertyAssignment */ || memberDecl.kind === 304 /* ShorthandPropertyAssignment */ || isObjectLiteralMethod(memberDecl)) { + let type = memberDecl.kind === 303 /* PropertyAssignment */ ? checkPropertyAssignment(memberDecl, checkMode) : ( // avoid resolving the left side of the ShorthandPropertyAssignment outside of the destructuring // for error recovery purposes. For example, if a user wrote `{ a = 100 }` instead of `{ a: 100 }`. // we don't want to say "could not find 'a'". - memberDecl.kind === 303 /* ShorthandPropertyAssignment */ ? checkExpressionForMutableLocation(!inDestructuringPattern && memberDecl.objectAssignmentInitializer ? memberDecl.objectAssignmentInitializer : memberDecl.name, checkMode) : checkObjectLiteralMethod(memberDecl, checkMode) + memberDecl.kind === 304 /* ShorthandPropertyAssignment */ ? checkExpressionForMutableLocation(!inDestructuringPattern && memberDecl.objectAssignmentInitializer ? memberDecl.objectAssignmentInitializer : memberDecl.name, checkMode) : checkObjectLiteralMethod(memberDecl, checkMode) ); if (isInJavascript) { const jsDocType = getTypeForDeclarationFromJSDocComment(memberDecl); @@ -72369,7 +72888,7 @@ function createTypeChecker(host) { prop.links.nameType = nameType; } if (inDestructuringPattern) { - const isOptional = memberDecl.kind === 302 /* PropertyAssignment */ && hasDefaultValue(memberDecl.initializer) || memberDecl.kind === 303 /* ShorthandPropertyAssignment */ && memberDecl.objectAssignmentInitializer; + const isOptional = memberDecl.kind === 303 /* PropertyAssignment */ && hasDefaultValue(memberDecl.initializer) || memberDecl.kind === 304 /* ShorthandPropertyAssignment */ && memberDecl.objectAssignmentInitializer; if (isOptional) { prop.flags |= 16777216 /* Optional */; } @@ -72378,7 +72897,7 @@ function createTypeChecker(host) { if (impliedProp) { prop.flags |= impliedProp.flags & 16777216 /* Optional */; } else if (!compilerOptions.suppressExcessPropertyErrors && !getIndexInfoOfType(contextualType, stringType)) { - error( + error2( memberDecl.name, Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1, symbolToString(member), @@ -72395,13 +72914,13 @@ function createTypeChecker(host) { prop.links.target = member; member = prop; allPropertiesTable == null ? void 0 : allPropertiesTable.set(prop.escapedName, prop); - if (contextualType && checkMode & 2 /* Inferential */ && !(checkMode & 4 /* SkipContextSensitive */) && (memberDecl.kind === 302 /* PropertyAssignment */ || memberDecl.kind === 173 /* MethodDeclaration */) && isContextSensitive(memberDecl)) { + if (contextualType && checkMode & 2 /* Inferential */ && !(checkMode & 4 /* SkipContextSensitive */) && (memberDecl.kind === 303 /* PropertyAssignment */ || memberDecl.kind === 174 /* MethodDeclaration */) && isContextSensitive(memberDecl)) { const inferenceContext = getInferenceContext(node); Debug.assert(inferenceContext); - const inferenceNode = memberDecl.kind === 302 /* PropertyAssignment */ ? memberDecl.initializer : memberDecl; + const inferenceNode = memberDecl.kind === 303 /* PropertyAssignment */ ? memberDecl.initializer : memberDecl; addIntraExpressionInferenceSite(inferenceContext, inferenceNode, type); } - } else if (memberDecl.kind === 304 /* SpreadAssignment */) { + } else if (memberDecl.kind === 305 /* SpreadAssignment */) { if (languageVersion < 2 /* ES2015 */) { checkExternalEmitHelpers(memberDecl, 2 /* Assign */); } @@ -72425,12 +72944,12 @@ function createTypeChecker(host) { } spread = getSpreadType(spread, mergedType, node.symbol, objectFlags, inConstContext); } else { - error(memberDecl, Diagnostics.Spread_types_may_only_be_created_from_object_types); + error2(memberDecl, Diagnostics.Spread_types_may_only_be_created_from_object_types); spread = errorType; } continue; } else { - Debug.assert(memberDecl.kind === 176 /* GetAccessor */ || memberDecl.kind === 177 /* SetAccessor */); + Debug.assert(memberDecl.kind === 177 /* GetAccessor */ || memberDecl.kind === 178 /* SetAccessor */); checkNodeDeferred(memberDecl); } if (computedNameType && !(computedNameType.flags & 8576 /* StringOrNumberLiteralOrUnique */)) { @@ -72455,17 +72974,17 @@ function createTypeChecker(host) { if (contextualTypeHasPattern) { const rootPatternParent = findAncestor( contextualType.pattern.parent, - (n) => n.kind === 259 /* VariableDeclaration */ || n.kind === 225 /* BinaryExpression */ || n.kind === 168 /* Parameter */ + (n) => n.kind === 260 /* VariableDeclaration */ || n.kind === 226 /* BinaryExpression */ || n.kind === 169 /* Parameter */ ); const spreadOrOutsideRootObject = findAncestor( node, - (n) => n === rootPatternParent || n.kind === 304 /* SpreadAssignment */ + (n) => n === rootPatternParent || n.kind === 305 /* SpreadAssignment */ ); - if (spreadOrOutsideRootObject.kind !== 304 /* SpreadAssignment */) { + if (spreadOrOutsideRootObject.kind !== 305 /* SpreadAssignment */) { for (const prop of getPropertiesOfType(contextualType)) { if (!propertiesTable.get(prop.escapedName) && !getPropertyOfType(spread, prop.escapedName)) { if (!(prop.flags & 16777216 /* Optional */)) { - error( + error2( prop.valueDeclaration || ((_a = tryCast(prop, isTransientSymbol)) == null ? void 0 : _a.links.bindingElement), Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value ); @@ -72540,7 +73059,7 @@ function createTypeChecker(host) { checkJsxOpeningLikeElementOrOpeningFragment(node.openingFragment); const nodeSourceFile = getSourceFileOfNode(node); if (getJSXTransformEnabled(compilerOptions) && (compilerOptions.jsxFactory || nodeSourceFile.pragmas.has("jsx")) && !compilerOptions.jsxFragmentFactory && !nodeSourceFile.pragmas.has("jsxfrag")) { - error(node, compilerOptions.jsxFactory ? Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option : Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments); + error2(node, compilerOptions.jsxFactory ? Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option : Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments); } checkJsxChildren(node); return getJsxElementTypeAt(node) || anyType; @@ -72596,7 +73115,7 @@ function createTypeChecker(host) { addIntraExpressionInferenceSite(inferenceContext, inferenceNode, exprType); } } else { - Debug.assert(attributeDecl.kind === 292 /* JsxSpreadAttribute */); + Debug.assert(attributeDecl.kind === 293 /* JsxSpreadAttribute */); if (attributesTable.size > 0) { spread = getSpreadType( spread, @@ -72625,7 +73144,7 @@ function createTypeChecker(host) { checkSpreadPropOverrides(exprType, allAttributesTable, attributeDecl); } } else { - error(attributeDecl.expression, Diagnostics.Spread_types_may_only_be_created_from_object_types); + error2(attributeDecl.expression, Diagnostics.Spread_types_may_only_be_created_from_object_types); typeToIntersect = typeToIntersect ? getIntersectionType([typeToIntersect, exprType]) : exprType; } } @@ -72642,12 +73161,12 @@ function createTypeChecker(host) { ); } } - const parent2 = openingLikeElement.parent.kind === 283 /* JsxElement */ ? openingLikeElement.parent : void 0; + const parent2 = openingLikeElement.parent.kind === 284 /* JsxElement */ ? openingLikeElement.parent : void 0; if (parent2 && parent2.openingElement === openingLikeElement && parent2.children.length > 0) { const childrenTypes = checkJsxChildren(parent2, checkMode); if (!hasSpreadAnyType && jsxChildrenPropertyName && jsxChildrenPropertyName !== "") { if (explicitlySpecifyChildrenAttribute) { - error(attributes, Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten, unescapeLeadingUnderscores(jsxChildrenPropertyName)); + error2(attributes, Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten, unescapeLeadingUnderscores(jsxChildrenPropertyName)); } const contextualType2 = getApparentTypeOfContextualType( openingLikeElement.attributes, @@ -72701,7 +73220,7 @@ function createTypeChecker(host) { if (!child.containsOnlyTriviaWhiteSpaces) { childrenTypes.push(stringType); } - } else if (child.kind === 293 /* JsxExpression */ && !child.expression) { + } else if (child.kind === 294 /* JsxExpression */ && !child.expression) { continue; } else { childrenTypes.push(checkExpressionForMutableLocation(child, checkMode)); @@ -72714,7 +73233,7 @@ function createTypeChecker(host) { if (!(right.flags & 16777216 /* Optional */)) { const left = props.get(right.escapedName); if (left) { - const diagnostic = error(left.valueDeclaration, Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten, unescapeLeadingUnderscores(left.escapedName)); + const diagnostic = error2(left.valueDeclaration, Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten, unescapeLeadingUnderscores(left.escapedName)); addRelatedInfo(diagnostic, createDiagnosticForNode(spread, Diagnostics.This_spread_always_overwrites_this_property)); } } @@ -72746,11 +73265,11 @@ function createTypeChecker(host) { links.jsxFlags |= 2 /* IntrinsicIndexedElement */; return links.resolvedSymbol = intrinsicElementsType.symbol; } - error(node, Diagnostics.Property_0_does_not_exist_on_type_1, intrinsicTagNameToString(node.tagName), "JSX." + JsxNames.IntrinsicElements); + error2(node, Diagnostics.Property_0_does_not_exist_on_type_1, intrinsicTagNameToString(node.tagName), "JSX." + JsxNames.IntrinsicElements); return links.resolvedSymbol = unknownSymbol; } else { if (noImplicitAny) { - error(node, Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists, unescapeLeadingUnderscores(JsxNames.IntrinsicElements)); + error2(node, Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists, unescapeLeadingUnderscores(JsxNames.IntrinsicElements)); } return links.resolvedSymbol = unknownSymbol; } @@ -72833,7 +73352,7 @@ function createTypeChecker(host) { } else if (propertiesOfJsxElementAttribPropInterface.length === 1) { return propertiesOfJsxElementAttribPropInterface[0].escapedName; } else if (propertiesOfJsxElementAttribPropInterface.length > 1 && jsxElementAttribPropInterfaceSym.declarations) { - error(jsxElementAttribPropInterfaceSym.declarations[0], Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property, unescapeLeadingUnderscores(nameOfAttribPropContainer)); + error2(jsxElementAttribPropInterfaceSym.declarations[0], Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property, unescapeLeadingUnderscores(nameOfAttribPropContainer)); } } return void 0; @@ -72856,7 +73375,7 @@ function createTypeChecker(host) { } else if (elementType.flags & 128 /* StringLiteral */) { const intrinsicType = getIntrinsicAttributesTypeFromStringLiteralType(elementType, caller); if (!intrinsicType) { - error(caller, Diagnostics.Property_0_does_not_exist_on_type_1, elementType.value, "JSX." + JsxNames.IntrinsicElements); + error2(caller, Diagnostics.Property_0_does_not_exist_on_type_1, elementType.value, "JSX." + JsxNames.IntrinsicElements); return emptyArray; } else { const fakeSignature = createSignatureForJSXIntrinsic(caller, intrinsicType); @@ -72982,11 +73501,11 @@ function createTypeChecker(host) { } function checkJsxPreconditions(errorNode) { if ((compilerOptions.jsx || 0 /* None */) === 0 /* None */) { - error(errorNode, Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided); + error2(errorNode, Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided); } if (getJsxElementTypeAt(errorNode) === void 0) { if (noImplicitAny) { - error(errorNode, Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist); + error2(errorNode, Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist); } } } @@ -73078,7 +73597,7 @@ function createTypeChecker(host) { if (node.expression) { const type = checkExpression(node.expression, checkMode); if (node.dotDotDotToken && type !== anyType && !isArrayType(type)) { - error(node, Diagnostics.JSX_spread_child_must_be_an_array_type); + error2(node, Diagnostics.JSX_spread_child_must_be_an_array_type); } return type; } else { @@ -73086,7 +73605,7 @@ function createTypeChecker(host) { } } function getDeclarationNodeFlagsFromSymbol(s) { - return s.valueDeclaration ? getCombinedNodeFlags(s.valueDeclaration) : 0; + return s.valueDeclaration ? getCombinedNodeFlagsCached(s.valueDeclaration) : 0; } function isPrototypeProperty(symbol) { if (symbol.flags & 8192 /* Method */ || getCheckFlags(symbol) & 4 /* SyntheticMethod */) { @@ -73098,7 +73617,7 @@ function createTypeChecker(host) { } } function checkPropertyAccessibility(node, isSuper, writing, type, prop, reportError = true) { - const errorNode = !reportError ? void 0 : node.kind === 165 /* QualifiedName */ ? node.right : node.kind === 204 /* ImportType */ ? node : node.kind === 207 /* BindingElement */ && node.propertyName ? node.propertyName : node.name; + const errorNode = !reportError ? void 0 : node.kind === 166 /* QualifiedName */ ? node.right : node.kind === 205 /* ImportType */ ? node : node.kind === 208 /* BindingElement */ && node.propertyName ? node.propertyName : node.name; return checkPropertyAccessibilityAtLocation(node, isSuper, writing, type, prop, errorNode); } function checkPropertyAccessibilityAtLocation(location, isSuper, writing, containingType, prop, errorNode) { @@ -73107,14 +73626,14 @@ function createTypeChecker(host) { if (languageVersion < 2 /* ES2015 */) { if (symbolHasNonMethodDeclaration(prop)) { if (errorNode) { - error(errorNode, Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword); + error2(errorNode, Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword); } return false; } } if (flags & 256 /* Abstract */) { if (errorNode) { - error( + error2( errorNode, Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression, symbolToString(prop), @@ -73128,7 +73647,7 @@ function createTypeChecker(host) { const declaringClassDeclaration = getClassLikeDeclarationOfSymbol(getParentOfSymbol(prop)); if (declaringClassDeclaration && isNodeUsedDuringClassInitialization(location)) { if (errorNode) { - error( + error2( errorNode, Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor, symbolToString(prop), @@ -73145,7 +73664,7 @@ function createTypeChecker(host) { const declaringClassDeclaration = getClassLikeDeclarationOfSymbol(getParentOfSymbol(prop)); if (!isNodeWithinClass(location, declaringClassDeclaration)) { if (errorNode) { - error( + error2( errorNode, Diagnostics.Property_0_is_private_and_only_accessible_within_class_1, symbolToString(prop), @@ -73168,7 +73687,7 @@ function createTypeChecker(host) { enclosingClass = enclosingClass && isClassDerivedFromDeclaringClasses(enclosingClass, prop, writing); if (flags & 32 /* Static */ || !enclosingClass) { if (errorNode) { - error( + error2( errorNode, Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses, symbolToString(prop), @@ -73186,7 +73705,7 @@ function createTypeChecker(host) { } if (!containingType || !hasBaseType(containingType, enclosingClass)) { if (errorNode) { - error( + error2( errorNode, Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2, symbolToString(prop), @@ -73234,28 +73753,28 @@ function createTypeChecker(host) { function reportObjectPossiblyNullOrUndefinedError(node, facts) { const nodeText2 = isEntityNameExpression(node) ? entityNameToString(node) : void 0; if (node.kind === 106 /* NullKeyword */) { - error(node, Diagnostics.The_value_0_cannot_be_used_here, "null"); + error2(node, Diagnostics.The_value_0_cannot_be_used_here, "null"); return; } if (nodeText2 !== void 0 && nodeText2.length < 100) { if (isIdentifier(node) && nodeText2 === "undefined") { - error(node, Diagnostics.The_value_0_cannot_be_used_here, "undefined"); + error2(node, Diagnostics.The_value_0_cannot_be_used_here, "undefined"); return; } - error( + error2( node, facts & 16777216 /* IsUndefined */ ? facts & 33554432 /* IsNull */ ? Diagnostics._0_is_possibly_null_or_undefined : Diagnostics._0_is_possibly_undefined : Diagnostics._0_is_possibly_null, nodeText2 ); } else { - error( + error2( node, facts & 16777216 /* IsUndefined */ ? facts & 33554432 /* IsNull */ ? Diagnostics.Object_is_possibly_null_or_undefined : Diagnostics.Object_is_possibly_undefined : Diagnostics.Object_is_possibly_null ); } } function reportCannotInvokePossiblyNullOrUndefinedError(node, facts) { - error( + error2( node, facts & 16777216 /* IsUndefined */ ? facts & 33554432 /* IsNull */ ? Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined : Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined : Diagnostics.Cannot_invoke_an_object_which_is_possibly_null ); @@ -73265,11 +73784,11 @@ function createTypeChecker(host) { if (isEntityNameExpression(node)) { const nodeText2 = entityNameToString(node); if (nodeText2.length < 100) { - error(node, Diagnostics._0_is_of_type_unknown, nodeText2); + error2(node, Diagnostics._0_is_of_type_unknown, nodeText2); return errorType; } } - error(node, Diagnostics.Object_is_of_type_unknown); + error2(node, Diagnostics.Object_is_of_type_unknown); return errorType; } const facts = getTypeFacts(type); @@ -73289,20 +73808,20 @@ function createTypeChecker(host) { if (isEntityNameExpression(node)) { const nodeText2 = entityNameToString(node); if (isIdentifier(node) && nodeText2 === "undefined") { - error(node, Diagnostics.The_value_0_cannot_be_used_here, nodeText2); + error2(node, Diagnostics.The_value_0_cannot_be_used_here, nodeText2); return nonNullType; } if (nodeText2.length < 100) { - error(node, Diagnostics._0_is_possibly_undefined, nodeText2); + error2(node, Diagnostics._0_is_possibly_undefined, nodeText2); return nonNullType; } } - error(node, Diagnostics.Object_is_possibly_undefined); + error2(node, Diagnostics.Object_is_possibly_undefined); } return nonNullType; } function checkPropertyAccessExpression(node, checkMode, writeOnly) { - return node.flags & 32 /* OptionalChain */ ? checkPropertyAccessChain(node, checkMode) : checkPropertyAccessExpressionOrQualifiedName(node, node.expression, checkNonNullExpression(node.expression), node.name, checkMode, writeOnly); + return node.flags & 64 /* OptionalChain */ ? checkPropertyAccessChain(node, checkMode) : checkPropertyAccessExpressionOrQualifiedName(node, node.expression, checkNonNullExpression(node.expression), node.name, checkMode, writeOnly); } function checkPropertyAccessChain(node, checkMode) { const leftType = checkExpression(node.expression); @@ -73314,13 +73833,13 @@ function createTypeChecker(host) { return checkPropertyAccessExpressionOrQualifiedName(node, node.left, leftType, node.right, checkMode); } function isMethodAccessForCall(node) { - while (node.parent.kind === 216 /* ParenthesizedExpression */) { + while (node.parent.kind === 217 /* ParenthesizedExpression */) { node = node.parent; } return isCallOrNewExpression(node.parent) && node.parent.expression === node; } function lookupSymbolForPrivateIdentifierDeclaration(propName, location) { - for (let containingClass = getContainingClass(location); !!containingClass; containingClass = getContainingClass(containingClass)) { + for (let containingClass = getContainingClassExcludingClassDecorators(location); !!containingClass; containingClass = getContainingClass(containingClass)) { const { symbol } = containingClass; const name = getSymbolNameForPrivateIdentifier(symbol, propName); const prop = symbol.members && symbol.members.get(name) || symbol.exports && symbol.exports.get(name); @@ -73392,7 +73911,7 @@ function createTypeChecker(host) { const lexicalClass = getContainingClass(lexicalValueDecl); Debug.assert(!!lexicalClass); if (findAncestor(lexicalClass, (n) => typeClass === n)) { - const diagnostic = error( + const diagnostic = error2( right, Diagnostics.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling, diagName, @@ -73414,7 +73933,7 @@ function createTypeChecker(host) { return true; } } - error( + error2( right, Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier, diagName, @@ -73456,18 +73975,24 @@ function createTypeChecker(host) { if (lexicallyScopedSymbol) { return isErrorType(apparentType) ? errorType : apparentType; } - if (!getContainingClass(right)) { + if (getContainingClassExcludingClassDecorators(right) === void 0) { grammarErrorOnNode(right, Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies); return anyType; } } - prop = lexicallyScopedSymbol ? getPrivateIdentifierPropertyOfType(leftType, lexicallyScopedSymbol) : void 0; - if (!prop && checkPrivateIdentifierPropertyAccess(leftType, right, lexicallyScopedSymbol)) { - return errorType; + prop = lexicallyScopedSymbol && getPrivateIdentifierPropertyOfType(leftType, lexicallyScopedSymbol); + if (prop === void 0) { + if (checkPrivateIdentifierPropertyAccess(leftType, right, lexicallyScopedSymbol)) { + return errorType; + } + const containingClass = getContainingClassExcludingClassDecorators(right); + if (containingClass && isPlainJsFile(getSourceFileOfNode(containingClass), compilerOptions.checkJs)) { + grammarErrorOnNode(right, Diagnostics.Private_field_0_must_be_declared_in_an_enclosing_class, idText(right)); + } } else { - const isSetonlyAccessor = prop && prop.flags & 65536 /* SetAccessor */ && !(prop.flags & 32768 /* GetAccessor */); + const isSetonlyAccessor = prop.flags & 65536 /* SetAccessor */ && !(prop.flags & 32768 /* GetAccessor */); if (isSetonlyAccessor && assignmentKind !== 1 /* Definite */) { - error(node, Diagnostics.Private_accessor_was_defined_without_a_getter); + error2(node, Diagnostics.Private_accessor_was_defined_without_a_getter); } } } else { @@ -73483,10 +74008,10 @@ function createTypeChecker(host) { /*skipObjectFunctionPropertyAugment*/ false, /*includeTypeOnlyMembers*/ - node.kind === 165 /* QualifiedName */ + node.kind === 166 /* QualifiedName */ ); } - if (isIdentifier(left) && parentSymbol && (getIsolatedModules(compilerOptions) || !(prop && (isConstEnumOrConstEnumOnlyModule(prop) || prop.flags & 8 /* EnumMember */ && node.parent.kind === 305 /* EnumMember */)) || shouldPreserveConstEnums(compilerOptions) && isExportOrExportExpression(node))) { + if (isIdentifier(left) && parentSymbol && (getIsolatedModules(compilerOptions) || !(prop && (isConstEnumOrConstEnumOnlyModule(prop) || prop.flags & 8 /* EnumMember */ && node.parent.kind === 306 /* EnumMember */)) || shouldPreserveConstEnums(compilerOptions) && isExportOrExportExpression(node))) { markAliasReferenced(parentSymbol, node); } let propType; @@ -73504,9 +74029,9 @@ function createTypeChecker(host) { } if (leftType.symbol === globalThisSymbol) { if (globalThisSymbol.exports.has(right.escapedText) && globalThisSymbol.exports.get(right.escapedText).flags & 418 /* BlockScoped */) { - error(right, Diagnostics.Property_0_does_not_exist_on_type_1, unescapeLeadingUnderscores(right.escapedText), typeToString(leftType)); + error2(right, Diagnostics.Property_0_does_not_exist_on_type_1, unescapeLeadingUnderscores(right.escapedText), typeToString(leftType)); } else if (noImplicitAny) { - error(right, Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature, typeToString(leftType)); + error2(right, Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature, typeToString(leftType)); } return anyType; } @@ -73516,13 +74041,13 @@ function createTypeChecker(host) { return errorType; } if (indexInfo.isReadonly && (isAssignmentTarget(node) || isDeleteTarget(node))) { - error(node, Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(apparentType)); + error2(node, Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(apparentType)); } propType = compilerOptions.noUncheckedIndexedAccess && !isAssignmentTarget(node) ? getUnionType([indexInfo.type, missingType]) : indexInfo.type; if (compilerOptions.noPropertyAccessFromIndexSignature && isPropertyAccessExpression(node)) { - error(right, Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0, unescapeLeadingUnderscores(right.escapedText)); + error2(right, Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0, unescapeLeadingUnderscores(right.escapedText)); } - if (indexInfo.declaration && getCombinedNodeFlags(indexInfo.declaration) & 268435456 /* Deprecated */) { + if (indexInfo.declaration && isDeprecatedDeclaration2(indexInfo.declaration)) { addDeprecatedSuggestion(right, [indexInfo.declaration], right.escapedText); } } else { @@ -73535,7 +74060,7 @@ function createTypeChecker(host) { getNodeLinks(node).resolvedSymbol = prop; checkPropertyAccessibility(node, left.kind === 108 /* SuperKeyword */, isWriteAccess(node), apparentType, prop); if (isAssignmentToReadonlyEntity(node, prop, assignmentKind)) { - error(right, Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property, idText(right)); + error2(right, Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property, idText(right)); return errorType; } propType = isThisPropertyAccessInConstructor(node, prop) ? autoType : writeOnly || isWriteOnlyAccess(node) ? getWriteTypeOfSymbol(prop) : getTypeOfSymbol(prop); @@ -73570,7 +74095,7 @@ function createTypeChecker(host) { if (declaration && isPropertyWithoutInitializer(declaration)) { if (!isStatic(declaration)) { const flowContainer = getControlFlowContainer(node); - if (flowContainer.kind === 175 /* Constructor */ && flowContainer.parent === declaration.parent && !(declaration.flags & 16777216 /* Ambient */)) { + if (flowContainer.kind === 176 /* Constructor */ && flowContainer.parent === declaration.parent && !(declaration.flags & 33554432 /* Ambient */)) { assumeUninitialized = true; } } @@ -73580,7 +74105,7 @@ function createTypeChecker(host) { } const flowType = getFlowTypeOfReference(node, propType, assumeUninitialized ? getOptionalType(propType) : propType); if (assumeUninitialized && !containsUndefinedType(propType) && containsUndefinedType(flowType)) { - error(errorNode, Diagnostics.Property_0_is_used_before_being_assigned, symbolToString(prop)); + error2(errorNode, Diagnostics.Property_0_is_used_before_being_assigned, symbolToString(prop)); return propType; } return assignmentKind ? getBaseTypeOfLiteralType(flowType) : flowType; @@ -73592,10 +74117,10 @@ function createTypeChecker(host) { } let diagnosticMessage; const declarationName = idText(right); - if (isInPropertyInitializerOrClassStaticBlock(node) && !isOptionalPropertyDeclaration(valueDeclaration) && !(isAccessExpression(node) && isAccessExpression(node.expression)) && !isBlockScopedNameDeclaredBeforeUse(valueDeclaration, right) && !(isMethodDeclaration(valueDeclaration) && getCombinedModifierFlags(valueDeclaration) & 32 /* Static */) && (compilerOptions.useDefineForClassFields || !isPropertyDeclaredInAncestorClass(prop))) { - diagnosticMessage = error(right, Diagnostics.Property_0_is_used_before_its_initialization, declarationName); - } else if (valueDeclaration.kind === 262 /* ClassDeclaration */ && node.parent.kind !== 182 /* TypeReference */ && !(valueDeclaration.flags & 16777216 /* Ambient */) && !isBlockScopedNameDeclaredBeforeUse(valueDeclaration, right)) { - diagnosticMessage = error(right, Diagnostics.Class_0_used_before_its_declaration, declarationName); + if (isInPropertyInitializerOrClassStaticBlock(node) && !isOptionalPropertyDeclaration(valueDeclaration) && !(isAccessExpression(node) && isAccessExpression(node.expression)) && !isBlockScopedNameDeclaredBeforeUse(valueDeclaration, right) && !(isMethodDeclaration(valueDeclaration) && getCombinedModifierFlagsCached(valueDeclaration) & 32 /* Static */) && (useDefineForClassFields || !isPropertyDeclaredInAncestorClass(prop))) { + diagnosticMessage = error2(right, Diagnostics.Property_0_is_used_before_its_initialization, declarationName); + } else if (valueDeclaration.kind === 263 /* ClassDeclaration */ && node.parent.kind !== 183 /* TypeReference */ && !(valueDeclaration.flags & 33554432 /* Ambient */) && !isBlockScopedNameDeclaredBeforeUse(valueDeclaration, right)) { + diagnosticMessage = error2(right, Diagnostics.Class_0_used_before_its_declaration, declarationName); } if (diagnosticMessage) { addRelatedInfo( @@ -73607,25 +74132,25 @@ function createTypeChecker(host) { function isInPropertyInitializerOrClassStaticBlock(node) { return !!findAncestor(node, (node2) => { switch (node2.kind) { - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return true; - case 302 /* PropertyAssignment */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 304 /* SpreadAssignment */: - case 166 /* ComputedPropertyName */: - case 238 /* TemplateSpan */: - case 293 /* JsxExpression */: - case 290 /* JsxAttribute */: - case 291 /* JsxAttributes */: - case 292 /* JsxSpreadAttribute */: - case 285 /* JsxOpeningElement */: - case 232 /* ExpressionWithTypeArguments */: - case 297 /* HeritageClause */: + case 303 /* PropertyAssignment */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 305 /* SpreadAssignment */: + case 167 /* ComputedPropertyName */: + case 239 /* TemplateSpan */: + case 294 /* JsxExpression */: + case 291 /* JsxAttribute */: + case 292 /* JsxAttributes */: + case 293 /* JsxSpreadAttribute */: + case 286 /* JsxOpeningElement */: + case 233 /* ExpressionWithTypeArguments */: + case 298 /* HeritageClause */: return false; - case 218 /* ArrowFunction */: - case 243 /* ExpressionStatement */: + case 219 /* ArrowFunction */: + case 244 /* ExpressionStatement */: return isBlock(node2.parent) && isClassStaticBlockDeclaration(node2.parent.parent) ? true : "quit"; default: return isExpressionNode(node2) ? false : "quit"; @@ -73870,9 +74395,9 @@ function createTypeChecker(host) { } function isValidPropertyAccess(node, propertyName) { switch (node.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return isValidPropertyAccessWithType(node, node.expression.kind === 108 /* SuperKeyword */, propertyName, getWidenedType(checkExpression(node.expression))); - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: return isValidPropertyAccessWithType( node, /*isSuper*/ @@ -73880,7 +74405,7 @@ function createTypeChecker(host) { propertyName, getWidenedType(checkExpression(node.left)) ); - case 204 /* ImportType */: + case 205 /* ImportType */: return isValidPropertyAccessWithType( node, /*isSuper*/ @@ -73893,7 +74418,7 @@ function createTypeChecker(host) { function isValidPropertyAccessForCompletions(node, type, property) { return isPropertyAccessible( node, - node.kind === 210 /* PropertyAccessExpression */ && node.expression.kind === 108 /* SuperKeyword */, + node.kind === 211 /* PropertyAccessExpression */ && node.expression.kind === 108 /* SuperKeyword */, /*isWrite*/ false, type, @@ -73926,7 +74451,7 @@ function createTypeChecker(host) { } function getForInVariableSymbol(node) { const initializer = node.initializer; - if (initializer.kind === 260 /* VariableDeclarationList */) { + if (initializer.kind === 261 /* VariableDeclarationList */) { const variable = initializer.declarations[0]; if (variable && !isBindingPattern(variable.name)) { return getSymbolOfDeclaration(variable); @@ -73947,7 +74472,7 @@ function createTypeChecker(host) { let child = expr; let node = expr.parent; while (node) { - if (node.kind === 248 /* ForInStatement */ && child === node.statement && getForInVariableSymbol(node) === symbol && hasNumericPropertyNames(getTypeOfExpression(node.expression))) { + if (node.kind === 249 /* ForInStatement */ && child === node.statement && getForInVariableSymbol(node) === symbol && hasNumericPropertyNames(getTypeOfExpression(node.expression))) { return true; } child = node; @@ -73958,7 +74483,7 @@ function createTypeChecker(host) { return false; } function checkIndexedAccess(node, checkMode) { - return node.flags & 32 /* OptionalChain */ ? checkElementAccessChain(node, checkMode) : checkElementAccessExpression(node, checkNonNullExpression(node.expression), checkMode); + return node.flags & 64 /* OptionalChain */ ? checkElementAccessChain(node, checkMode) : checkElementAccessExpression(node, checkNonNullExpression(node.expression), checkMode); } function checkElementAccessChain(node, checkMode) { const exprType = checkExpression(node.expression); @@ -73973,7 +74498,7 @@ function createTypeChecker(host) { return objectType; } if (isConstEnumObjectType(objectType) && !isStringLiteralLike(indexExpression)) { - error(indexExpression, Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal); + error2(indexExpression, Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal); return errorType; } const effectiveIndexType = isForInVariableForNumericPropertyNames(indexExpression) ? numberType : indexType; @@ -73988,11 +74513,11 @@ function createTypeChecker(host) { if (callLikeExpressionMayHaveTypeArguments(node)) { forEach(node.typeArguments, checkSourceElement); } - if (node.kind === 214 /* TaggedTemplateExpression */) { + if (node.kind === 215 /* TaggedTemplateExpression */) { checkExpression(node.template); } else if (isJsxOpeningLikeElement(node)) { checkExpression(node.attributes); - } else if (node.kind !== 169 /* Decorator */) { + } else if (node.kind !== 170 /* Decorator */) { forEach(node.arguments, (argument) => { checkExpression(argument); }); @@ -74037,7 +74562,7 @@ function createTypeChecker(host) { } } function isSpreadArgument(arg) { - return !!arg && (arg.kind === 229 /* SpreadElement */ || arg.kind === 236 /* SyntheticExpression */ && arg.isSpread); + return !!arg && (arg.kind === 230 /* SpreadElement */ || arg.kind === 237 /* SyntheticExpression */ && arg.isSpread); } function getSpreadArgumentIndex(args) { return findIndex(args, isSpreadArgument); @@ -74053,9 +74578,9 @@ function createTypeChecker(host) { let callIsIncomplete = false; let effectiveParameterCount = getParameterCount(signature); let effectiveMinimumArguments = getMinArgumentCount(signature); - if (node.kind === 214 /* TaggedTemplateExpression */) { + if (node.kind === 215 /* TaggedTemplateExpression */) { argCount = args.length; - if (node.template.kind === 227 /* TemplateExpression */) { + if (node.template.kind === 228 /* TemplateExpression */) { const lastSpan = last(node.template.templateSpans); callIsIncomplete = nodeIsMissing(lastSpan.literal) || !!lastSpan.literal.isUnterminated; } else { @@ -74063,7 +74588,7 @@ function createTypeChecker(host) { Debug.assert(templateLiteral.kind === 15 /* NoSubstitutionTemplateLiteral */); callIsIncomplete = !!templateLiteral.isUnterminated; } - } else if (node.kind === 169 /* Decorator */) { + } else if (node.kind === 170 /* Decorator */) { argCount = getDecoratorArgumentCount(node, signature); } else if (isJsxOpeningLikeElement(node)) { callIsIncomplete = node.attributes.end === node.end; @@ -74074,7 +74599,7 @@ function createTypeChecker(host) { effectiveParameterCount = args.length === 0 ? effectiveParameterCount : 1; effectiveMinimumArguments = Math.min(effectiveMinimumArguments, 1); } else if (!node.arguments) { - Debug.assert(node.kind === 213 /* NewExpression */); + Debug.assert(node.kind === 214 /* NewExpression */); return getMinArgumentCount(signature) === 0; } else { argCount = signatureHelpTrailingComma ? args.length + 1 : args.length; @@ -74170,7 +74695,7 @@ function createTypeChecker(host) { if (isJsxOpeningLikeElement(node)) { return inferJsxTypeArguments(node, signature, checkMode, context); } - if (node.kind !== 169 /* Decorator */) { + if (node.kind !== 170 /* Decorator */) { const skipBindingPatterns = every(signature.typeParameters, (p) => !!getDefaultFromTypeParameter(p)); const contextualType = getContextualType2(node, skipBindingPatterns ? 8 /* SkipBindingPatterns */ : 0 /* None */); if (contextualType) { @@ -74207,7 +74732,7 @@ function createTypeChecker(host) { } for (let i = 0; i < argCount; i++) { const arg = args[i]; - if (arg.kind !== 231 /* OmittedExpression */ && !(checkMode & 32 /* IsForStringLiteralArgumentCompletions */ && hasSkipDirectInferenceFlag(arg))) { + if (arg.kind !== 232 /* OmittedExpression */) { const paramType = getTypeAtPosition(signature, i); if (couldContainTypeVariables(paramType)) { const argType = checkExpressionWithContextualType(arg, paramType, context, checkMode); @@ -74235,11 +74760,11 @@ function createTypeChecker(host) { if (index >= argCount - 1) { const arg = args[argCount - 1]; if (isSpreadArgument(arg)) { - const spreadType = arg.kind === 236 /* SyntheticExpression */ ? arg.type : checkExpressionWithContextualType(arg.expression, restType, context, checkMode); + const spreadType = arg.kind === 237 /* SyntheticExpression */ ? arg.type : checkExpressionWithContextualType(arg.expression, restType, context, checkMode); if (isArrayLikeType(spreadType)) { return getMutableArrayOrTupleType(spreadType); } - return createArrayType(checkIteratedTypeOrElementType(33 /* Spread */, spreadType, undefinedType, arg.kind === 229 /* SpreadElement */ ? arg.expression : arg), inConstContext); + return createArrayType(checkIteratedTypeOrElementType(33 /* Spread */, spreadType, undefinedType, arg.kind === 230 /* SpreadElement */ ? arg.expression : arg), inConstContext); } } const types = []; @@ -74248,12 +74773,12 @@ function createTypeChecker(host) { for (let i = index; i < argCount; i++) { const arg = args[i]; if (isSpreadArgument(arg)) { - const spreadType = arg.kind === 236 /* SyntheticExpression */ ? arg.type : checkExpression(arg.expression); + const spreadType = arg.kind === 237 /* SyntheticExpression */ ? arg.type : checkExpression(arg.expression); if (isArrayLikeType(spreadType)) { types.push(spreadType); flags.push(8 /* Variadic */); } else { - types.push(checkIteratedTypeOrElementType(33 /* Spread */, spreadType, undefinedType, arg.kind === 229 /* SpreadElement */ ? arg.expression : arg)); + types.push(checkIteratedTypeOrElementType(33 /* Spread */, spreadType, undefinedType, arg.kind === 230 /* SpreadElement */ ? arg.expression : arg)); flags.push(4 /* Rest */); } } else { @@ -74263,7 +74788,7 @@ function createTypeChecker(host) { types.push(hasPrimitiveContextualType ? getRegularTypeOfLiteralType(argType) : getWidenedLiteralType(argType)); flags.push(1 /* Required */); } - if (arg.kind === 236 /* SyntheticExpression */ && arg.tupleNameSource) { + if (arg.kind === 237 /* SyntheticExpression */ && arg.tupleNameSource) { names.push(arg.tupleNameSource); } } @@ -74323,8 +74848,9 @@ function createTypeChecker(host) { void 0, checkMode ); + const checkAttributesType = checkMode & 4 /* SkipContextSensitive */ ? getRegularTypeOfObjectLiteral(attributesType) : attributesType; return checkTagNameDoesNotExpectTooManyArguments() && checkTypeRelatedToAndOptionallyElaborate( - attributesType, + checkAttributesType, paramType, relation, reportErrors2 ? node.tagName : void 0, @@ -74440,7 +74966,7 @@ function createTypeChecker(host) { const argCount = restType ? Math.min(getParameterCount(signature) - 1, args.length) : args.length; for (let i = 0; i < argCount; i++) { const arg = args[i]; - if (arg.kind !== 231 /* OmittedExpression */) { + if (arg.kind !== 232 /* OmittedExpression */) { const paramType = getTypeAtPosition(signature, i); const argType = checkExpressionWithContextualType( arg, @@ -74498,7 +75024,7 @@ function createTypeChecker(host) { } } function getThisArgumentOfCall(node) { - const expression = node.kind === 212 /* CallExpression */ ? node.expression : node.kind === 214 /* TaggedTemplateExpression */ ? node.tag : void 0; + const expression = node.kind === 213 /* CallExpression */ ? node.expression : node.kind === 215 /* TaggedTemplateExpression */ ? node.tag : node.kind === 170 /* Decorator */ && !legacyDecorators ? node.expression : void 0; if (expression) { const callee = skipOuterExpressions(expression); if (isAccessExpression(callee)) { @@ -74513,17 +75039,17 @@ function createTypeChecker(host) { return result; } function getEffectiveCallArguments(node) { - if (node.kind === 214 /* TaggedTemplateExpression */) { + if (node.kind === 215 /* TaggedTemplateExpression */) { const template = node.template; const args2 = [createSyntheticExpression(template, getGlobalTemplateStringsArrayType())]; - if (template.kind === 227 /* TemplateExpression */) { + if (template.kind === 228 /* TemplateExpression */) { forEach(template.templateSpans, (span) => { args2.push(span.expression); }); } return args2; } - if (node.kind === 169 /* Decorator */) { + if (node.kind === 170 /* Decorator */) { return getEffectiveDecoratorArguments(node); } if (isJsxOpeningLikeElement(node)) { @@ -74535,7 +75061,7 @@ function createTypeChecker(host) { const effectiveArgs = args.slice(0, spreadIndex); for (let i = spreadIndex; i < args.length; i++) { const arg = args[i]; - const spreadType = arg.kind === 229 /* SpreadElement */ && (flowLoopCount ? checkExpression(arg.expression) : checkExpressionCached(arg.expression)); + const spreadType = arg.kind === 230 /* SpreadElement */ && (flowLoopCount ? checkExpression(arg.expression) : checkExpressionCached(arg.expression)); if (spreadType && isTupleType(spreadType)) { forEach(getElementTypes(spreadType), (t, i2) => { var _a; @@ -74574,16 +75100,16 @@ function createTypeChecker(host) { } function getLegacyDecoratorArgumentCount(node, signature) { switch (node.parent.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return 1; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return hasAccessorModifier(node.parent) ? 3 : 2; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return languageVersion === 0 /* ES3 */ || signature.parameters.length <= 2 ? 2 : 3; - case 168 /* Parameter */: + case 169 /* Parameter */: return 3; default: return Debug.fail(); @@ -74679,7 +75205,7 @@ function createTypeChecker(host) { if (isVoidPromiseError && isInJSFile(node)) { return getDiagnosticForCallNode(node, Diagnostics.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments); } - const error2 = isDecorator(node) ? hasRestParameter2 ? Diagnostics.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0 : Diagnostics.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0 : hasRestParameter2 ? Diagnostics.Expected_at_least_0_arguments_but_got_1 : isVoidPromiseError ? Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise : Diagnostics.Expected_0_arguments_but_got_1; + const error3 = isDecorator(node) ? hasRestParameter2 ? Diagnostics.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0 : Diagnostics.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0 : hasRestParameter2 ? Diagnostics.Expected_at_least_0_arguments_but_got_1 : isVoidPromiseError ? Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise : Diagnostics.Expected_0_arguments_but_got_1; if (min2 < args.length && args.length < max) { if (headMessage) { let chain = chainDiagnosticMessages( @@ -74700,14 +75226,14 @@ function createTypeChecker(host) { let chain = chainDiagnosticMessages( /*details*/ void 0, - error2, + error3, parameterRange, args.length ); chain = chainDiagnosticMessages(chain, headMessage); diagnostic = getDiagnosticForCallNode(node, chain); } else { - diagnostic = getDiagnosticForCallNode(node, error2, parameterRange, args.length); + diagnostic = getDiagnosticForCallNode(node, error3, parameterRange, args.length); } const parameter = (_a = closestSignature == null ? void 0 : closestSignature.declaration) == null ? void 0 : _a.parameters[closestSignature.thisParameter ? args.length + 1 : args.length]; if (parameter) { @@ -74728,14 +75254,14 @@ function createTypeChecker(host) { let chain = chainDiagnosticMessages( /*details*/ void 0, - error2, + error3, parameterRange, args.length ); chain = chainDiagnosticMessages(chain, headMessage); return createDiagnosticForNodeArrayFromMessageChain(getSourceFileOfNode(node), errorSpan, chain); } - return createDiagnosticForNodeArray(getSourceFileOfNode(node), errorSpan, error2, parameterRange, args.length); + return createDiagnosticForNodeArray(getSourceFileOfNode(node), errorSpan, error3, parameterRange, args.length); } } function getTypeArgumentArityError(node, signatures, typeArguments, headMessage) { @@ -74797,8 +75323,8 @@ function createTypeChecker(host) { return createDiagnosticForNodeArray(getSourceFileOfNode(node), typeArguments, Diagnostics.Expected_0_type_arguments_but_got_1, belowArgCount === -Infinity ? aboveArgCount : belowArgCount, argCount); } function resolveCall(node, signatures, candidatesOutArray, checkMode, callChainFlags, headMessage) { - const isTaggedTemplate = node.kind === 214 /* TaggedTemplateExpression */; - const isDecorator2 = node.kind === 169 /* Decorator */; + const isTaggedTemplate = node.kind === 215 /* TaggedTemplateExpression */; + const isDecorator2 = node.kind === 170 /* Decorator */; const isJsxOpeningOrSelfClosingElement = isJsxOpeningLikeElement(node); const reportErrors2 = !isInferencePartiallyBlocked && !candidatesOutArray; let typeArguments; @@ -74810,21 +75336,15 @@ function createTypeChecker(host) { } const candidates = candidatesOutArray || []; reorderCandidates(signatures, candidates, callChainFlags); - if (!candidates.length) { - if (reportErrors2) { - diagnostics.add(getDiagnosticForCallNode(node, Diagnostics.Call_target_does_not_contain_any_signatures)); - } - return resolveErrorCall(node); - } + Debug.assert(candidates.length, "Revert #54442 and add a testcase with whatever triggered this"); const args = getEffectiveCallArguments(node); const isSingleNonGenericCandidate = candidates.length === 1 && !candidates[0].typeParameters; let argCheckMode = !isDecorator2 && !isSingleNonGenericCandidate && some(args, isContextSensitive) ? 4 /* SkipContextSensitive */ : 0 /* Normal */; - argCheckMode |= checkMode & 32 /* IsForStringLiteralArgumentCompletions */; let candidatesForArgumentError; let candidateForArgumentArityError; let candidateForTypeArgumentError; let result; - const signatureHelpTrailingComma = !!(checkMode & 16 /* IsForSignatureHelp */) && node.kind === 212 /* CallExpression */ && node.arguments.hasTrailingComma; + const signatureHelpTrailingComma = !!(checkMode & 16 /* IsForSignatureHelp */) && node.kind === 213 /* CallExpression */ && node.arguments.hasTrailingComma; if (candidates.length > 1) { result = chooseOverload(candidates, subtypeRelation, isSingleNonGenericCandidate, signatureHelpTrailingComma); } @@ -75043,7 +75563,7 @@ function createTypeChecker(host) { continue; } if (argCheckMode) { - argCheckMode = checkMode & 32 /* IsForStringLiteralArgumentCompletions */; + argCheckMode = 0 /* Normal */; if (inferenceContext) { const typeArgumentTypes = inferTypeArguments(node, candidate, args, argCheckMode, inferenceContext); checkCandidate = getSignatureInstantiation(candidate, typeArgumentTypes, isInJSFile(candidate.declaration), inferenceContext.inferredTypeParameters); @@ -75092,7 +75612,7 @@ function createTypeChecker(host) { parameters.push(createCombinedSymbolFromTypes(symbols, mapDefined(candidates, (candidate) => tryGetTypeAtPosition(candidate, i)))); } const restParameterSymbols = mapDefined(candidates, (c) => signatureHasRestParameter(c) ? last(c.parameters) : void 0); - let flags = 0 /* None */; + let flags = 128 /* IsSignatureCandidateForOverloadFailure */; if (restParameterSymbols.length !== 0) { const type = createArrayType(getUnionType(mapDefined(candidates, tryGetRestTypeOfSignature), 2 /* Subtype */)); parameters.push(createCombinedSymbolForOverloadFailure(restParameterSymbols, type)); @@ -75217,13 +75737,13 @@ function createTypeChecker(host) { const numConstructSignatures = getSignaturesOfType(apparentType, 1 /* Construct */).length; if (isUntypedFunctionCall(funcType, apparentType, callSignatures.length, numConstructSignatures)) { if (!isErrorType(funcType) && node.typeArguments) { - error(node, Diagnostics.Untyped_function_calls_may_not_accept_type_arguments); + error2(node, Diagnostics.Untyped_function_calls_may_not_accept_type_arguments); } return resolveUntypedCall(node); } if (!callSignatures.length) { if (numConstructSignatures) { - error(node, Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new, typeToString(funcType)); + error2(node, Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new, typeToString(funcType)); } else { let relatedInformation; if (node.arguments.length === 1) { @@ -75246,7 +75766,7 @@ function createTypeChecker(host) { return resolvingSignature; } if (callSignatures.some((sig) => isInJSFile(sig.declaration) && !!getJSDocClassTag(sig.declaration))) { - error(node, Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new, typeToString(funcType)); + error2(node, Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new, typeToString(funcType)); return resolveErrorCall(node); } return resolveCall(node, callSignatures, candidatesOutArray, checkMode, callChainFlags); @@ -75261,7 +75781,7 @@ function createTypeChecker(host) { if (node.arguments && languageVersion < 1 /* ES5 */) { const spreadIndex = getSpreadArgumentIndex(node.arguments); if (spreadIndex >= 0) { - error(node.arguments[spreadIndex], Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher); + error2(node.arguments[spreadIndex], Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher); } } let expressionType = checkNonNullExpression(node.expression); @@ -75274,7 +75794,7 @@ function createTypeChecker(host) { } if (isTypeAny(expressionType)) { if (node.typeArguments) { - error(node, Diagnostics.Untyped_function_calls_may_not_accept_type_arguments); + error2(node, Diagnostics.Untyped_function_calls_may_not_accept_type_arguments); } return resolveUntypedCall(node); } @@ -75284,12 +75804,12 @@ function createTypeChecker(host) { return resolveErrorCall(node); } if (someSignature(constructSignatures, (signature) => !!(signature.flags & 4 /* Abstract */))) { - error(node, Diagnostics.Cannot_create_an_instance_of_an_abstract_class); + error2(node, Diagnostics.Cannot_create_an_instance_of_an_abstract_class); return resolveErrorCall(node); } const valueDecl = expressionType.symbol && getClassLikeDeclarationOfSymbol(expressionType.symbol); if (valueDecl && hasSyntacticModifier(valueDecl, 256 /* Abstract */)) { - error(node, Diagnostics.Cannot_create_an_instance_of_an_abstract_class); + error2(node, Diagnostics.Cannot_create_an_instance_of_an_abstract_class); return resolveErrorCall(node); } return resolveCall(node, constructSignatures, candidatesOutArray, checkMode, 0 /* None */); @@ -75299,10 +75819,10 @@ function createTypeChecker(host) { const signature = resolveCall(node, callSignatures, candidatesOutArray, checkMode, 0 /* None */); if (!noImplicitAny) { if (signature.declaration && !isJSConstructor(signature.declaration) && getReturnTypeOfSignature(signature) !== voidType) { - error(node, Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword); + error2(node, Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword); } if (getThisTypeOfSignature(signature) === voidType) { - error(node, Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void); + error2(node, Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void); } } return signature; @@ -75352,7 +75872,7 @@ function createTypeChecker(host) { } const declaration = signature.declaration; const modifiers = getSelectedEffectiveModifierFlags(declaration, 24 /* NonPublicAccessibilityModifier */); - if (!modifiers || declaration.kind !== 175 /* Constructor */) { + if (!modifiers || declaration.kind !== 176 /* Constructor */) { return true; } const declaringClassDeclaration = getClassLikeDeclarationOfSymbol(declaration.parent.symbol); @@ -75366,10 +75886,10 @@ function createTypeChecker(host) { } } if (modifiers & 8 /* Private */) { - error(node, Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration, typeToString(declaringClass)); + error2(node, Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration, typeToString(declaringClass)); } if (modifiers & 16 /* Protected */) { - error(node, Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration, typeToString(declaringClass)); + error2(node, Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration, typeToString(declaringClass)); } return false; } @@ -75499,16 +76019,16 @@ function createTypeChecker(host) { } function getDiagnosticHeadMessageForDecoratorResolution(node) { switch (node.parent.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression; - case 168 /* Parameter */: + case 169 /* Parameter */: return Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression; default: return Debug.fail(); @@ -75531,7 +76051,7 @@ function createTypeChecker(host) { /*includeTrivia*/ false ); - error(node, Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0, nodeStr); + error2(node, Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0, nodeStr); return resolveErrorCall(node); } const headMessage = getDiagnosticHeadMessageForDecoratorResolution(node); @@ -75621,7 +76141,7 @@ function createTypeChecker(host) { return resolveUntypedCall(node); } if (signatures.length === 0) { - error(node.tagName, Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures, getTextOfNode(node.tagName)); + error2(node.tagName, Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures, getTextOfNode(node.tagName)); return resolveErrorCall(node); } return resolveCall(node, signatures, candidatesOutArray, checkMode, 0 /* None */); @@ -75631,16 +76151,16 @@ function createTypeChecker(host) { } function resolveSignature(node, candidatesOutArray, checkMode) { switch (node.kind) { - case 212 /* CallExpression */: + case 213 /* CallExpression */: return resolveCallExpression(node, candidatesOutArray, checkMode); - case 213 /* NewExpression */: + case 214 /* NewExpression */: return resolveNewExpression(node, candidatesOutArray, checkMode); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return resolveTaggedTemplateExpression(node, candidatesOutArray, checkMode); - case 169 /* Decorator */: + case 170 /* Decorator */: return resolveDecorator(node, candidatesOutArray, checkMode); - case 285 /* JsxOpeningElement */: - case 284 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: return resolveJsxOpeningLikeElement(node, candidatesOutArray, checkMode); } Debug.assertNever(node, "Branch in 'resolveSignature' should be unreachable."); @@ -75716,7 +76236,7 @@ function createTypeChecker(host) { let name; let decl; if (isVariableDeclaration(node.parent) && node.parent.initializer === node) { - if (!isInJSFile(node) && !(isVarConst(node.parent) && isFunctionLikeDeclaration(node))) { + if (!isInJSFile(node) && !(isVarConstLike(node.parent) && isFunctionLikeDeclaration(node))) { return void 0; } name = node.parent.name; @@ -75753,7 +76273,7 @@ function createTypeChecker(host) { return false; } let parent2 = node.parent; - while (parent2 && parent2.kind === 210 /* PropertyAccessExpression */) { + while (parent2 && parent2.kind === 211 /* PropertyAccessExpression */) { parent2 = parent2.parent; } if (parent2 && isBinaryExpression(parent2) && isPrototypeAccess(parent2.left) && parent2.operatorToken.kind === 64 /* EqualsToken */) { @@ -75777,11 +76297,11 @@ function createTypeChecker(host) { if (node.expression.kind === 108 /* SuperKeyword */) { return voidType; } - if (node.kind === 213 /* NewExpression */) { + if (node.kind === 214 /* NewExpression */) { const declaration = signature.declaration; - if (declaration && declaration.kind !== 175 /* Constructor */ && declaration.kind !== 179 /* ConstructSignature */ && declaration.kind !== 184 /* ConstructorType */ && !(isJSDocSignature(declaration) && ((_b = (_a = getJSDocRoot(declaration)) == null ? void 0 : _a.parent) == null ? void 0 : _b.kind) === 175 /* Constructor */) && !isJSDocConstructSignature(declaration) && !isJSConstructor(declaration)) { + if (declaration && declaration.kind !== 176 /* Constructor */ && declaration.kind !== 180 /* ConstructSignature */ && declaration.kind !== 185 /* ConstructorType */ && !(isJSDocSignature(declaration) && ((_b = (_a = getJSDocRoot(declaration)) == null ? void 0 : _a.parent) == null ? void 0 : _b.kind) === 176 /* Constructor */) && !isJSDocConstructSignature(declaration) && !isJSConstructor(declaration)) { if (noImplicitAny) { - error(node, Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type); + error2(node, Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type); } return anyType; } @@ -75793,11 +76313,11 @@ function createTypeChecker(host) { if (returnType.flags & 12288 /* ESSymbolLike */ && isSymbolOrSymbolForCall(node)) { return getESSymbolLikeTypeForNode(walkUpParenthesizedExpressions(node.parent)); } - if (node.kind === 212 /* CallExpression */ && !node.questionDotToken && node.parent.kind === 243 /* ExpressionStatement */ && returnType.flags & 16384 /* Void */ && getTypePredicateOfSignature(signature)) { + if (node.kind === 213 /* CallExpression */ && !node.questionDotToken && node.parent.kind === 244 /* ExpressionStatement */ && returnType.flags & 16384 /* Void */ && getTypePredicateOfSignature(signature)) { if (!isDottedName(node.expression)) { - error(node.expression, Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name); + error2(node.expression, Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name); } else if (!getEffectsSignature(node)) { - const diagnostic = error(node.expression, Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation); + const diagnostic = error2(node.expression, Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation); getTypeOfDottedName(node.expression, diagnostic); } } @@ -75816,7 +76336,9 @@ function createTypeChecker(host) { return returnType; } function checkDeprecatedSignature(signature, node) { - if (signature.declaration && signature.declaration.flags & 268435456 /* Deprecated */) { + if (signature.flags & 128 /* IsSignatureCandidateForOverloadFailure */) + return; + if (signature.declaration && signature.declaration.flags & 536870912 /* Deprecated */) { const suggestionNode = getDeprecatedSuggestionNode(node); const name = tryGetPropertyAccessOrIdentifierToString(getInvokedExpression(node)); addDeprecatedSuggestionWithSignature(suggestionNode, signature.declaration, name, signatureToString(signature)); @@ -75825,20 +76347,20 @@ function createTypeChecker(host) { function getDeprecatedSuggestionNode(node) { node = skipParentheses(node); switch (node.kind) { - case 212 /* CallExpression */: - case 169 /* Decorator */: - case 213 /* NewExpression */: + case 213 /* CallExpression */: + case 170 /* Decorator */: + case 214 /* NewExpression */: return getDeprecatedSuggestionNode(node.expression); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return getDeprecatedSuggestionNode(node.tag); - case 285 /* JsxOpeningElement */: - case 284 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: return getDeprecatedSuggestionNode(node.tagName); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return node.argumentExpression; - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return node.name; - case 182 /* TypeReference */: + case 183 /* TypeReference */: const typeReference = node; return isQualifiedName(typeReference.typeName) ? typeReference.typeName.right : typeReference; default: @@ -75886,7 +76408,7 @@ function createTypeChecker(host) { checkExpressionCached(node.arguments[i]); } if (specifierType.flags & 32768 /* Undefined */ || specifierType.flags & 65536 /* Null */ || !isTypeAssignableTo(specifierType, stringType)) { - error(specifier, Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0, typeToString(specifierType)); + error2(specifier, Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0, typeToString(specifierType)); } if (optionsType) { const importCallOptionsType = getGlobalImportCallOptionsType( @@ -75998,10 +76520,10 @@ function createTypeChecker(host) { if (resolvedRequire.flags & 2097152 /* Alias */) { return false; } - const targetDeclarationKind = resolvedRequire.flags & 16 /* Function */ ? 261 /* FunctionDeclaration */ : resolvedRequire.flags & 3 /* Variable */ ? 259 /* VariableDeclaration */ : 0 /* Unknown */; + const targetDeclarationKind = resolvedRequire.flags & 16 /* Function */ ? 262 /* FunctionDeclaration */ : resolvedRequire.flags & 3 /* Variable */ ? 260 /* VariableDeclaration */ : 0 /* Unknown */; if (targetDeclarationKind !== 0 /* Unknown */) { const decl = getDeclarationOfKind(resolvedRequire, targetDeclarationKind); - return !!decl && !!(decl.flags & 16777216 /* Ambient */); + return !!decl && !!(decl.flags & 33554432 /* Ambient */); } return false; } @@ -76016,7 +76538,7 @@ function createTypeChecker(host) { return getReturnTypeOfSignature(signature); } function checkAssertion(node, checkMode) { - if (node.kind === 215 /* TypeAssertionExpression */) { + if (node.kind === 216 /* TypeAssertionExpression */) { const file = getSourceFileOfNode(node); if (file && fileExtensionIsOneOf(file.fileName, [".cts" /* Cts */, ".mts" /* Mts */])) { grammarErrorOnNode(node, Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead); @@ -76032,18 +76554,18 @@ function createTypeChecker(host) { case 10 /* BigIntLiteral */: case 112 /* TrueKeyword */: case 97 /* FalseKeyword */: - case 208 /* ArrayLiteralExpression */: - case 209 /* ObjectLiteralExpression */: - case 227 /* TemplateExpression */: + case 209 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: + case 228 /* TemplateExpression */: return true; - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return isValidConstAssertionArgument(node.expression); - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: const op = node.operator; const arg = node.operand; return op === 41 /* MinusToken */ && (arg.kind === 9 /* NumericLiteral */ || arg.kind === 10 /* BigIntLiteral */) || op === 40 /* PlusToken */ && arg.kind === 9 /* NumericLiteral */; - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: const expr = skipParentheses(node.expression); const symbol = isEntityNameExpression(expr) ? resolveEntityName( expr, @@ -76060,7 +76582,7 @@ function createTypeChecker(host) { const exprType = checkExpression(expression, checkMode); if (isConstTypeReference(type)) { if (!isValidConstAssertionArgument(expression)) { - error(expression, Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals); + error2(expression, Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals); } return getRegularTypeOfLiteralType(exprType); } @@ -76074,12 +76596,12 @@ function createTypeChecker(host) { let type; let expression; switch (node.kind) { - case 233 /* AsExpression */: - case 215 /* TypeAssertionExpression */: + case 234 /* AsExpression */: + case 216 /* TypeAssertionExpression */: type = node.type; expression = node.expression; break; - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: type = getJSDocTypeAssertionType(node); expression = node.expression; break; @@ -76113,18 +76635,18 @@ function createTypeChecker(host) { return propagateOptionalTypeMarker(getNonNullableType(nonOptionalType), node, nonOptionalType !== leftType); } function checkNonNullAssertion(node) { - return node.flags & 32 /* OptionalChain */ ? checkNonNullChain(node) : getNonNullableType(checkExpression(node.expression)); + return node.flags & 64 /* OptionalChain */ ? checkNonNullChain(node) : getNonNullableType(checkExpression(node.expression)); } function checkExpressionWithTypeArguments(node) { checkGrammarExpressionWithTypeArguments(node); forEach(node.typeArguments, checkSourceElement); - if (node.kind === 232 /* ExpressionWithTypeArguments */) { + if (node.kind === 233 /* ExpressionWithTypeArguments */) { const parent2 = walkUpParenthesizedExpressions(node.parent); - if (parent2.kind === 225 /* BinaryExpression */ && parent2.operatorToken.kind === 104 /* InstanceOfKeyword */ && isNodeDescendantOf(node, parent2.right)) { - error(node, Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression); + if (parent2.kind === 226 /* BinaryExpression */ && parent2.operatorToken.kind === 104 /* InstanceOfKeyword */ && isNodeDescendantOf(node, parent2.right)) { + error2(node, Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression); } } - const exprType = node.kind === 232 /* ExpressionWithTypeArguments */ ? checkExpression(node.expression) : isThisIdentifier(node.exprName) ? checkThisExpression(node.exprName) : checkExpression(node.exprName); + const exprType = node.kind === 233 /* ExpressionWithTypeArguments */ ? checkExpression(node.expression) : isThisIdentifier(node.exprName) ? checkThisExpression(node.exprName) : checkExpression(node.exprName); return getInstantiationExpressionType(exprType, node); } function getInstantiationExpressionType(exprType, node) { @@ -76208,7 +76730,7 @@ function createTypeChecker(host) { if (isErrorType(targetType)) { return targetType; } - const errorNode = findAncestor(target.parent, (n) => n.kind === 237 /* SatisfiesExpression */ || n.kind === 356 /* JSDocSatisfiesTag */); + const errorNode = findAncestor(target.parent, (n) => n.kind === 238 /* SatisfiesExpression */ || n.kind === 357 /* JSDocSatisfiesTag */); checkTypeAssignableToAndOptionallyElaborate(exprType, targetType, errorNode, expression, Diagnostics.Type_0_does_not_satisfy_the_expected_type_1); return exprType; } @@ -76236,9 +76758,9 @@ function createTypeChecker(host) { function checkNewTargetMetaProperty(node) { const container = getNewTargetContainer(node); if (!container) { - error(node, Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor, "new.target"); + error2(node, Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor, "new.target"); return errorType; - } else if (container.kind === 175 /* Constructor */) { + } else if (container.kind === 176 /* Constructor */) { const symbol = getSymbolOfDeclaration(container.parent); return getTypeOfSymbol(symbol); } else { @@ -76249,13 +76771,13 @@ function createTypeChecker(host) { function checkImportMetaProperty(node) { if (moduleKind === 100 /* Node16 */ || moduleKind === 199 /* NodeNext */) { if (getSourceFileOfNode(node).impliedNodeFormat !== 99 /* ESNext */) { - error(node, Diagnostics.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output); + error2(node, Diagnostics.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output); } } else if (moduleKind < 6 /* ES2020 */ && moduleKind !== 4 /* System */) { - error(node, Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext); + error2(node, Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext); } const file = getSourceFileOfNode(node); - Debug.assert(!!(file.flags & 4194304 /* PossiblyContainsImportMeta */), "Containing file is missing import meta node flag."); + Debug.assert(!!(file.flags & 8388608 /* PossiblyContainsImportMeta */), "Containing file is missing import meta node flag."); return node.name.escapedText === "meta" ? getGlobalImportMetaType() : errorType; } function getTypeOfParameter(symbol) { @@ -76268,7 +76790,10 @@ function createTypeChecker(host) { } return type; } - function getTupleElementLabel(d) { + function getTupleElementLabel(d, index, restParameterName = "arg") { + if (!d) { + return `${restParameterName}_${index}`; + } Debug.assert(isIdentifier(d.name)); return d.name.escapedText; } @@ -76282,22 +76807,28 @@ function createTypeChecker(host) { if (isTupleType(restType)) { const associatedNames = restType.target.labeledElementDeclarations; const index = pos - paramCount; - return associatedNames && getTupleElementLabel(associatedNames[index]) || restParameter.escapedName + "_" + index; + return getTupleElementLabel(associatedNames == null ? void 0 : associatedNames[index], index, restParameter.escapedName); } return restParameter.escapedName; } - function getParameterIdentifierNameAtPosition(signature, pos) { + function getParameterIdentifierInfoAtPosition(signature, pos) { var _a; - if (((_a = signature.declaration) == null ? void 0 : _a.kind) === 323 /* JSDocFunctionType */) { + if (((_a = signature.declaration) == null ? void 0 : _a.kind) === 324 /* JSDocFunctionType */) { return void 0; } const paramCount = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0); if (pos < paramCount) { const param = signature.parameters[pos]; - return isParameterDeclarationWithIdentifierName(param) ? [param.escapedName, false] : void 0; + const paramIdent = getParameterDeclarationIdentifier(param); + return paramIdent ? { + parameter: paramIdent, + parameterName: param.escapedName, + isRestParameter: false + } : void 0; } const restParameter = signature.parameters[paramCount] || unknownSymbol; - if (!isParameterDeclarationWithIdentifierName(restParameter)) { + const restIdent = getParameterDeclarationIdentifier(restParameter); + if (!restIdent) { return void 0; } const restType = getTypeOfSymbol(restParameter); @@ -76306,21 +76837,22 @@ function createTypeChecker(host) { const index = pos - paramCount; const associatedName = associatedNames == null ? void 0 : associatedNames[index]; const isRestTupleElement = !!(associatedName == null ? void 0 : associatedName.dotDotDotToken); - return associatedName ? [ - getTupleElementLabel(associatedName), - isRestTupleElement - ] : void 0; + if (associatedName) { + Debug.assert(isIdentifier(associatedName.name)); + return { parameter: associatedName.name, parameterName: associatedName.name.escapedText, isRestParameter: isRestTupleElement }; + } + return void 0; } if (pos === paramCount) { - return [restParameter.escapedName, true]; + return { parameter: restIdent, parameterName: restParameter.escapedName, isRestParameter: true }; } return void 0; } - function isParameterDeclarationWithIdentifierName(symbol) { - return symbol.valueDeclaration && isParameter(symbol.valueDeclaration) && isIdentifier(symbol.valueDeclaration.name); + function getParameterDeclarationIdentifier(symbol) { + return symbol.valueDeclaration && isParameter(symbol.valueDeclaration) && isIdentifier(symbol.valueDeclaration.name) && symbol.valueDeclaration.name; } function isValidDeclarationForTupleLabel(d) { - return d.kind === 201 /* NamedTupleMember */ || isParameter(d) && d.name && isIdentifier(d.name); + return d.kind === 202 /* NamedTupleMember */ || isParameter(d) && d.name && isIdentifier(d.name); } function getNameableDeclarationAtPosition(signature, pos) { const paramCount = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0); @@ -76656,17 +77188,17 @@ function createTypeChecker(host) { if (!links.decoratorSignature) { links.decoratorSignature = anySignature; switch (parent2.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: { + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: { const node = parent2; const targetType = getTypeOfSymbol(getSymbolOfDeclaration(node)); const contextType = createClassDecoratorContextType(targetType); links.decoratorSignature = createESDecoratorCallSignature(targetType, contextType, targetType); break; } - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: { + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: { const node = parent2; if (!isClassLike(node.parent)) break; @@ -76678,7 +77210,7 @@ function createTypeChecker(host) { links.decoratorSignature = createESDecoratorCallSignature(targetType, contextType, returnType); break; } - case 171 /* PropertyDeclaration */: { + case 172 /* PropertyDeclaration */: { const node = parent2; if (!isClassLike(node.parent)) break; @@ -76700,8 +77232,8 @@ function createTypeChecker(host) { if (!links.decoratorSignature) { links.decoratorSignature = anySignature; switch (parent2.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: { + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: { const node = parent2; const targetType = getTypeOfSymbol(getSymbolOfDeclaration(node)); const targetParam = createParameter("target", targetType); @@ -76715,7 +77247,7 @@ function createTypeChecker(host) { ); break; } - case 168 /* Parameter */: { + case 169 /* Parameter */: { const node = parent2; if (!isConstructorDeclaration(node.parent) && !(isMethodDeclaration(node.parent) || isSetAccessorDeclaration(node.parent) && isClassLike(node.parent.parent))) { break; @@ -76741,10 +77273,10 @@ function createTypeChecker(host) { ); break; } - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 171 /* PropertyDeclaration */: { + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 172 /* PropertyDeclaration */: { const node = parent2; if (!isClassLike(node.parent)) break; @@ -76809,13 +77341,13 @@ function createTypeChecker(host) { function createPromiseReturnType(func, promisedType) { const promiseType = createPromiseType(promisedType); if (promiseType === unknownType) { - error(func, isImportCall(func) ? Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option : Diagnostics.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option); + error2(func, isImportCall(func) ? Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option : Diagnostics.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option); return errorType; } else if (!getGlobalPromiseConstructorSymbol( /*reportErrors*/ true )) { - error(func, isImportCall(func) ? Diagnostics.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option : Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option); + error2(func, isImportCall(func) ? Diagnostics.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option : Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option); } return promiseType; } @@ -76839,7 +77371,7 @@ function createTypeChecker(host) { let yieldType; let nextType; let fallbackReturnType = voidType; - if (func.body.kind !== 240 /* Block */) { + if (func.body.kind !== 241 /* Block */) { returnType = checkExpressionCached(func.body, checkMode && checkMode & ~8 /* SkipGenericFunctions */); if (isAsync) { returnType = unwrapAwaitedType(checkAwaitedType( @@ -77022,7 +77554,7 @@ function createTypeChecker(host) { return links.isExhaustive; } function computeExhaustiveSwitchStatement(node) { - if (node.expression.kind === 220 /* TypeOfExpression */) { + if (node.expression.kind === 221 /* TypeOfExpression */) { const witnesses = getSwitchClauseTypeOfWitnesses(node); if (!witnesses) { return false; @@ -77055,7 +77587,7 @@ function createTypeChecker(host) { forEachReturnStatement(func.body, (returnStatement) => { const expr = returnStatement.expression; if (expr) { - if (expr.kind === 212 /* CallExpression */ && expr.expression.kind === 80 /* Identifier */ && checkExpressionCached(expr.expression).symbol === func.symbol) { + if (expr.kind === 213 /* CallExpression */ && expr.expression.kind === 80 /* Identifier */ && checkExpressionCached(expr.expression).symbol === func.symbol) { hasReturnOfTypeNever = true; return; } @@ -77087,11 +77619,11 @@ function createTypeChecker(host) { } function mayReturnNever(func) { switch (func.kind) { - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return true; - case 173 /* MethodDeclaration */: - return func.parent.kind === 209 /* ObjectLiteralExpression */; + case 174 /* MethodDeclaration */: + return func.parent.kind === 210 /* ObjectLiteralExpression */; default: return false; } @@ -77105,17 +77637,17 @@ function createTypeChecker(host) { if (type && (maybeTypeOfKind(type, 16384 /* Void */) || type.flags & (1 /* Any */ | 32768 /* Undefined */))) { return; } - if (func.kind === 172 /* MethodSignature */ || nodeIsMissing(func.body) || func.body.kind !== 240 /* Block */ || !functionHasImplicitReturn(func)) { + if (func.kind === 173 /* MethodSignature */ || nodeIsMissing(func.body) || func.body.kind !== 241 /* Block */ || !functionHasImplicitReturn(func)) { return; } - const hasExplicitReturn = func.flags & 512 /* HasExplicitReturn */; + const hasExplicitReturn = func.flags & 1024 /* HasExplicitReturn */; const errorNode = getEffectiveReturnTypeNode(func) || func; if (type && type.flags & 131072 /* Never */) { - error(errorNode, Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point); + error2(errorNode, Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point); } else if (type && !hasExplicitReturn) { - error(errorNode, Diagnostics.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value); + error2(errorNode, Diagnostics.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value); } else if (type && strictNullChecks && !isTypeAssignableTo(undefinedType, type)) { - error(errorNode, Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined); + error2(errorNode, Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined); } else if (compilerOptions.noImplicitReturns) { if (!type) { if (!hasExplicitReturn) { @@ -77126,12 +77658,12 @@ function createTypeChecker(host) { return; } } - error(errorNode, Diagnostics.Not_all_code_paths_return_a_value); + error2(errorNode, Diagnostics.Not_all_code_paths_return_a_value); } } } function checkFunctionExpressionOrObjectLiteralMethod(node, checkMode) { - Debug.assert(node.kind !== 173 /* MethodDeclaration */ || isObjectLiteralMethod(node)); + Debug.assert(node.kind !== 174 /* MethodDeclaration */ || isObjectLiteralMethod(node)); checkNodeDeferred(node); if (isFunctionExpression(node)) { checkCollisionsForDeclarationName(node, node.name); @@ -77167,7 +77699,7 @@ function createTypeChecker(host) { return anyFunctionType; } const hasGrammarError = checkGrammarFunctionLikeDeclaration(node); - if (!hasGrammarError && node.kind === 217 /* FunctionExpression */) { + if (!hasGrammarError && node.kind === 218 /* FunctionExpression */) { checkGrammarForGenerator(node); } contextuallyCheckFunctionExpressionOrObjectLiteralMethod(node, checkMode); @@ -77216,7 +77748,7 @@ function createTypeChecker(host) { } } function checkFunctionExpressionOrObjectLiteralMethodDeferred(node) { - Debug.assert(node.kind !== 173 /* MethodDeclaration */ || isObjectLiteralMethod(node)); + Debug.assert(node.kind !== 174 /* MethodDeclaration */ || isObjectLiteralMethod(node)); const functionFlags = getFunctionFlags(node); const returnType = getReturnTypeFromAnnotation(node); checkAllCodePathsInNonVoidFunctionReturnOrThrow(node, returnType); @@ -77224,7 +77756,7 @@ function createTypeChecker(host) { if (!getEffectiveReturnTypeNode(node)) { getReturnTypeOfSignature(getSignatureFromDeclaration(node)); } - if (node.body.kind === 240 /* Block */) { + if (node.body.kind === 241 /* Block */) { checkSourceElement(node.body); } else { const exprType = checkExpression(node.body); @@ -77286,7 +77818,7 @@ function createTypeChecker(host) { return !setProp; } function isReadonlySymbol(symbol) { - return !!(getCheckFlags(symbol) & 8 /* Readonly */ || symbol.flags & 4 /* Property */ && getDeclarationModifierFlagsFromSymbol(symbol) & 64 /* Readonly */ || symbol.flags & 3 /* Variable */ && getDeclarationNodeFlagsFromSymbol(symbol) & 2 /* Const */ || symbol.flags & 98304 /* Accessor */ && !(symbol.flags & 65536 /* SetAccessor */) || symbol.flags & 8 /* EnumMember */ || some(symbol.declarations, isReadonlyAssignmentDeclaration)); + return !!(getCheckFlags(symbol) & 8 /* Readonly */ || symbol.flags & 4 /* Property */ && getDeclarationModifierFlagsFromSymbol(symbol) & 64 /* Readonly */ || symbol.flags & 3 /* Variable */ && getDeclarationNodeFlagsFromSymbol(symbol) & 6 /* Constant */ || symbol.flags & 98304 /* Accessor */ && !(symbol.flags & 65536 /* SetAccessor */) || symbol.flags & 8 /* EnumMember */ || some(symbol.declarations, isReadonlyAssignmentDeclaration)); } function isAssignmentToReadonlyEntity(expr, symbol, assignmentKind) { var _a, _b; @@ -77296,7 +77828,7 @@ function createTypeChecker(host) { if (isReadonlySymbol(symbol)) { if (symbol.flags & 4 /* Property */ && isAccessExpression(expr) && expr.expression.kind === 110 /* ThisKeyword */) { const ctor = getContainingFunction(expr); - if (!(ctor && (ctor.kind === 175 /* Constructor */ || isJSConstructor(ctor)))) { + if (!(ctor && (ctor.kind === 176 /* Constructor */ || isJSConstructor(ctor)))) { return true; } if (symbol.valueDeclaration) { @@ -77317,7 +77849,7 @@ function createTypeChecker(host) { const symbol2 = getNodeLinks(node).resolvedSymbol; if (symbol2.flags & 2097152 /* Alias */) { const declaration = getDeclarationOfAliasSymbol(symbol2); - return !!declaration && declaration.kind === 273 /* NamespaceImport */; + return !!declaration && declaration.kind === 274 /* NamespaceImport */; } } } @@ -77326,11 +77858,11 @@ function createTypeChecker(host) { function checkReferenceExpression(expr, invalidReferenceMessage, invalidOptionalChainMessage) { const node = skipOuterExpressions(expr, 6 /* Assertions */ | 1 /* Parentheses */); if (node.kind !== 80 /* Identifier */ && !isAccessExpression(node)) { - error(expr, invalidReferenceMessage); + error2(expr, invalidReferenceMessage); return false; } - if (node.flags & 32 /* OptionalChain */) { - error(expr, invalidOptionalChainMessage); + if (node.flags & 64 /* OptionalChain */) { + error2(expr, invalidOptionalChainMessage); return false; } return true; @@ -77339,17 +77871,17 @@ function createTypeChecker(host) { checkExpression(node.expression); const expr = skipParentheses(node.expression); if (!isAccessExpression(expr)) { - error(expr, Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference); + error2(expr, Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference); return booleanType; } if (isPropertyAccessExpression(expr) && isPrivateIdentifier(expr.name)) { - error(expr, Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier); + error2(expr, Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier); } const links = getNodeLinks(expr); const symbol = getExportSymbolOfValueSymbolIfExported(links.resolvedSymbol); if (symbol) { if (isReadonlySymbol(symbol)) { - error(expr, Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property); + error2(expr, Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property); } checkDeleteExpressionMustBeOptional(expr, symbol); } @@ -77358,7 +77890,7 @@ function createTypeChecker(host) { function checkDeleteExpressionMustBeOptional(expr, symbol) { const type = getTypeOfSymbol(symbol); if (strictNullChecks && !(type.flags & (3 /* AnyOrUnknown */ | 131072 /* Never */)) && !(exactOptionalPropertyTypes ? symbol.flags & 16777216 /* Optional */ : getTypeFacts(type) & 16777216 /* IsUndefined */)) { - error(expr, Diagnostics.The_operand_of_a_delete_operator_must_be_optional); + error2(expr, Diagnostics.The_operand_of_a_delete_operator_must_be_optional); } } function checkTypeOfExpression(node) { @@ -77369,24 +77901,24 @@ function createTypeChecker(host) { checkExpression(node.expression); return undefinedWideningType; } - function checkAwaitExpressionGrammar(node) { + function checkAwaitGrammar(node) { + let hasError = false; const container = getContainingFunctionOrClassStaticBlock(node); if (container && isClassStaticBlockDeclaration(container)) { - error(node, Diagnostics.Await_expression_cannot_be_used_inside_a_class_static_block); - } else if (!(node.flags & 32768 /* AwaitContext */)) { + const message = isAwaitExpression(node) ? Diagnostics.await_expression_cannot_be_used_inside_a_class_static_block : Diagnostics.await_using_statements_cannot_be_used_inside_a_class_static_block; + error2(node, message); + hasError = true; + } else if (!(node.flags & 65536 /* AwaitContext */)) { if (isInTopLevelContext(node)) { const sourceFile = getSourceFileOfNode(node); if (!hasParseDiagnostics(sourceFile)) { let span; if (!isEffectiveExternalModule(sourceFile, compilerOptions)) { span ?? (span = getSpanOfTokenAtPosition(sourceFile, node.pos)); - const diagnostic = createFileDiagnostic( - sourceFile, - span.start, - span.length, - Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module - ); + const message = isAwaitExpression(node) ? Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module : Diagnostics.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module; + const diagnostic = createFileDiagnostic(sourceFile, span.start, span.length, message); diagnostics.add(diagnostic); + hasError = true; } switch (moduleKind) { case 100 /* Node16 */: @@ -77396,6 +77928,7 @@ function createTypeChecker(host) { diagnostics.add( createFileDiagnostic(sourceFile, span.start, span.length, Diagnostics.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level) ); + hasError = true; break; } case 7 /* ES2022 */: @@ -77406,14 +77939,9 @@ function createTypeChecker(host) { } default: span ?? (span = getSpanOfTokenAtPosition(sourceFile, node.pos)); - diagnostics.add( - createFileDiagnostic( - sourceFile, - span.start, - span.length, - Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher - ) - ); + const message = isAwaitExpression(node) ? Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher : Diagnostics.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher; + diagnostics.add(createFileDiagnostic(sourceFile, span.start, span.length, message)); + hasError = true; break; } } @@ -77421,21 +77949,25 @@ function createTypeChecker(host) { const sourceFile = getSourceFileOfNode(node); if (!hasParseDiagnostics(sourceFile)) { const span = getSpanOfTokenAtPosition(sourceFile, node.pos); - const diagnostic = createFileDiagnostic(sourceFile, span.start, span.length, Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules); - if (container && container.kind !== 175 /* Constructor */ && (getFunctionFlags(container) & 2 /* Async */) === 0) { + const message = isAwaitExpression(node) ? Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules : Diagnostics.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules; + const diagnostic = createFileDiagnostic(sourceFile, span.start, span.length, message); + if (container && container.kind !== 176 /* Constructor */ && (getFunctionFlags(container) & 2 /* Async */) === 0) { const relatedInfo = createDiagnosticForNode(container, Diagnostics.Did_you_mean_to_mark_this_function_as_async); addRelatedInfo(diagnostic, relatedInfo); } diagnostics.add(diagnostic); + hasError = true; } } } - if (isInParameterInitializerBeforeContainingFunction(node)) { - error(node, Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer); + if (isAwaitExpression(node) && isInParameterInitializerBeforeContainingFunction(node)) { + error2(node, Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer); + hasError = true; } + return hasError; } function checkAwaitExpression(node) { - addLazyDiagnostic(() => checkAwaitExpressionGrammar(node)); + addLazyDiagnostic(() => checkAwaitGrammar(node)); const operandType = checkExpression(node.expression); const awaitedType = checkAwaitedType( operandType, @@ -77481,11 +78013,11 @@ function createTypeChecker(host) { case 55 /* TildeToken */: checkNonNullType(operandType, node.operand); if (maybeTypeOfKindConsideringBaseConstraint(operandType, 12288 /* ESSymbolLike */)) { - error(node.operand, Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol, tokenToString(node.operator)); + error2(node.operand, Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol, tokenToString(node.operator)); } if (node.operator === 40 /* PlusToken */) { if (maybeTypeOfKindConsideringBaseConstraint(operandType, 2112 /* BigIntLike */)) { - error(node.operand, Diagnostics.Operator_0_cannot_be_applied_to_type_1, tokenToString(node.operator), typeToString(getBaseTypeOfLiteralType(operandType))); + error2(node.operand, Diagnostics.Operator_0_cannot_be_applied_to_type_1, tokenToString(node.operator), typeToString(getBaseTypeOfLiteralType(operandType))); } return numberType; } @@ -77581,10 +78113,10 @@ function createTypeChecker(host) { return silentNeverType; } if (!isTypeAny(leftType) && allTypesAssignableToKind(leftType, 402784252 /* Primitive */)) { - error(left, Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter); + error2(left, Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter); } if (!(isTypeAny(rightType) || typeHasCallOrConstructSignatures(rightType) || isTypeSubtypeOf(rightType, globalFunctionType))) { - error(right, Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type); + error2(right, Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type); } return booleanType; } @@ -77613,7 +78145,7 @@ function createTypeChecker(host) { } if (checkTypeAssignableTo(checkNonNullType(rightType, right), nonPrimitiveType, right)) { if (hasEmptyObjectIntersection(rightType)) { - error(right, Diagnostics.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator, typeToString(rightType)); + error2(right, Diagnostics.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator, typeToString(rightType)); } } return booleanType; @@ -77631,7 +78163,7 @@ function createTypeChecker(host) { function checkObjectLiteralDestructuringPropertyAssignment(node, objectLiteralType, propertyIndex, allProperties, rightIsThis = false) { const properties = node.properties; const property = properties[propertyIndex]; - if (property.kind === 302 /* PropertyAssignment */ || property.kind === 303 /* ShorthandPropertyAssignment */) { + if (property.kind === 303 /* PropertyAssignment */ || property.kind === 304 /* ShorthandPropertyAssignment */) { const name = property.name; const exprType = getLiteralTypeFromPropertyName(name); if (isTypeUsableAsPropertyName(exprType)) { @@ -77652,10 +78184,10 @@ function createTypeChecker(host) { } const elementType = getIndexedAccessType(objectLiteralType, exprType, 32 /* ExpressionPosition */, name); const type = getFlowTypeOfDestructuring(property, elementType); - return checkDestructuringAssignment(property.kind === 303 /* ShorthandPropertyAssignment */ ? property : property.initializer, type); - } else if (property.kind === 304 /* SpreadAssignment */) { + return checkDestructuringAssignment(property.kind === 304 /* ShorthandPropertyAssignment */ ? property : property.initializer, type); + } else if (property.kind === 305 /* SpreadAssignment */) { if (propertyIndex < properties.length - 1) { - error(property, Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern); + error2(property, Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern); } else { if (languageVersion < 99 /* ESNext */) { checkExternalEmitHelpers(property, 4 /* Rest */); @@ -77673,7 +78205,7 @@ function createTypeChecker(host) { return checkDestructuringAssignment(property.expression, type); } } else { - error(property, Diagnostics.Property_assignment_expected); + error2(property, Diagnostics.Property_assignment_expected); } } function checkArrayLiteralAssignment(node, sourceType, checkMode) { @@ -77685,7 +78217,7 @@ function createTypeChecker(host) { let inBoundsType = compilerOptions.noUncheckedIndexedAccess ? void 0 : possiblyOutOfBoundsType; for (let i = 0; i < elements.length; i++) { let type = possiblyOutOfBoundsType; - if (node.elements[i].kind === 229 /* SpreadElement */) { + if (node.elements[i].kind === 230 /* SpreadElement */) { type = inBoundsType = inBoundsType ?? (checkIteratedTypeOrElementType(65 /* Destructuring */, sourceType, undefinedType, node) || errorType); } checkArrayLiteralDestructuringElementAssignment(node, sourceType, i, type, checkMode); @@ -77695,8 +78227,8 @@ function createTypeChecker(host) { function checkArrayLiteralDestructuringElementAssignment(node, sourceType, elementIndex, elementType, checkMode) { const elements = node.elements; const element = elements[elementIndex]; - if (element.kind !== 231 /* OmittedExpression */) { - if (element.kind !== 229 /* SpreadElement */) { + if (element.kind !== 232 /* OmittedExpression */) { + if (element.kind !== 230 /* SpreadElement */) { const indexType = getNumberLiteralType(elementIndex); if (isArrayLikeType(sourceType)) { const accessFlags = 32 /* ExpressionPosition */ | (hasDefaultValue(element) ? 16 /* NoTupleBoundsCheck */ : 0); @@ -77708,11 +78240,11 @@ function createTypeChecker(host) { return checkDestructuringAssignment(element, elementType, checkMode); } if (elementIndex < elements.length - 1) { - error(element, Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern); + error2(element, Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern); } else { const restExpression = element.expression; - if (restExpression.kind === 225 /* BinaryExpression */ && restExpression.operatorToken.kind === 64 /* EqualsToken */) { - error(restExpression.operatorToken, Diagnostics.A_rest_element_cannot_have_an_initializer); + if (restExpression.kind === 226 /* BinaryExpression */ && restExpression.operatorToken.kind === 64 /* EqualsToken */) { + error2(restExpression.operatorToken, Diagnostics.A_rest_element_cannot_have_an_initializer); } else { checkGrammarForDisallowedTrailingComma(node.elements, Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma); const type = everyType(sourceType, isTupleType) ? mapType(sourceType, (t) => sliceTupleType(t, elementIndex)) : createArrayType(elementType); @@ -77724,7 +78256,7 @@ function createTypeChecker(host) { } function checkDestructuringAssignment(exprOrAssignment, sourceType, checkMode, rightIsThis) { let target; - if (exprOrAssignment.kind === 303 /* ShorthandPropertyAssignment */) { + if (exprOrAssignment.kind === 304 /* ShorthandPropertyAssignment */) { const prop = exprOrAssignment; if (prop.objectAssignmentInitializer) { if (strictNullChecks && !(getTypeFacts(checkExpression(prop.objectAssignmentInitializer)) & 16777216 /* IsUndefined */)) { @@ -77736,26 +78268,26 @@ function createTypeChecker(host) { } else { target = exprOrAssignment; } - if (target.kind === 225 /* BinaryExpression */ && target.operatorToken.kind === 64 /* EqualsToken */) { + if (target.kind === 226 /* BinaryExpression */ && target.operatorToken.kind === 64 /* EqualsToken */) { checkBinaryExpression(target, checkMode); target = target.left; if (strictNullChecks) { sourceType = getTypeWithFacts(sourceType, 524288 /* NEUndefined */); } } - if (target.kind === 209 /* ObjectLiteralExpression */) { + if (target.kind === 210 /* ObjectLiteralExpression */) { return checkObjectLiteralAssignment(target, sourceType, rightIsThis); } - if (target.kind === 208 /* ArrayLiteralExpression */) { + if (target.kind === 209 /* ArrayLiteralExpression */) { return checkArrayLiteralAssignment(target, sourceType, checkMode); } return checkReferenceAssignment(target, sourceType, checkMode); } function checkReferenceAssignment(target, sourceType, checkMode) { const targetType = checkExpression(target, checkMode); - const error2 = target.parent.kind === 304 /* SpreadAssignment */ ? Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access : Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access; - const optionalError = target.parent.kind === 304 /* SpreadAssignment */ ? Diagnostics.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access : Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access; - if (checkReferenceExpression(target, error2, optionalError)) { + const error3 = target.parent.kind === 305 /* SpreadAssignment */ ? Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access : Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access; + const optionalError = target.parent.kind === 305 /* SpreadAssignment */ ? Diagnostics.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access : Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access; + if (checkReferenceExpression(target, error3, optionalError)) { checkTypeAssignableToAndOptionallyElaborate(sourceType, targetType, target, target); } if (isPrivateIdentifierPropertyAccessExpression(target)) { @@ -77769,8 +78301,8 @@ function createTypeChecker(host) { case 80 /* Identifier */: case 11 /* StringLiteral */: case 14 /* RegularExpressionLiteral */: - case 214 /* TaggedTemplateExpression */: - case 227 /* TemplateExpression */: + case 215 /* TaggedTemplateExpression */: + case 228 /* TemplateExpression */: case 15 /* NoSubstitutionTemplateLiteral */: case 9 /* NumericLiteral */: case 10 /* BigIntLiteral */: @@ -77778,25 +78310,25 @@ function createTypeChecker(host) { case 97 /* FalseKeyword */: case 106 /* NullKeyword */: case 157 /* UndefinedKeyword */: - case 217 /* FunctionExpression */: - case 230 /* ClassExpression */: - case 218 /* ArrowFunction */: - case 208 /* ArrayLiteralExpression */: - case 209 /* ObjectLiteralExpression */: - case 220 /* TypeOfExpression */: - case 234 /* NonNullExpression */: - case 284 /* JsxSelfClosingElement */: - case 283 /* JsxElement */: + case 218 /* FunctionExpression */: + case 231 /* ClassExpression */: + case 219 /* ArrowFunction */: + case 209 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: + case 221 /* TypeOfExpression */: + case 235 /* NonNullExpression */: + case 285 /* JsxSelfClosingElement */: + case 284 /* JsxElement */: return true; - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: return isSideEffectFree(node.whenTrue) && isSideEffectFree(node.whenFalse); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: if (isAssignmentOperator(node.operatorToken.kind)) { return false; } return isSideEffectFree(node.left) && isSideEffectFree(node.right); - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: switch (node.operator) { case 54 /* ExclamationToken */: case 40 /* PlusToken */: @@ -77805,9 +78337,9 @@ function createTypeChecker(host) { return true; } return false; - case 221 /* VoidExpression */: - case 215 /* TypeAssertionExpression */: - case 233 /* AsExpression */: + case 222 /* VoidExpression */: + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: default: return false; } @@ -77851,7 +78383,7 @@ function createTypeChecker(host) { } checkGrammarNullishCoalesceWithLogicalExpression(node); const operator = node.operatorToken.kind; - if (operator === 64 /* EqualsToken */ && (node.left.kind === 209 /* ObjectLiteralExpression */ || node.left.kind === 208 /* ArrayLiteralExpression */)) { + if (operator === 64 /* EqualsToken */ && (node.left.kind === 210 /* ObjectLiteralExpression */ || node.left.kind === 209 /* ArrayLiteralExpression */)) { state.skip = true; setLastResult(state, checkDestructuringAssignment(node.left, checkExpression(node.right, checkMode), checkMode, node.right.kind === 110 /* ThisKeyword */)); return state; @@ -77876,7 +78408,7 @@ function createTypeChecker(host) { const operator = operatorToken.kind; if (isLogicalOrCoalescingBinaryOperator(operator)) { let parent2 = node.parent; - while (parent2.kind === 216 /* ParenthesizedExpression */ || isLogicalOrCoalescingBinaryExpression(parent2)) { + while (parent2.kind === 217 /* ParenthesizedExpression */ || isLogicalOrCoalescingBinaryExpression(parent2)) { parent2 = parent2.parent; } if (operator === 56 /* AmpersandAmpersandToken */ || isIfStatement(parent2)) { @@ -77900,7 +78432,7 @@ function createTypeChecker(host) { Debug.assertIsDefined(leftType); const rightType = getLastResult(state); Debug.assertIsDefined(rightType); - result = checkBinaryLikeExpressionWorker(node.left, node.operatorToken, node.right, leftType, rightType, node); + result = checkBinaryLikeExpressionWorker(node.left, node.operatorToken, node.right, leftType, rightType, state.checkMode, node); } state.skip = false; setLeftType( @@ -77952,7 +78484,7 @@ function createTypeChecker(host) { } function checkBinaryLikeExpression(left, operatorToken, right, checkMode, errorNode) { const operator = operatorToken.kind; - if (operator === 64 /* EqualsToken */ && (left.kind === 209 /* ObjectLiteralExpression */ || left.kind === 208 /* ArrayLiteralExpression */)) { + if (operator === 64 /* EqualsToken */ && (left.kind === 210 /* ObjectLiteralExpression */ || left.kind === 209 /* ArrayLiteralExpression */)) { return checkDestructuringAssignment(left, checkExpression(right, checkMode), checkMode, right.kind === 110 /* ThisKeyword */); } let leftType; @@ -77962,9 +78494,9 @@ function createTypeChecker(host) { leftType = checkExpression(left, checkMode); } const rightType = checkExpression(right, checkMode); - return checkBinaryLikeExpressionWorker(left, operatorToken, right, leftType, rightType, errorNode); + return checkBinaryLikeExpressionWorker(left, operatorToken, right, leftType, rightType, checkMode, errorNode); } - function checkBinaryLikeExpressionWorker(left, operatorToken, right, leftType, rightType, errorNode) { + function checkBinaryLikeExpressionWorker(left, operatorToken, right, leftType, rightType, checkMode, errorNode) { const operator = operatorToken.kind; switch (operator) { case 42 /* AsteriskToken */: @@ -77996,7 +78528,7 @@ function createTypeChecker(host) { rightType = checkNonNullType(rightType, right); let suggestedOperator; if (leftType.flags & 528 /* BooleanLike */ && rightType.flags & 528 /* BooleanLike */ && (suggestedOperator = getSuggestedBooleanOperator(operatorToken.kind)) !== void 0) { - error(errorNode || operatorToken, Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead, tokenToString(operatorToken.kind), tokenToString(suggestedOperator)); + error2(errorNode || operatorToken, Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead, tokenToString(operatorToken.kind), tokenToString(suggestedOperator)); return numberType; } else { const leftOk = checkArithmeticOperandType( @@ -78026,7 +78558,7 @@ function createTypeChecker(host) { case 43 /* AsteriskAsteriskToken */: case 68 /* AsteriskAsteriskEqualsToken */: if (languageVersion < 3 /* ES2016 */) { - error(errorNode, Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later); + error2(errorNode, Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later); } } resultType2 = bigintType; @@ -78121,12 +78653,15 @@ function createTypeChecker(host) { case 36 /* ExclamationEqualsToken */: case 37 /* EqualsEqualsEqualsToken */: case 38 /* ExclamationEqualsEqualsToken */: - if (isLiteralExpressionOfObject(left) || isLiteralExpressionOfObject(right)) { - const eqType = operator === 35 /* EqualsEqualsToken */ || operator === 37 /* EqualsEqualsEqualsToken */; - error(errorNode, Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value, eqType ? "false" : "true"); + if (!(checkMode && checkMode & 128 /* TypeOnly */)) { + if ((isLiteralExpressionOfObject(left) || isLiteralExpressionOfObject(right)) && // only report for === and !== in JS, not == or != + (!isInJSFile(left) || (operator === 37 /* EqualsEqualsEqualsToken */ || operator === 38 /* ExclamationEqualsEqualsToken */))) { + const eqType = operator === 35 /* EqualsEqualsToken */ || operator === 37 /* EqualsEqualsEqualsToken */; + error2(errorNode, Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value, eqType ? "false" : "true"); + } + checkNaNEquality(errorNode, operator, left, right); + reportOperatorErrorUnless((left2, right2) => isTypeEqualityComparableTo(left2, right2) || isTypeEqualityComparableTo(right2, left2)); } - checkNaNEquality(errorNode, operator, left, right); - reportOperatorErrorUnless((left2, right2) => isTypeEqualityComparableTo(left2, right2) || isTypeEqualityComparableTo(right2, left2)); return booleanType; case 104 /* InstanceOfKeyword */: return checkInstanceOfExpression(left, right, leftType, rightType); @@ -78179,7 +78714,7 @@ function createTypeChecker(host) { return textSpanContainsPosition(diag2, start2); }); if (!isInDiag2657) - error(left, Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects); + error2(left, Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects); } return rightType; default: @@ -78213,13 +78748,13 @@ function createTypeChecker(host) { } } function isIndirectCall(node) { - return node.parent.kind === 216 /* ParenthesizedExpression */ && isNumericLiteral(node.left) && node.left.text === "0" && (isCallExpression(node.parent.parent) && node.parent.parent.expression === node.parent || node.parent.parent.kind === 214 /* TaggedTemplateExpression */) && // special-case for "eval" because it's the only non-access case where an indirect call actually affects behavior. + return node.parent.kind === 217 /* ParenthesizedExpression */ && isNumericLiteral(node.left) && node.left.text === "0" && (isCallExpression(node.parent.parent) && node.parent.parent.expression === node.parent || node.parent.parent.kind === 215 /* TaggedTemplateExpression */) && // special-case for "eval" because it's the only non-access case where an indirect call actually affects behavior. (isAccessExpression(node.right) || isIdentifier(node.right) && node.right.escapedText === "eval"); } function checkForDisallowedESSymbolOperand(operator2) { const offendingSymbolOperand = maybeTypeOfKindConsideringBaseConstraint(leftType, 12288 /* ESSymbolLike */) ? left : maybeTypeOfKindConsideringBaseConstraint(rightType, 12288 /* ESSymbolLike */) ? right : void 0; if (offendingSymbolOperand) { - error(offendingSymbolOperand, Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol, tokenToString(operator2)); + error2(offendingSymbolOperand, Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol, tokenToString(operator2)); return false; } return true; @@ -78245,7 +78780,7 @@ function createTypeChecker(host) { } function checkAssignmentOperatorWorker() { let assigneeType = leftType; - if (isCompoundAssignment(operatorToken.kind) && left.kind === 210 /* PropertyAccessExpression */) { + if (isCompoundAssignment(operatorToken.kind) && left.kind === 211 /* PropertyAccessExpression */) { assigneeType = checkPropertyAccessExpression( left, /*checkMode*/ @@ -78340,7 +78875,7 @@ function createTypeChecker(host) { const isLeftNaN = isGlobalNaN(skipParentheses(left2)); const isRightNaN = isGlobalNaN(skipParentheses(right2)); if (isLeftNaN || isRightNaN) { - const err = error( + const err = error2( errorNode2, Diagnostics.This_condition_will_always_return_0, tokenToString(operator2 === 37 /* EqualsEqualsEqualsToken */ || operator2 === 35 /* EqualsEqualsToken */ ? 97 /* FalseKeyword */ : 112 /* TrueKeyword */) @@ -78421,23 +78956,23 @@ function createTypeChecker(host) { void 0 ); if (!contextualType || isTypeAny(contextualType)) { - error(node, Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation); + error2(node, Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation); } } }); } return type; function checkYieldExpressionGrammar() { - if (!(node.flags & 8192 /* YieldContext */)) { + if (!(node.flags & 16384 /* YieldContext */)) { grammarErrorOnFirstToken(node, Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body); } if (isInParameterInitializerBeforeContainingFunction(node)) { - error(node, Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer); + error2(node, Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer); } } } function checkConditionalExpression(node, checkMode) { - const type = checkTruthinessExpression(node.condition); + const type = checkTruthinessExpression(node.condition, checkMode); checkTestingKnownTruthyCallableOrAwaitableType(node.condition, type, node.whenTrue); const type1 = checkExpression(node.whenTrue, checkMode); const type2 = checkExpression(node.whenFalse, checkMode); @@ -78453,16 +78988,20 @@ function createTypeChecker(host) { for (const span of node.templateSpans) { const type = checkExpression(span.expression); if (maybeTypeOfKindConsideringBaseConstraint(type, 12288 /* ESSymbolLike */)) { - error(span.expression, Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String); + error2(span.expression, Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String); } texts.push(span.literal.text); types.push(isTypeAssignableTo(type, templateConstraintType) ? type : stringType); } - return isConstContext(node) || isTemplateLiteralContext(node) || someType(getContextualType2( + if (isConstContext(node) || isTemplateLiteralContext(node) || someType(getContextualType2( node, /*contextFlags*/ void 0 - ) || unknownType, isTemplateLiteralContextualType) ? getTemplateLiteralType(texts, types) : stringType; + ) || unknownType, isTemplateLiteralContextualType)) { + return getTemplateLiteralType(texts, types); + } + const evaluated = node.parent.kind !== 215 /* TaggedTemplateExpression */ && evaluateTemplateExpression(node); + return evaluated ? getFreshTypeOfLiteralType(getStringLiteralType(evaluated)) : stringType; } function isTemplateLiteralContextualType(type) { return !!(type.flags & (128 /* StringLiteral */ | 134217728 /* TemplateLiteral */) || type.flags & 58982400 /* InstantiableNonPrimitive */ && maybeTypeOfKind(getBaseConstraintOfType(type) || unknownType, 402653316 /* StringLike */)); @@ -78518,7 +79057,7 @@ function createTypeChecker(host) { /*excludeJSDocTypeAssertions*/ true ); - return node.kind === 215 /* TypeAssertionExpression */ || node.kind === 233 /* AsExpression */ || isJSDocTypeAssertion(node); + return node.kind === 216 /* TypeAssertionExpression */ || node.kind === 234 /* AsExpression */ || isJSDocTypeAssertion(node); } function checkDeclarationInitializer(declaration, checkMode, contextualType) { const initializer = getEffectiveInitializer(declaration); @@ -78535,7 +79074,7 @@ function createTypeChecker(host) { void 0, checkMode || 0 /* Normal */ ) : checkExpressionCached(initializer, checkMode)); - return isParameter(declaration) && declaration.name.kind === 206 /* ArrayBindingPattern */ && isTupleType(type) && !type.target.hasRestElement && getTypeReferenceArity(type) < declaration.name.elements.length ? padTupleType(type, declaration.name) : type; + return isParameter(declaration) && declaration.name.kind === 207 /* ArrayBindingPattern */ && isTupleType(type) && !type.target.hasRestElement && getTypeReferenceArity(type) < declaration.name.elements.length ? padTupleType(type, declaration.name) : type; } function padTupleType(type, pattern) { const patternElements = pattern.elements; @@ -78543,7 +79082,7 @@ function createTypeChecker(host) { const elementFlags = type.target.elementFlags.slice(); for (let i = getTypeReferenceArity(type); i < patternElements.length; i++) { const e = patternElements[i]; - if (i < patternElements.length - 1 || !(e.kind === 207 /* BindingElement */ && e.dotDotDotToken)) { + if (i < patternElements.length - 1 || !(e.kind === 208 /* BindingElement */ && e.dotDotDotToken)) { elementTypes.push(!isOmittedExpression(e) && hasDefaultValue(e) ? getTypeFromBindingElement( e, /*includePatternInType*/ @@ -78560,7 +79099,7 @@ function createTypeChecker(host) { return createTupleType(elementTypes, elementFlags, type.target.readonly); } function widenTypeInferredFromInitializer(declaration, type) { - const widened = getCombinedNodeFlags(declaration) & 2 /* Const */ || isDeclarationReadonly(declaration) ? type : getWidenedLiteralType(type); + const widened = getCombinedNodeFlagsCached(declaration) & 6 /* Constant */ || isDeclarationReadonly(declaration) ? type : getWidenedLiteralType(type); if (isInJSFile(declaration)) { if (isEmptyLiteralType(widened)) { reportImplicitAny(declaration, anyType); @@ -78604,14 +79143,14 @@ function createTypeChecker(host) { )); } function checkPropertyAssignment(node, checkMode) { - if (node.name.kind === 166 /* ComputedPropertyName */) { + if (node.name.kind === 167 /* ComputedPropertyName */) { checkComputedPropertyName(node.name); } return checkExpressionForMutableLocation(node.initializer, checkMode); } function checkObjectLiteralMethod(node, checkMode) { checkGrammarMethod(node); - if (node.name.kind === 166 /* ComputedPropertyName */) { + if (node.name.kind === 167 /* ComputedPropertyName */) { checkComputedPropertyName(node.name); } const uninstantiatedType = checkFunctionExpressionOrObjectLiteralMethod(node, checkMode); @@ -78767,18 +79306,18 @@ function createTypeChecker(host) { if (quickType) { return quickType; } - if (node.flags & 134217728 /* TypeCached */ && flowTypeCache) { + if (node.flags & 268435456 /* TypeCached */ && flowTypeCache) { const cachedType = flowTypeCache[getNodeId(node)]; if (cachedType) { return cachedType; } } const startInvocationCount = flowInvocationCount; - const type = checkExpression(node); + const type = checkExpression(node, 128 /* TypeOnly */); if (flowInvocationCount !== startInvocationCount) { const cache = flowTypeCache || (flowTypeCache = []); cache[getNodeId(node)] = type; - setNodeFlags(node, node.flags | 134217728 /* TypeCached */); + setNodeFlags(node, node.flags | 268435456 /* TypeCached */); } return type; } @@ -78843,15 +79382,15 @@ function createTypeChecker(host) { return type; } function checkConstEnumAccess(node, type) { - const ok = node.parent.kind === 210 /* PropertyAccessExpression */ && node.parent.expression === node || node.parent.kind === 211 /* ElementAccessExpression */ && node.parent.expression === node || ((node.kind === 80 /* Identifier */ || node.kind === 165 /* QualifiedName */) && isInRightSideOfImportOrExportAssignment(node) || node.parent.kind === 185 /* TypeQuery */ && node.parent.exprName === node) || node.parent.kind === 280 /* ExportSpecifier */; + const ok = node.parent.kind === 211 /* PropertyAccessExpression */ && node.parent.expression === node || node.parent.kind === 212 /* ElementAccessExpression */ && node.parent.expression === node || ((node.kind === 80 /* Identifier */ || node.kind === 166 /* QualifiedName */) && isInRightSideOfImportOrExportAssignment(node) || node.parent.kind === 186 /* TypeQuery */ && node.parent.exprName === node) || node.parent.kind === 281 /* ExportSpecifier */; if (!ok) { - error(node, Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query); + error2(node, Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query); } if (getIsolatedModules(compilerOptions)) { Debug.assert(!!(type.symbol.flags & 128 /* ConstEnum */)); const constEnumDeclaration = type.symbol.valueDeclaration; - if (constEnumDeclaration.flags & 16777216 /* Ambient */) { - error(node, Diagnostics.Cannot_access_ambient_const_enums_when_0_is_enabled, isolatedModulesLikeFlagName); + if (constEnumDeclaration.flags & 33554432 /* Ambient */ && !isValidTypeOnlyAliasUseSite(node)) { + error2(node, Diagnostics.Cannot_access_ambient_const_enums_when_0_is_enabled, isolatedModulesLikeFlagName); } } } @@ -78870,9 +79409,9 @@ function createTypeChecker(host) { const kind = node.kind; if (cancellationToken) { switch (kind) { - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: cancellationToken.throwIfCancellationRequested(); } } @@ -78889,7 +79428,7 @@ function createTypeChecker(host) { return nullWideningType; case 15 /* NoSubstitutionTemplateLiteral */: case 11 /* StringLiteral */: - return hasSkipDirectInferenceFlag(node) ? anyType : getFreshTypeOfLiteralType(getStringLiteralType(node.text)); + return hasSkipDirectInferenceFlag(node) ? wildcardType : getFreshTypeOfLiteralType(getStringLiteralType(node.text)); case 9 /* NumericLiteral */: checkGrammarNumericLiteral(node); return getFreshTypeOfLiteralType(getNumberLiteralType(+node.text)); @@ -78903,81 +79442,81 @@ function createTypeChecker(host) { return trueType; case 97 /* FalseKeyword */: return falseType; - case 227 /* TemplateExpression */: + case 228 /* TemplateExpression */: return checkTemplateExpression(node); case 14 /* RegularExpressionLiteral */: return globalRegExpType; - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return checkArrayLiteral(node, checkMode, forceTuple); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return checkObjectLiteral(node, checkMode); - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return checkPropertyAccessExpression(node, checkMode); - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: return checkQualifiedName(node, checkMode); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return checkIndexedAccess(node, checkMode); - case 212 /* CallExpression */: + case 213 /* CallExpression */: if (node.expression.kind === 102 /* ImportKeyword */) { return checkImportCallExpression(node); } - case 213 /* NewExpression */: + case 214 /* NewExpression */: return checkCallExpression(node, checkMode); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return checkTaggedTemplateExpression(node); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return checkParenthesizedExpression(node, checkMode); - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return checkClassExpression(node); - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return checkFunctionExpressionOrObjectLiteralMethod(node, checkMode); - case 220 /* TypeOfExpression */: + case 221 /* TypeOfExpression */: return checkTypeOfExpression(node); - case 215 /* TypeAssertionExpression */: - case 233 /* AsExpression */: + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: return checkAssertion(node, checkMode); - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: return checkNonNullAssertion(node); - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return checkExpressionWithTypeArguments(node); - case 237 /* SatisfiesExpression */: + case 238 /* SatisfiesExpression */: return checkSatisfiesExpression(node); - case 235 /* MetaProperty */: + case 236 /* MetaProperty */: return checkMetaProperty(node); - case 219 /* DeleteExpression */: + case 220 /* DeleteExpression */: return checkDeleteExpression(node); - case 221 /* VoidExpression */: + case 222 /* VoidExpression */: return checkVoidExpression(node); - case 222 /* AwaitExpression */: + case 223 /* AwaitExpression */: return checkAwaitExpression(node); - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: return checkPrefixUnaryExpression(node); - case 224 /* PostfixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return checkPostfixUnaryExpression(node); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return checkBinaryExpression(node, checkMode); - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: return checkConditionalExpression(node, checkMode); - case 229 /* SpreadElement */: + case 230 /* SpreadElement */: return checkSpreadExpression(node, checkMode); - case 231 /* OmittedExpression */: + case 232 /* OmittedExpression */: return undefinedWideningType; - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: return checkYieldExpression(node); - case 236 /* SyntheticExpression */: + case 237 /* SyntheticExpression */: return checkSyntheticExpression(node); - case 293 /* JsxExpression */: + case 294 /* JsxExpression */: return checkJsxExpression(node, checkMode); - case 283 /* JsxElement */: + case 284 /* JsxElement */: return checkJsxElement(node, checkMode); - case 284 /* JsxSelfClosingElement */: + case 285 /* JsxSelfClosingElement */: return checkJsxSelfClosingElement(node, checkMode); - case 287 /* JsxFragment */: + case 288 /* JsxFragment */: return checkJsxFragment(node); - case 291 /* JsxAttributes */: + case 292 /* JsxAttributes */: return checkJsxAttributes(node, checkMode); - case 285 /* JsxOpeningElement */: + case 286 /* JsxOpeningElement */: Debug.fail("Shouldn't ever directly check a JsxOpeningElement"); } return errorType; @@ -78992,7 +79531,7 @@ function createTypeChecker(host) { const typeParameter = getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(node)); getBaseConstraintOfType(typeParameter); if (!hasNonCircularTypeParameterDefault(typeParameter)) { - error(node.default, Diagnostics.Type_parameter_0_has_a_circular_default, typeToString(typeParameter)); + error2(node.default, Diagnostics.Type_parameter_0_has_a_circular_default, typeToString(typeParameter)); } const constraintType = getConstraintOfTypeParameter(typeParameter); const defaultType = getDefaultFromTypeParameter(typeParameter); @@ -79010,7 +79549,7 @@ function createTypeChecker(host) { if (modifiers) { const symbol = getSymbolOfDeclaration(node.parent); if (isTypeAliasDeclaration(node.parent) && !(getObjectFlags(getDeclaredTypeOfSymbol(symbol)) & (16 /* Anonymous */ | 32 /* Mapped */))) { - error(node, Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types); + error2(node, Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types); } else if (modifiers === 32768 /* In */ || modifiers === 65536 /* Out */) { (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.CheckTypes, "checkTypeParameterDeferred", { parent: getTypeId(getDeclaredTypeOfSymbol(symbol)), id: getTypeId(typeParameter) }); const source = createMarkerType(symbol, typeParameter, modifiers === 65536 /* Out */ ? markerSubTypeForCheck : markerSuperTypeForCheck); @@ -79029,38 +79568,38 @@ function createTypeChecker(host) { checkVariableLikeDeclaration(node); const func = getContainingFunction(node); if (hasSyntacticModifier(node, 16476 /* ParameterPropertyModifier */)) { - if (!(func.kind === 175 /* Constructor */ && nodeIsPresent(func.body))) { - error(node, Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation); + if (!(func.kind === 176 /* Constructor */ && nodeIsPresent(func.body))) { + error2(node, Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation); } - if (func.kind === 175 /* Constructor */ && isIdentifier(node.name) && node.name.escapedText === "constructor") { - error(node.name, Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name); + if (func.kind === 176 /* Constructor */ && isIdentifier(node.name) && node.name.escapedText === "constructor") { + error2(node.name, Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name); } } if (!node.initializer && isOptionalDeclaration(node) && isBindingPattern(node.name) && func.body) { - error(node, Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature); + error2(node, Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature); } if (node.name && isIdentifier(node.name) && (node.name.escapedText === "this" || node.name.escapedText === "new")) { if (func.parameters.indexOf(node) !== 0) { - error(node, Diagnostics.A_0_parameter_must_be_the_first_parameter, node.name.escapedText); + error2(node, Diagnostics.A_0_parameter_must_be_the_first_parameter, node.name.escapedText); } - if (func.kind === 175 /* Constructor */ || func.kind === 179 /* ConstructSignature */ || func.kind === 184 /* ConstructorType */) { - error(node, Diagnostics.A_constructor_cannot_have_a_this_parameter); + if (func.kind === 176 /* Constructor */ || func.kind === 180 /* ConstructSignature */ || func.kind === 185 /* ConstructorType */) { + error2(node, Diagnostics.A_constructor_cannot_have_a_this_parameter); } - if (func.kind === 218 /* ArrowFunction */) { - error(node, Diagnostics.An_arrow_function_cannot_have_a_this_parameter); + if (func.kind === 219 /* ArrowFunction */) { + error2(node, Diagnostics.An_arrow_function_cannot_have_a_this_parameter); } - if (func.kind === 176 /* GetAccessor */ || func.kind === 177 /* SetAccessor */) { - error(node, Diagnostics.get_and_set_accessors_cannot_declare_this_parameters); + if (func.kind === 177 /* GetAccessor */ || func.kind === 178 /* SetAccessor */) { + error2(node, Diagnostics.get_and_set_accessors_cannot_declare_this_parameters); } } if (node.dotDotDotToken && !isBindingPattern(node.name) && !isTypeAssignableTo(getReducedType(getTypeOfSymbol(node.symbol)), anyReadonlyArrayType)) { - error(node, Diagnostics.A_rest_parameter_must_be_of_an_array_type); + error2(node, Diagnostics.A_rest_parameter_must_be_of_an_array_type); } } function checkTypePredicate(node) { const parent2 = getTypePredicateParent(node); if (!parent2) { - error(node, Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods); + error2(node, Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods); return; } const signature = getSignatureFromDeclaration(parent2); @@ -79075,7 +79614,7 @@ function createTypeChecker(host) { } else { if (typePredicate.parameterIndex >= 0) { if (signatureHasRestParameter(signature) && typePredicate.parameterIndex === signature.parameters.length - 1) { - error(parameterName, Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter); + error2(parameterName, Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter); } else { if (typePredicate.type) { const leadingError = () => chainDiagnosticMessages( @@ -79102,20 +79641,20 @@ function createTypeChecker(host) { } } if (!hasReportedError) { - error(node.parameterName, Diagnostics.Cannot_find_parameter_0, typePredicate.parameterName); + error2(node.parameterName, Diagnostics.Cannot_find_parameter_0, typePredicate.parameterName); } } } } function getTypePredicateParent(node) { switch (node.parent.kind) { - case 218 /* ArrowFunction */: - case 178 /* CallSignature */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 183 /* FunctionType */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 219 /* ArrowFunction */: + case 179 /* CallSignature */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 184 /* FunctionType */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: const parent2 = node.parent; if (node === parent2.type) { return parent2; @@ -79129,13 +79668,13 @@ function createTypeChecker(host) { } const name = element.name; if (name.kind === 80 /* Identifier */ && name.escapedText === predicateVariableName) { - error( + error2( predicateVariableNode, Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern, predicateVariableName ); return true; - } else if (name.kind === 206 /* ArrayBindingPattern */ || name.kind === 205 /* ObjectBindingPattern */) { + } else if (name.kind === 207 /* ArrayBindingPattern */ || name.kind === 206 /* ObjectBindingPattern */) { if (checkIfTypePredicateVariableIsDeclaredInBindingPattern( name, predicateVariableNode, @@ -79147,9 +79686,9 @@ function createTypeChecker(host) { } } function checkSignatureDeclaration(node) { - if (node.kind === 180 /* IndexSignature */) { + if (node.kind === 181 /* IndexSignature */) { checkGrammarIndexSignature(node); - } else if (node.kind === 183 /* FunctionType */ || node.kind === 261 /* FunctionDeclaration */ || node.kind === 184 /* ConstructorType */ || node.kind === 178 /* CallSignature */ || node.kind === 175 /* Constructor */ || node.kind === 179 /* ConstructSignature */) { + } else if (node.kind === 184 /* FunctionType */ || node.kind === 262 /* FunctionDeclaration */ || node.kind === 185 /* ConstructorType */ || node.kind === 179 /* CallSignature */ || node.kind === 176 /* Constructor */ || node.kind === 180 /* ConstructSignature */) { checkGrammarFunctionLikeDeclaration(node); } const functionFlags = getFunctionFlags(node); @@ -79173,35 +79712,46 @@ function createTypeChecker(host) { addLazyDiagnostic(checkSignatureDeclarationDiagnostics); function checkSignatureDeclarationDiagnostics() { checkCollisionWithArgumentsInGeneratedCode(node); - const returnTypeNode = getEffectiveReturnTypeNode(node); + let returnTypeNode = getEffectiveReturnTypeNode(node); + let returnTypeErrorLocation = returnTypeNode; + if (isInJSFile(node)) { + const typeTag = getJSDocTypeTag(node); + if (typeTag && typeTag.typeExpression && isTypeReferenceNode(typeTag.typeExpression.type)) { + const signature = getSingleCallSignature(getTypeFromTypeNode(typeTag.typeExpression)); + if (signature && signature.declaration) { + returnTypeNode = getEffectiveReturnTypeNode(signature.declaration); + returnTypeErrorLocation = typeTag.typeExpression.type; + } + } + } if (noImplicitAny && !returnTypeNode) { switch (node.kind) { - case 179 /* ConstructSignature */: - error(node, Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type); + case 180 /* ConstructSignature */: + error2(node, Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type); break; - case 178 /* CallSignature */: - error(node, Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type); + case 179 /* CallSignature */: + error2(node, Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type); break; } } - if (returnTypeNode) { + if (returnTypeNode && returnTypeErrorLocation) { const functionFlags2 = getFunctionFlags(node); if ((functionFlags2 & (4 /* Invalid */ | 1 /* Generator */)) === 1 /* Generator */) { const returnType = getTypeFromTypeNode(returnTypeNode); if (returnType === voidType) { - error(returnTypeNode, Diagnostics.A_generator_cannot_have_a_void_type_annotation); + error2(returnTypeErrorLocation, Diagnostics.A_generator_cannot_have_a_void_type_annotation); } else { const generatorYieldType = getIterationTypeOfGeneratorFunctionReturnType(0 /* Yield */, returnType, (functionFlags2 & 2 /* Async */) !== 0) || anyType; const generatorReturnType = getIterationTypeOfGeneratorFunctionReturnType(1 /* Return */, returnType, (functionFlags2 & 2 /* Async */) !== 0) || generatorYieldType; const generatorNextType = getIterationTypeOfGeneratorFunctionReturnType(2 /* Next */, returnType, (functionFlags2 & 2 /* Async */) !== 0) || unknownType; const generatorInstantiation = createGeneratorReturnType(generatorYieldType, generatorReturnType, generatorNextType, !!(functionFlags2 & 2 /* Async */)); - checkTypeAssignableTo(generatorInstantiation, returnType, returnTypeNode); + checkTypeAssignableTo(generatorInstantiation, returnType, returnTypeErrorLocation); } } else if ((functionFlags2 & 3 /* AsyncGenerator */) === 2 /* Async */) { - checkAsyncFunctionReturnType(node, returnTypeNode); + checkAsyncFunctionReturnType(node, returnTypeNode, returnTypeErrorLocation); } } - if (node.kind !== 180 /* IndexSignature */ && node.kind !== 323 /* JSDocFunctionType */) { + if (node.kind !== 181 /* IndexSignature */ && node.kind !== 324 /* JSDocFunctionType */) { registerForUnusedIdentifiersCheck(node); } } @@ -79211,7 +79761,7 @@ function createTypeChecker(host) { const staticNames = /* @__PURE__ */ new Map(); const privateIdentifiers = /* @__PURE__ */ new Map(); for (const member of node.members) { - if (member.kind === 175 /* Constructor */) { + if (member.kind === 176 /* Constructor */) { for (const param of member.parameters) { if (isParameterPropertyDeclaration(param, member) && !isBindingPattern(param.name)) { addName(instanceNames, param.name, param.name.escapedText, 3 /* GetOrSetAccessor */); @@ -79229,16 +79779,16 @@ function createTypeChecker(host) { const memberName = name && getPropertyNameForPropertyNameNode(name); if (memberName) { switch (member.kind) { - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: addName(names, name, memberName, 1 /* GetAccessor */ | privateStaticFlags); break; - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: addName(names, name, memberName, 2 /* SetAccessor */ | privateStaticFlags); break; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: addName(names, name, memberName, 3 /* GetOrSetAccessor */ | privateStaticFlags); break; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: addName(names, name, memberName, 8 /* Method */ | privateStaticFlags); break; } @@ -79249,16 +79799,16 @@ function createTypeChecker(host) { const prev = names.get(name); if (prev) { if ((prev & 16 /* PrivateStatic */) !== (meaning & 16 /* PrivateStatic */)) { - error(location, Diagnostics.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name, getTextOfNode(location)); + error2(location, Diagnostics.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name, getTextOfNode(location)); } else { const prevIsMethod = !!(prev & 8 /* Method */); const isMethod = !!(meaning & 8 /* Method */); if (prevIsMethod || isMethod) { if (prevIsMethod !== isMethod) { - error(location, Diagnostics.Duplicate_identifier_0, getTextOfNode(location)); + error2(location, Diagnostics.Duplicate_identifier_0, getTextOfNode(location)); } } else if (prev & meaning & ~16 /* PrivateStatic */) { - error(location, Diagnostics.Duplicate_identifier_0, getTextOfNode(location)); + error2(location, Diagnostics.Duplicate_identifier_0, getTextOfNode(location)); } else { names.set(name, prev | meaning); } @@ -79279,10 +79829,13 @@ function createTypeChecker(host) { case "length": case "caller": case "arguments": + if (useDefineForClassFields) { + break; + } case "prototype": const message = Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1; const className = getNameOfSymbolAsWritten(getSymbolOfDeclaration(node)); - error(memberNameNode, message, memberName, className); + error2(memberNameNode, message, memberName, className); break; } } @@ -79291,7 +79844,7 @@ function createTypeChecker(host) { function checkObjectTypeForDuplicateDeclarations(node) { const names = /* @__PURE__ */ new Map(); for (const member of node.members) { - if (member.kind === 170 /* PropertySignature */) { + if (member.kind === 171 /* PropertySignature */) { let memberName; const name = member.name; switch (name.kind) { @@ -79306,8 +79859,8 @@ function createTypeChecker(host) { continue; } if (names.get(memberName)) { - error(getNameOfDeclaration(member.symbol.valueDeclaration), Diagnostics.Duplicate_identifier_0, memberName); - error(member.name, Diagnostics.Duplicate_identifier_0, memberName); + error2(getNameOfDeclaration(member.symbol.valueDeclaration), Diagnostics.Duplicate_identifier_0, memberName); + error2(member.name, Diagnostics.Duplicate_identifier_0, memberName); } else { names.set(memberName, true); } @@ -79315,7 +79868,7 @@ function createTypeChecker(host) { } } function checkTypeForDuplicateIndexSignatures(node) { - if (node.kind === 263 /* InterfaceDeclaration */) { + if (node.kind === 264 /* InterfaceDeclaration */) { const nodeSymbol = getSymbolOfDeclaration(node); if (nodeSymbol.declarations && nodeSymbol.declarations.length > 0 && nodeSymbol.declarations[0] !== node) { return; @@ -79339,7 +79892,7 @@ function createTypeChecker(host) { indexSignatureMap.forEach((entry) => { if (entry.declarations.length > 1) { for (const declaration of entry.declarations) { - error(declaration, Diagnostics.Duplicate_index_signature_for_type_0, typeToString(entry.type)); + error2(declaration, Diagnostics.Duplicate_index_signature_for_type_0, typeToString(entry.type)); } } }); @@ -79350,13 +79903,13 @@ function createTypeChecker(host) { checkGrammarComputedPropertyName(node.name); checkVariableLikeDeclaration(node); setNodeLinksForPrivateIdentifierScope(node); - if (hasSyntacticModifier(node, 256 /* Abstract */) && node.kind === 171 /* PropertyDeclaration */ && node.initializer) { - error(node, Diagnostics.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract, declarationNameToString(node.name)); + if (hasSyntacticModifier(node, 256 /* Abstract */) && node.kind === 172 /* PropertyDeclaration */ && node.initializer) { + error2(node, Diagnostics.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract, declarationNameToString(node.name)); } } function checkPropertySignature(node) { if (isPrivateIdentifier(node.name)) { - error(node, Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies); + error2(node, Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies); } return checkPropertyDeclaration(node); } @@ -79364,21 +79917,21 @@ function createTypeChecker(host) { if (!checkGrammarMethod(node)) checkGrammarComputedPropertyName(node.name); if (isMethodDeclaration(node) && node.asteriskToken && isIdentifier(node.name) && idText(node.name) === "constructor") { - error(node.name, Diagnostics.Class_constructor_may_not_be_a_generator); + error2(node.name, Diagnostics.Class_constructor_may_not_be_a_generator); } checkFunctionOrMethodDeclaration(node); - if (hasSyntacticModifier(node, 256 /* Abstract */) && node.kind === 173 /* MethodDeclaration */ && node.body) { - error(node, Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract, declarationNameToString(node.name)); + if (hasSyntacticModifier(node, 256 /* Abstract */) && node.kind === 174 /* MethodDeclaration */ && node.body) { + error2(node, Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract, declarationNameToString(node.name)); } if (isPrivateIdentifier(node.name) && !getContainingClass(node)) { - error(node, Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies); + error2(node, Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies); } setNodeLinksForPrivateIdentifierScope(node); } function setNodeLinksForPrivateIdentifierScope(node) { if (isPrivateIdentifier(node.name) && languageVersion < 99 /* ESNext */) { for (let lexicalScope = getEnclosingBlockScopeContainer(node); !!lexicalScope; lexicalScope = getEnclosingBlockScopeContainer(lexicalScope)) { - getNodeLinks(lexicalScope).flags |= 4194304 /* ContainsClassWithPrivateIdentifiers */; + getNodeLinks(lexicalScope).flags |= 1048576 /* ContainsClassWithPrivateIdentifiers */; } if (isClassExpression(node.parent)) { const enclosingIterationStatement = getEnclosingIterationStatement(node.parent); @@ -79412,7 +79965,7 @@ function createTypeChecker(host) { if (isPrivateIdentifierClassElementDeclaration(n)) { return true; } - return n.kind === 171 /* PropertyDeclaration */ && !isStatic(n) && !!n.initializer; + return n.kind === 172 /* PropertyDeclaration */ && !isStatic(n) && !!n.initializer; } function checkConstructorDeclarationDiagnostics() { const containingClassDecl = node.parent; @@ -79422,12 +79975,12 @@ function createTypeChecker(host) { const superCall = findFirstSuperCall(node.body); if (superCall) { if (classExtendsNull) { - error(superCall, Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null); + error2(superCall, Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null); } - const superCallShouldBeRootLevel = (getEmitScriptTarget(compilerOptions) !== 99 /* ESNext */ || !useDefineForClassFields) && (some(node.parent.members, isInstancePropertyWithInitializerOrPrivateIdentifierProperty) || some(node.parameters, (p) => hasSyntacticModifier(p, 16476 /* ParameterPropertyModifier */))); + const superCallShouldBeRootLevel = !emitStandardClassFields && (some(node.parent.members, isInstancePropertyWithInitializerOrPrivateIdentifierProperty) || some(node.parameters, (p) => hasSyntacticModifier(p, 16476 /* ParameterPropertyModifier */))); if (superCallShouldBeRootLevel) { if (!superCallIsRootLevelInConstructor(superCall, node.body)) { - error(superCall, Diagnostics.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers); + error2(superCall, Diagnostics.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers); } else { let superCallStatement; for (const statement of node.body.statements) { @@ -79440,12 +79993,12 @@ function createTypeChecker(host) { } } if (superCallStatement === void 0) { - error(node, Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers); + error2(node, Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers); } } } } else if (!classExtendsNull) { - error(node, Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call); + error2(node, Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call); } } } @@ -79465,7 +80018,7 @@ function createTypeChecker(host) { } function checkAccessorDeclaration(node) { if (isIdentifier(node.name) && idText(node.name) === "constructor" && isClassLike(node.parent)) { - error(node.name, Diagnostics.Class_constructor_may_not_be_an_accessor); + error2(node.name, Diagnostics.Class_constructor_may_not_be_an_accessor); } addLazyDiagnostic(checkAccessorDeclarationDiagnostics); checkSourceElement(node.body); @@ -79475,36 +80028,36 @@ function createTypeChecker(host) { checkGrammarComputedPropertyName(node.name); checkDecorators(node); checkSignatureDeclaration(node); - if (node.kind === 176 /* GetAccessor */) { - if (!(node.flags & 16777216 /* Ambient */) && nodeIsPresent(node.body) && node.flags & 256 /* HasImplicitReturn */) { - if (!(node.flags & 512 /* HasExplicitReturn */)) { - error(node.name, Diagnostics.A_get_accessor_must_return_a_value); + if (node.kind === 177 /* GetAccessor */) { + if (!(node.flags & 33554432 /* Ambient */) && nodeIsPresent(node.body) && node.flags & 512 /* HasImplicitReturn */) { + if (!(node.flags & 1024 /* HasExplicitReturn */)) { + error2(node.name, Diagnostics.A_get_accessor_must_return_a_value); } } } - if (node.name.kind === 166 /* ComputedPropertyName */) { + if (node.name.kind === 167 /* ComputedPropertyName */) { checkComputedPropertyName(node.name); } if (hasBindableName(node)) { const symbol = getSymbolOfDeclaration(node); - const getter = getDeclarationOfKind(symbol, 176 /* GetAccessor */); - const setter = getDeclarationOfKind(symbol, 177 /* SetAccessor */); + const getter = getDeclarationOfKind(symbol, 177 /* GetAccessor */); + const setter = getDeclarationOfKind(symbol, 178 /* SetAccessor */); if (getter && setter && !(getNodeCheckFlags(getter) & 1 /* TypeChecked */)) { getNodeLinks(getter).flags |= 1 /* TypeChecked */; const getterFlags = getEffectiveModifierFlags(getter); const setterFlags = getEffectiveModifierFlags(setter); if ((getterFlags & 256 /* Abstract */) !== (setterFlags & 256 /* Abstract */)) { - error(getter.name, Diagnostics.Accessors_must_both_be_abstract_or_non_abstract); - error(setter.name, Diagnostics.Accessors_must_both_be_abstract_or_non_abstract); + error2(getter.name, Diagnostics.Accessors_must_both_be_abstract_or_non_abstract); + error2(setter.name, Diagnostics.Accessors_must_both_be_abstract_or_non_abstract); } if (getterFlags & 16 /* Protected */ && !(setterFlags & (16 /* Protected */ | 8 /* Private */)) || getterFlags & 8 /* Private */ && !(setterFlags & 8 /* Private */)) { - error(getter.name, Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter); - error(setter.name, Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter); + error2(getter.name, Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter); + error2(setter.name, Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter); } } } const returnType = getTypeOfAccessors(getSymbolOfDeclaration(node)); - if (node.kind === 176 /* GetAccessor */) { + if (node.kind === 177 /* GetAccessor */) { checkAllCodePathsInNonVoidFunctionReturnOrThrow(node, returnType); } } @@ -79565,7 +80118,7 @@ function createTypeChecker(host) { } function checkTypeReferenceNode(node) { checkGrammarTypeArguments(node, node.typeArguments); - if (node.kind === 182 /* TypeReference */ && !isInJSFile(node) && !isInJSDoc(node) && node.typeArguments && node.typeName.end !== node.typeArguments.pos) { + if (node.kind === 183 /* TypeReference */ && !isInJSFile(node) && !isInJSDoc(node) && node.typeArguments && node.typeName.end !== node.typeArguments.pos) { const sourceFile = getSourceFileOfNode(node); if (scanTokenAtPosition(sourceFile, node.typeName.end) === 25 /* DotToken */) { grammarErrorAtPos(node, skipTrivia(sourceFile.text, node.typeName.end), 1, Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments); @@ -79587,7 +80140,7 @@ function createTypeChecker(host) { } const symbol = getNodeLinks(node).resolvedSymbol; if (symbol) { - if (some(symbol.declarations, (d) => isTypeDeclaration(d) && !!(d.flags & 268435456 /* Deprecated */))) { + if (some(symbol.declarations, (d) => isTypeDeclaration(d) && !!(d.flags & 536870912 /* Deprecated */))) { addDeprecatedSuggestion( getDeprecatedSuggestionNode(node), symbol.declarations, @@ -79627,17 +80180,12 @@ function createTypeChecker(host) { const elementTypes = node.elements; let seenOptionalElement = false; let seenRestElement = false; - const hasNamedElement = some(elementTypes, isNamedTupleMember); for (const e of elementTypes) { - if (e.kind !== 201 /* NamedTupleMember */ && hasNamedElement) { - grammarErrorOnNode(e, Diagnostics.Tuple_members_must_all_have_names_or_all_not_have_names); - break; - } const flags = getTupleElementFlags(e); if (flags & 8 /* Variadic */) { const type = getTypeFromTypeNode(e.type); if (!isArrayLikeType(type)) { - error(e, Diagnostics.A_rest_element_type_must_be_an_array_type); + error2(e, Diagnostics.A_rest_element_type_must_be_an_array_type); break; } if (isArrayType(type) || isTupleType(type) && type.target.combinedFlags & 4 /* Rest */) { @@ -79674,8 +80222,8 @@ function createTypeChecker(host) { const objectType = type.objectType; const indexType = type.indexType; if (isTypeAssignableTo(indexType, getIndexType(objectType, 0 /* None */))) { - if (accessNode.kind === 211 /* ElementAccessExpression */ && isAssignmentTarget(accessNode) && getObjectFlags(objectType) & 32 /* Mapped */ && getMappedTypeModifiers(objectType) & 1 /* IncludeReadonly */) { - error(accessNode, Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(objectType)); + if (accessNode.kind === 212 /* ElementAccessExpression */ && isAssignmentTarget(accessNode) && getObjectFlags(objectType) & 32 /* Mapped */ && getMappedTypeModifiers(objectType) & 1 /* IncludeReadonly */) { + error2(accessNode, Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(objectType)); } return type; } @@ -79688,12 +80236,12 @@ function createTypeChecker(host) { if (propertyName) { const propertySymbol = forEachType(apparentObjectType, (t) => getPropertyOfType(t, propertyName)); if (propertySymbol && getDeclarationModifierFlagsFromSymbol(propertySymbol) & 24 /* NonPublicAccessibilityModifier */) { - error(accessNode, Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter, unescapeLeadingUnderscores(propertyName)); + error2(accessNode, Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter, unescapeLeadingUnderscores(propertyName)); return errorType; } } } - error(accessNode, Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), typeToString(objectType)); + error2(accessNode, Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), typeToString(objectType)); return errorType; } function checkIndexedAccessType(node) { @@ -79735,7 +80283,7 @@ function createTypeChecker(host) { forEachChild(node, checkSourceElement); } function checkInferType(node) { - if (!findAncestor(node, (n) => n.parent && n.parent.kind === 193 /* ConditionalType */ && n.parent.extendsType === n)) { + if (!findAncestor(node, (n) => n.parent && n.parent.kind === 194 /* ConditionalType */ && n.parent.extendsType === n)) { grammarErrorOnNode(node, Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type); } checkSourceElement(node.typeParameter); @@ -79745,11 +80293,11 @@ function createTypeChecker(host) { if (!links.typeParametersChecked) { links.typeParametersChecked = true; const typeParameter = getDeclaredTypeOfTypeParameter(symbol); - const declarations = getDeclarationsOfKind(symbol, 167 /* TypeParameter */); + const declarations = getDeclarationsOfKind(symbol, 168 /* TypeParameter */); if (!areTypeParametersIdentical(declarations, [typeParameter], (decl) => [decl])) { const name = symbolToString(symbol); for (const declaration of declarations) { - error(declaration.name, Diagnostics.All_declarations_of_0_must_have_identical_constraints, name); + error2(declaration.name, Diagnostics.All_declarations_of_0_must_have_identical_constraints, name); } } } @@ -79783,22 +80331,23 @@ function createTypeChecker(host) { if (node.dotDotDotToken && node.questionToken) { grammarErrorOnNode(node, Diagnostics.A_tuple_member_cannot_be_both_optional_and_rest); } - if (node.type.kind === 189 /* OptionalType */) { + if (node.type.kind === 190 /* OptionalType */) { grammarErrorOnNode(node.type, Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type); } - if (node.type.kind === 190 /* RestType */) { + if (node.type.kind === 191 /* RestType */) { grammarErrorOnNode(node.type, Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type); } checkSourceElement(node.type); getTypeFromTypeNode(node); } function isPrivateWithinAmbient(node) { - return (hasEffectiveModifier(node, 8 /* Private */) || isPrivateIdentifierClassElementDeclaration(node)) && !!(node.flags & 16777216 /* Ambient */); + return (hasEffectiveModifier(node, 8 /* Private */) || isPrivateIdentifierClassElementDeclaration(node)) && !!(node.flags & 33554432 /* Ambient */); } function getEffectiveDeclarationFlags(n, flagsToCheck) { - let flags = getCombinedModifierFlags(n); - if (n.parent.kind !== 263 /* InterfaceDeclaration */ && n.parent.kind !== 262 /* ClassDeclaration */ && n.parent.kind !== 230 /* ClassExpression */ && n.flags & 16777216 /* Ambient */) { - if (!(flags & 2 /* Ambient */) && !(isModuleBlock(n.parent) && isModuleDeclaration(n.parent.parent) && isGlobalScopeAugmentation(n.parent.parent))) { + let flags = getCombinedModifierFlagsCached(n); + if (n.parent.kind !== 264 /* InterfaceDeclaration */ && n.parent.kind !== 263 /* ClassDeclaration */ && n.parent.kind !== 231 /* ClassExpression */ && n.flags & 33554432 /* Ambient */) { + const container = getEnclosingContainer(n); + if (container && container.flags & 128 /* ExportContext */ && !(flags & 2 /* Ambient */) && !(isModuleBlock(n.parent) && isModuleDeclaration(n.parent.parent) && isGlobalScopeAugmentation(n.parent.parent))) { flags |= 1 /* Export */; } flags |= 2 /* Ambient */; @@ -79820,13 +80369,13 @@ function createTypeChecker(host) { forEach(overloads, (o) => { const deviation = getEffectiveDeclarationFlags(o, flagsToCheck2) ^ canonicalFlags; if (deviation & 1 /* Export */) { - error(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported); + error2(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported); } else if (deviation & 2 /* Ambient */) { - error(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient); + error2(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient); } else if (deviation & (8 /* Private */ | 16 /* Protected */)) { - error(getNameOfDeclaration(o) || o, Diagnostics.Overload_signatures_must_all_be_public_private_or_protected); + error2(getNameOfDeclaration(o) || o, Diagnostics.Overload_signatures_must_all_be_public_private_or_protected); } else if (deviation & 256 /* Abstract */) { - error(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract); + error2(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract); } }); } @@ -79837,7 +80386,7 @@ function createTypeChecker(host) { forEach(overloads, (o) => { const deviation = hasQuestionToken(o) !== canonicalHasQuestionToken; if (deviation) { - error(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_optional_or_required); + error2(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_optional_or_required); } }); } @@ -79873,27 +80422,27 @@ function createTypeChecker(host) { (isPrivateIdentifier(node.name) && isPrivateIdentifier(subsequentName) && node.name.escapedText === subsequentName.escapedText || // Both are computed property names isComputedPropertyName(node.name) && isComputedPropertyName(subsequentName) && isTypeIdenticalTo(checkComputedPropertyName(node.name), checkComputedPropertyName(subsequentName)) || // Both are literal property names that are the same. isPropertyNameLiteral(node.name) && isPropertyNameLiteral(subsequentName) && getEscapedTextOfIdentifierOrLiteral(node.name) === getEscapedTextOfIdentifierOrLiteral(subsequentName))) { - const reportError = (node.kind === 173 /* MethodDeclaration */ || node.kind === 172 /* MethodSignature */) && isStatic(node) !== isStatic(subsequentNode); + const reportError = (node.kind === 174 /* MethodDeclaration */ || node.kind === 173 /* MethodSignature */) && isStatic(node) !== isStatic(subsequentNode); if (reportError) { const diagnostic = isStatic(node) ? Diagnostics.Function_overload_must_be_static : Diagnostics.Function_overload_must_not_be_static; - error(errorNode2, diagnostic); + error2(errorNode2, diagnostic); } return; } if (nodeIsPresent(subsequentNode.body)) { - error(errorNode2, Diagnostics.Function_implementation_name_must_be_0, declarationNameToString(node.name)); + error2(errorNode2, Diagnostics.Function_implementation_name_must_be_0, declarationNameToString(node.name)); return; } } } const errorNode = node.name || node; if (isConstructor) { - error(errorNode, Diagnostics.Constructor_implementation_is_missing); + error2(errorNode, Diagnostics.Constructor_implementation_is_missing); } else { if (hasSyntacticModifier(node, 256 /* Abstract */)) { - error(errorNode, Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive); + error2(errorNode, Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive); } else { - error(errorNode, Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration); + error2(errorNode, Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration); } } } @@ -79904,15 +80453,15 @@ function createTypeChecker(host) { if (declarations) { for (const current of declarations) { const node = current; - const inAmbientContext = node.flags & 16777216 /* Ambient */; - const inAmbientContextOrInterface = node.parent && (node.parent.kind === 263 /* InterfaceDeclaration */ || node.parent.kind === 186 /* TypeLiteral */) || inAmbientContext; + const inAmbientContext = node.flags & 33554432 /* Ambient */; + const inAmbientContextOrInterface = node.parent && (node.parent.kind === 264 /* InterfaceDeclaration */ || node.parent.kind === 187 /* TypeLiteral */) || inAmbientContext; if (inAmbientContextOrInterface) { previousDeclaration = void 0; } - if ((node.kind === 262 /* ClassDeclaration */ || node.kind === 230 /* ClassExpression */) && !inAmbientContext) { + if ((node.kind === 263 /* ClassDeclaration */ || node.kind === 231 /* ClassExpression */) && !inAmbientContext) { hasNonAmbientClass = true; } - if (node.kind === 261 /* FunctionDeclaration */ || node.kind === 173 /* MethodDeclaration */ || node.kind === 172 /* MethodSignature */ || node.kind === 175 /* Constructor */) { + if (node.kind === 262 /* FunctionDeclaration */ || node.kind === 174 /* MethodDeclaration */ || node.kind === 173 /* MethodSignature */ || node.kind === 176 /* Constructor */) { functionDeclarations.push(node); const currentNodeFlags = getEffectiveDeclarationFlags(node, flagsToCheck); someNodeFlags |= currentNodeFlags; @@ -79956,21 +80505,21 @@ function createTypeChecker(host) { } if (multipleConstructorImplementation) { forEach(functionDeclarations, (declaration) => { - error(declaration, Diagnostics.Multiple_constructor_implementations_are_not_allowed); + error2(declaration, Diagnostics.Multiple_constructor_implementations_are_not_allowed); }); } if (duplicateFunctionDeclaration) { forEach(functionDeclarations, (declaration) => { - error(getNameOfDeclaration(declaration) || declaration, Diagnostics.Duplicate_function_implementation); + error2(getNameOfDeclaration(declaration) || declaration, Diagnostics.Duplicate_function_implementation); }); } if (hasNonAmbientClass && !isConstructor && symbol.flags & 16 /* Function */ && declarations) { - const relatedDiagnostics = filter(declarations, (d) => d.kind === 262 /* ClassDeclaration */).map((d) => createDiagnosticForNode(d, Diagnostics.Consider_adding_a_declare_modifier_to_this_class)); + const relatedDiagnostics = filter(declarations, (d) => d.kind === 263 /* ClassDeclaration */).map((d) => createDiagnosticForNode(d, Diagnostics.Consider_adding_a_declare_modifier_to_this_class)); forEach(declarations, (declaration) => { - const diagnostic = declaration.kind === 262 /* ClassDeclaration */ ? Diagnostics.Class_declaration_cannot_implement_overload_list_for_0 : declaration.kind === 261 /* FunctionDeclaration */ ? Diagnostics.Function_with_bodies_can_only_merge_with_classes_that_are_ambient : void 0; + const diagnostic = declaration.kind === 263 /* ClassDeclaration */ ? Diagnostics.Class_declaration_cannot_implement_overload_list_for_0 : declaration.kind === 262 /* FunctionDeclaration */ ? Diagnostics.Function_with_bodies_can_only_merge_with_classes_that_are_ambient : void 0; if (diagnostic) { addRelatedInfo( - error(getNameOfDeclaration(declaration) || declaration, diagnostic, symbolName(symbol)), + error2(getNameOfDeclaration(declaration) || declaration, diagnostic, symbolName(symbol)), ...relatedDiagnostics ); } @@ -79991,7 +80540,7 @@ function createTypeChecker(host) { if (!isImplementationCompatibleWithOverload(bodySignature, signature)) { const errorNode = signature.declaration && isJSDocSignature(signature.declaration) ? signature.declaration.parent.tagName : signature.declaration; addRelatedInfo( - error(errorNode, Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature), + error2(errorNode, Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature), createDiagnosticForNode(bodyDeclaration, Diagnostics.The_implementation_signature_is_declared_here) ); break; @@ -80038,54 +80587,54 @@ function createTypeChecker(host) { const declarationSpaces = getDeclarationSpaces(d); const name = getNameOfDeclaration(d); if (declarationSpaces & commonDeclarationSpacesForDefaultAndNonDefault) { - error(name, Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead, declarationNameToString(name)); + error2(name, Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead, declarationNameToString(name)); } else if (declarationSpaces & commonDeclarationSpacesForExportsAndLocals) { - error(name, Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local, declarationNameToString(name)); + error2(name, Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local, declarationNameToString(name)); } } } function getDeclarationSpaces(decl) { let d = decl; switch (d.kind) { - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 352 /* JSDocTypedefTag */: - case 344 /* JSDocCallbackTag */: - case 346 /* JSDocEnumTag */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 353 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: + case 347 /* JSDocEnumTag */: return 2 /* ExportType */; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return isAmbientModule(d) || getModuleInstanceState(d) !== 0 /* NonInstantiated */ ? 4 /* ExportNamespace */ | 1 /* ExportValue */ : 4 /* ExportNamespace */; - case 262 /* ClassDeclaration */: - case 265 /* EnumDeclaration */: - case 305 /* EnumMember */: + case 263 /* ClassDeclaration */: + case 266 /* EnumDeclaration */: + case 306 /* EnumMember */: return 2 /* ExportType */ | 1 /* ExportValue */; - case 311 /* SourceFile */: + case 312 /* SourceFile */: return 2 /* ExportType */ | 1 /* ExportValue */ | 4 /* ExportNamespace */; - case 276 /* ExportAssignment */: - case 225 /* BinaryExpression */: + case 277 /* ExportAssignment */: + case 226 /* BinaryExpression */: const node2 = d; const expression = isExportAssignment(node2) ? node2.expression : node2.right; if (!isEntityNameExpression(expression)) { return 1 /* ExportValue */; } d = expression; - case 270 /* ImportEqualsDeclaration */: - case 273 /* NamespaceImport */: - case 272 /* ImportClause */: + case 271 /* ImportEqualsDeclaration */: + case 274 /* NamespaceImport */: + case 273 /* ImportClause */: let result = 0 /* None */; const target = resolveAlias(getSymbolOfDeclaration(d)); forEach(target.declarations, (d2) => { result |= getDeclarationSpaces(d2); }); return result; - case 259 /* VariableDeclaration */: - case 207 /* BindingElement */: - case 261 /* FunctionDeclaration */: - case 275 /* ImportSpecifier */: + case 260 /* VariableDeclaration */: + case 208 /* BindingElement */: + case 262 /* FunctionDeclaration */: + case 276 /* ImportSpecifier */: case 80 /* Identifier */: return 1 /* ExportValue */; - case 172 /* MethodSignature */: - case 170 /* PropertySignature */: + case 173 /* MethodSignature */: + case 171 /* PropertySignature */: return 2 /* ExportType */; default: return Debug.failBadSyntaxKind(d); @@ -80120,7 +80669,7 @@ function createTypeChecker(host) { const thenSignatures = thenFunction ? getSignaturesOfType(thenFunction, 0 /* Call */) : emptyArray; if (thenSignatures.length === 0) { if (errorNode) { - error(errorNode, Diagnostics.A_promise_must_have_a_then_method); + error2(errorNode, Diagnostics.A_promise_must_have_a_then_method); } return void 0; } @@ -80140,7 +80689,7 @@ function createTypeChecker(host) { thisTypeForErrorOut.value = thisTypeForError; } if (errorNode) { - error(errorNode, Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1, typeToString(type), typeToString(thisTypeForError)); + error2(errorNode, Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1, typeToString(type), typeToString(thisTypeForError)); } return void 0; } @@ -80151,7 +80700,7 @@ function createTypeChecker(host) { const onfulfilledParameterSignatures = getSignaturesOfType(onfulfilledParameterType, 0 /* Call */); if (onfulfilledParameterSignatures.length === 0) { if (errorNode) { - error(errorNode, Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback); + error2(errorNode, Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback); } return void 0; } @@ -80232,7 +80781,7 @@ function createTypeChecker(host) { if (type.flags & 1048576 /* Union */) { if (awaitedTypeStack.lastIndexOf(type.id) >= 0) { if (errorNode) { - error(errorNode, Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method); + error2(errorNode, Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method); } return void 0; } @@ -80255,7 +80804,7 @@ function createTypeChecker(host) { if (promisedType) { if (type.id === promisedType.id || awaitedTypeStack.lastIndexOf(promisedType.id) >= 0) { if (errorNode) { - error(errorNode, Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method); + error2(errorNode, Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method); } return void 0; } @@ -80281,7 +80830,7 @@ function createTypeChecker(host) { } return typeAsAwaitable.awaitedTypeOfType = type; } - function checkAsyncFunctionReturnType(node, returnTypeNode) { + function checkAsyncFunctionReturnType(node, returnTypeNode, returnTypeErrorLocation) { const returnType = getTypeFromTypeNode(returnTypeNode); if (languageVersion >= 2 /* ES2015 */) { if (isErrorType(returnType)) { @@ -80292,7 +80841,7 @@ function createTypeChecker(host) { true ); if (globalPromiseType !== emptyGenericType && !isReferenceToType2(returnType, globalPromiseType)) { - error(returnTypeNode, Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0, typeToString(getAwaitedTypeNoAlias(returnType) || voidType)); + reportErrorForInvalidReturnType(Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0, returnTypeNode, returnTypeErrorLocation, typeToString(getAwaitedTypeNoAlias(returnType) || voidType)); return; } } else { @@ -80302,7 +80851,7 @@ function createTypeChecker(host) { } const promiseConstructorName = getEntityNameFromTypeNode(returnTypeNode); if (promiseConstructorName === void 0) { - error(returnTypeNode, Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, typeToString(returnType)); + reportErrorForInvalidReturnType(Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, returnTypeNode, returnTypeErrorLocation, typeToString(returnType)); return; } const promiseConstructorSymbol = resolveEntityName( @@ -80317,9 +80866,9 @@ function createTypeChecker(host) { /*reportErrors*/ false )) { - error(returnTypeNode, Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option); + error2(returnTypeErrorLocation, Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option); } else { - error(returnTypeNode, Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, entityNameToString(promiseConstructorName)); + reportErrorForInvalidReturnType(Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, returnTypeNode, returnTypeErrorLocation, entityNameToString(promiseConstructorName)); } return; } @@ -80328,21 +80877,22 @@ function createTypeChecker(host) { true ); if (globalPromiseConstructorLikeType === emptyObjectType) { - error(returnTypeNode, Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, entityNameToString(promiseConstructorName)); + reportErrorForInvalidReturnType(Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, returnTypeNode, returnTypeErrorLocation, entityNameToString(promiseConstructorName)); return; } - if (!checkTypeAssignableTo( - promiseConstructorType, - globalPromiseConstructorLikeType, - returnTypeNode, - Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value - )) { + const headMessage = Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value; + const errorInfo = () => returnTypeNode === returnTypeErrorLocation ? void 0 : chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type + ); + if (!checkTypeAssignableTo(promiseConstructorType, globalPromiseConstructorLikeType, returnTypeErrorLocation, headMessage, errorInfo)) { return; } const rootName = promiseConstructorName && getFirstIdentifier(promiseConstructorName); const collidingSymbol = getSymbol2(node.locals, rootName.escapedText, 111551 /* Value */); if (collidingSymbol) { - error( + error2( collidingSymbol.valueDeclaration, Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions, idText(rootName), @@ -80358,6 +80908,14 @@ function createTypeChecker(host) { node, Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member ); + function reportErrorForInvalidReturnType(message, returnTypeNode2, returnTypeErrorLocation2, typeName) { + if (returnTypeNode2 === returnTypeErrorLocation2) { + error2(returnTypeErrorLocation2, message, typeName); + } else { + const diag2 = error2(returnTypeErrorLocation2, Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type); + addRelatedInfo(diag2, createDiagnosticForNode(returnTypeNode2, message, typeName)); + } + } } function checkDecorator(node) { const signature = getResolvedSignature(node); @@ -80372,21 +80930,21 @@ function createTypeChecker(host) { let headMessage; const expectedReturnType = decoratorSignature.resolvedReturnType; switch (node.parent.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: headMessage = Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1; break; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: if (!legacyDecorators) { headMessage = Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1; break; } - case 168 /* Parameter */: + case 169 /* Parameter */: headMessage = Diagnostics.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any; break; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: headMessage = Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1; break; default: @@ -80455,7 +81013,7 @@ function createTypeChecker(host) { if (canCollectSymbolAliasAccessabilityData && symbolIsValue(rootSymbol) && !isConstEnumOrConstEnumOnlyModule(resolveAlias(rootSymbol)) && !getTypeOnlyAliasDeclaration(rootSymbol)) { markAliasSymbolAsReferenced(rootSymbol); } else if (forDecoratorMetadata && getIsolatedModules(compilerOptions) && getEmitModuleKind(compilerOptions) >= 5 /* ES2015 */ && !symbolIsValue(rootSymbol) && !some(rootSymbol.declarations, isTypeOnlyImportOrExportDeclaration)) { - const diag2 = error(typeName, Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled); + const diag2 = error2(typeName, Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled); const aliasDeclaration = find(rootSymbol.declarations || emptyArray, isAliasSymbolDeclaration2); if (aliasDeclaration) { addRelatedInfo(diag2, createDiagnosticForNode(aliasDeclaration, Diagnostics._0_was_imported_here, idText(rootName))); @@ -80476,15 +81034,15 @@ function createTypeChecker(host) { function getEntityNameForDecoratorMetadata(node) { if (node) { switch (node.kind) { - case 192 /* IntersectionType */: - case 191 /* UnionType */: + case 193 /* IntersectionType */: + case 192 /* UnionType */: return getEntityNameForDecoratorMetadataFromTypeList(node.types); - case 193 /* ConditionalType */: + case 194 /* ConditionalType */: return getEntityNameForDecoratorMetadataFromTypeList([node.trueType, node.falseType]); - case 195 /* ParenthesizedType */: - case 201 /* NamedTupleMember */: + case 196 /* ParenthesizedType */: + case 202 /* NamedTupleMember */: return getEntityNameForDecoratorMetadata(node.type); - case 182 /* TypeReference */: + case 183 /* TypeReference */: return node.typeName; } } @@ -80492,13 +81050,13 @@ function createTypeChecker(host) { function getEntityNameForDecoratorMetadataFromTypeList(types) { let commonEntityName; for (let typeNode of types) { - while (typeNode.kind === 195 /* ParenthesizedType */ || typeNode.kind === 201 /* NamedTupleMember */) { + while (typeNode.kind === 196 /* ParenthesizedType */ || typeNode.kind === 202 /* NamedTupleMember */) { typeNode = typeNode.type; } if (typeNode.kind === 146 /* NeverKeyword */) { continue; } - if (!strictNullChecks && (typeNode.kind === 200 /* LiteralType */ && typeNode.literal.kind === 106 /* NullKeyword */ || typeNode.kind === 157 /* UndefinedKeyword */)) { + if (!strictNullChecks && (typeNode.kind === 201 /* LiteralType */ && typeNode.literal.kind === 106 /* NullKeyword */ || typeNode.kind === 157 /* UndefinedKeyword */)) { continue; } const individualEntityName = getEntityNameForDecoratorMetadata(typeNode); @@ -80529,7 +81087,7 @@ function createTypeChecker(host) { } if (legacyDecorators) { checkExternalEmitHelpers(firstDecorator, 8 /* Decorate */); - if (node.kind === 168 /* Parameter */) { + if (node.kind === 169 /* Parameter */) { checkExternalEmitHelpers(firstDecorator, 32 /* Param */); } } else if (languageVersion < 99 /* ESNext */) { @@ -80555,7 +81113,7 @@ function createTypeChecker(host) { if (compilerOptions.emitDecoratorMetadata) { checkExternalEmitHelpers(firstDecorator, 16 /* Metadata */); switch (node.kind) { - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: const constructor = getFirstConstructorWithBody(node); if (constructor) { for (const parameter of constructor.parameters) { @@ -80563,27 +81121,28 @@ function createTypeChecker(host) { } } break; - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - const otherKind = node.kind === 176 /* GetAccessor */ ? 177 /* SetAccessor */ : 176 /* GetAccessor */; + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + const otherKind = node.kind === 177 /* GetAccessor */ ? 178 /* SetAccessor */ : 177 /* GetAccessor */; const otherAccessor = getDeclarationOfKind(getSymbolOfDeclaration(node), otherKind); markDecoratorMedataDataTypeNodeAsReferenced(getAnnotatedAccessorTypeNode(node) || otherAccessor && getAnnotatedAccessorTypeNode(otherAccessor)); break; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: for (const parameter of node.parameters) { markDecoratorMedataDataTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(parameter)); } markDecoratorMedataDataTypeNodeAsReferenced(getEffectiveReturnTypeNode(node)); break; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: markDecoratorMedataDataTypeNodeAsReferenced(getEffectiveTypeAnnotationNode(node)); break; - case 168 /* Parameter */: + case 169 /* Parameter */: markDecoratorMedataDataTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(node)); const containingSignature = node.parent; for (const parameter of containingSignature.parameters) { markDecoratorMedataDataTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(parameter)); } + markDecoratorMedataDataTypeNodeAsReferenced(getEffectiveReturnTypeNode(containingSignature)); break; } } @@ -80603,7 +81162,7 @@ function createTypeChecker(host) { } function checkJSDocTypeAliasTag(node) { if (!node.typeExpression) { - error(node.name, Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags); + error2(node.name, Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags); } if (node.name) { checkTypeNameIsReserved(node.name, Diagnostics.Type_alias_name_cannot_be_0); @@ -80628,7 +81187,7 @@ function createTypeChecker(host) { if (length(tags) > 1) { for (let i = 1; i < length(tags); i++) { const tagName = tags[i].tagName; - error(tagName, Diagnostics._0_tag_already_specified, idText(tagName)); + error2(tagName, Diagnostics._0_tag_already_specified, idText(tagName)); } } } @@ -80660,40 +81219,40 @@ function createTypeChecker(host) { function checkJSDocImplementsTag(node) { const classLike = getEffectiveJSDocHost(node); if (!classLike || !isClassDeclaration(classLike) && !isClassExpression(classLike)) { - error(classLike, Diagnostics.JSDoc_0_is_not_attached_to_a_class, idText(node.tagName)); + error2(classLike, Diagnostics.JSDoc_0_is_not_attached_to_a_class, idText(node.tagName)); } } function checkJSDocAugmentsTag(node) { const classLike = getEffectiveJSDocHost(node); if (!classLike || !isClassDeclaration(classLike) && !isClassExpression(classLike)) { - error(classLike, Diagnostics.JSDoc_0_is_not_attached_to_a_class, idText(node.tagName)); + error2(classLike, Diagnostics.JSDoc_0_is_not_attached_to_a_class, idText(node.tagName)); return; } const augmentsTags = getJSDocTags(classLike).filter(isJSDocAugmentsTag); Debug.assert(augmentsTags.length > 0); if (augmentsTags.length > 1) { - error(augmentsTags[1], Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag); + error2(augmentsTags[1], Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag); } const name = getIdentifierFromEntityNameExpression(node.class.expression); const extend2 = getClassExtendsHeritageElement(classLike); if (extend2) { const className = getIdentifierFromEntityNameExpression(extend2.expression); if (className && name.escapedText !== className.escapedText) { - error(name, Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause, idText(node.tagName), idText(name), idText(className)); + error2(name, Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause, idText(node.tagName), idText(name), idText(className)); } } } function checkJSDocAccessibilityModifiers(node) { const host2 = getJSDocHost(node); if (host2 && isPrivateIdentifierClassElementDeclaration(host2)) { - error(node, Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier); + error2(node, Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier); } } function getIdentifierFromEntityNameExpression(node) { switch (node.kind) { case 80 /* Identifier */: return node; - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return node.name; default: return void 0; @@ -80704,7 +81263,7 @@ function createTypeChecker(host) { checkDecorators(node); checkSignatureDeclaration(node); const functionFlags = getFunctionFlags(node); - if (node.name && node.name.kind === 166 /* ComputedPropertyName */) { + if (node.name && node.name.kind === 167 /* ComputedPropertyName */) { checkComputedPropertyName(node.name); } if (hasBindableName(node)) { @@ -80712,7 +81271,7 @@ function createTypeChecker(host) { const localSymbol = node.localSymbol || symbol; const firstDeclaration = (_a = localSymbol.declarations) == null ? void 0 : _a.find( // Get first non javascript function declaration - (declaration) => declaration.kind === node.kind && !(declaration.flags & 262144 /* JavaScriptFile */) + (declaration) => declaration.kind === node.kind && !(declaration.flags & 524288 /* JavaScriptFile */) ); if (node === firstDeclaration) { checkFunctionOrConstructorSymbol(localSymbol); @@ -80721,14 +81280,14 @@ function createTypeChecker(host) { checkFunctionOrConstructorSymbol(symbol); } } - const body = node.kind === 172 /* MethodSignature */ ? void 0 : node.body; + const body = node.kind === 173 /* MethodSignature */ ? void 0 : node.body; checkSourceElement(body); checkAllCodePathsInNonVoidFunctionReturnOrThrow(node, getReturnTypeFromAnnotation(node)); addLazyDiagnostic(checkFunctionOrMethodDeclarationDiagnostics); if (isInJSFile(node)) { const typeTag = getJSDocTypeTag(node); if (typeTag && typeTag.typeExpression && !getContextualCallSignature(getTypeFromTypeNode(typeTag.typeExpression), node)) { - error(typeTag.typeExpression.type, Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature); + error2(typeTag.typeExpression.type, Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature); } } function checkFunctionOrMethodDeclarationDiagnostics() { @@ -80757,42 +81316,42 @@ function createTypeChecker(host) { function checkUnusedIdentifiers(potentiallyUnusedIdentifiers, addDiagnostic) { for (const node of potentiallyUnusedIdentifiers) { switch (node.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: checkUnusedClassMembers(node, addDiagnostic); checkUnusedTypeParameters(node, addDiagnostic); break; - case 311 /* SourceFile */: - case 266 /* ModuleDeclaration */: - case 240 /* Block */: - case 268 /* CaseBlock */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: + case 312 /* SourceFile */: + case 267 /* ModuleDeclaration */: + case 241 /* Block */: + case 269 /* CaseBlock */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: checkUnusedLocalsAndParameters(node, addDiagnostic); break; - case 175 /* Constructor */: - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 176 /* Constructor */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: if (node.body) { checkUnusedLocalsAndParameters(node, addDiagnostic); } checkUnusedTypeParameters(node, addDiagnostic); break; - case 172 /* MethodSignature */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 264 /* TypeAliasDeclaration */: - case 263 /* InterfaceDeclaration */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 265 /* TypeAliasDeclaration */: + case 264 /* InterfaceDeclaration */: checkUnusedTypeParameters(node, addDiagnostic); break; - case 194 /* InferType */: + case 195 /* InferType */: checkUnusedInferTypeParameter(node, addDiagnostic); break; default: @@ -80811,28 +81370,28 @@ function createTypeChecker(host) { function checkUnusedClassMembers(node, addDiagnostic) { for (const member of node.members) { switch (member.kind) { - case 173 /* MethodDeclaration */: - case 171 /* PropertyDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - if (member.kind === 177 /* SetAccessor */ && member.symbol.flags & 32768 /* GetAccessor */) { + case 174 /* MethodDeclaration */: + case 172 /* PropertyDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + if (member.kind === 178 /* SetAccessor */ && member.symbol.flags & 32768 /* GetAccessor */) { break; } const symbol = getSymbolOfDeclaration(member); - if (!symbol.isReferenced && (hasEffectiveModifier(member, 8 /* Private */) || isNamedDeclaration(member) && isPrivateIdentifier(member.name)) && !(member.flags & 16777216 /* Ambient */)) { + if (!symbol.isReferenced && (hasEffectiveModifier(member, 8 /* Private */) || isNamedDeclaration(member) && isPrivateIdentifier(member.name)) && !(member.flags & 33554432 /* Ambient */)) { addDiagnostic(member, 0 /* Local */, createDiagnosticForNode(member.name, Diagnostics._0_is_declared_but_its_value_is_never_read, symbolToString(symbol))); } break; - case 175 /* Constructor */: + case 176 /* Constructor */: for (const parameter of member.parameters) { if (!parameter.symbol.isReferenced && hasSyntacticModifier(parameter, 8 /* Private */)) { addDiagnostic(parameter, 0 /* Local */, createDiagnosticForNode(parameter.name, Diagnostics.Property_0_is_declared_but_its_value_is_never_read, symbolName(parameter.symbol))); } } break; - case 180 /* IndexSignature */: - case 239 /* SemicolonClassElement */: - case 174 /* ClassStaticBlockDeclaration */: + case 181 /* IndexSignature */: + case 240 /* SemicolonClassElement */: + case 175 /* ClassStaticBlockDeclaration */: break; default: Debug.fail("Unexpected class member"); @@ -80856,7 +81415,7 @@ function createTypeChecker(host) { continue; const name = idText(typeParameter.name); const { parent: parent2 } = typeParameter; - if (parent2.kind !== 194 /* InferType */ && parent2.typeParameters.every(isTypeParameterUnused)) { + if (parent2.kind !== 195 /* InferType */ && parent2.typeParameters.every(isTypeParameterUnused)) { if (tryAddToSet(seenParentsWithEveryUnused, parent2)) { const sourceFile = getSourceFileOfNode(parent2); const range = isJSDocTemplateTag(parent2) ? rangeOfNode(parent2) : rangeOfTypeParameters(sourceFile, parent2.typeParameters); @@ -80914,7 +81473,11 @@ function createTypeChecker(host) { addToGroup(unusedDestructures, declaration.parent, declaration, getNodeId); } } else if (isVariableDeclaration(declaration)) { - addToGroup(unusedVariables, declaration.parent, declaration, getNodeId); + const blockScopeKind = getCombinedNodeFlagsCached(declaration) & 7 /* BlockScoped */; + const name = getNameOfDeclaration(declaration); + if (blockScopeKind !== 4 /* Using */ && blockScopeKind !== 6 /* AwaitUsing */ || !name || !isIdentifierThatStartsWithUnderscore(name)) { + addToGroup(unusedVariables, declaration.parent, declaration, getNodeId); + } } else { const parameter = local.valueDeclaration && tryGetRootParameterDeclaration(local.valueDeclaration); const name = local.valueDeclaration && getNameOfDeclaration(local.valueDeclaration); @@ -80935,7 +81498,7 @@ function createTypeChecker(host) { }); unusedImports.forEach(([importClause, unuseds]) => { const importDecl = importClause.parent; - const nDeclarations = (importClause.name ? 1 : 0) + (importClause.namedBindings ? importClause.namedBindings.kind === 273 /* NamespaceImport */ ? 1 : importClause.namedBindings.elements.length : 0); + const nDeclarations = (importClause.name ? 1 : 0) + (importClause.namedBindings ? importClause.namedBindings.kind === 274 /* NamespaceImport */ ? 1 : importClause.namedBindings.elements.length : 0); if (nDeclarations === unuseds.length) { addDiagnostic(importDecl, 0 /* Local */, unuseds.length === 1 ? createDiagnosticForNode(importDecl, Diagnostics._0_is_declared_but_its_value_is_never_read, idText(first(unuseds).name)) : createDiagnosticForNode(importDecl, Diagnostics.All_imports_in_import_declaration_are_unused)); } else { @@ -80946,7 +81509,7 @@ function createTypeChecker(host) { unusedDestructures.forEach(([bindingPattern, bindingElements]) => { const kind = tryGetRootParameterDeclaration(bindingPattern.parent) ? 1 /* Parameter */ : 0 /* Local */; if (bindingPattern.elements.length === bindingElements.length) { - if (bindingElements.length === 1 && bindingPattern.parent.kind === 259 /* VariableDeclaration */ && bindingPattern.parent.parent.kind === 260 /* VariableDeclarationList */) { + if (bindingElements.length === 1 && bindingPattern.parent.kind === 260 /* VariableDeclaration */ && bindingPattern.parent.parent.kind === 261 /* VariableDeclarationList */) { addToGroup(unusedVariables, bindingPattern.parent.parent, bindingPattern.parent, getNodeId); } else { addDiagnostic(bindingPattern, kind, bindingElements.length === 1 ? createDiagnosticForNode(bindingPattern, Diagnostics._0_is_declared_but_its_value_is_never_read, bindingNameText(first(bindingElements).name)) : createDiagnosticForNode(bindingPattern, Diagnostics.All_destructured_elements_are_unused)); @@ -80959,7 +81522,7 @@ function createTypeChecker(host) { }); unusedVariables.forEach(([declarationList, declarations]) => { if (declarationList.declarations.length === declarations.length) { - addDiagnostic(declarationList, 0 /* Local */, declarations.length === 1 ? createDiagnosticForNode(first(declarations).name, Diagnostics._0_is_declared_but_its_value_is_never_read, bindingNameText(first(declarations).name)) : createDiagnosticForNode(declarationList.parent.kind === 242 /* VariableStatement */ ? declarationList.parent : declarationList, Diagnostics.All_variables_are_unused)); + addDiagnostic(declarationList, 0 /* Local */, declarations.length === 1 ? createDiagnosticForNode(first(declarations).name, Diagnostics._0_is_declared_but_its_value_is_never_read, bindingNameText(first(declarations).name)) : createDiagnosticForNode(declarationList.parent.kind === 243 /* VariableStatement */ ? declarationList.parent : declarationList, Diagnostics.All_variables_are_unused)); } else { for (const decl of declarations) { addDiagnostic(decl, 0 /* Local */, createDiagnosticForNode(decl, Diagnostics._0_is_declared_but_its_value_is_never_read, bindingNameText(decl.name))); @@ -80988,21 +81551,21 @@ function createTypeChecker(host) { switch (name.kind) { case 80 /* Identifier */: return idText(name); - case 206 /* ArrayBindingPattern */: - case 205 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: + case 206 /* ObjectBindingPattern */: return bindingNameText(cast(first(name.elements), isBindingElement).name); default: return Debug.assertNever(name); } } function isImportedDeclaration(node) { - return node.kind === 272 /* ImportClause */ || node.kind === 275 /* ImportSpecifier */ || node.kind === 273 /* NamespaceImport */; + return node.kind === 273 /* ImportClause */ || node.kind === 276 /* ImportSpecifier */ || node.kind === 274 /* NamespaceImport */; } function importClauseFromImported(decl) { - return decl.kind === 272 /* ImportClause */ ? decl : decl.kind === 273 /* NamespaceImport */ ? decl.parent : decl.parent.parent; + return decl.kind === 273 /* ImportClause */ ? decl : decl.kind === 274 /* NamespaceImport */ ? decl.parent : decl.parent.parent; } function checkBlock(node) { - if (node.kind === 240 /* Block */) { + if (node.kind === 241 /* Block */) { checkGrammarStatementInAmbientContext(node); } if (isFunctionOrModuleBlock(node)) { @@ -81017,7 +81580,7 @@ function createTypeChecker(host) { } } function checkCollisionWithArgumentsInGeneratedCode(node) { - if (languageVersion >= 2 /* ES2015 */ || !hasRestParameter(node) || node.flags & 16777216 /* Ambient */ || nodeIsMissing(node.body)) { + if (languageVersion >= 2 /* ES2015 */ || !hasRestParameter(node) || node.flags & 33554432 /* Ambient */ || nodeIsMissing(node.body)) { return; } forEach(node.parameters, (p) => { @@ -81030,10 +81593,10 @@ function createTypeChecker(host) { if ((identifier == null ? void 0 : identifier.escapedText) !== name) { return false; } - if (node.kind === 171 /* PropertyDeclaration */ || node.kind === 170 /* PropertySignature */ || node.kind === 173 /* MethodDeclaration */ || node.kind === 172 /* MethodSignature */ || node.kind === 176 /* GetAccessor */ || node.kind === 177 /* SetAccessor */ || node.kind === 302 /* PropertyAssignment */) { + if (node.kind === 172 /* PropertyDeclaration */ || node.kind === 171 /* PropertySignature */ || node.kind === 174 /* MethodDeclaration */ || node.kind === 173 /* MethodSignature */ || node.kind === 177 /* GetAccessor */ || node.kind === 178 /* SetAccessor */ || node.kind === 303 /* PropertyAssignment */) { return false; } - if (node.flags & 16777216 /* Ambient */) { + if (node.flags & 33554432 /* Ambient */) { return false; } if (isImportClause(node) || isImportEqualsDeclaration(node) || isImportSpecifier(node)) { @@ -81052,9 +81615,9 @@ function createTypeChecker(host) { if (getNodeCheckFlags(current) & 4 /* CaptureThis */) { const isDeclaration2 = node.kind !== 80 /* Identifier */; if (isDeclaration2) { - error(getNameOfDeclaration(node), Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference); + error2(getNameOfDeclaration(node), Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference); } else { - error(node, Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference); + error2(node, Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference); } return true; } @@ -81066,9 +81629,9 @@ function createTypeChecker(host) { if (getNodeCheckFlags(current) & 8 /* CaptureNewTarget */) { const isDeclaration2 = node.kind !== 80 /* Identifier */; if (isDeclaration2) { - error(getNameOfDeclaration(node), Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference); + error2(getNameOfDeclaration(node), Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference); } else { - error(node, Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference); + error2(node, Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference); } return true; } @@ -81086,7 +81649,7 @@ function createTypeChecker(host) { return; } const parent2 = getDeclarationContainer(node); - if (parent2.kind === 311 /* SourceFile */ && isExternalOrCommonJsModule(parent2)) { + if (parent2.kind === 312 /* SourceFile */ && isExternalOrCommonJsModule(parent2)) { errorSkippedOn( "noEmit", name, @@ -81104,7 +81667,7 @@ function createTypeChecker(host) { return; } const parent2 = getDeclarationContainer(node); - if (parent2.kind === 311 /* SourceFile */ && isExternalOrCommonJsModule(parent2) && parent2.flags & 2048 /* HasAsyncFunctions */) { + if (parent2.kind === 312 /* SourceFile */ && isExternalOrCommonJsModule(parent2) && parent2.flags & 4096 /* HasAsyncFunctions */) { errorSkippedOn( "noEmit", name, @@ -81121,7 +81684,7 @@ function createTypeChecker(host) { } function checkWeakMapSetCollision(node) { const enclosingBlockScope = getEnclosingBlockScopeContainer(node); - if (getNodeCheckFlags(enclosingBlockScope) & 4194304 /* ContainsClassWithPrivateIdentifiers */) { + if (getNodeCheckFlags(enclosingBlockScope) & 1048576 /* ContainsClassWithPrivateIdentifiers */) { Debug.assert(isNamedDeclaration(node) && isIdentifier(node.name) && typeof node.name.escapedText === "string", "The target of a WeakMap/WeakSet collision check should be an identifier"); errorSkippedOn("noEmit", node, Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel, node.name.escapedText); } @@ -81135,18 +81698,18 @@ function createTypeChecker(host) { let hasCollision = false; if (isClassExpression(node)) { for (const member of node.members) { - if (getNodeCheckFlags(member) & 8388608 /* ContainsSuperPropertyInStaticInitializer */) { + if (getNodeCheckFlags(member) & 2097152 /* ContainsSuperPropertyInStaticInitializer */) { hasCollision = true; break; } } } else if (isFunctionExpression(node)) { - if (getNodeCheckFlags(node) & 8388608 /* ContainsSuperPropertyInStaticInitializer */) { + if (getNodeCheckFlags(node) & 2097152 /* ContainsSuperPropertyInStaticInitializer */) { hasCollision = true; } } else { const container = getEnclosingBlockScopeContainer(node); - if (container && getNodeCheckFlags(container) & 8388608 /* ContainsSuperPropertyInStaticInitializer */) { + if (container && getNodeCheckFlags(container) & 2097152 /* ContainsSuperPropertyInStaticInitializer */) { hasCollision = true; } } @@ -81170,7 +81733,7 @@ function createTypeChecker(host) { recordPotentialCollisionWithReflectInGeneratedCode(node, name); if (isClassLike(node)) { checkTypeNameIsReserved(name, Diagnostics.Class_name_cannot_be_0); - if (!(node.flags & 16777216 /* Ambient */)) { + if (!(node.flags & 33554432 /* Ambient */)) { checkClassNameCollisionWithObject(name); } } else if (isEnumDeclaration(node)) { @@ -81178,10 +81741,7 @@ function createTypeChecker(host) { } } function checkVarDeclaredNamesNotShadowed(node) { - if ((getCombinedNodeFlags(node) & 3 /* BlockScoped */) !== 0 || isParameterDeclaration(node)) { - return; - } - if (node.kind === 259 /* VariableDeclaration */ && !node.initializer) { + if ((getCombinedNodeFlagsCached(node) & 7 /* BlockScoped */) !== 0 || isParameterDeclaration(node)) { return; } const symbol = getSymbolOfDeclaration(node); @@ -81200,13 +81760,13 @@ function createTypeChecker(host) { false ); if (localDeclarationSymbol && localDeclarationSymbol !== symbol && localDeclarationSymbol.flags & 2 /* BlockScopedVariable */) { - if (getDeclarationNodeFlagsFromSymbol(localDeclarationSymbol) & 3 /* BlockScoped */) { - const varDeclList = getAncestor(localDeclarationSymbol.valueDeclaration, 260 /* VariableDeclarationList */); - const container = varDeclList.parent.kind === 242 /* VariableStatement */ && varDeclList.parent.parent ? varDeclList.parent.parent : void 0; - const namesShareScope = container && (container.kind === 240 /* Block */ && isFunctionLike(container.parent) || container.kind === 267 /* ModuleBlock */ || container.kind === 266 /* ModuleDeclaration */ || container.kind === 311 /* SourceFile */); + if (getDeclarationNodeFlagsFromSymbol(localDeclarationSymbol) & 7 /* BlockScoped */) { + const varDeclList = getAncestor(localDeclarationSymbol.valueDeclaration, 261 /* VariableDeclarationList */); + const container = varDeclList.parent.kind === 243 /* VariableStatement */ && varDeclList.parent.parent ? varDeclList.parent.parent : void 0; + const namesShareScope = container && (container.kind === 241 /* Block */ && isFunctionLike(container.parent) || container.kind === 268 /* ModuleBlock */ || container.kind === 267 /* ModuleDeclaration */ || container.kind === 312 /* SourceFile */); if (!namesShareScope) { const name = symbolToString(localDeclarationSymbol); - error(node, Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1, name, name); + error2(node, Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1, name, name); } } } @@ -81224,7 +81784,7 @@ function createTypeChecker(host) { if (!node.name) { return; } - if (node.name.kind === 166 /* ComputedPropertyName */) { + if (node.name.kind === 167 /* ComputedPropertyName */) { checkComputedPropertyName(node.name); if (hasOnlyExpressionInitializer(node) && node.initializer) { checkExpressionCached(node.initializer); @@ -81238,7 +81798,7 @@ function createTypeChecker(host) { if (isObjectBindingPattern(node.parent) && node.dotDotDotToken && languageVersion < 5 /* ES2018 */) { checkExternalEmitHelpers(node, 4 /* Rest */); } - if (node.propertyName && node.propertyName.kind === 166 /* ComputedPropertyName */) { + if (node.propertyName && node.propertyName.kind === 167 /* ComputedPropertyName */) { checkComputedPropertyName(node.propertyName); } const parent2 = node.parent.parent; @@ -81271,20 +81831,20 @@ function createTypeChecker(host) { } } if (isBindingPattern(node.name)) { - if (node.name.kind === 206 /* ArrayBindingPattern */ && languageVersion < 2 /* ES2015 */ && compilerOptions.downlevelIteration) { + if (node.name.kind === 207 /* ArrayBindingPattern */ && languageVersion < 2 /* ES2015 */ && compilerOptions.downlevelIteration) { checkExternalEmitHelpers(node, 512 /* Read */); } forEach(node.name.elements, checkSourceElement); } if (isParameter(node) && node.initializer && nodeIsMissing(getContainingFunction(node).body)) { - error(node, Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation); + error2(node, Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation); return; } if (isBindingPattern(node.name)) { if (isInAmbientOrTypeNode(node)) { return; } - const needCheckInitializer = hasOnlyExpressionInitializer(node) && node.initializer && node.parent.parent.kind !== 248 /* ForInStatement */; + const needCheckInitializer = hasOnlyExpressionInitializer(node) && node.initializer && node.parent.parent.kind !== 249 /* ForInStatement */; const needCheckWidenedType = !some(node.name.elements, not(isOmittedExpression)); if (needCheckInitializer || needCheckWidenedType) { const widenedType = getWidenedTypeForVariableLikeDeclaration(node); @@ -81316,20 +81876,45 @@ function createTypeChecker(host) { const initializer = hasOnlyExpressionInitializer(node) && getEffectiveInitializer(node); if (initializer) { const isJSObjectLiteralInitializer = isInJSFile(node) && isObjectLiteralExpression(initializer) && (initializer.properties.length === 0 || isPrototypeAccess(node.name)) && !!((_a = symbol.exports) == null ? void 0 : _a.size); - if (!isJSObjectLiteralInitializer && node.parent.parent.kind !== 248 /* ForInStatement */) { + if (!isJSObjectLiteralInitializer && node.parent.parent.kind !== 249 /* ForInStatement */) { + const initializerType = checkExpressionCached(initializer); checkTypeAssignableToAndOptionallyElaborate( - checkExpressionCached(initializer), + initializerType, type, node, initializer, /*headMessage*/ void 0 ); + const blockScopeKind = getCombinedNodeFlagsCached(node) & 7 /* BlockScoped */; + if (blockScopeKind === 6 /* AwaitUsing */) { + const globalAsyncDisposableType = getGlobalAsyncDisposableType( + /*reportErrors*/ + true + ); + const globalDisposableType = getGlobalDisposableType( + /*reportErrors*/ + true + ); + if (globalAsyncDisposableType !== emptyObjectType && globalDisposableType !== emptyObjectType) { + const optionalDisposableType = getUnionType([globalAsyncDisposableType, globalDisposableType, nullType, undefinedType]); + checkTypeAssignableTo(initializerType, optionalDisposableType, initializer, Diagnostics.The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined); + } + } else if (blockScopeKind === 4 /* Using */) { + const globalDisposableType = getGlobalDisposableType( + /*reportErrors*/ + true + ); + if (globalDisposableType !== emptyObjectType) { + const optionalDisposableType = getUnionType([globalDisposableType, nullType, undefinedType]); + checkTypeAssignableTo(initializerType, optionalDisposableType, initializer, Diagnostics.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined); + } + } } } if (symbol.declarations && symbol.declarations.length > 1) { if (some(symbol.declarations, (d) => d !== node && isVariableLike(d) && !areDeclarationFlagsIdentical(d, node))) { - error(node.name, Diagnostics.All_declarations_of_0_must_have_identical_modifiers, declarationNameToString(node.name)); + error2(node.name, Diagnostics.All_declarations_of_0_must_have_identical_modifiers, declarationNameToString(node.name)); } } } else { @@ -81348,12 +81933,12 @@ function createTypeChecker(host) { ); } if (symbol.valueDeclaration && !areDeclarationFlagsIdentical(node, symbol.valueDeclaration)) { - error(node.name, Diagnostics.All_declarations_of_0_must_have_identical_modifiers, declarationNameToString(node.name)); + error2(node.name, Diagnostics.All_declarations_of_0_must_have_identical_modifiers, declarationNameToString(node.name)); } } - if (node.kind !== 171 /* PropertyDeclaration */ && node.kind !== 170 /* PropertySignature */) { + if (node.kind !== 172 /* PropertyDeclaration */ && node.kind !== 171 /* PropertySignature */) { checkExportsOnMergedDeclarations(node); - if (node.kind === 259 /* VariableDeclaration */ || node.kind === 207 /* BindingElement */) { + if (node.kind === 260 /* VariableDeclaration */ || node.kind === 208 /* BindingElement */) { checkVarDeclaredNamesNotShadowed(node); } checkCollisionsForDeclarationName(node, node.name); @@ -81361,9 +81946,9 @@ function createTypeChecker(host) { } function errorNextVariableOrPropertyDeclarationMustHaveSameType(firstDeclaration, firstType, nextDeclaration, nextType) { const nextDeclarationName = getNameOfDeclaration(nextDeclaration); - const message = nextDeclaration.kind === 171 /* PropertyDeclaration */ || nextDeclaration.kind === 170 /* PropertySignature */ ? Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2 : Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2; + const message = nextDeclaration.kind === 172 /* PropertyDeclaration */ || nextDeclaration.kind === 171 /* PropertySignature */ ? Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2 : Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2; const declName = declarationNameToString(nextDeclarationName); - const err = error( + const err = error2( nextDeclarationName, message, declName, @@ -81378,7 +81963,7 @@ function createTypeChecker(host) { } } function areDeclarationFlagsIdentical(left, right) { - if (left.kind === 168 /* Parameter */ && right.kind === 259 /* VariableDeclaration */ || left.kind === 259 /* VariableDeclaration */ && right.kind === 168 /* Parameter */) { + if (left.kind === 169 /* Parameter */ && right.kind === 260 /* VariableDeclaration */ || left.kind === 260 /* VariableDeclaration */ && right.kind === 169 /* Parameter */) { return true; } if (hasQuestionToken(left) !== hasQuestionToken(right)) { @@ -81398,10 +81983,17 @@ function createTypeChecker(host) { checkGrammarBindingElement(node); return checkVariableLikeDeclaration(node); } + function checkVariableDeclarationList(node) { + const blockScopeKind = getCombinedNodeFlags(node) & 7 /* BlockScoped */; + if (blockScopeKind === 4 /* Using */ || blockScopeKind === 6 /* AwaitUsing */) { + checkExternalEmitHelpers(node, 33554432 /* AddDisposableResourceAndDisposeResources */); + } + forEach(node.declarations, checkSourceElement); + } function checkVariableStatement(node) { if (!checkGrammarModifiers(node) && !checkGrammarVariableDeclarationList(node.declarationList)) - checkGrammarForDisallowedLetOrConstStatement(node); - forEach(node.declarationList.declarations, checkSourceElement); + checkGrammarForDisallowedBlockScopedVariableStatement(node); + checkVariableDeclarationList(node.declarationList); } function checkExpressionStatement(node) { checkGrammarStatementInAmbientContext(node); @@ -81412,8 +82004,8 @@ function createTypeChecker(host) { const type = checkTruthinessExpression(node.expression); checkTestingKnownTruthyCallableOrAwaitableType(node.expression, type, node.thenStatement); checkSourceElement(node.thenStatement); - if (node.thenStatement.kind === 241 /* EmptyStatement */) { - error(node.thenStatement, Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement); + if (node.thenStatement.kind === 242 /* EmptyStatement */) { + error2(node.thenStatement, Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement); } checkSourceElement(node.elseStatement); } @@ -81463,7 +82055,7 @@ function createTypeChecker(host) { getTypeNameForErrorDisplay(type) ); } else { - error(location, Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead); + error2(location, Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead); } } } @@ -81529,7 +82121,7 @@ function createTypeChecker(host) { } function checkTruthinessOfType(type, node) { if (type.flags & 16384 /* Void */) { - error(node, Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness); + error2(node, Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness); } return type; } @@ -81538,13 +82130,13 @@ function createTypeChecker(host) { } function checkForStatement(node) { if (!checkGrammarStatementInAmbientContext(node)) { - if (node.initializer && node.initializer.kind === 260 /* VariableDeclarationList */) { + if (node.initializer && node.initializer.kind === 261 /* VariableDeclarationList */) { checkGrammarVariableDeclarationList(node.initializer); } } if (node.initializer) { - if (node.initializer.kind === 260 /* VariableDeclarationList */) { - forEach(node.initializer.declarations, checkVariableDeclaration); + if (node.initializer.kind === 261 /* VariableDeclarationList */) { + checkVariableDeclarationList(node.initializer); } else { checkExpression(node.initializer); } @@ -81563,7 +82155,7 @@ function createTypeChecker(host) { const container = getContainingFunctionOrClassStaticBlock(node); if (node.awaitModifier) { if (container && isClassStaticBlockDeclaration(container)) { - grammarErrorOnNode(node.awaitModifier, Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block); + grammarErrorOnNode(node.awaitModifier, Diagnostics.for_await_loops_cannot_be_used_inside_a_class_static_block); } else { const functionFlags = getFunctionFlags(container); if ((functionFlags & (4 /* Invalid */ | 2 /* Async */)) === 2 /* Async */ && languageVersion < 99 /* ESNext */) { @@ -81573,12 +82165,12 @@ function createTypeChecker(host) { } else if (compilerOptions.downlevelIteration && languageVersion < 2 /* ES2015 */) { checkExternalEmitHelpers(node, 256 /* ForOfIncludes */); } - if (node.initializer.kind === 260 /* VariableDeclarationList */) { - checkForInOrForOfVariableDeclaration(node); + if (node.initializer.kind === 261 /* VariableDeclarationList */) { + checkVariableDeclarationList(node.initializer); } else { const varExpr = node.initializer; const iteratedType = checkRightHandSideOfForOf(node); - if (varExpr.kind === 208 /* ArrayLiteralExpression */ || varExpr.kind === 209 /* ObjectLiteralExpression */) { + if (varExpr.kind === 209 /* ArrayLiteralExpression */ || varExpr.kind === 210 /* ObjectLiteralExpression */) { checkDestructuringAssignment(varExpr, iteratedType || errorType); } else { const leftType = checkExpression(varExpr); @@ -81600,19 +82192,19 @@ function createTypeChecker(host) { function checkForInStatement(node) { checkGrammarForInOrForOfStatement(node); const rightType = getNonNullableTypeIfNeeded(checkExpression(node.expression)); - if (node.initializer.kind === 260 /* VariableDeclarationList */) { + if (node.initializer.kind === 261 /* VariableDeclarationList */) { const variable = node.initializer.declarations[0]; if (variable && isBindingPattern(variable.name)) { - error(variable.name, Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern); + error2(variable.name, Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern); } - checkForInOrForOfVariableDeclaration(node); + checkVariableDeclarationList(node.initializer); } else { const varExpr = node.initializer; const leftType = checkExpression(varExpr); - if (varExpr.kind === 208 /* ArrayLiteralExpression */ || varExpr.kind === 209 /* ObjectLiteralExpression */) { - error(varExpr, Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern); + if (varExpr.kind === 209 /* ArrayLiteralExpression */ || varExpr.kind === 210 /* ObjectLiteralExpression */) { + error2(varExpr, Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern); } else if (!isTypeAssignableTo(getIndexTypeOrString(rightType), leftType)) { - error(varExpr, Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any); + error2(varExpr, Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any); } else { checkReferenceExpression( varExpr, @@ -81622,20 +82214,13 @@ function createTypeChecker(host) { } } if (rightType === neverType || !isTypeAssignableToKind(rightType, 67108864 /* NonPrimitive */ | 58982400 /* InstantiableNonPrimitive */)) { - error(node.expression, Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0, typeToString(rightType)); + error2(node.expression, Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0, typeToString(rightType)); } checkSourceElement(node.statement); if (node.locals) { registerForUnusedIdentifiersCheck(node); } } - function checkForInOrForOfVariableDeclaration(iterationStatement) { - const variableDeclarationList = iterationStatement.initializer; - if (variableDeclarationList.declarations.length >= 1) { - const decl = variableDeclarationList.declarations[0]; - checkVariableDeclaration(decl); - } - } function checkRightHandSideOfForOf(statement) { const use = statement.awaitModifier ? 15 /* ForAwaitOf */ : 13 /* ForOf */; return checkIteratedTypeOrElementType(use, checkNonNullExpression(statement.expression), undefinedType, statement.expression); @@ -81693,7 +82278,7 @@ function createTypeChecker(host) { if (hasStringConstituent) { if (languageVersion < 1 /* ES5 */) { if (errorNode) { - error(errorNode, Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher); + error2(errorNode, Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher); reportedError = true; } } @@ -82153,7 +82738,7 @@ function createTypeChecker(host) { errorOutputContainer.errors ?? (errorOutputContainer.errors = []); errorOutputContainer.errors.push(createDiagnosticForNode(errorNode, diagnostic, methodName)); } else { - error(errorNode, diagnostic, methodName); + error2(errorNode, diagnostic, methodName); } } return methodName === "next" ? noIterationTypes : void 0; @@ -82208,7 +82793,7 @@ function createTypeChecker(host) { errorOutputContainer.errors ?? (errorOutputContainer.errors = []); errorOutputContainer.errors.push(createDiagnosticForNode(errorNode, resolver.mustHaveAValueDiagnostic, methodName)); } else { - error(errorNode, resolver.mustHaveAValueDiagnostic, methodName); + error2(errorNode, resolver.mustHaveAValueDiagnostic, methodName); } } yieldType = anyType; @@ -82292,13 +82877,13 @@ function createTypeChecker(host) { const functionFlags = getFunctionFlags(container); if (strictNullChecks || node.expression || returnType.flags & 131072 /* Never */) { const exprType = node.expression ? checkExpressionCached(node.expression) : undefinedType; - if (container.kind === 177 /* SetAccessor */) { + if (container.kind === 178 /* SetAccessor */) { if (node.expression) { - error(node, Diagnostics.Setters_cannot_return_a_value); + error2(node, Diagnostics.Setters_cannot_return_a_value); } - } else if (container.kind === 175 /* Constructor */) { + } else if (container.kind === 176 /* Constructor */) { if (node.expression && !checkTypeAssignableToAndOptionallyElaborate(exprType, returnType, node, node.expression)) { - error(node, Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class); + error2(node, Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class); } } else if (getReturnTypeFromAnnotation(container)) { const unwrappedReturnType = unwrapReturnType(returnType, functionFlags) ?? returnType; @@ -82313,13 +82898,13 @@ function createTypeChecker(host) { checkTypeAssignableToAndOptionallyElaborate(unwrappedExprType, unwrappedReturnType, node, node.expression); } } - } else if (container.kind !== 175 /* Constructor */ && compilerOptions.noImplicitReturns && !isUnwrappedReturnTypeUndefinedVoidOrAny(container, returnType)) { - error(node, Diagnostics.Not_all_code_paths_return_a_value); + } else if (container.kind !== 176 /* Constructor */ && compilerOptions.noImplicitReturns && !isUnwrappedReturnTypeUndefinedVoidOrAny(container, returnType)) { + error2(node, Diagnostics.Not_all_code_paths_return_a_value); } } function checkWithStatement(node) { if (!checkGrammarStatementInAmbientContext(node)) { - if (node.flags & 32768 /* AwaitContext */) { + if (node.flags & 65536 /* AwaitContext */) { grammarErrorOnFirstToken(node, Diagnostics.with_statements_are_not_allowed_in_an_async_function_block); } } @@ -82337,7 +82922,7 @@ function createTypeChecker(host) { let hasDuplicateDefaultClause = false; const expressionType = checkExpression(node.expression); forEach(node.caseBlock.clauses, (clause) => { - if (clause.kind === 296 /* DefaultClause */ && !hasDuplicateDefaultClause) { + if (clause.kind === 297 /* DefaultClause */ && !hasDuplicateDefaultClause) { if (firstDefaultClause === void 0) { firstDefaultClause = clause; } else { @@ -82345,12 +82930,12 @@ function createTypeChecker(host) { hasDuplicateDefaultClause = true; } } - if (clause.kind === 295 /* CaseClause */) { + if (clause.kind === 296 /* CaseClause */) { addLazyDiagnostic(createLazyCaseClauseDiagnostics(clause)); } forEach(clause.statements, checkSourceElement); if (compilerOptions.noFallthroughCasesInSwitch && clause.fallthroughFlowNode && isReachableFlowNode(clause.fallthroughFlowNode)) { - error(clause, Diagnostics.Fallthrough_case_in_switch); + error2(clause, Diagnostics.Fallthrough_case_in_switch); } function createLazyCaseClauseDiagnostics(clause2) { return () => { @@ -82377,7 +82962,7 @@ function createTypeChecker(host) { if (isFunctionLike(current)) { return "quit"; } - if (current.kind === 255 /* LabeledStatement */ && current.label.escapedText === node.label.escapedText) { + if (current.kind === 256 /* LabeledStatement */ && current.label.escapedText === node.label.escapedText) { grammarErrorOnNode(node.label, Diagnostics.Duplicate_label_0, getTextOfNode(node.label)); return true; } @@ -82467,8 +83052,8 @@ function createTypeChecker(host) { return; } const indexInfos = getApplicableIndexInfos(type, propNameType); - const interfaceDeclaration = getObjectFlags(type) & 2 /* Interface */ ? getDeclarationOfKind(type.symbol, 263 /* InterfaceDeclaration */) : void 0; - const propDeclaration = declaration && declaration.kind === 225 /* BinaryExpression */ || name && name.kind === 166 /* ComputedPropertyName */ ? declaration : void 0; + const interfaceDeclaration = getObjectFlags(type) & 2 /* Interface */ ? getDeclarationOfKind(type.symbol, 264 /* InterfaceDeclaration */) : void 0; + const propDeclaration = declaration && declaration.kind === 226 /* BinaryExpression */ || name && name.kind === 167 /* ComputedPropertyName */ ? declaration : void 0; const localPropDeclaration = getParentOfSymbol(prop) === type.symbol ? declaration : void 0; for (const info of indexInfos) { const localIndexDeclaration = info.declaration && getParentOfSymbol(getSymbolOfDeclaration(info.declaration)) === type.symbol ? info.declaration : void 0; @@ -82492,7 +83077,7 @@ function createTypeChecker(host) { function checkIndexConstraintForIndexSignature(type, checkInfo) { const declaration = checkInfo.declaration; const indexInfos = getApplicableIndexInfos(type, checkInfo.keyType); - const interfaceDeclaration = getObjectFlags(type) & 2 /* Interface */ ? getDeclarationOfKind(type.symbol, 263 /* InterfaceDeclaration */) : void 0; + const interfaceDeclaration = getObjectFlags(type) & 2 /* Interface */ ? getDeclarationOfKind(type.symbol, 264 /* InterfaceDeclaration */) : void 0; const localCheckDeclaration = declaration && getParentOfSymbol(getSymbolOfDeclaration(declaration)) === type.symbol ? declaration : void 0; for (const info of indexInfos) { if (info === checkInfo) @@ -82500,7 +83085,7 @@ function createTypeChecker(host) { const localIndexDeclaration = info.declaration && getParentOfSymbol(getSymbolOfDeclaration(info.declaration)) === type.symbol ? info.declaration : void 0; const errorNode = localCheckDeclaration || localIndexDeclaration || (interfaceDeclaration && !some(getBaseTypes(type), (base) => !!getIndexInfoOfType(base, checkInfo.keyType) && !!getIndexTypeOfType(base, info.keyType)) ? interfaceDeclaration : void 0); if (errorNode && !isTypeAssignableTo(checkInfo.type, info.type)) { - error( + error2( errorNode, Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3, typeToString(checkInfo.keyType), @@ -82523,12 +83108,12 @@ function createTypeChecker(host) { case "symbol": case "void": case "object": - error(name, message, name.escapedText); + error2(name, message, name.escapedText); } } function checkClassNameCollisionWithObject(name) { if (languageVersion >= 1 /* ES5 */ && name.escapedText === "Object" && (moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(name).impliedNodeFormat === 1 /* CommonJS */)) { - error(name, Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0, ModuleKind[moduleKind]); + error2(name, Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0, ModuleKind[moduleKind]); } } function checkUnmatchedJSDocParameters(node) { @@ -82551,7 +83136,7 @@ function createTypeChecker(host) { const lastJSDocParamIndex = jsdocParameters.length - 1; const lastJSDocParam = jsdocParameters[lastJSDocParamIndex]; if (isJs && lastJSDocParam && isIdentifier(lastJSDocParam.name) && lastJSDocParam.typeExpression && lastJSDocParam.typeExpression.type && !parameters.has(lastJSDocParam.name.escapedText) && !excludedParameters.has(lastJSDocParamIndex) && !isArrayType(getTypeFromTypeNode(lastJSDocParam.typeExpression.type))) { - error(lastJSDocParam.name, Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type, idText(lastJSDocParam.name)); + error2(lastJSDocParam.name, Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type, idText(lastJSDocParam.name)); } } else { forEach(jsdocParameters, ({ name, isNameFirst }, index) => { @@ -82560,7 +83145,7 @@ function createTypeChecker(host) { } if (isQualifiedName(name)) { if (isJs) { - error(name, Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1, entityNameToString(name), entityNameToString(name.left)); + error2(name, Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1, entityNameToString(name), entityNameToString(name.left)); } } else { if (!isNameFirst) { @@ -82585,11 +83170,11 @@ function createTypeChecker(host) { seenDefault = true; checkTypeParametersNotReferenced(node.default, typeParameterDeclarations, i); } else if (seenDefault) { - error(node, Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters); + error2(node, Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters); } for (let j = 0; j < i; j++) { if (typeParameterDeclarations[j].symbol === node.symbol) { - error(node.name, Diagnostics.Duplicate_identifier_0, declarationNameToString(node.name)); + error2(node.name, Diagnostics.Duplicate_identifier_0, declarationNameToString(node.name)); } } }; @@ -82598,12 +83183,12 @@ function createTypeChecker(host) { function checkTypeParametersNotReferenced(root, typeParameters, index) { visit(root); function visit(node) { - if (node.kind === 182 /* TypeReference */) { + if (node.kind === 183 /* TypeReference */) { const type = getTypeFromTypeReference(node); if (type.flags & 262144 /* TypeParameter */) { for (let i = index; i < typeParameters.length; i++) { if (type.symbol === getSymbolOfDeclaration(typeParameters[i])) { - error(node, Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters); + error2(node, Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters); } } } @@ -82626,7 +83211,7 @@ function createTypeChecker(host) { if (!areTypeParametersIdentical(declarations, type.localTypeParameters, getEffectiveTypeParameterDeclarations)) { const name = symbolToString(symbol); for (const declaration of declarations) { - error(declaration.name, Diagnostics.All_declarations_of_0_must_have_identical_type_parameters, name); + error2(declaration.name, Diagnostics.All_declarations_of_0_must_have_identical_type_parameters, name); } } } @@ -82668,7 +83253,7 @@ function createTypeChecker(host) { node ); const willTransformPrivateElementsOrClassStaticBlocks = languageVersion <= 9 /* ES2022 */; - const willTransformInitializers = !useDefineForClassFields || languageVersion < 9 /* ES2022 */; + const willTransformInitializers = !emitStandardClassFields; if (willTransformStaticElementsOfDecoratedClass || willTransformPrivateElementsOrClassStaticBlocks) { for (const member of node.members) { if (willTransformStaticElementsOfDecoratedClass && classElementOrClassElementParameterIsDecorated( @@ -82749,7 +83334,7 @@ function createTypeChecker(host) { checkTypeParameterListsIdentical(symbol); checkFunctionOrConstructorSymbol(symbol); checkClassForDuplicateDeclarations(node); - const nodeInAmbientContext = !!(node.flags & 16777216 /* Ambient */); + const nodeInAmbientContext = !!(node.flags & 33554432 /* Ambient */); if (!nodeInAmbientContext) { checkClassForStaticPropertyNameConflicts(node); } @@ -82797,18 +83382,18 @@ function createTypeChecker(host) { } if (baseConstructorType.flags & 8650752 /* TypeVariable */) { if (!isMixinConstructorType(staticType)) { - error(node.name || node, Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any); + error2(node.name || node, Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any); } else { const constructSignatures = getSignaturesOfType(baseConstructorType, 1 /* Construct */); if (constructSignatures.some((signature) => signature.flags & 4 /* Abstract */) && !hasSyntacticModifier(node, 256 /* Abstract */)) { - error(node.name || node, Diagnostics.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract); + error2(node.name || node, Diagnostics.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract); } } } if (!(staticBaseType.symbol && staticBaseType.symbol.flags & 32 /* Class */) && !(baseConstructorType.flags & 8650752 /* TypeVariable */)) { const constructors = getInstantiatedConstructorsForTypeArguments(staticBaseType, baseTypeNode.typeArguments, baseTypeNode); if (forEach(constructors, (sig) => !isJSConstructor(sig.declaration) && !isTypeIdenticalTo(getReturnTypeOfSignature(sig), baseType))) { - error(baseTypeNode.expression, Diagnostics.Base_constructors_must_all_have_the_same_return_type); + error2(baseTypeNode.expression, Diagnostics.Base_constructors_must_all_have_the_same_return_type); } } checkKindsOfPropertyMemberOverrides(type, baseType); @@ -82820,7 +83405,7 @@ function createTypeChecker(host) { if (implementedTypeNodes) { for (const typeRefNode of implementedTypeNodes) { if (!isEntityNameExpression(typeRefNode.expression) || isOptionalChain(typeRefNode.expression)) { - error(typeRefNode.expression, Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments); + error2(typeRefNode.expression, Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments); } checkTypeReferenceNode(typeRefNode); addLazyDiagnostic(createImplementsDiagnostics(typeRefNode)); @@ -82853,7 +83438,7 @@ function createTypeChecker(host) { issueMemberSpecificError(node, typeWithThis, baseWithThis, genericDiag); } } else { - error(typeRefNode, Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members); + error2(typeRefNode, Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members); } } }; @@ -82920,7 +83505,7 @@ function createTypeChecker(host) { } function checkMemberForOverrideModifier(node, staticType, baseStaticType, baseWithThis, type, typeWithThis, memberHasOverrideModifier, memberHasAbstractModifier, memberIsStatic, memberIsParameterProperty, memberName, errorNode) { const isJs = isInJSFile(node); - const nodeInAmbientContext = !!(node.flags & 16777216 /* Ambient */); + const nodeInAmbientContext = !!(node.flags & 33554432 /* Ambient */); if (baseWithThis && (memberHasOverrideModifier || compilerOptions.noImplicitOverride)) { const memberEscapedName = escapeLeadingUnderscores(memberName); const thisType = memberIsStatic ? staticType : typeWithThis; @@ -82931,12 +83516,12 @@ function createTypeChecker(host) { if (prop && !baseProp && memberHasOverrideModifier) { if (errorNode) { const suggestion = getSuggestedSymbolForNonexistentClassMember(memberName, baseType); - suggestion ? error( + suggestion ? error2( errorNode, isJs ? Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1 : Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1, baseClassName, symbolToString(suggestion) - ) : error( + ) : error2( errorNode, isJs ? Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0 : Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0, baseClassName @@ -82951,12 +83536,12 @@ function createTypeChecker(host) { if (!baseHasAbstract) { if (errorNode) { const diag2 = memberIsParameterProperty ? isJs ? Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0 : Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0 : isJs ? Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0 : Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0; - error(errorNode, diag2, baseClassName); + error2(errorNode, diag2, baseClassName); } return 1 /* NeedsOverride */; } else if (memberHasAbstractModifier && baseHasAbstract) { if (errorNode) { - error(errorNode, Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0, baseClassName); + error2(errorNode, Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0, baseClassName); } return 1 /* NeedsOverride */; } @@ -82964,7 +83549,7 @@ function createTypeChecker(host) { } else if (memberHasOverrideModifier) { if (errorNode) { const className = typeToString(type); - error( + error2( errorNode, isJs ? Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class : Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class, className @@ -83017,7 +83602,7 @@ function createTypeChecker(host) { if (declaration && hasEffectiveModifier(declaration, 8 /* Private */)) { const typeClassDeclaration = getClassLikeDeclarationOfSymbol(type.symbol); if (!isNodeWithinClass(node, typeClassDeclaration)) { - error(node, Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private, getFullyQualifiedName(type.symbol)); + error2(node, Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private, getFullyQualifiedName(type.symbol)); } } } @@ -83054,7 +83639,7 @@ function createTypeChecker(host) { return getCheckFlags(s) & 1 /* Instantiated */ ? s.links.target : s; } function getClassOrInterfaceDeclarationsOfSymbol(symbol) { - return filter(symbol.declarations, (d) => d.kind === 262 /* ClassDeclaration */ || d.kind === 263 /* InterfaceDeclaration */); + return filter(symbol.declarations, (d) => d.kind === 263 /* ClassDeclaration */ || d.kind === 264 /* InterfaceDeclaration */); } function checkKindsOfPropertyMemberOverrides(type, baseType) { var _a, _b, _c, _d; @@ -83086,14 +83671,14 @@ function createTypeChecker(host) { } } if (!inheritedAbstractMemberNotImplementedError) { - inheritedAbstractMemberNotImplementedError = error( + inheritedAbstractMemberNotImplementedError = error2( derivedClassDecl, Diagnostics.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1, typeToString(type), typeToString(baseType) ); } - if (derivedClassDecl.kind === 230 /* ClassExpression */) { + if (derivedClassDecl.kind === 231 /* ClassExpression */) { addRelatedInfo( inheritedAbstractMemberNotImplementedError, createDiagnosticForNode( @@ -83132,15 +83717,15 @@ function createTypeChecker(host) { const overriddenInstanceAccessor = basePropertyFlags === 4 /* Property */ && derivedPropertyFlags !== 4 /* Property */; if (overriddenInstanceProperty || overriddenInstanceAccessor) { const errorMessage2 = overriddenInstanceProperty ? Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property : Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor; - error(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage2, symbolToString(base), typeToString(baseType), typeToString(type)); + error2(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage2, symbolToString(base), typeToString(baseType), typeToString(type)); } else if (useDefineForClassFields) { - const uninitialized = (_c = derived.declarations) == null ? void 0 : _c.find((d) => d.kind === 171 /* PropertyDeclaration */ && !d.initializer); - if (uninitialized && !(derived.flags & 33554432 /* Transient */) && !(baseDeclarationFlags & 256 /* Abstract */) && !(derivedDeclarationFlags & 256 /* Abstract */) && !((_d = derived.declarations) == null ? void 0 : _d.some((d) => !!(d.flags & 16777216 /* Ambient */)))) { + const uninitialized = (_c = derived.declarations) == null ? void 0 : _c.find((d) => d.kind === 172 /* PropertyDeclaration */ && !d.initializer); + if (uninitialized && !(derived.flags & 33554432 /* Transient */) && !(baseDeclarationFlags & 256 /* Abstract */) && !(derivedDeclarationFlags & 256 /* Abstract */) && !((_d = derived.declarations) == null ? void 0 : _d.some((d) => !!(d.flags & 33554432 /* Ambient */)))) { const constructor = findConstructorDeclaration(getClassLikeDeclarationOfSymbol(type.symbol)); const propName = uninitialized.name; if (uninitialized.exclamationToken || !constructor || !isIdentifier(propName) || !strictNullChecks || !isPropertyInitializedInConstructor(propName, type, constructor)) { const errorMessage2 = Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration; - error(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage2, symbolToString(base), typeToString(baseType)); + error2(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage2, symbolToString(base), typeToString(baseType)); } } } @@ -83157,7 +83742,7 @@ function createTypeChecker(host) { } else { errorMessage = Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function; } - error(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage, typeToString(baseType), symbolToString(base), typeToString(type)); + error2(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage, typeToString(baseType), symbolToString(base), typeToString(type)); } } } @@ -83222,7 +83807,7 @@ function createTypeChecker(host) { return ok; } function checkPropertyInitialization(node) { - if (!strictNullChecks || !strictPropertyInitialization || node.flags & 16777216 /* Ambient */) { + if (!strictNullChecks || !strictPropertyInitialization || node.flags & 33554432 /* Ambient */) { return; } const constructor = findConstructorDeclaration(node); @@ -83236,7 +83821,7 @@ function createTypeChecker(host) { const type = getTypeOfSymbol(getSymbolOfDeclaration(member)); if (!(type.flags & 3 /* AnyOrUnknown */ || containsUndefinedType(type))) { if (!constructor || !isPropertyInitializedInConstructor(propName, type, constructor)) { - error(member.name, Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor, declarationNameToString(propName)); + error2(member.name, Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor, declarationNameToString(propName)); } } } @@ -83244,7 +83829,7 @@ function createTypeChecker(host) { } } function isPropertyWithoutInitializer(node) { - return node.kind === 171 /* PropertyDeclaration */ && !hasAbstractModifier(node) && !node.exclamationToken && !node.initializer; + return node.kind === 172 /* PropertyDeclaration */ && !hasAbstractModifier(node) && !node.exclamationToken && !node.initializer; } function isPropertyInitializedInStaticBlocks(propName, propType, staticBlocks, startPos, endPos) { for (const staticBlock of staticBlocks) { @@ -83278,7 +83863,7 @@ function createTypeChecker(host) { checkExportsOnMergedDeclarations(node); const symbol = getSymbolOfDeclaration(node); checkTypeParameterListsIdentical(symbol); - const firstInterfaceDecl = getDeclarationOfKind(symbol, 263 /* InterfaceDeclaration */); + const firstInterfaceDecl = getDeclarationOfKind(symbol, 264 /* InterfaceDeclaration */); if (node === firstInterfaceDecl) { const type = getDeclaredTypeOfSymbol(symbol); const typeWithThis = getTypeWithThisArgument(type); @@ -83293,7 +83878,7 @@ function createTypeChecker(host) { }); forEach(getInterfaceBaseTypeNodes(node), (heritageElement) => { if (!isEntityNameExpression(heritageElement.expression) || isOptionalChain(heritageElement.expression)) { - error(heritageElement.expression, Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments); + error2(heritageElement.expression, Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments); } checkTypeReferenceNode(heritageElement); }); @@ -83310,7 +83895,7 @@ function createTypeChecker(host) { checkTypeParameters(node.typeParameters); if (node.type.kind === 141 /* IntrinsicKeyword */) { if (!intrinsicTypeKinds.has(node.name.escapedText) || length(node.typeParameters) !== 1) { - error(node.type, Diagnostics.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types); + error2(node.type, Diagnostics.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types); } } else { checkSourceElement(node.type); @@ -83331,23 +83916,23 @@ function createTypeChecker(host) { } function computeMemberValue(member, autoValue) { if (isComputedNonLiteralName(member.name)) { - error(member.name, Diagnostics.Computed_property_names_are_not_allowed_in_enums); + error2(member.name, Diagnostics.Computed_property_names_are_not_allowed_in_enums); } else { const text = getTextOfPropertyName(member.name); if (isNumericLiteralName(text) && !isInfinityOrNaNString(text)) { - error(member.name, Diagnostics.An_enum_member_cannot_have_a_numeric_name); + error2(member.name, Diagnostics.An_enum_member_cannot_have_a_numeric_name); } } if (member.initializer) { return computeConstantValue(member); } - if (member.parent.flags & 16777216 /* Ambient */ && !isEnumConst(member.parent)) { + if (member.parent.flags & 33554432 /* Ambient */ && !isEnumConst(member.parent)) { return void 0; } if (autoValue !== void 0) { return autoValue; } - error(member.name, Diagnostics.Enum_member_must_have_initializer); + error2(member.name, Diagnostics.Enum_member_must_have_initializer); return void 0; } function computeConstantValue(member) { @@ -83356,12 +83941,12 @@ function createTypeChecker(host) { const value = evaluate(initializer, member); if (value !== void 0) { if (isConstEnum && typeof value === "number" && !isFinite(value)) { - error(initializer, isNaN(value) ? Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN : Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value); + error2(initializer, isNaN(value) ? Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN : Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value); } } else if (isConstEnum) { - error(initializer, Diagnostics.const_enum_member_initializers_must_be_constant_expressions); - } else if (member.parent.flags & 16777216 /* Ambient */) { - error(initializer, Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression); + error2(initializer, Diagnostics.const_enum_member_initializers_must_be_constant_expressions); + } else if (member.parent.flags & 33554432 /* Ambient */) { + error2(initializer, Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression); } else { checkTypeAssignableTo(checkExpression(initializer), numberType, initializer, Diagnostics.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values); } @@ -83369,7 +83954,7 @@ function createTypeChecker(host) { } function evaluate(expr, location) { switch (expr.kind) { - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: const value = evaluate(expr.operand, location); if (typeof value === "number") { switch (expr.operator) { @@ -83382,7 +83967,7 @@ function createTypeChecker(host) { } } break; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: const left = evaluate(expr.left, location); const right = evaluate(expr.right, location); if (typeof left === "number" && typeof right === "number") { @@ -83419,18 +84004,30 @@ function createTypeChecker(host) { case 11 /* StringLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: return expr.text; - case 227 /* TemplateExpression */: + case 228 /* TemplateExpression */: return evaluateTemplateExpression(expr, location); case 9 /* NumericLiteral */: checkGrammarNumericLiteral(expr); return +expr.text; - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return evaluate(expr.expression, location); - case 80 /* Identifier */: - if (isInfinityOrNaNString(expr.escapedText)) { - return +expr.escapedText; + case 80 /* Identifier */: { + const identifier = expr; + if (isInfinityOrNaNString(identifier.escapedText) && resolveEntityName( + identifier, + 111551 /* Value */, + /*ignoreErrors*/ + true + ) === getGlobalSymbol( + identifier.escapedText, + 111551 /* Value */, + /*diagnostic*/ + void 0 + )) { + return +identifier.escapedText; } - case 210 /* PropertyAccessExpression */: + } + case 211 /* PropertyAccessExpression */: if (isEntityNameExpression(expr)) { const symbol = resolveEntityName( expr, @@ -83440,18 +84037,18 @@ function createTypeChecker(host) { ); if (symbol) { if (symbol.flags & 8 /* EnumMember */) { - return evaluateEnumMember(expr, symbol, location); + return location ? evaluateEnumMember(expr, symbol, location) : getEnumMemberValue(symbol.valueDeclaration); } - if (isConstVariable(symbol)) { + if (isConstantVariable(symbol)) { const declaration = symbol.valueDeclaration; - if (declaration && !declaration.type && declaration.initializer && declaration !== location && isBlockScopedNameDeclaredBeforeUse(declaration, location)) { + if (declaration && !declaration.type && declaration.initializer && (!location || declaration !== location && isBlockScopedNameDeclaredBeforeUse(declaration, location))) { return evaluate(declaration.initializer, declaration); } } } } break; - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: const root = expr.expression; if (isEntityNameExpression(root) && isStringLiteralLike(expr.argumentExpression)) { const rootSymbol = resolveEntityName( @@ -83464,7 +84061,7 @@ function createTypeChecker(host) { const name = escapeLeadingUnderscores(expr.argumentExpression.text); const member = rootSymbol.exports.get(name); if (member) { - return evaluateEnumMember(expr, member, location); + return location ? evaluateEnumMember(expr, member, location) : getEnumMemberValue(member.valueDeclaration); } } } @@ -83475,11 +84072,11 @@ function createTypeChecker(host) { function evaluateEnumMember(expr, symbol, location) { const declaration = symbol.valueDeclaration; if (!declaration || declaration === location) { - error(expr, Diagnostics.Property_0_is_used_before_being_assigned, symbolToString(symbol)); + error2(expr, Diagnostics.Property_0_is_used_before_being_assigned, symbolToString(symbol)); return void 0; } if (!isBlockScopedNameDeclaredBeforeUse(declaration, location)) { - error(expr, Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums); + error2(expr, Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums); return 0; } return getEnumMemberValue(declaration); @@ -83512,13 +84109,13 @@ function createTypeChecker(host) { const enumIsConst = isEnumConst(node); forEach(enumSymbol.declarations, (decl) => { if (isEnumDeclaration(decl) && isEnumConst(decl) !== enumIsConst) { - error(getNameOfDeclaration(decl), Diagnostics.Enum_declarations_must_all_be_const_or_non_const); + error2(getNameOfDeclaration(decl), Diagnostics.Enum_declarations_must_all_be_const_or_non_const); } }); } let seenEnumMissingInitialInitializer = false; forEach(enumSymbol.declarations, (declaration) => { - if (declaration.kind !== 265 /* EnumDeclaration */) { + if (declaration.kind !== 266 /* EnumDeclaration */) { return false; } const enumDeclaration = declaration; @@ -83528,7 +84125,7 @@ function createTypeChecker(host) { const firstEnumMember = enumDeclaration.members[0]; if (!firstEnumMember.initializer) { if (seenEnumMissingInitialInitializer) { - error(firstEnumMember.name, Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element); + error2(firstEnumMember.name, Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element); } else { seenEnumMissingInitialInitializer = true; } @@ -83538,7 +84135,7 @@ function createTypeChecker(host) { } function checkEnumMember(node) { if (isPrivateIdentifier(node.name)) { - error(node, Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier); + error2(node, Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier); } if (node.initializer) { checkExpression(node.initializer); @@ -83548,7 +84145,7 @@ function createTypeChecker(host) { const declarations = symbol.declarations; if (declarations) { for (const declaration of declarations) { - if ((declaration.kind === 262 /* ClassDeclaration */ || declaration.kind === 261 /* FunctionDeclaration */ && nodeIsPresent(declaration.body)) && !(declaration.flags & 16777216 /* Ambient */)) { + if ((declaration.kind === 263 /* ClassDeclaration */ || declaration.kind === 262 /* FunctionDeclaration */ && nodeIsPresent(declaration.body)) && !(declaration.flags & 33554432 /* Ambient */)) { return declaration; } } @@ -83577,9 +84174,9 @@ function createTypeChecker(host) { function checkModuleDeclarationDiagnostics() { var _a, _b; const isGlobalAugmentation = isGlobalScopeAugmentation(node); - const inAmbientContext = node.flags & 16777216 /* Ambient */; + const inAmbientContext = node.flags & 33554432 /* Ambient */; if (isGlobalAugmentation && !inAmbientContext) { - error(node.name, Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context); + error2(node.name, Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context); } const isAmbientExternalModule = isAmbientModule(node); const contextErrorMessage = isAmbientExternalModule ? Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file : Diagnostics.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module; @@ -83598,26 +84195,26 @@ function createTypeChecker(host) { const symbol = getSymbolOfDeclaration(node); if (symbol.flags & 512 /* ValueModule */ && !inAmbientContext && isInstantiatedModule(node, shouldPreserveConstEnums(compilerOptions))) { if (getIsolatedModules(compilerOptions) && !getSourceFileOfNode(node).externalModuleIndicator) { - error(node.name, Diagnostics.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement, isolatedModulesLikeFlagName); + error2(node.name, Diagnostics.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement, isolatedModulesLikeFlagName); } if (((_a = symbol.declarations) == null ? void 0 : _a.length) > 1) { const firstNonAmbientClassOrFunc = getFirstNonAmbientClassOrFunctionDeclaration(symbol); if (firstNonAmbientClassOrFunc) { if (getSourceFileOfNode(node) !== getSourceFileOfNode(firstNonAmbientClassOrFunc)) { - error(node.name, Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged); + error2(node.name, Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged); } else if (node.pos < firstNonAmbientClassOrFunc.pos) { - error(node.name, Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged); + error2(node.name, Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged); } } - const mergedClass = getDeclarationOfKind(symbol, 262 /* ClassDeclaration */); + const mergedClass = getDeclarationOfKind(symbol, 263 /* ClassDeclaration */); if (mergedClass && inSameLexicalScope(node, mergedClass)) { getNodeLinks(node).flags |= 2048 /* LexicalModuleMergesWithClass */; } } - if (compilerOptions.verbatimModuleSyntax && node.parent.kind === 311 /* SourceFile */ && (moduleKind === 1 /* CommonJS */ || node.parent.impliedNodeFormat === 1 /* CommonJS */)) { + if (compilerOptions.verbatimModuleSyntax && node.parent.kind === 312 /* SourceFile */ && (moduleKind === 1 /* CommonJS */ || node.parent.impliedNodeFormat === 1 /* CommonJS */)) { const exportModifier = (_b = node.modifiers) == null ? void 0 : _b.find((m) => m.kind === 95 /* ExportKeyword */); if (exportModifier) { - error(exportModifier, Diagnostics.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); + error2(exportModifier, Diagnostics.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); } } } @@ -83631,15 +84228,15 @@ function createTypeChecker(host) { } } else if (isGlobalSourceFile(node.parent)) { if (isGlobalAugmentation) { - error(node.name, Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations); + error2(node.name, Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations); } else if (isExternalModuleNameRelative(getTextOfIdentifierOrLiteral(node.name))) { - error(node.name, Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name); + error2(node.name, Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name); } } else { if (isGlobalAugmentation) { - error(node.name, Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations); + error2(node.name, Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations); } else { - error(node.name, Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces); + error2(node.name, Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces); } } } @@ -83647,21 +84244,21 @@ function createTypeChecker(host) { } function checkModuleAugmentationElement(node, isGlobalAugmentation) { switch (node.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: for (const decl of node.declarationList.declarations) { checkModuleAugmentationElement(decl, isGlobalAugmentation); } break; - case 276 /* ExportAssignment */: - case 277 /* ExportDeclaration */: + case 277 /* ExportAssignment */: + case 278 /* ExportDeclaration */: grammarErrorOnFirstToken(node, Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations); break; - case 270 /* ImportEqualsDeclaration */: - case 271 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 272 /* ImportDeclaration */: grammarErrorOnFirstToken(node, Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module); break; - case 207 /* BindingElement */: - case 259 /* VariableDeclaration */: + case 208 /* BindingElement */: + case 260 /* VariableDeclaration */: const name = node.name; if (isBindingPattern(name)) { for (const el of name.elements) { @@ -83669,12 +84266,12 @@ function createTypeChecker(host) { } break; } - case 262 /* ClassDeclaration */: - case 265 /* EnumDeclaration */: - case 261 /* FunctionDeclaration */: - case 263 /* InterfaceDeclaration */: - case 266 /* ModuleDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 263 /* ClassDeclaration */: + case 266 /* EnumDeclaration */: + case 262 /* FunctionDeclaration */: + case 264 /* InterfaceDeclaration */: + case 267 /* ModuleDeclaration */: + case 265 /* TypeAliasDeclaration */: if (isGlobalAugmentation) { return; } @@ -83685,12 +84282,12 @@ function createTypeChecker(host) { switch (node.kind) { case 80 /* Identifier */: return node; - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: do { node = node.left; } while (node.kind !== 80 /* Identifier */); return node; - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: do { if (isModuleExportsAccessExpression(node.expression) && !isPrivateIdentifier(node.name)) { return node.name; @@ -83706,17 +84303,17 @@ function createTypeChecker(host) { return false; } if (!isStringLiteral(moduleName)) { - error(moduleName, Diagnostics.String_literal_expected); + error2(moduleName, Diagnostics.String_literal_expected); return false; } - const inAmbientExternalModule = node.parent.kind === 267 /* ModuleBlock */ && isAmbientModule(node.parent.parent); - if (node.parent.kind !== 311 /* SourceFile */ && !inAmbientExternalModule) { - error(moduleName, node.kind === 277 /* ExportDeclaration */ ? Diagnostics.Export_declarations_are_not_permitted_in_a_namespace : Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module); + const inAmbientExternalModule = node.parent.kind === 268 /* ModuleBlock */ && isAmbientModule(node.parent.parent); + if (node.parent.kind !== 312 /* SourceFile */ && !inAmbientExternalModule) { + error2(moduleName, node.kind === 278 /* ExportDeclaration */ ? Diagnostics.Export_declarations_are_not_permitted_in_a_namespace : Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module); return false; } if (inAmbientExternalModule && isExternalModuleNameRelative(moduleName.text)) { if (!isTopLevelInExternalModuleAugmentation(node)) { - error(node, Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name); + error2(node, Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name); return false; } } @@ -83725,7 +84322,7 @@ function createTypeChecker(host) { for (const clause of node.assertClause.elements) { if (!isStringLiteral(clause.value)) { hasError = true; - error(clause.value, Diagnostics.Import_assertion_values_must_be_string_literal_expressions); + error2(clause.value, Diagnostics.Import_assertion_values_must_be_string_literal_expressions); } } return !hasError; @@ -83740,9 +84337,9 @@ function createTypeChecker(host) { symbol = getMergedSymbol(symbol.exportSymbol || symbol); if (isInJSFile(node) && !(target.flags & 111551 /* Value */) && !isTypeOnlyImportOrExportDeclaration(node)) { const errorNode = isImportOrExportSpecifier(node) ? node.propertyName || node.name : isNamedDeclaration(node) ? node.name : node; - Debug.assert(node.kind !== 279 /* NamespaceExport */); - if (node.kind === 280 /* ExportSpecifier */) { - const diag2 = error(errorNode, Diagnostics.Types_cannot_appear_in_export_declarations_in_JavaScript_files); + Debug.assert(node.kind !== 280 /* NamespaceExport */); + if (node.kind === 281 /* ExportSpecifier */) { + const diag2 = error2(errorNode, Diagnostics.Types_cannot_appear_in_export_declarations_in_JavaScript_files); const alreadyExportedSymbol = (_b = (_a = getSourceFileOfNode(node).symbol) == null ? void 0 : _a.exports) == null ? void 0 : _b.get((node.propertyName || node.name).escapedText); if (alreadyExportedSymbol === target) { const exportingDeclaration = (_c = alreadyExportedSymbol.declarations) == null ? void 0 : _c.find(isJSDocNode); @@ -83755,11 +84352,11 @@ function createTypeChecker(host) { } } } else { - Debug.assert(node.kind !== 259 /* VariableDeclaration */); + Debug.assert(node.kind !== 260 /* VariableDeclaration */); const importDeclaration = findAncestor(node, or(isImportDeclaration, isImportEqualsDeclaration)); const moduleSpecifier = (importDeclaration && ((_d = tryGetModuleSpecifierFromDeclaration(importDeclaration)) == null ? void 0 : _d.text)) ?? "..."; const importedIdentifier = unescapeLeadingUnderscores(isIdentifier(errorNode) ? errorNode.escapedText : symbol.escapedName); - error( + error2( errorNode, Diagnostics._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation, importedIdentifier, @@ -83768,47 +84365,47 @@ function createTypeChecker(host) { } return; } - const targetFlags = getAllSymbolFlags(target); + const targetFlags = getSymbolFlags(target); const excludedMeanings = (symbol.flags & (111551 /* Value */ | 1048576 /* ExportValue */) ? 111551 /* Value */ : 0) | (symbol.flags & 788968 /* Type */ ? 788968 /* Type */ : 0) | (symbol.flags & 1920 /* Namespace */ ? 1920 /* Namespace */ : 0); if (targetFlags & excludedMeanings) { - const message = node.kind === 280 /* ExportSpecifier */ ? Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0 : Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0; - error(node, message, symbolToString(symbol)); + const message = node.kind === 281 /* ExportSpecifier */ ? Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0 : Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0; + error2(node, message, symbolToString(symbol)); } - if (getIsolatedModules(compilerOptions) && !isTypeOnlyImportOrExportDeclaration(node) && !(node.flags & 16777216 /* Ambient */)) { + if (getIsolatedModules(compilerOptions) && !isTypeOnlyImportOrExportDeclaration(node) && !(node.flags & 33554432 /* Ambient */)) { const typeOnlyAlias = getTypeOnlyAliasDeclaration(symbol); const isType = !(targetFlags & 111551 /* Value */); if (isType || typeOnlyAlias) { switch (node.kind) { - case 272 /* ImportClause */: - case 275 /* ImportSpecifier */: - case 270 /* ImportEqualsDeclaration */: { + case 273 /* ImportClause */: + case 276 /* ImportSpecifier */: + case 271 /* ImportEqualsDeclaration */: { if (compilerOptions.preserveValueImports || compilerOptions.verbatimModuleSyntax) { Debug.assertIsDefined(node.name, "An ImportClause with a symbol should have a name"); const message = compilerOptions.verbatimModuleSyntax && isInternalModuleImportEqualsDeclaration(node) ? Diagnostics.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled : isType ? compilerOptions.verbatimModuleSyntax ? Diagnostics._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled : Diagnostics._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled : compilerOptions.verbatimModuleSyntax ? Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled : Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled; - const name = idText(node.kind === 275 /* ImportSpecifier */ ? node.propertyName || node.name : node.name); + const name = idText(node.kind === 276 /* ImportSpecifier */ ? node.propertyName || node.name : node.name); addTypeOnlyDeclarationRelatedInfo( - error(node, message, name), + error2(node, message, name), isType ? void 0 : typeOnlyAlias, name ); } - if (isType && node.kind === 270 /* ImportEqualsDeclaration */ && hasEffectiveModifier(node, 1 /* Export */)) { - error(node, Diagnostics.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled, isolatedModulesLikeFlagName); + if (isType && node.kind === 271 /* ImportEqualsDeclaration */ && hasEffectiveModifier(node, 1 /* Export */)) { + error2(node, Diagnostics.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled, isolatedModulesLikeFlagName); } break; } - case 280 /* ExportSpecifier */: { + case 281 /* ExportSpecifier */: { if (compilerOptions.verbatimModuleSyntax || getSourceFileOfNode(typeOnlyAlias) !== getSourceFileOfNode(node)) { const name = idText(node.propertyName || node.name); - const diagnostic = isType ? error(node, Diagnostics.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type, isolatedModulesLikeFlagName) : error(node, Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled, name, isolatedModulesLikeFlagName); + const diagnostic = isType ? error2(node, Diagnostics.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type, isolatedModulesLikeFlagName) : error2(node, Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled, name, isolatedModulesLikeFlagName); addTypeOnlyDeclarationRelatedInfo(diagnostic, isType ? void 0 : typeOnlyAlias, name); break; } } } } - if (compilerOptions.verbatimModuleSyntax && node.kind !== 270 /* ImportEqualsDeclaration */ && !isInJSFile(node) && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { - error(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); + if (compilerOptions.verbatimModuleSyntax && node.kind !== 271 /* ImportEqualsDeclaration */ && !isInJSFile(node) && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { + error2(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); } } if (isImportSpecifier(node)) { @@ -83850,7 +84447,7 @@ function createTypeChecker(host) { function checkImportBinding(node) { checkCollisionsForDeclarationName(node, node.name); checkAliasSymbol(node); - if (node.kind === 275 /* ImportSpecifier */ && idText(node.propertyName || node.name) === "default" && getESModuleInterop(compilerOptions) && moduleKind !== 4 /* System */ && (moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { + if (node.kind === 276 /* ImportSpecifier */ && idText(node.propertyName || node.name) === "default" && getESModuleInterop(compilerOptions) && moduleKind !== 4 /* System */ && (moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { checkExternalEmitHelpers(node, 131072 /* ImportDefault */); } } @@ -83897,7 +84494,7 @@ function createTypeChecker(host) { checkImportBinding(importClause); } if (importClause.namedBindings) { - if (importClause.namedBindings.kind === 273 /* NamespaceImport */) { + if (importClause.namedBindings.kind === 274 /* NamespaceImport */) { checkImportBinding(importClause.namedBindings); if (moduleKind !== 4 /* System */ && (moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */) && getESModuleInterop(compilerOptions)) { checkExternalEmitHelpers(node, 65536 /* ImportStar */); @@ -83923,14 +84520,14 @@ function createTypeChecker(host) { if (hasSyntacticModifier(node, 1 /* Export */)) { markExportAsReferenced(node); } - if (node.moduleReference.kind !== 282 /* ExternalModuleReference */) { + if (node.moduleReference.kind !== 283 /* ExternalModuleReference */) { const target = resolveAlias(getSymbolOfDeclaration(node)); if (target !== unknownSymbol) { - const targetFlags = getAllSymbolFlags(target); + const targetFlags = getSymbolFlags(target); if (targetFlags & 111551 /* Value */) { const moduleName = getFirstIdentifier(node.moduleReference); if (!(resolveEntityName(moduleName, 111551 /* Value */ | 1920 /* Namespace */).flags & 1920 /* Namespace */)) { - error(moduleName, Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name, declarationNameToString(moduleName)); + error2(moduleName, Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name, declarationNameToString(moduleName)); } } if (targetFlags & 788968 /* Type */) { @@ -83941,7 +84538,7 @@ function createTypeChecker(host) { grammarErrorOnNode(node, Diagnostics.An_import_alias_cannot_use_import_type); } } else { - if (moduleKind >= 5 /* ES2015 */ && getSourceFileOfNode(node).impliedNodeFormat === void 0 && !node.isTypeOnly && !(node.flags & 16777216 /* Ambient */)) { + if (moduleKind >= 5 /* ES2015 */ && getSourceFileOfNode(node).impliedNodeFormat === void 0 && !node.isTypeOnly && !(node.flags & 33554432 /* Ambient */)) { grammarErrorOnNode(node, Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead); } } @@ -83961,15 +84558,15 @@ function createTypeChecker(host) { if (!node.moduleSpecifier || checkExternalImportOrExportDeclaration(node)) { if (node.exportClause && !isNamespaceExport(node.exportClause)) { forEach(node.exportClause.elements, checkExportSpecifier); - const inAmbientExternalModule = node.parent.kind === 267 /* ModuleBlock */ && isAmbientModule(node.parent.parent); - const inAmbientNamespaceDeclaration = !inAmbientExternalModule && node.parent.kind === 267 /* ModuleBlock */ && !node.moduleSpecifier && node.flags & 16777216 /* Ambient */; - if (node.parent.kind !== 311 /* SourceFile */ && !inAmbientExternalModule && !inAmbientNamespaceDeclaration) { - error(node, Diagnostics.Export_declarations_are_not_permitted_in_a_namespace); + const inAmbientExternalModule = node.parent.kind === 268 /* ModuleBlock */ && isAmbientModule(node.parent.parent); + const inAmbientNamespaceDeclaration = !inAmbientExternalModule && node.parent.kind === 268 /* ModuleBlock */ && !node.moduleSpecifier && node.flags & 33554432 /* Ambient */; + if (node.parent.kind !== 312 /* SourceFile */ && !inAmbientExternalModule && !inAmbientNamespaceDeclaration) { + error2(node, Diagnostics.Export_declarations_are_not_permitted_in_a_namespace); } } else { const moduleSymbol = resolveExternalModuleName(node, node.moduleSpecifier); if (moduleSymbol && hasExportAssignmentSymbol(moduleSymbol)) { - error(node.moduleSpecifier, Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk, symbolToString(moduleSymbol)); + error2(node.moduleSpecifier, Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk, symbolToString(moduleSymbol)); } else if (node.exportClause) { checkAliasSymbol(node.exportClause); } @@ -83988,13 +84585,13 @@ function createTypeChecker(host) { } function checkGrammarExportDeclaration(node) { var _a; - if (node.isTypeOnly && ((_a = node.exportClause) == null ? void 0 : _a.kind) === 278 /* NamedExports */) { + if (node.isTypeOnly && ((_a = node.exportClause) == null ? void 0 : _a.kind) === 279 /* NamedExports */) { return checkGrammarNamedImportsOrExports(node.exportClause); } return false; } function checkGrammarModuleElementContext(node, errorMessage) { - const isInAppropriateContext = node.parent.kind === 311 /* SourceFile */ || node.parent.kind === 267 /* ModuleBlock */ || node.parent.kind === 266 /* ModuleDeclaration */; + const isInAppropriateContext = node.parent.kind === 312 /* SourceFile */ || node.parent.kind === 268 /* ModuleBlock */ || node.parent.kind === 267 /* ModuleDeclaration */; if (!isInAppropriateContext) { grammarErrorOnFirstToken(node, errorMessage); } @@ -84030,7 +84627,7 @@ function createTypeChecker(host) { } for (const statement of sourceFile.statements) { if (canConvertImportDeclarationToTypeOnly(statement) || canConvertImportEqualsDeclarationToTypeOnly(statement)) { - error( + error2( statement, Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error ); @@ -84060,13 +84657,13 @@ function createTypeChecker(host) { true ); if (symbol && (symbol === undefinedSymbol || symbol === globalThisSymbol || symbol.declarations && isGlobalSourceFile(getDeclarationContainer(symbol.declarations[0])))) { - error(exportedName, Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module, idText(exportedName)); + error2(exportedName, Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module, idText(exportedName)); } else { if (!node.isTypeOnly && !node.parent.parent.isTypeOnly) { markExportAsReferenced(node); } const target = symbol && (symbol.flags & 2097152 /* Alias */ ? resolveAlias(symbol) : symbol); - if (!target || getAllSymbolFlags(target) & 111551 /* Value */) { + if (!target || getSymbolFlags(target) & 111551 /* Value */) { checkExpressionCached(node.propertyName || node.name); } } @@ -84081,12 +84678,12 @@ function createTypeChecker(host) { if (checkGrammarModuleElementContext(node, illegalContextMessage)) { return; } - const container = node.parent.kind === 311 /* SourceFile */ ? node.parent : node.parent.parent; - if (container.kind === 266 /* ModuleDeclaration */ && !isAmbientModule(container)) { + const container = node.parent.kind === 312 /* SourceFile */ ? node.parent : node.parent.parent; + if (container.kind === 267 /* ModuleDeclaration */ && !isAmbientModule(container)) { if (node.isExportEquals) { - error(node, Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace); + error2(node, Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace); } else { - error(node, Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module); + error2(node, Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module); } return; } @@ -84097,7 +84694,7 @@ function createTypeChecker(host) { if (typeAnnotationNode) { checkTypeAssignableTo(checkExpressionCached(node.expression), getTypeFromTypeNode(typeAnnotationNode), node.expression); } - const isIllegalExportDefaultInCJS = !node.isExportEquals && !(node.flags & 16777216 /* Ambient */) && compilerOptions.verbatimModuleSyntax && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */); + const isIllegalExportDefaultInCJS = !node.isExportEquals && !(node.flags & 33554432 /* Ambient */) && compilerOptions.verbatimModuleSyntax && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */); if (node.expression.kind === 80 /* Identifier */) { const id = node.expression; const sym = getExportSymbolOfValueSymbolIfExported(resolveEntityName( @@ -84111,17 +84708,17 @@ function createTypeChecker(host) { )); if (sym) { markAliasReferenced(sym, id); - if (getAllSymbolFlags(sym) & 111551 /* Value */) { + if (getSymbolFlags(sym) & 111551 /* Value */) { checkExpressionCached(id); - if (!isIllegalExportDefaultInCJS && !(node.flags & 16777216 /* Ambient */) && compilerOptions.verbatimModuleSyntax && getTypeOnlyAliasDeclaration(sym, 111551 /* Value */)) { - error( + if (!isIllegalExportDefaultInCJS && !(node.flags & 33554432 /* Ambient */) && compilerOptions.verbatimModuleSyntax && getTypeOnlyAliasDeclaration(sym, 111551 /* Value */)) { + error2( id, node.isExportEquals ? Diagnostics.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration : Diagnostics.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration, idText(id) ); } - } else if (!isIllegalExportDefaultInCJS && !(node.flags & 16777216 /* Ambient */) && compilerOptions.verbatimModuleSyntax) { - error( + } else if (!isIllegalExportDefaultInCJS && !(node.flags & 33554432 /* Ambient */) && compilerOptions.verbatimModuleSyntax) { + error2( id, node.isExportEquals ? Diagnostics.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type : Diagnostics.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type, idText(id) @@ -84141,16 +84738,16 @@ function createTypeChecker(host) { checkExpressionCached(node.expression); } if (isIllegalExportDefaultInCJS) { - error(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); + error2(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); } checkExternalModuleExports(container); - if (node.flags & 16777216 /* Ambient */ && !isEntityNameExpression(node.expression)) { + if (node.flags & 33554432 /* Ambient */ && !isEntityNameExpression(node.expression)) { grammarErrorOnNode(node.expression, Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context); } if (node.isExportEquals) { - if (moduleKind >= 5 /* ES2015 */ && (node.flags & 16777216 /* Ambient */ && getSourceFileOfNode(node).impliedNodeFormat === 99 /* ESNext */ || !(node.flags & 16777216 /* Ambient */) && getSourceFileOfNode(node).impliedNodeFormat !== 1 /* CommonJS */)) { + if (moduleKind >= 5 /* ES2015 */ && (node.flags & 33554432 /* Ambient */ && getSourceFileOfNode(node).impliedNodeFormat === 99 /* ESNext */ || !(node.flags & 33554432 /* Ambient */) && getSourceFileOfNode(node).impliedNodeFormat !== 1 /* CommonJS */)) { grammarErrorOnNode(node, Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead); - } else if (moduleKind === 4 /* System */ && !(node.flags & 16777216 /* Ambient */)) { + } else if (moduleKind === 4 /* System */ && !(node.flags & 33554432 /* Ambient */)) { grammarErrorOnNode(node, Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system); } } @@ -84166,7 +84763,7 @@ function createTypeChecker(host) { if (exportEqualsSymbol && hasExportedMembers(moduleSymbol)) { const declaration = getDeclarationOfAliasSymbol(exportEqualsSymbol) || exportEqualsSymbol.valueDeclaration; if (declaration && !isTopLevelInExternalModuleAugmentation(declaration) && !isInJSFile(declaration)) { - error(declaration, Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements); + error2(declaration, Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements); } } const exports = getExportsOfModule(moduleSymbol); @@ -84223,182 +84820,182 @@ function createTypeChecker(host) { const kind = node.kind; if (cancellationToken) { switch (kind) { - case 266 /* ModuleDeclaration */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 261 /* FunctionDeclaration */: + case 267 /* ModuleDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 262 /* FunctionDeclaration */: cancellationToken.throwIfCancellationRequested(); } } - if (kind >= 242 /* FirstStatement */ && kind <= 258 /* LastStatement */ && canHaveFlowNode(node) && node.flowNode && !isReachableFlowNode(node.flowNode)) { + if (kind >= 243 /* FirstStatement */ && kind <= 259 /* LastStatement */ && canHaveFlowNode(node) && node.flowNode && !isReachableFlowNode(node.flowNode)) { errorOrSuggestion(compilerOptions.allowUnreachableCode === false, node, Diagnostics.Unreachable_code_detected); } switch (kind) { - case 167 /* TypeParameter */: + case 168 /* TypeParameter */: return checkTypeParameter(node); - case 168 /* Parameter */: + case 169 /* Parameter */: return checkParameter(node); - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return checkPropertyDeclaration(node); - case 170 /* PropertySignature */: + case 171 /* PropertySignature */: return checkPropertySignature(node); - case 184 /* ConstructorType */: - case 183 /* FunctionType */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 180 /* IndexSignature */: + case 185 /* ConstructorType */: + case 184 /* FunctionType */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 181 /* IndexSignature */: return checkSignatureDeclaration(node); - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: return checkMethodDeclaration(node); - case 174 /* ClassStaticBlockDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: return checkClassStaticBlockDeclaration(node); - case 175 /* Constructor */: + case 176 /* Constructor */: return checkConstructorDeclaration(node); - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return checkAccessorDeclaration(node); - case 182 /* TypeReference */: + case 183 /* TypeReference */: return checkTypeReferenceNode(node); - case 181 /* TypePredicate */: + case 182 /* TypePredicate */: return checkTypePredicate(node); - case 185 /* TypeQuery */: + case 186 /* TypeQuery */: return checkTypeQuery(node); - case 186 /* TypeLiteral */: + case 187 /* TypeLiteral */: return checkTypeLiteral(node); - case 187 /* ArrayType */: + case 188 /* ArrayType */: return checkArrayType(node); - case 188 /* TupleType */: + case 189 /* TupleType */: return checkTupleType(node); - case 191 /* UnionType */: - case 192 /* IntersectionType */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: return checkUnionOrIntersectionType(node); - case 195 /* ParenthesizedType */: - case 189 /* OptionalType */: - case 190 /* RestType */: + case 196 /* ParenthesizedType */: + case 190 /* OptionalType */: + case 191 /* RestType */: return checkSourceElement(node.type); - case 196 /* ThisType */: + case 197 /* ThisType */: return checkThisType(node); - case 197 /* TypeOperator */: + case 198 /* TypeOperator */: return checkTypeOperator(node); - case 193 /* ConditionalType */: + case 194 /* ConditionalType */: return checkConditionalType(node); - case 194 /* InferType */: + case 195 /* InferType */: return checkInferType(node); - case 202 /* TemplateLiteralType */: + case 203 /* TemplateLiteralType */: return checkTemplateLiteralType(node); - case 204 /* ImportType */: + case 205 /* ImportType */: return checkImportType(node); - case 201 /* NamedTupleMember */: + case 202 /* NamedTupleMember */: return checkNamedTupleMember(node); - case 334 /* JSDocAugmentsTag */: + case 335 /* JSDocAugmentsTag */: return checkJSDocAugmentsTag(node); - case 335 /* JSDocImplementsTag */: + case 336 /* JSDocImplementsTag */: return checkJSDocImplementsTag(node); - case 352 /* JSDocTypedefTag */: - case 344 /* JSDocCallbackTag */: - case 346 /* JSDocEnumTag */: + case 353 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: + case 347 /* JSDocEnumTag */: return checkJSDocTypeAliasTag(node); - case 351 /* JSDocTemplateTag */: + case 352 /* JSDocTemplateTag */: return checkJSDocTemplateTag(node); - case 350 /* JSDocTypeTag */: + case 351 /* JSDocTypeTag */: return checkJSDocTypeTag(node); - case 330 /* JSDocLink */: - case 331 /* JSDocLinkCode */: - case 332 /* JSDocLinkPlain */: + case 331 /* JSDocLink */: + case 332 /* JSDocLinkCode */: + case 333 /* JSDocLinkPlain */: return checkJSDocLinkLikeTag(node); - case 347 /* JSDocParameterTag */: + case 348 /* JSDocParameterTag */: return checkJSDocParameterTag(node); - case 354 /* JSDocPropertyTag */: + case 355 /* JSDocPropertyTag */: return checkJSDocPropertyTag(node); - case 323 /* JSDocFunctionType */: + case 324 /* JSDocFunctionType */: checkJSDocFunctionType(node); - case 321 /* JSDocNonNullableType */: - case 320 /* JSDocNullableType */: - case 318 /* JSDocAllType */: - case 319 /* JSDocUnknownType */: - case 328 /* JSDocTypeLiteral */: + case 322 /* JSDocNonNullableType */: + case 321 /* JSDocNullableType */: + case 319 /* JSDocAllType */: + case 320 /* JSDocUnknownType */: + case 329 /* JSDocTypeLiteral */: checkJSDocTypeIsInJsFile(node); forEachChild(node, checkSourceElement); return; - case 324 /* JSDocVariadicType */: + case 325 /* JSDocVariadicType */: checkJSDocVariadicType(node); return; - case 315 /* JSDocTypeExpression */: + case 316 /* JSDocTypeExpression */: return checkSourceElement(node.type); - case 339 /* JSDocPublicTag */: - case 341 /* JSDocProtectedTag */: - case 340 /* JSDocPrivateTag */: + case 340 /* JSDocPublicTag */: + case 342 /* JSDocProtectedTag */: + case 341 /* JSDocPrivateTag */: return checkJSDocAccessibilityModifiers(node); - case 356 /* JSDocSatisfiesTag */: + case 357 /* JSDocSatisfiesTag */: return checkJSDocSatisfiesTag(node); - case 198 /* IndexedAccessType */: + case 199 /* IndexedAccessType */: return checkIndexedAccessType(node); - case 199 /* MappedType */: + case 200 /* MappedType */: return checkMappedType(node); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return checkFunctionDeclaration(node); - case 240 /* Block */: - case 267 /* ModuleBlock */: + case 241 /* Block */: + case 268 /* ModuleBlock */: return checkBlock(node); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return checkVariableStatement(node); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return checkExpressionStatement(node); - case 244 /* IfStatement */: + case 245 /* IfStatement */: return checkIfStatement(node); - case 245 /* DoStatement */: + case 246 /* DoStatement */: return checkDoStatement(node); - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: return checkWhileStatement(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return checkForStatement(node); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return checkForInStatement(node); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return checkForOfStatement(node); - case 250 /* ContinueStatement */: - case 251 /* BreakStatement */: + case 251 /* ContinueStatement */: + case 252 /* BreakStatement */: return checkBreakOrContinueStatement(node); - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: return checkReturnStatement(node); - case 253 /* WithStatement */: + case 254 /* WithStatement */: return checkWithStatement(node); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return checkSwitchStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return checkLabeledStatement(node); - case 256 /* ThrowStatement */: + case 257 /* ThrowStatement */: return checkThrowStatement(node); - case 257 /* TryStatement */: + case 258 /* TryStatement */: return checkTryStatement(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return checkVariableDeclaration(node); - case 207 /* BindingElement */: + case 208 /* BindingElement */: return checkBindingElement(node); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return checkClassDeclaration(node); - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: return checkInterfaceDeclaration(node); - case 264 /* TypeAliasDeclaration */: + case 265 /* TypeAliasDeclaration */: return checkTypeAliasDeclaration(node); - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return checkEnumDeclaration(node); - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return checkModuleDeclaration(node); - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return checkImportDeclaration(node); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return checkImportEqualsDeclaration(node); - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return checkExportDeclaration(node); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return checkExportAssignment(node); - case 241 /* EmptyStatement */: - case 258 /* DebuggerStatement */: + case 242 /* EmptyStatement */: + case 259 /* DebuggerStatement */: checkGrammarStatementInAmbientContext(node); return; - case 281 /* MissingDeclaration */: + case 282 /* MissingDeclaration */: return checkMissingDeclaration(node); } } @@ -84432,16 +85029,16 @@ function createTypeChecker(host) { const { parent: parent2 } = node; if (isParameter(parent2) && isJSDocFunctionType(parent2.parent)) { if (last(parent2.parent.parameters) !== parent2) { - error(node, Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list); + error2(node, Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list); } return; } if (!isJSDocTypeExpression(parent2)) { - error(node, Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature); + error2(node, Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature); } const paramTag = node.parent.parent; if (!isJSDocParameterTag(paramTag)) { - error(node, Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature); + error2(node, Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature); return; } const param = getParameterSymbolFromJSDoc(paramTag); @@ -84450,7 +85047,7 @@ function createTypeChecker(host) { } const host2 = getHostSignatureFromJSDoc(paramTag); if (!host2 || last(host2.parameters).symbol !== param) { - error(node, Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list); + error2(node, Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list); } } function getTypeFromJSDocVariadicType(node) { @@ -84497,38 +85094,38 @@ function createTypeChecker(host) { currentNode = node; instantiationCount = 0; switch (node.kind) { - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 214 /* TaggedTemplateExpression */: - case 169 /* Decorator */: - case 285 /* JsxOpeningElement */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 215 /* TaggedTemplateExpression */: + case 170 /* Decorator */: + case 286 /* JsxOpeningElement */: resolveUntypedCall(node); break; - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: checkFunctionExpressionOrObjectLiteralMethodDeferred(node); break; - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: checkAccessorDeclaration(node); break; - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: checkClassExpressionDeferred(node); break; - case 167 /* TypeParameter */: + case 168 /* TypeParameter */: checkTypeParameterDeferred(node); break; - case 284 /* JsxSelfClosingElement */: + case 285 /* JsxSelfClosingElement */: checkJsxSelfClosingElementDeferred(node); break; - case 283 /* JsxElement */: + case 284 /* JsxElement */: checkJsxElementDeferred(node); break; - case 215 /* TypeAssertionExpression */: - case 233 /* AsExpression */: - case 216 /* ParenthesizedExpression */: + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: + case 217 /* ParenthesizedExpression */: checkAssertionDeferred(node); } currentNode = saveCurrentNode; @@ -84586,7 +85183,7 @@ function createTypeChecker(host) { addLazyDiagnostic(() => { if (!node.isDeclarationFile && (compilerOptions.noUnusedLocals || compilerOptions.noUnusedParameters)) { checkUnusedIdentifiers(getPotentiallyUnusedIdentifiers(node), (containingNode, kind, diag2) => { - if (!containsParseError(containingNode) && unusedIsError(kind, !!(containingNode.flags & 16777216 /* Ambient */))) { + if (!containsParseError(containingNode) && unusedIsError(kind, !!(containingNode.flags & 33554432 /* Ambient */))) { diagnostics.add(diag2); } }); @@ -84665,7 +85262,7 @@ function createTypeChecker(host) { return diagnostics.getGlobalDiagnostics(); } function getSymbolsInScope(location, meaning) { - if (location.flags & 33554432 /* InWithStatement */) { + if (location.flags & 67108864 /* InWithStatement */) { return []; } const symbols = createSymbolTable(); @@ -84679,27 +85276,27 @@ function createTypeChecker(host) { copySymbols(location.locals, meaning); } switch (location.kind) { - case 311 /* SourceFile */: + case 312 /* SourceFile */: if (!isExternalModule(location)) break; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: copyLocallyVisibleExportSymbols(getSymbolOfDeclaration(location).exports, meaning & 2623475 /* ModuleMember */); break; - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: copySymbols(getSymbolOfDeclaration(location).exports, meaning & 8 /* EnumMember */); break; - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: const className = location.name; if (className) { copySymbol(location.symbol, meaning); } - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: if (!isStaticSymbol) { copySymbols(getMembersOfSymbol(getSymbolOfDeclaration(location)), meaning & 788968 /* Type */); } break; - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: const funcName = location.name; if (funcName) { copySymbol(location.symbol, meaning); @@ -84732,7 +85329,7 @@ function createTypeChecker(host) { function copyLocallyVisibleExportSymbols(source, meaning2) { if (meaning2) { source.forEach((symbol) => { - if (!getDeclarationOfKind(symbol, 280 /* ExportSpecifier */) && !getDeclarationOfKind(symbol, 279 /* NamespaceExport */)) { + if (!getDeclarationOfKind(symbol, 281 /* ExportSpecifier */) && !getDeclarationOfKind(symbol, 280 /* NamespaceExport */) && symbol.escapedName !== "default" /* Default */) { copySymbol(symbol, meaning2); } }); @@ -84743,16 +85340,16 @@ function createTypeChecker(host) { return name.kind === 80 /* Identifier */ && isTypeDeclaration(name.parent) && getNameOfDeclaration(name.parent) === name; } function isTypeReferenceIdentifier(node) { - while (node.parent.kind === 165 /* QualifiedName */) { + while (node.parent.kind === 166 /* QualifiedName */) { node = node.parent; } - return node.parent.kind === 182 /* TypeReference */; + return node.parent.kind === 183 /* TypeReference */; } function isInNameOfExpressionWithTypeArguments(node) { - while (node.parent.kind === 210 /* PropertyAccessExpression */) { + while (node.parent.kind === 211 /* PropertyAccessExpression */) { node = node.parent; } - return node.parent.kind === 232 /* ExpressionWithTypeArguments */; + return node.parent.kind === 233 /* ExpressionWithTypeArguments */; } function forEachEnclosingClass(node, callback) { let result; @@ -84778,13 +85375,13 @@ function createTypeChecker(host) { return !!forEachEnclosingClass(node, (n) => n === classDeclaration); } function getLeftSideOfImportEqualsOrExportAssignment(nodeOnRightSide) { - while (nodeOnRightSide.parent.kind === 165 /* QualifiedName */) { + while (nodeOnRightSide.parent.kind === 166 /* QualifiedName */) { nodeOnRightSide = nodeOnRightSide.parent; } - if (nodeOnRightSide.parent.kind === 270 /* ImportEqualsDeclaration */) { + if (nodeOnRightSide.parent.kind === 271 /* ImportEqualsDeclaration */) { return nodeOnRightSide.parent.moduleReference === nodeOnRightSide ? nodeOnRightSide.parent : void 0; } - if (nodeOnRightSide.parent.kind === 276 /* ExportAssignment */) { + if (nodeOnRightSide.parent.kind === 277 /* ExportAssignment */) { return nodeOnRightSide.parent.expression === nodeOnRightSide ? nodeOnRightSide.parent : void 0; } return void 0; @@ -84810,7 +85407,7 @@ function createTypeChecker(host) { node = parent2; parent2 = parent2.parent; } - if (parent2 && parent2.kind === 204 /* ImportType */ && parent2.qualifier === node) { + if (parent2 && parent2.kind === 205 /* ImportType */ && parent2.qualifier === node) { return parent2; } return void 0; @@ -84832,7 +85429,7 @@ function createTypeChecker(host) { /*contextFlags*/ void 0 ); - const type = contextualType && getThisTypeFromContextualType(contextualType); + const type = getThisTypeOfObjectLiteralFromContextualType(containingLiteral, contextualType); return type && !isTypeAny(type); } } @@ -84842,7 +85439,7 @@ function createTypeChecker(host) { if (isDeclarationName(name)) { return getSymbolOfNode(name.parent); } - if (isInJSFile(name) && name.parent.kind === 210 /* PropertyAccessExpression */ && name.parent === name.parent.parent.left) { + if (isInJSFile(name) && name.parent.kind === 211 /* PropertyAccessExpression */ && name.parent === name.parent.parent.left) { if (!isPrivateIdentifier(name) && !isJSDocMemberName(name) && !isThisPropertyAndThisTyped(name.parent)) { const specialPropertyAssignmentSymbol = getSpecialPropertyAssignmentSymbolFromEntityName(name); if (specialPropertyAssignmentSymbol) { @@ -84850,7 +85447,7 @@ function createTypeChecker(host) { } } } - if (name.parent.kind === 276 /* ExportAssignment */ && isEntityNameExpression(name)) { + if (name.parent.kind === 277 /* ExportAssignment */ && isEntityNameExpression(name)) { const success = resolveEntityName( name, /*all meanings*/ @@ -84862,7 +85459,7 @@ function createTypeChecker(host) { return success; } } else if (isEntityName(name) && isInRightSideOfImportOrExportAssignment(name)) { - const importEqualsDeclaration = getAncestor(name, 270 /* ImportEqualsDeclaration */); + const importEqualsDeclaration = getAncestor(name, 271 /* ImportEqualsDeclaration */); Debug.assert(importEqualsDeclaration !== void 0); return getSymbolOfPartOfRightHandSideOfImportEquals( name, @@ -84883,7 +85480,7 @@ function createTypeChecker(host) { } if (isInNameOfExpressionWithTypeArguments(name)) { let meaning = 0 /* None */; - if (name.parent.kind === 232 /* ExpressionWithTypeArguments */) { + if (name.parent.kind === 233 /* ExpressionWithTypeArguments */) { meaning = isPartOfTypeNode(name) ? 788968 /* Type */ : 111551 /* Value */; if (isExpressionWithTypeArgumentsInClassExtendsClause(name.parent)) { meaning |= 111551 /* Value */; @@ -84902,10 +85499,10 @@ function createTypeChecker(host) { return entityNameSymbol; } } - if (name.parent.kind === 347 /* JSDocParameterTag */) { + if (name.parent.kind === 348 /* JSDocParameterTag */) { return getParameterSymbolFromJSDoc(name.parent); } - if (name.parent.kind === 167 /* TypeParameter */ && name.parent.parent.kind === 351 /* JSDocTemplateTag */) { + if (name.parent.kind === 168 /* TypeParameter */ && name.parent.parent.kind === 352 /* JSDocTemplateTag */) { Debug.assert(!isInJSFile(name)); const typeParameter = getTypeParameterFromJsDoc(name.parent); return typeParameter && typeParameter.symbol; @@ -84958,12 +85555,12 @@ function createTypeChecker(host) { return result; } else if (isPrivateIdentifier(name)) { return getSymbolForPrivateIdentifierExpression(name); - } else if (name.kind === 210 /* PropertyAccessExpression */ || name.kind === 165 /* QualifiedName */) { + } else if (name.kind === 211 /* PropertyAccessExpression */ || name.kind === 166 /* QualifiedName */) { const links = getNodeLinks(name); if (links.resolvedSymbol) { return links.resolvedSymbol; } - if (name.kind === 210 /* PropertyAccessExpression */) { + if (name.kind === 211 /* PropertyAccessExpression */) { checkPropertyAccessExpression(name, 0 /* Normal */); if (!links.resolvedSymbol) { const expressionType = checkExpressionCached(name.expression); @@ -85003,7 +85600,7 @@ function createTypeChecker(host) { return resolveJSDocMemberName(name); } } else if (isTypeReferenceIdentifier(name)) { - const meaning = name.parent.kind === 182 /* TypeReference */ ? 788968 /* Type */ : 1920 /* Namespace */; + const meaning = name.parent.kind === 183 /* TypeReference */ ? 788968 /* Type */ : 1920 /* Namespace */; const symbol = resolveEntityName( name, meaning, @@ -85014,7 +85611,7 @@ function createTypeChecker(host) { ); return symbol && symbol !== unknownSymbol ? symbol : getUnresolvedSymbolForEntityName(name); } - if (name.parent.kind === 181 /* TypePredicate */) { + if (name.parent.kind === 182 /* TypePredicate */) { return resolveEntityName( name, /*meaning*/ @@ -85055,7 +85652,7 @@ function createTypeChecker(host) { } const { parent: parent2 } = node; const grandParent = parent2.parent; - if (node.flags & 33554432 /* InWithStatement */) { + if (node.flags & 67108864 /* InWithStatement */) { return void 0; } if (isDeclarationNameOrImportPropertyName(node)) { @@ -85067,7 +85664,7 @@ function createTypeChecker(host) { if (node.kind === 80 /* Identifier */) { if (isInRightSideOfImportOrExportAssignment(node)) { return getSymbolOfNameOrPropertyAccessExpression(node); - } else if (parent2.kind === 207 /* BindingElement */ && grandParent.kind === 205 /* ObjectBindingPattern */ && node === parent2.propertyName) { + } else if (parent2.kind === 208 /* BindingElement */ && grandParent.kind === 206 /* ObjectBindingPattern */ && node === parent2.propertyName) { const typeOfPattern = getTypeOfNode(grandParent); const propertyDeclaration = getPropertyOfType(typeOfPattern, node.escapedText); if (propertyDeclaration) { @@ -85086,8 +85683,8 @@ function createTypeChecker(host) { switch (node.kind) { case 80 /* Identifier */: case 81 /* PrivateIdentifier */: - case 210 /* PropertyAccessExpression */: - case 165 /* QualifiedName */: + case 211 /* PropertyAccessExpression */: + case 166 /* QualifiedName */: if (!isThisInTypeQuery(node)) { return getSymbolOfNameOrPropertyAccessExpression(node); } @@ -85108,19 +85705,19 @@ function createTypeChecker(host) { if (isInExpressionContext(node)) { return checkExpression(node).symbol; } - case 196 /* ThisType */: + case 197 /* ThisType */: return getTypeFromThisTypeNode(node).symbol; case 108 /* SuperKeyword */: return checkExpression(node).symbol; case 137 /* ConstructorKeyword */: const constructorDeclaration = node.parent; - if (constructorDeclaration && constructorDeclaration.kind === 175 /* Constructor */) { + if (constructorDeclaration && constructorDeclaration.kind === 176 /* Constructor */) { return constructorDeclaration.parent.symbol; } return void 0; case 11 /* StringLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: - if (isExternalModuleImportEqualsDeclaration(node.parent.parent) && getExternalModuleImportEqualsDeclarationExpression(node.parent.parent) === node || (node.parent.kind === 271 /* ImportDeclaration */ || node.parent.kind === 277 /* ExportDeclaration */) && node.parent.moduleSpecifier === node || (isInJSFile(node) && getEmitModuleResolutionKind(compilerOptions) !== 100 /* Bundler */ && isRequireCall( + if (isExternalModuleImportEqualsDeclaration(node.parent.parent) && getExternalModuleImportEqualsDeclarationExpression(node.parent.parent) === node || (node.parent.kind === 272 /* ImportDeclaration */ || node.parent.kind === 278 /* ExportDeclaration */) && node.parent.moduleSpecifier === node || (isInJSFile(node) && getEmitModuleResolutionKind(compilerOptions) !== 100 /* Bundler */ && isRequireCall( node.parent, /*requireStringLiteralLikeArgument*/ false @@ -85138,16 +85735,16 @@ function createTypeChecker(host) { case 39 /* EqualsGreaterThanToken */: case 86 /* ClassKeyword */: return getSymbolOfNode(node.parent); - case 204 /* ImportType */: + case 205 /* ImportType */: return isLiteralImportTypeNode(node) ? getSymbolAtLocation(node.argument.literal, ignoreErrors) : void 0; case 95 /* ExportKeyword */: return isExportAssignment(node.parent) ? Debug.checkDefined(node.parent.symbol) : void 0; case 102 /* ImportKeyword */: case 105 /* NewKeyword */: return isMetaProperty(node.parent) ? checkMetaPropertyKeyword(node.parent).symbol : void 0; - case 235 /* MetaProperty */: + case 236 /* MetaProperty */: return checkExpression(node).symbol; - case 294 /* JsxNamespacedName */: + case 295 /* JsxNamespacedName */: if (isJSXTagName(node) && isJsxIntrinsicTagName(node)) { const symbol = getIntrinsicTagSymbol(node.parent); return symbol === unknownSymbol ? void 0 : symbol; @@ -85166,7 +85763,7 @@ function createTypeChecker(host) { return void 0; } function getShorthandAssignmentValueSymbol(location) { - if (location && location.kind === 303 /* ShorthandPropertyAssignment */) { + if (location && location.kind === 304 /* ShorthandPropertyAssignment */) { return resolveEntityName(location.name, 111551 /* Value */ | 2097152 /* Alias */); } return void 0; @@ -85182,7 +85779,7 @@ function createTypeChecker(host) { if (isSourceFile(node) && !isExternalModule(node)) { return errorType; } - if (node.flags & 33554432 /* InWithStatement */) { + if (node.flags & 67108864 /* InWithStatement */) { return errorType; } const classDecl = tryGetClassImplementingOrExtendingExpressionWithTypeArguments(node); @@ -85246,16 +85843,16 @@ function createTypeChecker(host) { return errorType; } function getTypeOfAssignmentPattern(expr) { - Debug.assert(expr.kind === 209 /* ObjectLiteralExpression */ || expr.kind === 208 /* ArrayLiteralExpression */); - if (expr.parent.kind === 249 /* ForOfStatement */) { + Debug.assert(expr.kind === 210 /* ObjectLiteralExpression */ || expr.kind === 209 /* ArrayLiteralExpression */); + if (expr.parent.kind === 250 /* ForOfStatement */) { const iteratedType = checkRightHandSideOfForOf(expr.parent); return checkDestructuringAssignment(expr, iteratedType || errorType); } - if (expr.parent.kind === 225 /* BinaryExpression */) { + if (expr.parent.kind === 226 /* BinaryExpression */) { const iteratedType = getTypeOfExpression(expr.parent.right); return checkDestructuringAssignment(expr, iteratedType || errorType); } - if (expr.parent.kind === 302 /* PropertyAssignment */) { + if (expr.parent.kind === 303 /* PropertyAssignment */) { const node2 = cast(expr.parent.parent, isObjectLiteralExpression); const typeOfParentObjectLiteral = getTypeOfAssignmentPattern(node2) || errorType; const propertyIndex = indexOfNode(node2.properties, expr.parent); @@ -85288,7 +85885,7 @@ function createTypeChecker(host) { case 9 /* NumericLiteral */: case 11 /* StringLiteral */: return getStringLiteralType(name.text); - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: const nameType = checkComputedPropertyName(name); return isTypeAssignableToKind(nameType, 12288 /* ESSymbolLike */) ? nameType : stringType; default: @@ -85358,7 +85955,7 @@ function createTypeChecker(host) { return symbolLinks2.exportsSomeValue; function isValue(s) { s = resolveSymbol(s); - return s && !!(getAllSymbolFlags(s) & 111551 /* Value */); + return s && !!(getSymbolFlags(s) & 111551 /* Value */); } } function isNameOfModuleOrEnumDeclaration(node) { @@ -85383,7 +85980,7 @@ function createTypeChecker(host) { } const parentSymbol = getParentOfSymbol(symbol); if (parentSymbol) { - if (parentSymbol.flags & 512 /* ValueModule */ && ((_a = parentSymbol.valueDeclaration) == null ? void 0 : _a.kind) === 311 /* SourceFile */) { + if (parentSymbol.flags & 512 /* ValueModule */ && ((_a = parentSymbol.valueDeclaration) == null ? void 0 : _a.kind) === 312 /* SourceFile */) { const symbolFile = parentSymbol.valueDeclaration; const referenceFile = getSourceFileOfNode(node); const symbolIsUmdExport = symbolFile !== referenceFile; @@ -85413,7 +86010,7 @@ function createTypeChecker(host) { return void 0; } function isSymbolOfDestructuredElementOfCatchBinding(symbol) { - return symbol.valueDeclaration && isBindingElement(symbol.valueDeclaration) && walkUpBindingElementsAndPatterns(symbol.valueDeclaration).parent.kind === 298 /* CatchClause */; + return symbol.valueDeclaration && isBindingElement(symbol.valueDeclaration) && walkUpBindingElementsAndPatterns(symbol.valueDeclaration).parent.kind === 299 /* CatchClause */; } function isSymbolOfDeclarationWithCollidingName(symbol) { if (symbol.flags & 418 /* BlockScoped */ && symbol.valueDeclaration && !isSourceFile(symbol.valueDeclaration)) { @@ -85441,7 +86038,7 @@ function createTypeChecker(host) { /*lookInLabeledStatements*/ false ); - const inLoopBodyBlock = container.kind === 240 /* Block */ && isIterationStatement( + const inLoopBodyBlock = container.kind === 241 /* Block */ && isIterationStatement( container.parent, /*lookInLabeledStatements*/ false @@ -85481,31 +86078,35 @@ function createTypeChecker(host) { function isValueAliasDeclaration(node) { Debug.assert(canCollectSymbolAliasAccessabilityData); switch (node.kind) { - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return isAliasResolvedToValue(getSymbolOfDeclaration(node)); - case 272 /* ImportClause */: - case 273 /* NamespaceImport */: - case 275 /* ImportSpecifier */: - case 280 /* ExportSpecifier */: + case 273 /* ImportClause */: + case 274 /* NamespaceImport */: + case 276 /* ImportSpecifier */: + case 281 /* ExportSpecifier */: const symbol = getSymbolOfDeclaration(node); - return !!symbol && isAliasResolvedToValue(symbol) && !getTypeOnlyAliasDeclaration(symbol, 111551 /* Value */); - case 277 /* ExportDeclaration */: + return !!symbol && isAliasResolvedToValue( + symbol, + /*excludeTypeOnlyValues*/ + true + ); + case 278 /* ExportDeclaration */: const exportClause = node.exportClause; return !!exportClause && (isNamespaceExport(exportClause) || some(exportClause.elements, isValueAliasDeclaration)); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return node.expression && node.expression.kind === 80 /* Identifier */ ? isAliasResolvedToValue(getSymbolOfDeclaration(node)) : true; } return false; } function isTopLevelValueImportEqualsWithEntityName(nodeIn) { const node = getParseTreeNode(nodeIn, isImportEqualsDeclaration); - if (node === void 0 || node.parent.kind !== 311 /* SourceFile */ || !isInternalModuleImportEqualsDeclaration(node)) { + if (node === void 0 || node.parent.kind !== 312 /* SourceFile */ || !isInternalModuleImportEqualsDeclaration(node)) { return false; } const isValue = isAliasResolvedToValue(getSymbolOfDeclaration(node)); return isValue && node.moduleReference && !nodeIsMissing(node.moduleReference); } - function isAliasResolvedToValue(symbol) { + function isAliasResolvedToValue(symbol, excludeTypeOnlyValues) { if (!symbol) { return false; } @@ -85513,7 +86114,12 @@ function createTypeChecker(host) { if (target === unknownSymbol) { return true; } - return !!((getAllSymbolFlags(target) ?? -1) & 111551 /* Value */) && (shouldPreserveConstEnums(compilerOptions) || !isConstEnumOrConstEnumOnlyModule(target)); + return !!(getSymbolFlags( + symbol, + excludeTypeOnlyValues, + /*excludeLocalMeanings*/ + true + ) & 111551 /* Value */) && (shouldPreserveConstEnums(compilerOptions) || !isConstEnumOrConstEnumOnlyModule(target)); } function isConstEnumOrConstEnumOnlyModule(s) { return isConstEnumSymbol(s) || !!s.constEnumOnlyModule; @@ -85527,7 +86133,7 @@ function createTypeChecker(host) { return true; } const target = getSymbolLinks(symbol).aliasTarget; - if (target && getEffectiveModifierFlags(node) & 1 /* Export */ && getAllSymbolFlags(target) & 111551 /* Value */ && (shouldPreserveConstEnums(compilerOptions) || !isConstEnumOrConstEnumOnlyModule(target))) { + if (target && getEffectiveModifierFlags(node) & 1 /* Export */ && getSymbolFlags(target) & 111551 /* Value */ && (shouldPreserveConstEnums(compilerOptions) || !isConstEnumOrConstEnumOnlyModule(target))) { return true; } } @@ -85589,15 +86195,15 @@ function createTypeChecker(host) { } function canHaveConstantValue(node) { switch (node.kind) { - case 305 /* EnumMember */: - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 306 /* EnumMember */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return true; } return false; } function getConstantValue2(node) { - if (node.kind === 305 /* EnumMember */) { + if (node.kind === 306 /* EnumMember */) { return getEnumMemberValue(node); } const symbol = getNodeLinks(node).resolvedSymbol; @@ -85797,24 +86403,24 @@ function createTypeChecker(host) { if (symbol) { return filter(getExportSymbolOfValueSymbolIfExported(symbol).declarations, (declaration) => { switch (declaration.kind) { - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 207 /* BindingElement */: - case 171 /* PropertyDeclaration */: - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: - case 305 /* EnumMember */: - case 209 /* ObjectLiteralExpression */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 265 /* EnumDeclaration */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 266 /* ModuleDeclaration */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 208 /* BindingElement */: + case 172 /* PropertyDeclaration */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 306 /* EnumMember */: + case 210 /* ObjectLiteralExpression */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 266 /* EnumDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 267 /* ModuleDeclaration */: return true; } return false; @@ -85825,7 +86431,7 @@ function createTypeChecker(host) { return void 0; } function isLiteralConstDeclaration(node) { - if (isDeclarationReadonly(node) || isVariableDeclaration(node) && isVarConst(node)) { + if (isDeclarationReadonly(node) || isVariableDeclaration(node) && isVarConstLike(node)) { return isFreshLiteralType(getTypeOfSymbol(getSymbolOfDeclaration(node))); } return false; @@ -85943,12 +86549,12 @@ function createTypeChecker(host) { getJsxFragmentFactoryEntity, getAllAccessorDeclarations(accessor) { accessor = getParseTreeNode(accessor, isGetOrSetAccessorDeclaration); - const otherKind = accessor.kind === 177 /* SetAccessor */ ? 176 /* GetAccessor */ : 177 /* SetAccessor */; + const otherKind = accessor.kind === 178 /* SetAccessor */ ? 177 /* GetAccessor */ : 178 /* SetAccessor */; const otherAccessor = getDeclarationOfKind(getSymbolOfDeclaration(accessor), otherKind); const firstAccessor = otherAccessor && otherAccessor.pos < accessor.pos ? otherAccessor : accessor; const secondAccessor = otherAccessor && otherAccessor.pos < accessor.pos ? accessor : otherAccessor; - const setAccessor = accessor.kind === 177 /* SetAccessor */ ? accessor : otherAccessor; - const getAccessor = accessor.kind === 176 /* GetAccessor */ ? accessor : otherAccessor; + const setAccessor = accessor.kind === 178 /* SetAccessor */ ? accessor : otherAccessor; + const getAccessor = accessor.kind === 177 /* GetAccessor */ ? accessor : otherAccessor; return { firstAccessor, secondAccessor, @@ -85969,7 +86575,7 @@ function createTypeChecker(host) { }, getDeclarationStatementsForSourceFile: (node, flags, tracker, bundled) => { const n = getParseTreeNode(node); - Debug.assert(n && n.kind === 311 /* SourceFile */, "Non-sourcefile node passed into getDeclarationsForSourceFile"); + Debug.assert(n && n.kind === 312 /* SourceFile */, "Non-sourcefile node passed into getDeclarationsForSourceFile"); const sym = getSymbolOfDeclaration(node); if (!sym) { return !node.locals ? [] : nodeBuilder.symbolTableToDeclarationStatements(node.locals, node, flags, tracker, bundled); @@ -86004,18 +86610,18 @@ function createTypeChecker(host) { return false; } function isInHeritageClause(node) { - return node.parent && node.parent.kind === 232 /* ExpressionWithTypeArguments */ && node.parent.parent && node.parent.parent.kind === 297 /* HeritageClause */; + return node.parent && node.parent.kind === 233 /* ExpressionWithTypeArguments */ && node.parent.parent && node.parent.parent.kind === 298 /* HeritageClause */; } function getTypeReferenceDirectivesForEntityName(node) { if (!fileToDirective) { return void 0; } let meaning; - if (node.parent.kind === 166 /* ComputedPropertyName */) { + if (node.parent.kind === 167 /* ComputedPropertyName */) { meaning = 111551 /* Value */ | 1048576 /* ExportValue */; } else { meaning = 788968 /* Type */ | 1920 /* Namespace */; - if (node.kind === 80 /* Identifier */ && isInTypeQuery(node) || node.kind === 210 /* PropertyAccessExpression */ && !isInHeritageClause(node)) { + if (node.kind === 80 /* Identifier */ && isInTypeQuery(node) || node.kind === 211 /* PropertyAccessExpression */ && !isInHeritageClause(node)) { meaning = 111551 /* Value */ | 1048576 /* ExportValue */; } } @@ -86058,7 +86664,7 @@ function createTypeChecker(host) { break; } } - if (current.valueDeclaration && current.valueDeclaration.kind === 311 /* SourceFile */ && current.flags & 512 /* ValueModule */) { + if (current.valueDeclaration && current.valueDeclaration.kind === 312 /* SourceFile */ && current.flags & 512 /* ValueModule */) { return false; } for (const decl of symbol.declarations) { @@ -86083,7 +86689,7 @@ function createTypeChecker(host) { } } function getExternalModuleFileFromDeclaration(declaration) { - const specifier = declaration.kind === 266 /* ModuleDeclaration */ ? tryCast(declaration.name, isStringLiteral) : getExternalModuleName(declaration); + const specifier = declaration.kind === 267 /* ModuleDeclaration */ ? tryCast(declaration.name, isStringLiteral) : getExternalModuleName(declaration); const moduleSymbol = resolveExternalModuleNameWorker( specifier, specifier, @@ -86093,7 +86699,7 @@ function createTypeChecker(host) { if (!moduleSymbol) { return void 0; } - return getDeclarationOfKind(moduleSymbol, 311 /* SourceFile */); + return getDeclarationOfKind(moduleSymbol, 312 /* SourceFile */); } function initializeTypeChecker() { for (const file of host.getSourceFiles()) { @@ -86275,11 +86881,11 @@ function createTypeChecker(host) { function checkExternalEmitHelpers(location, helpers) { if ((requestedExternalEmitHelpers & helpers) !== helpers && compilerOptions.importHelpers) { const sourceFile = getSourceFileOfNode(location); - if (isEffectiveExternalModule(sourceFile, compilerOptions) && !(location.flags & 16777216 /* Ambient */)) { + if (isEffectiveExternalModule(sourceFile, compilerOptions) && !(location.flags & 33554432 /* Ambient */)) { const helpersModule = resolveHelpersModule(sourceFile, location); if (helpersModule !== unknownSymbol) { const uncheckedHelpers = helpers & ~requestedExternalEmitHelpers; - for (let helper = 1 /* FirstEmitHelper */; helper <= 16777216 /* LastEmitHelper */; helper <<= 1) { + for (let helper = 1 /* FirstEmitHelper */; helper <= 33554432 /* LastEmitHelper */; helper <<= 1) { if (uncheckedHelpers & helper) { for (const name of getHelperNames(helper)) { if (requestedExternalEmitHelperNames.has(name)) @@ -86287,18 +86893,18 @@ function createTypeChecker(host) { requestedExternalEmitHelperNames.add(name); const symbol = resolveSymbol(getSymbol2(getExportsOfModule(helpersModule), escapeLeadingUnderscores(name), 111551 /* Value */)); if (!symbol) { - error(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name); + error2(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name); } else if (helper & 524288 /* ClassPrivateFieldGet */) { if (!some(getSignaturesOfSymbol(symbol), (signature) => getParameterCount(signature) > 3)) { - error(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name, 4); + error2(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name, 4); } } else if (helper & 1048576 /* ClassPrivateFieldSet */) { if (!some(getSignaturesOfSymbol(symbol), (signature) => getParameterCount(signature) > 4)) { - error(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name, 5); + error2(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name, 5); } } else if (helper & 1024 /* SpreadArray */) { if (!some(getSignaturesOfSymbol(symbol), (signature) => getParameterCount(signature) > 2)) { - error(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name, 3); + error2(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name, 3); } } } @@ -86361,6 +86967,8 @@ function createTypeChecker(host) { return ["__setFunctionName"]; case 16777216 /* PropKey */: return ["__propKey"]; + case 33554432 /* AddDisposableResourceAndDisposeResources */: + return ["__addDisposableResource", "__disposeResources"]; default: return Debug.fail("Unrecognized helper"); } @@ -86379,6 +86987,7 @@ function createTypeChecker(host) { if (isParameter(node) && parameterIsThisKeyword(node)) { return grammarErrorOnFirstToken(node, Diagnostics.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters); } + const blockScopeKind = isVariableStatement(node) ? node.declarationList.flags & 7 /* BlockScoped */ : 0 /* None */; let lastStatic, lastDeclare, lastAsync, lastOverride, firstDecorator; let flags = 0 /* None */; let sawExportBeforeDecorators = false; @@ -86386,12 +86995,12 @@ function createTypeChecker(host) { for (const modifier of node.modifiers) { if (isDecorator(modifier)) { if (!nodeCanBeDecorated(legacyDecorators, node, node.parent, node.parent.parent)) { - if (node.kind === 173 /* MethodDeclaration */ && !nodeIsPresent(node.body)) { + if (node.kind === 174 /* MethodDeclaration */ && !nodeIsPresent(node.body)) { return grammarErrorOnFirstToken(node, Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload); } else { return grammarErrorOnFirstToken(node, Diagnostics.Decorators_are_not_valid_here); } - } else if (legacyDecorators && (node.kind === 176 /* GetAccessor */ || node.kind === 177 /* SetAccessor */)) { + } else if (legacyDecorators && (node.kind === 177 /* GetAccessor */ || node.kind === 178 /* SetAccessor */)) { const accessors = getAllAccessorDeclarations(node.parent.members, node); if (hasDecorators(accessors.firstAccessor) && node === accessors.secondAccessor) { return grammarErrorOnFirstToken(node, Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name); @@ -86405,7 +87014,7 @@ function createTypeChecker(host) { const sourceFile = getSourceFileOfNode(modifier); if (!hasParseDiagnostics(sourceFile)) { addRelatedInfo( - error(modifier, Diagnostics.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export), + error2(modifier, Diagnostics.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export), createDiagnosticForNode(firstDecorator, Diagnostics.Decorator_used_before_export_here) ); return true; @@ -86421,29 +87030,29 @@ function createTypeChecker(host) { firstDecorator ?? (firstDecorator = modifier); } else { if (modifier.kind !== 148 /* ReadonlyKeyword */) { - if (node.kind === 170 /* PropertySignature */ || node.kind === 172 /* MethodSignature */) { + if (node.kind === 171 /* PropertySignature */ || node.kind === 173 /* MethodSignature */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_type_member, tokenToString(modifier.kind)); } - if (node.kind === 180 /* IndexSignature */ && (modifier.kind !== 126 /* StaticKeyword */ || !isClassLike(node.parent))) { + if (node.kind === 181 /* IndexSignature */ && (modifier.kind !== 126 /* StaticKeyword */ || !isClassLike(node.parent))) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_an_index_signature, tokenToString(modifier.kind)); } } if (modifier.kind !== 103 /* InKeyword */ && modifier.kind !== 147 /* OutKeyword */ && modifier.kind !== 87 /* ConstKeyword */) { - if (node.kind === 167 /* TypeParameter */) { + if (node.kind === 168 /* TypeParameter */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_type_parameter, tokenToString(modifier.kind)); } } switch (modifier.kind) { case 87 /* ConstKeyword */: - if (node.kind !== 265 /* EnumDeclaration */ && node.kind !== 167 /* TypeParameter */) { + if (node.kind !== 266 /* EnumDeclaration */ && node.kind !== 168 /* TypeParameter */) { return grammarErrorOnNode(node, Diagnostics.A_class_member_cannot_have_the_0_keyword, tokenToString(87 /* ConstKeyword */)); } const parent2 = node.parent; - if (node.kind === 167 /* TypeParameter */ && !(isFunctionLikeDeclaration(parent2) || isClassLike(parent2) || isFunctionTypeNode(parent2) || isConstructorTypeNode(parent2) || isCallSignatureDeclaration(parent2) || isConstructSignatureDeclaration(parent2) || isMethodSignature(parent2))) { + if (node.kind === 168 /* TypeParameter */ && !(isFunctionLikeDeclaration(parent2) || isClassLike(parent2) || isFunctionTypeNode(parent2) || isConstructorTypeNode(parent2) || isCallSignatureDeclaration(parent2) || isConstructSignatureDeclaration(parent2) || isMethodSignature(parent2))) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class, tokenToString(modifier.kind)); } break; - case 163 /* OverrideKeyword */: + case 164 /* OverrideKeyword */: if (flags & 16384 /* Override */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, "override"); } else if (flags & 2 /* Ambient */) { @@ -86474,7 +87083,7 @@ function createTypeChecker(host) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, text, "readonly"); } else if (flags & 512 /* Async */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, text, "async"); - } else if (node.parent.kind === 267 /* ModuleBlock */ || node.parent.kind === 311 /* SourceFile */) { + } else if (node.parent.kind === 268 /* ModuleBlock */ || node.parent.kind === 312 /* SourceFile */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element, text); } else if (flags & 256 /* Abstract */) { if (modifier.kind === 123 /* PrivateKeyword */) { @@ -86496,9 +87105,9 @@ function createTypeChecker(host) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "static", "async"); } else if (flags & 128 /* Accessor */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "static", "accessor"); - } else if (node.parent.kind === 267 /* ModuleBlock */ || node.parent.kind === 311 /* SourceFile */) { + } else if (node.parent.kind === 268 /* ModuleBlock */ || node.parent.kind === 312 /* SourceFile */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element, "static"); - } else if (node.kind === 168 /* Parameter */) { + } else if (node.kind === 169 /* Parameter */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_parameter, "static"); } else if (flags & 256 /* Abstract */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "static", "abstract"); @@ -86515,7 +87124,7 @@ function createTypeChecker(host) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "accessor", "readonly"); } else if (flags & 2 /* Ambient */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "accessor", "declare"); - } else if (node.kind !== 171 /* PropertyDeclaration */) { + } else if (node.kind !== 172 /* PropertyDeclaration */) { return grammarErrorOnNode(modifier, Diagnostics.accessor_modifier_can_only_appear_on_a_property_declaration); } flags |= 128 /* Accessor */; @@ -86523,7 +87132,7 @@ function createTypeChecker(host) { case 148 /* ReadonlyKeyword */: if (flags & 64 /* Readonly */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, "readonly"); - } else if (node.kind !== 171 /* PropertyDeclaration */ && node.kind !== 170 /* PropertySignature */ && node.kind !== 180 /* IndexSignature */ && node.kind !== 168 /* Parameter */) { + } else if (node.kind !== 172 /* PropertyDeclaration */ && node.kind !== 171 /* PropertySignature */ && node.kind !== 181 /* IndexSignature */ && node.kind !== 169 /* Parameter */) { return grammarErrorOnNode(modifier, Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature); } else if (flags & 128 /* Accessor */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "readonly", "accessor"); @@ -86531,8 +87140,8 @@ function createTypeChecker(host) { flags |= 64 /* Readonly */; break; case 95 /* ExportKeyword */: - if (compilerOptions.verbatimModuleSyntax && !(node.flags & 16777216 /* Ambient */) && node.kind !== 264 /* TypeAliasDeclaration */ && node.kind !== 263 /* InterfaceDeclaration */ && // ModuleDeclaration needs to be checked that it is uninstantiated later - node.kind !== 266 /* ModuleDeclaration */ && node.parent.kind === 311 /* SourceFile */ && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { + if (compilerOptions.verbatimModuleSyntax && !(node.flags & 33554432 /* Ambient */) && node.kind !== 265 /* TypeAliasDeclaration */ && node.kind !== 264 /* InterfaceDeclaration */ && // ModuleDeclaration needs to be checked that it is uninstantiated later + node.kind !== 267 /* ModuleDeclaration */ && node.parent.kind === 312 /* SourceFile */ && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { return grammarErrorOnNode(modifier, Diagnostics.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); } if (flags & 1 /* Export */) { @@ -86545,15 +87154,23 @@ function createTypeChecker(host) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "export", "async"); } else if (isClassLike(node.parent)) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind, "export"); - } else if (node.kind === 168 /* Parameter */) { + } else if (node.kind === 169 /* Parameter */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_parameter, "export"); + } else if (blockScopeKind === 4 /* Using */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_using_declaration, "export"); + } else if (blockScopeKind === 6 /* AwaitUsing */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_an_await_using_declaration, "export"); } flags |= 1 /* Export */; break; case 90 /* DefaultKeyword */: - const container = node.parent.kind === 311 /* SourceFile */ ? node.parent : node.parent.parent; - if (container.kind === 266 /* ModuleDeclaration */ && !isAmbientModule(container)) { + const container = node.parent.kind === 312 /* SourceFile */ ? node.parent : node.parent.parent; + if (container.kind === 267 /* ModuleDeclaration */ && !isAmbientModule(container)) { return grammarErrorOnNode(modifier, Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module); + } else if (blockScopeKind === 4 /* Using */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_using_declaration, "default"); + } else if (blockScopeKind === 6 /* AwaitUsing */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_an_await_using_declaration, "default"); } else if (!(flags & 1 /* Export */)) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "export", "default"); } else if (sawExportBeforeDecorators) { @@ -86570,9 +87187,13 @@ function createTypeChecker(host) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context, "override"); } else if (isClassLike(node.parent) && !isPropertyDeclaration(node)) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind, "declare"); - } else if (node.kind === 168 /* Parameter */) { + } else if (node.kind === 169 /* Parameter */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_parameter, "declare"); - } else if (node.parent.flags & 16777216 /* Ambient */ && node.parent.kind === 267 /* ModuleBlock */) { + } else if (blockScopeKind === 4 /* Using */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_using_declaration, "declare"); + } else if (blockScopeKind === 6 /* AwaitUsing */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_an_await_using_declaration, "declare"); + } else if (node.parent.flags & 33554432 /* Ambient */ && node.parent.kind === 268 /* ModuleBlock */) { return grammarErrorOnNode(modifier, Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context); } else if (isPrivateIdentifierClassElementDeclaration(node)) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier, "declare"); @@ -86586,12 +87207,12 @@ function createTypeChecker(host) { if (flags & 256 /* Abstract */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, "abstract"); } - if (node.kind !== 262 /* ClassDeclaration */ && node.kind !== 184 /* ConstructorType */) { - if (node.kind !== 173 /* MethodDeclaration */ && node.kind !== 171 /* PropertyDeclaration */ && node.kind !== 176 /* GetAccessor */ && node.kind !== 177 /* SetAccessor */) { + if (node.kind !== 263 /* ClassDeclaration */ && node.kind !== 185 /* ConstructorType */) { + if (node.kind !== 174 /* MethodDeclaration */ && node.kind !== 172 /* PropertyDeclaration */ && node.kind !== 177 /* GetAccessor */ && node.kind !== 178 /* SetAccessor */) { return grammarErrorOnNode(modifier, Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration); } - if (!(node.parent.kind === 262 /* ClassDeclaration */ && hasSyntacticModifier(node.parent, 256 /* Abstract */))) { - const message = node.kind === 171 /* PropertyDeclaration */ ? Diagnostics.Abstract_properties_can_only_appear_within_an_abstract_class : Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class; + if (!(node.parent.kind === 263 /* ClassDeclaration */ && hasSyntacticModifier(node.parent, 256 /* Abstract */))) { + const message = node.kind === 172 /* PropertyDeclaration */ ? Diagnostics.Abstract_properties_can_only_appear_within_an_abstract_class : Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class; return grammarErrorOnNode(modifier, message); } if (flags & 32 /* Static */) { @@ -86618,9 +87239,9 @@ function createTypeChecker(host) { case 134 /* AsyncKeyword */: if (flags & 512 /* Async */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, "async"); - } else if (flags & 2 /* Ambient */ || node.parent.flags & 16777216 /* Ambient */) { + } else if (flags & 2 /* Ambient */ || node.parent.flags & 33554432 /* Ambient */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context, "async"); - } else if (node.kind === 168 /* Parameter */) { + } else if (node.kind === 169 /* Parameter */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_parameter, "async"); } if (flags & 256 /* Abstract */) { @@ -86633,7 +87254,7 @@ function createTypeChecker(host) { case 147 /* OutKeyword */: const inOutFlag = modifier.kind === 103 /* InKeyword */ ? 32768 /* In */ : 65536 /* Out */; const inOutText = modifier.kind === 103 /* InKeyword */ ? "in" : "out"; - if (node.kind !== 167 /* TypeParameter */ || !(isInterfaceDeclaration(node.parent) || isClassLike(node.parent) || isTypeAliasDeclaration(node.parent))) { + if (node.kind !== 168 /* TypeParameter */ || !(isInterfaceDeclaration(node.parent) || isClassLike(node.parent) || isTypeAliasDeclaration(node.parent))) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias, inOutText); } if (flags & inOutFlag) { @@ -86647,7 +87268,7 @@ function createTypeChecker(host) { } } } - if (node.kind === 175 /* Constructor */) { + if (node.kind === 176 /* Constructor */) { if (flags & 32 /* Static */) { return grammarErrorOnNode(lastStatic, Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "static"); } @@ -86658,11 +87279,11 @@ function createTypeChecker(host) { return grammarErrorOnNode(lastAsync, Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "async"); } return false; - } else if ((node.kind === 271 /* ImportDeclaration */ || node.kind === 270 /* ImportEqualsDeclaration */) && flags & 2 /* Ambient */) { + } else if ((node.kind === 272 /* ImportDeclaration */ || node.kind === 271 /* ImportEqualsDeclaration */) && flags & 2 /* Ambient */) { return grammarErrorOnNode(lastDeclare, Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration, "declare"); - } else if (node.kind === 168 /* Parameter */ && flags & 16476 /* ParameterPropertyModifier */ && isBindingPattern(node.name)) { + } else if (node.kind === 169 /* Parameter */ && flags & 16476 /* ParameterPropertyModifier */ && isBindingPattern(node.name)) { return grammarErrorOnNode(node, Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern); - } else if (node.kind === 168 /* Parameter */ && flags & 16476 /* ParameterPropertyModifier */ && node.dotDotDotToken) { + } else if (node.kind === 169 /* Parameter */ && flags & 16476 /* ParameterPropertyModifier */ && node.dotDotDotToken) { return grammarErrorOnNode(node, Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter); } if (flags & 512 /* Async */) { @@ -86682,46 +87303,47 @@ function createTypeChecker(host) { } function findFirstIllegalModifier(node) { switch (node.kind) { - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 175 /* Constructor */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 180 /* IndexSignature */: - case 266 /* ModuleDeclaration */: - case 271 /* ImportDeclaration */: - case 270 /* ImportEqualsDeclaration */: - case 277 /* ExportDeclaration */: - case 276 /* ExportAssignment */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 168 /* Parameter */: - case 167 /* TypeParameter */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 176 /* Constructor */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 181 /* IndexSignature */: + case 267 /* ModuleDeclaration */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 278 /* ExportDeclaration */: + case 277 /* ExportAssignment */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 169 /* Parameter */: + case 168 /* TypeParameter */: return void 0; - case 174 /* ClassStaticBlockDeclaration */: - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: - case 269 /* NamespaceExportDeclaration */: - case 281 /* MissingDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 270 /* NamespaceExportDeclaration */: + case 282 /* MissingDeclaration */: return find(node.modifiers, isModifier); default: - if (node.parent.kind === 267 /* ModuleBlock */ || node.parent.kind === 311 /* SourceFile */) { + if (node.parent.kind === 268 /* ModuleBlock */ || node.parent.kind === 312 /* SourceFile */) { return void 0; } switch (node.kind) { - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return findFirstModifierExcept(node, 134 /* AsyncKeyword */); - case 262 /* ClassDeclaration */: - case 184 /* ConstructorType */: + case 263 /* ClassDeclaration */: + case 185 /* ConstructorType */: return findFirstModifierExcept(node, 128 /* AbstractKeyword */); - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 242 /* VariableStatement */: - case 264 /* TypeAliasDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: return find(node.modifiers, isModifier); - case 265 /* EnumDeclaration */: + case 243 /* VariableStatement */: + return node.declarationList.flags & 4 /* Using */ ? findFirstModifierExcept(node, 135 /* AwaitKeyword */) : find(node.modifiers, isModifier); + case 266 /* EnumDeclaration */: return findFirstModifierExcept(node, 87 /* ConstKeyword */); default: Debug.assertNever(node); @@ -86737,10 +87359,10 @@ function createTypeChecker(host) { } function checkGrammarAsyncModifier(node, asyncModifier) { switch (node.kind) { - case 173 /* MethodDeclaration */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return false; } return grammarErrorOnNode(asyncModifier, Diagnostics._0_modifier_cannot_be_used_here, "async"); @@ -86768,7 +87390,7 @@ function createTypeChecker(host) { if (i !== parameterCount - 1) { return grammarErrorOnNode(parameter.dotDotDotToken, Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list); } - if (!(parameter.flags & 16777216 /* Ambient */)) { + if (!(parameter.flags & 33554432 /* Ambient */)) { checkGrammarForDisallowedTrailingComma(parameters, Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma); } if (parameter.questionToken) { @@ -86798,12 +87420,12 @@ function createTypeChecker(host) { if (length(nonSimpleParameters)) { forEach(nonSimpleParameters, (parameter) => { addRelatedInfo( - error(parameter, Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive), + error2(parameter, Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive), createDiagnosticForNode(useStrictDirective, Diagnostics.use_strict_directive_used_here) ); }); const diagnostics2 = nonSimpleParameters.map((parameter, index) => index === 0 ? createDiagnosticForNode(parameter, Diagnostics.Non_simple_parameter_declared_here) : createDiagnosticForNode(parameter, Diagnostics.and_here)); - addRelatedInfo(error(useStrictDirective, Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list), ...diagnostics2); + addRelatedInfo(error2(useStrictDirective, Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list), ...diagnostics2); return true; } } @@ -86885,7 +87507,7 @@ function createTypeChecker(host) { return checkGrammarForDisallowedTrailingComma(typeArguments) || checkGrammarForAtLeastOneTypeArgument(node, typeArguments); } function checkGrammarTaggedTemplateChain(node) { - if (node.questionDotToken || node.flags & 32 /* OptionalChain */) { + if (node.questionDotToken || node.flags & 64 /* OptionalChain */) { return grammarErrorOnNode(node.template, Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain); } return false; @@ -86953,11 +87575,11 @@ function createTypeChecker(host) { return false; } function checkGrammarComputedPropertyName(node) { - if (node.kind !== 166 /* ComputedPropertyName */) { + if (node.kind !== 167 /* ComputedPropertyName */) { return false; } const computedPropertyName = node; - if (computedPropertyName.expression.kind === 225 /* BinaryExpression */ && computedPropertyName.expression.operatorToken.kind === 28 /* CommaToken */) { + if (computedPropertyName.expression.kind === 226 /* BinaryExpression */ && computedPropertyName.expression.operatorToken.kind === 28 /* CommaToken */) { return grammarErrorOnNode(computedPropertyName.expression, Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name); } return false; @@ -86965,9 +87587,9 @@ function createTypeChecker(host) { function checkGrammarForGenerator(node) { if (node.asteriskToken) { Debug.assert( - node.kind === 261 /* FunctionDeclaration */ || node.kind === 217 /* FunctionExpression */ || node.kind === 173 /* MethodDeclaration */ + node.kind === 262 /* FunctionDeclaration */ || node.kind === 218 /* FunctionExpression */ || node.kind === 174 /* MethodDeclaration */ ); - if (node.flags & 16777216 /* Ambient */) { + if (node.flags & 33554432 /* Ambient */) { return grammarErrorOnNode(node.asteriskToken, Diagnostics.Generators_are_not_allowed_in_an_ambient_context); } if (!node.body) { @@ -86984,7 +87606,7 @@ function createTypeChecker(host) { function checkGrammarObjectLiteralExpression(node, inDestructuring) { const seen = /* @__PURE__ */ new Map(); for (const prop of node.properties) { - if (prop.kind === 304 /* SpreadAssignment */) { + if (prop.kind === 305 /* SpreadAssignment */) { if (inDestructuring) { const expression = skipParentheses(prop.expression); if (isArrayLiteralExpression(expression) || isObjectLiteralExpression(expression)) { @@ -86994,10 +87616,10 @@ function createTypeChecker(host) { continue; } const name = prop.name; - if (name.kind === 166 /* ComputedPropertyName */) { + if (name.kind === 167 /* ComputedPropertyName */) { checkGrammarComputedPropertyName(name); } - if (prop.kind === 303 /* ShorthandPropertyAssignment */ && !inDestructuring && prop.objectAssignmentInitializer) { + if (prop.kind === 304 /* ShorthandPropertyAssignment */ && !inDestructuring && prop.objectAssignmentInitializer) { grammarErrorOnNode(prop.equalsToken, Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern); } if (name.kind === 81 /* PrivateIdentifier */) { @@ -87005,7 +87627,7 @@ function createTypeChecker(host) { } if (canHaveModifiers(prop) && prop.modifiers) { for (const mod of prop.modifiers) { - if (isModifier(mod) && (mod.kind !== 134 /* AsyncKeyword */ || prop.kind !== 173 /* MethodDeclaration */)) { + if (isModifier(mod) && (mod.kind !== 134 /* AsyncKeyword */ || prop.kind !== 174 /* MethodDeclaration */)) { grammarErrorOnNode(mod, Diagnostics._0_modifier_cannot_be_used_here, getTextOfNode(mod)); } } @@ -87018,8 +87640,8 @@ function createTypeChecker(host) { } let currentKind; switch (prop.kind) { - case 303 /* ShorthandPropertyAssignment */: - case 302 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 303 /* PropertyAssignment */: checkGrammarForInvalidExclamationToken(prop.exclamationToken, Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context); checkGrammarForInvalidQuestionMark(prop.questionToken, Diagnostics.An_object_member_cannot_be_declared_optional); if (name.kind === 9 /* NumericLiteral */) { @@ -87027,13 +87649,13 @@ function createTypeChecker(host) { } currentKind = 4 /* PropertyAssignment */; break; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: currentKind = 8 /* Method */; break; - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: currentKind = 1 /* GetAccessor */; break; - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: currentKind = 2 /* SetAccessor */; break; default: @@ -87070,7 +87692,7 @@ function createTypeChecker(host) { checkGrammarTypeArguments(node, node.typeArguments); const seen = /* @__PURE__ */ new Map(); for (const attr of node.attributes.properties) { - if (attr.kind === 292 /* JsxSpreadAttribute */) { + if (attr.kind === 293 /* JsxSpreadAttribute */) { continue; } const { name, initializer } = attr; @@ -87080,7 +87702,7 @@ function createTypeChecker(host) { } else { return grammarErrorOnNode(name, Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name); } - if (initializer && initializer.kind === 293 /* JsxExpression */ && !initializer.expression) { + if (initializer && initializer.kind === 294 /* JsxExpression */ && !initializer.expression) { return grammarErrorOnNode(initializer, Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression); } } @@ -87102,8 +87724,8 @@ function createTypeChecker(host) { if (checkGrammarStatementInAmbientContext(forInOrOfStatement)) { return true; } - if (forInOrOfStatement.kind === 249 /* ForOfStatement */ && forInOrOfStatement.awaitModifier) { - if (!(forInOrOfStatement.flags & 32768 /* AwaitContext */)) { + if (forInOrOfStatement.kind === 250 /* ForOfStatement */ && forInOrOfStatement.awaitModifier) { + if (!(forInOrOfStatement.flags & 65536 /* AwaitContext */)) { const sourceFile = getSourceFileOfNode(forInOrOfStatement); if (isInTopLevelContext(forInOrOfStatement)) { if (!hasParseDiagnostics(sourceFile)) { @@ -87142,7 +87764,7 @@ function createTypeChecker(host) { if (!hasParseDiagnostics(sourceFile)) { const diagnostic = createDiagnosticForNode(forInOrOfStatement.awaitModifier, Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules); const func = getContainingFunction(forInOrOfStatement); - if (func && func.kind !== 175 /* Constructor */) { + if (func && func.kind !== 176 /* Constructor */) { Debug.assert((getFunctionFlags(func) & 2 /* Async */) === 0, "Enclosing function should never be an async function."); const relatedInfo = createDiagnosticForNode(func, Diagnostics.Did_you_mean_to_mark_this_function_as_async); addRelatedInfo(diagnostic, relatedInfo); @@ -87154,11 +87776,11 @@ function createTypeChecker(host) { return false; } } - if (isForOfStatement(forInOrOfStatement) && !(forInOrOfStatement.flags & 32768 /* AwaitContext */) && isIdentifier(forInOrOfStatement.initializer) && forInOrOfStatement.initializer.escapedText === "async") { + if (isForOfStatement(forInOrOfStatement) && !(forInOrOfStatement.flags & 65536 /* AwaitContext */) && isIdentifier(forInOrOfStatement.initializer) && forInOrOfStatement.initializer.escapedText === "async") { grammarErrorOnNode(forInOrOfStatement.initializer, Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async); return false; } - if (forInOrOfStatement.initializer.kind === 260 /* VariableDeclarationList */) { + if (forInOrOfStatement.initializer.kind === 261 /* VariableDeclarationList */) { const variableList = forInOrOfStatement.initializer; if (!checkGrammarVariableDeclarationList(variableList)) { const declarations = variableList.declarations; @@ -87166,16 +87788,16 @@ function createTypeChecker(host) { return false; } if (declarations.length > 1) { - const diagnostic = forInOrOfStatement.kind === 248 /* ForInStatement */ ? Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement : Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement; + const diagnostic = forInOrOfStatement.kind === 249 /* ForInStatement */ ? Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement : Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement; return grammarErrorOnFirstToken(variableList.declarations[1], diagnostic); } const firstDeclaration = declarations[0]; if (firstDeclaration.initializer) { - const diagnostic = forInOrOfStatement.kind === 248 /* ForInStatement */ ? Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer : Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer; + const diagnostic = forInOrOfStatement.kind === 249 /* ForInStatement */ ? Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer : Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer; return grammarErrorOnNode(firstDeclaration.name, diagnostic); } if (firstDeclaration.type) { - const diagnostic = forInOrOfStatement.kind === 248 /* ForInStatement */ ? Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation : Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation; + const diagnostic = forInOrOfStatement.kind === 249 /* ForInStatement */ ? Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation : Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation; return grammarErrorOnNode(firstDeclaration, diagnostic); } } @@ -87183,7 +87805,7 @@ function createTypeChecker(host) { return false; } function checkGrammarAccessor(accessor) { - if (!(accessor.flags & 16777216 /* Ambient */) && accessor.parent.kind !== 186 /* TypeLiteral */ && accessor.parent.kind !== 263 /* InterfaceDeclaration */) { + if (!(accessor.flags & 33554432 /* Ambient */) && accessor.parent.kind !== 187 /* TypeLiteral */ && accessor.parent.kind !== 264 /* InterfaceDeclaration */) { if (languageVersion < 1 /* ES5 */) { return grammarErrorOnNode(accessor.name, Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher); } @@ -87198,7 +87820,7 @@ function createTypeChecker(host) { if (hasSyntacticModifier(accessor, 256 /* Abstract */)) { return grammarErrorOnNode(accessor, Diagnostics.An_abstract_accessor_cannot_have_an_implementation); } - if (accessor.parent.kind === 186 /* TypeLiteral */ || accessor.parent.kind === 263 /* InterfaceDeclaration */) { + if (accessor.parent.kind === 187 /* TypeLiteral */ || accessor.parent.kind === 264 /* InterfaceDeclaration */) { return grammarErrorOnNode(accessor.body, Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts); } } @@ -87208,10 +87830,10 @@ function createTypeChecker(host) { if (!doesAccessorHaveCorrectParameterCount(accessor)) { return grammarErrorOnNode( accessor.name, - accessor.kind === 176 /* GetAccessor */ ? Diagnostics.A_get_accessor_cannot_have_parameters : Diagnostics.A_set_accessor_must_have_exactly_one_parameter + accessor.kind === 177 /* GetAccessor */ ? Diagnostics.A_get_accessor_cannot_have_parameters : Diagnostics.A_set_accessor_must_have_exactly_one_parameter ); } - if (accessor.kind === 177 /* SetAccessor */) { + if (accessor.kind === 178 /* SetAccessor */) { if (accessor.type) { return grammarErrorOnNode(accessor.name, Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation); } @@ -87229,10 +87851,10 @@ function createTypeChecker(host) { return false; } function doesAccessorHaveCorrectParameterCount(accessor) { - return getAccessorThisParameter(accessor) || accessor.parameters.length === (accessor.kind === 176 /* GetAccessor */ ? 0 : 1); + return getAccessorThisParameter(accessor) || accessor.parameters.length === (accessor.kind === 177 /* GetAccessor */ ? 0 : 1); } function getAccessorThisParameter(accessor) { - if (accessor.parameters.length === (accessor.kind === 176 /* GetAccessor */ ? 1 : 2)) { + if (accessor.parameters.length === (accessor.kind === 177 /* GetAccessor */ ? 1 : 2)) { return getThisParameter(accessor); } } @@ -87249,7 +87871,7 @@ function createTypeChecker(host) { } } switch (parent2.kind) { - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: const decl = parent2; if (decl.name.kind !== 80 /* Identifier */) { return grammarErrorOnNode(node, Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name); @@ -87261,12 +87883,12 @@ function createTypeChecker(host) { return grammarErrorOnNode(parent2.name, Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const); } break; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: if (!isStatic(parent2) || !hasEffectiveReadonlyModifier(parent2)) { return grammarErrorOnNode(parent2.name, Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly); } break; - case 170 /* PropertySignature */: + case 171 /* PropertySignature */: if (!hasSyntacticModifier(parent2, 64 /* Readonly */)) { return grammarErrorOnNode(parent2.name, Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly); } @@ -87275,7 +87897,7 @@ function createTypeChecker(host) { return grammarErrorOnNode(node, Diagnostics.unique_symbol_types_are_not_allowed_here); } } else if (node.operator === 148 /* ReadonlyKeyword */) { - if (node.type.kind !== 187 /* ArrayType */ && node.type.kind !== 188 /* TupleType */) { + if (node.type.kind !== 188 /* ArrayType */ && node.type.kind !== 189 /* TupleType */) { return grammarErrorOnFirstToken(node, Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types, tokenToString(155 /* SymbolKeyword */)); } } @@ -87289,8 +87911,8 @@ function createTypeChecker(host) { if (checkGrammarFunctionLikeDeclaration(node)) { return true; } - if (node.kind === 173 /* MethodDeclaration */) { - if (node.parent.kind === 209 /* ObjectLiteralExpression */) { + if (node.kind === 174 /* MethodDeclaration */) { + if (node.parent.kind === 210 /* ObjectLiteralExpression */) { if (node.modifiers && !(node.modifiers.length === 1 && first(node.modifiers).kind === 134 /* AsyncKeyword */)) { return grammarErrorOnFirstToken(node, Diagnostics.Modifiers_cannot_appear_here); } else if (checkGrammarForInvalidQuestionMark(node.questionToken, Diagnostics.An_object_member_cannot_be_declared_optional)) { @@ -87309,14 +87931,14 @@ function createTypeChecker(host) { if (languageVersion < 2 /* ES2015 */ && isPrivateIdentifier(node.name)) { return grammarErrorOnNode(node.name, Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher); } - if (node.flags & 16777216 /* Ambient */) { + if (node.flags & 33554432 /* Ambient */) { return checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type); - } else if (node.kind === 173 /* MethodDeclaration */ && !node.body) { + } else if (node.kind === 174 /* MethodDeclaration */ && !node.body) { return checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type); } - } else if (node.parent.kind === 263 /* InterfaceDeclaration */) { + } else if (node.parent.kind === 264 /* InterfaceDeclaration */) { return checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type); - } else if (node.parent.kind === 186 /* TypeLiteral */) { + } else if (node.parent.kind === 187 /* TypeLiteral */) { return checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type); } } @@ -87327,9 +87949,9 @@ function createTypeChecker(host) { return grammarErrorOnNode(node, Diagnostics.Jump_target_cannot_cross_function_boundary); } switch (current.kind) { - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: if (node.label && current.label.escapedText === node.label.escapedText) { - const isMisplacedContinueLabel = node.kind === 250 /* ContinueStatement */ && !isIterationStatement( + const isMisplacedContinueLabel = node.kind === 251 /* ContinueStatement */ && !isIterationStatement( current.statement, /*lookInLabeledStatements*/ true @@ -87340,8 +87962,8 @@ function createTypeChecker(host) { return false; } break; - case 254 /* SwitchStatement */: - if (node.kind === 251 /* BreakStatement */ && !node.label) { + case 255 /* SwitchStatement */: + if (node.kind === 252 /* BreakStatement */ && !node.label) { return false; } break; @@ -87358,10 +87980,10 @@ function createTypeChecker(host) { current = current.parent; } if (node.label) { - const message = node.kind === 251 /* BreakStatement */ ? Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement : Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement; + const message = node.kind === 252 /* BreakStatement */ ? Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement : Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement; return grammarErrorOnNode(node, message); } else { - const message = node.kind === 251 /* BreakStatement */ ? Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement : Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement; + const message = node.kind === 252 /* BreakStatement */ ? Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement : Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement; return grammarErrorOnNode(node, message); } } @@ -87381,10 +88003,10 @@ function createTypeChecker(host) { } } function isStringOrNumberLiteralExpression(expr) { - return isStringOrNumericLiteralLike(expr) || expr.kind === 223 /* PrefixUnaryExpression */ && expr.operator === 41 /* MinusToken */ && expr.operand.kind === 9 /* NumericLiteral */; + return isStringOrNumericLiteralLike(expr) || expr.kind === 224 /* PrefixUnaryExpression */ && expr.operator === 41 /* MinusToken */ && expr.operand.kind === 9 /* NumericLiteral */; } function isBigIntLiteralExpression(expr) { - return expr.kind === 10 /* BigIntLiteral */ || expr.kind === 223 /* PrefixUnaryExpression */ && expr.operator === 41 /* MinusToken */ && expr.operand.kind === 10 /* BigIntLiteral */; + return expr.kind === 10 /* BigIntLiteral */ || expr.kind === 224 /* PrefixUnaryExpression */ && expr.operator === 41 /* MinusToken */ && expr.operand.kind === 10 /* BigIntLiteral */; } function isSimpleLiteralEnumReference(expr) { if ((isPropertyAccessExpression(expr) || isElementAccessExpression(expr) && isStringOrNumberLiteralExpression(expr.argumentExpression)) && isEntityNameExpression(expr.expression)) { @@ -87395,7 +88017,7 @@ function createTypeChecker(host) { const initializer = node.initializer; if (initializer) { const isInvalidInitializer = !(isStringOrNumberLiteralExpression(initializer) || isSimpleLiteralEnumReference(initializer) || initializer.kind === 112 /* TrueKeyword */ || initializer.kind === 97 /* FalseKeyword */ || isBigIntLiteralExpression(initializer)); - const isConstOrReadonly = isDeclarationReadonly(node) || isVariableDeclaration(node) && isVarConst(node); + const isConstOrReadonly = isDeclarationReadonly(node) || isVariableDeclaration(node) && isVarConstLike(node); if (isConstOrReadonly && !node.type) { if (isInvalidInitializer) { return grammarErrorOnNode(initializer, Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference); @@ -87406,27 +88028,41 @@ function createTypeChecker(host) { } } function checkGrammarVariableDeclaration(node) { - if (node.parent.parent.kind !== 248 /* ForInStatement */ && node.parent.parent.kind !== 249 /* ForOfStatement */) { - if (node.flags & 16777216 /* Ambient */) { + const nodeFlags = getCombinedNodeFlagsCached(node); + const blockScopeKind = nodeFlags & 7 /* BlockScoped */; + if (isBindingPattern(node.name)) { + switch (blockScopeKind) { + case 6 /* AwaitUsing */: + return grammarErrorOnNode(node, Diagnostics._0_declarations_may_not_have_binding_patterns, "await using"); + case 4 /* Using */: + return grammarErrorOnNode(node, Diagnostics._0_declarations_may_not_have_binding_patterns, "using"); + } + } + if (node.parent.parent.kind !== 249 /* ForInStatement */ && node.parent.parent.kind !== 250 /* ForOfStatement */) { + if (nodeFlags & 33554432 /* Ambient */) { checkAmbientInitializer(node); } else if (!node.initializer) { if (isBindingPattern(node.name) && !isBindingPattern(node.parent)) { return grammarErrorOnNode(node, Diagnostics.A_destructuring_declaration_must_have_an_initializer); } - if (isVarConst(node)) { - return grammarErrorOnNode(node, Diagnostics.const_declarations_must_be_initialized); + switch (blockScopeKind) { + case 6 /* AwaitUsing */: + return grammarErrorOnNode(node, Diagnostics._0_declarations_must_be_initialized, "await using"); + case 4 /* Using */: + return grammarErrorOnNode(node, Diagnostics._0_declarations_must_be_initialized, "using"); + case 2 /* Const */: + return grammarErrorOnNode(node, Diagnostics._0_declarations_must_be_initialized, "const"); } } } - if (node.exclamationToken && (node.parent.parent.kind !== 242 /* VariableStatement */ || !node.type || node.initializer || node.flags & 16777216 /* Ambient */)) { + if (node.exclamationToken && (node.parent.parent.kind !== 243 /* VariableStatement */ || !node.type || node.initializer || nodeFlags & 33554432 /* Ambient */)) { const message = node.initializer ? Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions : !node.type ? Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations : Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context; return grammarErrorOnNode(node.exclamationToken, message); } - if ((moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */) && moduleKind !== 4 /* System */ && !(node.parent.parent.flags & 16777216 /* Ambient */) && hasSyntacticModifier(node.parent.parent, 1 /* Export */)) { + if ((moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */) && moduleKind !== 4 /* System */ && !(node.parent.parent.flags & 33554432 /* Ambient */) && hasSyntacticModifier(node.parent.parent, 1 /* Export */)) { checkESModuleMarker(node.name); } - const checkLetConstNames = isLet(node) || isVarConst(node); - return checkLetConstNames && checkGrammarNameInLetOrConstDeclarations(node.name); + return !!blockScopeKind && checkGrammarNameInLetOrConstDeclarations(node.name); } function checkESModuleMarker(name) { if (name.kind === 80 /* Identifier */) { @@ -87466,29 +88102,39 @@ function createTypeChecker(host) { if (!declarationList.declarations.length) { return grammarErrorAtPos(declarationList, declarations.pos, declarations.end - declarations.pos, Diagnostics.Variable_declaration_list_cannot_be_empty); } + const blockScopeFlags = declarationList.flags & 7 /* BlockScoped */; + if ((blockScopeFlags === 4 /* Using */ || blockScopeFlags === 6 /* AwaitUsing */) && isForInStatement(declarationList.parent)) { + return grammarErrorOnNode( + declarationList, + blockScopeFlags === 4 /* Using */ ? Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration : Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration + ); + } + if (blockScopeFlags === 6 /* AwaitUsing */) { + return checkAwaitGrammar(declarationList); + } return false; } function allowLetAndConstDeclarations(parent2) { switch (parent2.kind) { - case 244 /* IfStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: - case 253 /* WithStatement */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: + case 245 /* IfStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 254 /* WithStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: return false; - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return allowLetAndConstDeclarations(parent2.parent); } return true; } - function checkGrammarForDisallowedLetOrConstStatement(node) { + function checkGrammarForDisallowedBlockScopedVariableStatement(node) { if (!allowLetAndConstDeclarations(node.parent)) { - if (isLet(node.declarationList)) { - return grammarErrorOnNode(node, Diagnostics.let_declarations_can_only_be_declared_inside_a_block); - } else if (isVarConst(node.declarationList)) { - return grammarErrorOnNode(node, Diagnostics.const_declarations_can_only_be_declared_inside_a_block); + const blockScopeKind = getCombinedNodeFlagsCached(node.declarationList) & 7 /* BlockScoped */; + if (blockScopeKind) { + const keyword = blockScopeKind === 1 /* Let */ ? "let" : blockScopeKind === 2 /* Const */ ? "const" : blockScopeKind === 4 /* Using */ ? "using" : blockScopeKind === 6 /* AwaitUsing */ ? "await using" : Debug.fail("Unknown BlockScope flag"); + return grammarErrorOnNode(node, Diagnostics._0_declarations_can_only_be_declared_inside_a_block, keyword); } } } @@ -87577,7 +88223,7 @@ function createTypeChecker(host) { if (isAutoAccessorPropertyDeclaration(node) && checkGrammarForInvalidQuestionMark(node.questionToken, Diagnostics.An_accessor_property_cannot_be_declared_optional)) { return true; } - } else if (node.parent.kind === 263 /* InterfaceDeclaration */) { + } else if (node.parent.kind === 264 /* InterfaceDeclaration */) { if (checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)) { return true; } @@ -87594,23 +88240,23 @@ function createTypeChecker(host) { return grammarErrorOnNode(node.initializer, Diagnostics.A_type_literal_property_cannot_have_an_initializer); } } - if (node.flags & 16777216 /* Ambient */) { + if (node.flags & 33554432 /* Ambient */) { checkAmbientInitializer(node); } - if (isPropertyDeclaration(node) && node.exclamationToken && (!isClassLike(node.parent) || !node.type || node.initializer || node.flags & 16777216 /* Ambient */ || isStatic(node) || hasAbstractModifier(node))) { + if (isPropertyDeclaration(node) && node.exclamationToken && (!isClassLike(node.parent) || !node.type || node.initializer || node.flags & 33554432 /* Ambient */ || isStatic(node) || hasAbstractModifier(node))) { const message = node.initializer ? Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions : !node.type ? Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations : Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context; return grammarErrorOnNode(node.exclamationToken, message); } } function checkGrammarTopLevelElementForRequiredDeclareModifier(node) { - if (node.kind === 263 /* InterfaceDeclaration */ || node.kind === 264 /* TypeAliasDeclaration */ || node.kind === 271 /* ImportDeclaration */ || node.kind === 270 /* ImportEqualsDeclaration */ || node.kind === 277 /* ExportDeclaration */ || node.kind === 276 /* ExportAssignment */ || node.kind === 269 /* NamespaceExportDeclaration */ || hasSyntacticModifier(node, 2 /* Ambient */ | 1 /* Export */ | 1024 /* Default */)) { + if (node.kind === 264 /* InterfaceDeclaration */ || node.kind === 265 /* TypeAliasDeclaration */ || node.kind === 272 /* ImportDeclaration */ || node.kind === 271 /* ImportEqualsDeclaration */ || node.kind === 278 /* ExportDeclaration */ || node.kind === 277 /* ExportAssignment */ || node.kind === 270 /* NamespaceExportDeclaration */ || hasSyntacticModifier(node, 2 /* Ambient */ | 1 /* Export */ | 1024 /* Default */)) { return false; } return grammarErrorOnFirstToken(node, Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier); } function checkGrammarTopLevelElementsForRequiredDeclareModifier(file) { for (const decl of file.statements) { - if (isDeclaration(decl) || decl.kind === 242 /* VariableStatement */) { + if (isDeclaration(decl) || decl.kind === 243 /* VariableStatement */) { if (checkGrammarTopLevelElementForRequiredDeclareModifier(decl)) { return true; } @@ -87619,15 +88265,15 @@ function createTypeChecker(host) { return false; } function checkGrammarSourceFile(node) { - return !!(node.flags & 16777216 /* Ambient */) && checkGrammarTopLevelElementsForRequiredDeclareModifier(node); + return !!(node.flags & 33554432 /* Ambient */) && checkGrammarTopLevelElementsForRequiredDeclareModifier(node); } function checkGrammarStatementInAmbientContext(node) { - if (node.flags & 16777216 /* Ambient */) { + if (node.flags & 33554432 /* Ambient */) { const links = getNodeLinks(node); if (!links.hasReportedStatementInAmbientContext && (isFunctionLike(node.parent) || isAccessor(node.parent))) { return getNodeLinks(node).hasReportedStatementInAmbientContext = grammarErrorOnFirstToken(node, Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts); } - if (node.parent.kind === 240 /* Block */ || node.parent.kind === 267 /* ModuleBlock */ || node.parent.kind === 311 /* SourceFile */) { + if (node.parent.kind === 241 /* Block */ || node.parent.kind === 268 /* ModuleBlock */ || node.parent.kind === 312 /* SourceFile */) { const links2 = getNodeLinks(node.parent); if (!links2.hasReportedStatementInAmbientContext) { return links2.hasReportedStatementInAmbientContext = grammarErrorOnFirstToken(node, Diagnostics.Statements_are_not_allowed_in_ambient_contexts); @@ -87696,7 +88342,7 @@ function createTypeChecker(host) { if (node.isTypeOnly && node.name && node.namedBindings) { return grammarErrorOnNode(node, Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both); } - if (node.isTypeOnly && ((_a = node.namedBindings) == null ? void 0 : _a.kind) === 274 /* NamedImports */) { + if (node.isTypeOnly && ((_a = node.namedBindings) == null ? void 0 : _a.kind) === 275 /* NamedImports */) { return checkGrammarNamedImportsOrExports(node.namedBindings); } return false; @@ -87706,7 +88352,7 @@ function createTypeChecker(host) { if (specifier.isTypeOnly) { return grammarErrorOnFirstToken( specifier, - specifier.kind === 275 /* ImportSpecifier */ ? Diagnostics.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement : Diagnostics.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement + specifier.kind === 276 /* ImportSpecifier */ ? Diagnostics.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement : Diagnostics.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement ); } }); @@ -87820,17 +88466,37 @@ function createTypeChecker(host) { const name = getPropertyNameForPropertyNameNode(node); return name ? name : isComputedPropertyName(node) && isEntityNameExpression(node.expression) ? tryGetNameFromEntityNameExpression(node.expression) : void 0; } + function getCombinedModifierFlagsCached(node) { + if (lastGetCombinedModifierFlagsNode === node) { + return lastGetCombinedModifierFlagsResult; + } + lastGetCombinedModifierFlagsNode = node; + lastGetCombinedModifierFlagsResult = getCombinedModifierFlags(node); + return lastGetCombinedModifierFlagsResult; + } + function getCombinedNodeFlagsCached(node) { + if (lastGetCombinedNodeFlagsNode === node) { + return lastGetCombinedNodeFlagsResult; + } + lastGetCombinedNodeFlagsNode = node; + lastGetCombinedNodeFlagsResult = getCombinedNodeFlags(node); + return lastGetCombinedNodeFlagsResult; + } + function isVarConstLike(node) { + const blockScopeKind = getCombinedNodeFlagsCached(node) & 7 /* BlockScoped */; + return blockScopeKind === 2 /* Const */ || blockScopeKind === 4 /* Using */ || blockScopeKind === 6 /* AwaitUsing */; + } } function isNotAccessor(declaration) { return !isAccessor(declaration); } function isNotOverload(declaration) { - return declaration.kind !== 261 /* FunctionDeclaration */ && declaration.kind !== 173 /* MethodDeclaration */ || !!declaration.body; + return declaration.kind !== 262 /* FunctionDeclaration */ && declaration.kind !== 174 /* MethodDeclaration */ || !!declaration.body; } function isDeclarationNameOrImportPropertyName(name) { switch (name.parent.kind) { - case 275 /* ImportSpecifier */: - case 280 /* ExportSpecifier */: + case 276 /* ImportSpecifier */: + case 281 /* ExportSpecifier */: return isIdentifier(name); default: return isDeclarationName(name); @@ -87883,13 +88549,13 @@ function createBasicNodeBuilderModuleSpecifierResolutionHost(host) { readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0 }; } -var SymbolTrackerImpl = class { +var SymbolTrackerImpl = class _SymbolTrackerImpl { constructor(context, tracker, moduleResolverHost) { this.moduleResolverHost = void 0; this.inner = void 0; this.disableTrackSymbol = false; var _a; - while (tracker instanceof SymbolTrackerImpl) { + while (tracker instanceof _SymbolTrackerImpl) { tracker = tracker.inner; } this.inner = tracker; @@ -88247,21 +88913,21 @@ function visitEachChild(node, visitor, context, nodesVisitor = visitNodes2, toke return fn === void 0 ? node : fn(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor); } var visitEachChildTable = { - [165 /* QualifiedName */]: function visitEachChildOfQualifiedName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [166 /* QualifiedName */]: function visitEachChildOfQualifiedName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateQualifiedName( node, Debug.checkDefined(nodeVisitor(node.left, visitor, isEntityName)), Debug.checkDefined(nodeVisitor(node.right, visitor, isIdentifier)) ); }, - [166 /* ComputedPropertyName */]: function visitEachChildOfComputedPropertyName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [167 /* ComputedPropertyName */]: function visitEachChildOfComputedPropertyName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateComputedPropertyName( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, // Signature elements - [167 /* TypeParameter */]: function visitEachChildOfTypeParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [168 /* TypeParameter */]: function visitEachChildOfTypeParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeParameterDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -88270,7 +88936,7 @@ var visitEachChildTable = { nodeVisitor(node.default, visitor, isTypeNode) ); }, - [168 /* Parameter */]: function visitEachChildOfParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [169 /* Parameter */]: function visitEachChildOfParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateParameterDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -88281,14 +88947,14 @@ var visitEachChildTable = { nodeVisitor(node.initializer, visitor, isExpression) ); }, - [169 /* Decorator */]: function visitEachChildOfDecorator(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [170 /* Decorator */]: function visitEachChildOfDecorator(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateDecorator( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, // Type elements - [170 /* PropertySignature */]: function visitEachChildOfPropertySignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [171 /* PropertySignature */]: function visitEachChildOfPropertySignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updatePropertySignature( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -88297,7 +88963,7 @@ var visitEachChildTable = { nodeVisitor(node.type, visitor, isTypeNode) ); }, - [171 /* PropertyDeclaration */]: function visitEachChildOfPropertyDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [172 /* PropertyDeclaration */]: function visitEachChildOfPropertyDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updatePropertyDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -88308,7 +88974,7 @@ var visitEachChildTable = { nodeVisitor(node.initializer, visitor, isExpression) ); }, - [172 /* MethodSignature */]: function visitEachChildOfMethodSignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [173 /* MethodSignature */]: function visitEachChildOfMethodSignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateMethodSignature( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -88319,7 +88985,7 @@ var visitEachChildTable = { nodeVisitor(node.type, visitor, isTypeNode) ); }, - [173 /* MethodDeclaration */]: function visitEachChildOfMethodDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [174 /* MethodDeclaration */]: function visitEachChildOfMethodDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateMethodDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -88332,7 +88998,7 @@ var visitEachChildTable = { visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [175 /* Constructor */]: function visitEachChildOfConstructorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [176 /* Constructor */]: function visitEachChildOfConstructorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateConstructorDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -88340,7 +89006,7 @@ var visitEachChildTable = { visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [176 /* GetAccessor */]: function visitEachChildOfGetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [177 /* GetAccessor */]: function visitEachChildOfGetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateGetAccessorDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -88350,7 +89016,7 @@ var visitEachChildTable = { visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [177 /* SetAccessor */]: function visitEachChildOfSetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [178 /* SetAccessor */]: function visitEachChildOfSetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateSetAccessorDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -88359,7 +89025,7 @@ var visitEachChildTable = { visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [174 /* ClassStaticBlockDeclaration */]: function visitEachChildOfClassStaticBlockDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [175 /* ClassStaticBlockDeclaration */]: function visitEachChildOfClassStaticBlockDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { context.startLexicalEnvironment(); context.suspendLexicalEnvironment(); return context.factory.updateClassStaticBlockDeclaration( @@ -88367,7 +89033,7 @@ var visitEachChildTable = { visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [178 /* CallSignature */]: function visitEachChildOfCallSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [179 /* CallSignature */]: function visitEachChildOfCallSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateCallSignature( node, nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), @@ -88375,7 +89041,7 @@ var visitEachChildTable = { nodeVisitor(node.type, visitor, isTypeNode) ); }, - [179 /* ConstructSignature */]: function visitEachChildOfConstructSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [180 /* ConstructSignature */]: function visitEachChildOfConstructSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateConstructSignature( node, nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), @@ -88383,7 +89049,7 @@ var visitEachChildTable = { nodeVisitor(node.type, visitor, isTypeNode) ); }, - [180 /* IndexSignature */]: function visitEachChildOfIndexSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [181 /* IndexSignature */]: function visitEachChildOfIndexSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateIndexSignature( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -88392,7 +89058,7 @@ var visitEachChildTable = { ); }, // Types - [181 /* TypePredicate */]: function visitEachChildOfTypePredicateNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [182 /* TypePredicate */]: function visitEachChildOfTypePredicateNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypePredicateNode( node, nodeVisitor(node.assertsModifier, visitor, isAssertsKeyword), @@ -88400,14 +89066,14 @@ var visitEachChildTable = { nodeVisitor(node.type, visitor, isTypeNode) ); }, - [182 /* TypeReference */]: function visitEachChildOfTypeReferenceNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [183 /* TypeReference */]: function visitEachChildOfTypeReferenceNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeReferenceNode( node, Debug.checkDefined(nodeVisitor(node.typeName, visitor, isEntityName)), nodesVisitor(node.typeArguments, visitor, isTypeNode) ); }, - [183 /* FunctionType */]: function visitEachChildOfFunctionTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [184 /* FunctionType */]: function visitEachChildOfFunctionTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateFunctionTypeNode( node, nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), @@ -88415,7 +89081,7 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [184 /* ConstructorType */]: function visitEachChildOfConstructorTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [185 /* ConstructorType */]: function visitEachChildOfConstructorTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateConstructorTypeNode( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -88424,56 +89090,56 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [185 /* TypeQuery */]: function visitEachChildOfTypeQueryNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [186 /* TypeQuery */]: function visitEachChildOfTypeQueryNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeQueryNode( node, Debug.checkDefined(nodeVisitor(node.exprName, visitor, isEntityName)), nodesVisitor(node.typeArguments, visitor, isTypeNode) ); }, - [186 /* TypeLiteral */]: function visitEachChildOfTypeLiteralNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [187 /* TypeLiteral */]: function visitEachChildOfTypeLiteralNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateTypeLiteralNode( node, nodesVisitor(node.members, visitor, isTypeElement) ); }, - [187 /* ArrayType */]: function visitEachChildOfArrayTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [188 /* ArrayType */]: function visitEachChildOfArrayTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateArrayTypeNode( node, Debug.checkDefined(nodeVisitor(node.elementType, visitor, isTypeNode)) ); }, - [188 /* TupleType */]: function visitEachChildOfTupleTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [189 /* TupleType */]: function visitEachChildOfTupleTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateTupleTypeNode( node, nodesVisitor(node.elements, visitor, isTypeNode) ); }, - [189 /* OptionalType */]: function visitEachChildOfOptionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [190 /* OptionalType */]: function visitEachChildOfOptionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateOptionalTypeNode( node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [190 /* RestType */]: function visitEachChildOfRestTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [191 /* RestType */]: function visitEachChildOfRestTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateRestTypeNode( node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [191 /* UnionType */]: function visitEachChildOfUnionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [192 /* UnionType */]: function visitEachChildOfUnionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateUnionTypeNode( node, nodesVisitor(node.types, visitor, isTypeNode) ); }, - [192 /* IntersectionType */]: function visitEachChildOfIntersectionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [193 /* IntersectionType */]: function visitEachChildOfIntersectionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateIntersectionTypeNode( node, nodesVisitor(node.types, visitor, isTypeNode) ); }, - [193 /* ConditionalType */]: function visitEachChildOfConditionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [194 /* ConditionalType */]: function visitEachChildOfConditionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateConditionalTypeNode( node, Debug.checkDefined(nodeVisitor(node.checkType, visitor, isTypeNode)), @@ -88482,13 +89148,13 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.falseType, visitor, isTypeNode)) ); }, - [194 /* InferType */]: function visitEachChildOfInferTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [195 /* InferType */]: function visitEachChildOfInferTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateInferTypeNode( node, Debug.checkDefined(nodeVisitor(node.typeParameter, visitor, isTypeParameterDeclaration)) ); }, - [204 /* ImportType */]: function visitEachChildOfImportTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [205 /* ImportType */]: function visitEachChildOfImportTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateImportTypeNode( node, Debug.checkDefined(nodeVisitor(node.argument, visitor, isTypeNode)), @@ -88498,14 +89164,14 @@ var visitEachChildTable = { node.isTypeOf ); }, - [301 /* ImportTypeAssertionContainer */]: function visitEachChildOfImportTypeAssertionContainer(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [302 /* ImportTypeAssertionContainer */]: function visitEachChildOfImportTypeAssertionContainer(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateImportTypeAssertionContainer( node, Debug.checkDefined(nodeVisitor(node.assertClause, visitor, isAssertClause)), node.multiLine ); }, - [201 /* NamedTupleMember */]: function visitEachChildOfNamedTupleMember(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [202 /* NamedTupleMember */]: function visitEachChildOfNamedTupleMember(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateNamedTupleMember( node, tokenVisitor ? nodeVisitor(node.dotDotDotToken, tokenVisitor, isDotDotDotToken) : node.dotDotDotToken, @@ -88514,26 +89180,26 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [195 /* ParenthesizedType */]: function visitEachChildOfParenthesizedType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [196 /* ParenthesizedType */]: function visitEachChildOfParenthesizedType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateParenthesizedType( node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [197 /* TypeOperator */]: function visitEachChildOfTypeOperatorNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [198 /* TypeOperator */]: function visitEachChildOfTypeOperatorNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeOperatorNode( node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [198 /* IndexedAccessType */]: function visitEachChildOfIndexedAccessType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [199 /* IndexedAccessType */]: function visitEachChildOfIndexedAccessType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateIndexedAccessTypeNode( node, Debug.checkDefined(nodeVisitor(node.objectType, visitor, isTypeNode)), Debug.checkDefined(nodeVisitor(node.indexType, visitor, isTypeNode)) ); }, - [199 /* MappedType */]: function visitEachChildOfMappedType(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [200 /* MappedType */]: function visitEachChildOfMappedType(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateMappedTypeNode( node, tokenVisitor ? nodeVisitor(node.readonlyToken, tokenVisitor, isReadonlyKeywordOrPlusOrMinusToken) : node.readonlyToken, @@ -88544,20 +89210,20 @@ var visitEachChildTable = { nodesVisitor(node.members, visitor, isTypeElement) ); }, - [200 /* LiteralType */]: function visitEachChildOfLiteralTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [201 /* LiteralType */]: function visitEachChildOfLiteralTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateLiteralTypeNode( node, Debug.checkDefined(nodeVisitor(node.literal, visitor, isLiteralTypeLiteral)) ); }, - [202 /* TemplateLiteralType */]: function visitEachChildOfTemplateLiteralType(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [203 /* TemplateLiteralType */]: function visitEachChildOfTemplateLiteralType(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTemplateLiteralType( node, Debug.checkDefined(nodeVisitor(node.head, visitor, isTemplateHead)), nodesVisitor(node.templateSpans, visitor, isTemplateLiteralTypeSpan) ); }, - [203 /* TemplateLiteralTypeSpan */]: function visitEachChildOfTemplateLiteralTypeSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [204 /* TemplateLiteralTypeSpan */]: function visitEachChildOfTemplateLiteralTypeSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTemplateLiteralTypeSpan( node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)), @@ -88565,19 +89231,19 @@ var visitEachChildTable = { ); }, // Binding patterns - [205 /* ObjectBindingPattern */]: function visitEachChildOfObjectBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [206 /* ObjectBindingPattern */]: function visitEachChildOfObjectBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateObjectBindingPattern( node, nodesVisitor(node.elements, visitor, isBindingElement) ); }, - [206 /* ArrayBindingPattern */]: function visitEachChildOfArrayBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [207 /* ArrayBindingPattern */]: function visitEachChildOfArrayBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateArrayBindingPattern( node, nodesVisitor(node.elements, visitor, isArrayBindingElement) ); }, - [207 /* BindingElement */]: function visitEachChildOfBindingElement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [208 /* BindingElement */]: function visitEachChildOfBindingElement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateBindingElement( node, tokenVisitor ? nodeVisitor(node.dotDotDotToken, tokenVisitor, isDotDotDotToken) : node.dotDotDotToken, @@ -88587,19 +89253,19 @@ var visitEachChildTable = { ); }, // Expression - [208 /* ArrayLiteralExpression */]: function visitEachChildOfArrayLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [209 /* ArrayLiteralExpression */]: function visitEachChildOfArrayLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateArrayLiteralExpression( node, nodesVisitor(node.elements, visitor, isExpression) ); }, - [209 /* ObjectLiteralExpression */]: function visitEachChildOfObjectLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [210 /* ObjectLiteralExpression */]: function visitEachChildOfObjectLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateObjectLiteralExpression( node, nodesVisitor(node.properties, visitor, isObjectLiteralElementLike) ); }, - [210 /* PropertyAccessExpression */]: function visitEachChildOfPropertyAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [211 /* PropertyAccessExpression */]: function visitEachChildOfPropertyAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return isPropertyAccessChain(node) ? context.factory.updatePropertyAccessChain( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), @@ -88611,7 +89277,7 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.name, visitor, isMemberName)) ); }, - [211 /* ElementAccessExpression */]: function visitEachChildOfElementAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [212 /* ElementAccessExpression */]: function visitEachChildOfElementAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return isElementAccessChain(node) ? context.factory.updateElementAccessChain( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), @@ -88623,7 +89289,7 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.argumentExpression, visitor, isExpression)) ); }, - [212 /* CallExpression */]: function visitEachChildOfCallExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [213 /* CallExpression */]: function visitEachChildOfCallExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return isCallChain(node) ? context.factory.updateCallChain( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), @@ -88637,7 +89303,7 @@ var visitEachChildTable = { nodesVisitor(node.arguments, visitor, isExpression) ); }, - [213 /* NewExpression */]: function visitEachChildOfNewExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [214 /* NewExpression */]: function visitEachChildOfNewExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateNewExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), @@ -88645,7 +89311,7 @@ var visitEachChildTable = { nodesVisitor(node.arguments, visitor, isExpression) ); }, - [214 /* TaggedTemplateExpression */]: function visitEachChildOfTaggedTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [215 /* TaggedTemplateExpression */]: function visitEachChildOfTaggedTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTaggedTemplateExpression( node, Debug.checkDefined(nodeVisitor(node.tag, visitor, isExpression)), @@ -88653,20 +89319,20 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.template, visitor, isTemplateLiteral)) ); }, - [215 /* TypeAssertionExpression */]: function visitEachChildOfTypeAssertionExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [216 /* TypeAssertionExpression */]: function visitEachChildOfTypeAssertionExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeAssertion( node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)), Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [216 /* ParenthesizedExpression */]: function visitEachChildOfParenthesizedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [217 /* ParenthesizedExpression */]: function visitEachChildOfParenthesizedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateParenthesizedExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [217 /* FunctionExpression */]: function visitEachChildOfFunctionExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [218 /* FunctionExpression */]: function visitEachChildOfFunctionExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateFunctionExpression( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -88678,7 +89344,7 @@ var visitEachChildTable = { visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [218 /* ArrowFunction */]: function visitEachChildOfArrowFunction(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [219 /* ArrowFunction */]: function visitEachChildOfArrowFunction(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateArrowFunction( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -88689,43 +89355,43 @@ var visitEachChildTable = { visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [219 /* DeleteExpression */]: function visitEachChildOfDeleteExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [220 /* DeleteExpression */]: function visitEachChildOfDeleteExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateDeleteExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [220 /* TypeOfExpression */]: function visitEachChildOfTypeOfExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [221 /* TypeOfExpression */]: function visitEachChildOfTypeOfExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeOfExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [221 /* VoidExpression */]: function visitEachChildOfVoidExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [222 /* VoidExpression */]: function visitEachChildOfVoidExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateVoidExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [222 /* AwaitExpression */]: function visitEachChildOfAwaitExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [223 /* AwaitExpression */]: function visitEachChildOfAwaitExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateAwaitExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [223 /* PrefixUnaryExpression */]: function visitEachChildOfPrefixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [224 /* PrefixUnaryExpression */]: function visitEachChildOfPrefixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updatePrefixUnaryExpression( node, Debug.checkDefined(nodeVisitor(node.operand, visitor, isExpression)) ); }, - [224 /* PostfixUnaryExpression */]: function visitEachChildOfPostfixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [225 /* PostfixUnaryExpression */]: function visitEachChildOfPostfixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updatePostfixUnaryExpression( node, Debug.checkDefined(nodeVisitor(node.operand, visitor, isExpression)) ); }, - [225 /* BinaryExpression */]: function visitEachChildOfBinaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [226 /* BinaryExpression */]: function visitEachChildOfBinaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateBinaryExpression( node, Debug.checkDefined(nodeVisitor(node.left, visitor, isExpression)), @@ -88733,7 +89399,7 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.right, visitor, isExpression)) ); }, - [226 /* ConditionalExpression */]: function visitEachChildOfConditionalExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [227 /* ConditionalExpression */]: function visitEachChildOfConditionalExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateConditionalExpression( node, Debug.checkDefined(nodeVisitor(node.condition, visitor, isExpression)), @@ -88743,27 +89409,27 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.whenFalse, visitor, isExpression)) ); }, - [227 /* TemplateExpression */]: function visitEachChildOfTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [228 /* TemplateExpression */]: function visitEachChildOfTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTemplateExpression( node, Debug.checkDefined(nodeVisitor(node.head, visitor, isTemplateHead)), nodesVisitor(node.templateSpans, visitor, isTemplateSpan) ); }, - [228 /* YieldExpression */]: function visitEachChildOfYieldExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [229 /* YieldExpression */]: function visitEachChildOfYieldExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateYieldExpression( node, tokenVisitor ? nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken) : node.asteriskToken, nodeVisitor(node.expression, visitor, isExpression) ); }, - [229 /* SpreadElement */]: function visitEachChildOfSpreadElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [230 /* SpreadElement */]: function visitEachChildOfSpreadElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateSpreadElement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [230 /* ClassExpression */]: function visitEachChildOfClassExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [231 /* ClassExpression */]: function visitEachChildOfClassExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateClassExpression( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -88773,28 +89439,28 @@ var visitEachChildTable = { nodesVisitor(node.members, visitor, isClassElement) ); }, - [232 /* ExpressionWithTypeArguments */]: function visitEachChildOfExpressionWithTypeArguments(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [233 /* ExpressionWithTypeArguments */]: function visitEachChildOfExpressionWithTypeArguments(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateExpressionWithTypeArguments( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), nodesVisitor(node.typeArguments, visitor, isTypeNode) ); }, - [233 /* AsExpression */]: function visitEachChildOfAsExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [234 /* AsExpression */]: function visitEachChildOfAsExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateAsExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [237 /* SatisfiesExpression */]: function visitEachChildOfSatisfiesExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [238 /* SatisfiesExpression */]: function visitEachChildOfSatisfiesExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateSatisfiesExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [234 /* NonNullExpression */]: function visitEachChildOfNonNullExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [235 /* NonNullExpression */]: function visitEachChildOfNonNullExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return isOptionalChain(node) ? context.factory.updateNonNullChain( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) @@ -88803,14 +89469,14 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [235 /* MetaProperty */]: function visitEachChildOfMetaProperty(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [236 /* MetaProperty */]: function visitEachChildOfMetaProperty(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateMetaProperty( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) ); }, // Misc - [238 /* TemplateSpan */]: function visitEachChildOfTemplateSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [239 /* TemplateSpan */]: function visitEachChildOfTemplateSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTemplateSpan( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), @@ -88818,26 +89484,26 @@ var visitEachChildTable = { ); }, // Element - [240 /* Block */]: function visitEachChildOfBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [241 /* Block */]: function visitEachChildOfBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateBlock( node, nodesVisitor(node.statements, visitor, isStatement) ); }, - [242 /* VariableStatement */]: function visitEachChildOfVariableStatement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [243 /* VariableStatement */]: function visitEachChildOfVariableStatement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateVariableStatement( node, nodesVisitor(node.modifiers, visitor, isModifierLike), Debug.checkDefined(nodeVisitor(node.declarationList, visitor, isVariableDeclarationList)) ); }, - [243 /* ExpressionStatement */]: function visitEachChildOfExpressionStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [244 /* ExpressionStatement */]: function visitEachChildOfExpressionStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateExpressionStatement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [244 /* IfStatement */]: function visitEachChildOfIfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [245 /* IfStatement */]: function visitEachChildOfIfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateIfStatement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), @@ -88845,21 +89511,21 @@ var visitEachChildTable = { nodeVisitor(node.elseStatement, visitor, isStatement, context.factory.liftToBlock) ); }, - [245 /* DoStatement */]: function visitEachChildOfDoStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [246 /* DoStatement */]: function visitEachChildOfDoStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateDoStatement( node, visitIterationBody(node.statement, visitor, context, nodeVisitor), Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [246 /* WhileStatement */]: function visitEachChildOfWhileStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [247 /* WhileStatement */]: function visitEachChildOfWhileStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateWhileStatement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), visitIterationBody(node.statement, visitor, context, nodeVisitor) ); }, - [247 /* ForStatement */]: function visitEachChildOfForStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [248 /* ForStatement */]: function visitEachChildOfForStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateForStatement( node, nodeVisitor(node.initializer, visitor, isForInitializer), @@ -88868,7 +89534,7 @@ var visitEachChildTable = { visitIterationBody(node.statement, visitor, context, nodeVisitor) ); }, - [248 /* ForInStatement */]: function visitEachChildOfForInStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [249 /* ForInStatement */]: function visitEachChildOfForInStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateForInStatement( node, Debug.checkDefined(nodeVisitor(node.initializer, visitor, isForInitializer)), @@ -88876,7 +89542,7 @@ var visitEachChildTable = { visitIterationBody(node.statement, visitor, context, nodeVisitor) ); }, - [249 /* ForOfStatement */]: function visitEachChildOfForOfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [250 /* ForOfStatement */]: function visitEachChildOfForOfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateForOfStatement( node, tokenVisitor ? nodeVisitor(node.awaitModifier, tokenVisitor, isAwaitKeyword) : node.awaitModifier, @@ -88885,52 +89551,52 @@ var visitEachChildTable = { visitIterationBody(node.statement, visitor, context, nodeVisitor) ); }, - [250 /* ContinueStatement */]: function visitEachChildOfContinueStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [251 /* ContinueStatement */]: function visitEachChildOfContinueStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateContinueStatement( node, nodeVisitor(node.label, visitor, isIdentifier) ); }, - [251 /* BreakStatement */]: function visitEachChildOfBreakStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [252 /* BreakStatement */]: function visitEachChildOfBreakStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateBreakStatement( node, nodeVisitor(node.label, visitor, isIdentifier) ); }, - [252 /* ReturnStatement */]: function visitEachChildOfReturnStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [253 /* ReturnStatement */]: function visitEachChildOfReturnStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateReturnStatement( node, nodeVisitor(node.expression, visitor, isExpression) ); }, - [253 /* WithStatement */]: function visitEachChildOfWithStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [254 /* WithStatement */]: function visitEachChildOfWithStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateWithStatement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), Debug.checkDefined(nodeVisitor(node.statement, visitor, isStatement, context.factory.liftToBlock)) ); }, - [254 /* SwitchStatement */]: function visitEachChildOfSwitchStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [255 /* SwitchStatement */]: function visitEachChildOfSwitchStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateSwitchStatement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), Debug.checkDefined(nodeVisitor(node.caseBlock, visitor, isCaseBlock)) ); }, - [255 /* LabeledStatement */]: function visitEachChildOfLabeledStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [256 /* LabeledStatement */]: function visitEachChildOfLabeledStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateLabeledStatement( node, Debug.checkDefined(nodeVisitor(node.label, visitor, isIdentifier)), Debug.checkDefined(nodeVisitor(node.statement, visitor, isStatement, context.factory.liftToBlock)) ); }, - [256 /* ThrowStatement */]: function visitEachChildOfThrowStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [257 /* ThrowStatement */]: function visitEachChildOfThrowStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateThrowStatement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [257 /* TryStatement */]: function visitEachChildOfTryStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [258 /* TryStatement */]: function visitEachChildOfTryStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTryStatement( node, Debug.checkDefined(nodeVisitor(node.tryBlock, visitor, isBlock)), @@ -88938,7 +89604,7 @@ var visitEachChildTable = { nodeVisitor(node.finallyBlock, visitor, isBlock) ); }, - [259 /* VariableDeclaration */]: function visitEachChildOfVariableDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [260 /* VariableDeclaration */]: function visitEachChildOfVariableDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateVariableDeclaration( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isBindingName)), @@ -88947,13 +89613,13 @@ var visitEachChildTable = { nodeVisitor(node.initializer, visitor, isExpression) ); }, - [260 /* VariableDeclarationList */]: function visitEachChildOfVariableDeclarationList(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [261 /* VariableDeclarationList */]: function visitEachChildOfVariableDeclarationList(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateVariableDeclarationList( node, nodesVisitor(node.declarations, visitor, isVariableDeclaration) ); }, - [261 /* FunctionDeclaration */]: function visitEachChildOfFunctionDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [262 /* FunctionDeclaration */]: function visitEachChildOfFunctionDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateFunctionDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -88965,7 +89631,7 @@ var visitEachChildTable = { visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [262 /* ClassDeclaration */]: function visitEachChildOfClassDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [263 /* ClassDeclaration */]: function visitEachChildOfClassDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateClassDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -88975,7 +89641,7 @@ var visitEachChildTable = { nodesVisitor(node.members, visitor, isClassElement) ); }, - [263 /* InterfaceDeclaration */]: function visitEachChildOfInterfaceDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [264 /* InterfaceDeclaration */]: function visitEachChildOfInterfaceDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateInterfaceDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -88985,7 +89651,7 @@ var visitEachChildTable = { nodesVisitor(node.members, visitor, isTypeElement) ); }, - [264 /* TypeAliasDeclaration */]: function visitEachChildOfTypeAliasDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [265 /* TypeAliasDeclaration */]: function visitEachChildOfTypeAliasDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeAliasDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -88994,7 +89660,7 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [265 /* EnumDeclaration */]: function visitEachChildOfEnumDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [266 /* EnumDeclaration */]: function visitEachChildOfEnumDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateEnumDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -89002,7 +89668,7 @@ var visitEachChildTable = { nodesVisitor(node.members, visitor, isEnumMember) ); }, - [266 /* ModuleDeclaration */]: function visitEachChildOfModuleDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [267 /* ModuleDeclaration */]: function visitEachChildOfModuleDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateModuleDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -89010,25 +89676,25 @@ var visitEachChildTable = { nodeVisitor(node.body, visitor, isModuleBody) ); }, - [267 /* ModuleBlock */]: function visitEachChildOfModuleBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [268 /* ModuleBlock */]: function visitEachChildOfModuleBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateModuleBlock( node, nodesVisitor(node.statements, visitor, isStatement) ); }, - [268 /* CaseBlock */]: function visitEachChildOfCaseBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [269 /* CaseBlock */]: function visitEachChildOfCaseBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateCaseBlock( node, nodesVisitor(node.clauses, visitor, isCaseOrDefaultClause) ); }, - [269 /* NamespaceExportDeclaration */]: function visitEachChildOfNamespaceExportDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [270 /* NamespaceExportDeclaration */]: function visitEachChildOfNamespaceExportDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateNamespaceExportDeclaration( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) ); }, - [270 /* ImportEqualsDeclaration */]: function visitEachChildOfImportEqualsDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [271 /* ImportEqualsDeclaration */]: function visitEachChildOfImportEqualsDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateImportEqualsDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -89037,7 +89703,7 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.moduleReference, visitor, isModuleReference)) ); }, - [271 /* ImportDeclaration */]: function visitEachChildOfImportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [272 /* ImportDeclaration */]: function visitEachChildOfImportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateImportDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -89046,21 +89712,21 @@ var visitEachChildTable = { nodeVisitor(node.assertClause, visitor, isAssertClause) ); }, - [299 /* AssertClause */]: function visitEachChildOfAssertClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [300 /* AssertClause */]: function visitEachChildOfAssertClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateAssertClause( node, nodesVisitor(node.elements, visitor, isAssertEntry), node.multiLine ); }, - [300 /* AssertEntry */]: function visitEachChildOfAssertEntry(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [301 /* AssertEntry */]: function visitEachChildOfAssertEntry(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateAssertEntry( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isAssertionKey)), Debug.checkDefined(nodeVisitor(node.value, visitor, isExpression)) ); }, - [272 /* ImportClause */]: function visitEachChildOfImportClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [273 /* ImportClause */]: function visitEachChildOfImportClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateImportClause( node, node.isTypeOnly, @@ -89068,25 +89734,25 @@ var visitEachChildTable = { nodeVisitor(node.namedBindings, visitor, isNamedImportBindings) ); }, - [273 /* NamespaceImport */]: function visitEachChildOfNamespaceImport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [274 /* NamespaceImport */]: function visitEachChildOfNamespaceImport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateNamespaceImport( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) ); }, - [279 /* NamespaceExport */]: function visitEachChildOfNamespaceExport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [280 /* NamespaceExport */]: function visitEachChildOfNamespaceExport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateNamespaceExport( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) ); }, - [274 /* NamedImports */]: function visitEachChildOfNamedImports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [275 /* NamedImports */]: function visitEachChildOfNamedImports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateNamedImports( node, nodesVisitor(node.elements, visitor, isImportSpecifier) ); }, - [275 /* ImportSpecifier */]: function visitEachChildOfImportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [276 /* ImportSpecifier */]: function visitEachChildOfImportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateImportSpecifier( node, node.isTypeOnly, @@ -89094,14 +89760,14 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) ); }, - [276 /* ExportAssignment */]: function visitEachChildOfExportAssignment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [277 /* ExportAssignment */]: function visitEachChildOfExportAssignment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateExportAssignment( node, nodesVisitor(node.modifiers, visitor, isModifierLike), Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [277 /* ExportDeclaration */]: function visitEachChildOfExportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [278 /* ExportDeclaration */]: function visitEachChildOfExportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateExportDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -89111,13 +89777,13 @@ var visitEachChildTable = { nodeVisitor(node.assertClause, visitor, isAssertClause) ); }, - [278 /* NamedExports */]: function visitEachChildOfNamedExports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [279 /* NamedExports */]: function visitEachChildOfNamedExports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateNamedExports( node, nodesVisitor(node.elements, visitor, isExportSpecifier) ); }, - [280 /* ExportSpecifier */]: function visitEachChildOfExportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [281 /* ExportSpecifier */]: function visitEachChildOfExportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateExportSpecifier( node, node.isTypeOnly, @@ -89126,14 +89792,14 @@ var visitEachChildTable = { ); }, // Module references - [282 /* ExternalModuleReference */]: function visitEachChildOfExternalModuleReference(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [283 /* ExternalModuleReference */]: function visitEachChildOfExternalModuleReference(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateExternalModuleReference( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, // JSX - [283 /* JsxElement */]: function visitEachChildOfJsxElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [284 /* JsxElement */]: function visitEachChildOfJsxElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxElement( node, Debug.checkDefined(nodeVisitor(node.openingElement, visitor, isJsxOpeningElement)), @@ -89141,7 +89807,7 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.closingElement, visitor, isJsxClosingElement)) ); }, - [284 /* JsxSelfClosingElement */]: function visitEachChildOfJsxSelfClosingElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [285 /* JsxSelfClosingElement */]: function visitEachChildOfJsxSelfClosingElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxSelfClosingElement( node, Debug.checkDefined(nodeVisitor(node.tagName, visitor, isJsxTagNameExpression)), @@ -89149,7 +89815,7 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.attributes, visitor, isJsxAttributes)) ); }, - [285 /* JsxOpeningElement */]: function visitEachChildOfJsxOpeningElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [286 /* JsxOpeningElement */]: function visitEachChildOfJsxOpeningElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxOpeningElement( node, Debug.checkDefined(nodeVisitor(node.tagName, visitor, isJsxTagNameExpression)), @@ -89157,20 +89823,20 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.attributes, visitor, isJsxAttributes)) ); }, - [286 /* JsxClosingElement */]: function visitEachChildOfJsxClosingElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [287 /* JsxClosingElement */]: function visitEachChildOfJsxClosingElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxClosingElement( node, Debug.checkDefined(nodeVisitor(node.tagName, visitor, isJsxTagNameExpression)) ); }, - [294 /* JsxNamespacedName */]: function forEachChildInJsxNamespacedName2(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [295 /* JsxNamespacedName */]: function forEachChildInJsxNamespacedName2(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxNamespacedName( node, Debug.checkDefined(nodeVisitor(node.namespace, visitor, isIdentifier)), Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) ); }, - [287 /* JsxFragment */]: function visitEachChildOfJsxFragment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [288 /* JsxFragment */]: function visitEachChildOfJsxFragment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxFragment( node, Debug.checkDefined(nodeVisitor(node.openingFragment, visitor, isJsxOpeningFragment)), @@ -89178,52 +89844,52 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.closingFragment, visitor, isJsxClosingFragment)) ); }, - [290 /* JsxAttribute */]: function visitEachChildOfJsxAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [291 /* JsxAttribute */]: function visitEachChildOfJsxAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxAttribute( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isJsxAttributeName)), nodeVisitor(node.initializer, visitor, isStringLiteralOrJsxExpression) ); }, - [291 /* JsxAttributes */]: function visitEachChildOfJsxAttributes(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [292 /* JsxAttributes */]: function visitEachChildOfJsxAttributes(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateJsxAttributes( node, nodesVisitor(node.properties, visitor, isJsxAttributeLike) ); }, - [292 /* JsxSpreadAttribute */]: function visitEachChildOfJsxSpreadAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [293 /* JsxSpreadAttribute */]: function visitEachChildOfJsxSpreadAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxSpreadAttribute( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [293 /* JsxExpression */]: function visitEachChildOfJsxExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [294 /* JsxExpression */]: function visitEachChildOfJsxExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxExpression( node, nodeVisitor(node.expression, visitor, isExpression) ); }, // Clauses - [295 /* CaseClause */]: function visitEachChildOfCaseClause(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [296 /* CaseClause */]: function visitEachChildOfCaseClause(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateCaseClause( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), nodesVisitor(node.statements, visitor, isStatement) ); }, - [296 /* DefaultClause */]: function visitEachChildOfDefaultClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [297 /* DefaultClause */]: function visitEachChildOfDefaultClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateDefaultClause( node, nodesVisitor(node.statements, visitor, isStatement) ); }, - [297 /* HeritageClause */]: function visitEachChildOfHeritageClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [298 /* HeritageClause */]: function visitEachChildOfHeritageClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateHeritageClause( node, nodesVisitor(node.types, visitor, isExpressionWithTypeArguments) ); }, - [298 /* CatchClause */]: function visitEachChildOfCatchClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [299 /* CatchClause */]: function visitEachChildOfCatchClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateCatchClause( node, nodeVisitor(node.variableDeclaration, visitor, isVariableDeclaration), @@ -89231,28 +89897,28 @@ var visitEachChildTable = { ); }, // Property assignments - [302 /* PropertyAssignment */]: function visitEachChildOfPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [303 /* PropertyAssignment */]: function visitEachChildOfPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updatePropertyAssignment( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), Debug.checkDefined(nodeVisitor(node.initializer, visitor, isExpression)) ); }, - [303 /* ShorthandPropertyAssignment */]: function visitEachChildOfShorthandPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [304 /* ShorthandPropertyAssignment */]: function visitEachChildOfShorthandPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateShorthandPropertyAssignment( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)), nodeVisitor(node.objectAssignmentInitializer, visitor, isExpression) ); }, - [304 /* SpreadAssignment */]: function visitEachChildOfSpreadAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [305 /* SpreadAssignment */]: function visitEachChildOfSpreadAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateSpreadAssignment( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, // Enum - [305 /* EnumMember */]: function visitEachChildOfEnumMember(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [306 /* EnumMember */]: function visitEachChildOfEnumMember(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateEnumMember( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), @@ -89260,20 +89926,20 @@ var visitEachChildTable = { ); }, // Top-level nodes - [311 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context, _nodesVisitor, _nodeVisitor, _tokenVisitor) { + [312 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context, _nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateSourceFile( node, visitLexicalEnvironment(node.statements, visitor, context) ); }, // Transformation nodes - [359 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [360 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updatePartiallyEmittedExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [360 /* CommaListExpression */]: function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [361 /* CommaListExpression */]: function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateCommaListExpression( node, nodesVisitor(node.elements, visitor, isExpression) @@ -89571,13 +90237,13 @@ function decodeMappings(mappings) { let sourceLine = 0; let sourceCharacter = 0; let nameIndex = 0; - let error; + let error2; return { get pos() { return pos; }, get error() { - return error; + return error2; }, get state() { return captureMapping( @@ -89662,8 +90328,8 @@ function decodeMappings(mappings) { return { value: void 0, done: true }; } function setError(message) { - if (error === void 0) { - error = message; + if (error2 === void 0) { + error2 = message; } } function setErrorAndStopIterating(message) { @@ -89671,7 +90337,7 @@ function decodeMappings(mappings) { return stopIterating(); } function hasReportedError() { - return error !== void 0; + return error2 !== void 0; } function isSourceMappingSegmentEnd() { return pos === mappings.length || mappings.charCodeAt(pos) === 44 /* comma */ || mappings.charCodeAt(pos) === 59 /* semicolon */; @@ -89868,7 +90534,7 @@ function isNamedDefaultReference(e) { function chainBundle(context, transformSourceFile) { return transformSourceFileOrBundle; function transformSourceFileOrBundle(node) { - return node.kind === 311 /* SourceFile */ ? transformSourceFile(node) : transformBundle(node); + return node.kind === 312 /* SourceFile */ ? transformSourceFile(node) : transformBundle(node); } function transformBundle(node) { return context.factory.createBundle(map(node.sourceFiles, transformSourceFile), node.prepends); @@ -89898,9 +90564,11 @@ function getImportNeedsImportStarHelper(node) { function getImportNeedsImportDefaultHelper(node) { return !getImportNeedsImportStarHelper(node) && (isDefaultImport(node) || !!node.importClause && isNamedImports(node.importClause.namedBindings) && containsDefaultReference(node.importClause.namedBindings)); } -function collectExternalModuleInfo(context, sourceFile, resolver, compilerOptions) { +function collectExternalModuleInfo(context, sourceFile) { + const resolver = context.getEmitResolver(); + const compilerOptions = context.getCompilerOptions(); const externalImports = []; - const exportSpecifiers = createMultiMap(); + const exportSpecifiers = new IdentifierNameMultiMap(); const exportedBindings = []; const uniqueExports = /* @__PURE__ */ new Map(); let exportedNames; @@ -89911,7 +90579,7 @@ function collectExternalModuleInfo(context, sourceFile, resolver, compilerOption let hasImportDefault = false; for (const node of sourceFile.statements) { switch (node.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: externalImports.push(node); if (!hasImportStar && getImportNeedsImportStarHelper(node)) { hasImportStar = true; @@ -89920,12 +90588,12 @@ function collectExternalModuleInfo(context, sourceFile, resolver, compilerOption hasImportDefault = true; } break; - case 270 /* ImportEqualsDeclaration */: - if (node.moduleReference.kind === 282 /* ExternalModuleReference */) { + case 271 /* ImportEqualsDeclaration */: + if (node.moduleReference.kind === 283 /* ExternalModuleReference */) { externalImports.push(node); } break; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: if (node.moduleSpecifier) { if (!node.exportClause) { externalImports.push(node); @@ -89948,19 +90616,19 @@ function collectExternalModuleInfo(context, sourceFile, resolver, compilerOption addExportedNamesForExportDeclaration(node); } break; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: if (node.isExportEquals && !exportEquals) { exportEquals = node; } break; - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: if (hasSyntacticModifier(node, 1 /* Export */)) { for (const decl of node.declarationList.declarations) { exportedNames = collectExportedVariableInfo(decl, uniqueExports, exportedNames, exportedBindings); } } break; - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: if (hasSyntacticModifier(node, 1 /* Export */)) { if (hasSyntacticModifier(node, 1024 /* Default */)) { if (!hasExportDefault) { @@ -89977,7 +90645,7 @@ function collectExternalModuleInfo(context, sourceFile, resolver, compilerOption } } break; - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: if (hasSyntacticModifier(node, 1 /* Export */)) { if (hasSyntacticModifier(node, 1024 /* Default */)) { if (!hasExportDefault) { @@ -90006,7 +90674,7 @@ function collectExternalModuleInfo(context, sourceFile, resolver, compilerOption if (!uniqueExports.get(idText(specifier.name))) { const name = specifier.propertyName || specifier.name; if (!node.moduleSpecifier) { - exportSpecifiers.add(idText(name), specifier); + exportSpecifiers.add(name, specifier); } const decl = resolver.getReferencedImportDeclaration(name) || resolver.getReferencedValueDeclaration(name); if (decl) { @@ -90046,6 +90714,85 @@ function multiMapSparseArrayAdd(map2, key, value) { } return values; } +var IdentifierNameMap = class _IdentifierNameMap { + constructor() { + this._map = /* @__PURE__ */ new Map(); + } + get size() { + return this._map.size; + } + has(key) { + return this._map.has(_IdentifierNameMap.toKey(key)); + } + get(key) { + return this._map.get(_IdentifierNameMap.toKey(key)); + } + set(key, value) { + this._map.set(_IdentifierNameMap.toKey(key), value); + return this; + } + delete(key) { + var _a; + return ((_a = this._map) == null ? void 0 : _a.delete(_IdentifierNameMap.toKey(key))) ?? false; + } + clear() { + this._map.clear(); + } + values() { + return this._map.values(); + } + static toKey(name) { + if (isGeneratedPrivateIdentifier(name) || isGeneratedIdentifier(name)) { + const autoGenerate = name.emitNode.autoGenerate; + if ((autoGenerate.flags & 7 /* KindMask */) === 4 /* Node */) { + const node = getNodeForGeneratedName(name); + const baseName = isMemberName(node) && node !== name ? _IdentifierNameMap.toKey(node) : `(generated@${getNodeId(node)})`; + return formatGeneratedName( + /*privateName*/ + false, + autoGenerate.prefix, + baseName, + autoGenerate.suffix, + _IdentifierNameMap.toKey + ); + } else { + const baseName = `(auto@${autoGenerate.id})`; + return formatGeneratedName( + /*privateName*/ + false, + autoGenerate.prefix, + baseName, + autoGenerate.suffix, + _IdentifierNameMap.toKey + ); + } + } + if (isPrivateIdentifier(name)) { + return idText(name).slice(1); + } + return idText(name); + } +}; +var IdentifierNameMultiMap = class extends IdentifierNameMap { + add(key, value) { + let values = this.get(key); + if (values) { + values.push(value); + } else { + this.set(key, values = [value]); + } + return values; + } + remove(key, value) { + const values = this.get(key); + if (values) { + unorderedRemoveItem(values, value); + if (!values.length) { + this.delete(key); + } + } + } +}; function isSimpleCopiableExpression(expression) { return isStringLiteralLike(expression) || expression.kind === 9 /* NumericLiteral */ || isKeyword(expression.kind) || isIdentifier(expression); } @@ -90096,14 +90843,23 @@ function getSuperCallFromStatement(statement) { const expression = skipParentheses(statement.expression); return isSuperCall(expression) ? expression : void 0; } -function findSuperStatementIndex(statements, indexAfterLastPrologueStatement) { - for (let i = indexAfterLastPrologueStatement; i < statements.length; i += 1) { +function findSuperStatementIndexPathWorker(statements, start2, indices) { + for (let i = start2; i < statements.length; i += 1) { const statement = statements[i]; if (getSuperCallFromStatement(statement)) { - return i; + indices.unshift(i); + return true; + } else if (isTryStatement(statement) && findSuperStatementIndexPathWorker(statement.tryBlock.statements, 0, indices)) { + indices.unshift(i); + return true; } } - return -1; + return false; +} +function findSuperStatementIndexPath(statements, start2) { + const indices = []; + findSuperStatementIndexPathWorker(statements, start2, indices); + return indices; } function getProperties(node, requireInitializer, isStatic2) { return filter(node.members, (m) => isInitializedOrStaticProperty(m, requireInitializer, isStatic2)); @@ -90121,7 +90877,7 @@ function isStaticPropertyDeclaration(member) { return isPropertyDeclaration(member) && hasStaticModifier(member); } function isInitializedProperty(member) { - return member.kind === 171 /* PropertyDeclaration */ && member.initializer !== void 0; + return member.kind === 172 /* PropertyDeclaration */ && member.initializer !== void 0; } function isNonStaticMethodOrAccessorWithPrivateName(member) { return !isStatic(member) && (isMethodOrAccessor(member) || isAutoAccessorPropertyDeclaration(member)) && isPrivateIdentifier(member.name); @@ -90158,15 +90914,15 @@ function getAllDecoratorsOfClass(node) { } function getAllDecoratorsOfClassElement(member, parent2, useLegacyDecorators) { switch (member.kind) { - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: if (!useLegacyDecorators) { return getAllDecoratorsOfMethod(member); } return getAllDecoratorsOfAccessors(member, parent2); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return getAllDecoratorsOfMethod(member); - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return getAllDecoratorsOfProperty(member); default: return void 0; @@ -90700,6 +91456,275 @@ function makeAssignmentElement(name) { return name; } +// src/compiler/transformers/classThis.ts +function createClassThisAssignmentBlock(factory2, classThis, thisExpression = factory2.createThis()) { + const expression = factory2.createAssignment(classThis, thisExpression); + const statement = factory2.createExpressionStatement(expression); + const body = factory2.createBlock( + [statement], + /*multiLine*/ + false + ); + const block = factory2.createClassStaticBlockDeclaration(body); + getOrCreateEmitNode(block).classThis = classThis; + return block; +} +function isClassThisAssignmentBlock(node) { + var _a; + if (!isClassStaticBlockDeclaration(node) || node.body.statements.length !== 1) { + return false; + } + const statement = node.body.statements[0]; + return isExpressionStatement(statement) && isAssignmentExpression( + statement.expression, + /*excludeCompoundAssignment*/ + true + ) && isIdentifier(statement.expression.left) && ((_a = node.emitNode) == null ? void 0 : _a.classThis) === statement.expression.left && statement.expression.right.kind === 110 /* ThisKeyword */; +} +function classHasClassThisAssignment(node) { + var _a; + return !!((_a = node.emitNode) == null ? void 0 : _a.classThis) && some(node.members, isClassThisAssignmentBlock); +} +function injectClassThisAssignmentIfMissing(factory2, node, classThis, thisExpression) { + if (classHasClassThisAssignment(node)) { + return node; + } + const staticBlock = createClassThisAssignmentBlock(factory2, classThis, thisExpression); + if (node.name) { + setSourceMapRange(staticBlock.body.statements[0], node.name); + } + const members = factory2.createNodeArray([staticBlock, ...node.members]); + setTextRange(members, node.members); + const updatedNode = isClassDeclaration(node) ? factory2.updateClassDeclaration( + node, + node.modifiers, + node.name, + node.typeParameters, + node.heritageClauses, + members + ) : factory2.updateClassExpression( + node, + node.modifiers, + node.name, + node.typeParameters, + node.heritageClauses, + members + ); + getOrCreateEmitNode(updatedNode).classThis = classThis; + return updatedNode; +} + +// src/compiler/transformers/namedEvaluation.ts +function getAssignedNameOfIdentifier(factory2, name, expression) { + const original = getOriginalNode(skipOuterExpressions(expression)); + if ((isClassDeclaration(original) || isFunctionDeclaration(original)) && !original.name && hasSyntacticModifier(original, 1024 /* Default */)) { + return factory2.createStringLiteral("default"); + } + return factory2.createStringLiteralFromNode(name); +} +function getAssignedNameOfPropertyName(context, name, assignedNameText) { + const { factory: factory2 } = context; + if (assignedNameText !== void 0) { + const assignedName2 = factory2.createStringLiteral(assignedNameText); + return { assignedName: assignedName2, name }; + } + if (isPropertyNameLiteral(name) || isPrivateIdentifier(name)) { + const assignedName2 = factory2.createStringLiteralFromNode(name); + return { assignedName: assignedName2, name }; + } + if (isPropertyNameLiteral(name.expression) && !isIdentifier(name.expression)) { + const assignedName2 = factory2.createStringLiteralFromNode(name.expression); + return { assignedName: assignedName2, name }; + } + const assignedName = factory2.getGeneratedNameForNode(name); + context.hoistVariableDeclaration(assignedName); + const key = context.getEmitHelperFactory().createPropKeyHelper(name.expression); + const assignment = factory2.createAssignment(assignedName, key); + const updatedName = factory2.updateComputedPropertyName(name, assignment); + return { assignedName, name: updatedName }; +} +function createClassNamedEvaluationHelperBlock(context, assignedName, thisExpression = context.factory.createThis()) { + const { factory: factory2 } = context; + const expression = context.getEmitHelperFactory().createSetFunctionNameHelper(thisExpression, assignedName); + const statement = factory2.createExpressionStatement(expression); + const body = factory2.createBlock( + [statement], + /*multiLine*/ + false + ); + const block = factory2.createClassStaticBlockDeclaration(body); + getOrCreateEmitNode(block).assignedName = assignedName; + return block; +} +function isClassNamedEvaluationHelperBlock(node) { + var _a; + if (!isClassStaticBlockDeclaration(node) || node.body.statements.length !== 1) { + return false; + } + const statement = node.body.statements[0]; + return isExpressionStatement(statement) && isCallToHelper(statement.expression, "___setFunctionName") && statement.expression.arguments.length >= 2 && statement.expression.arguments[1] === ((_a = node.emitNode) == null ? void 0 : _a.assignedName); +} +function classHasExplicitlyAssignedName(node) { + var _a; + return !!((_a = node.emitNode) == null ? void 0 : _a.assignedName) && some(node.members, isClassNamedEvaluationHelperBlock); +} +function classHasDeclaredOrExplicitlyAssignedName(node) { + return !!node.name || classHasExplicitlyAssignedName(node); +} +function injectClassNamedEvaluationHelperBlockIfMissing(context, node, assignedName, thisExpression) { + if (classHasExplicitlyAssignedName(node)) { + return node; + } + const { factory: factory2 } = context; + const namedEvaluationBlock = createClassNamedEvaluationHelperBlock(context, assignedName, thisExpression); + if (node.name) { + setSourceMapRange(namedEvaluationBlock.body.statements[0], node.name); + } + const insertionIndex = findIndex(node.members, isClassThisAssignmentBlock) + 1; + const leading = node.members.slice(0, insertionIndex); + const trailing = node.members.slice(insertionIndex); + const members = factory2.createNodeArray([...leading, namedEvaluationBlock, ...trailing]); + setTextRange(members, node.members); + node = isClassDeclaration(node) ? factory2.updateClassDeclaration( + node, + node.modifiers, + node.name, + node.typeParameters, + node.heritageClauses, + members + ) : factory2.updateClassExpression( + node, + node.modifiers, + node.name, + node.typeParameters, + node.heritageClauses, + members + ); + getOrCreateEmitNode(node).assignedName = assignedName; + return node; +} +function finishTransformNamedEvaluation(context, expression, assignedName, ignoreEmptyStringLiteral) { + if (ignoreEmptyStringLiteral && isStringLiteral(assignedName) && isEmptyStringLiteral(assignedName)) { + return expression; + } + const { factory: factory2 } = context; + const innerExpression = skipOuterExpressions(expression); + const updatedExpression = isClassExpression(innerExpression) ? cast(injectClassNamedEvaluationHelperBlockIfMissing(context, innerExpression, assignedName), isClassExpression) : context.getEmitHelperFactory().createSetFunctionNameHelper(innerExpression, assignedName); + return factory2.restoreOuterExpressions(expression, updatedExpression); +} +function transformNamedEvaluationOfPropertyAssignment(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const { assignedName, name } = getAssignedNameOfPropertyName(context, node.name, assignedNameText); + const initializer = finishTransformNamedEvaluation(context, node.initializer, assignedName, ignoreEmptyStringLiteral); + return factory2.updatePropertyAssignment( + node, + name, + initializer + ); +} +function transformNamedEvaluationOfShorthandAssignmentProperty(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : getAssignedNameOfIdentifier(factory2, node.name, node.objectAssignmentInitializer); + const objectAssignmentInitializer = finishTransformNamedEvaluation(context, node.objectAssignmentInitializer, assignedName, ignoreEmptyStringLiteral); + return factory2.updateShorthandPropertyAssignment( + node, + node.name, + objectAssignmentInitializer + ); +} +function transformNamedEvaluationOfVariableDeclaration(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : getAssignedNameOfIdentifier(factory2, node.name, node.initializer); + const initializer = finishTransformNamedEvaluation(context, node.initializer, assignedName, ignoreEmptyStringLiteral); + return factory2.updateVariableDeclaration( + node, + node.name, + node.exclamationToken, + node.type, + initializer + ); +} +function transformNamedEvaluationOfParameterDeclaration(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : getAssignedNameOfIdentifier(factory2, node.name, node.initializer); + const initializer = finishTransformNamedEvaluation(context, node.initializer, assignedName, ignoreEmptyStringLiteral); + return factory2.updateParameterDeclaration( + node, + node.modifiers, + node.dotDotDotToken, + node.name, + node.questionToken, + node.type, + initializer + ); +} +function transformNamedEvaluationOfBindingElement(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : getAssignedNameOfIdentifier(factory2, node.name, node.initializer); + const initializer = finishTransformNamedEvaluation(context, node.initializer, assignedName, ignoreEmptyStringLiteral); + return factory2.updateBindingElement( + node, + node.dotDotDotToken, + node.propertyName, + node.name, + initializer + ); +} +function transformNamedEvaluationOfPropertyDeclaration(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const { assignedName, name } = getAssignedNameOfPropertyName(context, node.name, assignedNameText); + const initializer = finishTransformNamedEvaluation(context, node.initializer, assignedName, ignoreEmptyStringLiteral); + return factory2.updatePropertyDeclaration( + node, + node.modifiers, + name, + node.questionToken ?? node.exclamationToken, + node.type, + initializer + ); +} +function transformNamedEvaluationOfAssignmentExpression(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : getAssignedNameOfIdentifier(factory2, node.left, node.right); + const right = finishTransformNamedEvaluation(context, node.right, assignedName, ignoreEmptyStringLiteral); + return factory2.updateBinaryExpression( + node, + node.left, + node.operatorToken, + right + ); +} +function transformNamedEvaluationOfExportAssignment(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : factory2.createStringLiteral(node.isExportEquals ? "" : "default"); + const expression = finishTransformNamedEvaluation(context, node.expression, assignedName, ignoreEmptyStringLiteral); + return factory2.updateExportAssignment( + node, + node.modifiers, + expression + ); +} +function transformNamedEvaluation(context, node, ignoreEmptyStringLiteral, assignedName) { + switch (node.kind) { + case 303 /* PropertyAssignment */: + return transformNamedEvaluationOfPropertyAssignment(context, node, ignoreEmptyStringLiteral, assignedName); + case 304 /* ShorthandPropertyAssignment */: + return transformNamedEvaluationOfShorthandAssignmentProperty(context, node, ignoreEmptyStringLiteral, assignedName); + case 260 /* VariableDeclaration */: + return transformNamedEvaluationOfVariableDeclaration(context, node, ignoreEmptyStringLiteral, assignedName); + case 169 /* Parameter */: + return transformNamedEvaluationOfParameterDeclaration(context, node, ignoreEmptyStringLiteral, assignedName); + case 208 /* BindingElement */: + return transformNamedEvaluationOfBindingElement(context, node, ignoreEmptyStringLiteral, assignedName); + case 172 /* PropertyDeclaration */: + return transformNamedEvaluationOfPropertyDeclaration(context, node, ignoreEmptyStringLiteral, assignedName); + case 226 /* BinaryExpression */: + return transformNamedEvaluationOfAssignmentExpression(context, node, ignoreEmptyStringLiteral, assignedName); + case 277 /* ExportAssignment */: + return transformNamedEvaluationOfExportAssignment(context, node, ignoreEmptyStringLiteral, assignedName); + } +} + // src/compiler/transformers/taggedTemplate.ts var ProcessLevel = /* @__PURE__ */ ((ProcessLevel2) => { ProcessLevel2[ProcessLevel2["LiftRestriction"] = 0] = "LiftRestriction"; @@ -90792,8 +91817,8 @@ function transformTypeScript(context) { const previousOnSubstituteNode = context.onSubstituteNode; context.onEmitNode = onEmitNode; context.onSubstituteNode = onSubstituteNode; - context.enableSubstitution(210 /* PropertyAccessExpression */); - context.enableSubstitution(211 /* ElementAccessExpression */); + context.enableSubstitution(211 /* PropertyAccessExpression */); + context.enableSubstitution(212 /* ElementAccessExpression */); let currentSourceFile; let currentNamespace; let currentNamespaceContainerName; @@ -90804,14 +91829,14 @@ function transformTypeScript(context) { let applicableSubstitutions; return transformSourceFileOrBundle; function transformSourceFileOrBundle(node) { - if (node.kind === 312 /* Bundle */) { + if (node.kind === 313 /* Bundle */) { return transformBundle(node); } return transformSourceFile(node); } function transformBundle(node) { return factory2.createBundle(node.sourceFiles.map(transformSourceFile), mapDefined(node.prepends, (prepend) => { - if (prepend.kind === 314 /* InputFiles */) { + if (prepend.kind === 315 /* InputFiles */) { return createUnparsedSourceFile(prepend, "js"); } return prepend; @@ -90842,22 +91867,22 @@ function transformTypeScript(context) { } function onBeforeVisitNode(node) { switch (node.kind) { - case 311 /* SourceFile */: - case 268 /* CaseBlock */: - case 267 /* ModuleBlock */: - case 240 /* Block */: + case 312 /* SourceFile */: + case 269 /* CaseBlock */: + case 268 /* ModuleBlock */: + case 241 /* Block */: currentLexicalScope = node; currentScopeFirstDeclarationsOfName = void 0; break; - case 262 /* ClassDeclaration */: - case 261 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: + case 262 /* FunctionDeclaration */: if (hasSyntacticModifier(node, 2 /* Ambient */)) { break; } if (node.name) { recordEmittedDeclarationInScope(node); } else { - Debug.assert(node.kind === 262 /* ClassDeclaration */ || hasSyntacticModifier(node, 1024 /* Default */)); + Debug.assert(node.kind === 263 /* ClassDeclaration */ || hasSyntacticModifier(node, 1024 /* Default */)); } break; } @@ -90876,10 +91901,10 @@ function transformTypeScript(context) { } function sourceElementVisitorWorker(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: - case 270 /* ImportEqualsDeclaration */: - case 276 /* ExportAssignment */: - case 277 /* ExportDeclaration */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 277 /* ExportAssignment */: + case 278 /* ExportDeclaration */: return visitElidableStatement(node); default: return visitorWorker(node); @@ -90894,13 +91919,13 @@ function transformTypeScript(context) { return node; } switch (node.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return visitImportDeclaration(node); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return visitImportEqualsDeclaration(node); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return visitExportAssignment(node); - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return visitExportDeclaration(node); default: Debug.fail("Unhandled ellided statement"); @@ -90910,7 +91935,7 @@ function transformTypeScript(context) { return saveStateAndInvoke(node, namespaceElementVisitorWorker); } function namespaceElementVisitorWorker(node) { - if (node.kind === 277 /* ExportDeclaration */ || node.kind === 271 /* ImportDeclaration */ || node.kind === 272 /* ImportClause */ || node.kind === 270 /* ImportEqualsDeclaration */ && node.moduleReference.kind === 282 /* ExternalModuleReference */) { + if (node.kind === 278 /* ExportDeclaration */ || node.kind === 272 /* ImportDeclaration */ || node.kind === 273 /* ImportClause */ || node.kind === 271 /* ImportEqualsDeclaration */ && node.moduleReference.kind === 283 /* ExternalModuleReference */) { return void 0; } else if (node.transformFlags & 1 /* ContainsTypeScript */ || hasSyntacticModifier(node, 1 /* Export */)) { return visitTypeScript(node); @@ -90922,21 +91947,21 @@ function transformTypeScript(context) { } function classElementVisitorWorker(node, parent2) { switch (node.kind) { - case 175 /* Constructor */: + case 176 /* Constructor */: return visitConstructor(node); - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return visitPropertyDeclaration(node, parent2); - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return visitGetAccessor(node, parent2); - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return visitSetAccessor(node, parent2); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return visitMethodDeclaration(node, parent2); - case 174 /* ClassStaticBlockDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: return visitEachChild(node, visitor, context); - case 239 /* SemicolonClassElement */: + case 240 /* SemicolonClassElement */: return node; - case 180 /* IndexSignature */: + case 181 /* IndexSignature */: return; default: return Debug.failBadSyntaxKind(node); @@ -90947,15 +91972,15 @@ function transformTypeScript(context) { } function objectLiteralElementVisitorWorker(node, parent2) { switch (node.kind) { - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: - case 304 /* SpreadAssignment */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 305 /* SpreadAssignment */: return visitor(node); - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return visitGetAccessor(node, parent2); - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return visitSetAccessor(node, parent2); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return visitMethodDeclaration(node, parent2); default: return Debug.failBadSyntaxKind(node); @@ -90989,19 +92014,19 @@ function transformTypeScript(context) { case 123 /* PrivateKeyword */: case 124 /* ProtectedKeyword */: case 128 /* AbstractKeyword */: - case 163 /* OverrideKeyword */: + case 164 /* OverrideKeyword */: case 87 /* ConstKeyword */: case 138 /* DeclareKeyword */: case 148 /* ReadonlyKeyword */: case 103 /* InKeyword */: case 147 /* OutKeyword */: - case 187 /* ArrayType */: - case 188 /* TupleType */: - case 189 /* OptionalType */: - case 190 /* RestType */: - case 186 /* TypeLiteral */: - case 181 /* TypePredicate */: - case 167 /* TypeParameter */: + case 188 /* ArrayType */: + case 189 /* TupleType */: + case 190 /* OptionalType */: + case 191 /* RestType */: + case 187 /* TypeLiteral */: + case 182 /* TypePredicate */: + case 168 /* TypeParameter */: case 133 /* AnyKeyword */: case 159 /* UnknownKeyword */: case 136 /* BooleanKeyword */: @@ -91010,80 +92035,80 @@ function transformTypeScript(context) { case 146 /* NeverKeyword */: case 116 /* VoidKeyword */: case 155 /* SymbolKeyword */: - case 184 /* ConstructorType */: - case 183 /* FunctionType */: - case 185 /* TypeQuery */: - case 182 /* TypeReference */: - case 191 /* UnionType */: - case 192 /* IntersectionType */: - case 193 /* ConditionalType */: - case 195 /* ParenthesizedType */: - case 196 /* ThisType */: - case 197 /* TypeOperator */: - case 198 /* IndexedAccessType */: - case 199 /* MappedType */: - case 200 /* LiteralType */: - case 180 /* IndexSignature */: + case 185 /* ConstructorType */: + case 184 /* FunctionType */: + case 186 /* TypeQuery */: + case 183 /* TypeReference */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: + case 194 /* ConditionalType */: + case 196 /* ParenthesizedType */: + case 197 /* ThisType */: + case 198 /* TypeOperator */: + case 199 /* IndexedAccessType */: + case 200 /* MappedType */: + case 201 /* LiteralType */: + case 181 /* IndexSignature */: return void 0; - case 264 /* TypeAliasDeclaration */: + case 265 /* TypeAliasDeclaration */: return factory2.createNotEmittedStatement(node); - case 269 /* NamespaceExportDeclaration */: + case 270 /* NamespaceExportDeclaration */: return void 0; - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: return factory2.createNotEmittedStatement(node); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return visitClassDeclaration(node); - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return visitClassExpression(node); - case 297 /* HeritageClause */: + case 298 /* HeritageClause */: return visitHeritageClause(node); - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return visitExpressionWithTypeArguments(node); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return visitObjectLiteralExpression(node); - case 175 /* Constructor */: - case 171 /* PropertyDeclaration */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 174 /* ClassStaticBlockDeclaration */: + case 176 /* Constructor */: + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 175 /* ClassStaticBlockDeclaration */: return Debug.fail("Class and object literal elements must be visited with their respective visitors"); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return visitFunctionDeclaration(node); - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: return visitFunctionExpression(node); - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return visitArrowFunction(node); - case 168 /* Parameter */: + case 169 /* Parameter */: return visitParameter(node); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression(node); - case 215 /* TypeAssertionExpression */: - case 233 /* AsExpression */: + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: return visitAssertionExpression(node); - case 237 /* SatisfiesExpression */: + case 238 /* SatisfiesExpression */: return visitSatisfiesExpression(node); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return visitCallExpression(node); - case 213 /* NewExpression */: + case 214 /* NewExpression */: return visitNewExpression(node); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return visitTaggedTemplateExpression(node); - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: return visitNonNullExpression(node); - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return visitEnumDeclaration(node); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return visitVariableStatement(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return visitVariableDeclaration(node); - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return visitModuleDeclaration(node); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return visitImportEqualsDeclaration(node); - case 284 /* JsxSelfClosingElement */: + case 285 /* JsxSelfClosingElement */: return visitJsxSelfClosingElement(node); - case 285 /* JsxOpeningElement */: + case 286 /* JsxOpeningElement */: return visitJsxJsxOpeningElement(node); default: return visitEachChild(node, visitor, context); @@ -91193,25 +92218,25 @@ function transformTypeScript(context) { insertStatementsAfterStandardPrologue(statements, context.endLexicalEnvironment()); const iife = factory2.createImmediatelyInvokedArrowFunction(statements); setInternalEmitFlags(iife, 1 /* TypeScriptClassWrapper */); - const modifiers2 = facts & 16 /* IsNamedExternalExport */ ? factory2.createModifiersFromModifierFlags(1 /* Export */) : void 0; + const varDecl = factory2.createVariableDeclaration( + factory2.getLocalName( + node, + /*allowComments*/ + false, + /*allowSourceMaps*/ + false + ), + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + iife + ); + setOriginalNode(varDecl, node); const varStatement = factory2.createVariableStatement( - modifiers2, - factory2.createVariableDeclarationList([ - factory2.createVariableDeclaration( - factory2.getLocalName( - node, - /*allowComments*/ - false, - /*allowSourceMaps*/ - false - ), - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - iife - ) - ], 1 /* Let */) + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList([varDecl], 1 /* Let */) ); setOriginalNode(varStatement, node); setCommentRange(varStatement, node); @@ -91240,10 +92265,10 @@ function transformTypeScript(context) { )) ]; } - if (facts & 16 /* IsNamedExternalExport */ && !promoteToIIFE) { + if (facts & 16 /* IsNamedExternalExport */) { return [ statement, - factory2.createExternalModuleExport(factory2.getLocalName( + factory2.createExternalModuleExport(factory2.getDeclarationName( node, /*allowComments*/ false, @@ -91407,19 +92432,19 @@ function transformTypeScript(context) { } function shouldAddTypeMetadata(node) { const kind = node.kind; - return kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */ || kind === 171 /* PropertyDeclaration */; + return kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 172 /* PropertyDeclaration */; } function shouldAddReturnTypeMetadata(node) { - return node.kind === 173 /* MethodDeclaration */; + return node.kind === 174 /* MethodDeclaration */; } function shouldAddParamTypesMetadata(node) { switch (node.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return getFirstConstructorWithBody(node) !== void 0; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return true; } return false; @@ -91468,7 +92493,7 @@ function transformTypeScript(context) { return !nodeIsMissing(node.body); } function visitPropertyDeclaration(node, parent2) { - const isAmbient = node.flags & 16777216 /* Ambient */ || hasSyntacticModifier(node, 256 /* Abstract */); + const isAmbient = node.flags & 33554432 /* Ambient */ || hasSyntacticModifier(node, 256 /* Abstract */); if (isAmbient && !(legacyDecorators && hasDecorators(node))) { return void 0; } @@ -91510,6 +92535,35 @@ function transformTypeScript(context) { transformConstructorBody(node.body, node) ); } + function transformConstructorBodyWorker(statementsOut, statementsIn, statementOffset, superPath, superPathDepth, initializerStatements) { + const superStatementIndex = superPath[superPathDepth]; + const superStatement = statementsIn[superStatementIndex]; + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, statementOffset, superStatementIndex - statementOffset)); + if (isTryStatement(superStatement)) { + const tryBlockStatements = []; + transformConstructorBodyWorker( + tryBlockStatements, + superStatement.tryBlock.statements, + /*statementOffset*/ + 0, + superPath, + superPathDepth + 1, + initializerStatements + ); + const tryBlockStatementsArray = factory2.createNodeArray(tryBlockStatements); + setTextRange(tryBlockStatementsArray, superStatement.tryBlock.statements); + statementsOut.push(factory2.updateTryStatement( + superStatement, + factory2.updateBlock(superStatement.tryBlock, tryBlockStatements), + visitNode(superStatement.catchClause, visitor, isCatchClause), + visitNode(superStatement.finallyBlock, visitor, isBlock) + )); + } else { + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex, 1)); + addRange(statementsOut, initializerStatements); + } + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex + 1)); + } function transformConstructorBody(body, constructor) { const parametersWithPropertyAssignments = constructor && filter(constructor.parameters, (p) => isParameterPropertyDeclaration(p, constructor)); if (!some(parametersWithPropertyAssignments)) { @@ -91524,25 +92578,22 @@ function transformTypeScript(context) { false, visitor ); - const superStatementIndex = findSuperStatementIndex(body.statements, prologueStatementCount); - if (superStatementIndex >= 0) { - addRange( + const superPath = findSuperStatementIndexPath(body.statements, prologueStatementCount); + const parameterPropertyAssignments = mapDefined(parametersWithPropertyAssignments, transformParameterWithPropertyAssignment); + if (superPath.length) { + transformConstructorBodyWorker( statements, - visitNodes2(body.statements, visitor, isStatement, prologueStatementCount, superStatementIndex + 1 - prologueStatementCount) + body.statements, + prologueStatementCount, + superPath, + /*superPathDepth*/ + 0, + parameterPropertyAssignments ); - } - const parameterPropertyAssignments = mapDefined(parametersWithPropertyAssignments, transformParameterWithPropertyAssignment); - if (superStatementIndex >= 0) { - addRange(statements, parameterPropertyAssignments); } else { - statements = [ - ...statements.slice(0, prologueStatementCount), - ...parameterPropertyAssignments, - ...statements.slice(prologueStatementCount) - ]; + addRange(statements, parameterPropertyAssignments); + addRange(statements, visitNodes2(body.statements, visitor, isStatement, prologueStatementCount)); } - const start2 = superStatementIndex >= 0 ? superStatementIndex + 1 : prologueStatementCount; - addRange(statements, visitNodes2(body.statements, visitor, isStatement, start2)); statements = factory2.mergeLexicalEnvironment(statements, endLexicalEnvironment()); const block = factory2.createBlock( setTextRange(factory2.createNodeArray(statements), body.statements), @@ -92038,7 +93089,7 @@ function transformTypeScript(context) { /*allowSourceMaps*/ true )); - const varFlags = currentLexicalScope.kind === 311 /* SourceFile */ ? 0 /* None */ : 1 /* Let */; + const varFlags = currentLexicalScope.kind === 312 /* SourceFile */ ? 0 /* None */ : 1 /* Let */; const statement = factory2.createVariableStatement( visitNodes2(node.modifiers, modifierVisitor, isModifier), factory2.createVariableDeclarationList([varDecl], varFlags) @@ -92049,7 +93100,7 @@ function transformTypeScript(context) { setOriginalNode(statement, node); recordEmittedDeclarationInScope(node); if (isFirstEmittedDeclarationInScope(node)) { - if (node.kind === 265 /* EnumDeclaration */) { + if (node.kind === 266 /* EnumDeclaration */) { setSourceMapRange(statement.declarationList, node); } else { setSourceMapRange(statement, node); @@ -92157,7 +93208,7 @@ function transformTypeScript(context) { let statementsLocation; let blockLocation; if (node.body) { - if (node.body.kind === 267 /* ModuleBlock */) { + if (node.body.kind === 268 /* ModuleBlock */) { saveStateAndInvoke(node.body, (body) => addRange(statements, visitNodes2(body.statements, namespaceElementVisitor, isStatement))); statementsLocation = node.body.statements; blockLocation = node.body; @@ -92188,13 +93239,13 @@ function transformTypeScript(context) { true ); setTextRange(block, blockLocation); - if (!node.body || node.body.kind !== 267 /* ModuleBlock */) { + if (!node.body || node.body.kind !== 268 /* ModuleBlock */) { setEmitFlags(block, getEmitFlags(block) | 3072 /* NoComments */); } return block; } function getInnerMostModuleDeclarationFromDottedModule(moduleDeclaration) { - if (moduleDeclaration.body.kind === 266 /* ModuleDeclaration */) { + if (moduleDeclaration.body.kind === 267 /* ModuleDeclaration */) { const recursiveInnerModule = getInnerMostModuleDeclarationFromDottedModule(moduleDeclaration.body); return recursiveInnerModule || moduleDeclaration.body; } @@ -92229,7 +93280,7 @@ function transformTypeScript(context) { ) : void 0; } function visitNamedImportBindings(node) { - if (node.kind === 273 /* NamespaceImport */) { + if (node.kind === 274 /* NamespaceImport */) { return shouldEmitAliasDeclaration(node) ? node : void 0; } else { const allowEmpty = compilerOptions.verbatimModuleSyntax || compilerOptions.preserveValueImports && (compilerOptions.importsNotUsedAsValues === 1 /* Preserve */ || compilerOptions.importsNotUsedAsValues === 2 /* Error */); @@ -92427,15 +93478,15 @@ function transformTypeScript(context) { if ((enabledSubstitutions & 2 /* NamespaceExports */) === 0) { enabledSubstitutions |= 2 /* NamespaceExports */; context.enableSubstitution(80 /* Identifier */); - context.enableSubstitution(303 /* ShorthandPropertyAssignment */); - context.enableEmitNotification(266 /* ModuleDeclaration */); + context.enableSubstitution(304 /* ShorthandPropertyAssignment */); + context.enableEmitNotification(267 /* ModuleDeclaration */); } } function isTransformedModuleDeclaration(node) { - return getOriginalNode(node).kind === 266 /* ModuleDeclaration */; + return getOriginalNode(node).kind === 267 /* ModuleDeclaration */; } function isTransformedEnumDeclaration(node) { - return getOriginalNode(node).kind === 265 /* EnumDeclaration */; + return getOriginalNode(node).kind === 266 /* EnumDeclaration */; } function onEmitNode(hint, node, emitCallback) { const savedApplicableSubstitutions = applicableSubstitutions; @@ -92480,9 +93531,9 @@ function transformTypeScript(context) { switch (node.kind) { case 80 /* Identifier */: return substituteExpressionIdentifier(node); - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return substitutePropertyAccessExpression(node); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return substituteElementAccessExpression(node); } return node; @@ -92497,8 +93548,8 @@ function transformTypeScript(context) { /*prefixLocals*/ false ); - if (container && container.kind !== 311 /* SourceFile */) { - const substitute = applicableSubstitutions & 2 /* NamespaceExports */ && container.kind === 266 /* ModuleDeclaration */ || applicableSubstitutions & 8 /* NonQualifiedEnumMembers */ && container.kind === 265 /* EnumDeclaration */; + if (container && container.kind !== 312 /* SourceFile */) { + const substitute = applicableSubstitutions & 2 /* NamespaceExports */ && container.kind === 267 /* ModuleDeclaration */ || applicableSubstitutions & 8 /* NonQualifiedEnumMembers */ && container.kind === 266 /* EnumDeclaration */; if (substitute) { return setTextRange( factory2.createPropertyAccessExpression(factory2.getGeneratedNameForNode(container), node), @@ -92523,7 +93574,7 @@ function transformTypeScript(context) { const constantValue = tryGetConstEnumValue(node); if (constantValue !== void 0) { setConstantValue(node, constantValue); - const substitute = typeof constantValue === "string" ? factory2.createStringLiteral(constantValue) : factory2.createNumericLiteral(constantValue); + const substitute = typeof constantValue === "string" ? factory2.createStringLiteral(constantValue) : constantValue < 0 ? factory2.createPrefixUnaryExpression(41 /* MinusToken */, factory2.createNumericLiteral(Math.abs(constantValue))) : factory2.createNumericLiteral(constantValue); if (!compilerOptions.removeComments) { const originalNode = getOriginalNode(node, isAccessExpression); addSyntheticTrailingComment(substitute, 3 /* MultiLineCommentTrivia */, ` ${safeMultiLineComment(getTextOfNode(originalNode))} `); @@ -92578,8 +93629,9 @@ function transformClassFields(context) { let pendingStatements; let lexicalEnvironment; const lexicalEnvironmentMap = /* @__PURE__ */ new Map(); + const noSubstitution = /* @__PURE__ */ new Set(); let currentClassContainer; - let currentStaticPropertyDeclarationOrStaticBlock; + let currentClassElement; let shouldSubstituteThisWithClassThis = false; let previousShouldSubstituteThisWithClassThis = false; return chainBundle(context, transformSourceFile); @@ -92611,76 +93663,77 @@ function transformClassFields(context) { switch (node.kind) { case 129 /* AccessorKeyword */: return Debug.fail("Use `modifierVisitor` instead."); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return visitClassDeclaration(node); - case 230 /* ClassExpression */: - return visitClassExpression( - node, - /*referencedName*/ - void 0 - ); - case 174 /* ClassStaticBlockDeclaration */: - case 171 /* PropertyDeclaration */: + case 231 /* ClassExpression */: + return visitClassExpression(node); + case 175 /* ClassStaticBlockDeclaration */: + case 172 /* PropertyDeclaration */: return Debug.fail("Use `classElementVisitor` instead."); - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return visitPropertyAssignment(node); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return visitVariableStatement(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return visitVariableDeclaration(node); - case 168 /* Parameter */: + case 169 /* Parameter */: return visitParameterDeclaration(node); - case 207 /* BindingElement */: + case 208 /* BindingElement */: return visitBindingElement(node); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return visitExportAssignment(node); case 81 /* PrivateIdentifier */: return visitPrivateIdentifier(node); - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return visitPropertyAccessExpression(node); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return visitElementAccessExpression(node); - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return visitPreOrPostfixUnaryExpression( node, /*discarded*/ false ); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return visitBinaryExpression( node, /*discarded*/ false ); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression( node, /*discarded*/ - false, - /*referencedName*/ - void 0 + false ); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return visitCallExpression(node); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return visitExpressionStatement(node); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return visitTaggedTemplateExpression(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement(node); - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 175 /* Constructor */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: { - return setCurrentStaticPropertyDeclarationOrStaticBlockAnd( - /*current*/ + case 110 /* ThisKeyword */: + return visitThisExpression(node); + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + return setCurrentClassElementAnd( + /*classElement*/ void 0, fallbackVisitor, node ); + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: { + return setCurrentClassElementAnd( + node, + fallbackVisitor, + node + ); } default: return fallbackVisitor(node); @@ -92689,56 +93742,32 @@ function transformClassFields(context) { function fallbackVisitor(node) { return visitEachChild(node, visitor, context); } - function namedEvaluationVisitor(node, referencedName) { - switch (node.kind) { - case 359 /* PartiallyEmittedExpression */: - return visitPartiallyEmittedExpression( - node, - /*discarded*/ - false, - referencedName - ); - case 216 /* ParenthesizedExpression */: - return visitParenthesizedExpression( - node, - /*discarded*/ - false, - referencedName - ); - case 230 /* ClassExpression */: - return visitClassExpression(node, referencedName); - default: - return visitor(node); - } - } function discardedValueVisitor(node) { switch (node.kind) { - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return visitPreOrPostfixUnaryExpression( node, /*discarded*/ true ); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return visitBinaryExpression( node, /*discarded*/ true ); - case 360 /* CommaListExpression */: + case 361 /* CommaListExpression */: return visitCommaListExpression( node, /*discarded*/ true ); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression( node, /*discarded*/ - true, - /*referencedName*/ - void 0 + true ); default: return visitor(node); @@ -92746,9 +93775,9 @@ function transformClassFields(context) { } function heritageClauseVisitor(node) { switch (node.kind) { - case 297 /* HeritageClause */: + case 298 /* HeritageClause */: return visitEachChild(node, heritageClauseVisitor, context); - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return visitExpressionWithTypeArgumentsInHeritageClause(node); default: return visitor(node); @@ -92756,8 +93785,8 @@ function transformClassFields(context) { } function assignmentTargetVisitor(node) { switch (node.kind) { - case 209 /* ObjectLiteralExpression */: - case 208 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return visitAssignmentPattern(node); default: return visitor(node); @@ -92765,29 +93794,35 @@ function transformClassFields(context) { } function classElementVisitor(node) { switch (node.kind) { - case 175 /* Constructor */: - return visitConstructorDeclaration(node); - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 173 /* MethodDeclaration */: - return setCurrentStaticPropertyDeclarationOrStaticBlockAnd( - /*current*/ - void 0, + case 176 /* Constructor */: + return setCurrentClassElementAnd( + node, + visitConstructorDeclaration, + node + ); + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: + return setCurrentClassElementAnd( + node, visitMethodOrAccessorDeclaration, node ); - case 171 /* PropertyDeclaration */: - return setCurrentStaticPropertyDeclarationOrStaticBlockAnd( - /*current*/ - void 0, + case 172 /* PropertyDeclaration */: + return setCurrentClassElementAnd( + node, visitPropertyDeclaration, node ); - case 174 /* ClassStaticBlockDeclaration */: - return visitClassStaticBlockDeclaration(node); - case 166 /* ComputedPropertyName */: + case 175 /* ClassStaticBlockDeclaration */: + return setCurrentClassElementAnd( + node, + visitClassStaticBlockDeclaration, + node + ); + case 167 /* ComputedPropertyName */: return visitComputedPropertyName(node); - case 239 /* SemicolonClassElement */: + case 240 /* SemicolonClassElement */: return node; default: return isModifierLike(node) ? modifierVisitor(node) : visitor(node); @@ -92795,7 +93830,7 @@ function transformClassFields(context) { } function propertyNameVisitor(node) { switch (node.kind) { - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: return visitComputedPropertyName(node); default: return visitor(node); @@ -92803,10 +93838,10 @@ function transformClassFields(context) { } function accessorFieldResultVisitor(node) { switch (node.kind) { - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return transformFieldInitializer(node); - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return classElementVisitor(node); default: Debug.assertMissingNode(node, "Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration"); @@ -92835,9 +93870,7 @@ function transformClassFields(context) { } function visitPropertyAssignment(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const { referencedName, name } = visitReferencedPropertyName(node.name); - const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, referencedName), isExpression); - return factory2.updatePropertyAssignment(node, name, initializer); + node = transformNamedEvaluation(context, node); } return visitEachChild(node, visitor, context); } @@ -92849,71 +93882,33 @@ function transformClassFields(context) { pendingStatements = savedPendingStatements; return statement; } - function getAssignedNameOfIdentifier(name, initializer) { - const originalClass = getOriginalNode(initializer, isClassLike); - return originalClass && !originalClass.name && hasSyntacticModifier(originalClass, 1024 /* Default */) ? factory2.createStringLiteral("default") : factory2.createStringLiteralFromNode(name); - } function visitVariableDeclaration(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.name, node.initializer); - const name = visitNode(node.name, visitor, isBindingName); - const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateVariableDeclaration( - node, - name, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - initializer - ); + node = transformNamedEvaluation(context, node); } return visitEachChild(node, visitor, context); } function visitParameterDeclaration(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.name, node.initializer); - const name = visitNode(node.name, visitor, isBindingName); - const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateParameterDeclaration( - node, - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - name, - /*questionToken*/ - void 0, - /*type*/ - void 0, - initializer - ); + node = transformNamedEvaluation(context, node); } return visitEachChild(node, visitor, context); } function visitBindingElement(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.name, node.initializer); - const propertyName = visitNode(node.propertyName, visitor, isPropertyName); - const name = visitNode(node.name, visitor, isBindingName); - const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateBindingElement( - node, - /*dotDotDotToken*/ - void 0, - propertyName, - name, - initializer - ); + node = transformNamedEvaluation(context, node); } return visitEachChild(node, visitor, context); } function visitExportAssignment(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = factory2.createStringLiteral(node.isExportEquals ? "" : "default"); - const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); - const expression = visitNode(node.expression, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateExportAssignment(node, modifiers, expression); + node = transformNamedEvaluation( + context, + node, + /*ignoreEmptyStringLiteral*/ + true, + node.isExportEquals ? "" : "default" + ); } return visitEachChild(node, visitor, context); } @@ -92978,12 +93973,15 @@ function transformClassFields(context) { } return void 0; } - function setCurrentStaticPropertyDeclarationOrStaticBlockAnd(current, visitor2, arg) { - const savedCurrentStaticPropertyDeclarationOrStaticBlock = currentStaticPropertyDeclarationOrStaticBlock; - currentStaticPropertyDeclarationOrStaticBlock = current; - const result = visitor2(arg); - currentStaticPropertyDeclarationOrStaticBlock = savedCurrentStaticPropertyDeclarationOrStaticBlock; - return result; + function setCurrentClassElementAnd(classElement, visitor2, arg) { + if (classElement !== currentClassElement) { + const savedCurrentClassElement = currentClassElement; + currentClassElement = classElement; + const result = visitor2(arg); + currentClassElement = savedCurrentClassElement; + return result; + } + return visitor2(arg); } function getHoistedFunctionName(node) { Debug.assert(isPrivateIdentifier(node.name)); @@ -93001,6 +93999,11 @@ function transformClassFields(context) { } } } + function getClassThis() { + const lex = getClassLexicalEnvironment(); + const classThis = lex.classThis ?? lex.classConstructor ?? (currentClassContainer == null ? void 0 : currentClassContainer.name); + return Debug.checkDefined(classThis); + } function transformAutoAccessor(node) { const commentRange = getCommentRange(node); const sourceMapRange = getSourceMapRange(node); @@ -93027,11 +94030,13 @@ function transformClassFields(context) { setOriginalNode(backingField, node); setEmitFlags(backingField, 3072 /* NoComments */); setSourceMapRange(backingField, sourceMapRange); - const getter = createAccessorPropertyGetRedirector(factory2, node, modifiers, getterName); + const receiver = isStatic(node) ? getClassThis() : factory2.createThis(); + const getter = createAccessorPropertyGetRedirector(factory2, node, modifiers, getterName, receiver); setOriginalNode(getter, node); setCommentRange(getter, commentRange); setSourceMapRange(getter, sourceMapRange); - const setter = createAccessorPropertySetRedirector(factory2, node, modifiers, setterName); + const setterModifiers = factory2.createModifiersFromModifierFlags(modifiersToFlags(modifiers)); + const setter = createAccessorPropertySetRedirector(factory2, node, setterModifiers, setterName, receiver); setOriginalNode(setter, node); setEmitFlags(setter, 3072 /* NoComments */); setSourceMapRange(setter, sourceMapRange); @@ -93070,17 +94075,7 @@ function transformClassFields(context) { ); } if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const { referencedName, name } = visitReferencedPropertyName(node.name); - return factory2.updatePropertyDeclaration( - node, - visitNodes2(node.modifiers, modifierVisitor, isModifier), - name, - /*questionOrExclamationToken*/ - void 0, - /*type*/ - void 0, - visitNode(node.initializer, (child) => namedEvaluationVisitor(child, referencedName), isExpression) - ); + node = transformNamedEvaluation(context, node); } return factory2.updatePropertyDeclaration( node, @@ -93098,9 +94093,7 @@ function transformClassFields(context) { const expr = getPropertyNameExpressionIfNeeded( node.name, /*shouldHoist*/ - !!node.initializer || useDefineForClassFields, - /*captureReferencedName*/ - isNamedEvaluation(node, isAnonymousClassNeedingAssignedName) + !!node.initializer || useDefineForClassFields ); if (expr) { getPendingExpressions().push(...flattenCommaList(expr)); @@ -93145,8 +94138,21 @@ function transformClassFields(context) { } return transformFieldInitializer(node); } + function shouldForceDynamicThis() { + return !!currentClassElement && hasStaticModifier(currentClassElement) && isAccessor(currentClassElement) && isAutoAccessorPropertyDeclaration(getOriginalNode(currentClassElement)); + } + function ensureDynamicThisIfNeeded(node) { + if (shouldForceDynamicThis()) { + const innerExpression = skipOuterExpressions(node); + if (innerExpression.kind === 110 /* ThisKeyword */) { + noSubstitution.add(innerExpression); + } + } + } function createPrivateIdentifierAccess(info, receiver) { - return createPrivateIdentifierAccessHelper(info, visitNode(receiver, visitor, isExpression)); + receiver = visitNode(receiver, visitor, isExpression); + ensureDynamicThisIfNeeded(receiver); + return createPrivateIdentifierAccessHelper(info, receiver); } function createPrivateIdentifierAccessHelper(info, receiver) { setCommentRange(receiver, moveRangePos(receiver, -1)); @@ -93191,7 +94197,7 @@ function transformClassFields(context) { ); } } - if (shouldTransformSuperInStaticInitializers && isSuperProperty(node) && isIdentifier(node.name) && currentStaticPropertyDeclarationOrStaticBlock && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node) && isIdentifier(node.name) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { const { classConstructor, superClassReference, facts } = lexicalEnvironment.data; if (facts & 1 /* ClassWasDecorated */) { return visitInvalidSuperProperty(node); @@ -93210,7 +94216,7 @@ function transformClassFields(context) { return visitEachChild(node, visitor, context); } function visitElementAccessExpression(node) { - if (shouldTransformSuperInStaticInitializers && isSuperProperty(node) && currentStaticPropertyDeclarationOrStaticBlock && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { const { classConstructor, superClassReference, facts } = lexicalEnvironment.data; if (facts & 1 /* ClassWasDecorated */) { return visitInvalidSuperProperty(node); @@ -93235,6 +94241,7 @@ function transformClassFields(context) { let info; if (info = accessPrivateIdentifier2(operand.name)) { const receiver = visitNode(operand.expression, visitor, isExpression); + ensureDynamicThisIfNeeded(receiver); const { readExpression, initializeExpression } = createCopiableReceiverExpr(receiver); let expression = createPrivateIdentifierAccess(info, readExpression); const temp = isPrefixUnaryExpression(node) || discarded ? void 0 : factory2.createTempVariable(hoistVariableDeclaration); @@ -93253,7 +94260,7 @@ function transformClassFields(context) { } return expression; } - } else if (shouldTransformSuperInStaticInitializers && isSuperProperty(operand) && currentStaticPropertyDeclarationOrStaticBlock && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + } else if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(operand) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { const { classConstructor, superClassReference, facts } = lexicalEnvironment.data; if (facts & 1 /* ClassWasDecorated */) { const expression = visitInvalidSuperProperty(operand); @@ -93310,6 +94317,9 @@ function transformClassFields(context) { } function createCopiableReceiverExpr(receiver) { const clone2 = nodeIsSynthesized(receiver) ? receiver : factory2.cloneNode(receiver); + if (receiver.kind === 110 /* ThisKeyword */ && noSubstitution.has(receiver)) { + noSubstitution.add(clone2); + } if (isSimpleInlineableExpression(receiver)) { return { readExpression: clone2, initializeExpression: void 0 }; } @@ -93340,7 +94350,7 @@ function transformClassFields(context) { [visitNode(thisArg, visitor, isExpression), ...visitNodes2(node.arguments, visitor, isExpression)] ); } - if (shouldTransformSuperInStaticInitializers && isSuperProperty(node.expression) && currentStaticPropertyDeclarationOrStaticBlock && ((_a = lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) == null ? void 0 : _a.classConstructor)) { + if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node.expression) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && ((_a = lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) == null ? void 0 : _a.classConstructor)) { const invocation = factory2.createFunctionCallCall( visitNode(node.expression, visitor, isExpression), lexicalEnvironment.data.classConstructor, @@ -93369,7 +94379,7 @@ function transformClassFields(context) { visitNode(node.template, visitor, isTemplateLiteral) ); } - if (shouldTransformSuperInStaticInitializers && isSuperProperty(node.tag) && currentStaticPropertyDeclarationOrStaticBlock && ((_a = lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) == null ? void 0 : _a.classConstructor)) { + if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node.tag) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && ((_a = lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) == null ? void 0 : _a.classConstructor)) { const invocation = factory2.createFunctionBindCall( visitNode(node.tag, visitor, isExpression), lexicalEnvironment.data.classConstructor, @@ -93392,30 +94402,40 @@ function transformClassFields(context) { lexicalEnvironmentMap.set(getOriginalNode(node), lexicalEnvironment); } if (shouldTransformPrivateElementsOrClassStaticBlocks) { + if (isClassThisAssignmentBlock(node)) { + const result = visitNode(node.body.statements[0].expression, visitor, isExpression); + if (isAssignmentExpression( + result, + /*excludeCompoundAssignment*/ + true + ) && result.left === result.right) { + return void 0; + } + return result; + } + if (isClassNamedEvaluationHelperBlock(node)) { + return visitNode(node.body.statements[0].expression, visitor, isExpression); + } startLexicalEnvironment(); - let statements = setCurrentStaticPropertyDeclarationOrStaticBlockAnd( + let statements = setCurrentClassElementAnd( node, (statements2) => visitNodes2(statements2, visitor, isStatement), node.body.statements ); statements = factory2.mergeLexicalEnvironment(statements, endLexicalEnvironment()); const iife = factory2.createImmediatelyInvokedArrowFunction(statements); + setOriginalNode(skipParentheses(iife.expression), node); + addEmitFlags(skipParentheses(iife.expression), 4 /* AdviseOnEmitNode */); setOriginalNode(iife, node); setTextRange(iife, node); - addEmitFlags(iife, 4 /* AdviseOnEmitNode */); return iife; } } function isAnonymousClassNeedingAssignedName(node) { if (isClassExpression(node) && !node.name) { const staticPropertiesOrClassStaticBlocks = getStaticPropertiesAndClassStaticBlock(node); - const classStaticBlock = find(staticPropertiesOrClassStaticBlocks, isClassStaticBlockDeclaration); - if (classStaticBlock) { - for (const statement of classStaticBlock.body.statements) { - if (isExpressionStatement(statement) && isCallToHelper(statement.expression, "___setFunctionName")) { - return false; - } - } + if (some(staticPropertiesOrClassStaticBlocks, isClassNamedEvaluationHelperBlock)) { + return false; } const hasTransformableStatics = (shouldTransformPrivateElementsOrClassStaticBlocks || !!(getInternalEmitFlags(node) && 32 /* TransformPrivateStaticElements */)) && some(staticPropertiesOrClassStaticBlocks, (node2) => isClassStaticBlockDeclaration(node2) || isPrivateIdentifierClassElementDeclaration(node2) || shouldTransformInitializers && isInitializedProperty(node2)); return hasTransformableStatics; @@ -93438,10 +94458,8 @@ function transformClassFields(context) { } if (isAssignmentExpression(node)) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.left, node.right); - const left2 = visitNode(node.left, visitor, isExpression); - const right = visitNode(node.right, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateBinaryExpression(node, left2, node.operatorToken, right); + node = transformNamedEvaluation(context, node); + Debug.assertNode(node, isAssignmentExpression); } const left = skipOuterExpressions(node.left, 8 /* PartiallyEmittedExpressions */ | 1 /* Parentheses */); if (isPrivateIdentifierPropertyAccessExpression(left)) { @@ -93455,7 +94473,7 @@ function transformClassFields(context) { node ); } - } else if (shouldTransformSuperInStaticInitializers && isSuperProperty(node.left) && currentStaticPropertyDeclarationOrStaticBlock && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + } else if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node.left) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { const { classConstructor, superClassReference, facts } = lexicalEnvironment.data; if (facts & 1 /* ClassWasDecorated */) { return factory2.updateBinaryExpression( @@ -93520,36 +94538,15 @@ function transformClassFields(context) { const elements = discarded ? visitCommaListElements(node.elements, discardedValueVisitor) : visitCommaListElements(node.elements, visitor, discardedValueVisitor); return factory2.updateCommaListExpression(node, elements); } - function visitParenthesizedExpression(node, discarded, referencedName) { - const visitorFunc = discarded ? discardedValueVisitor : referencedName ? (node2) => namedEvaluationVisitor(node2, referencedName) : visitor; + function visitParenthesizedExpression(node, discarded) { + const visitorFunc = discarded ? discardedValueVisitor : visitor; const expression = visitNode(node.expression, visitorFunc, isExpression); return factory2.updateParenthesizedExpression(node, expression); } - function visitPartiallyEmittedExpression(node, discarded, referencedName) { - const visitorFunc = discarded ? discardedValueVisitor : referencedName ? (node2) => namedEvaluationVisitor(node2, referencedName) : visitor; - const expression = visitNode(node.expression, visitorFunc, isExpression); - return factory2.updatePartiallyEmittedExpression(node, expression); - } - function visitReferencedPropertyName(node) { - if (isPropertyNameLiteral(node) || isPrivateIdentifier(node)) { - const referencedName2 = factory2.createStringLiteralFromNode(node); - const name2 = visitNode(node, visitor, isPropertyName); - return { referencedName: referencedName2, name: name2 }; - } - if (isPropertyNameLiteral(node.expression) && !isIdentifier(node.expression)) { - const referencedName2 = factory2.createStringLiteralFromNode(node.expression); - const name2 = visitNode(node, visitor, isPropertyName); - return { referencedName: referencedName2, name: name2 }; - } - const referencedName = factory2.createTempVariable(hoistVariableDeclaration); - const key = emitHelpers().createPropKeyHelper(visitNode(node.expression, visitor, isExpression)); - const assignment = factory2.createAssignment(referencedName, key); - const name = factory2.updateComputedPropertyName(node, injectPendingExpressions(assignment)); - return { referencedName, name }; - } function createPrivateIdentifierAssignment(info, receiver, right, operator) { receiver = visitNode(receiver, visitor, isExpression); right = visitNode(right, visitor, isExpression); + ensureDynamicThisIfNeeded(receiver); if (isCompoundAssignment(operator)) { const { readExpression, initializeExpression } = createCopiableReceiverExpr(receiver); receiver = initializeExpression || readExpression; @@ -93596,11 +94593,15 @@ function transformClassFields(context) { return filter(node.members, isNonStaticMethodOrAccessorWithPrivateName); } function getClassFacts(node) { + var _a; let facts = 0 /* None */; const original = getOriginalNode(node); if (isClassDeclaration(original) && classOrConstructorParameterIsDecorated(legacyDecorators, original)) { facts |= 1 /* ClassWasDecorated */; } + if (shouldTransformPrivateElementsOrClassStaticBlocks && (classHasClassThisAssignment(node) || classHasExplicitlyAssignedName(node))) { + facts |= 2 /* NeedsClassConstructorReference */; + } let containsPublicInstanceFields = false; let containsInitializedPublicInstanceFields = false; let containsInstancePrivateElements = false; @@ -93609,6 +94610,8 @@ function transformClassFields(context) { if (isStatic(member)) { if (member.name && (isPrivateIdentifier(member.name) || isAutoAccessorPropertyDeclaration(member)) && shouldTransformPrivateElementsOrClassStaticBlocks) { facts |= 2 /* NeedsClassConstructorReference */; + } else if (isAutoAccessorPropertyDeclaration(member) && shouldTransformAutoAccessors === -1 /* True */ && !node.name && !((_a = node.emitNode) == null ? void 0 : _a.classThis)) { + facts |= 2 /* NeedsClassConstructorReference */; } if (isPropertyDeclaration(member) || isClassStaticBlockDeclaration(member)) { if (shouldTransformThisInStaticInitializers && member.transformFlags & 16384 /* ContainsLexicalThis */) { @@ -93629,6 +94632,9 @@ function transformClassFields(context) { containsInstancePrivateElements || (containsInstancePrivateElements = isPrivateIdentifierClassElementDeclaration(member)); } else if (isPrivateIdentifierClassElementDeclaration(member)) { containsInstancePrivateElements = true; + if (resolver.getNodeCheckFlags(member) & 262144 /* ContainsConstructorReference */) { + facts |= 2 /* NeedsClassConstructorReference */; + } } else if (isPropertyDeclaration(member)) { containsPublicInstanceFields = true; containsInitializedPublicInstanceFields || (containsInitializedPublicInstanceFields = !!member.initializer); @@ -93663,7 +94669,8 @@ function transformClassFields(context) { } return visitEachChild(node, visitor, context); } - function visitInNewClassLexicalEnvironment(node, referencedName, visitor2) { + function visitInNewClassLexicalEnvironment(node, visitor2) { + var _a; const savedCurrentClassContainer = currentClassContainer; const savedPendingExpressions = pendingExpressions; const savedLexicalEnvironment = lexicalEnvironment; @@ -93675,6 +94682,15 @@ function transformClassFields(context) { const name = getNameOfDeclaration(node); if (name && isIdentifier(name)) { getPrivateIdentifierEnvironment().data.className = name; + } else if ((_a = node.emitNode) == null ? void 0 : _a.assignedName) { + if (isStringLiteral(node.emitNode.assignedName)) { + if (node.emitNode.assignedName.textSourceNode && isIdentifier(node.emitNode.assignedName.textSourceNode)) { + getPrivateIdentifierEnvironment().data.className = node.emitNode.assignedName.textSourceNode; + } else if (isIdentifierText(node.emitNode.assignedName.text, languageVersion)) { + const prefixName = factory2.createIdentifier(node.emitNode.assignedName.text); + getPrivateIdentifierEnvironment().data.className = prefixName; + } + } } } if (shouldTransformPrivateElementsOrClassStaticBlocks) { @@ -93693,7 +94709,7 @@ function transformClassFields(context) { if (facts & 8 /* NeedsSubstitutionForThisInClassStaticField */) { enableSubstitutionForClassStaticThisOrSuperReference(); } - const result = visitor2(node, facts, referencedName); + const result = visitor2(node, facts); endClassLexicalEnvironment(); Debug.assert(lexicalEnvironment === savedLexicalEnvironment); currentClassContainer = savedCurrentClassContainer; @@ -93701,12 +94717,7 @@ function transformClassFields(context) { return result; } function visitClassDeclaration(node) { - return visitInNewClassLexicalEnvironment( - node, - /*referencedName*/ - void 0, - visitClassDeclarationInNewClassLexicalEnvironment - ); + return visitInNewClassLexicalEnvironment(node, visitClassDeclarationInNewClassLexicalEnvironment); } function visitClassDeclarationInNewClassLexicalEnvironment(node, facts) { var _a, _b; @@ -93724,10 +94735,11 @@ function transformClassFields(context) { getClassLexicalEnvironment().classConstructor = factory2.cloneNode(temp); pendingClassReferenceAssignment = factory2.createAssignment(temp, factory2.getInternalName(node)); } - if ((_b = node.emitNode) == null ? void 0 : _b.classThis) { - getClassLexicalEnvironment().classThis = node.emitNode.classThis; - } } + if ((_b = node.emitNode) == null ? void 0 : _b.classThis) { + getClassLexicalEnvironment().classThis = node.emitNode.classThis; + } + const isClassWithConstructorReference = resolver.getNodeCheckFlags(node) & 262144 /* ContainsConstructorReference */; const isExport = hasSyntacticModifier(node, 1 /* Export */); const isDefault = hasSyntacticModifier(node, 1024 /* Default */); let modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); @@ -93762,6 +94774,11 @@ function transformClassFields(context) { ) )); } + const alias = getClassLexicalEnvironment().classConstructor; + if (isClassWithConstructorReference && alias) { + enableSubstitutionForClassAliases(); + classAliases[getOriginalNodeId(node)] = alias; + } const classDecl = factory2.updateClassDeclaration( node, modifiers, @@ -93777,24 +94794,27 @@ function transformClassFields(context) { } return statements; } - function visitClassExpression(node, referencedName) { - return visitInNewClassLexicalEnvironment(node, referencedName, visitClassExpressionInNewClassLexicalEnvironment); + function visitClassExpression(node) { + return visitInNewClassLexicalEnvironment(node, visitClassExpressionInNewClassLexicalEnvironment); } - function visitClassExpressionInNewClassLexicalEnvironment(node, facts, referencedName) { - var _a, _b, _c, _d; + function visitClassExpressionInNewClassLexicalEnvironment(node, facts) { + var _a, _b, _c; const isDecoratedClassDeclaration = !!(facts & 1 /* ClassWasDecorated */); const staticPropertiesOrClassStaticBlocks = getStaticPropertiesAndClassStaticBlock(node); - const isClassWithConstructorReference = resolver.getNodeCheckFlags(node) & 1048576 /* ClassWithConstructorReference */; + const classCheckFlags = resolver.getNodeCheckFlags(node); + const isClassWithConstructorReference = classCheckFlags & 262144 /* ContainsConstructorReference */; let temp; function createClassTempVar() { var _a2; if (shouldTransformPrivateElementsOrClassStaticBlocks && ((_a2 = node.emitNode) == null ? void 0 : _a2.classThis)) { return getClassLexicalEnvironment().classConstructor = node.emitNode.classThis; } - const classCheckFlags = resolver.getNodeCheckFlags(node); - const isClassWithConstructorReference2 = classCheckFlags & 1048576 /* ClassWithConstructorReference */; const requiresBlockScopedVar = classCheckFlags & 32768 /* BlockScopedBindingInLoop */; - const temp2 = factory2.createTempVariable(requiresBlockScopedVar ? addBlockScopedVariable : hoistVariableDeclaration, !!isClassWithConstructorReference2); + const temp2 = factory2.createTempVariable( + requiresBlockScopedVar ? addBlockScopedVariable : hoistVariableDeclaration, + /*reservedInNestedScopes*/ + true + ); getClassLexicalEnvironment().classConstructor = factory2.cloneNode(temp2); return temp2; } @@ -93807,7 +94827,7 @@ function transformClassFields(context) { const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); const heritageClauses = visitNodes2(node.heritageClauses, heritageClauseVisitor, isHeritageClause); const { members, prologue } = transformClassMembers(node); - let classExpression = factory2.updateClassExpression( + const classExpression = factory2.updateClassExpression( node, modifiers, node.name, @@ -93821,41 +94841,18 @@ function transformClassFields(context) { expressions.push(prologue); } const hasTransformableStatics = (shouldTransformPrivateElementsOrClassStaticBlocks || getInternalEmitFlags(node) & 32 /* TransformPrivateStaticElements */) && some(staticPropertiesOrClassStaticBlocks, (node2) => isClassStaticBlockDeclaration(node2) || isPrivateIdentifierClassElementDeclaration(node2) || shouldTransformInitializers && isInitializedProperty(node2)); - if (hasTransformableStatics || some(pendingExpressions) || referencedName) { + if (hasTransformableStatics || some(pendingExpressions)) { if (isDecoratedClassDeclaration) { Debug.assertIsDefined(pendingStatements, "Decorated classes transformed by TypeScript are expected to be within a variable declaration."); if (some(pendingExpressions)) { addRange(pendingStatements, map(pendingExpressions, factory2.createExpressionStatement)); } - if (referencedName) { - if (shouldTransformPrivateElementsOrClassStaticBlocks) { - const setNameExpression = emitHelpers().createSetFunctionNameHelper(temp ?? ((_b = node.emitNode) == null ? void 0 : _b.classThis) ?? factory2.getInternalName(node), referencedName); - pendingStatements.push(factory2.createExpressionStatement(setNameExpression)); - } else { - const setNameExpression = emitHelpers().createSetFunctionNameHelper(factory2.createThis(), referencedName); - classExpression = factory2.updateClassExpression( - classExpression, - classExpression.modifiers, - classExpression.name, - classExpression.typeParameters, - classExpression.heritageClauses, - [ - factory2.createClassStaticBlockDeclaration( - factory2.createBlock([ - factory2.createExpressionStatement(setNameExpression) - ]) - ), - ...classExpression.members - ] - ); - } - } if (some(staticPropertiesOrClassStaticBlocks)) { - addPropertyOrClassStaticBlockStatements(pendingStatements, staticPropertiesOrClassStaticBlocks, ((_c = node.emitNode) == null ? void 0 : _c.classThis) ?? factory2.getInternalName(node)); + addPropertyOrClassStaticBlockStatements(pendingStatements, staticPropertiesOrClassStaticBlocks, ((_b = node.emitNode) == null ? void 0 : _b.classThis) ?? factory2.getInternalName(node)); } if (temp) { expressions.push(factory2.createAssignment(temp, classExpression)); - } else if (shouldTransformPrivateElementsOrClassStaticBlocks && ((_d = node.emitNode) == null ? void 0 : _d.classThis)) { + } else if (shouldTransformPrivateElementsOrClassStaticBlocks && ((_c = node.emitNode) == null ? void 0 : _c.classThis)) { expressions.push(factory2.createAssignment(node.emitNode.classThis, classExpression)); } else { expressions.push(classExpression); @@ -93870,9 +94867,6 @@ function transformClassFields(context) { } expressions.push(factory2.createAssignment(temp, classExpression)); addRange(expressions, pendingExpressions); - if (referencedName) { - expressions.push(emitHelpers().createSetFunctionNameHelper(temp, referencedName)); - } addRange(expressions, generateInitializedPropertyExpressionsOrClassStaticBlock(staticPropertiesOrClassStaticBlocks, temp)); expressions.push(factory2.cloneNode(temp)); } @@ -93891,6 +94885,13 @@ function transformClassFields(context) { } return void 0; } + function visitThisExpression(node) { + if (shouldTransformThisInStaticInitializers && currentClassElement && isClassStaticBlockDeclaration(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + const { classThis, classConstructor } = lexicalEnvironment.data; + return classThis ?? classConstructor ?? node; + } + return node; + } function transformClassMembers(node) { const shouldTransformPrivateStaticElementsInClass = !!(getInternalEmitFlags(node) & 32 /* TransformPrivateStaticElements */); if (shouldTransformPrivateElementsOrClassStaticBlocks || shouldTransformPrivateStaticElementsInFile) { @@ -93970,9 +94971,14 @@ function transformClassFields(context) { } if (syntheticConstructor || syntheticStaticBlock) { let membersArray; + const classThisAssignmentBlock = find(members, isClassThisAssignmentBlock); + const classNamedEvaluationHelperBlock = find(members, isClassNamedEvaluationHelperBlock); + membersArray = append(membersArray, classThisAssignmentBlock); + membersArray = append(membersArray, classNamedEvaluationHelperBlock); membersArray = append(membersArray, syntheticConstructor); membersArray = append(membersArray, syntheticStaticBlock); - membersArray = addRange(membersArray, members); + const remainingMembers = classThisAssignmentBlock || classNamedEvaluationHelperBlock ? filter(members, (member) => member !== classThisAssignmentBlock && member !== classNamedEvaluationHelperBlock) : members; + membersArray = addRange(membersArray, remainingMembers); members = setTextRange( factory2.createNodeArray(membersArray), /*location*/ @@ -94033,8 +95039,46 @@ function transformClassFields(context) { ) ); } + function transformConstructorBodyWorker(statementsOut, statementsIn, statementOffset, superPath, superPathDepth, initializerStatements, constructor) { + const superStatementIndex = superPath[superPathDepth]; + const superStatement = statementsIn[superStatementIndex]; + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, statementOffset, superStatementIndex - statementOffset)); + statementOffset = superStatementIndex + 1; + if (isTryStatement(superStatement)) { + const tryBlockStatements = []; + transformConstructorBodyWorker( + tryBlockStatements, + superStatement.tryBlock.statements, + /*statementOffset*/ + 0, + superPath, + superPathDepth + 1, + initializerStatements, + constructor + ); + const tryBlockStatementsArray = factory2.createNodeArray(tryBlockStatements); + setTextRange(tryBlockStatementsArray, superStatement.tryBlock.statements); + statementsOut.push(factory2.updateTryStatement( + superStatement, + factory2.updateBlock(superStatement.tryBlock, tryBlockStatements), + visitNode(superStatement.catchClause, visitor, isCatchClause), + visitNode(superStatement.finallyBlock, visitor, isBlock) + )); + } else { + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex, 1)); + while (statementOffset < statementsIn.length) { + const statement = statementsIn[statementOffset]; + if (isParameterPropertyDeclaration(getOriginalNode(statement), constructor)) { + statementOffset++; + } else { + break; + } + } + addRange(statementsOut, initializerStatements); + } + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, statementOffset)); + } function transformConstructorBody(node, constructor, isDerivedClass) { - var _a; const instanceProperties = getProperties( node, /*requireInitializer*/ @@ -94058,68 +95102,65 @@ function transformClassFields(context) { } resumeLexicalEnvironment(); const needsSyntheticConstructor = !constructor && isDerivedClass; - let indexOfFirstStatementAfterSuperAndPrologue = 0; - let prologueStatementCount = 0; - let superStatementIndex = -1; + let statementOffset = 0; let statements = []; - if ((_a = constructor == null ? void 0 : constructor.body) == null ? void 0 : _a.statements) { - prologueStatementCount = factory2.copyPrologue( + const initializerStatements = []; + const receiver = factory2.createThis(); + addInstanceMethodStatements(initializerStatements, privateMethodsAndAccessors, receiver); + if (constructor) { + const parameterProperties = filter(instanceProperties, (prop) => isParameterPropertyDeclaration(getOriginalNode(prop), constructor)); + const nonParameterProperties = filter(properties, (prop) => !isParameterPropertyDeclaration(getOriginalNode(prop), constructor)); + addPropertyOrClassStaticBlockStatements(initializerStatements, parameterProperties, receiver); + addPropertyOrClassStaticBlockStatements(initializerStatements, nonParameterProperties, receiver); + } else { + addPropertyOrClassStaticBlockStatements(initializerStatements, properties, receiver); + } + if (constructor == null ? void 0 : constructor.body) { + statementOffset = factory2.copyPrologue( constructor.body.statements, statements, /*ensureUseStrict*/ false, visitor ); - superStatementIndex = findSuperStatementIndex(constructor.body.statements, prologueStatementCount); - if (superStatementIndex >= 0) { - indexOfFirstStatementAfterSuperAndPrologue = superStatementIndex + 1; - statements = [ - ...statements.slice(0, prologueStatementCount), - ...visitNodes2(constructor.body.statements, visitor, isStatement, prologueStatementCount, indexOfFirstStatementAfterSuperAndPrologue - prologueStatementCount), - ...statements.slice(prologueStatementCount) - ]; - } else if (prologueStatementCount >= 0) { - indexOfFirstStatementAfterSuperAndPrologue = prologueStatementCount; - } - } - if (needsSyntheticConstructor) { - statements.push( - factory2.createExpressionStatement( - factory2.createCallExpression( - factory2.createSuper(), - /*typeArguments*/ - void 0, - [factory2.createSpreadElement(factory2.createIdentifier("arguments"))] - ) - ) - ); - } - let parameterPropertyDeclarationCount = 0; - if (constructor == null ? void 0 : constructor.body) { - for (let i = indexOfFirstStatementAfterSuperAndPrologue; i < constructor.body.statements.length; i++) { - const statement = constructor.body.statements[i]; - if (isParameterPropertyDeclaration(getOriginalNode(statement), constructor)) { - parameterPropertyDeclarationCount++; - } else { - break; + const superStatementIndices = findSuperStatementIndexPath(constructor.body.statements, statementOffset); + if (superStatementIndices.length) { + transformConstructorBodyWorker( + statements, + constructor.body.statements, + statementOffset, + superStatementIndices, + /*superPathDepth*/ + 0, + initializerStatements, + constructor + ); + } else { + while (statementOffset < constructor.body.statements.length) { + const statement = constructor.body.statements[statementOffset]; + if (isParameterPropertyDeclaration(getOriginalNode(statement), constructor)) { + statementOffset++; + } else { + break; + } } + addRange(statements, initializerStatements); + addRange(statements, visitNodes2(constructor.body.statements, visitor, isStatement, statementOffset)); } - if (parameterPropertyDeclarationCount > 0) { - indexOfFirstStatementAfterSuperAndPrologue += parameterPropertyDeclarationCount; - } - } - const receiver = factory2.createThis(); - addInstanceMethodStatements(statements, privateMethodsAndAccessors, receiver); - if (constructor) { - const parameterProperties = filter(instanceProperties, (prop) => isParameterPropertyDeclaration(getOriginalNode(prop), constructor)); - const nonParameterProperties = filter(properties, (prop) => !isParameterPropertyDeclaration(getOriginalNode(prop), constructor)); - addPropertyOrClassStaticBlockStatements(statements, parameterProperties, receiver); - addPropertyOrClassStaticBlockStatements(statements, nonParameterProperties, receiver); } else { - addPropertyOrClassStaticBlockStatements(statements, properties, receiver); - } - if (constructor) { - addRange(statements, visitNodes2(constructor.body.statements, visitor, isStatement, indexOfFirstStatementAfterSuperAndPrologue)); + if (needsSyntheticConstructor) { + statements.push( + factory2.createExpressionStatement( + factory2.createCallExpression( + factory2.createSuper(), + /*typeArguments*/ + void 0, + [factory2.createSpreadElement(factory2.createIdentifier("arguments"))] + ) + ) + ); + } + addRange(statements, initializerStatements); } statements = factory2.mergeLexicalEnvironment(statements, endLexicalEnvironment()); if (statements.length === 0 && !constructor) { @@ -94152,7 +95193,7 @@ function transformClassFields(context) { } } function transformPropertyOrClassStaticBlock(property, receiver) { - const expression = isClassStaticBlockDeclaration(property) ? transformClassStaticBlockDeclaration(property) : transformProperty(property, receiver); + const expression = isClassStaticBlockDeclaration(property) ? setCurrentClassElementAnd(property, transformClassStaticBlockDeclaration, property) : transformProperty(property, receiver); if (!expression) { return void 0; } @@ -94177,7 +95218,12 @@ function transformClassFields(context) { function generateInitializedPropertyExpressionsOrClassStaticBlock(propertiesOrClassStaticBlocks, receiver) { const expressions = []; for (const property of propertiesOrClassStaticBlocks) { - const expression = isClassStaticBlockDeclaration(property) ? transformClassStaticBlockDeclaration(property) : transformProperty(property, receiver); + const expression = isClassStaticBlockDeclaration(property) ? setCurrentClassElementAnd(property, transformClassStaticBlockDeclaration, property) : setCurrentClassElementAnd( + property, + () => transformProperty(property, receiver), + /*arg*/ + void 0 + ); if (!expression) { continue; } @@ -94192,7 +95238,7 @@ function transformClassFields(context) { } function transformProperty(property, receiver) { var _a; - const savedCurrentStaticPropertyDeclarationOrStaticBlock = currentStaticPropertyDeclarationOrStaticBlock; + const savedCurrentClassElement = currentClassElement; const transformed = transformPropertyWorker(property, receiver); if (transformed && hasStaticModifier(property) && ((_a = lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) == null ? void 0 : _a.facts)) { setOriginalNode(transformed, property); @@ -94200,26 +95246,18 @@ function transformClassFields(context) { setSourceMapRange(transformed, getSourceMapRange(property.name)); lexicalEnvironmentMap.set(getOriginalNode(property), lexicalEnvironment); } - currentStaticPropertyDeclarationOrStaticBlock = savedCurrentStaticPropertyDeclarationOrStaticBlock; + currentClassElement = savedCurrentClassElement; return transformed; } function transformPropertyWorker(property, receiver) { const emitAssignment = !useDefineForClassFields; - let referencedName; if (isNamedEvaluation(property, isAnonymousClassNeedingAssignedName)) { - if (isPropertyNameLiteral(property.name) || isPrivateIdentifier(property.name)) { - referencedName = factory2.createStringLiteralFromNode(property.name); - } else if (isPropertyNameLiteral(property.name.expression) && !isIdentifier(property.name.expression)) { - referencedName = factory2.createStringLiteralFromNode(property.name.expression); - } else { - referencedName = factory2.getGeneratedNameForNode(property.name); - } + property = transformNamedEvaluation(context, property); } const propertyName = hasAccessorModifier(property) ? factory2.getGeneratedPrivateNameForNode(property.name) : isComputedPropertyName(property.name) && !isSimpleInlineableExpression(property.name.expression) ? factory2.updateComputedPropertyName(property.name, factory2.getGeneratedNameForNode(property.name)) : property.name; if (hasStaticModifier(property)) { - currentStaticPropertyDeclarationOrStaticBlock = property; + currentClassElement = property; } - const initializerVisitor = referencedName ? (child) => namedEvaluationVisitor(child, referencedName) : visitor; if (isPrivateIdentifier(propertyName) && shouldTransformClassElementToWeakMap(property)) { const privateIdentifierInfo = accessPrivateIdentifier2(propertyName); if (privateIdentifierInfo) { @@ -94228,14 +95266,14 @@ function transformClassFields(context) { return createPrivateInstanceFieldInitializer( factory2, receiver, - visitNode(property.initializer, initializerVisitor, isExpression), + visitNode(property.initializer, visitor, isExpression), privateIdentifierInfo.brandCheckIdentifier ); } else { return createPrivateStaticFieldInitializer( factory2, privateIdentifierInfo.variableName, - visitNode(property.initializer, initializerVisitor, isExpression) + visitNode(property.initializer, visitor, isExpression) ); } } else { @@ -94252,7 +95290,7 @@ function transformClassFields(context) { if (hasSyntacticModifier(propertyOriginalNode, 256 /* Abstract */)) { return void 0; } - let initializer = visitNode(property.initializer, initializerVisitor, isExpression); + let initializer = visitNode(property.initializer, visitor, isExpression); if (isParameterPropertyDeclaration(propertyOriginalNode, propertyOriginalNode.parent) && isIdentifier(propertyName)) { const localName = factory2.cloneNode(propertyName); if (initializer) { @@ -94297,14 +95335,14 @@ function transformClassFields(context) { if ((enabledSubstitutions & 2 /* ClassStaticThisOrSuperReference */) === 0) { enabledSubstitutions |= 2 /* ClassStaticThisOrSuperReference */; context.enableSubstitution(110 /* ThisKeyword */); - context.enableEmitNotification(261 /* FunctionDeclaration */); - context.enableEmitNotification(217 /* FunctionExpression */); - context.enableEmitNotification(175 /* Constructor */); - context.enableEmitNotification(176 /* GetAccessor */); - context.enableEmitNotification(177 /* SetAccessor */); - context.enableEmitNotification(173 /* MethodDeclaration */); - context.enableEmitNotification(171 /* PropertyDeclaration */); - context.enableEmitNotification(166 /* ComputedPropertyName */); + context.enableEmitNotification(262 /* FunctionDeclaration */); + context.enableEmitNotification(218 /* FunctionExpression */); + context.enableEmitNotification(176 /* Constructor */); + context.enableEmitNotification(177 /* GetAccessor */); + context.enableEmitNotification(178 /* SetAccessor */); + context.enableEmitNotification(174 /* MethodDeclaration */); + context.enableEmitNotification(172 /* PropertyDeclaration */); + context.enableEmitNotification(167 /* ComputedPropertyName */); } } function addInstanceMethodStatements(statements, methods, receiver) { @@ -94330,10 +95368,10 @@ function transformClassFields(context) { visitNode(node.argumentExpression, visitor, isExpression) ); } - function getPropertyNameExpressionIfNeeded(name, shouldHoist, captureReferencedName) { + function getPropertyNameExpressionIfNeeded(name, shouldHoist) { if (isComputedPropertyName(name)) { const cacheAssignment = findComputedPropertyNameCacheAssignment(name); - let expression = visitNode(name.expression, visitor, isExpression); + const expression = visitNode(name.expression, visitor, isExpression); const innerExpression = skipPartiallyEmittedExpressions(expression); const inlinable = isSimpleInlineableExpression(innerExpression); const alreadyTransformed = !!cacheAssignment || isAssignmentExpression(innerExpression) && isGeneratedIdentifier(innerExpression.left); @@ -94344,9 +95382,6 @@ function transformClassFields(context) { } else { hoistVariableDeclaration(generatedName); } - if (captureReferencedName) { - expression = emitHelpers().createPropKeyHelper(expression); - } return factory2.createAssignment(generatedName, expression); } return inlinable || isIdentifier(innerExpression) ? void 0 : expression; @@ -94542,7 +95577,7 @@ function transformClassFields(context) { } if (isPrivateIdentifierPropertyAccessExpression(node)) { return wrapPrivateIdentifierForDestructuringTarget(node); - } else if (shouldTransformSuperInStaticInitializers && isSuperProperty(node) && currentStaticPropertyDeclarationOrStaticBlock && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + } else if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { const { classConstructor, superClassReference, facts } = lexicalEnvironment.data; if (facts & 1 /* ClassWasDecorated */) { return visitInvalidSuperProperty(node); @@ -94569,10 +95604,7 @@ function transformClassFields(context) { } function visitAssignmentElement(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const left = visitDestructuringAssignmentTarget(node.left); - const assignedName = getAssignedNameOfIdentifier(node.left, node.right); - const right = visitNode(node.right, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateBinaryExpression(node, left, node.operatorToken, right); + node = transformNamedEvaluation(context, node); } if (isAssignmentExpression( node, @@ -94619,9 +95651,7 @@ function transformClassFields(context) { } function visitShorthandAssignmentProperty(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.name, node.objectAssignmentInitializer); - const objectAssignmentInitializer = visitNode(node.objectAssignmentInitializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateShorthandPropertyAssignment(node, node.name, objectAssignmentInitializer); + node = transformNamedEvaluation(context, node); } return visitEachChild(node, visitor, context); } @@ -94671,16 +95701,16 @@ function transformClassFields(context) { return; } switch (node.kind) { - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: if (isArrowFunction(original) || getEmitFlags(node) & 524288 /* AsyncFunctionBody */) { break; } - case 261 /* FunctionDeclaration */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 173 /* MethodDeclaration */: - case 171 /* PropertyDeclaration */: { + case 262 /* FunctionDeclaration */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 172 /* PropertyDeclaration */: { const savedLexicalEnvironment = lexicalEnvironment; const savedPreviousShouldSubstituteThisWithClassThis = previousShouldSubstituteThisWithClassThis; lexicalEnvironment = void 0; @@ -94692,7 +95722,7 @@ function transformClassFields(context) { lexicalEnvironment = savedLexicalEnvironment; return; } - case 166 /* ComputedPropertyName */: { + case 167 /* ComputedPropertyName */: { const savedLexicalEnvironment = lexicalEnvironment; const savedShouldSubstituteThisWithClassThis = shouldSubstituteThisWithClassThis; lexicalEnvironment = lexicalEnvironment == null ? void 0 : lexicalEnvironment.previous; @@ -94722,11 +95752,8 @@ function transformClassFields(context) { return node; } function substituteThisExpression(node) { - if (enabledSubstitutions & 2 /* ClassStaticThisOrSuperReference */ && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + if (enabledSubstitutions & 2 /* ClassStaticThisOrSuperReference */ && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) && !noSubstitution.has(node)) { const { facts, classConstructor, classThis } = lexicalEnvironment.data; - if (facts & 1 /* ClassWasDecorated */ && legacyDecorators) { - return factory2.createParenthesizedExpression(factory2.createVoidZero()); - } const substituteThis = shouldSubstituteThisWithClassThis ? classThis ?? classConstructor : classConstructor; if (substituteThis) { return setTextRange( @@ -94737,6 +95764,9 @@ function transformClassFields(context) { node ); } + if (facts & 1 /* ClassWasDecorated */ && legacyDecorators) { + return factory2.createParenthesizedExpression(factory2.createVoidZero()); + } } return node; } @@ -94745,7 +95775,7 @@ function transformClassFields(context) { } function trySubstituteClassAlias(node) { if (enabledSubstitutions & 1 /* ClassAliases */) { - if (resolver.getNodeCheckFlags(node) & 2097152 /* ConstructorReferenceInClass */) { + if (resolver.getNodeCheckFlags(node) & 536870912 /* ConstructorReference */) { const declaration = resolver.getReferencedValueDeclaration(node); if (declaration) { const classAlias = classAliases[declaration.id]; @@ -94791,6 +95821,12 @@ function isReservedPrivateName(node) { function isPrivateIdentifierInExpression(node) { return isPrivateIdentifier(node.left) && node.operatorToken.kind === 103 /* InKeyword */; } +function isStaticPropertyDeclaration2(node) { + return isPropertyDeclaration(node) && hasStaticModifier(node); +} +function isStaticPropertyDeclarationOrClassStaticBlock(node) { + return isClassStaticBlockDeclaration(node) || isStaticPropertyDeclaration2(node); +} // src/compiler/transformers/typeSerializer.ts function createRuntimeTypeSerializer(context) { @@ -94826,15 +95862,15 @@ function createRuntimeTypeSerializer(context) { } function serializeTypeOfNode(node) { switch (node.kind) { - case 171 /* PropertyDeclaration */: - case 168 /* Parameter */: + case 172 /* PropertyDeclaration */: + case 169 /* Parameter */: return serializeTypeNode(node.type); - case 177 /* SetAccessor */: - case 176 /* GetAccessor */: + case 178 /* SetAccessor */: + case 177 /* GetAccessor */: return serializeTypeNode(getAccessorTypeNode(node)); - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 173 /* MethodDeclaration */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 174 /* MethodDeclaration */: return factory2.createIdentifier("Function"); default: return factory2.createVoidZero(); @@ -94861,7 +95897,7 @@ function createRuntimeTypeSerializer(context) { return factory2.createArrayLiteralExpression(expressions); } function getParametersOfDecoratedDeclaration(node, container) { - if (container && node.kind === 176 /* GetAccessor */) { + if (container && node.kind === 177 /* GetAccessor */) { const { setAccessor } = getAllAccessorDeclarations(container.members, node); if (setAccessor) { return setAccessor.parameters; @@ -94887,72 +95923,72 @@ function createRuntimeTypeSerializer(context) { case 157 /* UndefinedKeyword */: case 146 /* NeverKeyword */: return factory2.createVoidZero(); - case 183 /* FunctionType */: - case 184 /* ConstructorType */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: return factory2.createIdentifier("Function"); - case 187 /* ArrayType */: - case 188 /* TupleType */: + case 188 /* ArrayType */: + case 189 /* TupleType */: return factory2.createIdentifier("Array"); - case 181 /* TypePredicate */: + case 182 /* TypePredicate */: return node.assertsModifier ? factory2.createVoidZero() : factory2.createIdentifier("Boolean"); case 136 /* BooleanKeyword */: return factory2.createIdentifier("Boolean"); - case 202 /* TemplateLiteralType */: + case 203 /* TemplateLiteralType */: case 154 /* StringKeyword */: return factory2.createIdentifier("String"); case 151 /* ObjectKeyword */: return factory2.createIdentifier("Object"); - case 200 /* LiteralType */: + case 201 /* LiteralType */: return serializeLiteralOfLiteralTypeNode(node.literal); case 150 /* NumberKeyword */: return factory2.createIdentifier("Number"); - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: return getGlobalConstructor("BigInt", 7 /* ES2020 */); case 155 /* SymbolKeyword */: return getGlobalConstructor("Symbol", 2 /* ES2015 */); - case 182 /* TypeReference */: + case 183 /* TypeReference */: return serializeTypeReferenceNode(node); - case 192 /* IntersectionType */: + case 193 /* IntersectionType */: return serializeUnionOrIntersectionConstituents( node.types, /*isIntersection*/ true ); - case 191 /* UnionType */: + case 192 /* UnionType */: return serializeUnionOrIntersectionConstituents( node.types, /*isIntersection*/ false ); - case 193 /* ConditionalType */: + case 194 /* ConditionalType */: return serializeUnionOrIntersectionConstituents( [node.trueType, node.falseType], /*isIntersection*/ false ); - case 197 /* TypeOperator */: + case 198 /* TypeOperator */: if (node.operator === 148 /* ReadonlyKeyword */) { return serializeTypeNode(node.type); } break; - case 185 /* TypeQuery */: - case 198 /* IndexedAccessType */: - case 199 /* MappedType */: - case 186 /* TypeLiteral */: + case 186 /* TypeQuery */: + case 199 /* IndexedAccessType */: + case 200 /* MappedType */: + case 187 /* TypeLiteral */: case 133 /* AnyKeyword */: case 159 /* UnknownKeyword */: - case 196 /* ThisType */: - case 204 /* ImportType */: + case 197 /* ThisType */: + case 205 /* ImportType */: break; - case 318 /* JSDocAllType */: - case 319 /* JSDocUnknownType */: - case 323 /* JSDocFunctionType */: - case 324 /* JSDocVariadicType */: - case 325 /* JSDocNamepathType */: + case 319 /* JSDocAllType */: + case 320 /* JSDocUnknownType */: + case 324 /* JSDocFunctionType */: + case 325 /* JSDocVariadicType */: + case 326 /* JSDocNamepathType */: break; - case 320 /* JSDocNullableType */: - case 321 /* JSDocNonNullableType */: - case 322 /* JSDocOptionalType */: + case 321 /* JSDocNullableType */: + case 322 /* JSDocNonNullableType */: + case 323 /* JSDocOptionalType */: return serializeTypeNode(node.type); default: return Debug.failBadSyntaxKind(node); @@ -94964,7 +96000,7 @@ function createRuntimeTypeSerializer(context) { case 11 /* StringLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: return factory2.createIdentifier("String"); - case 223 /* PrefixUnaryExpression */: { + case 224 /* PrefixUnaryExpression */: { const operand = node.operand; switch (operand.kind) { case 9 /* NumericLiteral */: @@ -95123,7 +96159,7 @@ function createRuntimeTypeSerializer(context) { name.original = void 0; setParent(name, getParseTreeNode(currentLexicalScope)); return name; - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: return serializeQualifiedNameAsExpression(node); } } @@ -95173,23 +96209,23 @@ function transformLegacyDecorators(context) { return node; } switch (node.kind) { - case 169 /* Decorator */: + case 170 /* Decorator */: return void 0; - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return visitClassDeclaration(node); - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return visitClassExpression(node); - case 175 /* Constructor */: + case 176 /* Constructor */: return visitConstructorDeclaration(node); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return visitMethodDeclaration(node); - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return visitSetAccessorDeclaration(node); - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return visitGetAccessorDeclaration(node); - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return visitPropertyDeclaration(node); - case 168 /* Parameter */: + case 169 /* Parameter */: return visitParameterDeclaration(node); default: return visitEachChild(node, visitor, context); @@ -95329,39 +96365,36 @@ function transformLegacyDecorators(context) { ); setOriginalNode(classExpression, node); setTextRange(classExpression, location); + const varInitializer = classAlias && !assignClassAliasInStaticBlock ? factory2.createAssignment(classAlias, classExpression) : classExpression; const varDecl = factory2.createVariableDeclaration( declName, /*exclamationToken*/ void 0, /*type*/ void 0, - classAlias && !assignClassAliasInStaticBlock ? factory2.createAssignment(classAlias, classExpression) : classExpression + varInitializer ); setOriginalNode(varDecl, node); - let varModifiers; - if (isExport && !isDefault) { - varModifiers = factory2.createModifiersFromModifierFlags(1 /* Export */); - } - const statement = factory2.createVariableStatement( - varModifiers, - factory2.createVariableDeclarationList([ - varDecl - ], 1 /* Let */) + const varDeclList = factory2.createVariableDeclarationList([varDecl], 1 /* Let */); + const varStatement = factory2.createVariableStatement( + /*modifiers*/ + void 0, + varDeclList ); - setOriginalNode(statement, node); - setTextRange(statement, location); - setCommentRange(statement, node); - const statements = [statement]; + setOriginalNode(varStatement, node); + setTextRange(varStatement, location); + setCommentRange(varStatement, node); + const statements = [varStatement]; addRange(statements, decorationStatements); addConstructorDecorationStatement(statements, node); - if (isExport && isDefault) { - statements.push(factory2.createExportAssignment( - /*modifiers*/ - void 0, - /*isExportEquals*/ - false, - declName - )); + if (isExport) { + if (isDefault) { + const exportStatement = factory2.createExportDefault(declName); + statements.push(exportStatement); + } else { + const exportStatement = factory2.createExternalModuleExport(factory2.getDeclarationName(node)); + statements.push(exportStatement); + } } return statements; } @@ -95428,7 +96461,7 @@ function transformLegacyDecorators(context) { ), node); } function visitPropertyDeclaration(node) { - if (node.flags & 16777216 /* Ambient */ || hasSyntacticModifier(node, 2 /* Ambient */)) { + if (node.flags & 33554432 /* Ambient */ || hasSyntacticModifier(node, 2 /* Ambient */)) { return void 0; } return finishClassElement(factory2.updatePropertyDeclaration( @@ -95596,7 +96629,7 @@ function transformLegacyDecorators(context) { } } function getClassAliasIfNeeded(node) { - if (resolver.getNodeCheckFlags(node) & 1048576 /* ClassWithConstructorReference */) { + if (resolver.getNodeCheckFlags(node) & 262144 /* ContainsConstructorReference */) { enableSubstitutionForClassAliases(); const classAlias = factory2.createUniqueName(node.name && !isGeneratedIdentifier(node.name) ? idText(node.name) : "default"); classAliases[getOriginalNodeId(node)] = classAlias; @@ -95629,7 +96662,7 @@ function transformLegacyDecorators(context) { } function trySubstituteClassAlias(node) { if (classAliases) { - if (resolver.getNodeCheckFlags(node) & 2097152 /* ConstructorReferenceInClass */) { + if (resolver.getNodeCheckFlags(node) & 536870912 /* ConstructorReference */) { const declaration = resolver.getReferencedValueDeclaration(node); if (declaration) { const classAlias = classAliases[declaration.id]; @@ -95655,8 +96688,7 @@ function transformESDecorators(context) { endLexicalEnvironment, hoistVariableDeclaration } = context; - const compilerOptions = context.getCompilerOptions(); - const languageVersion = getEmitScriptTarget(compilerOptions); + const languageVersion = getEmitScriptTarget(context.getCompilerOptions()); let top; let classInfo; let classThis; @@ -95768,86 +96800,78 @@ function transformESDecorators(context) { return node; } switch (node.kind) { - case 169 /* Decorator */: + case 170 /* Decorator */: return Debug.fail("Use `modifierVisitor` instead."); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return visitClassDeclaration(node); - case 230 /* ClassExpression */: - return visitClassExpression( - node, - /*referencedName*/ - void 0 - ); - case 175 /* Constructor */: - case 171 /* PropertyDeclaration */: - case 174 /* ClassStaticBlockDeclaration */: + case 231 /* ClassExpression */: + return visitClassExpression(node); + case 176 /* Constructor */: + case 172 /* PropertyDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: return Debug.fail("Not supported outside of a class. Use 'classElementVisitor' instead."); - case 168 /* Parameter */: + case 169 /* Parameter */: return visitParameterDeclaration(node); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return visitBinaryExpression( node, /*discarded*/ false ); - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return visitPropertyAssignment(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return visitVariableDeclaration(node); - case 207 /* BindingElement */: + case 208 /* BindingElement */: return visitBindingElement(node); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return visitExportAssignment(node); case 110 /* ThisKeyword */: return visitThisExpression(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement(node); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return visitExpressionStatement(node); - case 360 /* CommaListExpression */: + case 361 /* CommaListExpression */: return visitCommaListExpression( node, /*discarded*/ false ); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression( node, /*discarded*/ - false, - /*referencedName*/ - void 0 + false ); - case 359 /* PartiallyEmittedExpression */: + case 360 /* PartiallyEmittedExpression */: return visitPartiallyEmittedExpression( node, /*discarded*/ - false, - /*referencedName*/ - void 0 + false ); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return visitCallExpression(node); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return visitTaggedTemplateExpression(node); - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return visitPreOrPostfixUnaryExpression( node, /*discarded*/ false ); - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return visitPropertyAccessExpression(node); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return visitElementAccessExpression(node); - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: return visitComputedPropertyName(node); - case 173 /* MethodDeclaration */: - case 177 /* SetAccessor */: - case 176 /* GetAccessor */: - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: { + case 174 /* MethodDeclaration */: + case 178 /* SetAccessor */: + case 177 /* GetAccessor */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: { enterOther(); const result = visitEachChild(node, fallbackVisitor, context); exitOther(); @@ -95859,7 +96883,7 @@ function transformESDecorators(context) { } function fallbackVisitor(node) { switch (node.kind) { - case 169 /* Decorator */: + case 170 /* Decorator */: return void 0; default: return visitor(node); @@ -95867,7 +96891,7 @@ function transformESDecorators(context) { } function modifierVisitor(node) { switch (node.kind) { - case 169 /* Decorator */: + case 170 /* Decorator */: return void 0; default: return node; @@ -95875,72 +96899,48 @@ function transformESDecorators(context) { } function classElementVisitor(node) { switch (node.kind) { - case 175 /* Constructor */: + case 176 /* Constructor */: return visitConstructorDeclaration(node); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return visitMethodDeclaration(node); - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return visitGetAccessorDeclaration(node); - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return visitSetAccessorDeclaration(node); - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return visitPropertyDeclaration(node); - case 174 /* ClassStaticBlockDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: return visitClassStaticBlockDeclaration(node); default: return visitor(node); } } - function namedEvaluationVisitor(node, referencedName) { - switch (node.kind) { - case 359 /* PartiallyEmittedExpression */: - return visitPartiallyEmittedExpression( - node, - /*discarded*/ - false, - referencedName - ); - case 216 /* ParenthesizedExpression */: - return visitParenthesizedExpression( - node, - /*discarded*/ - false, - referencedName - ); - case 230 /* ClassExpression */: - return visitClassExpression(node, referencedName); - default: - return visitor(node); - } - } function discardedValueVisitor(node) { switch (node.kind) { - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return visitPreOrPostfixUnaryExpression( node, /*discarded*/ true ); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return visitBinaryExpression( node, /*discarded*/ true ); - case 360 /* CommaListExpression */: + case 361 /* CommaListExpression */: return visitCommaListExpression( node, /*discarded*/ true ); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression( node, /*discarded*/ - true, - /*referencedName*/ - void 0 + true ); default: return visitor(node); @@ -95978,6 +96978,7 @@ function transformESDecorators(context) { ); } function createClassInfo(node) { + const metadataReference = factory2.createUniqueName("_metadata", 16 /* Optimistic */ | 32 /* FileLevel */); let instanceExtraInitializersName; let staticExtraInitializersName; let hasStaticInitializers = false; @@ -95991,13 +96992,15 @@ function transformESDecorators(context) { node )) { if (hasStaticModifier(member)) { - staticExtraInitializersName ?? (staticExtraInitializersName = factory2.createUniqueName("_staticExtraInitializers", 16 /* Optimistic */)); + staticExtraInitializersName ?? (staticExtraInitializersName = factory2.createUniqueName("_staticExtraInitializers", 16 /* Optimistic */ | 32 /* FileLevel */)); } else { - instanceExtraInitializersName ?? (instanceExtraInitializersName = factory2.createUniqueName("_instanceExtraInitializers", 16 /* Optimistic */)); + instanceExtraInitializersName ?? (instanceExtraInitializersName = factory2.createUniqueName("_instanceExtraInitializers", 16 /* Optimistic */ | 32 /* FileLevel */)); } } if (isClassStaticBlockDeclaration(member)) { - hasStaticInitializers = true; + if (!isClassNamedEvaluationHelperBlock(member)) { + hasStaticInitializers = true; + } } else if (isPropertyDeclaration(member)) { if (hasStaticModifier(member)) { hasStaticInitializers || (hasStaticInitializers = !!member.initializer || hasDecorators(member)); @@ -96014,6 +97017,7 @@ function transformESDecorators(context) { } return { class: node, + metadataReference, instanceExtraInitializersName, staticExtraInitializersName, hasStaticInitializers, @@ -96021,19 +97025,15 @@ function transformESDecorators(context) { hasStaticPrivateClassElements }; } - function containsLexicalSuperInStaticInitializer(node) { - for (const member of node.members) { - if (isClassStaticBlockDeclaration(member) || isPropertyDeclaration(member) && hasStaticModifier(member)) { - if (member.transformFlags & 134217728 /* ContainsLexicalSuper */) { - return true; - } - } - } - return false; - } - function transformClassLike(node, className) { - var _a; + function transformClassLike(node) { startLexicalEnvironment(); + if (!classHasDeclaredOrExplicitlyAssignedName(node) && classOrConstructorParameterIsDecorated( + /*useLegacyDecorators*/ + false, + node + )) { + node = injectClassNamedEvaluationHelperBlockIfMissing(context, node, factory2.createStringLiteral("")); + } const classReference = factory2.getLocalName( node, /*allowComments*/ @@ -96052,10 +97052,11 @@ function transformESDecorators(context) { let shouldTransformPrivateStaticElementsInClass = false; const classDecorators = transformAllDecoratorsOfDeclaration(getAllDecoratorsOfClass(node)); if (classDecorators) { - classInfo2.classDecoratorsName = factory2.createUniqueName("_classDecorators", 16 /* Optimistic */); - classInfo2.classDescriptorName = factory2.createUniqueName("_classDescriptor", 16 /* Optimistic */); - classInfo2.classExtraInitializersName = factory2.createUniqueName("_classExtraInitializers", 16 /* Optimistic */); - classInfo2.classThis = factory2.createUniqueName("_classThis", 16 /* Optimistic */); + classInfo2.classDecoratorsName = factory2.createUniqueName("_classDecorators", 16 /* Optimistic */ | 32 /* FileLevel */); + classInfo2.classDescriptorName = factory2.createUniqueName("_classDescriptor", 16 /* Optimistic */ | 32 /* FileLevel */); + classInfo2.classExtraInitializersName = factory2.createUniqueName("_classExtraInitializers", 16 /* Optimistic */ | 32 /* FileLevel */); + const needsUniqueClassThis = some(node.members, (member) => (isPrivateIdentifierClassElementDeclaration(member) || isAutoAccessorPropertyDeclaration(member)) && hasStaticModifier(member)); + classInfo2.classThis = factory2.createUniqueName("_classThis", needsUniqueClassThis ? 16 /* Optimistic */ | 8 /* ReservedInNestedScopes */ : 16 /* Optimistic */ | 32 /* FileLevel */); classDefinitionStatements.push( createLet(classInfo2.classDecoratorsName, factory2.createArrayLiteralExpression(classDecorators)), createLet(classInfo2.classDescriptorName), @@ -96067,34 +97068,26 @@ function transformESDecorators(context) { shouldTransformPrivateStaticElementsInFile = true; } } - if (classDecorators && containsLexicalSuperInStaticInitializer(node)) { - const extendsClause = getHeritageClause(node.heritageClauses, 96 /* ExtendsKeyword */); - const extendsElement = extendsClause && firstOrUndefined(extendsClause.types); - const extendsExpression = extendsElement && visitNode(extendsElement.expression, visitor, isExpression); - if (extendsExpression) { - classInfo2.classSuper = factory2.createUniqueName("_classSuper", 16 /* Optimistic */); - const unwrapped = skipOuterExpressions(extendsExpression); - const safeExtendsExpression = isClassExpression(unwrapped) && !unwrapped.name || isFunctionExpression(unwrapped) && !unwrapped.name || isArrowFunction(unwrapped) ? factory2.createComma(factory2.createNumericLiteral(0), extendsExpression) : extendsExpression; - classDefinitionStatements.push(createLet(classInfo2.classSuper, safeExtendsExpression)); - const updatedExtendsElement = factory2.updateExpressionWithTypeArguments( - extendsElement, - classInfo2.classSuper, - /*typeArguments*/ - void 0 - ); - const updatedExtendsClause = factory2.updateHeritageClause(extendsClause, [updatedExtendsElement]); - heritageClauses = factory2.createNodeArray([updatedExtendsClause]); - } - } else { - heritageClauses = visitNodes2(node.heritageClauses, visitor, isHeritageClause); + const extendsClause = getHeritageClause(node.heritageClauses, 96 /* ExtendsKeyword */); + const extendsElement = extendsClause && firstOrUndefined(extendsClause.types); + const extendsExpression = extendsElement && visitNode(extendsElement.expression, visitor, isExpression); + if (extendsExpression) { + classInfo2.classSuper = factory2.createUniqueName("_classSuper", 16 /* Optimistic */ | 32 /* FileLevel */); + const unwrapped = skipOuterExpressions(extendsExpression); + const safeExtendsExpression = isClassExpression(unwrapped) && !unwrapped.name || isFunctionExpression(unwrapped) && !unwrapped.name || isArrowFunction(unwrapped) ? factory2.createComma(factory2.createNumericLiteral(0), extendsExpression) : extendsExpression; + classDefinitionStatements.push(createLet(classInfo2.classSuper, safeExtendsExpression)); + const updatedExtendsElement = factory2.updateExpressionWithTypeArguments( + extendsElement, + classInfo2.classSuper, + /*typeArguments*/ + void 0 + ); + const updatedExtendsClause = factory2.updateHeritageClause(extendsClause, [updatedExtendsElement]); + heritageClauses = factory2.createNodeArray([updatedExtendsClause]); } const renamedClassThis = classInfo2.classThis ?? factory2.createThis(); - const needsSetNameHelper = !((_a = getOriginalNode(node, isClassLike)) == null ? void 0 : _a.name) && (classDecorators || !isStringLiteral(className) || !isEmptyStringLiteral(className)); - if (needsSetNameHelper) { - const setNameExpr = emitHelpers().createSetFunctionNameHelper(factory2.createThis(), className); - leadingBlockStatements = append(leadingBlockStatements, factory2.createExpressionStatement(setNameExpr)); - } enterClass(classInfo2); + leadingBlockStatements = append(leadingBlockStatements, createMetadata(classInfo2.metadataReference, classInfo2.classSuper)); let members = visitNodes2(node.members, classElementVisitor, isClassElement); if (pendingExpressions) { let outerThis; @@ -96192,15 +97185,15 @@ function transformESDecorators(context) { leadingBlockStatements = addRange(leadingBlockStatements, classInfo2.nonStaticFieldDecorationStatements); if (classInfo2.classDescriptorName && classInfo2.classDecoratorsName && classInfo2.classExtraInitializersName && classInfo2.classThis) { leadingBlockStatements ?? (leadingBlockStatements = []); - const valueProperty = factory2.createPropertyAssignment("value", factory2.createThis()); + const valueProperty = factory2.createPropertyAssignment("value", renamedClassThis); const classDescriptor = factory2.createObjectLiteralExpression([valueProperty]); const classDescriptorAssignment = factory2.createAssignment(classInfo2.classDescriptorName, classDescriptor); - const classNameReference = factory2.createPropertyAccessExpression(factory2.createThis(), "name"); + const classNameReference = factory2.createPropertyAccessExpression(renamedClassThis, "name"); const esDecorateHelper2 = emitHelpers().createESDecorateHelper( factory2.createNull(), classDescriptorAssignment, classInfo2.classDecoratorsName, - { kind: "class", name: classNameReference }, + { kind: "class", name: classNameReference, metadata: classInfo2.metadataReference }, factory2.createNull(), classInfo2.classExtraInitializersName ); @@ -96212,6 +97205,7 @@ function transformESDecorators(context) { const classReferenceAssignment = factory2.createAssignment(classReference, classThisAssignment); leadingBlockStatements.push(factory2.createExpressionStatement(classReferenceAssignment)); } + leadingBlockStatements.push(createSymbolMetadata(renamedClassThis, classInfo2.metadataReference)); if (classInfo2.staticExtraInitializersName) { const runStaticInitializersHelper = emitHelpers().createRunInitializersHelper(renamedClassThis, classInfo2.staticExtraInitializersName); const runStaticInitializersStatement = factory2.createExpressionStatement(runStaticInitializersHelper); @@ -96228,32 +97222,35 @@ function transformESDecorators(context) { addRange(leadingBlockStatements, trailingBlockStatements); trailingBlockStatements = void 0; } - let newMembers = members; - if (leadingBlockStatements) { - const leadingStaticBlockBody = factory2.createBlock( - leadingBlockStatements, - /*multiLine*/ - true - ); - const leadingStaticBlock = factory2.createClassStaticBlockDeclaration(leadingStaticBlockBody); - if (shouldTransformPrivateStaticElementsInClass) { - setInternalEmitFlags(leadingStaticBlock, 32 /* TransformPrivateStaticElements */); - } - newMembers = [leadingStaticBlock, ...newMembers]; - } - if (syntheticConstructor) { - newMembers = [...newMembers, syntheticConstructor]; - } - if (trailingBlockStatements) { - const trailingStaticBlockBody = factory2.createBlock( - trailingBlockStatements, - /*multiLine*/ - true - ); - const trailingStaticBlock = factory2.createClassStaticBlockDeclaration(trailingStaticBlockBody); - newMembers = [...newMembers, trailingStaticBlock]; + const leadingStaticBlock = leadingBlockStatements && factory2.createClassStaticBlockDeclaration(factory2.createBlock( + leadingBlockStatements, + /*multiLine*/ + true + )); + if (leadingStaticBlock && shouldTransformPrivateStaticElementsInClass) { + setInternalEmitFlags(leadingStaticBlock, 32 /* TransformPrivateStaticElements */); } - if (newMembers !== members) { + const trailingStaticBlock = trailingBlockStatements && factory2.createClassStaticBlockDeclaration(factory2.createBlock( + trailingBlockStatements, + /*multiLine*/ + true + )); + if (leadingStaticBlock || syntheticConstructor || trailingStaticBlock) { + const newMembers = []; + const existingNamedEvaluationHelperBlockIndex = members.findIndex(isClassNamedEvaluationHelperBlock); + if (leadingStaticBlock) { + addRange(newMembers, members, 0, existingNamedEvaluationHelperBlockIndex + 1); + newMembers.push(leadingStaticBlock); + addRange(newMembers, members, existingNamedEvaluationHelperBlockIndex + 1); + } else { + addRange(newMembers, members); + } + if (syntheticConstructor) { + newMembers.push(syntheticConstructor); + } + if (trailingStaticBlock) { + newMembers.push(trailingStaticBlock); + } members = setTextRange(factory2.createNodeArray(newMembers), members); } const lexicalEnvironment = endLexicalEnvironment(); @@ -96269,6 +97266,9 @@ function transformESDecorators(context) { heritageClauses, members ); + if (classInfo2.classThis) { + classExpression = injectClassThisAssignmentIfMissing(factory2, classExpression, classInfo2.classThis); + } const classReferenceDeclaration = factory2.createVariableDeclaration( classReference, /*exclamationToken*/ @@ -96308,7 +97308,6 @@ function transformESDecorators(context) { } } setOriginalNode(classExpression, node); - getOrCreateEmitNode(classExpression).classThis = classInfo2.classThis; return factory2.createImmediatelyInvokedArrowFunction(factory2.mergeLexicalEnvironment(classDefinitionStatements, lexicalEnvironment)); } function isDecoratedClassLike(node) { @@ -96324,26 +97323,51 @@ function transformESDecorators(context) { } function visitClassDeclaration(node) { if (isDecoratedClassLike(node)) { - if (hasSyntacticModifier(node, 1 /* Export */) && hasSyntacticModifier(node, 1024 /* Default */)) { - const originalClass = getOriginalNode(node, isClassLike) ?? node; - const className = originalClass.name ? factory2.createStringLiteralFromNode(originalClass.name) : factory2.createStringLiteral("default"); - const iife = transformClassLike(node, className); - const statement = factory2.createExportDefault(iife); - setOriginalNode(statement, node); - setCommentRange(statement, getCommentRange(node)); - setSourceMapRange(statement, moveRangePastDecorators(node)); - return statement; + const statements = []; + const originalClass = getOriginalNode(node, isClassLike) ?? node; + const className = originalClass.name ? factory2.createStringLiteralFromNode(originalClass.name) : factory2.createStringLiteral("default"); + const isExport = hasSyntacticModifier(node, 1 /* Export */); + const isDefault = hasSyntacticModifier(node, 1024 /* Default */); + if (!node.name) { + node = injectClassNamedEvaluationHelperBlockIfMissing(context, node, className); + } + if (isExport && isDefault) { + const iife = transformClassLike(node); + if (node.name) { + const varDecl = factory2.createVariableDeclaration( + factory2.getLocalName(node), + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + iife + ); + setOriginalNode(varDecl, node); + const varDecls = factory2.createVariableDeclarationList([varDecl], 1 /* Let */); + const varStatement = factory2.createVariableStatement( + /*modifiers*/ + void 0, + varDecls + ); + statements.push(varStatement); + const exportStatement = factory2.createExportDefault(factory2.getDeclarationName(node)); + setOriginalNode(exportStatement, node); + setCommentRange(exportStatement, getCommentRange(node)); + setSourceMapRange(exportStatement, moveRangePastDecorators(node)); + statements.push(exportStatement); + } else { + const exportStatement = factory2.createExportDefault(iife); + setOriginalNode(exportStatement, node); + setCommentRange(exportStatement, getCommentRange(node)); + setSourceMapRange(exportStatement, moveRangePastDecorators(node)); + statements.push(exportStatement); + } } else { Debug.assertIsDefined(node.name, "A class declaration that is not a default export must have a name."); - const iife = transformClassLike(node, factory2.createStringLiteralFromNode(node.name)); - const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); - const declName = languageVersion <= 2 /* ES2015 */ ? factory2.getInternalName( - node, - /*allowComments*/ - false, - /*allowSourceMaps*/ - true - ) : factory2.getLocalName( + const iife = transformClassLike(node); + const modifierVisitorNoExport = isExport ? (node2) => isExportModifier(node2) ? void 0 : modifierVisitor(node2) : modifierVisitor; + const modifiers = visitNodes2(node.modifiers, modifierVisitorNoExport, isModifier); + const declName = factory2.getLocalName( node, /*allowComments*/ false, @@ -96360,11 +97384,17 @@ function transformESDecorators(context) { ); setOriginalNode(varDecl, node); const varDecls = factory2.createVariableDeclarationList([varDecl], 1 /* Let */); - const statement = factory2.createVariableStatement(modifiers, varDecls); - setOriginalNode(statement, node); - setCommentRange(statement, getCommentRange(node)); - return statement; + const varStatement = factory2.createVariableStatement(modifiers, varDecls); + setOriginalNode(varStatement, node); + setCommentRange(varStatement, getCommentRange(node)); + statements.push(varStatement); + if (isExport) { + const exportStatement = factory2.createExternalModuleExport(declName); + setOriginalNode(exportStatement, node); + statements.push(exportStatement); + } } + return singleOrMany(statements); } else { const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); const heritageClauses = visitNodes2(node.heritageClauses, visitor, isHeritageClause); @@ -96385,10 +97415,9 @@ function transformESDecorators(context) { ); } } - function visitClassExpression(node, referencedName) { + function visitClassExpression(node) { if (isDecoratedClassLike(node)) { - const className = node.name ? factory2.createStringLiteralFromNode(node.name) : referencedName ?? factory2.createStringLiteral(""); - const iife = transformClassLike(node, className); + const iife = transformClassLike(node); setOriginalNode(iife, node); return iife; } else { @@ -96425,6 +97454,35 @@ function transformESDecorators(context) { return statements; } } + function transformConstructorBodyWorker(statementsOut, statementsIn, statementOffset, superPath, superPathDepth, initializerStatements) { + const superStatementIndex = superPath[superPathDepth]; + const superStatement = statementsIn[superStatementIndex]; + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, statementOffset, superStatementIndex - statementOffset)); + if (isTryStatement(superStatement)) { + const tryBlockStatements = []; + transformConstructorBodyWorker( + tryBlockStatements, + superStatement.tryBlock.statements, + /*statementOffset*/ + 0, + superPath, + superPathDepth + 1, + initializerStatements + ); + const tryBlockStatementsArray = factory2.createNodeArray(tryBlockStatements); + setTextRange(tryBlockStatementsArray, superStatement.tryBlock.statements); + statementsOut.push(factory2.updateTryStatement( + superStatement, + factory2.updateBlock(superStatement.tryBlock, tryBlockStatements), + visitNode(superStatement.catchClause, visitor, isCatchClause), + visitNode(superStatement.finallyBlock, visitor, isBlock) + )); + } else { + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex, 1)); + addRange(statementsOut, initializerStatements); + } + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex + 1)); + } function visitConstructorDeclaration(node) { enterClassElement(node); const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); @@ -96441,11 +97499,9 @@ function transformESDecorators(context) { false, visitor ); - const superStatementIndex = findSuperStatementIndex(node.body.statements, nonPrologueStart); - if (superStatementIndex >= 0) { - addRange(statements, visitNodes2(node.body.statements, visitor, isStatement, nonPrologueStart, superStatementIndex + 1 - nonPrologueStart)); - addRange(statements, initializerStatements); - addRange(statements, visitNodes2(node.body.statements, visitor, isStatement, superStatementIndex + 1)); + const superStatementIndices = findSuperStatementIndexPath(node.body.statements, nonPrologueStart); + if (superStatementIndices.length > 0) { + transformConstructorBodyWorker(statements, node.body.statements, nonPrologueStart, superStatementIndices, 0, initializerStatements); } else { addRange(statements, initializerStatements); addRange(statements, visitNodes2(node.body.statements, visitor, isStatement)); @@ -96470,7 +97526,7 @@ function transformESDecorators(context) { } return updated; } - function partialTransformClassElement(member, useNamedEvaluation, classInfo2, createDescriptor) { + function partialTransformClassElement(member, classInfo2, createDescriptor) { let referencedName; let name; let initializersName; @@ -96479,11 +97535,7 @@ function transformESDecorators(context) { if (!classInfo2) { const modifiers2 = visitNodes2(member.modifiers, modifierVisitor, isModifier); enterName(); - if (useNamedEvaluation) { - ({ referencedName, name } = visitReferencedPropertyName(member.name)); - } else { - name = visitPropertyName(member.name); - } + name = visitPropertyName(member.name); exitName(); return { modifiers: modifiers2, referencedName, name, initializersName, descriptorName, thisArg }; } @@ -96532,9 +97584,10 @@ function transformESDecorators(context) { get: isPropertyDeclaration(member) || isGetAccessorDeclaration(member) || isMethodDeclaration(member), // 3. If _kind_ is ~field~, ~accessor~, or ~setter~, then ... set: isPropertyDeclaration(member) || isSetAccessorDeclaration(member) - } + }, + metadata: classInfo2.metadataReference }; - const extraInitializers = isStatic(member) ? classInfo2.staticExtraInitializersName ?? (classInfo2.staticExtraInitializersName = factory2.createUniqueName("_staticExtraInitializers", 16 /* Optimistic */)) : classInfo2.instanceExtraInitializersName ?? (classInfo2.instanceExtraInitializersName = factory2.createUniqueName("_instanceExtraInitializers", 16 /* Optimistic */)); + const extraInitializers = isStatic(member) ? classInfo2.staticExtraInitializersName ?? (classInfo2.staticExtraInitializersName = factory2.createUniqueName("_staticExtraInitializers", 16 /* Optimistic */ | 32 /* FileLevel */)) : classInfo2.instanceExtraInitializersName ?? (classInfo2.instanceExtraInitializersName = factory2.createUniqueName("_instanceExtraInitializers", 16 /* Optimistic */ | 32 /* FileLevel */)); if (isMethodOrAccessor(member)) { let descriptor; if (isPrivateIdentifierClassElementDeclaration(member) && createDescriptor) { @@ -96576,11 +97629,7 @@ function transformESDecorators(context) { } if (name === void 0) { enterName(); - if (useNamedEvaluation) { - ({ referencedName, name } = visitReferencedPropertyName(member.name)); - } else { - name = visitPropertyName(member.name); - } + name = visitPropertyName(member.name); exitName(); } if (!some(modifiers) && (isMethodDeclaration(member) || isPropertyDeclaration(member))) { @@ -96590,13 +97639,7 @@ function transformESDecorators(context) { } function visitMethodDeclaration(node) { enterClassElement(node); - const { modifiers, name, descriptorName } = partialTransformClassElement( - node, - /*useNamedEvaluation*/ - false, - classInfo, - createMethodDescriptorObject - ); + const { modifiers, name, descriptorName } = partialTransformClassElement(node, classInfo, createMethodDescriptorObject); if (descriptorName) { exitClassElement(); return finishClassElement(createMethodDescriptorForwarder(modifiers, name, descriptorName), node); @@ -96622,13 +97665,7 @@ function transformESDecorators(context) { } function visitGetAccessorDeclaration(node) { enterClassElement(node); - const { modifiers, name, descriptorName } = partialTransformClassElement( - node, - /*useNamedEvaluation*/ - false, - classInfo, - createGetAccessorDescriptorObject - ); + const { modifiers, name, descriptorName } = partialTransformClassElement(node, classInfo, createGetAccessorDescriptorObject); if (descriptorName) { exitClassElement(); return finishClassElement(createGetAccessorDescriptorForwarder(modifiers, name, descriptorName), node); @@ -96649,13 +97686,7 @@ function transformESDecorators(context) { } function visitSetAccessorDeclaration(node) { enterClassElement(node); - const { modifiers, name, descriptorName } = partialTransformClassElement( - node, - /*useNamedEvaluation*/ - false, - classInfo, - createSetAccessorDescriptorObject - ); + const { modifiers, name, descriptorName } = partialTransformClassElement(node, classInfo, createSetAccessorDescriptorObject); if (descriptorName) { exitClassElement(); return finishClassElement(createSetAccessorDescriptorForwarder(modifiers, name, descriptorName), node); @@ -96668,19 +97699,31 @@ function transformESDecorators(context) { } function visitClassStaticBlockDeclaration(node) { enterClassElement(node); - if (classInfo) - classInfo.hasStaticInitializers = true; - const result = visitEachChild(node, visitor, context); + let result; + if (isClassNamedEvaluationHelperBlock(node)) { + result = visitEachChild(node, visitor, context); + } else if (isClassThisAssignmentBlock(node)) { + const savedClassThis = classThis; + classThis = void 0; + result = visitEachChild(node, visitor, context); + classThis = savedClassThis; + } else { + if (classInfo) + classInfo.hasStaticInitializers = true; + result = visitEachChild(node, visitor, context); + } exitClassElement(); return result; } function visitPropertyDeclaration(node) { + if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.initializer)); + } enterClassElement(node); Debug.assert(!isAmbientPropertyDeclaration(node), "Not yet implemented."); - const useNamedEvaluation = isNamedEvaluation(node, isAnonymousClassNeedingAssignedName); - const { modifiers, name, referencedName, initializersName, descriptorName, thisArg } = partialTransformClassElement(node, useNamedEvaluation, classInfo, hasAccessorModifier(node) ? createAccessorPropertyDescriptorObject : void 0); + const { modifiers, name, initializersName, descriptorName, thisArg } = partialTransformClassElement(node, classInfo, hasAccessorModifier(node) ? createAccessorPropertyDescriptorObject : void 0); startLexicalEnvironment(); - let initializer = referencedName ? visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, referencedName), isExpression) : visitNode(node.initializer, visitor, isExpression); + let initializer = visitNode(node.initializer, visitor, isExpression); if (initializersName) { initializer = emitHelpers().createRunInitializersHelper( thisArg ?? factory2.createThis(), @@ -96810,38 +97853,21 @@ function transformESDecorators(context) { return visitEachChild(node, visitor, context); } function visitParameterDeclaration(node) { - let updated; if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.name, node.initializer); - const name = visitNode(node.name, visitor, isBindingName); - const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - updated = factory2.updateParameterDeclaration( - node, - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - name, - /*questionToken*/ - void 0, - /*type*/ - void 0, - initializer - ); - } else { - updated = factory2.updateParameterDeclaration( - node, - /*modifiers*/ - void 0, - node.dotDotDotToken, - visitNode(node.name, visitor, isBindingName), - /*questionToken*/ - void 0, - /*type*/ - void 0, - visitNode(node.initializer, visitor, isExpression) - ); + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.initializer)); } + const updated = factory2.updateParameterDeclaration( + node, + /*modifiers*/ + void 0, + node.dotDotDotToken, + visitNode(node.name, visitor, isBindingName), + /*questionToken*/ + void 0, + /*type*/ + void 0, + visitNode(node.initializer, visitor, isExpression) + ); if (updated !== node) { setCommentRange(updated, node); setTextRange(updated, moveRangePastModifiers(node)); @@ -96853,6 +97879,14 @@ function transformESDecorators(context) { function isAnonymousClassNeedingAssignedName(node) { return isClassExpression(node) && !node.name && isDecoratedClassLike(node); } + function canIgnoreEmptyStringLiteralInAssignedName(node) { + const innerExpression = skipOuterExpressions(node); + return isClassExpression(innerExpression) && !innerExpression.name && !classOrConstructorParameterIsDecorated( + /*useLegacyDecorators*/ + false, + innerExpression + ); + } function visitForStatement(node) { return factory2.updateForStatement( node, @@ -96873,10 +97907,8 @@ function transformESDecorators(context) { } if (isAssignmentExpression(node)) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.left, node.right); - const left = visitNode(node.left, visitor, isExpression); - const right = visitNode(node.right, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateBinaryExpression(node, left, node.operatorToken, right); + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.right)); + return visitEachChild(node, visitor, context); } if (isSuperProperty(node.left) && classThis && classSuper) { let setterName = isElementAccessExpression(node.left) ? visitNode(node.left.argumentExpression, visitor, isExpression) : isIdentifier(node.left.name) ? factory2.createStringLiteralFromNode(node.left.name) : void 0; @@ -96996,43 +98028,19 @@ function transformESDecorators(context) { } function visitPropertyAssignment(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const { referencedName, name } = visitReferencedPropertyName(node.name); - const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, referencedName), isExpression); - return factory2.updatePropertyAssignment(node, name, initializer); + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.initializer)); } return visitEachChild(node, visitor, context); } function visitVariableDeclaration(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.name, node.initializer); - const name = visitNode(node.name, visitor, isBindingName); - const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateVariableDeclaration( - node, - name, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - initializer - ); + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.initializer)); } return visitEachChild(node, visitor, context); } function visitBindingElement(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.name, node.initializer); - const propertyName = visitNode(node.propertyName, visitor, isPropertyName); - const name = visitNode(node.name, visitor, isBindingName); - const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateBindingElement( - node, - /*dotDotDotToken*/ - void 0, - propertyName, - name, - initializer - ); + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.initializer)); } return visitEachChild(node, visitor, context); } @@ -97069,14 +98077,11 @@ function transformESDecorators(context) { /*excludeCompoundAssignment*/ true )) { - const assignmentTarget = visitDestructuringAssignmentTarget(node.left); - let initializer; if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.left, node.right); - initializer = visitNode(node.right, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - } else { - initializer = visitNode(node.right, visitor, isExpression); + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.right)); } + const assignmentTarget = visitDestructuringAssignmentTarget(node.left); + const initializer = visitNode(node.right, visitor, isExpression); return factory2.updateBinaryExpression(node, assignmentTarget, node.operatorToken, initializer); } else { return visitDestructuringAssignmentTarget(node); @@ -97115,10 +98120,7 @@ function transformESDecorators(context) { } function visitShorthandAssignmentProperty(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.name, node.objectAssignmentInitializer); - const name = visitNode(node.name, visitor, isIdentifier); - const objectAssignmentInitializer = visitNode(node.objectAssignmentInitializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateShorthandPropertyAssignment(node, name, objectAssignmentInitializer); + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.objectAssignmentInitializer)); } return visitEachChild(node, visitor, context); } @@ -97150,20 +98152,17 @@ function transformESDecorators(context) { } function visitExportAssignment(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const referencedName = factory2.createStringLiteral(node.isExportEquals ? "" : "default"); - const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); - const expression = visitNode(node.expression, (node2) => namedEvaluationVisitor(node2, referencedName), isExpression); - return factory2.updateExportAssignment(node, modifiers, expression); + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.expression)); } return visitEachChild(node, visitor, context); } - function visitParenthesizedExpression(node, discarded, referencedName) { - const visitorFunc = discarded ? discardedValueVisitor : referencedName ? (node2) => namedEvaluationVisitor(node2, referencedName) : visitor; + function visitParenthesizedExpression(node, discarded) { + const visitorFunc = discarded ? discardedValueVisitor : visitor; const expression = visitNode(node.expression, visitorFunc, isExpression); return factory2.updateParenthesizedExpression(node, expression); } - function visitPartiallyEmittedExpression(node, discarded, referencedName) { - const visitorFunc = discarded ? discardedValueVisitor : referencedName ? (node2) => namedEvaluationVisitor(node2, referencedName) : visitor; + function visitPartiallyEmittedExpression(node, discarded) { + const visitorFunc = discarded ? discardedValueVisitor : visitor; const expression = visitNode(node.expression, visitorFunc, isExpression); return factory2.updatePartiallyEmittedExpression(node, expression); } @@ -97191,6 +98190,17 @@ function transformESDecorators(context) { function transformDecorator(decorator) { const expression = visitNode(decorator.expression, visitor, isExpression); setEmitFlags(expression, 3072 /* NoComments */); + const innerExpression = skipOuterExpressions(expression); + if (isAccessExpression(innerExpression)) { + const { target, thisArg } = factory2.createCallBinding( + expression, + hoistVariableDeclaration, + languageVersion, + /*cacheIdentifiers*/ + true + ); + return factory2.restoreOuterExpressions(expression, factory2.createFunctionBindCall(target, thisArg, [])); + } return expression; } function createDescriptorMethod(original, name, modifiers, asteriskToken, kind, parameters, body) { @@ -97376,9 +98386,59 @@ function transformESDecorators(context) { ]) ); } - function getAssignedNameOfIdentifier(name, initializer) { - const originalClass = getOriginalNode(initializer, isClassLike); - return originalClass && !originalClass.name && hasSyntacticModifier(originalClass, 1024 /* Default */) ? factory2.createStringLiteral("default") : factory2.createStringLiteralFromNode(name); + function createMetadata(name, classSuper2) { + const varDecl = factory2.createVariableDeclaration( + name, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + factory2.createConditionalExpression( + factory2.createLogicalAnd( + factory2.createTypeCheck(factory2.createIdentifier("Symbol"), "function"), + factory2.createPropertyAccessExpression(factory2.createIdentifier("Symbol"), "metadata") + ), + factory2.createToken(58 /* QuestionToken */), + factory2.createCallExpression( + factory2.createPropertyAccessExpression(factory2.createIdentifier("Object"), "create"), + /*typeArguments*/ + void 0, + [classSuper2 ? createSymbolMetadataReference(classSuper2) : factory2.createNull()] + ), + factory2.createToken(59 /* ColonToken */), + factory2.createVoidZero() + ) + ); + return factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList([varDecl], 2 /* Const */) + ); + } + function createSymbolMetadata(target, value) { + const defineProperty = factory2.createObjectDefinePropertyCall( + target, + factory2.createPropertyAccessExpression(factory2.createIdentifier("Symbol"), "metadata"), + factory2.createPropertyDescriptor( + { configurable: true, writable: true, enumerable: true, value }, + /*singleLine*/ + true + ) + ); + return setEmitFlags( + factory2.createIfStatement(value, factory2.createExpressionStatement(defineProperty)), + 1 /* SingleLine */ + ); + } + function createSymbolMetadataReference(classSuper2) { + return factory2.createBinaryExpression( + factory2.createElementAccessExpression( + classSuper2, + factory2.createPropertyAccessExpression(factory2.createIdentifier("Symbol"), "metadata") + ), + 61 /* QuestionQuestionToken */, + factory2.createNull() + ); } } @@ -97456,34 +98516,34 @@ function transformES2017(context) { switch (node.kind) { case 134 /* AsyncKeyword */: return void 0; - case 222 /* AwaitExpression */: + case 223 /* AwaitExpression */: return visitAwaitExpression(node); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitMethodDeclaration, node); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitFunctionDeclaration, node); - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitFunctionExpression, node); - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return doWithContext(1 /* NonTopLevel */, visitArrowFunction, node); - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: if (capturedSuperProperties && isPropertyAccessExpression(node) && node.expression.kind === 108 /* SuperKeyword */) { capturedSuperProperties.add(node.name.escapedText); } return visitEachChild(node, visitor, context); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: if (capturedSuperProperties && node.expression.kind === 108 /* SuperKeyword */) { hasSuperElementAccess = true; } return visitEachChild(node, visitor, context); - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitGetAccessorDeclaration, node); - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitSetAccessorDeclaration, node); - case 175 /* Constructor */: + case 176 /* Constructor */: return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitConstructorDeclaration, node); - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitDefault, node); default: return visitEachChild(node, visitor, context); @@ -97492,27 +98552,27 @@ function transformES2017(context) { function asyncBodyVisitor(node) { if (isNodeWithPossibleHoistedDeclaration(node)) { switch (node.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return visitVariableStatementInAsyncBody(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatementInAsyncBody(node); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return visitForInStatementInAsyncBody(node); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return visitForOfStatementInAsyncBody(node); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return visitCatchClauseInAsyncBody(node); - case 240 /* Block */: - case 254 /* SwitchStatement */: - case 268 /* CaseBlock */: - case 295 /* CaseClause */: - case 296 /* DefaultClause */: - case 257 /* TryStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: - case 244 /* IfStatement */: - case 253 /* WithStatement */: - case 255 /* LabeledStatement */: + case 241 /* Block */: + case 255 /* SwitchStatement */: + case 269 /* CaseBlock */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: + case 258 /* TryStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 245 /* IfStatement */: + case 254 /* WithStatement */: + case 256 /* LabeledStatement */: return visitEachChild(node, asyncBodyVisitor, context); default: return Debug.assertNever(node, "Unhandled node."); @@ -97705,7 +98765,7 @@ function transformES2017(context) { } } function isVariableDeclarationListWithCollidingName(node) { - return !!node && isVariableDeclarationList(node) && !(node.flags & 3 /* BlockScoped */) && node.declarations.some(collidesWithParameterName); + return !!node && isVariableDeclarationList(node) && !(node.flags & 7 /* BlockScoped */) && node.declarations.some(collidesWithParameterName); } function visitVariableDeclarationListWithCollidingNames(node, hasReceiver) { hoistVariableDeclarationList(node); @@ -97789,7 +98849,7 @@ function transformES2017(context) { const original = getOriginalNode(node, isFunctionLike); const nodeType = original.type; const promiseConstructor = languageVersion < 2 /* ES2015 */ ? getPromiseConstructor(nodeType) : void 0; - const isArrowFunction2 = node.kind === 218 /* ArrowFunction */; + const isArrowFunction2 = node.kind === 219 /* ArrowFunction */; const hasLexicalArguments = (resolver.getNodeCheckFlags(node) & 512 /* CaptureArguments */) !== 0; const savedEnclosingFunctionParameterNames = enclosingFunctionParameterNames; enclosingFunctionParameterNames = /* @__PURE__ */ new Set(); @@ -97888,15 +98948,15 @@ function transformES2017(context) { function enableSubstitutionForAsyncMethodsWithSuper() { if ((enabledSubstitutions & 1 /* AsyncMethodsWithSuper */) === 0) { enabledSubstitutions |= 1 /* AsyncMethodsWithSuper */; - context.enableSubstitution(212 /* CallExpression */); - context.enableSubstitution(210 /* PropertyAccessExpression */); - context.enableSubstitution(211 /* ElementAccessExpression */); - context.enableEmitNotification(262 /* ClassDeclaration */); - context.enableEmitNotification(173 /* MethodDeclaration */); - context.enableEmitNotification(176 /* GetAccessor */); - context.enableEmitNotification(177 /* SetAccessor */); - context.enableEmitNotification(175 /* Constructor */); - context.enableEmitNotification(242 /* VariableStatement */); + context.enableSubstitution(213 /* CallExpression */); + context.enableSubstitution(211 /* PropertyAccessExpression */); + context.enableSubstitution(212 /* ElementAccessExpression */); + context.enableEmitNotification(263 /* ClassDeclaration */); + context.enableEmitNotification(174 /* MethodDeclaration */); + context.enableEmitNotification(177 /* GetAccessor */); + context.enableEmitNotification(178 /* SetAccessor */); + context.enableEmitNotification(176 /* Constructor */); + context.enableEmitNotification(243 /* VariableStatement */); } } function onEmitNode(hint, node, emitCallback) { @@ -97927,11 +98987,11 @@ function transformES2017(context) { } function substituteExpression(node) { switch (node.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return substitutePropertyAccessExpression(node); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return substituteElementAccessExpression(node); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return substituteCallExpression(node); } return node; @@ -97975,7 +99035,7 @@ function transformES2017(context) { } function isSuperContainer(node) { const kind = node.kind; - return kind === 262 /* ClassDeclaration */ || kind === 175 /* Constructor */ || kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */; + return kind === 263 /* ClassDeclaration */ || kind === 176 /* Constructor */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; } function createSuperElementAccessInAsyncMethod(argumentExpression, location) { if (enclosingSuperContainerFlags & 256 /* MethodWithSuperPropertyAssignmentInAsync */) { @@ -98215,119 +99275,119 @@ function transformES2018(context) { return node; } switch (node.kind) { - case 222 /* AwaitExpression */: + case 223 /* AwaitExpression */: return visitAwaitExpression(node); - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: return visitYieldExpression(node); - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: return visitReturnStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return visitLabeledStatement(node); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return visitObjectLiteralExpression(node); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return visitBinaryExpression(node, expressionResultIsUnused2); - case 360 /* CommaListExpression */: + case 361 /* CommaListExpression */: return visitCommaListExpression(node, expressionResultIsUnused2); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return visitCatchClause(node); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return visitVariableStatement(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return visitVariableDeclaration(node); - case 245 /* DoStatement */: - case 246 /* WhileStatement */: - case 248 /* ForInStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 249 /* ForInStatement */: return doWithHierarchyFacts( visitDefault, node, 0 /* IterationStatementExcludes */, 2 /* IterationStatementIncludes */ ); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return visitForOfStatement( node, /*outermostLabeledStatement*/ void 0 ); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return doWithHierarchyFacts( visitForStatement, node, 0 /* IterationStatementExcludes */, 2 /* IterationStatementIncludes */ ); - case 221 /* VoidExpression */: + case 222 /* VoidExpression */: return visitVoidExpression(node); - case 175 /* Constructor */: + case 176 /* Constructor */: return doWithHierarchyFacts( visitConstructorDeclaration, node, 2 /* ClassOrFunctionExcludes */, 1 /* ClassOrFunctionIncludes */ ); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return doWithHierarchyFacts( visitMethodDeclaration, node, 2 /* ClassOrFunctionExcludes */, 1 /* ClassOrFunctionIncludes */ ); - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return doWithHierarchyFacts( visitGetAccessorDeclaration, node, 2 /* ClassOrFunctionExcludes */, 1 /* ClassOrFunctionIncludes */ ); - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return doWithHierarchyFacts( visitSetAccessorDeclaration, node, 2 /* ClassOrFunctionExcludes */, 1 /* ClassOrFunctionIncludes */ ); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return doWithHierarchyFacts( visitFunctionDeclaration, node, 2 /* ClassOrFunctionExcludes */, 1 /* ClassOrFunctionIncludes */ ); - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: return doWithHierarchyFacts( visitFunctionExpression, node, 2 /* ClassOrFunctionExcludes */, 1 /* ClassOrFunctionIncludes */ ); - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return doWithHierarchyFacts( visitArrowFunction, node, 2 /* ArrowFunctionExcludes */, 0 /* ArrowFunctionIncludes */ ); - case 168 /* Parameter */: + case 169 /* Parameter */: return visitParameter(node); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return visitExpressionStatement(node); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression(node, expressionResultIsUnused2); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return visitTaggedTemplateExpression(node); - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: if (capturedSuperProperties && isPropertyAccessExpression(node) && node.expression.kind === 108 /* SuperKeyword */) { capturedSuperProperties.add(node.name.escapedText); } return visitEachChild(node, visitor, context); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: if (capturedSuperProperties && node.expression.kind === 108 /* SuperKeyword */) { hasSuperElementAccess = true; } return visitEachChild(node, visitor, context); - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return doWithHierarchyFacts( visitDefault, node, @@ -98412,7 +99472,7 @@ function transformES2018(context) { function visitLabeledStatement(node) { if (enclosingFunctionFlags & 2 /* Async */) { const statement = unwrapInnermostStatementOfLabel(node); - if (statement.kind === 249 /* ForOfStatement */ && statement.awaitModifier) { + if (statement.kind === 250 /* ForOfStatement */ && statement.awaitModifier) { return visitForOfStatement(statement, node); } return factory2.restoreEnclosingLabel(visitNode(statement, visitor, isStatement, factory2.liftToBlock), node); @@ -98423,7 +99483,7 @@ function transformES2018(context) { let chunkObject; const objects = []; for (const e of elements) { - if (e.kind === 304 /* SpreadAssignment */) { + if (e.kind === 305 /* SpreadAssignment */) { if (chunkObject) { objects.push(factory2.createObjectLiteralExpression(chunkObject)); chunkObject = void 0; @@ -98431,7 +99491,7 @@ function transformES2018(context) { const target = e.expression; objects.push(visitNode(target, visitor, isExpression)); } else { - chunkObject = append(chunkObject, e.kind === 302 /* PropertyAssignment */ ? factory2.createPropertyAssignment(e.name, visitNode(e.initializer, visitor, isExpression)) : visitNode(e, visitor, isObjectLiteralElementLike)); + chunkObject = append(chunkObject, e.kind === 303 /* PropertyAssignment */ ? factory2.createPropertyAssignment(e.name, visitNode(e.initializer, visitor, isExpression)) : visitNode(e, visitor, isObjectLiteralElementLike)); } } if (chunkObject) { @@ -98442,7 +99502,7 @@ function transformES2018(context) { function visitObjectLiteralExpression(node) { if (node.transformFlags & 65536 /* ContainsObjectRestOrSpread */) { const objects = chunkObjectLiteralElements(node.properties); - if (objects.length && objects[0].kind !== 209 /* ObjectLiteralExpression */) { + if (objects.length && objects[0].kind !== 210 /* ObjectLiteralExpression */) { objects.unshift(factory2.createObjectLiteralExpression()); } let expression = objects[0]; @@ -99211,15 +100271,15 @@ function transformES2018(context) { function enableSubstitutionForAsyncMethodsWithSuper() { if ((enabledSubstitutions & 1 /* AsyncMethodsWithSuper */) === 0) { enabledSubstitutions |= 1 /* AsyncMethodsWithSuper */; - context.enableSubstitution(212 /* CallExpression */); - context.enableSubstitution(210 /* PropertyAccessExpression */); - context.enableSubstitution(211 /* ElementAccessExpression */); - context.enableEmitNotification(262 /* ClassDeclaration */); - context.enableEmitNotification(173 /* MethodDeclaration */); - context.enableEmitNotification(176 /* GetAccessor */); - context.enableEmitNotification(177 /* SetAccessor */); - context.enableEmitNotification(175 /* Constructor */); - context.enableEmitNotification(242 /* VariableStatement */); + context.enableSubstitution(213 /* CallExpression */); + context.enableSubstitution(211 /* PropertyAccessExpression */); + context.enableSubstitution(212 /* ElementAccessExpression */); + context.enableEmitNotification(263 /* ClassDeclaration */); + context.enableEmitNotification(174 /* MethodDeclaration */); + context.enableEmitNotification(177 /* GetAccessor */); + context.enableEmitNotification(178 /* SetAccessor */); + context.enableEmitNotification(176 /* Constructor */); + context.enableEmitNotification(243 /* VariableStatement */); } } function onEmitNode(hint, node, emitCallback) { @@ -99250,11 +100310,11 @@ function transformES2018(context) { } function substituteExpression(node) { switch (node.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return substitutePropertyAccessExpression(node); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return substituteElementAccessExpression(node); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return substituteCallExpression(node); } return node; @@ -99298,7 +100358,7 @@ function transformES2018(context) { } function isSuperContainer(node) { const kind = node.kind; - return kind === 262 /* ClassDeclaration */ || kind === 175 /* Constructor */ || kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */; + return kind === 263 /* ClassDeclaration */ || kind === 176 /* Constructor */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; } function createSuperElementAccessInAsyncMethod(argumentExpression, location) { if (enclosingSuperContainerFlags & 256 /* MethodWithSuperPropertyAssignmentInAsync */) { @@ -99343,7 +100403,7 @@ function transformES2019(context) { return node; } switch (node.kind) { - case 298 /* CatchClause */: + case 299 /* CatchClause */: return visitCatchClause(node); default: return visitEachChild(node, visitor, context); @@ -99382,7 +100442,7 @@ function transformES2020(context) { return node; } switch (node.kind) { - case 212 /* CallExpression */: { + case 213 /* CallExpression */: { const updated = visitNonOptionalCallExpression( node, /*captureThisArg*/ @@ -99391,8 +100451,8 @@ function transformES2020(context) { Debug.assertNotNode(updated, isSyntheticReference); return updated; } - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: if (isOptionalChain(node)) { const updated = visitOptionalExpression( node, @@ -99405,12 +100465,12 @@ function transformES2020(context) { return updated; } return visitEachChild(node, visitor, context); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: if (node.operatorToken.kind === 61 /* QuestionQuestionToken */) { return transformNullishCoalescingExpression(node); } return visitEachChild(node, visitor, context); - case 219 /* DeleteExpression */: + case 220 /* DeleteExpression */: return visitDeleteExpression(node); default: return visitEachChild(node, visitor, context); @@ -99448,7 +100508,7 @@ function transformES2020(context) { thisArg = expression; } } - expression = node.kind === 210 /* PropertyAccessExpression */ ? factory2.updatePropertyAccessExpression(node, expression, visitNode(node.name, visitor, isIdentifier)) : factory2.updateElementAccessExpression(node, expression, visitNode(node.argumentExpression, visitor, isExpression)); + expression = node.kind === 211 /* PropertyAccessExpression */ ? factory2.updatePropertyAccessExpression(node, expression, visitNode(node.name, visitor, isIdentifier)) : factory2.updateElementAccessExpression(node, expression, visitNode(node.argumentExpression, visitor, isExpression)); return thisArg ? factory2.createSyntheticReferenceExpression(expression, thisArg) : expression; } function visitNonOptionalCallExpression(node, captureThisArg) { @@ -99484,12 +100544,12 @@ function transformES2020(context) { } function visitNonOptionalExpression(node, captureThisArg, isDelete) { switch (node.kind) { - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitNonOptionalParenthesizedExpression(node, captureThisArg, isDelete); - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return visitNonOptionalPropertyOrElementAccessExpression(node, captureThisArg, isDelete); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return visitNonOptionalCallExpression(node, captureThisArg); default: return visitNode(node, visitor, isExpression); @@ -99515,8 +100575,8 @@ function transformES2020(context) { for (let i = 0; i < chain.length; i++) { const segment = chain[i]; switch (segment.kind) { - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: if (i === chain.length - 1 && captureThisArg) { if (!isSimpleCopiableExpression(rightExpression)) { thisArg = factory2.createTempVariable(hoistVariableDeclaration); @@ -99525,9 +100585,9 @@ function transformES2020(context) { thisArg = rightExpression; } } - rightExpression = segment.kind === 210 /* PropertyAccessExpression */ ? factory2.createPropertyAccessExpression(rightExpression, visitNode(segment.name, visitor, isIdentifier)) : factory2.createElementAccessExpression(rightExpression, visitNode(segment.argumentExpression, visitor, isExpression)); + rightExpression = segment.kind === 211 /* PropertyAccessExpression */ ? factory2.createPropertyAccessExpression(rightExpression, visitNode(segment.name, visitor, isIdentifier)) : factory2.createElementAccessExpression(rightExpression, visitNode(segment.argumentExpression, visitor, isExpression)); break; - case 212 /* CallExpression */: + case 213 /* CallExpression */: if (i === 0 && leftThisArg) { if (!isGeneratedIdentifier(leftThisArg)) { leftThisArg = factory2.cloneNode(leftThisArg); @@ -99698,22 +100758,636 @@ function transformES2021(context) { // src/compiler/transformers/esnext.ts function transformESNext(context) { + const { + factory: factory2, + getEmitHelperFactory: emitHelpers, + hoistVariableDeclaration, + startLexicalEnvironment, + endLexicalEnvironment + } = context; + let exportBindings; + let exportVars; + let defaultExportBinding; + let exportEqualsBinding; return chainBundle(context, transformSourceFile); function transformSourceFile(node) { if (node.isDeclarationFile) { return node; } - return visitEachChild(node, visitor, context); + const visited = visitNode(node, visitor, isSourceFile); + addEmitHelpers(visited, context.readEmitHelpers()); + exportVars = void 0; + exportBindings = void 0; + defaultExportBinding = void 0; + return visited; } function visitor(node) { if ((node.transformFlags & 4 /* ContainsESNext */) === 0) { return node; } switch (node.kind) { + case 312 /* SourceFile */: + return visitSourceFile(node); + case 241 /* Block */: + return visitBlock(node); + case 248 /* ForStatement */: + return visitForStatement(node); + case 250 /* ForOfStatement */: + return visitForOfStatement(node); + case 255 /* SwitchStatement */: + return visitSwitchStatement(node); default: return visitEachChild(node, visitor, context); } } + function visitSourceFile(node) { + const usingKind = getUsingKindOfStatements(node.statements); + if (usingKind) { + startLexicalEnvironment(); + exportBindings = new IdentifierNameMap(); + exportVars = []; + const prologueCount = countPrologueStatements(node.statements); + const topLevelStatements = []; + addRange(topLevelStatements, visitArray(node.statements, visitor, isStatement, 0, prologueCount)); + let pos = prologueCount; + while (pos < node.statements.length) { + const statement = node.statements[pos]; + if (getUsingKind(statement) !== 0 /* None */) { + if (pos > prologueCount) { + addRange(topLevelStatements, visitNodes2(node.statements, visitor, isStatement, prologueCount, pos - prologueCount)); + } + break; + } + pos++; + } + Debug.assert(pos < node.statements.length, "Should have encountered at least one 'using' statement."); + const envBinding = createEnvBinding(); + const bodyStatements = transformUsingDeclarations(node.statements, pos, node.statements.length, envBinding, topLevelStatements); + if (exportBindings.size) { + append(topLevelStatements, factory2.createExportDeclaration( + /*modifiers*/ + void 0, + /*isTypeOnly*/ + false, + factory2.createNamedExports(arrayFrom(exportBindings.values())) + )); + } + addRange(topLevelStatements, endLexicalEnvironment()); + if (exportVars.length) { + topLevelStatements.push(factory2.createVariableStatement( + factory2.createModifiersFromModifierFlags(1 /* Export */), + factory2.createVariableDeclarationList( + exportVars, + 1 /* Let */ + ) + )); + } + addRange(topLevelStatements, createDownlevelUsingStatements(bodyStatements, envBinding, usingKind === 2 /* Async */)); + if (exportEqualsBinding) { + topLevelStatements.push(factory2.createExportAssignment( + /*modifiers*/ + void 0, + /*isExportEquals*/ + true, + exportEqualsBinding + )); + } + return factory2.updateSourceFile(node, topLevelStatements); + } + return visitEachChild(node, visitor, context); + } + function visitBlock(node) { + const usingKind = getUsingKindOfStatements(node.statements); + if (usingKind) { + const prologueCount = countPrologueStatements(node.statements); + const envBinding = createEnvBinding(); + return factory2.updateBlock( + node, + [ + ...visitArray(node.statements, visitor, isStatement, 0, prologueCount), + ...createDownlevelUsingStatements( + transformUsingDeclarations( + node.statements, + prologueCount, + node.statements.length, + envBinding, + /*topLevelStatements*/ + void 0 + ), + envBinding, + usingKind === 2 /* Async */ + ) + ] + ); + } + return visitEachChild(node, visitor, context); + } + function visitForStatement(node) { + if (node.initializer && isUsingVariableDeclarationList(node.initializer)) { + return visitNode( + factory2.createBlock([ + factory2.createVariableStatement( + /*modifiers*/ + void 0, + node.initializer + ), + factory2.updateForStatement( + node, + /*initializer*/ + void 0, + node.condition, + node.incrementor, + node.statement + ) + ]), + visitor, + isStatement + ); + } + return visitEachChild(node, visitor, context); + } + function visitForOfStatement(node) { + if (isUsingVariableDeclarationList(node.initializer)) { + const forInitializer = node.initializer; + Debug.assertNode(forInitializer, isUsingVariableDeclarationList); + Debug.assert(forInitializer.declarations.length === 1, "ForInitializer may only have one declaration"); + const forDecl = forInitializer.declarations[0]; + Debug.assert(!forDecl.initializer, "ForInitializer may not have an initializer"); + const isAwaitUsing = getUsingKindOfVariableDeclarationList(forInitializer) === 2 /* Async */; + const temp = factory2.getGeneratedNameForNode(forDecl.name); + const usingVar = factory2.updateVariableDeclaration( + forDecl, + forDecl.name, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + temp + ); + const usingVarList = factory2.createVariableDeclarationList([usingVar], isAwaitUsing ? 6 /* AwaitUsing */ : 4 /* Using */); + const usingVarStatement = factory2.createVariableStatement( + /*modifiers*/ + void 0, + usingVarList + ); + return visitNode( + factory2.updateForOfStatement( + node, + node.awaitModifier, + factory2.createVariableDeclarationList([ + factory2.createVariableDeclaration(temp) + ], 2 /* Const */), + node.expression, + isBlock(node.statement) ? factory2.updateBlock(node.statement, [ + usingVarStatement, + ...node.statement.statements + ]) : factory2.createBlock( + [ + usingVarStatement, + node.statement + ], + /*multiLine*/ + true + ) + ), + visitor, + isStatement + ); + } + return visitEachChild(node, visitor, context); + } + function visitCaseOrDefaultClause(node, envBinding) { + if (getUsingKindOfStatements(node.statements) !== 0 /* None */) { + if (isCaseClause(node)) { + return factory2.updateCaseClause( + node, + visitNode(node.expression, visitor, isExpression), + transformUsingDeclarations( + node.statements, + /*start*/ + 0, + node.statements.length, + envBinding, + /*topLevelStatements*/ + void 0 + ) + ); + } else { + return factory2.updateDefaultClause( + node, + transformUsingDeclarations( + node.statements, + /*start*/ + 0, + node.statements.length, + envBinding, + /*topLevelStatements*/ + void 0 + ) + ); + } + } + return visitEachChild(node, visitor, context); + } + function visitSwitchStatement(node) { + const usingKind = getUsingKindOfCaseOrDefaultClauses(node.caseBlock.clauses); + if (usingKind) { + const envBinding = createEnvBinding(); + return createDownlevelUsingStatements( + [ + factory2.updateSwitchStatement( + node, + visitNode(node.expression, visitor, isExpression), + factory2.updateCaseBlock( + node.caseBlock, + node.caseBlock.clauses.map((clause) => visitCaseOrDefaultClause(clause, envBinding)) + ) + ) + ], + envBinding, + usingKind === 2 /* Async */ + ); + } + return visitEachChild(node, visitor, context); + } + function transformUsingDeclarations(statementsIn, start2, end, envBinding, topLevelStatements) { + const statements = []; + for (let i = start2; i < end; i++) { + const statement = statementsIn[i]; + const usingKind = getUsingKind(statement); + if (usingKind) { + Debug.assertNode(statement, isVariableStatement); + const declarations = []; + for (let declaration of statement.declarationList.declarations) { + if (!isIdentifier(declaration.name)) { + declarations.length = 0; + break; + } + if (isNamedEvaluation(declaration)) { + declaration = transformNamedEvaluation(context, declaration); + } + const initializer = visitNode(declaration.initializer, visitor, isExpression) ?? factory2.createVoidZero(); + declarations.push(factory2.updateVariableDeclaration( + declaration, + declaration.name, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + emitHelpers().createAddDisposableResourceHelper( + envBinding, + initializer, + usingKind === 2 /* Async */ + ) + )); + } + if (declarations.length) { + const varList = factory2.createVariableDeclarationList(declarations, 2 /* Const */); + setOriginalNode(varList, statement.declarationList); + setTextRange(varList, statement.declarationList); + hoistOrAppendNode(factory2.updateVariableStatement( + statement, + /*modifiers*/ + void 0, + varList + )); + continue; + } + } + const result = visitor(statement); + if (isArray(result)) { + result.forEach(hoistOrAppendNode); + } else if (result) { + hoistOrAppendNode(result); + } + } + return statements; + function hoistOrAppendNode(node) { + Debug.assertNode(node, isStatement); + append(statements, hoist(node)); + } + function hoist(node) { + if (!topLevelStatements) + return node; + switch (node.kind) { + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 278 /* ExportDeclaration */: + case 262 /* FunctionDeclaration */: + return hoistImportOrExportOrHoistedDeclaration(node, topLevelStatements); + case 277 /* ExportAssignment */: + return hoistExportAssignment(node); + case 263 /* ClassDeclaration */: + return hoistClassDeclaration(node); + case 243 /* VariableStatement */: + return hoistVariableStatement(node); + } + return node; + } + } + function hoistImportOrExportOrHoistedDeclaration(node, topLevelStatements) { + topLevelStatements.push(node); + return void 0; + } + function hoistExportAssignment(node) { + return node.isExportEquals ? hoistExportEquals(node) : hoistExportDefault(node); + } + function hoistExportDefault(node) { + if (defaultExportBinding) { + return node; + } + defaultExportBinding = factory2.createUniqueName("_default", 8 /* ReservedInNestedScopes */ | 32 /* FileLevel */ | 16 /* Optimistic */); + hoistBindingIdentifier( + defaultExportBinding, + /*isExport*/ + true, + "default", + node + ); + let expression = node.expression; + let innerExpression = skipOuterExpressions(expression); + if (isNamedEvaluation(innerExpression)) { + innerExpression = transformNamedEvaluation( + context, + innerExpression, + /*ignoreEmptyStringLiteral*/ + false, + "default" + ); + expression = factory2.restoreOuterExpressions(expression, innerExpression); + } + const assignment = factory2.createAssignment(defaultExportBinding, expression); + return factory2.createExpressionStatement(assignment); + } + function hoistExportEquals(node) { + if (exportEqualsBinding) { + return node; + } + exportEqualsBinding = factory2.createUniqueName("_default", 8 /* ReservedInNestedScopes */ | 32 /* FileLevel */ | 16 /* Optimistic */); + hoistVariableDeclaration(exportEqualsBinding); + const assignment = factory2.createAssignment(exportEqualsBinding, node.expression); + return factory2.createExpressionStatement(assignment); + } + function hoistClassDeclaration(node) { + if (!node.name && defaultExportBinding) { + return node; + } + const isExported2 = hasSyntacticModifier(node, 1 /* Export */); + const isDefault = hasSyntacticModifier(node, 1024 /* Default */); + let expression = factory2.converters.convertToClassExpression(node); + if (node.name) { + hoistBindingIdentifier( + factory2.getLocalName(node), + isExported2 && !isDefault, + /*exportAlias*/ + void 0, + node + ); + expression = factory2.createAssignment(factory2.getDeclarationName(node), expression); + if (isNamedEvaluation(expression)) { + expression = transformNamedEvaluation( + context, + expression, + /*ignoreEmptyStringLiteral*/ + false + ); + } + setOriginalNode(expression, node); + setSourceMapRange(expression, node); + setCommentRange(expression, node); + } + if (isDefault && !defaultExportBinding) { + defaultExportBinding = factory2.createUniqueName("_default", 8 /* ReservedInNestedScopes */ | 32 /* FileLevel */ | 16 /* Optimistic */); + hoistBindingIdentifier( + defaultExportBinding, + /*isExport*/ + true, + "default", + node + ); + expression = factory2.createAssignment(defaultExportBinding, expression); + if (isNamedEvaluation(expression)) { + expression = transformNamedEvaluation( + context, + expression, + /*ignoreEmptyStringLiteral*/ + false, + "default" + ); + } + setOriginalNode(expression, node); + } + return factory2.createExpressionStatement(expression); + } + function hoistVariableStatement(node) { + let expressions; + const isExported2 = hasSyntacticModifier(node, 1 /* Export */); + for (const variable of node.declarationList.declarations) { + hoistBindingElement(variable, isExported2, variable); + if (variable.initializer) { + expressions = append(expressions, hoistInitializedVariable(variable)); + } + } + if (expressions) { + const statement = factory2.createExpressionStatement(factory2.inlineExpressions(expressions)); + setOriginalNode(statement, node); + setCommentRange(statement, node); + setSourceMapRange(statement, node); + return statement; + } + return void 0; + } + function hoistInitializedVariable(node) { + Debug.assertIsDefined(node.initializer); + let target; + if (isIdentifier(node.name)) { + target = factory2.cloneNode(node.name); + setEmitFlags(target, getEmitFlags(target) & ~(32768 /* LocalName */ | 16384 /* ExportName */ | 65536 /* InternalName */)); + } else { + target = factory2.converters.convertToAssignmentPattern(node.name); + } + const assignment = factory2.createAssignment(target, node.initializer); + setOriginalNode(assignment, node); + setCommentRange(assignment, node); + setSourceMapRange(assignment, node); + return assignment; + } + function hoistBindingElement(node, isExportedDeclaration, original) { + if (isBindingPattern(node.name)) { + for (const element of node.name.elements) { + if (!isOmittedExpression(element)) { + hoistBindingElement(element, isExportedDeclaration, original); + } + } + } else { + hoistBindingIdentifier( + node.name, + isExportedDeclaration, + /*exportAlias*/ + void 0, + original + ); + } + } + function hoistBindingIdentifier(node, isExport, exportAlias, original) { + const name = isGeneratedIdentifier(node) ? node : factory2.cloneNode(node); + if (isExport) { + if (exportAlias === void 0 && !isLocalName(name)) { + const varDecl = factory2.createVariableDeclaration(name); + if (original) { + setOriginalNode(varDecl, original); + } + exportVars.push(varDecl); + return; + } + const localName = exportAlias !== void 0 ? name : void 0; + const exportName = exportAlias !== void 0 ? exportAlias : name; + const specifier = factory2.createExportSpecifier( + /*isTypeOnly*/ + false, + localName, + exportName + ); + if (original) { + setOriginalNode(specifier, original); + } + exportBindings.set(name, specifier); + } + hoistVariableDeclaration(name); + } + function createEnvBinding() { + return factory2.createUniqueName("env"); + } + function createDownlevelUsingStatements(bodyStatements, envBinding, async) { + const statements = []; + const envObject = factory2.createObjectLiteralExpression([ + factory2.createPropertyAssignment("stack", factory2.createArrayLiteralExpression()), + factory2.createPropertyAssignment("error", factory2.createVoidZero()), + factory2.createPropertyAssignment("hasError", factory2.createFalse()) + ]); + const envVar = factory2.createVariableDeclaration( + envBinding, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + envObject + ); + const envVarList = factory2.createVariableDeclarationList([envVar], 2 /* Const */); + const envVarStatement = factory2.createVariableStatement( + /*modifiers*/ + void 0, + envVarList + ); + statements.push(envVarStatement); + const tryBlock = factory2.createBlock( + bodyStatements, + /*multiLine*/ + true + ); + const bodyCatchBinding = factory2.createUniqueName("e"); + const catchClause = factory2.createCatchClause( + bodyCatchBinding, + factory2.createBlock( + [ + factory2.createExpressionStatement( + factory2.createAssignment( + factory2.createPropertyAccessExpression(envBinding, "error"), + bodyCatchBinding + ) + ), + factory2.createExpressionStatement( + factory2.createAssignment( + factory2.createPropertyAccessExpression(envBinding, "hasError"), + factory2.createTrue() + ) + ) + ], + /*multiLine*/ + true + ) + ); + let finallyBlock; + if (async) { + const result = factory2.createUniqueName("result"); + finallyBlock = factory2.createBlock( + [ + factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList([ + factory2.createVariableDeclaration( + result, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + emitHelpers().createDisposeResourcesHelper(envBinding) + ) + ], 2 /* Const */) + ), + factory2.createIfStatement(result, factory2.createExpressionStatement(factory2.createAwaitExpression(result))) + ], + /*multiLine*/ + true + ); + } else { + finallyBlock = factory2.createBlock( + [ + factory2.createExpressionStatement( + emitHelpers().createDisposeResourcesHelper(envBinding) + ) + ], + /*multiLine*/ + true + ); + } + const tryStatement = factory2.createTryStatement(tryBlock, catchClause, finallyBlock); + statements.push(tryStatement); + return statements; + } +} +function countPrologueStatements(statements) { + for (let i = 0; i < statements.length; i++) { + if (!isPrologueDirective(statements[i]) && !isCustomPrologue(statements[i])) { + return i; + } + } + return 0; +} +function isUsingVariableDeclarationList(node) { + return isVariableDeclarationList(node) && getUsingKindOfVariableDeclarationList(node) !== 0 /* None */; +} +function getUsingKindOfVariableDeclarationList(node) { + return (node.flags & 7 /* BlockScoped */) === 6 /* AwaitUsing */ ? 2 /* Async */ : (node.flags & 7 /* BlockScoped */) === 4 /* Using */ ? 1 /* Sync */ : 0 /* None */; +} +function getUsingKindOfVariableStatement(node) { + return getUsingKindOfVariableDeclarationList(node.declarationList); +} +function getUsingKind(statement) { + return isVariableStatement(statement) ? getUsingKindOfVariableStatement(statement) : 0 /* None */; +} +function getUsingKindOfStatements(statements) { + let result = 0 /* None */; + for (const statement of statements) { + const usingKind = getUsingKind(statement); + if (usingKind === 2 /* Async */) + return 2 /* Async */; + if (usingKind > result) + result = usingKind; + } + return result; +} +function getUsingKindOfCaseOrDefaultClauses(clauses) { + let result = 0 /* None */; + for (const clause of clauses) { + const usingKind = getUsingKindOfStatements(clause.statements); + if (usingKind === 2 /* Async */) + return 2 /* Async */; + if (usingKind > result) + result = usingKind; + } + return result; } // src/compiler/transformers/jsx.ts @@ -99867,25 +101541,25 @@ function transformJsx(context) { } function visitorWorker(node) { switch (node.kind) { - case 283 /* JsxElement */: + case 284 /* JsxElement */: return visitJsxElement( node, /*isChild*/ false ); - case 284 /* JsxSelfClosingElement */: + case 285 /* JsxSelfClosingElement */: return visitJsxSelfClosingElement( node, /*isChild*/ false ); - case 287 /* JsxFragment */: + case 288 /* JsxFragment */: return visitJsxFragment( node, /*isChild*/ false ); - case 293 /* JsxExpression */: + case 294 /* JsxExpression */: return visitJsxExpression(node); default: return visitEachChild(node, visitor, context); @@ -99895,21 +101569,21 @@ function transformJsx(context) { switch (node.kind) { case 12 /* JsxText */: return visitJsxText(node); - case 293 /* JsxExpression */: + case 294 /* JsxExpression */: return visitJsxExpression(node); - case 283 /* JsxElement */: + case 284 /* JsxElement */: return visitJsxElement( node, /*isChild*/ true ); - case 284 /* JsxSelfClosingElement */: + case 285 /* JsxSelfClosingElement */: return visitJsxSelfClosingElement( node, /*isChild*/ true ); - case 287 /* JsxFragment */: + case 288 /* JsxFragment */: return visitJsxFragment( node, /*isChild*/ @@ -100117,10 +101791,10 @@ function transformJsx(context) { for (const prop of attr.expression.properties) { if (isSpreadAssignment(prop)) { finishObjectLiteralIfNeeded(); - expressions.push(prop.expression); + expressions.push(Debug.checkDefined(visitNode(prop.expression, visitor, isExpression))); continue; } - properties.push(prop); + properties.push(Debug.checkDefined(visitNode(prop, visitor))); } continue; } @@ -100159,7 +101833,7 @@ function transformJsx(context) { const literal = factory2.createStringLiteral(tryDecodeEntities(node.text) || node.text, singleQuote); return setTextRange(literal, node); } - if (node.kind === 293 /* JsxExpression */) { + if (node.kind === 294 /* JsxExpression */) { if (node.expression === void 0) { return factory2.createTrue(); } @@ -100233,7 +101907,7 @@ function transformJsx(context) { return decoded === text ? void 0 : decoded; } function getTagName(node) { - if (node.kind === 283 /* JsxElement */) { + if (node.kind === 284 /* JsxElement */) { return getTagName(node.openingElement); } else { const tagName = node.tagName; @@ -100533,7 +102207,7 @@ function transformES2016(context) { return node; } switch (node.kind) { - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return visitBinaryExpression(node); default: return visitEachChild(node, visitor, context); @@ -100661,7 +102335,7 @@ function transformES2015(context) { hierarchyFacts = (hierarchyFacts & ~excludeFacts | includeFacts) & -32768 /* SubtreeFactsMask */ | ancestorFacts; } function isReturnVoidStatementInConstructorWithCapturedSuper(node) { - return (hierarchyFacts & 8192 /* ConstructorWithCapturedSuper */) !== 0 && node.kind === 252 /* ReturnStatement */ && !node.expression; + return (hierarchyFacts & 8192 /* ConstructorWithCapturedSuper */) !== 0 && node.kind === 253 /* ReturnStatement */ && !node.expression; } function isOrMayContainReturnCompletion(node) { return node.transformFlags & 4194304 /* ContainsHoistedDeclarationOrCompletion */ && (isReturnStatement(node) || isIfStatement(node) || isWithStatement(node) || isSwitchStatement(node) || isCaseBlock(node) || isCaseClause(node) || isDefaultClause(node) || isTryStatement(node) || isCatchClause(node) || isLabeledStatement(node) || isIterationStatement( @@ -100728,85 +102402,85 @@ function transformES2015(context) { switch (node.kind) { case 126 /* StaticKeyword */: return void 0; - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return visitClassDeclaration(node); - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return visitClassExpression(node); - case 168 /* Parameter */: + case 169 /* Parameter */: return visitParameter(node); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return visitFunctionDeclaration(node); - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return visitArrowFunction(node); - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: return visitFunctionExpression(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return visitVariableDeclaration(node); case 80 /* Identifier */: return visitIdentifier(node); - case 260 /* VariableDeclarationList */: + case 261 /* VariableDeclarationList */: return visitVariableDeclarationList(node); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return visitSwitchStatement(node); - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: return visitCaseBlock(node); - case 240 /* Block */: + case 241 /* Block */: return visitBlock( node, /*isFunctionBody*/ false ); - case 251 /* BreakStatement */: - case 250 /* ContinueStatement */: + case 252 /* BreakStatement */: + case 251 /* ContinueStatement */: return visitBreakOrContinueStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return visitLabeledStatement(node); - case 245 /* DoStatement */: - case 246 /* WhileStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: return visitDoOrWhileStatement( node, /*outermostLabeledStatement*/ void 0 ); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement( node, /*outermostLabeledStatement*/ void 0 ); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return visitForInStatement( node, /*outermostLabeledStatement*/ void 0 ); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return visitForOfStatement( node, /*outermostLabeledStatement*/ void 0 ); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return visitExpressionStatement(node); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return visitObjectLiteralExpression(node); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return visitCatchClause(node); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return visitShorthandPropertyAssignment(node); - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: return visitComputedPropertyName(node); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return visitArrayLiteralExpression(node); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return visitCallExpression(node); - case 213 /* NewExpression */: + case 214 /* NewExpression */: return visitNewExpression(node); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression(node, expressionResultIsUnused2); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return visitBinaryExpression(node, expressionResultIsUnused2); - case 360 /* CommaListExpression */: + case 361 /* CommaListExpression */: return visitCommaListExpression(node, expressionResultIsUnused2); case 15 /* NoSubstitutionTemplateLiteral */: case 16 /* TemplateHead */: @@ -100817,13 +102491,13 @@ function transformES2015(context) { return visitStringLiteral(node); case 9 /* NumericLiteral */: return visitNumericLiteral(node); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return visitTaggedTemplateExpression(node); - case 227 /* TemplateExpression */: + case 228 /* TemplateExpression */: return visitTemplateExpression(node); - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: return visitYieldExpression(node); - case 229 /* SpreadElement */: + case 230 /* SpreadElement */: return visitSpreadElement(node); case 108 /* SuperKeyword */: return visitSuperKeyword( @@ -100832,18 +102506,18 @@ function transformES2015(context) { ); case 110 /* ThisKeyword */: return visitThisKeyword(node); - case 235 /* MetaProperty */: + case 236 /* MetaProperty */: return visitMetaProperty(node); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return visitMethodDeclaration(node); - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return visitAccessorDeclaration(node); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return visitVariableStatement(node); - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: return visitReturnStatement(node); - case 221 /* VoidExpression */: + case 222 /* VoidExpression */: return visitVoidExpression(node); default: return visitEachChild(node, visitor, context); @@ -100941,7 +102615,7 @@ function transformES2015(context) { return convertedLoopState.argumentsName || (convertedLoopState.argumentsName = factory2.createUniqueName("arguments")); } } - if (node.flags & 128 /* IdentifierHasExtendedUnicodeEscape */) { + if (node.flags & 256 /* IdentifierHasExtendedUnicodeEscape */) { return setOriginalNode(setTextRange( factory2.createIdentifier(unescapeLeadingUnderscores(node.escapedText)), node @@ -100951,13 +102625,13 @@ function transformES2015(context) { } function visitBreakOrContinueStatement(node) { if (convertedLoopState) { - const jump = node.kind === 251 /* BreakStatement */ ? 2 /* Break */ : 4 /* Continue */; + const jump = node.kind === 252 /* BreakStatement */ ? 2 /* Break */ : 4 /* Continue */; const canUseBreakOrContinue = node.label && convertedLoopState.labels && convertedLoopState.labels.get(idText(node.label)) || !node.label && convertedLoopState.allowedNonLabeledJumps & jump; if (!canUseBreakOrContinue) { let labelMarker; const label = node.label; if (!label) { - if (node.kind === 251 /* BreakStatement */) { + if (node.kind === 252 /* BreakStatement */) { convertedLoopState.nonLocalJumps |= 2 /* Break */; labelMarker = "break"; } else { @@ -100965,7 +102639,7 @@ function transformES2015(context) { labelMarker = "continue"; } } else { - if (node.kind === 251 /* BreakStatement */) { + if (node.kind === 252 /* BreakStatement */) { labelMarker = `break-${label.escapedText}`; setLabeledJump( convertedLoopState, @@ -101171,6 +102845,104 @@ function transformES2015(context) { setEmitFlags(block, 3072 /* NoComments */); return block; } + function transformConstructorBodyWorker(prologueOut, statementsOut, statementsIn, statementOffset, superPath, superPathDepth, constructor, isDerivedClass, hasSynthesizedSuper, isFirstStatement) { + let mayReplaceThis = false; + const superStatementIndex = superPathDepth < superPath.length ? superPath[superPathDepth] : -1; + const leadingStatementsEnd = superStatementIndex >= 0 ? superStatementIndex : statementsIn.length; + if (isFirstStatement && superStatementIndex >= 0) { + let firstMaterialIndex = statementOffset; + while (isFirstStatement && firstMaterialIndex < superStatementIndex) { + const statement = constructor.body.statements[firstMaterialIndex]; + if (!isUninitializedVariableStatement(statement) && !isUsingDeclarationStateVariableStatement(statement)) + break; + firstMaterialIndex++; + } + isFirstStatement = superStatementIndex === firstMaterialIndex; + } + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, statementOffset, leadingStatementsEnd - statementOffset)); + const superStatement = superStatementIndex >= 0 ? statementsIn[superStatementIndex] : void 0; + if (superStatement && isTryStatement(superStatement)) { + const tryBlockStatements = []; + mayReplaceThis = transformConstructorBodyWorker( + prologueOut, + tryBlockStatements, + superStatement.tryBlock.statements, + /*statementOffset*/ + 0, + superPath, + superPathDepth + 1, + constructor, + isDerivedClass, + hasSynthesizedSuper, + isFirstStatement + ); + const tryBlockStatementsArray = factory2.createNodeArray(tryBlockStatements); + setTextRange(tryBlockStatementsArray, superStatement.tryBlock.statements); + statementsOut.push(factory2.updateTryStatement( + superStatement, + factory2.updateBlock(superStatement.tryBlock, tryBlockStatements), + visitNode(superStatement.catchClause, visitor, isCatchClause), + visitNode(superStatement.finallyBlock, visitor, isBlock) + )); + } else { + const superCall = superStatement && getSuperCallFromStatement(superStatement); + let superCallExpression; + if (hasSynthesizedSuper) { + superCallExpression = createDefaultSuperCallOrThis(); + hierarchyFacts |= 8192 /* ConstructorWithCapturedSuper */; + } else if (superCall) { + superCallExpression = visitSuperCallInBody(superCall); + hierarchyFacts |= 8192 /* ConstructorWithCapturedSuper */; + } + if (isDerivedClass || superCallExpression) { + if (superCallExpression && superStatementIndex === statementsIn.length - 1 && !(constructor.body.transformFlags & 16384 /* ContainsLexicalThis */)) { + const superCall2 = cast(cast(superCallExpression, isBinaryExpression).left, isCallExpression); + const returnStatement = factory2.createReturnStatement(superCallExpression); + setCommentRange(returnStatement, getCommentRange(superCall2)); + setEmitFlags(superCall2, 3072 /* NoComments */); + statementsOut.push(returnStatement); + return false; + } else { + if (isFirstStatement) { + insertCaptureThisForNode(statementsOut, constructor, superCallExpression || createActualThis()); + } else { + insertCaptureThisForNode(prologueOut, constructor, createActualThis()); + if (superCallExpression) { + addSuperThisCaptureThisForNode(statementsOut, superCallExpression); + } + } + mayReplaceThis = true; + } + } else { + insertCaptureThisForNodeIfNeeded(prologueOut, constructor); + } + } + if (superStatementIndex >= 0) { + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex + 1)); + } + return mayReplaceThis; + } + function isUninitializedVariableStatement(node) { + return isVariableStatement(node) && every(node.declarationList.declarations, (decl) => isIdentifier(decl.name) && !decl.initializer); + } + function isUsingDeclarationStateVariableStatement(node) { + if (!isVariableStatement(node) || node.declarationList.declarations.length !== 1) + return false; + const varDecl = node.declarationList.declarations[0]; + if (!isIdentifier(varDecl.name) || !varDecl.initializer) + return false; + const initializer = varDecl.initializer; + if (!isObjectLiteralExpression(initializer) || initializer.properties.length !== 3) + return false; + const [stackProp, errorProp, hasErrorProp] = initializer.properties; + if (!isPropertyAssignment(stackProp) || !isIdentifier(stackProp.name) || idText(stackProp.name) !== "stack" || !isArrayLiteralExpression(stackProp.initializer)) + return false; + if (!isPropertyAssignment(errorProp) || !isIdentifier(errorProp.name) || idText(errorProp.name) !== "error" || !isVoidExpression(errorProp.initializer) || !isNumericLiteral(errorProp.initializer.expression)) + return false; + if (!isPropertyAssignment(hasErrorProp) || !isIdentifier(hasErrorProp.name) || idText(hasErrorProp.name) !== "hasError" || hasErrorProp.initializer.kind !== 97 /* FalseKeyword */) + return false; + return true; + } function transformConstructorBody(constructor, node, extendsClauseElement, hasSynthesizedSuper) { const isDerivedClass = !!extendsClauseElement && skipOuterExpressions(extendsClauseElement.expression).kind !== 106 /* NullKeyword */; if (!constructor) @@ -101178,82 +102950,43 @@ function transformES2015(context) { const prologue = []; const statements = []; resumeLexicalEnvironment(); - const existingPrologue = takeWhile(constructor.body.statements, isPrologueDirective); - const { superCall, superStatementIndex } = findSuperCallAndStatementIndex(constructor.body.statements, existingPrologue); - const postSuperStatementsStart = superStatementIndex === -1 ? existingPrologue.length : superStatementIndex + 1; - let statementOffset = postSuperStatementsStart; - if (!hasSynthesizedSuper) - statementOffset = factory2.copyStandardPrologue( - constructor.body.statements, - prologue, - statementOffset, - /*ensureUseStrict*/ - false - ); - if (!hasSynthesizedSuper) - statementOffset = factory2.copyCustomPrologue( - constructor.body.statements, - statements, - statementOffset, - visitor, - /*filter*/ - void 0 - ); - let superCallExpression; - if (hasSynthesizedSuper) { - superCallExpression = createDefaultSuperCallOrThis(); - } else if (superCall) { - superCallExpression = visitSuperCallInBody(superCall); - } - if (superCallExpression) { + const standardPrologueEnd = factory2.copyStandardPrologue( + constructor.body.statements, + prologue, + /*statementOffset*/ + 0 + ); + const superStatementIndices = findSuperStatementIndexPath(constructor.body.statements, standardPrologueEnd); + if (hasSynthesizedSuper || superStatementIndices.length > 0) { hierarchyFacts |= 8192 /* ConstructorWithCapturedSuper */; } - addDefaultValueAssignmentsIfNeeded2(prologue, constructor); - addRestParameterIfNeeded(prologue, constructor, hasSynthesizedSuper); - addRange(statements, visitNodes2( - constructor.body.statements, - visitor, - isStatement, - /*start*/ - statementOffset - )); - factory2.mergeLexicalEnvironment(prologue, endLexicalEnvironment()); - insertCaptureNewTargetIfNeeded( + const mayReplaceThis = transformConstructorBodyWorker( prologue, + statements, + constructor.body.statements, + standardPrologueEnd, + superStatementIndices, + /*superPathDepth*/ + 0, constructor, - /*copyOnWrite*/ - false + isDerivedClass, + hasSynthesizedSuper, + /*isFirstStatement*/ + true + // NOTE: this will be recalculated inside of transformConstructorBodyWorker ); - if (isDerivedClass || superCallExpression) { - if (superCallExpression && postSuperStatementsStart === constructor.body.statements.length && !(constructor.body.transformFlags & 16384 /* ContainsLexicalThis */)) { - const superCall2 = cast(cast(superCallExpression, isBinaryExpression).left, isCallExpression); - const returnStatement = factory2.createReturnStatement(superCallExpression); - setCommentRange(returnStatement, getCommentRange(superCall2)); - setEmitFlags(superCall2, 3072 /* NoComments */); - statements.push(returnStatement); - } else { - if (superStatementIndex <= existingPrologue.length) { - insertCaptureThisForNode(statements, constructor, superCallExpression || createActualThis()); - } else { - insertCaptureThisForNode(prologue, constructor, createActualThis()); - if (superCallExpression) { - insertSuperThisCaptureThisForNode(statements, superCallExpression); - } - } - if (!isSufficientlyCoveredByReturnStatements(constructor.body)) { - statements.push(factory2.createReturnStatement(factory2.createUniqueName("_this", 16 /* Optimistic */ | 32 /* FileLevel */))); - } - } - } else { - insertCaptureThisForNodeIfNeeded(prologue, constructor); + addDefaultValueAssignmentsIfNeeded2(prologue, constructor); + addRestParameterIfNeeded(prologue, constructor, hasSynthesizedSuper); + insertCaptureNewTargetIfNeeded(prologue, constructor); + factory2.mergeLexicalEnvironment(prologue, endLexicalEnvironment()); + if (mayReplaceThis && !isSufficientlyCoveredByReturnStatements(constructor.body)) { + statements.push(factory2.createReturnStatement(factory2.createUniqueName("_this", 16 /* Optimistic */ | 32 /* FileLevel */))); } const body = factory2.createBlock( setTextRange( factory2.createNodeArray( [ - ...existingPrologue, ...prologue, - ...superStatementIndex <= existingPrologue.length ? emptyArray : visitNodes2(constructor.body.statements, visitor, isStatement, existingPrologue.length, superStatementIndex - existingPrologue.length), ...statements ] ), @@ -101266,29 +102999,15 @@ function transformES2015(context) { setTextRange(body, constructor.body); return body; } - function findSuperCallAndStatementIndex(originalBodyStatements, existingPrologue) { - for (let i = existingPrologue.length; i < originalBodyStatements.length; i += 1) { - const superCall = getSuperCallFromStatement(originalBodyStatements[i]); - if (superCall) { - return { - superCall, - superStatementIndex: i - }; - } - } - return { - superStatementIndex: -1 - }; - } function isSufficientlyCoveredByReturnStatements(statement) { - if (statement.kind === 252 /* ReturnStatement */) { + if (statement.kind === 253 /* ReturnStatement */) { return true; - } else if (statement.kind === 244 /* IfStatement */) { + } else if (statement.kind === 245 /* IfStatement */) { const ifStatement = statement; if (ifStatement.elseStatement) { return isSufficientlyCoveredByReturnStatements(ifStatement.thenStatement) && isSufficientlyCoveredByReturnStatements(ifStatement.elseStatement); } - } else if (statement.kind === 240 /* Block */) { + } else if (statement.kind === 241 /* Block */) { const lastStatement = lastOrUndefined(statement.statements); if (lastStatement && isSufficientlyCoveredByReturnStatements(lastStatement)) { return true; @@ -101562,13 +103281,13 @@ function transformES2015(context) { return true; } function insertCaptureThisForNodeIfNeeded(statements, node) { - if (hierarchyFacts & 65536 /* CapturedLexicalThis */ && node.kind !== 218 /* ArrowFunction */) { + if (hierarchyFacts & 65536 /* CapturedLexicalThis */ && node.kind !== 219 /* ArrowFunction */) { insertCaptureThisForNode(statements, node, factory2.createThis()); return true; } return false; } - function insertSuperThisCaptureThisForNode(statements, superExpression) { + function addSuperThisCaptureThisForNode(statements, superExpression) { enableSubstitutionsForCapturedThis(); const assignSuperExpression = factory2.createExpressionStatement( factory2.createBinaryExpression( @@ -101577,7 +103296,7 @@ function transformES2015(context) { superExpression ) ); - insertStatementAfterCustomPrologue(statements, assignSuperExpression); + statements.push(assignSuperExpression); setCommentRange(assignSuperExpression, getOriginalNode(superExpression).parent); } function insertCaptureThisForNode(statements, node, initializer) { @@ -101600,25 +103319,25 @@ function transformES2015(context) { setSourceMapRange(captureThisStatement, node); insertStatementAfterCustomPrologue(statements, captureThisStatement); } - function insertCaptureNewTargetIfNeeded(statements, node, copyOnWrite) { + function insertCaptureNewTargetIfNeeded(statements, node) { if (hierarchyFacts & 32768 /* NewTarget */) { let newTarget; switch (node.kind) { - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return statements; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: newTarget = factory2.createVoidZero(); break; - case 175 /* Constructor */: + case 176 /* Constructor */: newTarget = factory2.createPropertyAccessExpression( setEmitFlags(factory2.createThis(), 8 /* NoSubstitution */), "constructor" ); break; - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: newTarget = factory2.createConditionalExpression( factory2.createLogicalAnd( setEmitFlags(factory2.createThis(), 8 /* NoSubstitution */), @@ -101657,9 +103376,6 @@ function transformES2015(context) { ]) ); setEmitFlags(captureNewTargetStatement, 3072 /* NoComments */ | 2097152 /* CustomPrologue */); - if (copyOnWrite) { - statements = statements.slice(); - } insertStatementAfterCustomPrologue(statements, captureNewTargetStatement); } return statements; @@ -101667,21 +103383,21 @@ function transformES2015(context) { function addClassMembers(statements, node) { for (const member of node.members) { switch (member.kind) { - case 239 /* SemicolonClassElement */: + case 240 /* SemicolonClassElement */: statements.push(transformSemicolonClassElementToStatement(member)); break; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: statements.push(transformClassMethodDeclarationToStatement(getClassMemberPrefix(node, member), member, node)); break; - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: const accessors = getAllAccessorDeclarations(node.members, member); if (member === accessors.firstAccessor) { statements.push(transformAccessorsToStatement(getClassMemberPrefix(node, member), accessors, node)); } break; - case 175 /* Constructor */: - case 174 /* ClassStaticBlockDeclaration */: + case 176 /* Constructor */: + case 175 /* ClassStaticBlockDeclaration */: break; default: Debug.failBadSyntaxKind(member, currentSourceFile && currentSourceFile.fileName); @@ -101888,7 +103604,7 @@ function transformES2015(context) { const ancestorFacts = container && isClassLike(container) && !isStatic(node) ? enterSubtree(32670 /* FunctionExcludes */, 65 /* FunctionIncludes */ | 8 /* NonStaticClassElement */) : enterSubtree(32670 /* FunctionExcludes */, 65 /* FunctionIncludes */); const parameters = visitParameterList(node.parameters, visitor, context); const body = transformFunctionBody2(node); - if (hierarchyFacts & 32768 /* NewTarget */ && !name && (node.kind === 261 /* FunctionDeclaration */ || node.kind === 217 /* FunctionExpression */)) { + if (hierarchyFacts & 32768 /* NewTarget */ && !name && (node.kind === 262 /* FunctionDeclaration */ || node.kind === 218 /* FunctionExpression */)) { name = factory2.getGeneratedNameForNode(node); } exitSubtree(ancestorFacts, 98304 /* FunctionSubtreeExcludes */, 0 /* None */); @@ -101949,7 +103665,7 @@ function transformES2015(context) { multiLine = true; } } else { - Debug.assert(node.kind === 218 /* ArrowFunction */); + Debug.assert(node.kind === 219 /* ArrowFunction */); statementsLocation = moveRangeEnd(body, -1); const equalsGreaterThanToken = node.equalsGreaterThanToken; if (!nodeIsSynthesized(equalsGreaterThanToken) && !nodeIsSynthesized(body)) { @@ -101968,12 +103684,7 @@ function transformES2015(context) { closeBraceLocation = body; } factory2.mergeLexicalEnvironment(prologue, endLexicalEnvironment()); - insertCaptureNewTargetIfNeeded( - prologue, - node, - /*copyOnWrite*/ - false - ); + insertCaptureNewTargetIfNeeded(prologue, node); insertCaptureThisForNodeIfNeeded(prologue, node); if (some(prologue)) { multiLine = true; @@ -102051,7 +103762,7 @@ function transformES2015(context) { function visitVariableStatement(node) { const ancestorFacts = enterSubtree(0 /* None */, hasSyntacticModifier(node, 1 /* Export */) ? 32 /* ExportedVariableStatement */ : 0 /* None */); let updated; - if (convertedLoopState && (node.declarationList.flags & 3 /* BlockScoped */) === 0 && !isVariableStatementOfTypeScriptClassWrapper(node)) { + if (convertedLoopState && (node.declarationList.flags & 7 /* BlockScoped */) === 0 && !isVariableStatementOfTypeScriptClassWrapper(node)) { let assignments; for (const decl of node.declarationList.declarations) { hoistVariableDeclarationDeclaredInConvertedLoop(convertedLoopState, decl); @@ -102083,8 +103794,8 @@ function transformES2015(context) { return updated; } function visitVariableDeclarationList(node) { - if (node.flags & 3 /* BlockScoped */ || node.transformFlags & 524288 /* ContainsBindingPattern */) { - if (node.flags & 3 /* BlockScoped */) { + if (node.flags & 7 /* BlockScoped */ || node.transformFlags & 524288 /* ContainsBindingPattern */) { + if (node.flags & 7 /* BlockScoped */) { enableSubstitutionsForBlockScopedBindings(); } const declarations = visitNodes2(node.declarations, node.flags & 1 /* Let */ ? visitVariableDeclarationInLetDeclarationList : visitVariableDeclaration, isVariableDeclaration); @@ -102175,14 +103886,14 @@ function transformES2015(context) { } function visitIterationStatement(node, outermostLabeledStatement) { switch (node.kind) { - case 245 /* DoStatement */: - case 246 /* WhileStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: return visitDoOrWhileStatement(node, outermostLabeledStatement); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement(node, outermostLabeledStatement); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return visitForInStatement(node, outermostLabeledStatement); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return visitForOfStatement(node, outermostLabeledStatement); } } @@ -102238,7 +103949,7 @@ function transformES2015(context) { const statements = []; const initializer = node.initializer; if (isVariableDeclarationList(initializer)) { - if (node.initializer.flags & 3 /* BlockScoped */) { + if (node.initializer.flags & 7 /* BlockScoped */) { enableSubstitutionsForBlockScopedBindings(); } const firstOriginalDeclaration = firstOrUndefined(initializer.declarations); @@ -102532,7 +104243,7 @@ function transformES2015(context) { let numInitialProperties = -1, hasComputed = false; for (let i = 0; i < properties.length; i++) { const property = properties[i]; - if (property.transformFlags & 1048576 /* ContainsYield */ && hierarchyFacts & 4 /* AsyncFunctionBody */ || (hasComputed = Debug.checkDefined(property.name).kind === 166 /* ComputedPropertyName */)) { + if (property.transformFlags & 1048576 /* ContainsYield */ && hierarchyFacts & 4 /* AsyncFunctionBody */ || (hasComputed = Debug.checkDefined(property.name).kind === 167 /* ComputedPropertyName */)) { numInitialProperties = i; break; } @@ -102654,15 +104365,15 @@ function transformES2015(context) { } function convertIterationStatementCore(node, initializerFunction, convertedLoopBody) { switch (node.kind) { - case 247 /* ForStatement */: + case 248 /* ForStatement */: return convertForStatement(node, initializerFunction, convertedLoopBody); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return convertForInStatement(node, convertedLoopBody); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return convertForOfStatement(node, convertedLoopBody); - case 245 /* DoStatement */: + case 246 /* DoStatement */: return convertDoStatement(node, convertedLoopBody); - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: return convertWhileStatement(node, convertedLoopBody); default: return Debug.failBadSyntaxKind(node, "IterationStatement expected"); @@ -102714,18 +104425,18 @@ function transformES2015(context) { function createConvertedLoopState(node) { let loopInitializer; switch (node.kind) { - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: const initializer = node.initializer; - if (initializer && initializer.kind === 260 /* VariableDeclarationList */) { + if (initializer && initializer.kind === 261 /* VariableDeclarationList */) { loopInitializer = initializer; } break; } const loopParameters = []; const loopOutParameters = []; - if (loopInitializer && getCombinedNodeFlags(loopInitializer) & 3 /* BlockScoped */) { + if (loopInitializer && getCombinedNodeFlags(loopInitializer) & 7 /* BlockScoped */) { const hasCapturedBindingsInForHead = shouldConvertInitializerOfForStatement(node) || shouldConvertConditionOfForStatement(node) || shouldConvertIncrementorOfForStatement(node); for (const decl of loopInitializer.declarations) { processLoopVariableDeclaration(node, decl, loopParameters, loopOutParameters, hasCapturedBindingsInForHead); @@ -103133,10 +104844,10 @@ function transformES2015(context) { name )); const checkFlags = resolver.getNodeCheckFlags(decl); - if (checkFlags & 262144 /* NeedsLoopOutParameter */ || hasCapturedBindingsInForHead) { + if (checkFlags & 65536 /* NeedsLoopOutParameter */ || hasCapturedBindingsInForHead) { const outParamName = factory2.createUniqueName("out_" + idText(name)); let flags = 0 /* None */; - if (checkFlags & 262144 /* NeedsLoopOutParameter */) { + if (checkFlags & 65536 /* NeedsLoopOutParameter */) { flags |= 1 /* Body */; } if (isForStatement(container)) { @@ -103157,20 +104868,20 @@ function transformES2015(context) { for (let i = start2; i < numProperties; i++) { const property = properties[i]; switch (property.kind) { - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: const accessors = getAllAccessorDeclarations(node.properties, property); if (property === accessors.firstAccessor) { expressions.push(transformAccessorsToExpression(receiver, accessors, node, !!node.multiLine)); } break; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: expressions.push(transformObjectLiteralMethodDeclarationToExpression(property, receiver, node, node.multiLine)); break; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: expressions.push(transformPropertyAssignmentToExpression(property, receiver, node.multiLine)); break; - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: expressions.push(transformShorthandPropertyAssignmentToExpression(property, receiver, node.multiLine)); break; default: @@ -103296,7 +105007,7 @@ function transformES2015(context) { let updated; const parameters = visitParameterList(node.parameters, visitor, context); const body = transformFunctionBody2(node); - if (node.kind === 176 /* GetAccessor */) { + if (node.kind === 177 /* GetAccessor */) { updated = factory2.updateGetAccessorDeclaration(node, node.modifiers, node.name, parameters, node.type, body); } else { updated = factory2.updateSetAccessorDeclaration(node, node.modifiers, node.name, parameters, body); @@ -103660,13 +105371,13 @@ function transformES2015(context) { if ((enabledSubstitutions & 1 /* CapturedThis */) === 0) { enabledSubstitutions |= 1 /* CapturedThis */; context.enableSubstitution(110 /* ThisKeyword */); - context.enableEmitNotification(175 /* Constructor */); - context.enableEmitNotification(173 /* MethodDeclaration */); - context.enableEmitNotification(176 /* GetAccessor */); - context.enableEmitNotification(177 /* SetAccessor */); - context.enableEmitNotification(218 /* ArrowFunction */); - context.enableEmitNotification(217 /* FunctionExpression */); - context.enableEmitNotification(261 /* FunctionDeclaration */); + context.enableEmitNotification(176 /* Constructor */); + context.enableEmitNotification(174 /* MethodDeclaration */); + context.enableEmitNotification(177 /* GetAccessor */); + context.enableEmitNotification(178 /* SetAccessor */); + context.enableEmitNotification(219 /* ArrowFunction */); + context.enableEmitNotification(218 /* FunctionExpression */); + context.enableEmitNotification(262 /* FunctionDeclaration */); } } function onSubstituteNode(hint, node) { @@ -103690,10 +105401,10 @@ function transformES2015(context) { } function isNameOfDeclarationWithCollidingName(node) { switch (node.parent.kind) { - case 207 /* BindingElement */: - case 262 /* ClassDeclaration */: - case 265 /* EnumDeclaration */: - case 259 /* VariableDeclaration */: + case 208 /* BindingElement */: + case 263 /* ClassDeclaration */: + case 266 /* EnumDeclaration */: + case 260 /* VariableDeclaration */: return node.parent.name === node && resolver.isDeclarationWithCollidingName(node.parent); } return false; @@ -103750,11 +105461,11 @@ function transformES2015(context) { return false; } const statement = firstOrUndefined(constructor.body.statements); - if (!statement || !nodeIsSynthesized(statement) || statement.kind !== 243 /* ExpressionStatement */) { + if (!statement || !nodeIsSynthesized(statement) || statement.kind !== 244 /* ExpressionStatement */) { return false; } const statementExpression = statement.expression; - if (!nodeIsSynthesized(statementExpression) || statementExpression.kind !== 212 /* CallExpression */) { + if (!nodeIsSynthesized(statementExpression) || statementExpression.kind !== 213 /* CallExpression */) { return false; } const callTarget = statementExpression.expression; @@ -103762,7 +105473,7 @@ function transformES2015(context) { return false; } const callArgument = singleOrUndefined(statementExpression.arguments); - if (!callArgument || !nodeIsSynthesized(callArgument) || callArgument.kind !== 229 /* SpreadElement */) { + if (!callArgument || !nodeIsSynthesized(callArgument) || callArgument.kind !== 230 /* SpreadElement */) { return false; } const expression = callArgument.expression; @@ -103779,24 +105490,24 @@ function transformES5(context) { if (compilerOptions.jsx === 1 /* Preserve */ || compilerOptions.jsx === 3 /* ReactNative */) { previousOnEmitNode = context.onEmitNode; context.onEmitNode = onEmitNode; - context.enableEmitNotification(285 /* JsxOpeningElement */); - context.enableEmitNotification(286 /* JsxClosingElement */); - context.enableEmitNotification(284 /* JsxSelfClosingElement */); + context.enableEmitNotification(286 /* JsxOpeningElement */); + context.enableEmitNotification(287 /* JsxClosingElement */); + context.enableEmitNotification(285 /* JsxSelfClosingElement */); noSubstitution = []; } const previousOnSubstituteNode = context.onSubstituteNode; context.onSubstituteNode = onSubstituteNode; - context.enableSubstitution(210 /* PropertyAccessExpression */); - context.enableSubstitution(302 /* PropertyAssignment */); + context.enableSubstitution(211 /* PropertyAccessExpression */); + context.enableSubstitution(303 /* PropertyAssignment */); return chainBundle(context, transformSourceFile); function transformSourceFile(node) { return node; } function onEmitNode(hint, node, emitCallback) { switch (node.kind) { - case 285 /* JsxOpeningElement */: - case 286 /* JsxClosingElement */: - case 284 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 287 /* JsxClosingElement */: + case 285 /* JsxSelfClosingElement */: const tagName = node.tagName; noSubstitution[getOriginalNodeId(tagName)] = true; break; @@ -103922,13 +105633,13 @@ function transformGenerators(context) { } function visitJavaScriptInStatementContainingYield(node) { switch (node.kind) { - case 245 /* DoStatement */: + case 246 /* DoStatement */: return visitDoStatement(node); - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: return visitWhileStatement(node); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return visitSwitchStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return visitLabeledStatement(node); default: return visitJavaScriptInGeneratorFunctionBody(node); @@ -103936,24 +105647,24 @@ function transformGenerators(context) { } function visitJavaScriptInGeneratorFunctionBody(node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return visitFunctionDeclaration(node); - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: return visitFunctionExpression(node); - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return visitAccessorDeclaration(node); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return visitVariableStatement(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement(node); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return visitForInStatement(node); - case 251 /* BreakStatement */: + case 252 /* BreakStatement */: return visitBreakStatement(node); - case 250 /* ContinueStatement */: + case 251 /* ContinueStatement */: return visitContinueStatement(node); - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: return visitReturnStatement(node); default: if (node.transformFlags & 1048576 /* ContainsYield */) { @@ -103967,23 +105678,23 @@ function transformGenerators(context) { } function visitJavaScriptContainingYield(node) { switch (node.kind) { - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return visitBinaryExpression(node); - case 360 /* CommaListExpression */: + case 361 /* CommaListExpression */: return visitCommaListExpression(node); - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: return visitConditionalExpression(node); - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: return visitYieldExpression(node); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return visitArrayLiteralExpression(node); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return visitObjectLiteralExpression(node); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return visitElementAccessExpression(node); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return visitCallExpression(node); - case 213 /* NewExpression */: + case 214 /* NewExpression */: return visitNewExpression(node); default: return visitEachChild(node, visitor, context); @@ -103991,9 +105702,9 @@ function transformGenerators(context) { } function visitGenerator(node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return visitFunctionDeclaration(node); - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: return visitFunctionExpression(node); default: return Debug.failBadSyntaxKind(node); @@ -104178,14 +105889,14 @@ function transformGenerators(context) { if (containsYield(right)) { let target; switch (left.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: target = factory2.updatePropertyAccessExpression( left, cacheExpression(Debug.checkDefined(visitNode(left.expression, visitor, isLeftHandSideExpression))), left.name ); break; - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: target = factory2.updateElementAccessExpression( left, cacheExpression(Debug.checkDefined(visitNode(left.expression, visitor, isLeftHandSideExpression))), @@ -104518,35 +106229,35 @@ function transformGenerators(context) { } function transformAndEmitStatementWorker(node) { switch (node.kind) { - case 240 /* Block */: + case 241 /* Block */: return transformAndEmitBlock(node); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return transformAndEmitExpressionStatement(node); - case 244 /* IfStatement */: + case 245 /* IfStatement */: return transformAndEmitIfStatement(node); - case 245 /* DoStatement */: + case 246 /* DoStatement */: return transformAndEmitDoStatement(node); - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: return transformAndEmitWhileStatement(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return transformAndEmitForStatement(node); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return transformAndEmitForInStatement(node); - case 250 /* ContinueStatement */: + case 251 /* ContinueStatement */: return transformAndEmitContinueStatement(node); - case 251 /* BreakStatement */: + case 252 /* BreakStatement */: return transformAndEmitBreakStatement(node); - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: return transformAndEmitReturnStatement(node); - case 253 /* WithStatement */: + case 254 /* WithStatement */: return transformAndEmitWithStatement(node); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return transformAndEmitSwitchStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return transformAndEmitLabeledStatement(node); - case 256 /* ThrowStatement */: + case 257 /* ThrowStatement */: return transformAndEmitThrowStatement(node); - case 257 /* TryStatement */: + case 258 /* TryStatement */: return transformAndEmitTryStatement(node); default: return emitStatement(visitNode(node, visitor, isStatement)); @@ -104898,7 +106609,7 @@ function transformGenerators(context) { for (let i = 0; i < numClauses; i++) { const clause = caseBlock.clauses[i]; clauseLabels.push(defineLabel()); - if (clause.kind === 296 /* DefaultClause */ && defaultClauseIndex === -1) { + if (clause.kind === 297 /* DefaultClause */ && defaultClauseIndex === -1) { defaultClauseIndex = i; } } @@ -104908,7 +106619,7 @@ function transformGenerators(context) { let defaultClausesSkipped = 0; for (let i = clausesWritten; i < numClauses; i++) { const clause = caseBlock.clauses[i]; - if (clause.kind === 295 /* CaseClause */) { + if (clause.kind === 296 /* CaseClause */) { if (containsYield(clause.expression) && pendingClauses.length > 0) { break; } @@ -105875,12 +107586,12 @@ function transformModule(context) { const previousOnEmitNode = context.onEmitNode; context.onSubstituteNode = onSubstituteNode; context.onEmitNode = onEmitNode; - context.enableSubstitution(212 /* CallExpression */); - context.enableSubstitution(214 /* TaggedTemplateExpression */); + context.enableSubstitution(213 /* CallExpression */); + context.enableSubstitution(215 /* TaggedTemplateExpression */); context.enableSubstitution(80 /* Identifier */); - context.enableSubstitution(225 /* BinaryExpression */); - context.enableSubstitution(303 /* ShorthandPropertyAssignment */); - context.enableEmitNotification(311 /* SourceFile */); + context.enableSubstitution(226 /* BinaryExpression */); + context.enableSubstitution(304 /* ShorthandPropertyAssignment */); + context.enableEmitNotification(312 /* SourceFile */); const moduleInfoMap = []; let currentSourceFile; let currentModuleInfo; @@ -105892,7 +107603,7 @@ function transformModule(context) { return node; } currentSourceFile = node; - currentModuleInfo = collectExternalModuleInfo(context, node, resolver, compilerOptions); + currentModuleInfo = collectExternalModuleInfo(context, node); moduleInfoMap[getOriginalNodeId(node)] = currentModuleInfo; const transformModule2 = getTransformModuleDelegate(moduleKind); const updated = transformModule2(node); @@ -106292,63 +108003,59 @@ function transformModule(context) { } function topLevelVisitor(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: - return visitImportDeclaration(node); - case 270 /* ImportEqualsDeclaration */: - return visitImportEqualsDeclaration(node); - case 277 /* ExportDeclaration */: - return visitExportDeclaration(node); - case 276 /* ExportAssignment */: - return visitExportAssignment(node); - case 261 /* FunctionDeclaration */: - return visitFunctionDeclaration(node); - case 262 /* ClassDeclaration */: - return visitClassDeclaration(node); + case 272 /* ImportDeclaration */: + return visitTopLevelImportDeclaration(node); + case 271 /* ImportEqualsDeclaration */: + return visitTopLevelImportEqualsDeclaration(node); + case 278 /* ExportDeclaration */: + return visitTopLevelExportDeclaration(node); + case 277 /* ExportAssignment */: + return visitTopLevelExportAssignment(node); default: return topLevelNestedVisitor(node); } } function topLevelNestedVisitor(node) { switch (node.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return visitVariableStatement(node); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return visitFunctionDeclaration(node); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return visitClassDeclaration(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement( node, /*isTopLevel*/ true ); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return visitForInStatement(node); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return visitForOfStatement(node); - case 245 /* DoStatement */: + case 246 /* DoStatement */: return visitDoStatement(node); - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: return visitWhileStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return visitLabeledStatement(node); - case 253 /* WithStatement */: + case 254 /* WithStatement */: return visitWithStatement(node); - case 244 /* IfStatement */: + case 245 /* IfStatement */: return visitIfStatement(node); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return visitSwitchStatement(node); - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: return visitCaseBlock(node); - case 295 /* CaseClause */: + case 296 /* CaseClause */: return visitCaseClause(node); - case 296 /* DefaultClause */: + case 297 /* DefaultClause */: return visitDefaultClause(node); - case 257 /* TryStatement */: + case 258 /* TryStatement */: return visitTryStatement(node); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return visitCatchClause(node); - case 240 /* Block */: + case 241 /* Block */: return visitBlock(node); default: return visitor(node); @@ -106359,30 +108066,30 @@ function transformModule(context) { return node; } switch (node.kind) { - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement( node, /*isTopLevel*/ false ); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return visitExpressionStatement(node); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression(node, valueIsDiscarded); - case 359 /* PartiallyEmittedExpression */: + case 360 /* PartiallyEmittedExpression */: return visitPartiallyEmittedExpression(node, valueIsDiscarded); - case 212 /* CallExpression */: + case 213 /* CallExpression */: if (isImportCall(node) && currentSourceFile.impliedNodeFormat === void 0) { return visitImportCallExpression(node); } break; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: if (isDestructuringAssignment(node)) { return visitDestructuringAssignment(node, valueIsDiscarded); } break; - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return visitPreOrPostfixUnaryExpression(node, valueIsDiscarded); } return visitEachChild(node, visitor, context); @@ -106405,24 +108112,24 @@ function transformModule(context) { if (isObjectLiteralExpression(node)) { for (const elem of node.properties) { switch (elem.kind) { - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: if (destructuringNeedsFlattening(elem.initializer)) { return true; } break; - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: if (destructuringNeedsFlattening(elem.name)) { return true; } break; - case 304 /* SpreadAssignment */: + case 305 /* SpreadAssignment */: if (destructuringNeedsFlattening(elem.expression)) { return true; } break; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return false; default: Debug.assertNever(elem, "Unhandled object member kind"); @@ -106450,7 +108157,7 @@ function transformModule(context) { return visitEachChild(node, visitor, context); } function visitForStatement(node, isTopLevel) { - if (isTopLevel && node.initializer && isVariableDeclarationList(node.initializer) && !(node.initializer.flags & 3 /* BlockScoped */)) { + if (isTopLevel && node.initializer && isVariableDeclarationList(node.initializer) && !(node.initializer.flags & 7 /* BlockScoped */)) { const exportStatements = appendExportsOfVariableDeclarationList( /*statements*/ void 0, @@ -106491,7 +108198,7 @@ function transformModule(context) { ); } function visitForInStatement(node) { - if (isVariableDeclarationList(node.initializer) && !(node.initializer.flags & 3 /* BlockScoped */)) { + if (isVariableDeclarationList(node.initializer) && !(node.initializer.flags & 7 /* BlockScoped */)) { const exportStatements = appendExportsOfVariableDeclarationList( /*statements*/ void 0, @@ -106519,7 +108226,7 @@ function transformModule(context) { ); } function visitForOfStatement(node) { - if (isVariableDeclarationList(node.initializer) && !(node.initializer.flags & 3 /* BlockScoped */)) { + if (isVariableDeclarationList(node.initializer) && !(node.initializer.flags & 7 /* BlockScoped */)) { const exportStatements = appendExportsOfVariableDeclarationList( /*statements*/ void 0, @@ -106899,7 +108606,7 @@ function transformModule(context) { } return innerExpr; } - function visitImportDeclaration(node) { + function visitTopLevelImportDeclaration(node) { let statements; const namespaceDeclaration = getNamespaceDeclarationNode(node); if (moduleKind !== 2 /* AMD */) { @@ -107008,7 +108715,7 @@ function transformModule(context) { args ); } - function visitImportEqualsDeclaration(node) { + function visitTopLevelImportEqualsDeclaration(node) { Debug.assert(isExternalModuleImportEqualsDeclaration(node), "import= for internal module references should be handled in an earlier transformer."); let statements; if (moduleKind !== 2 /* AMD */) { @@ -107076,7 +108783,7 @@ function transformModule(context) { statements = appendExportsOfImportEqualsDeclaration(statements, node); return singleOrMany(statements); } - function visitExportDeclaration(node) { + function visitTopLevelExportDeclaration(node) { if (!node.moduleSpecifier) { return void 0; } @@ -107178,7 +108885,7 @@ function transformModule(context) { ); } } - function visitExportAssignment(node) { + function visitTopLevelExportAssignment(node) { if (node.isExportEquals) { return void 0; } @@ -107382,19 +109089,21 @@ function transformModule(context) { if (!importClause) { return statements; } + const seen = new IdentifierNameMap(); if (importClause.name) { - statements = appendExportsOfDeclaration(statements, importClause); + statements = appendExportsOfDeclaration(statements, seen, importClause); } const namedBindings = importClause.namedBindings; if (namedBindings) { switch (namedBindings.kind) { - case 273 /* NamespaceImport */: - statements = appendExportsOfDeclaration(statements, namedBindings); + case 274 /* NamespaceImport */: + statements = appendExportsOfDeclaration(statements, seen, namedBindings); break; - case 274 /* NamedImports */: + case 275 /* NamedImports */: for (const importBinding of namedBindings.elements) { statements = appendExportsOfDeclaration( statements, + seen, importBinding, /*liveBinding*/ true @@ -107409,7 +109118,7 @@ function transformModule(context) { if (currentModuleInfo.exportEquals) { return statements; } - return appendExportsOfDeclaration(statements, decl); + return appendExportsOfDeclaration(statements, new IdentifierNameMap(), decl); } function appendExportsOfVariableStatement(statements, node) { return appendExportsOfVariableDeclarationList( @@ -107439,7 +109148,7 @@ function transformModule(context) { } } } else if (!isGeneratedIdentifier(decl.name) && (!isVariableDeclaration(decl) || decl.initializer || isForInOrOfInitializer)) { - statements = appendExportsOfDeclaration(statements, decl); + statements = appendExportsOfDeclaration(statements, new IdentifierNameMap(), decl); } return statements; } @@ -107447,10 +109156,12 @@ function transformModule(context) { if (currentModuleInfo.exportEquals) { return statements; } + const seen = new IdentifierNameMap(); if (hasSyntacticModifier(decl, 1 /* Export */)) { const exportName = hasSyntacticModifier(decl, 1024 /* Default */) ? factory2.createIdentifier("default") : factory2.getDeclarationName(decl); statements = appendExportStatement( statements, + seen, exportName, factory2.getLocalName(decl), /*location*/ @@ -107458,17 +109169,18 @@ function transformModule(context) { ); } if (decl.name) { - statements = appendExportsOfDeclaration(statements, decl); + statements = appendExportsOfDeclaration(statements, seen, decl); } return statements; } - function appendExportsOfDeclaration(statements, decl, liveBinding) { + function appendExportsOfDeclaration(statements, seen, decl, liveBinding) { const name = factory2.getDeclarationName(decl); - const exportSpecifiers = currentModuleInfo.exportSpecifiers.get(idText(name)); + const exportSpecifiers = currentModuleInfo.exportSpecifiers.get(name); if (exportSpecifiers) { for (const exportSpecifier of exportSpecifiers) { statements = appendExportStatement( statements, + seen, exportSpecifier.name, name, /*location*/ @@ -107481,8 +109193,11 @@ function transformModule(context) { } return statements; } - function appendExportStatement(statements, exportName, expression, location, allowComments, liveBinding) { - statements = append(statements, createExportStatement(exportName, expression, location, allowComments, liveBinding)); + function appendExportStatement(statements, seen, exportName, expression, location, allowComments, liveBinding) { + if (!seen.has(exportName)) { + seen.set(exportName, true); + statements = append(statements, createExportStatement(exportName, expression, location, allowComments, liveBinding)); + } return statements; } function createUnderscoreUnderscoreESModule() { @@ -107577,7 +109292,7 @@ function transformModule(context) { return node; } function onEmitNode(hint, node, emitCallback) { - if (node.kind === 311 /* SourceFile */) { + if (node.kind === 312 /* SourceFile */) { currentSourceFile = node; currentModuleInfo = moduleInfoMap[getOriginalNodeId(currentSourceFile)]; previousOnEmitNode(hint, node, emitCallback); @@ -107615,11 +109330,11 @@ function transformModule(context) { switch (node.kind) { case 80 /* Identifier */: return substituteExpressionIdentifier(node); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return substituteCallExpression(node); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return substituteTaggedTemplateExpression(node); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return substituteBinaryExpression(node); } return node; @@ -107672,7 +109387,7 @@ function transformModule(context) { return node; } else if (!(isGeneratedIdentifier(node) && !(node.emitNode.autoGenerate.flags & 64 /* AllowNameSubstitution */)) && !isLocalName(node)) { const exportContainer = resolver.getReferencedExportContainer(node, isExportName(node)); - if (exportContainer && exportContainer.kind === 311 /* SourceFile */) { + if (exportContainer && exportContainer.kind === 312 /* SourceFile */) { return setTextRange( factory2.createPropertyAccessExpression( factory2.createIdentifier("exports"), @@ -107709,7 +109424,7 @@ function transformModule(context) { return node; } function substituteBinaryExpression(node) { - if (isAssignmentOperator(node.operatorToken.kind) && isIdentifier(node.left) && !isGeneratedIdentifier(node.left) && !isLocalName(node.left)) { + if (isAssignmentOperator(node.operatorToken.kind) && isIdentifier(node.left) && (!isGeneratedIdentifier(node.left) || isFileLevelReservedGeneratedIdentifier(node.left)) && !isLocalName(node.left)) { const exportedNames = getExports(node.left); if (exportedNames) { let expression = node; @@ -107748,6 +109463,15 @@ function transformModule(context) { return arrayFrom(bindingsSet); } } + } else if (isFileLevelReservedGeneratedIdentifier(name)) { + const exportSpecifiers = currentModuleInfo == null ? void 0 : currentModuleInfo.exportSpecifiers.get(name); + if (exportSpecifiers) { + const exportedNames = []; + for (const exportSpecifier of exportSpecifiers) { + exportedNames.push(exportSpecifier.name); + } + return exportedNames; + } } } } @@ -107774,10 +109498,10 @@ function transformSystemModule(context) { context.onSubstituteNode = onSubstituteNode; context.onEmitNode = onEmitNode; context.enableSubstitution(80 /* Identifier */); - context.enableSubstitution(303 /* ShorthandPropertyAssignment */); - context.enableSubstitution(225 /* BinaryExpression */); - context.enableSubstitution(235 /* MetaProperty */); - context.enableEmitNotification(311 /* SourceFile */); + context.enableSubstitution(304 /* ShorthandPropertyAssignment */); + context.enableSubstitution(226 /* BinaryExpression */); + context.enableSubstitution(236 /* MetaProperty */); + context.enableEmitNotification(312 /* SourceFile */); const moduleInfoMap = []; const exportFunctionsMap = []; const noSubstitutionMap = []; @@ -107797,7 +109521,7 @@ function transformSystemModule(context) { const id = getOriginalNodeId(node); currentSourceFile = node; enclosingBlockScopedContainer = node; - moduleInfo = moduleInfoMap[id] = collectExternalModuleInfo(context, node, resolver, compilerOptions); + moduleInfo = moduleInfoMap[id] = collectExternalModuleInfo(context, node); exportFunction = factory2.createUniqueName("exports"); exportFunctionsMap[id] = exportFunction; contextObject = contextObjectMap[id] = factory2.createUniqueName("context"); @@ -107964,7 +109688,7 @@ function transformSystemModule(context) { if (!moduleInfo.exportedNames && moduleInfo.exportSpecifiers.size === 0) { let hasExportDeclarationWithExportClause = false; for (const externalImport of moduleInfo.externalImports) { - if (externalImport.kind === 277 /* ExportDeclaration */ && externalImport.exportClause) { + if (externalImport.kind === 278 /* ExportDeclaration */ && externalImport.exportClause) { hasExportDeclarationWithExportClause = true; break; } @@ -108112,11 +109836,11 @@ function transformSystemModule(context) { for (const entry of group2.externalImports) { const importVariableName = getLocalNameForExternalImport(factory2, entry, currentSourceFile); switch (entry.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: if (!entry.importClause) { break; } - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: Debug.assert(importVariableName !== void 0); statements.push( factory2.createExpressionStatement( @@ -108139,7 +109863,7 @@ function transformSystemModule(context) { ); } break; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: Debug.assert(importVariableName !== void 0); if (entry.exportClause) { if (isNamedExports(entry.exportClause)) { @@ -108234,13 +109958,13 @@ function transformSystemModule(context) { } function topLevelVisitor(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return visitImportDeclaration(node); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return visitImportEqualsDeclaration(node); - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return visitExportDeclaration(node); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return visitExportAssignment(node); default: return topLevelNestedVisitor(node); @@ -108337,18 +110061,43 @@ function transformSystemModule(context) { if (!shouldHoistVariableDeclarationList(node.declarationList)) { return visitNode(node, visitor, isStatement); } - let expressions; - const isExportedDeclaration = hasSyntacticModifier(node, 1 /* Export */); - for (const variable of node.declarationList.declarations) { - if (variable.initializer) { - expressions = append(expressions, transformInitializedVariable(variable, isExportedDeclaration)); - } else { - hoistBindingElement(variable); - } - } let statements; - if (expressions) { - statements = append(statements, setTextRange(factory2.createExpressionStatement(factory2.inlineExpressions(expressions)), node)); + if (isVarUsing(node.declarationList) || isVarAwaitUsing(node.declarationList)) { + const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifierLike); + const declarations = []; + for (const variable of node.declarationList.declarations) { + declarations.push(factory2.updateVariableDeclaration( + variable, + factory2.getGeneratedNameForNode(variable.name), + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + transformInitializedVariable( + variable, + /*isExportedDeclaration*/ + false + ) + )); + } + const declarationList = factory2.updateVariableDeclarationList( + node.declarationList, + declarations + ); + statements = append(statements, factory2.updateVariableStatement(node, modifiers, declarationList)); + } else { + let expressions; + const isExportedDeclaration = hasSyntacticModifier(node, 1 /* Export */); + for (const variable of node.declarationList.declarations) { + if (variable.initializer) { + expressions = append(expressions, transformInitializedVariable(variable, isExportedDeclaration)); + } else { + hoistBindingElement(variable); + } + } + if (expressions) { + statements = append(statements, setTextRange(factory2.createExpressionStatement(factory2.inlineExpressions(expressions)), node)); + } } statements = appendExportsOfVariableStatement( statements, @@ -108370,7 +110119,7 @@ function transformSystemModule(context) { } } function shouldHoistVariableDeclarationList(node) { - return (getEmitFlags(node) & 4194304 /* NoHoisting */) === 0 && (enclosingBlockScopedContainer.kind === 311 /* SourceFile */ || (getOriginalNode(node).flags & 3 /* BlockScoped */) === 0); + return (getEmitFlags(node) & 4194304 /* NoHoisting */) === 0 && (enclosingBlockScopedContainer.kind === 312 /* SourceFile */ || (getOriginalNode(node).flags & 7 /* BlockScoped */) === 0); } function transformInitializedVariable(node, isExportedDeclaration) { const createAssignment = isExportedDeclaration ? createExportedVariableAssignment : createNonExportedVariableAssignment; @@ -108420,10 +110169,10 @@ function transformSystemModule(context) { const namedBindings = importClause.namedBindings; if (namedBindings) { switch (namedBindings.kind) { - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: statements = appendExportsOfDeclaration(statements, namedBindings); break; - case 274 /* NamedImports */: + case 275 /* NamedImports */: for (const importBinding of namedBindings.elements) { statements = appendExportsOfDeclaration(statements, importBinding); } @@ -108489,7 +110238,7 @@ function transformSystemModule(context) { return statements; } const name = factory2.getDeclarationName(decl); - const exportSpecifiers = moduleInfo.exportSpecifiers.get(idText(name)); + const exportSpecifiers = moduleInfo.exportSpecifiers.get(name); if (exportSpecifiers) { for (const exportSpecifier of exportSpecifiers) { if (exportSpecifier.name.escapedText !== excludeName) { @@ -108523,45 +110272,45 @@ function transformSystemModule(context) { } function topLevelNestedVisitor(node) { switch (node.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return visitVariableStatement(node); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return visitFunctionDeclaration(node); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return visitClassDeclaration(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement( node, /*isTopLevel*/ true ); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return visitForInStatement(node); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return visitForOfStatement(node); - case 245 /* DoStatement */: + case 246 /* DoStatement */: return visitDoStatement(node); - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: return visitWhileStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return visitLabeledStatement(node); - case 253 /* WithStatement */: + case 254 /* WithStatement */: return visitWithStatement(node); - case 244 /* IfStatement */: + case 245 /* IfStatement */: return visitIfStatement(node); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return visitSwitchStatement(node); - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: return visitCaseBlock(node); - case 295 /* CaseClause */: + case 296 /* CaseClause */: return visitCaseClause(node); - case 296 /* DefaultClause */: + case 297 /* DefaultClause */: return visitDefaultClause(node); - case 257 /* TryStatement */: + case 258 /* TryStatement */: return visitTryStatement(node); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return visitCatchClause(node); - case 240 /* Block */: + case 241 /* Block */: return visitBlock(node); default: return visitor(node); @@ -108715,30 +110464,30 @@ function transformSystemModule(context) { return node; } switch (node.kind) { - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement( node, /*isTopLevel*/ false ); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return visitExpressionStatement(node); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression(node, valueIsDiscarded); - case 359 /* PartiallyEmittedExpression */: + case 360 /* PartiallyEmittedExpression */: return visitPartiallyEmittedExpression(node, valueIsDiscarded); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: if (isDestructuringAssignment(node)) { return visitDestructuringAssignment(node, valueIsDiscarded); } break; - case 212 /* CallExpression */: + case 213 /* CallExpression */: if (isImportCall(node)) { return visitImportCallExpression(node); } break; - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return visitPrefixOrPostfixUnaryExpression(node, valueIsDiscarded); } return visitEachChild(node, visitor, context); @@ -108811,7 +110560,7 @@ function transformSystemModule(context) { return hasExportedReferenceInDestructuringTarget(node.initializer); } else if (isIdentifier(node)) { const container = resolver.getReferencedExportContainer(node); - return container !== void 0 && container.kind === 311 /* SourceFile */; + return container !== void 0 && container.kind === 312 /* SourceFile */; } else { return false; } @@ -108855,7 +110604,7 @@ function transformSystemModule(context) { return node; } function onEmitNode(hint, node, emitCallback) { - if (node.kind === 311 /* SourceFile */) { + if (node.kind === 312 /* SourceFile */) { const id = getOriginalNodeId(node); currentSourceFile = node; moduleInfo = moduleInfoMap[id]; @@ -108889,7 +110638,7 @@ function transformSystemModule(context) { } function substituteUnspecified(node) { switch (node.kind) { - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return substituteShorthandPropertyAssignment(node); } return node; @@ -108933,9 +110682,9 @@ function transformSystemModule(context) { switch (node.kind) { case 80 /* Identifier */: return substituteExpressionIdentifier(node); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return substituteBinaryExpression(node); - case 235 /* MetaProperty */: + case 236 /* MetaProperty */: return substituteMetaProperty(node); } return node; @@ -108976,7 +110725,7 @@ function transformSystemModule(context) { return node; } function substituteBinaryExpression(node) { - if (isAssignmentOperator(node.operatorToken.kind) && isIdentifier(node.left) && !isGeneratedIdentifier(node.left) && !isLocalName(node.left)) { + if (isAssignmentOperator(node.operatorToken.kind) && isIdentifier(node.left) && (!isGeneratedIdentifier(node.left) || isFileLevelReservedGeneratedIdentifier(node.left)) && !isLocalName(node.left)) { const exportedNames = getExports(node.left); if (exportedNames) { let expression = node; @@ -109003,10 +110752,19 @@ function transformSystemModule(context) { /*prefixLocals*/ false ); - if (exportContainer && exportContainer.kind === 311 /* SourceFile */) { + if (exportContainer && exportContainer.kind === 312 /* SourceFile */) { exportedNames = append(exportedNames, factory2.getDeclarationName(valueDeclaration)); } exportedNames = addRange(exportedNames, moduleInfo == null ? void 0 : moduleInfo.exportedBindings[getOriginalNodeId(valueDeclaration)]); + } else if (isGeneratedIdentifier(name) && isFileLevelReservedGeneratedIdentifier(name)) { + const exportSpecifiers = moduleInfo == null ? void 0 : moduleInfo.exportSpecifiers.get(name); + if (exportSpecifiers) { + const exportedNames2 = []; + for (const exportSpecifier of exportSpecifiers) { + exportedNames2.push(exportSpecifier.name); + } + return exportedNames2; + } } return exportedNames; } @@ -109053,7 +110811,7 @@ function transformECMAScriptModule(context) { const previousOnSubstituteNode = context.onSubstituteNode; context.onEmitNode = onEmitNode; context.onSubstituteNode = onSubstituteNode; - context.enableEmitNotification(311 /* SourceFile */); + context.enableEmitNotification(312 /* SourceFile */); context.enableSubstitution(80 /* Identifier */); let helperNameSubstitutions; let currentSourceFile; @@ -109101,11 +110859,11 @@ function transformECMAScriptModule(context) { } function visitor(node) { switch (node.kind) { - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return getEmitModuleKind(compilerOptions) >= 100 /* Node16 */ ? visitImportEqualsDeclaration(node) : void 0; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return visitExportAssignment(node); - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: const exportDecl = node; return visitExportDeclaration(exportDecl); } @@ -109310,8 +111068,8 @@ function transformNodeModule(context) { const cjsOnEmitNode = context.onEmitNode; context.onSubstituteNode = onSubstituteNode; context.onEmitNode = onEmitNode; - context.enableSubstitution(311 /* SourceFile */); - context.enableEmitNotification(311 /* SourceFile */); + context.enableSubstitution(312 /* SourceFile */); + context.enableEmitNotification(312 /* SourceFile */); let currentSourceFile; return transformSourceFileOrBundle; function onSubstituteNode(hint, node) { @@ -109354,7 +111112,7 @@ function transformNodeModule(context) { return result; } function transformSourceFileOrBundle(node) { - return node.kind === 311 /* SourceFile */ ? transformSourceFile(node) : transformBundle(node); + return node.kind === 312 /* SourceFile */ ? transformSourceFile(node) : transformBundle(node); } function transformBundle(node) { return context.factory.createBundle(map(node.sourceFiles, transformSourceFile), node.prepends); @@ -109384,7 +111142,7 @@ function createGetSymbolAccessibilityDiagnosticForNodeName(node) { function getAccessorNameVisibilityDiagnosticMessage(symbolAccessibilityResult) { if (isStatic(node)) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1; - } else if (node.parent.kind === 262 /* ClassDeclaration */) { + } else if (node.parent.kind === 263 /* ClassDeclaration */) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1; } else { return symbolAccessibilityResult.errorModuleName ? Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1; @@ -109401,7 +111159,7 @@ function createGetSymbolAccessibilityDiagnosticForNodeName(node) { function getMethodNameVisibilityDiagnosticMessage(symbolAccessibilityResult) { if (isStatic(node)) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1; - } else if (node.parent.kind === 262 /* ClassDeclaration */) { + } else if (node.parent.kind === 263 /* ClassDeclaration */) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1; } else { return symbolAccessibilityResult.errorModuleName ? Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1; @@ -109432,12 +111190,12 @@ function createGetSymbolAccessibilityDiagnosticForNode(node) { return Debug.assertNever(node, `Attempted to set a declaration diagnostic context for unhandled node kind: ${Debug.formatSyntaxKind(node.kind)}`); } function getVariableDeclarationTypeVisibilityDiagnosticMessage(symbolAccessibilityResult) { - if (node.kind === 259 /* VariableDeclaration */ || node.kind === 207 /* BindingElement */) { + if (node.kind === 260 /* VariableDeclaration */ || node.kind === 208 /* BindingElement */) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Exported_variable_0_has_or_is_using_private_name_1; - } else if (node.kind === 171 /* PropertyDeclaration */ || node.kind === 210 /* PropertyAccessExpression */ || node.kind === 211 /* ElementAccessExpression */ || node.kind === 225 /* BinaryExpression */ || node.kind === 170 /* PropertySignature */ || node.kind === 168 /* Parameter */ && hasSyntacticModifier(node.parent, 8 /* Private */)) { + } else if (node.kind === 172 /* PropertyDeclaration */ || node.kind === 211 /* PropertyAccessExpression */ || node.kind === 212 /* ElementAccessExpression */ || node.kind === 226 /* BinaryExpression */ || node.kind === 171 /* PropertySignature */ || node.kind === 169 /* Parameter */ && hasSyntacticModifier(node.parent, 8 /* Private */)) { if (isStatic(node)) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1; - } else if (node.parent.kind === 262 /* ClassDeclaration */ || node.kind === 168 /* Parameter */) { + } else if (node.parent.kind === 263 /* ClassDeclaration */ || node.kind === 169 /* Parameter */) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1; } else { return symbolAccessibilityResult.errorModuleName ? Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1; @@ -109454,7 +111212,7 @@ function createGetSymbolAccessibilityDiagnosticForNode(node) { } function getAccessorDeclarationTypeVisibilityError(symbolAccessibilityResult) { let diagnosticMessage; - if (node.kind === 177 /* SetAccessor */) { + if (node.kind === 178 /* SetAccessor */) { if (isStatic(node)) { diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1; } else { @@ -109476,26 +111234,26 @@ function createGetSymbolAccessibilityDiagnosticForNode(node) { function getReturnTypeVisibilityError(symbolAccessibilityResult) { let diagnosticMessage; switch (node.kind) { - case 179 /* ConstructSignature */: + case 180 /* ConstructSignature */: diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0; break; - case 178 /* CallSignature */: + case 179 /* CallSignature */: diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0; break; - case 180 /* IndexSignature */: + case 181 /* IndexSignature */: diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0; break; - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: if (isStatic(node)) { diagnosticMessage = symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0; - } else if (node.parent.kind === 262 /* ClassDeclaration */) { + } else if (node.parent.kind === 263 /* ClassDeclaration */) { diagnosticMessage = symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0; } else { diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0; } break; - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: diagnosticMessage = symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0; break; default: @@ -109516,29 +111274,29 @@ function createGetSymbolAccessibilityDiagnosticForNode(node) { } function getParameterDeclarationTypeVisibilityDiagnosticMessage(symbolAccessibilityResult) { switch (node.parent.kind) { - case 175 /* Constructor */: + case 176 /* Constructor */: return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1; - case 179 /* ConstructSignature */: - case 184 /* ConstructorType */: + case 180 /* ConstructSignature */: + case 185 /* ConstructorType */: return symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1; - case 178 /* CallSignature */: + case 179 /* CallSignature */: return symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1; - case 180 /* IndexSignature */: + case 181 /* IndexSignature */: return symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1; - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: if (isStatic(node.parent)) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1; - } else if (node.parent.parent.kind === 262 /* ClassDeclaration */) { + } else if (node.parent.parent.kind === 263 /* ClassDeclaration */) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1; } else { return symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1; } - case 261 /* FunctionDeclaration */: - case 183 /* FunctionType */: + case 262 /* FunctionDeclaration */: + case 184 /* FunctionType */: return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1; - case 177 /* SetAccessor */: - case 176 /* GetAccessor */: + case 178 /* SetAccessor */: + case 177 /* GetAccessor */: return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1; default: return Debug.fail(`Unknown parent for parameter: ${Debug.formatSyntaxKind(node.parent.kind)}`); @@ -109547,40 +111305,40 @@ function createGetSymbolAccessibilityDiagnosticForNode(node) { function getTypeParameterConstraintVisibilityError() { let diagnosticMessage; switch (node.parent.kind) { - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1; break; - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1; break; - case 199 /* MappedType */: + case 200 /* MappedType */: diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1; break; - case 184 /* ConstructorType */: - case 179 /* ConstructSignature */: + case 185 /* ConstructorType */: + case 180 /* ConstructSignature */: diagnosticMessage = Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1; break; - case 178 /* CallSignature */: + case 179 /* CallSignature */: diagnosticMessage = Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1; break; - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: if (isStatic(node.parent)) { diagnosticMessage = Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1; - } else if (node.parent.parent.kind === 262 /* ClassDeclaration */) { + } else if (node.parent.parent.kind === 263 /* ClassDeclaration */) { diagnosticMessage = Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1; } else { diagnosticMessage = Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1; } break; - case 183 /* FunctionType */: - case 261 /* FunctionDeclaration */: + case 184 /* FunctionType */: + case 262 /* FunctionDeclaration */: diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1; break; - case 194 /* InferType */: + case 195 /* InferType */: diagnosticMessage = Diagnostics.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1; break; - case 264 /* TypeAliasDeclaration */: + case 265 /* TypeAliasDeclaration */: diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1; break; default: @@ -109642,7 +111400,7 @@ function hasInternalAnnotation(range, currentSourceFile) { } function isInternalDeclaration(node, currentSourceFile) { const parseTreeNode = getParseTreeNode(node); - if (parseTreeNode && parseTreeNode.kind === 168 /* Parameter */) { + if (parseTreeNode && parseTreeNode.kind === 169 /* Parameter */) { const paramIdx = parseTreeNode.parent.parameters.indexOf(parseTreeNode); const previousSibling = paramIdx > 0 ? parseTreeNode.parent.parameters[paramIdx - 1] : void 0; const text = currentSourceFile.text; @@ -109874,10 +111632,10 @@ function transformDeclarations(context) { return result; } function transformRoot(node) { - if (node.kind === 311 /* SourceFile */ && node.isDeclarationFile) { + if (node.kind === 312 /* SourceFile */ && node.isDeclarationFile) { return node; } - if (node.kind === 312 /* Bundle */) { + if (node.kind === 313 /* Bundle */) { isBundledEmit = true; refs = /* @__PURE__ */ new Map(); libs2 = /* @__PURE__ */ new Map(); @@ -109944,7 +111702,7 @@ function transformDeclarations(context) { ); } ), mapDefined(node.prepends, (prepend) => { - if (prepend.kind === 314 /* InputFiles */) { + if (prepend.kind === 315 /* InputFiles */) { const sourceFile = createUnparsedSourceFile(prepend, "dts", stripInternal); hasNoDefaultLib = hasNoDefaultLib || !!sourceFile.hasNoDefaultLib; collectReferences(sourceFile, refs); @@ -110112,14 +111870,14 @@ function transformDeclarations(context) { if (name.kind === 80 /* Identifier */) { return name; } else { - if (name.kind === 206 /* ArrayBindingPattern */) { + if (name.kind === 207 /* ArrayBindingPattern */) { return factory2.updateArrayBindingPattern(name, visitNodes2(name.elements, visitBindingElement, isArrayBindingElement)); } else { return factory2.updateObjectBindingPattern(name, visitNodes2(name.elements, visitBindingElement, isBindingElement)); } } function visitBindingElement(elem) { - if (elem.kind === 231 /* OmittedExpression */) { + if (elem.kind === 232 /* OmittedExpression */) { return elem; } if (elem.propertyName && isIdentifier(elem.propertyName) && isIdentifier(elem.name) && !elem.symbol.isReferenced && !isIdentifierANonContextualKeyword(elem.propertyName)) { @@ -110183,14 +111941,14 @@ function transformDeclarations(context) { if (shouldPrintWithInitializer(node)) { return; } - const shouldUseResolverType = node.kind === 168 /* Parameter */ && (resolver.isRequiredInitializedParameter(node) || resolver.isOptionalUninitializedParameterProperty(node)); + const shouldUseResolverType = node.kind === 169 /* Parameter */ && (resolver.isRequiredInitializedParameter(node) || resolver.isOptionalUninitializedParameterProperty(node)); if (type && !shouldUseResolverType) { return visitNode(type, visitDeclarationSubtree, isTypeNode); } if (!getParseTreeNode(node)) { return type ? visitNode(type, visitDeclarationSubtree, isTypeNode) : factory2.createKeywordTypeNode(133 /* AnyKeyword */); } - if (node.kind === 177 /* SetAccessor */) { + if (node.kind === 178 /* SetAccessor */) { return factory2.createKeywordTypeNode(133 /* AnyKeyword */); } errorNameNode = node.name; @@ -110199,10 +111957,10 @@ function transformDeclarations(context) { oldDiag = getSymbolAccessibilityDiagnostic; getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(node); } - if (node.kind === 259 /* VariableDeclaration */ || node.kind === 207 /* BindingElement */) { + if (node.kind === 260 /* VariableDeclaration */ || node.kind === 208 /* BindingElement */) { return cleanup(resolver.createTypeOfDeclaration(node, enclosingDeclaration, declarationEmitNodeBuilderFlags, symbolTracker)); } - if (node.kind === 168 /* Parameter */ || node.kind === 171 /* PropertyDeclaration */ || node.kind === 170 /* PropertySignature */) { + if (node.kind === 169 /* Parameter */ || node.kind === 172 /* PropertyDeclaration */ || node.kind === 171 /* PropertySignature */) { if (isPropertySignature(node) || !node.initializer) return cleanup(resolver.createTypeOfDeclaration(node, enclosingDeclaration, declarationEmitNodeBuilderFlags, symbolTracker, shouldUseResolverType)); return cleanup(resolver.createTypeOfDeclaration(node, enclosingDeclaration, declarationEmitNodeBuilderFlags, symbolTracker, shouldUseResolverType) || resolver.createTypeOfExpression(node.initializer, enclosingDeclaration, declarationEmitNodeBuilderFlags, symbolTracker)); @@ -110219,21 +111977,21 @@ function transformDeclarations(context) { function isDeclarationAndNotVisible(node) { node = getParseTreeNode(node); switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 266 /* ModuleDeclaration */: - case 263 /* InterfaceDeclaration */: - case 262 /* ClassDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 265 /* EnumDeclaration */: + case 262 /* FunctionDeclaration */: + case 267 /* ModuleDeclaration */: + case 264 /* InterfaceDeclaration */: + case 263 /* ClassDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 266 /* EnumDeclaration */: return !resolver.isDeclarationVisible(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return !getBindingNameVisible(node); - case 270 /* ImportEqualsDeclaration */: - case 271 /* ImportDeclaration */: - case 277 /* ExportDeclaration */: - case 276 /* ExportAssignment */: + case 271 /* ImportEqualsDeclaration */: + case 272 /* ImportDeclaration */: + case 278 /* ExportDeclaration */: + case 277 /* ExportAssignment */: return false; - case 174 /* ClassStaticBlockDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: return true; } return false; @@ -110321,7 +112079,7 @@ function transformDeclarations(context) { function rewriteModuleSpecifier(parent2, input) { if (!input) return void 0; - resultHasExternalModuleIndicator = resultHasExternalModuleIndicator || parent2.kind !== 266 /* ModuleDeclaration */ && parent2.kind !== 204 /* ImportType */; + resultHasExternalModuleIndicator = resultHasExternalModuleIndicator || parent2.kind !== 267 /* ModuleDeclaration */ && parent2.kind !== 205 /* ImportType */; if (isStringLiteralLike(input)) { if (isBundledEmit) { const newName = getExternalModuleNameFromDeclaration(context.getEmitHost(), resolver, parent2); @@ -110340,7 +112098,7 @@ function transformDeclarations(context) { function transformImportEqualsDeclaration(decl) { if (!resolver.isDeclarationVisible(decl)) return; - if (decl.moduleReference.kind === 282 /* ExternalModuleReference */) { + if (decl.moduleReference.kind === 283 /* ExternalModuleReference */) { const specifier = getExternalModuleImportEqualsDeclarationExpression(decl); return factory2.updateImportEqualsDeclaration( decl, @@ -110377,7 +112135,7 @@ function transformDeclarations(context) { void 0 ), rewriteModuleSpecifier(decl, decl.moduleSpecifier), getResolutionModeOverrideForClauseInNightly(decl.assertClause)); } - if (decl.importClause.namedBindings.kind === 273 /* NamespaceImport */) { + if (decl.importClause.namedBindings.kind === 274 /* NamespaceImport */) { const namedBindings = resolver.isDeclarationVisible(decl.importClause.namedBindings) ? decl.importClause.namedBindings : ( /*namedBindings*/ void 0 @@ -110480,7 +112238,7 @@ function transformDeclarations(context) { const oldDiag = getSymbolAccessibilityDiagnostic; const canProduceDiagnostic = canProduceDiagnostics(input); const oldWithinObjectLiteralType = suppressNewDiagnosticContexts; - let shouldEnterSuppressNewDiagnosticsContextContext = (input.kind === 186 /* TypeLiteral */ || input.kind === 199 /* MappedType */) && input.parent.kind !== 264 /* TypeAliasDeclaration */; + let shouldEnterSuppressNewDiagnosticsContextContext = (input.kind === 187 /* TypeLiteral */ || input.kind === 200 /* MappedType */) && input.parent.kind !== 265 /* TypeAliasDeclaration */; if (isMethodDeclaration(input) || isMethodSignature(input)) { if (hasEffectiveModifier(input, 8 /* Private */)) { if (input.symbol && input.symbol.declarations && input.symbol.declarations[0] !== input) @@ -110508,26 +112266,26 @@ function transformDeclarations(context) { } if (isProcessedComponent(input)) { switch (input.kind) { - case 232 /* ExpressionWithTypeArguments */: { + case 233 /* ExpressionWithTypeArguments */: { if (isEntityName(input.expression) || isEntityNameExpression(input.expression)) { checkEntityNameVisibility(input.expression, enclosingDeclaration); } const node = visitEachChild(input, visitDeclarationSubtree, context); return cleanup(factory2.updateExpressionWithTypeArguments(node, node.expression, node.typeArguments)); } - case 182 /* TypeReference */: { + case 183 /* TypeReference */: { checkEntityNameVisibility(input.typeName, enclosingDeclaration); const node = visitEachChild(input, visitDeclarationSubtree, context); return cleanup(factory2.updateTypeReferenceNode(node, node.typeName, node.typeArguments)); } - case 179 /* ConstructSignature */: + case 180 /* ConstructSignature */: return cleanup(factory2.updateConstructSignature( input, ensureTypeParams(input, input.typeParameters), updateParamsList(input, input.parameters), ensureType(input, input.type) )); - case 175 /* Constructor */: { + case 176 /* Constructor */: { const ctor = factory2.createConstructorDeclaration( /*modifiers*/ ensureModifiers(input), @@ -110537,7 +112295,7 @@ function transformDeclarations(context) { ); return cleanup(ctor); } - case 173 /* MethodDeclaration */: { + case 174 /* MethodDeclaration */: { if (isPrivateIdentifier(input.name)) { return cleanup( /*returnValue*/ @@ -110558,7 +112316,7 @@ function transformDeclarations(context) { ); return cleanup(sig); } - case 176 /* GetAccessor */: { + case 177 /* GetAccessor */: { if (isPrivateIdentifier(input.name)) { return cleanup( /*returnValue*/ @@ -110576,7 +112334,7 @@ function transformDeclarations(context) { void 0 )); } - case 177 /* SetAccessor */: { + case 178 /* SetAccessor */: { if (isPrivateIdentifier(input.name)) { return cleanup( /*returnValue*/ @@ -110592,7 +112350,7 @@ function transformDeclarations(context) { void 0 )); } - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: if (isPrivateIdentifier(input.name)) { return cleanup( /*returnValue*/ @@ -110607,7 +112365,7 @@ function transformDeclarations(context) { ensureType(input, input.type), ensureNoInitializer(input) )); - case 170 /* PropertySignature */: + case 171 /* PropertySignature */: if (isPrivateIdentifier(input.name)) { return cleanup( /*returnValue*/ @@ -110621,7 +112379,7 @@ function transformDeclarations(context) { input.questionToken, ensureType(input, input.type) )); - case 172 /* MethodSignature */: { + case 173 /* MethodSignature */: { if (isPrivateIdentifier(input.name)) { return cleanup( /*returnValue*/ @@ -110638,7 +112396,7 @@ function transformDeclarations(context) { ensureType(input, input.type) )); } - case 178 /* CallSignature */: { + case 179 /* CallSignature */: { return cleanup(factory2.updateCallSignature( input, ensureTypeParams(input, input.typeParameters), @@ -110646,7 +112404,7 @@ function transformDeclarations(context) { ensureType(input, input.type) )); } - case 180 /* IndexSignature */: { + case 181 /* IndexSignature */: { return cleanup(factory2.updateIndexSignature( input, ensureModifiers(input), @@ -110654,7 +112412,7 @@ function transformDeclarations(context) { visitNode(input.type, visitDeclarationSubtree, isTypeNode) || factory2.createKeywordTypeNode(133 /* AnyKeyword */) )); } - case 259 /* VariableDeclaration */: { + case 260 /* VariableDeclaration */: { if (isBindingPattern(input.name)) { return recreateBindingPattern(input.name); } @@ -110669,7 +112427,7 @@ function transformDeclarations(context) { ensureNoInitializer(input) )); } - case 167 /* TypeParameter */: { + case 168 /* TypeParameter */: { if (isPrivateMethodTypeParameter(input) && (input.default || input.constraint)) { return cleanup(factory2.updateTypeParameterDeclaration( input, @@ -110683,7 +112441,7 @@ function transformDeclarations(context) { } return cleanup(visitEachChild(input, visitDeclarationSubtree, context)); } - case 193 /* ConditionalType */: { + case 194 /* ConditionalType */: { const checkType = visitNode(input.checkType, visitDeclarationSubtree, isTypeNode); const extendsType = visitNode(input.extendsType, visitDeclarationSubtree, isTypeNode); const oldEnclosingDecl = enclosingDeclaration; @@ -110697,13 +112455,13 @@ function transformDeclarations(context) { Debug.assert(falseType); return cleanup(factory2.updateConditionalTypeNode(input, checkType, extendsType, trueType, falseType)); } - case 183 /* FunctionType */: { + case 184 /* FunctionType */: { return cleanup(factory2.updateFunctionTypeNode(input, visitNodes2(input.typeParameters, visitDeclarationSubtree, isTypeParameterDeclaration), updateParamsList(input, input.parameters), Debug.checkDefined(visitNode(input.type, visitDeclarationSubtree, isTypeNode)))); } - case 184 /* ConstructorType */: { + case 185 /* ConstructorType */: { return cleanup(factory2.updateConstructorTypeNode(input, ensureModifiers(input), visitNodes2(input.typeParameters, visitDeclarationSubtree, isTypeParameterDeclaration), updateParamsList(input, input.parameters), Debug.checkDefined(visitNode(input.type, visitDeclarationSubtree, isTypeNode)))); } - case 204 /* ImportType */: { + case 205 /* ImportType */: { if (!isLiteralImportTypeNode(input)) return cleanup(input); return cleanup(factory2.updateImportTypeNode( @@ -110743,7 +112501,7 @@ function transformDeclarations(context) { } } function isPrivateMethodTypeParameter(node) { - return node.parent.kind === 173 /* MethodDeclaration */ && hasEffectiveModifier(node.parent, 8 /* Private */); + return node.parent.kind === 174 /* MethodDeclaration */ && hasEffectiveModifier(node.parent, 8 /* Private */); } function visitDeclarationStatements(input) { if (!isPreservedDeclarationStatement(input)) { @@ -110752,7 +112510,7 @@ function transformDeclarations(context) { if (shouldStripInternal(input)) return; switch (input.kind) { - case 277 /* ExportDeclaration */: { + case 278 /* ExportDeclaration */: { if (isSourceFile(input.parent)) { resultHasExternalModuleIndicator = true; } @@ -110766,7 +112524,7 @@ function transformDeclarations(context) { getResolutionModeOverrideForClause(input.assertClause) ? input.assertClause : void 0 ); } - case 276 /* ExportAssignment */: { + case 277 /* ExportAssignment */: { if (isSourceFile(input.parent)) { resultHasExternalModuleIndicator = true; } @@ -110807,6 +112565,21 @@ function transformDeclarations(context) { const modifiers = factory2.createModifiersFromModifierFlags(getEffectiveModifierFlags(statement) & (258047 /* All */ ^ 1 /* Export */)); return factory2.updateModifiers(statement, modifiers); } + function updateModuleDeclarationAndKeyword(node, modifiers, name, body) { + const updated = factory2.updateModuleDeclaration(node, modifiers, name, body); + if (isAmbientModule(updated) || updated.flags & 32 /* Namespace */) { + return updated; + } + const fixed = factory2.createModuleDeclaration( + updated.modifiers, + updated.name, + updated.body, + updated.flags | 32 /* Namespace */ + ); + setOriginalNode(fixed, updated); + setTextRange(fixed, updated); + return fixed; + } function transformTopLevelDeclaration(input) { if (lateMarkedStatements) { while (orderedRemoveItem(lateMarkedStatements, input)) @@ -110815,10 +112588,10 @@ function transformDeclarations(context) { if (shouldStripInternal(input)) return; switch (input.kind) { - case 270 /* ImportEqualsDeclaration */: { + case 271 /* ImportEqualsDeclaration */: { return transformImportEqualsDeclaration(input); } - case 271 /* ImportDeclaration */: { + case 272 /* ImportDeclaration */: { return transformImportDeclaration(input); } } @@ -110838,7 +112611,7 @@ function transformDeclarations(context) { } const previousNeedsDeclare = needsDeclare; switch (input.kind) { - case 264 /* TypeAliasDeclaration */: { + case 265 /* TypeAliasDeclaration */: { needsDeclare = false; const clean2 = cleanup(factory2.updateTypeAliasDeclaration( input, @@ -110850,7 +112623,7 @@ function transformDeclarations(context) { needsDeclare = previousNeedsDeclare; return clean2; } - case 263 /* InterfaceDeclaration */: { + case 264 /* InterfaceDeclaration */: { return cleanup(factory2.updateInterfaceDeclaration( input, ensureModifiers(input), @@ -110860,7 +112633,7 @@ function transformDeclarations(context) { visitNodes2(input.members, visitDeclarationSubtree, isTypeElement) )); } - case 261 /* FunctionDeclaration */: { + case 262 /* FunctionDeclaration */: { const clean2 = cleanup(factory2.updateFunctionDeclaration( input, ensureModifiers(input), @@ -110880,7 +112653,7 @@ function transformDeclarations(context) { void 0, clean2.name || factory2.createIdentifier("_default"), factory2.createModuleBlock([]), - 16 /* Namespace */ + 32 /* Namespace */ ); setParent(fakespace, enclosingDeclaration); fakespace.locals = createSymbolTable(props); @@ -110930,7 +112703,7 @@ function transformDeclarations(context) { })) )); } - const namespaceDecl = factory2.createModuleDeclaration(ensureModifiers(input), input.name, factory2.createModuleBlock(declarations), 16 /* Namespace */); + const namespaceDecl = factory2.createModuleDeclaration(ensureModifiers(input), input.name, factory2.createModuleBlock(declarations), 32 /* Namespace */); if (!hasEffectiveModifier(clean2, 1024 /* Default */)) { return [clean2, namespaceDecl]; } @@ -110969,17 +112742,17 @@ function transformDeclarations(context) { return clean2; } } - case 266 /* ModuleDeclaration */: { + case 267 /* ModuleDeclaration */: { needsDeclare = false; const inner = input.body; - if (inner && inner.kind === 267 /* ModuleBlock */) { + if (inner && inner.kind === 268 /* ModuleBlock */) { const oldNeedsScopeFix = needsScopeFixMarker; const oldHasScopeFix = resultHasScopeMarker; resultHasScopeMarker = false; needsScopeFixMarker = false; const statements = visitNodes2(inner.statements, visitDeclarationStatements, isStatement); let lateStatements = transformAndReplaceLatePaintedStatements(statements); - if (input.flags & 16777216 /* Ambient */) { + if (input.flags & 33554432 /* Ambient */) { needsScopeFixMarker = false; } if (!isGlobalScopeAugmentation(input) && !hasScopeMarker2(lateStatements) && !resultHasScopeMarker) { @@ -110994,7 +112767,7 @@ function transformDeclarations(context) { needsScopeFixMarker = oldNeedsScopeFix; resultHasScopeMarker = oldHasScopeFix; const mods = ensureModifiers(input); - return cleanup(factory2.updateModuleDeclaration( + return cleanup(updateModuleDeclarationAndKeyword( input, mods, isExternalModuleAugmentation(input) ? rewriteModuleSpecifier(input, input.name) : input.name, @@ -111008,7 +112781,7 @@ function transformDeclarations(context) { const id = getOriginalNodeId(inner); const body = lateStatementReplacementMap.get(id); lateStatementReplacementMap.delete(id); - return cleanup(factory2.updateModuleDeclaration( + return cleanup(updateModuleDeclarationAndKeyword( input, mods, input.name, @@ -111016,7 +112789,7 @@ function transformDeclarations(context) { )); } } - case 262 /* ClassDeclaration */: { + case 263 /* ClassDeclaration */: { errorNameNode = input.name; errorFallbackNode = input; const modifiers = factory2.createNodeArray(ensureModifiers(input)); @@ -111132,10 +112905,10 @@ function transformDeclarations(context) { )); } } - case 242 /* VariableStatement */: { + case 243 /* VariableStatement */: { return cleanup(transformVariableStatement(input)); } - case 265 /* EnumDeclaration */: { + case 266 /* EnumDeclaration */: { return cleanup(factory2.updateEnumDeclaration(input, factory2.createNodeArray(ensureModifiers(input)), input.name, factory2.createNodeArray(mapDefined(input.members, (m) => { if (shouldStripInternal(m)) return; @@ -111152,7 +112925,7 @@ function transformDeclarations(context) { if (canProdiceDiagnostic) { getSymbolAccessibilityDiagnostic = oldDiag; } - if (input.kind === 266 /* ModuleDeclaration */) { + if (input.kind === 267 /* ModuleDeclaration */) { needsDeclare = previousNeedsDeclare; } if (node === input) { @@ -111169,13 +112942,23 @@ function transformDeclarations(context) { const nodes = visitNodes2(input.declarationList.declarations, visitDeclarationSubtree, isVariableDeclaration); if (!length(nodes)) return; - return factory2.updateVariableStatement(input, factory2.createNodeArray(ensureModifiers(input)), factory2.updateVariableDeclarationList(input.declarationList, nodes)); + const modifiers = factory2.createNodeArray(ensureModifiers(input)); + let declList; + if (isVarUsing(input.declarationList) || isVarAwaitUsing(input.declarationList)) { + declList = factory2.createVariableDeclarationList(nodes, 2 /* Const */); + setOriginalNode(declList, input.declarationList); + setTextRange(declList, input.declarationList); + setCommentRange(declList, input.declarationList); + } else { + declList = factory2.updateVariableDeclarationList(input.declarationList, nodes); + } + return factory2.updateVariableStatement(input, modifiers, declList); } function recreateBindingPattern(d) { return flatten(mapDefined(d.elements, (e) => recreateBindingElement(e))); } function recreateBindingElement(e) { - if (e.kind === 231 /* OmittedExpression */) { + if (e.kind === 232 /* OmittedExpression */) { return; } if (e.name) { @@ -111235,7 +113018,7 @@ function transformDeclarations(context) { function ensureModifierFlags(node) { let mask2 = 258047 /* All */ ^ (4 /* Public */ | 512 /* Async */ | 16384 /* Override */); let additions = needsDeclare && !isAlwaysType(node) ? 2 /* Ambient */ : 0 /* None */; - const parentIsFile = node.parent.kind === 311 /* SourceFile */; + const parentIsFile = node.parent.kind === 312 /* SourceFile */; if (!parentIsFile || isBundledEmit && parentIsFile && isExternalModule(node.parent)) { mask2 ^= 2 /* Ambient */; additions = 0 /* None */; @@ -111261,7 +113044,7 @@ function transformDeclarations(context) { } } function isAlwaysType(node) { - if (node.kind === 263 /* InterfaceDeclaration */) { + if (node.kind === 264 /* InterfaceDeclaration */) { return true; } return false; @@ -111281,57 +113064,57 @@ function maskModifierFlags(node, modifierMask = 258047 /* All */ ^ 4 /* Public * } function getTypeAnnotationFromAccessor(accessor) { if (accessor) { - return accessor.kind === 176 /* GetAccessor */ ? accessor.type : accessor.parameters.length > 0 ? accessor.parameters[0].type : void 0; + return accessor.kind === 177 /* GetAccessor */ ? accessor.type : accessor.parameters.length > 0 ? accessor.parameters[0].type : void 0; } } function canHaveLiteralInitializer(node) { switch (node.kind) { - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: return !hasEffectiveModifier(node, 8 /* Private */); - case 168 /* Parameter */: - case 259 /* VariableDeclaration */: + case 169 /* Parameter */: + case 260 /* VariableDeclaration */: return true; } return false; } function isPreservedDeclarationStatement(node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 266 /* ModuleDeclaration */: - case 270 /* ImportEqualsDeclaration */: - case 263 /* InterfaceDeclaration */: - case 262 /* ClassDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 265 /* EnumDeclaration */: - case 242 /* VariableStatement */: - case 271 /* ImportDeclaration */: - case 277 /* ExportDeclaration */: - case 276 /* ExportAssignment */: + case 262 /* FunctionDeclaration */: + case 267 /* ModuleDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 264 /* InterfaceDeclaration */: + case 263 /* ClassDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 266 /* EnumDeclaration */: + case 243 /* VariableStatement */: + case 272 /* ImportDeclaration */: + case 278 /* ExportDeclaration */: + case 277 /* ExportAssignment */: return true; } return false; } function isProcessedComponent(node) { switch (node.kind) { - case 179 /* ConstructSignature */: - case 175 /* Constructor */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 172 /* MethodSignature */: - case 178 /* CallSignature */: - case 180 /* IndexSignature */: - case 259 /* VariableDeclaration */: - case 167 /* TypeParameter */: - case 232 /* ExpressionWithTypeArguments */: - case 182 /* TypeReference */: - case 193 /* ConditionalType */: - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 204 /* ImportType */: + case 180 /* ConstructSignature */: + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 181 /* IndexSignature */: + case 260 /* VariableDeclaration */: + case 168 /* TypeParameter */: + case 233 /* ExpressionWithTypeArguments */: + case 183 /* TypeReference */: + case 194 /* ConditionalType */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 205 /* ImportType */: return true; } return false; @@ -111372,16 +113155,17 @@ function getScriptTransformers(compilerOptions, customTransformers, emitOnly) { transformers.push(transformTypeScript); if (compilerOptions.experimentalDecorators) { transformers.push(transformLegacyDecorators); - } else if (languageVersion < 99 /* ESNext */ || !useDefineForClassFields) { - transformers.push(transformESDecorators); } - transformers.push(transformClassFields); if (getJSXTransformEnabled(compilerOptions)) { transformers.push(transformJsx); } if (languageVersion < 99 /* ESNext */) { transformers.push(transformESNext); } + if (!compilerOptions.experimentalDecorators && (languageVersion < 99 /* ESNext */ || !useDefineForClassFields)) { + transformers.push(transformESDecorators); + } + transformers.push(transformClassFields); if (languageVersion < 8 /* ES2021 */) { transformers.push(transformES2021); } @@ -111440,7 +113224,7 @@ function noEmitNotification(hint, node, callback) { } function transformNodes(resolver, host, factory2, options, nodes, transformers, allowDtsFiles) { var _a, _b; - const enabledSyntaxKindFeatures = new Array(362 /* Count */); + const enabledSyntaxKindFeatures = new Array(363 /* Count */); let lexicalEnvironmentVariableDeclarations; let lexicalEnvironmentFunctionDeclarations; let lexicalEnvironmentStatements; @@ -111519,7 +113303,7 @@ function transformNodes(resolver, host, factory2, options, nodes, transformers, state = 1 /* Initialized */; const transformed = []; for (const node of nodes) { - (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.Emit, "transformNodes", node.kind === 311 /* SourceFile */ ? { path: node.path } : { kind: node.kind, pos: node.pos, end: node.end }); + (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.Emit, "transformNodes", node.kind === 312 /* SourceFile */ ? { path: node.path } : { kind: node.kind, pos: node.pos, end: node.end }); transformed.push((allowDtsFiles ? transformation : transformRoot)(node)); (_b = tracing) == null ? void 0 : _b.pop(); } @@ -111839,7 +113623,7 @@ function getOutputPathsForBundle(options, forceDtsPaths) { } function getOutputPathsFor(sourceFile, host, forceDtsPaths) { const options = host.getCompilerOptions(); - if (sourceFile.kind === 312 /* Bundle */) { + if (sourceFile.kind === 313 /* Bundle */) { return getOutputPathsForBundle(options, forceDtsPaths); } else { const ownOutputFilePath = getOwnEmitOutputFilePath(sourceFile.fileName, host, getOutputExtension(sourceFile.fileName, options)); @@ -112231,8 +114015,8 @@ function emitFiles(resolver, host, targetSourceFile, { scriptTransformers, decla } function printSourceFileOrBundle(jsFilePath, sourceMapFilePath, transform2, printer, mapOptions) { const sourceFileOrBundle = transform2.transformed[0]; - const bundle = sourceFileOrBundle.kind === 312 /* Bundle */ ? sourceFileOrBundle : void 0; - const sourceFile = sourceFileOrBundle.kind === 311 /* SourceFile */ ? sourceFileOrBundle : void 0; + const bundle = sourceFileOrBundle.kind === 313 /* Bundle */ ? sourceFileOrBundle : void 0; + const sourceFile = sourceFileOrBundle.kind === 312 /* SourceFile */ ? sourceFileOrBundle : void 0; const sourceFiles = bundle ? bundle.sourceFiles : [sourceFile]; let sourceMapGenerator; if (shouldEmitSourceMaps(mapOptions, sourceFileOrBundle)) { @@ -112294,7 +114078,7 @@ function emitFiles(resolver, host, targetSourceFile, { scriptTransformers, decla writer.clear(); } function shouldEmitSourceMaps(mapOptions, sourceFileOrBundle) { - return (mapOptions.sourceMap || mapOptions.inlineSourceMap) && (sourceFileOrBundle.kind !== 311 /* SourceFile */ || !fileExtensionIs(sourceFileOrBundle.fileName, ".json" /* Json */)); + return (mapOptions.sourceMap || mapOptions.inlineSourceMap) && (sourceFileOrBundle.kind !== 312 /* SourceFile */ || !fileExtensionIs(sourceFileOrBundle.fileName, ".json" /* Json */)); } function getSourceRoot(mapOptions) { const sourceRoot = normalizeSlashes(mapOptions.sourceRoot || ""); @@ -112662,11 +114446,11 @@ function createPrinter(printerOptions = {}, handlers = {}) { break; } switch (node.kind) { - case 311 /* SourceFile */: + case 312 /* SourceFile */: return printFile(node); - case 312 /* Bundle */: + case 313 /* Bundle */: return printBundle(node); - case 313 /* UnparsedSource */: + case 314 /* UnparsedSource */: return printUnparsedSource(node); } writeNode(hint, node, sourceFile, beginPrint()); @@ -113045,301 +114829,301 @@ function createPrinter(printerOptions = {}, handlers = {}) { return emitIdentifier(node); case 81 /* PrivateIdentifier */: return emitPrivateIdentifier(node); - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: return emitQualifiedName(node); - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: return emitComputedPropertyName(node); - case 167 /* TypeParameter */: + case 168 /* TypeParameter */: return emitTypeParameter(node); - case 168 /* Parameter */: + case 169 /* Parameter */: return emitParameter(node); - case 169 /* Decorator */: + case 170 /* Decorator */: return emitDecorator(node); - case 170 /* PropertySignature */: + case 171 /* PropertySignature */: return emitPropertySignature(node); - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return emitPropertyDeclaration(node); - case 172 /* MethodSignature */: + case 173 /* MethodSignature */: return emitMethodSignature(node); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return emitMethodDeclaration(node); - case 174 /* ClassStaticBlockDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: return emitClassStaticBlockDeclaration(node); - case 175 /* Constructor */: + case 176 /* Constructor */: return emitConstructor(node); - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return emitAccessorDeclaration(node); - case 178 /* CallSignature */: + case 179 /* CallSignature */: return emitCallSignature(node); - case 179 /* ConstructSignature */: + case 180 /* ConstructSignature */: return emitConstructSignature(node); - case 180 /* IndexSignature */: + case 181 /* IndexSignature */: return emitIndexSignature(node); - case 181 /* TypePredicate */: + case 182 /* TypePredicate */: return emitTypePredicate(node); - case 182 /* TypeReference */: + case 183 /* TypeReference */: return emitTypeReference(node); - case 183 /* FunctionType */: + case 184 /* FunctionType */: return emitFunctionType(node); - case 184 /* ConstructorType */: + case 185 /* ConstructorType */: return emitConstructorType(node); - case 185 /* TypeQuery */: + case 186 /* TypeQuery */: return emitTypeQuery(node); - case 186 /* TypeLiteral */: + case 187 /* TypeLiteral */: return emitTypeLiteral(node); - case 187 /* ArrayType */: + case 188 /* ArrayType */: return emitArrayType(node); - case 188 /* TupleType */: + case 189 /* TupleType */: return emitTupleType(node); - case 189 /* OptionalType */: + case 190 /* OptionalType */: return emitOptionalType(node); - case 191 /* UnionType */: + case 192 /* UnionType */: return emitUnionType(node); - case 192 /* IntersectionType */: + case 193 /* IntersectionType */: return emitIntersectionType(node); - case 193 /* ConditionalType */: + case 194 /* ConditionalType */: return emitConditionalType(node); - case 194 /* InferType */: + case 195 /* InferType */: return emitInferType(node); - case 195 /* ParenthesizedType */: + case 196 /* ParenthesizedType */: return emitParenthesizedType(node); - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return emitExpressionWithTypeArguments(node); - case 196 /* ThisType */: + case 197 /* ThisType */: return emitThisType(); - case 197 /* TypeOperator */: + case 198 /* TypeOperator */: return emitTypeOperator(node); - case 198 /* IndexedAccessType */: + case 199 /* IndexedAccessType */: return emitIndexedAccessType(node); - case 199 /* MappedType */: + case 200 /* MappedType */: return emitMappedType(node); - case 200 /* LiteralType */: + case 201 /* LiteralType */: return emitLiteralType(node); - case 201 /* NamedTupleMember */: + case 202 /* NamedTupleMember */: return emitNamedTupleMember(node); - case 202 /* TemplateLiteralType */: + case 203 /* TemplateLiteralType */: return emitTemplateType(node); - case 203 /* TemplateLiteralTypeSpan */: + case 204 /* TemplateLiteralTypeSpan */: return emitTemplateTypeSpan(node); - case 204 /* ImportType */: + case 205 /* ImportType */: return emitImportTypeNode(node); - case 205 /* ObjectBindingPattern */: + case 206 /* ObjectBindingPattern */: return emitObjectBindingPattern(node); - case 206 /* ArrayBindingPattern */: + case 207 /* ArrayBindingPattern */: return emitArrayBindingPattern(node); - case 207 /* BindingElement */: + case 208 /* BindingElement */: return emitBindingElement(node); - case 238 /* TemplateSpan */: + case 239 /* TemplateSpan */: return emitTemplateSpan(node); - case 239 /* SemicolonClassElement */: + case 240 /* SemicolonClassElement */: return emitSemicolonClassElement(); - case 240 /* Block */: + case 241 /* Block */: return emitBlock(node); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return emitVariableStatement(node); - case 241 /* EmptyStatement */: + case 242 /* EmptyStatement */: return emitEmptyStatement( /*isEmbeddedStatement*/ false ); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return emitExpressionStatement(node); - case 244 /* IfStatement */: + case 245 /* IfStatement */: return emitIfStatement(node); - case 245 /* DoStatement */: + case 246 /* DoStatement */: return emitDoStatement(node); - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: return emitWhileStatement(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return emitForStatement(node); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return emitForInStatement(node); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return emitForOfStatement(node); - case 250 /* ContinueStatement */: + case 251 /* ContinueStatement */: return emitContinueStatement(node); - case 251 /* BreakStatement */: + case 252 /* BreakStatement */: return emitBreakStatement(node); - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: return emitReturnStatement(node); - case 253 /* WithStatement */: + case 254 /* WithStatement */: return emitWithStatement(node); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return emitSwitchStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return emitLabeledStatement(node); - case 256 /* ThrowStatement */: + case 257 /* ThrowStatement */: return emitThrowStatement(node); - case 257 /* TryStatement */: + case 258 /* TryStatement */: return emitTryStatement(node); - case 258 /* DebuggerStatement */: + case 259 /* DebuggerStatement */: return emitDebuggerStatement(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return emitVariableDeclaration(node); - case 260 /* VariableDeclarationList */: + case 261 /* VariableDeclarationList */: return emitVariableDeclarationList(node); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return emitFunctionDeclaration(node); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return emitClassDeclaration(node); - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: return emitInterfaceDeclaration(node); - case 264 /* TypeAliasDeclaration */: + case 265 /* TypeAliasDeclaration */: return emitTypeAliasDeclaration(node); - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return emitEnumDeclaration(node); - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return emitModuleDeclaration(node); - case 267 /* ModuleBlock */: + case 268 /* ModuleBlock */: return emitModuleBlock(node); - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: return emitCaseBlock(node); - case 269 /* NamespaceExportDeclaration */: + case 270 /* NamespaceExportDeclaration */: return emitNamespaceExportDeclaration(node); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return emitImportEqualsDeclaration(node); - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return emitImportDeclaration(node); - case 272 /* ImportClause */: + case 273 /* ImportClause */: return emitImportClause(node); - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: return emitNamespaceImport(node); - case 279 /* NamespaceExport */: + case 280 /* NamespaceExport */: return emitNamespaceExport(node); - case 274 /* NamedImports */: + case 275 /* NamedImports */: return emitNamedImports(node); - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: return emitImportSpecifier(node); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return emitExportAssignment(node); - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return emitExportDeclaration(node); - case 278 /* NamedExports */: + case 279 /* NamedExports */: return emitNamedExports(node); - case 280 /* ExportSpecifier */: + case 281 /* ExportSpecifier */: return emitExportSpecifier(node); - case 299 /* AssertClause */: + case 300 /* AssertClause */: return emitAssertClause(node); - case 300 /* AssertEntry */: + case 301 /* AssertEntry */: return emitAssertEntry(node); - case 281 /* MissingDeclaration */: + case 282 /* MissingDeclaration */: return; - case 282 /* ExternalModuleReference */: + case 283 /* ExternalModuleReference */: return emitExternalModuleReference(node); case 12 /* JsxText */: return emitJsxText(node); - case 285 /* JsxOpeningElement */: - case 288 /* JsxOpeningFragment */: + case 286 /* JsxOpeningElement */: + case 289 /* JsxOpeningFragment */: return emitJsxOpeningElementOrFragment(node); - case 286 /* JsxClosingElement */: - case 289 /* JsxClosingFragment */: + case 287 /* JsxClosingElement */: + case 290 /* JsxClosingFragment */: return emitJsxClosingElementOrFragment(node); - case 290 /* JsxAttribute */: + case 291 /* JsxAttribute */: return emitJsxAttribute(node); - case 291 /* JsxAttributes */: + case 292 /* JsxAttributes */: return emitJsxAttributes(node); - case 292 /* JsxSpreadAttribute */: + case 293 /* JsxSpreadAttribute */: return emitJsxSpreadAttribute(node); - case 293 /* JsxExpression */: + case 294 /* JsxExpression */: return emitJsxExpression(node); - case 294 /* JsxNamespacedName */: + case 295 /* JsxNamespacedName */: return emitJsxNamespacedName(node); - case 295 /* CaseClause */: + case 296 /* CaseClause */: return emitCaseClause(node); - case 296 /* DefaultClause */: + case 297 /* DefaultClause */: return emitDefaultClause(node); - case 297 /* HeritageClause */: + case 298 /* HeritageClause */: return emitHeritageClause(node); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return emitCatchClause(node); - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return emitPropertyAssignment(node); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return emitShorthandPropertyAssignment(node); - case 304 /* SpreadAssignment */: + case 305 /* SpreadAssignment */: return emitSpreadAssignment(node); - case 305 /* EnumMember */: + case 306 /* EnumMember */: return emitEnumMember(node); - case 306 /* UnparsedPrologue */: + case 307 /* UnparsedPrologue */: return writeUnparsedNode(node); - case 313 /* UnparsedSource */: - case 307 /* UnparsedPrepend */: + case 314 /* UnparsedSource */: + case 308 /* UnparsedPrepend */: return emitUnparsedSourceOrPrepend(node); - case 308 /* UnparsedText */: - case 309 /* UnparsedInternalText */: + case 309 /* UnparsedText */: + case 310 /* UnparsedInternalText */: return emitUnparsedTextLike(node); - case 310 /* UnparsedSyntheticReference */: + case 311 /* UnparsedSyntheticReference */: return emitUnparsedSyntheticReference(node); - case 311 /* SourceFile */: + case 312 /* SourceFile */: return emitSourceFile(node); - case 312 /* Bundle */: + case 313 /* Bundle */: return Debug.fail("Bundles should be printed using printBundle"); - case 314 /* InputFiles */: + case 315 /* InputFiles */: return Debug.fail("InputFiles should not be printed"); - case 315 /* JSDocTypeExpression */: + case 316 /* JSDocTypeExpression */: return emitJSDocTypeExpression(node); - case 316 /* JSDocNameReference */: + case 317 /* JSDocNameReference */: return emitJSDocNameReference(node); - case 318 /* JSDocAllType */: + case 319 /* JSDocAllType */: return writePunctuation("*"); - case 319 /* JSDocUnknownType */: + case 320 /* JSDocUnknownType */: return writePunctuation("?"); - case 320 /* JSDocNullableType */: + case 321 /* JSDocNullableType */: return emitJSDocNullableType(node); - case 321 /* JSDocNonNullableType */: + case 322 /* JSDocNonNullableType */: return emitJSDocNonNullableType(node); - case 322 /* JSDocOptionalType */: + case 323 /* JSDocOptionalType */: return emitJSDocOptionalType(node); - case 323 /* JSDocFunctionType */: + case 324 /* JSDocFunctionType */: return emitJSDocFunctionType(node); - case 190 /* RestType */: - case 324 /* JSDocVariadicType */: + case 191 /* RestType */: + case 325 /* JSDocVariadicType */: return emitRestOrJSDocVariadicType(node); - case 325 /* JSDocNamepathType */: + case 326 /* JSDocNamepathType */: return; - case 326 /* JSDoc */: + case 327 /* JSDoc */: return emitJSDoc(node); - case 328 /* JSDocTypeLiteral */: + case 329 /* JSDocTypeLiteral */: return emitJSDocTypeLiteral(node); - case 329 /* JSDocSignature */: + case 330 /* JSDocSignature */: return emitJSDocSignature(node); - case 333 /* JSDocTag */: - case 338 /* JSDocClassTag */: - case 343 /* JSDocOverrideTag */: + case 334 /* JSDocTag */: + case 339 /* JSDocClassTag */: + case 344 /* JSDocOverrideTag */: return emitJSDocSimpleTag(node); - case 334 /* JSDocAugmentsTag */: - case 335 /* JSDocImplementsTag */: + case 335 /* JSDocAugmentsTag */: + case 336 /* JSDocImplementsTag */: return emitJSDocHeritageTag(node); - case 336 /* JSDocAuthorTag */: - case 337 /* JSDocDeprecatedTag */: + case 337 /* JSDocAuthorTag */: + case 338 /* JSDocDeprecatedTag */: return; - case 339 /* JSDocPublicTag */: - case 340 /* JSDocPrivateTag */: - case 341 /* JSDocProtectedTag */: - case 342 /* JSDocReadonlyTag */: + case 340 /* JSDocPublicTag */: + case 341 /* JSDocPrivateTag */: + case 342 /* JSDocProtectedTag */: + case 343 /* JSDocReadonlyTag */: return; - case 344 /* JSDocCallbackTag */: + case 345 /* JSDocCallbackTag */: return emitJSDocCallbackTag(node); - case 345 /* JSDocOverloadTag */: + case 346 /* JSDocOverloadTag */: return emitJSDocOverloadTag(node); - case 347 /* JSDocParameterTag */: - case 354 /* JSDocPropertyTag */: + case 348 /* JSDocParameterTag */: + case 355 /* JSDocPropertyTag */: return emitJSDocPropertyLikeTag(node); - case 346 /* JSDocEnumTag */: - case 348 /* JSDocReturnTag */: - case 349 /* JSDocThisTag */: - case 350 /* JSDocTypeTag */: - case 355 /* JSDocThrowsTag */: - case 356 /* JSDocSatisfiesTag */: + case 347 /* JSDocEnumTag */: + case 349 /* JSDocReturnTag */: + case 350 /* JSDocThisTag */: + case 351 /* JSDocTypeTag */: + case 356 /* JSDocThrowsTag */: + case 357 /* JSDocSatisfiesTag */: return emitJSDocSimpleTypedTag(node); - case 351 /* JSDocTemplateTag */: + case 352 /* JSDocTemplateTag */: return emitJSDocTemplateTag(node); - case 352 /* JSDocTypedefTag */: + case 353 /* JSDocTypedefTag */: return emitJSDocTypedefTag(node); - case 353 /* JSDocSeeTag */: + case 354 /* JSDocSeeTag */: return emitJSDocSeeTag(node); - case 358 /* NotEmittedStatement */: + case 359 /* NotEmittedStatement */: return; } if (isExpression(node)) { @@ -113372,83 +115156,83 @@ function createPrinter(printerOptions = {}, handlers = {}) { return emitIdentifier(node); case 81 /* PrivateIdentifier */: return emitPrivateIdentifier(node); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return emitArrayLiteralExpression(node); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return emitObjectLiteralExpression(node); - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return emitPropertyAccessExpression(node); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return emitElementAccessExpression(node); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return emitCallExpression(node); - case 213 /* NewExpression */: + case 214 /* NewExpression */: return emitNewExpression(node); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return emitTaggedTemplateExpression(node); - case 215 /* TypeAssertionExpression */: + case 216 /* TypeAssertionExpression */: return emitTypeAssertionExpression(node); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return emitParenthesizedExpression(node); - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: return emitFunctionExpression(node); - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return emitArrowFunction(node); - case 219 /* DeleteExpression */: + case 220 /* DeleteExpression */: return emitDeleteExpression(node); - case 220 /* TypeOfExpression */: + case 221 /* TypeOfExpression */: return emitTypeOfExpression(node); - case 221 /* VoidExpression */: + case 222 /* VoidExpression */: return emitVoidExpression(node); - case 222 /* AwaitExpression */: + case 223 /* AwaitExpression */: return emitAwaitExpression(node); - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: return emitPrefixUnaryExpression(node); - case 224 /* PostfixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return emitPostfixUnaryExpression(node); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return emitBinaryExpression(node); - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: return emitConditionalExpression(node); - case 227 /* TemplateExpression */: + case 228 /* TemplateExpression */: return emitTemplateExpression(node); - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: return emitYieldExpression(node); - case 229 /* SpreadElement */: + case 230 /* SpreadElement */: return emitSpreadElement(node); - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return emitClassExpression(node); - case 231 /* OmittedExpression */: + case 232 /* OmittedExpression */: return; - case 233 /* AsExpression */: + case 234 /* AsExpression */: return emitAsExpression(node); - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: return emitNonNullExpression(node); - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return emitExpressionWithTypeArguments(node); - case 237 /* SatisfiesExpression */: + case 238 /* SatisfiesExpression */: return emitSatisfiesExpression(node); - case 235 /* MetaProperty */: + case 236 /* MetaProperty */: return emitMetaProperty(node); - case 236 /* SyntheticExpression */: + case 237 /* SyntheticExpression */: return Debug.fail("SyntheticExpression should never be printed."); - case 281 /* MissingDeclaration */: + case 282 /* MissingDeclaration */: return; - case 283 /* JsxElement */: + case 284 /* JsxElement */: return emitJsxElement(node); - case 284 /* JsxSelfClosingElement */: + case 285 /* JsxSelfClosingElement */: return emitJsxSelfClosingElement(node); - case 287 /* JsxFragment */: + case 288 /* JsxFragment */: return emitJsxFragment(node); - case 357 /* SyntaxList */: + case 358 /* SyntaxList */: return Debug.fail("SyntaxList should not be printed"); - case 358 /* NotEmittedStatement */: + case 359 /* NotEmittedStatement */: return; - case 359 /* PartiallyEmittedExpression */: + case 360 /* PartiallyEmittedExpression */: return emitPartiallyEmittedExpression(node); - case 360 /* CommaListExpression */: + case 361 /* CommaListExpression */: return emitCommaList(node); - case 361 /* SyntheticReferenceExpression */: + case 362 /* SyntheticReferenceExpression */: return Debug.fail("SyntheticReferenceExpression should not be printed"); } } @@ -113494,7 +115278,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { } function emitHelpers(node) { let helpersEmitted = false; - const bundle = node.kind === 312 /* Bundle */ ? node : void 0; + const bundle = node.kind === 313 /* Bundle */ ? node : void 0; if (bundle && moduleKind === 0 /* None */) { return; } @@ -113569,7 +115353,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { updateOrPushBundleFileTextLike( pos, writer.getTextPos(), - unparsed.kind === 308 /* UnparsedText */ ? "text" /* Text */ : "internal" /* Internal */ + unparsed.kind === 309 /* UnparsedText */ ? "text" /* Text */ : "internal" /* Internal */ ); } } @@ -113605,7 +115389,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { } function emitTabStop(hint, node, snippet) { Debug.assert( - node.kind === 241 /* EmptyStatement */, + node.kind === 242 /* EmptyStatement */, `A tab stop cannot be attached to a node of kind ${Debug.formatSyntaxKind(node.kind)}.` ); Debug.assert( @@ -113677,7 +115461,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { emit(node.dotDotDotToken); emitNodeWithWriter(node.name, writeParameter); emit(node.questionToken); - if (node.parent && node.parent.kind === 323 /* JSDocFunctionType */ && !node.name) { + if (node.parent && node.parent.kind === 324 /* JSDocFunctionType */ && !node.name) { emit(node.type); } else { emitTypeAnnotation(node.type); @@ -113753,7 +115537,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { /*allowDecorators*/ true ); - const token = node.kind === 176 /* GetAccessor */ ? 139 /* GetKeyword */ : 153 /* SetKeyword */; + const token = node.kind === 177 /* GetAccessor */ ? 139 /* GetKeyword */ : 153 /* SetKeyword */; emitTokenWithComment(token, pos, writeKeyword, node); writeSpace(); emit(node.name); @@ -114107,7 +115891,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { return !(expression.numericLiteralFlags & 448 /* WithSpecifier */) && !stringContains(text, tokenToString(25 /* DotToken */)) && !stringContains(text, String.fromCharCode(69 /* E */)) && !stringContains(text, String.fromCharCode(101 /* e */)); } else if (isAccessExpression(expression)) { const constantValue = getConstantValue(expression); - return typeof constantValue === "number" && isFinite(constantValue) && Math.floor(constantValue) === constantValue; + return typeof constantValue === "number" && isFinite(constantValue) && constantValue >= 0 && Math.floor(constantValue) === constantValue; } } function emitElementAccessExpression(node) { @@ -114218,7 +116002,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { } function shouldEmitWhitespaceBeforeOperand(node) { const operand = node.operand; - return operand.kind === 223 /* PrefixUnaryExpression */ && (node.operator === 40 /* PlusToken */ && (operand.operator === 40 /* PlusToken */ || operand.operator === 46 /* PlusPlusToken */) || node.operator === 41 /* MinusToken */ && (operand.operator === 41 /* MinusToken */ || operand.operator === 47 /* MinusMinusToken */)); + return operand.kind === 224 /* PrefixUnaryExpression */ && (node.operator === 40 /* PlusToken */ && (operand.operator === 40 /* PlusToken */ || operand.operator === 46 /* PlusPlusToken */) || node.operator === 41 /* MinusToken */ && (operand.operator === 41 /* MinusToken */ || operand.operator === 47 /* MinusMinusToken */)); } function emitPostfixUnaryExpression(node) { emitExpression(node.operand, parenthesizer.parenthesizeOperandOfPostfixUnary); @@ -114477,7 +116261,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { if (node.elseStatement) { writeLineOrSpace(node, node.thenStatement, node.elseStatement); emitTokenWithComment(93 /* ElseKeyword */, node.thenStatement.end, writeKeyword, node); - if (node.elseStatement.kind === 244 /* IfStatement */) { + if (node.elseStatement.kind === 245 /* IfStatement */) { writeSpace(); emit(node.elseStatement); } else { @@ -114544,7 +116328,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { emitTokenWithComment(21 /* OpenParenToken */, openParenPos, writePunctuation, node); emitForBinding(node.initializer); writeSpace(); - emitTokenWithComment(164 /* OfKeyword */, node.initializer.end, writeKeyword, node); + emitTokenWithComment(165 /* OfKeyword */, node.initializer.end, writeKeyword, node); writeSpace(); emitExpression(node.expression); emitTokenWithComment(22 /* CloseParenToken */, node.expression.end, writePunctuation, node); @@ -114552,7 +116336,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { } function emitForBinding(node) { if (node !== void 0) { - if (node.kind === 260 /* VariableDeclarationList */) { + if (node.kind === 261 /* VariableDeclarationList */) { emit(node); } else { emitExpression(node); @@ -114588,7 +116372,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { } pos = writeTokenText(token, writer2, pos); if (isSimilarNode && contextNode.end !== pos) { - const isJsxExprContext = contextNode.kind === 293 /* JsxExpression */; + const isJsxExprContext = contextNode.kind === 294 /* JsxExpression */; emitTrailingCommentsOfPosition( pos, /*prefixSpace*/ @@ -114700,7 +116484,14 @@ function createPrinter(printerOptions = {}, handlers = {}) { emitInitializer(node.initializer, ((_a = node.type) == null ? void 0 : _a.end) ?? ((_c = (_b = node.name.emitNode) == null ? void 0 : _b.typeNode) == null ? void 0 : _c.end) ?? node.name.end, node, parenthesizer.parenthesizeExpressionForDisallowedComma); } function emitVariableDeclarationList(node) { - writeKeyword(isLet(node) ? "let" : isVarConst(node) ? "const" : "var"); + if (isVarAwaitUsing(node)) { + writeKeyword("await"); + writeSpace(); + writeKeyword("using"); + } else { + const head = isLet(node) ? "let" : isVarConst(node) ? "const" : isVarUsing(node) ? "using" : "var"; + writeKeyword(head); + } writeSpace(); emitList(node, node.declarations, 528 /* VariableDeclarationList */); } @@ -114909,8 +116700,8 @@ function createPrinter(printerOptions = {}, handlers = {}) { /*allowDecorators*/ false ); - if (~node.flags & 1024 /* GlobalAugmentation */) { - writeKeyword(node.flags & 16 /* Namespace */ ? "namespace" : "module"); + if (~node.flags & 2048 /* GlobalAugmentation */) { + writeKeyword(node.flags & 32 /* Namespace */ ? "namespace" : "module"); writeSpace(); } emit(node.name); @@ -114986,7 +116777,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { if (node.importClause) { emit(node.importClause); writeSpace(); - emitTokenWithComment(160 /* FromKeyword */, node.importClause.end, writeKeyword, node); + emitTokenWithComment(161 /* FromKeyword */, node.importClause.end, writeKeyword, node); writeSpace(); } emitExpression(node.moduleSpecifier); @@ -115053,7 +116844,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { if (node.moduleSpecifier) { writeSpace(); const fromPos = node.exportClause ? node.exportClause.end : nextPos; - emitTokenWithComment(160 /* FromKeyword */, fromPos, writeKeyword, node); + emitTokenWithComment(161 /* FromKeyword */, fromPos, writeKeyword, node); writeSpace(); emitExpression(node.moduleSpecifier); } @@ -115308,7 +117099,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { } } if (node.tags) { - if (node.tags.length === 1 && node.tags[0].kind === 350 /* JSDocTypeTag */ && !node.comment) { + if (node.tags.length === 1 && node.tags[0].kind === 351 /* JSDocTypeTag */ && !node.comment) { writeSpace(); emit(node.tags[0]); } else { @@ -115352,7 +117143,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { function emitJSDocTypedefTag(tag) { emitJSDocTagName(tag.tagName); if (tag.typeExpression) { - if (tag.typeExpression.kind === 315 /* JSDocTypeExpression */) { + if (tag.typeExpression.kind === 316 /* JSDocTypeExpression */) { emitJSDocTypeExpression(tag.typeExpression); } else { writeSpace(); @@ -115370,7 +117161,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { emit(tag.fullName); } emitJSDocComment(tag.comment); - if (tag.typeExpression && tag.typeExpression.kind === 328 /* JSDocTypeLiteral */) { + if (tag.typeExpression && tag.typeExpression.kind === 329 /* JSDocTypeLiteral */) { emitJSDocTypeLiteral(tag.typeExpression); } } @@ -116253,7 +118044,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { return block.statements.length === 0 && (!currentSourceFile || rangeEndIsOnSameLineAsRangeStart(block, block, currentSourceFile)); } function skipSynthesizedParentheses(node) { - while (node.kind === 216 /* ParenthesizedExpression */ && nodeIsSynthesized(node)) { + while (node.kind === 217 /* ParenthesizedExpression */ && nodeIsSynthesized(node)) { node = node.expression; } return node; @@ -116340,84 +118131,84 @@ function createPrinter(printerOptions = {}, handlers = {}) { if (!node) return; switch (node.kind) { - case 240 /* Block */: + case 241 /* Block */: forEach(node.statements, generateNames); break; - case 255 /* LabeledStatement */: - case 253 /* WithStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: + case 256 /* LabeledStatement */: + case 254 /* WithStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: generateNames(node.statement); break; - case 244 /* IfStatement */: + case 245 /* IfStatement */: generateNames(node.thenStatement); generateNames(node.elseStatement); break; - case 247 /* ForStatement */: - case 249 /* ForOfStatement */: - case 248 /* ForInStatement */: + case 248 /* ForStatement */: + case 250 /* ForOfStatement */: + case 249 /* ForInStatement */: generateNames(node.initializer); generateNames(node.statement); break; - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: generateNames(node.caseBlock); break; - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: forEach(node.clauses, generateNames); break; - case 295 /* CaseClause */: - case 296 /* DefaultClause */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: forEach(node.statements, generateNames); break; - case 257 /* TryStatement */: + case 258 /* TryStatement */: generateNames(node.tryBlock); generateNames(node.catchClause); generateNames(node.finallyBlock); break; - case 298 /* CatchClause */: + case 299 /* CatchClause */: generateNames(node.variableDeclaration); generateNames(node.block); break; - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: generateNames(node.declarationList); break; - case 260 /* VariableDeclarationList */: + case 261 /* VariableDeclarationList */: forEach(node.declarations, generateNames); break; - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 207 /* BindingElement */: - case 262 /* ClassDeclaration */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 208 /* BindingElement */: + case 263 /* ClassDeclaration */: generateNameIfNeeded(node.name); break; - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: generateNameIfNeeded(node.name); if (getEmitFlags(node) & 1048576 /* ReuseTempVariableScope */) { forEach(node.parameters, generateNames); generateNames(node.body); } break; - case 205 /* ObjectBindingPattern */: - case 206 /* ArrayBindingPattern */: + case 206 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: forEach(node.elements, generateNames); break; - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: generateNames(node.importClause); break; - case 272 /* ImportClause */: + case 273 /* ImportClause */: generateNameIfNeeded(node.name); generateNames(node.namedBindings); break; - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: generateNameIfNeeded(node.name); break; - case 279 /* NamespaceExport */: + case 280 /* NamespaceExport */: generateNameIfNeeded(node.name); break; - case 274 /* NamedImports */: + case 275 /* NamedImports */: forEach(node.elements, generateNames); break; - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: generateNameIfNeeded(node.propertyName || node.name); break; } @@ -116426,12 +118217,12 @@ function createPrinter(printerOptions = {}, handlers = {}) { if (!node) return; switch (node.kind) { - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: - case 171 /* PropertyDeclaration */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: generateNameIfNeeded(node.name); break; } @@ -116689,16 +118480,16 @@ function createPrinter(printerOptions = {}, handlers = {}) { prefix, suffix ); - case 266 /* ModuleDeclaration */: - case 265 /* EnumDeclaration */: + case 267 /* ModuleDeclaration */: + case 266 /* EnumDeclaration */: Debug.assert(!prefix && !suffix && !privateName); return generateNameForModuleOrEnum(node); - case 271 /* ImportDeclaration */: - case 277 /* ExportDeclaration */: + case 272 /* ImportDeclaration */: + case 278 /* ExportDeclaration */: Debug.assert(!prefix && !suffix && !privateName); return generateNameForImportOrExportDeclaration(node); - case 261 /* FunctionDeclaration */: - case 262 /* ClassDeclaration */: { + case 262 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: { Debug.assert(!prefix && !suffix && !privateName); const name = node.name; if (name && !isGeneratedIdentifier(name)) { @@ -116713,17 +118504,17 @@ function createPrinter(printerOptions = {}, handlers = {}) { } return generateNameForExportDefault(); } - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: Debug.assert(!prefix && !suffix && !privateName); return generateNameForExportDefault(); - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: Debug.assert(!prefix && !suffix && !privateName); return generateNameForClassExpression(); - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return generateNameForMethodOrAccessor(node, privateName, prefix, suffix); - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: return makeTempVariableName( 0 /* Auto */, /*reservedInNestedScopes*/ @@ -116817,7 +118608,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { emitLeadingComments( pos, /*isEmittedNode*/ - node.kind !== 358 /* NotEmittedStatement */ + node.kind !== 359 /* NotEmittedStatement */ ); } if (!skipLeadingComments || pos >= 0 && (emitFlags & 1024 /* NoLeadingComments */) !== 0) { @@ -116825,7 +118616,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { } if (!skipTrailingComments || end >= 0 && (emitFlags & 2048 /* NoTrailingComments */) !== 0) { containerEnd = end; - if (node.kind === 260 /* VariableDeclarationList */) { + if (node.kind === 261 /* VariableDeclarationList */) { declarationListContainerEnd = end; } } @@ -116841,7 +118632,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { containerPos = savedContainerPos; containerEnd = savedContainerEnd; declarationListContainerEnd = savedDeclarationListContainerEnd; - if (!skipTrailingComments && node.kind !== 358 /* NotEmittedStatement */) { + if (!skipTrailingComments && node.kind !== 359 /* NotEmittedStatement */) { emitTrailingComments(end); } } @@ -117113,7 +118904,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { } } else { const source = sourceMapRange.source || sourceMapSource; - if (node.kind !== 358 /* NotEmittedStatement */ && (emitFlags & 32 /* NoLeadingSourceMap */) === 0 && sourceMapRange.pos >= 0) { + if (node.kind !== 359 /* NotEmittedStatement */ && (emitFlags & 32 /* NoLeadingSourceMap */) === 0 && sourceMapRange.pos >= 0) { emitSourcePos(sourceMapRange.source || sourceMapSource, skipSourceTrivia(source, sourceMapRange.pos)); } if (emitFlags & 128 /* NoNestedSourceMaps */) { @@ -117128,7 +118919,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { if (emitFlags & 128 /* NoNestedSourceMaps */) { sourceMapsDisabled = false; } - if (node.kind !== 358 /* NotEmittedStatement */ && (emitFlags & 64 /* NoTrailingSourceMap */) === 0 && sourceMapRange.end >= 0) { + if (node.kind !== 359 /* NotEmittedStatement */ && (emitFlags & 64 /* NoTrailingSourceMap */) === 0 && sourceMapRange.end >= 0) { emitSourcePos(sourceMapRange.source || sourceMapSource, sourceMapRange.end); } } @@ -117237,14 +119028,14 @@ function getEmitListItem(emit, parenthesizerRule) { } // src/compiler/watchUtilities.ts -function createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensitiveFileNames) { +function createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensitiveFileNames2) { if (!host.getDirectories || !host.readDirectory) { return void 0; } const cachedReadDirectoryResult = /* @__PURE__ */ new Map(); - const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames); + const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2); return { - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, fileExists, readFile: (path, encoding) => host.readFile(path, encoding), directoryExists: host.directoryExists && directoryExists, @@ -117366,7 +119157,7 @@ function createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensi const rootResult = tryReadDirectory2(rootDir, rootDirPath); let rootSymLinkResult; if (rootResult !== void 0) { - return matchFiles(rootDir, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath); + return matchFiles(rootDir, extensions, excludes, includes, useCaseSensitiveFileNames2, currentDirectory, depth, getFileSystemEntries, realpath); } return host.readDirectory(rootDir, extensions, excludes, includes, depth); function getFileSystemEntries(dir) { @@ -117567,7 +119358,7 @@ function isIgnoredFileFromWildCardWatching({ program, extraFileExtensions, currentDirectory, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, writeLog, toPath: toPath3 }) { @@ -117583,7 +119374,7 @@ function isIgnoredFileFromWildCardWatching({ writeLog(`Project: ${configFileName} Detected file add/remove of non supported extension: ${fileOrDirectory}`); return true; } - if (isExcludedFile(fileOrDirectory, options.configFile.configFileSpecs, getNormalizedAbsolutePath(getDirectoryPath(configFileName), currentDirectory), useCaseSensitiveFileNames, currentDirectory)) { + if (isExcludedFile(fileOrDirectory, options.configFile.configFileSpecs, getNormalizedAbsolutePath(getDirectoryPath(configFileName), currentDirectory), useCaseSensitiveFileNames2, currentDirectory)) { writeLog(`Project: ${configFileName} Detected excluded file: ${fileOrDirectory}`); return true; } @@ -117646,7 +119437,7 @@ function getWatchFactory(host, watchLogLevel, log, getDetailWatchInfo2) { function createExcludeHandlingAddWatch(key) { return (file, cb, flags, options, detailInfo1, detailInfo2) => { var _a; - return !matchesExclude(file, key === "watchFile" ? options == null ? void 0 : options.excludeFiles : options == null ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames(), ((_a = host.getCurrentDirectory) == null ? void 0 : _a.call(host)) || "") ? factory2[key].call( + return !matchesExclude(file, key === "watchFile" ? options == null ? void 0 : options.excludeFiles : options == null ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames2(), ((_a = host.getCurrentDirectory) == null ? void 0 : _a.call(host)) || "") ? factory2[key].call( /*thisArgs*/ void 0, file, @@ -117658,7 +119449,7 @@ function getWatchFactory(host, watchLogLevel, log, getDetailWatchInfo2) { ) : excludeWatcherFactory(file, flags, options, detailInfo1, detailInfo2); }; } - function useCaseSensitiveFileNames() { + function useCaseSensitiveFileNames2() { return typeof host.useCaseSensitiveFileNames === "boolean" ? host.useCaseSensitiveFileNames : host.useCaseSensitiveFileNames(); } function createExcludeWatcherWithLogging(file, flags, options, detailInfo1, detailInfo2) { @@ -118475,7 +120266,7 @@ var plainJSErrors = /* @__PURE__ */ new Set([ Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code, Diagnostics.Duplicate_label_0.code, Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments.code, - Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block.code, + Diagnostics.for_await_loops_cannot_be_used_inside_a_class_static_block.code, Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code, Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code, Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code, @@ -118505,14 +120296,17 @@ var plainJSErrors = /* @__PURE__ */ new Set([ Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind.code, Diagnostics._0_modifier_cannot_be_used_here.code, Diagnostics._0_modifier_must_precede_1_modifier.code, - Diagnostics.const_declarations_can_only_be_declared_inside_a_block.code, - Diagnostics.const_declarations_must_be_initialized.code, + Diagnostics._0_declarations_can_only_be_declared_inside_a_block.code, + Diagnostics._0_declarations_must_be_initialized.code, Diagnostics.extends_clause_already_seen.code, - Diagnostics.let_declarations_can_only_be_declared_inside_a_block.code, Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code, Diagnostics.Class_constructor_may_not_be_a_generator.code, Diagnostics.Class_constructor_may_not_be_an_accessor.code, - Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code + Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code, + Diagnostics.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code, + Diagnostics.Private_field_0_must_be_declared_in_an_enclosing_class.code, + // Type errors + Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code ]); function shouldProgramCreateNewSourceFiles(program, newOptions) { if (!program) @@ -119261,13 +121055,13 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config sourceFileOptions, /*onError*/ void 0, - shouldCreateNewSourceFile || sourceFileOptions.impliedNodeFormat !== oldSourceFile.impliedNodeFormat + shouldCreateNewSourceFile ) : host.getSourceFile( oldSourceFile.fileName, sourceFileOptions, /*onError*/ void 0, - shouldCreateNewSourceFile || sourceFileOptions.impliedNodeFormat !== oldSourceFile.impliedNodeFormat + shouldCreateNewSourceFile ); if (!newSourceFile) { return 0 /* Not */; @@ -119318,7 +121112,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config structureIsReused = 1 /* SafeModules */; } else if (!arrayIsEqualTo(oldSourceFile.moduleAugmentations, newSourceFile.moduleAugmentations, moduleNameIsEqualTo)) { structureIsReused = 1 /* SafeModules */; - } else if ((oldSourceFile.flags & 6291456 /* PermanentlySetIncrementalFlags */) !== (newSourceFile.flags & 6291456 /* PermanentlySetIncrementalFlags */)) { + } else if ((oldSourceFile.flags & 12582912 /* PermanentlySetIncrementalFlags */) !== (newSourceFile.flags & 12582912 /* PermanentlySetIncrementalFlags */)) { structureIsReused = 1 /* SafeModules */; } else if (!arrayIsEqualTo(oldSourceFile.typeReferenceDirectives, newSourceFile.typeReferenceDirectives, fileReferenceIsEqualTo)) { structureIsReused = 1 /* SafeModules */; @@ -119709,89 +121503,97 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config return diagnostics; function walk(node, parent2) { switch (parent2.kind) { - case 168 /* Parameter */: - case 171 /* PropertyDeclaration */: - case 173 /* MethodDeclaration */: + case 169 /* Parameter */: + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: if (parent2.questionToken === node) { diagnostics.push(createDiagnosticForNode2(node, Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, "?")); return "skip"; } - case 172 /* MethodSignature */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: - case 218 /* ArrowFunction */: - case 259 /* VariableDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 219 /* ArrowFunction */: + case 260 /* VariableDeclaration */: if (parent2.type === node) { diagnostics.push(createDiagnosticForNode2(node, Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files)); return "skip"; } } switch (node.kind) { - case 272 /* ImportClause */: + case 273 /* ImportClause */: if (node.isTypeOnly) { diagnostics.push(createDiagnosticForNode2(parent2, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, "import type")); return "skip"; } break; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: if (node.isTypeOnly) { diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, "export type")); return "skip"; } break; - case 275 /* ImportSpecifier */: - case 280 /* ExportSpecifier */: + case 276 /* ImportSpecifier */: + case 281 /* ExportSpecifier */: if (node.isTypeOnly) { diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, isImportSpecifier(node) ? "import...type" : "export...type")); return "skip"; } break; - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: diagnostics.push(createDiagnosticForNode2(node, Diagnostics.import_can_only_be_used_in_TypeScript_files)); return "skip"; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: if (node.isExportEquals) { diagnostics.push(createDiagnosticForNode2(node, Diagnostics.export_can_only_be_used_in_TypeScript_files)); return "skip"; } break; - case 297 /* HeritageClause */: + case 298 /* HeritageClause */: const heritageClause = node; if (heritageClause.token === 119 /* ImplementsKeyword */) { diagnostics.push(createDiagnosticForNode2(node, Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)); return "skip"; } break; - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: const interfaceKeyword = tokenToString(120 /* InterfaceKeyword */); Debug.assertIsDefined(interfaceKeyword); diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, interfaceKeyword)); return "skip"; - case 266 /* ModuleDeclaration */: - const moduleKeyword = node.flags & 16 /* Namespace */ ? tokenToString(145 /* NamespaceKeyword */) : tokenToString(144 /* ModuleKeyword */); + case 267 /* ModuleDeclaration */: + const moduleKeyword = node.flags & 32 /* Namespace */ ? tokenToString(145 /* NamespaceKeyword */) : tokenToString(144 /* ModuleKeyword */); Debug.assertIsDefined(moduleKeyword); diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, moduleKeyword)); return "skip"; - case 264 /* TypeAliasDeclaration */: + case 265 /* TypeAliasDeclaration */: diagnostics.push(createDiagnosticForNode2(node, Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)); return "skip"; - case 265 /* EnumDeclaration */: + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 262 /* FunctionDeclaration */: + if (!node.body) { + diagnostics.push(createDiagnosticForNode2(node, Diagnostics.Signature_declarations_can_only_be_used_in_TypeScript_files)); + return "skip"; + } + return; + case 266 /* EnumDeclaration */: const enumKeyword = Debug.checkDefined(tokenToString(94 /* EnumKeyword */)); diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, enumKeyword)); return "skip"; - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: diagnostics.push(createDiagnosticForNode2(node, Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)); return "skip"; - case 233 /* AsExpression */: + case 234 /* AsExpression */: diagnostics.push(createDiagnosticForNode2(node.type, Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)); return "skip"; - case 237 /* SatisfiesExpression */: + case 238 /* SatisfiesExpression */: diagnostics.push(createDiagnosticForNode2(node.type, Diagnostics.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)); return "skip"; - case 215 /* TypeAssertionExpression */: + case 216 /* TypeAssertionExpression */: Debug.fail(); } } @@ -119826,26 +121628,26 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config } } switch (parent2.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 173 /* MethodDeclaration */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: - case 218 /* ArrowFunction */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 219 /* ArrowFunction */: if (nodes === parent2.typeParameters) { diagnostics.push(createDiagnosticForNodeArray2(nodes, Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)); return "skip"; } - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: if (nodes === parent2.modifiers) { - checkModifiers(parent2.modifiers, parent2.kind === 242 /* VariableStatement */); + checkModifiers(parent2.modifiers, parent2.kind === 243 /* VariableStatement */); return "skip"; } break; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: if (nodes === parent2.modifiers) { for (const modifier of nodes) { if (isModifier(modifier) && modifier.kind !== 126 /* StaticKeyword */ && modifier.kind !== 129 /* AccessorKeyword */) { @@ -119855,18 +121657,18 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config return "skip"; } break; - case 168 /* Parameter */: + case 169 /* Parameter */: if (nodes === parent2.modifiers && some(nodes, isModifier)) { diagnostics.push(createDiagnosticForNodeArray2(nodes, Diagnostics.Parameter_modifiers_can_only_be_used_in_TypeScript_files)); return "skip"; } break; - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 232 /* ExpressionWithTypeArguments */: - case 284 /* JsxSelfClosingElement */: - case 285 /* JsxOpeningElement */: - case 214 /* TaggedTemplateExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 233 /* ExpressionWithTypeArguments */: + case 285 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 215 /* TaggedTemplateExpression */: if (nodes === parent2.typeArguments) { diagnostics.push(createDiagnosticForNodeArray2(nodes, Diagnostics.Type_arguments_can_only_be_used_in_TypeScript_files)); return "skip"; @@ -119887,7 +121689,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config case 148 /* ReadonlyKeyword */: case 138 /* DeclareKeyword */: case 128 /* AbstractKeyword */: - case 163 /* OverrideKeyword */: + case 164 /* OverrideKeyword */: case 103 /* InKeyword */: case 147 /* OutKeyword */: diagnostics.push(createDiagnosticForNode2(modifier, Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, tokenToString(modifier.kind))); @@ -119985,8 +121787,8 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config addInternalEmitFlags(importDecl, 2 /* NeverApplyImportHelper */); setParent(externalHelpersModuleReference, importDecl); setParent(importDecl, file); - externalHelpersModuleReference.flags &= ~8 /* Synthesized */; - importDecl.flags &= ~8 /* Synthesized */; + externalHelpersModuleReference.flags &= ~16 /* Synthesized */; + importDecl.flags &= ~16 /* Synthesized */; return externalHelpersModuleReference; } function collectExternalModuleReferences(file) { @@ -120015,7 +121817,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config ); } const shouldProcessRequires = isJavaScriptFile && shouldResolveJsRequire(options); - if (file.flags & 2097152 /* PossiblyContainsDynamicImport */ || shouldProcessRequires) { + if (file.flags & 4194304 /* PossiblyContainsDynamicImport */ || shouldProcessRequires) { collectDynamicImportOrRequireCalls(file); } file.imports = imports || emptyArray; @@ -120223,7 +122025,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config return typeof result === "object" ? { ...result, languageVersion, setExternalModuleIndicator: setExternalModuleIndicator2 } : { languageVersion, impliedNodeFormat: result, setExternalModuleIndicator: setExternalModuleIndicator2 }; } function findSourceFileWorker(fileName, isDefaultLib, ignoreNoDefaultLib, reason, packageId) { - var _a2, _b2; + var _a2; const path = toPath3(fileName); if (useSourceOfProjectReferenceRedirect) { let source = getSourceOfProjectReferenceRedirect(path); @@ -120302,7 +122104,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config Diagnostics.Cannot_read_file_0_Colon_1, [fileName, hostErrorMessage] ), - shouldCreateNewSourceFile || ((_a2 = oldProgram == null ? void 0 : oldProgram.getSourceFileByPath(toPath3(fileName))) == null ? void 0 : _a2.impliedNodeFormat) !== sourceFileOptions.impliedNodeFormat + shouldCreateNewSourceFile ); if (packageId) { const packageIdKey = packageIdToString(packageId); @@ -120327,7 +122129,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config file.path = path; file.resolvedPath = toPath3(fileName); file.originalFileName = originalFileName; - file.packageJsonLocations = ((_b2 = sourceFileOptions.packageJsonLocations) == null ? void 0 : _b2.length) ? sourceFileOptions.packageJsonLocations : void 0; + file.packageJsonLocations = ((_a2 = sourceFileOptions.packageJsonLocations) == null ? void 0 : _a2.length) ? sourceFileOptions.packageJsonLocations : void 0; file.packageJsonScope = sourceFileOptions.packageJsonScope; addFileIncludeReason(file, reason); if (host.useCaseSensitiveFileNames()) { @@ -120637,7 +122439,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config currentNodeModulesDepth++; } const elideImport = isJsFileFromNodeModules && currentNodeModulesDepth > maxNodeModuleJsDepth; - const shouldAddFile = resolvedFileName && !getResolutionDiagnostic(optionsForFile, resolution, file) && !optionsForFile.noResolve && index < file.imports.length && !elideImport && !(isJsFile && !getAllowJSCompilerOption(optionsForFile)) && (isInJSFile(file.imports[index]) || !(file.imports[index].flags & 8388608 /* JSDoc */)); + const shouldAddFile = resolvedFileName && !getResolutionDiagnostic(optionsForFile, resolution, file) && !optionsForFile.noResolve && index < file.imports.length && !elideImport && !(isJsFile && !getAllowJSCompilerOption(optionsForFile)) && (isInJSFile(file.imports[index]) || !(file.imports[index].flags & 16777216 /* JSDoc */)); if (elideImport) { modulesWithElidedImports.set(file.path, true); } else if (shouldAddFile) { @@ -120996,6 +122798,13 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config if (moduleResolution === 100 /* Bundler */ && !emitModuleKindIsNonNodeESM(moduleKind)) { createOptionValueDiagnostic("moduleResolution", Diagnostics.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later, "bundler"); } + if (ModuleKind[moduleKind] && (100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */) && !(3 /* Node16 */ <= moduleResolution && moduleResolution <= 99 /* NodeNext */)) { + const moduleKindName = ModuleKind[moduleKind]; + createOptionValueDiagnostic("moduleResolution", Diagnostics.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1, moduleKindName, moduleKindName); + } else if (ModuleResolutionKind[moduleResolution] && (3 /* Node16 */ <= moduleResolution && moduleResolution <= 99 /* NodeNext */) && !(100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */)) { + const moduleResolutionName = ModuleResolutionKind[moduleResolution]; + createOptionValueDiagnostic("module", Diagnostics.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1, moduleResolutionName, moduleResolutionName); + } if (!options.noEmit && !options.suppressOutputPathCheck) { const emitHost = getEmitHost(); const emitFilesSeen = /* @__PURE__ */ new Set(); @@ -121686,6 +123495,9 @@ function parseConfigHostFromCompilerHostLike(host, directoryStructureHost = host return directoryStructureHost.readDirectory(root, extensions, excludes, includes, depth); }, readFile: (f) => directoryStructureHost.readFile(f), + directoryExists: maybeBind(directoryStructureHost, directoryStructureHost.directoryExists), + getDirectories: maybeBind(directoryStructureHost, directoryStructureHost.getDirectories), + realpath: maybeBind(directoryStructureHost, directoryStructureHost.realpath), useCaseSensitiveFileNames: host.useCaseSensitiveFileNames(), getCurrentDirectory: () => host.getCurrentDirectory(), onUnRecoverableConfigFileDiagnostic: host.onUnRecoverableConfigFileDiagnostic || returnUndefined, @@ -124582,17 +126394,17 @@ function getFilesInErrorForSummary(diagnostics) { function getWatchErrorSummaryDiagnosticMessage(errorCount) { return errorCount === 1 ? Diagnostics.Found_1_error_Watching_for_file_changes : Diagnostics.Found_0_errors_Watching_for_file_changes; } -function prettyPathForFileError(error, cwd) { - const line = formatColorAndReset(":" + error.line, "\x1B[90m" /* Grey */); - if (pathIsAbsolute(error.fileName) && pathIsAbsolute(cwd)) { +function prettyPathForFileError(error2, cwd) { + const line = formatColorAndReset(":" + error2.line, "\x1B[90m" /* Grey */); + if (pathIsAbsolute(error2.fileName) && pathIsAbsolute(cwd)) { return getRelativePathFromDirectory( cwd, - error.fileName, + error2.fileName, /*ignoreCase*/ false ) + line; } - return error.fileName + line; + return error2.fileName + line; } function getErrorSummaryText(errorCount, filesInError, newLine, host) { if (errorCount === 0) @@ -124725,12 +126537,12 @@ function getMatchedIncludeSpec(program, fileName) { return true; const isJsonFile = fileExtensionIs(fileName, ".json" /* Json */); const basePath = getDirectoryPath(getNormalizedAbsolutePath(configFile.fileName, program.getCurrentDirectory())); - const useCaseSensitiveFileNames = program.useCaseSensitiveFileNames(); + const useCaseSensitiveFileNames2 = program.useCaseSensitiveFileNames(); return find((_b = configFile == null ? void 0 : configFile.configFileSpecs) == null ? void 0 : _b.validatedIncludeSpecs, (includeSpec) => { if (isJsonFile && !endsWith(includeSpec, ".json" /* Json */)) return false; const pattern = getPatternFromSpec(includeSpec, basePath, "files"); - return !!pattern && getRegexFromPattern(`(${pattern})$`, useCaseSensitiveFileNames).test(fileName); + return !!pattern && getRegexFromPattern(`(${pattern})$`, useCaseSensitiveFileNames2).test(fileName); }); } function fileIncludeReasonToDiagnostics(program, reason, fileNameConvertor) { @@ -124959,7 +126771,7 @@ function createWatchFactory(host, options) { return result; } function createCompilerHostFromProgramHost(host, getCompilerOptions, directoryStructureHost = host) { - const useCaseSensitiveFileNames = host.useCaseSensitiveFileNames(); + const useCaseSensitiveFileNames2 = host.useCaseSensitiveFileNames(); const compilerHost = { getSourceFile: createGetSourceFile( (fileName, encoding) => !encoding ? compilerHost.readFile(fileName) : host.readFile(fileName, encoding), @@ -124975,8 +126787,8 @@ function createCompilerHostFromProgramHost(host, getCompilerOptions, directorySt (path) => host.directoryExists(path) ), getCurrentDirectory: memoize(() => host.getCurrentDirectory()), - useCaseSensitiveFileNames: () => useCaseSensitiveFileNames, - getCanonicalFileName: createGetCanonicalFileName(useCaseSensitiveFileNames), + useCaseSensitiveFileNames: () => useCaseSensitiveFileNames2, + getCanonicalFileName: createGetCanonicalFileName(useCaseSensitiveFileNames2), getNewLine: () => getNewLineCharacter(getCompilerOptions()), fileExists: (f) => host.fileExists(f), readFile: (f) => host.readFile(f), @@ -125216,7 +127028,7 @@ function createWatchProgram(host) { const sourceFilesCache = /* @__PURE__ */ new Map(); let missingFilePathsRequestedForRelease; let hasChangedCompilerOptions = false; - const useCaseSensitiveFileNames = host.useCaseSensitiveFileNames(); + const useCaseSensitiveFileNames2 = host.useCaseSensitiveFileNames(); const currentDirectory = host.getCurrentDirectory(); const { configFileName, optionsToExtend: optionsToExtendForConfigFile = {}, watchOptionsToExtend, extraFileExtensions, createProgram: createProgram2 } = host; let { rootFiles: rootFileNames, options: compilerOptions, watchOptions, projectReferences } = host; @@ -125224,7 +127036,7 @@ function createWatchProgram(host) { let configFileParsingDiagnostics; let canConfigFileJsonReportNoInputFiles = false; let hasChangedConfigFileParsingErrors = false; - const cachedDirectoryStructureHost = configFileName === void 0 ? void 0 : createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensitiveFileNames); + const cachedDirectoryStructureHost = configFileName === void 0 ? void 0 : createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensitiveFileNames2); const directoryStructureHost = cachedDirectoryStructureHost || host; const parseConfigFileHost = parseConfigHostFromCompilerHostLike(host, directoryStructureHost); let newLine = updateNewLine(); @@ -125242,8 +127054,8 @@ function createWatchProgram(host) { Debug.assert(compilerOptions); Debug.assert(rootFileNames); const { watchFile: watchFile2, watchDirectory, writeLog } = createWatchFactory(host, compilerOptions); - const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames); - writeLog(`Current directory: ${currentDirectory} CaseSensitiveFileNames: ${useCaseSensitiveFileNames}`); + const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2); + writeLog(`Current directory: ${currentDirectory} CaseSensitiveFileNames: ${useCaseSensitiveFileNames2}`); let configFileWatcher; if (configFileName) { configFileWatcher = watchFile2(configFileName, scheduleProgramReload, 2e3 /* High */, watchOptions, WatchType.ConfigFile); @@ -125352,7 +127164,6 @@ function createWatchProgram(host) { if (hasChangedCompilerOptions) { newLine = updateNewLine(); if (program && changesAffectModuleResolution(program.getCompilerOptions(), compilerOptions)) { - debugger; resolutionCache.onChangesAffectModuleResolution(); } } @@ -125457,7 +127268,8 @@ function createWatchProgram(host) { if (isFileMissingOnHost(hostSourceFile)) { return void 0; } - if (hostSourceFile === void 0 || shouldCreateNewSourceFile || isFilePresenceUnknownOnHost(hostSourceFile)) { + const impliedNodeFormat = typeof languageVersionOrOptions === "object" ? languageVersionOrOptions.impliedNodeFormat : void 0; + if (hostSourceFile === void 0 || shouldCreateNewSourceFile || isFilePresenceUnknownOnHost(hostSourceFile) || hostSourceFile.sourceFile.impliedNodeFormat !== impliedNodeFormat) { const sourceFile = getNewSourceFile(fileName, languageVersionOrOptions, onError); if (hostSourceFile) { if (sourceFile) { @@ -125748,7 +127560,7 @@ function createWatchProgram(host) { options: compilerOptions, program: getCurrentBuilderProgram() || rootFileNames, currentDirectory, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, writeLog, toPath: toPath3 })) @@ -125838,7 +127650,7 @@ function createWatchProgram(host) { options: config.parsedCommandLine.options, program: config.parsedCommandLine.fileNames, currentDirectory, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, writeLog, toPath: toPath3 })) @@ -128452,6 +130264,8 @@ var ScriptElementKind = /* @__PURE__ */ ((ScriptElementKind2) => { ScriptElementKind2["enumMemberElement"] = "enum member"; ScriptElementKind2["variableElement"] = "var"; ScriptElementKind2["localVariableElement"] = "local var"; + ScriptElementKind2["variableUsingElement"] = "using"; + ScriptElementKind2["variableAwaitUsingElement"] = "await using"; ScriptElementKind2["functionElement"] = "function"; ScriptElementKind2["localFunctionElement"] = "local function"; ScriptElementKind2["memberFunctionElement"] = "method"; @@ -128576,36 +130390,36 @@ var SemanticMeaning = /* @__PURE__ */ ((SemanticMeaning3) => { })(SemanticMeaning || {}); function getMeaningFromDeclaration(node) { switch (node.kind) { - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return isInJSFile(node) && getJSDocEnumTag(node) ? 7 /* All */ : 1 /* Value */; - case 168 /* Parameter */: - case 207 /* BindingElement */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 298 /* CatchClause */: - case 290 /* JsxAttribute */: + case 169 /* Parameter */: + case 208 /* BindingElement */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 299 /* CatchClause */: + case 291 /* JsxAttribute */: return 1 /* Value */; - case 167 /* TypeParameter */: - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 186 /* TypeLiteral */: + case 168 /* TypeParameter */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 187 /* TypeLiteral */: return 2 /* Type */; - case 352 /* JSDocTypedefTag */: + case 353 /* JSDocTypedefTag */: return node.name === void 0 ? 1 /* Value */ | 2 /* Type */ : 2 /* Type */; - case 305 /* EnumMember */: - case 262 /* ClassDeclaration */: + case 306 /* EnumMember */: + case 263 /* ClassDeclaration */: return 1 /* Value */ | 2 /* Type */; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: if (isAmbientModule(node)) { return 4 /* Namespace */ | 1 /* Value */; } else if (getModuleInstanceState(node) === 1 /* Instantiated */) { @@ -128613,15 +130427,15 @@ function getMeaningFromDeclaration(node) { } else { return 4 /* Namespace */; } - case 265 /* EnumDeclaration */: - case 274 /* NamedImports */: - case 275 /* ImportSpecifier */: - case 270 /* ImportEqualsDeclaration */: - case 271 /* ImportDeclaration */: - case 276 /* ExportAssignment */: - case 277 /* ExportDeclaration */: + case 266 /* EnumDeclaration */: + case 275 /* NamedImports */: + case 276 /* ImportSpecifier */: + case 271 /* ImportEqualsDeclaration */: + case 272 /* ImportDeclaration */: + case 277 /* ExportAssignment */: + case 278 /* ExportDeclaration */: return 7 /* All */; - case 311 /* SourceFile */: + case 312 /* SourceFile */: return 4 /* Namespace */ | 1 /* Value */; } return 7 /* All */; @@ -128629,7 +130443,7 @@ function getMeaningFromDeclaration(node) { function getMeaningFromLocation(node) { node = getAdjustedReferenceLocation(node); const parent2 = node.parent; - if (node.kind === 311 /* SourceFile */) { + if (node.kind === 312 /* SourceFile */) { return 1 /* Value */; } else if (isExportAssignment(parent2) || isExportSpecifier(parent2) || isExternalModuleReference(parent2) || isImportSpecifier(parent2) || isImportClause(parent2) || isImportEqualsDeclaration(parent2) && node === parent2.name) { return 7 /* All */; @@ -128653,11 +130467,11 @@ function getMeaningFromLocation(node) { } } function getMeaningFromRightHandSideOfImportEquals(node) { - const name = node.kind === 165 /* QualifiedName */ ? node : isQualifiedName(node.parent) && node.parent.right === node ? node.parent : void 0; - return name && name.parent.kind === 270 /* ImportEqualsDeclaration */ ? 7 /* All */ : 4 /* Namespace */; + const name = node.kind === 166 /* QualifiedName */ ? node : isQualifiedName(node.parent) && node.parent.right === node ? node.parent : void 0; + return name && name.parent.kind === 271 /* ImportEqualsDeclaration */ ? 7 /* All */ : 4 /* Namespace */; } function isInRightSideOfInternalImportEqualsDeclaration(node) { - while (node.parent.kind === 165 /* QualifiedName */) { + while (node.parent.kind === 166 /* QualifiedName */) { node = node.parent; } return isInternalModuleImportEqualsDeclaration(node.parent) && node.parent.moduleReference === node; @@ -128668,26 +130482,26 @@ function isNamespaceReference(node) { function isQualifiedNameNamespaceReference(node) { let root = node; let isLastClause = true; - if (root.parent.kind === 165 /* QualifiedName */) { - while (root.parent && root.parent.kind === 165 /* QualifiedName */) { + if (root.parent.kind === 166 /* QualifiedName */) { + while (root.parent && root.parent.kind === 166 /* QualifiedName */) { root = root.parent; } isLastClause = root.right === node; } - return root.parent.kind === 182 /* TypeReference */ && !isLastClause; + return root.parent.kind === 183 /* TypeReference */ && !isLastClause; } function isPropertyAccessNamespaceReference(node) { let root = node; let isLastClause = true; - if (root.parent.kind === 210 /* PropertyAccessExpression */) { - while (root.parent && root.parent.kind === 210 /* PropertyAccessExpression */) { + if (root.parent.kind === 211 /* PropertyAccessExpression */) { + while (root.parent && root.parent.kind === 211 /* PropertyAccessExpression */) { root = root.parent; } isLastClause = root.name === node; } - if (!isLastClause && root.parent.kind === 232 /* ExpressionWithTypeArguments */ && root.parent.parent.kind === 297 /* HeritageClause */) { + if (!isLastClause && root.parent.kind === 233 /* ExpressionWithTypeArguments */ && root.parent.parent.kind === 298 /* HeritageClause */) { const decl = root.parent.parent.parent; - return decl.kind === 262 /* ClassDeclaration */ && root.parent.parent.token === 119 /* ImplementsKeyword */ || decl.kind === 263 /* InterfaceDeclaration */ && root.parent.parent.token === 96 /* ExtendsKeyword */; + return decl.kind === 263 /* ClassDeclaration */ && root.parent.parent.token === 119 /* ImplementsKeyword */ || decl.kind === 264 /* InterfaceDeclaration */ && root.parent.parent.token === 96 /* ExtendsKeyword */; } return false; } @@ -128698,15 +130512,15 @@ function isTypeReference(node) { switch (node.kind) { case 110 /* ThisKeyword */: return !isExpressionNode(node); - case 196 /* ThisType */: + case 197 /* ThisType */: return true; } switch (node.parent.kind) { - case 182 /* TypeReference */: + case 183 /* TypeReference */: return true; - case 204 /* ImportType */: + case 205 /* ImportType */: return !node.parent.isTypeOf; - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return isPartOfTypeNode(node.parent); } return false; @@ -128753,7 +130567,7 @@ function climbPastPropertyOrElementAccess(node) { } function getTargetLabel(referenceNode, labelName) { while (referenceNode) { - if (referenceNode.kind === 255 /* LabeledStatement */ && referenceNode.label.escapedText === labelName) { + if (referenceNode.kind === 256 /* LabeledStatement */ && referenceNode.label.escapedText === labelName) { return referenceNode.label; } referenceNode = referenceNode.parent; @@ -128803,22 +130617,22 @@ function isNameOfFunctionDeclaration(node) { } function isLiteralNameOfPropertyDeclarationOrIndexAccess(node) { switch (node.parent.kind) { - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 302 /* PropertyAssignment */: - case 305 /* EnumMember */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 266 /* ModuleDeclaration */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 303 /* PropertyAssignment */: + case 306 /* EnumMember */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 267 /* ModuleDeclaration */: return getNameOfDeclaration(node.parent) === node; - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return node.parent.argumentExpression === node; - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: return true; - case 200 /* LiteralType */: - return node.parent.parent.kind === 198 /* IndexedAccessType */; + case 201 /* LiteralType */: + return node.parent.parent.kind === 199 /* IndexedAccessType */; default: return false; } @@ -128836,83 +130650,83 @@ function getContainerNode(node) { return void 0; } switch (node.kind) { - case 311 /* SourceFile */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: - case 266 /* ModuleDeclaration */: + case 312 /* SourceFile */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + case 267 /* ModuleDeclaration */: return node; } } } function getNodeKind(node) { switch (node.kind) { - case 311 /* SourceFile */: + case 312 /* SourceFile */: return isExternalModule(node) ? "module" /* moduleElement */ : "script" /* scriptElement */; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return "module" /* moduleElement */; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return "class" /* classElement */; - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: return "interface" /* interfaceElement */; - case 264 /* TypeAliasDeclaration */: - case 344 /* JSDocCallbackTag */: - case 352 /* JSDocTypedefTag */: + case 265 /* TypeAliasDeclaration */: + case 345 /* JSDocCallbackTag */: + case 353 /* JSDocTypedefTag */: return "type" /* typeElement */; - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return "enum" /* enumElement */; - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return getKindOfVariableDeclaration(node); - case 207 /* BindingElement */: + case 208 /* BindingElement */: return getKindOfVariableDeclaration(getRootDeclaration(node)); - case 218 /* ArrowFunction */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: return "function" /* functionElement */; - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return "getter" /* memberGetAccessorElement */; - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return "setter" /* memberSetAccessorElement */; - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: return "method" /* memberFunctionElement */; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: const { initializer } = node; return isFunctionLike(initializer) ? "method" /* memberFunctionElement */ : "property" /* memberVariableElement */; - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 303 /* ShorthandPropertyAssignment */: - case 304 /* SpreadAssignment */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 304 /* ShorthandPropertyAssignment */: + case 305 /* SpreadAssignment */: return "property" /* memberVariableElement */; - case 180 /* IndexSignature */: + case 181 /* IndexSignature */: return "index" /* indexSignatureElement */; - case 179 /* ConstructSignature */: + case 180 /* ConstructSignature */: return "construct" /* constructSignatureElement */; - case 178 /* CallSignature */: + case 179 /* CallSignature */: return "call" /* callSignatureElement */; - case 175 /* Constructor */: - case 174 /* ClassStaticBlockDeclaration */: + case 176 /* Constructor */: + case 175 /* ClassStaticBlockDeclaration */: return "constructor" /* constructorImplementationElement */; - case 167 /* TypeParameter */: + case 168 /* TypeParameter */: return "type parameter" /* typeParameterElement */; - case 305 /* EnumMember */: + case 306 /* EnumMember */: return "enum member" /* enumMemberElement */; - case 168 /* Parameter */: + case 169 /* Parameter */: return hasSyntacticModifier(node, 16476 /* ParameterPropertyModifier */) ? "property" /* memberVariableElement */ : "parameter" /* parameterElement */; - case 270 /* ImportEqualsDeclaration */: - case 275 /* ImportSpecifier */: - case 280 /* ExportSpecifier */: - case 273 /* NamespaceImport */: - case 279 /* NamespaceExport */: + case 271 /* ImportEqualsDeclaration */: + case 276 /* ImportSpecifier */: + case 281 /* ExportSpecifier */: + case 274 /* NamespaceImport */: + case 280 /* NamespaceExport */: return "alias" /* alias */; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: const kind = getAssignmentDeclarationKind(node); const { right } = node; switch (kind) { @@ -128940,7 +130754,7 @@ function getNodeKind(node) { } case 80 /* Identifier */: return isImportClause(node.parent) ? "alias" /* alias */ : "" /* unknown */; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: const scriptKind = getNodeKind(node.expression); return scriptKind === "" /* unknown */ ? "const" /* constElement */ : scriptKind; default: @@ -128955,7 +130769,7 @@ function isThis(node) { case 110 /* ThisKeyword */: return true; case 80 /* Identifier */: - return identifierIsThisKeyword(node) && node.parent.kind === 168 /* Parameter */; + return identifierIsThisKeyword(node) && node.parent.kind === 169 /* Parameter */; default: return false; } @@ -129004,41 +130818,41 @@ function isCompletedNode(n, sourceFile) { return false; } switch (n.kind) { - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: - case 209 /* ObjectLiteralExpression */: - case 205 /* ObjectBindingPattern */: - case 186 /* TypeLiteral */: - case 240 /* Block */: - case 267 /* ModuleBlock */: - case 268 /* CaseBlock */: - case 274 /* NamedImports */: - case 278 /* NamedExports */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + case 210 /* ObjectLiteralExpression */: + case 206 /* ObjectBindingPattern */: + case 187 /* TypeLiteral */: + case 241 /* Block */: + case 268 /* ModuleBlock */: + case 269 /* CaseBlock */: + case 275 /* NamedImports */: + case 279 /* NamedExports */: return nodeEndsWith(n, 20 /* CloseBraceToken */, sourceFile); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return isCompletedNode(n.block, sourceFile); - case 213 /* NewExpression */: + case 214 /* NewExpression */: if (!n.arguments) { return true; } - case 212 /* CallExpression */: - case 216 /* ParenthesizedExpression */: - case 195 /* ParenthesizedType */: + case 213 /* CallExpression */: + case 217 /* ParenthesizedExpression */: + case 196 /* ParenthesizedType */: return nodeEndsWith(n, 22 /* CloseParenToken */, sourceFile); - case 183 /* FunctionType */: - case 184 /* ConstructorType */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: return isCompletedNode(n.type, sourceFile); - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 179 /* ConstructSignature */: - case 178 /* CallSignature */: - case 218 /* ArrowFunction */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 180 /* ConstructSignature */: + case 179 /* CallSignature */: + case 219 /* ArrowFunction */: if (n.body) { return isCompletedNode(n.body, sourceFile); } @@ -129046,60 +130860,60 @@ function isCompletedNode(n, sourceFile) { return isCompletedNode(n.type, sourceFile); } return hasChildOfKind(n, 22 /* CloseParenToken */, sourceFile); - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return !!n.body && isCompletedNode(n.body, sourceFile); - case 244 /* IfStatement */: + case 245 /* IfStatement */: if (n.elseStatement) { return isCompletedNode(n.elseStatement, sourceFile); } return isCompletedNode(n.thenStatement, sourceFile); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return isCompletedNode(n.expression, sourceFile) || hasChildOfKind(n, 27 /* SemicolonToken */, sourceFile); - case 208 /* ArrayLiteralExpression */: - case 206 /* ArrayBindingPattern */: - case 211 /* ElementAccessExpression */: - case 166 /* ComputedPropertyName */: - case 188 /* TupleType */: + case 209 /* ArrayLiteralExpression */: + case 207 /* ArrayBindingPattern */: + case 212 /* ElementAccessExpression */: + case 167 /* ComputedPropertyName */: + case 189 /* TupleType */: return nodeEndsWith(n, 24 /* CloseBracketToken */, sourceFile); - case 180 /* IndexSignature */: + case 181 /* IndexSignature */: if (n.type) { return isCompletedNode(n.type, sourceFile); } return hasChildOfKind(n, 24 /* CloseBracketToken */, sourceFile); - case 295 /* CaseClause */: - case 296 /* DefaultClause */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: return false; - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 246 /* WhileStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 247 /* WhileStatement */: return isCompletedNode(n.statement, sourceFile); - case 245 /* DoStatement */: + case 246 /* DoStatement */: return hasChildOfKind(n, 117 /* WhileKeyword */, sourceFile) ? nodeEndsWith(n, 22 /* CloseParenToken */, sourceFile) : isCompletedNode(n.statement, sourceFile); - case 185 /* TypeQuery */: + case 186 /* TypeQuery */: return isCompletedNode(n.exprName, sourceFile); - case 220 /* TypeOfExpression */: - case 219 /* DeleteExpression */: - case 221 /* VoidExpression */: - case 228 /* YieldExpression */: - case 229 /* SpreadElement */: + case 221 /* TypeOfExpression */: + case 220 /* DeleteExpression */: + case 222 /* VoidExpression */: + case 229 /* YieldExpression */: + case 230 /* SpreadElement */: const unaryWordExpression = n; return isCompletedNode(unaryWordExpression.expression, sourceFile); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return isCompletedNode(n.template, sourceFile); - case 227 /* TemplateExpression */: + case 228 /* TemplateExpression */: const lastSpan = lastOrUndefined(n.templateSpans); return isCompletedNode(lastSpan, sourceFile); - case 238 /* TemplateSpan */: + case 239 /* TemplateSpan */: return nodeIsPresent(n.literal); - case 277 /* ExportDeclaration */: - case 271 /* ImportDeclaration */: + case 278 /* ExportDeclaration */: + case 272 /* ImportDeclaration */: return nodeIsPresent(n.moduleSpecifier); - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: return isCompletedNode(n.operand, sourceFile); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return isCompletedNode(n.right, sourceFile); - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: return isCompletedNode(n.whenFalse, sourceFile); default: return true; @@ -129190,7 +131004,7 @@ function getAncestorTypeNode(node) { return lastTypeNode; } function getContextualTypeFromParentOrAncestorTypeNode(node, checker) { - if (node.flags & (8388608 /* JSDoc */ & ~262144 /* JavaScriptFile */)) + if (node.flags & (16777216 /* JSDoc */ & ~524288 /* JavaScriptFile */)) return void 0; const contextualType = getContextualTypeFromParent(node, checker); if (contextualType) @@ -129201,13 +131015,13 @@ function getContextualTypeFromParentOrAncestorTypeNode(node, checker) { function getAdjustedLocationForDeclaration(node, forRename) { if (!forRename) { switch (node.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return getAdjustedLocationForClass(node); - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: return getAdjustedLocationForFunction(node); - case 175 /* Constructor */: + case 176 /* Constructor */: return node; } } @@ -129316,7 +131130,7 @@ function getAdjustedLocation(node, forRename) { if (node.kind === 149 /* RequireKeyword */ && isExternalModuleReference(parent2)) { return parent2.expression; } - if (node.kind === 160 /* FromKeyword */ && (isImportDeclaration(parent2) || isExportDeclaration(parent2)) && parent2.moduleSpecifier) { + if (node.kind === 161 /* FromKeyword */ && (isImportDeclaration(parent2) || isExportDeclaration(parent2)) && parent2.moduleSpecifier) { return parent2.moduleSpecifier; } if ((node.kind === 96 /* ExtendsKeyword */ || node.kind === 119 /* ImplementsKeyword */) && isHeritageClause(parent2) && parent2.token === node.kind) { @@ -129357,7 +131171,7 @@ function getAdjustedLocation(node, forRename) { if (node.kind === 130 /* AsKeyword */ && isAsExpression(parent2) && isTypeReferenceNode(parent2.type)) { return parent2.type.typeName; } - if (node.kind === 103 /* InKeyword */ && isForInStatement(parent2) || node.kind === 164 /* OfKeyword */ && isForOfStatement(parent2)) { + if (node.kind === 103 /* InKeyword */ && isForInStatement(parent2) || node.kind === 165 /* OfKeyword */ && isForOfStatement(parent2)) { return skipOuterExpressions(parent2.expression); } } @@ -129550,7 +131364,7 @@ function findPrecedingToken(position, sourceFile, startNode2, excludeJsdoc) { } } } - Debug.assert(startNode2 !== void 0 || n.kind === 311 /* SourceFile */ || n.kind === 1 /* EndOfFileToken */ || isJSDocCommentContainingNode(n)); + Debug.assert(startNode2 !== void 0 || n.kind === 312 /* SourceFile */ || n.kind === 1 /* EndOfFileToken */ || isJSDocCommentContainingNode(n)); const candidate = findRightmostChildNodeWithTokens( children, /*exclusiveStartPosition*/ @@ -129585,7 +131399,7 @@ function findRightmostChildNodeWithTokens(children, exclusiveStartPosition, sour for (let i = exclusiveStartPosition - 1; i >= 0; i--) { const child = children[i]; if (isWhiteSpaceOnlyJsxText(child)) { - if (i === 0 && (parentKind === 12 /* JsxText */ || parentKind === 284 /* JsxSelfClosingElement */)) { + if (i === 0 && (parentKind === 12 /* JsxText */ || parentKind === 285 /* JsxSelfClosingElement */)) { Debug.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`"); } } else if (nodeHasTokens(children[i], sourceFile)) { @@ -129617,13 +131431,13 @@ function isInsideJsxElementOrAttribute(sourceFile, position) { if (token.kind === 30 /* LessThanToken */ && token.parent.kind === 12 /* JsxText */) { return true; } - if (token.kind === 30 /* LessThanToken */ && token.parent.kind === 293 /* JsxExpression */) { + if (token.kind === 30 /* LessThanToken */ && token.parent.kind === 294 /* JsxExpression */) { return true; } - if (token && token.kind === 20 /* CloseBraceToken */ && token.parent.kind === 293 /* JsxExpression */) { + if (token && token.kind === 20 /* CloseBraceToken */ && token.parent.kind === 294 /* JsxExpression */) { return true; } - if (token.kind === 30 /* LessThanToken */ && token.parent.kind === 286 /* JsxClosingElement */) { + if (token.kind === 30 /* LessThanToken */ && token.parent.kind === 287 /* JsxClosingElement */) { return true; } return false; @@ -129651,9 +131465,9 @@ function isInJSXText(sourceFile, position) { function isInsideJsxElement(sourceFile, position) { function isInsideJsxElementTraversal(node) { while (node) { - if (node.kind >= 284 /* JsxSelfClosingElement */ && node.kind <= 293 /* JsxExpression */ || node.kind === 12 /* JsxText */ || node.kind === 30 /* LessThanToken */ || node.kind === 32 /* GreaterThanToken */ || node.kind === 80 /* Identifier */ || node.kind === 20 /* CloseBraceToken */ || node.kind === 19 /* OpenBraceToken */ || node.kind === 44 /* SlashToken */) { + if (node.kind >= 285 /* JsxSelfClosingElement */ && node.kind <= 294 /* JsxExpression */ || node.kind === 12 /* JsxText */ || node.kind === 30 /* LessThanToken */ || node.kind === 32 /* GreaterThanToken */ || node.kind === 80 /* Identifier */ || node.kind === 20 /* CloseBraceToken */ || node.kind === 19 /* OpenBraceToken */ || node.kind === 44 /* SlashToken */) { node = node.parent; - } else if (node.kind === 283 /* JsxElement */) { + } else if (node.kind === 284 /* JsxElement */) { if (position > node.getStart(sourceFile)) return true; node = node.parent; @@ -129823,17 +131637,17 @@ function getNodeModifiers(node, excludeFlags = 0 /* None */) { result.push("export" /* exportedModifier */); if (flags & 8192 /* Deprecated */) result.push("deprecated" /* deprecatedModifier */); - if (node.flags & 16777216 /* Ambient */) + if (node.flags & 33554432 /* Ambient */) result.push("declare" /* ambientModifier */); - if (node.kind === 276 /* ExportAssignment */) + if (node.kind === 277 /* ExportAssignment */) result.push("export" /* exportedModifier */); return result.length > 0 ? result.join(",") : "" /* none */; } function getTypeArgumentOrTypeParameterList(node) { - if (node.kind === 182 /* TypeReference */ || node.kind === 212 /* CallExpression */) { + if (node.kind === 183 /* TypeReference */ || node.kind === 213 /* CallExpression */) { return node.typeArguments; } - if (isFunctionLike(node) || node.kind === 262 /* ClassDeclaration */ || node.kind === 263 /* InterfaceDeclaration */) { + if (isFunctionLike(node) || node.kind === 263 /* ClassDeclaration */ || node.kind === 264 /* InterfaceDeclaration */) { return node.typeParameters; } return void 0; @@ -129875,14 +131689,14 @@ function cloneCompilerOptions(options) { return result; } function isArrayLiteralOrObjectLiteralDestructuringPattern(node) { - if (node.kind === 208 /* ArrayLiteralExpression */ || node.kind === 209 /* ObjectLiteralExpression */) { - if (node.parent.kind === 225 /* BinaryExpression */ && node.parent.left === node && node.parent.operatorToken.kind === 64 /* EqualsToken */) { + if (node.kind === 209 /* ArrayLiteralExpression */ || node.kind === 210 /* ObjectLiteralExpression */) { + if (node.parent.kind === 226 /* BinaryExpression */ && node.parent.left === node && node.parent.operatorToken.kind === 64 /* EqualsToken */) { return true; } - if (node.parent.kind === 249 /* ForOfStatement */ && node.parent.initializer === node) { + if (node.parent.kind === 250 /* ForOfStatement */ && node.parent.initializer === node) { return true; } - if (isArrayLiteralOrObjectLiteralDestructuringPattern(node.parent.kind === 302 /* PropertyAssignment */ ? node.parent.parent : node.parent)) { + if (isArrayLiteralOrObjectLiteralDestructuringPattern(node.parent.kind === 303 /* PropertyAssignment */ ? node.parent.parent : node.parent)) { return true; } } @@ -129950,7 +131764,7 @@ function createTextChange(span, newText) { var typeKeywords = [ 133 /* AnyKeyword */, 131 /* AssertsKeyword */, - 162 /* BigIntKeyword */, + 163 /* BigIntKeyword */, 136 /* BooleanKeyword */, 97 /* FalseKeyword */, 140 /* InferKeyword */, @@ -130002,7 +131816,7 @@ function skipConstraint(type) { return type.isTypeParameter() ? type.getConstraint() || type : type; } function getNameFromPropertyName(name) { - return name.kind === 166 /* ComputedPropertyName */ ? isStringOrNumericLiteralLike(name.expression) ? name.expression.text : void 0 : isPrivateIdentifier(name) ? idText(name) : getTextOfIdentifierOrLiteral(name); + return name.kind === 167 /* ComputedPropertyName */ ? isStringOrNumericLiteralLike(name.expression) ? name.expression.text : void 0 : isPrivateIdentifier(name) ? idText(name) : getTextOfIdentifierOrLiteral(name); } function programContainsModules(program) { return program.getSourceFiles().some((s) => !s.isDeclarationFile && !program.isSourceFileFromExternalLibrary(s) && !!(s.externalModuleIndicator || s.commonJsModuleIndicator)); @@ -130129,7 +131943,7 @@ function findModifier(node, kind) { } function insertImports(changes, sourceFile, imports, blankLineBetween, preferences) { const decl = isArray(imports) ? imports[0] : imports; - const importKindPredicate = decl.kind === 242 /* VariableStatement */ ? isRequireVariableStatement : isAnyImportSyntax; + const importKindPredicate = decl.kind === 243 /* VariableStatement */ ? isRequireVariableStatement : isAnyImportSyntax; const existingImportStatements = filter(sourceFile.statements, importKindPredicate); let sortKind = isArray(imports) ? ts_OrganizeImports_exports.detectImportDeclarationSorting(imports, preferences) : 3 /* Both */; const comparer = ts_OrganizeImports_exports.getOrganizeImportsComparer(preferences, sortKind === 2 /* CaseInsensitive */); @@ -130701,13 +132515,13 @@ function needsParentheses(expression) { function getContextualTypeFromParent(node, checker, contextFlags) { const parent2 = walkUpParenthesizedExpressions(node.parent); switch (parent2.kind) { - case 213 /* NewExpression */: + case 214 /* NewExpression */: return checker.getContextualType(parent2, contextFlags); - case 225 /* BinaryExpression */: { + case 226 /* BinaryExpression */: { const { left, operatorToken, right } = parent2; return isEqualityOperatorKind(operatorToken.kind) ? checker.getTypeAtLocation(node === right ? left : right) : checker.getContextualType(node, contextFlags); } - case 295 /* CaseClause */: + case 296 /* CaseClause */: return getSwitchedType(parent2, checker); default: return checker.getContextualType(node, contextFlags); @@ -130733,8 +132547,8 @@ function isStringLiteralOrTemplate(node) { switch (node.kind) { case 11 /* StringLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: - case 227 /* TemplateExpression */: - case 214 /* TaggedTemplateExpression */: + case 228 /* TemplateExpression */: + case 215 /* TaggedTemplateExpression */: return true; default: return false; @@ -130770,16 +132584,16 @@ function getTypeNodeIfAccessible(type, enclosingScope, program, host) { return typeIsAccessible ? res : void 0; } function syntaxRequiresTrailingCommaOrSemicolonOrASI(kind) { - return kind === 178 /* CallSignature */ || kind === 179 /* ConstructSignature */ || kind === 180 /* IndexSignature */ || kind === 170 /* PropertySignature */ || kind === 172 /* MethodSignature */; + return kind === 179 /* CallSignature */ || kind === 180 /* ConstructSignature */ || kind === 181 /* IndexSignature */ || kind === 171 /* PropertySignature */ || kind === 173 /* MethodSignature */; } function syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI(kind) { - return kind === 261 /* FunctionDeclaration */ || kind === 175 /* Constructor */ || kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */; + return kind === 262 /* FunctionDeclaration */ || kind === 176 /* Constructor */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; } function syntaxRequiresTrailingModuleBlockOrSemicolonOrASI(kind) { - return kind === 266 /* ModuleDeclaration */; + return kind === 267 /* ModuleDeclaration */; } function syntaxRequiresTrailingSemicolonOrASI(kind) { - return kind === 242 /* VariableStatement */ || kind === 243 /* ExpressionStatement */ || kind === 245 /* DoStatement */ || kind === 250 /* ContinueStatement */ || kind === 251 /* BreakStatement */ || kind === 252 /* ReturnStatement */ || kind === 256 /* ThrowStatement */ || kind === 258 /* DebuggerStatement */ || kind === 171 /* PropertyDeclaration */ || kind === 264 /* TypeAliasDeclaration */ || kind === 271 /* ImportDeclaration */ || kind === 270 /* ImportEqualsDeclaration */ || kind === 277 /* ExportDeclaration */ || kind === 269 /* NamespaceExportDeclaration */ || kind === 276 /* ExportAssignment */; + return kind === 243 /* VariableStatement */ || kind === 244 /* ExpressionStatement */ || kind === 246 /* DoStatement */ || kind === 251 /* ContinueStatement */ || kind === 252 /* BreakStatement */ || kind === 253 /* ReturnStatement */ || kind === 257 /* ThrowStatement */ || kind === 259 /* DebuggerStatement */ || kind === 172 /* PropertyDeclaration */ || kind === 265 /* TypeAliasDeclaration */ || kind === 272 /* ImportDeclaration */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 278 /* ExportDeclaration */ || kind === 270 /* NamespaceExportDeclaration */ || kind === 277 /* ExportAssignment */; } var syntaxMayBeASICandidate = or( syntaxRequiresTrailingCommaOrSemicolonOrASI, @@ -130809,7 +132623,7 @@ function nodeIsASICandidate(node, sourceFile) { } else if (!syntaxRequiresTrailingSemicolonOrASI(node.kind)) { return false; } - if (node.kind === 245 /* DoStatement */) { + if (node.kind === 246 /* DoStatement */) { return true; } const topNode = findAncestor(node, (ancestor) => !ancestor.parent); @@ -131187,13 +133001,16 @@ function needsNameFromDeclaration(symbol) { return !(symbol.flags & 33554432 /* Transient */) && (symbol.escapedName === "export=" /* ExportEquals */ || symbol.escapedName === "default" /* Default */); } function getDefaultLikeExportNameFromDeclaration(symbol) { - return firstDefined( - symbol.declarations, - (d) => { - var _a, _b; - return isExportAssignment(d) ? (_a = tryCast(skipOuterExpressions(d.expression), isIdentifier)) == null ? void 0 : _a.text : (_b = tryCast(getNameOfDeclaration(d), isIdentifier)) == null ? void 0 : _b.text; + return firstDefined(symbol.declarations, (d) => { + var _a, _b, _c; + if (isExportAssignment(d)) { + return (_a = tryCast(skipOuterExpressions(d.expression), isIdentifier)) == null ? void 0 : _a.text; } - ); + if (isExportSpecifier(d) && d.symbol.flags === 2097152 /* Alias */) { + return (_b = tryCast(d.propertyName, isIdentifier)) == null ? void 0 : _b.text; + } + return (_c = tryCast(getNameOfDeclaration(d), isIdentifier)) == null ? void 0 : _c.text; + }); } function getSymbolParentOrFail(symbol) { var _a; @@ -131590,10 +133407,10 @@ function isImportablePath(fromPath, toPath3, getCanonicalFileName, globalCachePa } function forEachExternalModuleToImportFrom(program, host, preferences, useAutoImportProvider, cb) { var _a, _b; - const useCaseSensitiveFileNames = hostUsesCaseSensitiveFileNames(host); + const useCaseSensitiveFileNames2 = hostUsesCaseSensitiveFileNames(host); const excludePatterns = preferences.autoImportFileExcludePatterns && mapDefined(preferences.autoImportFileExcludePatterns, (spec) => { const pattern = getPatternFromSpec(spec, "", "exclude"); - return pattern ? getRegexFromPattern(pattern, useCaseSensitiveFileNames) : void 0; + return pattern ? getRegexFromPattern(pattern, useCaseSensitiveFileNames2) : void 0; }); forEachExternalModule(program.getTypeChecker(), program.getSourceFiles(), excludePatterns, (module2, file) => cb( module2, @@ -132122,13 +133939,13 @@ function getSemanticClassifications(typeChecker, cancellationToken, sourceFile, } function checkForClassificationCancellation(cancellationToken, kind) { switch (kind) { - case 266 /* ModuleDeclaration */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 261 /* FunctionDeclaration */: - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 267 /* ModuleDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 262 /* FunctionDeclaration */: + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: cancellationToken.throwIfCancellationRequested(); } } @@ -132344,49 +134161,49 @@ function getEncodedSyntacticClassifications(cancellationToken, sourceFile, span) pos = tag.tagName.end; let commentStart = tag.tagName.end; switch (tag.kind) { - case 347 /* JSDocParameterTag */: + case 348 /* JSDocParameterTag */: const param = tag; processJSDocParameterTag(param); commentStart = param.isNameFirst && ((_a = param.typeExpression) == null ? void 0 : _a.end) || param.name.end; break; - case 354 /* JSDocPropertyTag */: + case 355 /* JSDocPropertyTag */: const prop = tag; commentStart = prop.isNameFirst && ((_b = prop.typeExpression) == null ? void 0 : _b.end) || prop.name.end; break; - case 351 /* JSDocTemplateTag */: + case 352 /* JSDocTemplateTag */: processJSDocTemplateTag(tag); pos = tag.end; commentStart = tag.typeParameters.end; break; - case 352 /* JSDocTypedefTag */: + case 353 /* JSDocTypedefTag */: const type = tag; - commentStart = ((_c = type.typeExpression) == null ? void 0 : _c.kind) === 315 /* JSDocTypeExpression */ && ((_d = type.fullName) == null ? void 0 : _d.end) || ((_e = type.typeExpression) == null ? void 0 : _e.end) || commentStart; + commentStart = ((_c = type.typeExpression) == null ? void 0 : _c.kind) === 316 /* JSDocTypeExpression */ && ((_d = type.fullName) == null ? void 0 : _d.end) || ((_e = type.typeExpression) == null ? void 0 : _e.end) || commentStart; break; - case 344 /* JSDocCallbackTag */: + case 345 /* JSDocCallbackTag */: commentStart = tag.typeExpression.end; break; - case 350 /* JSDocTypeTag */: + case 351 /* JSDocTypeTag */: processElement(tag.typeExpression); pos = tag.end; commentStart = tag.typeExpression.end; break; - case 349 /* JSDocThisTag */: - case 346 /* JSDocEnumTag */: + case 350 /* JSDocThisTag */: + case 347 /* JSDocEnumTag */: commentStart = tag.typeExpression.end; break; - case 348 /* JSDocReturnTag */: + case 349 /* JSDocReturnTag */: processElement(tag.typeExpression); pos = tag.end; commentStart = ((_f = tag.typeExpression) == null ? void 0 : _f.end) || commentStart; break; - case 353 /* JSDocSeeTag */: + case 354 /* JSDocSeeTag */: commentStart = ((_g = tag.name) == null ? void 0 : _g.end) || commentStart; break; - case 334 /* JSDocAugmentsTag */: - case 335 /* JSDocImplementsTag */: + case 335 /* JSDocAugmentsTag */: + case 336 /* JSDocImplementsTag */: commentStart = tag.class.end; break; - case 355 /* JSDocThrowsTag */: + case 356 /* JSDocThrowsTag */: processElement(tag.typeExpression); pos = tag.end; commentStart = ((_h = tag.typeExpression) == null ? void 0 : _h.end) || commentStart; @@ -132531,22 +134348,22 @@ function getEncodedSyntacticClassifications(cancellationToken, sourceFile, span) } function tryClassifyJsxElementName(token) { switch (token.parent && token.parent.kind) { - case 285 /* JsxOpeningElement */: + case 286 /* JsxOpeningElement */: if (token.parent.tagName === token) { return 19 /* jsxOpenTagName */; } break; - case 286 /* JsxClosingElement */: + case 287 /* JsxClosingElement */: if (token.parent.tagName === token) { return 20 /* jsxCloseTagName */; } break; - case 284 /* JsxSelfClosingElement */: + case 285 /* JsxSelfClosingElement */: if (token.parent.tagName === token) { return 21 /* jsxSelfClosingTagName */; } break; - case 290 /* JsxAttribute */: + case 291 /* JsxAttribute */: if (token.parent.name === token) { return 22 /* jsxAttribute */; } @@ -132567,11 +134384,11 @@ function getEncodedSyntacticClassifications(cancellationToken, sourceFile, span) if (token) { const parent2 = token.parent; if (tokenKind === 64 /* EqualsToken */) { - if (parent2.kind === 259 /* VariableDeclaration */ || parent2.kind === 171 /* PropertyDeclaration */ || parent2.kind === 168 /* Parameter */ || parent2.kind === 290 /* JsxAttribute */) { + if (parent2.kind === 260 /* VariableDeclaration */ || parent2.kind === 172 /* PropertyDeclaration */ || parent2.kind === 169 /* Parameter */ || parent2.kind === 291 /* JsxAttribute */) { return 5 /* operator */; } } - if (parent2.kind === 225 /* BinaryExpression */ || parent2.kind === 223 /* PrefixUnaryExpression */ || parent2.kind === 224 /* PostfixUnaryExpression */ || parent2.kind === 226 /* ConditionalExpression */) { + if (parent2.kind === 226 /* BinaryExpression */ || parent2.kind === 224 /* PrefixUnaryExpression */ || parent2.kind === 225 /* PostfixUnaryExpression */ || parent2.kind === 227 /* ConditionalExpression */) { return 5 /* operator */; } } @@ -132581,7 +134398,7 @@ function getEncodedSyntacticClassifications(cancellationToken, sourceFile, span) } else if (tokenKind === 10 /* BigIntLiteral */) { return 25 /* bigintLiteral */; } else if (tokenKind === 11 /* StringLiteral */) { - return token && token.parent.kind === 290 /* JsxAttribute */ ? 24 /* jsxAttributeStringLiteralValue */ : 6 /* stringLiteral */; + return token && token.parent.kind === 291 /* JsxAttribute */ ? 24 /* jsxAttributeStringLiteralValue */ : 6 /* stringLiteral */; } else if (tokenKind === 14 /* RegularExpressionLiteral */) { return 6 /* stringLiteral */; } else if (isTemplateLiteralKind(tokenKind)) { @@ -132591,32 +134408,32 @@ function getEncodedSyntacticClassifications(cancellationToken, sourceFile, span) } else if (tokenKind === 80 /* Identifier */) { if (token) { switch (token.parent.kind) { - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: if (token.parent.name === token) { return 11 /* className */; } return; - case 167 /* TypeParameter */: + case 168 /* TypeParameter */: if (token.parent.name === token) { return 15 /* typeParameterName */; } return; - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: if (token.parent.name === token) { return 13 /* interfaceName */; } return; - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: if (token.parent.name === token) { return 12 /* enumName */; } return; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: if (token.parent.name === token) { return 14 /* moduleName */; } return; - case 168 /* Parameter */: + case 169 /* Parameter */: if (token.parent.name === token) { return isThisIdentifier(token) ? 3 /* keyword */ : 17 /* parameterName */; } @@ -132775,7 +134592,7 @@ var DocumentHighlights; let child = throwStatement; while (child.parent) { const parent2 = child.parent; - if (isFunctionBlock(parent2) || parent2.kind === 311 /* SourceFile */) { + if (isFunctionBlock(parent2) || parent2.kind === 312 /* SourceFile */) { return parent2; } if (isTryStatement(parent2) && parent2.tryBlock === child && parent2.catchClause) { @@ -132805,15 +134622,15 @@ var DocumentHighlights; function getBreakOrContinueOwner(statement) { return findAncestor(statement, (node) => { switch (node.kind) { - case 254 /* SwitchStatement */: - if (statement.kind === 250 /* ContinueStatement */) { + case 255 /* SwitchStatement */: + if (statement.kind === 251 /* ContinueStatement */) { return false; } - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 246 /* WhileStatement */: - case 245 /* DoStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 247 /* WhileStatement */: + case 246 /* DoStatement */: return !statement.label || isLabeledBy(node, statement.label.escapedText); default: return isFunctionLike(node) && "quit"; @@ -132826,24 +134643,24 @@ var DocumentHighlights; function getNodesToSearchForModifier(declaration, modifierFlag) { const container = declaration.parent; switch (container.kind) { - case 267 /* ModuleBlock */: - case 311 /* SourceFile */: - case 240 /* Block */: - case 295 /* CaseClause */: - case 296 /* DefaultClause */: + case 268 /* ModuleBlock */: + case 312 /* SourceFile */: + case 241 /* Block */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: if (modifierFlag & 256 /* Abstract */ && isClassDeclaration(declaration)) { return [...declaration.members, declaration]; } else { return container.statements; } - case 175 /* Constructor */: - case 173 /* MethodDeclaration */: - case 261 /* FunctionDeclaration */: + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 262 /* FunctionDeclaration */: return [...container.parameters, ...isClassLike(container.parent) ? container.parent.members : []]; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 186 /* TypeLiteral */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 187 /* TypeLiteral */: const nodes = container.members; if (modifierFlag & (28 /* AccessibilityModifier */ | 64 /* Readonly */)) { const constructor = find(container.members, isConstructorDeclaration); @@ -132854,7 +134671,7 @@ var DocumentHighlights; return [...nodes, container]; } return nodes; - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return void 0; default: Debug.assertNever(container, "Invalid container kind."); @@ -132870,7 +134687,7 @@ var DocumentHighlights; function getLoopBreakContinueOccurrences(loopNode) { const keywords = []; if (pushKeywordIf(keywords, loopNode.getFirstToken(), 99 /* ForKeyword */, 117 /* WhileKeyword */, 92 /* DoKeyword */)) { - if (loopNode.kind === 245 /* DoStatement */) { + if (loopNode.kind === 246 /* DoStatement */) { const loopTokens = loopNode.getChildren(); for (let i = loopTokens.length - 1; i >= 0; i--) { if (pushKeywordIf(keywords, loopTokens[i], 117 /* WhileKeyword */)) { @@ -132890,13 +134707,13 @@ var DocumentHighlights; const owner = getBreakOrContinueOwner(breakOrContinueStatement); if (owner) { switch (owner.kind) { - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: return getLoopBreakContinueOccurrences(owner); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return getSwitchCaseDefaultOccurrences(owner); } } @@ -133055,12 +134872,12 @@ var DocumentHighlights; function isDocumentRegistryEntry(entry) { return !!entry.sourceFile; } -function createDocumentRegistry(useCaseSensitiveFileNames, currentDirectory) { - return createDocumentRegistryInternal(useCaseSensitiveFileNames, currentDirectory); +function createDocumentRegistry(useCaseSensitiveFileNames2, currentDirectory) { + return createDocumentRegistryInternal(useCaseSensitiveFileNames2, currentDirectory); } -function createDocumentRegistryInternal(useCaseSensitiveFileNames, currentDirectory = "", externalCache) { +function createDocumentRegistryInternal(useCaseSensitiveFileNames2, currentDirectory = "", externalCache) { const buckets = /* @__PURE__ */ new Map(); - const getCanonicalFileName = createGetCanonicalFileName(!!useCaseSensitiveFileNames); + const getCanonicalFileName = createGetCanonicalFileName(!!useCaseSensitiveFileNames2); function reportStats() { const bucketInfoArray = arrayFrom(buckets.keys()).filter((name) => name && name.charAt(0) === "_").map((name) => { const entries = buckets.get(name); @@ -133241,13 +135058,6 @@ function createDocumentRegistryInternal(useCaseSensitiveFileNames, currentDirect } } } - function getLanguageServiceRefCounts(path, scriptKind) { - return arrayFrom(buckets.entries(), ([key, bucket]) => { - const bucketEntry = bucket.get(path); - const entry = bucketEntry && getDocumentRegistryEntry(bucketEntry, scriptKind); - return [key, entry && entry.languageServiceRefCount]; - }); - } return { acquireDocument, acquireDocumentWithKey, @@ -133255,9 +135065,10 @@ function createDocumentRegistryInternal(useCaseSensitiveFileNames, currentDirect updateDocumentWithKey, releaseDocument, releaseDocumentWithKey, - getLanguageServiceRefCounts, + getKeyForCompilationSettings, + getDocumentRegistryBucketKeyWithMode, reportStats, - getKeyForCompilationSettings + getBuckets: () => buckets }; } function getKeyForCompilationSettings(settings) { @@ -133269,12 +135080,12 @@ function getDocumentRegistryBucketKeyWithMode(key, mode) { // src/services/getEditsForFileRename.ts function getEditsForFileRename(program, oldFileOrDirPath, newFileOrDirPath, host, formatContext, preferences, sourceMapper) { - const useCaseSensitiveFileNames = hostUsesCaseSensitiveFileNames(host); - const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames); + const useCaseSensitiveFileNames2 = hostUsesCaseSensitiveFileNames(host); + const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2); const oldToNew = getPathUpdater(oldFileOrDirPath, newFileOrDirPath, getCanonicalFileName, sourceMapper); const newToOld = getPathUpdater(newFileOrDirPath, oldFileOrDirPath, getCanonicalFileName, sourceMapper); return ts_textChanges_exports.ChangeTracker.with({ host, formatContext, preferences }, (changeTracker) => { - updateTsconfigFiles(program, changeTracker, oldToNew, oldFileOrDirPath, newFileOrDirPath, host.getCurrentDirectory(), useCaseSensitiveFileNames); + updateTsconfigFiles(program, changeTracker, oldToNew, oldFileOrDirPath, newFileOrDirPath, host.getCurrentDirectory(), useCaseSensitiveFileNames2); updateImports(program, changeTracker, oldToNew, newToOld, host, getCanonicalFileName); }); } @@ -133296,7 +135107,7 @@ function makeCorrespondingRelativeChange(a0, b0, a1, getCanonicalFileName) { const rel = getRelativePathFromFile(a0, b0, getCanonicalFileName); return combinePathsSafe(getDirectoryPath(a1), rel); } -function updateTsconfigFiles(program, changeTracker, oldToNew, oldFileOrDirPath, newFileOrDirPath, currentDirectory, useCaseSensitiveFileNames) { +function updateTsconfigFiles(program, changeTracker, oldToNew, oldFileOrDirPath, newFileOrDirPath, currentDirectory, useCaseSensitiveFileNames2) { const { configFile } = program.getCompilerOptions(); if (!configFile) return; @@ -133320,10 +135131,10 @@ function updateTsconfigFiles(program, changeTracker, oldToNew, oldFileOrDirPath, /*excludes*/ [], includes, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames2, currentDirectory ); - if (getRegexFromPattern(Debug.checkDefined(matchers.includeFilePattern), useCaseSensitiveFileNames).test(oldFileOrDirPath) && !getRegexFromPattern(Debug.checkDefined(matchers.includeFilePattern), useCaseSensitiveFileNames).test(newFileOrDirPath)) { + if (getRegexFromPattern(Debug.checkDefined(matchers.includeFilePattern), useCaseSensitiveFileNames2).test(oldFileOrDirPath) && !getRegexFromPattern(Debug.checkDefined(matchers.includeFilePattern), useCaseSensitiveFileNames2).test(newFileOrDirPath)) { changeTracker.insertNodeAfter(configFile, last(property.initializer.elements), factory.createStringLiteral(relativePath(newFileOrDirPath))); } return; @@ -133371,7 +135182,7 @@ function updateTsconfigFiles(program, changeTracker, oldToNew, oldFileOrDirPath, configDir, path, /*ignoreCase*/ - !useCaseSensitiveFileNames + !useCaseSensitiveFileNames2 ); } } @@ -133905,7 +135716,7 @@ function preProcessFile(sourceText, readImportFiles = true, detectJavaScriptImpo if (token === 156 /* TypeKeyword */) { const skipTypeKeyword = scanner.lookAhead(() => { const token2 = scanner.scan(); - return token2 !== 160 /* FromKeyword */ && (token2 === 42 /* AsteriskToken */ || token2 === 19 /* OpenBraceToken */ || token2 === 80 /* Identifier */ || isKeyword(token2)); + return token2 !== 161 /* FromKeyword */ && (token2 === 42 /* AsteriskToken */ || token2 === 19 /* OpenBraceToken */ || token2 === 80 /* Identifier */ || isKeyword(token2)); }); if (skipTypeKeyword) { token = nextToken(); @@ -133913,7 +135724,7 @@ function preProcessFile(sourceText, readImportFiles = true, detectJavaScriptImpo } if (token === 80 /* Identifier */ || isKeyword(token)) { token = nextToken(); - if (token === 160 /* FromKeyword */) { + if (token === 161 /* FromKeyword */) { token = nextToken(); if (token === 11 /* StringLiteral */) { recordModuleName(); @@ -133939,7 +135750,7 @@ function preProcessFile(sourceText, readImportFiles = true, detectJavaScriptImpo } if (token === 20 /* CloseBraceToken */) { token = nextToken(); - if (token === 160 /* FromKeyword */) { + if (token === 161 /* FromKeyword */) { token = nextToken(); if (token === 11 /* StringLiteral */) { recordModuleName(); @@ -133952,7 +135763,7 @@ function preProcessFile(sourceText, readImportFiles = true, detectJavaScriptImpo token = nextToken(); if (token === 80 /* Identifier */ || isKeyword(token)) { token = nextToken(); - if (token === 160 /* FromKeyword */) { + if (token === 161 /* FromKeyword */) { token = nextToken(); if (token === 11 /* StringLiteral */) { recordModuleName(); @@ -133987,7 +135798,7 @@ function preProcessFile(sourceText, readImportFiles = true, detectJavaScriptImpo } if (token === 20 /* CloseBraceToken */) { token = nextToken(); - if (token === 160 /* FromKeyword */) { + if (token === 161 /* FromKeyword */) { token = nextToken(); if (token === 11 /* StringLiteral */) { recordModuleName(); @@ -133996,7 +135807,7 @@ function preProcessFile(sourceText, readImportFiles = true, detectJavaScriptImpo } } else if (token === 42 /* AsteriskToken */) { token = nextToken(); - if (token === 160 /* FromKeyword */) { + if (token === 161 /* FromKeyword */) { token = nextToken(); if (token === 11 /* StringLiteral */) { recordModuleName(); @@ -134161,7 +135972,7 @@ function preProcessFile(sourceText, readImportFiles = true, detectJavaScriptImpo } // src/services/sourcemaps.ts -var base64UrlRegExp = /^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/; +var base64UrlRegExp = /^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/; function getSourceMapper(host) { const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames()); const currentDirectory = host.getCurrentDirectory(); @@ -134346,8 +136157,8 @@ function computeSuggestionDiagnostics(sourceFile, program, cancellationToken) { diags.push(createDiagnosticForNode(init, Diagnostics.require_call_may_be_converted_to_an_import)); } } - const jsdocTypedefNode = ts_codefix_exports.getJSDocTypedefNode(node); - if (jsdocTypedefNode) { + const jsdocTypedefNodes = ts_codefix_exports.getJSDocTypedefNodes(node); + for (const jsdocTypedefNode of jsdocTypedefNodes) { diags.push(createDiagnosticForNode(jsdocTypedefNode, Diagnostics.JSDoc_typedef_may_be_converted_to_TypeScript_type)); } if (ts_codefix_exports.parameterShouldGetTypeFromJSDoc(node)) { @@ -134363,13 +136174,13 @@ function computeSuggestionDiagnostics(sourceFile, program, cancellationToken) { function containsTopLevelCommonjs(sourceFile) { return sourceFile.statements.some((statement) => { switch (statement.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return statement.declarationList.declarations.some((decl) => !!decl.initializer && isRequireCall( propertyAccessLeftHandSide(decl.initializer), /*requireStringLiteralLikeArgument*/ true )); - case 243 /* ExpressionStatement */: { + case 244 /* ExpressionStatement */: { const { expression } = statement; if (!isBinaryExpression(expression)) return isRequireCall( @@ -134390,10 +136201,10 @@ function propertyAccessLeftHandSide(node) { } function importNameForConvertToDefaultImport(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: const { importClause, moduleSpecifier } = node; - return importClause && !importClause.name && importClause.namedBindings && importClause.namedBindings.kind === 273 /* NamespaceImport */ && isStringLiteral(moduleSpecifier) ? importClause.namedBindings.name : void 0; - case 270 /* ImportEqualsDeclaration */: + return importClause && !importClause.name && importClause.namedBindings && importClause.namedBindings.kind === 274 /* NamespaceImport */ && isStringLiteral(moduleSpecifier) ? importClause.namedBindings.name : void 0; + case 271 /* ImportEqualsDeclaration */: return node.name; default: return void 0; @@ -134457,18 +136268,18 @@ function hasSupportedNumberOfArguments(node) { } function isFixablePromiseArgument(arg, checker) { switch (arg.kind) { - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: const functionFlags = getFunctionFlags(arg); if (functionFlags & 1 /* Generator */) { return false; } - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: visitedNestedConvertibleFunctions.set(getKeyFromNode(arg), true); case 106 /* NullKeyword */: return true; case 80 /* Identifier */: - case 210 /* PropertyAccessExpression */: { + case 211 /* PropertyAccessExpression */: { const symbol = checker.getSymbolAtLocation(arg); if (!symbol) { return false; @@ -134502,10 +136313,10 @@ function canBeConvertedToClass(node, checker) { } function canBeConvertedToAsync(node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 173 /* MethodDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return true; default: return false; @@ -134680,9 +136491,9 @@ function getItemsFromNamedDeclaration(patternMatcher, name, declarations, checke } function shouldKeepItem(declaration, checker) { switch (declaration.kind) { - case 272 /* ImportClause */: - case 275 /* ImportSpecifier */: - case 270 /* ImportEqualsDeclaration */: + case 273 /* ImportClause */: + case 276 /* ImportSpecifier */: + case 271 /* ImportEqualsDeclaration */: const importer = checker.getSymbolAtLocation(declaration.name); const imported = checker.getAliasedSymbol(importer); return importer.escapedName !== imported.escapedName; @@ -134692,7 +136503,7 @@ function shouldKeepItem(declaration, checker) { } function tryAddSingleDeclarationName(declaration, containers) { const name = getNameOfDeclaration(declaration); - return !!name && (pushLiteral(name, containers) || name.kind === 166 /* ComputedPropertyName */ && tryAddComputedPropertyName(name.expression, containers)); + return !!name && (pushLiteral(name, containers) || name.kind === 167 /* ComputedPropertyName */ && tryAddComputedPropertyName(name.expression, containers)); } function tryAddComputedPropertyName(expression, containers) { return pushLiteral(expression, containers) || isPropertyAccessExpression(expression) && (containers.push(expression.name.text), true) && tryAddComputedPropertyName(expression.expression, containers); @@ -134703,7 +136514,7 @@ function pushLiteral(node, containers) { function getContainers(declaration) { const containers = []; const name = getNameOfDeclaration(declaration); - if (name && name.kind === 166 /* ComputedPropertyName */ && !tryAddComputedPropertyName(name.expression, containers)) { + if (name && name.kind === 167 /* ComputedPropertyName */ && !tryAddComputedPropertyName(name.expression, containers)) { return emptyArray; } containers.shift(); @@ -134874,7 +136685,7 @@ function addNodeWithRecursiveInitializer(node) { } } function hasNavigationBarName(node) { - return !hasDynamicName(node) || node.kind !== 225 /* BinaryExpression */ && isPropertyAccessExpression(node.name.expression) && isIdentifier(node.name.expression.expression) && idText(node.name.expression.expression) === "Symbol"; + return !hasDynamicName(node) || node.kind !== 226 /* BinaryExpression */ && isPropertyAccessExpression(node.name.expression) && isIdentifier(node.name.expression.expression) && idText(node.name.expression.expression) === "Symbol"; } function addChildrenRecursively(node) { curCancellationToken.throwIfCancellationRequested(); @@ -134882,7 +136693,7 @@ function addChildrenRecursively(node) { return; } switch (node.kind) { - case 175 /* Constructor */: + case 176 /* Constructor */: const ctr = node; addNodeWithRecursiveChild(ctr, ctr.body); for (const param of ctr.parameters) { @@ -134891,32 +136702,32 @@ function addChildrenRecursively(node) { } } break; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 173 /* MethodSignature */: if (hasNavigationBarName(node)) { addNodeWithRecursiveChild(node, node.body); } break; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: if (hasNavigationBarName(node)) { addNodeWithRecursiveInitializer(node); } break; - case 170 /* PropertySignature */: + case 171 /* PropertySignature */: if (hasNavigationBarName(node)) { addLeafNode(node); } break; - case 272 /* ImportClause */: + case 273 /* ImportClause */: const importClause = node; if (importClause.name) { addLeafNode(importClause.name); } const { namedBindings } = importClause; if (namedBindings) { - if (namedBindings.kind === 273 /* NamespaceImport */) { + if (namedBindings.kind === 274 /* NamespaceImport */) { addLeafNode(namedBindings); } else { for (const element of namedBindings.elements) { @@ -134925,16 +136736,16 @@ function addChildrenRecursively(node) { } } break; - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: addNodeWithRecursiveChild(node, node.name); break; - case 304 /* SpreadAssignment */: + case 305 /* SpreadAssignment */: const { expression } = node; isIdentifier(expression) ? addLeafNode(node, expression) : addLeafNode(node); break; - case 207 /* BindingElement */: - case 302 /* PropertyAssignment */: - case 259 /* VariableDeclaration */: { + case 208 /* BindingElement */: + case 303 /* PropertyAssignment */: + case 260 /* VariableDeclaration */: { const child = node; if (isBindingPattern(child.name)) { addChildrenRecursively(child.name); @@ -134943,18 +136754,18 @@ function addChildrenRecursively(node) { } break; } - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: const nameNode = node.name; if (nameNode && isIdentifier(nameNode)) { addTrackedEs5Class(nameNode.text); } addNodeWithRecursiveChild(node, node.body); break; - case 218 /* ArrowFunction */: - case 217 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 218 /* FunctionExpression */: addNodeWithRecursiveChild(node, node.body); break; - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: startNode(node); for (const member of node.members) { if (!isComputedProperty(member)) { @@ -134963,19 +136774,19 @@ function addChildrenRecursively(node) { } endNode(); break; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: startNode(node); for (const member of node.members) { addChildrenRecursively(member); } endNode(); break; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: addNodeWithRecursiveChild(node, getInteriorModule(node).body); break; - case 276 /* ExportAssignment */: { + case 277 /* ExportAssignment */: { const expression2 = node.expression; const child = isObjectLiteralExpression(expression2) || isCallExpression(expression2) ? expression2 : isArrowFunction(expression2) || isFunctionExpression(expression2) ? expression2.body : void 0; if (child) { @@ -134987,16 +136798,16 @@ function addChildrenRecursively(node) { } break; } - case 280 /* ExportSpecifier */: - case 270 /* ImportEqualsDeclaration */: - case 180 /* IndexSignature */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 264 /* TypeAliasDeclaration */: + case 281 /* ExportSpecifier */: + case 271 /* ImportEqualsDeclaration */: + case 181 /* IndexSignature */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 265 /* TypeAliasDeclaration */: addLeafNode(node); break; - case 212 /* CallExpression */: - case 225 /* BinaryExpression */: { + case 213 /* CallExpression */: + case 226 /* BinaryExpression */: { const special = getAssignmentDeclarationKind(node); switch (special) { case 1 /* ExportsProperty */: @@ -135218,19 +137029,19 @@ function shouldReallyMerge(a, b, parent2) { return false; } switch (a.kind) { - case 171 /* PropertyDeclaration */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return isStatic(a) === isStatic(b); - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return areSameModule(a, b) && getFullyQualifiedModuleName(a) === getFullyQualifiedModuleName(b); default: return true; } } function isSynthesized(node) { - return !!(node.flags & 8 /* Synthesized */); + return !!(node.flags & 16 /* Synthesized */); } function isOwnChild(n, parent2) { const par = isModuleBlock(n.parent) ? n.parent.parent : n.parent; @@ -135240,7 +137051,7 @@ function areSameModule(a, b) { if (!a.body || !b.body) { return a.body === b.body; } - return a.body.kind === b.body.kind && (a.body.kind !== 266 /* ModuleDeclaration */ || areSameModule(a.body, b.body)); + return a.body.kind === b.body.kind && (a.body.kind !== 267 /* ModuleDeclaration */ || areSameModule(a.body, b.body)); } function merge(target, source) { target.additionalNodes = target.additionalNodes || []; @@ -135261,7 +137072,7 @@ function compareChildren(child1, child2) { return compareStringsCaseSensitiveUI(tryGetName(child1.node), tryGetName(child2.node)) || compareValues(navigationBarNodeKind(child1), navigationBarNodeKind(child2)); } function tryGetName(node) { - if (node.kind === 266 /* ModuleDeclaration */) { + if (node.kind === 267 /* ModuleDeclaration */) { return getModuleName(node); } const declName = getNameOfDeclaration(node); @@ -135270,16 +137081,16 @@ function tryGetName(node) { return propertyName && unescapeLeadingUnderscores(propertyName); } switch (node.kind) { - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 230 /* ClassExpression */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 231 /* ClassExpression */: return getFunctionOrClassName(node); default: return void 0; } } function getItemName(node, name) { - if (node.kind === 266 /* ModuleDeclaration */) { + if (node.kind === 267 /* ModuleDeclaration */) { return cleanText(getModuleName(node)); } if (name) { @@ -135289,27 +137100,27 @@ function getItemName(node, name) { } } switch (node.kind) { - case 311 /* SourceFile */: + case 312 /* SourceFile */: const sourceFile = node; return isExternalModule(sourceFile) ? `"${escapeString(getBaseFileName(removeFileExtension(normalizePath(sourceFile.fileName))))}"` : ""; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return isExportAssignment(node) && node.isExportEquals ? "export=" /* ExportEquals */ : "default" /* Default */; - case 218 /* ArrowFunction */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 219 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: if (getSyntacticModifierFlags(node) & 1024 /* Default */) { return "default"; } return getFunctionOrClassName(node); - case 175 /* Constructor */: + case 176 /* Constructor */: return "constructor"; - case 179 /* ConstructSignature */: + case 180 /* ConstructSignature */: return "new()"; - case 178 /* CallSignature */: + case 179 /* CallSignature */: return "()"; - case 180 /* IndexSignature */: + case 181 /* IndexSignature */: return "[]"; default: return ""; @@ -135334,19 +137145,19 @@ function primaryNavBarMenuItems(root) { return true; } switch (navigationBarNodeKind(item)) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 265 /* EnumDeclaration */: - case 263 /* InterfaceDeclaration */: - case 266 /* ModuleDeclaration */: - case 311 /* SourceFile */: - case 264 /* TypeAliasDeclaration */: - case 352 /* JSDocTypedefTag */: - case 344 /* JSDocCallbackTag */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 266 /* EnumDeclaration */: + case 264 /* InterfaceDeclaration */: + case 267 /* ModuleDeclaration */: + case 312 /* SourceFile */: + case 265 /* TypeAliasDeclaration */: + case 353 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: return true; - case 218 /* ArrowFunction */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: return isTopLevelFunctionDeclaration(item); default: return false; @@ -135356,10 +137167,10 @@ function primaryNavBarMenuItems(root) { return false; } switch (navigationBarNodeKind(item2.parent)) { - case 267 /* ModuleBlock */: - case 311 /* SourceFile */: - case 173 /* MethodDeclaration */: - case 175 /* Constructor */: + case 268 /* ModuleBlock */: + case 312 /* SourceFile */: + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: return true; default: return false; @@ -135418,7 +137229,7 @@ function getModuleName(moduleDeclaration) { } function getFullyQualifiedModuleName(moduleDeclaration) { const result = [getTextOfIdentifierOrLiteral(moduleDeclaration.name)]; - while (moduleDeclaration.body && moduleDeclaration.body.kind === 266 /* ModuleDeclaration */) { + while (moduleDeclaration.body && moduleDeclaration.body.kind === 267 /* ModuleDeclaration */) { moduleDeclaration = moduleDeclaration.body; result.push(getTextOfIdentifierOrLiteral(moduleDeclaration.name)); } @@ -135428,13 +137239,13 @@ function getInteriorModule(decl) { return decl.body && isModuleDeclaration(decl.body) ? getInteriorModule(decl.body) : decl; } function isComputedProperty(member) { - return !member.name || member.name.kind === 166 /* ComputedPropertyName */; + return !member.name || member.name.kind === 167 /* ComputedPropertyName */; } function getNodeSpan(node) { - return node.kind === 311 /* SourceFile */ ? createTextSpanFromRange(node) : createTextSpanFromNode(node, curSourceFile); + return node.kind === 312 /* SourceFile */ ? createTextSpanFromRange(node) : createTextSpanFromNode(node, curSourceFile); } function getModifiers2(node) { - if (node.parent && node.parent.kind === 259 /* VariableDeclaration */) { + if (node.parent && node.parent.kind === 260 /* VariableDeclaration */) { node = node.parent; } return getNodeModifiers(node); @@ -135479,9 +137290,9 @@ function getCalledExpressionName(expr) { } function isFunctionOrClassExpression(node) { switch (node.kind) { - case 218 /* ArrowFunction */: - case 217 /* FunctionExpression */: - case 230 /* ClassExpression */: + case 219 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 231 /* ClassExpression */: return true; default: return false; @@ -135540,8 +137351,8 @@ function getApplicableRefactors(context, includeInteractiveActions) { return context.cancellationToken && context.cancellationToken.isCancellationRequested() || !((_a = refactor.kinds) == null ? void 0 : _a.some((kind) => refactorKindBeginsWith(kind, context.kind))) ? void 0 : refactor.getAvailableActions(context, includeInteractiveActions); })); } -function getEditsForRefactor(context, refactorName13, actionName2, interactiveRefactorArguments) { - const refactor = refactors.get(refactorName13); +function getEditsForRefactor(context, refactorName14, actionName2, interactiveRefactorArguments) { + const refactor = refactors.get(refactorName14); return refactor && refactor.getEditsForAction(context, actionName2, interactiveRefactorArguments); } @@ -135549,12 +137360,12 @@ function getEditsForRefactor(context, refactorName13, actionName2, interactiveRe var refactorName = "Convert export"; var defaultToNamedAction = { name: "Convert default export to named export", - description: Diagnostics.Convert_default_export_to_named_export.message, + description: getLocaleSpecificMessage(Diagnostics.Convert_default_export_to_named_export), kind: "refactor.rewrite.export.named" }; var namedToDefaultAction = { name: "Convert named export to default export", - description: Diagnostics.Convert_named_export_to_default_export.message, + description: getLocaleSpecificMessage(Diagnostics.Convert_named_export_to_default_export), kind: "refactor.rewrite.export.default" }; registerRefactor(refactorName, { @@ -135572,7 +137383,7 @@ registerRefactor(refactorName, { } if (context.preferences.provideRefactorNotApplicableReason) { return [ - { name: refactorName, description: Diagnostics.Convert_default_export_to_named_export.message, actions: [ + { name: refactorName, description: getLocaleSpecificMessage(Diagnostics.Convert_default_export_to_named_export), actions: [ { ...defaultToNamedAction, notApplicableReason: info.error }, { ...namedToDefaultAction, notApplicableReason: info.error } ] } @@ -135605,18 +137416,18 @@ function getInfo2(context, considerPartialSpans = true) { } const noSymbolError = (id) => isIdentifier(id) && checker.getSymbolAtLocation(id) ? void 0 : { error: getLocaleSpecificMessage(Diagnostics.Can_only_convert_named_export) }; switch (exportNode.kind) { - case 261 /* FunctionDeclaration */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 266 /* ModuleDeclaration */: { + case 262 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 267 /* ModuleDeclaration */: { const node = exportNode; if (!node.name) return void 0; return noSymbolError(node.name) || { exportNode: node, exportName: node.name, wasDefault, exportingModuleSymbol }; } - case 242 /* VariableStatement */: { + case 243 /* VariableStatement */: { const vs = exportNode; if (!(vs.declarationList.flags & 2 /* Const */) || vs.declarationList.declarations.length !== 1) { return void 0; @@ -135627,7 +137438,7 @@ function getInfo2(context, considerPartialSpans = true) { Debug.assert(!wasDefault, "Can't have a default flag here"); return noSymbolError(decl.name) || { exportNode: vs, exportName: decl.name, wasDefault, exportingModuleSymbol }; } - case 276 /* ExportAssignment */: { + case 277 /* ExportAssignment */: { const node = exportNode; if (node.isExportEquals) return void 0; @@ -135659,20 +137470,20 @@ function changeExport(exportingSourceFile, { wasDefault, exportNode, exportName } else { const exportKeyword = Debug.checkDefined(findModifier(exportNode, 95 /* ExportKeyword */), "Should find an export keyword in modifier list"); switch (exportNode.kind) { - case 261 /* FunctionDeclaration */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: + case 262 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: changes.insertNodeAfter(exportingSourceFile, exportKeyword, factory.createToken(90 /* DefaultKeyword */)); break; - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: const decl = first(exportNode.declarationList.declarations); if (!ts_FindAllReferences_exports.Core.isSymbolReferencedInFile(exportName, checker, exportingSourceFile) && !decl.type) { changes.replaceNode(exportingSourceFile, exportNode, factory.createExportDefault(Debug.checkDefined(decl.initializer, "Initializer was previously known to be present"))); break; } - case 265 /* EnumDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 266 /* ModuleDeclaration */: + case 266 /* EnumDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 267 /* ModuleDeclaration */: changes.deleteModifier(exportingSourceFile, exportKeyword); changes.insertNodeAfter(exportingSourceFile, exportNode, factory.createExportDefault(factory.createIdentifier(exportName.text))); break; @@ -135698,23 +137509,23 @@ function changeImports(program, { wasDefault, exportName, exportingModuleSymbol function changeDefaultToNamedImport(importingSourceFile, ref, changes, exportName) { const { parent: parent2 } = ref; switch (parent2.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: changes.replaceNode(importingSourceFile, ref, factory.createIdentifier(exportName)); break; - case 275 /* ImportSpecifier */: - case 280 /* ExportSpecifier */: { + case 276 /* ImportSpecifier */: + case 281 /* ExportSpecifier */: { const spec = parent2; changes.replaceNode(importingSourceFile, spec, makeImportSpecifier(exportName, spec.name.text)); break; } - case 272 /* ImportClause */: { + case 273 /* ImportClause */: { const clause = parent2; Debug.assert(clause.name === ref, "Import clause name should match provided ref"); const spec = makeImportSpecifier(exportName, ref.text); const { namedBindings } = clause; if (!namedBindings) { changes.replaceNode(importingSourceFile, ref, factory.createNamedImports([spec])); - } else if (namedBindings.kind === 273 /* NamespaceImport */) { + } else if (namedBindings.kind === 274 /* NamespaceImport */) { changes.deleteRange(importingSourceFile, { pos: ref.getStart(importingSourceFile), end: namedBindings.getStart(importingSourceFile) }); const quotePreference = isStringLiteral(clause.parent.moduleSpecifier) ? quotePreferenceFromString(clause.parent.moduleSpecifier, importingSourceFile) : 1 /* Double */; const newImport = makeImport( @@ -135731,7 +137542,7 @@ function changeDefaultToNamedImport(importingSourceFile, ref, changes, exportNam } break; } - case 204 /* ImportType */: + case 205 /* ImportType */: const importTypeNode = parent2; changes.replaceNode(importingSourceFile, parent2, factory.createImportTypeNode(importTypeNode.argument, importTypeNode.assertions, factory.createIdentifier(exportName), importTypeNode.typeArguments, importTypeNode.isTypeOf)); break; @@ -135742,10 +137553,10 @@ function changeDefaultToNamedImport(importingSourceFile, ref, changes, exportNam function changeNamedToDefaultImport(importingSourceFile, ref, changes) { const parent2 = ref.parent; switch (parent2.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: changes.replaceNode(importingSourceFile, ref, factory.createIdentifier("default")); break; - case 275 /* ImportSpecifier */: { + case 276 /* ImportSpecifier */: { const defaultImport = factory.createIdentifier(parent2.name.text); if (parent2.parent.elements.length === 1) { changes.replaceNode(importingSourceFile, parent2.parent, defaultImport); @@ -135755,7 +137566,7 @@ function changeNamedToDefaultImport(importingSourceFile, ref, changes) { } break; } - case 280 /* ExportSpecifier */: { + case 281 /* ExportSpecifier */: { changes.replaceNode(importingSourceFile, parent2, makeExportSpecifier("default", parent2.name.text)); break; } @@ -135795,17 +137606,17 @@ var refactorName2 = "Convert import"; var actions = { [0 /* Named */]: { name: "Convert namespace import to named imports", - description: Diagnostics.Convert_namespace_import_to_named_imports.message, + description: getLocaleSpecificMessage(Diagnostics.Convert_namespace_import_to_named_imports), kind: "refactor.rewrite.import.named" }, [2 /* Namespace */]: { name: "Convert named imports to namespace import", - description: Diagnostics.Convert_named_imports_to_namespace_import.message, + description: getLocaleSpecificMessage(Diagnostics.Convert_named_imports_to_namespace_import), kind: "refactor.rewrite.import.namespace" }, [1 /* Default */]: { name: "Convert named imports to default import", - description: Diagnostics.Convert_named_imports_to_default_import.message, + description: getLocaleSpecificMessage(Diagnostics.Convert_named_imports_to_default_import), kind: "refactor.rewrite.import.default" } }; @@ -135854,7 +137665,7 @@ function getImportConversionInfo(context, considerPartialSpans = true) { if (!importClause.namedBindings) { return { error: getLocaleSpecificMessage(Diagnostics.Could_not_find_namespace_import_or_named_imports) }; } - if (importClause.namedBindings.kind === 273 /* NamespaceImport */) { + if (importClause.namedBindings.kind === 274 /* NamespaceImport */) { return { convertTo: 0 /* Named */, import: importClause.namedBindings }; } const shouldUseDefault = getShouldUseDefault(context.program, importClause); @@ -136309,24 +138120,168 @@ function refactorKindBeginsWith(known, requested) { return known.substr(0, requested.length) === requested; } +// src/services/refactors/inlineVariable.ts +var refactorName4 = "Inline variable"; +var refactorDescription = getLocaleSpecificMessage(Diagnostics.Inline_variable); +var inlineVariableAction = { + name: refactorName4, + description: refactorDescription, + kind: "refactor.inline.variable" +}; +registerRefactor(refactorName4, { + kinds: [inlineVariableAction.kind], + getAvailableActions(context) { + const { + file, + program, + preferences, + startPosition, + triggerReason + } = context; + const info = getInliningInfo(file, startPosition, triggerReason === "invoked", program); + if (!info) { + return emptyArray; + } + if (!ts_refactor_exports.isRefactorErrorInfo(info)) { + return [{ + name: refactorName4, + description: refactorDescription, + actions: [inlineVariableAction] + }]; + } + if (preferences.provideRefactorNotApplicableReason) { + return [{ + name: refactorName4, + description: refactorDescription, + actions: [{ + ...inlineVariableAction, + notApplicableReason: info.error + }] + }]; + } + return emptyArray; + }, + getEditsForAction(context, actionName2) { + Debug.assert(actionName2 === refactorName4, "Unexpected refactor invoked"); + const { file, program, startPosition } = context; + const info = getInliningInfo( + file, + startPosition, + /*tryWithReferenceToken*/ + true, + program + ); + if (!info || ts_refactor_exports.isRefactorErrorInfo(info)) { + return void 0; + } + const { references, declaration, replacement } = info; + const edits = ts_textChanges_exports.ChangeTracker.with(context, (tracker) => { + for (const node of references) { + tracker.replaceNode(file, node, getReplacementExpression(node, replacement)); + } + tracker.delete(file, declaration); + }); + return { edits }; + } +}); +function getInliningInfo(file, startPosition, tryWithReferenceToken, program) { + var _a, _b; + const checker = program.getTypeChecker(); + const token = getTouchingPropertyName(file, startPosition); + const parent2 = token.parent; + if (!isIdentifier(token)) { + return void 0; + } + if (isInitializedVariable(parent2) && isVariableDeclarationInVariableStatement(parent2) && isIdentifier(parent2.name)) { + if (((_a = checker.getMergedSymbol(parent2.symbol).declarations) == null ? void 0 : _a.length) !== 1) { + return { error: getLocaleSpecificMessage(Diagnostics.Variables_with_multiple_declarations_cannot_be_inlined) }; + } + if (isDeclarationExported(parent2)) { + return void 0; + } + const references = getReferenceNodes(parent2, checker, file); + return references && { references, declaration: parent2, replacement: parent2.initializer }; + } + if (tryWithReferenceToken) { + let definition = checker.resolveName( + token.text, + token, + 111551 /* Value */, + /*excludeGlobals*/ + false + ); + definition = definition && checker.getMergedSymbol(definition); + if (((_b = definition == null ? void 0 : definition.declarations) == null ? void 0 : _b.length) !== 1) { + return { error: getLocaleSpecificMessage(Diagnostics.Variables_with_multiple_declarations_cannot_be_inlined) }; + } + const declaration = definition.declarations[0]; + if (!isInitializedVariable(declaration) || !isVariableDeclarationInVariableStatement(declaration) || !isIdentifier(declaration.name)) { + return void 0; + } + if (isDeclarationExported(declaration)) { + return void 0; + } + const references = getReferenceNodes(declaration, checker, file); + return references && { references, declaration, replacement: declaration.initializer }; + } + return { error: getLocaleSpecificMessage(Diagnostics.Could_not_find_variable_to_inline) }; +} +function isDeclarationExported(declaration) { + const variableStatement = cast(declaration.parent.parent, isVariableStatement); + return some(variableStatement.modifiers, isExportModifier); +} +function getReferenceNodes(declaration, checker, file) { + const references = []; + const cannotInline = ts_FindAllReferences_exports.Core.eachSymbolReferenceInFile(declaration.name, checker, file, (ref) => { + if (ts_FindAllReferences_exports.isWriteAccessForReference(ref)) { + return true; + } + if (isExportSpecifier(ref.parent) || isExportAssignment(ref.parent)) { + return true; + } + if (isTypeQueryNode(ref.parent)) { + return true; + } + if (textRangeContainsPositionInclusive(declaration, ref.pos)) { + return true; + } + references.push(ref); + }); + return references.length === 0 || cannotInline ? void 0 : references; +} +function getReplacementExpression(reference, replacement) { + replacement = getSynthesizedDeepClone(replacement); + const { parent: parent2 } = reference; + if (isExpression(parent2) && (getExpressionPrecedence(replacement) < getExpressionPrecedence(parent2) || needsParentheses(parent2))) { + return factory.createParenthesizedExpression(replacement); + } + if (isFunctionLike(replacement) && (isCallLikeExpression(parent2) || isPropertyAccessExpression(parent2))) { + return factory.createParenthesizedExpression(replacement); + } + if (isPropertyAccessExpression(parent2) && (isNumericLiteral(replacement) || isObjectLiteralExpression(replacement))) { + return factory.createParenthesizedExpression(replacement); + } + return replacement; +} + // src/services/refactors/moveToNewFile.ts -var refactorName4 = "Move to a new file"; +var refactorName5 = "Move to a new file"; var description = getLocaleSpecificMessage(Diagnostics.Move_to_a_new_file); var moveToNewFileAction = { - name: refactorName4, + name: refactorName5, description, kind: "refactor.move.newFile" }; -registerRefactor(refactorName4, { +registerRefactor(refactorName5, { kinds: [moveToNewFileAction.kind], getAvailableActions: function getRefactorActionsToMoveToNewFile(context) { const statements = getStatementsToMove(context); if (context.preferences.allowTextChangesInNewFiles && statements) { - return [{ name: refactorName4, description, actions: [moveToNewFileAction] }]; + return [{ name: refactorName5, description, actions: [moveToNewFileAction] }]; } if (context.preferences.provideRefactorNotApplicableReason) { return [{ - name: refactorName4, + name: refactorName5, description, actions: [{ ...moveToNewFileAction, notApplicableReason: getLocaleSpecificMessage(Diagnostics.Selection_is_not_a_valid_statement_or_statements) }] }]; @@ -136334,7 +138289,7 @@ registerRefactor(refactorName4, { return emptyArray; }, getEditsForAction: function getRefactorEditsToMoveToNewFile(context, actionName2) { - Debug.assert(actionName2 === refactorName4, "Wrong refactor invoked"); + Debug.assert(actionName2 === refactorName5, "Wrong refactor invoked"); const statements = Debug.checkDefined(getStatementsToMove(context)); const edits = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange3(context.file, context.program, statements, t, context.host, context.preferences, context)); return { edits, renameFilename: void 0, renameLocation: void 0 }; @@ -136451,15 +138406,22 @@ registerRefactor(refactorNameForMoveToFile, { getEditsForAction: function getRefactorEditsToMoveToFile(context, actionName2, interactiveRefactorArguments) { Debug.assert(actionName2 === refactorNameForMoveToFile, "Wrong refactor invoked"); const statements = Debug.checkDefined(getStatementsToMove(context)); + const { host, program } = context; Debug.assert(interactiveRefactorArguments, "No interactive refactor arguments available"); const targetFile = interactiveRefactorArguments.targetFile; if (hasJSFileExtension(targetFile) || hasTSFileExtension(targetFile)) { + if (host.fileExists(targetFile) && program.getSourceFile(targetFile) === void 0) { + return error(getLocaleSpecificMessage(Diagnostics.Cannot_move_statements_to_the_selected_file)); + } const edits = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange4(context, context.file, interactiveRefactorArguments.targetFile, context.program, statements, t, context.host, context.preferences)); return { edits, renameFilename: void 0, renameLocation: void 0 }; } - return { edits: [], renameFilename: void 0, renameLocation: void 0, notApplicableReason: getLocaleSpecificMessage(Diagnostics.Cannot_move_to_file_selected_file_is_invalid) }; + return error(getLocaleSpecificMessage(Diagnostics.Cannot_move_to_file_selected_file_is_invalid)); } }); +function error(notApplicableReason) { + return { edits: [], renameFilename: void 0, renameLocation: void 0, notApplicableReason }; +} function doChange4(context, oldFile, targetFile, program, toMove, changes, host, preferences) { const checker = program.getTypeChecker(); const usage = getUsageInfo(oldFile, toMove.all, checker); @@ -136500,7 +138462,7 @@ function getNewStatementsAndRemoveFromOldFile2(oldFile, targetFile, usage, chang const body = addExports(oldFile, toMove.all, usage.oldFileImportsFromTargetFile, useEsModuleSyntax); if (typeof targetFile !== "string") { if (targetFile.statements.length > 0) { - changes.insertNodesAfter(targetFile, targetFile.statements[targetFile.statements.length - 1], body); + moveStatementsToTargetFile(changes, program, body, targetFile, toMove); } else { changes.insertNodesAtEndOfFile( targetFile, @@ -136521,7 +138483,7 @@ function getNewStatementsAndRemoveFromOldFile2(oldFile, targetFile, usage, chang } } if (importAdder) { - importAdder.writeFixes(changes); + importAdder.writeFixes(changes, quotePreference); } if (imports.length && body.length) { return [ @@ -136651,11 +138613,11 @@ function updateImportsInOtherFiles(changes, program, host, oldFile, movedSymbols } function getNamespaceLikeImport(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: - return node.importClause && node.importClause.namedBindings && node.importClause.namedBindings.kind === 273 /* NamespaceImport */ ? node.importClause.namedBindings.name : void 0; - case 270 /* ImportEqualsDeclaration */: + case 272 /* ImportDeclaration */: + return node.importClause && node.importClause.namedBindings && node.importClause.namedBindings.kind === 274 /* NamespaceImport */ ? node.importClause.namedBindings.name : void 0; + case 271 /* ImportEqualsDeclaration */: return node.name; - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return tryCast(node.name, isIdentifier); default: return Debug.assertNever(node, `Unexpected node kind ${node.kind}`); @@ -136691,7 +138653,7 @@ function updateNamespaceLikeImportNode(node, newNamespaceName, newModuleSpecifie const newNamespaceId = factory.createIdentifier(newNamespaceName); const newModuleString = makeStringLiteral(newModuleSpecifier, quotePreference); switch (node.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return factory.createImportDeclaration( /*modifiers*/ void 0, @@ -136706,7 +138668,7 @@ function updateNamespaceLikeImportNode(node, newNamespaceName, newModuleSpecifie /*assertClause*/ void 0 ); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return factory.createImportEqualsDeclaration( /*modifiers*/ void 0, @@ -136715,7 +138677,7 @@ function updateNamespaceLikeImportNode(node, newNamespaceName, newModuleSpecifie newNamespaceId, factory.createExternalModuleReference(newModuleString) ); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return factory.createVariableDeclaration( newNamespaceId, /*exclamationToken*/ @@ -136737,7 +138699,7 @@ function createRequireCall(moduleSpecifier) { ); } function moduleSpecifierFromImport(i) { - return i.kind === 271 /* ImportDeclaration */ ? i.moduleSpecifier : i.kind === 270 /* ImportEqualsDeclaration */ ? i.moduleReference.expression : i.initializer.arguments[0]; + return i.kind === 272 /* ImportDeclaration */ ? i.moduleSpecifier : i.kind === 271 /* ImportEqualsDeclaration */ ? i.moduleReference.expression : i.initializer.arguments[0]; } function forEachImportInStatement(statement, cb) { if (isImportDeclaration(statement)) { @@ -136835,15 +138797,15 @@ function isExported(sourceFile, decl, useEs6Exports, name) { } function deleteUnusedImports(sourceFile, importDecl, changes, isUnused) { switch (importDecl.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: deleteUnusedImportsInDeclaration(sourceFile, importDecl, changes, isUnused); break; - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: if (isUnused(importDecl.name)) { changes.delete(sourceFile, importDecl); } break; - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: deleteUnusedImportsInVariableDeclaration(sourceFile, importDecl, changes, isUnused); break; default: @@ -136855,7 +138817,7 @@ function deleteUnusedImportsInDeclaration(sourceFile, importDecl, changes, isUnu return; const { name, namedBindings } = importDecl.importClause; const defaultUnused = !name || isUnused(name); - const namedBindingsUnused = !namedBindings || (namedBindings.kind === 273 /* NamespaceImport */ ? isUnused(namedBindings.name) : namedBindings.elements.length !== 0 && namedBindings.elements.every((e) => isUnused(e.name))); + const namedBindingsUnused = !namedBindings || (namedBindings.kind === 274 /* NamespaceImport */ ? isUnused(namedBindings.name) : namedBindings.elements.length !== 0 && namedBindings.elements.every((e) => isUnused(e.name))); if (defaultUnused && namedBindingsUnused) { changes.delete(sourceFile, importDecl); } else { @@ -136875,7 +138837,7 @@ function deleteUnusedImportsInDeclaration(sourceFile, importDecl, changes, isUnu void 0 ) ); - } else if (namedBindings.kind === 274 /* NamedImports */) { + } else if (namedBindings.kind === 275 /* NamedImports */) { for (const element of namedBindings.elements) { if (isUnused(element.name)) changes.delete(sourceFile, element); @@ -136903,9 +138865,9 @@ function deleteUnusedImportsInVariableDeclaration(sourceFile, varDecl, changes, } } break; - case 206 /* ArrayBindingPattern */: + case 207 /* ArrayBindingPattern */: break; - case 205 /* ObjectBindingPattern */: + case 206 /* ObjectBindingPattern */: if (name.elements.every((e) => isIdentifier(e.name) && isUnused(e.name))) { changes.delete( sourceFile, @@ -136931,24 +138893,24 @@ function addExport(decl, useEs6Exports) { function addEs6Export(d) { const modifiers = canHaveModifiers(d) ? concatenate([factory.createModifier(95 /* ExportKeyword */)], getModifiers(d)) : void 0; switch (d.kind) { - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return factory.updateFunctionDeclaration(d, modifiers, d.asteriskToken, d.name, d.typeParameters, d.parameters, d.type, d.body); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: const decorators = canHaveDecorators(d) ? getDecorators(d) : void 0; return factory.updateClassDeclaration(d, concatenate(decorators, modifiers), d.name, d.typeParameters, d.heritageClauses, d.members); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return factory.updateVariableStatement(d, modifiers, d.declarationList); - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return factory.updateModuleDeclaration(d, modifiers, d.name, d.body); - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return factory.updateEnumDeclaration(d, modifiers, d.name, d.members); - case 264 /* TypeAliasDeclaration */: + case 265 /* TypeAliasDeclaration */: return factory.updateTypeAliasDeclaration(d, modifiers, d.name, d.typeParameters, d.type); - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: return factory.updateInterfaceDeclaration(d, modifiers, d.name, d.typeParameters, d.heritageClauses, d.members); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return factory.updateImportEqualsDeclaration(d, modifiers, d.isTypeOnly, d.name, d.moduleReference); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return Debug.fail(); default: return Debug.assertNever(d, `Unexpected declaration kind ${d.kind}`); @@ -136968,18 +138930,18 @@ function createExportAssignment(name) { } function getNamesToExportInCommonJS(decl) { switch (decl.kind) { - case 261 /* FunctionDeclaration */: - case 262 /* ClassDeclaration */: + case 262 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: return [decl.name.text]; - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return mapDefined(decl.declarationList.declarations, (d) => isIdentifier(d.name) ? d.name.text : void 0); - case 266 /* ModuleDeclaration */: - case 265 /* EnumDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 263 /* InterfaceDeclaration */: - case 270 /* ImportEqualsDeclaration */: + case 267 /* ModuleDeclaration */: + case 266 /* EnumDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 264 /* InterfaceDeclaration */: + case 271 /* ImportEqualsDeclaration */: return emptyArray; - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return Debug.fail("Can't export an ExpressionStatement"); default: return Debug.assertNever(decl, `Unexpected decl kind ${decl.kind}`); @@ -136987,7 +138949,7 @@ function getNamesToExportInCommonJS(decl) { } function filterImport(i, moduleSpecifier, keep) { switch (i.kind) { - case 271 /* ImportDeclaration */: { + case 272 /* ImportDeclaration */: { const clause = i.importClause; if (!clause) return void 0; @@ -137002,9 +138964,9 @@ function filterImport(i, moduleSpecifier, keep) { void 0 ) : void 0; } - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return keep(i.name) ? i : void 0; - case 259 /* VariableDeclaration */: { + case 260 /* VariableDeclaration */: { const name = filterBindingName(i.name, keep); return name ? makeVariableStatement(name, i.type, createRequireCall(moduleSpecifier), i.parent.flags) : void 0; } @@ -137013,7 +138975,7 @@ function filterImport(i, moduleSpecifier, keep) { } } function filterNamedBindings(namedBindings, keep) { - if (namedBindings.kind === 273 /* NamespaceImport */) { + if (namedBindings.kind === 274 /* NamespaceImport */) { return keep(namedBindings.name) ? namedBindings : void 0; } else { const newElements = namedBindings.elements.filter((e) => keep(e.name)); @@ -137024,9 +138986,9 @@ function filterBindingName(name, keep) { switch (name.kind) { case 80 /* Identifier */: return keep(name) ? name : void 0; - case 206 /* ArrayBindingPattern */: + case 207 /* ArrayBindingPattern */: return name; - case 205 /* ObjectBindingPattern */: { + case 206 /* ObjectBindingPattern */: { const newElements = name.elements.filter((prop) => prop.propertyName || !isIdentifier(prop.name) || keep(prop.name)); return newElements.length ? factory.createObjectBindingPattern(newElements) : void 0; } @@ -137037,9 +138999,9 @@ function nameOfTopLevelDeclaration(d) { } function getTopLevelDeclarationStatement(d) { switch (d.kind) { - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return d.parent.parent; - case 207 /* BindingElement */: + case 208 /* BindingElement */: return getTopLevelDeclarationStatement( cast(d.parent.parent, (p) => isVariableDeclaration(p) || isBindingElement(p)) ); @@ -137087,21 +139049,25 @@ function getRangeToMove(context) { const { file } = context; const range = createTextRangeFromSpan(getRefactorContextSpan(context)); const { statements } = file; - const startNodeIndex = findIndex(statements, (s) => s.end > range.pos); + let startNodeIndex = findIndex(statements, (s) => s.end > range.pos); if (startNodeIndex === -1) return void 0; const startStatement = statements[startNodeIndex]; - if (isNamedDeclaration(startStatement) && startStatement.name && rangeContainsRange(startStatement.name, range)) { - return { toMove: [statements[startNodeIndex]], afterLast: statements[startNodeIndex + 1] }; + const overloadRangeToMove = getOverloadRangeToMove(file, startStatement); + if (overloadRangeToMove) { + startNodeIndex = overloadRangeToMove.start; + } + let endNodeIndex = findIndex(statements, (s) => s.end >= range.end, startNodeIndex); + if (endNodeIndex !== -1 && range.end <= statements[endNodeIndex].getStart()) { + endNodeIndex--; + } + const endingOverloadRangeToMove = getOverloadRangeToMove(file, statements[endNodeIndex]); + if (endingOverloadRangeToMove) { + endNodeIndex = endingOverloadRangeToMove.end; } - if (range.pos > startStatement.getStart(file)) - return void 0; - const afterEndNodeIndex = findIndex(statements, (s) => s.end > range.end, startNodeIndex); - if (afterEndNodeIndex !== -1 && (afterEndNodeIndex === 0 || statements[afterEndNodeIndex].getStart(file) < range.end)) - return void 0; return { - toMove: statements.slice(startNodeIndex, afterEndNodeIndex === -1 ? statements.length : afterEndNodeIndex), - afterLast: afterEndNodeIndex === -1 ? void 0 : statements[afterEndNodeIndex] + toMove: statements.slice(startNodeIndex, endNodeIndex === -1 ? statements.length : endNodeIndex + 1), + afterLast: endNodeIndex === -1 ? void 0 : statements[endNodeIndex + 1] }; } function getStatementsToMove(context) { @@ -137123,11 +139089,11 @@ function isAllowedStatementToMove(statement) { } function isPureImport(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return true; - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return !hasSyntacticModifier(node, 1 /* Export */); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return node.declarationList.declarations.every((d) => !!d.initializer && isRequireCall( d.initializer, /*requireStringLiteralLikeArgument*/ @@ -137220,17 +139186,17 @@ function forEachReference(node, checker, onReference) { } function forEachTopLevelDeclaration(statement, cb) { switch (statement.kind) { - case 261 /* FunctionDeclaration */: - case 262 /* ClassDeclaration */: - case 266 /* ModuleDeclaration */: - case 265 /* EnumDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 263 /* InterfaceDeclaration */: - case 270 /* ImportEqualsDeclaration */: + case 262 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: + case 267 /* ModuleDeclaration */: + case 266 /* EnumDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 264 /* InterfaceDeclaration */: + case 271 /* ImportEqualsDeclaration */: return cb(statement); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return firstDefined(statement.declarationList.declarations, (decl) => forEachTopLevelDeclarationInBindingName(decl.name, cb)); - case 243 /* ExpressionStatement */: { + case 244 /* ExpressionStatement */: { const { expression } = statement; return isBinaryExpression(expression) && getAssignmentDeclarationKind(expression) === 1 /* ExportsProperty */ ? cb(statement) : void 0; } @@ -137238,14 +139204,14 @@ function forEachTopLevelDeclaration(statement, cb) { } function isInImport(decl) { switch (decl.kind) { - case 270 /* ImportEqualsDeclaration */: - case 275 /* ImportSpecifier */: - case 272 /* ImportClause */: - case 273 /* NamespaceImport */: + case 271 /* ImportEqualsDeclaration */: + case 276 /* ImportSpecifier */: + case 273 /* ImportClause */: + case 274 /* NamespaceImport */: return true; - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return isVariableDeclarationInImport(decl); - case 207 /* BindingElement */: + case 208 /* BindingElement */: return isVariableDeclaration(decl.parent.parent) && isVariableDeclarationInImport(decl.parent.parent); default: return false; @@ -137268,8 +139234,8 @@ function forEachTopLevelDeclarationInBindingName(name, cb) { switch (name.kind) { case 80 /* Identifier */: return cb(cast(name.parent, (x) => isVariableDeclaration(x) || isBindingElement(x))); - case 206 /* ArrayBindingPattern */: - case 205 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: + case 206 /* ObjectBindingPattern */: return firstDefined(name.elements, (em) => isOmittedExpression(em) ? void 0 : forEachTopLevelDeclarationInBindingName(em.name, cb)); default: return Debug.assertNever(name, `Unexpected name kind ${name.kind}`); @@ -137277,31 +139243,107 @@ function forEachTopLevelDeclarationInBindingName(name, cb) { } function isNonVariableTopLevelDeclaration(node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 262 /* ClassDeclaration */: - case 266 /* ModuleDeclaration */: - case 265 /* EnumDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 263 /* InterfaceDeclaration */: - case 270 /* ImportEqualsDeclaration */: + case 262 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: + case 267 /* ModuleDeclaration */: + case 266 /* EnumDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 264 /* InterfaceDeclaration */: + case 271 /* ImportEqualsDeclaration */: return true; default: return false; } } +function moveStatementsToTargetFile(changes, program, statements, targetFile, toMove) { + var _a; + const removedExports = /* @__PURE__ */ new Set(); + const targetExports = (_a = targetFile.symbol) == null ? void 0 : _a.exports; + if (targetExports) { + const checker = program.getTypeChecker(); + const targetToSourceExports = /* @__PURE__ */ new Map(); + for (const node of toMove.all) { + if (isTopLevelDeclarationStatement(node) && hasSyntacticModifier(node, 1 /* Export */)) { + forEachTopLevelDeclaration(node, (declaration) => { + var _a2; + const targetDeclarations = canHaveSymbol(declaration) ? (_a2 = targetExports.get(declaration.symbol.escapedName)) == null ? void 0 : _a2.declarations : void 0; + const exportDeclaration = firstDefined(targetDeclarations, (d) => isExportDeclaration(d) ? d : isExportSpecifier(d) ? tryCast(d.parent.parent, isExportDeclaration) : void 0); + if (exportDeclaration && exportDeclaration.moduleSpecifier) { + targetToSourceExports.set( + exportDeclaration, + (targetToSourceExports.get(exportDeclaration) || /* @__PURE__ */ new Set()).add(declaration) + ); + } + }); + } + } + for (const [exportDeclaration, topLevelDeclarations] of arrayFrom(targetToSourceExports)) { + if (exportDeclaration.exportClause && isNamedExports(exportDeclaration.exportClause) && length(exportDeclaration.exportClause.elements)) { + const elements = exportDeclaration.exportClause.elements; + const updatedElements = filter(elements, (elem) => find(skipAlias(elem.symbol, checker).declarations, (d) => isTopLevelDeclaration(d) && topLevelDeclarations.has(d)) === void 0); + if (length(updatedElements) === 0) { + changes.deleteNode(targetFile, exportDeclaration); + removedExports.add(exportDeclaration); + continue; + } + if (length(updatedElements) < length(elements)) { + changes.replaceNode( + targetFile, + exportDeclaration, + factory.updateExportDeclaration( + exportDeclaration, + exportDeclaration.modifiers, + exportDeclaration.isTypeOnly, + factory.updateNamedExports(exportDeclaration.exportClause, factory.createNodeArray(updatedElements, elements.hasTrailingComma)), + exportDeclaration.moduleSpecifier, + exportDeclaration.assertClause + ) + ); + } + } + } + } + const lastReExport = findLast(targetFile.statements, (n) => isExportDeclaration(n) && !!n.moduleSpecifier && !removedExports.has(n)); + if (lastReExport) { + changes.insertNodesBefore( + targetFile, + lastReExport, + statements, + /*blankLineBetween*/ + true + ); + } else { + changes.insertNodesAfter(targetFile, targetFile.statements[targetFile.statements.length - 1], statements); + } +} +function getOverloadRangeToMove(sourceFile, statement) { + if (isFunctionLikeDeclaration(statement)) { + const declarations = statement.symbol.declarations; + if (declarations === void 0 || length(declarations) <= 1 || !contains(declarations, statement)) { + return void 0; + } + const firstDecl = declarations[0]; + const lastDecl = declarations[length(declarations) - 1]; + const statementsToMove = mapDefined(declarations, (d) => getSourceFileOfNode(d) === sourceFile && isStatement(d) ? d : void 0); + const end = findIndex(sourceFile.statements, (s) => s.end >= lastDecl.end); + const start2 = findIndex(sourceFile.statements, (s) => s.end >= firstDecl.end); + return { toMove: statementsToMove, start: start2, end }; + } + return void 0; +} // src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts var ts_refactor_addOrRemoveBracesToArrowFunction_exports = {}; // src/services/refactors/convertOverloadListToSingleSignature.ts -var refactorName5 = "Convert overload list to single signature"; -var refactorDescription = Diagnostics.Convert_overload_list_to_single_signature.message; +var refactorName6 = "Convert overload list to single signature"; +var refactorDescription2 = getLocaleSpecificMessage(Diagnostics.Convert_overload_list_to_single_signature); var functionOverloadAction = { - name: refactorName5, - description: refactorDescription, + name: refactorName6, + description: refactorDescription2, kind: "refactor.rewrite.function.overloadList" }; -registerRefactor(refactorName5, { +registerRefactor(refactorName6, { kinds: [functionOverloadAction.kind], getEditsForAction: getRefactorEditsToConvertOverloadsToOneSignature, getAvailableActions: getRefactorActionsToConvertOverloadsToOneSignature @@ -137312,8 +139354,8 @@ function getRefactorActionsToConvertOverloadsToOneSignature(context) { if (!info) return emptyArray; return [{ - name: refactorName5, - description: refactorDescription, + name: refactorName6, + description: refactorDescription2, actions: [functionOverloadAction] }]; } @@ -137326,7 +139368,7 @@ function getRefactorEditsToConvertOverloadsToOneSignature(context) { const lastDeclaration = signatureDecls[signatureDecls.length - 1]; let updated = lastDeclaration; switch (lastDeclaration.kind) { - case 172 /* MethodSignature */: { + case 173 /* MethodSignature */: { updated = factory.updateMethodSignature( lastDeclaration, lastDeclaration.modifiers, @@ -137338,7 +139380,7 @@ function getRefactorEditsToConvertOverloadsToOneSignature(context) { ); break; } - case 173 /* MethodDeclaration */: { + case 174 /* MethodDeclaration */: { updated = factory.updateMethodDeclaration( lastDeclaration, lastDeclaration.modifiers, @@ -137352,7 +139394,7 @@ function getRefactorEditsToConvertOverloadsToOneSignature(context) { ); break; } - case 178 /* CallSignature */: { + case 179 /* CallSignature */: { updated = factory.updateCallSignature( lastDeclaration, lastDeclaration.typeParameters, @@ -137361,7 +139403,7 @@ function getRefactorEditsToConvertOverloadsToOneSignature(context) { ); break; } - case 175 /* Constructor */: { + case 176 /* Constructor */: { updated = factory.updateConstructorDeclaration( lastDeclaration, lastDeclaration.modifiers, @@ -137370,7 +139412,7 @@ function getRefactorEditsToConvertOverloadsToOneSignature(context) { ); break; } - case 179 /* ConstructSignature */: { + case 180 /* ConstructSignature */: { updated = factory.updateConstructSignature( lastDeclaration, lastDeclaration.typeParameters, @@ -137379,7 +139421,7 @@ function getRefactorEditsToConvertOverloadsToOneSignature(context) { ); break; } - case 261 /* FunctionDeclaration */: { + case 262 /* FunctionDeclaration */: { updated = factory.updateFunctionDeclaration( lastDeclaration, lastDeclaration.modifiers, @@ -137452,12 +139494,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function isConvertableSignatureDeclaration(d) { switch (d.kind) { - case 172 /* MethodSignature */: - case 173 /* MethodDeclaration */: - case 178 /* CallSignature */: - case 175 /* Constructor */: - case 179 /* ConstructSignature */: - case 261 /* FunctionDeclaration */: + case 173 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 179 /* CallSignature */: + case 176 /* Constructor */: + case 180 /* ConstructSignature */: + case 262 /* FunctionDeclaration */: return true; } return false; @@ -137506,19 +139548,19 @@ function getConvertableOverloadListAtPosition(file, startPosition, program) { } // src/services/refactors/addOrRemoveBracesToArrowFunction.ts -var refactorName6 = "Add or remove braces in an arrow function"; -var refactorDescription2 = Diagnostics.Add_or_remove_braces_in_an_arrow_function.message; +var refactorName7 = "Add or remove braces in an arrow function"; +var refactorDescription3 = getLocaleSpecificMessage(Diagnostics.Add_or_remove_braces_in_an_arrow_function); var addBracesAction = { name: "Add braces to arrow function", - description: Diagnostics.Add_braces_to_arrow_function.message, + description: getLocaleSpecificMessage(Diagnostics.Add_braces_to_arrow_function), kind: "refactor.rewrite.arrow.braces.add" }; var removeBracesAction = { name: "Remove braces from arrow function", - description: Diagnostics.Remove_braces_from_arrow_function.message, + description: getLocaleSpecificMessage(Diagnostics.Remove_braces_from_arrow_function), kind: "refactor.rewrite.arrow.braces.remove" }; -registerRefactor(refactorName6, { +registerRefactor(refactorName7, { kinds: [removeBracesAction.kind], getEditsForAction: getRefactorEditsToRemoveFunctionBraces, getAvailableActions: getRefactorActionsToRemoveFunctionBraces @@ -137530,8 +139572,8 @@ function getRefactorActionsToRemoveFunctionBraces(context) { return emptyArray; if (!isRefactorErrorInfo(info)) { return [{ - name: refactorName6, - description: refactorDescription2, + name: refactorName7, + description: refactorDescription3, actions: [ info.addBraces ? addBracesAction : removeBracesAction ] @@ -137539,8 +139581,8 @@ function getRefactorActionsToRemoveFunctionBraces(context) { } if (context.preferences.provideRefactorNotApplicableReason) { return [{ - name: refactorName6, - description: refactorDescription2, + name: refactorName7, + description: refactorDescription3, actions: [ { ...addBracesAction, notApplicableReason: info.error }, { ...removeBracesAction, notApplicableReason: info.error } @@ -137636,8 +139678,8 @@ function getConvertibleArrowFunctionAtPosition(file, startPosition, considerFunc var ts_refactor_convertArrowFunctionOrFunctionExpression_exports = {}; // src/services/refactors/convertArrowFunctionOrFunctionExpression.ts -var refactorName7 = "Convert arrow function or function expression"; -var refactorDescription3 = getLocaleSpecificMessage(Diagnostics.Convert_arrow_function_or_function_expression); +var refactorName8 = "Convert arrow function or function expression"; +var refactorDescription4 = getLocaleSpecificMessage(Diagnostics.Convert_arrow_function_or_function_expression); var toAnonymousFunctionAction = { name: "Convert to anonymous function", description: getLocaleSpecificMessage(Diagnostics.Convert_to_anonymous_function), @@ -137653,7 +139695,7 @@ var toArrowFunctionAction = { description: getLocaleSpecificMessage(Diagnostics.Convert_to_arrow_function), kind: "refactor.rewrite.function.arrow" }; -registerRefactor(refactorName7, { +registerRefactor(refactorName8, { kinds: [ toAnonymousFunctionAction.kind, toNamedFunctionAction.kind, @@ -137671,32 +139713,32 @@ function getRefactorActionsToConvertFunctionExpressions(context) { const possibleActions = []; const errors = []; if (refactorKindBeginsWith(toNamedFunctionAction.kind, kind)) { - const error = selectedVariableDeclaration || isArrowFunction(func) && isVariableDeclaration(func.parent) ? void 0 : getLocaleSpecificMessage(Diagnostics.Could_not_convert_to_named_function); - if (error) { - errors.push({ ...toNamedFunctionAction, notApplicableReason: error }); + const error2 = selectedVariableDeclaration || isArrowFunction(func) && isVariableDeclaration(func.parent) ? void 0 : getLocaleSpecificMessage(Diagnostics.Could_not_convert_to_named_function); + if (error2) { + errors.push({ ...toNamedFunctionAction, notApplicableReason: error2 }); } else { possibleActions.push(toNamedFunctionAction); } } if (refactorKindBeginsWith(toAnonymousFunctionAction.kind, kind)) { - const error = !selectedVariableDeclaration && isArrowFunction(func) ? void 0 : getLocaleSpecificMessage(Diagnostics.Could_not_convert_to_anonymous_function); - if (error) { - errors.push({ ...toAnonymousFunctionAction, notApplicableReason: error }); + const error2 = !selectedVariableDeclaration && isArrowFunction(func) ? void 0 : getLocaleSpecificMessage(Diagnostics.Could_not_convert_to_anonymous_function); + if (error2) { + errors.push({ ...toAnonymousFunctionAction, notApplicableReason: error2 }); } else { possibleActions.push(toAnonymousFunctionAction); } } if (refactorKindBeginsWith(toArrowFunctionAction.kind, kind)) { - const error = isFunctionExpression(func) ? void 0 : getLocaleSpecificMessage(Diagnostics.Could_not_convert_to_arrow_function); - if (error) { - errors.push({ ...toArrowFunctionAction, notApplicableReason: error }); + const error2 = isFunctionExpression(func) ? void 0 : getLocaleSpecificMessage(Diagnostics.Could_not_convert_to_arrow_function); + if (error2) { + errors.push({ ...toArrowFunctionAction, notApplicableReason: error2 }); } else { possibleActions.push(toArrowFunctionAction); } } return [{ - name: refactorName7, - description: refactorDescription3, + name: refactorName8, + description: refactorDescription4, actions: possibleActions.length === 0 && context.preferences.provideRefactorNotApplicableReason ? errors : possibleActions }]; } @@ -137861,15 +139903,15 @@ function isFunctionReferencedInFile(sourceFile, typeChecker, node) { var ts_refactor_convertParamsToDestructuredObject_exports = {}; // src/services/refactors/convertParamsToDestructuredObject.ts -var refactorName8 = "Convert parameters to destructured object"; +var refactorName9 = "Convert parameters to destructured object"; var minimumParameterLength = 1; -var refactorDescription4 = getLocaleSpecificMessage(Diagnostics.Convert_parameters_to_destructured_object); +var refactorDescription5 = getLocaleSpecificMessage(Diagnostics.Convert_parameters_to_destructured_object); var toDestructuredAction = { - name: refactorName8, - description: refactorDescription4, + name: refactorName9, + description: refactorDescription5, kind: "refactor.rewrite.parameters.toDestructured" }; -registerRefactor(refactorName8, { +registerRefactor(refactorName9, { kinds: [toDestructuredAction.kind], getEditsForAction: getRefactorEditsToConvertParametersToDestructuredObject, getAvailableActions: getRefactorActionsToConvertParametersToDestructuredObject @@ -137883,13 +139925,13 @@ function getRefactorActionsToConvertParametersToDestructuredObject(context) { if (!functionDeclaration) return emptyArray; return [{ - name: refactorName8, - description: refactorDescription4, + name: refactorName9, + description: refactorDescription5, actions: [toDestructuredAction] }]; } function getRefactorEditsToConvertParametersToDestructuredObject(context, actionName2) { - Debug.assert(actionName2 === refactorName8, "Unexpected action name"); + Debug.assert(actionName2 === refactorName9, "Unexpected action name"); const { file, startPosition, program, cancellationToken, host } = context; const functionDeclaration = getFunctionDeclarationAtPosition(file, startPosition, program.getTypeChecker()); if (!functionDeclaration || !cancellationToken) @@ -138075,14 +140117,14 @@ function entryToFunctionCall(entry) { const functionReference = entry.node; const parent2 = functionReference.parent; switch (parent2.kind) { - case 212 /* CallExpression */: - case 213 /* NewExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: const callOrNewExpression = tryCast(parent2, isCallOrNewExpression); if (callOrNewExpression && callOrNewExpression.expression === functionReference) { return callOrNewExpression; } break; - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: const propertyAccessExpression = tryCast(parent2, isPropertyAccessExpression); if (propertyAccessExpression && propertyAccessExpression.parent && propertyAccessExpression.name === functionReference) { const callOrNewExpression2 = tryCast(propertyAccessExpression.parent, isCallOrNewExpression); @@ -138091,7 +140133,7 @@ function entryToFunctionCall(entry) { } } break; - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: const elementAccessExpression = tryCast(parent2, isElementAccessExpression); if (elementAccessExpression && elementAccessExpression.parent && elementAccessExpression.argumentExpression === functionReference) { const callOrNewExpression2 = tryCast(elementAccessExpression.parent, isCallOrNewExpression); @@ -138109,13 +140151,13 @@ function entryToAccessExpression(entry) { const reference = entry.node; const parent2 = reference.parent; switch (parent2.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: const propertyAccessExpression = tryCast(parent2, isPropertyAccessExpression); if (propertyAccessExpression && propertyAccessExpression.expression === reference) { return propertyAccessExpression; } break; - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: const elementAccessExpression = tryCast(parent2, isElementAccessExpression); if (elementAccessExpression && elementAccessExpression.expression === reference) { return elementAccessExpression; @@ -138157,22 +140199,22 @@ function isValidFunctionDeclaration(functionDeclaration, checker) { if (!isValidParameterNodeArray(functionDeclaration.parameters, checker)) return false; switch (functionDeclaration.kind) { - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return hasNameOrDefault(functionDeclaration) && isSingleImplementation(functionDeclaration, checker); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: if (isObjectLiteralExpression(functionDeclaration.parent)) { const contextualSymbol = getSymbolForContextualType(functionDeclaration.name, checker); return ((_a = contextualSymbol == null ? void 0 : contextualSymbol.declarations) == null ? void 0 : _a.length) === 1 && isSingleImplementation(functionDeclaration, checker); } return isSingleImplementation(functionDeclaration, checker); - case 175 /* Constructor */: + case 176 /* Constructor */: if (isClassDeclaration(functionDeclaration.parent)) { return hasNameOrDefault(functionDeclaration.parent) && isSingleImplementation(functionDeclaration, checker); } else { return isValidVariableDeclaration(functionDeclaration.parent.parent) && isSingleImplementation(functionDeclaration, checker); } - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return isValidVariableDeclaration(functionDeclaration.parent); } return false; @@ -138349,7 +140391,7 @@ function getParameterName(paramDeclaration) { } function getClassNames(constructorDeclaration) { switch (constructorDeclaration.parent.kind) { - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: const classDeclaration = constructorDeclaration.parent; if (classDeclaration.name) return [classDeclaration.name]; @@ -138358,7 +140400,7 @@ function getClassNames(constructorDeclaration) { "Nameless class declaration should be a default export" ); return [defaultModifier]; - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: const classExpression = constructorDeclaration.parent; const variableDeclaration = constructorDeclaration.parent.parent; const className = classExpression.name; @@ -138369,7 +140411,7 @@ function getClassNames(constructorDeclaration) { } function getFunctionNames(functionDeclaration) { switch (functionDeclaration.kind) { - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: if (functionDeclaration.name) return [functionDeclaration.name]; const defaultModifier = Debug.checkDefined( @@ -138377,21 +140419,21 @@ function getFunctionNames(functionDeclaration) { "Nameless function declaration should be a default export" ); return [defaultModifier]; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return [functionDeclaration.name]; - case 175 /* Constructor */: + case 176 /* Constructor */: const ctrKeyword = Debug.checkDefined( findChildOfKind(functionDeclaration, 137 /* ConstructorKeyword */, functionDeclaration.getSourceFile()), "Constructor declaration should have constructor keyword" ); - if (functionDeclaration.parent.kind === 230 /* ClassExpression */) { + if (functionDeclaration.parent.kind === 231 /* ClassExpression */) { const variableDeclaration = functionDeclaration.parent.parent; return [variableDeclaration.name, ctrKeyword]; } return [ctrKeyword]; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return [functionDeclaration.parent.name]; - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: if (functionDeclaration.name) return [functionDeclaration.name, functionDeclaration.parent.name]; return [functionDeclaration.parent.name]; @@ -138404,14 +140446,14 @@ function getFunctionNames(functionDeclaration) { var ts_refactor_convertStringOrTemplateLiteral_exports = {}; // src/services/refactors/convertStringOrTemplateLiteral.ts -var refactorName9 = "Convert to template string"; -var refactorDescription5 = getLocaleSpecificMessage(Diagnostics.Convert_to_template_string); +var refactorName10 = "Convert to template string"; +var refactorDescription6 = getLocaleSpecificMessage(Diagnostics.Convert_to_template_string); var convertStringAction = { - name: refactorName9, - description: refactorDescription5, + name: refactorName10, + description: refactorDescription6, kind: "refactor.rewrite.string" }; -registerRefactor(refactorName9, { +registerRefactor(refactorName10, { kinds: [convertStringAction.kind], getEditsForAction: getRefactorEditsToConvertToTemplateString, getAvailableActions: getRefactorActionsToConvertToTemplateString @@ -138420,7 +140462,7 @@ function getRefactorActionsToConvertToTemplateString(context) { const { file, startPosition } = context; const node = getNodeOrParentOfParentheses(file, startPosition); const maybeBinary = getParentBinaryExpression(node); - const refactorInfo = { name: refactorName9, description: refactorDescription5, actions: [] }; + const refactorInfo = { name: refactorName10, description: refactorDescription6, actions: [] }; if (isBinaryExpression(maybeBinary) && treeToArray(maybeBinary).isValidConcatenation) { refactorInfo.actions.push(convertStringAction); return [refactorInfo]; @@ -138446,7 +140488,7 @@ function getRefactorEditsToConvertToTemplateString(context, actionName2) { const { file, startPosition } = context; const node = getNodeOrParentOfParentheses(file, startPosition); switch (actionName2) { - case refactorDescription5: + case refactorDescription6: return { edits: getEditsForToTemplateLiteral(context, node) }; default: return Debug.fail("invalid action"); @@ -138469,16 +140511,16 @@ function getEditsForToTemplateLiteral(context, node) { } } function isNotEqualsOperator(node) { - return node.operatorToken.kind !== 64 /* EqualsToken */; + return !(node.operatorToken.kind === 64 /* EqualsToken */ || node.operatorToken.kind === 65 /* PlusEqualsToken */); } function getParentBinaryExpression(expr) { const container = findAncestor(expr.parent, (n) => { switch (n.kind) { - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return false; - case 227 /* TemplateExpression */: - case 225 /* BinaryExpression */: + case 228 /* TemplateExpression */: + case 226 /* BinaryExpression */: return !(isBinaryExpression(n.parent) && isNotEqualsOperator(n.parent)); default: return "quit"; @@ -138628,14 +140670,14 @@ function getExpressionFromParenthesesOrExpression(node) { var ts_refactor_convertToOptionalChainExpression_exports = {}; // src/services/refactors/convertToOptionalChainExpression.ts -var refactorName10 = "Convert to optional chain expression"; +var refactorName11 = "Convert to optional chain expression"; var convertToOptionalChainExpressionMessage = getLocaleSpecificMessage(Diagnostics.Convert_to_optional_chain_expression); var toOptionalChainAction = { - name: refactorName10, + name: refactorName11, description: convertToOptionalChainExpressionMessage, kind: "refactor.rewrite.expression.optionalChain" }; -registerRefactor(refactorName10, { +registerRefactor(refactorName11, { kinds: [toOptionalChainAction.kind], getEditsForAction: getRefactorEditsToConvertToOptionalChain, getAvailableActions: getRefactorActionsToConvertToOptionalChain @@ -138646,14 +140688,14 @@ function getRefactorActionsToConvertToOptionalChain(context) { return emptyArray; if (!isRefactorErrorInfo(info)) { return [{ - name: refactorName10, + name: refactorName11, description: convertToOptionalChainExpressionMessage, actions: [toOptionalChainAction] }]; } if (context.preferences.provideRefactorNotApplicableReason) { return [{ - name: refactorName10, + name: refactorName11, description: convertToOptionalChainExpressionMessage, actions: [{ ...toOptionalChainAction, notApplicableReason: info.error }] }]; @@ -138849,7 +140891,7 @@ __export(ts_refactor_extractSymbol_exports, { }); // src/services/refactors/extractSymbol.ts -var refactorName11 = "Extract Symbol"; +var refactorName12 = "Extract Symbol"; var extractConstantAction = { name: "Extract Constant", description: getLocaleSpecificMessage(Diagnostics.Extract_constant), @@ -138860,7 +140902,7 @@ var extractFunctionAction = { description: getLocaleSpecificMessage(Diagnostics.Extract_function), kind: "refactor.extract.function" }; -registerRefactor(refactorName11, { +registerRefactor(refactorName12, { kinds: [ extractConstantAction.kind, extractFunctionAction.kind @@ -138879,14 +140921,14 @@ function getRefactorActionsToExtractSymbol(context) { const errors = []; if (refactorKindBeginsWith(extractFunctionAction.kind, requestedRefactor)) { errors.push({ - name: refactorName11, + name: refactorName12, description: extractFunctionAction.description, actions: [{ ...extractFunctionAction, notApplicableReason: getStringError(rangeToExtract.errors) }] }); } if (refactorKindBeginsWith(extractConstantAction.kind, requestedRefactor)) { errors.push({ - name: refactorName11, + name: refactorName12, description: extractConstantAction.description, actions: [{ ...extractConstantAction, notApplicableReason: getStringError(rangeToExtract.errors) }] }); @@ -138950,37 +140992,37 @@ function getRefactorActionsToExtractSymbol(context) { const infos = []; if (functionActions.length) { infos.push({ - name: refactorName11, + name: refactorName12, description: getLocaleSpecificMessage(Diagnostics.Extract_function), actions: functionActions }); } else if (context.preferences.provideRefactorNotApplicableReason && innermostErrorFunctionAction) { infos.push({ - name: refactorName11, + name: refactorName12, description: getLocaleSpecificMessage(Diagnostics.Extract_function), actions: [innermostErrorFunctionAction] }); } if (constantActions.length) { infos.push({ - name: refactorName11, + name: refactorName12, description: getLocaleSpecificMessage(Diagnostics.Extract_constant), actions: constantActions }); } else if (context.preferences.provideRefactorNotApplicableReason && innermostErrorConstantAction) { infos.push({ - name: refactorName11, + name: refactorName12, description: getLocaleSpecificMessage(Diagnostics.Extract_constant), actions: [innermostErrorConstantAction] }); } return infos.length ? infos : emptyArray; function getStringError(errors) { - let error = errors[0].messageText; - if (typeof error !== "string") { - error = error.messageText; + let error2 = errors[0].messageText; + if (typeof error2 !== "string") { + error2 = error2.messageText; } - return error; + return error2; } } function getRefactorEditsToExtractSymbol(context, actionName2) { @@ -139055,7 +141097,7 @@ function getRangeToExtract2(sourceFile, span, invoked = true) { if (!start2 || !end) { return { errors: [createFileDiagnostic(sourceFile, span.start, length2, Messages.cannotExtractRange)] }; } - if (start2.flags & 8388608 /* JSDoc */) { + if (start2.flags & 16777216 /* JSDoc */) { return { errors: [createFileDiagnostic(sourceFile, span.start, length2, Messages.cannotExtractJSDoc)] }; } if (start2.parent !== end.parent) { @@ -139126,18 +141168,18 @@ function getRangeToExtract2(sourceFile, span, invoked = true) { function checkForStaticContext(nodeToCheck, containingClass) { let current = nodeToCheck; while (current !== containingClass) { - if (current.kind === 171 /* PropertyDeclaration */) { + if (current.kind === 172 /* PropertyDeclaration */) { if (isStatic(current)) { rangeFacts |= 32 /* InStaticRegion */; } break; - } else if (current.kind === 168 /* Parameter */) { + } else if (current.kind === 169 /* Parameter */) { const ctorOrMethod = getContainingFunction(current); - if (ctorOrMethod.kind === 175 /* Constructor */) { + if (ctorOrMethod.kind === 176 /* Constructor */) { rangeFacts |= 32 /* InStaticRegion */; } break; - } else if (current.kind === 173 /* MethodDeclaration */) { + } else if (current.kind === 174 /* MethodDeclaration */) { if (isStatic(current)) { rangeFacts |= 32 /* InStaticRegion */; } @@ -139158,7 +141200,7 @@ function getRangeToExtract2(sourceFile, span, invoked = true) { if (!isStatement(nodeToCheck) && !(isExpressionNode(nodeToCheck) && isExtractableExpression(nodeToCheck)) && !isStringLiteralJsxAttribute(nodeToCheck)) { return [createDiagnosticForNode(nodeToCheck, Messages.statementOrExpressionExpected)]; } - if (nodeToCheck.flags & 16777216 /* Ambient */) { + if (nodeToCheck.flags & 33554432 /* Ambient */) { return [createDiagnosticForNode(nodeToCheck, Messages.cannotExtractAmbientBlock)]; } const containingClass = getContainingClass(nodeToCheck); @@ -139177,7 +141219,7 @@ function getRangeToExtract2(sourceFile, span, invoked = true) { /*includeClassComputedPropertyName*/ false ); - if (container.kind === 261 /* FunctionDeclaration */ || container.kind === 173 /* MethodDeclaration */ && container.parent.kind === 209 /* ObjectLiteralExpression */ || container.kind === 217 /* FunctionExpression */) { + if (container.kind === 262 /* FunctionDeclaration */ || container.kind === 174 /* MethodDeclaration */ && container.parent.kind === 210 /* ObjectLiteralExpression */ || container.kind === 218 /* FunctionExpression */) { rangeFacts |= 16 /* UsesThisInFunction */; } } @@ -139187,21 +141229,21 @@ function getRangeToExtract2(sourceFile, span, invoked = true) { return true; } if (isDeclaration(node2)) { - const declaringNode = node2.kind === 259 /* VariableDeclaration */ ? node2.parent.parent : node2; + const declaringNode = node2.kind === 260 /* VariableDeclaration */ ? node2.parent.parent : node2; if (hasSyntacticModifier(declaringNode, 1 /* Export */)) { (errors2 || (errors2 = [])).push(createDiagnosticForNode(node2, Messages.cannotExtractExportedEntity)); return true; } } switch (node2.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: (errors2 || (errors2 = [])).push(createDiagnosticForNode(node2, Messages.cannotExtractImport)); return true; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: (errors2 || (errors2 = [])).push(createDiagnosticForNode(node2, Messages.cannotExtractExportedEntity)); return true; case 108 /* SuperKeyword */: - if (node2.parent.kind === 212 /* CallExpression */) { + if (node2.parent.kind === 213 /* CallExpression */) { const containingClass2 = getContainingClass(node2); if (containingClass2 === void 0 || containingClass2.pos < span.start || containingClass2.end >= span.start + span.length) { (errors2 || (errors2 = [])).push(createDiagnosticForNode(node2, Messages.cannotExtractSuper)); @@ -139212,7 +141254,7 @@ function getRangeToExtract2(sourceFile, span, invoked = true) { thisNode = node2; } break; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: forEachChild(node2, function check(n) { if (isThis(n)) { rangeFacts |= 8 /* UsesThis */; @@ -139223,34 +141265,34 @@ function getRangeToExtract2(sourceFile, span, invoked = true) { forEachChild(n, check); } }); - case 262 /* ClassDeclaration */: - case 261 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: + case 262 /* FunctionDeclaration */: if (isSourceFile(node2.parent) && node2.parent.externalModuleIndicator === void 0) { (errors2 || (errors2 = [])).push(createDiagnosticForNode(node2, Messages.functionWillNotBeVisibleInTheNewScope)); } - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: - case 173 /* MethodDeclaration */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return false; } const savedPermittedJumps = permittedJumps; switch (node2.kind) { - case 244 /* IfStatement */: + case 245 /* IfStatement */: permittedJumps &= ~4 /* Return */; break; - case 257 /* TryStatement */: + case 258 /* TryStatement */: permittedJumps = 0 /* None */; break; - case 240 /* Block */: - if (node2.parent && node2.parent.kind === 257 /* TryStatement */ && node2.parent.finallyBlock === node2) { + case 241 /* Block */: + if (node2.parent && node2.parent.kind === 258 /* TryStatement */ && node2.parent.finallyBlock === node2) { permittedJumps = 4 /* Return */; } break; - case 296 /* DefaultClause */: - case 295 /* CaseClause */: + case 297 /* DefaultClause */: + case 296 /* CaseClause */: permittedJumps |= 1 /* Break */; break; default: @@ -139264,39 +141306,39 @@ function getRangeToExtract2(sourceFile, span, invoked = true) { break; } switch (node2.kind) { - case 196 /* ThisType */: + case 197 /* ThisType */: case 110 /* ThisKeyword */: rangeFacts |= 8 /* UsesThis */; thisNode = node2; break; - case 255 /* LabeledStatement */: { + case 256 /* LabeledStatement */: { const label = node2.label; (seenLabels || (seenLabels = [])).push(label.escapedText); forEachChild(node2, visit); seenLabels.pop(); break; } - case 251 /* BreakStatement */: - case 250 /* ContinueStatement */: { + case 252 /* BreakStatement */: + case 251 /* ContinueStatement */: { const label = node2.label; if (label) { if (!contains(seenLabels, label.escapedText)) { (errors2 || (errors2 = [])).push(createDiagnosticForNode(node2, Messages.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)); } } else { - if (!(permittedJumps & (node2.kind === 251 /* BreakStatement */ ? 1 /* Break */ : 2 /* Continue */))) { + if (!(permittedJumps & (node2.kind === 252 /* BreakStatement */ ? 1 /* Break */ : 2 /* Continue */))) { (errors2 || (errors2 = [])).push(createDiagnosticForNode(node2, Messages.cannotExtractRangeContainingConditionalBreakOrContinueStatements)); } } break; } - case 222 /* AwaitExpression */: + case 223 /* AwaitExpression */: rangeFacts |= 4 /* IsAsyncFunction */; break; - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: rangeFacts |= 2 /* IsGenerator */; break; - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: if (permittedJumps & 4 /* Return */) { rangeFacts |= 1 /* HasReturn */; } else { @@ -139346,12 +141388,12 @@ function collectEnclosingScopes(range) { const scopes = []; while (true) { current = current.parent; - if (current.kind === 168 /* Parameter */) { + if (current.kind === 169 /* Parameter */) { current = findAncestor(current, (parent2) => isFunctionLikeDeclaration(parent2)).parent; } if (isScope(current)) { scopes.push(current); - if (current.kind === 311 /* SourceFile */) { + if (current.kind === 312 /* SourceFile */) { return scopes; } } @@ -139427,28 +141469,28 @@ function getDescriptionForConstantInScope(scope) { } function getDescriptionForFunctionLikeDeclaration(scope) { switch (scope.kind) { - case 175 /* Constructor */: + case 176 /* Constructor */: return "constructor"; - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: return scope.name ? `function '${scope.name.text}'` : ANONYMOUS; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return "arrow function"; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return `method '${scope.name.getText()}'`; - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return `'get ${scope.name.getText()}'`; - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return `'set ${scope.name.getText()}'`; default: Debug.assertNever(scope, `Unexpected scope kind ${scope.kind}`); } } function getDescriptionForClassLikeDeclaration(scope) { - return scope.kind === 262 /* ClassDeclaration */ ? scope.name ? `class '${scope.name.text}'` : "anonymous class declaration" : scope.name ? `class expression '${scope.name.text}'` : "anonymous class expression"; + return scope.kind === 263 /* ClassDeclaration */ ? scope.name ? `class '${scope.name.text}'` : "anonymous class declaration" : scope.name ? `class expression '${scope.name.text}'` : "anonymous class expression"; } function getDescriptionForModuleLikeDeclaration(scope) { - return scope.kind === 267 /* ModuleBlock */ ? `namespace '${scope.parent.name.getText()}'` : scope.externalModuleIndicator ? 0 /* Module */ : 1 /* Global */; + return scope.kind === 268 /* ModuleBlock */ ? `namespace '${scope.parent.name.getText()}'` : scope.externalModuleIndicator ? 0 /* Module */ : 1 /* Global */; } function extractFunctionInScope(node, scope, { usages: usagesInScope, typeParameterUsages, substitutions }, exposedVariableDeclarations, range, context) { const checker = context.program.getTypeChecker(); @@ -139825,7 +141867,7 @@ function extractConstantInScope(node, scope, { substitutions }, rangeFacts, cont changeTracker.insertNodeBefore(context.file, oldVariableDeclaration, newVariableDeclaration); const localReference = factory.createIdentifier(localNameText); changeTracker.replaceNode(context.file, node, localReference); - } else if (node.parent.kind === 243 /* ExpressionStatement */ && scope === findAncestor(node, isScope)) { + } else if (node.parent.kind === 244 /* ExpressionStatement */ && scope === findAncestor(node, isScope)) { const newVariableStatement = factory.createVariableStatement( /*modifiers*/ void 0, @@ -139855,7 +141897,7 @@ function extractConstantInScope(node, scope, { substitutions }, rangeFacts, cont false ); } - if (node.parent.kind === 243 /* ExpressionStatement */) { + if (node.parent.kind === 244 /* ExpressionStatement */) { changeTracker.delete(context.file, node.parent); } else { let localReference = factory.createIdentifier(localNameText); @@ -140407,27 +142449,27 @@ function getExtractableParent(node) { function isExtractableExpression(node) { const { parent: parent2 } = node; switch (parent2.kind) { - case 305 /* EnumMember */: + case 306 /* EnumMember */: return false; } switch (node.kind) { case 11 /* StringLiteral */: - return parent2.kind !== 271 /* ImportDeclaration */ && parent2.kind !== 275 /* ImportSpecifier */; - case 229 /* SpreadElement */: - case 205 /* ObjectBindingPattern */: - case 207 /* BindingElement */: + return parent2.kind !== 272 /* ImportDeclaration */ && parent2.kind !== 276 /* ImportSpecifier */; + case 230 /* SpreadElement */: + case 206 /* ObjectBindingPattern */: + case 208 /* BindingElement */: return false; case 80 /* Identifier */: - return parent2.kind !== 207 /* BindingElement */ && parent2.kind !== 275 /* ImportSpecifier */ && parent2.kind !== 280 /* ExportSpecifier */; + return parent2.kind !== 208 /* BindingElement */ && parent2.kind !== 276 /* ImportSpecifier */ && parent2.kind !== 281 /* ExportSpecifier */; } return true; } function isBlockLike(node) { switch (node.kind) { - case 240 /* Block */: - case 311 /* SourceFile */: - case 267 /* ModuleBlock */: - case 295 /* CaseClause */: + case 241 /* Block */: + case 312 /* SourceFile */: + case 268 /* ModuleBlock */: + case 296 /* CaseClause */: return true; default: return false; @@ -140445,7 +142487,7 @@ var ts_refactor_generateGetAccessorAndSetAccessor_exports = {}; // src/services/refactors/generateGetAccessorAndSetAccessor.ts var actionName = "Generate 'get' and 'set' accessors"; -var actionDescription = Diagnostics.Generate_get_and_set_accessors.message; +var actionDescription = getLocaleSpecificMessage(Diagnostics.Generate_get_and_set_accessors); var generateGetSetAction = { name: actionName, description: actionDescription, @@ -140501,14 +142543,14 @@ registerRefactor(actionName, { var ts_refactor_inferFunctionReturnType_exports = {}; // src/services/refactors/inferFunctionReturnType.ts -var refactorName12 = "Infer function return type"; -var refactorDescription6 = Diagnostics.Infer_function_return_type.message; +var refactorName13 = "Infer function return type"; +var refactorDescription7 = getLocaleSpecificMessage(Diagnostics.Infer_function_return_type); var inferReturnTypeAction = { - name: refactorName12, - description: refactorDescription6, + name: refactorName13, + description: refactorDescription7, kind: "refactor.rewrite.function.returnType" }; -registerRefactor(refactorName12, { +registerRefactor(refactorName13, { kinds: [inferReturnTypeAction.kind], getEditsForAction: getRefactorEditsToInferReturnType, getAvailableActions: getRefactorActionsToInferReturnType @@ -140527,15 +142569,15 @@ function getRefactorActionsToInferReturnType(context) { return emptyArray; if (!isRefactorErrorInfo(info)) { return [{ - name: refactorName12, - description: refactorDescription6, + name: refactorName13, + description: refactorDescription7, actions: [inferReturnTypeAction] }]; } if (context.preferences.provideRefactorNotApplicableReason) { return [{ - name: refactorName12, - description: refactorDescription6, + name: refactorName13, + description: refactorDescription7, actions: [{ ...inferReturnTypeAction, notApplicableReason: info.error }] }]; } @@ -140573,10 +142615,10 @@ function getInfo4(context) { } function isConvertibleDeclaration(node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: return true; default: return false; @@ -140659,13 +142701,13 @@ function collectTokens(program, sourceFile, span, collector, cancellationToken) let inJSXElement = false; function visit(node) { switch (node.kind) { - case 266 /* ModuleDeclaration */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 261 /* FunctionDeclaration */: - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 267 /* ModuleDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 262 /* FunctionDeclaration */: + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: cancellationToken.throwIfCancellationRequested(); } if (!node || !textSpanIntersectsWith(span, node.pos, node.getFullWidth()) || node.getFullWidth() === 0) { @@ -140802,25 +142844,25 @@ function isRightSideOfQualifiedNameOrPropertyAccess2(node) { return isQualifiedName(node.parent) && node.parent.right === node || isPropertyAccessExpression(node.parent) && node.parent.name === node; } var tokenFromDeclarationMapping = /* @__PURE__ */ new Map([ - [259 /* VariableDeclaration */, 7 /* variable */], - [168 /* Parameter */, 6 /* parameter */], - [171 /* PropertyDeclaration */, 9 /* property */], - [266 /* ModuleDeclaration */, 3 /* namespace */], - [265 /* EnumDeclaration */, 1 /* enum */], - [305 /* EnumMember */, 8 /* enumMember */], - [262 /* ClassDeclaration */, 0 /* class */], - [173 /* MethodDeclaration */, 11 /* member */], - [261 /* FunctionDeclaration */, 10 /* function */], - [217 /* FunctionExpression */, 10 /* function */], - [172 /* MethodSignature */, 11 /* member */], - [176 /* GetAccessor */, 9 /* property */], - [177 /* SetAccessor */, 9 /* property */], - [170 /* PropertySignature */, 9 /* property */], - [263 /* InterfaceDeclaration */, 2 /* interface */], - [264 /* TypeAliasDeclaration */, 5 /* type */], - [167 /* TypeParameter */, 4 /* typeParameter */], - [302 /* PropertyAssignment */, 9 /* property */], - [303 /* ShorthandPropertyAssignment */, 9 /* property */] + [260 /* VariableDeclaration */, 7 /* variable */], + [169 /* Parameter */, 6 /* parameter */], + [172 /* PropertyDeclaration */, 9 /* property */], + [267 /* ModuleDeclaration */, 3 /* namespace */], + [266 /* EnumDeclaration */, 1 /* enum */], + [306 /* EnumMember */, 8 /* enumMember */], + [263 /* ClassDeclaration */, 0 /* class */], + [174 /* MethodDeclaration */, 11 /* member */], + [262 /* FunctionDeclaration */, 10 /* function */], + [218 /* FunctionExpression */, 10 /* function */], + [173 /* MethodSignature */, 11 /* member */], + [177 /* GetAccessor */, 9 /* property */], + [178 /* SetAccessor */, 9 /* property */], + [171 /* PropertySignature */, 9 /* property */], + [264 /* InterfaceDeclaration */, 2 /* interface */], + [265 /* TypeAliasDeclaration */, 5 /* type */], + [168 /* TypeParameter */, 4 /* typeParameter */], + [303 /* PropertyAssignment */, 9 /* property */], + [304 /* ShorthandPropertyAssignment */, 9 /* property */] ]); // src/services/services.ts @@ -140828,7 +142870,7 @@ var servicesVersion = "0.8"; function createNode(kind, pos, end, parent2) { const node = isNodeKind(kind) ? new NodeObject(kind, pos, end) : kind === 80 /* Identifier */ ? new IdentifierObject(80 /* Identifier */, pos, end) : kind === 81 /* PrivateIdentifier */ ? new PrivateIdentifierObject(81 /* PrivateIdentifier */, pos, end) : new TokenObject(kind, pos, end); node.parent = parent2; - node.flags = parent2.flags & 50720768 /* ContextFlags */; + node.flags = parent2.flags & 101441536 /* ContextFlags */; return node; } var NodeObject = class { @@ -140898,8 +142940,8 @@ var NodeObject = class { if (!children.length) { return void 0; } - const child = find(children, (kid) => kid.kind < 315 /* FirstJSDocNode */ || kid.kind > 356 /* LastJSDocNode */); - return child.kind < 165 /* FirstNode */ ? child : child.getFirstToken(sourceFile); + const child = find(children, (kid) => kid.kind < 316 /* FirstJSDocNode */ || kid.kind > 357 /* LastJSDocNode */); + return child.kind < 166 /* FirstNode */ ? child : child.getFirstToken(sourceFile); } getLastToken(sourceFile) { this.assertHasRealPosition(); @@ -140908,7 +142950,7 @@ var NodeObject = class { if (!child) { return void 0; } - return child.kind < 165 /* FirstNode */ ? child : child.getLastToken(sourceFile); + return child.kind < 166 /* FirstNode */ ? child : child.getLastToken(sourceFile); } forEachChild(cbNode, cbNodeArray) { return forEachChild(this, cbNode, cbNodeArray); @@ -140965,7 +143007,7 @@ function addSyntheticNodes(nodes, pos, end, parent2) { } } function createSyntaxList(nodes, parent2) { - const list = createNode(357 /* SyntaxList */, nodes.pos, nodes.end, parent2); + const list = createNode(358 /* SyntaxList */, nodes.pos, nodes.end, parent2); list._children = []; let pos = nodes.pos; for (const node of nodes) { @@ -141282,7 +143324,7 @@ function getJsDocTagsOfDeclarations(declarations, checker) { var _a; if (!seenSymbols.has(symbol)) { seenSymbols.add(symbol); - if (declaration.kind === 176 /* GetAccessor */ || declaration.kind === 177 /* SetAccessor */) { + if (declaration.kind === 177 /* GetAccessor */ || declaration.kind === 178 /* SetAccessor */) { return symbol.getContextualJsDocTags(declaration, checker); } return ((_a = symbol.declarations) == null ? void 0 : _a.length) === 1 ? symbol.getJsDocTags() : void 0; @@ -141305,7 +143347,7 @@ function getDocumentationComment(declarations, checker) { const inheritedDocs = findBaseOfDeclaration(checker, declaration, (symbol) => { if (!seenSymbols.has(symbol)) { seenSymbols.add(symbol); - if (declaration.kind === 176 /* GetAccessor */ || declaration.kind === 177 /* SetAccessor */) { + if (declaration.kind === 177 /* GetAccessor */ || declaration.kind === 178 /* SetAccessor */) { return symbol.getContextualDocumentationComment(declaration, checker); } return symbol.getDocumentationComment(checker); @@ -141319,7 +143361,7 @@ function getDocumentationComment(declarations, checker) { } function findBaseOfDeclaration(checker, declaration, cb) { var _a; - const classOrInterfaceDeclaration = ((_a = declaration.parent) == null ? void 0 : _a.kind) === 175 /* Constructor */ ? declaration.parent.parent : declaration.parent; + const classOrInterfaceDeclaration = ((_a = declaration.parent) == null ? void 0 : _a.kind) === 176 /* Constructor */ ? declaration.parent.parent : declaration.parent; if (!classOrInterfaceDeclaration) return; const isStaticMember = hasStaticModifier(declaration); @@ -141333,7 +143375,7 @@ function findBaseOfDeclaration(checker, declaration, cb) { var SourceFileObject = class extends NodeObject { constructor(kind, pos, end) { super(kind, pos, end); - this.kind = 311 /* SourceFile */; + this.kind = 312 /* SourceFile */; } update(newText, textChangeRange) { return updateSourceFile(this, newText, textChangeRange); @@ -141389,10 +143431,10 @@ var SourceFileObject = class extends NodeObject { } function visit(node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: const functionDeclaration = node; const declarationName = getDeclarationName(functionDeclaration); if (declarationName) { @@ -141408,29 +143450,29 @@ var SourceFileObject = class extends NodeObject { } forEachChild(node, visit); break; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 265 /* EnumDeclaration */: - case 266 /* ModuleDeclaration */: - case 270 /* ImportEqualsDeclaration */: - case 280 /* ExportSpecifier */: - case 275 /* ImportSpecifier */: - case 272 /* ImportClause */: - case 273 /* NamespaceImport */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 186 /* TypeLiteral */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 266 /* EnumDeclaration */: + case 267 /* ModuleDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 281 /* ExportSpecifier */: + case 276 /* ImportSpecifier */: + case 273 /* ImportClause */: + case 274 /* NamespaceImport */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 187 /* TypeLiteral */: addDeclaration(node); forEachChild(node, visit); break; - case 168 /* Parameter */: + case 169 /* Parameter */: if (!hasSyntacticModifier(node, 16476 /* ParameterPropertyModifier */)) { break; } - case 259 /* VariableDeclaration */: - case 207 /* BindingElement */: { + case 260 /* VariableDeclaration */: + case 208 /* BindingElement */: { const decl = node; if (isBindingPattern(decl.name)) { forEachChild(decl.name, visit); @@ -141440,12 +143482,12 @@ var SourceFileObject = class extends NodeObject { visit(decl.initializer); } } - case 305 /* EnumMember */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: + case 306 /* EnumMember */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: addDeclaration(node); break; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: const exportDeclaration = node; if (exportDeclaration.exportClause) { if (isNamedExports(exportDeclaration.exportClause)) { @@ -141455,14 +143497,14 @@ var SourceFileObject = class extends NodeObject { } } break; - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: const importClause = node.importClause; if (importClause) { if (importClause.name) { addDeclaration(importClause.name); } if (importClause.namedBindings) { - if (importClause.namedBindings.kind === 273 /* NamespaceImport */) { + if (importClause.namedBindings.kind === 274 /* NamespaceImport */) { addDeclaration(importClause.namedBindings); } else { forEach(importClause.namedBindings.elements, visit); @@ -141470,7 +143512,7 @@ var SourceFileObject = class extends NodeObject { } } break; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: if (getAssignmentDeclarationKind(node) !== 0 /* None */) { addDeclaration(node); } @@ -141741,10 +143783,10 @@ function createLanguageService(host, documentRegistry = createDocumentRegistry(h host.log(message); } } - const useCaseSensitiveFileNames = hostUsesCaseSensitiveFileNames(host); - const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames); + const useCaseSensitiveFileNames2 = hostUsesCaseSensitiveFileNames(host); + const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2); const sourceMapper = getSourceMapper({ - useCaseSensitiveFileNames: () => useCaseSensitiveFileNames, + useCaseSensitiveFileNames: () => useCaseSensitiveFileNames2, getCurrentDirectory: () => currentDirectory, getProgram, fileExists: maybeBind(host, host.fileExists), @@ -141756,9 +143798,9 @@ function createLanguageService(host, documentRegistry = createDocumentRegistry(h function getValidSourceFile(fileName) { const sourceFile = program.getSourceFile(fileName); if (!sourceFile) { - const error = new Error(`Could not find source file: '${fileName}'.`); - error.ProgramFiles = program.getSourceFiles().map((f) => f.fileName); - throw error; + const error2 = new Error(`Could not find source file: '${fileName}'.`); + error2.ProgramFiles = program.getSourceFiles().map((f) => f.fileName); + throw error2; } return sourceFile; } @@ -141792,7 +143834,7 @@ function createLanguageService(host, documentRegistry = createDocumentRegistry(h getSourceFileByPath: getOrCreateSourceFileByPath, getCancellationToken: () => cancellationToken, getCanonicalFileName, - useCaseSensitiveFileNames: () => useCaseSensitiveFileNames, + useCaseSensitiveFileNames: () => useCaseSensitiveFileNames2, getNewLine: () => getNewLineCharacter(newSettings), getDefaultLibFileName: (options2) => host.getDefaultLibFileName(options2), writeFile: noop, @@ -141836,9 +143878,12 @@ function createLanguageService(host, documentRegistry = createDocumentRegistry(h compilerHost.getSourceFile = getSourceFileWithCache; (_c = host.setCompilerHost) == null ? void 0 : _c.call(host, compilerHost); const parseConfigHost = { - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, fileExists: (fileName) => compilerHost.fileExists(fileName), readFile: (fileName) => compilerHost.readFile(fileName), + directoryExists: (f) => compilerHost.directoryExists(f), + getDirectories: (f) => compilerHost.getDirectories(f), + realpath: compilerHost.realpath, readDirectory: (...args) => compilerHost.readDirectory(...args), trace: compilerHost.trace, getCurrentDirectory: compilerHost.getCurrentDirectory, @@ -141991,14 +144036,14 @@ function createLanguageService(host, documentRegistry = createDocumentRegistry(h } } function cleanupSemanticCache() { - program = void 0; - } - function dispose() { if (program) { const key = documentRegistry.getKeyForCompilationSettings(program.getCompilerOptions()); forEach(program.getSourceFiles(), (f) => documentRegistry.releaseDocumentWithKey(f.resolvedPath, key, f.scriptKind, f.impliedNodeFormat)); program = void 0; } + } + function dispose() { + cleanupSemanticCache(); host = void 0; } function getSyntacticDiagnostics(fileName) { @@ -142117,15 +144162,15 @@ function createLanguageService(host, documentRegistry = createDocumentRegistry(h switch (node.kind) { case 80 /* Identifier */: return !isLabelName(node) && !isTagName(node) && !isConstTypeReference(node.parent); - case 210 /* PropertyAccessExpression */: - case 165 /* QualifiedName */: + case 211 /* PropertyAccessExpression */: + case 166 /* QualifiedName */: return !isInComment(sourceFile, position); case 110 /* ThisKeyword */: - case 196 /* ThisType */: + case 197 /* ThisType */: case 108 /* SuperKeyword */: - case 201 /* NamedTupleMember */: + case 202 /* NamedTupleMember */: return true; - case 235 /* MetaProperty */: + case 236 /* MetaProperty */: return isImportMeta(node); default: return false; @@ -142225,15 +144270,15 @@ function createLanguageService(host, documentRegistry = createDocumentRegistry(h return void 0; } switch (node.kind) { - case 210 /* PropertyAccessExpression */: - case 165 /* QualifiedName */: + case 211 /* PropertyAccessExpression */: + case 166 /* QualifiedName */: case 11 /* StringLiteral */: case 97 /* FalseKeyword */: case 112 /* TrueKeyword */: case 106 /* NullKeyword */: case 108 /* SuperKeyword */: case 110 /* ThisKeyword */: - case 196 /* ThisType */: + case 197 /* ThisType */: case 80 /* Identifier */: break; default: @@ -142244,7 +144289,7 @@ function createLanguageService(host, documentRegistry = createDocumentRegistry(h if (isRightSideOfPropertyAccess(nodeForStartPos) || isRightSideOfQualifiedName(nodeForStartPos)) { nodeForStartPos = nodeForStartPos.parent; } else if (isNameOfModuleDeclaration(nodeForStartPos)) { - if (nodeForStartPos.parent.parent.kind === 266 /* ModuleDeclaration */ && nodeForStartPos.parent.parent.body === nodeForStartPos.parent) { + if (nodeForStartPos.parent.parent.kind === 267 /* ModuleDeclaration */ && nodeForStartPos.parent.parent.body === nodeForStartPos.parent) { nodeForStartPos = nodeForStartPos.parent.parent.name; } else { break; @@ -142421,7 +144466,7 @@ function createLanguageService(host, documentRegistry = createDocumentRegistry(h function getLinkedEditingRangeAtPosition(fileName, position) { const sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName); const token = findPrecedingToken(position, sourceFile); - if (!token || token.parent.kind === 311 /* SourceFile */) + if (!token || token.parent.kind === 312 /* SourceFile */) return void 0; const jsxTagWordPattern = "[a-zA-Z0-9:\\-\\._$]*"; if (isJsxFragment(token.parent.parent)) { @@ -142669,7 +144714,7 @@ function createLanguageService(host, documentRegistry = createDocumentRegistry(h return !tagNamesAreEquivalent(openingElement.tagName, closingElement.tagName) || isJsxElement(parent2) && tagNamesAreEquivalent(openingElement.tagName, parent2.openingElement.tagName) && isUnclosedTag(parent2); } function isUnclosedFragment({ closingFragment, parent: parent2 }) { - return !!(closingFragment.flags & 131072 /* ThisNodeHasError */) || isJsxFragment(parent2) && isUnclosedFragment(parent2); + return !!(closingFragment.flags & 262144 /* ThisNodeHasError */) || isJsxFragment(parent2) && isUnclosedFragment(parent2); } function getSpanOfEnclosingComment(fileName, position, onlyMultiLine) { const sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName); @@ -142711,7 +144756,7 @@ function createLanguageService(host, documentRegistry = createDocumentRegistry(h } return result; function escapeRegExp(str) { - return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"); + return str.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&"); } function getTodoCommentsRegExp() { const singleLineCommentStart = /(?:\/\/+\s*)/.source; @@ -142779,10 +144824,10 @@ function createLanguageService(host, documentRegistry = createDocumentRegistry(h const newFileName = createNewFileName(sourceFile, program, getRefactorContext(sourceFile, positionOrRange, preferences, emptyOptions), host); return { newFileName, files }; } - function getEditsForRefactor2(fileName, formatOptions, positionOrRange, refactorName13, actionName2, preferences = emptyOptions, interactiveRefactorArguments) { + function getEditsForRefactor2(fileName, formatOptions, positionOrRange, refactorName14, actionName2, preferences = emptyOptions, interactiveRefactorArguments) { synchronizeHostData(); const file = getValidSourceFile(fileName); - return ts_refactor_exports.getEditsForRefactor(getRefactorContext(file, positionOrRange, preferences, formatOptions), refactorName13, actionName2, interactiveRefactorArguments); + return ts_refactor_exports.getEditsForRefactor(getRefactorContext(file, positionOrRange, preferences, formatOptions), refactorName14, actionName2, interactiveRefactorArguments); } function toLineColumnOffset(fileName, position) { if (position === 0) { @@ -142930,7 +144975,7 @@ function initializeNameTable(sourceFile) { }); } function literalIsName(node) { - return isDeclarationName(node) || node.parent.kind === 282 /* ExternalModuleReference */ || isArgumentOfElementAccessExpression(node) || isLiteralComputedPropertyDeclarationName(node); + return isDeclarationName(node) || node.parent.kind === 283 /* ExternalModuleReference */ || isArgumentOfElementAccessExpression(node) || isLiteralComputedPropertyDeclarationName(node); } function getContainingObjectLiteralElement(node) { const element = getContainingObjectLiteralElementWorker(node); @@ -142941,11 +144986,11 @@ function getContainingObjectLiteralElementWorker(node) { case 11 /* StringLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: case 9 /* NumericLiteral */: - if (node.parent.kind === 166 /* ComputedPropertyName */) { + if (node.parent.kind === 167 /* ComputedPropertyName */) { return isObjectLiteralElement(node.parent.parent) ? node.parent.parent : void 0; } case 80 /* Identifier */: - return isObjectLiteralElement(node.parent) && (node.parent.parent.kind === 209 /* ObjectLiteralExpression */ || node.parent.parent.kind === 291 /* JsxAttributes */) && node.parent.name === node ? node.parent : void 0; + return isObjectLiteralElement(node.parent) && (node.parent.parent.kind === 210 /* ObjectLiteralExpression */ || node.parent.parent.kind === 292 /* JsxAttributes */) && node.parent.name === node ? node.parent : void 0; } return void 0; } @@ -142986,7 +145031,7 @@ function getPropertySymbolsFromContextualType(node, checker, contextualType, uni return discriminatedPropertySymbols; } function isArgumentOfElementAccessExpression(node) { - return node && node.parent && node.parent.kind === 211 /* ElementAccessExpression */ && node.parent.argumentExpression === node; + return node && node.parent && node.parent.kind === 212 /* ElementAccessExpression */ && node.parent.argumentExpression === node; } function getDefaultLibFilePath(options) { if (sys) { @@ -143971,7 +146016,7 @@ function spanInSourceFileAtLocation(sourceFile, position) { } tokenAtLocation = preceding; } - if (tokenAtLocation.flags & 16777216 /* Ambient */) { + if (tokenAtLocation.flags & 33554432 /* Ambient */) { return void 0; } return spanInNode(tokenAtLocation); @@ -144014,89 +146059,89 @@ function spanInSourceFileAtLocation(sourceFile, position) { if (node) { const { parent: parent2 } = node; switch (node.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return spanInVariableDeclaration(node.declarationList.declarations[0]); - case 259 /* VariableDeclaration */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: + case 260 /* VariableDeclaration */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: return spanInVariableDeclaration(node); - case 168 /* Parameter */: + case 169 /* Parameter */: return spanInParameterDeclaration(node); - case 261 /* FunctionDeclaration */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 175 /* Constructor */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 176 /* Constructor */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return spanInFunctionDeclaration(node); - case 240 /* Block */: + case 241 /* Block */: if (isFunctionBlock(node)) { return spanInFunctionBlock(node); } - case 267 /* ModuleBlock */: + case 268 /* ModuleBlock */: return spanInBlock(node); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return spanInBlock(node.block); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return textSpan(node.expression); - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: return textSpan(node.getChildAt(0), node.expression); - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: return textSpanEndingAtNextToken(node, node.expression); - case 245 /* DoStatement */: + case 246 /* DoStatement */: return spanInNode(node.statement); - case 258 /* DebuggerStatement */: + case 259 /* DebuggerStatement */: return textSpan(node.getChildAt(0)); - case 244 /* IfStatement */: + case 245 /* IfStatement */: return textSpanEndingAtNextToken(node, node.expression); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return spanInNode(node.statement); - case 251 /* BreakStatement */: - case 250 /* ContinueStatement */: + case 252 /* BreakStatement */: + case 251 /* ContinueStatement */: return textSpan(node.getChildAt(0), node.label); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return spanInForStatement(node); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return textSpanEndingAtNextToken(node, node.expression); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return spanInInitializerOfForLike(node); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return textSpanEndingAtNextToken(node, node.expression); - case 295 /* CaseClause */: - case 296 /* DefaultClause */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: return spanInNode(node.statements[0]); - case 257 /* TryStatement */: + case 258 /* TryStatement */: return spanInBlock(node.tryBlock); - case 256 /* ThrowStatement */: + case 257 /* ThrowStatement */: return textSpan(node, node.expression); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return textSpan(node, node.expression); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return textSpan(node, node.moduleReference); - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return textSpan(node, node.moduleSpecifier); - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return textSpan(node, node.moduleSpecifier); - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: if (getModuleInstanceState(node) !== 1 /* Instantiated */) { return void 0; } - case 262 /* ClassDeclaration */: - case 265 /* EnumDeclaration */: - case 305 /* EnumMember */: - case 207 /* BindingElement */: + case 263 /* ClassDeclaration */: + case 266 /* EnumDeclaration */: + case 306 /* EnumMember */: + case 208 /* BindingElement */: return textSpan(node); - case 253 /* WithStatement */: + case 254 /* WithStatement */: return spanInNode(node.statement); - case 169 /* Decorator */: + case 170 /* Decorator */: return spanInNodeArray(parent2.modifiers, node, isDecorator); - case 205 /* ObjectBindingPattern */: - case 206 /* ArrayBindingPattern */: + case 206 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: return spanInBindingPattern(node); - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: return void 0; case 27 /* SemicolonToken */: case 1 /* EndOfFileToken */: @@ -144124,16 +146169,16 @@ function spanInSourceFileAtLocation(sourceFile, position) { case 85 /* CatchKeyword */: case 98 /* FinallyKeyword */: return spanInNextNode(node); - case 164 /* OfKeyword */: + case 165 /* OfKeyword */: return spanInOfKeyword(node); default: if (isArrayLiteralOrObjectLiteralDestructuringPattern(node)) { return spanInArrayLiteralOrObjectLiteralDestructuringPattern(node); } - if ((node.kind === 80 /* Identifier */ || node.kind === 229 /* SpreadElement */ || node.kind === 302 /* PropertyAssignment */ || node.kind === 303 /* ShorthandPropertyAssignment */) && isArrayLiteralOrObjectLiteralDestructuringPattern(parent2)) { + if ((node.kind === 80 /* Identifier */ || node.kind === 230 /* SpreadElement */ || node.kind === 303 /* PropertyAssignment */ || node.kind === 304 /* ShorthandPropertyAssignment */) && isArrayLiteralOrObjectLiteralDestructuringPattern(parent2)) { return textSpan(node); } - if (node.kind === 225 /* BinaryExpression */) { + if (node.kind === 226 /* BinaryExpression */) { const { left, operatorToken } = node; if (isArrayLiteralOrObjectLiteralDestructuringPattern(left)) { return spanInArrayLiteralOrObjectLiteralDestructuringPattern( @@ -144149,19 +146194,19 @@ function spanInSourceFileAtLocation(sourceFile, position) { } if (isExpressionNode(node)) { switch (parent2.kind) { - case 245 /* DoStatement */: + case 246 /* DoStatement */: return spanInPreviousNode(node); - case 169 /* Decorator */: + case 170 /* Decorator */: return spanInNode(node.parent); - case 247 /* ForStatement */: - case 249 /* ForOfStatement */: + case 248 /* ForStatement */: + case 250 /* ForOfStatement */: return textSpan(node); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: if (node.parent.operatorToken.kind === 28 /* CommaToken */) { return textSpan(node); } break; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: if (node.parent.body === node) { return textSpan(node); } @@ -144169,25 +146214,25 @@ function spanInSourceFileAtLocation(sourceFile, position) { } } switch (node.parent.kind) { - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: if (node.parent.name === node && !isArrayLiteralOrObjectLiteralDestructuringPattern(node.parent.parent)) { return spanInNode(node.parent.initializer); } break; - case 215 /* TypeAssertionExpression */: + case 216 /* TypeAssertionExpression */: if (node.parent.type === node) { return spanInNextNode(node.parent.type); } break; - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: { + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: { const { initializer, type } = node.parent; if (initializer === node || type === node || isAssignmentOperator(node.kind)) { return spanInPreviousNode(node); } break; } - case 225 /* BinaryExpression */: { + case 226 /* BinaryExpression */: { const { left } = node.parent; if (isArrayLiteralOrObjectLiteralDestructuringPattern(left) && node !== left) { return spanInPreviousNode(node); @@ -144210,14 +146255,14 @@ function spanInSourceFileAtLocation(sourceFile, position) { } } function spanInVariableDeclaration(variableDeclaration) { - if (variableDeclaration.parent.parent.kind === 248 /* ForInStatement */) { + if (variableDeclaration.parent.parent.kind === 249 /* ForInStatement */) { return spanInNode(variableDeclaration.parent.parent); } const parent2 = variableDeclaration.parent; if (isBindingPattern(variableDeclaration.name)) { return spanInBindingPattern(variableDeclaration.name); } - if (hasOnlyExpressionInitializer(variableDeclaration) && variableDeclaration.initializer || hasSyntacticModifier(variableDeclaration, 1 /* Export */) || parent2.parent.kind === 249 /* ForOfStatement */) { + if (hasOnlyExpressionInitializer(variableDeclaration) && variableDeclaration.initializer || hasSyntacticModifier(variableDeclaration, 1 /* Export */) || parent2.parent.kind === 250 /* ForOfStatement */) { return textSpanFromVariableDeclaration(variableDeclaration); } if (isVariableDeclarationList(variableDeclaration.parent) && variableDeclaration.parent.declarations[0] !== variableDeclaration) { @@ -144244,7 +146289,7 @@ function spanInSourceFileAtLocation(sourceFile, position) { } } function canFunctionHaveSpanInWholeDeclaration(functionDeclaration) { - return hasSyntacticModifier(functionDeclaration, 1 /* Export */) || functionDeclaration.parent.kind === 262 /* ClassDeclaration */ && functionDeclaration.kind !== 175 /* Constructor */; + return hasSyntacticModifier(functionDeclaration, 1 /* Export */) || functionDeclaration.parent.kind === 263 /* ClassDeclaration */ && functionDeclaration.kind !== 176 /* Constructor */; } function spanInFunctionDeclaration(functionDeclaration) { if (!functionDeclaration.body) { @@ -144264,22 +146309,22 @@ function spanInSourceFileAtLocation(sourceFile, position) { } function spanInBlock(block) { switch (block.parent.kind) { - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: if (getModuleInstanceState(block.parent) !== 1 /* Instantiated */) { return void 0; } - case 246 /* WhileStatement */: - case 244 /* IfStatement */: - case 248 /* ForInStatement */: + case 247 /* WhileStatement */: + case 245 /* IfStatement */: + case 249 /* ForInStatement */: return spanInNodeIfStartsOnSameLine(block.parent, block.statements[0]); - case 247 /* ForStatement */: - case 249 /* ForOfStatement */: + case 248 /* ForStatement */: + case 250 /* ForOfStatement */: return spanInNodeIfStartsOnSameLine(findPrecedingToken(block.pos, sourceFile, block.parent), block.statements[0]); } return spanInNode(block.statements[0]); } function spanInInitializerOfForLike(forLikeStatement) { - if (forLikeStatement.initializer.kind === 260 /* VariableDeclarationList */) { + if (forLikeStatement.initializer.kind === 261 /* VariableDeclarationList */) { const variableDeclarationList = forLikeStatement.initializer; if (variableDeclarationList.declarations.length > 0) { return spanInNode(variableDeclarationList.declarations[0]); @@ -144302,64 +146347,64 @@ function spanInSourceFileAtLocation(sourceFile, position) { function spanInBindingPattern(bindingPattern) { const firstBindingElement = forEach( bindingPattern.elements, - (element) => element.kind !== 231 /* OmittedExpression */ ? element : void 0 + (element) => element.kind !== 232 /* OmittedExpression */ ? element : void 0 ); if (firstBindingElement) { return spanInNode(firstBindingElement); } - if (bindingPattern.parent.kind === 207 /* BindingElement */) { + if (bindingPattern.parent.kind === 208 /* BindingElement */) { return textSpan(bindingPattern.parent); } return textSpanFromVariableDeclaration(bindingPattern.parent); } function spanInArrayLiteralOrObjectLiteralDestructuringPattern(node2) { - Debug.assert(node2.kind !== 206 /* ArrayBindingPattern */ && node2.kind !== 205 /* ObjectBindingPattern */); - const elements = node2.kind === 208 /* ArrayLiteralExpression */ ? node2.elements : node2.properties; + Debug.assert(node2.kind !== 207 /* ArrayBindingPattern */ && node2.kind !== 206 /* ObjectBindingPattern */); + const elements = node2.kind === 209 /* ArrayLiteralExpression */ ? node2.elements : node2.properties; const firstBindingElement = forEach( elements, - (element) => element.kind !== 231 /* OmittedExpression */ ? element : void 0 + (element) => element.kind !== 232 /* OmittedExpression */ ? element : void 0 ); if (firstBindingElement) { return spanInNode(firstBindingElement); } - return textSpan(node2.parent.kind === 225 /* BinaryExpression */ ? node2.parent : node2); + return textSpan(node2.parent.kind === 226 /* BinaryExpression */ ? node2.parent : node2); } function spanInOpenBraceToken(node2) { switch (node2.parent.kind) { - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: const enumDeclaration = node2.parent; return spanInNodeIfStartsOnSameLine(findPrecedingToken(node2.pos, sourceFile, node2.parent), enumDeclaration.members.length ? enumDeclaration.members[0] : enumDeclaration.getLastToken(sourceFile)); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: const classDeclaration = node2.parent; return spanInNodeIfStartsOnSameLine(findPrecedingToken(node2.pos, sourceFile, node2.parent), classDeclaration.members.length ? classDeclaration.members[0] : classDeclaration.getLastToken(sourceFile)); - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: return spanInNodeIfStartsOnSameLine(node2.parent.parent, node2.parent.clauses[0]); } return spanInNode(node2.parent); } function spanInCloseBraceToken(node2) { switch (node2.parent.kind) { - case 267 /* ModuleBlock */: + case 268 /* ModuleBlock */: if (getModuleInstanceState(node2.parent.parent) !== 1 /* Instantiated */) { return void 0; } - case 265 /* EnumDeclaration */: - case 262 /* ClassDeclaration */: + case 266 /* EnumDeclaration */: + case 263 /* ClassDeclaration */: return textSpan(node2); - case 240 /* Block */: + case 241 /* Block */: if (isFunctionBlock(node2.parent)) { return textSpan(node2); } - case 298 /* CatchClause */: + case 299 /* CatchClause */: return spanInNode(lastOrUndefined(node2.parent.statements)); - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: const caseBlock = node2.parent; const lastClause = lastOrUndefined(caseBlock.clauses); if (lastClause) { return spanInNode(lastOrUndefined(lastClause.statements)); } return void 0; - case 205 /* ObjectBindingPattern */: + case 206 /* ObjectBindingPattern */: const bindingPattern = node2.parent; return spanInNode(lastOrUndefined(bindingPattern.elements) || bindingPattern); default: @@ -144372,7 +146417,7 @@ function spanInSourceFileAtLocation(sourceFile, position) { } function spanInCloseBracketToken(node2) { switch (node2.parent.kind) { - case 206 /* ArrayBindingPattern */: + case 207 /* ArrayBindingPattern */: const bindingPattern = node2.parent; return textSpan(lastOrUndefined(bindingPattern.elements) || bindingPattern); default: @@ -144384,57 +146429,57 @@ function spanInSourceFileAtLocation(sourceFile, position) { } } function spanInOpenParenToken(node2) { - if (node2.parent.kind === 245 /* DoStatement */ || // Go to while keyword and do action instead - node2.parent.kind === 212 /* CallExpression */ || node2.parent.kind === 213 /* NewExpression */) { + if (node2.parent.kind === 246 /* DoStatement */ || // Go to while keyword and do action instead + node2.parent.kind === 213 /* CallExpression */ || node2.parent.kind === 214 /* NewExpression */) { return spanInPreviousNode(node2); } - if (node2.parent.kind === 216 /* ParenthesizedExpression */) { + if (node2.parent.kind === 217 /* ParenthesizedExpression */) { return spanInNextNode(node2); } return spanInNode(node2.parent); } function spanInCloseParenToken(node2) { switch (node2.parent.kind) { - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 175 /* Constructor */: - case 246 /* WhileStatement */: - case 245 /* DoStatement */: - case 247 /* ForStatement */: - case 249 /* ForOfStatement */: - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 216 /* ParenthesizedExpression */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 176 /* Constructor */: + case 247 /* WhileStatement */: + case 246 /* DoStatement */: + case 248 /* ForStatement */: + case 250 /* ForOfStatement */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 217 /* ParenthesizedExpression */: return spanInPreviousNode(node2); default: return spanInNode(node2.parent); } } function spanInColonToken(node2) { - if (isFunctionLike(node2.parent) || node2.parent.kind === 302 /* PropertyAssignment */ || node2.parent.kind === 168 /* Parameter */) { + if (isFunctionLike(node2.parent) || node2.parent.kind === 303 /* PropertyAssignment */ || node2.parent.kind === 169 /* Parameter */) { return spanInPreviousNode(node2); } return spanInNode(node2.parent); } function spanInGreaterThanOrLessThanToken(node2) { - if (node2.parent.kind === 215 /* TypeAssertionExpression */) { + if (node2.parent.kind === 216 /* TypeAssertionExpression */) { return spanInNextNode(node2); } return spanInNode(node2.parent); } function spanInWhileKeyword(node2) { - if (node2.parent.kind === 245 /* DoStatement */) { + if (node2.parent.kind === 246 /* DoStatement */) { return textSpanEndingAtNextToken(node2, node2.parent.expression); } return spanInNode(node2.parent); } function spanInOfKeyword(node2) { - if (node2.parent.kind === 249 /* ForOfStatement */) { + if (node2.parent.kind === 250 /* ForOfStatement */) { return spanInNextNode(node2); } return spanInNode(node2.parent); @@ -144523,16 +146568,16 @@ function getCallHierarchItemContainerName(node) { return; } switch (node.kind) { - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 173 /* MethodDeclaration */: - if (node.parent.kind === 209 /* ObjectLiteralExpression */) { + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: + if (node.parent.kind === 210 /* ObjectLiteralExpression */) { return (_a = getAssignedName(node.parent)) == null ? void 0 : _a.getText(); } return (_b = getNameOfDeclaration(node.parent)) == null ? void 0 : _b.getText(); - case 261 /* FunctionDeclaration */: - case 262 /* ClassDeclaration */: - case 266 /* ModuleDeclaration */: + case 262 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: + case 267 /* ModuleDeclaration */: if (isModuleBlock(node.parent) && isIdentifier(node.parent.parent.name)) { return node.parent.parent.name.getText(); } @@ -144734,7 +146779,7 @@ function createCallSiteCollector(program, callSites) { function collect(node) { if (!node) return; - if (node.flags & 16777216 /* Ambient */) { + if (node.flags & 33554432 /* Ambient */) { return; } if (isValidCallHierarchyDeclaration(node)) { @@ -144749,55 +146794,55 @@ function createCallSiteCollector(program, callSites) { } switch (node.kind) { case 80 /* Identifier */: - case 270 /* ImportEqualsDeclaration */: - case 271 /* ImportDeclaration */: - case 277 /* ExportDeclaration */: - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 272 /* ImportDeclaration */: + case 278 /* ExportDeclaration */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: return; - case 174 /* ClassStaticBlockDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: recordCallSite(node); return; - case 215 /* TypeAssertionExpression */: - case 233 /* AsExpression */: + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: collect(node.expression); return; - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: collect(node.name); collect(node.initializer); return; - case 212 /* CallExpression */: + case 213 /* CallExpression */: recordCallSite(node); collect(node.expression); forEach(node.arguments, collect); return; - case 213 /* NewExpression */: + case 214 /* NewExpression */: recordCallSite(node); collect(node.expression); forEach(node.arguments, collect); return; - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: recordCallSite(node); collect(node.tag); collect(node.template); return; - case 285 /* JsxOpeningElement */: - case 284 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: recordCallSite(node); collect(node.tagName); collect(node.attributes); return; - case 169 /* Decorator */: + case 170 /* Decorator */: recordCallSite(node); collect(node.expression); return; - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: recordCallSite(node); forEachChild(node, collect); break; - case 237 /* SatisfiesExpression */: + case 238 /* SatisfiesExpression */: collect(node.expression); return; } @@ -144850,25 +146895,25 @@ function collectCallSites(program, node) { const callSites = []; const collect = createCallSiteCollector(program, callSites); switch (node.kind) { - case 311 /* SourceFile */: + case 312 /* SourceFile */: collectCallSitesOfSourceFile(node, collect); break; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: collectCallSitesOfModuleDeclaration(node, collect); break; - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: collectCallSitesOfFunctionLikeDeclaration(program.getTypeChecker(), node, collect); break; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: collectCallSitesOfClassLikeDeclaration(node, collect); break; - case 174 /* ClassStaticBlockDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: collectCallSitesOfClassStaticBlockDeclaration(node, collect); break; default: @@ -144883,7 +146928,7 @@ function convertCallSiteGroupToOutgoingCall(program, entries) { return createCallHierarchyOutgoingCall(createCallHierarchyItem(program, entries[0].declaration), map(entries, (entry) => createTextSpanFromRange(entry.range))); } function getOutgoingCalls(program, declaration) { - if (declaration.flags & 16777216 /* Ambient */ || isMethodSignature(declaration)) { + if (declaration.flags & 33554432 /* Ambient */ || isMethodSignature(declaration)) { return []; } return group(collectCallSites(program, declaration), getCallSiteGroupKey, (entries) => convertCallSiteGroupToOutgoingCall(program, entries)); @@ -144934,7 +146979,7 @@ __export(ts_codefix_exports, { getFixes: () => getFixes, getImportCompletionAction: () => getImportCompletionAction, getImportKind: () => getImportKind, - getJSDocTypedefNode: () => getJSDocTypedefNode, + getJSDocTypedefNodes: () => getJSDocTypedefNodes, getNoopSymbolTrackerWithResolver: () => getNoopSymbolTrackerWithResolver, getPromoteTypeOnlyCompletionAction: () => getPromoteTypeOnlyCompletionAction, getSupportedErrorCodes: () => getSupportedErrorCodes, @@ -144974,9 +147019,9 @@ function createCodeFixActionWorker(fixName8, description3, changes, fixId52, fix return { fixName: fixName8, description: description3, changes, fixId: fixId52, fixAllDescription, commands: command ? [command] : void 0 }; } function registerCodeFix(reg) { - for (const error of reg.errorCodes) { + for (const error2 of reg.errorCodes) { errorCodeToFixesArray = void 0; - errorCodeToFixes.add(String(error), reg); + errorCodeToFixes.add(String(error2), reg); } if (reg.fixIds) { for (const fixId52 of reg.fixIds) { @@ -145071,6 +147116,7 @@ function getAssertion(sourceFile, pos) { registerCodeFix({ errorCodes: [ Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code, + Diagnostics.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code, Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code ], getCodeActions: function getCodeActionsToAddEmptyExportDeclaration(context) { @@ -145267,7 +147313,7 @@ function findAwaitableInitializers(expression, sourceFile, cancellationToken, pr } const declaration = tryCast(symbol.valueDeclaration, isVariableDeclaration); const variableName = declaration && tryCast(declaration.name, isIdentifier); - const variableStatement = getAncestor(declaration, 242 /* VariableStatement */); + const variableStatement = getAncestor(declaration, 243 /* VariableStatement */); if (!declaration || !variableStatement || declaration.type || !declaration.initializer || variableStatement.getSourceFile() !== sourceFile || hasSyntacticModifier(variableStatement, 1 /* Export */) || !variableName || !isInsideAwaitableBody(declaration.initializer)) { isCompleteFix = false; continue; @@ -145326,7 +147372,7 @@ function symbolReferenceIsAlsoMissingAwait(reference, diagnostics, sourceFile, c checker.getTypeAtLocation(errorNode).flags & 1 /* Any */; } function isInsideAwaitableBody(node) { - return node.kind & 32768 /* AwaitContext */ || !!findAncestor(node, (ancestor) => ancestor.parent && isArrowFunction(ancestor.parent) && ancestor.parent.body === ancestor || isBlock(ancestor) && (ancestor.parent.kind === 261 /* FunctionDeclaration */ || ancestor.parent.kind === 217 /* FunctionExpression */ || ancestor.parent.kind === 218 /* ArrowFunction */ || ancestor.parent.kind === 173 /* MethodDeclaration */)); + return node.kind & 65536 /* AwaitContext */ || !!findAncestor(node, (ancestor) => ancestor.parent && isArrowFunction(ancestor.parent) && ancestor.parent.body === ancestor || isBlock(ancestor) && (ancestor.parent.kind === 262 /* FunctionDeclaration */ || ancestor.parent.kind === 218 /* FunctionExpression */ || ancestor.parent.kind === 219 /* ArrowFunction */ || ancestor.parent.kind === 174 /* MethodDeclaration */)); } function makeChange3(changeTracker, errorCode, sourceFile, checker, insertionSite, fixedDeclarations) { if (isForOfStatement(insertionSite.parent) && !insertionSite.parent.awaitModifier) { @@ -145448,10 +147494,10 @@ function applyChange(changeTracker, initializer, sourceFile, fixedNodes) { function isPossiblyPartOfDestructuring(node) { switch (node.kind) { case 80 /* Identifier */: - case 208 /* ArrayLiteralExpression */: - case 209 /* ObjectLiteralExpression */: - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: + case 209 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return true; default: return false; @@ -145468,7 +147514,7 @@ function arrayElementCouldBeVariableDeclaration(expression, checker) { function isPossiblyPartOfCommaSeperatedInitializer(node) { switch (node.kind) { case 80 /* Identifier */: - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: case 28 /* CommaToken */: return true; default: @@ -145510,7 +147556,7 @@ function makeChange5(changeTracker, sourceFile, pos, fixedNodes) { return; } const declaration = token.parent; - if (declaration.kind === 171 /* PropertyDeclaration */ && (!fixedNodes || tryAddToSet(fixedNodes, declaration))) { + if (declaration.kind === 172 /* PropertyDeclaration */ && (!fixedNodes || tryAddToSet(fixedNodes, declaration))) { changeTracker.insertModifierBefore(sourceFile, 138 /* DeclareKeyword */, declaration); } } @@ -145654,7 +147700,7 @@ function addUndefinedToOptionalProperty(changes, toAdd) { const d = add.valueDeclaration; if (d && (isPropertySignature(d) || isPropertyDeclaration(d)) && d.type) { const t = factory.createUnionTypeNode([ - ...d.type.kind === 191 /* UnionType */ ? d.type.types : [d.type], + ...d.type.kind === 192 /* UnionType */ ? d.type.types : [d.type], factory.createTypeReferenceNode("undefined") ]); changes.replaceNode(d.getSourceFile(), d.type, t); @@ -145722,26 +147768,26 @@ function doChange8(changes, sourceFile, decl) { } } function isDeclarationWithType(node) { - return isFunctionLikeDeclaration(node) || node.kind === 259 /* VariableDeclaration */ || node.kind === 170 /* PropertySignature */ || node.kind === 171 /* PropertyDeclaration */; + return isFunctionLikeDeclaration(node) || node.kind === 260 /* VariableDeclaration */ || node.kind === 171 /* PropertySignature */ || node.kind === 172 /* PropertyDeclaration */; } function transformJSDocType(node) { switch (node.kind) { - case 318 /* JSDocAllType */: - case 319 /* JSDocUnknownType */: + case 319 /* JSDocAllType */: + case 320 /* JSDocUnknownType */: return factory.createTypeReferenceNode("any", emptyArray); - case 322 /* JSDocOptionalType */: + case 323 /* JSDocOptionalType */: return transformJSDocOptionalType(node); - case 321 /* JSDocNonNullableType */: + case 322 /* JSDocNonNullableType */: return transformJSDocType(node.type); - case 320 /* JSDocNullableType */: + case 321 /* JSDocNullableType */: return transformJSDocNullableType(node); - case 324 /* JSDocVariadicType */: + case 325 /* JSDocVariadicType */: return transformJSDocVariadicType(node); - case 323 /* JSDocFunctionType */: + case 324 /* JSDocFunctionType */: return transformJSDocFunctionType(node); - case 182 /* TypeReference */: + case 183 /* TypeReference */: return transformJSDocTypeReference(node); - case 328 /* JSDocTypeLiteral */: + case 329 /* JSDocTypeLiteral */: return transformJSDocTypeLiteral(node); default: const visited = visitEachChild(node, transformJSDocType, nullTransformationContext); @@ -145774,7 +147820,7 @@ function transformJSDocFunctionType(node) { } function transformJSDocParameter(node) { const index = node.parent.parameters.indexOf(node); - const isRest = node.type.kind === 324 /* JSDocVariadicType */ && index === node.parent.parameters.length - 1; + const isRest = node.type.kind === 325 /* JSDocVariadicType */ && index === node.parent.parameters.length - 1; const name = node.name || (isRest ? "rest" : "arg" + index); const dotdotdot = isRest ? factory.createToken(26 /* DotDotDotToken */) : node.dotDotDotToken; return factory.createParameterDeclaration(node.modifiers, dotdotdot, name, node.questionToken, visitNode(node.type, transformJSDocType, isTypeNode), node.initializer); @@ -145941,7 +147987,7 @@ function doChange9(changes, sourceFile, position, checker, preferences, compiler })) { return; } - const nodeToDelete = assignmentBinaryExpression.parent && assignmentBinaryExpression.parent.kind === 243 /* ExpressionStatement */ ? assignmentBinaryExpression.parent : assignmentBinaryExpression; + const nodeToDelete = assignmentBinaryExpression.parent && assignmentBinaryExpression.parent.kind === 244 /* ExpressionStatement */ ? assignmentBinaryExpression.parent : assignmentBinaryExpression; changes.delete(sourceFile, nodeToDelete); if (!assignmentExpr) { members.push(factory.createPropertyDeclaration( @@ -146026,7 +148072,7 @@ function doChange9(changes, sourceFile, position, checker, preferences, compiler function createArrowFunctionExpressionMember(members2, arrowFunction, name) { const arrowFunctionBody = arrowFunction.body; let bodyBlock; - if (arrowFunctionBody.kind === 240 /* Block */) { + if (arrowFunctionBody.kind === 241 /* Block */) { bodyBlock = arrowFunctionBody; } else { bodyBlock = factory.createBlock([factory.createReturnStatement(arrowFunctionBody)]); @@ -146583,7 +148629,7 @@ function transformCallbackArgument(func, hasContinuation, continuationArgName, i switch (func.kind) { case 106 /* NullKeyword */: break; - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: case 80 /* Identifier */: if (!inputArgName) { break; @@ -146608,8 +148654,8 @@ function transformCallbackArgument(func, hasContinuation, continuationArgName, i continuationArgName.types.push(transformer.checker.getAwaitedType(returnType) || returnType); } return varDeclOrAssignment; - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: { + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: { const funcBody = func.body; const returnType2 = (_a = getLastCallSignature(transformer.checker.getTypeAtLocation(func), transformer.checker)) == null ? void 0 : _a.getReturnType(); if (isBlock(funcBody)) { @@ -146845,7 +148891,7 @@ function fixImportOfModuleExports(importingFile, exportingFile, changes, quotePr } const importNode = importFromModuleSpecifier(moduleSpecifier); switch (importNode.kind) { - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: changes.replaceNode(importingFile, importNode, makeImport( importNode.name, /*namedImports*/ @@ -146854,7 +148900,7 @@ function fixImportOfModuleExports(importingFile, exportingFile, changes, quotePr quotePreference )); break; - case 212 /* CallExpression */: + case 213 /* CallExpression */: if (isRequireCall( importNode, /*requireStringLiteralLikeArgument*/ @@ -146923,13 +148969,13 @@ function forEachExportReference(sourceFile, cb) { } function convertStatement(sourceFile, statement, checker, changes, identifiers, target, exports, useSitesToUnqualify, quotePreference) { switch (statement.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: convertVariableStatement(sourceFile, statement, changes, checker, identifiers, target, quotePreference); return false; - case 243 /* ExpressionStatement */: { + case 244 /* ExpressionStatement */: { const { expression } = statement; switch (expression.kind) { - case 212 /* CallExpression */: { + case 213 /* CallExpression */: { if (isRequireCall( expression, /*requireStringLiteralLikeArgument*/ @@ -146946,7 +148992,7 @@ function convertStatement(sourceFile, statement, checker, changes, identifiers, } return false; } - case 225 /* BinaryExpression */: { + case 226 /* BinaryExpression */: { const { operatorToken } = expression; return operatorToken.kind === 64 /* EqualsToken */ && convertAssignment(sourceFile, checker, expression, changes, exports, useSitesToUnqualify); } @@ -147000,8 +149046,8 @@ function convertVariableStatement(sourceFile, statement, changes, checker, ident } function convertPropertyAccessImport(name, propertyName, moduleSpecifier, identifiers, quotePreference) { switch (name.kind) { - case 205 /* ObjectBindingPattern */: - case 206 /* ArrayBindingPattern */: { + case 206 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: { const tmp = makeUniqueName(propertyName, identifiers); return convertedImports([ makeSingleImport(tmp, propertyName, moduleSpecifier, quotePreference), @@ -147049,14 +149095,14 @@ function convertAssignment(sourceFile, checker, assignment, changes, exports, us function tryChangeModuleExportsObject(object, useSitesToUnqualify) { const statements = mapAllOrFail(object.properties, (prop) => { switch (prop.kind) { - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 303 /* ShorthandPropertyAssignment */: - case 304 /* SpreadAssignment */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 304 /* ShorthandPropertyAssignment */: + case 305 /* SpreadAssignment */: return void 0; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return !isIdentifier(prop.name) ? void 0 : convertExportsDotXEquals_replaceNode(prop.name.text, prop.initializer, useSitesToUnqualify); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return !isIdentifier(prop.name) ? void 0 : functionExpressionToDeclaration(prop.name.text, [factory.createToken(95 /* ExportKeyword */)], prop, useSitesToUnqualify); default: Debug.assertNever(prop, `Convert to ES6 got invalid prop kind ${prop.kind}`); @@ -147134,15 +149180,15 @@ function convertExportsPropertyAssignment({ left, right, parent: parent2 }, sour function convertExportsDotXEquals_replaceNode(name, exported, useSitesToUnqualify) { const modifiers = [factory.createToken(95 /* ExportKeyword */)]; switch (exported.kind) { - case 217 /* FunctionExpression */: { + case 218 /* FunctionExpression */: { const { name: expressionName } = exported; if (expressionName && expressionName.text !== name) { return exportConst(); } } - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return functionExpressionToDeclaration(name, modifiers, exported, useSitesToUnqualify); - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return classExpressionToDeclaration(name, modifiers, exported, useSitesToUnqualify); default: return exportConst(); @@ -147167,7 +149213,7 @@ function replaceImportUseSites(nodeOrNodes, useSitesToUnqualify) { replaceNode ); function replaceNode(original) { - if (original.kind === 210 /* PropertyAccessExpression */) { + if (original.kind === 211 /* PropertyAccessExpression */) { const replacement = useSitesToUnqualify.get(original); useSitesToUnqualify.delete(original); return replacement; @@ -147176,7 +149222,7 @@ function replaceImportUseSites(nodeOrNodes, useSitesToUnqualify) { } function convertSingleImport(name, moduleSpecifier, checker, identifiers, target, quotePreference) { switch (name.kind) { - case 205 /* ObjectBindingPattern */: { + case 206 /* ObjectBindingPattern */: { const importSpecifiers = mapAllOrFail(name.elements, (e) => e.dotDotDotToken || e.initializer || e.propertyName && !isIdentifier(e.propertyName) || !isIdentifier(e.name) ? void 0 : makeImportSpecifier2(e.propertyName && e.propertyName.text, e.name.text)); if (importSpecifiers) { return convertedImports([makeImport( @@ -147188,7 +149234,7 @@ function convertSingleImport(name, moduleSpecifier, checker, identifiers, target )]); } } - case 206 /* ArrayBindingPattern */: { + case 207 /* ArrayBindingPattern */: { const tmp = makeUniqueName(moduleSpecifierToValidIdentifier(moduleSpecifier.text, target), identifiers); return convertedImports([ makeImport( @@ -147275,11 +149321,11 @@ function forEachFreeIdentifier(node, cb) { function isFreeIdentifier(node) { const { parent: parent2 } = node; switch (parent2.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return parent2.name !== node; - case 207 /* BindingElement */: + case 208 /* BindingElement */: return parent2.propertyName !== node; - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: return parent2.propertyName !== node; default: return true; @@ -147486,19 +149532,41 @@ var fixId13 = "convertToTypeOnlyImport"; registerCodeFix({ errorCodes: errorCodes14, getCodeActions: function getCodeActionsToConvertToTypeOnlyImport(context) { + var _a; const declaration = getDeclaration2(context.sourceFile, context.span.start); if (declaration) { const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange11(t, context.sourceFile, declaration)); - return [createCodeFixAction(fixId13, changes, Diagnostics.Convert_to_type_only_import, fixId13, Diagnostics.Convert_all_imports_not_used_as_a_value_to_type_only_imports)]; + const importDeclarationChanges = declaration.kind === 276 /* ImportSpecifier */ && canConvertImportDeclarationForSpecifier(declaration, context.sourceFile, context.program) ? ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange11(t, context.sourceFile, declaration.parent.parent.parent)) : void 0; + const mainAction = createCodeFixAction( + fixId13, + changes, + declaration.kind === 276 /* ImportSpecifier */ ? [Diagnostics.Use_type_0, ((_a = declaration.propertyName) == null ? void 0 : _a.text) ?? declaration.name.text] : Diagnostics.Use_import_type, + fixId13, + Diagnostics.Fix_all_with_type_only_imports + ); + if (some(importDeclarationChanges)) { + return [ + createCodeFixActionWithoutFixAll(fixId13, importDeclarationChanges, Diagnostics.Use_import_type), + mainAction + ]; + } + return [mainAction]; } return void 0; }, fixIds: [fixId13], getAllCodeActions: function getAllCodeActionsToConvertToTypeOnlyImport(context) { + const fixedImportDeclarations = /* @__PURE__ */ new Set(); return codeFixAll(context, errorCodes14, (changes, diag2) => { - const declaration = getDeclaration2(diag2.file, diag2.start); - if (declaration) { - doChange11(changes, diag2.file, declaration); + const errorDeclaration = getDeclaration2(diag2.file, diag2.start); + if ((errorDeclaration == null ? void 0 : errorDeclaration.kind) === 272 /* ImportDeclaration */ && !fixedImportDeclarations.has(errorDeclaration)) { + doChange11(changes, diag2.file, errorDeclaration); + fixedImportDeclarations.add(errorDeclaration); + } else if ((errorDeclaration == null ? void 0 : errorDeclaration.kind) === 276 /* ImportSpecifier */ && !fixedImportDeclarations.has(errorDeclaration.parent.parent.parent) && canConvertImportDeclarationForSpecifier(errorDeclaration, diag2.file, context.program)) { + doChange11(changes, diag2.file, errorDeclaration.parent.parent.parent); + fixedImportDeclarations.add(errorDeclaration.parent.parent.parent); + } else if ((errorDeclaration == null ? void 0 : errorDeclaration.kind) === 276 /* ImportSpecifier */) { + doChange11(changes, diag2.file, errorDeclaration); } }); } @@ -147507,7 +149575,27 @@ function getDeclaration2(sourceFile, pos) { const { parent: parent2 } = getTokenAtPosition(sourceFile, pos); return isImportSpecifier(parent2) || isImportDeclaration(parent2) && parent2.importClause ? parent2 : void 0; } +function canConvertImportDeclarationForSpecifier(specifier, sourceFile, program) { + if (specifier.parent.parent.name) { + return false; + } + const nonTypeOnlySpecifiers = specifier.parent.elements.filter((e) => !e.isTypeOnly); + if (nonTypeOnlySpecifiers.length === 1) { + return true; + } + const checker = program.getTypeChecker(); + for (const specifier2 of nonTypeOnlySpecifiers) { + const isUsedAsValue = ts_FindAllReferences_exports.Core.eachSymbolReferenceInFile(specifier2.name, checker, sourceFile, (usage) => { + return !isValidTypeOnlyAliasUseSite(usage); + }); + if (isUsedAsValue) { + return false; + } + } + return true; +} function doChange11(changes, sourceFile, declaration) { + var _a; if (isImportSpecifier(declaration)) { changes.replaceNode(sourceFile, declaration, factory.updateImportSpecifier( declaration, @@ -147578,6 +149666,16 @@ function doChange11(changes, sourceFile, declaration) { ) ]); } else { + const newNamedBindings = ((_a = importClause.namedBindings) == null ? void 0 : _a.kind) === 275 /* NamedImports */ ? factory.updateNamedImports( + importClause.namedBindings, + sameMap(importClause.namedBindings.elements, (e) => factory.updateImportSpecifier( + e, + /*isTypeOnly*/ + false, + e.propertyName, + e.name + )) + ) : importClause.namedBindings; const importDeclaration = factory.updateImportDeclaration( declaration, declaration.modifiers, @@ -147586,7 +149684,7 @@ function doChange11(changes, sourceFile, declaration) { /*isTypeOnly*/ true, importClause.name, - importClause.namedBindings + newNamedBindings ), declaration.moduleSpecifier, declaration.assertClause @@ -147603,13 +149701,14 @@ registerCodeFix({ fixIds: [fixId14], errorCodes: errorCodes15, getCodeActions(context) { + const newLineCharacter = getNewLineOrDefaultFromHost(context.host, context.formatContext.options); const node = getTokenAtPosition( context.sourceFile, context.span.start ); if (!node) return; - const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange12(t, node, context.sourceFile)); + const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange12(t, node, context.sourceFile, newLineCharacter)); if (changes.length > 0) { return [ createCodeFixAction( @@ -147622,29 +149721,72 @@ registerCodeFix({ ]; } }, - getAllCodeActions: (context) => codeFixAll(context, errorCodes15, (changes, diag2) => { - const node = getTokenAtPosition(diag2.file, diag2.start); - if (node) - doChange12(changes, node, diag2.file); - }) + getAllCodeActions: (context) => codeFixAll( + context, + errorCodes15, + (changes, diag2) => { + const newLineCharacter = getNewLineOrDefaultFromHost(context.host, context.formatContext.options); + const node = getTokenAtPosition(diag2.file, diag2.start); + const fixAll = true; + if (node) + doChange12(changes, node, diag2.file, newLineCharacter, fixAll); + } + ) }); -function doChange12(changes, node, sourceFile) { - if (isJSDocTypedefTag(node)) { - fixSingleTypeDef(changes, node, sourceFile); - } -} -function fixSingleTypeDef(changes, typeDefNode, sourceFile) { - if (!typeDefNode) +function doChange12(changes, node, sourceFile, newLine, fixAll = false) { + if (!isJSDocTypedefTag(node)) return; - const declaration = createDeclaration(typeDefNode); + const declaration = createDeclaration(node); if (!declaration) return; - const comment = typeDefNode.parent; - changes.replaceNode( - sourceFile, - comment, - declaration + const commentNode = node.parent; + const { leftSibling, rightSibling } = getLeftAndRightSiblings(node); + let pos = commentNode.getStart(); + let prefix = ""; + if (!leftSibling && commentNode.comment) { + pos = findEndOfTextBetween(commentNode, commentNode.getStart(), node.getStart()); + prefix = `${newLine} */${newLine}`; + } + if (leftSibling) { + if (fixAll && isJSDocTypedefTag(leftSibling)) { + pos = node.getStart(); + prefix = ""; + } else { + pos = findEndOfTextBetween(commentNode, leftSibling.getStart(), node.getStart()); + prefix = `${newLine} */${newLine}`; + } + } + let end = commentNode.getEnd(); + let suffix = ""; + if (rightSibling) { + if (fixAll && isJSDocTypedefTag(rightSibling)) { + end = rightSibling.getStart(); + suffix = `${newLine}${newLine}`; + } else { + end = rightSibling.getStart(); + suffix = `${newLine}/**${newLine} * `; + } + } + changes.replaceRange(sourceFile, { pos, end }, declaration, { prefix, suffix }); +} +function getLeftAndRightSiblings(typedefNode) { + const commentNode = typedefNode.parent; + const maxChildIndex = commentNode.getChildCount() - 1; + const currentNodeIndex = commentNode.getChildren().findIndex( + (n) => n.getStart() === typedefNode.getStart() && n.getEnd() === typedefNode.getEnd() ); + const leftSibling = currentNodeIndex > 0 ? commentNode.getChildAt(currentNodeIndex - 1) : void 0; + const rightSibling = currentNodeIndex < maxChildIndex ? commentNode.getChildAt(currentNodeIndex + 1) : void 0; + return { leftSibling, rightSibling }; +} +function findEndOfTextBetween(jsDocComment, from, to) { + const comment = jsDocComment.getText().substring(from - jsDocComment.getStart(), to - jsDocComment.getStart()); + for (let i = comment.length; i > 0; i--) { + if (!/[*/\s]/g.test(comment.substring(i - 1, i))) { + return from + i; + } + } + return to; } function createDeclaration(tag) { var _a; @@ -147654,10 +149796,10 @@ function createDeclaration(tag) { const typeName = (_a = tag.name) == null ? void 0 : _a.getText(); if (!typeName) return; - if (typeExpression.kind === 328 /* JSDocTypeLiteral */) { + if (typeExpression.kind === 329 /* JSDocTypeLiteral */) { return createInterfaceForTypeLiteral(typeName, typeExpression); } - if (typeExpression.kind === 315 /* JSDocTypeExpression */) { + if (typeExpression.kind === 316 /* JSDocTypeExpression */) { return createTypeAliasForTypeExpression(typeName, typeExpression); } } @@ -147665,7 +149807,7 @@ function createInterfaceForTypeLiteral(typeName, typeLiteral) { const propertySignatures = createSignatureFromTypeLiteral(typeLiteral); if (!some(propertySignatures)) return; - const interfaceDeclaration = factory.createInterfaceDeclaration( + return factory.createInterfaceDeclaration( /*modifiers*/ void 0, typeName, @@ -147675,13 +149817,12 @@ function createInterfaceForTypeLiteral(typeName, typeLiteral) { void 0, propertySignatures ); - return interfaceDeclaration; } function createTypeAliasForTypeExpression(typeName, typeExpression) { const typeReference = getSynthesizedDeepClone(typeExpression.type); if (!typeReference) return; - const declaration = factory.createTypeAliasDeclaration( + return factory.createTypeAliasDeclaration( /*modifiers*/ void 0, factory.createIdentifier(typeName), @@ -147689,7 +149830,6 @@ function createTypeAliasForTypeExpression(typeName, typeExpression) { void 0, typeReference ); - return declaration; } function createSignatureFromTypeLiteral(typeLiteral) { const propertyTags = typeLiteral.jsDocPropertyTags; @@ -147709,30 +149849,28 @@ function createSignatureFromTypeLiteral(typeLiteral) { } if (typeReference && name) { const questionToken = isOptional ? factory.createToken(58 /* QuestionToken */) : void 0; - const prop = factory.createPropertySignature( + return factory.createPropertySignature( /*modifiers*/ void 0, name, questionToken, typeReference ); - return prop; } }; - const props = mapDefined(propertyTags, getSignature); - return props; + return mapDefined(propertyTags, getSignature); } function getPropertyName(tag) { return tag.name.kind === 80 /* Identifier */ ? tag.name.text : tag.name.right.text; } -function getJSDocTypedefNode(node) { +function getJSDocTypedefNodes(node) { if (hasJSDocNodes(node)) { - return forEach(node.jsDoc, (node2) => { + return flatMap(node.jsDoc, (doc) => { var _a; - return (_a = node2.tags) == null ? void 0 : _a.find(isJSDocTypedefTag); + return (_a = doc.tags) == null ? void 0 : _a.filter((tag) => isJSDocTypedefTag(tag)); }); } - return void 0; + return []; } // src/services/codefixes/convertLiteralTypeToMappedType.ts @@ -148080,8 +150218,13 @@ function createImportAdderWorker(sourceFile, program, useAutoImportProvider, pre return `${topLevelTypeOnly ? 1 : 0}|${moduleSpecifier}`; } } - function writeFixes(changeTracker) { - const quotePreference = getQuotePreference(sourceFile, preferences); + function writeFixes(changeTracker, oldFileQuotePreference) { + let quotePreference; + if (sourceFile.imports.length === 0 && oldFileQuotePreference !== void 0) { + quotePreference = oldFileQuotePreference; + } else { + quotePreference = getQuotePreference(sourceFile, preferences); + } for (const fix of addToNamespace) { addNamespaceQualifier(changeTracker, sourceFile, fix); } @@ -148269,11 +150412,11 @@ function tryUseExistingNamespaceImport(existingImports, position) { function getNamespaceLikeImportText(declaration) { var _a, _b, _c; switch (declaration.kind) { - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return (_a = tryCast(declaration.name, isIdentifier)) == null ? void 0 : _a.text; - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return declaration.name.text; - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return (_c = tryCast((_b = declaration.importClause) == null ? void 0 : _b.namedBindings, isNamespaceImport)) == null ? void 0 : _c.name.text; default: return Debug.assertNever(declaration); @@ -148305,11 +150448,11 @@ function tryAddToExistingImport(existingImports, isValidTypeOnlyUseSite, checker } return best; function getAddToExistingImportFix({ declaration, importKind, symbol, targetFlags }) { - if (importKind === 3 /* CommonJS */ || importKind === 2 /* Namespace */ || declaration.kind === 270 /* ImportEqualsDeclaration */) { + if (importKind === 3 /* CommonJS */ || importKind === 2 /* Namespace */ || declaration.kind === 271 /* ImportEqualsDeclaration */) { return void 0; } - if (declaration.kind === 259 /* VariableDeclaration */) { - return (importKind === 0 /* Named */ || importKind === 1 /* Default */) && declaration.name.kind === 205 /* ObjectBindingPattern */ ? { kind: 2 /* AddToExisting */, importClauseOrBindingPattern: declaration.name, importKind, moduleSpecifier: declaration.initializer.arguments[0].text, addAsTypeOnly: 4 /* NotAllowed */ } : void 0; + if (declaration.kind === 260 /* VariableDeclaration */) { + return (importKind === 0 /* Named */ || importKind === 1 /* Default */) && declaration.name.kind === 206 /* ObjectBindingPattern */ ? { kind: 2 /* AddToExisting */, importClauseOrBindingPattern: declaration.name, importKind, moduleSpecifier: declaration.initializer.arguments[0].text, addAsTypeOnly: 4 /* NotAllowed */ } : void 0; } const { importClause } = declaration; if (!importClause || !isStringLiteralLike(declaration.moduleSpecifier)) { @@ -148332,7 +150475,7 @@ function tryAddToExistingImport(existingImports, isValidTypeOnlyUseSite, checker addAsTypeOnly === 2 /* Required */ && namedBindings)) { return void 0; } - if (importKind === 0 /* Named */ && (namedBindings == null ? void 0 : namedBindings.kind) === 273 /* NamespaceImport */) { + if (importKind === 0 /* Named */ && (namedBindings == null ? void 0 : namedBindings.kind) === 274 /* NamespaceImport */) { return void 0; } return { @@ -148353,7 +150496,7 @@ function createExistingImportMap(checker, importingFile, compilerOptions) { if (moduleSymbol) { (importMap || (importMap = createMultiMap())).add(getSymbolId(moduleSymbol), i.parent); } - } else if (i.kind === 271 /* ImportDeclaration */ || i.kind === 270 /* ImportEqualsDeclaration */) { + } else if (i.kind === 272 /* ImportDeclaration */ || i.kind === 271 /* ImportEqualsDeclaration */) { const moduleSymbol = checker.getSymbolAtLocation(moduleSpecifier); if (moduleSymbol) { (importMap || (importMap = createMultiMap())).add(getSymbolId(moduleSymbol), i); @@ -148384,6 +150527,10 @@ function shouldUseRequire(sourceFile, program) { if (compilerOptions.configFile) { return getEmitModuleKind(compilerOptions) < 5 /* ES2015 */; } + if (sourceFile.impliedNodeFormat === 1 /* CommonJS */) + return true; + if (sourceFile.impliedNodeFormat === 99 /* ESNext */) + return false; for (const otherFile of program.getSourceFiles()) { if (otherFile === sourceFile || !isSourceFileJS(otherFile) || program.isSourceFileFromExternalLibrary(otherFile)) continue; @@ -148805,7 +150952,7 @@ function codeActionForFixWorker(changes, sourceFile, symbolName2, fix, includeSy case 4 /* PromoteTypeOnly */: { const { typeOnlyAliasDeclaration } = fix; const promotedDeclaration = promoteFromTypeOnly(changes, typeOnlyAliasDeclaration, compilerOptions, sourceFile, preferences); - return promotedDeclaration.kind === 275 /* ImportSpecifier */ ? [Diagnostics.Remove_type_from_import_of_0_from_1, symbolName2, getModuleSpecifierText(promotedDeclaration.parent.parent)] : [Diagnostics.Remove_type_from_import_declaration_from_0, getModuleSpecifierText(promotedDeclaration)]; + return promotedDeclaration.kind === 276 /* ImportSpecifier */ ? [Diagnostics.Remove_type_from_import_of_0_from_1, symbolName2, getModuleSpecifierText(promotedDeclaration.parent.parent)] : [Diagnostics.Remove_type_from_import_declaration_from_0, getModuleSpecifierText(promotedDeclaration)]; } default: return Debug.assertNever(fix, `Unexpected fix kind ${fix.kind}`); @@ -148813,12 +150960,12 @@ function codeActionForFixWorker(changes, sourceFile, symbolName2, fix, includeSy } function getModuleSpecifierText(promotedDeclaration) { var _a, _b; - return promotedDeclaration.kind === 270 /* ImportEqualsDeclaration */ ? ((_b = tryCast((_a = tryCast(promotedDeclaration.moduleReference, isExternalModuleReference)) == null ? void 0 : _a.expression, isStringLiteralLike)) == null ? void 0 : _b.text) || promotedDeclaration.moduleReference.getText() : cast(promotedDeclaration.parent.moduleSpecifier, isStringLiteral).text; + return promotedDeclaration.kind === 271 /* ImportEqualsDeclaration */ ? ((_b = tryCast((_a = tryCast(promotedDeclaration.moduleReference, isExternalModuleReference)) == null ? void 0 : _a.expression, isStringLiteralLike)) == null ? void 0 : _b.text) || promotedDeclaration.moduleReference.getText() : cast(promotedDeclaration.parent.moduleSpecifier, isStringLiteral).text; } function promoteFromTypeOnly(changes, aliasDeclaration, compilerOptions, sourceFile, preferences) { const convertExistingToTypeOnly = importNameElisionDisabled(compilerOptions); switch (aliasDeclaration.kind) { - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: if (aliasDeclaration.isTypeOnly) { const sortKind = ts_OrganizeImports_exports.detectImportSpecifierSorting(aliasDeclaration.parent.elements, preferences); if (aliasDeclaration.parent.elements.length > 1 && sortKind) { @@ -148842,13 +150989,13 @@ function promoteFromTypeOnly(changes, aliasDeclaration, compilerOptions, sourceF promoteImportClause(aliasDeclaration.parent.parent); return aliasDeclaration.parent.parent; } - case 272 /* ImportClause */: + case 273 /* ImportClause */: promoteImportClause(aliasDeclaration); return aliasDeclaration; - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: promoteImportClause(aliasDeclaration.parent); return aliasDeclaration.parent; - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: changes.deleteRange(sourceFile, aliasDeclaration.getChildAt(1)); return aliasDeclaration; default: @@ -148856,10 +151003,18 @@ function promoteFromTypeOnly(changes, aliasDeclaration, compilerOptions, sourceF } function promoteImportClause(importClause) { changes.delete(sourceFile, getTypeKeywordOfTypeOnlyImport(importClause, sourceFile)); + if (!compilerOptions.allowImportingTsExtensions) { + const moduleSpecifier = tryGetModuleSpecifierFromDeclaration(importClause.parent); + const resolvedModule = moduleSpecifier && getResolvedModule(sourceFile, moduleSpecifier.text, getModeForUsageLocation(sourceFile, moduleSpecifier)); + if (resolvedModule == null ? void 0 : resolvedModule.resolvedUsingTsExtension) { + const changedExtension = changeAnyExtension(moduleSpecifier.text, getOutputExtension(moduleSpecifier.text, compilerOptions)); + changes.replaceNode(sourceFile, moduleSpecifier, factory.createStringLiteral(changedExtension)); + } + } if (convertExistingToTypeOnly) { const namedImports = tryCast(importClause.namedBindings, isNamedImports); if (namedImports && namedImports.elements.length > 1) { - if (ts_OrganizeImports_exports.detectImportSpecifierSorting(namedImports.elements, preferences) && aliasDeclaration.kind === 275 /* ImportSpecifier */ && namedImports.elements.indexOf(aliasDeclaration) !== 0) { + if (ts_OrganizeImports_exports.detectImportSpecifierSorting(namedImports.elements, preferences) && aliasDeclaration.kind === 276 /* ImportSpecifier */ && namedImports.elements.indexOf(aliasDeclaration) !== 0) { changes.delete(sourceFile, aliasDeclaration); changes.insertImportSpecifierAtIndex(sourceFile, aliasDeclaration, namedImports, 0); } @@ -148874,7 +151029,7 @@ function promoteFromTypeOnly(changes, aliasDeclaration, compilerOptions, sourceF } function doAddExistingFix(changes, sourceFile, clause, defaultImport, namedImports, preferences) { var _a; - if (clause.kind === 205 /* ObjectBindingPattern */) { + if (clause.kind === 206 /* ObjectBindingPattern */) { if (defaultImport) { addElementToBindingPattern(clause, defaultImport.name, "default"); } @@ -149330,7 +151485,7 @@ function doAddOverrideModifierChange(changeTracker, sourceFile, pos) { const lastDecorator = findLast(modifiers, isDecorator); const modifierPos = abstractModifier ? abstractModifier.end : staticModifier ? staticModifier.end : accessibilityModifier ? accessibilityModifier.end : lastDecorator ? skipTrivia(sourceFile.text, lastDecorator.end) : classElement.getStart(sourceFile); const options = accessibilityModifier || staticModifier || abstractModifier ? { prefix: " " } : { suffix: " " }; - changeTracker.insertModifierAt(sourceFile, modifierPos, 163 /* OverrideKeyword */, options); + changeTracker.insertModifierAt(sourceFile, modifierPos, 164 /* OverrideKeyword */, options); } function doRemoveOverrideModifierChange(changeTracker, sourceFile, pos) { const classElement = findContainerClassElementLike(sourceFile, pos); @@ -149344,13 +151499,13 @@ function doRemoveOverrideModifierChange(changeTracker, sourceFile, pos) { } function isClassElementLikeHasJSDoc(node) { switch (node.kind) { - case 175 /* Constructor */: - case 171 /* PropertyDeclaration */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 176 /* Constructor */: + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return true; - case 168 /* Parameter */: + case 169 /* Parameter */: return isParameterPropertyDeclaration(node, node.parent); default: return false; @@ -149650,7 +151805,7 @@ registerCodeFix({ }); function getNamedTupleMember(sourceFile, pos) { const token = getTokenAtPosition(sourceFile, pos); - return findAncestor(token, (t) => t.kind === 201 /* NamedTupleMember */); + return findAncestor(token, (t) => t.kind === 202 /* NamedTupleMember */); } function doChange17(changes, sourceFile, namedTupleMember) { if (!namedTupleMember) { @@ -149659,10 +151814,10 @@ function doChange17(changes, sourceFile, namedTupleMember) { let unwrappedType = namedTupleMember.type; let sawOptional = false; let sawRest = false; - while (unwrappedType.kind === 189 /* OptionalType */ || unwrappedType.kind === 190 /* RestType */ || unwrappedType.kind === 195 /* ParenthesizedType */) { - if (unwrappedType.kind === 189 /* OptionalType */) { + while (unwrappedType.kind === 190 /* OptionalType */ || unwrappedType.kind === 191 /* RestType */ || unwrappedType.kind === 196 /* ParenthesizedType */) { + if (unwrappedType.kind === 190 /* OptionalType */) { sawOptional = true; - } else if (unwrappedType.kind === 190 /* RestType */) { + } else if (unwrappedType.kind === 191 /* RestType */) { sawRest = true; } unwrappedType = unwrappedType.type; @@ -149728,7 +151883,7 @@ function getInfo8(sourceFile, pos, context, errorCode) { if (isPropertyAccessExpression(parent2) && parent2.name === node) { Debug.assert(isMemberName(node), "Expected an identifier for spelling (property access)"); let containingType = checker.getTypeAtLocation(parent2.expression); - if (parent2.flags & 32 /* OptionalChain */) { + if (parent2.flags & 64 /* OptionalChain */) { containingType = checker.getNonNullableType(containingType); } suggestedSymbol = checker.getSuggestedSymbolForNonexistentProperty(node, containingType); @@ -149973,6 +152128,8 @@ function getInfo9(checker, sourceFile, position, errorCode) { if (!declaration || !isCallExpression(declaration.parent) || !declaration.body) return void 0; const pos = declaration.parent.arguments.indexOf(declaration); + if (pos === -1) + return void 0; const type = checker.getContextualTypeForArgumentAtIndex(declaration.parent, pos); if (!type) return void 0; @@ -150001,19 +152158,19 @@ function getInfo9(checker, sourceFile, position, errorCode) { } function getVariableLikeInitializer(declaration) { switch (declaration.kind) { - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 207 /* BindingElement */: - case 171 /* PropertyDeclaration */: - case 302 /* PropertyAssignment */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 208 /* BindingElement */: + case 172 /* PropertyDeclaration */: + case 303 /* PropertyAssignment */: return declaration.initializer; - case 290 /* JsxAttribute */: + case 291 /* JsxAttribute */: return declaration.initializer && (isJsxExpression(declaration.initializer) ? declaration.initializer.expression : void 0); - case 303 /* ShorthandPropertyAssignment */: - case 170 /* PropertySignature */: - case 305 /* EnumMember */: - case 354 /* JSDocPropertyTag */: - case 347 /* JSDocParameterTag */: + case 304 /* ShorthandPropertyAssignment */: + case 171 /* PropertySignature */: + case 306 /* EnumMember */: + case 355 /* JSDocPropertyTag */: + case 348 /* JSDocParameterTag */: return void 0; } } @@ -150270,7 +152427,7 @@ function createActionForAddMissingMemberInJavascriptFile(context, { parentDeclar function addMissingMemberInJs(changeTracker, sourceFile, classDeclaration, token, makeStatic) { const tokenName = token.text; if (makeStatic) { - if (classDeclaration.kind === 230 /* ClassExpression */) { + if (classDeclaration.kind === 231 /* ClassExpression */) { return; } const className = classDeclaration.name.getText(); @@ -150323,7 +152480,7 @@ function createActionsForAddMissingMemberInTypeScriptFile(context, { parentDecla } function getTypeNode2(checker, node, token) { let typeNode; - if (token.parent.parent.kind === 225 /* BinaryExpression */) { + if (token.parent.parent.kind === 226 /* BinaryExpression */) { const binaryExpression = token.parent.parent; const otherExpression = token.parent === binaryExpression.left ? binaryExpression.right : binaryExpression.left; const widenedType = checker.getWidenedType(checker.getBaseTypeOfLiteralType(checker.getTypeAtLocation(otherExpression))); @@ -150401,9 +152558,6 @@ function getActionsForMissingMethodDeclaration(context, info) { if (call === void 0) { return void 0; } - if (isPrivateIdentifier(token)) { - return void 0; - } const methodName = token.text; const addMethodDeclarationChanges = (modifierFlags2) => ts_textChanges_exports.ChangeTracker.with(context, (t) => addMethodDeclaration(context, t, call, token, modifierFlags2, parentDeclaration, declSourceFile)); const actions2 = [createCodeFixAction(fixMissingMember, addMethodDeclarationChanges(modifierFlags & 32 /* Static */), [modifierFlags & 32 /* Static */ ? Diagnostics.Declare_static_method_0 : Diagnostics.Declare_method_0, methodName], fixMissingMember, Diagnostics.Add_all_missing_members)]; @@ -150414,7 +152568,7 @@ function getActionsForMissingMethodDeclaration(context, info) { } function addMethodDeclaration(context, changes, callExpression, name, modifierFlags, parentDeclaration, sourceFile) { const importAdder = createImportAdder(sourceFile, context.program, context.preferences, context.host); - const kind = isClassLike(parentDeclaration) ? 173 /* MethodDeclaration */ : 172 /* MethodSignature */; + const kind = isClassLike(parentDeclaration) ? 174 /* MethodDeclaration */ : 173 /* MethodSignature */; const signatureDeclaration = createSignatureDeclarationFromCallExpression(kind, context, importAdder, callExpression, name, modifierFlags, parentDeclaration); const containingMethodDeclaration = tryGetContainingMethodDeclaration(parentDeclaration, callExpression); if (containingMethodDeclaration) { @@ -150443,8 +152597,8 @@ function addEnumMemberDeclaration(changes, checker, { token, parentDeclaration } function addFunctionDeclaration(changes, context, info) { const quotePreference = getQuotePreference(context.sourceFile, context.preferences); const importAdder = createImportAdder(context.sourceFile, context.program, context.preferences, context.host); - const functionDeclaration = info.kind === 2 /* Function */ ? createSignatureDeclarationFromCallExpression(261 /* FunctionDeclaration */, context, importAdder, info.call, idText(info.token), info.modifierFlags, info.parentDeclaration) : createSignatureDeclarationFromSignature( - 261 /* FunctionDeclaration */, + const functionDeclaration = info.kind === 2 /* Function */ ? createSignatureDeclarationFromCallExpression(262 /* FunctionDeclaration */, context, importAdder, info.call, idText(info.token), info.modifierFlags, info.parentDeclaration) : createSignatureDeclarationFromSignature( + 262 /* FunctionDeclaration */, context, quotePreference, info.signature, @@ -150593,7 +152747,7 @@ function tryGetValueFromType(context, checker, importAdder, quotePreference, typ if (signature === void 0) return createUndefined(); const func = createSignatureDeclarationFromSignature( - 217 /* FunctionExpression */, + 218 /* FunctionExpression */, context, quotePreference, signature[0], @@ -150976,7 +153130,7 @@ function doChange22(changes, sourceFile, arg, expression) { ); } function getSuggestion(messageText) { - const [_, suggestion] = flattenDiagnosticMessageText(messageText, "\n", 0).match(/\'(.*)\'/) || []; + const [_, suggestion] = flattenDiagnosticMessageText(messageText, "\n", 0).match(/'(.*)'/) || []; return suggestion; } @@ -150984,6 +153138,7 @@ function getSuggestion(messageText) { registerCodeFix({ errorCodes: [ Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code, + Diagnostics.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code, Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code ], getCodeActions: function getCodeActionsToFixModuleAndTarget(context) { @@ -151271,14 +153426,14 @@ registerCodeFix({ const importDeclaration = getImportDeclaration(context.sourceFile, context.program, context.span.start); if (!importDeclaration) return; - const namespaceChanges = ts_textChanges_exports.ChangeTracker.with(context, (t) => importDeclaration.kind === 275 /* ImportSpecifier */ && doNamespaceImportChange(t, context.sourceFile, importDeclaration, context.program)); + const namespaceChanges = ts_textChanges_exports.ChangeTracker.with(context, (t) => importDeclaration.kind === 276 /* ImportSpecifier */ && doNamespaceImportChange(t, context.sourceFile, importDeclaration, context.program)); const typeOnlyChanges = ts_textChanges_exports.ChangeTracker.with(context, (t) => doTypeOnlyImportChange(t, context.sourceFile, importDeclaration, context.program)); let actions2; if (namespaceChanges.length) { actions2 = append(actions2, createCodeFixActionWithoutFixAll(fixId32, namespaceChanges, Diagnostics.Convert_named_imports_to_namespace_import)); } if (typeOnlyChanges.length) { - actions2 = append(actions2, createCodeFixActionWithoutFixAll(fixId32, typeOnlyChanges, Diagnostics.Convert_to_type_only_import)); + actions2 = append(actions2, createCodeFixActionWithoutFixAll(fixId32, typeOnlyChanges, Diagnostics.Use_import_type)); } return actions2; }, @@ -151286,18 +153441,18 @@ registerCodeFix({ }); function getImportDeclaration(sourceFile, program, start2) { const identifier = tryCast(getTokenAtPosition(sourceFile, start2), isIdentifier); - if (!identifier || identifier.parent.kind !== 182 /* TypeReference */) + if (!identifier || identifier.parent.kind !== 183 /* TypeReference */) return; const checker = program.getTypeChecker(); const symbol = checker.getSymbolAtLocation(identifier); return find((symbol == null ? void 0 : symbol.declarations) || emptyArray, or(isImportClause, isImportSpecifier, isImportEqualsDeclaration)); } function doTypeOnlyImportChange(changes, sourceFile, importDeclaration, program) { - if (importDeclaration.kind === 270 /* ImportEqualsDeclaration */) { + if (importDeclaration.kind === 271 /* ImportEqualsDeclaration */) { changes.insertModifierBefore(sourceFile, 156 /* TypeKeyword */, importDeclaration.name); return; } - const importClause = importDeclaration.kind === 272 /* ImportClause */ ? importDeclaration : importDeclaration.parent.parent; + const importClause = importDeclaration.kind === 273 /* ImportClause */ ? importDeclaration : importDeclaration.parent.parent; if (importClause.name && importClause.namedBindings) { return; } @@ -151495,7 +153650,7 @@ function deleteTypeParameters(changes, sourceFile, token) { changes.delete(sourceFile, Debug.checkDefined(cast(token.parent, isDeclarationWithTypeParameterChildren).typeParameters, "The type parameter to delete should exist")); } function isImport(token) { - return token.kind === 102 /* ImportKeyword */ || token.kind === 80 /* Identifier */ && (token.parent.kind === 275 /* ImportSpecifier */ || token.parent.kind === 272 /* ImportClause */); + return token.kind === 102 /* ImportKeyword */ || token.kind === 80 /* Identifier */ && (token.parent.kind === 276 /* ImportSpecifier */ || token.parent.kind === 273 /* ImportClause */); } function tryGetFullImport(token) { return token.kind === 102 /* ImportKeyword */ ? tryCast(token.parent, isImportDeclaration) : void 0; @@ -151504,7 +153659,7 @@ function canDeleteEntireVariableStatement(sourceFile, token) { return isVariableDeclarationList(token.parent) && first(token.parent.getChildren(sourceFile)) === token; } function deleteEntireVariableStatement(changes, sourceFile, node) { - changes.delete(sourceFile, node.parent.kind === 242 /* VariableStatement */ ? node.parent : node); + changes.delete(sourceFile, node.parent.kind === 243 /* VariableStatement */ ? node.parent : node); } function deleteDestructuringElements(changes, sourceFile, node) { forEach(node.elements, (n) => changes.delete(sourceFile, n)); @@ -151546,14 +153701,14 @@ function tryPrefixDeclaration(changes, errorCode, sourceFile, token) { } function canPrefix(token) { switch (token.parent.kind) { - case 168 /* Parameter */: - case 167 /* TypeParameter */: + case 169 /* Parameter */: + case 168 /* TypeParameter */: return true; - case 259 /* VariableDeclaration */: { + case 260 /* VariableDeclaration */: { const varDecl = token.parent; switch (varDecl.parent.parent.kind) { - case 249 /* ForOfStatement */: - case 248 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 249 /* ForInStatement */: return true; } } @@ -151602,8 +153757,8 @@ function isNotProvidedArguments(parameter, checker, sourceFiles) { function mayDeleteParameter(checker, sourceFile, parameter, sourceFiles, program, cancellationToken, isFixAll) { const { parent: parent2 } = parameter; switch (parent2.kind) { - case 173 /* MethodDeclaration */: - case 175 /* Constructor */: + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: const index = parent2.parameters.indexOf(parameter); const referent = isMethodDeclaration(parent2) ? parent2.name : parent2; const entries = ts_FindAllReferences_exports.Core.getReferencedSymbolsForNode(parent2.pos, referent, program, sourceFiles, cancellationToken); @@ -151621,18 +153776,18 @@ function mayDeleteParameter(checker, sourceFile, parameter, sourceFiles, program } } return true; - case 261 /* FunctionDeclaration */: { + case 262 /* FunctionDeclaration */: { if (parent2.name && isCallbackLike(checker, sourceFile, parent2.name)) { return isLastParameter(parent2, parameter, isFixAll); } return true; } - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return isLastParameter(parent2, parameter, isFixAll); - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return false; - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return true; default: return Debug.failBadSyntaxKind(parent2); @@ -151682,7 +153837,7 @@ function doChange26(changes, sourceFile, start2, length2, errorCode) { const container = (isBlock(statement.parent) ? statement.parent : statement).parent; if (!isBlock(statement.parent) || statement === first(statement.parent.statements)) { switch (container.kind) { - case 244 /* IfStatement */: + case 245 /* IfStatement */: if (container.elseStatement) { if (isBlock(statement.parent)) { break; @@ -151691,8 +153846,8 @@ function doChange26(changes, sourceFile, start2, length2, errorCode) { } return; } - case 246 /* WhileStatement */: - case 247 /* ForStatement */: + case 247 /* WhileStatement */: + case 248 /* ForStatement */: changes.delete(sourceFile, container); return; } @@ -151760,7 +153915,7 @@ registerCodeFix({ const { typeNode, type } = info; const original = typeNode.getText(sourceFile); const actions2 = [fix(type, fixIdPlain, Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)]; - if (typeNode.kind === 320 /* JSDocNullableType */) { + if (typeNode.kind === 321 /* JSDocNullableType */) { actions2.push(fix(type, fixIdNullable, Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)); } return actions2; @@ -151778,7 +153933,7 @@ registerCodeFix({ if (!info) return; const { typeNode, type } = info; - const fixedType = typeNode.kind === 320 /* JSDocNullableType */ && fixId52 === fixIdNullable ? checker.getNullableType(type, 32768 /* Undefined */) : type; + const fixedType = typeNode.kind === 321 /* JSDocNullableType */ && fixId52 === fixIdNullable ? checker.getNullableType(type, 32768 /* Undefined */) : type; doChange28(changes, sourceFile, typeNode, fixedType, checker); }); } @@ -151799,22 +153954,22 @@ function getInfo14(sourceFile, pos, checker) { } function isTypeContainer(node) { switch (node.kind) { - case 233 /* AsExpression */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 261 /* FunctionDeclaration */: - case 176 /* GetAccessor */: - case 180 /* IndexSignature */: - case 199 /* MappedType */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 168 /* Parameter */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 177 /* SetAccessor */: - case 264 /* TypeAliasDeclaration */: - case 215 /* TypeAssertionExpression */: - case 259 /* VariableDeclaration */: + case 234 /* AsExpression */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 262 /* FunctionDeclaration */: + case 177 /* GetAccessor */: + case 181 /* IndexSignature */: + case 200 /* MappedType */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 169 /* Parameter */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 178 /* SetAccessor */: + case 265 /* TypeAliasDeclaration */: + case 216 /* TypeAssertionExpression */: + case 260 /* VariableDeclaration */: return true; default: return false; @@ -151877,6 +154032,7 @@ function getCallName(sourceFile, start2) { var fixId36 = "fixAwaitInSyncFunction"; var errorCodes46 = [ Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code, + Diagnostics.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code, Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code, Diagnostics.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code ]; @@ -151917,14 +154073,14 @@ function getNodes3(sourceFile, start2) { } let insertBefore; switch (containingFunction.kind) { - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: insertBefore = containingFunction.name; break; - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: insertBefore = findChildOfKind(containingFunction, 100 /* FunctionKeyword */, sourceFile); break; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: const kind = containingFunction.typeParameters ? 30 /* LessThanToken */ : 21 /* OpenParenToken */; insertBefore = findChildOfKind(containingFunction, kind, sourceFile) || first(containingFunction.parameters); break; @@ -152254,7 +154410,7 @@ function annotateSetAccessor(changes, importAdder, sourceFile, setAccessorDeclar function annotate(changes, importAdder, sourceFile, declaration, type, program, host) { const typeNode = getTypeNodeIfAccessible(type, declaration, program, host); if (typeNode) { - if (isInJSFile(sourceFile) && declaration.kind !== 170 /* PropertySignature */) { + if (isInJSFile(sourceFile) && declaration.kind !== 171 /* PropertySignature */) { const parent2 = isVariableDeclaration(declaration) ? tryCast(declaration.parent.parent, isVariableStatement) : declaration; if (!parent2) { return; @@ -152365,17 +154521,17 @@ function inferTypeForParametersFromUsage(func, sourceFile, program, cancellation function getFunctionReferences(containingFunction, sourceFile, program, cancellationToken) { let searchToken; switch (containingFunction.kind) { - case 175 /* Constructor */: + case 176 /* Constructor */: searchToken = findChildOfKind(containingFunction, 137 /* ConstructorKeyword */, sourceFile); break; - case 218 /* ArrowFunction */: - case 217 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 218 /* FunctionExpression */: const parent2 = containingFunction.parent; searchToken = (isVariableDeclaration(parent2) || isPropertyDeclaration(parent2)) && isIdentifier(parent2.name) ? parent2.name : containingFunction.name; break; - case 261 /* FunctionDeclaration */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 262 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: searchToken = containingFunction.name; break; } @@ -152511,44 +154667,44 @@ function inferTypeFromReferences(program, references, cancellationToken) { node = node.parent; } switch (node.parent.kind) { - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: inferTypeFromExpressionStatement(node, usage); break; - case 224 /* PostfixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: usage.isNumber = true; break; - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: inferTypeFromPrefixUnaryExpression(node.parent, usage); break; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: inferTypeFromBinaryExpression(node, node.parent, usage); break; - case 295 /* CaseClause */: - case 296 /* DefaultClause */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: inferTypeFromSwitchStatementLabel(node.parent, usage); break; - case 212 /* CallExpression */: - case 213 /* NewExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: if (node.parent.expression === node) { inferTypeFromCallExpression(node.parent, usage); } else { inferTypeFromContextualType(node, usage); } break; - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: inferTypeFromPropertyAccessExpression(node.parent, usage); break; - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: inferTypeFromPropertyElementExpression(node.parent, node, usage); break; - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: inferTypeFromPropertyAssignment(node.parent, usage); break; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: inferTypeFromPropertyDeclaration(node.parent, usage); break; - case 259 /* VariableDeclaration */: { + case 260 /* VariableDeclaration */: { const { name, initializer } = node.parent; if (node === name) { if (initializer) { @@ -152648,7 +154804,7 @@ function inferTypeFromReferences(program, references, cancellationToken) { break; case 57 /* BarBarToken */: case 61 /* QuestionQuestionToken */: - if (node === parent2.left && (node.parent.parent.kind === 259 /* VariableDeclaration */ || isAssignmentExpression( + if (node === parent2.left && (node.parent.parent.kind === 260 /* VariableDeclaration */ || isAssignmentExpression( node.parent.parent, /*excludeCompoundAssignment*/ true @@ -152676,7 +154832,7 @@ function inferTypeFromReferences(program, references, cancellationToken) { } } calculateUsageOfNode(parent2, call.return_); - if (parent2.kind === 212 /* CallExpression */) { + if (parent2.kind === 213 /* CallExpression */) { (usage.calls || (usage.calls = [])).push(call); } else { (usage.constructs || (usage.constructs = [])).push(call); @@ -153141,28 +155297,25 @@ var PreserveOptionalFlags = /* @__PURE__ */ ((PreserveOptionalFlags2) => { })(PreserveOptionalFlags || {}); function addNewNodeForMemberSymbol(symbol, enclosingDeclaration, sourceFile, context, preferences, importAdder, addClassElement, body, preserveOptional = 3 /* All */, isAmbient = false) { const declarations = symbol.getDeclarations(); - const declaration = declarations == null ? void 0 : declarations[0]; + const declaration = firstOrUndefined(declarations); const checker = context.program.getTypeChecker(); const scriptTarget = getEmitScriptTarget(context.program.getCompilerOptions()); - const kind = (declaration == null ? void 0 : declaration.kind) ?? 170 /* PropertySignature */; - const declarationName = getSynthesizedDeepClone( - getNameOfDeclaration(declaration), - /*includeTrivia*/ - false - ); + const kind = (declaration == null ? void 0 : declaration.kind) ?? 171 /* PropertySignature */; + const declarationName = createDeclarationName(symbol, declaration); const effectiveModifierFlags = declaration ? getEffectiveModifierFlags(declaration) : 0 /* None */; - let modifierFlags = effectiveModifierFlags & 4 /* Public */ ? 4 /* Public */ : effectiveModifierFlags & 16 /* Protected */ ? 16 /* Protected */ : 0 /* None */; + let modifierFlags = effectiveModifierFlags & 32 /* Static */; + modifierFlags |= effectiveModifierFlags & 4 /* Public */ ? 4 /* Public */ : effectiveModifierFlags & 16 /* Protected */ ? 16 /* Protected */ : 0 /* None */; if (declaration && isAutoAccessorPropertyDeclaration(declaration)) { modifierFlags |= 128 /* Accessor */; } const modifiers = createModifiers(); const type = checker.getWidenedType(checker.getTypeOfSymbolAtLocation(symbol, enclosingDeclaration)); const optional = !!(symbol.flags & 16777216 /* Optional */); - const ambient = !!(enclosingDeclaration.flags & 16777216 /* Ambient */) || isAmbient; + const ambient = !!(enclosingDeclaration.flags & 33554432 /* Ambient */) || isAmbient; const quotePreference = getQuotePreference(sourceFile, preferences); switch (kind) { - case 170 /* PropertySignature */: - case 171 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 172 /* PropertyDeclaration */: const flags = quotePreference === 0 /* Single */ ? 268435456 /* UseSingleQuotesForStringLiteralType */ : void 0; let typeNode = checker.typeToTypeNode(type, enclosingDeclaration, flags, getNoopSymbolTrackerWithResolver(context)); if (importAdder) { @@ -153181,8 +155334,8 @@ function addNewNodeForMemberSymbol(symbol, enclosingDeclaration, sourceFile, con void 0 )); break; - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: { + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: { Debug.assertIsDefined(declarations); let typeNode2 = checker.typeToTypeNode( type, @@ -153230,8 +155383,8 @@ function addNewNodeForMemberSymbol(symbol, enclosingDeclaration, sourceFile, con } break; } - case 172 /* MethodSignature */: - case 173 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 174 /* MethodDeclaration */: Debug.assertIsDefined(declarations); const signatures = type.isUnion() ? flatMap(type.types, (t) => t.getCallSignatures()) : type.getCallSignatures(); if (!some(signatures)) { @@ -153258,7 +155411,7 @@ function addNewNodeForMemberSymbol(symbol, enclosingDeclaration, sourceFile, con break; } function outputMethod(quotePreference2, signature, modifiers2, name, body2) { - const method = createSignatureDeclarationFromSignature(173 /* MethodDeclaration */, context, quotePreference2, signature, body2, name, modifiers2, optional && !!(preserveOptional & 1 /* Method */), enclosingDeclaration, importAdder); + const method = createSignatureDeclarationFromSignature(174 /* MethodDeclaration */, context, quotePreference2, signature, body2, name, modifiers2, optional && !!(preserveOptional & 1 /* Method */), enclosingDeclaration, importAdder); if (method) addClassElement(method); } @@ -153268,7 +155421,7 @@ function addNewNodeForMemberSymbol(symbol, enclosingDeclaration, sourceFile, con modifiers2 = combine(modifiers2, factory.createModifiersFromModifierFlags(modifierFlags)); } if (shouldAddOverrideKeyword()) { - modifiers2 = append(modifiers2, factory.createToken(163 /* OverrideKeyword */)); + modifiers2 = append(modifiers2, factory.createToken(164 /* OverrideKeyword */)); } return modifiers2 && factory.createNodeArray(modifiers2); } @@ -153299,6 +155452,19 @@ function addNewNodeForMemberSymbol(symbol, enclosingDeclaration, sourceFile, con false ); } + function createDeclarationName(symbol2, declaration2) { + if (getCheckFlags(symbol2) & 262144 /* Mapped */) { + const nameType = symbol2.links.nameType; + if (nameType && isTypeUsableAsPropertyName(nameType)) { + return factory.createIdentifier(unescapeLeadingUnderscores(getPropertyNameFromType(nameType))); + } + } + return getSynthesizedDeepClone( + getNameOfDeclaration(declaration2), + /*includeTrivia*/ + false + ); + } } function createSignatureDeclarationFromSignature(kind, context, quotePreference, signature, body, name, modifiers, optional, enclosingDeclaration, importAdder) { const program = context.program; @@ -153406,8 +155572,7 @@ function createSignatureDeclarationFromCallExpression(kind, context, importAdder instanceTypes, contextNode, scriptTarget, - /*flags*/ - void 0, + 1 /* NoTruncation */, tracker ); const modifiers = modifierFlags ? factory.createNodeArray(factory.createModifiersFromModifierFlags(modifierFlags)) : void 0; @@ -153429,7 +155594,7 @@ function createSignatureDeclarationFromCallExpression(kind, context, importAdder tracker ); switch (kind) { - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return factory.createMethodDeclaration( modifiers, asteriskToken, @@ -153441,7 +155606,7 @@ function createSignatureDeclarationFromCallExpression(kind, context, importAdder type, createStubbedMethodBody(quotePreference) ); - case 172 /* MethodSignature */: + case 173 /* MethodSignature */: return factory.createMethodSignature( modifiers, name, @@ -153451,7 +155616,8 @@ function createSignatureDeclarationFromCallExpression(kind, context, importAdder parameters, type === void 0 ? factory.createKeywordTypeNode(159 /* UnknownKeyword */) : type ); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: + Debug.assert(typeof name === "string" || isIdentifier(name), "Unexpected name"); return factory.createFunctionDeclaration( modifiers, asteriskToken, @@ -153843,7 +156009,7 @@ function getAccessorConvertiblePropertyAtPosition(file, program, start2, end, co isStatic: hasStaticModifier(declaration), isReadonly: hasEffectiveReadonlyModifier(declaration), type: getDeclarationType(declaration, program), - container: declaration.kind === 168 /* Parameter */ ? declaration.parent.parent : declaration.parent, + container: declaration.kind === 169 /* Parameter */ ? declaration.parent.parent : declaration.parent, originalName: declaration.name.text, declaration, fieldName, @@ -154017,7 +156183,7 @@ registerCodeFix({ }); function getActionsForUsageOfInvalidImport(context) { const sourceFile = context.sourceFile; - const targetKind = Diagnostics.This_expression_is_not_callable.code === context.errorCode ? 212 /* CallExpression */ : 213 /* NewExpression */; + const targetKind = Diagnostics.This_expression_is_not_callable.code === context.errorCode ? 213 /* CallExpression */ : 214 /* NewExpression */; const node = findAncestor(getTokenAtPosition(sourceFile, context.span.start), (a) => a.kind === targetKind); if (!node) { return []; @@ -154388,7 +156554,7 @@ registerCodeFix({ function getImportTypeNode(sourceFile, pos) { const token = getTokenAtPosition(sourceFile, pos); Debug.assert(token.kind === 102 /* ImportKeyword */, "This token should be an ImportKeyword"); - Debug.assert(token.parent.kind === 204 /* ImportType */, "Token parent should be an ImportType"); + Debug.assert(token.parent.kind === 205 /* ImportType */, "Token parent should be an ImportType"); return token.parent; } function doChange36(changes, sourceFile, importType) { @@ -154600,8 +156766,8 @@ registerCodeFix({ return [createCodeFixAction(fixId48, changes, Diagnostics.Split_into_two_separate_import_declarations, fixId48, Diagnostics.Split_all_invalid_type_only_imports)]; } }, - getAllCodeActions: (context) => codeFixAll(context, errorCodes60, (changes, error) => { - splitTypeOnlyImport(changes, getImportDeclaration2(context.sourceFile, error), context); + getAllCodeActions: (context) => codeFixAll(context, errorCodes60, (changes, error2) => { + splitTypeOnlyImport(changes, getImportDeclaration2(context.sourceFile, error2), context); }) }); function getImportDeclaration2(sourceFile, span) { @@ -154844,6 +157010,7 @@ var CompletionSource = /* @__PURE__ */ ((CompletionSource2) => { CompletionSource2["TypeOnlyAlias"] = "TypeOnlyAlias/"; CompletionSource2["ObjectLiteralMethodSnippet"] = "ObjectLiteralMethodSnippet/"; CompletionSource2["SwitchCases"] = "SwitchCases/"; + CompletionSource2["ObjectLiteralMemberWithComma"] = "ObjectLiteralMemberWithComma/"; return CompletionSource2; })(CompletionSource || {}); var SymbolOriginInfoKind = /* @__PURE__ */ ((SymbolOriginInfoKind2) => { @@ -155614,14 +157781,14 @@ function getExhaustiveCaseSnippets(caseBlock, sourceFile, preferences, options, } function typeNodeToExpression(typeNode, languageVersion, quotePreference) { switch (typeNode.kind) { - case 182 /* TypeReference */: + case 183 /* TypeReference */: const typeName = typeNode.typeName; return entityNameToExpression(typeName, languageVersion, quotePreference); - case 198 /* IndexedAccessType */: + case 199 /* IndexedAccessType */: const objectExpression = typeNodeToExpression(typeNode.objectType, languageVersion, quotePreference); const indexExpression = typeNodeToExpression(typeNode.indexType, languageVersion, quotePreference); return objectExpression && indexExpression && factory.createElementAccessExpression(objectExpression, indexExpression); - case 200 /* LiteralType */: + case 201 /* LiteralType */: const literal = typeNode.literal; switch (literal.kind) { case 11 /* StringLiteral */: @@ -155630,12 +157797,12 @@ function typeNodeToExpression(typeNode, languageVersion, quotePreference) { return factory.createNumericLiteral(literal.text, literal.numericLiteralFlags); } return void 0; - case 195 /* ParenthesizedType */: + case 196 /* ParenthesizedType */: const exp = typeNodeToExpression(typeNode.type, languageVersion, quotePreference); return exp && (isIdentifier(exp) ? exp : factory.createParenthesizedExpression(exp)); - case 185 /* TypeQuery */: + case 186 /* TypeQuery */: return entityNameToExpression(typeNode.exprName, languageVersion, quotePreference); - case 204 /* ImportType */: + case 205 /* ImportType */: Debug.fail(`We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.`); } return void 0; @@ -155670,12 +157837,12 @@ function isMemberCompletionKind(kind) { function getJsxClosingTagCompletion(location, sourceFile) { const jsxClosingElement = findAncestor(location, (node) => { switch (node.kind) { - case 286 /* JsxClosingElement */: + case 287 /* JsxClosingElement */: return true; case 44 /* SlashToken */: case 32 /* GreaterThanToken */: case 80 /* Identifier */: - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return false; default: return "quit"; @@ -155722,7 +157889,9 @@ function createCompletionEntryForLiteral(sourceFile, preferences, literal) { return { name: completionNameForLiteral(sourceFile, preferences, literal), kind: "string" /* string */, kindModifiers: "" /* none */, sortText: SortText.LocationPriority }; } function createCompletionEntry(symbol, sortText, replacementToken, contextToken, location, position, sourceFile, host, program, name, needsConvertPropertyAccess, origin, recommendedCompletion, propertyAccessToConvert, isJsxInitializer, importStatementCompletion, useSemicolons, options, preferences, completionKind, formatContext, isJsxIdentifierExpected, isRightOfOpenTag, includeSymbol) { + var _a, _b; let insertText; + let filterText; let replacementSpan = getReplacementSpanForContextToken(replacementToken); let data; let isSnippet; @@ -155779,13 +157948,23 @@ function createCompletionEntry(symbol, sortText, replacementToken, contextToken, if ((origin == null ? void 0 : origin.kind) === 64 /* TypeOnlyAlias */) { hasAction = true; } + if (completionKind === 0 /* ObjectPropertyDeclaration */ && contextToken && ((_a = findPrecedingToken(contextToken.pos, sourceFile, contextToken)) == null ? void 0 : _a.kind) !== 28 /* CommaToken */) { + if (isMethodDeclaration(contextToken.parent.parent) || isGetAccessorDeclaration(contextToken.parent.parent) || isSetAccessorDeclaration(contextToken.parent.parent) || isSpreadAssignment(contextToken.parent) || ((_b = findAncestor(contextToken.parent, isPropertyAssignment)) == null ? void 0 : _b.getLastToken(sourceFile)) === contextToken || isShorthandPropertyAssignment(contextToken.parent) && getLineAndCharacterOfPosition(sourceFile, contextToken.getEnd()).line !== getLineAndCharacterOfPosition(sourceFile, position).line) { + source = "ObjectLiteralMemberWithComma/" /* ObjectLiteralMemberWithComma */; + hasAction = true; + } + } if (preferences.includeCompletionsWithClassMemberSnippets && preferences.includeCompletionsWithInsertText && completionKind === 3 /* MemberLike */ && isClassLikeMemberCompletion(symbol, location, sourceFile)) { let importAdder; - ({ insertText, isSnippet, importAdder, replacementSpan } = getEntryForMemberCompletion(host, program, options, preferences, name, symbol, location, position, contextToken, formatContext)); - sortText = SortText.ClassMemberSnippets; - if (importAdder == null ? void 0 : importAdder.hasFixes()) { - hasAction = true; - source = "ClassMemberSnippet/" /* ClassMemberSnippet */; + const memberCompletionEntry = getEntryForMemberCompletion(host, program, options, preferences, name, symbol, location, position, contextToken, formatContext); + if (memberCompletionEntry) { + ({ insertText, filterText, isSnippet, importAdder } = memberCompletionEntry); + if (importAdder == null ? void 0 : importAdder.hasFixes()) { + hasAction = true; + source = "ClassMemberSnippet/" /* ClassMemberSnippet */; + } + } else { + return void 0; } } if (origin && originIsObjectLiteralMethod(origin)) { @@ -155820,6 +157999,13 @@ function createCompletionEntry(symbol, sortText, replacementToken, contextToken, data = originToCompletionEntryData(origin); hasAction = !importStatementCompletion; } + const parentNamedImportOrExport = findAncestor(location, isNamedImportsOrExports); + if ((parentNamedImportOrExport == null ? void 0 : parentNamedImportOrExport.kind) === 275 /* NamedImports */) { + const possibleToken = stringToToken(name); + if (parentNamedImportOrExport && possibleToken && (possibleToken === 135 /* AwaitKeyword */ || isNonContextualKeyword(possibleToken))) { + insertText = `${name} as ${name}_`; + } + } return { name, kind: ts_SymbolDisplay_exports.getSymbolKind(typeChecker, symbol, location), @@ -155829,6 +158015,7 @@ function createCompletionEntry(symbol, sortText, replacementToken, contextToken, hasAction: hasAction ? true : void 0, isRecommended: isRecommendedCompletionMatch(symbol, recommendedCompletion, typeChecker) || void 0, insertText, + filterText, replacementSpan, sourceDisplay, labelDetails, @@ -155849,11 +158036,11 @@ function isClassLikeMemberCompletion(symbol, location, sourceFile) { function getEntryForMemberCompletion(host, program, options, preferences, name, symbol, location, position, contextToken, formatContext) { const classLikeDeclaration = findAncestor(location, isClassLike); if (!classLikeDeclaration) { - return { insertText: name }; + return void 0; } let isSnippet; - let replacementSpan; let insertText = name; + const filterText = name; const checker = program.getTypeChecker(); const sourceFile = location.getSourceFile(); const printer = createSnippetPrinter({ @@ -155882,9 +158069,9 @@ function getEntryForMemberCompletion(host, program, options, preferences, name, ); } let modifiers = 0 /* None */; - const { modifiers: presentModifiers, span: modifiersSpan } = getPresentModifiers(contextToken, sourceFile, position); - const isAbstract = !!(presentModifiers & 256 /* Abstract */); - const completionNodes = []; + const { modifiers: presentModifiers, range: eraseRange, decorators: presentDecorators } = getPresentModifiers(contextToken, sourceFile, position); + const isAbstract = presentModifiers & 256 /* Abstract */ && classLikeDeclaration.modifierFlagsCache & 256 /* Abstract */; + let completionNodes = []; ts_codefix_exports.addNewNodeForMemberSymbol( symbol, classLikeDeclaration, @@ -155908,18 +158095,42 @@ function getEntryForMemberCompletion(host, program, options, preferences, name, requiredModifiers |= 16384 /* Override */; } if (!completionNodes.length) { - modifiers = node.modifierFlagsCache | requiredModifiers | presentModifiers; + modifiers = node.modifierFlagsCache | requiredModifiers; } node = factory.updateModifiers(node, modifiers); completionNodes.push(node); }, body, ts_codefix_exports.PreserveOptionalFlags.Property, - isAbstract + !!isAbstract ); if (completionNodes.length) { + const isMethod = symbol.flags & 8192 /* Method */; + let allowedModifiers = modifiers | 16384 /* Override */ | 4 /* Public */; + if (!isMethod) { + allowedModifiers |= 2 /* Ambient */ | 64 /* Readonly */; + } else { + allowedModifiers |= 512 /* Async */; + } + const allowedAndPresent = presentModifiers & allowedModifiers; + if (presentModifiers & ~allowedModifiers) { + return void 0; + } + if (modifiers & 16 /* Protected */ && allowedAndPresent & 4 /* Public */) { + modifiers &= ~16 /* Protected */; + } + if (allowedAndPresent !== 0 /* None */ && !(allowedAndPresent & 4 /* Public */)) { + modifiers &= ~4 /* Public */; + } + modifiers |= allowedAndPresent; + completionNodes = completionNodes.map((node) => factory.updateModifiers(node, modifiers)); + if (presentDecorators == null ? void 0 : presentDecorators.length) { + const lastNode = completionNodes[completionNodes.length - 1]; + if (canHaveDecorators(lastNode)) { + completionNodes[completionNodes.length - 1] = factory.updateModifierLike(lastNode, presentDecorators.concat(getModifiers(lastNode) || [])); + } + } const format = 1 /* MultiLine */ | 131072 /* NoTrailingNewLine */; - replacementSpan = modifiersSpan; if (formatContext) { insertText = printer.printAndFormatSnippetList( format, @@ -155935,24 +158146,29 @@ function getEntryForMemberCompletion(host, program, options, preferences, name, ); } } - return { insertText, isSnippet, importAdder, replacementSpan }; + return { insertText, filterText, isSnippet, importAdder, eraseRange }; } function getPresentModifiers(contextToken, sourceFile, position) { if (!contextToken || getLineAndCharacterOfPosition(sourceFile, position).line > getLineAndCharacterOfPosition(sourceFile, contextToken.getEnd()).line) { return { modifiers: 0 /* None */ }; } let modifiers = 0 /* None */; - let span; + let decorators; let contextMod; - if (contextMod = isModifierLike2(contextToken)) { - modifiers |= modifierToFlag(contextMod); - span = createTextSpanFromNode(contextToken); - } - if (isPropertyDeclaration(contextToken.parent)) { + const range = { pos: position, end: position }; + if (isPropertyDeclaration(contextToken.parent) && contextToken.parent.modifiers) { modifiers |= modifiersToFlags(contextToken.parent.modifiers) & 126975 /* Modifier */; - span = createTextSpanFromNode(contextToken.parent); + decorators = contextToken.parent.modifiers.filter(isDecorator) || []; + range.pos = Math.min(range.pos, contextToken.parent.modifiers.pos); + } + if (contextMod = isModifierLike2(contextToken)) { + const contextModifierFlag = modifierToFlag(contextMod); + if (!(modifiers & contextModifierFlag)) { + modifiers |= contextModifierFlag; + range.pos = Math.min(range.pos, contextToken.pos); + } } - return { modifiers, span }; + return { modifiers, decorators, range: range.pos !== position ? range : void 0 }; } function isModifierLike2(node) { if (isModifier(node)) { @@ -156029,10 +158245,10 @@ function createObjectLiteralMethod(symbol, enclosingDeclaration, sourceFile, pro const quotePreference = getQuotePreference(sourceFile, preferences); const builderFlags = 33554432 /* OmitThisParameter */ | (quotePreference === 0 /* Single */ ? 268435456 /* UseSingleQuotesForStringLiteralType */ : 0 /* None */); switch (declaration.kind) { - case 170 /* PropertySignature */: - case 171 /* PropertyDeclaration */: - case 172 /* MethodSignature */: - case 173 /* MethodDeclaration */: { + case 171 /* PropertySignature */: + case 172 /* PropertyDeclaration */: + case 173 /* MethodSignature */: + case 174 /* MethodDeclaration */: { let effectiveType = type.flags & 1048576 /* Union */ && type.types.length < 10 ? checker.getUnionType(type.types, 2 /* Subtype */) : type; if (effectiveType.flags & 1048576 /* Union */) { const functionTypes = filter(effectiveType.types, (type2) => checker.getSignaturesOfType(type2, 0 /* Call */).length > 0); @@ -156475,7 +158691,7 @@ function getSymbolCompletionFromEntryId(program, log, sourceFile, position, entr return firstDefined(symbols, (symbol, index) => { const origin = symbolToOriginInfoMap[index]; const info = getCompletionEntryDisplayNameForSymbol(symbol, getEmitScriptTarget(compilerOptions), origin, completionKind, completionData.isJsxIdentifierExpected); - return info && info.name === entryId.name && (entryId.source === "ClassMemberSnippet/" /* ClassMemberSnippet */ && symbol.flags & 106500 /* ClassMember */ || entryId.source === "ObjectLiteralMethodSnippet/" /* ObjectLiteralMethodSnippet */ && symbol.flags & (4 /* Property */ | 8192 /* Method */) || getSourceFromOrigin(origin) === entryId.source) ? { type: "symbol", symbol, location, origin, contextToken, previousToken, isJsxInitializer, isTypeOnlyLocation } : void 0; + return info && info.name === entryId.name && (entryId.source === "ClassMemberSnippet/" /* ClassMemberSnippet */ && symbol.flags & 106500 /* ClassMember */ || entryId.source === "ObjectLiteralMethodSnippet/" /* ObjectLiteralMethodSnippet */ && symbol.flags & (4 /* Property */ | 8192 /* Method */) || getSourceFromOrigin(origin) === entryId.source || entryId.source === "ObjectLiteralMemberWithComma/" /* ObjectLiteralMemberWithComma */) ? { type: "symbol", symbol, location, origin, contextToken, previousToken, isJsxInitializer, isTypeOnlyLocation } : void 0; }) || { type: "none" }; } function getCompletionEntryDetails(program, log, sourceFile, position, entryId, host, formatContext, preferences, cancellationToken) { @@ -156570,12 +158786,12 @@ function createCompletionDetails(name, kindModifiers, kind, displayParts, docume } function getCompletionEntryCodeActionsAndSourceDisplay(name, location, contextToken, origin, symbol, program, host, compilerOptions, sourceFile, position, previousToken, formatContext, preferences, data, source, cancellationToken) { if (data == null ? void 0 : data.moduleSpecifier) { - if (previousToken && getImportStatementCompletionInfo(contextToken || previousToken).replacementSpan) { + if (previousToken && getImportStatementCompletionInfo(contextToken || previousToken, sourceFile).replacementSpan) { return { codeActions: void 0, sourceDisplay: [textPart(data.moduleSpecifier)] }; } } if (source === "ClassMemberSnippet/" /* ClassMemberSnippet */) { - const { importAdder } = getEntryForMemberCompletion( + const { importAdder, eraseRange } = getEntryForMemberCompletion( host, program, compilerOptions, @@ -156587,10 +158803,17 @@ function getCompletionEntryCodeActionsAndSourceDisplay(name, location, contextTo contextToken, formatContext ); - if (importAdder) { + if (importAdder || eraseRange) { const changes = ts_textChanges_exports.ChangeTracker.with( { host, formatContext, preferences }, - importAdder.writeFixes + (tracker) => { + if (importAdder) { + importAdder.writeFixes(tracker); + } + if (eraseRange) { + tracker.deleteRange(sourceFile, eraseRange); + } + } ); return { sourceDisplay: void 0, @@ -156613,6 +158836,21 @@ function getCompletionEntryCodeActionsAndSourceDisplay(name, location, contextTo Debug.assertIsDefined(codeAction2, "Expected to have a code action for promoting type-only alias"); return { codeActions: [codeAction2], sourceDisplay: void 0 }; } + if (source === "ObjectLiteralMemberWithComma/" /* ObjectLiteralMemberWithComma */ && contextToken) { + const changes = ts_textChanges_exports.ChangeTracker.with( + { host, formatContext, preferences }, + (tracker) => tracker.insertText(sourceFile, contextToken.end, ",") + ); + if (changes) { + return { + sourceDisplay: void 0, + codeActions: [{ + changes, + description: diagnosticToString([Diagnostics.Add_missing_comma_for_object_member_completion_0, name]) + }] + }; + } + } if (!origin || !(originIsExport(origin) || originIsResolvedExport(origin))) { return { codeActions: void 0, sourceDisplay: void 0 }; } @@ -156663,11 +158901,11 @@ function getContextualType(previousToken, position, sourceFile, checker) { return getContextualTypeFromParent(previousToken, checker); case 64 /* EqualsToken */: switch (parent2.kind) { - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return checker.getContextualType(parent2.initializer); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return checker.getTypeAtLocation(parent2.left); - case 290 /* JsxAttribute */: + case 291 /* JsxAttribute */: return checker.getContextualTypeForJsxAttribute(parent2); default: return void 0; @@ -156705,7 +158943,7 @@ function getFirstSymbolInChain(symbol, enclosingDeclaration, checker) { } function isModuleSymbol(symbol) { var _a; - return !!((_a = symbol.declarations) == null ? void 0 : _a.some((d) => d.kind === 311 /* SourceFile */)); + return !!((_a = symbol.declarations) == null ? void 0 : _a.some((d) => d.kind === 312 /* SourceFile */)); } function getCompletionData(program, log, sourceFile, compilerOptions, position, preferences, detailsEntryId, host, formatContext, cancellationToken) { const typeChecker = program.getTypeChecker(); @@ -156724,7 +158962,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, return { kind: 1 /* JsDocTagName */ }; } else { const lineStart = getLineStartPositionForPosition(position, sourceFile); - if (!/[^\*|\s(/)]/.test(sourceFile.text.substring(lineStart, position))) { + if (!/[^*|\s(/)]/.test(sourceFile.text.substring(lineStart, position))) { return { kind: 2 /* JsDocTag */ }; } } @@ -156737,7 +158975,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, const typeExpression = tryGetTypeExpressionFromTag(tag); if (typeExpression) { currentToken = getTokenAtPosition(sourceFile, position); - if (!currentToken || !isDeclarationName(currentToken) && (currentToken.parent.kind !== 354 /* JSDocPropertyTag */ || currentToken.parent.name !== currentToken)) { + if (!currentToken || !isDeclarationName(currentToken) && (currentToken.parent.kind !== 355 /* JSDocPropertyTag */ || currentToken.parent.name !== currentToken)) { insideJsDocTagTypeExpression = isCurrentlyEditingNode(typeExpression); } } @@ -156770,7 +159008,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, let isNewIdentifierLocation = false; let flags = 0 /* None */; if (contextToken) { - const importStatementCompletionInfo = getImportStatementCompletionInfo(contextToken); + const importStatementCompletionInfo = getImportStatementCompletionInfo(contextToken, sourceFile); if (importStatementCompletionInfo.keywordCompletion) { if (importStatementCompletionInfo.isKeywordOnlyCompletion) { return { @@ -156795,7 +159033,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, isRightOfDot = contextToken.kind === 25 /* DotToken */; isRightOfQuestionDot = contextToken.kind === 29 /* QuestionDotToken */; switch (parent2.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: propertyAccessToConvert = parent2; node = propertyAccessToConvert.expression; const leftmostAccessExpression = getLeftmostAccessExpression(propertyAccessToConvert); @@ -156803,16 +159041,16 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, return void 0; } break; - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: node = parent2.left; break; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: node = parent2.name; break; - case 204 /* ImportType */: + case 205 /* ImportType */: node = parent2; break; - case 235 /* MetaProperty */: + case 236 /* MetaProperty */: node = parent2.getFirstToken(sourceFile); Debug.assert(node.kind === 102 /* ImportKeyword */ || node.kind === 105 /* NewKeyword */); break; @@ -156820,51 +159058,51 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, return void 0; } } else if (!importStatementCompletion) { - if (parent2 && parent2.kind === 210 /* PropertyAccessExpression */) { + if (parent2 && parent2.kind === 211 /* PropertyAccessExpression */) { contextToken = parent2; parent2 = parent2.parent; } if (currentToken.parent === location) { switch (currentToken.kind) { case 32 /* GreaterThanToken */: - if (currentToken.parent.kind === 283 /* JsxElement */ || currentToken.parent.kind === 285 /* JsxOpeningElement */) { + if (currentToken.parent.kind === 284 /* JsxElement */ || currentToken.parent.kind === 286 /* JsxOpeningElement */) { location = currentToken; } break; case 44 /* SlashToken */: - if (currentToken.parent.kind === 284 /* JsxSelfClosingElement */) { + if (currentToken.parent.kind === 285 /* JsxSelfClosingElement */) { location = currentToken; } break; } } switch (parent2.kind) { - case 286 /* JsxClosingElement */: + case 287 /* JsxClosingElement */: if (contextToken.kind === 44 /* SlashToken */) { isStartingCloseTag = true; location = contextToken; } break; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: if (!binaryExpressionMayBeOpenTag(parent2)) { break; } - case 284 /* JsxSelfClosingElement */: - case 283 /* JsxElement */: - case 285 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: + case 284 /* JsxElement */: + case 286 /* JsxOpeningElement */: isJsxIdentifierExpected = true; if (contextToken.kind === 30 /* LessThanToken */) { isRightOfOpenTag = true; location = contextToken; } break; - case 293 /* JsxExpression */: - case 292 /* JsxSpreadAttribute */: - if (previousToken.kind === 20 /* CloseBraceToken */ || previousToken.kind === 80 /* Identifier */ && previousToken.parent.kind === 290 /* JsxAttribute */) { + case 294 /* JsxExpression */: + case 293 /* JsxSpreadAttribute */: + if (previousToken.kind === 20 /* CloseBraceToken */ || previousToken.kind === 80 /* Identifier */ && previousToken.parent.kind === 291 /* JsxAttribute */) { isJsxIdentifierExpected = true; } break; - case 290 /* JsxAttribute */: + case 291 /* JsxAttribute */: if (parent2.initializer === previousToken && previousToken.end < position) { isJsxIdentifierExpected = true; break; @@ -156952,15 +159190,15 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, }; function isTagWithTypeExpression(tag) { switch (tag.kind) { - case 347 /* JSDocParameterTag */: - case 354 /* JSDocPropertyTag */: - case 348 /* JSDocReturnTag */: - case 350 /* JSDocTypeTag */: - case 352 /* JSDocTypedefTag */: - case 355 /* JSDocThrowsTag */: - case 356 /* JSDocSatisfiesTag */: + case 348 /* JSDocParameterTag */: + case 355 /* JSDocPropertyTag */: + case 349 /* JSDocReturnTag */: + case 351 /* JSDocTypeTag */: + case 353 /* JSDocTypedefTag */: + case 356 /* JSDocThrowsTag */: + case 357 /* JSDocSatisfiesTag */: return true; - case 351 /* JSDocTemplateTag */: + case 352 /* JSDocTemplateTag */: return !!tag.constraint; default: return false; @@ -156969,7 +159207,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, function tryGetTypeExpressionFromTag(tag) { if (isTagWithTypeExpression(tag)) { const typeExpression = isJSDocTemplateTag(tag) ? tag.constraint : tag.typeExpression; - return typeExpression && typeExpression.kind === 315 /* JSDocTypeExpression */ ? typeExpression : void 0; + return typeExpression && typeExpression.kind === 316 /* JSDocTypeExpression */ ? typeExpression : void 0; } if (isJSDocAugmentsTag(tag) || isJSDocImplementsTag(tag)) { return tag.class; @@ -157005,7 +159243,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, symbols.push(exportedSymbol); } } - if (!isTypeLocation && !insideJsDocTagTypeExpression && symbol.declarations && symbol.declarations.some((d) => d.kind !== 311 /* SourceFile */ && d.kind !== 266 /* ModuleDeclaration */ && d.kind !== 265 /* EnumDeclaration */)) { + if (!isTypeLocation && !insideJsDocTagTypeExpression && symbol.declarations && symbol.declarations.some((d) => d.kind !== 312 /* SourceFile */ && d.kind !== 267 /* ModuleDeclaration */ && d.kind !== 266 /* EnumDeclaration */)) { let type = typeChecker.getTypeOfSymbolAtLocation(symbol, node).getNonOptionalType(); let insertQuestionDot = false; if (type.isNullableType()) { @@ -157017,30 +159255,40 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, } } } - addTypeProperties(type, !!(node.flags & 32768 /* AwaitContext */), insertQuestionDot); + addTypeProperties(type, !!(node.flags & 65536 /* AwaitContext */), insertQuestionDot); } return; } } } - if (!isTypeLocation) { + if (!isTypeLocation || isInTypeQuery(node)) { typeChecker.tryGetThisTypeAt( node, /*includeGlobalThis*/ false ); let type = typeChecker.getTypeAtLocation(node).getNonOptionalType(); - let insertQuestionDot = false; - if (type.isNullableType()) { - const canCorrectToQuestionDot = isRightOfDot && !isRightOfQuestionDot && preferences.includeAutomaticOptionalChainCompletions !== false; - if (canCorrectToQuestionDot || isRightOfQuestionDot) { - type = type.getNonNullableType(); - if (canCorrectToQuestionDot) { - insertQuestionDot = true; + if (!isTypeLocation) { + let insertQuestionDot = false; + if (type.isNullableType()) { + const canCorrectToQuestionDot = isRightOfDot && !isRightOfQuestionDot && preferences.includeAutomaticOptionalChainCompletions !== false; + if (canCorrectToQuestionDot || isRightOfQuestionDot) { + type = type.getNonNullableType(); + if (canCorrectToQuestionDot) { + insertQuestionDot = true; + } } } + addTypeProperties(type, !!(node.flags & 65536 /* AwaitContext */), insertQuestionDot); + } else { + addTypeProperties( + type.getNonNullableType(), + /*insertAwait*/ + false, + /*insertQuestionDot*/ + false + ); } - addTypeProperties(type, !!(node.flags & 32768 /* AwaitContext */), insertQuestionDot); } } function addTypeProperties(type, insertAwait, insertQuestionDot) { @@ -157048,7 +159296,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, if (isRightOfQuestionDot && some(type.getCallSignatures())) { isNewIdentifierLocation = true; } - const propertyAccess = node.kind === 204 /* ImportType */ ? node : node.parent; + const propertyAccess = node.kind === 205 /* ImportType */ ? node : node.parent; if (inCheckedFile) { for (const symbol of type.getApparentProperties()) { if (typeChecker.isValidPropertyAccessForCompletions(propertyAccess, type, symbol)) { @@ -157086,7 +159334,8 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, const leftMostName = getLeftMostName(computedPropertyName.expression); const nameSymbol = leftMostName && typeChecker.getSymbolAtLocation(leftMostName); const firstAccessibleSymbol = nameSymbol && getFirstSymbolInChain(nameSymbol, contextToken, typeChecker); - if (firstAccessibleSymbol && addToSeen(seenPropertySymbols, getSymbolId(firstAccessibleSymbol))) { + const firstAccessibleSymbolId = firstAccessibleSymbol && getSymbolId(firstAccessibleSymbol); + if (firstAccessibleSymbolId && addToSeen(seenPropertySymbols, firstAccessibleSymbolId)) { const index = symbols.length; symbols.push(firstAccessibleSymbol); const moduleSymbol = firstAccessibleSymbol.parent; @@ -157116,6 +159365,9 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, } } } else if (preferences.includeCompletionsWithInsertText) { + if (firstAccessibleSymbolId && seenPropertySymbols.has(firstAccessibleSymbolId)) { + return; + } addSymbolOriginInfo(symbol); addSymbolSortInfo(symbol); symbols.push(symbol); @@ -157204,7 +159456,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, } } } - if (preferences.includeCompletionsWithInsertText && scopeNode.kind !== 311 /* SourceFile */) { + if (preferences.includeCompletionsWithInsertText && scopeNode.kind !== 312 /* SourceFile */) { const thisType = typeChecker.tryGetThisTypeAt( scopeNode, /*includeGlobalThis*/ @@ -157239,10 +159491,10 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, } function isSnippetScope(scopeNode) { switch (scopeNode.kind) { - case 311 /* SourceFile */: - case 227 /* TemplateExpression */: - case 293 /* JsxExpression */: - case 240 /* Block */: + case 312 /* SourceFile */: + case 228 /* TemplateExpression */: + case 294 /* JsxExpression */: + case 241 /* Block */: return true; default: return isStatement(scopeNode); @@ -157252,24 +159504,24 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, return insideJsDocTagTypeExpression || !!importStatementCompletion && isTypeOnlyImportOrExportDeclaration(location.parent) || !isContextTokenValueLocation(contextToken) && (isPossiblyTypeArgumentPosition(contextToken, sourceFile, typeChecker) || isPartOfTypeNode(location) || isContextTokenTypeLocation(contextToken)); } function isContextTokenValueLocation(contextToken2) { - return contextToken2 && (contextToken2.kind === 114 /* TypeOfKeyword */ && (contextToken2.parent.kind === 185 /* TypeQuery */ || isTypeOfExpression(contextToken2.parent)) || contextToken2.kind === 131 /* AssertsKeyword */ && contextToken2.parent.kind === 181 /* TypePredicate */); + return contextToken2 && (contextToken2.kind === 114 /* TypeOfKeyword */ && (contextToken2.parent.kind === 186 /* TypeQuery */ || isTypeOfExpression(contextToken2.parent)) || contextToken2.kind === 131 /* AssertsKeyword */ && contextToken2.parent.kind === 182 /* TypePredicate */); } function isContextTokenTypeLocation(contextToken2) { if (contextToken2) { const parentKind = contextToken2.parent.kind; switch (contextToken2.kind) { case 59 /* ColonToken */: - return parentKind === 171 /* PropertyDeclaration */ || parentKind === 170 /* PropertySignature */ || parentKind === 168 /* Parameter */ || parentKind === 259 /* VariableDeclaration */ || isFunctionLikeKind(parentKind); + return parentKind === 172 /* PropertyDeclaration */ || parentKind === 171 /* PropertySignature */ || parentKind === 169 /* Parameter */ || parentKind === 260 /* VariableDeclaration */ || isFunctionLikeKind(parentKind); case 64 /* EqualsToken */: - return parentKind === 264 /* TypeAliasDeclaration */; + return parentKind === 265 /* TypeAliasDeclaration */; case 130 /* AsKeyword */: - return parentKind === 233 /* AsExpression */; + return parentKind === 234 /* AsExpression */; case 30 /* LessThanToken */: - return parentKind === 182 /* TypeReference */ || parentKind === 215 /* TypeAssertionExpression */; + return parentKind === 183 /* TypeReference */ || parentKind === 216 /* TypeAssertionExpression */; case 96 /* ExtendsKeyword */: - return parentKind === 167 /* TypeParameter */; + return parentKind === 168 /* TypeParameter */; case 152 /* SatisfiesKeyword */: - return parentKind === 237 /* SatisfiesExpression */; + return parentKind === 238 /* SatisfiesExpression */; } } return false; @@ -157447,14 +159699,14 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, return true; } if (contextToken2.kind === 32 /* GreaterThanToken */ && contextToken2.parent) { - if (location === contextToken2.parent && (location.kind === 285 /* JsxOpeningElement */ || location.kind === 284 /* JsxSelfClosingElement */)) { + if (location === contextToken2.parent && (location.kind === 286 /* JsxOpeningElement */ || location.kind === 285 /* JsxSelfClosingElement */)) { return false; } - if (contextToken2.parent.kind === 285 /* JsxOpeningElement */) { - return location.parent.kind !== 285 /* JsxOpeningElement */; + if (contextToken2.parent.kind === 286 /* JsxOpeningElement */) { + return location.parent.kind !== 286 /* JsxOpeningElement */; } - if (contextToken2.parent.kind === 286 /* JsxClosingElement */ || contextToken2.parent.kind === 284 /* JsxSelfClosingElement */) { - return !!contextToken2.parent.parent && contextToken2.parent.parent.kind === 283 /* JsxElement */; + if (contextToken2.parent.kind === 287 /* JsxClosingElement */ || contextToken2.parent.kind === 285 /* JsxSelfClosingElement */) { + return !!contextToken2.parent.parent && contextToken2.parent.parent.kind === 284 /* JsxElement */; } } return false; @@ -157465,29 +159717,29 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, const tokenKind = keywordForNode(contextToken); switch (tokenKind) { case 28 /* CommaToken */: - return containingNodeKind === 212 /* CallExpression */ || containingNodeKind === 175 /* Constructor */ || containingNodeKind === 213 /* NewExpression */ || containingNodeKind === 208 /* ArrayLiteralExpression */ || containingNodeKind === 225 /* BinaryExpression */ || containingNodeKind === 183 /* FunctionType */ || containingNodeKind === 209 /* ObjectLiteralExpression */; + return containingNodeKind === 213 /* CallExpression */ || containingNodeKind === 176 /* Constructor */ || containingNodeKind === 214 /* NewExpression */ || containingNodeKind === 209 /* ArrayLiteralExpression */ || containingNodeKind === 226 /* BinaryExpression */ || containingNodeKind === 184 /* FunctionType */ || containingNodeKind === 210 /* ObjectLiteralExpression */; case 21 /* OpenParenToken */: - return containingNodeKind === 212 /* CallExpression */ || containingNodeKind === 175 /* Constructor */ || containingNodeKind === 213 /* NewExpression */ || containingNodeKind === 216 /* ParenthesizedExpression */ || containingNodeKind === 195 /* ParenthesizedType */; + return containingNodeKind === 213 /* CallExpression */ || containingNodeKind === 176 /* Constructor */ || containingNodeKind === 214 /* NewExpression */ || containingNodeKind === 217 /* ParenthesizedExpression */ || containingNodeKind === 196 /* ParenthesizedType */; case 23 /* OpenBracketToken */: - return containingNodeKind === 208 /* ArrayLiteralExpression */ || containingNodeKind === 180 /* IndexSignature */ || containingNodeKind === 166 /* ComputedPropertyName */; + return containingNodeKind === 209 /* ArrayLiteralExpression */ || containingNodeKind === 181 /* IndexSignature */ || containingNodeKind === 167 /* ComputedPropertyName */; case 144 /* ModuleKeyword */: case 145 /* NamespaceKeyword */: case 102 /* ImportKeyword */: return true; case 25 /* DotToken */: - return containingNodeKind === 266 /* ModuleDeclaration */; + return containingNodeKind === 267 /* ModuleDeclaration */; case 19 /* OpenBraceToken */: - return containingNodeKind === 262 /* ClassDeclaration */ || containingNodeKind === 209 /* ObjectLiteralExpression */; + return containingNodeKind === 263 /* ClassDeclaration */ || containingNodeKind === 210 /* ObjectLiteralExpression */; case 64 /* EqualsToken */: - return containingNodeKind === 259 /* VariableDeclaration */ || containingNodeKind === 225 /* BinaryExpression */; + return containingNodeKind === 260 /* VariableDeclaration */ || containingNodeKind === 226 /* BinaryExpression */; case 16 /* TemplateHead */: - return containingNodeKind === 227 /* TemplateExpression */; + return containingNodeKind === 228 /* TemplateExpression */; case 17 /* TemplateMiddle */: - return containingNodeKind === 238 /* TemplateSpan */; + return containingNodeKind === 239 /* TemplateSpan */; case 134 /* AsyncKeyword */: - return containingNodeKind === 173 /* MethodDeclaration */ || containingNodeKind === 303 /* ShorthandPropertyAssignment */; + return containingNodeKind === 174 /* MethodDeclaration */ || containingNodeKind === 304 /* ShorthandPropertyAssignment */; case 42 /* AsteriskToken */: - return containingNodeKind === 173 /* MethodDeclaration */; + return containingNodeKind === 174 /* MethodDeclaration */; } if (isClassMemberCompletionKeyword(tokenKind)) { return true; @@ -157519,16 +159771,16 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, } function tryGetObjectLikeCompletionSymbols() { const symbolsStartIndex = symbols.length; - const objectLikeContainer = tryGetObjectLikeCompletionContainer(contextToken); + const objectLikeContainer = tryGetObjectLikeCompletionContainer(contextToken, position, sourceFile); if (!objectLikeContainer) return 0 /* Continue */; completionKind = 0 /* ObjectPropertyDeclaration */; let typeMembers; let existingMembers; - if (objectLikeContainer.kind === 209 /* ObjectLiteralExpression */) { + if (objectLikeContainer.kind === 210 /* ObjectLiteralExpression */) { const instantiatedType = tryGetObjectLiteralContextualType(objectLikeContainer, typeChecker); if (instantiatedType === void 0) { - if (objectLikeContainer.flags & 33554432 /* InWithStatement */) { + if (objectLikeContainer.flags & 67108864 /* InWithStatement */) { return 2 /* Fail */; } isNonContextualObjectLiteral = true; @@ -157547,16 +159799,16 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, } } } else { - Debug.assert(objectLikeContainer.kind === 205 /* ObjectBindingPattern */); + Debug.assert(objectLikeContainer.kind === 206 /* ObjectBindingPattern */); isNewIdentifierLocation = false; const rootDeclaration = getRootDeclaration(objectLikeContainer.parent); if (!isVariableLike(rootDeclaration)) return Debug.fail("Root declaration is not variable-like."); - let canGetType = hasInitializer(rootDeclaration) || !!getEffectiveTypeAnnotationNode(rootDeclaration) || rootDeclaration.parent.parent.kind === 249 /* ForOfStatement */; - if (!canGetType && rootDeclaration.kind === 168 /* Parameter */) { + let canGetType = hasInitializer(rootDeclaration) || !!getEffectiveTypeAnnotationNode(rootDeclaration) || rootDeclaration.parent.parent.kind === 250 /* ForOfStatement */; + if (!canGetType && rootDeclaration.kind === 169 /* Parameter */) { if (isExpression(rootDeclaration.parent)) { canGetType = !!typeChecker.getContextualType(rootDeclaration.parent); - } else if (rootDeclaration.parent.kind === 173 /* MethodDeclaration */ || rootDeclaration.parent.kind === 177 /* SetAccessor */) { + } else if (rootDeclaration.parent.kind === 174 /* MethodDeclaration */ || rootDeclaration.parent.kind === 178 /* SetAccessor */) { canGetType = isExpression(rootDeclaration.parent.parent) && !!typeChecker.getContextualType(rootDeclaration.parent.parent); } } @@ -157582,7 +159834,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, const filteredMembers = filterObjectMembersList(typeMembers, Debug.checkDefined(existingMembers)); symbols = concatenate(symbols, filteredMembers); setSortTextToOptionalMember(); - if (objectLikeContainer.kind === 209 /* ObjectLiteralExpression */ && preferences.includeCompletionsWithObjectLiteralMethodSnippets && preferences.includeCompletionsWithInsertText) { + if (objectLikeContainer.kind === 210 /* ObjectLiteralExpression */ && preferences.includeCompletionsWithObjectLiteralMethodSnippets && preferences.includeCompletionsWithInsertText) { transformObjectLiteralMembersSortText(symbolsStartIndex); collectObjectLiteralMethodSymbols(filteredMembers, objectLikeContainer); } @@ -157598,10 +159850,10 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, if (!isTypeKeywordTokenOrIdentifier(contextToken)) { keywordFilters = 8 /* TypeKeyword */; } - const { moduleSpecifier } = namedImportsOrExports.kind === 274 /* NamedImports */ ? namedImportsOrExports.parent.parent : namedImportsOrExports.parent; + const { moduleSpecifier } = namedImportsOrExports.kind === 275 /* NamedImports */ ? namedImportsOrExports.parent.parent : namedImportsOrExports.parent; if (!moduleSpecifier) { isNewIdentifierLocation = true; - return namedImportsOrExports.kind === 274 /* NamedImports */ ? 2 /* Fail */ : 0 /* Continue */; + return namedImportsOrExports.kind === 275 /* NamedImports */ ? 2 /* Fail */ : 0 /* Continue */; } const moduleSpecifierSymbol = typeChecker.getSymbolAtLocation(moduleSpecifier); if (!moduleSpecifierSymbol) { @@ -157726,11 +159978,11 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, case 31 /* LessThanSlashToken */: case 44 /* SlashToken */: case 80 /* Identifier */: - case 210 /* PropertyAccessExpression */: - case 291 /* JsxAttributes */: - case 290 /* JsxAttribute */: - case 292 /* JsxSpreadAttribute */: - if (parent2 && (parent2.kind === 284 /* JsxSelfClosingElement */ || parent2.kind === 285 /* JsxOpeningElement */)) { + case 211 /* PropertyAccessExpression */: + case 292 /* JsxAttributes */: + case 291 /* JsxAttribute */: + case 293 /* JsxSpreadAttribute */: + if (parent2 && (parent2.kind === 285 /* JsxSelfClosingElement */ || parent2.kind === 286 /* JsxOpeningElement */)) { if (contextToken2.kind === 32 /* GreaterThanToken */) { const precedingToken = findPrecedingToken( contextToken2.pos, @@ -157742,20 +159994,20 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, break; } return parent2; - } else if (parent2.kind === 290 /* JsxAttribute */) { + } else if (parent2.kind === 291 /* JsxAttribute */) { return parent2.parent.parent; } break; case 11 /* StringLiteral */: - if (parent2 && (parent2.kind === 290 /* JsxAttribute */ || parent2.kind === 292 /* JsxSpreadAttribute */)) { + if (parent2 && (parent2.kind === 291 /* JsxAttribute */ || parent2.kind === 293 /* JsxSpreadAttribute */)) { return parent2.parent.parent; } break; case 20 /* CloseBraceToken */: - if (parent2 && parent2.kind === 293 /* JsxExpression */ && parent2.parent && parent2.parent.kind === 290 /* JsxAttribute */) { + if (parent2 && parent2.kind === 294 /* JsxExpression */ && parent2.parent && parent2.parent.kind === 291 /* JsxAttribute */) { return parent2.parent.parent.parent; } - if (parent2 && parent2.kind === 292 /* JsxSpreadAttribute */) { + if (parent2 && parent2.kind === 293 /* JsxSpreadAttribute */) { return parent2.parent.parent; } break; @@ -157768,44 +160020,44 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, const containingNodeKind = parent2.kind; switch (contextToken2.kind) { case 28 /* CommaToken */: - return containingNodeKind === 259 /* VariableDeclaration */ || isVariableDeclarationListButNotTypeArgument(contextToken2) || containingNodeKind === 242 /* VariableStatement */ || containingNodeKind === 265 /* EnumDeclaration */ || // enum a { foo, | - isFunctionLikeButNotConstructor(containingNodeKind) || containingNodeKind === 263 /* InterfaceDeclaration */ || // interface A= contextToken2.pos; case 25 /* DotToken */: - return containingNodeKind === 206 /* ArrayBindingPattern */; + return containingNodeKind === 207 /* ArrayBindingPattern */; case 59 /* ColonToken */: - return containingNodeKind === 207 /* BindingElement */; + return containingNodeKind === 208 /* BindingElement */; case 23 /* OpenBracketToken */: - return containingNodeKind === 206 /* ArrayBindingPattern */; + return containingNodeKind === 207 /* ArrayBindingPattern */; case 21 /* OpenParenToken */: - return containingNodeKind === 298 /* CatchClause */ || isFunctionLikeButNotConstructor(containingNodeKind); + return containingNodeKind === 299 /* CatchClause */ || isFunctionLikeButNotConstructor(containingNodeKind); case 19 /* OpenBraceToken */: - return containingNodeKind === 265 /* EnumDeclaration */; + return containingNodeKind === 266 /* EnumDeclaration */; case 30 /* LessThanToken */: - return containingNodeKind === 262 /* ClassDeclaration */ || // class A< | - containingNodeKind === 230 /* ClassExpression */ || // var C = class D< | - containingNodeKind === 263 /* InterfaceDeclaration */ || // interface A< | - containingNodeKind === 264 /* TypeAliasDeclaration */ || // type List< | + return containingNodeKind === 263 /* ClassDeclaration */ || // class A< | + containingNodeKind === 231 /* ClassExpression */ || // var C = class D< | + containingNodeKind === 264 /* InterfaceDeclaration */ || // interface A< | + containingNodeKind === 265 /* TypeAliasDeclaration */ || // type List< | isFunctionLikeKind(containingNodeKind); case 126 /* StaticKeyword */: - return containingNodeKind === 171 /* PropertyDeclaration */ && !isClassLike(parent2.parent); + return containingNodeKind === 172 /* PropertyDeclaration */ && !isClassLike(parent2.parent); case 26 /* DotDotDotToken */: - return containingNodeKind === 168 /* Parameter */ || !!parent2.parent && parent2.parent.kind === 206 /* ArrayBindingPattern */; + return containingNodeKind === 169 /* Parameter */ || !!parent2.parent && parent2.parent.kind === 207 /* ArrayBindingPattern */; case 125 /* PublicKeyword */: case 123 /* PrivateKeyword */: case 124 /* ProtectedKeyword */: - return containingNodeKind === 168 /* Parameter */ && !isConstructorDeclaration(parent2.parent); + return containingNodeKind === 169 /* Parameter */ && !isConstructorDeclaration(parent2.parent); case 130 /* AsKeyword */: - return containingNodeKind === 275 /* ImportSpecifier */ || containingNodeKind === 280 /* ExportSpecifier */ || containingNodeKind === 273 /* NamespaceImport */; + return containingNodeKind === 276 /* ImportSpecifier */ || containingNodeKind === 281 /* ExportSpecifier */ || containingNodeKind === 274 /* NamespaceImport */; case 139 /* GetKeyword */: case 153 /* SetKeyword */: return !isFromObjectTypeDeclaration(contextToken2); case 80 /* Identifier */: - if (containingNodeKind === 275 /* ImportSpecifier */ && contextToken2 === parent2.name && contextToken2.text === "type") { + if (containingNodeKind === 276 /* ImportSpecifier */ && contextToken2 === parent2.name && contextToken2.text === "type") { return false; } break; @@ -157820,7 +160072,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, case 140 /* InferKeyword */: return true; case 156 /* TypeKeyword */: - return containingNodeKind !== 275 /* ImportSpecifier */; + return containingNodeKind !== 276 /* ImportSpecifier */; case 42 /* AsteriskToken */: return isFunctionLike(contextToken2.parent) && !isMethodDeclaration(contextToken2.parent); } @@ -157854,7 +160106,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, if (ancestorClassLike && contextToken2 === previousToken && isPreviousPropertyDeclarationTerminated(contextToken2, position)) { return false; } - const ancestorPropertyDeclaraion = getAncestor(contextToken2.parent, 171 /* PropertyDeclaration */); + const ancestorPropertyDeclaraion = getAncestor(contextToken2.parent, 172 /* PropertyDeclaration */); if (ancestorPropertyDeclaraion && contextToken2 !== previousToken && isClassLike(previousToken.parent.parent) && position <= previousToken.end) { if (isPreviousPropertyDeclarationTerminated(contextToken2, previousToken.end)) { return false; @@ -157868,7 +160120,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, return contextToken2.kind !== 64 /* EqualsToken */ && (contextToken2.kind === 27 /* SemicolonToken */ || !positionsAreOnSameLine(contextToken2.end, position2, sourceFile)); } function isFunctionLikeButNotConstructor(kind) { - return isFunctionLikeKind(kind) && kind !== 175 /* Constructor */; + return isFunctionLikeKind(kind) && kind !== 176 /* Constructor */; } function isDotOfNumericLiteral(contextToken2) { if (contextToken2.kind === 9 /* NumericLiteral */) { @@ -157878,7 +160130,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, return false; } function isVariableDeclarationListButNotTypeArgument(node2) { - return node2.parent.kind === 260 /* VariableDeclarationList */ && !isPossiblyTypeArgumentPosition(node2, sourceFile, typeChecker); + return node2.parent.kind === 261 /* VariableDeclarationList */ && !isPossiblyTypeArgumentPosition(node2, sourceFile, typeChecker); } function filterObjectMembersList(contextualMemberSymbols, existingMembers) { if (existingMembers.length === 0) { @@ -157887,7 +160139,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, const membersDeclaredBySpreadAssignment = /* @__PURE__ */ new Set(); const existingMemberNames = /* @__PURE__ */ new Set(); for (const m of existingMembers) { - if (m.kind !== 302 /* PropertyAssignment */ && m.kind !== 303 /* ShorthandPropertyAssignment */ && m.kind !== 207 /* BindingElement */ && m.kind !== 173 /* MethodDeclaration */ && m.kind !== 176 /* GetAccessor */ && m.kind !== 177 /* SetAccessor */ && m.kind !== 304 /* SpreadAssignment */) { + if (m.kind !== 303 /* PropertyAssignment */ && m.kind !== 304 /* ShorthandPropertyAssignment */ && m.kind !== 208 /* BindingElement */ && m.kind !== 174 /* MethodDeclaration */ && m.kind !== 177 /* GetAccessor */ && m.kind !== 178 /* SetAccessor */ && m.kind !== 305 /* SpreadAssignment */) { continue; } if (isCurrentlyEditingNode(m)) { @@ -157965,7 +160217,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, function filterClassMembersList(baseSymbols, existingMembers, currentClassElementModifierFlags) { const existingMemberNames = /* @__PURE__ */ new Set(); for (const m of existingMembers) { - if (m.kind !== 171 /* PropertyDeclaration */ && m.kind !== 173 /* MethodDeclaration */ && m.kind !== 176 /* GetAccessor */ && m.kind !== 177 /* SetAccessor */) { + if (m.kind !== 172 /* PropertyDeclaration */ && m.kind !== 174 /* MethodDeclaration */ && m.kind !== 177 /* GetAccessor */ && m.kind !== 178 /* SetAccessor */) { continue; } if (isCurrentlyEditingNode(m)) { @@ -157991,7 +160243,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, if (isCurrentlyEditingNode(attr)) { continue; } - if (attr.kind === 290 /* JsxAttribute */) { + if (attr.kind === 291 /* JsxAttribute */) { seenNames.add(getEscapedTextOfJsxAttributeName(attr.name)); } else if (isJsxSpreadAttribute(attr)) { setMembersDeclaredBySpreadAssignment(attr, membersDeclaredBySpreadAssignment); @@ -158005,7 +160257,8 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, return node2.getStart(sourceFile) <= position && position <= node2.getEnd(); } } -function tryGetObjectLikeCompletionContainer(contextToken) { +function tryGetObjectLikeCompletionContainer(contextToken, position, sourceFile) { + var _a; if (contextToken) { const { parent: parent2 } = contextToken; switch (contextToken.kind) { @@ -158020,7 +160273,29 @@ function tryGetObjectLikeCompletionContainer(contextToken) { case 134 /* AsyncKeyword */: return tryCast(parent2.parent, isObjectLiteralExpression); case 80 /* Identifier */: - return contextToken.text === "async" && isShorthandPropertyAssignment(contextToken.parent) ? contextToken.parent.parent : void 0; + if (contextToken.text === "async" && isShorthandPropertyAssignment(contextToken.parent)) { + return contextToken.parent.parent; + } else { + if (isObjectLiteralExpression(contextToken.parent.parent) && (isSpreadAssignment(contextToken.parent) || isShorthandPropertyAssignment(contextToken.parent) && getLineAndCharacterOfPosition(sourceFile, contextToken.getEnd()).line !== getLineAndCharacterOfPosition(sourceFile, position).line)) { + return contextToken.parent.parent; + } + const ancestorNode2 = findAncestor(parent2, isPropertyAssignment); + if ((ancestorNode2 == null ? void 0 : ancestorNode2.getLastToken(sourceFile)) === contextToken && isObjectLiteralExpression(ancestorNode2.parent)) { + return ancestorNode2.parent; + } + } + break; + default: + if (((_a = parent2.parent) == null ? void 0 : _a.parent) && (isMethodDeclaration(parent2.parent) || isGetAccessorDeclaration(parent2.parent) || isSetAccessorDeclaration(parent2.parent)) && isObjectLiteralExpression(parent2.parent.parent)) { + return parent2.parent.parent; + } + if (isSpreadAssignment(parent2) && isObjectLiteralExpression(parent2.parent)) { + return parent2.parent; + } + const ancestorNode = findAncestor(parent2, isPropertyAssignment); + if (contextToken.kind !== 59 /* ColonToken */ && (ancestorNode == null ? void 0 : ancestorNode.getLastToken(sourceFile)) === contextToken && isObjectLiteralExpression(ancestorNode.parent)) { + return ancestorNode.parent; + } } } return void 0; @@ -158081,7 +160356,7 @@ function getCompletionEntryDisplayNameForSymbol(symbol, target, origin, kind, js var _keywordCompletions = []; var allKeywordsCompletions = memoize(() => { const res = []; - for (let i = 83 /* FirstKeyword */; i <= 164 /* LastKeyword */; i++) { + for (let i = 83 /* FirstKeyword */; i <= 165 /* LastKeyword */; i++) { res.push({ name: tokenToString(i), kind: "keyword" /* keyword */, @@ -158128,11 +160403,11 @@ function isTypeScriptOnlyKeyword(kind) { switch (kind) { case 128 /* AbstractKeyword */: case 133 /* AnyKeyword */: - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: case 136 /* BooleanKeyword */: case 138 /* DeclareKeyword */: case 94 /* EnumKeyword */: - case 161 /* GlobalKeyword */: + case 162 /* GlobalKeyword */: case 119 /* ImplementsKeyword */: case 140 /* InferKeyword */: case 120 /* InterfaceKeyword */: @@ -158143,7 +160418,7 @@ function isTypeScriptOnlyKeyword(kind) { case 146 /* NeverKeyword */: case 150 /* NumberKeyword */: case 151 /* ObjectKeyword */: - case 163 /* OverrideKeyword */: + case 164 /* OverrideKeyword */: case 123 /* PrivateKeyword */: case 124 /* ProtectedKeyword */: case 125 /* PublicKeyword */: @@ -158170,7 +160445,7 @@ function isClassMemberCompletionKeyword(kind) { case 153 /* SetKeyword */: case 134 /* AsyncKeyword */: case 138 /* DeclareKeyword */: - case 163 /* OverrideKeyword */: + case 164 /* OverrideKeyword */: return true; default: return isClassMemberModifier(kind); @@ -158227,7 +160502,7 @@ function getPropertiesForCompletion(type, checker) { } function tryGetObjectTypeDeclarationCompletionContainer(sourceFile, contextToken, location, position) { switch (location.kind) { - case 357 /* SyntaxList */: + case 358 /* SyntaxList */: return tryCast(location.parent, isObjectTypeDeclaration); case 1 /* EndOfFileToken */: const cls = tryCast(lastOrUndefined(cast(location.parent, isSourceFile).statements), isObjectTypeDeclaration); @@ -158235,6 +160510,11 @@ function tryGetObjectTypeDeclarationCompletionContainer(sourceFile, contextToken return cls; } break; + case 81 /* PrivateIdentifier */: + if (tryCast(location.parent, isPropertyDeclaration)) { + return findAncestor(location, isClassLike); + } + break; case 80 /* Identifier */: { const originalKeywordKind = identifierToKeywordKind(location); if (originalKeywordKind) { @@ -158286,7 +160566,7 @@ function tryGetTypeLiteralNode(node) { case 27 /* SemicolonToken */: case 28 /* CommaToken */: case 80 /* Identifier */: - if (parent2.kind === 170 /* PropertySignature */ && isTypeLiteralNode(parent2.parent)) { + if (parent2.kind === 171 /* PropertySignature */ && isTypeLiteralNode(parent2.parent)) { return parent2.parent; } break; @@ -158303,11 +160583,11 @@ function getConstraintOfTypeArgumentProperty(node, checker) { if (!t) return void 0; switch (node.kind) { - case 170 /* PropertySignature */: + case 171 /* PropertySignature */: return checker.getTypeOfPropertyOfContextualType(t, node.symbol.escapedName); - case 192 /* IntersectionType */: - case 186 /* TypeLiteral */: - case 191 /* UnionType */: + case 193 /* IntersectionType */: + case 187 /* TypeLiteral */: + case 192 /* UnionType */: return t; } } @@ -158330,7 +160610,7 @@ function isValidTrigger(sourceFile, triggerCharacter, contextToken, position) { case "/": return !!contextToken && (isStringLiteralLike(contextToken) ? !!tryGetImportFromModuleSpecifier(contextToken) : contextToken.kind === 44 /* SlashToken */ && isJsxClosingElement(contextToken.parent)); case " ": - return !!contextToken && isImportKeyword(contextToken) && contextToken.parent.kind === 311 /* SourceFile */; + return !!contextToken && isImportKeyword(contextToken) && contextToken.parent.kind === 312 /* SourceFile */; default: return Debug.assertNever(triggerCharacter); } @@ -158391,7 +160671,7 @@ function tryGetObjectLiteralContextualType(node, typeChecker) { } return void 0; } -function getImportStatementCompletionInfo(contextToken) { +function getImportStatementCompletionInfo(contextToken, sourceFile) { var _a, _b, _c; let keywordCompletion; let isKeywordOnlyCompletion = false; @@ -158407,6 +160687,12 @@ function getImportStatementCompletionInfo(contextToken) { function getCandidate() { const parent2 = contextToken.parent; if (isImportEqualsDeclaration(parent2)) { + const lastToken = parent2.getLastToken(sourceFile); + if (isIdentifier(contextToken) && lastToken !== contextToken) { + keywordCompletion = 161 /* FromKeyword */; + isKeywordOnlyCompletion = true; + return void 0; + } keywordCompletion = contextToken.kind === 156 /* TypeKeyword */ ? void 0 : 156 /* TypeKeyword */; return isModuleSpecifierMissingOrEmpty(parent2.moduleReference) ? parent2 : void 0; } @@ -158420,7 +160706,7 @@ function getImportStatementCompletionInfo(contextToken) { if (canCompleteFromNamedBindings(parent2)) { if (contextToken.kind === 20 /* CloseBraceToken */ || contextToken.kind === 80 /* Identifier */) { isKeywordOnlyCompletion = true; - keywordCompletion = 160 /* FromKeyword */; + keywordCompletion = 161 /* FromKeyword */; } else { return parent2.parent.parent; } @@ -158447,8 +160733,8 @@ function getSingleLineReplacementSpanForImportCompletionNode(node) { if (rangeIsOnSingleLine(top, sourceFile)) { return createTextSpanFromNode(top, sourceFile); } - Debug.assert(top.kind !== 102 /* ImportKeyword */ && top.kind !== 275 /* ImportSpecifier */); - const potentialSplitPoint = top.kind === 271 /* ImportDeclaration */ ? getPotentiallyInvalidImportSpecifier((_a = top.importClause) == null ? void 0 : _a.namedBindings) ?? top.moduleSpecifier : top.moduleReference; + Debug.assert(top.kind !== 102 /* ImportKeyword */ && top.kind !== 276 /* ImportSpecifier */); + const potentialSplitPoint = top.kind === 272 /* ImportDeclaration */ ? getPotentiallyInvalidImportSpecifier((_a = top.importClause) == null ? void 0 : _a.namedBindings) ?? top.moduleSpecifier : top.moduleReference; const withoutModuleSpecifier = { pos: top.getFirstToken().getStart(), end: potentialSplitPoint.pos @@ -158710,37 +160996,37 @@ function kindModifiersFromExtension(extension) { function getStringLiteralCompletionEntries(sourceFile, node, position, typeChecker, compilerOptions, host, preferences) { const parent2 = walkUpParentheses(node.parent); switch (parent2.kind) { - case 200 /* LiteralType */: { + case 201 /* LiteralType */: { const grandParent = walkUpParentheses(parent2.parent); - if (grandParent.kind === 204 /* ImportType */) { + if (grandParent.kind === 205 /* ImportType */) { return { kind: 0 /* Paths */, paths: getStringLiteralCompletionsFromModuleNames(sourceFile, node, compilerOptions, host, typeChecker, preferences) }; } return fromUnionableLiteralType(grandParent); } - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: if (isObjectLiteralExpression(parent2.parent) && parent2.name === node) { return stringLiteralCompletionsForObjectLiteral(typeChecker, parent2.parent); } return fromContextualType() || fromContextualType(0 /* None */); - case 211 /* ElementAccessExpression */: { + case 212 /* ElementAccessExpression */: { const { expression, argumentExpression } = parent2; if (node === skipParentheses(argumentExpression)) { return stringLiteralCompletionsFromProperties(typeChecker.getTypeAtLocation(expression)); } return void 0; } - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 290 /* JsxAttribute */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 291 /* JsxAttribute */: if (!isRequireCallArgument(node) && !isImportCall(parent2)) { - const argumentInfo = ts_SignatureHelp_exports.getArgumentInfoForCompletions(parent2.kind === 290 /* JsxAttribute */ ? parent2.parent : node, position, sourceFile); - return argumentInfo && getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker) || fromContextualType(0 /* None */); + const argumentInfo = ts_SignatureHelp_exports.getArgumentInfoForCompletions(parent2.kind === 291 /* JsxAttribute */ ? parent2.parent : node, position, sourceFile); + return argumentInfo && (getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker) || getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker, 0 /* Normal */)) || fromContextualType(0 /* None */); } - case 271 /* ImportDeclaration */: - case 277 /* ExportDeclaration */: - case 282 /* ExternalModuleReference */: + case 272 /* ImportDeclaration */: + case 278 /* ExportDeclaration */: + case 283 /* ExternalModuleReference */: return { kind: 0 /* Paths */, paths: getStringLiteralCompletionsFromModuleNames(sourceFile, node, compilerOptions, host, typeChecker, preferences) }; - case 295 /* CaseClause */: + case 296 /* CaseClause */: const tracker = newCaseClauseTracker(typeChecker, parent2.parent.clauses); const contextualTypes = fromContextualType(); if (!contextualTypes) { @@ -158753,21 +161039,21 @@ function getStringLiteralCompletionEntries(sourceFile, node, position, typeCheck } function fromUnionableLiteralType(grandParent) { switch (grandParent.kind) { - case 232 /* ExpressionWithTypeArguments */: - case 182 /* TypeReference */: { + case 233 /* ExpressionWithTypeArguments */: + case 183 /* TypeReference */: { const typeArgument = findAncestor(parent2, (n) => n.parent === grandParent); if (typeArgument) { return { kind: 2 /* Types */, types: getStringLiteralTypes(typeChecker.getTypeArgumentConstraint(typeArgument)), isNewIdentifier: false }; } return void 0; } - case 198 /* IndexedAccessType */: + case 199 /* IndexedAccessType */: const { indexType, objectType } = grandParent; if (!rangeContainsPosition(indexType, position)) { return void 0; } return stringLiteralCompletionsFromProperties(typeChecker.getTypeFromTypeNode(objectType)); - case 191 /* UnionType */: { + case 192 /* UnionType */: { const result = fromUnionableLiteralType(walkUpParentheses(grandParent.parent)); if (!result) { return void 0; @@ -158792,9 +161078,9 @@ function getStringLiteralCompletionEntries(sourceFile, node, position, typeCheck } function walkUpParentheses(node) { switch (node.kind) { - case 195 /* ParenthesizedType */: + case 196 /* ParenthesizedType */: return walkUpParenthesizedTypes(node); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return walkUpParenthesizedExpressions(node); default: return node; @@ -158803,12 +161089,12 @@ function walkUpParentheses(node) { function getAlreadyUsedTypesInStringLiteralUnion(union, current) { return mapDefined(union.types, (type) => type !== current && isLiteralTypeNode(type) && isStringLiteral(type.literal) ? type.literal.text : void 0); } -function getStringLiteralCompletionsFromSignature(call, arg, argumentInfo, checker) { +function getStringLiteralCompletionsFromSignature(call, arg, argumentInfo, checker, checkMode = 32 /* IsForStringLiteralArgumentCompletions */) { let isNewIdentifier = false; const uniques = /* @__PURE__ */ new Map(); const candidates = []; const editingArgument = isJsxOpeningLikeElement(call) ? Debug.checkDefined(findAncestor(arg.parent, isJsxAttribute)) : arg; - checker.getResolvedSignatureForStringLiteralCompletions(call, editingArgument, candidates); + checker.getResolvedSignatureForStringLiteralCompletions(call, editingArgument, candidates, checkMode); const types = flatMap(candidates, (candidate) => { if (!signatureHasRestParameter(candidate) && argumentInfo.argumentCount > candidate.parameters.length) return; @@ -158908,7 +161194,7 @@ function getCompletionEntriesForRelativeModules(literalValue, scriptDirectory, c extensionOptions, host, /*moduleSpecifierIsRelative*/ - false, + true, scriptPath ).values()); } @@ -159169,7 +161455,7 @@ function getCompletionEntriesForNonRelativeModules(fragment, scriptPath, mode, c } const keys = getOwnKeys(exports); const fragmentSubpath = components.join("/") + (components.length && hasTrailingDirectorySeparator(fragment) ? "/" : ""); - const conditions = mode === 99 /* ESNext */ ? ["node", "import", "types"] : ["node", "require", "types"]; + const conditions = getConditions(compilerOptions, mode === 99 /* ESNext */); addCompletionEntriesFromPathsOrExports( result, fragmentSubpath, @@ -159240,16 +161526,18 @@ function getModulesForPathsPattern(fragment, packageDirectory, pattern, extensio const fragmentDirectory = fragmentHasPath ? hasTrailingDirectorySeparator(fragment) ? fragment : getDirectoryPath(fragment) : void 0; const expandedPrefixDirectory = fragmentHasPath ? combinePaths(normalizedPrefixDirectory, normalizedPrefixBase + fragmentDirectory) : normalizedPrefixDirectory; const normalizedSuffix = normalizePath(parsed.suffix); + const declarationExtension = normalizedSuffix && getDeclarationEmitExtensionForPath("_" + normalizedSuffix); + const matchingSuffixes = declarationExtension ? [changeExtension(normalizedSuffix, declarationExtension), normalizedSuffix] : [normalizedSuffix]; const baseDirectory = normalizePath(combinePaths(packageDirectory, expandedPrefixDirectory)); const completePrefix = fragmentHasPath ? baseDirectory : ensureTrailingDirectorySeparator(baseDirectory) + normalizedPrefixBase; - const includeGlob = normalizedSuffix ? "**/*" + normalizedSuffix : "./*"; + const includeGlobs = normalizedSuffix ? matchingSuffixes.map((suffix) => "**/*" + suffix) : ["./*"]; const matches = mapDefined(tryReadDirectory( host, baseDirectory, extensionOptions.extensionsToSearch, /*exclude*/ void 0, - [includeGlob] + includeGlobs ), (match) => { const trimmedWithPattern = trimPrefixAndSuffix(match); if (trimmedWithPattern) { @@ -159263,8 +161551,10 @@ function getModulesForPathsPattern(fragment, packageDirectory, pattern, extensio const directories = normalizedSuffix ? emptyArray : mapDefined(tryGetDirectories(host, baseDirectory), (dir) => dir === "node_modules" ? void 0 : directoryResult(dir)); return [...matches, ...directories]; function trimPrefixAndSuffix(path) { - const inner = withoutStartAndEnd(normalizePath(path), completePrefix, normalizedSuffix); - return inner === void 0 ? void 0 : removeLeadingDirectorySeparator(inner); + return firstDefined(matchingSuffixes, (suffix) => { + const inner = withoutStartAndEnd(normalizePath(path), completePrefix, suffix); + return inner === void 0 ? void 0 : removeLeadingDirectorySeparator(inner); + }); } } function withoutStartAndEnd(s, start2, end) { @@ -159418,6 +161708,7 @@ __export(ts_FindAllReferences_exports, { getTextSpanOfEntry: () => getTextSpanOfEntry, isContextWithStartAndEndNode: () => isContextWithStartAndEndNode, isDeclarationOfSymbol: () => isDeclarationOfSymbol, + isWriteAccessForReference: () => isWriteAccessForReference, nodeEntry: () => nodeEntry, toContextSpan: () => toContextSpan, toHighlightSpan: () => toHighlightSpan, @@ -159475,14 +161766,14 @@ function getImportersForExport(sourceFiles, sourceFilesSet, allDirectImports, { if (cancellationToken) cancellationToken.throwIfCancellationRequested(); switch (direct.kind) { - case 212 /* CallExpression */: + case 213 /* CallExpression */: if (isImportCall(direct)) { handleImportCall(direct); break; } if (!isAvailableThroughGlobal) { const parent2 = direct.parent; - if (exportKind === 2 /* ExportEquals */ && parent2.kind === 259 /* VariableDeclaration */) { + if (exportKind === 2 /* ExportEquals */ && parent2.kind === 260 /* VariableDeclaration */) { const { name } = parent2; if (name.kind === 80 /* Identifier */) { directImports.push(name); @@ -159493,7 +161784,7 @@ function getImportersForExport(sourceFiles, sourceFilesSet, allDirectImports, { break; case 80 /* Identifier */: break; - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: handleNamespaceImport( direct, direct.name, @@ -159502,10 +161793,10 @@ function getImportersForExport(sourceFiles, sourceFilesSet, allDirectImports, { false ); break; - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: directImports.push(direct); const namedBindings = direct.importClause && direct.importClause.namedBindings; - if (namedBindings && namedBindings.kind === 273 /* NamespaceImport */) { + if (namedBindings && namedBindings.kind === 274 /* NamespaceImport */) { handleNamespaceImport( direct, namedBindings.name, @@ -159518,10 +161809,10 @@ function getImportersForExport(sourceFiles, sourceFilesSet, allDirectImports, { addIndirectUser(getSourceFileLikeForImportDeclaration(direct)); } break; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: if (!direct.exportClause) { handleDirectImports(getContainingModuleSymbol(direct, checker)); - } else if (direct.exportClause.kind === 279 /* NamespaceExport */) { + } else if (direct.exportClause.kind === 280 /* NamespaceExport */) { addIndirectUser( getSourceFileLikeForImportDeclaration(direct), /*addTransitiveDependencies*/ @@ -159531,7 +161822,7 @@ function getImportersForExport(sourceFiles, sourceFilesSet, allDirectImports, { directImports.push(direct); } break; - case 204 /* ImportType */: + case 205 /* ImportType */: if (!isAvailableThroughGlobal && direct.isTypeOf && !direct.qualifier && isExported2(direct)) { addIndirectUser( direct.getSourceFile(), @@ -159572,7 +161863,7 @@ function getImportersForExport(sourceFiles, sourceFilesSet, allDirectImports, { directImports.push(importDeclaration); } else if (!isAvailableThroughGlobal) { const sourceFileLike = getSourceFileLikeForImportDeclaration(importDeclaration); - Debug.assert(sourceFileLike.kind === 311 /* SourceFile */ || sourceFileLike.kind === 266 /* ModuleDeclaration */); + Debug.assert(sourceFileLike.kind === 312 /* SourceFile */ || sourceFileLike.kind === 267 /* ModuleDeclaration */); if (isReExport || findNamespaceReExports(sourceFileLike, name, checker)) { addIndirectUser( sourceFileLike, @@ -159626,7 +161917,7 @@ function getSearchesFromDirectImports(directImports, exportSymbol, exportKind, c } return { importSearches, singleReferences }; function handleImport(decl) { - if (decl.kind === 270 /* ImportEqualsDeclaration */) { + if (decl.kind === 271 /* ImportEqualsDeclaration */) { if (isExternalModuleImportEquals(decl)) { handleNamespaceImportLike(decl.name); } @@ -159636,7 +161927,7 @@ function getSearchesFromDirectImports(directImports, exportSymbol, exportKind, c handleNamespaceImportLike(decl); return; } - if (decl.kind === 204 /* ImportType */) { + if (decl.kind === 205 /* ImportType */) { if (decl.qualifier) { const firstIdentifier = getFirstIdentifier(decl.qualifier); if (firstIdentifier.escapedText === symbolName(exportSymbol)) { @@ -159650,7 +161941,7 @@ function getSearchesFromDirectImports(directImports, exportSymbol, exportKind, c if (decl.moduleSpecifier.kind !== 11 /* StringLiteral */) { return; } - if (decl.kind === 277 /* ExportDeclaration */) { + if (decl.kind === 278 /* ExportDeclaration */) { if (decl.exportClause && isNamedExports(decl.exportClause)) { searchForNamedImport(decl.exportClause); } @@ -159659,10 +161950,10 @@ function getSearchesFromDirectImports(directImports, exportSymbol, exportKind, c const { name, namedBindings } = decl.importClause || { name: void 0, namedBindings: void 0 }; if (namedBindings) { switch (namedBindings.kind) { - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: handleNamespaceImportLike(namedBindings.name); break; - case 274 /* NamedImports */: + case 275 /* NamedImports */: if (exportKind === 0 /* Named */ || exportKind === 1 /* Default */) { searchForNamedImport(namedBindings); } @@ -159696,7 +161987,7 @@ function getSearchesFromDirectImports(directImports, exportSymbol, exportKind, c addSearch(name, checker.getSymbolAtLocation(name)); } } else { - const localSymbol = element.kind === 280 /* ExportSpecifier */ && element.propertyName ? checker.getExportSpecifierLocalTargetSymbol(element) : checker.getSymbolAtLocation(name); + const localSymbol = element.kind === 281 /* ExportSpecifier */ && element.propertyName ? checker.getExportSpecifierLocalTargetSymbol(element) : checker.getSymbolAtLocation(name); addSearch(name, localSymbol); } } @@ -159720,7 +162011,7 @@ function findModuleReferences(program, sourceFiles, searchModuleSymbol) { const checker = program.getTypeChecker(); for (const referencingFile of sourceFiles) { const searchSourceFile = searchModuleSymbol.valueDeclaration; - if ((searchSourceFile == null ? void 0 : searchSourceFile.kind) === 311 /* SourceFile */) { + if ((searchSourceFile == null ? void 0 : searchSourceFile.kind) === 312 /* SourceFile */) { for (const ref of referencingFile.referencedFiles) { if (program.getSourceFileFromReference(referencingFile, ref) === searchSourceFile) { refs.push({ kind: "reference", referencingFile, ref }); @@ -159762,7 +162053,7 @@ function getDirectImportsMap(sourceFiles, checker, cancellationToken) { return map2; } function forEachPossibleImportOrExportStatement(sourceFileLike, action) { - return forEach(sourceFileLike.kind === 311 /* SourceFile */ ? sourceFileLike.statements : sourceFileLike.body.statements, (statement) => ( + return forEach(sourceFileLike.kind === 312 /* SourceFile */ ? sourceFileLike.statements : sourceFileLike.body.statements, (statement) => ( // TODO: GH#18217 action(statement) || isAmbientModuleDeclaration(statement) && forEach(statement.body && statement.body.statements, action) )); @@ -159775,15 +162066,15 @@ function forEachImport(sourceFile, action) { } else { forEachPossibleImportOrExportStatement(sourceFile, (statement) => { switch (statement.kind) { - case 277 /* ExportDeclaration */: - case 271 /* ImportDeclaration */: { + case 278 /* ExportDeclaration */: + case 272 /* ImportDeclaration */: { const decl = statement; if (decl.moduleSpecifier && isStringLiteral(decl.moduleSpecifier)) { action(decl, decl.moduleSpecifier); } break; } - case 270 /* ImportEqualsDeclaration */: { + case 271 /* ImportEqualsDeclaration */: { const decl = statement; if (isExternalModuleImportEquals(decl)) { action(decl, decl.moduleReference.expression); @@ -159801,7 +162092,7 @@ function getImportOrExportSymbol(node, symbol, checker, comingFromExport) { const { parent: parent2 } = node; const grandparent = parent2.parent; if (symbol.exportSymbol) { - if (parent2.kind === 210 /* PropertyAccessExpression */) { + if (parent2.kind === 211 /* PropertyAccessExpression */) { return ((_a = symbol.declarations) == null ? void 0 : _a.some((d) => d === parent2)) && isBinaryExpression(grandparent) ? getSpecialPropertyExport( grandparent, /*useLhsSymbol*/ @@ -159918,15 +162209,15 @@ function getExportNode(parent2, node) { function isNodeImport(node) { const { parent: parent2 } = node; switch (parent2.kind) { - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return parent2.name === node && isExternalModuleImportEquals(parent2); - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: return !parent2.propertyName; - case 272 /* ImportClause */: - case 273 /* NamespaceImport */: + case 273 /* ImportClause */: + case 274 /* NamespaceImport */: Debug.assert(parent2.name === node); return true; - case 207 /* BindingElement */: + case 208 /* BindingElement */: return isInJSFile(node) && isVariableDeclarationInitializedToBareOrAccessedRequire(parent2.parent.parent); default: return false; @@ -159957,21 +162248,21 @@ function getContainingModuleSymbol(importer, checker) { return checker.getMergedSymbol(getSourceFileLikeForImportDeclaration(importer).symbol); } function getSourceFileLikeForImportDeclaration(node) { - if (node.kind === 212 /* CallExpression */) { + if (node.kind === 213 /* CallExpression */) { return node.getSourceFile(); } const { parent: parent2 } = node; - if (parent2.kind === 311 /* SourceFile */) { + if (parent2.kind === 312 /* SourceFile */) { return parent2; } - Debug.assert(parent2.kind === 267 /* ModuleBlock */); + Debug.assert(parent2.kind === 268 /* ModuleBlock */); return cast(parent2.parent, isAmbientModuleDeclaration); } function isAmbientModuleDeclaration(node) { - return node.kind === 266 /* ModuleDeclaration */ && node.name.kind === 11 /* StringLiteral */; + return node.kind === 267 /* ModuleDeclaration */ && node.name.kind === 11 /* StringLiteral */; } function isExternalModuleImportEquals(eq) { - return eq.moduleReference.kind === 282 /* ExternalModuleReference */ && eq.moduleReference.expression.kind === 11 /* StringLiteral */; + return eq.moduleReference.kind === 283 /* ExternalModuleReference */ && eq.moduleReference.expression.kind === 11 /* StringLiteral */; } // src/services/findAllReferences.ts @@ -160044,28 +162335,28 @@ function getContextNode(node) { if (!node) return void 0; switch (node.kind) { - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return !isVariableDeclarationList(node.parent) || node.parent.declarations.length !== 1 ? node : isVariableStatement(node.parent.parent) ? node.parent.parent : isForInOrOfStatement(node.parent.parent) ? getContextNode(node.parent.parent) : node.parent; - case 207 /* BindingElement */: + case 208 /* BindingElement */: return getContextNode(node.parent.parent); - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: return node.parent.parent.parent; - case 280 /* ExportSpecifier */: - case 273 /* NamespaceImport */: + case 281 /* ExportSpecifier */: + case 274 /* NamespaceImport */: return node.parent.parent; - case 272 /* ImportClause */: - case 279 /* NamespaceExport */: + case 273 /* ImportClause */: + case 280 /* NamespaceExport */: return node.parent; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return isExpressionStatement(node.parent) ? node.parent : node; - case 249 /* ForOfStatement */: - case 248 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 249 /* ForInStatement */: return { start: node.initializer, end: node.expression }; - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return isArrayLiteralOrObjectLiteralDestructuringPattern(node.parent) ? getContextNode( findAncestor( node.parent, @@ -160110,7 +162401,7 @@ function getImplementationsAtPosition(program, cancellationToken, sourceFiles, s const node = getTouchingPropertyName(sourceFile, position); let referenceEntries; const entries = getImplementationReferenceEntries(program, cancellationToken, sourceFiles, node, position); - if (node.parent.kind === 210 /* PropertyAccessExpression */ || node.parent.kind === 207 /* BindingElement */ || node.parent.kind === 211 /* ElementAccessExpression */ || node.kind === 108 /* SuperKeyword */) { + if (node.parent.kind === 211 /* PropertyAccessExpression */ || node.parent.kind === 208 /* BindingElement */ || node.parent.kind === 212 /* ElementAccessExpression */ || node.kind === 108 /* SuperKeyword */) { referenceEntries = entries && [...entries]; } else if (entries) { const queue = createQueue(entries); @@ -160131,11 +162422,11 @@ function getImplementationsAtPosition(program, cancellationToken, sourceFiles, s return map(referenceEntries, (entry) => toImplementationLocation(entry, checker)); } function getImplementationReferenceEntries(program, cancellationToken, sourceFiles, node, position) { - if (node.kind === 311 /* SourceFile */) { + if (node.kind === 312 /* SourceFile */) { return void 0; } const checker = program.getTypeChecker(); - if (node.parent.kind === 303 /* ShorthandPropertyAssignment */) { + if (node.parent.kind === 304 /* ShorthandPropertyAssignment */) { const result = []; Core.getReferenceEntriesForShorthandPropertyAssignment(node, checker, (node2) => result.push(nodeEntry(node2))); return result; @@ -160330,12 +162621,12 @@ function implementationKindDisplayParts(node, checker) { const symbol = checker.getSymbolAtLocation(isDeclaration(node) && node.name ? node.name : node); if (symbol) { return getDefinitionKindAndDisplayParts(symbol, checker, node); - } else if (node.kind === 209 /* ObjectLiteralExpression */) { + } else if (node.kind === 210 /* ObjectLiteralExpression */) { return { kind: "interface" /* interfaceElement */, displayParts: [punctuationPart(21 /* OpenParenToken */), textPart("object literal"), punctuationPart(22 /* CloseParenToken */)] }; - } else if (node.kind === 230 /* ClassExpression */) { + } else if (node.kind === 231 /* ClassExpression */) { return { kind: "local class" /* localClassElement */, displayParts: [punctuationPart(21 /* OpenParenToken */), textPart("anonymous local class"), punctuationPart(22 /* CloseParenToken */)] @@ -160390,49 +162681,49 @@ function isDeclarationOfSymbol(node, target) { return !!(source && ((_a = target.declarations) == null ? void 0 : _a.some((d) => d === source || d === commonjsSource))); } function declarationIsWriteAccess(decl) { - if (!!(decl.flags & 16777216 /* Ambient */)) + if (!!(decl.flags & 33554432 /* Ambient */)) return true; switch (decl.kind) { - case 225 /* BinaryExpression */: - case 207 /* BindingElement */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 226 /* BinaryExpression */: + case 208 /* BindingElement */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: case 90 /* DefaultKeyword */: - case 265 /* EnumDeclaration */: - case 305 /* EnumMember */: - case 280 /* ExportSpecifier */: - case 272 /* ImportClause */: - case 270 /* ImportEqualsDeclaration */: - case 275 /* ImportSpecifier */: - case 263 /* InterfaceDeclaration */: - case 344 /* JSDocCallbackTag */: - case 352 /* JSDocTypedefTag */: - case 290 /* JsxAttribute */: - case 266 /* ModuleDeclaration */: - case 269 /* NamespaceExportDeclaration */: - case 273 /* NamespaceImport */: - case 279 /* NamespaceExport */: - case 168 /* Parameter */: - case 303 /* ShorthandPropertyAssignment */: - case 264 /* TypeAliasDeclaration */: - case 167 /* TypeParameter */: + case 266 /* EnumDeclaration */: + case 306 /* EnumMember */: + case 281 /* ExportSpecifier */: + case 273 /* ImportClause */: + case 271 /* ImportEqualsDeclaration */: + case 276 /* ImportSpecifier */: + case 264 /* InterfaceDeclaration */: + case 345 /* JSDocCallbackTag */: + case 353 /* JSDocTypedefTag */: + case 291 /* JsxAttribute */: + case 267 /* ModuleDeclaration */: + case 270 /* NamespaceExportDeclaration */: + case 274 /* NamespaceImport */: + case 280 /* NamespaceExport */: + case 169 /* Parameter */: + case 304 /* ShorthandPropertyAssignment */: + case 265 /* TypeAliasDeclaration */: + case 168 /* TypeParameter */: return true; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return !isArrayLiteralOrObjectLiteralDestructuringPattern(decl.parent); - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 175 /* Constructor */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return !!decl.body; - case 259 /* VariableDeclaration */: - case 171 /* PropertyDeclaration */: + case 260 /* VariableDeclaration */: + case 172 /* PropertyDeclaration */: return !!decl.initializer || isCatchClause(decl.parent); - case 172 /* MethodSignature */: - case 170 /* PropertySignature */: - case 354 /* JSDocPropertyTag */: - case 347 /* JSDocParameterTag */: + case 173 /* MethodSignature */: + case 171 /* PropertySignature */: + case 355 /* JSDocPropertyTag */: + case 348 /* JSDocParameterTag */: return false; default: return Debug.failBadSyntaxKind(decl); @@ -160657,9 +162948,9 @@ var Core; if (symbol.declarations) { for (const decl of symbol.declarations) { switch (decl.kind) { - case 311 /* SourceFile */: + case 312 /* SourceFile */: break; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: if (sourceFilesSet.has(decl.getSourceFile().fileName)) { references.push(nodeEntry(decl.name)); } @@ -160783,7 +163074,7 @@ var Core; } function getSpecialSearchKind(node) { switch (node.kind) { - case 175 /* Constructor */: + case 176 /* Constructor */: case 137 /* ConstructorKeyword */: return 1 /* Constructor */; case 80 /* Identifier */: @@ -160992,7 +163283,7 @@ var Core; } function getSymbolScope(symbol) { const { declarations, flags, parent: parent2, valueDeclaration } = symbol; - if (valueDeclaration && (valueDeclaration.kind === 217 /* FunctionExpression */ || valueDeclaration.kind === 230 /* ClassExpression */)) { + if (valueDeclaration && (valueDeclaration.kind === 218 /* FunctionExpression */ || valueDeclaration.kind === 231 /* ClassExpression */)) { return valueDeclaration; } if (!declarations) { @@ -161001,7 +163292,7 @@ var Core; if (flags & (4 /* Property */ | 8192 /* Method */)) { const privateDeclaration = find(declarations, (d) => hasEffectiveModifier(d, 8 /* Private */) || isPrivateIdentifierClassElementDeclaration(d)); if (privateDeclaration) { - return getAncestor(privateDeclaration, 262 /* ClassDeclaration */); + return getAncestor(privateDeclaration, 263 /* ClassDeclaration */); } return void 0; } @@ -161018,7 +163309,7 @@ var Core; if (scope && scope !== container) { return void 0; } - if (!container || container.kind === 311 /* SourceFile */ && !isExternalOrCommonJsModule(container)) { + if (!container || container.kind === 312 /* SourceFile */ && !isExternalOrCommonJsModule(container)) { return void 0; } scope = container; @@ -161096,7 +163387,10 @@ var Core; } Core2.someSignatureUsage = someSignatureUsage; function getPossibleSymbolReferenceNodes(sourceFile, symbolName2, container = sourceFile) { - return getPossibleSymbolReferencePositions(sourceFile, symbolName2, container).map((pos) => getTouchingPropertyName(sourceFile, pos)); + return mapDefined(getPossibleSymbolReferencePositions(sourceFile, symbolName2, container), (pos) => { + const referenceLocation = getTouchingPropertyName(sourceFile, pos); + return referenceLocation === sourceFile ? void 0 : referenceLocation; + }); } function getPossibleSymbolReferencePositions(sourceFile, symbolName2, container = sourceFile) { const positions = []; @@ -161365,14 +163659,14 @@ var Core; if (constructorSymbol && constructorSymbol.declarations) { for (const decl of constructorSymbol.declarations) { const ctrKeyword = findChildOfKind(decl, 137 /* ConstructorKeyword */, sourceFile); - Debug.assert(decl.kind === 175 /* Constructor */ && !!ctrKeyword); + Debug.assert(decl.kind === 176 /* Constructor */ && !!ctrKeyword); addNode(ctrKeyword); } } if (classSymbol.exports) { classSymbol.exports.forEach((member) => { const decl = member.valueDeclaration; - if (decl && decl.kind === 173 /* MethodDeclaration */) { + if (decl && decl.kind === 174 /* MethodDeclaration */) { const body = decl.body; if (body) { forEachDescendantOfKind(body, 110 /* ThisKeyword */, (thisKeyword) => { @@ -161394,7 +163688,7 @@ var Core; return; } for (const decl of constructor.declarations) { - Debug.assert(decl.kind === 175 /* Constructor */); + Debug.assert(decl.kind === 176 /* Constructor */); const body = decl.body; if (body) { forEachDescendantOfKind(body, 108 /* SuperKeyword */, (node) => { @@ -161429,12 +163723,12 @@ var Core; if (refNode.kind !== 80 /* Identifier */) { return; } - if (refNode.parent.kind === 303 /* ShorthandPropertyAssignment */) { + if (refNode.parent.kind === 304 /* ShorthandPropertyAssignment */) { getReferenceEntriesForShorthandPropertyAssignment(refNode, state.checker, addReference2); } - const containingClass = getContainingClassIfInHeritageClause(refNode); - if (containingClass) { - addReference2(containingClass); + const containingNode = getContainingNodeIfInHeritageClause(refNode); + if (containingNode) { + addReference2(containingNode); return; } const typeNode = findAncestor(refNode, (a) => !isQualifiedName(a.parent) && !isTypeNode(a.parent) && !isTypeElement(a.parent)); @@ -161444,7 +163738,7 @@ var Core; addIfImplementation(typeHavingNode.initializer); } else if (isFunctionLike(typeHavingNode) && typeHavingNode.body) { const body = typeHavingNode.body; - if (body.kind === 240 /* Block */) { + if (body.kind === 241 /* Block */) { forEachReturnStatement(body, (returnStatement) => { if (returnStatement.expression) addIfImplementation(returnStatement.expression); @@ -161461,18 +163755,18 @@ var Core; addReference2(e); } } - function getContainingClassIfInHeritageClause(node) { - return isIdentifier(node) || isPropertyAccessExpression(node) ? getContainingClassIfInHeritageClause(node.parent) : isExpressionWithTypeArguments(node) ? tryCast(node.parent.parent, isClassLike) : void 0; + function getContainingNodeIfInHeritageClause(node) { + return isIdentifier(node) || isPropertyAccessExpression(node) ? getContainingNodeIfInHeritageClause(node.parent) : isExpressionWithTypeArguments(node) ? tryCast(node.parent.parent, or(isClassLike, isInterfaceDeclaration)) : void 0; } function isImplementationExpression(node) { switch (node.kind) { - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return isImplementationExpression(node.expression); - case 218 /* ArrowFunction */: - case 217 /* FunctionExpression */: - case 209 /* ObjectLiteralExpression */: - case 230 /* ClassExpression */: - case 208 /* ArrayLiteralExpression */: + case 219 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 210 /* ObjectLiteralExpression */: + case 231 /* ClassExpression */: + case 209 /* ArrayLiteralExpression */: return true; default: return false; @@ -161506,13 +163800,13 @@ var Core; } let staticFlag = 32 /* Static */; switch (searchSpaceNode.kind) { - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: staticFlag &= getSyntacticModifierFlags(searchSpaceNode); searchSpaceNode = searchSpaceNode.parent; break; @@ -161534,7 +163828,7 @@ var Core; return [{ definition: { type: 0 /* Symbol */, symbol: searchSpaceNode.symbol }, references }]; } function isParameterName(node) { - return node.kind === 80 /* Identifier */ && node.parent.kind === 168 /* Parameter */ && node.parent.name === node; + return node.kind === 80 /* Identifier */ && node.parent.kind === 169 /* Parameter */ && node.parent.name === node; } function getReferencesForThisKeyword(thisOrSuperKeyword, sourceFiles, cancellationToken) { let searchSpaceNode = getThisContainer( @@ -161546,32 +163840,32 @@ var Core; ); let staticFlag = 32 /* Static */; switch (searchSpaceNode.kind) { - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: if (isObjectLiteralMethod(searchSpaceNode)) { staticFlag &= getSyntacticModifierFlags(searchSpaceNode); searchSpaceNode = searchSpaceNode.parent; break; } - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: staticFlag &= getSyntacticModifierFlags(searchSpaceNode); searchSpaceNode = searchSpaceNode.parent; break; - case 311 /* SourceFile */: + case 312 /* SourceFile */: if (isExternalModule(searchSpaceNode) || isParameterName(thisOrSuperKeyword)) { return void 0; } - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: break; default: return void 0; } - const references = flatMap(searchSpaceNode.kind === 311 /* SourceFile */ ? sourceFiles : [searchSpaceNode.getSourceFile()], (sourceFile) => { + const references = flatMap(searchSpaceNode.kind === 312 /* SourceFile */ ? sourceFiles : [searchSpaceNode.getSourceFile()], (sourceFile) => { cancellationToken.throwIfCancellationRequested(); return getPossibleSymbolReferenceNodes(sourceFile, "this", isSourceFile(searchSpaceNode) ? sourceFile : searchSpaceNode).filter((node) => { if (!isThis(node)) { @@ -161587,18 +163881,18 @@ var Core; if (!canHaveSymbol(container)) return false; switch (searchSpaceNode.kind) { - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: return searchSpaceNode.symbol === container.symbol; - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: return isObjectLiteralMethod(searchSpaceNode) && searchSpaceNode.symbol === container.symbol; - case 230 /* ClassExpression */: - case 262 /* ClassDeclaration */: - case 209 /* ObjectLiteralExpression */: + case 231 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 210 /* ObjectLiteralExpression */: return container.parent && canHaveSymbol(container.parent) && searchSpaceNode.symbol === container.parent.symbol && isStatic(container) === !!staticFlag; - case 311 /* SourceFile */: - return container.kind === 311 /* SourceFile */ && !isExternalModule(container) && !isParameterName(node); + case 312 /* SourceFile */: + return container.kind === 312 /* SourceFile */ && !isExternalModule(container) && !isParameterName(node); } }); }).map((n) => nodeEntry(n)); @@ -161722,7 +164016,7 @@ var Core; Debug.assert(paramProps.length === 2 && !!(paramProps[0].flags & 1 /* FunctionScopedVariable */) && !!(paramProps[1].flags & 4 /* Property */)); return fromRoot(symbol.flags & 1 /* FunctionScopedVariable */ ? paramProps[1] : paramProps[0]); } - const exportSpecifier = getDeclarationOfKind(symbol, 280 /* ExportSpecifier */); + const exportSpecifier = getDeclarationOfKind(symbol, 281 /* ExportSpecifier */); if (!isForRenamePopulateSearchSymbolSet || exportSpecifier && !exportSpecifier.propertyName) { const localSymbol = exportSpecifier && checker.getExportSpecifierLocalTargetSymbol(exportSpecifier); if (localSymbol) { @@ -161763,7 +164057,7 @@ var Core; ) || (rootSymbol.parent && rootSymbol.parent.flags & (32 /* Class */ | 64 /* Interface */) && allowBaseTypes(rootSymbol) ? getPropertySymbolsFromBaseTypes(rootSymbol.parent, rootSymbol.name, checker, (base) => cbSymbol(sym, rootSymbol, base, kind)) : void 0)); } function getPropertySymbolOfObjectBindingPatternWithoutPropertyName(symbol2, checker2) { - const bindingElement = getDeclarationOfKind(symbol2, 207 /* BindingElement */); + const bindingElement = getDeclarationOfKind(symbol2, 208 /* BindingElement */); if (bindingElement && isObjectBindingElementWithoutPropertyName(bindingElement)) { return getPropertySymbolFromBindingElement(checker2, bindingElement); } @@ -161829,7 +164123,7 @@ var Core; } Core2.getIntersectingMeaningFromDeclarations = getIntersectingMeaningFromDeclarations; function isImplementation(node) { - return !!(node.flags & 16777216 /* Ambient */) ? !(isInterfaceDeclaration(node) || isTypeAliasDeclaration(node)) : isVariableLike(node) ? hasInitializer(node) : isFunctionLikeDeclaration(node) ? !!node.body : isClassLike(node) || isModuleOrEnumDeclaration(node); + return !!(node.flags & 33554432 /* Ambient */) ? !(isInterfaceDeclaration(node) || isTypeAliasDeclaration(node)) : isVariableLike(node) ? hasInitializer(node) : isFunctionLikeDeclaration(node) ? !!node.body : isClassLike(node) || isModuleOrEnumDeclaration(node); } function getReferenceEntriesForShorthandPropertyAssignment(node, checker, addReference2) { const refSymbol = checker.getSymbolAtLocation(node); @@ -161890,7 +164184,7 @@ function getDefinitionAtPosition(program, sourceFile, position, searchOtherFiles } const { parent: parent2 } = node; const typeChecker = program.getTypeChecker(); - if (node.kind === 163 /* OverrideKeyword */ || isIdentifier(node) && isJSDocOverrideTag(parent2) && parent2.tagName === node) { + if (node.kind === 164 /* OverrideKeyword */ || isIdentifier(node) && isJSDocOverrideTag(parent2) && parent2.tagName === node) { return getDefinitionFromOverriddenMember(typeChecker, node) || emptyArray; } if (isJumpStatementTarget(node)) { @@ -161981,7 +164275,7 @@ function getDefinitionAtPosition(program, sourceFile, position, searchOtherFiles return node.kind === 108 /* SuperKeyword */ ? [sigInfo, ...defs] : [...defs, sigInfo]; } } - if (node.parent.kind === 303 /* ShorthandPropertyAssignment */) { + if (node.parent.kind === 304 /* ShorthandPropertyAssignment */) { const shorthandSymbol = typeChecker.getShorthandAssignmentValueSymbol(symbol.valueDeclaration); const definitions = (shorthandSymbol == null ? void 0 : shorthandSymbol.declarations) ? shorthandSymbol.declarations.map((decl) => createDefinitionInfo( decl, @@ -162082,6 +164376,76 @@ function getReferenceAtPosition(sourceFile, position, program) { } return void 0; } +var typesWithUnwrappedTypeArguments = /* @__PURE__ */ new Set([ + "Array", + "ArrayLike", + "ReadonlyArray", + "Promise", + "PromiseLike", + "Iterable", + "IterableIterator", + "AsyncIterable", + "Set", + "WeakSet", + "ReadonlySet", + "Map", + "WeakMap", + "ReadonlyMap", + "Partial", + "Required", + "Readonly", + "Pick", + "Omit" +]); +function shouldUnwrapFirstTypeArgumentTypeDefinitionFromTypeReference(typeChecker, type) { + const referenceName = type.symbol.name; + if (!typesWithUnwrappedTypeArguments.has(referenceName)) { + return false; + } + const globalType = typeChecker.resolveName( + referenceName, + /*location*/ + void 0, + 788968 /* Type */, + /*excludeGlobals*/ + false + ); + return !!globalType && globalType === type.target.symbol; +} +function shouldUnwrapFirstTypeArgumentTypeDefinitionFromAlias(typeChecker, type) { + if (!type.aliasSymbol) { + return false; + } + const referenceName = type.aliasSymbol.name; + if (!typesWithUnwrappedTypeArguments.has(referenceName)) { + return false; + } + const globalType = typeChecker.resolveName( + referenceName, + /*location*/ + void 0, + 788968 /* Type */, + /*excludeGlobals*/ + false + ); + return !!globalType && globalType === type.aliasSymbol; +} +function getFirstTypeArgumentDefinitions(typeChecker, type, node, failedAliasResolution) { + var _a, _b; + if (!!(getObjectFlags(type) & 4 /* Reference */) && shouldUnwrapFirstTypeArgumentTypeDefinitionFromTypeReference(typeChecker, type)) { + return definitionFromType(typeChecker.getTypeArguments(type)[0], typeChecker, node, failedAliasResolution); + } + if (shouldUnwrapFirstTypeArgumentTypeDefinitionFromAlias(typeChecker, type) && type.aliasTypeArguments) { + return definitionFromType(type.aliasTypeArguments[0], typeChecker, node, failedAliasResolution); + } + if (getObjectFlags(type) & 32 /* Mapped */ && type.target && shouldUnwrapFirstTypeArgumentTypeDefinitionFromAlias(typeChecker, type.target)) { + const declaration = (_b = (_a = type.aliasSymbol) == null ? void 0 : _a.declarations) == null ? void 0 : _b[0]; + if (declaration && isTypeAliasDeclaration(declaration) && isTypeReferenceNode(declaration.type) && declaration.type.typeArguments) { + return definitionFromType(typeChecker.getTypeAtLocation(declaration.type.typeArguments[0]), typeChecker, node, failedAliasResolution); + } + } + return []; +} function getTypeDefinitionAtPosition(typeChecker, sourceFile, position) { const node = getTouchingPropertyName(sourceFile, position); if (node === sourceFile) { @@ -162107,8 +164471,8 @@ function getTypeDefinitionAtPosition(typeChecker, sourceFile, position) { const typeAtLocation = typeChecker.getTypeOfSymbolAtLocation(symbol, node); const returnType = tryGetReturnTypeOfFunction(symbol, typeAtLocation, typeChecker); const fromReturnType = returnType && definitionFromType(returnType, typeChecker, node, failedAliasResolution); - const typeDefinitions = fromReturnType && fromReturnType.length !== 0 ? fromReturnType : definitionFromType(typeAtLocation, typeChecker, node, failedAliasResolution); - return typeDefinitions.length ? typeDefinitions : !(symbol.flags & 111551 /* Value */) && symbol.flags & 788968 /* Type */ ? getDefinitionFromSymbol(typeChecker, skipAlias(symbol, typeChecker), node, failedAliasResolution) : void 0; + const [resolvedType, typeDefinitions] = fromReturnType && fromReturnType.length !== 0 ? [returnType, fromReturnType] : [typeAtLocation, definitionFromType(typeAtLocation, typeChecker, node, failedAliasResolution)]; + return typeDefinitions.length ? [...getFirstTypeArgumentDefinitions(typeChecker, resolvedType, node, failedAliasResolution), ...typeDefinitions] : !(symbol.flags & 111551 /* Value */) && symbol.flags & 788968 /* Type */ ? getDefinitionFromSymbol(typeChecker, skipAlias(symbol, typeChecker), node, failedAliasResolution) : void 0; } function definitionFromType(type, checker, node, failedAliasResolution) { return flatMap(type.isUnion() && !(type.flags & 32 /* Enum */) ? type.types : [type], (t) => t.symbol && getDefinitionFromSymbol(checker, t.symbol, node, failedAliasResolution)); @@ -162158,7 +164522,7 @@ function shouldSkipAlias(node, declaration) { if (node.parent === declaration) { return true; } - if (declaration.kind === 273 /* NamespaceImport */) { + if (declaration.kind === 274 /* NamespaceImport */) { return false; } return true; @@ -162248,7 +164612,7 @@ function createDefinitionInfoFromName(checker, declaration, symbolKind, symbolNa ts_FindAllReferences_exports.getContextNode(declaration) ), isLocal: !isDefinitionVisible(checker, declaration), - isAmbient: !!(declaration.flags & 16777216 /* Ambient */), + isAmbient: !!(declaration.flags & 33554432 /* Ambient */), unverified, failedAliasResolution }; @@ -162261,19 +164625,19 @@ function isDefinitionVisible(checker, declaration) { if (hasInitializer(declaration.parent) && declaration.parent.initializer === declaration) return isDefinitionVisible(checker, declaration.parent); switch (declaration.kind) { - case 171 /* PropertyDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 173 /* MethodDeclaration */: + case 172 /* PropertyDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: if (hasEffectiveModifier(declaration, 8 /* Private */)) return false; - case 175 /* Constructor */: - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: - case 209 /* ObjectLiteralExpression */: - case 230 /* ClassExpression */: - case 218 /* ArrowFunction */: - case 217 /* FunctionExpression */: + case 176 /* Constructor */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 210 /* ObjectLiteralExpression */: + case 231 /* ClassExpression */: + case 219 /* ArrowFunction */: + case 218 /* FunctionExpression */: return isDefinitionVisible(checker, declaration.parent); default: return false; @@ -162317,9 +164681,9 @@ function tryGetSignatureDeclaration(typeChecker, node) { } function isConstructorLike(node) { switch (node.kind) { - case 175 /* Constructor */: - case 184 /* ConstructorType */: - case 179 /* ConstructSignature */: + case 176 /* Constructor */: + case 185 /* ConstructorType */: + case 180 /* ConstructSignature */: return true; default: return false; @@ -162333,7 +164697,7 @@ __export(ts_InlayHints_exports, { }); // src/services/inlayHints.ts -var maxHintsLength = 30; +var maxTypeHintLength = 30; var leadingParameterNameCommentRegexFactory = (name) => { return new RegExp(`^\\s?/\\*\\*?\\s?${name}\\s?\\*\\/\\s?$`); }; @@ -162343,6 +164707,9 @@ function shouldShowParameterNameHints(preferences) { function shouldShowLiteralParameterNameHintsOnly(preferences) { return preferences.includeInlayParameterNameHints === "literals"; } +function shouldUseInteractiveInlayHints(preferences) { + return preferences.interactiveInlayHints === true; +} function provideInlayHints(context) { const { file, program, span, cancellationToken, preferences } = context; const sourceFileText = file.text; @@ -162356,14 +164723,14 @@ function provideInlayHints(context) { return; } switch (node.kind) { - case 266 /* ModuleDeclaration */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 261 /* FunctionDeclaration */: - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: - case 173 /* MethodDeclaration */: - case 218 /* ArrowFunction */: + case 267 /* ModuleDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 262 /* FunctionDeclaration */: + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: + case 174 /* MethodDeclaration */: + case 219 /* ArrowFunction */: cancellationToken.throwIfCancellationRequested(); } if (!textSpanIntersectsWith(span, node.pos, node.getFullWidth())) { @@ -162393,17 +164760,26 @@ function provideInlayHints(context) { function isSignatureSupportingReturnAnnotation(node) { return isArrowFunction(node) || isFunctionExpression(node) || isFunctionDeclaration(node) || isMethodDeclaration(node) || isGetAccessorDeclaration(node); } - function addParameterHints(text, position, isFirstVariadicArgument) { + function addParameterHints(text, parameter, position, isFirstVariadicArgument) { + let hintText = `${isFirstVariadicArgument ? "..." : ""}${text}`; + let displayParts; + if (shouldUseInteractiveInlayHints(preferences)) { + displayParts = [getNodeDisplayPart(hintText, parameter), { text: ":" }]; + hintText = ""; + } else { + hintText += ":"; + } result.push({ - text: `${isFirstVariadicArgument ? "..." : ""}${truncation(text, maxHintsLength)}:`, + text: hintText, position, kind: "Parameter" /* Parameter */, - whitespaceAfter: true + whitespaceAfter: true, + displayParts }); } function addTypeHints(text, position) { result.push({ - text: `: ${truncation(text, maxHintsLength)}`, + text: `: ${text.length > maxTypeHintLength ? text.substr(0, maxTypeHintLength - "...".length) + "..." : text}`, position, kind: "Type" /* Type */, whitespaceBefore: true @@ -162411,7 +164787,7 @@ function provideInlayHints(context) { } function addEnumMemberValueHints(text, position) { result.push({ - text: `= ${truncation(text, maxHintsLength)}`, + text: `= ${text}`, position, kind: "Enum" /* Enum */, whitespaceBefore: true @@ -162460,15 +164836,31 @@ function provideInlayHints(context) { if (!signature || !candidates.length) { return; } - for (let i = 0; i < args.length; ++i) { - const originalArg = args[i]; + let signatureParamPos = 0; + for (const originalArg of args) { const arg = skipParentheses(originalArg); if (shouldShowLiteralParameterNameHintsOnly(preferences) && !isHintableLiteral(arg)) { continue; } - const identifierNameInfo = checker.getParameterIdentifierNameAtPosition(signature, i); - if (identifierNameInfo) { - const [parameterName, isFirstVariadicArgument] = identifierNameInfo; + let spreadArgs = 0; + if (isSpreadElement(arg)) { + const spreadType = checker.getTypeAtLocation(arg.expression); + if (checker.isTupleType(spreadType)) { + const { elementFlags, fixedLength } = spreadType.target; + if (fixedLength === 0) { + continue; + } + const firstOptionalIndex = findIndex(elementFlags, (f) => !(f & 1 /* Required */)); + const requiredArgs = firstOptionalIndex < 0 ? fixedLength : firstOptionalIndex; + if (requiredArgs > 0) { + spreadArgs = firstOptionalIndex < 0 ? fixedLength : firstOptionalIndex; + } + } + } + const identifierInfo = checker.getParameterIdentifierInfoAtPosition(signature, signatureParamPos); + signatureParamPos = signatureParamPos + (spreadArgs || 1); + if (identifierInfo) { + const { parameter, parameterName, isRestParameter: isFirstVariadicArgument } = identifierInfo; const isParameterNameNotSameAsArgument = preferences.includeInlayParameterNameHintsWhenArgumentMatchesName || !identifierOrAccessExpressionPostfixMatchesParameterName(arg, parameterName); if (!isParameterNameNotSameAsArgument && !isFirstVariadicArgument) { continue; @@ -162477,7 +164869,7 @@ function provideInlayHints(context) { if (leadingCommentsContainsParameterName(arg, name)) { continue; } - addParameterHints(name, originalArg.getStart(), isFirstVariadicArgument); + addParameterHints(name, parameter, originalArg.getStart(), isFirstVariadicArgument); } } } @@ -162503,7 +164895,7 @@ function provideInlayHints(context) { } function isHintableLiteral(node) { switch (node.kind) { - case 223 /* PrefixUnaryExpression */: { + case 224 /* PrefixUnaryExpression */: { const operand = node.operand; return isLiteralExpression(operand) || isIdentifier(operand) && isInfinityOrNaNString(operand.escapedText); } @@ -162511,7 +164903,7 @@ function provideInlayHints(context) { case 97 /* FalseKeyword */: case 106 /* NullKeyword */: case 15 /* NoSubstitutionTemplateLiteral */: - case 227 /* TemplateExpression */: + case 228 /* TemplateExpression */: return true; case 80 /* Identifier */: { const name = node.escapedText; @@ -162583,12 +164975,6 @@ function provideInlayHints(context) { } return printTypeInSingleLine(signatureParamType); } - function truncation(text, maxLength2) { - if (text.length > maxLength2) { - return text.substr(0, maxLength2 - "...".length) + "..."; - } - return text; - } function printTypeInSingleLine(type) { const flags = 70221824 /* IgnoreErrors */ | 1048576 /* AllowUniqueESSymbolType */ | 16384 /* UseAliasDefinedOutsideCurrentScope */; const printer = createPrinterWithRemoveComments(); @@ -162619,6 +165005,14 @@ function provideInlayHints(context) { } return true; } + function getNodeDisplayPart(text, node) { + const sourceFile = node.getSourceFile(); + return { + text, + span: createTextSpanFromNode(node, sourceFile), + file: sourceFile.fileName + }; + } } // src/services/_namespaces/ts.JsDoc.ts @@ -162727,8 +165121,8 @@ function getJsDocCommentsFromDeclarations(declarations, checker) { const parts = []; forEachUnique(declarations, (declaration) => { for (const jsdoc of getCommentHavingNodes(declaration)) { - const inheritDoc = isJSDoc(jsdoc) && jsdoc.tags && find(jsdoc.tags, (t) => t.kind === 333 /* JSDocTag */ && (t.tagName.escapedText === "inheritDoc" || t.tagName.escapedText === "inheritdoc")); - if (jsdoc.comment === void 0 && !inheritDoc || isJSDoc(jsdoc) && declaration.kind !== 352 /* JSDocTypedefTag */ && declaration.kind !== 344 /* JSDocCallbackTag */ && jsdoc.tags && jsdoc.tags.some((t) => t.kind === 352 /* JSDocTypedefTag */ || t.kind === 344 /* JSDocCallbackTag */) && !jsdoc.tags.some((t) => t.kind === 347 /* JSDocParameterTag */ || t.kind === 348 /* JSDocReturnTag */)) { + const inheritDoc = isJSDoc(jsdoc) && jsdoc.tags && find(jsdoc.tags, (t) => t.kind === 334 /* JSDocTag */ && (t.tagName.escapedText === "inheritDoc" || t.tagName.escapedText === "inheritdoc")); + if (jsdoc.comment === void 0 && !inheritDoc || isJSDoc(jsdoc) && declaration.kind !== 353 /* JSDocTypedefTag */ && declaration.kind !== 345 /* JSDocCallbackTag */ && jsdoc.tags && jsdoc.tags.some((t) => t.kind === 353 /* JSDocTypedefTag */ || t.kind === 345 /* JSDocCallbackTag */) && !jsdoc.tags.some((t) => t.kind === 348 /* JSDocParameterTag */ || t.kind === 349 /* JSDocReturnTag */)) { continue; } let newparts = jsdoc.comment ? getDisplayPartsFromComment(jsdoc.comment, checker) : []; @@ -162747,11 +165141,11 @@ function isIdenticalListOfDisplayParts(parts1, parts2) { } function getCommentHavingNodes(declaration) { switch (declaration.kind) { - case 347 /* JSDocParameterTag */: - case 354 /* JSDocPropertyTag */: + case 348 /* JSDocParameterTag */: + case 355 /* JSDocPropertyTag */: return [declaration]; - case 344 /* JSDocCallbackTag */: - case 352 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: + case 353 /* JSDocTypedefTag */: return [declaration, declaration.parent]; default: return getJSDocCommentsAndTags(declaration); @@ -162761,7 +165155,7 @@ function getJsDocTagsFromDeclarations(declarations, checker) { const infos = []; forEachUnique(declarations, (declaration) => { const tags = getJSDocTags(declaration); - if (tags.some((t) => t.kind === 352 /* JSDocTypedefTag */ || t.kind === 344 /* JSDocCallbackTag */) && !tags.some((t) => t.kind === 347 /* JSDocParameterTag */ || t.kind === 348 /* JSDocReturnTag */)) { + if (tags.some((t) => t.kind === 353 /* JSDocTypedefTag */ || t.kind === 345 /* JSDocCallbackTag */) && !tags.some((t) => t.kind === 348 /* JSDocParameterTag */ || t.kind === 349 /* JSDocReturnTag */)) { return; } for (const tag of tags) { @@ -162776,21 +165170,21 @@ function getDisplayPartsFromComment(comment, checker) { } return flatMap( comment, - (node) => node.kind === 327 /* JSDocText */ ? [textPart(node.text)] : buildLinkParts(node, checker) + (node) => node.kind === 328 /* JSDocText */ ? [textPart(node.text)] : buildLinkParts(node, checker) ); } function getCommentDisplayParts(tag, checker) { const { comment, kind } = tag; const namePart = getTagNameDisplayPart(kind); switch (kind) { - case 355 /* JSDocThrowsTag */: + case 356 /* JSDocThrowsTag */: const typeExpression = tag.typeExpression; return typeExpression ? withNode(typeExpression) : comment === void 0 ? void 0 : getDisplayPartsFromComment(comment, checker); - case 335 /* JSDocImplementsTag */: + case 336 /* JSDocImplementsTag */: return withNode(tag.class); - case 334 /* JSDocAugmentsTag */: + case 335 /* JSDocAugmentsTag */: return withNode(tag.class); - case 351 /* JSDocTemplateTag */: + case 352 /* JSDocTemplateTag */: const templateTag = tag; const displayParts = []; if (templateTag.constraint) { @@ -162812,14 +165206,14 @@ function getCommentDisplayParts(tag, checker) { displayParts.push(...[spacePart(), ...getDisplayPartsFromComment(comment, checker)]); } return displayParts; - case 350 /* JSDocTypeTag */: - case 356 /* JSDocSatisfiesTag */: + case 351 /* JSDocTypeTag */: + case 357 /* JSDocSatisfiesTag */: return withNode(tag.typeExpression); - case 352 /* JSDocTypedefTag */: - case 344 /* JSDocCallbackTag */: - case 354 /* JSDocPropertyTag */: - case 347 /* JSDocParameterTag */: - case 353 /* JSDocSeeTag */: + case 353 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: + case 355 /* JSDocPropertyTag */: + case 348 /* JSDocParameterTag */: + case 354 /* JSDocSeeTag */: const { name } = tag; return name ? withNode(name) : comment === void 0 ? void 0 : getDisplayPartsFromComment(comment, checker); default: @@ -162842,14 +165236,14 @@ function getCommentDisplayParts(tag, checker) { } function getTagNameDisplayPart(kind) { switch (kind) { - case 347 /* JSDocParameterTag */: + case 348 /* JSDocParameterTag */: return parameterNamePart; - case 354 /* JSDocPropertyTag */: + case 355 /* JSDocPropertyTag */: return propertyNamePart; - case 351 /* JSDocTemplateTag */: + case 352 /* JSDocTemplateTag */: return typeParameterNamePart; - case 352 /* JSDocTypedefTag */: - case 344 /* JSDocCallbackTag */: + case 353 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: return typeAliasNamePart; default: return textPart; @@ -162943,7 +165337,7 @@ function getDocCommentTemplateAtPosition(newLine, sourceFile, position, options) const tags = (parameters ? parameterDocComments(parameters || [], isJavaScriptFile, indentationStr, newLine) : "") + (hasReturn2 ? returnsDocComment(indentationStr, newLine) : ""); const openComment = "/**"; const closeComment = " */"; - const hasTag = (commentOwnerJsDoc || []).some((jsDoc) => !!jsDoc.tags); + const hasTag = length(getJSDocTags(commentOwner)) > 0; if (tags && !hasTag) { const preamble = openComment + newLine + indentationStr + " * "; const endLine = tokenStart === position ? newLine + indentationStr : ""; @@ -162975,46 +165369,46 @@ function getCommentOwnerInfo(tokenAtPos, options) { } function getCommentOwnerInfoWorker(commentOwner, options) { switch (commentOwner.kind) { - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 173 /* MethodDeclaration */: - case 175 /* Constructor */: - case 172 /* MethodSignature */: - case 218 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: + case 173 /* MethodSignature */: + case 219 /* ArrowFunction */: const host = commentOwner; return { commentOwner, parameters: host.parameters, hasReturn: hasReturn(host, options) }; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return getCommentOwnerInfoWorker(commentOwner.initializer, options); - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: - case 305 /* EnumMember */: - case 264 /* TypeAliasDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + case 306 /* EnumMember */: + case 265 /* TypeAliasDeclaration */: return { commentOwner }; - case 170 /* PropertySignature */: { + case 171 /* PropertySignature */: { const host2 = commentOwner; return host2.type && isFunctionTypeNode(host2.type) ? { commentOwner, parameters: host2.type.parameters, hasReturn: hasReturn(host2.type, options) } : { commentOwner }; } - case 242 /* VariableStatement */: { + case 243 /* VariableStatement */: { const varStatement = commentOwner; const varDeclarations = varStatement.declarationList.declarations; const host2 = varDeclarations.length === 1 && varDeclarations[0].initializer ? getRightHandSideOfAssignment(varDeclarations[0].initializer) : void 0; return host2 ? { commentOwner, parameters: host2.parameters, hasReturn: hasReturn(host2, options) } : { commentOwner }; } - case 311 /* SourceFile */: + case 312 /* SourceFile */: return "quit"; - case 266 /* ModuleDeclaration */: - return commentOwner.parent.kind === 266 /* ModuleDeclaration */ ? void 0 : { commentOwner }; - case 243 /* ExpressionStatement */: + case 267 /* ModuleDeclaration */: + return commentOwner.parent.kind === 267 /* ModuleDeclaration */ ? void 0 : { commentOwner }; + case 244 /* ExpressionStatement */: return getCommentOwnerInfoWorker(commentOwner.expression, options); - case 225 /* BinaryExpression */: { + case 226 /* BinaryExpression */: { const be = commentOwner; if (getAssignmentDeclarationKind(be) === 0 /* None */) { return "quit"; } return isFunctionLike(be.right) ? { commentOwner, parameters: be.right.parameters, hasReturn: hasReturn(be.right, options) } : { commentOwner }; } - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: const init = commentOwner.initializer; if (init && (isFunctionExpression(init) || isArrowFunction(init))) { return { commentOwner, parameters: init.parameters, hasReturn: hasReturn(init, options) }; @@ -163025,14 +165419,14 @@ function hasReturn(node, options) { return !!(options == null ? void 0 : options.generateReturnInDocTemplate) && (isFunctionTypeNode(node) || isArrowFunction(node) && isExpression(node.body) || isFunctionLikeDeclaration(node) && node.body && isBlock(node.body) && !!forEachReturnStatement(node.body, (n) => n)); } function getRightHandSideOfAssignment(rightHandSide) { - while (rightHandSide.kind === 216 /* ParenthesizedExpression */) { + while (rightHandSide.kind === 217 /* ParenthesizedExpression */) { rightHandSide = rightHandSide.expression; } switch (rightHandSide.kind) { - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return rightHandSide; - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return find(rightHandSide.members, isConstructorDeclaration); } } @@ -163090,7 +165484,7 @@ function organizeImports(sourceFile, formatContext, host, program, preferences, if (length(oldImportDecls) === 0) { return; } - suppressLeadingTrivia(oldImportDecls[0]); + setEmitFlags(oldImportDecls[0], 1024 /* NoLeadingComments */); const oldImportGroups = shouldCombine ? group(oldImportDecls, (importDecl) => getExternalModuleName2(importDecl.moduleSpecifier)) : [oldImportDecls]; const sortedImportGroups = shouldSort ? stableSort(oldImportGroups, (group1, group2) => compareModuleSpecifiersWorker(group1[0].moduleSpecifier, group2[0].moduleSpecifier, comparer)) : oldImportGroups; const newImportDecls = flatMap(sortedImportGroups, (importGroup) => getExternalModuleName2(importGroup[0].moduleSpecifier) || importGroup[0].moduleSpecifier === void 0 ? coalesce(importGroup) : importGroup); @@ -163413,11 +165807,11 @@ function compareModuleSpecifiersWorker(m1, m2, comparer) { function getModuleSpecifierExpression(declaration) { var _a; switch (declaration.kind) { - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return (_a = tryCast(declaration.moduleReference, isExternalModuleReference)) == null ? void 0 : _a.expression; - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return declaration.moduleSpecifier; - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return declaration.declarationList.declarations[0].initializer.arguments[0]; } } @@ -163553,19 +165947,19 @@ function compareImportKind(s1, s2) { function getImportKindOrder(s1) { var _a; switch (s1.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: if (!s1.importClause) return 0; if (s1.importClause.isTypeOnly) return 1; - if (((_a = s1.importClause.namedBindings) == null ? void 0 : _a.kind) === 273 /* NamespaceImport */) + if (((_a = s1.importClause.namedBindings) == null ? void 0 : _a.kind) === 274 /* NamespaceImport */) return 2; if (s1.importClause.name) return 3; return 4; - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return 5; - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return 6; } } @@ -163814,21 +166208,21 @@ function createOutliningSpanFromBounds(pos, end, kind) { } function getOutliningSpanForNode(n, sourceFile) { switch (n.kind) { - case 240 /* Block */: + case 241 /* Block */: if (isFunctionLike(n.parent)) { return functionSpan(n.parent, n, sourceFile); } switch (n.parent.kind) { - case 245 /* DoStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 247 /* ForStatement */: - case 244 /* IfStatement */: - case 246 /* WhileStatement */: - case 253 /* WithStatement */: - case 298 /* CatchClause */: + case 246 /* DoStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 248 /* ForStatement */: + case 245 /* IfStatement */: + case 247 /* WhileStatement */: + case 254 /* WithStatement */: + case 299 /* CatchClause */: return spanForNode(n.parent); - case 257 /* TryStatement */: + case 258 /* TryStatement */: const tryStatement = n.parent; if (tryStatement.tryBlock === n) { return spanForNode(n.parent); @@ -163840,17 +166234,17 @@ function getOutliningSpanForNode(n, sourceFile) { default: return createOutliningSpan(createTextSpanFromNode(n, sourceFile), "code" /* Code */); } - case 267 /* ModuleBlock */: + case 268 /* ModuleBlock */: return spanForNode(n.parent); - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: - case 268 /* CaseBlock */: - case 186 /* TypeLiteral */: - case 205 /* ObjectBindingPattern */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + case 269 /* CaseBlock */: + case 187 /* TypeLiteral */: + case 206 /* ObjectBindingPattern */: return spanForNode(n); - case 188 /* TupleType */: + case 189 /* TupleType */: return spanForNode( n, /*autoCollapse*/ @@ -163859,24 +166253,24 @@ function getOutliningSpanForNode(n, sourceFile) { !isTupleTypeNode(n.parent), 23 /* OpenBracketToken */ ); - case 295 /* CaseClause */: - case 296 /* DefaultClause */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: return spanForNodeArray(n.statements); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return spanForObjectOrArrayLiteral(n); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return spanForObjectOrArrayLiteral(n, 23 /* OpenBracketToken */); - case 283 /* JsxElement */: + case 284 /* JsxElement */: return spanForJSXElement(n); - case 287 /* JsxFragment */: + case 288 /* JsxFragment */: return spanForJSXFragment(n); - case 284 /* JsxSelfClosingElement */: - case 285 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: return spanForJSXAttributes(n.attributes); - case 227 /* TemplateExpression */: + case 228 /* TemplateExpression */: case 15 /* NoSubstitutionTemplateLiteral */: return spanForTemplateLiteral(n); - case 206 /* ArrayBindingPattern */: + case 207 /* ArrayBindingPattern */: return spanForNode( n, /*autoCollapse*/ @@ -163885,15 +166279,15 @@ function getOutliningSpanForNode(n, sourceFile) { !isBindingElement(n.parent), 23 /* OpenBracketToken */ ); - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return spanForArrowFunction(n); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return spanForCallExpression(n); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return spanForParenthesizedExpression(n); - case 274 /* NamedImports */: - case 278 /* NamedExports */: - case 299 /* AssertClause */: + case 275 /* NamedImports */: + case 279 /* NamedExports */: + case 300 /* AssertClause */: return spanForNamedImportsOrExportsOrAssertClause(n); } function spanForNamedImportsOrExportsOrAssertClause(node) { @@ -164014,7 +166408,7 @@ function functionSpan(node, body, sourceFile) { node, sourceFile, /*autoCollapse*/ - node.kind !== 218 /* ArrowFunction */ + node.kind !== 219 /* ArrowFunction */ ); } function spanBetweenTokens(openToken, closeToken, hintSpanNode, sourceFile, autoCollapse = false, useFullStart = true) { @@ -164083,7 +166477,7 @@ function getRenameInfoForNode(node, typeChecker, sourceFile, program, preference return getRenameInfoError(wouldRenameNodeModules); } const kind = ts_SymbolDisplay_exports.getSymbolKind(typeChecker, symbol, node); - const specifierName = isImportOrExportSpecifierName(node) || isStringOrNumericLiteralLike(node) && node.parent.kind === 166 /* ComputedPropertyName */ ? stripQuotes(getTextOfIdentifierOrLiteral(node)) : void 0; + const specifierName = isImportOrExportSpecifierName(node) || isStringOrNumericLiteralLike(node) && node.parent.kind === 167 /* ComputedPropertyName */ ? stripQuotes(getTextOfIdentifierOrLiteral(node)) : void 0; const displayName = specifierName || typeChecker.symbolToString(symbol); const fullDisplayName = specifierName || typeChecker.getFullyQualifiedName(symbol); return getRenameInfoSuccess(displayName, fullDisplayName, kind, ts_SymbolDisplay_exports.getSymbolModifiers(typeChecker, symbol), node, sourceFile); @@ -164357,10 +166751,10 @@ function getImmediatelyContainingArgumentInfo(node, position, sourceFile) { ); } return void 0; - } else if (isTemplateHead(node) && parent2.parent.kind === 214 /* TaggedTemplateExpression */) { + } else if (isTemplateHead(node) && parent2.parent.kind === 215 /* TaggedTemplateExpression */) { const templateExpression = parent2; const tagExpression = templateExpression.parent; - Debug.assert(templateExpression.kind === 227 /* TemplateExpression */); + Debug.assert(templateExpression.kind === 228 /* TemplateExpression */); const argumentIndex = isInsideTemplateLiteral(node, position, sourceFile) ? 0 : 1; return getArgumentListInfoForTemplate(tagExpression, argumentIndex, sourceFile); } else if (isTemplateSpan(parent2) && isTaggedTemplateExpression(parent2.parent.parent)) { @@ -164437,17 +166831,17 @@ function getAdjustedNode(node) { function getContextualSignatureLocationInfo(node, sourceFile, position, checker) { const { parent: parent2 } = node; switch (parent2.kind) { - case 216 /* ParenthesizedExpression */: - case 173 /* MethodDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 217 /* ParenthesizedExpression */: + case 174 /* MethodDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: const info = getArgumentOrParameterListInfo(node, position, sourceFile); if (!info) return void 0; const { argumentIndex, argumentCount, argumentsSpan } = info; const contextualType = isMethodDeclaration(parent2) ? checker.getContextualTypeForObjectLiteralElement(parent2) : checker.getContextualType(parent2); return contextualType && { contextualType, argumentIndex, argumentCount, argumentsSpan }; - case 225 /* BinaryExpression */: { + case 226 /* BinaryExpression */: { const highestBinary = getHighestBinary(parent2); const contextualType2 = checker.getContextualType(highestBinary); const argumentIndex2 = node.kind === 21 /* OpenParenToken */ ? 0 : countBinaryExpressionParameters(parent2) - 1; @@ -164521,7 +166915,7 @@ function getApplicableSpanForTaggedTemplate(taggedTemplate, sourceFile) { const template = taggedTemplate.template; const applicableSpanStart = template.getStart(); let applicableSpanEnd = template.getEnd(); - if (template.kind === 227 /* TemplateExpression */) { + if (template.kind === 228 /* TemplateExpression */) { const lastSpan = last(template.templateSpans); if (lastSpan.literal.getFullWidth() === 0) { applicableSpanEnd = skipTrivia( @@ -164821,7 +167215,7 @@ function getSelectionChildren(node) { const groupedWithPlusMinusTokens = groupChildren(children, (child) => child === node.readonlyToken || child.kind === 148 /* ReadonlyKeyword */ || child === node.questionToken || child.kind === 58 /* QuestionToken */); const groupedWithBrackets = groupChildren( groupedWithPlusMinusTokens, - ({ kind }) => kind === 23 /* OpenBracketToken */ || kind === 167 /* TypeParameter */ || kind === 24 /* CloseBracketToken */ + ({ kind }) => kind === 23 /* OpenBracketToken */ || kind === 168 /* TypeParameter */ || kind === 24 /* CloseBracketToken */ ); return [ openBraceToken, @@ -164832,7 +167226,7 @@ function getSelectionChildren(node) { } if (isPropertySignature(node)) { const children = groupChildren(node.getChildren(), (child) => child === node.name || contains(node.modifiers, child)); - const firstJSDocChild = ((_a = children[0]) == null ? void 0 : _a.kind) === 326 /* JSDoc */ ? children[0] : void 0; + const firstJSDocChild = ((_a = children[0]) == null ? void 0 : _a.kind) === 327 /* JSDoc */ ? children[0] : void 0; const withJSDocSeparated = firstJSDocChild ? children.slice(1) : children; const splittedChildren = splitChildren(withJSDocSeparated, ({ kind }) => kind === 59 /* ColonToken */); return firstJSDocChild ? [firstJSDocChild, createSyntaxList2(splittedChildren)] : splittedChildren; @@ -164893,19 +167287,19 @@ function createSyntaxList2(children) { } function isListOpener(token) { const kind = token && token.kind; - return kind === 19 /* OpenBraceToken */ || kind === 23 /* OpenBracketToken */ || kind === 21 /* OpenParenToken */ || kind === 285 /* JsxOpeningElement */; + return kind === 19 /* OpenBraceToken */ || kind === 23 /* OpenBracketToken */ || kind === 21 /* OpenParenToken */ || kind === 286 /* JsxOpeningElement */; } function isListCloser(token) { const kind = token && token.kind; - return kind === 20 /* CloseBraceToken */ || kind === 24 /* CloseBracketToken */ || kind === 22 /* CloseParenToken */ || kind === 286 /* JsxClosingElement */; + return kind === 20 /* CloseBraceToken */ || kind === 24 /* CloseBracketToken */ || kind === 22 /* CloseParenToken */ || kind === 287 /* JsxClosingElement */; } function getEndPos(sourceFile, node) { switch (node.kind) { - case 347 /* JSDocParameterTag */: - case 344 /* JSDocCallbackTag */: - case 354 /* JSDocPropertyTag */: - case 352 /* JSDocTypedefTag */: - case 349 /* JSDocThisTag */: + case 348 /* JSDocParameterTag */: + case 345 /* JSDocCallbackTag */: + case 355 /* JSDocPropertyTag */: + case 353 /* JSDocTypedefTag */: + case 350 /* JSDocThisTag */: return sourceFile.getLineEndOfPosition(node.getStart()); default: return node.getEnd(); @@ -164929,7 +167323,7 @@ function getSymbolKind(typeChecker, symbol, location) { } const flags = getCombinedLocalAndExportSymbolFlags(symbol); if (flags & 32 /* Class */) { - return getDeclarationOfKind(symbol, 230 /* ClassExpression */) ? "local class" /* localClassElement */ : "class" /* classElement */; + return getDeclarationOfKind(symbol, 231 /* ClassExpression */) ? "local class" /* localClassElement */ : "class" /* classElement */; } if (flags & 384 /* Enum */) return "enum" /* enumElement */; @@ -164967,6 +167361,10 @@ function getSymbolKindOfConstructorPropertyMethodAccessorFunctionOrVar(typeCheck return "parameter" /* parameterElement */; } else if (symbol.valueDeclaration && isVarConst(symbol.valueDeclaration)) { return "const" /* constElement */; + } else if (symbol.valueDeclaration && isVarUsing(symbol.valueDeclaration)) { + return "using" /* variableUsingElement */; + } else if (symbol.valueDeclaration && isVarAwaitUsing(symbol.valueDeclaration)) { + return "await using" /* variableAwaitUsingElement */; } else if (forEach(symbol.declarations, isLet)) { return "let" /* letElement */; } @@ -165034,7 +167432,7 @@ function getSymbolModifiers(typeChecker, symbol) { } return modifiers.size > 0 ? arrayFrom(modifiers.values()).join(",") : "" /* none */; } -function getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, symbol, sourceFile, enclosingDeclaration, location, semanticMeaning = getMeaningFromLocation(location), alias) { +function getSymbolDisplayPartsDocumentationAndSymbolKindWorker(typeChecker, symbol, sourceFile, enclosingDeclaration, location, type, semanticMeaning, alias) { var _a; const displayParts = []; let documentation = []; @@ -165043,7 +167441,6 @@ function getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, symbol, so let symbolKind = semanticMeaning & 1 /* Value */ ? getSymbolKindOfConstructorPropertyMethodAccessorFunctionOrVar(typeChecker, symbol, location) : "" /* unknown */; let hasAddedSymbolInfo = false; const isThisExpression = location.kind === 110 /* ThisKeyword */ && isInExpressionContext(location) || isThisInTypeQuery(location); - let type; let documentationFromAlias; let tagsFromAlias; let hasMultipleSignatures = false; @@ -165055,13 +167452,13 @@ function getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, symbol, so const declaration = find(symbol.declarations, (declaration2) => declaration2.name === location); if (declaration) { switch (declaration.kind) { - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: symbolKind = "getter" /* memberGetAccessorElement */; break; - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: symbolKind = "setter" /* memberSetAccessorElement */; break; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: symbolKind = "accessor" /* memberAccessorVariableElement */; break; default: @@ -165072,8 +167469,8 @@ function getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, symbol, so } } let signature; - type = isThisExpression ? typeChecker.getTypeAtLocation(location) : typeChecker.getTypeOfSymbolAtLocation(symbol, location); - if (location.parent && location.parent.kind === 210 /* PropertyAccessExpression */) { + type ?? (type = isThisExpression ? typeChecker.getTypeAtLocation(location) : typeChecker.getTypeOfSymbolAtLocation(symbol, location)); + if (location.parent && location.parent.kind === 211 /* PropertyAccessExpression */) { const right = location.parent.name; if (right === location || right && right.getFullWidth() === 0) { location = location.parent; @@ -165089,7 +167486,7 @@ function getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, symbol, so } if (callExpressionLike) { signature = typeChecker.getResolvedSignature(callExpressionLike); - const useConstructSignatures = callExpressionLike.kind === 213 /* NewExpression */ || isCallExpression(callExpressionLike) && callExpressionLike.expression.kind === 108 /* SuperKeyword */; + const useConstructSignatures = callExpressionLike.kind === 214 /* NewExpression */ || isCallExpression(callExpressionLike) && callExpressionLike.expression.kind === 108 /* SuperKeyword */; const allSignatures = useConstructSignatures ? type.getConstructSignatures() : type.getCallSignatures(); if (signature && !contains(allSignatures, signature.target) && !contains(allSignatures, signature)) { signature = allSignatures.length ? allSignatures[0] : void 0; @@ -165152,21 +167549,21 @@ function getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, symbol, so hasMultipleSignatures = allSignatures.length > 1; } } else if (isNameOfFunctionDeclaration(location) && !(symbolFlags & 98304 /* Accessor */) || // name of function declaration - location.kind === 137 /* ConstructorKeyword */ && location.parent.kind === 175 /* Constructor */) { + location.kind === 137 /* ConstructorKeyword */ && location.parent.kind === 176 /* Constructor */) { const functionDeclaration = location.parent; const locationIsSymbolDeclaration = symbol.declarations && find(symbol.declarations, (declaration) => declaration === (location.kind === 137 /* ConstructorKeyword */ ? functionDeclaration.parent : functionDeclaration)); if (locationIsSymbolDeclaration) { - const allSignatures = functionDeclaration.kind === 175 /* Constructor */ ? type.getNonNullableType().getConstructSignatures() : type.getNonNullableType().getCallSignatures(); + const allSignatures = functionDeclaration.kind === 176 /* Constructor */ ? type.getNonNullableType().getConstructSignatures() : type.getNonNullableType().getCallSignatures(); if (!typeChecker.isImplementationOfOverload(functionDeclaration)) { signature = typeChecker.getSignatureFromDeclaration(functionDeclaration); } else { signature = allSignatures[0]; } - if (functionDeclaration.kind === 175 /* Constructor */) { + if (functionDeclaration.kind === 176 /* Constructor */) { symbolKind = "constructor" /* constructorImplementationElement */; addPrefixForAnyFunctionOrVar(type.symbol, symbolKind); } else { - addPrefixForAnyFunctionOrVar(functionDeclaration.kind === 178 /* CallSignature */ && !(type.symbol.flags & 2048 /* TypeLiteral */ || type.symbol.flags & 4096 /* ObjectLiteral */) ? type.symbol : symbol, symbolKind); + addPrefixForAnyFunctionOrVar(functionDeclaration.kind === 179 /* CallSignature */ && !(type.symbol.flags & 2048 /* TypeLiteral */ || type.symbol.flags & 4096 /* ObjectLiteral */) ? type.symbol : symbol, symbolKind); } if (signature) { addSignatureDisplayParts(signature, allSignatures); @@ -165178,7 +167575,7 @@ function getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, symbol, so } if (symbolFlags & 32 /* Class */ && !hasAddedSymbolInfo && !isThisExpression) { addAliasPrefixIfNecessary(); - if (getDeclarationOfKind(symbol, 230 /* ClassExpression */)) { + if (getDeclarationOfKind(symbol, 231 /* ClassExpression */)) { pushSymbolKind("local class" /* localClassElement */); } else { displayParts.push(keywordPart(86 /* ClassKeyword */)); @@ -165217,7 +167614,7 @@ function getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, symbol, so } if (symbolFlags & 1536 /* Module */ && !isThisExpression) { prefixNextMeaning(); - const declaration = getDeclarationOfKind(symbol, 266 /* ModuleDeclaration */); + const declaration = getDeclarationOfKind(symbol, 267 /* ModuleDeclaration */); const isNamespace = declaration && declaration.name && declaration.name.kind === 80 /* Identifier */; displayParts.push(keywordPart(isNamespace ? 145 /* NamespaceKeyword */ : 144 /* ModuleKeyword */)); displayParts.push(spacePart()); @@ -165235,7 +167632,7 @@ function getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, symbol, so addFullSymbolName(symbol.parent, enclosingDeclaration); writeTypeParametersOfSymbol(symbol.parent, enclosingDeclaration); } else { - const decl = getDeclarationOfKind(symbol, 167 /* TypeParameter */); + const decl = getDeclarationOfKind(symbol, 168 /* TypeParameter */); if (decl === void 0) return Debug.fail(); const declaration = decl.parent; @@ -165243,10 +167640,10 @@ function getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, symbol, so if (isFunctionLike(declaration)) { addInPrefix(); const signature = typeChecker.getSignatureFromDeclaration(declaration); - if (declaration.kind === 179 /* ConstructSignature */) { + if (declaration.kind === 180 /* ConstructSignature */) { displayParts.push(keywordPart(105 /* NewKeyword */)); displayParts.push(spacePart()); - } else if (declaration.kind !== 178 /* CallSignature */ && declaration.name) { + } else if (declaration.kind !== 179 /* CallSignature */ && declaration.name) { addFullSymbolName(declaration.symbol); } addRange(displayParts, signatureToDisplayParts(typeChecker, signature, sourceFile, 32 /* WriteTypeArgumentsOfSignature */)); @@ -165264,7 +167661,7 @@ function getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, symbol, so symbolKind = "enum member" /* enumMemberElement */; addPrefixForAnyFunctionOrVar(symbol, "enum member"); const declaration = (_a = symbol.declarations) == null ? void 0 : _a[0]; - if ((declaration == null ? void 0 : declaration.kind) === 305 /* EnumMember */) { + if ((declaration == null ? void 0 : declaration.kind) === 306 /* EnumMember */) { const constantValue = typeChecker.getConstantValue(declaration); if (constantValue !== void 0) { displayParts.push(spacePart()); @@ -165287,12 +167684,13 @@ function getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, symbol, so if (declarationName && !hasAddedSymbolInfo) { const isExternalModuleDeclaration = isModuleWithStringLiteralName(resolvedNode) && hasSyntacticModifier(resolvedNode, 2 /* Ambient */); const shouldUseAliasName = symbol.name !== "default" && !isExternalModuleDeclaration; - const resolvedInfo = getSymbolDisplayPartsDocumentationAndSymbolKind( + const resolvedInfo = getSymbolDisplayPartsDocumentationAndSymbolKindWorker( typeChecker, resolvedSymbol, getSourceFileOfNode(resolvedNode), resolvedNode, declarationName, + type, semanticMeaning, shouldUseAliasName ? symbol : resolvedSymbol ); @@ -165308,17 +167706,17 @@ function getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, symbol, so } if (symbol.declarations) { switch (symbol.declarations[0].kind) { - case 269 /* NamespaceExportDeclaration */: + case 270 /* NamespaceExportDeclaration */: displayParts.push(keywordPart(95 /* ExportKeyword */)); displayParts.push(spacePart()); displayParts.push(keywordPart(145 /* NamespaceKeyword */)); break; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: displayParts.push(keywordPart(95 /* ExportKeyword */)); displayParts.push(spacePart()); displayParts.push(keywordPart(symbol.declarations[0].isExportEquals ? 64 /* EqualsToken */ : 90 /* DefaultKeyword */)); break; - case 280 /* ExportSpecifier */: + case 281 /* ExportSpecifier */: displayParts.push(keywordPart(95 /* ExportKeyword */)); break; default: @@ -165328,7 +167726,7 @@ function getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, symbol, so displayParts.push(spacePart()); addFullSymbolName(symbol); forEach(symbol.declarations, (declaration) => { - if (declaration.kind === 270 /* ImportEqualsDeclaration */) { + if (declaration.kind === 271 /* ImportEqualsDeclaration */) { const importEqualsDeclaration = declaration; if (isExternalModuleImportEqualsDeclaration(importEqualsDeclaration)) { displayParts.push(spacePart()); @@ -165360,7 +167758,7 @@ function getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, symbol, so } else { addPrefixForAnyFunctionOrVar(symbol, symbolKind); } - if (symbolKind === "property" /* memberVariableElement */ || symbolKind === "accessor" /* memberAccessorVariableElement */ || symbolKind === "getter" /* memberGetAccessorElement */ || symbolKind === "setter" /* memberSetAccessorElement */ || symbolKind === "JSX attribute" /* jsxAttribute */ || symbolFlags & 3 /* Variable */ || symbolKind === "local var" /* localVariableElement */ || symbolKind === "index" /* indexSignatureElement */ || isThisExpression) { + if (symbolKind === "property" /* memberVariableElement */ || symbolKind === "accessor" /* memberAccessorVariableElement */ || symbolKind === "getter" /* memberGetAccessorElement */ || symbolKind === "setter" /* memberSetAccessorElement */ || symbolKind === "JSX attribute" /* jsxAttribute */ || symbolFlags & 3 /* Variable */ || symbolKind === "local var" /* localVariableElement */ || symbolKind === "index" /* indexSignatureElement */ || symbolKind === "using" /* variableUsingElement */ || symbolKind === "await using" /* variableAwaitUsingElement */ || isThisExpression) { displayParts.push(punctuationPart(59 /* ColonToken */)); displayParts.push(spacePart()); if (type.symbol && type.symbol.flags & 262144 /* TypeParameter */ && symbolKind !== "index" /* indexSignatureElement */) { @@ -165396,9 +167794,9 @@ function getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, symbol, so documentation = symbol.getContextualDocumentationComment(enclosingDeclaration, typeChecker); } if (documentation.length === 0 && symbolFlags & 4 /* Property */) { - if (symbol.parent && symbol.declarations && forEach(symbol.parent.declarations, (declaration) => declaration.kind === 311 /* SourceFile */)) { + if (symbol.parent && symbol.declarations && forEach(symbol.parent.declarations, (declaration) => declaration.kind === 312 /* SourceFile */)) { for (const declaration of symbol.declarations) { - if (!declaration.parent || declaration.parent.kind !== 225 /* BinaryExpression */) { + if (!declaration.parent || declaration.parent.kind !== 226 /* BinaryExpression */) { continue; } const rhsSymbol = typeChecker.getSymbolAtLocation(declaration.parent.right); @@ -165510,6 +167908,8 @@ function getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, symbol, so case "let" /* letElement */: case "const" /* constElement */: case "constructor" /* constructorImplementationElement */: + case "using" /* variableUsingElement */: + case "await using" /* variableAwaitUsingElement */: displayParts.push(textOrKeywordPart(symbolKind2)); return; default: @@ -165545,19 +167945,32 @@ function getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, symbol, so addRange(displayParts, typeParameterParts); } } +function getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, symbol, sourceFile, enclosingDeclaration, location, semanticMeaning = getMeaningFromLocation(location), alias) { + return getSymbolDisplayPartsDocumentationAndSymbolKindWorker( + typeChecker, + symbol, + sourceFile, + enclosingDeclaration, + location, + /*type*/ + void 0, + semanticMeaning, + alias + ); +} function isLocalVariableOrFunction(symbol) { if (symbol.parent) { return false; } return forEach(symbol.declarations, (declaration) => { - if (declaration.kind === 217 /* FunctionExpression */) { + if (declaration.kind === 218 /* FunctionExpression */) { return true; } - if (declaration.kind !== 259 /* VariableDeclaration */ && declaration.kind !== 261 /* FunctionDeclaration */) { + if (declaration.kind !== 260 /* VariableDeclaration */ && declaration.kind !== 262 /* FunctionDeclaration */) { return false; } for (let parent2 = declaration.parent; !isFunctionBlock(parent2); parent2 = parent2.parent) { - if (parent2.kind === 311 /* SourceFile */ || parent2.kind === 267 /* ModuleBlock */) { + if (parent2.kind === 312 /* SourceFile */ || parent2.kind === 268 /* ModuleBlock */) { return false; } } @@ -165740,12 +168153,12 @@ function getAdjustedEndPosition(sourceFile, node, options) { return newEnd !== end && (trailingTriviaOption === 2 /* Include */ || isLineBreak(sourceFile.text.charCodeAt(newEnd - 1))) ? newEnd : end; } function isSeparator(node, candidate) { - return !!candidate && !!node.parent && (candidate.kind === 28 /* CommaToken */ || candidate.kind === 27 /* SemicolonToken */ && node.parent.kind === 209 /* ObjectLiteralExpression */); + return !!candidate && !!node.parent && (candidate.kind === 28 /* CommaToken */ || candidate.kind === 27 /* SemicolonToken */ && node.parent.kind === 210 /* ObjectLiteralExpression */); } function isThisTypeAnnotatable(containingFunction) { return isFunctionExpression(containingFunction) || isFunctionDeclaration(containingFunction); } -var ChangeTracker = class { +var ChangeTracker = class _ChangeTracker { /** Public for tests only. Other callers should use `ChangeTracker.with`. */ constructor(newLineCharacter, formatContext) { this.newLineCharacter = newLineCharacter; @@ -165756,10 +168169,10 @@ var ChangeTracker = class { this.deletedNodes = []; } static fromContext(context) { - return new ChangeTracker(getNewLineOrDefaultFromHost(context.host, context.formatContext.options), context.formatContext); + return new _ChangeTracker(getNewLineOrDefaultFromHost(context.host, context.formatContext.options), context.formatContext); } static with(context, cb) { - const tracker = ChangeTracker.fromContext(context); + const tracker = _ChangeTracker.fromContext(context); cb(tracker); return tracker.getChanges(); } @@ -165894,6 +168307,9 @@ var ChangeTracker = class { insertNodeBefore(sourceFile, before, newNode, blankLineBetween = false, options = {}) { this.insertNodeAt(sourceFile, getAdjustedStartPosition(sourceFile, before, options), newNode, this.getOptionsForInsertNodeBefore(before, newNode, blankLineBetween)); } + insertNodesBefore(sourceFile, before, newNodes, blankLineBetween = false, options = {}) { + this.insertNodesAt(sourceFile, getAdjustedStartPosition(sourceFile, before, options), newNodes, this.getOptionsForInsertNodeBefore(before, first(newNodes), blankLineBetween)); + } insertModifierAt(sourceFile, pos, modifier, options = {}) { this.insertNodeAt(sourceFile, pos, factory.createToken(modifier), options); } @@ -165966,7 +168382,7 @@ var ChangeTracker = class { endNode2 = first(node.parameters); } } else { - endNode2 = (node.kind === 259 /* VariableDeclaration */ ? node.exclamationToken : node.questionToken) ?? node.name; + endNode2 = (node.kind === 260 /* VariableDeclaration */ ? node.exclamationToken : node.questionToken) ?? node.name; } this.insertNodeAt(sourceFile, endNode2.end, type, { prefix: ": " }); return true; @@ -166114,18 +168530,18 @@ ${options.prefix}` : "\n" : options.prefix } getInsertNodeAfterOptionsWorker(node) { switch (node.kind) { - case 262 /* ClassDeclaration */: - case 266 /* ModuleDeclaration */: + case 263 /* ClassDeclaration */: + case 267 /* ModuleDeclaration */: return { prefix: this.newLineCharacter, suffix: this.newLineCharacter }; - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: case 11 /* StringLiteral */: case 80 /* Identifier */: return { prefix: ", " }; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return { suffix: "," + this.newLineCharacter }; case 95 /* ExportKeyword */: return { prefix: " " }; - case 168 /* Parameter */: + case 169 /* Parameter */: return {}; default: Debug.assert(isStatement(node) || isClassOrTypeElement(node)); @@ -166134,7 +168550,7 @@ ${options.prefix}` : "\n" : options.prefix } insertName(sourceFile, node, name) { Debug.assert(!node.name); - if (node.kind === 218 /* ArrowFunction */) { + if (node.kind === 219 /* ArrowFunction */) { const arrow = findChildOfKind(node, 39 /* EqualsGreaterThanToken */, sourceFile); const lparen = findChildOfKind(node, 21 /* OpenParenToken */, sourceFile); if (lparen) { @@ -166144,12 +168560,12 @@ ${options.prefix}` : "\n" : options.prefix this.insertText(sourceFile, first(node.parameters).getStart(sourceFile), `function ${name}(`); this.replaceRange(sourceFile, arrow, factory.createToken(22 /* CloseParenToken */)); } - if (node.body.kind !== 240 /* Block */) { + if (node.body.kind !== 241 /* Block */) { this.insertNodesAt(sourceFile, node.body.getStart(sourceFile), [factory.createToken(19 /* OpenBraceToken */), factory.createToken(107 /* ReturnKeyword */)], { joiner: " ", suffix: " " }); this.insertNodesAt(sourceFile, node.body.end, [factory.createToken(27 /* SemicolonToken */), factory.createToken(20 /* CloseBraceToken */)], { joiner: " " }); } } else { - const pos = findChildOfKind(node, node.kind === 217 /* FunctionExpression */ ? 100 /* FunctionKeyword */ : 86 /* ClassKeyword */, sourceFile).end; + const pos = findChildOfKind(node, node.kind === 218 /* FunctionExpression */ ? 100 /* FunctionKeyword */ : 86 /* ClassKeyword */, sourceFile).end; this.insertNodeAt(sourceFile, pos, factory.createIdentifier(name), { prefix: " " }); } } @@ -166290,10 +168706,10 @@ ${options.prefix}` : "\n" : options.prefix } }; function updateJSDocHost(parent2) { - if (parent2.kind !== 218 /* ArrowFunction */) { + if (parent2.kind !== 219 /* ArrowFunction */) { return parent2; } - const jsDocNode = parent2.parent.kind === 171 /* PropertyDeclaration */ ? parent2.parent : parent2.parent.parent; + const jsDocNode = parent2.parent.kind === 172 /* PropertyDeclaration */ ? parent2.parent : parent2.parent.parent; jsDocNode.jsDoc = parent2.jsDoc; return jsDocNode; } @@ -166302,7 +168718,7 @@ function tryMergeJsdocTags(oldTag, newTag) { return void 0; } switch (oldTag.kind) { - case 347 /* JSDocParameterTag */: { + case 348 /* JSDocParameterTag */: { const oldParam = oldTag; const newParam = newTag; return isIdentifier(oldParam.name) && isIdentifier(newParam.name) && oldParam.name.escapedText === newParam.name.escapedText ? factory.createJSDocParameterTag( @@ -166316,14 +168732,14 @@ function tryMergeJsdocTags(oldTag, newTag) { oldParam.comment ) : void 0; } - case 348 /* JSDocReturnTag */: + case 349 /* JSDocReturnTag */: return factory.createJSDocReturnTag( /*tagName*/ void 0, newTag.typeExpression, oldTag.comment ); - case 350 /* JSDocTypeTag */: + case 351 /* JSDocTypeTag */: return factory.createJSDocTypeTag( /*tagName*/ void 0, @@ -166777,13 +169193,13 @@ function isValidLocationToAddComment(sourceFile, position) { return !isInComment(sourceFile, position) && !isInString(sourceFile, position) && !isInTemplateString(sourceFile, position) && !isInJSXText(sourceFile, position); } function needSemicolonBetween(a, b) { - return (isPropertySignature(a) || isPropertyDeclaration(a)) && isClassOrTypeElement(b) && b.name.kind === 166 /* ComputedPropertyName */ || isStatementButNotDeclaration(a) && isStatementButNotDeclaration(b); + return (isPropertySignature(a) || isPropertyDeclaration(a)) && isClassOrTypeElement(b) && b.name.kind === 167 /* ComputedPropertyName */ || isStatementButNotDeclaration(a) && isStatementButNotDeclaration(b); } var deleteDeclaration; ((_deleteDeclaration) => { function deleteDeclaration2(changes, deletedNodesInLists, sourceFile, node) { switch (node.kind) { - case 168 /* Parameter */: { + case 169 /* Parameter */: { const oldFunction = node.parent; if (isArrowFunction(oldFunction) && oldFunction.parameters.length === 1 && !findChildOfKind(oldFunction, 21 /* OpenParenToken */, sourceFile)) { changes.replaceNodeWithText(sourceFile, node, "()"); @@ -166792,29 +169208,29 @@ var deleteDeclaration; } break; } - case 271 /* ImportDeclaration */: - case 270 /* ImportEqualsDeclaration */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: const isFirstImport = sourceFile.imports.length && node === first(sourceFile.imports).parent || node === find(sourceFile.statements, isAnyImportSyntax); deleteNode(changes, sourceFile, node, { leadingTriviaOption: isFirstImport ? 0 /* Exclude */ : hasJSDocNodes(node) ? 2 /* JSDoc */ : 3 /* StartLine */ }); break; - case 207 /* BindingElement */: + case 208 /* BindingElement */: const pattern = node.parent; - const preserveComma = pattern.kind === 206 /* ArrayBindingPattern */ && node !== last(pattern.elements); + const preserveComma = pattern.kind === 207 /* ArrayBindingPattern */ && node !== last(pattern.elements); if (preserveComma) { deleteNode(changes, sourceFile, node); } else { deleteNodeInList(changes, deletedNodesInLists, sourceFile, node); } break; - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: deleteVariableDeclaration(changes, deletedNodesInLists, sourceFile, node); break; - case 167 /* TypeParameter */: + case 168 /* TypeParameter */: deleteNodeInList(changes, deletedNodesInLists, sourceFile, node); break; - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: const namedImports = node.parent; if (namedImports.elements.length === 1) { deleteImportBinding(changes, sourceFile, namedImports); @@ -166822,7 +169238,7 @@ var deleteDeclaration; deleteNodeInList(changes, deletedNodesInLists, sourceFile, node); } break; - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: deleteImportBinding(changes, sourceFile, node); break; case 27 /* SemicolonToken */: @@ -166831,8 +169247,8 @@ var deleteDeclaration; case 100 /* FunctionKeyword */: deleteNode(changes, sourceFile, node, { leadingTriviaOption: 0 /* Exclude */ }); break; - case 262 /* ClassDeclaration */: - case 261 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: + case 262 /* FunctionDeclaration */: deleteNode(changes, sourceFile, node, { leadingTriviaOption: hasJSDocNodes(node) ? 2 /* JSDoc */ : 3 /* StartLine */ }); break; default: @@ -166874,13 +169290,13 @@ var deleteDeclaration; const previousToken = Debug.checkDefined(getTokenAtPosition(sourceFile, node.pos - 1)); changes.deleteRange(sourceFile, { pos: previousToken.getStart(sourceFile), end: node.end }); } else { - const importDecl = getAncestor(node, 271 /* ImportDeclaration */); + const importDecl = getAncestor(node, 272 /* ImportDeclaration */); deleteNode(changes, sourceFile, importDecl); } } function deleteVariableDeclaration(changes, deletedNodesInLists, sourceFile, node) { const { parent: parent2 } = node; - if (parent2.kind === 298 /* CatchClause */) { + if (parent2.kind === 299 /* CatchClause */) { changes.deleteNodeRange(sourceFile, findChildOfKind(parent2, 21 /* OpenParenToken */, sourceFile), findChildOfKind(parent2, 22 /* CloseParenToken */, sourceFile)); return; } @@ -166890,14 +169306,14 @@ var deleteDeclaration; } const gp = parent2.parent; switch (gp.kind) { - case 249 /* ForOfStatement */: - case 248 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 249 /* ForInStatement */: changes.replaceNode(sourceFile, node, factory.createObjectLiteralExpression()); break; - case 247 /* ForStatement */: + case 248 /* ForStatement */: deleteNode(changes, sourceFile, parent2); break; - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: deleteNode(changes, sourceFile, gp, { leadingTriviaOption: hasJSDocNodes(gp) ? 2 /* JSDoc */ : 3 /* StartLine */ }); break; default: @@ -167107,10 +169523,10 @@ function getFormattingScanner(text, languageVariant, startPos, endPos, cb) { function shouldRescanJsxIdentifier(node) { if (node.parent) { switch (node.parent.kind) { - case 290 /* JsxAttribute */: - case 285 /* JsxOpeningElement */: - case 286 /* JsxClosingElement */: - case 284 /* JsxSelfClosingElement */: + case 291 /* JsxAttribute */: + case 286 /* JsxOpeningElement */: + case 287 /* JsxClosingElement */: + case 285 /* JsxSelfClosingElement */: return isKeyword(node.kind) || node.kind === 80 /* Identifier */; } } @@ -167284,7 +169700,7 @@ var RuleFlags = /* @__PURE__ */ ((RuleFlags2) => { // src/services/formatting/rules.ts function getAllRules() { const allTokens = []; - for (let token = 0 /* FirstToken */; token <= 164 /* LastToken */; token++) { + for (let token = 0 /* FirstToken */; token <= 165 /* LastToken */; token++) { if (token !== 1 /* EndOfFileToken */) { allTokens.push(token); } @@ -167295,12 +169711,12 @@ function getAllRules() { const anyToken = { tokens: allTokens, isSpecific: false }; const anyTokenIncludingMultilineComments = tokenRangeFrom([...allTokens, 3 /* MultiLineCommentTrivia */]); const anyTokenIncludingEOF = tokenRangeFrom([...allTokens, 1 /* EndOfFileToken */]); - const keywords = tokenRangeFromRange(83 /* FirstKeyword */, 164 /* LastKeyword */); + const keywords = tokenRangeFromRange(83 /* FirstKeyword */, 165 /* LastKeyword */); const binaryOperators = tokenRangeFromRange(30 /* FirstBinaryOperator */, 79 /* LastBinaryOperator */); const binaryKeywordOperators = [ 103 /* InKeyword */, 104 /* InstanceOfKeyword */, - 164 /* OfKeyword */, + 165 /* OfKeyword */, 130 /* AsKeyword */, 142 /* IsKeyword */, 152 /* SatisfiesKeyword */ @@ -167429,7 +169845,7 @@ function getAllRules() { 153 /* SetKeyword */, 126 /* StaticKeyword */, 156 /* TypeKeyword */, - 160 /* FromKeyword */, + 161 /* FromKeyword */, 143 /* KeyOfKeyword */, 140 /* InferKeyword */ ], @@ -167440,7 +169856,7 @@ function getAllRules() { rule( "SpaceBeforeCertainTypeScriptKeywords", anyToken, - [96 /* ExtendsKeyword */, 119 /* ImplementsKeyword */, 160 /* FromKeyword */], + [96 /* ExtendsKeyword */, 119 /* ImplementsKeyword */, 161 /* FromKeyword */], [isNonJsxSameLineTokenContext], 4 /* InsertSpace */ ), @@ -167630,40 +170046,40 @@ function isOptionEnabledOrUndefined(optionName) { return (context) => !context.options || !hasProperty(context.options, optionName) || !!context.options[optionName]; } function isForContext(context) { - return context.contextNode.kind === 247 /* ForStatement */; + return context.contextNode.kind === 248 /* ForStatement */; } function isNotForContext(context) { return !isForContext(context); } function isBinaryOpContext(context) { switch (context.contextNode.kind) { - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return context.contextNode.operatorToken.kind !== 28 /* CommaToken */; - case 226 /* ConditionalExpression */: - case 193 /* ConditionalType */: - case 233 /* AsExpression */: - case 280 /* ExportSpecifier */: - case 275 /* ImportSpecifier */: - case 181 /* TypePredicate */: - case 191 /* UnionType */: - case 192 /* IntersectionType */: - case 237 /* SatisfiesExpression */: + case 227 /* ConditionalExpression */: + case 194 /* ConditionalType */: + case 234 /* AsExpression */: + case 281 /* ExportSpecifier */: + case 276 /* ImportSpecifier */: + case 182 /* TypePredicate */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: + case 238 /* SatisfiesExpression */: return true; - case 207 /* BindingElement */: - case 264 /* TypeAliasDeclaration */: - case 270 /* ImportEqualsDeclaration */: - case 276 /* ExportAssignment */: - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 305 /* EnumMember */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: + case 208 /* BindingElement */: + case 265 /* TypeAliasDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 277 /* ExportAssignment */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 306 /* EnumMember */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: return context.currentTokenSpan.kind === 64 /* EqualsToken */ || context.nextTokenSpan.kind === 64 /* EqualsToken */; - case 248 /* ForInStatement */: - case 167 /* TypeParameter */: + case 249 /* ForInStatement */: + case 168 /* TypeParameter */: return context.currentTokenSpan.kind === 103 /* InKeyword */ || context.nextTokenSpan.kind === 103 /* InKeyword */ || context.currentTokenSpan.kind === 64 /* EqualsToken */ || context.nextTokenSpan.kind === 64 /* EqualsToken */; - case 249 /* ForOfStatement */: - return context.currentTokenSpan.kind === 164 /* OfKeyword */ || context.nextTokenSpan.kind === 164 /* OfKeyword */; + case 250 /* ForOfStatement */: + return context.currentTokenSpan.kind === 165 /* OfKeyword */ || context.nextTokenSpan.kind === 165 /* OfKeyword */; } return false; } @@ -167675,16 +170091,16 @@ function isNotTypeAnnotationContext(context) { } function isTypeAnnotationContext(context) { const contextKind = context.contextNode.kind; - return contextKind === 171 /* PropertyDeclaration */ || contextKind === 170 /* PropertySignature */ || contextKind === 168 /* Parameter */ || contextKind === 259 /* VariableDeclaration */ || isFunctionLikeKind(contextKind); + return contextKind === 172 /* PropertyDeclaration */ || contextKind === 171 /* PropertySignature */ || contextKind === 169 /* Parameter */ || contextKind === 260 /* VariableDeclaration */ || isFunctionLikeKind(contextKind); } function isConditionalOperatorContext(context) { - return context.contextNode.kind === 226 /* ConditionalExpression */ || context.contextNode.kind === 193 /* ConditionalType */; + return context.contextNode.kind === 227 /* ConditionalExpression */ || context.contextNode.kind === 194 /* ConditionalType */; } function isSameLineTokenOrBeforeBlockContext(context) { return context.TokensAreOnSameLine() || isBeforeBlockContext(context); } function isBraceWrappedContext(context) { - return context.contextNode.kind === 205 /* ObjectBindingPattern */ || context.contextNode.kind === 199 /* MappedType */ || isSingleLineBlockContext(context); + return context.contextNode.kind === 206 /* ObjectBindingPattern */ || context.contextNode.kind === 200 /* MappedType */ || isSingleLineBlockContext(context); } function isBeforeMultilineBlockContext(context) { return isBeforeBlockContext(context) && !(context.NextNodeAllOnSameLine() || context.NextNodeBlockIsOnOneLine()); @@ -167706,26 +170122,26 @@ function nodeIsBlockContext(node) { return true; } switch (node.kind) { - case 240 /* Block */: - case 268 /* CaseBlock */: - case 209 /* ObjectLiteralExpression */: - case 267 /* ModuleBlock */: + case 241 /* Block */: + case 269 /* CaseBlock */: + case 210 /* ObjectLiteralExpression */: + case 268 /* ModuleBlock */: return true; } return false; } function isFunctionDeclContext(context) { switch (context.contextNode.kind) { - case 261 /* FunctionDeclaration */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 178 /* CallSignature */: - case 217 /* FunctionExpression */: - case 175 /* Constructor */: - case 218 /* ArrowFunction */: - case 263 /* InterfaceDeclaration */: + case 262 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 179 /* CallSignature */: + case 218 /* FunctionExpression */: + case 176 /* Constructor */: + case 219 /* ArrowFunction */: + case 264 /* InterfaceDeclaration */: return true; } return false; @@ -167734,39 +170150,39 @@ function isNotFunctionDeclContext(context) { return !isFunctionDeclContext(context); } function isFunctionDeclarationOrFunctionExpressionContext(context) { - return context.contextNode.kind === 261 /* FunctionDeclaration */ || context.contextNode.kind === 217 /* FunctionExpression */; + return context.contextNode.kind === 262 /* FunctionDeclaration */ || context.contextNode.kind === 218 /* FunctionExpression */; } function isTypeScriptDeclWithBlockContext(context) { return nodeIsTypeScriptDeclWithBlockContext(context.contextNode); } function nodeIsTypeScriptDeclWithBlockContext(node) { switch (node.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: - case 186 /* TypeLiteral */: - case 266 /* ModuleDeclaration */: - case 277 /* ExportDeclaration */: - case 278 /* NamedExports */: - case 271 /* ImportDeclaration */: - case 274 /* NamedImports */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + case 187 /* TypeLiteral */: + case 267 /* ModuleDeclaration */: + case 278 /* ExportDeclaration */: + case 279 /* NamedExports */: + case 272 /* ImportDeclaration */: + case 275 /* NamedImports */: return true; } return false; } function isAfterCodeBlockContext(context) { switch (context.currentTokenParent.kind) { - case 262 /* ClassDeclaration */: - case 266 /* ModuleDeclaration */: - case 265 /* EnumDeclaration */: - case 298 /* CatchClause */: - case 267 /* ModuleBlock */: - case 254 /* SwitchStatement */: + case 263 /* ClassDeclaration */: + case 267 /* ModuleDeclaration */: + case 266 /* EnumDeclaration */: + case 299 /* CatchClause */: + case 268 /* ModuleBlock */: + case 255 /* SwitchStatement */: return true; - case 240 /* Block */: { + case 241 /* Block */: { const blockParent = context.currentTokenParent.parent; - if (!blockParent || blockParent.kind !== 218 /* ArrowFunction */ && blockParent.kind !== 217 /* FunctionExpression */) { + if (!blockParent || blockParent.kind !== 219 /* ArrowFunction */ && blockParent.kind !== 218 /* FunctionExpression */) { return true; } } @@ -167775,29 +170191,29 @@ function isAfterCodeBlockContext(context) { } function isControlDeclContext(context) { switch (context.contextNode.kind) { - case 244 /* IfStatement */: - case 254 /* SwitchStatement */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 246 /* WhileStatement */: - case 257 /* TryStatement */: - case 245 /* DoStatement */: - case 253 /* WithStatement */: - case 298 /* CatchClause */: + case 245 /* IfStatement */: + case 255 /* SwitchStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 247 /* WhileStatement */: + case 258 /* TryStatement */: + case 246 /* DoStatement */: + case 254 /* WithStatement */: + case 299 /* CatchClause */: return true; default: return false; } } function isObjectContext(context) { - return context.contextNode.kind === 209 /* ObjectLiteralExpression */; + return context.contextNode.kind === 210 /* ObjectLiteralExpression */; } function isFunctionCallContext(context) { - return context.contextNode.kind === 212 /* CallExpression */; + return context.contextNode.kind === 213 /* CallExpression */; } function isNewContext(context) { - return context.contextNode.kind === 213 /* NewExpression */; + return context.contextNode.kind === 214 /* NewExpression */; } function isFunctionCallOrNewContext(context) { return isFunctionCallContext(context) || isNewContext(context); @@ -167812,10 +170228,10 @@ function isNextTokenNotCloseParen(context) { return context.nextTokenSpan.kind !== 22 /* CloseParenToken */; } function isArrowFunctionContext(context) { - return context.contextNode.kind === 218 /* ArrowFunction */; + return context.contextNode.kind === 219 /* ArrowFunction */; } function isImportTypeContext(context) { - return context.contextNode.kind === 204 /* ImportType */; + return context.contextNode.kind === 205 /* ImportType */; } function isNonJsxSameLineTokenContext(context) { return context.TokensAreOnSameLine() && context.contextNode.kind !== 12 /* JsxText */; @@ -167824,19 +170240,19 @@ function isNonJsxTextContext(context) { return context.contextNode.kind !== 12 /* JsxText */; } function isNonJsxElementOrFragmentContext(context) { - return context.contextNode.kind !== 283 /* JsxElement */ && context.contextNode.kind !== 287 /* JsxFragment */; + return context.contextNode.kind !== 284 /* JsxElement */ && context.contextNode.kind !== 288 /* JsxFragment */; } function isJsxExpressionContext(context) { - return context.contextNode.kind === 293 /* JsxExpression */ || context.contextNode.kind === 292 /* JsxSpreadAttribute */; + return context.contextNode.kind === 294 /* JsxExpression */ || context.contextNode.kind === 293 /* JsxSpreadAttribute */; } function isNextTokenParentJsxAttribute(context) { - return context.nextTokenParent.kind === 290 /* JsxAttribute */; + return context.nextTokenParent.kind === 291 /* JsxAttribute */; } function isJsxAttributeContext(context) { - return context.contextNode.kind === 290 /* JsxAttribute */; + return context.contextNode.kind === 291 /* JsxAttribute */; } function isJsxSelfClosingElementContext(context) { - return context.contextNode.kind === 284 /* JsxSelfClosingElement */; + return context.contextNode.kind === 285 /* JsxSelfClosingElement */; } function isNotBeforeBlockInFunctionDeclarationContext(context) { return !isFunctionDeclContext(context) && !isBeforeBlockContext(context); @@ -167848,44 +170264,44 @@ function nodeIsInDecoratorContext(node) { while (node && isExpression(node)) { node = node.parent; } - return node && node.kind === 169 /* Decorator */; + return node && node.kind === 170 /* Decorator */; } function isStartOfVariableDeclarationList(context) { - return context.currentTokenParent.kind === 260 /* VariableDeclarationList */ && context.currentTokenParent.getStart(context.sourceFile) === context.currentTokenSpan.pos; + return context.currentTokenParent.kind === 261 /* VariableDeclarationList */ && context.currentTokenParent.getStart(context.sourceFile) === context.currentTokenSpan.pos; } function isNotFormatOnEnter(context) { return context.formattingRequestKind !== 2 /* FormatOnEnter */; } function isModuleDeclContext(context) { - return context.contextNode.kind === 266 /* ModuleDeclaration */; + return context.contextNode.kind === 267 /* ModuleDeclaration */; } function isObjectTypeContext(context) { - return context.contextNode.kind === 186 /* TypeLiteral */; + return context.contextNode.kind === 187 /* TypeLiteral */; } function isConstructorSignatureContext(context) { - return context.contextNode.kind === 179 /* ConstructSignature */; + return context.contextNode.kind === 180 /* ConstructSignature */; } function isTypeArgumentOrParameterOrAssertion(token, parent2) { if (token.kind !== 30 /* LessThanToken */ && token.kind !== 32 /* GreaterThanToken */) { return false; } switch (parent2.kind) { - case 182 /* TypeReference */: - case 215 /* TypeAssertionExpression */: - case 264 /* TypeAliasDeclaration */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 232 /* ExpressionWithTypeArguments */: + case 183 /* TypeReference */: + case 216 /* TypeAssertionExpression */: + case 265 /* TypeAliasDeclaration */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 233 /* ExpressionWithTypeArguments */: return true; default: return false; @@ -167895,31 +170311,31 @@ function isTypeArgumentOrParameterOrAssertionContext(context) { return isTypeArgumentOrParameterOrAssertion(context.currentTokenSpan, context.currentTokenParent) || isTypeArgumentOrParameterOrAssertion(context.nextTokenSpan, context.nextTokenParent); } function isTypeAssertionContext(context) { - return context.contextNode.kind === 215 /* TypeAssertionExpression */; + return context.contextNode.kind === 216 /* TypeAssertionExpression */; } function isNonTypeAssertionContext(context) { return !isTypeAssertionContext(context); } function isVoidOpContext(context) { - return context.currentTokenSpan.kind === 116 /* VoidKeyword */ && context.currentTokenParent.kind === 221 /* VoidExpression */; + return context.currentTokenSpan.kind === 116 /* VoidKeyword */ && context.currentTokenParent.kind === 222 /* VoidExpression */; } function isYieldOrYieldStarWithOperand(context) { - return context.contextNode.kind === 228 /* YieldExpression */ && context.contextNode.expression !== void 0; + return context.contextNode.kind === 229 /* YieldExpression */ && context.contextNode.expression !== void 0; } function isNonNullAssertionContext(context) { - return context.contextNode.kind === 234 /* NonNullExpression */; + return context.contextNode.kind === 235 /* NonNullExpression */; } function isNotStatementConditionContext(context) { return !isStatementConditionContext(context); } function isStatementConditionContext(context) { switch (context.contextNode.kind) { - case 244 /* IfStatement */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: + case 245 /* IfStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: return true; default: return false; @@ -167945,16 +170361,16 @@ function isSemicolonDeletionContext(context) { if (startLine === endLine) { return nextTokenKind === 20 /* CloseBraceToken */ || nextTokenKind === 1 /* EndOfFileToken */; } - if (nextTokenKind === 239 /* SemicolonClassElement */ || nextTokenKind === 27 /* SemicolonToken */) { + if (nextTokenKind === 240 /* SemicolonClassElement */ || nextTokenKind === 27 /* SemicolonToken */) { return false; } - if (context.contextNode.kind === 263 /* InterfaceDeclaration */ || context.contextNode.kind === 264 /* TypeAliasDeclaration */) { + if (context.contextNode.kind === 264 /* InterfaceDeclaration */ || context.contextNode.kind === 265 /* TypeAliasDeclaration */) { return !isPropertySignature(context.currentTokenParent) || !!context.currentTokenParent.type || nextTokenKind !== 21 /* OpenParenToken */; } if (isPropertyDeclaration(context.currentTokenParent)) { return !context.currentTokenParent.initializer; } - return context.currentTokenParent.kind !== 247 /* ForStatement */ && context.currentTokenParent.kind !== 241 /* EmptyStatement */ && context.currentTokenParent.kind !== 239 /* SemicolonClassElement */ && nextTokenKind !== 23 /* OpenBracketToken */ && nextTokenKind !== 21 /* OpenParenToken */ && nextTokenKind !== 40 /* PlusToken */ && nextTokenKind !== 41 /* MinusToken */ && nextTokenKind !== 44 /* SlashToken */ && nextTokenKind !== 14 /* RegularExpressionLiteral */ && nextTokenKind !== 28 /* CommaToken */ && nextTokenKind !== 227 /* TemplateExpression */ && nextTokenKind !== 16 /* TemplateHead */ && nextTokenKind !== 15 /* NoSubstitutionTemplateLiteral */ && nextTokenKind !== 25 /* DotToken */; + return context.currentTokenParent.kind !== 248 /* ForStatement */ && context.currentTokenParent.kind !== 242 /* EmptyStatement */ && context.currentTokenParent.kind !== 240 /* SemicolonClassElement */ && nextTokenKind !== 23 /* OpenBracketToken */ && nextTokenKind !== 21 /* OpenParenToken */ && nextTokenKind !== 40 /* PlusToken */ && nextTokenKind !== 41 /* MinusToken */ && nextTokenKind !== 44 /* SlashToken */ && nextTokenKind !== 14 /* RegularExpressionLiteral */ && nextTokenKind !== 28 /* CommaToken */ && nextTokenKind !== 228 /* TemplateExpression */ && nextTokenKind !== 16 /* TemplateHead */ && nextTokenKind !== 15 /* NoSubstitutionTemplateLiteral */ && nextTokenKind !== 25 /* DotToken */; } function isSemicolonInsertionContext(context) { return positionIsASICandidate(context.currentTokenSpan.end, context.currentTokenParent, context.sourceFile); @@ -168029,12 +170445,12 @@ function buildMap(rules) { return map2; } function getRuleBucketIndex(row, column) { - Debug.assert(row <= 164 /* LastKeyword */ && column <= 164 /* LastKeyword */, "Must compute formatting context from tokens"); + Debug.assert(row <= 165 /* LastKeyword */ && column <= 165 /* LastKeyword */, "Must compute formatting context from tokens"); return row * mapRowLength + column; } var maskBitSize = 5; var mask = 31; -var mapRowLength = 164 /* LastToken */ + 1; +var mapRowLength = 165 /* LastToken */ + 1; var RulesPosition = ((RulesPosition2) => { RulesPosition2[RulesPosition2["StopRulesSpecific"] = 0] = "StopRulesSpecific"; RulesPosition2[RulesPosition2["StopRulesAny"] = maskBitSize * 1] = "StopRulesAny"; @@ -168143,17 +170559,17 @@ function findOutermostNodeWithinListLevel(node) { } function isListElement(parent2, node) { switch (parent2.kind) { - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: return rangeContainsRange(parent2.members, node); - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: const body = parent2.body; - return !!body && body.kind === 267 /* ModuleBlock */ && rangeContainsRange(body.statements, node); - case 311 /* SourceFile */: - case 240 /* Block */: - case 267 /* ModuleBlock */: + return !!body && body.kind === 268 /* ModuleBlock */ && rangeContainsRange(body.statements, node); + case 312 /* SourceFile */: + case 241 /* Block */: + case 268 /* ModuleBlock */: return rangeContainsRange(parent2.statements, node); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return rangeContainsRange(parent2.block.statements, node); } return false; @@ -168185,11 +170601,11 @@ function prepareRangeContainsErrorFunction(errors, originalRange) { if (index >= sorted.length) { return false; } - const error = sorted[index]; - if (r.end <= error.start) { + const error2 = sorted[index]; + if (r.end <= error2.start) { return false; } - if (startEndOverlapsWithStartEnd(r.pos, r.end, error.start, error.start + error.length)) { + if (startEndOverlapsWithStartEnd(r.pos, r.end, error2.start, error2.start + error2.length)) { return true; } index++; @@ -168294,7 +170710,8 @@ function formatSpanWorker(originalRange, enclosingNode, initialIndentation, delt } processNode(enclosingNode, enclosingNode, startLine, undecoratedStartLine, initialIndentation, delta); } - if (!formattingScanner.isOnToken()) { + const remainingTrivia = formattingScanner.getCurrentLeadingTrivia(); + if (remainingTrivia) { const indentation = SmartIndenter.nodeWillIndentChild( options, enclosingNode, @@ -168304,25 +170721,30 @@ function formatSpanWorker(originalRange, enclosingNode, initialIndentation, delt /*indentByDefault*/ false ) ? initialIndentation + options.indentSize : initialIndentation; - const leadingTrivia = formattingScanner.getCurrentLeadingTrivia(); - if (leadingTrivia) { - indentTriviaItems( - leadingTrivia, - indentation, - /*indentNextTokenOrTrivia*/ - false, - (item) => processRange( + indentTriviaItems( + remainingTrivia, + indentation, + /*indentNextTokenOrTrivia*/ + true, + (item) => { + processRange( item, sourceFile.getLineAndCharacterOfPosition(item.pos), enclosingNode, enclosingNode, /*dynamicIndentation*/ void 0 - ) - ); - if (options.trimTrailingWhitespace !== false) { - trimTrailingWhitespacesForRemainingRange(leadingTrivia); + ); + insertIndentation( + item.pos, + indentation, + /*lineAdded*/ + false + ); } + ); + if (options.trimTrailingWhitespace !== false) { + trimTrailingWhitespacesForRemainingRange(remainingTrivia); } } if (previousRange && formattingScanner.getTokenFullStart() >= originalRange.end) { @@ -168385,24 +170807,24 @@ function formatSpanWorker(originalRange, enclosingNode, initialIndentation, delt return modifier.kind; } switch (node.kind) { - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return 86 /* ClassKeyword */; - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: return 120 /* InterfaceKeyword */; - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return 100 /* FunctionKeyword */; - case 265 /* EnumDeclaration */: - return 265 /* EnumDeclaration */; - case 176 /* GetAccessor */: + case 266 /* EnumDeclaration */: + return 266 /* EnumDeclaration */; + case 177 /* GetAccessor */: return 139 /* GetKeyword */; - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return 153 /* SetKeyword */; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: if (node.asteriskToken) { return 42 /* AsteriskToken */; } - case 171 /* PropertyDeclaration */: - case 168 /* Parameter */: + case 172 /* PropertyDeclaration */: + case 169 /* Parameter */: const name = getNameOfDeclaration(node); if (name) { return name.kind; @@ -168452,15 +170874,15 @@ function formatSpanWorker(originalRange, enclosingNode, initialIndentation, delt case 44 /* SlashToken */: case 32 /* GreaterThanToken */: switch (container.kind) { - case 285 /* JsxOpeningElement */: - case 286 /* JsxClosingElement */: - case 284 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 287 /* JsxClosingElement */: + case 285 /* JsxSelfClosingElement */: return false; } break; case 23 /* OpenBracketToken */: case 24 /* CloseBracketToken */: - if (container.kind !== 199 /* MappedType */) { + if (container.kind !== 200 /* MappedType */) { return false; } break; @@ -168561,11 +170983,11 @@ function formatSpanWorker(originalRange, enclosingNode, initialIndentation, delt return inheritedIndentation; } } - const effectiveParentStartLine = child.kind === 169 /* Decorator */ ? childStartLine : undecoratedParentStartLine; + const effectiveParentStartLine = child.kind === 170 /* Decorator */ ? childStartLine : undecoratedParentStartLine; const childIndentation = computeIndentation(child, childStartLine, childIndentationAmount, node, parentDynamicIndentation, effectiveParentStartLine); processNode(child, childContextNode, childStartLine, undecoratedChildStartLine, childIndentation.indentation, childIndentation.delta); childContextNode = node; - if (isFirstListItem && parent2.kind === 208 /* ArrayLiteralExpression */ && inheritedIndentation === -1 /* Unknown */) { + if (isFirstListItem && parent2.kind === 209 /* ArrayLiteralExpression */ && inheritedIndentation === -1 /* Unknown */) { inheritedIndentation = childIndentation.indentation; } return inheritedIndentation; @@ -168986,50 +171408,50 @@ function getRangeOfEnclosingComment(sourceFile, position, precedingToken, tokenA } function getOpenTokenForList(node, list) { switch (node.kind) { - case 175 /* Constructor */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 218 /* ArrowFunction */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 176 /* Constructor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 219 /* ArrowFunction */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: if (node.typeParameters === list) { return 30 /* LessThanToken */; } else if (node.parameters === list) { return 21 /* OpenParenToken */; } break; - case 212 /* CallExpression */: - case 213 /* NewExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: if (node.typeArguments === list) { return 30 /* LessThanToken */; } else if (node.arguments === list) { return 21 /* OpenParenToken */; } break; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: if (node.typeParameters === list) { return 30 /* LessThanToken */; } break; - case 182 /* TypeReference */: - case 214 /* TaggedTemplateExpression */: - case 185 /* TypeQuery */: - case 232 /* ExpressionWithTypeArguments */: - case 204 /* ImportType */: + case 183 /* TypeReference */: + case 215 /* TaggedTemplateExpression */: + case 186 /* TypeQuery */: + case 233 /* ExpressionWithTypeArguments */: + case 205 /* ImportType */: if (node.typeArguments === list) { return 30 /* LessThanToken */; } break; - case 186 /* TypeLiteral */: + case 187 /* TypeLiteral */: return 19 /* OpenBraceToken */; } return 0 /* Unknown */; @@ -169119,11 +171541,11 @@ var SmartIndenter; } const lineAtPosition = sourceFile.getLineAndCharacterOfPosition(position).line; const currentToken = getTokenAtPosition(sourceFile, position); - const isObjectLiteral = currentToken.kind === 19 /* OpenBraceToken */ && currentToken.parent.kind === 209 /* ObjectLiteralExpression */; + const isObjectLiteral = currentToken.kind === 19 /* OpenBraceToken */ && currentToken.parent.kind === 210 /* ObjectLiteralExpression */; if (options.indentStyle === 1 /* Block */ || isObjectLiteral) { return getBlockIndent(sourceFile, position, options); } - if (precedingToken.kind === 28 /* CommaToken */ && precedingToken.parent.kind !== 225 /* BinaryExpression */) { + if (precedingToken.kind === 28 /* CommaToken */ && precedingToken.parent.kind !== 226 /* BinaryExpression */) { const actualIndentation = getActualIndentationForListItemBeforeComma(precedingToken, sourceFile, options); if (actualIndentation !== -1 /* Unknown */) { return actualIndentation; @@ -169131,7 +171553,7 @@ var SmartIndenter; } const containerList = getListByPosition(position, precedingToken.parent, sourceFile); if (containerList && !rangeContainsRange(containerList, precedingToken)) { - const useTheSameBaseIndentation = [217 /* FunctionExpression */, 218 /* ArrowFunction */].indexOf(currentToken.parent.kind) !== -1; + const useTheSameBaseIndentation = [218 /* FunctionExpression */, 219 /* ArrowFunction */].indexOf(currentToken.parent.kind) !== -1; const indentSize = useTheSameBaseIndentation ? 0 : options.indentSize; return getActualIndentationForListStartLine(containerList, sourceFile, options) + indentSize; } @@ -169273,7 +171695,7 @@ var SmartIndenter; } } function getActualIndentationForNode(current, parent2, currentLineAndChar, parentAndChildShareLine, sourceFile, options) { - const useActualIndentation = (isDeclaration(current) || isStatementButNotDeclaration(current)) && (parent2.kind === 311 /* SourceFile */ || !parentAndChildShareLine); + const useActualIndentation = (isDeclaration(current) || isStatementButNotDeclaration(current)) && (parent2.kind === 312 /* SourceFile */ || !parentAndChildShareLine); if (!useActualIndentation) { return -1 /* Unknown */; } @@ -169311,7 +171733,7 @@ var SmartIndenter; } SmartIndenter2.isArgumentAndStartLineOverlapsExpressionBeingCalled = isArgumentAndStartLineOverlapsExpressionBeingCalled; function childStartsOnTheSameLineWithElseInIfStatement(parent2, child, childStartLine, sourceFile) { - if (parent2.kind === 244 /* IfStatement */ && parent2.elseStatement === child) { + if (parent2.kind === 245 /* IfStatement */ && parent2.elseStatement === child) { const elseKeyword = findChildOfKind(parent2, 93 /* ElseKeyword */, sourceFile); Debug.assert(elseKeyword !== void 0); const elseKeywordStartLine = getStartLineAndCharacterForNode(elseKeyword, sourceFile).line; @@ -169362,42 +171784,42 @@ var SmartIndenter; } function getListByRange(start2, end, node, sourceFile) { switch (node.kind) { - case 182 /* TypeReference */: + case 183 /* TypeReference */: return getList(node.typeArguments); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return getList(node.properties); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return getList(node.elements); - case 186 /* TypeLiteral */: + case 187 /* TypeLiteral */: return getList(node.members); - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 178 /* CallSignature */: - case 175 /* Constructor */: - case 184 /* ConstructorType */: - case 179 /* ConstructSignature */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 176 /* Constructor */: + case 185 /* ConstructorType */: + case 180 /* ConstructSignature */: return getList(node.typeParameters) || getList(node.parameters); - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return getList(node.parameters); - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 351 /* JSDocTemplateTag */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 352 /* JSDocTemplateTag */: return getList(node.typeParameters); - case 213 /* NewExpression */: - case 212 /* CallExpression */: + case 214 /* NewExpression */: + case 213 /* CallExpression */: return getList(node.typeArguments) || getList(node.arguments); - case 260 /* VariableDeclarationList */: + case 261 /* VariableDeclarationList */: return getList(node.declarations); - case 274 /* NamedImports */: - case 278 /* NamedExports */: + case 275 /* NamedImports */: + case 279 /* NamedExports */: return getList(node.elements); - case 205 /* ObjectBindingPattern */: - case 206 /* ArrayBindingPattern */: + case 206 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: return getList(node.elements); } function getList(list) { @@ -169420,7 +171842,7 @@ var SmartIndenter; return findColumnForFirstNonWhitespaceCharacterInLine(sourceFile.getLineAndCharacterOfPosition(list.pos), sourceFile, options); } function getActualIndentationForListItem(node, sourceFile, options, listIndentsChild) { - if (node.parent && node.parent.kind === 260 /* VariableDeclarationList */) { + if (node.parent && node.parent.kind === 261 /* VariableDeclarationList */) { return -1 /* Unknown */; } const containingList = getContainingList(node, sourceFile); @@ -169481,96 +171903,96 @@ var SmartIndenter; function nodeWillIndentChild(settings, parent2, child, sourceFile, indentByDefault) { const childKind = child ? child.kind : 0 /* Unknown */; switch (parent2.kind) { - case 243 /* ExpressionStatement */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 208 /* ArrayLiteralExpression */: - case 240 /* Block */: - case 267 /* ModuleBlock */: - case 209 /* ObjectLiteralExpression */: - case 186 /* TypeLiteral */: - case 199 /* MappedType */: - case 188 /* TupleType */: - case 216 /* ParenthesizedExpression */: - case 210 /* PropertyAccessExpression */: - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 242 /* VariableStatement */: - case 276 /* ExportAssignment */: - case 252 /* ReturnStatement */: - case 226 /* ConditionalExpression */: - case 206 /* ArrayBindingPattern */: - case 205 /* ObjectBindingPattern */: - case 285 /* JsxOpeningElement */: - case 288 /* JsxOpeningFragment */: - case 284 /* JsxSelfClosingElement */: - case 293 /* JsxExpression */: - case 172 /* MethodSignature */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 168 /* Parameter */: - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 195 /* ParenthesizedType */: - case 214 /* TaggedTemplateExpression */: - case 222 /* AwaitExpression */: - case 278 /* NamedExports */: - case 274 /* NamedImports */: - case 280 /* ExportSpecifier */: - case 275 /* ImportSpecifier */: - case 171 /* PropertyDeclaration */: - case 295 /* CaseClause */: - case 296 /* DefaultClause */: + case 244 /* ExpressionStatement */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 209 /* ArrayLiteralExpression */: + case 241 /* Block */: + case 268 /* ModuleBlock */: + case 210 /* ObjectLiteralExpression */: + case 187 /* TypeLiteral */: + case 200 /* MappedType */: + case 189 /* TupleType */: + case 217 /* ParenthesizedExpression */: + case 211 /* PropertyAccessExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 243 /* VariableStatement */: + case 277 /* ExportAssignment */: + case 253 /* ReturnStatement */: + case 227 /* ConditionalExpression */: + case 207 /* ArrayBindingPattern */: + case 206 /* ObjectBindingPattern */: + case 286 /* JsxOpeningElement */: + case 289 /* JsxOpeningFragment */: + case 285 /* JsxSelfClosingElement */: + case 294 /* JsxExpression */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 169 /* Parameter */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 196 /* ParenthesizedType */: + case 215 /* TaggedTemplateExpression */: + case 223 /* AwaitExpression */: + case 279 /* NamedExports */: + case 275 /* NamedImports */: + case 281 /* ExportSpecifier */: + case 276 /* ImportSpecifier */: + case 172 /* PropertyDeclaration */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: return true; - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: return settings.indentSwitchCase ?? true; - case 259 /* VariableDeclaration */: - case 302 /* PropertyAssignment */: - case 225 /* BinaryExpression */: - if (!settings.indentMultiLineObjectLiteralBeginningOnBlankLine && sourceFile && childKind === 209 /* ObjectLiteralExpression */) { + case 260 /* VariableDeclaration */: + case 303 /* PropertyAssignment */: + case 226 /* BinaryExpression */: + if (!settings.indentMultiLineObjectLiteralBeginningOnBlankLine && sourceFile && childKind === 210 /* ObjectLiteralExpression */) { return rangeIsOnOneLine(sourceFile, child); } - if (parent2.kind === 225 /* BinaryExpression */ && sourceFile && child && childKind === 283 /* JsxElement */) { + if (parent2.kind === 226 /* BinaryExpression */ && sourceFile && child && childKind === 284 /* JsxElement */) { const parentStartLine = sourceFile.getLineAndCharacterOfPosition(skipTrivia(sourceFile.text, parent2.pos)).line; const childStartLine = sourceFile.getLineAndCharacterOfPosition(skipTrivia(sourceFile.text, child.pos)).line; return parentStartLine !== childStartLine; } - if (parent2.kind !== 225 /* BinaryExpression */) { + if (parent2.kind !== 226 /* BinaryExpression */) { return true; } break; - case 245 /* DoStatement */: - case 246 /* WhileStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 247 /* ForStatement */: - case 244 /* IfStatement */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 173 /* MethodDeclaration */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - return childKind !== 240 /* Block */; - case 218 /* ArrowFunction */: - if (sourceFile && childKind === 216 /* ParenthesizedExpression */) { + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 248 /* ForStatement */: + case 245 /* IfStatement */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + return childKind !== 241 /* Block */; + case 219 /* ArrowFunction */: + if (sourceFile && childKind === 217 /* ParenthesizedExpression */) { return rangeIsOnOneLine(sourceFile, child); } - return childKind !== 240 /* Block */; - case 277 /* ExportDeclaration */: - return childKind !== 278 /* NamedExports */; - case 271 /* ImportDeclaration */: - return childKind !== 272 /* ImportClause */ || !!child.namedBindings && child.namedBindings.kind !== 274 /* NamedImports */; - case 283 /* JsxElement */: - return childKind !== 286 /* JsxClosingElement */; - case 287 /* JsxFragment */: - return childKind !== 289 /* JsxClosingFragment */; - case 192 /* IntersectionType */: - case 191 /* UnionType */: - if (childKind === 186 /* TypeLiteral */ || childKind === 188 /* TupleType */) { + return childKind !== 241 /* Block */; + case 278 /* ExportDeclaration */: + return childKind !== 279 /* NamedExports */; + case 272 /* ImportDeclaration */: + return childKind !== 273 /* ImportClause */ || !!child.namedBindings && child.namedBindings.kind !== 275 /* NamedImports */; + case 284 /* JsxElement */: + return childKind !== 287 /* JsxClosingElement */; + case 288 /* JsxFragment */: + return childKind !== 290 /* JsxClosingFragment */; + case 193 /* IntersectionType */: + case 192 /* UnionType */: + if (childKind === 187 /* TypeLiteral */ || childKind === 189 /* TupleType */) { return false; } break; @@ -169580,11 +172002,11 @@ var SmartIndenter; SmartIndenter2.nodeWillIndentChild = nodeWillIndentChild; function isControlFlowEndingStatement(kind, parent2) { switch (kind) { - case 252 /* ReturnStatement */: - case 256 /* ThrowStatement */: - case 250 /* ContinueStatement */: - case 251 /* BreakStatement */: - return parent2.kind !== 240 /* Block */; + case 253 /* ReturnStatement */: + case 257 /* ThrowStatement */: + case 251 /* ContinueStatement */: + case 252 /* BreakStatement */: + return parent2.kind !== 241 /* Block */; default: return false; } @@ -169634,6 +172056,7 @@ __export(ts_exports2, { CompletionTriggerKind: () => CompletionTriggerKind, Completions: () => ts_Completions_exports, ConfigFileProgramReloadLevel: () => ConfigFileProgramReloadLevel, + ContainerFlags: () => ContainerFlags, ContextFlags: () => ContextFlags, CoreServicesShimHostAdapter: () => CoreServicesShimHostAdapter, Debug: () => Debug, @@ -169663,6 +172086,8 @@ __export(ts_exports2, { GetLiteralTextFlags: () => GetLiteralTextFlags, GoToDefinition: () => ts_GoToDefinition_exports, HighlightSpanKind: () => HighlightSpanKind, + IdentifierNameMap: () => IdentifierNameMap, + IdentifierNameMultiMap: () => IdentifierNameMultiMap, ImportKind: () => ImportKind, ImportsNotUsedAsValues: () => ImportsNotUsedAsValues, IndentStyle: () => IndentStyle, @@ -169767,6 +172192,7 @@ __export(ts_exports2, { WatchLogLevel: () => WatchLogLevel, WatchType: () => WatchType, accessPrivateIdentifier: () => accessPrivateIdentifier, + addDisposableResourceHelper: () => addDisposableResourceHelper, addEmitFlags: () => addEmitFlags, addEmitHelper: () => addEmitHelper, addEmitHelpers: () => addEmitHelpers, @@ -169846,6 +172272,9 @@ __export(ts_exports2, { changesAffectingProgramStructure: () => changesAffectingProgramStructure, childIsDecorated: () => childIsDecorated, classElementOrClassElementParameterIsDecorated: () => classElementOrClassElementParameterIsDecorated, + classHasClassThisAssignment: () => classHasClassThisAssignment, + classHasDeclaredOrExplicitlyAssignedName: () => classHasDeclaredOrExplicitlyAssignedName, + classHasExplicitlyAssignedName: () => classHasExplicitlyAssignedName, classOrConstructorParameterIsDecorated: () => classOrConstructorParameterIsDecorated, classPrivateFieldGetHelper: () => classPrivateFieldGetHelper, classPrivateFieldInHelper: () => classPrivateFieldInHelper, @@ -169943,6 +172372,8 @@ __export(ts_exports2, { createCacheWithRedirects: () => createCacheWithRedirects, createCacheableExportInfoMap: () => createCacheableExportInfoMap, createCachedDirectoryStructureHost: () => createCachedDirectoryStructureHost, + createClassNamedEvaluationHelperBlock: () => createClassNamedEvaluationHelperBlock, + createClassThisAssignmentBlock: () => createClassThisAssignmentBlock, createClassifier: () => createClassifier, createCommentDirectivesMap: () => createCommentDirectivesMap, createCompilerDiagnostic: () => createCompilerDiagnostic, @@ -170075,6 +172506,7 @@ __export(ts_exports2, { displayPart: () => displayPart, displayPartsToString: () => displayPartsToString, disposeEmitNodes: () => disposeEmitNodes, + disposeResourcesHelper: () => disposeResourcesHelper, documentSpansEqual: () => documentSpansEqual, dumpTracingLegend: () => dumpTracingLegend, elementAt: () => elementAt, @@ -170152,7 +172584,7 @@ __export(ts_exports2, { findPackageJsons: () => findPackageJsons, findPrecedingMatchingToken: () => findPrecedingMatchingToken, findPrecedingToken: () => findPrecedingToken, - findSuperStatementIndex: () => findSuperStatementIndex, + findSuperStatementIndexPath: () => findSuperStatementIndexPath, findTokenOnLeftOfPosition: () => findTokenOnLeftOfPosition, findUseStrictPrologue: () => findUseStrictPrologue, first: () => first, @@ -170227,6 +172659,7 @@ __export(ts_exports2, { getAreDeclarationMapsEnabled: () => getAreDeclarationMapsEnabled, getAssignedExpandoInitializer: () => getAssignedExpandoInitializer, getAssignedName: () => getAssignedName, + getAssignedNameOfIdentifier: () => getAssignedNameOfIdentifier, getAssignmentDeclarationKind: () => getAssignmentDeclarationKind, getAssignmentDeclarationPropertyAccessKind: () => getAssignmentDeclarationPropertyAccessKind, getAssignmentTargetKind: () => getAssignmentTargetKind, @@ -170254,8 +172687,10 @@ __export(ts_exports2, { getConditions: () => getConditions, getConfigFileParsingDiagnostics: () => getConfigFileParsingDiagnostics, getConstantValue: () => getConstantValue, + getContainerFlags: () => getContainerFlags, getContainerNode: () => getContainerNode, getContainingClass: () => getContainingClass, + getContainingClassExcludingClassDecorators: () => getContainingClassExcludingClassDecorators, getContainingClassStaticBlock: () => getContainingClassStaticBlock, getContainingFunction: () => getContainingFunction, getContainingFunctionDeclaration: () => getContainingFunctionDeclaration, @@ -170313,7 +172748,9 @@ __export(ts_exports2, { getEmitModuleKind: () => getEmitModuleKind, getEmitModuleResolutionKind: () => getEmitModuleResolutionKind, getEmitScriptTarget: () => getEmitScriptTarget, + getEmitStandardClassFields: () => getEmitStandardClassFields, getEnclosingBlockScopeContainer: () => getEnclosingBlockScopeContainer, + getEnclosingContainer: () => getEnclosingContainer, getEncodedSemanticClassifications: () => getEncodedSemanticClassifications, getEncodedSyntacticClassifications: () => getEncodedSyntacticClassifications, getEndLinePosition: () => getEndLinePosition, @@ -170531,6 +172968,7 @@ __export(ts_exports2, { getPropertyAssignmentAliasLikeExpression: () => getPropertyAssignmentAliasLikeExpression, getPropertyNameForPropertyNameNode: () => getPropertyNameForPropertyNameNode, getPropertyNameForUniqueESSymbol: () => getPropertyNameForUniqueESSymbol, + getPropertyNameFromType: () => getPropertyNameFromType, getPropertyNameOfBindingOrAssignmentElement: () => getPropertyNameOfBindingOrAssignmentElement, getPropertySymbolFromBindingElement: () => getPropertySymbolFromBindingElement, getPropertySymbolsFromContextualType: () => getPropertySymbolsFromContextualType, @@ -170711,6 +173149,8 @@ __export(ts_exports2, { indexOfNode: () => indexOfNode, indicesOf: () => indicesOf, inferredTypesContainingFile: () => inferredTypesContainingFile, + injectClassNamedEvaluationHelperBlockIfMissing: () => injectClassNamedEvaluationHelperBlockIfMissing, + injectClassThisAssignmentIfMissing: () => injectClassThisAssignmentIfMissing, insertImports: () => insertImports, insertLeadingStatement: () => insertLeadingStatement, insertSorted: () => insertSorted, @@ -170813,8 +173253,10 @@ __export(ts_exports2, { isClassExpression: () => isClassExpression, isClassLike: () => isClassLike, isClassMemberModifier: () => isClassMemberModifier, + isClassNamedEvaluationHelperBlock: () => isClassNamedEvaluationHelperBlock, isClassOrTypeElement: () => isClassOrTypeElement, isClassStaticBlockDeclaration: () => isClassStaticBlockDeclaration, + isClassThisAssignmentBlock: () => isClassThisAssignmentBlock, isCollapsedRange: () => isCollapsedRange, isColonToken: () => isColonToken, isCommaExpression: () => isCommaExpression, @@ -170860,6 +173302,7 @@ __export(ts_exports2, { isDiagnosticWithLocation: () => isDiagnosticWithLocation, isDiskPathRoot: () => isDiskPathRoot, isDoStatement: () => isDoStatement, + isDocumentRegistryEntry: () => isDocumentRegistryEntry, isDotDotDotToken: () => isDotDotDotToken, isDottedName: () => isDottedName, isDynamicName: () => isDynamicName, @@ -170910,6 +173353,7 @@ __export(ts_exports2, { isExternalModuleReference: () => isExternalModuleReference, isExternalModuleSymbol: () => isExternalModuleSymbol, isExternalOrCommonJsModule: () => isExternalOrCommonJsModule, + isFileLevelReservedGeneratedIdentifier: () => isFileLevelReservedGeneratedIdentifier, isFileLevelUniqueName: () => isFileLevelUniqueName, isFileProbablyExternalModule: () => isFileProbablyExternalModule, isFirstDeclarationOfSymbolParameter: () => isFirstDeclarationOfSymbolParameter, @@ -170980,6 +173424,7 @@ __export(ts_exports2, { isInString: () => isInString, isInTemplateString: () => isInTemplateString, isInTopLevelContext: () => isInTopLevelContext, + isInTypeQuery: () => isInTypeQuery, isIncrementalCompilation: () => isIncrementalCompilation, isIndexSignatureDeclaration: () => isIndexSignatureDeclaration, isIndexedAccessTypeNode: () => isIndexedAccessTypeNode, @@ -171357,6 +173802,7 @@ __export(ts_exports2, { isTypeQueryNode: () => isTypeQueryNode, isTypeReferenceNode: () => isTypeReferenceNode, isTypeReferenceType: () => isTypeReferenceType, + isTypeUsableAsPropertyName: () => isTypeUsableAsPropertyName, isUMDExportSymbol: () => isUMDExportSymbol, isUnaryExpression: () => isUnaryExpression, isUnaryExpressionWithWrite: () => isUnaryExpressionWithWrite, @@ -171371,7 +173817,9 @@ __export(ts_exports2, { isValidESSymbolDeclaration: () => isValidESSymbolDeclaration, isValidTypeOnlyAliasUseSite: () => isValidTypeOnlyAliasUseSite, isValueSignatureDeclaration: () => isValueSignatureDeclaration, + isVarAwaitUsing: () => isVarAwaitUsing, isVarConst: () => isVarConst, + isVarUsing: () => isVarUsing, isVariableDeclaration: () => isVariableDeclaration, isVariableDeclarationInVariableStatement: () => isVariableDeclarationInVariableStatement, isVariableDeclarationInitializedToBareOrAccessedRequire: () => isVariableDeclarationInitializedToBareOrAccessedRequire, @@ -171783,6 +174231,7 @@ __export(ts_exports2, { transformJsx: () => transformJsx, transformLegacyDecorators: () => transformLegacyDecorators, transformModule: () => transformModule, + transformNamedEvaluation: () => transformNamedEvaluation, transformNodeModule: () => transformNodeModule, transformNodes: () => transformNodes, transformSystemModule: () => transformSystemModule, @@ -171882,11 +174331,11 @@ var typeScriptVersion2; function getTypeScriptVersion() { return typeScriptVersion2 ?? (typeScriptVersion2 = new Version(version)); } -function formatDeprecationMessage(name, error, errorAfter, since, message) { - let deprecationMessage = error ? "DeprecationError: " : "DeprecationWarning: "; +function formatDeprecationMessage(name, error2, errorAfter, since, message) { + let deprecationMessage = error2 ? "DeprecationError: " : "DeprecationWarning: "; deprecationMessage += `'${name}' `; deprecationMessage += since ? `has been deprecated since v${since}` : "is deprecated"; - deprecationMessage += error ? " and can no longer be used." : errorAfter ? ` and will no longer be usable after v${errorAfter}.` : "."; + deprecationMessage += error2 ? " and can no longer be used." : errorAfter ? ` and will no longer be usable after v${errorAfter}.` : "."; deprecationMessage += message ? ` ${formatStringFromArgs(message, [name], 0)}` : ""; return deprecationMessage; } @@ -171924,9 +174373,9 @@ function createDeprecation(name, options = {}) { const errorAfter = typeof options.errorAfter === "string" ? new Version(options.errorAfter) : options.errorAfter; const warnAfter = typeof options.warnAfter === "string" ? new Version(options.warnAfter) : options.warnAfter; const since = typeof options.since === "string" ? new Version(options.since) : options.since ?? warnAfter; - const error = options.error || errorAfter && version2.compareTo(errorAfter) >= 0; + const error2 = options.error || errorAfter && version2.compareTo(errorAfter) >= 0; const warn = !warnAfter || version2.compareTo(warnAfter) >= 0; - return error ? createErrorDeprecation(name, errorAfter, since, options.message) : warn ? createWarningDeprecation(name, errorAfter, since, options.message) : noop; + return error2 ? createErrorDeprecation(name, errorAfter, since, options.message) : warn ? createWarningDeprecation(name, errorAfter, since, options.message) : noop; } function wrapFunction(deprecation, func) { return function() { @@ -171986,9 +174435,9 @@ function buildOverload(name) { // src/deprecatedCompat/5.0/identifierProperties.ts addObjectAllocatorPatcher((objectAllocator2) => { - const Identifier74 = objectAllocator2.getIdentifierConstructor(); - if (!hasProperty(Identifier74.prototype, "originalKeywordKind")) { - Object.defineProperty(Identifier74.prototype, "originalKeywordKind", { + const Identifier78 = objectAllocator2.getIdentifierConstructor(); + if (!hasProperty(Identifier78.prototype, "originalKeywordKind")) { + Object.defineProperty(Identifier78.prototype, "originalKeywordKind", { get: deprecate(function() { return identifierToKeywordKind(this); }, { @@ -172000,10 +174449,10 @@ addObjectAllocatorPatcher((objectAllocator2) => { }) }); } - if (!hasProperty(Identifier74.prototype, "isInJSDocNamespace")) { - Object.defineProperty(Identifier74.prototype, "isInJSDocNamespace", { + if (!hasProperty(Identifier78.prototype, "isInJSDocNamespace")) { + Object.defineProperty(Identifier78.prototype, "isInJSDocNamespace", { get: deprecate(function() { - return this.flags & 2048 /* IdentifierIsInJSDocNamespace */ ? true : void 0; + return this.flags & 4096 /* IdentifierIsInJSDocNamespace */ ? true : void 0; }, { name: "isInJSDocNamespace", since: "5.0", @@ -172024,6 +174473,7 @@ __export(ts_server_exports3, { ActionWatchTypingLocations: () => ActionWatchTypingLocations, Arguments: () => Arguments, AutoImportProviderProject: () => AutoImportProviderProject, + AuxiliaryProject: () => AuxiliaryProject, CharRangeSection: () => CharRangeSection, CommandNames: () => CommandNames, ConfigFileDiagEvent: () => ConfigFileDiagEvent, @@ -172562,7 +175012,7 @@ function createSortedArray2() { } // src/server/utilities.ts -var ThrottledOperations = class { +var ThrottledOperations = class _ThrottledOperations { constructor(host, logger) { this.host = host; this.pendingTimeouts = /* @__PURE__ */ new Map(); @@ -172579,7 +175029,7 @@ var ThrottledOperations = class { if (pendingTimeout) { this.host.clearTimeout(pendingTimeout); } - this.pendingTimeouts.set(operationId, this.host.setTimeout(ThrottledOperations.run, delay, operationId, this, cb)); + this.pendingTimeouts.set(operationId, this.host.setTimeout(_ThrottledOperations.run, delay, operationId, this, cb)); if (this.logger) { this.logger.info(`Scheduled: ${operationId}${pendingTimeout ? ", Cancelled earlier one" : ""}`); } @@ -172602,7 +175052,7 @@ var ThrottledOperations = class { (_b = perfLogger) == null ? void 0 : _b.logStopScheduledOperation(); } }; -var GcTimer = class { +var GcTimer = class _GcTimer { constructor(host, delay, logger) { this.host = host; this.delay = delay; @@ -172612,7 +175062,7 @@ var GcTimer = class { if (!this.host.gc || this.timerId !== void 0) { return; } - this.timerId = this.host.setTimeout(GcTimer.run, this.delay, this); + this.timerId = this.host.setTimeout(_GcTimer.run, this.delay, this); } static run(self) { var _a, _b; @@ -173563,7 +176013,7 @@ function hasNoTypeScriptSource(fileNames) { function isGeneratedFileWatcher(watch) { return watch.generatedFilePath !== void 0; } -var Project3 = class { +var Project3 = class _Project { /** @internal */ constructor(projectName, projectKind, projectService, documentRegistry, hasExplicitListOfFiles, lastFileExceededProgramSize, compilerOptions, compileOnSaveEnabled, watchOptions, directoryStructureHost, currentDirectory) { this.projectKind = projectKind; @@ -173680,7 +176130,7 @@ var Project3 = class { return hasOneOrMoreJsAndNoTsFiles(this); } static resolveModule(moduleName, initialDir, host, log) { - return Project3.importServicePluginSync({ name: moduleName }, [initialDir], host, log).resolvedModule; + return _Project.importServicePluginSync({ name: moduleName }, [initialDir], host, log).resolvedModule; } /** @internal */ static importServicePluginSync(pluginConfigEntry, searchPaths, host, log) { @@ -174057,6 +176507,16 @@ var Project3 = class { true ); } + /** @internal */ + cleanupProgram() { + if (this.program) { + for (const f of this.program.getSourceFiles()) { + this.detachScriptInfoIfNotRoot(f.fileName); + } + this.program.forEachResolvedProjectReference((ref) => this.detachScriptInfoFromProject(ref.sourceFile.fileName)); + this.program = void 0; + } + } disableLanguageService(lastFileExceededProgramSize) { if (!this.languageServiceEnabled) { return; @@ -174064,6 +176524,7 @@ var Project3 = class { Debug.assert(this.projectService.serverMode !== 2 /* Syntactic */); this.languageService.cleanupSemanticCache(); this.languageServiceEnabled = false; + this.cleanupProgram(); this.lastFileExceededProgramSize = lastFileExceededProgramSize; this.builderState = void 0; if (this.autoImportProviderHost) { @@ -174072,6 +176533,7 @@ var Project3 = class { this.autoImportProviderHost = void 0; this.resolutionCache.closeTypeRootsWatch(); this.clearGeneratedFileWatch(); + this.projectService.verifyDocumentRegistry(); this.projectService.onUpdateLanguageServiceStateForProject( this, /*languageServiceEnabled*/ @@ -174115,12 +176577,7 @@ var Project3 = class { close() { this.projectService.typingsCache.onProjectClosed(this); this.closeWatchingTypingLocations(); - if (this.program) { - for (const f of this.program.getSourceFiles()) { - this.detachScriptInfoIfNotRoot(f.fileName); - } - this.program.forEachResolvedProjectReference((ref) => this.detachScriptInfoFromProject(ref.sourceFile.fileName)); - } + this.cleanupProgram(); forEach(this.externalFiles, (externalFile) => this.detachScriptInfoIfNotRoot(externalFile)); for (const root of this.rootFiles) { root.detachFromProject(this); @@ -174498,6 +176955,7 @@ var Project3 = class { updateGraphWorker() { var _a, _b; const oldProgram = this.languageService.getCurrentProgram(); + Debug.assert(oldProgram === this.program); Debug.assert(!this.isClosed(), "Called update graph worker of closed project"); this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`); const start2 = timestamp(); @@ -174628,6 +177086,7 @@ var Project3 = class { } else if (this.program !== oldProgram) { this.writeLog(`Different program with same set of files`); } + this.projectService.verifyDocumentRegistry(); return hasNewProgram; } /** @internal */ @@ -175024,7 +177483,7 @@ var Project3 = class { return this.projectService.includePackageJsonAutoImports(); } /** @internal */ - getModuleResolutionHostForAutoImportProvider() { + getHostForAutoImportProvider() { var _a, _b; if (this.program) { return { @@ -175035,7 +177494,8 @@ var Project3 = class { readFile: this.projectService.host.readFile.bind(this.projectService.host), getDirectories: this.projectService.host.getDirectories.bind(this.projectService.host), trace: (_b = this.projectService.host.trace) == null ? void 0 : _b.bind(this.projectService.host), - useCaseSensitiveFileNames: this.program.useCaseSensitiveFileNames() + useCaseSensitiveFileNames: this.program.useCaseSensitiveFileNames(), + readDirectory: this.projectService.host.readDirectory.bind(this.projectService.host) }; } return this.projectService.host; @@ -175063,7 +177523,7 @@ var Project3 = class { if (dependencySelection) { (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.Session, "getPackageJsonAutoImportProvider"); const start2 = timestamp(); - this.autoImportProviderHost = AutoImportProviderProject.create(dependencySelection, this, this.getModuleResolutionHostForAutoImportProvider(), this.documentRegistry); + this.autoImportProviderHost = AutoImportProviderProject.create(dependencySelection, this, this.getHostForAutoImportProvider(), this.documentRegistry); if (this.autoImportProviderHost) { updateProjectIfDirty(this.autoImportProviderHost); this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider", timestamp() - start2); @@ -175272,12 +177732,11 @@ var AuxiliaryProject = class extends Project3 { isOrphan() { return true; } - /** @internal */ scheduleInvalidateResolutionsOfFailedLookupLocations() { return; } }; -var _AutoImportProviderProject = class extends Project3 { +var _AutoImportProviderProject = class _AutoImportProviderProject extends Project3 { /** @internal */ constructor(hostProject, initialRootNames, documentRegistry, compilerOptions) { super( @@ -175302,7 +177761,7 @@ var _AutoImportProviderProject = class extends Project3 { this.getParsedCommandLine = maybeBind(this.hostProject, this.hostProject.getParsedCommandLine); } /** @internal */ - static getRootFileNames(dependencySelection, hostProject, moduleResolutionHost, compilerOptions) { + static getRootFileNames(dependencySelection, hostProject, host, compilerOptions) { var _a, _b; if (!dependencySelection) { return emptyArray; @@ -175332,7 +177791,7 @@ var _AutoImportProviderProject = class extends Project3 { name, hostProject.currentDirectory, compilerOptions, - moduleResolutionHost, + host, program.getModuleResolutionCache() ); if (packageJson) { @@ -175349,7 +177808,7 @@ var _AutoImportProviderProject = class extends Project3 { `@types/${name}`, directory, compilerOptions, - moduleResolutionHost, + host, program.getModuleResolutionCache() ); if (typesPackageJson) { @@ -175389,12 +177848,12 @@ var _AutoImportProviderProject = class extends Project3 { const entrypoints = getEntrypointsFromPackageJsonInfo( packageJson, compilerOptions, - moduleResolutionHost, + host, program2.getModuleResolutionCache(), resolveJs ); if (entrypoints) { - const real = (_a2 = moduleResolutionHost.realpath) == null ? void 0 : _a2.call(moduleResolutionHost, packageJson.packageDirectory); + const real = (_a2 = host.realpath) == null ? void 0 : _a2.call(host, packageJson.packageDirectory); const isSymlink = real && real !== packageJson.packageDirectory; if (isSymlink) { symlinkCache.setSymlinkedDirectory(packageJson.packageDirectory, { @@ -175412,7 +177871,7 @@ var _AutoImportProviderProject = class extends Project3 { } } /** @internal */ - static create(dependencySelection, hostProject, moduleResolutionHost, documentRegistry) { + static create(dependencySelection, hostProject, host, documentRegistry) { if (dependencySelection === 0 /* Off */) { return void 0; } @@ -175420,7 +177879,7 @@ var _AutoImportProviderProject = class extends Project3 { ...hostProject.getCompilerOptions(), ...this.compilerOptionsOverrides }; - const rootNames = this.getRootFileNames(dependencySelection, hostProject, moduleResolutionHost, compilerOptions); + const rootNames = this.getRootFileNames(dependencySelection, hostProject, host, compilerOptions); if (!rootNames.length) { return void 0; } @@ -175439,7 +177898,7 @@ var _AutoImportProviderProject = class extends Project3 { rootFileNames = _AutoImportProviderProject.getRootFileNames( this.hostProject.includePackageJsonAutoImports(), this.hostProject, - this.hostProject.getModuleResolutionHostForAutoImportProvider(), + this.hostProject.getHostForAutoImportProvider(), this.getCompilationSettings() ); } @@ -175478,7 +177937,7 @@ var _AutoImportProviderProject = class extends Project3 { onPackageJsonChange() { throw new Error("package.json changes should be notified on an AutoImportProvider's host project"); } - getModuleResolutionHostForAutoImportProvider() { + getHostForAutoImportProvider() { throw new Error("AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead."); } getProjectReferences() { @@ -175501,11 +177960,10 @@ var _AutoImportProviderProject = class extends Project3 { return (_a = this.hostProject.getCurrentProgram()) == null ? void 0 : _a.getModuleResolutionCache(); } }; -var AutoImportProviderProject = _AutoImportProviderProject; /** @internal */ -AutoImportProviderProject.maxDependencies = 10; +_AutoImportProviderProject.maxDependencies = 10; /** @internal */ -AutoImportProviderProject.compilerOptionsOverrides = { +_AutoImportProviderProject.compilerOptionsOverrides = { diagnostics: false, skipLibCheck: true, sourceMap: false, @@ -175513,6 +177971,7 @@ AutoImportProviderProject.compilerOptionsOverrides = { lib: emptyArray, noLib: true }; +var AutoImportProviderProject = _AutoImportProviderProject; var ConfiguredProject2 = class extends Project3 { /** @internal */ constructor(configFileName, canonicalConfigFilePath, projectService, documentRegistry, cachedDirectoryStructureHost) { @@ -175835,7 +178294,7 @@ var indentStyle = new Map(Object.entries({ var defaultTypeSafeList = { "jquery": { // jquery files can have names like "jquery-1.10.2.min.js" (or "jquery.intellisense.js") - match: /jquery(-[\d\.]+)?(\.intellisense)?(\.min)?\.js$/i, + match: /jquery(-[\d.]+)?(\.intellisense)?(\.min)?\.js$/i, types: ["jquery"] }, "WinJS": { @@ -176074,7 +178533,7 @@ function createProjectNameFactoryWithCounter(nameFactory) { let nextId = 1; return () => nameFactory(nextId++); } -var _ProjectService = class { +var _ProjectService = class _ProjectService { constructor(opts) { /** * Container of all known scripts @@ -176152,6 +178611,9 @@ var _ProjectService = class { this.sharedExtendedConfigFileWatchers = /* @__PURE__ */ new Map(); /** @internal */ this.extendedConfigCache = /* @__PURE__ */ new Map(); + /** @internal */ + this.verifyDocumentRegistry = noop; + var _a; this.host = opts.host; this.logger = opts.logger; this.cancellationToken = opts.cancellationToken; @@ -176199,6 +178661,7 @@ var _ProjectService = class { watchFile: returnNoopFileWatcher, watchDirectory: returnNoopFileWatcher } : getWatchFactory(this.host, watchLogLevel, log, getDetailWatchInfo); + (_a = opts.incrementalVerifier) == null ? void 0 : _a.call(opts, this); } toPath(fileName) { return toPath(fileName, this.currentDirectory, this.toCanonicalFileName); @@ -177527,6 +179990,7 @@ var _ProjectService = class { /*ensureSynchronized*/ false ).cleanupSemanticCache(); + project.cleanupProgram(); project.markAsDirty(); } sendConfigFileDiagEvent(project, triggerFile) { @@ -178732,7 +181196,7 @@ Dynamic files must always be opened with service's current directory or service } } if (!exclude) { - if (/^.+[\.-]min\.js$/.test(normalizedNames[i])) { + if (/^.+[.-]min\.js$/.test(normalizedNames[i])) { excludedFiles.push(normalizedNames[i]); } else { filesToKeep.push(proj.rootFiles[i]); @@ -179052,9 +181516,9 @@ Dynamic files must always be opened with service's current directory or service return this.incompleteCompletionsCache || (this.incompleteCompletionsCache = createIncompleteCompletionsCache()); } }; -var ProjectService3 = _ProjectService; /** Makes a filename safe to insert in a RegExp */ -ProjectService3.filenameEscapeRegexp = /[-\/\\^$*+?.()|[\]{}]/g; +_ProjectService.filenameEscapeRegexp = /[-/\\^$*+?.()|[\]{}]/g; +var ProjectService3 = _ProjectService; function createIncompleteCompletionsCache() { let info; return { @@ -179721,7 +182185,7 @@ var invalidSyntacticModeCommands = [ "documentHighlights" /* DocumentHighlights */, "documentHighlights-full" /* DocumentHighlightsFull */ ]; -var Session3 = class { +var Session3 = class _Session { constructor(opts) { this.changeSeq = 0; this.handlers = new Map(Object.entries({ @@ -180396,7 +182860,8 @@ var Session3 = class { allowLocalPluginLoads: opts.allowLocalPluginLoads, typesMapLocation: opts.typesMapLocation, serverMode: opts.serverMode, - session: this + session: this, + incrementalVerifier: opts.incrementalVerifier }; this.projectService = new ProjectService3(settings); this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)); @@ -180716,6 +183181,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter /*ensureSynchronized*/ false ).cleanupSemanticCache(); + p.cleanupProgram(); } } cleanup() { @@ -180822,7 +183288,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter const { file, project } = this.getFileAndProject(args); const position = this.getPositionInFile(args, file); const definitions = this.mapDefinitionInfoLocations(project.getLanguageService().getDefinitionAtPosition(file, position) || emptyArray2, project); - return simplifiedResult ? this.mapDefinitionInfo(definitions, project) : definitions.map(Session3.mapToOriginalLocation); + return simplifiedResult ? this.mapDefinitionInfo(definitions, project) : definitions.map(_Session.mapToOriginalLocation); } mapDefinitionInfoLocations(definitions, project) { return definitions.map((info) => { @@ -180859,7 +183325,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter }; } return { - definitions: definitions.map(Session3.mapToOriginalLocation), + definitions: definitions.map(_Session.mapToOriginalLocation), textSpan }; } @@ -180981,7 +183447,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter } const initialNode = getTouchingPropertyName(program.getSourceFile(file), position); const symbol = program.getTypeChecker().getSymbolAtLocation(initialNode); - const importSpecifier = symbol && getDeclarationOfKind(symbol, 275 /* ImportSpecifier */); + const importSpecifier = symbol && getDeclarationOfKind(symbol, 276 /* ImportSpecifier */); if (!importSpecifier) return void 0; const nameToSearch = ((_a2 = importSpecifier.propertyName) == null ? void 0 : _a2.text) || importSpecifier.name.text; @@ -181116,7 +183582,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter const { file, project } = this.getFileAndProject(args); const position = this.getPositionInFile(args, file); const implementations = this.mapImplementationLocations(project.getLanguageService().getImplementationAtPosition(file, position) || emptyArray2, project); - return simplifiedResult ? implementations.map(({ fileName, textSpan, contextSpan }) => this.toFileSpanWithContext(fileName, textSpan, contextSpan, project)) : implementations.map(Session3.mapToOriginalLocation); + return simplifiedResult ? implementations.map(({ fileName, textSpan, contextSpan }) => this.toFileSpanWithContext(fileName, textSpan, contextSpan, project)) : implementations.map(_Session.mapToOriginalLocation); } getSyntacticDiagnosticsSync(args) { const { configFile } = this.getConfigFileAndProject(args); @@ -181195,10 +183661,29 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter const { file, project } = this.getFileAndProject(args); const scriptInfo = this.projectService.getScriptInfoForNormalizedPath(file); const hints = project.getLanguageService().provideInlayHints(file, args, this.getPreferences(file)); - return hints.map((hint) => ({ - ...hint, - position: scriptInfo.positionToLineOffset(hint.position) - })); + return hints.map((hint) => { + const { position, displayParts } = hint; + return { + ...hint, + position: scriptInfo.positionToLineOffset(position), + displayParts: displayParts == null ? void 0 : displayParts.map(({ text, span, file: file2 }) => { + if (span) { + Debug.assertIsDefined(file2, "Target file should be defined together with its span."); + const scriptInfo2 = this.projectService.getScriptInfo(file2); + return { + text, + span: { + start: scriptInfo2.positionToLineOffset(span.start), + end: scriptInfo2.positionToLineOffset(span.start + span.length), + file: file2 + } + }; + } else { + return { text }; + } + }) + }; + }); } setCompilerOptionsForInferredProjects(args) { this.projectService.setCompilerOptionsForInferredProjects(args.options, args.projectRootPath); @@ -181599,6 +184084,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter kindModifiers, sortText, insertText, + filterText, replacementSpan, hasAction, source, @@ -181617,6 +184103,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter kindModifiers, sortText, insertText, + filterText, replacementSpan: convertedSpan, isSnippet, hasAction: hasAction || void 0, @@ -182738,7 +185225,7 @@ var TextChange9 = class { ); } }; -var _ScriptVersionCache = class { +var _ScriptVersionCache = class _ScriptVersionCache { constructor() { this.changes = []; this.versions = new Array(_ScriptVersionCache.maxVersions); @@ -182830,11 +185317,11 @@ var _ScriptVersionCache = class { return svc; } }; +_ScriptVersionCache.changeNumberThreshold = 8; +_ScriptVersionCache.changeLengthThreshold = 256; +_ScriptVersionCache.maxVersions = 8; var ScriptVersionCache = _ScriptVersionCache; -ScriptVersionCache.changeNumberThreshold = 8; -ScriptVersionCache.changeLengthThreshold = 256; -ScriptVersionCache.maxVersions = 8; -var LineIndexSnapshot = class { +var LineIndexSnapshot = class _LineIndexSnapshot { constructor(version2, cache, index, changesSincePreviousVersion = emptyArray2) { this.version = version2; this.cache = cache; @@ -182848,7 +185335,7 @@ var LineIndexSnapshot = class { return this.index.getLength(); } getChangeRange(oldSnapshot) { - if (oldSnapshot instanceof LineIndexSnapshot && this.cache === oldSnapshot.cache) { + if (oldSnapshot instanceof _LineIndexSnapshot && this.cache === oldSnapshot.cache) { if (this.version <= oldSnapshot.version) { return unchangedTextChangeRange; } else { @@ -182857,7 +185344,7 @@ var LineIndexSnapshot = class { } } }; -var LineIndex = class { +var LineIndex = class _LineIndex { constructor() { // set this to true to check each edit for accuracy this.checkEdits = false; @@ -182890,7 +185377,7 @@ var LineIndex = class { for (let i = 0; i < lines.length; i++) { leaves[i] = new LineLeaf(lines[i]); } - this.root = LineIndex.buildTreeFromBottom(leaves); + this.root = _LineIndex.buildTreeFromBottom(leaves); } else { this.root = new LineNode(); } @@ -182934,7 +185421,7 @@ var LineIndex = class { if (this.root.charCount() === 0) { Debug.assert(deleteLength === 0); if (newText !== void 0) { - this.load(LineIndex.linesFromText(newText).lines); + this.load(_LineIndex.linesFromText(newText).lines); return this; } return void 0; @@ -183005,7 +185492,7 @@ var LineIndex = class { return { lines, lineMap }; } }; -var LineNode = class { +var LineNode = class _LineNode { constructor(children = []) { this.children = children; this.totalChars = 0; @@ -183137,7 +185624,7 @@ var LineNode = class { childIndex++; const endLength = childIndex; if (childIndex < clen) { - splitNode = new LineNode(); + splitNode = new _LineNode(); while (childIndex < clen) { splitNode.add(this.children[childIndex]); childIndex++; @@ -183186,7 +185673,7 @@ var LineNode = class { splitNodes = new Array(splitNodeCount); let splitNodeIndex = 0; for (let i = 0; i < splitNodeCount; i++) { - splitNodes[i] = new LineNode(); + splitNodes[i] = new _LineNode(); } let splitNode = splitNodes[0]; while (nodeIndex < nodeCount) { @@ -183252,6 +185739,7 @@ __export(ts_server_exports4, { ActionWatchTypingLocations: () => ActionWatchTypingLocations, Arguments: () => Arguments, AutoImportProviderProject: () => AutoImportProviderProject, + AuxiliaryProject: () => AuxiliaryProject, CharRangeSection: () => CharRangeSection, CommandNames: () => CommandNames, ConfigFileDiagEvent: () => ConfigFileDiagEvent, @@ -183668,7 +186156,7 @@ function startNodeSession(options, logger, cancellationToken) { output: process.stdout, terminal: false }); - const _NodeTypingsInstaller = class { + const _NodeTypingsInstaller = class _NodeTypingsInstaller { constructor(telemetryEnabled2, logger2, host, globalTypingsCacheLocation, typingSafeListLocation2, typesMapLocation2, npmLocation2, validateDefaultNpmLocation2, event) { this.telemetryEnabled = telemetryEnabled2; this.logger = logger2; @@ -183876,14 +186364,14 @@ function startNodeSession(options, logger, cancellationToken) { this.host.setTimeout(request.operation, _NodeTypingsInstaller.requestDelayMillis); } }; - let NodeTypingsInstaller = _NodeTypingsInstaller; // This number is essentially arbitrary. Processing more than one typings request // at a time makes sense, but having too many in the pipe results in a hang // (see https://github.com/nodejs/node/issues/7657). // It would be preferable to base our limit on the amount of space left in the // buffer, but we have yet to find a way to retrieve that value. - NodeTypingsInstaller.maxActiveRequestCount = 10; - NodeTypingsInstaller.requestDelayMillis = 100; + _NodeTypingsInstaller.maxActiveRequestCount = 10; + _NodeTypingsInstaller.requestDelayMillis = 100; + let NodeTypingsInstaller = _NodeTypingsInstaller; class IOSession extends Session3 { constructor() { const event = (body, eventName) => { @@ -184105,6 +186593,7 @@ start(initializeNodeSystem(), require("os").platform()); CompletionTriggerKind, Completions, ConfigFileProgramReloadLevel, + ContainerFlags, ContextFlags, CoreServicesShimHostAdapter, Debug, @@ -184134,6 +186623,8 @@ start(initializeNodeSystem(), require("os").platform()); GetLiteralTextFlags, GoToDefinition, HighlightSpanKind, + IdentifierNameMap, + IdentifierNameMultiMap, ImportKind, ImportsNotUsedAsValues, IndentStyle, @@ -184238,6 +186729,7 @@ start(initializeNodeSystem(), require("os").platform()); WatchLogLevel, WatchType, accessPrivateIdentifier, + addDisposableResourceHelper, addEmitFlags, addEmitHelper, addEmitHelpers, @@ -184317,6 +186809,9 @@ start(initializeNodeSystem(), require("os").platform()); changesAffectingProgramStructure, childIsDecorated, classElementOrClassElementParameterIsDecorated, + classHasClassThisAssignment, + classHasDeclaredOrExplicitlyAssignedName, + classHasExplicitlyAssignedName, classOrConstructorParameterIsDecorated, classPrivateFieldGetHelper, classPrivateFieldInHelper, @@ -184414,6 +186909,8 @@ start(initializeNodeSystem(), require("os").platform()); createCacheWithRedirects, createCacheableExportInfoMap, createCachedDirectoryStructureHost, + createClassNamedEvaluationHelperBlock, + createClassThisAssignmentBlock, createClassifier, createCommentDirectivesMap, createCompilerDiagnostic, @@ -184546,6 +187043,7 @@ start(initializeNodeSystem(), require("os").platform()); displayPart, displayPartsToString, disposeEmitNodes, + disposeResourcesHelper, documentSpansEqual, dumpTracingLegend, elementAt, @@ -184623,7 +187121,7 @@ start(initializeNodeSystem(), require("os").platform()); findPackageJsons, findPrecedingMatchingToken, findPrecedingToken, - findSuperStatementIndex, + findSuperStatementIndexPath, findTokenOnLeftOfPosition, findUseStrictPrologue, first, @@ -184698,6 +187196,7 @@ start(initializeNodeSystem(), require("os").platform()); getAreDeclarationMapsEnabled, getAssignedExpandoInitializer, getAssignedName, + getAssignedNameOfIdentifier, getAssignmentDeclarationKind, getAssignmentDeclarationPropertyAccessKind, getAssignmentTargetKind, @@ -184725,8 +187224,10 @@ start(initializeNodeSystem(), require("os").platform()); getConditions, getConfigFileParsingDiagnostics, getConstantValue, + getContainerFlags, getContainerNode, getContainingClass, + getContainingClassExcludingClassDecorators, getContainingClassStaticBlock, getContainingFunction, getContainingFunctionDeclaration, @@ -184784,7 +187285,9 @@ start(initializeNodeSystem(), require("os").platform()); getEmitModuleKind, getEmitModuleResolutionKind, getEmitScriptTarget, + getEmitStandardClassFields, getEnclosingBlockScopeContainer, + getEnclosingContainer, getEncodedSemanticClassifications, getEncodedSyntacticClassifications, getEndLinePosition, @@ -185002,6 +187505,7 @@ start(initializeNodeSystem(), require("os").platform()); getPropertyAssignmentAliasLikeExpression, getPropertyNameForPropertyNameNode, getPropertyNameForUniqueESSymbol, + getPropertyNameFromType, getPropertyNameOfBindingOrAssignmentElement, getPropertySymbolFromBindingElement, getPropertySymbolsFromContextualType, @@ -185182,6 +187686,8 @@ start(initializeNodeSystem(), require("os").platform()); indexOfNode, indicesOf, inferredTypesContainingFile, + injectClassNamedEvaluationHelperBlockIfMissing, + injectClassThisAssignmentIfMissing, insertImports, insertLeadingStatement, insertSorted, @@ -185284,8 +187790,10 @@ start(initializeNodeSystem(), require("os").platform()); isClassExpression, isClassLike, isClassMemberModifier, + isClassNamedEvaluationHelperBlock, isClassOrTypeElement, isClassStaticBlockDeclaration, + isClassThisAssignmentBlock, isCollapsedRange, isColonToken, isCommaExpression, @@ -185331,6 +187839,7 @@ start(initializeNodeSystem(), require("os").platform()); isDiagnosticWithLocation, isDiskPathRoot, isDoStatement, + isDocumentRegistryEntry, isDotDotDotToken, isDottedName, isDynamicName, @@ -185381,6 +187890,7 @@ start(initializeNodeSystem(), require("os").platform()); isExternalModuleReference, isExternalModuleSymbol, isExternalOrCommonJsModule, + isFileLevelReservedGeneratedIdentifier, isFileLevelUniqueName, isFileProbablyExternalModule, isFirstDeclarationOfSymbolParameter, @@ -185451,6 +187961,7 @@ start(initializeNodeSystem(), require("os").platform()); isInString, isInTemplateString, isInTopLevelContext, + isInTypeQuery, isIncrementalCompilation, isIndexSignatureDeclaration, isIndexedAccessTypeNode, @@ -185828,6 +188339,7 @@ start(initializeNodeSystem(), require("os").platform()); isTypeQueryNode, isTypeReferenceNode, isTypeReferenceType, + isTypeUsableAsPropertyName, isUMDExportSymbol, isUnaryExpression, isUnaryExpressionWithWrite, @@ -185842,7 +188354,9 @@ start(initializeNodeSystem(), require("os").platform()); isValidESSymbolDeclaration, isValidTypeOnlyAliasUseSite, isValueSignatureDeclaration, + isVarAwaitUsing, isVarConst, + isVarUsing, isVariableDeclaration, isVariableDeclarationInVariableStatement, isVariableDeclarationInitializedToBareOrAccessedRequire, @@ -186254,6 +188768,7 @@ start(initializeNodeSystem(), require("os").platform()); transformJsx, transformLegacyDecorators, transformModule, + transformNamedEvaluation, transformNodeModule, transformNodes, transformSystemModule, diff --git a/node_modules/typescript/lib/tsserverlibrary.d.ts b/node_modules/typescript/lib/tsserverlibrary.d.ts index 24685f5..4b9d52e 100644 --- a/node_modules/typescript/lib/tsserverlibrary.d.ts +++ b/node_modules/typescript/lib/tsserverlibrary.d.ts @@ -1830,6 +1830,11 @@ declare namespace ts { * coupled with `replacementSpan` to replace a dotted access with a bracket access. */ insertText?: string; + /** + * A string that should be used when filtering a set of + * completion items. + */ + filterText?: string; /** * `insertText` should be interpreted as a snippet if true. */ @@ -2119,11 +2124,17 @@ declare namespace ts { arguments: InlayHintsRequestArgs; } interface InlayHintItem { + /** This property will be the empty string when displayParts is set. */ text: string; position: Location; kind: InlayHintKind; whitespaceBefore?: boolean; whitespaceAfter?: boolean; + displayParts?: InlayHintItemDisplayPart[]; + } + interface InlayHintItemDisplayPart { + text: string; + span?: FileSpan; } interface InlayHintsResponse extends Response { body?: InlayHintItem[]; @@ -2827,6 +2838,7 @@ declare namespace ts { readonly includeInlayPropertyDeclarationTypeHints?: boolean; readonly includeInlayFunctionLikeReturnTypeHints?: boolean; readonly includeInlayEnumMemberValueHints?: boolean; + readonly interactiveInlayHints?: boolean; readonly autoImportFileExcludePatterns?: string[]; /** * Indicates whether imports should be organized in a case-insensitive manner. @@ -3395,7 +3407,7 @@ declare namespace ts { markAsDirty(): void; getScriptFileNames(): string[]; getLanguageService(): never; - getModuleResolutionHostForAutoImportProvider(): never; + getHostForAutoImportProvider(): never; getProjectReferences(): readonly ts.ProjectReference[] | undefined; getTypeAcquisition(): TypeAcquisition; } @@ -4062,7 +4074,7 @@ declare namespace ts { responseRequired?: boolean; } } - const versionMajorMinor = "5.1"; + const versionMajorMinor = "5.2"; /** The version of the TypeScript compiler release */ const version: string; /** @@ -4252,211 +4264,212 @@ declare namespace ts { UndefinedKeyword = 157, UniqueKeyword = 158, UnknownKeyword = 159, - FromKeyword = 160, - GlobalKeyword = 161, - BigIntKeyword = 162, - OverrideKeyword = 163, - OfKeyword = 164, - QualifiedName = 165, - ComputedPropertyName = 166, - TypeParameter = 167, - Parameter = 168, - Decorator = 169, - PropertySignature = 170, - PropertyDeclaration = 171, - MethodSignature = 172, - MethodDeclaration = 173, - ClassStaticBlockDeclaration = 174, - Constructor = 175, - GetAccessor = 176, - SetAccessor = 177, - CallSignature = 178, - ConstructSignature = 179, - IndexSignature = 180, - TypePredicate = 181, - TypeReference = 182, - FunctionType = 183, - ConstructorType = 184, - TypeQuery = 185, - TypeLiteral = 186, - ArrayType = 187, - TupleType = 188, - OptionalType = 189, - RestType = 190, - UnionType = 191, - IntersectionType = 192, - ConditionalType = 193, - InferType = 194, - ParenthesizedType = 195, - ThisType = 196, - TypeOperator = 197, - IndexedAccessType = 198, - MappedType = 199, - LiteralType = 200, - NamedTupleMember = 201, - TemplateLiteralType = 202, - TemplateLiteralTypeSpan = 203, - ImportType = 204, - ObjectBindingPattern = 205, - ArrayBindingPattern = 206, - BindingElement = 207, - ArrayLiteralExpression = 208, - ObjectLiteralExpression = 209, - PropertyAccessExpression = 210, - ElementAccessExpression = 211, - CallExpression = 212, - NewExpression = 213, - TaggedTemplateExpression = 214, - TypeAssertionExpression = 215, - ParenthesizedExpression = 216, - FunctionExpression = 217, - ArrowFunction = 218, - DeleteExpression = 219, - TypeOfExpression = 220, - VoidExpression = 221, - AwaitExpression = 222, - PrefixUnaryExpression = 223, - PostfixUnaryExpression = 224, - BinaryExpression = 225, - ConditionalExpression = 226, - TemplateExpression = 227, - YieldExpression = 228, - SpreadElement = 229, - ClassExpression = 230, - OmittedExpression = 231, - ExpressionWithTypeArguments = 232, - AsExpression = 233, - NonNullExpression = 234, - MetaProperty = 235, - SyntheticExpression = 236, - SatisfiesExpression = 237, - TemplateSpan = 238, - SemicolonClassElement = 239, - Block = 240, - EmptyStatement = 241, - VariableStatement = 242, - ExpressionStatement = 243, - IfStatement = 244, - DoStatement = 245, - WhileStatement = 246, - ForStatement = 247, - ForInStatement = 248, - ForOfStatement = 249, - ContinueStatement = 250, - BreakStatement = 251, - ReturnStatement = 252, - WithStatement = 253, - SwitchStatement = 254, - LabeledStatement = 255, - ThrowStatement = 256, - TryStatement = 257, - DebuggerStatement = 258, - VariableDeclaration = 259, - VariableDeclarationList = 260, - FunctionDeclaration = 261, - ClassDeclaration = 262, - InterfaceDeclaration = 263, - TypeAliasDeclaration = 264, - EnumDeclaration = 265, - ModuleDeclaration = 266, - ModuleBlock = 267, - CaseBlock = 268, - NamespaceExportDeclaration = 269, - ImportEqualsDeclaration = 270, - ImportDeclaration = 271, - ImportClause = 272, - NamespaceImport = 273, - NamedImports = 274, - ImportSpecifier = 275, - ExportAssignment = 276, - ExportDeclaration = 277, - NamedExports = 278, - NamespaceExport = 279, - ExportSpecifier = 280, - MissingDeclaration = 281, - ExternalModuleReference = 282, - JsxElement = 283, - JsxSelfClosingElement = 284, - JsxOpeningElement = 285, - JsxClosingElement = 286, - JsxFragment = 287, - JsxOpeningFragment = 288, - JsxClosingFragment = 289, - JsxAttribute = 290, - JsxAttributes = 291, - JsxSpreadAttribute = 292, - JsxExpression = 293, - JsxNamespacedName = 294, - CaseClause = 295, - DefaultClause = 296, - HeritageClause = 297, - CatchClause = 298, - AssertClause = 299, - AssertEntry = 300, - ImportTypeAssertionContainer = 301, - PropertyAssignment = 302, - ShorthandPropertyAssignment = 303, - SpreadAssignment = 304, - EnumMember = 305, - /** @deprecated */ UnparsedPrologue = 306, - /** @deprecated */ UnparsedPrepend = 307, - /** @deprecated */ UnparsedText = 308, - /** @deprecated */ UnparsedInternalText = 309, - /** @deprecated */ UnparsedSyntheticReference = 310, - SourceFile = 311, - Bundle = 312, - /** @deprecated */ UnparsedSource = 313, - /** @deprecated */ InputFiles = 314, - JSDocTypeExpression = 315, - JSDocNameReference = 316, - JSDocMemberName = 317, - JSDocAllType = 318, - JSDocUnknownType = 319, - JSDocNullableType = 320, - JSDocNonNullableType = 321, - JSDocOptionalType = 322, - JSDocFunctionType = 323, - JSDocVariadicType = 324, - JSDocNamepathType = 325, - JSDoc = 326, + UsingKeyword = 160, + FromKeyword = 161, + GlobalKeyword = 162, + BigIntKeyword = 163, + OverrideKeyword = 164, + OfKeyword = 165, + QualifiedName = 166, + ComputedPropertyName = 167, + TypeParameter = 168, + Parameter = 169, + Decorator = 170, + PropertySignature = 171, + PropertyDeclaration = 172, + MethodSignature = 173, + MethodDeclaration = 174, + ClassStaticBlockDeclaration = 175, + Constructor = 176, + GetAccessor = 177, + SetAccessor = 178, + CallSignature = 179, + ConstructSignature = 180, + IndexSignature = 181, + TypePredicate = 182, + TypeReference = 183, + FunctionType = 184, + ConstructorType = 185, + TypeQuery = 186, + TypeLiteral = 187, + ArrayType = 188, + TupleType = 189, + OptionalType = 190, + RestType = 191, + UnionType = 192, + IntersectionType = 193, + ConditionalType = 194, + InferType = 195, + ParenthesizedType = 196, + ThisType = 197, + TypeOperator = 198, + IndexedAccessType = 199, + MappedType = 200, + LiteralType = 201, + NamedTupleMember = 202, + TemplateLiteralType = 203, + TemplateLiteralTypeSpan = 204, + ImportType = 205, + ObjectBindingPattern = 206, + ArrayBindingPattern = 207, + BindingElement = 208, + ArrayLiteralExpression = 209, + ObjectLiteralExpression = 210, + PropertyAccessExpression = 211, + ElementAccessExpression = 212, + CallExpression = 213, + NewExpression = 214, + TaggedTemplateExpression = 215, + TypeAssertionExpression = 216, + ParenthesizedExpression = 217, + FunctionExpression = 218, + ArrowFunction = 219, + DeleteExpression = 220, + TypeOfExpression = 221, + VoidExpression = 222, + AwaitExpression = 223, + PrefixUnaryExpression = 224, + PostfixUnaryExpression = 225, + BinaryExpression = 226, + ConditionalExpression = 227, + TemplateExpression = 228, + YieldExpression = 229, + SpreadElement = 230, + ClassExpression = 231, + OmittedExpression = 232, + ExpressionWithTypeArguments = 233, + AsExpression = 234, + NonNullExpression = 235, + MetaProperty = 236, + SyntheticExpression = 237, + SatisfiesExpression = 238, + TemplateSpan = 239, + SemicolonClassElement = 240, + Block = 241, + EmptyStatement = 242, + VariableStatement = 243, + ExpressionStatement = 244, + IfStatement = 245, + DoStatement = 246, + WhileStatement = 247, + ForStatement = 248, + ForInStatement = 249, + ForOfStatement = 250, + ContinueStatement = 251, + BreakStatement = 252, + ReturnStatement = 253, + WithStatement = 254, + SwitchStatement = 255, + LabeledStatement = 256, + ThrowStatement = 257, + TryStatement = 258, + DebuggerStatement = 259, + VariableDeclaration = 260, + VariableDeclarationList = 261, + FunctionDeclaration = 262, + ClassDeclaration = 263, + InterfaceDeclaration = 264, + TypeAliasDeclaration = 265, + EnumDeclaration = 266, + ModuleDeclaration = 267, + ModuleBlock = 268, + CaseBlock = 269, + NamespaceExportDeclaration = 270, + ImportEqualsDeclaration = 271, + ImportDeclaration = 272, + ImportClause = 273, + NamespaceImport = 274, + NamedImports = 275, + ImportSpecifier = 276, + ExportAssignment = 277, + ExportDeclaration = 278, + NamedExports = 279, + NamespaceExport = 280, + ExportSpecifier = 281, + MissingDeclaration = 282, + ExternalModuleReference = 283, + JsxElement = 284, + JsxSelfClosingElement = 285, + JsxOpeningElement = 286, + JsxClosingElement = 287, + JsxFragment = 288, + JsxOpeningFragment = 289, + JsxClosingFragment = 290, + JsxAttribute = 291, + JsxAttributes = 292, + JsxSpreadAttribute = 293, + JsxExpression = 294, + JsxNamespacedName = 295, + CaseClause = 296, + DefaultClause = 297, + HeritageClause = 298, + CatchClause = 299, + AssertClause = 300, + AssertEntry = 301, + ImportTypeAssertionContainer = 302, + PropertyAssignment = 303, + ShorthandPropertyAssignment = 304, + SpreadAssignment = 305, + EnumMember = 306, + /** @deprecated */ UnparsedPrologue = 307, + /** @deprecated */ UnparsedPrepend = 308, + /** @deprecated */ UnparsedText = 309, + /** @deprecated */ UnparsedInternalText = 310, + /** @deprecated */ UnparsedSyntheticReference = 311, + SourceFile = 312, + Bundle = 313, + /** @deprecated */ UnparsedSource = 314, + /** @deprecated */ InputFiles = 315, + JSDocTypeExpression = 316, + JSDocNameReference = 317, + JSDocMemberName = 318, + JSDocAllType = 319, + JSDocUnknownType = 320, + JSDocNullableType = 321, + JSDocNonNullableType = 322, + JSDocOptionalType = 323, + JSDocFunctionType = 324, + JSDocVariadicType = 325, + JSDocNamepathType = 326, + JSDoc = 327, /** @deprecated Use SyntaxKind.JSDoc */ - JSDocComment = 326, - JSDocText = 327, - JSDocTypeLiteral = 328, - JSDocSignature = 329, - JSDocLink = 330, - JSDocLinkCode = 331, - JSDocLinkPlain = 332, - JSDocTag = 333, - JSDocAugmentsTag = 334, - JSDocImplementsTag = 335, - JSDocAuthorTag = 336, - JSDocDeprecatedTag = 337, - JSDocClassTag = 338, - JSDocPublicTag = 339, - JSDocPrivateTag = 340, - JSDocProtectedTag = 341, - JSDocReadonlyTag = 342, - JSDocOverrideTag = 343, - JSDocCallbackTag = 344, - JSDocOverloadTag = 345, - JSDocEnumTag = 346, - JSDocParameterTag = 347, - JSDocReturnTag = 348, - JSDocThisTag = 349, - JSDocTypeTag = 350, - JSDocTemplateTag = 351, - JSDocTypedefTag = 352, - JSDocSeeTag = 353, - JSDocPropertyTag = 354, - JSDocThrowsTag = 355, - JSDocSatisfiesTag = 356, - SyntaxList = 357, - NotEmittedStatement = 358, - PartiallyEmittedExpression = 359, - CommaListExpression = 360, - SyntheticReferenceExpression = 361, - Count = 362, + JSDocComment = 327, + JSDocText = 328, + JSDocTypeLiteral = 329, + JSDocSignature = 330, + JSDocLink = 331, + JSDocLinkCode = 332, + JSDocLinkPlain = 333, + JSDocTag = 334, + JSDocAugmentsTag = 335, + JSDocImplementsTag = 336, + JSDocAuthorTag = 337, + JSDocDeprecatedTag = 338, + JSDocClassTag = 339, + JSDocPublicTag = 340, + JSDocPrivateTag = 341, + JSDocProtectedTag = 342, + JSDocReadonlyTag = 343, + JSDocOverrideTag = 344, + JSDocCallbackTag = 345, + JSDocOverloadTag = 346, + JSDocEnumTag = 347, + JSDocParameterTag = 348, + JSDocReturnTag = 349, + JSDocThisTag = 350, + JSDocTypeTag = 351, + JSDocTemplateTag = 352, + JSDocTypedefTag = 353, + JSDocSeeTag = 354, + JSDocPropertyTag = 355, + JSDocThrowsTag = 356, + JSDocSatisfiesTag = 357, + SyntaxList = 358, + NotEmittedStatement = 359, + PartiallyEmittedExpression = 360, + CommaListExpression = 361, + SyntheticReferenceExpression = 362, + Count = 363, FirstAssignment = 64, LastAssignment = 79, FirstCompoundAssignment = 65, @@ -4464,15 +4477,15 @@ declare namespace ts { FirstReservedWord = 83, LastReservedWord = 118, FirstKeyword = 83, - LastKeyword = 164, + LastKeyword = 165, FirstFutureReservedWord = 119, LastFutureReservedWord = 127, - FirstTypeNode = 181, - LastTypeNode = 204, + FirstTypeNode = 182, + LastTypeNode = 205, FirstPunctuation = 19, LastPunctuation = 79, FirstToken = 0, - LastToken = 164, + LastToken = 165, FirstTriviaToken = 2, LastTriviaToken = 7, FirstLiteralToken = 9, @@ -4481,19 +4494,19 @@ declare namespace ts { LastTemplateToken = 18, FirstBinaryOperator = 30, LastBinaryOperator = 79, - FirstStatement = 242, - LastStatement = 258, - FirstNode = 165, - FirstJSDocNode = 315, - LastJSDocNode = 356, - FirstJSDocTagNode = 333, - LastJSDocTagNode = 356 + FirstStatement = 243, + LastStatement = 259, + FirstNode = 166, + FirstJSDocNode = 316, + LastJSDocNode = 357, + FirstJSDocTagNode = 334, + LastJSDocTagNode = 357 } type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia; type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral; type PseudoLiteralSyntaxKind = SyntaxKind.TemplateHead | SyntaxKind.TemplateMiddle | SyntaxKind.TemplateTail; type PunctuationSyntaxKind = SyntaxKind.OpenBraceToken | SyntaxKind.CloseBraceToken | SyntaxKind.OpenParenToken | SyntaxKind.CloseParenToken | SyntaxKind.OpenBracketToken | SyntaxKind.CloseBracketToken | SyntaxKind.DotToken | SyntaxKind.DotDotDotToken | SyntaxKind.SemicolonToken | SyntaxKind.CommaToken | SyntaxKind.QuestionDotToken | SyntaxKind.LessThanToken | SyntaxKind.LessThanSlashToken | SyntaxKind.GreaterThanToken | SyntaxKind.LessThanEqualsToken | SyntaxKind.GreaterThanEqualsToken | SyntaxKind.EqualsEqualsToken | SyntaxKind.ExclamationEqualsToken | SyntaxKind.EqualsEqualsEqualsToken | SyntaxKind.ExclamationEqualsEqualsToken | SyntaxKind.EqualsGreaterThanToken | SyntaxKind.PlusToken | SyntaxKind.MinusToken | SyntaxKind.AsteriskToken | SyntaxKind.AsteriskAsteriskToken | SyntaxKind.SlashToken | SyntaxKind.PercentToken | SyntaxKind.PlusPlusToken | SyntaxKind.MinusMinusToken | SyntaxKind.LessThanLessThanToken | SyntaxKind.GreaterThanGreaterThanToken | SyntaxKind.GreaterThanGreaterThanGreaterThanToken | SyntaxKind.AmpersandToken | SyntaxKind.BarToken | SyntaxKind.CaretToken | SyntaxKind.ExclamationToken | SyntaxKind.TildeToken | SyntaxKind.AmpersandAmpersandToken | SyntaxKind.AmpersandAmpersandEqualsToken | SyntaxKind.BarBarToken | SyntaxKind.BarBarEqualsToken | SyntaxKind.QuestionQuestionToken | SyntaxKind.QuestionQuestionEqualsToken | SyntaxKind.QuestionToken | SyntaxKind.ColonToken | SyntaxKind.AtToken | SyntaxKind.BacktickToken | SyntaxKind.HashToken | SyntaxKind.EqualsToken | SyntaxKind.PlusEqualsToken | SyntaxKind.MinusEqualsToken | SyntaxKind.AsteriskEqualsToken | SyntaxKind.AsteriskAsteriskEqualsToken | SyntaxKind.SlashEqualsToken | SyntaxKind.PercentEqualsToken | SyntaxKind.LessThanLessThanEqualsToken | SyntaxKind.GreaterThanGreaterThanEqualsToken | SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken | SyntaxKind.AmpersandEqualsToken | SyntaxKind.BarEqualsToken | SyntaxKind.CaretEqualsToken; - type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AccessorKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsKeyword | SyntaxKind.AssertsKeyword | SyntaxKind.AssertKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FromKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.GetKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InferKeyword | SyntaxKind.InKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.LetKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.OfKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OutKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.RequireKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SatisfiesKeyword | SyntaxKind.SetKeyword | SyntaxKind.StaticKeyword | SyntaxKind.StringKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.YieldKeyword; + type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AccessorKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsKeyword | SyntaxKind.AssertsKeyword | SyntaxKind.AssertKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FromKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.GetKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InferKeyword | SyntaxKind.InKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.LetKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.OfKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OutKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.RequireKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SatisfiesKeyword | SyntaxKind.SetKeyword | SyntaxKind.StaticKeyword | SyntaxKind.StringKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.UsingKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.YieldKeyword; type ModifierSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AccessorKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.ConstKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.ExportKeyword | SyntaxKind.InKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OutKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.StaticKeyword; type KeywordTypeSyntaxKind = SyntaxKind.AnyKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.StringKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VoidKeyword; type TokenSyntaxKind = SyntaxKind.Unknown | SyntaxKind.EndOfFileToken | TriviaSyntaxKind | LiteralSyntaxKind | PseudoLiteralSyntaxKind | PunctuationSyntaxKind | SyntaxKind.Identifier | KeywordSyntaxKind; @@ -4503,32 +4516,35 @@ declare namespace ts { None = 0, Let = 1, Const = 2, - NestedNamespace = 4, - Synthesized = 8, - Namespace = 16, - OptionalChain = 32, - ExportContext = 64, - ContainsThis = 128, - HasImplicitReturn = 256, - HasExplicitReturn = 512, - GlobalAugmentation = 1024, - HasAsyncFunctions = 2048, - DisallowInContext = 4096, - YieldContext = 8192, - DecoratorContext = 16384, - AwaitContext = 32768, - DisallowConditionalTypesContext = 65536, - ThisNodeHasError = 131072, - JavaScriptFile = 262144, - ThisNodeOrAnySubNodesHasError = 524288, - HasAggregatedChildData = 1048576, - JSDoc = 8388608, - JsonFile = 67108864, - BlockScoped = 3, - ReachabilityCheckFlags = 768, - ReachabilityAndEmitFlags = 2816, - ContextFlags = 50720768, - TypeExcludesFlags = 40960 + Using = 4, + AwaitUsing = 6, + NestedNamespace = 8, + Synthesized = 16, + Namespace = 32, + OptionalChain = 64, + ExportContext = 128, + ContainsThis = 256, + HasImplicitReturn = 512, + HasExplicitReturn = 1024, + GlobalAugmentation = 2048, + HasAsyncFunctions = 4096, + DisallowInContext = 8192, + YieldContext = 16384, + DecoratorContext = 32768, + AwaitContext = 65536, + DisallowConditionalTypesContext = 131072, + ThisNodeHasError = 262144, + JavaScriptFile = 524288, + ThisNodeOrAnySubNodesHasError = 1048576, + HasAggregatedChildData = 2097152, + JSDoc = 16777216, + JsonFile = 134217728, + BlockScoped = 7, + Constant = 6, + ReachabilityCheckFlags = 1536, + ReachabilityAndEmitFlags = 5632, + ContextFlags = 101441536, + TypeExcludesFlags = 81920 } enum ModifierFlags { None = 0, @@ -5818,9 +5834,11 @@ declare namespace ts { }; }) | ExportDeclaration & { readonly isTypeOnly: true; + readonly moduleSpecifier: Expression; } | NamespaceExport & { readonly parent: ExportDeclaration & { readonly isTypeOnly: true; + readonly moduleSpecifier: Expression; }; }; type TypeOnlyAliasDeclaration = TypeOnlyImportDeclaration | TypeOnlyExportDeclaration; @@ -6265,7 +6283,7 @@ declare namespace ts { getSourceFileByPath(path: Path): SourceFile | undefined; getCurrentDirectory(): string; } - interface ParseConfigHost { + interface ParseConfigHost extends ModuleResolutionHost { useCaseSensitiveFileNames: boolean; readDirectory(rootDir: string, extensions: readonly string[], excludes: readonly string[] | undefined, includes: readonly string[], depth?: number): readonly string[]; /** @@ -6942,7 +6960,7 @@ declare namespace ts { hasRestElement: boolean; combinedFlags: ElementFlags; readonly: boolean; - labeledElementDeclarations?: readonly (NamedTupleMember | ParameterDeclaration)[]; + labeledElementDeclarations?: readonly (NamedTupleMember | ParameterDeclaration | undefined)[]; } interface TupleTypeReference extends TypeReference { target: TupleType; @@ -7583,7 +7601,14 @@ declare namespace ts { All = 15, ExcludeJSDocTypeAssertion = 16 } - type TypeOfTag = "undefined" | "number" | "bigint" | "boolean" | "string" | "symbol" | "object" | "function"; + type ImmediatelyInvokedFunctionExpression = CallExpression & { + readonly expression: FunctionExpression; + }; + type ImmediatelyInvokedArrowFunction = CallExpression & { + readonly expression: ParenthesizedExpression & { + readonly expression: ArrowFunction; + }; + }; interface NodeFactory { createNodeArray(elements?: readonly T[], hasTrailingComma?: boolean): NodeArray; createNumericLiteral(value: string | number, numericLiteralFlags?: TokenFlags): NumericLiteral; @@ -8053,8 +8078,8 @@ declare namespace ts { createPostfixDecrement(operand: Expression): PostfixUnaryExpression; createImmediatelyInvokedFunctionExpression(statements: readonly Statement[]): CallExpression; createImmediatelyInvokedFunctionExpression(statements: readonly Statement[], param: ParameterDeclaration, paramValue: Expression): CallExpression; - createImmediatelyInvokedArrowFunction(statements: readonly Statement[]): CallExpression; - createImmediatelyInvokedArrowFunction(statements: readonly Statement[], param: ParameterDeclaration, paramValue: Expression): CallExpression; + createImmediatelyInvokedArrowFunction(statements: readonly Statement[]): ImmediatelyInvokedArrowFunction; + createImmediatelyInvokedArrowFunction(statements: readonly Statement[], param: ParameterDeclaration, paramValue: Expression): ImmediatelyInvokedArrowFunction; createVoidZero(): VoidExpression; createExportDefault(expression: Expression): ExportAssignment; createExternalModuleExport(exportName: Identifier): ExportDeclaration; @@ -8384,6 +8409,7 @@ declare namespace ts { readonly includeInlayPropertyDeclarationTypeHints?: boolean; readonly includeInlayFunctionLikeReturnTypeHints?: boolean; readonly includeInlayEnumMemberValueHints?: boolean; + readonly interactiveInlayHints?: boolean; readonly allowRenameOfImportPath?: boolean; readonly autoImportFileExcludePatterns?: string[]; readonly organizeImportsIgnoreCase?: "auto" | boolean; @@ -10366,11 +10392,18 @@ declare namespace ts { Enum = "Enum" } interface InlayHint { + /** This property will be the empty string when displayParts is set. */ text: string; position: number; kind: InlayHintKind; whitespaceBefore?: boolean; whitespaceAfter?: boolean; + displayParts?: InlayHintDisplayPart[]; + } + interface InlayHintDisplayPart { + text: string; + span?: TextSpan; + file?: string; } interface TodoCommentDescriptor { text: string; @@ -10802,6 +10835,7 @@ declare namespace ts { kindModifiers?: string; sortText: string; insertText?: string; + filterText?: string; isSnippet?: true; /** * An optional span that indicates the text to be replaced by this completion item. @@ -10961,6 +10995,10 @@ declare namespace ts { variableElement = "var", /** Inside function */ localVariableElement = "local var", + /** using foo = ... */ + variableUsingElement = "using", + /** await using foo = ... */ + variableAwaitUsingElement = "await using", /** * Inside module and script only * function f() { } diff --git a/node_modules/typescript/lib/tsserverlibrary.js b/node_modules/typescript/lib/tsserverlibrary.js index 6861715..d53fe81 100644 --- a/node_modules/typescript/lib/tsserverlibrary.js +++ b/node_modules/typescript/lib/tsserverlibrary.js @@ -34,8 +34,8 @@ var ts = (() => { var init_corePublic = __esm({ "src/compiler/corePublic.ts"() { "use strict"; - versionMajorMinor = "5.1"; - version = "5.1.6"; + versionMajorMinor = "5.2"; + version = "5.2.2"; Comparison = /* @__PURE__ */ ((Comparison3) => { Comparison3[Comparison3["LessThan"] = -1] = "LessThan"; Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo"; @@ -1464,8 +1464,8 @@ var ts = (() => { } return false; } - function createGetCanonicalFileName(useCaseSensitiveFileNames) { - return useCaseSensitiveFileNames ? identity : toFileNameLowerCase; + function createGetCanonicalFileName(useCaseSensitiveFileNames2) { + return useCaseSensitiveFileNames2 ? identity : toFileNameLowerCase; } function patternText({ prefix, suffix }) { return `${prefix}*${suffix}`; @@ -1646,7 +1646,7 @@ var ts = (() => { return void 0; }; hasOwnProperty = Object.prototype.hasOwnProperty; - fileNameLowerCaseRegExp = /[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g; + fileNameLowerCaseRegExp = /[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g; AssertionLevel = /* @__PURE__ */ ((AssertionLevel2) => { AssertionLevel2[AssertionLevel2["None"] = 0] = "None"; AssertionLevel2[AssertionLevel2["Normal"] = 1] = "Normal"; @@ -1748,10 +1748,10 @@ var ts = (() => { } Debug2.log = log; ((_log) => { - function error(s) { + function error2(s) { logMessage(1 /* Error */, s); } - _log.error = error; + _log.error = error2; function warn(s) { logMessage(2 /* Warning */, s); } @@ -1951,7 +1951,7 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`, return func.name; } else { const text = Function.prototype.toString.call(func); - const match = /^function\s+([\w\$]+)\s*\(/.exec(text); + const match = /^function\s+([\w$]+)\s*\(/.exec(text); return match ? match[1] : ""; } } @@ -2025,6 +2025,15 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`, ); } Debug2.formatSnippetKind = formatSnippetKind; + function formatScriptKind(kind) { + return formatEnum( + kind, + ScriptKind, + /*isFlags*/ + false + ); + } + Debug2.formatScriptKind = formatScriptKind; function formatNodeFlags(flags) { return formatEnum( flags, @@ -2927,13 +2936,13 @@ ${lanes.join("\n")} "src/compiler/semver.ts"() { "use strict"; init_ts2(); - versionRegExp = /^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i; + versionRegExp = /^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i; prereleaseRegExp = /^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i; prereleasePartRegExp = /^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i; buildRegExp = /^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i; buildPartRegExp = /^[a-z0-9-]+$/i; numericIdentifierRegExp = /^(0|[1-9]\d*)$/; - _Version = class { + _Version = class _Version { constructor(major, minor = 0, patch = 0, prerelease = "", build2 = "") { if (typeof major === "string") { const result = Debug.checkDefined(tryParseComponents(major), "Invalid version"); @@ -2997,16 +3006,16 @@ ${lanes.join("\n")} return result; } }; + _Version.zero = new _Version(0, 0, 0, ["0"]); Version = _Version; - Version.zero = new _Version(0, 0, 0, ["0"]); - VersionRange = class { + VersionRange = class _VersionRange { constructor(spec) { this._alternatives = spec ? Debug.checkDefined(parseRange(spec), "Invalid range spec.") : emptyArray; } static tryParse(text) { const sets = parseRange(text); if (sets) { - const range = new VersionRange(""); + const range = new _VersionRange(""); range._alternatives = sets; return range; } @@ -3684,210 +3693,211 @@ ${lanes.join("\n")} SyntaxKind5[SyntaxKind5["UndefinedKeyword"] = 157] = "UndefinedKeyword"; SyntaxKind5[SyntaxKind5["UniqueKeyword"] = 158] = "UniqueKeyword"; SyntaxKind5[SyntaxKind5["UnknownKeyword"] = 159] = "UnknownKeyword"; - SyntaxKind5[SyntaxKind5["FromKeyword"] = 160] = "FromKeyword"; - SyntaxKind5[SyntaxKind5["GlobalKeyword"] = 161] = "GlobalKeyword"; - SyntaxKind5[SyntaxKind5["BigIntKeyword"] = 162] = "BigIntKeyword"; - SyntaxKind5[SyntaxKind5["OverrideKeyword"] = 163] = "OverrideKeyword"; - SyntaxKind5[SyntaxKind5["OfKeyword"] = 164] = "OfKeyword"; - SyntaxKind5[SyntaxKind5["QualifiedName"] = 165] = "QualifiedName"; - SyntaxKind5[SyntaxKind5["ComputedPropertyName"] = 166] = "ComputedPropertyName"; - SyntaxKind5[SyntaxKind5["TypeParameter"] = 167] = "TypeParameter"; - SyntaxKind5[SyntaxKind5["Parameter"] = 168] = "Parameter"; - SyntaxKind5[SyntaxKind5["Decorator"] = 169] = "Decorator"; - SyntaxKind5[SyntaxKind5["PropertySignature"] = 170] = "PropertySignature"; - SyntaxKind5[SyntaxKind5["PropertyDeclaration"] = 171] = "PropertyDeclaration"; - SyntaxKind5[SyntaxKind5["MethodSignature"] = 172] = "MethodSignature"; - SyntaxKind5[SyntaxKind5["MethodDeclaration"] = 173] = "MethodDeclaration"; - SyntaxKind5[SyntaxKind5["ClassStaticBlockDeclaration"] = 174] = "ClassStaticBlockDeclaration"; - SyntaxKind5[SyntaxKind5["Constructor"] = 175] = "Constructor"; - SyntaxKind5[SyntaxKind5["GetAccessor"] = 176] = "GetAccessor"; - SyntaxKind5[SyntaxKind5["SetAccessor"] = 177] = "SetAccessor"; - SyntaxKind5[SyntaxKind5["CallSignature"] = 178] = "CallSignature"; - SyntaxKind5[SyntaxKind5["ConstructSignature"] = 179] = "ConstructSignature"; - SyntaxKind5[SyntaxKind5["IndexSignature"] = 180] = "IndexSignature"; - SyntaxKind5[SyntaxKind5["TypePredicate"] = 181] = "TypePredicate"; - SyntaxKind5[SyntaxKind5["TypeReference"] = 182] = "TypeReference"; - SyntaxKind5[SyntaxKind5["FunctionType"] = 183] = "FunctionType"; - SyntaxKind5[SyntaxKind5["ConstructorType"] = 184] = "ConstructorType"; - SyntaxKind5[SyntaxKind5["TypeQuery"] = 185] = "TypeQuery"; - SyntaxKind5[SyntaxKind5["TypeLiteral"] = 186] = "TypeLiteral"; - SyntaxKind5[SyntaxKind5["ArrayType"] = 187] = "ArrayType"; - SyntaxKind5[SyntaxKind5["TupleType"] = 188] = "TupleType"; - SyntaxKind5[SyntaxKind5["OptionalType"] = 189] = "OptionalType"; - SyntaxKind5[SyntaxKind5["RestType"] = 190] = "RestType"; - SyntaxKind5[SyntaxKind5["UnionType"] = 191] = "UnionType"; - SyntaxKind5[SyntaxKind5["IntersectionType"] = 192] = "IntersectionType"; - SyntaxKind5[SyntaxKind5["ConditionalType"] = 193] = "ConditionalType"; - SyntaxKind5[SyntaxKind5["InferType"] = 194] = "InferType"; - SyntaxKind5[SyntaxKind5["ParenthesizedType"] = 195] = "ParenthesizedType"; - SyntaxKind5[SyntaxKind5["ThisType"] = 196] = "ThisType"; - SyntaxKind5[SyntaxKind5["TypeOperator"] = 197] = "TypeOperator"; - SyntaxKind5[SyntaxKind5["IndexedAccessType"] = 198] = "IndexedAccessType"; - SyntaxKind5[SyntaxKind5["MappedType"] = 199] = "MappedType"; - SyntaxKind5[SyntaxKind5["LiteralType"] = 200] = "LiteralType"; - SyntaxKind5[SyntaxKind5["NamedTupleMember"] = 201] = "NamedTupleMember"; - SyntaxKind5[SyntaxKind5["TemplateLiteralType"] = 202] = "TemplateLiteralType"; - SyntaxKind5[SyntaxKind5["TemplateLiteralTypeSpan"] = 203] = "TemplateLiteralTypeSpan"; - SyntaxKind5[SyntaxKind5["ImportType"] = 204] = "ImportType"; - SyntaxKind5[SyntaxKind5["ObjectBindingPattern"] = 205] = "ObjectBindingPattern"; - SyntaxKind5[SyntaxKind5["ArrayBindingPattern"] = 206] = "ArrayBindingPattern"; - SyntaxKind5[SyntaxKind5["BindingElement"] = 207] = "BindingElement"; - SyntaxKind5[SyntaxKind5["ArrayLiteralExpression"] = 208] = "ArrayLiteralExpression"; - SyntaxKind5[SyntaxKind5["ObjectLiteralExpression"] = 209] = "ObjectLiteralExpression"; - SyntaxKind5[SyntaxKind5["PropertyAccessExpression"] = 210] = "PropertyAccessExpression"; - SyntaxKind5[SyntaxKind5["ElementAccessExpression"] = 211] = "ElementAccessExpression"; - SyntaxKind5[SyntaxKind5["CallExpression"] = 212] = "CallExpression"; - SyntaxKind5[SyntaxKind5["NewExpression"] = 213] = "NewExpression"; - SyntaxKind5[SyntaxKind5["TaggedTemplateExpression"] = 214] = "TaggedTemplateExpression"; - SyntaxKind5[SyntaxKind5["TypeAssertionExpression"] = 215] = "TypeAssertionExpression"; - SyntaxKind5[SyntaxKind5["ParenthesizedExpression"] = 216] = "ParenthesizedExpression"; - SyntaxKind5[SyntaxKind5["FunctionExpression"] = 217] = "FunctionExpression"; - SyntaxKind5[SyntaxKind5["ArrowFunction"] = 218] = "ArrowFunction"; - SyntaxKind5[SyntaxKind5["DeleteExpression"] = 219] = "DeleteExpression"; - SyntaxKind5[SyntaxKind5["TypeOfExpression"] = 220] = "TypeOfExpression"; - SyntaxKind5[SyntaxKind5["VoidExpression"] = 221] = "VoidExpression"; - SyntaxKind5[SyntaxKind5["AwaitExpression"] = 222] = "AwaitExpression"; - SyntaxKind5[SyntaxKind5["PrefixUnaryExpression"] = 223] = "PrefixUnaryExpression"; - SyntaxKind5[SyntaxKind5["PostfixUnaryExpression"] = 224] = "PostfixUnaryExpression"; - SyntaxKind5[SyntaxKind5["BinaryExpression"] = 225] = "BinaryExpression"; - SyntaxKind5[SyntaxKind5["ConditionalExpression"] = 226] = "ConditionalExpression"; - SyntaxKind5[SyntaxKind5["TemplateExpression"] = 227] = "TemplateExpression"; - SyntaxKind5[SyntaxKind5["YieldExpression"] = 228] = "YieldExpression"; - SyntaxKind5[SyntaxKind5["SpreadElement"] = 229] = "SpreadElement"; - SyntaxKind5[SyntaxKind5["ClassExpression"] = 230] = "ClassExpression"; - SyntaxKind5[SyntaxKind5["OmittedExpression"] = 231] = "OmittedExpression"; - SyntaxKind5[SyntaxKind5["ExpressionWithTypeArguments"] = 232] = "ExpressionWithTypeArguments"; - SyntaxKind5[SyntaxKind5["AsExpression"] = 233] = "AsExpression"; - SyntaxKind5[SyntaxKind5["NonNullExpression"] = 234] = "NonNullExpression"; - SyntaxKind5[SyntaxKind5["MetaProperty"] = 235] = "MetaProperty"; - SyntaxKind5[SyntaxKind5["SyntheticExpression"] = 236] = "SyntheticExpression"; - SyntaxKind5[SyntaxKind5["SatisfiesExpression"] = 237] = "SatisfiesExpression"; - SyntaxKind5[SyntaxKind5["TemplateSpan"] = 238] = "TemplateSpan"; - SyntaxKind5[SyntaxKind5["SemicolonClassElement"] = 239] = "SemicolonClassElement"; - SyntaxKind5[SyntaxKind5["Block"] = 240] = "Block"; - SyntaxKind5[SyntaxKind5["EmptyStatement"] = 241] = "EmptyStatement"; - SyntaxKind5[SyntaxKind5["VariableStatement"] = 242] = "VariableStatement"; - SyntaxKind5[SyntaxKind5["ExpressionStatement"] = 243] = "ExpressionStatement"; - SyntaxKind5[SyntaxKind5["IfStatement"] = 244] = "IfStatement"; - SyntaxKind5[SyntaxKind5["DoStatement"] = 245] = "DoStatement"; - SyntaxKind5[SyntaxKind5["WhileStatement"] = 246] = "WhileStatement"; - SyntaxKind5[SyntaxKind5["ForStatement"] = 247] = "ForStatement"; - SyntaxKind5[SyntaxKind5["ForInStatement"] = 248] = "ForInStatement"; - SyntaxKind5[SyntaxKind5["ForOfStatement"] = 249] = "ForOfStatement"; - SyntaxKind5[SyntaxKind5["ContinueStatement"] = 250] = "ContinueStatement"; - SyntaxKind5[SyntaxKind5["BreakStatement"] = 251] = "BreakStatement"; - SyntaxKind5[SyntaxKind5["ReturnStatement"] = 252] = "ReturnStatement"; - SyntaxKind5[SyntaxKind5["WithStatement"] = 253] = "WithStatement"; - SyntaxKind5[SyntaxKind5["SwitchStatement"] = 254] = "SwitchStatement"; - SyntaxKind5[SyntaxKind5["LabeledStatement"] = 255] = "LabeledStatement"; - SyntaxKind5[SyntaxKind5["ThrowStatement"] = 256] = "ThrowStatement"; - SyntaxKind5[SyntaxKind5["TryStatement"] = 257] = "TryStatement"; - SyntaxKind5[SyntaxKind5["DebuggerStatement"] = 258] = "DebuggerStatement"; - SyntaxKind5[SyntaxKind5["VariableDeclaration"] = 259] = "VariableDeclaration"; - SyntaxKind5[SyntaxKind5["VariableDeclarationList"] = 260] = "VariableDeclarationList"; - SyntaxKind5[SyntaxKind5["FunctionDeclaration"] = 261] = "FunctionDeclaration"; - SyntaxKind5[SyntaxKind5["ClassDeclaration"] = 262] = "ClassDeclaration"; - SyntaxKind5[SyntaxKind5["InterfaceDeclaration"] = 263] = "InterfaceDeclaration"; - SyntaxKind5[SyntaxKind5["TypeAliasDeclaration"] = 264] = "TypeAliasDeclaration"; - SyntaxKind5[SyntaxKind5["EnumDeclaration"] = 265] = "EnumDeclaration"; - SyntaxKind5[SyntaxKind5["ModuleDeclaration"] = 266] = "ModuleDeclaration"; - SyntaxKind5[SyntaxKind5["ModuleBlock"] = 267] = "ModuleBlock"; - SyntaxKind5[SyntaxKind5["CaseBlock"] = 268] = "CaseBlock"; - SyntaxKind5[SyntaxKind5["NamespaceExportDeclaration"] = 269] = "NamespaceExportDeclaration"; - SyntaxKind5[SyntaxKind5["ImportEqualsDeclaration"] = 270] = "ImportEqualsDeclaration"; - SyntaxKind5[SyntaxKind5["ImportDeclaration"] = 271] = "ImportDeclaration"; - SyntaxKind5[SyntaxKind5["ImportClause"] = 272] = "ImportClause"; - SyntaxKind5[SyntaxKind5["NamespaceImport"] = 273] = "NamespaceImport"; - SyntaxKind5[SyntaxKind5["NamedImports"] = 274] = "NamedImports"; - SyntaxKind5[SyntaxKind5["ImportSpecifier"] = 275] = "ImportSpecifier"; - SyntaxKind5[SyntaxKind5["ExportAssignment"] = 276] = "ExportAssignment"; - SyntaxKind5[SyntaxKind5["ExportDeclaration"] = 277] = "ExportDeclaration"; - SyntaxKind5[SyntaxKind5["NamedExports"] = 278] = "NamedExports"; - SyntaxKind5[SyntaxKind5["NamespaceExport"] = 279] = "NamespaceExport"; - SyntaxKind5[SyntaxKind5["ExportSpecifier"] = 280] = "ExportSpecifier"; - SyntaxKind5[SyntaxKind5["MissingDeclaration"] = 281] = "MissingDeclaration"; - SyntaxKind5[SyntaxKind5["ExternalModuleReference"] = 282] = "ExternalModuleReference"; - SyntaxKind5[SyntaxKind5["JsxElement"] = 283] = "JsxElement"; - SyntaxKind5[SyntaxKind5["JsxSelfClosingElement"] = 284] = "JsxSelfClosingElement"; - SyntaxKind5[SyntaxKind5["JsxOpeningElement"] = 285] = "JsxOpeningElement"; - SyntaxKind5[SyntaxKind5["JsxClosingElement"] = 286] = "JsxClosingElement"; - SyntaxKind5[SyntaxKind5["JsxFragment"] = 287] = "JsxFragment"; - SyntaxKind5[SyntaxKind5["JsxOpeningFragment"] = 288] = "JsxOpeningFragment"; - SyntaxKind5[SyntaxKind5["JsxClosingFragment"] = 289] = "JsxClosingFragment"; - SyntaxKind5[SyntaxKind5["JsxAttribute"] = 290] = "JsxAttribute"; - SyntaxKind5[SyntaxKind5["JsxAttributes"] = 291] = "JsxAttributes"; - SyntaxKind5[SyntaxKind5["JsxSpreadAttribute"] = 292] = "JsxSpreadAttribute"; - SyntaxKind5[SyntaxKind5["JsxExpression"] = 293] = "JsxExpression"; - SyntaxKind5[SyntaxKind5["JsxNamespacedName"] = 294] = "JsxNamespacedName"; - SyntaxKind5[SyntaxKind5["CaseClause"] = 295] = "CaseClause"; - SyntaxKind5[SyntaxKind5["DefaultClause"] = 296] = "DefaultClause"; - SyntaxKind5[SyntaxKind5["HeritageClause"] = 297] = "HeritageClause"; - SyntaxKind5[SyntaxKind5["CatchClause"] = 298] = "CatchClause"; - SyntaxKind5[SyntaxKind5["AssertClause"] = 299] = "AssertClause"; - SyntaxKind5[SyntaxKind5["AssertEntry"] = 300] = "AssertEntry"; - SyntaxKind5[SyntaxKind5["ImportTypeAssertionContainer"] = 301] = "ImportTypeAssertionContainer"; - SyntaxKind5[SyntaxKind5["PropertyAssignment"] = 302] = "PropertyAssignment"; - SyntaxKind5[SyntaxKind5["ShorthandPropertyAssignment"] = 303] = "ShorthandPropertyAssignment"; - SyntaxKind5[SyntaxKind5["SpreadAssignment"] = 304] = "SpreadAssignment"; - SyntaxKind5[SyntaxKind5["EnumMember"] = 305] = "EnumMember"; - SyntaxKind5[SyntaxKind5["UnparsedPrologue"] = 306] = "UnparsedPrologue"; - SyntaxKind5[SyntaxKind5["UnparsedPrepend"] = 307] = "UnparsedPrepend"; - SyntaxKind5[SyntaxKind5["UnparsedText"] = 308] = "UnparsedText"; - SyntaxKind5[SyntaxKind5["UnparsedInternalText"] = 309] = "UnparsedInternalText"; - SyntaxKind5[SyntaxKind5["UnparsedSyntheticReference"] = 310] = "UnparsedSyntheticReference"; - SyntaxKind5[SyntaxKind5["SourceFile"] = 311] = "SourceFile"; - SyntaxKind5[SyntaxKind5["Bundle"] = 312] = "Bundle"; - SyntaxKind5[SyntaxKind5["UnparsedSource"] = 313] = "UnparsedSource"; - SyntaxKind5[SyntaxKind5["InputFiles"] = 314] = "InputFiles"; - SyntaxKind5[SyntaxKind5["JSDocTypeExpression"] = 315] = "JSDocTypeExpression"; - SyntaxKind5[SyntaxKind5["JSDocNameReference"] = 316] = "JSDocNameReference"; - SyntaxKind5[SyntaxKind5["JSDocMemberName"] = 317] = "JSDocMemberName"; - SyntaxKind5[SyntaxKind5["JSDocAllType"] = 318] = "JSDocAllType"; - SyntaxKind5[SyntaxKind5["JSDocUnknownType"] = 319] = "JSDocUnknownType"; - SyntaxKind5[SyntaxKind5["JSDocNullableType"] = 320] = "JSDocNullableType"; - SyntaxKind5[SyntaxKind5["JSDocNonNullableType"] = 321] = "JSDocNonNullableType"; - SyntaxKind5[SyntaxKind5["JSDocOptionalType"] = 322] = "JSDocOptionalType"; - SyntaxKind5[SyntaxKind5["JSDocFunctionType"] = 323] = "JSDocFunctionType"; - SyntaxKind5[SyntaxKind5["JSDocVariadicType"] = 324] = "JSDocVariadicType"; - SyntaxKind5[SyntaxKind5["JSDocNamepathType"] = 325] = "JSDocNamepathType"; - SyntaxKind5[SyntaxKind5["JSDoc"] = 326] = "JSDoc"; - SyntaxKind5[SyntaxKind5["JSDocComment"] = 326 /* JSDoc */] = "JSDocComment"; - SyntaxKind5[SyntaxKind5["JSDocText"] = 327] = "JSDocText"; - SyntaxKind5[SyntaxKind5["JSDocTypeLiteral"] = 328] = "JSDocTypeLiteral"; - SyntaxKind5[SyntaxKind5["JSDocSignature"] = 329] = "JSDocSignature"; - SyntaxKind5[SyntaxKind5["JSDocLink"] = 330] = "JSDocLink"; - SyntaxKind5[SyntaxKind5["JSDocLinkCode"] = 331] = "JSDocLinkCode"; - SyntaxKind5[SyntaxKind5["JSDocLinkPlain"] = 332] = "JSDocLinkPlain"; - SyntaxKind5[SyntaxKind5["JSDocTag"] = 333] = "JSDocTag"; - SyntaxKind5[SyntaxKind5["JSDocAugmentsTag"] = 334] = "JSDocAugmentsTag"; - SyntaxKind5[SyntaxKind5["JSDocImplementsTag"] = 335] = "JSDocImplementsTag"; - SyntaxKind5[SyntaxKind5["JSDocAuthorTag"] = 336] = "JSDocAuthorTag"; - SyntaxKind5[SyntaxKind5["JSDocDeprecatedTag"] = 337] = "JSDocDeprecatedTag"; - SyntaxKind5[SyntaxKind5["JSDocClassTag"] = 338] = "JSDocClassTag"; - SyntaxKind5[SyntaxKind5["JSDocPublicTag"] = 339] = "JSDocPublicTag"; - SyntaxKind5[SyntaxKind5["JSDocPrivateTag"] = 340] = "JSDocPrivateTag"; - SyntaxKind5[SyntaxKind5["JSDocProtectedTag"] = 341] = "JSDocProtectedTag"; - SyntaxKind5[SyntaxKind5["JSDocReadonlyTag"] = 342] = "JSDocReadonlyTag"; - SyntaxKind5[SyntaxKind5["JSDocOverrideTag"] = 343] = "JSDocOverrideTag"; - SyntaxKind5[SyntaxKind5["JSDocCallbackTag"] = 344] = "JSDocCallbackTag"; - SyntaxKind5[SyntaxKind5["JSDocOverloadTag"] = 345] = "JSDocOverloadTag"; - SyntaxKind5[SyntaxKind5["JSDocEnumTag"] = 346] = "JSDocEnumTag"; - SyntaxKind5[SyntaxKind5["JSDocParameterTag"] = 347] = "JSDocParameterTag"; - SyntaxKind5[SyntaxKind5["JSDocReturnTag"] = 348] = "JSDocReturnTag"; - SyntaxKind5[SyntaxKind5["JSDocThisTag"] = 349] = "JSDocThisTag"; - SyntaxKind5[SyntaxKind5["JSDocTypeTag"] = 350] = "JSDocTypeTag"; - SyntaxKind5[SyntaxKind5["JSDocTemplateTag"] = 351] = "JSDocTemplateTag"; - SyntaxKind5[SyntaxKind5["JSDocTypedefTag"] = 352] = "JSDocTypedefTag"; - SyntaxKind5[SyntaxKind5["JSDocSeeTag"] = 353] = "JSDocSeeTag"; - SyntaxKind5[SyntaxKind5["JSDocPropertyTag"] = 354] = "JSDocPropertyTag"; - SyntaxKind5[SyntaxKind5["JSDocThrowsTag"] = 355] = "JSDocThrowsTag"; - SyntaxKind5[SyntaxKind5["JSDocSatisfiesTag"] = 356] = "JSDocSatisfiesTag"; - SyntaxKind5[SyntaxKind5["SyntaxList"] = 357] = "SyntaxList"; - SyntaxKind5[SyntaxKind5["NotEmittedStatement"] = 358] = "NotEmittedStatement"; - SyntaxKind5[SyntaxKind5["PartiallyEmittedExpression"] = 359] = "PartiallyEmittedExpression"; - SyntaxKind5[SyntaxKind5["CommaListExpression"] = 360] = "CommaListExpression"; - SyntaxKind5[SyntaxKind5["SyntheticReferenceExpression"] = 361] = "SyntheticReferenceExpression"; - SyntaxKind5[SyntaxKind5["Count"] = 362] = "Count"; + SyntaxKind5[SyntaxKind5["UsingKeyword"] = 160] = "UsingKeyword"; + SyntaxKind5[SyntaxKind5["FromKeyword"] = 161] = "FromKeyword"; + SyntaxKind5[SyntaxKind5["GlobalKeyword"] = 162] = "GlobalKeyword"; + SyntaxKind5[SyntaxKind5["BigIntKeyword"] = 163] = "BigIntKeyword"; + SyntaxKind5[SyntaxKind5["OverrideKeyword"] = 164] = "OverrideKeyword"; + SyntaxKind5[SyntaxKind5["OfKeyword"] = 165] = "OfKeyword"; + SyntaxKind5[SyntaxKind5["QualifiedName"] = 166] = "QualifiedName"; + SyntaxKind5[SyntaxKind5["ComputedPropertyName"] = 167] = "ComputedPropertyName"; + SyntaxKind5[SyntaxKind5["TypeParameter"] = 168] = "TypeParameter"; + SyntaxKind5[SyntaxKind5["Parameter"] = 169] = "Parameter"; + SyntaxKind5[SyntaxKind5["Decorator"] = 170] = "Decorator"; + SyntaxKind5[SyntaxKind5["PropertySignature"] = 171] = "PropertySignature"; + SyntaxKind5[SyntaxKind5["PropertyDeclaration"] = 172] = "PropertyDeclaration"; + SyntaxKind5[SyntaxKind5["MethodSignature"] = 173] = "MethodSignature"; + SyntaxKind5[SyntaxKind5["MethodDeclaration"] = 174] = "MethodDeclaration"; + SyntaxKind5[SyntaxKind5["ClassStaticBlockDeclaration"] = 175] = "ClassStaticBlockDeclaration"; + SyntaxKind5[SyntaxKind5["Constructor"] = 176] = "Constructor"; + SyntaxKind5[SyntaxKind5["GetAccessor"] = 177] = "GetAccessor"; + SyntaxKind5[SyntaxKind5["SetAccessor"] = 178] = "SetAccessor"; + SyntaxKind5[SyntaxKind5["CallSignature"] = 179] = "CallSignature"; + SyntaxKind5[SyntaxKind5["ConstructSignature"] = 180] = "ConstructSignature"; + SyntaxKind5[SyntaxKind5["IndexSignature"] = 181] = "IndexSignature"; + SyntaxKind5[SyntaxKind5["TypePredicate"] = 182] = "TypePredicate"; + SyntaxKind5[SyntaxKind5["TypeReference"] = 183] = "TypeReference"; + SyntaxKind5[SyntaxKind5["FunctionType"] = 184] = "FunctionType"; + SyntaxKind5[SyntaxKind5["ConstructorType"] = 185] = "ConstructorType"; + SyntaxKind5[SyntaxKind5["TypeQuery"] = 186] = "TypeQuery"; + SyntaxKind5[SyntaxKind5["TypeLiteral"] = 187] = "TypeLiteral"; + SyntaxKind5[SyntaxKind5["ArrayType"] = 188] = "ArrayType"; + SyntaxKind5[SyntaxKind5["TupleType"] = 189] = "TupleType"; + SyntaxKind5[SyntaxKind5["OptionalType"] = 190] = "OptionalType"; + SyntaxKind5[SyntaxKind5["RestType"] = 191] = "RestType"; + SyntaxKind5[SyntaxKind5["UnionType"] = 192] = "UnionType"; + SyntaxKind5[SyntaxKind5["IntersectionType"] = 193] = "IntersectionType"; + SyntaxKind5[SyntaxKind5["ConditionalType"] = 194] = "ConditionalType"; + SyntaxKind5[SyntaxKind5["InferType"] = 195] = "InferType"; + SyntaxKind5[SyntaxKind5["ParenthesizedType"] = 196] = "ParenthesizedType"; + SyntaxKind5[SyntaxKind5["ThisType"] = 197] = "ThisType"; + SyntaxKind5[SyntaxKind5["TypeOperator"] = 198] = "TypeOperator"; + SyntaxKind5[SyntaxKind5["IndexedAccessType"] = 199] = "IndexedAccessType"; + SyntaxKind5[SyntaxKind5["MappedType"] = 200] = "MappedType"; + SyntaxKind5[SyntaxKind5["LiteralType"] = 201] = "LiteralType"; + SyntaxKind5[SyntaxKind5["NamedTupleMember"] = 202] = "NamedTupleMember"; + SyntaxKind5[SyntaxKind5["TemplateLiteralType"] = 203] = "TemplateLiteralType"; + SyntaxKind5[SyntaxKind5["TemplateLiteralTypeSpan"] = 204] = "TemplateLiteralTypeSpan"; + SyntaxKind5[SyntaxKind5["ImportType"] = 205] = "ImportType"; + SyntaxKind5[SyntaxKind5["ObjectBindingPattern"] = 206] = "ObjectBindingPattern"; + SyntaxKind5[SyntaxKind5["ArrayBindingPattern"] = 207] = "ArrayBindingPattern"; + SyntaxKind5[SyntaxKind5["BindingElement"] = 208] = "BindingElement"; + SyntaxKind5[SyntaxKind5["ArrayLiteralExpression"] = 209] = "ArrayLiteralExpression"; + SyntaxKind5[SyntaxKind5["ObjectLiteralExpression"] = 210] = "ObjectLiteralExpression"; + SyntaxKind5[SyntaxKind5["PropertyAccessExpression"] = 211] = "PropertyAccessExpression"; + SyntaxKind5[SyntaxKind5["ElementAccessExpression"] = 212] = "ElementAccessExpression"; + SyntaxKind5[SyntaxKind5["CallExpression"] = 213] = "CallExpression"; + SyntaxKind5[SyntaxKind5["NewExpression"] = 214] = "NewExpression"; + SyntaxKind5[SyntaxKind5["TaggedTemplateExpression"] = 215] = "TaggedTemplateExpression"; + SyntaxKind5[SyntaxKind5["TypeAssertionExpression"] = 216] = "TypeAssertionExpression"; + SyntaxKind5[SyntaxKind5["ParenthesizedExpression"] = 217] = "ParenthesizedExpression"; + SyntaxKind5[SyntaxKind5["FunctionExpression"] = 218] = "FunctionExpression"; + SyntaxKind5[SyntaxKind5["ArrowFunction"] = 219] = "ArrowFunction"; + SyntaxKind5[SyntaxKind5["DeleteExpression"] = 220] = "DeleteExpression"; + SyntaxKind5[SyntaxKind5["TypeOfExpression"] = 221] = "TypeOfExpression"; + SyntaxKind5[SyntaxKind5["VoidExpression"] = 222] = "VoidExpression"; + SyntaxKind5[SyntaxKind5["AwaitExpression"] = 223] = "AwaitExpression"; + SyntaxKind5[SyntaxKind5["PrefixUnaryExpression"] = 224] = "PrefixUnaryExpression"; + SyntaxKind5[SyntaxKind5["PostfixUnaryExpression"] = 225] = "PostfixUnaryExpression"; + SyntaxKind5[SyntaxKind5["BinaryExpression"] = 226] = "BinaryExpression"; + SyntaxKind5[SyntaxKind5["ConditionalExpression"] = 227] = "ConditionalExpression"; + SyntaxKind5[SyntaxKind5["TemplateExpression"] = 228] = "TemplateExpression"; + SyntaxKind5[SyntaxKind5["YieldExpression"] = 229] = "YieldExpression"; + SyntaxKind5[SyntaxKind5["SpreadElement"] = 230] = "SpreadElement"; + SyntaxKind5[SyntaxKind5["ClassExpression"] = 231] = "ClassExpression"; + SyntaxKind5[SyntaxKind5["OmittedExpression"] = 232] = "OmittedExpression"; + SyntaxKind5[SyntaxKind5["ExpressionWithTypeArguments"] = 233] = "ExpressionWithTypeArguments"; + SyntaxKind5[SyntaxKind5["AsExpression"] = 234] = "AsExpression"; + SyntaxKind5[SyntaxKind5["NonNullExpression"] = 235] = "NonNullExpression"; + SyntaxKind5[SyntaxKind5["MetaProperty"] = 236] = "MetaProperty"; + SyntaxKind5[SyntaxKind5["SyntheticExpression"] = 237] = "SyntheticExpression"; + SyntaxKind5[SyntaxKind5["SatisfiesExpression"] = 238] = "SatisfiesExpression"; + SyntaxKind5[SyntaxKind5["TemplateSpan"] = 239] = "TemplateSpan"; + SyntaxKind5[SyntaxKind5["SemicolonClassElement"] = 240] = "SemicolonClassElement"; + SyntaxKind5[SyntaxKind5["Block"] = 241] = "Block"; + SyntaxKind5[SyntaxKind5["EmptyStatement"] = 242] = "EmptyStatement"; + SyntaxKind5[SyntaxKind5["VariableStatement"] = 243] = "VariableStatement"; + SyntaxKind5[SyntaxKind5["ExpressionStatement"] = 244] = "ExpressionStatement"; + SyntaxKind5[SyntaxKind5["IfStatement"] = 245] = "IfStatement"; + SyntaxKind5[SyntaxKind5["DoStatement"] = 246] = "DoStatement"; + SyntaxKind5[SyntaxKind5["WhileStatement"] = 247] = "WhileStatement"; + SyntaxKind5[SyntaxKind5["ForStatement"] = 248] = "ForStatement"; + SyntaxKind5[SyntaxKind5["ForInStatement"] = 249] = "ForInStatement"; + SyntaxKind5[SyntaxKind5["ForOfStatement"] = 250] = "ForOfStatement"; + SyntaxKind5[SyntaxKind5["ContinueStatement"] = 251] = "ContinueStatement"; + SyntaxKind5[SyntaxKind5["BreakStatement"] = 252] = "BreakStatement"; + SyntaxKind5[SyntaxKind5["ReturnStatement"] = 253] = "ReturnStatement"; + SyntaxKind5[SyntaxKind5["WithStatement"] = 254] = "WithStatement"; + SyntaxKind5[SyntaxKind5["SwitchStatement"] = 255] = "SwitchStatement"; + SyntaxKind5[SyntaxKind5["LabeledStatement"] = 256] = "LabeledStatement"; + SyntaxKind5[SyntaxKind5["ThrowStatement"] = 257] = "ThrowStatement"; + SyntaxKind5[SyntaxKind5["TryStatement"] = 258] = "TryStatement"; + SyntaxKind5[SyntaxKind5["DebuggerStatement"] = 259] = "DebuggerStatement"; + SyntaxKind5[SyntaxKind5["VariableDeclaration"] = 260] = "VariableDeclaration"; + SyntaxKind5[SyntaxKind5["VariableDeclarationList"] = 261] = "VariableDeclarationList"; + SyntaxKind5[SyntaxKind5["FunctionDeclaration"] = 262] = "FunctionDeclaration"; + SyntaxKind5[SyntaxKind5["ClassDeclaration"] = 263] = "ClassDeclaration"; + SyntaxKind5[SyntaxKind5["InterfaceDeclaration"] = 264] = "InterfaceDeclaration"; + SyntaxKind5[SyntaxKind5["TypeAliasDeclaration"] = 265] = "TypeAliasDeclaration"; + SyntaxKind5[SyntaxKind5["EnumDeclaration"] = 266] = "EnumDeclaration"; + SyntaxKind5[SyntaxKind5["ModuleDeclaration"] = 267] = "ModuleDeclaration"; + SyntaxKind5[SyntaxKind5["ModuleBlock"] = 268] = "ModuleBlock"; + SyntaxKind5[SyntaxKind5["CaseBlock"] = 269] = "CaseBlock"; + SyntaxKind5[SyntaxKind5["NamespaceExportDeclaration"] = 270] = "NamespaceExportDeclaration"; + SyntaxKind5[SyntaxKind5["ImportEqualsDeclaration"] = 271] = "ImportEqualsDeclaration"; + SyntaxKind5[SyntaxKind5["ImportDeclaration"] = 272] = "ImportDeclaration"; + SyntaxKind5[SyntaxKind5["ImportClause"] = 273] = "ImportClause"; + SyntaxKind5[SyntaxKind5["NamespaceImport"] = 274] = "NamespaceImport"; + SyntaxKind5[SyntaxKind5["NamedImports"] = 275] = "NamedImports"; + SyntaxKind5[SyntaxKind5["ImportSpecifier"] = 276] = "ImportSpecifier"; + SyntaxKind5[SyntaxKind5["ExportAssignment"] = 277] = "ExportAssignment"; + SyntaxKind5[SyntaxKind5["ExportDeclaration"] = 278] = "ExportDeclaration"; + SyntaxKind5[SyntaxKind5["NamedExports"] = 279] = "NamedExports"; + SyntaxKind5[SyntaxKind5["NamespaceExport"] = 280] = "NamespaceExport"; + SyntaxKind5[SyntaxKind5["ExportSpecifier"] = 281] = "ExportSpecifier"; + SyntaxKind5[SyntaxKind5["MissingDeclaration"] = 282] = "MissingDeclaration"; + SyntaxKind5[SyntaxKind5["ExternalModuleReference"] = 283] = "ExternalModuleReference"; + SyntaxKind5[SyntaxKind5["JsxElement"] = 284] = "JsxElement"; + SyntaxKind5[SyntaxKind5["JsxSelfClosingElement"] = 285] = "JsxSelfClosingElement"; + SyntaxKind5[SyntaxKind5["JsxOpeningElement"] = 286] = "JsxOpeningElement"; + SyntaxKind5[SyntaxKind5["JsxClosingElement"] = 287] = "JsxClosingElement"; + SyntaxKind5[SyntaxKind5["JsxFragment"] = 288] = "JsxFragment"; + SyntaxKind5[SyntaxKind5["JsxOpeningFragment"] = 289] = "JsxOpeningFragment"; + SyntaxKind5[SyntaxKind5["JsxClosingFragment"] = 290] = "JsxClosingFragment"; + SyntaxKind5[SyntaxKind5["JsxAttribute"] = 291] = "JsxAttribute"; + SyntaxKind5[SyntaxKind5["JsxAttributes"] = 292] = "JsxAttributes"; + SyntaxKind5[SyntaxKind5["JsxSpreadAttribute"] = 293] = "JsxSpreadAttribute"; + SyntaxKind5[SyntaxKind5["JsxExpression"] = 294] = "JsxExpression"; + SyntaxKind5[SyntaxKind5["JsxNamespacedName"] = 295] = "JsxNamespacedName"; + SyntaxKind5[SyntaxKind5["CaseClause"] = 296] = "CaseClause"; + SyntaxKind5[SyntaxKind5["DefaultClause"] = 297] = "DefaultClause"; + SyntaxKind5[SyntaxKind5["HeritageClause"] = 298] = "HeritageClause"; + SyntaxKind5[SyntaxKind5["CatchClause"] = 299] = "CatchClause"; + SyntaxKind5[SyntaxKind5["AssertClause"] = 300] = "AssertClause"; + SyntaxKind5[SyntaxKind5["AssertEntry"] = 301] = "AssertEntry"; + SyntaxKind5[SyntaxKind5["ImportTypeAssertionContainer"] = 302] = "ImportTypeAssertionContainer"; + SyntaxKind5[SyntaxKind5["PropertyAssignment"] = 303] = "PropertyAssignment"; + SyntaxKind5[SyntaxKind5["ShorthandPropertyAssignment"] = 304] = "ShorthandPropertyAssignment"; + SyntaxKind5[SyntaxKind5["SpreadAssignment"] = 305] = "SpreadAssignment"; + SyntaxKind5[SyntaxKind5["EnumMember"] = 306] = "EnumMember"; + SyntaxKind5[SyntaxKind5["UnparsedPrologue"] = 307] = "UnparsedPrologue"; + SyntaxKind5[SyntaxKind5["UnparsedPrepend"] = 308] = "UnparsedPrepend"; + SyntaxKind5[SyntaxKind5["UnparsedText"] = 309] = "UnparsedText"; + SyntaxKind5[SyntaxKind5["UnparsedInternalText"] = 310] = "UnparsedInternalText"; + SyntaxKind5[SyntaxKind5["UnparsedSyntheticReference"] = 311] = "UnparsedSyntheticReference"; + SyntaxKind5[SyntaxKind5["SourceFile"] = 312] = "SourceFile"; + SyntaxKind5[SyntaxKind5["Bundle"] = 313] = "Bundle"; + SyntaxKind5[SyntaxKind5["UnparsedSource"] = 314] = "UnparsedSource"; + SyntaxKind5[SyntaxKind5["InputFiles"] = 315] = "InputFiles"; + SyntaxKind5[SyntaxKind5["JSDocTypeExpression"] = 316] = "JSDocTypeExpression"; + SyntaxKind5[SyntaxKind5["JSDocNameReference"] = 317] = "JSDocNameReference"; + SyntaxKind5[SyntaxKind5["JSDocMemberName"] = 318] = "JSDocMemberName"; + SyntaxKind5[SyntaxKind5["JSDocAllType"] = 319] = "JSDocAllType"; + SyntaxKind5[SyntaxKind5["JSDocUnknownType"] = 320] = "JSDocUnknownType"; + SyntaxKind5[SyntaxKind5["JSDocNullableType"] = 321] = "JSDocNullableType"; + SyntaxKind5[SyntaxKind5["JSDocNonNullableType"] = 322] = "JSDocNonNullableType"; + SyntaxKind5[SyntaxKind5["JSDocOptionalType"] = 323] = "JSDocOptionalType"; + SyntaxKind5[SyntaxKind5["JSDocFunctionType"] = 324] = "JSDocFunctionType"; + SyntaxKind5[SyntaxKind5["JSDocVariadicType"] = 325] = "JSDocVariadicType"; + SyntaxKind5[SyntaxKind5["JSDocNamepathType"] = 326] = "JSDocNamepathType"; + SyntaxKind5[SyntaxKind5["JSDoc"] = 327] = "JSDoc"; + SyntaxKind5[SyntaxKind5["JSDocComment"] = 327 /* JSDoc */] = "JSDocComment"; + SyntaxKind5[SyntaxKind5["JSDocText"] = 328] = "JSDocText"; + SyntaxKind5[SyntaxKind5["JSDocTypeLiteral"] = 329] = "JSDocTypeLiteral"; + SyntaxKind5[SyntaxKind5["JSDocSignature"] = 330] = "JSDocSignature"; + SyntaxKind5[SyntaxKind5["JSDocLink"] = 331] = "JSDocLink"; + SyntaxKind5[SyntaxKind5["JSDocLinkCode"] = 332] = "JSDocLinkCode"; + SyntaxKind5[SyntaxKind5["JSDocLinkPlain"] = 333] = "JSDocLinkPlain"; + SyntaxKind5[SyntaxKind5["JSDocTag"] = 334] = "JSDocTag"; + SyntaxKind5[SyntaxKind5["JSDocAugmentsTag"] = 335] = "JSDocAugmentsTag"; + SyntaxKind5[SyntaxKind5["JSDocImplementsTag"] = 336] = "JSDocImplementsTag"; + SyntaxKind5[SyntaxKind5["JSDocAuthorTag"] = 337] = "JSDocAuthorTag"; + SyntaxKind5[SyntaxKind5["JSDocDeprecatedTag"] = 338] = "JSDocDeprecatedTag"; + SyntaxKind5[SyntaxKind5["JSDocClassTag"] = 339] = "JSDocClassTag"; + SyntaxKind5[SyntaxKind5["JSDocPublicTag"] = 340] = "JSDocPublicTag"; + SyntaxKind5[SyntaxKind5["JSDocPrivateTag"] = 341] = "JSDocPrivateTag"; + SyntaxKind5[SyntaxKind5["JSDocProtectedTag"] = 342] = "JSDocProtectedTag"; + SyntaxKind5[SyntaxKind5["JSDocReadonlyTag"] = 343] = "JSDocReadonlyTag"; + SyntaxKind5[SyntaxKind5["JSDocOverrideTag"] = 344] = "JSDocOverrideTag"; + SyntaxKind5[SyntaxKind5["JSDocCallbackTag"] = 345] = "JSDocCallbackTag"; + SyntaxKind5[SyntaxKind5["JSDocOverloadTag"] = 346] = "JSDocOverloadTag"; + SyntaxKind5[SyntaxKind5["JSDocEnumTag"] = 347] = "JSDocEnumTag"; + SyntaxKind5[SyntaxKind5["JSDocParameterTag"] = 348] = "JSDocParameterTag"; + SyntaxKind5[SyntaxKind5["JSDocReturnTag"] = 349] = "JSDocReturnTag"; + SyntaxKind5[SyntaxKind5["JSDocThisTag"] = 350] = "JSDocThisTag"; + SyntaxKind5[SyntaxKind5["JSDocTypeTag"] = 351] = "JSDocTypeTag"; + SyntaxKind5[SyntaxKind5["JSDocTemplateTag"] = 352] = "JSDocTemplateTag"; + SyntaxKind5[SyntaxKind5["JSDocTypedefTag"] = 353] = "JSDocTypedefTag"; + SyntaxKind5[SyntaxKind5["JSDocSeeTag"] = 354] = "JSDocSeeTag"; + SyntaxKind5[SyntaxKind5["JSDocPropertyTag"] = 355] = "JSDocPropertyTag"; + SyntaxKind5[SyntaxKind5["JSDocThrowsTag"] = 356] = "JSDocThrowsTag"; + SyntaxKind5[SyntaxKind5["JSDocSatisfiesTag"] = 357] = "JSDocSatisfiesTag"; + SyntaxKind5[SyntaxKind5["SyntaxList"] = 358] = "SyntaxList"; + SyntaxKind5[SyntaxKind5["NotEmittedStatement"] = 359] = "NotEmittedStatement"; + SyntaxKind5[SyntaxKind5["PartiallyEmittedExpression"] = 360] = "PartiallyEmittedExpression"; + SyntaxKind5[SyntaxKind5["CommaListExpression"] = 361] = "CommaListExpression"; + SyntaxKind5[SyntaxKind5["SyntheticReferenceExpression"] = 362] = "SyntheticReferenceExpression"; + SyntaxKind5[SyntaxKind5["Count"] = 363] = "Count"; SyntaxKind5[SyntaxKind5["FirstAssignment"] = 64 /* EqualsToken */] = "FirstAssignment"; SyntaxKind5[SyntaxKind5["LastAssignment"] = 79 /* CaretEqualsToken */] = "LastAssignment"; SyntaxKind5[SyntaxKind5["FirstCompoundAssignment"] = 65 /* PlusEqualsToken */] = "FirstCompoundAssignment"; @@ -3895,15 +3905,15 @@ ${lanes.join("\n")} SyntaxKind5[SyntaxKind5["FirstReservedWord"] = 83 /* BreakKeyword */] = "FirstReservedWord"; SyntaxKind5[SyntaxKind5["LastReservedWord"] = 118 /* WithKeyword */] = "LastReservedWord"; SyntaxKind5[SyntaxKind5["FirstKeyword"] = 83 /* BreakKeyword */] = "FirstKeyword"; - SyntaxKind5[SyntaxKind5["LastKeyword"] = 164 /* OfKeyword */] = "LastKeyword"; + SyntaxKind5[SyntaxKind5["LastKeyword"] = 165 /* OfKeyword */] = "LastKeyword"; SyntaxKind5[SyntaxKind5["FirstFutureReservedWord"] = 119 /* ImplementsKeyword */] = "FirstFutureReservedWord"; SyntaxKind5[SyntaxKind5["LastFutureReservedWord"] = 127 /* YieldKeyword */] = "LastFutureReservedWord"; - SyntaxKind5[SyntaxKind5["FirstTypeNode"] = 181 /* TypePredicate */] = "FirstTypeNode"; - SyntaxKind5[SyntaxKind5["LastTypeNode"] = 204 /* ImportType */] = "LastTypeNode"; + SyntaxKind5[SyntaxKind5["FirstTypeNode"] = 182 /* TypePredicate */] = "FirstTypeNode"; + SyntaxKind5[SyntaxKind5["LastTypeNode"] = 205 /* ImportType */] = "LastTypeNode"; SyntaxKind5[SyntaxKind5["FirstPunctuation"] = 19 /* OpenBraceToken */] = "FirstPunctuation"; SyntaxKind5[SyntaxKind5["LastPunctuation"] = 79 /* CaretEqualsToken */] = "LastPunctuation"; SyntaxKind5[SyntaxKind5["FirstToken"] = 0 /* Unknown */] = "FirstToken"; - SyntaxKind5[SyntaxKind5["LastToken"] = 164 /* LastKeyword */] = "LastToken"; + SyntaxKind5[SyntaxKind5["LastToken"] = 165 /* LastKeyword */] = "LastToken"; SyntaxKind5[SyntaxKind5["FirstTriviaToken"] = 2 /* SingleLineCommentTrivia */] = "FirstTriviaToken"; SyntaxKind5[SyntaxKind5["LastTriviaToken"] = 7 /* ConflictMarkerTrivia */] = "LastTriviaToken"; SyntaxKind5[SyntaxKind5["FirstLiteralToken"] = 9 /* NumericLiteral */] = "FirstLiteralToken"; @@ -3912,56 +3922,59 @@ ${lanes.join("\n")} SyntaxKind5[SyntaxKind5["LastTemplateToken"] = 18 /* TemplateTail */] = "LastTemplateToken"; SyntaxKind5[SyntaxKind5["FirstBinaryOperator"] = 30 /* LessThanToken */] = "FirstBinaryOperator"; SyntaxKind5[SyntaxKind5["LastBinaryOperator"] = 79 /* CaretEqualsToken */] = "LastBinaryOperator"; - SyntaxKind5[SyntaxKind5["FirstStatement"] = 242 /* VariableStatement */] = "FirstStatement"; - SyntaxKind5[SyntaxKind5["LastStatement"] = 258 /* DebuggerStatement */] = "LastStatement"; - SyntaxKind5[SyntaxKind5["FirstNode"] = 165 /* QualifiedName */] = "FirstNode"; - SyntaxKind5[SyntaxKind5["FirstJSDocNode"] = 315 /* JSDocTypeExpression */] = "FirstJSDocNode"; - SyntaxKind5[SyntaxKind5["LastJSDocNode"] = 356 /* JSDocSatisfiesTag */] = "LastJSDocNode"; - SyntaxKind5[SyntaxKind5["FirstJSDocTagNode"] = 333 /* JSDocTag */] = "FirstJSDocTagNode"; - SyntaxKind5[SyntaxKind5["LastJSDocTagNode"] = 356 /* JSDocSatisfiesTag */] = "LastJSDocTagNode"; + SyntaxKind5[SyntaxKind5["FirstStatement"] = 243 /* VariableStatement */] = "FirstStatement"; + SyntaxKind5[SyntaxKind5["LastStatement"] = 259 /* DebuggerStatement */] = "LastStatement"; + SyntaxKind5[SyntaxKind5["FirstNode"] = 166 /* QualifiedName */] = "FirstNode"; + SyntaxKind5[SyntaxKind5["FirstJSDocNode"] = 316 /* JSDocTypeExpression */] = "FirstJSDocNode"; + SyntaxKind5[SyntaxKind5["LastJSDocNode"] = 357 /* JSDocSatisfiesTag */] = "LastJSDocNode"; + SyntaxKind5[SyntaxKind5["FirstJSDocTagNode"] = 334 /* JSDocTag */] = "FirstJSDocTagNode"; + SyntaxKind5[SyntaxKind5["LastJSDocTagNode"] = 357 /* JSDocSatisfiesTag */] = "LastJSDocTagNode"; SyntaxKind5[SyntaxKind5["FirstContextualKeyword"] = 128 /* AbstractKeyword */] = "FirstContextualKeyword"; - SyntaxKind5[SyntaxKind5["LastContextualKeyword"] = 164 /* OfKeyword */] = "LastContextualKeyword"; + SyntaxKind5[SyntaxKind5["LastContextualKeyword"] = 165 /* OfKeyword */] = "LastContextualKeyword"; return SyntaxKind5; })(SyntaxKind || {}); NodeFlags = /* @__PURE__ */ ((NodeFlags3) => { NodeFlags3[NodeFlags3["None"] = 0] = "None"; NodeFlags3[NodeFlags3["Let"] = 1] = "Let"; NodeFlags3[NodeFlags3["Const"] = 2] = "Const"; - NodeFlags3[NodeFlags3["NestedNamespace"] = 4] = "NestedNamespace"; - NodeFlags3[NodeFlags3["Synthesized"] = 8] = "Synthesized"; - NodeFlags3[NodeFlags3["Namespace"] = 16] = "Namespace"; - NodeFlags3[NodeFlags3["OptionalChain"] = 32] = "OptionalChain"; - NodeFlags3[NodeFlags3["ExportContext"] = 64] = "ExportContext"; - NodeFlags3[NodeFlags3["ContainsThis"] = 128] = "ContainsThis"; - NodeFlags3[NodeFlags3["HasImplicitReturn"] = 256] = "HasImplicitReturn"; - NodeFlags3[NodeFlags3["HasExplicitReturn"] = 512] = "HasExplicitReturn"; - NodeFlags3[NodeFlags3["GlobalAugmentation"] = 1024] = "GlobalAugmentation"; - NodeFlags3[NodeFlags3["HasAsyncFunctions"] = 2048] = "HasAsyncFunctions"; - NodeFlags3[NodeFlags3["DisallowInContext"] = 4096] = "DisallowInContext"; - NodeFlags3[NodeFlags3["YieldContext"] = 8192] = "YieldContext"; - NodeFlags3[NodeFlags3["DecoratorContext"] = 16384] = "DecoratorContext"; - NodeFlags3[NodeFlags3["AwaitContext"] = 32768] = "AwaitContext"; - NodeFlags3[NodeFlags3["DisallowConditionalTypesContext"] = 65536] = "DisallowConditionalTypesContext"; - NodeFlags3[NodeFlags3["ThisNodeHasError"] = 131072] = "ThisNodeHasError"; - NodeFlags3[NodeFlags3["JavaScriptFile"] = 262144] = "JavaScriptFile"; - NodeFlags3[NodeFlags3["ThisNodeOrAnySubNodesHasError"] = 524288] = "ThisNodeOrAnySubNodesHasError"; - NodeFlags3[NodeFlags3["HasAggregatedChildData"] = 1048576] = "HasAggregatedChildData"; - NodeFlags3[NodeFlags3["PossiblyContainsDynamicImport"] = 2097152] = "PossiblyContainsDynamicImport"; - NodeFlags3[NodeFlags3["PossiblyContainsImportMeta"] = 4194304] = "PossiblyContainsImportMeta"; - NodeFlags3[NodeFlags3["JSDoc"] = 8388608] = "JSDoc"; - NodeFlags3[NodeFlags3["Ambient"] = 16777216] = "Ambient"; - NodeFlags3[NodeFlags3["InWithStatement"] = 33554432] = "InWithStatement"; - NodeFlags3[NodeFlags3["JsonFile"] = 67108864] = "JsonFile"; - NodeFlags3[NodeFlags3["TypeCached"] = 134217728] = "TypeCached"; - NodeFlags3[NodeFlags3["Deprecated"] = 268435456] = "Deprecated"; - NodeFlags3[NodeFlags3["BlockScoped"] = 3] = "BlockScoped"; - NodeFlags3[NodeFlags3["ReachabilityCheckFlags"] = 768] = "ReachabilityCheckFlags"; - NodeFlags3[NodeFlags3["ReachabilityAndEmitFlags"] = 2816] = "ReachabilityAndEmitFlags"; - NodeFlags3[NodeFlags3["ContextFlags"] = 50720768] = "ContextFlags"; - NodeFlags3[NodeFlags3["TypeExcludesFlags"] = 40960] = "TypeExcludesFlags"; - NodeFlags3[NodeFlags3["PermanentlySetIncrementalFlags"] = 6291456] = "PermanentlySetIncrementalFlags"; - NodeFlags3[NodeFlags3["IdentifierHasExtendedUnicodeEscape"] = 128 /* ContainsThis */] = "IdentifierHasExtendedUnicodeEscape"; - NodeFlags3[NodeFlags3["IdentifierIsInJSDocNamespace"] = 2048 /* HasAsyncFunctions */] = "IdentifierIsInJSDocNamespace"; + NodeFlags3[NodeFlags3["Using"] = 4] = "Using"; + NodeFlags3[NodeFlags3["AwaitUsing"] = 6] = "AwaitUsing"; + NodeFlags3[NodeFlags3["NestedNamespace"] = 8] = "NestedNamespace"; + NodeFlags3[NodeFlags3["Synthesized"] = 16] = "Synthesized"; + NodeFlags3[NodeFlags3["Namespace"] = 32] = "Namespace"; + NodeFlags3[NodeFlags3["OptionalChain"] = 64] = "OptionalChain"; + NodeFlags3[NodeFlags3["ExportContext"] = 128] = "ExportContext"; + NodeFlags3[NodeFlags3["ContainsThis"] = 256] = "ContainsThis"; + NodeFlags3[NodeFlags3["HasImplicitReturn"] = 512] = "HasImplicitReturn"; + NodeFlags3[NodeFlags3["HasExplicitReturn"] = 1024] = "HasExplicitReturn"; + NodeFlags3[NodeFlags3["GlobalAugmentation"] = 2048] = "GlobalAugmentation"; + NodeFlags3[NodeFlags3["HasAsyncFunctions"] = 4096] = "HasAsyncFunctions"; + NodeFlags3[NodeFlags3["DisallowInContext"] = 8192] = "DisallowInContext"; + NodeFlags3[NodeFlags3["YieldContext"] = 16384] = "YieldContext"; + NodeFlags3[NodeFlags3["DecoratorContext"] = 32768] = "DecoratorContext"; + NodeFlags3[NodeFlags3["AwaitContext"] = 65536] = "AwaitContext"; + NodeFlags3[NodeFlags3["DisallowConditionalTypesContext"] = 131072] = "DisallowConditionalTypesContext"; + NodeFlags3[NodeFlags3["ThisNodeHasError"] = 262144] = "ThisNodeHasError"; + NodeFlags3[NodeFlags3["JavaScriptFile"] = 524288] = "JavaScriptFile"; + NodeFlags3[NodeFlags3["ThisNodeOrAnySubNodesHasError"] = 1048576] = "ThisNodeOrAnySubNodesHasError"; + NodeFlags3[NodeFlags3["HasAggregatedChildData"] = 2097152] = "HasAggregatedChildData"; + NodeFlags3[NodeFlags3["PossiblyContainsDynamicImport"] = 4194304] = "PossiblyContainsDynamicImport"; + NodeFlags3[NodeFlags3["PossiblyContainsImportMeta"] = 8388608] = "PossiblyContainsImportMeta"; + NodeFlags3[NodeFlags3["JSDoc"] = 16777216] = "JSDoc"; + NodeFlags3[NodeFlags3["Ambient"] = 33554432] = "Ambient"; + NodeFlags3[NodeFlags3["InWithStatement"] = 67108864] = "InWithStatement"; + NodeFlags3[NodeFlags3["JsonFile"] = 134217728] = "JsonFile"; + NodeFlags3[NodeFlags3["TypeCached"] = 268435456] = "TypeCached"; + NodeFlags3[NodeFlags3["Deprecated"] = 536870912] = "Deprecated"; + NodeFlags3[NodeFlags3["BlockScoped"] = 7] = "BlockScoped"; + NodeFlags3[NodeFlags3["Constant"] = 6] = "Constant"; + NodeFlags3[NodeFlags3["ReachabilityCheckFlags"] = 1536] = "ReachabilityCheckFlags"; + NodeFlags3[NodeFlags3["ReachabilityAndEmitFlags"] = 5632] = "ReachabilityAndEmitFlags"; + NodeFlags3[NodeFlags3["ContextFlags"] = 101441536] = "ContextFlags"; + NodeFlags3[NodeFlags3["TypeExcludesFlags"] = 81920] = "TypeExcludesFlags"; + NodeFlags3[NodeFlags3["PermanentlySetIncrementalFlags"] = 12582912] = "PermanentlySetIncrementalFlags"; + NodeFlags3[NodeFlags3["IdentifierHasExtendedUnicodeEscape"] = 256 /* ContainsThis */] = "IdentifierHasExtendedUnicodeEscape"; + NodeFlags3[NodeFlags3["IdentifierIsInJSDocNamespace"] = 4096 /* HasAsyncFunctions */] = "IdentifierIsInJSDocNamespace"; return NodeFlags3; })(NodeFlags || {}); ModifierFlags = /* @__PURE__ */ ((ModifierFlags3) => { @@ -4374,15 +4387,13 @@ ${lanes.join("\n")} NodeCheckFlags2[NodeCheckFlags2["ContainsCapturedBlockScopeBinding"] = 8192] = "ContainsCapturedBlockScopeBinding"; NodeCheckFlags2[NodeCheckFlags2["CapturedBlockScopedBinding"] = 16384] = "CapturedBlockScopedBinding"; NodeCheckFlags2[NodeCheckFlags2["BlockScopedBindingInLoop"] = 32768] = "BlockScopedBindingInLoop"; - NodeCheckFlags2[NodeCheckFlags2["ClassWithBodyScopedClassBinding"] = 65536] = "ClassWithBodyScopedClassBinding"; - NodeCheckFlags2[NodeCheckFlags2["BodyScopedClassBinding"] = 131072] = "BodyScopedClassBinding"; - NodeCheckFlags2[NodeCheckFlags2["NeedsLoopOutParameter"] = 262144] = "NeedsLoopOutParameter"; - NodeCheckFlags2[NodeCheckFlags2["AssignmentsMarked"] = 524288] = "AssignmentsMarked"; - NodeCheckFlags2[NodeCheckFlags2["ClassWithConstructorReference"] = 1048576] = "ClassWithConstructorReference"; - NodeCheckFlags2[NodeCheckFlags2["ConstructorReferenceInClass"] = 2097152] = "ConstructorReferenceInClass"; - NodeCheckFlags2[NodeCheckFlags2["ContainsClassWithPrivateIdentifiers"] = 4194304] = "ContainsClassWithPrivateIdentifiers"; - NodeCheckFlags2[NodeCheckFlags2["ContainsSuperPropertyInStaticInitializer"] = 8388608] = "ContainsSuperPropertyInStaticInitializer"; - NodeCheckFlags2[NodeCheckFlags2["InCheckIdentifier"] = 16777216] = "InCheckIdentifier"; + NodeCheckFlags2[NodeCheckFlags2["NeedsLoopOutParameter"] = 65536] = "NeedsLoopOutParameter"; + NodeCheckFlags2[NodeCheckFlags2["AssignmentsMarked"] = 131072] = "AssignmentsMarked"; + NodeCheckFlags2[NodeCheckFlags2["ContainsConstructorReference"] = 262144] = "ContainsConstructorReference"; + NodeCheckFlags2[NodeCheckFlags2["ConstructorReference"] = 536870912] = "ConstructorReference"; + NodeCheckFlags2[NodeCheckFlags2["ContainsClassWithPrivateIdentifiers"] = 1048576] = "ContainsClassWithPrivateIdentifiers"; + NodeCheckFlags2[NodeCheckFlags2["ContainsSuperPropertyInStaticInitializer"] = 2097152] = "ContainsSuperPropertyInStaticInitializer"; + NodeCheckFlags2[NodeCheckFlags2["InCheckIdentifier"] = 4194304] = "InCheckIdentifier"; return NodeCheckFlags2; })(NodeCheckFlags || {}); TypeFlags = /* @__PURE__ */ ((TypeFlags2) => { @@ -4563,7 +4574,8 @@ ${lanes.join("\n")} SignatureFlags5[SignatureFlags5["IsOuterCallChain"] = 16] = "IsOuterCallChain"; SignatureFlags5[SignatureFlags5["IsUntypedSignatureInJSFile"] = 32] = "IsUntypedSignatureInJSFile"; SignatureFlags5[SignatureFlags5["IsNonInferrable"] = 64] = "IsNonInferrable"; - SignatureFlags5[SignatureFlags5["PropagatingFlags"] = 39] = "PropagatingFlags"; + SignatureFlags5[SignatureFlags5["IsSignatureCandidateForOverloadFailure"] = 128] = "IsSignatureCandidateForOverloadFailure"; + SignatureFlags5[SignatureFlags5["PropagatingFlags"] = 167] = "PropagatingFlags"; SignatureFlags5[SignatureFlags5["CallChainFlags"] = 24] = "CallChainFlags"; return SignatureFlags5; })(SignatureFlags || {}); @@ -4705,16 +4717,16 @@ ${lanes.join("\n")} NewLineKind3[NewLineKind3["LineFeed"] = 1] = "LineFeed"; return NewLineKind3; })(NewLineKind || {}); - ScriptKind = /* @__PURE__ */ ((ScriptKind6) => { - ScriptKind6[ScriptKind6["Unknown"] = 0] = "Unknown"; - ScriptKind6[ScriptKind6["JS"] = 1] = "JS"; - ScriptKind6[ScriptKind6["JSX"] = 2] = "JSX"; - ScriptKind6[ScriptKind6["TS"] = 3] = "TS"; - ScriptKind6[ScriptKind6["TSX"] = 4] = "TSX"; - ScriptKind6[ScriptKind6["External"] = 5] = "External"; - ScriptKind6[ScriptKind6["JSON"] = 6] = "JSON"; - ScriptKind6[ScriptKind6["Deferred"] = 7] = "Deferred"; - return ScriptKind6; + ScriptKind = /* @__PURE__ */ ((ScriptKind7) => { + ScriptKind7[ScriptKind7["Unknown"] = 0] = "Unknown"; + ScriptKind7[ScriptKind7["JS"] = 1] = "JS"; + ScriptKind7[ScriptKind7["JSX"] = 2] = "JSX"; + ScriptKind7[ScriptKind7["TS"] = 3] = "TS"; + ScriptKind7[ScriptKind7["TSX"] = 4] = "TSX"; + ScriptKind7[ScriptKind7["External"] = 5] = "External"; + ScriptKind7[ScriptKind7["JSON"] = 6] = "JSON"; + ScriptKind7[ScriptKind7["Deferred"] = 7] = "Deferred"; + return ScriptKind7; })(ScriptKind || {}); ScriptTarget = /* @__PURE__ */ ((ScriptTarget11) => { ScriptTarget11[ScriptTarget11["ES3"] = 0] = "ES3"; @@ -5029,8 +5041,9 @@ ${lanes.join("\n")} ExternalEmitHelpers2[ExternalEmitHelpers2["CreateBinding"] = 4194304] = "CreateBinding"; ExternalEmitHelpers2[ExternalEmitHelpers2["SetFunctionName"] = 8388608] = "SetFunctionName"; ExternalEmitHelpers2[ExternalEmitHelpers2["PropKey"] = 16777216] = "PropKey"; + ExternalEmitHelpers2[ExternalEmitHelpers2["AddDisposableResourceAndDisposeResources"] = 33554432] = "AddDisposableResourceAndDisposeResources"; ExternalEmitHelpers2[ExternalEmitHelpers2["FirstEmitHelper"] = 1 /* Extends */] = "FirstEmitHelper"; - ExternalEmitHelpers2[ExternalEmitHelpers2["LastEmitHelper"] = 16777216 /* PropKey */] = "LastEmitHelper"; + ExternalEmitHelpers2[ExternalEmitHelpers2["LastEmitHelper"] = 33554432 /* AddDisposableResourceAndDisposeResources */] = "LastEmitHelper"; ExternalEmitHelpers2[ExternalEmitHelpers2["ForOfIncludes"] = 256 /* Values */] = "ForOfIncludes"; ExternalEmitHelpers2[ExternalEmitHelpers2["ForAwaitOfIncludes"] = 16384 /* AsyncValues */] = "ForAwaitOfIncludes"; ExternalEmitHelpers2[ExternalEmitHelpers2["AsyncGeneratorIncludes"] = 6144] = "AsyncGeneratorIncludes"; @@ -5411,10 +5424,10 @@ ${lanes.join("\n")} pollingIntervalQueue(pollingInterval).pollScheduled = host.setTimeout(pollingInterval === 250 /* Low */ ? pollLowPollingIntervalQueue : pollPollingIntervalQueue, pollingInterval, pollingInterval === 250 /* Low */ ? "pollLowPollingIntervalQueue" : "pollPollingIntervalQueue", pollingIntervalQueue(pollingInterval)); } } - function createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames) { + function createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames2) { const fileWatcherCallbacks = createMultiMap(); const dirWatchers = /* @__PURE__ */ new Map(); - const toCanonicalName = createGetCanonicalFileName(useCaseSensitiveFileNames); + const toCanonicalName = createGetCanonicalFileName(useCaseSensitiveFileNames2); return nonPollingWatchFile; function nonPollingWatchFile(fileName, callback, _pollingInterval, fallbackOptions) { const filePath = toCanonicalName(fileName); @@ -5490,8 +5503,8 @@ ${lanes.join("\n")} pollScheduled = host.setTimeout(pollQueue, 2e3 /* High */, "pollQueue"); } } - function createSingleWatcherPerName(cache, useCaseSensitiveFileNames, name, callback, createWatcher) { - const toCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames); + function createSingleWatcherPerName(cache, useCaseSensitiveFileNames2, name, callback, createWatcher) { + const toCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2); const path = toCanonicalFileName(name); const existing = cache.get(path); if (existing) { @@ -5541,7 +5554,7 @@ ${lanes.join("\n")} } function createDirectoryWatcherSupportingRecursive({ watchDirectory, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, getCurrentDirectory, getAccessibleSortedChildDirectories, fileSystemEntryExists, @@ -5553,8 +5566,8 @@ ${lanes.join("\n")} const callbackCache = createMultiMap(); const cacheToUpdateChildWatches = /* @__PURE__ */ new Map(); let timerToUpdateChildWatches; - const filePathComparer = getStringComparer(!useCaseSensitiveFileNames); - const toCanonicalFilePath = createGetCanonicalFileName(useCaseSensitiveFileNames); + const filePathComparer = getStringComparer(!useCaseSensitiveFileNames2); + const toCanonicalFilePath = createGetCanonicalFileName(useCaseSensitiveFileNames2); return (dirName, callback, recursive, options) => recursive ? createDirectoryWatcher(dirName, options, callback) : watchDirectory(dirName, callback, recursive, options); function createDirectoryWatcher(dirName, options, callback) { const dirPath = toCanonicalFilePath(dirName); @@ -5721,12 +5734,12 @@ ${lanes.join("\n")} } } function isIgnoredPath(path, options) { - return some(ignoredPaths, (searchPath) => isInPath(path, searchPath)) || isIgnoredByWatchOptions(path, options, useCaseSensitiveFileNames, getCurrentDirectory); + return some(ignoredPaths, (searchPath) => isInPath(path, searchPath)) || isIgnoredByWatchOptions(path, options, useCaseSensitiveFileNames2, getCurrentDirectory); } function isInPath(path, searchPath) { if (stringContains(path, searchPath)) return true; - if (useCaseSensitiveFileNames) + if (useCaseSensitiveFileNames2) return false; return stringContains(toCanonicalFilePath(path), searchPath); } @@ -5744,14 +5757,14 @@ ${lanes.join("\n")} } }; } - function isIgnoredByWatchOptions(pathToCheck, options, useCaseSensitiveFileNames, getCurrentDirectory) { - return ((options == null ? void 0 : options.excludeDirectories) || (options == null ? void 0 : options.excludeFiles)) && (matchesExclude(pathToCheck, options == null ? void 0 : options.excludeFiles, useCaseSensitiveFileNames, getCurrentDirectory()) || matchesExclude(pathToCheck, options == null ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames, getCurrentDirectory())); + function isIgnoredByWatchOptions(pathToCheck, options, useCaseSensitiveFileNames2, getCurrentDirectory) { + return ((options == null ? void 0 : options.excludeDirectories) || (options == null ? void 0 : options.excludeFiles)) && (matchesExclude(pathToCheck, options == null ? void 0 : options.excludeFiles, useCaseSensitiveFileNames2, getCurrentDirectory()) || matchesExclude(pathToCheck, options == null ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames2, getCurrentDirectory())); } - function createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames, getCurrentDirectory) { + function createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames2, getCurrentDirectory) { return (eventName, relativeFileName) => { if (eventName === "rename") { const fileName = !relativeFileName ? directoryName : normalizePath(combinePaths(directoryName, relativeFileName)); - if (!relativeFileName || !isIgnoredByWatchOptions(fileName, options, useCaseSensitiveFileNames, getCurrentDirectory)) { + if (!relativeFileName || !isIgnoredByWatchOptions(fileName, options, useCaseSensitiveFileNames2, getCurrentDirectory)) { callback(fileName); } } @@ -5764,7 +5777,7 @@ ${lanes.join("\n")} clearTimeout: clearTimeout2, fsWatchWorker, fileSystemEntryExists, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, getCurrentDirectory, fsSupportsRecursiveFsWatch, getAccessibleSortedChildDirectories, @@ -5836,7 +5849,7 @@ ${lanes.join("\n")} ); case 5 /* UseFsEventsOnParentDirectory */: if (!nonPollingWatchFile) { - nonPollingWatchFile = createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames); + nonPollingWatchFile = createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames2); } return nonPollingWatchFile(fileName, callback, pollingInterval, getFallbackOptions(options)); default: @@ -5885,7 +5898,7 @@ ${lanes.join("\n")} return fsWatch( directoryName, 1 /* Directory */, - createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames, getCurrentDirectory), + createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames2, getCurrentDirectory), recursive, 500 /* Medium */, getFallbackOptions(options) @@ -5893,7 +5906,7 @@ ${lanes.join("\n")} } if (!hostRecursiveDirectoryWatcher) { hostRecursiveDirectoryWatcher = createDirectoryWatcherSupportingRecursive({ - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, getCurrentDirectory, fileSystemEntryExists, getAccessibleSortedChildDirectories, @@ -5939,7 +5952,7 @@ ${lanes.join("\n")} return fsWatch( directoryName, 1 /* Directory */, - createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames, getCurrentDirectory), + createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames2, getCurrentDirectory), recursive, 500 /* Medium */, getFallbackOptions(watchDirectoryOptions) @@ -5967,7 +5980,7 @@ ${lanes.join("\n")} function pollingWatchFile(fileName, callback, pollingInterval, options) { return createSingleWatcherPerName( pollingWatches, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames2, fileName, callback, (cb) => pollingWatchFileWorker(fileName, cb, pollingInterval, options) @@ -5976,7 +5989,7 @@ ${lanes.join("\n")} function fsWatch(fileOrDirectory, entryKind, callback, recursive, fallbackPollingInterval, fallbackOptions) { return createSingleWatcherPerName( recursive ? fsWatchesRecursive : fsWatches, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames2, fileOrDirectory, callback, (cb) => fsWatchHandlingExistenceOnHost(fileOrDirectory, entryKind, cb, recursive, fallbackPollingInterval, fallbackOptions) @@ -6135,7 +6148,7 @@ ${lanes.join("\n")} const Buffer2 = require("buffer").Buffer; const isLinuxOrMacOs = process.platform === "linux" || process.platform === "darwin"; const platform = _os.platform(); - const useCaseSensitiveFileNames = isFileSystemCaseSensitive(); + const useCaseSensitiveFileNames2 = isFileSystemCaseSensitive(); const fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync; const executingFilePath = __filename.endsWith("sys.js") ? _path.join(_path.dirname(__dirname), "__fake__.js") : __filename; const fsSupportsRecursiveFsWatch = process.platform === "win32" || process.platform === "darwin"; @@ -6146,7 +6159,7 @@ ${lanes.join("\n")} setTimeout, clearTimeout, fsWatchWorker, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, getCurrentDirectory, fileSystemEntryExists, // Node 4.0 `fs.watch` function supports the "recursive" option on both OSX and Windows @@ -6163,7 +6176,7 @@ ${lanes.join("\n")} const nodeSystem = { args: process.argv.slice(2), newLine: _os.EOL, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, write(s) { process.stdout.write(s); }, @@ -6228,7 +6241,7 @@ ${lanes.join("\n")} disableCPUProfiler, cpuProfilingEnabled: () => !!activeSession || contains(process.execArgv, "--cpu-prof") || contains(process.execArgv, "--prof"), realpath, - debugMode: !!process.env.NODE_INSPECTOR_IPC || !!process.env.VSCODE_INSPECTOR_OPTIONS || some(process.execArgv, (arg) => /^--(inspect|debug)(-brk)?(=\d+)?$/i.test(arg)), + debugMode: !!process.env.NODE_INSPECTOR_IPC || !!process.env.VSCODE_INSPECTOR_OPTIONS || some(process.execArgv, (arg) => /^--(inspect|debug)(-brk)?(=\d+)?$/i.test(arg)) || !!process.recordreplay, tryEnableSourceMapsForHost() { try { require("source-map-support").install(); @@ -6254,8 +6267,8 @@ ${lanes.join("\n")} try { const modulePath = resolveJSModule(moduleName, baseDir, nodeSystem); return { module: require(modulePath), modulePath, error: void 0 }; - } catch (error) { - return { module: void 0, modulePath: void 0, error }; + } catch (error2) { + return { module: void 0, modulePath: void 0, error: error2 }; } } }; @@ -6292,12 +6305,12 @@ ${lanes.join("\n")} for (const node of profile.nodes) { if (node.callFrame.url) { const url = normalizeSlashes(node.callFrame.url); - if (containsPath(fileUrlRoot, url, useCaseSensitiveFileNames)) { + if (containsPath(fileUrlRoot, url, useCaseSensitiveFileNames2)) { node.callFrame.url = getRelativePathToDirectoryOrUrl( fileUrlRoot, url, fileUrlRoot, - createGetCanonicalFileName(useCaseSensitiveFileNames), + createGetCanonicalFileName(useCaseSensitiveFileNames2), /*isAbsolutePathAnUrl*/ true ); @@ -6477,7 +6490,7 @@ ${lanes.join("\n")} } } function readDirectory(path, extensions, excludes, includes, depth) { - return matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, process.cwd(), depth, getAccessibleFileSystemEntries, realpath); + return matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames2, process.cwd(), depth, getAccessibleFileSystemEntries, realpath); } function fileSystemEntryExists(path, entryKind) { const originalStackTraceLimit = Error.stackTraceLimit; @@ -7053,6 +7066,7 @@ ${lanes.join("\n")} Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method: diag(1062, 1 /* Error */, "Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062", "Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."), An_export_assignment_cannot_be_used_in_a_namespace: diag(1063, 1 /* Error */, "An_export_assignment_cannot_be_used_in_a_namespace_1063", "An export assignment cannot be used in a namespace."), The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0: diag(1064, 1 /* Error */, "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064", "The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"), + The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type: diag(1065, 1 /* Error */, "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065", "The return type of an async function or method must be the global Promise type."), In_ambient_enum_declarations_member_initializer_must_be_constant_expression: diag(1066, 1 /* Error */, "In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066", "In ambient enum declarations member initializer must be constant expression."), Unexpected_token_A_constructor_method_accessor_or_property_was_expected: diag(1068, 1 /* Error */, "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068", "Unexpected token. A constructor, method, accessor, or property was expected."), Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces: diag(1069, 1 /* Error */, "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069", "Unexpected token. A type parameter name was expected without curly braces."), @@ -7082,6 +7096,7 @@ ${lanes.join("\n")} A_return_statement_can_only_be_used_within_a_function_body: diag(1108, 1 /* Error */, "A_return_statement_can_only_be_used_within_a_function_body_1108", "A 'return' statement can only be used within a function body."), Expression_expected: diag(1109, 1 /* Error */, "Expression_expected_1109", "Expression expected."), Type_expected: diag(1110, 1 /* Error */, "Type_expected_1110", "Type expected."), + Private_field_0_must_be_declared_in_an_enclosing_class: diag(1111, 1 /* Error */, "Private_field_0_must_be_declared_in_an_enclosing_class_1111", "Private field '{0}' must be declared in an enclosing class."), A_default_clause_cannot_appear_more_than_once_in_a_switch_statement: diag(1113, 1 /* Error */, "A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113", "A 'default' clause cannot appear more than once in a 'switch' statement."), Duplicate_label_0: diag(1114, 1 /* Error */, "Duplicate_label_0_1114", "Duplicate label '{0}'."), A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement: diag(1115, 1 /* Error */, "A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115", "A 'continue' statement can only jump to a label of an enclosing iteration statement."), @@ -7116,9 +7131,8 @@ ${lanes.join("\n")} Import_declarations_in_a_namespace_cannot_reference_a_module: diag(1147, 1 /* Error */, "Import_declarations_in_a_namespace_cannot_reference_a_module_1147", "Import declarations in a namespace cannot reference a module."), Cannot_use_imports_exports_or_module_augmentations_when_module_is_none: diag(1148, 1 /* Error */, "Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148", "Cannot use imports, exports, or module augmentations when '--module' is 'none'."), File_name_0_differs_from_already_included_file_name_1_only_in_casing: diag(1149, 1 /* Error */, "File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149", "File name '{0}' differs from already included file name '{1}' only in casing."), - const_declarations_must_be_initialized: diag(1155, 1 /* Error */, "const_declarations_must_be_initialized_1155", "'const' declarations must be initialized."), - const_declarations_can_only_be_declared_inside_a_block: diag(1156, 1 /* Error */, "const_declarations_can_only_be_declared_inside_a_block_1156", "'const' declarations can only be declared inside a block."), - let_declarations_can_only_be_declared_inside_a_block: diag(1157, 1 /* Error */, "let_declarations_can_only_be_declared_inside_a_block_1157", "'let' declarations can only be declared inside a block."), + _0_declarations_must_be_initialized: diag(1155, 1 /* Error */, "_0_declarations_must_be_initialized_1155", "'{0}' declarations must be initialized."), + _0_declarations_can_only_be_declared_inside_a_block: diag(1156, 1 /* Error */, "_0_declarations_can_only_be_declared_inside_a_block_1156", "'{0}' declarations can only be declared inside a block."), Unterminated_template_literal: diag(1160, 1 /* Error */, "Unterminated_template_literal_1160", "Unterminated template literal."), Unterminated_regular_expression_literal: diag(1161, 1 /* Error */, "Unterminated_regular_expression_literal_1161", "Unterminated regular expression literal."), An_object_member_cannot_be_declared_optional: diag(1162, 1 /* Error */, "An_object_member_cannot_be_declared_optional_1162", "An object member cannot be declared optional."), @@ -7300,8 +7314,6 @@ ${lanes.join("\n")} Class_constructor_may_not_be_a_generator: diag(1368, 1 /* Error */, "Class_constructor_may_not_be_a_generator_1368", "Class constructor may not be a generator."), Did_you_mean_0: diag(1369, 3 /* Message */, "Did_you_mean_0_1369", "Did you mean '{0}'?"), This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error: diag(1371, 1 /* Error */, "This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371", "This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."), - Convert_to_type_only_import: diag(1373, 3 /* Message */, "Convert_to_type_only_import_1373", "Convert to type-only import"), - Convert_all_imports_not_used_as_a_value_to_type_only_imports: diag(1374, 3 /* Message */, "Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374", "Convert all imports not used as a value to type-only imports"), await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module: diag(1375, 1 /* Error */, "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375", "'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."), _0_was_imported_here: diag(1376, 3 /* Message */, "_0_was_imported_here_1376", "'{0}' was imported here."), _0_was_exported_here: diag(1377, 3 /* Message */, "_0_was_exported_here_1377", "'{0}' was exported here."), @@ -7405,6 +7417,11 @@ ${lanes.join("\n")} Escape_sequence_0_is_not_allowed: diag(1488, 1 /* Error */, "Escape_sequence_0_is_not_allowed_1488", "Escape sequence '{0}' is not allowed."), Decimals_with_leading_zeros_are_not_allowed: diag(1489, 1 /* Error */, "Decimals_with_leading_zeros_are_not_allowed_1489", "Decimals with leading zeros are not allowed."), File_appears_to_be_binary: diag(1490, 1 /* Error */, "File_appears_to_be_binary_1490", "File appears to be binary."), + _0_modifier_cannot_appear_on_a_using_declaration: diag(1491, 1 /* Error */, "_0_modifier_cannot_appear_on_a_using_declaration_1491", "'{0}' modifier cannot appear on a 'using' declaration."), + _0_declarations_may_not_have_binding_patterns: diag(1492, 1 /* Error */, "_0_declarations_may_not_have_binding_patterns_1492", "'{0}' declarations may not have binding patterns."), + The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration: diag(1493, 1 /* Error */, "The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493", "The left-hand side of a 'for...in' statement cannot be a 'using' declaration."), + The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration: diag(1494, 1 /* Error */, "The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494", "The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."), + _0_modifier_cannot_appear_on_an_await_using_declaration: diag(1495, 1 /* Error */, "_0_modifier_cannot_appear_on_an_await_using_declaration_1495", "'{0}' modifier cannot appear on an 'await using' declaration."), The_types_of_0_are_incompatible_between_these_types: diag(2200, 1 /* Error */, "The_types_of_0_are_incompatible_between_these_types_2200", "The types of '{0}' are incompatible between these types."), The_types_returned_by_0_are_incompatible_between_these_types: diag(2201, 1 /* Error */, "The_types_returned_by_0_are_incompatible_between_these_types_2201", "The types returned by '{0}' are incompatible between these types."), Call_signature_return_types_0_and_1_are_incompatible: diag( @@ -7499,7 +7516,6 @@ ${lanes.join("\n")} This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0: diag(2343, 1 /* Error */, "This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343", "This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."), Type_0_does_not_satisfy_the_constraint_1: diag(2344, 1 /* Error */, "Type_0_does_not_satisfy_the_constraint_1_2344", "Type '{0}' does not satisfy the constraint '{1}'."), Argument_of_type_0_is_not_assignable_to_parameter_of_type_1: diag(2345, 1 /* Error */, "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345", "Argument of type '{0}' is not assignable to parameter of type '{1}'."), - Call_target_does_not_contain_any_signatures: diag(2346, 1 /* Error */, "Call_target_does_not_contain_any_signatures_2346", "Call target does not contain any signatures."), Untyped_function_calls_may_not_accept_type_arguments: diag(2347, 1 /* Error */, "Untyped_function_calls_may_not_accept_type_arguments_2347", "Untyped function calls may not accept type arguments."), Value_of_type_0_is_not_callable_Did_you_mean_to_include_new: diag(2348, 1 /* Error */, "Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348", "Value of type '{0}' is not callable. Did you mean to include 'new'?"), This_expression_is_not_callable: diag(2349, 1 /* Error */, "This_expression_is_not_callable_2349", "This expression is not callable."), @@ -7951,6 +7967,11 @@ ${lanes.join("\n")} A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead: diag(2846, 1 /* Error */, "A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846", "A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"), The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression: diag(2848, 1 /* Error */, "The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848", "The right-hand side of an 'instanceof' expression must not be an instantiation expression."), Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1: diag(2849, 1 /* Error */, "Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849", "Target signature provides too few arguments. Expected {0} or more, but got {1}."), + The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined: diag(2850, 1 /* Error */, "The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850", "The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."), + The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined: diag(2851, 1 /* Error */, "The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851", "The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."), + await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules: diag(2852, 1 /* Error */, "await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852", "'await using' statements are only allowed within async functions and at the top levels of modules."), + await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module: diag(2853, 1 /* Error */, "await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853", "'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."), + Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher: diag(2854, 1 /* Error */, "Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854", "Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."), Import_declaration_0_is_using_private_name_1: diag(4e3, 1 /* Error */, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."), Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, 1 /* Error */, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."), Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, 1 /* Error */, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."), @@ -8104,7 +8125,6 @@ ${lanes.join("\n")} Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0: diag(5081, 1 /* Error */, "Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081", "Cannot find a tsconfig.json file at the current directory: {0}."), _0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1: diag(5082, 1 /* Error */, "_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082", "'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."), Cannot_read_file_0: diag(5083, 1 /* Error */, "Cannot_read_file_0_5083", "Cannot read file '{0}'."), - Tuple_members_must_all_have_names_or_all_not_have_names: diag(5084, 1 /* Error */, "Tuple_members_must_all_have_names_or_all_not_have_names_5084", "Tuple members must all have names or all not have names."), A_tuple_member_cannot_be_both_optional_and_rest: diag(5085, 1 /* Error */, "A_tuple_member_cannot_be_both_optional_and_rest_5085", "A tuple member cannot be both optional and rest."), A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type: diag(5086, 1 /* Error */, "A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086", "A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."), A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type: diag(5087, 1 /* Error */, "A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087", "A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."), @@ -8127,6 +8147,8 @@ ${lanes.join("\n")} Use_0_instead: diag(5106, 3 /* Message */, "Use_0_instead_5106", "Use '{0}' instead."), Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error: diag(5107, 1 /* Error */, "Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107", `Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`), Option_0_1_has_been_removed_Please_remove_it_from_your_configuration: diag(5108, 1 /* Error */, "Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108", "Option '{0}={1}' has been removed. Please remove it from your configuration."), + Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1: diag(5109, 1 /* Error */, "Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109", "Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."), + Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1: diag(5110, 1 /* Error */, "Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110", "Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."), Generates_a_sourcemap_for_each_corresponding_d_ts_file: diag(6e3, 3 /* Message */, "Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000", "Generates a sourcemap for each corresponding '.d.ts' file."), Concatenate_and_emit_output_to_single_file: diag(6001, 3 /* Message */, "Concatenate_and_emit_output_to_single_file_6001", "Concatenate and emit output to single file."), Generates_corresponding_d_ts_file: diag(6002, 3 /* Message */, "Generates_corresponding_d_ts_file_6002", "Generates corresponding '.d.ts' file."), @@ -8507,6 +8529,8 @@ ${lanes.join("\n")} Resolved_under_condition_0: diag(6414, 3 /* Message */, "Resolved_under_condition_0_6414", "Resolved under condition '{0}'."), Failed_to_resolve_under_condition_0: diag(6415, 3 /* Message */, "Failed_to_resolve_under_condition_0_6415", "Failed to resolve under condition '{0}'."), Exiting_conditional_exports: diag(6416, 3 /* Message */, "Exiting_conditional_exports_6416", "Exiting conditional exports."), + Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0: diag(6417, 3 /* Message */, "Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417", "Searching all ancestor node_modules directories for preferred extensions: {0}."), + Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0: diag(6418, 3 /* Message */, "Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418", "Searching all ancestor node_modules directories for fallback extensions: {0}."), The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1: diag(6500, 3 /* Message */, "The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500", "The expected type comes from property '{0}' which is declared here on type '{1}'"), The_expected_type_comes_from_this_index_signature: diag(6501, 3 /* Message */, "The_expected_type_comes_from_this_index_signature_6501", "The expected type comes from this index signature."), The_expected_type_comes_from_the_return_type_of_this_signature: diag(6502, 3 /* Message */, "The_expected_type_comes_from_the_return_type_of_this_signature_6502", "The expected type comes from the return type of this signature."), @@ -8745,6 +8769,7 @@ ${lanes.join("\n")} Parameter_modifiers_can_only_be_used_in_TypeScript_files: diag(8012, 1 /* Error */, "Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012", "Parameter modifiers can only be used in TypeScript files."), Non_null_assertions_can_only_be_used_in_TypeScript_files: diag(8013, 1 /* Error */, "Non_null_assertions_can_only_be_used_in_TypeScript_files_8013", "Non-null assertions can only be used in TypeScript files."), Type_assertion_expressions_can_only_be_used_in_TypeScript_files: diag(8016, 1 /* Error */, "Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016", "Type assertion expressions can only be used in TypeScript files."), + Signature_declarations_can_only_be_used_in_TypeScript_files: diag(8017, 1 /* Error */, "Signature_declarations_can_only_be_used_in_TypeScript_files_8017", "Signature declarations can only be used in TypeScript files."), Report_errors_in_js_files: diag(8019, 3 /* Message */, "Report_errors_in_js_files_8019", "Report errors in .js files."), JSDoc_types_can_only_be_used_inside_documentation_comments: diag(8020, 1 /* Error */, "JSDoc_types_can_only_be_used_inside_documentation_comments_8020", "JSDoc types can only be used inside documentation comments."), JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags: diag(8021, 1 /* Error */, "JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021", "JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."), @@ -9019,6 +9044,14 @@ ${lanes.join("\n")} Convert_all_typedef_to_TypeScript_types: diag(95177, 3 /* Message */, "Convert_all_typedef_to_TypeScript_types_95177", "Convert all typedef to TypeScript types."), Move_to_file: diag(95178, 3 /* Message */, "Move_to_file_95178", "Move to file"), Cannot_move_to_file_selected_file_is_invalid: diag(95179, 3 /* Message */, "Cannot_move_to_file_selected_file_is_invalid_95179", "Cannot move to file, selected file is invalid"), + Use_import_type: diag(95180, 3 /* Message */, "Use_import_type_95180", "Use 'import type'"), + Use_type_0: diag(95181, 3 /* Message */, "Use_type_0_95181", "Use 'type {0}'"), + Fix_all_with_type_only_imports: diag(95182, 3 /* Message */, "Fix_all_with_type_only_imports_95182", "Fix all with type-only imports"), + Cannot_move_statements_to_the_selected_file: diag(95183, 3 /* Message */, "Cannot_move_statements_to_the_selected_file_95183", "Cannot move statements to the selected file"), + Inline_variable: diag(95184, 3 /* Message */, "Inline_variable_95184", "Inline variable"), + Could_not_find_variable_to_inline: diag(95185, 3 /* Message */, "Could_not_find_variable_to_inline_95185", "Could not find variable to inline."), + Variables_with_multiple_declarations_cannot_be_inlined: diag(95186, 3 /* Message */, "Variables_with_multiple_declarations_cannot_be_inlined_95186", "Variables with multiple declarations cannot be inlined."), + Add_missing_comma_for_object_member_completion_0: diag(95187, 3 /* Message */, "Add_missing_comma_for_object_member_completion_0_95187", "Add missing comma for object member completion '{0}'."), No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer: diag(18004, 1 /* Error */, "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004", "No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."), Classes_may_not_have_a_field_named_constructor: diag(18006, 1 /* Error */, "Classes_may_not_have_a_field_named_constructor_18006", "Classes may not have a field named 'constructor'."), JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array: diag(18007, 1 /* Error */, "JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007", "JSX expressions may not use the comma operator. Did you mean to write an array?"), @@ -9045,8 +9078,8 @@ ${lanes.join("\n")} Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment: diag(18034, 3 /* Message */, "Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034", "Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."), Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name: diag(18035, 1 /* Error */, "Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035", "Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."), Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator: diag(18036, 1 /* Error */, "Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036", "Class decorators can't be used with static private identifier. Consider removing the experimental decorator."), - Await_expression_cannot_be_used_inside_a_class_static_block: diag(18037, 1 /* Error */, "Await_expression_cannot_be_used_inside_a_class_static_block_18037", "Await expression cannot be used inside a class static block."), - For_await_loops_cannot_be_used_inside_a_class_static_block: diag(18038, 1 /* Error */, "For_await_loops_cannot_be_used_inside_a_class_static_block_18038", "'For await' loops cannot be used inside a class static block."), + await_expression_cannot_be_used_inside_a_class_static_block: diag(18037, 1 /* Error */, "await_expression_cannot_be_used_inside_a_class_static_block_18037", "'await' expression cannot be used inside a class static block."), + for_await_loops_cannot_be_used_inside_a_class_static_block: diag(18038, 1 /* Error */, "for_await_loops_cannot_be_used_inside_a_class_static_block_18038", "'for await' loops cannot be used inside a class static block."), Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block: diag(18039, 1 /* Error */, "Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039", "Invalid use of '{0}'. It cannot be used inside a class static block."), A_return_statement_cannot_be_used_inside_a_class_static_block: diag(18041, 1 /* Error */, "A_return_statement_cannot_be_used_inside_a_class_static_block_18041", "A 'return' statement cannot be used inside a class static block."), _0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation: diag(18042, 1 /* Error */, "_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042", "'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."), @@ -9060,7 +9093,8 @@ ${lanes.join("\n")} The_value_0_cannot_be_used_here: diag(18050, 1 /* Error */, "The_value_0_cannot_be_used_here_18050", "The value '{0}' cannot be used here."), Compiler_option_0_cannot_be_given_an_empty_string: diag(18051, 1 /* Error */, "Compiler_option_0_cannot_be_given_an_empty_string_18051", "Compiler option '{0}' cannot be given an empty string."), Non_abstract_class_0_does_not_implement_all_abstract_members_of_1: diag(18052, 1 /* Error */, "Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052", "Non-abstract class '{0}' does not implement all abstract members of '{1}'"), - Its_type_0_is_not_a_valid_JSX_element_type: diag(18053, 1 /* Error */, "Its_type_0_is_not_a_valid_JSX_element_type_18053", "Its type '{0}' is not a valid JSX element type.") + Its_type_0_is_not_a_valid_JSX_element_type: diag(18053, 1 /* Error */, "Its_type_0_is_not_a_valid_JSX_element_type_18053", "Its type '{0}' is not a valid JSX element type."), + await_using_statements_cannot_be_used_inside_a_class_static_block: diag(18054, 1 /* Error */, "await_using_statements_cannot_be_used_inside_a_class_static_block_18054", "'await using' statements cannot be used inside a class static block.") }; } }); @@ -9337,9 +9371,9 @@ ${lanes.join("\n")} } return false; } - function scanConflictMarkerTrivia(text, pos, error) { - if (error) { - error(Diagnostics.Merge_conflict_marker_encountered, pos, mergeConflictMarkerLength); + function scanConflictMarkerTrivia(text, pos, error2) { + if (error2) { + error2(Diagnostics.Merge_conflict_marker_encountered, pos, mergeConflictMarkerLength); } const ch = text.charCodeAt(pos); const len = text.length; @@ -9635,7 +9669,7 @@ ${lanes.join("\n")} }); } return scanner2; - function error(message, errPos = pos, length3, arg0) { + function error2(message, errPos = pos, length3, arg0) { if (onError) { const oldPos = pos; pos = errPos; @@ -9659,9 +9693,9 @@ ${lanes.join("\n")} } else { tokenFlags |= 16384 /* ContainsInvalidSeparator */; if (isPreviousTokenSeparator) { - error(Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1); + error2(Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1); } else { - error(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1); + error2(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1); } } pos++; @@ -9678,7 +9712,7 @@ ${lanes.join("\n")} } if (text.charCodeAt(pos - 1) === 95 /* _ */) { tokenFlags |= 16384 /* ContainsInvalidSeparator */; - error(Diagnostics.Numeric_separators_are_not_allowed_here, pos - 1, 1); + error2(Diagnostics.Numeric_separators_are_not_allowed_here, pos - 1, 1); } return result + text.substring(start2, pos); } @@ -9689,7 +9723,7 @@ ${lanes.join("\n")} pos++; if (text.charCodeAt(pos) === 95 /* _ */) { tokenFlags |= 512 /* ContainsSeparator */ | 16384 /* ContainsInvalidSeparator */; - error(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1); + error2(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1); pos--; mainFragment = scanNumberFragment(); } else if (!scanDigits()) { @@ -9704,8 +9738,8 @@ ${lanes.join("\n")} const literal = (withMinus ? "-" : "") + "0o" + (+tokenValue).toString(8); if (withMinus) start2--; - error(Diagnostics.Octal_literals_are_not_allowed_Use_the_syntax_0, start2, pos - start2, literal); - return { type: 9 /* NumericLiteral */, value: tokenValue }; + error2(Diagnostics.Octal_literals_are_not_allowed_Use_the_syntax_0, start2, pos - start2, literal); + return 9 /* NumericLiteral */; } } else { mainFragment = scanNumberFragment(); @@ -9725,7 +9759,7 @@ ${lanes.join("\n")} const preNumericPart = pos; const finalFragment = scanNumberFragment(); if (!finalFragment) { - error(Diagnostics.Digit_expected); + error2(Diagnostics.Digit_expected); } else { scientificFragment = text.substring(end2, preNumericPart) + finalFragment; end2 = pos; @@ -9744,21 +9778,19 @@ ${lanes.join("\n")} result = text.substring(start2, end2); } if (tokenFlags & 8192 /* ContainsLeadingZero */) { - error(Diagnostics.Decimals_with_leading_zeros_are_not_allowed, start2, end2 - start2); - return { type: 9 /* NumericLiteral */, value: "" + +result }; + error2(Diagnostics.Decimals_with_leading_zeros_are_not_allowed, start2, end2 - start2); + tokenValue = "" + +result; + return 9 /* NumericLiteral */; } if (decimalFragment !== void 0 || tokenFlags & 16 /* Scientific */) { checkForIdentifierStartAfterNumericLiteral(start2, decimalFragment === void 0 && !!(tokenFlags & 16 /* Scientific */)); - return { - type: 9 /* NumericLiteral */, - value: "" + +result - // if value is not an integer, it can be safely coerced to a number - }; + tokenValue = "" + +result; + return 9 /* NumericLiteral */; } else { tokenValue = result; const type = checkBigIntSuffix(); checkForIdentifierStartAfterNumericLiteral(start2); - return { type, value: tokenValue }; + return type; } } function checkForIdentifierStartAfterNumericLiteral(numericStart, isScientific) { @@ -9769,12 +9801,12 @@ ${lanes.join("\n")} const { length: length3 } = scanIdentifierParts(); if (length3 === 1 && text[identifierStart] === "n") { if (isScientific) { - error(Diagnostics.A_bigint_literal_cannot_use_exponential_notation, numericStart, identifierStart - numericStart + 1); + error2(Diagnostics.A_bigint_literal_cannot_use_exponential_notation, numericStart, identifierStart - numericStart + 1); } else { - error(Diagnostics.A_bigint_literal_must_be_an_integer, numericStart, identifierStart - numericStart + 1); + error2(Diagnostics.A_bigint_literal_must_be_an_integer, numericStart, identifierStart - numericStart + 1); } } else { - error(Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal, identifierStart, length3); + error2(Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal, identifierStart, length3); pos = identifierStart; } } @@ -9821,9 +9853,9 @@ ${lanes.join("\n")} allowSeparator = false; isPreviousTokenSeparator = true; } else if (isPreviousTokenSeparator) { - error(Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1); + error2(Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1); } else { - error(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1); + error2(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1); } pos++; continue; @@ -9842,7 +9874,7 @@ ${lanes.join("\n")} valueChars = []; } if (text.charCodeAt(pos - 1) === 95 /* _ */) { - error(Diagnostics.Numeric_separators_are_not_allowed_here, pos - 1, 1); + error2(Diagnostics.Numeric_separators_are_not_allowed_here, pos - 1, 1); } return String.fromCharCode(...valueChars); } @@ -9855,7 +9887,7 @@ ${lanes.join("\n")} if (pos >= end) { result += text.substring(start2, pos); tokenFlags |= 4 /* Unterminated */; - error(Diagnostics.Unterminated_string_literal); + error2(Diagnostics.Unterminated_string_literal); break; } const ch = text.charCodeAt(pos); @@ -9876,7 +9908,7 @@ ${lanes.join("\n")} if (isLineBreak(ch) && !jsxAttributeString) { result += text.substring(start2, pos); tokenFlags |= 4 /* Unterminated */; - error(Diagnostics.Unterminated_string_literal); + error2(Diagnostics.Unterminated_string_literal); break; } pos++; @@ -9893,7 +9925,7 @@ ${lanes.join("\n")} if (pos >= end) { contents += text.substring(start2, pos); tokenFlags |= 4 /* Unterminated */; - error(Diagnostics.Unterminated_template_literal); + error2(Diagnostics.Unterminated_template_literal); resultingToken = startedWithBacktick ? 15 /* NoSubstitutionTemplateLiteral */ : 18 /* TemplateTail */; break; } @@ -9936,7 +9968,7 @@ ${lanes.join("\n")} const start2 = pos; pos++; if (pos >= end) { - error(Diagnostics.Unexpected_end_of_text); + error2(Diagnostics.Unexpected_end_of_text); return ""; } const ch = text.charCodeAt(pos); @@ -9962,7 +9994,7 @@ ${lanes.join("\n")} tokenFlags |= 2048 /* ContainsInvalidEscape */; if (shouldEmitInvalidEscapeError) { const code = parseInt(text.substring(start2 + 1, pos), 8); - error(Diagnostics.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0, start2, pos - start2, "\\x" + padLeft(code.toString(16), 2, "0")); + error2(Diagnostics.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0, start2, pos - start2, "\\x" + padLeft(code.toString(16), 2, "0")); return String.fromCharCode(code); } return text.substring(start2, pos); @@ -9970,7 +10002,7 @@ ${lanes.join("\n")} case 57 /* _9 */: tokenFlags |= 2048 /* ContainsInvalidEscape */; if (shouldEmitInvalidEscapeError) { - error(Diagnostics.Escape_sequence_0_is_not_allowed, start2, pos - start2, text.substring(start2, pos)); + error2(Diagnostics.Escape_sequence_0_is_not_allowed, start2, pos - start2, text.substring(start2, pos)); return String.fromCharCode(ch); } return text.substring(start2, pos); @@ -10002,28 +10034,28 @@ ${lanes.join("\n")} if (escapedValue < 0) { tokenFlags |= 2048 /* ContainsInvalidEscape */; if (shouldEmitInvalidEscapeError) { - error(Diagnostics.Hexadecimal_digit_expected); + error2(Diagnostics.Hexadecimal_digit_expected); } return text.substring(start2, pos); } if (!isCodePoint(escapedValue)) { tokenFlags |= 2048 /* ContainsInvalidEscape */; if (shouldEmitInvalidEscapeError) { - error(Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive); + error2(Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive); } return text.substring(start2, pos); } if (pos >= end) { tokenFlags |= 2048 /* ContainsInvalidEscape */; if (shouldEmitInvalidEscapeError) { - error(Diagnostics.Unexpected_end_of_text); + error2(Diagnostics.Unexpected_end_of_text); } return text.substring(start2, pos); } if (text.charCodeAt(pos) !== 125 /* closeBrace */) { tokenFlags |= 2048 /* ContainsInvalidEscape */; if (shouldEmitInvalidEscapeError) { - error(Diagnostics.Unterminated_Unicode_escape_sequence); + error2(Diagnostics.Unterminated_Unicode_escape_sequence); } return text.substring(start2, pos); } @@ -10035,7 +10067,7 @@ ${lanes.join("\n")} if (!(pos < end && isHexDigit(text.charCodeAt(pos)))) { tokenFlags |= 2048 /* ContainsInvalidEscape */; if (shouldEmitInvalidEscapeError) { - error(Diagnostics.Hexadecimal_digit_expected); + error2(Diagnostics.Hexadecimal_digit_expected); } return text.substring(start2, pos); } @@ -10047,7 +10079,7 @@ ${lanes.join("\n")} if (!(pos < end && isHexDigit(text.charCodeAt(pos)))) { tokenFlags |= 2048 /* ContainsInvalidEscape */; if (shouldEmitInvalidEscapeError) { - error(Diagnostics.Hexadecimal_digit_expected); + error2(Diagnostics.Hexadecimal_digit_expected); } return text.substring(start2, pos); } @@ -10075,19 +10107,19 @@ ${lanes.join("\n")} const escapedValue = escapedValueString ? parseInt(escapedValueString, 16) : -1; let isInvalidExtendedEscape = false; if (escapedValue < 0) { - error(Diagnostics.Hexadecimal_digit_expected); + error2(Diagnostics.Hexadecimal_digit_expected); isInvalidExtendedEscape = true; } else if (escapedValue > 1114111) { - error(Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive); + error2(Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive); isInvalidExtendedEscape = true; } if (pos >= end) { - error(Diagnostics.Unexpected_end_of_text); + error2(Diagnostics.Unexpected_end_of_text); isInvalidExtendedEscape = true; } else if (text.charCodeAt(pos) === 125 /* closeBrace */) { pos++; } else { - error(Diagnostics.Unterminated_Unicode_escape_sequence); + error2(Diagnostics.Unterminated_Unicode_escape_sequence); isInvalidExtendedEscape = true; } if (isInvalidExtendedEscape) { @@ -10181,9 +10213,9 @@ ${lanes.join("\n")} separatorAllowed = false; isPreviousTokenSeparator = true; } else if (isPreviousTokenSeparator) { - error(Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1); + error2(Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1); } else { - error(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1); + error2(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1); } pos++; continue; @@ -10197,7 +10229,7 @@ ${lanes.join("\n")} isPreviousTokenSeparator = false; } if (text.charCodeAt(pos - 1) === 95 /* _ */) { - error(Diagnostics.Numeric_separators_are_not_allowed_here, pos - 1, 1); + error2(Diagnostics.Numeric_separators_are_not_allowed_here, pos - 1, 1); } return value; } @@ -10227,7 +10259,7 @@ ${lanes.join("\n")} const ch = codePointAt(text, pos); if (pos === 0) { if (ch === 65533 /* replacementCharacter */) { - error(Diagnostics.File_appears_to_be_binary); + error2(Diagnostics.File_appears_to_be_binary); pos = end; return token = 8 /* NonTextFileMarkerTrivia */; } @@ -10367,7 +10399,7 @@ ${lanes.join("\n")} return token = 41 /* MinusToken */; case 46 /* dot */: if (isDigit(text.charCodeAt(pos + 1))) { - tokenValue = scanNumber().value; + scanNumber(); return token = 9 /* NumericLiteral */; } if (text.charCodeAt(pos + 1) === 46 /* dot */ && text.charCodeAt(pos + 2) === 46 /* dot */) { @@ -10418,7 +10450,7 @@ ${lanes.join("\n")} } commentDirectives = appendIfCommentDirective(commentDirectives, text.slice(lastLineStart, pos), commentDirectiveRegExMultiLine, lastLineStart); if (!commentClosed) { - error(Diagnostics.Asterisk_Slash_expected); + error2(Diagnostics.Asterisk_Slash_expected); } if (skipTrivia2) { continue; @@ -10443,7 +10475,7 @@ ${lanes.join("\n")} true ); if (!tokenValue) { - error(Diagnostics.Hexadecimal_digit_expected); + error2(Diagnostics.Hexadecimal_digit_expected); tokenValue = "0"; } tokenValue = "0x" + tokenValue; @@ -10456,7 +10488,7 @@ ${lanes.join("\n")} 2 ); if (!tokenValue) { - error(Diagnostics.Binary_digit_expected); + error2(Diagnostics.Binary_digit_expected); tokenValue = "0"; } tokenValue = "0b" + tokenValue; @@ -10469,7 +10501,7 @@ ${lanes.join("\n")} 8 ); if (!tokenValue) { - error(Diagnostics.Octal_digit_expected); + error2(Diagnostics.Octal_digit_expected); tokenValue = "0"; } tokenValue = "0o" + tokenValue; @@ -10485,8 +10517,7 @@ ${lanes.join("\n")} case 55 /* _7 */: case 56 /* _8 */: case 57 /* _9 */: - ({ type: token, value: tokenValue } = scanNumber()); - return token; + return token = scanNumber(); case 58 /* colon */: pos++; return token = 59 /* ColonToken */; @@ -10495,7 +10526,7 @@ ${lanes.join("\n")} return token = 27 /* SemicolonToken */; case 60 /* lessThan */: if (isConflictMarkerTrivia(text, pos)) { - pos = scanConflictMarkerTrivia(text, pos, error); + pos = scanConflictMarkerTrivia(text, pos, error2); if (skipTrivia2) { continue; } else { @@ -10518,7 +10549,7 @@ ${lanes.join("\n")} return token = 30 /* LessThanToken */; case 61 /* equals */: if (isConflictMarkerTrivia(text, pos)) { - pos = scanConflictMarkerTrivia(text, pos, error); + pos = scanConflictMarkerTrivia(text, pos, error2); if (skipTrivia2) { continue; } else { @@ -10538,7 +10569,7 @@ ${lanes.join("\n")} return token = 64 /* EqualsToken */; case 62 /* greaterThan */: if (isConflictMarkerTrivia(text, pos)) { - pos = scanConflictMarkerTrivia(text, pos, error); + pos = scanConflictMarkerTrivia(text, pos, error2); if (skipTrivia2) { continue; } else { @@ -10576,7 +10607,7 @@ ${lanes.join("\n")} return token = 19 /* OpenBraceToken */; case 124 /* bar */: if (isConflictMarkerTrivia(text, pos)) { - pos = scanConflictMarkerTrivia(text, pos, error); + pos = scanConflictMarkerTrivia(text, pos, error2); if (skipTrivia2) { continue; } else { @@ -10618,12 +10649,12 @@ ${lanes.join("\n")} tokenValue = String.fromCharCode(cookedChar) + scanIdentifierParts(); return token = getIdentifierToken(); } - error(Diagnostics.Invalid_character); + error2(Diagnostics.Invalid_character); pos++; return token = 0 /* Unknown */; case 35 /* hash */: if (pos !== 0 && text[pos + 1] === "!") { - error(Diagnostics.can_only_be_used_at_the_start_of_a_file); + error2(Diagnostics.can_only_be_used_at_the_start_of_a_file); pos++; return token = 0 /* Unknown */; } @@ -10651,7 +10682,7 @@ ${lanes.join("\n")} scanIdentifier(charAfterHash, languageVersion); } else { tokenValue = "#"; - error(Diagnostics.Invalid_character, pos++, charSize(ch)); + error2(Diagnostics.Invalid_character, pos++, charSize(ch)); } return token = 81 /* PrivateIdentifier */; default: @@ -10667,7 +10698,7 @@ ${lanes.join("\n")} continue; } const size = charSize(ch); - error(Diagnostics.Invalid_character, pos, size); + error2(Diagnostics.Invalid_character, pos, size); pos += size; return token = 0 /* Unknown */; } @@ -10733,13 +10764,13 @@ ${lanes.join("\n")} while (true) { if (p >= end) { tokenFlags |= 4 /* Unterminated */; - error(Diagnostics.Unterminated_regular_expression_literal); + error2(Diagnostics.Unterminated_regular_expression_literal); break; } const ch = text.charCodeAt(p); if (isLineBreak(ch)) { tokenFlags |= 4 /* Unterminated */; - error(Diagnostics.Unterminated_regular_expression_literal); + error2(Diagnostics.Unterminated_regular_expression_literal); break; } if (inEscape) { @@ -10851,16 +10882,16 @@ ${lanes.join("\n")} } if (char === 60 /* lessThan */) { if (isConflictMarkerTrivia(text, pos)) { - pos = scanConflictMarkerTrivia(text, pos, error); + pos = scanConflictMarkerTrivia(text, pos, error2); return token = 7 /* ConflictMarkerTrivia */; } break; } if (char === 62 /* greaterThan */) { - error(Diagnostics.Unexpected_token_Did_you_mean_or_gt, pos, 1); + error2(Diagnostics.Unexpected_token_Did_you_mean_or_gt, pos, 1); } if (char === 125 /* closeBrace */) { - error(Diagnostics.Unexpected_token_Did_you_mean_or_rbrace, pos, 1); + error2(Diagnostics.Unexpected_token_Did_you_mean_or_rbrace, pos, 1); } if (isLineBreak(char) && firstNonWhitespace === 0) { firstNonWhitespace = -1; @@ -11130,7 +11161,7 @@ ${lanes.join("\n")} as: 130 /* AsKeyword */, asserts: 131 /* AssertsKeyword */, assert: 132 /* AssertKeyword */, - bigint: 162 /* BigIntKeyword */, + bigint: 163 /* BigIntKeyword */, boolean: 136 /* BooleanKeyword */, break: 83 /* BreakKeyword */, case: 84 /* CaseKeyword */, @@ -11151,7 +11182,7 @@ ${lanes.join("\n")} false: 97 /* FalseKeyword */, finally: 98 /* FinallyKeyword */, for: 99 /* ForKeyword */, - from: 160 /* FromKeyword */, + from: 161 /* FromKeyword */, function: 100 /* FunctionKeyword */, get: 139 /* GetKeyword */, if: 101 /* IfKeyword */, @@ -11176,11 +11207,11 @@ ${lanes.join("\n")} private: 123 /* PrivateKeyword */, protected: 124 /* ProtectedKeyword */, public: 125 /* PublicKeyword */, - override: 163 /* OverrideKeyword */, + override: 164 /* OverrideKeyword */, out: 147 /* OutKeyword */, readonly: 148 /* ReadonlyKeyword */, require: 149 /* RequireKeyword */, - global: 161 /* GlobalKeyword */, + global: 162 /* GlobalKeyword */, return: 107 /* ReturnKeyword */, satisfies: 152 /* SatisfiesKeyword */, set: 153 /* SetKeyword */, @@ -11198,6 +11229,7 @@ ${lanes.join("\n")} undefined: 157 /* UndefinedKeyword */, unique: 158 /* UniqueKeyword */, unknown: 159 /* UnknownKeyword */, + using: 160 /* UsingKeyword */, var: 115 /* VarKeyword */, void: 116 /* VoidKeyword */, while: 117 /* WhileKeyword */, @@ -11205,7 +11237,7 @@ ${lanes.join("\n")} yield: 127 /* YieldKeyword */, async: 134 /* AsyncKeyword */, await: 135 /* AwaitKeyword */, - of: 164 /* OfKeyword */ + of: 165 /* OfKeyword */ }; textToKeyword = new Map(Object.entries(textToKeywordObj)); textToToken = new Map(Object.entries({ @@ -11427,16 +11459,16 @@ ${lanes.join("\n")} ); } function getTypeParameterOwner(d) { - if (d && d.kind === 167 /* TypeParameter */) { + if (d && d.kind === 168 /* TypeParameter */) { for (let current = d; current; current = current.parent) { - if (isFunctionLike(current) || isClassLike(current) || current.kind === 263 /* InterfaceDeclaration */) { + if (isFunctionLike(current) || isClassLike(current) || current.kind === 264 /* InterfaceDeclaration */) { return current; } } } } function isParameterPropertyDeclaration(node, parent2) { - return isParameter(node) && hasSyntacticModifier(node, 16476 /* ParameterPropertyModifier */) && parent2.kind === 175 /* Constructor */; + return isParameter(node) && hasSyntacticModifier(node, 16476 /* ParameterPropertyModifier */) && parent2.kind === 176 /* Constructor */; } function isEmptyBindingPattern(node) { if (isBindingPattern(node)) { @@ -11462,14 +11494,14 @@ ${lanes.join("\n")} node = walkUpBindingElementsAndPatterns(node); } let flags = getFlags(node); - if (node.kind === 259 /* VariableDeclaration */) { + if (node.kind === 260 /* VariableDeclaration */) { node = node.parent; } - if (node && node.kind === 260 /* VariableDeclarationList */) { + if (node && node.kind === 261 /* VariableDeclarationList */) { flags |= getFlags(node); node = node.parent; } - if (node && node.kind === 242 /* VariableStatement */) { + if (node && node.kind === 243 /* VariableStatement */) { flags |= getFlags(node); } return flags; @@ -11481,11 +11513,14 @@ ${lanes.join("\n")} return getCombinedFlags(node, getEffectiveModifierFlagsAlwaysIncludeJSDoc); } function getCombinedNodeFlags(node) { - return getCombinedFlags(node, (n) => n.flags); + return getCombinedFlags(node, getNodeFlags); + } + function getNodeFlags(node) { + return node.flags; } function validateLocaleAndSetLanguage(locale, sys2, errors) { const lowerCaseLocale = locale.toLowerCase(); - const matchResult = /^([a-z]+)([_\-]([a-z]+))?$/.exec(lowerCaseLocale); + const matchResult = /^([a-z]+)([_-]([a-z]+))?$/.exec(lowerCaseLocale); if (!matchResult) { if (errors) { errors.push(createCompilerDiagnostic(Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1, "en", "ja-jp")); @@ -11558,7 +11593,7 @@ ${lanes.join("\n")} return void 0; } function isParseTreeNode(node) { - return (node.flags & 8 /* Synthesized */) === 0; + return (node.flags & 16 /* Synthesized */) === 0; } function getParseTreeNode(node, nodeTest) { if (node === void 0 || isParseTreeNode(node)) { @@ -11601,30 +11636,30 @@ ${lanes.join("\n")} return getDeclarationIdentifier(hostNode); } switch (hostNode.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: if (hostNode.declarationList && hostNode.declarationList.declarations[0]) { return getDeclarationIdentifier(hostNode.declarationList.declarations[0]); } break; - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: let expr = hostNode.expression; - if (expr.kind === 225 /* BinaryExpression */ && expr.operatorToken.kind === 64 /* EqualsToken */) { + if (expr.kind === 226 /* BinaryExpression */ && expr.operatorToken.kind === 64 /* EqualsToken */) { expr = expr.left; } switch (expr.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return expr.name; - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: const arg = expr.argumentExpression; if (isIdentifier(arg)) { return arg; } } break; - case 216 /* ParenthesizedExpression */: { + case 217 /* ParenthesizedExpression */: { return getDeclarationIdentifier(hostNode.expression); } - case 255 /* LabeledStatement */: { + case 256 /* LabeledStatement */: { if (isDeclaration(hostNode.statement) || isExpression(hostNode.statement)) { return getDeclarationIdentifier(hostNode.statement); } @@ -11655,16 +11690,16 @@ ${lanes.join("\n")} switch (declaration.kind) { case 80 /* Identifier */: return declaration; - case 354 /* JSDocPropertyTag */: - case 347 /* JSDocParameterTag */: { + case 355 /* JSDocPropertyTag */: + case 348 /* JSDocParameterTag */: { const { name } = declaration; - if (name.kind === 165 /* QualifiedName */) { + if (name.kind === 166 /* QualifiedName */) { return name.right; } break; } - case 212 /* CallExpression */: - case 225 /* BinaryExpression */: { + case 213 /* CallExpression */: + case 226 /* BinaryExpression */: { const expr2 = declaration; switch (getAssignmentDeclarationKind(expr2)) { case 1 /* ExportsProperty */: @@ -11680,15 +11715,15 @@ ${lanes.join("\n")} return void 0; } } - case 352 /* JSDocTypedefTag */: + case 353 /* JSDocTypedefTag */: return getNameOfJSDocTypedef(declaration); - case 346 /* JSDocEnumTag */: + case 347 /* JSDocEnumTag */: return nameForNamelessJSDocTypedef(declaration); - case 276 /* ExportAssignment */: { + case 277 /* ExportAssignment */: { const { expression } = declaration; return isIdentifier(expression) ? expression : void 0; } - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: const expr = declaration; if (isBindableStaticElementAccessExpression(expr)) { return expr.argumentExpression; @@ -11935,10 +11970,10 @@ ${lanes.join("\n")} return getJSDocTags(node).filter((doc) => doc.kind === kind); } function getTextOfJSDocComment(comment) { - return typeof comment === "string" ? comment : comment == null ? void 0 : comment.map((c) => c.kind === 327 /* JSDocText */ ? c.text : formatJSDocLink(c)).join(""); + return typeof comment === "string" ? comment : comment == null ? void 0 : comment.map((c) => c.kind === 328 /* JSDocText */ ? c.text : formatJSDocLink(c)).join(""); } function formatJSDocLink(link) { - const kind = link.kind === 330 /* JSDocLink */ ? "link" : link.kind === 331 /* JSDocLinkCode */ ? "linkcode" : "linkplain"; + const kind = link.kind === 331 /* JSDocLink */ ? "link" : link.kind === 332 /* JSDocLinkCode */ ? "linkcode" : "linkplain"; const name = link.name ? entityNameToString(link.name) : ""; const space = link.name && link.text.startsWith("://") ? "" : " "; return `{@${kind} ${name}${space}${link.text}}`; @@ -11954,7 +11989,7 @@ ${lanes.join("\n")} return emptyArray; } if (isJSDocTypeAlias(node)) { - Debug.assert(node.parent.kind === 326 /* JSDoc */); + Debug.assert(node.parent.kind === 327 /* JSDoc */); return flatMap(node.parent.tags, (tag) => isJSDocTemplateTag(tag) ? tag.typeParameters : void 0); } if (node.typeParameters) { @@ -11982,20 +12017,20 @@ ${lanes.join("\n")} return node.kind === 80 /* Identifier */ || node.kind === 81 /* PrivateIdentifier */; } function isGetOrSetAccessorDeclaration(node) { - return node.kind === 177 /* SetAccessor */ || node.kind === 176 /* GetAccessor */; + return node.kind === 178 /* SetAccessor */ || node.kind === 177 /* GetAccessor */; } function isPropertyAccessChain(node) { - return isPropertyAccessExpression(node) && !!(node.flags & 32 /* OptionalChain */); + return isPropertyAccessExpression(node) && !!(node.flags & 64 /* OptionalChain */); } function isElementAccessChain(node) { - return isElementAccessExpression(node) && !!(node.flags & 32 /* OptionalChain */); + return isElementAccessExpression(node) && !!(node.flags & 64 /* OptionalChain */); } function isCallChain(node) { - return isCallExpression(node) && !!(node.flags & 32 /* OptionalChain */); + return isCallExpression(node) && !!(node.flags & 64 /* OptionalChain */); } function isOptionalChain(node) { const kind = node.kind; - return !!(node.flags & 32 /* OptionalChain */) && (kind === 210 /* PropertyAccessExpression */ || kind === 211 /* ElementAccessExpression */ || kind === 212 /* CallExpression */ || kind === 234 /* NonNullExpression */); + return !!(node.flags & 64 /* OptionalChain */) && (kind === 211 /* PropertyAccessExpression */ || kind === 212 /* ElementAccessExpression */ || kind === 213 /* CallExpression */ || kind === 235 /* NonNullExpression */); } function isOptionalChainRoot(node) { return isOptionalChain(node) && !isNonNullExpression(node) && !!node.questionDotToken; @@ -12007,7 +12042,7 @@ ${lanes.join("\n")} return !isOptionalChain(node.parent) || isOptionalChainRoot(node.parent) || node !== node.parent.expression; } function isNullishCoalesce(node) { - return node.kind === 225 /* BinaryExpression */ && node.operatorToken.kind === 61 /* QuestionQuestionToken */; + return node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 61 /* QuestionQuestionToken */; } function isConstTypeReference(node) { return isTypeReferenceNode(node) && isIdentifier(node.typeName) && node.typeName.escapedText === "const" && !node.typeArguments; @@ -12016,37 +12051,37 @@ ${lanes.join("\n")} return skipOuterExpressions(node, 8 /* PartiallyEmittedExpressions */); } function isNonNullChain(node) { - return isNonNullExpression(node) && !!(node.flags & 32 /* OptionalChain */); + return isNonNullExpression(node) && !!(node.flags & 64 /* OptionalChain */); } function isBreakOrContinueStatement(node) { - return node.kind === 251 /* BreakStatement */ || node.kind === 250 /* ContinueStatement */; + return node.kind === 252 /* BreakStatement */ || node.kind === 251 /* ContinueStatement */; } function isNamedExportBindings(node) { - return node.kind === 279 /* NamespaceExport */ || node.kind === 278 /* NamedExports */; + return node.kind === 280 /* NamespaceExport */ || node.kind === 279 /* NamedExports */; } function isUnparsedTextLike(node) { switch (node.kind) { - case 308 /* UnparsedText */: - case 309 /* UnparsedInternalText */: + case 309 /* UnparsedText */: + case 310 /* UnparsedInternalText */: return true; default: return false; } } function isUnparsedNode(node) { - return isUnparsedTextLike(node) || node.kind === 306 /* UnparsedPrologue */ || node.kind === 310 /* UnparsedSyntheticReference */; + return isUnparsedTextLike(node) || node.kind === 307 /* UnparsedPrologue */ || node.kind === 311 /* UnparsedSyntheticReference */; } function isJSDocPropertyLikeTag(node) { - return node.kind === 354 /* JSDocPropertyTag */ || node.kind === 347 /* JSDocParameterTag */; + return node.kind === 355 /* JSDocPropertyTag */ || node.kind === 348 /* JSDocParameterTag */; } function isNode(node) { return isNodeKind(node.kind); } function isNodeKind(kind) { - return kind >= 165 /* FirstNode */; + return kind >= 166 /* FirstNode */; } function isTokenKind(kind) { - return kind >= 0 /* FirstToken */ && kind <= 164 /* LastToken */; + return kind >= 0 /* FirstToken */ && kind <= 165 /* LastToken */; } function isToken(n) { return isTokenKind(n.kind); @@ -12062,11 +12097,11 @@ ${lanes.join("\n")} } function isLiteralExpressionOfObject(node) { switch (node.kind) { - case 209 /* ObjectLiteralExpression */: - case 208 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: + case 209 /* ArrayLiteralExpression */: case 14 /* RegularExpressionLiteral */: - case 217 /* FunctionExpression */: - case 230 /* ClassExpression */: + case 218 /* FunctionExpression */: + case 231 /* ClassExpression */: return true; } return false; @@ -12086,23 +12121,23 @@ ${lanes.join("\n")} } function isTypeOnlyImportDeclaration(node) { switch (node.kind) { - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: return node.isTypeOnly || node.parent.parent.isTypeOnly; - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: return node.parent.isTypeOnly; - case 272 /* ImportClause */: - case 270 /* ImportEqualsDeclaration */: + case 273 /* ImportClause */: + case 271 /* ImportEqualsDeclaration */: return node.isTypeOnly; } return false; } function isTypeOnlyExportDeclaration(node) { switch (node.kind) { - case 280 /* ExportSpecifier */: + case 281 /* ExportSpecifier */: return node.isTypeOnly || node.parent.parent.isTypeOnly; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return node.isTypeOnly && !!node.moduleSpecifier && !node.exportClause; - case 279 /* NamespaceExport */: + case 280 /* NamespaceExport */: return node.parent.isTypeOnly; } return false; @@ -12124,6 +12159,10 @@ ${lanes.join("\n")} var _a; return isPrivateIdentifier(node) && ((_a = node.emitNode) == null ? void 0 : _a.autoGenerate) !== void 0; } + function isFileLevelReservedGeneratedIdentifier(node) { + const flags = node.emitNode.autoGenerate.flags; + return !!(flags & 32 /* FileLevel */) && !!(flags & 16 /* Optimistic */) && !!(flags & 8 /* ReservedInNestedScopes */); + } function isPrivateIdentifierClassElementDeclaration(node) { return (isPropertyDeclaration(node) || isMethodOrAccessor(node)) && isPrivateIdentifier(node.name); } @@ -12146,7 +12185,7 @@ ${lanes.join("\n")} case 148 /* ReadonlyKeyword */: case 126 /* StaticKeyword */: case 147 /* OutKeyword */: - case 163 /* OverrideKeyword */: + case 164 /* OverrideKeyword */: return true; } return false; @@ -12155,22 +12194,22 @@ ${lanes.join("\n")} return !!(modifierToFlag(kind) & 16476 /* ParameterPropertyModifier */); } function isClassMemberModifier(idToken) { - return isParameterPropertyModifier(idToken) || idToken === 126 /* StaticKeyword */ || idToken === 163 /* OverrideKeyword */ || idToken === 129 /* AccessorKeyword */; + return isParameterPropertyModifier(idToken) || idToken === 126 /* StaticKeyword */ || idToken === 164 /* OverrideKeyword */ || idToken === 129 /* AccessorKeyword */; } function isModifier(node) { return isModifierKind(node.kind); } function isEntityName(node) { const kind = node.kind; - return kind === 165 /* QualifiedName */ || kind === 80 /* Identifier */; + return kind === 166 /* QualifiedName */ || kind === 80 /* Identifier */; } function isPropertyName(node) { const kind = node.kind; - return kind === 80 /* Identifier */ || kind === 81 /* PrivateIdentifier */ || kind === 11 /* StringLiteral */ || kind === 9 /* NumericLiteral */ || kind === 166 /* ComputedPropertyName */; + return kind === 80 /* Identifier */ || kind === 81 /* PrivateIdentifier */ || kind === 11 /* StringLiteral */ || kind === 9 /* NumericLiteral */ || kind === 167 /* ComputedPropertyName */; } function isBindingName(node) { const kind = node.kind; - return kind === 80 /* Identifier */ || kind === 205 /* ObjectBindingPattern */ || kind === 206 /* ArrayBindingPattern */; + return kind === 80 /* Identifier */ || kind === 206 /* ObjectBindingPattern */ || kind === 207 /* ArrayBindingPattern */; } function isFunctionLike(node) { return !!node && isFunctionLikeKind(node.kind); @@ -12186,13 +12225,13 @@ ${lanes.join("\n")} } function isFunctionLikeDeclarationKind(kind) { switch (kind) { - case 261 /* FunctionDeclaration */: - case 173 /* MethodDeclaration */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return true; default: return false; @@ -12200,14 +12239,14 @@ ${lanes.join("\n")} } function isFunctionLikeKind(kind) { switch (kind) { - case 172 /* MethodSignature */: - case 178 /* CallSignature */: - case 329 /* JSDocSignature */: - case 179 /* ConstructSignature */: - case 180 /* IndexSignature */: - case 183 /* FunctionType */: - case 323 /* JSDocFunctionType */: - case 184 /* ConstructorType */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 330 /* JSDocSignature */: + case 180 /* ConstructSignature */: + case 181 /* IndexSignature */: + case 184 /* FunctionType */: + case 324 /* JSDocFunctionType */: + case 185 /* ConstructorType */: return true; default: return isFunctionLikeDeclarationKind(kind); @@ -12218,22 +12257,22 @@ ${lanes.join("\n")} } function isClassElement(node) { const kind = node.kind; - return kind === 175 /* Constructor */ || kind === 171 /* PropertyDeclaration */ || kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */ || kind === 180 /* IndexSignature */ || kind === 174 /* ClassStaticBlockDeclaration */ || kind === 239 /* SemicolonClassElement */; + return kind === 176 /* Constructor */ || kind === 172 /* PropertyDeclaration */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 181 /* IndexSignature */ || kind === 175 /* ClassStaticBlockDeclaration */ || kind === 240 /* SemicolonClassElement */; } function isClassLike(node) { - return node && (node.kind === 262 /* ClassDeclaration */ || node.kind === 230 /* ClassExpression */); + return node && (node.kind === 263 /* ClassDeclaration */ || node.kind === 231 /* ClassExpression */); } function isAccessor(node) { - return node && (node.kind === 176 /* GetAccessor */ || node.kind === 177 /* SetAccessor */); + return node && (node.kind === 177 /* GetAccessor */ || node.kind === 178 /* SetAccessor */); } function isAutoAccessorPropertyDeclaration(node) { return isPropertyDeclaration(node) && hasAccessorModifier(node); } function isMethodOrAccessor(node) { switch (node.kind) { - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return true; default: return false; @@ -12241,10 +12280,10 @@ ${lanes.join("\n")} } function isNamedClassElement(node) { switch (node.kind) { - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 171 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 172 /* PropertyDeclaration */: return true; default: return false; @@ -12255,22 +12294,22 @@ ${lanes.join("\n")} } function isTypeElement(node) { const kind = node.kind; - return kind === 179 /* ConstructSignature */ || kind === 178 /* CallSignature */ || kind === 170 /* PropertySignature */ || kind === 172 /* MethodSignature */ || kind === 180 /* IndexSignature */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */; + return kind === 180 /* ConstructSignature */ || kind === 179 /* CallSignature */ || kind === 171 /* PropertySignature */ || kind === 173 /* MethodSignature */ || kind === 181 /* IndexSignature */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; } function isClassOrTypeElement(node) { return isTypeElement(node) || isClassElement(node); } function isObjectLiteralElementLike(node) { const kind = node.kind; - return kind === 302 /* PropertyAssignment */ || kind === 303 /* ShorthandPropertyAssignment */ || kind === 304 /* SpreadAssignment */ || kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */; + return kind === 303 /* PropertyAssignment */ || kind === 304 /* ShorthandPropertyAssignment */ || kind === 305 /* SpreadAssignment */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; } function isTypeNode(node) { return isTypeNodeKind(node.kind); } function isFunctionOrConstructorTypeNode(node) { switch (node.kind) { - case 183 /* FunctionType */: - case 184 /* ConstructorType */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: return true; } return false; @@ -12278,23 +12317,23 @@ ${lanes.join("\n")} function isBindingPattern(node) { if (node) { const kind = node.kind; - return kind === 206 /* ArrayBindingPattern */ || kind === 205 /* ObjectBindingPattern */; + return kind === 207 /* ArrayBindingPattern */ || kind === 206 /* ObjectBindingPattern */; } return false; } function isAssignmentPattern(node) { const kind = node.kind; - return kind === 208 /* ArrayLiteralExpression */ || kind === 209 /* ObjectLiteralExpression */; + return kind === 209 /* ArrayLiteralExpression */ || kind === 210 /* ObjectLiteralExpression */; } function isArrayBindingElement(node) { const kind = node.kind; - return kind === 207 /* BindingElement */ || kind === 231 /* OmittedExpression */; + return kind === 208 /* BindingElement */ || kind === 232 /* OmittedExpression */; } function isDeclarationBindingElement(bindingElement) { switch (bindingElement.kind) { - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 207 /* BindingElement */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 208 /* BindingElement */: return true; } return false; @@ -12307,40 +12346,40 @@ ${lanes.join("\n")} } function isObjectBindingOrAssignmentPattern(node) { switch (node.kind) { - case 205 /* ObjectBindingPattern */: - case 209 /* ObjectLiteralExpression */: + case 206 /* ObjectBindingPattern */: + case 210 /* ObjectLiteralExpression */: return true; } return false; } function isObjectBindingOrAssignmentElement(node) { switch (node.kind) { - case 207 /* BindingElement */: - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: - case 304 /* SpreadAssignment */: + case 208 /* BindingElement */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 305 /* SpreadAssignment */: return true; } return false; } function isArrayBindingOrAssignmentPattern(node) { switch (node.kind) { - case 206 /* ArrayBindingPattern */: - case 208 /* ArrayLiteralExpression */: + case 207 /* ArrayBindingPattern */: + case 209 /* ArrayLiteralExpression */: return true; } return false; } function isArrayBindingOrAssignmentElement(node) { switch (node.kind) { - case 207 /* BindingElement */: - case 231 /* OmittedExpression */: - case 229 /* SpreadElement */: - case 208 /* ArrayLiteralExpression */: - case 209 /* ObjectLiteralExpression */: + case 208 /* BindingElement */: + case 232 /* OmittedExpression */: + case 230 /* SpreadElement */: + case 209 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: case 80 /* Identifier */: - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return true; } return isAssignmentExpression( @@ -12351,50 +12390,50 @@ ${lanes.join("\n")} } function isPropertyAccessOrQualifiedNameOrImportTypeNode(node) { const kind = node.kind; - return kind === 210 /* PropertyAccessExpression */ || kind === 165 /* QualifiedName */ || kind === 204 /* ImportType */; + return kind === 211 /* PropertyAccessExpression */ || kind === 166 /* QualifiedName */ || kind === 205 /* ImportType */; } function isPropertyAccessOrQualifiedName(node) { const kind = node.kind; - return kind === 210 /* PropertyAccessExpression */ || kind === 165 /* QualifiedName */; + return kind === 211 /* PropertyAccessExpression */ || kind === 166 /* QualifiedName */; } function isCallLikeExpression(node) { switch (node.kind) { - case 285 /* JsxOpeningElement */: - case 284 /* JsxSelfClosingElement */: - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 214 /* TaggedTemplateExpression */: - case 169 /* Decorator */: + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 215 /* TaggedTemplateExpression */: + case 170 /* Decorator */: return true; default: return false; } } function isCallOrNewExpression(node) { - return node.kind === 212 /* CallExpression */ || node.kind === 213 /* NewExpression */; + return node.kind === 213 /* CallExpression */ || node.kind === 214 /* NewExpression */; } function isTemplateLiteral(node) { const kind = node.kind; - return kind === 227 /* TemplateExpression */ || kind === 15 /* NoSubstitutionTemplateLiteral */; + return kind === 228 /* TemplateExpression */ || kind === 15 /* NoSubstitutionTemplateLiteral */; } function isLeftHandSideExpression(node) { return isLeftHandSideExpressionKind(skipPartiallyEmittedExpressions(node).kind); } function isLeftHandSideExpressionKind(kind) { switch (kind) { - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: - case 213 /* NewExpression */: - case 212 /* CallExpression */: - case 283 /* JsxElement */: - case 284 /* JsxSelfClosingElement */: - case 287 /* JsxFragment */: - case 214 /* TaggedTemplateExpression */: - case 208 /* ArrayLiteralExpression */: - case 216 /* ParenthesizedExpression */: - case 209 /* ObjectLiteralExpression */: - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + case 214 /* NewExpression */: + case 213 /* CallExpression */: + case 284 /* JsxElement */: + case 285 /* JsxSelfClosingElement */: + case 288 /* JsxFragment */: + case 215 /* TaggedTemplateExpression */: + case 209 /* ArrayLiteralExpression */: + case 217 /* ParenthesizedExpression */: + case 210 /* ObjectLiteralExpression */: + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: case 80 /* Identifier */: case 81 /* PrivateIdentifier */: case 14 /* RegularExpressionLiteral */: @@ -12402,17 +12441,17 @@ ${lanes.join("\n")} case 10 /* BigIntLiteral */: case 11 /* StringLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: - case 227 /* TemplateExpression */: + case 228 /* TemplateExpression */: case 97 /* FalseKeyword */: case 106 /* NullKeyword */: case 110 /* ThisKeyword */: case 112 /* TrueKeyword */: case 108 /* SuperKeyword */: - case 234 /* NonNullExpression */: - case 232 /* ExpressionWithTypeArguments */: - case 235 /* MetaProperty */: + case 235 /* NonNullExpression */: + case 233 /* ExpressionWithTypeArguments */: + case 236 /* MetaProperty */: case 102 /* ImportKeyword */: - case 281 /* MissingDeclaration */: + case 282 /* MissingDeclaration */: return true; default: return false; @@ -12423,13 +12462,13 @@ ${lanes.join("\n")} } function isUnaryExpressionKind(kind) { switch (kind) { - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: - case 219 /* DeleteExpression */: - case 220 /* TypeOfExpression */: - case 221 /* VoidExpression */: - case 222 /* AwaitExpression */: - case 215 /* TypeAssertionExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: + case 220 /* DeleteExpression */: + case 221 /* TypeOfExpression */: + case 222 /* VoidExpression */: + case 223 /* AwaitExpression */: + case 216 /* TypeAssertionExpression */: return true; default: return isLeftHandSideExpressionKind(kind); @@ -12437,9 +12476,9 @@ ${lanes.join("\n")} } function isUnaryExpressionWithWrite(expr) { switch (expr.kind) { - case 224 /* PostfixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return true; - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: return expr.operator === 46 /* PlusPlusToken */ || expr.operator === 47 /* MinusMinusToken */; default: return false; @@ -12450,7 +12489,7 @@ ${lanes.join("\n")} case 106 /* NullKeyword */: case 112 /* TrueKeyword */: case 97 /* FalseKeyword */: - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: return true; default: return isLiteralExpression(node); @@ -12461,16 +12500,16 @@ ${lanes.join("\n")} } function isExpressionKind(kind) { switch (kind) { - case 226 /* ConditionalExpression */: - case 228 /* YieldExpression */: - case 218 /* ArrowFunction */: - case 225 /* BinaryExpression */: - case 229 /* SpreadElement */: - case 233 /* AsExpression */: - case 231 /* OmittedExpression */: - case 360 /* CommaListExpression */: - case 359 /* PartiallyEmittedExpression */: - case 237 /* SatisfiesExpression */: + case 227 /* ConditionalExpression */: + case 229 /* YieldExpression */: + case 219 /* ArrowFunction */: + case 226 /* BinaryExpression */: + case 230 /* SpreadElement */: + case 234 /* AsExpression */: + case 232 /* OmittedExpression */: + case 361 /* CommaListExpression */: + case 360 /* PartiallyEmittedExpression */: + case 238 /* SatisfiesExpression */: return true; default: return isUnaryExpressionKind(kind); @@ -12478,20 +12517,20 @@ ${lanes.join("\n")} } function isAssertionExpression(node) { const kind = node.kind; - return kind === 215 /* TypeAssertionExpression */ || kind === 233 /* AsExpression */; + return kind === 216 /* TypeAssertionExpression */ || kind === 234 /* AsExpression */; } function isNotEmittedOrPartiallyEmittedNode(node) { return isNotEmittedStatement(node) || isPartiallyEmittedExpression(node); } function isIterationStatement(node, lookInLabeledStatements) { switch (node.kind) { - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: return true; - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return lookInLabeledStatements && isIterationStatement(node.statement, lookInLabeledStatements); } return false; @@ -12509,7 +12548,7 @@ ${lanes.join("\n")} return isAnyImportOrReExport(result) || isExportAssignment(result) || hasSyntacticModifier(result, 1 /* Export */); } function isForInOrOfStatement(node) { - return node.kind === 248 /* ForInStatement */ || node.kind === 249 /* ForOfStatement */; + return node.kind === 249 /* ForInStatement */ || node.kind === 250 /* ForOfStatement */; } function isConciseBody(node) { return isBlock(node) || isExpression(node); @@ -12522,89 +12561,89 @@ ${lanes.join("\n")} } function isModuleBody(node) { const kind = node.kind; - return kind === 267 /* ModuleBlock */ || kind === 266 /* ModuleDeclaration */ || kind === 80 /* Identifier */; + return kind === 268 /* ModuleBlock */ || kind === 267 /* ModuleDeclaration */ || kind === 80 /* Identifier */; } function isNamespaceBody(node) { const kind = node.kind; - return kind === 267 /* ModuleBlock */ || kind === 266 /* ModuleDeclaration */; + return kind === 268 /* ModuleBlock */ || kind === 267 /* ModuleDeclaration */; } function isJSDocNamespaceBody(node) { const kind = node.kind; - return kind === 80 /* Identifier */ || kind === 266 /* ModuleDeclaration */; + return kind === 80 /* Identifier */ || kind === 267 /* ModuleDeclaration */; } function isNamedImportBindings(node) { const kind = node.kind; - return kind === 274 /* NamedImports */ || kind === 273 /* NamespaceImport */; + return kind === 275 /* NamedImports */ || kind === 274 /* NamespaceImport */; } function isModuleOrEnumDeclaration(node) { - return node.kind === 266 /* ModuleDeclaration */ || node.kind === 265 /* EnumDeclaration */; + return node.kind === 267 /* ModuleDeclaration */ || node.kind === 266 /* EnumDeclaration */; } function canHaveSymbol(node) { switch (node.kind) { - case 218 /* ArrowFunction */: - case 225 /* BinaryExpression */: - case 207 /* BindingElement */: - case 212 /* CallExpression */: - case 178 /* CallSignature */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 174 /* ClassStaticBlockDeclaration */: - case 175 /* Constructor */: - case 184 /* ConstructorType */: - case 179 /* ConstructSignature */: - case 211 /* ElementAccessExpression */: - case 265 /* EnumDeclaration */: - case 305 /* EnumMember */: - case 276 /* ExportAssignment */: - case 277 /* ExportDeclaration */: - case 280 /* ExportSpecifier */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 183 /* FunctionType */: - case 176 /* GetAccessor */: + case 219 /* ArrowFunction */: + case 226 /* BinaryExpression */: + case 208 /* BindingElement */: + case 213 /* CallExpression */: + case 179 /* CallSignature */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 175 /* ClassStaticBlockDeclaration */: + case 176 /* Constructor */: + case 185 /* ConstructorType */: + case 180 /* ConstructSignature */: + case 212 /* ElementAccessExpression */: + case 266 /* EnumDeclaration */: + case 306 /* EnumMember */: + case 277 /* ExportAssignment */: + case 278 /* ExportDeclaration */: + case 281 /* ExportSpecifier */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 184 /* FunctionType */: + case 177 /* GetAccessor */: case 80 /* Identifier */: - case 272 /* ImportClause */: - case 270 /* ImportEqualsDeclaration */: - case 275 /* ImportSpecifier */: - case 180 /* IndexSignature */: - case 263 /* InterfaceDeclaration */: - case 344 /* JSDocCallbackTag */: - case 346 /* JSDocEnumTag */: - case 323 /* JSDocFunctionType */: - case 347 /* JSDocParameterTag */: - case 354 /* JSDocPropertyTag */: - case 329 /* JSDocSignature */: - case 352 /* JSDocTypedefTag */: - case 328 /* JSDocTypeLiteral */: - case 290 /* JsxAttribute */: - case 291 /* JsxAttributes */: - case 292 /* JsxSpreadAttribute */: - case 199 /* MappedType */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 266 /* ModuleDeclaration */: - case 201 /* NamedTupleMember */: - case 279 /* NamespaceExport */: - case 269 /* NamespaceExportDeclaration */: - case 273 /* NamespaceImport */: - case 213 /* NewExpression */: + case 273 /* ImportClause */: + case 271 /* ImportEqualsDeclaration */: + case 276 /* ImportSpecifier */: + case 181 /* IndexSignature */: + case 264 /* InterfaceDeclaration */: + case 345 /* JSDocCallbackTag */: + case 347 /* JSDocEnumTag */: + case 324 /* JSDocFunctionType */: + case 348 /* JSDocParameterTag */: + case 355 /* JSDocPropertyTag */: + case 330 /* JSDocSignature */: + case 353 /* JSDocTypedefTag */: + case 329 /* JSDocTypeLiteral */: + case 291 /* JsxAttribute */: + case 292 /* JsxAttributes */: + case 293 /* JsxSpreadAttribute */: + case 200 /* MappedType */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 267 /* ModuleDeclaration */: + case 202 /* NamedTupleMember */: + case 280 /* NamespaceExport */: + case 270 /* NamespaceExportDeclaration */: + case 274 /* NamespaceImport */: + case 214 /* NewExpression */: case 15 /* NoSubstitutionTemplateLiteral */: case 9 /* NumericLiteral */: - case 209 /* ObjectLiteralExpression */: - case 168 /* Parameter */: - case 210 /* PropertyAccessExpression */: - case 302 /* PropertyAssignment */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 177 /* SetAccessor */: - case 303 /* ShorthandPropertyAssignment */: - case 311 /* SourceFile */: - case 304 /* SpreadAssignment */: + case 210 /* ObjectLiteralExpression */: + case 169 /* Parameter */: + case 211 /* PropertyAccessExpression */: + case 303 /* PropertyAssignment */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 178 /* SetAccessor */: + case 304 /* ShorthandPropertyAssignment */: + case 312 /* SourceFile */: + case 305 /* SpreadAssignment */: case 11 /* StringLiteral */: - case 264 /* TypeAliasDeclaration */: - case 186 /* TypeLiteral */: - case 167 /* TypeParameter */: - case 259 /* VariableDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 187 /* TypeLiteral */: + case 168 /* TypeParameter */: + case 260 /* VariableDeclaration */: return true; default: return false; @@ -12612,53 +12651,53 @@ ${lanes.join("\n")} } function canHaveLocals(node) { switch (node.kind) { - case 218 /* ArrowFunction */: - case 240 /* Block */: - case 178 /* CallSignature */: - case 268 /* CaseBlock */: - case 298 /* CatchClause */: - case 174 /* ClassStaticBlockDeclaration */: - case 193 /* ConditionalType */: - case 175 /* Constructor */: - case 184 /* ConstructorType */: - case 179 /* ConstructSignature */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 183 /* FunctionType */: - case 176 /* GetAccessor */: - case 180 /* IndexSignature */: - case 344 /* JSDocCallbackTag */: - case 346 /* JSDocEnumTag */: - case 323 /* JSDocFunctionType */: - case 329 /* JSDocSignature */: - case 352 /* JSDocTypedefTag */: - case 199 /* MappedType */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 266 /* ModuleDeclaration */: - case 177 /* SetAccessor */: - case 311 /* SourceFile */: - case 264 /* TypeAliasDeclaration */: + case 219 /* ArrowFunction */: + case 241 /* Block */: + case 179 /* CallSignature */: + case 269 /* CaseBlock */: + case 299 /* CatchClause */: + case 175 /* ClassStaticBlockDeclaration */: + case 194 /* ConditionalType */: + case 176 /* Constructor */: + case 185 /* ConstructorType */: + case 180 /* ConstructSignature */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 184 /* FunctionType */: + case 177 /* GetAccessor */: + case 181 /* IndexSignature */: + case 345 /* JSDocCallbackTag */: + case 347 /* JSDocEnumTag */: + case 324 /* JSDocFunctionType */: + case 330 /* JSDocSignature */: + case 353 /* JSDocTypedefTag */: + case 200 /* MappedType */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 267 /* ModuleDeclaration */: + case 178 /* SetAccessor */: + case 312 /* SourceFile */: + case 265 /* TypeAliasDeclaration */: return true; default: return false; } } function isDeclarationKind(kind) { - return kind === 218 /* ArrowFunction */ || kind === 207 /* BindingElement */ || kind === 262 /* ClassDeclaration */ || kind === 230 /* ClassExpression */ || kind === 174 /* ClassStaticBlockDeclaration */ || kind === 175 /* Constructor */ || kind === 265 /* EnumDeclaration */ || kind === 305 /* EnumMember */ || kind === 280 /* ExportSpecifier */ || kind === 261 /* FunctionDeclaration */ || kind === 217 /* FunctionExpression */ || kind === 176 /* GetAccessor */ || kind === 272 /* ImportClause */ || kind === 270 /* ImportEqualsDeclaration */ || kind === 275 /* ImportSpecifier */ || kind === 263 /* InterfaceDeclaration */ || kind === 290 /* JsxAttribute */ || kind === 173 /* MethodDeclaration */ || kind === 172 /* MethodSignature */ || kind === 266 /* ModuleDeclaration */ || kind === 269 /* NamespaceExportDeclaration */ || kind === 273 /* NamespaceImport */ || kind === 279 /* NamespaceExport */ || kind === 168 /* Parameter */ || kind === 302 /* PropertyAssignment */ || kind === 171 /* PropertyDeclaration */ || kind === 170 /* PropertySignature */ || kind === 177 /* SetAccessor */ || kind === 303 /* ShorthandPropertyAssignment */ || kind === 264 /* TypeAliasDeclaration */ || kind === 167 /* TypeParameter */ || kind === 259 /* VariableDeclaration */ || kind === 352 /* JSDocTypedefTag */ || kind === 344 /* JSDocCallbackTag */ || kind === 354 /* JSDocPropertyTag */; + return kind === 219 /* ArrowFunction */ || kind === 208 /* BindingElement */ || kind === 263 /* ClassDeclaration */ || kind === 231 /* ClassExpression */ || kind === 175 /* ClassStaticBlockDeclaration */ || kind === 176 /* Constructor */ || kind === 266 /* EnumDeclaration */ || kind === 306 /* EnumMember */ || kind === 281 /* ExportSpecifier */ || kind === 262 /* FunctionDeclaration */ || kind === 218 /* FunctionExpression */ || kind === 177 /* GetAccessor */ || kind === 273 /* ImportClause */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 276 /* ImportSpecifier */ || kind === 264 /* InterfaceDeclaration */ || kind === 291 /* JsxAttribute */ || kind === 174 /* MethodDeclaration */ || kind === 173 /* MethodSignature */ || kind === 267 /* ModuleDeclaration */ || kind === 270 /* NamespaceExportDeclaration */ || kind === 274 /* NamespaceImport */ || kind === 280 /* NamespaceExport */ || kind === 169 /* Parameter */ || kind === 303 /* PropertyAssignment */ || kind === 172 /* PropertyDeclaration */ || kind === 171 /* PropertySignature */ || kind === 178 /* SetAccessor */ || kind === 304 /* ShorthandPropertyAssignment */ || kind === 265 /* TypeAliasDeclaration */ || kind === 168 /* TypeParameter */ || kind === 260 /* VariableDeclaration */ || kind === 353 /* JSDocTypedefTag */ || kind === 345 /* JSDocCallbackTag */ || kind === 355 /* JSDocPropertyTag */; } function isDeclarationStatementKind(kind) { - return kind === 261 /* FunctionDeclaration */ || kind === 281 /* MissingDeclaration */ || kind === 262 /* ClassDeclaration */ || kind === 263 /* InterfaceDeclaration */ || kind === 264 /* TypeAliasDeclaration */ || kind === 265 /* EnumDeclaration */ || kind === 266 /* ModuleDeclaration */ || kind === 271 /* ImportDeclaration */ || kind === 270 /* ImportEqualsDeclaration */ || kind === 277 /* ExportDeclaration */ || kind === 276 /* ExportAssignment */ || kind === 269 /* NamespaceExportDeclaration */; + return kind === 262 /* FunctionDeclaration */ || kind === 282 /* MissingDeclaration */ || kind === 263 /* ClassDeclaration */ || kind === 264 /* InterfaceDeclaration */ || kind === 265 /* TypeAliasDeclaration */ || kind === 266 /* EnumDeclaration */ || kind === 267 /* ModuleDeclaration */ || kind === 272 /* ImportDeclaration */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 278 /* ExportDeclaration */ || kind === 277 /* ExportAssignment */ || kind === 270 /* NamespaceExportDeclaration */; } function isStatementKindButNotDeclarationKind(kind) { - return kind === 251 /* BreakStatement */ || kind === 250 /* ContinueStatement */ || kind === 258 /* DebuggerStatement */ || kind === 245 /* DoStatement */ || kind === 243 /* ExpressionStatement */ || kind === 241 /* EmptyStatement */ || kind === 248 /* ForInStatement */ || kind === 249 /* ForOfStatement */ || kind === 247 /* ForStatement */ || kind === 244 /* IfStatement */ || kind === 255 /* LabeledStatement */ || kind === 252 /* ReturnStatement */ || kind === 254 /* SwitchStatement */ || kind === 256 /* ThrowStatement */ || kind === 257 /* TryStatement */ || kind === 242 /* VariableStatement */ || kind === 246 /* WhileStatement */ || kind === 253 /* WithStatement */ || kind === 358 /* NotEmittedStatement */; + return kind === 252 /* BreakStatement */ || kind === 251 /* ContinueStatement */ || kind === 259 /* DebuggerStatement */ || kind === 246 /* DoStatement */ || kind === 244 /* ExpressionStatement */ || kind === 242 /* EmptyStatement */ || kind === 249 /* ForInStatement */ || kind === 250 /* ForOfStatement */ || kind === 248 /* ForStatement */ || kind === 245 /* IfStatement */ || kind === 256 /* LabeledStatement */ || kind === 253 /* ReturnStatement */ || kind === 255 /* SwitchStatement */ || kind === 257 /* ThrowStatement */ || kind === 258 /* TryStatement */ || kind === 243 /* VariableStatement */ || kind === 247 /* WhileStatement */ || kind === 254 /* WithStatement */ || kind === 359 /* NotEmittedStatement */; } function isDeclaration(node) { - if (node.kind === 167 /* TypeParameter */) { - return node.parent && node.parent.kind !== 351 /* JSDocTemplateTag */ || isInJSFile(node); + if (node.kind === 168 /* TypeParameter */) { + return node.parent && node.parent.kind !== 352 /* JSDocTemplateTag */ || isInJSFile(node); } return isDeclarationKind(node.kind); } @@ -12673,10 +12712,10 @@ ${lanes.join("\n")} return isStatementKindButNotDeclarationKind(kind) || isDeclarationStatementKind(kind) || isBlockStatement(node); } function isBlockStatement(node) { - if (node.kind !== 240 /* Block */) + if (node.kind !== 241 /* Block */) return false; if (node.parent !== void 0) { - if (node.parent.kind === 257 /* TryStatement */ || node.parent.kind === 298 /* CatchClause */) { + if (node.parent.kind === 258 /* TryStatement */ || node.parent.kind === 299 /* CatchClause */) { return false; } } @@ -12684,50 +12723,50 @@ ${lanes.join("\n")} } function isStatementOrBlock(node) { const kind = node.kind; - return isStatementKindButNotDeclarationKind(kind) || isDeclarationStatementKind(kind) || kind === 240 /* Block */; + return isStatementKindButNotDeclarationKind(kind) || isDeclarationStatementKind(kind) || kind === 241 /* Block */; } function isModuleReference(node) { const kind = node.kind; - return kind === 282 /* ExternalModuleReference */ || kind === 165 /* QualifiedName */ || kind === 80 /* Identifier */; + return kind === 283 /* ExternalModuleReference */ || kind === 166 /* QualifiedName */ || kind === 80 /* Identifier */; } function isJsxTagNameExpression(node) { const kind = node.kind; - return kind === 110 /* ThisKeyword */ || kind === 80 /* Identifier */ || kind === 210 /* PropertyAccessExpression */ || kind === 294 /* JsxNamespacedName */; + return kind === 110 /* ThisKeyword */ || kind === 80 /* Identifier */ || kind === 211 /* PropertyAccessExpression */ || kind === 295 /* JsxNamespacedName */; } function isJsxChild(node) { const kind = node.kind; - return kind === 283 /* JsxElement */ || kind === 293 /* JsxExpression */ || kind === 284 /* JsxSelfClosingElement */ || kind === 12 /* JsxText */ || kind === 287 /* JsxFragment */; + return kind === 284 /* JsxElement */ || kind === 294 /* JsxExpression */ || kind === 285 /* JsxSelfClosingElement */ || kind === 12 /* JsxText */ || kind === 288 /* JsxFragment */; } function isJsxAttributeLike(node) { const kind = node.kind; - return kind === 290 /* JsxAttribute */ || kind === 292 /* JsxSpreadAttribute */; + return kind === 291 /* JsxAttribute */ || kind === 293 /* JsxSpreadAttribute */; } function isStringLiteralOrJsxExpression(node) { const kind = node.kind; - return kind === 11 /* StringLiteral */ || kind === 293 /* JsxExpression */; + return kind === 11 /* StringLiteral */ || kind === 294 /* JsxExpression */; } function isJsxOpeningLikeElement(node) { const kind = node.kind; - return kind === 285 /* JsxOpeningElement */ || kind === 284 /* JsxSelfClosingElement */; + return kind === 286 /* JsxOpeningElement */ || kind === 285 /* JsxSelfClosingElement */; } function isCaseOrDefaultClause(node) { const kind = node.kind; - return kind === 295 /* CaseClause */ || kind === 296 /* DefaultClause */; + return kind === 296 /* CaseClause */ || kind === 297 /* DefaultClause */; } function isJSDocNode(node) { - return node.kind >= 315 /* FirstJSDocNode */ && node.kind <= 356 /* LastJSDocNode */; + return node.kind >= 316 /* FirstJSDocNode */ && node.kind <= 357 /* LastJSDocNode */; } function isJSDocCommentContainingNode(node) { - return node.kind === 326 /* JSDoc */ || node.kind === 325 /* JSDocNamepathType */ || node.kind === 327 /* JSDocText */ || isJSDocLinkLike(node) || isJSDocTag(node) || isJSDocTypeLiteral(node) || isJSDocSignature(node); + return node.kind === 327 /* JSDoc */ || node.kind === 326 /* JSDocNamepathType */ || node.kind === 328 /* JSDocText */ || isJSDocLinkLike(node) || isJSDocTag(node) || isJSDocTypeLiteral(node) || isJSDocSignature(node); } function isJSDocTag(node) { - return node.kind >= 333 /* FirstJSDocTagNode */ && node.kind <= 356 /* LastJSDocTagNode */; + return node.kind >= 334 /* FirstJSDocTagNode */ && node.kind <= 357 /* LastJSDocTagNode */; } function isSetAccessor(node) { - return node.kind === 177 /* SetAccessor */; + return node.kind === 178 /* SetAccessor */; } function isGetAccessor(node) { - return node.kind === 176 /* GetAccessor */; + return node.kind === 177 /* GetAccessor */; } function hasJSDocNodes(node) { if (!canHaveJSDoc(node)) @@ -12743,22 +12782,22 @@ ${lanes.join("\n")} } function hasOnlyExpressionInitializer(node) { switch (node.kind) { - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 207 /* BindingElement */: - case 171 /* PropertyDeclaration */: - case 302 /* PropertyAssignment */: - case 305 /* EnumMember */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 208 /* BindingElement */: + case 172 /* PropertyDeclaration */: + case 303 /* PropertyAssignment */: + case 306 /* EnumMember */: return true; default: return false; } } function isObjectLiteralElement(node) { - return node.kind === 290 /* JsxAttribute */ || node.kind === 292 /* JsxSpreadAttribute */ || isObjectLiteralElementLike(node); + return node.kind === 291 /* JsxAttribute */ || node.kind === 293 /* JsxSpreadAttribute */ || isObjectLiteralElementLike(node); } function isTypeReferenceType(node) { - return node.kind === 182 /* TypeReference */ || node.kind === 232 /* ExpressionWithTypeArguments */; + return node.kind === 183 /* TypeReference */ || node.kind === 233 /* ExpressionWithTypeArguments */; } function guessIndentation(lines) { let indentation = MAX_SMI_X86; @@ -12785,7 +12824,7 @@ ${lanes.join("\n")} return node.kind === 11 /* StringLiteral */ || node.kind === 15 /* NoSubstitutionTemplateLiteral */; } function isJSDocLinkLike(node) { - return node.kind === 330 /* JSDocLink */ || node.kind === 331 /* JSDocLinkCode */ || node.kind === 332 /* JSDocLinkPlain */; + return node.kind === 331 /* JSDocLink */ || node.kind === 332 /* JSDocLinkCode */ || node.kind === 333 /* JSDocLinkPlain */; } function hasRestParameter(s) { const last2 = lastOrUndefined(s.parameters); @@ -12793,7 +12832,7 @@ ${lanes.join("\n")} } function isRestParameter(node) { const type = isJSDocParameterTag(node) ? node.typeExpression && node.typeExpression.type : node.type; - return node.dotDotDotToken !== void 0 || !!type && type.kind === 324 /* JSDocVariadicType */; + return node.dotDotDotToken !== void 0 || !!type && type.kind === 325 /* JSDocVariadicType */; } var unchangedTextChangeRange, supportedLocaleDirectories, MAX_SMI_X86; var init_utilitiesPublic = __esm({ @@ -13015,19 +13054,19 @@ ${lanes.join("\n")} } function containsParseError(node) { aggregateChildData(node); - return (node.flags & 524288 /* ThisNodeOrAnySubNodesHasError */) !== 0; + return (node.flags & 1048576 /* ThisNodeOrAnySubNodesHasError */) !== 0; } function aggregateChildData(node) { - if (!(node.flags & 1048576 /* HasAggregatedChildData */)) { - const thisNodeOrAnySubNodesHasError = (node.flags & 131072 /* ThisNodeHasError */) !== 0 || forEachChild(node, containsParseError); + if (!(node.flags & 2097152 /* HasAggregatedChildData */)) { + const thisNodeOrAnySubNodesHasError = (node.flags & 262144 /* ThisNodeHasError */) !== 0 || forEachChild(node, containsParseError); if (thisNodeOrAnySubNodesHasError) { - node.flags |= 524288 /* ThisNodeOrAnySubNodesHasError */; + node.flags |= 1048576 /* ThisNodeOrAnySubNodesHasError */; } - node.flags |= 1048576 /* HasAggregatedChildData */; + node.flags |= 2097152 /* HasAggregatedChildData */; } } function getSourceFileOfNode(node) { - while (node && node.kind !== 311 /* SourceFile */) { + while (node && node.kind !== 312 /* SourceFile */) { node = node.parent; } return node; @@ -13040,11 +13079,11 @@ ${lanes.join("\n")} } function isStatementWithLocals(node) { switch (node.kind) { - case 240 /* Block */: - case 268 /* CaseBlock */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: + case 241 /* Block */: + case 269 /* CaseBlock */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: return true; } return false; @@ -13203,7 +13242,7 @@ ${lanes.join("\n")} if (includeJsDoc && hasJSDocNodes(node)) { return getTokenPosOfNode(node.jsDoc[0], sourceFile); } - if (node.kind === 357 /* SyntaxList */ && node._children.length > 0) { + if (node.kind === 358 /* SyntaxList */ && node._children.length > 0) { return getTokenPosOfNode(node._children[0], sourceFile, includeJsDoc); } return skipTrivia( @@ -13718,11 +13757,11 @@ ${lanes.join("\n")} return getBaseFileName(moduleName).replace(/^(\d)/, "_$1").replace(/\W/g, "_"); } function isBlockOrCatchScoped(declaration) { - return (getCombinedNodeFlags(declaration) & 3 /* BlockScoped */) !== 0 || isCatchClauseVariableDeclarationOrBindingElement(declaration); + return (getCombinedNodeFlags(declaration) & 7 /* BlockScoped */) !== 0 || isCatchClauseVariableDeclarationOrBindingElement(declaration); } function isCatchClauseVariableDeclarationOrBindingElement(declaration) { const node = getRootDeclaration(declaration); - return node.kind === 259 /* VariableDeclaration */ && node.parent.kind === 298 /* CatchClause */; + return node.kind === 260 /* VariableDeclaration */ && node.parent.kind === 299 /* CatchClause */; } function isAmbientModule(node) { return isModuleDeclaration(node) && (node.name.kind === 11 /* StringLiteral */ || isGlobalScopeAugmentation(node)); @@ -13740,22 +13779,22 @@ ${lanes.join("\n")} return isShorthandAmbientModule(moduleSymbol.valueDeclaration); } function isShorthandAmbientModule(node) { - return !!node && node.kind === 266 /* ModuleDeclaration */ && !node.body; + return !!node && node.kind === 267 /* ModuleDeclaration */ && !node.body; } function isBlockScopedContainerTopLevel(node) { - return node.kind === 311 /* SourceFile */ || node.kind === 266 /* ModuleDeclaration */ || isFunctionLikeOrClassStaticBlockDeclaration(node); + return node.kind === 312 /* SourceFile */ || node.kind === 267 /* ModuleDeclaration */ || isFunctionLikeOrClassStaticBlockDeclaration(node); } function isGlobalScopeAugmentation(module2) { - return !!(module2.flags & 1024 /* GlobalAugmentation */); + return !!(module2.flags & 2048 /* GlobalAugmentation */); } function isExternalModuleAugmentation(node) { return isAmbientModule(node) && isModuleAugmentationExternal(node); } function isModuleAugmentationExternal(node) { switch (node.parent.kind) { - case 311 /* SourceFile */: + case 312 /* SourceFile */: return isExternalModule(node.parent); - case 267 /* ModuleBlock */: + case 268 /* ModuleBlock */: return isAmbientModule(node.parent.parent) && isSourceFile(node.parent.parent.parent) && !isExternalModule(node.parent.parent.parent); } return false; @@ -13798,28 +13837,28 @@ ${lanes.join("\n")} return false; } function isAmbientPropertyDeclaration(node) { - return !!(node.flags & 16777216 /* Ambient */) || hasSyntacticModifier(node, 2 /* Ambient */); + return !!(node.flags & 33554432 /* Ambient */) || hasSyntacticModifier(node, 2 /* Ambient */); } function isBlockScope(node, parentNode) { switch (node.kind) { - case 311 /* SourceFile */: - case 268 /* CaseBlock */: - case 298 /* CatchClause */: - case 266 /* ModuleDeclaration */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 175 /* Constructor */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 171 /* PropertyDeclaration */: - case 174 /* ClassStaticBlockDeclaration */: + case 312 /* SourceFile */: + case 269 /* CaseBlock */: + case 299 /* CatchClause */: + case 267 /* ModuleDeclaration */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 172 /* PropertyDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: return true; - case 240 /* Block */: + case 241 /* Block */: return !isFunctionLikeOrClassStaticBlockDeclaration(parentNode); } return false; @@ -13827,9 +13866,9 @@ ${lanes.join("\n")} function isDeclarationWithTypeParameters(node) { Debug.type(node); switch (node.kind) { - case 344 /* JSDocCallbackTag */: - case 352 /* JSDocTypedefTag */: - case 329 /* JSDocSignature */: + case 345 /* JSDocCallbackTag */: + case 353 /* JSDocTypedefTag */: + case 330 /* JSDocSignature */: return true; default: assertType(node); @@ -13839,25 +13878,25 @@ ${lanes.join("\n")} function isDeclarationWithTypeParameterChildren(node) { Debug.type(node); switch (node.kind) { - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 172 /* MethodSignature */: - case 180 /* IndexSignature */: - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 323 /* JSDocFunctionType */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 351 /* JSDocTemplateTag */: - case 261 /* FunctionDeclaration */: - case 173 /* MethodDeclaration */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 173 /* MethodSignature */: + case 181 /* IndexSignature */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 324 /* JSDocFunctionType */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 352 /* JSDocTemplateTag */: + case 262 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return true; default: assertType(node); @@ -13866,8 +13905,8 @@ ${lanes.join("\n")} } function isAnyImportSyntax(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: - case 270 /* ImportEqualsDeclaration */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: return true; default: return false; @@ -13878,15 +13917,15 @@ ${lanes.join("\n")} } function isLateVisibilityPaintedStatement(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: - case 270 /* ImportEqualsDeclaration */: - case 242 /* VariableStatement */: - case 262 /* ClassDeclaration */: - case 261 /* FunctionDeclaration */: - case 266 /* ModuleDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 243 /* VariableStatement */: + case 263 /* ClassDeclaration */: + case 262 /* FunctionDeclaration */: + case 267 /* ModuleDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: return true; default: return false; @@ -13898,6 +13937,9 @@ ${lanes.join("\n")} function isAnyImportOrReExport(node) { return isAnyImportSyntax(node) || isExportDeclaration(node); } + function getEnclosingContainer(node) { + return findAncestor(node.parent, (n) => !!(getContainerFlags(n) & 1 /* IsContainer */)); + } function getEnclosingBlockScopeContainer(node) { return findAncestor(node.parent, (current) => isBlockScope(current, current.parent)); } @@ -13915,7 +13957,7 @@ ${lanes.join("\n")} return info.declaration ? declarationNameToString(info.declaration.parameters[0].name) : void 0; } function isComputedNonLiteralName(name) { - return name.kind === 166 /* ComputedPropertyName */ && !isStringOrNumericLiteralLike(name.expression); + return name.kind === 167 /* ComputedPropertyName */ && !isStringOrNumericLiteralLike(name.expression); } function tryGetTextOfPropertyName(name) { var _a; @@ -13927,11 +13969,11 @@ ${lanes.join("\n")} case 9 /* NumericLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: return escapeLeadingUnderscores(name.text); - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: if (isStringOrNumericLiteralLike(name.expression)) return escapeLeadingUnderscores(name.expression.text); return void 0; - case 294 /* JsxNamespacedName */: + case 295 /* JsxNamespacedName */: return getEscapedTextOfJsxNamespacedName(name); default: return Debug.assertNever(name); @@ -13947,17 +13989,17 @@ ${lanes.join("\n")} case 81 /* PrivateIdentifier */: case 80 /* Identifier */: return getFullWidth(name) === 0 ? idText(name) : getTextOfNode(name); - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: return entityNameToString(name.left) + "." + entityNameToString(name.right); - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: if (isIdentifier(name.name) || isPrivateIdentifier(name.name)) { return entityNameToString(name.expression) + "." + entityNameToString(name.name); } else { return Debug.assertNever(name.name); } - case 317 /* JSDocMemberName */: + case 318 /* JSDocMemberName */: return entityNameToString(name.left) + entityNameToString(name.right); - case 294 /* JsxNamespacedName */: + case 295 /* JsxNamespacedName */: return entityNameToString(name.namespace) + ":" + entityNameToString(name.name); default: return Debug.assertNever(name); @@ -14063,7 +14105,7 @@ ${lanes.join("\n")} } function getErrorSpanForArrowFunction(sourceFile, node) { const pos = skipTrivia(sourceFile.text, node.pos); - if (node.body && node.body.kind === 240 /* Block */) { + if (node.body && node.body.kind === 241 /* Block */) { const { line: startLine } = getLineAndCharacterOfPosition(sourceFile, node.body.pos); const { line: endLine } = getLineAndCharacterOfPosition(sourceFile, node.body.end); if (startLine < endLine) { @@ -14075,7 +14117,7 @@ ${lanes.join("\n")} function getErrorSpanForNode(sourceFile, node) { let errorNode = node; switch (node.kind) { - case 311 /* SourceFile */: { + case 312 /* SourceFile */: { const pos2 = skipTrivia( sourceFile.text, 0, @@ -14087,43 +14129,43 @@ ${lanes.join("\n")} } return getSpanOfTokenAtPosition(sourceFile, pos2); } - case 259 /* VariableDeclaration */: - case 207 /* BindingElement */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 266 /* ModuleDeclaration */: - case 265 /* EnumDeclaration */: - case 305 /* EnumMember */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 264 /* TypeAliasDeclaration */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 273 /* NamespaceImport */: + case 260 /* VariableDeclaration */: + case 208 /* BindingElement */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 267 /* ModuleDeclaration */: + case 266 /* EnumDeclaration */: + case 306 /* EnumMember */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 265 /* TypeAliasDeclaration */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 274 /* NamespaceImport */: errorNode = node.name; break; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return getErrorSpanForArrowFunction(sourceFile, node); - case 295 /* CaseClause */: - case 296 /* DefaultClause */: { + case 296 /* CaseClause */: + case 297 /* DefaultClause */: { const start = skipTrivia(sourceFile.text, node.pos); const end = node.statements.length > 0 ? node.statements[0].pos : node.end; return createTextSpanFromBounds(start, end); } - case 252 /* ReturnStatement */: - case 228 /* YieldExpression */: { + case 253 /* ReturnStatement */: + case 229 /* YieldExpression */: { const pos2 = skipTrivia(sourceFile.text, node.pos); return getSpanOfTokenAtPosition(sourceFile, pos2); } - case 237 /* SatisfiesExpression */: { + case 238 /* SatisfiesExpression */: { const pos2 = skipTrivia(sourceFile.text, node.expression.end); return getSpanOfTokenAtPosition(sourceFile, pos2); } - case 356 /* JSDocSatisfiesTag */: { + case 357 /* JSDocSatisfiesTag */: { const pos2 = skipTrivia(sourceFile.text, node.tagName.pos); return getSpanOfTokenAtPosition(sourceFile, pos2); } @@ -14155,17 +14197,23 @@ ${lanes.join("\n")} function isDeclarationReadonly(declaration) { return !!(getCombinedModifierFlags(declaration) & 64 /* Readonly */ && !isParameterPropertyDeclaration(declaration, declaration.parent)); } + function isVarAwaitUsing(node) { + return (getCombinedNodeFlags(node) & 7 /* BlockScoped */) === 6 /* AwaitUsing */; + } + function isVarUsing(node) { + return (getCombinedNodeFlags(node) & 7 /* BlockScoped */) === 4 /* Using */; + } function isVarConst(node) { - return !!(getCombinedNodeFlags(node) & 2 /* Const */); + return (getCombinedNodeFlags(node) & 7 /* BlockScoped */) === 2 /* Const */; } function isLet(node) { - return !!(getCombinedNodeFlags(node) & 1 /* Let */); + return (getCombinedNodeFlags(node) & 7 /* BlockScoped */) === 1 /* Let */; } function isSuperCall(n) { - return n.kind === 212 /* CallExpression */ && n.expression.kind === 108 /* SuperKeyword */; + return n.kind === 213 /* CallExpression */ && n.expression.kind === 108 /* SuperKeyword */; } function isImportCall(n) { - return n.kind === 212 /* CallExpression */ && n.expression.kind === 102 /* ImportKeyword */; + return n.kind === 213 /* CallExpression */ && n.expression.kind === 102 /* ImportKeyword */; } function isImportMeta(n) { return isMetaProperty(n) && n.keywordToken === 102 /* ImportKeyword */ && n.name.escapedText === "meta"; @@ -14174,7 +14222,7 @@ ${lanes.join("\n")} return isImportTypeNode(n) && isLiteralTypeNode(n.argument) && isStringLiteral(n.argument.literal); } function isPrologueDirective(node) { - return node.kind === 243 /* ExpressionStatement */ && node.expression.kind === 11 /* StringLiteral */; + return node.kind === 244 /* ExpressionStatement */ && node.expression.kind === 11 /* StringLiteral */; } function isCustomPrologue(node) { return !!(getEmitFlags(node) & 2097152 /* CustomPrologue */); @@ -14192,18 +14240,18 @@ ${lanes.join("\n")} return node.kind !== 12 /* JsxText */ ? getLeadingCommentRanges(sourceFileOfNode.text, node.pos) : void 0; } function getJSDocCommentRanges(node, text) { - const commentRanges = node.kind === 168 /* Parameter */ || node.kind === 167 /* TypeParameter */ || node.kind === 217 /* FunctionExpression */ || node.kind === 218 /* ArrowFunction */ || node.kind === 216 /* ParenthesizedExpression */ || node.kind === 259 /* VariableDeclaration */ || node.kind === 280 /* ExportSpecifier */ ? concatenate(getTrailingCommentRanges(text, node.pos), getLeadingCommentRanges(text, node.pos)) : getLeadingCommentRanges(text, node.pos); + const commentRanges = node.kind === 169 /* Parameter */ || node.kind === 168 /* TypeParameter */ || node.kind === 218 /* FunctionExpression */ || node.kind === 219 /* ArrowFunction */ || node.kind === 217 /* ParenthesizedExpression */ || node.kind === 260 /* VariableDeclaration */ || node.kind === 281 /* ExportSpecifier */ ? concatenate(getTrailingCommentRanges(text, node.pos), getLeadingCommentRanges(text, node.pos)) : getLeadingCommentRanges(text, node.pos); return filter(commentRanges, (comment) => text.charCodeAt(comment.pos + 1) === 42 /* asterisk */ && text.charCodeAt(comment.pos + 2) === 42 /* asterisk */ && text.charCodeAt(comment.pos + 3) !== 47 /* slash */); } function isPartOfTypeNode(node) { - if (181 /* FirstTypeNode */ <= node.kind && node.kind <= 204 /* LastTypeNode */) { + if (182 /* FirstTypeNode */ <= node.kind && node.kind <= 205 /* LastTypeNode */) { return true; } switch (node.kind) { case 133 /* AnyKeyword */: case 159 /* UnknownKeyword */: case 150 /* NumberKeyword */: - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: case 154 /* StringKeyword */: case 136 /* BooleanKeyword */: case 155 /* SymbolKeyword */: @@ -14213,64 +14261,64 @@ ${lanes.join("\n")} case 146 /* NeverKeyword */: return true; case 116 /* VoidKeyword */: - return node.parent.kind !== 221 /* VoidExpression */; - case 232 /* ExpressionWithTypeArguments */: + return node.parent.kind !== 222 /* VoidExpression */; + case 233 /* ExpressionWithTypeArguments */: return isHeritageClause(node.parent) && !isExpressionWithTypeArgumentsInClassExtendsClause(node); - case 167 /* TypeParameter */: - return node.parent.kind === 199 /* MappedType */ || node.parent.kind === 194 /* InferType */; + case 168 /* TypeParameter */: + return node.parent.kind === 200 /* MappedType */ || node.parent.kind === 195 /* InferType */; case 80 /* Identifier */: - if (node.parent.kind === 165 /* QualifiedName */ && node.parent.right === node) { + if (node.parent.kind === 166 /* QualifiedName */ && node.parent.right === node) { node = node.parent; - } else if (node.parent.kind === 210 /* PropertyAccessExpression */ && node.parent.name === node) { + } else if (node.parent.kind === 211 /* PropertyAccessExpression */ && node.parent.name === node) { node = node.parent; } Debug.assert( - node.kind === 80 /* Identifier */ || node.kind === 165 /* QualifiedName */ || node.kind === 210 /* PropertyAccessExpression */, + node.kind === 80 /* Identifier */ || node.kind === 166 /* QualifiedName */ || node.kind === 211 /* PropertyAccessExpression */, "'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'." ); - case 165 /* QualifiedName */: - case 210 /* PropertyAccessExpression */: + case 166 /* QualifiedName */: + case 211 /* PropertyAccessExpression */: case 110 /* ThisKeyword */: { const { parent: parent2 } = node; - if (parent2.kind === 185 /* TypeQuery */) { + if (parent2.kind === 186 /* TypeQuery */) { return false; } - if (parent2.kind === 204 /* ImportType */) { + if (parent2.kind === 205 /* ImportType */) { return !parent2.isTypeOf; } - if (181 /* FirstTypeNode */ <= parent2.kind && parent2.kind <= 204 /* LastTypeNode */) { + if (182 /* FirstTypeNode */ <= parent2.kind && parent2.kind <= 205 /* LastTypeNode */) { return true; } switch (parent2.kind) { - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return isHeritageClause(parent2.parent) && !isExpressionWithTypeArgumentsInClassExtendsClause(parent2); - case 167 /* TypeParameter */: + case 168 /* TypeParameter */: return node === parent2.constraint; - case 351 /* JSDocTemplateTag */: + case 352 /* JSDocTemplateTag */: return node === parent2.constraint; - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 168 /* Parameter */: - case 259 /* VariableDeclaration */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 169 /* Parameter */: + case 260 /* VariableDeclaration */: return node === parent2.type; - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 175 /* Constructor */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return node === parent2.type; - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 180 /* IndexSignature */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 181 /* IndexSignature */: return node === parent2.type; - case 215 /* TypeAssertionExpression */: + case 216 /* TypeAssertionExpression */: return node === parent2.type; - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 214 /* TaggedTemplateExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 215 /* TaggedTemplateExpression */: return contains(parent2.typeArguments, node); } } @@ -14290,23 +14338,23 @@ ${lanes.join("\n")} return traverse(body); function traverse(node) { switch (node.kind) { - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: return visitor(node); - case 268 /* CaseBlock */: - case 240 /* Block */: - case 244 /* IfStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 253 /* WithStatement */: - case 254 /* SwitchStatement */: - case 295 /* CaseClause */: - case 296 /* DefaultClause */: - case 255 /* LabeledStatement */: - case 257 /* TryStatement */: - case 298 /* CatchClause */: + case 269 /* CaseBlock */: + case 241 /* Block */: + case 245 /* IfStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 254 /* WithStatement */: + case 255 /* SwitchStatement */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: + case 256 /* LabeledStatement */: + case 258 /* TryStatement */: + case 299 /* CatchClause */: return forEachChild(node, traverse); } } @@ -14315,21 +14363,21 @@ ${lanes.join("\n")} return traverse(body); function traverse(node) { switch (node.kind) { - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: visitor(node); const operand = node.expression; if (operand) { traverse(operand); } return; - case 265 /* EnumDeclaration */: - case 263 /* InterfaceDeclaration */: - case 266 /* ModuleDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 266 /* EnumDeclaration */: + case 264 /* InterfaceDeclaration */: + case 267 /* ModuleDeclaration */: + case 265 /* TypeAliasDeclaration */: return; default: if (isFunctionLike(node)) { - if (node.name && node.name.kind === 166 /* ComputedPropertyName */) { + if (node.name && node.name.kind === 167 /* ComputedPropertyName */) { traverse(node.name.expression); return; } @@ -14340,9 +14388,9 @@ ${lanes.join("\n")} } } function getRestParameterElementType(node) { - if (node && node.kind === 187 /* ArrayType */) { + if (node && node.kind === 188 /* ArrayType */) { return node.elementType; - } else if (node && node.kind === 182 /* TypeReference */) { + } else if (node && node.kind === 183 /* TypeReference */) { return singleOrUndefined(node.typeArguments); } else { return void 0; @@ -14350,26 +14398,26 @@ ${lanes.join("\n")} } function getMembersOfDeclaration(node) { switch (node.kind) { - case 263 /* InterfaceDeclaration */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 186 /* TypeLiteral */: + case 264 /* InterfaceDeclaration */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 187 /* TypeLiteral */: return node.members; - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return node.properties; } } function isVariableLike(node) { if (node) { switch (node.kind) { - case 207 /* BindingElement */: - case 305 /* EnumMember */: - case 168 /* Parameter */: - case 302 /* PropertyAssignment */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 303 /* ShorthandPropertyAssignment */: - case 259 /* VariableDeclaration */: + case 208 /* BindingElement */: + case 306 /* EnumMember */: + case 169 /* Parameter */: + case 303 /* PropertyAssignment */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 304 /* ShorthandPropertyAssignment */: + case 260 /* VariableDeclaration */: return true; } } @@ -14379,7 +14427,7 @@ ${lanes.join("\n")} return isVariableLike(node) || isAccessor(node); } function isVariableDeclarationInVariableStatement(node) { - return node.parent.kind === 260 /* VariableDeclarationList */ && node.parent.parent.kind === 242 /* VariableStatement */; + return node.parent.kind === 261 /* VariableDeclarationList */ && node.parent.parent.kind === 243 /* VariableStatement */; } function isCommonJsExportedExpression(node) { if (!isInJSFile(node)) @@ -14396,13 +14444,13 @@ ${lanes.join("\n")} } function introducesArgumentsExoticObject(node) { switch (node.kind) { - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: return true; } return false; @@ -14412,20 +14460,20 @@ ${lanes.join("\n")} if (beforeUnwrapLabelCallback) { beforeUnwrapLabelCallback(node); } - if (node.statement.kind !== 255 /* LabeledStatement */) { + if (node.statement.kind !== 256 /* LabeledStatement */) { return node.statement; } node = node.statement; } } function isFunctionBlock(node) { - return node && node.kind === 240 /* Block */ && isFunctionLike(node.parent); + return node && node.kind === 241 /* Block */ && isFunctionLike(node.parent); } function isObjectLiteralMethod(node) { - return node && node.kind === 173 /* MethodDeclaration */ && node.parent.kind === 209 /* ObjectLiteralExpression */; + return node && node.kind === 174 /* MethodDeclaration */ && node.parent.kind === 210 /* ObjectLiteralExpression */; } function isObjectLiteralOrClassExpressionMethodOrAccessor(node) { - return (node.kind === 173 /* MethodDeclaration */ || node.kind === 176 /* GetAccessor */ || node.kind === 177 /* SetAccessor */) && (node.parent.kind === 209 /* ObjectLiteralExpression */ || node.parent.kind === 230 /* ClassExpression */); + return (node.kind === 174 /* MethodDeclaration */ || node.kind === 177 /* GetAccessor */ || node.kind === 178 /* SetAccessor */) && (node.parent.kind === 210 /* ObjectLiteralExpression */ || node.parent.kind === 231 /* ClassExpression */); } function isIdentifierTypePredicate(predicate) { return predicate && predicate.kind === 1 /* Identifier */; @@ -14480,64 +14528,68 @@ ${lanes.join("\n")} function getContainingFunctionOrClassStaticBlock(node) { return findAncestor(node.parent, isFunctionLikeOrClassStaticBlockDeclaration); } + function getContainingClassExcludingClassDecorators(node) { + const decorator = findAncestor(node.parent, (n) => isClassLike(n) ? "quit" : isDecorator(n)); + return decorator && isClassLike(decorator.parent) ? getContainingClass(decorator.parent) : getContainingClass(decorator ?? node); + } function getThisContainer(node, includeArrowFunctions, includeClassComputedPropertyName) { - Debug.assert(node.kind !== 311 /* SourceFile */); + Debug.assert(node.kind !== 312 /* SourceFile */); while (true) { node = node.parent; if (!node) { return Debug.fail(); } switch (node.kind) { - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: if (includeClassComputedPropertyName && isClassLike(node.parent.parent)) { return node; } node = node.parent.parent; break; - case 169 /* Decorator */: - if (node.parent.kind === 168 /* Parameter */ && isClassElement(node.parent.parent)) { + case 170 /* Decorator */: + if (node.parent.kind === 169 /* Parameter */ && isClassElement(node.parent.parent)) { node = node.parent.parent; } else if (isClassElement(node.parent)) { node = node.parent; } break; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: if (!includeArrowFunctions) { continue; } - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 266 /* ModuleDeclaration */: - case 174 /* ClassStaticBlockDeclaration */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 180 /* IndexSignature */: - case 265 /* EnumDeclaration */: - case 311 /* SourceFile */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 267 /* ModuleDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 181 /* IndexSignature */: + case 266 /* EnumDeclaration */: + case 312 /* SourceFile */: return node; } } } function isThisContainerOrFunctionBlock(node) { switch (node.kind) { - case 218 /* ArrowFunction */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 171 /* PropertyDeclaration */: + case 219 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 172 /* PropertyDeclaration */: return true; - case 240 /* Block */: + case 241 /* Block */: switch (node.parent.kind) { - case 175 /* Constructor */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return true; default: return false; @@ -14569,9 +14621,9 @@ ${lanes.join("\n")} ); if (container) { switch (container.kind) { - case 175 /* Constructor */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 176 /* Constructor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: return container; } } @@ -14584,26 +14636,26 @@ ${lanes.join("\n")} return void 0; } switch (node.kind) { - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: node = node.parent; break; - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: if (!stopOnFunctions) { continue; } - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 174 /* ClassStaticBlockDeclaration */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 175 /* ClassStaticBlockDeclaration */: return node; - case 169 /* Decorator */: - if (node.parent.kind === 168 /* Parameter */ && isClassElement(node.parent.parent)) { + case 170 /* Decorator */: + if (node.parent.kind === 169 /* Parameter */ && isClassElement(node.parent.parent)) { node = node.parent.parent; } else if (isClassElement(node.parent)) { node = node.parent; @@ -14613,14 +14665,14 @@ ${lanes.join("\n")} } } function getImmediatelyInvokedFunctionExpression(func) { - if (func.kind === 217 /* FunctionExpression */ || func.kind === 218 /* ArrowFunction */) { + if (func.kind === 218 /* FunctionExpression */ || func.kind === 219 /* ArrowFunction */) { let prev = func; let parent2 = func.parent; - while (parent2.kind === 216 /* ParenthesizedExpression */) { + while (parent2.kind === 217 /* ParenthesizedExpression */) { prev = parent2; parent2 = parent2.parent; } - if (parent2.kind === 212 /* CallExpression */ && parent2.expression === prev) { + if (parent2.kind === 213 /* CallExpression */ && parent2.expression === prev) { return parent2; } } @@ -14630,11 +14682,11 @@ ${lanes.join("\n")} } function isSuperProperty(node) { const kind = node.kind; - return (kind === 210 /* PropertyAccessExpression */ || kind === 211 /* ElementAccessExpression */) && node.expression.kind === 108 /* SuperKeyword */; + return (kind === 211 /* PropertyAccessExpression */ || kind === 212 /* ElementAccessExpression */) && node.expression.kind === 108 /* SuperKeyword */; } function isThisProperty(node) { const kind = node.kind; - return (kind === 210 /* PropertyAccessExpression */ || kind === 211 /* ElementAccessExpression */) && node.expression.kind === 110 /* ThisKeyword */; + return (kind === 211 /* PropertyAccessExpression */ || kind === 212 /* ElementAccessExpression */) && node.expression.kind === 110 /* ThisKeyword */; } function isThisInitializedDeclaration(node) { var _a; @@ -14645,22 +14697,22 @@ ${lanes.join("\n")} } function getEntityNameFromTypeNode(node) { switch (node.kind) { - case 182 /* TypeReference */: + case 183 /* TypeReference */: return node.typeName; - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return isEntityNameExpression(node.expression) ? node.expression : void 0; case 80 /* Identifier */: - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: return node; } return void 0; } function getInvokedExpression(node) { switch (node.kind) { - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return node.tag; - case 285 /* JsxOpeningElement */: - case 284 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: return node.tagName; default: return node.expression; @@ -14671,20 +14723,20 @@ ${lanes.join("\n")} return false; } switch (node.kind) { - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return true; - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return !useLegacyDecorators; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return parent2 !== void 0 && (useLegacyDecorators ? isClassDeclaration(parent2) : isClassLike(parent2) && !hasAbstractModifier(node) && !hasAmbientModifier(node)); - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 173 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: return node.body !== void 0 && parent2 !== void 0 && (useLegacyDecorators ? isClassDeclaration(parent2) : isClassLike(parent2)); - case 168 /* Parameter */: + case 169 /* Parameter */: if (!useLegacyDecorators) return false; - return parent2 !== void 0 && parent2.body !== void 0 && (parent2.kind === 175 /* Constructor */ || parent2.kind === 173 /* MethodDeclaration */ || parent2.kind === 177 /* SetAccessor */) && getThisParameter(parent2) !== node && grandparent !== void 0 && grandparent.kind === 262 /* ClassDeclaration */; + return parent2 !== void 0 && parent2.body !== void 0 && (parent2.kind === 176 /* Constructor */ || parent2.kind === 174 /* MethodDeclaration */ || parent2.kind === 178 /* SetAccessor */) && getThisParameter(parent2) !== node && grandparent !== void 0 && grandparent.kind === 263 /* ClassDeclaration */; } return false; } @@ -14696,13 +14748,13 @@ ${lanes.join("\n")} } function childIsDecorated(useLegacyDecorators, node, parent2) { switch (node.kind) { - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return some(node.members, (m) => nodeOrChildIsDecorated(useLegacyDecorators, m, node, parent2)); - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return !useLegacyDecorators && some(node.members, (m) => nodeOrChildIsDecorated(useLegacyDecorators, m, node, parent2)); - case 173 /* MethodDeclaration */: - case 177 /* SetAccessor */: - case 175 /* Constructor */: + case 174 /* MethodDeclaration */: + case 178 /* SetAccessor */: + case 176 /* Constructor */: return some(node.parameters, (p) => nodeIsDecorated(useLegacyDecorators, p, node, parent2)); default: return false; @@ -14753,7 +14805,7 @@ ${lanes.join("\n")} } function isJSXTagName(node) { const { parent: parent2 } = node; - if (parent2.kind === 285 /* JsxOpeningElement */ || parent2.kind === 284 /* JsxSelfClosingElement */ || parent2.kind === 286 /* JsxClosingElement */) { + if (parent2.kind === 286 /* JsxOpeningElement */ || parent2.kind === 285 /* JsxSelfClosingElement */ || parent2.kind === 287 /* JsxClosingElement */) { return parent2.tagName === node; } return false; @@ -14765,54 +14817,54 @@ ${lanes.join("\n")} case 112 /* TrueKeyword */: case 97 /* FalseKeyword */: case 14 /* RegularExpressionLiteral */: - case 208 /* ArrayLiteralExpression */: - case 209 /* ObjectLiteralExpression */: - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 214 /* TaggedTemplateExpression */: - case 233 /* AsExpression */: - case 215 /* TypeAssertionExpression */: - case 237 /* SatisfiesExpression */: - case 234 /* NonNullExpression */: - case 216 /* ParenthesizedExpression */: - case 217 /* FunctionExpression */: - case 230 /* ClassExpression */: - case 218 /* ArrowFunction */: - case 221 /* VoidExpression */: - case 219 /* DeleteExpression */: - case 220 /* TypeOfExpression */: - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: - case 225 /* BinaryExpression */: - case 226 /* ConditionalExpression */: - case 229 /* SpreadElement */: - case 227 /* TemplateExpression */: - case 231 /* OmittedExpression */: - case 283 /* JsxElement */: - case 284 /* JsxSelfClosingElement */: - case 287 /* JsxFragment */: - case 228 /* YieldExpression */: - case 222 /* AwaitExpression */: - case 235 /* MetaProperty */: + case 209 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 215 /* TaggedTemplateExpression */: + case 234 /* AsExpression */: + case 216 /* TypeAssertionExpression */: + case 238 /* SatisfiesExpression */: + case 235 /* NonNullExpression */: + case 217 /* ParenthesizedExpression */: + case 218 /* FunctionExpression */: + case 231 /* ClassExpression */: + case 219 /* ArrowFunction */: + case 222 /* VoidExpression */: + case 220 /* DeleteExpression */: + case 221 /* TypeOfExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: + case 226 /* BinaryExpression */: + case 227 /* ConditionalExpression */: + case 230 /* SpreadElement */: + case 228 /* TemplateExpression */: + case 232 /* OmittedExpression */: + case 284 /* JsxElement */: + case 285 /* JsxSelfClosingElement */: + case 288 /* JsxFragment */: + case 229 /* YieldExpression */: + case 223 /* AwaitExpression */: + case 236 /* MetaProperty */: return true; - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return !isHeritageClause(node.parent) && !isJSDocAugmentsTag(node.parent); - case 165 /* QualifiedName */: - while (node.parent.kind === 165 /* QualifiedName */) { + case 166 /* QualifiedName */: + while (node.parent.kind === 166 /* QualifiedName */) { node = node.parent; } - return node.parent.kind === 185 /* TypeQuery */ || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node); - case 317 /* JSDocMemberName */: + return node.parent.kind === 186 /* TypeQuery */ || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node); + case 318 /* JSDocMemberName */: while (isJSDocMemberName(node.parent)) { node = node.parent; } - return node.parent.kind === 185 /* TypeQuery */ || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node); + return node.parent.kind === 186 /* TypeQuery */ || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node); case 81 /* PrivateIdentifier */: return isBinaryExpression(node.parent) && node.parent.left === node && node.parent.operatorToken.kind === 103 /* InKeyword */; case 80 /* Identifier */: - if (node.parent.kind === 185 /* TypeQuery */ || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node)) { + if (node.parent.kind === 186 /* TypeQuery */ || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node)) { return true; } case 9 /* NumericLiteral */: @@ -14828,64 +14880,64 @@ ${lanes.join("\n")} function isInExpressionContext(node) { const { parent: parent2 } = node; switch (parent2.kind) { - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 305 /* EnumMember */: - case 302 /* PropertyAssignment */: - case 207 /* BindingElement */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 306 /* EnumMember */: + case 303 /* PropertyAssignment */: + case 208 /* BindingElement */: return parent2.initializer === node; - case 243 /* ExpressionStatement */: - case 244 /* IfStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: - case 252 /* ReturnStatement */: - case 253 /* WithStatement */: - case 254 /* SwitchStatement */: - case 295 /* CaseClause */: - case 256 /* ThrowStatement */: + case 244 /* ExpressionStatement */: + case 245 /* IfStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 253 /* ReturnStatement */: + case 254 /* WithStatement */: + case 255 /* SwitchStatement */: + case 296 /* CaseClause */: + case 257 /* ThrowStatement */: return parent2.expression === node; - case 247 /* ForStatement */: + case 248 /* ForStatement */: const forStatement = parent2; - return forStatement.initializer === node && forStatement.initializer.kind !== 260 /* VariableDeclarationList */ || forStatement.condition === node || forStatement.incrementor === node; - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: + return forStatement.initializer === node && forStatement.initializer.kind !== 261 /* VariableDeclarationList */ || forStatement.condition === node || forStatement.incrementor === node; + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: const forInStatement = parent2; - return forInStatement.initializer === node && forInStatement.initializer.kind !== 260 /* VariableDeclarationList */ || forInStatement.expression === node; - case 215 /* TypeAssertionExpression */: - case 233 /* AsExpression */: + return forInStatement.initializer === node && forInStatement.initializer.kind !== 261 /* VariableDeclarationList */ || forInStatement.expression === node; + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: return node === parent2.expression; - case 238 /* TemplateSpan */: + case 239 /* TemplateSpan */: return node === parent2.expression; - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: return node === parent2.expression; - case 169 /* Decorator */: - case 293 /* JsxExpression */: - case 292 /* JsxSpreadAttribute */: - case 304 /* SpreadAssignment */: + case 170 /* Decorator */: + case 294 /* JsxExpression */: + case 293 /* JsxSpreadAttribute */: + case 305 /* SpreadAssignment */: return true; - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return parent2.expression === node && !isPartOfTypeNode(parent2); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return parent2.objectAssignmentInitializer === node; - case 237 /* SatisfiesExpression */: + case 238 /* SatisfiesExpression */: return node === parent2.expression; default: return isExpressionNode(parent2); } } function isPartOfTypeQuery(node) { - while (node.kind === 165 /* QualifiedName */ || node.kind === 80 /* Identifier */) { + while (node.kind === 166 /* QualifiedName */ || node.kind === 80 /* Identifier */) { node = node.parent; } - return node.kind === 185 /* TypeQuery */; + return node.kind === 186 /* TypeQuery */; } function isNamespaceReexportDeclaration(node) { return isNamespaceExport(node) && !!node.parent.moduleSpecifier; } function isExternalModuleImportEqualsDeclaration(node) { - return node.kind === 270 /* ImportEqualsDeclaration */ && node.moduleReference.kind === 282 /* ExternalModuleReference */; + return node.kind === 271 /* ImportEqualsDeclaration */ && node.moduleReference.kind === 283 /* ExternalModuleReference */; } function getExternalModuleImportEqualsDeclarationExpression(node) { Debug.assert(isExternalModuleImportEqualsDeclaration(node)); @@ -14895,7 +14947,7 @@ ${lanes.join("\n")} return isVariableDeclarationInitializedToBareOrAccessedRequire(node) && getLeftmostAccessExpression(node.initializer).arguments[0]; } function isInternalModuleImportEqualsDeclaration(node) { - return node.kind === 270 /* ImportEqualsDeclaration */ && node.moduleReference.kind !== 282 /* ExternalModuleReference */; + return node.kind === 271 /* ImportEqualsDeclaration */ && node.moduleReference.kind !== 283 /* ExternalModuleReference */; } function isSourceFileJS(file) { return isInJSFile(file); @@ -14904,22 +14956,22 @@ ${lanes.join("\n")} return !isInJSFile(file); } function isInJSFile(node) { - return !!node && !!(node.flags & 262144 /* JavaScriptFile */); + return !!node && !!(node.flags & 524288 /* JavaScriptFile */); } function isInJsonFile(node) { - return !!node && !!(node.flags & 67108864 /* JsonFile */); + return !!node && !!(node.flags & 134217728 /* JsonFile */); } function isSourceFileNotJson(file) { return !isJsonSourceFile(file); } function isInJSDoc(node) { - return !!node && !!(node.flags & 8388608 /* JSDoc */); + return !!node && !!(node.flags & 16777216 /* JSDoc */); } function isJSDocIndexSignature(node) { return isTypeReferenceNode(node) && isIdentifier(node.typeName) && node.typeName.escapedText === "Object" && node.typeArguments && node.typeArguments.length === 2 && (node.typeArguments[0].kind === 154 /* StringKeyword */ || node.typeArguments[0].kind === 150 /* NumberKeyword */); } function isRequireCall(callExpression, requireStringLiteralLikeArgument) { - if (callExpression.kind !== 212 /* CallExpression */) { + if (callExpression.kind !== 213 /* CallExpression */) { return false; } const { expression, arguments: args } = callExpression; @@ -14996,9 +15048,9 @@ ${lanes.join("\n")} function getExpandoInitializer(initializer, isPrototypeAssignment) { if (isCallExpression(initializer)) { const e = skipParentheses(initializer.expression); - return e.kind === 217 /* FunctionExpression */ || e.kind === 218 /* ArrowFunction */ ? initializer : void 0; + return e.kind === 218 /* FunctionExpression */ || e.kind === 219 /* ArrowFunction */ ? initializer : void 0; } - if (initializer.kind === 217 /* FunctionExpression */ || initializer.kind === 230 /* ClassExpression */ || initializer.kind === 218 /* ArrowFunction */) { + if (initializer.kind === 218 /* FunctionExpression */ || initializer.kind === 231 /* ClassExpression */ || initializer.kind === 219 /* ArrowFunction */) { return initializer; } if (isObjectLiteralExpression(initializer) && (initializer.properties.length === 0 || isPrototypeAssignment)) { @@ -15189,11 +15241,11 @@ ${lanes.join("\n")} return isBinaryExpression(node) && getAssignmentDeclarationKind(node) === 3 /* PrototypeProperty */; } function isSpecialPropertyDeclaration(expr) { - return isInJSFile(expr) && expr.parent && expr.parent.kind === 243 /* ExpressionStatement */ && (!isElementAccessExpression(expr) || isLiteralLikeElementAccess(expr)) && !!getJSDocTypeTag(expr.parent); + return isInJSFile(expr) && expr.parent && expr.parent.kind === 244 /* ExpressionStatement */ && (!isElementAccessExpression(expr) || isLiteralLikeElementAccess(expr)) && !!getJSDocTypeTag(expr.parent); } function setValueDeclaration(symbol, node) { const { valueDeclaration } = symbol; - if (!valueDeclaration || !(node.flags & 16777216 /* Ambient */ && !isInJSFile(node) && !(valueDeclaration.flags & 16777216 /* Ambient */)) && (isAssignmentDeclaration(valueDeclaration) && !isAssignmentDeclaration(node)) || valueDeclaration.kind !== node.kind && isEffectiveModuleDeclaration(valueDeclaration)) { + if (!valueDeclaration || !(node.flags & 33554432 /* Ambient */ && !isInJSFile(node) && !(valueDeclaration.flags & 33554432 /* Ambient */)) && (isAssignmentDeclaration(valueDeclaration) && !isAssignmentDeclaration(node)) || valueDeclaration.kind !== node.kind && isEffectiveModuleDeclaration(valueDeclaration)) { symbol.valueDeclaration = node; } } @@ -15202,29 +15254,29 @@ ${lanes.join("\n")} return false; } const decl = symbol.valueDeclaration; - return decl.kind === 261 /* FunctionDeclaration */ || isVariableDeclaration(decl) && decl.initializer && isFunctionLike(decl.initializer); + return decl.kind === 262 /* FunctionDeclaration */ || isVariableDeclaration(decl) && decl.initializer && isFunctionLike(decl.initializer); } function tryGetModuleSpecifierFromDeclaration(node) { var _a, _b; switch (node.kind) { - case 259 /* VariableDeclaration */: - case 207 /* BindingElement */: + case 260 /* VariableDeclaration */: + case 208 /* BindingElement */: return (_a = findAncestor(node.initializer, (node2) => isRequireCall( node2, /*requireStringLiteralLikeArgument*/ true ))) == null ? void 0 : _a.arguments[0]; - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return tryCast(node.moduleSpecifier, isStringLiteralLike); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return tryCast((_b = tryCast(node.moduleReference, isExternalModuleReference)) == null ? void 0 : _b.expression, isStringLiteralLike); - case 272 /* ImportClause */: - case 279 /* NamespaceExport */: + case 273 /* ImportClause */: + case 280 /* NamespaceExport */: return tryCast(node.parent.moduleSpecifier, isStringLiteralLike); - case 273 /* NamespaceImport */: - case 280 /* ExportSpecifier */: + case 274 /* NamespaceImport */: + case 281 /* ExportSpecifier */: return tryCast(node.parent.parent.moduleSpecifier, isStringLiteralLike); - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: return tryCast(node.parent.parent.parent.moduleSpecifier, isStringLiteralLike); default: Debug.assertNever(node); @@ -15235,18 +15287,18 @@ ${lanes.join("\n")} } function tryGetImportFromModuleSpecifier(node) { switch (node.parent.kind) { - case 271 /* ImportDeclaration */: - case 277 /* ExportDeclaration */: + case 272 /* ImportDeclaration */: + case 278 /* ExportDeclaration */: return node.parent; - case 282 /* ExternalModuleReference */: + case 283 /* ExternalModuleReference */: return node.parent.parent; - case 212 /* CallExpression */: + case 213 /* CallExpression */: return isImportCall(node.parent) || isRequireCall( node.parent, /*requireStringLiteralLikeArgument*/ false ) ? node.parent : void 0; - case 200 /* LiteralType */: + case 201 /* LiteralType */: Debug.assert(isStringLiteral(node)); return tryCast(node.parent.parent, isImportTypeNode); default: @@ -15255,16 +15307,16 @@ ${lanes.join("\n")} } function getExternalModuleName(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: - case 277 /* ExportDeclaration */: + case 272 /* ImportDeclaration */: + case 278 /* ExportDeclaration */: return node.moduleSpecifier; - case 270 /* ImportEqualsDeclaration */: - return node.moduleReference.kind === 282 /* ExternalModuleReference */ ? node.moduleReference.expression : void 0; - case 204 /* ImportType */: + case 271 /* ImportEqualsDeclaration */: + return node.moduleReference.kind === 283 /* ExternalModuleReference */ ? node.moduleReference.expression : void 0; + case 205 /* ImportType */: return isLiteralImportTypeNode(node) ? node.argument.literal : void 0; - case 212 /* CallExpression */: + case 213 /* CallExpression */: return node.arguments[0]; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return node.name.kind === 11 /* StringLiteral */ ? node.name : void 0; default: return Debug.assertNever(node); @@ -15272,18 +15324,18 @@ ${lanes.join("\n")} } function getNamespaceDeclarationNode(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return node.importClause && tryCast(node.importClause.namedBindings, isNamespaceImport); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return node; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return node.exportClause && tryCast(node.exportClause, isNamespaceExport); default: return Debug.assertNever(node); } } function isDefaultImport(node) { - return node.kind === 271 /* ImportDeclaration */ && !!node.importClause && !!node.importClause.name; + return node.kind === 272 /* ImportDeclaration */ && !!node.importClause && !!node.importClause.name; } function forEachImportClauseDeclaration(node, action) { if (node.name) { @@ -15300,13 +15352,13 @@ ${lanes.join("\n")} function hasQuestionToken(node) { if (node) { switch (node.kind) { - case 168 /* Parameter */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 303 /* ShorthandPropertyAssignment */: - case 302 /* PropertyAssignment */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: + case 169 /* Parameter */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 304 /* ShorthandPropertyAssignment */: + case 303 /* PropertyAssignment */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: return node.questionToken !== void 0; } } @@ -15318,7 +15370,7 @@ ${lanes.join("\n")} return !!name && name.escapedText === "new"; } function isJSDocTypeAlias(node) { - return node.kind === 352 /* JSDocTypedefTag */ || node.kind === 344 /* JSDocCallbackTag */ || node.kind === 346 /* JSDocEnumTag */; + return node.kind === 353 /* JSDocTypedefTag */ || node.kind === 345 /* JSDocCallbackTag */ || node.kind === 347 /* JSDocEnumTag */; } function isTypeAlias(node) { return isJSDocTypeAlias(node) || isTypeAliasDeclaration(node); @@ -15331,12 +15383,12 @@ ${lanes.join("\n")} } function getSingleInitializerOfVariableStatementOrPropertyDeclaration(node) { switch (node.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: const v = getSingleVariableOfVariableStatement(node); return v && v.initializer; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return node.initializer; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return node.initializer; } } @@ -15344,26 +15396,26 @@ ${lanes.join("\n")} return isVariableStatement(node) ? firstOrUndefined(node.declarationList.declarations) : void 0; } function getNestedModuleDeclaration(node) { - return isModuleDeclaration(node) && node.body && node.body.kind === 266 /* ModuleDeclaration */ ? node.body : void 0; + return isModuleDeclaration(node) && node.body && node.body.kind === 267 /* ModuleDeclaration */ ? node.body : void 0; } function canHaveFlowNode(node) { - if (node.kind >= 242 /* FirstStatement */ && node.kind <= 258 /* LastStatement */) { + if (node.kind >= 243 /* FirstStatement */ && node.kind <= 259 /* LastStatement */) { return true; } switch (node.kind) { case 80 /* Identifier */: case 110 /* ThisKeyword */: case 108 /* SuperKeyword */: - case 165 /* QualifiedName */: - case 235 /* MetaProperty */: - case 211 /* ElementAccessExpression */: - case 210 /* PropertyAccessExpression */: - case 207 /* BindingElement */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 166 /* QualifiedName */: + case 236 /* MetaProperty */: + case 212 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 208 /* BindingElement */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return true; default: return false; @@ -15371,72 +15423,72 @@ ${lanes.join("\n")} } function canHaveJSDoc(node) { switch (node.kind) { - case 218 /* ArrowFunction */: - case 225 /* BinaryExpression */: - case 240 /* Block */: - case 251 /* BreakStatement */: - case 178 /* CallSignature */: - case 295 /* CaseClause */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 174 /* ClassStaticBlockDeclaration */: - case 175 /* Constructor */: - case 184 /* ConstructorType */: - case 179 /* ConstructSignature */: - case 250 /* ContinueStatement */: - case 258 /* DebuggerStatement */: - case 245 /* DoStatement */: - case 211 /* ElementAccessExpression */: - case 241 /* EmptyStatement */: + case 219 /* ArrowFunction */: + case 226 /* BinaryExpression */: + case 241 /* Block */: + case 252 /* BreakStatement */: + case 179 /* CallSignature */: + case 296 /* CaseClause */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 175 /* ClassStaticBlockDeclaration */: + case 176 /* Constructor */: + case 185 /* ConstructorType */: + case 180 /* ConstructSignature */: + case 251 /* ContinueStatement */: + case 259 /* DebuggerStatement */: + case 246 /* DoStatement */: + case 212 /* ElementAccessExpression */: + case 242 /* EmptyStatement */: case 1 /* EndOfFileToken */: - case 265 /* EnumDeclaration */: - case 305 /* EnumMember */: - case 276 /* ExportAssignment */: - case 277 /* ExportDeclaration */: - case 280 /* ExportSpecifier */: - case 243 /* ExpressionStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 247 /* ForStatement */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 183 /* FunctionType */: - case 176 /* GetAccessor */: + case 266 /* EnumDeclaration */: + case 306 /* EnumMember */: + case 277 /* ExportAssignment */: + case 278 /* ExportDeclaration */: + case 281 /* ExportSpecifier */: + case 244 /* ExpressionStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 248 /* ForStatement */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 184 /* FunctionType */: + case 177 /* GetAccessor */: case 80 /* Identifier */: - case 244 /* IfStatement */: - case 271 /* ImportDeclaration */: - case 270 /* ImportEqualsDeclaration */: - case 180 /* IndexSignature */: - case 263 /* InterfaceDeclaration */: - case 323 /* JSDocFunctionType */: - case 329 /* JSDocSignature */: - case 255 /* LabeledStatement */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 266 /* ModuleDeclaration */: - case 201 /* NamedTupleMember */: - case 269 /* NamespaceExportDeclaration */: - case 209 /* ObjectLiteralExpression */: - case 168 /* Parameter */: - case 216 /* ParenthesizedExpression */: - case 210 /* PropertyAccessExpression */: - case 302 /* PropertyAssignment */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 252 /* ReturnStatement */: - case 239 /* SemicolonClassElement */: - case 177 /* SetAccessor */: - case 303 /* ShorthandPropertyAssignment */: - case 304 /* SpreadAssignment */: - case 254 /* SwitchStatement */: - case 256 /* ThrowStatement */: - case 257 /* TryStatement */: - case 264 /* TypeAliasDeclaration */: - case 167 /* TypeParameter */: - case 259 /* VariableDeclaration */: - case 242 /* VariableStatement */: - case 246 /* WhileStatement */: - case 253 /* WithStatement */: + case 245 /* IfStatement */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 181 /* IndexSignature */: + case 264 /* InterfaceDeclaration */: + case 324 /* JSDocFunctionType */: + case 330 /* JSDocSignature */: + case 256 /* LabeledStatement */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 267 /* ModuleDeclaration */: + case 202 /* NamedTupleMember */: + case 270 /* NamespaceExportDeclaration */: + case 210 /* ObjectLiteralExpression */: + case 169 /* Parameter */: + case 217 /* ParenthesizedExpression */: + case 211 /* PropertyAccessExpression */: + case 303 /* PropertyAssignment */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 253 /* ReturnStatement */: + case 240 /* SemicolonClassElement */: + case 178 /* SetAccessor */: + case 304 /* ShorthandPropertyAssignment */: + case 305 /* SpreadAssignment */: + case 255 /* SwitchStatement */: + case 257 /* ThrowStatement */: + case 258 /* TryStatement */: + case 265 /* TypeAliasDeclaration */: + case 168 /* TypeParameter */: + case 260 /* VariableDeclaration */: + case 243 /* VariableStatement */: + case 247 /* WhileStatement */: + case 254 /* WithStatement */: return true; default: return false; @@ -15452,11 +15504,11 @@ ${lanes.join("\n")} if (hasJSDocNodes(node)) { result = addRange(result, filterOwnedJSDocTags(hostNode, last(node.jsDoc))); } - if (node.kind === 168 /* Parameter */) { + if (node.kind === 169 /* Parameter */) { result = addRange(result, (noCache ? getJSDocParameterTagsNoCache : getJSDocParameterTags)(node)); break; } - if (node.kind === 167 /* TypeParameter */) { + if (node.kind === 168 /* TypeParameter */) { result = addRange(result, (noCache ? getJSDocTypeParameterTagsNoCache : getJSDocTypeParameterTags)(node)); break; } @@ -15476,7 +15528,7 @@ ${lanes.join("\n")} } function getNextJSDocCommentLocation(node) { const parent2 = node.parent; - if (parent2.kind === 302 /* PropertyAssignment */ || parent2.kind === 276 /* ExportAssignment */ || parent2.kind === 171 /* PropertyDeclaration */ || parent2.kind === 243 /* ExpressionStatement */ && node.kind === 210 /* PropertyAccessExpression */ || parent2.kind === 252 /* ReturnStatement */ || getNestedModuleDeclaration(parent2) || isBinaryExpression(node) && node.operatorToken.kind === 64 /* EqualsToken */) { + if (parent2.kind === 303 /* PropertyAssignment */ || parent2.kind === 277 /* ExportAssignment */ || parent2.kind === 172 /* PropertyDeclaration */ || parent2.kind === 244 /* ExpressionStatement */ && node.kind === 211 /* PropertyAccessExpression */ || parent2.kind === 253 /* ReturnStatement */ || getNestedModuleDeclaration(parent2) || isBinaryExpression(node) && node.operatorToken.kind === 64 /* EqualsToken */) { return parent2; } else if (parent2.parent && (getSingleVariableOfVariableStatement(parent2.parent) === node || isBinaryExpression(parent2) && parent2.operatorToken.kind === 64 /* EqualsToken */)) { return parent2.parent; @@ -15546,32 +15598,32 @@ ${lanes.join("\n")} let parent2 = node.parent; while (true) { switch (parent2.kind) { - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: const binaryOperator = parent2.operatorToken.kind; return isAssignmentOperator(binaryOperator) && parent2.left === node ? binaryOperator === 64 /* EqualsToken */ || isLogicalOrCoalescingAssignmentOperator(binaryOperator) ? 1 /* Definite */ : 2 /* Compound */ : 0 /* None */; - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: const unaryOperator = parent2.operator; return unaryOperator === 46 /* PlusPlusToken */ || unaryOperator === 47 /* MinusMinusToken */ ? 2 /* Compound */ : 0 /* None */; - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: return parent2.initializer === node ? 1 /* Definite */ : 0 /* None */; - case 216 /* ParenthesizedExpression */: - case 208 /* ArrayLiteralExpression */: - case 229 /* SpreadElement */: - case 234 /* NonNullExpression */: + case 217 /* ParenthesizedExpression */: + case 209 /* ArrayLiteralExpression */: + case 230 /* SpreadElement */: + case 235 /* NonNullExpression */: node = parent2; break; - case 304 /* SpreadAssignment */: + case 305 /* SpreadAssignment */: node = parent2.parent; break; - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: if (parent2.name !== node) { return 0 /* None */; } node = parent2.parent; break; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: if (parent2.name === node) { return 0 /* None */; } @@ -15588,22 +15640,22 @@ ${lanes.join("\n")} } function isNodeWithPossibleHoistedDeclaration(node) { switch (node.kind) { - case 240 /* Block */: - case 242 /* VariableStatement */: - case 253 /* WithStatement */: - case 244 /* IfStatement */: - case 254 /* SwitchStatement */: - case 268 /* CaseBlock */: - case 295 /* CaseClause */: - case 296 /* DefaultClause */: - case 255 /* LabeledStatement */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: - case 257 /* TryStatement */: - case 298 /* CatchClause */: + case 241 /* Block */: + case 243 /* VariableStatement */: + case 254 /* WithStatement */: + case 245 /* IfStatement */: + case 255 /* SwitchStatement */: + case 269 /* CaseBlock */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: + case 256 /* LabeledStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 258 /* TryStatement */: + case 299 /* CatchClause */: return true; } return false; @@ -15618,14 +15670,14 @@ ${lanes.join("\n")} return node; } function walkUpParenthesizedTypes(node) { - return walkUp(node, 195 /* ParenthesizedType */); + return walkUp(node, 196 /* ParenthesizedType */); } function walkUpParenthesizedExpressions(node) { - return walkUp(node, 216 /* ParenthesizedExpression */); + return walkUp(node, 217 /* ParenthesizedExpression */); } function walkUpParenthesizedTypesAndGetParentAndChild(node) { let child; - while (node && node.kind === 195 /* ParenthesizedType */) { + while (node && node.kind === 196 /* ParenthesizedType */) { child = node; node = node.parent; } @@ -15641,11 +15693,11 @@ ${lanes.join("\n")} return skipOuterExpressions(node, flags); } function isDeleteTarget(node) { - if (node.kind !== 210 /* PropertyAccessExpression */ && node.kind !== 211 /* ElementAccessExpression */) { + if (node.kind !== 211 /* PropertyAccessExpression */ && node.kind !== 212 /* ElementAccessExpression */) { return false; } node = walkUpParenthesizedExpressions(node.parent); - return node && node.kind === 219 /* DeleteExpression */; + return node && node.kind === 220 /* DeleteExpression */; } function isNodeDescendantOf(node, ancestor) { while (node) { @@ -15683,55 +15735,55 @@ ${lanes.join("\n")} } } function isLiteralComputedPropertyDeclarationName(node) { - return isStringOrNumericLiteralLike(node) && node.parent.kind === 166 /* ComputedPropertyName */ && isDeclaration(node.parent.parent); + return isStringOrNumericLiteralLike(node) && node.parent.kind === 167 /* ComputedPropertyName */ && isDeclaration(node.parent.parent); } function isIdentifierName(node) { const parent2 = node.parent; switch (parent2.kind) { - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 305 /* EnumMember */: - case 302 /* PropertyAssignment */: - case 210 /* PropertyAccessExpression */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 306 /* EnumMember */: + case 303 /* PropertyAssignment */: + case 211 /* PropertyAccessExpression */: return parent2.name === node; - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: return parent2.right === node; - case 207 /* BindingElement */: - case 275 /* ImportSpecifier */: + case 208 /* BindingElement */: + case 276 /* ImportSpecifier */: return parent2.propertyName === node; - case 280 /* ExportSpecifier */: - case 290 /* JsxAttribute */: - case 284 /* JsxSelfClosingElement */: - case 285 /* JsxOpeningElement */: - case 286 /* JsxClosingElement */: + case 281 /* ExportSpecifier */: + case 291 /* JsxAttribute */: + case 285 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 287 /* JsxClosingElement */: return true; } return false; } function isAliasSymbolDeclaration(node) { - if (node.kind === 270 /* ImportEqualsDeclaration */ || node.kind === 269 /* NamespaceExportDeclaration */ || node.kind === 272 /* ImportClause */ && !!node.name || node.kind === 273 /* NamespaceImport */ || node.kind === 279 /* NamespaceExport */ || node.kind === 275 /* ImportSpecifier */ || node.kind === 280 /* ExportSpecifier */ || node.kind === 276 /* ExportAssignment */ && exportAssignmentIsAlias(node)) { + if (node.kind === 271 /* ImportEqualsDeclaration */ || node.kind === 270 /* NamespaceExportDeclaration */ || node.kind === 273 /* ImportClause */ && !!node.name || node.kind === 274 /* NamespaceImport */ || node.kind === 280 /* NamespaceExport */ || node.kind === 276 /* ImportSpecifier */ || node.kind === 281 /* ExportSpecifier */ || node.kind === 277 /* ExportAssignment */ && exportAssignmentIsAlias(node)) { return true; } return isInJSFile(node) && (isBinaryExpression(node) && getAssignmentDeclarationKind(node) === 2 /* ModuleExports */ && exportAssignmentIsAlias(node) || isPropertyAccessExpression(node) && isBinaryExpression(node.parent) && node.parent.left === node && node.parent.operatorToken.kind === 64 /* EqualsToken */ && isAliasableExpression(node.parent.right)); } function getAliasDeclarationFromName(node) { switch (node.parent.kind) { - case 272 /* ImportClause */: - case 275 /* ImportSpecifier */: - case 273 /* NamespaceImport */: - case 280 /* ExportSpecifier */: - case 276 /* ExportAssignment */: - case 270 /* ImportEqualsDeclaration */: - case 279 /* NamespaceExport */: + case 273 /* ImportClause */: + case 276 /* ImportSpecifier */: + case 274 /* NamespaceImport */: + case 281 /* ExportSpecifier */: + case 277 /* ExportAssignment */: + case 271 /* ImportEqualsDeclaration */: + case 280 /* NamespaceExport */: return node.parent; - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: do { node = node.parent; - } while (node.parent.kind === 165 /* QualifiedName */); + } while (node.parent.kind === 166 /* QualifiedName */); return getAliasDeclarationFromName(node); } } @@ -15746,7 +15798,7 @@ ${lanes.join("\n")} return isExportAssignment(node) ? node.expression : node.right; } function getPropertyAssignmentAliasLikeExpression(node) { - return node.kind === 303 /* ShorthandPropertyAssignment */ ? node.name : node.kind === 302 /* PropertyAssignment */ ? node.initializer : node.parent.right; + return node.kind === 304 /* ShorthandPropertyAssignment */ ? node.name : node.kind === 303 /* PropertyAssignment */ ? node.initializer : node.parent.right; } function getEffectiveBaseTypeNode(node) { const baseType = getClassExtendsHeritageElement(node); @@ -15797,7 +15849,7 @@ ${lanes.join("\n")} return void 0; } function isKeyword(token) { - return 83 /* FirstKeyword */ <= token && token <= 164 /* LastKeyword */; + return 83 /* FirstKeyword */ <= token && token <= 165 /* LastKeyword */; } function isPunctuation(token) { return 19 /* FirstPunctuation */ <= token && token <= 79 /* LastPunctuation */; @@ -15806,7 +15858,7 @@ ${lanes.join("\n")} return isKeyword(token) || isPunctuation(token); } function isContextualKeyword(token) { - return 128 /* FirstContextualKeyword */ <= token && token <= 164 /* LastContextualKeyword */; + return 128 /* FirstContextualKeyword */ <= token && token <= 165 /* LastContextualKeyword */; } function isNonContextualKeyword(token) { return isKeyword(token) && !isContextualKeyword(token); @@ -15835,13 +15887,13 @@ ${lanes.join("\n")} } let flags = 0 /* Normal */; switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 173 /* MethodDeclaration */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 174 /* MethodDeclaration */: if (node.asteriskToken) { flags |= 1 /* Generator */; } - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: if (hasSyntacticModifier(node, 512 /* Async */)) { flags |= 2 /* Async */; } @@ -15854,10 +15906,10 @@ ${lanes.join("\n")} } function isAsyncFunction(node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: return node.body !== void 0 && node.asteriskToken === void 0 && hasSyntacticModifier(node, 512 /* Async */); } return false; @@ -15873,7 +15925,7 @@ ${lanes.join("\n")} return !!name && isDynamicName(name); } function isDynamicName(name) { - if (!(name.kind === 166 /* ComputedPropertyName */ || name.kind === 211 /* ElementAccessExpression */)) { + if (!(name.kind === 167 /* ComputedPropertyName */ || name.kind === 212 /* ElementAccessExpression */)) { return false; } const expr = isElementAccessExpression(name) ? skipParentheses(name.argumentExpression) : name.expression; @@ -15887,7 +15939,7 @@ ${lanes.join("\n")} case 11 /* StringLiteral */: case 9 /* NumericLiteral */: return escapeLeadingUnderscores(name.text); - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: const nameExpression = name.expression; if (isStringOrNumericLiteralLike(nameExpression)) { return escapeLeadingUnderscores(nameExpression.text); @@ -15898,7 +15950,7 @@ ${lanes.join("\n")} return nameExpression.operand.text; } return void 0; - case 294 /* JsxNamespacedName */: + case 295 /* JsxNamespacedName */: return getEscapedTextOfJsxNamespacedName(name); default: return Debug.assertNever(name); @@ -15942,13 +15994,17 @@ ${lanes.join("\n")} function isAnonymousFunctionDefinition(node, cb) { node = skipOuterExpressions(node); switch (node.kind) { - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: + case 231 /* ClassExpression */: + if (classHasDeclaredOrExplicitlyAssignedName(node)) { + return false; + } + break; + case 218 /* FunctionExpression */: if (node.name) { return false; } break; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: break; default: return false; @@ -15957,19 +16013,19 @@ ${lanes.join("\n")} } function isNamedEvaluationSource(node) { switch (node.kind) { - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return !isProtoSetter(node.name); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return !!node.objectAssignmentInitializer; - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return isIdentifier(node.name) && !!node.initializer; - case 168 /* Parameter */: + case 169 /* Parameter */: return isIdentifier(node.name) && !!node.initializer && !node.dotDotDotToken; - case 207 /* BindingElement */: + case 208 /* BindingElement */: return isIdentifier(node.name) && !!node.initializer && !node.dotDotDotToken; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return !!node.initializer; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: switch (node.operatorToken.kind) { case 64 /* EqualsToken */: case 77 /* AmpersandAmpersandEqualsToken */: @@ -15978,7 +16034,7 @@ ${lanes.join("\n")} return isIdentifier(node.left); } break; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return true; } return false; @@ -15987,18 +16043,18 @@ ${lanes.join("\n")} if (!isNamedEvaluationSource(node)) return false; switch (node.kind) { - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return isAnonymousFunctionDefinition(node.initializer, cb); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return isAnonymousFunctionDefinition(node.objectAssignmentInitializer, cb); - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 207 /* BindingElement */: - case 171 /* PropertyDeclaration */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 208 /* BindingElement */: + case 172 /* PropertyDeclaration */: return isAnonymousFunctionDefinition(node.initializer, cb); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return isAnonymousFunctionDefinition(node.right, cb); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return isAnonymousFunctionDefinition(node.expression, cb); } } @@ -16007,17 +16063,17 @@ ${lanes.join("\n")} } function isParameterDeclaration(node) { const root = getRootDeclaration(node); - return root.kind === 168 /* Parameter */; + return root.kind === 169 /* Parameter */; } function getRootDeclaration(node) { - while (node.kind === 207 /* BindingElement */) { + while (node.kind === 208 /* BindingElement */) { node = node.parent.parent; } return node; } function nodeStartsNewLexicalEnvironment(node) { const kind = node.kind; - return kind === 175 /* Constructor */ || kind === 217 /* FunctionExpression */ || kind === 261 /* FunctionDeclaration */ || kind === 218 /* ArrowFunction */ || kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */ || kind === 266 /* ModuleDeclaration */ || kind === 311 /* SourceFile */; + return kind === 176 /* Constructor */ || kind === 218 /* FunctionExpression */ || kind === 262 /* FunctionDeclaration */ || kind === 219 /* ArrowFunction */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 267 /* ModuleDeclaration */ || kind === 312 /* SourceFile */; } function nodeIsSynthesized(range) { return positionIsSynthesized(range.pos) || positionIsSynthesized(range.end); @@ -16027,22 +16083,22 @@ ${lanes.join("\n")} } function getExpressionAssociativity(expression) { const operator = getOperator(expression); - const hasArguments = expression.kind === 213 /* NewExpression */ && expression.arguments !== void 0; + const hasArguments = expression.kind === 214 /* NewExpression */ && expression.arguments !== void 0; return getOperatorAssociativity(expression.kind, operator, hasArguments); } function getOperatorAssociativity(kind, operator, hasArguments) { switch (kind) { - case 213 /* NewExpression */: + case 214 /* NewExpression */: return hasArguments ? 0 /* Left */ : 1 /* Right */; - case 223 /* PrefixUnaryExpression */: - case 220 /* TypeOfExpression */: - case 221 /* VoidExpression */: - case 219 /* DeleteExpression */: - case 222 /* AwaitExpression */: - case 226 /* ConditionalExpression */: - case 228 /* YieldExpression */: + case 224 /* PrefixUnaryExpression */: + case 221 /* TypeOfExpression */: + case 222 /* VoidExpression */: + case 220 /* DeleteExpression */: + case 223 /* AwaitExpression */: + case 227 /* ConditionalExpression */: + case 229 /* YieldExpression */: return 1 /* Right */; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: switch (operator) { case 43 /* AsteriskAsteriskToken */: case 64 /* EqualsToken */: @@ -16068,13 +16124,13 @@ ${lanes.join("\n")} } function getExpressionPrecedence(expression) { const operator = getOperator(expression); - const hasArguments = expression.kind === 213 /* NewExpression */ && expression.arguments !== void 0; + const hasArguments = expression.kind === 214 /* NewExpression */ && expression.arguments !== void 0; return getOperatorPrecedence(expression.kind, operator, hasArguments); } function getOperator(expression) { - if (expression.kind === 225 /* BinaryExpression */) { + if (expression.kind === 226 /* BinaryExpression */) { return expression.operatorToken.kind; - } else if (expression.kind === 223 /* PrefixUnaryExpression */ || expression.kind === 224 /* PostfixUnaryExpression */) { + } else if (expression.kind === 224 /* PrefixUnaryExpression */ || expression.kind === 225 /* PostfixUnaryExpression */) { return expression.operator; } else { return expression.kind; @@ -16082,15 +16138,15 @@ ${lanes.join("\n")} } function getOperatorPrecedence(nodeKind, operatorKind, hasArguments) { switch (nodeKind) { - case 360 /* CommaListExpression */: + case 361 /* CommaListExpression */: return 0 /* Comma */; - case 229 /* SpreadElement */: + case 230 /* SpreadElement */: return 1 /* Spread */; - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: return 2 /* Yield */; - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: return 4 /* Conditional */; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: switch (operatorKind) { case 28 /* CommaToken */: return 0 /* Comma */; @@ -16114,27 +16170,27 @@ ${lanes.join("\n")} default: return getBinaryOperatorPrecedence(operatorKind); } - case 215 /* TypeAssertionExpression */: - case 234 /* NonNullExpression */: - case 223 /* PrefixUnaryExpression */: - case 220 /* TypeOfExpression */: - case 221 /* VoidExpression */: - case 219 /* DeleteExpression */: - case 222 /* AwaitExpression */: + case 216 /* TypeAssertionExpression */: + case 235 /* NonNullExpression */: + case 224 /* PrefixUnaryExpression */: + case 221 /* TypeOfExpression */: + case 222 /* VoidExpression */: + case 220 /* DeleteExpression */: + case 223 /* AwaitExpression */: return 16 /* Unary */; - case 224 /* PostfixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return 17 /* Update */; - case 212 /* CallExpression */: + case 213 /* CallExpression */: return 18 /* LeftHandSide */; - case 213 /* NewExpression */: + case 214 /* NewExpression */: return hasArguments ? 19 /* Member */ : 18 /* LeftHandSide */; - case 214 /* TaggedTemplateExpression */: - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: - case 235 /* MetaProperty */: + case 215 /* TaggedTemplateExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + case 236 /* MetaProperty */: return 19 /* Member */; - case 233 /* AsExpression */: - case 237 /* SatisfiesExpression */: + case 234 /* AsExpression */: + case 238 /* SatisfiesExpression */: return 11 /* Relational */; case 110 /* ThisKeyword */: case 108 /* SuperKeyword */: @@ -16146,19 +16202,19 @@ ${lanes.join("\n")} case 9 /* NumericLiteral */: case 10 /* BigIntLiteral */: case 11 /* StringLiteral */: - case 208 /* ArrayLiteralExpression */: - case 209 /* ObjectLiteralExpression */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 230 /* ClassExpression */: + case 209 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 231 /* ClassExpression */: case 14 /* RegularExpressionLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: - case 227 /* TemplateExpression */: - case 216 /* ParenthesizedExpression */: - case 231 /* OmittedExpression */: - case 283 /* JsxElement */: - case 284 /* JsxSelfClosingElement */: - case 287 /* JsxFragment */: + case 228 /* TemplateExpression */: + case 217 /* ParenthesizedExpression */: + case 232 /* OmittedExpression */: + case 284 /* JsxElement */: + case 285 /* JsxSelfClosingElement */: + case 288 /* JsxFragment */: return 20 /* Primary */; default: return -1 /* Invalid */; @@ -16211,7 +16267,7 @@ ${lanes.join("\n")} function getSemanticJsxChildren(children) { return filter(children, (i) => { switch (i.kind) { - case 293 /* JsxExpression */: + case 294 /* JsxExpression */: return !!i.expression; case 12 /* JsxText */: return !i.containsOnlyTriviaWhiteSpaces; @@ -16680,6 +16736,12 @@ ${lanes.join("\n")} function isThisIdentifier(node) { return !!node && node.kind === 80 /* Identifier */ && identifierIsThisKeyword(node); } + function isInTypeQuery(node) { + return !!findAncestor( + node, + (n) => n.kind === 186 /* TypeQuery */ ? true : n.kind === 80 /* Identifier */ || n.kind === 166 /* QualifiedName */ ? false : "quit" + ); + } function isThisInTypeQuery(node) { if (!isThisIdentifier(node)) { return false; @@ -16687,7 +16749,7 @@ ${lanes.join("\n")} while (isQualifiedName(node.parent) && node.parent.left === node) { node = node.parent; } - return node.parent.kind === 185 /* TypeQuery */; + return node.parent.kind === 186 /* TypeQuery */; } function identifierIsThisKeyword(id) { return id.escapedText === "this"; @@ -16699,9 +16761,9 @@ ${lanes.join("\n")} let setAccessor; if (hasDynamicName(accessor)) { firstAccessor = accessor; - if (accessor.kind === 176 /* GetAccessor */) { + if (accessor.kind === 177 /* GetAccessor */) { getAccessor = accessor; - } else if (accessor.kind === 177 /* SetAccessor */) { + } else if (accessor.kind === 178 /* SetAccessor */) { setAccessor = accessor; } else { Debug.fail("Accessor has wrong kind"); @@ -16717,10 +16779,10 @@ ${lanes.join("\n")} } else if (!secondAccessor) { secondAccessor = member; } - if (member.kind === 176 /* GetAccessor */ && !getAccessor) { + if (member.kind === 177 /* GetAccessor */ && !getAccessor) { getAccessor = member; } - if (member.kind === 177 /* SetAccessor */ && !setAccessor) { + if (member.kind === 178 /* SetAccessor */ && !setAccessor) { setAccessor = member; } } @@ -16752,7 +16814,7 @@ ${lanes.join("\n")} return flatMap(getJSDocTags(node), (tag) => isNonTypeAliasTemplate(tag) ? tag.typeParameters : void 0); } function isNonTypeAliasTemplate(tag) { - return isJSDocTemplateTag(tag) && !(tag.parent.kind === 326 /* JSDoc */ && (tag.parent.tags.some(isJSDocTypeAlias) || tag.parent.tags.some(isJSDocOverloadTag))); + return isJSDocTemplateTag(tag) && !(tag.parent.kind === 327 /* JSDoc */ && (tag.parent.tags.some(isJSDocTypeAlias) || tag.parent.tags.some(isJSDocOverloadTag))); } function getEffectiveSetAccessorTypeAnnotationNode(node) { const parameter = getSetAccessorValueParameter(node); @@ -16942,7 +17004,7 @@ ${lanes.join("\n")} return getSyntacticModifierFlags(node) & flags; } function getModifierFlagsWorker(node, includeJSDoc, alwaysIncludeJSDoc) { - if (node.kind >= 0 /* FirstToken */ && node.kind <= 164 /* LastToken */) { + if (node.kind >= 0 /* FirstToken */ && node.kind <= 165 /* LastToken */) { return 0 /* None */; } if (!(node.modifierFlagsCache & 536870912 /* HasComputedFlags */)) { @@ -17001,7 +17063,7 @@ ${lanes.join("\n")} } function getSyntacticModifierFlagsNoCache(node) { let flags = canHaveModifiers(node) ? modifiersToFlags(node.modifiers) : 0 /* None */; - if (node.flags & 4 /* NestedNamespace */ || node.kind === 80 /* Identifier */ && node.flags & 2048 /* IdentifierIsInJSDocNamespace */) { + if (node.flags & 8 /* NestedNamespace */ || node.kind === 80 /* Identifier */ && node.flags & 4096 /* IdentifierIsInJSDocNamespace */) { flags |= 1 /* Export */; } return flags; @@ -17041,13 +17103,13 @@ ${lanes.join("\n")} return 512 /* Async */; case 148 /* ReadonlyKeyword */: return 64 /* Readonly */; - case 163 /* OverrideKeyword */: + case 164 /* OverrideKeyword */: return 16384 /* Override */; case 103 /* InKeyword */: return 32768 /* In */; case 147 /* OutKeyword */: return 65536 /* Out */; - case 169 /* Decorator */: + case 170 /* Decorator */: return 131072 /* Decorator */; } return 0 /* None */; @@ -17104,7 +17166,7 @@ ${lanes.join("\n")} true )) { const kind = node.left.kind; - return kind === 209 /* ObjectLiteralExpression */ || kind === 208 /* ArrayLiteralExpression */; + return kind === 210 /* ObjectLiteralExpression */ || kind === 209 /* ArrayLiteralExpression */; } return false; } @@ -17118,12 +17180,12 @@ ${lanes.join("\n")} switch (node.kind) { case 80 /* Identifier */: return node; - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: do { node = node.left; } while (node.kind !== 80 /* Identifier */); return node; - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: do { node = node.expression; } while (node.kind !== 80 /* Identifier */); @@ -17131,7 +17193,7 @@ ${lanes.join("\n")} } } function isDottedName(node) { - return node.kind === 80 /* Identifier */ || node.kind === 110 /* ThisKeyword */ || node.kind === 108 /* SuperKeyword */ || node.kind === 235 /* MetaProperty */ || node.kind === 210 /* PropertyAccessExpression */ && isDottedName(node.expression) || node.kind === 216 /* ParenthesizedExpression */ && isDottedName(node.expression); + return node.kind === 80 /* Identifier */ || node.kind === 110 /* ThisKeyword */ || node.kind === 108 /* SuperKeyword */ || node.kind === 236 /* MetaProperty */ || node.kind === 211 /* PropertyAccessExpression */ && isDottedName(node.expression) || node.kind === 217 /* ParenthesizedExpression */ && isDottedName(node.expression); } function isPropertyAccessEntityNameExpression(node) { return isPropertyAccessExpression(node) && isIdentifier(node.name) && isEntityNameExpression(node.expression); @@ -17158,7 +17220,7 @@ ${lanes.join("\n")} return isBindableStaticAccessExpression(node) && getElementOrPropertyAccessName(node) === "prototype"; } function isRightSideOfQualifiedNameOrPropertyAccess(node) { - return node.parent.kind === 165 /* QualifiedName */ && node.parent.right === node || node.parent.kind === 210 /* PropertyAccessExpression */ && node.parent.name === node; + return node.parent.kind === 166 /* QualifiedName */ && node.parent.right === node || node.parent.kind === 211 /* PropertyAccessExpression */ && node.parent.name === node || node.parent.kind === 236 /* MetaProperty */ && node.parent.name === node; } function isRightSideOfAccessExpression(node) { return isPropertyAccessExpression(node.parent) && node.parent.name === node || isElementAccessExpression(node.parent) && node.parent.argumentExpression === node; @@ -17167,10 +17229,10 @@ ${lanes.join("\n")} return isQualifiedName(node.parent) && node.parent.right === node || isPropertyAccessExpression(node.parent) && node.parent.name === node || isJSDocMemberName(node.parent) && node.parent.right === node; } function isEmptyObjectLiteral(expression) { - return expression.kind === 209 /* ObjectLiteralExpression */ && expression.properties.length === 0; + return expression.kind === 210 /* ObjectLiteralExpression */ && expression.properties.length === 0; } function isEmptyArrayLiteral(expression) { - return expression.kind === 208 /* ArrayLiteralExpression */ && expression.elements.length === 0; + return expression.kind === 209 /* ArrayLiteralExpression */ && expression.elements.length === 0; } function getLocalSymbolForExportDefault(symbol) { if (!isExportDefaultSymbol(symbol) || !symbol.declarations) @@ -17436,8 +17498,8 @@ ${lanes.join("\n")} const parseNode = getParseTreeNode(node); if (parseNode) { switch (parseNode.parent.kind) { - case 265 /* EnumDeclaration */: - case 266 /* ModuleDeclaration */: + case 266 /* EnumDeclaration */: + case 267 /* ModuleDeclaration */: return parseNode === parseNode.parent.name; } } @@ -17490,24 +17552,24 @@ ${lanes.join("\n")} function accessKind(node) { const { parent: parent2 } = node; switch (parent2 == null ? void 0 : parent2.kind) { - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return accessKind(parent2); - case 224 /* PostfixUnaryExpression */: - case 223 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: const { operator } = parent2; return operator === 46 /* PlusPlusToken */ || operator === 47 /* MinusMinusToken */ ? 2 /* ReadWrite */ : 0 /* Read */; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: const { left, operatorToken } = parent2; return left === node && isAssignmentOperator(operatorToken.kind) ? operatorToken.kind === 64 /* EqualsToken */ ? 1 /* Write */ : 2 /* ReadWrite */ : 0 /* Read */; - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return parent2.name !== node ? 0 /* Read */ : accessKind(parent2); - case 302 /* PropertyAssignment */: { + case 303 /* PropertyAssignment */: { const parentAccess = accessKind(parent2.parent); return node === parent2.name ? reverseAccessKind(parentAccess) : parentAccess; } - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return node === parent2.objectAssignmentInitializer ? 0 /* Read */ : accessKind(parent2.parent); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return accessKind(parent2); default: return 0 /* Read */; @@ -17620,16 +17682,16 @@ ${lanes.join("\n")} return isClassLike(node) || isInterfaceDeclaration(node) || isTypeLiteralNode(node); } function isTypeNodeKind(kind) { - return kind >= 181 /* FirstTypeNode */ && kind <= 204 /* LastTypeNode */ || kind === 133 /* AnyKeyword */ || kind === 159 /* UnknownKeyword */ || kind === 150 /* NumberKeyword */ || kind === 162 /* BigIntKeyword */ || kind === 151 /* ObjectKeyword */ || kind === 136 /* BooleanKeyword */ || kind === 154 /* StringKeyword */ || kind === 155 /* SymbolKeyword */ || kind === 116 /* VoidKeyword */ || kind === 157 /* UndefinedKeyword */ || kind === 146 /* NeverKeyword */ || kind === 141 /* IntrinsicKeyword */ || kind === 232 /* ExpressionWithTypeArguments */ || kind === 318 /* JSDocAllType */ || kind === 319 /* JSDocUnknownType */ || kind === 320 /* JSDocNullableType */ || kind === 321 /* JSDocNonNullableType */ || kind === 322 /* JSDocOptionalType */ || kind === 323 /* JSDocFunctionType */ || kind === 324 /* JSDocVariadicType */; + return kind >= 182 /* FirstTypeNode */ && kind <= 205 /* LastTypeNode */ || kind === 133 /* AnyKeyword */ || kind === 159 /* UnknownKeyword */ || kind === 150 /* NumberKeyword */ || kind === 163 /* BigIntKeyword */ || kind === 151 /* ObjectKeyword */ || kind === 136 /* BooleanKeyword */ || kind === 154 /* StringKeyword */ || kind === 155 /* SymbolKeyword */ || kind === 116 /* VoidKeyword */ || kind === 157 /* UndefinedKeyword */ || kind === 146 /* NeverKeyword */ || kind === 141 /* IntrinsicKeyword */ || kind === 233 /* ExpressionWithTypeArguments */ || kind === 319 /* JSDocAllType */ || kind === 320 /* JSDocUnknownType */ || kind === 321 /* JSDocNullableType */ || kind === 322 /* JSDocNonNullableType */ || kind === 323 /* JSDocOptionalType */ || kind === 324 /* JSDocFunctionType */ || kind === 325 /* JSDocVariadicType */; } function isAccessExpression(node) { - return node.kind === 210 /* PropertyAccessExpression */ || node.kind === 211 /* ElementAccessExpression */; + return node.kind === 211 /* PropertyAccessExpression */ || node.kind === 212 /* ElementAccessExpression */; } function getNameOfAccessExpression(node) { - if (node.kind === 210 /* PropertyAccessExpression */) { + if (node.kind === 211 /* PropertyAccessExpression */) { return node.name; } - Debug.assert(node.kind === 211 /* ElementAccessExpression */); + Debug.assert(node.kind === 212 /* ElementAccessExpression */); return node.argumentExpression; } function isBundleFileTextLike(section) { @@ -17642,7 +17704,7 @@ ${lanes.join("\n")} } } function isNamedImportsOrExports(node) { - return node.kind === 274 /* NamedImports */ || node.kind === 278 /* NamedExports */; + return node.kind === 275 /* NamedImports */ || node.kind === 279 /* NamedExports */; } function getLeftmostAccessExpression(expr) { while (isAccessExpression(expr)) { @@ -17655,12 +17717,12 @@ ${lanes.join("\n")} return walkAccessExpression(name.parent); } function walkAccessExpression(access) { - if (access.kind === 210 /* PropertyAccessExpression */) { + if (access.kind === 211 /* PropertyAccessExpression */) { const res = action(access.name); if (res !== void 0) { return res; } - } else if (access.kind === 211 /* ElementAccessExpression */) { + } else if (access.kind === 212 /* ElementAccessExpression */) { if (isIdentifier(access.argumentExpression) || isStringLiteralLike(access.argumentExpression)) { const res = action(access.argumentExpression); if (res !== void 0) { @@ -17682,28 +17744,28 @@ ${lanes.join("\n")} function getLeftmostExpression(node, stopAtCallExpressions) { while (true) { switch (node.kind) { - case 224 /* PostfixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: node = node.operand; continue; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: node = node.left; continue; - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: node = node.condition; continue; - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: node = node.tag; continue; - case 212 /* CallExpression */: + case 213 /* CallExpression */: if (stopAtCallExpressions) { return node; } - case 233 /* AsExpression */: - case 211 /* ElementAccessExpression */: - case 210 /* PropertyAccessExpression */: - case 234 /* NonNullExpression */: - case 359 /* PartiallyEmittedExpression */: - case 237 /* SatisfiesExpression */: + case 234 /* AsExpression */: + case 212 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 235 /* NonNullExpression */: + case 360 /* PartiallyEmittedExpression */: + case 238 /* SatisfiesExpression */: node = node.expression; continue; } @@ -18161,6 +18223,9 @@ ${lanes.join("\n")} function getUseDefineForClassFields(compilerOptions) { return compilerOptions.useDefineForClassFields === void 0 ? getEmitScriptTarget(compilerOptions) >= 9 /* ES2022 */ : compilerOptions.useDefineForClassFields; } + function getEmitStandardClassFields(compilerOptions) { + return compilerOptions.useDefineForClassFields !== false && getEmitScriptTarget(compilerOptions) >= 9 /* ES2022 */; + } function compilerOptionsAffectSemanticDiagnostics(newOptions, oldOptions) { return optionsHaveChanges(oldOptions, newOptions, semanticDiagnosticsOptionDeclarations); } @@ -18346,7 +18411,7 @@ ${lanes.join("\n")} function replaceWildcardCharacter(match, singleAsteriskRegexFragment) { return match === "*" ? singleAsteriskRegexFragment : match === "?" ? "[^/]" : "\\" + match; } - function getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames, currentDirectory) { + function getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames2, currentDirectory) { path = normalizePath(path); currentDirectory = normalizePath(currentDirectory); const absolutePath = combinePaths(currentDirectory, path); @@ -18355,22 +18420,22 @@ ${lanes.join("\n")} includeFilePattern: getRegularExpressionForWildcard(includes, absolutePath, "files"), includeDirectoryPattern: getRegularExpressionForWildcard(includes, absolutePath, "directories"), excludePattern: getRegularExpressionForWildcard(excludes, absolutePath, "exclude"), - basePaths: getBasePaths(path, includes, useCaseSensitiveFileNames) + basePaths: getBasePaths(path, includes, useCaseSensitiveFileNames2) }; } - function getRegexFromPattern(pattern, useCaseSensitiveFileNames) { - return new RegExp(pattern, useCaseSensitiveFileNames ? "" : "i"); + function getRegexFromPattern(pattern, useCaseSensitiveFileNames2) { + return new RegExp(pattern, useCaseSensitiveFileNames2 ? "" : "i"); } - function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath) { + function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames2, currentDirectory, depth, getFileSystemEntries, realpath) { path = normalizePath(path); currentDirectory = normalizePath(currentDirectory); - const patterns = getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames, currentDirectory); - const includeFileRegexes = patterns.includeFilePatterns && patterns.includeFilePatterns.map((pattern) => getRegexFromPattern(pattern, useCaseSensitiveFileNames)); - const includeDirectoryRegex = patterns.includeDirectoryPattern && getRegexFromPattern(patterns.includeDirectoryPattern, useCaseSensitiveFileNames); - const excludeRegex = patterns.excludePattern && getRegexFromPattern(patterns.excludePattern, useCaseSensitiveFileNames); + const patterns = getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames2, currentDirectory); + const includeFileRegexes = patterns.includeFilePatterns && patterns.includeFilePatterns.map((pattern) => getRegexFromPattern(pattern, useCaseSensitiveFileNames2)); + const includeDirectoryRegex = patterns.includeDirectoryPattern && getRegexFromPattern(patterns.includeDirectoryPattern, useCaseSensitiveFileNames2); + const excludeRegex = patterns.excludePattern && getRegexFromPattern(patterns.excludePattern, useCaseSensitiveFileNames2); const results = includeFileRegexes ? includeFileRegexes.map(() => []) : [[]]; const visited = /* @__PURE__ */ new Map(); - const toCanonical = createGetCanonicalFileName(useCaseSensitiveFileNames); + const toCanonical = createGetCanonicalFileName(useCaseSensitiveFileNames2); for (const basePath of patterns.basePaths) { visitDirectory(basePath, combinePaths(currentDirectory, basePath), depth); } @@ -18412,7 +18477,7 @@ ${lanes.join("\n")} } } } - function getBasePaths(path, includes, useCaseSensitiveFileNames) { + function getBasePaths(path, includes, useCaseSensitiveFileNames2) { const basePaths = [path]; if (includes) { const includeBasePaths = []; @@ -18420,9 +18485,9 @@ ${lanes.join("\n")} const absolute = isRootedDiskPath(include) ? include : normalizePath(combinePaths(path, include)); includeBasePaths.push(getIncludeBasePath(absolute)); } - includeBasePaths.sort(getStringComparer(!useCaseSensitiveFileNames)); + includeBasePaths.sort(getStringComparer(!useCaseSensitiveFileNames2)); for (const includeBasePath of includeBasePaths) { - if (every(basePaths, (basePath) => !containsPath(basePath, includeBasePath, path, !useCaseSensitiveFileNames))) { + if (every(basePaths, (basePath) => !containsPath(basePath, includeBasePath, path, !useCaseSensitiveFileNames2))) { basePaths.push(includeBasePath); } } @@ -18781,39 +18846,39 @@ ${lanes.join("\n")} return success && result === 10 /* BigIntLiteral */ && scanner2.getTokenEnd() === s.length + 1 && !(flags & 512 /* ContainsSeparator */) && (!roundTripOnly || s === pseudoBigIntToString({ negative, base10Value: parsePseudoBigInt(scanner2.getTokenValue()) })); } function isValidTypeOnlyAliasUseSite(useSite) { - return !!(useSite.flags & 16777216 /* Ambient */) || isPartOfTypeQuery(useSite) || isIdentifierInNonEmittingHeritageClause(useSite) || isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(useSite) || !(isExpressionNode(useSite) || isShorthandPropertyNameUseSite(useSite)); + return !!(useSite.flags & 33554432 /* Ambient */) || isPartOfTypeQuery(useSite) || isIdentifierInNonEmittingHeritageClause(useSite) || isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(useSite) || !(isExpressionNode(useSite) || isShorthandPropertyNameUseSite(useSite)); } function isShorthandPropertyNameUseSite(useSite) { return isIdentifier(useSite) && isShorthandPropertyAssignment(useSite.parent) && useSite.parent.name === useSite; } function isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(node) { - while (node.kind === 80 /* Identifier */ || node.kind === 210 /* PropertyAccessExpression */) { + while (node.kind === 80 /* Identifier */ || node.kind === 211 /* PropertyAccessExpression */) { node = node.parent; } - if (node.kind !== 166 /* ComputedPropertyName */) { + if (node.kind !== 167 /* ComputedPropertyName */) { return false; } if (hasSyntacticModifier(node.parent, 256 /* Abstract */)) { return true; } const containerKind = node.parent.parent.kind; - return containerKind === 263 /* InterfaceDeclaration */ || containerKind === 186 /* TypeLiteral */; + return containerKind === 264 /* InterfaceDeclaration */ || containerKind === 187 /* TypeLiteral */; } function isIdentifierInNonEmittingHeritageClause(node) { if (node.kind !== 80 /* Identifier */) return false; const heritageClause = findAncestor(node.parent, (parent2) => { switch (parent2.kind) { - case 297 /* HeritageClause */: + case 298 /* HeritageClause */: return true; - case 210 /* PropertyAccessExpression */: - case 232 /* ExpressionWithTypeArguments */: + case 211 /* PropertyAccessExpression */: + case 233 /* ExpressionWithTypeArguments */: return false; default: return "quit"; } }); - return (heritageClause == null ? void 0 : heritageClause.token) === 119 /* ImplementsKeyword */ || (heritageClause == null ? void 0 : heritageClause.parent.kind) === 263 /* InterfaceDeclaration */; + return (heritageClause == null ? void 0 : heritageClause.token) === 119 /* ImplementsKeyword */ || (heritageClause == null ? void 0 : heritageClause.parent.kind) === 264 /* InterfaceDeclaration */; } function isIdentifierTypeReference(node) { return isTypeReferenceNode(node) && isIdentifier(node.typeName); @@ -18925,20 +18990,20 @@ ${lanes.join("\n")} if (!node.parent) return void 0; switch (node.kind) { - case 167 /* TypeParameter */: + case 168 /* TypeParameter */: const { parent: parent3 } = node; - return parent3.kind === 194 /* InferType */ ? void 0 : parent3.typeParameters; - case 168 /* Parameter */: + return parent3.kind === 195 /* InferType */ ? void 0 : parent3.typeParameters; + case 169 /* Parameter */: return node.parent.parameters; - case 203 /* TemplateLiteralTypeSpan */: + case 204 /* TemplateLiteralTypeSpan */: return node.parent.templateSpans; - case 238 /* TemplateSpan */: + case 239 /* TemplateSpan */: return node.parent.templateSpans; - case 169 /* Decorator */: { + case 170 /* Decorator */: { const { parent: parent4 } = node; return canHaveDecorators(parent4) ? parent4.modifiers : void 0; } - case 297 /* HeritageClause */: + case 298 /* HeritageClause */: return node.parent.heritageClauses; } const { parent: parent2 } = node; @@ -18946,43 +19011,43 @@ ${lanes.join("\n")} return isJSDocTypeLiteral(node.parent) ? void 0 : node.parent.tags; } switch (parent2.kind) { - case 186 /* TypeLiteral */: - case 263 /* InterfaceDeclaration */: + case 187 /* TypeLiteral */: + case 264 /* InterfaceDeclaration */: return isTypeElement(node) ? parent2.members : void 0; - case 191 /* UnionType */: - case 192 /* IntersectionType */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: return parent2.types; - case 188 /* TupleType */: - case 208 /* ArrayLiteralExpression */: - case 360 /* CommaListExpression */: - case 274 /* NamedImports */: - case 278 /* NamedExports */: + case 189 /* TupleType */: + case 209 /* ArrayLiteralExpression */: + case 361 /* CommaListExpression */: + case 275 /* NamedImports */: + case 279 /* NamedExports */: return parent2.elements; - case 209 /* ObjectLiteralExpression */: - case 291 /* JsxAttributes */: + case 210 /* ObjectLiteralExpression */: + case 292 /* JsxAttributes */: return parent2.properties; - case 212 /* CallExpression */: - case 213 /* NewExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: return isTypeNode(node) ? parent2.typeArguments : parent2.expression === node ? void 0 : parent2.arguments; - case 283 /* JsxElement */: - case 287 /* JsxFragment */: + case 284 /* JsxElement */: + case 288 /* JsxFragment */: return isJsxChild(node) ? parent2.children : void 0; - case 285 /* JsxOpeningElement */: - case 284 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: return isTypeNode(node) ? parent2.typeArguments : void 0; - case 240 /* Block */: - case 295 /* CaseClause */: - case 296 /* DefaultClause */: - case 267 /* ModuleBlock */: + case 241 /* Block */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: + case 268 /* ModuleBlock */: return parent2.statements; - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: return parent2.clauses; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return isClassElement(node) ? parent2.members : void 0; - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return isEnumMember(node) ? parent2.members : void 0; - case 311 /* SourceFile */: + case 312 /* SourceFile */: return parent2.statements; } } @@ -18991,7 +19056,7 @@ ${lanes.join("\n")} if (some(node.parameters, (p) => !getEffectiveTypeAnnotationNode(p))) { return true; } - if (node.kind !== 218 /* ArrowFunction */) { + if (node.kind !== 219 /* ArrowFunction */) { const parameter = firstOrUndefined(node.parameters); if (!(parameter && parameterIsThisKeyword(parameter))) { return true; @@ -19004,14 +19069,14 @@ ${lanes.join("\n")} return name === "Infinity" || name === "-Infinity" || name === "NaN"; } function isCatchClauseVariableDeclaration(node) { - return node.kind === 259 /* VariableDeclaration */ && node.parent.kind === 298 /* CatchClause */; + return node.kind === 260 /* VariableDeclaration */ && node.parent.kind === 299 /* CatchClause */; } function isParameterOrCatchClauseVariable(symbol) { const declaration = symbol.valueDeclaration && getRootDeclaration(symbol.valueDeclaration); return !!declaration && (isParameter(declaration) || isCatchClauseVariableDeclaration(declaration)); } function isFunctionExpressionOrArrowFunction(node) { - return node.kind === 217 /* FunctionExpression */ || node.kind === 218 /* ArrowFunction */; + return node.kind === 218 /* FunctionExpression */ || node.kind === 219 /* ArrowFunction */; } function escapeSnippetText(text) { return text.replace(/\$/gm, () => "\\$"); @@ -19074,23 +19139,23 @@ ${lanes.join("\n")} } function getParameterTypeNode(parameter) { var _a; - return parameter.kind === 347 /* JSDocParameterTag */ ? (_a = parameter.typeExpression) == null ? void 0 : _a.type : parameter.type; + return parameter.kind === 348 /* JSDocParameterTag */ ? (_a = parameter.typeExpression) == null ? void 0 : _a.type : parameter.type; } function isTypeDeclaration(node) { switch (node.kind) { - case 167 /* TypeParameter */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 265 /* EnumDeclaration */: - case 352 /* JSDocTypedefTag */: - case 344 /* JSDocCallbackTag */: - case 346 /* JSDocEnumTag */: + case 168 /* TypeParameter */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 266 /* EnumDeclaration */: + case 353 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: + case 347 /* JSDocEnumTag */: return true; - case 272 /* ImportClause */: + case 273 /* ImportClause */: return node.isTypeOnly; - case 275 /* ImportSpecifier */: - case 280 /* ExportSpecifier */: + case 276 /* ImportSpecifier */: + case 281 /* ExportSpecifier */: return node.parent.parent.isTypeOnly; default: return false; @@ -19104,7 +19169,7 @@ ${lanes.join("\n")} return false; } const { isBracketed, typeExpression } = node; - return isBracketed || !!typeExpression && typeExpression.type.kind === 322 /* JSDocOptionalType */; + return isBracketed || !!typeExpression && typeExpression.type.kind === 323 /* JSDocOptionalType */; } function canUsePropertyAccess(name, languageVersion) { if (name.length === 0) { @@ -19119,17 +19184,17 @@ ${lanes.join("\n")} } function isJSDocOptionalParameter(node) { return isInJSFile(node) && // node.type should only be a JSDocOptionalType when node is a parameter of a JSDocFunctionType - (node.type && node.type.kind === 322 /* JSDocOptionalType */ || getJSDocParameterTags(node).some(({ isBracketed, typeExpression }) => isBracketed || !!typeExpression && typeExpression.type.kind === 322 /* JSDocOptionalType */)); + (node.type && node.type.kind === 323 /* JSDocOptionalType */ || getJSDocParameterTags(node).some(({ isBracketed, typeExpression }) => isBracketed || !!typeExpression && typeExpression.type.kind === 323 /* JSDocOptionalType */)); } function isOptionalDeclaration(declaration) { switch (declaration.kind) { - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: return !!declaration.questionToken; - case 168 /* Parameter */: + case 169 /* Parameter */: return !!declaration.questionToken || isJSDocOptionalParameter(declaration); - case 354 /* JSDocPropertyTag */: - case 347 /* JSDocParameterTag */: + case 355 /* JSDocPropertyTag */: + case 348 /* JSDocParameterTag */: return isOptionalJSDocPropertyLikeTag(declaration); default: return false; @@ -19137,7 +19202,7 @@ ${lanes.join("\n")} } function isNonNullAccess(node) { const kind = node.kind; - return (kind === 210 /* PropertyAccessExpression */ || kind === 211 /* ElementAccessExpression */) && isNonNullExpression(node.expression); + return (kind === 211 /* PropertyAccessExpression */ || kind === 212 /* ElementAccessExpression */) && isNonNullExpression(node.expression); } function isJSDocSatisfiesExpression(node) { return isInJSFile(node) && isParenthesizedExpression(node) && hasJSDocNodes(node) && !!getJSDocSatisfiesTag(node); @@ -19157,7 +19222,7 @@ ${lanes.join("\n")} } function isJsxAttributeName(node) { const kind = node.kind; - return kind === 80 /* Identifier */ || kind === 294 /* JsxNamespacedName */; + return kind === 80 /* Identifier */ || kind === 295 /* JsxNamespacedName */; } function getEscapedTextOfJsxNamespacedName(node) { return `${node.namespace.escapedText}:${idText(node.name)}`; @@ -19168,6 +19233,18 @@ ${lanes.join("\n")} function intrinsicTagNameToString(node) { return isIdentifier(node) ? idText(node) : getTextOfJsxNamespacedName(node); } + function isTypeUsableAsPropertyName(type) { + return !!(type.flags & 8576 /* StringOrNumberLiteralOrUnique */); + } + function getPropertyNameFromType(type) { + if (type.flags & 8192 /* UniqueESSymbol */) { + return type.escapedName; + } + if (type.flags & (128 /* StringLiteral */ | 256 /* NumberLiteral */)) { + return escapeLeadingUnderscores("" + type.value); + } + return Debug.fail(); + } var resolvingEmptyArray, externalHelpersModuleNameText, defaultMaximumTruncationLength, noTruncationMaximumTruncationLength, stringWriter, GetLiteralTextFlags, fullTripleSlashReferencePathRegEx, fullTripleSlashReferenceTypeReferenceDirectiveRegEx, fullTripleSlashLibReferenceRegEx, fullTripleSlashAMDReferencePathRegEx, fullTripleSlashAMDModuleRegEx, defaultLibReferenceRegEx, AssignmentKind, FunctionFlags, Associativity, OperatorPrecedence, templateSubstitutionRegExp, doubleQuoteEscapedCharsRegExp, singleQuoteEscapedCharsRegExp, backtickQuoteEscapedCharsRegExp, escapedCharsMap, nonAsciiCharacters, jsxDoubleQuoteEscapedCharsRegExp, jsxSingleQuoteEscapedCharsRegExp, jsxEscapedCharsMap, indentStrings, base64Digits, carriageReturnLineFeed, lineFeed, objectAllocator, objectAllocatorPatchers, localizedDiagnosticMessages, reservedCharacterPattern, wildcardCharCodes, commonPackageFolders, implicitExcludePathRegexPattern, filesMatcher, directoriesMatcher, excludeMatcher, wildcardMatchers, supportedTSExtensions, supportedTSExtensionsFlat, supportedTSExtensionsWithJson, supportedTSExtensionsForExtractExtension, supportedJSExtensions, supportedJSExtensionsFlat, allSupportedExtensions, allSupportedExtensionsWithJson, supportedDeclarationExtensions, supportedTSImplementationExtensions, extensionsNotSupportingExtensionlessResolution, ModuleSpecifierEnding, extensionsToRemove, emptyFileSystemEntries; var init_utilities = __esm({ "src/compiler/utilities.ts"() { @@ -19240,9 +19317,9 @@ ${lanes.join("\n")} return OperatorPrecedence2; })(OperatorPrecedence || {}); templateSubstitutionRegExp = /\$\{/g; - doubleQuoteEscapedCharsRegExp = /[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g; - singleQuoteEscapedCharsRegExp = /[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g; - backtickQuoteEscapedCharsRegExp = /\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g; + doubleQuoteEscapedCharsRegExp = /[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g; + singleQuoteEscapedCharsRegExp = /[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g; + backtickQuoteEscapedCharsRegExp = /\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g; escapedCharsMap = new Map(Object.entries({ " ": "\\t", "\v": "\\v", @@ -19264,8 +19341,8 @@ ${lanes.join("\n")} // special case for CRLFs in backticks })); nonAsciiCharacters = /[^\u0000-\u007F]/g; - jsxDoubleQuoteEscapedCharsRegExp = /[\"\u0000-\u001f\u2028\u2029\u0085]/g; - jsxSingleQuoteEscapedCharsRegExp = /[\'\u0000-\u001f\u2028\u2029\u0085]/g; + jsxDoubleQuoteEscapedCharsRegExp = /["\u0000-\u001f\u2028\u2029\u0085]/g; + jsxSingleQuoteEscapedCharsRegExp = /['\u0000-\u001f\u2028\u2029\u0085]/g; jsxEscapedCharsMap = new Map(Object.entries({ '"': """, "'": "'" @@ -19286,7 +19363,7 @@ ${lanes.join("\n")} getSourceMapSourceConstructor: () => SourceMapSource }; objectAllocatorPatchers = []; - reservedCharacterPattern = /[^\w\s\/]/g; + reservedCharacterPattern = /[^\w\s/]/g; wildcardCharCodes = [42 /* asterisk */, 63 /* question */]; commonPackageFolders = ["node_modules", "bower_components", "jspm_packages"]; implicitExcludePathRegexPattern = `(?!(${commonPackageFolders.join("|")})(/|$))`; @@ -19477,16 +19554,16 @@ ${lanes.join("\n")} return parenthesizerRule; } function binaryOperandNeedsParentheses(binaryOperator, operand, isLeftSideOfBinary, leftOperand) { - const binaryOperatorPrecedence = getOperatorPrecedence(225 /* BinaryExpression */, binaryOperator); - const binaryOperatorAssociativity = getOperatorAssociativity(225 /* BinaryExpression */, binaryOperator); + const binaryOperatorPrecedence = getOperatorPrecedence(226 /* BinaryExpression */, binaryOperator); + const binaryOperatorAssociativity = getOperatorAssociativity(226 /* BinaryExpression */, binaryOperator); const emittedOperand = skipPartiallyEmittedExpressions(operand); - if (!isLeftSideOfBinary && operand.kind === 218 /* ArrowFunction */ && binaryOperatorPrecedence > 3 /* Assignment */) { + if (!isLeftSideOfBinary && operand.kind === 219 /* ArrowFunction */ && binaryOperatorPrecedence > 3 /* Assignment */) { return true; } const operandPrecedence = getExpressionPrecedence(emittedOperand); switch (compareValues(operandPrecedence, binaryOperatorPrecedence)) { case -1 /* LessThan */: - if (!isLeftSideOfBinary && binaryOperatorAssociativity === 1 /* Right */ && operand.kind === 228 /* YieldExpression */) { + if (!isLeftSideOfBinary && binaryOperatorAssociativity === 1 /* Right */ && operand.kind === 229 /* YieldExpression */) { return false; } return true; @@ -19520,7 +19597,7 @@ ${lanes.join("\n")} if (isLiteralKind(node.kind)) { return node.kind; } - if (node.kind === 225 /* BinaryExpression */ && node.operatorToken.kind === 40 /* PlusToken */) { + if (node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 40 /* PlusToken */) { if (node.cachedLiteralKind !== void 0) { return node.cachedLiteralKind; } @@ -19533,7 +19610,7 @@ ${lanes.join("\n")} } function parenthesizeBinaryOperand(binaryOperator, operand, isLeftSideOfBinary, leftOperand) { const skipped = skipPartiallyEmittedExpressions(operand); - if (skipped.kind === 216 /* ParenthesizedExpression */) { + if (skipped.kind === 217 /* ParenthesizedExpression */) { return operand; } return binaryOperandNeedsParentheses(binaryOperator, operand, isLeftSideOfBinary, leftOperand) ? factory2.createParenthesizedExpression(operand) : operand; @@ -19559,7 +19636,7 @@ ${lanes.join("\n")} return isCommaSequence(expression) ? factory2.createParenthesizedExpression(expression) : expression; } function parenthesizeConditionOfConditionalExpression(condition) { - const conditionalPrecedence = getOperatorPrecedence(226 /* ConditionalExpression */, 58 /* QuestionToken */); + const conditionalPrecedence = getOperatorPrecedence(227 /* ConditionalExpression */, 58 /* QuestionToken */); const emittedCondition = skipPartiallyEmittedExpressions(condition); const conditionPrecedence = getExpressionPrecedence(emittedCondition); if (compareValues(conditionPrecedence, conditionalPrecedence) !== 1 /* GreaterThan */) { @@ -19580,8 +19657,8 @@ ${lanes.join("\n")} /*stopAtCallExpressions*/ false ).kind) { - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: needsParens = true; } } @@ -19594,16 +19671,16 @@ ${lanes.join("\n")} true ); switch (leftmostExpr.kind) { - case 212 /* CallExpression */: + case 213 /* CallExpression */: return factory2.createParenthesizedExpression(expression); - case 213 /* NewExpression */: + case 214 /* NewExpression */: return !leftmostExpr.arguments ? factory2.createParenthesizedExpression(expression) : expression; } return parenthesizeLeftSideOfAccess(expression); } function parenthesizeLeftSideOfAccess(expression, optionalChain) { const emittedExpression = skipPartiallyEmittedExpressions(expression); - if (isLeftHandSideExpression(emittedExpression) && (emittedExpression.kind !== 213 /* NewExpression */ || emittedExpression.arguments) && (optionalChain || !isOptionalChain(emittedExpression))) { + if (isLeftHandSideExpression(emittedExpression) && (emittedExpression.kind !== 214 /* NewExpression */ || emittedExpression.arguments) && (optionalChain || !isOptionalChain(emittedExpression))) { return expression; } return setTextRange(factory2.createParenthesizedExpression(expression), expression); @@ -19621,7 +19698,7 @@ ${lanes.join("\n")} function parenthesizeExpressionForDisallowedComma(expression) { const emittedExpression = skipPartiallyEmittedExpressions(expression); const expressionPrecedence = getExpressionPrecedence(emittedExpression); - const commaPrecedence = getOperatorPrecedence(225 /* BinaryExpression */, 28 /* CommaToken */); + const commaPrecedence = getOperatorPrecedence(226 /* BinaryExpression */, 28 /* CommaToken */); return expressionPrecedence > commaPrecedence ? expression : setTextRange(factory2.createParenthesizedExpression(expression), expression); } function parenthesizeExpressionOfExpressionStatement(expression) { @@ -19629,7 +19706,7 @@ ${lanes.join("\n")} if (isCallExpression(emittedExpression)) { const callee = emittedExpression.expression; const kind = skipPartiallyEmittedExpressions(callee).kind; - if (kind === 217 /* FunctionExpression */ || kind === 218 /* ArrowFunction */) { + if (kind === 218 /* FunctionExpression */ || kind === 219 /* ArrowFunction */) { const updated = factory2.updateCallExpression( emittedExpression, setTextRange(factory2.createParenthesizedExpression(callee), callee), @@ -19644,7 +19721,7 @@ ${lanes.join("\n")} /*stopAtCallExpressions*/ false ).kind; - if (leftmostExpressionKind === 209 /* ObjectLiteralExpression */ || leftmostExpressionKind === 217 /* FunctionExpression */) { + if (leftmostExpressionKind === 210 /* ObjectLiteralExpression */ || leftmostExpressionKind === 218 /* FunctionExpression */) { return setTextRange(factory2.createParenthesizedExpression(expression), expression); } return expression; @@ -19654,31 +19731,31 @@ ${lanes.join("\n")} body, /*stopAtCallExpressions*/ false - ).kind === 209 /* ObjectLiteralExpression */)) { + ).kind === 210 /* ObjectLiteralExpression */)) { return setTextRange(factory2.createParenthesizedExpression(body), body); } return body; } function parenthesizeCheckTypeOfConditionalType(checkType) { switch (checkType.kind) { - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 193 /* ConditionalType */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 194 /* ConditionalType */: return factory2.createParenthesizedType(checkType); } return checkType; } function parenthesizeExtendsTypeOfConditionalType(extendsType) { switch (extendsType.kind) { - case 193 /* ConditionalType */: + case 194 /* ConditionalType */: return factory2.createParenthesizedType(extendsType); } return extendsType; } function parenthesizeConstituentTypeOfUnionType(type) { switch (type.kind) { - case 191 /* UnionType */: - case 192 /* IntersectionType */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: return factory2.createParenthesizedType(type); } return parenthesizeCheckTypeOfConditionalType(type); @@ -19688,8 +19765,8 @@ ${lanes.join("\n")} } function parenthesizeConstituentTypeOfIntersectionType(type) { switch (type.kind) { - case 191 /* UnionType */: - case 192 /* IntersectionType */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: return factory2.createParenthesizedType(type); } return parenthesizeConstituentTypeOfUnionType(type); @@ -19699,23 +19776,23 @@ ${lanes.join("\n")} } function parenthesizeOperandOfTypeOperator(type) { switch (type.kind) { - case 192 /* IntersectionType */: + case 193 /* IntersectionType */: return factory2.createParenthesizedType(type); } return parenthesizeConstituentTypeOfIntersectionType(type); } function parenthesizeOperandOfReadonlyTypeOperator(type) { switch (type.kind) { - case 197 /* TypeOperator */: + case 198 /* TypeOperator */: return factory2.createParenthesizedType(type); } return parenthesizeOperandOfTypeOperator(type); } function parenthesizeNonArrayTypeOfPostfixType(type) { switch (type.kind) { - case 194 /* InferType */: - case 197 /* TypeOperator */: - case 185 /* TypeQuery */: + case 195 /* InferType */: + case 198 /* TypeOperator */: + case 186 /* TypeQuery */: return factory2.createParenthesizedType(type); } return parenthesizeOperandOfTypeOperator(type); @@ -19807,6 +19884,7 @@ ${lanes.join("\n")} return { convertToFunctionBlock, convertToFunctionExpression, + convertToClassExpression, convertToArrayAssignmentElement, convertToObjectAssignmentElement, convertToAssignmentPattern, @@ -19824,10 +19902,11 @@ ${lanes.join("\n")} return body; } function convertToFunctionExpression(node) { + var _a; if (!node.body) return Debug.fail(`Cannot convert a FunctionDeclaration without a body`); const updated = factory2.createFunctionExpression( - getModifiers(node), + (_a = getModifiers(node)) == null ? void 0 : _a.filter((modifier) => !isExportModifier(modifier) && !isDefaultModifier(modifier)), node.asteriskToken, node.name, node.typeParameters, @@ -19846,6 +19925,26 @@ ${lanes.join("\n")} } return updated; } + function convertToClassExpression(node) { + var _a; + const updated = factory2.createClassExpression( + (_a = node.modifiers) == null ? void 0 : _a.filter((modifier) => !isExportModifier(modifier) && !isDefaultModifier(modifier)), + node.name, + node.typeParameters, + node.heritageClauses, + node.members + ); + setOriginalNode(updated, node); + setTextRange(updated, node); + if (getStartsOnNewLine(node)) { + setStartsOnNewLine( + updated, + /*newLine*/ + true + ); + } + return updated; + } function convertToArrayAssignmentElement(element) { if (isBindingElement(element)) { if (element.dotDotDotToken) { @@ -19880,11 +19979,11 @@ ${lanes.join("\n")} } function convertToAssignmentPattern(node) { switch (node.kind) { - case 206 /* ArrayBindingPattern */: - case 208 /* ArrayLiteralExpression */: + case 207 /* ArrayBindingPattern */: + case 209 /* ArrayLiteralExpression */: return convertToArrayAssignmentPattern(node); - case 205 /* ObjectBindingPattern */: - case 209 /* ObjectLiteralExpression */: + case 206 /* ObjectBindingPattern */: + case 210 /* ObjectLiteralExpression */: return convertToObjectAssignmentPattern(node); } } @@ -19927,6 +20026,7 @@ ${lanes.join("\n")} nullNodeConverters = { convertToFunctionBlock: notImplemented, convertToFunctionExpression: notImplemented, + convertToClassExpression: notImplemented, convertToArrayAssignmentElement: notImplemented, convertToObjectAssignmentElement: notImplemented, convertToAssignmentPattern: notImplemented, @@ -20239,40 +20339,40 @@ ${lanes.join("\n")} updateExternalModuleReference, // lazily load factory members for JSDoc types with similar structure get createJSDocAllType() { - return getJSDocPrimaryTypeCreateFunction(318 /* JSDocAllType */); + return getJSDocPrimaryTypeCreateFunction(319 /* JSDocAllType */); }, get createJSDocUnknownType() { - return getJSDocPrimaryTypeCreateFunction(319 /* JSDocUnknownType */); + return getJSDocPrimaryTypeCreateFunction(320 /* JSDocUnknownType */); }, get createJSDocNonNullableType() { - return getJSDocPrePostfixUnaryTypeCreateFunction(321 /* JSDocNonNullableType */); + return getJSDocPrePostfixUnaryTypeCreateFunction(322 /* JSDocNonNullableType */); }, get updateJSDocNonNullableType() { - return getJSDocPrePostfixUnaryTypeUpdateFunction(321 /* JSDocNonNullableType */); + return getJSDocPrePostfixUnaryTypeUpdateFunction(322 /* JSDocNonNullableType */); }, get createJSDocNullableType() { - return getJSDocPrePostfixUnaryTypeCreateFunction(320 /* JSDocNullableType */); + return getJSDocPrePostfixUnaryTypeCreateFunction(321 /* JSDocNullableType */); }, get updateJSDocNullableType() { - return getJSDocPrePostfixUnaryTypeUpdateFunction(320 /* JSDocNullableType */); + return getJSDocPrePostfixUnaryTypeUpdateFunction(321 /* JSDocNullableType */); }, get createJSDocOptionalType() { - return getJSDocUnaryTypeCreateFunction(322 /* JSDocOptionalType */); + return getJSDocUnaryTypeCreateFunction(323 /* JSDocOptionalType */); }, get updateJSDocOptionalType() { - return getJSDocUnaryTypeUpdateFunction(322 /* JSDocOptionalType */); + return getJSDocUnaryTypeUpdateFunction(323 /* JSDocOptionalType */); }, get createJSDocVariadicType() { - return getJSDocUnaryTypeCreateFunction(324 /* JSDocVariadicType */); + return getJSDocUnaryTypeCreateFunction(325 /* JSDocVariadicType */); }, get updateJSDocVariadicType() { - return getJSDocUnaryTypeUpdateFunction(324 /* JSDocVariadicType */); + return getJSDocUnaryTypeUpdateFunction(325 /* JSDocVariadicType */); }, get createJSDocNamepathType() { - return getJSDocUnaryTypeCreateFunction(325 /* JSDocNamepathType */); + return getJSDocUnaryTypeCreateFunction(326 /* JSDocNamepathType */); }, get updateJSDocNamepathType() { - return getJSDocUnaryTypeUpdateFunction(325 /* JSDocNamepathType */); + return getJSDocUnaryTypeUpdateFunction(326 /* JSDocNamepathType */); }, createJSDocFunctionType, updateJSDocFunctionType, @@ -20312,82 +20412,82 @@ ${lanes.join("\n")} updateJSDocLinkPlain, // lazily load factory members for JSDoc tags with similar structure get createJSDocTypeTag() { - return getJSDocTypeLikeTagCreateFunction(350 /* JSDocTypeTag */); + return getJSDocTypeLikeTagCreateFunction(351 /* JSDocTypeTag */); }, get updateJSDocTypeTag() { - return getJSDocTypeLikeTagUpdateFunction(350 /* JSDocTypeTag */); + return getJSDocTypeLikeTagUpdateFunction(351 /* JSDocTypeTag */); }, get createJSDocReturnTag() { - return getJSDocTypeLikeTagCreateFunction(348 /* JSDocReturnTag */); + return getJSDocTypeLikeTagCreateFunction(349 /* JSDocReturnTag */); }, get updateJSDocReturnTag() { - return getJSDocTypeLikeTagUpdateFunction(348 /* JSDocReturnTag */); + return getJSDocTypeLikeTagUpdateFunction(349 /* JSDocReturnTag */); }, get createJSDocThisTag() { - return getJSDocTypeLikeTagCreateFunction(349 /* JSDocThisTag */); + return getJSDocTypeLikeTagCreateFunction(350 /* JSDocThisTag */); }, get updateJSDocThisTag() { - return getJSDocTypeLikeTagUpdateFunction(349 /* JSDocThisTag */); + return getJSDocTypeLikeTagUpdateFunction(350 /* JSDocThisTag */); }, get createJSDocAuthorTag() { - return getJSDocSimpleTagCreateFunction(336 /* JSDocAuthorTag */); + return getJSDocSimpleTagCreateFunction(337 /* JSDocAuthorTag */); }, get updateJSDocAuthorTag() { - return getJSDocSimpleTagUpdateFunction(336 /* JSDocAuthorTag */); + return getJSDocSimpleTagUpdateFunction(337 /* JSDocAuthorTag */); }, get createJSDocClassTag() { - return getJSDocSimpleTagCreateFunction(338 /* JSDocClassTag */); + return getJSDocSimpleTagCreateFunction(339 /* JSDocClassTag */); }, get updateJSDocClassTag() { - return getJSDocSimpleTagUpdateFunction(338 /* JSDocClassTag */); + return getJSDocSimpleTagUpdateFunction(339 /* JSDocClassTag */); }, get createJSDocPublicTag() { - return getJSDocSimpleTagCreateFunction(339 /* JSDocPublicTag */); + return getJSDocSimpleTagCreateFunction(340 /* JSDocPublicTag */); }, get updateJSDocPublicTag() { - return getJSDocSimpleTagUpdateFunction(339 /* JSDocPublicTag */); + return getJSDocSimpleTagUpdateFunction(340 /* JSDocPublicTag */); }, get createJSDocPrivateTag() { - return getJSDocSimpleTagCreateFunction(340 /* JSDocPrivateTag */); + return getJSDocSimpleTagCreateFunction(341 /* JSDocPrivateTag */); }, get updateJSDocPrivateTag() { - return getJSDocSimpleTagUpdateFunction(340 /* JSDocPrivateTag */); + return getJSDocSimpleTagUpdateFunction(341 /* JSDocPrivateTag */); }, get createJSDocProtectedTag() { - return getJSDocSimpleTagCreateFunction(341 /* JSDocProtectedTag */); + return getJSDocSimpleTagCreateFunction(342 /* JSDocProtectedTag */); }, get updateJSDocProtectedTag() { - return getJSDocSimpleTagUpdateFunction(341 /* JSDocProtectedTag */); + return getJSDocSimpleTagUpdateFunction(342 /* JSDocProtectedTag */); }, get createJSDocReadonlyTag() { - return getJSDocSimpleTagCreateFunction(342 /* JSDocReadonlyTag */); + return getJSDocSimpleTagCreateFunction(343 /* JSDocReadonlyTag */); }, get updateJSDocReadonlyTag() { - return getJSDocSimpleTagUpdateFunction(342 /* JSDocReadonlyTag */); + return getJSDocSimpleTagUpdateFunction(343 /* JSDocReadonlyTag */); }, get createJSDocOverrideTag() { - return getJSDocSimpleTagCreateFunction(343 /* JSDocOverrideTag */); + return getJSDocSimpleTagCreateFunction(344 /* JSDocOverrideTag */); }, get updateJSDocOverrideTag() { - return getJSDocSimpleTagUpdateFunction(343 /* JSDocOverrideTag */); + return getJSDocSimpleTagUpdateFunction(344 /* JSDocOverrideTag */); }, get createJSDocDeprecatedTag() { - return getJSDocSimpleTagCreateFunction(337 /* JSDocDeprecatedTag */); + return getJSDocSimpleTagCreateFunction(338 /* JSDocDeprecatedTag */); }, get updateJSDocDeprecatedTag() { - return getJSDocSimpleTagUpdateFunction(337 /* JSDocDeprecatedTag */); + return getJSDocSimpleTagUpdateFunction(338 /* JSDocDeprecatedTag */); }, get createJSDocThrowsTag() { - return getJSDocTypeLikeTagCreateFunction(355 /* JSDocThrowsTag */); + return getJSDocTypeLikeTagCreateFunction(356 /* JSDocThrowsTag */); }, get updateJSDocThrowsTag() { - return getJSDocTypeLikeTagUpdateFunction(355 /* JSDocThrowsTag */); + return getJSDocTypeLikeTagUpdateFunction(356 /* JSDocThrowsTag */); }, get createJSDocSatisfiesTag() { - return getJSDocTypeLikeTagCreateFunction(356 /* JSDocSatisfiesTag */); + return getJSDocTypeLikeTagCreateFunction(357 /* JSDocSatisfiesTag */); }, get updateJSDocSatisfiesTag() { - return getJSDocTypeLikeTagUpdateFunction(356 /* JSDocSatisfiesTag */); + return getJSDocTypeLikeTagUpdateFunction(357 /* JSDocSatisfiesTag */); }, createJSDocEnumTag, updateJSDocEnumTag, @@ -20562,6 +20662,7 @@ ${lanes.join("\n")} createExportDefault, createExternalModuleExport, createTypeCheck, + createIsNotTypeCheck, createMethodCall, createGlobalMethodCall, createFunctionBindCall, @@ -20593,7 +20694,8 @@ ${lanes.join("\n")} ensureUseStrict, liftToBlock, mergeLexicalEnvironment, - updateModifiers + updateModifiers, + updateModifierLike }; forEach(nodeFactoryPatchers, (fn) => fn(factory2)); return factory2; @@ -20751,11 +20853,11 @@ ${lanes.join("\n")} } const node = createBaseIdentifier(escapeLeadingUnderscores(text)); if (hasExtendedUnicodeEscape) - node.flags |= 128 /* IdentifierHasExtendedUnicodeEscape */; + node.flags |= 256 /* IdentifierHasExtendedUnicodeEscape */; if (node.escapedText === "await") { node.transformFlags |= 67108864 /* ContainsPossibleTopLevelAwait */; } - if (node.flags & 128 /* IdentifierHasExtendedUnicodeEscape */) { + if (node.flags & 256 /* IdentifierHasExtendedUnicodeEscape */) { node.transformFlags |= 1024 /* ContainsES2015 */; } return node; @@ -20850,7 +20952,7 @@ ${lanes.join("\n")} return baseFactory2.createBaseTokenNode(kind); } function createToken(token) { - Debug.assert(token >= 0 /* FirstToken */ && token <= 164 /* LastToken */, "Invalid token"); + Debug.assert(token >= 0 /* FirstToken */ && token <= 165 /* LastToken */, "Invalid token"); Debug.assert(token <= 15 /* FirstTemplateToken */ || token >= 18 /* LastTemplateToken */, "Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."); Debug.assert(token <= 9 /* FirstLiteralToken */ || token >= 15 /* LastLiteralToken */, "Invalid token. Use 'createLiteralLikeNode' to create literals."); Debug.assert(token !== 80 /* Identifier */, "Invalid token. Use 'createIdentifier' to create identifiers"); @@ -20860,6 +20962,9 @@ ${lanes.join("\n")} case 134 /* AsyncKeyword */: transformFlags = 256 /* ContainsES2017 */ | 128 /* ContainsES2018 */; break; + case 160 /* UsingKeyword */: + transformFlags = 4 /* ContainsESNext */; + break; case 125 /* PublicKeyword */: case 123 /* PrivateKeyword */: case 124 /* ProtectedKeyword */: @@ -20869,12 +20974,12 @@ ${lanes.join("\n")} case 87 /* ConstKeyword */: case 133 /* AnyKeyword */: case 150 /* NumberKeyword */: - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: case 146 /* NeverKeyword */: case 151 /* ObjectKeyword */: case 103 /* InKeyword */: case 147 /* OutKeyword */: - case 163 /* OverrideKeyword */: + case 164 /* OverrideKeyword */: case 154 /* StringKeyword */: case 136 /* BooleanKeyword */: case 155 /* SymbolKeyword */: @@ -20942,7 +21047,7 @@ ${lanes.join("\n")} if (flags2 & 32 /* Static */) result.push(createModifier(126 /* StaticKeyword */)); if (flags2 & 16384 /* Override */) - result.push(createModifier(163 /* OverrideKeyword */)); + result.push(createModifier(164 /* OverrideKeyword */)); if (flags2 & 64 /* Readonly */) result.push(createModifier(148 /* ReadonlyKeyword */)); if (flags2 & 128 /* Accessor */) @@ -20956,7 +21061,7 @@ ${lanes.join("\n")} return result.length ? result : void 0; } function createQualifiedName(left, right) { - const node = createBaseNode(165 /* QualifiedName */); + const node = createBaseNode(166 /* QualifiedName */); node.left = left; node.right = asName(right); node.transformFlags |= propagateChildFlags(node.left) | propagateIdentifierNameFlags(node.right); @@ -20967,7 +21072,7 @@ ${lanes.join("\n")} return node.left !== left || node.right !== right ? update(createQualifiedName(left, right), node) : node; } function createComputedPropertyName(expression) { - const node = createBaseNode(166 /* ComputedPropertyName */); + const node = createBaseNode(167 /* ComputedPropertyName */); node.expression = parenthesizerRules().parenthesizeExpressionOfComputedPropertyName(expression); node.transformFlags |= propagateChildFlags(node.expression) | 1024 /* ContainsES2015 */ | 131072 /* ContainsComputedPropertyName */; return node; @@ -20976,7 +21081,7 @@ ${lanes.join("\n")} return node.expression !== expression ? update(createComputedPropertyName(expression), node) : node; } function createTypeParameterDeclaration(modifiers, name, constraint, defaultType) { - const node = createBaseDeclaration(167 /* TypeParameter */); + const node = createBaseDeclaration(168 /* TypeParameter */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.constraint = constraint; @@ -20990,7 +21095,7 @@ ${lanes.join("\n")} return node.modifiers !== modifiers || node.name !== name || node.constraint !== constraint || node.default !== defaultType ? update(createTypeParameterDeclaration(modifiers, name, constraint, defaultType), node) : node; } function createParameterDeclaration(modifiers, dotDotDotToken, name, questionToken, type, initializer) { - const node = createBaseDeclaration(168 /* Parameter */); + const node = createBaseDeclaration(169 /* Parameter */); node.modifiers = asNodeArray(modifiers); node.dotDotDotToken = dotDotDotToken; node.name = asName(name); @@ -21009,7 +21114,7 @@ ${lanes.join("\n")} return node.modifiers !== modifiers || node.dotDotDotToken !== dotDotDotToken || node.name !== name || node.questionToken !== questionToken || node.type !== type || node.initializer !== initializer ? update(createParameterDeclaration(modifiers, dotDotDotToken, name, questionToken, type, initializer), node) : node; } function createDecorator(expression) { - const node = createBaseNode(169 /* Decorator */); + const node = createBaseNode(170 /* Decorator */); node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess( expression, /*optionalChain*/ @@ -21022,7 +21127,7 @@ ${lanes.join("\n")} return node.expression !== expression ? update(createDecorator(expression), node) : node; } function createPropertySignature(modifiers, name, questionToken, type) { - const node = createBaseDeclaration(170 /* PropertySignature */); + const node = createBaseDeclaration(171 /* PropertySignature */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.type = type; @@ -21042,14 +21147,14 @@ ${lanes.join("\n")} return update(updated, original); } function createPropertyDeclaration(modifiers, name, questionOrExclamationToken, type, initializer) { - const node = createBaseDeclaration(171 /* PropertyDeclaration */); + const node = createBaseDeclaration(172 /* PropertyDeclaration */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.questionToken = questionOrExclamationToken && isQuestionToken(questionOrExclamationToken) ? questionOrExclamationToken : void 0; node.exclamationToken = questionOrExclamationToken && isExclamationToken(questionOrExclamationToken) ? questionOrExclamationToken : void 0; node.type = type; node.initializer = asInitializer(initializer); - const isAmbient = node.flags & 16777216 /* Ambient */ || modifiersToFlags(node.modifiers) & 2 /* Ambient */; + const isAmbient = node.flags & 33554432 /* Ambient */ || modifiersToFlags(node.modifiers) & 2 /* Ambient */; node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateNameFlags(node.name) | propagateChildFlags(node.initializer) | (isAmbient || node.questionToken || node.exclamationToken || node.type ? 1 /* ContainsTypeScript */ : 0 /* None */) | (isComputedPropertyName(node.name) || modifiersToFlags(node.modifiers) & 32 /* Static */ && node.initializer ? 8192 /* ContainsTypeScriptClassSyntax */ : 0 /* None */) | 16777216 /* ContainsClassFields */; node.jsDoc = void 0; return node; @@ -21058,7 +21163,7 @@ ${lanes.join("\n")} return node.modifiers !== modifiers || node.name !== name || node.questionToken !== (questionOrExclamationToken !== void 0 && isQuestionToken(questionOrExclamationToken) ? questionOrExclamationToken : void 0) || node.exclamationToken !== (questionOrExclamationToken !== void 0 && isExclamationToken(questionOrExclamationToken) ? questionOrExclamationToken : void 0) || node.type !== type || node.initializer !== initializer ? update(createPropertyDeclaration(modifiers, name, questionOrExclamationToken, type, initializer), node) : node; } function createMethodSignature(modifiers, name, questionToken, typeParameters, parameters, type) { - const node = createBaseDeclaration(172 /* MethodSignature */); + const node = createBaseDeclaration(173 /* MethodSignature */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.questionToken = questionToken; @@ -21076,7 +21181,7 @@ ${lanes.join("\n")} return node.modifiers !== modifiers || node.name !== name || node.questionToken !== questionToken || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type ? finishUpdateBaseSignatureDeclaration(createMethodSignature(modifiers, name, questionToken, typeParameters, parameters, type), node) : node; } function createMethodDeclaration(modifiers, asteriskToken, name, questionToken, typeParameters, parameters, type, body) { - const node = createBaseDeclaration(173 /* MethodDeclaration */); + const node = createBaseDeclaration(174 /* MethodDeclaration */); node.modifiers = asNodeArray(modifiers); node.asteriskToken = asteriskToken; node.name = asName(name); @@ -21113,7 +21218,7 @@ ${lanes.join("\n")} return update(updated, original); } function createClassStaticBlockDeclaration(body) { - const node = createBaseDeclaration(174 /* ClassStaticBlockDeclaration */); + const node = createBaseDeclaration(175 /* ClassStaticBlockDeclaration */); node.body = body; node.transformFlags = propagateChildFlags(body) | 16777216 /* ContainsClassFields */; node.modifiers = void 0; @@ -21134,7 +21239,7 @@ ${lanes.join("\n")} return update(updated, original); } function createConstructorDeclaration(modifiers, parameters, body) { - const node = createBaseDeclaration(175 /* Constructor */); + const node = createBaseDeclaration(176 /* Constructor */); node.modifiers = asNodeArray(modifiers); node.parameters = createNodeArray(parameters); node.body = body; @@ -21160,7 +21265,7 @@ ${lanes.join("\n")} return finishUpdateBaseSignatureDeclaration(updated, original); } function createGetAccessorDeclaration(modifiers, name, parameters, type, body) { - const node = createBaseDeclaration(176 /* GetAccessor */); + const node = createBaseDeclaration(177 /* GetAccessor */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.parameters = createNodeArray(parameters); @@ -21191,7 +21296,7 @@ ${lanes.join("\n")} return finishUpdateBaseSignatureDeclaration(updated, original); } function createSetAccessorDeclaration(modifiers, name, parameters, body) { - const node = createBaseDeclaration(177 /* SetAccessor */); + const node = createBaseDeclaration(178 /* SetAccessor */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.parameters = createNodeArray(parameters); @@ -21223,7 +21328,7 @@ ${lanes.join("\n")} return finishUpdateBaseSignatureDeclaration(updated, original); } function createCallSignature(typeParameters, parameters, type) { - const node = createBaseDeclaration(178 /* CallSignature */); + const node = createBaseDeclaration(179 /* CallSignature */); node.typeParameters = asNodeArray(typeParameters); node.parameters = asNodeArray(parameters); node.type = type; @@ -21238,7 +21343,7 @@ ${lanes.join("\n")} return node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type ? finishUpdateBaseSignatureDeclaration(createCallSignature(typeParameters, parameters, type), node) : node; } function createConstructSignature(typeParameters, parameters, type) { - const node = createBaseDeclaration(179 /* ConstructSignature */); + const node = createBaseDeclaration(180 /* ConstructSignature */); node.typeParameters = asNodeArray(typeParameters); node.parameters = asNodeArray(parameters); node.type = type; @@ -21253,7 +21358,7 @@ ${lanes.join("\n")} return node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type ? finishUpdateBaseSignatureDeclaration(createConstructSignature(typeParameters, parameters, type), node) : node; } function createIndexSignature(modifiers, parameters, type) { - const node = createBaseDeclaration(180 /* IndexSignature */); + const node = createBaseDeclaration(181 /* IndexSignature */); node.modifiers = asNodeArray(modifiers); node.parameters = asNodeArray(parameters); node.type = type; @@ -21268,7 +21373,7 @@ ${lanes.join("\n")} return node.parameters !== parameters || node.type !== type || node.modifiers !== modifiers ? finishUpdateBaseSignatureDeclaration(createIndexSignature(modifiers, parameters, type), node) : node; } function createTemplateLiteralTypeSpan(type, literal) { - const node = createBaseNode(203 /* TemplateLiteralTypeSpan */); + const node = createBaseNode(204 /* TemplateLiteralTypeSpan */); node.type = type; node.literal = literal; node.transformFlags = 1 /* ContainsTypeScript */; @@ -21281,7 +21386,7 @@ ${lanes.join("\n")} return createToken(kind); } function createTypePredicateNode(assertsModifier, parameterName, type) { - const node = createBaseNode(181 /* TypePredicate */); + const node = createBaseNode(182 /* TypePredicate */); node.assertsModifier = assertsModifier; node.parameterName = asName(parameterName); node.type = type; @@ -21292,7 +21397,7 @@ ${lanes.join("\n")} return node.assertsModifier !== assertsModifier || node.parameterName !== parameterName || node.type !== type ? update(createTypePredicateNode(assertsModifier, parameterName, type), node) : node; } function createTypeReferenceNode(typeName, typeArguments) { - const node = createBaseNode(182 /* TypeReference */); + const node = createBaseNode(183 /* TypeReference */); node.typeName = asName(typeName); node.typeArguments = typeArguments && parenthesizerRules().parenthesizeTypeArguments(createNodeArray(typeArguments)); node.transformFlags = 1 /* ContainsTypeScript */; @@ -21302,7 +21407,7 @@ ${lanes.join("\n")} return node.typeName !== typeName || node.typeArguments !== typeArguments ? update(createTypeReferenceNode(typeName, typeArguments), node) : node; } function createFunctionTypeNode(typeParameters, parameters, type) { - const node = createBaseDeclaration(183 /* FunctionType */); + const node = createBaseDeclaration(184 /* FunctionType */); node.typeParameters = asNodeArray(typeParameters); node.parameters = asNodeArray(parameters); node.type = type; @@ -21327,7 +21432,7 @@ ${lanes.join("\n")} return args.length === 4 ? createConstructorTypeNode1(...args) : args.length === 3 ? createConstructorTypeNode2(...args) : Debug.fail("Incorrect number of arguments specified."); } function createConstructorTypeNode1(modifiers, typeParameters, parameters, type) { - const node = createBaseDeclaration(184 /* ConstructorType */); + const node = createBaseDeclaration(185 /* ConstructorType */); node.modifiers = asNodeArray(modifiers); node.typeParameters = asNodeArray(typeParameters); node.parameters = asNodeArray(parameters); @@ -21358,7 +21463,7 @@ ${lanes.join("\n")} return updateConstructorTypeNode1(node, node.modifiers, typeParameters, parameters, type); } function createTypeQueryNode(exprName, typeArguments) { - const node = createBaseNode(185 /* TypeQuery */); + const node = createBaseNode(186 /* TypeQuery */); node.exprName = exprName; node.typeArguments = typeArguments && parenthesizerRules().parenthesizeTypeArguments(typeArguments); node.transformFlags = 1 /* ContainsTypeScript */; @@ -21368,7 +21473,7 @@ ${lanes.join("\n")} return node.exprName !== exprName || node.typeArguments !== typeArguments ? update(createTypeQueryNode(exprName, typeArguments), node) : node; } function createTypeLiteralNode(members) { - const node = createBaseDeclaration(186 /* TypeLiteral */); + const node = createBaseDeclaration(187 /* TypeLiteral */); node.members = createNodeArray(members); node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -21377,7 +21482,7 @@ ${lanes.join("\n")} return node.members !== members ? update(createTypeLiteralNode(members), node) : node; } function createArrayTypeNode(elementType) { - const node = createBaseNode(187 /* ArrayType */); + const node = createBaseNode(188 /* ArrayType */); node.elementType = parenthesizerRules().parenthesizeNonArrayTypeOfPostfixType(elementType); node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -21386,7 +21491,7 @@ ${lanes.join("\n")} return node.elementType !== elementType ? update(createArrayTypeNode(elementType), node) : node; } function createTupleTypeNode(elements) { - const node = createBaseNode(188 /* TupleType */); + const node = createBaseNode(189 /* TupleType */); node.elements = createNodeArray(parenthesizerRules().parenthesizeElementTypesOfTupleType(elements)); node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -21395,7 +21500,7 @@ ${lanes.join("\n")} return node.elements !== elements ? update(createTupleTypeNode(elements), node) : node; } function createNamedTupleMember(dotDotDotToken, name, questionToken, type) { - const node = createBaseDeclaration(201 /* NamedTupleMember */); + const node = createBaseDeclaration(202 /* NamedTupleMember */); node.dotDotDotToken = dotDotDotToken; node.name = name; node.questionToken = questionToken; @@ -21408,7 +21513,7 @@ ${lanes.join("\n")} return node.dotDotDotToken !== dotDotDotToken || node.name !== name || node.questionToken !== questionToken || node.type !== type ? update(createNamedTupleMember(dotDotDotToken, name, questionToken, type), node) : node; } function createOptionalTypeNode(type) { - const node = createBaseNode(189 /* OptionalType */); + const node = createBaseNode(190 /* OptionalType */); node.type = parenthesizerRules().parenthesizeTypeOfOptionalType(type); node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -21417,7 +21522,7 @@ ${lanes.join("\n")} return node.type !== type ? update(createOptionalTypeNode(type), node) : node; } function createRestTypeNode(type) { - const node = createBaseNode(190 /* RestType */); + const node = createBaseNode(191 /* RestType */); node.type = type; node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -21435,19 +21540,19 @@ ${lanes.join("\n")} return node.types !== types ? update(createUnionOrIntersectionTypeNode(node.kind, types, parenthesize), node) : node; } function createUnionTypeNode(types) { - return createUnionOrIntersectionTypeNode(191 /* UnionType */, types, parenthesizerRules().parenthesizeConstituentTypesOfUnionType); + return createUnionOrIntersectionTypeNode(192 /* UnionType */, types, parenthesizerRules().parenthesizeConstituentTypesOfUnionType); } function updateUnionTypeNode(node, types) { return updateUnionOrIntersectionTypeNode(node, types, parenthesizerRules().parenthesizeConstituentTypesOfUnionType); } function createIntersectionTypeNode(types) { - return createUnionOrIntersectionTypeNode(192 /* IntersectionType */, types, parenthesizerRules().parenthesizeConstituentTypesOfIntersectionType); + return createUnionOrIntersectionTypeNode(193 /* IntersectionType */, types, parenthesizerRules().parenthesizeConstituentTypesOfIntersectionType); } function updateIntersectionTypeNode(node, types) { return updateUnionOrIntersectionTypeNode(node, types, parenthesizerRules().parenthesizeConstituentTypesOfIntersectionType); } function createConditionalTypeNode(checkType, extendsType, trueType, falseType) { - const node = createBaseNode(193 /* ConditionalType */); + const node = createBaseNode(194 /* ConditionalType */); node.checkType = parenthesizerRules().parenthesizeCheckTypeOfConditionalType(checkType); node.extendsType = parenthesizerRules().parenthesizeExtendsTypeOfConditionalType(extendsType); node.trueType = trueType; @@ -21461,7 +21566,7 @@ ${lanes.join("\n")} return node.checkType !== checkType || node.extendsType !== extendsType || node.trueType !== trueType || node.falseType !== falseType ? update(createConditionalTypeNode(checkType, extendsType, trueType, falseType), node) : node; } function createInferTypeNode(typeParameter) { - const node = createBaseNode(194 /* InferType */); + const node = createBaseNode(195 /* InferType */); node.typeParameter = typeParameter; node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -21470,7 +21575,7 @@ ${lanes.join("\n")} return node.typeParameter !== typeParameter ? update(createInferTypeNode(typeParameter), node) : node; } function createTemplateLiteralType(head, templateSpans) { - const node = createBaseNode(202 /* TemplateLiteralType */); + const node = createBaseNode(203 /* TemplateLiteralType */); node.head = head; node.templateSpans = createNodeArray(templateSpans); node.transformFlags = 1 /* ContainsTypeScript */; @@ -21480,7 +21585,7 @@ ${lanes.join("\n")} return node.head !== head || node.templateSpans !== templateSpans ? update(createTemplateLiteralType(head, templateSpans), node) : node; } function createImportTypeNode(argument, assertions, qualifier, typeArguments, isTypeOf = false) { - const node = createBaseNode(204 /* ImportType */); + const node = createBaseNode(205 /* ImportType */); node.argument = argument; node.assertions = assertions; node.qualifier = qualifier; @@ -21493,7 +21598,7 @@ ${lanes.join("\n")} return node.argument !== argument || node.assertions !== assertions || node.qualifier !== qualifier || node.typeArguments !== typeArguments || node.isTypeOf !== isTypeOf ? update(createImportTypeNode(argument, assertions, qualifier, typeArguments, isTypeOf), node) : node; } function createParenthesizedType(type) { - const node = createBaseNode(195 /* ParenthesizedType */); + const node = createBaseNode(196 /* ParenthesizedType */); node.type = type; node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -21502,12 +21607,12 @@ ${lanes.join("\n")} return node.type !== type ? update(createParenthesizedType(type), node) : node; } function createThisTypeNode() { - const node = createBaseNode(196 /* ThisType */); + const node = createBaseNode(197 /* ThisType */); node.transformFlags = 1 /* ContainsTypeScript */; return node; } function createTypeOperatorNode(operator, type) { - const node = createBaseNode(197 /* TypeOperator */); + const node = createBaseNode(198 /* TypeOperator */); node.operator = operator; node.type = operator === 148 /* ReadonlyKeyword */ ? parenthesizerRules().parenthesizeOperandOfReadonlyTypeOperator(type) : parenthesizerRules().parenthesizeOperandOfTypeOperator(type); node.transformFlags = 1 /* ContainsTypeScript */; @@ -21517,7 +21622,7 @@ ${lanes.join("\n")} return node.type !== type ? update(createTypeOperatorNode(node.operator, type), node) : node; } function createIndexedAccessTypeNode(objectType, indexType) { - const node = createBaseNode(198 /* IndexedAccessType */); + const node = createBaseNode(199 /* IndexedAccessType */); node.objectType = parenthesizerRules().parenthesizeNonArrayTypeOfPostfixType(objectType); node.indexType = indexType; node.transformFlags = 1 /* ContainsTypeScript */; @@ -21527,7 +21632,7 @@ ${lanes.join("\n")} return node.objectType !== objectType || node.indexType !== indexType ? update(createIndexedAccessTypeNode(objectType, indexType), node) : node; } function createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type, members) { - const node = createBaseDeclaration(199 /* MappedType */); + const node = createBaseDeclaration(200 /* MappedType */); node.readonlyToken = readonlyToken; node.typeParameter = typeParameter; node.nameType = nameType; @@ -21543,7 +21648,7 @@ ${lanes.join("\n")} return node.readonlyToken !== readonlyToken || node.typeParameter !== typeParameter || node.nameType !== nameType || node.questionToken !== questionToken || node.type !== type || node.members !== members ? update(createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type, members), node) : node; } function createLiteralTypeNode(literal) { - const node = createBaseNode(200 /* LiteralType */); + const node = createBaseNode(201 /* LiteralType */); node.literal = literal; node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -21552,7 +21657,7 @@ ${lanes.join("\n")} return node.literal !== literal ? update(createLiteralTypeNode(literal), node) : node; } function createObjectBindingPattern(elements) { - const node = createBaseNode(205 /* ObjectBindingPattern */); + const node = createBaseNode(206 /* ObjectBindingPattern */); node.elements = createNodeArray(elements); node.transformFlags |= propagateChildrenFlags(node.elements) | 1024 /* ContainsES2015 */ | 524288 /* ContainsBindingPattern */; if (node.transformFlags & 32768 /* ContainsRestOrSpread */) { @@ -21564,7 +21669,7 @@ ${lanes.join("\n")} return node.elements !== elements ? update(createObjectBindingPattern(elements), node) : node; } function createArrayBindingPattern(elements) { - const node = createBaseNode(206 /* ArrayBindingPattern */); + const node = createBaseNode(207 /* ArrayBindingPattern */); node.elements = createNodeArray(elements); node.transformFlags |= propagateChildrenFlags(node.elements) | 1024 /* ContainsES2015 */ | 524288 /* ContainsBindingPattern */; return node; @@ -21573,7 +21678,7 @@ ${lanes.join("\n")} return node.elements !== elements ? update(createArrayBindingPattern(elements), node) : node; } function createBindingElement(dotDotDotToken, propertyName, name, initializer) { - const node = createBaseDeclaration(207 /* BindingElement */); + const node = createBaseDeclaration(208 /* BindingElement */); node.dotDotDotToken = dotDotDotToken; node.propertyName = asName(propertyName); node.name = asName(name); @@ -21586,7 +21691,7 @@ ${lanes.join("\n")} return node.propertyName !== propertyName || node.dotDotDotToken !== dotDotDotToken || node.name !== name || node.initializer !== initializer ? update(createBindingElement(dotDotDotToken, propertyName, name, initializer), node) : node; } function createArrayLiteralExpression(elements, multiLine) { - const node = createBaseNode(208 /* ArrayLiteralExpression */); + const node = createBaseNode(209 /* ArrayLiteralExpression */); const lastElement = elements && lastOrUndefined(elements); const elementsArray = createNodeArray(elements, lastElement && isOmittedExpression(lastElement) ? true : void 0); node.elements = parenthesizerRules().parenthesizeExpressionsOfCommaDelimitedList(elementsArray); @@ -21598,7 +21703,7 @@ ${lanes.join("\n")} return node.elements !== elements ? update(createArrayLiteralExpression(elements, node.multiLine), node) : node; } function createObjectLiteralExpression(properties, multiLine) { - const node = createBaseDeclaration(209 /* ObjectLiteralExpression */); + const node = createBaseDeclaration(210 /* ObjectLiteralExpression */); node.properties = createNodeArray(properties); node.multiLine = multiLine; node.transformFlags |= propagateChildrenFlags(node.properties); @@ -21609,7 +21714,7 @@ ${lanes.join("\n")} return node.properties !== properties ? update(createObjectLiteralExpression(properties, node.multiLine), node) : node; } function createBasePropertyAccessExpression(expression, questionDotToken, name) { - const node = createBaseDeclaration(210 /* PropertyAccessExpression */); + const node = createBaseDeclaration(211 /* PropertyAccessExpression */); node.expression = expression; node.questionDotToken = questionDotToken; node.name = name; @@ -21650,16 +21755,16 @@ ${lanes.join("\n")} questionDotToken, asName(name) ); - node.flags |= 32 /* OptionalChain */; + node.flags |= 64 /* OptionalChain */; node.transformFlags |= 32 /* ContainsES2020 */; return node; } function updatePropertyAccessChain(node, expression, questionDotToken, name) { - Debug.assert(!!(node.flags & 32 /* OptionalChain */), "Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."); + Debug.assert(!!(node.flags & 64 /* OptionalChain */), "Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."); return node.expression !== expression || node.questionDotToken !== questionDotToken || node.name !== name ? update(createPropertyAccessChain(expression, questionDotToken, name), node) : node; } function createBaseElementAccessExpression(expression, questionDotToken, argumentExpression) { - const node = createBaseDeclaration(211 /* ElementAccessExpression */); + const node = createBaseDeclaration(212 /* ElementAccessExpression */); node.expression = expression; node.questionDotToken = questionDotToken; node.argumentExpression = argumentExpression; @@ -21700,16 +21805,16 @@ ${lanes.join("\n")} questionDotToken, asExpression(index) ); - node.flags |= 32 /* OptionalChain */; + node.flags |= 64 /* OptionalChain */; node.transformFlags |= 32 /* ContainsES2020 */; return node; } function updateElementAccessChain(node, expression, questionDotToken, argumentExpression) { - Debug.assert(!!(node.flags & 32 /* OptionalChain */), "Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."); + Debug.assert(!!(node.flags & 64 /* OptionalChain */), "Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."); return node.expression !== expression || node.questionDotToken !== questionDotToken || node.argumentExpression !== argumentExpression ? update(createElementAccessChain(expression, questionDotToken, argumentExpression), node) : node; } function createBaseCallExpression(expression, questionDotToken, typeArguments, argumentsArray) { - const node = createBaseDeclaration(212 /* CallExpression */); + const node = createBaseDeclaration(213 /* CallExpression */); node.expression = expression; node.questionDotToken = questionDotToken; node.typeArguments = typeArguments; @@ -21757,16 +21862,16 @@ ${lanes.join("\n")} asNodeArray(typeArguments), parenthesizerRules().parenthesizeExpressionsOfCommaDelimitedList(createNodeArray(argumentsArray)) ); - node.flags |= 32 /* OptionalChain */; + node.flags |= 64 /* OptionalChain */; node.transformFlags |= 32 /* ContainsES2020 */; return node; } function updateCallChain(node, expression, questionDotToken, typeArguments, argumentsArray) { - Debug.assert(!!(node.flags & 32 /* OptionalChain */), "Cannot update a CallExpression using updateCallChain. Use updateCall instead."); + Debug.assert(!!(node.flags & 64 /* OptionalChain */), "Cannot update a CallExpression using updateCallChain. Use updateCall instead."); return node.expression !== expression || node.questionDotToken !== questionDotToken || node.typeArguments !== typeArguments || node.arguments !== argumentsArray ? update(createCallChain(expression, questionDotToken, typeArguments, argumentsArray), node) : node; } function createNewExpression(expression, typeArguments, argumentsArray) { - const node = createBaseDeclaration(213 /* NewExpression */); + const node = createBaseDeclaration(214 /* NewExpression */); node.expression = parenthesizerRules().parenthesizeExpressionOfNew(expression); node.typeArguments = asNodeArray(typeArguments); node.arguments = argumentsArray ? parenthesizerRules().parenthesizeExpressionsOfCommaDelimitedList(argumentsArray) : void 0; @@ -21780,7 +21885,7 @@ ${lanes.join("\n")} return node.expression !== expression || node.typeArguments !== typeArguments || node.arguments !== argumentsArray ? update(createNewExpression(expression, typeArguments, argumentsArray), node) : node; } function createTaggedTemplateExpression(tag, typeArguments, template) { - const node = createBaseNode(214 /* TaggedTemplateExpression */); + const node = createBaseNode(215 /* TaggedTemplateExpression */); node.tag = parenthesizerRules().parenthesizeLeftSideOfAccess( tag, /*optionalChain*/ @@ -21801,7 +21906,7 @@ ${lanes.join("\n")} return node.tag !== tag || node.typeArguments !== typeArguments || node.template !== template ? update(createTaggedTemplateExpression(tag, typeArguments, template), node) : node; } function createTypeAssertion(type, expression) { - const node = createBaseNode(215 /* TypeAssertionExpression */); + const node = createBaseNode(216 /* TypeAssertionExpression */); node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); node.type = type; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.type) | 1 /* ContainsTypeScript */; @@ -21811,7 +21916,7 @@ ${lanes.join("\n")} return node.type !== type || node.expression !== expression ? update(createTypeAssertion(type, expression), node) : node; } function createParenthesizedExpression(expression) { - const node = createBaseNode(216 /* ParenthesizedExpression */); + const node = createBaseNode(217 /* ParenthesizedExpression */); node.expression = expression; node.transformFlags = propagateChildFlags(node.expression); node.jsDoc = void 0; @@ -21821,7 +21926,7 @@ ${lanes.join("\n")} return node.expression !== expression ? update(createParenthesizedExpression(expression), node) : node; } function createFunctionExpression(modifiers, asteriskToken, name, typeParameters, parameters, type, body) { - const node = createBaseDeclaration(217 /* FunctionExpression */); + const node = createBaseDeclaration(218 /* FunctionExpression */); node.modifiers = asNodeArray(modifiers); node.asteriskToken = asteriskToken; node.name = asName(name); @@ -21846,7 +21951,7 @@ ${lanes.join("\n")} return node.name !== name || node.modifiers !== modifiers || node.asteriskToken !== asteriskToken || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type || node.body !== body ? finishUpdateBaseSignatureDeclaration(createFunctionExpression(modifiers, asteriskToken, name, typeParameters, parameters, type, body), node) : node; } function createArrowFunction(modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body) { - const node = createBaseDeclaration(218 /* ArrowFunction */); + const node = createBaseDeclaration(219 /* ArrowFunction */); node.modifiers = asNodeArray(modifiers); node.typeParameters = asNodeArray(typeParameters); node.parameters = createNodeArray(parameters); @@ -21868,7 +21973,7 @@ ${lanes.join("\n")} return node.modifiers !== modifiers || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type || node.equalsGreaterThanToken !== equalsGreaterThanToken || node.body !== body ? finishUpdateBaseSignatureDeclaration(createArrowFunction(modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body), node) : node; } function createDeleteExpression(expression) { - const node = createBaseNode(219 /* DeleteExpression */); + const node = createBaseNode(220 /* DeleteExpression */); node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); node.transformFlags |= propagateChildFlags(node.expression); return node; @@ -21877,7 +21982,7 @@ ${lanes.join("\n")} return node.expression !== expression ? update(createDeleteExpression(expression), node) : node; } function createTypeOfExpression(expression) { - const node = createBaseNode(220 /* TypeOfExpression */); + const node = createBaseNode(221 /* TypeOfExpression */); node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); node.transformFlags |= propagateChildFlags(node.expression); return node; @@ -21886,7 +21991,7 @@ ${lanes.join("\n")} return node.expression !== expression ? update(createTypeOfExpression(expression), node) : node; } function createVoidExpression(expression) { - const node = createBaseNode(221 /* VoidExpression */); + const node = createBaseNode(222 /* VoidExpression */); node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); node.transformFlags |= propagateChildFlags(node.expression); return node; @@ -21895,7 +22000,7 @@ ${lanes.join("\n")} return node.expression !== expression ? update(createVoidExpression(expression), node) : node; } function createAwaitExpression(expression) { - const node = createBaseNode(222 /* AwaitExpression */); + const node = createBaseNode(223 /* AwaitExpression */); node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); node.transformFlags |= propagateChildFlags(node.expression) | 256 /* ContainsES2017 */ | 128 /* ContainsES2018 */ | 2097152 /* ContainsAwait */; return node; @@ -21904,7 +22009,7 @@ ${lanes.join("\n")} return node.expression !== expression ? update(createAwaitExpression(expression), node) : node; } function createPrefixUnaryExpression(operator, operand) { - const node = createBaseNode(223 /* PrefixUnaryExpression */); + const node = createBaseNode(224 /* PrefixUnaryExpression */); node.operator = operator; node.operand = parenthesizerRules().parenthesizeOperandOfPrefixUnary(operand); node.transformFlags |= propagateChildFlags(node.operand); @@ -21917,7 +22022,7 @@ ${lanes.join("\n")} return node.operand !== operand ? update(createPrefixUnaryExpression(node.operator, operand), node) : node; } function createPostfixUnaryExpression(operand, operator) { - const node = createBaseNode(224 /* PostfixUnaryExpression */); + const node = createBaseNode(225 /* PostfixUnaryExpression */); node.operator = operator; node.operand = parenthesizerRules().parenthesizeOperandOfPostfixUnary(operand); node.transformFlags |= propagateChildFlags(node.operand); @@ -21930,7 +22035,7 @@ ${lanes.join("\n")} return node.operand !== operand ? update(createPostfixUnaryExpression(operand, node.operator), node) : node; } function createBinaryExpression(left, operator, right) { - const node = createBaseDeclaration(225 /* BinaryExpression */); + const node = createBaseDeclaration(226 /* BinaryExpression */); const operatorToken = asToken(operator); const operatorKind = operatorToken.kind; node.left = parenthesizerRules().parenthesizeLeftSideOfBinary(operatorKind, left); @@ -21963,7 +22068,7 @@ ${lanes.join("\n")} return node.left !== left || node.operatorToken !== operator || node.right !== right ? update(createBinaryExpression(left, operator, right), node) : node; } function createConditionalExpression(condition, questionToken, whenTrue, colonToken, whenFalse) { - const node = createBaseNode(226 /* ConditionalExpression */); + const node = createBaseNode(227 /* ConditionalExpression */); node.condition = parenthesizerRules().parenthesizeConditionOfConditionalExpression(condition); node.questionToken = questionToken ?? createToken(58 /* QuestionToken */); node.whenTrue = parenthesizerRules().parenthesizeBranchOfConditionalExpression(whenTrue); @@ -21976,7 +22081,7 @@ ${lanes.join("\n")} return node.condition !== condition || node.questionToken !== questionToken || node.whenTrue !== whenTrue || node.colonToken !== colonToken || node.whenFalse !== whenFalse ? update(createConditionalExpression(condition, questionToken, whenTrue, colonToken, whenFalse), node) : node; } function createTemplateExpression(head, templateSpans) { - const node = createBaseNode(227 /* TemplateExpression */); + const node = createBaseNode(228 /* TemplateExpression */); node.head = head; node.templateSpans = createNodeArray(templateSpans); node.transformFlags |= propagateChildFlags(node.head) | propagateChildrenFlags(node.templateSpans) | 1024 /* ContainsES2015 */; @@ -22051,7 +22156,7 @@ ${lanes.join("\n")} } function createYieldExpression(asteriskToken, expression) { Debug.assert(!asteriskToken || !!expression, "A `YieldExpression` with an asteriskToken must have an expression."); - const node = createBaseNode(228 /* YieldExpression */); + const node = createBaseNode(229 /* YieldExpression */); node.expression = expression && parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); node.asteriskToken = asteriskToken; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.asteriskToken) | 1024 /* ContainsES2015 */ | 128 /* ContainsES2018 */ | 1048576 /* ContainsYield */; @@ -22061,7 +22166,7 @@ ${lanes.join("\n")} return node.expression !== expression || node.asteriskToken !== asteriskToken ? update(createYieldExpression(asteriskToken, expression), node) : node; } function createSpreadElement(expression) { - const node = createBaseNode(229 /* SpreadElement */); + const node = createBaseNode(230 /* SpreadElement */); node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); node.transformFlags |= propagateChildFlags(node.expression) | 1024 /* ContainsES2015 */ | 32768 /* ContainsRestOrSpread */; return node; @@ -22070,7 +22175,7 @@ ${lanes.join("\n")} return node.expression !== expression ? update(createSpreadElement(expression), node) : node; } function createClassExpression(modifiers, name, typeParameters, heritageClauses, members) { - const node = createBaseDeclaration(230 /* ClassExpression */); + const node = createBaseDeclaration(231 /* ClassExpression */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.typeParameters = asNodeArray(typeParameters); @@ -22084,10 +22189,10 @@ ${lanes.join("\n")} return node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.heritageClauses !== heritageClauses || node.members !== members ? update(createClassExpression(modifiers, name, typeParameters, heritageClauses, members), node) : node; } function createOmittedExpression() { - return createBaseNode(231 /* OmittedExpression */); + return createBaseNode(232 /* OmittedExpression */); } function createExpressionWithTypeArguments(expression, typeArguments) { - const node = createBaseNode(232 /* ExpressionWithTypeArguments */); + const node = createBaseNode(233 /* ExpressionWithTypeArguments */); node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess( expression, /*optionalChain*/ @@ -22101,7 +22206,7 @@ ${lanes.join("\n")} return node.expression !== expression || node.typeArguments !== typeArguments ? update(createExpressionWithTypeArguments(expression, typeArguments), node) : node; } function createAsExpression(expression, type) { - const node = createBaseNode(233 /* AsExpression */); + const node = createBaseNode(234 /* AsExpression */); node.expression = expression; node.type = type; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.type) | 1 /* ContainsTypeScript */; @@ -22111,7 +22216,7 @@ ${lanes.join("\n")} return node.expression !== expression || node.type !== type ? update(createAsExpression(expression, type), node) : node; } function createNonNullExpression(expression) { - const node = createBaseNode(234 /* NonNullExpression */); + const node = createBaseNode(235 /* NonNullExpression */); node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess( expression, /*optionalChain*/ @@ -22127,7 +22232,7 @@ ${lanes.join("\n")} return node.expression !== expression ? update(createNonNullExpression(expression), node) : node; } function createSatisfiesExpression(expression, type) { - const node = createBaseNode(237 /* SatisfiesExpression */); + const node = createBaseNode(238 /* SatisfiesExpression */); node.expression = expression; node.type = type; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.type) | 1 /* ContainsTypeScript */; @@ -22137,8 +22242,8 @@ ${lanes.join("\n")} return node.expression !== expression || node.type !== type ? update(createSatisfiesExpression(expression, type), node) : node; } function createNonNullChain(expression) { - const node = createBaseNode(234 /* NonNullExpression */); - node.flags |= 32 /* OptionalChain */; + const node = createBaseNode(235 /* NonNullExpression */); + node.flags |= 64 /* OptionalChain */; node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess( expression, /*optionalChain*/ @@ -22148,11 +22253,11 @@ ${lanes.join("\n")} return node; } function updateNonNullChain(node, expression) { - Debug.assert(!!(node.flags & 32 /* OptionalChain */), "Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."); + Debug.assert(!!(node.flags & 64 /* OptionalChain */), "Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."); return node.expression !== expression ? update(createNonNullChain(expression), node) : node; } function createMetaProperty(keywordToken, name) { - const node = createBaseNode(235 /* MetaProperty */); + const node = createBaseNode(236 /* MetaProperty */); node.keywordToken = keywordToken; node.name = name; node.transformFlags |= propagateChildFlags(node.name); @@ -22173,7 +22278,7 @@ ${lanes.join("\n")} return node.name !== name ? update(createMetaProperty(node.keywordToken, name), node) : node; } function createTemplateSpan(expression, literal) { - const node = createBaseNode(238 /* TemplateSpan */); + const node = createBaseNode(239 /* TemplateSpan */); node.expression = expression; node.literal = literal; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.literal) | 1024 /* ContainsES2015 */; @@ -22183,12 +22288,12 @@ ${lanes.join("\n")} return node.expression !== expression || node.literal !== literal ? update(createTemplateSpan(expression, literal), node) : node; } function createSemicolonClassElement() { - const node = createBaseNode(239 /* SemicolonClassElement */); + const node = createBaseNode(240 /* SemicolonClassElement */); node.transformFlags |= 1024 /* ContainsES2015 */; return node; } function createBlock(statements, multiLine) { - const node = createBaseNode(240 /* Block */); + const node = createBaseNode(241 /* Block */); node.statements = createNodeArray(statements); node.multiLine = multiLine; node.transformFlags |= propagateChildrenFlags(node.statements); @@ -22201,7 +22306,7 @@ ${lanes.join("\n")} return node.statements !== statements ? update(createBlock(statements, node.multiLine), node) : node; } function createVariableStatement(modifiers, declarationList) { - const node = createBaseNode(242 /* VariableStatement */); + const node = createBaseNode(243 /* VariableStatement */); node.modifiers = asNodeArray(modifiers); node.declarationList = isArray(declarationList) ? createVariableDeclarationList(declarationList) : declarationList; node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.declarationList); @@ -22216,12 +22321,12 @@ ${lanes.join("\n")} return node.modifiers !== modifiers || node.declarationList !== declarationList ? update(createVariableStatement(modifiers, declarationList), node) : node; } function createEmptyStatement() { - const node = createBaseNode(241 /* EmptyStatement */); + const node = createBaseNode(242 /* EmptyStatement */); node.jsDoc = void 0; return node; } function createExpressionStatement(expression) { - const node = createBaseNode(243 /* ExpressionStatement */); + const node = createBaseNode(244 /* ExpressionStatement */); node.expression = parenthesizerRules().parenthesizeExpressionOfExpressionStatement(expression); node.transformFlags |= propagateChildFlags(node.expression); node.jsDoc = void 0; @@ -22232,7 +22337,7 @@ ${lanes.join("\n")} return node.expression !== expression ? update(createExpressionStatement(expression), node) : node; } function createIfStatement(expression, thenStatement, elseStatement) { - const node = createBaseNode(244 /* IfStatement */); + const node = createBaseNode(245 /* IfStatement */); node.expression = expression; node.thenStatement = asEmbeddedStatement(thenStatement); node.elseStatement = asEmbeddedStatement(elseStatement); @@ -22245,7 +22350,7 @@ ${lanes.join("\n")} return node.expression !== expression || node.thenStatement !== thenStatement || node.elseStatement !== elseStatement ? update(createIfStatement(expression, thenStatement, elseStatement), node) : node; } function createDoStatement(statement, expression) { - const node = createBaseNode(245 /* DoStatement */); + const node = createBaseNode(246 /* DoStatement */); node.statement = asEmbeddedStatement(statement); node.expression = expression; node.transformFlags |= propagateChildFlags(node.statement) | propagateChildFlags(node.expression); @@ -22257,7 +22362,7 @@ ${lanes.join("\n")} return node.statement !== statement || node.expression !== expression ? update(createDoStatement(statement, expression), node) : node; } function createWhileStatement(expression, statement) { - const node = createBaseNode(246 /* WhileStatement */); + const node = createBaseNode(247 /* WhileStatement */); node.expression = expression; node.statement = asEmbeddedStatement(statement); node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.statement); @@ -22269,7 +22374,7 @@ ${lanes.join("\n")} return node.expression !== expression || node.statement !== statement ? update(createWhileStatement(expression, statement), node) : node; } function createForStatement(initializer, condition, incrementor, statement) { - const node = createBaseNode(247 /* ForStatement */); + const node = createBaseNode(248 /* ForStatement */); node.initializer = initializer; node.condition = condition; node.incrementor = incrementor; @@ -22285,7 +22390,7 @@ ${lanes.join("\n")} return node.initializer !== initializer || node.condition !== condition || node.incrementor !== incrementor || node.statement !== statement ? update(createForStatement(initializer, condition, incrementor, statement), node) : node; } function createForInStatement(initializer, expression, statement) { - const node = createBaseNode(248 /* ForInStatement */); + const node = createBaseNode(249 /* ForInStatement */); node.initializer = initializer; node.expression = expression; node.statement = asEmbeddedStatement(statement); @@ -22300,7 +22405,7 @@ ${lanes.join("\n")} return node.initializer !== initializer || node.expression !== expression || node.statement !== statement ? update(createForInStatement(initializer, expression, statement), node) : node; } function createForOfStatement(awaitModifier, initializer, expression, statement) { - const node = createBaseNode(249 /* ForOfStatement */); + const node = createBaseNode(250 /* ForOfStatement */); node.awaitModifier = awaitModifier; node.initializer = initializer; node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); @@ -22318,7 +22423,7 @@ ${lanes.join("\n")} return node.awaitModifier !== awaitModifier || node.initializer !== initializer || node.expression !== expression || node.statement !== statement ? update(createForOfStatement(awaitModifier, initializer, expression, statement), node) : node; } function createContinueStatement(label) { - const node = createBaseNode(250 /* ContinueStatement */); + const node = createBaseNode(251 /* ContinueStatement */); node.label = asName(label); node.transformFlags |= propagateChildFlags(node.label) | 4194304 /* ContainsHoistedDeclarationOrCompletion */; node.jsDoc = void 0; @@ -22329,7 +22434,7 @@ ${lanes.join("\n")} return node.label !== label ? update(createContinueStatement(label), node) : node; } function createBreakStatement(label) { - const node = createBaseNode(251 /* BreakStatement */); + const node = createBaseNode(252 /* BreakStatement */); node.label = asName(label); node.transformFlags |= propagateChildFlags(node.label) | 4194304 /* ContainsHoistedDeclarationOrCompletion */; node.jsDoc = void 0; @@ -22340,7 +22445,7 @@ ${lanes.join("\n")} return node.label !== label ? update(createBreakStatement(label), node) : node; } function createReturnStatement(expression) { - const node = createBaseNode(252 /* ReturnStatement */); + const node = createBaseNode(253 /* ReturnStatement */); node.expression = expression; node.transformFlags |= propagateChildFlags(node.expression) | 128 /* ContainsES2018 */ | 4194304 /* ContainsHoistedDeclarationOrCompletion */; node.jsDoc = void 0; @@ -22351,7 +22456,7 @@ ${lanes.join("\n")} return node.expression !== expression ? update(createReturnStatement(expression), node) : node; } function createWithStatement(expression, statement) { - const node = createBaseNode(253 /* WithStatement */); + const node = createBaseNode(254 /* WithStatement */); node.expression = expression; node.statement = asEmbeddedStatement(statement); node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.statement); @@ -22363,7 +22468,7 @@ ${lanes.join("\n")} return node.expression !== expression || node.statement !== statement ? update(createWithStatement(expression, statement), node) : node; } function createSwitchStatement(expression, caseBlock) { - const node = createBaseNode(254 /* SwitchStatement */); + const node = createBaseNode(255 /* SwitchStatement */); node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); node.caseBlock = caseBlock; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.caseBlock); @@ -22376,7 +22481,7 @@ ${lanes.join("\n")} return node.expression !== expression || node.caseBlock !== caseBlock ? update(createSwitchStatement(expression, caseBlock), node) : node; } function createLabeledStatement(label, statement) { - const node = createBaseNode(255 /* LabeledStatement */); + const node = createBaseNode(256 /* LabeledStatement */); node.label = asName(label); node.statement = asEmbeddedStatement(statement); node.transformFlags |= propagateChildFlags(node.label) | propagateChildFlags(node.statement); @@ -22388,7 +22493,7 @@ ${lanes.join("\n")} return node.label !== label || node.statement !== statement ? update(createLabeledStatement(label, statement), node) : node; } function createThrowStatement(expression) { - const node = createBaseNode(256 /* ThrowStatement */); + const node = createBaseNode(257 /* ThrowStatement */); node.expression = expression; node.transformFlags |= propagateChildFlags(node.expression); node.jsDoc = void 0; @@ -22399,7 +22504,7 @@ ${lanes.join("\n")} return node.expression !== expression ? update(createThrowStatement(expression), node) : node; } function createTryStatement(tryBlock, catchClause, finallyBlock) { - const node = createBaseNode(257 /* TryStatement */); + const node = createBaseNode(258 /* TryStatement */); node.tryBlock = tryBlock; node.catchClause = catchClause; node.finallyBlock = finallyBlock; @@ -22412,13 +22517,13 @@ ${lanes.join("\n")} return node.tryBlock !== tryBlock || node.catchClause !== catchClause || node.finallyBlock !== finallyBlock ? update(createTryStatement(tryBlock, catchClause, finallyBlock), node) : node; } function createDebuggerStatement() { - const node = createBaseNode(258 /* DebuggerStatement */); + const node = createBaseNode(259 /* DebuggerStatement */); node.jsDoc = void 0; node.flowNode = void 0; return node; } function createVariableDeclaration(name, exclamationToken, type, initializer) { - const node = createBaseDeclaration(259 /* VariableDeclaration */); + const node = createBaseDeclaration(260 /* VariableDeclaration */); node.name = asName(name); node.exclamationToken = exclamationToken; node.type = type; @@ -22431,20 +22536,23 @@ ${lanes.join("\n")} return node.name !== name || node.type !== type || node.exclamationToken !== exclamationToken || node.initializer !== initializer ? update(createVariableDeclaration(name, exclamationToken, type, initializer), node) : node; } function createVariableDeclarationList(declarations, flags2 = 0 /* None */) { - const node = createBaseNode(260 /* VariableDeclarationList */); - node.flags |= flags2 & 3 /* BlockScoped */; + const node = createBaseNode(261 /* VariableDeclarationList */); + node.flags |= flags2 & 7 /* BlockScoped */; node.declarations = createNodeArray(declarations); node.transformFlags |= propagateChildrenFlags(node.declarations) | 4194304 /* ContainsHoistedDeclarationOrCompletion */; - if (flags2 & 3 /* BlockScoped */) { + if (flags2 & 7 /* BlockScoped */) { node.transformFlags |= 1024 /* ContainsES2015 */ | 262144 /* ContainsBlockScopedBinding */; } + if (flags2 & 4 /* Using */) { + node.transformFlags |= 4 /* ContainsESNext */; + } return node; } function updateVariableDeclarationList(node, declarations) { return node.declarations !== declarations ? update(createVariableDeclarationList(declarations, node.flags), node) : node; } function createFunctionDeclaration(modifiers, asteriskToken, name, typeParameters, parameters, type, body) { - const node = createBaseDeclaration(261 /* FunctionDeclaration */); + const node = createBaseDeclaration(262 /* FunctionDeclaration */); node.modifiers = asNodeArray(modifiers); node.asteriskToken = asteriskToken; node.name = asName(name); @@ -22480,7 +22588,7 @@ ${lanes.join("\n")} return finishUpdateBaseSignatureDeclaration(updated, original); } function createClassDeclaration(modifiers, name, typeParameters, heritageClauses, members) { - const node = createBaseDeclaration(262 /* ClassDeclaration */); + const node = createBaseDeclaration(263 /* ClassDeclaration */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.typeParameters = asNodeArray(typeParameters); @@ -22501,7 +22609,7 @@ ${lanes.join("\n")} return node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.heritageClauses !== heritageClauses || node.members !== members ? update(createClassDeclaration(modifiers, name, typeParameters, heritageClauses, members), node) : node; } function createInterfaceDeclaration(modifiers, name, typeParameters, heritageClauses, members) { - const node = createBaseDeclaration(263 /* InterfaceDeclaration */); + const node = createBaseDeclaration(264 /* InterfaceDeclaration */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.typeParameters = asNodeArray(typeParameters); @@ -22515,7 +22623,7 @@ ${lanes.join("\n")} return node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.heritageClauses !== heritageClauses || node.members !== members ? update(createInterfaceDeclaration(modifiers, name, typeParameters, heritageClauses, members), node) : node; } function createTypeAliasDeclaration(modifiers, name, typeParameters, type) { - const node = createBaseDeclaration(264 /* TypeAliasDeclaration */); + const node = createBaseDeclaration(265 /* TypeAliasDeclaration */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.typeParameters = asNodeArray(typeParameters); @@ -22530,7 +22638,7 @@ ${lanes.join("\n")} return node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.type !== type ? update(createTypeAliasDeclaration(modifiers, name, typeParameters, type), node) : node; } function createEnumDeclaration(modifiers, name, members) { - const node = createBaseDeclaration(265 /* EnumDeclaration */); + const node = createBaseDeclaration(266 /* EnumDeclaration */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.members = createNodeArray(members); @@ -22543,9 +22651,9 @@ ${lanes.join("\n")} return node.modifiers !== modifiers || node.name !== name || node.members !== members ? update(createEnumDeclaration(modifiers, name, members), node) : node; } function createModuleDeclaration(modifiers, name, body, flags2 = 0 /* None */) { - const node = createBaseDeclaration(266 /* ModuleDeclaration */); + const node = createBaseDeclaration(267 /* ModuleDeclaration */); node.modifiers = asNodeArray(modifiers); - node.flags |= flags2 & (16 /* Namespace */ | 4 /* NestedNamespace */ | 1024 /* GlobalAugmentation */); + node.flags |= flags2 & (32 /* Namespace */ | 8 /* NestedNamespace */ | 2048 /* GlobalAugmentation */); node.name = name; node.body = body; if (modifiersToFlags(node.modifiers) & 2 /* Ambient */) { @@ -22563,7 +22671,7 @@ ${lanes.join("\n")} return node.modifiers !== modifiers || node.name !== name || node.body !== body ? update(createModuleDeclaration(modifiers, name, body, node.flags), node) : node; } function createModuleBlock(statements) { - const node = createBaseNode(267 /* ModuleBlock */); + const node = createBaseNode(268 /* ModuleBlock */); node.statements = createNodeArray(statements); node.transformFlags |= propagateChildrenFlags(node.statements); node.jsDoc = void 0; @@ -22573,7 +22681,7 @@ ${lanes.join("\n")} return node.statements !== statements ? update(createModuleBlock(statements), node) : node; } function createCaseBlock(clauses) { - const node = createBaseNode(268 /* CaseBlock */); + const node = createBaseNode(269 /* CaseBlock */); node.clauses = createNodeArray(clauses); node.transformFlags |= propagateChildrenFlags(node.clauses); node.locals = void 0; @@ -22584,7 +22692,7 @@ ${lanes.join("\n")} return node.clauses !== clauses ? update(createCaseBlock(clauses), node) : node; } function createNamespaceExportDeclaration(name) { - const node = createBaseDeclaration(269 /* NamespaceExportDeclaration */); + const node = createBaseDeclaration(270 /* NamespaceExportDeclaration */); node.name = asName(name); node.transformFlags |= propagateIdentifierNameFlags(node.name) | 1 /* ContainsTypeScript */; node.modifiers = void 0; @@ -22601,7 +22709,7 @@ ${lanes.join("\n")} return update(updated, original); } function createImportEqualsDeclaration(modifiers, isTypeOnly, name, moduleReference) { - const node = createBaseDeclaration(270 /* ImportEqualsDeclaration */); + const node = createBaseDeclaration(271 /* ImportEqualsDeclaration */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.isTypeOnly = isTypeOnly; @@ -22618,7 +22726,7 @@ ${lanes.join("\n")} return node.modifiers !== modifiers || node.isTypeOnly !== isTypeOnly || node.name !== name || node.moduleReference !== moduleReference ? update(createImportEqualsDeclaration(modifiers, isTypeOnly, name, moduleReference), node) : node; } function createImportDeclaration(modifiers, importClause, moduleSpecifier, assertClause) { - const node = createBaseNode(271 /* ImportDeclaration */); + const node = createBaseNode(272 /* ImportDeclaration */); node.modifiers = asNodeArray(modifiers); node.importClause = importClause; node.moduleSpecifier = moduleSpecifier; @@ -22632,7 +22740,7 @@ ${lanes.join("\n")} return node.modifiers !== modifiers || node.importClause !== importClause || node.moduleSpecifier !== moduleSpecifier || node.assertClause !== assertClause ? update(createImportDeclaration(modifiers, importClause, moduleSpecifier, assertClause), node) : node; } function createImportClause(isTypeOnly, name, namedBindings) { - const node = createBaseDeclaration(272 /* ImportClause */); + const node = createBaseDeclaration(273 /* ImportClause */); node.isTypeOnly = isTypeOnly; node.name = name; node.namedBindings = namedBindings; @@ -22647,7 +22755,7 @@ ${lanes.join("\n")} return node.isTypeOnly !== isTypeOnly || node.name !== name || node.namedBindings !== namedBindings ? update(createImportClause(isTypeOnly, name, namedBindings), node) : node; } function createAssertClause(elements, multiLine) { - const node = createBaseNode(299 /* AssertClause */); + const node = createBaseNode(300 /* AssertClause */); node.elements = createNodeArray(elements); node.multiLine = multiLine; node.transformFlags |= 4 /* ContainsESNext */; @@ -22657,7 +22765,7 @@ ${lanes.join("\n")} return node.elements !== elements || node.multiLine !== multiLine ? update(createAssertClause(elements, multiLine), node) : node; } function createAssertEntry(name, value) { - const node = createBaseNode(300 /* AssertEntry */); + const node = createBaseNode(301 /* AssertEntry */); node.name = name; node.value = value; node.transformFlags |= 4 /* ContainsESNext */; @@ -22667,7 +22775,7 @@ ${lanes.join("\n")} return node.name !== name || node.value !== value ? update(createAssertEntry(name, value), node) : node; } function createImportTypeAssertionContainer(clause, multiLine) { - const node = createBaseNode(301 /* ImportTypeAssertionContainer */); + const node = createBaseNode(302 /* ImportTypeAssertionContainer */); node.assertClause = clause; node.multiLine = multiLine; return node; @@ -22676,7 +22784,7 @@ ${lanes.join("\n")} return node.assertClause !== clause || node.multiLine !== multiLine ? update(createImportTypeAssertionContainer(clause, multiLine), node) : node; } function createNamespaceImport(name) { - const node = createBaseDeclaration(273 /* NamespaceImport */); + const node = createBaseDeclaration(274 /* NamespaceImport */); node.name = name; node.transformFlags |= propagateChildFlags(node.name); node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; @@ -22686,7 +22794,7 @@ ${lanes.join("\n")} return node.name !== name ? update(createNamespaceImport(name), node) : node; } function createNamespaceExport(name) { - const node = createBaseDeclaration(279 /* NamespaceExport */); + const node = createBaseDeclaration(280 /* NamespaceExport */); node.name = name; node.transformFlags |= propagateChildFlags(node.name) | 32 /* ContainsES2020 */; node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; @@ -22696,7 +22804,7 @@ ${lanes.join("\n")} return node.name !== name ? update(createNamespaceExport(name), node) : node; } function createNamedImports(elements) { - const node = createBaseNode(274 /* NamedImports */); + const node = createBaseNode(275 /* NamedImports */); node.elements = createNodeArray(elements); node.transformFlags |= propagateChildrenFlags(node.elements); node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; @@ -22706,7 +22814,7 @@ ${lanes.join("\n")} return node.elements !== elements ? update(createNamedImports(elements), node) : node; } function createImportSpecifier(isTypeOnly, propertyName, name) { - const node = createBaseDeclaration(275 /* ImportSpecifier */); + const node = createBaseDeclaration(276 /* ImportSpecifier */); node.isTypeOnly = isTypeOnly; node.propertyName = propertyName; node.name = name; @@ -22718,7 +22826,7 @@ ${lanes.join("\n")} return node.isTypeOnly !== isTypeOnly || node.propertyName !== propertyName || node.name !== name ? update(createImportSpecifier(isTypeOnly, propertyName, name), node) : node; } function createExportAssignment2(modifiers, isExportEquals, expression) { - const node = createBaseDeclaration(276 /* ExportAssignment */); + const node = createBaseDeclaration(277 /* ExportAssignment */); node.modifiers = asNodeArray(modifiers); node.isExportEquals = isExportEquals; node.expression = isExportEquals ? parenthesizerRules().parenthesizeRightSideOfBinary( @@ -22736,7 +22844,7 @@ ${lanes.join("\n")} return node.modifiers !== modifiers || node.expression !== expression ? update(createExportAssignment2(modifiers, node.isExportEquals, expression), node) : node; } function createExportDeclaration(modifiers, isTypeOnly, exportClause, moduleSpecifier, assertClause) { - const node = createBaseDeclaration(277 /* ExportDeclaration */); + const node = createBaseDeclaration(278 /* ExportDeclaration */); node.modifiers = asNodeArray(modifiers); node.isTypeOnly = isTypeOnly; node.exportClause = exportClause; @@ -22759,7 +22867,7 @@ ${lanes.join("\n")} return update(updated, original); } function createNamedExports(elements) { - const node = createBaseNode(278 /* NamedExports */); + const node = createBaseNode(279 /* NamedExports */); node.elements = createNodeArray(elements); node.transformFlags |= propagateChildrenFlags(node.elements); node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; @@ -22769,7 +22877,7 @@ ${lanes.join("\n")} return node.elements !== elements ? update(createNamedExports(elements), node) : node; } function createExportSpecifier(isTypeOnly, propertyName, name) { - const node = createBaseNode(280 /* ExportSpecifier */); + const node = createBaseNode(281 /* ExportSpecifier */); node.isTypeOnly = isTypeOnly; node.propertyName = asName(propertyName); node.name = asName(name); @@ -22782,12 +22890,12 @@ ${lanes.join("\n")} return node.isTypeOnly !== isTypeOnly || node.propertyName !== propertyName || node.name !== name ? update(createExportSpecifier(isTypeOnly, propertyName, name), node) : node; } function createMissingDeclaration() { - const node = createBaseDeclaration(281 /* MissingDeclaration */); + const node = createBaseDeclaration(282 /* MissingDeclaration */); node.jsDoc = void 0; return node; } function createExternalModuleReference(expression) { - const node = createBaseNode(282 /* ExternalModuleReference */); + const node = createBaseNode(283 /* ExternalModuleReference */); node.expression = expression; node.transformFlags |= propagateChildFlags(node.expression); node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; @@ -22819,7 +22927,7 @@ ${lanes.join("\n")} return node.type !== type ? update(createJSDocUnaryTypeWorker(kind, type), node) : node; } function createJSDocFunctionType(parameters, type) { - const node = createBaseDeclaration(323 /* JSDocFunctionType */); + const node = createBaseDeclaration(324 /* JSDocFunctionType */); node.parameters = asNodeArray(parameters); node.type = type; node.transformFlags = propagateChildrenFlags(node.parameters) | (node.type ? 1 /* ContainsTypeScript */ : 0 /* None */); @@ -22833,7 +22941,7 @@ ${lanes.join("\n")} return node.parameters !== parameters || node.type !== type ? update(createJSDocFunctionType(parameters, type), node) : node; } function createJSDocTypeLiteral(propertyTags, isArrayType = false) { - const node = createBaseDeclaration(328 /* JSDocTypeLiteral */); + const node = createBaseDeclaration(329 /* JSDocTypeLiteral */); node.jsDocPropertyTags = asNodeArray(propertyTags); node.isArrayType = isArrayType; return node; @@ -22842,7 +22950,7 @@ ${lanes.join("\n")} return node.jsDocPropertyTags !== propertyTags || node.isArrayType !== isArrayType ? update(createJSDocTypeLiteral(propertyTags, isArrayType), node) : node; } function createJSDocTypeExpression(type) { - const node = createBaseNode(315 /* JSDocTypeExpression */); + const node = createBaseNode(316 /* JSDocTypeExpression */); node.type = type; return node; } @@ -22850,7 +22958,7 @@ ${lanes.join("\n")} return node.type !== type ? update(createJSDocTypeExpression(type), node) : node; } function createJSDocSignature(typeParameters, parameters, type) { - const node = createBaseDeclaration(329 /* JSDocSignature */); + const node = createBaseDeclaration(330 /* JSDocSignature */); node.typeParameters = asNodeArray(typeParameters); node.parameters = createNodeArray(parameters); node.type = type; @@ -22879,7 +22987,7 @@ ${lanes.join("\n")} return node; } function createJSDocTemplateTag(tagName, constraint, typeParameters, comment) { - const node = createBaseJSDocTag(351 /* JSDocTemplateTag */, tagName ?? createIdentifier("template"), comment); + const node = createBaseJSDocTag(352 /* JSDocTemplateTag */, tagName ?? createIdentifier("template"), comment); node.constraint = constraint; node.typeParameters = createNodeArray(typeParameters); return node; @@ -22888,7 +22996,7 @@ ${lanes.join("\n")} return node.tagName !== tagName || node.constraint !== constraint || node.typeParameters !== typeParameters || node.comment !== comment ? update(createJSDocTemplateTag(tagName, constraint, typeParameters, comment), node) : node; } function createJSDocTypedefTag(tagName, typeExpression, fullName, comment) { - const node = createBaseJSDocTagDeclaration(352 /* JSDocTypedefTag */, tagName ?? createIdentifier("typedef"), comment); + const node = createBaseJSDocTagDeclaration(353 /* JSDocTypedefTag */, tagName ?? createIdentifier("typedef"), comment); node.typeExpression = typeExpression; node.fullName = fullName; node.name = getJSDocTypeAliasName(fullName); @@ -22900,7 +23008,7 @@ ${lanes.join("\n")} return node.tagName !== tagName || node.typeExpression !== typeExpression || node.fullName !== fullName || node.comment !== comment ? update(createJSDocTypedefTag(tagName, typeExpression, fullName, comment), node) : node; } function createJSDocParameterTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment) { - const node = createBaseJSDocTagDeclaration(347 /* JSDocParameterTag */, tagName ?? createIdentifier("param"), comment); + const node = createBaseJSDocTagDeclaration(348 /* JSDocParameterTag */, tagName ?? createIdentifier("param"), comment); node.typeExpression = typeExpression; node.name = name; node.isNameFirst = !!isNameFirst; @@ -22911,7 +23019,7 @@ ${lanes.join("\n")} return node.tagName !== tagName || node.name !== name || node.isBracketed !== isBracketed || node.typeExpression !== typeExpression || node.isNameFirst !== isNameFirst || node.comment !== comment ? update(createJSDocParameterTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment), node) : node; } function createJSDocPropertyTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment) { - const node = createBaseJSDocTagDeclaration(354 /* JSDocPropertyTag */, tagName ?? createIdentifier("prop"), comment); + const node = createBaseJSDocTagDeclaration(355 /* JSDocPropertyTag */, tagName ?? createIdentifier("prop"), comment); node.typeExpression = typeExpression; node.name = name; node.isNameFirst = !!isNameFirst; @@ -22922,7 +23030,7 @@ ${lanes.join("\n")} return node.tagName !== tagName || node.name !== name || node.isBracketed !== isBracketed || node.typeExpression !== typeExpression || node.isNameFirst !== isNameFirst || node.comment !== comment ? update(createJSDocPropertyTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment), node) : node; } function createJSDocCallbackTag(tagName, typeExpression, fullName, comment) { - const node = createBaseJSDocTagDeclaration(344 /* JSDocCallbackTag */, tagName ?? createIdentifier("callback"), comment); + const node = createBaseJSDocTagDeclaration(345 /* JSDocCallbackTag */, tagName ?? createIdentifier("callback"), comment); node.typeExpression = typeExpression; node.fullName = fullName; node.name = getJSDocTypeAliasName(fullName); @@ -22934,7 +23042,7 @@ ${lanes.join("\n")} return node.tagName !== tagName || node.typeExpression !== typeExpression || node.fullName !== fullName || node.comment !== comment ? update(createJSDocCallbackTag(tagName, typeExpression, fullName, comment), node) : node; } function createJSDocOverloadTag(tagName, typeExpression, comment) { - const node = createBaseJSDocTag(345 /* JSDocOverloadTag */, tagName ?? createIdentifier("overload"), comment); + const node = createBaseJSDocTag(346 /* JSDocOverloadTag */, tagName ?? createIdentifier("overload"), comment); node.typeExpression = typeExpression; return node; } @@ -22942,7 +23050,7 @@ ${lanes.join("\n")} return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocOverloadTag(tagName, typeExpression, comment), node) : node; } function createJSDocAugmentsTag(tagName, className, comment) { - const node = createBaseJSDocTag(334 /* JSDocAugmentsTag */, tagName ?? createIdentifier("augments"), comment); + const node = createBaseJSDocTag(335 /* JSDocAugmentsTag */, tagName ?? createIdentifier("augments"), comment); node.class = className; return node; } @@ -22950,12 +23058,12 @@ ${lanes.join("\n")} return node.tagName !== tagName || node.class !== className || node.comment !== comment ? update(createJSDocAugmentsTag(tagName, className, comment), node) : node; } function createJSDocImplementsTag(tagName, className, comment) { - const node = createBaseJSDocTag(335 /* JSDocImplementsTag */, tagName ?? createIdentifier("implements"), comment); + const node = createBaseJSDocTag(336 /* JSDocImplementsTag */, tagName ?? createIdentifier("implements"), comment); node.class = className; return node; } function createJSDocSeeTag(tagName, name, comment) { - const node = createBaseJSDocTag(353 /* JSDocSeeTag */, tagName ?? createIdentifier("see"), comment); + const node = createBaseJSDocTag(354 /* JSDocSeeTag */, tagName ?? createIdentifier("see"), comment); node.name = name; return node; } @@ -22963,7 +23071,7 @@ ${lanes.join("\n")} return node.tagName !== tagName || node.name !== name || node.comment !== comment ? update(createJSDocSeeTag(tagName, name, comment), node) : node; } function createJSDocNameReference(name) { - const node = createBaseNode(316 /* JSDocNameReference */); + const node = createBaseNode(317 /* JSDocNameReference */); node.name = name; return node; } @@ -22971,7 +23079,7 @@ ${lanes.join("\n")} return node.name !== name ? update(createJSDocNameReference(name), node) : node; } function createJSDocMemberName(left, right) { - const node = createBaseNode(317 /* JSDocMemberName */); + const node = createBaseNode(318 /* JSDocMemberName */); node.left = left; node.right = right; node.transformFlags |= propagateChildFlags(node.left) | propagateChildFlags(node.right); @@ -22981,7 +23089,7 @@ ${lanes.join("\n")} return node.left !== left || node.right !== right ? update(createJSDocMemberName(left, right), node) : node; } function createJSDocLink(name, text) { - const node = createBaseNode(330 /* JSDocLink */); + const node = createBaseNode(331 /* JSDocLink */); node.name = name; node.text = text; return node; @@ -22990,7 +23098,7 @@ ${lanes.join("\n")} return node.name !== name ? update(createJSDocLink(name, text), node) : node; } function createJSDocLinkCode(name, text) { - const node = createBaseNode(331 /* JSDocLinkCode */); + const node = createBaseNode(332 /* JSDocLinkCode */); node.name = name; node.text = text; return node; @@ -22999,7 +23107,7 @@ ${lanes.join("\n")} return node.name !== name ? update(createJSDocLinkCode(name, text), node) : node; } function createJSDocLinkPlain(name, text) { - const node = createBaseNode(332 /* JSDocLinkPlain */); + const node = createBaseNode(333 /* JSDocLinkPlain */); node.name = name; node.text = text; return node; @@ -23026,14 +23134,14 @@ ${lanes.join("\n")} return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocTypeLikeTagWorker(kind, tagName, typeExpression, comment), node) : node; } function createJSDocUnknownTag(tagName, comment) { - const node = createBaseJSDocTag(333 /* JSDocTag */, tagName, comment); + const node = createBaseJSDocTag(334 /* JSDocTag */, tagName, comment); return node; } function updateJSDocUnknownTag(node, tagName, comment) { return node.tagName !== tagName || node.comment !== comment ? update(createJSDocUnknownTag(tagName, comment), node) : node; } function createJSDocEnumTag(tagName, typeExpression, comment) { - const node = createBaseJSDocTagDeclaration(346 /* JSDocEnumTag */, tagName ?? createIdentifier(getDefaultTagNameForKind(346 /* JSDocEnumTag */)), comment); + const node = createBaseJSDocTagDeclaration(347 /* JSDocEnumTag */, tagName ?? createIdentifier(getDefaultTagNameForKind(347 /* JSDocEnumTag */)), comment); node.typeExpression = typeExpression; node.locals = void 0; node.nextContainer = void 0; @@ -23043,7 +23151,7 @@ ${lanes.join("\n")} return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocEnumTag(tagName, typeExpression, comment), node) : node; } function createJSDocText(text) { - const node = createBaseNode(327 /* JSDocText */); + const node = createBaseNode(328 /* JSDocText */); node.text = text; return node; } @@ -23051,7 +23159,7 @@ ${lanes.join("\n")} return node.text !== text ? update(createJSDocText(text), node) : node; } function createJSDocComment(comment, tags) { - const node = createBaseNode(326 /* JSDoc */); + const node = createBaseNode(327 /* JSDoc */); node.comment = comment; node.tags = asNodeArray(tags); return node; @@ -23060,7 +23168,7 @@ ${lanes.join("\n")} return node.comment !== comment || node.tags !== tags ? update(createJSDocComment(comment, tags), node) : node; } function createJsxElement(openingElement, children, closingElement) { - const node = createBaseNode(283 /* JsxElement */); + const node = createBaseNode(284 /* JsxElement */); node.openingElement = openingElement; node.children = createNodeArray(children); node.closingElement = closingElement; @@ -23071,7 +23179,7 @@ ${lanes.join("\n")} return node.openingElement !== openingElement || node.children !== children || node.closingElement !== closingElement ? update(createJsxElement(openingElement, children, closingElement), node) : node; } function createJsxSelfClosingElement(tagName, typeArguments, attributes) { - const node = createBaseNode(284 /* JsxSelfClosingElement */); + const node = createBaseNode(285 /* JsxSelfClosingElement */); node.tagName = tagName; node.typeArguments = asNodeArray(typeArguments); node.attributes = attributes; @@ -23085,7 +23193,7 @@ ${lanes.join("\n")} return node.tagName !== tagName || node.typeArguments !== typeArguments || node.attributes !== attributes ? update(createJsxSelfClosingElement(tagName, typeArguments, attributes), node) : node; } function createJsxOpeningElement(tagName, typeArguments, attributes) { - const node = createBaseNode(285 /* JsxOpeningElement */); + const node = createBaseNode(286 /* JsxOpeningElement */); node.tagName = tagName; node.typeArguments = asNodeArray(typeArguments); node.attributes = attributes; @@ -23099,7 +23207,7 @@ ${lanes.join("\n")} return node.tagName !== tagName || node.typeArguments !== typeArguments || node.attributes !== attributes ? update(createJsxOpeningElement(tagName, typeArguments, attributes), node) : node; } function createJsxClosingElement(tagName) { - const node = createBaseNode(286 /* JsxClosingElement */); + const node = createBaseNode(287 /* JsxClosingElement */); node.tagName = tagName; node.transformFlags |= propagateChildFlags(node.tagName) | 2 /* ContainsJsx */; return node; @@ -23108,7 +23216,7 @@ ${lanes.join("\n")} return node.tagName !== tagName ? update(createJsxClosingElement(tagName), node) : node; } function createJsxFragment(openingFragment, children, closingFragment) { - const node = createBaseNode(287 /* JsxFragment */); + const node = createBaseNode(288 /* JsxFragment */); node.openingFragment = openingFragment; node.children = createNodeArray(children); node.closingFragment = closingFragment; @@ -23129,17 +23237,17 @@ ${lanes.join("\n")} return node.text !== text || node.containsOnlyTriviaWhiteSpaces !== containsOnlyTriviaWhiteSpaces ? update(createJsxText(text, containsOnlyTriviaWhiteSpaces), node) : node; } function createJsxOpeningFragment() { - const node = createBaseNode(288 /* JsxOpeningFragment */); + const node = createBaseNode(289 /* JsxOpeningFragment */); node.transformFlags |= 2 /* ContainsJsx */; return node; } function createJsxJsxClosingFragment() { - const node = createBaseNode(289 /* JsxClosingFragment */); + const node = createBaseNode(290 /* JsxClosingFragment */); node.transformFlags |= 2 /* ContainsJsx */; return node; } function createJsxAttribute(name, initializer) { - const node = createBaseDeclaration(290 /* JsxAttribute */); + const node = createBaseDeclaration(291 /* JsxAttribute */); node.name = name; node.initializer = initializer; node.transformFlags |= propagateChildFlags(node.name) | propagateChildFlags(node.initializer) | 2 /* ContainsJsx */; @@ -23149,7 +23257,7 @@ ${lanes.join("\n")} return node.name !== name || node.initializer !== initializer ? update(createJsxAttribute(name, initializer), node) : node; } function createJsxAttributes(properties) { - const node = createBaseDeclaration(291 /* JsxAttributes */); + const node = createBaseDeclaration(292 /* JsxAttributes */); node.properties = createNodeArray(properties); node.transformFlags |= propagateChildrenFlags(node.properties) | 2 /* ContainsJsx */; return node; @@ -23158,7 +23266,7 @@ ${lanes.join("\n")} return node.properties !== properties ? update(createJsxAttributes(properties), node) : node; } function createJsxSpreadAttribute(expression) { - const node = createBaseNode(292 /* JsxSpreadAttribute */); + const node = createBaseNode(293 /* JsxSpreadAttribute */); node.expression = expression; node.transformFlags |= propagateChildFlags(node.expression) | 2 /* ContainsJsx */; return node; @@ -23167,7 +23275,7 @@ ${lanes.join("\n")} return node.expression !== expression ? update(createJsxSpreadAttribute(expression), node) : node; } function createJsxExpression(dotDotDotToken, expression) { - const node = createBaseNode(293 /* JsxExpression */); + const node = createBaseNode(294 /* JsxExpression */); node.dotDotDotToken = dotDotDotToken; node.expression = expression; node.transformFlags |= propagateChildFlags(node.dotDotDotToken) | propagateChildFlags(node.expression) | 2 /* ContainsJsx */; @@ -23177,7 +23285,7 @@ ${lanes.join("\n")} return node.expression !== expression ? update(createJsxExpression(node.dotDotDotToken, expression), node) : node; } function createJsxNamespacedName(namespace, name) { - const node = createBaseNode(294 /* JsxNamespacedName */); + const node = createBaseNode(295 /* JsxNamespacedName */); node.namespace = namespace; node.name = name; node.transformFlags |= propagateChildFlags(node.namespace) | propagateChildFlags(node.name) | 2 /* ContainsJsx */; @@ -23187,7 +23295,7 @@ ${lanes.join("\n")} return node.namespace !== namespace || node.name !== name ? update(createJsxNamespacedName(namespace, name), node) : node; } function createCaseClause(expression, statements) { - const node = createBaseNode(295 /* CaseClause */); + const node = createBaseNode(296 /* CaseClause */); node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); node.statements = createNodeArray(statements); node.transformFlags |= propagateChildFlags(node.expression) | propagateChildrenFlags(node.statements); @@ -23198,7 +23306,7 @@ ${lanes.join("\n")} return node.expression !== expression || node.statements !== statements ? update(createCaseClause(expression, statements), node) : node; } function createDefaultClause(statements) { - const node = createBaseNode(296 /* DefaultClause */); + const node = createBaseNode(297 /* DefaultClause */); node.statements = createNodeArray(statements); node.transformFlags = propagateChildrenFlags(node.statements); return node; @@ -23207,7 +23315,7 @@ ${lanes.join("\n")} return node.statements !== statements ? update(createDefaultClause(statements), node) : node; } function createHeritageClause(token, types) { - const node = createBaseNode(297 /* HeritageClause */); + const node = createBaseNode(298 /* HeritageClause */); node.token = token; node.types = createNodeArray(types); node.transformFlags |= propagateChildrenFlags(node.types); @@ -23227,7 +23335,7 @@ ${lanes.join("\n")} return node.types !== types ? update(createHeritageClause(node.token, types), node) : node; } function createCatchClause(variableDeclaration, block) { - const node = createBaseNode(298 /* CatchClause */); + const node = createBaseNode(299 /* CatchClause */); node.variableDeclaration = asVariableDeclaration(variableDeclaration); node.block = block; node.transformFlags |= propagateChildFlags(node.variableDeclaration) | propagateChildFlags(node.block) | (!variableDeclaration ? 64 /* ContainsES2019 */ : 0 /* None */); @@ -23239,7 +23347,7 @@ ${lanes.join("\n")} return node.variableDeclaration !== variableDeclaration || node.block !== block ? update(createCatchClause(variableDeclaration, block), node) : node; } function createPropertyAssignment(name, initializer) { - const node = createBaseDeclaration(302 /* PropertyAssignment */); + const node = createBaseDeclaration(303 /* PropertyAssignment */); node.name = asName(name); node.initializer = parenthesizerRules().parenthesizeExpressionForDisallowedComma(initializer); node.transformFlags |= propagateNameFlags(node.name) | propagateChildFlags(node.initializer); @@ -23261,7 +23369,7 @@ ${lanes.join("\n")} return update(updated, original); } function createShorthandPropertyAssignment(name, objectAssignmentInitializer) { - const node = createBaseDeclaration(303 /* ShorthandPropertyAssignment */); + const node = createBaseDeclaration(304 /* ShorthandPropertyAssignment */); node.name = asName(name); node.objectAssignmentInitializer = objectAssignmentInitializer && parenthesizerRules().parenthesizeExpressionForDisallowedComma(objectAssignmentInitializer); node.transformFlags |= propagateIdentifierNameFlags(node.name) | propagateChildFlags(node.objectAssignmentInitializer) | 1024 /* ContainsES2015 */; @@ -23285,7 +23393,7 @@ ${lanes.join("\n")} return update(updated, original); } function createSpreadAssignment(expression) { - const node = createBaseDeclaration(304 /* SpreadAssignment */); + const node = createBaseDeclaration(305 /* SpreadAssignment */); node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); node.transformFlags |= propagateChildFlags(node.expression) | 128 /* ContainsES2018 */ | 65536 /* ContainsObjectRestOrSpread */; node.jsDoc = void 0; @@ -23295,7 +23403,7 @@ ${lanes.join("\n")} return node.expression !== expression ? update(createSpreadAssignment(expression), node) : node; } function createEnumMember(name, initializer) { - const node = createBaseDeclaration(305 /* EnumMember */); + const node = createBaseDeclaration(306 /* EnumMember */); node.name = asName(name); node.initializer = initializer && parenthesizerRules().parenthesizeExpressionForDisallowedComma(initializer); node.transformFlags |= propagateChildFlags(node.name) | propagateChildFlags(node.initializer) | 1 /* ContainsTypeScript */; @@ -23306,7 +23414,7 @@ ${lanes.join("\n")} return node.name !== name || node.initializer !== initializer ? update(createEnumMember(name, initializer), node) : node; } function createSourceFile2(statements, endOfFileToken, flags2) { - const node = baseFactory2.createBaseSourceFileNode(311 /* SourceFile */); + const node = baseFactory2.createBaseSourceFileNode(312 /* SourceFile */); node.statements = createNodeArray(statements); node.endOfFileToken = endOfFileToken; node.flags |= flags2; @@ -23376,7 +23484,7 @@ ${lanes.join("\n")} } function cloneRedirectedSourceFile(source) { const node = createRedirectedSourceFile(source.redirectInfo); - node.flags |= source.flags & ~8 /* Synthesized */; + node.flags |= source.flags & ~16 /* Synthesized */; node.fileName = source.fileName; node.path = source.path; node.resolvedPath = source.resolvedPath; @@ -23387,8 +23495,8 @@ ${lanes.join("\n")} return node; } function cloneSourceFileWorker(source) { - const node = baseFactory2.createBaseSourceFileNode(311 /* SourceFile */); - node.flags |= source.flags & ~8 /* Synthesized */; + const node = baseFactory2.createBaseSourceFileNode(312 /* SourceFile */); + node.flags |= source.flags & ~16 /* Synthesized */; for (const p in source) { if (hasProperty(node, p) || !hasProperty(source, p)) { continue; @@ -23421,7 +23529,7 @@ ${lanes.join("\n")} return node.statements !== statements || node.isDeclarationFile !== isDeclarationFile || node.referencedFiles !== referencedFiles || node.typeReferenceDirectives !== typeReferenceDirectives || node.hasNoDefaultLib !== hasNoDefaultLib || node.libReferenceDirectives !== libReferenceDirectives ? update(cloneSourceFileWithChanges(node, statements, isDeclarationFile, referencedFiles, typeReferenceDirectives, hasNoDefaultLib, libReferenceDirectives), node) : node; } function createBundle(sourceFiles, prepends = emptyArray) { - const node = createBaseNode(312 /* Bundle */); + const node = createBaseNode(313 /* Bundle */); node.prepends = prepends; node.sourceFiles = sourceFiles; node.syntheticFileReferences = void 0; @@ -23434,7 +23542,7 @@ ${lanes.join("\n")} return node.sourceFiles !== sourceFiles || node.prepends !== prepends ? update(createBundle(sourceFiles, prepends), node) : node; } function createUnparsedSource(prologues, syntheticReferences, texts) { - const node = createBaseNode(313 /* UnparsedSource */); + const node = createBaseNode(314 /* UnparsedSource */); node.prologues = prologues; node.syntheticReferences = syntheticReferences; node.texts = texts; @@ -23451,48 +23559,48 @@ ${lanes.join("\n")} return node; } function createUnparsedPrologue(data) { - return createBaseUnparsedNode(306 /* UnparsedPrologue */, data); + return createBaseUnparsedNode(307 /* UnparsedPrologue */, data); } function createUnparsedPrepend(data, texts) { - const node = createBaseUnparsedNode(307 /* UnparsedPrepend */, data); + const node = createBaseUnparsedNode(308 /* UnparsedPrepend */, data); node.texts = texts; return node; } function createUnparsedTextLike(data, internal) { - return createBaseUnparsedNode(internal ? 309 /* UnparsedInternalText */ : 308 /* UnparsedText */, data); + return createBaseUnparsedNode(internal ? 310 /* UnparsedInternalText */ : 309 /* UnparsedText */, data); } function createUnparsedSyntheticReference(section) { - const node = createBaseNode(310 /* UnparsedSyntheticReference */); + const node = createBaseNode(311 /* UnparsedSyntheticReference */); node.data = section.data; node.section = section; return node; } function createInputFiles2() { - const node = createBaseNode(314 /* InputFiles */); + const node = createBaseNode(315 /* InputFiles */); node.javascriptText = ""; node.declarationText = ""; return node; } function createSyntheticExpression(type, isSpread = false, tupleNameSource) { - const node = createBaseNode(236 /* SyntheticExpression */); + const node = createBaseNode(237 /* SyntheticExpression */); node.type = type; node.isSpread = isSpread; node.tupleNameSource = tupleNameSource; return node; } function createSyntaxList3(children) { - const node = createBaseNode(357 /* SyntaxList */); + const node = createBaseNode(358 /* SyntaxList */); node._children = children; return node; } function createNotEmittedStatement(original) { - const node = createBaseNode(358 /* NotEmittedStatement */); + const node = createBaseNode(359 /* NotEmittedStatement */); node.original = original; setTextRange(node, original); return node; } function createPartiallyEmittedExpression(expression, original) { - const node = createBaseNode(359 /* PartiallyEmittedExpression */); + const node = createBaseNode(360 /* PartiallyEmittedExpression */); node.expression = expression; node.original = original; node.transformFlags |= propagateChildFlags(node.expression) | 1 /* ContainsTypeScript */; @@ -23514,7 +23622,7 @@ ${lanes.join("\n")} return node; } function createCommaListExpression(elements) { - const node = createBaseNode(360 /* CommaListExpression */); + const node = createBaseNode(361 /* CommaListExpression */); node.elements = createNodeArray(sameFlatMap(elements, flattenCommaElements)); node.transformFlags |= propagateChildrenFlags(node.elements); return node; @@ -23523,7 +23631,7 @@ ${lanes.join("\n")} return node.elements !== elements ? update(createCommaListExpression(elements), node) : node; } function createSyntheticReferenceExpression(expression, thisArg) { - const node = createBaseNode(361 /* SyntheticReferenceExpression */); + const node = createBaseNode(362 /* SyntheticReferenceExpression */); node.expression = expression; node.thisArg = thisArg; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.thisArg); @@ -23534,7 +23642,7 @@ ${lanes.join("\n")} } function cloneGeneratedIdentifier(node) { const clone2 = createBaseIdentifier(node.escapedText); - clone2.flags |= node.flags & ~8 /* Synthesized */; + clone2.flags |= node.flags & ~16 /* Synthesized */; clone2.transformFlags = node.transformFlags; setOriginalNode(clone2, node); setIdentifierAutoGenerate(clone2, { ...node.emitNode.autoGenerate }); @@ -23542,7 +23650,7 @@ ${lanes.join("\n")} } function cloneIdentifier(node) { const clone2 = createBaseIdentifier(node.escapedText); - clone2.flags |= node.flags & ~8 /* Synthesized */; + clone2.flags |= node.flags & ~16 /* Synthesized */; clone2.jsDoc = node.jsDoc; clone2.flowNode = node.flowNode; clone2.symbol = node.symbol; @@ -23555,7 +23663,7 @@ ${lanes.join("\n")} } function cloneGeneratedPrivateIdentifier(node) { const clone2 = createBasePrivateIdentifier(node.escapedText); - clone2.flags |= node.flags & ~8 /* Synthesized */; + clone2.flags |= node.flags & ~16 /* Synthesized */; clone2.transformFlags = node.transformFlags; setOriginalNode(clone2, node); setIdentifierAutoGenerate(clone2, { ...node.emitNode.autoGenerate }); @@ -23563,7 +23671,7 @@ ${lanes.join("\n")} } function clonePrivateIdentifier(node) { const clone2 = createBasePrivateIdentifier(node.escapedText); - clone2.flags |= node.flags & ~8 /* Synthesized */; + clone2.flags |= node.flags & ~16 /* Synthesized */; clone2.transformFlags = node.transformFlags; setOriginalNode(clone2, node); return clone2; @@ -23588,7 +23696,7 @@ ${lanes.join("\n")} return clonePrivateIdentifier(node); } const clone2 = !isNodeKind(node.kind) ? baseFactory2.createBaseTokenNode(node.kind) : baseFactory2.createBaseNode(node.kind); - clone2.flags |= node.flags & ~8 /* Synthesized */; + clone2.flags |= node.flags & ~16 /* Synthesized */; clone2.transformFlags = node.transformFlags; setOriginalNode(clone2, node); for (const key in node) { @@ -23681,7 +23789,10 @@ ${lanes.join("\n")} ); } function createTypeCheck(value, tag) { - return tag === "undefined" ? factory2.createStrictEquality(value, createVoidZero()) : factory2.createStrictEquality(createTypeOfExpression(value), createStringLiteral(tag)); + return tag === "null" ? factory2.createStrictEquality(value, createNull()) : tag === "undefined" ? factory2.createStrictEquality(value, createVoidZero()) : factory2.createStrictEquality(createTypeOfExpression(value), createStringLiteral(tag)); + } + function createIsNotTypeCheck(value, tag) { + return tag === "null" ? factory2.createStrictInequality(value, createNull()) : tag === "undefined" ? factory2.createStrictInequality(value, createVoidZero()) : factory2.createStrictInequality(createTypeOfExpression(value), createStringLiteral(tag)); } function createMethodCall(object, methodName, argumentsList) { if (isCallChain(object)) { @@ -23756,17 +23867,17 @@ ${lanes.join("\n")} } function updateOuterExpression(outerExpression, expression) { switch (outerExpression.kind) { - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return updateParenthesizedExpression(outerExpression, expression); - case 215 /* TypeAssertionExpression */: + case 216 /* TypeAssertionExpression */: return updateTypeAssertion(outerExpression, outerExpression.type, expression); - case 233 /* AsExpression */: + case 234 /* AsExpression */: return updateAsExpression(outerExpression, expression, outerExpression.type); - case 237 /* SatisfiesExpression */: + case 238 /* SatisfiesExpression */: return updateSatisfiesExpression(outerExpression, expression, outerExpression.type); - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: return updateNonNullExpression(outerExpression, expression); - case 359 /* PartiallyEmittedExpression */: + case 360 /* PartiallyEmittedExpression */: return updatePartiallyEmittedExpression(outerExpression, expression); } } @@ -23806,13 +23917,13 @@ ${lanes.join("\n")} case 10 /* BigIntLiteral */: case 11 /* StringLiteral */: return false; - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: const elements = target.elements; if (elements.length === 0) { return false; } return true; - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return target.properties.length > 0; default: return true; @@ -24075,6 +24186,9 @@ ${lanes.join("\n")} } return isTypeParameterDeclaration(node) ? updateTypeParameterDeclaration(node, modifierArray, node.name, node.constraint, node.default) : isParameter(node) ? updateParameterDeclaration(node, modifierArray, node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer) : isConstructorTypeNode(node) ? updateConstructorTypeNode1(node, modifierArray, node.typeParameters, node.parameters, node.type) : isPropertySignature(node) ? updatePropertySignature(node, modifierArray, node.name, node.questionToken, node.type) : isPropertyDeclaration(node) ? updatePropertyDeclaration2(node, modifierArray, node.name, node.questionToken ?? node.exclamationToken, node.type, node.initializer) : isMethodSignature(node) ? updateMethodSignature(node, modifierArray, node.name, node.questionToken, node.typeParameters, node.parameters, node.type) : isMethodDeclaration(node) ? updateMethodDeclaration(node, modifierArray, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body) : isConstructorDeclaration(node) ? updateConstructorDeclaration(node, modifierArray, node.parameters, node.body) : isGetAccessorDeclaration(node) ? updateGetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.type, node.body) : isSetAccessorDeclaration(node) ? updateSetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.body) : isIndexSignatureDeclaration(node) ? updateIndexSignature(node, modifierArray, node.parameters, node.type) : isFunctionExpression(node) ? updateFunctionExpression(node, modifierArray, node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body) : isArrowFunction(node) ? updateArrowFunction(node, modifierArray, node.typeParameters, node.parameters, node.type, node.equalsGreaterThanToken, node.body) : isClassExpression(node) ? updateClassExpression(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isVariableStatement(node) ? updateVariableStatement(node, modifierArray, node.declarationList) : isFunctionDeclaration(node) ? updateFunctionDeclaration(node, modifierArray, node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body) : isClassDeclaration(node) ? updateClassDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isInterfaceDeclaration(node) ? updateInterfaceDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isTypeAliasDeclaration(node) ? updateTypeAliasDeclaration(node, modifierArray, node.name, node.typeParameters, node.type) : isEnumDeclaration(node) ? updateEnumDeclaration(node, modifierArray, node.name, node.members) : isModuleDeclaration(node) ? updateModuleDeclaration(node, modifierArray, node.name, node.body) : isImportEqualsDeclaration(node) ? updateImportEqualsDeclaration(node, modifierArray, node.isTypeOnly, node.name, node.moduleReference) : isImportDeclaration(node) ? updateImportDeclaration(node, modifierArray, node.importClause, node.moduleSpecifier, node.assertClause) : isExportAssignment(node) ? updateExportAssignment(node, modifierArray, node.expression) : isExportDeclaration(node) ? updateExportDeclaration(node, modifierArray, node.isTypeOnly, node.exportClause, node.moduleSpecifier, node.assertClause) : Debug.assertNever(node); } + function updateModifierLike(node, modifierArray) { + return isParameter(node) ? updateParameterDeclaration(node, modifierArray, node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer) : isPropertyDeclaration(node) ? updatePropertyDeclaration2(node, modifierArray, node.name, node.questionToken ?? node.exclamationToken, node.type, node.initializer) : isMethodDeclaration(node) ? updateMethodDeclaration(node, modifierArray, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body) : isGetAccessorDeclaration(node) ? updateGetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.type, node.body) : isSetAccessorDeclaration(node) ? updateSetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.body) : isClassExpression(node) ? updateClassExpression(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isClassDeclaration(node) ? updateClassDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : Debug.assertNever(node); + } function asNodeArray(array) { return array ? createNodeArray(array) : void 0; } @@ -24123,43 +24237,43 @@ ${lanes.join("\n")} } function getDefaultTagNameForKind(kind) { switch (kind) { - case 350 /* JSDocTypeTag */: + case 351 /* JSDocTypeTag */: return "type"; - case 348 /* JSDocReturnTag */: + case 349 /* JSDocReturnTag */: return "returns"; - case 349 /* JSDocThisTag */: + case 350 /* JSDocThisTag */: return "this"; - case 346 /* JSDocEnumTag */: + case 347 /* JSDocEnumTag */: return "enum"; - case 336 /* JSDocAuthorTag */: + case 337 /* JSDocAuthorTag */: return "author"; - case 338 /* JSDocClassTag */: + case 339 /* JSDocClassTag */: return "class"; - case 339 /* JSDocPublicTag */: + case 340 /* JSDocPublicTag */: return "public"; - case 340 /* JSDocPrivateTag */: + case 341 /* JSDocPrivateTag */: return "private"; - case 341 /* JSDocProtectedTag */: + case 342 /* JSDocProtectedTag */: return "protected"; - case 342 /* JSDocReadonlyTag */: + case 343 /* JSDocReadonlyTag */: return "readonly"; - case 343 /* JSDocOverrideTag */: + case 344 /* JSDocOverrideTag */: return "override"; - case 351 /* JSDocTemplateTag */: + case 352 /* JSDocTemplateTag */: return "template"; - case 352 /* JSDocTypedefTag */: + case 353 /* JSDocTypedefTag */: return "typedef"; - case 347 /* JSDocParameterTag */: + case 348 /* JSDocParameterTag */: return "param"; - case 354 /* JSDocPropertyTag */: + case 355 /* JSDocPropertyTag */: return "prop"; - case 344 /* JSDocCallbackTag */: + case 345 /* JSDocCallbackTag */: return "callback"; - case 345 /* JSDocOverloadTag */: + case 346 /* JSDocOverloadTag */: return "overload"; - case 334 /* JSDocAugmentsTag */: + case 335 /* JSDocAugmentsTag */: return "augments"; - case 335 /* JSDocImplementsTag */: + case 336 /* JSDocImplementsTag */: return "implements"; default: return Debug.fail(`Unsupported kind: ${Debug.formatSyntaxKind(kind)}`); @@ -24241,77 +24355,77 @@ ${lanes.join("\n")} children.transformFlags = subtreeFlags; } function getTransformFlagsSubtreeExclusions(kind) { - if (kind >= 181 /* FirstTypeNode */ && kind <= 204 /* LastTypeNode */) { + if (kind >= 182 /* FirstTypeNode */ && kind <= 205 /* LastTypeNode */) { return -2 /* TypeExcludes */; } switch (kind) { - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 208 /* ArrayLiteralExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 209 /* ArrayLiteralExpression */: return -2147450880 /* ArrayLiteralOrCallOrNewExcludes */; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return -1941676032 /* ModuleExcludes */; - case 168 /* Parameter */: + case 169 /* Parameter */: return -2147483648 /* ParameterExcludes */; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return -2072174592 /* ArrowFunctionExcludes */; - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: return -1937940480 /* FunctionExcludes */; - case 260 /* VariableDeclarationList */: + case 261 /* VariableDeclarationList */: return -2146893824 /* VariableDeclarationListExcludes */; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return -2147344384 /* ClassExcludes */; - case 175 /* Constructor */: + case 176 /* Constructor */: return -1937948672 /* ConstructorExcludes */; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return -2013249536 /* PropertyExcludes */; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return -2005057536 /* MethodOrAccessorExcludes */; case 133 /* AnyKeyword */: case 150 /* NumberKeyword */: - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: case 146 /* NeverKeyword */: case 154 /* StringKeyword */: case 151 /* ObjectKeyword */: case 136 /* BooleanKeyword */: case 155 /* SymbolKeyword */: case 116 /* VoidKeyword */: - case 167 /* TypeParameter */: - case 170 /* PropertySignature */: - case 172 /* MethodSignature */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 180 /* IndexSignature */: - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 168 /* TypeParameter */: + case 171 /* PropertySignature */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 181 /* IndexSignature */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: return -2 /* TypeExcludes */; - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return -2147278848 /* ObjectLiteralExcludes */; - case 298 /* CatchClause */: + case 299 /* CatchClause */: return -2147418112 /* CatchClauseExcludes */; - case 205 /* ObjectBindingPattern */: - case 206 /* ArrayBindingPattern */: + case 206 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: return -2147450880 /* BindingPatternExcludes */; - case 215 /* TypeAssertionExpression */: - case 237 /* SatisfiesExpression */: - case 233 /* AsExpression */: - case 359 /* PartiallyEmittedExpression */: - case 216 /* ParenthesizedExpression */: + case 216 /* TypeAssertionExpression */: + case 238 /* SatisfiesExpression */: + case 234 /* AsExpression */: + case 360 /* PartiallyEmittedExpression */: + case 217 /* ParenthesizedExpression */: case 108 /* SuperKeyword */: return -2147483648 /* OuterExpressionExcludes */; - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return -2147483648 /* PropertyAccessExcludes */; default: return -2147483648 /* NodeExcludes */; } } function makeSynthetic(node) { - node.flags |= 8 /* Synthesized */; + node.flags |= 16 /* Synthesized */; return node; } function createUnparsedSourceFile(textOrInputFiles, mapPathOrType, mapTextOrStripInternal) { @@ -24560,11 +24674,13 @@ ${lanes.join("\n")} return new (SourceMapSource2 || (SourceMapSource2 = objectAllocator.getSourceMapSourceConstructor()))(fileName, text, skipTrivia2); } function setOriginalNode(node, original) { - node.original = original; - if (original) { - const emitNode = original.emitNode; - if (emitNode) - node.emitNode = mergeEmitNode(emitNode, node.emitNode); + if (node.original !== original) { + node.original = original; + if (original) { + const emitNode = original.emitNode; + if (emitNode) + node.emitNode = mergeEmitNode(emitNode, node.emitNode); + } } return node; } @@ -24580,35 +24696,53 @@ ${lanes.join("\n")} constantValue, helpers, startsOnNewLine, - snippetElement + snippetElement, + classThis, + assignedName } = sourceEmitNode; if (!destEmitNode) destEmitNode = {}; - if (leadingComments) - destEmitNode.leadingComments = addRange(leadingComments.slice(), destEmitNode.leadingComments); - if (trailingComments) - destEmitNode.trailingComments = addRange(trailingComments.slice(), destEmitNode.trailingComments); - if (flags) + if (flags) { destEmitNode.flags = flags; - if (internalFlags) + } + if (internalFlags) { destEmitNode.internalFlags = internalFlags & ~8 /* Immutable */; - if (commentRange) + } + if (leadingComments) { + destEmitNode.leadingComments = addRange(leadingComments.slice(), destEmitNode.leadingComments); + } + if (trailingComments) { + destEmitNode.trailingComments = addRange(trailingComments.slice(), destEmitNode.trailingComments); + } + if (commentRange) { destEmitNode.commentRange = commentRange; - if (sourceMapRange) + } + if (sourceMapRange) { destEmitNode.sourceMapRange = sourceMapRange; - if (tokenSourceMapRanges) + } + if (tokenSourceMapRanges) { destEmitNode.tokenSourceMapRanges = mergeTokenSourceMapRanges(tokenSourceMapRanges, destEmitNode.tokenSourceMapRanges); - if (constantValue !== void 0) + } + if (constantValue !== void 0) { destEmitNode.constantValue = constantValue; + } if (helpers) { for (const helper of helpers) { destEmitNode.helpers = appendIfUnique(destEmitNode.helpers, helper); } } - if (startsOnNewLine !== void 0) + if (startsOnNewLine !== void 0) { destEmitNode.startsOnNewLine = startsOnNewLine; - if (snippetElement !== void 0) + } + if (snippetElement !== void 0) { destEmitNode.snippetElement = snippetElement; + } + if (classThis) { + destEmitNode.classThis = classThis; + } + if (assignedName) { + destEmitNode.assignedName = assignedName; + } return destEmitNode; } function mergeTokenSourceMapRanges(sourceRanges, destRanges) { @@ -24651,7 +24785,7 @@ ${lanes.join("\n")} function getOrCreateEmitNode(node) { if (!node.emitNode) { if (isParseTreeNode(node)) { - if (node.kind === 311 /* SourceFile */) { + if (node.kind === 312 /* SourceFile */) { return node.emitNode = { annotatedNodes: [node] }; } const sourceFile = getSourceFileOfNode(getParseTreeNode(getSourceFileOfNode(node))) ?? Debug.fail("Could not determine parsed source file."); @@ -24913,7 +25047,10 @@ ${lanes.join("\n")} // Class Fields Helpers createClassPrivateFieldGetHelper, createClassPrivateFieldSetHelper, - createClassPrivateFieldInHelper + createClassPrivateFieldInHelper, + // 'using' helpers + createAddDisposableResourceHelper, + createDisposeResourcesHelper }; function getUnscopedHelperName(name) { return setEmitFlags(factory2.createIdentifier(name), 8192 /* HelperName */ | 4 /* AdviseOnEmitNode */); @@ -24968,10 +25105,12 @@ ${lanes.join("\n")} ); } function createESDecorateClassContextObject(contextIn) { - return factory2.createObjectLiteralExpression([ + const properties = [ factory2.createPropertyAssignment(factory2.createIdentifier("kind"), factory2.createStringLiteral("class")), - factory2.createPropertyAssignment(factory2.createIdentifier("name"), contextIn.name) - ]); + factory2.createPropertyAssignment(factory2.createIdentifier("name"), contextIn.name), + factory2.createPropertyAssignment(factory2.createIdentifier("metadata"), contextIn.metadata) + ]; + return factory2.createObjectLiteralExpression(properties); } function createESDecorateClassElementAccessGetMethod(elementName) { const accessor = elementName.computed ? factory2.createElementAccessExpression(factory2.createIdentifier("obj"), elementName.name) : factory2.createPropertyAccessExpression(factory2.createIdentifier("obj"), elementName.name); @@ -25075,13 +25214,15 @@ ${lanes.join("\n")} return factory2.createObjectLiteralExpression(properties); } function createESDecorateClassElementContextObject(contextIn) { - return factory2.createObjectLiteralExpression([ + const properties = [ factory2.createPropertyAssignment(factory2.createIdentifier("kind"), factory2.createStringLiteral(contextIn.kind)), factory2.createPropertyAssignment(factory2.createIdentifier("name"), contextIn.name.computed ? contextIn.name.name : factory2.createStringLiteralFromNode(contextIn.name.name)), factory2.createPropertyAssignment(factory2.createIdentifier("static"), contextIn.static ? factory2.createTrue() : factory2.createFalse()), factory2.createPropertyAssignment(factory2.createIdentifier("private"), contextIn.private ? factory2.createTrue() : factory2.createFalse()), - factory2.createPropertyAssignment(factory2.createIdentifier("access"), createESDecorateClassElementAccessObject(contextIn.name, contextIn.access)) - ]); + factory2.createPropertyAssignment(factory2.createIdentifier("access"), createESDecorateClassElementAccessObject(contextIn.name, contextIn.access)), + factory2.createPropertyAssignment(factory2.createIdentifier("metadata"), contextIn.metadata) + ]; + return factory2.createObjectLiteralExpression(properties); } function createESDecorateContextObject(contextIn) { return contextIn.kind === "class" ? createESDecorateClassContextObject(contextIn) : createESDecorateClassElementContextObject(contextIn); @@ -25392,6 +25533,24 @@ ${lanes.join("\n")} [state, receiver] ); } + function createAddDisposableResourceHelper(envBinding, value, async) { + context.requestEmitHelper(addDisposableResourceHelper); + return factory2.createCallExpression( + getUnscopedHelperName("__addDisposableResource"), + /*typeArguments*/ + void 0, + [envBinding, value, async ? factory2.createTrue() : factory2.createFalse()] + ); + } + function createDisposeResourcesHelper(envBinding) { + context.requestEmitHelper(disposeResourcesHelper); + return factory2.createCallExpression( + getUnscopedHelperName("__disposeResources"), + /*typeArguments*/ + void 0, + [envBinding] + ); + } } function compareEmitHelpers(x, y) { if (x === y) @@ -25444,13 +25603,15 @@ ${lanes.join("\n")} classPrivateFieldSetHelper, classPrivateFieldInHelper, createBindingHelper, - setModuleDefaultHelper + setModuleDefaultHelper, + addDisposableResourceHelper, + disposeResourcesHelper ], (helper) => helper.name)); } function isCallToHelper(firstSegment, helperName) { return isCallExpression(firstSegment) && isIdentifier(firstSegment.expression) && (getEmitFlags(firstSegment.expression) & 8192 /* HelperName */) !== 0 && firstSegment.expression.escapedText === helperName; } - var PrivateIdentifierKind, decorateHelper, metadataHelper, paramHelper, esDecorateHelper, runInitializersHelper, assignHelper, awaitHelper, asyncGeneratorHelper, asyncDelegator, asyncValues, restHelper, awaiterHelper, extendsHelper, templateObjectHelper, readHelper, spreadArrayHelper, propKeyHelper, setFunctionNameHelper, valuesHelper, generatorHelper, createBindingHelper, setModuleDefaultHelper, importStarHelper, importDefaultHelper, exportStarHelper, classPrivateFieldGetHelper, classPrivateFieldSetHelper, classPrivateFieldInHelper, allUnscopedEmitHelpers, asyncSuperHelper, advancedAsyncSuperHelper; + var PrivateIdentifierKind, decorateHelper, metadataHelper, paramHelper, esDecorateHelper, runInitializersHelper, assignHelper, awaitHelper, asyncGeneratorHelper, asyncDelegator, asyncValues, restHelper, awaiterHelper, extendsHelper, templateObjectHelper, readHelper, spreadArrayHelper, propKeyHelper, setFunctionNameHelper, valuesHelper, generatorHelper, createBindingHelper, setModuleDefaultHelper, importStarHelper, importDefaultHelper, exportStarHelper, classPrivateFieldGetHelper, classPrivateFieldSetHelper, classPrivateFieldInHelper, addDisposableResourceHelper, disposeResourcesHelper, allUnscopedEmitHelpers, asyncSuperHelper, advancedAsyncSuperHelper; var init_emitHelpers = __esm({ "src/compiler/factory/emitHelpers.ts"() { "use strict"; @@ -25882,6 +26043,63 @@ ${lanes.join("\n")} return typeof state === "function" ? receiver === state : state.has(receiver); };` }; + addDisposableResourceHelper = { + name: "typescript:addDisposableResource", + importName: "__addDisposableResource", + scoped: false, + text: ` + var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) { + if (value !== null && value !== void 0) { + if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); + var dispose; + if (async) { + if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); + dispose = value[Symbol.asyncDispose]; + } + if (dispose === void 0) { + if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); + dispose = value[Symbol.dispose]; + } + if (typeof dispose !== "function") throw new TypeError("Object not disposable."); + env.stack.push({ value: value, dispose: dispose, async: async }); + } + else if (async) { + env.stack.push({ async: true }); + } + return value; + };` + }; + disposeResourcesHelper = { + name: "typescript:disposeResources", + importName: "__disposeResources", + scoped: false, + text: ` + var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) { + return function (env) { + function fail(e) { + env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; + env.hasError = true; + } + function next() { + while (env.stack.length) { + var rec = env.stack.pop(); + try { + var result = rec.dispose && rec.dispose.call(rec.value); + if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); + } + catch (e) { + fail(e); + } + } + if (env.hasError) throw env.error; + } + return next(); + }; + })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { + var e = new Error(message); + return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; + });` + }; asyncSuperHelper = { name: "typescript:async-super", scoped: true, @@ -25989,7 +26207,7 @@ ${lanes.join("\n")} return node.kind === 128 /* AbstractKeyword */; } function isOverrideModifier(node) { - return node.kind === 163 /* OverrideKeyword */; + return node.kind === 164 /* OverrideKeyword */; } function isAccessorModifier(node) { return node.kind === 129 /* AccessorKeyword */; @@ -26004,577 +26222,577 @@ ${lanes.join("\n")} return node.kind === 84 /* CaseKeyword */; } function isQualifiedName(node) { - return node.kind === 165 /* QualifiedName */; + return node.kind === 166 /* QualifiedName */; } function isComputedPropertyName(node) { - return node.kind === 166 /* ComputedPropertyName */; + return node.kind === 167 /* ComputedPropertyName */; } function isTypeParameterDeclaration(node) { - return node.kind === 167 /* TypeParameter */; + return node.kind === 168 /* TypeParameter */; } function isParameter(node) { - return node.kind === 168 /* Parameter */; + return node.kind === 169 /* Parameter */; } function isDecorator(node) { - return node.kind === 169 /* Decorator */; + return node.kind === 170 /* Decorator */; } function isPropertySignature(node) { - return node.kind === 170 /* PropertySignature */; + return node.kind === 171 /* PropertySignature */; } function isPropertyDeclaration(node) { - return node.kind === 171 /* PropertyDeclaration */; + return node.kind === 172 /* PropertyDeclaration */; } function isMethodSignature(node) { - return node.kind === 172 /* MethodSignature */; + return node.kind === 173 /* MethodSignature */; } function isMethodDeclaration(node) { - return node.kind === 173 /* MethodDeclaration */; + return node.kind === 174 /* MethodDeclaration */; } function isClassStaticBlockDeclaration(node) { - return node.kind === 174 /* ClassStaticBlockDeclaration */; + return node.kind === 175 /* ClassStaticBlockDeclaration */; } function isConstructorDeclaration(node) { - return node.kind === 175 /* Constructor */; + return node.kind === 176 /* Constructor */; } function isGetAccessorDeclaration(node) { - return node.kind === 176 /* GetAccessor */; + return node.kind === 177 /* GetAccessor */; } function isSetAccessorDeclaration(node) { - return node.kind === 177 /* SetAccessor */; + return node.kind === 178 /* SetAccessor */; } function isCallSignatureDeclaration(node) { - return node.kind === 178 /* CallSignature */; + return node.kind === 179 /* CallSignature */; } function isConstructSignatureDeclaration(node) { - return node.kind === 179 /* ConstructSignature */; + return node.kind === 180 /* ConstructSignature */; } function isIndexSignatureDeclaration(node) { - return node.kind === 180 /* IndexSignature */; + return node.kind === 181 /* IndexSignature */; } function isTypePredicateNode(node) { - return node.kind === 181 /* TypePredicate */; + return node.kind === 182 /* TypePredicate */; } function isTypeReferenceNode(node) { - return node.kind === 182 /* TypeReference */; + return node.kind === 183 /* TypeReference */; } function isFunctionTypeNode(node) { - return node.kind === 183 /* FunctionType */; + return node.kind === 184 /* FunctionType */; } function isConstructorTypeNode(node) { - return node.kind === 184 /* ConstructorType */; + return node.kind === 185 /* ConstructorType */; } function isTypeQueryNode(node) { - return node.kind === 185 /* TypeQuery */; + return node.kind === 186 /* TypeQuery */; } function isTypeLiteralNode(node) { - return node.kind === 186 /* TypeLiteral */; + return node.kind === 187 /* TypeLiteral */; } function isArrayTypeNode(node) { - return node.kind === 187 /* ArrayType */; + return node.kind === 188 /* ArrayType */; } function isTupleTypeNode(node) { - return node.kind === 188 /* TupleType */; + return node.kind === 189 /* TupleType */; } function isNamedTupleMember(node) { - return node.kind === 201 /* NamedTupleMember */; + return node.kind === 202 /* NamedTupleMember */; } function isOptionalTypeNode(node) { - return node.kind === 189 /* OptionalType */; + return node.kind === 190 /* OptionalType */; } function isRestTypeNode(node) { - return node.kind === 190 /* RestType */; + return node.kind === 191 /* RestType */; } function isUnionTypeNode(node) { - return node.kind === 191 /* UnionType */; + return node.kind === 192 /* UnionType */; } function isIntersectionTypeNode(node) { - return node.kind === 192 /* IntersectionType */; + return node.kind === 193 /* IntersectionType */; } function isConditionalTypeNode(node) { - return node.kind === 193 /* ConditionalType */; + return node.kind === 194 /* ConditionalType */; } function isInferTypeNode(node) { - return node.kind === 194 /* InferType */; + return node.kind === 195 /* InferType */; } function isParenthesizedTypeNode(node) { - return node.kind === 195 /* ParenthesizedType */; + return node.kind === 196 /* ParenthesizedType */; } function isThisTypeNode(node) { - return node.kind === 196 /* ThisType */; + return node.kind === 197 /* ThisType */; } function isTypeOperatorNode(node) { - return node.kind === 197 /* TypeOperator */; + return node.kind === 198 /* TypeOperator */; } function isIndexedAccessTypeNode(node) { - return node.kind === 198 /* IndexedAccessType */; + return node.kind === 199 /* IndexedAccessType */; } function isMappedTypeNode(node) { - return node.kind === 199 /* MappedType */; + return node.kind === 200 /* MappedType */; } function isLiteralTypeNode(node) { - return node.kind === 200 /* LiteralType */; + return node.kind === 201 /* LiteralType */; } function isImportTypeNode(node) { - return node.kind === 204 /* ImportType */; + return node.kind === 205 /* ImportType */; } function isTemplateLiteralTypeSpan(node) { - return node.kind === 203 /* TemplateLiteralTypeSpan */; + return node.kind === 204 /* TemplateLiteralTypeSpan */; } function isTemplateLiteralTypeNode(node) { - return node.kind === 202 /* TemplateLiteralType */; + return node.kind === 203 /* TemplateLiteralType */; } function isObjectBindingPattern(node) { - return node.kind === 205 /* ObjectBindingPattern */; + return node.kind === 206 /* ObjectBindingPattern */; } function isArrayBindingPattern(node) { - return node.kind === 206 /* ArrayBindingPattern */; + return node.kind === 207 /* ArrayBindingPattern */; } function isBindingElement(node) { - return node.kind === 207 /* BindingElement */; + return node.kind === 208 /* BindingElement */; } function isArrayLiteralExpression(node) { - return node.kind === 208 /* ArrayLiteralExpression */; + return node.kind === 209 /* ArrayLiteralExpression */; } function isObjectLiteralExpression(node) { - return node.kind === 209 /* ObjectLiteralExpression */; + return node.kind === 210 /* ObjectLiteralExpression */; } function isPropertyAccessExpression(node) { - return node.kind === 210 /* PropertyAccessExpression */; + return node.kind === 211 /* PropertyAccessExpression */; } function isElementAccessExpression(node) { - return node.kind === 211 /* ElementAccessExpression */; + return node.kind === 212 /* ElementAccessExpression */; } function isCallExpression(node) { - return node.kind === 212 /* CallExpression */; + return node.kind === 213 /* CallExpression */; } function isNewExpression(node) { - return node.kind === 213 /* NewExpression */; + return node.kind === 214 /* NewExpression */; } function isTaggedTemplateExpression(node) { - return node.kind === 214 /* TaggedTemplateExpression */; + return node.kind === 215 /* TaggedTemplateExpression */; } function isTypeAssertionExpression(node) { - return node.kind === 215 /* TypeAssertionExpression */; + return node.kind === 216 /* TypeAssertionExpression */; } function isParenthesizedExpression(node) { - return node.kind === 216 /* ParenthesizedExpression */; + return node.kind === 217 /* ParenthesizedExpression */; } function isFunctionExpression(node) { - return node.kind === 217 /* FunctionExpression */; + return node.kind === 218 /* FunctionExpression */; } function isArrowFunction(node) { - return node.kind === 218 /* ArrowFunction */; + return node.kind === 219 /* ArrowFunction */; } function isDeleteExpression(node) { - return node.kind === 219 /* DeleteExpression */; + return node.kind === 220 /* DeleteExpression */; } function isTypeOfExpression(node) { - return node.kind === 220 /* TypeOfExpression */; + return node.kind === 221 /* TypeOfExpression */; } function isVoidExpression(node) { - return node.kind === 221 /* VoidExpression */; + return node.kind === 222 /* VoidExpression */; } function isAwaitExpression(node) { - return node.kind === 222 /* AwaitExpression */; + return node.kind === 223 /* AwaitExpression */; } function isPrefixUnaryExpression(node) { - return node.kind === 223 /* PrefixUnaryExpression */; + return node.kind === 224 /* PrefixUnaryExpression */; } function isPostfixUnaryExpression(node) { - return node.kind === 224 /* PostfixUnaryExpression */; + return node.kind === 225 /* PostfixUnaryExpression */; } function isBinaryExpression(node) { - return node.kind === 225 /* BinaryExpression */; + return node.kind === 226 /* BinaryExpression */; } function isConditionalExpression(node) { - return node.kind === 226 /* ConditionalExpression */; + return node.kind === 227 /* ConditionalExpression */; } function isTemplateExpression(node) { - return node.kind === 227 /* TemplateExpression */; + return node.kind === 228 /* TemplateExpression */; } function isYieldExpression(node) { - return node.kind === 228 /* YieldExpression */; + return node.kind === 229 /* YieldExpression */; } function isSpreadElement(node) { - return node.kind === 229 /* SpreadElement */; + return node.kind === 230 /* SpreadElement */; } function isClassExpression(node) { - return node.kind === 230 /* ClassExpression */; + return node.kind === 231 /* ClassExpression */; } function isOmittedExpression(node) { - return node.kind === 231 /* OmittedExpression */; + return node.kind === 232 /* OmittedExpression */; } function isExpressionWithTypeArguments(node) { - return node.kind === 232 /* ExpressionWithTypeArguments */; + return node.kind === 233 /* ExpressionWithTypeArguments */; } function isAsExpression(node) { - return node.kind === 233 /* AsExpression */; + return node.kind === 234 /* AsExpression */; } function isSatisfiesExpression(node) { - return node.kind === 237 /* SatisfiesExpression */; + return node.kind === 238 /* SatisfiesExpression */; } function isNonNullExpression(node) { - return node.kind === 234 /* NonNullExpression */; + return node.kind === 235 /* NonNullExpression */; } function isMetaProperty(node) { - return node.kind === 235 /* MetaProperty */; + return node.kind === 236 /* MetaProperty */; } function isSyntheticExpression(node) { - return node.kind === 236 /* SyntheticExpression */; + return node.kind === 237 /* SyntheticExpression */; } function isPartiallyEmittedExpression(node) { - return node.kind === 359 /* PartiallyEmittedExpression */; + return node.kind === 360 /* PartiallyEmittedExpression */; } function isCommaListExpression(node) { - return node.kind === 360 /* CommaListExpression */; + return node.kind === 361 /* CommaListExpression */; } function isTemplateSpan(node) { - return node.kind === 238 /* TemplateSpan */; + return node.kind === 239 /* TemplateSpan */; } function isSemicolonClassElement(node) { - return node.kind === 239 /* SemicolonClassElement */; + return node.kind === 240 /* SemicolonClassElement */; } function isBlock(node) { - return node.kind === 240 /* Block */; + return node.kind === 241 /* Block */; } function isVariableStatement(node) { - return node.kind === 242 /* VariableStatement */; + return node.kind === 243 /* VariableStatement */; } function isEmptyStatement(node) { - return node.kind === 241 /* EmptyStatement */; + return node.kind === 242 /* EmptyStatement */; } function isExpressionStatement(node) { - return node.kind === 243 /* ExpressionStatement */; + return node.kind === 244 /* ExpressionStatement */; } function isIfStatement(node) { - return node.kind === 244 /* IfStatement */; + return node.kind === 245 /* IfStatement */; } function isDoStatement(node) { - return node.kind === 245 /* DoStatement */; + return node.kind === 246 /* DoStatement */; } function isWhileStatement(node) { - return node.kind === 246 /* WhileStatement */; + return node.kind === 247 /* WhileStatement */; } function isForStatement(node) { - return node.kind === 247 /* ForStatement */; + return node.kind === 248 /* ForStatement */; } function isForInStatement(node) { - return node.kind === 248 /* ForInStatement */; + return node.kind === 249 /* ForInStatement */; } function isForOfStatement(node) { - return node.kind === 249 /* ForOfStatement */; + return node.kind === 250 /* ForOfStatement */; } function isContinueStatement(node) { - return node.kind === 250 /* ContinueStatement */; + return node.kind === 251 /* ContinueStatement */; } function isBreakStatement(node) { - return node.kind === 251 /* BreakStatement */; + return node.kind === 252 /* BreakStatement */; } function isReturnStatement(node) { - return node.kind === 252 /* ReturnStatement */; + return node.kind === 253 /* ReturnStatement */; } function isWithStatement(node) { - return node.kind === 253 /* WithStatement */; + return node.kind === 254 /* WithStatement */; } function isSwitchStatement(node) { - return node.kind === 254 /* SwitchStatement */; + return node.kind === 255 /* SwitchStatement */; } function isLabeledStatement(node) { - return node.kind === 255 /* LabeledStatement */; + return node.kind === 256 /* LabeledStatement */; } function isThrowStatement(node) { - return node.kind === 256 /* ThrowStatement */; + return node.kind === 257 /* ThrowStatement */; } function isTryStatement(node) { - return node.kind === 257 /* TryStatement */; + return node.kind === 258 /* TryStatement */; } function isDebuggerStatement(node) { - return node.kind === 258 /* DebuggerStatement */; + return node.kind === 259 /* DebuggerStatement */; } function isVariableDeclaration(node) { - return node.kind === 259 /* VariableDeclaration */; + return node.kind === 260 /* VariableDeclaration */; } function isVariableDeclarationList(node) { - return node.kind === 260 /* VariableDeclarationList */; + return node.kind === 261 /* VariableDeclarationList */; } function isFunctionDeclaration(node) { - return node.kind === 261 /* FunctionDeclaration */; + return node.kind === 262 /* FunctionDeclaration */; } function isClassDeclaration(node) { - return node.kind === 262 /* ClassDeclaration */; + return node.kind === 263 /* ClassDeclaration */; } function isInterfaceDeclaration(node) { - return node.kind === 263 /* InterfaceDeclaration */; + return node.kind === 264 /* InterfaceDeclaration */; } function isTypeAliasDeclaration(node) { - return node.kind === 264 /* TypeAliasDeclaration */; + return node.kind === 265 /* TypeAliasDeclaration */; } function isEnumDeclaration(node) { - return node.kind === 265 /* EnumDeclaration */; + return node.kind === 266 /* EnumDeclaration */; } function isModuleDeclaration(node) { - return node.kind === 266 /* ModuleDeclaration */; + return node.kind === 267 /* ModuleDeclaration */; } function isModuleBlock(node) { - return node.kind === 267 /* ModuleBlock */; + return node.kind === 268 /* ModuleBlock */; } function isCaseBlock(node) { - return node.kind === 268 /* CaseBlock */; + return node.kind === 269 /* CaseBlock */; } function isNamespaceExportDeclaration(node) { - return node.kind === 269 /* NamespaceExportDeclaration */; + return node.kind === 270 /* NamespaceExportDeclaration */; } function isImportEqualsDeclaration(node) { - return node.kind === 270 /* ImportEqualsDeclaration */; + return node.kind === 271 /* ImportEqualsDeclaration */; } function isImportDeclaration(node) { - return node.kind === 271 /* ImportDeclaration */; + return node.kind === 272 /* ImportDeclaration */; } function isImportClause(node) { - return node.kind === 272 /* ImportClause */; + return node.kind === 273 /* ImportClause */; } function isImportTypeAssertionContainer(node) { - return node.kind === 301 /* ImportTypeAssertionContainer */; + return node.kind === 302 /* ImportTypeAssertionContainer */; } function isAssertClause(node) { - return node.kind === 299 /* AssertClause */; + return node.kind === 300 /* AssertClause */; } function isAssertEntry(node) { - return node.kind === 300 /* AssertEntry */; + return node.kind === 301 /* AssertEntry */; } function isNamespaceImport(node) { - return node.kind === 273 /* NamespaceImport */; + return node.kind === 274 /* NamespaceImport */; } function isNamespaceExport(node) { - return node.kind === 279 /* NamespaceExport */; + return node.kind === 280 /* NamespaceExport */; } function isNamedImports(node) { - return node.kind === 274 /* NamedImports */; + return node.kind === 275 /* NamedImports */; } function isImportSpecifier(node) { - return node.kind === 275 /* ImportSpecifier */; + return node.kind === 276 /* ImportSpecifier */; } function isExportAssignment(node) { - return node.kind === 276 /* ExportAssignment */; + return node.kind === 277 /* ExportAssignment */; } function isExportDeclaration(node) { - return node.kind === 277 /* ExportDeclaration */; + return node.kind === 278 /* ExportDeclaration */; } function isNamedExports(node) { - return node.kind === 278 /* NamedExports */; + return node.kind === 279 /* NamedExports */; } function isExportSpecifier(node) { - return node.kind === 280 /* ExportSpecifier */; + return node.kind === 281 /* ExportSpecifier */; } function isMissingDeclaration(node) { - return node.kind === 281 /* MissingDeclaration */; + return node.kind === 282 /* MissingDeclaration */; } function isNotEmittedStatement(node) { - return node.kind === 358 /* NotEmittedStatement */; + return node.kind === 359 /* NotEmittedStatement */; } function isSyntheticReference(node) { - return node.kind === 361 /* SyntheticReferenceExpression */; + return node.kind === 362 /* SyntheticReferenceExpression */; } function isExternalModuleReference(node) { - return node.kind === 282 /* ExternalModuleReference */; + return node.kind === 283 /* ExternalModuleReference */; } function isJsxElement(node) { - return node.kind === 283 /* JsxElement */; + return node.kind === 284 /* JsxElement */; } function isJsxSelfClosingElement(node) { - return node.kind === 284 /* JsxSelfClosingElement */; + return node.kind === 285 /* JsxSelfClosingElement */; } function isJsxOpeningElement(node) { - return node.kind === 285 /* JsxOpeningElement */; + return node.kind === 286 /* JsxOpeningElement */; } function isJsxClosingElement(node) { - return node.kind === 286 /* JsxClosingElement */; + return node.kind === 287 /* JsxClosingElement */; } function isJsxFragment(node) { - return node.kind === 287 /* JsxFragment */; + return node.kind === 288 /* JsxFragment */; } function isJsxOpeningFragment(node) { - return node.kind === 288 /* JsxOpeningFragment */; + return node.kind === 289 /* JsxOpeningFragment */; } function isJsxClosingFragment(node) { - return node.kind === 289 /* JsxClosingFragment */; + return node.kind === 290 /* JsxClosingFragment */; } function isJsxAttribute(node) { - return node.kind === 290 /* JsxAttribute */; + return node.kind === 291 /* JsxAttribute */; } function isJsxAttributes(node) { - return node.kind === 291 /* JsxAttributes */; + return node.kind === 292 /* JsxAttributes */; } function isJsxSpreadAttribute(node) { - return node.kind === 292 /* JsxSpreadAttribute */; + return node.kind === 293 /* JsxSpreadAttribute */; } function isJsxExpression(node) { - return node.kind === 293 /* JsxExpression */; + return node.kind === 294 /* JsxExpression */; } function isJsxNamespacedName(node) { - return node.kind === 294 /* JsxNamespacedName */; + return node.kind === 295 /* JsxNamespacedName */; } function isCaseClause(node) { - return node.kind === 295 /* CaseClause */; + return node.kind === 296 /* CaseClause */; } function isDefaultClause(node) { - return node.kind === 296 /* DefaultClause */; + return node.kind === 297 /* DefaultClause */; } function isHeritageClause(node) { - return node.kind === 297 /* HeritageClause */; + return node.kind === 298 /* HeritageClause */; } function isCatchClause(node) { - return node.kind === 298 /* CatchClause */; + return node.kind === 299 /* CatchClause */; } function isPropertyAssignment(node) { - return node.kind === 302 /* PropertyAssignment */; + return node.kind === 303 /* PropertyAssignment */; } function isShorthandPropertyAssignment(node) { - return node.kind === 303 /* ShorthandPropertyAssignment */; + return node.kind === 304 /* ShorthandPropertyAssignment */; } function isSpreadAssignment(node) { - return node.kind === 304 /* SpreadAssignment */; + return node.kind === 305 /* SpreadAssignment */; } function isEnumMember(node) { - return node.kind === 305 /* EnumMember */; + return node.kind === 306 /* EnumMember */; } function isUnparsedPrepend(node) { - return node.kind === 307 /* UnparsedPrepend */; + return node.kind === 308 /* UnparsedPrepend */; } function isSourceFile(node) { - return node.kind === 311 /* SourceFile */; + return node.kind === 312 /* SourceFile */; } function isBundle(node) { - return node.kind === 312 /* Bundle */; + return node.kind === 313 /* Bundle */; } function isUnparsedSource(node) { - return node.kind === 313 /* UnparsedSource */; + return node.kind === 314 /* UnparsedSource */; } function isJSDocTypeExpression(node) { - return node.kind === 315 /* JSDocTypeExpression */; + return node.kind === 316 /* JSDocTypeExpression */; } function isJSDocNameReference(node) { - return node.kind === 316 /* JSDocNameReference */; + return node.kind === 317 /* JSDocNameReference */; } function isJSDocMemberName(node) { - return node.kind === 317 /* JSDocMemberName */; + return node.kind === 318 /* JSDocMemberName */; } function isJSDocLink(node) { - return node.kind === 330 /* JSDocLink */; + return node.kind === 331 /* JSDocLink */; } function isJSDocLinkCode(node) { - return node.kind === 331 /* JSDocLinkCode */; + return node.kind === 332 /* JSDocLinkCode */; } function isJSDocLinkPlain(node) { - return node.kind === 332 /* JSDocLinkPlain */; + return node.kind === 333 /* JSDocLinkPlain */; } function isJSDocAllType(node) { - return node.kind === 318 /* JSDocAllType */; + return node.kind === 319 /* JSDocAllType */; } function isJSDocUnknownType(node) { - return node.kind === 319 /* JSDocUnknownType */; + return node.kind === 320 /* JSDocUnknownType */; } function isJSDocNullableType(node) { - return node.kind === 320 /* JSDocNullableType */; + return node.kind === 321 /* JSDocNullableType */; } function isJSDocNonNullableType(node) { - return node.kind === 321 /* JSDocNonNullableType */; + return node.kind === 322 /* JSDocNonNullableType */; } function isJSDocOptionalType(node) { - return node.kind === 322 /* JSDocOptionalType */; + return node.kind === 323 /* JSDocOptionalType */; } function isJSDocFunctionType(node) { - return node.kind === 323 /* JSDocFunctionType */; + return node.kind === 324 /* JSDocFunctionType */; } function isJSDocVariadicType(node) { - return node.kind === 324 /* JSDocVariadicType */; + return node.kind === 325 /* JSDocVariadicType */; } function isJSDocNamepathType(node) { - return node.kind === 325 /* JSDocNamepathType */; + return node.kind === 326 /* JSDocNamepathType */; } function isJSDoc(node) { - return node.kind === 326 /* JSDoc */; + return node.kind === 327 /* JSDoc */; } function isJSDocTypeLiteral(node) { - return node.kind === 328 /* JSDocTypeLiteral */; + return node.kind === 329 /* JSDocTypeLiteral */; } function isJSDocSignature(node) { - return node.kind === 329 /* JSDocSignature */; + return node.kind === 330 /* JSDocSignature */; } function isJSDocAugmentsTag(node) { - return node.kind === 334 /* JSDocAugmentsTag */; + return node.kind === 335 /* JSDocAugmentsTag */; } function isJSDocAuthorTag(node) { - return node.kind === 336 /* JSDocAuthorTag */; + return node.kind === 337 /* JSDocAuthorTag */; } function isJSDocClassTag(node) { - return node.kind === 338 /* JSDocClassTag */; + return node.kind === 339 /* JSDocClassTag */; } function isJSDocCallbackTag(node) { - return node.kind === 344 /* JSDocCallbackTag */; + return node.kind === 345 /* JSDocCallbackTag */; } function isJSDocPublicTag(node) { - return node.kind === 339 /* JSDocPublicTag */; + return node.kind === 340 /* JSDocPublicTag */; } function isJSDocPrivateTag(node) { - return node.kind === 340 /* JSDocPrivateTag */; + return node.kind === 341 /* JSDocPrivateTag */; } function isJSDocProtectedTag(node) { - return node.kind === 341 /* JSDocProtectedTag */; + return node.kind === 342 /* JSDocProtectedTag */; } function isJSDocReadonlyTag(node) { - return node.kind === 342 /* JSDocReadonlyTag */; + return node.kind === 343 /* JSDocReadonlyTag */; } function isJSDocOverrideTag(node) { - return node.kind === 343 /* JSDocOverrideTag */; + return node.kind === 344 /* JSDocOverrideTag */; } function isJSDocOverloadTag(node) { - return node.kind === 345 /* JSDocOverloadTag */; + return node.kind === 346 /* JSDocOverloadTag */; } function isJSDocDeprecatedTag(node) { - return node.kind === 337 /* JSDocDeprecatedTag */; + return node.kind === 338 /* JSDocDeprecatedTag */; } function isJSDocSeeTag(node) { - return node.kind === 353 /* JSDocSeeTag */; + return node.kind === 354 /* JSDocSeeTag */; } function isJSDocEnumTag(node) { - return node.kind === 346 /* JSDocEnumTag */; + return node.kind === 347 /* JSDocEnumTag */; } function isJSDocParameterTag(node) { - return node.kind === 347 /* JSDocParameterTag */; + return node.kind === 348 /* JSDocParameterTag */; } function isJSDocReturnTag(node) { - return node.kind === 348 /* JSDocReturnTag */; + return node.kind === 349 /* JSDocReturnTag */; } function isJSDocThisTag(node) { - return node.kind === 349 /* JSDocThisTag */; + return node.kind === 350 /* JSDocThisTag */; } function isJSDocTypeTag(node) { - return node.kind === 350 /* JSDocTypeTag */; + return node.kind === 351 /* JSDocTypeTag */; } function isJSDocTemplateTag(node) { - return node.kind === 351 /* JSDocTemplateTag */; + return node.kind === 352 /* JSDocTemplateTag */; } function isJSDocTypedefTag(node) { - return node.kind === 352 /* JSDocTypedefTag */; + return node.kind === 353 /* JSDocTypedefTag */; } function isJSDocUnknownTag(node) { - return node.kind === 333 /* JSDocTag */; + return node.kind === 334 /* JSDocTag */; } function isJSDocPropertyTag(node) { - return node.kind === 354 /* JSDocPropertyTag */; + return node.kind === 355 /* JSDocPropertyTag */; } function isJSDocImplementsTag(node) { - return node.kind === 335 /* JSDocImplementsTag */; + return node.kind === 336 /* JSDocImplementsTag */; } function isJSDocSatisfiesTag(node) { - return node.kind === 356 /* JSDocSatisfiesTag */; + return node.kind === 357 /* JSDocSatisfiesTag */; } function isJSDocThrowsTag(node) { - return node.kind === 355 /* JSDocThrowsTag */; + return node.kind === 356 /* JSDocThrowsTag */; } function isSyntaxList(n) { - return n.kind === 357 /* SyntaxList */; + return n.kind === 358 /* SyntaxList */; } var init_nodeTests = __esm({ "src/compiler/factory/nodeTests.ts"() { @@ -26888,14 +27106,14 @@ ${lanes.join("\n")} Debug.failBadSyntaxKind(property.name, "Private identifiers are not allowed in object literals."); } switch (property.kind) { - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return createExpressionForAccessorDeclaration(factory2, node.properties, property, receiver, !!node.multiLine); - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return createExpressionForPropertyAssignment(factory2, property, receiver); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return createExpressionForShorthandPropertyAssignment(factory2, property, receiver); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return createExpressionForMethodDeclaration(factory2, property, receiver); } } @@ -26948,7 +27166,7 @@ ${lanes.join("\n")} return firstStatement !== void 0 && isPrologueDirective(firstStatement) && isUseStrictPrologue(firstStatement); } function isCommaExpression(node) { - return node.kind === 225 /* BinaryExpression */ && node.operatorToken.kind === 28 /* CommaToken */; + return node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 28 /* CommaToken */; } function isCommaSequence(node) { return isCommaExpression(node) || isCommaListExpression(node); @@ -26963,19 +27181,19 @@ ${lanes.join("\n")} } function isOuterExpression(node, kinds = 15 /* All */) { switch (node.kind) { - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: if (kinds & 16 /* ExcludeJSDocTypeAssertion */ && isJSDocTypeAssertion(node)) { return false; } return (kinds & 1 /* Parentheses */) !== 0; - case 215 /* TypeAssertionExpression */: - case 233 /* AsExpression */: - case 232 /* ExpressionWithTypeArguments */: - case 237 /* SatisfiesExpression */: + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: + case 233 /* ExpressionWithTypeArguments */: + case 238 /* SatisfiesExpression */: return (kinds & 2 /* TypeAssertions */) !== 0; - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: return (kinds & 4 /* NonNullAssertions */) !== 0; - case 359 /* PartiallyEmittedExpression */: + case 360 /* PartiallyEmittedExpression */: return (kinds & 8 /* PartiallyEmittedExpressions */) !== 0; } return false; @@ -27112,10 +27330,10 @@ ${lanes.join("\n")} const name = namespaceDeclaration.name; return isGeneratedIdentifier(name) ? name : factory2.createIdentifier(getSourceTextOfNodeFromSourceFile(sourceFile, name) || idText(name)); } - if (node.kind === 271 /* ImportDeclaration */ && node.importClause) { + if (node.kind === 272 /* ImportDeclaration */ && node.importClause) { return factory2.getGeneratedNameForNode(node); } - if (node.kind === 277 /* ExportDeclaration */ && node.moduleSpecifier) { + if (node.kind === 278 /* ExportDeclaration */ && node.moduleSpecifier) { return factory2.getGeneratedNameForNode(node); } return void 0; @@ -27178,11 +27396,11 @@ ${lanes.join("\n")} } if (isObjectLiteralElementLike(bindingElement)) { switch (bindingElement.kind) { - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return getTargetOfBindingOrAssignmentElement(bindingElement.initializer); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return bindingElement.name; - case 304 /* SpreadAssignment */: + case 305 /* SpreadAssignment */: return getTargetOfBindingOrAssignmentElement(bindingElement.expression); } return void 0; @@ -27201,11 +27419,11 @@ ${lanes.join("\n")} } function getRestIndicatorOfBindingOrAssignmentElement(bindingElement) { switch (bindingElement.kind) { - case 168 /* Parameter */: - case 207 /* BindingElement */: + case 169 /* Parameter */: + case 208 /* BindingElement */: return bindingElement.dotDotDotToken; - case 229 /* SpreadElement */: - case 304 /* SpreadAssignment */: + case 230 /* SpreadElement */: + case 305 /* SpreadAssignment */: return bindingElement; } return void 0; @@ -27217,7 +27435,7 @@ ${lanes.join("\n")} } function tryGetPropertyNameOfBindingOrAssignmentElement(bindingElement) { switch (bindingElement.kind) { - case 207 /* BindingElement */: + case 208 /* BindingElement */: if (bindingElement.propertyName) { const propertyName = bindingElement.propertyName; if (isPrivateIdentifier(propertyName)) { @@ -27226,7 +27444,7 @@ ${lanes.join("\n")} return isComputedPropertyName(propertyName) && isStringOrNumericLiteral(propertyName.expression) ? propertyName.expression : propertyName; } break; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: if (bindingElement.name) { const propertyName = bindingElement.name; if (isPrivateIdentifier(propertyName)) { @@ -27235,7 +27453,7 @@ ${lanes.join("\n")} return isComputedPropertyName(propertyName) && isStringOrNumericLiteral(propertyName.expression) ? propertyName.expression : propertyName; } break; - case 304 /* SpreadAssignment */: + case 305 /* SpreadAssignment */: if (bindingElement.name && isPrivateIdentifier(bindingElement.name)) { return Debug.failBadSyntaxKind(bindingElement.name); } @@ -27252,11 +27470,11 @@ ${lanes.join("\n")} } function getElementsOfBindingOrAssignmentPattern(name) { switch (name.kind) { - case 205 /* ObjectBindingPattern */: - case 206 /* ArrayBindingPattern */: - case 208 /* ArrayLiteralExpression */: + case 206 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: + case 209 /* ArrayLiteralExpression */: return name.elements; - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return name.properties; } } @@ -27273,19 +27491,19 @@ ${lanes.join("\n")} } function canHaveIllegalType(node) { const kind = node.kind; - return kind === 175 /* Constructor */ || kind === 177 /* SetAccessor */; + return kind === 176 /* Constructor */ || kind === 178 /* SetAccessor */; } function canHaveIllegalTypeParameters(node) { const kind = node.kind; - return kind === 175 /* Constructor */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */; + return kind === 176 /* Constructor */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; } function canHaveIllegalDecorators(node) { const kind = node.kind; - return kind === 302 /* PropertyAssignment */ || kind === 303 /* ShorthandPropertyAssignment */ || kind === 261 /* FunctionDeclaration */ || kind === 175 /* Constructor */ || kind === 180 /* IndexSignature */ || kind === 174 /* ClassStaticBlockDeclaration */ || kind === 281 /* MissingDeclaration */ || kind === 242 /* VariableStatement */ || kind === 263 /* InterfaceDeclaration */ || kind === 264 /* TypeAliasDeclaration */ || kind === 265 /* EnumDeclaration */ || kind === 266 /* ModuleDeclaration */ || kind === 270 /* ImportEqualsDeclaration */ || kind === 271 /* ImportDeclaration */ || kind === 269 /* NamespaceExportDeclaration */ || kind === 277 /* ExportDeclaration */ || kind === 276 /* ExportAssignment */; + return kind === 303 /* PropertyAssignment */ || kind === 304 /* ShorthandPropertyAssignment */ || kind === 262 /* FunctionDeclaration */ || kind === 176 /* Constructor */ || kind === 181 /* IndexSignature */ || kind === 175 /* ClassStaticBlockDeclaration */ || kind === 282 /* MissingDeclaration */ || kind === 243 /* VariableStatement */ || kind === 264 /* InterfaceDeclaration */ || kind === 265 /* TypeAliasDeclaration */ || kind === 266 /* EnumDeclaration */ || kind === 267 /* ModuleDeclaration */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 272 /* ImportDeclaration */ || kind === 270 /* NamespaceExportDeclaration */ || kind === 278 /* ExportDeclaration */ || kind === 277 /* ExportAssignment */; } function canHaveIllegalModifiers(node) { const kind = node.kind; - return kind === 174 /* ClassStaticBlockDeclaration */ || kind === 302 /* PropertyAssignment */ || kind === 303 /* ShorthandPropertyAssignment */ || kind === 281 /* MissingDeclaration */ || kind === 269 /* NamespaceExportDeclaration */; + return kind === 175 /* ClassStaticBlockDeclaration */ || kind === 303 /* PropertyAssignment */ || kind === 304 /* ShorthandPropertyAssignment */ || kind === 282 /* MissingDeclaration */ || kind === 270 /* NamespaceExportDeclaration */; } function isQuestionOrExclamationToken(node) { return isQuestionToken(node) || isExclamationToken(node); @@ -27452,7 +27670,7 @@ ${lanes.join("\n")} initializer ); } - function createAccessorPropertyGetRedirector(factory2, node, modifiers, name) { + function createAccessorPropertyGetRedirector(factory2, node, modifiers, name, receiver = factory2.createThis()) { return factory2.createGetAccessorDeclaration( modifiers, name, @@ -27462,7 +27680,7 @@ ${lanes.join("\n")} factory2.createBlock([ factory2.createReturnStatement( factory2.createPropertyAccessExpression( - factory2.createThis(), + receiver, factory2.getGeneratedPrivateNameForNode( node.name, /*prefix*/ @@ -27474,7 +27692,7 @@ ${lanes.join("\n")} ]) ); } - function createAccessorPropertySetRedirector(factory2, node, modifiers, name) { + function createAccessorPropertySetRedirector(factory2, node, modifiers, name, receiver = factory2.createThis()) { return factory2.createSetAccessorDeclaration( modifiers, name, @@ -27489,7 +27707,7 @@ ${lanes.join("\n")} factory2.createExpressionStatement( factory2.createAssignment( factory2.createPropertyAccessExpression( - factory2.createThis(), + receiver, factory2.getGeneratedPrivateNameForNode( node.name, /*prefix*/ @@ -27690,11 +27908,11 @@ ${lanes.join("\n")} } function canHaveModifiers(node) { const kind = node.kind; - return kind === 167 /* TypeParameter */ || kind === 168 /* Parameter */ || kind === 170 /* PropertySignature */ || kind === 171 /* PropertyDeclaration */ || kind === 172 /* MethodSignature */ || kind === 173 /* MethodDeclaration */ || kind === 175 /* Constructor */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */ || kind === 180 /* IndexSignature */ || kind === 184 /* ConstructorType */ || kind === 217 /* FunctionExpression */ || kind === 218 /* ArrowFunction */ || kind === 230 /* ClassExpression */ || kind === 242 /* VariableStatement */ || kind === 261 /* FunctionDeclaration */ || kind === 262 /* ClassDeclaration */ || kind === 263 /* InterfaceDeclaration */ || kind === 264 /* TypeAliasDeclaration */ || kind === 265 /* EnumDeclaration */ || kind === 266 /* ModuleDeclaration */ || kind === 270 /* ImportEqualsDeclaration */ || kind === 271 /* ImportDeclaration */ || kind === 276 /* ExportAssignment */ || kind === 277 /* ExportDeclaration */; + return kind === 168 /* TypeParameter */ || kind === 169 /* Parameter */ || kind === 171 /* PropertySignature */ || kind === 172 /* PropertyDeclaration */ || kind === 173 /* MethodSignature */ || kind === 174 /* MethodDeclaration */ || kind === 176 /* Constructor */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 181 /* IndexSignature */ || kind === 185 /* ConstructorType */ || kind === 218 /* FunctionExpression */ || kind === 219 /* ArrowFunction */ || kind === 231 /* ClassExpression */ || kind === 243 /* VariableStatement */ || kind === 262 /* FunctionDeclaration */ || kind === 263 /* ClassDeclaration */ || kind === 264 /* InterfaceDeclaration */ || kind === 265 /* TypeAliasDeclaration */ || kind === 266 /* EnumDeclaration */ || kind === 267 /* ModuleDeclaration */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 272 /* ImportDeclaration */ || kind === 277 /* ExportAssignment */ || kind === 278 /* ExportDeclaration */; } function canHaveDecorators(node) { const kind = node.kind; - return kind === 168 /* Parameter */ || kind === 171 /* PropertyDeclaration */ || kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */ || kind === 230 /* ClassExpression */ || kind === 262 /* ClassDeclaration */; + return kind === 169 /* Parameter */ || kind === 172 /* PropertyDeclaration */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 231 /* ClassExpression */ || kind === 263 /* ClassDeclaration */; } var init_utilitiesPublic2 = __esm({ "src/compiler/factory/utilitiesPublic.ts"() { @@ -27730,7 +27948,7 @@ ${lanes.join("\n")} return canHaveModifiers(node) && hasModifierOfKind(node, 95 /* ExportKeyword */) || isImportEqualsDeclaration(node) && isExternalModuleReference(node.moduleReference) || isImportDeclaration(node) || isExportAssignment(node) || isExportDeclaration(node) ? node : void 0; } function getImportMetaIfNecessary(sourceFile) { - return sourceFile.flags & 4194304 /* PossiblyContainsImportMeta */ ? walkTreeForImportMeta(sourceFile) : void 0; + return sourceFile.flags & 8388608 /* PossiblyContainsImportMeta */ ? walkTreeForImportMeta(sourceFile) : void 0; } function walkTreeForImportMeta(node) { return isImportMeta2(node) ? node : forEachChild(node, walkTreeForImportMeta); @@ -27794,7 +28012,7 @@ ${lanes.join("\n")} return visitNode2(cbNode, node.expression); } function forEachChild(node, cbNode, cbNodes) { - if (node === void 0 || node.kind <= 164 /* LastToken */) { + if (node === void 0 || node.kind <= 165 /* LastToken */) { return; } const fn = forEachChildTable[node.kind]; @@ -27829,7 +28047,7 @@ ${lanes.join("\n")} continue; return res; } - if (current.kind >= 165 /* FirstNode */) { + if (current.kind >= 166 /* FirstNode */) { for (const child of gatherPossibleChildren(current)) { queue.push(child); parents.push(current); @@ -27910,7 +28128,7 @@ ${lanes.join("\n")} } function updateSourceFile(sourceFile, newText, textChangeRange, aggressiveChecks = false) { const newSourceFile = IncrementalParser.updateSourceFile(sourceFile, newText, textChangeRange, aggressiveChecks); - newSourceFile.flags |= sourceFile.flags & 6291456 /* PermanentlySetIncrementalFlags */; + newSourceFile.flags |= sourceFile.flags & 12582912 /* PermanentlySetIncrementalFlags */; return newSourceFile; } function parseIsolatedJSDocComment(content, start, length2) { @@ -28131,7 +28349,7 @@ ${lanes.join("\n")} if (lhs.kind === 110 /* ThisKeyword */) { return true; } - if (lhs.kind === 294 /* JsxNamespacedName */) { + if (lhs.kind === 295 /* JsxNamespacedName */) { return lhs.namespace.escapedText === rhs.namespace.escapedText && lhs.name.escapedText === rhs.name.escapedText; } return lhs.name.escapedText === rhs.name.escapedText && tagNamesAreEquivalent(lhs.expression, rhs.expression); @@ -28151,428 +28369,428 @@ ${lanes.join("\n")} }; parseNodeFactory = createNodeFactory(1 /* NoParenthesizerRules */, parseBaseNodeFactory); forEachChildTable = { - [165 /* QualifiedName */]: function forEachChildInQualifiedName(node, cbNode, _cbNodes) { + [166 /* QualifiedName */]: function forEachChildInQualifiedName(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.left) || visitNode2(cbNode, node.right); }, - [167 /* TypeParameter */]: function forEachChildInTypeParameter(node, cbNode, cbNodes) { + [168 /* TypeParameter */]: function forEachChildInTypeParameter(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.constraint) || visitNode2(cbNode, node.default) || visitNode2(cbNode, node.expression); }, - [303 /* ShorthandPropertyAssignment */]: function forEachChildInShorthandPropertyAssignment(node, cbNode, cbNodes) { + [304 /* ShorthandPropertyAssignment */]: function forEachChildInShorthandPropertyAssignment(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.equalsToken) || visitNode2(cbNode, node.objectAssignmentInitializer); }, - [304 /* SpreadAssignment */]: function forEachChildInSpreadAssignment(node, cbNode, _cbNodes) { + [305 /* SpreadAssignment */]: function forEachChildInSpreadAssignment(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [168 /* Parameter */]: function forEachChildInParameter(node, cbNode, cbNodes) { + [169 /* Parameter */]: function forEachChildInParameter(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.dotDotDotToken) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.initializer); }, - [171 /* PropertyDeclaration */]: function forEachChildInPropertyDeclaration(node, cbNode, cbNodes) { + [172 /* PropertyDeclaration */]: function forEachChildInPropertyDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.initializer); }, - [170 /* PropertySignature */]: function forEachChildInPropertySignature(node, cbNode, cbNodes) { + [171 /* PropertySignature */]: function forEachChildInPropertySignature(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.initializer); }, - [302 /* PropertyAssignment */]: function forEachChildInPropertyAssignment(node, cbNode, cbNodes) { + [303 /* PropertyAssignment */]: function forEachChildInPropertyAssignment(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.initializer); }, - [259 /* VariableDeclaration */]: function forEachChildInVariableDeclaration(node, cbNode, _cbNodes) { + [260 /* VariableDeclaration */]: function forEachChildInVariableDeclaration(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.initializer); }, - [207 /* BindingElement */]: function forEachChildInBindingElement(node, cbNode, _cbNodes) { + [208 /* BindingElement */]: function forEachChildInBindingElement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.dotDotDotToken) || visitNode2(cbNode, node.propertyName) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.initializer); }, - [180 /* IndexSignature */]: function forEachChildInIndexSignature(node, cbNode, cbNodes) { + [181 /* IndexSignature */]: function forEachChildInIndexSignature(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); }, - [184 /* ConstructorType */]: function forEachChildInConstructorType(node, cbNode, cbNodes) { + [185 /* ConstructorType */]: function forEachChildInConstructorType(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); }, - [183 /* FunctionType */]: function forEachChildInFunctionType(node, cbNode, cbNodes) { + [184 /* FunctionType */]: function forEachChildInFunctionType(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); }, - [178 /* CallSignature */]: forEachChildInCallOrConstructSignature, - [179 /* ConstructSignature */]: forEachChildInCallOrConstructSignature, - [173 /* MethodDeclaration */]: function forEachChildInMethodDeclaration(node, cbNode, cbNodes) { + [179 /* CallSignature */]: forEachChildInCallOrConstructSignature, + [180 /* ConstructSignature */]: forEachChildInCallOrConstructSignature, + [174 /* MethodDeclaration */]: function forEachChildInMethodDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.asteriskToken) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); }, - [172 /* MethodSignature */]: function forEachChildInMethodSignature(node, cbNode, cbNodes) { + [173 /* MethodSignature */]: function forEachChildInMethodSignature(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); }, - [175 /* Constructor */]: function forEachChildInConstructor(node, cbNode, cbNodes) { + [176 /* Constructor */]: function forEachChildInConstructor(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); }, - [176 /* GetAccessor */]: function forEachChildInGetAccessor(node, cbNode, cbNodes) { + [177 /* GetAccessor */]: function forEachChildInGetAccessor(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); }, - [177 /* SetAccessor */]: function forEachChildInSetAccessor(node, cbNode, cbNodes) { + [178 /* SetAccessor */]: function forEachChildInSetAccessor(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); }, - [261 /* FunctionDeclaration */]: function forEachChildInFunctionDeclaration(node, cbNode, cbNodes) { + [262 /* FunctionDeclaration */]: function forEachChildInFunctionDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.asteriskToken) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); }, - [217 /* FunctionExpression */]: function forEachChildInFunctionExpression(node, cbNode, cbNodes) { + [218 /* FunctionExpression */]: function forEachChildInFunctionExpression(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.asteriskToken) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); }, - [218 /* ArrowFunction */]: function forEachChildInArrowFunction(node, cbNode, cbNodes) { + [219 /* ArrowFunction */]: function forEachChildInArrowFunction(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.equalsGreaterThanToken) || visitNode2(cbNode, node.body); }, - [174 /* ClassStaticBlockDeclaration */]: function forEachChildInClassStaticBlockDeclaration(node, cbNode, cbNodes) { + [175 /* ClassStaticBlockDeclaration */]: function forEachChildInClassStaticBlockDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.body); }, - [182 /* TypeReference */]: function forEachChildInTypeReference(node, cbNode, cbNodes) { + [183 /* TypeReference */]: function forEachChildInTypeReference(node, cbNode, cbNodes) { return visitNode2(cbNode, node.typeName) || visitNodes(cbNode, cbNodes, node.typeArguments); }, - [181 /* TypePredicate */]: function forEachChildInTypePredicate(node, cbNode, _cbNodes) { + [182 /* TypePredicate */]: function forEachChildInTypePredicate(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.assertsModifier) || visitNode2(cbNode, node.parameterName) || visitNode2(cbNode, node.type); }, - [185 /* TypeQuery */]: function forEachChildInTypeQuery(node, cbNode, cbNodes) { + [186 /* TypeQuery */]: function forEachChildInTypeQuery(node, cbNode, cbNodes) { return visitNode2(cbNode, node.exprName) || visitNodes(cbNode, cbNodes, node.typeArguments); }, - [186 /* TypeLiteral */]: function forEachChildInTypeLiteral(node, cbNode, cbNodes) { + [187 /* TypeLiteral */]: function forEachChildInTypeLiteral(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.members); }, - [187 /* ArrayType */]: function forEachChildInArrayType(node, cbNode, _cbNodes) { + [188 /* ArrayType */]: function forEachChildInArrayType(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.elementType); }, - [188 /* TupleType */]: function forEachChildInTupleType(node, cbNode, cbNodes) { + [189 /* TupleType */]: function forEachChildInTupleType(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.elements); }, - [191 /* UnionType */]: forEachChildInUnionOrIntersectionType, - [192 /* IntersectionType */]: forEachChildInUnionOrIntersectionType, - [193 /* ConditionalType */]: function forEachChildInConditionalType(node, cbNode, _cbNodes) { + [192 /* UnionType */]: forEachChildInUnionOrIntersectionType, + [193 /* IntersectionType */]: forEachChildInUnionOrIntersectionType, + [194 /* ConditionalType */]: function forEachChildInConditionalType(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.checkType) || visitNode2(cbNode, node.extendsType) || visitNode2(cbNode, node.trueType) || visitNode2(cbNode, node.falseType); }, - [194 /* InferType */]: function forEachChildInInferType(node, cbNode, _cbNodes) { + [195 /* InferType */]: function forEachChildInInferType(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.typeParameter); }, - [204 /* ImportType */]: function forEachChildInImportType(node, cbNode, cbNodes) { + [205 /* ImportType */]: function forEachChildInImportType(node, cbNode, cbNodes) { return visitNode2(cbNode, node.argument) || visitNode2(cbNode, node.assertions) || visitNode2(cbNode, node.qualifier) || visitNodes(cbNode, cbNodes, node.typeArguments); }, - [301 /* ImportTypeAssertionContainer */]: function forEachChildInImportTypeAssertionContainer(node, cbNode, _cbNodes) { + [302 /* ImportTypeAssertionContainer */]: function forEachChildInImportTypeAssertionContainer(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.assertClause); }, - [195 /* ParenthesizedType */]: forEachChildInParenthesizedTypeOrTypeOperator, - [197 /* TypeOperator */]: forEachChildInParenthesizedTypeOrTypeOperator, - [198 /* IndexedAccessType */]: function forEachChildInIndexedAccessType(node, cbNode, _cbNodes) { + [196 /* ParenthesizedType */]: forEachChildInParenthesizedTypeOrTypeOperator, + [198 /* TypeOperator */]: forEachChildInParenthesizedTypeOrTypeOperator, + [199 /* IndexedAccessType */]: function forEachChildInIndexedAccessType(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.objectType) || visitNode2(cbNode, node.indexType); }, - [199 /* MappedType */]: function forEachChildInMappedType(node, cbNode, cbNodes) { + [200 /* MappedType */]: function forEachChildInMappedType(node, cbNode, cbNodes) { return visitNode2(cbNode, node.readonlyToken) || visitNode2(cbNode, node.typeParameter) || visitNode2(cbNode, node.nameType) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.type) || visitNodes(cbNode, cbNodes, node.members); }, - [200 /* LiteralType */]: function forEachChildInLiteralType(node, cbNode, _cbNodes) { + [201 /* LiteralType */]: function forEachChildInLiteralType(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.literal); }, - [201 /* NamedTupleMember */]: function forEachChildInNamedTupleMember(node, cbNode, _cbNodes) { + [202 /* NamedTupleMember */]: function forEachChildInNamedTupleMember(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.dotDotDotToken) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.type); }, - [205 /* ObjectBindingPattern */]: forEachChildInObjectOrArrayBindingPattern, - [206 /* ArrayBindingPattern */]: forEachChildInObjectOrArrayBindingPattern, - [208 /* ArrayLiteralExpression */]: function forEachChildInArrayLiteralExpression(node, cbNode, cbNodes) { + [206 /* ObjectBindingPattern */]: forEachChildInObjectOrArrayBindingPattern, + [207 /* ArrayBindingPattern */]: forEachChildInObjectOrArrayBindingPattern, + [209 /* ArrayLiteralExpression */]: function forEachChildInArrayLiteralExpression(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.elements); }, - [209 /* ObjectLiteralExpression */]: function forEachChildInObjectLiteralExpression(node, cbNode, cbNodes) { + [210 /* ObjectLiteralExpression */]: function forEachChildInObjectLiteralExpression(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.properties); }, - [210 /* PropertyAccessExpression */]: function forEachChildInPropertyAccessExpression(node, cbNode, _cbNodes) { + [211 /* PropertyAccessExpression */]: function forEachChildInPropertyAccessExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.questionDotToken) || visitNode2(cbNode, node.name); }, - [211 /* ElementAccessExpression */]: function forEachChildInElementAccessExpression(node, cbNode, _cbNodes) { + [212 /* ElementAccessExpression */]: function forEachChildInElementAccessExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.questionDotToken) || visitNode2(cbNode, node.argumentExpression); }, - [212 /* CallExpression */]: forEachChildInCallOrNewExpression, - [213 /* NewExpression */]: forEachChildInCallOrNewExpression, - [214 /* TaggedTemplateExpression */]: function forEachChildInTaggedTemplateExpression(node, cbNode, cbNodes) { + [213 /* CallExpression */]: forEachChildInCallOrNewExpression, + [214 /* NewExpression */]: forEachChildInCallOrNewExpression, + [215 /* TaggedTemplateExpression */]: function forEachChildInTaggedTemplateExpression(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tag) || visitNode2(cbNode, node.questionDotToken) || visitNodes(cbNode, cbNodes, node.typeArguments) || visitNode2(cbNode, node.template); }, - [215 /* TypeAssertionExpression */]: function forEachChildInTypeAssertionExpression(node, cbNode, _cbNodes) { + [216 /* TypeAssertionExpression */]: function forEachChildInTypeAssertionExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.type) || visitNode2(cbNode, node.expression); }, - [216 /* ParenthesizedExpression */]: function forEachChildInParenthesizedExpression(node, cbNode, _cbNodes) { + [217 /* ParenthesizedExpression */]: function forEachChildInParenthesizedExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [219 /* DeleteExpression */]: function forEachChildInDeleteExpression(node, cbNode, _cbNodes) { + [220 /* DeleteExpression */]: function forEachChildInDeleteExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [220 /* TypeOfExpression */]: function forEachChildInTypeOfExpression(node, cbNode, _cbNodes) { + [221 /* TypeOfExpression */]: function forEachChildInTypeOfExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [221 /* VoidExpression */]: function forEachChildInVoidExpression(node, cbNode, _cbNodes) { + [222 /* VoidExpression */]: function forEachChildInVoidExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [223 /* PrefixUnaryExpression */]: function forEachChildInPrefixUnaryExpression(node, cbNode, _cbNodes) { + [224 /* PrefixUnaryExpression */]: function forEachChildInPrefixUnaryExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.operand); }, - [228 /* YieldExpression */]: function forEachChildInYieldExpression(node, cbNode, _cbNodes) { + [229 /* YieldExpression */]: function forEachChildInYieldExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.asteriskToken) || visitNode2(cbNode, node.expression); }, - [222 /* AwaitExpression */]: function forEachChildInAwaitExpression(node, cbNode, _cbNodes) { + [223 /* AwaitExpression */]: function forEachChildInAwaitExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [224 /* PostfixUnaryExpression */]: function forEachChildInPostfixUnaryExpression(node, cbNode, _cbNodes) { + [225 /* PostfixUnaryExpression */]: function forEachChildInPostfixUnaryExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.operand); }, - [225 /* BinaryExpression */]: function forEachChildInBinaryExpression(node, cbNode, _cbNodes) { + [226 /* BinaryExpression */]: function forEachChildInBinaryExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.left) || visitNode2(cbNode, node.operatorToken) || visitNode2(cbNode, node.right); }, - [233 /* AsExpression */]: function forEachChildInAsExpression(node, cbNode, _cbNodes) { + [234 /* AsExpression */]: function forEachChildInAsExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.type); }, - [234 /* NonNullExpression */]: function forEachChildInNonNullExpression(node, cbNode, _cbNodes) { + [235 /* NonNullExpression */]: function forEachChildInNonNullExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [237 /* SatisfiesExpression */]: function forEachChildInSatisfiesExpression(node, cbNode, _cbNodes) { + [238 /* SatisfiesExpression */]: function forEachChildInSatisfiesExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.type); }, - [235 /* MetaProperty */]: function forEachChildInMetaProperty(node, cbNode, _cbNodes) { + [236 /* MetaProperty */]: function forEachChildInMetaProperty(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name); }, - [226 /* ConditionalExpression */]: function forEachChildInConditionalExpression(node, cbNode, _cbNodes) { + [227 /* ConditionalExpression */]: function forEachChildInConditionalExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.condition) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.whenTrue) || visitNode2(cbNode, node.colonToken) || visitNode2(cbNode, node.whenFalse); }, - [229 /* SpreadElement */]: function forEachChildInSpreadElement(node, cbNode, _cbNodes) { + [230 /* SpreadElement */]: function forEachChildInSpreadElement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [240 /* Block */]: forEachChildInBlock, - [267 /* ModuleBlock */]: forEachChildInBlock, - [311 /* SourceFile */]: function forEachChildInSourceFile(node, cbNode, cbNodes) { + [241 /* Block */]: forEachChildInBlock, + [268 /* ModuleBlock */]: forEachChildInBlock, + [312 /* SourceFile */]: function forEachChildInSourceFile(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.statements) || visitNode2(cbNode, node.endOfFileToken); }, - [242 /* VariableStatement */]: function forEachChildInVariableStatement(node, cbNode, cbNodes) { + [243 /* VariableStatement */]: function forEachChildInVariableStatement(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.declarationList); }, - [260 /* VariableDeclarationList */]: function forEachChildInVariableDeclarationList(node, cbNode, cbNodes) { + [261 /* VariableDeclarationList */]: function forEachChildInVariableDeclarationList(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.declarations); }, - [243 /* ExpressionStatement */]: function forEachChildInExpressionStatement(node, cbNode, _cbNodes) { + [244 /* ExpressionStatement */]: function forEachChildInExpressionStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [244 /* IfStatement */]: function forEachChildInIfStatement(node, cbNode, _cbNodes) { + [245 /* IfStatement */]: function forEachChildInIfStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.thenStatement) || visitNode2(cbNode, node.elseStatement); }, - [245 /* DoStatement */]: function forEachChildInDoStatement(node, cbNode, _cbNodes) { + [246 /* DoStatement */]: function forEachChildInDoStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.statement) || visitNode2(cbNode, node.expression); }, - [246 /* WhileStatement */]: function forEachChildInWhileStatement(node, cbNode, _cbNodes) { + [247 /* WhileStatement */]: function forEachChildInWhileStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.statement); }, - [247 /* ForStatement */]: function forEachChildInForStatement(node, cbNode, _cbNodes) { + [248 /* ForStatement */]: function forEachChildInForStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.initializer) || visitNode2(cbNode, node.condition) || visitNode2(cbNode, node.incrementor) || visitNode2(cbNode, node.statement); }, - [248 /* ForInStatement */]: function forEachChildInForInStatement(node, cbNode, _cbNodes) { + [249 /* ForInStatement */]: function forEachChildInForInStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.initializer) || visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.statement); }, - [249 /* ForOfStatement */]: function forEachChildInForOfStatement(node, cbNode, _cbNodes) { + [250 /* ForOfStatement */]: function forEachChildInForOfStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.awaitModifier) || visitNode2(cbNode, node.initializer) || visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.statement); }, - [250 /* ContinueStatement */]: forEachChildInContinueOrBreakStatement, - [251 /* BreakStatement */]: forEachChildInContinueOrBreakStatement, - [252 /* ReturnStatement */]: function forEachChildInReturnStatement(node, cbNode, _cbNodes) { + [251 /* ContinueStatement */]: forEachChildInContinueOrBreakStatement, + [252 /* BreakStatement */]: forEachChildInContinueOrBreakStatement, + [253 /* ReturnStatement */]: function forEachChildInReturnStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [253 /* WithStatement */]: function forEachChildInWithStatement(node, cbNode, _cbNodes) { + [254 /* WithStatement */]: function forEachChildInWithStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.statement); }, - [254 /* SwitchStatement */]: function forEachChildInSwitchStatement(node, cbNode, _cbNodes) { + [255 /* SwitchStatement */]: function forEachChildInSwitchStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.caseBlock); }, - [268 /* CaseBlock */]: function forEachChildInCaseBlock(node, cbNode, cbNodes) { + [269 /* CaseBlock */]: function forEachChildInCaseBlock(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.clauses); }, - [295 /* CaseClause */]: function forEachChildInCaseClause(node, cbNode, cbNodes) { + [296 /* CaseClause */]: function forEachChildInCaseClause(node, cbNode, cbNodes) { return visitNode2(cbNode, node.expression) || visitNodes(cbNode, cbNodes, node.statements); }, - [296 /* DefaultClause */]: function forEachChildInDefaultClause(node, cbNode, cbNodes) { + [297 /* DefaultClause */]: function forEachChildInDefaultClause(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.statements); }, - [255 /* LabeledStatement */]: function forEachChildInLabeledStatement(node, cbNode, _cbNodes) { + [256 /* LabeledStatement */]: function forEachChildInLabeledStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.label) || visitNode2(cbNode, node.statement); }, - [256 /* ThrowStatement */]: function forEachChildInThrowStatement(node, cbNode, _cbNodes) { + [257 /* ThrowStatement */]: function forEachChildInThrowStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [257 /* TryStatement */]: function forEachChildInTryStatement(node, cbNode, _cbNodes) { + [258 /* TryStatement */]: function forEachChildInTryStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.tryBlock) || visitNode2(cbNode, node.catchClause) || visitNode2(cbNode, node.finallyBlock); }, - [298 /* CatchClause */]: function forEachChildInCatchClause(node, cbNode, _cbNodes) { + [299 /* CatchClause */]: function forEachChildInCatchClause(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.variableDeclaration) || visitNode2(cbNode, node.block); }, - [169 /* Decorator */]: function forEachChildInDecorator(node, cbNode, _cbNodes) { + [170 /* Decorator */]: function forEachChildInDecorator(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [262 /* ClassDeclaration */]: forEachChildInClassDeclarationOrExpression, - [230 /* ClassExpression */]: forEachChildInClassDeclarationOrExpression, - [263 /* InterfaceDeclaration */]: function forEachChildInInterfaceDeclaration(node, cbNode, cbNodes) { + [263 /* ClassDeclaration */]: forEachChildInClassDeclarationOrExpression, + [231 /* ClassExpression */]: forEachChildInClassDeclarationOrExpression, + [264 /* InterfaceDeclaration */]: function forEachChildInInterfaceDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.heritageClauses) || visitNodes(cbNode, cbNodes, node.members); }, - [264 /* TypeAliasDeclaration */]: function forEachChildInTypeAliasDeclaration(node, cbNode, cbNodes) { + [265 /* TypeAliasDeclaration */]: function forEachChildInTypeAliasDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNode2(cbNode, node.type); }, - [265 /* EnumDeclaration */]: function forEachChildInEnumDeclaration(node, cbNode, cbNodes) { + [266 /* EnumDeclaration */]: function forEachChildInEnumDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.members); }, - [305 /* EnumMember */]: function forEachChildInEnumMember(node, cbNode, _cbNodes) { + [306 /* EnumMember */]: function forEachChildInEnumMember(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.initializer); }, - [266 /* ModuleDeclaration */]: function forEachChildInModuleDeclaration(node, cbNode, cbNodes) { + [267 /* ModuleDeclaration */]: function forEachChildInModuleDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.body); }, - [270 /* ImportEqualsDeclaration */]: function forEachChildInImportEqualsDeclaration(node, cbNode, cbNodes) { + [271 /* ImportEqualsDeclaration */]: function forEachChildInImportEqualsDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.moduleReference); }, - [271 /* ImportDeclaration */]: function forEachChildInImportDeclaration(node, cbNode, cbNodes) { + [272 /* ImportDeclaration */]: function forEachChildInImportDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.importClause) || visitNode2(cbNode, node.moduleSpecifier) || visitNode2(cbNode, node.assertClause); }, - [272 /* ImportClause */]: function forEachChildInImportClause(node, cbNode, _cbNodes) { + [273 /* ImportClause */]: function forEachChildInImportClause(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.namedBindings); }, - [299 /* AssertClause */]: function forEachChildInAssertClause(node, cbNode, cbNodes) { + [300 /* AssertClause */]: function forEachChildInAssertClause(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.elements); }, - [300 /* AssertEntry */]: function forEachChildInAssertEntry(node, cbNode, _cbNodes) { + [301 /* AssertEntry */]: function forEachChildInAssertEntry(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.value); }, - [269 /* NamespaceExportDeclaration */]: function forEachChildInNamespaceExportDeclaration(node, cbNode, cbNodes) { + [270 /* NamespaceExportDeclaration */]: function forEachChildInNamespaceExportDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name); }, - [273 /* NamespaceImport */]: function forEachChildInNamespaceImport(node, cbNode, _cbNodes) { + [274 /* NamespaceImport */]: function forEachChildInNamespaceImport(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name); }, - [279 /* NamespaceExport */]: function forEachChildInNamespaceExport(node, cbNode, _cbNodes) { + [280 /* NamespaceExport */]: function forEachChildInNamespaceExport(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name); }, - [274 /* NamedImports */]: forEachChildInNamedImportsOrExports, - [278 /* NamedExports */]: forEachChildInNamedImportsOrExports, - [277 /* ExportDeclaration */]: function forEachChildInExportDeclaration(node, cbNode, cbNodes) { + [275 /* NamedImports */]: forEachChildInNamedImportsOrExports, + [279 /* NamedExports */]: forEachChildInNamedImportsOrExports, + [278 /* ExportDeclaration */]: function forEachChildInExportDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.exportClause) || visitNode2(cbNode, node.moduleSpecifier) || visitNode2(cbNode, node.assertClause); }, - [275 /* ImportSpecifier */]: forEachChildInImportOrExportSpecifier, - [280 /* ExportSpecifier */]: forEachChildInImportOrExportSpecifier, - [276 /* ExportAssignment */]: function forEachChildInExportAssignment(node, cbNode, cbNodes) { + [276 /* ImportSpecifier */]: forEachChildInImportOrExportSpecifier, + [281 /* ExportSpecifier */]: forEachChildInImportOrExportSpecifier, + [277 /* ExportAssignment */]: function forEachChildInExportAssignment(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.expression); }, - [227 /* TemplateExpression */]: function forEachChildInTemplateExpression(node, cbNode, cbNodes) { + [228 /* TemplateExpression */]: function forEachChildInTemplateExpression(node, cbNode, cbNodes) { return visitNode2(cbNode, node.head) || visitNodes(cbNode, cbNodes, node.templateSpans); }, - [238 /* TemplateSpan */]: function forEachChildInTemplateSpan(node, cbNode, _cbNodes) { + [239 /* TemplateSpan */]: function forEachChildInTemplateSpan(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.literal); }, - [202 /* TemplateLiteralType */]: function forEachChildInTemplateLiteralType(node, cbNode, cbNodes) { + [203 /* TemplateLiteralType */]: function forEachChildInTemplateLiteralType(node, cbNode, cbNodes) { return visitNode2(cbNode, node.head) || visitNodes(cbNode, cbNodes, node.templateSpans); }, - [203 /* TemplateLiteralTypeSpan */]: function forEachChildInTemplateLiteralTypeSpan(node, cbNode, _cbNodes) { + [204 /* TemplateLiteralTypeSpan */]: function forEachChildInTemplateLiteralTypeSpan(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.type) || visitNode2(cbNode, node.literal); }, - [166 /* ComputedPropertyName */]: function forEachChildInComputedPropertyName(node, cbNode, _cbNodes) { + [167 /* ComputedPropertyName */]: function forEachChildInComputedPropertyName(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [297 /* HeritageClause */]: function forEachChildInHeritageClause(node, cbNode, cbNodes) { + [298 /* HeritageClause */]: function forEachChildInHeritageClause(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.types); }, - [232 /* ExpressionWithTypeArguments */]: function forEachChildInExpressionWithTypeArguments(node, cbNode, cbNodes) { + [233 /* ExpressionWithTypeArguments */]: function forEachChildInExpressionWithTypeArguments(node, cbNode, cbNodes) { return visitNode2(cbNode, node.expression) || visitNodes(cbNode, cbNodes, node.typeArguments); }, - [282 /* ExternalModuleReference */]: function forEachChildInExternalModuleReference(node, cbNode, _cbNodes) { + [283 /* ExternalModuleReference */]: function forEachChildInExternalModuleReference(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [281 /* MissingDeclaration */]: function forEachChildInMissingDeclaration(node, cbNode, cbNodes) { + [282 /* MissingDeclaration */]: function forEachChildInMissingDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers); }, - [360 /* CommaListExpression */]: function forEachChildInCommaListExpression(node, cbNode, cbNodes) { + [361 /* CommaListExpression */]: function forEachChildInCommaListExpression(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.elements); }, - [283 /* JsxElement */]: function forEachChildInJsxElement(node, cbNode, cbNodes) { + [284 /* JsxElement */]: function forEachChildInJsxElement(node, cbNode, cbNodes) { return visitNode2(cbNode, node.openingElement) || visitNodes(cbNode, cbNodes, node.children) || visitNode2(cbNode, node.closingElement); }, - [287 /* JsxFragment */]: function forEachChildInJsxFragment(node, cbNode, cbNodes) { + [288 /* JsxFragment */]: function forEachChildInJsxFragment(node, cbNode, cbNodes) { return visitNode2(cbNode, node.openingFragment) || visitNodes(cbNode, cbNodes, node.children) || visitNode2(cbNode, node.closingFragment); }, - [284 /* JsxSelfClosingElement */]: forEachChildInJsxOpeningOrSelfClosingElement, - [285 /* JsxOpeningElement */]: forEachChildInJsxOpeningOrSelfClosingElement, - [291 /* JsxAttributes */]: function forEachChildInJsxAttributes(node, cbNode, cbNodes) { + [285 /* JsxSelfClosingElement */]: forEachChildInJsxOpeningOrSelfClosingElement, + [286 /* JsxOpeningElement */]: forEachChildInJsxOpeningOrSelfClosingElement, + [292 /* JsxAttributes */]: function forEachChildInJsxAttributes(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.properties); }, - [290 /* JsxAttribute */]: function forEachChildInJsxAttribute(node, cbNode, _cbNodes) { + [291 /* JsxAttribute */]: function forEachChildInJsxAttribute(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.initializer); }, - [292 /* JsxSpreadAttribute */]: function forEachChildInJsxSpreadAttribute(node, cbNode, _cbNodes) { + [293 /* JsxSpreadAttribute */]: function forEachChildInJsxSpreadAttribute(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [293 /* JsxExpression */]: function forEachChildInJsxExpression(node, cbNode, _cbNodes) { + [294 /* JsxExpression */]: function forEachChildInJsxExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.dotDotDotToken) || visitNode2(cbNode, node.expression); }, - [286 /* JsxClosingElement */]: function forEachChildInJsxClosingElement(node, cbNode, _cbNodes) { + [287 /* JsxClosingElement */]: function forEachChildInJsxClosingElement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.tagName); }, - [294 /* JsxNamespacedName */]: function forEachChildInJsxNamespacedName(node, cbNode, _cbNodes) { + [295 /* JsxNamespacedName */]: function forEachChildInJsxNamespacedName(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.namespace) || visitNode2(cbNode, node.name); }, - [189 /* OptionalType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [190 /* RestType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [315 /* JSDocTypeExpression */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [321 /* JSDocNonNullableType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [320 /* JSDocNullableType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [322 /* JSDocOptionalType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [324 /* JSDocVariadicType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [323 /* JSDocFunctionType */]: function forEachChildInJSDocFunctionType(node, cbNode, cbNodes) { + [190 /* OptionalType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [191 /* RestType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [316 /* JSDocTypeExpression */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [322 /* JSDocNonNullableType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [321 /* JSDocNullableType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [323 /* JSDocOptionalType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [325 /* JSDocVariadicType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [324 /* JSDocFunctionType */]: function forEachChildInJSDocFunctionType(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); }, - [326 /* JSDoc */]: function forEachChildInJSDoc(node, cbNode, cbNodes) { + [327 /* JSDoc */]: function forEachChildInJSDoc(node, cbNode, cbNodes) { return (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)) || visitNodes(cbNode, cbNodes, node.tags); }, - [353 /* JSDocSeeTag */]: function forEachChildInJSDocSeeTag(node, cbNode, cbNodes) { + [354 /* JSDocSeeTag */]: function forEachChildInJSDocSeeTag(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.name) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); }, - [316 /* JSDocNameReference */]: function forEachChildInJSDocNameReference(node, cbNode, _cbNodes) { + [317 /* JSDocNameReference */]: function forEachChildInJSDocNameReference(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name); }, - [317 /* JSDocMemberName */]: function forEachChildInJSDocMemberName(node, cbNode, _cbNodes) { + [318 /* JSDocMemberName */]: function forEachChildInJSDocMemberName(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.left) || visitNode2(cbNode, node.right); }, - [347 /* JSDocParameterTag */]: forEachChildInJSDocParameterOrPropertyTag, - [354 /* JSDocPropertyTag */]: forEachChildInJSDocParameterOrPropertyTag, - [336 /* JSDocAuthorTag */]: function forEachChildInJSDocAuthorTag(node, cbNode, cbNodes) { + [348 /* JSDocParameterTag */]: forEachChildInJSDocParameterOrPropertyTag, + [355 /* JSDocPropertyTag */]: forEachChildInJSDocParameterOrPropertyTag, + [337 /* JSDocAuthorTag */]: function forEachChildInJSDocAuthorTag(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tagName) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); }, - [335 /* JSDocImplementsTag */]: function forEachChildInJSDocImplementsTag(node, cbNode, cbNodes) { + [336 /* JSDocImplementsTag */]: function forEachChildInJSDocImplementsTag(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.class) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); }, - [334 /* JSDocAugmentsTag */]: function forEachChildInJSDocAugmentsTag(node, cbNode, cbNodes) { + [335 /* JSDocAugmentsTag */]: function forEachChildInJSDocAugmentsTag(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.class) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); }, - [351 /* JSDocTemplateTag */]: function forEachChildInJSDocTemplateTag(node, cbNode, cbNodes) { + [352 /* JSDocTemplateTag */]: function forEachChildInJSDocTemplateTag(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.constraint) || visitNodes(cbNode, cbNodes, node.typeParameters) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); }, - [352 /* JSDocTypedefTag */]: function forEachChildInJSDocTypedefTag(node, cbNode, cbNodes) { - return visitNode2(cbNode, node.tagName) || (node.typeExpression && node.typeExpression.kind === 315 /* JSDocTypeExpression */ ? visitNode2(cbNode, node.typeExpression) || visitNode2(cbNode, node.fullName) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)) : visitNode2(cbNode, node.fullName) || visitNode2(cbNode, node.typeExpression) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment))); + [353 /* JSDocTypedefTag */]: function forEachChildInJSDocTypedefTag(node, cbNode, cbNodes) { + return visitNode2(cbNode, node.tagName) || (node.typeExpression && node.typeExpression.kind === 316 /* JSDocTypeExpression */ ? visitNode2(cbNode, node.typeExpression) || visitNode2(cbNode, node.fullName) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)) : visitNode2(cbNode, node.fullName) || visitNode2(cbNode, node.typeExpression) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment))); }, - [344 /* JSDocCallbackTag */]: function forEachChildInJSDocCallbackTag(node, cbNode, cbNodes) { + [345 /* JSDocCallbackTag */]: function forEachChildInJSDocCallbackTag(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.fullName) || visitNode2(cbNode, node.typeExpression) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); }, - [348 /* JSDocReturnTag */]: forEachChildInJSDocTypeLikeTag, - [350 /* JSDocTypeTag */]: forEachChildInJSDocTypeLikeTag, - [349 /* JSDocThisTag */]: forEachChildInJSDocTypeLikeTag, - [346 /* JSDocEnumTag */]: forEachChildInJSDocTypeLikeTag, - [356 /* JSDocSatisfiesTag */]: forEachChildInJSDocTypeLikeTag, - [355 /* JSDocThrowsTag */]: forEachChildInJSDocTypeLikeTag, - [345 /* JSDocOverloadTag */]: forEachChildInJSDocTypeLikeTag, - [329 /* JSDocSignature */]: function forEachChildInJSDocSignature(node, cbNode, _cbNodes) { + [349 /* JSDocReturnTag */]: forEachChildInJSDocTypeLikeTag, + [351 /* JSDocTypeTag */]: forEachChildInJSDocTypeLikeTag, + [350 /* JSDocThisTag */]: forEachChildInJSDocTypeLikeTag, + [347 /* JSDocEnumTag */]: forEachChildInJSDocTypeLikeTag, + [357 /* JSDocSatisfiesTag */]: forEachChildInJSDocTypeLikeTag, + [356 /* JSDocThrowsTag */]: forEachChildInJSDocTypeLikeTag, + [346 /* JSDocOverloadTag */]: forEachChildInJSDocTypeLikeTag, + [330 /* JSDocSignature */]: function forEachChildInJSDocSignature(node, cbNode, _cbNodes) { return forEach(node.typeParameters, cbNode) || forEach(node.parameters, cbNode) || visitNode2(cbNode, node.type); }, - [330 /* JSDocLink */]: forEachChildInJSDocLinkCodeOrPlain, - [331 /* JSDocLinkCode */]: forEachChildInJSDocLinkCodeOrPlain, - [332 /* JSDocLinkPlain */]: forEachChildInJSDocLinkCodeOrPlain, - [328 /* JSDocTypeLiteral */]: function forEachChildInJSDocTypeLiteral(node, cbNode, _cbNodes) { + [331 /* JSDocLink */]: forEachChildInJSDocLinkCodeOrPlain, + [332 /* JSDocLinkCode */]: forEachChildInJSDocLinkCodeOrPlain, + [333 /* JSDocLinkPlain */]: forEachChildInJSDocLinkCodeOrPlain, + [329 /* JSDocTypeLiteral */]: function forEachChildInJSDocTypeLiteral(node, cbNode, _cbNodes) { return forEach(node.jsDocPropertyTags, cbNode); }, - [333 /* JSDocTag */]: forEachChildInJSDocTag, - [338 /* JSDocClassTag */]: forEachChildInJSDocTag, - [339 /* JSDocPublicTag */]: forEachChildInJSDocTag, - [340 /* JSDocPrivateTag */]: forEachChildInJSDocTag, - [341 /* JSDocProtectedTag */]: forEachChildInJSDocTag, - [342 /* JSDocReadonlyTag */]: forEachChildInJSDocTag, - [337 /* JSDocDeprecatedTag */]: forEachChildInJSDocTag, - [343 /* JSDocOverrideTag */]: forEachChildInJSDocTag, - [359 /* PartiallyEmittedExpression */]: forEachChildInPartiallyEmittedExpression + [334 /* JSDocTag */]: forEachChildInJSDocTag, + [339 /* JSDocClassTag */]: forEachChildInJSDocTag, + [340 /* JSDocPublicTag */]: forEachChildInJSDocTag, + [341 /* JSDocPrivateTag */]: forEachChildInJSDocTag, + [342 /* JSDocProtectedTag */]: forEachChildInJSDocTag, + [343 /* JSDocReadonlyTag */]: forEachChildInJSDocTag, + [338 /* JSDocDeprecatedTag */]: forEachChildInJSDocTag, + [344 /* JSDocOverrideTag */]: forEachChildInJSDocTag, + [360 /* PartiallyEmittedExpression */]: forEachChildInPartiallyEmittedExpression }; ((Parser2) => { var scanner2 = createScanner( @@ -28580,7 +28798,7 @@ ${lanes.join("\n")} /*skipTrivia*/ true ); - var disallowInAndDecoratorContext = 4096 /* DisallowInContext */ | 16384 /* DecoratorContext */; + var disallowInAndDecoratorContext = 8192 /* DisallowInContext */ | 32768 /* DecoratorContext */; var NodeConstructor2; var TokenConstructor2; var IdentifierConstructor2; @@ -28825,10 +29043,10 @@ ${lanes.join("\n")} switch (scriptKind) { case 1 /* JS */: case 2 /* JSX */: - contextFlags = 262144 /* JavaScriptFile */; + contextFlags = 524288 /* JavaScriptFile */; break; case 6 /* JSON */: - contextFlags = 262144 /* JavaScriptFile */ | 67108864 /* JsonFile */; + contextFlags = 524288 /* JavaScriptFile */ | 134217728 /* JsonFile */; break; default: contextFlags = 0 /* None */; @@ -28860,13 +29078,14 @@ ${lanes.join("\n")} function parseSourceFileWorker(languageVersion2, setParentNodes, scriptKind2, setExternalModuleIndicator2) { const isDeclarationFile = isDeclarationFileName(fileName); if (isDeclarationFile) { - contextFlags |= 16777216 /* Ambient */; + contextFlags |= 33554432 /* Ambient */; } sourceFlags = contextFlags; nextToken(); const statements = parseList(0 /* SourceElements */, parseStatement); Debug.assert(token() === 1 /* EndOfFileToken */); - const endOfFileToken = addJSDocComment(parseTokenNode()); + const endHasJSDoc = hasPrecedingJSDocComment(); + const endOfFileToken = withJSDoc(parseTokenNode(), endHasJSDoc); const sourceFile = createSourceFile2(fileName, languageVersion2, scriptKind2, isDeclarationFile, statements, endOfFileToken, sourceFlags, setExternalModuleIndicator2); processCommentPragmas(sourceFile, sourceText); processPragmasIntoFields(sourceFile, reportPragmaDiagnostic); @@ -28886,18 +29105,18 @@ ${lanes.join("\n")} parseDiagnostics.push(createDetachedDiagnostic(fileName, pos, end, diagnostic)); } } - function withJSDoc(node, hasJSDoc) { - return hasJSDoc ? addJSDocComment(node) : node; - } let hasDeprecatedTag = false; - function addJSDocComment(node) { + function withJSDoc(node, hasJSDoc) { + if (!hasJSDoc) { + return node; + } Debug.assert(!node.jsDoc); const jsDoc = mapDefined(getJSDocCommentRanges(node, sourceText), (comment) => JSDocParser.parseJSDocComment(node, comment.pos, comment.end - comment.pos)); if (jsDoc.length) node.jsDoc = jsDoc; if (hasDeprecatedTag) { hasDeprecatedTag = false; - node.flags |= 268435456 /* Deprecated */; + node.flags |= 536870912 /* Deprecated */; } return node; } @@ -28922,7 +29141,7 @@ ${lanes.join("\n")} } speculationHelper(() => { const savedContextFlags = contextFlags; - contextFlags |= 32768 /* AwaitContext */; + contextFlags |= 65536 /* AwaitContext */; scanner2.resetTokenState(nextStatement.pos); nextToken(); while (token() !== 1 /* EndOfFileToken */) { @@ -28957,7 +29176,7 @@ ${lanes.join("\n")} syntaxCursor = savedSyntaxCursor; return factory2.updateSourceFile(sourceFile, setTextRange(factoryCreateNodeArray(statements), sourceFile.statements)); function containsPossibleTopLevelAwait(node) { - return !(node.flags & 32768 /* AwaitContext */) && !!(node.transformFlags & 67108864 /* ContainsPossibleTopLevelAwait */); + return !(node.flags & 65536 /* AwaitContext */) && !!(node.transformFlags & 67108864 /* ContainsPossibleTopLevelAwait */); } function findNextStatementWithAwait(statements2, start2) { for (let i = start2; i < statements2.length; i++) { @@ -29021,16 +29240,16 @@ ${lanes.join("\n")} } } function setDisallowInContext(val) { - setContextFlag(val, 4096 /* DisallowInContext */); + setContextFlag(val, 8192 /* DisallowInContext */); } function setYieldContext(val) { - setContextFlag(val, 8192 /* YieldContext */); + setContextFlag(val, 16384 /* YieldContext */); } function setDecoratorContext(val) { - setContextFlag(val, 16384 /* DecoratorContext */); + setContextFlag(val, 32768 /* DecoratorContext */); } function setAwaitContext(val) { - setContextFlag(val, 32768 /* AwaitContext */); + setContextFlag(val, 65536 /* AwaitContext */); } function doOutsideOfContext(context, func) { const contextFlagsToClear = context & contextFlags; @@ -29069,52 +29288,52 @@ ${lanes.join("\n")} return func(); } function allowInAnd(func) { - return doOutsideOfContext(4096 /* DisallowInContext */, func); + return doOutsideOfContext(8192 /* DisallowInContext */, func); } function disallowInAnd(func) { - return doInsideOfContext(4096 /* DisallowInContext */, func); + return doInsideOfContext(8192 /* DisallowInContext */, func); } function allowConditionalTypesAnd(func) { - return doOutsideOfContext(65536 /* DisallowConditionalTypesContext */, func); + return doOutsideOfContext(131072 /* DisallowConditionalTypesContext */, func); } function disallowConditionalTypesAnd(func) { - return doInsideOfContext(65536 /* DisallowConditionalTypesContext */, func); + return doInsideOfContext(131072 /* DisallowConditionalTypesContext */, func); } function doInYieldContext(func) { - return doInsideOfContext(8192 /* YieldContext */, func); + return doInsideOfContext(16384 /* YieldContext */, func); } function doInDecoratorContext(func) { - return doInsideOfContext(16384 /* DecoratorContext */, func); + return doInsideOfContext(32768 /* DecoratorContext */, func); } function doInAwaitContext(func) { - return doInsideOfContext(32768 /* AwaitContext */, func); + return doInsideOfContext(65536 /* AwaitContext */, func); } function doOutsideOfAwaitContext(func) { - return doOutsideOfContext(32768 /* AwaitContext */, func); + return doOutsideOfContext(65536 /* AwaitContext */, func); } function doInYieldAndAwaitContext(func) { - return doInsideOfContext(8192 /* YieldContext */ | 32768 /* AwaitContext */, func); + return doInsideOfContext(16384 /* YieldContext */ | 65536 /* AwaitContext */, func); } function doOutsideOfYieldAndAwaitContext(func) { - return doOutsideOfContext(8192 /* YieldContext */ | 32768 /* AwaitContext */, func); + return doOutsideOfContext(16384 /* YieldContext */ | 65536 /* AwaitContext */, func); } function inContext(flags) { return (contextFlags & flags) !== 0; } function inYieldContext() { - return inContext(8192 /* YieldContext */); + return inContext(16384 /* YieldContext */); } function inDisallowInContext() { - return inContext(4096 /* DisallowInContext */); + return inContext(8192 /* DisallowInContext */); } function inDisallowConditionalTypesContext() { - return inContext(65536 /* DisallowConditionalTypesContext */); + return inContext(131072 /* DisallowConditionalTypesContext */); } function inDecoratorContext() { - return inContext(16384 /* DecoratorContext */); + return inContext(32768 /* DecoratorContext */); } function inAwaitContext() { - return inContext(32768 /* AwaitContext */); + return inContext(65536 /* AwaitContext */); } function parseErrorAtCurrentToken(message, ...args) { return parseErrorAt(scanner2.getTokenStart(), scanner2.getTokenEnd(), message, ...args); @@ -29438,7 +29657,7 @@ ${lanes.join("\n")} } if (parseErrorBeforeNextFinishedNode) { parseErrorBeforeNextFinishedNode = false; - node.flags |= 131072 /* ThisNodeHasError */; + node.flags |= 262144 /* ThisNodeHasError */; } return node; } @@ -29467,7 +29686,7 @@ ${lanes.join("\n")} "", /*isSingleQuote*/ void 0 - ) : kind === 281 /* MissingDeclaration */ ? factory2.createMissingDeclaration() : factoryCreateToken(kind); + ) : kind === 282 /* MissingDeclaration */ ? factory2.createMissingDeclaration() : factoryCreateToken(kind); return finishNode(result, pos); } function internIdentifier(text) { @@ -29684,6 +29903,9 @@ ${lanes.join("\n")} case 22 /* HeritageClauses */: return isHeritageClause2(); case 23 /* ImportOrExportSpecifiers */: + if (token() === 161 /* FromKeyword */ && lookAhead(nextTokenIsStringLiteral)) { + return false; + } return tokenIsIdentifierOrKeyword(token()); case 13 /* JsxAttributes */: return tokenIsIdentifierOrKeyword(token()) || token() === 19 /* OpenBraceToken */; @@ -29840,7 +30062,7 @@ ${lanes.join("\n")} if (nodeIsMissing(node) || node.intersectsChange || containsParseError(node)) { return void 0; } - const nodeContextFlags = node.flags & 50720768 /* ContextFlags */; + const nodeContextFlags = node.flags & 101441536 /* ContextFlags */; if (nodeContextFlags !== contextFlags) { return void 0; } @@ -29898,14 +30120,14 @@ ${lanes.join("\n")} function isReusableClassMember(node) { if (node) { switch (node.kind) { - case 175 /* Constructor */: - case 180 /* IndexSignature */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 171 /* PropertyDeclaration */: - case 239 /* SemicolonClassElement */: + case 176 /* Constructor */: + case 181 /* IndexSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 172 /* PropertyDeclaration */: + case 240 /* SemicolonClassElement */: return true; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: const methodDeclaration = node; const nameIsConstructor = methodDeclaration.name.kind === 80 /* Identifier */ && methodDeclaration.name.escapedText === "constructor"; return !nameIsConstructor; @@ -29916,8 +30138,8 @@ ${lanes.join("\n")} function isReusableSwitchClause(node) { if (node) { switch (node.kind) { - case 295 /* CaseClause */: - case 296 /* DefaultClause */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: return true; } } @@ -29926,65 +30148,65 @@ ${lanes.join("\n")} function isReusableStatement(node) { if (node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 242 /* VariableStatement */: - case 240 /* Block */: - case 244 /* IfStatement */: - case 243 /* ExpressionStatement */: - case 256 /* ThrowStatement */: - case 252 /* ReturnStatement */: - case 254 /* SwitchStatement */: - case 251 /* BreakStatement */: - case 250 /* ContinueStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 247 /* ForStatement */: - case 246 /* WhileStatement */: - case 253 /* WithStatement */: - case 241 /* EmptyStatement */: - case 257 /* TryStatement */: - case 255 /* LabeledStatement */: - case 245 /* DoStatement */: - case 258 /* DebuggerStatement */: - case 271 /* ImportDeclaration */: - case 270 /* ImportEqualsDeclaration */: - case 277 /* ExportDeclaration */: - case 276 /* ExportAssignment */: - case 266 /* ModuleDeclaration */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 262 /* FunctionDeclaration */: + case 243 /* VariableStatement */: + case 241 /* Block */: + case 245 /* IfStatement */: + case 244 /* ExpressionStatement */: + case 257 /* ThrowStatement */: + case 253 /* ReturnStatement */: + case 255 /* SwitchStatement */: + case 252 /* BreakStatement */: + case 251 /* ContinueStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 248 /* ForStatement */: + case 247 /* WhileStatement */: + case 254 /* WithStatement */: + case 242 /* EmptyStatement */: + case 258 /* TryStatement */: + case 256 /* LabeledStatement */: + case 246 /* DoStatement */: + case 259 /* DebuggerStatement */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 278 /* ExportDeclaration */: + case 277 /* ExportAssignment */: + case 267 /* ModuleDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + case 265 /* TypeAliasDeclaration */: return true; } } return false; } function isReusableEnumMember(node) { - return node.kind === 305 /* EnumMember */; + return node.kind === 306 /* EnumMember */; } function isReusableTypeMember(node) { if (node) { switch (node.kind) { - case 179 /* ConstructSignature */: - case 172 /* MethodSignature */: - case 180 /* IndexSignature */: - case 170 /* PropertySignature */: - case 178 /* CallSignature */: + case 180 /* ConstructSignature */: + case 173 /* MethodSignature */: + case 181 /* IndexSignature */: + case 171 /* PropertySignature */: + case 179 /* CallSignature */: return true; } } return false; } function isReusableVariableDeclaration(node) { - if (node.kind !== 259 /* VariableDeclaration */) { + if (node.kind !== 260 /* VariableDeclaration */) { return false; } const variableDeclarator = node; return variableDeclarator.initializer === void 0; } function isReusableParameter(node) { - if (node.kind !== 168 /* Parameter */) { + if (node.kind !== 169 /* Parameter */) { return false; } const parameter = node; @@ -30042,6 +30264,9 @@ ${lanes.join("\n")} case 22 /* HeritageClauses */: return parseErrorAtCurrentToken(Diagnostics.Unexpected_token_expected); case 23 /* ImportOrExportSpecifiers */: + if (token() === 161 /* FromKeyword */) { + return parseErrorAtCurrentToken(Diagnostics._0_expected, "}"); + } return parseErrorAtCurrentToken(Diagnostics.Identifier_expected); case 13 /* JsxAttributes */: return parseErrorAtCurrentToken(Diagnostics.Identifier_expected); @@ -30321,14 +30546,14 @@ ${lanes.join("\n")} } function typeHasArrowFunctionBlockingParseError(node) { switch (node.kind) { - case 182 /* TypeReference */: + case 183 /* TypeReference */: return nodeIsMissing(node.typeName); - case 183 /* FunctionType */: - case 184 /* ConstructorType */: { + case 184 /* FunctionType */: + case 185 /* ConstructorType */: { const { parameters, type } = node; return isMissingList(parameters) || typeHasArrowFunctionBlockingParseError(type); } - case 195 /* ParenthesizedType */: + case 196 /* ParenthesizedType */: return typeHasArrowFunctionBlockingParseError(node.type); default: return false; @@ -30620,7 +30845,7 @@ ${lanes.join("\n")} function parseSignatureMember(kind) { const pos = getNodePos(); const hasJSDoc = hasPrecedingJSDocComment(); - if (kind === 179 /* ConstructSignature */) { + if (kind === 180 /* ConstructSignature */) { parseExpected(105 /* NewKeyword */); } const typeParameters = parseTypeParameters(); @@ -30631,7 +30856,7 @@ ${lanes.join("\n")} true ); parseTypeMemberSemicolon(); - const node = kind === 178 /* CallSignature */ ? factory2.createCallSignature(typeParameters, parameters, type) : factory2.createConstructSignature(typeParameters, parameters, type); + const node = kind === 179 /* CallSignature */ ? factory2.createCallSignature(typeParameters, parameters, type) : factory2.createConstructSignature(typeParameters, parameters, type); return withJSDoc(finishNode(node, pos), hasJSDoc); } function isIndexSignature() { @@ -30716,10 +30941,10 @@ ${lanes.join("\n")} } function parseTypeMember() { if (token() === 21 /* OpenParenToken */ || token() === 30 /* LessThanToken */) { - return parseSignatureMember(178 /* CallSignature */); + return parseSignatureMember(179 /* CallSignature */); } if (token() === 105 /* NewKeyword */ && lookAhead(nextTokenIsOpenParenOrLessThan)) { - return parseSignatureMember(179 /* ConstructSignature */); + return parseSignatureMember(180 /* ConstructSignature */); } const pos = getNodePos(); const hasJSDoc = hasPrecedingJSDocComment(); @@ -30728,10 +30953,10 @@ ${lanes.join("\n")} false ); if (parseContextualModifier(139 /* GetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 176 /* GetAccessor */, 4 /* Type */); + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* GetAccessor */, 4 /* Type */); } if (parseContextualModifier(153 /* SetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* SetAccessor */, 4 /* Type */); + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 178 /* SetAccessor */, 4 /* Type */); } if (isIndexSignature()) { return parseIndexSignatureDeclaration(pos, hasJSDoc, modifiers); @@ -30940,7 +31165,7 @@ ${lanes.join("\n")} return finishNode(factory2.createImportTypeAssertionContainer(clause, multiLine), pos); } function parseImportType() { - sourceFlags |= 2097152 /* PossiblyContainsDynamicImport */; + sourceFlags |= 4194304 /* PossiblyContainsDynamicImport */; const pos = getNodePos(); const isTypeOf = parseOptional(114 /* TypeOfKeyword */); parseExpected(102 /* ImportKeyword */); @@ -30965,7 +31190,7 @@ ${lanes.join("\n")} case 159 /* UnknownKeyword */: case 154 /* StringKeyword */: case 150 /* NumberKeyword */: - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: case 155 /* SymbolKeyword */: case 136 /* BooleanKeyword */: case 157 /* UndefinedKeyword */: @@ -31031,7 +31256,7 @@ ${lanes.join("\n")} case 159 /* UnknownKeyword */: case 154 /* StringKeyword */: case 150 /* NumberKeyword */: - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: case 136 /* BooleanKeyword */: case 148 /* ReadonlyKeyword */: case 155 /* SymbolKeyword */: @@ -31277,8 +31502,8 @@ ${lanes.join("\n")} return finishNode(factory2.createTypePredicateNode(assertsModifier, parameterName, type), pos); } function parseType() { - if (contextFlags & 40960 /* TypeExcludesFlags */) { - return doOutsideOfContext(40960 /* TypeExcludesFlags */, parseType); + if (contextFlags & 81920 /* TypeExcludesFlags */) { + return doOutsideOfContext(81920 /* TypeExcludesFlags */, parseType); } if (isStartOfFunctionTypeOrConstructorType()) { return parseFunctionOrConstructorType(); @@ -31399,12 +31624,14 @@ ${lanes.join("\n")} return arrowExpression; } const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); const expr = parseBinaryExpressionOrHigher(0 /* Lowest */); if (expr.kind === 80 /* Identifier */ && token() === 39 /* EqualsGreaterThanToken */) { return parseSimpleArrowFunctionExpression( pos, expr, allowReturnTypeInArrowFunction, + hasJSDoc, /*asyncModifier*/ void 0 ); @@ -31450,7 +31677,7 @@ ${lanes.join("\n")} ), pos); } } - function parseSimpleArrowFunctionExpression(pos, identifier, allowReturnTypeInArrowFunction, asyncModifier) { + function parseSimpleArrowFunctionExpression(pos, identifier, allowReturnTypeInArrowFunction, hasJSDoc, asyncModifier) { Debug.assert(token() === 39 /* EqualsGreaterThanToken */, "parseSimpleArrowFunctionExpression should only have been called if we had a =>"); const parameter = factory2.createParameterDeclaration( /*modifiers*/ @@ -31483,7 +31710,7 @@ ${lanes.join("\n")} equalsGreaterThanToken, body ); - return addJSDocComment(finishNode(node, pos)); + return withJSDoc(finishNode(node, pos), hasJSDoc); } function tryParseParenthesizedArrowFunctionExpression(allowReturnTypeInArrowFunction) { const triState = isParenthesizedArrowFunctionExpression(); @@ -31611,9 +31838,10 @@ ${lanes.join("\n")} if (token() === 134 /* AsyncKeyword */) { if (lookAhead(isUnParenthesizedAsyncArrowFunctionWorker) === 1 /* True */) { const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); const asyncModifier = parseModifiersForArrowFunction(); const expr = parseBinaryExpressionOrHigher(0 /* Lowest */); - return parseSimpleArrowFunctionExpression(pos, expr, allowReturnTypeInArrowFunction, asyncModifier); + return parseSimpleArrowFunctionExpression(pos, expr, allowReturnTypeInArrowFunction, hasJSDoc, asyncModifier); } } return void 0; @@ -31667,7 +31895,7 @@ ${lanes.join("\n")} return void 0; } let unwrappedType = type; - while ((unwrappedType == null ? void 0 : unwrappedType.kind) === 195 /* ParenthesizedType */) { + while ((unwrappedType == null ? void 0 : unwrappedType.kind) === 196 /* ParenthesizedType */) { unwrappedType = unwrappedType.type; } const hasJSDocFunctionType = unwrappedType && isJSDocFunctionType(unwrappedType); @@ -31730,7 +31958,7 @@ ${lanes.join("\n")} return parseBinaryExpressionRest(precedence, leftOperand, pos); } function isInOrOfKeyword(t) { - return t === 103 /* InKeyword */ || t === 164 /* OfKeyword */; + return t === 103 /* InKeyword */ || t === 165 /* OfKeyword */; } function parseBinaryExpressionRest(precedence, leftOperand, pos) { while (true) { @@ -31812,7 +32040,7 @@ ${lanes.join("\n")} if (token() === 43 /* AsteriskAsteriskToken */) { const pos = skipTrivia(sourceText, simpleUnaryExpression.pos); const { end } = simpleUnaryExpression; - if (simpleUnaryExpression.kind === 215 /* TypeAssertionExpression */) { + if (simpleUnaryExpression.kind === 216 /* TypeAssertionExpression */) { parseErrorAt(pos, end, Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses); } else { Debug.assert(isKeywordOrPunctuation(unaryOperator)); @@ -31899,13 +32127,13 @@ ${lanes.join("\n")} let expression; if (token() === 102 /* ImportKeyword */) { if (lookAhead(nextTokenIsOpenParenOrLessThan)) { - sourceFlags |= 2097152 /* PossiblyContainsDynamicImport */; + sourceFlags |= 4194304 /* PossiblyContainsDynamicImport */; expression = parseTokenNode(); } else if (lookAhead(nextTokenIsDot)) { nextToken(); nextToken(); expression = finishNode(factory2.createMetaProperty(102 /* ImportKeyword */, parseIdentifierName()), pos); - sourceFlags |= 4194304 /* PossiblyContainsImportMeta */; + sourceFlags |= 8388608 /* PossiblyContainsImportMeta */; } else { expression = parseMemberExpressionOrHigher(); } @@ -31952,11 +32180,11 @@ ${lanes.join("\n")} const pos = getNodePos(); const opening = parseJsxOpeningOrSelfClosingElementOrOpeningFragment(inExpressionContext); let result; - if (opening.kind === 285 /* JsxOpeningElement */) { + if (opening.kind === 286 /* JsxOpeningElement */) { let children = parseJsxChildren(opening); let closingElement; const lastChild = children[children.length - 1]; - if ((lastChild == null ? void 0 : lastChild.kind) === 283 /* JsxElement */ && !tagNamesAreEquivalent(lastChild.openingElement.tagName, lastChild.closingElement.tagName) && tagNamesAreEquivalent(opening.tagName, lastChild.closingElement.tagName)) { + if ((lastChild == null ? void 0 : lastChild.kind) === 284 /* JsxElement */ && !tagNamesAreEquivalent(lastChild.openingElement.tagName, lastChild.closingElement.tagName) && tagNamesAreEquivalent(opening.tagName, lastChild.closingElement.tagName)) { const end = lastChild.children.end; const newLast = finishNode( factory2.createJsxElement( @@ -31980,10 +32208,10 @@ ${lanes.join("\n")} } } result = finishNode(factory2.createJsxElement(opening, children, closingElement), pos); - } else if (opening.kind === 288 /* JsxOpeningFragment */) { + } else if (opening.kind === 289 /* JsxOpeningFragment */) { result = finishNode(factory2.createJsxFragment(opening, parseJsxChildren(opening), parseJsxClosingFragment(inExpressionContext)), pos); } else { - Debug.assert(opening.kind === 284 /* JsxSelfClosingElement */); + Debug.assert(opening.kind === 285 /* JsxSelfClosingElement */); result = opening; } if (!mustBeUnary && inExpressionContext && token() === 30 /* LessThanToken */) { @@ -32056,7 +32284,7 @@ ${lanes.join("\n")} if (!child) break; list.push(child); - if (isJsxOpeningElement(openingTag) && (child == null ? void 0 : child.kind) === 283 /* JsxElement */ && !tagNamesAreEquivalent(child.openingElement.tagName, child.closingElement.tagName) && tagNamesAreEquivalent(openingTag.tagName, child.closingElement.tagName)) { + if (isJsxOpeningElement(openingTag) && (child == null ? void 0 : child.kind) === 284 /* JsxElement */ && !tagNamesAreEquivalent(child.openingElement.tagName, child.closingElement.tagName) && tagNamesAreEquivalent(openingTag.tagName, child.closingElement.tagName)) { break; } } @@ -32075,7 +32303,7 @@ ${lanes.join("\n")} return finishNode(factory2.createJsxOpeningFragment(), pos); } const tagName = parseJsxElementName(); - const typeArguments = (contextFlags & 262144 /* JavaScriptFile */) === 0 ? tryParseTypeArguments() : void 0; + const typeArguments = (contextFlags & 524288 /* JavaScriptFile */) === 0 ? tryParseTypeArguments() : void 0; const attributes = parseJsxAttributes(); let node; if (token() === 32 /* GreaterThanToken */) { @@ -32253,17 +32481,17 @@ ${lanes.join("\n")} return token() === 29 /* QuestionDotToken */ && lookAhead(nextTokenIsIdentifierOrKeywordOrOpenBracketOrTemplate); } function tryReparseOptionalChain(node) { - if (node.flags & 32 /* OptionalChain */) { + if (node.flags & 64 /* OptionalChain */) { return true; } if (isNonNullExpression(node)) { let expr = node.expression; - while (isNonNullExpression(expr) && !(expr.flags & 32 /* OptionalChain */)) { + while (isNonNullExpression(expr) && !(expr.flags & 64 /* OptionalChain */)) { expr = expr.expression; } - if (expr.flags & 32 /* OptionalChain */) { + if (expr.flags & 64 /* OptionalChain */) { while (isNonNullExpression(node)) { - node.flags |= 32 /* OptionalChain */; + node.flags |= 64 /* OptionalChain */; node = node.expression; } return true; @@ -32329,7 +32557,7 @@ ${lanes.join("\n")} continue; } if (isTemplateStartOfTaggedTemplate()) { - expression = !questionDotToken && expression.kind === 232 /* ExpressionWithTypeArguments */ ? parseTaggedTemplateRest(pos, expression.expression, questionDotToken, expression.typeArguments) : parseTaggedTemplateRest( + expression = !questionDotToken && expression.kind === 233 /* ExpressionWithTypeArguments */ ? parseTaggedTemplateRest(pos, expression.expression, questionDotToken, expression.typeArguments) : parseTaggedTemplateRest( pos, expression, questionDotToken, @@ -32368,8 +32596,8 @@ ${lanes.join("\n")} true ) ); - if (questionDotToken || tag.flags & 32 /* OptionalChain */) { - tagExpression.flags |= 32 /* OptionalChain */; + if (questionDotToken || tag.flags & 64 /* OptionalChain */) { + tagExpression.flags |= 64 /* OptionalChain */; } tagExpression.questionDotToken = questionDotToken; return finishNode(tagExpression, pos); @@ -32392,7 +32620,7 @@ ${lanes.join("\n")} } } if (typeArguments || token() === 21 /* OpenParenToken */) { - if (!questionDotToken && expression.kind === 232 /* ExpressionWithTypeArguments */) { + if (!questionDotToken && expression.kind === 233 /* ExpressionWithTypeArguments */) { typeArguments = expression.typeArguments; expression = expression.expression; } @@ -32421,7 +32649,7 @@ ${lanes.join("\n")} return result; } function parseTypeArgumentsInExpression() { - if ((contextFlags & 262144 /* JavaScriptFile */) !== 0) { + if ((contextFlags & 524288 /* JavaScriptFile */) !== 0) { return void 0; } if (reScanLessThanToken() !== 30 /* LessThanToken */) { @@ -32553,10 +32781,10 @@ ${lanes.join("\n")} true ); if (parseContextualModifier(139 /* GetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 176 /* GetAccessor */, 0 /* None */); + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* GetAccessor */, 0 /* None */); } if (parseContextualModifier(153 /* SetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* SetAccessor */, 0 /* None */); + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 178 /* SetAccessor */, 0 /* None */); } const asteriskToken = parseOptionalToken(42 /* AsteriskToken */); const tokenIsIdentifier = isIdentifier2(); @@ -32650,7 +32878,7 @@ ${lanes.join("\n")} false ); let typeArguments; - if (expression.kind === 232 /* ExpressionWithTypeArguments */) { + if (expression.kind === 233 /* ExpressionWithTypeArguments */) { typeArguments = expression.typeArguments; expression = expression.expression; } @@ -32760,7 +32988,7 @@ ${lanes.join("\n")} parseExpected(21 /* OpenParenToken */); let initializer; if (token() !== 27 /* SemicolonToken */) { - if (token() === 115 /* VarKeyword */ || token() === 121 /* LetKeyword */ || token() === 87 /* ConstKeyword */) { + if (token() === 115 /* VarKeyword */ || token() === 121 /* LetKeyword */ || token() === 87 /* ConstKeyword */ || token() === 160 /* UsingKeyword */ && lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLineDisallowOf) || token() === 135 /* AwaitKeyword */ && lookAhead(nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLineDisallowOf)) { initializer = parseVariableDeclarationList( /*inForStatementInitializer*/ true @@ -32770,7 +32998,7 @@ ${lanes.join("\n")} } } let node; - if (awaitToken ? parseExpected(164 /* OfKeyword */) : parseOptional(164 /* OfKeyword */)) { + if (awaitToken ? parseExpected(165 /* OfKeyword */) : parseOptional(165 /* OfKeyword */)) { const expression = allowInAnd(() => parseAssignmentExpressionOrHigher( /*allowReturnTypeInArrowFunction*/ true @@ -32794,10 +33022,10 @@ ${lanes.join("\n")} function parseBreakOrContinueStatement(kind) { const pos = getNodePos(); const hasJSDoc = hasPrecedingJSDocComment(); - parseExpected(kind === 251 /* BreakStatement */ ? 83 /* BreakKeyword */ : 88 /* ContinueKeyword */); + parseExpected(kind === 252 /* BreakStatement */ ? 83 /* BreakKeyword */ : 88 /* ContinueKeyword */); const label = canParseSemicolon() ? void 0 : parseIdentifier(); parseSemicolon(); - const node = kind === 251 /* BreakStatement */ ? factory2.createBreakStatement(label) : factory2.createContinueStatement(label); + const node = kind === 252 /* BreakStatement */ ? factory2.createBreakStatement(label) : factory2.createContinueStatement(label); return withJSDoc(finishNode(node, pos), hasJSDoc); } function parseReturnStatement() { @@ -32816,7 +33044,7 @@ ${lanes.join("\n")} const openParenParsed = parseExpected(21 /* OpenParenToken */); const expression = allowInAnd(parseExpression); parseExpectedMatchingBrackets(21 /* OpenParenToken */, 22 /* CloseParenToken */, openParenParsed, openParenPosition); - const statement = doInsideOfContext(33554432 /* InWithStatement */, parseStatement); + const statement = doInsideOfContext(67108864 /* InWithStatement */, parseStatement); return withJSDoc(finishNode(factory2.createWithStatement(expression, statement), pos), hasJSDoc); } function parseCaseClause() { @@ -32956,6 +33184,10 @@ ${lanes.join("\n")} case 86 /* ClassKeyword */: case 94 /* EnumKeyword */: return true; + case 160 /* UsingKeyword */: + return isUsingDeclaration(); + case 135 /* AwaitKeyword */: + return isAwaitUsingDeclaration(); case 120 /* InterfaceKeyword */: case 156 /* TypeKeyword */: return nextTokenIsIdentifierOnSameLine(); @@ -32970,12 +33202,16 @@ ${lanes.join("\n")} case 124 /* ProtectedKeyword */: case 125 /* PublicKeyword */: case 148 /* ReadonlyKeyword */: + const previousToken = token(); nextToken(); if (scanner2.hasPrecedingLineBreak()) { return false; } + if (previousToken === 138 /* DeclareKeyword */ && token() === 156 /* TypeKeyword */) { + return true; + } continue; - case 161 /* GlobalKeyword */: + case 162 /* GlobalKeyword */: nextToken(); return token() === 19 /* OpenBraceToken */ || token() === 80 /* Identifier */ || token() === 95 /* ExportKeyword */; case 102 /* ImportKeyword */: @@ -33008,6 +33244,7 @@ ${lanes.join("\n")} case 19 /* OpenBraceToken */: case 115 /* VarKeyword */: case 121 /* LetKeyword */: + case 160 /* UsingKeyword */: case 100 /* FunctionKeyword */: case 86 /* ClassKeyword */: case 94 /* EnumKeyword */: @@ -33037,7 +33274,7 @@ ${lanes.join("\n")} case 144 /* ModuleKeyword */: case 145 /* NamespaceKeyword */: case 156 /* TypeKeyword */: - case 161 /* GlobalKeyword */: + case 162 /* GlobalKeyword */: return true; case 129 /* AccessorKeyword */: case 125 /* PublicKeyword */: @@ -33057,6 +33294,36 @@ ${lanes.join("\n")} function isLetDeclaration() { return lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuring); } + function nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLineDisallowOf() { + return nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine( + /*disallowOf*/ + true + ); + } + function nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine(disallowOf) { + nextToken(); + if (disallowOf && token() === 165 /* OfKeyword */) + return false; + return (isBindingIdentifier() || token() === 19 /* OpenBraceToken */) && !scanner2.hasPrecedingLineBreak(); + } + function isUsingDeclaration() { + return lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine); + } + function nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLineDisallowOf() { + return nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLine( + /*disallowOf*/ + true + ); + } + function nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLine(disallowOf) { + if (nextToken() === 160 /* UsingKeyword */) { + return nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine(disallowOf); + } + return false; + } + function isAwaitUsingDeclaration() { + return lookAhead(nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLine); + } function parseStatement() { switch (token()) { case 27 /* SemicolonToken */: @@ -33083,6 +33350,26 @@ ${lanes.join("\n")} ); } break; + case 135 /* AwaitKeyword */: + if (isAwaitUsingDeclaration()) { + return parseVariableStatement( + getNodePos(), + hasPrecedingJSDocComment(), + /*modifiers*/ + void 0 + ); + } + break; + case 160 /* UsingKeyword */: + if (isUsingDeclaration()) { + return parseVariableStatement( + getNodePos(), + hasPrecedingJSDocComment(), + /*modifiers*/ + void 0 + ); + } + break; case 100 /* FunctionKeyword */: return parseFunctionDeclaration( getNodePos(), @@ -33106,9 +33393,9 @@ ${lanes.join("\n")} case 99 /* ForKeyword */: return parseForOrForInOrForOfStatement(); case 88 /* ContinueKeyword */: - return parseBreakOrContinueStatement(250 /* ContinueStatement */); + return parseBreakOrContinueStatement(251 /* ContinueStatement */); case 83 /* BreakKeyword */: - return parseBreakOrContinueStatement(251 /* BreakStatement */); + return parseBreakOrContinueStatement(252 /* BreakStatement */); case 107 /* ReturnKeyword */: return parseReturnStatement(); case 118 /* WithKeyword */: @@ -33142,7 +33429,7 @@ ${lanes.join("\n")} case 129 /* AccessorKeyword */: case 126 /* StaticKeyword */: case 148 /* ReadonlyKeyword */: - case 161 /* GlobalKeyword */: + case 162 /* GlobalKeyword */: if (isStartOfDeclaration()) { return parseDeclaration(); } @@ -33167,15 +33454,15 @@ ${lanes.join("\n")} return node; } for (const m of modifiers) { - m.flags |= 16777216 /* Ambient */; + m.flags |= 33554432 /* Ambient */; } - return doInsideOfContext(16777216 /* Ambient */, () => parseDeclarationWorker(pos, hasJSDoc, modifiers)); + return doInsideOfContext(33554432 /* Ambient */, () => parseDeclarationWorker(pos, hasJSDoc, modifiers)); } else { return parseDeclarationWorker(pos, hasJSDoc, modifiers); } } function tryReuseAmbientDeclaration(pos) { - return doInsideOfContext(16777216 /* Ambient */, () => { + return doInsideOfContext(33554432 /* Ambient */, () => { const node = currentNode(parsingContext, pos); if (node) { return consumeNode(node); @@ -33187,6 +33474,8 @@ ${lanes.join("\n")} case 115 /* VarKeyword */: case 121 /* LetKeyword */: case 87 /* ConstKeyword */: + case 160 /* UsingKeyword */: + case 135 /* AwaitKeyword */: return parseVariableStatement(pos, hasJSDoc, modifiersIn); case 100 /* FunctionKeyword */: return parseFunctionDeclaration(pos, hasJSDoc, modifiersIn); @@ -33198,7 +33487,7 @@ ${lanes.join("\n")} return parseTypeAliasDeclaration(pos, hasJSDoc, modifiersIn); case 94 /* EnumKeyword */: return parseEnumDeclaration(pos, hasJSDoc, modifiersIn); - case 161 /* GlobalKeyword */: + case 162 /* GlobalKeyword */: case 144 /* ModuleKeyword */: case 145 /* NamespaceKeyword */: return parseModuleDeclaration(pos, hasJSDoc, modifiersIn); @@ -33218,7 +33507,7 @@ ${lanes.join("\n")} default: if (modifiersIn) { const missing = createMissingNode( - 281 /* MissingDeclaration */, + 282 /* MissingDeclaration */, /*reportAtCurrentPosition*/ true, Diagnostics.Declaration_expected @@ -33230,6 +33519,9 @@ ${lanes.join("\n")} return void 0; } } + function nextTokenIsStringLiteral() { + return nextToken() === 11 /* StringLiteral */; + } function nextTokenIsIdentifierOrStringLiteralOnSameLine() { nextToken(); return !scanner2.hasPrecedingLineBreak() && (isIdentifier2() || token() === 11 /* StringLiteral */); @@ -33282,14 +33574,14 @@ ${lanes.join("\n")} function parseObjectBindingPattern() { const pos = getNodePos(); parseExpected(19 /* OpenBraceToken */); - const elements = parseDelimitedList(9 /* ObjectBindingElements */, parseObjectBindingElement); + const elements = allowInAnd(() => parseDelimitedList(9 /* ObjectBindingElements */, parseObjectBindingElement)); parseExpected(20 /* CloseBraceToken */); return finishNode(factory2.createObjectBindingPattern(elements), pos); } function parseArrayBindingPattern() { const pos = getNodePos(); parseExpected(23 /* OpenBracketToken */); - const elements = parseDelimitedList(10 /* ArrayBindingElements */, parseArrayBindingElement); + const elements = allowInAnd(() => parseDelimitedList(10 /* ArrayBindingElements */, parseArrayBindingElement)); parseExpected(24 /* CloseBracketToken */); return finishNode(factory2.createArrayBindingPattern(elements), pos); } @@ -33336,12 +33628,20 @@ ${lanes.join("\n")} case 87 /* ConstKeyword */: flags |= 2 /* Const */; break; + case 160 /* UsingKeyword */: + flags |= 4 /* Using */; + break; + case 135 /* AwaitKeyword */: + Debug.assert(isAwaitUsingDeclaration()); + flags |= 6 /* AwaitUsing */; + nextToken(); + break; default: Debug.fail(); } nextToken(); let declarations; - if (token() === 164 /* OfKeyword */ && lookAhead(canFollowContextualOfKeyword)) { + if (token() === 165 /* OfKeyword */ && lookAhead(canFollowContextualOfKeyword)) { declarations = createMissingList(); } else { const savedDisallowIn = inDisallowInContext(); @@ -33447,7 +33747,7 @@ ${lanes.join("\n")} function parsePropertyDeclaration(pos, hasJSDoc, modifiers, name, questionToken) { const exclamationToken = !questionToken && !scanner2.hasPrecedingLineBreak() ? parseOptionalToken(54 /* ExclamationToken */) : void 0; const type = parseTypeAnnotation(); - const initializer = doOutsideOfContext(8192 /* YieldContext */ | 32768 /* AwaitContext */ | 4096 /* DisallowInContext */, parseInitializer); + const initializer = doOutsideOfContext(16384 /* YieldContext */ | 65536 /* AwaitContext */ | 8192 /* DisallowInContext */, parseInitializer); parseSemicolonAfterPropertyName(name, type, initializer); const node = factory2.createPropertyDeclaration( modifiers, @@ -33487,7 +33787,7 @@ ${lanes.join("\n")} false ); const body = parseFunctionBlockOrSemicolon(flags); - const node = kind === 176 /* GetAccessor */ ? factory2.createGetAccessorDeclaration(modifiers, name, parameters, type, body) : factory2.createSetAccessorDeclaration(modifiers, name, parameters, body); + const node = kind === 177 /* GetAccessor */ ? factory2.createGetAccessorDeclaration(modifiers, name, parameters, type, body) : factory2.createSetAccessorDeclaration(modifiers, name, parameters, body); node.typeParameters = typeParameters; if (isSetAccessorDeclaration(node)) node.type = type; @@ -33653,10 +33953,10 @@ ${lanes.join("\n")} return parseClassStaticBlockDeclaration(pos, hasJSDoc, modifiers); } if (parseContextualModifier(139 /* GetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 176 /* GetAccessor */, 0 /* None */); + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* GetAccessor */, 0 /* None */); } if (parseContextualModifier(153 /* SetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* SetAccessor */, 0 /* None */); + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 178 /* SetAccessor */, 0 /* None */); } if (token() === 137 /* ConstructorKeyword */ || token() === 11 /* StringLiteral */) { const constructorDeclaration = tryParseConstructorDeclaration(pos, hasJSDoc, modifiers); @@ -33671,9 +33971,9 @@ ${lanes.join("\n")} const isAmbient = some(modifiers, isDeclareModifier); if (isAmbient) { for (const m of modifiers) { - m.flags |= 16777216 /* Ambient */; + m.flags |= 33554432 /* Ambient */; } - return doInsideOfContext(16777216 /* Ambient */, () => parsePropertyOrMethodDeclaration(pos, hasJSDoc, modifiers)); + return doInsideOfContext(33554432 /* Ambient */, () => parsePropertyOrMethodDeclaration(pos, hasJSDoc, modifiers)); } else { return parsePropertyOrMethodDeclaration(pos, hasJSDoc, modifiers); } @@ -33704,10 +34004,10 @@ ${lanes.join("\n")} true ); if (token() === 86 /* ClassKeyword */) { - return parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, 230 /* ClassExpression */); + return parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, 231 /* ClassExpression */); } const missing = createMissingNode( - 281 /* MissingDeclaration */, + 282 /* MissingDeclaration */, /*reportAtCurrentPosition*/ true, Diagnostics.Expression_expected @@ -33722,11 +34022,11 @@ ${lanes.join("\n")} hasPrecedingJSDocComment(), /*modifiers*/ void 0, - 230 /* ClassExpression */ + 231 /* ClassExpression */ ); } function parseClassDeclaration(pos, hasJSDoc, modifiers) { - return parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, 262 /* ClassDeclaration */); + return parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, 263 /* ClassDeclaration */); } function parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, kind) { const savedAwaitContext = inAwaitContext(); @@ -33747,7 +34047,7 @@ ${lanes.join("\n")} members = createMissingList(); } setAwaitContext(savedAwaitContext); - const node = kind === 262 /* ClassDeclaration */ ? factory2.createClassDeclaration(modifiers, name, typeParameters, heritageClauses, members) : factory2.createClassExpression(modifiers, name, typeParameters, heritageClauses, members); + const node = kind === 263 /* ClassDeclaration */ ? factory2.createClassDeclaration(modifiers, name, typeParameters, heritageClauses, members) : factory2.createClassExpression(modifiers, name, typeParameters, heritageClauses, members); return withJSDoc(finishNode(node, pos), hasJSDoc); } function parseNameOfClassDeclarationOrExpression() { @@ -33773,7 +34073,7 @@ ${lanes.join("\n")} function parseExpressionWithTypeArguments() { const pos = getNodePos(); const expression = parseLeftHandSideExpressionOrHigher(); - if (expression.kind === 232 /* ExpressionWithTypeArguments */) { + if (expression.kind === 233 /* ExpressionWithTypeArguments */) { return expression; } const typeArguments = tryParseTypeArguments(); @@ -33799,6 +34099,9 @@ ${lanes.join("\n")} } function parseTypeAliasDeclaration(pos, hasJSDoc, modifiers) { parseExpected(156 /* TypeKeyword */); + if (scanner2.hasPrecedingLineBreak()) { + parseErrorAtCurrentToken(Diagnostics.Line_break_not_permitted_here); + } const name = parseIdentifier(); const typeParameters = parseTypeParameters(); parseExpected(64 /* EqualsToken */); @@ -33839,7 +34142,7 @@ ${lanes.join("\n")} return finishNode(factory2.createModuleBlock(statements), pos); } function parseModuleOrNamespaceDeclaration(pos, hasJSDoc, modifiers, flags) { - const namespaceFlag = flags & 16 /* Namespace */; + const namespaceFlag = flags & 32 /* Namespace */; const name = parseIdentifier(); const body = parseOptional(25 /* DotToken */) ? parseModuleOrNamespaceDeclaration( getNodePos(), @@ -33847,7 +34150,7 @@ ${lanes.join("\n")} false, /*modifiers*/ void 0, - 4 /* NestedNamespace */ | namespaceFlag + 8 /* NestedNamespace */ | namespaceFlag ) : parseModuleBlock(); const node = factory2.createModuleDeclaration(modifiers, name, body, flags); return withJSDoc(finishNode(node, pos), hasJSDoc); @@ -33855,9 +34158,9 @@ ${lanes.join("\n")} function parseAmbientExternalModuleDeclaration(pos, hasJSDoc, modifiersIn) { let flags = 0; let name; - if (token() === 161 /* GlobalKeyword */) { + if (token() === 162 /* GlobalKeyword */) { name = parseIdentifier(); - flags |= 1024 /* GlobalAugmentation */; + flags |= 2048 /* GlobalAugmentation */; } else { name = parseLiteralNode(); name.text = internIdentifier(name.text); @@ -33873,10 +34176,10 @@ ${lanes.join("\n")} } function parseModuleDeclaration(pos, hasJSDoc, modifiersIn) { let flags = 0; - if (token() === 161 /* GlobalKeyword */) { + if (token() === 162 /* GlobalKeyword */) { return parseAmbientExternalModuleDeclaration(pos, hasJSDoc, modifiersIn); } else if (parseOptional(145 /* NamespaceKeyword */)) { - flags |= 16 /* Namespace */; + flags |= 32 /* Namespace */; } else { parseExpected(144 /* ModuleKeyword */); if (token() === 11 /* StringLiteral */) { @@ -33914,7 +34217,7 @@ ${lanes.join("\n")} identifier = parseIdentifier(); } let isTypeOnly = false; - if (token() !== 160 /* FromKeyword */ && (identifier == null ? void 0 : identifier.escapedText) === "type" && (isIdentifier2() || tokenAfterImportDefinitelyProducesImportDeclaration())) { + if (token() !== 161 /* FromKeyword */ && (identifier == null ? void 0 : identifier.escapedText) === "type" && (isIdentifier2() || tokenAfterImportDefinitelyProducesImportDeclaration())) { isTypeOnly = true; identifier = isIdentifier2() ? parseIdentifier() : void 0; } @@ -33926,7 +34229,7 @@ ${lanes.join("\n")} token() === 42 /* AsteriskToken */ || // import * token() === 19 /* OpenBraceToken */) { importClause = parseImportClause(identifier, afterImportPos, isTypeOnly); - parseExpected(160 /* FromKeyword */); + parseExpected(161 /* FromKeyword */); } const moduleSpecifier = parseModuleSpecifier(); let assertClause; @@ -33991,7 +34294,7 @@ ${lanes.join("\n")} return token() === 42 /* AsteriskToken */ || token() === 19 /* OpenBraceToken */; } function tokenAfterImportedIdentifierDefinitelyProducesImportDeclaration() { - return token() === 28 /* CommaToken */ || token() === 160 /* FromKeyword */; + return token() === 28 /* CommaToken */ || token() === 161 /* FromKeyword */; } function parseImportEqualsDeclaration(pos, hasJSDoc, modifiers, identifier, isTypeOnly) { parseExpected(64 /* EqualsToken */); @@ -34004,7 +34307,7 @@ ${lanes.join("\n")} function parseImportClause(identifier, pos, isTypeOnly) { let namedBindings; if (!identifier || parseOptional(28 /* CommaToken */)) { - namedBindings = token() === 42 /* AsteriskToken */ ? parseNamespaceImport() : parseNamedImportsOrExports(274 /* NamedImports */); + namedBindings = token() === 42 /* AsteriskToken */ ? parseNamespaceImport() : parseNamedImportsOrExports(275 /* NamedImports */); } return finishNode(factory2.createImportClause(isTypeOnly, identifier, namedBindings), pos); } @@ -34040,15 +34343,15 @@ ${lanes.join("\n")} } function parseNamedImportsOrExports(kind) { const pos = getNodePos(); - const node = kind === 274 /* NamedImports */ ? factory2.createNamedImports(parseBracketedList(23 /* ImportOrExportSpecifiers */, parseImportSpecifier, 19 /* OpenBraceToken */, 20 /* CloseBraceToken */)) : factory2.createNamedExports(parseBracketedList(23 /* ImportOrExportSpecifiers */, parseExportSpecifier, 19 /* OpenBraceToken */, 20 /* CloseBraceToken */)); + const node = kind === 275 /* NamedImports */ ? factory2.createNamedImports(parseBracketedList(23 /* ImportOrExportSpecifiers */, parseImportSpecifier, 19 /* OpenBraceToken */, 20 /* CloseBraceToken */)) : factory2.createNamedExports(parseBracketedList(23 /* ImportOrExportSpecifiers */, parseExportSpecifier, 19 /* OpenBraceToken */, 20 /* CloseBraceToken */)); return finishNode(node, pos); } function parseExportSpecifier() { const hasJSDoc = hasPrecedingJSDocComment(); - return withJSDoc(parseImportOrExportSpecifier(280 /* ExportSpecifier */), hasJSDoc); + return withJSDoc(parseImportOrExportSpecifier(281 /* ExportSpecifier */), hasJSDoc); } function parseImportSpecifier() { - return parseImportOrExportSpecifier(275 /* ImportSpecifier */); + return parseImportOrExportSpecifier(276 /* ImportSpecifier */); } function parseImportOrExportSpecifier(kind) { const pos = getNodePos(); @@ -34092,10 +34395,10 @@ ${lanes.join("\n")} parseExpected(130 /* AsKeyword */); name = parseNameWithKeywordCheck(); } - if (kind === 275 /* ImportSpecifier */ && checkIdentifierIsKeyword) { + if (kind === 276 /* ImportSpecifier */ && checkIdentifierIsKeyword) { parseErrorAt(checkIdentifierStart, checkIdentifierEnd, Diagnostics.Identifier_expected); } - const node = kind === 275 /* ImportSpecifier */ ? factory2.createImportSpecifier(isTypeOnly, propertyName, name) : factory2.createExportSpecifier(isTypeOnly, propertyName, name); + const node = kind === 276 /* ImportSpecifier */ ? factory2.createImportSpecifier(isTypeOnly, propertyName, name) : factory2.createExportSpecifier(isTypeOnly, propertyName, name); return finishNode(node, pos); function parseNameWithKeywordCheck() { checkIdentifierIsKeyword = isKeyword(token()) && !isIdentifier2(); @@ -34122,12 +34425,12 @@ ${lanes.join("\n")} if (parseOptional(130 /* AsKeyword */)) { exportClause = parseNamespaceExport(namespaceExportPos); } - parseExpected(160 /* FromKeyword */); + parseExpected(161 /* FromKeyword */); moduleSpecifier = parseModuleSpecifier(); } else { - exportClause = parseNamedImportsOrExports(278 /* NamedExports */); - if (token() === 160 /* FromKeyword */ || token() === 11 /* StringLiteral */ && !scanner2.hasPrecedingLineBreak()) { - parseExpected(160 /* FromKeyword */); + exportClause = parseNamedImportsOrExports(279 /* NamedExports */); + if (token() === 161 /* FromKeyword */ || token() === 11 /* StringLiteral */ && !scanner2.hasPrecedingLineBreak()) { + parseExpected(161 /* FromKeyword */); moduleSpecifier = parseModuleSpecifier(); } } @@ -34232,7 +34535,7 @@ ${lanes.join("\n")} function parseJSDocTypeExpression(mayOmitBraces) { const pos = getNodePos(); const hasBrace = (mayOmitBraces ? parseOptional : parseExpected)(19 /* OpenBraceToken */); - const type = doInsideOfContext(8388608 /* JSDoc */, parseJSDocType); + const type = doInsideOfContext(16777216 /* JSDoc */, parseJSDocType); if (!mayOmitBraces || hasBrace) { parseExpectedJSDoc(20 /* CloseBraceToken */); } @@ -34271,7 +34574,7 @@ ${lanes.join("\n")} void 0, 1 /* JS */ ); - const jsDoc = doInsideOfContext(8388608 /* JSDoc */, () => parseJSDocCommentWorker(start, length2)); + const jsDoc = doInsideOfContext(16777216 /* JSDoc */, () => parseJSDocCommentWorker(start, length2)); const sourceFile = { languageVariant: 0 /* Standard */, text: content }; const diagnostics = attachFileToDiagnostics(parseDiagnostics, sourceFile); clearState(); @@ -34282,9 +34585,9 @@ ${lanes.join("\n")} const saveToken = currentToken; const saveParseDiagnosticsLength = parseDiagnostics.length; const saveParseErrorBeforeNextFinishedNode = parseErrorBeforeNextFinishedNode; - const comment = doInsideOfContext(8388608 /* JSDoc */, () => parseJSDocCommentWorker(start, length2)); + const comment = doInsideOfContext(16777216 /* JSDoc */, () => parseJSDocCommentWorker(start, length2)); setParent(comment, parent2); - if (contextFlags & 262144 /* JavaScriptFile */) { + if (contextFlags & 524288 /* JavaScriptFile */) { if (!jsDocDiagnostics) { jsDocDiagnostics = []; } @@ -34765,7 +35068,7 @@ ${lanes.join("\n")} switch (node.kind) { case 151 /* ObjectKeyword */: return true; - case 187 /* ArrayType */: + case 188 /* ArrayType */: return isObjectOrObjectArrayTypeReference(node.elementType); default: return isTypeReferenceNode(node) && isIdentifier(node.typeName) && node.typeName.escapedText === "Object" && !node.typeArguments; @@ -34781,7 +35084,7 @@ ${lanes.join("\n")} typeExpression = tryParseTypeExpression(); } const comment = parseTrailingTagComments(start2, getNodePos(), indent3, indentText); - const nestedTypeLiteral = target !== 4 /* CallbackParameter */ && parseNestedTypeLiteral(typeExpression, name, target, indent3); + const nestedTypeLiteral = parseNestedTypeLiteral(typeExpression, name, target, indent3); if (nestedTypeLiteral) { typeExpression = nestedTypeLiteral; isNameFirst = true; @@ -34795,14 +35098,14 @@ ${lanes.join("\n")} let child; let children; while (child = tryParse(() => parseChildParameterOrPropertyTag(target, indent3, name))) { - if (child.kind === 347 /* JSDocParameterTag */ || child.kind === 354 /* JSDocPropertyTag */) { + if (child.kind === 348 /* JSDocParameterTag */ || child.kind === 355 /* JSDocPropertyTag */) { children = append(children, child); - } else if (child.kind === 351 /* JSDocTemplateTag */) { + } else if (child.kind === 352 /* JSDocTemplateTag */) { parseErrorAtRange(child.tagName, Diagnostics.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag); } } if (children) { - const literal = finishNode(factory2.createJSDocTypeLiteral(children, typeExpression.type.kind === 187 /* ArrayType */), pos); + const literal = finishNode(factory2.createJSDocTypeLiteral(children, typeExpression.type.kind === 188 /* ArrayType */), pos); return finishNode(factory2.createJSDocTypeExpression(literal), pos); } } @@ -34937,11 +35240,11 @@ ${lanes.join("\n")} let jsDocPropertyTags; let hasChildren = false; while (child = tryParse(() => parseChildPropertyTag(indent3))) { - if (child.kind === 351 /* JSDocTemplateTag */) { + if (child.kind === 352 /* JSDocTemplateTag */) { break; } hasChildren = true; - if (child.kind === 350 /* JSDocTypeTag */) { + if (child.kind === 351 /* JSDocTypeTag */) { if (childTypeTag) { const lastError = parseErrorAtCurrentToken(Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags); if (lastError) { @@ -34956,7 +35259,7 @@ ${lanes.join("\n")} } } if (hasChildren) { - const isArrayType = typeExpression && typeExpression.type.kind === 187 /* ArrayType */; + const isArrayType = typeExpression && typeExpression.type.kind === 188 /* ArrayType */; const jsdocTypeLiteral = factory2.createJSDocTypeLiteral(jsDocPropertyTags, isArrayType); typeExpression = childTypeTag && childTypeTag.typeExpression && !isObjectOrObjectArrayTypeReference(childTypeTag.typeExpression.type) ? childTypeTag.typeExpression : finishNode(jsdocTypeLiteral, start2); end2 = typeExpression.end; @@ -34985,12 +35288,12 @@ ${lanes.join("\n")} void 0, typeNameOrNamespaceName, body, - nested ? 4 /* NestedNamespace */ : void 0 + nested ? 8 /* NestedNamespace */ : void 0 ); return finishNode(jsDocNamespaceNode, start2); } if (nested) { - typeNameOrNamespaceName.flags |= 2048 /* IdentifierIsInJSDocNamespace */; + typeNameOrNamespaceName.flags |= 4096 /* IdentifierIsInJSDocNamespace */; } return typeNameOrNamespaceName; } @@ -34999,7 +35302,7 @@ ${lanes.join("\n")} let child; let parameters; while (child = tryParse(() => parseChildParameterOrPropertyTag(4 /* CallbackParameter */, indent3))) { - if (child.kind === 351 /* JSDocTemplateTag */) { + if (child.kind === 352 /* JSDocTemplateTag */) { parseErrorAtRange(child.tagName, Diagnostics.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag); break; } @@ -35012,7 +35315,7 @@ ${lanes.join("\n")} const returnTag = tryParse(() => { if (parseOptionalJsdoc(60 /* AtToken */)) { const tag = parseTag(indent3); - if (tag && tag.kind === 348 /* JSDocReturnTag */) { + if (tag && tag.kind === 349 /* JSDocReturnTag */) { return tag; } } @@ -35067,7 +35370,7 @@ ${lanes.join("\n")} case 60 /* AtToken */: if (canParseTag) { const child = tryParseChildTag(target, indent3); - if (child && (child.kind === 347 /* JSDocParameterTag */ || child.kind === 354 /* JSDocPropertyTag */) && target !== 4 /* CallbackParameter */ && name && (isIdentifier(child.name) || !escapedTextsEqual(name, child.name.left))) { + if (child && (child.kind === 348 /* JSDocParameterTag */ || child.kind === 355 /* JSDocPropertyTag */) && name && (isIdentifier(child.name) || !escapedTextsEqual(name, child.name.left))) { return false; } return child; @@ -35132,7 +35435,7 @@ ${lanes.join("\n")} if (isBracketed) { skipWhitespace(); parseExpected(64 /* EqualsToken */); - defaultType = doInsideOfContext(8388608 /* JSDoc */, parseJSDocType); + defaultType = doInsideOfContext(16777216 /* JSDoc */, parseJSDocType); parseExpected(24 /* CloseBracketToken */); } if (nodeIsMissing(name)) { @@ -35582,7 +35885,7 @@ ${lanes.join("\n")} })(IncrementalParser || (IncrementalParser = {})); namedArgRegExCache = /* @__PURE__ */ new Map(); tripleSlashXMLCommentStartRegEx = /^\/\/\/\s*<(\S+)\s.*?\/>/im; - singleLinePragmaRegEx = /^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im; + singleLinePragmaRegEx = /^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im; } }); @@ -35968,7 +36271,7 @@ ${lanes.join("\n")} function convertConfigFileToObject(sourceFile, errors, jsonConversionNotifier) { var _a; const rootExpression = (_a = sourceFile.statements[0]) == null ? void 0 : _a.expression; - if (rootExpression && rootExpression.kind !== 209 /* ObjectLiteralExpression */) { + if (rootExpression && rootExpression.kind !== 210 /* ObjectLiteralExpression */) { errors.push(createDiagnosticForNodeInSourceFile( sourceFile, rootExpression, @@ -36020,7 +36323,7 @@ ${lanes.join("\n")} var _a; const result = returnValue ? {} : void 0; for (const element of node.properties) { - if (element.kind !== 302 /* PropertyAssignment */) { + if (element.kind !== 303 /* PropertyAssignment */) { errors.push(createDiagnosticForNodeInSourceFile(sourceFile, element, Diagnostics.Property_assignment_expected)); continue; } @@ -36065,15 +36368,15 @@ ${lanes.join("\n")} return valueExpression.text; case 9 /* NumericLiteral */: return Number(valueExpression.text); - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: if (valueExpression.operator !== 41 /* MinusToken */ || valueExpression.operand.kind !== 9 /* NumericLiteral */) { break; } return -Number(valueExpression.operand.text); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: const objectLiteralExpression = valueExpression; return convertObjectLiteralExpressionToJson(objectLiteralExpression, option); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return convertArrayLiteralExpressionToJson( valueExpression.elements, option && option.element @@ -36456,8 +36759,8 @@ ${lanes.join("\n")} const fileName = configFileName || "tsconfig.json"; const diagnosticMessage = Diagnostics.The_files_list_in_config_file_0_is_empty; const nodeValue = forEachTsConfigPropArray(sourceFile, "files", (property) => property.initializer); - const error = createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, nodeValue, diagnosticMessage, fileName); - errors.push(error); + const error2 = createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, nodeValue, diagnosticMessage, fileName); + errors.push(error2); } else { createCompilerDiagnosticOnlyIfJson(Diagnostics.The_files_list_in_config_file_0_is_empty, configFileName || "tsconfig.json"); } @@ -36564,8 +36867,8 @@ ${lanes.join("\n")} } } } - function isErrorNoInputFiles(error) { - return error.code === Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code; + function isErrorNoInputFiles(error2) { + return error2.code === Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code; } function getErrorForNoInputFiles({ includeSpecs, excludeSpecs }, configFileName) { return createCompilerDiagnostic( @@ -36586,7 +36889,7 @@ ${lanes.join("\n")} if (shouldReportNoInputFiles(fileNames, canJsonReportNoInutFiles)) { configParseDiagnostics.push(getErrorForNoInputFiles(configFileSpecs, configFileName)); } else { - filterMutate(configParseDiagnostics, (error) => !isErrorNoInputFiles(error)); + filterMutate(configParseDiagnostics, (error2) => !isErrorNoInputFiles(error2)); } return existingErrors !== configParseDiagnostics.length; } @@ -36994,19 +37297,19 @@ ${lanes.join("\n")} const wildcardFiles = arrayFrom(wildcardFileMap.values()); return literalFiles.concat(wildcardFiles, arrayFrom(wildCardJsonFileMap.values())); } - function isExcludedFile(pathToCheck, spec, basePath, useCaseSensitiveFileNames, currentDirectory) { + function isExcludedFile(pathToCheck, spec, basePath, useCaseSensitiveFileNames2, currentDirectory) { const { validatedFilesSpec, validatedIncludeSpecs, validatedExcludeSpecs } = spec; if (!length(validatedIncludeSpecs) || !length(validatedExcludeSpecs)) return false; basePath = normalizePath(basePath); - const keyMapper = createGetCanonicalFileName(useCaseSensitiveFileNames); + const keyMapper = createGetCanonicalFileName(useCaseSensitiveFileNames2); if (validatedFilesSpec) { for (const fileName of validatedFilesSpec) { if (keyMapper(getNormalizedAbsolutePath(fileName, basePath)) === pathToCheck) return false; } } - return matchesExcludeWorker(pathToCheck, validatedExcludeSpecs, useCaseSensitiveFileNames, currentDirectory, basePath); + return matchesExcludeWorker(pathToCheck, validatedExcludeSpecs, useCaseSensitiveFileNames2, currentDirectory, basePath); } function invalidDotDotAfterRecursiveWildcard(s) { const wildcardIndex = startsWith(s, "**/") ? 0 : s.indexOf("/**/"); @@ -37016,17 +37319,17 @@ ${lanes.join("\n")} const lastDotIndex = endsWith(s, "/..") ? s.length : s.lastIndexOf("/../"); return lastDotIndex > wildcardIndex; } - function matchesExclude(pathToCheck, excludeSpecs, useCaseSensitiveFileNames, currentDirectory) { + function matchesExclude(pathToCheck, excludeSpecs, useCaseSensitiveFileNames2, currentDirectory) { return matchesExcludeWorker( pathToCheck, filter(excludeSpecs, (spec) => !invalidDotDotAfterRecursiveWildcard(spec)), - useCaseSensitiveFileNames, + useCaseSensitiveFileNames2, currentDirectory ); } - function matchesExcludeWorker(pathToCheck, excludeSpecs, useCaseSensitiveFileNames, currentDirectory, basePath) { + function matchesExcludeWorker(pathToCheck, excludeSpecs, useCaseSensitiveFileNames2, currentDirectory, basePath) { const excludePattern = getRegularExpressionForWildcard(excludeSpecs, combinePaths(normalizePath(currentDirectory), basePath), "exclude"); - const excludeRegex = excludePattern && getRegexFromPattern(excludePattern, useCaseSensitiveFileNames); + const excludeRegex = excludePattern && getRegexFromPattern(excludePattern, useCaseSensitiveFileNames2); if (!excludeRegex) return false; if (excludeRegex.test(pathToCheck)) @@ -37056,9 +37359,9 @@ ${lanes.join("\n")} return [Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0, spec]; } } - function getWildcardDirectories({ validatedIncludeSpecs: include, validatedExcludeSpecs: exclude }, path, useCaseSensitiveFileNames) { + function getWildcardDirectories({ validatedIncludeSpecs: include, validatedExcludeSpecs: exclude }, path, useCaseSensitiveFileNames2) { const rawExcludeRegex = getRegularExpressionForWildcard(exclude, path, "exclude"); - const excludeRegex = rawExcludeRegex && new RegExp(rawExcludeRegex, useCaseSensitiveFileNames ? "" : "i"); + const excludeRegex = rawExcludeRegex && new RegExp(rawExcludeRegex, useCaseSensitiveFileNames2 ? "" : "i"); const wildcardDirectories = {}; if (include !== void 0) { const recursiveKeys = []; @@ -37067,7 +37370,7 @@ ${lanes.join("\n")} if (excludeRegex && excludeRegex.test(spec)) { continue; } - const match = getWildcardDirectoryFromSpec(spec, useCaseSensitiveFileNames); + const match = getWildcardDirectoryFromSpec(spec, useCaseSensitiveFileNames2); if (match) { const { key, flags } = match; const existingFlags = wildcardDirectories[key]; @@ -37082,7 +37385,7 @@ ${lanes.join("\n")} for (const key in wildcardDirectories) { if (hasProperty(wildcardDirectories, key)) { for (const recursiveKey of recursiveKeys) { - if (key !== recursiveKey && containsPath(recursiveKey, key, path, !useCaseSensitiveFileNames)) { + if (key !== recursiveKey && containsPath(recursiveKey, key, path, !useCaseSensitiveFileNames2)) { delete wildcardDirectories[key]; } } @@ -37091,20 +37394,20 @@ ${lanes.join("\n")} } return wildcardDirectories; } - function getWildcardDirectoryFromSpec(spec, useCaseSensitiveFileNames) { + function getWildcardDirectoryFromSpec(spec, useCaseSensitiveFileNames2) { const match = wildcardDirectoryPattern.exec(spec); if (match) { const questionWildcardIndex = spec.indexOf("?"); const starWildcardIndex = spec.indexOf("*"); const lastDirectorySeperatorIndex = spec.lastIndexOf(directorySeparator); return { - key: useCaseSensitiveFileNames ? match[0] : toFileNameLowerCase(match[0]), + key: useCaseSensitiveFileNames2 ? match[0] : toFileNameLowerCase(match[0]), flags: questionWildcardIndex !== -1 && questionWildcardIndex < lastDirectorySeperatorIndex || starWildcardIndex !== -1 && starWildcardIndex < lastDirectorySeperatorIndex ? 1 /* Recursive */ : 0 /* None */ }; } if (isImplicitGlob(spec.substring(spec.lastIndexOf(directorySeparator) + 1))) { return { - key: removeTrailingDirectorySeparator(useCaseSensitiveFileNames ? spec : toFileNameLowerCase(spec)), + key: removeTrailingDirectorySeparator(useCaseSensitiveFileNames2 ? spec : toFileNameLowerCase(spec)), flags: 1 /* Recursive */ }; } @@ -37254,6 +37557,7 @@ ${lanes.join("\n")} ["es2015.symbol", "lib.es2015.symbol.d.ts"], ["es2015.symbol.wellknown", "lib.es2015.symbol.wellknown.d.ts"], ["es2016.array.include", "lib.es2016.array.include.d.ts"], + ["es2017.date", "lib.es2017.date.d.ts"], ["es2017.object", "lib.es2017.object.d.ts"], ["es2017.sharedmemory", "lib.es2017.sharedmemory.d.ts"], ["es2017.string", "lib.es2017.string.d.ts"], @@ -37289,14 +37593,18 @@ ${lanes.join("\n")} ["es2022.string", "lib.es2022.string.d.ts"], ["es2022.regexp", "lib.es2022.regexp.d.ts"], ["es2023.array", "lib.es2023.array.d.ts"], + ["es2023.collection", "lib.es2023.collection.d.ts"], ["esnext.array", "lib.es2023.array.d.ts"], + ["esnext.collection", "lib.es2023.collection.d.ts"], ["esnext.symbol", "lib.es2019.symbol.d.ts"], ["esnext.asynciterable", "lib.es2018.asynciterable.d.ts"], ["esnext.intl", "lib.esnext.intl.d.ts"], + ["esnext.disposable", "lib.esnext.disposable.d.ts"], ["esnext.bigint", "lib.es2020.bigint.d.ts"], ["esnext.string", "lib.es2022.string.d.ts"], ["esnext.promise", "lib.es2021.promise.d.ts"], ["esnext.weakref", "lib.es2021.weakref.d.ts"], + ["esnext.decorators", "lib.esnext.decorators.d.ts"], ["decorators", "lib.decorators.d.ts"], ["decorators.legacy", "lib.decorators.legacy.d.ts"] ]; @@ -37704,6 +38012,7 @@ ${lanes.join("\n")} { name: "checkJs", type: "boolean", + affectsModuleResolution: true, showInSimplifiedHelpView: true, category: Diagnostics.JavaScript_Support, description: Diagnostics.Enable_error_reporting_in_type_checked_JavaScript_files, @@ -37930,7 +38239,7 @@ ${lanes.join("\n")} strictFlag: true, category: Diagnostics.Type_Checking, description: Diagnostics.Default_catch_clause_variables_as_unknown_instead_of_any, - defaultValueDescription: false + defaultValueDescription: Diagnostics.false_unless_strict_is_set }, { name: "alwaysStrict", @@ -38784,6 +39093,18 @@ ${lanes.join("\n")} result.push("JSON"); return result.join(", "); } + function extensionsToExtensionsArray(extensions) { + const result = []; + if (extensions & 1 /* TypeScript */) + result.push(...supportedTSImplementationExtensions); + if (extensions & 2 /* JavaScript */) + result.push(...supportedJSExtensionsFlat); + if (extensions & 4 /* Declaration */) + result.push(...supportedDeclarationExtensions); + if (extensions & 8 /* Json */) + result.push(".json" /* Json */); + return result; + } function resolvedTypeScriptOnly(resolved) { if (!resolved) { return void 0; @@ -38956,8 +39277,8 @@ ${lanes.join("\n")} return typeRoots; } function arePathsEqual(path1, path2, host) { - const useCaseSensitiveFileNames = typeof host.useCaseSensitiveFileNames === "function" ? host.useCaseSensitiveFileNames() : host.useCaseSensitiveFileNames; - return comparePaths(path1, path2, !useCaseSensitiveFileNames) === 0 /* EqualTo */; + const useCaseSensitiveFileNames2 = typeof host.useCaseSensitiveFileNames === "function" ? host.useCaseSensitiveFileNames() : host.useCaseSensitiveFileNames; + return comparePaths(path1, path2, !useCaseSensitiveFileNames2) === 0 /* EqualTo */; } function getOriginalAndResolvedFileName(fileName, host, traceEnabled) { const resolvedFileName = realPath(fileName, host, traceEnabled); @@ -39260,7 +39581,7 @@ ${lanes.join("\n")} return str + "}"; } function getKeyForCompilerOptions(options, affectingOptionDeclarations) { - return affectingOptionDeclarations.map((option) => compilerOptionValueToString(getCompilerOptionValue(options, option))).join("|") + (options.pathsBasePath ? `|${options.pathsBasePath}` : void 0); + return affectingOptionDeclarations.map((option) => compilerOptionValueToString(getCompilerOptionValue(options, option))).join("|") + `|${options.pathsBasePath}`; } function createCacheWithRedirects(ownOptions) { const redirectsMap = /* @__PURE__ */ new Map(); @@ -40220,7 +40541,7 @@ ${lanes.join("\n")} arrayIsEqualTo ); for (const conditions of conditionSets) { - const loadPackageJsonExportsState = { ...loadPackageJsonMainState, failedLookupLocations: [], conditions }; + const loadPackageJsonExportsState = { ...loadPackageJsonMainState, failedLookupLocations: [], conditions, host }; const exportResolutions = loadEntrypointsFromExportMap( packageJsonInfo, packageJsonInfo.contents.packageJsonContent.exports, @@ -40252,23 +40573,42 @@ ${lanes.join("\n")} return entrypoints; function loadEntrypointsFromTargetExports(target) { var _a, _b; - if (typeof target === "string" && startsWith(target, "./") && target.indexOf("*") === -1) { - const partsAfterFirst = getPathComponents(target).slice(2); - if (partsAfterFirst.indexOf("..") >= 0 || partsAfterFirst.indexOf(".") >= 0 || partsAfterFirst.indexOf("node_modules") >= 0) { - return false; - } - const resolvedTarget = combinePaths(scope.packageDirectory, target); - const finalPath = getNormalizedAbsolutePath(resolvedTarget, (_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a)); - const result = loadFileNameFromPackageJsonField( - extensions, - finalPath, - /*onlyRecordFailures*/ - false, - state - ); - if (result) { - entrypoints = appendIfUnique(entrypoints, result, (a, b) => a.path === b.path); - return true; + if (typeof target === "string" && startsWith(target, "./")) { + if (target.indexOf("*") >= 0 && state.host.readDirectory) { + if (target.indexOf("*") !== target.lastIndexOf("*")) { + return false; + } + state.host.readDirectory( + scope.packageDirectory, + extensionsToExtensionsArray(extensions), + /*excludes*/ + void 0, + [changeAnyExtension(target.replace("*", "**/*"), getDeclarationEmitExtensionForPath(target))] + ).forEach((entry) => { + entrypoints = appendIfUnique(entrypoints, { + path: entry, + ext: getAnyExtensionFromPath(entry), + resolvedUsingTsExtension: void 0 + }); + }); + } else { + const partsAfterFirst = getPathComponents(target).slice(2); + if (partsAfterFirst.indexOf("..") >= 0 || partsAfterFirst.indexOf(".") >= 0 || partsAfterFirst.indexOf("node_modules") >= 0) { + return false; + } + const resolvedTarget = combinePaths(scope.packageDirectory, target); + const finalPath = getNormalizedAbsolutePath(resolvedTarget, (_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a)); + const result = loadFileNameFromPackageJsonField( + extensions, + finalPath, + /*onlyRecordFailures*/ + false, + state + ); + if (result) { + entrypoints = appendIfUnique(entrypoints, result, (a, b) => a.path === b.path); + return true; + } } } else if (Array.isArray(target)) { for (const t of target) { @@ -40477,6 +40817,9 @@ ${lanes.join("\n")} } const trailingParts = parts.slice(nameParts.length); const subpath = !length(trailingParts) ? "." : `.${directorySeparator}${trailingParts.join(directorySeparator)}`; + if (getAllowJSCompilerOption(state.compilerOptions) && !pathContainsNodeModules(directory)) { + return loadModuleFromExports(scope, extensions, subpath, state, cache, redirectedReference); + } const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */); const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */); return loadModuleFromExports(scope, priorityExtensions, subpath, state, cache, redirectedReference) || loadModuleFromExports(scope, secondaryExtensions, subpath, state, cache, redirectedReference); @@ -40824,13 +41167,10 @@ ${lanes.join("\n")} function combineDirectoryPath(root, dir) { return ensureTrailingDirectorySeparator(combinePaths(root, dir)); } - function useCaseSensitiveFileNames() { - return !state.host.useCaseSensitiveFileNames ? true : typeof state.host.useCaseSensitiveFileNames === "boolean" ? state.host.useCaseSensitiveFileNames : state.host.useCaseSensitiveFileNames(); - } function tryLoadInputFileForPath(finalPath, entry, packagePath, isImports2) { var _a, _b, _c, _d; - if (!state.isConfigLookup && (state.compilerOptions.declarationDir || state.compilerOptions.outDir) && finalPath.indexOf("/node_modules/") === -1 && (state.compilerOptions.configFile ? containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames()) : true)) { - const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames }); + if (!state.isConfigLookup && (state.compilerOptions.declarationDir || state.compilerOptions.outDir) && finalPath.indexOf("/node_modules/") === -1 && (state.compilerOptions.configFile ? containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames(state)) : true)) { + const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames: () => useCaseSensitiveFileNames(state) }); const commonSourceDirGuesses = []; if (state.compilerOptions.rootDir || state.compilerOptions.composite && state.compilerOptions.configFilePath) { const commonDir = toAbsolutePath(getCommonSourceDirectory(state.compilerOptions, () => [], ((_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a)) || "", getCanonicalFileName)); @@ -40859,7 +41199,7 @@ ${lanes.join("\n")} for (const commonSourceDirGuess of commonSourceDirGuesses) { const candidateDirectories = getOutputDirectoriesForBaseDirectory(commonSourceDirGuess); for (const candidateDir of candidateDirectories) { - if (containsPath(candidateDir, finalPath, !useCaseSensitiveFileNames())) { + if (containsPath(candidateDir, finalPath, !useCaseSensitiveFileNames(state))) { const pathFragment = finalPath.slice(candidateDir.length + 1); const possibleInputBase = combinePaths(commonSourceDirGuess, pathFragment); const jsAndDtsExtensions = [".mjs" /* Mjs */, ".cjs" /* Cjs */, ".js" /* Js */, ".json" /* Json */, ".d.mts" /* Dmts */, ".d.cts" /* Dcts */, ".d.ts" /* Dts */]; @@ -40869,7 +41209,7 @@ ${lanes.join("\n")} for (const possibleExt of inputExts) { if (!extensionIsOk(extensions, possibleExt)) continue; - const possibleInputWithInputExtension = changeAnyExtension(possibleInputBase, possibleExt, ext, !useCaseSensitiveFileNames()); + const possibleInputWithInputExtension = changeAnyExtension(possibleInputBase, possibleExt, ext, !useCaseSensitiveFileNames(state)); if (state.host.fileExists(possibleInputWithInputExtension)) { return toSearchResult(withPackageId(scope, loadFileNameFromPackageJsonField( extensions, @@ -40943,11 +41283,13 @@ ${lanes.join("\n")} const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */); const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */); if (priorityExtensions) { + traceIfEnabled(state, Diagnostics.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0, formatExtensions(priorityExtensions)); const result = lookup(priorityExtensions); if (result) return result; } if (secondaryExtensions && !typesScopeOnly) { + traceIfEnabled(state, Diagnostics.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0, formatExtensions(secondaryExtensions)); return lookup(secondaryExtensions); } function lookup(extensions2) { @@ -41283,6 +41625,9 @@ ${lanes.join("\n")} trace(state.host, diagnostic, ...args); } } + function useCaseSensitiveFileNames(state) { + return !state.host.useCaseSensitiveFileNames ? true : typeof state.host.useCaseSensitiveFileNames === "boolean" ? state.host.useCaseSensitiveFileNames : state.host.useCaseSensitiveFileNames(); + } var typeScriptVersion, nodeModulesAtTypes, NodeResolutionFeatures, nodeModulesPathPart, mangledScopedPackageSeparator; var init_moduleNameResolver = __esm({ "src/compiler/moduleNameResolver.ts"() { @@ -41331,23 +41676,23 @@ ${lanes.join("\n")} } function getModuleInstanceStateWorker(node, visited) { switch (node.kind) { - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: return 0 /* NonInstantiated */; - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: if (isEnumConst(node)) { return 2 /* ConstEnumOnly */; } break; - case 271 /* ImportDeclaration */: - case 270 /* ImportEqualsDeclaration */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: if (!hasSyntacticModifier(node, 1 /* Export */)) { return 0 /* NonInstantiated */; } break; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: const exportDeclaration = node; - if (!exportDeclaration.moduleSpecifier && exportDeclaration.exportClause && exportDeclaration.exportClause.kind === 278 /* NamedExports */) { + if (!exportDeclaration.moduleSpecifier && exportDeclaration.exportClause && exportDeclaration.exportClause.kind === 279 /* NamedExports */) { let state = 0 /* NonInstantiated */; for (const specifier of exportDeclaration.exportClause.elements) { const specifierState = getModuleInstanceStateForAliasTarget(specifier, visited); @@ -41361,7 +41706,7 @@ ${lanes.join("\n")} return state; } break; - case 267 /* ModuleBlock */: { + case 268 /* ModuleBlock */: { let state = 0 /* NonInstantiated */; forEachChild(node, (n) => { const childState = getModuleInstanceStateCached(n, visited); @@ -41380,10 +41725,10 @@ ${lanes.join("\n")} }); return state; } - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return getModuleInstanceState(node, visited); case 80 /* Identifier */: - if (node.flags & 2048 /* IdentifierIsInJSDocNamespace */) { + if (node.flags & 4096 /* IdentifierIsInJSDocNamespace */) { return 0 /* NonInstantiated */; } } @@ -41413,6 +41758,9 @@ ${lanes.join("\n")} if (found === 1 /* Instantiated */) { return found; } + if (statement.kind === 271 /* ImportEqualsDeclaration */) { + found = 1 /* Instantiated */; + } } } if (found !== void 0) { @@ -41546,7 +41894,7 @@ ${lanes.join("\n")} } } function getDeclarationName(node) { - if (node.kind === 276 /* ExportAssignment */) { + if (node.kind === 277 /* ExportAssignment */) { return node.isExportEquals ? "export=" /* ExportEquals */ : "default" /* Default */; } const name = getNameOfDeclaration(node); @@ -41555,7 +41903,7 @@ ${lanes.join("\n")} const moduleName = getTextOfIdentifierOrLiteral(name); return isGlobalScopeAugmentation(node) ? "__global" : `"${moduleName}"`; } - if (name.kind === 166 /* ComputedPropertyName */) { + if (name.kind === 167 /* ComputedPropertyName */) { const nameExpression = name.expression; if (isStringOrNumericLiteralLike(nameExpression)) { return escapeLeadingUnderscores(nameExpression.text); @@ -41580,31 +41928,31 @@ ${lanes.join("\n")} return isPropertyNameLiteral(name) ? getEscapedTextOfIdentifierOrLiteral(name) : void 0; } switch (node.kind) { - case 175 /* Constructor */: + case 176 /* Constructor */: return "__constructor" /* Constructor */; - case 183 /* FunctionType */: - case 178 /* CallSignature */: - case 329 /* JSDocSignature */: + case 184 /* FunctionType */: + case 179 /* CallSignature */: + case 330 /* JSDocSignature */: return "__call" /* Call */; - case 184 /* ConstructorType */: - case 179 /* ConstructSignature */: + case 185 /* ConstructorType */: + case 180 /* ConstructSignature */: return "__new" /* New */; - case 180 /* IndexSignature */: + case 181 /* IndexSignature */: return "__index" /* Index */; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return "__export" /* ExportStar */; - case 311 /* SourceFile */: + case 312 /* SourceFile */: return "export=" /* ExportEquals */; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: if (getAssignmentDeclarationKind(node) === 2 /* ModuleExports */) { return "export=" /* ExportEquals */; } Debug.fail("Unknown binary declaration kind"); break; - case 323 /* JSDocFunctionType */: + case 324 /* JSDocFunctionType */: return isJSDocConstructSignature(node) ? "__new" /* New */ : "__call" /* Call */; - case 168 /* Parameter */: - Debug.assert(node.parent.kind === 323 /* JSDocFunctionType */, "Impossible parameter parent kind", () => `parent is: ${Debug.formatSyntaxKind(node.parent.kind)}, expected JSDocFunctionType`); + case 169 /* Parameter */: + Debug.assert(node.parent.kind === 324 /* JSDocFunctionType */, "Impossible parameter parent kind", () => `parent is: ${Debug.formatSyntaxKind(node.parent.kind)}, expected JSDocFunctionType`); const functionType = node.parent; const index = functionType.parameters.indexOf(node); return "arg" + index; @@ -41651,7 +41999,7 @@ ${lanes.join("\n")} messageNeedsName = false; multipleDefaultExports = true; } else { - if (symbol.declarations && symbol.declarations.length && (node.kind === 276 /* ExportAssignment */ && !node.isExportEquals)) { + if (symbol.declarations && symbol.declarations.length && (node.kind === 277 /* ExportAssignment */ && !node.isExportEquals)) { message = Diagnostics.A_module_cannot_have_multiple_default_exports; messageNeedsName = false; multipleDefaultExports = true; @@ -41690,7 +42038,7 @@ ${lanes.join("\n")} function declareModuleMember(node, symbolFlags, symbolExcludes) { const hasExportModifier = !!(getCombinedModifierFlags(node) & 1 /* Export */) || jsdocTreatAsExported(node); if (symbolFlags & 2097152 /* Alias */) { - if (node.kind === 280 /* ExportSpecifier */ || node.kind === 270 /* ImportEqualsDeclaration */ && hasExportModifier) { + if (node.kind === 281 /* ExportSpecifier */ || node.kind === 271 /* ImportEqualsDeclaration */ && hasExportModifier) { return declareSymbol(container.symbol.exports, container.symbol, node, symbolFlags, symbolExcludes); } else { Debug.assertNode(container, canHaveLocals); @@ -41706,7 +42054,7 @@ ${lanes.join("\n")} } else { if (isJSDocTypeAlias(node)) Debug.assert(isInJSFile(node)); - if (!isAmbientModule(node) && (hasExportModifier || container.flags & 64 /* ExportContext */)) { + if (!isAmbientModule(node) && (hasExportModifier || container.flags & 128 /* ExportContext */)) { if (!canHaveLocals(container) || !container.locals || hasSyntacticModifier(node, 1024 /* Default */) && !getDeclarationName(node)) { return declareSymbol(container.symbol.exports, container.symbol, node, symbolFlags, symbolExcludes); } @@ -41757,7 +42105,7 @@ ${lanes.join("\n")} const saveThisParentContainer = thisParentContainer; const savedBlockScopeContainer = blockScopeContainer; if (containerFlags & 1 /* IsContainer */) { - if (node.kind !== 218 /* ArrowFunction */) { + if (node.kind !== 219 /* ArrowFunction */) { thisParentContainer = container; } container = blockScopeContainer = node; @@ -41779,35 +42127,35 @@ ${lanes.join("\n")} const saveExceptionTarget = currentExceptionTarget; const saveActiveLabelList = activeLabelList; const saveHasExplicitReturn = hasExplicitReturn; - const isImmediatelyInvoked = containerFlags & 16 /* IsFunctionExpression */ && !hasSyntacticModifier(node, 512 /* Async */) && !node.asteriskToken && !!getImmediatelyInvokedFunctionExpression(node) || node.kind === 174 /* ClassStaticBlockDeclaration */; + const isImmediatelyInvoked = containerFlags & 16 /* IsFunctionExpression */ && !hasSyntacticModifier(node, 512 /* Async */) && !node.asteriskToken && !!getImmediatelyInvokedFunctionExpression(node) || node.kind === 175 /* ClassStaticBlockDeclaration */; if (!isImmediatelyInvoked) { currentFlow = initFlowNode({ flags: 2 /* Start */ }); if (containerFlags & (16 /* IsFunctionExpression */ | 128 /* IsObjectLiteralOrClassExpressionMethodOrAccessor */)) { currentFlow.node = node; } } - currentReturnTarget = isImmediatelyInvoked || node.kind === 175 /* Constructor */ || isInJSFile(node) && (node.kind === 261 /* FunctionDeclaration */ || node.kind === 217 /* FunctionExpression */) ? createBranchLabel() : void 0; + currentReturnTarget = isImmediatelyInvoked || node.kind === 176 /* Constructor */ || isInJSFile(node) && (node.kind === 262 /* FunctionDeclaration */ || node.kind === 218 /* FunctionExpression */) ? createBranchLabel() : void 0; currentExceptionTarget = void 0; currentBreakTarget = void 0; currentContinueTarget = void 0; activeLabelList = void 0; hasExplicitReturn = false; bindChildren(node); - node.flags &= ~2816 /* ReachabilityAndEmitFlags */; + node.flags &= ~5632 /* ReachabilityAndEmitFlags */; if (!(currentFlow.flags & 1 /* Unreachable */) && containerFlags & 8 /* IsFunctionLike */ && nodeIsPresent(node.body)) { - node.flags |= 256 /* HasImplicitReturn */; + node.flags |= 512 /* HasImplicitReturn */; if (hasExplicitReturn) - node.flags |= 512 /* HasExplicitReturn */; + node.flags |= 1024 /* HasExplicitReturn */; node.endFlowNode = currentFlow; } - if (node.kind === 311 /* SourceFile */) { + if (node.kind === 312 /* SourceFile */) { node.flags |= emitFlags; node.endFlowNode = currentFlow; } if (currentReturnTarget) { addAntecedent(currentReturnTarget, currentFlow); currentFlow = finishFlowLabel(currentReturnTarget); - if (node.kind === 175 /* Constructor */ || node.kind === 174 /* ClassStaticBlockDeclaration */ || isInJSFile(node) && (node.kind === 261 /* FunctionDeclaration */ || node.kind === 217 /* FunctionExpression */)) { + if (node.kind === 176 /* Constructor */ || node.kind === 175 /* ClassStaticBlockDeclaration */ || isInJSFile(node) && (node.kind === 262 /* FunctionDeclaration */ || node.kind === 218 /* FunctionExpression */)) { node.returnFlowNode = currentFlow; } } @@ -41824,7 +42172,7 @@ ${lanes.join("\n")} seenThisKeyword = false; bindChildren(node); Debug.assertNotNode(node, isIdentifier); - node.flags = seenThisKeyword ? node.flags | 128 /* ContainsThis */ : node.flags & ~128 /* ContainsThis */; + node.flags = seenThisKeyword ? node.flags | 256 /* ContainsThis */ : node.flags & ~256 /* ContainsThis */; } else { bindChildren(node); } @@ -41833,8 +42181,8 @@ ${lanes.join("\n")} blockScopeContainer = savedBlockScopeContainer; } function bindEachFunctionsFirst(nodes) { - bindEach(nodes, (n) => n.kind === 261 /* FunctionDeclaration */ ? bind(n) : void 0); - bindEach(nodes, (n) => n.kind !== 261 /* FunctionDeclaration */ ? bind(n) : void 0); + bindEach(nodes, (n) => n.kind === 262 /* FunctionDeclaration */ ? bind(n) : void 0); + bindEach(nodes, (n) => n.kind !== 262 /* FunctionDeclaration */ ? bind(n) : void 0); } function bindEach(nodes, bindFunction = bind) { if (nodes === void 0) { @@ -41854,59 +42202,59 @@ ${lanes.join("\n")} inAssignmentPattern = saveInAssignmentPattern; return; } - if (node.kind >= 242 /* FirstStatement */ && node.kind <= 258 /* LastStatement */ && !options.allowUnreachableCode) { + if (node.kind >= 243 /* FirstStatement */ && node.kind <= 259 /* LastStatement */ && !options.allowUnreachableCode) { node.flowNode = currentFlow; } switch (node.kind) { - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: bindWhileStatement(node); break; - case 245 /* DoStatement */: + case 246 /* DoStatement */: bindDoStatement(node); break; - case 247 /* ForStatement */: + case 248 /* ForStatement */: bindForStatement(node); break; - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: bindForInOrForOfStatement(node); break; - case 244 /* IfStatement */: + case 245 /* IfStatement */: bindIfStatement(node); break; - case 252 /* ReturnStatement */: - case 256 /* ThrowStatement */: + case 253 /* ReturnStatement */: + case 257 /* ThrowStatement */: bindReturnOrThrow(node); break; - case 251 /* BreakStatement */: - case 250 /* ContinueStatement */: + case 252 /* BreakStatement */: + case 251 /* ContinueStatement */: bindBreakOrContinueStatement(node); break; - case 257 /* TryStatement */: + case 258 /* TryStatement */: bindTryStatement(node); break; - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: bindSwitchStatement(node); break; - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: bindCaseBlock(node); break; - case 295 /* CaseClause */: + case 296 /* CaseClause */: bindCaseClause(node); break; - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: bindExpressionStatement(node); break; - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: bindLabeledStatement(node); break; - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: bindPrefixUnaryExpressionFlow(node); break; - case 224 /* PostfixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: bindPostfixUnaryExpressionFlow(node); break; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: if (isDestructuringAssignment(node)) { inAssignmentPattern = saveInAssignmentPattern; bindDestructuringAssignmentFlow(node); @@ -41914,49 +42262,49 @@ ${lanes.join("\n")} } bindBinaryExpressionFlow(node); break; - case 219 /* DeleteExpression */: + case 220 /* DeleteExpression */: bindDeleteExpressionFlow(node); break; - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: bindConditionalExpressionFlow(node); break; - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: bindVariableDeclarationFlow(node); break; - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: bindAccessExpressionFlow(node); break; - case 212 /* CallExpression */: + case 213 /* CallExpression */: bindCallExpressionFlow(node); break; - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: bindNonNullExpressionFlow(node); break; - case 352 /* JSDocTypedefTag */: - case 344 /* JSDocCallbackTag */: - case 346 /* JSDocEnumTag */: + case 353 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: + case 347 /* JSDocEnumTag */: bindJSDocTypeAlias(node); break; - case 311 /* SourceFile */: { + case 312 /* SourceFile */: { bindEachFunctionsFirst(node.statements); bind(node.endOfFileToken); break; } - case 240 /* Block */: - case 267 /* ModuleBlock */: + case 241 /* Block */: + case 268 /* ModuleBlock */: bindEachFunctionsFirst(node.statements); break; - case 207 /* BindingElement */: + case 208 /* BindingElement */: bindBindingElementFlow(node); break; - case 168 /* Parameter */: + case 169 /* Parameter */: bindParameterFlow(node); break; - case 209 /* ObjectLiteralExpression */: - case 208 /* ArrayLiteralExpression */: - case 302 /* PropertyAssignment */: - case 229 /* SpreadElement */: + case 210 /* ObjectLiteralExpression */: + case 209 /* ArrayLiteralExpression */: + case 303 /* PropertyAssignment */: + case 230 /* SpreadElement */: inAssignmentPattern = saveInAssignmentPattern; default: bindEachChild(node); @@ -41970,19 +42318,19 @@ ${lanes.join("\n")} case 80 /* Identifier */: case 81 /* PrivateIdentifier */: case 110 /* ThisKeyword */: - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return containsNarrowableReference(expr); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return hasNarrowableArgument(expr); - case 216 /* ParenthesizedExpression */: - case 234 /* NonNullExpression */: + case 217 /* ParenthesizedExpression */: + case 235 /* NonNullExpression */: return isNarrowingExpression(expr.expression); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return isNarrowingBinaryExpression(expr); - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: return expr.operator === 54 /* ExclamationToken */ && isNarrowingExpression(expr.operand); - case 220 /* TypeOfExpression */: + case 221 /* TypeOfExpression */: return isNarrowingExpression(expr.expression); } return false; @@ -42001,7 +42349,7 @@ ${lanes.join("\n")} } } } - if (expr.expression.kind === 210 /* PropertyAccessExpression */ && containsNarrowableReference(expr.expression.expression)) { + if (expr.expression.kind === 211 /* PropertyAccessExpression */ && containsNarrowableReference(expr.expression.expression)) { return true; } return false; @@ -42032,9 +42380,9 @@ ${lanes.join("\n")} } function isNarrowableOperand(expr) { switch (expr.kind) { - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return isNarrowableOperand(expr.expression); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: switch (expr.operatorToken.kind) { case 64 /* EqualsToken */: return isNarrowableOperand(expr.left); @@ -42107,21 +42455,21 @@ ${lanes.join("\n")} function isStatementCondition(node) { const parent3 = node.parent; switch (parent3.kind) { - case 244 /* IfStatement */: - case 246 /* WhileStatement */: - case 245 /* DoStatement */: + case 245 /* IfStatement */: + case 247 /* WhileStatement */: + case 246 /* DoStatement */: return parent3.expression === node; - case 247 /* ForStatement */: - case 226 /* ConditionalExpression */: + case 248 /* ForStatement */: + case 227 /* ConditionalExpression */: return parent3.condition === node; } return false; } function isLogicalExpression(node) { while (true) { - if (node.kind === 216 /* ParenthesizedExpression */) { + if (node.kind === 217 /* ParenthesizedExpression */) { node = node.expression; - } else if (node.kind === 223 /* PrefixUnaryExpression */ && node.operator === 54 /* ExclamationToken */) { + } else if (node.kind === 224 /* PrefixUnaryExpression */ && node.operator === 54 /* ExclamationToken */) { node = node.operand; } else { return isLogicalOrCoalescingBinaryExpression(node); @@ -42164,7 +42512,7 @@ ${lanes.join("\n")} } function setContinueTarget(node, target) { let label = activeLabelList; - while (label && node.parent.kind === 255 /* LabeledStatement */) { + while (label && node.parent.kind === 256 /* LabeledStatement */) { label.continueTarget = target; label = label.next; node = node.parent; @@ -42215,12 +42563,12 @@ ${lanes.join("\n")} bind(node.expression); addAntecedent(preLoopLabel, currentFlow); currentFlow = preLoopLabel; - if (node.kind === 249 /* ForOfStatement */) { + if (node.kind === 250 /* ForOfStatement */) { bind(node.awaitModifier); } addAntecedent(postLoopLabel, currentFlow); bind(node.initializer); - if (node.initializer.kind !== 260 /* VariableDeclarationList */) { + if (node.initializer.kind !== 261 /* VariableDeclarationList */) { bindAssignmentTargetFlow(node.initializer); } bindIterativeStatement(node.statement, postLoopLabel, preLoopLabel); @@ -42242,7 +42590,7 @@ ${lanes.join("\n")} } function bindReturnOrThrow(node) { bind(node.expression); - if (node.kind === 252 /* ReturnStatement */) { + if (node.kind === 253 /* ReturnStatement */) { hasExplicitReturn = true; if (currentReturnTarget) { addAntecedent(currentReturnTarget, currentFlow); @@ -42259,7 +42607,7 @@ ${lanes.join("\n")} return void 0; } function bindBreakOrContinueFlow(node, breakTarget, continueTarget) { - const flowLabel = node.kind === 251 /* BreakStatement */ ? breakTarget : continueTarget; + const flowLabel = node.kind === 252 /* BreakStatement */ ? breakTarget : continueTarget; if (flowLabel) { addAntecedent(flowLabel, currentFlow); currentFlow = unreachableFlow; @@ -42329,7 +42677,7 @@ ${lanes.join("\n")} preSwitchCaseFlow = currentFlow; bind(node.caseBlock); addAntecedent(postSwitchLabel, currentFlow); - const hasDefault = forEach(node.caseBlock.clauses, (c) => c.kind === 296 /* DefaultClause */); + const hasDefault = forEach(node.caseBlock.clauses, (c) => c.kind === 297 /* DefaultClause */); node.possiblyExhaustive = !hasDefault && !postSwitchLabel.antecedents; if (!hasDefault) { addAntecedent(postSwitchLabel, createFlowSwitchClause(preSwitchCaseFlow, node, 0, 0)); @@ -42372,7 +42720,7 @@ ${lanes.join("\n")} maybeBindExpressionFlowIfCall(node.expression); } function maybeBindExpressionFlowIfCall(node) { - if (node.kind === 212 /* CallExpression */) { + if (node.kind === 213 /* CallExpression */) { const call = node; if (call.expression.kind !== 108 /* SuperKeyword */ && isDottedName(call.expression)) { currentFlow = createFlowCall(currentFlow, call); @@ -42398,7 +42746,7 @@ ${lanes.join("\n")} currentFlow = finishFlowLabel(postStatementLabel); } function bindDestructuringTargetFlow(node) { - if (node.kind === 225 /* BinaryExpression */ && node.operatorToken.kind === 64 /* EqualsToken */) { + if (node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 64 /* EqualsToken */) { bindAssignmentTargetFlow(node.left); } else { bindAssignmentTargetFlow(node); @@ -42407,21 +42755,21 @@ ${lanes.join("\n")} function bindAssignmentTargetFlow(node) { if (isNarrowableReference(node)) { currentFlow = createFlowMutation(16 /* Assignment */, currentFlow, node); - } else if (node.kind === 208 /* ArrayLiteralExpression */) { + } else if (node.kind === 209 /* ArrayLiteralExpression */) { for (const e of node.elements) { - if (e.kind === 229 /* SpreadElement */) { + if (e.kind === 230 /* SpreadElement */) { bindAssignmentTargetFlow(e.expression); } else { bindDestructuringTargetFlow(e); } } - } else if (node.kind === 209 /* ObjectLiteralExpression */) { + } else if (node.kind === 210 /* ObjectLiteralExpression */) { for (const p of node.properties) { - if (p.kind === 302 /* PropertyAssignment */) { + if (p.kind === 303 /* PropertyAssignment */) { bindDestructuringTargetFlow(p.initializer); - } else if (p.kind === 303 /* ShorthandPropertyAssignment */) { + } else if (p.kind === 304 /* ShorthandPropertyAssignment */) { bindAssignmentTargetFlow(p.name); - } else if (p.kind === 304 /* SpreadAssignment */) { + } else if (p.kind === 305 /* SpreadAssignment */) { bindAssignmentTargetFlow(p.expression); } } @@ -42552,7 +42900,7 @@ ${lanes.join("\n")} const operator = node.operatorToken.kind; if (isAssignmentOperator(operator) && !isAssignmentTarget(node)) { bindAssignmentTargetFlow(node.left); - if (operator === 64 /* EqualsToken */ && node.left.kind === 211 /* ElementAccessExpression */) { + if (operator === 64 /* EqualsToken */ && node.left.kind === 212 /* ElementAccessExpression */) { const elementAccess = node.left; if (isNarrowableOperand(elementAccess.expression)) { currentFlow = createFlowMutation(256 /* ArrayMutation */, currentFlow, node); @@ -42580,7 +42928,7 @@ ${lanes.join("\n")} } function bindDeleteExpressionFlow(node) { bindEachChild(node); - if (node.expression.kind === 210 /* PropertyAccessExpression */) { + if (node.expression.kind === 211 /* PropertyAccessExpression */) { bindAssignmentTargetFlow(node.expression); } } @@ -42645,7 +42993,7 @@ ${lanes.join("\n")} } function bindJSDocTypeAlias(node) { bind(node.tagName); - if (node.kind !== 346 /* JSDocEnumTag */ && node.fullName) { + if (node.kind !== 347 /* JSDocEnumTag */ && node.fullName) { setParent(node.fullName, node); setParentRecursive( node.fullName, @@ -42660,7 +43008,7 @@ ${lanes.join("\n")} function bindJSDocClassTag(node) { bindEachChild(node); const host = getHostSignatureFromJSDoc(node); - if (host && host.kind !== 173 /* MethodDeclaration */) { + if (host && host.kind !== 174 /* MethodDeclaration */) { addDeclarationToSymbol(host.symbol, host, 32 /* Class */); } } @@ -42673,15 +43021,15 @@ ${lanes.join("\n")} } function bindOptionalChainRest(node) { switch (node.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: bind(node.questionDotToken); bind(node.name); break; - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: bind(node.questionDotToken); bind(node.argumentExpression); break; - case 212 /* CallExpression */: + case 213 /* CallExpression */: bind(node.questionDotToken); bindEach(node.typeArguments); bindEach(node.arguments); @@ -42728,7 +43076,7 @@ ${lanes.join("\n")} bindOptionalChainFlow(node); } else { const expr = skipParentheses(node.expression); - if (expr.kind === 217 /* FunctionExpression */ || expr.kind === 218 /* ArrowFunction */) { + if (expr.kind === 218 /* FunctionExpression */ || expr.kind === 219 /* ArrowFunction */) { bindEach(node.typeArguments); bindEach(node.arguments); bind(node.expression); @@ -42739,7 +43087,7 @@ ${lanes.join("\n")} } } } - if (node.expression.kind === 210 /* PropertyAccessExpression */) { + if (node.expression.kind === 211 /* PropertyAccessExpression */) { const propertyAccess = node.expression; if (isIdentifier(propertyAccess.name) && isNarrowableOperand(propertyAccess.expression) && isPushOrUnshiftIdentifier(propertyAccess.name)) { currentFlow = createFlowMutation(256 /* ArrayMutation */, currentFlow, node); @@ -42754,39 +43102,39 @@ ${lanes.join("\n")} } function declareSymbolAndAddToSymbolTable(node, symbolFlags, symbolExcludes) { switch (container.kind) { - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return declareModuleMember(node, symbolFlags, symbolExcludes); - case 311 /* SourceFile */: + case 312 /* SourceFile */: return declareSourceFileMember(node, symbolFlags, symbolExcludes); - case 230 /* ClassExpression */: - case 262 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 263 /* ClassDeclaration */: return declareClassMember(node, symbolFlags, symbolExcludes); - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return declareSymbol(container.symbol.exports, container.symbol, node, symbolFlags, symbolExcludes); - case 186 /* TypeLiteral */: - case 328 /* JSDocTypeLiteral */: - case 209 /* ObjectLiteralExpression */: - case 263 /* InterfaceDeclaration */: - case 291 /* JsxAttributes */: + case 187 /* TypeLiteral */: + case 329 /* JSDocTypeLiteral */: + case 210 /* ObjectLiteralExpression */: + case 264 /* InterfaceDeclaration */: + case 292 /* JsxAttributes */: return declareSymbol(container.symbol.members, container.symbol, node, symbolFlags, symbolExcludes); - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 329 /* JSDocSignature */: - case 180 /* IndexSignature */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 323 /* JSDocFunctionType */: - case 174 /* ClassStaticBlockDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 199 /* MappedType */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 330 /* JSDocSignature */: + case 181 /* IndexSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 324 /* JSDocFunctionType */: + case 175 /* ClassStaticBlockDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 200 /* MappedType */: if (container.locals) Debug.assertNode(container, canHaveLocals); return declareSymbol( @@ -42817,10 +43165,10 @@ ${lanes.join("\n")} return !!body && body.statements.some((s) => isExportDeclaration(s) || isExportAssignment(s)); } function setExportContextFlag(node) { - if (node.flags & 16777216 /* Ambient */ && !hasExportDeclarations(node)) { - node.flags |= 64 /* ExportContext */; + if (node.flags & 33554432 /* Ambient */ && !hasExportDeclarations(node)) { + node.flags |= 128 /* ExportContext */; } else { - node.flags &= ~64 /* ExportContext */; + node.flags &= ~128 /* ExportContext */; } } function bindModuleDeclaration(node) { @@ -42888,10 +43236,10 @@ ${lanes.join("\n")} } function bindBlockScopedDeclaration(node, symbolFlags, symbolExcludes) { switch (blockScopeContainer.kind) { - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: declareModuleMember(node, symbolFlags, symbolExcludes); break; - case 311 /* SourceFile */: + case 312 /* SourceFile */: if (isExternalOrCommonJsModule(container)) { declareModuleMember(node, symbolFlags, symbolExcludes); break; @@ -42923,7 +43271,7 @@ ${lanes.join("\n")} const saveCurrentFlow = currentFlow; for (const typeAlias of delayedTypeAliases) { const host = typeAlias.parent.parent; - container = findAncestor(host.parent, (n) => !!(getContainerFlags(n) & 1 /* IsContainer */)) || file; + container = getEnclosingContainer(host) || file; blockScopeContainer = getEnclosingBlockScopeContainer(host) || file; currentFlow = initFlowNode({ flags: 2 /* Start */ }); parent2 = typeAlias; @@ -42981,7 +43329,7 @@ ${lanes.join("\n")} currentFlow = saveCurrentFlow; } function checkContextualIdentifier(node) { - if (!file.parseDiagnostics.length && !(node.flags & 16777216 /* Ambient */) && !(node.flags & 8388608 /* JSDoc */) && !isIdentifierName(node)) { + if (!file.parseDiagnostics.length && !(node.flags & 33554432 /* Ambient */) && !(node.flags & 16777216 /* JSDoc */) && !isIdentifierName(node)) { const originalKeywordKind = identifierToKeywordKind(node); if (originalKeywordKind === void 0) { return; @@ -42999,14 +43347,14 @@ ${lanes.join("\n")} Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module, declarationNameToString(node) )); - } else if (node.flags & 32768 /* AwaitContext */) { + } else if (node.flags & 65536 /* AwaitContext */) { file.bindDiagnostics.push(createDiagnosticForNode2( node, Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here, declarationNameToString(node) )); } - } else if (originalKeywordKind === 127 /* YieldKeyword */ && node.flags & 8192 /* YieldContext */) { + } else if (originalKeywordKind === 127 /* YieldKeyword */ && node.flags & 16384 /* YieldContext */) { file.bindDiagnostics.push(createDiagnosticForNode2( node, Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here, @@ -43094,7 +43442,7 @@ ${lanes.join("\n")} } function checkStrictModeFunctionDeclaration(node) { if (languageVersion < 2 /* ES2015 */) { - if (blockScopeContainer.kind !== 311 /* SourceFile */ && blockScopeContainer.kind !== 266 /* ModuleDeclaration */ && !isFunctionLikeOrClassStaticBlockDeclaration(blockScopeContainer)) { + if (blockScopeContainer.kind !== 312 /* SourceFile */ && blockScopeContainer.kind !== 267 /* ModuleDeclaration */ && !isFunctionLikeOrClassStaticBlockDeclaration(blockScopeContainer)) { const errorSpan = getErrorSpanForNode(file, node); file.bindDiagnostics.push(createFileDiagnostic( file, @@ -43156,7 +43504,7 @@ ${lanes.join("\n")} node.tracingPath = file.path; const saveInStrictMode = inStrictMode; bindWorker(node); - if (node.kind > 164 /* LastToken */) { + if (node.kind > 165 /* LastToken */) { const saveParent = parent2; parent2 = node; const containerFlags = getContainerFlags(node); @@ -43213,7 +43561,7 @@ ${lanes.join("\n")} function bindWorker(node) { switch (node.kind) { case 80 /* Identifier */: - if (node.flags & 2048 /* IdentifierIsInJSDocNamespace */) { + if (node.flags & 4096 /* IdentifierIsInJSDocNamespace */) { let parentNode = node.parent; while (parentNode && !isJSDocTypeAlias(parentNode)) { parentNode = parentNode.parent; @@ -43222,23 +43570,23 @@ ${lanes.join("\n")} break; } case 110 /* ThisKeyword */: - if (currentFlow && (isExpression(node) || parent2.kind === 303 /* ShorthandPropertyAssignment */)) { + if (currentFlow && (isExpression(node) || parent2.kind === 304 /* ShorthandPropertyAssignment */)) { node.flowNode = currentFlow; } return checkContextualIdentifier(node); - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: if (currentFlow && isPartOfTypeQuery(node)) { node.flowNode = currentFlow; } break; - case 235 /* MetaProperty */: + case 236 /* MetaProperty */: case 108 /* SuperKeyword */: node.flowNode = currentFlow; break; case 81 /* PrivateIdentifier */: return checkPrivateIdentifier(node); - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: const expr = node; if (currentFlow && isNarrowableReference(expr)) { expr.flowNode = currentFlow; @@ -43257,7 +43605,7 @@ ${lanes.join("\n")} ); } break; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: const specialKind = getAssignmentDeclarationKind(node); switch (specialKind) { case 1 /* ExportsProperty */: @@ -43292,81 +43640,81 @@ ${lanes.join("\n")} Debug.fail("Unknown binary expression special property assignment kind"); } return checkStrictModeBinaryExpression(node); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return checkStrictModeCatchClause(node); - case 219 /* DeleteExpression */: + case 220 /* DeleteExpression */: return checkStrictModeDeleteExpression(node); - case 224 /* PostfixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return checkStrictModePostfixUnaryExpression(node); - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: return checkStrictModePrefixUnaryExpression(node); - case 253 /* WithStatement */: + case 254 /* WithStatement */: return checkStrictModeWithStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return checkStrictModeLabeledStatement(node); - case 196 /* ThisType */: + case 197 /* ThisType */: seenThisKeyword = true; return; - case 181 /* TypePredicate */: + case 182 /* TypePredicate */: break; - case 167 /* TypeParameter */: + case 168 /* TypeParameter */: return bindTypeParameter(node); - case 168 /* Parameter */: + case 169 /* Parameter */: return bindParameter(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return bindVariableDeclarationOrBindingElement(node); - case 207 /* BindingElement */: + case 208 /* BindingElement */: node.flowNode = currentFlow; return bindVariableDeclarationOrBindingElement(node); - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: return bindPropertyWorker(node); - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return bindPropertyOrMethodOrAccessor(node, 4 /* Property */, 0 /* PropertyExcludes */); - case 305 /* EnumMember */: + case 306 /* EnumMember */: return bindPropertyOrMethodOrAccessor(node, 8 /* EnumMember */, 900095 /* EnumMemberExcludes */); - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 180 /* IndexSignature */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 181 /* IndexSignature */: return declareSymbolAndAddToSymbolTable(node, 131072 /* Signature */, 0 /* None */); - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: return bindPropertyOrMethodOrAccessor( node, 8192 /* Method */ | (node.questionToken ? 16777216 /* Optional */ : 0 /* None */), isObjectLiteralMethod(node) ? 0 /* PropertyExcludes */ : 103359 /* MethodExcludes */ ); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return bindFunctionDeclaration(node); - case 175 /* Constructor */: + case 176 /* Constructor */: return declareSymbolAndAddToSymbolTable( node, 16384 /* Constructor */, /*symbolExcludes:*/ 0 /* None */ ); - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return bindPropertyOrMethodOrAccessor(node, 32768 /* GetAccessor */, 46015 /* GetAccessorExcludes */); - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return bindPropertyOrMethodOrAccessor(node, 65536 /* SetAccessor */, 78783 /* SetAccessorExcludes */); - case 183 /* FunctionType */: - case 323 /* JSDocFunctionType */: - case 329 /* JSDocSignature */: - case 184 /* ConstructorType */: + case 184 /* FunctionType */: + case 324 /* JSDocFunctionType */: + case 330 /* JSDocSignature */: + case 185 /* ConstructorType */: return bindFunctionOrConstructorType(node); - case 186 /* TypeLiteral */: - case 328 /* JSDocTypeLiteral */: - case 199 /* MappedType */: + case 187 /* TypeLiteral */: + case 329 /* JSDocTypeLiteral */: + case 200 /* MappedType */: return bindAnonymousTypeWorker(node); - case 338 /* JSDocClassTag */: + case 339 /* JSDocClassTag */: return bindJSDocClassTag(node); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return bindObjectLiteralExpression(node); - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return bindFunctionExpression(node); - case 212 /* CallExpression */: + case 213 /* CallExpression */: const assignmentKind = getAssignmentDeclarationKind(node); switch (assignmentKind) { case 7 /* ObjectDefinePropertyValue */: @@ -43384,60 +43732,60 @@ ${lanes.join("\n")} bindCallExpression(node); } break; - case 230 /* ClassExpression */: - case 262 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 263 /* ClassDeclaration */: inStrictMode = true; return bindClassLikeDeclaration(node); - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: return bindBlockScopedDeclaration(node, 64 /* Interface */, 788872 /* InterfaceExcludes */); - case 264 /* TypeAliasDeclaration */: + case 265 /* TypeAliasDeclaration */: return bindBlockScopedDeclaration(node, 524288 /* TypeAlias */, 788968 /* TypeAliasExcludes */); - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return bindEnumDeclaration(node); - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return bindModuleDeclaration(node); - case 291 /* JsxAttributes */: + case 292 /* JsxAttributes */: return bindJsxAttributes(node); - case 290 /* JsxAttribute */: + case 291 /* JsxAttribute */: return bindJsxAttribute(node, 4 /* Property */, 0 /* PropertyExcludes */); - case 270 /* ImportEqualsDeclaration */: - case 273 /* NamespaceImport */: - case 275 /* ImportSpecifier */: - case 280 /* ExportSpecifier */: + case 271 /* ImportEqualsDeclaration */: + case 274 /* NamespaceImport */: + case 276 /* ImportSpecifier */: + case 281 /* ExportSpecifier */: return declareSymbolAndAddToSymbolTable(node, 2097152 /* Alias */, 2097152 /* AliasExcludes */); - case 269 /* NamespaceExportDeclaration */: + case 270 /* NamespaceExportDeclaration */: return bindNamespaceExportDeclaration(node); - case 272 /* ImportClause */: + case 273 /* ImportClause */: return bindImportClause(node); - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return bindExportDeclaration(node); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return bindExportAssignment(node); - case 311 /* SourceFile */: + case 312 /* SourceFile */: updateStrictModeStatementList(node.statements); return bindSourceFileIfExternalModule(); - case 240 /* Block */: + case 241 /* Block */: if (!isFunctionLikeOrClassStaticBlockDeclaration(node.parent)) { return; } - case 267 /* ModuleBlock */: + case 268 /* ModuleBlock */: return updateStrictModeStatementList(node.statements); - case 347 /* JSDocParameterTag */: - if (node.parent.kind === 329 /* JSDocSignature */) { + case 348 /* JSDocParameterTag */: + if (node.parent.kind === 330 /* JSDocSignature */) { return bindParameter(node); } - if (node.parent.kind !== 328 /* JSDocTypeLiteral */) { + if (node.parent.kind !== 329 /* JSDocTypeLiteral */) { break; } - case 354 /* JSDocPropertyTag */: + case 355 /* JSDocPropertyTag */: const propTag = node; - const flags = propTag.isBracketed || propTag.typeExpression && propTag.typeExpression.type.kind === 322 /* JSDocOptionalType */ ? 4 /* Property */ | 16777216 /* Optional */ : 4 /* Property */; + const flags = propTag.isBracketed || propTag.typeExpression && propTag.typeExpression.type.kind === 323 /* JSDocOptionalType */ ? 4 /* Property */ | 16777216 /* Optional */ : 4 /* Property */; return declareSymbolAndAddToSymbolTable(propTag, flags, 0 /* PropertyExcludes */); - case 352 /* JSDocTypedefTag */: - case 344 /* JSDocCallbackTag */: - case 346 /* JSDocEnumTag */: + case 353 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: + case 347 /* JSDocEnumTag */: return (delayedTypeAliases || (delayedTypeAliases = [])).push(node); - case 345 /* JSDocOverloadTag */: + case 346 /* JSDocOverloadTag */: return bind(node.typeExpression); } } @@ -43589,8 +43937,8 @@ ${lanes.join("\n")} false ); switch (thisContainer.kind) { - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: let constructorSymbol = thisContainer.symbol; if (isBinaryExpression(thisContainer.parent) && thisContainer.parent.operatorToken.kind === 64 /* EqualsToken */) { const l = thisContainer.parent.left; @@ -43608,12 +43956,12 @@ ${lanes.join("\n")} addDeclarationToSymbol(constructorSymbol, constructorSymbol.valueDeclaration, 32 /* Class */); } break; - case 175 /* Constructor */: - case 171 /* PropertyDeclaration */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 174 /* ClassStaticBlockDeclaration */: + case 176 /* Constructor */: + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 175 /* ClassStaticBlockDeclaration */: const containingClass = thisContainer.parent; const symbolTable = isStatic(thisContainer) ? containingClass.symbol.exports : containingClass.symbol.members; if (hasDynamicName(node)) { @@ -43630,7 +43978,7 @@ ${lanes.join("\n")} ); } break; - case 311 /* SourceFile */: + case 312 /* SourceFile */: if (hasDynamicName(node)) { break; } else if (thisContainer.commonJsModuleIndicator) { @@ -43639,7 +43987,7 @@ ${lanes.join("\n")} declareSymbolAndAddToSymbolTable(node, 1 /* FunctionScopedVariable */, 111550 /* FunctionScopedVariableExcludes */); } break; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: break; default: Debug.failBadSyntaxKind(thisContainer); @@ -43667,7 +44015,7 @@ ${lanes.join("\n")} function bindSpecialPropertyDeclaration(node) { if (node.expression.kind === 110 /* ThisKeyword */) { bindThisPropertyAssignment(node); - } else if (isBindableStaticAccessExpression(node) && node.parent.parent.kind === 311 /* SourceFile */) { + } else if (isBindableStaticAccessExpression(node) && node.parent.parent.kind === 312 /* SourceFile */) { if (isPrototypeAccess(node.expression)) { bindPrototypePropertyAssignment(node, node.parent); } else { @@ -43716,7 +44064,7 @@ ${lanes.join("\n")} } function bindObjectDefinePropertyAssignment(node) { let namespaceSymbol = lookupSymbolForPropertyAccess(node.arguments[0]); - const isToplevel = node.parent.parent.kind === 311 /* SourceFile */; + const isToplevel = node.parent.parent.kind === 312 /* SourceFile */; namespaceSymbol = bindPotentiallyMissingNamespaces( namespaceSymbol, node.arguments[0], @@ -43830,7 +44178,7 @@ ${lanes.join("\n")} declareSymbol(symbolTable, namespaceSymbol, declaration, includes | 67108864 /* Assignment */, excludes & ~67108864 /* Assignment */); } function isTopLevelNamespaceAssignment(propertyAccess) { - return isBinaryExpression(propertyAccess.parent) ? getParentOfBinaryExpression(propertyAccess.parent).parent.kind === 311 /* SourceFile */ : propertyAccess.parent.parent.kind === 311 /* SourceFile */; + return isBinaryExpression(propertyAccess.parent) ? getParentOfBinaryExpression(propertyAccess.parent).parent.kind === 312 /* SourceFile */ : propertyAccess.parent.parent.kind === 312 /* SourceFile */; } function bindPropertyAssignment(name, propertyAccess, isPrototypeProperty, containerIsClass) { let namespaceSymbol = lookupSymbolForPropertyAccess(name, container) || lookupSymbolForPropertyAccess(name, blockScopeContainer); @@ -43892,7 +44240,7 @@ ${lanes.join("\n")} } } function bindClassLikeDeclaration(node) { - if (node.kind === 262 /* ClassDeclaration */) { + if (node.kind === 263 /* ClassDeclaration */) { bindBlockScopedDeclaration(node, 32 /* Class */, 899503 /* ClassExcludes */); } else { const bindingName = node.name ? node.name.escapedText : "__class" /* Class */; @@ -43921,7 +44269,7 @@ ${lanes.join("\n")} checkStrictModeEvalOrArguments(node, node.name); } if (!isBindingPattern(node.name)) { - const possibleVariableDecl = node.kind === 259 /* VariableDeclaration */ ? node : node.parent.parent; + const possibleVariableDecl = node.kind === 260 /* VariableDeclaration */ ? node : node.parent.parent; if (isInJSFile(node) && shouldResolveJsRequire(options) && isVariableDeclarationInitializedToBareOrAccessedRequire(possibleVariableDecl) && !getJSDocTypeTag(node) && !(getCombinedModifierFlags(node) & 1 /* Export */)) { declareSymbolAndAddToSymbolTable(node, 2097152 /* Alias */, 2097152 /* AliasExcludes */); } else if (isBlockOrCatchScoped(node)) { @@ -43934,10 +44282,10 @@ ${lanes.join("\n")} } } function bindParameter(node) { - if (node.kind === 347 /* JSDocParameterTag */ && container.kind !== 329 /* JSDocSignature */) { + if (node.kind === 348 /* JSDocParameterTag */ && container.kind !== 330 /* JSDocSignature */) { return; } - if (inStrictMode && !(node.flags & 16777216 /* Ambient */)) { + if (inStrictMode && !(node.flags & 33554432 /* Ambient */)) { checkStrictModeEvalOrArguments(node, node.name); } if (isBindingPattern(node.name)) { @@ -43951,9 +44299,9 @@ ${lanes.join("\n")} } } function bindFunctionDeclaration(node) { - if (!file.isDeclarationFile && !(node.flags & 16777216 /* Ambient */)) { + if (!file.isDeclarationFile && !(node.flags & 33554432 /* Ambient */)) { if (isAsyncFunction(node)) { - emitFlags |= 2048 /* HasAsyncFunctions */; + emitFlags |= 4096 /* HasAsyncFunctions */; } } checkStrictModeFunctionName(node); @@ -43965,9 +44313,9 @@ ${lanes.join("\n")} } } function bindFunctionExpression(node) { - if (!file.isDeclarationFile && !(node.flags & 16777216 /* Ambient */)) { + if (!file.isDeclarationFile && !(node.flags & 33554432 /* Ambient */)) { if (isAsyncFunction(node)) { - emitFlags |= 2048 /* HasAsyncFunctions */; + emitFlags |= 4096 /* HasAsyncFunctions */; } } if (currentFlow) { @@ -43978,8 +44326,8 @@ ${lanes.join("\n")} return bindAnonymousDeclaration(node, 16 /* Function */, bindingName); } function bindPropertyOrMethodOrAccessor(node, symbolFlags, symbolExcludes) { - if (!file.isDeclarationFile && !(node.flags & 16777216 /* Ambient */) && isAsyncFunction(node)) { - emitFlags |= 2048 /* HasAsyncFunctions */; + if (!file.isDeclarationFile && !(node.flags & 33554432 /* Ambient */) && isAsyncFunction(node)) { + emitFlags |= 4096 /* HasAsyncFunctions */; } if (currentFlow && isObjectLiteralOrClassExpressionMethodOrAccessor(node)) { node.flowNode = currentFlow; @@ -44007,7 +44355,7 @@ ${lanes.join("\n")} } else { declareSymbolAndAddToSymbolTable(node, 262144 /* TypeParameter */, 526824 /* TypeParameterExcludes */); } - } else if (node.parent.kind === 194 /* InferType */) { + } else if (node.parent.kind === 195 /* InferType */) { const container2 = getInferTypeContainer(node.parent); if (container2) { Debug.assertNode(container2, canHaveLocals); @@ -44038,14 +44386,14 @@ ${lanes.join("\n")} if (currentFlow === unreachableFlow) { const reportError = ( // report error on all statements except empty ones - isStatementButNotDeclaration(node) && node.kind !== 241 /* EmptyStatement */ || // report error on class declarations - node.kind === 262 /* ClassDeclaration */ || // report error on instantiated modules or const-enums only modules if preserveConstEnums is set - node.kind === 266 /* ModuleDeclaration */ && shouldReportErrorOnModuleDeclaration(node) + isStatementButNotDeclaration(node) && node.kind !== 242 /* EmptyStatement */ || // report error on class declarations + node.kind === 263 /* ClassDeclaration */ || // report error on instantiated modules or const-enums only modules if preserveConstEnums is set + node.kind === 267 /* ModuleDeclaration */ && shouldReportErrorOnModuleDeclaration(node) ); if (reportError) { currentFlow = reportedUnreachableFlow; if (!options.allowUnreachableCode) { - const isError = unreachableCodeIsError(options) && !(node.flags & 16777216 /* Ambient */) && (!isVariableStatement(node) || !!(getCombinedNodeFlags(node.declarationList) & 3 /* BlockScoped */) || node.declarationList.declarations.some((d) => !!d.initializer)); + const isError = unreachableCodeIsError(options) && !(node.flags & 33554432 /* Ambient */) && (!isVariableStatement(node) || !!(getCombinedNodeFlags(node.declarationList) & 7 /* BlockScoped */) || node.declarationList.declarations.some((d) => !!d.initializer)); eachUnreachableRange(node, (start, end) => errorOrSuggestionOnRange(isError, start, end, Diagnostics.Unreachable_code_detected)); } } @@ -44064,16 +44412,16 @@ ${lanes.join("\n")} } function isExecutableStatement(s) { return !isFunctionDeclaration(s) && !isPurelyTypeDeclaration(s) && !isEnumDeclaration(s) && // `var x;` may declare a variable used above - !(isVariableStatement(s) && !(getCombinedNodeFlags(s) & (1 /* Let */ | 2 /* Const */)) && s.declarationList.declarations.some((d) => !d.initializer)); + !(isVariableStatement(s) && !(getCombinedNodeFlags(s) & 7 /* BlockScoped */) && s.declarationList.declarations.some((d) => !d.initializer)); } function isPurelyTypeDeclaration(s) { switch (s.kind) { - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: return true; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return getModuleInstanceState(s) !== 1 /* Instantiated */; - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return hasSyntacticModifier(s, 2048 /* Const */); default: return false; @@ -44108,54 +44456,54 @@ ${lanes.join("\n")} } function getContainerFlags(node) { switch (node.kind) { - case 230 /* ClassExpression */: - case 262 /* ClassDeclaration */: - case 265 /* EnumDeclaration */: - case 209 /* ObjectLiteralExpression */: - case 186 /* TypeLiteral */: - case 328 /* JSDocTypeLiteral */: - case 291 /* JsxAttributes */: + case 231 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 266 /* EnumDeclaration */: + case 210 /* ObjectLiteralExpression */: + case 187 /* TypeLiteral */: + case 329 /* JSDocTypeLiteral */: + case 292 /* JsxAttributes */: return 1 /* IsContainer */; - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: return 1 /* IsContainer */ | 64 /* IsInterface */; - case 266 /* ModuleDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 199 /* MappedType */: - case 180 /* IndexSignature */: + case 267 /* ModuleDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 200 /* MappedType */: + case 181 /* IndexSignature */: return 1 /* IsContainer */ | 32 /* HasLocals */; - case 311 /* SourceFile */: + case 312 /* SourceFile */: return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */; - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 173 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: if (isObjectLiteralOrClassExpressionMethodOrAccessor(node)) { return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */ | 8 /* IsFunctionLike */ | 128 /* IsObjectLiteralOrClassExpressionMethodOrAccessor */; } - case 175 /* Constructor */: - case 261 /* FunctionDeclaration */: - case 172 /* MethodSignature */: - case 178 /* CallSignature */: - case 329 /* JSDocSignature */: - case 323 /* JSDocFunctionType */: - case 183 /* FunctionType */: - case 179 /* ConstructSignature */: - case 184 /* ConstructorType */: - case 174 /* ClassStaticBlockDeclaration */: + case 176 /* Constructor */: + case 262 /* FunctionDeclaration */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 330 /* JSDocSignature */: + case 324 /* JSDocFunctionType */: + case 184 /* FunctionType */: + case 180 /* ConstructSignature */: + case 185 /* ConstructorType */: + case 175 /* ClassStaticBlockDeclaration */: return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */ | 8 /* IsFunctionLike */; - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */ | 8 /* IsFunctionLike */ | 16 /* IsFunctionExpression */; - case 267 /* ModuleBlock */: + case 268 /* ModuleBlock */: return 4 /* IsControlFlowContainer */; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return node.initializer ? 4 /* IsControlFlowContainer */ : 0; - case 298 /* CatchClause */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 268 /* CaseBlock */: + case 299 /* CatchClause */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 269 /* CaseBlock */: return 2 /* IsBlockScopedContainer */ | 32 /* HasLocals */; - case 240 /* Block */: + case 241 /* Block */: return isFunctionLike(node.parent) || isClassStaticBlockDeclaration(node.parent) ? 0 /* None */ : 2 /* IsBlockScopedContainer */ | 32 /* HasLocals */; } return 0 /* None */; @@ -44173,7 +44521,7 @@ ${lanes.join("\n")} return (_d = (_c = container.symbol) == null ? void 0 : _c.exports) == null ? void 0 : _d.get(name); } } - var ModuleInstanceState, binder; + var ModuleInstanceState, ContainerFlags, binder; var init_binder = __esm({ "src/compiler/binder.ts"() { "use strict"; @@ -44185,6 +44533,18 @@ ${lanes.join("\n")} ModuleInstanceState2[ModuleInstanceState2["ConstEnumOnly"] = 2] = "ConstEnumOnly"; return ModuleInstanceState2; })(ModuleInstanceState || {}); + ContainerFlags = /* @__PURE__ */ ((ContainerFlags2) => { + ContainerFlags2[ContainerFlags2["None"] = 0] = "None"; + ContainerFlags2[ContainerFlags2["IsContainer"] = 1] = "IsContainer"; + ContainerFlags2[ContainerFlags2["IsBlockScopedContainer"] = 2] = "IsBlockScopedContainer"; + ContainerFlags2[ContainerFlags2["IsControlFlowContainer"] = 4] = "IsControlFlowContainer"; + ContainerFlags2[ContainerFlags2["IsFunctionLike"] = 8] = "IsFunctionLike"; + ContainerFlags2[ContainerFlags2["IsFunctionExpression"] = 16] = "IsFunctionExpression"; + ContainerFlags2[ContainerFlags2["HasLocals"] = 32] = "HasLocals"; + ContainerFlags2[ContainerFlags2["IsInterface"] = 64] = "IsInterface"; + ContainerFlags2[ContainerFlags2["IsObjectLiteralOrClassExpressionMethodOrAccessor"] = 128] = "IsObjectLiteralOrClassExpressionMethodOrAccessor"; + return ContainerFlags2; + })(ContainerFlags || {}); binder = /* @__PURE__ */ createBinder(); } }); @@ -44331,7 +44691,7 @@ ${lanes.join("\n")} symbol.exports.forEach(visitSymbol); } forEach(symbol.declarations, (d) => { - if (d.type && d.type.kind === 185 /* TypeQuery */) { + if (d.type && d.type.kind === 186 /* TypeQuery */) { const query = d.type; const entity = getResolvedSymbol(getFirstIdentifier2(query.exprName)); visitSymbol(entity); @@ -44746,7 +45106,7 @@ ${lanes.join("\n")} if (originalExportSymbol === d.symbol) return topNamespace.parent.parent; function getTopNamespace(namespaceDeclaration) { - while (namespaceDeclaration.flags & 4 /* NestedNamespace */) { + while (namespaceDeclaration.flags & 8 /* NestedNamespace */) { namespaceDeclaration = namespaceDeclaration.parent; } return namespaceDeclaration; @@ -44776,7 +45136,9 @@ ${lanes.join("\n")} for (const { ending, value } of candidates) { if (value.length >= prefix.length + suffix.length && startsWith(value, prefix) && endsWith(value, suffix) && validateEnding({ ending, value })) { const matchedStar = value.substring(prefix.length, value.length - suffix.length); - return pathIsRelative(matchedStar) ? void 0 : key.replace("*", matchedStar); + if (!pathIsRelative(matchedStar)) { + return key.replace("*", matchedStar); + } } } } else if (some(candidates, (c) => c.ending !== 0 /* Minimal */ && pattern === c.value) || some(candidates, (c) => c.ending === 0 /* Minimal */ && pattern === c.value && validateEnding(c))) { @@ -44848,7 +45210,7 @@ ${lanes.join("\n")} for (const key of getOwnKeys(exports)) { if (key === "default" || conditions.indexOf(key) >= 0 || isApplicableVersionedTypesKey(conditions, key)) { const subTarget = exports[key]; - const result = tryGetModuleNameFromExports(options, targetFilePath, packageDirectory, packageName, subTarget, conditions); + const result = tryGetModuleNameFromExports(options, targetFilePath, packageDirectory, packageName, subTarget, conditions, mode); if (result) { return result; } @@ -45163,6 +45525,7 @@ ${lanes.join("\n")} var moduleKind = getEmitModuleKind(compilerOptions); var legacyDecorators = !!compilerOptions.experimentalDecorators; var useDefineForClassFields = getUseDefineForClassFields(compilerOptions); + var emitStandardClassFields = getEmitStandardClassFields(compilerOptions); var allowSyntheticDefaultImports = getAllowSyntheticDefaultImports(compilerOptions); var strictNullChecks = getStrictOptionValue(compilerOptions, "strictNullChecks"); var strictFunctionTypes = getStrictOptionValue(compilerOptions, "strictFunctionTypes"); @@ -45190,6 +45553,10 @@ ${lanes.join("\n")} var isolatedModulesLikeFlagName = compilerOptions.verbatimModuleSyntax ? "verbatimModuleSyntax" : "isolatedModules"; var canCollectSymbolAliasAccessabilityData = !compilerOptions.verbatimModuleSyntax || !!compilerOptions.importsNotUsedAsValues; var apparentArgumentCount; + var lastGetCombinedNodeFlagsNode; + var lastGetCombinedNodeFlagsResult = 0 /* None */; + var lastGetCombinedModifierFlagsNode; + var lastGetCombinedModifierFlagsResult = 0 /* None */; const checker = { getNodeCount: () => reduceLeft(host.getSourceFiles(), (n, s) => n + s.nodeCount, 0), getIdentifierCount: () => reduceLeft(host.getSourceFiles(), (n, s) => n + s.identifierCount, 0), @@ -45249,7 +45616,7 @@ ${lanes.join("\n")} return node ? getTypeFromTypeNode(node) : errorType; }, getParameterType: getTypeAtPosition, - getParameterIdentifierNameAtPosition, + getParameterIdentifierInfoAtPosition, getPromisedTypeOfPromise, getAwaitedType: (type) => getAwaitedType(type), getReturnTypeOfSignature, @@ -45367,13 +45734,24 @@ ${lanes.join("\n")} getTypeOfPropertyOfContextualType, getFullyQualifiedName, getResolvedSignature: (node, candidatesOutArray, argumentCount) => getResolvedSignatureWorker(node, candidatesOutArray, argumentCount, 0 /* Normal */), - getResolvedSignatureForStringLiteralCompletions: (call, editingArgument, candidatesOutArray) => runWithInferenceBlockedFromSourceNode(editingArgument, () => getResolvedSignatureWorker( - call, - candidatesOutArray, - /*argumentCount*/ - void 0, - 32 /* IsForStringLiteralArgumentCompletions */ - )), + getResolvedSignatureForStringLiteralCompletions: (call, editingArgument, candidatesOutArray, checkMode = 32 /* IsForStringLiteralArgumentCompletions */) => { + if (checkMode & 32 /* IsForStringLiteralArgumentCompletions */) { + return runWithInferenceBlockedFromSourceNode(editingArgument, () => getResolvedSignatureWorker( + call, + candidatesOutArray, + /*argumentCount*/ + void 0, + checkMode & ~32 /* IsForStringLiteralArgumentCompletions */ + )); + } + return runWithoutResolvedSignatureCaching(editingArgument, () => getResolvedSignatureWorker( + call, + candidatesOutArray, + /*argumentCount*/ + void 0, + checkMode & ~32 /* IsForStringLiteralArgumentCompletions */ + )); + }, getResolvedSignatureForSignatureHelp: (node, candidatesOutArray, argumentCount) => runWithoutResolvedSignatureCaching(node, () => getResolvedSignatureWorker(node, candidatesOutArray, argumentCount, 16 /* IsForSignatureHelp */)), getExpandedParameters, hasEffectiveRestParameter, @@ -45547,7 +45925,7 @@ ${lanes.join("\n")} Debug.assert(!!(getNodeLinks(file).flags & 1 /* TypeChecked */)); diagnostics2 = addRange(diagnostics2, suggestionDiagnostics.getDiagnostics(file.fileName)); checkUnusedIdentifiers(getPotentiallyUnusedIdentifiers(file), (containingNode, kind, diag2) => { - if (!containsParseError(containingNode) && !unusedIsError(kind, !!(containingNode.flags & 16777216 /* Ambient */))) { + if (!containsParseError(containingNode) && !unusedIsError(kind, !!(containingNode.flags & 33554432 /* Ambient */))) { (diagnostics2 || (diagnostics2 = [])).push({ ...diag2, category: 2 /* Suggestion */ }); } }); @@ -45573,14 +45951,19 @@ ${lanes.join("\n")} typeHasCallOrConstructSignatures }; function runWithoutResolvedSignatureCaching(node, fn) { - const containingCall = findAncestor(node, isCallLikeExpression); - const containingCallResolvedSignature = containingCall && getNodeLinks(containingCall).resolvedSignature; - if (containingCall) { - getNodeLinks(containingCall).resolvedSignature = void 0; + const cachedSignatures = []; + while (node) { + if (isCallLikeExpression(node)) { + const nodeLinks2 = getNodeLinks(node); + const resolvedSignature = nodeLinks2.resolvedSignature; + cachedSignatures.push([nodeLinks2, resolvedSignature]); + nodeLinks2.resolvedSignature = void 0; + } + node = node.parent; } const result = fn(); - if (containingCall) { - getNodeLinks(containingCall).resolvedSignature = containingCallResolvedSignature; + for (const [nodeLinks2, resolvedSignature] of cachedSignatures) { + nodeLinks2.resolvedSignature = resolvedSignature; } return result; } @@ -45886,7 +46269,7 @@ ${lanes.join("\n")} }; var amalgamatedDuplicates; var reverseMappedCache = /* @__PURE__ */ new Map(); - var inInferTypeForHomomorphicMappedType = false; + var homomorphicMappedTypeInferenceStack = []; var ambientModulesCache; var patternAmbientModules; var patternAmbientModuleAugmentations; @@ -45927,6 +46310,8 @@ ${lanes.join("\n")} var deferredGlobalImportMetaType; var deferredGlobalImportMetaExpressionType; var deferredGlobalImportCallOptionsType; + var deferredGlobalDisposableType; + var deferredGlobalAsyncDisposableType; var deferredGlobalExtractSymbol; var deferredGlobalOmitSymbol; var deferredGlobalAwaitedSymbol; @@ -46098,14 +46483,14 @@ ${lanes.join("\n")} } } function errorSkippedOn(key, location, message, ...args) { - const diagnostic = error(location, message, ...args); + const diagnostic = error2(location, message, ...args); diagnostic.skippedOn = key; return diagnostic; } function createError(location, message, ...args) { return location ? createDiagnosticForNode(location, message, ...args) : createCompilerDiagnostic(message, ...args); } - function error(location, message, ...args) { + function error2(location, message, ...args) { const diagnostic = createError(location, message, ...args); diagnostics.add(diagnostic); return diagnostic; @@ -46129,7 +46514,7 @@ ${lanes.join("\n")} addErrorOrSuggestion(isError, "message" in message ? createDiagnosticForNode(location, message, ...args) : createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(location), location, message)); } function errorAndMaybeSuggestAwait(location, maybeMissingAwait, message, ...args) { - const diagnostic = error(location, message, ...args); + const diagnostic = error2(location, message, ...args); if (maybeMissingAwait) { const related = createDiagnosticForNode(location, Diagnostics.Did_you_forget_to_use_await); addRelatedInfo(diagnostic, related); @@ -46155,7 +46540,7 @@ ${lanes.join("\n")} return !!symbol.valueDeclaration && isDeprecatedDeclaration2(symbol.valueDeclaration) || length(symbol.declarations) && every(symbol.declarations, isDeprecatedDeclaration2); } function isDeprecatedDeclaration2(declaration) { - return !!(getCombinedNodeFlags(declaration) & 268435456 /* Deprecated */); + return !!(getCombinedNodeFlagsCached(declaration) & 536870912 /* Deprecated */); } function addDeprecatedSuggestion(location, declarations, deprecatedEntity) { const diagnostic = createDiagnosticForNode(location, Diagnostics._0_is_deprecated, deprecatedEntity); @@ -46275,7 +46660,7 @@ ${lanes.join("\n")} } } else if (target.flags & 1024 /* NamespaceModule */) { if (target !== globalThisSymbol) { - error( + error2( source.declarations && getNameOfDeclaration(source.declarations[0]), Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity, symbolToString(target) @@ -46369,7 +46754,7 @@ ${lanes.join("\n")} if (isGlobalScopeAugmentation(moduleAugmentation)) { mergeSymbolTable(globals, moduleAugmentation.symbol.exports); } else { - const moduleNotFoundError = !(moduleName.parent.parent.flags & 16777216 /* Ambient */) ? Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found : void 0; + const moduleNotFoundError = !(moduleName.parent.parent.flags & 33554432 /* Ambient */) ? Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found : void 0; let mainModule = resolveExternalModuleNameWorker( moduleName, moduleName, @@ -46405,7 +46790,7 @@ ${lanes.join("\n")} mergeSymbol(mainModule, moduleAugmentation.symbol); } } else { - error(moduleName, Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity, moduleName.text); + error2(moduleName, Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity, moduleName.text); } } } @@ -46433,7 +46818,7 @@ ${lanes.join("\n")} return nodeLinks[nodeId] || (nodeLinks[nodeId] = new NodeLinks()); } function isGlobalSourceFile(node) { - return node.kind === 311 /* SourceFile */ && !isExternalOrCommonJsModule(node); + return node.kind === 312 /* SourceFile */ && !isExternalOrCommonJsModule(node); } function getSymbol2(symbols, name, meaning) { if (meaning) { @@ -46444,7 +46829,7 @@ ${lanes.join("\n")} return symbol; } if (symbol.flags & 2097152 /* Alias */) { - const targetFlags = getAllSymbolFlags(symbol); + const targetFlags = getSymbolFlags(symbol); if (targetFlags & meaning) { return symbol; } @@ -46467,7 +46852,7 @@ ${lanes.join("\n")} const useFile = getSourceFileOfNode(usage); const declContainer = getEnclosingBlockScopeContainer(declaration); if (declarationFile !== useFile) { - if (moduleKind && (declarationFile.externalModuleIndicator || useFile.externalModuleIndicator) || !outFile(compilerOptions) || isInTypeQuery(usage) || declaration.flags & 16777216 /* Ambient */) { + if (moduleKind && (declarationFile.externalModuleIndicator || useFile.externalModuleIndicator) || !outFile(compilerOptions) || isInTypeQuery(usage) || declaration.flags & 33554432 /* Ambient */) { return true; } if (isUsedInFunctionOrInstanceProperty(usage, declaration)) { @@ -46477,13 +46862,13 @@ ${lanes.join("\n")} return sourceFiles.indexOf(declarationFile) <= sourceFiles.indexOf(useFile); } if (declaration.pos <= usage.pos && !(isPropertyDeclaration(declaration) && isThisProperty(usage.parent) && !declaration.initializer && !declaration.exclamationToken)) { - if (declaration.kind === 207 /* BindingElement */) { - const errorBindingElement = getAncestor(usage, 207 /* BindingElement */); + if (declaration.kind === 208 /* BindingElement */) { + const errorBindingElement = getAncestor(usage, 208 /* BindingElement */); if (errorBindingElement) { return findAncestor(errorBindingElement, isBindingElement) !== findAncestor(declaration, isBindingElement) || declaration.pos < errorBindingElement.pos; } - return isBlockScopedNameDeclaredBeforeUse(getAncestor(declaration, 259 /* VariableDeclaration */), usage); - } else if (declaration.kind === 259 /* VariableDeclaration */) { + return isBlockScopedNameDeclaredBeforeUse(getAncestor(declaration, 260 /* VariableDeclaration */), usage); + } else if (declaration.kind === 260 /* VariableDeclaration */) { return !isImmediatelyUsedInInitializerOfBlockScopedVariable(declaration, usage); } else if (isClassDeclaration(declaration)) { return !findAncestor(usage, (n) => isComputedPropertyName(n) && n.parent.parent === declaration); @@ -46495,21 +46880,21 @@ ${lanes.join("\n")} false ); } else if (isParameterPropertyDeclaration(declaration, declaration.parent)) { - return !(getEmitScriptTarget(compilerOptions) === 99 /* ESNext */ && useDefineForClassFields && getContainingClass(declaration) === getContainingClass(usage) && isUsedInFunctionOrInstanceProperty(usage, declaration)); + return !(emitStandardClassFields && getContainingClass(declaration) === getContainingClass(usage) && isUsedInFunctionOrInstanceProperty(usage, declaration)); } return true; } - if (usage.parent.kind === 280 /* ExportSpecifier */ || usage.parent.kind === 276 /* ExportAssignment */ && usage.parent.isExportEquals) { + if (usage.parent.kind === 281 /* ExportSpecifier */ || usage.parent.kind === 277 /* ExportAssignment */ && usage.parent.isExportEquals) { return true; } - if (usage.kind === 276 /* ExportAssignment */ && usage.isExportEquals) { + if (usage.kind === 277 /* ExportAssignment */ && usage.isExportEquals) { return true; } - if (!!(usage.flags & 8388608 /* JSDoc */) || isInTypeQuery(usage) || isInAmbientOrTypeNode(usage)) { + if (!!(usage.flags & 16777216 /* JSDoc */) || isInTypeQuery(usage) || isInAmbientOrTypeNode(usage)) { return true; } if (isUsedInFunctionOrInstanceProperty(usage, declaration)) { - if (getEmitScriptTarget(compilerOptions) >= 9 /* ES2022 */ && useDefineForClassFields && getContainingClass(declaration) && (isPropertyDeclaration(declaration) || isParameterPropertyDeclaration(declaration, declaration.parent))) { + if (emitStandardClassFields && getContainingClass(declaration) && (isPropertyDeclaration(declaration) || isParameterPropertyDeclaration(declaration, declaration.parent))) { return !isPropertyImmediatelyReferencedWithinDeclaration( declaration, usage, @@ -46523,9 +46908,9 @@ ${lanes.join("\n")} return false; function isImmediatelyUsedInInitializerOfBlockScopedVariable(declaration2, usage2) { switch (declaration2.parent.parent.kind) { - case 242 /* VariableStatement */: - case 247 /* ForStatement */: - case 249 /* ForOfStatement */: + case 243 /* VariableStatement */: + case 248 /* ForStatement */: + case 250 /* ForOfStatement */: if (isSameScopeDescendentOf(usage2, declaration2, declContainer)) { return true; } @@ -46550,7 +46935,7 @@ ${lanes.join("\n")} const initializerOfProperty = propertyDeclaration.initializer === current; if (initializerOfProperty) { if (isStatic(current.parent)) { - if (declaration2.kind === 173 /* MethodDeclaration */) { + if (declaration2.kind === 174 /* MethodDeclaration */) { return true; } if (isPropertyDeclaration(declaration2) && getContainingClass(usage2) === getContainingClass(declaration2)) { @@ -46564,7 +46949,7 @@ ${lanes.join("\n")} } } } else { - const isDeclarationInstanceProperty = declaration2.kind === 171 /* PropertyDeclaration */ && !isStatic(declaration2); + const isDeclarationInstanceProperty = declaration2.kind === 172 /* PropertyDeclaration */ && !isStatic(declaration2); if (!isDeclarationInstanceProperty || getContainingClass(usage2) !== getContainingClass(declaration2)) { return true; } @@ -46583,15 +46968,15 @@ ${lanes.join("\n")} return "quit"; } switch (node.kind) { - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return true; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return stopAtAnyPropertyDeclaration && (isPropertyDeclaration(declaration2) && node.parent === declaration2.parent || isParameterPropertyDeclaration(declaration2, declaration2.parent) && node.parent === declaration2.parent.parent) ? "quit" : true; - case 240 /* Block */: + case 241 /* Block */: switch (node.parent.kind) { - case 176 /* GetAccessor */: - case 173 /* MethodDeclaration */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 174 /* MethodDeclaration */: + case 178 /* SetAccessor */: return true; default: return false; @@ -46621,19 +47006,19 @@ ${lanes.join("\n")} } function requiresScopeChangeWorker(node) { switch (node.kind) { - case 218 /* ArrowFunction */: - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: - case 175 /* Constructor */: + case 219 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 176 /* Constructor */: return false; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 302 /* PropertyAssignment */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 303 /* PropertyAssignment */: return requiresScopeChangeWorker(node.name); - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: if (hasStaticModifier(node)) { - return target < 99 /* ESNext */ || !useDefineForClassFields; + return !emitStandardClassFields; } return requiresScopeChangeWorker(node.name); default: @@ -46672,7 +47057,7 @@ ${lanes.join("\n")} if (name === "const" && isConstAssertion(location)) { return void 0; } - if (isModuleDeclaration(location) && lastLocation && location.name === lastLocation) { + if (isModuleOrEnumDeclaration(location) && lastLocation && location.name === lastLocation) { lastLocation = location; location = location.parent; } @@ -46680,17 +47065,17 @@ ${lanes.join("\n")} if (result = lookup(location.locals, name, meaning)) { let useResult = true; if (isFunctionLike(location) && lastLocation && lastLocation !== location.body) { - if (meaning & result.flags & 788968 /* Type */ && lastLocation.kind !== 326 /* JSDoc */) { - useResult = result.flags & 262144 /* TypeParameter */ ? lastLocation === location.type || lastLocation.kind === 168 /* Parameter */ || lastLocation.kind === 347 /* JSDocParameterTag */ || lastLocation.kind === 348 /* JSDocReturnTag */ || lastLocation.kind === 167 /* TypeParameter */ : false; + if (meaning & result.flags & 788968 /* Type */ && lastLocation.kind !== 327 /* JSDoc */) { + useResult = result.flags & 262144 /* TypeParameter */ ? lastLocation === location.type || lastLocation.kind === 169 /* Parameter */ || lastLocation.kind === 348 /* JSDocParameterTag */ || lastLocation.kind === 349 /* JSDocReturnTag */ || lastLocation.kind === 168 /* TypeParameter */ : false; } if (meaning & result.flags & 3 /* Variable */) { if (useOuterVariableScopeInParameter(result, location, lastLocation)) { useResult = false; } else if (result.flags & 1 /* FunctionScopedVariable */) { - useResult = lastLocation.kind === 168 /* Parameter */ || lastLocation === location.type && !!findAncestor(result.valueDeclaration, isParameter); + useResult = lastLocation.kind === 169 /* Parameter */ || lastLocation === location.type && !!findAncestor(result.valueDeclaration, isParameter); } } - } else if (location.kind === 193 /* ConditionalType */) { + } else if (location.kind === 194 /* ConditionalType */) { useResult = lastLocation === location.trueType; } if (useResult) { @@ -46702,13 +47087,13 @@ ${lanes.join("\n")} } withinDeferredContext = withinDeferredContext || getIsDeferredContext(location, lastLocation); switch (location.kind) { - case 311 /* SourceFile */: + case 312 /* SourceFile */: if (!isExternalOrCommonJsModule(location)) break; isInExternalModule = true; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: const moduleExports = ((_a = getSymbolOfDeclaration(location)) == null ? void 0 : _a.exports) || emptySymbols; - if (location.kind === 311 /* SourceFile */ || isModuleDeclaration(location) && location.flags & 16777216 /* Ambient */ && !isGlobalScopeAugmentation(location)) { + if (location.kind === 312 /* SourceFile */ || isModuleDeclaration(location) && location.flags & 33554432 /* Ambient */ && !isGlobalScopeAugmentation(location)) { if (result = moduleExports.get("default" /* Default */)) { const localSymbol = getLocalSymbolForExportDefault(result); if (localSymbol && result.flags & meaning && localSymbol.escapedName === name) { @@ -46717,7 +47102,7 @@ ${lanes.join("\n")} result = void 0; } const moduleExport = moduleExports.get(name); - if (moduleExport && moduleExport.flags === 2097152 /* Alias */ && (getDeclarationOfKind(moduleExport, 280 /* ExportSpecifier */) || getDeclarationOfKind(moduleExport, 279 /* NamespaceExport */))) { + if (moduleExport && moduleExport.flags === 2097152 /* Alias */ && (getDeclarationOfKind(moduleExport, 281 /* ExportSpecifier */) || getDeclarationOfKind(moduleExport, 280 /* NamespaceExport */))) { break; } } @@ -46729,10 +47114,10 @@ ${lanes.join("\n")} } } break; - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: if (result = lookup(((_c = getSymbolOfDeclaration(location)) == null ? void 0 : _c.exports) || emptySymbols, name, meaning & 8 /* EnumMember */)) { - if (nameNotFoundMessage && getIsolatedModules(compilerOptions) && !(location.flags & 16777216 /* Ambient */) && getSourceFileOfNode(location) !== getSourceFileOfNode(result.valueDeclaration)) { - error( + if (nameNotFoundMessage && getIsolatedModules(compilerOptions) && !(location.flags & 33554432 /* Ambient */) && getSourceFileOfNode(location) !== getSourceFileOfNode(result.valueDeclaration)) { + error2( errorLocation, Diagnostics.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead, unescapeLeadingUnderscores(name), @@ -46743,7 +47128,7 @@ ${lanes.join("\n")} break loop; } break; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: if (!isStatic(location)) { const ctor = findConstructorDeclaration(location.parent); if (ctor && ctor.locals) { @@ -46754,9 +47139,9 @@ ${lanes.join("\n")} } } break; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: if (result = lookup(getSymbolOfDeclaration(location).members || emptySymbols, name, meaning & 788968 /* Type */)) { if (!isTypeParameterSymbolDeclaredInContainer(result, location)) { result = void 0; @@ -46764,7 +47149,7 @@ ${lanes.join("\n")} } if (lastLocation && isStatic(lastLocation)) { if (nameNotFoundMessage) { - error(errorLocation, Diagnostics.Static_members_cannot_reference_class_type_parameters); + error2(errorLocation, Diagnostics.Static_members_cannot_reference_class_type_parameters); } return void 0; } @@ -46778,43 +47163,43 @@ ${lanes.join("\n")} } } break; - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: if (lastLocation === location.expression && location.parent.token === 96 /* ExtendsKeyword */) { const container = location.parent.parent; if (isClassLike(container) && (result = lookup(getSymbolOfDeclaration(container).members, name, meaning & 788968 /* Type */))) { if (nameNotFoundMessage) { - error(errorLocation, Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters); + error2(errorLocation, Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters); } return void 0; } } break; - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: grandparent = location.parent.parent; - if (isClassLike(grandparent) || grandparent.kind === 263 /* InterfaceDeclaration */) { + if (isClassLike(grandparent) || grandparent.kind === 264 /* InterfaceDeclaration */) { if (result = lookup(getSymbolOfDeclaration(grandparent).members, name, meaning & 788968 /* Type */)) { if (nameNotFoundMessage) { - error(errorLocation, Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type); + error2(errorLocation, Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type); } return void 0; } } break; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: if (getEmitScriptTarget(compilerOptions) >= 2 /* ES2015 */) { break; } - case 173 /* MethodDeclaration */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 261 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 262 /* FunctionDeclaration */: if (meaning & 3 /* Variable */ && name === "arguments") { result = argumentsSymbol; break loop; } break; - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: if (meaning & 3 /* Variable */ && name === "arguments") { result = argumentsSymbol; break loop; @@ -46827,37 +47212,37 @@ ${lanes.join("\n")} } } break; - case 169 /* Decorator */: - if (location.parent && location.parent.kind === 168 /* Parameter */) { + case 170 /* Decorator */: + if (location.parent && location.parent.kind === 169 /* Parameter */) { location = location.parent; } - if (location.parent && (isClassElement(location.parent) || location.parent.kind === 262 /* ClassDeclaration */)) { + if (location.parent && (isClassElement(location.parent) || location.parent.kind === 263 /* ClassDeclaration */)) { location = location.parent; } break; - case 352 /* JSDocTypedefTag */: - case 344 /* JSDocCallbackTag */: - case 346 /* JSDocEnumTag */: + case 353 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: + case 347 /* JSDocEnumTag */: const root = getJSDocRoot(location); if (root) { location = root.parent; } break; - case 168 /* Parameter */: + case 169 /* Parameter */: if (lastLocation && (lastLocation === location.initializer || lastLocation === location.name && isBindingPattern(lastLocation))) { if (!associatedDeclarationForContainingInitializerOrBindingName) { associatedDeclarationForContainingInitializerOrBindingName = location; } } break; - case 207 /* BindingElement */: + case 208 /* BindingElement */: if (lastLocation && (lastLocation === location.initializer || lastLocation === location.name && isBindingPattern(lastLocation))) { if (isParameterDeclaration(location) && !associatedDeclarationForContainingInitializerOrBindingName) { associatedDeclarationForContainingInitializerOrBindingName = location; } } break; - case 194 /* InferType */: + case 195 /* InferType */: if (meaning & 262144 /* TypeParameter */) { const parameterName = location.typeParameter.name; if (parameterName && name === parameterName.escapedText) { @@ -46866,7 +47251,7 @@ ${lanes.join("\n")} } } break; - case 280 /* ExportSpecifier */: + case 281 /* ExportSpecifier */: if (lastLocation && lastLocation === location.propertyName && location.parent.parent.moduleSpecifier) { location = location.parent.parent.parent; } @@ -46904,8 +47289,8 @@ ${lanes.join("\n")} } } function checkAndReportErrorForInvalidInitializer() { - if (propertyWithInvalidInitializer && !(useDefineForClassFields && getEmitScriptTarget(compilerOptions) >= 9 /* ES2022 */)) { - error( + if (propertyWithInvalidInitializer && !emitStandardClassFields) { + error2( errorLocation, errorLocation && propertyWithInvalidInitializer.type && textRangeContainsPositionInclusive(propertyWithInvalidInitializer.type, errorLocation.pos) ? Diagnostics.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor : Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor, declarationNameToString(propertyWithInvalidInitializer.name), @@ -46918,14 +47303,14 @@ ${lanes.join("\n")} if (!result) { if (nameNotFoundMessage) { addLazyDiagnostic(() => { - if (!errorLocation || errorLocation.parent.kind !== 330 /* JSDocLink */ && !checkAndReportErrorForMissingPrefix(errorLocation, name, nameArg) && // TODO: GH#18217 + if (!errorLocation || errorLocation.parent.kind !== 331 /* JSDocLink */ && !checkAndReportErrorForMissingPrefix(errorLocation, name, nameArg) && // TODO: GH#18217 !checkAndReportErrorForInvalidInitializer() && !checkAndReportErrorForExtendingInterface(errorLocation) && !checkAndReportErrorForUsingTypeAsNamespace(errorLocation, name, meaning) && !checkAndReportErrorForExportingPrimitiveType(errorLocation, name) && !checkAndReportErrorForUsingNamespaceAsTypeOrValue(errorLocation, name, meaning) && !checkAndReportErrorForUsingTypeAsValue(errorLocation, name, meaning) && !checkAndReportErrorForUsingValueAsType(errorLocation, name, meaning)) { let suggestion; let suggestedLib; if (nameArg) { suggestedLib = getSuggestedLibForNonExistentName(nameArg); if (suggestedLib) { - error(errorLocation, nameNotFoundMessage, diagnosticName(nameArg), suggestedLib); + error2(errorLocation, nameNotFoundMessage, diagnosticName(nameArg), suggestedLib); } } if (!suggestedLib && getSpellingSuggestions && suggestionCount < maximumSuggestionCount) { @@ -46954,7 +47339,7 @@ ${lanes.join("\n")} } } if (!suggestion && !suggestedLib && nameArg) { - error(errorLocation, nameNotFoundMessage, diagnosticName(nameArg)); + error2(errorLocation, nameNotFoundMessage, diagnosticName(nameArg)); } suggestionCount++; } @@ -46972,7 +47357,7 @@ ${lanes.join("\n")} checkResolvedBlockScopedVariable(exportOrLocalSymbol, errorLocation); } } - if (result && isInExternalModule && (meaning & 111551 /* Value */) === 111551 /* Value */ && !(originalLocation.flags & 8388608 /* JSDoc */)) { + if (result && isInExternalModule && (meaning & 111551 /* Value */) === 111551 /* Value */ && !(originalLocation.flags & 16777216 /* JSDoc */)) { const merged = getMergedSymbol(result); if (length(merged.declarations) && every(merged.declarations, (d) => isNamespaceExportDeclaration(d) || isSourceFile(d) && !!d.symbol.globalExports)) { errorOrSuggestion(!compilerOptions.allowUmdGlobalAccess, errorLocation, Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead, unescapeLeadingUnderscores(name)); @@ -46982,18 +47367,18 @@ ${lanes.join("\n")} const candidate = getMergedSymbol(getLateBoundSymbol(result)); const root = getRootDeclaration(associatedDeclarationForContainingInitializerOrBindingName); if (candidate === getSymbolOfDeclaration(associatedDeclarationForContainingInitializerOrBindingName)) { - error(errorLocation, Diagnostics.Parameter_0_cannot_reference_itself, declarationNameToString(associatedDeclarationForContainingInitializerOrBindingName.name)); + error2(errorLocation, Diagnostics.Parameter_0_cannot_reference_itself, declarationNameToString(associatedDeclarationForContainingInitializerOrBindingName.name)); } else if (candidate.valueDeclaration && candidate.valueDeclaration.pos > associatedDeclarationForContainingInitializerOrBindingName.pos && root.parent.locals && lookup(root.parent.locals, candidate.escapedName, meaning) === candidate) { - error(errorLocation, Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it, declarationNameToString(associatedDeclarationForContainingInitializerOrBindingName.name), declarationNameToString(errorLocation)); + error2(errorLocation, Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it, declarationNameToString(associatedDeclarationForContainingInitializerOrBindingName.name), declarationNameToString(errorLocation)); } } if (result && errorLocation && meaning & 111551 /* Value */ && result.flags & 2097152 /* Alias */ && !(result.flags & 111551 /* Value */) && !isValidTypeOnlyAliasUseSite(errorLocation)) { const typeOnlyDeclaration = getTypeOnlyAliasDeclaration(result, 111551 /* Value */); if (typeOnlyDeclaration) { - const message = typeOnlyDeclaration.kind === 280 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 277 /* ExportDeclaration */ || typeOnlyDeclaration.kind === 279 /* NamespaceExport */ ? Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type : Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type; + const message = typeOnlyDeclaration.kind === 281 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 278 /* ExportDeclaration */ || typeOnlyDeclaration.kind === 280 /* NamespaceExport */ ? Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type : Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type; const unescapedName = unescapeLeadingUnderscores(name); addTypeOnlyDeclarationRelatedInfo( - error(errorLocation, message, unescapedName), + error2(errorLocation, message, unescapedName), typeOnlyDeclaration, unescapedName ); @@ -47010,14 +47395,14 @@ ${lanes.join("\n")} diagnostic, createDiagnosticForNode( typeOnlyDeclaration, - typeOnlyDeclaration.kind === 280 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 277 /* ExportDeclaration */ || typeOnlyDeclaration.kind === 279 /* NamespaceExport */ ? Diagnostics._0_was_exported_here : Diagnostics._0_was_imported_here, + typeOnlyDeclaration.kind === 281 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 278 /* ExportDeclaration */ || typeOnlyDeclaration.kind === 280 /* NamespaceExport */ ? Diagnostics._0_was_exported_here : Diagnostics._0_was_imported_here, unescapedName ) ); } function getIsDeferredContext(location, lastLocation) { - if (location.kind !== 218 /* ArrowFunction */ && location.kind !== 217 /* FunctionExpression */) { - return isTypeQueryNode(location) || (isFunctionLikeDeclaration(location) || location.kind === 171 /* PropertyDeclaration */ && !isStatic(location)) && (!lastLocation || lastLocation !== location.name); + if (location.kind !== 219 /* ArrowFunction */ && location.kind !== 218 /* FunctionExpression */) { + return isTypeQueryNode(location) || (isFunctionLikeDeclaration(location) || location.kind === 172 /* PropertyDeclaration */ && !isStatic(location)) && (!lastLocation || lastLocation !== location.name); } if (lastLocation && lastLocation === location.name) { return false; @@ -47029,12 +47414,12 @@ ${lanes.join("\n")} } function isSelfReferenceLocation(node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 266 /* ModuleDeclaration */: + case 262 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 267 /* ModuleDeclaration */: return true; default: return false; @@ -47046,7 +47431,7 @@ ${lanes.join("\n")} function isTypeParameterSymbolDeclaredInContainer(symbol, container) { if (symbol.declarations) { for (const decl of symbol.declarations) { - if (decl.kind === 167 /* TypeParameter */) { + if (decl.kind === 168 /* TypeParameter */) { const parent2 = isJSDocTemplateTag(decl.parent) ? getJSDocHost(decl.parent) : decl.parent; if (parent2 === container) { return !(isJSDocTemplateTag(decl.parent) && find(decl.parent.parent.tags, isJSDocTypeAlias)); @@ -47076,13 +47461,13 @@ ${lanes.join("\n")} } const constructorType = getTypeOfSymbol(classSymbol); if (getPropertyOfType(constructorType, name)) { - error(errorLocation, Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0, diagnosticName(nameArg), symbolToString(classSymbol)); + error2(errorLocation, Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0, diagnosticName(nameArg), symbolToString(classSymbol)); return true; } if (location === container && !isStatic(location)) { const instanceType = getDeclaredTypeOfSymbol(classSymbol).thisType; if (getPropertyOfType(instanceType, name)) { - error(errorLocation, Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0, diagnosticName(nameArg)); + error2(errorLocation, Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0, diagnosticName(nameArg)); return true; } } @@ -47099,7 +47484,7 @@ ${lanes.join("\n")} /*ignoreErrors*/ true )) { - error(errorLocation, Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements, getTextOfNode(expression)); + error2(errorLocation, Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements, getTextOfNode(expression)); return true; } return false; @@ -47107,9 +47492,9 @@ ${lanes.join("\n")} function getEntityNameForExtendingInterface(node) { switch (node.kind) { case 80 /* Identifier */: - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return node.parent ? getEntityNameForExtendingInterface(node.parent) : void 0; - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: if (isEntityNameExpression(node.expression)) { return node.expression; } @@ -47138,7 +47523,7 @@ ${lanes.join("\n")} const propName = parent2.right.escapedText; const propType = getPropertyOfType(getDeclaredTypeOfSymbol(symbol), propName); if (propType) { - error( + error2( parent2, Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1, unescapeLeadingUnderscores(name), @@ -47147,7 +47532,7 @@ ${lanes.join("\n")} return true; } } - error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here, unescapeLeadingUnderscores(name)); + error2(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here, unescapeLeadingUnderscores(name)); return true; } } @@ -47167,7 +47552,7 @@ ${lanes.join("\n")} false )); if (symbol && !(symbol.flags & 1920 /* Namespace */)) { - error(errorLocation, Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0, unescapeLeadingUnderscores(name)); + error2(errorLocation, Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0, unescapeLeadingUnderscores(name)); return true; } } @@ -47177,8 +47562,8 @@ ${lanes.join("\n")} return name === "any" || name === "string" || name === "number" || name === "boolean" || name === "never" || name === "unknown"; } function checkAndReportErrorForExportingPrimitiveType(errorLocation, name) { - if (isPrimitiveTypeName(name) && errorLocation.parent.kind === 280 /* ExportSpecifier */) { - error(errorLocation, Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module, name); + if (isPrimitiveTypeName(name) && errorLocation.parent.kind === 281 /* ExportSpecifier */) { + error2(errorLocation, Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module, name); return true; } return false; @@ -47187,9 +47572,9 @@ ${lanes.join("\n")} if (meaning & 111551 /* Value */) { if (isPrimitiveTypeName(name)) { if (isExtendedByInterface(errorLocation)) { - error(errorLocation, Diagnostics.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes, unescapeLeadingUnderscores(name)); + error2(errorLocation, Diagnostics.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes, unescapeLeadingUnderscores(name)); } else { - error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here, unescapeLeadingUnderscores(name)); + error2(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here, unescapeLeadingUnderscores(name)); } return true; } @@ -47204,15 +47589,15 @@ ${lanes.join("\n")} /*isUse*/ false )); - const allFlags = symbol && getAllSymbolFlags(symbol); + const allFlags = symbol && getSymbolFlags(symbol); if (symbol && allFlags !== void 0 && !(allFlags & 111551 /* Value */)) { const rawName = unescapeLeadingUnderscores(name); if (isES2015OrLaterConstructorName(name)) { - error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later, rawName); + error2(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later, rawName); } else if (maybeMappedType(errorLocation, symbol)) { - error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0, rawName, rawName === "K" ? "P" : "K"); + error2(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0, rawName, rawName === "K" ? "P" : "K"); } else { - error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here, rawName); + error2(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here, rawName); } return true; } @@ -47268,7 +47653,7 @@ ${lanes.join("\n")} false )); if (symbol) { - error( + error2( errorLocation, Diagnostics.Cannot_use_namespace_0_as_a_value, unescapeLeadingUnderscores(name) @@ -47288,7 +47673,7 @@ ${lanes.join("\n")} false )); if (symbol) { - error(errorLocation, Diagnostics.Cannot_use_namespace_0_as_a_type, unescapeLeadingUnderscores(name)); + error2(errorLocation, Diagnostics.Cannot_use_namespace_0_as_a_type, unescapeLeadingUnderscores(name)); return true; } } @@ -47301,19 +47686,19 @@ ${lanes.join("\n")} return; } const declaration = (_a = result.declarations) == null ? void 0 : _a.find( - (d) => isBlockOrCatchScoped(d) || isClassLike(d) || d.kind === 265 /* EnumDeclaration */ + (d) => isBlockOrCatchScoped(d) || isClassLike(d) || d.kind === 266 /* EnumDeclaration */ ); if (declaration === void 0) return Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration"); - if (!(declaration.flags & 16777216 /* Ambient */) && !isBlockScopedNameDeclaredBeforeUse(declaration, errorLocation)) { + if (!(declaration.flags & 33554432 /* Ambient */) && !isBlockScopedNameDeclaredBeforeUse(declaration, errorLocation)) { let diagnosticMessage; const declarationName = declarationNameToString(getNameOfDeclaration(declaration)); if (result.flags & 2 /* BlockScopedVariable */) { - diagnosticMessage = error(errorLocation, Diagnostics.Block_scoped_variable_0_used_before_its_declaration, declarationName); + diagnosticMessage = error2(errorLocation, Diagnostics.Block_scoped_variable_0_used_before_its_declaration, declarationName); } else if (result.flags & 32 /* Class */) { - diagnosticMessage = error(errorLocation, Diagnostics.Class_0_used_before_its_declaration, declarationName); + diagnosticMessage = error2(errorLocation, Diagnostics.Class_0_used_before_its_declaration, declarationName); } else if (result.flags & 256 /* RegularEnum */) { - diagnosticMessage = error(errorLocation, Diagnostics.Enum_0_used_before_its_declaration, declarationName); + diagnosticMessage = error2(errorLocation, Diagnostics.Enum_0_used_before_its_declaration, declarationName); } if (diagnosticMessage) { addRelatedInfo( @@ -47328,13 +47713,13 @@ ${lanes.join("\n")} } function getAnyImportSyntax(node) { switch (node.kind) { - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return node; - case 272 /* ImportClause */: + case 273 /* ImportClause */: return node.parent; - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: return node.parent.parent; - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: return node.parent.parent.parent; default: return void 0; @@ -47344,7 +47729,7 @@ ${lanes.join("\n")} return symbol.declarations && findLast(symbol.declarations, isAliasSymbolDeclaration2); } function isAliasSymbolDeclaration2(node) { - return node.kind === 270 /* ImportEqualsDeclaration */ || node.kind === 269 /* NamespaceExportDeclaration */ || node.kind === 272 /* ImportClause */ && !!node.name || node.kind === 273 /* NamespaceImport */ || node.kind === 279 /* NamespaceExport */ || node.kind === 275 /* ImportSpecifier */ || node.kind === 280 /* ExportSpecifier */ || node.kind === 276 /* ExportAssignment */ && exportAssignmentIsAlias(node) || isBinaryExpression(node) && getAssignmentDeclarationKind(node) === 2 /* ModuleExports */ && exportAssignmentIsAlias(node) || isAccessExpression(node) && isBinaryExpression(node.parent) && node.parent.left === node && node.parent.operatorToken.kind === 64 /* EqualsToken */ && isAliasableOrJsExpression(node.parent.right) || node.kind === 303 /* ShorthandPropertyAssignment */ || node.kind === 302 /* PropertyAssignment */ && isAliasableOrJsExpression(node.initializer) || node.kind === 259 /* VariableDeclaration */ && isVariableDeclarationInitializedToBareOrAccessedRequire(node) || node.kind === 207 /* BindingElement */ && isVariableDeclarationInitializedToBareOrAccessedRequire(node.parent.parent); + return node.kind === 271 /* ImportEqualsDeclaration */ || node.kind === 270 /* NamespaceExportDeclaration */ || node.kind === 273 /* ImportClause */ && !!node.name || node.kind === 274 /* NamespaceImport */ || node.kind === 280 /* NamespaceExport */ || node.kind === 276 /* ImportSpecifier */ || node.kind === 281 /* ExportSpecifier */ || node.kind === 277 /* ExportAssignment */ && exportAssignmentIsAlias(node) || isBinaryExpression(node) && getAssignmentDeclarationKind(node) === 2 /* ModuleExports */ && exportAssignmentIsAlias(node) || isAccessExpression(node) && isBinaryExpression(node.parent) && node.parent.left === node && node.parent.operatorToken.kind === 64 /* EqualsToken */ && isAliasableOrJsExpression(node.parent.right) || node.kind === 304 /* ShorthandPropertyAssignment */ || node.kind === 303 /* PropertyAssignment */ && isAliasableOrJsExpression(node.initializer) || node.kind === 260 /* VariableDeclaration */ && isVariableDeclarationInitializedToBareOrAccessedRequire(node) || node.kind === 208 /* BindingElement */ && isVariableDeclarationInitializedToBareOrAccessedRequire(node.parent.parent); } function isAliasableOrJsExpression(e) { return isAliasableExpression(e) || isFunctionExpression(e) && isJSConstructor(e); @@ -47355,7 +47740,7 @@ ${lanes.join("\n")} const name = getLeftmostAccessExpression(commonJSPropertyAccess.expression).arguments[0]; return isIdentifier(commonJSPropertyAccess.name) ? resolveSymbol(getPropertyOfType(resolveExternalModuleTypeByLiteral(name), commonJSPropertyAccess.name.escapedText)) : void 0; } - if (isVariableDeclaration(node) || node.moduleReference.kind === 282 /* ExternalModuleReference */) { + if (isVariableDeclaration(node) || node.moduleReference.kind === 283 /* ExternalModuleReference */) { const immediate = resolveExternalModuleName( node, getExternalModuleRequireArgument(node) || getExternalModuleImportEqualsDeclarationExpression(node) @@ -47384,11 +47769,11 @@ ${lanes.join("\n")} false ) && !node.isTypeOnly) { const typeOnlyDeclaration = getTypeOnlyAliasDeclaration(getSymbolOfDeclaration(node)); - const isExport = typeOnlyDeclaration.kind === 280 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 277 /* ExportDeclaration */; + const isExport = typeOnlyDeclaration.kind === 281 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 278 /* ExportDeclaration */; const message = isExport ? Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type : Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type; const relatedMessage = isExport ? Diagnostics._0_was_exported_here : Diagnostics._0_was_imported_here; - const name = typeOnlyDeclaration.kind === 277 /* ExportDeclaration */ ? "*" : unescapeLeadingUnderscores(typeOnlyDeclaration.name.escapedText); - addRelatedInfo(error(node.moduleReference, message), createDiagnosticForNode(typeOnlyDeclaration, relatedMessage, name)); + const name = typeOnlyDeclaration.kind === 278 /* ExportDeclaration */ ? "*" : unescapeLeadingUnderscores(typeOnlyDeclaration.name.escapedText); + addRelatedInfo(error2(node.moduleReference, message), createDiagnosticForNode(typeOnlyDeclaration, relatedMessage, name)); } } function resolveExportByName(moduleSymbol, name, sourceNode, dontResolveAlias) { @@ -47493,7 +47878,7 @@ ${lanes.join("\n")} const compilerOptionName = moduleKind >= 5 /* ES2015 */ ? "allowSyntheticDefaultImports" : "esModuleInterop"; const exportEqualsSymbol = moduleSymbol.exports.get("export=" /* ExportEquals */); const exportAssignment = exportEqualsSymbol.valueDeclaration; - const err = error(node.name, Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag, symbolToString(moduleSymbol), compilerOptionName); + const err = error2(node.name, Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag, symbolToString(moduleSymbol), compilerOptionName); if (exportAssignment) { addRelatedInfo(err, createDiagnosticForNode( exportAssignment, @@ -47529,15 +47914,15 @@ ${lanes.join("\n")} } function getModuleSpecifierForImportOrExport(node) { switch (node.kind) { - case 272 /* ImportClause */: + case 273 /* ImportClause */: return node.parent.moduleSpecifier; - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return isExternalModuleReference(node.moduleReference) ? node.moduleReference.expression : void 0; - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: return node.parent.parent.moduleSpecifier; - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: return node.parent.parent.parent.moduleSpecifier; - case 280 /* ExportSpecifier */: + case 281 /* ExportSpecifier */: return node.parent.parent.moduleSpecifier; default: return Debug.assertNever(node); @@ -47546,14 +47931,14 @@ ${lanes.join("\n")} function reportNonDefaultExport(moduleSymbol, node) { var _a, _b, _c; if ((_a = moduleSymbol.exports) == null ? void 0 : _a.has(node.symbol.escapedName)) { - error( + error2( node.name, Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead, symbolToString(moduleSymbol), symbolToString(node.symbol) ); } else { - const diagnostic = error(node.name, Diagnostics.Module_0_has_no_default_export, symbolToString(moduleSymbol)); + const diagnostic = error2(node.name, Diagnostics.Module_0_has_no_default_export, symbolToString(moduleSymbol)); const exportStar = (_b = moduleSymbol.exports) == null ? void 0 : _b.get("__export" /* ExportStar */); if (exportStar) { const defaultExport = (_c = exportStar.declarations) == null ? void 0 : _c.find((decl) => { @@ -47704,7 +48089,7 @@ ${lanes.join("\n")} const suggestion = getSuggestedSymbolForNonexistentModule(name, targetSymbol); if (suggestion !== void 0) { const suggestionName = symbolToString(suggestion); - const diagnostic = error(name, Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2, moduleName, declarationName, suggestionName); + const diagnostic = error2(name, Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2, moduleName, declarationName, suggestionName); if (suggestion.valueDeclaration) { addRelatedInfo( diagnostic, @@ -47713,7 +48098,7 @@ ${lanes.join("\n")} } } else { if ((_a = moduleSymbol.exports) == null ? void 0 : _a.has("default" /* Default */)) { - error( + error2( name, Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead, moduleName, @@ -47731,10 +48116,10 @@ ${lanes.join("\n")} if (localSymbol) { const exportedEqualsSymbol = exports == null ? void 0 : exports.get("export=" /* ExportEquals */); if (exportedEqualsSymbol) { - getSymbolIfSameReference(exportedEqualsSymbol, localSymbol) ? reportInvalidImportEqualsExportMember(node, name, declarationName, moduleName) : error(name, Diagnostics.Module_0_has_no_exported_member_1, moduleName, declarationName); + getSymbolIfSameReference(exportedEqualsSymbol, localSymbol) ? reportInvalidImportEqualsExportMember(node, name, declarationName, moduleName) : error2(name, Diagnostics.Module_0_has_no_exported_member_1, moduleName, declarationName); } else { const exportedSymbol = exports ? find(symbolsToArray(exports), (symbol) => !!getSymbolIfSameReference(symbol, localSymbol)) : void 0; - const diagnostic = exportedSymbol ? error(name, Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2, moduleName, declarationName, symbolToString(exportedSymbol)) : error(name, Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported, moduleName, declarationName); + const diagnostic = exportedSymbol ? error2(name, Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2, moduleName, declarationName, symbolToString(exportedSymbol)) : error2(name, Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported, moduleName, declarationName); if (localSymbol.declarations) { addRelatedInfo( diagnostic, @@ -47743,20 +48128,20 @@ ${lanes.join("\n")} } } } else { - error(name, Diagnostics.Module_0_has_no_exported_member_1, moduleName, declarationName); + error2(name, Diagnostics.Module_0_has_no_exported_member_1, moduleName, declarationName); } } function reportInvalidImportEqualsExportMember(node, name, declarationName, moduleName) { if (moduleKind >= 5 /* ES2015 */) { const message = getESModuleInterop(compilerOptions) ? Diagnostics._0_can_only_be_imported_by_using_a_default_import : Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import; - error(name, message, declarationName); + error2(name, message, declarationName); } else { if (isInJSFile(node)) { const message = getESModuleInterop(compilerOptions) ? Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import : Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import; - error(name, message, declarationName); + error2(name, message, declarationName); } else { const message = getESModuleInterop(compilerOptions) ? Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import : Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import; - error(name, message, declarationName, declarationName, moduleName); + error2(name, message, declarationName, declarationName, moduleName); } } } @@ -47870,26 +48255,26 @@ ${lanes.join("\n")} } function getTargetOfAliasDeclaration(node, dontRecursivelyResolve = false) { switch (node.kind) { - case 270 /* ImportEqualsDeclaration */: - case 259 /* VariableDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 260 /* VariableDeclaration */: return getTargetOfImportEqualsDeclaration(node, dontRecursivelyResolve); - case 272 /* ImportClause */: + case 273 /* ImportClause */: return getTargetOfImportClause(node, dontRecursivelyResolve); - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: return getTargetOfNamespaceImport(node, dontRecursivelyResolve); - case 279 /* NamespaceExport */: + case 280 /* NamespaceExport */: return getTargetOfNamespaceExport(node, dontRecursivelyResolve); - case 275 /* ImportSpecifier */: - case 207 /* BindingElement */: + case 276 /* ImportSpecifier */: + case 208 /* BindingElement */: return getTargetOfImportSpecifier(node, dontRecursivelyResolve); - case 280 /* ExportSpecifier */: + case 281 /* ExportSpecifier */: return getTargetOfExportSpecifier(node, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */, dontRecursivelyResolve); - case 276 /* ExportAssignment */: - case 225 /* BinaryExpression */: + case 277 /* ExportAssignment */: + case 226 /* BinaryExpression */: return getTargetOfExportAssignment(node, dontRecursivelyResolve); - case 269 /* NamespaceExportDeclaration */: + case 270 /* NamespaceExportDeclaration */: return getTargetOfNamespaceExportDeclaration(node, dontRecursivelyResolve); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return resolveEntityName( node.name, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */, @@ -47897,10 +48282,10 @@ ${lanes.join("\n")} true, dontRecursivelyResolve ); - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return getTargetOfAliasLikeExpression(node.initializer, dontRecursivelyResolve); - case 211 /* ElementAccessExpression */: - case 210 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: return getTargetOfAccessExpression(node, dontRecursivelyResolve); default: return Debug.fail(); @@ -47926,7 +48311,7 @@ ${lanes.join("\n")} if (links.aliasTarget === resolvingSymbol) { links.aliasTarget = target || unknownSymbol; } else { - error(node, Diagnostics.Circular_definition_of_import_alias_0, symbolToString(symbol)); + error2(node, Diagnostics.Circular_definition_of_import_alias_0, symbolToString(symbol)); } } else if (links.aliasTarget === resolvingSymbol) { links.aliasTarget = unknownSymbol; @@ -47940,11 +48325,23 @@ ${lanes.join("\n")} } return void 0; } - function getAllSymbolFlags(symbol) { - let flags = symbol.flags; + function getSymbolFlags(symbol, excludeTypeOnlyMeanings, excludeLocalMeanings) { + const typeOnlyDeclaration = excludeTypeOnlyMeanings && getTypeOnlyAliasDeclaration(symbol); + const typeOnlyDeclarationIsExportStar = typeOnlyDeclaration && isExportDeclaration(typeOnlyDeclaration); + const typeOnlyResolution = typeOnlyDeclaration && (typeOnlyDeclarationIsExportStar ? resolveExternalModuleName( + typeOnlyDeclaration.moduleSpecifier, + typeOnlyDeclaration.moduleSpecifier, + /*ignoreErrors*/ + true + ) : resolveAlias(typeOnlyDeclaration.symbol)); + const typeOnlyExportStarTargets = typeOnlyDeclarationIsExportStar && typeOnlyResolution ? getExportsOfModule(typeOnlyResolution) : void 0; + let flags = excludeLocalMeanings ? 0 /* None */ : symbol.flags; let seenSymbols; while (symbol.flags & 2097152 /* Alias */) { - const target = resolveAlias(symbol); + const target = getExportSymbolOfValueSymbolIfExported(resolveAlias(symbol)); + if (!typeOnlyDeclarationIsExportStar && target === typeOnlyResolution || (typeOnlyExportStarTargets == null ? void 0 : typeOnlyExportStarTargets.get(target.escapedName)) === target) { + break; + } if (target === unknownSymbol) { return 67108863 /* All */; } @@ -48001,8 +48398,8 @@ ${lanes.join("\n")} return links.typeOnlyDeclaration || void 0; } if (links.typeOnlyDeclaration) { - const resolved = links.typeOnlyDeclaration.kind === 277 /* ExportDeclaration */ ? resolveSymbol(getExportsOfModule(links.typeOnlyDeclaration.symbol.parent).get(links.typeOnlyExportStarName || symbol.escapedName)) : resolveAlias(links.typeOnlyDeclaration.symbol); - return getAllSymbolFlags(resolved) & include ? links.typeOnlyDeclaration : void 0; + const resolved = links.typeOnlyDeclaration.kind === 278 /* ExportDeclaration */ ? resolveSymbol(getExportsOfModule(links.typeOnlyDeclaration.symbol.parent).get(links.typeOnlyExportStarName || symbol.escapedName)) : resolveAlias(links.typeOnlyDeclaration.symbol); + return getSymbolFlags(resolved) & include ? links.typeOnlyDeclaration : void 0; } return void 0; } @@ -48013,7 +48410,11 @@ ${lanes.join("\n")} const symbol = getSymbolOfDeclaration(node); const target = resolveAlias(symbol); if (target) { - const markAlias = target === unknownSymbol || getAllSymbolFlags(target) & 111551 /* Value */ && !isConstEnumOrConstEnumOnlyModule(target) && !getTypeOnlyAliasDeclaration(symbol, 111551 /* Value */); + const markAlias = target === unknownSymbol || getSymbolFlags( + symbol, + /*excludeTypeOnlyMeanings*/ + true + ) & 111551 /* Value */ && !isConstEnumOrConstEnumOnlyModule(target); if (markAlias) { markAliasSymbolAsReferenced(symbol); } @@ -48028,7 +48429,7 @@ ${lanes.join("\n")} if (!node) return Debug.fail(); if (isInternalModuleImportEqualsDeclaration(node)) { - if (getAllSymbolFlags(resolveSymbol(symbol)) & 111551 /* Value */) { + if (getSymbolFlags(resolveSymbol(symbol)) & 111551 /* Value */) { checkExpressionCached(node.moduleReference); } } @@ -48044,7 +48445,7 @@ ${lanes.join("\n")} if (entityName.kind === 80 /* Identifier */ && isRightSideOfQualifiedNameOrPropertyAccess(entityName)) { entityName = entityName.parent; } - if (entityName.kind === 80 /* Identifier */ || entityName.parent.kind === 165 /* QualifiedName */) { + if (entityName.kind === 80 /* Identifier */ || entityName.parent.kind === 166 /* QualifiedName */) { return resolveEntityName( entityName, 1920 /* Namespace */, @@ -48053,7 +48454,7 @@ ${lanes.join("\n")} dontResolveAlias ); } else { - Debug.assert(entityName.parent.kind === 270 /* ImportEqualsDeclaration */); + Debug.assert(entityName.parent.kind === 271 /* ImportEqualsDeclaration */); return resolveEntityName( entityName, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */, @@ -48126,9 +48527,9 @@ ${lanes.join("\n")} if (!symbol) { return getMergedSymbol(symbolFromJSPrototype); } - } else if (name.kind === 165 /* QualifiedName */ || name.kind === 210 /* PropertyAccessExpression */) { - const left = name.kind === 165 /* QualifiedName */ ? name.left : name.expression; - const right = name.kind === 165 /* QualifiedName */ ? name.right : name.name; + } else if (name.kind === 166 /* QualifiedName */ || name.kind === 211 /* PropertyAccessExpression */) { + const left = name.kind === 166 /* QualifiedName */ ? name.left : name.expression; + const right = name.kind === 166 /* QualifiedName */ ? name.right : name.name; let namespace = resolveEntityName( left, namespaceMeaning, @@ -48162,13 +48563,13 @@ ${lanes.join("\n")} const declarationName = declarationNameToString(right); const suggestionForNonexistentModule = getSuggestedSymbolForNonexistentModule(right, namespace); if (suggestionForNonexistentModule) { - error(right, Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2, namespaceName, declarationName, symbolToString(suggestionForNonexistentModule)); + error2(right, Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2, namespaceName, declarationName, symbolToString(suggestionForNonexistentModule)); return void 0; } const containingQualifiedName = isQualifiedName(name) && getContainingQualifiedNameNode(name); const canSuggestTypeof = globalObjectType && meaning & 788968 /* Type */ && containingQualifiedName && !isTypeOfExpression(containingQualifiedName.parent) && tryGetQualifiedNameAsValue(containingQualifiedName); if (canSuggestTypeof) { - error( + error2( containingQualifiedName, Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0, entityNameToString(containingQualifiedName) @@ -48178,7 +48579,7 @@ ${lanes.join("\n")} if (meaning & 1920 /* Namespace */ && isQualifiedName(name.parent)) { const exportedTypeSymbol = getMergedSymbol(getSymbol2(getExportsOfSymbol(namespace), right.escapedText, 788968 /* Type */)); if (exportedTypeSymbol) { - error( + error2( name.parent.right, Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1, symbolToString(exportedTypeSymbol), @@ -48187,7 +48588,7 @@ ${lanes.join("\n")} return void 0; } } - error(right, Diagnostics.Namespace_0_has_no_exported_member_1, namespaceName, declarationName); + error2(right, Diagnostics.Namespace_0_has_no_exported_member_1, namespaceName, declarationName); } return void 0; } @@ -48195,7 +48596,7 @@ ${lanes.join("\n")} Debug.assertNever(name, "Unknown entity name kind."); } Debug.assert((getCheckFlags(symbol) & 1 /* Instantiated */) === 0, "Should never get an instantiated symbol here."); - if (!nodeIsSynthesized(name) && isEntityName(name) && (symbol.flags & 2097152 /* Alias */ || name.parent.kind === 276 /* ExportAssignment */)) { + if (!nodeIsSynthesized(name) && isEntityName(name) && (symbol.flags & 2097152 /* Alias */ || name.parent.kind === 277 /* ExportAssignment */)) { markSymbolOfAliasDeclarationIfTypeOnly( getAliasDeclarationFromName(name), symbol, @@ -48225,7 +48626,7 @@ ${lanes.join("\n")} } } function getAssignmentDeclarationLocation(node) { - const typeAlias = findAncestor(node, (node2) => !(isJSDocNode(node2) || node2.flags & 8388608 /* JSDoc */) ? "quit" : isJSDocTypeAlias(node2)); + const typeAlias = findAncestor(node, (node2) => !(isJSDocNode(node2) || node2.flags & 16777216 /* JSDoc */) ? "quit" : isJSDocTypeAlias(node2)); if (typeAlias) { return; } @@ -48288,11 +48689,11 @@ ${lanes.join("\n")} return isStringLiteralLike(moduleReferenceExpression) ? resolveExternalModule(location, moduleReferenceExpression.text, moduleNotFoundError, moduleReferenceExpression, isForAugmentation) : void 0; } function resolveExternalModule(location, moduleReference, moduleNotFoundError, errorNode, isForAugmentation = false) { - var _a, _b, _c, _d, _e, _f, _g, _h, _i; + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j; if (startsWith(moduleReference, "@types/")) { const diag2 = Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1; const withoutAtTypePrefix = removePrefix(moduleReference, "@types/"); - error(errorNode, diag2, withoutAtTypePrefix, moduleReference); + error2(errorNode, diag2, withoutAtTypePrefix, moduleReference); } const ambientModule = tryFindAmbientModule( moduleReference, @@ -48311,20 +48712,23 @@ ${lanes.join("\n")} const sourceFile = resolvedModule && (!resolutionDiagnostic || resolutionDiagnostic === Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set) && host.getSourceFile(resolvedModule.resolvedFileName); if (sourceFile) { if (resolutionDiagnostic) { - error(errorNode, resolutionDiagnostic, moduleReference, resolvedModule.resolvedFileName); + error2(errorNode, resolutionDiagnostic, moduleReference, resolvedModule.resolvedFileName); } if (resolvedModule.resolvedUsingTsExtension && isDeclarationFileName(moduleReference)) { const importOrExport = ((_g = findAncestor(location, isImportDeclaration)) == null ? void 0 : _g.importClause) || findAncestor(location, or(isImportEqualsDeclaration, isExportDeclaration)); if (importOrExport && !importOrExport.isTypeOnly || findAncestor(location, isImportCall)) { - error( + error2( errorNode, Diagnostics.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead, getSuggestedImportSource(Debug.checkDefined(tryExtractTSExtension(moduleReference))) ); } } else if (resolvedModule.resolvedUsingTsExtension && !shouldAllowImportingTsExtension(compilerOptions, currentSourceFile.fileName)) { - const tsExtension = Debug.checkDefined(tryExtractTSExtension(moduleReference)); - error(errorNode, Diagnostics.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled, tsExtension); + const importOrExport = ((_h = findAncestor(location, isImportDeclaration)) == null ? void 0 : _h.importClause) || findAncestor(location, or(isImportEqualsDeclaration, isExportDeclaration)); + if (!((importOrExport == null ? void 0 : importOrExport.isTypeOnly) || findAncestor(location, isImportTypeNode))) { + const tsExtension = Debug.checkDefined(tryExtractTSExtension(moduleReference)); + error2(errorNode, Diagnostics.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled, tsExtension); + } } if (sourceFile.symbol) { if (resolvedModule.isExternalLibraryImport && !resolutionExtensionIsTSOrJson(resolvedModule.extension)) { @@ -48341,10 +48745,10 @@ ${lanes.join("\n")} if (moduleResolutionKind === 3 /* Node16 */ || moduleResolutionKind === 99 /* NodeNext */) { const isSyncImport = currentSourceFile.impliedNodeFormat === 1 /* CommonJS */ && !findAncestor(location, isImportCall) || !!findAncestor(location, isImportEqualsDeclaration); const overrideClauseHost = findAncestor(location, (l) => isImportTypeNode(l) || isExportDeclaration(l) || isImportDeclaration(l)); - const overrideClause = overrideClauseHost && isImportTypeNode(overrideClauseHost) ? (_h = overrideClauseHost.assertions) == null ? void 0 : _h.assertClause : overrideClauseHost == null ? void 0 : overrideClauseHost.assertClause; + const overrideClause = overrideClauseHost && isImportTypeNode(overrideClauseHost) ? (_i = overrideClauseHost.assertions) == null ? void 0 : _i.assertClause : overrideClauseHost == null ? void 0 : overrideClauseHost.assertClause; if (isSyncImport && sourceFile.impliedNodeFormat === 99 /* ESNext */ && !getResolutionModeOverrideForClause(overrideClause)) { if (findAncestor(location, isImportEqualsDeclaration)) { - error(errorNode, Diagnostics.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead, moduleReference); + error2(errorNode, Diagnostics.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead, moduleReference); } else { let diagnosticDetails; const ext = tryGetExtensionFromPath2(currentSourceFile.fileName); @@ -48396,7 +48800,7 @@ ${lanes.join("\n")} return getMergedSymbol(sourceFile.symbol); } if (moduleNotFoundError) { - error(errorNode, Diagnostics.File_0_is_not_a_module, sourceFile.fileName); + error2(errorNode, Diagnostics.File_0_is_not_a_module, sourceFile.fileName); } return void 0; } @@ -48413,7 +48817,7 @@ ${lanes.join("\n")} if (resolvedModule && !resolutionExtensionIsTSOrJson(resolvedModule.extension) && resolutionDiagnostic === void 0 || resolutionDiagnostic === Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type) { if (isForAugmentation) { const diag2 = Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented; - error(errorNode, diag2, moduleReference, resolvedModule.resolvedFileName); + error2(errorNode, diag2, moduleReference, resolvedModule.resolvedFileName); } else { errorOnImplicitAnyModule( /*isError*/ @@ -48431,31 +48835,31 @@ ${lanes.join("\n")} if (resolvedModule) { const redirect = host.getProjectReferenceRedirect(resolvedModule.resolvedFileName); if (redirect) { - error(errorNode, Diagnostics.Output_file_0_has_not_been_built_from_source_file_1, redirect, resolvedModule.resolvedFileName); + error2(errorNode, Diagnostics.Output_file_0_has_not_been_built_from_source_file_1, redirect, resolvedModule.resolvedFileName); return void 0; } } if (resolutionDiagnostic) { - error(errorNode, resolutionDiagnostic, moduleReference, resolvedModule.resolvedFileName); + error2(errorNode, resolutionDiagnostic, moduleReference, resolvedModule.resolvedFileName); } else { const isExtensionlessRelativePathImport = pathIsRelative(moduleReference) && !hasExtension(moduleReference); const resolutionIsNode16OrNext = moduleResolutionKind === 3 /* Node16 */ || moduleResolutionKind === 99 /* NodeNext */; if (!getResolveJsonModule(compilerOptions) && fileExtensionIs(moduleReference, ".json" /* Json */) && moduleResolutionKind !== 1 /* Classic */ && hasJsonModuleEmitEnabled(compilerOptions)) { - error(errorNode, Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension, moduleReference); + error2(errorNode, Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension, moduleReference); } else if (mode === 99 /* ESNext */ && resolutionIsNode16OrNext && isExtensionlessRelativePathImport) { const absoluteRef = getNormalizedAbsolutePath(moduleReference, getDirectoryPath(currentSourceFile.path)); - const suggestedExt = (_i = suggestedExtensions.find(([actualExt, _importExt]) => host.fileExists(absoluteRef + actualExt))) == null ? void 0 : _i[1]; + const suggestedExt = (_j = suggestedExtensions.find(([actualExt, _importExt]) => host.fileExists(absoluteRef + actualExt))) == null ? void 0 : _j[1]; if (suggestedExt) { - error( + error2( errorNode, Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0, moduleReference + suggestedExt ); } else { - error(errorNode, Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path); + error2(errorNode, Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path); } } else { - error(errorNode, moduleNotFoundError, moduleReference); + error2(errorNode, moduleNotFoundError, moduleReference); } } } @@ -48519,9 +48923,9 @@ ${lanes.join("\n")} var _a; const symbol = resolveExternalModuleSymbol(moduleSymbol, dontResolveAlias); if (!dontResolveAlias && symbol) { - if (!suppressInteropError && !(symbol.flags & (1536 /* Module */ | 3 /* Variable */)) && !getDeclarationOfKind(symbol, 311 /* SourceFile */)) { + if (!suppressInteropError && !(symbol.flags & (1536 /* Module */ | 3 /* Variable */)) && !getDeclarationOfKind(symbol, 312 /* SourceFile */)) { const compilerOptionName = moduleKind >= 5 /* ES2015 */ ? "allowSyntheticDefaultImports" : "esModuleInterop"; - error(referencingLocation, Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export, compilerOptionName); + error2(referencingLocation, Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export, compilerOptionName); return symbol; } const referenceParent = referencingLocation.parent; @@ -48876,12 +49280,12 @@ ${lanes.join("\n")} return getMergedSymbol(symbol && (symbol.flags & 1048576 /* ExportValue */) !== 0 && symbol.exportSymbol || symbol); } function symbolIsValue(symbol, includeTypeOnlyMembers) { - return !!(symbol.flags & 111551 /* Value */ || symbol.flags & 2097152 /* Alias */ && getAllSymbolFlags(symbol) & 111551 /* Value */ && (includeTypeOnlyMembers || !getTypeOnlyAliasDeclaration(symbol))); + return !!(symbol.flags & 111551 /* Value */ || symbol.flags & 2097152 /* Alias */ && getSymbolFlags(symbol, !includeTypeOnlyMembers) & 111551 /* Value */); } function findConstructorDeclaration(node) { const members = node.members; for (const member of members) { - if (member.kind === 175 /* Constructor */ && nodeIsPresent(member.body)) { + if (member.kind === 176 /* Constructor */ && nodeIsPresent(member.body)) { return member; } } @@ -48905,7 +49309,7 @@ ${lanes.join("\n")} function createIntrinsicType(kind, intrinsicName, objectFlags = 0 /* None */) { const type = createType(kind); type.intrinsicName = intrinsicName; - type.objectFlags = objectFlags; + type.objectFlags = objectFlags | 524288 /* CouldContainTypeVariablesComputed */ | 2097152 /* IsGenericTypeComputed */ | 33554432 /* IsUnknownLikeUnionComputed */ | 16777216 /* IsNeverIntersectionComputed */; return type; } function createObjectType(objectFlags, symbol) { @@ -48999,11 +49403,11 @@ ${lanes.join("\n")} } } switch (location.kind) { - case 311 /* SourceFile */: + case 312 /* SourceFile */: if (!isExternalOrCommonJsModule(location)) { break; } - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: const sym = getSymbolOfDeclaration(location); if (result = callback( (sym == null ? void 0 : sym.exports) || emptySymbols, @@ -49016,9 +49420,9 @@ ${lanes.join("\n")} return result; } break; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: let table; (getSymbolOfDeclaration(location).members || emptySymbols).forEach((memberSymbol, key) => { if (memberSymbol.flags & (788968 /* Type */ & ~67108864 /* Assignment */)) { @@ -49096,7 +49500,7 @@ ${lanes.join("\n")} return [symbol]; } const result2 = forEachEntry(symbols, (symbolFromSymbolTable) => { - if (symbolFromSymbolTable.flags & 2097152 /* Alias */ && symbolFromSymbolTable.escapedName !== "export=" /* ExportEquals */ && symbolFromSymbolTable.escapedName !== "default" /* Default */ && !(isUMDExportSymbol(symbolFromSymbolTable) && enclosingDeclaration && isExternalModule(getSourceFileOfNode(enclosingDeclaration))) && (!useOnlyExternalAliasing || some(symbolFromSymbolTable.declarations, isExternalModuleImportEqualsDeclaration)) && (isLocalNameLookup ? !some(symbolFromSymbolTable.declarations, isNamespaceReexportDeclaration) : true) && (ignoreQualification || !getDeclarationOfKind(symbolFromSymbolTable, 280 /* ExportSpecifier */))) { + if (symbolFromSymbolTable.flags & 2097152 /* Alias */ && symbolFromSymbolTable.escapedName !== "export=" /* ExportEquals */ && symbolFromSymbolTable.escapedName !== "default" /* Default */ && !(isUMDExportSymbol(symbolFromSymbolTable) && enclosingDeclaration && isExternalModule(getSourceFileOfNode(enclosingDeclaration))) && (!useOnlyExternalAliasing || some(symbolFromSymbolTable.declarations, isExternalModuleImportEqualsDeclaration)) && (isLocalNameLookup ? !some(symbolFromSymbolTable.declarations, isNamespaceReexportDeclaration) : true) && (ignoreQualification || !getDeclarationOfKind(symbolFromSymbolTable, 281 /* ExportSpecifier */))) { const resolvedImportedSymbol = resolveAlias(symbolFromSymbolTable); const candidate = getCandidateListForSymbol(symbolFromSymbolTable, resolvedImportedSymbol, ignoreQualification); if (candidate) { @@ -49141,9 +49545,9 @@ ${lanes.join("\n")} if (symbolFromSymbolTable === symbol) { return true; } - const shouldResolveAlias = symbolFromSymbolTable.flags & 2097152 /* Alias */ && !getDeclarationOfKind(symbolFromSymbolTable, 280 /* ExportSpecifier */); + const shouldResolveAlias = symbolFromSymbolTable.flags & 2097152 /* Alias */ && !getDeclarationOfKind(symbolFromSymbolTable, 281 /* ExportSpecifier */); symbolFromSymbolTable = shouldResolveAlias ? resolveAlias(symbolFromSymbolTable) : symbolFromSymbolTable; - const flags = shouldResolveAlias ? getAllSymbolFlags(symbolFromSymbolTable) : symbolFromSymbolTable.flags; + const flags = shouldResolveAlias ? getSymbolFlags(symbolFromSymbolTable) : symbolFromSymbolTable.flags; if (flags & meaning) { qualify = true; return true; @@ -49156,10 +49560,10 @@ ${lanes.join("\n")} if (symbol.declarations && symbol.declarations.length) { for (const declaration of symbol.declarations) { switch (declaration.kind) { - case 171 /* PropertyDeclaration */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: continue; default: return false; @@ -49295,10 +49699,10 @@ ${lanes.join("\n")} return node && getSymbolOfDeclaration(node); } function hasExternalModuleSymbol(declaration) { - return isAmbientModule(declaration) || declaration.kind === 311 /* SourceFile */ && isExternalOrCommonJsModule(declaration); + return isAmbientModule(declaration) || declaration.kind === 312 /* SourceFile */ && isExternalOrCommonJsModule(declaration); } function hasNonGlobalAugmentationExternalModuleSymbol(declaration) { - return isModuleWithStringLiteralName(declaration) || declaration.kind === 311 /* SourceFile */ && isExternalOrCommonJsModule(declaration); + return isModuleWithStringLiteralName(declaration) || declaration.kind === 312 /* SourceFile */ && isExternalOrCommonJsModule(declaration); } function hasVisibleDeclarations(symbol, shouldComputeAliasToMakeVisible) { let aliasesToMakeVisible; @@ -49346,9 +49750,9 @@ ${lanes.join("\n")} } function isEntityNameVisible(entityName, enclosingDeclaration) { let meaning; - if (entityName.parent.kind === 185 /* TypeQuery */ || entityName.parent.kind === 232 /* ExpressionWithTypeArguments */ && !isPartOfTypeNode(entityName.parent) || entityName.parent.kind === 166 /* ComputedPropertyName */) { + if (entityName.parent.kind === 186 /* TypeQuery */ || entityName.parent.kind === 233 /* ExpressionWithTypeArguments */ && !isPartOfTypeNode(entityName.parent) || entityName.parent.kind === 167 /* ComputedPropertyName */) { meaning = 111551 /* Value */ | 1048576 /* ExportValue */; - } else if (entityName.kind === 165 /* QualifiedName */ || entityName.kind === 210 /* PropertyAccessExpression */ || entityName.parent.kind === 270 /* ImportEqualsDeclaration */) { + } else if (entityName.kind === 166 /* QualifiedName */ || entityName.kind === 211 /* PropertyAccessExpression */ || entityName.parent.kind === 271 /* ImportEqualsDeclaration */) { meaning = 1920 /* Namespace */; } else { meaning = 788968 /* Type */; @@ -49414,7 +49818,7 @@ ${lanes.join("\n")} return writer ? symbolToStringWorker(writer).getText() : usingSingleLineStringWriter(symbolToStringWorker); function symbolToStringWorker(writer2) { const entity = builder(symbol, meaning, enclosingDeclaration, nodeFlags); - const printer = (enclosingDeclaration == null ? void 0 : enclosingDeclaration.kind) === 311 /* SourceFile */ ? createPrinterWithRemoveCommentsNeverAsciiEscape() : createPrinterWithRemoveComments(); + const printer = (enclosingDeclaration == null ? void 0 : enclosingDeclaration.kind) === 312 /* SourceFile */ ? createPrinterWithRemoveCommentsNeverAsciiEscape() : createPrinterWithRemoveComments(); const sourceFile = enclosingDeclaration && getSourceFileOfNode(enclosingDeclaration); printer.writeNode( 4 /* Unspecified */, @@ -49431,9 +49835,9 @@ ${lanes.join("\n")} function signatureToStringWorker(writer2) { let sigOutput; if (flags & 262144 /* WriteArrowStyleSignature */) { - sigOutput = kind === 1 /* Construct */ ? 184 /* ConstructorType */ : 183 /* FunctionType */; + sigOutput = kind === 1 /* Construct */ ? 185 /* ConstructorType */ : 184 /* FunctionType */; } else { - sigOutput = kind === 1 /* Construct */ ? 179 /* ConstructSignature */ : 178 /* CallSignature */; + sigOutput = kind === 1 /* Construct */ ? 180 /* ConstructSignature */ : 179 /* CallSignature */; } const sig = nodeBuilder.signatureToSignatureDeclaration(signature, sigOutput, enclosingDeclaration, toNodeBuilderFlags(flags) | 70221824 /* IgnoreErrors */ | 512 /* WriteTypeParametersInQualifiedName */); const printer = createPrinterWithRemoveCommentsOmitTrailingSemicolon(); @@ -49535,7 +49939,7 @@ ${lanes.join("\n")} return symbolToExpression(symbol, context, meaning); } function withContext(enclosingDeclaration, flags, tracker, cb) { - Debug.assert(enclosingDeclaration === void 0 || (enclosingDeclaration.flags & 8 /* Synthesized */) === 0); + Debug.assert(enclosingDeclaration === void 0 || (enclosingDeclaration.flags & 16 /* Synthesized */) === 0); const moduleResolverHost = (tracker == null ? void 0 : tracker.trackSymbol) ? tracker.moduleResolverHost : flags & 134217728 /* DoNotIncludeSymbolChain */ ? createBasicNodeBuilderModuleSpecifierResolutionHost(host) : void 0; const context = { enclosingDeclaration, @@ -49607,7 +50011,7 @@ ${lanes.join("\n")} } if (type.flags & 64 /* BigInt */) { context.approximateLength += 6; - return factory.createKeywordTypeNode(162 /* BigIntKeyword */); + return factory.createKeywordTypeNode(163 /* BigIntKeyword */); } if (type.flags & 16 /* Boolean */ && !type.aliasSymbol) { context.approximateLength += 7; @@ -49880,11 +50284,13 @@ ${lanes.join("\n")} return !!type2.target && isMappedTypeHomomorphic(type2.target) && !isMappedTypeHomomorphic(type2); } function createMappedTypeNodeFromType(type2) { + var _a2; Debug.assert(!!(type2.flags & 524288 /* Object */)); const readonlyToken = type2.declaration.readonlyToken ? factory.createToken(type2.declaration.readonlyToken.kind) : void 0; const questionToken = type2.declaration.questionToken ? factory.createToken(type2.declaration.questionToken.kind) : void 0; let appropriateConstraintTypeNode; let newTypeVariable; + const needsModifierPreservingWrapper = !isMappedTypeWithKeyofConstraintDeclaration(type2) && !(getModifiersTypeFromMappedType(type2).flags & 2 /* Unknown */) && context.flags & 4 /* GenerateNamesForShadowedTypeParams */ && !(getConstraintTypeFromMappedType(type2).flags & 262144 /* TypeParameter */ && ((_a2 = getConstraintOfTypeParameter(getConstraintTypeFromMappedType(type2))) == null ? void 0 : _a2.flags) & 4194304 /* Index */); if (isMappedTypeWithKeyofConstraintDeclaration(type2)) { if (isHomomorphicMappedTypeWithNonHomomorphicInstantiation(type2) && context.flags & 4 /* GenerateNamesForShadowedTypeParams */) { const newParam = createTypeParameter(createSymbol(262144 /* TypeParameter */, "T")); @@ -49892,6 +50298,11 @@ ${lanes.join("\n")} newTypeVariable = factory.createTypeReferenceNode(name); } appropriateConstraintTypeNode = factory.createTypeOperatorNode(143 /* KeyOfKeyword */, newTypeVariable || typeToTypeNodeHelper(getModifiersTypeFromMappedType(type2), context)); + } else if (needsModifierPreservingWrapper) { + const newParam = createTypeParameter(createSymbol(262144 /* TypeParameter */, "T")); + const name = typeParameterToName(newParam, context); + newTypeVariable = factory.createTypeReferenceNode(name); + appropriateConstraintTypeNode = newTypeVariable; } else { appropriateConstraintTypeNode = typeToTypeNodeHelper(getConstraintTypeFromMappedType(type2), context); } @@ -49922,6 +50333,18 @@ ${lanes.join("\n")} result, factory.createKeywordTypeNode(146 /* NeverKeyword */) ); + } else if (needsModifierPreservingWrapper) { + return factory.createConditionalTypeNode( + typeToTypeNodeHelper(getConstraintTypeFromMappedType(type2), context), + factory.createInferTypeNode(factory.createTypeParameterDeclaration( + /*modifiers*/ + void 0, + factory.cloneNode(newTypeVariable.typeName), + factory.createTypeOperatorNode(143 /* KeyOfKeyword */, typeToTypeNodeHelper(getModifiersTypeFromMappedType(type2), context)) + )), + result, + factory.createKeywordTypeNode(146 /* NeverKeyword */) + ); } return result; } @@ -49973,7 +50396,7 @@ ${lanes.join("\n")} const isStaticMethodSymbol = !!(symbol.flags & 8192 /* Method */) && // typeof static method some(symbol.declarations, (declaration) => isStatic(declaration)); const isNonLocalFunctionSymbol = !!(symbol.flags & 16 /* Function */) && (symbol.parent || // is exported function symbol - forEach(symbol.declarations, (declaration) => declaration.parent.kind === 311 /* SourceFile */ || declaration.parent.kind === 267 /* ModuleBlock */)); + forEach(symbol.declarations, (declaration) => declaration.parent.kind === 312 /* SourceFile */ || declaration.parent.kind === 268 /* ModuleBlock */)); if (isStaticMethodSymbol || isNonLocalFunctionSymbol) { return (!!(context.flags & 4096 /* UseTypeOfFunction */) || ((_a3 = context.visitedTypes) == null ? void 0 : _a3.has(typeId))) && // it is type of the symbol uses itself recursively (!(context.flags & 8 /* UseStructuralFallback */) || isValueSymbolAccessible(symbol, context.enclosingDeclaration)); @@ -50056,12 +50479,12 @@ ${lanes.join("\n")} } if (resolved.callSignatures.length === 1 && !resolved.constructSignatures.length) { const signature = resolved.callSignatures[0]; - const signatureNode = signatureToSignatureDeclarationHelper(signature, 183 /* FunctionType */, context); + const signatureNode = signatureToSignatureDeclarationHelper(signature, 184 /* FunctionType */, context); return signatureNode; } if (resolved.constructSignatures.length === 1 && !resolved.callSignatures.length) { const signature = resolved.constructSignatures[0]; - const signatureNode = signatureToSignatureDeclarationHelper(signature, 184 /* ConstructorType */, context); + const signatureNode = signatureToSignatureDeclarationHelper(signature, 185 /* ConstructorType */, context); return signatureNode; } } @@ -50101,19 +50524,18 @@ ${lanes.join("\n")} const arity = getTypeReferenceArity(type2); const tupleConstituentNodes = mapToTypeNodes(typeArguments.slice(0, arity), context); if (tupleConstituentNodes) { - if (type2.target.labeledElementDeclarations) { - for (let i = 0; i < tupleConstituentNodes.length; i++) { - const flags = type2.target.elementFlags[i]; + const { labeledElementDeclarations } = type2.target; + for (let i = 0; i < tupleConstituentNodes.length; i++) { + const flags = type2.target.elementFlags[i]; + const labeledElementDeclaration = labeledElementDeclarations == null ? void 0 : labeledElementDeclarations[i]; + if (labeledElementDeclaration) { tupleConstituentNodes[i] = factory.createNamedTupleMember( flags & 12 /* Variable */ ? factory.createToken(26 /* DotDotDotToken */) : void 0, - factory.createIdentifier(unescapeLeadingUnderscores(getTupleElementLabel(type2.target.labeledElementDeclarations[i]))), + factory.createIdentifier(unescapeLeadingUnderscores(getTupleElementLabel(labeledElementDeclaration))), flags & 2 /* Optional */ ? factory.createToken(58 /* QuestionToken */) : void 0, flags & 4 /* Rest */ ? factory.createArrayTypeNode(tupleConstituentNodes[i]) : tupleConstituentNodes[i] ); - } - } else { - for (let i = 0; i < Math.min(arity, tupleConstituentNodes.length); i++) { - const flags = type2.target.elementFlags[i]; + } else { tupleConstituentNodes[i] = flags & 12 /* Variable */ ? factory.createRestTypeNode(flags & 4 /* Rest */ ? factory.createArrayTypeNode(tupleConstituentNodes[i]) : tupleConstituentNodes[i]) : flags & 2 /* Optional */ ? factory.createOptionalTypeNode(tupleConstituentNodes[i]) : tupleConstituentNodes[i]; } } @@ -50247,12 +50669,12 @@ ${lanes.join("\n")} } const typeElements = []; for (const signature of resolvedType.callSignatures) { - typeElements.push(signatureToSignatureDeclarationHelper(signature, 178 /* CallSignature */, context)); + typeElements.push(signatureToSignatureDeclarationHelper(signature, 179 /* CallSignature */, context)); } for (const signature of resolvedType.constructSignatures) { if (signature.flags & 4 /* Abstract */) continue; - typeElements.push(signatureToSignatureDeclarationHelper(signature, 179 /* ConstructSignature */, context)); + typeElements.push(signatureToSignatureDeclarationHelper(signature, 180 /* ConstructSignature */, context)); } for (const info of resolvedType.indexInfos) { typeElements.push(indexInfoToIndexSignatureDeclarationHelper(info, context, resolvedType.objectFlags & 1024 /* ReverseMapped */ ? createElidedInformationPlaceholder(context) : void 0)); @@ -50336,39 +50758,41 @@ ${lanes.join("\n")} if (propertySymbol.flags & (16 /* Function */ | 8192 /* Method */) && !getPropertiesOfObjectType(propertyType).length && !isReadonlySymbol(propertySymbol)) { const signatures = getSignaturesOfType(filterType(propertyType, (t) => !(t.flags & 32768 /* Undefined */)), 0 /* Call */); for (const signature of signatures) { - const methodDeclaration = signatureToSignatureDeclarationHelper(signature, 172 /* MethodSignature */, context, { name: propertyName, questionToken: optionalToken }); + const methodDeclaration = signatureToSignatureDeclarationHelper(signature, 173 /* MethodSignature */, context, { name: propertyName, questionToken: optionalToken }); typeElements.push(preserveCommentsOn(methodDeclaration)); } + if (signatures.length || !optionalToken) { + return; + } + } + let propertyTypeNode; + if (shouldUsePlaceholderForProperty(propertySymbol, context)) { + propertyTypeNode = createElidedInformationPlaceholder(context); } else { - let propertyTypeNode; - if (shouldUsePlaceholderForProperty(propertySymbol, context)) { - propertyTypeNode = createElidedInformationPlaceholder(context); - } else { - if (propertyIsReverseMapped) { - context.reverseMappedStack || (context.reverseMappedStack = []); - context.reverseMappedStack.push(propertySymbol); - } - propertyTypeNode = propertyType ? serializeTypeForDeclaration(context, propertyType, propertySymbol, saveEnclosingDeclaration) : factory.createKeywordTypeNode(133 /* AnyKeyword */); - if (propertyIsReverseMapped) { - context.reverseMappedStack.pop(); - } + if (propertyIsReverseMapped) { + context.reverseMappedStack || (context.reverseMappedStack = []); + context.reverseMappedStack.push(propertySymbol); } - const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0; - if (modifiers) { - context.approximateLength += 9; + propertyTypeNode = propertyType ? serializeTypeForDeclaration(context, propertyType, propertySymbol, saveEnclosingDeclaration) : factory.createKeywordTypeNode(133 /* AnyKeyword */); + if (propertyIsReverseMapped) { + context.reverseMappedStack.pop(); } - const propertySignature = factory.createPropertySignature( - modifiers, - propertyName, - optionalToken, - propertyTypeNode - ); - typeElements.push(preserveCommentsOn(propertySignature)); } + const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0; + if (modifiers) { + context.approximateLength += 9; + } + const propertySignature = factory.createPropertySignature( + modifiers, + propertyName, + optionalToken, + propertyTypeNode + ); + typeElements.push(preserveCommentsOn(propertySignature)); function preserveCommentsOn(node) { var _a2; - if (some(propertySymbol.declarations, (d) => d.kind === 354 /* JSDocPropertyTag */)) { - const d = (_a2 = propertySymbol.declarations) == null ? void 0 : _a2.find((d2) => d2.kind === 354 /* JSDocPropertyTag */); + if (some(propertySymbol.declarations, (d) => d.kind === 355 /* JSDocPropertyTag */)) { + const d = (_a2 = propertySymbol.declarations) == null ? void 0 : _a2.find((d2) => d2.kind === 355 /* JSDocPropertyTag */); const commentText = getTextOfJSDocComment(d.comment); if (commentText) { setSyntheticLeadingComments(node, [{ kind: 3 /* MultiLineCommentTrivia */, text: "*\n * " + commentText.replace(/\n/g, "\n * ") + "\n ", pos: -1, end: -1, hasTrailingNewLine: true }]); @@ -50474,6 +50898,7 @@ ${lanes.join("\n")} ); } function signatureToSignatureDeclarationHelper(signature, kind, context, options) { + var _a; const suppressAny = context.flags & 256 /* SuppressAnyReturnType */; if (suppressAny) context.flags &= ~256 /* SuppressAnyReturnType */; @@ -50523,7 +50948,7 @@ ${lanes.join("\n")} } } } - const parameters = (some(expandedParams, (p) => p !== expandedParams[expandedParams.length - 1] && !!(getCheckFlags(p) & 32768 /* RestParameter */)) ? signature.parameters : expandedParams).map((parameter) => symbolToParameterDeclaration(parameter, context, kind === 175 /* Constructor */, options == null ? void 0 : options.privateSymbolVisitor, options == null ? void 0 : options.bundledImports)); + const parameters = (some(expandedParams, (p) => p !== expandedParams[expandedParams.length - 1] && !!(getCheckFlags(p) & 32768 /* RestParameter */)) ? signature.parameters : expandedParams).map((parameter) => symbolToParameterDeclaration(parameter, context, kind === 176 /* Constructor */, options == null ? void 0 : options.privateSymbolVisitor, options == null ? void 0 : options.bundledImports)); const thisParameter = context.flags & 33554432 /* OmitThisParameter */ ? void 0 : tryGetThisParameterDeclaration(signature, context); if (thisParameter) { parameters.unshift(thisParameter); @@ -50544,11 +50969,11 @@ ${lanes.join("\n")} } } let modifiers = options == null ? void 0 : options.modifiers; - if (kind === 184 /* ConstructorType */ && signature.flags & 4 /* Abstract */) { + if (kind === 185 /* ConstructorType */ && signature.flags & 4 /* Abstract */) { const flags = modifiersToFlags(modifiers); modifiers = factory.createModifiersFromModifierFlags(flags | 256 /* Abstract */); } - const node = kind === 178 /* CallSignature */ ? factory.createCallSignature(typeParameters, parameters, returnTypeNode) : kind === 179 /* ConstructSignature */ ? factory.createConstructSignature(typeParameters, parameters, returnTypeNode) : kind === 172 /* MethodSignature */ ? factory.createMethodSignature(modifiers, (options == null ? void 0 : options.name) ?? factory.createIdentifier(""), options == null ? void 0 : options.questionToken, typeParameters, parameters, returnTypeNode) : kind === 173 /* MethodDeclaration */ ? factory.createMethodDeclaration( + const node = kind === 179 /* CallSignature */ ? factory.createCallSignature(typeParameters, parameters, returnTypeNode) : kind === 180 /* ConstructSignature */ ? factory.createConstructSignature(typeParameters, parameters, returnTypeNode) : kind === 173 /* MethodSignature */ ? factory.createMethodSignature(modifiers, (options == null ? void 0 : options.name) ?? factory.createIdentifier(""), options == null ? void 0 : options.questionToken, typeParameters, parameters, returnTypeNode) : kind === 174 /* MethodDeclaration */ ? factory.createMethodDeclaration( modifiers, /*asteriskToken*/ void 0, @@ -50560,25 +50985,25 @@ ${lanes.join("\n")} returnTypeNode, /*body*/ void 0 - ) : kind === 175 /* Constructor */ ? factory.createConstructorDeclaration( + ) : kind === 176 /* Constructor */ ? factory.createConstructorDeclaration( modifiers, parameters, /*body*/ void 0 - ) : kind === 176 /* GetAccessor */ ? factory.createGetAccessorDeclaration( + ) : kind === 177 /* GetAccessor */ ? factory.createGetAccessorDeclaration( modifiers, (options == null ? void 0 : options.name) ?? factory.createIdentifier(""), parameters, returnTypeNode, /*body*/ void 0 - ) : kind === 177 /* SetAccessor */ ? factory.createSetAccessorDeclaration( + ) : kind === 178 /* SetAccessor */ ? factory.createSetAccessorDeclaration( modifiers, (options == null ? void 0 : options.name) ?? factory.createIdentifier(""), parameters, /*body*/ void 0 - ) : kind === 180 /* IndexSignature */ ? factory.createIndexSignature(modifiers, parameters, returnTypeNode) : kind === 323 /* JSDocFunctionType */ ? factory.createJSDocFunctionType(parameters, returnTypeNode) : kind === 183 /* FunctionType */ ? factory.createFunctionTypeNode(typeParameters, parameters, returnTypeNode ?? factory.createTypeReferenceNode(factory.createIdentifier(""))) : kind === 184 /* ConstructorType */ ? factory.createConstructorTypeNode(modifiers, typeParameters, parameters, returnTypeNode ?? factory.createTypeReferenceNode(factory.createIdentifier(""))) : kind === 261 /* FunctionDeclaration */ ? factory.createFunctionDeclaration( + ) : kind === 181 /* IndexSignature */ ? factory.createIndexSignature(modifiers, parameters, returnTypeNode) : kind === 324 /* JSDocFunctionType */ ? factory.createJSDocFunctionType(parameters, returnTypeNode) : kind === 184 /* FunctionType */ ? factory.createFunctionTypeNode(typeParameters, parameters, returnTypeNode ?? factory.createTypeReferenceNode(factory.createIdentifier(""))) : kind === 185 /* ConstructorType */ ? factory.createConstructorTypeNode(modifiers, typeParameters, parameters, returnTypeNode ?? factory.createTypeReferenceNode(factory.createIdentifier(""))) : kind === 262 /* FunctionDeclaration */ ? factory.createFunctionDeclaration( modifiers, /*asteriskToken*/ void 0, @@ -50588,7 +51013,7 @@ ${lanes.join("\n")} returnTypeNode, /*body*/ void 0 - ) : kind === 217 /* FunctionExpression */ ? factory.createFunctionExpression( + ) : kind === 218 /* FunctionExpression */ ? factory.createFunctionExpression( modifiers, /*asteriskToken*/ void 0, @@ -50597,7 +51022,7 @@ ${lanes.join("\n")} parameters, returnTypeNode, factory.createBlock([]) - ) : kind === 218 /* ArrowFunction */ ? factory.createArrowFunction( + ) : kind === 219 /* ArrowFunction */ ? factory.createArrowFunction( modifiers, typeParameters, parameters, @@ -50609,6 +51034,20 @@ ${lanes.join("\n")} if (typeArguments) { node.typeArguments = factory.createNodeArray(typeArguments); } + if (((_a = signature.declaration) == null ? void 0 : _a.kind) === 330 /* JSDocSignature */ && signature.declaration.parent.kind === 346 /* JSDocOverloadTag */) { + const comment = getTextOfNode( + signature.declaration.parent.parent, + /*includeTrivia*/ + true + ).slice(2, -2).split(/\r\n|\n|\r/).map((line) => line.replace(/^\s+/, " ")).join("\n"); + addSyntheticLeadingComment( + node, + 3 /* MultiLineCommentTrivia */, + comment, + /*hasTrailingNewLine*/ + true + ); + } cleanup == null ? void 0 : cleanup(); return node; } @@ -50647,9 +51086,9 @@ ${lanes.join("\n")} return typeParameterToDeclarationWithConstraint(type, context, constraintNode); } function symbolToParameterDeclaration(parameterSymbol, context, preserveModifierFlags, privateSymbolVisitor, bundledImports) { - let parameterDeclaration = getDeclarationOfKind(parameterSymbol, 168 /* Parameter */); + let parameterDeclaration = getDeclarationOfKind(parameterSymbol, 169 /* Parameter */); if (!parameterDeclaration && !isTransientSymbol(parameterSymbol)) { - parameterDeclaration = getDeclarationOfKind(parameterSymbol, 347 /* JSDocParameterTag */); + parameterDeclaration = getDeclarationOfKind(parameterSymbol, 348 /* JSDocParameterTag */); } let parameterType = getTypeOfSymbol(parameterSymbol); if (parameterDeclaration && isRequiredInitializedParameter(parameterDeclaration)) { @@ -50659,7 +51098,7 @@ ${lanes.join("\n")} const modifiers = !(context.flags & 8192 /* OmitParameterModifiers */) && preserveModifierFlags && parameterDeclaration && canHaveModifiers(parameterDeclaration) ? map(getModifiers(parameterDeclaration), factory.cloneNode) : void 0; const isRest = parameterDeclaration && isRestParameter(parameterDeclaration) || getCheckFlags(parameterSymbol) & 32768 /* RestParameter */; const dotDotDotToken = isRest ? factory.createToken(26 /* DotDotDotToken */) : void 0; - const name = parameterDeclaration ? parameterDeclaration.name ? parameterDeclaration.name.kind === 80 /* Identifier */ ? setEmitFlags(factory.cloneNode(parameterDeclaration.name), 16777216 /* NoAsciiEscaping */) : parameterDeclaration.name.kind === 165 /* QualifiedName */ ? setEmitFlags(factory.cloneNode(parameterDeclaration.name.right), 16777216 /* NoAsciiEscaping */) : cloneBindingName(parameterDeclaration.name) : symbolName(parameterSymbol) : symbolName(parameterSymbol); + const name = parameterDeclaration ? parameterDeclaration.name ? parameterDeclaration.name.kind === 80 /* Identifier */ ? setEmitFlags(factory.cloneNode(parameterDeclaration.name), 16777216 /* NoAsciiEscaping */) : parameterDeclaration.name.kind === 166 /* QualifiedName */ ? setEmitFlags(factory.cloneNode(parameterDeclaration.name.right), 16777216 /* NoAsciiEscaping */) : cloneBindingName(parameterDeclaration.name) : symbolName(parameterSymbol) : symbolName(parameterSymbol); const isOptional = parameterDeclaration && isOptionalParameter(parameterDeclaration) || getCheckFlags(parameterSymbol) & 16384 /* OptionalParameter */; const questionToken = isOptional ? factory.createToken(58 /* QuestionToken */) : void 0; const parameterNode = factory.createParameterDeclaration( @@ -50839,11 +51278,11 @@ ${lanes.join("\n")} return top; } function getSpecifierForModuleSymbol(symbol, context, overrideImportMode) { - let file = getDeclarationOfKind(symbol, 311 /* SourceFile */); + let file = getDeclarationOfKind(symbol, 312 /* SourceFile */); if (!file) { const equivalentFileSymbol = firstDefined(symbol.declarations, (d) => getFileSymbolIfFileSymbolExportEqualsContainer(d, symbol)); if (equivalentFileSymbol) { - file = getDeclarationOfKind(equivalentFileSymbol, 311 /* SourceFile */); + file = getDeclarationOfKind(equivalentFileSymbol, 312 /* SourceFile */); } } if (file && file.moduleName !== void 0) { @@ -51323,7 +51762,7 @@ ${lanes.join("\n")} } return transformed === existing ? setTextRange(factory.cloneNode(existing), existing) : transformed; function visitExistingNodeTreeSymbols(node) { - if (isJSDocAllType(node) || node.kind === 325 /* JSDocNamepathType */) { + if (isJSDocAllType(node) || node.kind === 326 /* JSDocNamepathType */) { return factory.createKeywordTypeNode(133 /* AnyKeyword */); } if (isJSDocUnknownType(node)) { @@ -51487,13 +51926,13 @@ ${lanes.join("\n")} function symbolTableToDeclarationStatements(symbolTable, context, bundled) { const serializePropertySymbolForClass = makeSerializePropertySymbol( factory.createPropertyDeclaration, - 173 /* MethodDeclaration */, + 174 /* MethodDeclaration */, /*useAccessors*/ true ); const serializePropertySymbolForInterfaceWorker = makeSerializePropertySymbol( (mods, name, question, type) => factory.createPropertySignature(mods, name, question, type), - 172 /* MethodSignature */, + 173 /* MethodSignature */, /*useAccessors*/ false ); @@ -51762,7 +52201,7 @@ ${lanes.join("\n")} if (!(symbol.flags & 16 /* Function */) && isTypeRepresentableAsFunctionNamespaceMerge(type, symbol)) { serializeAsFunctionNamespaceMerge(type, symbol, localName, modifierFlags); } else { - const flags = !(symbol.flags & 2 /* BlockScopedVariable */) ? ((_a = symbol.parent) == null ? void 0 : _a.valueDeclaration) && isSourceFile((_b = symbol.parent) == null ? void 0 : _b.valueDeclaration) ? 2 /* Const */ : void 0 : isConstVariable(symbol) ? 2 /* Const */ : 1 /* Let */; + const flags = !(symbol.flags & 2 /* BlockScopedVariable */) ? ((_a = symbol.parent) == null ? void 0 : _a.valueDeclaration) && isSourceFile((_b = symbol.parent) == null ? void 0 : _b.valueDeclaration) ? 2 /* Const */ : void 0 : isConstantVariable(symbol) ? 2 /* Const */ : 1 /* Let */; const name = needsPostExportDefault || !(symbol.flags & 4 /* Property */) ? localName : getUnusedName(localName, symbol); let textRange = symbol.declarations && find(symbol.declarations, (d) => isVariableDeclaration(d)); if (textRange && isVariableDeclarationList(textRange.parent) && textRange.parent.declarations.length === 1) { @@ -51908,7 +52347,7 @@ ${lanes.join("\n")} if (additionalModifierFlags & 1 /* Export */ && enclosingDeclaration2 && (isExportingScope(enclosingDeclaration2) || isModuleDeclaration(enclosingDeclaration2)) && canHaveExportModifier(node)) { newModifierFlags |= 1 /* Export */; } - if (addingDeclare && !(newModifierFlags & 1 /* Export */) && (!enclosingDeclaration2 || !(enclosingDeclaration2.flags & 16777216 /* Ambient */)) && (isEnumDeclaration(node) || isVariableStatement(node) || isFunctionDeclaration(node) || isClassDeclaration(node) || isModuleDeclaration(node))) { + if (addingDeclare && !(newModifierFlags & 1 /* Export */) && (!enclosingDeclaration2 || !(enclosingDeclaration2.flags & 33554432 /* Ambient */)) && (isEnumDeclaration(node) || isVariableStatement(node) || isFunctionDeclaration(node) || isClassDeclaration(node) || isModuleDeclaration(node))) { newModifierFlags |= 2 /* Ambient */; } if (additionalModifierFlags & 1024 /* Default */ && (isClassDeclaration(node) || isInterfaceDeclaration(node) || isFunctionDeclaration(node))) { @@ -51952,8 +52391,8 @@ ${lanes.join("\n")} const baseTypes = getBaseTypes(interfaceType); const baseType = length(baseTypes) ? getIntersectionType(baseTypes) : void 0; const members = flatMap(getPropertiesOfType(interfaceType), (p) => serializePropertySymbolForInterface(p, baseType)); - const callSignatures = serializeSignatures(0 /* Call */, interfaceType, baseType, 178 /* CallSignature */); - const constructSignatures = serializeSignatures(1 /* Construct */, interfaceType, baseType, 179 /* ConstructSignature */); + const callSignatures = serializeSignatures(0 /* Call */, interfaceType, baseType, 179 /* CallSignature */); + const constructSignatures = serializeSignatures(1 /* Construct */, interfaceType, baseType, 180 /* ConstructSignature */); const indexSignatures = serializeIndexSignatures(interfaceType, baseType); const heritageClauses = !length(baseTypes) ? void 0 : [factory.createHeritageClause(96 /* ExtendsKeyword */, mapDefined(baseTypes, (b) => trySerializeAsTypeReference(b, 111551 /* Value */)))]; addResult(factory.createInterfaceDeclaration( @@ -51970,7 +52409,7 @@ ${lanes.join("\n")} return !exports ? [] : filter(arrayFrom(exports.values()), (m) => isNamespaceMember(m) && isIdentifierText(m.escapedName, 99 /* ESNext */)); } function isTypeOnlyNamespace(symbol) { - return every(getNamespaceMembersForSerialization(symbol), (m) => !(getAllSymbolFlags(resolveSymbol(m)) & 111551 /* Value */)); + return every(getNamespaceMembersForSerialization(symbol), (m) => !(getSymbolFlags(resolveSymbol(m)) & 111551 /* Value */)); } function serializeModule(symbol, symbolName2, modifierFlags) { const members = getNamespaceMembersForSerialization(symbol); @@ -52018,7 +52457,7 @@ ${lanes.join("\n")} void 0, factory.createIdentifier(localName), nsBody, - 16 /* Namespace */ + 32 /* Namespace */ ), 0 /* None */); } } @@ -52035,7 +52474,7 @@ ${lanes.join("\n")} function serializeAsFunctionNamespaceMerge(type, symbol, localName, modifierFlags) { const signatures = getSignaturesOfType(type, 0 /* Call */); for (const sig of signatures) { - const decl = signatureToSignatureDeclarationHelper(sig, 261 /* FunctionDeclaration */, context, { name: factory.createIdentifier(localName), privateSymbolVisitor: includePrivateSymbol, bundledImports: bundled }); + const decl = signatureToSignatureDeclarationHelper(sig, 262 /* FunctionDeclaration */, context, { name: factory.createIdentifier(localName), privateSymbolVisitor: includePrivateSymbol, bundledImports: bundled }); addResult(setTextRange(decl, getSignatureTextRangeLocation(sig)), modifierFlags); } if (!(symbol.flags & (512 /* ValueModule */ | 1024 /* NamespaceModule */) && !!symbol.exports && !!symbol.exports.size)) { @@ -52075,7 +52514,7 @@ ${lanes.join("\n")} void 0, factory.createIdentifier(localName), factory.createModuleBlock([]), - 16 /* Namespace */ + 32 /* Namespace */ ); setParent(fakespace, enclosingDeclaration); fakespace.locals = createSymbolTable(props); @@ -52219,7 +52658,7 @@ ${lanes.join("\n")} [], /*body*/ void 0 - )] : serializeSignatures(1 /* Construct */, staticType, staticBaseType, 175 /* Constructor */); + )] : serializeSignatures(1 /* Construct */, staticType, staticBaseType, 176 /* Constructor */); const indexSignatures = serializeIndexSignatures(classType, baseTypes[0]); context.enclosingDeclaration = oldEnclosing; addResult(setTextRange(factory.createClassDeclaration( @@ -52271,8 +52710,8 @@ ${lanes.join("\n")} const targetName = getInternalSymbolName(target, verbatimTargetName); includePrivateSymbol(target); switch (node.kind) { - case 207 /* BindingElement */: - if (((_b = (_a = node.parent) == null ? void 0 : _a.parent) == null ? void 0 : _b.kind) === 259 /* VariableDeclaration */) { + case 208 /* BindingElement */: + if (((_b = (_a = node.parent) == null ? void 0 : _a.parent) == null ? void 0 : _b.kind) === 260 /* VariableDeclaration */) { const specifier2 = getSpecifierForModuleSymbol(target.parent || target, context); const { propertyName } = node; addResult(factory.createImportDeclaration( @@ -52298,15 +52737,15 @@ ${lanes.join("\n")} } Debug.failBadSyntaxKind(((_c = node.parent) == null ? void 0 : _c.parent) || node, "Unhandled binding element grandparent kind in declaration serialization"); break; - case 303 /* ShorthandPropertyAssignment */: - if (((_e = (_d = node.parent) == null ? void 0 : _d.parent) == null ? void 0 : _e.kind) === 225 /* BinaryExpression */) { + case 304 /* ShorthandPropertyAssignment */: + if (((_e = (_d = node.parent) == null ? void 0 : _d.parent) == null ? void 0 : _e.kind) === 226 /* BinaryExpression */) { serializeExportSpecifier( unescapeLeadingUnderscores(symbol.escapedName), targetName ); } break; - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: if (isPropertyAccessExpression(node.initializer)) { const initializer = node.initializer; const uniqueName = factory.createUniqueName(localName); @@ -52329,7 +52768,7 @@ ${lanes.join("\n")} ), modifierFlags); break; } - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: if (target.escapedName === "export=" /* ExportEquals */ && some(target.declarations, (d) => isSourceFile(d) && isJsonSourceFile(d))) { serializeMaybeAliasAssignment(symbol); break; @@ -52350,10 +52789,10 @@ ${lanes.join("\n")} ) : factory.createExternalModuleReference(factory.createStringLiteral(getSpecifierForModuleSymbol(target, context))) ), isLocalImport ? modifierFlags : 0 /* None */); break; - case 269 /* NamespaceExportDeclaration */: + case 270 /* NamespaceExportDeclaration */: addResult(factory.createNamespaceExportDeclaration(idText(node.name)), 0 /* None */); break; - case 272 /* ImportClause */: { + case 273 /* ImportClause */: { const generatedSpecifier = getSpecifierForModuleSymbol(target.parent || target, context); const specifier2 = bundled ? factory.createStringLiteral(generatedSpecifier) : node.parent.moduleSpecifier; addResult(factory.createImportDeclaration( @@ -52371,7 +52810,7 @@ ${lanes.join("\n")} ), 0 /* None */); break; } - case 273 /* NamespaceImport */: { + case 274 /* NamespaceImport */: { const generatedSpecifier = getSpecifierForModuleSymbol(target.parent || target, context); const specifier2 = bundled ? factory.createStringLiteral(generatedSpecifier) : node.parent.parent.moduleSpecifier; addResult(factory.createImportDeclaration( @@ -52389,7 +52828,7 @@ ${lanes.join("\n")} ), 0 /* None */); break; } - case 279 /* NamespaceExport */: + case 280 /* NamespaceExport */: addResult(factory.createExportDeclaration( /*modifiers*/ void 0, @@ -52399,7 +52838,7 @@ ${lanes.join("\n")} factory.createStringLiteral(getSpecifierForModuleSymbol(target, context)) ), 0 /* None */); break; - case 275 /* ImportSpecifier */: { + case 276 /* ImportSpecifier */: { const generatedSpecifier = getSpecifierForModuleSymbol(target.parent || target, context); const specifier2 = bundled ? factory.createStringLiteral(generatedSpecifier) : node.parent.parent.parent.moduleSpecifier; addResult(factory.createImportDeclaration( @@ -52424,7 +52863,7 @@ ${lanes.join("\n")} ), 0 /* None */); break; } - case 280 /* ExportSpecifier */: + case 281 /* ExportSpecifier */: const specifier = node.parent.parent.moduleSpecifier; serializeExportSpecifier( unescapeLeadingUnderscores(symbol.escapedName), @@ -52432,12 +52871,12 @@ ${lanes.join("\n")} specifier && isStringLiteralLike(specifier) ? factory.createStringLiteral(specifier.text) : void 0 ); break; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: serializeMaybeAliasAssignment(symbol); break; - case 225 /* BinaryExpression */: - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 226 /* BinaryExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: if (symbol.escapedName === "default" /* Default */ || symbol.escapedName === "export=" /* ExportEquals */) { serializeMaybeAliasAssignment(symbol); } else { @@ -52544,7 +52983,7 @@ ${lanes.join("\n")} void 0, serializeTypeForDeclaration(context, typeToSerialize, symbol, enclosingDeclaration, includePrivateSymbol, bundled) ) - ], ((_a = context.enclosingDeclaration) == null ? void 0 : _a.kind) === 266 /* ModuleDeclaration */ ? 1 /* Let */ : 2 /* Const */) + ], ((_a = context.enclosingDeclaration) == null ? void 0 : _a.kind) === 267 /* ModuleDeclaration */ ? 1 /* Let */ : 2 /* Const */) ); addResult( statement, @@ -52917,10 +53356,10 @@ ${lanes.join("\n")} return void 0; } function isTopLevelInExternalModuleAugmentation(node) { - return node && node.parent && node.parent.kind === 267 /* ModuleBlock */ && isExternalModuleAugmentation(node.parent.parent); + return node && node.parent && node.parent.kind === 268 /* ModuleBlock */ && isExternalModuleAugmentation(node.parent.parent); } function isDefaultBindingContext(location) { - return location.kind === 311 /* SourceFile */ || isAmbientModule(location); + return location.kind === 312 /* SourceFile */ || isAmbientModule(location); } function getNameOfSymbolFromNameType(symbol, context) { const nameType = getSymbolLinks(symbol).nameType; @@ -52968,17 +53407,17 @@ ${lanes.join("\n")} if (!declaration) { declaration = symbol.declarations[0]; } - if (declaration.parent && declaration.parent.kind === 259 /* VariableDeclaration */) { + if (declaration.parent && declaration.parent.kind === 260 /* VariableDeclaration */) { return declarationNameToString(declaration.parent.name); } switch (declaration.kind) { - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: if (context && !context.encounteredError && !(context.flags & 131072 /* AllowAnonymousIdentifier */)) { context.encounteredError = true; } - return declaration.kind === 230 /* ClassExpression */ ? "(Anonymous class)" : "(Anonymous function)"; + return declaration.kind === 231 /* ClassExpression */ ? "(Anonymous class)" : "(Anonymous function)"; } } const name = getNameOfSymbolFromNameType(symbol, context); @@ -52995,66 +53434,66 @@ ${lanes.join("\n")} return false; function determineIfDeclarationIsVisible() { switch (node.kind) { - case 344 /* JSDocCallbackTag */: - case 352 /* JSDocTypedefTag */: - case 346 /* JSDocEnumTag */: + case 345 /* JSDocCallbackTag */: + case 353 /* JSDocTypedefTag */: + case 347 /* JSDocEnumTag */: return !!(node.parent && node.parent.parent && node.parent.parent.parent && isSourceFile(node.parent.parent.parent)); - case 207 /* BindingElement */: + case 208 /* BindingElement */: return isDeclarationVisible(node.parent.parent); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: if (isBindingPattern(node.name) && !node.name.elements.length) { return false; } - case 266 /* ModuleDeclaration */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 261 /* FunctionDeclaration */: - case 265 /* EnumDeclaration */: - case 270 /* ImportEqualsDeclaration */: + case 267 /* ModuleDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 262 /* FunctionDeclaration */: + case 266 /* EnumDeclaration */: + case 271 /* ImportEqualsDeclaration */: if (isExternalModuleAugmentation(node)) { return true; } const parent2 = getDeclarationContainer(node); - if (!(getCombinedModifierFlags(node) & 1 /* Export */) && !(node.kind !== 270 /* ImportEqualsDeclaration */ && parent2.kind !== 311 /* SourceFile */ && parent2.flags & 16777216 /* Ambient */)) { + if (!(getCombinedModifierFlagsCached(node) & 1 /* Export */) && !(node.kind !== 271 /* ImportEqualsDeclaration */ && parent2.kind !== 312 /* SourceFile */ && parent2.flags & 33554432 /* Ambient */)) { return isGlobalSourceFile(parent2); } return isDeclarationVisible(parent2); - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: if (hasEffectiveModifier(node, 8 /* Private */ | 16 /* Protected */)) { return false; } - case 175 /* Constructor */: - case 179 /* ConstructSignature */: - case 178 /* CallSignature */: - case 180 /* IndexSignature */: - case 168 /* Parameter */: - case 267 /* ModuleBlock */: - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 186 /* TypeLiteral */: - case 182 /* TypeReference */: - case 187 /* ArrayType */: - case 188 /* TupleType */: - case 191 /* UnionType */: - case 192 /* IntersectionType */: - case 195 /* ParenthesizedType */: - case 201 /* NamedTupleMember */: + case 176 /* Constructor */: + case 180 /* ConstructSignature */: + case 179 /* CallSignature */: + case 181 /* IndexSignature */: + case 169 /* Parameter */: + case 268 /* ModuleBlock */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 187 /* TypeLiteral */: + case 183 /* TypeReference */: + case 188 /* ArrayType */: + case 189 /* TupleType */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: + case 196 /* ParenthesizedType */: + case 202 /* NamedTupleMember */: return isDeclarationVisible(node.parent); - case 272 /* ImportClause */: - case 273 /* NamespaceImport */: - case 275 /* ImportSpecifier */: + case 273 /* ImportClause */: + case 274 /* NamespaceImport */: + case 276 /* ImportSpecifier */: return false; - case 167 /* TypeParameter */: - case 311 /* SourceFile */: - case 269 /* NamespaceExportDeclaration */: + case 168 /* TypeParameter */: + case 312 /* SourceFile */: + case 270 /* NamespaceExportDeclaration */: return true; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return false; default: return false; @@ -53063,7 +53502,7 @@ ${lanes.join("\n")} } function collectLinkedAliases(node, setVisibility) { let exportSymbol; - if (node.parent && node.parent.kind === 276 /* ExportAssignment */) { + if (node.parent && node.parent.kind === 277 /* ExportAssignment */) { exportSymbol = resolveName( node, node.escapedText, @@ -53074,7 +53513,7 @@ ${lanes.join("\n")} /*isUse*/ false ); - } else if (node.parent.kind === 280 /* ExportSpecifier */) { + } else if (node.parent.kind === 281 /* ExportSpecifier */) { exportSymbol = getTargetOfExportSpecifier(node.parent, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */); } let result; @@ -53178,12 +53617,12 @@ ${lanes.join("\n")} function getDeclarationContainer(node) { return findAncestor(getRootDeclaration(node), (node2) => { switch (node2.kind) { - case 259 /* VariableDeclaration */: - case 260 /* VariableDeclarationList */: - case 275 /* ImportSpecifier */: - case 274 /* NamedImports */: - case 273 /* NamespaceImport */: - case 272 /* ImportClause */: + case 260 /* VariableDeclaration */: + case 261 /* VariableDeclarationList */: + case 276 /* ImportSpecifier */: + case 275 /* NamedImports */: + case 274 /* NamespaceImport */: + case 273 /* ImportClause */: return false; default: return true; @@ -53202,6 +53641,17 @@ ${lanes.join("\n")} var _a; return getTypeOfPropertyOfType(type, name) || ((_a = getApplicableIndexInfoForName(type, name)) == null ? void 0 : _a.type) || unknownType; } + function getTypeOfPropertyOrIndexSignatureOfType(type, name) { + var _a; + let propType; + return getTypeOfPropertyOfType(type, name) || (propType = (_a = getApplicableIndexInfoForName(type, name)) == null ? void 0 : _a.type) && addOptionality( + propType, + /*isProperty*/ + true, + /*isOptional*/ + true + ); + } function isTypeAny(type) { return type && (type.flags & 1 /* Any */) !== 0; } @@ -53301,23 +53751,23 @@ ${lanes.join("\n")} function getParentElementAccess(node) { const ancestor = node.parent.parent; switch (ancestor.kind) { - case 207 /* BindingElement */: - case 302 /* PropertyAssignment */: + case 208 /* BindingElement */: + case 303 /* PropertyAssignment */: return getSyntheticElementAccess(ancestor); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return getSyntheticElementAccess(node.parent); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return ancestor.initializer; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return ancestor.right; } } function getDestructuringPropertyName(node) { const parent2 = node.parent; - if (node.kind === 207 /* BindingElement */ && parent2.kind === 205 /* ObjectBindingPattern */) { + if (node.kind === 208 /* BindingElement */ && parent2.kind === 206 /* ObjectBindingPattern */) { return getLiteralPropertyNameText(node.propertyName || node.name); } - if (node.kind === 302 /* PropertyAssignment */ || node.kind === 303 /* ShorthandPropertyAssignment */) { + if (node.kind === 303 /* PropertyAssignment */ || node.kind === 304 /* ShorthandPropertyAssignment */) { return getLiteralPropertyNameText(node.name); } return "" + parent2.elements.indexOf(node); @@ -53336,17 +53786,17 @@ ${lanes.join("\n")} return parentType; } const pattern = declaration.parent; - if (strictNullChecks && declaration.flags & 16777216 /* Ambient */ && isParameterDeclaration(declaration)) { + if (strictNullChecks && declaration.flags & 33554432 /* Ambient */ && isParameterDeclaration(declaration)) { parentType = getNonNullableType(parentType); } else if (strictNullChecks && pattern.parent.initializer && !(getTypeFacts(getTypeOfInitializer(pattern.parent.initializer)) & 65536 /* EQUndefined */)) { parentType = getTypeWithFacts(parentType, 524288 /* NEUndefined */); } let type; - if (pattern.kind === 205 /* ObjectBindingPattern */) { + if (pattern.kind === 206 /* ObjectBindingPattern */) { if (declaration.dotDotDotToken) { parentType = getReducedType(parentType); if (parentType.flags & 2 /* Unknown */ || !isValidSpreadType(parentType)) { - error(declaration, Diagnostics.Rest_types_may_only_be_created_from_object_types); + error2(declaration, Diagnostics.Rest_types_may_only_be_created_from_object_types); return errorType; } const literalMembers = []; @@ -53406,13 +53856,13 @@ ${lanes.join("\n")} /*excludeJSDocTypeAssertions*/ true ); - return expr.kind === 208 /* ArrayLiteralExpression */ && expr.elements.length === 0; + return expr.kind === 209 /* ArrayLiteralExpression */ && expr.elements.length === 0; } function addOptionality(type, isProperty = false, isOptional = true) { return strictNullChecks && isOptional ? getOptionalType(type, isProperty) : type; } function getTypeForVariableLikeDeclaration(declaration, includeOptionality, checkMode) { - if (isVariableDeclaration(declaration) && declaration.parent.parent.kind === 248 /* ForInStatement */) { + if (isVariableDeclaration(declaration) && declaration.parent.parent.kind === 249 /* ForInStatement */) { const indexType = getIndexType(getNonNullableTypeIfNeeded(checkExpression( declaration.parent.parent.expression, /*checkMode*/ @@ -53420,7 +53870,7 @@ ${lanes.join("\n")} ))); return indexType.flags & (262144 /* TypeParameter */ | 4194304 /* Index */) ? getExtractStringType(indexType) : stringType; } - if (isVariableDeclaration(declaration) && declaration.parent.parent.kind === 249 /* ForOfStatement */) { + if (isVariableDeclaration(declaration) && declaration.parent.parent.kind === 250 /* ForOfStatement */) { const forOfStatement = declaration.parent.parent; return checkRightHandSideOfForOf(forOfStatement) || anyType; } @@ -53439,8 +53889,8 @@ ${lanes.join("\n")} if (declaredType) { return addOptionality(declaredType, isProperty, isOptional); } - if ((noImplicitAny || isInJSFile(declaration)) && isVariableDeclaration(declaration) && !isBindingPattern(declaration.name) && !(getCombinedModifierFlags(declaration) & 1 /* Export */) && !(declaration.flags & 16777216 /* Ambient */)) { - if (!(getCombinedNodeFlags(declaration) & 2 /* Const */) && (!declaration.initializer || isNullOrUndefined3(declaration.initializer))) { + if ((noImplicitAny || isInJSFile(declaration)) && isVariableDeclaration(declaration) && !isBindingPattern(declaration.name) && !(getCombinedModifierFlagsCached(declaration) & 1 /* Export */) && !(declaration.flags & 33554432 /* Ambient */)) { + if (!(getCombinedNodeFlagsCached(declaration) & 6 /* Constant */) && (!declaration.initializer || isNullOrUndefined3(declaration.initializer))) { return autoType; } if (declaration.initializer && isEmptyArrayLiteral2(declaration.initializer)) { @@ -53449,8 +53899,8 @@ ${lanes.join("\n")} } if (isParameter(declaration)) { const func = declaration.parent; - if (func.kind === 177 /* SetAccessor */ && hasBindableName(func)) { - const getter = getDeclarationOfKind(getSymbolOfDeclaration(declaration.parent), 176 /* GetAccessor */); + if (func.kind === 178 /* SetAccessor */ && hasBindableName(func)) { + const getter = getDeclarationOfKind(getSymbolOfDeclaration(declaration.parent), 177 /* GetAccessor */); if (getter) { const getterSignature = getSignatureFromDeclaration(getter); const thisParameter = getAccessorThisParameter(func); @@ -53524,7 +53974,7 @@ ${lanes.join("\n")} const links = getSymbolLinks(symbol); if (links.isConstructorDeclaredProperty === void 0) { links.isConstructorDeclaredProperty = false; - links.isConstructorDeclaredProperty = !!getDeclaringConstructor(symbol) && every(symbol.declarations, (declaration) => isBinaryExpression(declaration) && isPossiblyAliasedThisProperty(declaration) && (declaration.left.kind !== 211 /* ElementAccessExpression */ || isStringOrNumericLiteralLike(declaration.left.argumentExpression)) && !getAnnotatedTypeForAssignmentDeclaration( + links.isConstructorDeclaredProperty = !!getDeclaringConstructor(symbol) && every(symbol.declarations, (declaration) => isBinaryExpression(declaration) && isPossiblyAliasedThisProperty(declaration) && (declaration.left.kind !== 212 /* ElementAccessExpression */ || isStringOrNumericLiteralLike(declaration.left.argumentExpression)) && !getAnnotatedTypeForAssignmentDeclaration( /*declaredType*/ void 0, declaration, @@ -53552,7 +54002,7 @@ ${lanes.join("\n")} /*includeClassComputedPropertyName*/ false ); - if (container && (container.kind === 175 /* Constructor */ || isJSConstructor(container))) { + if (container && (container.kind === 176 /* Constructor */ || isJSConstructor(container))) { return container; } } @@ -53579,7 +54029,7 @@ ${lanes.join("\n")} reference.flowNode = staticBlock.returnFlowNode; const flowType = getFlowTypeOfProperty(reference, symbol); if (noImplicitAny && (flowType === autoType || flowType === autoArrayType)) { - error(symbol.valueDeclaration, Diagnostics.Member_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType)); + error2(symbol.valueDeclaration, Diagnostics.Member_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType)); } if (everyType(flowType, isNullableType)) { continue; @@ -53595,7 +54045,7 @@ ${lanes.join("\n")} reference.flowNode = constructor.returnFlowNode; const flowType = getFlowTypeOfProperty(reference, symbol); if (noImplicitAny && (flowType === autoType || flowType === autoArrayType)) { - error(symbol.valueDeclaration, Diagnostics.Member_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType)); + error2(symbol.valueDeclaration, Diagnostics.Member_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType)); } return everyType(flowType, isNullableType) ? void 0 : convertAutoToAny(flowType); } @@ -53667,7 +54117,7 @@ ${lanes.join("\n")} false, definedInMethod && !definedInConstructor )); - if (symbol.valueDeclaration && filterType(widened, (t) => !!(t.flags & ~98304 /* Nullable */)) === neverType) { + if (symbol.valueDeclaration && isInJSFile(symbol.valueDeclaration) && filterType(widened, (t) => !!(t.flags & ~98304 /* Nullable */)) === neverType) { reportImplicitAny(symbol.valueDeclaration, anyType); return anyType; } @@ -53770,11 +54220,11 @@ ${lanes.join("\n")} const unescapedName = unescapeLeadingUnderscores(s.escapedName); const exportedMemberName = ((_a = tryCast(exportedMember.valueDeclaration, isNamedDeclaration)) == null ? void 0 : _a.name) || exportedMember.valueDeclaration; addRelatedInfo( - error(s.valueDeclaration, Diagnostics.Duplicate_identifier_0, unescapedName), + error2(s.valueDeclaration, Diagnostics.Duplicate_identifier_0, unescapedName), createDiagnosticForNode(exportedMemberName, Diagnostics._0_was_also_declared_here, unescapedName) ); addRelatedInfo( - error(exportedMemberName, Diagnostics.Duplicate_identifier_0, unescapedName), + error2(exportedMemberName, Diagnostics.Duplicate_identifier_0, unescapedName), createDiagnosticForNode(s.valueDeclaration, Diagnostics._0_was_also_declared_here, unescapedName) ); } @@ -53832,7 +54282,7 @@ ${lanes.join("\n")} /*includeClassComputedPropertyName*/ false ); - return thisContainer.kind === 175 /* Constructor */ || thisContainer.kind === 261 /* FunctionDeclaration */ || thisContainer.kind === 217 /* FunctionExpression */ && !isPrototypePropertyAssignment(thisContainer.parent); + return thisContainer.kind === 176 /* Constructor */ || thisContainer.kind === 262 /* FunctionDeclaration */ || thisContainer.kind === 218 /* FunctionExpression */ && !isPrototypePropertyAssignment(thisContainer.parent); } function getConstructorDefinedThisAssignmentTypes(types, declarations) { Debug.assert(types.length === declarations.length); @@ -53906,7 +54356,7 @@ ${lanes.join("\n")} function getTypeFromArrayBindingPattern(pattern, includePatternInType, reportErrors2) { const elements = pattern.elements; const lastElement = lastOrUndefined(elements); - const restElement = lastElement && lastElement.kind === 207 /* BindingElement */ && lastElement.dotDotDotToken ? lastElement : void 0; + const restElement = lastElement && lastElement.kind === 208 /* BindingElement */ && lastElement.dotDotDotToken ? lastElement : void 0; if (elements.length === 0 || elements.length === 1 && restElement) { return languageVersion >= 2 /* ES2015 */ ? createIterableType(anyType) : anyArrayType; } @@ -53922,7 +54372,7 @@ ${lanes.join("\n")} return result; } function getTypeFromBindingPattern(pattern, includePatternInType = false, reportErrors2 = false) { - return pattern.kind === 205 /* ObjectBindingPattern */ ? getTypeFromObjectBindingPattern(pattern, includePatternInType, reportErrors2) : getTypeFromArrayBindingPattern(pattern, includePatternInType, reportErrors2); + return pattern.kind === 206 /* ObjectBindingPattern */ ? getTypeFromObjectBindingPattern(pattern, includePatternInType, reportErrors2) : getTypeFromArrayBindingPattern(pattern, includePatternInType, reportErrors2); } function getWidenedTypeForVariableLikeDeclaration(declaration, reportErrors2) { return widenTypeForVariableLikeDeclaration(getTypeForVariableLikeDeclaration( @@ -53963,7 +54413,7 @@ ${lanes.join("\n")} } function declarationBelongsToPrivateAmbientMember(declaration) { const root = getRootDeclaration(declaration); - const memberDeclaration = root.kind === 168 /* Parameter */ ? root.parent : root; + const memberDeclaration = root.kind === 169 /* Parameter */ ? root.parent : root; return isPrivateWithinAmbient(memberDeclaration); } function tryGetTypeFromEffectiveTypeNode(node) { @@ -54037,7 +54487,7 @@ ${lanes.join("\n")} return reportCircularityError(symbol); } let type; - if (declaration.kind === 276 /* ExportAssignment */) { + if (declaration.kind === 277 /* ExportAssignment */) { type = widenTypeForVariableLikeDeclaration(tryGetTypeFromEffectiveTypeNode(declaration) || checkExpressionCached(declaration.expression), declaration); } else if (isBinaryExpression(declaration) || isInJSFile(declaration) && (isCallExpression(declaration) || (isPropertyAccessExpression(declaration) || isBindableStaticElementAccessExpression(declaration)) && isBinaryExpression(declaration.parent))) { type = getWidenedTypeForAssignmentDeclaration(symbol); @@ -54078,13 +54528,13 @@ ${lanes.join("\n")} function getAnnotatedAccessorTypeNode(accessor) { if (accessor) { switch (accessor.kind) { - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: const getterTypeAnnotation = getEffectiveReturnTypeNode(accessor); return getterTypeAnnotation; - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: const setterTypeAnnotation = getEffectiveSetAccessorTypeAnnotationNode(accessor); return setterTypeAnnotation; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: Debug.assert(hasAccessorModifier(accessor)); const accessorTypeAnnotation = getEffectiveTypeAnnotationNode(accessor); return accessorTypeAnnotation; @@ -54109,9 +54559,9 @@ ${lanes.join("\n")} if (!pushTypeResolution(symbol, 0 /* Type */)) { return errorType; } - const getter = getDeclarationOfKind(symbol, 176 /* GetAccessor */); - const setter = getDeclarationOfKind(symbol, 177 /* SetAccessor */); - const accessor = tryCast(getDeclarationOfKind(symbol, 171 /* PropertyDeclaration */), isAutoAccessorPropertyDeclaration); + const getter = getDeclarationOfKind(symbol, 177 /* GetAccessor */); + const setter = getDeclarationOfKind(symbol, 178 /* SetAccessor */); + const accessor = tryCast(getDeclarationOfKind(symbol, 172 /* PropertyDeclaration */), isAutoAccessorPropertyDeclaration); let type = getter && isInJSFile(getter) && getTypeForDeclarationFromJSDocComment(getter) || getAnnotatedAccessorType(getter) || getAnnotatedAccessorType(setter) || getAnnotatedAccessorType(accessor) || getter && getter.body && getReturnTypeFromBody(getter) || accessor && accessor.initializer && getWidenedTypeForVariableLikeDeclaration( accessor, /*reportErrors*/ @@ -54129,13 +54579,13 @@ ${lanes.join("\n")} } if (!popTypeResolution()) { if (getAnnotatedAccessorTypeNode(getter)) { - error(getter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); + error2(getter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); } else if (getAnnotatedAccessorTypeNode(setter)) { - error(setter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); + error2(setter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); } else if (getAnnotatedAccessorTypeNode(accessor)) { - error(setter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); + error2(setter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); } else if (getter && noImplicitAny) { - error(getter, Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, symbolToString(symbol)); + error2(getter, Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, symbolToString(symbol)); } type = anyType; } @@ -54149,11 +54599,11 @@ ${lanes.join("\n")} if (!pushTypeResolution(symbol, 8 /* WriteType */)) { return errorType; } - const setter = getDeclarationOfKind(symbol, 177 /* SetAccessor */) ?? tryCast(getDeclarationOfKind(symbol, 171 /* PropertyDeclaration */), isAutoAccessorPropertyDeclaration); + const setter = getDeclarationOfKind(symbol, 178 /* SetAccessor */) ?? tryCast(getDeclarationOfKind(symbol, 172 /* PropertyDeclaration */), isAutoAccessorPropertyDeclaration); let writeType = getAnnotatedAccessorType(setter); if (!popTypeResolution()) { if (getAnnotatedAccessorTypeNode(setter)) { - error(setter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); + error2(setter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); } writeType = anyType; } @@ -54189,7 +54639,7 @@ ${lanes.join("\n")} const declaration = symbol.valueDeclaration; if (symbol.flags & 1536 /* Module */ && isShorthandAmbientModuleSymbol(symbol)) { return anyType; - } else if (declaration && (declaration.kind === 225 /* BinaryExpression */ || isAccessExpression(declaration) && declaration.parent.kind === 225 /* BinaryExpression */)) { + } else if (declaration && (declaration.kind === 226 /* BinaryExpression */ || isAccessExpression(declaration) && declaration.parent.kind === 226 /* BinaryExpression */)) { return getWidenedTypeForAssignmentDeclaration(symbol); } else if (symbol.flags & 512 /* ValueModule */ && declaration && isSourceFile(declaration) && declaration.commonJsModuleIndicator) { const resolvedModule = resolveExternalModuleSymbol(symbol); @@ -54231,7 +54681,7 @@ ${lanes.join("\n")} true ); const declaredType = firstDefined(exportSymbol == null ? void 0 : exportSymbol.declarations, (d) => isExportAssignment(d) ? tryGetTypeFromEffectiveTypeNode(d) : void 0); - links.type = (exportSymbol == null ? void 0 : exportSymbol.declarations) && isDuplicatedCommonJSExport(exportSymbol.declarations) && symbol.declarations.length ? getFlowTypeFromCommonJSExport(exportSymbol) : isDuplicatedCommonJSExport(symbol.declarations) ? autoType : declaredType ? declaredType : getAllSymbolFlags(targetSymbol) & 111551 /* Value */ ? getTypeOfSymbol(targetSymbol) : errorType; + links.type = (exportSymbol == null ? void 0 : exportSymbol.declarations) && isDuplicatedCommonJSExport(exportSymbol.declarations) && symbol.declarations.length ? getFlowTypeFromCommonJSExport(exportSymbol) : isDuplicatedCommonJSExport(symbol.declarations) ? autoType : declaredType ? declaredType : getSymbolFlags(targetSymbol) & 111551 /* Value */ ? getTypeOfSymbol(targetSymbol) : errorType; } return links.type; } @@ -54246,15 +54696,15 @@ ${lanes.join("\n")} function reportCircularityError(symbol) { const declaration = symbol.valueDeclaration; if (getEffectiveTypeAnnotationNode(declaration)) { - error( + error2( symbol.valueDeclaration, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol) ); return errorType; } - if (noImplicitAny && (declaration.kind !== 168 /* Parameter */ || declaration.initializer)) { - error( + if (noImplicitAny && (declaration.kind !== 169 /* Parameter */ || declaration.initializer)) { + error2( symbol.valueDeclaration, Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer, symbolToString(symbol) @@ -54367,43 +54817,43 @@ ${lanes.join("\n")} return void 0; } switch (node.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 172 /* MethodSignature */: - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 323 /* JSDocFunctionType */: - case 261 /* FunctionDeclaration */: - case 173 /* MethodDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 264 /* TypeAliasDeclaration */: - case 351 /* JSDocTemplateTag */: - case 352 /* JSDocTypedefTag */: - case 346 /* JSDocEnumTag */: - case 344 /* JSDocCallbackTag */: - case 199 /* MappedType */: - case 193 /* ConditionalType */: { + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 173 /* MethodSignature */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 324 /* JSDocFunctionType */: + case 262 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 265 /* TypeAliasDeclaration */: + case 352 /* JSDocTemplateTag */: + case 353 /* JSDocTypedefTag */: + case 347 /* JSDocEnumTag */: + case 345 /* JSDocCallbackTag */: + case 200 /* MappedType */: + case 194 /* ConditionalType */: { const outerTypeParameters = getOuterTypeParameters(node, includeThisTypes); - if (node.kind === 199 /* MappedType */) { + if (node.kind === 200 /* MappedType */) { return append(outerTypeParameters, getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(node.typeParameter))); - } else if (node.kind === 193 /* ConditionalType */) { + } else if (node.kind === 194 /* ConditionalType */) { return concatenate(outerTypeParameters, getInferTypeParameters(node)); } const outerAndOwnTypeParameters = appendTypeParameters(outerTypeParameters, getEffectiveTypeParameterDeclarations(node)); - const thisType = includeThisTypes && (node.kind === 262 /* ClassDeclaration */ || node.kind === 230 /* ClassExpression */ || node.kind === 263 /* InterfaceDeclaration */ || isJSConstructor(node)) && getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(node)).thisType; + const thisType = includeThisTypes && (node.kind === 263 /* ClassDeclaration */ || node.kind === 231 /* ClassExpression */ || node.kind === 264 /* InterfaceDeclaration */ || isJSConstructor(node)) && getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(node)).thisType; return thisType ? append(outerAndOwnTypeParameters, thisType) : outerAndOwnTypeParameters; } - case 347 /* JSDocParameterTag */: + case 348 /* JSDocParameterTag */: const paramSymbol = getParameterSymbolFromJSDoc(node); if (paramSymbol) { node = paramSymbol.valueDeclaration; } break; - case 326 /* JSDoc */: { + case 327 /* JSDoc */: { const outerTypeParameters = getOuterTypeParameters(node, includeThisTypes); return node.tags ? appendTypeParameters(outerTypeParameters, flatMap(node.tags, (t) => isJSDocTemplateTag(t) ? t.typeParameters : void 0)) : outerTypeParameters; } @@ -54413,14 +54863,14 @@ ${lanes.join("\n")} function getOuterTypeParametersOfClassOrInterface(symbol) { var _a; const declaration = symbol.flags & 32 /* Class */ || symbol.flags & 16 /* Function */ ? symbol.valueDeclaration : (_a = symbol.declarations) == null ? void 0 : _a.find((decl) => { - if (decl.kind === 263 /* InterfaceDeclaration */) { + if (decl.kind === 264 /* InterfaceDeclaration */) { return true; } - if (decl.kind !== 259 /* VariableDeclaration */) { + if (decl.kind !== 260 /* VariableDeclaration */) { return false; } const initializer = decl.initializer; - return !!initializer && (initializer.kind === 217 /* FunctionExpression */ || initializer.kind === 218 /* ArrowFunction */); + return !!initializer && (initializer.kind === 218 /* FunctionExpression */ || initializer.kind === 219 /* ArrowFunction */); }); Debug.assert(!!declaration, "Class was missing valueDeclaration -OR- non-class had no interface declarations"); return getOuterTypeParameters(declaration); @@ -54431,7 +54881,7 @@ ${lanes.join("\n")} } let result; for (const node of symbol.declarations) { - if (node.kind === 263 /* InterfaceDeclaration */ || node.kind === 262 /* ClassDeclaration */ || node.kind === 230 /* ClassExpression */ || isJSConstructor(node) || isTypeAlias(node)) { + if (node.kind === 264 /* InterfaceDeclaration */ || node.kind === 263 /* ClassDeclaration */ || node.kind === 231 /* ClassExpression */ || isJSConstructor(node) || isTypeAlias(node)) { const declaration = node; result = appendTypeParameters(result, getEffectiveTypeParameterDeclarations(declaration)); } @@ -54499,11 +54949,11 @@ ${lanes.join("\n")} resolveStructuredTypeMembers(baseConstructorType); } if (!popTypeResolution()) { - error(type.symbol.valueDeclaration, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression, symbolToString(type.symbol)); + error2(type.symbol.valueDeclaration, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression, symbolToString(type.symbol)); return type.resolvedBaseConstructorType = errorType; } if (!(baseConstructorType.flags & 1 /* Any */) && baseConstructorType !== nullWideningType && !isConstructorType(baseConstructorType)) { - const err = error(baseTypeNode.expression, Diagnostics.Type_0_is_not_a_constructor_function_type, typeToString(baseConstructorType)); + const err = error2(baseTypeNode.expression, Diagnostics.Type_0_is_not_a_constructor_function_type, typeToString(baseConstructorType)); if (baseConstructorType.flags & 262144 /* TypeParameter */) { const constraint = getConstraintFromTypeParameter(baseConstructorType); let ctorReturn = unknownType; @@ -54545,7 +54995,7 @@ ${lanes.join("\n")} return resolvedImplementsTypes; } function reportCircularBaseType(node, type) { - error(node, Diagnostics.Type_0_recursively_references_itself_as_a_base_type, typeToString( + error2(node, Diagnostics.Type_0_recursively_references_itself_as_a_base_type, typeToString( type, /*enclosingDeclaration*/ void 0, @@ -54569,7 +55019,7 @@ ${lanes.join("\n")} } if (!popTypeResolution() && type.symbol.declarations) { for (const declaration of type.symbol.declarations) { - if (declaration.kind === 262 /* ClassDeclaration */ || declaration.kind === 263 /* InterfaceDeclaration */) { + if (declaration.kind === 263 /* ClassDeclaration */ || declaration.kind === 264 /* InterfaceDeclaration */) { reportCircularBaseType(declaration, type); } } @@ -54599,7 +55049,7 @@ ${lanes.join("\n")} } else { const constructors = getInstantiatedConstructorsForTypeArguments(baseConstructorType, baseTypeNode.typeArguments, baseTypeNode); if (!constructors.length) { - error(baseTypeNode.expression, Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments); + error2(baseTypeNode.expression, Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments); return type.resolvedBaseTypes = emptyArray; } baseType = getReturnTypeOfSignature(constructors[0]); @@ -54619,7 +55069,7 @@ ${lanes.join("\n")} return type.resolvedBaseTypes = emptyArray; } if (type === reducedBaseType || hasBaseType(reducedBaseType, type)) { - error( + error2( type.symbol.valueDeclaration, Diagnostics.Type_0_recursively_references_itself_as_a_base_type, typeToString( @@ -54658,7 +55108,7 @@ ${lanes.join("\n")} type.resolvedBaseTypes = type.resolvedBaseTypes || emptyArray; if (type.symbol.declarations) { for (const declaration of type.symbol.declarations) { - if (declaration.kind === 263 /* InterfaceDeclaration */ && getInterfaceBaseTypeNodes(declaration)) { + if (declaration.kind === 264 /* InterfaceDeclaration */ && getInterfaceBaseTypeNodes(declaration)) { for (const node of getInterfaceBaseTypeNodes(declaration)) { const baseType = getReducedType(getTypeFromTypeNode(node)); if (!isErrorType(baseType)) { @@ -54673,7 +55123,7 @@ ${lanes.join("\n")} reportCircularBaseType(declaration, type); } } else { - error(node, Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members); + error2(node, Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members); } } } @@ -54686,8 +55136,8 @@ ${lanes.join("\n")} return true; } for (const declaration of symbol.declarations) { - if (declaration.kind === 263 /* InterfaceDeclaration */) { - if (declaration.flags & 128 /* ContainsThis */) { + if (declaration.kind === 264 /* InterfaceDeclaration */) { + if (declaration.flags & 256 /* ContainsThis */) { return false; } const baseTypeNodes = getInterfaceBaseTypeNodes(declaration); @@ -54758,10 +55208,10 @@ ${lanes.join("\n")} } } else { type = errorType; - if (declaration.kind === 346 /* JSDocEnumTag */) { - error(declaration.typeExpression.type, Diagnostics.Type_alias_0_circularly_references_itself, symbolToString(symbol)); + if (declaration.kind === 347 /* JSDocEnumTag */) { + error2(declaration.typeExpression.type, Diagnostics.Type_alias_0_circularly_references_itself, symbolToString(symbol)); } else { - error(isNamedDeclaration(declaration) ? declaration.name || declaration : declaration, Diagnostics.Type_alias_0_circularly_references_itself, symbolToString(symbol)); + error2(isNamedDeclaration(declaration) ? declaration.name || declaration : declaration, Diagnostics.Type_alias_0_circularly_references_itself, symbolToString(symbol)); } } links.declaredType = type; @@ -54777,7 +55227,7 @@ ${lanes.join("\n")} const memberTypeList = []; if (symbol.declarations) { for (const declaration of symbol.declarations) { - if (declaration.kind === 265 /* EnumDeclaration */) { + if (declaration.kind === 266 /* EnumDeclaration */) { for (const member of declaration.members) { if (hasBindableName(member)) { const memberSymbol = getSymbolOfDeclaration(member); @@ -54862,18 +55312,18 @@ ${lanes.join("\n")} case 159 /* UnknownKeyword */: case 154 /* StringKeyword */: case 150 /* NumberKeyword */: - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: case 136 /* BooleanKeyword */: case 155 /* SymbolKeyword */: case 151 /* ObjectKeyword */: case 116 /* VoidKeyword */: case 157 /* UndefinedKeyword */: case 146 /* NeverKeyword */: - case 200 /* LiteralType */: + case 201 /* LiteralType */: return true; - case 187 /* ArrayType */: + case 188 /* ArrayType */: return isThislessType(node.elementType); - case 182 /* TypeReference */: + case 183 /* TypeReference */: return !node.typeArguments || node.typeArguments.every(isThislessType); } return false; @@ -54889,21 +55339,21 @@ ${lanes.join("\n")} function isThislessFunctionLikeDeclaration(node) { const returnType = getEffectiveReturnTypeNode(node); const typeParameters = getEffectiveTypeParameterDeclarations(node); - return (node.kind === 175 /* Constructor */ || !!returnType && isThislessType(returnType)) && node.parameters.every(isThislessVariableLikeDeclaration) && typeParameters.every(isThislessTypeParameter); + return (node.kind === 176 /* Constructor */ || !!returnType && isThislessType(returnType)) && node.parameters.every(isThislessVariableLikeDeclaration) && typeParameters.every(isThislessTypeParameter); } function isThisless(symbol) { if (symbol.declarations && symbol.declarations.length === 1) { const declaration = symbol.declarations[0]; if (declaration) { switch (declaration.kind) { - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: return isThislessVariableLikeDeclaration(declaration); - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return isThislessFunctionLikeDeclaration(declaration); } } @@ -54946,9 +55396,6 @@ ${lanes.join("\n")} } return type; } - function isTypeUsableAsPropertyName(type) { - return !!(type.flags & 8576 /* StringOrNumberLiteralOrUnique */); - } function isLateBindableName(node) { if (!isComputedPropertyName(node) && !isElementAccessExpression(node)) { return false; @@ -54969,15 +55416,6 @@ ${lanes.join("\n")} function isNonBindableDynamicName(node) { return isDynamicName(node) && !isLateBindableName(node); } - function getPropertyNameFromType(type) { - if (type.flags & 8192 /* UniqueESSymbol */) { - return type.escapedName; - } - if (type.flags & (128 /* StringLiteral */ | 256 /* NumberLiteral */)) { - return escapeLeadingUnderscores("" + type.value); - } - return Debug.fail(); - } function addDeclarationToLateBoundSymbol(symbol, member, symbolFlags) { Debug.assert(!!(getCheckFlags(symbol) & 4096 /* Late */), "Expected a late-bound symbol."); symbol.flags |= symbolFlags; @@ -55010,8 +55448,8 @@ ${lanes.join("\n")} if (lateSymbol.flags & getExcludedSymbolFlags(symbolFlags) || earlySymbol) { const declarations = earlySymbol ? concatenate(earlySymbol.declarations, lateSymbol.declarations) : lateSymbol.declarations; const name = !(type.flags & 8192 /* UniqueESSymbol */) && unescapeLeadingUnderscores(memberName) || declarationNameToString(declName); - forEach(declarations, (declaration) => error(getNameOfDeclaration(declaration) || declaration, Diagnostics.Property_0_was_also_declared_here, name)); - error(declName || decl, Diagnostics.Duplicate_property_0, name); + forEach(declarations, (declaration) => error2(getNameOfDeclaration(declaration) || declaration, Diagnostics.Property_0_was_also_declared_here, name)); + error2(declName || decl, Diagnostics.Duplicate_property_0, name); lateSymbol = createSymbol(0 /* None */, memberName, 4096 /* Late */); } lateSymbol.links.nameType = type; @@ -55027,6 +55465,7 @@ ${lanes.join("\n")} return links.resolvedSymbol; } function getResolvedMembersOrExportsOfSymbol(symbol, resolutionKind) { + var _a, _b, _c; const links = getSymbolLinks(symbol); if (!links[resolutionKind]) { const isStatic2 = resolutionKind === "resolvedExports" /* resolvedExports */; @@ -55045,7 +55484,7 @@ ${lanes.join("\n")} } } } - const assignments = symbol.assignmentDeclarationMembers; + const assignments = (((_a = symbol.valueDeclaration) == null ? void 0 : _a.kind) === 219 /* ArrowFunction */ || ((_b = symbol.valueDeclaration) == null ? void 0 : _b.kind) === 218 /* FunctionExpression */) && ((_c = getSymbolOfNode(symbol.valueDeclaration.parent)) == null ? void 0 : _c.assignmentDeclarationMembers) || symbol.assignmentDeclarationMembers; if (assignments) { const decls = arrayFrom(assignments.values()); for (const member of decls) { @@ -55174,7 +55613,7 @@ ${lanes.join("\n")} /*resolvedTypePredicate*/ void 0, sig.minArgumentCount, - sig.flags & 39 /* PropagatingFlags */ + sig.flags & 167 /* PropagatingFlags */ ); result.target = sig.target; result.mapper = sig.mapper; @@ -55212,17 +55651,18 @@ ${lanes.join("\n")} function getExpandedParameters(sig, skipUnionExpanding) { if (signatureHasRestParameter(sig)) { const restIndex = sig.parameters.length - 1; + const restName = sig.parameters[restIndex].escapedName; const restType = getTypeOfSymbol(sig.parameters[restIndex]); if (isTupleType(restType)) { - return [expandSignatureParametersWithTupleMembers(restType, restIndex)]; + return [expandSignatureParametersWithTupleMembers(restType, restIndex, restName)]; } else if (!skipUnionExpanding && restType.flags & 1048576 /* Union */ && every(restType.types, isTupleType)) { - return map(restType.types, (t) => expandSignatureParametersWithTupleMembers(t, restIndex)); + return map(restType.types, (t) => expandSignatureParametersWithTupleMembers(t, restIndex, restName)); } } return [sig.parameters]; - function expandSignatureParametersWithTupleMembers(restType, restIndex) { - const elementTypes = getElementTypes(restType); - const associatedNames = getUniqAssociatedNamesFromTupleType(restType); + function expandSignatureParametersWithTupleMembers(restType, restIndex, restName) { + const elementTypes = getTypeArguments(restType); + const associatedNames = getUniqAssociatedNamesFromTupleType(restType, restName); const restParams = map(elementTypes, (t, i) => { const name = associatedNames && associatedNames[i] ? associatedNames[i] : getParameterNameAtPosition(sig, restIndex + i, restType); const flags = restType.target.elementFlags[i]; @@ -55233,10 +55673,10 @@ ${lanes.join("\n")} }); return concatenate(sig.parameters.slice(0, restIndex), restParams); } - function getUniqAssociatedNamesFromTupleType(type) { + function getUniqAssociatedNamesFromTupleType(type, restName) { const associatedNamesMap = /* @__PURE__ */ new Map(); - return map(type.target.labeledElementDeclarations, (labeledElement) => { - const name = getTupleElementLabel(labeledElement); + return map(type.target.labeledElementDeclarations, (labeledElement, i) => { + const name = getTupleElementLabel(labeledElement, i, restName); const prevCounter = associatedNamesMap.get(name); if (prevCounter === void 0) { associatedNamesMap.set(name, 1); @@ -55474,7 +55914,7 @@ ${lanes.join("\n")} /*resolvedTypePredicate*/ void 0, minArgCount, - (left.flags | right.flags) & 39 /* PropagatingFlags */ + (left.flags | right.flags) & 167 /* PropagatingFlags */ ); result.compositeKind = 1048576 /* Union */; result.compositeSignatures = concatenate(left.compositeKind !== 2097152 /* Intersection */ && left.compositeSignatures || [left], [right]); @@ -55622,20 +56062,17 @@ ${lanes.join("\n")} setStructuredTypeMembers(type, members2, callSignatures, constructSignatures, indexInfos2); return; } - let members = emptySymbols; + let members = getExportsOfSymbol(symbol); let indexInfos; - if (symbol.exports) { - members = getExportsOfSymbol(symbol); - if (symbol === globalThisSymbol) { - const varsOnly = /* @__PURE__ */ new Map(); - members.forEach((p) => { - var _a; - if (!(p.flags & 418 /* BlockScoped */) && !(p.flags & 512 /* ValueModule */ && ((_a = p.declarations) == null ? void 0 : _a.length) && every(p.declarations, isAmbientModule))) { - varsOnly.set(p.escapedName, p); - } - }); - members = varsOnly; - } + if (symbol === globalThisSymbol) { + const varsOnly = /* @__PURE__ */ new Map(); + members.forEach((p) => { + var _a; + if (!(p.flags & 418 /* BlockScoped */) && !(p.flags & 512 /* ValueModule */ && ((_a = p.declarations) == null ? void 0 : _a.length) && every(p.declarations, isAmbientModule))) { + varsOnly.set(p.escapedName, p); + } + }); + members = varsOnly; } let baseConstructorIndexInfo; setStructuredTypeMembers(type, members, emptyArray, emptyArray, emptyArray); @@ -55684,7 +56121,7 @@ ${lanes.join("\n")} /*resolvedTypePredicate*/ void 0, sig.minArgumentCount, - sig.flags & 39 /* PropagatingFlags */ + sig.flags & 167 /* PropagatingFlags */ ) : void 0 )); } @@ -55851,7 +56288,7 @@ ${lanes.join("\n")} true ) : symbol.links.checkFlags & 524288 /* StripOptional */ ? removeMissingOrUndefinedType(propType) : propType; if (!popTypeResolution()) { - error(currentNode, Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1, symbolToString(symbol), typeToString(mappedType)); + error2(currentNode, Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1, symbolToString(symbol), typeToString(mappedType)); type = errorType; } symbol.links.type = type; @@ -55880,7 +56317,7 @@ ${lanes.join("\n")} } function isMappedTypeWithKeyofConstraintDeclaration(type) { const constraintDeclaration = getConstraintDeclarationForMappedType(type); - return constraintDeclaration.kind === 197 /* TypeOperator */ && constraintDeclaration.operator === 143 /* KeyOfKeyword */; + return constraintDeclaration.kind === 198 /* TypeOperator */ && constraintDeclaration.operator === 143 /* KeyOfKeyword */; } function getModifiersTypeFromMappedType(type) { if (!type.modifiersType) { @@ -56035,9 +56472,9 @@ ${lanes.join("\n")} function getConstraintOfTypeParameter(typeParameter) { return hasNonCircularBaseConstraint(typeParameter) ? getConstraintFromTypeParameter(typeParameter) : void 0; } - function isConstTypeVariable(type) { + function isConstTypeVariable(type, depth = 0) { var _a; - return !!(type && (type.flags & 262144 /* TypeParameter */ && some((_a = type.symbol) == null ? void 0 : _a.declarations, (d) => hasSyntacticModifier(d, 2048 /* Const */)) || type.flags & 1048576 /* Union */ && some(type.types, isConstTypeVariable) || type.flags & 8388608 /* IndexedAccess */ && isConstTypeVariable(type.objectType) || type.flags & 16777216 /* Conditional */ && isConstTypeVariable(getConstraintOfConditionalType(type)) || type.flags & 33554432 /* Substitution */ && isConstTypeVariable(type.baseType) || isGenericTupleType(type) && findIndex(getElementTypes(type), (t, i) => !!(type.target.elementFlags[i] & 8 /* Variadic */) && isConstTypeVariable(t)) >= 0)); + return depth < 5 && !!(type && (type.flags & 262144 /* TypeParameter */ && some((_a = type.symbol) == null ? void 0 : _a.declarations, (d) => hasSyntacticModifier(d, 2048 /* Const */)) || type.flags & 1048576 /* Union */ && some(type.types, (t) => isConstTypeVariable(t, depth)) || type.flags & 8388608 /* IndexedAccess */ && isConstTypeVariable(type.objectType, depth + 1) || type.flags & 16777216 /* Conditional */ && isConstTypeVariable(getConstraintOfConditionalType(type), depth + 1) || type.flags & 33554432 /* Substitution */ && isConstTypeVariable(type.baseType, depth) || isGenericTupleType(type) && findIndex(getElementTypes(type), (t, i) => !!(type.target.elementFlags[i] & 8 /* Variadic */) && isConstTypeVariable(t, depth)) >= 0)); } function getConstraintOfIndexedAccess(type) { return hasNonCircularBaseConstraint(type) ? getConstraintFromIndexedAccess(type) : void 0; @@ -56177,7 +56614,7 @@ ${lanes.join("\n")} if (t.flags & 262144 /* TypeParameter */) { const errorNode = getConstraintDeclaration(t); if (errorNode) { - const diagnostic = error(errorNode, Diagnostics.Type_parameter_0_has_a_circular_constraint, typeToString(t)); + const diagnostic = error2(errorNode, Diagnostics.Type_parameter_0_has_a_circular_constraint, typeToString(t)); if (currentNode && !isNodeDescendantOf(errorNode, currentNode) && !isNodeDescendantOf(currentNode, errorNode)) { addRelatedInfo(diagnostic, createDiagnosticForNode(currentNode, Diagnostics.Circularity_originates_in_type_at_this_location)); } @@ -56594,7 +57031,35 @@ ${lanes.join("\n")} return emptyArray; } function getSignaturesOfType(type, kind) { - return getSignaturesOfStructuredType(getReducedApparentType(type), kind); + const result = getSignaturesOfStructuredType(getReducedApparentType(type), kind); + if (kind === 0 /* Call */ && !length(result) && type.flags & 1048576 /* Union */) { + if (type.arrayFallbackSignatures) { + return type.arrayFallbackSignatures; + } + let memberName; + if (everyType(type, (t) => { + var _a; + return !!((_a = t.symbol) == null ? void 0 : _a.parent) && isArrayOrTupleSymbol(t.symbol.parent) && (!memberName ? (memberName = t.symbol.escapedName, true) : memberName === t.symbol.escapedName); + })) { + const arrayArg = mapType(type, (t) => getMappedType((isReadonlyArraySymbol(t.symbol.parent) ? globalReadonlyArrayType : globalArrayType).typeParameters[0], t.mapper)); + const arrayType = createArrayType(arrayArg, someType(type, (t) => isReadonlyArraySymbol(t.symbol.parent))); + return type.arrayFallbackSignatures = getSignaturesOfType(getTypeOfPropertyOfType(arrayType, memberName), kind); + } + type.arrayFallbackSignatures = result; + } + return result; + } + function isArrayOrTupleSymbol(symbol) { + if (!symbol || !globalArrayType.symbol || !globalReadonlyArrayType.symbol) { + return false; + } + return !!getSymbolIfSameReference(symbol, globalArrayType.symbol) || !!getSymbolIfSameReference(symbol, globalReadonlyArrayType.symbol); + } + function isReadonlyArraySymbol(symbol) { + if (!symbol || !globalReadonlyArrayType.symbol) { + return false; + } + return !!getSymbolIfSameReference(symbol, globalReadonlyArrayType.symbol); } function findIndexInfo(indexInfos, keyType) { return find(indexInfos, (info) => info.keyType === keyType); @@ -56773,7 +57238,7 @@ ${lanes.join("\n")} } else { parameters.push(paramSymbol); } - if (type && type.kind === 200 /* LiteralType */) { + if (type && type.kind === 201 /* LiteralType */) { flags |= 2 /* HasLiteralTypes */; } const isOptionalParameter2 = isOptionalJSDocPropertyLikeTag(param) || param.initializer || param.questionToken || isRestParameter(param) || iife && parameters.length > iife.arguments.length && !type || isJSDocOptionalParameter(param); @@ -56781,8 +57246,8 @@ ${lanes.join("\n")} minArgumentCount = parameters.length; } } - if ((declaration.kind === 176 /* GetAccessor */ || declaration.kind === 177 /* SetAccessor */) && hasBindableName(declaration) && (!hasThisParameter2 || !thisParameter)) { - const otherKind = declaration.kind === 176 /* GetAccessor */ ? 177 /* SetAccessor */ : 176 /* GetAccessor */; + if ((declaration.kind === 177 /* GetAccessor */ || declaration.kind === 178 /* SetAccessor */) && hasBindableName(declaration) && (!hasThisParameter2 || !thisParameter)) { + const otherKind = declaration.kind === 177 /* GetAccessor */ ? 178 /* SetAccessor */ : 177 /* GetAccessor */; const other = getDeclarationOfKind(getSymbolOfDeclaration(declaration), otherKind); if (other) { thisParameter = getAnnotatedAccessorThisParameter(other); @@ -56873,15 +57338,15 @@ ${lanes.join("\n")} switch (node.kind) { case 80 /* Identifier */: return node.escapedText === argumentsSymbol.escapedName && getReferencedValueSymbol(node) === argumentsSymbol; - case 171 /* PropertyDeclaration */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - return node.name.kind === 166 /* ComputedPropertyName */ && traverse(node.name); - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + return node.name.kind === 167 /* ComputedPropertyName */ && traverse(node.name); + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return traverse(node.expression); - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return traverse(node.initializer); default: return !nodeStartsNewLexicalEnvironment(node) && !isPartOfTypeNode(node) && !!forEachChild(node, traverse); @@ -56968,7 +57433,7 @@ ${lanes.join("\n")} function createTypePredicateFromTypePredicateNode(node, signature) { const parameterName = node.parameterName; const type = node.type && getTypeFromTypeNode(node.type); - return parameterName.kind === 196 /* ThisType */ ? createTypePredicate( + return parameterName.kind === 197 /* ThisType */ ? createTypePredicate( node.assertsModifier ? 2 /* AssertsThis */ : 0 /* This */, /*parameterName*/ void 0, @@ -57000,14 +57465,14 @@ ${lanes.join("\n")} if (signature.declaration) { const typeNode = getEffectiveReturnTypeNode(signature.declaration); if (typeNode) { - error(typeNode, Diagnostics.Return_type_annotation_circularly_references_itself); + error2(typeNode, Diagnostics.Return_type_annotation_circularly_references_itself); } else if (noImplicitAny) { const declaration = signature.declaration; const name = getNameOfDeclaration(declaration); if (name) { - error(name, Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, declarationNameToString(name)); + error2(name, Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, declarationNameToString(name)); } else { - error(declaration, Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions); + error2(declaration, Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions); } } } @@ -57018,7 +57483,7 @@ ${lanes.join("\n")} return signature.resolvedReturnType; } function getReturnTypeFromAnnotation(declaration) { - if (declaration.kind === 175 /* Constructor */) { + if (declaration.kind === 176 /* Constructor */) { return getDeclaredTypeOfClassOrInterface(getMergedSymbol(declaration.parent.symbol)); } const typeNode = getEffectiveReturnTypeNode(declaration); @@ -57034,12 +57499,12 @@ ${lanes.join("\n")} if (typeNode) { return getTypeFromTypeNode(typeNode); } - if (declaration.kind === 176 /* GetAccessor */ && hasBindableName(declaration)) { + if (declaration.kind === 177 /* GetAccessor */ && hasBindableName(declaration)) { const jsDocType = isInJSFile(declaration) && getTypeForDeclarationFromJSDocComment(declaration); if (jsDocType) { return jsDocType; } - const setter = getDeclarationOfKind(getSymbolOfDeclaration(declaration), 177 /* SetAccessor */); + const setter = getDeclarationOfKind(getSymbolOfDeclaration(declaration), 178 /* SetAccessor */); const setterType = getAnnotatedAccessorType(setter); if (setterType) { return setterType; @@ -57048,7 +57513,7 @@ ${lanes.join("\n")} return getReturnTypeOfTypeTag(declaration); } function isResolvingReturnTypeOfSignature(signature) { - return !signature.resolvedReturnType && findResolutionCycleStartIndex(signature, 3 /* ResolvedReturnType */) >= 0; + return signature.compositeSignatures && some(signature.compositeSignatures, isResolvingReturnTypeOfSignature) || !signature.resolvedReturnType && findResolutionCycleStartIndex(signature, 3 /* ResolvedReturnType */) >= 0; } function getRestTypeOfSignature(signature) { return tryGetRestTypeOfSignature(signature) || anyType; @@ -57142,7 +57607,7 @@ ${lanes.join("\n")} var _a; if (!signature.isolatedSignatureType) { const kind = (_a = signature.declaration) == null ? void 0 : _a.kind; - const isConstructor = kind === void 0 || kind === 175 /* Constructor */ || kind === 179 /* ConstructSignature */ || kind === 184 /* ConstructorType */; + const isConstructor = kind === void 0 || kind === 176 /* Constructor */ || kind === 180 /* ConstructSignature */ || kind === 185 /* ConstructorType */; const type = createObjectType(16 /* Anonymous */); type.members = emptySymbols; type.properties = emptyArray; @@ -57201,9 +57666,9 @@ ${lanes.join("\n")} let inferences; if ((_a = typeParameter.symbol) == null ? void 0 : _a.declarations) { for (const declaration of typeParameter.symbol.declarations) { - if (declaration.parent.kind === 194 /* InferType */) { + if (declaration.parent.kind === 195 /* InferType */) { const [childTypeParameter = declaration.parent, grandParent] = walkUpParenthesizedTypesAndGetParentAndChild(declaration.parent.parent); - if (grandParent.kind === 182 /* TypeReference */ && !omitTypeReferences) { + if (grandParent.kind === 183 /* TypeReference */ && !omitTypeReferences) { const typeReference = grandParent; const typeParameters = getTypeParametersForTypeReferenceOrImport(typeReference); if (typeParameters) { @@ -57221,13 +57686,13 @@ ${lanes.join("\n")} } } } - } else if (grandParent.kind === 168 /* Parameter */ && grandParent.dotDotDotToken || grandParent.kind === 190 /* RestType */ || grandParent.kind === 201 /* NamedTupleMember */ && grandParent.dotDotDotToken) { + } else if (grandParent.kind === 169 /* Parameter */ && grandParent.dotDotDotToken || grandParent.kind === 191 /* RestType */ || grandParent.kind === 202 /* NamedTupleMember */ && grandParent.dotDotDotToken) { inferences = append(inferences, createArrayType(unknownType)); - } else if (grandParent.kind === 203 /* TemplateLiteralTypeSpan */) { + } else if (grandParent.kind === 204 /* TemplateLiteralTypeSpan */) { inferences = append(inferences, stringType); - } else if (grandParent.kind === 167 /* TypeParameter */ && grandParent.parent.kind === 199 /* MappedType */) { + } else if (grandParent.kind === 168 /* TypeParameter */ && grandParent.parent.kind === 200 /* MappedType */) { inferences = append(inferences, keyofConstraintType); - } else if (grandParent.kind === 199 /* MappedType */ && grandParent.type && skipParentheses(grandParent.type) === declaration.parent && grandParent.parent.kind === 193 /* ConditionalType */ && grandParent.parent.extendsType === grandParent && grandParent.parent.checkType.kind === 199 /* MappedType */ && grandParent.parent.checkType.type) { + } else if (grandParent.kind === 200 /* MappedType */ && grandParent.type && skipParentheses(grandParent.type) === declaration.parent && grandParent.parent.kind === 194 /* ConditionalType */ && grandParent.parent.extendsType === grandParent && grandParent.parent.checkType.kind === 200 /* MappedType */ && grandParent.parent.checkType.type) { const checkMappedType2 = grandParent.parent.checkType; const nodeType = getTypeFromTypeNode(checkMappedType2.type); inferences = append(inferences, instantiateType( @@ -57252,7 +57717,7 @@ ${lanes.join("\n")} } else { let type = getTypeFromTypeNode(constraintDeclaration); if (type.flags & 1 /* Any */ && !isErrorType(type)) { - type = constraintDeclaration.parent.parent.kind === 199 /* MappedType */ ? keyofConstraintType : unknownType; + type = constraintDeclaration.parent.parent.kind === 200 /* MappedType */ ? keyofConstraintType : unknownType; } typeParameter.constraint = type; } @@ -57261,7 +57726,7 @@ ${lanes.join("\n")} return typeParameter.constraint === noConstraintType ? void 0 : typeParameter.constraint; } function getParentSymbolOfTypeParameter(typeParameter) { - const tp = getDeclarationOfKind(typeParameter.symbol, 167 /* TypeParameter */); + const tp = getDeclarationOfKind(typeParameter.symbol, 168 /* TypeParameter */); const host2 = isJSDocTemplateTag(tp.parent) ? getEffectiveContainerForJSDocTemplateTag(tp.parent) : tp.parent; return host2 && getSymbolOfNode(host2); } @@ -57346,12 +57811,12 @@ ${lanes.join("\n")} return ((_a = type.target.localTypeParameters) == null ? void 0 : _a.map(() => errorType)) || emptyArray; } const node = type.node; - const typeArguments = !node ? emptyArray : node.kind === 182 /* TypeReference */ ? concatenate(type.target.outerTypeParameters, getEffectiveTypeArguments2(node, type.target.localTypeParameters)) : node.kind === 187 /* ArrayType */ ? [getTypeFromTypeNode(node.elementType)] : map(node.elements, getTypeFromTypeNode); + const typeArguments = !node ? emptyArray : node.kind === 183 /* TypeReference */ ? concatenate(type.target.outerTypeParameters, getEffectiveTypeArguments2(node, type.target.localTypeParameters)) : node.kind === 188 /* ArrayType */ ? [getTypeFromTypeNode(node.elementType)] : map(node.elements, getTypeFromTypeNode); if (popTypeResolution()) { type.resolvedTypeArguments = type.mapper ? instantiateTypes(typeArguments, type.mapper) : typeArguments; } else { type.resolvedTypeArguments = ((_b = type.target.localTypeParameters) == null ? void 0 : _b.map(() => errorType)) || emptyArray; - error( + error2( type.node || currentNode, type.target.symbol ? Diagnostics.Type_arguments_for_0_circularly_reference_themselves : Diagnostics.Tuple_type_arguments_circularly_reference_themselves, type.target.symbol && symbolToString(type.target.symbol) @@ -57380,12 +57845,12 @@ ${lanes.join("\n")} void 0, 2 /* WriteArrayAsGenericType */ ); - error(node, diag2, typeStr, minTypeArgumentCount, typeParameters.length); + error2(node, diag2, typeStr, minTypeArgumentCount, typeParameters.length); if (!isJs) { return errorType; } } - if (node.kind === 182 /* TypeReference */ && isDeferredTypeReferenceNode(node, length(node.typeArguments) !== typeParameters.length)) { + if (node.kind === 183 /* TypeReference */ && isDeferredTypeReferenceNode(node, length(node.typeArguments) !== typeParameters.length)) { return createDeferredTypeReference( type, node, @@ -57436,7 +57901,7 @@ ${lanes.join("\n")} const numTypeArguments = length(node.typeArguments); const minTypeArgumentCount = getMinTypeArgumentCount(typeParameters); if (numTypeArguments < minTypeArgumentCount || numTypeArguments > typeParameters.length) { - error( + error2( node, minTypeArgumentCount === typeParameters.length ? Diagnostics.Generic_type_0_requires_1_type_argument_s : Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments, symbolToString(symbol), @@ -57476,9 +57941,9 @@ ${lanes.join("\n")} } function getTypeReferenceName(node) { switch (node.kind) { - case 182 /* TypeReference */: + case 183 /* TypeReference */: return node.typeName; - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: const expr = node.expression; if (isEntityNameExpression(expr)) { return expr; @@ -57490,10 +57955,10 @@ ${lanes.join("\n")} return symbol.parent ? `${getSymbolPath(symbol.parent)}.${symbol.escapedName}` : symbol.escapedName; } function getUnresolvedSymbolForEntityName(name) { - const identifier = name.kind === 165 /* QualifiedName */ ? name.right : name.kind === 210 /* PropertyAccessExpression */ ? name.name : name; + const identifier = name.kind === 166 /* QualifiedName */ ? name.right : name.kind === 211 /* PropertyAccessExpression */ ? name.name : name; const text = identifier.escapedText; if (text) { - const parentSymbol = name.kind === 165 /* QualifiedName */ ? getUnresolvedSymbolForEntityName(name.left) : name.kind === 210 /* PropertyAccessExpression */ ? getUnresolvedSymbolForEntityName(name.expression) : void 0; + const parentSymbol = name.kind === 166 /* QualifiedName */ ? getUnresolvedSymbolForEntityName(name.left) : name.kind === 211 /* PropertyAccessExpression */ ? getUnresolvedSymbolForEntityName(name.expression) : void 0; const path = parentSymbol ? `${getSymbolPath(parentSymbol)}.${text}` : text; let result = unresolvedSymbols.get(path); if (!result) { @@ -57545,7 +58010,7 @@ ${lanes.join("\n")} const valueType = getTypeOfSymbol(symbol); let typeType = valueType; if (symbol.valueDeclaration) { - const isImportTypeWithQualifier = node.kind === 204 /* ImportType */ && node.qualifier; + const isImportTypeWithQualifier = node.kind === 205 /* ImportType */ && node.qualifier; if (valueType.symbol && valueType.symbol !== symbol && isImportTypeWithQualifier) { typeType = getTypeReferenceType(node, valueType.symbol); } @@ -57573,7 +58038,7 @@ ${lanes.join("\n")} return getIntersectionType([substitutionType.constraint, substitutionType.baseType]); } function isUnaryTupleTypeNode(node) { - return node.kind === 188 /* TupleType */ && node.elements.length === 1; + return node.kind === 189 /* TupleType */ && node.elements.length === 1; } function getImpliedConstraint(type, checkNode, extendsNode) { return isUnaryTupleTypeNode(checkNode) && isUnaryTupleTypeNode(extendsNode) ? getImpliedConstraint(type, checkNode.elements[0], extendsNode.elements[0]) : getActualTypeVariable(getTypeFromTypeNode(checkNode)) === getActualTypeVariable(type) ? getTypeFromTypeNode(extendsNode) : void 0; @@ -57581,17 +58046,17 @@ ${lanes.join("\n")} function getConditionalFlowTypeOfType(type, node) { let constraints; let covariant = true; - while (node && !isStatement(node) && node.kind !== 326 /* JSDoc */) { + while (node && !isStatement(node) && node.kind !== 327 /* JSDoc */) { const parent2 = node.parent; - if (parent2.kind === 168 /* Parameter */) { + if (parent2.kind === 169 /* Parameter */) { covariant = !covariant; } - if ((covariant || type.flags & 8650752 /* TypeVariable */) && parent2.kind === 193 /* ConditionalType */ && node === parent2.trueType) { + if ((covariant || type.flags & 8650752 /* TypeVariable */) && parent2.kind === 194 /* ConditionalType */ && node === parent2.trueType) { const constraint = getImpliedConstraint(type, parent2.checkType, parent2.extendsType); if (constraint) { constraints = append(constraints, constraint); } - } else if (type.flags & 262144 /* TypeParameter */ && parent2.kind === 199 /* MappedType */ && node === parent2.type) { + } else if (type.flags & 262144 /* TypeParameter */ && parent2.kind === 200 /* MappedType */ && node === parent2.type) { const mappedType = getTypeFromTypeNode(parent2); if (getTypeParameterFromMappedType(mappedType) === getActualTypeVariable(type)) { const typeParameter = getHomomorphicTypeVariable(mappedType); @@ -57608,11 +58073,11 @@ ${lanes.join("\n")} return constraints ? getSubstitutionType(type, getIntersectionType(constraints)) : type; } function isJSDocTypeReference(node) { - return !!(node.flags & 8388608 /* JSDoc */) && (node.kind === 182 /* TypeReference */ || node.kind === 204 /* ImportType */); + return !!(node.flags & 16777216 /* JSDoc */) && (node.kind === 183 /* TypeReference */ || node.kind === 205 /* ImportType */); } function checkNoTypeArguments(node, symbol) { if (node.typeArguments) { - error(node, Diagnostics.Type_0_is_not_generic, symbol ? symbolToString(symbol) : node.typeName ? declarationNameToString(node.typeName) : anon); + error2(node, Diagnostics.Type_0_is_not_generic, symbol ? symbolToString(symbol) : node.typeName ? declarationNameToString(node.typeName) : anon); return false; } return true; @@ -57731,9 +58196,9 @@ ${lanes.join("\n")} if (declarations) { for (const declaration of declarations) { switch (declaration.kind) { - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: return declaration; } } @@ -57744,11 +58209,11 @@ ${lanes.join("\n")} } const type = getDeclaredTypeOfSymbol(symbol); if (!(type.flags & 524288 /* Object */)) { - error(getTypeDeclaration(symbol), Diagnostics.Global_type_0_must_be_a_class_or_interface_type, symbolName(symbol)); + error2(getTypeDeclaration(symbol), Diagnostics.Global_type_0_must_be_a_class_or_interface_type, symbolName(symbol)); return arity ? emptyGenericType : emptyObjectType; } if (length(type.typeParameters) !== arity) { - error(getTypeDeclaration(symbol), Diagnostics.Global_type_0_must_have_1_type_parameter_s, symbolName(symbol), arity); + error2(getTypeDeclaration(symbol), Diagnostics.Global_type_0_must_have_1_type_parameter_s, symbolName(symbol), arity); return arity ? emptyGenericType : emptyObjectType; } return type; @@ -57765,7 +58230,7 @@ ${lanes.join("\n")} getDeclaredTypeOfSymbol(symbol); if (length(getSymbolLinks(symbol).typeParameters) !== arity) { const decl = symbol.declarations && find(symbol.declarations, isTypeAliasDeclaration); - error(decl, Diagnostics.Global_type_0_must_have_1_type_parameter_s, symbolName(symbol), arity); + error2(decl, Diagnostics.Global_type_0_must_have_1_type_parameter_s, symbolName(symbol), arity); return void 0; } } @@ -57961,6 +58426,22 @@ ${lanes.join("\n")} reportErrors2 )) || emptyGenericType; } + function getGlobalDisposableType(reportErrors2) { + return deferredGlobalDisposableType || (deferredGlobalDisposableType = getGlobalType( + "Disposable", + /*arity*/ + 0, + reportErrors2 + )) || emptyObjectType; + } + function getGlobalAsyncDisposableType(reportErrors2) { + return deferredGlobalAsyncDisposableType || (deferredGlobalAsyncDisposableType = getGlobalType( + "AsyncDisposable", + /*arity*/ + 0, + reportErrors2 + )) || emptyObjectType; + } function getGlobalTypeOrUndefined(name, arity = 0) { const symbol = getGlobalSymbol( name, @@ -58106,11 +58587,11 @@ ${lanes.join("\n")} } function getTupleElementFlags(node) { switch (node.kind) { - case 189 /* OptionalType */: + case 190 /* OptionalType */: return 2 /* Optional */; - case 190 /* RestType */: + case 191 /* RestType */: return getRestTypeElementFlags(node); - case 201 /* NamedTupleMember */: + case 202 /* NamedTupleMember */: return node.questionToken ? 2 /* Optional */ : node.dotDotDotToken ? getRestTypeElementFlags(node) : 1 /* Required */; default: return 1 /* Required */; @@ -58126,60 +58607,57 @@ ${lanes.join("\n")} return readonly ? globalReadonlyArrayType : globalArrayType; } const elementFlags = map(node.elements, getTupleElementFlags); - const missingName = some(node.elements, (e) => e.kind !== 201 /* NamedTupleMember */); - return getTupleTargetType( - elementFlags, - readonly, - /*associatedNames*/ - missingName ? void 0 : node.elements - ); + return getTupleTargetType(elementFlags, readonly, map(node.elements, memberIfLabeledElementDeclaration)); + } + function memberIfLabeledElementDeclaration(member) { + return isNamedTupleMember(member) || isParameter(member) ? member : void 0; } function isDeferredTypeReferenceNode(node, hasDefaultTypeArguments) { - return !!getAliasSymbolForTypeNode(node) || isResolvedByTypeAlias(node) && (node.kind === 187 /* ArrayType */ ? mayResolveTypeAlias(node.elementType) : node.kind === 188 /* TupleType */ ? some(node.elements, mayResolveTypeAlias) : hasDefaultTypeArguments || some(node.typeArguments, mayResolveTypeAlias)); + return !!getAliasSymbolForTypeNode(node) || isResolvedByTypeAlias(node) && (node.kind === 188 /* ArrayType */ ? mayResolveTypeAlias(node.elementType) : node.kind === 189 /* TupleType */ ? some(node.elements, mayResolveTypeAlias) : hasDefaultTypeArguments || some(node.typeArguments, mayResolveTypeAlias)); } function isResolvedByTypeAlias(node) { const parent2 = node.parent; switch (parent2.kind) { - case 195 /* ParenthesizedType */: - case 201 /* NamedTupleMember */: - case 182 /* TypeReference */: - case 191 /* UnionType */: - case 192 /* IntersectionType */: - case 198 /* IndexedAccessType */: - case 193 /* ConditionalType */: - case 197 /* TypeOperator */: - case 187 /* ArrayType */: - case 188 /* TupleType */: + case 196 /* ParenthesizedType */: + case 202 /* NamedTupleMember */: + case 183 /* TypeReference */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: + case 199 /* IndexedAccessType */: + case 194 /* ConditionalType */: + case 198 /* TypeOperator */: + case 188 /* ArrayType */: + case 189 /* TupleType */: return isResolvedByTypeAlias(parent2); - case 264 /* TypeAliasDeclaration */: + case 265 /* TypeAliasDeclaration */: return true; } return false; } function mayResolveTypeAlias(node) { switch (node.kind) { - case 182 /* TypeReference */: + case 183 /* TypeReference */: return isJSDocTypeReference(node) || !!(resolveTypeReferenceName(node, 788968 /* Type */).flags & 524288 /* TypeAlias */); - case 185 /* TypeQuery */: + case 186 /* TypeQuery */: return true; - case 197 /* TypeOperator */: + case 198 /* TypeOperator */: return node.operator !== 158 /* UniqueKeyword */ && mayResolveTypeAlias(node.type); - case 195 /* ParenthesizedType */: - case 189 /* OptionalType */: - case 201 /* NamedTupleMember */: - case 322 /* JSDocOptionalType */: - case 320 /* JSDocNullableType */: - case 321 /* JSDocNonNullableType */: - case 315 /* JSDocTypeExpression */: + case 196 /* ParenthesizedType */: + case 190 /* OptionalType */: + case 202 /* NamedTupleMember */: + case 323 /* JSDocOptionalType */: + case 321 /* JSDocNullableType */: + case 322 /* JSDocNonNullableType */: + case 316 /* JSDocTypeExpression */: return mayResolveTypeAlias(node.type); - case 190 /* RestType */: - return node.type.kind !== 187 /* ArrayType */ || mayResolveTypeAlias(node.type.elementType); - case 191 /* UnionType */: - case 192 /* IntersectionType */: + case 191 /* RestType */: + return node.type.kind !== 188 /* ArrayType */ || mayResolveTypeAlias(node.type.elementType); + case 192 /* UnionType */: + case 193 /* IntersectionType */: return some(node.types, mayResolveTypeAlias); - case 198 /* IndexedAccessType */: + case 199 /* IndexedAccessType */: return mayResolveTypeAlias(node.objectType) || mayResolveTypeAlias(node.indexType); - case 193 /* ConditionalType */: + case 194 /* ConditionalType */: return mayResolveTypeAlias(node.checkType) || mayResolveTypeAlias(node.extendsType) || mayResolveTypeAlias(node.trueType) || mayResolveTypeAlias(node.falseType); } return false; @@ -58190,15 +58668,15 @@ ${lanes.join("\n")} const target = getArrayOrTupleTargetType(node); if (target === emptyGenericType) { links.resolvedType = emptyObjectType; - } else if (!(node.kind === 188 /* TupleType */ && some(node.elements, (e) => !!(getTupleElementFlags(e) & 8 /* Variadic */))) && isDeferredTypeReferenceNode(node)) { - links.resolvedType = node.kind === 188 /* TupleType */ && node.elements.length === 0 ? target : createDeferredTypeReference( + } else if (!(node.kind === 189 /* TupleType */ && some(node.elements, (e) => !!(getTupleElementFlags(e) & 8 /* Variadic */))) && isDeferredTypeReferenceNode(node)) { + links.resolvedType = node.kind === 189 /* TupleType */ && node.elements.length === 0 ? target : createDeferredTypeReference( target, node, /*mapper*/ void 0 ); } else { - const elementTypes = node.kind === 187 /* ArrayType */ ? [getTypeFromTypeNode(node.elementType)] : map(node.elements, getTypeFromTypeNode); + const elementTypes = node.kind === 188 /* ArrayType */ ? [getTypeFromTypeNode(node.elementType)] : map(node.elements, getTypeFromTypeNode); links.resolvedType = createNormalizedTypeReference(target, elementTypes); } } @@ -58207,7 +58685,7 @@ ${lanes.join("\n")} function isReadonlyTypeOperator(node) { return isTypeOperatorNode(node) && node.operator === 148 /* ReadonlyKeyword */; } - function createTupleType(elementTypes, elementFlags, readonly = false, namedMemberDeclarations) { + function createTupleType(elementTypes, elementFlags, readonly = false, namedMemberDeclarations = []) { const tupleTarget = getTupleTargetType(elementFlags || map(elementTypes, (_) => 1 /* Required */), readonly, namedMemberDeclarations); return tupleTarget === emptyGenericType ? emptyObjectType : elementTypes.length ? createNormalizedTypeReference(tupleTarget, elementTypes) : tupleTarget; } @@ -58215,7 +58693,8 @@ ${lanes.join("\n")} if (elementFlags.length === 1 && elementFlags[0] & 4 /* Rest */) { return readonly ? globalReadonlyArrayType : globalArrayType; } - const key = map(elementFlags, (f) => f & 1 /* Required */ ? "#" : f & 2 /* Optional */ ? "?" : f & 4 /* Rest */ ? "." : "*").join() + (readonly ? "R" : "") + (namedMemberDeclarations && namedMemberDeclarations.length ? "," + map(namedMemberDeclarations, getNodeId).join(",") : ""); + const memberIds = mapDefined(namedMemberDeclarations, (node) => node ? getNodeId(node) : void 0); + const key = map(elementFlags, (f) => f & 1 /* Required */ ? "#" : f & 2 /* Optional */ ? "?" : f & 4 /* Rest */ ? "." : "*").join() + (readonly ? "R" : "") + (memberIds.length ? "," + memberIds.join(",") : ""); let type = tupleTypes.get(key); if (!type) { tupleTypes.set(key, type = createTupleTargetType(elementFlags, readonly, namedMemberDeclarations)); @@ -58297,7 +58776,7 @@ ${lanes.join("\n")} } const expandedTypes = []; const expandedFlags = []; - let expandedDeclarations = []; + const expandedDeclarations = []; let lastRequiredIndex = -1; let firstRestIndex = -1; let lastOptionalOrRestIndex = -1; @@ -58310,7 +58789,7 @@ ${lanes.join("\n")} } else if (isTupleType(type)) { const elements = getElementTypes(type); if (elements.length + expandedTypes.length >= 1e4) { - error(currentNode, isPartOfTypeNode(currentNode) ? Diagnostics.Type_produces_a_tuple_type_that_is_too_large_to_represent : Diagnostics.Expression_produces_a_tuple_type_that_is_too_large_to_represent); + error2(currentNode, isPartOfTypeNode(currentNode) ? Diagnostics.Type_produces_a_tuple_type_that_is_too_large_to_represent : Diagnostics.Expression_produces_a_tuple_type_that_is_too_large_to_represent); return errorType; } forEach(elements, (t, n) => { @@ -58335,7 +58814,7 @@ ${lanes.join("\n")} )); expandedTypes.splice(firstRestIndex + 1, lastOptionalOrRestIndex - firstRestIndex); expandedFlags.splice(firstRestIndex + 1, lastOptionalOrRestIndex - firstRestIndex); - expandedDeclarations == null ? void 0 : expandedDeclarations.splice(firstRestIndex + 1, lastOptionalOrRestIndex - firstRestIndex); + expandedDeclarations.splice(firstRestIndex + 1, lastOptionalOrRestIndex - firstRestIndex); } const tupleTarget = getTupleTargetType(expandedFlags, target.readonly, expandedDeclarations); return tupleTarget === emptyGenericType ? emptyObjectType : expandedFlags.length ? createTypeReference(tupleTarget, expandedTypes) : tupleTarget; @@ -58355,11 +58834,7 @@ ${lanes.join("\n")} true ) : type); expandedFlags.push(flags); - if (expandedDeclarations && declaration) { - expandedDeclarations.push(declaration); - } else { - expandedDeclarations = void 0; - } + expandedDeclarations.push(declaration); } } function sliceTupleType(type, index, endSkipCount = 0) { @@ -58386,6 +58861,9 @@ ${lanes.join("\n")} function getEndElementCount(type, flags) { return type.elementFlags.length - findLastIndex(type.elementFlags, (f) => !(f & flags)) - 1; } + function getTotalFixedElementCount(type) { + return type.fixedLength + getEndElementCount(type, 3 /* Fixed */); + } function getElementTypes(type) { const typeArguments = getTypeArguments(type); const arity = getTypeReferenceArity(type); @@ -58475,7 +58953,7 @@ ${lanes.join("\n")} const estimatedCount = count / (len - i) * len; if (estimatedCount > 1e6) { (_a = tracing) == null ? void 0 : _a.instant(tracing.Phase.CheckTypes, "removeSubtypes_DepthLimit", { typeIds: types.map((t) => t.id) }); - error(currentNode, Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent); + error2(currentNode, Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent); return void 0; } } @@ -58884,7 +59362,7 @@ ${lanes.join("\n")} const size = getCrossProductUnionSize(types); if (size >= 1e5) { (_a = tracing) == null ? void 0 : _a.instant(tracing.Phase.CheckTypes, "checkCrossProductUnion_DepthLimit", { typeIds: types.map((t) => t.id), size }); - error(currentNode, Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent); + error2(currentNode, Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent); return false; } return true; @@ -59236,12 +59714,12 @@ ${lanes.join("\n")} if (isCallLikeExpression(parent2)) { return isCallOrNewExpression(parent2) && isIdentifier(node) && hasMatchingArgument(parent2, node); } - return every(symbol.declarations, (d) => !isFunctionLike(d) || !!(getCombinedNodeFlags(d) & 268435456 /* Deprecated */)); + return every(symbol.declarations, (d) => !isFunctionLike(d) || isDeprecatedDeclaration2(d)); } return true; } function getPropertyTypeForIndexType(originalObjectType, objectType, indexType, fullIndexType, accessNode, accessFlags) { - const accessExpression = accessNode && accessNode.kind === 211 /* ElementAccessExpression */ ? accessNode : void 0; + const accessExpression = accessNode && accessNode.kind === 212 /* ElementAccessExpression */ ? accessNode : void 0; const propName = accessNode && isPrivateIdentifier(accessNode) ? void 0 : getPropertyNameFromIndex(indexType, accessNode); if (propName !== void 0) { if (accessFlags & 256 /* Contextual */) { @@ -59256,7 +59734,7 @@ ${lanes.join("\n")} if (accessExpression) { markPropertyAsReferenced(prop, accessExpression, isSelfTypeAccess(accessExpression.expression, objectType.symbol)); if (isAssignmentToReadonlyEntity(accessExpression, prop, getAssignmentTargetKind(accessExpression))) { - error(accessExpression.argumentExpression, Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property, symbolToString(prop)); + error2(accessExpression.argumentExpression, Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property, symbolToString(prop)); return void 0; } if (accessFlags & 8 /* CacheSymbol */) { @@ -59275,10 +59753,10 @@ ${lanes.join("\n")} const indexNode = getIndexNodeForAccessExpression(accessNode); if (isTupleType(objectType)) { if (index < 0) { - error(indexNode, Diagnostics.A_tuple_type_cannot_be_indexed_with_a_negative_value); + error2(indexNode, Diagnostics.A_tuple_type_cannot_be_indexed_with_a_negative_value); return undefinedType; } - error( + error2( indexNode, Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2, typeToString(objectType), @@ -59286,15 +59764,12 @@ ${lanes.join("\n")} unescapeLeadingUnderscores(propName) ); } else { - error(indexNode, Diagnostics.Property_0_does_not_exist_on_type_1, unescapeLeadingUnderscores(propName), typeToString(objectType)); + error2(indexNode, Diagnostics.Property_0_does_not_exist_on_type_1, unescapeLeadingUnderscores(propName), typeToString(objectType)); } } if (index >= 0) { errorIfWritingToReadonlyIndex(getIndexInfoOfType(objectType, numberType)); - return mapType(objectType, (t) => { - const restType = getRestTypeOfTupleType(t) || undefinedType; - return accessFlags & 1 /* IncludeUndefined */ ? getUnionType([restType, missingType]) : restType; - }); + return getTupleElementTypeOutOfStartCount(objectType, index, accessFlags & 1 /* IncludeUndefined */ ? missingType : void 0); } } } @@ -59306,13 +59781,13 @@ ${lanes.join("\n")} if (indexInfo) { if (accessFlags & 2 /* NoIndexSignatures */ && indexInfo.keyType !== numberType) { if (accessExpression) { - error(accessExpression, Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), typeToString(originalObjectType)); + error2(accessExpression, Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), typeToString(originalObjectType)); } return void 0; } if (accessNode && indexInfo.keyType === stringType && !isTypeAssignableToKind(indexType, 4 /* String */ | 8 /* Number */)) { const indexNode = getIndexNodeForAccessExpression(accessNode); - error(indexNode, Diagnostics.Type_0_cannot_be_used_as_an_index_type, typeToString(indexType)); + error2(indexNode, Diagnostics.Type_0_cannot_be_used_as_an_index_type, typeToString(indexType)); return accessFlags & 1 /* IncludeUndefined */ ? getUnionType([indexInfo.type, missingType]) : indexInfo.type; } errorIfWritingToReadonlyIndex(indexInfo); @@ -59340,23 +59815,23 @@ ${lanes.join("\n")} } } if (objectType.symbol === globalThisSymbol && propName !== void 0 && globalThisSymbol.exports.has(propName) && globalThisSymbol.exports.get(propName).flags & 418 /* BlockScoped */) { - error(accessExpression, Diagnostics.Property_0_does_not_exist_on_type_1, unescapeLeadingUnderscores(propName), typeToString(objectType)); + error2(accessExpression, Diagnostics.Property_0_does_not_exist_on_type_1, unescapeLeadingUnderscores(propName), typeToString(objectType)); } else if (noImplicitAny && !compilerOptions.suppressImplicitAnyIndexErrors && !(accessFlags & 128 /* SuppressNoImplicitAnyError */)) { if (propName !== void 0 && typeHasStaticProperty(propName, objectType)) { const typeName = typeToString(objectType); - error(accessExpression, Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead, propName, typeName, typeName + "[" + getTextOfNode(accessExpression.argumentExpression) + "]"); + error2(accessExpression, Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead, propName, typeName, typeName + "[" + getTextOfNode(accessExpression.argumentExpression) + "]"); } else if (getIndexTypeOfType(objectType, numberType)) { - error(accessExpression.argumentExpression, Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number); + error2(accessExpression.argumentExpression, Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number); } else { let suggestion; if (propName !== void 0 && (suggestion = getSuggestionForNonexistentProperty(propName, objectType))) { if (suggestion !== void 0) { - error(accessExpression.argumentExpression, Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2, propName, typeToString(objectType), suggestion); + error2(accessExpression.argumentExpression, Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2, propName, typeToString(objectType), suggestion); } } else { const suggestion2 = getSuggestionForNonexistentIndexSignature(objectType, accessExpression, indexType); if (suggestion2 !== void 0) { - error(accessExpression, Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1, typeToString(objectType), suggestion2); + error2(accessExpression, Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1, typeToString(objectType), suggestion2); } else { let errorInfo; if (indexType.flags & 1024 /* EnumLiteral */) { @@ -59421,11 +59896,11 @@ ${lanes.join("\n")} if (accessNode) { const indexNode = getIndexNodeForAccessExpression(accessNode); if (indexType.flags & (128 /* StringLiteral */ | 256 /* NumberLiteral */)) { - error(indexNode, Diagnostics.Property_0_does_not_exist_on_type_1, "" + indexType.value, typeToString(objectType)); + error2(indexNode, Diagnostics.Property_0_does_not_exist_on_type_1, "" + indexType.value, typeToString(objectType)); } else if (indexType.flags & (4 /* String */ | 8 /* Number */)) { - error(indexNode, Diagnostics.Type_0_has_no_matching_index_signature_for_type_1, typeToString(objectType), typeToString(indexType)); + error2(indexNode, Diagnostics.Type_0_has_no_matching_index_signature_for_type_1, typeToString(objectType), typeToString(indexType)); } else { - error(indexNode, Diagnostics.Type_0_cannot_be_used_as_an_index_type, typeToString(indexType)); + error2(indexNode, Diagnostics.Type_0_cannot_be_used_as_an_index_type, typeToString(indexType)); } } if (isTypeAny(indexType)) { @@ -59434,12 +59909,12 @@ ${lanes.join("\n")} return void 0; function errorIfWritingToReadonlyIndex(indexInfo) { if (indexInfo && indexInfo.isReadonly && accessExpression && (isAssignmentTarget(accessExpression) || isDeleteTarget(accessExpression))) { - error(accessExpression, Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(objectType)); + error2(accessExpression, Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(objectType)); } } } function getIndexNodeForAccessExpression(accessNode) { - return accessNode.kind === 211 /* ElementAccessExpression */ ? accessNode.argumentExpression : accessNode.kind === 198 /* IndexedAccessType */ ? accessNode.indexType : accessNode.kind === 166 /* ComputedPropertyName */ ? accessNode.expression : accessNode; + return accessNode.kind === 212 /* ElementAccessExpression */ ? accessNode.argumentExpression : accessNode.kind === 199 /* IndexedAccessType */ ? accessNode.indexType : accessNode.kind === 167 /* ComputedPropertyName */ ? accessNode.expression : accessNode; } function isPatternLiteralPlaceholderType(type) { if (type.flags & 2097152 /* Intersection */) { @@ -59579,7 +60054,7 @@ ${lanes.join("\n")} } if (compilerOptions.noUncheckedIndexedAccess && accessFlags & 32 /* ExpressionPosition */) accessFlags |= 1 /* IncludeUndefined */; - if (isGenericIndexType(indexType) || (accessNode && accessNode.kind !== 198 /* IndexedAccessType */ ? isGenericTupleType(objectType) && !indexTypeLessThan(indexType, objectType.target.fixedLength) : isGenericObjectType(objectType) && !(isTupleType(objectType) && indexTypeLessThan(indexType, objectType.target.fixedLength)) || isGenericReducibleType(objectType))) { + if (isGenericIndexType(indexType) || (accessNode && accessNode.kind !== 199 /* IndexedAccessType */ ? isGenericTupleType(objectType) && !indexTypeLessThan(indexType, getTotalFixedElementCount(objectType.target)) : isGenericObjectType(objectType) && !(isTupleType(objectType) && indexTypeLessThan(indexType, getTotalFixedElementCount(objectType.target))) || isGenericReducibleType(objectType))) { if (objectType.flags & 3 /* AnyOrUnknown */) { return objectType; } @@ -59659,7 +60134,7 @@ ${lanes.join("\n")} let tailCount = 0; while (true) { if (tailCount === 1e3) { - error(currentNode, Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite); + error2(currentNode, Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite); return errorType; } const checkType = instantiateType(getActualTypeVariable(root.checkType), mapper); @@ -59684,9 +60159,9 @@ ${lanes.join("\n")} ); if (freshMapper) { const freshCombinedMapper = combineTypeMappers(mapper, freshMapper); - for (const p of freshParams) { - if (root.inferTypeParameters.indexOf(p) === -1) { - p.mapper = freshCombinedMapper; + for (let i = 0; i < freshParams.length; i++) { + if (freshParams[i] !== root.inferTypeParameters[i]) { + freshParams[i].mapper = freshCombinedMapper; } } } @@ -59837,11 +60312,11 @@ ${lanes.join("\n")} const links = getNodeLinks(node); if (!links.resolvedType) { if (!isLiteralImportTypeNode(node)) { - error(node.argument, Diagnostics.String_literal_expected); + error2(node.argument, Diagnostics.String_literal_expected); links.resolvedSymbol = unknownSymbol; return links.resolvedType = errorType; } - const targetMeaning = node.isTypeOf ? 111551 /* Value */ : node.flags & 8388608 /* JSDoc */ ? 111551 /* Value */ | 788968 /* Type */ : 788968 /* Type */; + const targetMeaning = node.isTypeOf ? 111551 /* Value */ : node.flags & 16777216 /* JSDoc */ ? 111551 /* Value */ | 788968 /* Type */ : 788968 /* Type */; const innerModuleSymbol = resolveExternalModuleName(node, node.argument.literal); if (!innerModuleSymbol) { links.resolvedSymbol = unknownSymbol; @@ -59871,7 +60346,7 @@ ${lanes.join("\n")} const symbolFromModule = node.isTypeOf ? void 0 : getSymbol2(getExportsOfSymbol(mergedResolvedSymbol), current.escapedText, meaning); const next = symbolFromModule ?? symbolFromVariable; if (!next) { - error(current, Diagnostics.Namespace_0_has_no_exported_member_1, getFullyQualifiedName(currentNamespace), declarationNameToString(current)); + error2(current, Diagnostics.Namespace_0_has_no_exported_member_1, getFullyQualifiedName(currentNamespace), declarationNameToString(current)); return links.resolvedType = errorType; } getNodeLinks(current).resolvedSymbol = next; @@ -59884,7 +60359,7 @@ ${lanes.join("\n")} links.resolvedType = resolveImportSymbolType(node, links, moduleSymbol, targetMeaning); } else { const errorMessage = targetMeaning === 111551 /* Value */ ? Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here : Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0; - error(node, errorMessage, node.argument.literal.text); + error2(node, errorMessage, node.argument.literal.text); links.resolvedSymbol = unknownSymbol; links.resolvedType = errorType; } @@ -60147,7 +60622,7 @@ ${lanes.join("\n")} false ); const parent2 = container && container.parent; - if (parent2 && (isClassLike(parent2) || parent2.kind === 263 /* InterfaceDeclaration */)) { + if (parent2 && (isClassLike(parent2) || parent2.kind === 264 /* InterfaceDeclaration */)) { if (!isStatic(container) && (!isConstructorDeclaration(container) || isNodeDescendantOf(node, container.body))) { return getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(parent2)).thisType; } @@ -60155,14 +60630,14 @@ ${lanes.join("\n")} if (parent2 && isObjectLiteralExpression(parent2) && isBinaryExpression(parent2.parent) && getAssignmentDeclarationKind(parent2.parent) === 6 /* Prototype */) { return getDeclaredTypeOfClassOrInterface(getSymbolOfNode(parent2.parent.left).parent).thisType; } - const host2 = node.flags & 8388608 /* JSDoc */ ? getHostSignatureFromJSDoc(node) : void 0; + const host2 = node.flags & 16777216 /* JSDoc */ ? getHostSignatureFromJSDoc(node) : void 0; if (host2 && isFunctionExpression(host2) && isBinaryExpression(host2.parent) && getAssignmentDeclarationKind(host2.parent) === 3 /* PrototypeProperty */) { return getDeclaredTypeOfClassOrInterface(getSymbolOfNode(host2.parent.left).parent).thisType; } if (isJSConstructor(container) && isNodeDescendantOf(node, container.body)) { return getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(container)).thisType; } - error(node, Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface); + error2(node, Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface); return errorType; } function getTypeFromThisTypeNode(node) { @@ -60177,17 +60652,17 @@ ${lanes.join("\n")} } function getArrayElementTypeNode(node) { switch (node.kind) { - case 195 /* ParenthesizedType */: + case 196 /* ParenthesizedType */: return getArrayElementTypeNode(node.type); - case 188 /* TupleType */: + case 189 /* TupleType */: if (node.elements.length === 1) { node = node.elements[0]; - if (node.kind === 190 /* RestType */ || node.kind === 201 /* NamedTupleMember */ && node.dotDotDotToken) { + if (node.kind === 191 /* RestType */ || node.kind === 202 /* NamedTupleMember */ && node.dotDotDotToken) { return getArrayElementTypeNode(node.type); } } break; - case 187 /* ArrayType */: + case 188 /* ArrayType */: return node.elementType; } return void 0; @@ -60207,8 +60682,8 @@ ${lanes.join("\n")} function getTypeFromTypeNodeWorker(node) { switch (node.kind) { case 133 /* AnyKeyword */: - case 318 /* JSDocAllType */: - case 319 /* JSDocUnknownType */: + case 319 /* JSDocAllType */: + case 320 /* JSDocUnknownType */: return anyType; case 159 /* UnknownKeyword */: return unknownType; @@ -60216,7 +60691,7 @@ ${lanes.join("\n")} return stringType; case 150 /* NumberKeyword */: return numberType; - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: return bigintType; case 136 /* BooleanKeyword */: return booleanType; @@ -60231,69 +60706,69 @@ ${lanes.join("\n")} case 146 /* NeverKeyword */: return neverType; case 151 /* ObjectKeyword */: - return node.flags & 262144 /* JavaScriptFile */ && !noImplicitAny ? anyType : nonPrimitiveType; + return node.flags & 524288 /* JavaScriptFile */ && !noImplicitAny ? anyType : nonPrimitiveType; case 141 /* IntrinsicKeyword */: return intrinsicMarkerType; - case 196 /* ThisType */: + case 197 /* ThisType */: case 110 /* ThisKeyword */: return getTypeFromThisTypeNode(node); - case 200 /* LiteralType */: + case 201 /* LiteralType */: return getTypeFromLiteralTypeNode(node); - case 182 /* TypeReference */: + case 183 /* TypeReference */: return getTypeFromTypeReference(node); - case 181 /* TypePredicate */: + case 182 /* TypePredicate */: return node.assertsModifier ? voidType : booleanType; - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return getTypeFromTypeReference(node); - case 185 /* TypeQuery */: + case 186 /* TypeQuery */: return getTypeFromTypeQueryNode(node); - case 187 /* ArrayType */: - case 188 /* TupleType */: + case 188 /* ArrayType */: + case 189 /* TupleType */: return getTypeFromArrayOrTupleTypeNode(node); - case 189 /* OptionalType */: + case 190 /* OptionalType */: return getTypeFromOptionalTypeNode(node); - case 191 /* UnionType */: + case 192 /* UnionType */: return getTypeFromUnionTypeNode(node); - case 192 /* IntersectionType */: + case 193 /* IntersectionType */: return getTypeFromIntersectionTypeNode(node); - case 320 /* JSDocNullableType */: + case 321 /* JSDocNullableType */: return getTypeFromJSDocNullableTypeNode(node); - case 322 /* JSDocOptionalType */: + case 323 /* JSDocOptionalType */: return addOptionality(getTypeFromTypeNode(node.type)); - case 201 /* NamedTupleMember */: + case 202 /* NamedTupleMember */: return getTypeFromNamedTupleTypeNode(node); - case 195 /* ParenthesizedType */: - case 321 /* JSDocNonNullableType */: - case 315 /* JSDocTypeExpression */: + case 196 /* ParenthesizedType */: + case 322 /* JSDocNonNullableType */: + case 316 /* JSDocTypeExpression */: return getTypeFromTypeNode(node.type); - case 190 /* RestType */: + case 191 /* RestType */: return getTypeFromRestTypeNode(node); - case 324 /* JSDocVariadicType */: + case 325 /* JSDocVariadicType */: return getTypeFromJSDocVariadicType(node); - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 186 /* TypeLiteral */: - case 328 /* JSDocTypeLiteral */: - case 323 /* JSDocFunctionType */: - case 329 /* JSDocSignature */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 187 /* TypeLiteral */: + case 329 /* JSDocTypeLiteral */: + case 324 /* JSDocFunctionType */: + case 330 /* JSDocSignature */: return getTypeFromTypeLiteralOrFunctionOrConstructorTypeNode(node); - case 197 /* TypeOperator */: + case 198 /* TypeOperator */: return getTypeFromTypeOperatorNode(node); - case 198 /* IndexedAccessType */: + case 199 /* IndexedAccessType */: return getTypeFromIndexedAccessTypeNode(node); - case 199 /* MappedType */: + case 200 /* MappedType */: return getTypeFromMappedTypeNode(node); - case 193 /* ConditionalType */: + case 194 /* ConditionalType */: return getTypeFromConditionalTypeNode(node); - case 194 /* InferType */: + case 195 /* InferType */: return getTypeFromInferTypeNode(node); - case 202 /* TemplateLiteralType */: + case 203 /* TemplateLiteralType */: return getTypeFromTemplateTypeNode(node); - case 204 /* ImportType */: + case 205 /* ImportType */: return getTypeFromImportTypeNode(node); case 80 /* Identifier */: - case 165 /* QualifiedName */: - case 210 /* PropertyAccessExpression */: + case 166 /* QualifiedName */: + case 211 /* PropertyAccessExpression */: const symbol = getSymbolAtLocation(node); return symbol ? getDeclaredTypeOfSymbol(symbol) : errorType; default: @@ -60429,7 +60904,7 @@ ${lanes.join("\n")} /*resolvedTypePredicate*/ void 0, signature.minArgumentCount, - signature.flags & 39 /* PropagatingFlags */ + signature.flags & 167 /* PropagatingFlags */ ); result.target = signature; result.mapper = mapper; @@ -60491,26 +60966,31 @@ ${lanes.join("\n")} if (!result) { const newMapper = createTypeMapper(typeParameters, typeArguments); result = target.objectFlags & 4 /* Reference */ ? createDeferredTypeReference(type.target, type.node, newMapper, newAliasSymbol, newAliasTypeArguments) : target.objectFlags & 32 /* Mapped */ ? instantiateMappedType(target, newMapper, newAliasSymbol, newAliasTypeArguments) : instantiateAnonymousType(target, newMapper, newAliasSymbol, newAliasTypeArguments); - if (result.flags & 138117121 /* ObjectFlagsType */ && !(result.objectFlags & 524288 /* CouldContainTypeVariablesComputed */)) { + target.instantiations.set(id, result); + const resultObjectFlags = getObjectFlags(result); + if (result.flags & 138117121 /* ObjectFlagsType */ && !(resultObjectFlags & 524288 /* CouldContainTypeVariablesComputed */)) { const resultCouldContainTypeVariables = some(typeArguments, couldContainTypeVariables); - if (!(result.objectFlags & 524288 /* CouldContainTypeVariablesComputed */)) { - result.objectFlags |= 524288 /* CouldContainTypeVariablesComputed */ | (resultCouldContainTypeVariables ? 1048576 /* CouldContainTypeVariables */ : 0); + if (!(getObjectFlags(result) & 524288 /* CouldContainTypeVariablesComputed */)) { + if (resultObjectFlags & (32 /* Mapped */ | 16 /* Anonymous */ | 4 /* Reference */)) { + result.objectFlags |= 524288 /* CouldContainTypeVariablesComputed */ | (resultCouldContainTypeVariables ? 1048576 /* CouldContainTypeVariables */ : 0); + } else { + result.objectFlags |= !resultCouldContainTypeVariables ? 524288 /* CouldContainTypeVariablesComputed */ : 0; + } } } - target.instantiations.set(id, result); } return result; } return type; } function maybeTypeParameterReference(node) { - return !(node.parent.kind === 182 /* TypeReference */ && node.parent.typeArguments && node === node.parent.typeName || node.parent.kind === 204 /* ImportType */ && node.parent.typeArguments && node === node.parent.qualifier); + return !(node.parent.kind === 183 /* TypeReference */ && node.parent.typeArguments && node === node.parent.typeName || node.parent.kind === 205 /* ImportType */ && node.parent.typeArguments && node === node.parent.qualifier); } function isTypeParameterPossiblyReferenced(tp, node) { if (tp.symbol && tp.symbol.declarations && tp.symbol.declarations.length === 1) { const container = tp.symbol.declarations[0].parent; for (let n = node; n !== container; n = n.parent) { - if (!n || n.kind === 240 /* Block */ || n.kind === 193 /* ConditionalType */ && forEachChild(n.extendsType, containsReference)) { + if (!n || n.kind === 241 /* Block */ || n.kind === 194 /* ConditionalType */ && forEachChild(n.extendsType, containsReference)) { return true; } } @@ -60519,17 +60999,17 @@ ${lanes.join("\n")} return true; function containsReference(node2) { switch (node2.kind) { - case 196 /* ThisType */: + case 197 /* ThisType */: return !!tp.isThisType; case 80 /* Identifier */: return !tp.isThisType && isPartOfTypeNode(node2) && maybeTypeParameterReference(node2) && getTypeFromTypeNodeWorker(node2) === tp; - case 185 /* TypeQuery */: + case 186 /* TypeQuery */: const entityName = node2.exprName; const firstIdentifier = getFirstIdentifier(entityName); if (!isThisIdentifier(firstIdentifier)) { const firstIdentifierSymbol = getResolvedSymbol(firstIdentifier); const tpDeclaration = tp.symbol.declarations[0]; - const tpScope = tpDeclaration.kind === 167 /* TypeParameter */ ? tpDeclaration.parent : ( + const tpScope = tpDeclaration.kind === 168 /* TypeParameter */ ? tpDeclaration.parent : ( // Type parameter is a regular type parameter, e.g. foo tp.isThisType ? tpDeclaration : ( // Type parameter is the this type, and its declaration is the class declaration. @@ -60541,8 +61021,8 @@ ${lanes.join("\n")} } } return true; - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: return !node2.type && !!node2.body || some(node2.typeParameters, containsReference) || some(node2.parameters, containsReference) || !!node2.type && containsReference(node2.type); } return !!forEachChild(node2, containsReference); @@ -60592,6 +61072,9 @@ ${lanes.join("\n")} const elementFlags = tupleType.target.elementFlags; const elementTypes = map(getElementTypes(tupleType), (t, i) => { const singleton = elementFlags[i] & 8 /* Variadic */ ? t : elementFlags[i] & 4 /* Rest */ ? createArrayType(t) : createTupleType([t], [elementFlags[i]]); + if (singleton === typeVariable) { + return mappedType; + } return instantiateMappedType(mappedType, prependTypeMapping(typeVariable, singleton, mapper)); }); const newReadonly = getModifiedReadonlyState(tupleType.target.readonly, getMappedTypeModifiers(mappedType)); @@ -60679,7 +61162,7 @@ ${lanes.join("\n")} } if (instantiationDepth === 100 || instantiationCount >= 5e6) { (_a = tracing) == null ? void 0 : _a.instant(tracing.Phase.CheckTypes, "instantiateType_DepthLimit", { typeId: type.id, instantiationDepth, instantiationCount }); - error(currentNode, Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite); + error2(currentNode, Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite); return errorType; } totalInstantiationCount++; @@ -60795,32 +61278,32 @@ ${lanes.join("\n")} return createIndexInfo(info.keyType, instantiateType(info.type, mapper), info.isReadonly, info.declaration); } function isContextSensitive(node) { - Debug.assert(node.kind !== 173 /* MethodDeclaration */ || isObjectLiteralMethod(node)); + Debug.assert(node.kind !== 174 /* MethodDeclaration */ || isObjectLiteralMethod(node)); switch (node.kind) { - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: - case 261 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 262 /* FunctionDeclaration */: return isContextSensitiveFunctionLikeDeclaration(node); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return some(node.properties, isContextSensitive); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return some(node.elements, isContextSensitive); - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: return isContextSensitive(node.whenTrue) || isContextSensitive(node.whenFalse); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return (node.operatorToken.kind === 57 /* BarBarToken */ || node.operatorToken.kind === 61 /* QuestionQuestionToken */) && (isContextSensitive(node.left) || isContextSensitive(node.right)); - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return isContextSensitive(node.initializer); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return isContextSensitive(node.expression); - case 291 /* JsxAttributes */: + case 292 /* JsxAttributes */: return some(node.properties, isContextSensitive) || isJsxOpeningElement(node.parent) && some(node.parent.parent.children, isContextSensitive); - case 290 /* JsxAttribute */: { + case 291 /* JsxAttribute */: { const { initializer } = node; return !!initializer && isContextSensitive(initializer); } - case 293 /* JsxExpression */: { + case 294 /* JsxExpression */: { const { expression } = node; return !!expression && isContextSensitive(expression); } @@ -60834,7 +61317,7 @@ ${lanes.join("\n")} if (node.typeParameters || getEffectiveReturnTypeNode(node) || !node.body) { return false; } - if (node.body.kind !== 240 /* Block */) { + if (node.body.kind !== 241 /* Block */) { return isContextSensitive(node.body); } return !!forEachReturnStatement(node.body, (statement) => !!statement.expression && isContextSensitive(statement.expression)); @@ -60929,23 +61412,27 @@ ${lanes.join("\n")} return true; } switch (node.kind) { - case 293 /* JsxExpression */: - case 216 /* ParenthesizedExpression */: + case 234 /* AsExpression */: + if (!isConstAssertion(node)) { + break; + } + case 294 /* JsxExpression */: + case 217 /* ParenthesizedExpression */: return elaborateError(node.expression, source, target, relation, headMessage, containingMessageChain, errorOutputContainer); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: switch (node.operatorToken.kind) { case 64 /* EqualsToken */: case 28 /* CommaToken */: return elaborateError(node.right, source, target, relation, headMessage, containingMessageChain, errorOutputContainer); } break; - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return elaborateObjectLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return elaborateArrayLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer); - case 291 /* JsxAttributes */: + case 292 /* JsxAttributes */: return elaborateJsxComponents(node, source, target, relation, containingMessageChain, errorOutputContainer); - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return elaborateArrowFunction(node, source, target, relation, containingMessageChain, errorOutputContainer); } return false; @@ -61245,16 +61732,16 @@ ${lanes.join("\n")} } function getElaborationElementForJsxChild(child, nameType, getInvalidTextDiagnostic) { switch (child.kind) { - case 293 /* JsxExpression */: + case 294 /* JsxExpression */: return { errorNode: child, innerExpression: child.expression, nameType }; case 12 /* JsxText */: if (child.containsOnlyTriviaWhiteSpaces) { break; } return { errorNode: child, innerExpression: void 0, nameType, errorMessage: getInvalidTextDiagnostic() }; - case 283 /* JsxElement */: - case 284 /* JsxSelfClosingElement */: - case 287 /* JsxFragment */: + case 284 /* JsxElement */: + case 285 /* JsxSelfClosingElement */: + case 288 /* JsxFragment */: return { errorNode: child, innerExpression: child, nameType }; default: return Debug.assertNever(child, "Found invalid jsx child"); @@ -61295,7 +61782,7 @@ ${lanes.join("\n")} result = elaborateIterableOrArrayLikeTargetElementwise(children, realSource, arrayLikeTargetParts, relation, containingMessageChain, errorOutputContainer) || result; } else if (!isTypeRelatedTo(getIndexedAccessType(source, childrenNameType), childrenTargetType, relation)) { result = true; - const diag2 = error( + const diag2 = error2( containingElement.openingElement.tagName, Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided, childrenPropName, @@ -61323,7 +61810,7 @@ ${lanes.join("\n")} } } else if (!isTypeRelatedTo(getIndexedAccessType(source, childrenNameType), childrenTargetType, relation)) { result = true; - const diag2 = error( + const diag2 = error2( containingElement.openingElement.tagName, Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided, childrenPropName, @@ -61404,13 +61891,13 @@ ${lanes.join("\n")} continue; } switch (prop.kind) { - case 177 /* SetAccessor */: - case 176 /* GetAccessor */: - case 173 /* MethodDeclaration */: - case 303 /* ShorthandPropertyAssignment */: + case 178 /* SetAccessor */: + case 177 /* GetAccessor */: + case 174 /* MethodDeclaration */: + case 304 /* ShorthandPropertyAssignment */: yield { errorNode: prop.name, innerExpression: void 0, nameType: type }; break; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: yield { errorNode: prop.name, innerExpression: prop.initializer, nameType: type, errorMessage: isComputedNonLiteralName(prop.name) ? Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1 : void 0 }; break; default: @@ -61485,7 +61972,7 @@ ${lanes.join("\n")} void instantiateType(sourceRestType || targetRestType, reportUnreliableMarkers); } const kind = target.declaration ? target.declaration.kind : 0 /* Unknown */; - const strictVariance = !(checkMode & 3 /* Callback */) && strictFunctionTypes && kind !== 173 /* MethodDeclaration */ && kind !== 172 /* MethodSignature */ && kind !== 175 /* Constructor */; + const strictVariance = !(checkMode & 3 /* Callback */) && strictFunctionTypes && kind !== 174 /* MethodDeclaration */ && kind !== 173 /* MethodSignature */ && kind !== 176 /* Constructor */; let result = -1 /* True */; const sourceThisType = getThisTypeOfSignature(source); if (sourceThisType && sourceThisType !== voidType) { @@ -61804,6 +62291,7 @@ ${lanes.join("\n")} let errorInfo; let relatedInfo; let maybeKeys; + let maybeKeysSet; let sourceStack; let targetStack; let maybeCount = 0; @@ -61828,7 +62316,7 @@ ${lanes.join("\n")} } if (overflow) { (_a = tracing) == null ? void 0 : _a.instant(tracing.Phase.CheckTypes, "checkTypeRelatedTo_DepthLimit", { sourceId: source.id, targetId: target.id, depth: sourceDepth, targetDepth }); - const diag2 = error(errorNode || currentNode, Diagnostics.Excessive_stack_depth_comparing_types_0_and_1, typeToString(source), typeToString(target)); + const diag2 = error2(errorNode || currentNode, Diagnostics.Excessive_stack_depth_comparing_types_0_and_1, typeToString(source), typeToString(target)); if (errorOutputContainer) { (errorOutputContainer.errors || (errorOutputContainer.errors = [])).push(diag2); } @@ -62673,9 +63161,13 @@ ${lanes.join("\n")} } if (!maybeKeys) { maybeKeys = []; + maybeKeysSet = /* @__PURE__ */ new Set(); sourceStack = []; targetStack = []; } else { + if (maybeKeysSet.has(id)) { + return 3 /* Maybe */; + } const broadestEquivalentId = id.startsWith("*") ? getRelationKey( source2, target2, @@ -62684,10 +63176,8 @@ ${lanes.join("\n")} /*ignoreConstraints*/ true ) : void 0; - for (let i = 0; i < maybeCount; i++) { - if (id === maybeKeys[i] || broadestEquivalentId && broadestEquivalentId === maybeKeys[i]) { - return 3 /* Maybe */; - } + if (broadestEquivalentId && maybeKeysSet.has(broadestEquivalentId)) { + return 3 /* Maybe */; } if (sourceDepth === 100 || targetDepth === 100) { overflow = true; @@ -62696,6 +63186,7 @@ ${lanes.join("\n")} } const maybeStart = maybeCount; maybeKeys[maybeCount] = id; + maybeKeysSet.add(id); maybeCount++; const saveExpandingFlags = expandingFlags; if (recursionFlags & 1 /* Source */) { @@ -62748,17 +63239,34 @@ ${lanes.join("\n")} if (result2) { if (result2 === -1 /* True */ || sourceDepth === 0 && targetDepth === 0) { if (result2 === -1 /* True */ || result2 === 3 /* Maybe */) { - for (let i = maybeStart; i < maybeCount; i++) { - relation.set(maybeKeys[i], 1 /* Succeeded */ | propagatingVarianceFlags); - } + resetMaybeStack( + /*markAllAsSucceeded*/ + true + ); + } else { + resetMaybeStack( + /*markAllAsSucceeded*/ + false + ); } - maybeCount = maybeStart; } } else { relation.set(id, (reportErrors2 ? 4 /* Reported */ : 0) | 2 /* Failed */ | propagatingVarianceFlags); - maybeCount = maybeStart; + resetMaybeStack( + /*markAllAsSucceeded*/ + false + ); } return result2; + function resetMaybeStack(markAllAsSucceeded) { + for (let i = maybeStart; i < maybeCount; i++) { + maybeKeysSet.delete(maybeKeys[i]); + if (markAllAsSucceeded) { + relation.set(maybeKeys[i], 1 /* Succeeded */ | propagatingVarianceFlags); + } + } + maybeCount = maybeStart; + } } function structuredTypeRelatedTo(source2, target2, reportErrors2, intersectionState) { const saveErrorInfo = captureErrorCalculationState(); @@ -63170,26 +63678,6 @@ ${lanes.join("\n")} )) { return result2; } - if (sourceFlags & 8388608 /* IndexedAccess */) { - const indexType = source2.indexType; - if (indexType.flags & 4194304 /* Index */) { - const unresolvedIndexConstraint = getBaseConstraintOfType(indexType.type); - const indexConstraint = unresolvedIndexConstraint && unresolvedIndexConstraint !== noConstraintType ? getIndexType(unresolvedIndexConstraint) : keyofConstraintType; - const constraint2 = getIndexedAccessType(source2.objectType, indexConstraint); - if (result2 = isRelatedTo( - constraint2, - target2, - 1 /* Source */, - /*reportErrors*/ - false, - /*headMessage*/ - void 0, - intersectionState - )) { - return result2; - } - } - } if (isMappedTypeGenericIndexedAccess(source2)) { const indexConstraint = getConstraintOfType(source2.indexType); if (indexConstraint) { @@ -63875,7 +64363,7 @@ ${lanes.join("\n")} const sourceSignature = first(sourceSignatures); const targetSignature = first(targetSignatures); result2 = signatureRelatedTo(sourceSignature, targetSignature, eraseGenerics, reportErrors2, intersectionState, incompatibleReporter(sourceSignature, targetSignature)); - if (!result2 && reportErrors2 && kind === 1 /* Construct */ && sourceObjectFlags & targetObjectFlags && (((_a2 = targetSignature.declaration) == null ? void 0 : _a2.kind) === 175 /* Constructor */ || ((_b = sourceSignature.declaration) == null ? void 0 : _b.kind) === 175 /* Constructor */)) { + if (!result2 && reportErrors2 && kind === 1 /* Construct */ && sourceObjectFlags & targetObjectFlags && (((_a2 = targetSignature.declaration) == null ? void 0 : _a2.kind) === 176 /* Constructor */ || ((_b = sourceSignature.declaration) == null ? void 0 : _b.kind) === 176 /* Constructor */)) { const constructSignatureToString = (signature) => signatureToString( signature, /*enclosingDeclaration*/ @@ -64161,7 +64649,7 @@ ${lanes.join("\n")} let matched = false; for (let i = 0; i < types.length; i++) { if (include[i]) { - const targetType = getTypeOfPropertyOfType(types[i], propertyName); + const targetType = getTypeOfPropertyOrIndexSignatureOfType(types[i], propertyName); if (targetType && related(getDiscriminatingType(), targetType)) { matched = true; } else { @@ -64175,7 +64663,7 @@ ${lanes.join("\n")} } } } - const filtered = contains(include, 0 /* False */) ? getUnionType(types.filter((_, i) => include[i])) : target; + const filtered = contains(include, 0 /* False */) ? getUnionType(types.filter((_, i) => include[i]), 0 /* None */) : target; return filtered.flags & 131072 /* Never */ ? target : filtered; } function isWeakType(type) { @@ -64379,7 +64867,7 @@ ${lanes.join("\n")} } function getRecursionIdentity(type) { if (type.flags & 524288 /* Object */ && !isObjectOrArrayLiteralType(type)) { - if (getObjectFlags(type) && 4 /* Reference */ && type.node) { + if (getObjectFlags(type) & 4 /* Reference */ && type.node) { return type.node; } if (type.symbol && !(getObjectFlags(type) & 16 /* Anonymous */ && type.symbol.flags & 32 /* Class */)) { @@ -64560,7 +65048,7 @@ ${lanes.join("\n")} const target = type.target; if (getObjectFlags(target) & 1 /* Class */) { const baseTypeNode = getBaseTypeNodeOfClass(target); - if (baseTypeNode && baseTypeNode.expression.kind !== 80 /* Identifier */ && baseTypeNode.expression.kind !== 210 /* PropertyAccessExpression */) { + if (baseTypeNode && baseTypeNode.expression.kind !== 80 /* Identifier */ && baseTypeNode.expression.kind !== 211 /* PropertyAccessExpression */) { return void 0; } } @@ -64586,7 +65074,8 @@ ${lanes.join("\n")} return !!elementType && isEmptyLiteralType(elementType); } function isTupleLikeType(type) { - return isTupleType(type) || !!getPropertyOfType(type, "0"); + let lengthType; + return isTupleType(type) || !!getPropertyOfType(type, "0") || isArrayLikeType(type) && !!(lengthType = getTypeOfPropertyOfType(type, "length")) && everyType(lengthType, (t) => !!(t.flags & 256 /* NumberLiteral */)); } function isArrayOrTupleLikeType(type) { return isArrayLikeType(type) || isTupleLikeType(type); @@ -64597,17 +65086,7 @@ ${lanes.join("\n")} return propType; } if (everyType(type, isTupleType)) { - return mapType(type, (t) => { - const tupleType = t; - const restType = getRestTypeOfTupleType(tupleType); - if (!restType) { - return undefinedType; - } - if (compilerOptions.noUncheckedIndexedAccess && index >= tupleType.target.fixedLength + getEndElementCount(tupleType.target, 3 /* Fixed */)) { - return getUnionType([restType, undefinedType]); - } - return restType; - }); + return getTupleElementTypeOutOfStartCount(type, index, compilerOptions.noUncheckedIndexedAccess ? undefinedType : void 0); } return void 0; } @@ -64675,6 +65154,19 @@ ${lanes.join("\n")} function getRestTypeOfTupleType(type) { return getElementTypeOfSliceOfTupleType(type, type.target.fixedLength); } + function getTupleElementTypeOutOfStartCount(type, index, undefinedOrMissingType2) { + return mapType(type, (t) => { + const tupleType = t; + const restType = getRestTypeOfTupleType(tupleType); + if (!restType) { + return undefinedType; + } + if (undefinedOrMissingType2 && index >= getTotalFixedElementCount(tupleType.target)) { + return getUnionType([restType, undefinedOrMissingType2]); + } + return restType; + }); + } function getRestArrayTypeOfTupleType(type) { const restType = getRestTypeOfTupleType(type); return restType && createArrayType(restType); @@ -64943,7 +65435,7 @@ ${lanes.join("\n")} const t = getTypeOfSymbol(p); if (getObjectFlags(t) & 65536 /* ContainsWideningType */) { if (!reportWideningErrorsInType(t)) { - error(p.valueDeclaration, Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type, symbolToString(p), typeToString(getWidenedType(t))); + error2(p.valueDeclaration, Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type, symbolToString(p), typeToString(getWidenedType(t))); } errorReported = true; } @@ -64959,12 +65451,12 @@ ${lanes.join("\n")} } let diagnostic; switch (declaration.kind) { - case 225 /* BinaryExpression */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: + case 226 /* BinaryExpression */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: diagnostic = noImplicitAny ? Diagnostics.Member_0_implicitly_has_an_1_type : Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage; break; - case 168 /* Parameter */: + case 169 /* Parameter */: const param = declaration; if (isIdentifier(param.name)) { const originalKeywordKind = identifierToKeywordKind(param.name); @@ -64986,40 +65478,40 @@ ${lanes.join("\n")} } diagnostic = declaration.dotDotDotToken ? noImplicitAny ? Diagnostics.Rest_parameter_0_implicitly_has_an_any_type : Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage : noImplicitAny ? Diagnostics.Parameter_0_implicitly_has_an_1_type : Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage; break; - case 207 /* BindingElement */: + case 208 /* BindingElement */: diagnostic = Diagnostics.Binding_element_0_implicitly_has_an_1_type; if (!noImplicitAny) { return; } break; - case 323 /* JSDocFunctionType */: - error(declaration, Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type, typeAsString); + case 324 /* JSDocFunctionType */: + error2(declaration, Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type, typeAsString); return; - case 329 /* JSDocSignature */: + case 330 /* JSDocSignature */: if (noImplicitAny && isJSDocOverloadTag(declaration.parent)) { - error(declaration.parent.tagName, Diagnostics.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation, typeAsString); + error2(declaration.parent.tagName, Diagnostics.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation, typeAsString); } return; - case 261 /* FunctionDeclaration */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: if (noImplicitAny && !declaration.name) { if (wideningKind === 3 /* GeneratorYield */) { - error(declaration, Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation, typeAsString); + error2(declaration, Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation, typeAsString); } else { - error(declaration, Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type, typeAsString); + error2(declaration, Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type, typeAsString); } return; } diagnostic = !noImplicitAny ? Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage : wideningKind === 3 /* GeneratorYield */ ? Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type : Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type; break; - case 199 /* MappedType */: + case 200 /* MappedType */: if (noImplicitAny) { - error(declaration, Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type); + error2(declaration, Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type); } return; default: @@ -65114,7 +65606,7 @@ ${lanes.join("\n")} function inferFromIntraExpressionSites(context) { if (context.intraExpressionInferenceSites) { for (const { node, type } of context.intraExpressionInferenceSites) { - const contextualType = node.kind === 173 /* MethodDeclaration */ ? getContextualTypeForObjectLiteralMethod(node, 2 /* NoConstraints */) : getContextualType2(node, 2 /* NoConstraints */); + const contextualType = node.kind === 174 /* MethodDeclaration */ ? getContextualTypeForObjectLiteralMethod(node, 2 /* NoConstraints */) : getContextualType2(node, 2 /* NoConstraints */); if (contextualType) { inferTypes(context.inferences, type, contextualType); } @@ -65166,8 +65658,8 @@ ${lanes.join("\n")} } function isNonGenericTopLevelType(type) { if (type.aliasSymbol && !type.aliasTypeArguments) { - const declaration = getDeclarationOfKind(type.aliasSymbol, 264 /* TypeAliasDeclaration */); - return !!(declaration && findAncestor(declaration.parent, (n) => n.kind === 311 /* SourceFile */ ? true : n.kind === 266 /* ModuleDeclaration */ ? false : "quit")); + const declaration = getDeclarationOfKind(type.aliasSymbol, 265 /* TypeAliasDeclaration */); + return !!(declaration && findAncestor(declaration.parent, (n) => n.kind === 312 /* SourceFile */ ? true : n.kind === 267 /* ModuleDeclaration */ ? false : "quit")); } return false; } @@ -65209,17 +65701,18 @@ ${lanes.join("\n")} ); } function inferTypeForHomomorphicMappedType(source, target, constraint) { - if (inInferTypeForHomomorphicMappedType) { - return void 0; + const cacheKey = source.id + "," + target.id + "," + constraint.id; + if (reverseMappedCache.has(cacheKey)) { + return reverseMappedCache.get(cacheKey); } - const key = source.id + "," + target.id + "," + constraint.id; - if (reverseMappedCache.has(key)) { - return reverseMappedCache.get(key); + const recursionKey = source.id + "," + (target.target || target).id; + if (contains(homomorphicMappedTypeInferenceStack, recursionKey)) { + return void 0; } - inInferTypeForHomomorphicMappedType = true; + homomorphicMappedTypeInferenceStack.push(recursionKey); const type = createReverseMappedType(source, target, constraint); - inInferTypeForHomomorphicMappedType = false; - reverseMappedCache.set(key, type); + homomorphicMappedTypeInferenceStack.pop(); + reverseMappedCache.set(cacheKey, type); return type; } function isPartiallyInferableType(type) { @@ -65992,7 +66485,7 @@ ${lanes.join("\n")} if (!(source.flags & 64 /* IsNonInferrable */)) { const saveBivariant = bivariant; const kind = target.declaration ? target.declaration.kind : 0 /* Unknown */; - bivariant = bivariant || kind === 173 /* MethodDeclaration */ || kind === 172 /* MethodSignature */ || kind === 175 /* Constructor */; + bivariant = bivariant || kind === 174 /* MethodDeclaration */ || kind === 173 /* MethodSignature */ || kind === 176 /* Constructor */; applyToParameterTypes(source, target, inferFromContravariantTypesIfStrictFunctionTypes); bivariant = saveBivariant; } @@ -66092,7 +66585,7 @@ ${lanes.join("\n")} const constraint = getConstraintOfTypeParameter(inference.typeParameter); if (constraint) { const instantiatedConstraint = instantiateType(constraint, context.nonFixingMapper); - if (!inferredType || !context.compareTypes(inferredType, getTypeWithThisArgument(instantiatedConstraint, inferredType))) { + if (!inferredType || inferredType === wildcardType || !context.compareTypes(inferredType, getTypeWithThisArgument(instantiatedConstraint, inferredType))) { inference.inferredType = fallbackType && context.compareTypes(fallbackType, getTypeWithThisArgument(instantiatedConstraint, fallbackType)) ? fallbackType : instantiatedConstraint; } } @@ -66150,7 +66643,7 @@ ${lanes.join("\n")} return Diagnostics.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function; } default: - if (node.parent.kind === 303 /* ShorthandPropertyAssignment */) { + if (node.parent.kind === 304 /* ShorthandPropertyAssignment */) { return Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer; } else { return Diagnostics.Cannot_find_name_0; @@ -66173,14 +66666,8 @@ ${lanes.join("\n")} } return links.resolvedSymbol; } - function isInTypeQuery(node) { - return !!findAncestor( - node, - (n) => n.kind === 185 /* TypeQuery */ ? true : n.kind === 80 /* Identifier */ || n.kind === 165 /* QualifiedName */ ? false : "quit" - ); - } function isInAmbientOrTypeNode(node) { - return !!(node.flags & 16777216 /* Ambient */ || findAncestor(node, (n) => isInterfaceDeclaration(n) || isTypeAliasDeclaration(n) || isTypeLiteralNode(n))); + return !!(node.flags & 33554432 /* Ambient */ || findAncestor(node, (n) => isInterfaceDeclaration(n) || isTypeAliasDeclaration(n) || isTypeLiteralNode(n))); } function getFlowCacheKey(node, declaredType, initialType, flowContainer) { switch (node.kind) { @@ -66191,41 +66678,41 @@ ${lanes.join("\n")} } case 110 /* ThisKeyword */: return `0|${flowContainer ? getNodeId(flowContainer) : "-1"}|${getTypeId(declaredType)}|${getTypeId(initialType)}`; - case 234 /* NonNullExpression */: - case 216 /* ParenthesizedExpression */: + case 235 /* NonNullExpression */: + case 217 /* ParenthesizedExpression */: return getFlowCacheKey(node.expression, declaredType, initialType, flowContainer); - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: const left = getFlowCacheKey(node.left, declaredType, initialType, flowContainer); return left && left + "." + node.right.escapedText; - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: const propName = getAccessedPropertyName(node); if (propName !== void 0) { const key = getFlowCacheKey(node.expression, declaredType, initialType, flowContainer); return key && key + "." + propName; } break; - case 205 /* ObjectBindingPattern */: - case 206 /* ArrayBindingPattern */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: + case 206 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: return `${getNodeId(node)}#${getTypeId(declaredType)}`; } return void 0; } function isMatchingReference(source, target) { switch (target.kind) { - case 216 /* ParenthesizedExpression */: - case 234 /* NonNullExpression */: + case 217 /* ParenthesizedExpression */: + case 235 /* NonNullExpression */: return isMatchingReference(source, target.expression); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return isAssignmentExpression(target) && isMatchingReference(source, target.left) || isBinaryExpression(target) && target.operatorToken.kind === 28 /* CommaToken */ && isMatchingReference(source, target.right); } switch (source.kind) { - case 235 /* MetaProperty */: - return target.kind === 235 /* MetaProperty */ && source.keywordToken === target.keywordToken && source.name.escapedText === target.name.escapedText; + case 236 /* MetaProperty */: + return target.kind === 236 /* MetaProperty */ && source.keywordToken === target.keywordToken && source.name.escapedText === target.name.escapedText; case 80 /* Identifier */: case 81 /* PrivateIdentifier */: return isThisInTypeQuery(source) ? target.kind === 110 /* ThisKeyword */ : target.kind === 80 /* Identifier */ && getResolvedSymbol(source) === getResolvedSymbol(target) || (isVariableDeclaration(target) || isBindingElement(target)) && getExportSymbolOfValueSymbolIfExported(getResolvedSymbol(source)) === getSymbolOfDeclaration(target); @@ -66233,17 +66720,17 @@ ${lanes.join("\n")} return target.kind === 110 /* ThisKeyword */; case 108 /* SuperKeyword */: return target.kind === 108 /* SuperKeyword */; - case 234 /* NonNullExpression */: - case 216 /* ParenthesizedExpression */: + case 235 /* NonNullExpression */: + case 217 /* ParenthesizedExpression */: return isMatchingReference(source.expression, target); - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: const sourcePropertyName = getAccessedPropertyName(source); const targetPropertyName = isAccessExpression(target) ? getAccessedPropertyName(target) : void 0; return sourcePropertyName !== void 0 && targetPropertyName !== void 0 && targetPropertyName === sourcePropertyName && isMatchingReference(source.expression, target.expression); - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: return isAccessExpression(target) && source.right.escapedText === getAccessedPropertyName(target) && isMatchingReference(source.left, target.expression); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return isBinaryExpression(source) && source.operatorToken.kind === 28 /* CommaToken */ && isMatchingReference(source.right, target); } return false; @@ -66277,7 +66764,7 @@ ${lanes.join("\n")} /*ignoreErrors*/ true ); - if (!symbol || !(isConstVariable(symbol) || symbol.flags & 8 /* EnumMember */)) + if (!symbol || !(isConstantVariable(symbol) || symbol.flags & 8 /* EnumMember */)) return void 0; const declaration = symbol.valueDeclaration; if (declaration === void 0) @@ -66396,7 +66883,7 @@ ${lanes.join("\n")} } function getMatchingUnionConstituentForObjectLiteral(unionType, node) { const keyPropertyName = getKeyPropertyName(unionType); - const propNode = keyPropertyName && find(node.properties, (p) => p.symbol && p.kind === 302 /* PropertyAssignment */ && p.symbol.escapedName === keyPropertyName && isPossiblyDiscriminantValue(p.initializer)); + const propNode = keyPropertyName && find(node.properties, (p) => p.symbol && p.kind === 303 /* PropertyAssignment */ && p.symbol.escapedName === keyPropertyName && isPossiblyDiscriminantValue(p.initializer)); const propType = propNode && getContextFreeTypeOfExpression(propNode.initializer); return propType && getConstituentTypeForKeyType(unionType, propType); } @@ -66411,7 +66898,7 @@ ${lanes.join("\n")} } } } - if (expression.expression.kind === 210 /* PropertyAccessExpression */ && isOrContainsMatchingReference(reference, expression.expression.expression)) { + if (expression.expression.kind === 211 /* PropertyAccessExpression */ && isOrContainsMatchingReference(reference, expression.expression.expression)) { return true; } return false; @@ -66583,11 +67070,11 @@ ${lanes.join("\n")} ) || errorType); } function getAssignedTypeOfBinaryExpression(node) { - const isDestructuringDefaultAssignment = node.parent.kind === 208 /* ArrayLiteralExpression */ && isDestructuringAssignmentTarget(node.parent) || node.parent.kind === 302 /* PropertyAssignment */ && isDestructuringAssignmentTarget(node.parent.parent); + const isDestructuringDefaultAssignment = node.parent.kind === 209 /* ArrayLiteralExpression */ && isDestructuringAssignmentTarget(node.parent) || node.parent.kind === 303 /* PropertyAssignment */ && isDestructuringAssignmentTarget(node.parent.parent); return isDestructuringDefaultAssignment ? getTypeWithDefault(getAssignedType(node), node.right) : getTypeOfExpression(node.right); } function isDestructuringAssignmentTarget(parent2) { - return parent2.parent.kind === 225 /* BinaryExpression */ && parent2.parent.left === parent2 || parent2.parent.kind === 249 /* ForOfStatement */ && parent2.parent.initializer === parent2; + return parent2.parent.kind === 226 /* BinaryExpression */ && parent2.parent.left === parent2 || parent2.parent.kind === 250 /* ForOfStatement */ && parent2.parent.initializer === parent2; } function getAssignedTypeOfArrayLiteralElement(node, element) { return getTypeOfDestructuredArrayElement(getAssignedType(node), node.elements.indexOf(element)); @@ -66604,21 +67091,21 @@ ${lanes.join("\n")} function getAssignedType(node) { const { parent: parent2 } = node; switch (parent2.kind) { - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return stringType; - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return checkRightHandSideOfForOf(parent2) || errorType; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return getAssignedTypeOfBinaryExpression(parent2); - case 219 /* DeleteExpression */: + case 220 /* DeleteExpression */: return undefinedType; - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return getAssignedTypeOfArrayLiteralElement(parent2, node); - case 229 /* SpreadElement */: + case 230 /* SpreadElement */: return getAssignedTypeOfSpreadExpression(parent2); - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return getAssignedTypeOfPropertyAssignment(parent2); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return getAssignedTypeOfShorthandPropertyAssignment(parent2); } return errorType; @@ -66626,7 +67113,7 @@ ${lanes.join("\n")} function getInitialTypeOfBindingElement(node) { const pattern = node.parent; const parentType = getInitialType(pattern.parent); - const type = pattern.kind === 205 /* ObjectBindingPattern */ ? getTypeOfDestructuredProperty(parentType, node.propertyName || node.name) : !node.dotDotDotToken ? getTypeOfDestructuredArrayElement(parentType, pattern.elements.indexOf(node)) : getTypeOfDestructuredSpreadExpression(parentType); + const type = pattern.kind === 206 /* ObjectBindingPattern */ ? getTypeOfDestructuredProperty(parentType, node.propertyName || node.name) : !node.dotDotDotToken ? getTypeOfDestructuredArrayElement(parentType, pattern.elements.indexOf(node)) : getTypeOfDestructuredSpreadExpression(parentType); return getTypeWithDefault(type, node.initializer); } function getTypeOfInitializer(node) { @@ -66637,25 +67124,25 @@ ${lanes.join("\n")} if (node.initializer) { return getTypeOfInitializer(node.initializer); } - if (node.parent.parent.kind === 248 /* ForInStatement */) { + if (node.parent.parent.kind === 249 /* ForInStatement */) { return stringType; } - if (node.parent.parent.kind === 249 /* ForOfStatement */) { + if (node.parent.parent.kind === 250 /* ForOfStatement */) { return checkRightHandSideOfForOf(node.parent.parent) || errorType; } return errorType; } function getInitialType(node) { - return node.kind === 259 /* VariableDeclaration */ ? getInitialTypeOfVariableDeclaration(node) : getInitialTypeOfBindingElement(node); + return node.kind === 260 /* VariableDeclaration */ ? getInitialTypeOfVariableDeclaration(node) : getInitialTypeOfBindingElement(node); } function isEmptyArrayAssignment(node) { - return node.kind === 259 /* VariableDeclaration */ && node.initializer && isEmptyArrayLiteral2(node.initializer) || node.kind !== 207 /* BindingElement */ && node.parent.kind === 225 /* BinaryExpression */ && isEmptyArrayLiteral2(node.parent.right); + return node.kind === 260 /* VariableDeclaration */ && node.initializer && isEmptyArrayLiteral2(node.initializer) || node.kind !== 208 /* BindingElement */ && node.parent.kind === 226 /* BinaryExpression */ && isEmptyArrayLiteral2(node.parent.right); } function getReferenceCandidate(node) { switch (node.kind) { - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return getReferenceCandidate(node.expression); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: switch (node.operatorToken.kind) { case 64 /* EqualsToken */: case 76 /* BarBarEqualsToken */: @@ -66670,10 +67157,10 @@ ${lanes.join("\n")} } function getReferenceRoot(node) { const { parent: parent2 } = node; - return parent2.kind === 216 /* ParenthesizedExpression */ || parent2.kind === 225 /* BinaryExpression */ && parent2.operatorToken.kind === 64 /* EqualsToken */ && parent2.left === node || parent2.kind === 225 /* BinaryExpression */ && parent2.operatorToken.kind === 28 /* CommaToken */ && parent2.right === node ? getReferenceRoot(parent2) : node; + return parent2.kind === 217 /* ParenthesizedExpression */ || parent2.kind === 226 /* BinaryExpression */ && parent2.operatorToken.kind === 64 /* EqualsToken */ && parent2.left === node || parent2.kind === 226 /* BinaryExpression */ && parent2.operatorToken.kind === 28 /* CommaToken */ && parent2.right === node ? getReferenceRoot(parent2) : node; } function getTypeOfSwitchClause(clause) { - if (clause.kind === 295 /* CaseClause */) { + if (clause.kind === 296 /* CaseClause */) { return getRegularTypeOfLiteralType(getTypeOfExpression(clause.expression)); } return neverType; @@ -66689,12 +67176,12 @@ ${lanes.join("\n")} return links.switchTypes; } function getSwitchClauseTypeOfWitnesses(switchStatement) { - if (some(switchStatement.caseBlock.clauses, (clause) => clause.kind === 295 /* CaseClause */ && !isStringLiteralLike(clause.expression))) { + if (some(switchStatement.caseBlock.clauses, (clause) => clause.kind === 296 /* CaseClause */ && !isStringLiteralLike(clause.expression))) { return void 0; } const witnesses = []; for (const clause of switchStatement.caseBlock.clauses) { - const text = clause.kind === 295 /* CaseClause */ ? clause.expression.text : void 0; + const text = clause.kind === 296 /* CaseClause */ ? clause.expression.text : void 0; witnesses.push(text && !contains(witnesses, text) ? text : void 0); } return witnesses; @@ -66852,8 +67339,8 @@ ${lanes.join("\n")} function isEvolvingArrayOperationTarget(node) { const root = getReferenceRoot(node); const parent2 = root.parent; - const isLengthPushOrUnshift = isPropertyAccessExpression(parent2) && (parent2.name.escapedText === "length" || parent2.parent.kind === 212 /* CallExpression */ && isIdentifier(parent2.name) && isPushOrUnshiftIdentifier(parent2.name)); - const isElementAssignment = parent2.kind === 211 /* ElementAccessExpression */ && parent2.expression === root && parent2.parent.kind === 225 /* BinaryExpression */ && parent2.parent.operatorToken.kind === 64 /* EqualsToken */ && parent2.parent.left === parent2 && !isAssignmentTarget(parent2.parent) && isTypeAssignableToKind(getTypeOfExpression(parent2.argumentExpression), 296 /* NumberLike */); + const isLengthPushOrUnshift = isPropertyAccessExpression(parent2) && (parent2.name.escapedText === "length" || parent2.parent.kind === 213 /* CallExpression */ && isIdentifier(parent2.name) && isPushOrUnshiftIdentifier(parent2.name)); + const isElementAssignment = parent2.kind === 212 /* ElementAccessExpression */ && parent2.expression === root && parent2.parent.kind === 226 /* BinaryExpression */ && parent2.parent.operatorToken.kind === 64 /* EqualsToken */ && parent2.parent.left === parent2 && !isAssignmentTarget(parent2.parent) && isTypeAssignableToKind(getTypeOfExpression(parent2.argumentExpression), 296 /* NumberLike */); return isLengthPushOrUnshift || isElementAssignment; } function isDeclarationWithExplicitTypeAnnotation(node) { @@ -66876,7 +67363,7 @@ ${lanes.join("\n")} if (isDeclarationWithExplicitTypeAnnotation(declaration)) { return getTypeOfSymbol(symbol); } - if (isVariableDeclaration(declaration) && declaration.parent.parent.kind === 249 /* ForOfStatement */) { + if (isVariableDeclaration(declaration) && declaration.parent.parent.kind === 250 /* ForOfStatement */) { const statement = declaration.parent.parent; const expressionType = getTypeOfDottedName( statement.expression, @@ -66901,7 +67388,7 @@ ${lanes.join("\n")} } } function getTypeOfDottedName(node, diagnostic) { - if (!(node.flags & 33554432 /* InWithStatement */)) { + if (!(node.flags & 67108864 /* InWithStatement */)) { switch (node.kind) { case 80 /* Identifier */: const symbol = getExportSymbolOfValueSymbolIfExported(getResolvedSymbol(node)); @@ -66910,7 +67397,7 @@ ${lanes.join("\n")} return getExplicitThisType(node); case 108 /* SuperKeyword */: return checkSuperExpression(node); - case 210 /* PropertyAccessExpression */: { + case 211 /* PropertyAccessExpression */: { const type = getTypeOfDottedName(node.expression, diagnostic); if (type) { const name = node.name; @@ -66927,7 +67414,7 @@ ${lanes.join("\n")} } return void 0; } - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return getTypeOfDottedName(node.expression, diagnostic); } } @@ -66937,7 +67424,7 @@ ${lanes.join("\n")} let signature = links.effectsSignature; if (signature === void 0) { let funcType; - if (node.parent.kind === 243 /* ExpressionStatement */) { + if (node.parent.kind === 244 /* ExpressionStatement */) { funcType = getTypeOfDottedName( node.expression, /*diagnostic*/ @@ -66991,7 +67478,7 @@ ${lanes.join("\n")} /*excludeJSDocTypeAssertions*/ true ); - return node.kind === 97 /* FalseKeyword */ || node.kind === 225 /* BinaryExpression */ && (node.operatorToken.kind === 56 /* AmpersandAmpersandToken */ && (isFalseExpression(node.left) || isFalseExpression(node.right)) || node.operatorToken.kind === 57 /* BarBarToken */ && isFalseExpression(node.left) && isFalseExpression(node.right)); + return node.kind === 97 /* FalseKeyword */ || node.kind === 226 /* BinaryExpression */ && (node.operatorToken.kind === 56 /* AmpersandAmpersandToken */ && (isFalseExpression(node.left) || isFalseExpression(node.right)) || node.operatorToken.kind === 57 /* BarBarToken */ && isFalseExpression(node.left) && isFalseExpression(node.right)); } function isReachableFlowNodeWorker(flow, noCacheCheck) { while (true) { @@ -67110,14 +67597,16 @@ ${lanes.join("\n")} } function isConstantReference(node) { switch (node.kind) { + case 110 /* ThisKeyword */: + return true; case 80 /* Identifier */: if (!isThisInTypeQuery(node)) { const symbol = getResolvedSymbol(node); - return isConstVariable(symbol) || isParameterOrCatchClauseVariable(symbol) && !isSymbolAssigned(symbol); + return isConstantVariable(symbol) || isParameterOrCatchClauseVariable(symbol) && !isSymbolAssigned(symbol); } break; - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return isConstantReference(node.expression) && isReadonlySymbol(getNodeLinks(node).resolvedSymbol || unknownSymbol); } return false; @@ -67137,7 +67626,7 @@ ${lanes.join("\n")} const evolvedType = getTypeFromFlowType(getTypeAtFlowNode(flowNode)); sharedFlowCount = sharedFlowStart; const resultType = getObjectFlags(evolvedType) & 256 /* EvolvingArray */ && isEvolvingArrayOperationTarget(reference) ? autoArrayType : finalizeEvolvingArrayType(evolvedType); - if (resultType === unreachableNeverType || reference.parent && reference.parent.kind === 234 /* NonNullExpression */ && !(resultType.flags & 131072 /* Never */) && getTypeWithFacts(resultType, 2097152 /* NEUndefinedOrNull */).flags & 131072 /* Never */) { + if (resultType === unreachableNeverType || reference.parent && reference.parent.kind === 235 /* NonNullExpression */ && !(resultType.flags & 131072 /* Never */) && getTypeWithFacts(resultType, 2097152 /* NEUndefinedOrNull */).flags & 131072 /* Never */) { return declaredType; } return resultType === nonNullUnknownType ? unknownType : resultType; @@ -67206,7 +67695,7 @@ ${lanes.join("\n")} target.antecedents = saveAntecedents; } else if (flags & 2 /* Start */) { const container = flow.node; - if (container && container !== flowContainer && reference.kind !== 210 /* PropertyAccessExpression */ && reference.kind !== 211 /* ElementAccessExpression */ && reference.kind !== 110 /* ThisKeyword */) { + if (container && container !== flowContainer && reference.kind !== 211 /* PropertyAccessExpression */ && reference.kind !== 212 /* ElementAccessExpression */ && !(reference.kind === 110 /* ThisKeyword */ && container.kind !== 219 /* ArrowFunction */)) { flow = container.flowNode; continue; } @@ -67225,7 +67714,7 @@ ${lanes.join("\n")} } function getInitialOrAssignedType(flow) { const node = flow.node; - return getNarrowableTypeForReference(node.kind === 259 /* VariableDeclaration */ || node.kind === 207 /* BindingElement */ ? getInitialType(node) : getAssignedType(node), reference); + return getNarrowableTypeForReference(node.kind === 260 /* VariableDeclaration */ || node.kind === 208 /* BindingElement */ ? getInitialType(node) : getAssignedType(node), reference); } function getTypeAtFlowAssignment(flow) { const node = flow.node; @@ -67253,15 +67742,15 @@ ${lanes.join("\n")} if (!isReachableFlowNode(flow)) { return unreachableNeverType; } - if (isVariableDeclaration(node) && (isInJSFile(node) || isVarConst(node))) { + if (isVariableDeclaration(node) && (isInJSFile(node) || isVarConstLike(node))) { const init = getDeclaredExpandoInitializer(node); - if (init && (init.kind === 217 /* FunctionExpression */ || init.kind === 218 /* ArrowFunction */)) { + if (init && (init.kind === 218 /* FunctionExpression */ || init.kind === 219 /* ArrowFunction */)) { return getTypeAtFlowNode(flow.antecedent); } } return declaredType; } - if (isVariableDeclaration(node) && node.parent.parent.kind === 248 /* ForInStatement */ && (isMatchingReference(reference, node.parent.parent.expression) || optionalChainContainsReference(node.parent.parent.expression, reference))) { + if (isVariableDeclaration(node) && node.parent.parent.kind === 249 /* ForInStatement */ && (isMatchingReference(reference, node.parent.parent.expression) || optionalChainContainsReference(node.parent.parent.expression, reference))) { return getNonNullableTypeIfNeeded(finalizeEvolvingArrayType(getTypeFromFlowType(getTypeAtFlowNode(flow.antecedent)))); } return void 0; @@ -67275,7 +67764,7 @@ ${lanes.join("\n")} if (node.kind === 97 /* FalseKeyword */) { return unreachableNeverType; } - if (node.kind === 225 /* BinaryExpression */) { + if (node.kind === 226 /* BinaryExpression */) { if (node.operatorToken.kind === 56 /* AmpersandAmpersandToken */) { return narrowTypeByAssertion(narrowTypeByAssertion(type, node.left), node.right); } @@ -67315,13 +67804,13 @@ ${lanes.join("\n")} function getTypeAtFlowArrayMutation(flow) { if (declaredType === autoType || declaredType === autoArrayType) { const node = flow.node; - const expr = node.kind === 212 /* CallExpression */ ? node.expression.expression : node.left.expression; + const expr = node.kind === 213 /* CallExpression */ ? node.expression.expression : node.left.expression; if (isMatchingReference(reference, getReferenceCandidate(expr))) { const flowType = getTypeAtFlowNode(flow.antecedent); const type = getTypeFromFlowType(flowType); if (getObjectFlags(type) & 256 /* EvolvingArray */) { let evolvedType2 = type; - if (node.kind === 212 /* CallExpression */) { + if (node.kind === 213 /* CallExpression */) { for (const arg of node.arguments) { evolvedType2 = addEvolvingArrayElementType(evolvedType2, arg); } @@ -67358,7 +67847,7 @@ ${lanes.join("\n")} let type = getTypeFromFlowType(flowType); if (isMatchingReference(reference, expr)) { type = narrowTypeBySwitchOnDiscriminant(type, flow.switchStatement, flow.clauseStart, flow.clauseEnd); - } else if (expr.kind === 220 /* TypeOfExpression */ && isMatchingReference(reference, expr.expression)) { + } else if (expr.kind === 221 /* TypeOfExpression */ && isMatchingReference(reference, expr.expression)) { type = narrowTypeBySwitchOnTypeOf(type, flow.switchStatement, flow.clauseStart, flow.clauseEnd); } else { if (strictNullChecks) { @@ -67370,7 +67859,7 @@ ${lanes.join("\n")} flow.clauseEnd, (t) => !(t.flags & (32768 /* Undefined */ | 131072 /* Never */)) ); - } else if (expr.kind === 220 /* TypeOfExpression */ && optionalChainContainsReference(expr.expression, reference)) { + } else if (expr.kind === 221 /* TypeOfExpression */ && optionalChainContainsReference(expr.expression, reference)) { type = narrowTypeBySwitchOptionalChainContainment( type, flow.switchStatement, @@ -67515,7 +68004,7 @@ ${lanes.join("\n")} } } else if (isIdentifier(expr)) { const symbol = getResolvedSymbol(expr); - if (isConstVariable(symbol)) { + if (isConstantVariable(symbol)) { const declaration = symbol.valueDeclaration; if (isVariableDeclaration(declaration) && !declaration.type && declaration.initializer && isAccessExpression(declaration.initializer) && isMatchingReference(reference, declaration.initializer.expression)) { return declaration.initializer; @@ -67633,10 +68122,10 @@ ${lanes.join("\n")} const operator = expr.operatorToken.kind; const left = getReferenceCandidate(expr.left); const right = getReferenceCandidate(expr.right); - if (left.kind === 220 /* TypeOfExpression */ && isStringLiteralLike(right)) { + if (left.kind === 221 /* TypeOfExpression */ && isStringLiteralLike(right)) { return narrowTypeByTypeof(type, left, operator, right, assumeTrue); } - if (right.kind === 220 /* TypeOfExpression */ && isStringLiteralLike(left)) { + if (right.kind === 221 /* TypeOfExpression */ && isStringLiteralLike(left)) { return narrowTypeByTypeof(type, right, operator, left, assumeTrue); } if (isMatchingReference(reference, left)) { @@ -67674,12 +68163,15 @@ ${lanes.join("\n")} return narrowTypeByPrivateIdentifierInInExpression(type, expr, assumeTrue); } const target = getReferenceCandidate(expr.right); - const leftType = getTypeOfExpression(expr.left); - if (leftType.flags & 8576 /* StringOrNumberLiteralOrUnique */) { - if (containsMissingType(type) && isAccessExpression(reference) && isMatchingReference(reference.expression, target) && getAccessedPropertyName(reference) === getPropertyNameFromType(leftType)) { + if (containsMissingType(type) && isAccessExpression(reference) && isMatchingReference(reference.expression, target)) { + const leftType = getTypeOfExpression(expr.left); + if (isTypeUsableAsPropertyName(leftType) && getAccessedPropertyName(reference) === getPropertyNameFromType(leftType)) { return getTypeWithFacts(type, assumeTrue ? 524288 /* NEUndefined */ : 65536 /* EQUndefined */); } - if (isMatchingReference(reference, target)) { + } + if (isMatchingReference(reference, target)) { + const leftType = getTypeOfExpression(expr.left); + if (isTypeUsableAsPropertyName(leftType)) { return narrowTypeByInKeyword(type, leftType, assumeTrue); } } @@ -67895,7 +68387,7 @@ ${lanes.join("\n")} if (!witnesses) { return type; } - const defaultIndex = findIndex(switchStatement.caseBlock.clauses, (clause) => clause.kind === 296 /* DefaultClause */); + const defaultIndex = findIndex(switchStatement.caseBlock.clauses, (clause) => clause.kind === 297 /* DefaultClause */); const hasDefaultClause = clauseStart === clauseEnd || defaultIndex >= clauseStart && defaultIndex < clauseEnd; if (hasDefaultClause) { const notEqualFacts = getNotEqualFactsFromTypeofSwitch(clauseStart, clauseEnd, witnesses); @@ -68059,7 +68551,7 @@ ${lanes.join("\n")} case 80 /* Identifier */: if (!isMatchingReference(reference, expr) && inlineLevel < 5) { const symbol = getResolvedSymbol(expr); - if (isConstVariable(symbol)) { + if (isConstantVariable(symbol)) { const declaration = symbol.valueDeclaration; if (declaration && isVariableDeclaration(declaration) && !declaration.type && declaration.initializer && isConstantReference(reference)) { inlineLevel++; @@ -68071,17 +68563,17 @@ ${lanes.join("\n")} } case 110 /* ThisKeyword */: case 108 /* SuperKeyword */: - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return narrowTypeByTruthiness(type, expr, assumeTrue); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return narrowTypeByCallExpression(type, expr, assumeTrue); - case 216 /* ParenthesizedExpression */: - case 234 /* NonNullExpression */: + case 217 /* ParenthesizedExpression */: + case 235 /* NonNullExpression */: return narrowType(type, expr.expression, assumeTrue); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return narrowTypeByBinaryExpression(type, expr, assumeTrue); - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: if (expr.operator === 54 /* ExclamationToken */) { return narrowType(type, expr.operand, !assumeTrue); } @@ -68107,7 +68599,7 @@ ${lanes.join("\n")} location = location.parent; } if (isExpressionNode(location) && (!isAssignmentTarget(location) || isWriteAccess(location))) { - const type = getTypeOfExpression(location); + const type = removeOptionalTypeMarker(getTypeOfExpression(location)); if (getExportSymbolOfValueSymbolIfExported(getNodeLinks(location).resolvedSymbol) === symbol) { return type; } @@ -68119,7 +68611,7 @@ ${lanes.join("\n")} return getNonMissingTypeOfSymbol(symbol); } function getControlFlowContainer(node) { - return findAncestor(node.parent, (node2) => isFunctionLike(node2) && !getImmediatelyInvokedFunctionExpression(node2) || node2.kind === 267 /* ModuleBlock */ || node2.kind === 311 /* SourceFile */ || node2.kind === 171 /* PropertyDeclaration */); + return findAncestor(node.parent, (node2) => isFunctionLike(node2) && !getImmediatelyInvokedFunctionExpression(node2) || node2.kind === 268 /* ModuleBlock */ || node2.kind === 312 /* SourceFile */ || node2.kind === 172 /* PropertyDeclaration */); } function isSymbolAssigned(symbol) { if (!symbol.valueDeclaration) { @@ -68127,8 +68619,8 @@ ${lanes.join("\n")} } const parent2 = getRootDeclaration(symbol.valueDeclaration).parent; const links = getNodeLinks(parent2); - if (!(links.flags & 524288 /* AssignmentsMarked */)) { - links.flags |= 524288 /* AssignmentsMarked */; + if (!(links.flags & 131072 /* AssignmentsMarked */)) { + links.flags |= 131072 /* AssignmentsMarked */; if (!hasParentWithAssignmentsMarked(parent2)) { markNodeAssignments(parent2); } @@ -68136,7 +68628,7 @@ ${lanes.join("\n")} return symbol.isAssigned || false; } function hasParentWithAssignmentsMarked(node) { - return !!findAncestor(node.parent, (node2) => (isFunctionLike(node2) || isCatchClause(node2)) && !!(getNodeLinks(node2).flags & 524288 /* AssignmentsMarked */)); + return !!findAncestor(node.parent, (node2) => (isFunctionLike(node2) || isCatchClause(node2)) && !!(getNodeLinks(node2).flags & 131072 /* AssignmentsMarked */)); } function markNodeAssignments(node) { if (node.kind === 80 /* Identifier */) { @@ -68150,8 +68642,8 @@ ${lanes.join("\n")} forEachChild(node, markNodeAssignments); } } - function isConstVariable(symbol) { - return symbol.flags & 3 /* Variable */ && (getDeclarationNodeFlagsFromSymbol(symbol) & 2 /* Const */) !== 0; + function isConstantVariable(symbol) { + return symbol.flags & 3 /* Variable */ && (getDeclarationNodeFlagsFromSymbol(symbol) & 6 /* Constant */) !== 0; } function parameterInitializerContainsUndefined(declaration) { const links = getNodeLinks(declaration); @@ -68170,12 +68662,12 @@ ${lanes.join("\n")} return links.parameterInitializerContainsUndefined; } function removeOptionalityFromDeclaredType(declaredType, declaration) { - const removeUndefined = strictNullChecks && declaration.kind === 168 /* Parameter */ && declaration.initializer && getTypeFacts(declaredType) & 16777216 /* IsUndefined */ && !parameterInitializerContainsUndefined(declaration); + const removeUndefined = strictNullChecks && declaration.kind === 169 /* Parameter */ && declaration.initializer && getTypeFacts(declaredType) & 16777216 /* IsUndefined */ && !parameterInitializerContainsUndefined(declaration); return removeUndefined ? getTypeWithFacts(declaredType, 524288 /* NEUndefined */) : declaredType; } function isConstraintPosition(type, node) { const parent2 = node.parent; - return parent2.kind === 210 /* PropertyAccessExpression */ || parent2.kind === 165 /* QualifiedName */ || parent2.kind === 212 /* CallExpression */ && parent2.expression === node || parent2.kind === 211 /* ElementAccessExpression */ && parent2.expression === node && !(someType(type, isGenericTypeWithoutNullableConstraint) && isGenericIndexType(getTypeOfExpression(parent2.argumentExpression))); + return parent2.kind === 211 /* PropertyAccessExpression */ || parent2.kind === 166 /* QualifiedName */ || parent2.kind === 213 /* CallExpression */ && parent2.expression === node || parent2.kind === 212 /* ElementAccessExpression */ && parent2.expression === node && !(someType(type, isGenericTypeWithoutNullableConstraint) && isGenericIndexType(getTypeOfExpression(parent2.argumentExpression))); } function isGenericTypeWithUnionConstraint(type) { return type.flags & 2097152 /* Intersection */ ? some(type.types, isGenericTypeWithUnionConstraint) : !!(type.flags & 465829888 /* Instantiable */ && getBaseConstraintOrType(type).flags & (98304 /* Nullable */ | 1048576 /* Union */)); @@ -68218,9 +68710,13 @@ ${lanes.join("\n")} symbol, /*excludes*/ 111551 /* Value */ - ) && !isInTypeQuery(location) && !getTypeOnlyAliasDeclaration(symbol, 111551 /* Value */)) { + ) && !isInTypeQuery(location)) { const target = resolveAlias(symbol); - if (getAllSymbolFlags(target) & (111551 /* Value */ | 1048576 /* ExportValue */)) { + if (getSymbolFlags( + symbol, + /*excludeTypeOnlyMeanings*/ + true + ) & (111551 /* Value */ | 1048576 /* ExportValue */)) { if (getIsolatedModules(compilerOptions) || shouldPreserveConstEnums(compilerOptions) && isExportOrExportExpression(location) || !isConstEnumOrConstEnumOnlyModule(getExportSymbolOfValueSymbolIfExported(target))) { markAliasSymbolAsReferenced(symbol); } else { @@ -68236,14 +68732,14 @@ ${lanes.join("\n")} if (declaration) { if (isBindingElement(declaration) && !declaration.initializer && !declaration.dotDotDotToken && declaration.parent.elements.length >= 2) { const parent2 = declaration.parent.parent; - if (parent2.kind === 259 /* VariableDeclaration */ && getCombinedNodeFlags(declaration) & 2 /* Const */ || parent2.kind === 168 /* Parameter */) { + if (parent2.kind === 260 /* VariableDeclaration */ && getCombinedNodeFlagsCached(declaration) & 6 /* Constant */ || parent2.kind === 169 /* Parameter */) { const links = getNodeLinks(parent2); - if (!(links.flags & 16777216 /* InCheckIdentifier */)) { - links.flags |= 16777216 /* InCheckIdentifier */; + if (!(links.flags & 4194304 /* InCheckIdentifier */)) { + links.flags |= 4194304 /* InCheckIdentifier */; const parentType = getTypeForBindingElementParent(parent2, 0 /* Normal */); const parentTypeConstraint = parentType && mapType(parentType, getBaseConstraintOrType); - links.flags &= ~16777216 /* InCheckIdentifier */; - if (parentTypeConstraint && parentTypeConstraint.flags & 1048576 /* Union */ && !(parent2.kind === 168 /* Parameter */ && isSymbolAssigned(symbol))) { + links.flags &= ~4194304 /* InCheckIdentifier */; + if (parentTypeConstraint && parentTypeConstraint.flags & 1048576 /* Union */ && !(parent2.kind === 169 /* Parameter */ && isSymbolAssigned(symbol))) { const pattern = declaration.parent; const narrowedType = getFlowTypeOfReference( pattern, @@ -68295,15 +68791,15 @@ ${lanes.join("\n")} } if (symbol === argumentsSymbol) { if (isInPropertyInitializerOrClassStaticBlock(node)) { - error(node, Diagnostics.arguments_cannot_be_referenced_in_property_initializers); + error2(node, Diagnostics.arguments_cannot_be_referenced_in_property_initializers); return errorType; } const container = getContainingFunction(node); if (languageVersion < 2 /* ES2015 */) { - if (container.kind === 218 /* ArrowFunction */) { - error(node, Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression); + if (container.kind === 219 /* ArrowFunction */) { + error2(node, Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression); } else if (hasSyntacticModifier(container, 512 /* Async */)) { - error(node, Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method); + error2(node, Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method); } } getNodeLinks(container).flags |= 512 /* CaptureArguments */; @@ -68319,17 +68815,7 @@ ${lanes.join("\n")} } let declaration = localOrExportSymbol.valueDeclaration; if (declaration && localOrExportSymbol.flags & 32 /* Class */) { - if (declaration.kind === 262 /* ClassDeclaration */ && nodeIsDecorated(legacyDecorators, declaration)) { - let container = getContainingClass(node); - while (container !== void 0) { - if (container === declaration && container.name !== node) { - getNodeLinks(declaration).flags |= 1048576 /* ClassWithConstructorReference */; - getNodeLinks(node).flags |= 2097152 /* ConstructorReferenceInClass */; - break; - } - container = getContainingClass(container); - } - } else if (declaration.kind === 230 /* ClassExpression */) { + if (isClassLike(declaration) && declaration.name !== node) { let container = getThisContainer( node, /*includeArrowFunctions*/ @@ -68337,14 +68823,7 @@ ${lanes.join("\n")} /*includeClassComputedPropertyName*/ false ); - while (container.kind !== 311 /* SourceFile */) { - if (container.parent === declaration) { - if (isPropertyDeclaration(container) && isStatic(container) || isClassStaticBlockDeclaration(container)) { - getNodeLinks(declaration).flags |= 1048576 /* ClassWithConstructorReference */; - getNodeLinks(node).flags |= 2097152 /* ConstructorReferenceInClass */; - } - break; - } + while (container.kind !== 312 /* SourceFile */ && container.parent !== declaration) { container = getThisContainer( container, /*includeArrowFunctions*/ @@ -68353,6 +68832,11 @@ ${lanes.join("\n")} false ); } + if (container.kind !== 312 /* SourceFile */) { + getNodeLinks(declaration).flags |= 262144 /* ContainsConstructorReference */; + getNodeLinks(container).flags |= 262144 /* ContainsConstructorReference */; + getNodeLinks(node).flags |= 536870912 /* ConstructorReference */; + } } } checkNestedBlockScopedBinding(node, symbol); @@ -68361,14 +68845,14 @@ ${lanes.join("\n")} if (assignmentKind) { if (!(localOrExportSymbol.flags & 3 /* Variable */) && !(isInJSFile(node) && localOrExportSymbol.flags & 512 /* ValueModule */)) { const assignmentError = localOrExportSymbol.flags & 384 /* Enum */ ? Diagnostics.Cannot_assign_to_0_because_it_is_an_enum : localOrExportSymbol.flags & 32 /* Class */ ? Diagnostics.Cannot_assign_to_0_because_it_is_a_class : localOrExportSymbol.flags & 1536 /* Module */ ? Diagnostics.Cannot_assign_to_0_because_it_is_a_namespace : localOrExportSymbol.flags & 16 /* Function */ ? Diagnostics.Cannot_assign_to_0_because_it_is_a_function : localOrExportSymbol.flags & 2097152 /* Alias */ ? Diagnostics.Cannot_assign_to_0_because_it_is_an_import : Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable; - error(node, assignmentError, symbolToString(symbol)); + error2(node, assignmentError, symbolToString(symbol)); return errorType; } if (isReadonlySymbol(localOrExportSymbol)) { if (localOrExportSymbol.flags & 3 /* Variable */) { - error(node, Diagnostics.Cannot_assign_to_0_because_it_is_a_constant, symbolToString(symbol)); + error2(node, Diagnostics.Cannot_assign_to_0_because_it_is_a_constant, symbolToString(symbol)); } else { - error(node, Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property, symbolToString(symbol)); + error2(node, Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property, symbolToString(symbol)); } return errorType; } @@ -68387,30 +68871,30 @@ ${lanes.join("\n")} return type; } type = getNarrowableTypeForReference(type, node, checkMode); - const isParameter2 = getRootDeclaration(declaration).kind === 168 /* Parameter */; + const isParameter2 = getRootDeclaration(declaration).kind === 169 /* Parameter */; const declarationContainer = getControlFlowContainer(declaration); let flowContainer = getControlFlowContainer(node); const isOuterVariable = flowContainer !== declarationContainer; const isSpreadDestructuringAssignmentTarget = node.parent && node.parent.parent && isSpreadAssignment(node.parent) && isDestructuringAssignmentTarget(node.parent.parent); const isModuleExports = symbol.flags & 134217728 /* ModuleExports */; const typeIsAutomatic = type === autoType || type === autoArrayType; - const isAutomaticTypeInNonNull = typeIsAutomatic && node.parent.kind === 234 /* NonNullExpression */; - while (flowContainer !== declarationContainer && (flowContainer.kind === 217 /* FunctionExpression */ || flowContainer.kind === 218 /* ArrowFunction */ || isObjectLiteralOrClassExpressionMethodOrAccessor(flowContainer)) && (isConstVariable(localOrExportSymbol) && type !== autoArrayType || isParameter2 && !isSymbolAssigned(localOrExportSymbol))) { + const isAutomaticTypeInNonNull = typeIsAutomatic && node.parent.kind === 235 /* NonNullExpression */; + while (flowContainer !== declarationContainer && (flowContainer.kind === 218 /* FunctionExpression */ || flowContainer.kind === 219 /* ArrowFunction */ || isObjectLiteralOrClassExpressionMethodOrAccessor(flowContainer)) && (isConstantVariable(localOrExportSymbol) && type !== autoArrayType || isParameter2 && !isSymbolAssigned(localOrExportSymbol))) { flowContainer = getControlFlowContainer(flowContainer); } - const assumeInitialized = isParameter2 || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || isSameScopedBindingElement(node, declaration) || type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (3 /* AnyOrUnknown */ | 16384 /* Void */)) !== 0 || isInTypeQuery(node) || isInAmbientOrTypeNode(node) || node.parent.kind === 280 /* ExportSpecifier */) || node.parent.kind === 234 /* NonNullExpression */ || declaration.kind === 259 /* VariableDeclaration */ && declaration.exclamationToken || declaration.flags & 16777216 /* Ambient */; + const assumeInitialized = isParameter2 || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || isSameScopedBindingElement(node, declaration) || type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (3 /* AnyOrUnknown */ | 16384 /* Void */)) !== 0 || isInTypeQuery(node) || isInAmbientOrTypeNode(node) || node.parent.kind === 281 /* ExportSpecifier */) || node.parent.kind === 235 /* NonNullExpression */ || declaration.kind === 260 /* VariableDeclaration */ && declaration.exclamationToken || declaration.flags & 33554432 /* Ambient */; const initialType = isAutomaticTypeInNonNull ? undefinedType : assumeInitialized ? isParameter2 ? removeOptionalityFromDeclaredType(type, declaration) : type : typeIsAutomatic ? undefinedType : getOptionalType(type); const flowType = isAutomaticTypeInNonNull ? getNonNullableType(getFlowTypeOfReference(node, type, initialType, flowContainer)) : getFlowTypeOfReference(node, type, initialType, flowContainer); if (!isEvolvingArrayOperationTarget(node) && (type === autoType || type === autoArrayType)) { if (flowType === autoType || flowType === autoArrayType) { if (noImplicitAny) { - error(getNameOfDeclaration(declaration), Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined, symbolToString(symbol), typeToString(flowType)); - error(node, Diagnostics.Variable_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType)); + error2(getNameOfDeclaration(declaration), Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined, symbolToString(symbol), typeToString(flowType)); + error2(node, Diagnostics.Variable_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType)); } return convertAutoToAny(flowType); } } else if (!assumeInitialized && !containsUndefinedType(type) && containsUndefinedType(flowType)) { - error(node, Diagnostics.Variable_0_is_used_before_being_assigned, symbolToString(symbol)); + error2(node, Diagnostics.Variable_0_is_used_before_being_assigned, symbolToString(symbol)); return type; } return assignmentKind ? getBaseTypeOfLiteralType(flowType) : flowType; @@ -68452,7 +68936,7 @@ ${lanes.join("\n")} )); } function checkNestedBlockScopedBinding(node, symbol) { - if (languageVersion >= 2 /* ES2015 */ || (symbol.flags & (2 /* BlockScopedVariable */ | 32 /* Class */)) === 0 || !symbol.valueDeclaration || isSourceFile(symbol.valueDeclaration) || symbol.valueDeclaration.parent.kind === 298 /* CatchClause */) { + if (languageVersion >= 2 /* ES2015 */ || (symbol.flags & (2 /* BlockScopedVariable */ | 32 /* Class */)) === 0 || !symbol.valueDeclaration || isSourceFile(symbol.valueDeclaration) || symbol.valueDeclaration.parent.kind === 299 /* CatchClause */) { return; } const container = getEnclosingBlockScopeContainer(symbol.valueDeclaration); @@ -68462,7 +68946,7 @@ ${lanes.join("\n")} if (isCaptured) { let capturesBlockScopeBindingInLoopBody = true; if (isForStatement(container)) { - const varDeclList = getAncestor(symbol.valueDeclaration, 260 /* VariableDeclarationList */); + const varDeclList = getAncestor(symbol.valueDeclaration, 261 /* VariableDeclarationList */); if (varDeclList && varDeclList.parent === container) { const part = getPartOfForStatementContainingNode(node.parent, container); if (part) { @@ -68481,9 +68965,9 @@ ${lanes.join("\n")} } } if (isForStatement(container)) { - const varDeclList = getAncestor(symbol.valueDeclaration, 260 /* VariableDeclarationList */); + const varDeclList = getAncestor(symbol.valueDeclaration, 261 /* VariableDeclarationList */); if (varDeclList && varDeclList.parent === container && isAssignedInBodyOfForStatement(node, container)) { - getNodeLinks(symbol.valueDeclaration).flags |= 262144 /* NeedsLoopOutParameter */; + getNodeLinks(symbol.valueDeclaration).flags |= 65536 /* NeedsLoopOutParameter */; } } getNodeLinks(symbol.valueDeclaration).flags |= 32768 /* BlockScopedBindingInLoop */; @@ -68498,13 +68982,13 @@ ${lanes.join("\n")} } function isAssignedInBodyOfForStatement(node, container) { let current = node; - while (current.parent.kind === 216 /* ParenthesizedExpression */) { + while (current.parent.kind === 217 /* ParenthesizedExpression */) { current = current.parent; } let isAssigned = false; if (isAssignmentTarget(current)) { isAssigned = true; - } else if (current.parent.kind === 223 /* PrefixUnaryExpression */ || current.parent.kind === 224 /* PostfixUnaryExpression */) { + } else if (current.parent.kind === 224 /* PrefixUnaryExpression */ || current.parent.kind === 225 /* PostfixUnaryExpression */) { const expr = current.parent; isAssigned = expr.operator === 46 /* PlusPlusToken */ || expr.operator === 47 /* MinusMinusToken */; } @@ -68515,7 +68999,7 @@ ${lanes.join("\n")} } function captureLexicalThis(node, container) { getNodeLinks(node).flags |= 2 /* LexicalThis */; - if (container.kind === 171 /* PropertyDeclaration */ || container.kind === 175 /* Constructor */) { + if (container.kind === 172 /* PropertyDeclaration */ || container.kind === 176 /* Constructor */) { const classNode = container.parent; getNodeLinks(classNode).flags |= 4 /* CaptureThis */; } else { @@ -68540,13 +69024,13 @@ ${lanes.join("\n")} /*noCacheCheck*/ false )) { - error(node, diagnosticMessage); + error2(node, diagnosticMessage); } } } function checkThisInStaticClassFieldInitializerInDecoratedClass(thisExpression, container) { if (isPropertyDeclaration(container) && hasStaticModifier(container) && legacyDecorators && container.initializer && textRangeContainsPositionInclusive(container.initializer, thisExpression.pos) && hasDecorators(container.parent)) { - error(thisExpression, Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class); + error2(thisExpression, Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class); } } function checkThisExpression(node) { @@ -68560,11 +69044,11 @@ ${lanes.join("\n")} ); let capturedByArrowFunction = false; let thisInComputedPropertyName = false; - if (container.kind === 175 /* Constructor */) { + if (container.kind === 176 /* Constructor */) { checkThisBeforeSuper(node, container, Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class); } while (true) { - if (container.kind === 218 /* ArrowFunction */) { + if (container.kind === 219 /* ArrowFunction */) { container = getThisContainer( container, /*includeArrowFunctions*/ @@ -68573,7 +69057,7 @@ ${lanes.join("\n")} ); capturedByArrowFunction = true; } - if (container.kind === 166 /* ComputedPropertyName */) { + if (container.kind === 167 /* ComputedPropertyName */) { container = getThisContainer( container, !capturedByArrowFunction, @@ -68587,18 +69071,18 @@ ${lanes.join("\n")} } checkThisInStaticClassFieldInitializerInDecoratedClass(node, container); if (thisInComputedPropertyName) { - error(node, Diagnostics.this_cannot_be_referenced_in_a_computed_property_name); + error2(node, Diagnostics.this_cannot_be_referenced_in_a_computed_property_name); } else { switch (container.kind) { - case 266 /* ModuleDeclaration */: - error(node, Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body); + case 267 /* ModuleDeclaration */: + error2(node, Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body); break; - case 265 /* EnumDeclaration */: - error(node, Diagnostics.this_cannot_be_referenced_in_current_location); + case 266 /* EnumDeclaration */: + error2(node, Diagnostics.this_cannot_be_referenced_in_current_location); break; - case 175 /* Constructor */: + case 176 /* Constructor */: if (isInConstructorArgumentInitializer(node, container)) { - error(node, Diagnostics.this_cannot_be_referenced_in_constructor_arguments); + error2(node, Diagnostics.this_cannot_be_referenced_in_constructor_arguments); } break; } @@ -68615,9 +69099,9 @@ ${lanes.join("\n")} if (noImplicitThis) { const globalThisType2 = getTypeOfSymbol(globalThisSymbol); if (type === globalThisType2 && capturedByArrowFunction) { - error(node, Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this); + error2(node, Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this); } else if (!type) { - const diag2 = error(node, Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation); + const diag2 = error2(node, Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation); if (!isSourceFile(container)) { const outsideThis = tryGetThisTypeAt(container); if (outsideThis && outsideThis !== globalThisType2) { @@ -68690,36 +69174,33 @@ ${lanes.join("\n")} } } function getClassNameFromPrototypeMethod(container) { - if (container.kind === 217 /* FunctionExpression */ && isBinaryExpression(container.parent) && getAssignmentDeclarationKind(container.parent) === 3 /* PrototypeProperty */) { + if (container.kind === 218 /* FunctionExpression */ && isBinaryExpression(container.parent) && getAssignmentDeclarationKind(container.parent) === 3 /* PrototypeProperty */) { return container.parent.left.expression.expression; - } else if (container.kind === 173 /* MethodDeclaration */ && container.parent.kind === 209 /* ObjectLiteralExpression */ && isBinaryExpression(container.parent.parent) && getAssignmentDeclarationKind(container.parent.parent) === 6 /* Prototype */) { + } else if (container.kind === 174 /* MethodDeclaration */ && container.parent.kind === 210 /* ObjectLiteralExpression */ && isBinaryExpression(container.parent.parent) && getAssignmentDeclarationKind(container.parent.parent) === 6 /* Prototype */) { return container.parent.parent.left.expression; - } else if (container.kind === 217 /* FunctionExpression */ && container.parent.kind === 302 /* PropertyAssignment */ && container.parent.parent.kind === 209 /* ObjectLiteralExpression */ && isBinaryExpression(container.parent.parent.parent) && getAssignmentDeclarationKind(container.parent.parent.parent) === 6 /* Prototype */) { + } else if (container.kind === 218 /* FunctionExpression */ && container.parent.kind === 303 /* PropertyAssignment */ && container.parent.parent.kind === 210 /* ObjectLiteralExpression */ && isBinaryExpression(container.parent.parent.parent) && getAssignmentDeclarationKind(container.parent.parent.parent) === 6 /* Prototype */) { return container.parent.parent.parent.left.expression; - } else if (container.kind === 217 /* FunctionExpression */ && isPropertyAssignment(container.parent) && isIdentifier(container.parent.name) && (container.parent.name.escapedText === "value" || container.parent.name.escapedText === "get" || container.parent.name.escapedText === "set") && isObjectLiteralExpression(container.parent.parent) && isCallExpression(container.parent.parent.parent) && container.parent.parent.parent.arguments[2] === container.parent.parent && getAssignmentDeclarationKind(container.parent.parent.parent) === 9 /* ObjectDefinePrototypeProperty */) { + } else if (container.kind === 218 /* FunctionExpression */ && isPropertyAssignment(container.parent) && isIdentifier(container.parent.name) && (container.parent.name.escapedText === "value" || container.parent.name.escapedText === "get" || container.parent.name.escapedText === "set") && isObjectLiteralExpression(container.parent.parent) && isCallExpression(container.parent.parent.parent) && container.parent.parent.parent.arguments[2] === container.parent.parent && getAssignmentDeclarationKind(container.parent.parent.parent) === 9 /* ObjectDefinePrototypeProperty */) { return container.parent.parent.parent.arguments[0].expression; } else if (isMethodDeclaration(container) && isIdentifier(container.name) && (container.name.escapedText === "value" || container.name.escapedText === "get" || container.name.escapedText === "set") && isObjectLiteralExpression(container.parent) && isCallExpression(container.parent.parent) && container.parent.parent.arguments[2] === container.parent && getAssignmentDeclarationKind(container.parent.parent) === 9 /* ObjectDefinePrototypeProperty */) { return container.parent.parent.arguments[0].expression; } } function getTypeForThisExpressionFromJSDoc(node) { - const jsdocType = getJSDocType(node); - if (jsdocType && jsdocType.kind === 323 /* JSDocFunctionType */) { - const jsDocFunctionType = jsdocType; - if (jsDocFunctionType.parameters.length > 0 && jsDocFunctionType.parameters[0].name && jsDocFunctionType.parameters[0].name.escapedText === "this" /* This */) { - return getTypeFromTypeNode(jsDocFunctionType.parameters[0].type); - } - } const thisTag = getJSDocThisTag(node); if (thisTag && thisTag.typeExpression) { return getTypeFromTypeNode(thisTag.typeExpression); } + const signature = getSignatureOfTypeTag(node); + if (signature) { + return getThisTypeOfSignature(signature); + } } function isInConstructorArgumentInitializer(node, constructorDecl) { - return !!findAncestor(node, (n) => isFunctionLikeDeclaration(n) ? "quit" : n.kind === 168 /* Parameter */ && n.parent === constructorDecl); + return !!findAncestor(node, (n) => isFunctionLikeDeclaration(n) ? "quit" : n.kind === 169 /* Parameter */ && n.parent === constructorDecl); } function checkSuperExpression(node) { - const isCallExpression2 = node.parent.kind === 212 /* CallExpression */ && node.parent.expression === node; + const isCallExpression2 = node.parent.kind === 213 /* CallExpression */ && node.parent.expression === node; const immediateContainer = getSuperContainer( node, /*stopOnFunctions*/ @@ -68729,7 +69210,7 @@ ${lanes.join("\n")} let needToCaptureLexicalThis = false; let inAsyncFunction = false; if (!isCallExpression2) { - while (container && container.kind === 218 /* ArrowFunction */) { + while (container && container.kind === 219 /* ArrowFunction */) { if (hasSyntacticModifier(container, 512 /* Async */)) inAsyncFunction = true; container = getSuperContainer( @@ -68744,19 +69225,19 @@ ${lanes.join("\n")} } let nodeCheckFlag = 0; if (!container || !isLegalUsageOfSuperExpression(container)) { - const current = findAncestor(node, (n) => n === container ? "quit" : n.kind === 166 /* ComputedPropertyName */); - if (current && current.kind === 166 /* ComputedPropertyName */) { - error(node, Diagnostics.super_cannot_be_referenced_in_a_computed_property_name); + const current = findAncestor(node, (n) => n === container ? "quit" : n.kind === 167 /* ComputedPropertyName */); + if (current && current.kind === 167 /* ComputedPropertyName */) { + error2(node, Diagnostics.super_cannot_be_referenced_in_a_computed_property_name); } else if (isCallExpression2) { - error(node, Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors); - } else if (!container || !container.parent || !(isClassLike(container.parent) || container.parent.kind === 209 /* ObjectLiteralExpression */)) { - error(node, Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions); + error2(node, Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors); + } else if (!container || !container.parent || !(isClassLike(container.parent) || container.parent.kind === 210 /* ObjectLiteralExpression */)) { + error2(node, Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions); } else { - error(node, Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class); + error2(node, Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class); } return errorType; } - if (!isCallExpression2 && immediateContainer.kind === 175 /* Constructor */) { + if (!isCallExpression2 && immediateContainer.kind === 176 /* Constructor */) { checkThisBeforeSuper(node, container, Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class); } if (isStatic(container) || isCallExpression2) { @@ -68764,7 +69245,7 @@ ${lanes.join("\n")} if (!isCallExpression2 && languageVersion >= 2 /* ES2015 */ && languageVersion <= 8 /* ES2021 */ && (isPropertyDeclaration(container) || isClassStaticBlockDeclaration(container))) { forEachEnclosingBlockScopeContainer(node.parent, (current) => { if (!isSourceFile(current) || isExternalOrCommonJsModule(current)) { - getNodeLinks(current).flags |= 8388608 /* ContainsSuperPropertyInStaticInitializer */; + getNodeLinks(current).flags |= 2097152 /* ContainsSuperPropertyInStaticInitializer */; } }); } @@ -68772,7 +69253,7 @@ ${lanes.join("\n")} nodeCheckFlag = 16 /* SuperInstance */; } getNodeLinks(node).flags |= nodeCheckFlag; - if (container.kind === 173 /* MethodDeclaration */ && inAsyncFunction) { + if (container.kind === 174 /* MethodDeclaration */ && inAsyncFunction) { if (isSuperProperty(node.parent) && isAssignmentTarget(node.parent)) { getNodeLinks(container).flags |= 256 /* MethodWithSuperPropertyAssignmentInAsync */; } else { @@ -68782,9 +69263,9 @@ ${lanes.join("\n")} if (needToCaptureLexicalThis) { captureLexicalThis(node.parent, container); } - if (container.parent.kind === 209 /* ObjectLiteralExpression */) { + if (container.parent.kind === 210 /* ObjectLiteralExpression */) { if (languageVersion < 2 /* ES2015 */) { - error(node, Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher); + error2(node, Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher); return errorType; } else { return anyType; @@ -68792,7 +69273,7 @@ ${lanes.join("\n")} } const classLikeDeclaration = container.parent; if (!getClassExtendsHeritageElement(classLikeDeclaration)) { - error(node, Diagnostics.super_can_only_be_referenced_in_a_derived_class); + error2(node, Diagnostics.super_can_only_be_referenced_in_a_derived_class); return errorType; } const classType = getDeclaredTypeOfSymbol(getSymbolOfDeclaration(classLikeDeclaration)); @@ -68800,20 +69281,20 @@ ${lanes.join("\n")} if (!baseClassType) { return errorType; } - if (container.kind === 175 /* Constructor */ && isInConstructorArgumentInitializer(node, container)) { - error(node, Diagnostics.super_cannot_be_referenced_in_constructor_arguments); + if (container.kind === 176 /* Constructor */ && isInConstructorArgumentInitializer(node, container)) { + error2(node, Diagnostics.super_cannot_be_referenced_in_constructor_arguments); return errorType; } return nodeCheckFlag === 32 /* SuperStatic */ ? getBaseConstructorTypeOfClass(classType) : getTypeWithThisArgument(baseClassType, classType.thisType); function isLegalUsageOfSuperExpression(container2) { if (isCallExpression2) { - return container2.kind === 175 /* Constructor */; + return container2.kind === 176 /* Constructor */; } else { - if (isClassLike(container2.parent) || container2.parent.kind === 209 /* ObjectLiteralExpression */) { + if (isClassLike(container2.parent) || container2.parent.kind === 210 /* ObjectLiteralExpression */) { if (isStatic(container2)) { - return container2.kind === 173 /* MethodDeclaration */ || container2.kind === 172 /* MethodSignature */ || container2.kind === 176 /* GetAccessor */ || container2.kind === 177 /* SetAccessor */ || container2.kind === 171 /* PropertyDeclaration */ || container2.kind === 174 /* ClassStaticBlockDeclaration */; + return container2.kind === 174 /* MethodDeclaration */ || container2.kind === 173 /* MethodSignature */ || container2.kind === 177 /* GetAccessor */ || container2.kind === 178 /* SetAccessor */ || container2.kind === 172 /* PropertyDeclaration */ || container2.kind === 175 /* ClassStaticBlockDeclaration */; } else { - return container2.kind === 173 /* MethodDeclaration */ || container2.kind === 172 /* MethodSignature */ || container2.kind === 176 /* GetAccessor */ || container2.kind === 177 /* SetAccessor */ || container2.kind === 171 /* PropertyDeclaration */ || container2.kind === 170 /* PropertySignature */ || container2.kind === 175 /* Constructor */; + return container2.kind === 174 /* MethodDeclaration */ || container2.kind === 173 /* MethodSignature */ || container2.kind === 177 /* GetAccessor */ || container2.kind === 178 /* SetAccessor */ || container2.kind === 172 /* PropertyDeclaration */ || container2.kind === 171 /* PropertySignature */ || container2.kind === 176 /* Constructor */; } } } @@ -68821,7 +69302,7 @@ ${lanes.join("\n")} } } function getContainingObjectLiteral(func) { - return (func.kind === 173 /* MethodDeclaration */ || func.kind === 176 /* GetAccessor */ || func.kind === 177 /* SetAccessor */) && func.parent.kind === 209 /* ObjectLiteralExpression */ ? func.parent : func.kind === 217 /* FunctionExpression */ && func.parent.kind === 302 /* PropertyAssignment */ ? func.parent.parent : void 0; + return (func.kind === 174 /* MethodDeclaration */ || func.kind === 177 /* GetAccessor */ || func.kind === 178 /* SetAccessor */) && func.parent.kind === 210 /* ObjectLiteralExpression */ ? func.parent : func.kind === 218 /* FunctionExpression */ && func.parent.kind === 303 /* PropertyAssignment */ ? func.parent.parent : void 0; } function getThisTypeArgument(type) { return getObjectFlags(type) & 4 /* Reference */ && type.target === globalThisType ? getTypeArguments(type)[0] : void 0; @@ -68831,8 +69312,27 @@ ${lanes.join("\n")} return t.flags & 2097152 /* Intersection */ ? forEach(t.types, getThisTypeArgument) : getThisTypeArgument(t); }); } + function getThisTypeOfObjectLiteralFromContextualType(containingLiteral, contextualType) { + let literal = containingLiteral; + let type = contextualType; + while (type) { + const thisType = getThisTypeFromContextualType(type); + if (thisType) { + return thisType; + } + if (literal.parent.kind !== 303 /* PropertyAssignment */) { + break; + } + literal = literal.parent.parent; + type = getApparentTypeOfContextualType( + literal, + /*contextFlags*/ + void 0 + ); + } + } function getContextualThisParameterType(func) { - if (func.kind === 218 /* ArrowFunction */) { + if (func.kind === 219 /* ArrowFunction */) { return void 0; } if (isContextSensitiveFunctionOrObjectLiteralMethod(func)) { @@ -68853,27 +69353,14 @@ ${lanes.join("\n")} /*contextFlags*/ void 0 ); - let literal = containingLiteral; - let type = contextualType; - while (type) { - const thisType = getThisTypeFromContextualType(type); - if (thisType) { - return instantiateType(thisType, getMapperFromContext(getInferenceContext(containingLiteral))); - } - if (literal.parent.kind !== 302 /* PropertyAssignment */) { - break; - } - literal = literal.parent.parent; - type = getApparentTypeOfContextualType( - literal, - /*contextFlags*/ - void 0 - ); + const thisType = getThisTypeOfObjectLiteralFromContextualType(containingLiteral, contextualType); + if (thisType) { + return instantiateType(thisType, getMapperFromContext(getInferenceContext(containingLiteral))); } return getWidenedType(contextualType ? getNonNullableType(contextualType) : checkExpressionCached(containingLiteral)); } const parent2 = walkUpParenthesizedExpressions(func.parent); - if (parent2.kind === 225 /* BinaryExpression */ && parent2.operatorToken.kind === 64 /* EqualsToken */) { + if (parent2.kind === 226 /* BinaryExpression */ && parent2.operatorToken.kind === 64 /* EqualsToken */) { const target = parent2.left; if (isAccessExpression(target)) { const { expression } = target; @@ -68928,11 +69415,11 @@ ${lanes.join("\n")} return getTypeFromTypeNode(typeNode); } switch (declaration.kind) { - case 168 /* Parameter */: + case 169 /* Parameter */: return getContextuallyTypedParameterType(declaration); - case 207 /* BindingElement */: + case 208 /* BindingElement */: return getContextualTypeForBindingElement(declaration, contextFlags); - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: if (isStatic(declaration)) { return getContextualTypeForStaticPropertyDeclaration(declaration, contextFlags); } @@ -68941,10 +69428,10 @@ ${lanes.join("\n")} function getContextualTypeForBindingElement(declaration, contextFlags) { const parent2 = declaration.parent.parent; const name = declaration.propertyName || declaration.name; - const parentType = getContextualTypeForVariableLikeDeclaration(parent2, contextFlags) || parent2.kind !== 207 /* BindingElement */ && parent2.initializer && checkDeclarationInitializer(parent2, declaration.dotDotDotToken ? 64 /* RestBindingElement */ : 0 /* Normal */); + const parentType = getContextualTypeForVariableLikeDeclaration(parent2, contextFlags) || parent2.kind !== 208 /* BindingElement */ && parent2.initializer && checkDeclarationInitializer(parent2, declaration.dotDotDotToken ? 64 /* RestBindingElement */ : 0 /* Normal */); if (!parentType || isBindingPattern(name) || isComputedNonLiteralName(name)) return void 0; - if (parent2.name.kind === 206 /* ArrayBindingPattern */) { + if (parent2.name.kind === 207 /* ArrayBindingPattern */) { const index = indexOfNode(declaration.parent.elements, declaration); if (index < 0) return void 0; @@ -69094,7 +69581,7 @@ ${lanes.join("\n")} return signature ? getOrCreateTypeFromSignature(signature) : void 0; } function getContextualTypeForSubstitutionExpression(template, substitutionExpression) { - if (template.parent.kind === 214 /* TaggedTemplateExpression */) { + if (template.parent.kind === 215 /* TaggedTemplateExpression */) { return getContextualTypeForArgument(template.parent, substitutionExpression); } return void 0; @@ -69312,7 +69799,7 @@ ${lanes.join("\n")} } function getContextualTypeForObjectLiteralMethod(node, contextFlags) { Debug.assert(isObjectLiteralMethod(node)); - if (node.flags & 33554432 /* InWithStatement */) { + if (node.flags & 67108864 /* InWithStatement */) { return void 0; } return getContextualTypeForObjectLiteralElement(node, contextFlags); @@ -69448,16 +69935,17 @@ ${lanes.join("\n")} case 9 /* NumericLiteral */: case 10 /* BigIntLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: + case 228 /* TemplateExpression */: case 112 /* TrueKeyword */: case 97 /* FalseKeyword */: case 106 /* NullKeyword */: case 80 /* Identifier */: case 157 /* UndefinedKeyword */: return true; - case 210 /* PropertyAccessExpression */: - case 216 /* ParenthesizedExpression */: + case 211 /* PropertyAccessExpression */: + case 217 /* ParenthesizedExpression */: return isPossiblyDiscriminantValue(node.expression); - case 293 /* JsxExpression */: + case 294 /* JsxExpression */: return !node.expression || isPossiblyDiscriminantValue(node.expression); } return false; @@ -69467,7 +69955,7 @@ ${lanes.join("\n")} contextualType, concatenate( map( - filter(node.properties, (p) => !!p.symbol && p.kind === 302 /* PropertyAssignment */ && isPossiblyDiscriminantValue(p.initializer) && isDiscriminantProperty(contextualType, p.symbol.escapedName)), + filter(node.properties, (p) => !!p.symbol && p.kind === 303 /* PropertyAssignment */ && isPossiblyDiscriminantValue(p.initializer) && isDiscriminantProperty(contextualType, p.symbol.escapedName)), (prop) => [() => getContextFreeTypeOfExpression(prop.initializer), prop.symbol.escapedName] ), map( @@ -69487,7 +69975,7 @@ ${lanes.join("\n")} contextualType, concatenate( map( - filter(node.properties, (p) => !!p.symbol && p.kind === 290 /* JsxAttribute */ && isDiscriminantProperty(contextualType, p.symbol.escapedName) && (!p.initializer || isPossiblyDiscriminantValue(p.initializer))), + filter(node.properties, (p) => !!p.symbol && p.kind === 291 /* JsxAttribute */ && isDiscriminantProperty(contextualType, p.symbol.escapedName) && (!p.initializer || isPossiblyDiscriminantValue(p.initializer))), (prop) => [!prop.initializer ? () => trueType : () => getContextFreeTypeOfExpression(prop.initializer), prop.symbol.escapedName] ), map( @@ -69552,7 +70040,7 @@ ${lanes.join("\n")} } function getContextualType2(node, contextFlags) { var _a; - if (node.flags & 33554432 /* InWithStatement */) { + if (node.flags & 67108864 /* InWithStatement */) { return void 0; } const index = findContextualNode( @@ -69565,47 +70053,47 @@ ${lanes.join("\n")} } const { parent: parent2 } = node; switch (parent2.kind) { - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 207 /* BindingElement */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 208 /* BindingElement */: return getContextualTypeForInitializerExpression(node, contextFlags); - case 218 /* ArrowFunction */: - case 252 /* ReturnStatement */: + case 219 /* ArrowFunction */: + case 253 /* ReturnStatement */: return getContextualTypeForReturnExpression(node, contextFlags); - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: return getContextualTypeForYieldOperand(parent2, contextFlags); - case 222 /* AwaitExpression */: + case 223 /* AwaitExpression */: return getContextualTypeForAwaitOperand(parent2, contextFlags); - case 212 /* CallExpression */: - case 213 /* NewExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: return getContextualTypeForArgument(parent2, node); - case 169 /* Decorator */: + case 170 /* Decorator */: return getContextualTypeForDecorator(parent2); - case 215 /* TypeAssertionExpression */: - case 233 /* AsExpression */: + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: return isConstTypeReference(parent2.type) ? getContextualType2(parent2, contextFlags) : getTypeFromTypeNode(parent2.type); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return getContextualTypeForBinaryOperand(node, contextFlags); - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return getContextualTypeForObjectLiteralElement(parent2, contextFlags); - case 304 /* SpreadAssignment */: + case 305 /* SpreadAssignment */: return getContextualType2(parent2.parent, contextFlags); - case 208 /* ArrayLiteralExpression */: { + case 209 /* ArrayLiteralExpression */: { const arrayLiteral = parent2; const type = getApparentTypeOfContextualType(arrayLiteral, contextFlags); const elementIndex = indexOfNode(arrayLiteral.elements, node); const spreadIndices = (_a = getNodeLinks(arrayLiteral)).spreadIndices ?? (_a.spreadIndices = getSpreadIndices(arrayLiteral.elements)); return getContextualTypeForElementExpression(type, elementIndex, arrayLiteral.elements.length, spreadIndices.first, spreadIndices.last); } - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: return getContextualTypeForConditionalOperand(node, contextFlags); - case 238 /* TemplateSpan */: - Debug.assert(parent2.parent.kind === 227 /* TemplateExpression */); + case 239 /* TemplateSpan */: + Debug.assert(parent2.parent.kind === 228 /* TemplateExpression */); return getContextualTypeForSubstitutionExpression(parent2.parent, node); - case 216 /* ParenthesizedExpression */: { + case 217 /* ParenthesizedExpression */: { if (isInJSFile(parent2)) { if (isJSDocSatisfiesExpression(parent2)) { return getTypeFromTypeNode(getJSDocSatisfiesExpressionType(parent2)); @@ -69617,19 +70105,19 @@ ${lanes.join("\n")} } return getContextualType2(parent2, contextFlags); } - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: return getContextualType2(parent2, contextFlags); - case 237 /* SatisfiesExpression */: + case 238 /* SatisfiesExpression */: return getTypeFromTypeNode(parent2.type); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return tryGetTypeFromEffectiveTypeNode(parent2); - case 293 /* JsxExpression */: + case 294 /* JsxExpression */: return getContextualTypeForJsxExpression(parent2, contextFlags); - case 290 /* JsxAttribute */: - case 292 /* JsxSpreadAttribute */: + case 291 /* JsxAttribute */: + case 293 /* JsxSpreadAttribute */: return getContextualTypeForJsxAttribute(parent2, contextFlags); - case 285 /* JsxOpeningElement */: - case 284 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: return getContextualJsxElementAttributesType(parent2, contextFlags); } return void 0; @@ -69756,7 +70244,7 @@ ${lanes.join("\n")} let attributesType = forcedLookupLocation === void 0 ? getTypeOfFirstParameterOfSignatureWithFallback(sig, unknownType) : forcedLookupLocation === "" ? getReturnTypeOfSignature(sig) : getJsxPropsTypeForSignatureFromMember(sig, forcedLookupLocation); if (!attributesType) { if (!!forcedLookupLocation && !!length(context.attributes.properties)) { - error(context, Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property, unescapeLeadingUnderscores(forcedLookupLocation)); + error2(context, Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property, unescapeLeadingUnderscores(forcedLookupLocation)); } return unknownType; } @@ -69858,7 +70346,7 @@ ${lanes.join("\n")} /*resolvedTypePredicate*/ void 0, minArgCount, - (left.flags | right.flags) & 39 /* PropagatingFlags */ + (left.flags | right.flags) & 167 /* PropagatingFlags */ ); result.compositeKind = 2097152 /* Intersection */; result.compositeSignatures = concatenate(left.compositeKind === 2097152 /* Intersection */ && left.compositeSignatures || [left], [right]); @@ -69889,7 +70377,7 @@ ${lanes.join("\n")} return isFunctionExpressionOrArrowFunction(node) || isObjectLiteralMethod(node) ? getContextualSignature(node) : void 0; } function getContextualSignature(node) { - Debug.assert(node.kind !== 173 /* MethodDeclaration */ || isObjectLiteralMethod(node)); + Debug.assert(node.kind !== 174 /* MethodDeclaration */ || isObjectLiteralMethod(node)); const typeTagSignature = getSignatureOfTypeTag(node); if (typeTagSignature) { return typeTagSignature; @@ -69940,7 +70428,11 @@ ${lanes.join("\n")} return node.isSpread ? getIndexedAccessType(node.type, numberType) : node.type; } function hasDefaultValue(node) { - return node.kind === 207 /* BindingElement */ && !!node.initializer || node.kind === 225 /* BinaryExpression */ && node.operatorToken.kind === 64 /* EqualsToken */; + return node.kind === 208 /* BindingElement */ && !!node.initializer || node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 64 /* EqualsToken */; + } + function isSpreadIntoCallOrNew(node) { + const parent2 = walkUpParenthesizedExpressions(node.parent); + return isSpreadElement(parent2) && isCallOrNewExpression(parent2.parent); } function checkArrayLiteral(node, checkMode, forceTuple) { const elements = node.elements; @@ -69949,18 +70441,17 @@ ${lanes.join("\n")} const elementFlags = []; pushCachedContextualType(node); const inDestructuringPattern = isAssignmentTarget(node); - const isSpreadIntoCallOrNew = isSpreadElement(node.parent) && isCallOrNewExpression(node.parent.parent); - const inConstContext = isSpreadIntoCallOrNew || isConstContext(node); + const inConstContext = isConstContext(node); const contextualType = getApparentTypeOfContextualType( node, /*contextFlags*/ void 0 ); - const inTupleContext = isSpreadIntoCallOrNew || !!contextualType && someType(contextualType, isTupleLikeType); + const inTupleContext = isSpreadIntoCallOrNew(node) || !!contextualType && someType(contextualType, isTupleLikeType); let hasOmittedExpression = false; for (let i = 0; i < elementCount; i++) { const e = elements[i]; - if (e.kind === 229 /* SpreadElement */) { + if (e.kind === 230 /* SpreadElement */) { if (languageVersion < 2 /* ES2015 */) { checkExternalEmitHelpers(e, compilerOptions.downlevelIteration ? 1536 /* SpreadIncludes */ : 1024 /* SpreadArray */); } @@ -69984,7 +70475,7 @@ ${lanes.join("\n")} elementTypes.push(checkIteratedTypeOrElementType(33 /* Spread */, spreadType, undefinedType, e.expression)); elementFlags.push(4 /* Rest */); } - } else if (exactOptionalPropertyTypes && e.kind === 231 /* OmittedExpression */) { + } else if (exactOptionalPropertyTypes && e.kind === 232 /* OmittedExpression */) { hasOmittedExpression = true; elementTypes.push(undefinedOrMissingType); elementFlags.push(2 /* Optional */); @@ -70031,7 +70522,7 @@ ${lanes.join("\n")} } function isNumericName(name) { switch (name.kind) { - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: return isNumericComputedName(name); case 80 /* Identifier */: return isNumericLiteralName(name.escapedText); @@ -70048,7 +70539,7 @@ ${lanes.join("\n")} function checkComputedPropertyName(node) { const links = getNodeLinks(node.expression); if (!links.resolvedType) { - if ((isTypeLiteralNode(node.parent.parent) || isClassLike(node.parent.parent) || isInterfaceDeclaration(node.parent.parent)) && isBinaryExpression(node.expression) && node.expression.operatorToken.kind === 103 /* InKeyword */ && node.parent.kind !== 176 /* GetAccessor */ && node.parent.kind !== 177 /* SetAccessor */) { + if ((isTypeLiteralNode(node.parent.parent) || isClassLike(node.parent.parent) || isInterfaceDeclaration(node.parent.parent)) && isBinaryExpression(node.expression) && node.expression.operatorToken.kind === 103 /* InKeyword */ && node.parent.kind !== 177 /* GetAccessor */ && node.parent.kind !== 178 /* SetAccessor */) { return links.resolvedType = errorType; } links.resolvedType = checkExpression(node.expression); @@ -70062,7 +70553,7 @@ ${lanes.join("\n")} } } if (links.resolvedType.flags & 98304 /* Nullable */ || !isTypeAssignableToKind(links.resolvedType, 402653316 /* StringLike */ | 296 /* NumberLike */ | 12288 /* ESSymbolLike */) && !isTypeAssignableTo(links.resolvedType, stringNumberSymbolType)) { - error(node, Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any); + error2(node, Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any); } } return links.resolvedType; @@ -70117,7 +70608,7 @@ ${lanes.join("\n")} /*contextFlags*/ void 0 ); - const contextualTypeHasPattern = contextualType && contextualType.pattern && (contextualType.pattern.kind === 205 /* ObjectBindingPattern */ || contextualType.pattern.kind === 209 /* ObjectLiteralExpression */); + const contextualTypeHasPattern = contextualType && contextualType.pattern && (contextualType.pattern.kind === 206 /* ObjectBindingPattern */ || contextualType.pattern.kind === 210 /* ObjectLiteralExpression */); const inConstContext = isConstContext(node); const checkFlags = inConstContext ? 8 /* Readonly */ : 0; const isInJavascript = isInJSFile(node) && !isInJsonFile(node); @@ -70136,13 +70627,13 @@ ${lanes.join("\n")} let offset = 0; for (const memberDecl of node.properties) { let member = getSymbolOfDeclaration(memberDecl); - const computedNameType = memberDecl.name && memberDecl.name.kind === 166 /* ComputedPropertyName */ ? checkComputedPropertyName(memberDecl.name) : void 0; - if (memberDecl.kind === 302 /* PropertyAssignment */ || memberDecl.kind === 303 /* ShorthandPropertyAssignment */ || isObjectLiteralMethod(memberDecl)) { - let type = memberDecl.kind === 302 /* PropertyAssignment */ ? checkPropertyAssignment(memberDecl, checkMode) : ( + const computedNameType = memberDecl.name && memberDecl.name.kind === 167 /* ComputedPropertyName */ ? checkComputedPropertyName(memberDecl.name) : void 0; + if (memberDecl.kind === 303 /* PropertyAssignment */ || memberDecl.kind === 304 /* ShorthandPropertyAssignment */ || isObjectLiteralMethod(memberDecl)) { + let type = memberDecl.kind === 303 /* PropertyAssignment */ ? checkPropertyAssignment(memberDecl, checkMode) : ( // avoid resolving the left side of the ShorthandPropertyAssignment outside of the destructuring // for error recovery purposes. For example, if a user wrote `{ a = 100 }` instead of `{ a: 100 }`. // we don't want to say "could not find 'a'". - memberDecl.kind === 303 /* ShorthandPropertyAssignment */ ? checkExpressionForMutableLocation(!inDestructuringPattern && memberDecl.objectAssignmentInitializer ? memberDecl.objectAssignmentInitializer : memberDecl.name, checkMode) : checkObjectLiteralMethod(memberDecl, checkMode) + memberDecl.kind === 304 /* ShorthandPropertyAssignment */ ? checkExpressionForMutableLocation(!inDestructuringPattern && memberDecl.objectAssignmentInitializer ? memberDecl.objectAssignmentInitializer : memberDecl.name, checkMode) : checkObjectLiteralMethod(memberDecl, checkMode) ); if (isInJavascript) { const jsDocType = getTypeForDeclarationFromJSDocComment(memberDecl); @@ -70160,7 +70651,7 @@ ${lanes.join("\n")} prop.links.nameType = nameType; } if (inDestructuringPattern) { - const isOptional = memberDecl.kind === 302 /* PropertyAssignment */ && hasDefaultValue(memberDecl.initializer) || memberDecl.kind === 303 /* ShorthandPropertyAssignment */ && memberDecl.objectAssignmentInitializer; + const isOptional = memberDecl.kind === 303 /* PropertyAssignment */ && hasDefaultValue(memberDecl.initializer) || memberDecl.kind === 304 /* ShorthandPropertyAssignment */ && memberDecl.objectAssignmentInitializer; if (isOptional) { prop.flags |= 16777216 /* Optional */; } @@ -70169,7 +70660,7 @@ ${lanes.join("\n")} if (impliedProp) { prop.flags |= impliedProp.flags & 16777216 /* Optional */; } else if (!compilerOptions.suppressExcessPropertyErrors && !getIndexInfoOfType(contextualType, stringType)) { - error( + error2( memberDecl.name, Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1, symbolToString(member), @@ -70186,13 +70677,13 @@ ${lanes.join("\n")} prop.links.target = member; member = prop; allPropertiesTable == null ? void 0 : allPropertiesTable.set(prop.escapedName, prop); - if (contextualType && checkMode & 2 /* Inferential */ && !(checkMode & 4 /* SkipContextSensitive */) && (memberDecl.kind === 302 /* PropertyAssignment */ || memberDecl.kind === 173 /* MethodDeclaration */) && isContextSensitive(memberDecl)) { + if (contextualType && checkMode & 2 /* Inferential */ && !(checkMode & 4 /* SkipContextSensitive */) && (memberDecl.kind === 303 /* PropertyAssignment */ || memberDecl.kind === 174 /* MethodDeclaration */) && isContextSensitive(memberDecl)) { const inferenceContext = getInferenceContext(node); Debug.assert(inferenceContext); - const inferenceNode = memberDecl.kind === 302 /* PropertyAssignment */ ? memberDecl.initializer : memberDecl; + const inferenceNode = memberDecl.kind === 303 /* PropertyAssignment */ ? memberDecl.initializer : memberDecl; addIntraExpressionInferenceSite(inferenceContext, inferenceNode, type); } - } else if (memberDecl.kind === 304 /* SpreadAssignment */) { + } else if (memberDecl.kind === 305 /* SpreadAssignment */) { if (languageVersion < 2 /* ES2015 */) { checkExternalEmitHelpers(memberDecl, 2 /* Assign */); } @@ -70216,12 +70707,12 @@ ${lanes.join("\n")} } spread = getSpreadType(spread, mergedType, node.symbol, objectFlags, inConstContext); } else { - error(memberDecl, Diagnostics.Spread_types_may_only_be_created_from_object_types); + error2(memberDecl, Diagnostics.Spread_types_may_only_be_created_from_object_types); spread = errorType; } continue; } else { - Debug.assert(memberDecl.kind === 176 /* GetAccessor */ || memberDecl.kind === 177 /* SetAccessor */); + Debug.assert(memberDecl.kind === 177 /* GetAccessor */ || memberDecl.kind === 178 /* SetAccessor */); checkNodeDeferred(memberDecl); } if (computedNameType && !(computedNameType.flags & 8576 /* StringOrNumberLiteralOrUnique */)) { @@ -70246,17 +70737,17 @@ ${lanes.join("\n")} if (contextualTypeHasPattern) { const rootPatternParent = findAncestor( contextualType.pattern.parent, - (n) => n.kind === 259 /* VariableDeclaration */ || n.kind === 225 /* BinaryExpression */ || n.kind === 168 /* Parameter */ + (n) => n.kind === 260 /* VariableDeclaration */ || n.kind === 226 /* BinaryExpression */ || n.kind === 169 /* Parameter */ ); const spreadOrOutsideRootObject = findAncestor( node, - (n) => n === rootPatternParent || n.kind === 304 /* SpreadAssignment */ + (n) => n === rootPatternParent || n.kind === 305 /* SpreadAssignment */ ); - if (spreadOrOutsideRootObject.kind !== 304 /* SpreadAssignment */) { + if (spreadOrOutsideRootObject.kind !== 305 /* SpreadAssignment */) { for (const prop of getPropertiesOfType(contextualType)) { if (!propertiesTable.get(prop.escapedName) && !getPropertyOfType(spread, prop.escapedName)) { if (!(prop.flags & 16777216 /* Optional */)) { - error( + error2( prop.valueDeclaration || ((_a = tryCast(prop, isTransientSymbol)) == null ? void 0 : _a.links.bindingElement), Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value ); @@ -70331,7 +70822,7 @@ ${lanes.join("\n")} checkJsxOpeningLikeElementOrOpeningFragment(node.openingFragment); const nodeSourceFile = getSourceFileOfNode(node); if (getJSXTransformEnabled(compilerOptions) && (compilerOptions.jsxFactory || nodeSourceFile.pragmas.has("jsx")) && !compilerOptions.jsxFragmentFactory && !nodeSourceFile.pragmas.has("jsxfrag")) { - error(node, compilerOptions.jsxFactory ? Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option : Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments); + error2(node, compilerOptions.jsxFactory ? Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option : Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments); } checkJsxChildren(node); return getJsxElementTypeAt(node) || anyType; @@ -70387,7 +70878,7 @@ ${lanes.join("\n")} addIntraExpressionInferenceSite(inferenceContext, inferenceNode, exprType); } } else { - Debug.assert(attributeDecl.kind === 292 /* JsxSpreadAttribute */); + Debug.assert(attributeDecl.kind === 293 /* JsxSpreadAttribute */); if (attributesTable.size > 0) { spread = getSpreadType( spread, @@ -70416,7 +70907,7 @@ ${lanes.join("\n")} checkSpreadPropOverrides(exprType, allAttributesTable, attributeDecl); } } else { - error(attributeDecl.expression, Diagnostics.Spread_types_may_only_be_created_from_object_types); + error2(attributeDecl.expression, Diagnostics.Spread_types_may_only_be_created_from_object_types); typeToIntersect = typeToIntersect ? getIntersectionType([typeToIntersect, exprType]) : exprType; } } @@ -70433,12 +70924,12 @@ ${lanes.join("\n")} ); } } - const parent2 = openingLikeElement.parent.kind === 283 /* JsxElement */ ? openingLikeElement.parent : void 0; + const parent2 = openingLikeElement.parent.kind === 284 /* JsxElement */ ? openingLikeElement.parent : void 0; if (parent2 && parent2.openingElement === openingLikeElement && parent2.children.length > 0) { const childrenTypes = checkJsxChildren(parent2, checkMode); if (!hasSpreadAnyType && jsxChildrenPropertyName && jsxChildrenPropertyName !== "") { if (explicitlySpecifyChildrenAttribute) { - error(attributes, Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten, unescapeLeadingUnderscores(jsxChildrenPropertyName)); + error2(attributes, Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten, unescapeLeadingUnderscores(jsxChildrenPropertyName)); } const contextualType2 = getApparentTypeOfContextualType( openingLikeElement.attributes, @@ -70492,7 +70983,7 @@ ${lanes.join("\n")} if (!child.containsOnlyTriviaWhiteSpaces) { childrenTypes.push(stringType); } - } else if (child.kind === 293 /* JsxExpression */ && !child.expression) { + } else if (child.kind === 294 /* JsxExpression */ && !child.expression) { continue; } else { childrenTypes.push(checkExpressionForMutableLocation(child, checkMode)); @@ -70505,7 +70996,7 @@ ${lanes.join("\n")} if (!(right.flags & 16777216 /* Optional */)) { const left = props.get(right.escapedName); if (left) { - const diagnostic = error(left.valueDeclaration, Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten, unescapeLeadingUnderscores(left.escapedName)); + const diagnostic = error2(left.valueDeclaration, Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten, unescapeLeadingUnderscores(left.escapedName)); addRelatedInfo(diagnostic, createDiagnosticForNode(spread, Diagnostics.This_spread_always_overwrites_this_property)); } } @@ -70537,11 +71028,11 @@ ${lanes.join("\n")} links.jsxFlags |= 2 /* IntrinsicIndexedElement */; return links.resolvedSymbol = intrinsicElementsType.symbol; } - error(node, Diagnostics.Property_0_does_not_exist_on_type_1, intrinsicTagNameToString(node.tagName), "JSX." + JsxNames.IntrinsicElements); + error2(node, Diagnostics.Property_0_does_not_exist_on_type_1, intrinsicTagNameToString(node.tagName), "JSX." + JsxNames.IntrinsicElements); return links.resolvedSymbol = unknownSymbol; } else { if (noImplicitAny) { - error(node, Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists, unescapeLeadingUnderscores(JsxNames.IntrinsicElements)); + error2(node, Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists, unescapeLeadingUnderscores(JsxNames.IntrinsicElements)); } return links.resolvedSymbol = unknownSymbol; } @@ -70624,7 +71115,7 @@ ${lanes.join("\n")} } else if (propertiesOfJsxElementAttribPropInterface.length === 1) { return propertiesOfJsxElementAttribPropInterface[0].escapedName; } else if (propertiesOfJsxElementAttribPropInterface.length > 1 && jsxElementAttribPropInterfaceSym.declarations) { - error(jsxElementAttribPropInterfaceSym.declarations[0], Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property, unescapeLeadingUnderscores(nameOfAttribPropContainer)); + error2(jsxElementAttribPropInterfaceSym.declarations[0], Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property, unescapeLeadingUnderscores(nameOfAttribPropContainer)); } } return void 0; @@ -70647,7 +71138,7 @@ ${lanes.join("\n")} } else if (elementType.flags & 128 /* StringLiteral */) { const intrinsicType = getIntrinsicAttributesTypeFromStringLiteralType(elementType, caller); if (!intrinsicType) { - error(caller, Diagnostics.Property_0_does_not_exist_on_type_1, elementType.value, "JSX." + JsxNames.IntrinsicElements); + error2(caller, Diagnostics.Property_0_does_not_exist_on_type_1, elementType.value, "JSX." + JsxNames.IntrinsicElements); return emptyArray; } else { const fakeSignature = createSignatureForJSXIntrinsic(caller, intrinsicType); @@ -70773,11 +71264,11 @@ ${lanes.join("\n")} } function checkJsxPreconditions(errorNode) { if ((compilerOptions.jsx || 0 /* None */) === 0 /* None */) { - error(errorNode, Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided); + error2(errorNode, Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided); } if (getJsxElementTypeAt(errorNode) === void 0) { if (noImplicitAny) { - error(errorNode, Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist); + error2(errorNode, Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist); } } } @@ -70869,7 +71360,7 @@ ${lanes.join("\n")} if (node.expression) { const type = checkExpression(node.expression, checkMode); if (node.dotDotDotToken && type !== anyType && !isArrayType(type)) { - error(node, Diagnostics.JSX_spread_child_must_be_an_array_type); + error2(node, Diagnostics.JSX_spread_child_must_be_an_array_type); } return type; } else { @@ -70877,7 +71368,7 @@ ${lanes.join("\n")} } } function getDeclarationNodeFlagsFromSymbol(s) { - return s.valueDeclaration ? getCombinedNodeFlags(s.valueDeclaration) : 0; + return s.valueDeclaration ? getCombinedNodeFlagsCached(s.valueDeclaration) : 0; } function isPrototypeProperty(symbol) { if (symbol.flags & 8192 /* Method */ || getCheckFlags(symbol) & 4 /* SyntheticMethod */) { @@ -70889,7 +71380,7 @@ ${lanes.join("\n")} } } function checkPropertyAccessibility(node, isSuper, writing, type, prop, reportError = true) { - const errorNode = !reportError ? void 0 : node.kind === 165 /* QualifiedName */ ? node.right : node.kind === 204 /* ImportType */ ? node : node.kind === 207 /* BindingElement */ && node.propertyName ? node.propertyName : node.name; + const errorNode = !reportError ? void 0 : node.kind === 166 /* QualifiedName */ ? node.right : node.kind === 205 /* ImportType */ ? node : node.kind === 208 /* BindingElement */ && node.propertyName ? node.propertyName : node.name; return checkPropertyAccessibilityAtLocation(node, isSuper, writing, type, prop, errorNode); } function checkPropertyAccessibilityAtLocation(location, isSuper, writing, containingType, prop, errorNode) { @@ -70898,14 +71389,14 @@ ${lanes.join("\n")} if (languageVersion < 2 /* ES2015 */) { if (symbolHasNonMethodDeclaration(prop)) { if (errorNode) { - error(errorNode, Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword); + error2(errorNode, Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword); } return false; } } if (flags & 256 /* Abstract */) { if (errorNode) { - error( + error2( errorNode, Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression, symbolToString(prop), @@ -70919,7 +71410,7 @@ ${lanes.join("\n")} const declaringClassDeclaration = getClassLikeDeclarationOfSymbol(getParentOfSymbol(prop)); if (declaringClassDeclaration && isNodeUsedDuringClassInitialization(location)) { if (errorNode) { - error( + error2( errorNode, Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor, symbolToString(prop), @@ -70936,7 +71427,7 @@ ${lanes.join("\n")} const declaringClassDeclaration = getClassLikeDeclarationOfSymbol(getParentOfSymbol(prop)); if (!isNodeWithinClass(location, declaringClassDeclaration)) { if (errorNode) { - error( + error2( errorNode, Diagnostics.Property_0_is_private_and_only_accessible_within_class_1, symbolToString(prop), @@ -70959,7 +71450,7 @@ ${lanes.join("\n")} enclosingClass = enclosingClass && isClassDerivedFromDeclaringClasses(enclosingClass, prop, writing); if (flags & 32 /* Static */ || !enclosingClass) { if (errorNode) { - error( + error2( errorNode, Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses, symbolToString(prop), @@ -70977,7 +71468,7 @@ ${lanes.join("\n")} } if (!containingType || !hasBaseType(containingType, enclosingClass)) { if (errorNode) { - error( + error2( errorNode, Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2, symbolToString(prop), @@ -71025,28 +71516,28 @@ ${lanes.join("\n")} function reportObjectPossiblyNullOrUndefinedError(node, facts) { const nodeText2 = isEntityNameExpression(node) ? entityNameToString(node) : void 0; if (node.kind === 106 /* NullKeyword */) { - error(node, Diagnostics.The_value_0_cannot_be_used_here, "null"); + error2(node, Diagnostics.The_value_0_cannot_be_used_here, "null"); return; } if (nodeText2 !== void 0 && nodeText2.length < 100) { if (isIdentifier(node) && nodeText2 === "undefined") { - error(node, Diagnostics.The_value_0_cannot_be_used_here, "undefined"); + error2(node, Diagnostics.The_value_0_cannot_be_used_here, "undefined"); return; } - error( + error2( node, facts & 16777216 /* IsUndefined */ ? facts & 33554432 /* IsNull */ ? Diagnostics._0_is_possibly_null_or_undefined : Diagnostics._0_is_possibly_undefined : Diagnostics._0_is_possibly_null, nodeText2 ); } else { - error( + error2( node, facts & 16777216 /* IsUndefined */ ? facts & 33554432 /* IsNull */ ? Diagnostics.Object_is_possibly_null_or_undefined : Diagnostics.Object_is_possibly_undefined : Diagnostics.Object_is_possibly_null ); } } function reportCannotInvokePossiblyNullOrUndefinedError(node, facts) { - error( + error2( node, facts & 16777216 /* IsUndefined */ ? facts & 33554432 /* IsNull */ ? Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined : Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined : Diagnostics.Cannot_invoke_an_object_which_is_possibly_null ); @@ -71056,11 +71547,11 @@ ${lanes.join("\n")} if (isEntityNameExpression(node)) { const nodeText2 = entityNameToString(node); if (nodeText2.length < 100) { - error(node, Diagnostics._0_is_of_type_unknown, nodeText2); + error2(node, Diagnostics._0_is_of_type_unknown, nodeText2); return errorType; } } - error(node, Diagnostics.Object_is_of_type_unknown); + error2(node, Diagnostics.Object_is_of_type_unknown); return errorType; } const facts = getTypeFacts(type); @@ -71080,20 +71571,20 @@ ${lanes.join("\n")} if (isEntityNameExpression(node)) { const nodeText2 = entityNameToString(node); if (isIdentifier(node) && nodeText2 === "undefined") { - error(node, Diagnostics.The_value_0_cannot_be_used_here, nodeText2); + error2(node, Diagnostics.The_value_0_cannot_be_used_here, nodeText2); return nonNullType; } if (nodeText2.length < 100) { - error(node, Diagnostics._0_is_possibly_undefined, nodeText2); + error2(node, Diagnostics._0_is_possibly_undefined, nodeText2); return nonNullType; } } - error(node, Diagnostics.Object_is_possibly_undefined); + error2(node, Diagnostics.Object_is_possibly_undefined); } return nonNullType; } function checkPropertyAccessExpression(node, checkMode, writeOnly) { - return node.flags & 32 /* OptionalChain */ ? checkPropertyAccessChain(node, checkMode) : checkPropertyAccessExpressionOrQualifiedName(node, node.expression, checkNonNullExpression(node.expression), node.name, checkMode, writeOnly); + return node.flags & 64 /* OptionalChain */ ? checkPropertyAccessChain(node, checkMode) : checkPropertyAccessExpressionOrQualifiedName(node, node.expression, checkNonNullExpression(node.expression), node.name, checkMode, writeOnly); } function checkPropertyAccessChain(node, checkMode) { const leftType = checkExpression(node.expression); @@ -71105,13 +71596,13 @@ ${lanes.join("\n")} return checkPropertyAccessExpressionOrQualifiedName(node, node.left, leftType, node.right, checkMode); } function isMethodAccessForCall(node) { - while (node.parent.kind === 216 /* ParenthesizedExpression */) { + while (node.parent.kind === 217 /* ParenthesizedExpression */) { node = node.parent; } return isCallOrNewExpression(node.parent) && node.parent.expression === node; } function lookupSymbolForPrivateIdentifierDeclaration(propName, location) { - for (let containingClass = getContainingClass(location); !!containingClass; containingClass = getContainingClass(containingClass)) { + for (let containingClass = getContainingClassExcludingClassDecorators(location); !!containingClass; containingClass = getContainingClass(containingClass)) { const { symbol } = containingClass; const name = getSymbolNameForPrivateIdentifier(symbol, propName); const prop = symbol.members && symbol.members.get(name) || symbol.exports && symbol.exports.get(name); @@ -71183,7 +71674,7 @@ ${lanes.join("\n")} const lexicalClass = getContainingClass(lexicalValueDecl); Debug.assert(!!lexicalClass); if (findAncestor(lexicalClass, (n) => typeClass === n)) { - const diagnostic = error( + const diagnostic = error2( right, Diagnostics.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling, diagName, @@ -71205,7 +71696,7 @@ ${lanes.join("\n")} return true; } } - error( + error2( right, Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier, diagName, @@ -71247,18 +71738,24 @@ ${lanes.join("\n")} if (lexicallyScopedSymbol) { return isErrorType(apparentType) ? errorType : apparentType; } - if (!getContainingClass(right)) { + if (getContainingClassExcludingClassDecorators(right) === void 0) { grammarErrorOnNode(right, Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies); return anyType; } } - prop = lexicallyScopedSymbol ? getPrivateIdentifierPropertyOfType(leftType, lexicallyScopedSymbol) : void 0; - if (!prop && checkPrivateIdentifierPropertyAccess(leftType, right, lexicallyScopedSymbol)) { - return errorType; + prop = lexicallyScopedSymbol && getPrivateIdentifierPropertyOfType(leftType, lexicallyScopedSymbol); + if (prop === void 0) { + if (checkPrivateIdentifierPropertyAccess(leftType, right, lexicallyScopedSymbol)) { + return errorType; + } + const containingClass = getContainingClassExcludingClassDecorators(right); + if (containingClass && isPlainJsFile(getSourceFileOfNode(containingClass), compilerOptions.checkJs)) { + grammarErrorOnNode(right, Diagnostics.Private_field_0_must_be_declared_in_an_enclosing_class, idText(right)); + } } else { - const isSetonlyAccessor = prop && prop.flags & 65536 /* SetAccessor */ && !(prop.flags & 32768 /* GetAccessor */); + const isSetonlyAccessor = prop.flags & 65536 /* SetAccessor */ && !(prop.flags & 32768 /* GetAccessor */); if (isSetonlyAccessor && assignmentKind !== 1 /* Definite */) { - error(node, Diagnostics.Private_accessor_was_defined_without_a_getter); + error2(node, Diagnostics.Private_accessor_was_defined_without_a_getter); } } } else { @@ -71274,10 +71771,10 @@ ${lanes.join("\n")} /*skipObjectFunctionPropertyAugment*/ false, /*includeTypeOnlyMembers*/ - node.kind === 165 /* QualifiedName */ + node.kind === 166 /* QualifiedName */ ); } - if (isIdentifier(left) && parentSymbol && (getIsolatedModules(compilerOptions) || !(prop && (isConstEnumOrConstEnumOnlyModule(prop) || prop.flags & 8 /* EnumMember */ && node.parent.kind === 305 /* EnumMember */)) || shouldPreserveConstEnums(compilerOptions) && isExportOrExportExpression(node))) { + if (isIdentifier(left) && parentSymbol && (getIsolatedModules(compilerOptions) || !(prop && (isConstEnumOrConstEnumOnlyModule(prop) || prop.flags & 8 /* EnumMember */ && node.parent.kind === 306 /* EnumMember */)) || shouldPreserveConstEnums(compilerOptions) && isExportOrExportExpression(node))) { markAliasReferenced(parentSymbol, node); } let propType; @@ -71295,9 +71792,9 @@ ${lanes.join("\n")} } if (leftType.symbol === globalThisSymbol) { if (globalThisSymbol.exports.has(right.escapedText) && globalThisSymbol.exports.get(right.escapedText).flags & 418 /* BlockScoped */) { - error(right, Diagnostics.Property_0_does_not_exist_on_type_1, unescapeLeadingUnderscores(right.escapedText), typeToString(leftType)); + error2(right, Diagnostics.Property_0_does_not_exist_on_type_1, unescapeLeadingUnderscores(right.escapedText), typeToString(leftType)); } else if (noImplicitAny) { - error(right, Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature, typeToString(leftType)); + error2(right, Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature, typeToString(leftType)); } return anyType; } @@ -71307,13 +71804,13 @@ ${lanes.join("\n")} return errorType; } if (indexInfo.isReadonly && (isAssignmentTarget(node) || isDeleteTarget(node))) { - error(node, Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(apparentType)); + error2(node, Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(apparentType)); } propType = compilerOptions.noUncheckedIndexedAccess && !isAssignmentTarget(node) ? getUnionType([indexInfo.type, missingType]) : indexInfo.type; if (compilerOptions.noPropertyAccessFromIndexSignature && isPropertyAccessExpression(node)) { - error(right, Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0, unescapeLeadingUnderscores(right.escapedText)); + error2(right, Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0, unescapeLeadingUnderscores(right.escapedText)); } - if (indexInfo.declaration && getCombinedNodeFlags(indexInfo.declaration) & 268435456 /* Deprecated */) { + if (indexInfo.declaration && isDeprecatedDeclaration2(indexInfo.declaration)) { addDeprecatedSuggestion(right, [indexInfo.declaration], right.escapedText); } } else { @@ -71326,7 +71823,7 @@ ${lanes.join("\n")} getNodeLinks(node).resolvedSymbol = prop; checkPropertyAccessibility(node, left.kind === 108 /* SuperKeyword */, isWriteAccess(node), apparentType, prop); if (isAssignmentToReadonlyEntity(node, prop, assignmentKind)) { - error(right, Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property, idText(right)); + error2(right, Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property, idText(right)); return errorType; } propType = isThisPropertyAccessInConstructor(node, prop) ? autoType : writeOnly || isWriteOnlyAccess(node) ? getWriteTypeOfSymbol(prop) : getTypeOfSymbol(prop); @@ -71361,7 +71858,7 @@ ${lanes.join("\n")} if (declaration && isPropertyWithoutInitializer(declaration)) { if (!isStatic(declaration)) { const flowContainer = getControlFlowContainer(node); - if (flowContainer.kind === 175 /* Constructor */ && flowContainer.parent === declaration.parent && !(declaration.flags & 16777216 /* Ambient */)) { + if (flowContainer.kind === 176 /* Constructor */ && flowContainer.parent === declaration.parent && !(declaration.flags & 33554432 /* Ambient */)) { assumeUninitialized = true; } } @@ -71371,7 +71868,7 @@ ${lanes.join("\n")} } const flowType = getFlowTypeOfReference(node, propType, assumeUninitialized ? getOptionalType(propType) : propType); if (assumeUninitialized && !containsUndefinedType(propType) && containsUndefinedType(flowType)) { - error(errorNode, Diagnostics.Property_0_is_used_before_being_assigned, symbolToString(prop)); + error2(errorNode, Diagnostics.Property_0_is_used_before_being_assigned, symbolToString(prop)); return propType; } return assignmentKind ? getBaseTypeOfLiteralType(flowType) : flowType; @@ -71383,10 +71880,10 @@ ${lanes.join("\n")} } let diagnosticMessage; const declarationName = idText(right); - if (isInPropertyInitializerOrClassStaticBlock(node) && !isOptionalPropertyDeclaration(valueDeclaration) && !(isAccessExpression(node) && isAccessExpression(node.expression)) && !isBlockScopedNameDeclaredBeforeUse(valueDeclaration, right) && !(isMethodDeclaration(valueDeclaration) && getCombinedModifierFlags(valueDeclaration) & 32 /* Static */) && (compilerOptions.useDefineForClassFields || !isPropertyDeclaredInAncestorClass(prop))) { - diagnosticMessage = error(right, Diagnostics.Property_0_is_used_before_its_initialization, declarationName); - } else if (valueDeclaration.kind === 262 /* ClassDeclaration */ && node.parent.kind !== 182 /* TypeReference */ && !(valueDeclaration.flags & 16777216 /* Ambient */) && !isBlockScopedNameDeclaredBeforeUse(valueDeclaration, right)) { - diagnosticMessage = error(right, Diagnostics.Class_0_used_before_its_declaration, declarationName); + if (isInPropertyInitializerOrClassStaticBlock(node) && !isOptionalPropertyDeclaration(valueDeclaration) && !(isAccessExpression(node) && isAccessExpression(node.expression)) && !isBlockScopedNameDeclaredBeforeUse(valueDeclaration, right) && !(isMethodDeclaration(valueDeclaration) && getCombinedModifierFlagsCached(valueDeclaration) & 32 /* Static */) && (useDefineForClassFields || !isPropertyDeclaredInAncestorClass(prop))) { + diagnosticMessage = error2(right, Diagnostics.Property_0_is_used_before_its_initialization, declarationName); + } else if (valueDeclaration.kind === 263 /* ClassDeclaration */ && node.parent.kind !== 183 /* TypeReference */ && !(valueDeclaration.flags & 33554432 /* Ambient */) && !isBlockScopedNameDeclaredBeforeUse(valueDeclaration, right)) { + diagnosticMessage = error2(right, Diagnostics.Class_0_used_before_its_declaration, declarationName); } if (diagnosticMessage) { addRelatedInfo( @@ -71398,25 +71895,25 @@ ${lanes.join("\n")} function isInPropertyInitializerOrClassStaticBlock(node) { return !!findAncestor(node, (node2) => { switch (node2.kind) { - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return true; - case 302 /* PropertyAssignment */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 304 /* SpreadAssignment */: - case 166 /* ComputedPropertyName */: - case 238 /* TemplateSpan */: - case 293 /* JsxExpression */: - case 290 /* JsxAttribute */: - case 291 /* JsxAttributes */: - case 292 /* JsxSpreadAttribute */: - case 285 /* JsxOpeningElement */: - case 232 /* ExpressionWithTypeArguments */: - case 297 /* HeritageClause */: + case 303 /* PropertyAssignment */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 305 /* SpreadAssignment */: + case 167 /* ComputedPropertyName */: + case 239 /* TemplateSpan */: + case 294 /* JsxExpression */: + case 291 /* JsxAttribute */: + case 292 /* JsxAttributes */: + case 293 /* JsxSpreadAttribute */: + case 286 /* JsxOpeningElement */: + case 233 /* ExpressionWithTypeArguments */: + case 298 /* HeritageClause */: return false; - case 218 /* ArrowFunction */: - case 243 /* ExpressionStatement */: + case 219 /* ArrowFunction */: + case 244 /* ExpressionStatement */: return isBlock(node2.parent) && isClassStaticBlockDeclaration(node2.parent.parent) ? true : "quit"; default: return isExpressionNode(node2) ? false : "quit"; @@ -71661,9 +72158,9 @@ ${lanes.join("\n")} } function isValidPropertyAccess(node, propertyName) { switch (node.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return isValidPropertyAccessWithType(node, node.expression.kind === 108 /* SuperKeyword */, propertyName, getWidenedType(checkExpression(node.expression))); - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: return isValidPropertyAccessWithType( node, /*isSuper*/ @@ -71671,7 +72168,7 @@ ${lanes.join("\n")} propertyName, getWidenedType(checkExpression(node.left)) ); - case 204 /* ImportType */: + case 205 /* ImportType */: return isValidPropertyAccessWithType( node, /*isSuper*/ @@ -71684,7 +72181,7 @@ ${lanes.join("\n")} function isValidPropertyAccessForCompletions(node, type, property) { return isPropertyAccessible( node, - node.kind === 210 /* PropertyAccessExpression */ && node.expression.kind === 108 /* SuperKeyword */, + node.kind === 211 /* PropertyAccessExpression */ && node.expression.kind === 108 /* SuperKeyword */, /*isWrite*/ false, type, @@ -71717,7 +72214,7 @@ ${lanes.join("\n")} } function getForInVariableSymbol(node) { const initializer = node.initializer; - if (initializer.kind === 260 /* VariableDeclarationList */) { + if (initializer.kind === 261 /* VariableDeclarationList */) { const variable = initializer.declarations[0]; if (variable && !isBindingPattern(variable.name)) { return getSymbolOfDeclaration(variable); @@ -71738,7 +72235,7 @@ ${lanes.join("\n")} let child = expr; let node = expr.parent; while (node) { - if (node.kind === 248 /* ForInStatement */ && child === node.statement && getForInVariableSymbol(node) === symbol && hasNumericPropertyNames(getTypeOfExpression(node.expression))) { + if (node.kind === 249 /* ForInStatement */ && child === node.statement && getForInVariableSymbol(node) === symbol && hasNumericPropertyNames(getTypeOfExpression(node.expression))) { return true; } child = node; @@ -71749,7 +72246,7 @@ ${lanes.join("\n")} return false; } function checkIndexedAccess(node, checkMode) { - return node.flags & 32 /* OptionalChain */ ? checkElementAccessChain(node, checkMode) : checkElementAccessExpression(node, checkNonNullExpression(node.expression), checkMode); + return node.flags & 64 /* OptionalChain */ ? checkElementAccessChain(node, checkMode) : checkElementAccessExpression(node, checkNonNullExpression(node.expression), checkMode); } function checkElementAccessChain(node, checkMode) { const exprType = checkExpression(node.expression); @@ -71764,7 +72261,7 @@ ${lanes.join("\n")} return objectType; } if (isConstEnumObjectType(objectType) && !isStringLiteralLike(indexExpression)) { - error(indexExpression, Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal); + error2(indexExpression, Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal); return errorType; } const effectiveIndexType = isForInVariableForNumericPropertyNames(indexExpression) ? numberType : indexType; @@ -71779,11 +72276,11 @@ ${lanes.join("\n")} if (callLikeExpressionMayHaveTypeArguments(node)) { forEach(node.typeArguments, checkSourceElement); } - if (node.kind === 214 /* TaggedTemplateExpression */) { + if (node.kind === 215 /* TaggedTemplateExpression */) { checkExpression(node.template); } else if (isJsxOpeningLikeElement(node)) { checkExpression(node.attributes); - } else if (node.kind !== 169 /* Decorator */) { + } else if (node.kind !== 170 /* Decorator */) { forEach(node.arguments, (argument) => { checkExpression(argument); }); @@ -71828,7 +72325,7 @@ ${lanes.join("\n")} } } function isSpreadArgument(arg) { - return !!arg && (arg.kind === 229 /* SpreadElement */ || arg.kind === 236 /* SyntheticExpression */ && arg.isSpread); + return !!arg && (arg.kind === 230 /* SpreadElement */ || arg.kind === 237 /* SyntheticExpression */ && arg.isSpread); } function getSpreadArgumentIndex(args) { return findIndex(args, isSpreadArgument); @@ -71844,9 +72341,9 @@ ${lanes.join("\n")} let callIsIncomplete = false; let effectiveParameterCount = getParameterCount(signature); let effectiveMinimumArguments = getMinArgumentCount(signature); - if (node.kind === 214 /* TaggedTemplateExpression */) { + if (node.kind === 215 /* TaggedTemplateExpression */) { argCount = args.length; - if (node.template.kind === 227 /* TemplateExpression */) { + if (node.template.kind === 228 /* TemplateExpression */) { const lastSpan = last(node.template.templateSpans); callIsIncomplete = nodeIsMissing(lastSpan.literal) || !!lastSpan.literal.isUnterminated; } else { @@ -71854,7 +72351,7 @@ ${lanes.join("\n")} Debug.assert(templateLiteral.kind === 15 /* NoSubstitutionTemplateLiteral */); callIsIncomplete = !!templateLiteral.isUnterminated; } - } else if (node.kind === 169 /* Decorator */) { + } else if (node.kind === 170 /* Decorator */) { argCount = getDecoratorArgumentCount(node, signature); } else if (isJsxOpeningLikeElement(node)) { callIsIncomplete = node.attributes.end === node.end; @@ -71865,7 +72362,7 @@ ${lanes.join("\n")} effectiveParameterCount = args.length === 0 ? effectiveParameterCount : 1; effectiveMinimumArguments = Math.min(effectiveMinimumArguments, 1); } else if (!node.arguments) { - Debug.assert(node.kind === 213 /* NewExpression */); + Debug.assert(node.kind === 214 /* NewExpression */); return getMinArgumentCount(signature) === 0; } else { argCount = signatureHelpTrailingComma ? args.length + 1 : args.length; @@ -71961,7 +72458,7 @@ ${lanes.join("\n")} if (isJsxOpeningLikeElement(node)) { return inferJsxTypeArguments(node, signature, checkMode, context); } - if (node.kind !== 169 /* Decorator */) { + if (node.kind !== 170 /* Decorator */) { const skipBindingPatterns = every(signature.typeParameters, (p) => !!getDefaultFromTypeParameter(p)); const contextualType = getContextualType2(node, skipBindingPatterns ? 8 /* SkipBindingPatterns */ : 0 /* None */); if (contextualType) { @@ -71998,7 +72495,7 @@ ${lanes.join("\n")} } for (let i = 0; i < argCount; i++) { const arg = args[i]; - if (arg.kind !== 231 /* OmittedExpression */ && !(checkMode & 32 /* IsForStringLiteralArgumentCompletions */ && hasSkipDirectInferenceFlag(arg))) { + if (arg.kind !== 232 /* OmittedExpression */) { const paramType = getTypeAtPosition(signature, i); if (couldContainTypeVariables(paramType)) { const argType = checkExpressionWithContextualType(arg, paramType, context, checkMode); @@ -72026,11 +72523,11 @@ ${lanes.join("\n")} if (index >= argCount - 1) { const arg = args[argCount - 1]; if (isSpreadArgument(arg)) { - const spreadType = arg.kind === 236 /* SyntheticExpression */ ? arg.type : checkExpressionWithContextualType(arg.expression, restType, context, checkMode); + const spreadType = arg.kind === 237 /* SyntheticExpression */ ? arg.type : checkExpressionWithContextualType(arg.expression, restType, context, checkMode); if (isArrayLikeType(spreadType)) { return getMutableArrayOrTupleType(spreadType); } - return createArrayType(checkIteratedTypeOrElementType(33 /* Spread */, spreadType, undefinedType, arg.kind === 229 /* SpreadElement */ ? arg.expression : arg), inConstContext); + return createArrayType(checkIteratedTypeOrElementType(33 /* Spread */, spreadType, undefinedType, arg.kind === 230 /* SpreadElement */ ? arg.expression : arg), inConstContext); } } const types = []; @@ -72039,12 +72536,12 @@ ${lanes.join("\n")} for (let i = index; i < argCount; i++) { const arg = args[i]; if (isSpreadArgument(arg)) { - const spreadType = arg.kind === 236 /* SyntheticExpression */ ? arg.type : checkExpression(arg.expression); + const spreadType = arg.kind === 237 /* SyntheticExpression */ ? arg.type : checkExpression(arg.expression); if (isArrayLikeType(spreadType)) { types.push(spreadType); flags.push(8 /* Variadic */); } else { - types.push(checkIteratedTypeOrElementType(33 /* Spread */, spreadType, undefinedType, arg.kind === 229 /* SpreadElement */ ? arg.expression : arg)); + types.push(checkIteratedTypeOrElementType(33 /* Spread */, spreadType, undefinedType, arg.kind === 230 /* SpreadElement */ ? arg.expression : arg)); flags.push(4 /* Rest */); } } else { @@ -72054,7 +72551,7 @@ ${lanes.join("\n")} types.push(hasPrimitiveContextualType ? getRegularTypeOfLiteralType(argType) : getWidenedLiteralType(argType)); flags.push(1 /* Required */); } - if (arg.kind === 236 /* SyntheticExpression */ && arg.tupleNameSource) { + if (arg.kind === 237 /* SyntheticExpression */ && arg.tupleNameSource) { names.push(arg.tupleNameSource); } } @@ -72114,8 +72611,9 @@ ${lanes.join("\n")} void 0, checkMode ); + const checkAttributesType = checkMode & 4 /* SkipContextSensitive */ ? getRegularTypeOfObjectLiteral(attributesType) : attributesType; return checkTagNameDoesNotExpectTooManyArguments() && checkTypeRelatedToAndOptionallyElaborate( - attributesType, + checkAttributesType, paramType, relation, reportErrors2 ? node.tagName : void 0, @@ -72231,7 +72729,7 @@ ${lanes.join("\n")} const argCount = restType ? Math.min(getParameterCount(signature) - 1, args.length) : args.length; for (let i = 0; i < argCount; i++) { const arg = args[i]; - if (arg.kind !== 231 /* OmittedExpression */) { + if (arg.kind !== 232 /* OmittedExpression */) { const paramType = getTypeAtPosition(signature, i); const argType = checkExpressionWithContextualType( arg, @@ -72289,7 +72787,7 @@ ${lanes.join("\n")} } } function getThisArgumentOfCall(node) { - const expression = node.kind === 212 /* CallExpression */ ? node.expression : node.kind === 214 /* TaggedTemplateExpression */ ? node.tag : void 0; + const expression = node.kind === 213 /* CallExpression */ ? node.expression : node.kind === 215 /* TaggedTemplateExpression */ ? node.tag : node.kind === 170 /* Decorator */ && !legacyDecorators ? node.expression : void 0; if (expression) { const callee = skipOuterExpressions(expression); if (isAccessExpression(callee)) { @@ -72304,17 +72802,17 @@ ${lanes.join("\n")} return result; } function getEffectiveCallArguments(node) { - if (node.kind === 214 /* TaggedTemplateExpression */) { + if (node.kind === 215 /* TaggedTemplateExpression */) { const template = node.template; const args2 = [createSyntheticExpression(template, getGlobalTemplateStringsArrayType())]; - if (template.kind === 227 /* TemplateExpression */) { + if (template.kind === 228 /* TemplateExpression */) { forEach(template.templateSpans, (span) => { args2.push(span.expression); }); } return args2; } - if (node.kind === 169 /* Decorator */) { + if (node.kind === 170 /* Decorator */) { return getEffectiveDecoratorArguments(node); } if (isJsxOpeningLikeElement(node)) { @@ -72326,7 +72824,7 @@ ${lanes.join("\n")} const effectiveArgs = args.slice(0, spreadIndex); for (let i = spreadIndex; i < args.length; i++) { const arg = args[i]; - const spreadType = arg.kind === 229 /* SpreadElement */ && (flowLoopCount ? checkExpression(arg.expression) : checkExpressionCached(arg.expression)); + const spreadType = arg.kind === 230 /* SpreadElement */ && (flowLoopCount ? checkExpression(arg.expression) : checkExpressionCached(arg.expression)); if (spreadType && isTupleType(spreadType)) { forEach(getElementTypes(spreadType), (t, i2) => { var _a; @@ -72365,16 +72863,16 @@ ${lanes.join("\n")} } function getLegacyDecoratorArgumentCount(node, signature) { switch (node.parent.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return 1; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return hasAccessorModifier(node.parent) ? 3 : 2; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return languageVersion === 0 /* ES3 */ || signature.parameters.length <= 2 ? 2 : 3; - case 168 /* Parameter */: + case 169 /* Parameter */: return 3; default: return Debug.fail(); @@ -72470,7 +72968,7 @@ ${lanes.join("\n")} if (isVoidPromiseError && isInJSFile(node)) { return getDiagnosticForCallNode(node, Diagnostics.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments); } - const error2 = isDecorator(node) ? hasRestParameter2 ? Diagnostics.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0 : Diagnostics.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0 : hasRestParameter2 ? Diagnostics.Expected_at_least_0_arguments_but_got_1 : isVoidPromiseError ? Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise : Diagnostics.Expected_0_arguments_but_got_1; + const error3 = isDecorator(node) ? hasRestParameter2 ? Diagnostics.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0 : Diagnostics.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0 : hasRestParameter2 ? Diagnostics.Expected_at_least_0_arguments_but_got_1 : isVoidPromiseError ? Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise : Diagnostics.Expected_0_arguments_but_got_1; if (min2 < args.length && args.length < max) { if (headMessage) { let chain = chainDiagnosticMessages( @@ -72491,14 +72989,14 @@ ${lanes.join("\n")} let chain = chainDiagnosticMessages( /*details*/ void 0, - error2, + error3, parameterRange, args.length ); chain = chainDiagnosticMessages(chain, headMessage); diagnostic = getDiagnosticForCallNode(node, chain); } else { - diagnostic = getDiagnosticForCallNode(node, error2, parameterRange, args.length); + diagnostic = getDiagnosticForCallNode(node, error3, parameterRange, args.length); } const parameter = (_a = closestSignature == null ? void 0 : closestSignature.declaration) == null ? void 0 : _a.parameters[closestSignature.thisParameter ? args.length + 1 : args.length]; if (parameter) { @@ -72519,14 +73017,14 @@ ${lanes.join("\n")} let chain = chainDiagnosticMessages( /*details*/ void 0, - error2, + error3, parameterRange, args.length ); chain = chainDiagnosticMessages(chain, headMessage); return createDiagnosticForNodeArrayFromMessageChain(getSourceFileOfNode(node), errorSpan, chain); } - return createDiagnosticForNodeArray(getSourceFileOfNode(node), errorSpan, error2, parameterRange, args.length); + return createDiagnosticForNodeArray(getSourceFileOfNode(node), errorSpan, error3, parameterRange, args.length); } } function getTypeArgumentArityError(node, signatures, typeArguments, headMessage) { @@ -72588,8 +73086,8 @@ ${lanes.join("\n")} return createDiagnosticForNodeArray(getSourceFileOfNode(node), typeArguments, Diagnostics.Expected_0_type_arguments_but_got_1, belowArgCount === -Infinity ? aboveArgCount : belowArgCount, argCount); } function resolveCall(node, signatures, candidatesOutArray, checkMode, callChainFlags, headMessage) { - const isTaggedTemplate = node.kind === 214 /* TaggedTemplateExpression */; - const isDecorator2 = node.kind === 169 /* Decorator */; + const isTaggedTemplate = node.kind === 215 /* TaggedTemplateExpression */; + const isDecorator2 = node.kind === 170 /* Decorator */; const isJsxOpeningOrSelfClosingElement = isJsxOpeningLikeElement(node); const reportErrors2 = !isInferencePartiallyBlocked && !candidatesOutArray; let typeArguments; @@ -72601,21 +73099,15 @@ ${lanes.join("\n")} } const candidates = candidatesOutArray || []; reorderCandidates(signatures, candidates, callChainFlags); - if (!candidates.length) { - if (reportErrors2) { - diagnostics.add(getDiagnosticForCallNode(node, Diagnostics.Call_target_does_not_contain_any_signatures)); - } - return resolveErrorCall(node); - } + Debug.assert(candidates.length, "Revert #54442 and add a testcase with whatever triggered this"); const args = getEffectiveCallArguments(node); const isSingleNonGenericCandidate = candidates.length === 1 && !candidates[0].typeParameters; let argCheckMode = !isDecorator2 && !isSingleNonGenericCandidate && some(args, isContextSensitive) ? 4 /* SkipContextSensitive */ : 0 /* Normal */; - argCheckMode |= checkMode & 32 /* IsForStringLiteralArgumentCompletions */; let candidatesForArgumentError; let candidateForArgumentArityError; let candidateForTypeArgumentError; let result; - const signatureHelpTrailingComma = !!(checkMode & 16 /* IsForSignatureHelp */) && node.kind === 212 /* CallExpression */ && node.arguments.hasTrailingComma; + const signatureHelpTrailingComma = !!(checkMode & 16 /* IsForSignatureHelp */) && node.kind === 213 /* CallExpression */ && node.arguments.hasTrailingComma; if (candidates.length > 1) { result = chooseOverload(candidates, subtypeRelation, isSingleNonGenericCandidate, signatureHelpTrailingComma); } @@ -72834,7 +73326,7 @@ ${lanes.join("\n")} continue; } if (argCheckMode) { - argCheckMode = checkMode & 32 /* IsForStringLiteralArgumentCompletions */; + argCheckMode = 0 /* Normal */; if (inferenceContext) { const typeArgumentTypes = inferTypeArguments(node, candidate, args, argCheckMode, inferenceContext); checkCandidate = getSignatureInstantiation(candidate, typeArgumentTypes, isInJSFile(candidate.declaration), inferenceContext.inferredTypeParameters); @@ -72883,7 +73375,7 @@ ${lanes.join("\n")} parameters.push(createCombinedSymbolFromTypes(symbols, mapDefined(candidates, (candidate) => tryGetTypeAtPosition(candidate, i)))); } const restParameterSymbols = mapDefined(candidates, (c) => signatureHasRestParameter(c) ? last(c.parameters) : void 0); - let flags = 0 /* None */; + let flags = 128 /* IsSignatureCandidateForOverloadFailure */; if (restParameterSymbols.length !== 0) { const type = createArrayType(getUnionType(mapDefined(candidates, tryGetRestTypeOfSignature), 2 /* Subtype */)); parameters.push(createCombinedSymbolForOverloadFailure(restParameterSymbols, type)); @@ -73008,13 +73500,13 @@ ${lanes.join("\n")} const numConstructSignatures = getSignaturesOfType(apparentType, 1 /* Construct */).length; if (isUntypedFunctionCall(funcType, apparentType, callSignatures.length, numConstructSignatures)) { if (!isErrorType(funcType) && node.typeArguments) { - error(node, Diagnostics.Untyped_function_calls_may_not_accept_type_arguments); + error2(node, Diagnostics.Untyped_function_calls_may_not_accept_type_arguments); } return resolveUntypedCall(node); } if (!callSignatures.length) { if (numConstructSignatures) { - error(node, Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new, typeToString(funcType)); + error2(node, Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new, typeToString(funcType)); } else { let relatedInformation; if (node.arguments.length === 1) { @@ -73037,7 +73529,7 @@ ${lanes.join("\n")} return resolvingSignature; } if (callSignatures.some((sig) => isInJSFile(sig.declaration) && !!getJSDocClassTag(sig.declaration))) { - error(node, Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new, typeToString(funcType)); + error2(node, Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new, typeToString(funcType)); return resolveErrorCall(node); } return resolveCall(node, callSignatures, candidatesOutArray, checkMode, callChainFlags); @@ -73052,7 +73544,7 @@ ${lanes.join("\n")} if (node.arguments && languageVersion < 1 /* ES5 */) { const spreadIndex = getSpreadArgumentIndex(node.arguments); if (spreadIndex >= 0) { - error(node.arguments[spreadIndex], Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher); + error2(node.arguments[spreadIndex], Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher); } } let expressionType = checkNonNullExpression(node.expression); @@ -73065,7 +73557,7 @@ ${lanes.join("\n")} } if (isTypeAny(expressionType)) { if (node.typeArguments) { - error(node, Diagnostics.Untyped_function_calls_may_not_accept_type_arguments); + error2(node, Diagnostics.Untyped_function_calls_may_not_accept_type_arguments); } return resolveUntypedCall(node); } @@ -73075,12 +73567,12 @@ ${lanes.join("\n")} return resolveErrorCall(node); } if (someSignature(constructSignatures, (signature) => !!(signature.flags & 4 /* Abstract */))) { - error(node, Diagnostics.Cannot_create_an_instance_of_an_abstract_class); + error2(node, Diagnostics.Cannot_create_an_instance_of_an_abstract_class); return resolveErrorCall(node); } const valueDecl = expressionType.symbol && getClassLikeDeclarationOfSymbol(expressionType.symbol); if (valueDecl && hasSyntacticModifier(valueDecl, 256 /* Abstract */)) { - error(node, Diagnostics.Cannot_create_an_instance_of_an_abstract_class); + error2(node, Diagnostics.Cannot_create_an_instance_of_an_abstract_class); return resolveErrorCall(node); } return resolveCall(node, constructSignatures, candidatesOutArray, checkMode, 0 /* None */); @@ -73090,10 +73582,10 @@ ${lanes.join("\n")} const signature = resolveCall(node, callSignatures, candidatesOutArray, checkMode, 0 /* None */); if (!noImplicitAny) { if (signature.declaration && !isJSConstructor(signature.declaration) && getReturnTypeOfSignature(signature) !== voidType) { - error(node, Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword); + error2(node, Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword); } if (getThisTypeOfSignature(signature) === voidType) { - error(node, Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void); + error2(node, Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void); } } return signature; @@ -73143,7 +73635,7 @@ ${lanes.join("\n")} } const declaration = signature.declaration; const modifiers = getSelectedEffectiveModifierFlags(declaration, 24 /* NonPublicAccessibilityModifier */); - if (!modifiers || declaration.kind !== 175 /* Constructor */) { + if (!modifiers || declaration.kind !== 176 /* Constructor */) { return true; } const declaringClassDeclaration = getClassLikeDeclarationOfSymbol(declaration.parent.symbol); @@ -73157,10 +73649,10 @@ ${lanes.join("\n")} } } if (modifiers & 8 /* Private */) { - error(node, Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration, typeToString(declaringClass)); + error2(node, Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration, typeToString(declaringClass)); } if (modifiers & 16 /* Protected */) { - error(node, Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration, typeToString(declaringClass)); + error2(node, Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration, typeToString(declaringClass)); } return false; } @@ -73290,16 +73782,16 @@ ${lanes.join("\n")} } function getDiagnosticHeadMessageForDecoratorResolution(node) { switch (node.parent.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression; - case 168 /* Parameter */: + case 169 /* Parameter */: return Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression; default: return Debug.fail(); @@ -73322,7 +73814,7 @@ ${lanes.join("\n")} /*includeTrivia*/ false ); - error(node, Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0, nodeStr); + error2(node, Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0, nodeStr); return resolveErrorCall(node); } const headMessage = getDiagnosticHeadMessageForDecoratorResolution(node); @@ -73412,7 +73904,7 @@ ${lanes.join("\n")} return resolveUntypedCall(node); } if (signatures.length === 0) { - error(node.tagName, Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures, getTextOfNode(node.tagName)); + error2(node.tagName, Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures, getTextOfNode(node.tagName)); return resolveErrorCall(node); } return resolveCall(node, signatures, candidatesOutArray, checkMode, 0 /* None */); @@ -73422,16 +73914,16 @@ ${lanes.join("\n")} } function resolveSignature(node, candidatesOutArray, checkMode) { switch (node.kind) { - case 212 /* CallExpression */: + case 213 /* CallExpression */: return resolveCallExpression(node, candidatesOutArray, checkMode); - case 213 /* NewExpression */: + case 214 /* NewExpression */: return resolveNewExpression(node, candidatesOutArray, checkMode); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return resolveTaggedTemplateExpression(node, candidatesOutArray, checkMode); - case 169 /* Decorator */: + case 170 /* Decorator */: return resolveDecorator(node, candidatesOutArray, checkMode); - case 285 /* JsxOpeningElement */: - case 284 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: return resolveJsxOpeningLikeElement(node, candidatesOutArray, checkMode); } Debug.assertNever(node, "Branch in 'resolveSignature' should be unreachable."); @@ -73507,7 +73999,7 @@ ${lanes.join("\n")} let name; let decl; if (isVariableDeclaration(node.parent) && node.parent.initializer === node) { - if (!isInJSFile(node) && !(isVarConst(node.parent) && isFunctionLikeDeclaration(node))) { + if (!isInJSFile(node) && !(isVarConstLike(node.parent) && isFunctionLikeDeclaration(node))) { return void 0; } name = node.parent.name; @@ -73544,7 +74036,7 @@ ${lanes.join("\n")} return false; } let parent2 = node.parent; - while (parent2 && parent2.kind === 210 /* PropertyAccessExpression */) { + while (parent2 && parent2.kind === 211 /* PropertyAccessExpression */) { parent2 = parent2.parent; } if (parent2 && isBinaryExpression(parent2) && isPrototypeAccess(parent2.left) && parent2.operatorToken.kind === 64 /* EqualsToken */) { @@ -73568,11 +74060,11 @@ ${lanes.join("\n")} if (node.expression.kind === 108 /* SuperKeyword */) { return voidType; } - if (node.kind === 213 /* NewExpression */) { + if (node.kind === 214 /* NewExpression */) { const declaration = signature.declaration; - if (declaration && declaration.kind !== 175 /* Constructor */ && declaration.kind !== 179 /* ConstructSignature */ && declaration.kind !== 184 /* ConstructorType */ && !(isJSDocSignature(declaration) && ((_b = (_a = getJSDocRoot(declaration)) == null ? void 0 : _a.parent) == null ? void 0 : _b.kind) === 175 /* Constructor */) && !isJSDocConstructSignature(declaration) && !isJSConstructor(declaration)) { + if (declaration && declaration.kind !== 176 /* Constructor */ && declaration.kind !== 180 /* ConstructSignature */ && declaration.kind !== 185 /* ConstructorType */ && !(isJSDocSignature(declaration) && ((_b = (_a = getJSDocRoot(declaration)) == null ? void 0 : _a.parent) == null ? void 0 : _b.kind) === 176 /* Constructor */) && !isJSDocConstructSignature(declaration) && !isJSConstructor(declaration)) { if (noImplicitAny) { - error(node, Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type); + error2(node, Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type); } return anyType; } @@ -73584,11 +74076,11 @@ ${lanes.join("\n")} if (returnType.flags & 12288 /* ESSymbolLike */ && isSymbolOrSymbolForCall(node)) { return getESSymbolLikeTypeForNode(walkUpParenthesizedExpressions(node.parent)); } - if (node.kind === 212 /* CallExpression */ && !node.questionDotToken && node.parent.kind === 243 /* ExpressionStatement */ && returnType.flags & 16384 /* Void */ && getTypePredicateOfSignature(signature)) { + if (node.kind === 213 /* CallExpression */ && !node.questionDotToken && node.parent.kind === 244 /* ExpressionStatement */ && returnType.flags & 16384 /* Void */ && getTypePredicateOfSignature(signature)) { if (!isDottedName(node.expression)) { - error(node.expression, Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name); + error2(node.expression, Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name); } else if (!getEffectsSignature(node)) { - const diagnostic = error(node.expression, Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation); + const diagnostic = error2(node.expression, Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation); getTypeOfDottedName(node.expression, diagnostic); } } @@ -73607,7 +74099,9 @@ ${lanes.join("\n")} return returnType; } function checkDeprecatedSignature(signature, node) { - if (signature.declaration && signature.declaration.flags & 268435456 /* Deprecated */) { + if (signature.flags & 128 /* IsSignatureCandidateForOverloadFailure */) + return; + if (signature.declaration && signature.declaration.flags & 536870912 /* Deprecated */) { const suggestionNode = getDeprecatedSuggestionNode(node); const name = tryGetPropertyAccessOrIdentifierToString(getInvokedExpression(node)); addDeprecatedSuggestionWithSignature(suggestionNode, signature.declaration, name, signatureToString(signature)); @@ -73616,20 +74110,20 @@ ${lanes.join("\n")} function getDeprecatedSuggestionNode(node) { node = skipParentheses(node); switch (node.kind) { - case 212 /* CallExpression */: - case 169 /* Decorator */: - case 213 /* NewExpression */: + case 213 /* CallExpression */: + case 170 /* Decorator */: + case 214 /* NewExpression */: return getDeprecatedSuggestionNode(node.expression); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return getDeprecatedSuggestionNode(node.tag); - case 285 /* JsxOpeningElement */: - case 284 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: return getDeprecatedSuggestionNode(node.tagName); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return node.argumentExpression; - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return node.name; - case 182 /* TypeReference */: + case 183 /* TypeReference */: const typeReference = node; return isQualifiedName(typeReference.typeName) ? typeReference.typeName.right : typeReference; default: @@ -73677,7 +74171,7 @@ ${lanes.join("\n")} checkExpressionCached(node.arguments[i]); } if (specifierType.flags & 32768 /* Undefined */ || specifierType.flags & 65536 /* Null */ || !isTypeAssignableTo(specifierType, stringType)) { - error(specifier, Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0, typeToString(specifierType)); + error2(specifier, Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0, typeToString(specifierType)); } if (optionsType) { const importCallOptionsType = getGlobalImportCallOptionsType( @@ -73789,10 +74283,10 @@ ${lanes.join("\n")} if (resolvedRequire.flags & 2097152 /* Alias */) { return false; } - const targetDeclarationKind = resolvedRequire.flags & 16 /* Function */ ? 261 /* FunctionDeclaration */ : resolvedRequire.flags & 3 /* Variable */ ? 259 /* VariableDeclaration */ : 0 /* Unknown */; + const targetDeclarationKind = resolvedRequire.flags & 16 /* Function */ ? 262 /* FunctionDeclaration */ : resolvedRequire.flags & 3 /* Variable */ ? 260 /* VariableDeclaration */ : 0 /* Unknown */; if (targetDeclarationKind !== 0 /* Unknown */) { const decl = getDeclarationOfKind(resolvedRequire, targetDeclarationKind); - return !!decl && !!(decl.flags & 16777216 /* Ambient */); + return !!decl && !!(decl.flags & 33554432 /* Ambient */); } return false; } @@ -73807,7 +74301,7 @@ ${lanes.join("\n")} return getReturnTypeOfSignature(signature); } function checkAssertion(node, checkMode) { - if (node.kind === 215 /* TypeAssertionExpression */) { + if (node.kind === 216 /* TypeAssertionExpression */) { const file = getSourceFileOfNode(node); if (file && fileExtensionIsOneOf(file.fileName, [".cts" /* Cts */, ".mts" /* Mts */])) { grammarErrorOnNode(node, Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead); @@ -73823,18 +74317,18 @@ ${lanes.join("\n")} case 10 /* BigIntLiteral */: case 112 /* TrueKeyword */: case 97 /* FalseKeyword */: - case 208 /* ArrayLiteralExpression */: - case 209 /* ObjectLiteralExpression */: - case 227 /* TemplateExpression */: + case 209 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: + case 228 /* TemplateExpression */: return true; - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return isValidConstAssertionArgument(node.expression); - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: const op = node.operator; const arg = node.operand; return op === 41 /* MinusToken */ && (arg.kind === 9 /* NumericLiteral */ || arg.kind === 10 /* BigIntLiteral */) || op === 40 /* PlusToken */ && arg.kind === 9 /* NumericLiteral */; - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: const expr = skipParentheses(node.expression); const symbol = isEntityNameExpression(expr) ? resolveEntityName( expr, @@ -73851,7 +74345,7 @@ ${lanes.join("\n")} const exprType = checkExpression(expression, checkMode); if (isConstTypeReference(type)) { if (!isValidConstAssertionArgument(expression)) { - error(expression, Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals); + error2(expression, Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals); } return getRegularTypeOfLiteralType(exprType); } @@ -73865,12 +74359,12 @@ ${lanes.join("\n")} let type; let expression; switch (node.kind) { - case 233 /* AsExpression */: - case 215 /* TypeAssertionExpression */: + case 234 /* AsExpression */: + case 216 /* TypeAssertionExpression */: type = node.type; expression = node.expression; break; - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: type = getJSDocTypeAssertionType(node); expression = node.expression; break; @@ -73904,18 +74398,18 @@ ${lanes.join("\n")} return propagateOptionalTypeMarker(getNonNullableType(nonOptionalType), node, nonOptionalType !== leftType); } function checkNonNullAssertion(node) { - return node.flags & 32 /* OptionalChain */ ? checkNonNullChain(node) : getNonNullableType(checkExpression(node.expression)); + return node.flags & 64 /* OptionalChain */ ? checkNonNullChain(node) : getNonNullableType(checkExpression(node.expression)); } function checkExpressionWithTypeArguments(node) { checkGrammarExpressionWithTypeArguments(node); forEach(node.typeArguments, checkSourceElement); - if (node.kind === 232 /* ExpressionWithTypeArguments */) { + if (node.kind === 233 /* ExpressionWithTypeArguments */) { const parent2 = walkUpParenthesizedExpressions(node.parent); - if (parent2.kind === 225 /* BinaryExpression */ && parent2.operatorToken.kind === 104 /* InstanceOfKeyword */ && isNodeDescendantOf(node, parent2.right)) { - error(node, Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression); + if (parent2.kind === 226 /* BinaryExpression */ && parent2.operatorToken.kind === 104 /* InstanceOfKeyword */ && isNodeDescendantOf(node, parent2.right)) { + error2(node, Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression); } } - const exprType = node.kind === 232 /* ExpressionWithTypeArguments */ ? checkExpression(node.expression) : isThisIdentifier(node.exprName) ? checkThisExpression(node.exprName) : checkExpression(node.exprName); + const exprType = node.kind === 233 /* ExpressionWithTypeArguments */ ? checkExpression(node.expression) : isThisIdentifier(node.exprName) ? checkThisExpression(node.exprName) : checkExpression(node.exprName); return getInstantiationExpressionType(exprType, node); } function getInstantiationExpressionType(exprType, node) { @@ -73999,7 +74493,7 @@ ${lanes.join("\n")} if (isErrorType(targetType)) { return targetType; } - const errorNode = findAncestor(target.parent, (n) => n.kind === 237 /* SatisfiesExpression */ || n.kind === 356 /* JSDocSatisfiesTag */); + const errorNode = findAncestor(target.parent, (n) => n.kind === 238 /* SatisfiesExpression */ || n.kind === 357 /* JSDocSatisfiesTag */); checkTypeAssignableToAndOptionallyElaborate(exprType, targetType, errorNode, expression, Diagnostics.Type_0_does_not_satisfy_the_expected_type_1); return exprType; } @@ -74027,9 +74521,9 @@ ${lanes.join("\n")} function checkNewTargetMetaProperty(node) { const container = getNewTargetContainer(node); if (!container) { - error(node, Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor, "new.target"); + error2(node, Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor, "new.target"); return errorType; - } else if (container.kind === 175 /* Constructor */) { + } else if (container.kind === 176 /* Constructor */) { const symbol = getSymbolOfDeclaration(container.parent); return getTypeOfSymbol(symbol); } else { @@ -74040,13 +74534,13 @@ ${lanes.join("\n")} function checkImportMetaProperty(node) { if (moduleKind === 100 /* Node16 */ || moduleKind === 199 /* NodeNext */) { if (getSourceFileOfNode(node).impliedNodeFormat !== 99 /* ESNext */) { - error(node, Diagnostics.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output); + error2(node, Diagnostics.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output); } } else if (moduleKind < 6 /* ES2020 */ && moduleKind !== 4 /* System */) { - error(node, Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext); + error2(node, Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext); } const file = getSourceFileOfNode(node); - Debug.assert(!!(file.flags & 4194304 /* PossiblyContainsImportMeta */), "Containing file is missing import meta node flag."); + Debug.assert(!!(file.flags & 8388608 /* PossiblyContainsImportMeta */), "Containing file is missing import meta node flag."); return node.name.escapedText === "meta" ? getGlobalImportMetaType() : errorType; } function getTypeOfParameter(symbol) { @@ -74059,7 +74553,10 @@ ${lanes.join("\n")} } return type; } - function getTupleElementLabel(d) { + function getTupleElementLabel(d, index, restParameterName = "arg") { + if (!d) { + return `${restParameterName}_${index}`; + } Debug.assert(isIdentifier(d.name)); return d.name.escapedText; } @@ -74073,22 +74570,28 @@ ${lanes.join("\n")} if (isTupleType(restType)) { const associatedNames = restType.target.labeledElementDeclarations; const index = pos - paramCount; - return associatedNames && getTupleElementLabel(associatedNames[index]) || restParameter.escapedName + "_" + index; + return getTupleElementLabel(associatedNames == null ? void 0 : associatedNames[index], index, restParameter.escapedName); } return restParameter.escapedName; } - function getParameterIdentifierNameAtPosition(signature, pos) { + function getParameterIdentifierInfoAtPosition(signature, pos) { var _a; - if (((_a = signature.declaration) == null ? void 0 : _a.kind) === 323 /* JSDocFunctionType */) { + if (((_a = signature.declaration) == null ? void 0 : _a.kind) === 324 /* JSDocFunctionType */) { return void 0; } const paramCount = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0); if (pos < paramCount) { const param = signature.parameters[pos]; - return isParameterDeclarationWithIdentifierName(param) ? [param.escapedName, false] : void 0; + const paramIdent = getParameterDeclarationIdentifier(param); + return paramIdent ? { + parameter: paramIdent, + parameterName: param.escapedName, + isRestParameter: false + } : void 0; } const restParameter = signature.parameters[paramCount] || unknownSymbol; - if (!isParameterDeclarationWithIdentifierName(restParameter)) { + const restIdent = getParameterDeclarationIdentifier(restParameter); + if (!restIdent) { return void 0; } const restType = getTypeOfSymbol(restParameter); @@ -74097,21 +74600,22 @@ ${lanes.join("\n")} const index = pos - paramCount; const associatedName = associatedNames == null ? void 0 : associatedNames[index]; const isRestTupleElement = !!(associatedName == null ? void 0 : associatedName.dotDotDotToken); - return associatedName ? [ - getTupleElementLabel(associatedName), - isRestTupleElement - ] : void 0; + if (associatedName) { + Debug.assert(isIdentifier(associatedName.name)); + return { parameter: associatedName.name, parameterName: associatedName.name.escapedText, isRestParameter: isRestTupleElement }; + } + return void 0; } if (pos === paramCount) { - return [restParameter.escapedName, true]; + return { parameter: restIdent, parameterName: restParameter.escapedName, isRestParameter: true }; } return void 0; } - function isParameterDeclarationWithIdentifierName(symbol) { - return symbol.valueDeclaration && isParameter(symbol.valueDeclaration) && isIdentifier(symbol.valueDeclaration.name); + function getParameterDeclarationIdentifier(symbol) { + return symbol.valueDeclaration && isParameter(symbol.valueDeclaration) && isIdentifier(symbol.valueDeclaration.name) && symbol.valueDeclaration.name; } function isValidDeclarationForTupleLabel(d) { - return d.kind === 201 /* NamedTupleMember */ || isParameter(d) && d.name && isIdentifier(d.name); + return d.kind === 202 /* NamedTupleMember */ || isParameter(d) && d.name && isIdentifier(d.name); } function getNameableDeclarationAtPosition(signature, pos) { const paramCount = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0); @@ -74447,17 +74951,17 @@ ${lanes.join("\n")} if (!links.decoratorSignature) { links.decoratorSignature = anySignature; switch (parent2.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: { + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: { const node = parent2; const targetType = getTypeOfSymbol(getSymbolOfDeclaration(node)); const contextType = createClassDecoratorContextType(targetType); links.decoratorSignature = createESDecoratorCallSignature(targetType, contextType, targetType); break; } - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: { + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: { const node = parent2; if (!isClassLike(node.parent)) break; @@ -74469,7 +74973,7 @@ ${lanes.join("\n")} links.decoratorSignature = createESDecoratorCallSignature(targetType, contextType, returnType); break; } - case 171 /* PropertyDeclaration */: { + case 172 /* PropertyDeclaration */: { const node = parent2; if (!isClassLike(node.parent)) break; @@ -74491,8 +74995,8 @@ ${lanes.join("\n")} if (!links.decoratorSignature) { links.decoratorSignature = anySignature; switch (parent2.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: { + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: { const node = parent2; const targetType = getTypeOfSymbol(getSymbolOfDeclaration(node)); const targetParam = createParameter("target", targetType); @@ -74506,7 +75010,7 @@ ${lanes.join("\n")} ); break; } - case 168 /* Parameter */: { + case 169 /* Parameter */: { const node = parent2; if (!isConstructorDeclaration(node.parent) && !(isMethodDeclaration(node.parent) || isSetAccessorDeclaration(node.parent) && isClassLike(node.parent.parent))) { break; @@ -74532,10 +75036,10 @@ ${lanes.join("\n")} ); break; } - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 171 /* PropertyDeclaration */: { + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 172 /* PropertyDeclaration */: { const node = parent2; if (!isClassLike(node.parent)) break; @@ -74600,13 +75104,13 @@ ${lanes.join("\n")} function createPromiseReturnType(func, promisedType) { const promiseType = createPromiseType(promisedType); if (promiseType === unknownType) { - error(func, isImportCall(func) ? Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option : Diagnostics.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option); + error2(func, isImportCall(func) ? Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option : Diagnostics.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option); return errorType; } else if (!getGlobalPromiseConstructorSymbol( /*reportErrors*/ true )) { - error(func, isImportCall(func) ? Diagnostics.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option : Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option); + error2(func, isImportCall(func) ? Diagnostics.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option : Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option); } return promiseType; } @@ -74630,7 +75134,7 @@ ${lanes.join("\n")} let yieldType; let nextType; let fallbackReturnType = voidType; - if (func.body.kind !== 240 /* Block */) { + if (func.body.kind !== 241 /* Block */) { returnType = checkExpressionCached(func.body, checkMode && checkMode & ~8 /* SkipGenericFunctions */); if (isAsync) { returnType = unwrapAwaitedType(checkAwaitedType( @@ -74813,7 +75317,7 @@ ${lanes.join("\n")} return links.isExhaustive; } function computeExhaustiveSwitchStatement(node) { - if (node.expression.kind === 220 /* TypeOfExpression */) { + if (node.expression.kind === 221 /* TypeOfExpression */) { const witnesses = getSwitchClauseTypeOfWitnesses(node); if (!witnesses) { return false; @@ -74846,7 +75350,7 @@ ${lanes.join("\n")} forEachReturnStatement(func.body, (returnStatement) => { const expr = returnStatement.expression; if (expr) { - if (expr.kind === 212 /* CallExpression */ && expr.expression.kind === 80 /* Identifier */ && checkExpressionCached(expr.expression).symbol === func.symbol) { + if (expr.kind === 213 /* CallExpression */ && expr.expression.kind === 80 /* Identifier */ && checkExpressionCached(expr.expression).symbol === func.symbol) { hasReturnOfTypeNever = true; return; } @@ -74878,11 +75382,11 @@ ${lanes.join("\n")} } function mayReturnNever(func) { switch (func.kind) { - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return true; - case 173 /* MethodDeclaration */: - return func.parent.kind === 209 /* ObjectLiteralExpression */; + case 174 /* MethodDeclaration */: + return func.parent.kind === 210 /* ObjectLiteralExpression */; default: return false; } @@ -74896,17 +75400,17 @@ ${lanes.join("\n")} if (type && (maybeTypeOfKind(type, 16384 /* Void */) || type.flags & (1 /* Any */ | 32768 /* Undefined */))) { return; } - if (func.kind === 172 /* MethodSignature */ || nodeIsMissing(func.body) || func.body.kind !== 240 /* Block */ || !functionHasImplicitReturn(func)) { + if (func.kind === 173 /* MethodSignature */ || nodeIsMissing(func.body) || func.body.kind !== 241 /* Block */ || !functionHasImplicitReturn(func)) { return; } - const hasExplicitReturn = func.flags & 512 /* HasExplicitReturn */; + const hasExplicitReturn = func.flags & 1024 /* HasExplicitReturn */; const errorNode = getEffectiveReturnTypeNode(func) || func; if (type && type.flags & 131072 /* Never */) { - error(errorNode, Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point); + error2(errorNode, Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point); } else if (type && !hasExplicitReturn) { - error(errorNode, Diagnostics.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value); + error2(errorNode, Diagnostics.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value); } else if (type && strictNullChecks && !isTypeAssignableTo(undefinedType, type)) { - error(errorNode, Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined); + error2(errorNode, Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined); } else if (compilerOptions.noImplicitReturns) { if (!type) { if (!hasExplicitReturn) { @@ -74917,12 +75421,12 @@ ${lanes.join("\n")} return; } } - error(errorNode, Diagnostics.Not_all_code_paths_return_a_value); + error2(errorNode, Diagnostics.Not_all_code_paths_return_a_value); } } } function checkFunctionExpressionOrObjectLiteralMethod(node, checkMode) { - Debug.assert(node.kind !== 173 /* MethodDeclaration */ || isObjectLiteralMethod(node)); + Debug.assert(node.kind !== 174 /* MethodDeclaration */ || isObjectLiteralMethod(node)); checkNodeDeferred(node); if (isFunctionExpression(node)) { checkCollisionsForDeclarationName(node, node.name); @@ -74958,7 +75462,7 @@ ${lanes.join("\n")} return anyFunctionType; } const hasGrammarError = checkGrammarFunctionLikeDeclaration(node); - if (!hasGrammarError && node.kind === 217 /* FunctionExpression */) { + if (!hasGrammarError && node.kind === 218 /* FunctionExpression */) { checkGrammarForGenerator(node); } contextuallyCheckFunctionExpressionOrObjectLiteralMethod(node, checkMode); @@ -75007,7 +75511,7 @@ ${lanes.join("\n")} } } function checkFunctionExpressionOrObjectLiteralMethodDeferred(node) { - Debug.assert(node.kind !== 173 /* MethodDeclaration */ || isObjectLiteralMethod(node)); + Debug.assert(node.kind !== 174 /* MethodDeclaration */ || isObjectLiteralMethod(node)); const functionFlags = getFunctionFlags(node); const returnType = getReturnTypeFromAnnotation(node); checkAllCodePathsInNonVoidFunctionReturnOrThrow(node, returnType); @@ -75015,7 +75519,7 @@ ${lanes.join("\n")} if (!getEffectiveReturnTypeNode(node)) { getReturnTypeOfSignature(getSignatureFromDeclaration(node)); } - if (node.body.kind === 240 /* Block */) { + if (node.body.kind === 241 /* Block */) { checkSourceElement(node.body); } else { const exprType = checkExpression(node.body); @@ -75077,7 +75581,7 @@ ${lanes.join("\n")} return !setProp; } function isReadonlySymbol(symbol) { - return !!(getCheckFlags(symbol) & 8 /* Readonly */ || symbol.flags & 4 /* Property */ && getDeclarationModifierFlagsFromSymbol(symbol) & 64 /* Readonly */ || symbol.flags & 3 /* Variable */ && getDeclarationNodeFlagsFromSymbol(symbol) & 2 /* Const */ || symbol.flags & 98304 /* Accessor */ && !(symbol.flags & 65536 /* SetAccessor */) || symbol.flags & 8 /* EnumMember */ || some(symbol.declarations, isReadonlyAssignmentDeclaration)); + return !!(getCheckFlags(symbol) & 8 /* Readonly */ || symbol.flags & 4 /* Property */ && getDeclarationModifierFlagsFromSymbol(symbol) & 64 /* Readonly */ || symbol.flags & 3 /* Variable */ && getDeclarationNodeFlagsFromSymbol(symbol) & 6 /* Constant */ || symbol.flags & 98304 /* Accessor */ && !(symbol.flags & 65536 /* SetAccessor */) || symbol.flags & 8 /* EnumMember */ || some(symbol.declarations, isReadonlyAssignmentDeclaration)); } function isAssignmentToReadonlyEntity(expr, symbol, assignmentKind) { var _a, _b; @@ -75087,7 +75591,7 @@ ${lanes.join("\n")} if (isReadonlySymbol(symbol)) { if (symbol.flags & 4 /* Property */ && isAccessExpression(expr) && expr.expression.kind === 110 /* ThisKeyword */) { const ctor = getContainingFunction(expr); - if (!(ctor && (ctor.kind === 175 /* Constructor */ || isJSConstructor(ctor)))) { + if (!(ctor && (ctor.kind === 176 /* Constructor */ || isJSConstructor(ctor)))) { return true; } if (symbol.valueDeclaration) { @@ -75108,7 +75612,7 @@ ${lanes.join("\n")} const symbol2 = getNodeLinks(node).resolvedSymbol; if (symbol2.flags & 2097152 /* Alias */) { const declaration = getDeclarationOfAliasSymbol(symbol2); - return !!declaration && declaration.kind === 273 /* NamespaceImport */; + return !!declaration && declaration.kind === 274 /* NamespaceImport */; } } } @@ -75117,11 +75621,11 @@ ${lanes.join("\n")} function checkReferenceExpression(expr, invalidReferenceMessage, invalidOptionalChainMessage) { const node = skipOuterExpressions(expr, 6 /* Assertions */ | 1 /* Parentheses */); if (node.kind !== 80 /* Identifier */ && !isAccessExpression(node)) { - error(expr, invalidReferenceMessage); + error2(expr, invalidReferenceMessage); return false; } - if (node.flags & 32 /* OptionalChain */) { - error(expr, invalidOptionalChainMessage); + if (node.flags & 64 /* OptionalChain */) { + error2(expr, invalidOptionalChainMessage); return false; } return true; @@ -75130,17 +75634,17 @@ ${lanes.join("\n")} checkExpression(node.expression); const expr = skipParentheses(node.expression); if (!isAccessExpression(expr)) { - error(expr, Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference); + error2(expr, Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference); return booleanType; } if (isPropertyAccessExpression(expr) && isPrivateIdentifier(expr.name)) { - error(expr, Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier); + error2(expr, Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier); } const links = getNodeLinks(expr); const symbol = getExportSymbolOfValueSymbolIfExported(links.resolvedSymbol); if (symbol) { if (isReadonlySymbol(symbol)) { - error(expr, Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property); + error2(expr, Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property); } checkDeleteExpressionMustBeOptional(expr, symbol); } @@ -75149,7 +75653,7 @@ ${lanes.join("\n")} function checkDeleteExpressionMustBeOptional(expr, symbol) { const type = getTypeOfSymbol(symbol); if (strictNullChecks && !(type.flags & (3 /* AnyOrUnknown */ | 131072 /* Never */)) && !(exactOptionalPropertyTypes ? symbol.flags & 16777216 /* Optional */ : getTypeFacts(type) & 16777216 /* IsUndefined */)) { - error(expr, Diagnostics.The_operand_of_a_delete_operator_must_be_optional); + error2(expr, Diagnostics.The_operand_of_a_delete_operator_must_be_optional); } } function checkTypeOfExpression(node) { @@ -75160,24 +75664,24 @@ ${lanes.join("\n")} checkExpression(node.expression); return undefinedWideningType; } - function checkAwaitExpressionGrammar(node) { + function checkAwaitGrammar(node) { + let hasError = false; const container = getContainingFunctionOrClassStaticBlock(node); if (container && isClassStaticBlockDeclaration(container)) { - error(node, Diagnostics.Await_expression_cannot_be_used_inside_a_class_static_block); - } else if (!(node.flags & 32768 /* AwaitContext */)) { + const message = isAwaitExpression(node) ? Diagnostics.await_expression_cannot_be_used_inside_a_class_static_block : Diagnostics.await_using_statements_cannot_be_used_inside_a_class_static_block; + error2(node, message); + hasError = true; + } else if (!(node.flags & 65536 /* AwaitContext */)) { if (isInTopLevelContext(node)) { const sourceFile = getSourceFileOfNode(node); if (!hasParseDiagnostics(sourceFile)) { let span; if (!isEffectiveExternalModule(sourceFile, compilerOptions)) { span ?? (span = getSpanOfTokenAtPosition(sourceFile, node.pos)); - const diagnostic = createFileDiagnostic( - sourceFile, - span.start, - span.length, - Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module - ); + const message = isAwaitExpression(node) ? Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module : Diagnostics.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module; + const diagnostic = createFileDiagnostic(sourceFile, span.start, span.length, message); diagnostics.add(diagnostic); + hasError = true; } switch (moduleKind) { case 100 /* Node16 */: @@ -75187,6 +75691,7 @@ ${lanes.join("\n")} diagnostics.add( createFileDiagnostic(sourceFile, span.start, span.length, Diagnostics.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level) ); + hasError = true; break; } case 7 /* ES2022 */: @@ -75197,14 +75702,9 @@ ${lanes.join("\n")} } default: span ?? (span = getSpanOfTokenAtPosition(sourceFile, node.pos)); - diagnostics.add( - createFileDiagnostic( - sourceFile, - span.start, - span.length, - Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher - ) - ); + const message = isAwaitExpression(node) ? Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher : Diagnostics.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher; + diagnostics.add(createFileDiagnostic(sourceFile, span.start, span.length, message)); + hasError = true; break; } } @@ -75212,21 +75712,25 @@ ${lanes.join("\n")} const sourceFile = getSourceFileOfNode(node); if (!hasParseDiagnostics(sourceFile)) { const span = getSpanOfTokenAtPosition(sourceFile, node.pos); - const diagnostic = createFileDiagnostic(sourceFile, span.start, span.length, Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules); - if (container && container.kind !== 175 /* Constructor */ && (getFunctionFlags(container) & 2 /* Async */) === 0) { + const message = isAwaitExpression(node) ? Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules : Diagnostics.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules; + const diagnostic = createFileDiagnostic(sourceFile, span.start, span.length, message); + if (container && container.kind !== 176 /* Constructor */ && (getFunctionFlags(container) & 2 /* Async */) === 0) { const relatedInfo = createDiagnosticForNode(container, Diagnostics.Did_you_mean_to_mark_this_function_as_async); addRelatedInfo(diagnostic, relatedInfo); } diagnostics.add(diagnostic); + hasError = true; } } } - if (isInParameterInitializerBeforeContainingFunction(node)) { - error(node, Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer); + if (isAwaitExpression(node) && isInParameterInitializerBeforeContainingFunction(node)) { + error2(node, Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer); + hasError = true; } + return hasError; } function checkAwaitExpression(node) { - addLazyDiagnostic(() => checkAwaitExpressionGrammar(node)); + addLazyDiagnostic(() => checkAwaitGrammar(node)); const operandType = checkExpression(node.expression); const awaitedType = checkAwaitedType( operandType, @@ -75272,11 +75776,11 @@ ${lanes.join("\n")} case 55 /* TildeToken */: checkNonNullType(operandType, node.operand); if (maybeTypeOfKindConsideringBaseConstraint(operandType, 12288 /* ESSymbolLike */)) { - error(node.operand, Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol, tokenToString(node.operator)); + error2(node.operand, Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol, tokenToString(node.operator)); } if (node.operator === 40 /* PlusToken */) { if (maybeTypeOfKindConsideringBaseConstraint(operandType, 2112 /* BigIntLike */)) { - error(node.operand, Diagnostics.Operator_0_cannot_be_applied_to_type_1, tokenToString(node.operator), typeToString(getBaseTypeOfLiteralType(operandType))); + error2(node.operand, Diagnostics.Operator_0_cannot_be_applied_to_type_1, tokenToString(node.operator), typeToString(getBaseTypeOfLiteralType(operandType))); } return numberType; } @@ -75372,10 +75876,10 @@ ${lanes.join("\n")} return silentNeverType; } if (!isTypeAny(leftType) && allTypesAssignableToKind(leftType, 402784252 /* Primitive */)) { - error(left, Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter); + error2(left, Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter); } if (!(isTypeAny(rightType) || typeHasCallOrConstructSignatures(rightType) || isTypeSubtypeOf(rightType, globalFunctionType))) { - error(right, Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type); + error2(right, Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type); } return booleanType; } @@ -75404,7 +75908,7 @@ ${lanes.join("\n")} } if (checkTypeAssignableTo(checkNonNullType(rightType, right), nonPrimitiveType, right)) { if (hasEmptyObjectIntersection(rightType)) { - error(right, Diagnostics.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator, typeToString(rightType)); + error2(right, Diagnostics.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator, typeToString(rightType)); } } return booleanType; @@ -75422,7 +75926,7 @@ ${lanes.join("\n")} function checkObjectLiteralDestructuringPropertyAssignment(node, objectLiteralType, propertyIndex, allProperties, rightIsThis = false) { const properties = node.properties; const property = properties[propertyIndex]; - if (property.kind === 302 /* PropertyAssignment */ || property.kind === 303 /* ShorthandPropertyAssignment */) { + if (property.kind === 303 /* PropertyAssignment */ || property.kind === 304 /* ShorthandPropertyAssignment */) { const name = property.name; const exprType = getLiteralTypeFromPropertyName(name); if (isTypeUsableAsPropertyName(exprType)) { @@ -75443,10 +75947,10 @@ ${lanes.join("\n")} } const elementType = getIndexedAccessType(objectLiteralType, exprType, 32 /* ExpressionPosition */, name); const type = getFlowTypeOfDestructuring(property, elementType); - return checkDestructuringAssignment(property.kind === 303 /* ShorthandPropertyAssignment */ ? property : property.initializer, type); - } else if (property.kind === 304 /* SpreadAssignment */) { + return checkDestructuringAssignment(property.kind === 304 /* ShorthandPropertyAssignment */ ? property : property.initializer, type); + } else if (property.kind === 305 /* SpreadAssignment */) { if (propertyIndex < properties.length - 1) { - error(property, Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern); + error2(property, Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern); } else { if (languageVersion < 99 /* ESNext */) { checkExternalEmitHelpers(property, 4 /* Rest */); @@ -75464,7 +75968,7 @@ ${lanes.join("\n")} return checkDestructuringAssignment(property.expression, type); } } else { - error(property, Diagnostics.Property_assignment_expected); + error2(property, Diagnostics.Property_assignment_expected); } } function checkArrayLiteralAssignment(node, sourceType, checkMode) { @@ -75476,7 +75980,7 @@ ${lanes.join("\n")} let inBoundsType = compilerOptions.noUncheckedIndexedAccess ? void 0 : possiblyOutOfBoundsType; for (let i = 0; i < elements.length; i++) { let type = possiblyOutOfBoundsType; - if (node.elements[i].kind === 229 /* SpreadElement */) { + if (node.elements[i].kind === 230 /* SpreadElement */) { type = inBoundsType = inBoundsType ?? (checkIteratedTypeOrElementType(65 /* Destructuring */, sourceType, undefinedType, node) || errorType); } checkArrayLiteralDestructuringElementAssignment(node, sourceType, i, type, checkMode); @@ -75486,8 +75990,8 @@ ${lanes.join("\n")} function checkArrayLiteralDestructuringElementAssignment(node, sourceType, elementIndex, elementType, checkMode) { const elements = node.elements; const element = elements[elementIndex]; - if (element.kind !== 231 /* OmittedExpression */) { - if (element.kind !== 229 /* SpreadElement */) { + if (element.kind !== 232 /* OmittedExpression */) { + if (element.kind !== 230 /* SpreadElement */) { const indexType = getNumberLiteralType(elementIndex); if (isArrayLikeType(sourceType)) { const accessFlags = 32 /* ExpressionPosition */ | (hasDefaultValue(element) ? 16 /* NoTupleBoundsCheck */ : 0); @@ -75499,11 +76003,11 @@ ${lanes.join("\n")} return checkDestructuringAssignment(element, elementType, checkMode); } if (elementIndex < elements.length - 1) { - error(element, Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern); + error2(element, Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern); } else { const restExpression = element.expression; - if (restExpression.kind === 225 /* BinaryExpression */ && restExpression.operatorToken.kind === 64 /* EqualsToken */) { - error(restExpression.operatorToken, Diagnostics.A_rest_element_cannot_have_an_initializer); + if (restExpression.kind === 226 /* BinaryExpression */ && restExpression.operatorToken.kind === 64 /* EqualsToken */) { + error2(restExpression.operatorToken, Diagnostics.A_rest_element_cannot_have_an_initializer); } else { checkGrammarForDisallowedTrailingComma(node.elements, Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma); const type = everyType(sourceType, isTupleType) ? mapType(sourceType, (t) => sliceTupleType(t, elementIndex)) : createArrayType(elementType); @@ -75515,7 +76019,7 @@ ${lanes.join("\n")} } function checkDestructuringAssignment(exprOrAssignment, sourceType, checkMode, rightIsThis) { let target; - if (exprOrAssignment.kind === 303 /* ShorthandPropertyAssignment */) { + if (exprOrAssignment.kind === 304 /* ShorthandPropertyAssignment */) { const prop = exprOrAssignment; if (prop.objectAssignmentInitializer) { if (strictNullChecks && !(getTypeFacts(checkExpression(prop.objectAssignmentInitializer)) & 16777216 /* IsUndefined */)) { @@ -75527,26 +76031,26 @@ ${lanes.join("\n")} } else { target = exprOrAssignment; } - if (target.kind === 225 /* BinaryExpression */ && target.operatorToken.kind === 64 /* EqualsToken */) { + if (target.kind === 226 /* BinaryExpression */ && target.operatorToken.kind === 64 /* EqualsToken */) { checkBinaryExpression(target, checkMode); target = target.left; if (strictNullChecks) { sourceType = getTypeWithFacts(sourceType, 524288 /* NEUndefined */); } } - if (target.kind === 209 /* ObjectLiteralExpression */) { + if (target.kind === 210 /* ObjectLiteralExpression */) { return checkObjectLiteralAssignment(target, sourceType, rightIsThis); } - if (target.kind === 208 /* ArrayLiteralExpression */) { + if (target.kind === 209 /* ArrayLiteralExpression */) { return checkArrayLiteralAssignment(target, sourceType, checkMode); } return checkReferenceAssignment(target, sourceType, checkMode); } function checkReferenceAssignment(target, sourceType, checkMode) { const targetType = checkExpression(target, checkMode); - const error2 = target.parent.kind === 304 /* SpreadAssignment */ ? Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access : Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access; - const optionalError = target.parent.kind === 304 /* SpreadAssignment */ ? Diagnostics.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access : Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access; - if (checkReferenceExpression(target, error2, optionalError)) { + const error3 = target.parent.kind === 305 /* SpreadAssignment */ ? Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access : Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access; + const optionalError = target.parent.kind === 305 /* SpreadAssignment */ ? Diagnostics.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access : Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access; + if (checkReferenceExpression(target, error3, optionalError)) { checkTypeAssignableToAndOptionallyElaborate(sourceType, targetType, target, target); } if (isPrivateIdentifierPropertyAccessExpression(target)) { @@ -75560,8 +76064,8 @@ ${lanes.join("\n")} case 80 /* Identifier */: case 11 /* StringLiteral */: case 14 /* RegularExpressionLiteral */: - case 214 /* TaggedTemplateExpression */: - case 227 /* TemplateExpression */: + case 215 /* TaggedTemplateExpression */: + case 228 /* TemplateExpression */: case 15 /* NoSubstitutionTemplateLiteral */: case 9 /* NumericLiteral */: case 10 /* BigIntLiteral */: @@ -75569,25 +76073,25 @@ ${lanes.join("\n")} case 97 /* FalseKeyword */: case 106 /* NullKeyword */: case 157 /* UndefinedKeyword */: - case 217 /* FunctionExpression */: - case 230 /* ClassExpression */: - case 218 /* ArrowFunction */: - case 208 /* ArrayLiteralExpression */: - case 209 /* ObjectLiteralExpression */: - case 220 /* TypeOfExpression */: - case 234 /* NonNullExpression */: - case 284 /* JsxSelfClosingElement */: - case 283 /* JsxElement */: + case 218 /* FunctionExpression */: + case 231 /* ClassExpression */: + case 219 /* ArrowFunction */: + case 209 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: + case 221 /* TypeOfExpression */: + case 235 /* NonNullExpression */: + case 285 /* JsxSelfClosingElement */: + case 284 /* JsxElement */: return true; - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: return isSideEffectFree(node.whenTrue) && isSideEffectFree(node.whenFalse); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: if (isAssignmentOperator(node.operatorToken.kind)) { return false; } return isSideEffectFree(node.left) && isSideEffectFree(node.right); - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: switch (node.operator) { case 54 /* ExclamationToken */: case 40 /* PlusToken */: @@ -75596,9 +76100,9 @@ ${lanes.join("\n")} return true; } return false; - case 221 /* VoidExpression */: - case 215 /* TypeAssertionExpression */: - case 233 /* AsExpression */: + case 222 /* VoidExpression */: + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: default: return false; } @@ -75642,7 +76146,7 @@ ${lanes.join("\n")} } checkGrammarNullishCoalesceWithLogicalExpression(node); const operator = node.operatorToken.kind; - if (operator === 64 /* EqualsToken */ && (node.left.kind === 209 /* ObjectLiteralExpression */ || node.left.kind === 208 /* ArrayLiteralExpression */)) { + if (operator === 64 /* EqualsToken */ && (node.left.kind === 210 /* ObjectLiteralExpression */ || node.left.kind === 209 /* ArrayLiteralExpression */)) { state.skip = true; setLastResult(state, checkDestructuringAssignment(node.left, checkExpression(node.right, checkMode), checkMode, node.right.kind === 110 /* ThisKeyword */)); return state; @@ -75667,7 +76171,7 @@ ${lanes.join("\n")} const operator = operatorToken.kind; if (isLogicalOrCoalescingBinaryOperator(operator)) { let parent2 = node.parent; - while (parent2.kind === 216 /* ParenthesizedExpression */ || isLogicalOrCoalescingBinaryExpression(parent2)) { + while (parent2.kind === 217 /* ParenthesizedExpression */ || isLogicalOrCoalescingBinaryExpression(parent2)) { parent2 = parent2.parent; } if (operator === 56 /* AmpersandAmpersandToken */ || isIfStatement(parent2)) { @@ -75691,7 +76195,7 @@ ${lanes.join("\n")} Debug.assertIsDefined(leftType); const rightType = getLastResult(state); Debug.assertIsDefined(rightType); - result = checkBinaryLikeExpressionWorker(node.left, node.operatorToken, node.right, leftType, rightType, node); + result = checkBinaryLikeExpressionWorker(node.left, node.operatorToken, node.right, leftType, rightType, state.checkMode, node); } state.skip = false; setLeftType( @@ -75743,7 +76247,7 @@ ${lanes.join("\n")} } function checkBinaryLikeExpression(left, operatorToken, right, checkMode, errorNode) { const operator = operatorToken.kind; - if (operator === 64 /* EqualsToken */ && (left.kind === 209 /* ObjectLiteralExpression */ || left.kind === 208 /* ArrayLiteralExpression */)) { + if (operator === 64 /* EqualsToken */ && (left.kind === 210 /* ObjectLiteralExpression */ || left.kind === 209 /* ArrayLiteralExpression */)) { return checkDestructuringAssignment(left, checkExpression(right, checkMode), checkMode, right.kind === 110 /* ThisKeyword */); } let leftType; @@ -75753,9 +76257,9 @@ ${lanes.join("\n")} leftType = checkExpression(left, checkMode); } const rightType = checkExpression(right, checkMode); - return checkBinaryLikeExpressionWorker(left, operatorToken, right, leftType, rightType, errorNode); + return checkBinaryLikeExpressionWorker(left, operatorToken, right, leftType, rightType, checkMode, errorNode); } - function checkBinaryLikeExpressionWorker(left, operatorToken, right, leftType, rightType, errorNode) { + function checkBinaryLikeExpressionWorker(left, operatorToken, right, leftType, rightType, checkMode, errorNode) { const operator = operatorToken.kind; switch (operator) { case 42 /* AsteriskToken */: @@ -75787,7 +76291,7 @@ ${lanes.join("\n")} rightType = checkNonNullType(rightType, right); let suggestedOperator; if (leftType.flags & 528 /* BooleanLike */ && rightType.flags & 528 /* BooleanLike */ && (suggestedOperator = getSuggestedBooleanOperator(operatorToken.kind)) !== void 0) { - error(errorNode || operatorToken, Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead, tokenToString(operatorToken.kind), tokenToString(suggestedOperator)); + error2(errorNode || operatorToken, Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead, tokenToString(operatorToken.kind), tokenToString(suggestedOperator)); return numberType; } else { const leftOk = checkArithmeticOperandType( @@ -75817,7 +76321,7 @@ ${lanes.join("\n")} case 43 /* AsteriskAsteriskToken */: case 68 /* AsteriskAsteriskEqualsToken */: if (languageVersion < 3 /* ES2016 */) { - error(errorNode, Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later); + error2(errorNode, Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later); } } resultType2 = bigintType; @@ -75912,12 +76416,15 @@ ${lanes.join("\n")} case 36 /* ExclamationEqualsToken */: case 37 /* EqualsEqualsEqualsToken */: case 38 /* ExclamationEqualsEqualsToken */: - if (isLiteralExpressionOfObject(left) || isLiteralExpressionOfObject(right)) { - const eqType = operator === 35 /* EqualsEqualsToken */ || operator === 37 /* EqualsEqualsEqualsToken */; - error(errorNode, Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value, eqType ? "false" : "true"); + if (!(checkMode && checkMode & 128 /* TypeOnly */)) { + if ((isLiteralExpressionOfObject(left) || isLiteralExpressionOfObject(right)) && // only report for === and !== in JS, not == or != + (!isInJSFile(left) || (operator === 37 /* EqualsEqualsEqualsToken */ || operator === 38 /* ExclamationEqualsEqualsToken */))) { + const eqType = operator === 35 /* EqualsEqualsToken */ || operator === 37 /* EqualsEqualsEqualsToken */; + error2(errorNode, Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value, eqType ? "false" : "true"); + } + checkNaNEquality(errorNode, operator, left, right); + reportOperatorErrorUnless((left2, right2) => isTypeEqualityComparableTo(left2, right2) || isTypeEqualityComparableTo(right2, left2)); } - checkNaNEquality(errorNode, operator, left, right); - reportOperatorErrorUnless((left2, right2) => isTypeEqualityComparableTo(left2, right2) || isTypeEqualityComparableTo(right2, left2)); return booleanType; case 104 /* InstanceOfKeyword */: return checkInstanceOfExpression(left, right, leftType, rightType); @@ -75970,7 +76477,7 @@ ${lanes.join("\n")} return textSpanContainsPosition(diag2, start); }); if (!isInDiag2657) - error(left, Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects); + error2(left, Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects); } return rightType; default: @@ -76004,13 +76511,13 @@ ${lanes.join("\n")} } } function isIndirectCall(node) { - return node.parent.kind === 216 /* ParenthesizedExpression */ && isNumericLiteral(node.left) && node.left.text === "0" && (isCallExpression(node.parent.parent) && node.parent.parent.expression === node.parent || node.parent.parent.kind === 214 /* TaggedTemplateExpression */) && // special-case for "eval" because it's the only non-access case where an indirect call actually affects behavior. + return node.parent.kind === 217 /* ParenthesizedExpression */ && isNumericLiteral(node.left) && node.left.text === "0" && (isCallExpression(node.parent.parent) && node.parent.parent.expression === node.parent || node.parent.parent.kind === 215 /* TaggedTemplateExpression */) && // special-case for "eval" because it's the only non-access case where an indirect call actually affects behavior. (isAccessExpression(node.right) || isIdentifier(node.right) && node.right.escapedText === "eval"); } function checkForDisallowedESSymbolOperand(operator2) { const offendingSymbolOperand = maybeTypeOfKindConsideringBaseConstraint(leftType, 12288 /* ESSymbolLike */) ? left : maybeTypeOfKindConsideringBaseConstraint(rightType, 12288 /* ESSymbolLike */) ? right : void 0; if (offendingSymbolOperand) { - error(offendingSymbolOperand, Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol, tokenToString(operator2)); + error2(offendingSymbolOperand, Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol, tokenToString(operator2)); return false; } return true; @@ -76036,7 +76543,7 @@ ${lanes.join("\n")} } function checkAssignmentOperatorWorker() { let assigneeType = leftType; - if (isCompoundAssignment(operatorToken.kind) && left.kind === 210 /* PropertyAccessExpression */) { + if (isCompoundAssignment(operatorToken.kind) && left.kind === 211 /* PropertyAccessExpression */) { assigneeType = checkPropertyAccessExpression( left, /*checkMode*/ @@ -76131,7 +76638,7 @@ ${lanes.join("\n")} const isLeftNaN = isGlobalNaN(skipParentheses(left2)); const isRightNaN = isGlobalNaN(skipParentheses(right2)); if (isLeftNaN || isRightNaN) { - const err = error( + const err = error2( errorNode2, Diagnostics.This_condition_will_always_return_0, tokenToString(operator2 === 37 /* EqualsEqualsEqualsToken */ || operator2 === 35 /* EqualsEqualsToken */ ? 97 /* FalseKeyword */ : 112 /* TrueKeyword */) @@ -76212,23 +76719,23 @@ ${lanes.join("\n")} void 0 ); if (!contextualType || isTypeAny(contextualType)) { - error(node, Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation); + error2(node, Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation); } } }); } return type; function checkYieldExpressionGrammar() { - if (!(node.flags & 8192 /* YieldContext */)) { + if (!(node.flags & 16384 /* YieldContext */)) { grammarErrorOnFirstToken(node, Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body); } if (isInParameterInitializerBeforeContainingFunction(node)) { - error(node, Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer); + error2(node, Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer); } } } function checkConditionalExpression(node, checkMode) { - const type = checkTruthinessExpression(node.condition); + const type = checkTruthinessExpression(node.condition, checkMode); checkTestingKnownTruthyCallableOrAwaitableType(node.condition, type, node.whenTrue); const type1 = checkExpression(node.whenTrue, checkMode); const type2 = checkExpression(node.whenFalse, checkMode); @@ -76244,16 +76751,20 @@ ${lanes.join("\n")} for (const span of node.templateSpans) { const type = checkExpression(span.expression); if (maybeTypeOfKindConsideringBaseConstraint(type, 12288 /* ESSymbolLike */)) { - error(span.expression, Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String); + error2(span.expression, Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String); } texts.push(span.literal.text); types.push(isTypeAssignableTo(type, templateConstraintType) ? type : stringType); } - return isConstContext(node) || isTemplateLiteralContext(node) || someType(getContextualType2( + if (isConstContext(node) || isTemplateLiteralContext(node) || someType(getContextualType2( node, /*contextFlags*/ void 0 - ) || unknownType, isTemplateLiteralContextualType) ? getTemplateLiteralType(texts, types) : stringType; + ) || unknownType, isTemplateLiteralContextualType)) { + return getTemplateLiteralType(texts, types); + } + const evaluated = node.parent.kind !== 215 /* TaggedTemplateExpression */ && evaluateTemplateExpression(node); + return evaluated ? getFreshTypeOfLiteralType(getStringLiteralType(evaluated)) : stringType; } function isTemplateLiteralContextualType(type) { return !!(type.flags & (128 /* StringLiteral */ | 134217728 /* TemplateLiteral */) || type.flags & 58982400 /* InstantiableNonPrimitive */ && maybeTypeOfKind(getBaseConstraintOfType(type) || unknownType, 402653316 /* StringLike */)); @@ -76309,7 +76820,7 @@ ${lanes.join("\n")} /*excludeJSDocTypeAssertions*/ true ); - return node.kind === 215 /* TypeAssertionExpression */ || node.kind === 233 /* AsExpression */ || isJSDocTypeAssertion(node); + return node.kind === 216 /* TypeAssertionExpression */ || node.kind === 234 /* AsExpression */ || isJSDocTypeAssertion(node); } function checkDeclarationInitializer(declaration, checkMode, contextualType) { const initializer = getEffectiveInitializer(declaration); @@ -76326,7 +76837,7 @@ ${lanes.join("\n")} void 0, checkMode || 0 /* Normal */ ) : checkExpressionCached(initializer, checkMode)); - return isParameter(declaration) && declaration.name.kind === 206 /* ArrayBindingPattern */ && isTupleType(type) && !type.target.hasRestElement && getTypeReferenceArity(type) < declaration.name.elements.length ? padTupleType(type, declaration.name) : type; + return isParameter(declaration) && declaration.name.kind === 207 /* ArrayBindingPattern */ && isTupleType(type) && !type.target.hasRestElement && getTypeReferenceArity(type) < declaration.name.elements.length ? padTupleType(type, declaration.name) : type; } function padTupleType(type, pattern) { const patternElements = pattern.elements; @@ -76334,7 +76845,7 @@ ${lanes.join("\n")} const elementFlags = type.target.elementFlags.slice(); for (let i = getTypeReferenceArity(type); i < patternElements.length; i++) { const e = patternElements[i]; - if (i < patternElements.length - 1 || !(e.kind === 207 /* BindingElement */ && e.dotDotDotToken)) { + if (i < patternElements.length - 1 || !(e.kind === 208 /* BindingElement */ && e.dotDotDotToken)) { elementTypes.push(!isOmittedExpression(e) && hasDefaultValue(e) ? getTypeFromBindingElement( e, /*includePatternInType*/ @@ -76351,7 +76862,7 @@ ${lanes.join("\n")} return createTupleType(elementTypes, elementFlags, type.target.readonly); } function widenTypeInferredFromInitializer(declaration, type) { - const widened = getCombinedNodeFlags(declaration) & 2 /* Const */ || isDeclarationReadonly(declaration) ? type : getWidenedLiteralType(type); + const widened = getCombinedNodeFlagsCached(declaration) & 6 /* Constant */ || isDeclarationReadonly(declaration) ? type : getWidenedLiteralType(type); if (isInJSFile(declaration)) { if (isEmptyLiteralType(widened)) { reportImplicitAny(declaration, anyType); @@ -76395,14 +76906,14 @@ ${lanes.join("\n")} )); } function checkPropertyAssignment(node, checkMode) { - if (node.name.kind === 166 /* ComputedPropertyName */) { + if (node.name.kind === 167 /* ComputedPropertyName */) { checkComputedPropertyName(node.name); } return checkExpressionForMutableLocation(node.initializer, checkMode); } function checkObjectLiteralMethod(node, checkMode) { checkGrammarMethod(node); - if (node.name.kind === 166 /* ComputedPropertyName */) { + if (node.name.kind === 167 /* ComputedPropertyName */) { checkComputedPropertyName(node.name); } const uninstantiatedType = checkFunctionExpressionOrObjectLiteralMethod(node, checkMode); @@ -76558,18 +77069,18 @@ ${lanes.join("\n")} if (quickType) { return quickType; } - if (node.flags & 134217728 /* TypeCached */ && flowTypeCache) { + if (node.flags & 268435456 /* TypeCached */ && flowTypeCache) { const cachedType = flowTypeCache[getNodeId(node)]; if (cachedType) { return cachedType; } } const startInvocationCount = flowInvocationCount; - const type = checkExpression(node); + const type = checkExpression(node, 128 /* TypeOnly */); if (flowInvocationCount !== startInvocationCount) { const cache = flowTypeCache || (flowTypeCache = []); cache[getNodeId(node)] = type; - setNodeFlags(node, node.flags | 134217728 /* TypeCached */); + setNodeFlags(node, node.flags | 268435456 /* TypeCached */); } return type; } @@ -76634,15 +77145,15 @@ ${lanes.join("\n")} return type; } function checkConstEnumAccess(node, type) { - const ok = node.parent.kind === 210 /* PropertyAccessExpression */ && node.parent.expression === node || node.parent.kind === 211 /* ElementAccessExpression */ && node.parent.expression === node || ((node.kind === 80 /* Identifier */ || node.kind === 165 /* QualifiedName */) && isInRightSideOfImportOrExportAssignment(node) || node.parent.kind === 185 /* TypeQuery */ && node.parent.exprName === node) || node.parent.kind === 280 /* ExportSpecifier */; + const ok = node.parent.kind === 211 /* PropertyAccessExpression */ && node.parent.expression === node || node.parent.kind === 212 /* ElementAccessExpression */ && node.parent.expression === node || ((node.kind === 80 /* Identifier */ || node.kind === 166 /* QualifiedName */) && isInRightSideOfImportOrExportAssignment(node) || node.parent.kind === 186 /* TypeQuery */ && node.parent.exprName === node) || node.parent.kind === 281 /* ExportSpecifier */; if (!ok) { - error(node, Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query); + error2(node, Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query); } if (getIsolatedModules(compilerOptions)) { Debug.assert(!!(type.symbol.flags & 128 /* ConstEnum */)); const constEnumDeclaration = type.symbol.valueDeclaration; - if (constEnumDeclaration.flags & 16777216 /* Ambient */) { - error(node, Diagnostics.Cannot_access_ambient_const_enums_when_0_is_enabled, isolatedModulesLikeFlagName); + if (constEnumDeclaration.flags & 33554432 /* Ambient */ && !isValidTypeOnlyAliasUseSite(node)) { + error2(node, Diagnostics.Cannot_access_ambient_const_enums_when_0_is_enabled, isolatedModulesLikeFlagName); } } } @@ -76661,9 +77172,9 @@ ${lanes.join("\n")} const kind = node.kind; if (cancellationToken) { switch (kind) { - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: cancellationToken.throwIfCancellationRequested(); } } @@ -76680,7 +77191,7 @@ ${lanes.join("\n")} return nullWideningType; case 15 /* NoSubstitutionTemplateLiteral */: case 11 /* StringLiteral */: - return hasSkipDirectInferenceFlag(node) ? anyType : getFreshTypeOfLiteralType(getStringLiteralType(node.text)); + return hasSkipDirectInferenceFlag(node) ? wildcardType : getFreshTypeOfLiteralType(getStringLiteralType(node.text)); case 9 /* NumericLiteral */: checkGrammarNumericLiteral(node); return getFreshTypeOfLiteralType(getNumberLiteralType(+node.text)); @@ -76694,81 +77205,81 @@ ${lanes.join("\n")} return trueType; case 97 /* FalseKeyword */: return falseType; - case 227 /* TemplateExpression */: + case 228 /* TemplateExpression */: return checkTemplateExpression(node); case 14 /* RegularExpressionLiteral */: return globalRegExpType; - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return checkArrayLiteral(node, checkMode, forceTuple); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return checkObjectLiteral(node, checkMode); - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return checkPropertyAccessExpression(node, checkMode); - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: return checkQualifiedName(node, checkMode); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return checkIndexedAccess(node, checkMode); - case 212 /* CallExpression */: + case 213 /* CallExpression */: if (node.expression.kind === 102 /* ImportKeyword */) { return checkImportCallExpression(node); } - case 213 /* NewExpression */: + case 214 /* NewExpression */: return checkCallExpression(node, checkMode); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return checkTaggedTemplateExpression(node); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return checkParenthesizedExpression(node, checkMode); - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return checkClassExpression(node); - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return checkFunctionExpressionOrObjectLiteralMethod(node, checkMode); - case 220 /* TypeOfExpression */: + case 221 /* TypeOfExpression */: return checkTypeOfExpression(node); - case 215 /* TypeAssertionExpression */: - case 233 /* AsExpression */: + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: return checkAssertion(node, checkMode); - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: return checkNonNullAssertion(node); - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return checkExpressionWithTypeArguments(node); - case 237 /* SatisfiesExpression */: + case 238 /* SatisfiesExpression */: return checkSatisfiesExpression(node); - case 235 /* MetaProperty */: + case 236 /* MetaProperty */: return checkMetaProperty(node); - case 219 /* DeleteExpression */: + case 220 /* DeleteExpression */: return checkDeleteExpression(node); - case 221 /* VoidExpression */: + case 222 /* VoidExpression */: return checkVoidExpression(node); - case 222 /* AwaitExpression */: + case 223 /* AwaitExpression */: return checkAwaitExpression(node); - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: return checkPrefixUnaryExpression(node); - case 224 /* PostfixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return checkPostfixUnaryExpression(node); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return checkBinaryExpression(node, checkMode); - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: return checkConditionalExpression(node, checkMode); - case 229 /* SpreadElement */: + case 230 /* SpreadElement */: return checkSpreadExpression(node, checkMode); - case 231 /* OmittedExpression */: + case 232 /* OmittedExpression */: return undefinedWideningType; - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: return checkYieldExpression(node); - case 236 /* SyntheticExpression */: + case 237 /* SyntheticExpression */: return checkSyntheticExpression(node); - case 293 /* JsxExpression */: + case 294 /* JsxExpression */: return checkJsxExpression(node, checkMode); - case 283 /* JsxElement */: + case 284 /* JsxElement */: return checkJsxElement(node, checkMode); - case 284 /* JsxSelfClosingElement */: + case 285 /* JsxSelfClosingElement */: return checkJsxSelfClosingElement(node, checkMode); - case 287 /* JsxFragment */: + case 288 /* JsxFragment */: return checkJsxFragment(node); - case 291 /* JsxAttributes */: + case 292 /* JsxAttributes */: return checkJsxAttributes(node, checkMode); - case 285 /* JsxOpeningElement */: + case 286 /* JsxOpeningElement */: Debug.fail("Shouldn't ever directly check a JsxOpeningElement"); } return errorType; @@ -76783,7 +77294,7 @@ ${lanes.join("\n")} const typeParameter = getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(node)); getBaseConstraintOfType(typeParameter); if (!hasNonCircularTypeParameterDefault(typeParameter)) { - error(node.default, Diagnostics.Type_parameter_0_has_a_circular_default, typeToString(typeParameter)); + error2(node.default, Diagnostics.Type_parameter_0_has_a_circular_default, typeToString(typeParameter)); } const constraintType = getConstraintOfTypeParameter(typeParameter); const defaultType = getDefaultFromTypeParameter(typeParameter); @@ -76801,7 +77312,7 @@ ${lanes.join("\n")} if (modifiers) { const symbol = getSymbolOfDeclaration(node.parent); if (isTypeAliasDeclaration(node.parent) && !(getObjectFlags(getDeclaredTypeOfSymbol(symbol)) & (16 /* Anonymous */ | 32 /* Mapped */))) { - error(node, Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types); + error2(node, Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types); } else if (modifiers === 32768 /* In */ || modifiers === 65536 /* Out */) { (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.CheckTypes, "checkTypeParameterDeferred", { parent: getTypeId(getDeclaredTypeOfSymbol(symbol)), id: getTypeId(typeParameter) }); const source = createMarkerType(symbol, typeParameter, modifiers === 65536 /* Out */ ? markerSubTypeForCheck : markerSuperTypeForCheck); @@ -76820,38 +77331,38 @@ ${lanes.join("\n")} checkVariableLikeDeclaration(node); const func = getContainingFunction(node); if (hasSyntacticModifier(node, 16476 /* ParameterPropertyModifier */)) { - if (!(func.kind === 175 /* Constructor */ && nodeIsPresent(func.body))) { - error(node, Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation); + if (!(func.kind === 176 /* Constructor */ && nodeIsPresent(func.body))) { + error2(node, Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation); } - if (func.kind === 175 /* Constructor */ && isIdentifier(node.name) && node.name.escapedText === "constructor") { - error(node.name, Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name); + if (func.kind === 176 /* Constructor */ && isIdentifier(node.name) && node.name.escapedText === "constructor") { + error2(node.name, Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name); } } if (!node.initializer && isOptionalDeclaration(node) && isBindingPattern(node.name) && func.body) { - error(node, Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature); + error2(node, Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature); } if (node.name && isIdentifier(node.name) && (node.name.escapedText === "this" || node.name.escapedText === "new")) { if (func.parameters.indexOf(node) !== 0) { - error(node, Diagnostics.A_0_parameter_must_be_the_first_parameter, node.name.escapedText); + error2(node, Diagnostics.A_0_parameter_must_be_the_first_parameter, node.name.escapedText); } - if (func.kind === 175 /* Constructor */ || func.kind === 179 /* ConstructSignature */ || func.kind === 184 /* ConstructorType */) { - error(node, Diagnostics.A_constructor_cannot_have_a_this_parameter); + if (func.kind === 176 /* Constructor */ || func.kind === 180 /* ConstructSignature */ || func.kind === 185 /* ConstructorType */) { + error2(node, Diagnostics.A_constructor_cannot_have_a_this_parameter); } - if (func.kind === 218 /* ArrowFunction */) { - error(node, Diagnostics.An_arrow_function_cannot_have_a_this_parameter); + if (func.kind === 219 /* ArrowFunction */) { + error2(node, Diagnostics.An_arrow_function_cannot_have_a_this_parameter); } - if (func.kind === 176 /* GetAccessor */ || func.kind === 177 /* SetAccessor */) { - error(node, Diagnostics.get_and_set_accessors_cannot_declare_this_parameters); + if (func.kind === 177 /* GetAccessor */ || func.kind === 178 /* SetAccessor */) { + error2(node, Diagnostics.get_and_set_accessors_cannot_declare_this_parameters); } } if (node.dotDotDotToken && !isBindingPattern(node.name) && !isTypeAssignableTo(getReducedType(getTypeOfSymbol(node.symbol)), anyReadonlyArrayType)) { - error(node, Diagnostics.A_rest_parameter_must_be_of_an_array_type); + error2(node, Diagnostics.A_rest_parameter_must_be_of_an_array_type); } } function checkTypePredicate(node) { const parent2 = getTypePredicateParent(node); if (!parent2) { - error(node, Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods); + error2(node, Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods); return; } const signature = getSignatureFromDeclaration(parent2); @@ -76866,7 +77377,7 @@ ${lanes.join("\n")} } else { if (typePredicate.parameterIndex >= 0) { if (signatureHasRestParameter(signature) && typePredicate.parameterIndex === signature.parameters.length - 1) { - error(parameterName, Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter); + error2(parameterName, Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter); } else { if (typePredicate.type) { const leadingError = () => chainDiagnosticMessages( @@ -76893,20 +77404,20 @@ ${lanes.join("\n")} } } if (!hasReportedError) { - error(node.parameterName, Diagnostics.Cannot_find_parameter_0, typePredicate.parameterName); + error2(node.parameterName, Diagnostics.Cannot_find_parameter_0, typePredicate.parameterName); } } } } function getTypePredicateParent(node) { switch (node.parent.kind) { - case 218 /* ArrowFunction */: - case 178 /* CallSignature */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 183 /* FunctionType */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 219 /* ArrowFunction */: + case 179 /* CallSignature */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 184 /* FunctionType */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: const parent2 = node.parent; if (node === parent2.type) { return parent2; @@ -76920,13 +77431,13 @@ ${lanes.join("\n")} } const name = element.name; if (name.kind === 80 /* Identifier */ && name.escapedText === predicateVariableName) { - error( + error2( predicateVariableNode, Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern, predicateVariableName ); return true; - } else if (name.kind === 206 /* ArrayBindingPattern */ || name.kind === 205 /* ObjectBindingPattern */) { + } else if (name.kind === 207 /* ArrayBindingPattern */ || name.kind === 206 /* ObjectBindingPattern */) { if (checkIfTypePredicateVariableIsDeclaredInBindingPattern( name, predicateVariableNode, @@ -76938,9 +77449,9 @@ ${lanes.join("\n")} } } function checkSignatureDeclaration(node) { - if (node.kind === 180 /* IndexSignature */) { + if (node.kind === 181 /* IndexSignature */) { checkGrammarIndexSignature(node); - } else if (node.kind === 183 /* FunctionType */ || node.kind === 261 /* FunctionDeclaration */ || node.kind === 184 /* ConstructorType */ || node.kind === 178 /* CallSignature */ || node.kind === 175 /* Constructor */ || node.kind === 179 /* ConstructSignature */) { + } else if (node.kind === 184 /* FunctionType */ || node.kind === 262 /* FunctionDeclaration */ || node.kind === 185 /* ConstructorType */ || node.kind === 179 /* CallSignature */ || node.kind === 176 /* Constructor */ || node.kind === 180 /* ConstructSignature */) { checkGrammarFunctionLikeDeclaration(node); } const functionFlags = getFunctionFlags(node); @@ -76964,35 +77475,46 @@ ${lanes.join("\n")} addLazyDiagnostic(checkSignatureDeclarationDiagnostics); function checkSignatureDeclarationDiagnostics() { checkCollisionWithArgumentsInGeneratedCode(node); - const returnTypeNode = getEffectiveReturnTypeNode(node); + let returnTypeNode = getEffectiveReturnTypeNode(node); + let returnTypeErrorLocation = returnTypeNode; + if (isInJSFile(node)) { + const typeTag = getJSDocTypeTag(node); + if (typeTag && typeTag.typeExpression && isTypeReferenceNode(typeTag.typeExpression.type)) { + const signature = getSingleCallSignature(getTypeFromTypeNode(typeTag.typeExpression)); + if (signature && signature.declaration) { + returnTypeNode = getEffectiveReturnTypeNode(signature.declaration); + returnTypeErrorLocation = typeTag.typeExpression.type; + } + } + } if (noImplicitAny && !returnTypeNode) { switch (node.kind) { - case 179 /* ConstructSignature */: - error(node, Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type); + case 180 /* ConstructSignature */: + error2(node, Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type); break; - case 178 /* CallSignature */: - error(node, Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type); + case 179 /* CallSignature */: + error2(node, Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type); break; } } - if (returnTypeNode) { + if (returnTypeNode && returnTypeErrorLocation) { const functionFlags2 = getFunctionFlags(node); if ((functionFlags2 & (4 /* Invalid */ | 1 /* Generator */)) === 1 /* Generator */) { const returnType = getTypeFromTypeNode(returnTypeNode); if (returnType === voidType) { - error(returnTypeNode, Diagnostics.A_generator_cannot_have_a_void_type_annotation); + error2(returnTypeErrorLocation, Diagnostics.A_generator_cannot_have_a_void_type_annotation); } else { const generatorYieldType = getIterationTypeOfGeneratorFunctionReturnType(0 /* Yield */, returnType, (functionFlags2 & 2 /* Async */) !== 0) || anyType; const generatorReturnType = getIterationTypeOfGeneratorFunctionReturnType(1 /* Return */, returnType, (functionFlags2 & 2 /* Async */) !== 0) || generatorYieldType; const generatorNextType = getIterationTypeOfGeneratorFunctionReturnType(2 /* Next */, returnType, (functionFlags2 & 2 /* Async */) !== 0) || unknownType; const generatorInstantiation = createGeneratorReturnType(generatorYieldType, generatorReturnType, generatorNextType, !!(functionFlags2 & 2 /* Async */)); - checkTypeAssignableTo(generatorInstantiation, returnType, returnTypeNode); + checkTypeAssignableTo(generatorInstantiation, returnType, returnTypeErrorLocation); } } else if ((functionFlags2 & 3 /* AsyncGenerator */) === 2 /* Async */) { - checkAsyncFunctionReturnType(node, returnTypeNode); + checkAsyncFunctionReturnType(node, returnTypeNode, returnTypeErrorLocation); } } - if (node.kind !== 180 /* IndexSignature */ && node.kind !== 323 /* JSDocFunctionType */) { + if (node.kind !== 181 /* IndexSignature */ && node.kind !== 324 /* JSDocFunctionType */) { registerForUnusedIdentifiersCheck(node); } } @@ -77002,7 +77524,7 @@ ${lanes.join("\n")} const staticNames = /* @__PURE__ */ new Map(); const privateIdentifiers = /* @__PURE__ */ new Map(); for (const member of node.members) { - if (member.kind === 175 /* Constructor */) { + if (member.kind === 176 /* Constructor */) { for (const param of member.parameters) { if (isParameterPropertyDeclaration(param, member) && !isBindingPattern(param.name)) { addName(instanceNames, param.name, param.name.escapedText, 3 /* GetOrSetAccessor */); @@ -77020,16 +77542,16 @@ ${lanes.join("\n")} const memberName = name && getPropertyNameForPropertyNameNode(name); if (memberName) { switch (member.kind) { - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: addName(names, name, memberName, 1 /* GetAccessor */ | privateStaticFlags); break; - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: addName(names, name, memberName, 2 /* SetAccessor */ | privateStaticFlags); break; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: addName(names, name, memberName, 3 /* GetOrSetAccessor */ | privateStaticFlags); break; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: addName(names, name, memberName, 8 /* Method */ | privateStaticFlags); break; } @@ -77040,16 +77562,16 @@ ${lanes.join("\n")} const prev = names.get(name); if (prev) { if ((prev & 16 /* PrivateStatic */) !== (meaning & 16 /* PrivateStatic */)) { - error(location, Diagnostics.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name, getTextOfNode(location)); + error2(location, Diagnostics.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name, getTextOfNode(location)); } else { const prevIsMethod = !!(prev & 8 /* Method */); const isMethod = !!(meaning & 8 /* Method */); if (prevIsMethod || isMethod) { if (prevIsMethod !== isMethod) { - error(location, Diagnostics.Duplicate_identifier_0, getTextOfNode(location)); + error2(location, Diagnostics.Duplicate_identifier_0, getTextOfNode(location)); } } else if (prev & meaning & ~16 /* PrivateStatic */) { - error(location, Diagnostics.Duplicate_identifier_0, getTextOfNode(location)); + error2(location, Diagnostics.Duplicate_identifier_0, getTextOfNode(location)); } else { names.set(name, prev | meaning); } @@ -77070,10 +77592,13 @@ ${lanes.join("\n")} case "length": case "caller": case "arguments": + if (useDefineForClassFields) { + break; + } case "prototype": const message = Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1; const className = getNameOfSymbolAsWritten(getSymbolOfDeclaration(node)); - error(memberNameNode, message, memberName, className); + error2(memberNameNode, message, memberName, className); break; } } @@ -77082,7 +77607,7 @@ ${lanes.join("\n")} function checkObjectTypeForDuplicateDeclarations(node) { const names = /* @__PURE__ */ new Map(); for (const member of node.members) { - if (member.kind === 170 /* PropertySignature */) { + if (member.kind === 171 /* PropertySignature */) { let memberName; const name = member.name; switch (name.kind) { @@ -77097,8 +77622,8 @@ ${lanes.join("\n")} continue; } if (names.get(memberName)) { - error(getNameOfDeclaration(member.symbol.valueDeclaration), Diagnostics.Duplicate_identifier_0, memberName); - error(member.name, Diagnostics.Duplicate_identifier_0, memberName); + error2(getNameOfDeclaration(member.symbol.valueDeclaration), Diagnostics.Duplicate_identifier_0, memberName); + error2(member.name, Diagnostics.Duplicate_identifier_0, memberName); } else { names.set(memberName, true); } @@ -77106,7 +77631,7 @@ ${lanes.join("\n")} } } function checkTypeForDuplicateIndexSignatures(node) { - if (node.kind === 263 /* InterfaceDeclaration */) { + if (node.kind === 264 /* InterfaceDeclaration */) { const nodeSymbol = getSymbolOfDeclaration(node); if (nodeSymbol.declarations && nodeSymbol.declarations.length > 0 && nodeSymbol.declarations[0] !== node) { return; @@ -77130,7 +77655,7 @@ ${lanes.join("\n")} indexSignatureMap.forEach((entry) => { if (entry.declarations.length > 1) { for (const declaration of entry.declarations) { - error(declaration, Diagnostics.Duplicate_index_signature_for_type_0, typeToString(entry.type)); + error2(declaration, Diagnostics.Duplicate_index_signature_for_type_0, typeToString(entry.type)); } } }); @@ -77141,13 +77666,13 @@ ${lanes.join("\n")} checkGrammarComputedPropertyName(node.name); checkVariableLikeDeclaration(node); setNodeLinksForPrivateIdentifierScope(node); - if (hasSyntacticModifier(node, 256 /* Abstract */) && node.kind === 171 /* PropertyDeclaration */ && node.initializer) { - error(node, Diagnostics.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract, declarationNameToString(node.name)); + if (hasSyntacticModifier(node, 256 /* Abstract */) && node.kind === 172 /* PropertyDeclaration */ && node.initializer) { + error2(node, Diagnostics.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract, declarationNameToString(node.name)); } } function checkPropertySignature(node) { if (isPrivateIdentifier(node.name)) { - error(node, Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies); + error2(node, Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies); } return checkPropertyDeclaration(node); } @@ -77155,21 +77680,21 @@ ${lanes.join("\n")} if (!checkGrammarMethod(node)) checkGrammarComputedPropertyName(node.name); if (isMethodDeclaration(node) && node.asteriskToken && isIdentifier(node.name) && idText(node.name) === "constructor") { - error(node.name, Diagnostics.Class_constructor_may_not_be_a_generator); + error2(node.name, Diagnostics.Class_constructor_may_not_be_a_generator); } checkFunctionOrMethodDeclaration(node); - if (hasSyntacticModifier(node, 256 /* Abstract */) && node.kind === 173 /* MethodDeclaration */ && node.body) { - error(node, Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract, declarationNameToString(node.name)); + if (hasSyntacticModifier(node, 256 /* Abstract */) && node.kind === 174 /* MethodDeclaration */ && node.body) { + error2(node, Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract, declarationNameToString(node.name)); } if (isPrivateIdentifier(node.name) && !getContainingClass(node)) { - error(node, Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies); + error2(node, Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies); } setNodeLinksForPrivateIdentifierScope(node); } function setNodeLinksForPrivateIdentifierScope(node) { if (isPrivateIdentifier(node.name) && languageVersion < 99 /* ESNext */) { for (let lexicalScope = getEnclosingBlockScopeContainer(node); !!lexicalScope; lexicalScope = getEnclosingBlockScopeContainer(lexicalScope)) { - getNodeLinks(lexicalScope).flags |= 4194304 /* ContainsClassWithPrivateIdentifiers */; + getNodeLinks(lexicalScope).flags |= 1048576 /* ContainsClassWithPrivateIdentifiers */; } if (isClassExpression(node.parent)) { const enclosingIterationStatement = getEnclosingIterationStatement(node.parent); @@ -77203,7 +77728,7 @@ ${lanes.join("\n")} if (isPrivateIdentifierClassElementDeclaration(n)) { return true; } - return n.kind === 171 /* PropertyDeclaration */ && !isStatic(n) && !!n.initializer; + return n.kind === 172 /* PropertyDeclaration */ && !isStatic(n) && !!n.initializer; } function checkConstructorDeclarationDiagnostics() { const containingClassDecl = node.parent; @@ -77213,12 +77738,12 @@ ${lanes.join("\n")} const superCall = findFirstSuperCall(node.body); if (superCall) { if (classExtendsNull) { - error(superCall, Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null); + error2(superCall, Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null); } - const superCallShouldBeRootLevel = (getEmitScriptTarget(compilerOptions) !== 99 /* ESNext */ || !useDefineForClassFields) && (some(node.parent.members, isInstancePropertyWithInitializerOrPrivateIdentifierProperty) || some(node.parameters, (p) => hasSyntacticModifier(p, 16476 /* ParameterPropertyModifier */))); + const superCallShouldBeRootLevel = !emitStandardClassFields && (some(node.parent.members, isInstancePropertyWithInitializerOrPrivateIdentifierProperty) || some(node.parameters, (p) => hasSyntacticModifier(p, 16476 /* ParameterPropertyModifier */))); if (superCallShouldBeRootLevel) { if (!superCallIsRootLevelInConstructor(superCall, node.body)) { - error(superCall, Diagnostics.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers); + error2(superCall, Diagnostics.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers); } else { let superCallStatement; for (const statement of node.body.statements) { @@ -77231,12 +77756,12 @@ ${lanes.join("\n")} } } if (superCallStatement === void 0) { - error(node, Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers); + error2(node, Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers); } } } } else if (!classExtendsNull) { - error(node, Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call); + error2(node, Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call); } } } @@ -77256,7 +77781,7 @@ ${lanes.join("\n")} } function checkAccessorDeclaration(node) { if (isIdentifier(node.name) && idText(node.name) === "constructor" && isClassLike(node.parent)) { - error(node.name, Diagnostics.Class_constructor_may_not_be_an_accessor); + error2(node.name, Diagnostics.Class_constructor_may_not_be_an_accessor); } addLazyDiagnostic(checkAccessorDeclarationDiagnostics); checkSourceElement(node.body); @@ -77266,36 +77791,36 @@ ${lanes.join("\n")} checkGrammarComputedPropertyName(node.name); checkDecorators(node); checkSignatureDeclaration(node); - if (node.kind === 176 /* GetAccessor */) { - if (!(node.flags & 16777216 /* Ambient */) && nodeIsPresent(node.body) && node.flags & 256 /* HasImplicitReturn */) { - if (!(node.flags & 512 /* HasExplicitReturn */)) { - error(node.name, Diagnostics.A_get_accessor_must_return_a_value); + if (node.kind === 177 /* GetAccessor */) { + if (!(node.flags & 33554432 /* Ambient */) && nodeIsPresent(node.body) && node.flags & 512 /* HasImplicitReturn */) { + if (!(node.flags & 1024 /* HasExplicitReturn */)) { + error2(node.name, Diagnostics.A_get_accessor_must_return_a_value); } } } - if (node.name.kind === 166 /* ComputedPropertyName */) { + if (node.name.kind === 167 /* ComputedPropertyName */) { checkComputedPropertyName(node.name); } if (hasBindableName(node)) { const symbol = getSymbolOfDeclaration(node); - const getter = getDeclarationOfKind(symbol, 176 /* GetAccessor */); - const setter = getDeclarationOfKind(symbol, 177 /* SetAccessor */); + const getter = getDeclarationOfKind(symbol, 177 /* GetAccessor */); + const setter = getDeclarationOfKind(symbol, 178 /* SetAccessor */); if (getter && setter && !(getNodeCheckFlags(getter) & 1 /* TypeChecked */)) { getNodeLinks(getter).flags |= 1 /* TypeChecked */; const getterFlags = getEffectiveModifierFlags(getter); const setterFlags = getEffectiveModifierFlags(setter); if ((getterFlags & 256 /* Abstract */) !== (setterFlags & 256 /* Abstract */)) { - error(getter.name, Diagnostics.Accessors_must_both_be_abstract_or_non_abstract); - error(setter.name, Diagnostics.Accessors_must_both_be_abstract_or_non_abstract); + error2(getter.name, Diagnostics.Accessors_must_both_be_abstract_or_non_abstract); + error2(setter.name, Diagnostics.Accessors_must_both_be_abstract_or_non_abstract); } if (getterFlags & 16 /* Protected */ && !(setterFlags & (16 /* Protected */ | 8 /* Private */)) || getterFlags & 8 /* Private */ && !(setterFlags & 8 /* Private */)) { - error(getter.name, Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter); - error(setter.name, Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter); + error2(getter.name, Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter); + error2(setter.name, Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter); } } } const returnType = getTypeOfAccessors(getSymbolOfDeclaration(node)); - if (node.kind === 176 /* GetAccessor */) { + if (node.kind === 177 /* GetAccessor */) { checkAllCodePathsInNonVoidFunctionReturnOrThrow(node, returnType); } } @@ -77356,7 +77881,7 @@ ${lanes.join("\n")} } function checkTypeReferenceNode(node) { checkGrammarTypeArguments(node, node.typeArguments); - if (node.kind === 182 /* TypeReference */ && !isInJSFile(node) && !isInJSDoc(node) && node.typeArguments && node.typeName.end !== node.typeArguments.pos) { + if (node.kind === 183 /* TypeReference */ && !isInJSFile(node) && !isInJSDoc(node) && node.typeArguments && node.typeName.end !== node.typeArguments.pos) { const sourceFile = getSourceFileOfNode(node); if (scanTokenAtPosition(sourceFile, node.typeName.end) === 25 /* DotToken */) { grammarErrorAtPos(node, skipTrivia(sourceFile.text, node.typeName.end), 1, Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments); @@ -77378,7 +77903,7 @@ ${lanes.join("\n")} } const symbol = getNodeLinks(node).resolvedSymbol; if (symbol) { - if (some(symbol.declarations, (d) => isTypeDeclaration(d) && !!(d.flags & 268435456 /* Deprecated */))) { + if (some(symbol.declarations, (d) => isTypeDeclaration(d) && !!(d.flags & 536870912 /* Deprecated */))) { addDeprecatedSuggestion( getDeprecatedSuggestionNode(node), symbol.declarations, @@ -77418,17 +77943,12 @@ ${lanes.join("\n")} const elementTypes = node.elements; let seenOptionalElement = false; let seenRestElement = false; - const hasNamedElement = some(elementTypes, isNamedTupleMember); for (const e of elementTypes) { - if (e.kind !== 201 /* NamedTupleMember */ && hasNamedElement) { - grammarErrorOnNode(e, Diagnostics.Tuple_members_must_all_have_names_or_all_not_have_names); - break; - } const flags = getTupleElementFlags(e); if (flags & 8 /* Variadic */) { const type = getTypeFromTypeNode(e.type); if (!isArrayLikeType(type)) { - error(e, Diagnostics.A_rest_element_type_must_be_an_array_type); + error2(e, Diagnostics.A_rest_element_type_must_be_an_array_type); break; } if (isArrayType(type) || isTupleType(type) && type.target.combinedFlags & 4 /* Rest */) { @@ -77465,8 +77985,8 @@ ${lanes.join("\n")} const objectType = type.objectType; const indexType = type.indexType; if (isTypeAssignableTo(indexType, getIndexType(objectType, 0 /* None */))) { - if (accessNode.kind === 211 /* ElementAccessExpression */ && isAssignmentTarget(accessNode) && getObjectFlags(objectType) & 32 /* Mapped */ && getMappedTypeModifiers(objectType) & 1 /* IncludeReadonly */) { - error(accessNode, Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(objectType)); + if (accessNode.kind === 212 /* ElementAccessExpression */ && isAssignmentTarget(accessNode) && getObjectFlags(objectType) & 32 /* Mapped */ && getMappedTypeModifiers(objectType) & 1 /* IncludeReadonly */) { + error2(accessNode, Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(objectType)); } return type; } @@ -77479,12 +77999,12 @@ ${lanes.join("\n")} if (propertyName) { const propertySymbol = forEachType(apparentObjectType, (t) => getPropertyOfType(t, propertyName)); if (propertySymbol && getDeclarationModifierFlagsFromSymbol(propertySymbol) & 24 /* NonPublicAccessibilityModifier */) { - error(accessNode, Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter, unescapeLeadingUnderscores(propertyName)); + error2(accessNode, Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter, unescapeLeadingUnderscores(propertyName)); return errorType; } } } - error(accessNode, Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), typeToString(objectType)); + error2(accessNode, Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), typeToString(objectType)); return errorType; } function checkIndexedAccessType(node) { @@ -77526,7 +78046,7 @@ ${lanes.join("\n")} forEachChild(node, checkSourceElement); } function checkInferType(node) { - if (!findAncestor(node, (n) => n.parent && n.parent.kind === 193 /* ConditionalType */ && n.parent.extendsType === n)) { + if (!findAncestor(node, (n) => n.parent && n.parent.kind === 194 /* ConditionalType */ && n.parent.extendsType === n)) { grammarErrorOnNode(node, Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type); } checkSourceElement(node.typeParameter); @@ -77536,11 +78056,11 @@ ${lanes.join("\n")} if (!links.typeParametersChecked) { links.typeParametersChecked = true; const typeParameter = getDeclaredTypeOfTypeParameter(symbol); - const declarations = getDeclarationsOfKind(symbol, 167 /* TypeParameter */); + const declarations = getDeclarationsOfKind(symbol, 168 /* TypeParameter */); if (!areTypeParametersIdentical(declarations, [typeParameter], (decl) => [decl])) { const name = symbolToString(symbol); for (const declaration of declarations) { - error(declaration.name, Diagnostics.All_declarations_of_0_must_have_identical_constraints, name); + error2(declaration.name, Diagnostics.All_declarations_of_0_must_have_identical_constraints, name); } } } @@ -77574,22 +78094,23 @@ ${lanes.join("\n")} if (node.dotDotDotToken && node.questionToken) { grammarErrorOnNode(node, Diagnostics.A_tuple_member_cannot_be_both_optional_and_rest); } - if (node.type.kind === 189 /* OptionalType */) { + if (node.type.kind === 190 /* OptionalType */) { grammarErrorOnNode(node.type, Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type); } - if (node.type.kind === 190 /* RestType */) { + if (node.type.kind === 191 /* RestType */) { grammarErrorOnNode(node.type, Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type); } checkSourceElement(node.type); getTypeFromTypeNode(node); } function isPrivateWithinAmbient(node) { - return (hasEffectiveModifier(node, 8 /* Private */) || isPrivateIdentifierClassElementDeclaration(node)) && !!(node.flags & 16777216 /* Ambient */); + return (hasEffectiveModifier(node, 8 /* Private */) || isPrivateIdentifierClassElementDeclaration(node)) && !!(node.flags & 33554432 /* Ambient */); } function getEffectiveDeclarationFlags(n, flagsToCheck) { - let flags = getCombinedModifierFlags(n); - if (n.parent.kind !== 263 /* InterfaceDeclaration */ && n.parent.kind !== 262 /* ClassDeclaration */ && n.parent.kind !== 230 /* ClassExpression */ && n.flags & 16777216 /* Ambient */) { - if (!(flags & 2 /* Ambient */) && !(isModuleBlock(n.parent) && isModuleDeclaration(n.parent.parent) && isGlobalScopeAugmentation(n.parent.parent))) { + let flags = getCombinedModifierFlagsCached(n); + if (n.parent.kind !== 264 /* InterfaceDeclaration */ && n.parent.kind !== 263 /* ClassDeclaration */ && n.parent.kind !== 231 /* ClassExpression */ && n.flags & 33554432 /* Ambient */) { + const container = getEnclosingContainer(n); + if (container && container.flags & 128 /* ExportContext */ && !(flags & 2 /* Ambient */) && !(isModuleBlock(n.parent) && isModuleDeclaration(n.parent.parent) && isGlobalScopeAugmentation(n.parent.parent))) { flags |= 1 /* Export */; } flags |= 2 /* Ambient */; @@ -77611,13 +78132,13 @@ ${lanes.join("\n")} forEach(overloads, (o) => { const deviation = getEffectiveDeclarationFlags(o, flagsToCheck2) ^ canonicalFlags; if (deviation & 1 /* Export */) { - error(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported); + error2(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported); } else if (deviation & 2 /* Ambient */) { - error(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient); + error2(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient); } else if (deviation & (8 /* Private */ | 16 /* Protected */)) { - error(getNameOfDeclaration(o) || o, Diagnostics.Overload_signatures_must_all_be_public_private_or_protected); + error2(getNameOfDeclaration(o) || o, Diagnostics.Overload_signatures_must_all_be_public_private_or_protected); } else if (deviation & 256 /* Abstract */) { - error(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract); + error2(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract); } }); } @@ -77628,7 +78149,7 @@ ${lanes.join("\n")} forEach(overloads, (o) => { const deviation = hasQuestionToken(o) !== canonicalHasQuestionToken; if (deviation) { - error(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_optional_or_required); + error2(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_optional_or_required); } }); } @@ -77664,27 +78185,27 @@ ${lanes.join("\n")} (isPrivateIdentifier(node.name) && isPrivateIdentifier(subsequentName) && node.name.escapedText === subsequentName.escapedText || // Both are computed property names isComputedPropertyName(node.name) && isComputedPropertyName(subsequentName) && isTypeIdenticalTo(checkComputedPropertyName(node.name), checkComputedPropertyName(subsequentName)) || // Both are literal property names that are the same. isPropertyNameLiteral(node.name) && isPropertyNameLiteral(subsequentName) && getEscapedTextOfIdentifierOrLiteral(node.name) === getEscapedTextOfIdentifierOrLiteral(subsequentName))) { - const reportError = (node.kind === 173 /* MethodDeclaration */ || node.kind === 172 /* MethodSignature */) && isStatic(node) !== isStatic(subsequentNode); + const reportError = (node.kind === 174 /* MethodDeclaration */ || node.kind === 173 /* MethodSignature */) && isStatic(node) !== isStatic(subsequentNode); if (reportError) { const diagnostic = isStatic(node) ? Diagnostics.Function_overload_must_be_static : Diagnostics.Function_overload_must_not_be_static; - error(errorNode2, diagnostic); + error2(errorNode2, diagnostic); } return; } if (nodeIsPresent(subsequentNode.body)) { - error(errorNode2, Diagnostics.Function_implementation_name_must_be_0, declarationNameToString(node.name)); + error2(errorNode2, Diagnostics.Function_implementation_name_must_be_0, declarationNameToString(node.name)); return; } } } const errorNode = node.name || node; if (isConstructor) { - error(errorNode, Diagnostics.Constructor_implementation_is_missing); + error2(errorNode, Diagnostics.Constructor_implementation_is_missing); } else { if (hasSyntacticModifier(node, 256 /* Abstract */)) { - error(errorNode, Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive); + error2(errorNode, Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive); } else { - error(errorNode, Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration); + error2(errorNode, Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration); } } } @@ -77695,15 +78216,15 @@ ${lanes.join("\n")} if (declarations) { for (const current of declarations) { const node = current; - const inAmbientContext = node.flags & 16777216 /* Ambient */; - const inAmbientContextOrInterface = node.parent && (node.parent.kind === 263 /* InterfaceDeclaration */ || node.parent.kind === 186 /* TypeLiteral */) || inAmbientContext; + const inAmbientContext = node.flags & 33554432 /* Ambient */; + const inAmbientContextOrInterface = node.parent && (node.parent.kind === 264 /* InterfaceDeclaration */ || node.parent.kind === 187 /* TypeLiteral */) || inAmbientContext; if (inAmbientContextOrInterface) { previousDeclaration = void 0; } - if ((node.kind === 262 /* ClassDeclaration */ || node.kind === 230 /* ClassExpression */) && !inAmbientContext) { + if ((node.kind === 263 /* ClassDeclaration */ || node.kind === 231 /* ClassExpression */) && !inAmbientContext) { hasNonAmbientClass = true; } - if (node.kind === 261 /* FunctionDeclaration */ || node.kind === 173 /* MethodDeclaration */ || node.kind === 172 /* MethodSignature */ || node.kind === 175 /* Constructor */) { + if (node.kind === 262 /* FunctionDeclaration */ || node.kind === 174 /* MethodDeclaration */ || node.kind === 173 /* MethodSignature */ || node.kind === 176 /* Constructor */) { functionDeclarations.push(node); const currentNodeFlags = getEffectiveDeclarationFlags(node, flagsToCheck); someNodeFlags |= currentNodeFlags; @@ -77747,21 +78268,21 @@ ${lanes.join("\n")} } if (multipleConstructorImplementation) { forEach(functionDeclarations, (declaration) => { - error(declaration, Diagnostics.Multiple_constructor_implementations_are_not_allowed); + error2(declaration, Diagnostics.Multiple_constructor_implementations_are_not_allowed); }); } if (duplicateFunctionDeclaration) { forEach(functionDeclarations, (declaration) => { - error(getNameOfDeclaration(declaration) || declaration, Diagnostics.Duplicate_function_implementation); + error2(getNameOfDeclaration(declaration) || declaration, Diagnostics.Duplicate_function_implementation); }); } if (hasNonAmbientClass && !isConstructor && symbol.flags & 16 /* Function */ && declarations) { - const relatedDiagnostics = filter(declarations, (d) => d.kind === 262 /* ClassDeclaration */).map((d) => createDiagnosticForNode(d, Diagnostics.Consider_adding_a_declare_modifier_to_this_class)); + const relatedDiagnostics = filter(declarations, (d) => d.kind === 263 /* ClassDeclaration */).map((d) => createDiagnosticForNode(d, Diagnostics.Consider_adding_a_declare_modifier_to_this_class)); forEach(declarations, (declaration) => { - const diagnostic = declaration.kind === 262 /* ClassDeclaration */ ? Diagnostics.Class_declaration_cannot_implement_overload_list_for_0 : declaration.kind === 261 /* FunctionDeclaration */ ? Diagnostics.Function_with_bodies_can_only_merge_with_classes_that_are_ambient : void 0; + const diagnostic = declaration.kind === 263 /* ClassDeclaration */ ? Diagnostics.Class_declaration_cannot_implement_overload_list_for_0 : declaration.kind === 262 /* FunctionDeclaration */ ? Diagnostics.Function_with_bodies_can_only_merge_with_classes_that_are_ambient : void 0; if (diagnostic) { addRelatedInfo( - error(getNameOfDeclaration(declaration) || declaration, diagnostic, symbolName(symbol)), + error2(getNameOfDeclaration(declaration) || declaration, diagnostic, symbolName(symbol)), ...relatedDiagnostics ); } @@ -77782,7 +78303,7 @@ ${lanes.join("\n")} if (!isImplementationCompatibleWithOverload(bodySignature, signature)) { const errorNode = signature.declaration && isJSDocSignature(signature.declaration) ? signature.declaration.parent.tagName : signature.declaration; addRelatedInfo( - error(errorNode, Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature), + error2(errorNode, Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature), createDiagnosticForNode(bodyDeclaration, Diagnostics.The_implementation_signature_is_declared_here) ); break; @@ -77829,54 +78350,54 @@ ${lanes.join("\n")} const declarationSpaces = getDeclarationSpaces(d); const name = getNameOfDeclaration(d); if (declarationSpaces & commonDeclarationSpacesForDefaultAndNonDefault) { - error(name, Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead, declarationNameToString(name)); + error2(name, Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead, declarationNameToString(name)); } else if (declarationSpaces & commonDeclarationSpacesForExportsAndLocals) { - error(name, Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local, declarationNameToString(name)); + error2(name, Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local, declarationNameToString(name)); } } } function getDeclarationSpaces(decl) { let d = decl; switch (d.kind) { - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 352 /* JSDocTypedefTag */: - case 344 /* JSDocCallbackTag */: - case 346 /* JSDocEnumTag */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 353 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: + case 347 /* JSDocEnumTag */: return 2 /* ExportType */; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return isAmbientModule(d) || getModuleInstanceState(d) !== 0 /* NonInstantiated */ ? 4 /* ExportNamespace */ | 1 /* ExportValue */ : 4 /* ExportNamespace */; - case 262 /* ClassDeclaration */: - case 265 /* EnumDeclaration */: - case 305 /* EnumMember */: + case 263 /* ClassDeclaration */: + case 266 /* EnumDeclaration */: + case 306 /* EnumMember */: return 2 /* ExportType */ | 1 /* ExportValue */; - case 311 /* SourceFile */: + case 312 /* SourceFile */: return 2 /* ExportType */ | 1 /* ExportValue */ | 4 /* ExportNamespace */; - case 276 /* ExportAssignment */: - case 225 /* BinaryExpression */: + case 277 /* ExportAssignment */: + case 226 /* BinaryExpression */: const node2 = d; const expression = isExportAssignment(node2) ? node2.expression : node2.right; if (!isEntityNameExpression(expression)) { return 1 /* ExportValue */; } d = expression; - case 270 /* ImportEqualsDeclaration */: - case 273 /* NamespaceImport */: - case 272 /* ImportClause */: + case 271 /* ImportEqualsDeclaration */: + case 274 /* NamespaceImport */: + case 273 /* ImportClause */: let result = 0 /* None */; const target = resolveAlias(getSymbolOfDeclaration(d)); forEach(target.declarations, (d2) => { result |= getDeclarationSpaces(d2); }); return result; - case 259 /* VariableDeclaration */: - case 207 /* BindingElement */: - case 261 /* FunctionDeclaration */: - case 275 /* ImportSpecifier */: + case 260 /* VariableDeclaration */: + case 208 /* BindingElement */: + case 262 /* FunctionDeclaration */: + case 276 /* ImportSpecifier */: case 80 /* Identifier */: return 1 /* ExportValue */; - case 172 /* MethodSignature */: - case 170 /* PropertySignature */: + case 173 /* MethodSignature */: + case 171 /* PropertySignature */: return 2 /* ExportType */; default: return Debug.failBadSyntaxKind(d); @@ -77911,7 +78432,7 @@ ${lanes.join("\n")} const thenSignatures = thenFunction ? getSignaturesOfType(thenFunction, 0 /* Call */) : emptyArray; if (thenSignatures.length === 0) { if (errorNode) { - error(errorNode, Diagnostics.A_promise_must_have_a_then_method); + error2(errorNode, Diagnostics.A_promise_must_have_a_then_method); } return void 0; } @@ -77931,7 +78452,7 @@ ${lanes.join("\n")} thisTypeForErrorOut.value = thisTypeForError; } if (errorNode) { - error(errorNode, Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1, typeToString(type), typeToString(thisTypeForError)); + error2(errorNode, Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1, typeToString(type), typeToString(thisTypeForError)); } return void 0; } @@ -77942,7 +78463,7 @@ ${lanes.join("\n")} const onfulfilledParameterSignatures = getSignaturesOfType(onfulfilledParameterType, 0 /* Call */); if (onfulfilledParameterSignatures.length === 0) { if (errorNode) { - error(errorNode, Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback); + error2(errorNode, Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback); } return void 0; } @@ -78023,7 +78544,7 @@ ${lanes.join("\n")} if (type.flags & 1048576 /* Union */) { if (awaitedTypeStack.lastIndexOf(type.id) >= 0) { if (errorNode) { - error(errorNode, Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method); + error2(errorNode, Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method); } return void 0; } @@ -78046,7 +78567,7 @@ ${lanes.join("\n")} if (promisedType) { if (type.id === promisedType.id || awaitedTypeStack.lastIndexOf(promisedType.id) >= 0) { if (errorNode) { - error(errorNode, Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method); + error2(errorNode, Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method); } return void 0; } @@ -78072,7 +78593,7 @@ ${lanes.join("\n")} } return typeAsAwaitable.awaitedTypeOfType = type; } - function checkAsyncFunctionReturnType(node, returnTypeNode) { + function checkAsyncFunctionReturnType(node, returnTypeNode, returnTypeErrorLocation) { const returnType = getTypeFromTypeNode(returnTypeNode); if (languageVersion >= 2 /* ES2015 */) { if (isErrorType(returnType)) { @@ -78083,7 +78604,7 @@ ${lanes.join("\n")} true ); if (globalPromiseType !== emptyGenericType && !isReferenceToType2(returnType, globalPromiseType)) { - error(returnTypeNode, Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0, typeToString(getAwaitedTypeNoAlias(returnType) || voidType)); + reportErrorForInvalidReturnType(Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0, returnTypeNode, returnTypeErrorLocation, typeToString(getAwaitedTypeNoAlias(returnType) || voidType)); return; } } else { @@ -78093,7 +78614,7 @@ ${lanes.join("\n")} } const promiseConstructorName = getEntityNameFromTypeNode(returnTypeNode); if (promiseConstructorName === void 0) { - error(returnTypeNode, Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, typeToString(returnType)); + reportErrorForInvalidReturnType(Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, returnTypeNode, returnTypeErrorLocation, typeToString(returnType)); return; } const promiseConstructorSymbol = resolveEntityName( @@ -78108,9 +78629,9 @@ ${lanes.join("\n")} /*reportErrors*/ false )) { - error(returnTypeNode, Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option); + error2(returnTypeErrorLocation, Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option); } else { - error(returnTypeNode, Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, entityNameToString(promiseConstructorName)); + reportErrorForInvalidReturnType(Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, returnTypeNode, returnTypeErrorLocation, entityNameToString(promiseConstructorName)); } return; } @@ -78119,21 +78640,22 @@ ${lanes.join("\n")} true ); if (globalPromiseConstructorLikeType === emptyObjectType) { - error(returnTypeNode, Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, entityNameToString(promiseConstructorName)); + reportErrorForInvalidReturnType(Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, returnTypeNode, returnTypeErrorLocation, entityNameToString(promiseConstructorName)); return; } - if (!checkTypeAssignableTo( - promiseConstructorType, - globalPromiseConstructorLikeType, - returnTypeNode, - Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value - )) { + const headMessage = Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value; + const errorInfo = () => returnTypeNode === returnTypeErrorLocation ? void 0 : chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type + ); + if (!checkTypeAssignableTo(promiseConstructorType, globalPromiseConstructorLikeType, returnTypeErrorLocation, headMessage, errorInfo)) { return; } const rootName = promiseConstructorName && getFirstIdentifier(promiseConstructorName); const collidingSymbol = getSymbol2(node.locals, rootName.escapedText, 111551 /* Value */); if (collidingSymbol) { - error( + error2( collidingSymbol.valueDeclaration, Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions, idText(rootName), @@ -78149,6 +78671,14 @@ ${lanes.join("\n")} node, Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member ); + function reportErrorForInvalidReturnType(message, returnTypeNode2, returnTypeErrorLocation2, typeName) { + if (returnTypeNode2 === returnTypeErrorLocation2) { + error2(returnTypeErrorLocation2, message, typeName); + } else { + const diag2 = error2(returnTypeErrorLocation2, Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type); + addRelatedInfo(diag2, createDiagnosticForNode(returnTypeNode2, message, typeName)); + } + } } function checkDecorator(node) { const signature = getResolvedSignature(node); @@ -78163,21 +78693,21 @@ ${lanes.join("\n")} let headMessage; const expectedReturnType = decoratorSignature.resolvedReturnType; switch (node.parent.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: headMessage = Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1; break; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: if (!legacyDecorators) { headMessage = Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1; break; } - case 168 /* Parameter */: + case 169 /* Parameter */: headMessage = Diagnostics.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any; break; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: headMessage = Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1; break; default: @@ -78246,7 +78776,7 @@ ${lanes.join("\n")} if (canCollectSymbolAliasAccessabilityData && symbolIsValue(rootSymbol) && !isConstEnumOrConstEnumOnlyModule(resolveAlias(rootSymbol)) && !getTypeOnlyAliasDeclaration(rootSymbol)) { markAliasSymbolAsReferenced(rootSymbol); } else if (forDecoratorMetadata && getIsolatedModules(compilerOptions) && getEmitModuleKind(compilerOptions) >= 5 /* ES2015 */ && !symbolIsValue(rootSymbol) && !some(rootSymbol.declarations, isTypeOnlyImportOrExportDeclaration)) { - const diag2 = error(typeName, Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled); + const diag2 = error2(typeName, Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled); const aliasDeclaration = find(rootSymbol.declarations || emptyArray, isAliasSymbolDeclaration2); if (aliasDeclaration) { addRelatedInfo(diag2, createDiagnosticForNode(aliasDeclaration, Diagnostics._0_was_imported_here, idText(rootName))); @@ -78267,15 +78797,15 @@ ${lanes.join("\n")} function getEntityNameForDecoratorMetadata(node) { if (node) { switch (node.kind) { - case 192 /* IntersectionType */: - case 191 /* UnionType */: + case 193 /* IntersectionType */: + case 192 /* UnionType */: return getEntityNameForDecoratorMetadataFromTypeList(node.types); - case 193 /* ConditionalType */: + case 194 /* ConditionalType */: return getEntityNameForDecoratorMetadataFromTypeList([node.trueType, node.falseType]); - case 195 /* ParenthesizedType */: - case 201 /* NamedTupleMember */: + case 196 /* ParenthesizedType */: + case 202 /* NamedTupleMember */: return getEntityNameForDecoratorMetadata(node.type); - case 182 /* TypeReference */: + case 183 /* TypeReference */: return node.typeName; } } @@ -78283,13 +78813,13 @@ ${lanes.join("\n")} function getEntityNameForDecoratorMetadataFromTypeList(types) { let commonEntityName; for (let typeNode of types) { - while (typeNode.kind === 195 /* ParenthesizedType */ || typeNode.kind === 201 /* NamedTupleMember */) { + while (typeNode.kind === 196 /* ParenthesizedType */ || typeNode.kind === 202 /* NamedTupleMember */) { typeNode = typeNode.type; } if (typeNode.kind === 146 /* NeverKeyword */) { continue; } - if (!strictNullChecks && (typeNode.kind === 200 /* LiteralType */ && typeNode.literal.kind === 106 /* NullKeyword */ || typeNode.kind === 157 /* UndefinedKeyword */)) { + if (!strictNullChecks && (typeNode.kind === 201 /* LiteralType */ && typeNode.literal.kind === 106 /* NullKeyword */ || typeNode.kind === 157 /* UndefinedKeyword */)) { continue; } const individualEntityName = getEntityNameForDecoratorMetadata(typeNode); @@ -78320,7 +78850,7 @@ ${lanes.join("\n")} } if (legacyDecorators) { checkExternalEmitHelpers(firstDecorator, 8 /* Decorate */); - if (node.kind === 168 /* Parameter */) { + if (node.kind === 169 /* Parameter */) { checkExternalEmitHelpers(firstDecorator, 32 /* Param */); } } else if (languageVersion < 99 /* ESNext */) { @@ -78346,7 +78876,7 @@ ${lanes.join("\n")} if (compilerOptions.emitDecoratorMetadata) { checkExternalEmitHelpers(firstDecorator, 16 /* Metadata */); switch (node.kind) { - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: const constructor = getFirstConstructorWithBody(node); if (constructor) { for (const parameter of constructor.parameters) { @@ -78354,27 +78884,28 @@ ${lanes.join("\n")} } } break; - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - const otherKind = node.kind === 176 /* GetAccessor */ ? 177 /* SetAccessor */ : 176 /* GetAccessor */; + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + const otherKind = node.kind === 177 /* GetAccessor */ ? 178 /* SetAccessor */ : 177 /* GetAccessor */; const otherAccessor = getDeclarationOfKind(getSymbolOfDeclaration(node), otherKind); markDecoratorMedataDataTypeNodeAsReferenced(getAnnotatedAccessorTypeNode(node) || otherAccessor && getAnnotatedAccessorTypeNode(otherAccessor)); break; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: for (const parameter of node.parameters) { markDecoratorMedataDataTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(parameter)); } markDecoratorMedataDataTypeNodeAsReferenced(getEffectiveReturnTypeNode(node)); break; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: markDecoratorMedataDataTypeNodeAsReferenced(getEffectiveTypeAnnotationNode(node)); break; - case 168 /* Parameter */: + case 169 /* Parameter */: markDecoratorMedataDataTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(node)); const containingSignature = node.parent; for (const parameter of containingSignature.parameters) { markDecoratorMedataDataTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(parameter)); } + markDecoratorMedataDataTypeNodeAsReferenced(getEffectiveReturnTypeNode(containingSignature)); break; } } @@ -78394,7 +78925,7 @@ ${lanes.join("\n")} } function checkJSDocTypeAliasTag(node) { if (!node.typeExpression) { - error(node.name, Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags); + error2(node.name, Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags); } if (node.name) { checkTypeNameIsReserved(node.name, Diagnostics.Type_alias_name_cannot_be_0); @@ -78419,7 +78950,7 @@ ${lanes.join("\n")} if (length(tags) > 1) { for (let i = 1; i < length(tags); i++) { const tagName = tags[i].tagName; - error(tagName, Diagnostics._0_tag_already_specified, idText(tagName)); + error2(tagName, Diagnostics._0_tag_already_specified, idText(tagName)); } } } @@ -78451,40 +78982,40 @@ ${lanes.join("\n")} function checkJSDocImplementsTag(node) { const classLike = getEffectiveJSDocHost(node); if (!classLike || !isClassDeclaration(classLike) && !isClassExpression(classLike)) { - error(classLike, Diagnostics.JSDoc_0_is_not_attached_to_a_class, idText(node.tagName)); + error2(classLike, Diagnostics.JSDoc_0_is_not_attached_to_a_class, idText(node.tagName)); } } function checkJSDocAugmentsTag(node) { const classLike = getEffectiveJSDocHost(node); if (!classLike || !isClassDeclaration(classLike) && !isClassExpression(classLike)) { - error(classLike, Diagnostics.JSDoc_0_is_not_attached_to_a_class, idText(node.tagName)); + error2(classLike, Diagnostics.JSDoc_0_is_not_attached_to_a_class, idText(node.tagName)); return; } const augmentsTags = getJSDocTags(classLike).filter(isJSDocAugmentsTag); Debug.assert(augmentsTags.length > 0); if (augmentsTags.length > 1) { - error(augmentsTags[1], Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag); + error2(augmentsTags[1], Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag); } const name = getIdentifierFromEntityNameExpression(node.class.expression); const extend2 = getClassExtendsHeritageElement(classLike); if (extend2) { const className = getIdentifierFromEntityNameExpression(extend2.expression); if (className && name.escapedText !== className.escapedText) { - error(name, Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause, idText(node.tagName), idText(name), idText(className)); + error2(name, Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause, idText(node.tagName), idText(name), idText(className)); } } } function checkJSDocAccessibilityModifiers(node) { const host2 = getJSDocHost(node); if (host2 && isPrivateIdentifierClassElementDeclaration(host2)) { - error(node, Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier); + error2(node, Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier); } } function getIdentifierFromEntityNameExpression(node) { switch (node.kind) { case 80 /* Identifier */: return node; - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return node.name; default: return void 0; @@ -78495,7 +79026,7 @@ ${lanes.join("\n")} checkDecorators(node); checkSignatureDeclaration(node); const functionFlags = getFunctionFlags(node); - if (node.name && node.name.kind === 166 /* ComputedPropertyName */) { + if (node.name && node.name.kind === 167 /* ComputedPropertyName */) { checkComputedPropertyName(node.name); } if (hasBindableName(node)) { @@ -78503,7 +79034,7 @@ ${lanes.join("\n")} const localSymbol = node.localSymbol || symbol; const firstDeclaration = (_a = localSymbol.declarations) == null ? void 0 : _a.find( // Get first non javascript function declaration - (declaration) => declaration.kind === node.kind && !(declaration.flags & 262144 /* JavaScriptFile */) + (declaration) => declaration.kind === node.kind && !(declaration.flags & 524288 /* JavaScriptFile */) ); if (node === firstDeclaration) { checkFunctionOrConstructorSymbol(localSymbol); @@ -78512,14 +79043,14 @@ ${lanes.join("\n")} checkFunctionOrConstructorSymbol(symbol); } } - const body = node.kind === 172 /* MethodSignature */ ? void 0 : node.body; + const body = node.kind === 173 /* MethodSignature */ ? void 0 : node.body; checkSourceElement(body); checkAllCodePathsInNonVoidFunctionReturnOrThrow(node, getReturnTypeFromAnnotation(node)); addLazyDiagnostic(checkFunctionOrMethodDeclarationDiagnostics); if (isInJSFile(node)) { const typeTag = getJSDocTypeTag(node); if (typeTag && typeTag.typeExpression && !getContextualCallSignature(getTypeFromTypeNode(typeTag.typeExpression), node)) { - error(typeTag.typeExpression.type, Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature); + error2(typeTag.typeExpression.type, Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature); } } function checkFunctionOrMethodDeclarationDiagnostics() { @@ -78548,42 +79079,42 @@ ${lanes.join("\n")} function checkUnusedIdentifiers(potentiallyUnusedIdentifiers, addDiagnostic) { for (const node of potentiallyUnusedIdentifiers) { switch (node.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: checkUnusedClassMembers(node, addDiagnostic); checkUnusedTypeParameters(node, addDiagnostic); break; - case 311 /* SourceFile */: - case 266 /* ModuleDeclaration */: - case 240 /* Block */: - case 268 /* CaseBlock */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: + case 312 /* SourceFile */: + case 267 /* ModuleDeclaration */: + case 241 /* Block */: + case 269 /* CaseBlock */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: checkUnusedLocalsAndParameters(node, addDiagnostic); break; - case 175 /* Constructor */: - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 176 /* Constructor */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: if (node.body) { checkUnusedLocalsAndParameters(node, addDiagnostic); } checkUnusedTypeParameters(node, addDiagnostic); break; - case 172 /* MethodSignature */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 264 /* TypeAliasDeclaration */: - case 263 /* InterfaceDeclaration */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 265 /* TypeAliasDeclaration */: + case 264 /* InterfaceDeclaration */: checkUnusedTypeParameters(node, addDiagnostic); break; - case 194 /* InferType */: + case 195 /* InferType */: checkUnusedInferTypeParameter(node, addDiagnostic); break; default: @@ -78602,28 +79133,28 @@ ${lanes.join("\n")} function checkUnusedClassMembers(node, addDiagnostic) { for (const member of node.members) { switch (member.kind) { - case 173 /* MethodDeclaration */: - case 171 /* PropertyDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - if (member.kind === 177 /* SetAccessor */ && member.symbol.flags & 32768 /* GetAccessor */) { + case 174 /* MethodDeclaration */: + case 172 /* PropertyDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + if (member.kind === 178 /* SetAccessor */ && member.symbol.flags & 32768 /* GetAccessor */) { break; } const symbol = getSymbolOfDeclaration(member); - if (!symbol.isReferenced && (hasEffectiveModifier(member, 8 /* Private */) || isNamedDeclaration(member) && isPrivateIdentifier(member.name)) && !(member.flags & 16777216 /* Ambient */)) { + if (!symbol.isReferenced && (hasEffectiveModifier(member, 8 /* Private */) || isNamedDeclaration(member) && isPrivateIdentifier(member.name)) && !(member.flags & 33554432 /* Ambient */)) { addDiagnostic(member, 0 /* Local */, createDiagnosticForNode(member.name, Diagnostics._0_is_declared_but_its_value_is_never_read, symbolToString(symbol))); } break; - case 175 /* Constructor */: + case 176 /* Constructor */: for (const parameter of member.parameters) { if (!parameter.symbol.isReferenced && hasSyntacticModifier(parameter, 8 /* Private */)) { addDiagnostic(parameter, 0 /* Local */, createDiagnosticForNode(parameter.name, Diagnostics.Property_0_is_declared_but_its_value_is_never_read, symbolName(parameter.symbol))); } } break; - case 180 /* IndexSignature */: - case 239 /* SemicolonClassElement */: - case 174 /* ClassStaticBlockDeclaration */: + case 181 /* IndexSignature */: + case 240 /* SemicolonClassElement */: + case 175 /* ClassStaticBlockDeclaration */: break; default: Debug.fail("Unexpected class member"); @@ -78647,7 +79178,7 @@ ${lanes.join("\n")} continue; const name = idText(typeParameter.name); const { parent: parent2 } = typeParameter; - if (parent2.kind !== 194 /* InferType */ && parent2.typeParameters.every(isTypeParameterUnused)) { + if (parent2.kind !== 195 /* InferType */ && parent2.typeParameters.every(isTypeParameterUnused)) { if (tryAddToSet(seenParentsWithEveryUnused, parent2)) { const sourceFile = getSourceFileOfNode(parent2); const range = isJSDocTemplateTag(parent2) ? rangeOfNode(parent2) : rangeOfTypeParameters(sourceFile, parent2.typeParameters); @@ -78705,7 +79236,11 @@ ${lanes.join("\n")} addToGroup(unusedDestructures, declaration.parent, declaration, getNodeId); } } else if (isVariableDeclaration(declaration)) { - addToGroup(unusedVariables, declaration.parent, declaration, getNodeId); + const blockScopeKind = getCombinedNodeFlagsCached(declaration) & 7 /* BlockScoped */; + const name = getNameOfDeclaration(declaration); + if (blockScopeKind !== 4 /* Using */ && blockScopeKind !== 6 /* AwaitUsing */ || !name || !isIdentifierThatStartsWithUnderscore(name)) { + addToGroup(unusedVariables, declaration.parent, declaration, getNodeId); + } } else { const parameter = local.valueDeclaration && tryGetRootParameterDeclaration(local.valueDeclaration); const name = local.valueDeclaration && getNameOfDeclaration(local.valueDeclaration); @@ -78726,7 +79261,7 @@ ${lanes.join("\n")} }); unusedImports.forEach(([importClause, unuseds]) => { const importDecl = importClause.parent; - const nDeclarations = (importClause.name ? 1 : 0) + (importClause.namedBindings ? importClause.namedBindings.kind === 273 /* NamespaceImport */ ? 1 : importClause.namedBindings.elements.length : 0); + const nDeclarations = (importClause.name ? 1 : 0) + (importClause.namedBindings ? importClause.namedBindings.kind === 274 /* NamespaceImport */ ? 1 : importClause.namedBindings.elements.length : 0); if (nDeclarations === unuseds.length) { addDiagnostic(importDecl, 0 /* Local */, unuseds.length === 1 ? createDiagnosticForNode(importDecl, Diagnostics._0_is_declared_but_its_value_is_never_read, idText(first(unuseds).name)) : createDiagnosticForNode(importDecl, Diagnostics.All_imports_in_import_declaration_are_unused)); } else { @@ -78737,7 +79272,7 @@ ${lanes.join("\n")} unusedDestructures.forEach(([bindingPattern, bindingElements]) => { const kind = tryGetRootParameterDeclaration(bindingPattern.parent) ? 1 /* Parameter */ : 0 /* Local */; if (bindingPattern.elements.length === bindingElements.length) { - if (bindingElements.length === 1 && bindingPattern.parent.kind === 259 /* VariableDeclaration */ && bindingPattern.parent.parent.kind === 260 /* VariableDeclarationList */) { + if (bindingElements.length === 1 && bindingPattern.parent.kind === 260 /* VariableDeclaration */ && bindingPattern.parent.parent.kind === 261 /* VariableDeclarationList */) { addToGroup(unusedVariables, bindingPattern.parent.parent, bindingPattern.parent, getNodeId); } else { addDiagnostic(bindingPattern, kind, bindingElements.length === 1 ? createDiagnosticForNode(bindingPattern, Diagnostics._0_is_declared_but_its_value_is_never_read, bindingNameText(first(bindingElements).name)) : createDiagnosticForNode(bindingPattern, Diagnostics.All_destructured_elements_are_unused)); @@ -78750,7 +79285,7 @@ ${lanes.join("\n")} }); unusedVariables.forEach(([declarationList, declarations]) => { if (declarationList.declarations.length === declarations.length) { - addDiagnostic(declarationList, 0 /* Local */, declarations.length === 1 ? createDiagnosticForNode(first(declarations).name, Diagnostics._0_is_declared_but_its_value_is_never_read, bindingNameText(first(declarations).name)) : createDiagnosticForNode(declarationList.parent.kind === 242 /* VariableStatement */ ? declarationList.parent : declarationList, Diagnostics.All_variables_are_unused)); + addDiagnostic(declarationList, 0 /* Local */, declarations.length === 1 ? createDiagnosticForNode(first(declarations).name, Diagnostics._0_is_declared_but_its_value_is_never_read, bindingNameText(first(declarations).name)) : createDiagnosticForNode(declarationList.parent.kind === 243 /* VariableStatement */ ? declarationList.parent : declarationList, Diagnostics.All_variables_are_unused)); } else { for (const decl of declarations) { addDiagnostic(decl, 0 /* Local */, createDiagnosticForNode(decl, Diagnostics._0_is_declared_but_its_value_is_never_read, bindingNameText(decl.name))); @@ -78779,21 +79314,21 @@ ${lanes.join("\n")} switch (name.kind) { case 80 /* Identifier */: return idText(name); - case 206 /* ArrayBindingPattern */: - case 205 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: + case 206 /* ObjectBindingPattern */: return bindingNameText(cast(first(name.elements), isBindingElement).name); default: return Debug.assertNever(name); } } function isImportedDeclaration(node) { - return node.kind === 272 /* ImportClause */ || node.kind === 275 /* ImportSpecifier */ || node.kind === 273 /* NamespaceImport */; + return node.kind === 273 /* ImportClause */ || node.kind === 276 /* ImportSpecifier */ || node.kind === 274 /* NamespaceImport */; } function importClauseFromImported(decl) { - return decl.kind === 272 /* ImportClause */ ? decl : decl.kind === 273 /* NamespaceImport */ ? decl.parent : decl.parent.parent; + return decl.kind === 273 /* ImportClause */ ? decl : decl.kind === 274 /* NamespaceImport */ ? decl.parent : decl.parent.parent; } function checkBlock(node) { - if (node.kind === 240 /* Block */) { + if (node.kind === 241 /* Block */) { checkGrammarStatementInAmbientContext(node); } if (isFunctionOrModuleBlock(node)) { @@ -78808,7 +79343,7 @@ ${lanes.join("\n")} } } function checkCollisionWithArgumentsInGeneratedCode(node) { - if (languageVersion >= 2 /* ES2015 */ || !hasRestParameter(node) || node.flags & 16777216 /* Ambient */ || nodeIsMissing(node.body)) { + if (languageVersion >= 2 /* ES2015 */ || !hasRestParameter(node) || node.flags & 33554432 /* Ambient */ || nodeIsMissing(node.body)) { return; } forEach(node.parameters, (p) => { @@ -78821,10 +79356,10 @@ ${lanes.join("\n")} if ((identifier == null ? void 0 : identifier.escapedText) !== name) { return false; } - if (node.kind === 171 /* PropertyDeclaration */ || node.kind === 170 /* PropertySignature */ || node.kind === 173 /* MethodDeclaration */ || node.kind === 172 /* MethodSignature */ || node.kind === 176 /* GetAccessor */ || node.kind === 177 /* SetAccessor */ || node.kind === 302 /* PropertyAssignment */) { + if (node.kind === 172 /* PropertyDeclaration */ || node.kind === 171 /* PropertySignature */ || node.kind === 174 /* MethodDeclaration */ || node.kind === 173 /* MethodSignature */ || node.kind === 177 /* GetAccessor */ || node.kind === 178 /* SetAccessor */ || node.kind === 303 /* PropertyAssignment */) { return false; } - if (node.flags & 16777216 /* Ambient */) { + if (node.flags & 33554432 /* Ambient */) { return false; } if (isImportClause(node) || isImportEqualsDeclaration(node) || isImportSpecifier(node)) { @@ -78843,9 +79378,9 @@ ${lanes.join("\n")} if (getNodeCheckFlags(current) & 4 /* CaptureThis */) { const isDeclaration2 = node.kind !== 80 /* Identifier */; if (isDeclaration2) { - error(getNameOfDeclaration(node), Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference); + error2(getNameOfDeclaration(node), Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference); } else { - error(node, Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference); + error2(node, Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference); } return true; } @@ -78857,9 +79392,9 @@ ${lanes.join("\n")} if (getNodeCheckFlags(current) & 8 /* CaptureNewTarget */) { const isDeclaration2 = node.kind !== 80 /* Identifier */; if (isDeclaration2) { - error(getNameOfDeclaration(node), Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference); + error2(getNameOfDeclaration(node), Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference); } else { - error(node, Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference); + error2(node, Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference); } return true; } @@ -78877,7 +79412,7 @@ ${lanes.join("\n")} return; } const parent2 = getDeclarationContainer(node); - if (parent2.kind === 311 /* SourceFile */ && isExternalOrCommonJsModule(parent2)) { + if (parent2.kind === 312 /* SourceFile */ && isExternalOrCommonJsModule(parent2)) { errorSkippedOn( "noEmit", name, @@ -78895,7 +79430,7 @@ ${lanes.join("\n")} return; } const parent2 = getDeclarationContainer(node); - if (parent2.kind === 311 /* SourceFile */ && isExternalOrCommonJsModule(parent2) && parent2.flags & 2048 /* HasAsyncFunctions */) { + if (parent2.kind === 312 /* SourceFile */ && isExternalOrCommonJsModule(parent2) && parent2.flags & 4096 /* HasAsyncFunctions */) { errorSkippedOn( "noEmit", name, @@ -78912,7 +79447,7 @@ ${lanes.join("\n")} } function checkWeakMapSetCollision(node) { const enclosingBlockScope = getEnclosingBlockScopeContainer(node); - if (getNodeCheckFlags(enclosingBlockScope) & 4194304 /* ContainsClassWithPrivateIdentifiers */) { + if (getNodeCheckFlags(enclosingBlockScope) & 1048576 /* ContainsClassWithPrivateIdentifiers */) { Debug.assert(isNamedDeclaration(node) && isIdentifier(node.name) && typeof node.name.escapedText === "string", "The target of a WeakMap/WeakSet collision check should be an identifier"); errorSkippedOn("noEmit", node, Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel, node.name.escapedText); } @@ -78926,18 +79461,18 @@ ${lanes.join("\n")} let hasCollision = false; if (isClassExpression(node)) { for (const member of node.members) { - if (getNodeCheckFlags(member) & 8388608 /* ContainsSuperPropertyInStaticInitializer */) { + if (getNodeCheckFlags(member) & 2097152 /* ContainsSuperPropertyInStaticInitializer */) { hasCollision = true; break; } } } else if (isFunctionExpression(node)) { - if (getNodeCheckFlags(node) & 8388608 /* ContainsSuperPropertyInStaticInitializer */) { + if (getNodeCheckFlags(node) & 2097152 /* ContainsSuperPropertyInStaticInitializer */) { hasCollision = true; } } else { const container = getEnclosingBlockScopeContainer(node); - if (container && getNodeCheckFlags(container) & 8388608 /* ContainsSuperPropertyInStaticInitializer */) { + if (container && getNodeCheckFlags(container) & 2097152 /* ContainsSuperPropertyInStaticInitializer */) { hasCollision = true; } } @@ -78961,7 +79496,7 @@ ${lanes.join("\n")} recordPotentialCollisionWithReflectInGeneratedCode(node, name); if (isClassLike(node)) { checkTypeNameIsReserved(name, Diagnostics.Class_name_cannot_be_0); - if (!(node.flags & 16777216 /* Ambient */)) { + if (!(node.flags & 33554432 /* Ambient */)) { checkClassNameCollisionWithObject(name); } } else if (isEnumDeclaration(node)) { @@ -78969,10 +79504,7 @@ ${lanes.join("\n")} } } function checkVarDeclaredNamesNotShadowed(node) { - if ((getCombinedNodeFlags(node) & 3 /* BlockScoped */) !== 0 || isParameterDeclaration(node)) { - return; - } - if (node.kind === 259 /* VariableDeclaration */ && !node.initializer) { + if ((getCombinedNodeFlagsCached(node) & 7 /* BlockScoped */) !== 0 || isParameterDeclaration(node)) { return; } const symbol = getSymbolOfDeclaration(node); @@ -78991,13 +79523,13 @@ ${lanes.join("\n")} false ); if (localDeclarationSymbol && localDeclarationSymbol !== symbol && localDeclarationSymbol.flags & 2 /* BlockScopedVariable */) { - if (getDeclarationNodeFlagsFromSymbol(localDeclarationSymbol) & 3 /* BlockScoped */) { - const varDeclList = getAncestor(localDeclarationSymbol.valueDeclaration, 260 /* VariableDeclarationList */); - const container = varDeclList.parent.kind === 242 /* VariableStatement */ && varDeclList.parent.parent ? varDeclList.parent.parent : void 0; - const namesShareScope = container && (container.kind === 240 /* Block */ && isFunctionLike(container.parent) || container.kind === 267 /* ModuleBlock */ || container.kind === 266 /* ModuleDeclaration */ || container.kind === 311 /* SourceFile */); + if (getDeclarationNodeFlagsFromSymbol(localDeclarationSymbol) & 7 /* BlockScoped */) { + const varDeclList = getAncestor(localDeclarationSymbol.valueDeclaration, 261 /* VariableDeclarationList */); + const container = varDeclList.parent.kind === 243 /* VariableStatement */ && varDeclList.parent.parent ? varDeclList.parent.parent : void 0; + const namesShareScope = container && (container.kind === 241 /* Block */ && isFunctionLike(container.parent) || container.kind === 268 /* ModuleBlock */ || container.kind === 267 /* ModuleDeclaration */ || container.kind === 312 /* SourceFile */); if (!namesShareScope) { const name = symbolToString(localDeclarationSymbol); - error(node, Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1, name, name); + error2(node, Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1, name, name); } } } @@ -79015,7 +79547,7 @@ ${lanes.join("\n")} if (!node.name) { return; } - if (node.name.kind === 166 /* ComputedPropertyName */) { + if (node.name.kind === 167 /* ComputedPropertyName */) { checkComputedPropertyName(node.name); if (hasOnlyExpressionInitializer(node) && node.initializer) { checkExpressionCached(node.initializer); @@ -79029,7 +79561,7 @@ ${lanes.join("\n")} if (isObjectBindingPattern(node.parent) && node.dotDotDotToken && languageVersion < 5 /* ES2018 */) { checkExternalEmitHelpers(node, 4 /* Rest */); } - if (node.propertyName && node.propertyName.kind === 166 /* ComputedPropertyName */) { + if (node.propertyName && node.propertyName.kind === 167 /* ComputedPropertyName */) { checkComputedPropertyName(node.propertyName); } const parent2 = node.parent.parent; @@ -79062,20 +79594,20 @@ ${lanes.join("\n")} } } if (isBindingPattern(node.name)) { - if (node.name.kind === 206 /* ArrayBindingPattern */ && languageVersion < 2 /* ES2015 */ && compilerOptions.downlevelIteration) { + if (node.name.kind === 207 /* ArrayBindingPattern */ && languageVersion < 2 /* ES2015 */ && compilerOptions.downlevelIteration) { checkExternalEmitHelpers(node, 512 /* Read */); } forEach(node.name.elements, checkSourceElement); } if (isParameter(node) && node.initializer && nodeIsMissing(getContainingFunction(node).body)) { - error(node, Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation); + error2(node, Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation); return; } if (isBindingPattern(node.name)) { if (isInAmbientOrTypeNode(node)) { return; } - const needCheckInitializer = hasOnlyExpressionInitializer(node) && node.initializer && node.parent.parent.kind !== 248 /* ForInStatement */; + const needCheckInitializer = hasOnlyExpressionInitializer(node) && node.initializer && node.parent.parent.kind !== 249 /* ForInStatement */; const needCheckWidenedType = !some(node.name.elements, not(isOmittedExpression)); if (needCheckInitializer || needCheckWidenedType) { const widenedType = getWidenedTypeForVariableLikeDeclaration(node); @@ -79107,20 +79639,45 @@ ${lanes.join("\n")} const initializer = hasOnlyExpressionInitializer(node) && getEffectiveInitializer(node); if (initializer) { const isJSObjectLiteralInitializer = isInJSFile(node) && isObjectLiteralExpression(initializer) && (initializer.properties.length === 0 || isPrototypeAccess(node.name)) && !!((_a = symbol.exports) == null ? void 0 : _a.size); - if (!isJSObjectLiteralInitializer && node.parent.parent.kind !== 248 /* ForInStatement */) { + if (!isJSObjectLiteralInitializer && node.parent.parent.kind !== 249 /* ForInStatement */) { + const initializerType = checkExpressionCached(initializer); checkTypeAssignableToAndOptionallyElaborate( - checkExpressionCached(initializer), + initializerType, type, node, initializer, /*headMessage*/ void 0 ); + const blockScopeKind = getCombinedNodeFlagsCached(node) & 7 /* BlockScoped */; + if (blockScopeKind === 6 /* AwaitUsing */) { + const globalAsyncDisposableType = getGlobalAsyncDisposableType( + /*reportErrors*/ + true + ); + const globalDisposableType = getGlobalDisposableType( + /*reportErrors*/ + true + ); + if (globalAsyncDisposableType !== emptyObjectType && globalDisposableType !== emptyObjectType) { + const optionalDisposableType = getUnionType([globalAsyncDisposableType, globalDisposableType, nullType, undefinedType]); + checkTypeAssignableTo(initializerType, optionalDisposableType, initializer, Diagnostics.The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined); + } + } else if (blockScopeKind === 4 /* Using */) { + const globalDisposableType = getGlobalDisposableType( + /*reportErrors*/ + true + ); + if (globalDisposableType !== emptyObjectType) { + const optionalDisposableType = getUnionType([globalDisposableType, nullType, undefinedType]); + checkTypeAssignableTo(initializerType, optionalDisposableType, initializer, Diagnostics.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined); + } + } } } if (symbol.declarations && symbol.declarations.length > 1) { if (some(symbol.declarations, (d) => d !== node && isVariableLike(d) && !areDeclarationFlagsIdentical(d, node))) { - error(node.name, Diagnostics.All_declarations_of_0_must_have_identical_modifiers, declarationNameToString(node.name)); + error2(node.name, Diagnostics.All_declarations_of_0_must_have_identical_modifiers, declarationNameToString(node.name)); } } } else { @@ -79139,12 +79696,12 @@ ${lanes.join("\n")} ); } if (symbol.valueDeclaration && !areDeclarationFlagsIdentical(node, symbol.valueDeclaration)) { - error(node.name, Diagnostics.All_declarations_of_0_must_have_identical_modifiers, declarationNameToString(node.name)); + error2(node.name, Diagnostics.All_declarations_of_0_must_have_identical_modifiers, declarationNameToString(node.name)); } } - if (node.kind !== 171 /* PropertyDeclaration */ && node.kind !== 170 /* PropertySignature */) { + if (node.kind !== 172 /* PropertyDeclaration */ && node.kind !== 171 /* PropertySignature */) { checkExportsOnMergedDeclarations(node); - if (node.kind === 259 /* VariableDeclaration */ || node.kind === 207 /* BindingElement */) { + if (node.kind === 260 /* VariableDeclaration */ || node.kind === 208 /* BindingElement */) { checkVarDeclaredNamesNotShadowed(node); } checkCollisionsForDeclarationName(node, node.name); @@ -79152,9 +79709,9 @@ ${lanes.join("\n")} } function errorNextVariableOrPropertyDeclarationMustHaveSameType(firstDeclaration, firstType, nextDeclaration, nextType) { const nextDeclarationName = getNameOfDeclaration(nextDeclaration); - const message = nextDeclaration.kind === 171 /* PropertyDeclaration */ || nextDeclaration.kind === 170 /* PropertySignature */ ? Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2 : Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2; + const message = nextDeclaration.kind === 172 /* PropertyDeclaration */ || nextDeclaration.kind === 171 /* PropertySignature */ ? Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2 : Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2; const declName = declarationNameToString(nextDeclarationName); - const err = error( + const err = error2( nextDeclarationName, message, declName, @@ -79169,7 +79726,7 @@ ${lanes.join("\n")} } } function areDeclarationFlagsIdentical(left, right) { - if (left.kind === 168 /* Parameter */ && right.kind === 259 /* VariableDeclaration */ || left.kind === 259 /* VariableDeclaration */ && right.kind === 168 /* Parameter */) { + if (left.kind === 169 /* Parameter */ && right.kind === 260 /* VariableDeclaration */ || left.kind === 260 /* VariableDeclaration */ && right.kind === 169 /* Parameter */) { return true; } if (hasQuestionToken(left) !== hasQuestionToken(right)) { @@ -79189,10 +79746,17 @@ ${lanes.join("\n")} checkGrammarBindingElement(node); return checkVariableLikeDeclaration(node); } + function checkVariableDeclarationList(node) { + const blockScopeKind = getCombinedNodeFlags(node) & 7 /* BlockScoped */; + if (blockScopeKind === 4 /* Using */ || blockScopeKind === 6 /* AwaitUsing */) { + checkExternalEmitHelpers(node, 33554432 /* AddDisposableResourceAndDisposeResources */); + } + forEach(node.declarations, checkSourceElement); + } function checkVariableStatement(node) { if (!checkGrammarModifiers(node) && !checkGrammarVariableDeclarationList(node.declarationList)) - checkGrammarForDisallowedLetOrConstStatement(node); - forEach(node.declarationList.declarations, checkSourceElement); + checkGrammarForDisallowedBlockScopedVariableStatement(node); + checkVariableDeclarationList(node.declarationList); } function checkExpressionStatement(node) { checkGrammarStatementInAmbientContext(node); @@ -79203,8 +79767,8 @@ ${lanes.join("\n")} const type = checkTruthinessExpression(node.expression); checkTestingKnownTruthyCallableOrAwaitableType(node.expression, type, node.thenStatement); checkSourceElement(node.thenStatement); - if (node.thenStatement.kind === 241 /* EmptyStatement */) { - error(node.thenStatement, Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement); + if (node.thenStatement.kind === 242 /* EmptyStatement */) { + error2(node.thenStatement, Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement); } checkSourceElement(node.elseStatement); } @@ -79254,7 +79818,7 @@ ${lanes.join("\n")} getTypeNameForErrorDisplay(type) ); } else { - error(location, Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead); + error2(location, Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead); } } } @@ -79320,7 +79884,7 @@ ${lanes.join("\n")} } function checkTruthinessOfType(type, node) { if (type.flags & 16384 /* Void */) { - error(node, Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness); + error2(node, Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness); } return type; } @@ -79329,13 +79893,13 @@ ${lanes.join("\n")} } function checkForStatement(node) { if (!checkGrammarStatementInAmbientContext(node)) { - if (node.initializer && node.initializer.kind === 260 /* VariableDeclarationList */) { + if (node.initializer && node.initializer.kind === 261 /* VariableDeclarationList */) { checkGrammarVariableDeclarationList(node.initializer); } } if (node.initializer) { - if (node.initializer.kind === 260 /* VariableDeclarationList */) { - forEach(node.initializer.declarations, checkVariableDeclaration); + if (node.initializer.kind === 261 /* VariableDeclarationList */) { + checkVariableDeclarationList(node.initializer); } else { checkExpression(node.initializer); } @@ -79354,7 +79918,7 @@ ${lanes.join("\n")} const container = getContainingFunctionOrClassStaticBlock(node); if (node.awaitModifier) { if (container && isClassStaticBlockDeclaration(container)) { - grammarErrorOnNode(node.awaitModifier, Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block); + grammarErrorOnNode(node.awaitModifier, Diagnostics.for_await_loops_cannot_be_used_inside_a_class_static_block); } else { const functionFlags = getFunctionFlags(container); if ((functionFlags & (4 /* Invalid */ | 2 /* Async */)) === 2 /* Async */ && languageVersion < 99 /* ESNext */) { @@ -79364,12 +79928,12 @@ ${lanes.join("\n")} } else if (compilerOptions.downlevelIteration && languageVersion < 2 /* ES2015 */) { checkExternalEmitHelpers(node, 256 /* ForOfIncludes */); } - if (node.initializer.kind === 260 /* VariableDeclarationList */) { - checkForInOrForOfVariableDeclaration(node); + if (node.initializer.kind === 261 /* VariableDeclarationList */) { + checkVariableDeclarationList(node.initializer); } else { const varExpr = node.initializer; const iteratedType = checkRightHandSideOfForOf(node); - if (varExpr.kind === 208 /* ArrayLiteralExpression */ || varExpr.kind === 209 /* ObjectLiteralExpression */) { + if (varExpr.kind === 209 /* ArrayLiteralExpression */ || varExpr.kind === 210 /* ObjectLiteralExpression */) { checkDestructuringAssignment(varExpr, iteratedType || errorType); } else { const leftType = checkExpression(varExpr); @@ -79391,19 +79955,19 @@ ${lanes.join("\n")} function checkForInStatement(node) { checkGrammarForInOrForOfStatement(node); const rightType = getNonNullableTypeIfNeeded(checkExpression(node.expression)); - if (node.initializer.kind === 260 /* VariableDeclarationList */) { + if (node.initializer.kind === 261 /* VariableDeclarationList */) { const variable = node.initializer.declarations[0]; if (variable && isBindingPattern(variable.name)) { - error(variable.name, Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern); + error2(variable.name, Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern); } - checkForInOrForOfVariableDeclaration(node); + checkVariableDeclarationList(node.initializer); } else { const varExpr = node.initializer; const leftType = checkExpression(varExpr); - if (varExpr.kind === 208 /* ArrayLiteralExpression */ || varExpr.kind === 209 /* ObjectLiteralExpression */) { - error(varExpr, Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern); + if (varExpr.kind === 209 /* ArrayLiteralExpression */ || varExpr.kind === 210 /* ObjectLiteralExpression */) { + error2(varExpr, Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern); } else if (!isTypeAssignableTo(getIndexTypeOrString(rightType), leftType)) { - error(varExpr, Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any); + error2(varExpr, Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any); } else { checkReferenceExpression( varExpr, @@ -79413,20 +79977,13 @@ ${lanes.join("\n")} } } if (rightType === neverType || !isTypeAssignableToKind(rightType, 67108864 /* NonPrimitive */ | 58982400 /* InstantiableNonPrimitive */)) { - error(node.expression, Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0, typeToString(rightType)); + error2(node.expression, Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0, typeToString(rightType)); } checkSourceElement(node.statement); if (node.locals) { registerForUnusedIdentifiersCheck(node); } } - function checkForInOrForOfVariableDeclaration(iterationStatement) { - const variableDeclarationList = iterationStatement.initializer; - if (variableDeclarationList.declarations.length >= 1) { - const decl = variableDeclarationList.declarations[0]; - checkVariableDeclaration(decl); - } - } function checkRightHandSideOfForOf(statement) { const use = statement.awaitModifier ? 15 /* ForAwaitOf */ : 13 /* ForOf */; return checkIteratedTypeOrElementType(use, checkNonNullExpression(statement.expression), undefinedType, statement.expression); @@ -79484,7 +80041,7 @@ ${lanes.join("\n")} if (hasStringConstituent) { if (languageVersion < 1 /* ES5 */) { if (errorNode) { - error(errorNode, Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher); + error2(errorNode, Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher); reportedError = true; } } @@ -79944,7 +80501,7 @@ ${lanes.join("\n")} errorOutputContainer.errors ?? (errorOutputContainer.errors = []); errorOutputContainer.errors.push(createDiagnosticForNode(errorNode, diagnostic, methodName)); } else { - error(errorNode, diagnostic, methodName); + error2(errorNode, diagnostic, methodName); } } return methodName === "next" ? noIterationTypes : void 0; @@ -79999,7 +80556,7 @@ ${lanes.join("\n")} errorOutputContainer.errors ?? (errorOutputContainer.errors = []); errorOutputContainer.errors.push(createDiagnosticForNode(errorNode, resolver.mustHaveAValueDiagnostic, methodName)); } else { - error(errorNode, resolver.mustHaveAValueDiagnostic, methodName); + error2(errorNode, resolver.mustHaveAValueDiagnostic, methodName); } } yieldType = anyType; @@ -80083,13 +80640,13 @@ ${lanes.join("\n")} const functionFlags = getFunctionFlags(container); if (strictNullChecks || node.expression || returnType.flags & 131072 /* Never */) { const exprType = node.expression ? checkExpressionCached(node.expression) : undefinedType; - if (container.kind === 177 /* SetAccessor */) { + if (container.kind === 178 /* SetAccessor */) { if (node.expression) { - error(node, Diagnostics.Setters_cannot_return_a_value); + error2(node, Diagnostics.Setters_cannot_return_a_value); } - } else if (container.kind === 175 /* Constructor */) { + } else if (container.kind === 176 /* Constructor */) { if (node.expression && !checkTypeAssignableToAndOptionallyElaborate(exprType, returnType, node, node.expression)) { - error(node, Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class); + error2(node, Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class); } } else if (getReturnTypeFromAnnotation(container)) { const unwrappedReturnType = unwrapReturnType(returnType, functionFlags) ?? returnType; @@ -80104,13 +80661,13 @@ ${lanes.join("\n")} checkTypeAssignableToAndOptionallyElaborate(unwrappedExprType, unwrappedReturnType, node, node.expression); } } - } else if (container.kind !== 175 /* Constructor */ && compilerOptions.noImplicitReturns && !isUnwrappedReturnTypeUndefinedVoidOrAny(container, returnType)) { - error(node, Diagnostics.Not_all_code_paths_return_a_value); + } else if (container.kind !== 176 /* Constructor */ && compilerOptions.noImplicitReturns && !isUnwrappedReturnTypeUndefinedVoidOrAny(container, returnType)) { + error2(node, Diagnostics.Not_all_code_paths_return_a_value); } } function checkWithStatement(node) { if (!checkGrammarStatementInAmbientContext(node)) { - if (node.flags & 32768 /* AwaitContext */) { + if (node.flags & 65536 /* AwaitContext */) { grammarErrorOnFirstToken(node, Diagnostics.with_statements_are_not_allowed_in_an_async_function_block); } } @@ -80128,7 +80685,7 @@ ${lanes.join("\n")} let hasDuplicateDefaultClause = false; const expressionType = checkExpression(node.expression); forEach(node.caseBlock.clauses, (clause) => { - if (clause.kind === 296 /* DefaultClause */ && !hasDuplicateDefaultClause) { + if (clause.kind === 297 /* DefaultClause */ && !hasDuplicateDefaultClause) { if (firstDefaultClause === void 0) { firstDefaultClause = clause; } else { @@ -80136,12 +80693,12 @@ ${lanes.join("\n")} hasDuplicateDefaultClause = true; } } - if (clause.kind === 295 /* CaseClause */) { + if (clause.kind === 296 /* CaseClause */) { addLazyDiagnostic(createLazyCaseClauseDiagnostics(clause)); } forEach(clause.statements, checkSourceElement); if (compilerOptions.noFallthroughCasesInSwitch && clause.fallthroughFlowNode && isReachableFlowNode(clause.fallthroughFlowNode)) { - error(clause, Diagnostics.Fallthrough_case_in_switch); + error2(clause, Diagnostics.Fallthrough_case_in_switch); } function createLazyCaseClauseDiagnostics(clause2) { return () => { @@ -80168,7 +80725,7 @@ ${lanes.join("\n")} if (isFunctionLike(current)) { return "quit"; } - if (current.kind === 255 /* LabeledStatement */ && current.label.escapedText === node.label.escapedText) { + if (current.kind === 256 /* LabeledStatement */ && current.label.escapedText === node.label.escapedText) { grammarErrorOnNode(node.label, Diagnostics.Duplicate_label_0, getTextOfNode(node.label)); return true; } @@ -80258,8 +80815,8 @@ ${lanes.join("\n")} return; } const indexInfos = getApplicableIndexInfos(type, propNameType); - const interfaceDeclaration = getObjectFlags(type) & 2 /* Interface */ ? getDeclarationOfKind(type.symbol, 263 /* InterfaceDeclaration */) : void 0; - const propDeclaration = declaration && declaration.kind === 225 /* BinaryExpression */ || name && name.kind === 166 /* ComputedPropertyName */ ? declaration : void 0; + const interfaceDeclaration = getObjectFlags(type) & 2 /* Interface */ ? getDeclarationOfKind(type.symbol, 264 /* InterfaceDeclaration */) : void 0; + const propDeclaration = declaration && declaration.kind === 226 /* BinaryExpression */ || name && name.kind === 167 /* ComputedPropertyName */ ? declaration : void 0; const localPropDeclaration = getParentOfSymbol(prop) === type.symbol ? declaration : void 0; for (const info of indexInfos) { const localIndexDeclaration = info.declaration && getParentOfSymbol(getSymbolOfDeclaration(info.declaration)) === type.symbol ? info.declaration : void 0; @@ -80283,7 +80840,7 @@ ${lanes.join("\n")} function checkIndexConstraintForIndexSignature(type, checkInfo) { const declaration = checkInfo.declaration; const indexInfos = getApplicableIndexInfos(type, checkInfo.keyType); - const interfaceDeclaration = getObjectFlags(type) & 2 /* Interface */ ? getDeclarationOfKind(type.symbol, 263 /* InterfaceDeclaration */) : void 0; + const interfaceDeclaration = getObjectFlags(type) & 2 /* Interface */ ? getDeclarationOfKind(type.symbol, 264 /* InterfaceDeclaration */) : void 0; const localCheckDeclaration = declaration && getParentOfSymbol(getSymbolOfDeclaration(declaration)) === type.symbol ? declaration : void 0; for (const info of indexInfos) { if (info === checkInfo) @@ -80291,7 +80848,7 @@ ${lanes.join("\n")} const localIndexDeclaration = info.declaration && getParentOfSymbol(getSymbolOfDeclaration(info.declaration)) === type.symbol ? info.declaration : void 0; const errorNode = localCheckDeclaration || localIndexDeclaration || (interfaceDeclaration && !some(getBaseTypes(type), (base) => !!getIndexInfoOfType(base, checkInfo.keyType) && !!getIndexTypeOfType(base, info.keyType)) ? interfaceDeclaration : void 0); if (errorNode && !isTypeAssignableTo(checkInfo.type, info.type)) { - error( + error2( errorNode, Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3, typeToString(checkInfo.keyType), @@ -80314,12 +80871,12 @@ ${lanes.join("\n")} case "symbol": case "void": case "object": - error(name, message, name.escapedText); + error2(name, message, name.escapedText); } } function checkClassNameCollisionWithObject(name) { if (languageVersion >= 1 /* ES5 */ && name.escapedText === "Object" && (moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(name).impliedNodeFormat === 1 /* CommonJS */)) { - error(name, Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0, ModuleKind[moduleKind]); + error2(name, Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0, ModuleKind[moduleKind]); } } function checkUnmatchedJSDocParameters(node) { @@ -80342,7 +80899,7 @@ ${lanes.join("\n")} const lastJSDocParamIndex = jsdocParameters.length - 1; const lastJSDocParam = jsdocParameters[lastJSDocParamIndex]; if (isJs && lastJSDocParam && isIdentifier(lastJSDocParam.name) && lastJSDocParam.typeExpression && lastJSDocParam.typeExpression.type && !parameters.has(lastJSDocParam.name.escapedText) && !excludedParameters.has(lastJSDocParamIndex) && !isArrayType(getTypeFromTypeNode(lastJSDocParam.typeExpression.type))) { - error(lastJSDocParam.name, Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type, idText(lastJSDocParam.name)); + error2(lastJSDocParam.name, Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type, idText(lastJSDocParam.name)); } } else { forEach(jsdocParameters, ({ name, isNameFirst }, index) => { @@ -80351,7 +80908,7 @@ ${lanes.join("\n")} } if (isQualifiedName(name)) { if (isJs) { - error(name, Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1, entityNameToString(name), entityNameToString(name.left)); + error2(name, Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1, entityNameToString(name), entityNameToString(name.left)); } } else { if (!isNameFirst) { @@ -80376,11 +80933,11 @@ ${lanes.join("\n")} seenDefault = true; checkTypeParametersNotReferenced(node.default, typeParameterDeclarations, i); } else if (seenDefault) { - error(node, Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters); + error2(node, Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters); } for (let j = 0; j < i; j++) { if (typeParameterDeclarations[j].symbol === node.symbol) { - error(node.name, Diagnostics.Duplicate_identifier_0, declarationNameToString(node.name)); + error2(node.name, Diagnostics.Duplicate_identifier_0, declarationNameToString(node.name)); } } }; @@ -80389,12 +80946,12 @@ ${lanes.join("\n")} function checkTypeParametersNotReferenced(root, typeParameters, index) { visit(root); function visit(node) { - if (node.kind === 182 /* TypeReference */) { + if (node.kind === 183 /* TypeReference */) { const type = getTypeFromTypeReference(node); if (type.flags & 262144 /* TypeParameter */) { for (let i = index; i < typeParameters.length; i++) { if (type.symbol === getSymbolOfDeclaration(typeParameters[i])) { - error(node, Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters); + error2(node, Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters); } } } @@ -80417,7 +80974,7 @@ ${lanes.join("\n")} if (!areTypeParametersIdentical(declarations, type.localTypeParameters, getEffectiveTypeParameterDeclarations)) { const name = symbolToString(symbol); for (const declaration of declarations) { - error(declaration.name, Diagnostics.All_declarations_of_0_must_have_identical_type_parameters, name); + error2(declaration.name, Diagnostics.All_declarations_of_0_must_have_identical_type_parameters, name); } } } @@ -80459,7 +81016,7 @@ ${lanes.join("\n")} node ); const willTransformPrivateElementsOrClassStaticBlocks = languageVersion <= 9 /* ES2022 */; - const willTransformInitializers = !useDefineForClassFields || languageVersion < 9 /* ES2022 */; + const willTransformInitializers = !emitStandardClassFields; if (willTransformStaticElementsOfDecoratedClass || willTransformPrivateElementsOrClassStaticBlocks) { for (const member of node.members) { if (willTransformStaticElementsOfDecoratedClass && classElementOrClassElementParameterIsDecorated( @@ -80540,7 +81097,7 @@ ${lanes.join("\n")} checkTypeParameterListsIdentical(symbol); checkFunctionOrConstructorSymbol(symbol); checkClassForDuplicateDeclarations(node); - const nodeInAmbientContext = !!(node.flags & 16777216 /* Ambient */); + const nodeInAmbientContext = !!(node.flags & 33554432 /* Ambient */); if (!nodeInAmbientContext) { checkClassForStaticPropertyNameConflicts(node); } @@ -80588,18 +81145,18 @@ ${lanes.join("\n")} } if (baseConstructorType.flags & 8650752 /* TypeVariable */) { if (!isMixinConstructorType(staticType)) { - error(node.name || node, Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any); + error2(node.name || node, Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any); } else { const constructSignatures = getSignaturesOfType(baseConstructorType, 1 /* Construct */); if (constructSignatures.some((signature) => signature.flags & 4 /* Abstract */) && !hasSyntacticModifier(node, 256 /* Abstract */)) { - error(node.name || node, Diagnostics.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract); + error2(node.name || node, Diagnostics.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract); } } } if (!(staticBaseType.symbol && staticBaseType.symbol.flags & 32 /* Class */) && !(baseConstructorType.flags & 8650752 /* TypeVariable */)) { const constructors = getInstantiatedConstructorsForTypeArguments(staticBaseType, baseTypeNode.typeArguments, baseTypeNode); if (forEach(constructors, (sig) => !isJSConstructor(sig.declaration) && !isTypeIdenticalTo(getReturnTypeOfSignature(sig), baseType))) { - error(baseTypeNode.expression, Diagnostics.Base_constructors_must_all_have_the_same_return_type); + error2(baseTypeNode.expression, Diagnostics.Base_constructors_must_all_have_the_same_return_type); } } checkKindsOfPropertyMemberOverrides(type, baseType); @@ -80611,7 +81168,7 @@ ${lanes.join("\n")} if (implementedTypeNodes) { for (const typeRefNode of implementedTypeNodes) { if (!isEntityNameExpression(typeRefNode.expression) || isOptionalChain(typeRefNode.expression)) { - error(typeRefNode.expression, Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments); + error2(typeRefNode.expression, Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments); } checkTypeReferenceNode(typeRefNode); addLazyDiagnostic(createImplementsDiagnostics(typeRefNode)); @@ -80644,7 +81201,7 @@ ${lanes.join("\n")} issueMemberSpecificError(node, typeWithThis, baseWithThis, genericDiag); } } else { - error(typeRefNode, Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members); + error2(typeRefNode, Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members); } } }; @@ -80711,7 +81268,7 @@ ${lanes.join("\n")} } function checkMemberForOverrideModifier(node, staticType, baseStaticType, baseWithThis, type, typeWithThis, memberHasOverrideModifier, memberHasAbstractModifier, memberIsStatic, memberIsParameterProperty, memberName, errorNode) { const isJs = isInJSFile(node); - const nodeInAmbientContext = !!(node.flags & 16777216 /* Ambient */); + const nodeInAmbientContext = !!(node.flags & 33554432 /* Ambient */); if (baseWithThis && (memberHasOverrideModifier || compilerOptions.noImplicitOverride)) { const memberEscapedName = escapeLeadingUnderscores(memberName); const thisType = memberIsStatic ? staticType : typeWithThis; @@ -80722,12 +81279,12 @@ ${lanes.join("\n")} if (prop && !baseProp && memberHasOverrideModifier) { if (errorNode) { const suggestion = getSuggestedSymbolForNonexistentClassMember(memberName, baseType); - suggestion ? error( + suggestion ? error2( errorNode, isJs ? Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1 : Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1, baseClassName, symbolToString(suggestion) - ) : error( + ) : error2( errorNode, isJs ? Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0 : Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0, baseClassName @@ -80742,12 +81299,12 @@ ${lanes.join("\n")} if (!baseHasAbstract) { if (errorNode) { const diag2 = memberIsParameterProperty ? isJs ? Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0 : Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0 : isJs ? Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0 : Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0; - error(errorNode, diag2, baseClassName); + error2(errorNode, diag2, baseClassName); } return 1 /* NeedsOverride */; } else if (memberHasAbstractModifier && baseHasAbstract) { if (errorNode) { - error(errorNode, Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0, baseClassName); + error2(errorNode, Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0, baseClassName); } return 1 /* NeedsOverride */; } @@ -80755,7 +81312,7 @@ ${lanes.join("\n")} } else if (memberHasOverrideModifier) { if (errorNode) { const className = typeToString(type); - error( + error2( errorNode, isJs ? Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class : Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class, className @@ -80808,7 +81365,7 @@ ${lanes.join("\n")} if (declaration && hasEffectiveModifier(declaration, 8 /* Private */)) { const typeClassDeclaration = getClassLikeDeclarationOfSymbol(type.symbol); if (!isNodeWithinClass(node, typeClassDeclaration)) { - error(node, Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private, getFullyQualifiedName(type.symbol)); + error2(node, Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private, getFullyQualifiedName(type.symbol)); } } } @@ -80845,7 +81402,7 @@ ${lanes.join("\n")} return getCheckFlags(s) & 1 /* Instantiated */ ? s.links.target : s; } function getClassOrInterfaceDeclarationsOfSymbol(symbol) { - return filter(symbol.declarations, (d) => d.kind === 262 /* ClassDeclaration */ || d.kind === 263 /* InterfaceDeclaration */); + return filter(symbol.declarations, (d) => d.kind === 263 /* ClassDeclaration */ || d.kind === 264 /* InterfaceDeclaration */); } function checkKindsOfPropertyMemberOverrides(type, baseType) { var _a, _b, _c, _d; @@ -80877,14 +81434,14 @@ ${lanes.join("\n")} } } if (!inheritedAbstractMemberNotImplementedError) { - inheritedAbstractMemberNotImplementedError = error( + inheritedAbstractMemberNotImplementedError = error2( derivedClassDecl, Diagnostics.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1, typeToString(type), typeToString(baseType) ); } - if (derivedClassDecl.kind === 230 /* ClassExpression */) { + if (derivedClassDecl.kind === 231 /* ClassExpression */) { addRelatedInfo( inheritedAbstractMemberNotImplementedError, createDiagnosticForNode( @@ -80923,15 +81480,15 @@ ${lanes.join("\n")} const overriddenInstanceAccessor = basePropertyFlags === 4 /* Property */ && derivedPropertyFlags !== 4 /* Property */; if (overriddenInstanceProperty || overriddenInstanceAccessor) { const errorMessage2 = overriddenInstanceProperty ? Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property : Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor; - error(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage2, symbolToString(base), typeToString(baseType), typeToString(type)); + error2(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage2, symbolToString(base), typeToString(baseType), typeToString(type)); } else if (useDefineForClassFields) { - const uninitialized = (_c = derived.declarations) == null ? void 0 : _c.find((d) => d.kind === 171 /* PropertyDeclaration */ && !d.initializer); - if (uninitialized && !(derived.flags & 33554432 /* Transient */) && !(baseDeclarationFlags & 256 /* Abstract */) && !(derivedDeclarationFlags & 256 /* Abstract */) && !((_d = derived.declarations) == null ? void 0 : _d.some((d) => !!(d.flags & 16777216 /* Ambient */)))) { + const uninitialized = (_c = derived.declarations) == null ? void 0 : _c.find((d) => d.kind === 172 /* PropertyDeclaration */ && !d.initializer); + if (uninitialized && !(derived.flags & 33554432 /* Transient */) && !(baseDeclarationFlags & 256 /* Abstract */) && !(derivedDeclarationFlags & 256 /* Abstract */) && !((_d = derived.declarations) == null ? void 0 : _d.some((d) => !!(d.flags & 33554432 /* Ambient */)))) { const constructor = findConstructorDeclaration(getClassLikeDeclarationOfSymbol(type.symbol)); const propName = uninitialized.name; if (uninitialized.exclamationToken || !constructor || !isIdentifier(propName) || !strictNullChecks || !isPropertyInitializedInConstructor(propName, type, constructor)) { const errorMessage2 = Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration; - error(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage2, symbolToString(base), typeToString(baseType)); + error2(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage2, symbolToString(base), typeToString(baseType)); } } } @@ -80948,7 +81505,7 @@ ${lanes.join("\n")} } else { errorMessage = Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function; } - error(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage, typeToString(baseType), symbolToString(base), typeToString(type)); + error2(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage, typeToString(baseType), symbolToString(base), typeToString(type)); } } } @@ -81013,7 +81570,7 @@ ${lanes.join("\n")} return ok; } function checkPropertyInitialization(node) { - if (!strictNullChecks || !strictPropertyInitialization || node.flags & 16777216 /* Ambient */) { + if (!strictNullChecks || !strictPropertyInitialization || node.flags & 33554432 /* Ambient */) { return; } const constructor = findConstructorDeclaration(node); @@ -81027,7 +81584,7 @@ ${lanes.join("\n")} const type = getTypeOfSymbol(getSymbolOfDeclaration(member)); if (!(type.flags & 3 /* AnyOrUnknown */ || containsUndefinedType(type))) { if (!constructor || !isPropertyInitializedInConstructor(propName, type, constructor)) { - error(member.name, Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor, declarationNameToString(propName)); + error2(member.name, Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor, declarationNameToString(propName)); } } } @@ -81035,7 +81592,7 @@ ${lanes.join("\n")} } } function isPropertyWithoutInitializer(node) { - return node.kind === 171 /* PropertyDeclaration */ && !hasAbstractModifier(node) && !node.exclamationToken && !node.initializer; + return node.kind === 172 /* PropertyDeclaration */ && !hasAbstractModifier(node) && !node.exclamationToken && !node.initializer; } function isPropertyInitializedInStaticBlocks(propName, propType, staticBlocks, startPos, endPos) { for (const staticBlock of staticBlocks) { @@ -81069,7 +81626,7 @@ ${lanes.join("\n")} checkExportsOnMergedDeclarations(node); const symbol = getSymbolOfDeclaration(node); checkTypeParameterListsIdentical(symbol); - const firstInterfaceDecl = getDeclarationOfKind(symbol, 263 /* InterfaceDeclaration */); + const firstInterfaceDecl = getDeclarationOfKind(symbol, 264 /* InterfaceDeclaration */); if (node === firstInterfaceDecl) { const type = getDeclaredTypeOfSymbol(symbol); const typeWithThis = getTypeWithThisArgument(type); @@ -81084,7 +81641,7 @@ ${lanes.join("\n")} }); forEach(getInterfaceBaseTypeNodes(node), (heritageElement) => { if (!isEntityNameExpression(heritageElement.expression) || isOptionalChain(heritageElement.expression)) { - error(heritageElement.expression, Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments); + error2(heritageElement.expression, Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments); } checkTypeReferenceNode(heritageElement); }); @@ -81101,7 +81658,7 @@ ${lanes.join("\n")} checkTypeParameters(node.typeParameters); if (node.type.kind === 141 /* IntrinsicKeyword */) { if (!intrinsicTypeKinds.has(node.name.escapedText) || length(node.typeParameters) !== 1) { - error(node.type, Diagnostics.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types); + error2(node.type, Diagnostics.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types); } } else { checkSourceElement(node.type); @@ -81122,23 +81679,23 @@ ${lanes.join("\n")} } function computeMemberValue(member, autoValue) { if (isComputedNonLiteralName(member.name)) { - error(member.name, Diagnostics.Computed_property_names_are_not_allowed_in_enums); + error2(member.name, Diagnostics.Computed_property_names_are_not_allowed_in_enums); } else { const text = getTextOfPropertyName(member.name); if (isNumericLiteralName(text) && !isInfinityOrNaNString(text)) { - error(member.name, Diagnostics.An_enum_member_cannot_have_a_numeric_name); + error2(member.name, Diagnostics.An_enum_member_cannot_have_a_numeric_name); } } if (member.initializer) { return computeConstantValue(member); } - if (member.parent.flags & 16777216 /* Ambient */ && !isEnumConst(member.parent)) { + if (member.parent.flags & 33554432 /* Ambient */ && !isEnumConst(member.parent)) { return void 0; } if (autoValue !== void 0) { return autoValue; } - error(member.name, Diagnostics.Enum_member_must_have_initializer); + error2(member.name, Diagnostics.Enum_member_must_have_initializer); return void 0; } function computeConstantValue(member) { @@ -81147,12 +81704,12 @@ ${lanes.join("\n")} const value = evaluate(initializer, member); if (value !== void 0) { if (isConstEnum && typeof value === "number" && !isFinite(value)) { - error(initializer, isNaN(value) ? Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN : Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value); + error2(initializer, isNaN(value) ? Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN : Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value); } } else if (isConstEnum) { - error(initializer, Diagnostics.const_enum_member_initializers_must_be_constant_expressions); - } else if (member.parent.flags & 16777216 /* Ambient */) { - error(initializer, Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression); + error2(initializer, Diagnostics.const_enum_member_initializers_must_be_constant_expressions); + } else if (member.parent.flags & 33554432 /* Ambient */) { + error2(initializer, Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression); } else { checkTypeAssignableTo(checkExpression(initializer), numberType, initializer, Diagnostics.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values); } @@ -81160,7 +81717,7 @@ ${lanes.join("\n")} } function evaluate(expr, location) { switch (expr.kind) { - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: const value = evaluate(expr.operand, location); if (typeof value === "number") { switch (expr.operator) { @@ -81173,7 +81730,7 @@ ${lanes.join("\n")} } } break; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: const left = evaluate(expr.left, location); const right = evaluate(expr.right, location); if (typeof left === "number" && typeof right === "number") { @@ -81210,18 +81767,30 @@ ${lanes.join("\n")} case 11 /* StringLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: return expr.text; - case 227 /* TemplateExpression */: + case 228 /* TemplateExpression */: return evaluateTemplateExpression(expr, location); case 9 /* NumericLiteral */: checkGrammarNumericLiteral(expr); return +expr.text; - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return evaluate(expr.expression, location); - case 80 /* Identifier */: - if (isInfinityOrNaNString(expr.escapedText)) { - return +expr.escapedText; + case 80 /* Identifier */: { + const identifier = expr; + if (isInfinityOrNaNString(identifier.escapedText) && resolveEntityName( + identifier, + 111551 /* Value */, + /*ignoreErrors*/ + true + ) === getGlobalSymbol( + identifier.escapedText, + 111551 /* Value */, + /*diagnostic*/ + void 0 + )) { + return +identifier.escapedText; } - case 210 /* PropertyAccessExpression */: + } + case 211 /* PropertyAccessExpression */: if (isEntityNameExpression(expr)) { const symbol = resolveEntityName( expr, @@ -81231,18 +81800,18 @@ ${lanes.join("\n")} ); if (symbol) { if (symbol.flags & 8 /* EnumMember */) { - return evaluateEnumMember(expr, symbol, location); + return location ? evaluateEnumMember(expr, symbol, location) : getEnumMemberValue(symbol.valueDeclaration); } - if (isConstVariable(symbol)) { + if (isConstantVariable(symbol)) { const declaration = symbol.valueDeclaration; - if (declaration && !declaration.type && declaration.initializer && declaration !== location && isBlockScopedNameDeclaredBeforeUse(declaration, location)) { + if (declaration && !declaration.type && declaration.initializer && (!location || declaration !== location && isBlockScopedNameDeclaredBeforeUse(declaration, location))) { return evaluate(declaration.initializer, declaration); } } } } break; - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: const root = expr.expression; if (isEntityNameExpression(root) && isStringLiteralLike(expr.argumentExpression)) { const rootSymbol = resolveEntityName( @@ -81255,7 +81824,7 @@ ${lanes.join("\n")} const name = escapeLeadingUnderscores(expr.argumentExpression.text); const member = rootSymbol.exports.get(name); if (member) { - return evaluateEnumMember(expr, member, location); + return location ? evaluateEnumMember(expr, member, location) : getEnumMemberValue(member.valueDeclaration); } } } @@ -81266,11 +81835,11 @@ ${lanes.join("\n")} function evaluateEnumMember(expr, symbol, location) { const declaration = symbol.valueDeclaration; if (!declaration || declaration === location) { - error(expr, Diagnostics.Property_0_is_used_before_being_assigned, symbolToString(symbol)); + error2(expr, Diagnostics.Property_0_is_used_before_being_assigned, symbolToString(symbol)); return void 0; } if (!isBlockScopedNameDeclaredBeforeUse(declaration, location)) { - error(expr, Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums); + error2(expr, Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums); return 0; } return getEnumMemberValue(declaration); @@ -81303,13 +81872,13 @@ ${lanes.join("\n")} const enumIsConst = isEnumConst(node); forEach(enumSymbol.declarations, (decl) => { if (isEnumDeclaration(decl) && isEnumConst(decl) !== enumIsConst) { - error(getNameOfDeclaration(decl), Diagnostics.Enum_declarations_must_all_be_const_or_non_const); + error2(getNameOfDeclaration(decl), Diagnostics.Enum_declarations_must_all_be_const_or_non_const); } }); } let seenEnumMissingInitialInitializer = false; forEach(enumSymbol.declarations, (declaration) => { - if (declaration.kind !== 265 /* EnumDeclaration */) { + if (declaration.kind !== 266 /* EnumDeclaration */) { return false; } const enumDeclaration = declaration; @@ -81319,7 +81888,7 @@ ${lanes.join("\n")} const firstEnumMember = enumDeclaration.members[0]; if (!firstEnumMember.initializer) { if (seenEnumMissingInitialInitializer) { - error(firstEnumMember.name, Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element); + error2(firstEnumMember.name, Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element); } else { seenEnumMissingInitialInitializer = true; } @@ -81329,7 +81898,7 @@ ${lanes.join("\n")} } function checkEnumMember(node) { if (isPrivateIdentifier(node.name)) { - error(node, Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier); + error2(node, Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier); } if (node.initializer) { checkExpression(node.initializer); @@ -81339,7 +81908,7 @@ ${lanes.join("\n")} const declarations = symbol.declarations; if (declarations) { for (const declaration of declarations) { - if ((declaration.kind === 262 /* ClassDeclaration */ || declaration.kind === 261 /* FunctionDeclaration */ && nodeIsPresent(declaration.body)) && !(declaration.flags & 16777216 /* Ambient */)) { + if ((declaration.kind === 263 /* ClassDeclaration */ || declaration.kind === 262 /* FunctionDeclaration */ && nodeIsPresent(declaration.body)) && !(declaration.flags & 33554432 /* Ambient */)) { return declaration; } } @@ -81368,9 +81937,9 @@ ${lanes.join("\n")} function checkModuleDeclarationDiagnostics() { var _a, _b; const isGlobalAugmentation = isGlobalScopeAugmentation(node); - const inAmbientContext = node.flags & 16777216 /* Ambient */; + const inAmbientContext = node.flags & 33554432 /* Ambient */; if (isGlobalAugmentation && !inAmbientContext) { - error(node.name, Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context); + error2(node.name, Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context); } const isAmbientExternalModule = isAmbientModule(node); const contextErrorMessage = isAmbientExternalModule ? Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file : Diagnostics.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module; @@ -81389,26 +81958,26 @@ ${lanes.join("\n")} const symbol = getSymbolOfDeclaration(node); if (symbol.flags & 512 /* ValueModule */ && !inAmbientContext && isInstantiatedModule(node, shouldPreserveConstEnums(compilerOptions))) { if (getIsolatedModules(compilerOptions) && !getSourceFileOfNode(node).externalModuleIndicator) { - error(node.name, Diagnostics.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement, isolatedModulesLikeFlagName); + error2(node.name, Diagnostics.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement, isolatedModulesLikeFlagName); } if (((_a = symbol.declarations) == null ? void 0 : _a.length) > 1) { const firstNonAmbientClassOrFunc = getFirstNonAmbientClassOrFunctionDeclaration(symbol); if (firstNonAmbientClassOrFunc) { if (getSourceFileOfNode(node) !== getSourceFileOfNode(firstNonAmbientClassOrFunc)) { - error(node.name, Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged); + error2(node.name, Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged); } else if (node.pos < firstNonAmbientClassOrFunc.pos) { - error(node.name, Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged); + error2(node.name, Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged); } } - const mergedClass = getDeclarationOfKind(symbol, 262 /* ClassDeclaration */); + const mergedClass = getDeclarationOfKind(symbol, 263 /* ClassDeclaration */); if (mergedClass && inSameLexicalScope(node, mergedClass)) { getNodeLinks(node).flags |= 2048 /* LexicalModuleMergesWithClass */; } } - if (compilerOptions.verbatimModuleSyntax && node.parent.kind === 311 /* SourceFile */ && (moduleKind === 1 /* CommonJS */ || node.parent.impliedNodeFormat === 1 /* CommonJS */)) { + if (compilerOptions.verbatimModuleSyntax && node.parent.kind === 312 /* SourceFile */ && (moduleKind === 1 /* CommonJS */ || node.parent.impliedNodeFormat === 1 /* CommonJS */)) { const exportModifier = (_b = node.modifiers) == null ? void 0 : _b.find((m) => m.kind === 95 /* ExportKeyword */); if (exportModifier) { - error(exportModifier, Diagnostics.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); + error2(exportModifier, Diagnostics.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); } } } @@ -81422,15 +81991,15 @@ ${lanes.join("\n")} } } else if (isGlobalSourceFile(node.parent)) { if (isGlobalAugmentation) { - error(node.name, Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations); + error2(node.name, Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations); } else if (isExternalModuleNameRelative(getTextOfIdentifierOrLiteral(node.name))) { - error(node.name, Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name); + error2(node.name, Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name); } } else { if (isGlobalAugmentation) { - error(node.name, Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations); + error2(node.name, Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations); } else { - error(node.name, Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces); + error2(node.name, Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces); } } } @@ -81438,21 +82007,21 @@ ${lanes.join("\n")} } function checkModuleAugmentationElement(node, isGlobalAugmentation) { switch (node.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: for (const decl of node.declarationList.declarations) { checkModuleAugmentationElement(decl, isGlobalAugmentation); } break; - case 276 /* ExportAssignment */: - case 277 /* ExportDeclaration */: + case 277 /* ExportAssignment */: + case 278 /* ExportDeclaration */: grammarErrorOnFirstToken(node, Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations); break; - case 270 /* ImportEqualsDeclaration */: - case 271 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 272 /* ImportDeclaration */: grammarErrorOnFirstToken(node, Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module); break; - case 207 /* BindingElement */: - case 259 /* VariableDeclaration */: + case 208 /* BindingElement */: + case 260 /* VariableDeclaration */: const name = node.name; if (isBindingPattern(name)) { for (const el of name.elements) { @@ -81460,12 +82029,12 @@ ${lanes.join("\n")} } break; } - case 262 /* ClassDeclaration */: - case 265 /* EnumDeclaration */: - case 261 /* FunctionDeclaration */: - case 263 /* InterfaceDeclaration */: - case 266 /* ModuleDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 263 /* ClassDeclaration */: + case 266 /* EnumDeclaration */: + case 262 /* FunctionDeclaration */: + case 264 /* InterfaceDeclaration */: + case 267 /* ModuleDeclaration */: + case 265 /* TypeAliasDeclaration */: if (isGlobalAugmentation) { return; } @@ -81476,12 +82045,12 @@ ${lanes.join("\n")} switch (node.kind) { case 80 /* Identifier */: return node; - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: do { node = node.left; } while (node.kind !== 80 /* Identifier */); return node; - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: do { if (isModuleExportsAccessExpression(node.expression) && !isPrivateIdentifier(node.name)) { return node.name; @@ -81497,17 +82066,17 @@ ${lanes.join("\n")} return false; } if (!isStringLiteral(moduleName)) { - error(moduleName, Diagnostics.String_literal_expected); + error2(moduleName, Diagnostics.String_literal_expected); return false; } - const inAmbientExternalModule = node.parent.kind === 267 /* ModuleBlock */ && isAmbientModule(node.parent.parent); - if (node.parent.kind !== 311 /* SourceFile */ && !inAmbientExternalModule) { - error(moduleName, node.kind === 277 /* ExportDeclaration */ ? Diagnostics.Export_declarations_are_not_permitted_in_a_namespace : Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module); + const inAmbientExternalModule = node.parent.kind === 268 /* ModuleBlock */ && isAmbientModule(node.parent.parent); + if (node.parent.kind !== 312 /* SourceFile */ && !inAmbientExternalModule) { + error2(moduleName, node.kind === 278 /* ExportDeclaration */ ? Diagnostics.Export_declarations_are_not_permitted_in_a_namespace : Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module); return false; } if (inAmbientExternalModule && isExternalModuleNameRelative(moduleName.text)) { if (!isTopLevelInExternalModuleAugmentation(node)) { - error(node, Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name); + error2(node, Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name); return false; } } @@ -81516,7 +82085,7 @@ ${lanes.join("\n")} for (const clause of node.assertClause.elements) { if (!isStringLiteral(clause.value)) { hasError = true; - error(clause.value, Diagnostics.Import_assertion_values_must_be_string_literal_expressions); + error2(clause.value, Diagnostics.Import_assertion_values_must_be_string_literal_expressions); } } return !hasError; @@ -81531,9 +82100,9 @@ ${lanes.join("\n")} symbol = getMergedSymbol(symbol.exportSymbol || symbol); if (isInJSFile(node) && !(target.flags & 111551 /* Value */) && !isTypeOnlyImportOrExportDeclaration(node)) { const errorNode = isImportOrExportSpecifier(node) ? node.propertyName || node.name : isNamedDeclaration(node) ? node.name : node; - Debug.assert(node.kind !== 279 /* NamespaceExport */); - if (node.kind === 280 /* ExportSpecifier */) { - const diag2 = error(errorNode, Diagnostics.Types_cannot_appear_in_export_declarations_in_JavaScript_files); + Debug.assert(node.kind !== 280 /* NamespaceExport */); + if (node.kind === 281 /* ExportSpecifier */) { + const diag2 = error2(errorNode, Diagnostics.Types_cannot_appear_in_export_declarations_in_JavaScript_files); const alreadyExportedSymbol = (_b = (_a = getSourceFileOfNode(node).symbol) == null ? void 0 : _a.exports) == null ? void 0 : _b.get((node.propertyName || node.name).escapedText); if (alreadyExportedSymbol === target) { const exportingDeclaration = (_c = alreadyExportedSymbol.declarations) == null ? void 0 : _c.find(isJSDocNode); @@ -81546,11 +82115,11 @@ ${lanes.join("\n")} } } } else { - Debug.assert(node.kind !== 259 /* VariableDeclaration */); + Debug.assert(node.kind !== 260 /* VariableDeclaration */); const importDeclaration = findAncestor(node, or(isImportDeclaration, isImportEqualsDeclaration)); const moduleSpecifier = (importDeclaration && ((_d = tryGetModuleSpecifierFromDeclaration(importDeclaration)) == null ? void 0 : _d.text)) ?? "..."; const importedIdentifier = unescapeLeadingUnderscores(isIdentifier(errorNode) ? errorNode.escapedText : symbol.escapedName); - error( + error2( errorNode, Diagnostics._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation, importedIdentifier, @@ -81559,47 +82128,47 @@ ${lanes.join("\n")} } return; } - const targetFlags = getAllSymbolFlags(target); + const targetFlags = getSymbolFlags(target); const excludedMeanings = (symbol.flags & (111551 /* Value */ | 1048576 /* ExportValue */) ? 111551 /* Value */ : 0) | (symbol.flags & 788968 /* Type */ ? 788968 /* Type */ : 0) | (symbol.flags & 1920 /* Namespace */ ? 1920 /* Namespace */ : 0); if (targetFlags & excludedMeanings) { - const message = node.kind === 280 /* ExportSpecifier */ ? Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0 : Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0; - error(node, message, symbolToString(symbol)); + const message = node.kind === 281 /* ExportSpecifier */ ? Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0 : Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0; + error2(node, message, symbolToString(symbol)); } - if (getIsolatedModules(compilerOptions) && !isTypeOnlyImportOrExportDeclaration(node) && !(node.flags & 16777216 /* Ambient */)) { + if (getIsolatedModules(compilerOptions) && !isTypeOnlyImportOrExportDeclaration(node) && !(node.flags & 33554432 /* Ambient */)) { const typeOnlyAlias = getTypeOnlyAliasDeclaration(symbol); const isType = !(targetFlags & 111551 /* Value */); if (isType || typeOnlyAlias) { switch (node.kind) { - case 272 /* ImportClause */: - case 275 /* ImportSpecifier */: - case 270 /* ImportEqualsDeclaration */: { + case 273 /* ImportClause */: + case 276 /* ImportSpecifier */: + case 271 /* ImportEqualsDeclaration */: { if (compilerOptions.preserveValueImports || compilerOptions.verbatimModuleSyntax) { Debug.assertIsDefined(node.name, "An ImportClause with a symbol should have a name"); const message = compilerOptions.verbatimModuleSyntax && isInternalModuleImportEqualsDeclaration(node) ? Diagnostics.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled : isType ? compilerOptions.verbatimModuleSyntax ? Diagnostics._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled : Diagnostics._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled : compilerOptions.verbatimModuleSyntax ? Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled : Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled; - const name = idText(node.kind === 275 /* ImportSpecifier */ ? node.propertyName || node.name : node.name); + const name = idText(node.kind === 276 /* ImportSpecifier */ ? node.propertyName || node.name : node.name); addTypeOnlyDeclarationRelatedInfo( - error(node, message, name), + error2(node, message, name), isType ? void 0 : typeOnlyAlias, name ); } - if (isType && node.kind === 270 /* ImportEqualsDeclaration */ && hasEffectiveModifier(node, 1 /* Export */)) { - error(node, Diagnostics.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled, isolatedModulesLikeFlagName); + if (isType && node.kind === 271 /* ImportEqualsDeclaration */ && hasEffectiveModifier(node, 1 /* Export */)) { + error2(node, Diagnostics.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled, isolatedModulesLikeFlagName); } break; } - case 280 /* ExportSpecifier */: { + case 281 /* ExportSpecifier */: { if (compilerOptions.verbatimModuleSyntax || getSourceFileOfNode(typeOnlyAlias) !== getSourceFileOfNode(node)) { const name = idText(node.propertyName || node.name); - const diagnostic = isType ? error(node, Diagnostics.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type, isolatedModulesLikeFlagName) : error(node, Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled, name, isolatedModulesLikeFlagName); + const diagnostic = isType ? error2(node, Diagnostics.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type, isolatedModulesLikeFlagName) : error2(node, Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled, name, isolatedModulesLikeFlagName); addTypeOnlyDeclarationRelatedInfo(diagnostic, isType ? void 0 : typeOnlyAlias, name); break; } } } } - if (compilerOptions.verbatimModuleSyntax && node.kind !== 270 /* ImportEqualsDeclaration */ && !isInJSFile(node) && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { - error(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); + if (compilerOptions.verbatimModuleSyntax && node.kind !== 271 /* ImportEqualsDeclaration */ && !isInJSFile(node) && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { + error2(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); } } if (isImportSpecifier(node)) { @@ -81641,7 +82210,7 @@ ${lanes.join("\n")} function checkImportBinding(node) { checkCollisionsForDeclarationName(node, node.name); checkAliasSymbol(node); - if (node.kind === 275 /* ImportSpecifier */ && idText(node.propertyName || node.name) === "default" && getESModuleInterop(compilerOptions) && moduleKind !== 4 /* System */ && (moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { + if (node.kind === 276 /* ImportSpecifier */ && idText(node.propertyName || node.name) === "default" && getESModuleInterop(compilerOptions) && moduleKind !== 4 /* System */ && (moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { checkExternalEmitHelpers(node, 131072 /* ImportDefault */); } } @@ -81688,7 +82257,7 @@ ${lanes.join("\n")} checkImportBinding(importClause); } if (importClause.namedBindings) { - if (importClause.namedBindings.kind === 273 /* NamespaceImport */) { + if (importClause.namedBindings.kind === 274 /* NamespaceImport */) { checkImportBinding(importClause.namedBindings); if (moduleKind !== 4 /* System */ && (moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */) && getESModuleInterop(compilerOptions)) { checkExternalEmitHelpers(node, 65536 /* ImportStar */); @@ -81714,14 +82283,14 @@ ${lanes.join("\n")} if (hasSyntacticModifier(node, 1 /* Export */)) { markExportAsReferenced(node); } - if (node.moduleReference.kind !== 282 /* ExternalModuleReference */) { + if (node.moduleReference.kind !== 283 /* ExternalModuleReference */) { const target = resolveAlias(getSymbolOfDeclaration(node)); if (target !== unknownSymbol) { - const targetFlags = getAllSymbolFlags(target); + const targetFlags = getSymbolFlags(target); if (targetFlags & 111551 /* Value */) { const moduleName = getFirstIdentifier(node.moduleReference); if (!(resolveEntityName(moduleName, 111551 /* Value */ | 1920 /* Namespace */).flags & 1920 /* Namespace */)) { - error(moduleName, Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name, declarationNameToString(moduleName)); + error2(moduleName, Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name, declarationNameToString(moduleName)); } } if (targetFlags & 788968 /* Type */) { @@ -81732,7 +82301,7 @@ ${lanes.join("\n")} grammarErrorOnNode(node, Diagnostics.An_import_alias_cannot_use_import_type); } } else { - if (moduleKind >= 5 /* ES2015 */ && getSourceFileOfNode(node).impliedNodeFormat === void 0 && !node.isTypeOnly && !(node.flags & 16777216 /* Ambient */)) { + if (moduleKind >= 5 /* ES2015 */ && getSourceFileOfNode(node).impliedNodeFormat === void 0 && !node.isTypeOnly && !(node.flags & 33554432 /* Ambient */)) { grammarErrorOnNode(node, Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead); } } @@ -81752,15 +82321,15 @@ ${lanes.join("\n")} if (!node.moduleSpecifier || checkExternalImportOrExportDeclaration(node)) { if (node.exportClause && !isNamespaceExport(node.exportClause)) { forEach(node.exportClause.elements, checkExportSpecifier); - const inAmbientExternalModule = node.parent.kind === 267 /* ModuleBlock */ && isAmbientModule(node.parent.parent); - const inAmbientNamespaceDeclaration = !inAmbientExternalModule && node.parent.kind === 267 /* ModuleBlock */ && !node.moduleSpecifier && node.flags & 16777216 /* Ambient */; - if (node.parent.kind !== 311 /* SourceFile */ && !inAmbientExternalModule && !inAmbientNamespaceDeclaration) { - error(node, Diagnostics.Export_declarations_are_not_permitted_in_a_namespace); + const inAmbientExternalModule = node.parent.kind === 268 /* ModuleBlock */ && isAmbientModule(node.parent.parent); + const inAmbientNamespaceDeclaration = !inAmbientExternalModule && node.parent.kind === 268 /* ModuleBlock */ && !node.moduleSpecifier && node.flags & 33554432 /* Ambient */; + if (node.parent.kind !== 312 /* SourceFile */ && !inAmbientExternalModule && !inAmbientNamespaceDeclaration) { + error2(node, Diagnostics.Export_declarations_are_not_permitted_in_a_namespace); } } else { const moduleSymbol = resolveExternalModuleName(node, node.moduleSpecifier); if (moduleSymbol && hasExportAssignmentSymbol(moduleSymbol)) { - error(node.moduleSpecifier, Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk, symbolToString(moduleSymbol)); + error2(node.moduleSpecifier, Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk, symbolToString(moduleSymbol)); } else if (node.exportClause) { checkAliasSymbol(node.exportClause); } @@ -81779,13 +82348,13 @@ ${lanes.join("\n")} } function checkGrammarExportDeclaration(node) { var _a; - if (node.isTypeOnly && ((_a = node.exportClause) == null ? void 0 : _a.kind) === 278 /* NamedExports */) { + if (node.isTypeOnly && ((_a = node.exportClause) == null ? void 0 : _a.kind) === 279 /* NamedExports */) { return checkGrammarNamedImportsOrExports(node.exportClause); } return false; } function checkGrammarModuleElementContext(node, errorMessage) { - const isInAppropriateContext = node.parent.kind === 311 /* SourceFile */ || node.parent.kind === 267 /* ModuleBlock */ || node.parent.kind === 266 /* ModuleDeclaration */; + const isInAppropriateContext = node.parent.kind === 312 /* SourceFile */ || node.parent.kind === 268 /* ModuleBlock */ || node.parent.kind === 267 /* ModuleDeclaration */; if (!isInAppropriateContext) { grammarErrorOnFirstToken(node, errorMessage); } @@ -81821,7 +82390,7 @@ ${lanes.join("\n")} } for (const statement of sourceFile.statements) { if (canConvertImportDeclarationToTypeOnly(statement) || canConvertImportEqualsDeclarationToTypeOnly(statement)) { - error( + error2( statement, Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error ); @@ -81851,13 +82420,13 @@ ${lanes.join("\n")} true ); if (symbol && (symbol === undefinedSymbol || symbol === globalThisSymbol || symbol.declarations && isGlobalSourceFile(getDeclarationContainer(symbol.declarations[0])))) { - error(exportedName, Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module, idText(exportedName)); + error2(exportedName, Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module, idText(exportedName)); } else { if (!node.isTypeOnly && !node.parent.parent.isTypeOnly) { markExportAsReferenced(node); } const target = symbol && (symbol.flags & 2097152 /* Alias */ ? resolveAlias(symbol) : symbol); - if (!target || getAllSymbolFlags(target) & 111551 /* Value */) { + if (!target || getSymbolFlags(target) & 111551 /* Value */) { checkExpressionCached(node.propertyName || node.name); } } @@ -81872,12 +82441,12 @@ ${lanes.join("\n")} if (checkGrammarModuleElementContext(node, illegalContextMessage)) { return; } - const container = node.parent.kind === 311 /* SourceFile */ ? node.parent : node.parent.parent; - if (container.kind === 266 /* ModuleDeclaration */ && !isAmbientModule(container)) { + const container = node.parent.kind === 312 /* SourceFile */ ? node.parent : node.parent.parent; + if (container.kind === 267 /* ModuleDeclaration */ && !isAmbientModule(container)) { if (node.isExportEquals) { - error(node, Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace); + error2(node, Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace); } else { - error(node, Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module); + error2(node, Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module); } return; } @@ -81888,7 +82457,7 @@ ${lanes.join("\n")} if (typeAnnotationNode) { checkTypeAssignableTo(checkExpressionCached(node.expression), getTypeFromTypeNode(typeAnnotationNode), node.expression); } - const isIllegalExportDefaultInCJS = !node.isExportEquals && !(node.flags & 16777216 /* Ambient */) && compilerOptions.verbatimModuleSyntax && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */); + const isIllegalExportDefaultInCJS = !node.isExportEquals && !(node.flags & 33554432 /* Ambient */) && compilerOptions.verbatimModuleSyntax && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */); if (node.expression.kind === 80 /* Identifier */) { const id = node.expression; const sym = getExportSymbolOfValueSymbolIfExported(resolveEntityName( @@ -81902,17 +82471,17 @@ ${lanes.join("\n")} )); if (sym) { markAliasReferenced(sym, id); - if (getAllSymbolFlags(sym) & 111551 /* Value */) { + if (getSymbolFlags(sym) & 111551 /* Value */) { checkExpressionCached(id); - if (!isIllegalExportDefaultInCJS && !(node.flags & 16777216 /* Ambient */) && compilerOptions.verbatimModuleSyntax && getTypeOnlyAliasDeclaration(sym, 111551 /* Value */)) { - error( + if (!isIllegalExportDefaultInCJS && !(node.flags & 33554432 /* Ambient */) && compilerOptions.verbatimModuleSyntax && getTypeOnlyAliasDeclaration(sym, 111551 /* Value */)) { + error2( id, node.isExportEquals ? Diagnostics.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration : Diagnostics.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration, idText(id) ); } - } else if (!isIllegalExportDefaultInCJS && !(node.flags & 16777216 /* Ambient */) && compilerOptions.verbatimModuleSyntax) { - error( + } else if (!isIllegalExportDefaultInCJS && !(node.flags & 33554432 /* Ambient */) && compilerOptions.verbatimModuleSyntax) { + error2( id, node.isExportEquals ? Diagnostics.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type : Diagnostics.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type, idText(id) @@ -81932,16 +82501,16 @@ ${lanes.join("\n")} checkExpressionCached(node.expression); } if (isIllegalExportDefaultInCJS) { - error(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); + error2(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); } checkExternalModuleExports(container); - if (node.flags & 16777216 /* Ambient */ && !isEntityNameExpression(node.expression)) { + if (node.flags & 33554432 /* Ambient */ && !isEntityNameExpression(node.expression)) { grammarErrorOnNode(node.expression, Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context); } if (node.isExportEquals) { - if (moduleKind >= 5 /* ES2015 */ && (node.flags & 16777216 /* Ambient */ && getSourceFileOfNode(node).impliedNodeFormat === 99 /* ESNext */ || !(node.flags & 16777216 /* Ambient */) && getSourceFileOfNode(node).impliedNodeFormat !== 1 /* CommonJS */)) { + if (moduleKind >= 5 /* ES2015 */ && (node.flags & 33554432 /* Ambient */ && getSourceFileOfNode(node).impliedNodeFormat === 99 /* ESNext */ || !(node.flags & 33554432 /* Ambient */) && getSourceFileOfNode(node).impliedNodeFormat !== 1 /* CommonJS */)) { grammarErrorOnNode(node, Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead); - } else if (moduleKind === 4 /* System */ && !(node.flags & 16777216 /* Ambient */)) { + } else if (moduleKind === 4 /* System */ && !(node.flags & 33554432 /* Ambient */)) { grammarErrorOnNode(node, Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system); } } @@ -81957,7 +82526,7 @@ ${lanes.join("\n")} if (exportEqualsSymbol && hasExportedMembers(moduleSymbol)) { const declaration = getDeclarationOfAliasSymbol(exportEqualsSymbol) || exportEqualsSymbol.valueDeclaration; if (declaration && !isTopLevelInExternalModuleAugmentation(declaration) && !isInJSFile(declaration)) { - error(declaration, Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements); + error2(declaration, Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements); } } const exports = getExportsOfModule(moduleSymbol); @@ -82014,182 +82583,182 @@ ${lanes.join("\n")} const kind = node.kind; if (cancellationToken) { switch (kind) { - case 266 /* ModuleDeclaration */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 261 /* FunctionDeclaration */: + case 267 /* ModuleDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 262 /* FunctionDeclaration */: cancellationToken.throwIfCancellationRequested(); } } - if (kind >= 242 /* FirstStatement */ && kind <= 258 /* LastStatement */ && canHaveFlowNode(node) && node.flowNode && !isReachableFlowNode(node.flowNode)) { + if (kind >= 243 /* FirstStatement */ && kind <= 259 /* LastStatement */ && canHaveFlowNode(node) && node.flowNode && !isReachableFlowNode(node.flowNode)) { errorOrSuggestion(compilerOptions.allowUnreachableCode === false, node, Diagnostics.Unreachable_code_detected); } switch (kind) { - case 167 /* TypeParameter */: + case 168 /* TypeParameter */: return checkTypeParameter(node); - case 168 /* Parameter */: + case 169 /* Parameter */: return checkParameter(node); - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return checkPropertyDeclaration(node); - case 170 /* PropertySignature */: + case 171 /* PropertySignature */: return checkPropertySignature(node); - case 184 /* ConstructorType */: - case 183 /* FunctionType */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 180 /* IndexSignature */: + case 185 /* ConstructorType */: + case 184 /* FunctionType */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 181 /* IndexSignature */: return checkSignatureDeclaration(node); - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: return checkMethodDeclaration(node); - case 174 /* ClassStaticBlockDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: return checkClassStaticBlockDeclaration(node); - case 175 /* Constructor */: + case 176 /* Constructor */: return checkConstructorDeclaration(node); - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return checkAccessorDeclaration(node); - case 182 /* TypeReference */: + case 183 /* TypeReference */: return checkTypeReferenceNode(node); - case 181 /* TypePredicate */: + case 182 /* TypePredicate */: return checkTypePredicate(node); - case 185 /* TypeQuery */: + case 186 /* TypeQuery */: return checkTypeQuery(node); - case 186 /* TypeLiteral */: + case 187 /* TypeLiteral */: return checkTypeLiteral(node); - case 187 /* ArrayType */: + case 188 /* ArrayType */: return checkArrayType(node); - case 188 /* TupleType */: + case 189 /* TupleType */: return checkTupleType(node); - case 191 /* UnionType */: - case 192 /* IntersectionType */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: return checkUnionOrIntersectionType(node); - case 195 /* ParenthesizedType */: - case 189 /* OptionalType */: - case 190 /* RestType */: + case 196 /* ParenthesizedType */: + case 190 /* OptionalType */: + case 191 /* RestType */: return checkSourceElement(node.type); - case 196 /* ThisType */: + case 197 /* ThisType */: return checkThisType(node); - case 197 /* TypeOperator */: + case 198 /* TypeOperator */: return checkTypeOperator(node); - case 193 /* ConditionalType */: + case 194 /* ConditionalType */: return checkConditionalType(node); - case 194 /* InferType */: + case 195 /* InferType */: return checkInferType(node); - case 202 /* TemplateLiteralType */: + case 203 /* TemplateLiteralType */: return checkTemplateLiteralType(node); - case 204 /* ImportType */: + case 205 /* ImportType */: return checkImportType(node); - case 201 /* NamedTupleMember */: + case 202 /* NamedTupleMember */: return checkNamedTupleMember(node); - case 334 /* JSDocAugmentsTag */: + case 335 /* JSDocAugmentsTag */: return checkJSDocAugmentsTag(node); - case 335 /* JSDocImplementsTag */: + case 336 /* JSDocImplementsTag */: return checkJSDocImplementsTag(node); - case 352 /* JSDocTypedefTag */: - case 344 /* JSDocCallbackTag */: - case 346 /* JSDocEnumTag */: + case 353 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: + case 347 /* JSDocEnumTag */: return checkJSDocTypeAliasTag(node); - case 351 /* JSDocTemplateTag */: + case 352 /* JSDocTemplateTag */: return checkJSDocTemplateTag(node); - case 350 /* JSDocTypeTag */: + case 351 /* JSDocTypeTag */: return checkJSDocTypeTag(node); - case 330 /* JSDocLink */: - case 331 /* JSDocLinkCode */: - case 332 /* JSDocLinkPlain */: + case 331 /* JSDocLink */: + case 332 /* JSDocLinkCode */: + case 333 /* JSDocLinkPlain */: return checkJSDocLinkLikeTag(node); - case 347 /* JSDocParameterTag */: + case 348 /* JSDocParameterTag */: return checkJSDocParameterTag(node); - case 354 /* JSDocPropertyTag */: + case 355 /* JSDocPropertyTag */: return checkJSDocPropertyTag(node); - case 323 /* JSDocFunctionType */: + case 324 /* JSDocFunctionType */: checkJSDocFunctionType(node); - case 321 /* JSDocNonNullableType */: - case 320 /* JSDocNullableType */: - case 318 /* JSDocAllType */: - case 319 /* JSDocUnknownType */: - case 328 /* JSDocTypeLiteral */: + case 322 /* JSDocNonNullableType */: + case 321 /* JSDocNullableType */: + case 319 /* JSDocAllType */: + case 320 /* JSDocUnknownType */: + case 329 /* JSDocTypeLiteral */: checkJSDocTypeIsInJsFile(node); forEachChild(node, checkSourceElement); return; - case 324 /* JSDocVariadicType */: + case 325 /* JSDocVariadicType */: checkJSDocVariadicType(node); return; - case 315 /* JSDocTypeExpression */: + case 316 /* JSDocTypeExpression */: return checkSourceElement(node.type); - case 339 /* JSDocPublicTag */: - case 341 /* JSDocProtectedTag */: - case 340 /* JSDocPrivateTag */: + case 340 /* JSDocPublicTag */: + case 342 /* JSDocProtectedTag */: + case 341 /* JSDocPrivateTag */: return checkJSDocAccessibilityModifiers(node); - case 356 /* JSDocSatisfiesTag */: + case 357 /* JSDocSatisfiesTag */: return checkJSDocSatisfiesTag(node); - case 198 /* IndexedAccessType */: + case 199 /* IndexedAccessType */: return checkIndexedAccessType(node); - case 199 /* MappedType */: + case 200 /* MappedType */: return checkMappedType(node); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return checkFunctionDeclaration(node); - case 240 /* Block */: - case 267 /* ModuleBlock */: + case 241 /* Block */: + case 268 /* ModuleBlock */: return checkBlock(node); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return checkVariableStatement(node); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return checkExpressionStatement(node); - case 244 /* IfStatement */: + case 245 /* IfStatement */: return checkIfStatement(node); - case 245 /* DoStatement */: + case 246 /* DoStatement */: return checkDoStatement(node); - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: return checkWhileStatement(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return checkForStatement(node); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return checkForInStatement(node); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return checkForOfStatement(node); - case 250 /* ContinueStatement */: - case 251 /* BreakStatement */: + case 251 /* ContinueStatement */: + case 252 /* BreakStatement */: return checkBreakOrContinueStatement(node); - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: return checkReturnStatement(node); - case 253 /* WithStatement */: + case 254 /* WithStatement */: return checkWithStatement(node); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return checkSwitchStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return checkLabeledStatement(node); - case 256 /* ThrowStatement */: + case 257 /* ThrowStatement */: return checkThrowStatement(node); - case 257 /* TryStatement */: + case 258 /* TryStatement */: return checkTryStatement(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return checkVariableDeclaration(node); - case 207 /* BindingElement */: + case 208 /* BindingElement */: return checkBindingElement(node); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return checkClassDeclaration(node); - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: return checkInterfaceDeclaration(node); - case 264 /* TypeAliasDeclaration */: + case 265 /* TypeAliasDeclaration */: return checkTypeAliasDeclaration(node); - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return checkEnumDeclaration(node); - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return checkModuleDeclaration(node); - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return checkImportDeclaration(node); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return checkImportEqualsDeclaration(node); - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return checkExportDeclaration(node); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return checkExportAssignment(node); - case 241 /* EmptyStatement */: - case 258 /* DebuggerStatement */: + case 242 /* EmptyStatement */: + case 259 /* DebuggerStatement */: checkGrammarStatementInAmbientContext(node); return; - case 281 /* MissingDeclaration */: + case 282 /* MissingDeclaration */: return checkMissingDeclaration(node); } } @@ -82223,16 +82792,16 @@ ${lanes.join("\n")} const { parent: parent2 } = node; if (isParameter(parent2) && isJSDocFunctionType(parent2.parent)) { if (last(parent2.parent.parameters) !== parent2) { - error(node, Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list); + error2(node, Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list); } return; } if (!isJSDocTypeExpression(parent2)) { - error(node, Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature); + error2(node, Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature); } const paramTag = node.parent.parent; if (!isJSDocParameterTag(paramTag)) { - error(node, Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature); + error2(node, Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature); return; } const param = getParameterSymbolFromJSDoc(paramTag); @@ -82241,7 +82810,7 @@ ${lanes.join("\n")} } const host2 = getHostSignatureFromJSDoc(paramTag); if (!host2 || last(host2.parameters).symbol !== param) { - error(node, Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list); + error2(node, Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list); } } function getTypeFromJSDocVariadicType(node) { @@ -82288,38 +82857,38 @@ ${lanes.join("\n")} currentNode = node; instantiationCount = 0; switch (node.kind) { - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 214 /* TaggedTemplateExpression */: - case 169 /* Decorator */: - case 285 /* JsxOpeningElement */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 215 /* TaggedTemplateExpression */: + case 170 /* Decorator */: + case 286 /* JsxOpeningElement */: resolveUntypedCall(node); break; - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: checkFunctionExpressionOrObjectLiteralMethodDeferred(node); break; - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: checkAccessorDeclaration(node); break; - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: checkClassExpressionDeferred(node); break; - case 167 /* TypeParameter */: + case 168 /* TypeParameter */: checkTypeParameterDeferred(node); break; - case 284 /* JsxSelfClosingElement */: + case 285 /* JsxSelfClosingElement */: checkJsxSelfClosingElementDeferred(node); break; - case 283 /* JsxElement */: + case 284 /* JsxElement */: checkJsxElementDeferred(node); break; - case 215 /* TypeAssertionExpression */: - case 233 /* AsExpression */: - case 216 /* ParenthesizedExpression */: + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: + case 217 /* ParenthesizedExpression */: checkAssertionDeferred(node); } currentNode = saveCurrentNode; @@ -82377,7 +82946,7 @@ ${lanes.join("\n")} addLazyDiagnostic(() => { if (!node.isDeclarationFile && (compilerOptions.noUnusedLocals || compilerOptions.noUnusedParameters)) { checkUnusedIdentifiers(getPotentiallyUnusedIdentifiers(node), (containingNode, kind, diag2) => { - if (!containsParseError(containingNode) && unusedIsError(kind, !!(containingNode.flags & 16777216 /* Ambient */))) { + if (!containsParseError(containingNode) && unusedIsError(kind, !!(containingNode.flags & 33554432 /* Ambient */))) { diagnostics.add(diag2); } }); @@ -82456,7 +83025,7 @@ ${lanes.join("\n")} return diagnostics.getGlobalDiagnostics(); } function getSymbolsInScope(location, meaning) { - if (location.flags & 33554432 /* InWithStatement */) { + if (location.flags & 67108864 /* InWithStatement */) { return []; } const symbols = createSymbolTable(); @@ -82470,27 +83039,27 @@ ${lanes.join("\n")} copySymbols(location.locals, meaning); } switch (location.kind) { - case 311 /* SourceFile */: + case 312 /* SourceFile */: if (!isExternalModule(location)) break; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: copyLocallyVisibleExportSymbols(getSymbolOfDeclaration(location).exports, meaning & 2623475 /* ModuleMember */); break; - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: copySymbols(getSymbolOfDeclaration(location).exports, meaning & 8 /* EnumMember */); break; - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: const className = location.name; if (className) { copySymbol(location.symbol, meaning); } - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: if (!isStaticSymbol) { copySymbols(getMembersOfSymbol(getSymbolOfDeclaration(location)), meaning & 788968 /* Type */); } break; - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: const funcName = location.name; if (funcName) { copySymbol(location.symbol, meaning); @@ -82523,7 +83092,7 @@ ${lanes.join("\n")} function copyLocallyVisibleExportSymbols(source, meaning2) { if (meaning2) { source.forEach((symbol) => { - if (!getDeclarationOfKind(symbol, 280 /* ExportSpecifier */) && !getDeclarationOfKind(symbol, 279 /* NamespaceExport */)) { + if (!getDeclarationOfKind(symbol, 281 /* ExportSpecifier */) && !getDeclarationOfKind(symbol, 280 /* NamespaceExport */) && symbol.escapedName !== "default" /* Default */) { copySymbol(symbol, meaning2); } }); @@ -82534,16 +83103,16 @@ ${lanes.join("\n")} return name.kind === 80 /* Identifier */ && isTypeDeclaration(name.parent) && getNameOfDeclaration(name.parent) === name; } function isTypeReferenceIdentifier(node) { - while (node.parent.kind === 165 /* QualifiedName */) { + while (node.parent.kind === 166 /* QualifiedName */) { node = node.parent; } - return node.parent.kind === 182 /* TypeReference */; + return node.parent.kind === 183 /* TypeReference */; } function isInNameOfExpressionWithTypeArguments(node) { - while (node.parent.kind === 210 /* PropertyAccessExpression */) { + while (node.parent.kind === 211 /* PropertyAccessExpression */) { node = node.parent; } - return node.parent.kind === 232 /* ExpressionWithTypeArguments */; + return node.parent.kind === 233 /* ExpressionWithTypeArguments */; } function forEachEnclosingClass(node, callback) { let result; @@ -82569,13 +83138,13 @@ ${lanes.join("\n")} return !!forEachEnclosingClass(node, (n) => n === classDeclaration); } function getLeftSideOfImportEqualsOrExportAssignment(nodeOnRightSide) { - while (nodeOnRightSide.parent.kind === 165 /* QualifiedName */) { + while (nodeOnRightSide.parent.kind === 166 /* QualifiedName */) { nodeOnRightSide = nodeOnRightSide.parent; } - if (nodeOnRightSide.parent.kind === 270 /* ImportEqualsDeclaration */) { + if (nodeOnRightSide.parent.kind === 271 /* ImportEqualsDeclaration */) { return nodeOnRightSide.parent.moduleReference === nodeOnRightSide ? nodeOnRightSide.parent : void 0; } - if (nodeOnRightSide.parent.kind === 276 /* ExportAssignment */) { + if (nodeOnRightSide.parent.kind === 277 /* ExportAssignment */) { return nodeOnRightSide.parent.expression === nodeOnRightSide ? nodeOnRightSide.parent : void 0; } return void 0; @@ -82601,7 +83170,7 @@ ${lanes.join("\n")} node = parent2; parent2 = parent2.parent; } - if (parent2 && parent2.kind === 204 /* ImportType */ && parent2.qualifier === node) { + if (parent2 && parent2.kind === 205 /* ImportType */ && parent2.qualifier === node) { return parent2; } return void 0; @@ -82623,7 +83192,7 @@ ${lanes.join("\n")} /*contextFlags*/ void 0 ); - const type = contextualType && getThisTypeFromContextualType(contextualType); + const type = getThisTypeOfObjectLiteralFromContextualType(containingLiteral, contextualType); return type && !isTypeAny(type); } } @@ -82633,7 +83202,7 @@ ${lanes.join("\n")} if (isDeclarationName(name)) { return getSymbolOfNode(name.parent); } - if (isInJSFile(name) && name.parent.kind === 210 /* PropertyAccessExpression */ && name.parent === name.parent.parent.left) { + if (isInJSFile(name) && name.parent.kind === 211 /* PropertyAccessExpression */ && name.parent === name.parent.parent.left) { if (!isPrivateIdentifier(name) && !isJSDocMemberName(name) && !isThisPropertyAndThisTyped(name.parent)) { const specialPropertyAssignmentSymbol = getSpecialPropertyAssignmentSymbolFromEntityName(name); if (specialPropertyAssignmentSymbol) { @@ -82641,7 +83210,7 @@ ${lanes.join("\n")} } } } - if (name.parent.kind === 276 /* ExportAssignment */ && isEntityNameExpression(name)) { + if (name.parent.kind === 277 /* ExportAssignment */ && isEntityNameExpression(name)) { const success = resolveEntityName( name, /*all meanings*/ @@ -82653,7 +83222,7 @@ ${lanes.join("\n")} return success; } } else if (isEntityName(name) && isInRightSideOfImportOrExportAssignment(name)) { - const importEqualsDeclaration = getAncestor(name, 270 /* ImportEqualsDeclaration */); + const importEqualsDeclaration = getAncestor(name, 271 /* ImportEqualsDeclaration */); Debug.assert(importEqualsDeclaration !== void 0); return getSymbolOfPartOfRightHandSideOfImportEquals( name, @@ -82674,7 +83243,7 @@ ${lanes.join("\n")} } if (isInNameOfExpressionWithTypeArguments(name)) { let meaning = 0 /* None */; - if (name.parent.kind === 232 /* ExpressionWithTypeArguments */) { + if (name.parent.kind === 233 /* ExpressionWithTypeArguments */) { meaning = isPartOfTypeNode(name) ? 788968 /* Type */ : 111551 /* Value */; if (isExpressionWithTypeArgumentsInClassExtendsClause(name.parent)) { meaning |= 111551 /* Value */; @@ -82693,10 +83262,10 @@ ${lanes.join("\n")} return entityNameSymbol; } } - if (name.parent.kind === 347 /* JSDocParameterTag */) { + if (name.parent.kind === 348 /* JSDocParameterTag */) { return getParameterSymbolFromJSDoc(name.parent); } - if (name.parent.kind === 167 /* TypeParameter */ && name.parent.parent.kind === 351 /* JSDocTemplateTag */) { + if (name.parent.kind === 168 /* TypeParameter */ && name.parent.parent.kind === 352 /* JSDocTemplateTag */) { Debug.assert(!isInJSFile(name)); const typeParameter = getTypeParameterFromJsDoc(name.parent); return typeParameter && typeParameter.symbol; @@ -82749,12 +83318,12 @@ ${lanes.join("\n")} return result; } else if (isPrivateIdentifier(name)) { return getSymbolForPrivateIdentifierExpression(name); - } else if (name.kind === 210 /* PropertyAccessExpression */ || name.kind === 165 /* QualifiedName */) { + } else if (name.kind === 211 /* PropertyAccessExpression */ || name.kind === 166 /* QualifiedName */) { const links = getNodeLinks(name); if (links.resolvedSymbol) { return links.resolvedSymbol; } - if (name.kind === 210 /* PropertyAccessExpression */) { + if (name.kind === 211 /* PropertyAccessExpression */) { checkPropertyAccessExpression(name, 0 /* Normal */); if (!links.resolvedSymbol) { const expressionType = checkExpressionCached(name.expression); @@ -82794,7 +83363,7 @@ ${lanes.join("\n")} return resolveJSDocMemberName(name); } } else if (isTypeReferenceIdentifier(name)) { - const meaning = name.parent.kind === 182 /* TypeReference */ ? 788968 /* Type */ : 1920 /* Namespace */; + const meaning = name.parent.kind === 183 /* TypeReference */ ? 788968 /* Type */ : 1920 /* Namespace */; const symbol = resolveEntityName( name, meaning, @@ -82805,7 +83374,7 @@ ${lanes.join("\n")} ); return symbol && symbol !== unknownSymbol ? symbol : getUnresolvedSymbolForEntityName(name); } - if (name.parent.kind === 181 /* TypePredicate */) { + if (name.parent.kind === 182 /* TypePredicate */) { return resolveEntityName( name, /*meaning*/ @@ -82846,7 +83415,7 @@ ${lanes.join("\n")} } const { parent: parent2 } = node; const grandParent = parent2.parent; - if (node.flags & 33554432 /* InWithStatement */) { + if (node.flags & 67108864 /* InWithStatement */) { return void 0; } if (isDeclarationNameOrImportPropertyName(node)) { @@ -82858,7 +83427,7 @@ ${lanes.join("\n")} if (node.kind === 80 /* Identifier */) { if (isInRightSideOfImportOrExportAssignment(node)) { return getSymbolOfNameOrPropertyAccessExpression(node); - } else if (parent2.kind === 207 /* BindingElement */ && grandParent.kind === 205 /* ObjectBindingPattern */ && node === parent2.propertyName) { + } else if (parent2.kind === 208 /* BindingElement */ && grandParent.kind === 206 /* ObjectBindingPattern */ && node === parent2.propertyName) { const typeOfPattern = getTypeOfNode(grandParent); const propertyDeclaration = getPropertyOfType(typeOfPattern, node.escapedText); if (propertyDeclaration) { @@ -82877,8 +83446,8 @@ ${lanes.join("\n")} switch (node.kind) { case 80 /* Identifier */: case 81 /* PrivateIdentifier */: - case 210 /* PropertyAccessExpression */: - case 165 /* QualifiedName */: + case 211 /* PropertyAccessExpression */: + case 166 /* QualifiedName */: if (!isThisInTypeQuery(node)) { return getSymbolOfNameOrPropertyAccessExpression(node); } @@ -82899,19 +83468,19 @@ ${lanes.join("\n")} if (isInExpressionContext(node)) { return checkExpression(node).symbol; } - case 196 /* ThisType */: + case 197 /* ThisType */: return getTypeFromThisTypeNode(node).symbol; case 108 /* SuperKeyword */: return checkExpression(node).symbol; case 137 /* ConstructorKeyword */: const constructorDeclaration = node.parent; - if (constructorDeclaration && constructorDeclaration.kind === 175 /* Constructor */) { + if (constructorDeclaration && constructorDeclaration.kind === 176 /* Constructor */) { return constructorDeclaration.parent.symbol; } return void 0; case 11 /* StringLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: - if (isExternalModuleImportEqualsDeclaration(node.parent.parent) && getExternalModuleImportEqualsDeclarationExpression(node.parent.parent) === node || (node.parent.kind === 271 /* ImportDeclaration */ || node.parent.kind === 277 /* ExportDeclaration */) && node.parent.moduleSpecifier === node || (isInJSFile(node) && getEmitModuleResolutionKind(compilerOptions) !== 100 /* Bundler */ && isRequireCall( + if (isExternalModuleImportEqualsDeclaration(node.parent.parent) && getExternalModuleImportEqualsDeclarationExpression(node.parent.parent) === node || (node.parent.kind === 272 /* ImportDeclaration */ || node.parent.kind === 278 /* ExportDeclaration */) && node.parent.moduleSpecifier === node || (isInJSFile(node) && getEmitModuleResolutionKind(compilerOptions) !== 100 /* Bundler */ && isRequireCall( node.parent, /*requireStringLiteralLikeArgument*/ false @@ -82929,16 +83498,16 @@ ${lanes.join("\n")} case 39 /* EqualsGreaterThanToken */: case 86 /* ClassKeyword */: return getSymbolOfNode(node.parent); - case 204 /* ImportType */: + case 205 /* ImportType */: return isLiteralImportTypeNode(node) ? getSymbolAtLocation(node.argument.literal, ignoreErrors) : void 0; case 95 /* ExportKeyword */: return isExportAssignment(node.parent) ? Debug.checkDefined(node.parent.symbol) : void 0; case 102 /* ImportKeyword */: case 105 /* NewKeyword */: return isMetaProperty(node.parent) ? checkMetaPropertyKeyword(node.parent).symbol : void 0; - case 235 /* MetaProperty */: + case 236 /* MetaProperty */: return checkExpression(node).symbol; - case 294 /* JsxNamespacedName */: + case 295 /* JsxNamespacedName */: if (isJSXTagName(node) && isJsxIntrinsicTagName(node)) { const symbol = getIntrinsicTagSymbol(node.parent); return symbol === unknownSymbol ? void 0 : symbol; @@ -82957,7 +83526,7 @@ ${lanes.join("\n")} return void 0; } function getShorthandAssignmentValueSymbol(location) { - if (location && location.kind === 303 /* ShorthandPropertyAssignment */) { + if (location && location.kind === 304 /* ShorthandPropertyAssignment */) { return resolveEntityName(location.name, 111551 /* Value */ | 2097152 /* Alias */); } return void 0; @@ -82973,7 +83542,7 @@ ${lanes.join("\n")} if (isSourceFile(node) && !isExternalModule(node)) { return errorType; } - if (node.flags & 33554432 /* InWithStatement */) { + if (node.flags & 67108864 /* InWithStatement */) { return errorType; } const classDecl = tryGetClassImplementingOrExtendingExpressionWithTypeArguments(node); @@ -83037,16 +83606,16 @@ ${lanes.join("\n")} return errorType; } function getTypeOfAssignmentPattern(expr) { - Debug.assert(expr.kind === 209 /* ObjectLiteralExpression */ || expr.kind === 208 /* ArrayLiteralExpression */); - if (expr.parent.kind === 249 /* ForOfStatement */) { + Debug.assert(expr.kind === 210 /* ObjectLiteralExpression */ || expr.kind === 209 /* ArrayLiteralExpression */); + if (expr.parent.kind === 250 /* ForOfStatement */) { const iteratedType = checkRightHandSideOfForOf(expr.parent); return checkDestructuringAssignment(expr, iteratedType || errorType); } - if (expr.parent.kind === 225 /* BinaryExpression */) { + if (expr.parent.kind === 226 /* BinaryExpression */) { const iteratedType = getTypeOfExpression(expr.parent.right); return checkDestructuringAssignment(expr, iteratedType || errorType); } - if (expr.parent.kind === 302 /* PropertyAssignment */) { + if (expr.parent.kind === 303 /* PropertyAssignment */) { const node2 = cast(expr.parent.parent, isObjectLiteralExpression); const typeOfParentObjectLiteral = getTypeOfAssignmentPattern(node2) || errorType; const propertyIndex = indexOfNode(node2.properties, expr.parent); @@ -83079,7 +83648,7 @@ ${lanes.join("\n")} case 9 /* NumericLiteral */: case 11 /* StringLiteral */: return getStringLiteralType(name.text); - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: const nameType = checkComputedPropertyName(name); return isTypeAssignableToKind(nameType, 12288 /* ESSymbolLike */) ? nameType : stringType; default: @@ -83149,7 +83718,7 @@ ${lanes.join("\n")} return symbolLinks2.exportsSomeValue; function isValue(s) { s = resolveSymbol(s); - return s && !!(getAllSymbolFlags(s) & 111551 /* Value */); + return s && !!(getSymbolFlags(s) & 111551 /* Value */); } } function isNameOfModuleOrEnumDeclaration(node) { @@ -83174,7 +83743,7 @@ ${lanes.join("\n")} } const parentSymbol = getParentOfSymbol(symbol); if (parentSymbol) { - if (parentSymbol.flags & 512 /* ValueModule */ && ((_a = parentSymbol.valueDeclaration) == null ? void 0 : _a.kind) === 311 /* SourceFile */) { + if (parentSymbol.flags & 512 /* ValueModule */ && ((_a = parentSymbol.valueDeclaration) == null ? void 0 : _a.kind) === 312 /* SourceFile */) { const symbolFile = parentSymbol.valueDeclaration; const referenceFile = getSourceFileOfNode(node); const symbolIsUmdExport = symbolFile !== referenceFile; @@ -83204,7 +83773,7 @@ ${lanes.join("\n")} return void 0; } function isSymbolOfDestructuredElementOfCatchBinding(symbol) { - return symbol.valueDeclaration && isBindingElement(symbol.valueDeclaration) && walkUpBindingElementsAndPatterns(symbol.valueDeclaration).parent.kind === 298 /* CatchClause */; + return symbol.valueDeclaration && isBindingElement(symbol.valueDeclaration) && walkUpBindingElementsAndPatterns(symbol.valueDeclaration).parent.kind === 299 /* CatchClause */; } function isSymbolOfDeclarationWithCollidingName(symbol) { if (symbol.flags & 418 /* BlockScoped */ && symbol.valueDeclaration && !isSourceFile(symbol.valueDeclaration)) { @@ -83232,7 +83801,7 @@ ${lanes.join("\n")} /*lookInLabeledStatements*/ false ); - const inLoopBodyBlock = container.kind === 240 /* Block */ && isIterationStatement( + const inLoopBodyBlock = container.kind === 241 /* Block */ && isIterationStatement( container.parent, /*lookInLabeledStatements*/ false @@ -83272,31 +83841,35 @@ ${lanes.join("\n")} function isValueAliasDeclaration(node) { Debug.assert(canCollectSymbolAliasAccessabilityData); switch (node.kind) { - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return isAliasResolvedToValue(getSymbolOfDeclaration(node)); - case 272 /* ImportClause */: - case 273 /* NamespaceImport */: - case 275 /* ImportSpecifier */: - case 280 /* ExportSpecifier */: + case 273 /* ImportClause */: + case 274 /* NamespaceImport */: + case 276 /* ImportSpecifier */: + case 281 /* ExportSpecifier */: const symbol = getSymbolOfDeclaration(node); - return !!symbol && isAliasResolvedToValue(symbol) && !getTypeOnlyAliasDeclaration(symbol, 111551 /* Value */); - case 277 /* ExportDeclaration */: + return !!symbol && isAliasResolvedToValue( + symbol, + /*excludeTypeOnlyValues*/ + true + ); + case 278 /* ExportDeclaration */: const exportClause = node.exportClause; return !!exportClause && (isNamespaceExport(exportClause) || some(exportClause.elements, isValueAliasDeclaration)); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return node.expression && node.expression.kind === 80 /* Identifier */ ? isAliasResolvedToValue(getSymbolOfDeclaration(node)) : true; } return false; } function isTopLevelValueImportEqualsWithEntityName(nodeIn) { const node = getParseTreeNode(nodeIn, isImportEqualsDeclaration); - if (node === void 0 || node.parent.kind !== 311 /* SourceFile */ || !isInternalModuleImportEqualsDeclaration(node)) { + if (node === void 0 || node.parent.kind !== 312 /* SourceFile */ || !isInternalModuleImportEqualsDeclaration(node)) { return false; } const isValue = isAliasResolvedToValue(getSymbolOfDeclaration(node)); return isValue && node.moduleReference && !nodeIsMissing(node.moduleReference); } - function isAliasResolvedToValue(symbol) { + function isAliasResolvedToValue(symbol, excludeTypeOnlyValues) { if (!symbol) { return false; } @@ -83304,7 +83877,12 @@ ${lanes.join("\n")} if (target === unknownSymbol) { return true; } - return !!((getAllSymbolFlags(target) ?? -1) & 111551 /* Value */) && (shouldPreserveConstEnums(compilerOptions) || !isConstEnumOrConstEnumOnlyModule(target)); + return !!(getSymbolFlags( + symbol, + excludeTypeOnlyValues, + /*excludeLocalMeanings*/ + true + ) & 111551 /* Value */) && (shouldPreserveConstEnums(compilerOptions) || !isConstEnumOrConstEnumOnlyModule(target)); } function isConstEnumOrConstEnumOnlyModule(s) { return isConstEnumSymbol(s) || !!s.constEnumOnlyModule; @@ -83318,7 +83896,7 @@ ${lanes.join("\n")} return true; } const target = getSymbolLinks(symbol).aliasTarget; - if (target && getEffectiveModifierFlags(node) & 1 /* Export */ && getAllSymbolFlags(target) & 111551 /* Value */ && (shouldPreserveConstEnums(compilerOptions) || !isConstEnumOrConstEnumOnlyModule(target))) { + if (target && getEffectiveModifierFlags(node) & 1 /* Export */ && getSymbolFlags(target) & 111551 /* Value */ && (shouldPreserveConstEnums(compilerOptions) || !isConstEnumOrConstEnumOnlyModule(target))) { return true; } } @@ -83380,15 +83958,15 @@ ${lanes.join("\n")} } function canHaveConstantValue(node) { switch (node.kind) { - case 305 /* EnumMember */: - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 306 /* EnumMember */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return true; } return false; } function getConstantValue2(node) { - if (node.kind === 305 /* EnumMember */) { + if (node.kind === 306 /* EnumMember */) { return getEnumMemberValue(node); } const symbol = getNodeLinks(node).resolvedSymbol; @@ -83588,24 +84166,24 @@ ${lanes.join("\n")} if (symbol) { return filter(getExportSymbolOfValueSymbolIfExported(symbol).declarations, (declaration) => { switch (declaration.kind) { - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 207 /* BindingElement */: - case 171 /* PropertyDeclaration */: - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: - case 305 /* EnumMember */: - case 209 /* ObjectLiteralExpression */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 265 /* EnumDeclaration */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 266 /* ModuleDeclaration */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 208 /* BindingElement */: + case 172 /* PropertyDeclaration */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 306 /* EnumMember */: + case 210 /* ObjectLiteralExpression */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 266 /* EnumDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 267 /* ModuleDeclaration */: return true; } return false; @@ -83616,7 +84194,7 @@ ${lanes.join("\n")} return void 0; } function isLiteralConstDeclaration(node) { - if (isDeclarationReadonly(node) || isVariableDeclaration(node) && isVarConst(node)) { + if (isDeclarationReadonly(node) || isVariableDeclaration(node) && isVarConstLike(node)) { return isFreshLiteralType(getTypeOfSymbol(getSymbolOfDeclaration(node))); } return false; @@ -83734,12 +84312,12 @@ ${lanes.join("\n")} getJsxFragmentFactoryEntity, getAllAccessorDeclarations(accessor) { accessor = getParseTreeNode(accessor, isGetOrSetAccessorDeclaration); - const otherKind = accessor.kind === 177 /* SetAccessor */ ? 176 /* GetAccessor */ : 177 /* SetAccessor */; + const otherKind = accessor.kind === 178 /* SetAccessor */ ? 177 /* GetAccessor */ : 178 /* SetAccessor */; const otherAccessor = getDeclarationOfKind(getSymbolOfDeclaration(accessor), otherKind); const firstAccessor = otherAccessor && otherAccessor.pos < accessor.pos ? otherAccessor : accessor; const secondAccessor = otherAccessor && otherAccessor.pos < accessor.pos ? accessor : otherAccessor; - const setAccessor = accessor.kind === 177 /* SetAccessor */ ? accessor : otherAccessor; - const getAccessor = accessor.kind === 176 /* GetAccessor */ ? accessor : otherAccessor; + const setAccessor = accessor.kind === 178 /* SetAccessor */ ? accessor : otherAccessor; + const getAccessor = accessor.kind === 177 /* GetAccessor */ ? accessor : otherAccessor; return { firstAccessor, secondAccessor, @@ -83760,7 +84338,7 @@ ${lanes.join("\n")} }, getDeclarationStatementsForSourceFile: (node, flags, tracker, bundled) => { const n = getParseTreeNode(node); - Debug.assert(n && n.kind === 311 /* SourceFile */, "Non-sourcefile node passed into getDeclarationsForSourceFile"); + Debug.assert(n && n.kind === 312 /* SourceFile */, "Non-sourcefile node passed into getDeclarationsForSourceFile"); const sym = getSymbolOfDeclaration(node); if (!sym) { return !node.locals ? [] : nodeBuilder.symbolTableToDeclarationStatements(node.locals, node, flags, tracker, bundled); @@ -83795,18 +84373,18 @@ ${lanes.join("\n")} return false; } function isInHeritageClause(node) { - return node.parent && node.parent.kind === 232 /* ExpressionWithTypeArguments */ && node.parent.parent && node.parent.parent.kind === 297 /* HeritageClause */; + return node.parent && node.parent.kind === 233 /* ExpressionWithTypeArguments */ && node.parent.parent && node.parent.parent.kind === 298 /* HeritageClause */; } function getTypeReferenceDirectivesForEntityName(node) { if (!fileToDirective) { return void 0; } let meaning; - if (node.parent.kind === 166 /* ComputedPropertyName */) { + if (node.parent.kind === 167 /* ComputedPropertyName */) { meaning = 111551 /* Value */ | 1048576 /* ExportValue */; } else { meaning = 788968 /* Type */ | 1920 /* Namespace */; - if (node.kind === 80 /* Identifier */ && isInTypeQuery(node) || node.kind === 210 /* PropertyAccessExpression */ && !isInHeritageClause(node)) { + if (node.kind === 80 /* Identifier */ && isInTypeQuery(node) || node.kind === 211 /* PropertyAccessExpression */ && !isInHeritageClause(node)) { meaning = 111551 /* Value */ | 1048576 /* ExportValue */; } } @@ -83849,7 +84427,7 @@ ${lanes.join("\n")} break; } } - if (current.valueDeclaration && current.valueDeclaration.kind === 311 /* SourceFile */ && current.flags & 512 /* ValueModule */) { + if (current.valueDeclaration && current.valueDeclaration.kind === 312 /* SourceFile */ && current.flags & 512 /* ValueModule */) { return false; } for (const decl of symbol.declarations) { @@ -83874,7 +84452,7 @@ ${lanes.join("\n")} } } function getExternalModuleFileFromDeclaration(declaration) { - const specifier = declaration.kind === 266 /* ModuleDeclaration */ ? tryCast(declaration.name, isStringLiteral) : getExternalModuleName(declaration); + const specifier = declaration.kind === 267 /* ModuleDeclaration */ ? tryCast(declaration.name, isStringLiteral) : getExternalModuleName(declaration); const moduleSymbol = resolveExternalModuleNameWorker( specifier, specifier, @@ -83884,7 +84462,7 @@ ${lanes.join("\n")} if (!moduleSymbol) { return void 0; } - return getDeclarationOfKind(moduleSymbol, 311 /* SourceFile */); + return getDeclarationOfKind(moduleSymbol, 312 /* SourceFile */); } function initializeTypeChecker() { for (const file of host.getSourceFiles()) { @@ -84066,11 +84644,11 @@ ${lanes.join("\n")} function checkExternalEmitHelpers(location, helpers) { if ((requestedExternalEmitHelpers & helpers) !== helpers && compilerOptions.importHelpers) { const sourceFile = getSourceFileOfNode(location); - if (isEffectiveExternalModule(sourceFile, compilerOptions) && !(location.flags & 16777216 /* Ambient */)) { + if (isEffectiveExternalModule(sourceFile, compilerOptions) && !(location.flags & 33554432 /* Ambient */)) { const helpersModule = resolveHelpersModule(sourceFile, location); if (helpersModule !== unknownSymbol) { const uncheckedHelpers = helpers & ~requestedExternalEmitHelpers; - for (let helper = 1 /* FirstEmitHelper */; helper <= 16777216 /* LastEmitHelper */; helper <<= 1) { + for (let helper = 1 /* FirstEmitHelper */; helper <= 33554432 /* LastEmitHelper */; helper <<= 1) { if (uncheckedHelpers & helper) { for (const name of getHelperNames(helper)) { if (requestedExternalEmitHelperNames.has(name)) @@ -84078,18 +84656,18 @@ ${lanes.join("\n")} requestedExternalEmitHelperNames.add(name); const symbol = resolveSymbol(getSymbol2(getExportsOfModule(helpersModule), escapeLeadingUnderscores(name), 111551 /* Value */)); if (!symbol) { - error(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name); + error2(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name); } else if (helper & 524288 /* ClassPrivateFieldGet */) { if (!some(getSignaturesOfSymbol(symbol), (signature) => getParameterCount(signature) > 3)) { - error(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name, 4); + error2(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name, 4); } } else if (helper & 1048576 /* ClassPrivateFieldSet */) { if (!some(getSignaturesOfSymbol(symbol), (signature) => getParameterCount(signature) > 4)) { - error(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name, 5); + error2(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name, 5); } } else if (helper & 1024 /* SpreadArray */) { if (!some(getSignaturesOfSymbol(symbol), (signature) => getParameterCount(signature) > 2)) { - error(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name, 3); + error2(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name, 3); } } } @@ -84152,6 +84730,8 @@ ${lanes.join("\n")} return ["__setFunctionName"]; case 16777216 /* PropKey */: return ["__propKey"]; + case 33554432 /* AddDisposableResourceAndDisposeResources */: + return ["__addDisposableResource", "__disposeResources"]; default: return Debug.fail("Unrecognized helper"); } @@ -84170,6 +84750,7 @@ ${lanes.join("\n")} if (isParameter(node) && parameterIsThisKeyword(node)) { return grammarErrorOnFirstToken(node, Diagnostics.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters); } + const blockScopeKind = isVariableStatement(node) ? node.declarationList.flags & 7 /* BlockScoped */ : 0 /* None */; let lastStatic, lastDeclare, lastAsync, lastOverride, firstDecorator; let flags = 0 /* None */; let sawExportBeforeDecorators = false; @@ -84177,12 +84758,12 @@ ${lanes.join("\n")} for (const modifier of node.modifiers) { if (isDecorator(modifier)) { if (!nodeCanBeDecorated(legacyDecorators, node, node.parent, node.parent.parent)) { - if (node.kind === 173 /* MethodDeclaration */ && !nodeIsPresent(node.body)) { + if (node.kind === 174 /* MethodDeclaration */ && !nodeIsPresent(node.body)) { return grammarErrorOnFirstToken(node, Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload); } else { return grammarErrorOnFirstToken(node, Diagnostics.Decorators_are_not_valid_here); } - } else if (legacyDecorators && (node.kind === 176 /* GetAccessor */ || node.kind === 177 /* SetAccessor */)) { + } else if (legacyDecorators && (node.kind === 177 /* GetAccessor */ || node.kind === 178 /* SetAccessor */)) { const accessors = getAllAccessorDeclarations(node.parent.members, node); if (hasDecorators(accessors.firstAccessor) && node === accessors.secondAccessor) { return grammarErrorOnFirstToken(node, Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name); @@ -84196,7 +84777,7 @@ ${lanes.join("\n")} const sourceFile = getSourceFileOfNode(modifier); if (!hasParseDiagnostics(sourceFile)) { addRelatedInfo( - error(modifier, Diagnostics.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export), + error2(modifier, Diagnostics.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export), createDiagnosticForNode(firstDecorator, Diagnostics.Decorator_used_before_export_here) ); return true; @@ -84212,29 +84793,29 @@ ${lanes.join("\n")} firstDecorator ?? (firstDecorator = modifier); } else { if (modifier.kind !== 148 /* ReadonlyKeyword */) { - if (node.kind === 170 /* PropertySignature */ || node.kind === 172 /* MethodSignature */) { + if (node.kind === 171 /* PropertySignature */ || node.kind === 173 /* MethodSignature */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_type_member, tokenToString(modifier.kind)); } - if (node.kind === 180 /* IndexSignature */ && (modifier.kind !== 126 /* StaticKeyword */ || !isClassLike(node.parent))) { + if (node.kind === 181 /* IndexSignature */ && (modifier.kind !== 126 /* StaticKeyword */ || !isClassLike(node.parent))) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_an_index_signature, tokenToString(modifier.kind)); } } if (modifier.kind !== 103 /* InKeyword */ && modifier.kind !== 147 /* OutKeyword */ && modifier.kind !== 87 /* ConstKeyword */) { - if (node.kind === 167 /* TypeParameter */) { + if (node.kind === 168 /* TypeParameter */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_type_parameter, tokenToString(modifier.kind)); } } switch (modifier.kind) { case 87 /* ConstKeyword */: - if (node.kind !== 265 /* EnumDeclaration */ && node.kind !== 167 /* TypeParameter */) { + if (node.kind !== 266 /* EnumDeclaration */ && node.kind !== 168 /* TypeParameter */) { return grammarErrorOnNode(node, Diagnostics.A_class_member_cannot_have_the_0_keyword, tokenToString(87 /* ConstKeyword */)); } const parent2 = node.parent; - if (node.kind === 167 /* TypeParameter */ && !(isFunctionLikeDeclaration(parent2) || isClassLike(parent2) || isFunctionTypeNode(parent2) || isConstructorTypeNode(parent2) || isCallSignatureDeclaration(parent2) || isConstructSignatureDeclaration(parent2) || isMethodSignature(parent2))) { + if (node.kind === 168 /* TypeParameter */ && !(isFunctionLikeDeclaration(parent2) || isClassLike(parent2) || isFunctionTypeNode(parent2) || isConstructorTypeNode(parent2) || isCallSignatureDeclaration(parent2) || isConstructSignatureDeclaration(parent2) || isMethodSignature(parent2))) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class, tokenToString(modifier.kind)); } break; - case 163 /* OverrideKeyword */: + case 164 /* OverrideKeyword */: if (flags & 16384 /* Override */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, "override"); } else if (flags & 2 /* Ambient */) { @@ -84265,7 +84846,7 @@ ${lanes.join("\n")} return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, text, "readonly"); } else if (flags & 512 /* Async */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, text, "async"); - } else if (node.parent.kind === 267 /* ModuleBlock */ || node.parent.kind === 311 /* SourceFile */) { + } else if (node.parent.kind === 268 /* ModuleBlock */ || node.parent.kind === 312 /* SourceFile */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element, text); } else if (flags & 256 /* Abstract */) { if (modifier.kind === 123 /* PrivateKeyword */) { @@ -84287,9 +84868,9 @@ ${lanes.join("\n")} return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "static", "async"); } else if (flags & 128 /* Accessor */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "static", "accessor"); - } else if (node.parent.kind === 267 /* ModuleBlock */ || node.parent.kind === 311 /* SourceFile */) { + } else if (node.parent.kind === 268 /* ModuleBlock */ || node.parent.kind === 312 /* SourceFile */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element, "static"); - } else if (node.kind === 168 /* Parameter */) { + } else if (node.kind === 169 /* Parameter */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_parameter, "static"); } else if (flags & 256 /* Abstract */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "static", "abstract"); @@ -84306,7 +84887,7 @@ ${lanes.join("\n")} return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "accessor", "readonly"); } else if (flags & 2 /* Ambient */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "accessor", "declare"); - } else if (node.kind !== 171 /* PropertyDeclaration */) { + } else if (node.kind !== 172 /* PropertyDeclaration */) { return grammarErrorOnNode(modifier, Diagnostics.accessor_modifier_can_only_appear_on_a_property_declaration); } flags |= 128 /* Accessor */; @@ -84314,7 +84895,7 @@ ${lanes.join("\n")} case 148 /* ReadonlyKeyword */: if (flags & 64 /* Readonly */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, "readonly"); - } else if (node.kind !== 171 /* PropertyDeclaration */ && node.kind !== 170 /* PropertySignature */ && node.kind !== 180 /* IndexSignature */ && node.kind !== 168 /* Parameter */) { + } else if (node.kind !== 172 /* PropertyDeclaration */ && node.kind !== 171 /* PropertySignature */ && node.kind !== 181 /* IndexSignature */ && node.kind !== 169 /* Parameter */) { return grammarErrorOnNode(modifier, Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature); } else if (flags & 128 /* Accessor */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "readonly", "accessor"); @@ -84322,8 +84903,8 @@ ${lanes.join("\n")} flags |= 64 /* Readonly */; break; case 95 /* ExportKeyword */: - if (compilerOptions.verbatimModuleSyntax && !(node.flags & 16777216 /* Ambient */) && node.kind !== 264 /* TypeAliasDeclaration */ && node.kind !== 263 /* InterfaceDeclaration */ && // ModuleDeclaration needs to be checked that it is uninstantiated later - node.kind !== 266 /* ModuleDeclaration */ && node.parent.kind === 311 /* SourceFile */ && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { + if (compilerOptions.verbatimModuleSyntax && !(node.flags & 33554432 /* Ambient */) && node.kind !== 265 /* TypeAliasDeclaration */ && node.kind !== 264 /* InterfaceDeclaration */ && // ModuleDeclaration needs to be checked that it is uninstantiated later + node.kind !== 267 /* ModuleDeclaration */ && node.parent.kind === 312 /* SourceFile */ && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { return grammarErrorOnNode(modifier, Diagnostics.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); } if (flags & 1 /* Export */) { @@ -84336,15 +84917,23 @@ ${lanes.join("\n")} return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "export", "async"); } else if (isClassLike(node.parent)) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind, "export"); - } else if (node.kind === 168 /* Parameter */) { + } else if (node.kind === 169 /* Parameter */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_parameter, "export"); + } else if (blockScopeKind === 4 /* Using */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_using_declaration, "export"); + } else if (blockScopeKind === 6 /* AwaitUsing */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_an_await_using_declaration, "export"); } flags |= 1 /* Export */; break; case 90 /* DefaultKeyword */: - const container = node.parent.kind === 311 /* SourceFile */ ? node.parent : node.parent.parent; - if (container.kind === 266 /* ModuleDeclaration */ && !isAmbientModule(container)) { + const container = node.parent.kind === 312 /* SourceFile */ ? node.parent : node.parent.parent; + if (container.kind === 267 /* ModuleDeclaration */ && !isAmbientModule(container)) { return grammarErrorOnNode(modifier, Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module); + } else if (blockScopeKind === 4 /* Using */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_using_declaration, "default"); + } else if (blockScopeKind === 6 /* AwaitUsing */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_an_await_using_declaration, "default"); } else if (!(flags & 1 /* Export */)) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "export", "default"); } else if (sawExportBeforeDecorators) { @@ -84361,9 +84950,13 @@ ${lanes.join("\n")} return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context, "override"); } else if (isClassLike(node.parent) && !isPropertyDeclaration(node)) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind, "declare"); - } else if (node.kind === 168 /* Parameter */) { + } else if (node.kind === 169 /* Parameter */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_parameter, "declare"); - } else if (node.parent.flags & 16777216 /* Ambient */ && node.parent.kind === 267 /* ModuleBlock */) { + } else if (blockScopeKind === 4 /* Using */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_using_declaration, "declare"); + } else if (blockScopeKind === 6 /* AwaitUsing */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_an_await_using_declaration, "declare"); + } else if (node.parent.flags & 33554432 /* Ambient */ && node.parent.kind === 268 /* ModuleBlock */) { return grammarErrorOnNode(modifier, Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context); } else if (isPrivateIdentifierClassElementDeclaration(node)) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier, "declare"); @@ -84377,12 +84970,12 @@ ${lanes.join("\n")} if (flags & 256 /* Abstract */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, "abstract"); } - if (node.kind !== 262 /* ClassDeclaration */ && node.kind !== 184 /* ConstructorType */) { - if (node.kind !== 173 /* MethodDeclaration */ && node.kind !== 171 /* PropertyDeclaration */ && node.kind !== 176 /* GetAccessor */ && node.kind !== 177 /* SetAccessor */) { + if (node.kind !== 263 /* ClassDeclaration */ && node.kind !== 185 /* ConstructorType */) { + if (node.kind !== 174 /* MethodDeclaration */ && node.kind !== 172 /* PropertyDeclaration */ && node.kind !== 177 /* GetAccessor */ && node.kind !== 178 /* SetAccessor */) { return grammarErrorOnNode(modifier, Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration); } - if (!(node.parent.kind === 262 /* ClassDeclaration */ && hasSyntacticModifier(node.parent, 256 /* Abstract */))) { - const message = node.kind === 171 /* PropertyDeclaration */ ? Diagnostics.Abstract_properties_can_only_appear_within_an_abstract_class : Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class; + if (!(node.parent.kind === 263 /* ClassDeclaration */ && hasSyntacticModifier(node.parent, 256 /* Abstract */))) { + const message = node.kind === 172 /* PropertyDeclaration */ ? Diagnostics.Abstract_properties_can_only_appear_within_an_abstract_class : Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class; return grammarErrorOnNode(modifier, message); } if (flags & 32 /* Static */) { @@ -84409,9 +85002,9 @@ ${lanes.join("\n")} case 134 /* AsyncKeyword */: if (flags & 512 /* Async */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, "async"); - } else if (flags & 2 /* Ambient */ || node.parent.flags & 16777216 /* Ambient */) { + } else if (flags & 2 /* Ambient */ || node.parent.flags & 33554432 /* Ambient */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context, "async"); - } else if (node.kind === 168 /* Parameter */) { + } else if (node.kind === 169 /* Parameter */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_parameter, "async"); } if (flags & 256 /* Abstract */) { @@ -84424,7 +85017,7 @@ ${lanes.join("\n")} case 147 /* OutKeyword */: const inOutFlag = modifier.kind === 103 /* InKeyword */ ? 32768 /* In */ : 65536 /* Out */; const inOutText = modifier.kind === 103 /* InKeyword */ ? "in" : "out"; - if (node.kind !== 167 /* TypeParameter */ || !(isInterfaceDeclaration(node.parent) || isClassLike(node.parent) || isTypeAliasDeclaration(node.parent))) { + if (node.kind !== 168 /* TypeParameter */ || !(isInterfaceDeclaration(node.parent) || isClassLike(node.parent) || isTypeAliasDeclaration(node.parent))) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias, inOutText); } if (flags & inOutFlag) { @@ -84438,7 +85031,7 @@ ${lanes.join("\n")} } } } - if (node.kind === 175 /* Constructor */) { + if (node.kind === 176 /* Constructor */) { if (flags & 32 /* Static */) { return grammarErrorOnNode(lastStatic, Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "static"); } @@ -84449,11 +85042,11 @@ ${lanes.join("\n")} return grammarErrorOnNode(lastAsync, Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "async"); } return false; - } else if ((node.kind === 271 /* ImportDeclaration */ || node.kind === 270 /* ImportEqualsDeclaration */) && flags & 2 /* Ambient */) { + } else if ((node.kind === 272 /* ImportDeclaration */ || node.kind === 271 /* ImportEqualsDeclaration */) && flags & 2 /* Ambient */) { return grammarErrorOnNode(lastDeclare, Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration, "declare"); - } else if (node.kind === 168 /* Parameter */ && flags & 16476 /* ParameterPropertyModifier */ && isBindingPattern(node.name)) { + } else if (node.kind === 169 /* Parameter */ && flags & 16476 /* ParameterPropertyModifier */ && isBindingPattern(node.name)) { return grammarErrorOnNode(node, Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern); - } else if (node.kind === 168 /* Parameter */ && flags & 16476 /* ParameterPropertyModifier */ && node.dotDotDotToken) { + } else if (node.kind === 169 /* Parameter */ && flags & 16476 /* ParameterPropertyModifier */ && node.dotDotDotToken) { return grammarErrorOnNode(node, Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter); } if (flags & 512 /* Async */) { @@ -84473,46 +85066,47 @@ ${lanes.join("\n")} } function findFirstIllegalModifier(node) { switch (node.kind) { - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 175 /* Constructor */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 180 /* IndexSignature */: - case 266 /* ModuleDeclaration */: - case 271 /* ImportDeclaration */: - case 270 /* ImportEqualsDeclaration */: - case 277 /* ExportDeclaration */: - case 276 /* ExportAssignment */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 168 /* Parameter */: - case 167 /* TypeParameter */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 176 /* Constructor */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 181 /* IndexSignature */: + case 267 /* ModuleDeclaration */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 278 /* ExportDeclaration */: + case 277 /* ExportAssignment */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 169 /* Parameter */: + case 168 /* TypeParameter */: return void 0; - case 174 /* ClassStaticBlockDeclaration */: - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: - case 269 /* NamespaceExportDeclaration */: - case 281 /* MissingDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 270 /* NamespaceExportDeclaration */: + case 282 /* MissingDeclaration */: return find(node.modifiers, isModifier); default: - if (node.parent.kind === 267 /* ModuleBlock */ || node.parent.kind === 311 /* SourceFile */) { + if (node.parent.kind === 268 /* ModuleBlock */ || node.parent.kind === 312 /* SourceFile */) { return void 0; } switch (node.kind) { - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return findFirstModifierExcept(node, 134 /* AsyncKeyword */); - case 262 /* ClassDeclaration */: - case 184 /* ConstructorType */: + case 263 /* ClassDeclaration */: + case 185 /* ConstructorType */: return findFirstModifierExcept(node, 128 /* AbstractKeyword */); - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 242 /* VariableStatement */: - case 264 /* TypeAliasDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: return find(node.modifiers, isModifier); - case 265 /* EnumDeclaration */: + case 243 /* VariableStatement */: + return node.declarationList.flags & 4 /* Using */ ? findFirstModifierExcept(node, 135 /* AwaitKeyword */) : find(node.modifiers, isModifier); + case 266 /* EnumDeclaration */: return findFirstModifierExcept(node, 87 /* ConstKeyword */); default: Debug.assertNever(node); @@ -84528,10 +85122,10 @@ ${lanes.join("\n")} } function checkGrammarAsyncModifier(node, asyncModifier) { switch (node.kind) { - case 173 /* MethodDeclaration */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return false; } return grammarErrorOnNode(asyncModifier, Diagnostics._0_modifier_cannot_be_used_here, "async"); @@ -84559,7 +85153,7 @@ ${lanes.join("\n")} if (i !== parameterCount - 1) { return grammarErrorOnNode(parameter.dotDotDotToken, Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list); } - if (!(parameter.flags & 16777216 /* Ambient */)) { + if (!(parameter.flags & 33554432 /* Ambient */)) { checkGrammarForDisallowedTrailingComma(parameters, Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma); } if (parameter.questionToken) { @@ -84589,12 +85183,12 @@ ${lanes.join("\n")} if (length(nonSimpleParameters)) { forEach(nonSimpleParameters, (parameter) => { addRelatedInfo( - error(parameter, Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive), + error2(parameter, Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive), createDiagnosticForNode(useStrictDirective, Diagnostics.use_strict_directive_used_here) ); }); const diagnostics2 = nonSimpleParameters.map((parameter, index) => index === 0 ? createDiagnosticForNode(parameter, Diagnostics.Non_simple_parameter_declared_here) : createDiagnosticForNode(parameter, Diagnostics.and_here)); - addRelatedInfo(error(useStrictDirective, Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list), ...diagnostics2); + addRelatedInfo(error2(useStrictDirective, Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list), ...diagnostics2); return true; } } @@ -84676,7 +85270,7 @@ ${lanes.join("\n")} return checkGrammarForDisallowedTrailingComma(typeArguments) || checkGrammarForAtLeastOneTypeArgument(node, typeArguments); } function checkGrammarTaggedTemplateChain(node) { - if (node.questionDotToken || node.flags & 32 /* OptionalChain */) { + if (node.questionDotToken || node.flags & 64 /* OptionalChain */) { return grammarErrorOnNode(node.template, Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain); } return false; @@ -84744,11 +85338,11 @@ ${lanes.join("\n")} return false; } function checkGrammarComputedPropertyName(node) { - if (node.kind !== 166 /* ComputedPropertyName */) { + if (node.kind !== 167 /* ComputedPropertyName */) { return false; } const computedPropertyName = node; - if (computedPropertyName.expression.kind === 225 /* BinaryExpression */ && computedPropertyName.expression.operatorToken.kind === 28 /* CommaToken */) { + if (computedPropertyName.expression.kind === 226 /* BinaryExpression */ && computedPropertyName.expression.operatorToken.kind === 28 /* CommaToken */) { return grammarErrorOnNode(computedPropertyName.expression, Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name); } return false; @@ -84756,9 +85350,9 @@ ${lanes.join("\n")} function checkGrammarForGenerator(node) { if (node.asteriskToken) { Debug.assert( - node.kind === 261 /* FunctionDeclaration */ || node.kind === 217 /* FunctionExpression */ || node.kind === 173 /* MethodDeclaration */ + node.kind === 262 /* FunctionDeclaration */ || node.kind === 218 /* FunctionExpression */ || node.kind === 174 /* MethodDeclaration */ ); - if (node.flags & 16777216 /* Ambient */) { + if (node.flags & 33554432 /* Ambient */) { return grammarErrorOnNode(node.asteriskToken, Diagnostics.Generators_are_not_allowed_in_an_ambient_context); } if (!node.body) { @@ -84775,7 +85369,7 @@ ${lanes.join("\n")} function checkGrammarObjectLiteralExpression(node, inDestructuring) { const seen = /* @__PURE__ */ new Map(); for (const prop of node.properties) { - if (prop.kind === 304 /* SpreadAssignment */) { + if (prop.kind === 305 /* SpreadAssignment */) { if (inDestructuring) { const expression = skipParentheses(prop.expression); if (isArrayLiteralExpression(expression) || isObjectLiteralExpression(expression)) { @@ -84785,10 +85379,10 @@ ${lanes.join("\n")} continue; } const name = prop.name; - if (name.kind === 166 /* ComputedPropertyName */) { + if (name.kind === 167 /* ComputedPropertyName */) { checkGrammarComputedPropertyName(name); } - if (prop.kind === 303 /* ShorthandPropertyAssignment */ && !inDestructuring && prop.objectAssignmentInitializer) { + if (prop.kind === 304 /* ShorthandPropertyAssignment */ && !inDestructuring && prop.objectAssignmentInitializer) { grammarErrorOnNode(prop.equalsToken, Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern); } if (name.kind === 81 /* PrivateIdentifier */) { @@ -84796,7 +85390,7 @@ ${lanes.join("\n")} } if (canHaveModifiers(prop) && prop.modifiers) { for (const mod of prop.modifiers) { - if (isModifier(mod) && (mod.kind !== 134 /* AsyncKeyword */ || prop.kind !== 173 /* MethodDeclaration */)) { + if (isModifier(mod) && (mod.kind !== 134 /* AsyncKeyword */ || prop.kind !== 174 /* MethodDeclaration */)) { grammarErrorOnNode(mod, Diagnostics._0_modifier_cannot_be_used_here, getTextOfNode(mod)); } } @@ -84809,8 +85403,8 @@ ${lanes.join("\n")} } let currentKind; switch (prop.kind) { - case 303 /* ShorthandPropertyAssignment */: - case 302 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 303 /* PropertyAssignment */: checkGrammarForInvalidExclamationToken(prop.exclamationToken, Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context); checkGrammarForInvalidQuestionMark(prop.questionToken, Diagnostics.An_object_member_cannot_be_declared_optional); if (name.kind === 9 /* NumericLiteral */) { @@ -84818,13 +85412,13 @@ ${lanes.join("\n")} } currentKind = 4 /* PropertyAssignment */; break; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: currentKind = 8 /* Method */; break; - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: currentKind = 1 /* GetAccessor */; break; - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: currentKind = 2 /* SetAccessor */; break; default: @@ -84861,7 +85455,7 @@ ${lanes.join("\n")} checkGrammarTypeArguments(node, node.typeArguments); const seen = /* @__PURE__ */ new Map(); for (const attr of node.attributes.properties) { - if (attr.kind === 292 /* JsxSpreadAttribute */) { + if (attr.kind === 293 /* JsxSpreadAttribute */) { continue; } const { name, initializer } = attr; @@ -84871,7 +85465,7 @@ ${lanes.join("\n")} } else { return grammarErrorOnNode(name, Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name); } - if (initializer && initializer.kind === 293 /* JsxExpression */ && !initializer.expression) { + if (initializer && initializer.kind === 294 /* JsxExpression */ && !initializer.expression) { return grammarErrorOnNode(initializer, Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression); } } @@ -84893,8 +85487,8 @@ ${lanes.join("\n")} if (checkGrammarStatementInAmbientContext(forInOrOfStatement)) { return true; } - if (forInOrOfStatement.kind === 249 /* ForOfStatement */ && forInOrOfStatement.awaitModifier) { - if (!(forInOrOfStatement.flags & 32768 /* AwaitContext */)) { + if (forInOrOfStatement.kind === 250 /* ForOfStatement */ && forInOrOfStatement.awaitModifier) { + if (!(forInOrOfStatement.flags & 65536 /* AwaitContext */)) { const sourceFile = getSourceFileOfNode(forInOrOfStatement); if (isInTopLevelContext(forInOrOfStatement)) { if (!hasParseDiagnostics(sourceFile)) { @@ -84933,7 +85527,7 @@ ${lanes.join("\n")} if (!hasParseDiagnostics(sourceFile)) { const diagnostic = createDiagnosticForNode(forInOrOfStatement.awaitModifier, Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules); const func = getContainingFunction(forInOrOfStatement); - if (func && func.kind !== 175 /* Constructor */) { + if (func && func.kind !== 176 /* Constructor */) { Debug.assert((getFunctionFlags(func) & 2 /* Async */) === 0, "Enclosing function should never be an async function."); const relatedInfo = createDiagnosticForNode(func, Diagnostics.Did_you_mean_to_mark_this_function_as_async); addRelatedInfo(diagnostic, relatedInfo); @@ -84945,11 +85539,11 @@ ${lanes.join("\n")} return false; } } - if (isForOfStatement(forInOrOfStatement) && !(forInOrOfStatement.flags & 32768 /* AwaitContext */) && isIdentifier(forInOrOfStatement.initializer) && forInOrOfStatement.initializer.escapedText === "async") { + if (isForOfStatement(forInOrOfStatement) && !(forInOrOfStatement.flags & 65536 /* AwaitContext */) && isIdentifier(forInOrOfStatement.initializer) && forInOrOfStatement.initializer.escapedText === "async") { grammarErrorOnNode(forInOrOfStatement.initializer, Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async); return false; } - if (forInOrOfStatement.initializer.kind === 260 /* VariableDeclarationList */) { + if (forInOrOfStatement.initializer.kind === 261 /* VariableDeclarationList */) { const variableList = forInOrOfStatement.initializer; if (!checkGrammarVariableDeclarationList(variableList)) { const declarations = variableList.declarations; @@ -84957,16 +85551,16 @@ ${lanes.join("\n")} return false; } if (declarations.length > 1) { - const diagnostic = forInOrOfStatement.kind === 248 /* ForInStatement */ ? Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement : Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement; + const diagnostic = forInOrOfStatement.kind === 249 /* ForInStatement */ ? Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement : Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement; return grammarErrorOnFirstToken(variableList.declarations[1], diagnostic); } const firstDeclaration = declarations[0]; if (firstDeclaration.initializer) { - const diagnostic = forInOrOfStatement.kind === 248 /* ForInStatement */ ? Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer : Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer; + const diagnostic = forInOrOfStatement.kind === 249 /* ForInStatement */ ? Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer : Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer; return grammarErrorOnNode(firstDeclaration.name, diagnostic); } if (firstDeclaration.type) { - const diagnostic = forInOrOfStatement.kind === 248 /* ForInStatement */ ? Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation : Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation; + const diagnostic = forInOrOfStatement.kind === 249 /* ForInStatement */ ? Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation : Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation; return grammarErrorOnNode(firstDeclaration, diagnostic); } } @@ -84974,7 +85568,7 @@ ${lanes.join("\n")} return false; } function checkGrammarAccessor(accessor) { - if (!(accessor.flags & 16777216 /* Ambient */) && accessor.parent.kind !== 186 /* TypeLiteral */ && accessor.parent.kind !== 263 /* InterfaceDeclaration */) { + if (!(accessor.flags & 33554432 /* Ambient */) && accessor.parent.kind !== 187 /* TypeLiteral */ && accessor.parent.kind !== 264 /* InterfaceDeclaration */) { if (languageVersion < 1 /* ES5 */) { return grammarErrorOnNode(accessor.name, Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher); } @@ -84989,7 +85583,7 @@ ${lanes.join("\n")} if (hasSyntacticModifier(accessor, 256 /* Abstract */)) { return grammarErrorOnNode(accessor, Diagnostics.An_abstract_accessor_cannot_have_an_implementation); } - if (accessor.parent.kind === 186 /* TypeLiteral */ || accessor.parent.kind === 263 /* InterfaceDeclaration */) { + if (accessor.parent.kind === 187 /* TypeLiteral */ || accessor.parent.kind === 264 /* InterfaceDeclaration */) { return grammarErrorOnNode(accessor.body, Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts); } } @@ -84999,10 +85593,10 @@ ${lanes.join("\n")} if (!doesAccessorHaveCorrectParameterCount(accessor)) { return grammarErrorOnNode( accessor.name, - accessor.kind === 176 /* GetAccessor */ ? Diagnostics.A_get_accessor_cannot_have_parameters : Diagnostics.A_set_accessor_must_have_exactly_one_parameter + accessor.kind === 177 /* GetAccessor */ ? Diagnostics.A_get_accessor_cannot_have_parameters : Diagnostics.A_set_accessor_must_have_exactly_one_parameter ); } - if (accessor.kind === 177 /* SetAccessor */) { + if (accessor.kind === 178 /* SetAccessor */) { if (accessor.type) { return grammarErrorOnNode(accessor.name, Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation); } @@ -85020,10 +85614,10 @@ ${lanes.join("\n")} return false; } function doesAccessorHaveCorrectParameterCount(accessor) { - return getAccessorThisParameter(accessor) || accessor.parameters.length === (accessor.kind === 176 /* GetAccessor */ ? 0 : 1); + return getAccessorThisParameter(accessor) || accessor.parameters.length === (accessor.kind === 177 /* GetAccessor */ ? 0 : 1); } function getAccessorThisParameter(accessor) { - if (accessor.parameters.length === (accessor.kind === 176 /* GetAccessor */ ? 1 : 2)) { + if (accessor.parameters.length === (accessor.kind === 177 /* GetAccessor */ ? 1 : 2)) { return getThisParameter(accessor); } } @@ -85040,7 +85634,7 @@ ${lanes.join("\n")} } } switch (parent2.kind) { - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: const decl = parent2; if (decl.name.kind !== 80 /* Identifier */) { return grammarErrorOnNode(node, Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name); @@ -85052,12 +85646,12 @@ ${lanes.join("\n")} return grammarErrorOnNode(parent2.name, Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const); } break; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: if (!isStatic(parent2) || !hasEffectiveReadonlyModifier(parent2)) { return grammarErrorOnNode(parent2.name, Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly); } break; - case 170 /* PropertySignature */: + case 171 /* PropertySignature */: if (!hasSyntacticModifier(parent2, 64 /* Readonly */)) { return grammarErrorOnNode(parent2.name, Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly); } @@ -85066,7 +85660,7 @@ ${lanes.join("\n")} return grammarErrorOnNode(node, Diagnostics.unique_symbol_types_are_not_allowed_here); } } else if (node.operator === 148 /* ReadonlyKeyword */) { - if (node.type.kind !== 187 /* ArrayType */ && node.type.kind !== 188 /* TupleType */) { + if (node.type.kind !== 188 /* ArrayType */ && node.type.kind !== 189 /* TupleType */) { return grammarErrorOnFirstToken(node, Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types, tokenToString(155 /* SymbolKeyword */)); } } @@ -85080,8 +85674,8 @@ ${lanes.join("\n")} if (checkGrammarFunctionLikeDeclaration(node)) { return true; } - if (node.kind === 173 /* MethodDeclaration */) { - if (node.parent.kind === 209 /* ObjectLiteralExpression */) { + if (node.kind === 174 /* MethodDeclaration */) { + if (node.parent.kind === 210 /* ObjectLiteralExpression */) { if (node.modifiers && !(node.modifiers.length === 1 && first(node.modifiers).kind === 134 /* AsyncKeyword */)) { return grammarErrorOnFirstToken(node, Diagnostics.Modifiers_cannot_appear_here); } else if (checkGrammarForInvalidQuestionMark(node.questionToken, Diagnostics.An_object_member_cannot_be_declared_optional)) { @@ -85100,14 +85694,14 @@ ${lanes.join("\n")} if (languageVersion < 2 /* ES2015 */ && isPrivateIdentifier(node.name)) { return grammarErrorOnNode(node.name, Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher); } - if (node.flags & 16777216 /* Ambient */) { + if (node.flags & 33554432 /* Ambient */) { return checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type); - } else if (node.kind === 173 /* MethodDeclaration */ && !node.body) { + } else if (node.kind === 174 /* MethodDeclaration */ && !node.body) { return checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type); } - } else if (node.parent.kind === 263 /* InterfaceDeclaration */) { + } else if (node.parent.kind === 264 /* InterfaceDeclaration */) { return checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type); - } else if (node.parent.kind === 186 /* TypeLiteral */) { + } else if (node.parent.kind === 187 /* TypeLiteral */) { return checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type); } } @@ -85118,9 +85712,9 @@ ${lanes.join("\n")} return grammarErrorOnNode(node, Diagnostics.Jump_target_cannot_cross_function_boundary); } switch (current.kind) { - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: if (node.label && current.label.escapedText === node.label.escapedText) { - const isMisplacedContinueLabel = node.kind === 250 /* ContinueStatement */ && !isIterationStatement( + const isMisplacedContinueLabel = node.kind === 251 /* ContinueStatement */ && !isIterationStatement( current.statement, /*lookInLabeledStatements*/ true @@ -85131,8 +85725,8 @@ ${lanes.join("\n")} return false; } break; - case 254 /* SwitchStatement */: - if (node.kind === 251 /* BreakStatement */ && !node.label) { + case 255 /* SwitchStatement */: + if (node.kind === 252 /* BreakStatement */ && !node.label) { return false; } break; @@ -85149,10 +85743,10 @@ ${lanes.join("\n")} current = current.parent; } if (node.label) { - const message = node.kind === 251 /* BreakStatement */ ? Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement : Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement; + const message = node.kind === 252 /* BreakStatement */ ? Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement : Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement; return grammarErrorOnNode(node, message); } else { - const message = node.kind === 251 /* BreakStatement */ ? Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement : Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement; + const message = node.kind === 252 /* BreakStatement */ ? Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement : Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement; return grammarErrorOnNode(node, message); } } @@ -85172,10 +85766,10 @@ ${lanes.join("\n")} } } function isStringOrNumberLiteralExpression(expr) { - return isStringOrNumericLiteralLike(expr) || expr.kind === 223 /* PrefixUnaryExpression */ && expr.operator === 41 /* MinusToken */ && expr.operand.kind === 9 /* NumericLiteral */; + return isStringOrNumericLiteralLike(expr) || expr.kind === 224 /* PrefixUnaryExpression */ && expr.operator === 41 /* MinusToken */ && expr.operand.kind === 9 /* NumericLiteral */; } function isBigIntLiteralExpression(expr) { - return expr.kind === 10 /* BigIntLiteral */ || expr.kind === 223 /* PrefixUnaryExpression */ && expr.operator === 41 /* MinusToken */ && expr.operand.kind === 10 /* BigIntLiteral */; + return expr.kind === 10 /* BigIntLiteral */ || expr.kind === 224 /* PrefixUnaryExpression */ && expr.operator === 41 /* MinusToken */ && expr.operand.kind === 10 /* BigIntLiteral */; } function isSimpleLiteralEnumReference(expr) { if ((isPropertyAccessExpression(expr) || isElementAccessExpression(expr) && isStringOrNumberLiteralExpression(expr.argumentExpression)) && isEntityNameExpression(expr.expression)) { @@ -85186,7 +85780,7 @@ ${lanes.join("\n")} const initializer = node.initializer; if (initializer) { const isInvalidInitializer = !(isStringOrNumberLiteralExpression(initializer) || isSimpleLiteralEnumReference(initializer) || initializer.kind === 112 /* TrueKeyword */ || initializer.kind === 97 /* FalseKeyword */ || isBigIntLiteralExpression(initializer)); - const isConstOrReadonly = isDeclarationReadonly(node) || isVariableDeclaration(node) && isVarConst(node); + const isConstOrReadonly = isDeclarationReadonly(node) || isVariableDeclaration(node) && isVarConstLike(node); if (isConstOrReadonly && !node.type) { if (isInvalidInitializer) { return grammarErrorOnNode(initializer, Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference); @@ -85197,27 +85791,41 @@ ${lanes.join("\n")} } } function checkGrammarVariableDeclaration(node) { - if (node.parent.parent.kind !== 248 /* ForInStatement */ && node.parent.parent.kind !== 249 /* ForOfStatement */) { - if (node.flags & 16777216 /* Ambient */) { + const nodeFlags = getCombinedNodeFlagsCached(node); + const blockScopeKind = nodeFlags & 7 /* BlockScoped */; + if (isBindingPattern(node.name)) { + switch (blockScopeKind) { + case 6 /* AwaitUsing */: + return grammarErrorOnNode(node, Diagnostics._0_declarations_may_not_have_binding_patterns, "await using"); + case 4 /* Using */: + return grammarErrorOnNode(node, Diagnostics._0_declarations_may_not_have_binding_patterns, "using"); + } + } + if (node.parent.parent.kind !== 249 /* ForInStatement */ && node.parent.parent.kind !== 250 /* ForOfStatement */) { + if (nodeFlags & 33554432 /* Ambient */) { checkAmbientInitializer(node); } else if (!node.initializer) { if (isBindingPattern(node.name) && !isBindingPattern(node.parent)) { return grammarErrorOnNode(node, Diagnostics.A_destructuring_declaration_must_have_an_initializer); } - if (isVarConst(node)) { - return grammarErrorOnNode(node, Diagnostics.const_declarations_must_be_initialized); + switch (blockScopeKind) { + case 6 /* AwaitUsing */: + return grammarErrorOnNode(node, Diagnostics._0_declarations_must_be_initialized, "await using"); + case 4 /* Using */: + return grammarErrorOnNode(node, Diagnostics._0_declarations_must_be_initialized, "using"); + case 2 /* Const */: + return grammarErrorOnNode(node, Diagnostics._0_declarations_must_be_initialized, "const"); } } } - if (node.exclamationToken && (node.parent.parent.kind !== 242 /* VariableStatement */ || !node.type || node.initializer || node.flags & 16777216 /* Ambient */)) { + if (node.exclamationToken && (node.parent.parent.kind !== 243 /* VariableStatement */ || !node.type || node.initializer || nodeFlags & 33554432 /* Ambient */)) { const message = node.initializer ? Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions : !node.type ? Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations : Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context; return grammarErrorOnNode(node.exclamationToken, message); } - if ((moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */) && moduleKind !== 4 /* System */ && !(node.parent.parent.flags & 16777216 /* Ambient */) && hasSyntacticModifier(node.parent.parent, 1 /* Export */)) { + if ((moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */) && moduleKind !== 4 /* System */ && !(node.parent.parent.flags & 33554432 /* Ambient */) && hasSyntacticModifier(node.parent.parent, 1 /* Export */)) { checkESModuleMarker(node.name); } - const checkLetConstNames = isLet(node) || isVarConst(node); - return checkLetConstNames && checkGrammarNameInLetOrConstDeclarations(node.name); + return !!blockScopeKind && checkGrammarNameInLetOrConstDeclarations(node.name); } function checkESModuleMarker(name) { if (name.kind === 80 /* Identifier */) { @@ -85257,29 +85865,39 @@ ${lanes.join("\n")} if (!declarationList.declarations.length) { return grammarErrorAtPos(declarationList, declarations.pos, declarations.end - declarations.pos, Diagnostics.Variable_declaration_list_cannot_be_empty); } + const blockScopeFlags = declarationList.flags & 7 /* BlockScoped */; + if ((blockScopeFlags === 4 /* Using */ || blockScopeFlags === 6 /* AwaitUsing */) && isForInStatement(declarationList.parent)) { + return grammarErrorOnNode( + declarationList, + blockScopeFlags === 4 /* Using */ ? Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration : Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration + ); + } + if (blockScopeFlags === 6 /* AwaitUsing */) { + return checkAwaitGrammar(declarationList); + } return false; } function allowLetAndConstDeclarations(parent2) { switch (parent2.kind) { - case 244 /* IfStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: - case 253 /* WithStatement */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: + case 245 /* IfStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 254 /* WithStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: return false; - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return allowLetAndConstDeclarations(parent2.parent); } return true; } - function checkGrammarForDisallowedLetOrConstStatement(node) { + function checkGrammarForDisallowedBlockScopedVariableStatement(node) { if (!allowLetAndConstDeclarations(node.parent)) { - if (isLet(node.declarationList)) { - return grammarErrorOnNode(node, Diagnostics.let_declarations_can_only_be_declared_inside_a_block); - } else if (isVarConst(node.declarationList)) { - return grammarErrorOnNode(node, Diagnostics.const_declarations_can_only_be_declared_inside_a_block); + const blockScopeKind = getCombinedNodeFlagsCached(node.declarationList) & 7 /* BlockScoped */; + if (blockScopeKind) { + const keyword = blockScopeKind === 1 /* Let */ ? "let" : blockScopeKind === 2 /* Const */ ? "const" : blockScopeKind === 4 /* Using */ ? "using" : blockScopeKind === 6 /* AwaitUsing */ ? "await using" : Debug.fail("Unknown BlockScope flag"); + return grammarErrorOnNode(node, Diagnostics._0_declarations_can_only_be_declared_inside_a_block, keyword); } } } @@ -85368,7 +85986,7 @@ ${lanes.join("\n")} if (isAutoAccessorPropertyDeclaration(node) && checkGrammarForInvalidQuestionMark(node.questionToken, Diagnostics.An_accessor_property_cannot_be_declared_optional)) { return true; } - } else if (node.parent.kind === 263 /* InterfaceDeclaration */) { + } else if (node.parent.kind === 264 /* InterfaceDeclaration */) { if (checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)) { return true; } @@ -85385,23 +86003,23 @@ ${lanes.join("\n")} return grammarErrorOnNode(node.initializer, Diagnostics.A_type_literal_property_cannot_have_an_initializer); } } - if (node.flags & 16777216 /* Ambient */) { + if (node.flags & 33554432 /* Ambient */) { checkAmbientInitializer(node); } - if (isPropertyDeclaration(node) && node.exclamationToken && (!isClassLike(node.parent) || !node.type || node.initializer || node.flags & 16777216 /* Ambient */ || isStatic(node) || hasAbstractModifier(node))) { + if (isPropertyDeclaration(node) && node.exclamationToken && (!isClassLike(node.parent) || !node.type || node.initializer || node.flags & 33554432 /* Ambient */ || isStatic(node) || hasAbstractModifier(node))) { const message = node.initializer ? Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions : !node.type ? Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations : Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context; return grammarErrorOnNode(node.exclamationToken, message); } } function checkGrammarTopLevelElementForRequiredDeclareModifier(node) { - if (node.kind === 263 /* InterfaceDeclaration */ || node.kind === 264 /* TypeAliasDeclaration */ || node.kind === 271 /* ImportDeclaration */ || node.kind === 270 /* ImportEqualsDeclaration */ || node.kind === 277 /* ExportDeclaration */ || node.kind === 276 /* ExportAssignment */ || node.kind === 269 /* NamespaceExportDeclaration */ || hasSyntacticModifier(node, 2 /* Ambient */ | 1 /* Export */ | 1024 /* Default */)) { + if (node.kind === 264 /* InterfaceDeclaration */ || node.kind === 265 /* TypeAliasDeclaration */ || node.kind === 272 /* ImportDeclaration */ || node.kind === 271 /* ImportEqualsDeclaration */ || node.kind === 278 /* ExportDeclaration */ || node.kind === 277 /* ExportAssignment */ || node.kind === 270 /* NamespaceExportDeclaration */ || hasSyntacticModifier(node, 2 /* Ambient */ | 1 /* Export */ | 1024 /* Default */)) { return false; } return grammarErrorOnFirstToken(node, Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier); } function checkGrammarTopLevelElementsForRequiredDeclareModifier(file) { for (const decl of file.statements) { - if (isDeclaration(decl) || decl.kind === 242 /* VariableStatement */) { + if (isDeclaration(decl) || decl.kind === 243 /* VariableStatement */) { if (checkGrammarTopLevelElementForRequiredDeclareModifier(decl)) { return true; } @@ -85410,15 +86028,15 @@ ${lanes.join("\n")} return false; } function checkGrammarSourceFile(node) { - return !!(node.flags & 16777216 /* Ambient */) && checkGrammarTopLevelElementsForRequiredDeclareModifier(node); + return !!(node.flags & 33554432 /* Ambient */) && checkGrammarTopLevelElementsForRequiredDeclareModifier(node); } function checkGrammarStatementInAmbientContext(node) { - if (node.flags & 16777216 /* Ambient */) { + if (node.flags & 33554432 /* Ambient */) { const links = getNodeLinks(node); if (!links.hasReportedStatementInAmbientContext && (isFunctionLike(node.parent) || isAccessor(node.parent))) { return getNodeLinks(node).hasReportedStatementInAmbientContext = grammarErrorOnFirstToken(node, Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts); } - if (node.parent.kind === 240 /* Block */ || node.parent.kind === 267 /* ModuleBlock */ || node.parent.kind === 311 /* SourceFile */) { + if (node.parent.kind === 241 /* Block */ || node.parent.kind === 268 /* ModuleBlock */ || node.parent.kind === 312 /* SourceFile */) { const links2 = getNodeLinks(node.parent); if (!links2.hasReportedStatementInAmbientContext) { return links2.hasReportedStatementInAmbientContext = grammarErrorOnFirstToken(node, Diagnostics.Statements_are_not_allowed_in_ambient_contexts); @@ -85487,7 +86105,7 @@ ${lanes.join("\n")} if (node.isTypeOnly && node.name && node.namedBindings) { return grammarErrorOnNode(node, Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both); } - if (node.isTypeOnly && ((_a = node.namedBindings) == null ? void 0 : _a.kind) === 274 /* NamedImports */) { + if (node.isTypeOnly && ((_a = node.namedBindings) == null ? void 0 : _a.kind) === 275 /* NamedImports */) { return checkGrammarNamedImportsOrExports(node.namedBindings); } return false; @@ -85497,7 +86115,7 @@ ${lanes.join("\n")} if (specifier.isTypeOnly) { return grammarErrorOnFirstToken( specifier, - specifier.kind === 275 /* ImportSpecifier */ ? Diagnostics.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement : Diagnostics.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement + specifier.kind === 276 /* ImportSpecifier */ ? Diagnostics.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement : Diagnostics.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement ); } }); @@ -85611,17 +86229,37 @@ ${lanes.join("\n")} const name = getPropertyNameForPropertyNameNode(node); return name ? name : isComputedPropertyName(node) && isEntityNameExpression(node.expression) ? tryGetNameFromEntityNameExpression(node.expression) : void 0; } + function getCombinedModifierFlagsCached(node) { + if (lastGetCombinedModifierFlagsNode === node) { + return lastGetCombinedModifierFlagsResult; + } + lastGetCombinedModifierFlagsNode = node; + lastGetCombinedModifierFlagsResult = getCombinedModifierFlags(node); + return lastGetCombinedModifierFlagsResult; + } + function getCombinedNodeFlagsCached(node) { + if (lastGetCombinedNodeFlagsNode === node) { + return lastGetCombinedNodeFlagsResult; + } + lastGetCombinedNodeFlagsNode = node; + lastGetCombinedNodeFlagsResult = getCombinedNodeFlags(node); + return lastGetCombinedNodeFlagsResult; + } + function isVarConstLike(node) { + const blockScopeKind = getCombinedNodeFlagsCached(node) & 7 /* BlockScoped */; + return blockScopeKind === 2 /* Const */ || blockScopeKind === 4 /* Using */ || blockScopeKind === 6 /* AwaitUsing */; + } } function isNotAccessor(declaration) { return !isAccessor(declaration); } function isNotOverload(declaration) { - return declaration.kind !== 261 /* FunctionDeclaration */ && declaration.kind !== 173 /* MethodDeclaration */ || !!declaration.body; + return declaration.kind !== 262 /* FunctionDeclaration */ && declaration.kind !== 174 /* MethodDeclaration */ || !!declaration.body; } function isDeclarationNameOrImportPropertyName(name) { switch (name.parent.kind) { - case 275 /* ImportSpecifier */: - case 280 /* ExportSpecifier */: + case 276 /* ImportSpecifier */: + case 281 /* ExportSpecifier */: return isIdentifier(name); default: return isDeclarationName(name); @@ -85772,6 +86410,7 @@ ${lanes.join("\n")} CheckMode3[CheckMode3["IsForSignatureHelp"] = 16] = "IsForSignatureHelp"; CheckMode3[CheckMode3["IsForStringLiteralArgumentCompletions"] = 32] = "IsForStringLiteralArgumentCompletions"; CheckMode3[CheckMode3["RestBindingElement"] = 64] = "RestBindingElement"; + CheckMode3[CheckMode3["TypeOnly"] = 128] = "TypeOnly"; return CheckMode3; })(CheckMode || {}); SignatureCheckMode = /* @__PURE__ */ ((SignatureCheckMode3) => { @@ -85805,13 +86444,13 @@ ${lanes.join("\n")} JsxNames2.IntrinsicClassAttributes = "IntrinsicClassAttributes"; JsxNames2.LibraryManagedAttributes = "LibraryManagedAttributes"; })(JsxNames || (JsxNames = {})); - SymbolTrackerImpl = class { + SymbolTrackerImpl = class _SymbolTrackerImpl { constructor(context, tracker, moduleResolverHost) { this.moduleResolverHost = void 0; this.inner = void 0; this.disableTrackSymbol = false; var _a; - while (tracker instanceof SymbolTrackerImpl) { + while (tracker instanceof _SymbolTrackerImpl) { tracker = tracker.inner; } this.inner = tracker; @@ -86180,21 +86819,21 @@ ${lanes.join("\n")} "use strict"; init_ts2(); visitEachChildTable = { - [165 /* QualifiedName */]: function visitEachChildOfQualifiedName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [166 /* QualifiedName */]: function visitEachChildOfQualifiedName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateQualifiedName( node, Debug.checkDefined(nodeVisitor(node.left, visitor, isEntityName)), Debug.checkDefined(nodeVisitor(node.right, visitor, isIdentifier)) ); }, - [166 /* ComputedPropertyName */]: function visitEachChildOfComputedPropertyName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [167 /* ComputedPropertyName */]: function visitEachChildOfComputedPropertyName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateComputedPropertyName( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, // Signature elements - [167 /* TypeParameter */]: function visitEachChildOfTypeParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [168 /* TypeParameter */]: function visitEachChildOfTypeParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeParameterDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -86203,7 +86842,7 @@ ${lanes.join("\n")} nodeVisitor(node.default, visitor, isTypeNode) ); }, - [168 /* Parameter */]: function visitEachChildOfParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [169 /* Parameter */]: function visitEachChildOfParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateParameterDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -86214,14 +86853,14 @@ ${lanes.join("\n")} nodeVisitor(node.initializer, visitor, isExpression) ); }, - [169 /* Decorator */]: function visitEachChildOfDecorator(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [170 /* Decorator */]: function visitEachChildOfDecorator(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateDecorator( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, // Type elements - [170 /* PropertySignature */]: function visitEachChildOfPropertySignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [171 /* PropertySignature */]: function visitEachChildOfPropertySignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updatePropertySignature( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -86230,7 +86869,7 @@ ${lanes.join("\n")} nodeVisitor(node.type, visitor, isTypeNode) ); }, - [171 /* PropertyDeclaration */]: function visitEachChildOfPropertyDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [172 /* PropertyDeclaration */]: function visitEachChildOfPropertyDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updatePropertyDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -86241,7 +86880,7 @@ ${lanes.join("\n")} nodeVisitor(node.initializer, visitor, isExpression) ); }, - [172 /* MethodSignature */]: function visitEachChildOfMethodSignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [173 /* MethodSignature */]: function visitEachChildOfMethodSignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateMethodSignature( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -86252,7 +86891,7 @@ ${lanes.join("\n")} nodeVisitor(node.type, visitor, isTypeNode) ); }, - [173 /* MethodDeclaration */]: function visitEachChildOfMethodDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [174 /* MethodDeclaration */]: function visitEachChildOfMethodDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateMethodDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -86265,7 +86904,7 @@ ${lanes.join("\n")} visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [175 /* Constructor */]: function visitEachChildOfConstructorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [176 /* Constructor */]: function visitEachChildOfConstructorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateConstructorDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -86273,7 +86912,7 @@ ${lanes.join("\n")} visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [176 /* GetAccessor */]: function visitEachChildOfGetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [177 /* GetAccessor */]: function visitEachChildOfGetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateGetAccessorDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -86283,7 +86922,7 @@ ${lanes.join("\n")} visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [177 /* SetAccessor */]: function visitEachChildOfSetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [178 /* SetAccessor */]: function visitEachChildOfSetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateSetAccessorDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -86292,7 +86931,7 @@ ${lanes.join("\n")} visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [174 /* ClassStaticBlockDeclaration */]: function visitEachChildOfClassStaticBlockDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [175 /* ClassStaticBlockDeclaration */]: function visitEachChildOfClassStaticBlockDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { context.startLexicalEnvironment(); context.suspendLexicalEnvironment(); return context.factory.updateClassStaticBlockDeclaration( @@ -86300,7 +86939,7 @@ ${lanes.join("\n")} visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [178 /* CallSignature */]: function visitEachChildOfCallSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [179 /* CallSignature */]: function visitEachChildOfCallSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateCallSignature( node, nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), @@ -86308,7 +86947,7 @@ ${lanes.join("\n")} nodeVisitor(node.type, visitor, isTypeNode) ); }, - [179 /* ConstructSignature */]: function visitEachChildOfConstructSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [180 /* ConstructSignature */]: function visitEachChildOfConstructSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateConstructSignature( node, nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), @@ -86316,7 +86955,7 @@ ${lanes.join("\n")} nodeVisitor(node.type, visitor, isTypeNode) ); }, - [180 /* IndexSignature */]: function visitEachChildOfIndexSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [181 /* IndexSignature */]: function visitEachChildOfIndexSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateIndexSignature( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -86325,7 +86964,7 @@ ${lanes.join("\n")} ); }, // Types - [181 /* TypePredicate */]: function visitEachChildOfTypePredicateNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [182 /* TypePredicate */]: function visitEachChildOfTypePredicateNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypePredicateNode( node, nodeVisitor(node.assertsModifier, visitor, isAssertsKeyword), @@ -86333,14 +86972,14 @@ ${lanes.join("\n")} nodeVisitor(node.type, visitor, isTypeNode) ); }, - [182 /* TypeReference */]: function visitEachChildOfTypeReferenceNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [183 /* TypeReference */]: function visitEachChildOfTypeReferenceNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeReferenceNode( node, Debug.checkDefined(nodeVisitor(node.typeName, visitor, isEntityName)), nodesVisitor(node.typeArguments, visitor, isTypeNode) ); }, - [183 /* FunctionType */]: function visitEachChildOfFunctionTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [184 /* FunctionType */]: function visitEachChildOfFunctionTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateFunctionTypeNode( node, nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), @@ -86348,7 +86987,7 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [184 /* ConstructorType */]: function visitEachChildOfConstructorTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [185 /* ConstructorType */]: function visitEachChildOfConstructorTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateConstructorTypeNode( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -86357,56 +86996,56 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [185 /* TypeQuery */]: function visitEachChildOfTypeQueryNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [186 /* TypeQuery */]: function visitEachChildOfTypeQueryNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeQueryNode( node, Debug.checkDefined(nodeVisitor(node.exprName, visitor, isEntityName)), nodesVisitor(node.typeArguments, visitor, isTypeNode) ); }, - [186 /* TypeLiteral */]: function visitEachChildOfTypeLiteralNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [187 /* TypeLiteral */]: function visitEachChildOfTypeLiteralNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateTypeLiteralNode( node, nodesVisitor(node.members, visitor, isTypeElement) ); }, - [187 /* ArrayType */]: function visitEachChildOfArrayTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [188 /* ArrayType */]: function visitEachChildOfArrayTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateArrayTypeNode( node, Debug.checkDefined(nodeVisitor(node.elementType, visitor, isTypeNode)) ); }, - [188 /* TupleType */]: function visitEachChildOfTupleTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [189 /* TupleType */]: function visitEachChildOfTupleTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateTupleTypeNode( node, nodesVisitor(node.elements, visitor, isTypeNode) ); }, - [189 /* OptionalType */]: function visitEachChildOfOptionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [190 /* OptionalType */]: function visitEachChildOfOptionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateOptionalTypeNode( node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [190 /* RestType */]: function visitEachChildOfRestTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [191 /* RestType */]: function visitEachChildOfRestTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateRestTypeNode( node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [191 /* UnionType */]: function visitEachChildOfUnionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [192 /* UnionType */]: function visitEachChildOfUnionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateUnionTypeNode( node, nodesVisitor(node.types, visitor, isTypeNode) ); }, - [192 /* IntersectionType */]: function visitEachChildOfIntersectionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [193 /* IntersectionType */]: function visitEachChildOfIntersectionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateIntersectionTypeNode( node, nodesVisitor(node.types, visitor, isTypeNode) ); }, - [193 /* ConditionalType */]: function visitEachChildOfConditionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [194 /* ConditionalType */]: function visitEachChildOfConditionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateConditionalTypeNode( node, Debug.checkDefined(nodeVisitor(node.checkType, visitor, isTypeNode)), @@ -86415,13 +87054,13 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.falseType, visitor, isTypeNode)) ); }, - [194 /* InferType */]: function visitEachChildOfInferTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [195 /* InferType */]: function visitEachChildOfInferTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateInferTypeNode( node, Debug.checkDefined(nodeVisitor(node.typeParameter, visitor, isTypeParameterDeclaration)) ); }, - [204 /* ImportType */]: function visitEachChildOfImportTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [205 /* ImportType */]: function visitEachChildOfImportTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateImportTypeNode( node, Debug.checkDefined(nodeVisitor(node.argument, visitor, isTypeNode)), @@ -86431,14 +87070,14 @@ ${lanes.join("\n")} node.isTypeOf ); }, - [301 /* ImportTypeAssertionContainer */]: function visitEachChildOfImportTypeAssertionContainer(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [302 /* ImportTypeAssertionContainer */]: function visitEachChildOfImportTypeAssertionContainer(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateImportTypeAssertionContainer( node, Debug.checkDefined(nodeVisitor(node.assertClause, visitor, isAssertClause)), node.multiLine ); }, - [201 /* NamedTupleMember */]: function visitEachChildOfNamedTupleMember(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [202 /* NamedTupleMember */]: function visitEachChildOfNamedTupleMember(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateNamedTupleMember( node, tokenVisitor ? nodeVisitor(node.dotDotDotToken, tokenVisitor, isDotDotDotToken) : node.dotDotDotToken, @@ -86447,26 +87086,26 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [195 /* ParenthesizedType */]: function visitEachChildOfParenthesizedType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [196 /* ParenthesizedType */]: function visitEachChildOfParenthesizedType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateParenthesizedType( node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [197 /* TypeOperator */]: function visitEachChildOfTypeOperatorNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [198 /* TypeOperator */]: function visitEachChildOfTypeOperatorNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeOperatorNode( node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [198 /* IndexedAccessType */]: function visitEachChildOfIndexedAccessType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [199 /* IndexedAccessType */]: function visitEachChildOfIndexedAccessType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateIndexedAccessTypeNode( node, Debug.checkDefined(nodeVisitor(node.objectType, visitor, isTypeNode)), Debug.checkDefined(nodeVisitor(node.indexType, visitor, isTypeNode)) ); }, - [199 /* MappedType */]: function visitEachChildOfMappedType(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [200 /* MappedType */]: function visitEachChildOfMappedType(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateMappedTypeNode( node, tokenVisitor ? nodeVisitor(node.readonlyToken, tokenVisitor, isReadonlyKeywordOrPlusOrMinusToken) : node.readonlyToken, @@ -86477,20 +87116,20 @@ ${lanes.join("\n")} nodesVisitor(node.members, visitor, isTypeElement) ); }, - [200 /* LiteralType */]: function visitEachChildOfLiteralTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [201 /* LiteralType */]: function visitEachChildOfLiteralTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateLiteralTypeNode( node, Debug.checkDefined(nodeVisitor(node.literal, visitor, isLiteralTypeLiteral)) ); }, - [202 /* TemplateLiteralType */]: function visitEachChildOfTemplateLiteralType(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [203 /* TemplateLiteralType */]: function visitEachChildOfTemplateLiteralType(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTemplateLiteralType( node, Debug.checkDefined(nodeVisitor(node.head, visitor, isTemplateHead)), nodesVisitor(node.templateSpans, visitor, isTemplateLiteralTypeSpan) ); }, - [203 /* TemplateLiteralTypeSpan */]: function visitEachChildOfTemplateLiteralTypeSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [204 /* TemplateLiteralTypeSpan */]: function visitEachChildOfTemplateLiteralTypeSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTemplateLiteralTypeSpan( node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)), @@ -86498,19 +87137,19 @@ ${lanes.join("\n")} ); }, // Binding patterns - [205 /* ObjectBindingPattern */]: function visitEachChildOfObjectBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [206 /* ObjectBindingPattern */]: function visitEachChildOfObjectBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateObjectBindingPattern( node, nodesVisitor(node.elements, visitor, isBindingElement) ); }, - [206 /* ArrayBindingPattern */]: function visitEachChildOfArrayBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [207 /* ArrayBindingPattern */]: function visitEachChildOfArrayBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateArrayBindingPattern( node, nodesVisitor(node.elements, visitor, isArrayBindingElement) ); }, - [207 /* BindingElement */]: function visitEachChildOfBindingElement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [208 /* BindingElement */]: function visitEachChildOfBindingElement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateBindingElement( node, tokenVisitor ? nodeVisitor(node.dotDotDotToken, tokenVisitor, isDotDotDotToken) : node.dotDotDotToken, @@ -86520,19 +87159,19 @@ ${lanes.join("\n")} ); }, // Expression - [208 /* ArrayLiteralExpression */]: function visitEachChildOfArrayLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [209 /* ArrayLiteralExpression */]: function visitEachChildOfArrayLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateArrayLiteralExpression( node, nodesVisitor(node.elements, visitor, isExpression) ); }, - [209 /* ObjectLiteralExpression */]: function visitEachChildOfObjectLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [210 /* ObjectLiteralExpression */]: function visitEachChildOfObjectLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateObjectLiteralExpression( node, nodesVisitor(node.properties, visitor, isObjectLiteralElementLike) ); }, - [210 /* PropertyAccessExpression */]: function visitEachChildOfPropertyAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [211 /* PropertyAccessExpression */]: function visitEachChildOfPropertyAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return isPropertyAccessChain(node) ? context.factory.updatePropertyAccessChain( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), @@ -86544,7 +87183,7 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.name, visitor, isMemberName)) ); }, - [211 /* ElementAccessExpression */]: function visitEachChildOfElementAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [212 /* ElementAccessExpression */]: function visitEachChildOfElementAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return isElementAccessChain(node) ? context.factory.updateElementAccessChain( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), @@ -86556,7 +87195,7 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.argumentExpression, visitor, isExpression)) ); }, - [212 /* CallExpression */]: function visitEachChildOfCallExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [213 /* CallExpression */]: function visitEachChildOfCallExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return isCallChain(node) ? context.factory.updateCallChain( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), @@ -86570,7 +87209,7 @@ ${lanes.join("\n")} nodesVisitor(node.arguments, visitor, isExpression) ); }, - [213 /* NewExpression */]: function visitEachChildOfNewExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [214 /* NewExpression */]: function visitEachChildOfNewExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateNewExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), @@ -86578,7 +87217,7 @@ ${lanes.join("\n")} nodesVisitor(node.arguments, visitor, isExpression) ); }, - [214 /* TaggedTemplateExpression */]: function visitEachChildOfTaggedTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [215 /* TaggedTemplateExpression */]: function visitEachChildOfTaggedTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTaggedTemplateExpression( node, Debug.checkDefined(nodeVisitor(node.tag, visitor, isExpression)), @@ -86586,20 +87225,20 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.template, visitor, isTemplateLiteral)) ); }, - [215 /* TypeAssertionExpression */]: function visitEachChildOfTypeAssertionExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [216 /* TypeAssertionExpression */]: function visitEachChildOfTypeAssertionExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeAssertion( node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)), Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [216 /* ParenthesizedExpression */]: function visitEachChildOfParenthesizedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [217 /* ParenthesizedExpression */]: function visitEachChildOfParenthesizedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateParenthesizedExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [217 /* FunctionExpression */]: function visitEachChildOfFunctionExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [218 /* FunctionExpression */]: function visitEachChildOfFunctionExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateFunctionExpression( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -86611,7 +87250,7 @@ ${lanes.join("\n")} visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [218 /* ArrowFunction */]: function visitEachChildOfArrowFunction(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [219 /* ArrowFunction */]: function visitEachChildOfArrowFunction(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateArrowFunction( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -86622,43 +87261,43 @@ ${lanes.join("\n")} visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [219 /* DeleteExpression */]: function visitEachChildOfDeleteExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [220 /* DeleteExpression */]: function visitEachChildOfDeleteExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateDeleteExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [220 /* TypeOfExpression */]: function visitEachChildOfTypeOfExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [221 /* TypeOfExpression */]: function visitEachChildOfTypeOfExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeOfExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [221 /* VoidExpression */]: function visitEachChildOfVoidExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [222 /* VoidExpression */]: function visitEachChildOfVoidExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateVoidExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [222 /* AwaitExpression */]: function visitEachChildOfAwaitExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [223 /* AwaitExpression */]: function visitEachChildOfAwaitExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateAwaitExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [223 /* PrefixUnaryExpression */]: function visitEachChildOfPrefixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [224 /* PrefixUnaryExpression */]: function visitEachChildOfPrefixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updatePrefixUnaryExpression( node, Debug.checkDefined(nodeVisitor(node.operand, visitor, isExpression)) ); }, - [224 /* PostfixUnaryExpression */]: function visitEachChildOfPostfixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [225 /* PostfixUnaryExpression */]: function visitEachChildOfPostfixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updatePostfixUnaryExpression( node, Debug.checkDefined(nodeVisitor(node.operand, visitor, isExpression)) ); }, - [225 /* BinaryExpression */]: function visitEachChildOfBinaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [226 /* BinaryExpression */]: function visitEachChildOfBinaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateBinaryExpression( node, Debug.checkDefined(nodeVisitor(node.left, visitor, isExpression)), @@ -86666,7 +87305,7 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.right, visitor, isExpression)) ); }, - [226 /* ConditionalExpression */]: function visitEachChildOfConditionalExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [227 /* ConditionalExpression */]: function visitEachChildOfConditionalExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateConditionalExpression( node, Debug.checkDefined(nodeVisitor(node.condition, visitor, isExpression)), @@ -86676,27 +87315,27 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.whenFalse, visitor, isExpression)) ); }, - [227 /* TemplateExpression */]: function visitEachChildOfTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [228 /* TemplateExpression */]: function visitEachChildOfTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTemplateExpression( node, Debug.checkDefined(nodeVisitor(node.head, visitor, isTemplateHead)), nodesVisitor(node.templateSpans, visitor, isTemplateSpan) ); }, - [228 /* YieldExpression */]: function visitEachChildOfYieldExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [229 /* YieldExpression */]: function visitEachChildOfYieldExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateYieldExpression( node, tokenVisitor ? nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken) : node.asteriskToken, nodeVisitor(node.expression, visitor, isExpression) ); }, - [229 /* SpreadElement */]: function visitEachChildOfSpreadElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [230 /* SpreadElement */]: function visitEachChildOfSpreadElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateSpreadElement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [230 /* ClassExpression */]: function visitEachChildOfClassExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [231 /* ClassExpression */]: function visitEachChildOfClassExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateClassExpression( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -86706,28 +87345,28 @@ ${lanes.join("\n")} nodesVisitor(node.members, visitor, isClassElement) ); }, - [232 /* ExpressionWithTypeArguments */]: function visitEachChildOfExpressionWithTypeArguments(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [233 /* ExpressionWithTypeArguments */]: function visitEachChildOfExpressionWithTypeArguments(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateExpressionWithTypeArguments( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), nodesVisitor(node.typeArguments, visitor, isTypeNode) ); }, - [233 /* AsExpression */]: function visitEachChildOfAsExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [234 /* AsExpression */]: function visitEachChildOfAsExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateAsExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [237 /* SatisfiesExpression */]: function visitEachChildOfSatisfiesExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [238 /* SatisfiesExpression */]: function visitEachChildOfSatisfiesExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateSatisfiesExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [234 /* NonNullExpression */]: function visitEachChildOfNonNullExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [235 /* NonNullExpression */]: function visitEachChildOfNonNullExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return isOptionalChain(node) ? context.factory.updateNonNullChain( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) @@ -86736,14 +87375,14 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [235 /* MetaProperty */]: function visitEachChildOfMetaProperty(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [236 /* MetaProperty */]: function visitEachChildOfMetaProperty(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateMetaProperty( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) ); }, // Misc - [238 /* TemplateSpan */]: function visitEachChildOfTemplateSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [239 /* TemplateSpan */]: function visitEachChildOfTemplateSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTemplateSpan( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), @@ -86751,26 +87390,26 @@ ${lanes.join("\n")} ); }, // Element - [240 /* Block */]: function visitEachChildOfBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [241 /* Block */]: function visitEachChildOfBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateBlock( node, nodesVisitor(node.statements, visitor, isStatement) ); }, - [242 /* VariableStatement */]: function visitEachChildOfVariableStatement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [243 /* VariableStatement */]: function visitEachChildOfVariableStatement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateVariableStatement( node, nodesVisitor(node.modifiers, visitor, isModifierLike), Debug.checkDefined(nodeVisitor(node.declarationList, visitor, isVariableDeclarationList)) ); }, - [243 /* ExpressionStatement */]: function visitEachChildOfExpressionStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [244 /* ExpressionStatement */]: function visitEachChildOfExpressionStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateExpressionStatement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [244 /* IfStatement */]: function visitEachChildOfIfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [245 /* IfStatement */]: function visitEachChildOfIfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateIfStatement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), @@ -86778,21 +87417,21 @@ ${lanes.join("\n")} nodeVisitor(node.elseStatement, visitor, isStatement, context.factory.liftToBlock) ); }, - [245 /* DoStatement */]: function visitEachChildOfDoStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [246 /* DoStatement */]: function visitEachChildOfDoStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateDoStatement( node, visitIterationBody(node.statement, visitor, context, nodeVisitor), Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [246 /* WhileStatement */]: function visitEachChildOfWhileStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [247 /* WhileStatement */]: function visitEachChildOfWhileStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateWhileStatement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), visitIterationBody(node.statement, visitor, context, nodeVisitor) ); }, - [247 /* ForStatement */]: function visitEachChildOfForStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [248 /* ForStatement */]: function visitEachChildOfForStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateForStatement( node, nodeVisitor(node.initializer, visitor, isForInitializer), @@ -86801,7 +87440,7 @@ ${lanes.join("\n")} visitIterationBody(node.statement, visitor, context, nodeVisitor) ); }, - [248 /* ForInStatement */]: function visitEachChildOfForInStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [249 /* ForInStatement */]: function visitEachChildOfForInStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateForInStatement( node, Debug.checkDefined(nodeVisitor(node.initializer, visitor, isForInitializer)), @@ -86809,7 +87448,7 @@ ${lanes.join("\n")} visitIterationBody(node.statement, visitor, context, nodeVisitor) ); }, - [249 /* ForOfStatement */]: function visitEachChildOfForOfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [250 /* ForOfStatement */]: function visitEachChildOfForOfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateForOfStatement( node, tokenVisitor ? nodeVisitor(node.awaitModifier, tokenVisitor, isAwaitKeyword) : node.awaitModifier, @@ -86818,52 +87457,52 @@ ${lanes.join("\n")} visitIterationBody(node.statement, visitor, context, nodeVisitor) ); }, - [250 /* ContinueStatement */]: function visitEachChildOfContinueStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [251 /* ContinueStatement */]: function visitEachChildOfContinueStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateContinueStatement( node, nodeVisitor(node.label, visitor, isIdentifier) ); }, - [251 /* BreakStatement */]: function visitEachChildOfBreakStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [252 /* BreakStatement */]: function visitEachChildOfBreakStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateBreakStatement( node, nodeVisitor(node.label, visitor, isIdentifier) ); }, - [252 /* ReturnStatement */]: function visitEachChildOfReturnStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [253 /* ReturnStatement */]: function visitEachChildOfReturnStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateReturnStatement( node, nodeVisitor(node.expression, visitor, isExpression) ); }, - [253 /* WithStatement */]: function visitEachChildOfWithStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [254 /* WithStatement */]: function visitEachChildOfWithStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateWithStatement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), Debug.checkDefined(nodeVisitor(node.statement, visitor, isStatement, context.factory.liftToBlock)) ); }, - [254 /* SwitchStatement */]: function visitEachChildOfSwitchStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [255 /* SwitchStatement */]: function visitEachChildOfSwitchStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateSwitchStatement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), Debug.checkDefined(nodeVisitor(node.caseBlock, visitor, isCaseBlock)) ); }, - [255 /* LabeledStatement */]: function visitEachChildOfLabeledStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [256 /* LabeledStatement */]: function visitEachChildOfLabeledStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateLabeledStatement( node, Debug.checkDefined(nodeVisitor(node.label, visitor, isIdentifier)), Debug.checkDefined(nodeVisitor(node.statement, visitor, isStatement, context.factory.liftToBlock)) ); }, - [256 /* ThrowStatement */]: function visitEachChildOfThrowStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [257 /* ThrowStatement */]: function visitEachChildOfThrowStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateThrowStatement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [257 /* TryStatement */]: function visitEachChildOfTryStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [258 /* TryStatement */]: function visitEachChildOfTryStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTryStatement( node, Debug.checkDefined(nodeVisitor(node.tryBlock, visitor, isBlock)), @@ -86871,7 +87510,7 @@ ${lanes.join("\n")} nodeVisitor(node.finallyBlock, visitor, isBlock) ); }, - [259 /* VariableDeclaration */]: function visitEachChildOfVariableDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [260 /* VariableDeclaration */]: function visitEachChildOfVariableDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateVariableDeclaration( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isBindingName)), @@ -86880,13 +87519,13 @@ ${lanes.join("\n")} nodeVisitor(node.initializer, visitor, isExpression) ); }, - [260 /* VariableDeclarationList */]: function visitEachChildOfVariableDeclarationList(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [261 /* VariableDeclarationList */]: function visitEachChildOfVariableDeclarationList(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateVariableDeclarationList( node, nodesVisitor(node.declarations, visitor, isVariableDeclaration) ); }, - [261 /* FunctionDeclaration */]: function visitEachChildOfFunctionDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [262 /* FunctionDeclaration */]: function visitEachChildOfFunctionDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateFunctionDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -86898,7 +87537,7 @@ ${lanes.join("\n")} visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [262 /* ClassDeclaration */]: function visitEachChildOfClassDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [263 /* ClassDeclaration */]: function visitEachChildOfClassDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateClassDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -86908,7 +87547,7 @@ ${lanes.join("\n")} nodesVisitor(node.members, visitor, isClassElement) ); }, - [263 /* InterfaceDeclaration */]: function visitEachChildOfInterfaceDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [264 /* InterfaceDeclaration */]: function visitEachChildOfInterfaceDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateInterfaceDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -86918,7 +87557,7 @@ ${lanes.join("\n")} nodesVisitor(node.members, visitor, isTypeElement) ); }, - [264 /* TypeAliasDeclaration */]: function visitEachChildOfTypeAliasDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [265 /* TypeAliasDeclaration */]: function visitEachChildOfTypeAliasDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeAliasDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -86927,7 +87566,7 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [265 /* EnumDeclaration */]: function visitEachChildOfEnumDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [266 /* EnumDeclaration */]: function visitEachChildOfEnumDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateEnumDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -86935,7 +87574,7 @@ ${lanes.join("\n")} nodesVisitor(node.members, visitor, isEnumMember) ); }, - [266 /* ModuleDeclaration */]: function visitEachChildOfModuleDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [267 /* ModuleDeclaration */]: function visitEachChildOfModuleDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateModuleDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -86943,25 +87582,25 @@ ${lanes.join("\n")} nodeVisitor(node.body, visitor, isModuleBody) ); }, - [267 /* ModuleBlock */]: function visitEachChildOfModuleBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [268 /* ModuleBlock */]: function visitEachChildOfModuleBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateModuleBlock( node, nodesVisitor(node.statements, visitor, isStatement) ); }, - [268 /* CaseBlock */]: function visitEachChildOfCaseBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [269 /* CaseBlock */]: function visitEachChildOfCaseBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateCaseBlock( node, nodesVisitor(node.clauses, visitor, isCaseOrDefaultClause) ); }, - [269 /* NamespaceExportDeclaration */]: function visitEachChildOfNamespaceExportDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [270 /* NamespaceExportDeclaration */]: function visitEachChildOfNamespaceExportDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateNamespaceExportDeclaration( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) ); }, - [270 /* ImportEqualsDeclaration */]: function visitEachChildOfImportEqualsDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [271 /* ImportEqualsDeclaration */]: function visitEachChildOfImportEqualsDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateImportEqualsDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -86970,7 +87609,7 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.moduleReference, visitor, isModuleReference)) ); }, - [271 /* ImportDeclaration */]: function visitEachChildOfImportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [272 /* ImportDeclaration */]: function visitEachChildOfImportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateImportDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -86979,21 +87618,21 @@ ${lanes.join("\n")} nodeVisitor(node.assertClause, visitor, isAssertClause) ); }, - [299 /* AssertClause */]: function visitEachChildOfAssertClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [300 /* AssertClause */]: function visitEachChildOfAssertClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateAssertClause( node, nodesVisitor(node.elements, visitor, isAssertEntry), node.multiLine ); }, - [300 /* AssertEntry */]: function visitEachChildOfAssertEntry(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [301 /* AssertEntry */]: function visitEachChildOfAssertEntry(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateAssertEntry( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isAssertionKey)), Debug.checkDefined(nodeVisitor(node.value, visitor, isExpression)) ); }, - [272 /* ImportClause */]: function visitEachChildOfImportClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [273 /* ImportClause */]: function visitEachChildOfImportClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateImportClause( node, node.isTypeOnly, @@ -87001,25 +87640,25 @@ ${lanes.join("\n")} nodeVisitor(node.namedBindings, visitor, isNamedImportBindings) ); }, - [273 /* NamespaceImport */]: function visitEachChildOfNamespaceImport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [274 /* NamespaceImport */]: function visitEachChildOfNamespaceImport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateNamespaceImport( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) ); }, - [279 /* NamespaceExport */]: function visitEachChildOfNamespaceExport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [280 /* NamespaceExport */]: function visitEachChildOfNamespaceExport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateNamespaceExport( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) ); }, - [274 /* NamedImports */]: function visitEachChildOfNamedImports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [275 /* NamedImports */]: function visitEachChildOfNamedImports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateNamedImports( node, nodesVisitor(node.elements, visitor, isImportSpecifier) ); }, - [275 /* ImportSpecifier */]: function visitEachChildOfImportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [276 /* ImportSpecifier */]: function visitEachChildOfImportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateImportSpecifier( node, node.isTypeOnly, @@ -87027,14 +87666,14 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) ); }, - [276 /* ExportAssignment */]: function visitEachChildOfExportAssignment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [277 /* ExportAssignment */]: function visitEachChildOfExportAssignment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateExportAssignment( node, nodesVisitor(node.modifiers, visitor, isModifierLike), Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [277 /* ExportDeclaration */]: function visitEachChildOfExportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [278 /* ExportDeclaration */]: function visitEachChildOfExportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateExportDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -87044,13 +87683,13 @@ ${lanes.join("\n")} nodeVisitor(node.assertClause, visitor, isAssertClause) ); }, - [278 /* NamedExports */]: function visitEachChildOfNamedExports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [279 /* NamedExports */]: function visitEachChildOfNamedExports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateNamedExports( node, nodesVisitor(node.elements, visitor, isExportSpecifier) ); }, - [280 /* ExportSpecifier */]: function visitEachChildOfExportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [281 /* ExportSpecifier */]: function visitEachChildOfExportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateExportSpecifier( node, node.isTypeOnly, @@ -87059,14 +87698,14 @@ ${lanes.join("\n")} ); }, // Module references - [282 /* ExternalModuleReference */]: function visitEachChildOfExternalModuleReference(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [283 /* ExternalModuleReference */]: function visitEachChildOfExternalModuleReference(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateExternalModuleReference( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, // JSX - [283 /* JsxElement */]: function visitEachChildOfJsxElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [284 /* JsxElement */]: function visitEachChildOfJsxElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxElement( node, Debug.checkDefined(nodeVisitor(node.openingElement, visitor, isJsxOpeningElement)), @@ -87074,7 +87713,7 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.closingElement, visitor, isJsxClosingElement)) ); }, - [284 /* JsxSelfClosingElement */]: function visitEachChildOfJsxSelfClosingElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [285 /* JsxSelfClosingElement */]: function visitEachChildOfJsxSelfClosingElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxSelfClosingElement( node, Debug.checkDefined(nodeVisitor(node.tagName, visitor, isJsxTagNameExpression)), @@ -87082,7 +87721,7 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.attributes, visitor, isJsxAttributes)) ); }, - [285 /* JsxOpeningElement */]: function visitEachChildOfJsxOpeningElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [286 /* JsxOpeningElement */]: function visitEachChildOfJsxOpeningElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxOpeningElement( node, Debug.checkDefined(nodeVisitor(node.tagName, visitor, isJsxTagNameExpression)), @@ -87090,20 +87729,20 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.attributes, visitor, isJsxAttributes)) ); }, - [286 /* JsxClosingElement */]: function visitEachChildOfJsxClosingElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [287 /* JsxClosingElement */]: function visitEachChildOfJsxClosingElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxClosingElement( node, Debug.checkDefined(nodeVisitor(node.tagName, visitor, isJsxTagNameExpression)) ); }, - [294 /* JsxNamespacedName */]: function forEachChildInJsxNamespacedName2(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [295 /* JsxNamespacedName */]: function forEachChildInJsxNamespacedName2(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxNamespacedName( node, Debug.checkDefined(nodeVisitor(node.namespace, visitor, isIdentifier)), Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) ); }, - [287 /* JsxFragment */]: function visitEachChildOfJsxFragment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [288 /* JsxFragment */]: function visitEachChildOfJsxFragment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxFragment( node, Debug.checkDefined(nodeVisitor(node.openingFragment, visitor, isJsxOpeningFragment)), @@ -87111,52 +87750,52 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.closingFragment, visitor, isJsxClosingFragment)) ); }, - [290 /* JsxAttribute */]: function visitEachChildOfJsxAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [291 /* JsxAttribute */]: function visitEachChildOfJsxAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxAttribute( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isJsxAttributeName)), nodeVisitor(node.initializer, visitor, isStringLiteralOrJsxExpression) ); }, - [291 /* JsxAttributes */]: function visitEachChildOfJsxAttributes(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [292 /* JsxAttributes */]: function visitEachChildOfJsxAttributes(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateJsxAttributes( node, nodesVisitor(node.properties, visitor, isJsxAttributeLike) ); }, - [292 /* JsxSpreadAttribute */]: function visitEachChildOfJsxSpreadAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [293 /* JsxSpreadAttribute */]: function visitEachChildOfJsxSpreadAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxSpreadAttribute( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [293 /* JsxExpression */]: function visitEachChildOfJsxExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [294 /* JsxExpression */]: function visitEachChildOfJsxExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxExpression( node, nodeVisitor(node.expression, visitor, isExpression) ); }, // Clauses - [295 /* CaseClause */]: function visitEachChildOfCaseClause(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [296 /* CaseClause */]: function visitEachChildOfCaseClause(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateCaseClause( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), nodesVisitor(node.statements, visitor, isStatement) ); }, - [296 /* DefaultClause */]: function visitEachChildOfDefaultClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [297 /* DefaultClause */]: function visitEachChildOfDefaultClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateDefaultClause( node, nodesVisitor(node.statements, visitor, isStatement) ); }, - [297 /* HeritageClause */]: function visitEachChildOfHeritageClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [298 /* HeritageClause */]: function visitEachChildOfHeritageClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateHeritageClause( node, nodesVisitor(node.types, visitor, isExpressionWithTypeArguments) ); }, - [298 /* CatchClause */]: function visitEachChildOfCatchClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [299 /* CatchClause */]: function visitEachChildOfCatchClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateCatchClause( node, nodeVisitor(node.variableDeclaration, visitor, isVariableDeclaration), @@ -87164,28 +87803,28 @@ ${lanes.join("\n")} ); }, // Property assignments - [302 /* PropertyAssignment */]: function visitEachChildOfPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [303 /* PropertyAssignment */]: function visitEachChildOfPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updatePropertyAssignment( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), Debug.checkDefined(nodeVisitor(node.initializer, visitor, isExpression)) ); }, - [303 /* ShorthandPropertyAssignment */]: function visitEachChildOfShorthandPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [304 /* ShorthandPropertyAssignment */]: function visitEachChildOfShorthandPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateShorthandPropertyAssignment( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)), nodeVisitor(node.objectAssignmentInitializer, visitor, isExpression) ); }, - [304 /* SpreadAssignment */]: function visitEachChildOfSpreadAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [305 /* SpreadAssignment */]: function visitEachChildOfSpreadAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateSpreadAssignment( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, // Enum - [305 /* EnumMember */]: function visitEachChildOfEnumMember(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [306 /* EnumMember */]: function visitEachChildOfEnumMember(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateEnumMember( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), @@ -87193,20 +87832,20 @@ ${lanes.join("\n")} ); }, // Top-level nodes - [311 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context, _nodesVisitor, _nodeVisitor, _tokenVisitor) { + [312 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context, _nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateSourceFile( node, visitLexicalEnvironment(node.statements, visitor, context) ); }, // Transformation nodes - [359 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [360 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updatePartiallyEmittedExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [360 /* CommaListExpression */]: function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [361 /* CommaListExpression */]: function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateCommaListExpression( node, nodesVisitor(node.elements, visitor, isExpression) @@ -87499,13 +88138,13 @@ ${lanes.join("\n")} let sourceLine = 0; let sourceCharacter = 0; let nameIndex = 0; - let error; + let error2; return { get pos() { return pos; }, get error() { - return error; + return error2; }, get state() { return captureMapping( @@ -87590,8 +88229,8 @@ ${lanes.join("\n")} return { value: void 0, done: true }; } function setError(message) { - if (error === void 0) { - error = message; + if (error2 === void 0) { + error2 = message; } } function setErrorAndStopIterating(message) { @@ -87599,7 +88238,7 @@ ${lanes.join("\n")} return stopIterating(); } function hasReportedError() { - return error !== void 0; + return error2 !== void 0; } function isSourceMappingSegmentEnd() { return pos === mappings.length || mappings.charCodeAt(pos) === 44 /* comma */ || mappings.charCodeAt(pos) === 59 /* semicolon */; @@ -87807,7 +88446,7 @@ ${lanes.join("\n")} function chainBundle(context, transformSourceFile) { return transformSourceFileOrBundle; function transformSourceFileOrBundle(node) { - return node.kind === 311 /* SourceFile */ ? transformSourceFile(node) : transformBundle(node); + return node.kind === 312 /* SourceFile */ ? transformSourceFile(node) : transformBundle(node); } function transformBundle(node) { return context.factory.createBundle(map(node.sourceFiles, transformSourceFile), node.prepends); @@ -87837,9 +88476,11 @@ ${lanes.join("\n")} function getImportNeedsImportDefaultHelper(node) { return !getImportNeedsImportStarHelper(node) && (isDefaultImport(node) || !!node.importClause && isNamedImports(node.importClause.namedBindings) && containsDefaultReference(node.importClause.namedBindings)); } - function collectExternalModuleInfo(context, sourceFile, resolver, compilerOptions) { + function collectExternalModuleInfo(context, sourceFile) { + const resolver = context.getEmitResolver(); + const compilerOptions = context.getCompilerOptions(); const externalImports = []; - const exportSpecifiers = createMultiMap(); + const exportSpecifiers = new IdentifierNameMultiMap(); const exportedBindings = []; const uniqueExports = /* @__PURE__ */ new Map(); let exportedNames; @@ -87850,7 +88491,7 @@ ${lanes.join("\n")} let hasImportDefault = false; for (const node of sourceFile.statements) { switch (node.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: externalImports.push(node); if (!hasImportStar && getImportNeedsImportStarHelper(node)) { hasImportStar = true; @@ -87859,12 +88500,12 @@ ${lanes.join("\n")} hasImportDefault = true; } break; - case 270 /* ImportEqualsDeclaration */: - if (node.moduleReference.kind === 282 /* ExternalModuleReference */) { + case 271 /* ImportEqualsDeclaration */: + if (node.moduleReference.kind === 283 /* ExternalModuleReference */) { externalImports.push(node); } break; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: if (node.moduleSpecifier) { if (!node.exportClause) { externalImports.push(node); @@ -87887,19 +88528,19 @@ ${lanes.join("\n")} addExportedNamesForExportDeclaration(node); } break; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: if (node.isExportEquals && !exportEquals) { exportEquals = node; } break; - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: if (hasSyntacticModifier(node, 1 /* Export */)) { for (const decl of node.declarationList.declarations) { exportedNames = collectExportedVariableInfo(decl, uniqueExports, exportedNames, exportedBindings); } } break; - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: if (hasSyntacticModifier(node, 1 /* Export */)) { if (hasSyntacticModifier(node, 1024 /* Default */)) { if (!hasExportDefault) { @@ -87916,7 +88557,7 @@ ${lanes.join("\n")} } } break; - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: if (hasSyntacticModifier(node, 1 /* Export */)) { if (hasSyntacticModifier(node, 1024 /* Default */)) { if (!hasExportDefault) { @@ -87945,7 +88586,7 @@ ${lanes.join("\n")} if (!uniqueExports.get(idText(specifier.name))) { const name = specifier.propertyName || specifier.name; if (!node.moduleSpecifier) { - exportSpecifiers.add(idText(name), specifier); + exportSpecifiers.add(name, specifier); } const decl = resolver.getReferencedImportDeclaration(name) || resolver.getReferencedValueDeclaration(name); if (decl) { @@ -88035,14 +88676,23 @@ ${lanes.join("\n")} const expression = skipParentheses(statement.expression); return isSuperCall(expression) ? expression : void 0; } - function findSuperStatementIndex(statements, indexAfterLastPrologueStatement) { - for (let i = indexAfterLastPrologueStatement; i < statements.length; i += 1) { + function findSuperStatementIndexPathWorker(statements, start, indices) { + for (let i = start; i < statements.length; i += 1) { const statement = statements[i]; if (getSuperCallFromStatement(statement)) { - return i; + indices.unshift(i); + return true; + } else if (isTryStatement(statement) && findSuperStatementIndexPathWorker(statement.tryBlock.statements, 0, indices)) { + indices.unshift(i); + return true; } } - return -1; + return false; + } + function findSuperStatementIndexPath(statements, start) { + const indices = []; + findSuperStatementIndexPathWorker(statements, start, indices); + return indices; } function getProperties(node, requireInitializer, isStatic2) { return filter(node.members, (m) => isInitializedOrStaticProperty(m, requireInitializer, isStatic2)); @@ -88060,7 +88710,7 @@ ${lanes.join("\n")} return isPropertyDeclaration(member) && hasStaticModifier(member); } function isInitializedProperty(member) { - return member.kind === 171 /* PropertyDeclaration */ && member.initializer !== void 0; + return member.kind === 172 /* PropertyDeclaration */ && member.initializer !== void 0; } function isNonStaticMethodOrAccessorWithPrivateName(member) { return !isStatic(member) && (isMethodOrAccessor(member) || isAutoAccessorPropertyDeclaration(member)) && isPrivateIdentifier(member.name); @@ -88097,15 +88747,15 @@ ${lanes.join("\n")} } function getAllDecoratorsOfClassElement(member, parent2, useLegacyDecorators) { switch (member.kind) { - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: if (!useLegacyDecorators) { return getAllDecoratorsOfMethod(member); } return getAllDecoratorsOfAccessors(member, parent2); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return getAllDecoratorsOfMethod(member); - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return getAllDecoratorsOfProperty(member); default: return void 0; @@ -88177,10 +88827,90 @@ ${lanes.join("\n")} function accessPrivateIdentifier(env, name) { return walkUpLexicalEnvironments(env, (env2) => getPrivateIdentifier(env2.privateEnv, name)); } + var IdentifierNameMap, IdentifierNameMultiMap; var init_utilities3 = __esm({ "src/compiler/transformers/utilities.ts"() { "use strict"; init_ts2(); + IdentifierNameMap = class _IdentifierNameMap { + constructor() { + this._map = /* @__PURE__ */ new Map(); + } + get size() { + return this._map.size; + } + has(key) { + return this._map.has(_IdentifierNameMap.toKey(key)); + } + get(key) { + return this._map.get(_IdentifierNameMap.toKey(key)); + } + set(key, value) { + this._map.set(_IdentifierNameMap.toKey(key), value); + return this; + } + delete(key) { + var _a; + return ((_a = this._map) == null ? void 0 : _a.delete(_IdentifierNameMap.toKey(key))) ?? false; + } + clear() { + this._map.clear(); + } + values() { + return this._map.values(); + } + static toKey(name) { + if (isGeneratedPrivateIdentifier(name) || isGeneratedIdentifier(name)) { + const autoGenerate = name.emitNode.autoGenerate; + if ((autoGenerate.flags & 7 /* KindMask */) === 4 /* Node */) { + const node = getNodeForGeneratedName(name); + const baseName = isMemberName(node) && node !== name ? _IdentifierNameMap.toKey(node) : `(generated@${getNodeId(node)})`; + return formatGeneratedName( + /*privateName*/ + false, + autoGenerate.prefix, + baseName, + autoGenerate.suffix, + _IdentifierNameMap.toKey + ); + } else { + const baseName = `(auto@${autoGenerate.id})`; + return formatGeneratedName( + /*privateName*/ + false, + autoGenerate.prefix, + baseName, + autoGenerate.suffix, + _IdentifierNameMap.toKey + ); + } + } + if (isPrivateIdentifier(name)) { + return idText(name).slice(1); + } + return idText(name); + } + }; + IdentifierNameMultiMap = class extends IdentifierNameMap { + add(key, value) { + let values = this.get(key); + if (values) { + values.push(value); + } else { + this.set(key, values = [value]); + } + return values; + } + remove(key, value) { + const values = this.get(key); + if (values) { + unorderedRemoveItem(values, value); + if (!values.length) { + this.delete(key); + } + } + } + }; } }); @@ -88652,6 +89382,287 @@ ${lanes.join("\n")} } }); + // src/compiler/transformers/classThis.ts + function createClassThisAssignmentBlock(factory2, classThis, thisExpression = factory2.createThis()) { + const expression = factory2.createAssignment(classThis, thisExpression); + const statement = factory2.createExpressionStatement(expression); + const body = factory2.createBlock( + [statement], + /*multiLine*/ + false + ); + const block = factory2.createClassStaticBlockDeclaration(body); + getOrCreateEmitNode(block).classThis = classThis; + return block; + } + function isClassThisAssignmentBlock(node) { + var _a; + if (!isClassStaticBlockDeclaration(node) || node.body.statements.length !== 1) { + return false; + } + const statement = node.body.statements[0]; + return isExpressionStatement(statement) && isAssignmentExpression( + statement.expression, + /*excludeCompoundAssignment*/ + true + ) && isIdentifier(statement.expression.left) && ((_a = node.emitNode) == null ? void 0 : _a.classThis) === statement.expression.left && statement.expression.right.kind === 110 /* ThisKeyword */; + } + function classHasClassThisAssignment(node) { + var _a; + return !!((_a = node.emitNode) == null ? void 0 : _a.classThis) && some(node.members, isClassThisAssignmentBlock); + } + function injectClassThisAssignmentIfMissing(factory2, node, classThis, thisExpression) { + if (classHasClassThisAssignment(node)) { + return node; + } + const staticBlock = createClassThisAssignmentBlock(factory2, classThis, thisExpression); + if (node.name) { + setSourceMapRange(staticBlock.body.statements[0], node.name); + } + const members = factory2.createNodeArray([staticBlock, ...node.members]); + setTextRange(members, node.members); + const updatedNode = isClassDeclaration(node) ? factory2.updateClassDeclaration( + node, + node.modifiers, + node.name, + node.typeParameters, + node.heritageClauses, + members + ) : factory2.updateClassExpression( + node, + node.modifiers, + node.name, + node.typeParameters, + node.heritageClauses, + members + ); + getOrCreateEmitNode(updatedNode).classThis = classThis; + return updatedNode; + } + var init_classThis = __esm({ + "src/compiler/transformers/classThis.ts"() { + "use strict"; + init_ts2(); + } + }); + + // src/compiler/transformers/namedEvaluation.ts + function getAssignedNameOfIdentifier(factory2, name, expression) { + const original = getOriginalNode(skipOuterExpressions(expression)); + if ((isClassDeclaration(original) || isFunctionDeclaration(original)) && !original.name && hasSyntacticModifier(original, 1024 /* Default */)) { + return factory2.createStringLiteral("default"); + } + return factory2.createStringLiteralFromNode(name); + } + function getAssignedNameOfPropertyName(context, name, assignedNameText) { + const { factory: factory2 } = context; + if (assignedNameText !== void 0) { + const assignedName2 = factory2.createStringLiteral(assignedNameText); + return { assignedName: assignedName2, name }; + } + if (isPropertyNameLiteral(name) || isPrivateIdentifier(name)) { + const assignedName2 = factory2.createStringLiteralFromNode(name); + return { assignedName: assignedName2, name }; + } + if (isPropertyNameLiteral(name.expression) && !isIdentifier(name.expression)) { + const assignedName2 = factory2.createStringLiteralFromNode(name.expression); + return { assignedName: assignedName2, name }; + } + const assignedName = factory2.getGeneratedNameForNode(name); + context.hoistVariableDeclaration(assignedName); + const key = context.getEmitHelperFactory().createPropKeyHelper(name.expression); + const assignment = factory2.createAssignment(assignedName, key); + const updatedName = factory2.updateComputedPropertyName(name, assignment); + return { assignedName, name: updatedName }; + } + function createClassNamedEvaluationHelperBlock(context, assignedName, thisExpression = context.factory.createThis()) { + const { factory: factory2 } = context; + const expression = context.getEmitHelperFactory().createSetFunctionNameHelper(thisExpression, assignedName); + const statement = factory2.createExpressionStatement(expression); + const body = factory2.createBlock( + [statement], + /*multiLine*/ + false + ); + const block = factory2.createClassStaticBlockDeclaration(body); + getOrCreateEmitNode(block).assignedName = assignedName; + return block; + } + function isClassNamedEvaluationHelperBlock(node) { + var _a; + if (!isClassStaticBlockDeclaration(node) || node.body.statements.length !== 1) { + return false; + } + const statement = node.body.statements[0]; + return isExpressionStatement(statement) && isCallToHelper(statement.expression, "___setFunctionName") && statement.expression.arguments.length >= 2 && statement.expression.arguments[1] === ((_a = node.emitNode) == null ? void 0 : _a.assignedName); + } + function classHasExplicitlyAssignedName(node) { + var _a; + return !!((_a = node.emitNode) == null ? void 0 : _a.assignedName) && some(node.members, isClassNamedEvaluationHelperBlock); + } + function classHasDeclaredOrExplicitlyAssignedName(node) { + return !!node.name || classHasExplicitlyAssignedName(node); + } + function injectClassNamedEvaluationHelperBlockIfMissing(context, node, assignedName, thisExpression) { + if (classHasExplicitlyAssignedName(node)) { + return node; + } + const { factory: factory2 } = context; + const namedEvaluationBlock = createClassNamedEvaluationHelperBlock(context, assignedName, thisExpression); + if (node.name) { + setSourceMapRange(namedEvaluationBlock.body.statements[0], node.name); + } + const insertionIndex = findIndex(node.members, isClassThisAssignmentBlock) + 1; + const leading = node.members.slice(0, insertionIndex); + const trailing = node.members.slice(insertionIndex); + const members = factory2.createNodeArray([...leading, namedEvaluationBlock, ...trailing]); + setTextRange(members, node.members); + node = isClassDeclaration(node) ? factory2.updateClassDeclaration( + node, + node.modifiers, + node.name, + node.typeParameters, + node.heritageClauses, + members + ) : factory2.updateClassExpression( + node, + node.modifiers, + node.name, + node.typeParameters, + node.heritageClauses, + members + ); + getOrCreateEmitNode(node).assignedName = assignedName; + return node; + } + function finishTransformNamedEvaluation(context, expression, assignedName, ignoreEmptyStringLiteral) { + if (ignoreEmptyStringLiteral && isStringLiteral(assignedName) && isEmptyStringLiteral(assignedName)) { + return expression; + } + const { factory: factory2 } = context; + const innerExpression = skipOuterExpressions(expression); + const updatedExpression = isClassExpression(innerExpression) ? cast(injectClassNamedEvaluationHelperBlockIfMissing(context, innerExpression, assignedName), isClassExpression) : context.getEmitHelperFactory().createSetFunctionNameHelper(innerExpression, assignedName); + return factory2.restoreOuterExpressions(expression, updatedExpression); + } + function transformNamedEvaluationOfPropertyAssignment(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const { assignedName, name } = getAssignedNameOfPropertyName(context, node.name, assignedNameText); + const initializer = finishTransformNamedEvaluation(context, node.initializer, assignedName, ignoreEmptyStringLiteral); + return factory2.updatePropertyAssignment( + node, + name, + initializer + ); + } + function transformNamedEvaluationOfShorthandAssignmentProperty(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : getAssignedNameOfIdentifier(factory2, node.name, node.objectAssignmentInitializer); + const objectAssignmentInitializer = finishTransformNamedEvaluation(context, node.objectAssignmentInitializer, assignedName, ignoreEmptyStringLiteral); + return factory2.updateShorthandPropertyAssignment( + node, + node.name, + objectAssignmentInitializer + ); + } + function transformNamedEvaluationOfVariableDeclaration(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : getAssignedNameOfIdentifier(factory2, node.name, node.initializer); + const initializer = finishTransformNamedEvaluation(context, node.initializer, assignedName, ignoreEmptyStringLiteral); + return factory2.updateVariableDeclaration( + node, + node.name, + node.exclamationToken, + node.type, + initializer + ); + } + function transformNamedEvaluationOfParameterDeclaration(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : getAssignedNameOfIdentifier(factory2, node.name, node.initializer); + const initializer = finishTransformNamedEvaluation(context, node.initializer, assignedName, ignoreEmptyStringLiteral); + return factory2.updateParameterDeclaration( + node, + node.modifiers, + node.dotDotDotToken, + node.name, + node.questionToken, + node.type, + initializer + ); + } + function transformNamedEvaluationOfBindingElement(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : getAssignedNameOfIdentifier(factory2, node.name, node.initializer); + const initializer = finishTransformNamedEvaluation(context, node.initializer, assignedName, ignoreEmptyStringLiteral); + return factory2.updateBindingElement( + node, + node.dotDotDotToken, + node.propertyName, + node.name, + initializer + ); + } + function transformNamedEvaluationOfPropertyDeclaration(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const { assignedName, name } = getAssignedNameOfPropertyName(context, node.name, assignedNameText); + const initializer = finishTransformNamedEvaluation(context, node.initializer, assignedName, ignoreEmptyStringLiteral); + return factory2.updatePropertyDeclaration( + node, + node.modifiers, + name, + node.questionToken ?? node.exclamationToken, + node.type, + initializer + ); + } + function transformNamedEvaluationOfAssignmentExpression(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : getAssignedNameOfIdentifier(factory2, node.left, node.right); + const right = finishTransformNamedEvaluation(context, node.right, assignedName, ignoreEmptyStringLiteral); + return factory2.updateBinaryExpression( + node, + node.left, + node.operatorToken, + right + ); + } + function transformNamedEvaluationOfExportAssignment(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : factory2.createStringLiteral(node.isExportEquals ? "" : "default"); + const expression = finishTransformNamedEvaluation(context, node.expression, assignedName, ignoreEmptyStringLiteral); + return factory2.updateExportAssignment( + node, + node.modifiers, + expression + ); + } + function transformNamedEvaluation(context, node, ignoreEmptyStringLiteral, assignedName) { + switch (node.kind) { + case 303 /* PropertyAssignment */: + return transformNamedEvaluationOfPropertyAssignment(context, node, ignoreEmptyStringLiteral, assignedName); + case 304 /* ShorthandPropertyAssignment */: + return transformNamedEvaluationOfShorthandAssignmentProperty(context, node, ignoreEmptyStringLiteral, assignedName); + case 260 /* VariableDeclaration */: + return transformNamedEvaluationOfVariableDeclaration(context, node, ignoreEmptyStringLiteral, assignedName); + case 169 /* Parameter */: + return transformNamedEvaluationOfParameterDeclaration(context, node, ignoreEmptyStringLiteral, assignedName); + case 208 /* BindingElement */: + return transformNamedEvaluationOfBindingElement(context, node, ignoreEmptyStringLiteral, assignedName); + case 172 /* PropertyDeclaration */: + return transformNamedEvaluationOfPropertyDeclaration(context, node, ignoreEmptyStringLiteral, assignedName); + case 226 /* BinaryExpression */: + return transformNamedEvaluationOfAssignmentExpression(context, node, ignoreEmptyStringLiteral, assignedName); + case 277 /* ExportAssignment */: + return transformNamedEvaluationOfExportAssignment(context, node, ignoreEmptyStringLiteral, assignedName); + } + } + var init_namedEvaluation = __esm({ + "src/compiler/transformers/namedEvaluation.ts"() { + "use strict"; + init_ts2(); + } + }); + // src/compiler/transformers/taggedTemplate.ts function processTaggedTemplateExpression(context, node, visitor, currentSourceFile, recordTaggedTemplateString, level) { const tag = visitNode(node.tag, visitor, isExpression); @@ -88750,8 +89761,8 @@ ${lanes.join("\n")} const previousOnSubstituteNode = context.onSubstituteNode; context.onEmitNode = onEmitNode; context.onSubstituteNode = onSubstituteNode; - context.enableSubstitution(210 /* PropertyAccessExpression */); - context.enableSubstitution(211 /* ElementAccessExpression */); + context.enableSubstitution(211 /* PropertyAccessExpression */); + context.enableSubstitution(212 /* ElementAccessExpression */); let currentSourceFile; let currentNamespace; let currentNamespaceContainerName; @@ -88762,14 +89773,14 @@ ${lanes.join("\n")} let applicableSubstitutions; return transformSourceFileOrBundle; function transformSourceFileOrBundle(node) { - if (node.kind === 312 /* Bundle */) { + if (node.kind === 313 /* Bundle */) { return transformBundle(node); } return transformSourceFile(node); } function transformBundle(node) { return factory2.createBundle(node.sourceFiles.map(transformSourceFile), mapDefined(node.prepends, (prepend) => { - if (prepend.kind === 314 /* InputFiles */) { + if (prepend.kind === 315 /* InputFiles */) { return createUnparsedSourceFile(prepend, "js"); } return prepend; @@ -88800,22 +89811,22 @@ ${lanes.join("\n")} } function onBeforeVisitNode(node) { switch (node.kind) { - case 311 /* SourceFile */: - case 268 /* CaseBlock */: - case 267 /* ModuleBlock */: - case 240 /* Block */: + case 312 /* SourceFile */: + case 269 /* CaseBlock */: + case 268 /* ModuleBlock */: + case 241 /* Block */: currentLexicalScope = node; currentScopeFirstDeclarationsOfName = void 0; break; - case 262 /* ClassDeclaration */: - case 261 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: + case 262 /* FunctionDeclaration */: if (hasSyntacticModifier(node, 2 /* Ambient */)) { break; } if (node.name) { recordEmittedDeclarationInScope(node); } else { - Debug.assert(node.kind === 262 /* ClassDeclaration */ || hasSyntacticModifier(node, 1024 /* Default */)); + Debug.assert(node.kind === 263 /* ClassDeclaration */ || hasSyntacticModifier(node, 1024 /* Default */)); } break; } @@ -88834,10 +89845,10 @@ ${lanes.join("\n")} } function sourceElementVisitorWorker(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: - case 270 /* ImportEqualsDeclaration */: - case 276 /* ExportAssignment */: - case 277 /* ExportDeclaration */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 277 /* ExportAssignment */: + case 278 /* ExportDeclaration */: return visitElidableStatement(node); default: return visitorWorker(node); @@ -88852,13 +89863,13 @@ ${lanes.join("\n")} return node; } switch (node.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return visitImportDeclaration(node); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return visitImportEqualsDeclaration(node); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return visitExportAssignment(node); - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return visitExportDeclaration(node); default: Debug.fail("Unhandled ellided statement"); @@ -88868,7 +89879,7 @@ ${lanes.join("\n")} return saveStateAndInvoke(node, namespaceElementVisitorWorker); } function namespaceElementVisitorWorker(node) { - if (node.kind === 277 /* ExportDeclaration */ || node.kind === 271 /* ImportDeclaration */ || node.kind === 272 /* ImportClause */ || node.kind === 270 /* ImportEqualsDeclaration */ && node.moduleReference.kind === 282 /* ExternalModuleReference */) { + if (node.kind === 278 /* ExportDeclaration */ || node.kind === 272 /* ImportDeclaration */ || node.kind === 273 /* ImportClause */ || node.kind === 271 /* ImportEqualsDeclaration */ && node.moduleReference.kind === 283 /* ExternalModuleReference */) { return void 0; } else if (node.transformFlags & 1 /* ContainsTypeScript */ || hasSyntacticModifier(node, 1 /* Export */)) { return visitTypeScript(node); @@ -88880,21 +89891,21 @@ ${lanes.join("\n")} } function classElementVisitorWorker(node, parent2) { switch (node.kind) { - case 175 /* Constructor */: + case 176 /* Constructor */: return visitConstructor(node); - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return visitPropertyDeclaration(node, parent2); - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return visitGetAccessor(node, parent2); - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return visitSetAccessor(node, parent2); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return visitMethodDeclaration(node, parent2); - case 174 /* ClassStaticBlockDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: return visitEachChild(node, visitor, context); - case 239 /* SemicolonClassElement */: + case 240 /* SemicolonClassElement */: return node; - case 180 /* IndexSignature */: + case 181 /* IndexSignature */: return; default: return Debug.failBadSyntaxKind(node); @@ -88905,15 +89916,15 @@ ${lanes.join("\n")} } function objectLiteralElementVisitorWorker(node, parent2) { switch (node.kind) { - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: - case 304 /* SpreadAssignment */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 305 /* SpreadAssignment */: return visitor(node); - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return visitGetAccessor(node, parent2); - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return visitSetAccessor(node, parent2); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return visitMethodDeclaration(node, parent2); default: return Debug.failBadSyntaxKind(node); @@ -88947,19 +89958,19 @@ ${lanes.join("\n")} case 123 /* PrivateKeyword */: case 124 /* ProtectedKeyword */: case 128 /* AbstractKeyword */: - case 163 /* OverrideKeyword */: + case 164 /* OverrideKeyword */: case 87 /* ConstKeyword */: case 138 /* DeclareKeyword */: case 148 /* ReadonlyKeyword */: case 103 /* InKeyword */: case 147 /* OutKeyword */: - case 187 /* ArrayType */: - case 188 /* TupleType */: - case 189 /* OptionalType */: - case 190 /* RestType */: - case 186 /* TypeLiteral */: - case 181 /* TypePredicate */: - case 167 /* TypeParameter */: + case 188 /* ArrayType */: + case 189 /* TupleType */: + case 190 /* OptionalType */: + case 191 /* RestType */: + case 187 /* TypeLiteral */: + case 182 /* TypePredicate */: + case 168 /* TypeParameter */: case 133 /* AnyKeyword */: case 159 /* UnknownKeyword */: case 136 /* BooleanKeyword */: @@ -88968,80 +89979,80 @@ ${lanes.join("\n")} case 146 /* NeverKeyword */: case 116 /* VoidKeyword */: case 155 /* SymbolKeyword */: - case 184 /* ConstructorType */: - case 183 /* FunctionType */: - case 185 /* TypeQuery */: - case 182 /* TypeReference */: - case 191 /* UnionType */: - case 192 /* IntersectionType */: - case 193 /* ConditionalType */: - case 195 /* ParenthesizedType */: - case 196 /* ThisType */: - case 197 /* TypeOperator */: - case 198 /* IndexedAccessType */: - case 199 /* MappedType */: - case 200 /* LiteralType */: - case 180 /* IndexSignature */: + case 185 /* ConstructorType */: + case 184 /* FunctionType */: + case 186 /* TypeQuery */: + case 183 /* TypeReference */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: + case 194 /* ConditionalType */: + case 196 /* ParenthesizedType */: + case 197 /* ThisType */: + case 198 /* TypeOperator */: + case 199 /* IndexedAccessType */: + case 200 /* MappedType */: + case 201 /* LiteralType */: + case 181 /* IndexSignature */: return void 0; - case 264 /* TypeAliasDeclaration */: + case 265 /* TypeAliasDeclaration */: return factory2.createNotEmittedStatement(node); - case 269 /* NamespaceExportDeclaration */: + case 270 /* NamespaceExportDeclaration */: return void 0; - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: return factory2.createNotEmittedStatement(node); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return visitClassDeclaration(node); - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return visitClassExpression(node); - case 297 /* HeritageClause */: + case 298 /* HeritageClause */: return visitHeritageClause(node); - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return visitExpressionWithTypeArguments(node); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return visitObjectLiteralExpression(node); - case 175 /* Constructor */: - case 171 /* PropertyDeclaration */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 174 /* ClassStaticBlockDeclaration */: + case 176 /* Constructor */: + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 175 /* ClassStaticBlockDeclaration */: return Debug.fail("Class and object literal elements must be visited with their respective visitors"); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return visitFunctionDeclaration(node); - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: return visitFunctionExpression(node); - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return visitArrowFunction(node); - case 168 /* Parameter */: + case 169 /* Parameter */: return visitParameter(node); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression(node); - case 215 /* TypeAssertionExpression */: - case 233 /* AsExpression */: + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: return visitAssertionExpression(node); - case 237 /* SatisfiesExpression */: + case 238 /* SatisfiesExpression */: return visitSatisfiesExpression(node); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return visitCallExpression(node); - case 213 /* NewExpression */: + case 214 /* NewExpression */: return visitNewExpression(node); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return visitTaggedTemplateExpression(node); - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: return visitNonNullExpression(node); - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return visitEnumDeclaration(node); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return visitVariableStatement(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return visitVariableDeclaration(node); - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return visitModuleDeclaration(node); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return visitImportEqualsDeclaration(node); - case 284 /* JsxSelfClosingElement */: + case 285 /* JsxSelfClosingElement */: return visitJsxSelfClosingElement(node); - case 285 /* JsxOpeningElement */: + case 286 /* JsxOpeningElement */: return visitJsxJsxOpeningElement(node); default: return visitEachChild(node, visitor, context); @@ -89151,25 +90162,25 @@ ${lanes.join("\n")} insertStatementsAfterStandardPrologue(statements, context.endLexicalEnvironment()); const iife = factory2.createImmediatelyInvokedArrowFunction(statements); setInternalEmitFlags(iife, 1 /* TypeScriptClassWrapper */); - const modifiers2 = facts & 16 /* IsNamedExternalExport */ ? factory2.createModifiersFromModifierFlags(1 /* Export */) : void 0; + const varDecl = factory2.createVariableDeclaration( + factory2.getLocalName( + node, + /*allowComments*/ + false, + /*allowSourceMaps*/ + false + ), + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + iife + ); + setOriginalNode(varDecl, node); const varStatement = factory2.createVariableStatement( - modifiers2, - factory2.createVariableDeclarationList([ - factory2.createVariableDeclaration( - factory2.getLocalName( - node, - /*allowComments*/ - false, - /*allowSourceMaps*/ - false - ), - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - iife - ) - ], 1 /* Let */) + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList([varDecl], 1 /* Let */) ); setOriginalNode(varStatement, node); setCommentRange(varStatement, node); @@ -89198,10 +90209,10 @@ ${lanes.join("\n")} )) ]; } - if (facts & 16 /* IsNamedExternalExport */ && !promoteToIIFE) { + if (facts & 16 /* IsNamedExternalExport */) { return [ statement, - factory2.createExternalModuleExport(factory2.getLocalName( + factory2.createExternalModuleExport(factory2.getDeclarationName( node, /*allowComments*/ false, @@ -89365,19 +90376,19 @@ ${lanes.join("\n")} } function shouldAddTypeMetadata(node) { const kind = node.kind; - return kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */ || kind === 171 /* PropertyDeclaration */; + return kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 172 /* PropertyDeclaration */; } function shouldAddReturnTypeMetadata(node) { - return node.kind === 173 /* MethodDeclaration */; + return node.kind === 174 /* MethodDeclaration */; } function shouldAddParamTypesMetadata(node) { switch (node.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return getFirstConstructorWithBody(node) !== void 0; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return true; } return false; @@ -89426,7 +90437,7 @@ ${lanes.join("\n")} return !nodeIsMissing(node.body); } function visitPropertyDeclaration(node, parent2) { - const isAmbient = node.flags & 16777216 /* Ambient */ || hasSyntacticModifier(node, 256 /* Abstract */); + const isAmbient = node.flags & 33554432 /* Ambient */ || hasSyntacticModifier(node, 256 /* Abstract */); if (isAmbient && !(legacyDecorators && hasDecorators(node))) { return void 0; } @@ -89468,6 +90479,35 @@ ${lanes.join("\n")} transformConstructorBody(node.body, node) ); } + function transformConstructorBodyWorker(statementsOut, statementsIn, statementOffset, superPath, superPathDepth, initializerStatements) { + const superStatementIndex = superPath[superPathDepth]; + const superStatement = statementsIn[superStatementIndex]; + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, statementOffset, superStatementIndex - statementOffset)); + if (isTryStatement(superStatement)) { + const tryBlockStatements = []; + transformConstructorBodyWorker( + tryBlockStatements, + superStatement.tryBlock.statements, + /*statementOffset*/ + 0, + superPath, + superPathDepth + 1, + initializerStatements + ); + const tryBlockStatementsArray = factory2.createNodeArray(tryBlockStatements); + setTextRange(tryBlockStatementsArray, superStatement.tryBlock.statements); + statementsOut.push(factory2.updateTryStatement( + superStatement, + factory2.updateBlock(superStatement.tryBlock, tryBlockStatements), + visitNode(superStatement.catchClause, visitor, isCatchClause), + visitNode(superStatement.finallyBlock, visitor, isBlock) + )); + } else { + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex, 1)); + addRange(statementsOut, initializerStatements); + } + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex + 1)); + } function transformConstructorBody(body, constructor) { const parametersWithPropertyAssignments = constructor && filter(constructor.parameters, (p) => isParameterPropertyDeclaration(p, constructor)); if (!some(parametersWithPropertyAssignments)) { @@ -89482,25 +90522,22 @@ ${lanes.join("\n")} false, visitor ); - const superStatementIndex = findSuperStatementIndex(body.statements, prologueStatementCount); - if (superStatementIndex >= 0) { - addRange( + const superPath = findSuperStatementIndexPath(body.statements, prologueStatementCount); + const parameterPropertyAssignments = mapDefined(parametersWithPropertyAssignments, transformParameterWithPropertyAssignment); + if (superPath.length) { + transformConstructorBodyWorker( statements, - visitNodes2(body.statements, visitor, isStatement, prologueStatementCount, superStatementIndex + 1 - prologueStatementCount) + body.statements, + prologueStatementCount, + superPath, + /*superPathDepth*/ + 0, + parameterPropertyAssignments ); - } - const parameterPropertyAssignments = mapDefined(parametersWithPropertyAssignments, transformParameterWithPropertyAssignment); - if (superStatementIndex >= 0) { - addRange(statements, parameterPropertyAssignments); } else { - statements = [ - ...statements.slice(0, prologueStatementCount), - ...parameterPropertyAssignments, - ...statements.slice(prologueStatementCount) - ]; + addRange(statements, parameterPropertyAssignments); + addRange(statements, visitNodes2(body.statements, visitor, isStatement, prologueStatementCount)); } - const start = superStatementIndex >= 0 ? superStatementIndex + 1 : prologueStatementCount; - addRange(statements, visitNodes2(body.statements, visitor, isStatement, start)); statements = factory2.mergeLexicalEnvironment(statements, endLexicalEnvironment()); const block = factory2.createBlock( setTextRange(factory2.createNodeArray(statements), body.statements), @@ -89996,7 +91033,7 @@ ${lanes.join("\n")} /*allowSourceMaps*/ true )); - const varFlags = currentLexicalScope.kind === 311 /* SourceFile */ ? 0 /* None */ : 1 /* Let */; + const varFlags = currentLexicalScope.kind === 312 /* SourceFile */ ? 0 /* None */ : 1 /* Let */; const statement = factory2.createVariableStatement( visitNodes2(node.modifiers, modifierVisitor, isModifier), factory2.createVariableDeclarationList([varDecl], varFlags) @@ -90007,7 +91044,7 @@ ${lanes.join("\n")} setOriginalNode(statement, node); recordEmittedDeclarationInScope(node); if (isFirstEmittedDeclarationInScope(node)) { - if (node.kind === 265 /* EnumDeclaration */) { + if (node.kind === 266 /* EnumDeclaration */) { setSourceMapRange(statement.declarationList, node); } else { setSourceMapRange(statement, node); @@ -90115,7 +91152,7 @@ ${lanes.join("\n")} let statementsLocation; let blockLocation; if (node.body) { - if (node.body.kind === 267 /* ModuleBlock */) { + if (node.body.kind === 268 /* ModuleBlock */) { saveStateAndInvoke(node.body, (body) => addRange(statements, visitNodes2(body.statements, namespaceElementVisitor, isStatement))); statementsLocation = node.body.statements; blockLocation = node.body; @@ -90146,13 +91183,13 @@ ${lanes.join("\n")} true ); setTextRange(block, blockLocation); - if (!node.body || node.body.kind !== 267 /* ModuleBlock */) { + if (!node.body || node.body.kind !== 268 /* ModuleBlock */) { setEmitFlags(block, getEmitFlags(block) | 3072 /* NoComments */); } return block; } function getInnerMostModuleDeclarationFromDottedModule(moduleDeclaration) { - if (moduleDeclaration.body.kind === 266 /* ModuleDeclaration */) { + if (moduleDeclaration.body.kind === 267 /* ModuleDeclaration */) { const recursiveInnerModule = getInnerMostModuleDeclarationFromDottedModule(moduleDeclaration.body); return recursiveInnerModule || moduleDeclaration.body; } @@ -90187,7 +91224,7 @@ ${lanes.join("\n")} ) : void 0; } function visitNamedImportBindings(node) { - if (node.kind === 273 /* NamespaceImport */) { + if (node.kind === 274 /* NamespaceImport */) { return shouldEmitAliasDeclaration(node) ? node : void 0; } else { const allowEmpty = compilerOptions.verbatimModuleSyntax || compilerOptions.preserveValueImports && (compilerOptions.importsNotUsedAsValues === 1 /* Preserve */ || compilerOptions.importsNotUsedAsValues === 2 /* Error */); @@ -90385,15 +91422,15 @@ ${lanes.join("\n")} if ((enabledSubstitutions & 2 /* NamespaceExports */) === 0) { enabledSubstitutions |= 2 /* NamespaceExports */; context.enableSubstitution(80 /* Identifier */); - context.enableSubstitution(303 /* ShorthandPropertyAssignment */); - context.enableEmitNotification(266 /* ModuleDeclaration */); + context.enableSubstitution(304 /* ShorthandPropertyAssignment */); + context.enableEmitNotification(267 /* ModuleDeclaration */); } } function isTransformedModuleDeclaration(node) { - return getOriginalNode(node).kind === 266 /* ModuleDeclaration */; + return getOriginalNode(node).kind === 267 /* ModuleDeclaration */; } function isTransformedEnumDeclaration(node) { - return getOriginalNode(node).kind === 265 /* EnumDeclaration */; + return getOriginalNode(node).kind === 266 /* EnumDeclaration */; } function onEmitNode(hint, node, emitCallback) { const savedApplicableSubstitutions = applicableSubstitutions; @@ -90438,9 +91475,9 @@ ${lanes.join("\n")} switch (node.kind) { case 80 /* Identifier */: return substituteExpressionIdentifier(node); - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return substitutePropertyAccessExpression(node); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return substituteElementAccessExpression(node); } return node; @@ -90455,8 +91492,8 @@ ${lanes.join("\n")} /*prefixLocals*/ false ); - if (container && container.kind !== 311 /* SourceFile */) { - const substitute = applicableSubstitutions & 2 /* NamespaceExports */ && container.kind === 266 /* ModuleDeclaration */ || applicableSubstitutions & 8 /* NonQualifiedEnumMembers */ && container.kind === 265 /* EnumDeclaration */; + if (container && container.kind !== 312 /* SourceFile */) { + const substitute = applicableSubstitutions & 2 /* NamespaceExports */ && container.kind === 267 /* ModuleDeclaration */ || applicableSubstitutions & 8 /* NonQualifiedEnumMembers */ && container.kind === 266 /* EnumDeclaration */; if (substitute) { return setTextRange( factory2.createPropertyAccessExpression(factory2.getGeneratedNameForNode(container), node), @@ -90481,7 +91518,7 @@ ${lanes.join("\n")} const constantValue = tryGetConstEnumValue(node); if (constantValue !== void 0) { setConstantValue(node, constantValue); - const substitute = typeof constantValue === "string" ? factory2.createStringLiteral(constantValue) : factory2.createNumericLiteral(constantValue); + const substitute = typeof constantValue === "string" ? factory2.createStringLiteral(constantValue) : constantValue < 0 ? factory2.createPrefixUnaryExpression(41 /* MinusToken */, factory2.createNumericLiteral(Math.abs(constantValue))) : factory2.createNumericLiteral(constantValue); if (!compilerOptions.removeComments) { const originalNode = getOriginalNode(node, isAccessExpression); addSyntheticTrailingComment(substitute, 3 /* MultiLineCommentTrivia */, ` ${safeMultiLineComment(getTextOfNode(originalNode))} `); @@ -90544,8 +91581,9 @@ ${lanes.join("\n")} let pendingStatements; let lexicalEnvironment; const lexicalEnvironmentMap = /* @__PURE__ */ new Map(); + const noSubstitution = /* @__PURE__ */ new Set(); let currentClassContainer; - let currentStaticPropertyDeclarationOrStaticBlock; + let currentClassElement; let shouldSubstituteThisWithClassThis = false; let previousShouldSubstituteThisWithClassThis = false; return chainBundle(context, transformSourceFile); @@ -90577,76 +91615,77 @@ ${lanes.join("\n")} switch (node.kind) { case 129 /* AccessorKeyword */: return Debug.fail("Use `modifierVisitor` instead."); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return visitClassDeclaration(node); - case 230 /* ClassExpression */: - return visitClassExpression( - node, - /*referencedName*/ - void 0 - ); - case 174 /* ClassStaticBlockDeclaration */: - case 171 /* PropertyDeclaration */: + case 231 /* ClassExpression */: + return visitClassExpression(node); + case 175 /* ClassStaticBlockDeclaration */: + case 172 /* PropertyDeclaration */: return Debug.fail("Use `classElementVisitor` instead."); - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return visitPropertyAssignment(node); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return visitVariableStatement(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return visitVariableDeclaration(node); - case 168 /* Parameter */: + case 169 /* Parameter */: return visitParameterDeclaration(node); - case 207 /* BindingElement */: + case 208 /* BindingElement */: return visitBindingElement(node); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return visitExportAssignment(node); case 81 /* PrivateIdentifier */: return visitPrivateIdentifier(node); - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return visitPropertyAccessExpression(node); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return visitElementAccessExpression(node); - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return visitPreOrPostfixUnaryExpression( node, /*discarded*/ false ); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return visitBinaryExpression( node, /*discarded*/ false ); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression( node, /*discarded*/ - false, - /*referencedName*/ - void 0 + false ); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return visitCallExpression(node); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return visitExpressionStatement(node); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return visitTaggedTemplateExpression(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement(node); - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 175 /* Constructor */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: { - return setCurrentStaticPropertyDeclarationOrStaticBlockAnd( - /*current*/ + case 110 /* ThisKeyword */: + return visitThisExpression(node); + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + return setCurrentClassElementAnd( + /*classElement*/ void 0, fallbackVisitor, node ); + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: { + return setCurrentClassElementAnd( + node, + fallbackVisitor, + node + ); } default: return fallbackVisitor(node); @@ -90655,56 +91694,32 @@ ${lanes.join("\n")} function fallbackVisitor(node) { return visitEachChild(node, visitor, context); } - function namedEvaluationVisitor(node, referencedName) { - switch (node.kind) { - case 359 /* PartiallyEmittedExpression */: - return visitPartiallyEmittedExpression( - node, - /*discarded*/ - false, - referencedName - ); - case 216 /* ParenthesizedExpression */: - return visitParenthesizedExpression( - node, - /*discarded*/ - false, - referencedName - ); - case 230 /* ClassExpression */: - return visitClassExpression(node, referencedName); - default: - return visitor(node); - } - } function discardedValueVisitor(node) { switch (node.kind) { - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return visitPreOrPostfixUnaryExpression( node, /*discarded*/ true ); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return visitBinaryExpression( node, /*discarded*/ true ); - case 360 /* CommaListExpression */: + case 361 /* CommaListExpression */: return visitCommaListExpression( node, /*discarded*/ true ); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression( node, /*discarded*/ - true, - /*referencedName*/ - void 0 + true ); default: return visitor(node); @@ -90712,9 +91727,9 @@ ${lanes.join("\n")} } function heritageClauseVisitor(node) { switch (node.kind) { - case 297 /* HeritageClause */: + case 298 /* HeritageClause */: return visitEachChild(node, heritageClauseVisitor, context); - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return visitExpressionWithTypeArgumentsInHeritageClause(node); default: return visitor(node); @@ -90722,8 +91737,8 @@ ${lanes.join("\n")} } function assignmentTargetVisitor(node) { switch (node.kind) { - case 209 /* ObjectLiteralExpression */: - case 208 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return visitAssignmentPattern(node); default: return visitor(node); @@ -90731,29 +91746,35 @@ ${lanes.join("\n")} } function classElementVisitor(node) { switch (node.kind) { - case 175 /* Constructor */: - return visitConstructorDeclaration(node); - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 173 /* MethodDeclaration */: - return setCurrentStaticPropertyDeclarationOrStaticBlockAnd( - /*current*/ - void 0, + case 176 /* Constructor */: + return setCurrentClassElementAnd( + node, + visitConstructorDeclaration, + node + ); + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: + return setCurrentClassElementAnd( + node, visitMethodOrAccessorDeclaration, node ); - case 171 /* PropertyDeclaration */: - return setCurrentStaticPropertyDeclarationOrStaticBlockAnd( - /*current*/ - void 0, + case 172 /* PropertyDeclaration */: + return setCurrentClassElementAnd( + node, visitPropertyDeclaration, node ); - case 174 /* ClassStaticBlockDeclaration */: - return visitClassStaticBlockDeclaration(node); - case 166 /* ComputedPropertyName */: + case 175 /* ClassStaticBlockDeclaration */: + return setCurrentClassElementAnd( + node, + visitClassStaticBlockDeclaration, + node + ); + case 167 /* ComputedPropertyName */: return visitComputedPropertyName(node); - case 239 /* SemicolonClassElement */: + case 240 /* SemicolonClassElement */: return node; default: return isModifierLike(node) ? modifierVisitor(node) : visitor(node); @@ -90761,7 +91782,7 @@ ${lanes.join("\n")} } function propertyNameVisitor(node) { switch (node.kind) { - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: return visitComputedPropertyName(node); default: return visitor(node); @@ -90769,10 +91790,10 @@ ${lanes.join("\n")} } function accessorFieldResultVisitor(node) { switch (node.kind) { - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return transformFieldInitializer(node); - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return classElementVisitor(node); default: Debug.assertMissingNode(node, "Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration"); @@ -90801,9 +91822,7 @@ ${lanes.join("\n")} } function visitPropertyAssignment(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const { referencedName, name } = visitReferencedPropertyName(node.name); - const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, referencedName), isExpression); - return factory2.updatePropertyAssignment(node, name, initializer); + node = transformNamedEvaluation(context, node); } return visitEachChild(node, visitor, context); } @@ -90815,71 +91834,33 @@ ${lanes.join("\n")} pendingStatements = savedPendingStatements; return statement; } - function getAssignedNameOfIdentifier(name, initializer) { - const originalClass = getOriginalNode(initializer, isClassLike); - return originalClass && !originalClass.name && hasSyntacticModifier(originalClass, 1024 /* Default */) ? factory2.createStringLiteral("default") : factory2.createStringLiteralFromNode(name); - } function visitVariableDeclaration(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.name, node.initializer); - const name = visitNode(node.name, visitor, isBindingName); - const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateVariableDeclaration( - node, - name, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - initializer - ); + node = transformNamedEvaluation(context, node); } return visitEachChild(node, visitor, context); } function visitParameterDeclaration(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.name, node.initializer); - const name = visitNode(node.name, visitor, isBindingName); - const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateParameterDeclaration( - node, - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - name, - /*questionToken*/ - void 0, - /*type*/ - void 0, - initializer - ); + node = transformNamedEvaluation(context, node); } return visitEachChild(node, visitor, context); } function visitBindingElement(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.name, node.initializer); - const propertyName = visitNode(node.propertyName, visitor, isPropertyName); - const name = visitNode(node.name, visitor, isBindingName); - const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateBindingElement( - node, - /*dotDotDotToken*/ - void 0, - propertyName, - name, - initializer - ); + node = transformNamedEvaluation(context, node); } return visitEachChild(node, visitor, context); } function visitExportAssignment(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = factory2.createStringLiteral(node.isExportEquals ? "" : "default"); - const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); - const expression = visitNode(node.expression, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateExportAssignment(node, modifiers, expression); + node = transformNamedEvaluation( + context, + node, + /*ignoreEmptyStringLiteral*/ + true, + node.isExportEquals ? "" : "default" + ); } return visitEachChild(node, visitor, context); } @@ -90944,12 +91925,15 @@ ${lanes.join("\n")} } return void 0; } - function setCurrentStaticPropertyDeclarationOrStaticBlockAnd(current, visitor2, arg) { - const savedCurrentStaticPropertyDeclarationOrStaticBlock = currentStaticPropertyDeclarationOrStaticBlock; - currentStaticPropertyDeclarationOrStaticBlock = current; - const result = visitor2(arg); - currentStaticPropertyDeclarationOrStaticBlock = savedCurrentStaticPropertyDeclarationOrStaticBlock; - return result; + function setCurrentClassElementAnd(classElement, visitor2, arg) { + if (classElement !== currentClassElement) { + const savedCurrentClassElement = currentClassElement; + currentClassElement = classElement; + const result = visitor2(arg); + currentClassElement = savedCurrentClassElement; + return result; + } + return visitor2(arg); } function getHoistedFunctionName(node) { Debug.assert(isPrivateIdentifier(node.name)); @@ -90967,6 +91951,11 @@ ${lanes.join("\n")} } } } + function getClassThis() { + const lex = getClassLexicalEnvironment(); + const classThis = lex.classThis ?? lex.classConstructor ?? (currentClassContainer == null ? void 0 : currentClassContainer.name); + return Debug.checkDefined(classThis); + } function transformAutoAccessor(node) { const commentRange = getCommentRange(node); const sourceMapRange = getSourceMapRange(node); @@ -90993,11 +91982,13 @@ ${lanes.join("\n")} setOriginalNode(backingField, node); setEmitFlags(backingField, 3072 /* NoComments */); setSourceMapRange(backingField, sourceMapRange); - const getter = createAccessorPropertyGetRedirector(factory2, node, modifiers, getterName); + const receiver = isStatic(node) ? getClassThis() : factory2.createThis(); + const getter = createAccessorPropertyGetRedirector(factory2, node, modifiers, getterName, receiver); setOriginalNode(getter, node); setCommentRange(getter, commentRange); setSourceMapRange(getter, sourceMapRange); - const setter = createAccessorPropertySetRedirector(factory2, node, modifiers, setterName); + const setterModifiers = factory2.createModifiersFromModifierFlags(modifiersToFlags(modifiers)); + const setter = createAccessorPropertySetRedirector(factory2, node, setterModifiers, setterName, receiver); setOriginalNode(setter, node); setEmitFlags(setter, 3072 /* NoComments */); setSourceMapRange(setter, sourceMapRange); @@ -91036,17 +92027,7 @@ ${lanes.join("\n")} ); } if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const { referencedName, name } = visitReferencedPropertyName(node.name); - return factory2.updatePropertyDeclaration( - node, - visitNodes2(node.modifiers, modifierVisitor, isModifier), - name, - /*questionOrExclamationToken*/ - void 0, - /*type*/ - void 0, - visitNode(node.initializer, (child) => namedEvaluationVisitor(child, referencedName), isExpression) - ); + node = transformNamedEvaluation(context, node); } return factory2.updatePropertyDeclaration( node, @@ -91064,9 +92045,7 @@ ${lanes.join("\n")} const expr = getPropertyNameExpressionIfNeeded( node.name, /*shouldHoist*/ - !!node.initializer || useDefineForClassFields, - /*captureReferencedName*/ - isNamedEvaluation(node, isAnonymousClassNeedingAssignedName) + !!node.initializer || useDefineForClassFields ); if (expr) { getPendingExpressions().push(...flattenCommaList(expr)); @@ -91111,8 +92090,21 @@ ${lanes.join("\n")} } return transformFieldInitializer(node); } + function shouldForceDynamicThis() { + return !!currentClassElement && hasStaticModifier(currentClassElement) && isAccessor(currentClassElement) && isAutoAccessorPropertyDeclaration(getOriginalNode(currentClassElement)); + } + function ensureDynamicThisIfNeeded(node) { + if (shouldForceDynamicThis()) { + const innerExpression = skipOuterExpressions(node); + if (innerExpression.kind === 110 /* ThisKeyword */) { + noSubstitution.add(innerExpression); + } + } + } function createPrivateIdentifierAccess(info, receiver) { - return createPrivateIdentifierAccessHelper(info, visitNode(receiver, visitor, isExpression)); + receiver = visitNode(receiver, visitor, isExpression); + ensureDynamicThisIfNeeded(receiver); + return createPrivateIdentifierAccessHelper(info, receiver); } function createPrivateIdentifierAccessHelper(info, receiver) { setCommentRange(receiver, moveRangePos(receiver, -1)); @@ -91157,7 +92149,7 @@ ${lanes.join("\n")} ); } } - if (shouldTransformSuperInStaticInitializers && isSuperProperty(node) && isIdentifier(node.name) && currentStaticPropertyDeclarationOrStaticBlock && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node) && isIdentifier(node.name) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { const { classConstructor, superClassReference, facts } = lexicalEnvironment.data; if (facts & 1 /* ClassWasDecorated */) { return visitInvalidSuperProperty(node); @@ -91176,7 +92168,7 @@ ${lanes.join("\n")} return visitEachChild(node, visitor, context); } function visitElementAccessExpression(node) { - if (shouldTransformSuperInStaticInitializers && isSuperProperty(node) && currentStaticPropertyDeclarationOrStaticBlock && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { const { classConstructor, superClassReference, facts } = lexicalEnvironment.data; if (facts & 1 /* ClassWasDecorated */) { return visitInvalidSuperProperty(node); @@ -91201,6 +92193,7 @@ ${lanes.join("\n")} let info; if (info = accessPrivateIdentifier2(operand.name)) { const receiver = visitNode(operand.expression, visitor, isExpression); + ensureDynamicThisIfNeeded(receiver); const { readExpression, initializeExpression } = createCopiableReceiverExpr(receiver); let expression = createPrivateIdentifierAccess(info, readExpression); const temp = isPrefixUnaryExpression(node) || discarded ? void 0 : factory2.createTempVariable(hoistVariableDeclaration); @@ -91219,7 +92212,7 @@ ${lanes.join("\n")} } return expression; } - } else if (shouldTransformSuperInStaticInitializers && isSuperProperty(operand) && currentStaticPropertyDeclarationOrStaticBlock && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + } else if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(operand) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { const { classConstructor, superClassReference, facts } = lexicalEnvironment.data; if (facts & 1 /* ClassWasDecorated */) { const expression = visitInvalidSuperProperty(operand); @@ -91276,6 +92269,9 @@ ${lanes.join("\n")} } function createCopiableReceiverExpr(receiver) { const clone2 = nodeIsSynthesized(receiver) ? receiver : factory2.cloneNode(receiver); + if (receiver.kind === 110 /* ThisKeyword */ && noSubstitution.has(receiver)) { + noSubstitution.add(clone2); + } if (isSimpleInlineableExpression(receiver)) { return { readExpression: clone2, initializeExpression: void 0 }; } @@ -91306,7 +92302,7 @@ ${lanes.join("\n")} [visitNode(thisArg, visitor, isExpression), ...visitNodes2(node.arguments, visitor, isExpression)] ); } - if (shouldTransformSuperInStaticInitializers && isSuperProperty(node.expression) && currentStaticPropertyDeclarationOrStaticBlock && ((_a = lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) == null ? void 0 : _a.classConstructor)) { + if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node.expression) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && ((_a = lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) == null ? void 0 : _a.classConstructor)) { const invocation = factory2.createFunctionCallCall( visitNode(node.expression, visitor, isExpression), lexicalEnvironment.data.classConstructor, @@ -91335,7 +92331,7 @@ ${lanes.join("\n")} visitNode(node.template, visitor, isTemplateLiteral) ); } - if (shouldTransformSuperInStaticInitializers && isSuperProperty(node.tag) && currentStaticPropertyDeclarationOrStaticBlock && ((_a = lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) == null ? void 0 : _a.classConstructor)) { + if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node.tag) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && ((_a = lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) == null ? void 0 : _a.classConstructor)) { const invocation = factory2.createFunctionBindCall( visitNode(node.tag, visitor, isExpression), lexicalEnvironment.data.classConstructor, @@ -91358,30 +92354,40 @@ ${lanes.join("\n")} lexicalEnvironmentMap.set(getOriginalNode(node), lexicalEnvironment); } if (shouldTransformPrivateElementsOrClassStaticBlocks) { + if (isClassThisAssignmentBlock(node)) { + const result = visitNode(node.body.statements[0].expression, visitor, isExpression); + if (isAssignmentExpression( + result, + /*excludeCompoundAssignment*/ + true + ) && result.left === result.right) { + return void 0; + } + return result; + } + if (isClassNamedEvaluationHelperBlock(node)) { + return visitNode(node.body.statements[0].expression, visitor, isExpression); + } startLexicalEnvironment(); - let statements = setCurrentStaticPropertyDeclarationOrStaticBlockAnd( + let statements = setCurrentClassElementAnd( node, (statements2) => visitNodes2(statements2, visitor, isStatement), node.body.statements ); statements = factory2.mergeLexicalEnvironment(statements, endLexicalEnvironment()); const iife = factory2.createImmediatelyInvokedArrowFunction(statements); + setOriginalNode(skipParentheses(iife.expression), node); + addEmitFlags(skipParentheses(iife.expression), 4 /* AdviseOnEmitNode */); setOriginalNode(iife, node); setTextRange(iife, node); - addEmitFlags(iife, 4 /* AdviseOnEmitNode */); return iife; } } function isAnonymousClassNeedingAssignedName(node) { if (isClassExpression(node) && !node.name) { const staticPropertiesOrClassStaticBlocks = getStaticPropertiesAndClassStaticBlock(node); - const classStaticBlock = find(staticPropertiesOrClassStaticBlocks, isClassStaticBlockDeclaration); - if (classStaticBlock) { - for (const statement of classStaticBlock.body.statements) { - if (isExpressionStatement(statement) && isCallToHelper(statement.expression, "___setFunctionName")) { - return false; - } - } + if (some(staticPropertiesOrClassStaticBlocks, isClassNamedEvaluationHelperBlock)) { + return false; } const hasTransformableStatics = (shouldTransformPrivateElementsOrClassStaticBlocks || !!(getInternalEmitFlags(node) && 32 /* TransformPrivateStaticElements */)) && some(staticPropertiesOrClassStaticBlocks, (node2) => isClassStaticBlockDeclaration(node2) || isPrivateIdentifierClassElementDeclaration(node2) || shouldTransformInitializers && isInitializedProperty(node2)); return hasTransformableStatics; @@ -91404,10 +92410,8 @@ ${lanes.join("\n")} } if (isAssignmentExpression(node)) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.left, node.right); - const left2 = visitNode(node.left, visitor, isExpression); - const right = visitNode(node.right, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateBinaryExpression(node, left2, node.operatorToken, right); + node = transformNamedEvaluation(context, node); + Debug.assertNode(node, isAssignmentExpression); } const left = skipOuterExpressions(node.left, 8 /* PartiallyEmittedExpressions */ | 1 /* Parentheses */); if (isPrivateIdentifierPropertyAccessExpression(left)) { @@ -91421,7 +92425,7 @@ ${lanes.join("\n")} node ); } - } else if (shouldTransformSuperInStaticInitializers && isSuperProperty(node.left) && currentStaticPropertyDeclarationOrStaticBlock && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + } else if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node.left) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { const { classConstructor, superClassReference, facts } = lexicalEnvironment.data; if (facts & 1 /* ClassWasDecorated */) { return factory2.updateBinaryExpression( @@ -91486,36 +92490,15 @@ ${lanes.join("\n")} const elements = discarded ? visitCommaListElements(node.elements, discardedValueVisitor) : visitCommaListElements(node.elements, visitor, discardedValueVisitor); return factory2.updateCommaListExpression(node, elements); } - function visitParenthesizedExpression(node, discarded, referencedName) { - const visitorFunc = discarded ? discardedValueVisitor : referencedName ? (node2) => namedEvaluationVisitor(node2, referencedName) : visitor; + function visitParenthesizedExpression(node, discarded) { + const visitorFunc = discarded ? discardedValueVisitor : visitor; const expression = visitNode(node.expression, visitorFunc, isExpression); return factory2.updateParenthesizedExpression(node, expression); } - function visitPartiallyEmittedExpression(node, discarded, referencedName) { - const visitorFunc = discarded ? discardedValueVisitor : referencedName ? (node2) => namedEvaluationVisitor(node2, referencedName) : visitor; - const expression = visitNode(node.expression, visitorFunc, isExpression); - return factory2.updatePartiallyEmittedExpression(node, expression); - } - function visitReferencedPropertyName(node) { - if (isPropertyNameLiteral(node) || isPrivateIdentifier(node)) { - const referencedName2 = factory2.createStringLiteralFromNode(node); - const name2 = visitNode(node, visitor, isPropertyName); - return { referencedName: referencedName2, name: name2 }; - } - if (isPropertyNameLiteral(node.expression) && !isIdentifier(node.expression)) { - const referencedName2 = factory2.createStringLiteralFromNode(node.expression); - const name2 = visitNode(node, visitor, isPropertyName); - return { referencedName: referencedName2, name: name2 }; - } - const referencedName = factory2.createTempVariable(hoistVariableDeclaration); - const key = emitHelpers().createPropKeyHelper(visitNode(node.expression, visitor, isExpression)); - const assignment = factory2.createAssignment(referencedName, key); - const name = factory2.updateComputedPropertyName(node, injectPendingExpressions(assignment)); - return { referencedName, name }; - } function createPrivateIdentifierAssignment(info, receiver, right, operator) { receiver = visitNode(receiver, visitor, isExpression); right = visitNode(right, visitor, isExpression); + ensureDynamicThisIfNeeded(receiver); if (isCompoundAssignment(operator)) { const { readExpression, initializeExpression } = createCopiableReceiverExpr(receiver); receiver = initializeExpression || readExpression; @@ -91562,11 +92545,15 @@ ${lanes.join("\n")} return filter(node.members, isNonStaticMethodOrAccessorWithPrivateName); } function getClassFacts(node) { + var _a; let facts = 0 /* None */; const original = getOriginalNode(node); if (isClassDeclaration(original) && classOrConstructorParameterIsDecorated(legacyDecorators, original)) { facts |= 1 /* ClassWasDecorated */; } + if (shouldTransformPrivateElementsOrClassStaticBlocks && (classHasClassThisAssignment(node) || classHasExplicitlyAssignedName(node))) { + facts |= 2 /* NeedsClassConstructorReference */; + } let containsPublicInstanceFields = false; let containsInitializedPublicInstanceFields = false; let containsInstancePrivateElements = false; @@ -91575,6 +92562,8 @@ ${lanes.join("\n")} if (isStatic(member)) { if (member.name && (isPrivateIdentifier(member.name) || isAutoAccessorPropertyDeclaration(member)) && shouldTransformPrivateElementsOrClassStaticBlocks) { facts |= 2 /* NeedsClassConstructorReference */; + } else if (isAutoAccessorPropertyDeclaration(member) && shouldTransformAutoAccessors === -1 /* True */ && !node.name && !((_a = node.emitNode) == null ? void 0 : _a.classThis)) { + facts |= 2 /* NeedsClassConstructorReference */; } if (isPropertyDeclaration(member) || isClassStaticBlockDeclaration(member)) { if (shouldTransformThisInStaticInitializers && member.transformFlags & 16384 /* ContainsLexicalThis */) { @@ -91595,6 +92584,9 @@ ${lanes.join("\n")} containsInstancePrivateElements || (containsInstancePrivateElements = isPrivateIdentifierClassElementDeclaration(member)); } else if (isPrivateIdentifierClassElementDeclaration(member)) { containsInstancePrivateElements = true; + if (resolver.getNodeCheckFlags(member) & 262144 /* ContainsConstructorReference */) { + facts |= 2 /* NeedsClassConstructorReference */; + } } else if (isPropertyDeclaration(member)) { containsPublicInstanceFields = true; containsInitializedPublicInstanceFields || (containsInitializedPublicInstanceFields = !!member.initializer); @@ -91629,7 +92621,8 @@ ${lanes.join("\n")} } return visitEachChild(node, visitor, context); } - function visitInNewClassLexicalEnvironment(node, referencedName, visitor2) { + function visitInNewClassLexicalEnvironment(node, visitor2) { + var _a; const savedCurrentClassContainer = currentClassContainer; const savedPendingExpressions = pendingExpressions; const savedLexicalEnvironment = lexicalEnvironment; @@ -91641,6 +92634,15 @@ ${lanes.join("\n")} const name = getNameOfDeclaration(node); if (name && isIdentifier(name)) { getPrivateIdentifierEnvironment().data.className = name; + } else if ((_a = node.emitNode) == null ? void 0 : _a.assignedName) { + if (isStringLiteral(node.emitNode.assignedName)) { + if (node.emitNode.assignedName.textSourceNode && isIdentifier(node.emitNode.assignedName.textSourceNode)) { + getPrivateIdentifierEnvironment().data.className = node.emitNode.assignedName.textSourceNode; + } else if (isIdentifierText(node.emitNode.assignedName.text, languageVersion)) { + const prefixName = factory2.createIdentifier(node.emitNode.assignedName.text); + getPrivateIdentifierEnvironment().data.className = prefixName; + } + } } } if (shouldTransformPrivateElementsOrClassStaticBlocks) { @@ -91659,7 +92661,7 @@ ${lanes.join("\n")} if (facts & 8 /* NeedsSubstitutionForThisInClassStaticField */) { enableSubstitutionForClassStaticThisOrSuperReference(); } - const result = visitor2(node, facts, referencedName); + const result = visitor2(node, facts); endClassLexicalEnvironment(); Debug.assert(lexicalEnvironment === savedLexicalEnvironment); currentClassContainer = savedCurrentClassContainer; @@ -91667,12 +92669,7 @@ ${lanes.join("\n")} return result; } function visitClassDeclaration(node) { - return visitInNewClassLexicalEnvironment( - node, - /*referencedName*/ - void 0, - visitClassDeclarationInNewClassLexicalEnvironment - ); + return visitInNewClassLexicalEnvironment(node, visitClassDeclarationInNewClassLexicalEnvironment); } function visitClassDeclarationInNewClassLexicalEnvironment(node, facts) { var _a, _b; @@ -91690,10 +92687,11 @@ ${lanes.join("\n")} getClassLexicalEnvironment().classConstructor = factory2.cloneNode(temp); pendingClassReferenceAssignment = factory2.createAssignment(temp, factory2.getInternalName(node)); } - if ((_b = node.emitNode) == null ? void 0 : _b.classThis) { - getClassLexicalEnvironment().classThis = node.emitNode.classThis; - } } + if ((_b = node.emitNode) == null ? void 0 : _b.classThis) { + getClassLexicalEnvironment().classThis = node.emitNode.classThis; + } + const isClassWithConstructorReference = resolver.getNodeCheckFlags(node) & 262144 /* ContainsConstructorReference */; const isExport = hasSyntacticModifier(node, 1 /* Export */); const isDefault = hasSyntacticModifier(node, 1024 /* Default */); let modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); @@ -91728,6 +92726,11 @@ ${lanes.join("\n")} ) )); } + const alias = getClassLexicalEnvironment().classConstructor; + if (isClassWithConstructorReference && alias) { + enableSubstitutionForClassAliases(); + classAliases[getOriginalNodeId(node)] = alias; + } const classDecl = factory2.updateClassDeclaration( node, modifiers, @@ -91743,24 +92746,27 @@ ${lanes.join("\n")} } return statements; } - function visitClassExpression(node, referencedName) { - return visitInNewClassLexicalEnvironment(node, referencedName, visitClassExpressionInNewClassLexicalEnvironment); + function visitClassExpression(node) { + return visitInNewClassLexicalEnvironment(node, visitClassExpressionInNewClassLexicalEnvironment); } - function visitClassExpressionInNewClassLexicalEnvironment(node, facts, referencedName) { - var _a, _b, _c, _d; + function visitClassExpressionInNewClassLexicalEnvironment(node, facts) { + var _a, _b, _c; const isDecoratedClassDeclaration = !!(facts & 1 /* ClassWasDecorated */); const staticPropertiesOrClassStaticBlocks = getStaticPropertiesAndClassStaticBlock(node); - const isClassWithConstructorReference = resolver.getNodeCheckFlags(node) & 1048576 /* ClassWithConstructorReference */; + const classCheckFlags = resolver.getNodeCheckFlags(node); + const isClassWithConstructorReference = classCheckFlags & 262144 /* ContainsConstructorReference */; let temp; function createClassTempVar() { var _a2; if (shouldTransformPrivateElementsOrClassStaticBlocks && ((_a2 = node.emitNode) == null ? void 0 : _a2.classThis)) { return getClassLexicalEnvironment().classConstructor = node.emitNode.classThis; } - const classCheckFlags = resolver.getNodeCheckFlags(node); - const isClassWithConstructorReference2 = classCheckFlags & 1048576 /* ClassWithConstructorReference */; const requiresBlockScopedVar = classCheckFlags & 32768 /* BlockScopedBindingInLoop */; - const temp2 = factory2.createTempVariable(requiresBlockScopedVar ? addBlockScopedVariable : hoistVariableDeclaration, !!isClassWithConstructorReference2); + const temp2 = factory2.createTempVariable( + requiresBlockScopedVar ? addBlockScopedVariable : hoistVariableDeclaration, + /*reservedInNestedScopes*/ + true + ); getClassLexicalEnvironment().classConstructor = factory2.cloneNode(temp2); return temp2; } @@ -91773,7 +92779,7 @@ ${lanes.join("\n")} const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); const heritageClauses = visitNodes2(node.heritageClauses, heritageClauseVisitor, isHeritageClause); const { members, prologue } = transformClassMembers(node); - let classExpression = factory2.updateClassExpression( + const classExpression = factory2.updateClassExpression( node, modifiers, node.name, @@ -91787,41 +92793,18 @@ ${lanes.join("\n")} expressions.push(prologue); } const hasTransformableStatics = (shouldTransformPrivateElementsOrClassStaticBlocks || getInternalEmitFlags(node) & 32 /* TransformPrivateStaticElements */) && some(staticPropertiesOrClassStaticBlocks, (node2) => isClassStaticBlockDeclaration(node2) || isPrivateIdentifierClassElementDeclaration(node2) || shouldTransformInitializers && isInitializedProperty(node2)); - if (hasTransformableStatics || some(pendingExpressions) || referencedName) { + if (hasTransformableStatics || some(pendingExpressions)) { if (isDecoratedClassDeclaration) { Debug.assertIsDefined(pendingStatements, "Decorated classes transformed by TypeScript are expected to be within a variable declaration."); if (some(pendingExpressions)) { addRange(pendingStatements, map(pendingExpressions, factory2.createExpressionStatement)); } - if (referencedName) { - if (shouldTransformPrivateElementsOrClassStaticBlocks) { - const setNameExpression = emitHelpers().createSetFunctionNameHelper(temp ?? ((_b = node.emitNode) == null ? void 0 : _b.classThis) ?? factory2.getInternalName(node), referencedName); - pendingStatements.push(factory2.createExpressionStatement(setNameExpression)); - } else { - const setNameExpression = emitHelpers().createSetFunctionNameHelper(factory2.createThis(), referencedName); - classExpression = factory2.updateClassExpression( - classExpression, - classExpression.modifiers, - classExpression.name, - classExpression.typeParameters, - classExpression.heritageClauses, - [ - factory2.createClassStaticBlockDeclaration( - factory2.createBlock([ - factory2.createExpressionStatement(setNameExpression) - ]) - ), - ...classExpression.members - ] - ); - } - } if (some(staticPropertiesOrClassStaticBlocks)) { - addPropertyOrClassStaticBlockStatements(pendingStatements, staticPropertiesOrClassStaticBlocks, ((_c = node.emitNode) == null ? void 0 : _c.classThis) ?? factory2.getInternalName(node)); + addPropertyOrClassStaticBlockStatements(pendingStatements, staticPropertiesOrClassStaticBlocks, ((_b = node.emitNode) == null ? void 0 : _b.classThis) ?? factory2.getInternalName(node)); } if (temp) { expressions.push(factory2.createAssignment(temp, classExpression)); - } else if (shouldTransformPrivateElementsOrClassStaticBlocks && ((_d = node.emitNode) == null ? void 0 : _d.classThis)) { + } else if (shouldTransformPrivateElementsOrClassStaticBlocks && ((_c = node.emitNode) == null ? void 0 : _c.classThis)) { expressions.push(factory2.createAssignment(node.emitNode.classThis, classExpression)); } else { expressions.push(classExpression); @@ -91836,9 +92819,6 @@ ${lanes.join("\n")} } expressions.push(factory2.createAssignment(temp, classExpression)); addRange(expressions, pendingExpressions); - if (referencedName) { - expressions.push(emitHelpers().createSetFunctionNameHelper(temp, referencedName)); - } addRange(expressions, generateInitializedPropertyExpressionsOrClassStaticBlock(staticPropertiesOrClassStaticBlocks, temp)); expressions.push(factory2.cloneNode(temp)); } @@ -91857,6 +92837,13 @@ ${lanes.join("\n")} } return void 0; } + function visitThisExpression(node) { + if (shouldTransformThisInStaticInitializers && currentClassElement && isClassStaticBlockDeclaration(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + const { classThis, classConstructor } = lexicalEnvironment.data; + return classThis ?? classConstructor ?? node; + } + return node; + } function transformClassMembers(node) { const shouldTransformPrivateStaticElementsInClass = !!(getInternalEmitFlags(node) & 32 /* TransformPrivateStaticElements */); if (shouldTransformPrivateElementsOrClassStaticBlocks || shouldTransformPrivateStaticElementsInFile) { @@ -91936,9 +92923,14 @@ ${lanes.join("\n")} } if (syntheticConstructor || syntheticStaticBlock) { let membersArray; + const classThisAssignmentBlock = find(members, isClassThisAssignmentBlock); + const classNamedEvaluationHelperBlock = find(members, isClassNamedEvaluationHelperBlock); + membersArray = append(membersArray, classThisAssignmentBlock); + membersArray = append(membersArray, classNamedEvaluationHelperBlock); membersArray = append(membersArray, syntheticConstructor); membersArray = append(membersArray, syntheticStaticBlock); - membersArray = addRange(membersArray, members); + const remainingMembers = classThisAssignmentBlock || classNamedEvaluationHelperBlock ? filter(members, (member) => member !== classThisAssignmentBlock && member !== classNamedEvaluationHelperBlock) : members; + membersArray = addRange(membersArray, remainingMembers); members = setTextRange( factory2.createNodeArray(membersArray), /*location*/ @@ -91999,8 +92991,46 @@ ${lanes.join("\n")} ) ); } + function transformConstructorBodyWorker(statementsOut, statementsIn, statementOffset, superPath, superPathDepth, initializerStatements, constructor) { + const superStatementIndex = superPath[superPathDepth]; + const superStatement = statementsIn[superStatementIndex]; + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, statementOffset, superStatementIndex - statementOffset)); + statementOffset = superStatementIndex + 1; + if (isTryStatement(superStatement)) { + const tryBlockStatements = []; + transformConstructorBodyWorker( + tryBlockStatements, + superStatement.tryBlock.statements, + /*statementOffset*/ + 0, + superPath, + superPathDepth + 1, + initializerStatements, + constructor + ); + const tryBlockStatementsArray = factory2.createNodeArray(tryBlockStatements); + setTextRange(tryBlockStatementsArray, superStatement.tryBlock.statements); + statementsOut.push(factory2.updateTryStatement( + superStatement, + factory2.updateBlock(superStatement.tryBlock, tryBlockStatements), + visitNode(superStatement.catchClause, visitor, isCatchClause), + visitNode(superStatement.finallyBlock, visitor, isBlock) + )); + } else { + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex, 1)); + while (statementOffset < statementsIn.length) { + const statement = statementsIn[statementOffset]; + if (isParameterPropertyDeclaration(getOriginalNode(statement), constructor)) { + statementOffset++; + } else { + break; + } + } + addRange(statementsOut, initializerStatements); + } + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, statementOffset)); + } function transformConstructorBody(node, constructor, isDerivedClass) { - var _a; const instanceProperties = getProperties( node, /*requireInitializer*/ @@ -92024,68 +93054,65 @@ ${lanes.join("\n")} } resumeLexicalEnvironment(); const needsSyntheticConstructor = !constructor && isDerivedClass; - let indexOfFirstStatementAfterSuperAndPrologue = 0; - let prologueStatementCount = 0; - let superStatementIndex = -1; + let statementOffset = 0; let statements = []; - if ((_a = constructor == null ? void 0 : constructor.body) == null ? void 0 : _a.statements) { - prologueStatementCount = factory2.copyPrologue( + const initializerStatements = []; + const receiver = factory2.createThis(); + addInstanceMethodStatements(initializerStatements, privateMethodsAndAccessors, receiver); + if (constructor) { + const parameterProperties = filter(instanceProperties, (prop) => isParameterPropertyDeclaration(getOriginalNode(prop), constructor)); + const nonParameterProperties = filter(properties, (prop) => !isParameterPropertyDeclaration(getOriginalNode(prop), constructor)); + addPropertyOrClassStaticBlockStatements(initializerStatements, parameterProperties, receiver); + addPropertyOrClassStaticBlockStatements(initializerStatements, nonParameterProperties, receiver); + } else { + addPropertyOrClassStaticBlockStatements(initializerStatements, properties, receiver); + } + if (constructor == null ? void 0 : constructor.body) { + statementOffset = factory2.copyPrologue( constructor.body.statements, statements, /*ensureUseStrict*/ false, visitor ); - superStatementIndex = findSuperStatementIndex(constructor.body.statements, prologueStatementCount); - if (superStatementIndex >= 0) { - indexOfFirstStatementAfterSuperAndPrologue = superStatementIndex + 1; - statements = [ - ...statements.slice(0, prologueStatementCount), - ...visitNodes2(constructor.body.statements, visitor, isStatement, prologueStatementCount, indexOfFirstStatementAfterSuperAndPrologue - prologueStatementCount), - ...statements.slice(prologueStatementCount) - ]; - } else if (prologueStatementCount >= 0) { - indexOfFirstStatementAfterSuperAndPrologue = prologueStatementCount; - } - } - if (needsSyntheticConstructor) { - statements.push( - factory2.createExpressionStatement( - factory2.createCallExpression( - factory2.createSuper(), - /*typeArguments*/ - void 0, - [factory2.createSpreadElement(factory2.createIdentifier("arguments"))] - ) - ) - ); - } - let parameterPropertyDeclarationCount = 0; - if (constructor == null ? void 0 : constructor.body) { - for (let i = indexOfFirstStatementAfterSuperAndPrologue; i < constructor.body.statements.length; i++) { - const statement = constructor.body.statements[i]; - if (isParameterPropertyDeclaration(getOriginalNode(statement), constructor)) { - parameterPropertyDeclarationCount++; - } else { - break; + const superStatementIndices = findSuperStatementIndexPath(constructor.body.statements, statementOffset); + if (superStatementIndices.length) { + transformConstructorBodyWorker( + statements, + constructor.body.statements, + statementOffset, + superStatementIndices, + /*superPathDepth*/ + 0, + initializerStatements, + constructor + ); + } else { + while (statementOffset < constructor.body.statements.length) { + const statement = constructor.body.statements[statementOffset]; + if (isParameterPropertyDeclaration(getOriginalNode(statement), constructor)) { + statementOffset++; + } else { + break; + } } + addRange(statements, initializerStatements); + addRange(statements, visitNodes2(constructor.body.statements, visitor, isStatement, statementOffset)); } - if (parameterPropertyDeclarationCount > 0) { - indexOfFirstStatementAfterSuperAndPrologue += parameterPropertyDeclarationCount; - } - } - const receiver = factory2.createThis(); - addInstanceMethodStatements(statements, privateMethodsAndAccessors, receiver); - if (constructor) { - const parameterProperties = filter(instanceProperties, (prop) => isParameterPropertyDeclaration(getOriginalNode(prop), constructor)); - const nonParameterProperties = filter(properties, (prop) => !isParameterPropertyDeclaration(getOriginalNode(prop), constructor)); - addPropertyOrClassStaticBlockStatements(statements, parameterProperties, receiver); - addPropertyOrClassStaticBlockStatements(statements, nonParameterProperties, receiver); } else { - addPropertyOrClassStaticBlockStatements(statements, properties, receiver); - } - if (constructor) { - addRange(statements, visitNodes2(constructor.body.statements, visitor, isStatement, indexOfFirstStatementAfterSuperAndPrologue)); + if (needsSyntheticConstructor) { + statements.push( + factory2.createExpressionStatement( + factory2.createCallExpression( + factory2.createSuper(), + /*typeArguments*/ + void 0, + [factory2.createSpreadElement(factory2.createIdentifier("arguments"))] + ) + ) + ); + } + addRange(statements, initializerStatements); } statements = factory2.mergeLexicalEnvironment(statements, endLexicalEnvironment()); if (statements.length === 0 && !constructor) { @@ -92118,7 +93145,7 @@ ${lanes.join("\n")} } } function transformPropertyOrClassStaticBlock(property, receiver) { - const expression = isClassStaticBlockDeclaration(property) ? transformClassStaticBlockDeclaration(property) : transformProperty(property, receiver); + const expression = isClassStaticBlockDeclaration(property) ? setCurrentClassElementAnd(property, transformClassStaticBlockDeclaration, property) : transformProperty(property, receiver); if (!expression) { return void 0; } @@ -92143,7 +93170,12 @@ ${lanes.join("\n")} function generateInitializedPropertyExpressionsOrClassStaticBlock(propertiesOrClassStaticBlocks, receiver) { const expressions = []; for (const property of propertiesOrClassStaticBlocks) { - const expression = isClassStaticBlockDeclaration(property) ? transformClassStaticBlockDeclaration(property) : transformProperty(property, receiver); + const expression = isClassStaticBlockDeclaration(property) ? setCurrentClassElementAnd(property, transformClassStaticBlockDeclaration, property) : setCurrentClassElementAnd( + property, + () => transformProperty(property, receiver), + /*arg*/ + void 0 + ); if (!expression) { continue; } @@ -92158,7 +93190,7 @@ ${lanes.join("\n")} } function transformProperty(property, receiver) { var _a; - const savedCurrentStaticPropertyDeclarationOrStaticBlock = currentStaticPropertyDeclarationOrStaticBlock; + const savedCurrentClassElement = currentClassElement; const transformed = transformPropertyWorker(property, receiver); if (transformed && hasStaticModifier(property) && ((_a = lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) == null ? void 0 : _a.facts)) { setOriginalNode(transformed, property); @@ -92166,26 +93198,18 @@ ${lanes.join("\n")} setSourceMapRange(transformed, getSourceMapRange(property.name)); lexicalEnvironmentMap.set(getOriginalNode(property), lexicalEnvironment); } - currentStaticPropertyDeclarationOrStaticBlock = savedCurrentStaticPropertyDeclarationOrStaticBlock; + currentClassElement = savedCurrentClassElement; return transformed; } function transformPropertyWorker(property, receiver) { const emitAssignment = !useDefineForClassFields; - let referencedName; if (isNamedEvaluation(property, isAnonymousClassNeedingAssignedName)) { - if (isPropertyNameLiteral(property.name) || isPrivateIdentifier(property.name)) { - referencedName = factory2.createStringLiteralFromNode(property.name); - } else if (isPropertyNameLiteral(property.name.expression) && !isIdentifier(property.name.expression)) { - referencedName = factory2.createStringLiteralFromNode(property.name.expression); - } else { - referencedName = factory2.getGeneratedNameForNode(property.name); - } + property = transformNamedEvaluation(context, property); } const propertyName = hasAccessorModifier(property) ? factory2.getGeneratedPrivateNameForNode(property.name) : isComputedPropertyName(property.name) && !isSimpleInlineableExpression(property.name.expression) ? factory2.updateComputedPropertyName(property.name, factory2.getGeneratedNameForNode(property.name)) : property.name; if (hasStaticModifier(property)) { - currentStaticPropertyDeclarationOrStaticBlock = property; + currentClassElement = property; } - const initializerVisitor = referencedName ? (child) => namedEvaluationVisitor(child, referencedName) : visitor; if (isPrivateIdentifier(propertyName) && shouldTransformClassElementToWeakMap(property)) { const privateIdentifierInfo = accessPrivateIdentifier2(propertyName); if (privateIdentifierInfo) { @@ -92194,14 +93218,14 @@ ${lanes.join("\n")} return createPrivateInstanceFieldInitializer( factory2, receiver, - visitNode(property.initializer, initializerVisitor, isExpression), + visitNode(property.initializer, visitor, isExpression), privateIdentifierInfo.brandCheckIdentifier ); } else { return createPrivateStaticFieldInitializer( factory2, privateIdentifierInfo.variableName, - visitNode(property.initializer, initializerVisitor, isExpression) + visitNode(property.initializer, visitor, isExpression) ); } } else { @@ -92218,7 +93242,7 @@ ${lanes.join("\n")} if (hasSyntacticModifier(propertyOriginalNode, 256 /* Abstract */)) { return void 0; } - let initializer = visitNode(property.initializer, initializerVisitor, isExpression); + let initializer = visitNode(property.initializer, visitor, isExpression); if (isParameterPropertyDeclaration(propertyOriginalNode, propertyOriginalNode.parent) && isIdentifier(propertyName)) { const localName = factory2.cloneNode(propertyName); if (initializer) { @@ -92263,14 +93287,14 @@ ${lanes.join("\n")} if ((enabledSubstitutions & 2 /* ClassStaticThisOrSuperReference */) === 0) { enabledSubstitutions |= 2 /* ClassStaticThisOrSuperReference */; context.enableSubstitution(110 /* ThisKeyword */); - context.enableEmitNotification(261 /* FunctionDeclaration */); - context.enableEmitNotification(217 /* FunctionExpression */); - context.enableEmitNotification(175 /* Constructor */); - context.enableEmitNotification(176 /* GetAccessor */); - context.enableEmitNotification(177 /* SetAccessor */); - context.enableEmitNotification(173 /* MethodDeclaration */); - context.enableEmitNotification(171 /* PropertyDeclaration */); - context.enableEmitNotification(166 /* ComputedPropertyName */); + context.enableEmitNotification(262 /* FunctionDeclaration */); + context.enableEmitNotification(218 /* FunctionExpression */); + context.enableEmitNotification(176 /* Constructor */); + context.enableEmitNotification(177 /* GetAccessor */); + context.enableEmitNotification(178 /* SetAccessor */); + context.enableEmitNotification(174 /* MethodDeclaration */); + context.enableEmitNotification(172 /* PropertyDeclaration */); + context.enableEmitNotification(167 /* ComputedPropertyName */); } } function addInstanceMethodStatements(statements, methods, receiver) { @@ -92296,10 +93320,10 @@ ${lanes.join("\n")} visitNode(node.argumentExpression, visitor, isExpression) ); } - function getPropertyNameExpressionIfNeeded(name, shouldHoist, captureReferencedName) { + function getPropertyNameExpressionIfNeeded(name, shouldHoist) { if (isComputedPropertyName(name)) { const cacheAssignment = findComputedPropertyNameCacheAssignment(name); - let expression = visitNode(name.expression, visitor, isExpression); + const expression = visitNode(name.expression, visitor, isExpression); const innerExpression = skipPartiallyEmittedExpressions(expression); const inlinable = isSimpleInlineableExpression(innerExpression); const alreadyTransformed = !!cacheAssignment || isAssignmentExpression(innerExpression) && isGeneratedIdentifier(innerExpression.left); @@ -92310,9 +93334,6 @@ ${lanes.join("\n")} } else { hoistVariableDeclaration(generatedName); } - if (captureReferencedName) { - expression = emitHelpers().createPropKeyHelper(expression); - } return factory2.createAssignment(generatedName, expression); } return inlinable || isIdentifier(innerExpression) ? void 0 : expression; @@ -92508,7 +93529,7 @@ ${lanes.join("\n")} } if (isPrivateIdentifierPropertyAccessExpression(node)) { return wrapPrivateIdentifierForDestructuringTarget(node); - } else if (shouldTransformSuperInStaticInitializers && isSuperProperty(node) && currentStaticPropertyDeclarationOrStaticBlock && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + } else if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { const { classConstructor, superClassReference, facts } = lexicalEnvironment.data; if (facts & 1 /* ClassWasDecorated */) { return visitInvalidSuperProperty(node); @@ -92535,10 +93556,7 @@ ${lanes.join("\n")} } function visitAssignmentElement(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const left = visitDestructuringAssignmentTarget(node.left); - const assignedName = getAssignedNameOfIdentifier(node.left, node.right); - const right = visitNode(node.right, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateBinaryExpression(node, left, node.operatorToken, right); + node = transformNamedEvaluation(context, node); } if (isAssignmentExpression( node, @@ -92585,9 +93603,7 @@ ${lanes.join("\n")} } function visitShorthandAssignmentProperty(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.name, node.objectAssignmentInitializer); - const objectAssignmentInitializer = visitNode(node.objectAssignmentInitializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateShorthandPropertyAssignment(node, node.name, objectAssignmentInitializer); + node = transformNamedEvaluation(context, node); } return visitEachChild(node, visitor, context); } @@ -92637,16 +93653,16 @@ ${lanes.join("\n")} return; } switch (node.kind) { - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: if (isArrowFunction(original) || getEmitFlags(node) & 524288 /* AsyncFunctionBody */) { break; } - case 261 /* FunctionDeclaration */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 173 /* MethodDeclaration */: - case 171 /* PropertyDeclaration */: { + case 262 /* FunctionDeclaration */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 172 /* PropertyDeclaration */: { const savedLexicalEnvironment = lexicalEnvironment; const savedPreviousShouldSubstituteThisWithClassThis = previousShouldSubstituteThisWithClassThis; lexicalEnvironment = void 0; @@ -92658,7 +93674,7 @@ ${lanes.join("\n")} lexicalEnvironment = savedLexicalEnvironment; return; } - case 166 /* ComputedPropertyName */: { + case 167 /* ComputedPropertyName */: { const savedLexicalEnvironment = lexicalEnvironment; const savedShouldSubstituteThisWithClassThis = shouldSubstituteThisWithClassThis; lexicalEnvironment = lexicalEnvironment == null ? void 0 : lexicalEnvironment.previous; @@ -92688,11 +93704,8 @@ ${lanes.join("\n")} return node; } function substituteThisExpression(node) { - if (enabledSubstitutions & 2 /* ClassStaticThisOrSuperReference */ && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + if (enabledSubstitutions & 2 /* ClassStaticThisOrSuperReference */ && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) && !noSubstitution.has(node)) { const { facts, classConstructor, classThis } = lexicalEnvironment.data; - if (facts & 1 /* ClassWasDecorated */ && legacyDecorators) { - return factory2.createParenthesizedExpression(factory2.createVoidZero()); - } const substituteThis = shouldSubstituteThisWithClassThis ? classThis ?? classConstructor : classConstructor; if (substituteThis) { return setTextRange( @@ -92703,6 +93716,9 @@ ${lanes.join("\n")} node ); } + if (facts & 1 /* ClassWasDecorated */ && legacyDecorators) { + return factory2.createParenthesizedExpression(factory2.createVoidZero()); + } } return node; } @@ -92711,7 +93727,7 @@ ${lanes.join("\n")} } function trySubstituteClassAlias(node) { if (enabledSubstitutions & 1 /* ClassAliases */) { - if (resolver.getNodeCheckFlags(node) & 2097152 /* ConstructorReferenceInClass */) { + if (resolver.getNodeCheckFlags(node) & 536870912 /* ConstructorReference */) { const declaration = resolver.getReferencedValueDeclaration(node); if (declaration) { const classAlias = classAliases[declaration.id]; @@ -92757,6 +93773,12 @@ ${lanes.join("\n")} function isPrivateIdentifierInExpression(node) { return isPrivateIdentifier(node.left) && node.operatorToken.kind === 103 /* InKeyword */; } + function isStaticPropertyDeclaration2(node) { + return isPropertyDeclaration(node) && hasStaticModifier(node); + } + function isStaticPropertyDeclarationOrClassStaticBlock(node) { + return isClassStaticBlockDeclaration(node) || isStaticPropertyDeclaration2(node); + } var init_classFields = __esm({ "src/compiler/transformers/classFields.ts"() { "use strict"; @@ -92798,15 +93820,15 @@ ${lanes.join("\n")} } function serializeTypeOfNode(node) { switch (node.kind) { - case 171 /* PropertyDeclaration */: - case 168 /* Parameter */: + case 172 /* PropertyDeclaration */: + case 169 /* Parameter */: return serializeTypeNode(node.type); - case 177 /* SetAccessor */: - case 176 /* GetAccessor */: + case 178 /* SetAccessor */: + case 177 /* GetAccessor */: return serializeTypeNode(getAccessorTypeNode(node)); - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 173 /* MethodDeclaration */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 174 /* MethodDeclaration */: return factory2.createIdentifier("Function"); default: return factory2.createVoidZero(); @@ -92833,7 +93855,7 @@ ${lanes.join("\n")} return factory2.createArrayLiteralExpression(expressions); } function getParametersOfDecoratedDeclaration(node, container) { - if (container && node.kind === 176 /* GetAccessor */) { + if (container && node.kind === 177 /* GetAccessor */) { const { setAccessor } = getAllAccessorDeclarations(container.members, node); if (setAccessor) { return setAccessor.parameters; @@ -92859,72 +93881,72 @@ ${lanes.join("\n")} case 157 /* UndefinedKeyword */: case 146 /* NeverKeyword */: return factory2.createVoidZero(); - case 183 /* FunctionType */: - case 184 /* ConstructorType */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: return factory2.createIdentifier("Function"); - case 187 /* ArrayType */: - case 188 /* TupleType */: + case 188 /* ArrayType */: + case 189 /* TupleType */: return factory2.createIdentifier("Array"); - case 181 /* TypePredicate */: + case 182 /* TypePredicate */: return node.assertsModifier ? factory2.createVoidZero() : factory2.createIdentifier("Boolean"); case 136 /* BooleanKeyword */: return factory2.createIdentifier("Boolean"); - case 202 /* TemplateLiteralType */: + case 203 /* TemplateLiteralType */: case 154 /* StringKeyword */: return factory2.createIdentifier("String"); case 151 /* ObjectKeyword */: return factory2.createIdentifier("Object"); - case 200 /* LiteralType */: + case 201 /* LiteralType */: return serializeLiteralOfLiteralTypeNode(node.literal); case 150 /* NumberKeyword */: return factory2.createIdentifier("Number"); - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: return getGlobalConstructor("BigInt", 7 /* ES2020 */); case 155 /* SymbolKeyword */: return getGlobalConstructor("Symbol", 2 /* ES2015 */); - case 182 /* TypeReference */: + case 183 /* TypeReference */: return serializeTypeReferenceNode(node); - case 192 /* IntersectionType */: + case 193 /* IntersectionType */: return serializeUnionOrIntersectionConstituents( node.types, /*isIntersection*/ true ); - case 191 /* UnionType */: + case 192 /* UnionType */: return serializeUnionOrIntersectionConstituents( node.types, /*isIntersection*/ false ); - case 193 /* ConditionalType */: + case 194 /* ConditionalType */: return serializeUnionOrIntersectionConstituents( [node.trueType, node.falseType], /*isIntersection*/ false ); - case 197 /* TypeOperator */: + case 198 /* TypeOperator */: if (node.operator === 148 /* ReadonlyKeyword */) { return serializeTypeNode(node.type); } break; - case 185 /* TypeQuery */: - case 198 /* IndexedAccessType */: - case 199 /* MappedType */: - case 186 /* TypeLiteral */: + case 186 /* TypeQuery */: + case 199 /* IndexedAccessType */: + case 200 /* MappedType */: + case 187 /* TypeLiteral */: case 133 /* AnyKeyword */: case 159 /* UnknownKeyword */: - case 196 /* ThisType */: - case 204 /* ImportType */: + case 197 /* ThisType */: + case 205 /* ImportType */: break; - case 318 /* JSDocAllType */: - case 319 /* JSDocUnknownType */: - case 323 /* JSDocFunctionType */: - case 324 /* JSDocVariadicType */: - case 325 /* JSDocNamepathType */: + case 319 /* JSDocAllType */: + case 320 /* JSDocUnknownType */: + case 324 /* JSDocFunctionType */: + case 325 /* JSDocVariadicType */: + case 326 /* JSDocNamepathType */: break; - case 320 /* JSDocNullableType */: - case 321 /* JSDocNonNullableType */: - case 322 /* JSDocOptionalType */: + case 321 /* JSDocNullableType */: + case 322 /* JSDocNonNullableType */: + case 323 /* JSDocOptionalType */: return serializeTypeNode(node.type); default: return Debug.failBadSyntaxKind(node); @@ -92936,7 +93958,7 @@ ${lanes.join("\n")} case 11 /* StringLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: return factory2.createIdentifier("String"); - case 223 /* PrefixUnaryExpression */: { + case 224 /* PrefixUnaryExpression */: { const operand = node.operand; switch (operand.kind) { case 9 /* NumericLiteral */: @@ -93095,7 +94117,7 @@ ${lanes.join("\n")} name.original = void 0; setParent(name, getParseTreeNode(currentLexicalScope)); return name; - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: return serializeQualifiedNameAsExpression(node); } } @@ -93151,23 +94173,23 @@ ${lanes.join("\n")} return node; } switch (node.kind) { - case 169 /* Decorator */: + case 170 /* Decorator */: return void 0; - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return visitClassDeclaration(node); - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return visitClassExpression(node); - case 175 /* Constructor */: + case 176 /* Constructor */: return visitConstructorDeclaration(node); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return visitMethodDeclaration(node); - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return visitSetAccessorDeclaration(node); - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return visitGetAccessorDeclaration(node); - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return visitPropertyDeclaration(node); - case 168 /* Parameter */: + case 169 /* Parameter */: return visitParameterDeclaration(node); default: return visitEachChild(node, visitor, context); @@ -93307,39 +94329,36 @@ ${lanes.join("\n")} ); setOriginalNode(classExpression, node); setTextRange(classExpression, location); + const varInitializer = classAlias && !assignClassAliasInStaticBlock ? factory2.createAssignment(classAlias, classExpression) : classExpression; const varDecl = factory2.createVariableDeclaration( declName, /*exclamationToken*/ void 0, /*type*/ void 0, - classAlias && !assignClassAliasInStaticBlock ? factory2.createAssignment(classAlias, classExpression) : classExpression + varInitializer ); setOriginalNode(varDecl, node); - let varModifiers; - if (isExport && !isDefault) { - varModifiers = factory2.createModifiersFromModifierFlags(1 /* Export */); - } - const statement = factory2.createVariableStatement( - varModifiers, - factory2.createVariableDeclarationList([ - varDecl - ], 1 /* Let */) + const varDeclList = factory2.createVariableDeclarationList([varDecl], 1 /* Let */); + const varStatement = factory2.createVariableStatement( + /*modifiers*/ + void 0, + varDeclList ); - setOriginalNode(statement, node); - setTextRange(statement, location); - setCommentRange(statement, node); - const statements = [statement]; + setOriginalNode(varStatement, node); + setTextRange(varStatement, location); + setCommentRange(varStatement, node); + const statements = [varStatement]; addRange(statements, decorationStatements); addConstructorDecorationStatement(statements, node); - if (isExport && isDefault) { - statements.push(factory2.createExportAssignment( - /*modifiers*/ - void 0, - /*isExportEquals*/ - false, - declName - )); + if (isExport) { + if (isDefault) { + const exportStatement = factory2.createExportDefault(declName); + statements.push(exportStatement); + } else { + const exportStatement = factory2.createExternalModuleExport(factory2.getDeclarationName(node)); + statements.push(exportStatement); + } } return statements; } @@ -93406,7 +94425,7 @@ ${lanes.join("\n")} ), node); } function visitPropertyDeclaration(node) { - if (node.flags & 16777216 /* Ambient */ || hasSyntacticModifier(node, 2 /* Ambient */)) { + if (node.flags & 33554432 /* Ambient */ || hasSyntacticModifier(node, 2 /* Ambient */)) { return void 0; } return finishClassElement(factory2.updatePropertyDeclaration( @@ -93574,7 +94593,7 @@ ${lanes.join("\n")} } } function getClassAliasIfNeeded(node) { - if (resolver.getNodeCheckFlags(node) & 1048576 /* ClassWithConstructorReference */) { + if (resolver.getNodeCheckFlags(node) & 262144 /* ContainsConstructorReference */) { enableSubstitutionForClassAliases(); const classAlias = factory2.createUniqueName(node.name && !isGeneratedIdentifier(node.name) ? idText(node.name) : "default"); classAliases[getOriginalNodeId(node)] = classAlias; @@ -93607,7 +94626,7 @@ ${lanes.join("\n")} } function trySubstituteClassAlias(node) { if (classAliases) { - if (resolver.getNodeCheckFlags(node) & 2097152 /* ConstructorReferenceInClass */) { + if (resolver.getNodeCheckFlags(node) & 536870912 /* ConstructorReference */) { const declaration = resolver.getReferencedValueDeclaration(node); if (declaration) { const classAlias = classAliases[declaration.id]; @@ -93639,8 +94658,7 @@ ${lanes.join("\n")} endLexicalEnvironment, hoistVariableDeclaration } = context; - const compilerOptions = context.getCompilerOptions(); - const languageVersion = getEmitScriptTarget(compilerOptions); + const languageVersion = getEmitScriptTarget(context.getCompilerOptions()); let top; let classInfo; let classThis; @@ -93752,86 +94770,78 @@ ${lanes.join("\n")} return node; } switch (node.kind) { - case 169 /* Decorator */: + case 170 /* Decorator */: return Debug.fail("Use `modifierVisitor` instead."); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return visitClassDeclaration(node); - case 230 /* ClassExpression */: - return visitClassExpression( - node, - /*referencedName*/ - void 0 - ); - case 175 /* Constructor */: - case 171 /* PropertyDeclaration */: - case 174 /* ClassStaticBlockDeclaration */: + case 231 /* ClassExpression */: + return visitClassExpression(node); + case 176 /* Constructor */: + case 172 /* PropertyDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: return Debug.fail("Not supported outside of a class. Use 'classElementVisitor' instead."); - case 168 /* Parameter */: + case 169 /* Parameter */: return visitParameterDeclaration(node); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return visitBinaryExpression( node, /*discarded*/ false ); - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return visitPropertyAssignment(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return visitVariableDeclaration(node); - case 207 /* BindingElement */: + case 208 /* BindingElement */: return visitBindingElement(node); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return visitExportAssignment(node); case 110 /* ThisKeyword */: return visitThisExpression(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement(node); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return visitExpressionStatement(node); - case 360 /* CommaListExpression */: + case 361 /* CommaListExpression */: return visitCommaListExpression( node, /*discarded*/ false ); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression( node, /*discarded*/ - false, - /*referencedName*/ - void 0 + false ); - case 359 /* PartiallyEmittedExpression */: + case 360 /* PartiallyEmittedExpression */: return visitPartiallyEmittedExpression( node, /*discarded*/ - false, - /*referencedName*/ - void 0 + false ); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return visitCallExpression(node); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return visitTaggedTemplateExpression(node); - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return visitPreOrPostfixUnaryExpression( node, /*discarded*/ false ); - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return visitPropertyAccessExpression(node); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return visitElementAccessExpression(node); - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: return visitComputedPropertyName(node); - case 173 /* MethodDeclaration */: - case 177 /* SetAccessor */: - case 176 /* GetAccessor */: - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: { + case 174 /* MethodDeclaration */: + case 178 /* SetAccessor */: + case 177 /* GetAccessor */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: { enterOther(); const result = visitEachChild(node, fallbackVisitor, context); exitOther(); @@ -93843,7 +94853,7 @@ ${lanes.join("\n")} } function fallbackVisitor(node) { switch (node.kind) { - case 169 /* Decorator */: + case 170 /* Decorator */: return void 0; default: return visitor(node); @@ -93851,7 +94861,7 @@ ${lanes.join("\n")} } function modifierVisitor(node) { switch (node.kind) { - case 169 /* Decorator */: + case 170 /* Decorator */: return void 0; default: return node; @@ -93859,72 +94869,48 @@ ${lanes.join("\n")} } function classElementVisitor(node) { switch (node.kind) { - case 175 /* Constructor */: + case 176 /* Constructor */: return visitConstructorDeclaration(node); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return visitMethodDeclaration(node); - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return visitGetAccessorDeclaration(node); - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return visitSetAccessorDeclaration(node); - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return visitPropertyDeclaration(node); - case 174 /* ClassStaticBlockDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: return visitClassStaticBlockDeclaration(node); default: return visitor(node); } } - function namedEvaluationVisitor(node, referencedName) { - switch (node.kind) { - case 359 /* PartiallyEmittedExpression */: - return visitPartiallyEmittedExpression( - node, - /*discarded*/ - false, - referencedName - ); - case 216 /* ParenthesizedExpression */: - return visitParenthesizedExpression( - node, - /*discarded*/ - false, - referencedName - ); - case 230 /* ClassExpression */: - return visitClassExpression(node, referencedName); - default: - return visitor(node); - } - } function discardedValueVisitor(node) { switch (node.kind) { - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return visitPreOrPostfixUnaryExpression( node, /*discarded*/ true ); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return visitBinaryExpression( node, /*discarded*/ true ); - case 360 /* CommaListExpression */: + case 361 /* CommaListExpression */: return visitCommaListExpression( node, /*discarded*/ true ); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression( node, /*discarded*/ - true, - /*referencedName*/ - void 0 + true ); default: return visitor(node); @@ -93962,6 +94948,7 @@ ${lanes.join("\n")} ); } function createClassInfo(node) { + const metadataReference = factory2.createUniqueName("_metadata", 16 /* Optimistic */ | 32 /* FileLevel */); let instanceExtraInitializersName; let staticExtraInitializersName; let hasStaticInitializers = false; @@ -93975,13 +94962,15 @@ ${lanes.join("\n")} node )) { if (hasStaticModifier(member)) { - staticExtraInitializersName ?? (staticExtraInitializersName = factory2.createUniqueName("_staticExtraInitializers", 16 /* Optimistic */)); + staticExtraInitializersName ?? (staticExtraInitializersName = factory2.createUniqueName("_staticExtraInitializers", 16 /* Optimistic */ | 32 /* FileLevel */)); } else { - instanceExtraInitializersName ?? (instanceExtraInitializersName = factory2.createUniqueName("_instanceExtraInitializers", 16 /* Optimistic */)); + instanceExtraInitializersName ?? (instanceExtraInitializersName = factory2.createUniqueName("_instanceExtraInitializers", 16 /* Optimistic */ | 32 /* FileLevel */)); } } if (isClassStaticBlockDeclaration(member)) { - hasStaticInitializers = true; + if (!isClassNamedEvaluationHelperBlock(member)) { + hasStaticInitializers = true; + } } else if (isPropertyDeclaration(member)) { if (hasStaticModifier(member)) { hasStaticInitializers || (hasStaticInitializers = !!member.initializer || hasDecorators(member)); @@ -93998,6 +94987,7 @@ ${lanes.join("\n")} } return { class: node, + metadataReference, instanceExtraInitializersName, staticExtraInitializersName, hasStaticInitializers, @@ -94005,19 +94995,15 @@ ${lanes.join("\n")} hasStaticPrivateClassElements }; } - function containsLexicalSuperInStaticInitializer(node) { - for (const member of node.members) { - if (isClassStaticBlockDeclaration(member) || isPropertyDeclaration(member) && hasStaticModifier(member)) { - if (member.transformFlags & 134217728 /* ContainsLexicalSuper */) { - return true; - } - } - } - return false; - } - function transformClassLike(node, className) { - var _a; + function transformClassLike(node) { startLexicalEnvironment(); + if (!classHasDeclaredOrExplicitlyAssignedName(node) && classOrConstructorParameterIsDecorated( + /*useLegacyDecorators*/ + false, + node + )) { + node = injectClassNamedEvaluationHelperBlockIfMissing(context, node, factory2.createStringLiteral("")); + } const classReference = factory2.getLocalName( node, /*allowComments*/ @@ -94036,10 +95022,11 @@ ${lanes.join("\n")} let shouldTransformPrivateStaticElementsInClass = false; const classDecorators = transformAllDecoratorsOfDeclaration(getAllDecoratorsOfClass(node)); if (classDecorators) { - classInfo2.classDecoratorsName = factory2.createUniqueName("_classDecorators", 16 /* Optimistic */); - classInfo2.classDescriptorName = factory2.createUniqueName("_classDescriptor", 16 /* Optimistic */); - classInfo2.classExtraInitializersName = factory2.createUniqueName("_classExtraInitializers", 16 /* Optimistic */); - classInfo2.classThis = factory2.createUniqueName("_classThis", 16 /* Optimistic */); + classInfo2.classDecoratorsName = factory2.createUniqueName("_classDecorators", 16 /* Optimistic */ | 32 /* FileLevel */); + classInfo2.classDescriptorName = factory2.createUniqueName("_classDescriptor", 16 /* Optimistic */ | 32 /* FileLevel */); + classInfo2.classExtraInitializersName = factory2.createUniqueName("_classExtraInitializers", 16 /* Optimistic */ | 32 /* FileLevel */); + const needsUniqueClassThis = some(node.members, (member) => (isPrivateIdentifierClassElementDeclaration(member) || isAutoAccessorPropertyDeclaration(member)) && hasStaticModifier(member)); + classInfo2.classThis = factory2.createUniqueName("_classThis", needsUniqueClassThis ? 16 /* Optimistic */ | 8 /* ReservedInNestedScopes */ : 16 /* Optimistic */ | 32 /* FileLevel */); classDefinitionStatements.push( createLet(classInfo2.classDecoratorsName, factory2.createArrayLiteralExpression(classDecorators)), createLet(classInfo2.classDescriptorName), @@ -94051,34 +95038,26 @@ ${lanes.join("\n")} shouldTransformPrivateStaticElementsInFile = true; } } - if (classDecorators && containsLexicalSuperInStaticInitializer(node)) { - const extendsClause = getHeritageClause(node.heritageClauses, 96 /* ExtendsKeyword */); - const extendsElement = extendsClause && firstOrUndefined(extendsClause.types); - const extendsExpression = extendsElement && visitNode(extendsElement.expression, visitor, isExpression); - if (extendsExpression) { - classInfo2.classSuper = factory2.createUniqueName("_classSuper", 16 /* Optimistic */); - const unwrapped = skipOuterExpressions(extendsExpression); - const safeExtendsExpression = isClassExpression(unwrapped) && !unwrapped.name || isFunctionExpression(unwrapped) && !unwrapped.name || isArrowFunction(unwrapped) ? factory2.createComma(factory2.createNumericLiteral(0), extendsExpression) : extendsExpression; - classDefinitionStatements.push(createLet(classInfo2.classSuper, safeExtendsExpression)); - const updatedExtendsElement = factory2.updateExpressionWithTypeArguments( - extendsElement, - classInfo2.classSuper, - /*typeArguments*/ - void 0 - ); - const updatedExtendsClause = factory2.updateHeritageClause(extendsClause, [updatedExtendsElement]); - heritageClauses = factory2.createNodeArray([updatedExtendsClause]); - } - } else { - heritageClauses = visitNodes2(node.heritageClauses, visitor, isHeritageClause); + const extendsClause = getHeritageClause(node.heritageClauses, 96 /* ExtendsKeyword */); + const extendsElement = extendsClause && firstOrUndefined(extendsClause.types); + const extendsExpression = extendsElement && visitNode(extendsElement.expression, visitor, isExpression); + if (extendsExpression) { + classInfo2.classSuper = factory2.createUniqueName("_classSuper", 16 /* Optimistic */ | 32 /* FileLevel */); + const unwrapped = skipOuterExpressions(extendsExpression); + const safeExtendsExpression = isClassExpression(unwrapped) && !unwrapped.name || isFunctionExpression(unwrapped) && !unwrapped.name || isArrowFunction(unwrapped) ? factory2.createComma(factory2.createNumericLiteral(0), extendsExpression) : extendsExpression; + classDefinitionStatements.push(createLet(classInfo2.classSuper, safeExtendsExpression)); + const updatedExtendsElement = factory2.updateExpressionWithTypeArguments( + extendsElement, + classInfo2.classSuper, + /*typeArguments*/ + void 0 + ); + const updatedExtendsClause = factory2.updateHeritageClause(extendsClause, [updatedExtendsElement]); + heritageClauses = factory2.createNodeArray([updatedExtendsClause]); } const renamedClassThis = classInfo2.classThis ?? factory2.createThis(); - const needsSetNameHelper = !((_a = getOriginalNode(node, isClassLike)) == null ? void 0 : _a.name) && (classDecorators || !isStringLiteral(className) || !isEmptyStringLiteral(className)); - if (needsSetNameHelper) { - const setNameExpr = emitHelpers().createSetFunctionNameHelper(factory2.createThis(), className); - leadingBlockStatements = append(leadingBlockStatements, factory2.createExpressionStatement(setNameExpr)); - } enterClass(classInfo2); + leadingBlockStatements = append(leadingBlockStatements, createMetadata(classInfo2.metadataReference, classInfo2.classSuper)); let members = visitNodes2(node.members, classElementVisitor, isClassElement); if (pendingExpressions) { let outerThis; @@ -94176,15 +95155,15 @@ ${lanes.join("\n")} leadingBlockStatements = addRange(leadingBlockStatements, classInfo2.nonStaticFieldDecorationStatements); if (classInfo2.classDescriptorName && classInfo2.classDecoratorsName && classInfo2.classExtraInitializersName && classInfo2.classThis) { leadingBlockStatements ?? (leadingBlockStatements = []); - const valueProperty = factory2.createPropertyAssignment("value", factory2.createThis()); + const valueProperty = factory2.createPropertyAssignment("value", renamedClassThis); const classDescriptor = factory2.createObjectLiteralExpression([valueProperty]); const classDescriptorAssignment = factory2.createAssignment(classInfo2.classDescriptorName, classDescriptor); - const classNameReference = factory2.createPropertyAccessExpression(factory2.createThis(), "name"); + const classNameReference = factory2.createPropertyAccessExpression(renamedClassThis, "name"); const esDecorateHelper2 = emitHelpers().createESDecorateHelper( factory2.createNull(), classDescriptorAssignment, classInfo2.classDecoratorsName, - { kind: "class", name: classNameReference }, + { kind: "class", name: classNameReference, metadata: classInfo2.metadataReference }, factory2.createNull(), classInfo2.classExtraInitializersName ); @@ -94196,6 +95175,7 @@ ${lanes.join("\n")} const classReferenceAssignment = factory2.createAssignment(classReference, classThisAssignment); leadingBlockStatements.push(factory2.createExpressionStatement(classReferenceAssignment)); } + leadingBlockStatements.push(createSymbolMetadata(renamedClassThis, classInfo2.metadataReference)); if (classInfo2.staticExtraInitializersName) { const runStaticInitializersHelper = emitHelpers().createRunInitializersHelper(renamedClassThis, classInfo2.staticExtraInitializersName); const runStaticInitializersStatement = factory2.createExpressionStatement(runStaticInitializersHelper); @@ -94212,32 +95192,35 @@ ${lanes.join("\n")} addRange(leadingBlockStatements, trailingBlockStatements); trailingBlockStatements = void 0; } - let newMembers = members; - if (leadingBlockStatements) { - const leadingStaticBlockBody = factory2.createBlock( - leadingBlockStatements, - /*multiLine*/ - true - ); - const leadingStaticBlock = factory2.createClassStaticBlockDeclaration(leadingStaticBlockBody); - if (shouldTransformPrivateStaticElementsInClass) { - setInternalEmitFlags(leadingStaticBlock, 32 /* TransformPrivateStaticElements */); - } - newMembers = [leadingStaticBlock, ...newMembers]; - } - if (syntheticConstructor) { - newMembers = [...newMembers, syntheticConstructor]; - } - if (trailingBlockStatements) { - const trailingStaticBlockBody = factory2.createBlock( - trailingBlockStatements, - /*multiLine*/ - true - ); - const trailingStaticBlock = factory2.createClassStaticBlockDeclaration(trailingStaticBlockBody); - newMembers = [...newMembers, trailingStaticBlock]; + const leadingStaticBlock = leadingBlockStatements && factory2.createClassStaticBlockDeclaration(factory2.createBlock( + leadingBlockStatements, + /*multiLine*/ + true + )); + if (leadingStaticBlock && shouldTransformPrivateStaticElementsInClass) { + setInternalEmitFlags(leadingStaticBlock, 32 /* TransformPrivateStaticElements */); } - if (newMembers !== members) { + const trailingStaticBlock = trailingBlockStatements && factory2.createClassStaticBlockDeclaration(factory2.createBlock( + trailingBlockStatements, + /*multiLine*/ + true + )); + if (leadingStaticBlock || syntheticConstructor || trailingStaticBlock) { + const newMembers = []; + const existingNamedEvaluationHelperBlockIndex = members.findIndex(isClassNamedEvaluationHelperBlock); + if (leadingStaticBlock) { + addRange(newMembers, members, 0, existingNamedEvaluationHelperBlockIndex + 1); + newMembers.push(leadingStaticBlock); + addRange(newMembers, members, existingNamedEvaluationHelperBlockIndex + 1); + } else { + addRange(newMembers, members); + } + if (syntheticConstructor) { + newMembers.push(syntheticConstructor); + } + if (trailingStaticBlock) { + newMembers.push(trailingStaticBlock); + } members = setTextRange(factory2.createNodeArray(newMembers), members); } const lexicalEnvironment = endLexicalEnvironment(); @@ -94253,6 +95236,9 @@ ${lanes.join("\n")} heritageClauses, members ); + if (classInfo2.classThis) { + classExpression = injectClassThisAssignmentIfMissing(factory2, classExpression, classInfo2.classThis); + } const classReferenceDeclaration = factory2.createVariableDeclaration( classReference, /*exclamationToken*/ @@ -94292,7 +95278,6 @@ ${lanes.join("\n")} } } setOriginalNode(classExpression, node); - getOrCreateEmitNode(classExpression).classThis = classInfo2.classThis; return factory2.createImmediatelyInvokedArrowFunction(factory2.mergeLexicalEnvironment(classDefinitionStatements, lexicalEnvironment)); } function isDecoratedClassLike(node) { @@ -94308,26 +95293,51 @@ ${lanes.join("\n")} } function visitClassDeclaration(node) { if (isDecoratedClassLike(node)) { - if (hasSyntacticModifier(node, 1 /* Export */) && hasSyntacticModifier(node, 1024 /* Default */)) { - const originalClass = getOriginalNode(node, isClassLike) ?? node; - const className = originalClass.name ? factory2.createStringLiteralFromNode(originalClass.name) : factory2.createStringLiteral("default"); - const iife = transformClassLike(node, className); - const statement = factory2.createExportDefault(iife); - setOriginalNode(statement, node); - setCommentRange(statement, getCommentRange(node)); - setSourceMapRange(statement, moveRangePastDecorators(node)); - return statement; + const statements = []; + const originalClass = getOriginalNode(node, isClassLike) ?? node; + const className = originalClass.name ? factory2.createStringLiteralFromNode(originalClass.name) : factory2.createStringLiteral("default"); + const isExport = hasSyntacticModifier(node, 1 /* Export */); + const isDefault = hasSyntacticModifier(node, 1024 /* Default */); + if (!node.name) { + node = injectClassNamedEvaluationHelperBlockIfMissing(context, node, className); + } + if (isExport && isDefault) { + const iife = transformClassLike(node); + if (node.name) { + const varDecl = factory2.createVariableDeclaration( + factory2.getLocalName(node), + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + iife + ); + setOriginalNode(varDecl, node); + const varDecls = factory2.createVariableDeclarationList([varDecl], 1 /* Let */); + const varStatement = factory2.createVariableStatement( + /*modifiers*/ + void 0, + varDecls + ); + statements.push(varStatement); + const exportStatement = factory2.createExportDefault(factory2.getDeclarationName(node)); + setOriginalNode(exportStatement, node); + setCommentRange(exportStatement, getCommentRange(node)); + setSourceMapRange(exportStatement, moveRangePastDecorators(node)); + statements.push(exportStatement); + } else { + const exportStatement = factory2.createExportDefault(iife); + setOriginalNode(exportStatement, node); + setCommentRange(exportStatement, getCommentRange(node)); + setSourceMapRange(exportStatement, moveRangePastDecorators(node)); + statements.push(exportStatement); + } } else { Debug.assertIsDefined(node.name, "A class declaration that is not a default export must have a name."); - const iife = transformClassLike(node, factory2.createStringLiteralFromNode(node.name)); - const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); - const declName = languageVersion <= 2 /* ES2015 */ ? factory2.getInternalName( - node, - /*allowComments*/ - false, - /*allowSourceMaps*/ - true - ) : factory2.getLocalName( + const iife = transformClassLike(node); + const modifierVisitorNoExport = isExport ? (node2) => isExportModifier(node2) ? void 0 : modifierVisitor(node2) : modifierVisitor; + const modifiers = visitNodes2(node.modifiers, modifierVisitorNoExport, isModifier); + const declName = factory2.getLocalName( node, /*allowComments*/ false, @@ -94344,11 +95354,17 @@ ${lanes.join("\n")} ); setOriginalNode(varDecl, node); const varDecls = factory2.createVariableDeclarationList([varDecl], 1 /* Let */); - const statement = factory2.createVariableStatement(modifiers, varDecls); - setOriginalNode(statement, node); - setCommentRange(statement, getCommentRange(node)); - return statement; + const varStatement = factory2.createVariableStatement(modifiers, varDecls); + setOriginalNode(varStatement, node); + setCommentRange(varStatement, getCommentRange(node)); + statements.push(varStatement); + if (isExport) { + const exportStatement = factory2.createExternalModuleExport(declName); + setOriginalNode(exportStatement, node); + statements.push(exportStatement); + } } + return singleOrMany(statements); } else { const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); const heritageClauses = visitNodes2(node.heritageClauses, visitor, isHeritageClause); @@ -94369,10 +95385,9 @@ ${lanes.join("\n")} ); } } - function visitClassExpression(node, referencedName) { + function visitClassExpression(node) { if (isDecoratedClassLike(node)) { - const className = node.name ? factory2.createStringLiteralFromNode(node.name) : referencedName ?? factory2.createStringLiteral(""); - const iife = transformClassLike(node, className); + const iife = transformClassLike(node); setOriginalNode(iife, node); return iife; } else { @@ -94409,6 +95424,35 @@ ${lanes.join("\n")} return statements; } } + function transformConstructorBodyWorker(statementsOut, statementsIn, statementOffset, superPath, superPathDepth, initializerStatements) { + const superStatementIndex = superPath[superPathDepth]; + const superStatement = statementsIn[superStatementIndex]; + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, statementOffset, superStatementIndex - statementOffset)); + if (isTryStatement(superStatement)) { + const tryBlockStatements = []; + transformConstructorBodyWorker( + tryBlockStatements, + superStatement.tryBlock.statements, + /*statementOffset*/ + 0, + superPath, + superPathDepth + 1, + initializerStatements + ); + const tryBlockStatementsArray = factory2.createNodeArray(tryBlockStatements); + setTextRange(tryBlockStatementsArray, superStatement.tryBlock.statements); + statementsOut.push(factory2.updateTryStatement( + superStatement, + factory2.updateBlock(superStatement.tryBlock, tryBlockStatements), + visitNode(superStatement.catchClause, visitor, isCatchClause), + visitNode(superStatement.finallyBlock, visitor, isBlock) + )); + } else { + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex, 1)); + addRange(statementsOut, initializerStatements); + } + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex + 1)); + } function visitConstructorDeclaration(node) { enterClassElement(node); const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); @@ -94425,11 +95469,9 @@ ${lanes.join("\n")} false, visitor ); - const superStatementIndex = findSuperStatementIndex(node.body.statements, nonPrologueStart); - if (superStatementIndex >= 0) { - addRange(statements, visitNodes2(node.body.statements, visitor, isStatement, nonPrologueStart, superStatementIndex + 1 - nonPrologueStart)); - addRange(statements, initializerStatements); - addRange(statements, visitNodes2(node.body.statements, visitor, isStatement, superStatementIndex + 1)); + const superStatementIndices = findSuperStatementIndexPath(node.body.statements, nonPrologueStart); + if (superStatementIndices.length > 0) { + transformConstructorBodyWorker(statements, node.body.statements, nonPrologueStart, superStatementIndices, 0, initializerStatements); } else { addRange(statements, initializerStatements); addRange(statements, visitNodes2(node.body.statements, visitor, isStatement)); @@ -94454,7 +95496,7 @@ ${lanes.join("\n")} } return updated; } - function partialTransformClassElement(member, useNamedEvaluation, classInfo2, createDescriptor) { + function partialTransformClassElement(member, classInfo2, createDescriptor) { let referencedName; let name; let initializersName; @@ -94463,11 +95505,7 @@ ${lanes.join("\n")} if (!classInfo2) { const modifiers2 = visitNodes2(member.modifiers, modifierVisitor, isModifier); enterName(); - if (useNamedEvaluation) { - ({ referencedName, name } = visitReferencedPropertyName(member.name)); - } else { - name = visitPropertyName(member.name); - } + name = visitPropertyName(member.name); exitName(); return { modifiers: modifiers2, referencedName, name, initializersName, descriptorName, thisArg }; } @@ -94516,9 +95554,10 @@ ${lanes.join("\n")} get: isPropertyDeclaration(member) || isGetAccessorDeclaration(member) || isMethodDeclaration(member), // 3. If _kind_ is ~field~, ~accessor~, or ~setter~, then ... set: isPropertyDeclaration(member) || isSetAccessorDeclaration(member) - } + }, + metadata: classInfo2.metadataReference }; - const extraInitializers = isStatic(member) ? classInfo2.staticExtraInitializersName ?? (classInfo2.staticExtraInitializersName = factory2.createUniqueName("_staticExtraInitializers", 16 /* Optimistic */)) : classInfo2.instanceExtraInitializersName ?? (classInfo2.instanceExtraInitializersName = factory2.createUniqueName("_instanceExtraInitializers", 16 /* Optimistic */)); + const extraInitializers = isStatic(member) ? classInfo2.staticExtraInitializersName ?? (classInfo2.staticExtraInitializersName = factory2.createUniqueName("_staticExtraInitializers", 16 /* Optimistic */ | 32 /* FileLevel */)) : classInfo2.instanceExtraInitializersName ?? (classInfo2.instanceExtraInitializersName = factory2.createUniqueName("_instanceExtraInitializers", 16 /* Optimistic */ | 32 /* FileLevel */)); if (isMethodOrAccessor(member)) { let descriptor; if (isPrivateIdentifierClassElementDeclaration(member) && createDescriptor) { @@ -94560,11 +95599,7 @@ ${lanes.join("\n")} } if (name === void 0) { enterName(); - if (useNamedEvaluation) { - ({ referencedName, name } = visitReferencedPropertyName(member.name)); - } else { - name = visitPropertyName(member.name); - } + name = visitPropertyName(member.name); exitName(); } if (!some(modifiers) && (isMethodDeclaration(member) || isPropertyDeclaration(member))) { @@ -94574,13 +95609,7 @@ ${lanes.join("\n")} } function visitMethodDeclaration(node) { enterClassElement(node); - const { modifiers, name, descriptorName } = partialTransformClassElement( - node, - /*useNamedEvaluation*/ - false, - classInfo, - createMethodDescriptorObject - ); + const { modifiers, name, descriptorName } = partialTransformClassElement(node, classInfo, createMethodDescriptorObject); if (descriptorName) { exitClassElement(); return finishClassElement(createMethodDescriptorForwarder(modifiers, name, descriptorName), node); @@ -94606,13 +95635,7 @@ ${lanes.join("\n")} } function visitGetAccessorDeclaration(node) { enterClassElement(node); - const { modifiers, name, descriptorName } = partialTransformClassElement( - node, - /*useNamedEvaluation*/ - false, - classInfo, - createGetAccessorDescriptorObject - ); + const { modifiers, name, descriptorName } = partialTransformClassElement(node, classInfo, createGetAccessorDescriptorObject); if (descriptorName) { exitClassElement(); return finishClassElement(createGetAccessorDescriptorForwarder(modifiers, name, descriptorName), node); @@ -94633,13 +95656,7 @@ ${lanes.join("\n")} } function visitSetAccessorDeclaration(node) { enterClassElement(node); - const { modifiers, name, descriptorName } = partialTransformClassElement( - node, - /*useNamedEvaluation*/ - false, - classInfo, - createSetAccessorDescriptorObject - ); + const { modifiers, name, descriptorName } = partialTransformClassElement(node, classInfo, createSetAccessorDescriptorObject); if (descriptorName) { exitClassElement(); return finishClassElement(createSetAccessorDescriptorForwarder(modifiers, name, descriptorName), node); @@ -94652,19 +95669,31 @@ ${lanes.join("\n")} } function visitClassStaticBlockDeclaration(node) { enterClassElement(node); - if (classInfo) - classInfo.hasStaticInitializers = true; - const result = visitEachChild(node, visitor, context); + let result; + if (isClassNamedEvaluationHelperBlock(node)) { + result = visitEachChild(node, visitor, context); + } else if (isClassThisAssignmentBlock(node)) { + const savedClassThis = classThis; + classThis = void 0; + result = visitEachChild(node, visitor, context); + classThis = savedClassThis; + } else { + if (classInfo) + classInfo.hasStaticInitializers = true; + result = visitEachChild(node, visitor, context); + } exitClassElement(); return result; } function visitPropertyDeclaration(node) { + if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.initializer)); + } enterClassElement(node); Debug.assert(!isAmbientPropertyDeclaration(node), "Not yet implemented."); - const useNamedEvaluation = isNamedEvaluation(node, isAnonymousClassNeedingAssignedName); - const { modifiers, name, referencedName, initializersName, descriptorName, thisArg } = partialTransformClassElement(node, useNamedEvaluation, classInfo, hasAccessorModifier(node) ? createAccessorPropertyDescriptorObject : void 0); + const { modifiers, name, initializersName, descriptorName, thisArg } = partialTransformClassElement(node, classInfo, hasAccessorModifier(node) ? createAccessorPropertyDescriptorObject : void 0); startLexicalEnvironment(); - let initializer = referencedName ? visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, referencedName), isExpression) : visitNode(node.initializer, visitor, isExpression); + let initializer = visitNode(node.initializer, visitor, isExpression); if (initializersName) { initializer = emitHelpers().createRunInitializersHelper( thisArg ?? factory2.createThis(), @@ -94794,38 +95823,21 @@ ${lanes.join("\n")} return visitEachChild(node, visitor, context); } function visitParameterDeclaration(node) { - let updated; if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.name, node.initializer); - const name = visitNode(node.name, visitor, isBindingName); - const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - updated = factory2.updateParameterDeclaration( - node, - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - name, - /*questionToken*/ - void 0, - /*type*/ - void 0, - initializer - ); - } else { - updated = factory2.updateParameterDeclaration( - node, - /*modifiers*/ - void 0, - node.dotDotDotToken, - visitNode(node.name, visitor, isBindingName), - /*questionToken*/ - void 0, - /*type*/ - void 0, - visitNode(node.initializer, visitor, isExpression) - ); + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.initializer)); } + const updated = factory2.updateParameterDeclaration( + node, + /*modifiers*/ + void 0, + node.dotDotDotToken, + visitNode(node.name, visitor, isBindingName), + /*questionToken*/ + void 0, + /*type*/ + void 0, + visitNode(node.initializer, visitor, isExpression) + ); if (updated !== node) { setCommentRange(updated, node); setTextRange(updated, moveRangePastModifiers(node)); @@ -94837,6 +95849,14 @@ ${lanes.join("\n")} function isAnonymousClassNeedingAssignedName(node) { return isClassExpression(node) && !node.name && isDecoratedClassLike(node); } + function canIgnoreEmptyStringLiteralInAssignedName(node) { + const innerExpression = skipOuterExpressions(node); + return isClassExpression(innerExpression) && !innerExpression.name && !classOrConstructorParameterIsDecorated( + /*useLegacyDecorators*/ + false, + innerExpression + ); + } function visitForStatement(node) { return factory2.updateForStatement( node, @@ -94857,10 +95877,8 @@ ${lanes.join("\n")} } if (isAssignmentExpression(node)) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.left, node.right); - const left = visitNode(node.left, visitor, isExpression); - const right = visitNode(node.right, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateBinaryExpression(node, left, node.operatorToken, right); + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.right)); + return visitEachChild(node, visitor, context); } if (isSuperProperty(node.left) && classThis && classSuper) { let setterName = isElementAccessExpression(node.left) ? visitNode(node.left.argumentExpression, visitor, isExpression) : isIdentifier(node.left.name) ? factory2.createStringLiteralFromNode(node.left.name) : void 0; @@ -94980,43 +95998,19 @@ ${lanes.join("\n")} } function visitPropertyAssignment(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const { referencedName, name } = visitReferencedPropertyName(node.name); - const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, referencedName), isExpression); - return factory2.updatePropertyAssignment(node, name, initializer); + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.initializer)); } return visitEachChild(node, visitor, context); } function visitVariableDeclaration(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.name, node.initializer); - const name = visitNode(node.name, visitor, isBindingName); - const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateVariableDeclaration( - node, - name, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - initializer - ); + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.initializer)); } return visitEachChild(node, visitor, context); } function visitBindingElement(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.name, node.initializer); - const propertyName = visitNode(node.propertyName, visitor, isPropertyName); - const name = visitNode(node.name, visitor, isBindingName); - const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateBindingElement( - node, - /*dotDotDotToken*/ - void 0, - propertyName, - name, - initializer - ); + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.initializer)); } return visitEachChild(node, visitor, context); } @@ -95053,14 +96047,11 @@ ${lanes.join("\n")} /*excludeCompoundAssignment*/ true )) { - const assignmentTarget = visitDestructuringAssignmentTarget(node.left); - let initializer; if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.left, node.right); - initializer = visitNode(node.right, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - } else { - initializer = visitNode(node.right, visitor, isExpression); + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.right)); } + const assignmentTarget = visitDestructuringAssignmentTarget(node.left); + const initializer = visitNode(node.right, visitor, isExpression); return factory2.updateBinaryExpression(node, assignmentTarget, node.operatorToken, initializer); } else { return visitDestructuringAssignmentTarget(node); @@ -95099,10 +96090,7 @@ ${lanes.join("\n")} } function visitShorthandAssignmentProperty(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.name, node.objectAssignmentInitializer); - const name = visitNode(node.name, visitor, isIdentifier); - const objectAssignmentInitializer = visitNode(node.objectAssignmentInitializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateShorthandPropertyAssignment(node, name, objectAssignmentInitializer); + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.objectAssignmentInitializer)); } return visitEachChild(node, visitor, context); } @@ -95134,20 +96122,17 @@ ${lanes.join("\n")} } function visitExportAssignment(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const referencedName = factory2.createStringLiteral(node.isExportEquals ? "" : "default"); - const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); - const expression = visitNode(node.expression, (node2) => namedEvaluationVisitor(node2, referencedName), isExpression); - return factory2.updateExportAssignment(node, modifiers, expression); + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.expression)); } return visitEachChild(node, visitor, context); } - function visitParenthesizedExpression(node, discarded, referencedName) { - const visitorFunc = discarded ? discardedValueVisitor : referencedName ? (node2) => namedEvaluationVisitor(node2, referencedName) : visitor; + function visitParenthesizedExpression(node, discarded) { + const visitorFunc = discarded ? discardedValueVisitor : visitor; const expression = visitNode(node.expression, visitorFunc, isExpression); return factory2.updateParenthesizedExpression(node, expression); } - function visitPartiallyEmittedExpression(node, discarded, referencedName) { - const visitorFunc = discarded ? discardedValueVisitor : referencedName ? (node2) => namedEvaluationVisitor(node2, referencedName) : visitor; + function visitPartiallyEmittedExpression(node, discarded) { + const visitorFunc = discarded ? discardedValueVisitor : visitor; const expression = visitNode(node.expression, visitorFunc, isExpression); return factory2.updatePartiallyEmittedExpression(node, expression); } @@ -95175,6 +96160,17 @@ ${lanes.join("\n")} function transformDecorator(decorator) { const expression = visitNode(decorator.expression, visitor, isExpression); setEmitFlags(expression, 3072 /* NoComments */); + const innerExpression = skipOuterExpressions(expression); + if (isAccessExpression(innerExpression)) { + const { target, thisArg } = factory2.createCallBinding( + expression, + hoistVariableDeclaration, + languageVersion, + /*cacheIdentifiers*/ + true + ); + return factory2.restoreOuterExpressions(expression, factory2.createFunctionBindCall(target, thisArg, [])); + } return expression; } function createDescriptorMethod(original, name, modifiers, asteriskToken, kind, parameters, body) { @@ -95360,9 +96356,59 @@ ${lanes.join("\n")} ]) ); } - function getAssignedNameOfIdentifier(name, initializer) { - const originalClass = getOriginalNode(initializer, isClassLike); - return originalClass && !originalClass.name && hasSyntacticModifier(originalClass, 1024 /* Default */) ? factory2.createStringLiteral("default") : factory2.createStringLiteralFromNode(name); + function createMetadata(name, classSuper2) { + const varDecl = factory2.createVariableDeclaration( + name, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + factory2.createConditionalExpression( + factory2.createLogicalAnd( + factory2.createTypeCheck(factory2.createIdentifier("Symbol"), "function"), + factory2.createPropertyAccessExpression(factory2.createIdentifier("Symbol"), "metadata") + ), + factory2.createToken(58 /* QuestionToken */), + factory2.createCallExpression( + factory2.createPropertyAccessExpression(factory2.createIdentifier("Object"), "create"), + /*typeArguments*/ + void 0, + [classSuper2 ? createSymbolMetadataReference(classSuper2) : factory2.createNull()] + ), + factory2.createToken(59 /* ColonToken */), + factory2.createVoidZero() + ) + ); + return factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList([varDecl], 2 /* Const */) + ); + } + function createSymbolMetadata(target, value) { + const defineProperty = factory2.createObjectDefinePropertyCall( + target, + factory2.createPropertyAccessExpression(factory2.createIdentifier("Symbol"), "metadata"), + factory2.createPropertyDescriptor( + { configurable: true, writable: true, enumerable: true, value }, + /*singleLine*/ + true + ) + ); + return setEmitFlags( + factory2.createIfStatement(value, factory2.createExpressionStatement(defineProperty)), + 1 /* SingleLine */ + ); + } + function createSymbolMetadataReference(classSuper2) { + return factory2.createBinaryExpression( + factory2.createElementAccessExpression( + classSuper2, + factory2.createPropertyAccessExpression(factory2.createIdentifier("Symbol"), "metadata") + ), + 61 /* QuestionQuestionToken */, + factory2.createNull() + ); } } var init_esDecorators = __esm({ @@ -95446,34 +96492,34 @@ ${lanes.join("\n")} switch (node.kind) { case 134 /* AsyncKeyword */: return void 0; - case 222 /* AwaitExpression */: + case 223 /* AwaitExpression */: return visitAwaitExpression(node); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitMethodDeclaration, node); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitFunctionDeclaration, node); - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitFunctionExpression, node); - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return doWithContext(1 /* NonTopLevel */, visitArrowFunction, node); - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: if (capturedSuperProperties && isPropertyAccessExpression(node) && node.expression.kind === 108 /* SuperKeyword */) { capturedSuperProperties.add(node.name.escapedText); } return visitEachChild(node, visitor, context); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: if (capturedSuperProperties && node.expression.kind === 108 /* SuperKeyword */) { hasSuperElementAccess = true; } return visitEachChild(node, visitor, context); - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitGetAccessorDeclaration, node); - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitSetAccessorDeclaration, node); - case 175 /* Constructor */: + case 176 /* Constructor */: return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitConstructorDeclaration, node); - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitDefault, node); default: return visitEachChild(node, visitor, context); @@ -95482,27 +96528,27 @@ ${lanes.join("\n")} function asyncBodyVisitor(node) { if (isNodeWithPossibleHoistedDeclaration(node)) { switch (node.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return visitVariableStatementInAsyncBody(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatementInAsyncBody(node); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return visitForInStatementInAsyncBody(node); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return visitForOfStatementInAsyncBody(node); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return visitCatchClauseInAsyncBody(node); - case 240 /* Block */: - case 254 /* SwitchStatement */: - case 268 /* CaseBlock */: - case 295 /* CaseClause */: - case 296 /* DefaultClause */: - case 257 /* TryStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: - case 244 /* IfStatement */: - case 253 /* WithStatement */: - case 255 /* LabeledStatement */: + case 241 /* Block */: + case 255 /* SwitchStatement */: + case 269 /* CaseBlock */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: + case 258 /* TryStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 245 /* IfStatement */: + case 254 /* WithStatement */: + case 256 /* LabeledStatement */: return visitEachChild(node, asyncBodyVisitor, context); default: return Debug.assertNever(node, "Unhandled node."); @@ -95695,7 +96741,7 @@ ${lanes.join("\n")} } } function isVariableDeclarationListWithCollidingName(node) { - return !!node && isVariableDeclarationList(node) && !(node.flags & 3 /* BlockScoped */) && node.declarations.some(collidesWithParameterName); + return !!node && isVariableDeclarationList(node) && !(node.flags & 7 /* BlockScoped */) && node.declarations.some(collidesWithParameterName); } function visitVariableDeclarationListWithCollidingNames(node, hasReceiver) { hoistVariableDeclarationList(node); @@ -95779,7 +96825,7 @@ ${lanes.join("\n")} const original = getOriginalNode(node, isFunctionLike); const nodeType = original.type; const promiseConstructor = languageVersion < 2 /* ES2015 */ ? getPromiseConstructor(nodeType) : void 0; - const isArrowFunction2 = node.kind === 218 /* ArrowFunction */; + const isArrowFunction2 = node.kind === 219 /* ArrowFunction */; const hasLexicalArguments = (resolver.getNodeCheckFlags(node) & 512 /* CaptureArguments */) !== 0; const savedEnclosingFunctionParameterNames = enclosingFunctionParameterNames; enclosingFunctionParameterNames = /* @__PURE__ */ new Set(); @@ -95878,15 +96924,15 @@ ${lanes.join("\n")} function enableSubstitutionForAsyncMethodsWithSuper() { if ((enabledSubstitutions & 1 /* AsyncMethodsWithSuper */) === 0) { enabledSubstitutions |= 1 /* AsyncMethodsWithSuper */; - context.enableSubstitution(212 /* CallExpression */); - context.enableSubstitution(210 /* PropertyAccessExpression */); - context.enableSubstitution(211 /* ElementAccessExpression */); - context.enableEmitNotification(262 /* ClassDeclaration */); - context.enableEmitNotification(173 /* MethodDeclaration */); - context.enableEmitNotification(176 /* GetAccessor */); - context.enableEmitNotification(177 /* SetAccessor */); - context.enableEmitNotification(175 /* Constructor */); - context.enableEmitNotification(242 /* VariableStatement */); + context.enableSubstitution(213 /* CallExpression */); + context.enableSubstitution(211 /* PropertyAccessExpression */); + context.enableSubstitution(212 /* ElementAccessExpression */); + context.enableEmitNotification(263 /* ClassDeclaration */); + context.enableEmitNotification(174 /* MethodDeclaration */); + context.enableEmitNotification(177 /* GetAccessor */); + context.enableEmitNotification(178 /* SetAccessor */); + context.enableEmitNotification(176 /* Constructor */); + context.enableEmitNotification(243 /* VariableStatement */); } } function onEmitNode(hint, node, emitCallback) { @@ -95917,11 +96963,11 @@ ${lanes.join("\n")} } function substituteExpression(node) { switch (node.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return substitutePropertyAccessExpression(node); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return substituteElementAccessExpression(node); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return substituteCallExpression(node); } return node; @@ -95965,7 +97011,7 @@ ${lanes.join("\n")} } function isSuperContainer(node) { const kind = node.kind; - return kind === 262 /* ClassDeclaration */ || kind === 175 /* Constructor */ || kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */; + return kind === 263 /* ClassDeclaration */ || kind === 176 /* Constructor */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; } function createSuperElementAccessInAsyncMethod(argumentExpression, location) { if (enclosingSuperContainerFlags & 256 /* MethodWithSuperPropertyAssignmentInAsync */) { @@ -96211,119 +97257,119 @@ ${lanes.join("\n")} return node; } switch (node.kind) { - case 222 /* AwaitExpression */: + case 223 /* AwaitExpression */: return visitAwaitExpression(node); - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: return visitYieldExpression(node); - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: return visitReturnStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return visitLabeledStatement(node); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return visitObjectLiteralExpression(node); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return visitBinaryExpression(node, expressionResultIsUnused2); - case 360 /* CommaListExpression */: + case 361 /* CommaListExpression */: return visitCommaListExpression(node, expressionResultIsUnused2); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return visitCatchClause(node); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return visitVariableStatement(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return visitVariableDeclaration(node); - case 245 /* DoStatement */: - case 246 /* WhileStatement */: - case 248 /* ForInStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 249 /* ForInStatement */: return doWithHierarchyFacts( visitDefault, node, 0 /* IterationStatementExcludes */, 2 /* IterationStatementIncludes */ ); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return visitForOfStatement( node, /*outermostLabeledStatement*/ void 0 ); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return doWithHierarchyFacts( visitForStatement, node, 0 /* IterationStatementExcludes */, 2 /* IterationStatementIncludes */ ); - case 221 /* VoidExpression */: + case 222 /* VoidExpression */: return visitVoidExpression(node); - case 175 /* Constructor */: + case 176 /* Constructor */: return doWithHierarchyFacts( visitConstructorDeclaration, node, 2 /* ClassOrFunctionExcludes */, 1 /* ClassOrFunctionIncludes */ ); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return doWithHierarchyFacts( visitMethodDeclaration, node, 2 /* ClassOrFunctionExcludes */, 1 /* ClassOrFunctionIncludes */ ); - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return doWithHierarchyFacts( visitGetAccessorDeclaration, node, 2 /* ClassOrFunctionExcludes */, 1 /* ClassOrFunctionIncludes */ ); - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return doWithHierarchyFacts( visitSetAccessorDeclaration, node, 2 /* ClassOrFunctionExcludes */, 1 /* ClassOrFunctionIncludes */ ); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return doWithHierarchyFacts( visitFunctionDeclaration, node, 2 /* ClassOrFunctionExcludes */, 1 /* ClassOrFunctionIncludes */ ); - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: return doWithHierarchyFacts( visitFunctionExpression, node, 2 /* ClassOrFunctionExcludes */, 1 /* ClassOrFunctionIncludes */ ); - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return doWithHierarchyFacts( visitArrowFunction, node, 2 /* ArrowFunctionExcludes */, 0 /* ArrowFunctionIncludes */ ); - case 168 /* Parameter */: + case 169 /* Parameter */: return visitParameter(node); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return visitExpressionStatement(node); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression(node, expressionResultIsUnused2); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return visitTaggedTemplateExpression(node); - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: if (capturedSuperProperties && isPropertyAccessExpression(node) && node.expression.kind === 108 /* SuperKeyword */) { capturedSuperProperties.add(node.name.escapedText); } return visitEachChild(node, visitor, context); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: if (capturedSuperProperties && node.expression.kind === 108 /* SuperKeyword */) { hasSuperElementAccess = true; } return visitEachChild(node, visitor, context); - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return doWithHierarchyFacts( visitDefault, node, @@ -96408,7 +97454,7 @@ ${lanes.join("\n")} function visitLabeledStatement(node) { if (enclosingFunctionFlags & 2 /* Async */) { const statement = unwrapInnermostStatementOfLabel(node); - if (statement.kind === 249 /* ForOfStatement */ && statement.awaitModifier) { + if (statement.kind === 250 /* ForOfStatement */ && statement.awaitModifier) { return visitForOfStatement(statement, node); } return factory2.restoreEnclosingLabel(visitNode(statement, visitor, isStatement, factory2.liftToBlock), node); @@ -96419,7 +97465,7 @@ ${lanes.join("\n")} let chunkObject; const objects = []; for (const e of elements) { - if (e.kind === 304 /* SpreadAssignment */) { + if (e.kind === 305 /* SpreadAssignment */) { if (chunkObject) { objects.push(factory2.createObjectLiteralExpression(chunkObject)); chunkObject = void 0; @@ -96427,7 +97473,7 @@ ${lanes.join("\n")} const target = e.expression; objects.push(visitNode(target, visitor, isExpression)); } else { - chunkObject = append(chunkObject, e.kind === 302 /* PropertyAssignment */ ? factory2.createPropertyAssignment(e.name, visitNode(e.initializer, visitor, isExpression)) : visitNode(e, visitor, isObjectLiteralElementLike)); + chunkObject = append(chunkObject, e.kind === 303 /* PropertyAssignment */ ? factory2.createPropertyAssignment(e.name, visitNode(e.initializer, visitor, isExpression)) : visitNode(e, visitor, isObjectLiteralElementLike)); } } if (chunkObject) { @@ -96438,7 +97484,7 @@ ${lanes.join("\n")} function visitObjectLiteralExpression(node) { if (node.transformFlags & 65536 /* ContainsObjectRestOrSpread */) { const objects = chunkObjectLiteralElements(node.properties); - if (objects.length && objects[0].kind !== 209 /* ObjectLiteralExpression */) { + if (objects.length && objects[0].kind !== 210 /* ObjectLiteralExpression */) { objects.unshift(factory2.createObjectLiteralExpression()); } let expression = objects[0]; @@ -97207,15 +98253,15 @@ ${lanes.join("\n")} function enableSubstitutionForAsyncMethodsWithSuper() { if ((enabledSubstitutions & 1 /* AsyncMethodsWithSuper */) === 0) { enabledSubstitutions |= 1 /* AsyncMethodsWithSuper */; - context.enableSubstitution(212 /* CallExpression */); - context.enableSubstitution(210 /* PropertyAccessExpression */); - context.enableSubstitution(211 /* ElementAccessExpression */); - context.enableEmitNotification(262 /* ClassDeclaration */); - context.enableEmitNotification(173 /* MethodDeclaration */); - context.enableEmitNotification(176 /* GetAccessor */); - context.enableEmitNotification(177 /* SetAccessor */); - context.enableEmitNotification(175 /* Constructor */); - context.enableEmitNotification(242 /* VariableStatement */); + context.enableSubstitution(213 /* CallExpression */); + context.enableSubstitution(211 /* PropertyAccessExpression */); + context.enableSubstitution(212 /* ElementAccessExpression */); + context.enableEmitNotification(263 /* ClassDeclaration */); + context.enableEmitNotification(174 /* MethodDeclaration */); + context.enableEmitNotification(177 /* GetAccessor */); + context.enableEmitNotification(178 /* SetAccessor */); + context.enableEmitNotification(176 /* Constructor */); + context.enableEmitNotification(243 /* VariableStatement */); } } function onEmitNode(hint, node, emitCallback) { @@ -97246,11 +98292,11 @@ ${lanes.join("\n")} } function substituteExpression(node) { switch (node.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return substitutePropertyAccessExpression(node); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return substituteElementAccessExpression(node); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return substituteCallExpression(node); } return node; @@ -97294,7 +98340,7 @@ ${lanes.join("\n")} } function isSuperContainer(node) { const kind = node.kind; - return kind === 262 /* ClassDeclaration */ || kind === 175 /* Constructor */ || kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */; + return kind === 263 /* ClassDeclaration */ || kind === 176 /* Constructor */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; } function createSuperElementAccessInAsyncMethod(argumentExpression, location) { if (enclosingSuperContainerFlags & 256 /* MethodWithSuperPropertyAssignmentInAsync */) { @@ -97345,7 +98391,7 @@ ${lanes.join("\n")} return node; } switch (node.kind) { - case 298 /* CatchClause */: + case 299 /* CatchClause */: return visitCatchClause(node); default: return visitEachChild(node, visitor, context); @@ -97390,7 +98436,7 @@ ${lanes.join("\n")} return node; } switch (node.kind) { - case 212 /* CallExpression */: { + case 213 /* CallExpression */: { const updated = visitNonOptionalCallExpression( node, /*captureThisArg*/ @@ -97399,8 +98445,8 @@ ${lanes.join("\n")} Debug.assertNotNode(updated, isSyntheticReference); return updated; } - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: if (isOptionalChain(node)) { const updated = visitOptionalExpression( node, @@ -97413,12 +98459,12 @@ ${lanes.join("\n")} return updated; } return visitEachChild(node, visitor, context); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: if (node.operatorToken.kind === 61 /* QuestionQuestionToken */) { return transformNullishCoalescingExpression(node); } return visitEachChild(node, visitor, context); - case 219 /* DeleteExpression */: + case 220 /* DeleteExpression */: return visitDeleteExpression(node); default: return visitEachChild(node, visitor, context); @@ -97456,7 +98502,7 @@ ${lanes.join("\n")} thisArg = expression; } } - expression = node.kind === 210 /* PropertyAccessExpression */ ? factory2.updatePropertyAccessExpression(node, expression, visitNode(node.name, visitor, isIdentifier)) : factory2.updateElementAccessExpression(node, expression, visitNode(node.argumentExpression, visitor, isExpression)); + expression = node.kind === 211 /* PropertyAccessExpression */ ? factory2.updatePropertyAccessExpression(node, expression, visitNode(node.name, visitor, isIdentifier)) : factory2.updateElementAccessExpression(node, expression, visitNode(node.argumentExpression, visitor, isExpression)); return thisArg ? factory2.createSyntheticReferenceExpression(expression, thisArg) : expression; } function visitNonOptionalCallExpression(node, captureThisArg) { @@ -97492,12 +98538,12 @@ ${lanes.join("\n")} } function visitNonOptionalExpression(node, captureThisArg, isDelete) { switch (node.kind) { - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitNonOptionalParenthesizedExpression(node, captureThisArg, isDelete); - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return visitNonOptionalPropertyOrElementAccessExpression(node, captureThisArg, isDelete); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return visitNonOptionalCallExpression(node, captureThisArg); default: return visitNode(node, visitor, isExpression); @@ -97523,8 +98569,8 @@ ${lanes.join("\n")} for (let i = 0; i < chain.length; i++) { const segment = chain[i]; switch (segment.kind) { - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: if (i === chain.length - 1 && captureThisArg) { if (!isSimpleCopiableExpression(rightExpression)) { thisArg = factory2.createTempVariable(hoistVariableDeclaration); @@ -97533,9 +98579,9 @@ ${lanes.join("\n")} thisArg = rightExpression; } } - rightExpression = segment.kind === 210 /* PropertyAccessExpression */ ? factory2.createPropertyAccessExpression(rightExpression, visitNode(segment.name, visitor, isIdentifier)) : factory2.createElementAccessExpression(rightExpression, visitNode(segment.argumentExpression, visitor, isExpression)); + rightExpression = segment.kind === 211 /* PropertyAccessExpression */ ? factory2.createPropertyAccessExpression(rightExpression, visitNode(segment.name, visitor, isIdentifier)) : factory2.createElementAccessExpression(rightExpression, visitNode(segment.argumentExpression, visitor, isExpression)); break; - case 212 /* CallExpression */: + case 213 /* CallExpression */: if (i === 0 && leftThisArg) { if (!isGeneratedIdentifier(leftThisArg)) { leftThisArg = factory2.cloneNode(leftThisArg); @@ -97718,22 +98764,636 @@ ${lanes.join("\n")} // src/compiler/transformers/esnext.ts function transformESNext(context) { + const { + factory: factory2, + getEmitHelperFactory: emitHelpers, + hoistVariableDeclaration, + startLexicalEnvironment, + endLexicalEnvironment + } = context; + let exportBindings; + let exportVars; + let defaultExportBinding; + let exportEqualsBinding; return chainBundle(context, transformSourceFile); function transformSourceFile(node) { if (node.isDeclarationFile) { return node; } - return visitEachChild(node, visitor, context); + const visited = visitNode(node, visitor, isSourceFile); + addEmitHelpers(visited, context.readEmitHelpers()); + exportVars = void 0; + exportBindings = void 0; + defaultExportBinding = void 0; + return visited; } function visitor(node) { if ((node.transformFlags & 4 /* ContainsESNext */) === 0) { return node; } switch (node.kind) { + case 312 /* SourceFile */: + return visitSourceFile(node); + case 241 /* Block */: + return visitBlock(node); + case 248 /* ForStatement */: + return visitForStatement(node); + case 250 /* ForOfStatement */: + return visitForOfStatement(node); + case 255 /* SwitchStatement */: + return visitSwitchStatement(node); default: return visitEachChild(node, visitor, context); } } + function visitSourceFile(node) { + const usingKind = getUsingKindOfStatements(node.statements); + if (usingKind) { + startLexicalEnvironment(); + exportBindings = new IdentifierNameMap(); + exportVars = []; + const prologueCount = countPrologueStatements(node.statements); + const topLevelStatements = []; + addRange(topLevelStatements, visitArray(node.statements, visitor, isStatement, 0, prologueCount)); + let pos = prologueCount; + while (pos < node.statements.length) { + const statement = node.statements[pos]; + if (getUsingKind(statement) !== 0 /* None */) { + if (pos > prologueCount) { + addRange(topLevelStatements, visitNodes2(node.statements, visitor, isStatement, prologueCount, pos - prologueCount)); + } + break; + } + pos++; + } + Debug.assert(pos < node.statements.length, "Should have encountered at least one 'using' statement."); + const envBinding = createEnvBinding(); + const bodyStatements = transformUsingDeclarations(node.statements, pos, node.statements.length, envBinding, topLevelStatements); + if (exportBindings.size) { + append(topLevelStatements, factory2.createExportDeclaration( + /*modifiers*/ + void 0, + /*isTypeOnly*/ + false, + factory2.createNamedExports(arrayFrom(exportBindings.values())) + )); + } + addRange(topLevelStatements, endLexicalEnvironment()); + if (exportVars.length) { + topLevelStatements.push(factory2.createVariableStatement( + factory2.createModifiersFromModifierFlags(1 /* Export */), + factory2.createVariableDeclarationList( + exportVars, + 1 /* Let */ + ) + )); + } + addRange(topLevelStatements, createDownlevelUsingStatements(bodyStatements, envBinding, usingKind === 2 /* Async */)); + if (exportEqualsBinding) { + topLevelStatements.push(factory2.createExportAssignment( + /*modifiers*/ + void 0, + /*isExportEquals*/ + true, + exportEqualsBinding + )); + } + return factory2.updateSourceFile(node, topLevelStatements); + } + return visitEachChild(node, visitor, context); + } + function visitBlock(node) { + const usingKind = getUsingKindOfStatements(node.statements); + if (usingKind) { + const prologueCount = countPrologueStatements(node.statements); + const envBinding = createEnvBinding(); + return factory2.updateBlock( + node, + [ + ...visitArray(node.statements, visitor, isStatement, 0, prologueCount), + ...createDownlevelUsingStatements( + transformUsingDeclarations( + node.statements, + prologueCount, + node.statements.length, + envBinding, + /*topLevelStatements*/ + void 0 + ), + envBinding, + usingKind === 2 /* Async */ + ) + ] + ); + } + return visitEachChild(node, visitor, context); + } + function visitForStatement(node) { + if (node.initializer && isUsingVariableDeclarationList(node.initializer)) { + return visitNode( + factory2.createBlock([ + factory2.createVariableStatement( + /*modifiers*/ + void 0, + node.initializer + ), + factory2.updateForStatement( + node, + /*initializer*/ + void 0, + node.condition, + node.incrementor, + node.statement + ) + ]), + visitor, + isStatement + ); + } + return visitEachChild(node, visitor, context); + } + function visitForOfStatement(node) { + if (isUsingVariableDeclarationList(node.initializer)) { + const forInitializer = node.initializer; + Debug.assertNode(forInitializer, isUsingVariableDeclarationList); + Debug.assert(forInitializer.declarations.length === 1, "ForInitializer may only have one declaration"); + const forDecl = forInitializer.declarations[0]; + Debug.assert(!forDecl.initializer, "ForInitializer may not have an initializer"); + const isAwaitUsing = getUsingKindOfVariableDeclarationList(forInitializer) === 2 /* Async */; + const temp = factory2.getGeneratedNameForNode(forDecl.name); + const usingVar = factory2.updateVariableDeclaration( + forDecl, + forDecl.name, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + temp + ); + const usingVarList = factory2.createVariableDeclarationList([usingVar], isAwaitUsing ? 6 /* AwaitUsing */ : 4 /* Using */); + const usingVarStatement = factory2.createVariableStatement( + /*modifiers*/ + void 0, + usingVarList + ); + return visitNode( + factory2.updateForOfStatement( + node, + node.awaitModifier, + factory2.createVariableDeclarationList([ + factory2.createVariableDeclaration(temp) + ], 2 /* Const */), + node.expression, + isBlock(node.statement) ? factory2.updateBlock(node.statement, [ + usingVarStatement, + ...node.statement.statements + ]) : factory2.createBlock( + [ + usingVarStatement, + node.statement + ], + /*multiLine*/ + true + ) + ), + visitor, + isStatement + ); + } + return visitEachChild(node, visitor, context); + } + function visitCaseOrDefaultClause(node, envBinding) { + if (getUsingKindOfStatements(node.statements) !== 0 /* None */) { + if (isCaseClause(node)) { + return factory2.updateCaseClause( + node, + visitNode(node.expression, visitor, isExpression), + transformUsingDeclarations( + node.statements, + /*start*/ + 0, + node.statements.length, + envBinding, + /*topLevelStatements*/ + void 0 + ) + ); + } else { + return factory2.updateDefaultClause( + node, + transformUsingDeclarations( + node.statements, + /*start*/ + 0, + node.statements.length, + envBinding, + /*topLevelStatements*/ + void 0 + ) + ); + } + } + return visitEachChild(node, visitor, context); + } + function visitSwitchStatement(node) { + const usingKind = getUsingKindOfCaseOrDefaultClauses(node.caseBlock.clauses); + if (usingKind) { + const envBinding = createEnvBinding(); + return createDownlevelUsingStatements( + [ + factory2.updateSwitchStatement( + node, + visitNode(node.expression, visitor, isExpression), + factory2.updateCaseBlock( + node.caseBlock, + node.caseBlock.clauses.map((clause) => visitCaseOrDefaultClause(clause, envBinding)) + ) + ) + ], + envBinding, + usingKind === 2 /* Async */ + ); + } + return visitEachChild(node, visitor, context); + } + function transformUsingDeclarations(statementsIn, start, end, envBinding, topLevelStatements) { + const statements = []; + for (let i = start; i < end; i++) { + const statement = statementsIn[i]; + const usingKind = getUsingKind(statement); + if (usingKind) { + Debug.assertNode(statement, isVariableStatement); + const declarations = []; + for (let declaration of statement.declarationList.declarations) { + if (!isIdentifier(declaration.name)) { + declarations.length = 0; + break; + } + if (isNamedEvaluation(declaration)) { + declaration = transformNamedEvaluation(context, declaration); + } + const initializer = visitNode(declaration.initializer, visitor, isExpression) ?? factory2.createVoidZero(); + declarations.push(factory2.updateVariableDeclaration( + declaration, + declaration.name, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + emitHelpers().createAddDisposableResourceHelper( + envBinding, + initializer, + usingKind === 2 /* Async */ + ) + )); + } + if (declarations.length) { + const varList = factory2.createVariableDeclarationList(declarations, 2 /* Const */); + setOriginalNode(varList, statement.declarationList); + setTextRange(varList, statement.declarationList); + hoistOrAppendNode(factory2.updateVariableStatement( + statement, + /*modifiers*/ + void 0, + varList + )); + continue; + } + } + const result = visitor(statement); + if (isArray(result)) { + result.forEach(hoistOrAppendNode); + } else if (result) { + hoistOrAppendNode(result); + } + } + return statements; + function hoistOrAppendNode(node) { + Debug.assertNode(node, isStatement); + append(statements, hoist(node)); + } + function hoist(node) { + if (!topLevelStatements) + return node; + switch (node.kind) { + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 278 /* ExportDeclaration */: + case 262 /* FunctionDeclaration */: + return hoistImportOrExportOrHoistedDeclaration(node, topLevelStatements); + case 277 /* ExportAssignment */: + return hoistExportAssignment(node); + case 263 /* ClassDeclaration */: + return hoistClassDeclaration(node); + case 243 /* VariableStatement */: + return hoistVariableStatement(node); + } + return node; + } + } + function hoistImportOrExportOrHoistedDeclaration(node, topLevelStatements) { + topLevelStatements.push(node); + return void 0; + } + function hoistExportAssignment(node) { + return node.isExportEquals ? hoistExportEquals(node) : hoistExportDefault(node); + } + function hoistExportDefault(node) { + if (defaultExportBinding) { + return node; + } + defaultExportBinding = factory2.createUniqueName("_default", 8 /* ReservedInNestedScopes */ | 32 /* FileLevel */ | 16 /* Optimistic */); + hoistBindingIdentifier( + defaultExportBinding, + /*isExport*/ + true, + "default", + node + ); + let expression = node.expression; + let innerExpression = skipOuterExpressions(expression); + if (isNamedEvaluation(innerExpression)) { + innerExpression = transformNamedEvaluation( + context, + innerExpression, + /*ignoreEmptyStringLiteral*/ + false, + "default" + ); + expression = factory2.restoreOuterExpressions(expression, innerExpression); + } + const assignment = factory2.createAssignment(defaultExportBinding, expression); + return factory2.createExpressionStatement(assignment); + } + function hoistExportEquals(node) { + if (exportEqualsBinding) { + return node; + } + exportEqualsBinding = factory2.createUniqueName("_default", 8 /* ReservedInNestedScopes */ | 32 /* FileLevel */ | 16 /* Optimistic */); + hoistVariableDeclaration(exportEqualsBinding); + const assignment = factory2.createAssignment(exportEqualsBinding, node.expression); + return factory2.createExpressionStatement(assignment); + } + function hoistClassDeclaration(node) { + if (!node.name && defaultExportBinding) { + return node; + } + const isExported2 = hasSyntacticModifier(node, 1 /* Export */); + const isDefault = hasSyntacticModifier(node, 1024 /* Default */); + let expression = factory2.converters.convertToClassExpression(node); + if (node.name) { + hoistBindingIdentifier( + factory2.getLocalName(node), + isExported2 && !isDefault, + /*exportAlias*/ + void 0, + node + ); + expression = factory2.createAssignment(factory2.getDeclarationName(node), expression); + if (isNamedEvaluation(expression)) { + expression = transformNamedEvaluation( + context, + expression, + /*ignoreEmptyStringLiteral*/ + false + ); + } + setOriginalNode(expression, node); + setSourceMapRange(expression, node); + setCommentRange(expression, node); + } + if (isDefault && !defaultExportBinding) { + defaultExportBinding = factory2.createUniqueName("_default", 8 /* ReservedInNestedScopes */ | 32 /* FileLevel */ | 16 /* Optimistic */); + hoistBindingIdentifier( + defaultExportBinding, + /*isExport*/ + true, + "default", + node + ); + expression = factory2.createAssignment(defaultExportBinding, expression); + if (isNamedEvaluation(expression)) { + expression = transformNamedEvaluation( + context, + expression, + /*ignoreEmptyStringLiteral*/ + false, + "default" + ); + } + setOriginalNode(expression, node); + } + return factory2.createExpressionStatement(expression); + } + function hoistVariableStatement(node) { + let expressions; + const isExported2 = hasSyntacticModifier(node, 1 /* Export */); + for (const variable of node.declarationList.declarations) { + hoistBindingElement(variable, isExported2, variable); + if (variable.initializer) { + expressions = append(expressions, hoistInitializedVariable(variable)); + } + } + if (expressions) { + const statement = factory2.createExpressionStatement(factory2.inlineExpressions(expressions)); + setOriginalNode(statement, node); + setCommentRange(statement, node); + setSourceMapRange(statement, node); + return statement; + } + return void 0; + } + function hoistInitializedVariable(node) { + Debug.assertIsDefined(node.initializer); + let target; + if (isIdentifier(node.name)) { + target = factory2.cloneNode(node.name); + setEmitFlags(target, getEmitFlags(target) & ~(32768 /* LocalName */ | 16384 /* ExportName */ | 65536 /* InternalName */)); + } else { + target = factory2.converters.convertToAssignmentPattern(node.name); + } + const assignment = factory2.createAssignment(target, node.initializer); + setOriginalNode(assignment, node); + setCommentRange(assignment, node); + setSourceMapRange(assignment, node); + return assignment; + } + function hoistBindingElement(node, isExportedDeclaration, original) { + if (isBindingPattern(node.name)) { + for (const element of node.name.elements) { + if (!isOmittedExpression(element)) { + hoistBindingElement(element, isExportedDeclaration, original); + } + } + } else { + hoistBindingIdentifier( + node.name, + isExportedDeclaration, + /*exportAlias*/ + void 0, + original + ); + } + } + function hoistBindingIdentifier(node, isExport, exportAlias, original) { + const name = isGeneratedIdentifier(node) ? node : factory2.cloneNode(node); + if (isExport) { + if (exportAlias === void 0 && !isLocalName(name)) { + const varDecl = factory2.createVariableDeclaration(name); + if (original) { + setOriginalNode(varDecl, original); + } + exportVars.push(varDecl); + return; + } + const localName = exportAlias !== void 0 ? name : void 0; + const exportName = exportAlias !== void 0 ? exportAlias : name; + const specifier = factory2.createExportSpecifier( + /*isTypeOnly*/ + false, + localName, + exportName + ); + if (original) { + setOriginalNode(specifier, original); + } + exportBindings.set(name, specifier); + } + hoistVariableDeclaration(name); + } + function createEnvBinding() { + return factory2.createUniqueName("env"); + } + function createDownlevelUsingStatements(bodyStatements, envBinding, async) { + const statements = []; + const envObject = factory2.createObjectLiteralExpression([ + factory2.createPropertyAssignment("stack", factory2.createArrayLiteralExpression()), + factory2.createPropertyAssignment("error", factory2.createVoidZero()), + factory2.createPropertyAssignment("hasError", factory2.createFalse()) + ]); + const envVar = factory2.createVariableDeclaration( + envBinding, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + envObject + ); + const envVarList = factory2.createVariableDeclarationList([envVar], 2 /* Const */); + const envVarStatement = factory2.createVariableStatement( + /*modifiers*/ + void 0, + envVarList + ); + statements.push(envVarStatement); + const tryBlock = factory2.createBlock( + bodyStatements, + /*multiLine*/ + true + ); + const bodyCatchBinding = factory2.createUniqueName("e"); + const catchClause = factory2.createCatchClause( + bodyCatchBinding, + factory2.createBlock( + [ + factory2.createExpressionStatement( + factory2.createAssignment( + factory2.createPropertyAccessExpression(envBinding, "error"), + bodyCatchBinding + ) + ), + factory2.createExpressionStatement( + factory2.createAssignment( + factory2.createPropertyAccessExpression(envBinding, "hasError"), + factory2.createTrue() + ) + ) + ], + /*multiLine*/ + true + ) + ); + let finallyBlock; + if (async) { + const result = factory2.createUniqueName("result"); + finallyBlock = factory2.createBlock( + [ + factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList([ + factory2.createVariableDeclaration( + result, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + emitHelpers().createDisposeResourcesHelper(envBinding) + ) + ], 2 /* Const */) + ), + factory2.createIfStatement(result, factory2.createExpressionStatement(factory2.createAwaitExpression(result))) + ], + /*multiLine*/ + true + ); + } else { + finallyBlock = factory2.createBlock( + [ + factory2.createExpressionStatement( + emitHelpers().createDisposeResourcesHelper(envBinding) + ) + ], + /*multiLine*/ + true + ); + } + const tryStatement = factory2.createTryStatement(tryBlock, catchClause, finallyBlock); + statements.push(tryStatement); + return statements; + } + } + function countPrologueStatements(statements) { + for (let i = 0; i < statements.length; i++) { + if (!isPrologueDirective(statements[i]) && !isCustomPrologue(statements[i])) { + return i; + } + } + return 0; + } + function isUsingVariableDeclarationList(node) { + return isVariableDeclarationList(node) && getUsingKindOfVariableDeclarationList(node) !== 0 /* None */; + } + function getUsingKindOfVariableDeclarationList(node) { + return (node.flags & 7 /* BlockScoped */) === 6 /* AwaitUsing */ ? 2 /* Async */ : (node.flags & 7 /* BlockScoped */) === 4 /* Using */ ? 1 /* Sync */ : 0 /* None */; + } + function getUsingKindOfVariableStatement(node) { + return getUsingKindOfVariableDeclarationList(node.declarationList); + } + function getUsingKind(statement) { + return isVariableStatement(statement) ? getUsingKindOfVariableStatement(statement) : 0 /* None */; + } + function getUsingKindOfStatements(statements) { + let result = 0 /* None */; + for (const statement of statements) { + const usingKind = getUsingKind(statement); + if (usingKind === 2 /* Async */) + return 2 /* Async */; + if (usingKind > result) + result = usingKind; + } + return result; + } + function getUsingKindOfCaseOrDefaultClauses(clauses) { + let result = 0 /* None */; + for (const clause of clauses) { + const usingKind = getUsingKindOfStatements(clause.statements); + if (usingKind === 2 /* Async */) + return 2 /* Async */; + if (usingKind > result) + result = usingKind; + } + return result; } var init_esnext = __esm({ "src/compiler/transformers/esnext.ts"() { @@ -97893,25 +99553,25 @@ ${lanes.join("\n")} } function visitorWorker(node) { switch (node.kind) { - case 283 /* JsxElement */: + case 284 /* JsxElement */: return visitJsxElement( node, /*isChild*/ false ); - case 284 /* JsxSelfClosingElement */: + case 285 /* JsxSelfClosingElement */: return visitJsxSelfClosingElement( node, /*isChild*/ false ); - case 287 /* JsxFragment */: + case 288 /* JsxFragment */: return visitJsxFragment( node, /*isChild*/ false ); - case 293 /* JsxExpression */: + case 294 /* JsxExpression */: return visitJsxExpression(node); default: return visitEachChild(node, visitor, context); @@ -97921,21 +99581,21 @@ ${lanes.join("\n")} switch (node.kind) { case 12 /* JsxText */: return visitJsxText(node); - case 293 /* JsxExpression */: + case 294 /* JsxExpression */: return visitJsxExpression(node); - case 283 /* JsxElement */: + case 284 /* JsxElement */: return visitJsxElement( node, /*isChild*/ true ); - case 284 /* JsxSelfClosingElement */: + case 285 /* JsxSelfClosingElement */: return visitJsxSelfClosingElement( node, /*isChild*/ true ); - case 287 /* JsxFragment */: + case 288 /* JsxFragment */: return visitJsxFragment( node, /*isChild*/ @@ -98143,10 +99803,10 @@ ${lanes.join("\n")} for (const prop of attr.expression.properties) { if (isSpreadAssignment(prop)) { finishObjectLiteralIfNeeded(); - expressions.push(prop.expression); + expressions.push(Debug.checkDefined(visitNode(prop.expression, visitor, isExpression))); continue; } - properties.push(prop); + properties.push(Debug.checkDefined(visitNode(prop, visitor))); } continue; } @@ -98185,7 +99845,7 @@ ${lanes.join("\n")} const literal = factory2.createStringLiteral(tryDecodeEntities(node.text) || node.text, singleQuote); return setTextRange(literal, node); } - if (node.kind === 293 /* JsxExpression */) { + if (node.kind === 294 /* JsxExpression */) { if (node.expression === void 0) { return factory2.createTrue(); } @@ -98259,7 +99919,7 @@ ${lanes.join("\n")} return decoded === text ? void 0 : decoded; } function getTagName(node) { - if (node.kind === 283 /* JsxElement */) { + if (node.kind === 284 /* JsxElement */) { return getTagName(node.openingElement); } else { const tagName = node.tagName; @@ -98566,7 +100226,7 @@ ${lanes.join("\n")} return node; } switch (node.kind) { - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return visitBinaryExpression(node); default: return visitEachChild(node, visitor, context); @@ -98700,7 +100360,7 @@ ${lanes.join("\n")} hierarchyFacts = (hierarchyFacts & ~excludeFacts | includeFacts) & -32768 /* SubtreeFactsMask */ | ancestorFacts; } function isReturnVoidStatementInConstructorWithCapturedSuper(node) { - return (hierarchyFacts & 8192 /* ConstructorWithCapturedSuper */) !== 0 && node.kind === 252 /* ReturnStatement */ && !node.expression; + return (hierarchyFacts & 8192 /* ConstructorWithCapturedSuper */) !== 0 && node.kind === 253 /* ReturnStatement */ && !node.expression; } function isOrMayContainReturnCompletion(node) { return node.transformFlags & 4194304 /* ContainsHoistedDeclarationOrCompletion */ && (isReturnStatement(node) || isIfStatement(node) || isWithStatement(node) || isSwitchStatement(node) || isCaseBlock(node) || isCaseClause(node) || isDefaultClause(node) || isTryStatement(node) || isCatchClause(node) || isLabeledStatement(node) || isIterationStatement( @@ -98767,85 +100427,85 @@ ${lanes.join("\n")} switch (node.kind) { case 126 /* StaticKeyword */: return void 0; - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return visitClassDeclaration(node); - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return visitClassExpression(node); - case 168 /* Parameter */: + case 169 /* Parameter */: return visitParameter(node); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return visitFunctionDeclaration(node); - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return visitArrowFunction(node); - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: return visitFunctionExpression(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return visitVariableDeclaration(node); case 80 /* Identifier */: return visitIdentifier(node); - case 260 /* VariableDeclarationList */: + case 261 /* VariableDeclarationList */: return visitVariableDeclarationList(node); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return visitSwitchStatement(node); - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: return visitCaseBlock(node); - case 240 /* Block */: + case 241 /* Block */: return visitBlock( node, /*isFunctionBody*/ false ); - case 251 /* BreakStatement */: - case 250 /* ContinueStatement */: + case 252 /* BreakStatement */: + case 251 /* ContinueStatement */: return visitBreakOrContinueStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return visitLabeledStatement(node); - case 245 /* DoStatement */: - case 246 /* WhileStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: return visitDoOrWhileStatement( node, /*outermostLabeledStatement*/ void 0 ); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement( node, /*outermostLabeledStatement*/ void 0 ); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return visitForInStatement( node, /*outermostLabeledStatement*/ void 0 ); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return visitForOfStatement( node, /*outermostLabeledStatement*/ void 0 ); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return visitExpressionStatement(node); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return visitObjectLiteralExpression(node); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return visitCatchClause(node); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return visitShorthandPropertyAssignment(node); - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: return visitComputedPropertyName(node); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return visitArrayLiteralExpression(node); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return visitCallExpression(node); - case 213 /* NewExpression */: + case 214 /* NewExpression */: return visitNewExpression(node); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression(node, expressionResultIsUnused2); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return visitBinaryExpression(node, expressionResultIsUnused2); - case 360 /* CommaListExpression */: + case 361 /* CommaListExpression */: return visitCommaListExpression(node, expressionResultIsUnused2); case 15 /* NoSubstitutionTemplateLiteral */: case 16 /* TemplateHead */: @@ -98856,13 +100516,13 @@ ${lanes.join("\n")} return visitStringLiteral(node); case 9 /* NumericLiteral */: return visitNumericLiteral(node); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return visitTaggedTemplateExpression(node); - case 227 /* TemplateExpression */: + case 228 /* TemplateExpression */: return visitTemplateExpression(node); - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: return visitYieldExpression(node); - case 229 /* SpreadElement */: + case 230 /* SpreadElement */: return visitSpreadElement(node); case 108 /* SuperKeyword */: return visitSuperKeyword( @@ -98871,18 +100531,18 @@ ${lanes.join("\n")} ); case 110 /* ThisKeyword */: return visitThisKeyword(node); - case 235 /* MetaProperty */: + case 236 /* MetaProperty */: return visitMetaProperty(node); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return visitMethodDeclaration(node); - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return visitAccessorDeclaration(node); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return visitVariableStatement(node); - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: return visitReturnStatement(node); - case 221 /* VoidExpression */: + case 222 /* VoidExpression */: return visitVoidExpression(node); default: return visitEachChild(node, visitor, context); @@ -98980,7 +100640,7 @@ ${lanes.join("\n")} return convertedLoopState.argumentsName || (convertedLoopState.argumentsName = factory2.createUniqueName("arguments")); } } - if (node.flags & 128 /* IdentifierHasExtendedUnicodeEscape */) { + if (node.flags & 256 /* IdentifierHasExtendedUnicodeEscape */) { return setOriginalNode(setTextRange( factory2.createIdentifier(unescapeLeadingUnderscores(node.escapedText)), node @@ -98990,13 +100650,13 @@ ${lanes.join("\n")} } function visitBreakOrContinueStatement(node) { if (convertedLoopState) { - const jump = node.kind === 251 /* BreakStatement */ ? 2 /* Break */ : 4 /* Continue */; + const jump = node.kind === 252 /* BreakStatement */ ? 2 /* Break */ : 4 /* Continue */; const canUseBreakOrContinue = node.label && convertedLoopState.labels && convertedLoopState.labels.get(idText(node.label)) || !node.label && convertedLoopState.allowedNonLabeledJumps & jump; if (!canUseBreakOrContinue) { let labelMarker; const label = node.label; if (!label) { - if (node.kind === 251 /* BreakStatement */) { + if (node.kind === 252 /* BreakStatement */) { convertedLoopState.nonLocalJumps |= 2 /* Break */; labelMarker = "break"; } else { @@ -99004,7 +100664,7 @@ ${lanes.join("\n")} labelMarker = "continue"; } } else { - if (node.kind === 251 /* BreakStatement */) { + if (node.kind === 252 /* BreakStatement */) { labelMarker = `break-${label.escapedText}`; setLabeledJump( convertedLoopState, @@ -99210,6 +100870,104 @@ ${lanes.join("\n")} setEmitFlags(block, 3072 /* NoComments */); return block; } + function transformConstructorBodyWorker(prologueOut, statementsOut, statementsIn, statementOffset, superPath, superPathDepth, constructor, isDerivedClass, hasSynthesizedSuper, isFirstStatement) { + let mayReplaceThis = false; + const superStatementIndex = superPathDepth < superPath.length ? superPath[superPathDepth] : -1; + const leadingStatementsEnd = superStatementIndex >= 0 ? superStatementIndex : statementsIn.length; + if (isFirstStatement && superStatementIndex >= 0) { + let firstMaterialIndex = statementOffset; + while (isFirstStatement && firstMaterialIndex < superStatementIndex) { + const statement = constructor.body.statements[firstMaterialIndex]; + if (!isUninitializedVariableStatement(statement) && !isUsingDeclarationStateVariableStatement(statement)) + break; + firstMaterialIndex++; + } + isFirstStatement = superStatementIndex === firstMaterialIndex; + } + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, statementOffset, leadingStatementsEnd - statementOffset)); + const superStatement = superStatementIndex >= 0 ? statementsIn[superStatementIndex] : void 0; + if (superStatement && isTryStatement(superStatement)) { + const tryBlockStatements = []; + mayReplaceThis = transformConstructorBodyWorker( + prologueOut, + tryBlockStatements, + superStatement.tryBlock.statements, + /*statementOffset*/ + 0, + superPath, + superPathDepth + 1, + constructor, + isDerivedClass, + hasSynthesizedSuper, + isFirstStatement + ); + const tryBlockStatementsArray = factory2.createNodeArray(tryBlockStatements); + setTextRange(tryBlockStatementsArray, superStatement.tryBlock.statements); + statementsOut.push(factory2.updateTryStatement( + superStatement, + factory2.updateBlock(superStatement.tryBlock, tryBlockStatements), + visitNode(superStatement.catchClause, visitor, isCatchClause), + visitNode(superStatement.finallyBlock, visitor, isBlock) + )); + } else { + const superCall = superStatement && getSuperCallFromStatement(superStatement); + let superCallExpression; + if (hasSynthesizedSuper) { + superCallExpression = createDefaultSuperCallOrThis(); + hierarchyFacts |= 8192 /* ConstructorWithCapturedSuper */; + } else if (superCall) { + superCallExpression = visitSuperCallInBody(superCall); + hierarchyFacts |= 8192 /* ConstructorWithCapturedSuper */; + } + if (isDerivedClass || superCallExpression) { + if (superCallExpression && superStatementIndex === statementsIn.length - 1 && !(constructor.body.transformFlags & 16384 /* ContainsLexicalThis */)) { + const superCall2 = cast(cast(superCallExpression, isBinaryExpression).left, isCallExpression); + const returnStatement = factory2.createReturnStatement(superCallExpression); + setCommentRange(returnStatement, getCommentRange(superCall2)); + setEmitFlags(superCall2, 3072 /* NoComments */); + statementsOut.push(returnStatement); + return false; + } else { + if (isFirstStatement) { + insertCaptureThisForNode(statementsOut, constructor, superCallExpression || createActualThis()); + } else { + insertCaptureThisForNode(prologueOut, constructor, createActualThis()); + if (superCallExpression) { + addSuperThisCaptureThisForNode(statementsOut, superCallExpression); + } + } + mayReplaceThis = true; + } + } else { + insertCaptureThisForNodeIfNeeded(prologueOut, constructor); + } + } + if (superStatementIndex >= 0) { + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex + 1)); + } + return mayReplaceThis; + } + function isUninitializedVariableStatement(node) { + return isVariableStatement(node) && every(node.declarationList.declarations, (decl) => isIdentifier(decl.name) && !decl.initializer); + } + function isUsingDeclarationStateVariableStatement(node) { + if (!isVariableStatement(node) || node.declarationList.declarations.length !== 1) + return false; + const varDecl = node.declarationList.declarations[0]; + if (!isIdentifier(varDecl.name) || !varDecl.initializer) + return false; + const initializer = varDecl.initializer; + if (!isObjectLiteralExpression(initializer) || initializer.properties.length !== 3) + return false; + const [stackProp, errorProp, hasErrorProp] = initializer.properties; + if (!isPropertyAssignment(stackProp) || !isIdentifier(stackProp.name) || idText(stackProp.name) !== "stack" || !isArrayLiteralExpression(stackProp.initializer)) + return false; + if (!isPropertyAssignment(errorProp) || !isIdentifier(errorProp.name) || idText(errorProp.name) !== "error" || !isVoidExpression(errorProp.initializer) || !isNumericLiteral(errorProp.initializer.expression)) + return false; + if (!isPropertyAssignment(hasErrorProp) || !isIdentifier(hasErrorProp.name) || idText(hasErrorProp.name) !== "hasError" || hasErrorProp.initializer.kind !== 97 /* FalseKeyword */) + return false; + return true; + } function transformConstructorBody(constructor, node, extendsClauseElement, hasSynthesizedSuper) { const isDerivedClass = !!extendsClauseElement && skipOuterExpressions(extendsClauseElement.expression).kind !== 106 /* NullKeyword */; if (!constructor) @@ -99217,82 +100975,43 @@ ${lanes.join("\n")} const prologue = []; const statements = []; resumeLexicalEnvironment(); - const existingPrologue = takeWhile(constructor.body.statements, isPrologueDirective); - const { superCall, superStatementIndex } = findSuperCallAndStatementIndex(constructor.body.statements, existingPrologue); - const postSuperStatementsStart = superStatementIndex === -1 ? existingPrologue.length : superStatementIndex + 1; - let statementOffset = postSuperStatementsStart; - if (!hasSynthesizedSuper) - statementOffset = factory2.copyStandardPrologue( - constructor.body.statements, - prologue, - statementOffset, - /*ensureUseStrict*/ - false - ); - if (!hasSynthesizedSuper) - statementOffset = factory2.copyCustomPrologue( - constructor.body.statements, - statements, - statementOffset, - visitor, - /*filter*/ - void 0 - ); - let superCallExpression; - if (hasSynthesizedSuper) { - superCallExpression = createDefaultSuperCallOrThis(); - } else if (superCall) { - superCallExpression = visitSuperCallInBody(superCall); - } - if (superCallExpression) { + const standardPrologueEnd = factory2.copyStandardPrologue( + constructor.body.statements, + prologue, + /*statementOffset*/ + 0 + ); + const superStatementIndices = findSuperStatementIndexPath(constructor.body.statements, standardPrologueEnd); + if (hasSynthesizedSuper || superStatementIndices.length > 0) { hierarchyFacts |= 8192 /* ConstructorWithCapturedSuper */; } - addDefaultValueAssignmentsIfNeeded2(prologue, constructor); - addRestParameterIfNeeded(prologue, constructor, hasSynthesizedSuper); - addRange(statements, visitNodes2( - constructor.body.statements, - visitor, - isStatement, - /*start*/ - statementOffset - )); - factory2.mergeLexicalEnvironment(prologue, endLexicalEnvironment()); - insertCaptureNewTargetIfNeeded( + const mayReplaceThis = transformConstructorBodyWorker( prologue, + statements, + constructor.body.statements, + standardPrologueEnd, + superStatementIndices, + /*superPathDepth*/ + 0, constructor, - /*copyOnWrite*/ - false + isDerivedClass, + hasSynthesizedSuper, + /*isFirstStatement*/ + true + // NOTE: this will be recalculated inside of transformConstructorBodyWorker ); - if (isDerivedClass || superCallExpression) { - if (superCallExpression && postSuperStatementsStart === constructor.body.statements.length && !(constructor.body.transformFlags & 16384 /* ContainsLexicalThis */)) { - const superCall2 = cast(cast(superCallExpression, isBinaryExpression).left, isCallExpression); - const returnStatement = factory2.createReturnStatement(superCallExpression); - setCommentRange(returnStatement, getCommentRange(superCall2)); - setEmitFlags(superCall2, 3072 /* NoComments */); - statements.push(returnStatement); - } else { - if (superStatementIndex <= existingPrologue.length) { - insertCaptureThisForNode(statements, constructor, superCallExpression || createActualThis()); - } else { - insertCaptureThisForNode(prologue, constructor, createActualThis()); - if (superCallExpression) { - insertSuperThisCaptureThisForNode(statements, superCallExpression); - } - } - if (!isSufficientlyCoveredByReturnStatements(constructor.body)) { - statements.push(factory2.createReturnStatement(factory2.createUniqueName("_this", 16 /* Optimistic */ | 32 /* FileLevel */))); - } - } - } else { - insertCaptureThisForNodeIfNeeded(prologue, constructor); + addDefaultValueAssignmentsIfNeeded2(prologue, constructor); + addRestParameterIfNeeded(prologue, constructor, hasSynthesizedSuper); + insertCaptureNewTargetIfNeeded(prologue, constructor); + factory2.mergeLexicalEnvironment(prologue, endLexicalEnvironment()); + if (mayReplaceThis && !isSufficientlyCoveredByReturnStatements(constructor.body)) { + statements.push(factory2.createReturnStatement(factory2.createUniqueName("_this", 16 /* Optimistic */ | 32 /* FileLevel */))); } const body = factory2.createBlock( setTextRange( factory2.createNodeArray( [ - ...existingPrologue, ...prologue, - ...superStatementIndex <= existingPrologue.length ? emptyArray : visitNodes2(constructor.body.statements, visitor, isStatement, existingPrologue.length, superStatementIndex - existingPrologue.length), ...statements ] ), @@ -99305,29 +101024,15 @@ ${lanes.join("\n")} setTextRange(body, constructor.body); return body; } - function findSuperCallAndStatementIndex(originalBodyStatements, existingPrologue) { - for (let i = existingPrologue.length; i < originalBodyStatements.length; i += 1) { - const superCall = getSuperCallFromStatement(originalBodyStatements[i]); - if (superCall) { - return { - superCall, - superStatementIndex: i - }; - } - } - return { - superStatementIndex: -1 - }; - } function isSufficientlyCoveredByReturnStatements(statement) { - if (statement.kind === 252 /* ReturnStatement */) { + if (statement.kind === 253 /* ReturnStatement */) { return true; - } else if (statement.kind === 244 /* IfStatement */) { + } else if (statement.kind === 245 /* IfStatement */) { const ifStatement = statement; if (ifStatement.elseStatement) { return isSufficientlyCoveredByReturnStatements(ifStatement.thenStatement) && isSufficientlyCoveredByReturnStatements(ifStatement.elseStatement); } - } else if (statement.kind === 240 /* Block */) { + } else if (statement.kind === 241 /* Block */) { const lastStatement = lastOrUndefined(statement.statements); if (lastStatement && isSufficientlyCoveredByReturnStatements(lastStatement)) { return true; @@ -99601,13 +101306,13 @@ ${lanes.join("\n")} return true; } function insertCaptureThisForNodeIfNeeded(statements, node) { - if (hierarchyFacts & 65536 /* CapturedLexicalThis */ && node.kind !== 218 /* ArrowFunction */) { + if (hierarchyFacts & 65536 /* CapturedLexicalThis */ && node.kind !== 219 /* ArrowFunction */) { insertCaptureThisForNode(statements, node, factory2.createThis()); return true; } return false; } - function insertSuperThisCaptureThisForNode(statements, superExpression) { + function addSuperThisCaptureThisForNode(statements, superExpression) { enableSubstitutionsForCapturedThis(); const assignSuperExpression = factory2.createExpressionStatement( factory2.createBinaryExpression( @@ -99616,7 +101321,7 @@ ${lanes.join("\n")} superExpression ) ); - insertStatementAfterCustomPrologue(statements, assignSuperExpression); + statements.push(assignSuperExpression); setCommentRange(assignSuperExpression, getOriginalNode(superExpression).parent); } function insertCaptureThisForNode(statements, node, initializer) { @@ -99639,25 +101344,25 @@ ${lanes.join("\n")} setSourceMapRange(captureThisStatement, node); insertStatementAfterCustomPrologue(statements, captureThisStatement); } - function insertCaptureNewTargetIfNeeded(statements, node, copyOnWrite) { + function insertCaptureNewTargetIfNeeded(statements, node) { if (hierarchyFacts & 32768 /* NewTarget */) { let newTarget; switch (node.kind) { - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return statements; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: newTarget = factory2.createVoidZero(); break; - case 175 /* Constructor */: + case 176 /* Constructor */: newTarget = factory2.createPropertyAccessExpression( setEmitFlags(factory2.createThis(), 8 /* NoSubstitution */), "constructor" ); break; - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: newTarget = factory2.createConditionalExpression( factory2.createLogicalAnd( setEmitFlags(factory2.createThis(), 8 /* NoSubstitution */), @@ -99696,9 +101401,6 @@ ${lanes.join("\n")} ]) ); setEmitFlags(captureNewTargetStatement, 3072 /* NoComments */ | 2097152 /* CustomPrologue */); - if (copyOnWrite) { - statements = statements.slice(); - } insertStatementAfterCustomPrologue(statements, captureNewTargetStatement); } return statements; @@ -99706,21 +101408,21 @@ ${lanes.join("\n")} function addClassMembers(statements, node) { for (const member of node.members) { switch (member.kind) { - case 239 /* SemicolonClassElement */: + case 240 /* SemicolonClassElement */: statements.push(transformSemicolonClassElementToStatement(member)); break; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: statements.push(transformClassMethodDeclarationToStatement(getClassMemberPrefix(node, member), member, node)); break; - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: const accessors = getAllAccessorDeclarations(node.members, member); if (member === accessors.firstAccessor) { statements.push(transformAccessorsToStatement(getClassMemberPrefix(node, member), accessors, node)); } break; - case 175 /* Constructor */: - case 174 /* ClassStaticBlockDeclaration */: + case 176 /* Constructor */: + case 175 /* ClassStaticBlockDeclaration */: break; default: Debug.failBadSyntaxKind(member, currentSourceFile && currentSourceFile.fileName); @@ -99927,7 +101629,7 @@ ${lanes.join("\n")} const ancestorFacts = container && isClassLike(container) && !isStatic(node) ? enterSubtree(32670 /* FunctionExcludes */, 65 /* FunctionIncludes */ | 8 /* NonStaticClassElement */) : enterSubtree(32670 /* FunctionExcludes */, 65 /* FunctionIncludes */); const parameters = visitParameterList(node.parameters, visitor, context); const body = transformFunctionBody2(node); - if (hierarchyFacts & 32768 /* NewTarget */ && !name && (node.kind === 261 /* FunctionDeclaration */ || node.kind === 217 /* FunctionExpression */)) { + if (hierarchyFacts & 32768 /* NewTarget */ && !name && (node.kind === 262 /* FunctionDeclaration */ || node.kind === 218 /* FunctionExpression */)) { name = factory2.getGeneratedNameForNode(node); } exitSubtree(ancestorFacts, 98304 /* FunctionSubtreeExcludes */, 0 /* None */); @@ -99988,7 +101690,7 @@ ${lanes.join("\n")} multiLine = true; } } else { - Debug.assert(node.kind === 218 /* ArrowFunction */); + Debug.assert(node.kind === 219 /* ArrowFunction */); statementsLocation = moveRangeEnd(body, -1); const equalsGreaterThanToken = node.equalsGreaterThanToken; if (!nodeIsSynthesized(equalsGreaterThanToken) && !nodeIsSynthesized(body)) { @@ -100007,12 +101709,7 @@ ${lanes.join("\n")} closeBraceLocation = body; } factory2.mergeLexicalEnvironment(prologue, endLexicalEnvironment()); - insertCaptureNewTargetIfNeeded( - prologue, - node, - /*copyOnWrite*/ - false - ); + insertCaptureNewTargetIfNeeded(prologue, node); insertCaptureThisForNodeIfNeeded(prologue, node); if (some(prologue)) { multiLine = true; @@ -100090,7 +101787,7 @@ ${lanes.join("\n")} function visitVariableStatement(node) { const ancestorFacts = enterSubtree(0 /* None */, hasSyntacticModifier(node, 1 /* Export */) ? 32 /* ExportedVariableStatement */ : 0 /* None */); let updated; - if (convertedLoopState && (node.declarationList.flags & 3 /* BlockScoped */) === 0 && !isVariableStatementOfTypeScriptClassWrapper(node)) { + if (convertedLoopState && (node.declarationList.flags & 7 /* BlockScoped */) === 0 && !isVariableStatementOfTypeScriptClassWrapper(node)) { let assignments; for (const decl of node.declarationList.declarations) { hoistVariableDeclarationDeclaredInConvertedLoop(convertedLoopState, decl); @@ -100122,8 +101819,8 @@ ${lanes.join("\n")} return updated; } function visitVariableDeclarationList(node) { - if (node.flags & 3 /* BlockScoped */ || node.transformFlags & 524288 /* ContainsBindingPattern */) { - if (node.flags & 3 /* BlockScoped */) { + if (node.flags & 7 /* BlockScoped */ || node.transformFlags & 524288 /* ContainsBindingPattern */) { + if (node.flags & 7 /* BlockScoped */) { enableSubstitutionsForBlockScopedBindings(); } const declarations = visitNodes2(node.declarations, node.flags & 1 /* Let */ ? visitVariableDeclarationInLetDeclarationList : visitVariableDeclaration, isVariableDeclaration); @@ -100214,14 +101911,14 @@ ${lanes.join("\n")} } function visitIterationStatement(node, outermostLabeledStatement) { switch (node.kind) { - case 245 /* DoStatement */: - case 246 /* WhileStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: return visitDoOrWhileStatement(node, outermostLabeledStatement); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement(node, outermostLabeledStatement); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return visitForInStatement(node, outermostLabeledStatement); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return visitForOfStatement(node, outermostLabeledStatement); } } @@ -100277,7 +101974,7 @@ ${lanes.join("\n")} const statements = []; const initializer = node.initializer; if (isVariableDeclarationList(initializer)) { - if (node.initializer.flags & 3 /* BlockScoped */) { + if (node.initializer.flags & 7 /* BlockScoped */) { enableSubstitutionsForBlockScopedBindings(); } const firstOriginalDeclaration = firstOrUndefined(initializer.declarations); @@ -100571,7 +102268,7 @@ ${lanes.join("\n")} let numInitialProperties = -1, hasComputed = false; for (let i = 0; i < properties.length; i++) { const property = properties[i]; - if (property.transformFlags & 1048576 /* ContainsYield */ && hierarchyFacts & 4 /* AsyncFunctionBody */ || (hasComputed = Debug.checkDefined(property.name).kind === 166 /* ComputedPropertyName */)) { + if (property.transformFlags & 1048576 /* ContainsYield */ && hierarchyFacts & 4 /* AsyncFunctionBody */ || (hasComputed = Debug.checkDefined(property.name).kind === 167 /* ComputedPropertyName */)) { numInitialProperties = i; break; } @@ -100693,15 +102390,15 @@ ${lanes.join("\n")} } function convertIterationStatementCore(node, initializerFunction, convertedLoopBody) { switch (node.kind) { - case 247 /* ForStatement */: + case 248 /* ForStatement */: return convertForStatement(node, initializerFunction, convertedLoopBody); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return convertForInStatement(node, convertedLoopBody); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return convertForOfStatement(node, convertedLoopBody); - case 245 /* DoStatement */: + case 246 /* DoStatement */: return convertDoStatement(node, convertedLoopBody); - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: return convertWhileStatement(node, convertedLoopBody); default: return Debug.failBadSyntaxKind(node, "IterationStatement expected"); @@ -100753,18 +102450,18 @@ ${lanes.join("\n")} function createConvertedLoopState(node) { let loopInitializer; switch (node.kind) { - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: const initializer = node.initializer; - if (initializer && initializer.kind === 260 /* VariableDeclarationList */) { + if (initializer && initializer.kind === 261 /* VariableDeclarationList */) { loopInitializer = initializer; } break; } const loopParameters = []; const loopOutParameters = []; - if (loopInitializer && getCombinedNodeFlags(loopInitializer) & 3 /* BlockScoped */) { + if (loopInitializer && getCombinedNodeFlags(loopInitializer) & 7 /* BlockScoped */) { const hasCapturedBindingsInForHead = shouldConvertInitializerOfForStatement(node) || shouldConvertConditionOfForStatement(node) || shouldConvertIncrementorOfForStatement(node); for (const decl of loopInitializer.declarations) { processLoopVariableDeclaration(node, decl, loopParameters, loopOutParameters, hasCapturedBindingsInForHead); @@ -101172,10 +102869,10 @@ ${lanes.join("\n")} name )); const checkFlags = resolver.getNodeCheckFlags(decl); - if (checkFlags & 262144 /* NeedsLoopOutParameter */ || hasCapturedBindingsInForHead) { + if (checkFlags & 65536 /* NeedsLoopOutParameter */ || hasCapturedBindingsInForHead) { const outParamName = factory2.createUniqueName("out_" + idText(name)); let flags = 0 /* None */; - if (checkFlags & 262144 /* NeedsLoopOutParameter */) { + if (checkFlags & 65536 /* NeedsLoopOutParameter */) { flags |= 1 /* Body */; } if (isForStatement(container)) { @@ -101196,20 +102893,20 @@ ${lanes.join("\n")} for (let i = start; i < numProperties; i++) { const property = properties[i]; switch (property.kind) { - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: const accessors = getAllAccessorDeclarations(node.properties, property); if (property === accessors.firstAccessor) { expressions.push(transformAccessorsToExpression(receiver, accessors, node, !!node.multiLine)); } break; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: expressions.push(transformObjectLiteralMethodDeclarationToExpression(property, receiver, node, node.multiLine)); break; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: expressions.push(transformPropertyAssignmentToExpression(property, receiver, node.multiLine)); break; - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: expressions.push(transformShorthandPropertyAssignmentToExpression(property, receiver, node.multiLine)); break; default: @@ -101335,7 +103032,7 @@ ${lanes.join("\n")} let updated; const parameters = visitParameterList(node.parameters, visitor, context); const body = transformFunctionBody2(node); - if (node.kind === 176 /* GetAccessor */) { + if (node.kind === 177 /* GetAccessor */) { updated = factory2.updateGetAccessorDeclaration(node, node.modifiers, node.name, parameters, node.type, body); } else { updated = factory2.updateSetAccessorDeclaration(node, node.modifiers, node.name, parameters, body); @@ -101699,13 +103396,13 @@ ${lanes.join("\n")} if ((enabledSubstitutions & 1 /* CapturedThis */) === 0) { enabledSubstitutions |= 1 /* CapturedThis */; context.enableSubstitution(110 /* ThisKeyword */); - context.enableEmitNotification(175 /* Constructor */); - context.enableEmitNotification(173 /* MethodDeclaration */); - context.enableEmitNotification(176 /* GetAccessor */); - context.enableEmitNotification(177 /* SetAccessor */); - context.enableEmitNotification(218 /* ArrowFunction */); - context.enableEmitNotification(217 /* FunctionExpression */); - context.enableEmitNotification(261 /* FunctionDeclaration */); + context.enableEmitNotification(176 /* Constructor */); + context.enableEmitNotification(174 /* MethodDeclaration */); + context.enableEmitNotification(177 /* GetAccessor */); + context.enableEmitNotification(178 /* SetAccessor */); + context.enableEmitNotification(219 /* ArrowFunction */); + context.enableEmitNotification(218 /* FunctionExpression */); + context.enableEmitNotification(262 /* FunctionDeclaration */); } } function onSubstituteNode(hint, node) { @@ -101729,10 +103426,10 @@ ${lanes.join("\n")} } function isNameOfDeclarationWithCollidingName(node) { switch (node.parent.kind) { - case 207 /* BindingElement */: - case 262 /* ClassDeclaration */: - case 265 /* EnumDeclaration */: - case 259 /* VariableDeclaration */: + case 208 /* BindingElement */: + case 263 /* ClassDeclaration */: + case 266 /* EnumDeclaration */: + case 260 /* VariableDeclaration */: return node.parent.name === node && resolver.isDeclarationWithCollidingName(node.parent); } return false; @@ -101789,11 +103486,11 @@ ${lanes.join("\n")} return false; } const statement = firstOrUndefined(constructor.body.statements); - if (!statement || !nodeIsSynthesized(statement) || statement.kind !== 243 /* ExpressionStatement */) { + if (!statement || !nodeIsSynthesized(statement) || statement.kind !== 244 /* ExpressionStatement */) { return false; } const statementExpression = statement.expression; - if (!nodeIsSynthesized(statementExpression) || statementExpression.kind !== 212 /* CallExpression */) { + if (!nodeIsSynthesized(statementExpression) || statementExpression.kind !== 213 /* CallExpression */) { return false; } const callTarget = statementExpression.expression; @@ -101801,7 +103498,7 @@ ${lanes.join("\n")} return false; } const callArgument = singleOrUndefined(statementExpression.arguments); - if (!callArgument || !nodeIsSynthesized(callArgument) || callArgument.kind !== 229 /* SpreadElement */) { + if (!callArgument || !nodeIsSynthesized(callArgument) || callArgument.kind !== 230 /* SpreadElement */) { return false; } const expression = callArgument.expression; @@ -101824,24 +103521,24 @@ ${lanes.join("\n")} if (compilerOptions.jsx === 1 /* Preserve */ || compilerOptions.jsx === 3 /* ReactNative */) { previousOnEmitNode = context.onEmitNode; context.onEmitNode = onEmitNode; - context.enableEmitNotification(285 /* JsxOpeningElement */); - context.enableEmitNotification(286 /* JsxClosingElement */); - context.enableEmitNotification(284 /* JsxSelfClosingElement */); + context.enableEmitNotification(286 /* JsxOpeningElement */); + context.enableEmitNotification(287 /* JsxClosingElement */); + context.enableEmitNotification(285 /* JsxSelfClosingElement */); noSubstitution = []; } const previousOnSubstituteNode = context.onSubstituteNode; context.onSubstituteNode = onSubstituteNode; - context.enableSubstitution(210 /* PropertyAccessExpression */); - context.enableSubstitution(302 /* PropertyAssignment */); + context.enableSubstitution(211 /* PropertyAccessExpression */); + context.enableSubstitution(303 /* PropertyAssignment */); return chainBundle(context, transformSourceFile); function transformSourceFile(node) { return node; } function onEmitNode(hint, node, emitCallback) { switch (node.kind) { - case 285 /* JsxOpeningElement */: - case 286 /* JsxClosingElement */: - case 284 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 287 /* JsxClosingElement */: + case 285 /* JsxSelfClosingElement */: const tagName = node.tagName; noSubstitution[getOriginalNodeId(tagName)] = true; break; @@ -101973,13 +103670,13 @@ ${lanes.join("\n")} } function visitJavaScriptInStatementContainingYield(node) { switch (node.kind) { - case 245 /* DoStatement */: + case 246 /* DoStatement */: return visitDoStatement(node); - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: return visitWhileStatement(node); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return visitSwitchStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return visitLabeledStatement(node); default: return visitJavaScriptInGeneratorFunctionBody(node); @@ -101987,24 +103684,24 @@ ${lanes.join("\n")} } function visitJavaScriptInGeneratorFunctionBody(node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return visitFunctionDeclaration(node); - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: return visitFunctionExpression(node); - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return visitAccessorDeclaration(node); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return visitVariableStatement(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement(node); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return visitForInStatement(node); - case 251 /* BreakStatement */: + case 252 /* BreakStatement */: return visitBreakStatement(node); - case 250 /* ContinueStatement */: + case 251 /* ContinueStatement */: return visitContinueStatement(node); - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: return visitReturnStatement(node); default: if (node.transformFlags & 1048576 /* ContainsYield */) { @@ -102018,23 +103715,23 @@ ${lanes.join("\n")} } function visitJavaScriptContainingYield(node) { switch (node.kind) { - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return visitBinaryExpression(node); - case 360 /* CommaListExpression */: + case 361 /* CommaListExpression */: return visitCommaListExpression(node); - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: return visitConditionalExpression(node); - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: return visitYieldExpression(node); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return visitArrayLiteralExpression(node); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return visitObjectLiteralExpression(node); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return visitElementAccessExpression(node); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return visitCallExpression(node); - case 213 /* NewExpression */: + case 214 /* NewExpression */: return visitNewExpression(node); default: return visitEachChild(node, visitor, context); @@ -102042,9 +103739,9 @@ ${lanes.join("\n")} } function visitGenerator(node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return visitFunctionDeclaration(node); - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: return visitFunctionExpression(node); default: return Debug.failBadSyntaxKind(node); @@ -102229,14 +103926,14 @@ ${lanes.join("\n")} if (containsYield(right)) { let target; switch (left.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: target = factory2.updatePropertyAccessExpression( left, cacheExpression(Debug.checkDefined(visitNode(left.expression, visitor, isLeftHandSideExpression))), left.name ); break; - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: target = factory2.updateElementAccessExpression( left, cacheExpression(Debug.checkDefined(visitNode(left.expression, visitor, isLeftHandSideExpression))), @@ -102569,35 +104266,35 @@ ${lanes.join("\n")} } function transformAndEmitStatementWorker(node) { switch (node.kind) { - case 240 /* Block */: + case 241 /* Block */: return transformAndEmitBlock(node); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return transformAndEmitExpressionStatement(node); - case 244 /* IfStatement */: + case 245 /* IfStatement */: return transformAndEmitIfStatement(node); - case 245 /* DoStatement */: + case 246 /* DoStatement */: return transformAndEmitDoStatement(node); - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: return transformAndEmitWhileStatement(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return transformAndEmitForStatement(node); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return transformAndEmitForInStatement(node); - case 250 /* ContinueStatement */: + case 251 /* ContinueStatement */: return transformAndEmitContinueStatement(node); - case 251 /* BreakStatement */: + case 252 /* BreakStatement */: return transformAndEmitBreakStatement(node); - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: return transformAndEmitReturnStatement(node); - case 253 /* WithStatement */: + case 254 /* WithStatement */: return transformAndEmitWithStatement(node); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return transformAndEmitSwitchStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return transformAndEmitLabeledStatement(node); - case 256 /* ThrowStatement */: + case 257 /* ThrowStatement */: return transformAndEmitThrowStatement(node); - case 257 /* TryStatement */: + case 258 /* TryStatement */: return transformAndEmitTryStatement(node); default: return emitStatement(visitNode(node, visitor, isStatement)); @@ -102949,7 +104646,7 @@ ${lanes.join("\n")} for (let i = 0; i < numClauses; i++) { const clause = caseBlock.clauses[i]; clauseLabels.push(defineLabel()); - if (clause.kind === 296 /* DefaultClause */ && defaultClauseIndex === -1) { + if (clause.kind === 297 /* DefaultClause */ && defaultClauseIndex === -1) { defaultClauseIndex = i; } } @@ -102959,7 +104656,7 @@ ${lanes.join("\n")} let defaultClausesSkipped = 0; for (let i = clausesWritten; i < numClauses; i++) { const clause = caseBlock.clauses[i]; - if (clause.kind === 295 /* CaseClause */) { + if (clause.kind === 296 /* CaseClause */) { if (containsYield(clause.expression) && pendingClauses.length > 0) { break; } @@ -103932,12 +105629,12 @@ ${lanes.join("\n")} const previousOnEmitNode = context.onEmitNode; context.onSubstituteNode = onSubstituteNode; context.onEmitNode = onEmitNode; - context.enableSubstitution(212 /* CallExpression */); - context.enableSubstitution(214 /* TaggedTemplateExpression */); + context.enableSubstitution(213 /* CallExpression */); + context.enableSubstitution(215 /* TaggedTemplateExpression */); context.enableSubstitution(80 /* Identifier */); - context.enableSubstitution(225 /* BinaryExpression */); - context.enableSubstitution(303 /* ShorthandPropertyAssignment */); - context.enableEmitNotification(311 /* SourceFile */); + context.enableSubstitution(226 /* BinaryExpression */); + context.enableSubstitution(304 /* ShorthandPropertyAssignment */); + context.enableEmitNotification(312 /* SourceFile */); const moduleInfoMap = []; let currentSourceFile; let currentModuleInfo; @@ -103949,7 +105646,7 @@ ${lanes.join("\n")} return node; } currentSourceFile = node; - currentModuleInfo = collectExternalModuleInfo(context, node, resolver, compilerOptions); + currentModuleInfo = collectExternalModuleInfo(context, node); moduleInfoMap[getOriginalNodeId(node)] = currentModuleInfo; const transformModule2 = getTransformModuleDelegate(moduleKind); const updated = transformModule2(node); @@ -104349,63 +106046,59 @@ ${lanes.join("\n")} } function topLevelVisitor(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: - return visitImportDeclaration(node); - case 270 /* ImportEqualsDeclaration */: - return visitImportEqualsDeclaration(node); - case 277 /* ExportDeclaration */: - return visitExportDeclaration(node); - case 276 /* ExportAssignment */: - return visitExportAssignment(node); - case 261 /* FunctionDeclaration */: - return visitFunctionDeclaration(node); - case 262 /* ClassDeclaration */: - return visitClassDeclaration(node); + case 272 /* ImportDeclaration */: + return visitTopLevelImportDeclaration(node); + case 271 /* ImportEqualsDeclaration */: + return visitTopLevelImportEqualsDeclaration(node); + case 278 /* ExportDeclaration */: + return visitTopLevelExportDeclaration(node); + case 277 /* ExportAssignment */: + return visitTopLevelExportAssignment(node); default: return topLevelNestedVisitor(node); } } function topLevelNestedVisitor(node) { switch (node.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return visitVariableStatement(node); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return visitFunctionDeclaration(node); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return visitClassDeclaration(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement( node, /*isTopLevel*/ true ); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return visitForInStatement(node); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return visitForOfStatement(node); - case 245 /* DoStatement */: + case 246 /* DoStatement */: return visitDoStatement(node); - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: return visitWhileStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return visitLabeledStatement(node); - case 253 /* WithStatement */: + case 254 /* WithStatement */: return visitWithStatement(node); - case 244 /* IfStatement */: + case 245 /* IfStatement */: return visitIfStatement(node); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return visitSwitchStatement(node); - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: return visitCaseBlock(node); - case 295 /* CaseClause */: + case 296 /* CaseClause */: return visitCaseClause(node); - case 296 /* DefaultClause */: + case 297 /* DefaultClause */: return visitDefaultClause(node); - case 257 /* TryStatement */: + case 258 /* TryStatement */: return visitTryStatement(node); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return visitCatchClause(node); - case 240 /* Block */: + case 241 /* Block */: return visitBlock(node); default: return visitor(node); @@ -104416,30 +106109,30 @@ ${lanes.join("\n")} return node; } switch (node.kind) { - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement( node, /*isTopLevel*/ false ); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return visitExpressionStatement(node); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression(node, valueIsDiscarded); - case 359 /* PartiallyEmittedExpression */: + case 360 /* PartiallyEmittedExpression */: return visitPartiallyEmittedExpression(node, valueIsDiscarded); - case 212 /* CallExpression */: + case 213 /* CallExpression */: if (isImportCall(node) && currentSourceFile.impliedNodeFormat === void 0) { return visitImportCallExpression(node); } break; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: if (isDestructuringAssignment(node)) { return visitDestructuringAssignment(node, valueIsDiscarded); } break; - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return visitPreOrPostfixUnaryExpression(node, valueIsDiscarded); } return visitEachChild(node, visitor, context); @@ -104462,24 +106155,24 @@ ${lanes.join("\n")} if (isObjectLiteralExpression(node)) { for (const elem of node.properties) { switch (elem.kind) { - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: if (destructuringNeedsFlattening(elem.initializer)) { return true; } break; - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: if (destructuringNeedsFlattening(elem.name)) { return true; } break; - case 304 /* SpreadAssignment */: + case 305 /* SpreadAssignment */: if (destructuringNeedsFlattening(elem.expression)) { return true; } break; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return false; default: Debug.assertNever(elem, "Unhandled object member kind"); @@ -104507,7 +106200,7 @@ ${lanes.join("\n")} return visitEachChild(node, visitor, context); } function visitForStatement(node, isTopLevel) { - if (isTopLevel && node.initializer && isVariableDeclarationList(node.initializer) && !(node.initializer.flags & 3 /* BlockScoped */)) { + if (isTopLevel && node.initializer && isVariableDeclarationList(node.initializer) && !(node.initializer.flags & 7 /* BlockScoped */)) { const exportStatements = appendExportsOfVariableDeclarationList( /*statements*/ void 0, @@ -104548,7 +106241,7 @@ ${lanes.join("\n")} ); } function visitForInStatement(node) { - if (isVariableDeclarationList(node.initializer) && !(node.initializer.flags & 3 /* BlockScoped */)) { + if (isVariableDeclarationList(node.initializer) && !(node.initializer.flags & 7 /* BlockScoped */)) { const exportStatements = appendExportsOfVariableDeclarationList( /*statements*/ void 0, @@ -104576,7 +106269,7 @@ ${lanes.join("\n")} ); } function visitForOfStatement(node) { - if (isVariableDeclarationList(node.initializer) && !(node.initializer.flags & 3 /* BlockScoped */)) { + if (isVariableDeclarationList(node.initializer) && !(node.initializer.flags & 7 /* BlockScoped */)) { const exportStatements = appendExportsOfVariableDeclarationList( /*statements*/ void 0, @@ -104956,7 +106649,7 @@ ${lanes.join("\n")} } return innerExpr; } - function visitImportDeclaration(node) { + function visitTopLevelImportDeclaration(node) { let statements; const namespaceDeclaration = getNamespaceDeclarationNode(node); if (moduleKind !== 2 /* AMD */) { @@ -105065,7 +106758,7 @@ ${lanes.join("\n")} args ); } - function visitImportEqualsDeclaration(node) { + function visitTopLevelImportEqualsDeclaration(node) { Debug.assert(isExternalModuleImportEqualsDeclaration(node), "import= for internal module references should be handled in an earlier transformer."); let statements; if (moduleKind !== 2 /* AMD */) { @@ -105133,7 +106826,7 @@ ${lanes.join("\n")} statements = appendExportsOfImportEqualsDeclaration(statements, node); return singleOrMany(statements); } - function visitExportDeclaration(node) { + function visitTopLevelExportDeclaration(node) { if (!node.moduleSpecifier) { return void 0; } @@ -105235,7 +106928,7 @@ ${lanes.join("\n")} ); } } - function visitExportAssignment(node) { + function visitTopLevelExportAssignment(node) { if (node.isExportEquals) { return void 0; } @@ -105439,19 +107132,21 @@ ${lanes.join("\n")} if (!importClause) { return statements; } + const seen = new IdentifierNameMap(); if (importClause.name) { - statements = appendExportsOfDeclaration(statements, importClause); + statements = appendExportsOfDeclaration(statements, seen, importClause); } const namedBindings = importClause.namedBindings; if (namedBindings) { switch (namedBindings.kind) { - case 273 /* NamespaceImport */: - statements = appendExportsOfDeclaration(statements, namedBindings); + case 274 /* NamespaceImport */: + statements = appendExportsOfDeclaration(statements, seen, namedBindings); break; - case 274 /* NamedImports */: + case 275 /* NamedImports */: for (const importBinding of namedBindings.elements) { statements = appendExportsOfDeclaration( statements, + seen, importBinding, /*liveBinding*/ true @@ -105466,7 +107161,7 @@ ${lanes.join("\n")} if (currentModuleInfo.exportEquals) { return statements; } - return appendExportsOfDeclaration(statements, decl); + return appendExportsOfDeclaration(statements, new IdentifierNameMap(), decl); } function appendExportsOfVariableStatement(statements, node) { return appendExportsOfVariableDeclarationList( @@ -105496,7 +107191,7 @@ ${lanes.join("\n")} } } } else if (!isGeneratedIdentifier(decl.name) && (!isVariableDeclaration(decl) || decl.initializer || isForInOrOfInitializer)) { - statements = appendExportsOfDeclaration(statements, decl); + statements = appendExportsOfDeclaration(statements, new IdentifierNameMap(), decl); } return statements; } @@ -105504,10 +107199,12 @@ ${lanes.join("\n")} if (currentModuleInfo.exportEquals) { return statements; } + const seen = new IdentifierNameMap(); if (hasSyntacticModifier(decl, 1 /* Export */)) { const exportName = hasSyntacticModifier(decl, 1024 /* Default */) ? factory2.createIdentifier("default") : factory2.getDeclarationName(decl); statements = appendExportStatement( statements, + seen, exportName, factory2.getLocalName(decl), /*location*/ @@ -105515,17 +107212,18 @@ ${lanes.join("\n")} ); } if (decl.name) { - statements = appendExportsOfDeclaration(statements, decl); + statements = appendExportsOfDeclaration(statements, seen, decl); } return statements; } - function appendExportsOfDeclaration(statements, decl, liveBinding) { + function appendExportsOfDeclaration(statements, seen, decl, liveBinding) { const name = factory2.getDeclarationName(decl); - const exportSpecifiers = currentModuleInfo.exportSpecifiers.get(idText(name)); + const exportSpecifiers = currentModuleInfo.exportSpecifiers.get(name); if (exportSpecifiers) { for (const exportSpecifier of exportSpecifiers) { statements = appendExportStatement( statements, + seen, exportSpecifier.name, name, /*location*/ @@ -105538,8 +107236,11 @@ ${lanes.join("\n")} } return statements; } - function appendExportStatement(statements, exportName, expression, location, allowComments, liveBinding) { - statements = append(statements, createExportStatement(exportName, expression, location, allowComments, liveBinding)); + function appendExportStatement(statements, seen, exportName, expression, location, allowComments, liveBinding) { + if (!seen.has(exportName)) { + seen.set(exportName, true); + statements = append(statements, createExportStatement(exportName, expression, location, allowComments, liveBinding)); + } return statements; } function createUnderscoreUnderscoreESModule() { @@ -105634,7 +107335,7 @@ ${lanes.join("\n")} return node; } function onEmitNode(hint, node, emitCallback) { - if (node.kind === 311 /* SourceFile */) { + if (node.kind === 312 /* SourceFile */) { currentSourceFile = node; currentModuleInfo = moduleInfoMap[getOriginalNodeId(currentSourceFile)]; previousOnEmitNode(hint, node, emitCallback); @@ -105672,11 +107373,11 @@ ${lanes.join("\n")} switch (node.kind) { case 80 /* Identifier */: return substituteExpressionIdentifier(node); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return substituteCallExpression(node); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return substituteTaggedTemplateExpression(node); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return substituteBinaryExpression(node); } return node; @@ -105729,7 +107430,7 @@ ${lanes.join("\n")} return node; } else if (!(isGeneratedIdentifier(node) && !(node.emitNode.autoGenerate.flags & 64 /* AllowNameSubstitution */)) && !isLocalName(node)) { const exportContainer = resolver.getReferencedExportContainer(node, isExportName(node)); - if (exportContainer && exportContainer.kind === 311 /* SourceFile */) { + if (exportContainer && exportContainer.kind === 312 /* SourceFile */) { return setTextRange( factory2.createPropertyAccessExpression( factory2.createIdentifier("exports"), @@ -105766,7 +107467,7 @@ ${lanes.join("\n")} return node; } function substituteBinaryExpression(node) { - if (isAssignmentOperator(node.operatorToken.kind) && isIdentifier(node.left) && !isGeneratedIdentifier(node.left) && !isLocalName(node.left)) { + if (isAssignmentOperator(node.operatorToken.kind) && isIdentifier(node.left) && (!isGeneratedIdentifier(node.left) || isFileLevelReservedGeneratedIdentifier(node.left)) && !isLocalName(node.left)) { const exportedNames = getExports(node.left); if (exportedNames) { let expression = node; @@ -105805,6 +107506,15 @@ ${lanes.join("\n")} return arrayFrom(bindingsSet); } } + } else if (isFileLevelReservedGeneratedIdentifier(name)) { + const exportSpecifiers = currentModuleInfo == null ? void 0 : currentModuleInfo.exportSpecifiers.get(name); + if (exportSpecifiers) { + const exportedNames = []; + for (const exportSpecifier of exportSpecifiers) { + exportedNames.push(exportSpecifier.name); + } + return exportedNames; + } } } } @@ -105838,10 +107548,10 @@ ${lanes.join("\n")} context.onSubstituteNode = onSubstituteNode; context.onEmitNode = onEmitNode; context.enableSubstitution(80 /* Identifier */); - context.enableSubstitution(303 /* ShorthandPropertyAssignment */); - context.enableSubstitution(225 /* BinaryExpression */); - context.enableSubstitution(235 /* MetaProperty */); - context.enableEmitNotification(311 /* SourceFile */); + context.enableSubstitution(304 /* ShorthandPropertyAssignment */); + context.enableSubstitution(226 /* BinaryExpression */); + context.enableSubstitution(236 /* MetaProperty */); + context.enableEmitNotification(312 /* SourceFile */); const moduleInfoMap = []; const exportFunctionsMap = []; const noSubstitutionMap = []; @@ -105861,7 +107571,7 @@ ${lanes.join("\n")} const id = getOriginalNodeId(node); currentSourceFile = node; enclosingBlockScopedContainer = node; - moduleInfo = moduleInfoMap[id] = collectExternalModuleInfo(context, node, resolver, compilerOptions); + moduleInfo = moduleInfoMap[id] = collectExternalModuleInfo(context, node); exportFunction = factory2.createUniqueName("exports"); exportFunctionsMap[id] = exportFunction; contextObject = contextObjectMap[id] = factory2.createUniqueName("context"); @@ -106028,7 +107738,7 @@ ${lanes.join("\n")} if (!moduleInfo.exportedNames && moduleInfo.exportSpecifiers.size === 0) { let hasExportDeclarationWithExportClause = false; for (const externalImport of moduleInfo.externalImports) { - if (externalImport.kind === 277 /* ExportDeclaration */ && externalImport.exportClause) { + if (externalImport.kind === 278 /* ExportDeclaration */ && externalImport.exportClause) { hasExportDeclarationWithExportClause = true; break; } @@ -106176,11 +107886,11 @@ ${lanes.join("\n")} for (const entry of group2.externalImports) { const importVariableName = getLocalNameForExternalImport(factory2, entry, currentSourceFile); switch (entry.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: if (!entry.importClause) { break; } - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: Debug.assert(importVariableName !== void 0); statements.push( factory2.createExpressionStatement( @@ -106203,7 +107913,7 @@ ${lanes.join("\n")} ); } break; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: Debug.assert(importVariableName !== void 0); if (entry.exportClause) { if (isNamedExports(entry.exportClause)) { @@ -106298,13 +108008,13 @@ ${lanes.join("\n")} } function topLevelVisitor(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return visitImportDeclaration(node); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return visitImportEqualsDeclaration(node); - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return visitExportDeclaration(node); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return visitExportAssignment(node); default: return topLevelNestedVisitor(node); @@ -106401,18 +108111,43 @@ ${lanes.join("\n")} if (!shouldHoistVariableDeclarationList(node.declarationList)) { return visitNode(node, visitor, isStatement); } - let expressions; - const isExportedDeclaration = hasSyntacticModifier(node, 1 /* Export */); - for (const variable of node.declarationList.declarations) { - if (variable.initializer) { - expressions = append(expressions, transformInitializedVariable(variable, isExportedDeclaration)); - } else { - hoistBindingElement(variable); - } - } let statements; - if (expressions) { - statements = append(statements, setTextRange(factory2.createExpressionStatement(factory2.inlineExpressions(expressions)), node)); + if (isVarUsing(node.declarationList) || isVarAwaitUsing(node.declarationList)) { + const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifierLike); + const declarations = []; + for (const variable of node.declarationList.declarations) { + declarations.push(factory2.updateVariableDeclaration( + variable, + factory2.getGeneratedNameForNode(variable.name), + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + transformInitializedVariable( + variable, + /*isExportedDeclaration*/ + false + ) + )); + } + const declarationList = factory2.updateVariableDeclarationList( + node.declarationList, + declarations + ); + statements = append(statements, factory2.updateVariableStatement(node, modifiers, declarationList)); + } else { + let expressions; + const isExportedDeclaration = hasSyntacticModifier(node, 1 /* Export */); + for (const variable of node.declarationList.declarations) { + if (variable.initializer) { + expressions = append(expressions, transformInitializedVariable(variable, isExportedDeclaration)); + } else { + hoistBindingElement(variable); + } + } + if (expressions) { + statements = append(statements, setTextRange(factory2.createExpressionStatement(factory2.inlineExpressions(expressions)), node)); + } } statements = appendExportsOfVariableStatement( statements, @@ -106434,7 +108169,7 @@ ${lanes.join("\n")} } } function shouldHoistVariableDeclarationList(node) { - return (getEmitFlags(node) & 4194304 /* NoHoisting */) === 0 && (enclosingBlockScopedContainer.kind === 311 /* SourceFile */ || (getOriginalNode(node).flags & 3 /* BlockScoped */) === 0); + return (getEmitFlags(node) & 4194304 /* NoHoisting */) === 0 && (enclosingBlockScopedContainer.kind === 312 /* SourceFile */ || (getOriginalNode(node).flags & 7 /* BlockScoped */) === 0); } function transformInitializedVariable(node, isExportedDeclaration) { const createAssignment = isExportedDeclaration ? createExportedVariableAssignment : createNonExportedVariableAssignment; @@ -106484,10 +108219,10 @@ ${lanes.join("\n")} const namedBindings = importClause.namedBindings; if (namedBindings) { switch (namedBindings.kind) { - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: statements = appendExportsOfDeclaration(statements, namedBindings); break; - case 274 /* NamedImports */: + case 275 /* NamedImports */: for (const importBinding of namedBindings.elements) { statements = appendExportsOfDeclaration(statements, importBinding); } @@ -106553,7 +108288,7 @@ ${lanes.join("\n")} return statements; } const name = factory2.getDeclarationName(decl); - const exportSpecifiers = moduleInfo.exportSpecifiers.get(idText(name)); + const exportSpecifiers = moduleInfo.exportSpecifiers.get(name); if (exportSpecifiers) { for (const exportSpecifier of exportSpecifiers) { if (exportSpecifier.name.escapedText !== excludeName) { @@ -106587,45 +108322,45 @@ ${lanes.join("\n")} } function topLevelNestedVisitor(node) { switch (node.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return visitVariableStatement(node); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return visitFunctionDeclaration(node); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return visitClassDeclaration(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement( node, /*isTopLevel*/ true ); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return visitForInStatement(node); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return visitForOfStatement(node); - case 245 /* DoStatement */: + case 246 /* DoStatement */: return visitDoStatement(node); - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: return visitWhileStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return visitLabeledStatement(node); - case 253 /* WithStatement */: + case 254 /* WithStatement */: return visitWithStatement(node); - case 244 /* IfStatement */: + case 245 /* IfStatement */: return visitIfStatement(node); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return visitSwitchStatement(node); - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: return visitCaseBlock(node); - case 295 /* CaseClause */: + case 296 /* CaseClause */: return visitCaseClause(node); - case 296 /* DefaultClause */: + case 297 /* DefaultClause */: return visitDefaultClause(node); - case 257 /* TryStatement */: + case 258 /* TryStatement */: return visitTryStatement(node); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return visitCatchClause(node); - case 240 /* Block */: + case 241 /* Block */: return visitBlock(node); default: return visitor(node); @@ -106779,30 +108514,30 @@ ${lanes.join("\n")} return node; } switch (node.kind) { - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement( node, /*isTopLevel*/ false ); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return visitExpressionStatement(node); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression(node, valueIsDiscarded); - case 359 /* PartiallyEmittedExpression */: + case 360 /* PartiallyEmittedExpression */: return visitPartiallyEmittedExpression(node, valueIsDiscarded); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: if (isDestructuringAssignment(node)) { return visitDestructuringAssignment(node, valueIsDiscarded); } break; - case 212 /* CallExpression */: + case 213 /* CallExpression */: if (isImportCall(node)) { return visitImportCallExpression(node); } break; - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return visitPrefixOrPostfixUnaryExpression(node, valueIsDiscarded); } return visitEachChild(node, visitor, context); @@ -106875,7 +108610,7 @@ ${lanes.join("\n")} return hasExportedReferenceInDestructuringTarget(node.initializer); } else if (isIdentifier(node)) { const container = resolver.getReferencedExportContainer(node); - return container !== void 0 && container.kind === 311 /* SourceFile */; + return container !== void 0 && container.kind === 312 /* SourceFile */; } else { return false; } @@ -106919,7 +108654,7 @@ ${lanes.join("\n")} return node; } function onEmitNode(hint, node, emitCallback) { - if (node.kind === 311 /* SourceFile */) { + if (node.kind === 312 /* SourceFile */) { const id = getOriginalNodeId(node); currentSourceFile = node; moduleInfo = moduleInfoMap[id]; @@ -106953,7 +108688,7 @@ ${lanes.join("\n")} } function substituteUnspecified(node) { switch (node.kind) { - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return substituteShorthandPropertyAssignment(node); } return node; @@ -106997,9 +108732,9 @@ ${lanes.join("\n")} switch (node.kind) { case 80 /* Identifier */: return substituteExpressionIdentifier(node); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return substituteBinaryExpression(node); - case 235 /* MetaProperty */: + case 236 /* MetaProperty */: return substituteMetaProperty(node); } return node; @@ -107040,7 +108775,7 @@ ${lanes.join("\n")} return node; } function substituteBinaryExpression(node) { - if (isAssignmentOperator(node.operatorToken.kind) && isIdentifier(node.left) && !isGeneratedIdentifier(node.left) && !isLocalName(node.left)) { + if (isAssignmentOperator(node.operatorToken.kind) && isIdentifier(node.left) && (!isGeneratedIdentifier(node.left) || isFileLevelReservedGeneratedIdentifier(node.left)) && !isLocalName(node.left)) { const exportedNames = getExports(node.left); if (exportedNames) { let expression = node; @@ -107067,10 +108802,19 @@ ${lanes.join("\n")} /*prefixLocals*/ false ); - if (exportContainer && exportContainer.kind === 311 /* SourceFile */) { + if (exportContainer && exportContainer.kind === 312 /* SourceFile */) { exportedNames = append(exportedNames, factory2.getDeclarationName(valueDeclaration)); } exportedNames = addRange(exportedNames, moduleInfo == null ? void 0 : moduleInfo.exportedBindings[getOriginalNodeId(valueDeclaration)]); + } else if (isGeneratedIdentifier(name) && isFileLevelReservedGeneratedIdentifier(name)) { + const exportSpecifiers = moduleInfo == null ? void 0 : moduleInfo.exportSpecifiers.get(name); + if (exportSpecifiers) { + const exportedNames2 = []; + for (const exportSpecifier of exportSpecifiers) { + exportedNames2.push(exportSpecifier.name); + } + return exportedNames2; + } } return exportedNames; } @@ -107123,7 +108867,7 @@ ${lanes.join("\n")} const previousOnSubstituteNode = context.onSubstituteNode; context.onEmitNode = onEmitNode; context.onSubstituteNode = onSubstituteNode; - context.enableEmitNotification(311 /* SourceFile */); + context.enableEmitNotification(312 /* SourceFile */); context.enableSubstitution(80 /* Identifier */); let helperNameSubstitutions; let currentSourceFile; @@ -107171,11 +108915,11 @@ ${lanes.join("\n")} } function visitor(node) { switch (node.kind) { - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return getEmitModuleKind(compilerOptions) >= 100 /* Node16 */ ? visitImportEqualsDeclaration(node) : void 0; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return visitExportAssignment(node); - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: const exportDecl = node; return visitExportDeclaration(exportDecl); } @@ -107386,8 +109130,8 @@ ${lanes.join("\n")} const cjsOnEmitNode = context.onEmitNode; context.onSubstituteNode = onSubstituteNode; context.onEmitNode = onEmitNode; - context.enableSubstitution(311 /* SourceFile */); - context.enableEmitNotification(311 /* SourceFile */); + context.enableSubstitution(312 /* SourceFile */); + context.enableEmitNotification(312 /* SourceFile */); let currentSourceFile; return transformSourceFileOrBundle; function onSubstituteNode(hint, node) { @@ -107430,7 +109174,7 @@ ${lanes.join("\n")} return result; } function transformSourceFileOrBundle(node) { - return node.kind === 311 /* SourceFile */ ? transformSourceFile(node) : transformBundle(node); + return node.kind === 312 /* SourceFile */ ? transformSourceFile(node) : transformBundle(node); } function transformBundle(node) { return context.factory.createBundle(map(node.sourceFiles, transformSourceFile), node.prepends); @@ -107466,7 +109210,7 @@ ${lanes.join("\n")} function getAccessorNameVisibilityDiagnosticMessage(symbolAccessibilityResult) { if (isStatic(node)) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1; - } else if (node.parent.kind === 262 /* ClassDeclaration */) { + } else if (node.parent.kind === 263 /* ClassDeclaration */) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1; } else { return symbolAccessibilityResult.errorModuleName ? Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1; @@ -107483,7 +109227,7 @@ ${lanes.join("\n")} function getMethodNameVisibilityDiagnosticMessage(symbolAccessibilityResult) { if (isStatic(node)) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1; - } else if (node.parent.kind === 262 /* ClassDeclaration */) { + } else if (node.parent.kind === 263 /* ClassDeclaration */) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1; } else { return symbolAccessibilityResult.errorModuleName ? Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1; @@ -107514,12 +109258,12 @@ ${lanes.join("\n")} return Debug.assertNever(node, `Attempted to set a declaration diagnostic context for unhandled node kind: ${Debug.formatSyntaxKind(node.kind)}`); } function getVariableDeclarationTypeVisibilityDiagnosticMessage(symbolAccessibilityResult) { - if (node.kind === 259 /* VariableDeclaration */ || node.kind === 207 /* BindingElement */) { + if (node.kind === 260 /* VariableDeclaration */ || node.kind === 208 /* BindingElement */) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Exported_variable_0_has_or_is_using_private_name_1; - } else if (node.kind === 171 /* PropertyDeclaration */ || node.kind === 210 /* PropertyAccessExpression */ || node.kind === 211 /* ElementAccessExpression */ || node.kind === 225 /* BinaryExpression */ || node.kind === 170 /* PropertySignature */ || node.kind === 168 /* Parameter */ && hasSyntacticModifier(node.parent, 8 /* Private */)) { + } else if (node.kind === 172 /* PropertyDeclaration */ || node.kind === 211 /* PropertyAccessExpression */ || node.kind === 212 /* ElementAccessExpression */ || node.kind === 226 /* BinaryExpression */ || node.kind === 171 /* PropertySignature */ || node.kind === 169 /* Parameter */ && hasSyntacticModifier(node.parent, 8 /* Private */)) { if (isStatic(node)) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1; - } else if (node.parent.kind === 262 /* ClassDeclaration */ || node.kind === 168 /* Parameter */) { + } else if (node.parent.kind === 263 /* ClassDeclaration */ || node.kind === 169 /* Parameter */) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1; } else { return symbolAccessibilityResult.errorModuleName ? Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1; @@ -107536,7 +109280,7 @@ ${lanes.join("\n")} } function getAccessorDeclarationTypeVisibilityError(symbolAccessibilityResult) { let diagnosticMessage; - if (node.kind === 177 /* SetAccessor */) { + if (node.kind === 178 /* SetAccessor */) { if (isStatic(node)) { diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1; } else { @@ -107558,26 +109302,26 @@ ${lanes.join("\n")} function getReturnTypeVisibilityError(symbolAccessibilityResult) { let diagnosticMessage; switch (node.kind) { - case 179 /* ConstructSignature */: + case 180 /* ConstructSignature */: diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0; break; - case 178 /* CallSignature */: + case 179 /* CallSignature */: diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0; break; - case 180 /* IndexSignature */: + case 181 /* IndexSignature */: diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0; break; - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: if (isStatic(node)) { diagnosticMessage = symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0; - } else if (node.parent.kind === 262 /* ClassDeclaration */) { + } else if (node.parent.kind === 263 /* ClassDeclaration */) { diagnosticMessage = symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0; } else { diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0; } break; - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: diagnosticMessage = symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0; break; default: @@ -107598,29 +109342,29 @@ ${lanes.join("\n")} } function getParameterDeclarationTypeVisibilityDiagnosticMessage(symbolAccessibilityResult) { switch (node.parent.kind) { - case 175 /* Constructor */: + case 176 /* Constructor */: return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1; - case 179 /* ConstructSignature */: - case 184 /* ConstructorType */: + case 180 /* ConstructSignature */: + case 185 /* ConstructorType */: return symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1; - case 178 /* CallSignature */: + case 179 /* CallSignature */: return symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1; - case 180 /* IndexSignature */: + case 181 /* IndexSignature */: return symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1; - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: if (isStatic(node.parent)) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1; - } else if (node.parent.parent.kind === 262 /* ClassDeclaration */) { + } else if (node.parent.parent.kind === 263 /* ClassDeclaration */) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1; } else { return symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1; } - case 261 /* FunctionDeclaration */: - case 183 /* FunctionType */: + case 262 /* FunctionDeclaration */: + case 184 /* FunctionType */: return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1; - case 177 /* SetAccessor */: - case 176 /* GetAccessor */: + case 178 /* SetAccessor */: + case 177 /* GetAccessor */: return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1; default: return Debug.fail(`Unknown parent for parameter: ${Debug.formatSyntaxKind(node.parent.kind)}`); @@ -107629,40 +109373,40 @@ ${lanes.join("\n")} function getTypeParameterConstraintVisibilityError() { let diagnosticMessage; switch (node.parent.kind) { - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1; break; - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1; break; - case 199 /* MappedType */: + case 200 /* MappedType */: diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1; break; - case 184 /* ConstructorType */: - case 179 /* ConstructSignature */: + case 185 /* ConstructorType */: + case 180 /* ConstructSignature */: diagnosticMessage = Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1; break; - case 178 /* CallSignature */: + case 179 /* CallSignature */: diagnosticMessage = Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1; break; - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: if (isStatic(node.parent)) { diagnosticMessage = Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1; - } else if (node.parent.parent.kind === 262 /* ClassDeclaration */) { + } else if (node.parent.parent.kind === 263 /* ClassDeclaration */) { diagnosticMessage = Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1; } else { diagnosticMessage = Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1; } break; - case 183 /* FunctionType */: - case 261 /* FunctionDeclaration */: + case 184 /* FunctionType */: + case 262 /* FunctionDeclaration */: diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1; break; - case 194 /* InferType */: + case 195 /* InferType */: diagnosticMessage = Diagnostics.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1; break; - case 264 /* TypeAliasDeclaration */: + case 265 /* TypeAliasDeclaration */: diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1; break; default: @@ -107730,7 +109474,7 @@ ${lanes.join("\n")} } function isInternalDeclaration(node, currentSourceFile) { const parseTreeNode = getParseTreeNode(node); - if (parseTreeNode && parseTreeNode.kind === 168 /* Parameter */) { + if (parseTreeNode && parseTreeNode.kind === 169 /* Parameter */) { const paramIdx = parseTreeNode.parent.parameters.indexOf(parseTreeNode); const previousSibling = paramIdx > 0 ? parseTreeNode.parent.parameters[paramIdx - 1] : void 0; const text = currentSourceFile.text; @@ -107961,10 +109705,10 @@ ${lanes.join("\n")} return result; } function transformRoot(node) { - if (node.kind === 311 /* SourceFile */ && node.isDeclarationFile) { + if (node.kind === 312 /* SourceFile */ && node.isDeclarationFile) { return node; } - if (node.kind === 312 /* Bundle */) { + if (node.kind === 313 /* Bundle */) { isBundledEmit = true; refs = /* @__PURE__ */ new Map(); libs2 = /* @__PURE__ */ new Map(); @@ -108031,7 +109775,7 @@ ${lanes.join("\n")} ); } ), mapDefined(node.prepends, (prepend) => { - if (prepend.kind === 314 /* InputFiles */) { + if (prepend.kind === 315 /* InputFiles */) { const sourceFile = createUnparsedSourceFile(prepend, "dts", stripInternal); hasNoDefaultLib = hasNoDefaultLib || !!sourceFile.hasNoDefaultLib; collectReferences(sourceFile, refs); @@ -108199,14 +109943,14 @@ ${lanes.join("\n")} if (name.kind === 80 /* Identifier */) { return name; } else { - if (name.kind === 206 /* ArrayBindingPattern */) { + if (name.kind === 207 /* ArrayBindingPattern */) { return factory2.updateArrayBindingPattern(name, visitNodes2(name.elements, visitBindingElement, isArrayBindingElement)); } else { return factory2.updateObjectBindingPattern(name, visitNodes2(name.elements, visitBindingElement, isBindingElement)); } } function visitBindingElement(elem) { - if (elem.kind === 231 /* OmittedExpression */) { + if (elem.kind === 232 /* OmittedExpression */) { return elem; } if (elem.propertyName && isIdentifier(elem.propertyName) && isIdentifier(elem.name) && !elem.symbol.isReferenced && !isIdentifierANonContextualKeyword(elem.propertyName)) { @@ -108270,14 +110014,14 @@ ${lanes.join("\n")} if (shouldPrintWithInitializer(node)) { return; } - const shouldUseResolverType = node.kind === 168 /* Parameter */ && (resolver.isRequiredInitializedParameter(node) || resolver.isOptionalUninitializedParameterProperty(node)); + const shouldUseResolverType = node.kind === 169 /* Parameter */ && (resolver.isRequiredInitializedParameter(node) || resolver.isOptionalUninitializedParameterProperty(node)); if (type && !shouldUseResolverType) { return visitNode(type, visitDeclarationSubtree, isTypeNode); } if (!getParseTreeNode(node)) { return type ? visitNode(type, visitDeclarationSubtree, isTypeNode) : factory2.createKeywordTypeNode(133 /* AnyKeyword */); } - if (node.kind === 177 /* SetAccessor */) { + if (node.kind === 178 /* SetAccessor */) { return factory2.createKeywordTypeNode(133 /* AnyKeyword */); } errorNameNode = node.name; @@ -108286,10 +110030,10 @@ ${lanes.join("\n")} oldDiag = getSymbolAccessibilityDiagnostic; getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(node); } - if (node.kind === 259 /* VariableDeclaration */ || node.kind === 207 /* BindingElement */) { + if (node.kind === 260 /* VariableDeclaration */ || node.kind === 208 /* BindingElement */) { return cleanup(resolver.createTypeOfDeclaration(node, enclosingDeclaration, declarationEmitNodeBuilderFlags, symbolTracker)); } - if (node.kind === 168 /* Parameter */ || node.kind === 171 /* PropertyDeclaration */ || node.kind === 170 /* PropertySignature */) { + if (node.kind === 169 /* Parameter */ || node.kind === 172 /* PropertyDeclaration */ || node.kind === 171 /* PropertySignature */) { if (isPropertySignature(node) || !node.initializer) return cleanup(resolver.createTypeOfDeclaration(node, enclosingDeclaration, declarationEmitNodeBuilderFlags, symbolTracker, shouldUseResolverType)); return cleanup(resolver.createTypeOfDeclaration(node, enclosingDeclaration, declarationEmitNodeBuilderFlags, symbolTracker, shouldUseResolverType) || resolver.createTypeOfExpression(node.initializer, enclosingDeclaration, declarationEmitNodeBuilderFlags, symbolTracker)); @@ -108306,21 +110050,21 @@ ${lanes.join("\n")} function isDeclarationAndNotVisible(node) { node = getParseTreeNode(node); switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 266 /* ModuleDeclaration */: - case 263 /* InterfaceDeclaration */: - case 262 /* ClassDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 265 /* EnumDeclaration */: + case 262 /* FunctionDeclaration */: + case 267 /* ModuleDeclaration */: + case 264 /* InterfaceDeclaration */: + case 263 /* ClassDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 266 /* EnumDeclaration */: return !resolver.isDeclarationVisible(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return !getBindingNameVisible(node); - case 270 /* ImportEqualsDeclaration */: - case 271 /* ImportDeclaration */: - case 277 /* ExportDeclaration */: - case 276 /* ExportAssignment */: + case 271 /* ImportEqualsDeclaration */: + case 272 /* ImportDeclaration */: + case 278 /* ExportDeclaration */: + case 277 /* ExportAssignment */: return false; - case 174 /* ClassStaticBlockDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: return true; } return false; @@ -108408,7 +110152,7 @@ ${lanes.join("\n")} function rewriteModuleSpecifier(parent2, input) { if (!input) return void 0; - resultHasExternalModuleIndicator = resultHasExternalModuleIndicator || parent2.kind !== 266 /* ModuleDeclaration */ && parent2.kind !== 204 /* ImportType */; + resultHasExternalModuleIndicator = resultHasExternalModuleIndicator || parent2.kind !== 267 /* ModuleDeclaration */ && parent2.kind !== 205 /* ImportType */; if (isStringLiteralLike(input)) { if (isBundledEmit) { const newName = getExternalModuleNameFromDeclaration(context.getEmitHost(), resolver, parent2); @@ -108427,7 +110171,7 @@ ${lanes.join("\n")} function transformImportEqualsDeclaration(decl) { if (!resolver.isDeclarationVisible(decl)) return; - if (decl.moduleReference.kind === 282 /* ExternalModuleReference */) { + if (decl.moduleReference.kind === 283 /* ExternalModuleReference */) { const specifier = getExternalModuleImportEqualsDeclarationExpression(decl); return factory2.updateImportEqualsDeclaration( decl, @@ -108464,7 +110208,7 @@ ${lanes.join("\n")} void 0 ), rewriteModuleSpecifier(decl, decl.moduleSpecifier), getResolutionModeOverrideForClauseInNightly(decl.assertClause)); } - if (decl.importClause.namedBindings.kind === 273 /* NamespaceImport */) { + if (decl.importClause.namedBindings.kind === 274 /* NamespaceImport */) { const namedBindings = resolver.isDeclarationVisible(decl.importClause.namedBindings) ? decl.importClause.namedBindings : ( /*namedBindings*/ void 0 @@ -108567,7 +110311,7 @@ ${lanes.join("\n")} const oldDiag = getSymbolAccessibilityDiagnostic; const canProduceDiagnostic = canProduceDiagnostics(input); const oldWithinObjectLiteralType = suppressNewDiagnosticContexts; - let shouldEnterSuppressNewDiagnosticsContextContext = (input.kind === 186 /* TypeLiteral */ || input.kind === 199 /* MappedType */) && input.parent.kind !== 264 /* TypeAliasDeclaration */; + let shouldEnterSuppressNewDiagnosticsContextContext = (input.kind === 187 /* TypeLiteral */ || input.kind === 200 /* MappedType */) && input.parent.kind !== 265 /* TypeAliasDeclaration */; if (isMethodDeclaration(input) || isMethodSignature(input)) { if (hasEffectiveModifier(input, 8 /* Private */)) { if (input.symbol && input.symbol.declarations && input.symbol.declarations[0] !== input) @@ -108595,26 +110339,26 @@ ${lanes.join("\n")} } if (isProcessedComponent(input)) { switch (input.kind) { - case 232 /* ExpressionWithTypeArguments */: { + case 233 /* ExpressionWithTypeArguments */: { if (isEntityName(input.expression) || isEntityNameExpression(input.expression)) { checkEntityNameVisibility(input.expression, enclosingDeclaration); } const node = visitEachChild(input, visitDeclarationSubtree, context); return cleanup(factory2.updateExpressionWithTypeArguments(node, node.expression, node.typeArguments)); } - case 182 /* TypeReference */: { + case 183 /* TypeReference */: { checkEntityNameVisibility(input.typeName, enclosingDeclaration); const node = visitEachChild(input, visitDeclarationSubtree, context); return cleanup(factory2.updateTypeReferenceNode(node, node.typeName, node.typeArguments)); } - case 179 /* ConstructSignature */: + case 180 /* ConstructSignature */: return cleanup(factory2.updateConstructSignature( input, ensureTypeParams(input, input.typeParameters), updateParamsList(input, input.parameters), ensureType(input, input.type) )); - case 175 /* Constructor */: { + case 176 /* Constructor */: { const ctor = factory2.createConstructorDeclaration( /*modifiers*/ ensureModifiers(input), @@ -108624,7 +110368,7 @@ ${lanes.join("\n")} ); return cleanup(ctor); } - case 173 /* MethodDeclaration */: { + case 174 /* MethodDeclaration */: { if (isPrivateIdentifier(input.name)) { return cleanup( /*returnValue*/ @@ -108645,7 +110389,7 @@ ${lanes.join("\n")} ); return cleanup(sig); } - case 176 /* GetAccessor */: { + case 177 /* GetAccessor */: { if (isPrivateIdentifier(input.name)) { return cleanup( /*returnValue*/ @@ -108663,7 +110407,7 @@ ${lanes.join("\n")} void 0 )); } - case 177 /* SetAccessor */: { + case 178 /* SetAccessor */: { if (isPrivateIdentifier(input.name)) { return cleanup( /*returnValue*/ @@ -108679,7 +110423,7 @@ ${lanes.join("\n")} void 0 )); } - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: if (isPrivateIdentifier(input.name)) { return cleanup( /*returnValue*/ @@ -108694,7 +110438,7 @@ ${lanes.join("\n")} ensureType(input, input.type), ensureNoInitializer(input) )); - case 170 /* PropertySignature */: + case 171 /* PropertySignature */: if (isPrivateIdentifier(input.name)) { return cleanup( /*returnValue*/ @@ -108708,7 +110452,7 @@ ${lanes.join("\n")} input.questionToken, ensureType(input, input.type) )); - case 172 /* MethodSignature */: { + case 173 /* MethodSignature */: { if (isPrivateIdentifier(input.name)) { return cleanup( /*returnValue*/ @@ -108725,7 +110469,7 @@ ${lanes.join("\n")} ensureType(input, input.type) )); } - case 178 /* CallSignature */: { + case 179 /* CallSignature */: { return cleanup(factory2.updateCallSignature( input, ensureTypeParams(input, input.typeParameters), @@ -108733,7 +110477,7 @@ ${lanes.join("\n")} ensureType(input, input.type) )); } - case 180 /* IndexSignature */: { + case 181 /* IndexSignature */: { return cleanup(factory2.updateIndexSignature( input, ensureModifiers(input), @@ -108741,7 +110485,7 @@ ${lanes.join("\n")} visitNode(input.type, visitDeclarationSubtree, isTypeNode) || factory2.createKeywordTypeNode(133 /* AnyKeyword */) )); } - case 259 /* VariableDeclaration */: { + case 260 /* VariableDeclaration */: { if (isBindingPattern(input.name)) { return recreateBindingPattern(input.name); } @@ -108756,7 +110500,7 @@ ${lanes.join("\n")} ensureNoInitializer(input) )); } - case 167 /* TypeParameter */: { + case 168 /* TypeParameter */: { if (isPrivateMethodTypeParameter(input) && (input.default || input.constraint)) { return cleanup(factory2.updateTypeParameterDeclaration( input, @@ -108770,7 +110514,7 @@ ${lanes.join("\n")} } return cleanup(visitEachChild(input, visitDeclarationSubtree, context)); } - case 193 /* ConditionalType */: { + case 194 /* ConditionalType */: { const checkType = visitNode(input.checkType, visitDeclarationSubtree, isTypeNode); const extendsType = visitNode(input.extendsType, visitDeclarationSubtree, isTypeNode); const oldEnclosingDecl = enclosingDeclaration; @@ -108784,13 +110528,13 @@ ${lanes.join("\n")} Debug.assert(falseType); return cleanup(factory2.updateConditionalTypeNode(input, checkType, extendsType, trueType, falseType)); } - case 183 /* FunctionType */: { + case 184 /* FunctionType */: { return cleanup(factory2.updateFunctionTypeNode(input, visitNodes2(input.typeParameters, visitDeclarationSubtree, isTypeParameterDeclaration), updateParamsList(input, input.parameters), Debug.checkDefined(visitNode(input.type, visitDeclarationSubtree, isTypeNode)))); } - case 184 /* ConstructorType */: { + case 185 /* ConstructorType */: { return cleanup(factory2.updateConstructorTypeNode(input, ensureModifiers(input), visitNodes2(input.typeParameters, visitDeclarationSubtree, isTypeParameterDeclaration), updateParamsList(input, input.parameters), Debug.checkDefined(visitNode(input.type, visitDeclarationSubtree, isTypeNode)))); } - case 204 /* ImportType */: { + case 205 /* ImportType */: { if (!isLiteralImportTypeNode(input)) return cleanup(input); return cleanup(factory2.updateImportTypeNode( @@ -108830,7 +110574,7 @@ ${lanes.join("\n")} } } function isPrivateMethodTypeParameter(node) { - return node.parent.kind === 173 /* MethodDeclaration */ && hasEffectiveModifier(node.parent, 8 /* Private */); + return node.parent.kind === 174 /* MethodDeclaration */ && hasEffectiveModifier(node.parent, 8 /* Private */); } function visitDeclarationStatements(input) { if (!isPreservedDeclarationStatement(input)) { @@ -108839,7 +110583,7 @@ ${lanes.join("\n")} if (shouldStripInternal(input)) return; switch (input.kind) { - case 277 /* ExportDeclaration */: { + case 278 /* ExportDeclaration */: { if (isSourceFile(input.parent)) { resultHasExternalModuleIndicator = true; } @@ -108853,7 +110597,7 @@ ${lanes.join("\n")} getResolutionModeOverrideForClause(input.assertClause) ? input.assertClause : void 0 ); } - case 276 /* ExportAssignment */: { + case 277 /* ExportAssignment */: { if (isSourceFile(input.parent)) { resultHasExternalModuleIndicator = true; } @@ -108894,6 +110638,21 @@ ${lanes.join("\n")} const modifiers = factory2.createModifiersFromModifierFlags(getEffectiveModifierFlags(statement) & (258047 /* All */ ^ 1 /* Export */)); return factory2.updateModifiers(statement, modifiers); } + function updateModuleDeclarationAndKeyword(node, modifiers, name, body) { + const updated = factory2.updateModuleDeclaration(node, modifiers, name, body); + if (isAmbientModule(updated) || updated.flags & 32 /* Namespace */) { + return updated; + } + const fixed = factory2.createModuleDeclaration( + updated.modifiers, + updated.name, + updated.body, + updated.flags | 32 /* Namespace */ + ); + setOriginalNode(fixed, updated); + setTextRange(fixed, updated); + return fixed; + } function transformTopLevelDeclaration(input) { if (lateMarkedStatements) { while (orderedRemoveItem(lateMarkedStatements, input)) @@ -108902,10 +110661,10 @@ ${lanes.join("\n")} if (shouldStripInternal(input)) return; switch (input.kind) { - case 270 /* ImportEqualsDeclaration */: { + case 271 /* ImportEqualsDeclaration */: { return transformImportEqualsDeclaration(input); } - case 271 /* ImportDeclaration */: { + case 272 /* ImportDeclaration */: { return transformImportDeclaration(input); } } @@ -108925,7 +110684,7 @@ ${lanes.join("\n")} } const previousNeedsDeclare = needsDeclare; switch (input.kind) { - case 264 /* TypeAliasDeclaration */: { + case 265 /* TypeAliasDeclaration */: { needsDeclare = false; const clean2 = cleanup(factory2.updateTypeAliasDeclaration( input, @@ -108937,7 +110696,7 @@ ${lanes.join("\n")} needsDeclare = previousNeedsDeclare; return clean2; } - case 263 /* InterfaceDeclaration */: { + case 264 /* InterfaceDeclaration */: { return cleanup(factory2.updateInterfaceDeclaration( input, ensureModifiers(input), @@ -108947,7 +110706,7 @@ ${lanes.join("\n")} visitNodes2(input.members, visitDeclarationSubtree, isTypeElement) )); } - case 261 /* FunctionDeclaration */: { + case 262 /* FunctionDeclaration */: { const clean2 = cleanup(factory2.updateFunctionDeclaration( input, ensureModifiers(input), @@ -108967,7 +110726,7 @@ ${lanes.join("\n")} void 0, clean2.name || factory2.createIdentifier("_default"), factory2.createModuleBlock([]), - 16 /* Namespace */ + 32 /* Namespace */ ); setParent(fakespace, enclosingDeclaration); fakespace.locals = createSymbolTable(props); @@ -109017,7 +110776,7 @@ ${lanes.join("\n")} })) )); } - const namespaceDecl = factory2.createModuleDeclaration(ensureModifiers(input), input.name, factory2.createModuleBlock(declarations), 16 /* Namespace */); + const namespaceDecl = factory2.createModuleDeclaration(ensureModifiers(input), input.name, factory2.createModuleBlock(declarations), 32 /* Namespace */); if (!hasEffectiveModifier(clean2, 1024 /* Default */)) { return [clean2, namespaceDecl]; } @@ -109056,17 +110815,17 @@ ${lanes.join("\n")} return clean2; } } - case 266 /* ModuleDeclaration */: { + case 267 /* ModuleDeclaration */: { needsDeclare = false; const inner = input.body; - if (inner && inner.kind === 267 /* ModuleBlock */) { + if (inner && inner.kind === 268 /* ModuleBlock */) { const oldNeedsScopeFix = needsScopeFixMarker; const oldHasScopeFix = resultHasScopeMarker; resultHasScopeMarker = false; needsScopeFixMarker = false; const statements = visitNodes2(inner.statements, visitDeclarationStatements, isStatement); let lateStatements = transformAndReplaceLatePaintedStatements(statements); - if (input.flags & 16777216 /* Ambient */) { + if (input.flags & 33554432 /* Ambient */) { needsScopeFixMarker = false; } if (!isGlobalScopeAugmentation(input) && !hasScopeMarker2(lateStatements) && !resultHasScopeMarker) { @@ -109081,7 +110840,7 @@ ${lanes.join("\n")} needsScopeFixMarker = oldNeedsScopeFix; resultHasScopeMarker = oldHasScopeFix; const mods = ensureModifiers(input); - return cleanup(factory2.updateModuleDeclaration( + return cleanup(updateModuleDeclarationAndKeyword( input, mods, isExternalModuleAugmentation(input) ? rewriteModuleSpecifier(input, input.name) : input.name, @@ -109095,7 +110854,7 @@ ${lanes.join("\n")} const id = getOriginalNodeId(inner); const body = lateStatementReplacementMap.get(id); lateStatementReplacementMap.delete(id); - return cleanup(factory2.updateModuleDeclaration( + return cleanup(updateModuleDeclarationAndKeyword( input, mods, input.name, @@ -109103,7 +110862,7 @@ ${lanes.join("\n")} )); } } - case 262 /* ClassDeclaration */: { + case 263 /* ClassDeclaration */: { errorNameNode = input.name; errorFallbackNode = input; const modifiers = factory2.createNodeArray(ensureModifiers(input)); @@ -109219,10 +110978,10 @@ ${lanes.join("\n")} )); } } - case 242 /* VariableStatement */: { + case 243 /* VariableStatement */: { return cleanup(transformVariableStatement(input)); } - case 265 /* EnumDeclaration */: { + case 266 /* EnumDeclaration */: { return cleanup(factory2.updateEnumDeclaration(input, factory2.createNodeArray(ensureModifiers(input)), input.name, factory2.createNodeArray(mapDefined(input.members, (m) => { if (shouldStripInternal(m)) return; @@ -109239,7 +110998,7 @@ ${lanes.join("\n")} if (canProdiceDiagnostic) { getSymbolAccessibilityDiagnostic = oldDiag; } - if (input.kind === 266 /* ModuleDeclaration */) { + if (input.kind === 267 /* ModuleDeclaration */) { needsDeclare = previousNeedsDeclare; } if (node === input) { @@ -109256,13 +111015,23 @@ ${lanes.join("\n")} const nodes = visitNodes2(input.declarationList.declarations, visitDeclarationSubtree, isVariableDeclaration); if (!length(nodes)) return; - return factory2.updateVariableStatement(input, factory2.createNodeArray(ensureModifiers(input)), factory2.updateVariableDeclarationList(input.declarationList, nodes)); + const modifiers = factory2.createNodeArray(ensureModifiers(input)); + let declList; + if (isVarUsing(input.declarationList) || isVarAwaitUsing(input.declarationList)) { + declList = factory2.createVariableDeclarationList(nodes, 2 /* Const */); + setOriginalNode(declList, input.declarationList); + setTextRange(declList, input.declarationList); + setCommentRange(declList, input.declarationList); + } else { + declList = factory2.updateVariableDeclarationList(input.declarationList, nodes); + } + return factory2.updateVariableStatement(input, modifiers, declList); } function recreateBindingPattern(d) { return flatten(mapDefined(d.elements, (e) => recreateBindingElement(e))); } function recreateBindingElement(e) { - if (e.kind === 231 /* OmittedExpression */) { + if (e.kind === 232 /* OmittedExpression */) { return; } if (e.name) { @@ -109322,7 +111091,7 @@ ${lanes.join("\n")} function ensureModifierFlags(node) { let mask2 = 258047 /* All */ ^ (4 /* Public */ | 512 /* Async */ | 16384 /* Override */); let additions = needsDeclare && !isAlwaysType(node) ? 2 /* Ambient */ : 0 /* None */; - const parentIsFile = node.parent.kind === 311 /* SourceFile */; + const parentIsFile = node.parent.kind === 312 /* SourceFile */; if (!parentIsFile || isBundledEmit && parentIsFile && isExternalModule(node.parent)) { mask2 ^= 2 /* Ambient */; additions = 0 /* None */; @@ -109348,7 +111117,7 @@ ${lanes.join("\n")} } } function isAlwaysType(node) { - if (node.kind === 263 /* InterfaceDeclaration */) { + if (node.kind === 264 /* InterfaceDeclaration */) { return true; } return false; @@ -109368,57 +111137,57 @@ ${lanes.join("\n")} } function getTypeAnnotationFromAccessor(accessor) { if (accessor) { - return accessor.kind === 176 /* GetAccessor */ ? accessor.type : accessor.parameters.length > 0 ? accessor.parameters[0].type : void 0; + return accessor.kind === 177 /* GetAccessor */ ? accessor.type : accessor.parameters.length > 0 ? accessor.parameters[0].type : void 0; } } function canHaveLiteralInitializer(node) { switch (node.kind) { - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: return !hasEffectiveModifier(node, 8 /* Private */); - case 168 /* Parameter */: - case 259 /* VariableDeclaration */: + case 169 /* Parameter */: + case 260 /* VariableDeclaration */: return true; } return false; } function isPreservedDeclarationStatement(node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 266 /* ModuleDeclaration */: - case 270 /* ImportEqualsDeclaration */: - case 263 /* InterfaceDeclaration */: - case 262 /* ClassDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 265 /* EnumDeclaration */: - case 242 /* VariableStatement */: - case 271 /* ImportDeclaration */: - case 277 /* ExportDeclaration */: - case 276 /* ExportAssignment */: + case 262 /* FunctionDeclaration */: + case 267 /* ModuleDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 264 /* InterfaceDeclaration */: + case 263 /* ClassDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 266 /* EnumDeclaration */: + case 243 /* VariableStatement */: + case 272 /* ImportDeclaration */: + case 278 /* ExportDeclaration */: + case 277 /* ExportAssignment */: return true; } return false; } function isProcessedComponent(node) { switch (node.kind) { - case 179 /* ConstructSignature */: - case 175 /* Constructor */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 172 /* MethodSignature */: - case 178 /* CallSignature */: - case 180 /* IndexSignature */: - case 259 /* VariableDeclaration */: - case 167 /* TypeParameter */: - case 232 /* ExpressionWithTypeArguments */: - case 182 /* TypeReference */: - case 193 /* ConditionalType */: - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 204 /* ImportType */: + case 180 /* ConstructSignature */: + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 181 /* IndexSignature */: + case 260 /* VariableDeclaration */: + case 168 /* TypeParameter */: + case 233 /* ExpressionWithTypeArguments */: + case 183 /* TypeReference */: + case 194 /* ConditionalType */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 205 /* ImportType */: return true; } return false; @@ -109467,16 +111236,17 @@ ${lanes.join("\n")} transformers.push(transformTypeScript); if (compilerOptions.experimentalDecorators) { transformers.push(transformLegacyDecorators); - } else if (languageVersion < 99 /* ESNext */ || !useDefineForClassFields) { - transformers.push(transformESDecorators); } - transformers.push(transformClassFields); if (getJSXTransformEnabled(compilerOptions)) { transformers.push(transformJsx); } if (languageVersion < 99 /* ESNext */) { transformers.push(transformESNext); } + if (!compilerOptions.experimentalDecorators && (languageVersion < 99 /* ESNext */ || !useDefineForClassFields)) { + transformers.push(transformESDecorators); + } + transformers.push(transformClassFields); if (languageVersion < 8 /* ES2021 */) { transformers.push(transformES2021); } @@ -109535,7 +111305,7 @@ ${lanes.join("\n")} } function transformNodes(resolver, host, factory2, options, nodes, transformers, allowDtsFiles) { var _a, _b; - const enabledSyntaxKindFeatures = new Array(362 /* Count */); + const enabledSyntaxKindFeatures = new Array(363 /* Count */); let lexicalEnvironmentVariableDeclarations; let lexicalEnvironmentFunctionDeclarations; let lexicalEnvironmentStatements; @@ -109614,7 +111384,7 @@ ${lanes.join("\n")} state = 1 /* Initialized */; const transformed = []; for (const node of nodes) { - (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.Emit, "transformNodes", node.kind === 311 /* SourceFile */ ? { path: node.path } : { kind: node.kind, pos: node.pos, end: node.end }); + (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.Emit, "transformNodes", node.kind === 312 /* SourceFile */ ? { path: node.path } : { kind: node.kind, pos: node.pos, end: node.end }); transformed.push((allowDtsFiles ? transformation : transformRoot)(node)); (_b = tracing) == null ? void 0 : _b.pop(); } @@ -109942,7 +111712,7 @@ ${lanes.join("\n")} } function getOutputPathsFor(sourceFile, host, forceDtsPaths) { const options = host.getCompilerOptions(); - if (sourceFile.kind === 312 /* Bundle */) { + if (sourceFile.kind === 313 /* Bundle */) { return getOutputPathsForBundle(options, forceDtsPaths); } else { const ownOutputFilePath = getOwnEmitOutputFilePath(sourceFile.fileName, host, getOutputExtension(sourceFile.fileName, options)); @@ -110334,8 +112104,8 @@ ${lanes.join("\n")} } function printSourceFileOrBundle(jsFilePath, sourceMapFilePath, transform2, printer, mapOptions) { const sourceFileOrBundle = transform2.transformed[0]; - const bundle = sourceFileOrBundle.kind === 312 /* Bundle */ ? sourceFileOrBundle : void 0; - const sourceFile = sourceFileOrBundle.kind === 311 /* SourceFile */ ? sourceFileOrBundle : void 0; + const bundle = sourceFileOrBundle.kind === 313 /* Bundle */ ? sourceFileOrBundle : void 0; + const sourceFile = sourceFileOrBundle.kind === 312 /* SourceFile */ ? sourceFileOrBundle : void 0; const sourceFiles = bundle ? bundle.sourceFiles : [sourceFile]; let sourceMapGenerator; if (shouldEmitSourceMaps(mapOptions, sourceFileOrBundle)) { @@ -110397,7 +112167,7 @@ ${lanes.join("\n")} writer.clear(); } function shouldEmitSourceMaps(mapOptions, sourceFileOrBundle) { - return (mapOptions.sourceMap || mapOptions.inlineSourceMap) && (sourceFileOrBundle.kind !== 311 /* SourceFile */ || !fileExtensionIs(sourceFileOrBundle.fileName, ".json" /* Json */)); + return (mapOptions.sourceMap || mapOptions.inlineSourceMap) && (sourceFileOrBundle.kind !== 312 /* SourceFile */ || !fileExtensionIs(sourceFileOrBundle.fileName, ".json" /* Json */)); } function getSourceRoot(mapOptions) { const sourceRoot = normalizeSlashes(mapOptions.sourceRoot || ""); @@ -110717,11 +112487,11 @@ ${lanes.join("\n")} break; } switch (node.kind) { - case 311 /* SourceFile */: + case 312 /* SourceFile */: return printFile(node); - case 312 /* Bundle */: + case 313 /* Bundle */: return printBundle(node); - case 313 /* UnparsedSource */: + case 314 /* UnparsedSource */: return printUnparsedSource(node); } writeNode(hint, node, sourceFile, beginPrint()); @@ -111100,301 +112870,301 @@ ${lanes.join("\n")} return emitIdentifier(node); case 81 /* PrivateIdentifier */: return emitPrivateIdentifier(node); - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: return emitQualifiedName(node); - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: return emitComputedPropertyName(node); - case 167 /* TypeParameter */: + case 168 /* TypeParameter */: return emitTypeParameter(node); - case 168 /* Parameter */: + case 169 /* Parameter */: return emitParameter(node); - case 169 /* Decorator */: + case 170 /* Decorator */: return emitDecorator(node); - case 170 /* PropertySignature */: + case 171 /* PropertySignature */: return emitPropertySignature(node); - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return emitPropertyDeclaration(node); - case 172 /* MethodSignature */: + case 173 /* MethodSignature */: return emitMethodSignature(node); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return emitMethodDeclaration(node); - case 174 /* ClassStaticBlockDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: return emitClassStaticBlockDeclaration(node); - case 175 /* Constructor */: + case 176 /* Constructor */: return emitConstructor(node); - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return emitAccessorDeclaration(node); - case 178 /* CallSignature */: + case 179 /* CallSignature */: return emitCallSignature(node); - case 179 /* ConstructSignature */: + case 180 /* ConstructSignature */: return emitConstructSignature(node); - case 180 /* IndexSignature */: + case 181 /* IndexSignature */: return emitIndexSignature(node); - case 181 /* TypePredicate */: + case 182 /* TypePredicate */: return emitTypePredicate(node); - case 182 /* TypeReference */: + case 183 /* TypeReference */: return emitTypeReference(node); - case 183 /* FunctionType */: + case 184 /* FunctionType */: return emitFunctionType(node); - case 184 /* ConstructorType */: + case 185 /* ConstructorType */: return emitConstructorType(node); - case 185 /* TypeQuery */: + case 186 /* TypeQuery */: return emitTypeQuery(node); - case 186 /* TypeLiteral */: + case 187 /* TypeLiteral */: return emitTypeLiteral(node); - case 187 /* ArrayType */: + case 188 /* ArrayType */: return emitArrayType(node); - case 188 /* TupleType */: + case 189 /* TupleType */: return emitTupleType(node); - case 189 /* OptionalType */: + case 190 /* OptionalType */: return emitOptionalType(node); - case 191 /* UnionType */: + case 192 /* UnionType */: return emitUnionType(node); - case 192 /* IntersectionType */: + case 193 /* IntersectionType */: return emitIntersectionType(node); - case 193 /* ConditionalType */: + case 194 /* ConditionalType */: return emitConditionalType(node); - case 194 /* InferType */: + case 195 /* InferType */: return emitInferType(node); - case 195 /* ParenthesizedType */: + case 196 /* ParenthesizedType */: return emitParenthesizedType(node); - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return emitExpressionWithTypeArguments(node); - case 196 /* ThisType */: + case 197 /* ThisType */: return emitThisType(); - case 197 /* TypeOperator */: + case 198 /* TypeOperator */: return emitTypeOperator(node); - case 198 /* IndexedAccessType */: + case 199 /* IndexedAccessType */: return emitIndexedAccessType(node); - case 199 /* MappedType */: + case 200 /* MappedType */: return emitMappedType(node); - case 200 /* LiteralType */: + case 201 /* LiteralType */: return emitLiteralType(node); - case 201 /* NamedTupleMember */: + case 202 /* NamedTupleMember */: return emitNamedTupleMember(node); - case 202 /* TemplateLiteralType */: + case 203 /* TemplateLiteralType */: return emitTemplateType(node); - case 203 /* TemplateLiteralTypeSpan */: + case 204 /* TemplateLiteralTypeSpan */: return emitTemplateTypeSpan(node); - case 204 /* ImportType */: + case 205 /* ImportType */: return emitImportTypeNode(node); - case 205 /* ObjectBindingPattern */: + case 206 /* ObjectBindingPattern */: return emitObjectBindingPattern(node); - case 206 /* ArrayBindingPattern */: + case 207 /* ArrayBindingPattern */: return emitArrayBindingPattern(node); - case 207 /* BindingElement */: + case 208 /* BindingElement */: return emitBindingElement(node); - case 238 /* TemplateSpan */: + case 239 /* TemplateSpan */: return emitTemplateSpan(node); - case 239 /* SemicolonClassElement */: + case 240 /* SemicolonClassElement */: return emitSemicolonClassElement(); - case 240 /* Block */: + case 241 /* Block */: return emitBlock(node); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return emitVariableStatement(node); - case 241 /* EmptyStatement */: + case 242 /* EmptyStatement */: return emitEmptyStatement( /*isEmbeddedStatement*/ false ); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return emitExpressionStatement(node); - case 244 /* IfStatement */: + case 245 /* IfStatement */: return emitIfStatement(node); - case 245 /* DoStatement */: + case 246 /* DoStatement */: return emitDoStatement(node); - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: return emitWhileStatement(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return emitForStatement(node); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return emitForInStatement(node); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return emitForOfStatement(node); - case 250 /* ContinueStatement */: + case 251 /* ContinueStatement */: return emitContinueStatement(node); - case 251 /* BreakStatement */: + case 252 /* BreakStatement */: return emitBreakStatement(node); - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: return emitReturnStatement(node); - case 253 /* WithStatement */: + case 254 /* WithStatement */: return emitWithStatement(node); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return emitSwitchStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return emitLabeledStatement(node); - case 256 /* ThrowStatement */: + case 257 /* ThrowStatement */: return emitThrowStatement(node); - case 257 /* TryStatement */: + case 258 /* TryStatement */: return emitTryStatement(node); - case 258 /* DebuggerStatement */: + case 259 /* DebuggerStatement */: return emitDebuggerStatement(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return emitVariableDeclaration(node); - case 260 /* VariableDeclarationList */: + case 261 /* VariableDeclarationList */: return emitVariableDeclarationList(node); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return emitFunctionDeclaration(node); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return emitClassDeclaration(node); - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: return emitInterfaceDeclaration(node); - case 264 /* TypeAliasDeclaration */: + case 265 /* TypeAliasDeclaration */: return emitTypeAliasDeclaration(node); - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return emitEnumDeclaration(node); - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return emitModuleDeclaration(node); - case 267 /* ModuleBlock */: + case 268 /* ModuleBlock */: return emitModuleBlock(node); - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: return emitCaseBlock(node); - case 269 /* NamespaceExportDeclaration */: + case 270 /* NamespaceExportDeclaration */: return emitNamespaceExportDeclaration(node); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return emitImportEqualsDeclaration(node); - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return emitImportDeclaration(node); - case 272 /* ImportClause */: + case 273 /* ImportClause */: return emitImportClause(node); - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: return emitNamespaceImport(node); - case 279 /* NamespaceExport */: + case 280 /* NamespaceExport */: return emitNamespaceExport(node); - case 274 /* NamedImports */: + case 275 /* NamedImports */: return emitNamedImports(node); - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: return emitImportSpecifier(node); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return emitExportAssignment(node); - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return emitExportDeclaration(node); - case 278 /* NamedExports */: + case 279 /* NamedExports */: return emitNamedExports(node); - case 280 /* ExportSpecifier */: + case 281 /* ExportSpecifier */: return emitExportSpecifier(node); - case 299 /* AssertClause */: + case 300 /* AssertClause */: return emitAssertClause(node); - case 300 /* AssertEntry */: + case 301 /* AssertEntry */: return emitAssertEntry(node); - case 281 /* MissingDeclaration */: + case 282 /* MissingDeclaration */: return; - case 282 /* ExternalModuleReference */: + case 283 /* ExternalModuleReference */: return emitExternalModuleReference(node); case 12 /* JsxText */: return emitJsxText(node); - case 285 /* JsxOpeningElement */: - case 288 /* JsxOpeningFragment */: + case 286 /* JsxOpeningElement */: + case 289 /* JsxOpeningFragment */: return emitJsxOpeningElementOrFragment(node); - case 286 /* JsxClosingElement */: - case 289 /* JsxClosingFragment */: + case 287 /* JsxClosingElement */: + case 290 /* JsxClosingFragment */: return emitJsxClosingElementOrFragment(node); - case 290 /* JsxAttribute */: + case 291 /* JsxAttribute */: return emitJsxAttribute(node); - case 291 /* JsxAttributes */: + case 292 /* JsxAttributes */: return emitJsxAttributes(node); - case 292 /* JsxSpreadAttribute */: + case 293 /* JsxSpreadAttribute */: return emitJsxSpreadAttribute(node); - case 293 /* JsxExpression */: + case 294 /* JsxExpression */: return emitJsxExpression(node); - case 294 /* JsxNamespacedName */: + case 295 /* JsxNamespacedName */: return emitJsxNamespacedName(node); - case 295 /* CaseClause */: + case 296 /* CaseClause */: return emitCaseClause(node); - case 296 /* DefaultClause */: + case 297 /* DefaultClause */: return emitDefaultClause(node); - case 297 /* HeritageClause */: + case 298 /* HeritageClause */: return emitHeritageClause(node); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return emitCatchClause(node); - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return emitPropertyAssignment(node); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return emitShorthandPropertyAssignment(node); - case 304 /* SpreadAssignment */: + case 305 /* SpreadAssignment */: return emitSpreadAssignment(node); - case 305 /* EnumMember */: + case 306 /* EnumMember */: return emitEnumMember(node); - case 306 /* UnparsedPrologue */: + case 307 /* UnparsedPrologue */: return writeUnparsedNode(node); - case 313 /* UnparsedSource */: - case 307 /* UnparsedPrepend */: + case 314 /* UnparsedSource */: + case 308 /* UnparsedPrepend */: return emitUnparsedSourceOrPrepend(node); - case 308 /* UnparsedText */: - case 309 /* UnparsedInternalText */: + case 309 /* UnparsedText */: + case 310 /* UnparsedInternalText */: return emitUnparsedTextLike(node); - case 310 /* UnparsedSyntheticReference */: + case 311 /* UnparsedSyntheticReference */: return emitUnparsedSyntheticReference(node); - case 311 /* SourceFile */: + case 312 /* SourceFile */: return emitSourceFile(node); - case 312 /* Bundle */: + case 313 /* Bundle */: return Debug.fail("Bundles should be printed using printBundle"); - case 314 /* InputFiles */: + case 315 /* InputFiles */: return Debug.fail("InputFiles should not be printed"); - case 315 /* JSDocTypeExpression */: + case 316 /* JSDocTypeExpression */: return emitJSDocTypeExpression(node); - case 316 /* JSDocNameReference */: + case 317 /* JSDocNameReference */: return emitJSDocNameReference(node); - case 318 /* JSDocAllType */: + case 319 /* JSDocAllType */: return writePunctuation("*"); - case 319 /* JSDocUnknownType */: + case 320 /* JSDocUnknownType */: return writePunctuation("?"); - case 320 /* JSDocNullableType */: + case 321 /* JSDocNullableType */: return emitJSDocNullableType(node); - case 321 /* JSDocNonNullableType */: + case 322 /* JSDocNonNullableType */: return emitJSDocNonNullableType(node); - case 322 /* JSDocOptionalType */: + case 323 /* JSDocOptionalType */: return emitJSDocOptionalType(node); - case 323 /* JSDocFunctionType */: + case 324 /* JSDocFunctionType */: return emitJSDocFunctionType(node); - case 190 /* RestType */: - case 324 /* JSDocVariadicType */: + case 191 /* RestType */: + case 325 /* JSDocVariadicType */: return emitRestOrJSDocVariadicType(node); - case 325 /* JSDocNamepathType */: + case 326 /* JSDocNamepathType */: return; - case 326 /* JSDoc */: + case 327 /* JSDoc */: return emitJSDoc(node); - case 328 /* JSDocTypeLiteral */: + case 329 /* JSDocTypeLiteral */: return emitJSDocTypeLiteral(node); - case 329 /* JSDocSignature */: + case 330 /* JSDocSignature */: return emitJSDocSignature(node); - case 333 /* JSDocTag */: - case 338 /* JSDocClassTag */: - case 343 /* JSDocOverrideTag */: + case 334 /* JSDocTag */: + case 339 /* JSDocClassTag */: + case 344 /* JSDocOverrideTag */: return emitJSDocSimpleTag(node); - case 334 /* JSDocAugmentsTag */: - case 335 /* JSDocImplementsTag */: + case 335 /* JSDocAugmentsTag */: + case 336 /* JSDocImplementsTag */: return emitJSDocHeritageTag(node); - case 336 /* JSDocAuthorTag */: - case 337 /* JSDocDeprecatedTag */: + case 337 /* JSDocAuthorTag */: + case 338 /* JSDocDeprecatedTag */: return; - case 339 /* JSDocPublicTag */: - case 340 /* JSDocPrivateTag */: - case 341 /* JSDocProtectedTag */: - case 342 /* JSDocReadonlyTag */: + case 340 /* JSDocPublicTag */: + case 341 /* JSDocPrivateTag */: + case 342 /* JSDocProtectedTag */: + case 343 /* JSDocReadonlyTag */: return; - case 344 /* JSDocCallbackTag */: + case 345 /* JSDocCallbackTag */: return emitJSDocCallbackTag(node); - case 345 /* JSDocOverloadTag */: + case 346 /* JSDocOverloadTag */: return emitJSDocOverloadTag(node); - case 347 /* JSDocParameterTag */: - case 354 /* JSDocPropertyTag */: + case 348 /* JSDocParameterTag */: + case 355 /* JSDocPropertyTag */: return emitJSDocPropertyLikeTag(node); - case 346 /* JSDocEnumTag */: - case 348 /* JSDocReturnTag */: - case 349 /* JSDocThisTag */: - case 350 /* JSDocTypeTag */: - case 355 /* JSDocThrowsTag */: - case 356 /* JSDocSatisfiesTag */: + case 347 /* JSDocEnumTag */: + case 349 /* JSDocReturnTag */: + case 350 /* JSDocThisTag */: + case 351 /* JSDocTypeTag */: + case 356 /* JSDocThrowsTag */: + case 357 /* JSDocSatisfiesTag */: return emitJSDocSimpleTypedTag(node); - case 351 /* JSDocTemplateTag */: + case 352 /* JSDocTemplateTag */: return emitJSDocTemplateTag(node); - case 352 /* JSDocTypedefTag */: + case 353 /* JSDocTypedefTag */: return emitJSDocTypedefTag(node); - case 353 /* JSDocSeeTag */: + case 354 /* JSDocSeeTag */: return emitJSDocSeeTag(node); - case 358 /* NotEmittedStatement */: + case 359 /* NotEmittedStatement */: return; } if (isExpression(node)) { @@ -111427,83 +113197,83 @@ ${lanes.join("\n")} return emitIdentifier(node); case 81 /* PrivateIdentifier */: return emitPrivateIdentifier(node); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return emitArrayLiteralExpression(node); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return emitObjectLiteralExpression(node); - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return emitPropertyAccessExpression(node); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return emitElementAccessExpression(node); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return emitCallExpression(node); - case 213 /* NewExpression */: + case 214 /* NewExpression */: return emitNewExpression(node); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return emitTaggedTemplateExpression(node); - case 215 /* TypeAssertionExpression */: + case 216 /* TypeAssertionExpression */: return emitTypeAssertionExpression(node); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return emitParenthesizedExpression(node); - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: return emitFunctionExpression(node); - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return emitArrowFunction(node); - case 219 /* DeleteExpression */: + case 220 /* DeleteExpression */: return emitDeleteExpression(node); - case 220 /* TypeOfExpression */: + case 221 /* TypeOfExpression */: return emitTypeOfExpression(node); - case 221 /* VoidExpression */: + case 222 /* VoidExpression */: return emitVoidExpression(node); - case 222 /* AwaitExpression */: + case 223 /* AwaitExpression */: return emitAwaitExpression(node); - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: return emitPrefixUnaryExpression(node); - case 224 /* PostfixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return emitPostfixUnaryExpression(node); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return emitBinaryExpression(node); - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: return emitConditionalExpression(node); - case 227 /* TemplateExpression */: + case 228 /* TemplateExpression */: return emitTemplateExpression(node); - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: return emitYieldExpression(node); - case 229 /* SpreadElement */: + case 230 /* SpreadElement */: return emitSpreadElement(node); - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return emitClassExpression(node); - case 231 /* OmittedExpression */: + case 232 /* OmittedExpression */: return; - case 233 /* AsExpression */: + case 234 /* AsExpression */: return emitAsExpression(node); - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: return emitNonNullExpression(node); - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return emitExpressionWithTypeArguments(node); - case 237 /* SatisfiesExpression */: + case 238 /* SatisfiesExpression */: return emitSatisfiesExpression(node); - case 235 /* MetaProperty */: + case 236 /* MetaProperty */: return emitMetaProperty(node); - case 236 /* SyntheticExpression */: + case 237 /* SyntheticExpression */: return Debug.fail("SyntheticExpression should never be printed."); - case 281 /* MissingDeclaration */: + case 282 /* MissingDeclaration */: return; - case 283 /* JsxElement */: + case 284 /* JsxElement */: return emitJsxElement(node); - case 284 /* JsxSelfClosingElement */: + case 285 /* JsxSelfClosingElement */: return emitJsxSelfClosingElement(node); - case 287 /* JsxFragment */: + case 288 /* JsxFragment */: return emitJsxFragment(node); - case 357 /* SyntaxList */: + case 358 /* SyntaxList */: return Debug.fail("SyntaxList should not be printed"); - case 358 /* NotEmittedStatement */: + case 359 /* NotEmittedStatement */: return; - case 359 /* PartiallyEmittedExpression */: + case 360 /* PartiallyEmittedExpression */: return emitPartiallyEmittedExpression(node); - case 360 /* CommaListExpression */: + case 361 /* CommaListExpression */: return emitCommaList(node); - case 361 /* SyntheticReferenceExpression */: + case 362 /* SyntheticReferenceExpression */: return Debug.fail("SyntheticReferenceExpression should not be printed"); } } @@ -111549,7 +113319,7 @@ ${lanes.join("\n")} } function emitHelpers(node) { let helpersEmitted = false; - const bundle = node.kind === 312 /* Bundle */ ? node : void 0; + const bundle = node.kind === 313 /* Bundle */ ? node : void 0; if (bundle && moduleKind === 0 /* None */) { return; } @@ -111624,7 +113394,7 @@ ${lanes.join("\n")} updateOrPushBundleFileTextLike( pos, writer.getTextPos(), - unparsed.kind === 308 /* UnparsedText */ ? "text" /* Text */ : "internal" /* Internal */ + unparsed.kind === 309 /* UnparsedText */ ? "text" /* Text */ : "internal" /* Internal */ ); } } @@ -111660,7 +113430,7 @@ ${lanes.join("\n")} } function emitTabStop(hint, node, snippet) { Debug.assert( - node.kind === 241 /* EmptyStatement */, + node.kind === 242 /* EmptyStatement */, `A tab stop cannot be attached to a node of kind ${Debug.formatSyntaxKind(node.kind)}.` ); Debug.assert( @@ -111732,7 +113502,7 @@ ${lanes.join("\n")} emit(node.dotDotDotToken); emitNodeWithWriter(node.name, writeParameter); emit(node.questionToken); - if (node.parent && node.parent.kind === 323 /* JSDocFunctionType */ && !node.name) { + if (node.parent && node.parent.kind === 324 /* JSDocFunctionType */ && !node.name) { emit(node.type); } else { emitTypeAnnotation(node.type); @@ -111808,7 +113578,7 @@ ${lanes.join("\n")} /*allowDecorators*/ true ); - const token = node.kind === 176 /* GetAccessor */ ? 139 /* GetKeyword */ : 153 /* SetKeyword */; + const token = node.kind === 177 /* GetAccessor */ ? 139 /* GetKeyword */ : 153 /* SetKeyword */; emitTokenWithComment(token, pos, writeKeyword, node); writeSpace(); emit(node.name); @@ -112162,7 +113932,7 @@ ${lanes.join("\n")} return !(expression.numericLiteralFlags & 448 /* WithSpecifier */) && !stringContains(text, tokenToString(25 /* DotToken */)) && !stringContains(text, String.fromCharCode(69 /* E */)) && !stringContains(text, String.fromCharCode(101 /* e */)); } else if (isAccessExpression(expression)) { const constantValue = getConstantValue(expression); - return typeof constantValue === "number" && isFinite(constantValue) && Math.floor(constantValue) === constantValue; + return typeof constantValue === "number" && isFinite(constantValue) && constantValue >= 0 && Math.floor(constantValue) === constantValue; } } function emitElementAccessExpression(node) { @@ -112273,7 +114043,7 @@ ${lanes.join("\n")} } function shouldEmitWhitespaceBeforeOperand(node) { const operand = node.operand; - return operand.kind === 223 /* PrefixUnaryExpression */ && (node.operator === 40 /* PlusToken */ && (operand.operator === 40 /* PlusToken */ || operand.operator === 46 /* PlusPlusToken */) || node.operator === 41 /* MinusToken */ && (operand.operator === 41 /* MinusToken */ || operand.operator === 47 /* MinusMinusToken */)); + return operand.kind === 224 /* PrefixUnaryExpression */ && (node.operator === 40 /* PlusToken */ && (operand.operator === 40 /* PlusToken */ || operand.operator === 46 /* PlusPlusToken */) || node.operator === 41 /* MinusToken */ && (operand.operator === 41 /* MinusToken */ || operand.operator === 47 /* MinusMinusToken */)); } function emitPostfixUnaryExpression(node) { emitExpression(node.operand, parenthesizer.parenthesizeOperandOfPostfixUnary); @@ -112532,7 +114302,7 @@ ${lanes.join("\n")} if (node.elseStatement) { writeLineOrSpace(node, node.thenStatement, node.elseStatement); emitTokenWithComment(93 /* ElseKeyword */, node.thenStatement.end, writeKeyword, node); - if (node.elseStatement.kind === 244 /* IfStatement */) { + if (node.elseStatement.kind === 245 /* IfStatement */) { writeSpace(); emit(node.elseStatement); } else { @@ -112599,7 +114369,7 @@ ${lanes.join("\n")} emitTokenWithComment(21 /* OpenParenToken */, openParenPos, writePunctuation, node); emitForBinding(node.initializer); writeSpace(); - emitTokenWithComment(164 /* OfKeyword */, node.initializer.end, writeKeyword, node); + emitTokenWithComment(165 /* OfKeyword */, node.initializer.end, writeKeyword, node); writeSpace(); emitExpression(node.expression); emitTokenWithComment(22 /* CloseParenToken */, node.expression.end, writePunctuation, node); @@ -112607,7 +114377,7 @@ ${lanes.join("\n")} } function emitForBinding(node) { if (node !== void 0) { - if (node.kind === 260 /* VariableDeclarationList */) { + if (node.kind === 261 /* VariableDeclarationList */) { emit(node); } else { emitExpression(node); @@ -112643,7 +114413,7 @@ ${lanes.join("\n")} } pos = writeTokenText(token, writer2, pos); if (isSimilarNode && contextNode.end !== pos) { - const isJsxExprContext = contextNode.kind === 293 /* JsxExpression */; + const isJsxExprContext = contextNode.kind === 294 /* JsxExpression */; emitTrailingCommentsOfPosition( pos, /*prefixSpace*/ @@ -112755,7 +114525,14 @@ ${lanes.join("\n")} emitInitializer(node.initializer, ((_a = node.type) == null ? void 0 : _a.end) ?? ((_c = (_b = node.name.emitNode) == null ? void 0 : _b.typeNode) == null ? void 0 : _c.end) ?? node.name.end, node, parenthesizer.parenthesizeExpressionForDisallowedComma); } function emitVariableDeclarationList(node) { - writeKeyword(isLet(node) ? "let" : isVarConst(node) ? "const" : "var"); + if (isVarAwaitUsing(node)) { + writeKeyword("await"); + writeSpace(); + writeKeyword("using"); + } else { + const head = isLet(node) ? "let" : isVarConst(node) ? "const" : isVarUsing(node) ? "using" : "var"; + writeKeyword(head); + } writeSpace(); emitList(node, node.declarations, 528 /* VariableDeclarationList */); } @@ -112964,8 +114741,8 @@ ${lanes.join("\n")} /*allowDecorators*/ false ); - if (~node.flags & 1024 /* GlobalAugmentation */) { - writeKeyword(node.flags & 16 /* Namespace */ ? "namespace" : "module"); + if (~node.flags & 2048 /* GlobalAugmentation */) { + writeKeyword(node.flags & 32 /* Namespace */ ? "namespace" : "module"); writeSpace(); } emit(node.name); @@ -113041,7 +114818,7 @@ ${lanes.join("\n")} if (node.importClause) { emit(node.importClause); writeSpace(); - emitTokenWithComment(160 /* FromKeyword */, node.importClause.end, writeKeyword, node); + emitTokenWithComment(161 /* FromKeyword */, node.importClause.end, writeKeyword, node); writeSpace(); } emitExpression(node.moduleSpecifier); @@ -113108,7 +114885,7 @@ ${lanes.join("\n")} if (node.moduleSpecifier) { writeSpace(); const fromPos = node.exportClause ? node.exportClause.end : nextPos; - emitTokenWithComment(160 /* FromKeyword */, fromPos, writeKeyword, node); + emitTokenWithComment(161 /* FromKeyword */, fromPos, writeKeyword, node); writeSpace(); emitExpression(node.moduleSpecifier); } @@ -113363,7 +115140,7 @@ ${lanes.join("\n")} } } if (node.tags) { - if (node.tags.length === 1 && node.tags[0].kind === 350 /* JSDocTypeTag */ && !node.comment) { + if (node.tags.length === 1 && node.tags[0].kind === 351 /* JSDocTypeTag */ && !node.comment) { writeSpace(); emit(node.tags[0]); } else { @@ -113407,7 +115184,7 @@ ${lanes.join("\n")} function emitJSDocTypedefTag(tag) { emitJSDocTagName(tag.tagName); if (tag.typeExpression) { - if (tag.typeExpression.kind === 315 /* JSDocTypeExpression */) { + if (tag.typeExpression.kind === 316 /* JSDocTypeExpression */) { emitJSDocTypeExpression(tag.typeExpression); } else { writeSpace(); @@ -113425,7 +115202,7 @@ ${lanes.join("\n")} emit(tag.fullName); } emitJSDocComment(tag.comment); - if (tag.typeExpression && tag.typeExpression.kind === 328 /* JSDocTypeLiteral */) { + if (tag.typeExpression && tag.typeExpression.kind === 329 /* JSDocTypeLiteral */) { emitJSDocTypeLiteral(tag.typeExpression); } } @@ -114308,7 +116085,7 @@ ${lanes.join("\n")} return block.statements.length === 0 && (!currentSourceFile || rangeEndIsOnSameLineAsRangeStart(block, block, currentSourceFile)); } function skipSynthesizedParentheses(node) { - while (node.kind === 216 /* ParenthesizedExpression */ && nodeIsSynthesized(node)) { + while (node.kind === 217 /* ParenthesizedExpression */ && nodeIsSynthesized(node)) { node = node.expression; } return node; @@ -114395,84 +116172,84 @@ ${lanes.join("\n")} if (!node) return; switch (node.kind) { - case 240 /* Block */: + case 241 /* Block */: forEach(node.statements, generateNames); break; - case 255 /* LabeledStatement */: - case 253 /* WithStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: + case 256 /* LabeledStatement */: + case 254 /* WithStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: generateNames(node.statement); break; - case 244 /* IfStatement */: + case 245 /* IfStatement */: generateNames(node.thenStatement); generateNames(node.elseStatement); break; - case 247 /* ForStatement */: - case 249 /* ForOfStatement */: - case 248 /* ForInStatement */: + case 248 /* ForStatement */: + case 250 /* ForOfStatement */: + case 249 /* ForInStatement */: generateNames(node.initializer); generateNames(node.statement); break; - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: generateNames(node.caseBlock); break; - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: forEach(node.clauses, generateNames); break; - case 295 /* CaseClause */: - case 296 /* DefaultClause */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: forEach(node.statements, generateNames); break; - case 257 /* TryStatement */: + case 258 /* TryStatement */: generateNames(node.tryBlock); generateNames(node.catchClause); generateNames(node.finallyBlock); break; - case 298 /* CatchClause */: + case 299 /* CatchClause */: generateNames(node.variableDeclaration); generateNames(node.block); break; - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: generateNames(node.declarationList); break; - case 260 /* VariableDeclarationList */: + case 261 /* VariableDeclarationList */: forEach(node.declarations, generateNames); break; - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 207 /* BindingElement */: - case 262 /* ClassDeclaration */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 208 /* BindingElement */: + case 263 /* ClassDeclaration */: generateNameIfNeeded(node.name); break; - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: generateNameIfNeeded(node.name); if (getEmitFlags(node) & 1048576 /* ReuseTempVariableScope */) { forEach(node.parameters, generateNames); generateNames(node.body); } break; - case 205 /* ObjectBindingPattern */: - case 206 /* ArrayBindingPattern */: + case 206 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: forEach(node.elements, generateNames); break; - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: generateNames(node.importClause); break; - case 272 /* ImportClause */: + case 273 /* ImportClause */: generateNameIfNeeded(node.name); generateNames(node.namedBindings); break; - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: generateNameIfNeeded(node.name); break; - case 279 /* NamespaceExport */: + case 280 /* NamespaceExport */: generateNameIfNeeded(node.name); break; - case 274 /* NamedImports */: + case 275 /* NamedImports */: forEach(node.elements, generateNames); break; - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: generateNameIfNeeded(node.propertyName || node.name); break; } @@ -114481,12 +116258,12 @@ ${lanes.join("\n")} if (!node) return; switch (node.kind) { - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: - case 171 /* PropertyDeclaration */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: generateNameIfNeeded(node.name); break; } @@ -114744,16 +116521,16 @@ ${lanes.join("\n")} prefix, suffix ); - case 266 /* ModuleDeclaration */: - case 265 /* EnumDeclaration */: + case 267 /* ModuleDeclaration */: + case 266 /* EnumDeclaration */: Debug.assert(!prefix && !suffix && !privateName); return generateNameForModuleOrEnum(node); - case 271 /* ImportDeclaration */: - case 277 /* ExportDeclaration */: + case 272 /* ImportDeclaration */: + case 278 /* ExportDeclaration */: Debug.assert(!prefix && !suffix && !privateName); return generateNameForImportOrExportDeclaration(node); - case 261 /* FunctionDeclaration */: - case 262 /* ClassDeclaration */: { + case 262 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: { Debug.assert(!prefix && !suffix && !privateName); const name = node.name; if (name && !isGeneratedIdentifier(name)) { @@ -114768,17 +116545,17 @@ ${lanes.join("\n")} } return generateNameForExportDefault(); } - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: Debug.assert(!prefix && !suffix && !privateName); return generateNameForExportDefault(); - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: Debug.assert(!prefix && !suffix && !privateName); return generateNameForClassExpression(); - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return generateNameForMethodOrAccessor(node, privateName, prefix, suffix); - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: return makeTempVariableName( 0 /* Auto */, /*reservedInNestedScopes*/ @@ -114872,7 +116649,7 @@ ${lanes.join("\n")} emitLeadingComments( pos, /*isEmittedNode*/ - node.kind !== 358 /* NotEmittedStatement */ + node.kind !== 359 /* NotEmittedStatement */ ); } if (!skipLeadingComments || pos >= 0 && (emitFlags & 1024 /* NoLeadingComments */) !== 0) { @@ -114880,7 +116657,7 @@ ${lanes.join("\n")} } if (!skipTrailingComments || end >= 0 && (emitFlags & 2048 /* NoTrailingComments */) !== 0) { containerEnd = end; - if (node.kind === 260 /* VariableDeclarationList */) { + if (node.kind === 261 /* VariableDeclarationList */) { declarationListContainerEnd = end; } } @@ -114896,7 +116673,7 @@ ${lanes.join("\n")} containerPos = savedContainerPos; containerEnd = savedContainerEnd; declarationListContainerEnd = savedDeclarationListContainerEnd; - if (!skipTrailingComments && node.kind !== 358 /* NotEmittedStatement */) { + if (!skipTrailingComments && node.kind !== 359 /* NotEmittedStatement */) { emitTrailingComments(end); } } @@ -115168,7 +116945,7 @@ ${lanes.join("\n")} } } else { const source = sourceMapRange.source || sourceMapSource; - if (node.kind !== 358 /* NotEmittedStatement */ && (emitFlags & 32 /* NoLeadingSourceMap */) === 0 && sourceMapRange.pos >= 0) { + if (node.kind !== 359 /* NotEmittedStatement */ && (emitFlags & 32 /* NoLeadingSourceMap */) === 0 && sourceMapRange.pos >= 0) { emitSourcePos(sourceMapRange.source || sourceMapSource, skipSourceTrivia(source, sourceMapRange.pos)); } if (emitFlags & 128 /* NoNestedSourceMaps */) { @@ -115183,7 +116960,7 @@ ${lanes.join("\n")} if (emitFlags & 128 /* NoNestedSourceMaps */) { sourceMapsDisabled = false; } - if (node.kind !== 358 /* NotEmittedStatement */ && (emitFlags & 64 /* NoTrailingSourceMap */) === 0 && sourceMapRange.end >= 0) { + if (node.kind !== 359 /* NotEmittedStatement */ && (emitFlags & 64 /* NoTrailingSourceMap */) === 0 && sourceMapRange.end >= 0) { emitSourcePos(sourceMapRange.source || sourceMapSource, sourceMapRange.end); } } @@ -115350,14 +117127,14 @@ ${lanes.join("\n")} }); // src/compiler/watchUtilities.ts - function createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensitiveFileNames) { + function createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensitiveFileNames2) { if (!host.getDirectories || !host.readDirectory) { return void 0; } const cachedReadDirectoryResult = /* @__PURE__ */ new Map(); - const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames); + const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2); return { - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, fileExists, readFile: (path, encoding) => host.readFile(path, encoding), directoryExists: host.directoryExists && directoryExists, @@ -115479,7 +117256,7 @@ ${lanes.join("\n")} const rootResult = tryReadDirectory2(rootDir, rootDirPath); let rootSymLinkResult; if (rootResult !== void 0) { - return matchFiles(rootDir, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath); + return matchFiles(rootDir, extensions, excludes, includes, useCaseSensitiveFileNames2, currentDirectory, depth, getFileSystemEntries, realpath); } return host.readDirectory(rootDir, extensions, excludes, includes, depth); function getFileSystemEntries(dir) { @@ -115674,7 +117451,7 @@ ${lanes.join("\n")} program, extraFileExtensions, currentDirectory, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, writeLog, toPath: toPath3 }) { @@ -115690,7 +117467,7 @@ ${lanes.join("\n")} writeLog(`Project: ${configFileName} Detected file add/remove of non supported extension: ${fileOrDirectory}`); return true; } - if (isExcludedFile(fileOrDirectory, options.configFile.configFileSpecs, getNormalizedAbsolutePath(getDirectoryPath(configFileName), currentDirectory), useCaseSensitiveFileNames, currentDirectory)) { + if (isExcludedFile(fileOrDirectory, options.configFile.configFileSpecs, getNormalizedAbsolutePath(getDirectoryPath(configFileName), currentDirectory), useCaseSensitiveFileNames2, currentDirectory)) { writeLog(`Project: ${configFileName} Detected excluded file: ${fileOrDirectory}`); return true; } @@ -115747,7 +117524,7 @@ ${lanes.join("\n")} function createExcludeHandlingAddWatch(key) { return (file, cb, flags, options, detailInfo1, detailInfo2) => { var _a; - return !matchesExclude(file, key === "watchFile" ? options == null ? void 0 : options.excludeFiles : options == null ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames(), ((_a = host.getCurrentDirectory) == null ? void 0 : _a.call(host)) || "") ? factory2[key].call( + return !matchesExclude(file, key === "watchFile" ? options == null ? void 0 : options.excludeFiles : options == null ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames2(), ((_a = host.getCurrentDirectory) == null ? void 0 : _a.call(host)) || "") ? factory2[key].call( /*thisArgs*/ void 0, file, @@ -115759,7 +117536,7 @@ ${lanes.join("\n")} ) : excludeWatcherFactory(file, flags, options, detailInfo1, detailInfo2); }; } - function useCaseSensitiveFileNames() { + function useCaseSensitiveFileNames2() { return typeof host.useCaseSensitiveFileNames === "boolean" ? host.useCaseSensitiveFileNames : host.useCaseSensitiveFileNames(); } function createExcludeWatcherWithLogging(file, flags, options, detailInfo1, detailInfo2) { @@ -117260,13 +119037,13 @@ ${lanes.join("\n")} sourceFileOptions, /*onError*/ void 0, - shouldCreateNewSourceFile || sourceFileOptions.impliedNodeFormat !== oldSourceFile.impliedNodeFormat + shouldCreateNewSourceFile ) : host.getSourceFile( oldSourceFile.fileName, sourceFileOptions, /*onError*/ void 0, - shouldCreateNewSourceFile || sourceFileOptions.impliedNodeFormat !== oldSourceFile.impliedNodeFormat + shouldCreateNewSourceFile ); if (!newSourceFile) { return 0 /* Not */; @@ -117317,7 +119094,7 @@ ${lanes.join("\n")} structureIsReused = 1 /* SafeModules */; } else if (!arrayIsEqualTo(oldSourceFile.moduleAugmentations, newSourceFile.moduleAugmentations, moduleNameIsEqualTo)) { structureIsReused = 1 /* SafeModules */; - } else if ((oldSourceFile.flags & 6291456 /* PermanentlySetIncrementalFlags */) !== (newSourceFile.flags & 6291456 /* PermanentlySetIncrementalFlags */)) { + } else if ((oldSourceFile.flags & 12582912 /* PermanentlySetIncrementalFlags */) !== (newSourceFile.flags & 12582912 /* PermanentlySetIncrementalFlags */)) { structureIsReused = 1 /* SafeModules */; } else if (!arrayIsEqualTo(oldSourceFile.typeReferenceDirectives, newSourceFile.typeReferenceDirectives, fileReferenceIsEqualTo)) { structureIsReused = 1 /* SafeModules */; @@ -117708,89 +119485,97 @@ ${lanes.join("\n")} return diagnostics; function walk(node, parent2) { switch (parent2.kind) { - case 168 /* Parameter */: - case 171 /* PropertyDeclaration */: - case 173 /* MethodDeclaration */: + case 169 /* Parameter */: + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: if (parent2.questionToken === node) { diagnostics.push(createDiagnosticForNode2(node, Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, "?")); return "skip"; } - case 172 /* MethodSignature */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: - case 218 /* ArrowFunction */: - case 259 /* VariableDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 219 /* ArrowFunction */: + case 260 /* VariableDeclaration */: if (parent2.type === node) { diagnostics.push(createDiagnosticForNode2(node, Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files)); return "skip"; } } switch (node.kind) { - case 272 /* ImportClause */: + case 273 /* ImportClause */: if (node.isTypeOnly) { diagnostics.push(createDiagnosticForNode2(parent2, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, "import type")); return "skip"; } break; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: if (node.isTypeOnly) { diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, "export type")); return "skip"; } break; - case 275 /* ImportSpecifier */: - case 280 /* ExportSpecifier */: + case 276 /* ImportSpecifier */: + case 281 /* ExportSpecifier */: if (node.isTypeOnly) { diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, isImportSpecifier(node) ? "import...type" : "export...type")); return "skip"; } break; - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: diagnostics.push(createDiagnosticForNode2(node, Diagnostics.import_can_only_be_used_in_TypeScript_files)); return "skip"; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: if (node.isExportEquals) { diagnostics.push(createDiagnosticForNode2(node, Diagnostics.export_can_only_be_used_in_TypeScript_files)); return "skip"; } break; - case 297 /* HeritageClause */: + case 298 /* HeritageClause */: const heritageClause = node; if (heritageClause.token === 119 /* ImplementsKeyword */) { diagnostics.push(createDiagnosticForNode2(node, Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)); return "skip"; } break; - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: const interfaceKeyword = tokenToString(120 /* InterfaceKeyword */); Debug.assertIsDefined(interfaceKeyword); diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, interfaceKeyword)); return "skip"; - case 266 /* ModuleDeclaration */: - const moduleKeyword = node.flags & 16 /* Namespace */ ? tokenToString(145 /* NamespaceKeyword */) : tokenToString(144 /* ModuleKeyword */); + case 267 /* ModuleDeclaration */: + const moduleKeyword = node.flags & 32 /* Namespace */ ? tokenToString(145 /* NamespaceKeyword */) : tokenToString(144 /* ModuleKeyword */); Debug.assertIsDefined(moduleKeyword); diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, moduleKeyword)); return "skip"; - case 264 /* TypeAliasDeclaration */: + case 265 /* TypeAliasDeclaration */: diagnostics.push(createDiagnosticForNode2(node, Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)); return "skip"; - case 265 /* EnumDeclaration */: + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 262 /* FunctionDeclaration */: + if (!node.body) { + diagnostics.push(createDiagnosticForNode2(node, Diagnostics.Signature_declarations_can_only_be_used_in_TypeScript_files)); + return "skip"; + } + return; + case 266 /* EnumDeclaration */: const enumKeyword = Debug.checkDefined(tokenToString(94 /* EnumKeyword */)); diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, enumKeyword)); return "skip"; - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: diagnostics.push(createDiagnosticForNode2(node, Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)); return "skip"; - case 233 /* AsExpression */: + case 234 /* AsExpression */: diagnostics.push(createDiagnosticForNode2(node.type, Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)); return "skip"; - case 237 /* SatisfiesExpression */: + case 238 /* SatisfiesExpression */: diagnostics.push(createDiagnosticForNode2(node.type, Diagnostics.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)); return "skip"; - case 215 /* TypeAssertionExpression */: + case 216 /* TypeAssertionExpression */: Debug.fail(); } } @@ -117825,26 +119610,26 @@ ${lanes.join("\n")} } } switch (parent2.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 173 /* MethodDeclaration */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: - case 218 /* ArrowFunction */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 219 /* ArrowFunction */: if (nodes === parent2.typeParameters) { diagnostics.push(createDiagnosticForNodeArray2(nodes, Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)); return "skip"; } - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: if (nodes === parent2.modifiers) { - checkModifiers(parent2.modifiers, parent2.kind === 242 /* VariableStatement */); + checkModifiers(parent2.modifiers, parent2.kind === 243 /* VariableStatement */); return "skip"; } break; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: if (nodes === parent2.modifiers) { for (const modifier of nodes) { if (isModifier(modifier) && modifier.kind !== 126 /* StaticKeyword */ && modifier.kind !== 129 /* AccessorKeyword */) { @@ -117854,18 +119639,18 @@ ${lanes.join("\n")} return "skip"; } break; - case 168 /* Parameter */: + case 169 /* Parameter */: if (nodes === parent2.modifiers && some(nodes, isModifier)) { diagnostics.push(createDiagnosticForNodeArray2(nodes, Diagnostics.Parameter_modifiers_can_only_be_used_in_TypeScript_files)); return "skip"; } break; - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 232 /* ExpressionWithTypeArguments */: - case 284 /* JsxSelfClosingElement */: - case 285 /* JsxOpeningElement */: - case 214 /* TaggedTemplateExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 233 /* ExpressionWithTypeArguments */: + case 285 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 215 /* TaggedTemplateExpression */: if (nodes === parent2.typeArguments) { diagnostics.push(createDiagnosticForNodeArray2(nodes, Diagnostics.Type_arguments_can_only_be_used_in_TypeScript_files)); return "skip"; @@ -117886,7 +119671,7 @@ ${lanes.join("\n")} case 148 /* ReadonlyKeyword */: case 138 /* DeclareKeyword */: case 128 /* AbstractKeyword */: - case 163 /* OverrideKeyword */: + case 164 /* OverrideKeyword */: case 103 /* InKeyword */: case 147 /* OutKeyword */: diagnostics.push(createDiagnosticForNode2(modifier, Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, tokenToString(modifier.kind))); @@ -117984,8 +119769,8 @@ ${lanes.join("\n")} addInternalEmitFlags(importDecl, 2 /* NeverApplyImportHelper */); setParent(externalHelpersModuleReference, importDecl); setParent(importDecl, file); - externalHelpersModuleReference.flags &= ~8 /* Synthesized */; - importDecl.flags &= ~8 /* Synthesized */; + externalHelpersModuleReference.flags &= ~16 /* Synthesized */; + importDecl.flags &= ~16 /* Synthesized */; return externalHelpersModuleReference; } function collectExternalModuleReferences(file) { @@ -118014,7 +119799,7 @@ ${lanes.join("\n")} ); } const shouldProcessRequires = isJavaScriptFile && shouldResolveJsRequire(options); - if (file.flags & 2097152 /* PossiblyContainsDynamicImport */ || shouldProcessRequires) { + if (file.flags & 4194304 /* PossiblyContainsDynamicImport */ || shouldProcessRequires) { collectDynamicImportOrRequireCalls(file); } file.imports = imports || emptyArray; @@ -118222,7 +120007,7 @@ ${lanes.join("\n")} return typeof result === "object" ? { ...result, languageVersion, setExternalModuleIndicator: setExternalModuleIndicator2 } : { languageVersion, impliedNodeFormat: result, setExternalModuleIndicator: setExternalModuleIndicator2 }; } function findSourceFileWorker(fileName, isDefaultLib, ignoreNoDefaultLib, reason, packageId) { - var _a2, _b2; + var _a2; const path = toPath3(fileName); if (useSourceOfProjectReferenceRedirect) { let source = getSourceOfProjectReferenceRedirect(path); @@ -118301,7 +120086,7 @@ ${lanes.join("\n")} Diagnostics.Cannot_read_file_0_Colon_1, [fileName, hostErrorMessage] ), - shouldCreateNewSourceFile || ((_a2 = oldProgram == null ? void 0 : oldProgram.getSourceFileByPath(toPath3(fileName))) == null ? void 0 : _a2.impliedNodeFormat) !== sourceFileOptions.impliedNodeFormat + shouldCreateNewSourceFile ); if (packageId) { const packageIdKey = packageIdToString(packageId); @@ -118326,7 +120111,7 @@ ${lanes.join("\n")} file.path = path; file.resolvedPath = toPath3(fileName); file.originalFileName = originalFileName; - file.packageJsonLocations = ((_b2 = sourceFileOptions.packageJsonLocations) == null ? void 0 : _b2.length) ? sourceFileOptions.packageJsonLocations : void 0; + file.packageJsonLocations = ((_a2 = sourceFileOptions.packageJsonLocations) == null ? void 0 : _a2.length) ? sourceFileOptions.packageJsonLocations : void 0; file.packageJsonScope = sourceFileOptions.packageJsonScope; addFileIncludeReason(file, reason); if (host.useCaseSensitiveFileNames()) { @@ -118636,7 +120421,7 @@ ${lanes.join("\n")} currentNodeModulesDepth++; } const elideImport = isJsFileFromNodeModules && currentNodeModulesDepth > maxNodeModuleJsDepth; - const shouldAddFile = resolvedFileName && !getResolutionDiagnostic(optionsForFile, resolution, file) && !optionsForFile.noResolve && index < file.imports.length && !elideImport && !(isJsFile && !getAllowJSCompilerOption(optionsForFile)) && (isInJSFile(file.imports[index]) || !(file.imports[index].flags & 8388608 /* JSDoc */)); + const shouldAddFile = resolvedFileName && !getResolutionDiagnostic(optionsForFile, resolution, file) && !optionsForFile.noResolve && index < file.imports.length && !elideImport && !(isJsFile && !getAllowJSCompilerOption(optionsForFile)) && (isInJSFile(file.imports[index]) || !(file.imports[index].flags & 16777216 /* JSDoc */)); if (elideImport) { modulesWithElidedImports.set(file.path, true); } else if (shouldAddFile) { @@ -118995,6 +120780,13 @@ ${lanes.join("\n")} if (moduleResolution === 100 /* Bundler */ && !emitModuleKindIsNonNodeESM(moduleKind)) { createOptionValueDiagnostic("moduleResolution", Diagnostics.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later, "bundler"); } + if (ModuleKind[moduleKind] && (100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */) && !(3 /* Node16 */ <= moduleResolution && moduleResolution <= 99 /* NodeNext */)) { + const moduleKindName = ModuleKind[moduleKind]; + createOptionValueDiagnostic("moduleResolution", Diagnostics.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1, moduleKindName, moduleKindName); + } else if (ModuleResolutionKind[moduleResolution] && (3 /* Node16 */ <= moduleResolution && moduleResolution <= 99 /* NodeNext */) && !(100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */)) { + const moduleResolutionName = ModuleResolutionKind[moduleResolution]; + createOptionValueDiagnostic("module", Diagnostics.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1, moduleResolutionName, moduleResolutionName); + } if (!options.noEmit && !options.suppressOutputPathCheck) { const emitHost = getEmitHost(); const emitFilesSeen = /* @__PURE__ */ new Set(); @@ -119684,6 +121476,9 @@ ${lanes.join("\n")} return directoryStructureHost.readDirectory(root, extensions, excludes, includes, depth); }, readFile: (f) => directoryStructureHost.readFile(f), + directoryExists: maybeBind(directoryStructureHost, directoryStructureHost.directoryExists), + getDirectories: maybeBind(directoryStructureHost, directoryStructureHost.getDirectories), + realpath: maybeBind(directoryStructureHost, directoryStructureHost.realpath), useCaseSensitiveFileNames: host.useCaseSensitiveFileNames(), getCurrentDirectory: () => host.getCurrentDirectory(), onUnRecoverableConfigFileDiagnostic: host.onUnRecoverableConfigFileDiagnostic || returnUndefined, @@ -119860,7 +121655,7 @@ ${lanes.join("\n")} Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code, Diagnostics.Duplicate_label_0.code, Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments.code, - Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block.code, + Diagnostics.for_await_loops_cannot_be_used_inside_a_class_static_block.code, Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code, Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code, Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code, @@ -119890,14 +121685,17 @@ ${lanes.join("\n")} Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind.code, Diagnostics._0_modifier_cannot_be_used_here.code, Diagnostics._0_modifier_must_precede_1_modifier.code, - Diagnostics.const_declarations_can_only_be_declared_inside_a_block.code, - Diagnostics.const_declarations_must_be_initialized.code, + Diagnostics._0_declarations_can_only_be_declared_inside_a_block.code, + Diagnostics._0_declarations_must_be_initialized.code, Diagnostics.extends_clause_already_seen.code, - Diagnostics.let_declarations_can_only_be_declared_inside_a_block.code, Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code, Diagnostics.Class_constructor_may_not_be_a_generator.code, Diagnostics.Class_constructor_may_not_be_an_accessor.code, - Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code + Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code, + Diagnostics.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code, + Diagnostics.Private_field_0_must_be_declared_in_an_enclosing_class.code, + // Type errors + Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code ]); emitSkippedWithNoDiagnostics = { diagnostics: emptyArray, sourceMaps: void 0, emittedFiles: void 0, emitSkipped: true }; } @@ -122733,17 +124531,17 @@ ${lanes.join("\n")} function getWatchErrorSummaryDiagnosticMessage(errorCount) { return errorCount === 1 ? Diagnostics.Found_1_error_Watching_for_file_changes : Diagnostics.Found_0_errors_Watching_for_file_changes; } - function prettyPathForFileError(error, cwd) { - const line = formatColorAndReset(":" + error.line, "\x1B[90m" /* Grey */); - if (pathIsAbsolute(error.fileName) && pathIsAbsolute(cwd)) { + function prettyPathForFileError(error2, cwd) { + const line = formatColorAndReset(":" + error2.line, "\x1B[90m" /* Grey */); + if (pathIsAbsolute(error2.fileName) && pathIsAbsolute(cwd)) { return getRelativePathFromDirectory( cwd, - error.fileName, + error2.fileName, /*ignoreCase*/ false ) + line; } - return error.fileName + line; + return error2.fileName + line; } function getErrorSummaryText(errorCount, filesInError, newLine, host) { if (errorCount === 0) @@ -122876,12 +124674,12 @@ ${lanes.join("\n")} return true; const isJsonFile = fileExtensionIs(fileName, ".json" /* Json */); const basePath = getDirectoryPath(getNormalizedAbsolutePath(configFile.fileName, program.getCurrentDirectory())); - const useCaseSensitiveFileNames = program.useCaseSensitiveFileNames(); + const useCaseSensitiveFileNames2 = program.useCaseSensitiveFileNames(); return find((_b = configFile == null ? void 0 : configFile.configFileSpecs) == null ? void 0 : _b.validatedIncludeSpecs, (includeSpec) => { if (isJsonFile && !endsWith(includeSpec, ".json" /* Json */)) return false; const pattern = getPatternFromSpec(includeSpec, basePath, "files"); - return !!pattern && getRegexFromPattern(`(${pattern})$`, useCaseSensitiveFileNames).test(fileName); + return !!pattern && getRegexFromPattern(`(${pattern})$`, useCaseSensitiveFileNames2).test(fileName); }); } function fileIncludeReasonToDiagnostics(program, reason, fileNameConvertor) { @@ -123085,7 +124883,7 @@ ${lanes.join("\n")} return result; } function createCompilerHostFromProgramHost(host, getCompilerOptions, directoryStructureHost = host) { - const useCaseSensitiveFileNames = host.useCaseSensitiveFileNames(); + const useCaseSensitiveFileNames2 = host.useCaseSensitiveFileNames(); const compilerHost = { getSourceFile: createGetSourceFile( (fileName, encoding) => !encoding ? compilerHost.readFile(fileName) : host.readFile(fileName, encoding), @@ -123101,8 +124899,8 @@ ${lanes.join("\n")} (path) => host.directoryExists(path) ), getCurrentDirectory: memoize(() => host.getCurrentDirectory()), - useCaseSensitiveFileNames: () => useCaseSensitiveFileNames, - getCanonicalFileName: createGetCanonicalFileName(useCaseSensitiveFileNames), + useCaseSensitiveFileNames: () => useCaseSensitiveFileNames2, + getCanonicalFileName: createGetCanonicalFileName(useCaseSensitiveFileNames2), getNewLine: () => getNewLineCharacter(getCompilerOptions()), fileExists: (f) => host.fileExists(f), readFile: (f) => host.readFile(f), @@ -123383,7 +125181,7 @@ ${lanes.join("\n")} const sourceFilesCache = /* @__PURE__ */ new Map(); let missingFilePathsRequestedForRelease; let hasChangedCompilerOptions = false; - const useCaseSensitiveFileNames = host.useCaseSensitiveFileNames(); + const useCaseSensitiveFileNames2 = host.useCaseSensitiveFileNames(); const currentDirectory = host.getCurrentDirectory(); const { configFileName, optionsToExtend: optionsToExtendForConfigFile = {}, watchOptionsToExtend, extraFileExtensions, createProgram: createProgram2 } = host; let { rootFiles: rootFileNames, options: compilerOptions, watchOptions, projectReferences } = host; @@ -123391,7 +125189,7 @@ ${lanes.join("\n")} let configFileParsingDiagnostics; let canConfigFileJsonReportNoInputFiles = false; let hasChangedConfigFileParsingErrors = false; - const cachedDirectoryStructureHost = configFileName === void 0 ? void 0 : createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensitiveFileNames); + const cachedDirectoryStructureHost = configFileName === void 0 ? void 0 : createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensitiveFileNames2); const directoryStructureHost = cachedDirectoryStructureHost || host; const parseConfigFileHost = parseConfigHostFromCompilerHostLike(host, directoryStructureHost); let newLine = updateNewLine(); @@ -123409,8 +125207,8 @@ ${lanes.join("\n")} Debug.assert(compilerOptions); Debug.assert(rootFileNames); const { watchFile: watchFile2, watchDirectory, writeLog } = createWatchFactory(host, compilerOptions); - const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames); - writeLog(`Current directory: ${currentDirectory} CaseSensitiveFileNames: ${useCaseSensitiveFileNames}`); + const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2); + writeLog(`Current directory: ${currentDirectory} CaseSensitiveFileNames: ${useCaseSensitiveFileNames2}`); let configFileWatcher; if (configFileName) { configFileWatcher = watchFile2(configFileName, scheduleProgramReload, 2e3 /* High */, watchOptions, WatchType.ConfigFile); @@ -123519,7 +125317,6 @@ ${lanes.join("\n")} if (hasChangedCompilerOptions) { newLine = updateNewLine(); if (program && changesAffectModuleResolution(program.getCompilerOptions(), compilerOptions)) { - debugger; resolutionCache.onChangesAffectModuleResolution(); } } @@ -123624,7 +125421,8 @@ ${lanes.join("\n")} if (isFileMissingOnHost(hostSourceFile)) { return void 0; } - if (hostSourceFile === void 0 || shouldCreateNewSourceFile || isFilePresenceUnknownOnHost(hostSourceFile)) { + const impliedNodeFormat = typeof languageVersionOrOptions === "object" ? languageVersionOrOptions.impliedNodeFormat : void 0; + if (hostSourceFile === void 0 || shouldCreateNewSourceFile || isFilePresenceUnknownOnHost(hostSourceFile) || hostSourceFile.sourceFile.impliedNodeFormat !== impliedNodeFormat) { const sourceFile = getNewSourceFile(fileName, languageVersionOrOptions, onError); if (hostSourceFile) { if (sourceFile) { @@ -123915,7 +125713,7 @@ ${lanes.join("\n")} options: compilerOptions, program: getCurrentBuilderProgram() || rootFileNames, currentDirectory, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, writeLog, toPath: toPath3 })) @@ -124005,7 +125803,7 @@ ${lanes.join("\n")} options: config.parsedCommandLine.options, program: config.parsedCommandLine.fileNames, currentDirectory, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, writeLog, toPath: toPath3 })) @@ -126125,6 +127923,8 @@ ${lanes.join("\n")} init_sourcemap(); init_utilities3(); init_destructuring(); + init_classThis(); + init_namedEvaluation(); init_taggedTemplate(); init_ts(); init_classFields(); @@ -126766,6 +128566,8 @@ ${lanes.join("\n")} ScriptElementKind2["enumMemberElement"] = "enum member"; ScriptElementKind2["variableElement"] = "var"; ScriptElementKind2["localVariableElement"] = "local var"; + ScriptElementKind2["variableUsingElement"] = "using"; + ScriptElementKind2["variableAwaitUsingElement"] = "await using"; ScriptElementKind2["functionElement"] = "function"; ScriptElementKind2["localFunctionElement"] = "local function"; ScriptElementKind2["memberFunctionElement"] = "method"; @@ -126879,36 +128681,36 @@ ${lanes.join("\n")} // src/services/utilities.ts function getMeaningFromDeclaration(node) { switch (node.kind) { - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return isInJSFile(node) && getJSDocEnumTag(node) ? 7 /* All */ : 1 /* Value */; - case 168 /* Parameter */: - case 207 /* BindingElement */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 298 /* CatchClause */: - case 290 /* JsxAttribute */: + case 169 /* Parameter */: + case 208 /* BindingElement */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 299 /* CatchClause */: + case 291 /* JsxAttribute */: return 1 /* Value */; - case 167 /* TypeParameter */: - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 186 /* TypeLiteral */: + case 168 /* TypeParameter */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 187 /* TypeLiteral */: return 2 /* Type */; - case 352 /* JSDocTypedefTag */: + case 353 /* JSDocTypedefTag */: return node.name === void 0 ? 1 /* Value */ | 2 /* Type */ : 2 /* Type */; - case 305 /* EnumMember */: - case 262 /* ClassDeclaration */: + case 306 /* EnumMember */: + case 263 /* ClassDeclaration */: return 1 /* Value */ | 2 /* Type */; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: if (isAmbientModule(node)) { return 4 /* Namespace */ | 1 /* Value */; } else if (getModuleInstanceState(node) === 1 /* Instantiated */) { @@ -126916,15 +128718,15 @@ ${lanes.join("\n")} } else { return 4 /* Namespace */; } - case 265 /* EnumDeclaration */: - case 274 /* NamedImports */: - case 275 /* ImportSpecifier */: - case 270 /* ImportEqualsDeclaration */: - case 271 /* ImportDeclaration */: - case 276 /* ExportAssignment */: - case 277 /* ExportDeclaration */: + case 266 /* EnumDeclaration */: + case 275 /* NamedImports */: + case 276 /* ImportSpecifier */: + case 271 /* ImportEqualsDeclaration */: + case 272 /* ImportDeclaration */: + case 277 /* ExportAssignment */: + case 278 /* ExportDeclaration */: return 7 /* All */; - case 311 /* SourceFile */: + case 312 /* SourceFile */: return 4 /* Namespace */ | 1 /* Value */; } return 7 /* All */; @@ -126932,7 +128734,7 @@ ${lanes.join("\n")} function getMeaningFromLocation(node) { node = getAdjustedReferenceLocation(node); const parent2 = node.parent; - if (node.kind === 311 /* SourceFile */) { + if (node.kind === 312 /* SourceFile */) { return 1 /* Value */; } else if (isExportAssignment(parent2) || isExportSpecifier(parent2) || isExternalModuleReference(parent2) || isImportSpecifier(parent2) || isImportClause(parent2) || isImportEqualsDeclaration(parent2) && node === parent2.name) { return 7 /* All */; @@ -126956,11 +128758,11 @@ ${lanes.join("\n")} } } function getMeaningFromRightHandSideOfImportEquals(node) { - const name = node.kind === 165 /* QualifiedName */ ? node : isQualifiedName(node.parent) && node.parent.right === node ? node.parent : void 0; - return name && name.parent.kind === 270 /* ImportEqualsDeclaration */ ? 7 /* All */ : 4 /* Namespace */; + const name = node.kind === 166 /* QualifiedName */ ? node : isQualifiedName(node.parent) && node.parent.right === node ? node.parent : void 0; + return name && name.parent.kind === 271 /* ImportEqualsDeclaration */ ? 7 /* All */ : 4 /* Namespace */; } function isInRightSideOfInternalImportEqualsDeclaration(node) { - while (node.parent.kind === 165 /* QualifiedName */) { + while (node.parent.kind === 166 /* QualifiedName */) { node = node.parent; } return isInternalModuleImportEqualsDeclaration(node.parent) && node.parent.moduleReference === node; @@ -126971,26 +128773,26 @@ ${lanes.join("\n")} function isQualifiedNameNamespaceReference(node) { let root = node; let isLastClause = true; - if (root.parent.kind === 165 /* QualifiedName */) { - while (root.parent && root.parent.kind === 165 /* QualifiedName */) { + if (root.parent.kind === 166 /* QualifiedName */) { + while (root.parent && root.parent.kind === 166 /* QualifiedName */) { root = root.parent; } isLastClause = root.right === node; } - return root.parent.kind === 182 /* TypeReference */ && !isLastClause; + return root.parent.kind === 183 /* TypeReference */ && !isLastClause; } function isPropertyAccessNamespaceReference(node) { let root = node; let isLastClause = true; - if (root.parent.kind === 210 /* PropertyAccessExpression */) { - while (root.parent && root.parent.kind === 210 /* PropertyAccessExpression */) { + if (root.parent.kind === 211 /* PropertyAccessExpression */) { + while (root.parent && root.parent.kind === 211 /* PropertyAccessExpression */) { root = root.parent; } isLastClause = root.name === node; } - if (!isLastClause && root.parent.kind === 232 /* ExpressionWithTypeArguments */ && root.parent.parent.kind === 297 /* HeritageClause */) { + if (!isLastClause && root.parent.kind === 233 /* ExpressionWithTypeArguments */ && root.parent.parent.kind === 298 /* HeritageClause */) { const decl = root.parent.parent.parent; - return decl.kind === 262 /* ClassDeclaration */ && root.parent.parent.token === 119 /* ImplementsKeyword */ || decl.kind === 263 /* InterfaceDeclaration */ && root.parent.parent.token === 96 /* ExtendsKeyword */; + return decl.kind === 263 /* ClassDeclaration */ && root.parent.parent.token === 119 /* ImplementsKeyword */ || decl.kind === 264 /* InterfaceDeclaration */ && root.parent.parent.token === 96 /* ExtendsKeyword */; } return false; } @@ -127001,15 +128803,15 @@ ${lanes.join("\n")} switch (node.kind) { case 110 /* ThisKeyword */: return !isExpressionNode(node); - case 196 /* ThisType */: + case 197 /* ThisType */: return true; } switch (node.parent.kind) { - case 182 /* TypeReference */: + case 183 /* TypeReference */: return true; - case 204 /* ImportType */: + case 205 /* ImportType */: return !node.parent.isTypeOf; - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return isPartOfTypeNode(node.parent); } return false; @@ -127056,7 +128858,7 @@ ${lanes.join("\n")} } function getTargetLabel(referenceNode, labelName) { while (referenceNode) { - if (referenceNode.kind === 255 /* LabeledStatement */ && referenceNode.label.escapedText === labelName) { + if (referenceNode.kind === 256 /* LabeledStatement */ && referenceNode.label.escapedText === labelName) { return referenceNode.label; } referenceNode = referenceNode.parent; @@ -127106,22 +128908,22 @@ ${lanes.join("\n")} } function isLiteralNameOfPropertyDeclarationOrIndexAccess(node) { switch (node.parent.kind) { - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 302 /* PropertyAssignment */: - case 305 /* EnumMember */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 266 /* ModuleDeclaration */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 303 /* PropertyAssignment */: + case 306 /* EnumMember */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 267 /* ModuleDeclaration */: return getNameOfDeclaration(node.parent) === node; - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return node.parent.argumentExpression === node; - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: return true; - case 200 /* LiteralType */: - return node.parent.parent.kind === 198 /* IndexedAccessType */; + case 201 /* LiteralType */: + return node.parent.parent.kind === 199 /* IndexedAccessType */; default: return false; } @@ -127139,83 +128941,83 @@ ${lanes.join("\n")} return void 0; } switch (node.kind) { - case 311 /* SourceFile */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: - case 266 /* ModuleDeclaration */: + case 312 /* SourceFile */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + case 267 /* ModuleDeclaration */: return node; } } } function getNodeKind(node) { switch (node.kind) { - case 311 /* SourceFile */: + case 312 /* SourceFile */: return isExternalModule(node) ? "module" /* moduleElement */ : "script" /* scriptElement */; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return "module" /* moduleElement */; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return "class" /* classElement */; - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: return "interface" /* interfaceElement */; - case 264 /* TypeAliasDeclaration */: - case 344 /* JSDocCallbackTag */: - case 352 /* JSDocTypedefTag */: + case 265 /* TypeAliasDeclaration */: + case 345 /* JSDocCallbackTag */: + case 353 /* JSDocTypedefTag */: return "type" /* typeElement */; - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return "enum" /* enumElement */; - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return getKindOfVariableDeclaration(node); - case 207 /* BindingElement */: + case 208 /* BindingElement */: return getKindOfVariableDeclaration(getRootDeclaration(node)); - case 218 /* ArrowFunction */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: return "function" /* functionElement */; - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return "getter" /* memberGetAccessorElement */; - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return "setter" /* memberSetAccessorElement */; - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: return "method" /* memberFunctionElement */; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: const { initializer } = node; return isFunctionLike(initializer) ? "method" /* memberFunctionElement */ : "property" /* memberVariableElement */; - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 303 /* ShorthandPropertyAssignment */: - case 304 /* SpreadAssignment */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 304 /* ShorthandPropertyAssignment */: + case 305 /* SpreadAssignment */: return "property" /* memberVariableElement */; - case 180 /* IndexSignature */: + case 181 /* IndexSignature */: return "index" /* indexSignatureElement */; - case 179 /* ConstructSignature */: + case 180 /* ConstructSignature */: return "construct" /* constructSignatureElement */; - case 178 /* CallSignature */: + case 179 /* CallSignature */: return "call" /* callSignatureElement */; - case 175 /* Constructor */: - case 174 /* ClassStaticBlockDeclaration */: + case 176 /* Constructor */: + case 175 /* ClassStaticBlockDeclaration */: return "constructor" /* constructorImplementationElement */; - case 167 /* TypeParameter */: + case 168 /* TypeParameter */: return "type parameter" /* typeParameterElement */; - case 305 /* EnumMember */: + case 306 /* EnumMember */: return "enum member" /* enumMemberElement */; - case 168 /* Parameter */: + case 169 /* Parameter */: return hasSyntacticModifier(node, 16476 /* ParameterPropertyModifier */) ? "property" /* memberVariableElement */ : "parameter" /* parameterElement */; - case 270 /* ImportEqualsDeclaration */: - case 275 /* ImportSpecifier */: - case 280 /* ExportSpecifier */: - case 273 /* NamespaceImport */: - case 279 /* NamespaceExport */: + case 271 /* ImportEqualsDeclaration */: + case 276 /* ImportSpecifier */: + case 281 /* ExportSpecifier */: + case 274 /* NamespaceImport */: + case 280 /* NamespaceExport */: return "alias" /* alias */; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: const kind = getAssignmentDeclarationKind(node); const { right } = node; switch (kind) { @@ -127243,7 +129045,7 @@ ${lanes.join("\n")} } case 80 /* Identifier */: return isImportClause(node.parent) ? "alias" /* alias */ : "" /* unknown */; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: const scriptKind = getNodeKind(node.expression); return scriptKind === "" /* unknown */ ? "const" /* constElement */ : scriptKind; default: @@ -127258,7 +129060,7 @@ ${lanes.join("\n")} case 110 /* ThisKeyword */: return true; case 80 /* Identifier */: - return identifierIsThisKeyword(node) && node.parent.kind === 168 /* Parameter */; + return identifierIsThisKeyword(node) && node.parent.kind === 169 /* Parameter */; default: return false; } @@ -127306,41 +129108,41 @@ ${lanes.join("\n")} return false; } switch (n.kind) { - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: - case 209 /* ObjectLiteralExpression */: - case 205 /* ObjectBindingPattern */: - case 186 /* TypeLiteral */: - case 240 /* Block */: - case 267 /* ModuleBlock */: - case 268 /* CaseBlock */: - case 274 /* NamedImports */: - case 278 /* NamedExports */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + case 210 /* ObjectLiteralExpression */: + case 206 /* ObjectBindingPattern */: + case 187 /* TypeLiteral */: + case 241 /* Block */: + case 268 /* ModuleBlock */: + case 269 /* CaseBlock */: + case 275 /* NamedImports */: + case 279 /* NamedExports */: return nodeEndsWith(n, 20 /* CloseBraceToken */, sourceFile); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return isCompletedNode(n.block, sourceFile); - case 213 /* NewExpression */: + case 214 /* NewExpression */: if (!n.arguments) { return true; } - case 212 /* CallExpression */: - case 216 /* ParenthesizedExpression */: - case 195 /* ParenthesizedType */: + case 213 /* CallExpression */: + case 217 /* ParenthesizedExpression */: + case 196 /* ParenthesizedType */: return nodeEndsWith(n, 22 /* CloseParenToken */, sourceFile); - case 183 /* FunctionType */: - case 184 /* ConstructorType */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: return isCompletedNode(n.type, sourceFile); - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 179 /* ConstructSignature */: - case 178 /* CallSignature */: - case 218 /* ArrowFunction */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 180 /* ConstructSignature */: + case 179 /* CallSignature */: + case 219 /* ArrowFunction */: if (n.body) { return isCompletedNode(n.body, sourceFile); } @@ -127348,60 +129150,60 @@ ${lanes.join("\n")} return isCompletedNode(n.type, sourceFile); } return hasChildOfKind(n, 22 /* CloseParenToken */, sourceFile); - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return !!n.body && isCompletedNode(n.body, sourceFile); - case 244 /* IfStatement */: + case 245 /* IfStatement */: if (n.elseStatement) { return isCompletedNode(n.elseStatement, sourceFile); } return isCompletedNode(n.thenStatement, sourceFile); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return isCompletedNode(n.expression, sourceFile) || hasChildOfKind(n, 27 /* SemicolonToken */, sourceFile); - case 208 /* ArrayLiteralExpression */: - case 206 /* ArrayBindingPattern */: - case 211 /* ElementAccessExpression */: - case 166 /* ComputedPropertyName */: - case 188 /* TupleType */: + case 209 /* ArrayLiteralExpression */: + case 207 /* ArrayBindingPattern */: + case 212 /* ElementAccessExpression */: + case 167 /* ComputedPropertyName */: + case 189 /* TupleType */: return nodeEndsWith(n, 24 /* CloseBracketToken */, sourceFile); - case 180 /* IndexSignature */: + case 181 /* IndexSignature */: if (n.type) { return isCompletedNode(n.type, sourceFile); } return hasChildOfKind(n, 24 /* CloseBracketToken */, sourceFile); - case 295 /* CaseClause */: - case 296 /* DefaultClause */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: return false; - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 246 /* WhileStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 247 /* WhileStatement */: return isCompletedNode(n.statement, sourceFile); - case 245 /* DoStatement */: + case 246 /* DoStatement */: return hasChildOfKind(n, 117 /* WhileKeyword */, sourceFile) ? nodeEndsWith(n, 22 /* CloseParenToken */, sourceFile) : isCompletedNode(n.statement, sourceFile); - case 185 /* TypeQuery */: + case 186 /* TypeQuery */: return isCompletedNode(n.exprName, sourceFile); - case 220 /* TypeOfExpression */: - case 219 /* DeleteExpression */: - case 221 /* VoidExpression */: - case 228 /* YieldExpression */: - case 229 /* SpreadElement */: + case 221 /* TypeOfExpression */: + case 220 /* DeleteExpression */: + case 222 /* VoidExpression */: + case 229 /* YieldExpression */: + case 230 /* SpreadElement */: const unaryWordExpression = n; return isCompletedNode(unaryWordExpression.expression, sourceFile); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return isCompletedNode(n.template, sourceFile); - case 227 /* TemplateExpression */: + case 228 /* TemplateExpression */: const lastSpan = lastOrUndefined(n.templateSpans); return isCompletedNode(lastSpan, sourceFile); - case 238 /* TemplateSpan */: + case 239 /* TemplateSpan */: return nodeIsPresent(n.literal); - case 277 /* ExportDeclaration */: - case 271 /* ImportDeclaration */: + case 278 /* ExportDeclaration */: + case 272 /* ImportDeclaration */: return nodeIsPresent(n.moduleSpecifier); - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: return isCompletedNode(n.operand, sourceFile); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return isCompletedNode(n.right, sourceFile); - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: return isCompletedNode(n.whenFalse, sourceFile); default: return true; @@ -127492,7 +129294,7 @@ ${lanes.join("\n")} return lastTypeNode; } function getContextualTypeFromParentOrAncestorTypeNode(node, checker) { - if (node.flags & (8388608 /* JSDoc */ & ~262144 /* JavaScriptFile */)) + if (node.flags & (16777216 /* JSDoc */ & ~524288 /* JavaScriptFile */)) return void 0; const contextualType = getContextualTypeFromParent(node, checker); if (contextualType) @@ -127503,13 +129305,13 @@ ${lanes.join("\n")} function getAdjustedLocationForDeclaration(node, forRename) { if (!forRename) { switch (node.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return getAdjustedLocationForClass(node); - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: return getAdjustedLocationForFunction(node); - case 175 /* Constructor */: + case 176 /* Constructor */: return node; } } @@ -127618,7 +129420,7 @@ ${lanes.join("\n")} if (node.kind === 149 /* RequireKeyword */ && isExternalModuleReference(parent2)) { return parent2.expression; } - if (node.kind === 160 /* FromKeyword */ && (isImportDeclaration(parent2) || isExportDeclaration(parent2)) && parent2.moduleSpecifier) { + if (node.kind === 161 /* FromKeyword */ && (isImportDeclaration(parent2) || isExportDeclaration(parent2)) && parent2.moduleSpecifier) { return parent2.moduleSpecifier; } if ((node.kind === 96 /* ExtendsKeyword */ || node.kind === 119 /* ImplementsKeyword */) && isHeritageClause(parent2) && parent2.token === node.kind) { @@ -127659,7 +129461,7 @@ ${lanes.join("\n")} if (node.kind === 130 /* AsKeyword */ && isAsExpression(parent2) && isTypeReferenceNode(parent2.type)) { return parent2.type.typeName; } - if (node.kind === 103 /* InKeyword */ && isForInStatement(parent2) || node.kind === 164 /* OfKeyword */ && isForOfStatement(parent2)) { + if (node.kind === 103 /* InKeyword */ && isForInStatement(parent2) || node.kind === 165 /* OfKeyword */ && isForOfStatement(parent2)) { return skipOuterExpressions(parent2.expression); } } @@ -127852,7 +129654,7 @@ ${lanes.join("\n")} } } } - Debug.assert(startNode2 !== void 0 || n.kind === 311 /* SourceFile */ || n.kind === 1 /* EndOfFileToken */ || isJSDocCommentContainingNode(n)); + Debug.assert(startNode2 !== void 0 || n.kind === 312 /* SourceFile */ || n.kind === 1 /* EndOfFileToken */ || isJSDocCommentContainingNode(n)); const candidate = findRightmostChildNodeWithTokens( children, /*exclusiveStartPosition*/ @@ -127887,7 +129689,7 @@ ${lanes.join("\n")} for (let i = exclusiveStartPosition - 1; i >= 0; i--) { const child = children[i]; if (isWhiteSpaceOnlyJsxText(child)) { - if (i === 0 && (parentKind === 12 /* JsxText */ || parentKind === 284 /* JsxSelfClosingElement */)) { + if (i === 0 && (parentKind === 12 /* JsxText */ || parentKind === 285 /* JsxSelfClosingElement */)) { Debug.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`"); } } else if (nodeHasTokens(children[i], sourceFile)) { @@ -127919,13 +129721,13 @@ ${lanes.join("\n")} if (token.kind === 30 /* LessThanToken */ && token.parent.kind === 12 /* JsxText */) { return true; } - if (token.kind === 30 /* LessThanToken */ && token.parent.kind === 293 /* JsxExpression */) { + if (token.kind === 30 /* LessThanToken */ && token.parent.kind === 294 /* JsxExpression */) { return true; } - if (token && token.kind === 20 /* CloseBraceToken */ && token.parent.kind === 293 /* JsxExpression */) { + if (token && token.kind === 20 /* CloseBraceToken */ && token.parent.kind === 294 /* JsxExpression */) { return true; } - if (token.kind === 30 /* LessThanToken */ && token.parent.kind === 286 /* JsxClosingElement */) { + if (token.kind === 30 /* LessThanToken */ && token.parent.kind === 287 /* JsxClosingElement */) { return true; } return false; @@ -127953,9 +129755,9 @@ ${lanes.join("\n")} function isInsideJsxElement(sourceFile, position) { function isInsideJsxElementTraversal(node) { while (node) { - if (node.kind >= 284 /* JsxSelfClosingElement */ && node.kind <= 293 /* JsxExpression */ || node.kind === 12 /* JsxText */ || node.kind === 30 /* LessThanToken */ || node.kind === 32 /* GreaterThanToken */ || node.kind === 80 /* Identifier */ || node.kind === 20 /* CloseBraceToken */ || node.kind === 19 /* OpenBraceToken */ || node.kind === 44 /* SlashToken */) { + if (node.kind >= 285 /* JsxSelfClosingElement */ && node.kind <= 294 /* JsxExpression */ || node.kind === 12 /* JsxText */ || node.kind === 30 /* LessThanToken */ || node.kind === 32 /* GreaterThanToken */ || node.kind === 80 /* Identifier */ || node.kind === 20 /* CloseBraceToken */ || node.kind === 19 /* OpenBraceToken */ || node.kind === 44 /* SlashToken */) { node = node.parent; - } else if (node.kind === 283 /* JsxElement */) { + } else if (node.kind === 284 /* JsxElement */) { if (position > node.getStart(sourceFile)) return true; node = node.parent; @@ -128125,17 +129927,17 @@ ${lanes.join("\n")} result.push("export" /* exportedModifier */); if (flags & 8192 /* Deprecated */) result.push("deprecated" /* deprecatedModifier */); - if (node.flags & 16777216 /* Ambient */) + if (node.flags & 33554432 /* Ambient */) result.push("declare" /* ambientModifier */); - if (node.kind === 276 /* ExportAssignment */) + if (node.kind === 277 /* ExportAssignment */) result.push("export" /* exportedModifier */); return result.length > 0 ? result.join(",") : "" /* none */; } function getTypeArgumentOrTypeParameterList(node) { - if (node.kind === 182 /* TypeReference */ || node.kind === 212 /* CallExpression */) { + if (node.kind === 183 /* TypeReference */ || node.kind === 213 /* CallExpression */) { return node.typeArguments; } - if (isFunctionLike(node) || node.kind === 262 /* ClassDeclaration */ || node.kind === 263 /* InterfaceDeclaration */) { + if (isFunctionLike(node) || node.kind === 263 /* ClassDeclaration */ || node.kind === 264 /* InterfaceDeclaration */) { return node.typeParameters; } return void 0; @@ -128177,14 +129979,14 @@ ${lanes.join("\n")} return result; } function isArrayLiteralOrObjectLiteralDestructuringPattern(node) { - if (node.kind === 208 /* ArrayLiteralExpression */ || node.kind === 209 /* ObjectLiteralExpression */) { - if (node.parent.kind === 225 /* BinaryExpression */ && node.parent.left === node && node.parent.operatorToken.kind === 64 /* EqualsToken */) { + if (node.kind === 209 /* ArrayLiteralExpression */ || node.kind === 210 /* ObjectLiteralExpression */) { + if (node.parent.kind === 226 /* BinaryExpression */ && node.parent.left === node && node.parent.operatorToken.kind === 64 /* EqualsToken */) { return true; } - if (node.parent.kind === 249 /* ForOfStatement */ && node.parent.initializer === node) { + if (node.parent.kind === 250 /* ForOfStatement */ && node.parent.initializer === node) { return true; } - if (isArrayLiteralOrObjectLiteralDestructuringPattern(node.parent.kind === 302 /* PropertyAssignment */ ? node.parent.parent : node.parent)) { + if (isArrayLiteralOrObjectLiteralDestructuringPattern(node.parent.kind === 303 /* PropertyAssignment */ ? node.parent.parent : node.parent)) { return true; } } @@ -128282,7 +130084,7 @@ ${lanes.join("\n")} return type.isTypeParameter() ? type.getConstraint() || type : type; } function getNameFromPropertyName(name) { - return name.kind === 166 /* ComputedPropertyName */ ? isStringOrNumericLiteralLike(name.expression) ? name.expression.text : void 0 : isPrivateIdentifier(name) ? idText(name) : getTextOfIdentifierOrLiteral(name); + return name.kind === 167 /* ComputedPropertyName */ ? isStringOrNumericLiteralLike(name.expression) ? name.expression.text : void 0 : isPrivateIdentifier(name) ? idText(name) : getTextOfIdentifierOrLiteral(name); } function programContainsModules(program) { return program.getSourceFiles().some((s) => !s.isDeclarationFile && !program.isSourceFileFromExternalLibrary(s) && !!(s.externalModuleIndicator || s.commonJsModuleIndicator)); @@ -128404,7 +130206,7 @@ ${lanes.join("\n")} } function insertImports(changes, sourceFile, imports, blankLineBetween, preferences) { const decl = isArray(imports) ? imports[0] : imports; - const importKindPredicate = decl.kind === 242 /* VariableStatement */ ? isRequireVariableStatement : isAnyImportSyntax; + const importKindPredicate = decl.kind === 243 /* VariableStatement */ ? isRequireVariableStatement : isAnyImportSyntax; const existingImportStatements = filter(sourceFile.statements, importKindPredicate); let sortKind = isArray(imports) ? ts_OrganizeImports_exports.detectImportDeclarationSorting(imports, preferences) : 3 /* Both */; const comparer = ts_OrganizeImports_exports.getOrganizeImportsComparer(preferences, sortKind === 2 /* CaseInsensitive */); @@ -128974,13 +130776,13 @@ ${lanes.join("\n")} function getContextualTypeFromParent(node, checker, contextFlags) { const parent2 = walkUpParenthesizedExpressions(node.parent); switch (parent2.kind) { - case 213 /* NewExpression */: + case 214 /* NewExpression */: return checker.getContextualType(parent2, contextFlags); - case 225 /* BinaryExpression */: { + case 226 /* BinaryExpression */: { const { left, operatorToken, right } = parent2; return isEqualityOperatorKind(operatorToken.kind) ? checker.getTypeAtLocation(node === right ? left : right) : checker.getContextualType(node, contextFlags); } - case 295 /* CaseClause */: + case 296 /* CaseClause */: return getSwitchedType(parent2, checker); default: return checker.getContextualType(node, contextFlags); @@ -129006,8 +130808,8 @@ ${lanes.join("\n")} switch (node.kind) { case 11 /* StringLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: - case 227 /* TemplateExpression */: - case 214 /* TaggedTemplateExpression */: + case 228 /* TemplateExpression */: + case 215 /* TaggedTemplateExpression */: return true; default: return false; @@ -129042,16 +130844,16 @@ ${lanes.join("\n")} return typeIsAccessible ? res : void 0; } function syntaxRequiresTrailingCommaOrSemicolonOrASI(kind) { - return kind === 178 /* CallSignature */ || kind === 179 /* ConstructSignature */ || kind === 180 /* IndexSignature */ || kind === 170 /* PropertySignature */ || kind === 172 /* MethodSignature */; + return kind === 179 /* CallSignature */ || kind === 180 /* ConstructSignature */ || kind === 181 /* IndexSignature */ || kind === 171 /* PropertySignature */ || kind === 173 /* MethodSignature */; } function syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI(kind) { - return kind === 261 /* FunctionDeclaration */ || kind === 175 /* Constructor */ || kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */; + return kind === 262 /* FunctionDeclaration */ || kind === 176 /* Constructor */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; } function syntaxRequiresTrailingModuleBlockOrSemicolonOrASI(kind) { - return kind === 266 /* ModuleDeclaration */; + return kind === 267 /* ModuleDeclaration */; } function syntaxRequiresTrailingSemicolonOrASI(kind) { - return kind === 242 /* VariableStatement */ || kind === 243 /* ExpressionStatement */ || kind === 245 /* DoStatement */ || kind === 250 /* ContinueStatement */ || kind === 251 /* BreakStatement */ || kind === 252 /* ReturnStatement */ || kind === 256 /* ThrowStatement */ || kind === 258 /* DebuggerStatement */ || kind === 171 /* PropertyDeclaration */ || kind === 264 /* TypeAliasDeclaration */ || kind === 271 /* ImportDeclaration */ || kind === 270 /* ImportEqualsDeclaration */ || kind === 277 /* ExportDeclaration */ || kind === 269 /* NamespaceExportDeclaration */ || kind === 276 /* ExportAssignment */; + return kind === 243 /* VariableStatement */ || kind === 244 /* ExpressionStatement */ || kind === 246 /* DoStatement */ || kind === 251 /* ContinueStatement */ || kind === 252 /* BreakStatement */ || kind === 253 /* ReturnStatement */ || kind === 257 /* ThrowStatement */ || kind === 259 /* DebuggerStatement */ || kind === 172 /* PropertyDeclaration */ || kind === 265 /* TypeAliasDeclaration */ || kind === 272 /* ImportDeclaration */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 278 /* ExportDeclaration */ || kind === 270 /* NamespaceExportDeclaration */ || kind === 277 /* ExportAssignment */; } function nodeIsASICandidate(node, sourceFile) { const lastToken = node.getLastToken(sourceFile); @@ -129075,7 +130877,7 @@ ${lanes.join("\n")} } else if (!syntaxRequiresTrailingSemicolonOrASI(node.kind)) { return false; } - if (node.kind === 245 /* DoStatement */) { + if (node.kind === 246 /* DoStatement */) { return true; } const topNode = findAncestor(node, (ancestor) => !ancestor.parent); @@ -129453,13 +131255,16 @@ ${lanes.join("\n")} return !(symbol.flags & 33554432 /* Transient */) && (symbol.escapedName === "export=" /* ExportEquals */ || symbol.escapedName === "default" /* Default */); } function getDefaultLikeExportNameFromDeclaration(symbol) { - return firstDefined( - symbol.declarations, - (d) => { - var _a, _b; - return isExportAssignment(d) ? (_a = tryCast(skipOuterExpressions(d.expression), isIdentifier)) == null ? void 0 : _a.text : (_b = tryCast(getNameOfDeclaration(d), isIdentifier)) == null ? void 0 : _b.text; + return firstDefined(symbol.declarations, (d) => { + var _a, _b, _c; + if (isExportAssignment(d)) { + return (_a = tryCast(skipOuterExpressions(d.expression), isIdentifier)) == null ? void 0 : _a.text; } - ); + if (isExportSpecifier(d) && d.symbol.flags === 2097152 /* Alias */) { + return (_b = tryCast(d.propertyName, isIdentifier)) == null ? void 0 : _b.text; + } + return (_c = tryCast(getNameOfDeclaration(d), isIdentifier)) == null ? void 0 : _c.text; + }); } function getSymbolParentOrFail(symbol) { var _a; @@ -129639,7 +131444,7 @@ ${lanes.join("\n")} typeKeywords = [ 133 /* AnyKeyword */, 131 /* AssertsKeyword */, - 162 /* BigIntKeyword */, + 163 /* BigIntKeyword */, 136 /* BooleanKeyword */, 97 /* FalseKeyword */, 140 /* InferKeyword */, @@ -129899,10 +131704,10 @@ ${lanes.join("\n")} } function forEachExternalModuleToImportFrom(program, host, preferences, useAutoImportProvider, cb) { var _a, _b; - const useCaseSensitiveFileNames = hostUsesCaseSensitiveFileNames(host); + const useCaseSensitiveFileNames2 = hostUsesCaseSensitiveFileNames(host); const excludePatterns = preferences.autoImportFileExcludePatterns && mapDefined(preferences.autoImportFileExcludePatterns, (spec) => { const pattern = getPatternFromSpec(spec, "", "exclude"); - return pattern ? getRegexFromPattern(pattern, useCaseSensitiveFileNames) : void 0; + return pattern ? getRegexFromPattern(pattern, useCaseSensitiveFileNames2) : void 0; }); forEachExternalModule(program.getTypeChecker(), program.getSourceFiles(), excludePatterns, (module2, file) => cb( module2, @@ -130437,13 +132242,13 @@ ${lanes.join("\n")} } function checkForClassificationCancellation(cancellationToken, kind) { switch (kind) { - case 266 /* ModuleDeclaration */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 261 /* FunctionDeclaration */: - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 267 /* ModuleDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 262 /* FunctionDeclaration */: + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: cancellationToken.throwIfCancellationRequested(); } } @@ -130659,49 +132464,49 @@ ${lanes.join("\n")} pos = tag.tagName.end; let commentStart = tag.tagName.end; switch (tag.kind) { - case 347 /* JSDocParameterTag */: + case 348 /* JSDocParameterTag */: const param = tag; processJSDocParameterTag(param); commentStart = param.isNameFirst && ((_a = param.typeExpression) == null ? void 0 : _a.end) || param.name.end; break; - case 354 /* JSDocPropertyTag */: + case 355 /* JSDocPropertyTag */: const prop = tag; commentStart = prop.isNameFirst && ((_b = prop.typeExpression) == null ? void 0 : _b.end) || prop.name.end; break; - case 351 /* JSDocTemplateTag */: + case 352 /* JSDocTemplateTag */: processJSDocTemplateTag(tag); pos = tag.end; commentStart = tag.typeParameters.end; break; - case 352 /* JSDocTypedefTag */: + case 353 /* JSDocTypedefTag */: const type = tag; - commentStart = ((_c = type.typeExpression) == null ? void 0 : _c.kind) === 315 /* JSDocTypeExpression */ && ((_d = type.fullName) == null ? void 0 : _d.end) || ((_e = type.typeExpression) == null ? void 0 : _e.end) || commentStart; + commentStart = ((_c = type.typeExpression) == null ? void 0 : _c.kind) === 316 /* JSDocTypeExpression */ && ((_d = type.fullName) == null ? void 0 : _d.end) || ((_e = type.typeExpression) == null ? void 0 : _e.end) || commentStart; break; - case 344 /* JSDocCallbackTag */: + case 345 /* JSDocCallbackTag */: commentStart = tag.typeExpression.end; break; - case 350 /* JSDocTypeTag */: + case 351 /* JSDocTypeTag */: processElement(tag.typeExpression); pos = tag.end; commentStart = tag.typeExpression.end; break; - case 349 /* JSDocThisTag */: - case 346 /* JSDocEnumTag */: + case 350 /* JSDocThisTag */: + case 347 /* JSDocEnumTag */: commentStart = tag.typeExpression.end; break; - case 348 /* JSDocReturnTag */: + case 349 /* JSDocReturnTag */: processElement(tag.typeExpression); pos = tag.end; commentStart = ((_f = tag.typeExpression) == null ? void 0 : _f.end) || commentStart; break; - case 353 /* JSDocSeeTag */: + case 354 /* JSDocSeeTag */: commentStart = ((_g = tag.name) == null ? void 0 : _g.end) || commentStart; break; - case 334 /* JSDocAugmentsTag */: - case 335 /* JSDocImplementsTag */: + case 335 /* JSDocAugmentsTag */: + case 336 /* JSDocImplementsTag */: commentStart = tag.class.end; break; - case 355 /* JSDocThrowsTag */: + case 356 /* JSDocThrowsTag */: processElement(tag.typeExpression); pos = tag.end; commentStart = ((_h = tag.typeExpression) == null ? void 0 : _h.end) || commentStart; @@ -130846,22 +132651,22 @@ ${lanes.join("\n")} } function tryClassifyJsxElementName(token) { switch (token.parent && token.parent.kind) { - case 285 /* JsxOpeningElement */: + case 286 /* JsxOpeningElement */: if (token.parent.tagName === token) { return 19 /* jsxOpenTagName */; } break; - case 286 /* JsxClosingElement */: + case 287 /* JsxClosingElement */: if (token.parent.tagName === token) { return 20 /* jsxCloseTagName */; } break; - case 284 /* JsxSelfClosingElement */: + case 285 /* JsxSelfClosingElement */: if (token.parent.tagName === token) { return 21 /* jsxSelfClosingTagName */; } break; - case 290 /* JsxAttribute */: + case 291 /* JsxAttribute */: if (token.parent.name === token) { return 22 /* jsxAttribute */; } @@ -130882,11 +132687,11 @@ ${lanes.join("\n")} if (token) { const parent2 = token.parent; if (tokenKind === 64 /* EqualsToken */) { - if (parent2.kind === 259 /* VariableDeclaration */ || parent2.kind === 171 /* PropertyDeclaration */ || parent2.kind === 168 /* Parameter */ || parent2.kind === 290 /* JsxAttribute */) { + if (parent2.kind === 260 /* VariableDeclaration */ || parent2.kind === 172 /* PropertyDeclaration */ || parent2.kind === 169 /* Parameter */ || parent2.kind === 291 /* JsxAttribute */) { return 5 /* operator */; } } - if (parent2.kind === 225 /* BinaryExpression */ || parent2.kind === 223 /* PrefixUnaryExpression */ || parent2.kind === 224 /* PostfixUnaryExpression */ || parent2.kind === 226 /* ConditionalExpression */) { + if (parent2.kind === 226 /* BinaryExpression */ || parent2.kind === 224 /* PrefixUnaryExpression */ || parent2.kind === 225 /* PostfixUnaryExpression */ || parent2.kind === 227 /* ConditionalExpression */) { return 5 /* operator */; } } @@ -130896,7 +132701,7 @@ ${lanes.join("\n")} } else if (tokenKind === 10 /* BigIntLiteral */) { return 25 /* bigintLiteral */; } else if (tokenKind === 11 /* StringLiteral */) { - return token && token.parent.kind === 290 /* JsxAttribute */ ? 24 /* jsxAttributeStringLiteralValue */ : 6 /* stringLiteral */; + return token && token.parent.kind === 291 /* JsxAttribute */ ? 24 /* jsxAttributeStringLiteralValue */ : 6 /* stringLiteral */; } else if (tokenKind === 14 /* RegularExpressionLiteral */) { return 6 /* stringLiteral */; } else if (isTemplateLiteralKind(tokenKind)) { @@ -130906,32 +132711,32 @@ ${lanes.join("\n")} } else if (tokenKind === 80 /* Identifier */) { if (token) { switch (token.parent.kind) { - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: if (token.parent.name === token) { return 11 /* className */; } return; - case 167 /* TypeParameter */: + case 168 /* TypeParameter */: if (token.parent.name === token) { return 15 /* typeParameterName */; } return; - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: if (token.parent.name === token) { return 13 /* interfaceName */; } return; - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: if (token.parent.name === token) { return 12 /* enumName */; } return; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: if (token.parent.name === token) { return 14 /* moduleName */; } return; - case 168 /* Parameter */: + case 169 /* Parameter */: if (token.parent.name === token) { return isThisIdentifier(token) ? 3 /* keyword */ : 17 /* parameterName */; } @@ -131116,7 +132921,7 @@ ${lanes.join("\n")} let child = throwStatement; while (child.parent) { const parent2 = child.parent; - if (isFunctionBlock(parent2) || parent2.kind === 311 /* SourceFile */) { + if (isFunctionBlock(parent2) || parent2.kind === 312 /* SourceFile */) { return parent2; } if (isTryStatement(parent2) && parent2.tryBlock === child && parent2.catchClause) { @@ -131146,15 +132951,15 @@ ${lanes.join("\n")} function getBreakOrContinueOwner(statement) { return findAncestor(statement, (node) => { switch (node.kind) { - case 254 /* SwitchStatement */: - if (statement.kind === 250 /* ContinueStatement */) { + case 255 /* SwitchStatement */: + if (statement.kind === 251 /* ContinueStatement */) { return false; } - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 246 /* WhileStatement */: - case 245 /* DoStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 247 /* WhileStatement */: + case 246 /* DoStatement */: return !statement.label || isLabeledBy(node, statement.label.escapedText); default: return isFunctionLike(node) && "quit"; @@ -131167,24 +132972,24 @@ ${lanes.join("\n")} function getNodesToSearchForModifier(declaration, modifierFlag) { const container = declaration.parent; switch (container.kind) { - case 267 /* ModuleBlock */: - case 311 /* SourceFile */: - case 240 /* Block */: - case 295 /* CaseClause */: - case 296 /* DefaultClause */: + case 268 /* ModuleBlock */: + case 312 /* SourceFile */: + case 241 /* Block */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: if (modifierFlag & 256 /* Abstract */ && isClassDeclaration(declaration)) { return [...declaration.members, declaration]; } else { return container.statements; } - case 175 /* Constructor */: - case 173 /* MethodDeclaration */: - case 261 /* FunctionDeclaration */: + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 262 /* FunctionDeclaration */: return [...container.parameters, ...isClassLike(container.parent) ? container.parent.members : []]; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 186 /* TypeLiteral */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 187 /* TypeLiteral */: const nodes = container.members; if (modifierFlag & (28 /* AccessibilityModifier */ | 64 /* Readonly */)) { const constructor = find(container.members, isConstructorDeclaration); @@ -131195,7 +133000,7 @@ ${lanes.join("\n")} return [...nodes, container]; } return nodes; - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return void 0; default: Debug.assertNever(container, "Invalid container kind."); @@ -131211,7 +133016,7 @@ ${lanes.join("\n")} function getLoopBreakContinueOccurrences(loopNode) { const keywords = []; if (pushKeywordIf(keywords, loopNode.getFirstToken(), 99 /* ForKeyword */, 117 /* WhileKeyword */, 92 /* DoKeyword */)) { - if (loopNode.kind === 245 /* DoStatement */) { + if (loopNode.kind === 246 /* DoStatement */) { const loopTokens = loopNode.getChildren(); for (let i = loopTokens.length - 1; i >= 0; i--) { if (pushKeywordIf(keywords, loopTokens[i], 117 /* WhileKeyword */)) { @@ -131231,13 +133036,13 @@ ${lanes.join("\n")} const owner = getBreakOrContinueOwner(breakOrContinueStatement); if (owner) { switch (owner.kind) { - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: return getLoopBreakContinueOccurrences(owner); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return getSwitchCaseDefaultOccurrences(owner); } } @@ -131398,12 +133203,12 @@ ${lanes.join("\n")} function isDocumentRegistryEntry(entry) { return !!entry.sourceFile; } - function createDocumentRegistry(useCaseSensitiveFileNames, currentDirectory) { - return createDocumentRegistryInternal(useCaseSensitiveFileNames, currentDirectory); + function createDocumentRegistry(useCaseSensitiveFileNames2, currentDirectory) { + return createDocumentRegistryInternal(useCaseSensitiveFileNames2, currentDirectory); } - function createDocumentRegistryInternal(useCaseSensitiveFileNames, currentDirectory = "", externalCache) { + function createDocumentRegistryInternal(useCaseSensitiveFileNames2, currentDirectory = "", externalCache) { const buckets = /* @__PURE__ */ new Map(); - const getCanonicalFileName = createGetCanonicalFileName(!!useCaseSensitiveFileNames); + const getCanonicalFileName = createGetCanonicalFileName(!!useCaseSensitiveFileNames2); function reportStats() { const bucketInfoArray = arrayFrom(buckets.keys()).filter((name) => name && name.charAt(0) === "_").map((name) => { const entries = buckets.get(name); @@ -131584,13 +133389,6 @@ ${lanes.join("\n")} } } } - function getLanguageServiceRefCounts(path, scriptKind) { - return arrayFrom(buckets.entries(), ([key, bucket]) => { - const bucketEntry = bucket.get(path); - const entry = bucketEntry && getDocumentRegistryEntry(bucketEntry, scriptKind); - return [key, entry && entry.languageServiceRefCount]; - }); - } return { acquireDocument, acquireDocumentWithKey, @@ -131598,9 +133396,10 @@ ${lanes.join("\n")} updateDocumentWithKey, releaseDocument, releaseDocumentWithKey, - getLanguageServiceRefCounts, + getKeyForCompilationSettings, + getDocumentRegistryBucketKeyWithMode, reportStats, - getKeyForCompilationSettings + getBuckets: () => buckets }; } function getKeyForCompilationSettings(settings) { @@ -131618,12 +133417,12 @@ ${lanes.join("\n")} // src/services/getEditsForFileRename.ts function getEditsForFileRename(program, oldFileOrDirPath, newFileOrDirPath, host, formatContext, preferences, sourceMapper) { - const useCaseSensitiveFileNames = hostUsesCaseSensitiveFileNames(host); - const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames); + const useCaseSensitiveFileNames2 = hostUsesCaseSensitiveFileNames(host); + const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2); const oldToNew = getPathUpdater(oldFileOrDirPath, newFileOrDirPath, getCanonicalFileName, sourceMapper); const newToOld = getPathUpdater(newFileOrDirPath, oldFileOrDirPath, getCanonicalFileName, sourceMapper); return ts_textChanges_exports.ChangeTracker.with({ host, formatContext, preferences }, (changeTracker) => { - updateTsconfigFiles(program, changeTracker, oldToNew, oldFileOrDirPath, newFileOrDirPath, host.getCurrentDirectory(), useCaseSensitiveFileNames); + updateTsconfigFiles(program, changeTracker, oldToNew, oldFileOrDirPath, newFileOrDirPath, host.getCurrentDirectory(), useCaseSensitiveFileNames2); updateImports(program, changeTracker, oldToNew, newToOld, host, getCanonicalFileName); }); } @@ -131645,7 +133444,7 @@ ${lanes.join("\n")} const rel = getRelativePathFromFile(a0, b0, getCanonicalFileName); return combinePathsSafe(getDirectoryPath(a1), rel); } - function updateTsconfigFiles(program, changeTracker, oldToNew, oldFileOrDirPath, newFileOrDirPath, currentDirectory, useCaseSensitiveFileNames) { + function updateTsconfigFiles(program, changeTracker, oldToNew, oldFileOrDirPath, newFileOrDirPath, currentDirectory, useCaseSensitiveFileNames2) { const { configFile } = program.getCompilerOptions(); if (!configFile) return; @@ -131669,10 +133468,10 @@ ${lanes.join("\n")} /*excludes*/ [], includes, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames2, currentDirectory ); - if (getRegexFromPattern(Debug.checkDefined(matchers.includeFilePattern), useCaseSensitiveFileNames).test(oldFileOrDirPath) && !getRegexFromPattern(Debug.checkDefined(matchers.includeFilePattern), useCaseSensitiveFileNames).test(newFileOrDirPath)) { + if (getRegexFromPattern(Debug.checkDefined(matchers.includeFilePattern), useCaseSensitiveFileNames2).test(oldFileOrDirPath) && !getRegexFromPattern(Debug.checkDefined(matchers.includeFilePattern), useCaseSensitiveFileNames2).test(newFileOrDirPath)) { changeTracker.insertNodeAfter(configFile, last(property.initializer.elements), factory.createStringLiteral(relativePath(newFileOrDirPath))); } return; @@ -131720,7 +133519,7 @@ ${lanes.join("\n")} configDir, path, /*ignoreCase*/ - !useCaseSensitiveFileNames + !useCaseSensitiveFileNames2 ); } } @@ -132267,7 +134066,7 @@ ${lanes.join("\n")} if (token === 156 /* TypeKeyword */) { const skipTypeKeyword = scanner.lookAhead(() => { const token2 = scanner.scan(); - return token2 !== 160 /* FromKeyword */ && (token2 === 42 /* AsteriskToken */ || token2 === 19 /* OpenBraceToken */ || token2 === 80 /* Identifier */ || isKeyword(token2)); + return token2 !== 161 /* FromKeyword */ && (token2 === 42 /* AsteriskToken */ || token2 === 19 /* OpenBraceToken */ || token2 === 80 /* Identifier */ || isKeyword(token2)); }); if (skipTypeKeyword) { token = nextToken(); @@ -132275,7 +134074,7 @@ ${lanes.join("\n")} } if (token === 80 /* Identifier */ || isKeyword(token)) { token = nextToken(); - if (token === 160 /* FromKeyword */) { + if (token === 161 /* FromKeyword */) { token = nextToken(); if (token === 11 /* StringLiteral */) { recordModuleName(); @@ -132301,7 +134100,7 @@ ${lanes.join("\n")} } if (token === 20 /* CloseBraceToken */) { token = nextToken(); - if (token === 160 /* FromKeyword */) { + if (token === 161 /* FromKeyword */) { token = nextToken(); if (token === 11 /* StringLiteral */) { recordModuleName(); @@ -132314,7 +134113,7 @@ ${lanes.join("\n")} token = nextToken(); if (token === 80 /* Identifier */ || isKeyword(token)) { token = nextToken(); - if (token === 160 /* FromKeyword */) { + if (token === 161 /* FromKeyword */) { token = nextToken(); if (token === 11 /* StringLiteral */) { recordModuleName(); @@ -132349,7 +134148,7 @@ ${lanes.join("\n")} } if (token === 20 /* CloseBraceToken */) { token = nextToken(); - if (token === 160 /* FromKeyword */) { + if (token === 161 /* FromKeyword */) { token = nextToken(); if (token === 11 /* StringLiteral */) { recordModuleName(); @@ -132358,7 +134157,7 @@ ${lanes.join("\n")} } } else if (token === 42 /* AsteriskToken */) { token = nextToken(); - if (token === 160 /* FromKeyword */) { + if (token === 161 /* FromKeyword */) { token = nextToken(); if (token === 11 /* StringLiteral */) { recordModuleName(); @@ -132672,7 +134471,7 @@ ${lanes.join("\n")} "src/services/sourcemaps.ts"() { "use strict"; init_ts4(); - base64UrlRegExp = /^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/; + base64UrlRegExp = /^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/; } }); @@ -132720,8 +134519,8 @@ ${lanes.join("\n")} diags.push(createDiagnosticForNode(init, Diagnostics.require_call_may_be_converted_to_an_import)); } } - const jsdocTypedefNode = ts_codefix_exports.getJSDocTypedefNode(node); - if (jsdocTypedefNode) { + const jsdocTypedefNodes = ts_codefix_exports.getJSDocTypedefNodes(node); + for (const jsdocTypedefNode of jsdocTypedefNodes) { diags.push(createDiagnosticForNode(jsdocTypedefNode, Diagnostics.JSDoc_typedef_may_be_converted_to_TypeScript_type)); } if (ts_codefix_exports.parameterShouldGetTypeFromJSDoc(node)) { @@ -132737,13 +134536,13 @@ ${lanes.join("\n")} function containsTopLevelCommonjs(sourceFile) { return sourceFile.statements.some((statement) => { switch (statement.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return statement.declarationList.declarations.some((decl) => !!decl.initializer && isRequireCall( propertyAccessLeftHandSide(decl.initializer), /*requireStringLiteralLikeArgument*/ true )); - case 243 /* ExpressionStatement */: { + case 244 /* ExpressionStatement */: { const { expression } = statement; if (!isBinaryExpression(expression)) return isRequireCall( @@ -132764,10 +134563,10 @@ ${lanes.join("\n")} } function importNameForConvertToDefaultImport(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: const { importClause, moduleSpecifier } = node; - return importClause && !importClause.name && importClause.namedBindings && importClause.namedBindings.kind === 273 /* NamespaceImport */ && isStringLiteral(moduleSpecifier) ? importClause.namedBindings.name : void 0; - case 270 /* ImportEqualsDeclaration */: + return importClause && !importClause.name && importClause.namedBindings && importClause.namedBindings.kind === 274 /* NamespaceImport */ && isStringLiteral(moduleSpecifier) ? importClause.namedBindings.name : void 0; + case 271 /* ImportEqualsDeclaration */: return node.name; default: return void 0; @@ -132831,18 +134630,18 @@ ${lanes.join("\n")} } function isFixablePromiseArgument(arg, checker) { switch (arg.kind) { - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: const functionFlags = getFunctionFlags(arg); if (functionFlags & 1 /* Generator */) { return false; } - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: visitedNestedConvertibleFunctions.set(getKeyFromNode(arg), true); case 106 /* NullKeyword */: return true; case 80 /* Identifier */: - case 210 /* PropertyAccessExpression */: { + case 211 /* PropertyAccessExpression */: { const symbol = checker.getSymbolAtLocation(arg); if (!symbol) { return false; @@ -132876,10 +134675,10 @@ ${lanes.join("\n")} } function canBeConvertedToAsync(node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 173 /* MethodDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return true; default: return false; @@ -133062,9 +134861,9 @@ ${lanes.join("\n")} } function shouldKeepItem(declaration, checker) { switch (declaration.kind) { - case 272 /* ImportClause */: - case 275 /* ImportSpecifier */: - case 270 /* ImportEqualsDeclaration */: + case 273 /* ImportClause */: + case 276 /* ImportSpecifier */: + case 271 /* ImportEqualsDeclaration */: const importer = checker.getSymbolAtLocation(declaration.name); const imported = checker.getAliasedSymbol(importer); return importer.escapedName !== imported.escapedName; @@ -133074,7 +134873,7 @@ ${lanes.join("\n")} } function tryAddSingleDeclarationName(declaration, containers) { const name = getNameOfDeclaration(declaration); - return !!name && (pushLiteral(name, containers) || name.kind === 166 /* ComputedPropertyName */ && tryAddComputedPropertyName(name.expression, containers)); + return !!name && (pushLiteral(name, containers) || name.kind === 167 /* ComputedPropertyName */ && tryAddComputedPropertyName(name.expression, containers)); } function tryAddComputedPropertyName(expression, containers) { return pushLiteral(expression, containers) || isPropertyAccessExpression(expression) && (containers.push(expression.name.text), true) && tryAddComputedPropertyName(expression.expression, containers); @@ -133085,7 +134884,7 @@ ${lanes.join("\n")} function getContainers(declaration) { const containers = []; const name = getNameOfDeclaration(declaration); - if (name && name.kind === 166 /* ComputedPropertyName */ && !tryAddComputedPropertyName(name.expression, containers)) { + if (name && name.kind === 167 /* ComputedPropertyName */ && !tryAddComputedPropertyName(name.expression, containers)) { return emptyArray; } containers.shift(); @@ -133258,7 +135057,7 @@ ${lanes.join("\n")} } } function hasNavigationBarName(node) { - return !hasDynamicName(node) || node.kind !== 225 /* BinaryExpression */ && isPropertyAccessExpression(node.name.expression) && isIdentifier(node.name.expression.expression) && idText(node.name.expression.expression) === "Symbol"; + return !hasDynamicName(node) || node.kind !== 226 /* BinaryExpression */ && isPropertyAccessExpression(node.name.expression) && isIdentifier(node.name.expression.expression) && idText(node.name.expression.expression) === "Symbol"; } function addChildrenRecursively(node) { curCancellationToken.throwIfCancellationRequested(); @@ -133266,7 +135065,7 @@ ${lanes.join("\n")} return; } switch (node.kind) { - case 175 /* Constructor */: + case 176 /* Constructor */: const ctr = node; addNodeWithRecursiveChild(ctr, ctr.body); for (const param of ctr.parameters) { @@ -133275,32 +135074,32 @@ ${lanes.join("\n")} } } break; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 173 /* MethodSignature */: if (hasNavigationBarName(node)) { addNodeWithRecursiveChild(node, node.body); } break; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: if (hasNavigationBarName(node)) { addNodeWithRecursiveInitializer(node); } break; - case 170 /* PropertySignature */: + case 171 /* PropertySignature */: if (hasNavigationBarName(node)) { addLeafNode(node); } break; - case 272 /* ImportClause */: + case 273 /* ImportClause */: const importClause = node; if (importClause.name) { addLeafNode(importClause.name); } const { namedBindings } = importClause; if (namedBindings) { - if (namedBindings.kind === 273 /* NamespaceImport */) { + if (namedBindings.kind === 274 /* NamespaceImport */) { addLeafNode(namedBindings); } else { for (const element of namedBindings.elements) { @@ -133309,16 +135108,16 @@ ${lanes.join("\n")} } } break; - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: addNodeWithRecursiveChild(node, node.name); break; - case 304 /* SpreadAssignment */: + case 305 /* SpreadAssignment */: const { expression } = node; isIdentifier(expression) ? addLeafNode(node, expression) : addLeafNode(node); break; - case 207 /* BindingElement */: - case 302 /* PropertyAssignment */: - case 259 /* VariableDeclaration */: { + case 208 /* BindingElement */: + case 303 /* PropertyAssignment */: + case 260 /* VariableDeclaration */: { const child = node; if (isBindingPattern(child.name)) { addChildrenRecursively(child.name); @@ -133327,18 +135126,18 @@ ${lanes.join("\n")} } break; } - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: const nameNode = node.name; if (nameNode && isIdentifier(nameNode)) { addTrackedEs5Class(nameNode.text); } addNodeWithRecursiveChild(node, node.body); break; - case 218 /* ArrowFunction */: - case 217 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 218 /* FunctionExpression */: addNodeWithRecursiveChild(node, node.body); break; - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: startNode(node); for (const member of node.members) { if (!isComputedProperty(member)) { @@ -133347,19 +135146,19 @@ ${lanes.join("\n")} } endNode(); break; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: startNode(node); for (const member of node.members) { addChildrenRecursively(member); } endNode(); break; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: addNodeWithRecursiveChild(node, getInteriorModule(node).body); break; - case 276 /* ExportAssignment */: { + case 277 /* ExportAssignment */: { const expression2 = node.expression; const child = isObjectLiteralExpression(expression2) || isCallExpression(expression2) ? expression2 : isArrowFunction(expression2) || isFunctionExpression(expression2) ? expression2.body : void 0; if (child) { @@ -133371,16 +135170,16 @@ ${lanes.join("\n")} } break; } - case 280 /* ExportSpecifier */: - case 270 /* ImportEqualsDeclaration */: - case 180 /* IndexSignature */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 264 /* TypeAliasDeclaration */: + case 281 /* ExportSpecifier */: + case 271 /* ImportEqualsDeclaration */: + case 181 /* IndexSignature */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 265 /* TypeAliasDeclaration */: addLeafNode(node); break; - case 212 /* CallExpression */: - case 225 /* BinaryExpression */: { + case 213 /* CallExpression */: + case 226 /* BinaryExpression */: { const special = getAssignmentDeclarationKind(node); switch (special) { case 1 /* ExportsProperty */: @@ -133590,19 +135389,19 @@ ${lanes.join("\n")} return false; } switch (a.kind) { - case 171 /* PropertyDeclaration */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return isStatic(a) === isStatic(b); - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return areSameModule(a, b) && getFullyQualifiedModuleName(a) === getFullyQualifiedModuleName(b); default: return true; } } function isSynthesized(node) { - return !!(node.flags & 8 /* Synthesized */); + return !!(node.flags & 16 /* Synthesized */); } function isOwnChild(n, parent2) { const par = isModuleBlock(n.parent) ? n.parent.parent : n.parent; @@ -133612,7 +135411,7 @@ ${lanes.join("\n")} if (!a.body || !b.body) { return a.body === b.body; } - return a.body.kind === b.body.kind && (a.body.kind !== 266 /* ModuleDeclaration */ || areSameModule(a.body, b.body)); + return a.body.kind === b.body.kind && (a.body.kind !== 267 /* ModuleDeclaration */ || areSameModule(a.body, b.body)); } function merge(target, source) { target.additionalNodes = target.additionalNodes || []; @@ -133633,7 +135432,7 @@ ${lanes.join("\n")} return compareStringsCaseSensitiveUI(tryGetName(child1.node), tryGetName(child2.node)) || compareValues(navigationBarNodeKind(child1), navigationBarNodeKind(child2)); } function tryGetName(node) { - if (node.kind === 266 /* ModuleDeclaration */) { + if (node.kind === 267 /* ModuleDeclaration */) { return getModuleName(node); } const declName = getNameOfDeclaration(node); @@ -133642,16 +135441,16 @@ ${lanes.join("\n")} return propertyName && unescapeLeadingUnderscores(propertyName); } switch (node.kind) { - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 230 /* ClassExpression */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 231 /* ClassExpression */: return getFunctionOrClassName(node); default: return void 0; } } function getItemName(node, name) { - if (node.kind === 266 /* ModuleDeclaration */) { + if (node.kind === 267 /* ModuleDeclaration */) { return cleanText(getModuleName(node)); } if (name) { @@ -133661,27 +135460,27 @@ ${lanes.join("\n")} } } switch (node.kind) { - case 311 /* SourceFile */: + case 312 /* SourceFile */: const sourceFile = node; return isExternalModule(sourceFile) ? `"${escapeString(getBaseFileName(removeFileExtension(normalizePath(sourceFile.fileName))))}"` : ""; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return isExportAssignment(node) && node.isExportEquals ? "export=" /* ExportEquals */ : "default" /* Default */; - case 218 /* ArrowFunction */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 219 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: if (getSyntacticModifierFlags(node) & 1024 /* Default */) { return "default"; } return getFunctionOrClassName(node); - case 175 /* Constructor */: + case 176 /* Constructor */: return "constructor"; - case 179 /* ConstructSignature */: + case 180 /* ConstructSignature */: return "new()"; - case 178 /* CallSignature */: + case 179 /* CallSignature */: return "()"; - case 180 /* IndexSignature */: + case 181 /* IndexSignature */: return "[]"; default: return ""; @@ -133706,19 +135505,19 @@ ${lanes.join("\n")} return true; } switch (navigationBarNodeKind(item)) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 265 /* EnumDeclaration */: - case 263 /* InterfaceDeclaration */: - case 266 /* ModuleDeclaration */: - case 311 /* SourceFile */: - case 264 /* TypeAliasDeclaration */: - case 352 /* JSDocTypedefTag */: - case 344 /* JSDocCallbackTag */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 266 /* EnumDeclaration */: + case 264 /* InterfaceDeclaration */: + case 267 /* ModuleDeclaration */: + case 312 /* SourceFile */: + case 265 /* TypeAliasDeclaration */: + case 353 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: return true; - case 218 /* ArrowFunction */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: return isTopLevelFunctionDeclaration(item); default: return false; @@ -133728,10 +135527,10 @@ ${lanes.join("\n")} return false; } switch (navigationBarNodeKind(item2.parent)) { - case 267 /* ModuleBlock */: - case 311 /* SourceFile */: - case 173 /* MethodDeclaration */: - case 175 /* Constructor */: + case 268 /* ModuleBlock */: + case 312 /* SourceFile */: + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: return true; default: return false; @@ -133790,7 +135589,7 @@ ${lanes.join("\n")} } function getFullyQualifiedModuleName(moduleDeclaration) { const result = [getTextOfIdentifierOrLiteral(moduleDeclaration.name)]; - while (moduleDeclaration.body && moduleDeclaration.body.kind === 266 /* ModuleDeclaration */) { + while (moduleDeclaration.body && moduleDeclaration.body.kind === 267 /* ModuleDeclaration */) { moduleDeclaration = moduleDeclaration.body; result.push(getTextOfIdentifierOrLiteral(moduleDeclaration.name)); } @@ -133800,13 +135599,13 @@ ${lanes.join("\n")} return decl.body && isModuleDeclaration(decl.body) ? getInteriorModule(decl.body) : decl; } function isComputedProperty(member) { - return !member.name || member.name.kind === 166 /* ComputedPropertyName */; + return !member.name || member.name.kind === 167 /* ComputedPropertyName */; } function getNodeSpan(node) { - return node.kind === 311 /* SourceFile */ ? createTextSpanFromRange(node) : createTextSpanFromNode(node, curSourceFile); + return node.kind === 312 /* SourceFile */ ? createTextSpanFromRange(node) : createTextSpanFromNode(node, curSourceFile); } function getModifiers2(node) { - if (node.parent && node.parent.kind === 259 /* VariableDeclaration */) { + if (node.parent && node.parent.kind === 260 /* VariableDeclaration */) { node = node.parent; } return getNodeModifiers(node); @@ -133851,9 +135650,9 @@ ${lanes.join("\n")} } function isFunctionOrClassExpression(node) { switch (node.kind) { - case 218 /* ArrowFunction */: - case 217 /* FunctionExpression */: - case 230 /* ClassExpression */: + case 219 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 231 /* ClassExpression */: return true; default: return false; @@ -133911,8 +135710,8 @@ ${lanes.join("\n")} return context.cancellationToken && context.cancellationToken.isCancellationRequested() || !((_a = refactor.kinds) == null ? void 0 : _a.some((kind) => refactorKindBeginsWith(kind, context.kind))) ? void 0 : refactor.getAvailableActions(context, includeInteractiveActions); })); } - function getEditsForRefactor(context, refactorName13, actionName2, interactiveRefactorArguments) { - const refactor = refactors.get(refactorName13); + function getEditsForRefactor(context, refactorName14, actionName2, interactiveRefactorArguments) { + const refactor = refactors.get(refactorName14); return refactor && refactor.getEditsForAction(context, actionName2, interactiveRefactorArguments); } var refactors; @@ -133943,18 +135742,18 @@ ${lanes.join("\n")} } const noSymbolError = (id) => isIdentifier(id) && checker.getSymbolAtLocation(id) ? void 0 : { error: getLocaleSpecificMessage(Diagnostics.Can_only_convert_named_export) }; switch (exportNode.kind) { - case 261 /* FunctionDeclaration */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 266 /* ModuleDeclaration */: { + case 262 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 267 /* ModuleDeclaration */: { const node = exportNode; if (!node.name) return void 0; return noSymbolError(node.name) || { exportNode: node, exportName: node.name, wasDefault, exportingModuleSymbol }; } - case 242 /* VariableStatement */: { + case 243 /* VariableStatement */: { const vs = exportNode; if (!(vs.declarationList.flags & 2 /* Const */) || vs.declarationList.declarations.length !== 1) { return void 0; @@ -133965,7 +135764,7 @@ ${lanes.join("\n")} Debug.assert(!wasDefault, "Can't have a default flag here"); return noSymbolError(decl.name) || { exportNode: vs, exportName: decl.name, wasDefault, exportingModuleSymbol }; } - case 276 /* ExportAssignment */: { + case 277 /* ExportAssignment */: { const node = exportNode; if (node.isExportEquals) return void 0; @@ -133997,20 +135796,20 @@ ${lanes.join("\n")} } else { const exportKeyword = Debug.checkDefined(findModifier(exportNode, 95 /* ExportKeyword */), "Should find an export keyword in modifier list"); switch (exportNode.kind) { - case 261 /* FunctionDeclaration */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: + case 262 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: changes.insertNodeAfter(exportingSourceFile, exportKeyword, factory.createToken(90 /* DefaultKeyword */)); break; - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: const decl = first(exportNode.declarationList.declarations); if (!ts_FindAllReferences_exports.Core.isSymbolReferencedInFile(exportName, checker, exportingSourceFile) && !decl.type) { changes.replaceNode(exportingSourceFile, exportNode, factory.createExportDefault(Debug.checkDefined(decl.initializer, "Initializer was previously known to be present"))); break; } - case 265 /* EnumDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 266 /* ModuleDeclaration */: + case 266 /* EnumDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 267 /* ModuleDeclaration */: changes.deleteModifier(exportingSourceFile, exportKeyword); changes.insertNodeAfter(exportingSourceFile, exportNode, factory.createExportDefault(factory.createIdentifier(exportName.text))); break; @@ -134036,23 +135835,23 @@ ${lanes.join("\n")} function changeDefaultToNamedImport(importingSourceFile, ref, changes, exportName) { const { parent: parent2 } = ref; switch (parent2.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: changes.replaceNode(importingSourceFile, ref, factory.createIdentifier(exportName)); break; - case 275 /* ImportSpecifier */: - case 280 /* ExportSpecifier */: { + case 276 /* ImportSpecifier */: + case 281 /* ExportSpecifier */: { const spec = parent2; changes.replaceNode(importingSourceFile, spec, makeImportSpecifier(exportName, spec.name.text)); break; } - case 272 /* ImportClause */: { + case 273 /* ImportClause */: { const clause = parent2; Debug.assert(clause.name === ref, "Import clause name should match provided ref"); const spec = makeImportSpecifier(exportName, ref.text); const { namedBindings } = clause; if (!namedBindings) { changes.replaceNode(importingSourceFile, ref, factory.createNamedImports([spec])); - } else if (namedBindings.kind === 273 /* NamespaceImport */) { + } else if (namedBindings.kind === 274 /* NamespaceImport */) { changes.deleteRange(importingSourceFile, { pos: ref.getStart(importingSourceFile), end: namedBindings.getStart(importingSourceFile) }); const quotePreference = isStringLiteral(clause.parent.moduleSpecifier) ? quotePreferenceFromString(clause.parent.moduleSpecifier, importingSourceFile) : 1 /* Double */; const newImport = makeImport( @@ -134069,7 +135868,7 @@ ${lanes.join("\n")} } break; } - case 204 /* ImportType */: + case 205 /* ImportType */: const importTypeNode = parent2; changes.replaceNode(importingSourceFile, parent2, factory.createImportTypeNode(importTypeNode.argument, importTypeNode.assertions, factory.createIdentifier(exportName), importTypeNode.typeArguments, importTypeNode.isTypeOf)); break; @@ -134080,10 +135879,10 @@ ${lanes.join("\n")} function changeNamedToDefaultImport(importingSourceFile, ref, changes) { const parent2 = ref.parent; switch (parent2.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: changes.replaceNode(importingSourceFile, ref, factory.createIdentifier("default")); break; - case 275 /* ImportSpecifier */: { + case 276 /* ImportSpecifier */: { const defaultImport = factory.createIdentifier(parent2.name.text); if (parent2.parent.elements.length === 1) { changes.replaceNode(importingSourceFile, parent2.parent, defaultImport); @@ -134093,7 +135892,7 @@ ${lanes.join("\n")} } break; } - case 280 /* ExportSpecifier */: { + case 281 /* ExportSpecifier */: { changes.replaceNode(importingSourceFile, parent2, makeExportSpecifier("default", parent2.name.text)); break; } @@ -134136,12 +135935,12 @@ ${lanes.join("\n")} refactorName = "Convert export"; defaultToNamedAction = { name: "Convert default export to named export", - description: Diagnostics.Convert_default_export_to_named_export.message, + description: getLocaleSpecificMessage(Diagnostics.Convert_default_export_to_named_export), kind: "refactor.rewrite.export.named" }; namedToDefaultAction = { name: "Convert named export to default export", - description: Diagnostics.Convert_named_export_to_default_export.message, + description: getLocaleSpecificMessage(Diagnostics.Convert_named_export_to_default_export), kind: "refactor.rewrite.export.default" }; registerRefactor(refactorName, { @@ -134159,7 +135958,7 @@ ${lanes.join("\n")} } if (context.preferences.provideRefactorNotApplicableReason) { return [ - { name: refactorName, description: Diagnostics.Convert_default_export_to_named_export.message, actions: [ + { name: refactorName, description: getLocaleSpecificMessage(Diagnostics.Convert_default_export_to_named_export), actions: [ { ...defaultToNamedAction, notApplicableReason: info.error }, { ...namedToDefaultAction, notApplicableReason: info.error } ] } @@ -134197,7 +135996,7 @@ ${lanes.join("\n")} if (!importClause.namedBindings) { return { error: getLocaleSpecificMessage(Diagnostics.Could_not_find_namespace_import_or_named_imports) }; } - if (importClause.namedBindings.kind === 273 /* NamespaceImport */) { + if (importClause.namedBindings.kind === 274 /* NamespaceImport */) { return { convertTo: 0 /* Named */, import: importClause.namedBindings }; } const shouldUseDefault = getShouldUseDefault(context.program, importClause); @@ -134361,17 +136160,17 @@ ${lanes.join("\n")} actions = { [0 /* Named */]: { name: "Convert namespace import to named imports", - description: Diagnostics.Convert_namespace_import_to_named_imports.message, + description: getLocaleSpecificMessage(Diagnostics.Convert_namespace_import_to_named_imports), kind: "refactor.rewrite.import.named" }, [2 /* Namespace */]: { name: "Convert named imports to namespace import", - description: Diagnostics.Convert_named_imports_to_namespace_import.message, + description: getLocaleSpecificMessage(Diagnostics.Convert_named_imports_to_namespace_import), kind: "refactor.rewrite.import.namespace" }, [1 /* Default */]: { name: "Convert named imports to default import", - description: Diagnostics.Convert_named_imports_to_default_import.message, + description: getLocaleSpecificMessage(Diagnostics.Convert_named_imports_to_default_import), kind: "refactor.rewrite.import.default" } }; @@ -134718,6 +136517,158 @@ ${lanes.join("\n")} } }); + // src/services/refactors/inlineVariable.ts + function getInliningInfo(file, startPosition, tryWithReferenceToken, program) { + var _a, _b; + const checker = program.getTypeChecker(); + const token = getTouchingPropertyName(file, startPosition); + const parent2 = token.parent; + if (!isIdentifier(token)) { + return void 0; + } + if (isInitializedVariable(parent2) && isVariableDeclarationInVariableStatement(parent2) && isIdentifier(parent2.name)) { + if (((_a = checker.getMergedSymbol(parent2.symbol).declarations) == null ? void 0 : _a.length) !== 1) { + return { error: getLocaleSpecificMessage(Diagnostics.Variables_with_multiple_declarations_cannot_be_inlined) }; + } + if (isDeclarationExported(parent2)) { + return void 0; + } + const references = getReferenceNodes(parent2, checker, file); + return references && { references, declaration: parent2, replacement: parent2.initializer }; + } + if (tryWithReferenceToken) { + let definition = checker.resolveName( + token.text, + token, + 111551 /* Value */, + /*excludeGlobals*/ + false + ); + definition = definition && checker.getMergedSymbol(definition); + if (((_b = definition == null ? void 0 : definition.declarations) == null ? void 0 : _b.length) !== 1) { + return { error: getLocaleSpecificMessage(Diagnostics.Variables_with_multiple_declarations_cannot_be_inlined) }; + } + const declaration = definition.declarations[0]; + if (!isInitializedVariable(declaration) || !isVariableDeclarationInVariableStatement(declaration) || !isIdentifier(declaration.name)) { + return void 0; + } + if (isDeclarationExported(declaration)) { + return void 0; + } + const references = getReferenceNodes(declaration, checker, file); + return references && { references, declaration, replacement: declaration.initializer }; + } + return { error: getLocaleSpecificMessage(Diagnostics.Could_not_find_variable_to_inline) }; + } + function isDeclarationExported(declaration) { + const variableStatement = cast(declaration.parent.parent, isVariableStatement); + return some(variableStatement.modifiers, isExportModifier); + } + function getReferenceNodes(declaration, checker, file) { + const references = []; + const cannotInline = ts_FindAllReferences_exports.Core.eachSymbolReferenceInFile(declaration.name, checker, file, (ref) => { + if (ts_FindAllReferences_exports.isWriteAccessForReference(ref)) { + return true; + } + if (isExportSpecifier(ref.parent) || isExportAssignment(ref.parent)) { + return true; + } + if (isTypeQueryNode(ref.parent)) { + return true; + } + if (textRangeContainsPositionInclusive(declaration, ref.pos)) { + return true; + } + references.push(ref); + }); + return references.length === 0 || cannotInline ? void 0 : references; + } + function getReplacementExpression(reference, replacement) { + replacement = getSynthesizedDeepClone(replacement); + const { parent: parent2 } = reference; + if (isExpression(parent2) && (getExpressionPrecedence(replacement) < getExpressionPrecedence(parent2) || needsParentheses(parent2))) { + return factory.createParenthesizedExpression(replacement); + } + if (isFunctionLike(replacement) && (isCallLikeExpression(parent2) || isPropertyAccessExpression(parent2))) { + return factory.createParenthesizedExpression(replacement); + } + if (isPropertyAccessExpression(parent2) && (isNumericLiteral(replacement) || isObjectLiteralExpression(replacement))) { + return factory.createParenthesizedExpression(replacement); + } + return replacement; + } + var refactorName4, refactorDescription, inlineVariableAction; + var init_inlineVariable = __esm({ + "src/services/refactors/inlineVariable.ts"() { + "use strict"; + init_ts4(); + init_ts_refactor(); + refactorName4 = "Inline variable"; + refactorDescription = getLocaleSpecificMessage(Diagnostics.Inline_variable); + inlineVariableAction = { + name: refactorName4, + description: refactorDescription, + kind: "refactor.inline.variable" + }; + registerRefactor(refactorName4, { + kinds: [inlineVariableAction.kind], + getAvailableActions(context) { + const { + file, + program, + preferences, + startPosition, + triggerReason + } = context; + const info = getInliningInfo(file, startPosition, triggerReason === "invoked", program); + if (!info) { + return emptyArray; + } + if (!ts_refactor_exports.isRefactorErrorInfo(info)) { + return [{ + name: refactorName4, + description: refactorDescription, + actions: [inlineVariableAction] + }]; + } + if (preferences.provideRefactorNotApplicableReason) { + return [{ + name: refactorName4, + description: refactorDescription, + actions: [{ + ...inlineVariableAction, + notApplicableReason: info.error + }] + }]; + } + return emptyArray; + }, + getEditsForAction(context, actionName2) { + Debug.assert(actionName2 === refactorName4, "Unexpected refactor invoked"); + const { file, program, startPosition } = context; + const info = getInliningInfo( + file, + startPosition, + /*tryWithReferenceToken*/ + true, + program + ); + if (!info || ts_refactor_exports.isRefactorErrorInfo(info)) { + return void 0; + } + const { references, declaration, replacement } = info; + const edits = ts_textChanges_exports.ChangeTracker.with(context, (tracker) => { + for (const node of references) { + tracker.replaceNode(file, node, getReplacementExpression(node, replacement)); + } + tracker.delete(file, declaration); + }); + return { edits }; + } + }); + } + }); + // src/services/refactors/moveToNewFile.ts function doChange3(oldFile, program, toMove, changes, host, preferences, context) { const checker = program.getTypeChecker(); @@ -134799,29 +136750,29 @@ ${lanes.join("\n")} append(copiedOldImports, makeImportOrRequire(oldFile, oldFileDefault, oldFileNamedImports, getBaseFileName(oldFile.fileName), program, host, useEsModuleSyntax, quotePreference)); return copiedOldImports; } - var refactorName4, description, moveToNewFileAction; + var refactorName5, description, moveToNewFileAction; var init_moveToNewFile = __esm({ "src/services/refactors/moveToNewFile.ts"() { "use strict"; init_ts4(); init_ts_refactor(); - refactorName4 = "Move to a new file"; + refactorName5 = "Move to a new file"; description = getLocaleSpecificMessage(Diagnostics.Move_to_a_new_file); moveToNewFileAction = { - name: refactorName4, + name: refactorName5, description, kind: "refactor.move.newFile" }; - registerRefactor(refactorName4, { + registerRefactor(refactorName5, { kinds: [moveToNewFileAction.kind], getAvailableActions: function getRefactorActionsToMoveToNewFile(context) { const statements = getStatementsToMove(context); if (context.preferences.allowTextChangesInNewFiles && statements) { - return [{ name: refactorName4, description, actions: [moveToNewFileAction] }]; + return [{ name: refactorName5, description, actions: [moveToNewFileAction] }]; } if (context.preferences.provideRefactorNotApplicableReason) { return [{ - name: refactorName4, + name: refactorName5, description, actions: [{ ...moveToNewFileAction, notApplicableReason: getLocaleSpecificMessage(Diagnostics.Selection_is_not_a_valid_statement_or_statements) }] }]; @@ -134829,7 +136780,7 @@ ${lanes.join("\n")} return emptyArray; }, getEditsForAction: function getRefactorEditsToMoveToNewFile(context, actionName2) { - Debug.assert(actionName2 === refactorName4, "Wrong refactor invoked"); + Debug.assert(actionName2 === refactorName5, "Wrong refactor invoked"); const statements = Debug.checkDefined(getStatementsToMove(context)); const edits = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange3(context.file, context.program, statements, t, context.host, context.preferences, context)); return { edits, renameFilename: void 0, renameLocation: void 0 }; @@ -134839,6 +136790,9 @@ ${lanes.join("\n")} }); // src/services/refactors/moveToFile.ts + function error(notApplicableReason) { + return { edits: [], renameFilename: void 0, renameLocation: void 0, notApplicableReason }; + } function doChange4(context, oldFile, targetFile, program, toMove, changes, host, preferences) { const checker = program.getTypeChecker(); const usage = getUsageInfo(oldFile, toMove.all, checker); @@ -134879,7 +136833,7 @@ ${lanes.join("\n")} const body = addExports(oldFile, toMove.all, usage.oldFileImportsFromTargetFile, useEsModuleSyntax); if (typeof targetFile !== "string") { if (targetFile.statements.length > 0) { - changes.insertNodesAfter(targetFile, targetFile.statements[targetFile.statements.length - 1], body); + moveStatementsToTargetFile(changes, program, body, targetFile, toMove); } else { changes.insertNodesAtEndOfFile( targetFile, @@ -134900,7 +136854,7 @@ ${lanes.join("\n")} } } if (importAdder) { - importAdder.writeFixes(changes); + importAdder.writeFixes(changes, quotePreference); } if (imports.length && body.length) { return [ @@ -135030,11 +136984,11 @@ ${lanes.join("\n")} } function getNamespaceLikeImport(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: - return node.importClause && node.importClause.namedBindings && node.importClause.namedBindings.kind === 273 /* NamespaceImport */ ? node.importClause.namedBindings.name : void 0; - case 270 /* ImportEqualsDeclaration */: + case 272 /* ImportDeclaration */: + return node.importClause && node.importClause.namedBindings && node.importClause.namedBindings.kind === 274 /* NamespaceImport */ ? node.importClause.namedBindings.name : void 0; + case 271 /* ImportEqualsDeclaration */: return node.name; - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return tryCast(node.name, isIdentifier); default: return Debug.assertNever(node, `Unexpected node kind ${node.kind}`); @@ -135070,7 +137024,7 @@ ${lanes.join("\n")} const newNamespaceId = factory.createIdentifier(newNamespaceName); const newModuleString = makeStringLiteral(newModuleSpecifier, quotePreference); switch (node.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return factory.createImportDeclaration( /*modifiers*/ void 0, @@ -135085,7 +137039,7 @@ ${lanes.join("\n")} /*assertClause*/ void 0 ); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return factory.createImportEqualsDeclaration( /*modifiers*/ void 0, @@ -135094,7 +137048,7 @@ ${lanes.join("\n")} newNamespaceId, factory.createExternalModuleReference(newModuleString) ); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return factory.createVariableDeclaration( newNamespaceId, /*exclamationToken*/ @@ -135116,7 +137070,7 @@ ${lanes.join("\n")} ); } function moduleSpecifierFromImport(i) { - return i.kind === 271 /* ImportDeclaration */ ? i.moduleSpecifier : i.kind === 270 /* ImportEqualsDeclaration */ ? i.moduleReference.expression : i.initializer.arguments[0]; + return i.kind === 272 /* ImportDeclaration */ ? i.moduleSpecifier : i.kind === 271 /* ImportEqualsDeclaration */ ? i.moduleReference.expression : i.initializer.arguments[0]; } function forEachImportInStatement(statement, cb) { if (isImportDeclaration(statement)) { @@ -135214,15 +137168,15 @@ ${lanes.join("\n")} } function deleteUnusedImports(sourceFile, importDecl, changes, isUnused) { switch (importDecl.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: deleteUnusedImportsInDeclaration(sourceFile, importDecl, changes, isUnused); break; - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: if (isUnused(importDecl.name)) { changes.delete(sourceFile, importDecl); } break; - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: deleteUnusedImportsInVariableDeclaration(sourceFile, importDecl, changes, isUnused); break; default: @@ -135234,7 +137188,7 @@ ${lanes.join("\n")} return; const { name, namedBindings } = importDecl.importClause; const defaultUnused = !name || isUnused(name); - const namedBindingsUnused = !namedBindings || (namedBindings.kind === 273 /* NamespaceImport */ ? isUnused(namedBindings.name) : namedBindings.elements.length !== 0 && namedBindings.elements.every((e) => isUnused(e.name))); + const namedBindingsUnused = !namedBindings || (namedBindings.kind === 274 /* NamespaceImport */ ? isUnused(namedBindings.name) : namedBindings.elements.length !== 0 && namedBindings.elements.every((e) => isUnused(e.name))); if (defaultUnused && namedBindingsUnused) { changes.delete(sourceFile, importDecl); } else { @@ -135254,7 +137208,7 @@ ${lanes.join("\n")} void 0 ) ); - } else if (namedBindings.kind === 274 /* NamedImports */) { + } else if (namedBindings.kind === 275 /* NamedImports */) { for (const element of namedBindings.elements) { if (isUnused(element.name)) changes.delete(sourceFile, element); @@ -135282,9 +137236,9 @@ ${lanes.join("\n")} } } break; - case 206 /* ArrayBindingPattern */: + case 207 /* ArrayBindingPattern */: break; - case 205 /* ObjectBindingPattern */: + case 206 /* ObjectBindingPattern */: if (name.elements.every((e) => isIdentifier(e.name) && isUnused(e.name))) { changes.delete( sourceFile, @@ -135310,24 +137264,24 @@ ${lanes.join("\n")} function addEs6Export(d) { const modifiers = canHaveModifiers(d) ? concatenate([factory.createModifier(95 /* ExportKeyword */)], getModifiers(d)) : void 0; switch (d.kind) { - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return factory.updateFunctionDeclaration(d, modifiers, d.asteriskToken, d.name, d.typeParameters, d.parameters, d.type, d.body); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: const decorators = canHaveDecorators(d) ? getDecorators(d) : void 0; return factory.updateClassDeclaration(d, concatenate(decorators, modifiers), d.name, d.typeParameters, d.heritageClauses, d.members); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return factory.updateVariableStatement(d, modifiers, d.declarationList); - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return factory.updateModuleDeclaration(d, modifiers, d.name, d.body); - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return factory.updateEnumDeclaration(d, modifiers, d.name, d.members); - case 264 /* TypeAliasDeclaration */: + case 265 /* TypeAliasDeclaration */: return factory.updateTypeAliasDeclaration(d, modifiers, d.name, d.typeParameters, d.type); - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: return factory.updateInterfaceDeclaration(d, modifiers, d.name, d.typeParameters, d.heritageClauses, d.members); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return factory.updateImportEqualsDeclaration(d, modifiers, d.isTypeOnly, d.name, d.moduleReference); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return Debug.fail(); default: return Debug.assertNever(d, `Unexpected declaration kind ${d.kind}`); @@ -135347,18 +137301,18 @@ ${lanes.join("\n")} } function getNamesToExportInCommonJS(decl) { switch (decl.kind) { - case 261 /* FunctionDeclaration */: - case 262 /* ClassDeclaration */: + case 262 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: return [decl.name.text]; - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return mapDefined(decl.declarationList.declarations, (d) => isIdentifier(d.name) ? d.name.text : void 0); - case 266 /* ModuleDeclaration */: - case 265 /* EnumDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 263 /* InterfaceDeclaration */: - case 270 /* ImportEqualsDeclaration */: + case 267 /* ModuleDeclaration */: + case 266 /* EnumDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 264 /* InterfaceDeclaration */: + case 271 /* ImportEqualsDeclaration */: return emptyArray; - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return Debug.fail("Can't export an ExpressionStatement"); default: return Debug.assertNever(decl, `Unexpected decl kind ${decl.kind}`); @@ -135366,7 +137320,7 @@ ${lanes.join("\n")} } function filterImport(i, moduleSpecifier, keep) { switch (i.kind) { - case 271 /* ImportDeclaration */: { + case 272 /* ImportDeclaration */: { const clause = i.importClause; if (!clause) return void 0; @@ -135381,9 +137335,9 @@ ${lanes.join("\n")} void 0 ) : void 0; } - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return keep(i.name) ? i : void 0; - case 259 /* VariableDeclaration */: { + case 260 /* VariableDeclaration */: { const name = filterBindingName(i.name, keep); return name ? makeVariableStatement(name, i.type, createRequireCall(moduleSpecifier), i.parent.flags) : void 0; } @@ -135392,7 +137346,7 @@ ${lanes.join("\n")} } } function filterNamedBindings(namedBindings, keep) { - if (namedBindings.kind === 273 /* NamespaceImport */) { + if (namedBindings.kind === 274 /* NamespaceImport */) { return keep(namedBindings.name) ? namedBindings : void 0; } else { const newElements = namedBindings.elements.filter((e) => keep(e.name)); @@ -135403,9 +137357,9 @@ ${lanes.join("\n")} switch (name.kind) { case 80 /* Identifier */: return keep(name) ? name : void 0; - case 206 /* ArrayBindingPattern */: + case 207 /* ArrayBindingPattern */: return name; - case 205 /* ObjectBindingPattern */: { + case 206 /* ObjectBindingPattern */: { const newElements = name.elements.filter((prop) => prop.propertyName || !isIdentifier(prop.name) || keep(prop.name)); return newElements.length ? factory.createObjectBindingPattern(newElements) : void 0; } @@ -135416,9 +137370,9 @@ ${lanes.join("\n")} } function getTopLevelDeclarationStatement(d) { switch (d.kind) { - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return d.parent.parent; - case 207 /* BindingElement */: + case 208 /* BindingElement */: return getTopLevelDeclarationStatement( cast(d.parent.parent, (p) => isVariableDeclaration(p) || isBindingElement(p)) ); @@ -135466,21 +137420,25 @@ ${lanes.join("\n")} const { file } = context; const range = createTextRangeFromSpan(getRefactorContextSpan(context)); const { statements } = file; - const startNodeIndex = findIndex(statements, (s) => s.end > range.pos); + let startNodeIndex = findIndex(statements, (s) => s.end > range.pos); if (startNodeIndex === -1) return void 0; const startStatement = statements[startNodeIndex]; - if (isNamedDeclaration(startStatement) && startStatement.name && rangeContainsRange(startStatement.name, range)) { - return { toMove: [statements[startNodeIndex]], afterLast: statements[startNodeIndex + 1] }; + const overloadRangeToMove = getOverloadRangeToMove(file, startStatement); + if (overloadRangeToMove) { + startNodeIndex = overloadRangeToMove.start; + } + let endNodeIndex = findIndex(statements, (s) => s.end >= range.end, startNodeIndex); + if (endNodeIndex !== -1 && range.end <= statements[endNodeIndex].getStart()) { + endNodeIndex--; + } + const endingOverloadRangeToMove = getOverloadRangeToMove(file, statements[endNodeIndex]); + if (endingOverloadRangeToMove) { + endNodeIndex = endingOverloadRangeToMove.end; } - if (range.pos > startStatement.getStart(file)) - return void 0; - const afterEndNodeIndex = findIndex(statements, (s) => s.end > range.end, startNodeIndex); - if (afterEndNodeIndex !== -1 && (afterEndNodeIndex === 0 || statements[afterEndNodeIndex].getStart(file) < range.end)) - return void 0; return { - toMove: statements.slice(startNodeIndex, afterEndNodeIndex === -1 ? statements.length : afterEndNodeIndex), - afterLast: afterEndNodeIndex === -1 ? void 0 : statements[afterEndNodeIndex] + toMove: statements.slice(startNodeIndex, endNodeIndex === -1 ? statements.length : endNodeIndex + 1), + afterLast: endNodeIndex === -1 ? void 0 : statements[endNodeIndex + 1] }; } function getStatementsToMove(context) { @@ -135502,11 +137460,11 @@ ${lanes.join("\n")} } function isPureImport(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return true; - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return !hasSyntacticModifier(node, 1 /* Export */); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return node.declarationList.declarations.every((d) => !!d.initializer && isRequireCall( d.initializer, /*requireStringLiteralLikeArgument*/ @@ -135599,17 +137557,17 @@ ${lanes.join("\n")} } function forEachTopLevelDeclaration(statement, cb) { switch (statement.kind) { - case 261 /* FunctionDeclaration */: - case 262 /* ClassDeclaration */: - case 266 /* ModuleDeclaration */: - case 265 /* EnumDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 263 /* InterfaceDeclaration */: - case 270 /* ImportEqualsDeclaration */: + case 262 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: + case 267 /* ModuleDeclaration */: + case 266 /* EnumDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 264 /* InterfaceDeclaration */: + case 271 /* ImportEqualsDeclaration */: return cb(statement); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return firstDefined(statement.declarationList.declarations, (decl) => forEachTopLevelDeclarationInBindingName(decl.name, cb)); - case 243 /* ExpressionStatement */: { + case 244 /* ExpressionStatement */: { const { expression } = statement; return isBinaryExpression(expression) && getAssignmentDeclarationKind(expression) === 1 /* ExportsProperty */ ? cb(statement) : void 0; } @@ -135617,14 +137575,14 @@ ${lanes.join("\n")} } function isInImport(decl) { switch (decl.kind) { - case 270 /* ImportEqualsDeclaration */: - case 275 /* ImportSpecifier */: - case 272 /* ImportClause */: - case 273 /* NamespaceImport */: + case 271 /* ImportEqualsDeclaration */: + case 276 /* ImportSpecifier */: + case 273 /* ImportClause */: + case 274 /* NamespaceImport */: return true; - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return isVariableDeclarationInImport(decl); - case 207 /* BindingElement */: + case 208 /* BindingElement */: return isVariableDeclaration(decl.parent.parent) && isVariableDeclarationInImport(decl.parent.parent); default: return false; @@ -135647,8 +137605,8 @@ ${lanes.join("\n")} switch (name.kind) { case 80 /* Identifier */: return cb(cast(name.parent, (x) => isVariableDeclaration(x) || isBindingElement(x))); - case 206 /* ArrayBindingPattern */: - case 205 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: + case 206 /* ObjectBindingPattern */: return firstDefined(name.elements, (em) => isOmittedExpression(em) ? void 0 : forEachTopLevelDeclarationInBindingName(em.name, cb)); default: return Debug.assertNever(name, `Unexpected name kind ${name.kind}`); @@ -135656,18 +137614,94 @@ ${lanes.join("\n")} } function isNonVariableTopLevelDeclaration(node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 262 /* ClassDeclaration */: - case 266 /* ModuleDeclaration */: - case 265 /* EnumDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 263 /* InterfaceDeclaration */: - case 270 /* ImportEqualsDeclaration */: + case 262 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: + case 267 /* ModuleDeclaration */: + case 266 /* EnumDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 264 /* InterfaceDeclaration */: + case 271 /* ImportEqualsDeclaration */: return true; default: return false; } } + function moveStatementsToTargetFile(changes, program, statements, targetFile, toMove) { + var _a; + const removedExports = /* @__PURE__ */ new Set(); + const targetExports = (_a = targetFile.symbol) == null ? void 0 : _a.exports; + if (targetExports) { + const checker = program.getTypeChecker(); + const targetToSourceExports = /* @__PURE__ */ new Map(); + for (const node of toMove.all) { + if (isTopLevelDeclarationStatement(node) && hasSyntacticModifier(node, 1 /* Export */)) { + forEachTopLevelDeclaration(node, (declaration) => { + var _a2; + const targetDeclarations = canHaveSymbol(declaration) ? (_a2 = targetExports.get(declaration.symbol.escapedName)) == null ? void 0 : _a2.declarations : void 0; + const exportDeclaration = firstDefined(targetDeclarations, (d) => isExportDeclaration(d) ? d : isExportSpecifier(d) ? tryCast(d.parent.parent, isExportDeclaration) : void 0); + if (exportDeclaration && exportDeclaration.moduleSpecifier) { + targetToSourceExports.set( + exportDeclaration, + (targetToSourceExports.get(exportDeclaration) || /* @__PURE__ */ new Set()).add(declaration) + ); + } + }); + } + } + for (const [exportDeclaration, topLevelDeclarations] of arrayFrom(targetToSourceExports)) { + if (exportDeclaration.exportClause && isNamedExports(exportDeclaration.exportClause) && length(exportDeclaration.exportClause.elements)) { + const elements = exportDeclaration.exportClause.elements; + const updatedElements = filter(elements, (elem) => find(skipAlias(elem.symbol, checker).declarations, (d) => isTopLevelDeclaration(d) && topLevelDeclarations.has(d)) === void 0); + if (length(updatedElements) === 0) { + changes.deleteNode(targetFile, exportDeclaration); + removedExports.add(exportDeclaration); + continue; + } + if (length(updatedElements) < length(elements)) { + changes.replaceNode( + targetFile, + exportDeclaration, + factory.updateExportDeclaration( + exportDeclaration, + exportDeclaration.modifiers, + exportDeclaration.isTypeOnly, + factory.updateNamedExports(exportDeclaration.exportClause, factory.createNodeArray(updatedElements, elements.hasTrailingComma)), + exportDeclaration.moduleSpecifier, + exportDeclaration.assertClause + ) + ); + } + } + } + } + const lastReExport = findLast(targetFile.statements, (n) => isExportDeclaration(n) && !!n.moduleSpecifier && !removedExports.has(n)); + if (lastReExport) { + changes.insertNodesBefore( + targetFile, + lastReExport, + statements, + /*blankLineBetween*/ + true + ); + } else { + changes.insertNodesAfter(targetFile, targetFile.statements[targetFile.statements.length - 1], statements); + } + } + function getOverloadRangeToMove(sourceFile, statement) { + if (isFunctionLikeDeclaration(statement)) { + const declarations = statement.symbol.declarations; + if (declarations === void 0 || length(declarations) <= 1 || !contains(declarations, statement)) { + return void 0; + } + const firstDecl = declarations[0]; + const lastDecl = declarations[length(declarations) - 1]; + const statementsToMove = mapDefined(declarations, (d) => getSourceFileOfNode(d) === sourceFile && isStatement(d) ? d : void 0); + const end = findIndex(sourceFile.statements, (s) => s.end >= lastDecl.end); + const start = findIndex(sourceFile.statements, (s) => s.end >= firstDecl.end); + return { toMove: statementsToMove, start, end }; + } + return void 0; + } var refactorNameForMoveToFile, description2, moveToFileAction; var init_moveToFile = __esm({ "src/services/refactors/moveToFile.ts"() { @@ -135704,13 +137738,17 @@ ${lanes.join("\n")} getEditsForAction: function getRefactorEditsToMoveToFile(context, actionName2, interactiveRefactorArguments) { Debug.assert(actionName2 === refactorNameForMoveToFile, "Wrong refactor invoked"); const statements = Debug.checkDefined(getStatementsToMove(context)); + const { host, program } = context; Debug.assert(interactiveRefactorArguments, "No interactive refactor arguments available"); const targetFile = interactiveRefactorArguments.targetFile; if (hasJSFileExtension(targetFile) || hasTSFileExtension(targetFile)) { + if (host.fileExists(targetFile) && program.getSourceFile(targetFile) === void 0) { + return error(getLocaleSpecificMessage(Diagnostics.Cannot_move_statements_to_the_selected_file)); + } const edits = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange4(context, context.file, interactiveRefactorArguments.targetFile, context.program, statements, t, context.host, context.preferences)); return { edits, renameFilename: void 0, renameLocation: void 0 }; } - return { edits: [], renameFilename: void 0, renameLocation: void 0, notApplicableReason: getLocaleSpecificMessage(Diagnostics.Cannot_move_to_file_selected_file_is_invalid) }; + return error(getLocaleSpecificMessage(Diagnostics.Cannot_move_to_file_selected_file_is_invalid)); } }); } @@ -135723,8 +137761,8 @@ ${lanes.join("\n")} if (!info) return emptyArray; return [{ - name: refactorName5, - description: refactorDescription, + name: refactorName6, + description: refactorDescription2, actions: [functionOverloadAction] }]; } @@ -135737,7 +137775,7 @@ ${lanes.join("\n")} const lastDeclaration = signatureDecls[signatureDecls.length - 1]; let updated = lastDeclaration; switch (lastDeclaration.kind) { - case 172 /* MethodSignature */: { + case 173 /* MethodSignature */: { updated = factory.updateMethodSignature( lastDeclaration, lastDeclaration.modifiers, @@ -135749,7 +137787,7 @@ ${lanes.join("\n")} ); break; } - case 173 /* MethodDeclaration */: { + case 174 /* MethodDeclaration */: { updated = factory.updateMethodDeclaration( lastDeclaration, lastDeclaration.modifiers, @@ -135763,7 +137801,7 @@ ${lanes.join("\n")} ); break; } - case 178 /* CallSignature */: { + case 179 /* CallSignature */: { updated = factory.updateCallSignature( lastDeclaration, lastDeclaration.typeParameters, @@ -135772,7 +137810,7 @@ ${lanes.join("\n")} ); break; } - case 175 /* Constructor */: { + case 176 /* Constructor */: { updated = factory.updateConstructorDeclaration( lastDeclaration, lastDeclaration.modifiers, @@ -135781,7 +137819,7 @@ ${lanes.join("\n")} ); break; } - case 179 /* ConstructSignature */: { + case 180 /* ConstructSignature */: { updated = factory.updateConstructSignature( lastDeclaration, lastDeclaration.typeParameters, @@ -135790,7 +137828,7 @@ ${lanes.join("\n")} ); break; } - case 261 /* FunctionDeclaration */: { + case 262 /* FunctionDeclaration */: { updated = factory.updateFunctionDeclaration( lastDeclaration, lastDeclaration.modifiers, @@ -135863,12 +137901,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function isConvertableSignatureDeclaration(d) { switch (d.kind) { - case 172 /* MethodSignature */: - case 173 /* MethodDeclaration */: - case 178 /* CallSignature */: - case 175 /* Constructor */: - case 179 /* ConstructSignature */: - case 261 /* FunctionDeclaration */: + case 173 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 179 /* CallSignature */: + case 176 /* Constructor */: + case 180 /* ConstructSignature */: + case 262 /* FunctionDeclaration */: return true; } return false; @@ -135915,20 +137953,20 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } return signatureDecls; } - var refactorName5, refactorDescription, functionOverloadAction; + var refactorName6, refactorDescription2, functionOverloadAction; var init_convertOverloadListToSingleSignature = __esm({ "src/services/refactors/convertOverloadListToSingleSignature.ts"() { "use strict"; init_ts4(); init_ts_refactor(); - refactorName5 = "Convert overload list to single signature"; - refactorDescription = Diagnostics.Convert_overload_list_to_single_signature.message; + refactorName6 = "Convert overload list to single signature"; + refactorDescription2 = getLocaleSpecificMessage(Diagnostics.Convert_overload_list_to_single_signature); functionOverloadAction = { - name: refactorName5, - description: refactorDescription, + name: refactorName6, + description: refactorDescription2, kind: "refactor.rewrite.function.overloadList" }; - registerRefactor(refactorName5, { + registerRefactor(refactorName6, { kinds: [functionOverloadAction.kind], getEditsForAction: getRefactorEditsToConvertOverloadsToOneSignature, getAvailableActions: getRefactorActionsToConvertOverloadsToOneSignature @@ -135944,8 +137982,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return emptyArray; if (!isRefactorErrorInfo(info)) { return [{ - name: refactorName6, - description: refactorDescription2, + name: refactorName7, + description: refactorDescription3, actions: [ info.addBraces ? addBracesAction : removeBracesAction ] @@ -135953,8 +137991,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } if (context.preferences.provideRefactorNotApplicableReason) { return [{ - name: refactorName6, - description: refactorDescription2, + name: refactorName7, + description: refactorDescription3, actions: [ { ...addBracesAction, notApplicableReason: info.error }, { ...removeBracesAction, notApplicableReason: info.error } @@ -136045,25 +138083,25 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } return void 0; } - var refactorName6, refactorDescription2, addBracesAction, removeBracesAction; + var refactorName7, refactorDescription3, addBracesAction, removeBracesAction; var init_addOrRemoveBracesToArrowFunction = __esm({ "src/services/refactors/addOrRemoveBracesToArrowFunction.ts"() { "use strict"; init_ts4(); init_ts_refactor(); - refactorName6 = "Add or remove braces in an arrow function"; - refactorDescription2 = Diagnostics.Add_or_remove_braces_in_an_arrow_function.message; + refactorName7 = "Add or remove braces in an arrow function"; + refactorDescription3 = getLocaleSpecificMessage(Diagnostics.Add_or_remove_braces_in_an_arrow_function); addBracesAction = { name: "Add braces to arrow function", - description: Diagnostics.Add_braces_to_arrow_function.message, + description: getLocaleSpecificMessage(Diagnostics.Add_braces_to_arrow_function), kind: "refactor.rewrite.arrow.braces.add" }; removeBracesAction = { name: "Remove braces from arrow function", - description: Diagnostics.Remove_braces_from_arrow_function.message, + description: getLocaleSpecificMessage(Diagnostics.Remove_braces_from_arrow_function), kind: "refactor.rewrite.arrow.braces.remove" }; - registerRefactor(refactorName6, { + registerRefactor(refactorName7, { kinds: [removeBracesAction.kind], getEditsForAction: getRefactorEditsToRemoveFunctionBraces, getAvailableActions: getRefactorActionsToRemoveFunctionBraces @@ -136091,32 +138129,32 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const possibleActions = []; const errors = []; if (refactorKindBeginsWith(toNamedFunctionAction.kind, kind)) { - const error = selectedVariableDeclaration || isArrowFunction(func) && isVariableDeclaration(func.parent) ? void 0 : getLocaleSpecificMessage(Diagnostics.Could_not_convert_to_named_function); - if (error) { - errors.push({ ...toNamedFunctionAction, notApplicableReason: error }); + const error2 = selectedVariableDeclaration || isArrowFunction(func) && isVariableDeclaration(func.parent) ? void 0 : getLocaleSpecificMessage(Diagnostics.Could_not_convert_to_named_function); + if (error2) { + errors.push({ ...toNamedFunctionAction, notApplicableReason: error2 }); } else { possibleActions.push(toNamedFunctionAction); } } if (refactorKindBeginsWith(toAnonymousFunctionAction.kind, kind)) { - const error = !selectedVariableDeclaration && isArrowFunction(func) ? void 0 : getLocaleSpecificMessage(Diagnostics.Could_not_convert_to_anonymous_function); - if (error) { - errors.push({ ...toAnonymousFunctionAction, notApplicableReason: error }); + const error2 = !selectedVariableDeclaration && isArrowFunction(func) ? void 0 : getLocaleSpecificMessage(Diagnostics.Could_not_convert_to_anonymous_function); + if (error2) { + errors.push({ ...toAnonymousFunctionAction, notApplicableReason: error2 }); } else { possibleActions.push(toAnonymousFunctionAction); } } if (refactorKindBeginsWith(toArrowFunctionAction.kind, kind)) { - const error = isFunctionExpression(func) ? void 0 : getLocaleSpecificMessage(Diagnostics.Could_not_convert_to_arrow_function); - if (error) { - errors.push({ ...toArrowFunctionAction, notApplicableReason: error }); + const error2 = isFunctionExpression(func) ? void 0 : getLocaleSpecificMessage(Diagnostics.Could_not_convert_to_arrow_function); + if (error2) { + errors.push({ ...toArrowFunctionAction, notApplicableReason: error2 }); } else { possibleActions.push(toArrowFunctionAction); } } return [{ - name: refactorName7, - description: refactorDescription3, + name: refactorName8, + description: refactorDescription4, actions: possibleActions.length === 0 && context.preferences.provideRefactorNotApplicableReason ? errors : possibleActions }]; } @@ -136276,14 +138314,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function isFunctionReferencedInFile(sourceFile, typeChecker, node) { return !!node.name && ts_FindAllReferences_exports.Core.isSymbolReferencedInFile(node.name, typeChecker, sourceFile); } - var refactorName7, refactorDescription3, toAnonymousFunctionAction, toNamedFunctionAction, toArrowFunctionAction; + var refactorName8, refactorDescription4, toAnonymousFunctionAction, toNamedFunctionAction, toArrowFunctionAction; var init_convertArrowFunctionOrFunctionExpression = __esm({ "src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"() { "use strict"; init_ts4(); init_ts_refactor(); - refactorName7 = "Convert arrow function or function expression"; - refactorDescription3 = getLocaleSpecificMessage(Diagnostics.Convert_arrow_function_or_function_expression); + refactorName8 = "Convert arrow function or function expression"; + refactorDescription4 = getLocaleSpecificMessage(Diagnostics.Convert_arrow_function_or_function_expression); toAnonymousFunctionAction = { name: "Convert to anonymous function", description: getLocaleSpecificMessage(Diagnostics.Convert_to_anonymous_function), @@ -136299,7 +138337,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} description: getLocaleSpecificMessage(Diagnostics.Convert_to_arrow_function), kind: "refactor.rewrite.function.arrow" }; - registerRefactor(refactorName7, { + registerRefactor(refactorName8, { kinds: [ toAnonymousFunctionAction.kind, toNamedFunctionAction.kind, @@ -136330,13 +138368,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (!functionDeclaration) return emptyArray; return [{ - name: refactorName8, - description: refactorDescription4, + name: refactorName9, + description: refactorDescription5, actions: [toDestructuredAction] }]; } function getRefactorEditsToConvertParametersToDestructuredObject(context, actionName2) { - Debug.assert(actionName2 === refactorName8, "Unexpected action name"); + Debug.assert(actionName2 === refactorName9, "Unexpected action name"); const { file, startPosition, program, cancellationToken, host } = context; const functionDeclaration = getFunctionDeclarationAtPosition(file, startPosition, program.getTypeChecker()); if (!functionDeclaration || !cancellationToken) @@ -136522,14 +138560,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const functionReference = entry.node; const parent2 = functionReference.parent; switch (parent2.kind) { - case 212 /* CallExpression */: - case 213 /* NewExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: const callOrNewExpression = tryCast(parent2, isCallOrNewExpression); if (callOrNewExpression && callOrNewExpression.expression === functionReference) { return callOrNewExpression; } break; - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: const propertyAccessExpression = tryCast(parent2, isPropertyAccessExpression); if (propertyAccessExpression && propertyAccessExpression.parent && propertyAccessExpression.name === functionReference) { const callOrNewExpression2 = tryCast(propertyAccessExpression.parent, isCallOrNewExpression); @@ -136538,7 +138576,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } break; - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: const elementAccessExpression = tryCast(parent2, isElementAccessExpression); if (elementAccessExpression && elementAccessExpression.parent && elementAccessExpression.argumentExpression === functionReference) { const callOrNewExpression2 = tryCast(elementAccessExpression.parent, isCallOrNewExpression); @@ -136556,13 +138594,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const reference = entry.node; const parent2 = reference.parent; switch (parent2.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: const propertyAccessExpression = tryCast(parent2, isPropertyAccessExpression); if (propertyAccessExpression && propertyAccessExpression.expression === reference) { return propertyAccessExpression; } break; - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: const elementAccessExpression = tryCast(parent2, isElementAccessExpression); if (elementAccessExpression && elementAccessExpression.expression === reference) { return elementAccessExpression; @@ -136604,22 +138642,22 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (!isValidParameterNodeArray(functionDeclaration.parameters, checker)) return false; switch (functionDeclaration.kind) { - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return hasNameOrDefault(functionDeclaration) && isSingleImplementation(functionDeclaration, checker); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: if (isObjectLiteralExpression(functionDeclaration.parent)) { const contextualSymbol = getSymbolForContextualType(functionDeclaration.name, checker); return ((_a = contextualSymbol == null ? void 0 : contextualSymbol.declarations) == null ? void 0 : _a.length) === 1 && isSingleImplementation(functionDeclaration, checker); } return isSingleImplementation(functionDeclaration, checker); - case 175 /* Constructor */: + case 176 /* Constructor */: if (isClassDeclaration(functionDeclaration.parent)) { return hasNameOrDefault(functionDeclaration.parent) && isSingleImplementation(functionDeclaration, checker); } else { return isValidVariableDeclaration(functionDeclaration.parent.parent) && isSingleImplementation(functionDeclaration, checker); } - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return isValidVariableDeclaration(functionDeclaration.parent); } return false; @@ -136796,7 +138834,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function getClassNames(constructorDeclaration) { switch (constructorDeclaration.parent.kind) { - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: const classDeclaration = constructorDeclaration.parent; if (classDeclaration.name) return [classDeclaration.name]; @@ -136805,7 +138843,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} "Nameless class declaration should be a default export" ); return [defaultModifier]; - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: const classExpression = constructorDeclaration.parent; const variableDeclaration = constructorDeclaration.parent.parent; const className = classExpression.name; @@ -136816,7 +138854,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function getFunctionNames(functionDeclaration) { switch (functionDeclaration.kind) { - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: if (functionDeclaration.name) return [functionDeclaration.name]; const defaultModifier = Debug.checkDefined( @@ -136824,21 +138862,21 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} "Nameless function declaration should be a default export" ); return [defaultModifier]; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return [functionDeclaration.name]; - case 175 /* Constructor */: + case 176 /* Constructor */: const ctrKeyword = Debug.checkDefined( findChildOfKind(functionDeclaration, 137 /* ConstructorKeyword */, functionDeclaration.getSourceFile()), "Constructor declaration should have constructor keyword" ); - if (functionDeclaration.parent.kind === 230 /* ClassExpression */) { + if (functionDeclaration.parent.kind === 231 /* ClassExpression */) { const variableDeclaration = functionDeclaration.parent.parent; return [variableDeclaration.name, ctrKeyword]; } return [ctrKeyword]; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return [functionDeclaration.parent.name]; - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: if (functionDeclaration.name) return [functionDeclaration.name, functionDeclaration.parent.name]; return [functionDeclaration.parent.name]; @@ -136846,21 +138884,21 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return Debug.assertNever(functionDeclaration, `Unexpected function declaration kind ${functionDeclaration.kind}`); } } - var refactorName8, minimumParameterLength, refactorDescription4, toDestructuredAction; + var refactorName9, minimumParameterLength, refactorDescription5, toDestructuredAction; var init_convertParamsToDestructuredObject = __esm({ "src/services/refactors/convertParamsToDestructuredObject.ts"() { "use strict"; init_ts4(); init_ts_refactor(); - refactorName8 = "Convert parameters to destructured object"; + refactorName9 = "Convert parameters to destructured object"; minimumParameterLength = 1; - refactorDescription4 = getLocaleSpecificMessage(Diagnostics.Convert_parameters_to_destructured_object); + refactorDescription5 = getLocaleSpecificMessage(Diagnostics.Convert_parameters_to_destructured_object); toDestructuredAction = { - name: refactorName8, - description: refactorDescription4, + name: refactorName9, + description: refactorDescription5, kind: "refactor.rewrite.parameters.toDestructured" }; - registerRefactor(refactorName8, { + registerRefactor(refactorName9, { kinds: [toDestructuredAction.kind], getEditsForAction: getRefactorEditsToConvertParametersToDestructuredObject, getAvailableActions: getRefactorActionsToConvertParametersToDestructuredObject @@ -136882,7 +138920,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const { file, startPosition } = context; const node = getNodeOrParentOfParentheses(file, startPosition); const maybeBinary = getParentBinaryExpression(node); - const refactorInfo = { name: refactorName9, description: refactorDescription5, actions: [] }; + const refactorInfo = { name: refactorName10, description: refactorDescription6, actions: [] }; if (isBinaryExpression(maybeBinary) && treeToArray(maybeBinary).isValidConcatenation) { refactorInfo.actions.push(convertStringAction); return [refactorInfo]; @@ -136908,7 +138946,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const { file, startPosition } = context; const node = getNodeOrParentOfParentheses(file, startPosition); switch (actionName2) { - case refactorDescription5: + case refactorDescription6: return { edits: getEditsForToTemplateLiteral(context, node) }; default: return Debug.fail("invalid action"); @@ -136931,16 +138969,16 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } function isNotEqualsOperator(node) { - return node.operatorToken.kind !== 64 /* EqualsToken */; + return !(node.operatorToken.kind === 64 /* EqualsToken */ || node.operatorToken.kind === 65 /* PlusEqualsToken */); } function getParentBinaryExpression(expr) { const container = findAncestor(expr.parent, (n) => { switch (n.kind) { - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return false; - case 227 /* TemplateExpression */: - case 225 /* BinaryExpression */: + case 228 /* TemplateExpression */: + case 226 /* BinaryExpression */: return !(isBinaryExpression(n.parent) && isNotEqualsOperator(n.parent)); default: return "quit"; @@ -137059,20 +139097,20 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } return node; } - var refactorName9, refactorDescription5, convertStringAction, copyTrailingOperatorComments, copyCommentFromMultiNode; + var refactorName10, refactorDescription6, convertStringAction, copyTrailingOperatorComments, copyCommentFromMultiNode; var init_convertStringOrTemplateLiteral = __esm({ "src/services/refactors/convertStringOrTemplateLiteral.ts"() { "use strict"; init_ts4(); init_ts_refactor(); - refactorName9 = "Convert to template string"; - refactorDescription5 = getLocaleSpecificMessage(Diagnostics.Convert_to_template_string); + refactorName10 = "Convert to template string"; + refactorDescription6 = getLocaleSpecificMessage(Diagnostics.Convert_to_template_string); convertStringAction = { - name: refactorName9, - description: refactorDescription5, + name: refactorName10, + description: refactorDescription6, kind: "refactor.rewrite.string" }; - registerRefactor(refactorName9, { + registerRefactor(refactorName10, { kinds: [convertStringAction.kind], getEditsForAction: getRefactorEditsToConvertToTemplateString, getAvailableActions: getRefactorActionsToConvertToTemplateString @@ -137122,14 +139160,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return emptyArray; if (!isRefactorErrorInfo(info)) { return [{ - name: refactorName10, + name: refactorName11, description: convertToOptionalChainExpressionMessage, actions: [toOptionalChainAction] }]; } if (context.preferences.provideRefactorNotApplicableReason) { return [{ - name: refactorName10, + name: refactorName11, description: convertToOptionalChainExpressionMessage, actions: [{ ...toOptionalChainAction, notApplicableReason: info.error }] }]; @@ -137313,20 +139351,20 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } } - var refactorName10, convertToOptionalChainExpressionMessage, toOptionalChainAction; + var refactorName11, convertToOptionalChainExpressionMessage, toOptionalChainAction; var init_convertToOptionalChainExpression = __esm({ "src/services/refactors/convertToOptionalChainExpression.ts"() { "use strict"; init_ts4(); init_ts_refactor(); - refactorName10 = "Convert to optional chain expression"; + refactorName11 = "Convert to optional chain expression"; convertToOptionalChainExpressionMessage = getLocaleSpecificMessage(Diagnostics.Convert_to_optional_chain_expression); toOptionalChainAction = { - name: refactorName10, + name: refactorName11, description: convertToOptionalChainExpressionMessage, kind: "refactor.rewrite.expression.optionalChain" }; - registerRefactor(refactorName10, { + registerRefactor(refactorName11, { kinds: [toOptionalChainAction.kind], getEditsForAction: getRefactorEditsToConvertToOptionalChain, getAvailableActions: getRefactorActionsToConvertToOptionalChain @@ -137355,14 +139393,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const errors = []; if (refactorKindBeginsWith(extractFunctionAction.kind, requestedRefactor)) { errors.push({ - name: refactorName11, + name: refactorName12, description: extractFunctionAction.description, actions: [{ ...extractFunctionAction, notApplicableReason: getStringError(rangeToExtract.errors) }] }); } if (refactorKindBeginsWith(extractConstantAction.kind, requestedRefactor)) { errors.push({ - name: refactorName11, + name: refactorName12, description: extractConstantAction.description, actions: [{ ...extractConstantAction, notApplicableReason: getStringError(rangeToExtract.errors) }] }); @@ -137426,37 +139464,37 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const infos = []; if (functionActions.length) { infos.push({ - name: refactorName11, + name: refactorName12, description: getLocaleSpecificMessage(Diagnostics.Extract_function), actions: functionActions }); } else if (context.preferences.provideRefactorNotApplicableReason && innermostErrorFunctionAction) { infos.push({ - name: refactorName11, + name: refactorName12, description: getLocaleSpecificMessage(Diagnostics.Extract_function), actions: [innermostErrorFunctionAction] }); } if (constantActions.length) { infos.push({ - name: refactorName11, + name: refactorName12, description: getLocaleSpecificMessage(Diagnostics.Extract_constant), actions: constantActions }); } else if (context.preferences.provideRefactorNotApplicableReason && innermostErrorConstantAction) { infos.push({ - name: refactorName11, + name: refactorName12, description: getLocaleSpecificMessage(Diagnostics.Extract_constant), actions: [innermostErrorConstantAction] }); } return infos.length ? infos : emptyArray; function getStringError(errors) { - let error = errors[0].messageText; - if (typeof error !== "string") { - error = error.messageText; + let error2 = errors[0].messageText; + if (typeof error2 !== "string") { + error2 = error2.messageText; } - return error; + return error2; } } function getRefactorEditsToExtractSymbol(context, actionName2) { @@ -137492,7 +139530,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (!start || !end) { return { errors: [createFileDiagnostic(sourceFile, span.start, length2, Messages.cannotExtractRange)] }; } - if (start.flags & 8388608 /* JSDoc */) { + if (start.flags & 16777216 /* JSDoc */) { return { errors: [createFileDiagnostic(sourceFile, span.start, length2, Messages.cannotExtractJSDoc)] }; } if (start.parent !== end.parent) { @@ -137563,18 +139601,18 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function checkForStaticContext(nodeToCheck, containingClass) { let current = nodeToCheck; while (current !== containingClass) { - if (current.kind === 171 /* PropertyDeclaration */) { + if (current.kind === 172 /* PropertyDeclaration */) { if (isStatic(current)) { rangeFacts |= 32 /* InStaticRegion */; } break; - } else if (current.kind === 168 /* Parameter */) { + } else if (current.kind === 169 /* Parameter */) { const ctorOrMethod = getContainingFunction(current); - if (ctorOrMethod.kind === 175 /* Constructor */) { + if (ctorOrMethod.kind === 176 /* Constructor */) { rangeFacts |= 32 /* InStaticRegion */; } break; - } else if (current.kind === 173 /* MethodDeclaration */) { + } else if (current.kind === 174 /* MethodDeclaration */) { if (isStatic(current)) { rangeFacts |= 32 /* InStaticRegion */; } @@ -137595,7 +139633,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (!isStatement(nodeToCheck) && !(isExpressionNode(nodeToCheck) && isExtractableExpression(nodeToCheck)) && !isStringLiteralJsxAttribute(nodeToCheck)) { return [createDiagnosticForNode(nodeToCheck, Messages.statementOrExpressionExpected)]; } - if (nodeToCheck.flags & 16777216 /* Ambient */) { + if (nodeToCheck.flags & 33554432 /* Ambient */) { return [createDiagnosticForNode(nodeToCheck, Messages.cannotExtractAmbientBlock)]; } const containingClass = getContainingClass(nodeToCheck); @@ -137614,7 +139652,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} /*includeClassComputedPropertyName*/ false ); - if (container.kind === 261 /* FunctionDeclaration */ || container.kind === 173 /* MethodDeclaration */ && container.parent.kind === 209 /* ObjectLiteralExpression */ || container.kind === 217 /* FunctionExpression */) { + if (container.kind === 262 /* FunctionDeclaration */ || container.kind === 174 /* MethodDeclaration */ && container.parent.kind === 210 /* ObjectLiteralExpression */ || container.kind === 218 /* FunctionExpression */) { rangeFacts |= 16 /* UsesThisInFunction */; } } @@ -137624,21 +139662,21 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return true; } if (isDeclaration(node2)) { - const declaringNode = node2.kind === 259 /* VariableDeclaration */ ? node2.parent.parent : node2; + const declaringNode = node2.kind === 260 /* VariableDeclaration */ ? node2.parent.parent : node2; if (hasSyntacticModifier(declaringNode, 1 /* Export */)) { (errors2 || (errors2 = [])).push(createDiagnosticForNode(node2, Messages.cannotExtractExportedEntity)); return true; } } switch (node2.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: (errors2 || (errors2 = [])).push(createDiagnosticForNode(node2, Messages.cannotExtractImport)); return true; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: (errors2 || (errors2 = [])).push(createDiagnosticForNode(node2, Messages.cannotExtractExportedEntity)); return true; case 108 /* SuperKeyword */: - if (node2.parent.kind === 212 /* CallExpression */) { + if (node2.parent.kind === 213 /* CallExpression */) { const containingClass2 = getContainingClass(node2); if (containingClass2 === void 0 || containingClass2.pos < span.start || containingClass2.end >= span.start + span.length) { (errors2 || (errors2 = [])).push(createDiagnosticForNode(node2, Messages.cannotExtractSuper)); @@ -137649,7 +139687,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} thisNode = node2; } break; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: forEachChild(node2, function check(n) { if (isThis(n)) { rangeFacts |= 8 /* UsesThis */; @@ -137660,34 +139698,34 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} forEachChild(n, check); } }); - case 262 /* ClassDeclaration */: - case 261 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: + case 262 /* FunctionDeclaration */: if (isSourceFile(node2.parent) && node2.parent.externalModuleIndicator === void 0) { (errors2 || (errors2 = [])).push(createDiagnosticForNode(node2, Messages.functionWillNotBeVisibleInTheNewScope)); } - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: - case 173 /* MethodDeclaration */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return false; } const savedPermittedJumps = permittedJumps; switch (node2.kind) { - case 244 /* IfStatement */: + case 245 /* IfStatement */: permittedJumps &= ~4 /* Return */; break; - case 257 /* TryStatement */: + case 258 /* TryStatement */: permittedJumps = 0 /* None */; break; - case 240 /* Block */: - if (node2.parent && node2.parent.kind === 257 /* TryStatement */ && node2.parent.finallyBlock === node2) { + case 241 /* Block */: + if (node2.parent && node2.parent.kind === 258 /* TryStatement */ && node2.parent.finallyBlock === node2) { permittedJumps = 4 /* Return */; } break; - case 296 /* DefaultClause */: - case 295 /* CaseClause */: + case 297 /* DefaultClause */: + case 296 /* CaseClause */: permittedJumps |= 1 /* Break */; break; default: @@ -137701,39 +139739,39 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} break; } switch (node2.kind) { - case 196 /* ThisType */: + case 197 /* ThisType */: case 110 /* ThisKeyword */: rangeFacts |= 8 /* UsesThis */; thisNode = node2; break; - case 255 /* LabeledStatement */: { + case 256 /* LabeledStatement */: { const label = node2.label; (seenLabels || (seenLabels = [])).push(label.escapedText); forEachChild(node2, visit); seenLabels.pop(); break; } - case 251 /* BreakStatement */: - case 250 /* ContinueStatement */: { + case 252 /* BreakStatement */: + case 251 /* ContinueStatement */: { const label = node2.label; if (label) { if (!contains(seenLabels, label.escapedText)) { (errors2 || (errors2 = [])).push(createDiagnosticForNode(node2, Messages.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)); } } else { - if (!(permittedJumps & (node2.kind === 251 /* BreakStatement */ ? 1 /* Break */ : 2 /* Continue */))) { + if (!(permittedJumps & (node2.kind === 252 /* BreakStatement */ ? 1 /* Break */ : 2 /* Continue */))) { (errors2 || (errors2 = [])).push(createDiagnosticForNode(node2, Messages.cannotExtractRangeContainingConditionalBreakOrContinueStatements)); } } break; } - case 222 /* AwaitExpression */: + case 223 /* AwaitExpression */: rangeFacts |= 4 /* IsAsyncFunction */; break; - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: rangeFacts |= 2 /* IsGenerator */; break; - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: if (permittedJumps & 4 /* Return */) { rangeFacts |= 1 /* HasReturn */; } else { @@ -137783,12 +139821,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const scopes = []; while (true) { current = current.parent; - if (current.kind === 168 /* Parameter */) { + if (current.kind === 169 /* Parameter */) { current = findAncestor(current, (parent2) => isFunctionLikeDeclaration(parent2)).parent; } if (isScope(current)) { scopes.push(current); - if (current.kind === 311 /* SourceFile */) { + if (current.kind === 312 /* SourceFile */) { return scopes; } } @@ -137864,28 +139902,28 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function getDescriptionForFunctionLikeDeclaration(scope) { switch (scope.kind) { - case 175 /* Constructor */: + case 176 /* Constructor */: return "constructor"; - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: return scope.name ? `function '${scope.name.text}'` : ANONYMOUS; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return "arrow function"; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return `method '${scope.name.getText()}'`; - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return `'get ${scope.name.getText()}'`; - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return `'set ${scope.name.getText()}'`; default: Debug.assertNever(scope, `Unexpected scope kind ${scope.kind}`); } } function getDescriptionForClassLikeDeclaration(scope) { - return scope.kind === 262 /* ClassDeclaration */ ? scope.name ? `class '${scope.name.text}'` : "anonymous class declaration" : scope.name ? `class expression '${scope.name.text}'` : "anonymous class expression"; + return scope.kind === 263 /* ClassDeclaration */ ? scope.name ? `class '${scope.name.text}'` : "anonymous class declaration" : scope.name ? `class expression '${scope.name.text}'` : "anonymous class expression"; } function getDescriptionForModuleLikeDeclaration(scope) { - return scope.kind === 267 /* ModuleBlock */ ? `namespace '${scope.parent.name.getText()}'` : scope.externalModuleIndicator ? 0 /* Module */ : 1 /* Global */; + return scope.kind === 268 /* ModuleBlock */ ? `namespace '${scope.parent.name.getText()}'` : scope.externalModuleIndicator ? 0 /* Module */ : 1 /* Global */; } function extractFunctionInScope(node, scope, { usages: usagesInScope, typeParameterUsages, substitutions }, exposedVariableDeclarations, range, context) { const checker = context.program.getTypeChecker(); @@ -138262,7 +140300,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} changeTracker.insertNodeBefore(context.file, oldVariableDeclaration, newVariableDeclaration); const localReference = factory.createIdentifier(localNameText); changeTracker.replaceNode(context.file, node, localReference); - } else if (node.parent.kind === 243 /* ExpressionStatement */ && scope === findAncestor(node, isScope)) { + } else if (node.parent.kind === 244 /* ExpressionStatement */ && scope === findAncestor(node, isScope)) { const newVariableStatement = factory.createVariableStatement( /*modifiers*/ void 0, @@ -138292,7 +140330,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} false ); } - if (node.parent.kind === 243 /* ExpressionStatement */) { + if (node.parent.kind === 244 /* ExpressionStatement */) { changeTracker.delete(context.file, node.parent); } else { let localReference = factory.createIdentifier(localNameText); @@ -138844,27 +140882,27 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function isExtractableExpression(node) { const { parent: parent2 } = node; switch (parent2.kind) { - case 305 /* EnumMember */: + case 306 /* EnumMember */: return false; } switch (node.kind) { case 11 /* StringLiteral */: - return parent2.kind !== 271 /* ImportDeclaration */ && parent2.kind !== 275 /* ImportSpecifier */; - case 229 /* SpreadElement */: - case 205 /* ObjectBindingPattern */: - case 207 /* BindingElement */: + return parent2.kind !== 272 /* ImportDeclaration */ && parent2.kind !== 276 /* ImportSpecifier */; + case 230 /* SpreadElement */: + case 206 /* ObjectBindingPattern */: + case 208 /* BindingElement */: return false; case 80 /* Identifier */: - return parent2.kind !== 207 /* BindingElement */ && parent2.kind !== 275 /* ImportSpecifier */ && parent2.kind !== 280 /* ExportSpecifier */; + return parent2.kind !== 208 /* BindingElement */ && parent2.kind !== 276 /* ImportSpecifier */ && parent2.kind !== 281 /* ExportSpecifier */; } return true; } function isBlockLike(node) { switch (node.kind) { - case 240 /* Block */: - case 311 /* SourceFile */: - case 267 /* ModuleBlock */: - case 295 /* CaseClause */: + case 241 /* Block */: + case 312 /* SourceFile */: + case 268 /* ModuleBlock */: + case 296 /* CaseClause */: return true; default: return false; @@ -138876,13 +140914,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function isStringLiteralJsxAttribute(node) { return isStringLiteral(node) && node.parent && isJsxAttribute(node.parent); } - var refactorName11, extractConstantAction, extractFunctionAction, Messages, RangeFacts; + var refactorName12, extractConstantAction, extractFunctionAction, Messages, RangeFacts; var init_extractSymbol = __esm({ "src/services/refactors/extractSymbol.ts"() { "use strict"; init_ts4(); init_ts_refactor(); - refactorName11 = "Extract Symbol"; + refactorName12 = "Extract Symbol"; extractConstantAction = { name: "Extract Constant", description: getLocaleSpecificMessage(Diagnostics.Extract_constant), @@ -138893,7 +140931,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} description: getLocaleSpecificMessage(Diagnostics.Extract_function), kind: "refactor.extract.function" }; - registerRefactor(refactorName11, { + registerRefactor(refactorName12, { kinds: [ extractConstantAction.kind, extractFunctionAction.kind @@ -138966,7 +141004,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} init_ts4(); init_ts_refactor(); actionName = "Generate 'get' and 'set' accessors"; - actionDescription = Diagnostics.Generate_get_and_set_accessors.message; + actionDescription = getLocaleSpecificMessage(Diagnostics.Generate_get_and_set_accessors); generateGetSetAction = { name: actionName, description: actionDescription, @@ -139044,15 +141082,15 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return emptyArray; if (!isRefactorErrorInfo(info)) { return [{ - name: refactorName12, - description: refactorDescription6, + name: refactorName13, + description: refactorDescription7, actions: [inferReturnTypeAction] }]; } if (context.preferences.provideRefactorNotApplicableReason) { return [{ - name: refactorName12, - description: refactorDescription6, + name: refactorName13, + description: refactorDescription7, actions: [{ ...inferReturnTypeAction, notApplicableReason: info.error }] }]; } @@ -139090,10 +141128,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function isConvertibleDeclaration(node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: return true; default: return false; @@ -139111,20 +141149,20 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return typeChecker.getReturnTypeOfSignature(signature); } } - var refactorName12, refactorDescription6, inferReturnTypeAction; + var refactorName13, refactorDescription7, inferReturnTypeAction; var init_inferFunctionReturnType = __esm({ "src/services/refactors/inferFunctionReturnType.ts"() { "use strict"; init_ts4(); init_ts_refactor(); - refactorName12 = "Infer function return type"; - refactorDescription6 = Diagnostics.Infer_function_return_type.message; + refactorName13 = "Infer function return type"; + refactorDescription7 = getLocaleSpecificMessage(Diagnostics.Infer_function_return_type); inferReturnTypeAction = { - name: refactorName12, - description: refactorDescription6, + name: refactorName13, + description: refactorDescription7, kind: "refactor.rewrite.function.returnType" }; - registerRefactor(refactorName12, { + registerRefactor(refactorName13, { kinds: [inferReturnTypeAction.kind], getEditsForAction: getRefactorEditsToInferReturnType, getAvailableActions: getRefactorActionsToInferReturnType @@ -139185,6 +141223,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} init_convertImport(); init_extractType(); init_helpers(); + init_inlineVariable(); init_moveToNewFile(); init_moveToFile(); init_ts_refactor_addOrRemoveBracesToArrowFunction(); @@ -139233,13 +141272,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} let inJSXElement = false; function visit(node) { switch (node.kind) { - case 266 /* ModuleDeclaration */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 261 /* FunctionDeclaration */: - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 267 /* ModuleDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 262 /* FunctionDeclaration */: + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: cancellationToken.throwIfCancellationRequested(); } if (!node || !textSpanIntersectsWith(span, node.pos, node.getFullWidth()) || node.getFullWidth() === 0) { @@ -139410,25 +141449,25 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return TokenModifier2; })(TokenModifier || {}); tokenFromDeclarationMapping = /* @__PURE__ */ new Map([ - [259 /* VariableDeclaration */, 7 /* variable */], - [168 /* Parameter */, 6 /* parameter */], - [171 /* PropertyDeclaration */, 9 /* property */], - [266 /* ModuleDeclaration */, 3 /* namespace */], - [265 /* EnumDeclaration */, 1 /* enum */], - [305 /* EnumMember */, 8 /* enumMember */], - [262 /* ClassDeclaration */, 0 /* class */], - [173 /* MethodDeclaration */, 11 /* member */], - [261 /* FunctionDeclaration */, 10 /* function */], - [217 /* FunctionExpression */, 10 /* function */], - [172 /* MethodSignature */, 11 /* member */], - [176 /* GetAccessor */, 9 /* property */], - [177 /* SetAccessor */, 9 /* property */], - [170 /* PropertySignature */, 9 /* property */], - [263 /* InterfaceDeclaration */, 2 /* interface */], - [264 /* TypeAliasDeclaration */, 5 /* type */], - [167 /* TypeParameter */, 4 /* typeParameter */], - [302 /* PropertyAssignment */, 9 /* property */], - [303 /* ShorthandPropertyAssignment */, 9 /* property */] + [260 /* VariableDeclaration */, 7 /* variable */], + [169 /* Parameter */, 6 /* parameter */], + [172 /* PropertyDeclaration */, 9 /* property */], + [267 /* ModuleDeclaration */, 3 /* namespace */], + [266 /* EnumDeclaration */, 1 /* enum */], + [306 /* EnumMember */, 8 /* enumMember */], + [263 /* ClassDeclaration */, 0 /* class */], + [174 /* MethodDeclaration */, 11 /* member */], + [262 /* FunctionDeclaration */, 10 /* function */], + [218 /* FunctionExpression */, 10 /* function */], + [173 /* MethodSignature */, 11 /* member */], + [177 /* GetAccessor */, 9 /* property */], + [178 /* SetAccessor */, 9 /* property */], + [171 /* PropertySignature */, 9 /* property */], + [264 /* InterfaceDeclaration */, 2 /* interface */], + [265 /* TypeAliasDeclaration */, 5 /* type */], + [168 /* TypeParameter */, 4 /* typeParameter */], + [303 /* PropertyAssignment */, 9 /* property */], + [304 /* ShorthandPropertyAssignment */, 9 /* property */] ]); } }); @@ -139437,7 +141476,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function createNode(kind, pos, end, parent2) { const node = isNodeKind(kind) ? new NodeObject(kind, pos, end) : kind === 80 /* Identifier */ ? new IdentifierObject(80 /* Identifier */, pos, end) : kind === 81 /* PrivateIdentifier */ ? new PrivateIdentifierObject(81 /* PrivateIdentifier */, pos, end) : new TokenObject(kind, pos, end); node.parent = parent2; - node.flags = parent2.flags & 50720768 /* ContextFlags */; + node.flags = parent2.flags & 101441536 /* ContextFlags */; return node; } function createChildren(node, sourceFile) { @@ -139491,7 +141530,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } function createSyntaxList(nodes, parent2) { - const list = createNode(357 /* SyntaxList */, nodes.pos, nodes.end, parent2); + const list = createNode(358 /* SyntaxList */, nodes.pos, nodes.end, parent2); list._children = []; let pos = nodes.pos; for (const node of nodes) { @@ -139516,7 +141555,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} var _a; if (!seenSymbols.has(symbol)) { seenSymbols.add(symbol); - if (declaration.kind === 176 /* GetAccessor */ || declaration.kind === 177 /* SetAccessor */) { + if (declaration.kind === 177 /* GetAccessor */ || declaration.kind === 178 /* SetAccessor */) { return symbol.getContextualJsDocTags(declaration, checker); } return ((_a = symbol.declarations) == null ? void 0 : _a.length) === 1 ? symbol.getJsDocTags() : void 0; @@ -139539,7 +141578,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const inheritedDocs = findBaseOfDeclaration(checker, declaration, (symbol) => { if (!seenSymbols.has(symbol)) { seenSymbols.add(symbol); - if (declaration.kind === 176 /* GetAccessor */ || declaration.kind === 177 /* SetAccessor */) { + if (declaration.kind === 177 /* GetAccessor */ || declaration.kind === 178 /* SetAccessor */) { return symbol.getContextualDocumentationComment(declaration, checker); } return symbol.getDocumentationComment(checker); @@ -139553,7 +141592,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function findBaseOfDeclaration(checker, declaration, cb) { var _a; - const classOrInterfaceDeclaration = ((_a = declaration.parent) == null ? void 0 : _a.kind) === 175 /* Constructor */ ? declaration.parent.parent : declaration.parent; + const classOrInterfaceDeclaration = ((_a = declaration.parent) == null ? void 0 : _a.kind) === 176 /* Constructor */ ? declaration.parent.parent : declaration.parent; if (!classOrInterfaceDeclaration) return; const isStaticMember = hasStaticModifier(declaration); @@ -139685,10 +141724,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} host.log(message); } } - const useCaseSensitiveFileNames = hostUsesCaseSensitiveFileNames(host); - const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames); + const useCaseSensitiveFileNames2 = hostUsesCaseSensitiveFileNames(host); + const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2); const sourceMapper = getSourceMapper({ - useCaseSensitiveFileNames: () => useCaseSensitiveFileNames, + useCaseSensitiveFileNames: () => useCaseSensitiveFileNames2, getCurrentDirectory: () => currentDirectory, getProgram, fileExists: maybeBind(host, host.fileExists), @@ -139700,9 +141739,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function getValidSourceFile(fileName) { const sourceFile = program.getSourceFile(fileName); if (!sourceFile) { - const error = new Error(`Could not find source file: '${fileName}'.`); - error.ProgramFiles = program.getSourceFiles().map((f) => f.fileName); - throw error; + const error2 = new Error(`Could not find source file: '${fileName}'.`); + error2.ProgramFiles = program.getSourceFiles().map((f) => f.fileName); + throw error2; } return sourceFile; } @@ -139736,7 +141775,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} getSourceFileByPath: getOrCreateSourceFileByPath, getCancellationToken: () => cancellationToken, getCanonicalFileName, - useCaseSensitiveFileNames: () => useCaseSensitiveFileNames, + useCaseSensitiveFileNames: () => useCaseSensitiveFileNames2, getNewLine: () => getNewLineCharacter(newSettings), getDefaultLibFileName: (options2) => host.getDefaultLibFileName(options2), writeFile: noop, @@ -139780,9 +141819,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} compilerHost.getSourceFile = getSourceFileWithCache; (_c = host.setCompilerHost) == null ? void 0 : _c.call(host, compilerHost); const parseConfigHost = { - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, fileExists: (fileName) => compilerHost.fileExists(fileName), readFile: (fileName) => compilerHost.readFile(fileName), + directoryExists: (f) => compilerHost.directoryExists(f), + getDirectories: (f) => compilerHost.getDirectories(f), + realpath: compilerHost.realpath, readDirectory: (...args) => compilerHost.readDirectory(...args), trace: compilerHost.trace, getCurrentDirectory: compilerHost.getCurrentDirectory, @@ -139935,14 +141977,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } function cleanupSemanticCache() { - program = void 0; - } - function dispose() { if (program) { const key = documentRegistry.getKeyForCompilationSettings(program.getCompilerOptions()); forEach(program.getSourceFiles(), (f) => documentRegistry.releaseDocumentWithKey(f.resolvedPath, key, f.scriptKind, f.impliedNodeFormat)); program = void 0; } + } + function dispose() { + cleanupSemanticCache(); host = void 0; } function getSyntacticDiagnostics(fileName) { @@ -140061,15 +142103,15 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} switch (node.kind) { case 80 /* Identifier */: return !isLabelName(node) && !isTagName(node) && !isConstTypeReference(node.parent); - case 210 /* PropertyAccessExpression */: - case 165 /* QualifiedName */: + case 211 /* PropertyAccessExpression */: + case 166 /* QualifiedName */: return !isInComment(sourceFile, position); case 110 /* ThisKeyword */: - case 196 /* ThisType */: + case 197 /* ThisType */: case 108 /* SuperKeyword */: - case 201 /* NamedTupleMember */: + case 202 /* NamedTupleMember */: return true; - case 235 /* MetaProperty */: + case 236 /* MetaProperty */: return isImportMeta(node); default: return false; @@ -140169,15 +142211,15 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return void 0; } switch (node.kind) { - case 210 /* PropertyAccessExpression */: - case 165 /* QualifiedName */: + case 211 /* PropertyAccessExpression */: + case 166 /* QualifiedName */: case 11 /* StringLiteral */: case 97 /* FalseKeyword */: case 112 /* TrueKeyword */: case 106 /* NullKeyword */: case 108 /* SuperKeyword */: case 110 /* ThisKeyword */: - case 196 /* ThisType */: + case 197 /* ThisType */: case 80 /* Identifier */: break; default: @@ -140188,7 +142230,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (isRightSideOfPropertyAccess(nodeForStartPos) || isRightSideOfQualifiedName(nodeForStartPos)) { nodeForStartPos = nodeForStartPos.parent; } else if (isNameOfModuleDeclaration(nodeForStartPos)) { - if (nodeForStartPos.parent.parent.kind === 266 /* ModuleDeclaration */ && nodeForStartPos.parent.parent.body === nodeForStartPos.parent) { + if (nodeForStartPos.parent.parent.kind === 267 /* ModuleDeclaration */ && nodeForStartPos.parent.parent.body === nodeForStartPos.parent) { nodeForStartPos = nodeForStartPos.parent.parent.name; } else { break; @@ -140365,7 +142407,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function getLinkedEditingRangeAtPosition(fileName, position) { const sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName); const token = findPrecedingToken(position, sourceFile); - if (!token || token.parent.kind === 311 /* SourceFile */) + if (!token || token.parent.kind === 312 /* SourceFile */) return void 0; const jsxTagWordPattern = "[a-zA-Z0-9:\\-\\._$]*"; if (isJsxFragment(token.parent.parent)) { @@ -140613,7 +142655,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return !tagNamesAreEquivalent(openingElement.tagName, closingElement.tagName) || isJsxElement(parent2) && tagNamesAreEquivalent(openingElement.tagName, parent2.openingElement.tagName) && isUnclosedTag(parent2); } function isUnclosedFragment({ closingFragment, parent: parent2 }) { - return !!(closingFragment.flags & 131072 /* ThisNodeHasError */) || isJsxFragment(parent2) && isUnclosedFragment(parent2); + return !!(closingFragment.flags & 262144 /* ThisNodeHasError */) || isJsxFragment(parent2) && isUnclosedFragment(parent2); } function getSpanOfEnclosingComment(fileName, position, onlyMultiLine) { const sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName); @@ -140655,7 +142697,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } return result; function escapeRegExp(str) { - return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"); + return str.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&"); } function getTodoCommentsRegExp() { const singleLineCommentStart = /(?:\/\/+\s*)/.source; @@ -140723,10 +142765,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const newFileName = createNewFileName(sourceFile, program, getRefactorContext(sourceFile, positionOrRange, preferences, emptyOptions), host); return { newFileName, files }; } - function getEditsForRefactor2(fileName, formatOptions, positionOrRange, refactorName13, actionName2, preferences = emptyOptions, interactiveRefactorArguments) { + function getEditsForRefactor2(fileName, formatOptions, positionOrRange, refactorName14, actionName2, preferences = emptyOptions, interactiveRefactorArguments) { synchronizeHostData(); const file = getValidSourceFile(fileName); - return ts_refactor_exports.getEditsForRefactor(getRefactorContext(file, positionOrRange, preferences, formatOptions), refactorName13, actionName2, interactiveRefactorArguments); + return ts_refactor_exports.getEditsForRefactor(getRefactorContext(file, positionOrRange, preferences, formatOptions), refactorName14, actionName2, interactiveRefactorArguments); } function toLineColumnOffset(fileName, position) { if (position === 0) { @@ -140874,7 +142916,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} }); } function literalIsName(node) { - return isDeclarationName(node) || node.parent.kind === 282 /* ExternalModuleReference */ || isArgumentOfElementAccessExpression(node) || isLiteralComputedPropertyDeclarationName(node); + return isDeclarationName(node) || node.parent.kind === 283 /* ExternalModuleReference */ || isArgumentOfElementAccessExpression(node) || isLiteralComputedPropertyDeclarationName(node); } function getContainingObjectLiteralElement(node) { const element = getContainingObjectLiteralElementWorker(node); @@ -140885,11 +142927,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} case 11 /* StringLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: case 9 /* NumericLiteral */: - if (node.parent.kind === 166 /* ComputedPropertyName */) { + if (node.parent.kind === 167 /* ComputedPropertyName */) { return isObjectLiteralElement(node.parent.parent) ? node.parent.parent : void 0; } case 80 /* Identifier */: - return isObjectLiteralElement(node.parent) && (node.parent.parent.kind === 209 /* ObjectLiteralExpression */ || node.parent.parent.kind === 291 /* JsxAttributes */) && node.parent.name === node ? node.parent : void 0; + return isObjectLiteralElement(node.parent) && (node.parent.parent.kind === 210 /* ObjectLiteralExpression */ || node.parent.parent.kind === 292 /* JsxAttributes */) && node.parent.name === node ? node.parent : void 0; } return void 0; } @@ -140930,7 +142972,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return discriminatedPropertySymbols; } function isArgumentOfElementAccessExpression(node) { - return node && node.parent && node.parent.kind === 211 /* ElementAccessExpression */ && node.parent.argumentExpression === node; + return node && node.parent && node.parent.kind === 212 /* ElementAccessExpression */ && node.parent.argumentExpression === node; } function getDefaultLibFilePath(options) { if (sys) { @@ -141016,8 +143058,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (!children.length) { return void 0; } - const child = find(children, (kid) => kid.kind < 315 /* FirstJSDocNode */ || kid.kind > 356 /* LastJSDocNode */); - return child.kind < 165 /* FirstNode */ ? child : child.getFirstToken(sourceFile); + const child = find(children, (kid) => kid.kind < 316 /* FirstJSDocNode */ || kid.kind > 357 /* LastJSDocNode */); + return child.kind < 166 /* FirstNode */ ? child : child.getFirstToken(sourceFile); } getLastToken(sourceFile) { this.assertHasRealPosition(); @@ -141026,7 +143068,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (!child) { return void 0; } - return child.kind < 165 /* FirstNode */ ? child : child.getLastToken(sourceFile); + return child.kind < 166 /* FirstNode */ ? child : child.getLastToken(sourceFile); } forEachChild(cbNode, cbNodeArray) { return forEachChild(this, cbNode, cbNodeArray); @@ -141327,7 +143369,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} SourceFileObject = class extends NodeObject { constructor(kind, pos, end) { super(kind, pos, end); - this.kind = 311 /* SourceFile */; + this.kind = 312 /* SourceFile */; } update(newText, textChangeRange) { return updateSourceFile(this, newText, textChangeRange); @@ -141383,10 +143425,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function visit(node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: const functionDeclaration = node; const declarationName = getDeclarationName(functionDeclaration); if (declarationName) { @@ -141402,29 +143444,29 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } forEachChild(node, visit); break; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 265 /* EnumDeclaration */: - case 266 /* ModuleDeclaration */: - case 270 /* ImportEqualsDeclaration */: - case 280 /* ExportSpecifier */: - case 275 /* ImportSpecifier */: - case 272 /* ImportClause */: - case 273 /* NamespaceImport */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 186 /* TypeLiteral */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 266 /* EnumDeclaration */: + case 267 /* ModuleDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 281 /* ExportSpecifier */: + case 276 /* ImportSpecifier */: + case 273 /* ImportClause */: + case 274 /* NamespaceImport */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 187 /* TypeLiteral */: addDeclaration(node); forEachChild(node, visit); break; - case 168 /* Parameter */: + case 169 /* Parameter */: if (!hasSyntacticModifier(node, 16476 /* ParameterPropertyModifier */)) { break; } - case 259 /* VariableDeclaration */: - case 207 /* BindingElement */: { + case 260 /* VariableDeclaration */: + case 208 /* BindingElement */: { const decl = node; if (isBindingPattern(decl.name)) { forEachChild(decl.name, visit); @@ -141434,12 +143476,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} visit(decl.initializer); } } - case 305 /* EnumMember */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: + case 306 /* EnumMember */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: addDeclaration(node); break; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: const exportDeclaration = node; if (exportDeclaration.exportClause) { if (isNamedExports(exportDeclaration.exportClause)) { @@ -141449,14 +143491,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } break; - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: const importClause = node.importClause; if (importClause) { if (importClause.name) { addDeclaration(importClause.name); } if (importClause.namedBindings) { - if (importClause.namedBindings.kind === 273 /* NamespaceImport */) { + if (importClause.namedBindings.kind === 274 /* NamespaceImport */) { addDeclaration(importClause.namedBindings); } else { forEach(importClause.namedBindings.elements, visit); @@ -141464,7 +143506,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } break; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: if (getAssignmentDeclarationKind(node) !== 0 /* None */) { addDeclaration(node); } @@ -142600,7 +144642,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } tokenAtLocation = preceding; } - if (tokenAtLocation.flags & 16777216 /* Ambient */) { + if (tokenAtLocation.flags & 33554432 /* Ambient */) { return void 0; } return spanInNode(tokenAtLocation); @@ -142643,89 +144685,89 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (node) { const { parent: parent2 } = node; switch (node.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return spanInVariableDeclaration(node.declarationList.declarations[0]); - case 259 /* VariableDeclaration */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: + case 260 /* VariableDeclaration */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: return spanInVariableDeclaration(node); - case 168 /* Parameter */: + case 169 /* Parameter */: return spanInParameterDeclaration(node); - case 261 /* FunctionDeclaration */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 175 /* Constructor */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 176 /* Constructor */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return spanInFunctionDeclaration(node); - case 240 /* Block */: + case 241 /* Block */: if (isFunctionBlock(node)) { return spanInFunctionBlock(node); } - case 267 /* ModuleBlock */: + case 268 /* ModuleBlock */: return spanInBlock(node); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return spanInBlock(node.block); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return textSpan(node.expression); - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: return textSpan(node.getChildAt(0), node.expression); - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: return textSpanEndingAtNextToken(node, node.expression); - case 245 /* DoStatement */: + case 246 /* DoStatement */: return spanInNode(node.statement); - case 258 /* DebuggerStatement */: + case 259 /* DebuggerStatement */: return textSpan(node.getChildAt(0)); - case 244 /* IfStatement */: + case 245 /* IfStatement */: return textSpanEndingAtNextToken(node, node.expression); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return spanInNode(node.statement); - case 251 /* BreakStatement */: - case 250 /* ContinueStatement */: + case 252 /* BreakStatement */: + case 251 /* ContinueStatement */: return textSpan(node.getChildAt(0), node.label); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return spanInForStatement(node); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return textSpanEndingAtNextToken(node, node.expression); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return spanInInitializerOfForLike(node); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return textSpanEndingAtNextToken(node, node.expression); - case 295 /* CaseClause */: - case 296 /* DefaultClause */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: return spanInNode(node.statements[0]); - case 257 /* TryStatement */: + case 258 /* TryStatement */: return spanInBlock(node.tryBlock); - case 256 /* ThrowStatement */: + case 257 /* ThrowStatement */: return textSpan(node, node.expression); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return textSpan(node, node.expression); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return textSpan(node, node.moduleReference); - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return textSpan(node, node.moduleSpecifier); - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return textSpan(node, node.moduleSpecifier); - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: if (getModuleInstanceState(node) !== 1 /* Instantiated */) { return void 0; } - case 262 /* ClassDeclaration */: - case 265 /* EnumDeclaration */: - case 305 /* EnumMember */: - case 207 /* BindingElement */: + case 263 /* ClassDeclaration */: + case 266 /* EnumDeclaration */: + case 306 /* EnumMember */: + case 208 /* BindingElement */: return textSpan(node); - case 253 /* WithStatement */: + case 254 /* WithStatement */: return spanInNode(node.statement); - case 169 /* Decorator */: + case 170 /* Decorator */: return spanInNodeArray(parent2.modifiers, node, isDecorator); - case 205 /* ObjectBindingPattern */: - case 206 /* ArrayBindingPattern */: + case 206 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: return spanInBindingPattern(node); - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: return void 0; case 27 /* SemicolonToken */: case 1 /* EndOfFileToken */: @@ -142753,16 +144795,16 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} case 85 /* CatchKeyword */: case 98 /* FinallyKeyword */: return spanInNextNode(node); - case 164 /* OfKeyword */: + case 165 /* OfKeyword */: return spanInOfKeyword(node); default: if (isArrayLiteralOrObjectLiteralDestructuringPattern(node)) { return spanInArrayLiteralOrObjectLiteralDestructuringPattern(node); } - if ((node.kind === 80 /* Identifier */ || node.kind === 229 /* SpreadElement */ || node.kind === 302 /* PropertyAssignment */ || node.kind === 303 /* ShorthandPropertyAssignment */) && isArrayLiteralOrObjectLiteralDestructuringPattern(parent2)) { + if ((node.kind === 80 /* Identifier */ || node.kind === 230 /* SpreadElement */ || node.kind === 303 /* PropertyAssignment */ || node.kind === 304 /* ShorthandPropertyAssignment */) && isArrayLiteralOrObjectLiteralDestructuringPattern(parent2)) { return textSpan(node); } - if (node.kind === 225 /* BinaryExpression */) { + if (node.kind === 226 /* BinaryExpression */) { const { left, operatorToken } = node; if (isArrayLiteralOrObjectLiteralDestructuringPattern(left)) { return spanInArrayLiteralOrObjectLiteralDestructuringPattern( @@ -142778,19 +144820,19 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } if (isExpressionNode(node)) { switch (parent2.kind) { - case 245 /* DoStatement */: + case 246 /* DoStatement */: return spanInPreviousNode(node); - case 169 /* Decorator */: + case 170 /* Decorator */: return spanInNode(node.parent); - case 247 /* ForStatement */: - case 249 /* ForOfStatement */: + case 248 /* ForStatement */: + case 250 /* ForOfStatement */: return textSpan(node); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: if (node.parent.operatorToken.kind === 28 /* CommaToken */) { return textSpan(node); } break; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: if (node.parent.body === node) { return textSpan(node); } @@ -142798,25 +144840,25 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } switch (node.parent.kind) { - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: if (node.parent.name === node && !isArrayLiteralOrObjectLiteralDestructuringPattern(node.parent.parent)) { return spanInNode(node.parent.initializer); } break; - case 215 /* TypeAssertionExpression */: + case 216 /* TypeAssertionExpression */: if (node.parent.type === node) { return spanInNextNode(node.parent.type); } break; - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: { + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: { const { initializer, type } = node.parent; if (initializer === node || type === node || isAssignmentOperator(node.kind)) { return spanInPreviousNode(node); } break; } - case 225 /* BinaryExpression */: { + case 226 /* BinaryExpression */: { const { left } = node.parent; if (isArrayLiteralOrObjectLiteralDestructuringPattern(left) && node !== left) { return spanInPreviousNode(node); @@ -142839,14 +144881,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } function spanInVariableDeclaration(variableDeclaration) { - if (variableDeclaration.parent.parent.kind === 248 /* ForInStatement */) { + if (variableDeclaration.parent.parent.kind === 249 /* ForInStatement */) { return spanInNode(variableDeclaration.parent.parent); } const parent2 = variableDeclaration.parent; if (isBindingPattern(variableDeclaration.name)) { return spanInBindingPattern(variableDeclaration.name); } - if (hasOnlyExpressionInitializer(variableDeclaration) && variableDeclaration.initializer || hasSyntacticModifier(variableDeclaration, 1 /* Export */) || parent2.parent.kind === 249 /* ForOfStatement */) { + if (hasOnlyExpressionInitializer(variableDeclaration) && variableDeclaration.initializer || hasSyntacticModifier(variableDeclaration, 1 /* Export */) || parent2.parent.kind === 250 /* ForOfStatement */) { return textSpanFromVariableDeclaration(variableDeclaration); } if (isVariableDeclarationList(variableDeclaration.parent) && variableDeclaration.parent.declarations[0] !== variableDeclaration) { @@ -142873,7 +144915,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } function canFunctionHaveSpanInWholeDeclaration(functionDeclaration) { - return hasSyntacticModifier(functionDeclaration, 1 /* Export */) || functionDeclaration.parent.kind === 262 /* ClassDeclaration */ && functionDeclaration.kind !== 175 /* Constructor */; + return hasSyntacticModifier(functionDeclaration, 1 /* Export */) || functionDeclaration.parent.kind === 263 /* ClassDeclaration */ && functionDeclaration.kind !== 176 /* Constructor */; } function spanInFunctionDeclaration(functionDeclaration) { if (!functionDeclaration.body) { @@ -142893,22 +144935,22 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function spanInBlock(block) { switch (block.parent.kind) { - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: if (getModuleInstanceState(block.parent) !== 1 /* Instantiated */) { return void 0; } - case 246 /* WhileStatement */: - case 244 /* IfStatement */: - case 248 /* ForInStatement */: + case 247 /* WhileStatement */: + case 245 /* IfStatement */: + case 249 /* ForInStatement */: return spanInNodeIfStartsOnSameLine(block.parent, block.statements[0]); - case 247 /* ForStatement */: - case 249 /* ForOfStatement */: + case 248 /* ForStatement */: + case 250 /* ForOfStatement */: return spanInNodeIfStartsOnSameLine(findPrecedingToken(block.pos, sourceFile, block.parent), block.statements[0]); } return spanInNode(block.statements[0]); } function spanInInitializerOfForLike(forLikeStatement) { - if (forLikeStatement.initializer.kind === 260 /* VariableDeclarationList */) { + if (forLikeStatement.initializer.kind === 261 /* VariableDeclarationList */) { const variableDeclarationList = forLikeStatement.initializer; if (variableDeclarationList.declarations.length > 0) { return spanInNode(variableDeclarationList.declarations[0]); @@ -142931,64 +144973,64 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function spanInBindingPattern(bindingPattern) { const firstBindingElement = forEach( bindingPattern.elements, - (element) => element.kind !== 231 /* OmittedExpression */ ? element : void 0 + (element) => element.kind !== 232 /* OmittedExpression */ ? element : void 0 ); if (firstBindingElement) { return spanInNode(firstBindingElement); } - if (bindingPattern.parent.kind === 207 /* BindingElement */) { + if (bindingPattern.parent.kind === 208 /* BindingElement */) { return textSpan(bindingPattern.parent); } return textSpanFromVariableDeclaration(bindingPattern.parent); } function spanInArrayLiteralOrObjectLiteralDestructuringPattern(node2) { - Debug.assert(node2.kind !== 206 /* ArrayBindingPattern */ && node2.kind !== 205 /* ObjectBindingPattern */); - const elements = node2.kind === 208 /* ArrayLiteralExpression */ ? node2.elements : node2.properties; + Debug.assert(node2.kind !== 207 /* ArrayBindingPattern */ && node2.kind !== 206 /* ObjectBindingPattern */); + const elements = node2.kind === 209 /* ArrayLiteralExpression */ ? node2.elements : node2.properties; const firstBindingElement = forEach( elements, - (element) => element.kind !== 231 /* OmittedExpression */ ? element : void 0 + (element) => element.kind !== 232 /* OmittedExpression */ ? element : void 0 ); if (firstBindingElement) { return spanInNode(firstBindingElement); } - return textSpan(node2.parent.kind === 225 /* BinaryExpression */ ? node2.parent : node2); + return textSpan(node2.parent.kind === 226 /* BinaryExpression */ ? node2.parent : node2); } function spanInOpenBraceToken(node2) { switch (node2.parent.kind) { - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: const enumDeclaration = node2.parent; return spanInNodeIfStartsOnSameLine(findPrecedingToken(node2.pos, sourceFile, node2.parent), enumDeclaration.members.length ? enumDeclaration.members[0] : enumDeclaration.getLastToken(sourceFile)); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: const classDeclaration = node2.parent; return spanInNodeIfStartsOnSameLine(findPrecedingToken(node2.pos, sourceFile, node2.parent), classDeclaration.members.length ? classDeclaration.members[0] : classDeclaration.getLastToken(sourceFile)); - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: return spanInNodeIfStartsOnSameLine(node2.parent.parent, node2.parent.clauses[0]); } return spanInNode(node2.parent); } function spanInCloseBraceToken(node2) { switch (node2.parent.kind) { - case 267 /* ModuleBlock */: + case 268 /* ModuleBlock */: if (getModuleInstanceState(node2.parent.parent) !== 1 /* Instantiated */) { return void 0; } - case 265 /* EnumDeclaration */: - case 262 /* ClassDeclaration */: + case 266 /* EnumDeclaration */: + case 263 /* ClassDeclaration */: return textSpan(node2); - case 240 /* Block */: + case 241 /* Block */: if (isFunctionBlock(node2.parent)) { return textSpan(node2); } - case 298 /* CatchClause */: + case 299 /* CatchClause */: return spanInNode(lastOrUndefined(node2.parent.statements)); - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: const caseBlock = node2.parent; const lastClause = lastOrUndefined(caseBlock.clauses); if (lastClause) { return spanInNode(lastOrUndefined(lastClause.statements)); } return void 0; - case 205 /* ObjectBindingPattern */: + case 206 /* ObjectBindingPattern */: const bindingPattern = node2.parent; return spanInNode(lastOrUndefined(bindingPattern.elements) || bindingPattern); default: @@ -143001,7 +145043,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function spanInCloseBracketToken(node2) { switch (node2.parent.kind) { - case 206 /* ArrayBindingPattern */: + case 207 /* ArrayBindingPattern */: const bindingPattern = node2.parent; return textSpan(lastOrUndefined(bindingPattern.elements) || bindingPattern); default: @@ -143013,57 +145055,57 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } function spanInOpenParenToken(node2) { - if (node2.parent.kind === 245 /* DoStatement */ || // Go to while keyword and do action instead - node2.parent.kind === 212 /* CallExpression */ || node2.parent.kind === 213 /* NewExpression */) { + if (node2.parent.kind === 246 /* DoStatement */ || // Go to while keyword and do action instead + node2.parent.kind === 213 /* CallExpression */ || node2.parent.kind === 214 /* NewExpression */) { return spanInPreviousNode(node2); } - if (node2.parent.kind === 216 /* ParenthesizedExpression */) { + if (node2.parent.kind === 217 /* ParenthesizedExpression */) { return spanInNextNode(node2); } return spanInNode(node2.parent); } function spanInCloseParenToken(node2) { switch (node2.parent.kind) { - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 175 /* Constructor */: - case 246 /* WhileStatement */: - case 245 /* DoStatement */: - case 247 /* ForStatement */: - case 249 /* ForOfStatement */: - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 216 /* ParenthesizedExpression */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 176 /* Constructor */: + case 247 /* WhileStatement */: + case 246 /* DoStatement */: + case 248 /* ForStatement */: + case 250 /* ForOfStatement */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 217 /* ParenthesizedExpression */: return spanInPreviousNode(node2); default: return spanInNode(node2.parent); } } function spanInColonToken(node2) { - if (isFunctionLike(node2.parent) || node2.parent.kind === 302 /* PropertyAssignment */ || node2.parent.kind === 168 /* Parameter */) { + if (isFunctionLike(node2.parent) || node2.parent.kind === 303 /* PropertyAssignment */ || node2.parent.kind === 169 /* Parameter */) { return spanInPreviousNode(node2); } return spanInNode(node2.parent); } function spanInGreaterThanOrLessThanToken(node2) { - if (node2.parent.kind === 215 /* TypeAssertionExpression */) { + if (node2.parent.kind === 216 /* TypeAssertionExpression */) { return spanInNextNode(node2); } return spanInNode(node2.parent); } function spanInWhileKeyword(node2) { - if (node2.parent.kind === 245 /* DoStatement */) { + if (node2.parent.kind === 246 /* DoStatement */) { return textSpanEndingAtNextToken(node2, node2.parent.expression); } return spanInNode(node2.parent); } function spanInOfKeyword(node2) { - if (node2.parent.kind === 249 /* ForOfStatement */) { + if (node2.parent.kind === 250 /* ForOfStatement */) { return spanInNextNode(node2); } return spanInNode(node2.parent); @@ -143161,16 +145203,16 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return; } switch (node.kind) { - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 173 /* MethodDeclaration */: - if (node.parent.kind === 209 /* ObjectLiteralExpression */) { + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: + if (node.parent.kind === 210 /* ObjectLiteralExpression */) { return (_a = getAssignedName(node.parent)) == null ? void 0 : _a.getText(); } return (_b = getNameOfDeclaration(node.parent)) == null ? void 0 : _b.getText(); - case 261 /* FunctionDeclaration */: - case 262 /* ClassDeclaration */: - case 266 /* ModuleDeclaration */: + case 262 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: + case 267 /* ModuleDeclaration */: if (isModuleBlock(node.parent) && isIdentifier(node.parent.parent.name)) { return node.parent.parent.name.getText(); } @@ -143372,7 +145414,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function collect(node) { if (!node) return; - if (node.flags & 16777216 /* Ambient */) { + if (node.flags & 33554432 /* Ambient */) { return; } if (isValidCallHierarchyDeclaration(node)) { @@ -143387,55 +145429,55 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } switch (node.kind) { case 80 /* Identifier */: - case 270 /* ImportEqualsDeclaration */: - case 271 /* ImportDeclaration */: - case 277 /* ExportDeclaration */: - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 272 /* ImportDeclaration */: + case 278 /* ExportDeclaration */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: return; - case 174 /* ClassStaticBlockDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: recordCallSite(node); return; - case 215 /* TypeAssertionExpression */: - case 233 /* AsExpression */: + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: collect(node.expression); return; - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: collect(node.name); collect(node.initializer); return; - case 212 /* CallExpression */: + case 213 /* CallExpression */: recordCallSite(node); collect(node.expression); forEach(node.arguments, collect); return; - case 213 /* NewExpression */: + case 214 /* NewExpression */: recordCallSite(node); collect(node.expression); forEach(node.arguments, collect); return; - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: recordCallSite(node); collect(node.tag); collect(node.template); return; - case 285 /* JsxOpeningElement */: - case 284 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: recordCallSite(node); collect(node.tagName); collect(node.attributes); return; - case 169 /* Decorator */: + case 170 /* Decorator */: recordCallSite(node); collect(node.expression); return; - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: recordCallSite(node); forEachChild(node, collect); break; - case 237 /* SatisfiesExpression */: + case 238 /* SatisfiesExpression */: collect(node.expression); return; } @@ -143488,25 +145530,25 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const callSites = []; const collect = createCallSiteCollector(program, callSites); switch (node.kind) { - case 311 /* SourceFile */: + case 312 /* SourceFile */: collectCallSitesOfSourceFile(node, collect); break; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: collectCallSitesOfModuleDeclaration(node, collect); break; - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: collectCallSitesOfFunctionLikeDeclaration(program.getTypeChecker(), node, collect); break; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: collectCallSitesOfClassLikeDeclaration(node, collect); break; - case 174 /* ClassStaticBlockDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: collectCallSitesOfClassStaticBlockDeclaration(node, collect); break; default: @@ -143521,7 +145563,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return createCallHierarchyOutgoingCall(createCallHierarchyItem(program, entries[0].declaration), map(entries, (entry) => createTextSpanFromRange(entry.range))); } function getOutgoingCalls(program, declaration) { - if (declaration.flags & 16777216 /* Ambient */ || isMethodSignature(declaration)) { + if (declaration.flags & 33554432 /* Ambient */ || isMethodSignature(declaration)) { return []; } return group(collectCallSites(program, declaration), getCallSiteGroupKey, (entries) => convertCallSiteGroupToOutgoingCall(program, entries)); @@ -143598,9 +145640,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return { fixName: fixName8, description: description3, changes, fixId: fixId52, fixAllDescription, commands: command ? [command] : void 0 }; } function registerCodeFix(reg) { - for (const error of reg.errorCodes) { + for (const error2 of reg.errorCodes) { errorCodeToFixesArray = void 0; - errorCodeToFixes.add(String(error), reg); + errorCodeToFixes.add(String(error2), reg); } if (reg.fixIds) { for (const fixId52 of reg.fixIds) { @@ -143716,6 +145758,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} registerCodeFix({ errorCodes: [ Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code, + Diagnostics.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code, Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code ], getCodeActions: function getCodeActionsToAddEmptyExportDeclaration(context) { @@ -143867,7 +145910,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } const declaration = tryCast(symbol.valueDeclaration, isVariableDeclaration); const variableName = declaration && tryCast(declaration.name, isIdentifier); - const variableStatement = getAncestor(declaration, 242 /* VariableStatement */); + const variableStatement = getAncestor(declaration, 243 /* VariableStatement */); if (!declaration || !variableStatement || declaration.type || !declaration.initializer || variableStatement.getSourceFile() !== sourceFile || hasSyntacticModifier(variableStatement, 1 /* Export */) || !variableName || !isInsideAwaitableBody(declaration.initializer)) { isCompleteFix = false; continue; @@ -143926,7 +145969,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} checker.getTypeAtLocation(errorNode).flags & 1 /* Any */; } function isInsideAwaitableBody(node) { - return node.kind & 32768 /* AwaitContext */ || !!findAncestor(node, (ancestor) => ancestor.parent && isArrowFunction(ancestor.parent) && ancestor.parent.body === ancestor || isBlock(ancestor) && (ancestor.parent.kind === 261 /* FunctionDeclaration */ || ancestor.parent.kind === 217 /* FunctionExpression */ || ancestor.parent.kind === 218 /* ArrowFunction */ || ancestor.parent.kind === 173 /* MethodDeclaration */)); + return node.kind & 65536 /* AwaitContext */ || !!findAncestor(node, (ancestor) => ancestor.parent && isArrowFunction(ancestor.parent) && ancestor.parent.body === ancestor || isBlock(ancestor) && (ancestor.parent.kind === 262 /* FunctionDeclaration */ || ancestor.parent.kind === 218 /* FunctionExpression */ || ancestor.parent.kind === 219 /* ArrowFunction */ || ancestor.parent.kind === 174 /* MethodDeclaration */)); } function makeChange3(changeTracker, errorCode, sourceFile, checker, insertionSite, fixedDeclarations) { if (isForOfStatement(insertionSite.parent) && !insertionSite.parent.awaitModifier) { @@ -144092,10 +146135,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function isPossiblyPartOfDestructuring(node) { switch (node.kind) { case 80 /* Identifier */: - case 208 /* ArrayLiteralExpression */: - case 209 /* ObjectLiteralExpression */: - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: + case 209 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return true; default: return false; @@ -144112,7 +146155,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function isPossiblyPartOfCommaSeperatedInitializer(node) { switch (node.kind) { case 80 /* Identifier */: - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: case 28 /* CommaToken */: return true; default: @@ -144163,7 +146206,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return; } const declaration = token.parent; - if (declaration.kind === 171 /* PropertyDeclaration */ && (!fixedNodes || tryAddToSet(fixedNodes, declaration))) { + if (declaration.kind === 172 /* PropertyDeclaration */ && (!fixedNodes || tryAddToSet(fixedNodes, declaration))) { changeTracker.insertModifierBefore(sourceFile, 138 /* DeclareKeyword */, declaration); } } @@ -144330,7 +146373,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const d = add.valueDeclaration; if (d && (isPropertySignature(d) || isPropertyDeclaration(d)) && d.type) { const t = factory.createUnionTypeNode([ - ...d.type.kind === 191 /* UnionType */ ? d.type.types : [d.type], + ...d.type.kind === 192 /* UnionType */ ? d.type.types : [d.type], factory.createTypeReferenceNode("undefined") ]); changes.replaceNode(d.getSourceFile(), d.type, t); @@ -144407,26 +146450,26 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } function isDeclarationWithType(node) { - return isFunctionLikeDeclaration(node) || node.kind === 259 /* VariableDeclaration */ || node.kind === 170 /* PropertySignature */ || node.kind === 171 /* PropertyDeclaration */; + return isFunctionLikeDeclaration(node) || node.kind === 260 /* VariableDeclaration */ || node.kind === 171 /* PropertySignature */ || node.kind === 172 /* PropertyDeclaration */; } function transformJSDocType(node) { switch (node.kind) { - case 318 /* JSDocAllType */: - case 319 /* JSDocUnknownType */: + case 319 /* JSDocAllType */: + case 320 /* JSDocUnknownType */: return factory.createTypeReferenceNode("any", emptyArray); - case 322 /* JSDocOptionalType */: + case 323 /* JSDocOptionalType */: return transformJSDocOptionalType(node); - case 321 /* JSDocNonNullableType */: + case 322 /* JSDocNonNullableType */: return transformJSDocType(node.type); - case 320 /* JSDocNullableType */: + case 321 /* JSDocNullableType */: return transformJSDocNullableType(node); - case 324 /* JSDocVariadicType */: + case 325 /* JSDocVariadicType */: return transformJSDocVariadicType(node); - case 323 /* JSDocFunctionType */: + case 324 /* JSDocFunctionType */: return transformJSDocFunctionType(node); - case 182 /* TypeReference */: + case 183 /* TypeReference */: return transformJSDocTypeReference(node); - case 328 /* JSDocTypeLiteral */: + case 329 /* JSDocTypeLiteral */: return transformJSDocTypeLiteral(node); default: const visited = visitEachChild(node, transformJSDocType, nullTransformationContext); @@ -144459,7 +146502,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function transformJSDocParameter(node) { const index = node.parent.parameters.indexOf(node); - const isRest = node.type.kind === 324 /* JSDocVariadicType */ && index === node.parent.parameters.length - 1; + const isRest = node.type.kind === 325 /* JSDocVariadicType */ && index === node.parent.parameters.length - 1; const name = node.name || (isRest ? "rest" : "arg" + index); const dotdotdot = isRest ? factory.createToken(26 /* DotDotDotToken */) : node.dotDotDotToken; return factory.createParameterDeclaration(node.modifiers, dotdotdot, name, node.questionToken, visitNode(node.type, transformJSDocType, isTypeNode), node.initializer); @@ -144641,7 +146684,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} })) { return; } - const nodeToDelete = assignmentBinaryExpression.parent && assignmentBinaryExpression.parent.kind === 243 /* ExpressionStatement */ ? assignmentBinaryExpression.parent : assignmentBinaryExpression; + const nodeToDelete = assignmentBinaryExpression.parent && assignmentBinaryExpression.parent.kind === 244 /* ExpressionStatement */ ? assignmentBinaryExpression.parent : assignmentBinaryExpression; changes.delete(sourceFile, nodeToDelete); if (!assignmentExpr) { members.push(factory.createPropertyDeclaration( @@ -144726,7 +146769,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function createArrowFunctionExpressionMember(members2, arrowFunction, name) { const arrowFunctionBody = arrowFunction.body; let bodyBlock; - if (arrowFunctionBody.kind === 240 /* Block */) { + if (arrowFunctionBody.kind === 241 /* Block */) { bodyBlock = arrowFunctionBody; } else { bodyBlock = factory.createBlock([factory.createReturnStatement(arrowFunctionBody)]); @@ -145289,7 +147332,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} switch (func.kind) { case 106 /* NullKeyword */: break; - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: case 80 /* Identifier */: if (!inputArgName) { break; @@ -145314,8 +147357,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} continuationArgName.types.push(transformer.checker.getAwaitedType(returnType) || returnType); } return varDeclOrAssignment; - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: { + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: { const funcBody = func.body; const returnType2 = (_a = getLastCallSignature(transformer.checker.getTypeAtLocation(func), transformer.checker)) == null ? void 0 : _a.getReturnType(); if (isBlock(funcBody)) { @@ -145557,7 +147600,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } const importNode = importFromModuleSpecifier(moduleSpecifier); switch (importNode.kind) { - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: changes.replaceNode(importingFile, importNode, makeImport( importNode.name, /*namedImports*/ @@ -145566,7 +147609,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} quotePreference )); break; - case 212 /* CallExpression */: + case 213 /* CallExpression */: if (isRequireCall( importNode, /*requireStringLiteralLikeArgument*/ @@ -145635,13 +147678,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function convertStatement(sourceFile, statement, checker, changes, identifiers, target, exports, useSitesToUnqualify, quotePreference) { switch (statement.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: convertVariableStatement(sourceFile, statement, changes, checker, identifiers, target, quotePreference); return false; - case 243 /* ExpressionStatement */: { + case 244 /* ExpressionStatement */: { const { expression } = statement; switch (expression.kind) { - case 212 /* CallExpression */: { + case 213 /* CallExpression */: { if (isRequireCall( expression, /*requireStringLiteralLikeArgument*/ @@ -145658,7 +147701,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } return false; } - case 225 /* BinaryExpression */: { + case 226 /* BinaryExpression */: { const { operatorToken } = expression; return operatorToken.kind === 64 /* EqualsToken */ && convertAssignment(sourceFile, checker, expression, changes, exports, useSitesToUnqualify); } @@ -145712,8 +147755,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function convertPropertyAccessImport(name, propertyName, moduleSpecifier, identifiers, quotePreference) { switch (name.kind) { - case 205 /* ObjectBindingPattern */: - case 206 /* ArrayBindingPattern */: { + case 206 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: { const tmp = makeUniqueName(propertyName, identifiers); return convertedImports([ makeSingleImport(tmp, propertyName, moduleSpecifier, quotePreference), @@ -145761,14 +147804,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function tryChangeModuleExportsObject(object, useSitesToUnqualify) { const statements = mapAllOrFail(object.properties, (prop) => { switch (prop.kind) { - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 303 /* ShorthandPropertyAssignment */: - case 304 /* SpreadAssignment */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 304 /* ShorthandPropertyAssignment */: + case 305 /* SpreadAssignment */: return void 0; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return !isIdentifier(prop.name) ? void 0 : convertExportsDotXEquals_replaceNode(prop.name.text, prop.initializer, useSitesToUnqualify); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return !isIdentifier(prop.name) ? void 0 : functionExpressionToDeclaration(prop.name.text, [factory.createToken(95 /* ExportKeyword */)], prop, useSitesToUnqualify); default: Debug.assertNever(prop, `Convert to ES6 got invalid prop kind ${prop.kind}`); @@ -145846,15 +147889,15 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function convertExportsDotXEquals_replaceNode(name, exported, useSitesToUnqualify) { const modifiers = [factory.createToken(95 /* ExportKeyword */)]; switch (exported.kind) { - case 217 /* FunctionExpression */: { + case 218 /* FunctionExpression */: { const { name: expressionName } = exported; if (expressionName && expressionName.text !== name) { return exportConst(); } } - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return functionExpressionToDeclaration(name, modifiers, exported, useSitesToUnqualify); - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return classExpressionToDeclaration(name, modifiers, exported, useSitesToUnqualify); default: return exportConst(); @@ -145879,7 +147922,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} replaceNode ); function replaceNode(original) { - if (original.kind === 210 /* PropertyAccessExpression */) { + if (original.kind === 211 /* PropertyAccessExpression */) { const replacement = useSitesToUnqualify.get(original); useSitesToUnqualify.delete(original); return replacement; @@ -145888,7 +147931,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function convertSingleImport(name, moduleSpecifier, checker, identifiers, target, quotePreference) { switch (name.kind) { - case 205 /* ObjectBindingPattern */: { + case 206 /* ObjectBindingPattern */: { const importSpecifiers = mapAllOrFail(name.elements, (e) => e.dotDotDotToken || e.initializer || e.propertyName && !isIdentifier(e.propertyName) || !isIdentifier(e.name) ? void 0 : makeImportSpecifier2(e.propertyName && e.propertyName.text, e.name.text)); if (importSpecifiers) { return convertedImports([makeImport( @@ -145900,7 +147943,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} )]); } } - case 206 /* ArrayBindingPattern */: { + case 207 /* ArrayBindingPattern */: { const tmp = makeUniqueName(moduleSpecifierToValidIdentifier(moduleSpecifier.text, target), identifiers); return convertedImports([ makeImport( @@ -145987,11 +148030,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function isFreeIdentifier(node) { const { parent: parent2 } = node; switch (parent2.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return parent2.name !== node; - case 207 /* BindingElement */: + case 208 /* BindingElement */: return parent2.propertyName !== node; - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: return parent2.propertyName !== node; default: return true; @@ -146232,7 +148275,27 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const { parent: parent2 } = getTokenAtPosition(sourceFile, pos); return isImportSpecifier(parent2) || isImportDeclaration(parent2) && parent2.importClause ? parent2 : void 0; } + function canConvertImportDeclarationForSpecifier(specifier, sourceFile, program) { + if (specifier.parent.parent.name) { + return false; + } + const nonTypeOnlySpecifiers = specifier.parent.elements.filter((e) => !e.isTypeOnly); + if (nonTypeOnlySpecifiers.length === 1) { + return true; + } + const checker = program.getTypeChecker(); + for (const specifier2 of nonTypeOnlySpecifiers) { + const isUsedAsValue = ts_FindAllReferences_exports.Core.eachSymbolReferenceInFile(specifier2.name, checker, sourceFile, (usage) => { + return !isValidTypeOnlyAliasUseSite(usage); + }); + if (isUsedAsValue) { + return false; + } + } + return true; + } function doChange11(changes, sourceFile, declaration) { + var _a; if (isImportSpecifier(declaration)) { changes.replaceNode(sourceFile, declaration, factory.updateImportSpecifier( declaration, @@ -146303,6 +148366,16 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} ) ]); } else { + const newNamedBindings = ((_a = importClause.namedBindings) == null ? void 0 : _a.kind) === 275 /* NamedImports */ ? factory.updateNamedImports( + importClause.namedBindings, + sameMap(importClause.namedBindings.elements, (e) => factory.updateImportSpecifier( + e, + /*isTypeOnly*/ + false, + e.propertyName, + e.name + )) + ) : importClause.namedBindings; const importDeclaration = factory.updateImportDeclaration( declaration, declaration.modifiers, @@ -146311,7 +148384,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} /*isTypeOnly*/ true, importClause.name, - importClause.namedBindings + newNamedBindings ), declaration.moduleSpecifier, declaration.assertClause @@ -146334,19 +148407,41 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} registerCodeFix({ errorCodes: errorCodes14, getCodeActions: function getCodeActionsToConvertToTypeOnlyImport(context) { + var _a; const declaration = getDeclaration2(context.sourceFile, context.span.start); if (declaration) { const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange11(t, context.sourceFile, declaration)); - return [createCodeFixAction(fixId13, changes, Diagnostics.Convert_to_type_only_import, fixId13, Diagnostics.Convert_all_imports_not_used_as_a_value_to_type_only_imports)]; + const importDeclarationChanges = declaration.kind === 276 /* ImportSpecifier */ && canConvertImportDeclarationForSpecifier(declaration, context.sourceFile, context.program) ? ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange11(t, context.sourceFile, declaration.parent.parent.parent)) : void 0; + const mainAction = createCodeFixAction( + fixId13, + changes, + declaration.kind === 276 /* ImportSpecifier */ ? [Diagnostics.Use_type_0, ((_a = declaration.propertyName) == null ? void 0 : _a.text) ?? declaration.name.text] : Diagnostics.Use_import_type, + fixId13, + Diagnostics.Fix_all_with_type_only_imports + ); + if (some(importDeclarationChanges)) { + return [ + createCodeFixActionWithoutFixAll(fixId13, importDeclarationChanges, Diagnostics.Use_import_type), + mainAction + ]; + } + return [mainAction]; } return void 0; }, fixIds: [fixId13], getAllCodeActions: function getAllCodeActionsToConvertToTypeOnlyImport(context) { + const fixedImportDeclarations = /* @__PURE__ */ new Set(); return codeFixAll(context, errorCodes14, (changes, diag2) => { - const declaration = getDeclaration2(diag2.file, diag2.start); - if (declaration) { - doChange11(changes, diag2.file, declaration); + const errorDeclaration = getDeclaration2(diag2.file, diag2.start); + if ((errorDeclaration == null ? void 0 : errorDeclaration.kind) === 272 /* ImportDeclaration */ && !fixedImportDeclarations.has(errorDeclaration)) { + doChange11(changes, diag2.file, errorDeclaration); + fixedImportDeclarations.add(errorDeclaration); + } else if ((errorDeclaration == null ? void 0 : errorDeclaration.kind) === 276 /* ImportSpecifier */ && !fixedImportDeclarations.has(errorDeclaration.parent.parent.parent) && canConvertImportDeclarationForSpecifier(errorDeclaration, diag2.file, context.program)) { + doChange11(changes, diag2.file, errorDeclaration.parent.parent.parent); + fixedImportDeclarations.add(errorDeclaration.parent.parent.parent); + } else if ((errorDeclaration == null ? void 0 : errorDeclaration.kind) === 276 /* ImportSpecifier */) { + doChange11(changes, diag2.file, errorDeclaration); } }); } @@ -146355,23 +148450,60 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} }); // src/services/codefixes/convertTypedefToType.ts - function doChange12(changes, node, sourceFile) { - if (isJSDocTypedefTag(node)) { - fixSingleTypeDef(changes, node, sourceFile); - } - } - function fixSingleTypeDef(changes, typeDefNode, sourceFile) { - if (!typeDefNode) + function doChange12(changes, node, sourceFile, newLine, fixAll = false) { + if (!isJSDocTypedefTag(node)) return; - const declaration = createDeclaration(typeDefNode); + const declaration = createDeclaration(node); if (!declaration) return; - const comment = typeDefNode.parent; - changes.replaceNode( - sourceFile, - comment, - declaration + const commentNode = node.parent; + const { leftSibling, rightSibling } = getLeftAndRightSiblings(node); + let pos = commentNode.getStart(); + let prefix = ""; + if (!leftSibling && commentNode.comment) { + pos = findEndOfTextBetween(commentNode, commentNode.getStart(), node.getStart()); + prefix = `${newLine} */${newLine}`; + } + if (leftSibling) { + if (fixAll && isJSDocTypedefTag(leftSibling)) { + pos = node.getStart(); + prefix = ""; + } else { + pos = findEndOfTextBetween(commentNode, leftSibling.getStart(), node.getStart()); + prefix = `${newLine} */${newLine}`; + } + } + let end = commentNode.getEnd(); + let suffix = ""; + if (rightSibling) { + if (fixAll && isJSDocTypedefTag(rightSibling)) { + end = rightSibling.getStart(); + suffix = `${newLine}${newLine}`; + } else { + end = rightSibling.getStart(); + suffix = `${newLine}/**${newLine} * `; + } + } + changes.replaceRange(sourceFile, { pos, end }, declaration, { prefix, suffix }); + } + function getLeftAndRightSiblings(typedefNode) { + const commentNode = typedefNode.parent; + const maxChildIndex = commentNode.getChildCount() - 1; + const currentNodeIndex = commentNode.getChildren().findIndex( + (n) => n.getStart() === typedefNode.getStart() && n.getEnd() === typedefNode.getEnd() ); + const leftSibling = currentNodeIndex > 0 ? commentNode.getChildAt(currentNodeIndex - 1) : void 0; + const rightSibling = currentNodeIndex < maxChildIndex ? commentNode.getChildAt(currentNodeIndex + 1) : void 0; + return { leftSibling, rightSibling }; + } + function findEndOfTextBetween(jsDocComment, from, to) { + const comment = jsDocComment.getText().substring(from - jsDocComment.getStart(), to - jsDocComment.getStart()); + for (let i = comment.length; i > 0; i--) { + if (!/[*/\s]/g.test(comment.substring(i - 1, i))) { + return from + i; + } + } + return to; } function createDeclaration(tag) { var _a; @@ -146381,10 +148513,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const typeName = (_a = tag.name) == null ? void 0 : _a.getText(); if (!typeName) return; - if (typeExpression.kind === 328 /* JSDocTypeLiteral */) { + if (typeExpression.kind === 329 /* JSDocTypeLiteral */) { return createInterfaceForTypeLiteral(typeName, typeExpression); } - if (typeExpression.kind === 315 /* JSDocTypeExpression */) { + if (typeExpression.kind === 316 /* JSDocTypeExpression */) { return createTypeAliasForTypeExpression(typeName, typeExpression); } } @@ -146392,7 +148524,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const propertySignatures = createSignatureFromTypeLiteral(typeLiteral); if (!some(propertySignatures)) return; - const interfaceDeclaration = factory.createInterfaceDeclaration( + return factory.createInterfaceDeclaration( /*modifiers*/ void 0, typeName, @@ -146402,13 +148534,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} void 0, propertySignatures ); - return interfaceDeclaration; } function createTypeAliasForTypeExpression(typeName, typeExpression) { const typeReference = getSynthesizedDeepClone(typeExpression.type); if (!typeReference) return; - const declaration = factory.createTypeAliasDeclaration( + return factory.createTypeAliasDeclaration( /*modifiers*/ void 0, factory.createIdentifier(typeName), @@ -146416,7 +148547,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} void 0, typeReference ); - return declaration; } function createSignatureFromTypeLiteral(typeLiteral) { const propertyTags = typeLiteral.jsDocPropertyTags; @@ -146436,30 +148566,28 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } if (typeReference && name) { const questionToken = isOptional ? factory.createToken(58 /* QuestionToken */) : void 0; - const prop = factory.createPropertySignature( + return factory.createPropertySignature( /*modifiers*/ void 0, name, questionToken, typeReference ); - return prop; } }; - const props = mapDefined(propertyTags, getSignature); - return props; + return mapDefined(propertyTags, getSignature); } function getPropertyName(tag) { return tag.name.kind === 80 /* Identifier */ ? tag.name.text : tag.name.right.text; } - function getJSDocTypedefNode(node) { + function getJSDocTypedefNodes(node) { if (hasJSDocNodes(node)) { - return forEach(node.jsDoc, (node2) => { + return flatMap(node.jsDoc, (doc) => { var _a; - return (_a = node2.tags) == null ? void 0 : _a.find(isJSDocTypedefTag); + return (_a = doc.tags) == null ? void 0 : _a.filter((tag) => isJSDocTypedefTag(tag)); }); } - return void 0; + return []; } var fixId14, errorCodes15; var init_convertTypedefToType = __esm({ @@ -146473,13 +148601,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} fixIds: [fixId14], errorCodes: errorCodes15, getCodeActions(context) { + const newLineCharacter = getNewLineOrDefaultFromHost(context.host, context.formatContext.options); const node = getTokenAtPosition( context.sourceFile, context.span.start ); if (!node) return; - const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange12(t, node, context.sourceFile)); + const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange12(t, node, context.sourceFile, newLineCharacter)); if (changes.length > 0) { return [ createCodeFixAction( @@ -146492,11 +148621,17 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} ]; } }, - getAllCodeActions: (context) => codeFixAll(context, errorCodes15, (changes, diag2) => { - const node = getTokenAtPosition(diag2.file, diag2.start); - if (node) - doChange12(changes, node, diag2.file); - }) + getAllCodeActions: (context) => codeFixAll( + context, + errorCodes15, + (changes, diag2) => { + const newLineCharacter = getNewLineOrDefaultFromHost(context.host, context.formatContext.options); + const node = getTokenAtPosition(diag2.file, diag2.start); + const fixAll = true; + if (node) + doChange12(changes, node, diag2.file, newLineCharacter, fixAll); + } + ) }); } }); @@ -146809,8 +148944,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return `${topLevelTypeOnly ? 1 : 0}|${moduleSpecifier}`; } } - function writeFixes(changeTracker) { - const quotePreference = getQuotePreference(sourceFile, preferences); + function writeFixes(changeTracker, oldFileQuotePreference) { + let quotePreference; + if (sourceFile.imports.length === 0 && oldFileQuotePreference !== void 0) { + quotePreference = oldFileQuotePreference; + } else { + quotePreference = getQuotePreference(sourceFile, preferences); + } for (const fix of addToNamespace) { addNamespaceQualifier(changeTracker, sourceFile, fix); } @@ -146998,11 +149138,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function getNamespaceLikeImportText(declaration) { var _a, _b, _c; switch (declaration.kind) { - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return (_a = tryCast(declaration.name, isIdentifier)) == null ? void 0 : _a.text; - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return declaration.name.text; - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return (_c = tryCast((_b = declaration.importClause) == null ? void 0 : _b.namedBindings, isNamespaceImport)) == null ? void 0 : _c.name.text; default: return Debug.assertNever(declaration); @@ -147034,11 +149174,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } return best; function getAddToExistingImportFix({ declaration, importKind, symbol, targetFlags }) { - if (importKind === 3 /* CommonJS */ || importKind === 2 /* Namespace */ || declaration.kind === 270 /* ImportEqualsDeclaration */) { + if (importKind === 3 /* CommonJS */ || importKind === 2 /* Namespace */ || declaration.kind === 271 /* ImportEqualsDeclaration */) { return void 0; } - if (declaration.kind === 259 /* VariableDeclaration */) { - return (importKind === 0 /* Named */ || importKind === 1 /* Default */) && declaration.name.kind === 205 /* ObjectBindingPattern */ ? { kind: 2 /* AddToExisting */, importClauseOrBindingPattern: declaration.name, importKind, moduleSpecifier: declaration.initializer.arguments[0].text, addAsTypeOnly: 4 /* NotAllowed */ } : void 0; + if (declaration.kind === 260 /* VariableDeclaration */) { + return (importKind === 0 /* Named */ || importKind === 1 /* Default */) && declaration.name.kind === 206 /* ObjectBindingPattern */ ? { kind: 2 /* AddToExisting */, importClauseOrBindingPattern: declaration.name, importKind, moduleSpecifier: declaration.initializer.arguments[0].text, addAsTypeOnly: 4 /* NotAllowed */ } : void 0; } const { importClause } = declaration; if (!importClause || !isStringLiteralLike(declaration.moduleSpecifier)) { @@ -147061,7 +149201,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} addAsTypeOnly === 2 /* Required */ && namedBindings)) { return void 0; } - if (importKind === 0 /* Named */ && (namedBindings == null ? void 0 : namedBindings.kind) === 273 /* NamespaceImport */) { + if (importKind === 0 /* Named */ && (namedBindings == null ? void 0 : namedBindings.kind) === 274 /* NamespaceImport */) { return void 0; } return { @@ -147082,7 +149222,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (moduleSymbol) { (importMap || (importMap = createMultiMap())).add(getSymbolId(moduleSymbol), i.parent); } - } else if (i.kind === 271 /* ImportDeclaration */ || i.kind === 270 /* ImportEqualsDeclaration */) { + } else if (i.kind === 272 /* ImportDeclaration */ || i.kind === 271 /* ImportEqualsDeclaration */) { const moduleSymbol = checker.getSymbolAtLocation(moduleSpecifier); if (moduleSymbol) { (importMap || (importMap = createMultiMap())).add(getSymbolId(moduleSymbol), i); @@ -147113,6 +149253,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (compilerOptions.configFile) { return getEmitModuleKind(compilerOptions) < 5 /* ES2015 */; } + if (sourceFile.impliedNodeFormat === 1 /* CommonJS */) + return true; + if (sourceFile.impliedNodeFormat === 99 /* ESNext */) + return false; for (const otherFile of program.getSourceFiles()) { if (otherFile === sourceFile || !isSourceFileJS(otherFile) || program.isSourceFileFromExternalLibrary(otherFile)) continue; @@ -147534,7 +149678,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} case 4 /* PromoteTypeOnly */: { const { typeOnlyAliasDeclaration } = fix; const promotedDeclaration = promoteFromTypeOnly(changes, typeOnlyAliasDeclaration, compilerOptions, sourceFile, preferences); - return promotedDeclaration.kind === 275 /* ImportSpecifier */ ? [Diagnostics.Remove_type_from_import_of_0_from_1, symbolName2, getModuleSpecifierText(promotedDeclaration.parent.parent)] : [Diagnostics.Remove_type_from_import_declaration_from_0, getModuleSpecifierText(promotedDeclaration)]; + return promotedDeclaration.kind === 276 /* ImportSpecifier */ ? [Diagnostics.Remove_type_from_import_of_0_from_1, symbolName2, getModuleSpecifierText(promotedDeclaration.parent.parent)] : [Diagnostics.Remove_type_from_import_declaration_from_0, getModuleSpecifierText(promotedDeclaration)]; } default: return Debug.assertNever(fix, `Unexpected fix kind ${fix.kind}`); @@ -147542,12 +149686,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function getModuleSpecifierText(promotedDeclaration) { var _a, _b; - return promotedDeclaration.kind === 270 /* ImportEqualsDeclaration */ ? ((_b = tryCast((_a = tryCast(promotedDeclaration.moduleReference, isExternalModuleReference)) == null ? void 0 : _a.expression, isStringLiteralLike)) == null ? void 0 : _b.text) || promotedDeclaration.moduleReference.getText() : cast(promotedDeclaration.parent.moduleSpecifier, isStringLiteral).text; + return promotedDeclaration.kind === 271 /* ImportEqualsDeclaration */ ? ((_b = tryCast((_a = tryCast(promotedDeclaration.moduleReference, isExternalModuleReference)) == null ? void 0 : _a.expression, isStringLiteralLike)) == null ? void 0 : _b.text) || promotedDeclaration.moduleReference.getText() : cast(promotedDeclaration.parent.moduleSpecifier, isStringLiteral).text; } function promoteFromTypeOnly(changes, aliasDeclaration, compilerOptions, sourceFile, preferences) { const convertExistingToTypeOnly = importNameElisionDisabled(compilerOptions); switch (aliasDeclaration.kind) { - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: if (aliasDeclaration.isTypeOnly) { const sortKind = ts_OrganizeImports_exports.detectImportSpecifierSorting(aliasDeclaration.parent.elements, preferences); if (aliasDeclaration.parent.elements.length > 1 && sortKind) { @@ -147571,13 +149715,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} promoteImportClause(aliasDeclaration.parent.parent); return aliasDeclaration.parent.parent; } - case 272 /* ImportClause */: + case 273 /* ImportClause */: promoteImportClause(aliasDeclaration); return aliasDeclaration; - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: promoteImportClause(aliasDeclaration.parent); return aliasDeclaration.parent; - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: changes.deleteRange(sourceFile, aliasDeclaration.getChildAt(1)); return aliasDeclaration; default: @@ -147585,10 +149729,18 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function promoteImportClause(importClause) { changes.delete(sourceFile, getTypeKeywordOfTypeOnlyImport(importClause, sourceFile)); + if (!compilerOptions.allowImportingTsExtensions) { + const moduleSpecifier = tryGetModuleSpecifierFromDeclaration(importClause.parent); + const resolvedModule = moduleSpecifier && getResolvedModule(sourceFile, moduleSpecifier.text, getModeForUsageLocation(sourceFile, moduleSpecifier)); + if (resolvedModule == null ? void 0 : resolvedModule.resolvedUsingTsExtension) { + const changedExtension = changeAnyExtension(moduleSpecifier.text, getOutputExtension(moduleSpecifier.text, compilerOptions)); + changes.replaceNode(sourceFile, moduleSpecifier, factory.createStringLiteral(changedExtension)); + } + } if (convertExistingToTypeOnly) { const namedImports = tryCast(importClause.namedBindings, isNamedImports); if (namedImports && namedImports.elements.length > 1) { - if (ts_OrganizeImports_exports.detectImportSpecifierSorting(namedImports.elements, preferences) && aliasDeclaration.kind === 275 /* ImportSpecifier */ && namedImports.elements.indexOf(aliasDeclaration) !== 0) { + if (ts_OrganizeImports_exports.detectImportSpecifierSorting(namedImports.elements, preferences) && aliasDeclaration.kind === 276 /* ImportSpecifier */ && namedImports.elements.indexOf(aliasDeclaration) !== 0) { changes.delete(sourceFile, aliasDeclaration); changes.insertImportSpecifierAtIndex(sourceFile, aliasDeclaration, namedImports, 0); } @@ -147603,7 +149755,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function doAddExistingFix(changes, sourceFile, clause, defaultImport, namedImports, preferences) { var _a; - if (clause.kind === 205 /* ObjectBindingPattern */) { + if (clause.kind === 206 /* ObjectBindingPattern */) { if (defaultImport) { addElementToBindingPattern(clause, defaultImport.name, "default"); } @@ -148039,7 +150191,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const lastDecorator = findLast(modifiers, isDecorator); const modifierPos = abstractModifier ? abstractModifier.end : staticModifier ? staticModifier.end : accessibilityModifier ? accessibilityModifier.end : lastDecorator ? skipTrivia(sourceFile.text, lastDecorator.end) : classElement.getStart(sourceFile); const options = accessibilityModifier || staticModifier || abstractModifier ? { prefix: " " } : { suffix: " " }; - changeTracker.insertModifierAt(sourceFile, modifierPos, 163 /* OverrideKeyword */, options); + changeTracker.insertModifierAt(sourceFile, modifierPos, 164 /* OverrideKeyword */, options); } function doRemoveOverrideModifierChange(changeTracker, sourceFile, pos) { const classElement = findContainerClassElementLike(sourceFile, pos); @@ -148053,13 +150205,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function isClassElementLikeHasJSDoc(node) { switch (node.kind) { - case 175 /* Constructor */: - case 171 /* PropertyDeclaration */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 176 /* Constructor */: + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return true; - case 168 /* Parameter */: + case 169 /* Parameter */: return isParameterPropertyDeclaration(node, node.parent); default: return false; @@ -148465,7 +150617,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} // src/services/codefixes/fixIncorrectNamedTupleSyntax.ts function getNamedTupleMember(sourceFile, pos) { const token = getTokenAtPosition(sourceFile, pos); - return findAncestor(token, (t) => t.kind === 201 /* NamedTupleMember */); + return findAncestor(token, (t) => t.kind === 202 /* NamedTupleMember */); } function doChange17(changes, sourceFile, namedTupleMember) { if (!namedTupleMember) { @@ -148474,10 +150626,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} let unwrappedType = namedTupleMember.type; let sawOptional = false; let sawRest = false; - while (unwrappedType.kind === 189 /* OptionalType */ || unwrappedType.kind === 190 /* RestType */ || unwrappedType.kind === 195 /* ParenthesizedType */) { - if (unwrappedType.kind === 189 /* OptionalType */) { + while (unwrappedType.kind === 190 /* OptionalType */ || unwrappedType.kind === 191 /* RestType */ || unwrappedType.kind === 196 /* ParenthesizedType */) { + if (unwrappedType.kind === 190 /* OptionalType */) { sawOptional = true; - } else if (unwrappedType.kind === 190 /* RestType */) { + } else if (unwrappedType.kind === 191 /* RestType */) { sawRest = true; } unwrappedType = unwrappedType.type; @@ -148529,7 +150681,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (isPropertyAccessExpression(parent2) && parent2.name === node) { Debug.assert(isMemberName(node), "Expected an identifier for spelling (property access)"); let containingType = checker.getTypeAtLocation(parent2.expression); - if (parent2.flags & 32 /* OptionalChain */) { + if (parent2.flags & 64 /* OptionalChain */) { containingType = checker.getNonNullableType(containingType); } suggestedSymbol = checker.getSuggestedSymbolForNonexistentProperty(node, containingType); @@ -148762,6 +150914,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (!declaration || !isCallExpression(declaration.parent) || !declaration.body) return void 0; const pos = declaration.parent.arguments.indexOf(declaration); + if (pos === -1) + return void 0; const type = checker.getContextualTypeForArgumentAtIndex(declaration.parent, pos); if (!type) return void 0; @@ -148790,19 +150944,19 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function getVariableLikeInitializer(declaration) { switch (declaration.kind) { - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 207 /* BindingElement */: - case 171 /* PropertyDeclaration */: - case 302 /* PropertyAssignment */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 208 /* BindingElement */: + case 172 /* PropertyDeclaration */: + case 303 /* PropertyAssignment */: return declaration.initializer; - case 290 /* JsxAttribute */: + case 291 /* JsxAttribute */: return declaration.initializer && (isJsxExpression(declaration.initializer) ? declaration.initializer.expression : void 0); - case 303 /* ShorthandPropertyAssignment */: - case 170 /* PropertySignature */: - case 305 /* EnumMember */: - case 354 /* JSDocPropertyTag */: - case 347 /* JSDocParameterTag */: + case 304 /* ShorthandPropertyAssignment */: + case 171 /* PropertySignature */: + case 306 /* EnumMember */: + case 355 /* JSDocPropertyTag */: + case 348 /* JSDocParameterTag */: return void 0; } } @@ -149030,7 +151184,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function addMissingMemberInJs(changeTracker, sourceFile, classDeclaration, token, makeStatic) { const tokenName = token.text; if (makeStatic) { - if (classDeclaration.kind === 230 /* ClassExpression */) { + if (classDeclaration.kind === 231 /* ClassExpression */) { return; } const className = classDeclaration.name.getText(); @@ -149083,7 +151237,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function getTypeNode2(checker, node, token) { let typeNode; - if (token.parent.parent.kind === 225 /* BinaryExpression */) { + if (token.parent.parent.kind === 226 /* BinaryExpression */) { const binaryExpression = token.parent.parent; const otherExpression = token.parent === binaryExpression.left ? binaryExpression.right : binaryExpression.left; const widenedType = checker.getWidenedType(checker.getBaseTypeOfLiteralType(checker.getTypeAtLocation(otherExpression))); @@ -149161,9 +151315,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (call === void 0) { return void 0; } - if (isPrivateIdentifier(token)) { - return void 0; - } const methodName = token.text; const addMethodDeclarationChanges = (modifierFlags2) => ts_textChanges_exports.ChangeTracker.with(context, (t) => addMethodDeclaration(context, t, call, token, modifierFlags2, parentDeclaration, declSourceFile)); const actions2 = [createCodeFixAction(fixMissingMember, addMethodDeclarationChanges(modifierFlags & 32 /* Static */), [modifierFlags & 32 /* Static */ ? Diagnostics.Declare_static_method_0 : Diagnostics.Declare_method_0, methodName], fixMissingMember, Diagnostics.Add_all_missing_members)]; @@ -149174,7 +151325,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function addMethodDeclaration(context, changes, callExpression, name, modifierFlags, parentDeclaration, sourceFile) { const importAdder = createImportAdder(sourceFile, context.program, context.preferences, context.host); - const kind = isClassLike(parentDeclaration) ? 173 /* MethodDeclaration */ : 172 /* MethodSignature */; + const kind = isClassLike(parentDeclaration) ? 174 /* MethodDeclaration */ : 173 /* MethodSignature */; const signatureDeclaration = createSignatureDeclarationFromCallExpression(kind, context, importAdder, callExpression, name, modifierFlags, parentDeclaration); const containingMethodDeclaration = tryGetContainingMethodDeclaration(parentDeclaration, callExpression); if (containingMethodDeclaration) { @@ -149203,8 +151354,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function addFunctionDeclaration(changes, context, info) { const quotePreference = getQuotePreference(context.sourceFile, context.preferences); const importAdder = createImportAdder(context.sourceFile, context.program, context.preferences, context.host); - const functionDeclaration = info.kind === 2 /* Function */ ? createSignatureDeclarationFromCallExpression(261 /* FunctionDeclaration */, context, importAdder, info.call, idText(info.token), info.modifierFlags, info.parentDeclaration) : createSignatureDeclarationFromSignature( - 261 /* FunctionDeclaration */, + const functionDeclaration = info.kind === 2 /* Function */ ? createSignatureDeclarationFromCallExpression(262 /* FunctionDeclaration */, context, importAdder, info.call, idText(info.token), info.modifierFlags, info.parentDeclaration) : createSignatureDeclarationFromSignature( + 262 /* FunctionDeclaration */, context, quotePreference, info.signature, @@ -149353,7 +151504,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (signature === void 0) return createUndefined(); const func = createSignatureDeclarationFromSignature( - 217 /* FunctionExpression */, + 218 /* FunctionExpression */, context, quotePreference, signature[0], @@ -149861,7 +152012,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} ); } function getSuggestion(messageText) { - const [_, suggestion] = flattenDiagnosticMessageText(messageText, "\n", 0).match(/\'(.*)\'/) || []; + const [_, suggestion] = flattenDiagnosticMessageText(messageText, "\n", 0).match(/'(.*)'/) || []; return suggestion; } var fixId28, errorCodes34; @@ -149907,6 +152058,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} registerCodeFix({ errorCodes: [ Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code, + Diagnostics.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code, Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code ], getCodeActions: function getCodeActionsToFixModuleAndTarget(context) { @@ -150230,18 +152382,18 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} // src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts function getImportDeclaration(sourceFile, program, start) { const identifier = tryCast(getTokenAtPosition(sourceFile, start), isIdentifier); - if (!identifier || identifier.parent.kind !== 182 /* TypeReference */) + if (!identifier || identifier.parent.kind !== 183 /* TypeReference */) return; const checker = program.getTypeChecker(); const symbol = checker.getSymbolAtLocation(identifier); return find((symbol == null ? void 0 : symbol.declarations) || emptyArray, or(isImportClause, isImportSpecifier, isImportEqualsDeclaration)); } function doTypeOnlyImportChange(changes, sourceFile, importDeclaration, program) { - if (importDeclaration.kind === 270 /* ImportEqualsDeclaration */) { + if (importDeclaration.kind === 271 /* ImportEqualsDeclaration */) { changes.insertModifierBefore(sourceFile, 156 /* TypeKeyword */, importDeclaration.name); return; } - const importClause = importDeclaration.kind === 272 /* ImportClause */ ? importDeclaration : importDeclaration.parent.parent; + const importClause = importDeclaration.kind === 273 /* ImportClause */ ? importDeclaration : importDeclaration.parent.parent; if (importClause.name && importClause.namedBindings) { return; } @@ -150272,14 +152424,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const importDeclaration = getImportDeclaration(context.sourceFile, context.program, context.span.start); if (!importDeclaration) return; - const namespaceChanges = ts_textChanges_exports.ChangeTracker.with(context, (t) => importDeclaration.kind === 275 /* ImportSpecifier */ && doNamespaceImportChange(t, context.sourceFile, importDeclaration, context.program)); + const namespaceChanges = ts_textChanges_exports.ChangeTracker.with(context, (t) => importDeclaration.kind === 276 /* ImportSpecifier */ && doNamespaceImportChange(t, context.sourceFile, importDeclaration, context.program)); const typeOnlyChanges = ts_textChanges_exports.ChangeTracker.with(context, (t) => doTypeOnlyImportChange(t, context.sourceFile, importDeclaration, context.program)); let actions2; if (namespaceChanges.length) { actions2 = append(actions2, createCodeFixActionWithoutFixAll(fixId32, namespaceChanges, Diagnostics.Convert_named_imports_to_namespace_import)); } if (typeOnlyChanges.length) { - actions2 = append(actions2, createCodeFixActionWithoutFixAll(fixId32, typeOnlyChanges, Diagnostics.Convert_to_type_only_import)); + actions2 = append(actions2, createCodeFixActionWithoutFixAll(fixId32, typeOnlyChanges, Diagnostics.Use_import_type)); } return actions2; }, @@ -150299,7 +152451,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} changes.delete(sourceFile, Debug.checkDefined(cast(token.parent, isDeclarationWithTypeParameterChildren).typeParameters, "The type parameter to delete should exist")); } function isImport(token) { - return token.kind === 102 /* ImportKeyword */ || token.kind === 80 /* Identifier */ && (token.parent.kind === 275 /* ImportSpecifier */ || token.parent.kind === 272 /* ImportClause */); + return token.kind === 102 /* ImportKeyword */ || token.kind === 80 /* Identifier */ && (token.parent.kind === 276 /* ImportSpecifier */ || token.parent.kind === 273 /* ImportClause */); } function tryGetFullImport(token) { return token.kind === 102 /* ImportKeyword */ ? tryCast(token.parent, isImportDeclaration) : void 0; @@ -150308,7 +152460,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return isVariableDeclarationList(token.parent) && first(token.parent.getChildren(sourceFile)) === token; } function deleteEntireVariableStatement(changes, sourceFile, node) { - changes.delete(sourceFile, node.parent.kind === 242 /* VariableStatement */ ? node.parent : node); + changes.delete(sourceFile, node.parent.kind === 243 /* VariableStatement */ ? node.parent : node); } function deleteDestructuringElements(changes, sourceFile, node) { forEach(node.elements, (n) => changes.delete(sourceFile, n)); @@ -150350,14 +152502,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function canPrefix(token) { switch (token.parent.kind) { - case 168 /* Parameter */: - case 167 /* TypeParameter */: + case 169 /* Parameter */: + case 168 /* TypeParameter */: return true; - case 259 /* VariableDeclaration */: { + case 260 /* VariableDeclaration */: { const varDecl = token.parent; switch (varDecl.parent.parent.kind) { - case 249 /* ForOfStatement */: - case 248 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 249 /* ForInStatement */: return true; } } @@ -150406,8 +152558,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function mayDeleteParameter(checker, sourceFile, parameter, sourceFiles, program, cancellationToken, isFixAll) { const { parent: parent2 } = parameter; switch (parent2.kind) { - case 173 /* MethodDeclaration */: - case 175 /* Constructor */: + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: const index = parent2.parameters.indexOf(parameter); const referent = isMethodDeclaration(parent2) ? parent2.name : parent2; const entries = ts_FindAllReferences_exports.Core.getReferencedSymbolsForNode(parent2.pos, referent, program, sourceFiles, cancellationToken); @@ -150425,18 +152577,18 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } return true; - case 261 /* FunctionDeclaration */: { + case 262 /* FunctionDeclaration */: { if (parent2.name && isCallbackLike(checker, sourceFile, parent2.name)) { return isLastParameter(parent2, parameter, isFixAll); } return true; } - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return isLastParameter(parent2, parameter, isFixAll); - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return false; - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return true; default: return Debug.failBadSyntaxKind(parent2); @@ -150649,7 +152801,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const container = (isBlock(statement.parent) ? statement.parent : statement).parent; if (!isBlock(statement.parent) || statement === first(statement.parent.statements)) { switch (container.kind) { - case 244 /* IfStatement */: + case 245 /* IfStatement */: if (container.elseStatement) { if (isBlock(statement.parent)) { break; @@ -150658,8 +152810,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } return; } - case 246 /* WhileStatement */: - case 247 /* ForStatement */: + case 247 /* WhileStatement */: + case 248 /* ForStatement */: changes.delete(sourceFile, container); return; } @@ -150755,22 +152907,22 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function isTypeContainer(node) { switch (node.kind) { - case 233 /* AsExpression */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 261 /* FunctionDeclaration */: - case 176 /* GetAccessor */: - case 180 /* IndexSignature */: - case 199 /* MappedType */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 168 /* Parameter */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 177 /* SetAccessor */: - case 264 /* TypeAliasDeclaration */: - case 215 /* TypeAssertionExpression */: - case 259 /* VariableDeclaration */: + case 234 /* AsExpression */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 262 /* FunctionDeclaration */: + case 177 /* GetAccessor */: + case 181 /* IndexSignature */: + case 200 /* MappedType */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 169 /* Parameter */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 178 /* SetAccessor */: + case 265 /* TypeAliasDeclaration */: + case 216 /* TypeAssertionExpression */: + case 260 /* VariableDeclaration */: return true; default: return false; @@ -150812,7 +152964,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const { typeNode, type } = info; const original = typeNode.getText(sourceFile); const actions2 = [fix(type, fixIdPlain, Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)]; - if (typeNode.kind === 320 /* JSDocNullableType */) { + if (typeNode.kind === 321 /* JSDocNullableType */) { actions2.push(fix(type, fixIdNullable, Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)); } return actions2; @@ -150830,7 +152982,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (!info) return; const { typeNode, type } = info; - const fixedType = typeNode.kind === 320 /* JSDocNullableType */ && fixId52 === fixIdNullable ? checker.getNullableType(type, 32768 /* Undefined */) : type; + const fixedType = typeNode.kind === 321 /* JSDocNullableType */ && fixId52 === fixIdNullable ? checker.getNullableType(type, 32768 /* Undefined */) : type; doChange28(changes, sourceFile, typeNode, fixedType, checker); }); } @@ -150903,14 +153055,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } let insertBefore; switch (containingFunction.kind) { - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: insertBefore = containingFunction.name; break; - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: insertBefore = findChildOfKind(containingFunction, 100 /* FunctionKeyword */, sourceFile); break; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: const kind = containingFunction.typeParameters ? 30 /* LessThanToken */ : 21 /* OpenParenToken */; insertBefore = findChildOfKind(containingFunction, kind, sourceFile) || first(containingFunction.parameters); break; @@ -150940,6 +153092,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} fixId36 = "fixAwaitInSyncFunction"; errorCodes46 = [ Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code, + Diagnostics.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code, Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code, Diagnostics.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code ]; @@ -151217,7 +153370,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function annotate(changes, importAdder, sourceFile, declaration, type, program, host) { const typeNode = getTypeNodeIfAccessible(type, declaration, program, host); if (typeNode) { - if (isInJSFile(sourceFile) && declaration.kind !== 170 /* PropertySignature */) { + if (isInJSFile(sourceFile) && declaration.kind !== 171 /* PropertySignature */) { const parent2 = isVariableDeclaration(declaration) ? tryCast(declaration.parent.parent, isVariableStatement) : declaration; if (!parent2) { return; @@ -151328,17 +153481,17 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function getFunctionReferences(containingFunction, sourceFile, program, cancellationToken) { let searchToken; switch (containingFunction.kind) { - case 175 /* Constructor */: + case 176 /* Constructor */: searchToken = findChildOfKind(containingFunction, 137 /* ConstructorKeyword */, sourceFile); break; - case 218 /* ArrowFunction */: - case 217 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 218 /* FunctionExpression */: const parent2 = containingFunction.parent; searchToken = (isVariableDeclaration(parent2) || isPropertyDeclaration(parent2)) && isIdentifier(parent2.name) ? parent2.name : containingFunction.name; break; - case 261 /* FunctionDeclaration */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 262 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: searchToken = containingFunction.name; break; } @@ -151474,44 +153627,44 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} node = node.parent; } switch (node.parent.kind) { - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: inferTypeFromExpressionStatement(node, usage); break; - case 224 /* PostfixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: usage.isNumber = true; break; - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: inferTypeFromPrefixUnaryExpression(node.parent, usage); break; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: inferTypeFromBinaryExpression(node, node.parent, usage); break; - case 295 /* CaseClause */: - case 296 /* DefaultClause */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: inferTypeFromSwitchStatementLabel(node.parent, usage); break; - case 212 /* CallExpression */: - case 213 /* NewExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: if (node.parent.expression === node) { inferTypeFromCallExpression(node.parent, usage); } else { inferTypeFromContextualType(node, usage); } break; - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: inferTypeFromPropertyAccessExpression(node.parent, usage); break; - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: inferTypeFromPropertyElementExpression(node.parent, node, usage); break; - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: inferTypeFromPropertyAssignment(node.parent, usage); break; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: inferTypeFromPropertyDeclaration(node.parent, usage); break; - case 259 /* VariableDeclaration */: { + case 260 /* VariableDeclaration */: { const { name, initializer } = node.parent; if (node === name) { if (initializer) { @@ -151611,7 +153764,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} break; case 57 /* BarBarToken */: case 61 /* QuestionQuestionToken */: - if (node === parent2.left && (node.parent.parent.kind === 259 /* VariableDeclaration */ || isAssignmentExpression( + if (node === parent2.left && (node.parent.parent.kind === 260 /* VariableDeclaration */ || isAssignmentExpression( node.parent.parent, /*excludeCompoundAssignment*/ true @@ -151639,7 +153792,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } calculateUsageOfNode(parent2, call.return_); - if (parent2.kind === 212 /* CallExpression */) { + if (parent2.kind === 213 /* CallExpression */) { (usage.calls || (usage.calls = [])).push(call); } else { (usage.constructs || (usage.constructs = [])).push(call); @@ -152188,28 +154341,25 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function addNewNodeForMemberSymbol(symbol, enclosingDeclaration, sourceFile, context, preferences, importAdder, addClassElement, body, preserveOptional = 3 /* All */, isAmbient = false) { const declarations = symbol.getDeclarations(); - const declaration = declarations == null ? void 0 : declarations[0]; + const declaration = firstOrUndefined(declarations); const checker = context.program.getTypeChecker(); const scriptTarget = getEmitScriptTarget(context.program.getCompilerOptions()); - const kind = (declaration == null ? void 0 : declaration.kind) ?? 170 /* PropertySignature */; - const declarationName = getSynthesizedDeepClone( - getNameOfDeclaration(declaration), - /*includeTrivia*/ - false - ); + const kind = (declaration == null ? void 0 : declaration.kind) ?? 171 /* PropertySignature */; + const declarationName = createDeclarationName(symbol, declaration); const effectiveModifierFlags = declaration ? getEffectiveModifierFlags(declaration) : 0 /* None */; - let modifierFlags = effectiveModifierFlags & 4 /* Public */ ? 4 /* Public */ : effectiveModifierFlags & 16 /* Protected */ ? 16 /* Protected */ : 0 /* None */; + let modifierFlags = effectiveModifierFlags & 32 /* Static */; + modifierFlags |= effectiveModifierFlags & 4 /* Public */ ? 4 /* Public */ : effectiveModifierFlags & 16 /* Protected */ ? 16 /* Protected */ : 0 /* None */; if (declaration && isAutoAccessorPropertyDeclaration(declaration)) { modifierFlags |= 128 /* Accessor */; } const modifiers = createModifiers(); const type = checker.getWidenedType(checker.getTypeOfSymbolAtLocation(symbol, enclosingDeclaration)); const optional = !!(symbol.flags & 16777216 /* Optional */); - const ambient = !!(enclosingDeclaration.flags & 16777216 /* Ambient */) || isAmbient; + const ambient = !!(enclosingDeclaration.flags & 33554432 /* Ambient */) || isAmbient; const quotePreference = getQuotePreference(sourceFile, preferences); switch (kind) { - case 170 /* PropertySignature */: - case 171 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 172 /* PropertyDeclaration */: const flags = quotePreference === 0 /* Single */ ? 268435456 /* UseSingleQuotesForStringLiteralType */ : void 0; let typeNode = checker.typeToTypeNode(type, enclosingDeclaration, flags, getNoopSymbolTrackerWithResolver(context)); if (importAdder) { @@ -152228,8 +154378,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} void 0 )); break; - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: { + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: { Debug.assertIsDefined(declarations); let typeNode2 = checker.typeToTypeNode( type, @@ -152277,8 +154427,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } break; } - case 172 /* MethodSignature */: - case 173 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 174 /* MethodDeclaration */: Debug.assertIsDefined(declarations); const signatures = type.isUnion() ? flatMap(type.types, (t) => t.getCallSignatures()) : type.getCallSignatures(); if (!some(signatures)) { @@ -152305,7 +154455,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} break; } function outputMethod(quotePreference2, signature, modifiers2, name, body2) { - const method = createSignatureDeclarationFromSignature(173 /* MethodDeclaration */, context, quotePreference2, signature, body2, name, modifiers2, optional && !!(preserveOptional & 1 /* Method */), enclosingDeclaration, importAdder); + const method = createSignatureDeclarationFromSignature(174 /* MethodDeclaration */, context, quotePreference2, signature, body2, name, modifiers2, optional && !!(preserveOptional & 1 /* Method */), enclosingDeclaration, importAdder); if (method) addClassElement(method); } @@ -152315,7 +154465,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} modifiers2 = combine(modifiers2, factory.createModifiersFromModifierFlags(modifierFlags)); } if (shouldAddOverrideKeyword()) { - modifiers2 = append(modifiers2, factory.createToken(163 /* OverrideKeyword */)); + modifiers2 = append(modifiers2, factory.createToken(164 /* OverrideKeyword */)); } return modifiers2 && factory.createNodeArray(modifiers2); } @@ -152346,6 +154496,19 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} false ); } + function createDeclarationName(symbol2, declaration2) { + if (getCheckFlags(symbol2) & 262144 /* Mapped */) { + const nameType = symbol2.links.nameType; + if (nameType && isTypeUsableAsPropertyName(nameType)) { + return factory.createIdentifier(unescapeLeadingUnderscores(getPropertyNameFromType(nameType))); + } + } + return getSynthesizedDeepClone( + getNameOfDeclaration(declaration2), + /*includeTrivia*/ + false + ); + } } function createSignatureDeclarationFromSignature(kind, context, quotePreference, signature, body, name, modifiers, optional, enclosingDeclaration, importAdder) { const program = context.program; @@ -152453,8 +154616,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} instanceTypes, contextNode, scriptTarget, - /*flags*/ - void 0, + 1 /* NoTruncation */, tracker ); const modifiers = modifierFlags ? factory.createNodeArray(factory.createModifiersFromModifierFlags(modifierFlags)) : void 0; @@ -152476,7 +154638,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} tracker ); switch (kind) { - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return factory.createMethodDeclaration( modifiers, asteriskToken, @@ -152488,7 +154650,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} type, createStubbedMethodBody(quotePreference) ); - case 172 /* MethodSignature */: + case 173 /* MethodSignature */: return factory.createMethodSignature( modifiers, name, @@ -152498,7 +154660,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} parameters, type === void 0 ? factory.createKeywordTypeNode(159 /* UnknownKeyword */) : type ); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: + Debug.assert(typeof name === "string" || isIdentifier(name), "Unexpected name"); return factory.createFunctionDeclaration( modifiers, asteriskToken, @@ -152903,7 +155066,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} isStatic: hasStaticModifier(declaration), isReadonly: hasEffectiveReadonlyModifier(declaration), type: getDeclarationType(declaration, program), - container: declaration.kind === 168 /* Parameter */ ? declaration.parent.parent : declaration.parent, + container: declaration.kind === 169 /* Parameter */ ? declaration.parent.parent : declaration.parent, originalName: declaration.name.text, declaration, fieldName, @@ -153075,7 +155238,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function getActionsForUsageOfInvalidImport(context) { const sourceFile = context.sourceFile; - const targetKind = Diagnostics.This_expression_is_not_callable.code === context.errorCode ? 212 /* CallExpression */ : 213 /* NewExpression */; + const targetKind = Diagnostics.This_expression_is_not_callable.code === context.errorCode ? 213 /* CallExpression */ : 214 /* NewExpression */; const node = findAncestor(getTokenAtPosition(sourceFile, context.span.start), (a) => a.kind === targetKind); if (!node) { return []; @@ -153480,7 +155643,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function getImportTypeNode(sourceFile, pos) { const token = getTokenAtPosition(sourceFile, pos); Debug.assert(token.kind === 102 /* ImportKeyword */, "This token should be an ImportKeyword"); - Debug.assert(token.parent.kind === 204 /* ImportType */, "Token parent should be an ImportType"); + Debug.assert(token.parent.kind === 205 /* ImportType */, "Token parent should be an ImportType"); return token.parent; } function doChange36(changes, sourceFile, importType) { @@ -153787,8 +155950,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return [createCodeFixAction(fixId48, changes, Diagnostics.Split_into_two_separate_import_declarations, fixId48, Diagnostics.Split_all_invalid_type_only_imports)]; } }, - getAllCodeActions: (context) => codeFixAll(context, errorCodes60, (changes, error) => { - splitTypeOnlyImport(changes, getImportDeclaration2(context.sourceFile, error), context); + getAllCodeActions: (context) => codeFixAll(context, errorCodes60, (changes, error2) => { + splitTypeOnlyImport(changes, getImportDeclaration2(context.sourceFile, error2), context); }) }); } @@ -154001,7 +156164,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} getFixes: () => getFixes, getImportCompletionAction: () => getImportCompletionAction, getImportKind: () => getImportKind, - getJSDocTypedefNode: () => getJSDocTypedefNode, + getJSDocTypedefNodes: () => getJSDocTypedefNodes, getNoopSymbolTrackerWithResolver: () => getNoopSymbolTrackerWithResolver, getPromoteTypeOnlyCompletionAction: () => getPromoteTypeOnlyCompletionAction, getSupportedErrorCodes: () => getSupportedErrorCodes, @@ -154846,14 +157009,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function typeNodeToExpression(typeNode, languageVersion, quotePreference) { switch (typeNode.kind) { - case 182 /* TypeReference */: + case 183 /* TypeReference */: const typeName = typeNode.typeName; return entityNameToExpression(typeName, languageVersion, quotePreference); - case 198 /* IndexedAccessType */: + case 199 /* IndexedAccessType */: const objectExpression = typeNodeToExpression(typeNode.objectType, languageVersion, quotePreference); const indexExpression = typeNodeToExpression(typeNode.indexType, languageVersion, quotePreference); return objectExpression && indexExpression && factory.createElementAccessExpression(objectExpression, indexExpression); - case 200 /* LiteralType */: + case 201 /* LiteralType */: const literal = typeNode.literal; switch (literal.kind) { case 11 /* StringLiteral */: @@ -154862,12 +157025,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return factory.createNumericLiteral(literal.text, literal.numericLiteralFlags); } return void 0; - case 195 /* ParenthesizedType */: + case 196 /* ParenthesizedType */: const exp = typeNodeToExpression(typeNode.type, languageVersion, quotePreference); return exp && (isIdentifier(exp) ? exp : factory.createParenthesizedExpression(exp)); - case 185 /* TypeQuery */: + case 186 /* TypeQuery */: return entityNameToExpression(typeNode.exprName, languageVersion, quotePreference); - case 204 /* ImportType */: + case 205 /* ImportType */: Debug.fail(`We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.`); } return void 0; @@ -154902,12 +157065,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function getJsxClosingTagCompletion(location, sourceFile) { const jsxClosingElement = findAncestor(location, (node) => { switch (node.kind) { - case 286 /* JsxClosingElement */: + case 287 /* JsxClosingElement */: return true; case 44 /* SlashToken */: case 32 /* GreaterThanToken */: case 80 /* Identifier */: - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return false; default: return "quit"; @@ -154954,7 +157117,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return { name: completionNameForLiteral(sourceFile, preferences, literal), kind: "string" /* string */, kindModifiers: "" /* none */, sortText: SortText.LocationPriority }; } function createCompletionEntry(symbol, sortText, replacementToken, contextToken, location, position, sourceFile, host, program, name, needsConvertPropertyAccess, origin, recommendedCompletion, propertyAccessToConvert, isJsxInitializer, importStatementCompletion, useSemicolons, options, preferences, completionKind, formatContext, isJsxIdentifierExpected, isRightOfOpenTag, includeSymbol) { + var _a, _b; let insertText; + let filterText; let replacementSpan = getReplacementSpanForContextToken(replacementToken); let data; let isSnippet; @@ -155011,13 +157176,23 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if ((origin == null ? void 0 : origin.kind) === 64 /* TypeOnlyAlias */) { hasAction = true; } + if (completionKind === 0 /* ObjectPropertyDeclaration */ && contextToken && ((_a = findPrecedingToken(contextToken.pos, sourceFile, contextToken)) == null ? void 0 : _a.kind) !== 28 /* CommaToken */) { + if (isMethodDeclaration(contextToken.parent.parent) || isGetAccessorDeclaration(contextToken.parent.parent) || isSetAccessorDeclaration(contextToken.parent.parent) || isSpreadAssignment(contextToken.parent) || ((_b = findAncestor(contextToken.parent, isPropertyAssignment)) == null ? void 0 : _b.getLastToken(sourceFile)) === contextToken || isShorthandPropertyAssignment(contextToken.parent) && getLineAndCharacterOfPosition(sourceFile, contextToken.getEnd()).line !== getLineAndCharacterOfPosition(sourceFile, position).line) { + source = "ObjectLiteralMemberWithComma/" /* ObjectLiteralMemberWithComma */; + hasAction = true; + } + } if (preferences.includeCompletionsWithClassMemberSnippets && preferences.includeCompletionsWithInsertText && completionKind === 3 /* MemberLike */ && isClassLikeMemberCompletion(symbol, location, sourceFile)) { let importAdder; - ({ insertText, isSnippet, importAdder, replacementSpan } = getEntryForMemberCompletion(host, program, options, preferences, name, symbol, location, position, contextToken, formatContext)); - sortText = SortText.ClassMemberSnippets; - if (importAdder == null ? void 0 : importAdder.hasFixes()) { - hasAction = true; - source = "ClassMemberSnippet/" /* ClassMemberSnippet */; + const memberCompletionEntry = getEntryForMemberCompletion(host, program, options, preferences, name, symbol, location, position, contextToken, formatContext); + if (memberCompletionEntry) { + ({ insertText, filterText, isSnippet, importAdder } = memberCompletionEntry); + if (importAdder == null ? void 0 : importAdder.hasFixes()) { + hasAction = true; + source = "ClassMemberSnippet/" /* ClassMemberSnippet */; + } + } else { + return void 0; } } if (origin && originIsObjectLiteralMethod(origin)) { @@ -155052,6 +157227,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} data = originToCompletionEntryData(origin); hasAction = !importStatementCompletion; } + const parentNamedImportOrExport = findAncestor(location, isNamedImportsOrExports); + if ((parentNamedImportOrExport == null ? void 0 : parentNamedImportOrExport.kind) === 275 /* NamedImports */) { + const possibleToken = stringToToken(name); + if (parentNamedImportOrExport && possibleToken && (possibleToken === 135 /* AwaitKeyword */ || isNonContextualKeyword(possibleToken))) { + insertText = `${name} as ${name}_`; + } + } return { name, kind: ts_SymbolDisplay_exports.getSymbolKind(typeChecker, symbol, location), @@ -155061,6 +157243,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} hasAction: hasAction ? true : void 0, isRecommended: isRecommendedCompletionMatch(symbol, recommendedCompletion, typeChecker) || void 0, insertText, + filterText, replacementSpan, sourceDisplay, labelDetails, @@ -155081,11 +157264,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function getEntryForMemberCompletion(host, program, options, preferences, name, symbol, location, position, contextToken, formatContext) { const classLikeDeclaration = findAncestor(location, isClassLike); if (!classLikeDeclaration) { - return { insertText: name }; + return void 0; } let isSnippet; - let replacementSpan; let insertText = name; + const filterText = name; const checker = program.getTypeChecker(); const sourceFile = location.getSourceFile(); const printer = createSnippetPrinter({ @@ -155114,9 +157297,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} ); } let modifiers = 0 /* None */; - const { modifiers: presentModifiers, span: modifiersSpan } = getPresentModifiers(contextToken, sourceFile, position); - const isAbstract = !!(presentModifiers & 256 /* Abstract */); - const completionNodes = []; + const { modifiers: presentModifiers, range: eraseRange, decorators: presentDecorators } = getPresentModifiers(contextToken, sourceFile, position); + const isAbstract = presentModifiers & 256 /* Abstract */ && classLikeDeclaration.modifierFlagsCache & 256 /* Abstract */; + let completionNodes = []; ts_codefix_exports.addNewNodeForMemberSymbol( symbol, classLikeDeclaration, @@ -155140,18 +157323,42 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} requiredModifiers |= 16384 /* Override */; } if (!completionNodes.length) { - modifiers = node.modifierFlagsCache | requiredModifiers | presentModifiers; + modifiers = node.modifierFlagsCache | requiredModifiers; } node = factory.updateModifiers(node, modifiers); completionNodes.push(node); }, body, ts_codefix_exports.PreserveOptionalFlags.Property, - isAbstract + !!isAbstract ); if (completionNodes.length) { + const isMethod = symbol.flags & 8192 /* Method */; + let allowedModifiers = modifiers | 16384 /* Override */ | 4 /* Public */; + if (!isMethod) { + allowedModifiers |= 2 /* Ambient */ | 64 /* Readonly */; + } else { + allowedModifiers |= 512 /* Async */; + } + const allowedAndPresent = presentModifiers & allowedModifiers; + if (presentModifiers & ~allowedModifiers) { + return void 0; + } + if (modifiers & 16 /* Protected */ && allowedAndPresent & 4 /* Public */) { + modifiers &= ~16 /* Protected */; + } + if (allowedAndPresent !== 0 /* None */ && !(allowedAndPresent & 4 /* Public */)) { + modifiers &= ~4 /* Public */; + } + modifiers |= allowedAndPresent; + completionNodes = completionNodes.map((node) => factory.updateModifiers(node, modifiers)); + if (presentDecorators == null ? void 0 : presentDecorators.length) { + const lastNode = completionNodes[completionNodes.length - 1]; + if (canHaveDecorators(lastNode)) { + completionNodes[completionNodes.length - 1] = factory.updateModifierLike(lastNode, presentDecorators.concat(getModifiers(lastNode) || [])); + } + } const format = 1 /* MultiLine */ | 131072 /* NoTrailingNewLine */; - replacementSpan = modifiersSpan; if (formatContext) { insertText = printer.printAndFormatSnippetList( format, @@ -155167,24 +157374,29 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} ); } } - return { insertText, isSnippet, importAdder, replacementSpan }; + return { insertText, filterText, isSnippet, importAdder, eraseRange }; } function getPresentModifiers(contextToken, sourceFile, position) { if (!contextToken || getLineAndCharacterOfPosition(sourceFile, position).line > getLineAndCharacterOfPosition(sourceFile, contextToken.getEnd()).line) { return { modifiers: 0 /* None */ }; } let modifiers = 0 /* None */; - let span; + let decorators; let contextMod; - if (contextMod = isModifierLike2(contextToken)) { - modifiers |= modifierToFlag(contextMod); - span = createTextSpanFromNode(contextToken); - } - if (isPropertyDeclaration(contextToken.parent)) { + const range = { pos: position, end: position }; + if (isPropertyDeclaration(contextToken.parent) && contextToken.parent.modifiers) { modifiers |= modifiersToFlags(contextToken.parent.modifiers) & 126975 /* Modifier */; - span = createTextSpanFromNode(contextToken.parent); + decorators = contextToken.parent.modifiers.filter(isDecorator) || []; + range.pos = Math.min(range.pos, contextToken.parent.modifiers.pos); + } + if (contextMod = isModifierLike2(contextToken)) { + const contextModifierFlag = modifierToFlag(contextMod); + if (!(modifiers & contextModifierFlag)) { + modifiers |= contextModifierFlag; + range.pos = Math.min(range.pos, contextToken.pos); + } } - return { modifiers, span }; + return { modifiers, decorators, range: range.pos !== position ? range : void 0 }; } function isModifierLike2(node) { if (isModifier(node)) { @@ -155261,10 +157473,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const quotePreference = getQuotePreference(sourceFile, preferences); const builderFlags = 33554432 /* OmitThisParameter */ | (quotePreference === 0 /* Single */ ? 268435456 /* UseSingleQuotesForStringLiteralType */ : 0 /* None */); switch (declaration.kind) { - case 170 /* PropertySignature */: - case 171 /* PropertyDeclaration */: - case 172 /* MethodSignature */: - case 173 /* MethodDeclaration */: { + case 171 /* PropertySignature */: + case 172 /* PropertyDeclaration */: + case 173 /* MethodSignature */: + case 174 /* MethodDeclaration */: { let effectiveType = type.flags & 1048576 /* Union */ && type.types.length < 10 ? checker.getUnionType(type.types, 2 /* Subtype */) : type; if (effectiveType.flags & 1048576 /* Union */) { const functionTypes = filter(effectiveType.types, (type2) => checker.getSignaturesOfType(type2, 0 /* Call */).length > 0); @@ -155707,7 +157919,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return firstDefined(symbols, (symbol, index) => { const origin = symbolToOriginInfoMap[index]; const info = getCompletionEntryDisplayNameForSymbol(symbol, getEmitScriptTarget(compilerOptions), origin, completionKind, completionData.isJsxIdentifierExpected); - return info && info.name === entryId.name && (entryId.source === "ClassMemberSnippet/" /* ClassMemberSnippet */ && symbol.flags & 106500 /* ClassMember */ || entryId.source === "ObjectLiteralMethodSnippet/" /* ObjectLiteralMethodSnippet */ && symbol.flags & (4 /* Property */ | 8192 /* Method */) || getSourceFromOrigin(origin) === entryId.source) ? { type: "symbol", symbol, location, origin, contextToken, previousToken, isJsxInitializer, isTypeOnlyLocation } : void 0; + return info && info.name === entryId.name && (entryId.source === "ClassMemberSnippet/" /* ClassMemberSnippet */ && symbol.flags & 106500 /* ClassMember */ || entryId.source === "ObjectLiteralMethodSnippet/" /* ObjectLiteralMethodSnippet */ && symbol.flags & (4 /* Property */ | 8192 /* Method */) || getSourceFromOrigin(origin) === entryId.source || entryId.source === "ObjectLiteralMemberWithComma/" /* ObjectLiteralMemberWithComma */) ? { type: "symbol", symbol, location, origin, contextToken, previousToken, isJsxInitializer, isTypeOnlyLocation } : void 0; }) || { type: "none" }; } function getCompletionEntryDetails(program, log, sourceFile, position, entryId, host, formatContext, preferences, cancellationToken) { @@ -155802,12 +158014,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function getCompletionEntryCodeActionsAndSourceDisplay(name, location, contextToken, origin, symbol, program, host, compilerOptions, sourceFile, position, previousToken, formatContext, preferences, data, source, cancellationToken) { if (data == null ? void 0 : data.moduleSpecifier) { - if (previousToken && getImportStatementCompletionInfo(contextToken || previousToken).replacementSpan) { + if (previousToken && getImportStatementCompletionInfo(contextToken || previousToken, sourceFile).replacementSpan) { return { codeActions: void 0, sourceDisplay: [textPart(data.moduleSpecifier)] }; } } if (source === "ClassMemberSnippet/" /* ClassMemberSnippet */) { - const { importAdder } = getEntryForMemberCompletion( + const { importAdder, eraseRange } = getEntryForMemberCompletion( host, program, compilerOptions, @@ -155819,10 +158031,17 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} contextToken, formatContext ); - if (importAdder) { + if (importAdder || eraseRange) { const changes = ts_textChanges_exports.ChangeTracker.with( { host, formatContext, preferences }, - importAdder.writeFixes + (tracker) => { + if (importAdder) { + importAdder.writeFixes(tracker); + } + if (eraseRange) { + tracker.deleteRange(sourceFile, eraseRange); + } + } ); return { sourceDisplay: void 0, @@ -155845,6 +158064,21 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} Debug.assertIsDefined(codeAction2, "Expected to have a code action for promoting type-only alias"); return { codeActions: [codeAction2], sourceDisplay: void 0 }; } + if (source === "ObjectLiteralMemberWithComma/" /* ObjectLiteralMemberWithComma */ && contextToken) { + const changes = ts_textChanges_exports.ChangeTracker.with( + { host, formatContext, preferences }, + (tracker) => tracker.insertText(sourceFile, contextToken.end, ",") + ); + if (changes) { + return { + sourceDisplay: void 0, + codeActions: [{ + changes, + description: diagnosticToString([Diagnostics.Add_missing_comma_for_object_member_completion_0, name]) + }] + }; + } + } if (!origin || !(originIsExport(origin) || originIsResolvedExport(origin))) { return { codeActions: void 0, sourceDisplay: void 0 }; } @@ -155886,11 +158120,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return getContextualTypeFromParent(previousToken, checker); case 64 /* EqualsToken */: switch (parent2.kind) { - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return checker.getContextualType(parent2.initializer); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return checker.getTypeAtLocation(parent2.left); - case 290 /* JsxAttribute */: + case 291 /* JsxAttribute */: return checker.getContextualTypeForJsxAttribute(parent2); default: return void 0; @@ -155928,7 +158162,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function isModuleSymbol(symbol) { var _a; - return !!((_a = symbol.declarations) == null ? void 0 : _a.some((d) => d.kind === 311 /* SourceFile */)); + return !!((_a = symbol.declarations) == null ? void 0 : _a.some((d) => d.kind === 312 /* SourceFile */)); } function getCompletionData(program, log, sourceFile, compilerOptions, position, preferences, detailsEntryId, host, formatContext, cancellationToken) { const typeChecker = program.getTypeChecker(); @@ -155947,7 +158181,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return { kind: 1 /* JsDocTagName */ }; } else { const lineStart = getLineStartPositionForPosition(position, sourceFile); - if (!/[^\*|\s(/)]/.test(sourceFile.text.substring(lineStart, position))) { + if (!/[^*|\s(/)]/.test(sourceFile.text.substring(lineStart, position))) { return { kind: 2 /* JsDocTag */ }; } } @@ -155960,7 +158194,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const typeExpression = tryGetTypeExpressionFromTag(tag); if (typeExpression) { currentToken = getTokenAtPosition(sourceFile, position); - if (!currentToken || !isDeclarationName(currentToken) && (currentToken.parent.kind !== 354 /* JSDocPropertyTag */ || currentToken.parent.name !== currentToken)) { + if (!currentToken || !isDeclarationName(currentToken) && (currentToken.parent.kind !== 355 /* JSDocPropertyTag */ || currentToken.parent.name !== currentToken)) { insideJsDocTagTypeExpression = isCurrentlyEditingNode(typeExpression); } } @@ -155993,7 +158227,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} let isNewIdentifierLocation = false; let flags = 0 /* None */; if (contextToken) { - const importStatementCompletionInfo = getImportStatementCompletionInfo(contextToken); + const importStatementCompletionInfo = getImportStatementCompletionInfo(contextToken, sourceFile); if (importStatementCompletionInfo.keywordCompletion) { if (importStatementCompletionInfo.isKeywordOnlyCompletion) { return { @@ -156018,7 +158252,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} isRightOfDot = contextToken.kind === 25 /* DotToken */; isRightOfQuestionDot = contextToken.kind === 29 /* QuestionDotToken */; switch (parent2.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: propertyAccessToConvert = parent2; node = propertyAccessToConvert.expression; const leftmostAccessExpression = getLeftmostAccessExpression(propertyAccessToConvert); @@ -156026,16 +158260,16 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return void 0; } break; - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: node = parent2.left; break; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: node = parent2.name; break; - case 204 /* ImportType */: + case 205 /* ImportType */: node = parent2; break; - case 235 /* MetaProperty */: + case 236 /* MetaProperty */: node = parent2.getFirstToken(sourceFile); Debug.assert(node.kind === 102 /* ImportKeyword */ || node.kind === 105 /* NewKeyword */); break; @@ -156043,51 +158277,51 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return void 0; } } else if (!importStatementCompletion) { - if (parent2 && parent2.kind === 210 /* PropertyAccessExpression */) { + if (parent2 && parent2.kind === 211 /* PropertyAccessExpression */) { contextToken = parent2; parent2 = parent2.parent; } if (currentToken.parent === location) { switch (currentToken.kind) { case 32 /* GreaterThanToken */: - if (currentToken.parent.kind === 283 /* JsxElement */ || currentToken.parent.kind === 285 /* JsxOpeningElement */) { + if (currentToken.parent.kind === 284 /* JsxElement */ || currentToken.parent.kind === 286 /* JsxOpeningElement */) { location = currentToken; } break; case 44 /* SlashToken */: - if (currentToken.parent.kind === 284 /* JsxSelfClosingElement */) { + if (currentToken.parent.kind === 285 /* JsxSelfClosingElement */) { location = currentToken; } break; } } switch (parent2.kind) { - case 286 /* JsxClosingElement */: + case 287 /* JsxClosingElement */: if (contextToken.kind === 44 /* SlashToken */) { isStartingCloseTag = true; location = contextToken; } break; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: if (!binaryExpressionMayBeOpenTag(parent2)) { break; } - case 284 /* JsxSelfClosingElement */: - case 283 /* JsxElement */: - case 285 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: + case 284 /* JsxElement */: + case 286 /* JsxOpeningElement */: isJsxIdentifierExpected = true; if (contextToken.kind === 30 /* LessThanToken */) { isRightOfOpenTag = true; location = contextToken; } break; - case 293 /* JsxExpression */: - case 292 /* JsxSpreadAttribute */: - if (previousToken.kind === 20 /* CloseBraceToken */ || previousToken.kind === 80 /* Identifier */ && previousToken.parent.kind === 290 /* JsxAttribute */) { + case 294 /* JsxExpression */: + case 293 /* JsxSpreadAttribute */: + if (previousToken.kind === 20 /* CloseBraceToken */ || previousToken.kind === 80 /* Identifier */ && previousToken.parent.kind === 291 /* JsxAttribute */) { isJsxIdentifierExpected = true; } break; - case 290 /* JsxAttribute */: + case 291 /* JsxAttribute */: if (parent2.initializer === previousToken && previousToken.end < position) { isJsxIdentifierExpected = true; break; @@ -156175,15 +158409,15 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} }; function isTagWithTypeExpression(tag) { switch (tag.kind) { - case 347 /* JSDocParameterTag */: - case 354 /* JSDocPropertyTag */: - case 348 /* JSDocReturnTag */: - case 350 /* JSDocTypeTag */: - case 352 /* JSDocTypedefTag */: - case 355 /* JSDocThrowsTag */: - case 356 /* JSDocSatisfiesTag */: + case 348 /* JSDocParameterTag */: + case 355 /* JSDocPropertyTag */: + case 349 /* JSDocReturnTag */: + case 351 /* JSDocTypeTag */: + case 353 /* JSDocTypedefTag */: + case 356 /* JSDocThrowsTag */: + case 357 /* JSDocSatisfiesTag */: return true; - case 351 /* JSDocTemplateTag */: + case 352 /* JSDocTemplateTag */: return !!tag.constraint; default: return false; @@ -156192,7 +158426,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function tryGetTypeExpressionFromTag(tag) { if (isTagWithTypeExpression(tag)) { const typeExpression = isJSDocTemplateTag(tag) ? tag.constraint : tag.typeExpression; - return typeExpression && typeExpression.kind === 315 /* JSDocTypeExpression */ ? typeExpression : void 0; + return typeExpression && typeExpression.kind === 316 /* JSDocTypeExpression */ ? typeExpression : void 0; } if (isJSDocAugmentsTag(tag) || isJSDocImplementsTag(tag)) { return tag.class; @@ -156228,7 +158462,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} symbols.push(exportedSymbol); } } - if (!isTypeLocation && !insideJsDocTagTypeExpression && symbol.declarations && symbol.declarations.some((d) => d.kind !== 311 /* SourceFile */ && d.kind !== 266 /* ModuleDeclaration */ && d.kind !== 265 /* EnumDeclaration */)) { + if (!isTypeLocation && !insideJsDocTagTypeExpression && symbol.declarations && symbol.declarations.some((d) => d.kind !== 312 /* SourceFile */ && d.kind !== 267 /* ModuleDeclaration */ && d.kind !== 266 /* EnumDeclaration */)) { let type = typeChecker.getTypeOfSymbolAtLocation(symbol, node).getNonOptionalType(); let insertQuestionDot = false; if (type.isNullableType()) { @@ -156240,30 +158474,40 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } } - addTypeProperties(type, !!(node.flags & 32768 /* AwaitContext */), insertQuestionDot); + addTypeProperties(type, !!(node.flags & 65536 /* AwaitContext */), insertQuestionDot); } return; } } } - if (!isTypeLocation) { + if (!isTypeLocation || isInTypeQuery(node)) { typeChecker.tryGetThisTypeAt( node, /*includeGlobalThis*/ false ); let type = typeChecker.getTypeAtLocation(node).getNonOptionalType(); - let insertQuestionDot = false; - if (type.isNullableType()) { - const canCorrectToQuestionDot = isRightOfDot && !isRightOfQuestionDot && preferences.includeAutomaticOptionalChainCompletions !== false; - if (canCorrectToQuestionDot || isRightOfQuestionDot) { - type = type.getNonNullableType(); - if (canCorrectToQuestionDot) { - insertQuestionDot = true; + if (!isTypeLocation) { + let insertQuestionDot = false; + if (type.isNullableType()) { + const canCorrectToQuestionDot = isRightOfDot && !isRightOfQuestionDot && preferences.includeAutomaticOptionalChainCompletions !== false; + if (canCorrectToQuestionDot || isRightOfQuestionDot) { + type = type.getNonNullableType(); + if (canCorrectToQuestionDot) { + insertQuestionDot = true; + } } } + addTypeProperties(type, !!(node.flags & 65536 /* AwaitContext */), insertQuestionDot); + } else { + addTypeProperties( + type.getNonNullableType(), + /*insertAwait*/ + false, + /*insertQuestionDot*/ + false + ); } - addTypeProperties(type, !!(node.flags & 32768 /* AwaitContext */), insertQuestionDot); } } function addTypeProperties(type, insertAwait, insertQuestionDot) { @@ -156271,7 +158515,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (isRightOfQuestionDot && some(type.getCallSignatures())) { isNewIdentifierLocation = true; } - const propertyAccess = node.kind === 204 /* ImportType */ ? node : node.parent; + const propertyAccess = node.kind === 205 /* ImportType */ ? node : node.parent; if (inCheckedFile) { for (const symbol of type.getApparentProperties()) { if (typeChecker.isValidPropertyAccessForCompletions(propertyAccess, type, symbol)) { @@ -156309,7 +158553,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const leftMostName = getLeftMostName(computedPropertyName.expression); const nameSymbol = leftMostName && typeChecker.getSymbolAtLocation(leftMostName); const firstAccessibleSymbol = nameSymbol && getFirstSymbolInChain(nameSymbol, contextToken, typeChecker); - if (firstAccessibleSymbol && addToSeen(seenPropertySymbols, getSymbolId(firstAccessibleSymbol))) { + const firstAccessibleSymbolId = firstAccessibleSymbol && getSymbolId(firstAccessibleSymbol); + if (firstAccessibleSymbolId && addToSeen(seenPropertySymbols, firstAccessibleSymbolId)) { const index = symbols.length; symbols.push(firstAccessibleSymbol); const moduleSymbol = firstAccessibleSymbol.parent; @@ -156339,6 +158584,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } } else if (preferences.includeCompletionsWithInsertText) { + if (firstAccessibleSymbolId && seenPropertySymbols.has(firstAccessibleSymbolId)) { + return; + } addSymbolOriginInfo(symbol); addSymbolSortInfo(symbol); symbols.push(symbol); @@ -156427,7 +158675,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } } - if (preferences.includeCompletionsWithInsertText && scopeNode.kind !== 311 /* SourceFile */) { + if (preferences.includeCompletionsWithInsertText && scopeNode.kind !== 312 /* SourceFile */) { const thisType = typeChecker.tryGetThisTypeAt( scopeNode, /*includeGlobalThis*/ @@ -156462,10 +158710,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function isSnippetScope(scopeNode) { switch (scopeNode.kind) { - case 311 /* SourceFile */: - case 227 /* TemplateExpression */: - case 293 /* JsxExpression */: - case 240 /* Block */: + case 312 /* SourceFile */: + case 228 /* TemplateExpression */: + case 294 /* JsxExpression */: + case 241 /* Block */: return true; default: return isStatement(scopeNode); @@ -156475,24 +158723,24 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return insideJsDocTagTypeExpression || !!importStatementCompletion && isTypeOnlyImportOrExportDeclaration(location.parent) || !isContextTokenValueLocation(contextToken) && (isPossiblyTypeArgumentPosition(contextToken, sourceFile, typeChecker) || isPartOfTypeNode(location) || isContextTokenTypeLocation(contextToken)); } function isContextTokenValueLocation(contextToken2) { - return contextToken2 && (contextToken2.kind === 114 /* TypeOfKeyword */ && (contextToken2.parent.kind === 185 /* TypeQuery */ || isTypeOfExpression(contextToken2.parent)) || contextToken2.kind === 131 /* AssertsKeyword */ && contextToken2.parent.kind === 181 /* TypePredicate */); + return contextToken2 && (contextToken2.kind === 114 /* TypeOfKeyword */ && (contextToken2.parent.kind === 186 /* TypeQuery */ || isTypeOfExpression(contextToken2.parent)) || contextToken2.kind === 131 /* AssertsKeyword */ && contextToken2.parent.kind === 182 /* TypePredicate */); } function isContextTokenTypeLocation(contextToken2) { if (contextToken2) { const parentKind = contextToken2.parent.kind; switch (contextToken2.kind) { case 59 /* ColonToken */: - return parentKind === 171 /* PropertyDeclaration */ || parentKind === 170 /* PropertySignature */ || parentKind === 168 /* Parameter */ || parentKind === 259 /* VariableDeclaration */ || isFunctionLikeKind(parentKind); + return parentKind === 172 /* PropertyDeclaration */ || parentKind === 171 /* PropertySignature */ || parentKind === 169 /* Parameter */ || parentKind === 260 /* VariableDeclaration */ || isFunctionLikeKind(parentKind); case 64 /* EqualsToken */: - return parentKind === 264 /* TypeAliasDeclaration */; + return parentKind === 265 /* TypeAliasDeclaration */; case 130 /* AsKeyword */: - return parentKind === 233 /* AsExpression */; + return parentKind === 234 /* AsExpression */; case 30 /* LessThanToken */: - return parentKind === 182 /* TypeReference */ || parentKind === 215 /* TypeAssertionExpression */; + return parentKind === 183 /* TypeReference */ || parentKind === 216 /* TypeAssertionExpression */; case 96 /* ExtendsKeyword */: - return parentKind === 167 /* TypeParameter */; + return parentKind === 168 /* TypeParameter */; case 152 /* SatisfiesKeyword */: - return parentKind === 237 /* SatisfiesExpression */; + return parentKind === 238 /* SatisfiesExpression */; } } return false; @@ -156670,14 +158918,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return true; } if (contextToken2.kind === 32 /* GreaterThanToken */ && contextToken2.parent) { - if (location === contextToken2.parent && (location.kind === 285 /* JsxOpeningElement */ || location.kind === 284 /* JsxSelfClosingElement */)) { + if (location === contextToken2.parent && (location.kind === 286 /* JsxOpeningElement */ || location.kind === 285 /* JsxSelfClosingElement */)) { return false; } - if (contextToken2.parent.kind === 285 /* JsxOpeningElement */) { - return location.parent.kind !== 285 /* JsxOpeningElement */; + if (contextToken2.parent.kind === 286 /* JsxOpeningElement */) { + return location.parent.kind !== 286 /* JsxOpeningElement */; } - if (contextToken2.parent.kind === 286 /* JsxClosingElement */ || contextToken2.parent.kind === 284 /* JsxSelfClosingElement */) { - return !!contextToken2.parent.parent && contextToken2.parent.parent.kind === 283 /* JsxElement */; + if (contextToken2.parent.kind === 287 /* JsxClosingElement */ || contextToken2.parent.kind === 285 /* JsxSelfClosingElement */) { + return !!contextToken2.parent.parent && contextToken2.parent.parent.kind === 284 /* JsxElement */; } } return false; @@ -156688,29 +158936,29 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const tokenKind = keywordForNode(contextToken); switch (tokenKind) { case 28 /* CommaToken */: - return containingNodeKind === 212 /* CallExpression */ || containingNodeKind === 175 /* Constructor */ || containingNodeKind === 213 /* NewExpression */ || containingNodeKind === 208 /* ArrayLiteralExpression */ || containingNodeKind === 225 /* BinaryExpression */ || containingNodeKind === 183 /* FunctionType */ || containingNodeKind === 209 /* ObjectLiteralExpression */; + return containingNodeKind === 213 /* CallExpression */ || containingNodeKind === 176 /* Constructor */ || containingNodeKind === 214 /* NewExpression */ || containingNodeKind === 209 /* ArrayLiteralExpression */ || containingNodeKind === 226 /* BinaryExpression */ || containingNodeKind === 184 /* FunctionType */ || containingNodeKind === 210 /* ObjectLiteralExpression */; case 21 /* OpenParenToken */: - return containingNodeKind === 212 /* CallExpression */ || containingNodeKind === 175 /* Constructor */ || containingNodeKind === 213 /* NewExpression */ || containingNodeKind === 216 /* ParenthesizedExpression */ || containingNodeKind === 195 /* ParenthesizedType */; + return containingNodeKind === 213 /* CallExpression */ || containingNodeKind === 176 /* Constructor */ || containingNodeKind === 214 /* NewExpression */ || containingNodeKind === 217 /* ParenthesizedExpression */ || containingNodeKind === 196 /* ParenthesizedType */; case 23 /* OpenBracketToken */: - return containingNodeKind === 208 /* ArrayLiteralExpression */ || containingNodeKind === 180 /* IndexSignature */ || containingNodeKind === 166 /* ComputedPropertyName */; + return containingNodeKind === 209 /* ArrayLiteralExpression */ || containingNodeKind === 181 /* IndexSignature */ || containingNodeKind === 167 /* ComputedPropertyName */; case 144 /* ModuleKeyword */: case 145 /* NamespaceKeyword */: case 102 /* ImportKeyword */: return true; case 25 /* DotToken */: - return containingNodeKind === 266 /* ModuleDeclaration */; + return containingNodeKind === 267 /* ModuleDeclaration */; case 19 /* OpenBraceToken */: - return containingNodeKind === 262 /* ClassDeclaration */ || containingNodeKind === 209 /* ObjectLiteralExpression */; + return containingNodeKind === 263 /* ClassDeclaration */ || containingNodeKind === 210 /* ObjectLiteralExpression */; case 64 /* EqualsToken */: - return containingNodeKind === 259 /* VariableDeclaration */ || containingNodeKind === 225 /* BinaryExpression */; + return containingNodeKind === 260 /* VariableDeclaration */ || containingNodeKind === 226 /* BinaryExpression */; case 16 /* TemplateHead */: - return containingNodeKind === 227 /* TemplateExpression */; + return containingNodeKind === 228 /* TemplateExpression */; case 17 /* TemplateMiddle */: - return containingNodeKind === 238 /* TemplateSpan */; + return containingNodeKind === 239 /* TemplateSpan */; case 134 /* AsyncKeyword */: - return containingNodeKind === 173 /* MethodDeclaration */ || containingNodeKind === 303 /* ShorthandPropertyAssignment */; + return containingNodeKind === 174 /* MethodDeclaration */ || containingNodeKind === 304 /* ShorthandPropertyAssignment */; case 42 /* AsteriskToken */: - return containingNodeKind === 173 /* MethodDeclaration */; + return containingNodeKind === 174 /* MethodDeclaration */; } if (isClassMemberCompletionKeyword(tokenKind)) { return true; @@ -156742,16 +158990,16 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function tryGetObjectLikeCompletionSymbols() { const symbolsStartIndex = symbols.length; - const objectLikeContainer = tryGetObjectLikeCompletionContainer(contextToken); + const objectLikeContainer = tryGetObjectLikeCompletionContainer(contextToken, position, sourceFile); if (!objectLikeContainer) return 0 /* Continue */; completionKind = 0 /* ObjectPropertyDeclaration */; let typeMembers; let existingMembers; - if (objectLikeContainer.kind === 209 /* ObjectLiteralExpression */) { + if (objectLikeContainer.kind === 210 /* ObjectLiteralExpression */) { const instantiatedType = tryGetObjectLiteralContextualType(objectLikeContainer, typeChecker); if (instantiatedType === void 0) { - if (objectLikeContainer.flags & 33554432 /* InWithStatement */) { + if (objectLikeContainer.flags & 67108864 /* InWithStatement */) { return 2 /* Fail */; } isNonContextualObjectLiteral = true; @@ -156770,16 +159018,16 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } } else { - Debug.assert(objectLikeContainer.kind === 205 /* ObjectBindingPattern */); + Debug.assert(objectLikeContainer.kind === 206 /* ObjectBindingPattern */); isNewIdentifierLocation = false; const rootDeclaration = getRootDeclaration(objectLikeContainer.parent); if (!isVariableLike(rootDeclaration)) return Debug.fail("Root declaration is not variable-like."); - let canGetType = hasInitializer(rootDeclaration) || !!getEffectiveTypeAnnotationNode(rootDeclaration) || rootDeclaration.parent.parent.kind === 249 /* ForOfStatement */; - if (!canGetType && rootDeclaration.kind === 168 /* Parameter */) { + let canGetType = hasInitializer(rootDeclaration) || !!getEffectiveTypeAnnotationNode(rootDeclaration) || rootDeclaration.parent.parent.kind === 250 /* ForOfStatement */; + if (!canGetType && rootDeclaration.kind === 169 /* Parameter */) { if (isExpression(rootDeclaration.parent)) { canGetType = !!typeChecker.getContextualType(rootDeclaration.parent); - } else if (rootDeclaration.parent.kind === 173 /* MethodDeclaration */ || rootDeclaration.parent.kind === 177 /* SetAccessor */) { + } else if (rootDeclaration.parent.kind === 174 /* MethodDeclaration */ || rootDeclaration.parent.kind === 178 /* SetAccessor */) { canGetType = isExpression(rootDeclaration.parent.parent) && !!typeChecker.getContextualType(rootDeclaration.parent.parent); } } @@ -156805,7 +159053,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const filteredMembers = filterObjectMembersList(typeMembers, Debug.checkDefined(existingMembers)); symbols = concatenate(symbols, filteredMembers); setSortTextToOptionalMember(); - if (objectLikeContainer.kind === 209 /* ObjectLiteralExpression */ && preferences.includeCompletionsWithObjectLiteralMethodSnippets && preferences.includeCompletionsWithInsertText) { + if (objectLikeContainer.kind === 210 /* ObjectLiteralExpression */ && preferences.includeCompletionsWithObjectLiteralMethodSnippets && preferences.includeCompletionsWithInsertText) { transformObjectLiteralMembersSortText(symbolsStartIndex); collectObjectLiteralMethodSymbols(filteredMembers, objectLikeContainer); } @@ -156821,10 +159069,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (!isTypeKeywordTokenOrIdentifier(contextToken)) { keywordFilters = 8 /* TypeKeyword */; } - const { moduleSpecifier } = namedImportsOrExports.kind === 274 /* NamedImports */ ? namedImportsOrExports.parent.parent : namedImportsOrExports.parent; + const { moduleSpecifier } = namedImportsOrExports.kind === 275 /* NamedImports */ ? namedImportsOrExports.parent.parent : namedImportsOrExports.parent; if (!moduleSpecifier) { isNewIdentifierLocation = true; - return namedImportsOrExports.kind === 274 /* NamedImports */ ? 2 /* Fail */ : 0 /* Continue */; + return namedImportsOrExports.kind === 275 /* NamedImports */ ? 2 /* Fail */ : 0 /* Continue */; } const moduleSpecifierSymbol = typeChecker.getSymbolAtLocation(moduleSpecifier); if (!moduleSpecifierSymbol) { @@ -156949,11 +159197,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} case 31 /* LessThanSlashToken */: case 44 /* SlashToken */: case 80 /* Identifier */: - case 210 /* PropertyAccessExpression */: - case 291 /* JsxAttributes */: - case 290 /* JsxAttribute */: - case 292 /* JsxSpreadAttribute */: - if (parent2 && (parent2.kind === 284 /* JsxSelfClosingElement */ || parent2.kind === 285 /* JsxOpeningElement */)) { + case 211 /* PropertyAccessExpression */: + case 292 /* JsxAttributes */: + case 291 /* JsxAttribute */: + case 293 /* JsxSpreadAttribute */: + if (parent2 && (parent2.kind === 285 /* JsxSelfClosingElement */ || parent2.kind === 286 /* JsxOpeningElement */)) { if (contextToken2.kind === 32 /* GreaterThanToken */) { const precedingToken = findPrecedingToken( contextToken2.pos, @@ -156965,20 +159213,20 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} break; } return parent2; - } else if (parent2.kind === 290 /* JsxAttribute */) { + } else if (parent2.kind === 291 /* JsxAttribute */) { return parent2.parent.parent; } break; case 11 /* StringLiteral */: - if (parent2 && (parent2.kind === 290 /* JsxAttribute */ || parent2.kind === 292 /* JsxSpreadAttribute */)) { + if (parent2 && (parent2.kind === 291 /* JsxAttribute */ || parent2.kind === 293 /* JsxSpreadAttribute */)) { return parent2.parent.parent; } break; case 20 /* CloseBraceToken */: - if (parent2 && parent2.kind === 293 /* JsxExpression */ && parent2.parent && parent2.parent.kind === 290 /* JsxAttribute */) { + if (parent2 && parent2.kind === 294 /* JsxExpression */ && parent2.parent && parent2.parent.kind === 291 /* JsxAttribute */) { return parent2.parent.parent.parent; } - if (parent2 && parent2.kind === 292 /* JsxSpreadAttribute */) { + if (parent2 && parent2.kind === 293 /* JsxSpreadAttribute */) { return parent2.parent.parent; } break; @@ -156991,44 +159239,44 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const containingNodeKind = parent2.kind; switch (contextToken2.kind) { case 28 /* CommaToken */: - return containingNodeKind === 259 /* VariableDeclaration */ || isVariableDeclarationListButNotTypeArgument(contextToken2) || containingNodeKind === 242 /* VariableStatement */ || containingNodeKind === 265 /* EnumDeclaration */ || // enum a { foo, | - isFunctionLikeButNotConstructor(containingNodeKind) || containingNodeKind === 263 /* InterfaceDeclaration */ || // interface A= contextToken2.pos; case 25 /* DotToken */: - return containingNodeKind === 206 /* ArrayBindingPattern */; + return containingNodeKind === 207 /* ArrayBindingPattern */; case 59 /* ColonToken */: - return containingNodeKind === 207 /* BindingElement */; + return containingNodeKind === 208 /* BindingElement */; case 23 /* OpenBracketToken */: - return containingNodeKind === 206 /* ArrayBindingPattern */; + return containingNodeKind === 207 /* ArrayBindingPattern */; case 21 /* OpenParenToken */: - return containingNodeKind === 298 /* CatchClause */ || isFunctionLikeButNotConstructor(containingNodeKind); + return containingNodeKind === 299 /* CatchClause */ || isFunctionLikeButNotConstructor(containingNodeKind); case 19 /* OpenBraceToken */: - return containingNodeKind === 265 /* EnumDeclaration */; + return containingNodeKind === 266 /* EnumDeclaration */; case 30 /* LessThanToken */: - return containingNodeKind === 262 /* ClassDeclaration */ || // class A< | - containingNodeKind === 230 /* ClassExpression */ || // var C = class D< | - containingNodeKind === 263 /* InterfaceDeclaration */ || // interface A< | - containingNodeKind === 264 /* TypeAliasDeclaration */ || // type List< | + return containingNodeKind === 263 /* ClassDeclaration */ || // class A< | + containingNodeKind === 231 /* ClassExpression */ || // var C = class D< | + containingNodeKind === 264 /* InterfaceDeclaration */ || // interface A< | + containingNodeKind === 265 /* TypeAliasDeclaration */ || // type List< | isFunctionLikeKind(containingNodeKind); case 126 /* StaticKeyword */: - return containingNodeKind === 171 /* PropertyDeclaration */ && !isClassLike(parent2.parent); + return containingNodeKind === 172 /* PropertyDeclaration */ && !isClassLike(parent2.parent); case 26 /* DotDotDotToken */: - return containingNodeKind === 168 /* Parameter */ || !!parent2.parent && parent2.parent.kind === 206 /* ArrayBindingPattern */; + return containingNodeKind === 169 /* Parameter */ || !!parent2.parent && parent2.parent.kind === 207 /* ArrayBindingPattern */; case 125 /* PublicKeyword */: case 123 /* PrivateKeyword */: case 124 /* ProtectedKeyword */: - return containingNodeKind === 168 /* Parameter */ && !isConstructorDeclaration(parent2.parent); + return containingNodeKind === 169 /* Parameter */ && !isConstructorDeclaration(parent2.parent); case 130 /* AsKeyword */: - return containingNodeKind === 275 /* ImportSpecifier */ || containingNodeKind === 280 /* ExportSpecifier */ || containingNodeKind === 273 /* NamespaceImport */; + return containingNodeKind === 276 /* ImportSpecifier */ || containingNodeKind === 281 /* ExportSpecifier */ || containingNodeKind === 274 /* NamespaceImport */; case 139 /* GetKeyword */: case 153 /* SetKeyword */: return !isFromObjectTypeDeclaration(contextToken2); case 80 /* Identifier */: - if (containingNodeKind === 275 /* ImportSpecifier */ && contextToken2 === parent2.name && contextToken2.text === "type") { + if (containingNodeKind === 276 /* ImportSpecifier */ && contextToken2 === parent2.name && contextToken2.text === "type") { return false; } break; @@ -157043,7 +159291,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} case 140 /* InferKeyword */: return true; case 156 /* TypeKeyword */: - return containingNodeKind !== 275 /* ImportSpecifier */; + return containingNodeKind !== 276 /* ImportSpecifier */; case 42 /* AsteriskToken */: return isFunctionLike(contextToken2.parent) && !isMethodDeclaration(contextToken2.parent); } @@ -157077,7 +159325,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (ancestorClassLike && contextToken2 === previousToken && isPreviousPropertyDeclarationTerminated(contextToken2, position)) { return false; } - const ancestorPropertyDeclaraion = getAncestor(contextToken2.parent, 171 /* PropertyDeclaration */); + const ancestorPropertyDeclaraion = getAncestor(contextToken2.parent, 172 /* PropertyDeclaration */); if (ancestorPropertyDeclaraion && contextToken2 !== previousToken && isClassLike(previousToken.parent.parent) && position <= previousToken.end) { if (isPreviousPropertyDeclarationTerminated(contextToken2, previousToken.end)) { return false; @@ -157091,7 +159339,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return contextToken2.kind !== 64 /* EqualsToken */ && (contextToken2.kind === 27 /* SemicolonToken */ || !positionsAreOnSameLine(contextToken2.end, position2, sourceFile)); } function isFunctionLikeButNotConstructor(kind) { - return isFunctionLikeKind(kind) && kind !== 175 /* Constructor */; + return isFunctionLikeKind(kind) && kind !== 176 /* Constructor */; } function isDotOfNumericLiteral(contextToken2) { if (contextToken2.kind === 9 /* NumericLiteral */) { @@ -157101,7 +159349,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return false; } function isVariableDeclarationListButNotTypeArgument(node2) { - return node2.parent.kind === 260 /* VariableDeclarationList */ && !isPossiblyTypeArgumentPosition(node2, sourceFile, typeChecker); + return node2.parent.kind === 261 /* VariableDeclarationList */ && !isPossiblyTypeArgumentPosition(node2, sourceFile, typeChecker); } function filterObjectMembersList(contextualMemberSymbols, existingMembers) { if (existingMembers.length === 0) { @@ -157110,7 +159358,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const membersDeclaredBySpreadAssignment = /* @__PURE__ */ new Set(); const existingMemberNames = /* @__PURE__ */ new Set(); for (const m of existingMembers) { - if (m.kind !== 302 /* PropertyAssignment */ && m.kind !== 303 /* ShorthandPropertyAssignment */ && m.kind !== 207 /* BindingElement */ && m.kind !== 173 /* MethodDeclaration */ && m.kind !== 176 /* GetAccessor */ && m.kind !== 177 /* SetAccessor */ && m.kind !== 304 /* SpreadAssignment */) { + if (m.kind !== 303 /* PropertyAssignment */ && m.kind !== 304 /* ShorthandPropertyAssignment */ && m.kind !== 208 /* BindingElement */ && m.kind !== 174 /* MethodDeclaration */ && m.kind !== 177 /* GetAccessor */ && m.kind !== 178 /* SetAccessor */ && m.kind !== 305 /* SpreadAssignment */) { continue; } if (isCurrentlyEditingNode(m)) { @@ -157188,7 +159436,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function filterClassMembersList(baseSymbols, existingMembers, currentClassElementModifierFlags) { const existingMemberNames = /* @__PURE__ */ new Set(); for (const m of existingMembers) { - if (m.kind !== 171 /* PropertyDeclaration */ && m.kind !== 173 /* MethodDeclaration */ && m.kind !== 176 /* GetAccessor */ && m.kind !== 177 /* SetAccessor */) { + if (m.kind !== 172 /* PropertyDeclaration */ && m.kind !== 174 /* MethodDeclaration */ && m.kind !== 177 /* GetAccessor */ && m.kind !== 178 /* SetAccessor */) { continue; } if (isCurrentlyEditingNode(m)) { @@ -157214,7 +159462,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (isCurrentlyEditingNode(attr)) { continue; } - if (attr.kind === 290 /* JsxAttribute */) { + if (attr.kind === 291 /* JsxAttribute */) { seenNames.add(getEscapedTextOfJsxAttributeName(attr.name)); } else if (isJsxSpreadAttribute(attr)) { setMembersDeclaredBySpreadAssignment(attr, membersDeclaredBySpreadAssignment); @@ -157228,7 +159476,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return node2.getStart(sourceFile) <= position && position <= node2.getEnd(); } } - function tryGetObjectLikeCompletionContainer(contextToken) { + function tryGetObjectLikeCompletionContainer(contextToken, position, sourceFile) { + var _a; if (contextToken) { const { parent: parent2 } = contextToken; switch (contextToken.kind) { @@ -157243,7 +159492,29 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} case 134 /* AsyncKeyword */: return tryCast(parent2.parent, isObjectLiteralExpression); case 80 /* Identifier */: - return contextToken.text === "async" && isShorthandPropertyAssignment(contextToken.parent) ? contextToken.parent.parent : void 0; + if (contextToken.text === "async" && isShorthandPropertyAssignment(contextToken.parent)) { + return contextToken.parent.parent; + } else { + if (isObjectLiteralExpression(contextToken.parent.parent) && (isSpreadAssignment(contextToken.parent) || isShorthandPropertyAssignment(contextToken.parent) && getLineAndCharacterOfPosition(sourceFile, contextToken.getEnd()).line !== getLineAndCharacterOfPosition(sourceFile, position).line)) { + return contextToken.parent.parent; + } + const ancestorNode2 = findAncestor(parent2, isPropertyAssignment); + if ((ancestorNode2 == null ? void 0 : ancestorNode2.getLastToken(sourceFile)) === contextToken && isObjectLiteralExpression(ancestorNode2.parent)) { + return ancestorNode2.parent; + } + } + break; + default: + if (((_a = parent2.parent) == null ? void 0 : _a.parent) && (isMethodDeclaration(parent2.parent) || isGetAccessorDeclaration(parent2.parent) || isSetAccessorDeclaration(parent2.parent)) && isObjectLiteralExpression(parent2.parent.parent)) { + return parent2.parent.parent; + } + if (isSpreadAssignment(parent2) && isObjectLiteralExpression(parent2.parent)) { + return parent2.parent; + } + const ancestorNode = findAncestor(parent2, isPropertyAssignment); + if (contextToken.kind !== 59 /* ColonToken */ && (ancestorNode == null ? void 0 : ancestorNode.getLastToken(sourceFile)) === contextToken && isObjectLiteralExpression(ancestorNode.parent)) { + return ancestorNode.parent; + } } } return void 0; @@ -157338,11 +159609,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} switch (kind) { case 128 /* AbstractKeyword */: case 133 /* AnyKeyword */: - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: case 136 /* BooleanKeyword */: case 138 /* DeclareKeyword */: case 94 /* EnumKeyword */: - case 161 /* GlobalKeyword */: + case 162 /* GlobalKeyword */: case 119 /* ImplementsKeyword */: case 140 /* InferKeyword */: case 120 /* InterfaceKeyword */: @@ -157353,7 +159624,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} case 146 /* NeverKeyword */: case 150 /* NumberKeyword */: case 151 /* ObjectKeyword */: - case 163 /* OverrideKeyword */: + case 164 /* OverrideKeyword */: case 123 /* PrivateKeyword */: case 124 /* ProtectedKeyword */: case 125 /* PublicKeyword */: @@ -157380,7 +159651,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} case 153 /* SetKeyword */: case 134 /* AsyncKeyword */: case 138 /* DeclareKeyword */: - case 163 /* OverrideKeyword */: + case 164 /* OverrideKeyword */: return true; default: return isClassMemberModifier(kind); @@ -157437,7 +159708,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function tryGetObjectTypeDeclarationCompletionContainer(sourceFile, contextToken, location, position) { switch (location.kind) { - case 357 /* SyntaxList */: + case 358 /* SyntaxList */: return tryCast(location.parent, isObjectTypeDeclaration); case 1 /* EndOfFileToken */: const cls = tryCast(lastOrUndefined(cast(location.parent, isSourceFile).statements), isObjectTypeDeclaration); @@ -157445,6 +159716,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return cls; } break; + case 81 /* PrivateIdentifier */: + if (tryCast(location.parent, isPropertyDeclaration)) { + return findAncestor(location, isClassLike); + } + break; case 80 /* Identifier */: { const originalKeywordKind = identifierToKeywordKind(location); if (originalKeywordKind) { @@ -157496,7 +159772,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} case 27 /* SemicolonToken */: case 28 /* CommaToken */: case 80 /* Identifier */: - if (parent2.kind === 170 /* PropertySignature */ && isTypeLiteralNode(parent2.parent)) { + if (parent2.kind === 171 /* PropertySignature */ && isTypeLiteralNode(parent2.parent)) { return parent2.parent; } break; @@ -157513,11 +159789,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (!t) return void 0; switch (node.kind) { - case 170 /* PropertySignature */: + case 171 /* PropertySignature */: return checker.getTypeOfPropertyOfContextualType(t, node.symbol.escapedName); - case 192 /* IntersectionType */: - case 186 /* TypeLiteral */: - case 191 /* UnionType */: + case 193 /* IntersectionType */: + case 187 /* TypeLiteral */: + case 192 /* UnionType */: return t; } } @@ -157540,7 +159816,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} case "/": return !!contextToken && (isStringLiteralLike(contextToken) ? !!tryGetImportFromModuleSpecifier(contextToken) : contextToken.kind === 44 /* SlashToken */ && isJsxClosingElement(contextToken.parent)); case " ": - return !!contextToken && isImportKeyword(contextToken) && contextToken.parent.kind === 311 /* SourceFile */; + return !!contextToken && isImportKeyword(contextToken) && contextToken.parent.kind === 312 /* SourceFile */; default: return Debug.assertNever(triggerCharacter); } @@ -157601,7 +159877,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } return void 0; } - function getImportStatementCompletionInfo(contextToken) { + function getImportStatementCompletionInfo(contextToken, sourceFile) { var _a, _b, _c; let keywordCompletion; let isKeywordOnlyCompletion = false; @@ -157617,6 +159893,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function getCandidate() { const parent2 = contextToken.parent; if (isImportEqualsDeclaration(parent2)) { + const lastToken = parent2.getLastToken(sourceFile); + if (isIdentifier(contextToken) && lastToken !== contextToken) { + keywordCompletion = 161 /* FromKeyword */; + isKeywordOnlyCompletion = true; + return void 0; + } keywordCompletion = contextToken.kind === 156 /* TypeKeyword */ ? void 0 : 156 /* TypeKeyword */; return isModuleSpecifierMissingOrEmpty(parent2.moduleReference) ? parent2 : void 0; } @@ -157630,7 +159912,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (canCompleteFromNamedBindings(parent2)) { if (contextToken.kind === 20 /* CloseBraceToken */ || contextToken.kind === 80 /* Identifier */) { isKeywordOnlyCompletion = true; - keywordCompletion = 160 /* FromKeyword */; + keywordCompletion = 161 /* FromKeyword */; } else { return parent2.parent.parent; } @@ -157657,8 +159939,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (rangeIsOnSingleLine(top, sourceFile)) { return createTextSpanFromNode(top, sourceFile); } - Debug.assert(top.kind !== 102 /* ImportKeyword */ && top.kind !== 275 /* ImportSpecifier */); - const potentialSplitPoint = top.kind === 271 /* ImportDeclaration */ ? getPotentiallyInvalidImportSpecifier((_a = top.importClause) == null ? void 0 : _a.namedBindings) ?? top.moduleSpecifier : top.moduleReference; + Debug.assert(top.kind !== 102 /* ImportKeyword */ && top.kind !== 276 /* ImportSpecifier */); + const potentialSplitPoint = top.kind === 272 /* ImportDeclaration */ ? getPotentiallyInvalidImportSpecifier((_a = top.importClause) == null ? void 0 : _a.namedBindings) ?? top.moduleSpecifier : top.moduleReference; const withoutModuleSpecifier = { pos: top.getFirstToken().getStart(), end: potentialSplitPoint.pos @@ -157786,6 +160068,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} CompletionSource2["TypeOnlyAlias"] = "TypeOnlyAlias/"; CompletionSource2["ObjectLiteralMethodSnippet"] = "ObjectLiteralMethodSnippet/"; CompletionSource2["SwitchCases"] = "SwitchCases/"; + CompletionSource2["ObjectLiteralMemberWithComma"] = "ObjectLiteralMemberWithComma/"; return CompletionSource2; })(CompletionSource || {}); SymbolOriginInfoKind = /* @__PURE__ */ ((SymbolOriginInfoKind2) => { @@ -157815,7 +160098,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} _keywordCompletions = []; allKeywordsCompletions = memoize(() => { const res = []; - for (let i = 83 /* FirstKeyword */; i <= 164 /* LastKeyword */; i++) { + for (let i = 83 /* FirstKeyword */; i <= 165 /* LastKeyword */; i++) { res.push({ name: tokenToString(i), kind: "keyword" /* keyword */, @@ -157985,37 +160268,37 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function getStringLiteralCompletionEntries(sourceFile, node, position, typeChecker, compilerOptions, host, preferences) { const parent2 = walkUpParentheses(node.parent); switch (parent2.kind) { - case 200 /* LiteralType */: { + case 201 /* LiteralType */: { const grandParent = walkUpParentheses(parent2.parent); - if (grandParent.kind === 204 /* ImportType */) { + if (grandParent.kind === 205 /* ImportType */) { return { kind: 0 /* Paths */, paths: getStringLiteralCompletionsFromModuleNames(sourceFile, node, compilerOptions, host, typeChecker, preferences) }; } return fromUnionableLiteralType(grandParent); } - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: if (isObjectLiteralExpression(parent2.parent) && parent2.name === node) { return stringLiteralCompletionsForObjectLiteral(typeChecker, parent2.parent); } return fromContextualType() || fromContextualType(0 /* None */); - case 211 /* ElementAccessExpression */: { + case 212 /* ElementAccessExpression */: { const { expression, argumentExpression } = parent2; if (node === skipParentheses(argumentExpression)) { return stringLiteralCompletionsFromProperties(typeChecker.getTypeAtLocation(expression)); } return void 0; } - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 290 /* JsxAttribute */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 291 /* JsxAttribute */: if (!isRequireCallArgument(node) && !isImportCall(parent2)) { - const argumentInfo = ts_SignatureHelp_exports.getArgumentInfoForCompletions(parent2.kind === 290 /* JsxAttribute */ ? parent2.parent : node, position, sourceFile); - return argumentInfo && getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker) || fromContextualType(0 /* None */); + const argumentInfo = ts_SignatureHelp_exports.getArgumentInfoForCompletions(parent2.kind === 291 /* JsxAttribute */ ? parent2.parent : node, position, sourceFile); + return argumentInfo && (getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker) || getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker, 0 /* Normal */)) || fromContextualType(0 /* None */); } - case 271 /* ImportDeclaration */: - case 277 /* ExportDeclaration */: - case 282 /* ExternalModuleReference */: + case 272 /* ImportDeclaration */: + case 278 /* ExportDeclaration */: + case 283 /* ExternalModuleReference */: return { kind: 0 /* Paths */, paths: getStringLiteralCompletionsFromModuleNames(sourceFile, node, compilerOptions, host, typeChecker, preferences) }; - case 295 /* CaseClause */: + case 296 /* CaseClause */: const tracker = newCaseClauseTracker(typeChecker, parent2.parent.clauses); const contextualTypes = fromContextualType(); if (!contextualTypes) { @@ -158028,21 +160311,21 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function fromUnionableLiteralType(grandParent) { switch (grandParent.kind) { - case 232 /* ExpressionWithTypeArguments */: - case 182 /* TypeReference */: { + case 233 /* ExpressionWithTypeArguments */: + case 183 /* TypeReference */: { const typeArgument = findAncestor(parent2, (n) => n.parent === grandParent); if (typeArgument) { return { kind: 2 /* Types */, types: getStringLiteralTypes(typeChecker.getTypeArgumentConstraint(typeArgument)), isNewIdentifier: false }; } return void 0; } - case 198 /* IndexedAccessType */: + case 199 /* IndexedAccessType */: const { indexType, objectType } = grandParent; if (!rangeContainsPosition(indexType, position)) { return void 0; } return stringLiteralCompletionsFromProperties(typeChecker.getTypeFromTypeNode(objectType)); - case 191 /* UnionType */: { + case 192 /* UnionType */: { const result = fromUnionableLiteralType(walkUpParentheses(grandParent.parent)); if (!result) { return void 0; @@ -158067,9 +160350,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function walkUpParentheses(node) { switch (node.kind) { - case 195 /* ParenthesizedType */: + case 196 /* ParenthesizedType */: return walkUpParenthesizedTypes(node); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return walkUpParenthesizedExpressions(node); default: return node; @@ -158078,12 +160361,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function getAlreadyUsedTypesInStringLiteralUnion(union, current) { return mapDefined(union.types, (type) => type !== current && isLiteralTypeNode(type) && isStringLiteral(type.literal) ? type.literal.text : void 0); } - function getStringLiteralCompletionsFromSignature(call, arg, argumentInfo, checker) { + function getStringLiteralCompletionsFromSignature(call, arg, argumentInfo, checker, checkMode = 32 /* IsForStringLiteralArgumentCompletions */) { let isNewIdentifier = false; const uniques = /* @__PURE__ */ new Map(); const candidates = []; const editingArgument = isJsxOpeningLikeElement(call) ? Debug.checkDefined(findAncestor(arg.parent, isJsxAttribute)) : arg; - checker.getResolvedSignatureForStringLiteralCompletions(call, editingArgument, candidates); + checker.getResolvedSignatureForStringLiteralCompletions(call, editingArgument, candidates, checkMode); const types = flatMap(candidates, (candidate) => { if (!signatureHasRestParameter(candidate) && argumentInfo.argumentCount > candidate.parameters.length) return; @@ -158183,7 +160466,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} extensionOptions, host, /*moduleSpecifierIsRelative*/ - false, + true, scriptPath ).values()); } @@ -158444,7 +160727,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } const keys = getOwnKeys(exports); const fragmentSubpath = components.join("/") + (components.length && hasTrailingDirectorySeparator(fragment) ? "/" : ""); - const conditions = mode === 99 /* ESNext */ ? ["node", "import", "types"] : ["node", "require", "types"]; + const conditions = getConditions(compilerOptions, mode === 99 /* ESNext */); addCompletionEntriesFromPathsOrExports( result, fragmentSubpath, @@ -158515,16 +160798,18 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const fragmentDirectory = fragmentHasPath ? hasTrailingDirectorySeparator(fragment) ? fragment : getDirectoryPath(fragment) : void 0; const expandedPrefixDirectory = fragmentHasPath ? combinePaths(normalizedPrefixDirectory, normalizedPrefixBase + fragmentDirectory) : normalizedPrefixDirectory; const normalizedSuffix = normalizePath(parsed.suffix); + const declarationExtension = normalizedSuffix && getDeclarationEmitExtensionForPath("_" + normalizedSuffix); + const matchingSuffixes = declarationExtension ? [changeExtension(normalizedSuffix, declarationExtension), normalizedSuffix] : [normalizedSuffix]; const baseDirectory = normalizePath(combinePaths(packageDirectory, expandedPrefixDirectory)); const completePrefix = fragmentHasPath ? baseDirectory : ensureTrailingDirectorySeparator(baseDirectory) + normalizedPrefixBase; - const includeGlob = normalizedSuffix ? "**/*" + normalizedSuffix : "./*"; + const includeGlobs = normalizedSuffix ? matchingSuffixes.map((suffix) => "**/*" + suffix) : ["./*"]; const matches = mapDefined(tryReadDirectory( host, baseDirectory, extensionOptions.extensionsToSearch, /*exclude*/ void 0, - [includeGlob] + includeGlobs ), (match) => { const trimmedWithPattern = trimPrefixAndSuffix(match); if (trimmedWithPattern) { @@ -158538,8 +160823,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const directories = normalizedSuffix ? emptyArray : mapDefined(tryGetDirectories(host, baseDirectory), (dir) => dir === "node_modules" ? void 0 : directoryResult(dir)); return [...matches, ...directories]; function trimPrefixAndSuffix(path) { - const inner = withoutStartAndEnd(normalizePath(path), completePrefix, normalizedSuffix); - return inner === void 0 ? void 0 : removeLeadingDirectorySeparator(inner); + return firstDefined(matchingSuffixes, (suffix) => { + const inner = withoutStartAndEnd(normalizePath(path), completePrefix, suffix); + return inner === void 0 ? void 0 : removeLeadingDirectorySeparator(inner); + }); } } function withoutStartAndEnd(s, start, end) { @@ -158763,14 +161050,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (cancellationToken) cancellationToken.throwIfCancellationRequested(); switch (direct.kind) { - case 212 /* CallExpression */: + case 213 /* CallExpression */: if (isImportCall(direct)) { handleImportCall(direct); break; } if (!isAvailableThroughGlobal) { const parent2 = direct.parent; - if (exportKind === 2 /* ExportEquals */ && parent2.kind === 259 /* VariableDeclaration */) { + if (exportKind === 2 /* ExportEquals */ && parent2.kind === 260 /* VariableDeclaration */) { const { name } = parent2; if (name.kind === 80 /* Identifier */) { directImports.push(name); @@ -158781,7 +161068,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} break; case 80 /* Identifier */: break; - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: handleNamespaceImport( direct, direct.name, @@ -158790,10 +161077,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} false ); break; - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: directImports.push(direct); const namedBindings = direct.importClause && direct.importClause.namedBindings; - if (namedBindings && namedBindings.kind === 273 /* NamespaceImport */) { + if (namedBindings && namedBindings.kind === 274 /* NamespaceImport */) { handleNamespaceImport( direct, namedBindings.name, @@ -158806,10 +161093,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} addIndirectUser(getSourceFileLikeForImportDeclaration(direct)); } break; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: if (!direct.exportClause) { handleDirectImports(getContainingModuleSymbol(direct, checker)); - } else if (direct.exportClause.kind === 279 /* NamespaceExport */) { + } else if (direct.exportClause.kind === 280 /* NamespaceExport */) { addIndirectUser( getSourceFileLikeForImportDeclaration(direct), /*addTransitiveDependencies*/ @@ -158819,7 +161106,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} directImports.push(direct); } break; - case 204 /* ImportType */: + case 205 /* ImportType */: if (!isAvailableThroughGlobal && direct.isTypeOf && !direct.qualifier && isExported2(direct)) { addIndirectUser( direct.getSourceFile(), @@ -158860,7 +161147,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} directImports.push(importDeclaration); } else if (!isAvailableThroughGlobal) { const sourceFileLike = getSourceFileLikeForImportDeclaration(importDeclaration); - Debug.assert(sourceFileLike.kind === 311 /* SourceFile */ || sourceFileLike.kind === 266 /* ModuleDeclaration */); + Debug.assert(sourceFileLike.kind === 312 /* SourceFile */ || sourceFileLike.kind === 267 /* ModuleDeclaration */); if (isReExport || findNamespaceReExports(sourceFileLike, name, checker)) { addIndirectUser( sourceFileLike, @@ -158914,7 +161201,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } return { importSearches, singleReferences }; function handleImport(decl) { - if (decl.kind === 270 /* ImportEqualsDeclaration */) { + if (decl.kind === 271 /* ImportEqualsDeclaration */) { if (isExternalModuleImportEquals(decl)) { handleNamespaceImportLike(decl.name); } @@ -158924,7 +161211,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} handleNamespaceImportLike(decl); return; } - if (decl.kind === 204 /* ImportType */) { + if (decl.kind === 205 /* ImportType */) { if (decl.qualifier) { const firstIdentifier = getFirstIdentifier(decl.qualifier); if (firstIdentifier.escapedText === symbolName(exportSymbol)) { @@ -158938,7 +161225,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (decl.moduleSpecifier.kind !== 11 /* StringLiteral */) { return; } - if (decl.kind === 277 /* ExportDeclaration */) { + if (decl.kind === 278 /* ExportDeclaration */) { if (decl.exportClause && isNamedExports(decl.exportClause)) { searchForNamedImport(decl.exportClause); } @@ -158947,10 +161234,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const { name, namedBindings } = decl.importClause || { name: void 0, namedBindings: void 0 }; if (namedBindings) { switch (namedBindings.kind) { - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: handleNamespaceImportLike(namedBindings.name); break; - case 274 /* NamedImports */: + case 275 /* NamedImports */: if (exportKind === 0 /* Named */ || exportKind === 1 /* Default */) { searchForNamedImport(namedBindings); } @@ -158984,7 +161271,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} addSearch(name, checker.getSymbolAtLocation(name)); } } else { - const localSymbol = element.kind === 280 /* ExportSpecifier */ && element.propertyName ? checker.getExportSpecifierLocalTargetSymbol(element) : checker.getSymbolAtLocation(name); + const localSymbol = element.kind === 281 /* ExportSpecifier */ && element.propertyName ? checker.getExportSpecifierLocalTargetSymbol(element) : checker.getSymbolAtLocation(name); addSearch(name, localSymbol); } } @@ -159008,7 +161295,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const checker = program.getTypeChecker(); for (const referencingFile of sourceFiles) { const searchSourceFile = searchModuleSymbol.valueDeclaration; - if ((searchSourceFile == null ? void 0 : searchSourceFile.kind) === 311 /* SourceFile */) { + if ((searchSourceFile == null ? void 0 : searchSourceFile.kind) === 312 /* SourceFile */) { for (const ref of referencingFile.referencedFiles) { if (program.getSourceFileFromReference(referencingFile, ref) === searchSourceFile) { refs.push({ kind: "reference", referencingFile, ref }); @@ -159050,7 +161337,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return map2; } function forEachPossibleImportOrExportStatement(sourceFileLike, action) { - return forEach(sourceFileLike.kind === 311 /* SourceFile */ ? sourceFileLike.statements : sourceFileLike.body.statements, (statement) => ( + return forEach(sourceFileLike.kind === 312 /* SourceFile */ ? sourceFileLike.statements : sourceFileLike.body.statements, (statement) => ( // TODO: GH#18217 action(statement) || isAmbientModuleDeclaration(statement) && forEach(statement.body && statement.body.statements, action) )); @@ -159063,15 +161350,15 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } else { forEachPossibleImportOrExportStatement(sourceFile, (statement) => { switch (statement.kind) { - case 277 /* ExportDeclaration */: - case 271 /* ImportDeclaration */: { + case 278 /* ExportDeclaration */: + case 272 /* ImportDeclaration */: { const decl = statement; if (decl.moduleSpecifier && isStringLiteral(decl.moduleSpecifier)) { action(decl, decl.moduleSpecifier); } break; } - case 270 /* ImportEqualsDeclaration */: { + case 271 /* ImportEqualsDeclaration */: { const decl = statement; if (isExternalModuleImportEquals(decl)) { action(decl, decl.moduleReference.expression); @@ -159089,7 +161376,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const { parent: parent2 } = node; const grandparent = parent2.parent; if (symbol.exportSymbol) { - if (parent2.kind === 210 /* PropertyAccessExpression */) { + if (parent2.kind === 211 /* PropertyAccessExpression */) { return ((_a = symbol.declarations) == null ? void 0 : _a.some((d) => d === parent2)) && isBinaryExpression(grandparent) ? getSpecialPropertyExport( grandparent, /*useLhsSymbol*/ @@ -159206,15 +161493,15 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function isNodeImport(node) { const { parent: parent2 } = node; switch (parent2.kind) { - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return parent2.name === node && isExternalModuleImportEquals(parent2); - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: return !parent2.propertyName; - case 272 /* ImportClause */: - case 273 /* NamespaceImport */: + case 273 /* ImportClause */: + case 274 /* NamespaceImport */: Debug.assert(parent2.name === node); return true; - case 207 /* BindingElement */: + case 208 /* BindingElement */: return isInJSFile(node) && isVariableDeclarationInitializedToBareOrAccessedRequire(parent2.parent.parent); default: return false; @@ -159245,21 +161532,21 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return checker.getMergedSymbol(getSourceFileLikeForImportDeclaration(importer).symbol); } function getSourceFileLikeForImportDeclaration(node) { - if (node.kind === 212 /* CallExpression */) { + if (node.kind === 213 /* CallExpression */) { return node.getSourceFile(); } const { parent: parent2 } = node; - if (parent2.kind === 311 /* SourceFile */) { + if (parent2.kind === 312 /* SourceFile */) { return parent2; } - Debug.assert(parent2.kind === 267 /* ModuleBlock */); + Debug.assert(parent2.kind === 268 /* ModuleBlock */); return cast(parent2.parent, isAmbientModuleDeclaration); } function isAmbientModuleDeclaration(node) { - return node.kind === 266 /* ModuleDeclaration */ && node.name.kind === 11 /* StringLiteral */; + return node.kind === 267 /* ModuleDeclaration */ && node.name.kind === 11 /* StringLiteral */; } function isExternalModuleImportEquals(eq) { - return eq.moduleReference.kind === 282 /* ExternalModuleReference */ && eq.moduleReference.expression.kind === 11 /* StringLiteral */; + return eq.moduleReference.kind === 283 /* ExternalModuleReference */ && eq.moduleReference.expression.kind === 11 /* StringLiteral */; } var ExportKind2, ImportExport; var init_importTracker = __esm({ @@ -159333,28 +161620,28 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (!node) return void 0; switch (node.kind) { - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return !isVariableDeclarationList(node.parent) || node.parent.declarations.length !== 1 ? node : isVariableStatement(node.parent.parent) ? node.parent.parent : isForInOrOfStatement(node.parent.parent) ? getContextNode(node.parent.parent) : node.parent; - case 207 /* BindingElement */: + case 208 /* BindingElement */: return getContextNode(node.parent.parent); - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: return node.parent.parent.parent; - case 280 /* ExportSpecifier */: - case 273 /* NamespaceImport */: + case 281 /* ExportSpecifier */: + case 274 /* NamespaceImport */: return node.parent.parent; - case 272 /* ImportClause */: - case 279 /* NamespaceExport */: + case 273 /* ImportClause */: + case 280 /* NamespaceExport */: return node.parent; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return isExpressionStatement(node.parent) ? node.parent : node; - case 249 /* ForOfStatement */: - case 248 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 249 /* ForInStatement */: return { start: node.initializer, end: node.expression }; - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return isArrayLiteralOrObjectLiteralDestructuringPattern(node.parent) ? getContextNode( findAncestor( node.parent, @@ -159393,7 +161680,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const node = getTouchingPropertyName(sourceFile, position); let referenceEntries; const entries = getImplementationReferenceEntries(program, cancellationToken, sourceFiles, node, position); - if (node.parent.kind === 210 /* PropertyAccessExpression */ || node.parent.kind === 207 /* BindingElement */ || node.parent.kind === 211 /* ElementAccessExpression */ || node.kind === 108 /* SuperKeyword */) { + if (node.parent.kind === 211 /* PropertyAccessExpression */ || node.parent.kind === 208 /* BindingElement */ || node.parent.kind === 212 /* ElementAccessExpression */ || node.kind === 108 /* SuperKeyword */) { referenceEntries = entries && [...entries]; } else if (entries) { const queue = createQueue(entries); @@ -159414,11 +161701,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return map(referenceEntries, (entry) => toImplementationLocation(entry, checker)); } function getImplementationReferenceEntries(program, cancellationToken, sourceFiles, node, position) { - if (node.kind === 311 /* SourceFile */) { + if (node.kind === 312 /* SourceFile */) { return void 0; } const checker = program.getTypeChecker(); - if (node.parent.kind === 303 /* ShorthandPropertyAssignment */) { + if (node.parent.kind === 304 /* ShorthandPropertyAssignment */) { const result = []; Core.getReferenceEntriesForShorthandPropertyAssignment(node, checker, (node2) => result.push(nodeEntry(node2))); return result; @@ -159613,12 +161900,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const symbol = checker.getSymbolAtLocation(isDeclaration(node) && node.name ? node.name : node); if (symbol) { return getDefinitionKindAndDisplayParts(symbol, checker, node); - } else if (node.kind === 209 /* ObjectLiteralExpression */) { + } else if (node.kind === 210 /* ObjectLiteralExpression */) { return { kind: "interface" /* interfaceElement */, displayParts: [punctuationPart(21 /* OpenParenToken */), textPart("object literal"), punctuationPart(22 /* CloseParenToken */)] }; - } else if (node.kind === 230 /* ClassExpression */) { + } else if (node.kind === 231 /* ClassExpression */) { return { kind: "local class" /* localClassElement */, displayParts: [punctuationPart(21 /* OpenParenToken */), textPart("anonymous local class"), punctuationPart(22 /* CloseParenToken */)] @@ -159673,49 +161960,49 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return !!(source && ((_a = target.declarations) == null ? void 0 : _a.some((d) => d === source || d === commonjsSource))); } function declarationIsWriteAccess(decl) { - if (!!(decl.flags & 16777216 /* Ambient */)) + if (!!(decl.flags & 33554432 /* Ambient */)) return true; switch (decl.kind) { - case 225 /* BinaryExpression */: - case 207 /* BindingElement */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 226 /* BinaryExpression */: + case 208 /* BindingElement */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: case 90 /* DefaultKeyword */: - case 265 /* EnumDeclaration */: - case 305 /* EnumMember */: - case 280 /* ExportSpecifier */: - case 272 /* ImportClause */: - case 270 /* ImportEqualsDeclaration */: - case 275 /* ImportSpecifier */: - case 263 /* InterfaceDeclaration */: - case 344 /* JSDocCallbackTag */: - case 352 /* JSDocTypedefTag */: - case 290 /* JsxAttribute */: - case 266 /* ModuleDeclaration */: - case 269 /* NamespaceExportDeclaration */: - case 273 /* NamespaceImport */: - case 279 /* NamespaceExport */: - case 168 /* Parameter */: - case 303 /* ShorthandPropertyAssignment */: - case 264 /* TypeAliasDeclaration */: - case 167 /* TypeParameter */: + case 266 /* EnumDeclaration */: + case 306 /* EnumMember */: + case 281 /* ExportSpecifier */: + case 273 /* ImportClause */: + case 271 /* ImportEqualsDeclaration */: + case 276 /* ImportSpecifier */: + case 264 /* InterfaceDeclaration */: + case 345 /* JSDocCallbackTag */: + case 353 /* JSDocTypedefTag */: + case 291 /* JsxAttribute */: + case 267 /* ModuleDeclaration */: + case 270 /* NamespaceExportDeclaration */: + case 274 /* NamespaceImport */: + case 280 /* NamespaceExport */: + case 169 /* Parameter */: + case 304 /* ShorthandPropertyAssignment */: + case 265 /* TypeAliasDeclaration */: + case 168 /* TypeParameter */: return true; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return !isArrayLiteralOrObjectLiteralDestructuringPattern(decl.parent); - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 175 /* Constructor */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return !!decl.body; - case 259 /* VariableDeclaration */: - case 171 /* PropertyDeclaration */: + case 260 /* VariableDeclaration */: + case 172 /* PropertyDeclaration */: return !!decl.initializer || isCatchClause(decl.parent); - case 172 /* MethodSignature */: - case 170 /* PropertySignature */: - case 354 /* JSDocPropertyTag */: - case 347 /* JSDocParameterTag */: + case 173 /* MethodSignature */: + case 171 /* PropertySignature */: + case 355 /* JSDocPropertyTag */: + case 348 /* JSDocParameterTag */: return false; default: return Debug.failBadSyntaxKind(decl); @@ -159968,9 +162255,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (symbol.declarations) { for (const decl of symbol.declarations) { switch (decl.kind) { - case 311 /* SourceFile */: + case 312 /* SourceFile */: break; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: if (sourceFilesSet.has(decl.getSourceFile().fileName)) { references.push(nodeEntry(decl.name)); } @@ -160094,7 +162381,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function getSpecialSearchKind(node) { switch (node.kind) { - case 175 /* Constructor */: + case 176 /* Constructor */: case 137 /* ConstructorKeyword */: return 1 /* Constructor */; case 80 /* Identifier */: @@ -160303,7 +162590,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function getSymbolScope(symbol) { const { declarations, flags, parent: parent2, valueDeclaration } = symbol; - if (valueDeclaration && (valueDeclaration.kind === 217 /* FunctionExpression */ || valueDeclaration.kind === 230 /* ClassExpression */)) { + if (valueDeclaration && (valueDeclaration.kind === 218 /* FunctionExpression */ || valueDeclaration.kind === 231 /* ClassExpression */)) { return valueDeclaration; } if (!declarations) { @@ -160312,7 +162599,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (flags & (4 /* Property */ | 8192 /* Method */)) { const privateDeclaration = find(declarations, (d) => hasEffectiveModifier(d, 8 /* Private */) || isPrivateIdentifierClassElementDeclaration(d)); if (privateDeclaration) { - return getAncestor(privateDeclaration, 262 /* ClassDeclaration */); + return getAncestor(privateDeclaration, 263 /* ClassDeclaration */); } return void 0; } @@ -160329,7 +162616,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (scope && scope !== container) { return void 0; } - if (!container || container.kind === 311 /* SourceFile */ && !isExternalOrCommonJsModule(container)) { + if (!container || container.kind === 312 /* SourceFile */ && !isExternalOrCommonJsModule(container)) { return void 0; } scope = container; @@ -160407,7 +162694,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } Core2.someSignatureUsage = someSignatureUsage; function getPossibleSymbolReferenceNodes(sourceFile, symbolName2, container = sourceFile) { - return getPossibleSymbolReferencePositions(sourceFile, symbolName2, container).map((pos) => getTouchingPropertyName(sourceFile, pos)); + return mapDefined(getPossibleSymbolReferencePositions(sourceFile, symbolName2, container), (pos) => { + const referenceLocation = getTouchingPropertyName(sourceFile, pos); + return referenceLocation === sourceFile ? void 0 : referenceLocation; + }); } function getPossibleSymbolReferencePositions(sourceFile, symbolName2, container = sourceFile) { const positions = []; @@ -160676,14 +162966,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (constructorSymbol && constructorSymbol.declarations) { for (const decl of constructorSymbol.declarations) { const ctrKeyword = findChildOfKind(decl, 137 /* ConstructorKeyword */, sourceFile); - Debug.assert(decl.kind === 175 /* Constructor */ && !!ctrKeyword); + Debug.assert(decl.kind === 176 /* Constructor */ && !!ctrKeyword); addNode(ctrKeyword); } } if (classSymbol.exports) { classSymbol.exports.forEach((member) => { const decl = member.valueDeclaration; - if (decl && decl.kind === 173 /* MethodDeclaration */) { + if (decl && decl.kind === 174 /* MethodDeclaration */) { const body = decl.body; if (body) { forEachDescendantOfKind(body, 110 /* ThisKeyword */, (thisKeyword) => { @@ -160705,7 +162995,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return; } for (const decl of constructor.declarations) { - Debug.assert(decl.kind === 175 /* Constructor */); + Debug.assert(decl.kind === 176 /* Constructor */); const body = decl.body; if (body) { forEachDescendantOfKind(body, 108 /* SuperKeyword */, (node) => { @@ -160740,12 +163030,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (refNode.kind !== 80 /* Identifier */) { return; } - if (refNode.parent.kind === 303 /* ShorthandPropertyAssignment */) { + if (refNode.parent.kind === 304 /* ShorthandPropertyAssignment */) { getReferenceEntriesForShorthandPropertyAssignment(refNode, state.checker, addReference2); } - const containingClass = getContainingClassIfInHeritageClause(refNode); - if (containingClass) { - addReference2(containingClass); + const containingNode = getContainingNodeIfInHeritageClause(refNode); + if (containingNode) { + addReference2(containingNode); return; } const typeNode = findAncestor(refNode, (a) => !isQualifiedName(a.parent) && !isTypeNode(a.parent) && !isTypeElement(a.parent)); @@ -160755,7 +163045,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} addIfImplementation(typeHavingNode.initializer); } else if (isFunctionLike(typeHavingNode) && typeHavingNode.body) { const body = typeHavingNode.body; - if (body.kind === 240 /* Block */) { + if (body.kind === 241 /* Block */) { forEachReturnStatement(body, (returnStatement) => { if (returnStatement.expression) addIfImplementation(returnStatement.expression); @@ -160772,18 +163062,18 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} addReference2(e); } } - function getContainingClassIfInHeritageClause(node) { - return isIdentifier(node) || isPropertyAccessExpression(node) ? getContainingClassIfInHeritageClause(node.parent) : isExpressionWithTypeArguments(node) ? tryCast(node.parent.parent, isClassLike) : void 0; + function getContainingNodeIfInHeritageClause(node) { + return isIdentifier(node) || isPropertyAccessExpression(node) ? getContainingNodeIfInHeritageClause(node.parent) : isExpressionWithTypeArguments(node) ? tryCast(node.parent.parent, or(isClassLike, isInterfaceDeclaration)) : void 0; } function isImplementationExpression(node) { switch (node.kind) { - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return isImplementationExpression(node.expression); - case 218 /* ArrowFunction */: - case 217 /* FunctionExpression */: - case 209 /* ObjectLiteralExpression */: - case 230 /* ClassExpression */: - case 208 /* ArrayLiteralExpression */: + case 219 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 210 /* ObjectLiteralExpression */: + case 231 /* ClassExpression */: + case 209 /* ArrayLiteralExpression */: return true; default: return false; @@ -160817,13 +163107,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } let staticFlag = 32 /* Static */; switch (searchSpaceNode.kind) { - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: staticFlag &= getSyntacticModifierFlags(searchSpaceNode); searchSpaceNode = searchSpaceNode.parent; break; @@ -160845,7 +163135,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return [{ definition: { type: 0 /* Symbol */, symbol: searchSpaceNode.symbol }, references }]; } function isParameterName(node) { - return node.kind === 80 /* Identifier */ && node.parent.kind === 168 /* Parameter */ && node.parent.name === node; + return node.kind === 80 /* Identifier */ && node.parent.kind === 169 /* Parameter */ && node.parent.name === node; } function getReferencesForThisKeyword(thisOrSuperKeyword, sourceFiles, cancellationToken) { let searchSpaceNode = getThisContainer( @@ -160857,32 +163147,32 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} ); let staticFlag = 32 /* Static */; switch (searchSpaceNode.kind) { - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: if (isObjectLiteralMethod(searchSpaceNode)) { staticFlag &= getSyntacticModifierFlags(searchSpaceNode); searchSpaceNode = searchSpaceNode.parent; break; } - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: staticFlag &= getSyntacticModifierFlags(searchSpaceNode); searchSpaceNode = searchSpaceNode.parent; break; - case 311 /* SourceFile */: + case 312 /* SourceFile */: if (isExternalModule(searchSpaceNode) || isParameterName(thisOrSuperKeyword)) { return void 0; } - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: break; default: return void 0; } - const references = flatMap(searchSpaceNode.kind === 311 /* SourceFile */ ? sourceFiles : [searchSpaceNode.getSourceFile()], (sourceFile) => { + const references = flatMap(searchSpaceNode.kind === 312 /* SourceFile */ ? sourceFiles : [searchSpaceNode.getSourceFile()], (sourceFile) => { cancellationToken.throwIfCancellationRequested(); return getPossibleSymbolReferenceNodes(sourceFile, "this", isSourceFile(searchSpaceNode) ? sourceFile : searchSpaceNode).filter((node) => { if (!isThis(node)) { @@ -160898,18 +163188,18 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (!canHaveSymbol(container)) return false; switch (searchSpaceNode.kind) { - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: return searchSpaceNode.symbol === container.symbol; - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: return isObjectLiteralMethod(searchSpaceNode) && searchSpaceNode.symbol === container.symbol; - case 230 /* ClassExpression */: - case 262 /* ClassDeclaration */: - case 209 /* ObjectLiteralExpression */: + case 231 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 210 /* ObjectLiteralExpression */: return container.parent && canHaveSymbol(container.parent) && searchSpaceNode.symbol === container.parent.symbol && isStatic(container) === !!staticFlag; - case 311 /* SourceFile */: - return container.kind === 311 /* SourceFile */ && !isExternalModule(container) && !isParameterName(node); + case 312 /* SourceFile */: + return container.kind === 312 /* SourceFile */ && !isExternalModule(container) && !isParameterName(node); } }); }).map((n) => nodeEntry(n)); @@ -161033,7 +163323,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} Debug.assert(paramProps.length === 2 && !!(paramProps[0].flags & 1 /* FunctionScopedVariable */) && !!(paramProps[1].flags & 4 /* Property */)); return fromRoot(symbol.flags & 1 /* FunctionScopedVariable */ ? paramProps[1] : paramProps[0]); } - const exportSpecifier = getDeclarationOfKind(symbol, 280 /* ExportSpecifier */); + const exportSpecifier = getDeclarationOfKind(symbol, 281 /* ExportSpecifier */); if (!isForRenamePopulateSearchSymbolSet || exportSpecifier && !exportSpecifier.propertyName) { const localSymbol = exportSpecifier && checker.getExportSpecifierLocalTargetSymbol(exportSpecifier); if (localSymbol) { @@ -161074,7 +163364,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} ) || (rootSymbol.parent && rootSymbol.parent.flags & (32 /* Class */ | 64 /* Interface */) && allowBaseTypes(rootSymbol) ? getPropertySymbolsFromBaseTypes(rootSymbol.parent, rootSymbol.name, checker, (base) => cbSymbol(sym, rootSymbol, base, kind)) : void 0)); } function getPropertySymbolOfObjectBindingPatternWithoutPropertyName(symbol2, checker2) { - const bindingElement = getDeclarationOfKind(symbol2, 207 /* BindingElement */); + const bindingElement = getDeclarationOfKind(symbol2, 208 /* BindingElement */); if (bindingElement && isObjectBindingElementWithoutPropertyName(bindingElement)) { return getPropertySymbolFromBindingElement(checker2, bindingElement); } @@ -161140,7 +163430,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } Core2.getIntersectingMeaningFromDeclarations = getIntersectingMeaningFromDeclarations; function isImplementation(node) { - return !!(node.flags & 16777216 /* Ambient */) ? !(isInterfaceDeclaration(node) || isTypeAliasDeclaration(node)) : isVariableLike(node) ? hasInitializer(node) : isFunctionLikeDeclaration(node) ? !!node.body : isClassLike(node) || isModuleOrEnumDeclaration(node); + return !!(node.flags & 33554432 /* Ambient */) ? !(isInterfaceDeclaration(node) || isTypeAliasDeclaration(node)) : isVariableLike(node) ? hasInitializer(node) : isFunctionLikeDeclaration(node) ? !!node.body : isClassLike(node) || isModuleOrEnumDeclaration(node); } function getReferenceEntriesForShorthandPropertyAssignment(node, checker, addReference2) { const refSymbol = checker.getSymbolAtLocation(node); @@ -161199,6 +163489,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} getTextSpanOfEntry: () => getTextSpanOfEntry, isContextWithStartAndEndNode: () => isContextWithStartAndEndNode, isDeclarationOfSymbol: () => isDeclarationOfSymbol, + isWriteAccessForReference: () => isWriteAccessForReference, nodeEntry: () => nodeEntry, toContextSpan: () => toContextSpan, toHighlightSpan: () => toHighlightSpan, @@ -161227,7 +163518,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } const { parent: parent2 } = node; const typeChecker = program.getTypeChecker(); - if (node.kind === 163 /* OverrideKeyword */ || isIdentifier(node) && isJSDocOverrideTag(parent2) && parent2.tagName === node) { + if (node.kind === 164 /* OverrideKeyword */ || isIdentifier(node) && isJSDocOverrideTag(parent2) && parent2.tagName === node) { return getDefinitionFromOverriddenMember(typeChecker, node) || emptyArray; } if (isJumpStatementTarget(node)) { @@ -161318,7 +163609,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return node.kind === 108 /* SuperKeyword */ ? [sigInfo, ...defs] : [...defs, sigInfo]; } } - if (node.parent.kind === 303 /* ShorthandPropertyAssignment */) { + if (node.parent.kind === 304 /* ShorthandPropertyAssignment */) { const shorthandSymbol = typeChecker.getShorthandAssignmentValueSymbol(symbol.valueDeclaration); const definitions = (shorthandSymbol == null ? void 0 : shorthandSymbol.declarations) ? shorthandSymbol.declarations.map((decl) => createDefinitionInfo( decl, @@ -161419,6 +163710,55 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } return void 0; } + function shouldUnwrapFirstTypeArgumentTypeDefinitionFromTypeReference(typeChecker, type) { + const referenceName = type.symbol.name; + if (!typesWithUnwrappedTypeArguments.has(referenceName)) { + return false; + } + const globalType = typeChecker.resolveName( + referenceName, + /*location*/ + void 0, + 788968 /* Type */, + /*excludeGlobals*/ + false + ); + return !!globalType && globalType === type.target.symbol; + } + function shouldUnwrapFirstTypeArgumentTypeDefinitionFromAlias(typeChecker, type) { + if (!type.aliasSymbol) { + return false; + } + const referenceName = type.aliasSymbol.name; + if (!typesWithUnwrappedTypeArguments.has(referenceName)) { + return false; + } + const globalType = typeChecker.resolveName( + referenceName, + /*location*/ + void 0, + 788968 /* Type */, + /*excludeGlobals*/ + false + ); + return !!globalType && globalType === type.aliasSymbol; + } + function getFirstTypeArgumentDefinitions(typeChecker, type, node, failedAliasResolution) { + var _a, _b; + if (!!(getObjectFlags(type) & 4 /* Reference */) && shouldUnwrapFirstTypeArgumentTypeDefinitionFromTypeReference(typeChecker, type)) { + return definitionFromType(typeChecker.getTypeArguments(type)[0], typeChecker, node, failedAliasResolution); + } + if (shouldUnwrapFirstTypeArgumentTypeDefinitionFromAlias(typeChecker, type) && type.aliasTypeArguments) { + return definitionFromType(type.aliasTypeArguments[0], typeChecker, node, failedAliasResolution); + } + if (getObjectFlags(type) & 32 /* Mapped */ && type.target && shouldUnwrapFirstTypeArgumentTypeDefinitionFromAlias(typeChecker, type.target)) { + const declaration = (_b = (_a = type.aliasSymbol) == null ? void 0 : _a.declarations) == null ? void 0 : _b[0]; + if (declaration && isTypeAliasDeclaration(declaration) && isTypeReferenceNode(declaration.type) && declaration.type.typeArguments) { + return definitionFromType(typeChecker.getTypeAtLocation(declaration.type.typeArguments[0]), typeChecker, node, failedAliasResolution); + } + } + return []; + } function getTypeDefinitionAtPosition(typeChecker, sourceFile, position) { const node = getTouchingPropertyName(sourceFile, position); if (node === sourceFile) { @@ -161444,8 +163784,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const typeAtLocation = typeChecker.getTypeOfSymbolAtLocation(symbol, node); const returnType = tryGetReturnTypeOfFunction(symbol, typeAtLocation, typeChecker); const fromReturnType = returnType && definitionFromType(returnType, typeChecker, node, failedAliasResolution); - const typeDefinitions = fromReturnType && fromReturnType.length !== 0 ? fromReturnType : definitionFromType(typeAtLocation, typeChecker, node, failedAliasResolution); - return typeDefinitions.length ? typeDefinitions : !(symbol.flags & 111551 /* Value */) && symbol.flags & 788968 /* Type */ ? getDefinitionFromSymbol(typeChecker, skipAlias(symbol, typeChecker), node, failedAliasResolution) : void 0; + const [resolvedType, typeDefinitions] = fromReturnType && fromReturnType.length !== 0 ? [returnType, fromReturnType] : [typeAtLocation, definitionFromType(typeAtLocation, typeChecker, node, failedAliasResolution)]; + return typeDefinitions.length ? [...getFirstTypeArgumentDefinitions(typeChecker, resolvedType, node, failedAliasResolution), ...typeDefinitions] : !(symbol.flags & 111551 /* Value */) && symbol.flags & 788968 /* Type */ ? getDefinitionFromSymbol(typeChecker, skipAlias(symbol, typeChecker), node, failedAliasResolution) : void 0; } function definitionFromType(type, checker, node, failedAliasResolution) { return flatMap(type.isUnion() && !(type.flags & 32 /* Enum */) ? type.types : [type], (t) => t.symbol && getDefinitionFromSymbol(checker, t.symbol, node, failedAliasResolution)); @@ -161495,7 +163835,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (node.parent === declaration) { return true; } - if (declaration.kind === 273 /* NamespaceImport */) { + if (declaration.kind === 274 /* NamespaceImport */) { return false; } return true; @@ -161585,7 +163925,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} ts_FindAllReferences_exports.getContextNode(declaration) ), isLocal: !isDefinitionVisible(checker, declaration), - isAmbient: !!(declaration.flags & 16777216 /* Ambient */), + isAmbient: !!(declaration.flags & 33554432 /* Ambient */), unverified, failedAliasResolution }; @@ -161598,19 +163938,19 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (hasInitializer(declaration.parent) && declaration.parent.initializer === declaration) return isDefinitionVisible(checker, declaration.parent); switch (declaration.kind) { - case 171 /* PropertyDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 173 /* MethodDeclaration */: + case 172 /* PropertyDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: if (hasEffectiveModifier(declaration, 8 /* Private */)) return false; - case 175 /* Constructor */: - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: - case 209 /* ObjectLiteralExpression */: - case 230 /* ClassExpression */: - case 218 /* ArrowFunction */: - case 217 /* FunctionExpression */: + case 176 /* Constructor */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 210 /* ObjectLiteralExpression */: + case 231 /* ClassExpression */: + case 219 /* ArrowFunction */: + case 218 /* FunctionExpression */: return isDefinitionVisible(checker, declaration.parent); default: return false; @@ -161654,18 +163994,40 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function isConstructorLike(node) { switch (node.kind) { - case 175 /* Constructor */: - case 184 /* ConstructorType */: - case 179 /* ConstructSignature */: + case 176 /* Constructor */: + case 185 /* ConstructorType */: + case 180 /* ConstructSignature */: return true; default: return false; } } + var typesWithUnwrappedTypeArguments; var init_goToDefinition = __esm({ "src/services/goToDefinition.ts"() { "use strict"; init_ts4(); + typesWithUnwrappedTypeArguments = /* @__PURE__ */ new Set([ + "Array", + "ArrayLike", + "ReadonlyArray", + "Promise", + "PromiseLike", + "Iterable", + "IterableIterator", + "AsyncIterable", + "Set", + "WeakSet", + "ReadonlySet", + "Map", + "WeakMap", + "ReadonlyMap", + "Partial", + "Required", + "Readonly", + "Pick", + "Omit" + ]); } }); @@ -161693,6 +164055,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function shouldShowLiteralParameterNameHintsOnly(preferences) { return preferences.includeInlayParameterNameHints === "literals"; } + function shouldUseInteractiveInlayHints(preferences) { + return preferences.interactiveInlayHints === true; + } function provideInlayHints(context) { const { file, program, span, cancellationToken, preferences } = context; const sourceFileText = file.text; @@ -161706,14 +164071,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return; } switch (node.kind) { - case 266 /* ModuleDeclaration */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 261 /* FunctionDeclaration */: - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: - case 173 /* MethodDeclaration */: - case 218 /* ArrowFunction */: + case 267 /* ModuleDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 262 /* FunctionDeclaration */: + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: + case 174 /* MethodDeclaration */: + case 219 /* ArrowFunction */: cancellationToken.throwIfCancellationRequested(); } if (!textSpanIntersectsWith(span, node.pos, node.getFullWidth())) { @@ -161743,17 +164108,26 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function isSignatureSupportingReturnAnnotation(node) { return isArrowFunction(node) || isFunctionExpression(node) || isFunctionDeclaration(node) || isMethodDeclaration(node) || isGetAccessorDeclaration(node); } - function addParameterHints(text, position, isFirstVariadicArgument) { + function addParameterHints(text, parameter, position, isFirstVariadicArgument) { + let hintText = `${isFirstVariadicArgument ? "..." : ""}${text}`; + let displayParts; + if (shouldUseInteractiveInlayHints(preferences)) { + displayParts = [getNodeDisplayPart(hintText, parameter), { text: ":" }]; + hintText = ""; + } else { + hintText += ":"; + } result.push({ - text: `${isFirstVariadicArgument ? "..." : ""}${truncation(text, maxHintsLength)}:`, + text: hintText, position, kind: "Parameter" /* Parameter */, - whitespaceAfter: true + whitespaceAfter: true, + displayParts }); } function addTypeHints(text, position) { result.push({ - text: `: ${truncation(text, maxHintsLength)}`, + text: `: ${text.length > maxTypeHintLength ? text.substr(0, maxTypeHintLength - "...".length) + "..." : text}`, position, kind: "Type" /* Type */, whitespaceBefore: true @@ -161761,7 +164135,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function addEnumMemberValueHints(text, position) { result.push({ - text: `= ${truncation(text, maxHintsLength)}`, + text: `= ${text}`, position, kind: "Enum" /* Enum */, whitespaceBefore: true @@ -161810,15 +164184,31 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (!signature || !candidates.length) { return; } - for (let i = 0; i < args.length; ++i) { - const originalArg = args[i]; + let signatureParamPos = 0; + for (const originalArg of args) { const arg = skipParentheses(originalArg); if (shouldShowLiteralParameterNameHintsOnly(preferences) && !isHintableLiteral(arg)) { continue; } - const identifierNameInfo = checker.getParameterIdentifierNameAtPosition(signature, i); - if (identifierNameInfo) { - const [parameterName, isFirstVariadicArgument] = identifierNameInfo; + let spreadArgs = 0; + if (isSpreadElement(arg)) { + const spreadType = checker.getTypeAtLocation(arg.expression); + if (checker.isTupleType(spreadType)) { + const { elementFlags, fixedLength } = spreadType.target; + if (fixedLength === 0) { + continue; + } + const firstOptionalIndex = findIndex(elementFlags, (f) => !(f & 1 /* Required */)); + const requiredArgs = firstOptionalIndex < 0 ? fixedLength : firstOptionalIndex; + if (requiredArgs > 0) { + spreadArgs = firstOptionalIndex < 0 ? fixedLength : firstOptionalIndex; + } + } + } + const identifierInfo = checker.getParameterIdentifierInfoAtPosition(signature, signatureParamPos); + signatureParamPos = signatureParamPos + (spreadArgs || 1); + if (identifierInfo) { + const { parameter, parameterName, isRestParameter: isFirstVariadicArgument } = identifierInfo; const isParameterNameNotSameAsArgument = preferences.includeInlayParameterNameHintsWhenArgumentMatchesName || !identifierOrAccessExpressionPostfixMatchesParameterName(arg, parameterName); if (!isParameterNameNotSameAsArgument && !isFirstVariadicArgument) { continue; @@ -161827,7 +164217,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (leadingCommentsContainsParameterName(arg, name)) { continue; } - addParameterHints(name, originalArg.getStart(), isFirstVariadicArgument); + addParameterHints(name, parameter, originalArg.getStart(), isFirstVariadicArgument); } } } @@ -161853,7 +164243,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function isHintableLiteral(node) { switch (node.kind) { - case 223 /* PrefixUnaryExpression */: { + case 224 /* PrefixUnaryExpression */: { const operand = node.operand; return isLiteralExpression(operand) || isIdentifier(operand) && isInfinityOrNaNString(operand.escapedText); } @@ -161861,7 +164251,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} case 97 /* FalseKeyword */: case 106 /* NullKeyword */: case 15 /* NoSubstitutionTemplateLiteral */: - case 227 /* TemplateExpression */: + case 228 /* TemplateExpression */: return true; case 80 /* Identifier */: { const name = node.escapedText; @@ -161933,12 +164323,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } return printTypeInSingleLine(signatureParamType); } - function truncation(text, maxLength2) { - if (text.length > maxLength2) { - return text.substr(0, maxLength2 - "...".length) + "..."; - } - return text; - } function printTypeInSingleLine(type) { const flags = 70221824 /* IgnoreErrors */ | 1048576 /* AllowUniqueESSymbolType */ | 16384 /* UseAliasDefinedOutsideCurrentScope */; const printer = createPrinterWithRemoveComments(); @@ -161969,13 +164353,21 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } return true; } + function getNodeDisplayPart(text, node) { + const sourceFile = node.getSourceFile(); + return { + text, + span: createTextSpanFromNode(node, sourceFile), + file: sourceFile.fileName + }; + } } - var maxHintsLength, leadingParameterNameCommentRegexFactory; + var maxTypeHintLength, leadingParameterNameCommentRegexFactory; var init_inlayHints = __esm({ "src/services/inlayHints.ts"() { "use strict"; init_ts4(); - maxHintsLength = 30; + maxTypeHintLength = 30; leadingParameterNameCommentRegexFactory = (name) => { return new RegExp(`^\\s?/\\*\\*?\\s?${name}\\s?\\*\\/\\s?$`); }; @@ -161999,8 +164391,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const parts = []; forEachUnique(declarations, (declaration) => { for (const jsdoc of getCommentHavingNodes(declaration)) { - const inheritDoc = isJSDoc(jsdoc) && jsdoc.tags && find(jsdoc.tags, (t) => t.kind === 333 /* JSDocTag */ && (t.tagName.escapedText === "inheritDoc" || t.tagName.escapedText === "inheritdoc")); - if (jsdoc.comment === void 0 && !inheritDoc || isJSDoc(jsdoc) && declaration.kind !== 352 /* JSDocTypedefTag */ && declaration.kind !== 344 /* JSDocCallbackTag */ && jsdoc.tags && jsdoc.tags.some((t) => t.kind === 352 /* JSDocTypedefTag */ || t.kind === 344 /* JSDocCallbackTag */) && !jsdoc.tags.some((t) => t.kind === 347 /* JSDocParameterTag */ || t.kind === 348 /* JSDocReturnTag */)) { + const inheritDoc = isJSDoc(jsdoc) && jsdoc.tags && find(jsdoc.tags, (t) => t.kind === 334 /* JSDocTag */ && (t.tagName.escapedText === "inheritDoc" || t.tagName.escapedText === "inheritdoc")); + if (jsdoc.comment === void 0 && !inheritDoc || isJSDoc(jsdoc) && declaration.kind !== 353 /* JSDocTypedefTag */ && declaration.kind !== 345 /* JSDocCallbackTag */ && jsdoc.tags && jsdoc.tags.some((t) => t.kind === 353 /* JSDocTypedefTag */ || t.kind === 345 /* JSDocCallbackTag */) && !jsdoc.tags.some((t) => t.kind === 348 /* JSDocParameterTag */ || t.kind === 349 /* JSDocReturnTag */)) { continue; } let newparts = jsdoc.comment ? getDisplayPartsFromComment(jsdoc.comment, checker) : []; @@ -162019,11 +164411,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function getCommentHavingNodes(declaration) { switch (declaration.kind) { - case 347 /* JSDocParameterTag */: - case 354 /* JSDocPropertyTag */: + case 348 /* JSDocParameterTag */: + case 355 /* JSDocPropertyTag */: return [declaration]; - case 344 /* JSDocCallbackTag */: - case 352 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: + case 353 /* JSDocTypedefTag */: return [declaration, declaration.parent]; default: return getJSDocCommentsAndTags(declaration); @@ -162033,7 +164425,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const infos = []; forEachUnique(declarations, (declaration) => { const tags = getJSDocTags(declaration); - if (tags.some((t) => t.kind === 352 /* JSDocTypedefTag */ || t.kind === 344 /* JSDocCallbackTag */) && !tags.some((t) => t.kind === 347 /* JSDocParameterTag */ || t.kind === 348 /* JSDocReturnTag */)) { + if (tags.some((t) => t.kind === 353 /* JSDocTypedefTag */ || t.kind === 345 /* JSDocCallbackTag */) && !tags.some((t) => t.kind === 348 /* JSDocParameterTag */ || t.kind === 349 /* JSDocReturnTag */)) { return; } for (const tag of tags) { @@ -162048,21 +164440,21 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } return flatMap( comment, - (node) => node.kind === 327 /* JSDocText */ ? [textPart(node.text)] : buildLinkParts(node, checker) + (node) => node.kind === 328 /* JSDocText */ ? [textPart(node.text)] : buildLinkParts(node, checker) ); } function getCommentDisplayParts(tag, checker) { const { comment, kind } = tag; const namePart = getTagNameDisplayPart(kind); switch (kind) { - case 355 /* JSDocThrowsTag */: + case 356 /* JSDocThrowsTag */: const typeExpression = tag.typeExpression; return typeExpression ? withNode(typeExpression) : comment === void 0 ? void 0 : getDisplayPartsFromComment(comment, checker); - case 335 /* JSDocImplementsTag */: + case 336 /* JSDocImplementsTag */: return withNode(tag.class); - case 334 /* JSDocAugmentsTag */: + case 335 /* JSDocAugmentsTag */: return withNode(tag.class); - case 351 /* JSDocTemplateTag */: + case 352 /* JSDocTemplateTag */: const templateTag = tag; const displayParts = []; if (templateTag.constraint) { @@ -162084,14 +164476,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} displayParts.push(...[spacePart(), ...getDisplayPartsFromComment(comment, checker)]); } return displayParts; - case 350 /* JSDocTypeTag */: - case 356 /* JSDocSatisfiesTag */: + case 351 /* JSDocTypeTag */: + case 357 /* JSDocSatisfiesTag */: return withNode(tag.typeExpression); - case 352 /* JSDocTypedefTag */: - case 344 /* JSDocCallbackTag */: - case 354 /* JSDocPropertyTag */: - case 347 /* JSDocParameterTag */: - case 353 /* JSDocSeeTag */: + case 353 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: + case 355 /* JSDocPropertyTag */: + case 348 /* JSDocParameterTag */: + case 354 /* JSDocSeeTag */: const { name } = tag; return name ? withNode(name) : comment === void 0 ? void 0 : getDisplayPartsFromComment(comment, checker); default: @@ -162114,14 +164506,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function getTagNameDisplayPart(kind) { switch (kind) { - case 347 /* JSDocParameterTag */: + case 348 /* JSDocParameterTag */: return parameterNamePart; - case 354 /* JSDocPropertyTag */: + case 355 /* JSDocPropertyTag */: return propertyNamePart; - case 351 /* JSDocTemplateTag */: + case 352 /* JSDocTemplateTag */: return typeParameterNamePart; - case 352 /* JSDocTypedefTag */: - case 344 /* JSDocCallbackTag */: + case 353 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: return typeAliasNamePart; default: return textPart; @@ -162214,7 +164606,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const tags = (parameters ? parameterDocComments(parameters || [], isJavaScriptFile, indentationStr, newLine) : "") + (hasReturn2 ? returnsDocComment(indentationStr, newLine) : ""); const openComment = "/**"; const closeComment = " */"; - const hasTag = (commentOwnerJsDoc || []).some((jsDoc) => !!jsDoc.tags); + const hasTag = length(getJSDocTags(commentOwner)) > 0; if (tags && !hasTag) { const preamble = openComment + newLine + indentationStr + " * "; const endLine = tokenStart === position ? newLine + indentationStr : ""; @@ -162246,46 +164638,46 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function getCommentOwnerInfoWorker(commentOwner, options) { switch (commentOwner.kind) { - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 173 /* MethodDeclaration */: - case 175 /* Constructor */: - case 172 /* MethodSignature */: - case 218 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: + case 173 /* MethodSignature */: + case 219 /* ArrowFunction */: const host = commentOwner; return { commentOwner, parameters: host.parameters, hasReturn: hasReturn(host, options) }; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return getCommentOwnerInfoWorker(commentOwner.initializer, options); - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: - case 305 /* EnumMember */: - case 264 /* TypeAliasDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + case 306 /* EnumMember */: + case 265 /* TypeAliasDeclaration */: return { commentOwner }; - case 170 /* PropertySignature */: { + case 171 /* PropertySignature */: { const host2 = commentOwner; return host2.type && isFunctionTypeNode(host2.type) ? { commentOwner, parameters: host2.type.parameters, hasReturn: hasReturn(host2.type, options) } : { commentOwner }; } - case 242 /* VariableStatement */: { + case 243 /* VariableStatement */: { const varStatement = commentOwner; const varDeclarations = varStatement.declarationList.declarations; const host2 = varDeclarations.length === 1 && varDeclarations[0].initializer ? getRightHandSideOfAssignment(varDeclarations[0].initializer) : void 0; return host2 ? { commentOwner, parameters: host2.parameters, hasReturn: hasReturn(host2, options) } : { commentOwner }; } - case 311 /* SourceFile */: + case 312 /* SourceFile */: return "quit"; - case 266 /* ModuleDeclaration */: - return commentOwner.parent.kind === 266 /* ModuleDeclaration */ ? void 0 : { commentOwner }; - case 243 /* ExpressionStatement */: + case 267 /* ModuleDeclaration */: + return commentOwner.parent.kind === 267 /* ModuleDeclaration */ ? void 0 : { commentOwner }; + case 244 /* ExpressionStatement */: return getCommentOwnerInfoWorker(commentOwner.expression, options); - case 225 /* BinaryExpression */: { + case 226 /* BinaryExpression */: { const be = commentOwner; if (getAssignmentDeclarationKind(be) === 0 /* None */) { return "quit"; } return isFunctionLike(be.right) ? { commentOwner, parameters: be.right.parameters, hasReturn: hasReturn(be.right, options) } : { commentOwner }; } - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: const init = commentOwner.initializer; if (init && (isFunctionExpression(init) || isArrowFunction(init))) { return { commentOwner, parameters: init.parameters, hasReturn: hasReturn(init, options) }; @@ -162296,14 +164688,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return !!(options == null ? void 0 : options.generateReturnInDocTemplate) && (isFunctionTypeNode(node) || isArrowFunction(node) && isExpression(node.body) || isFunctionLikeDeclaration(node) && node.body && isBlock(node.body) && !!forEachReturnStatement(node.body, (n) => n)); } function getRightHandSideOfAssignment(rightHandSide) { - while (rightHandSide.kind === 216 /* ParenthesizedExpression */) { + while (rightHandSide.kind === 217 /* ParenthesizedExpression */) { rightHandSide = rightHandSide.expression; } switch (rightHandSide.kind) { - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return rightHandSide; - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return find(rightHandSide.members, isConstructorDeclaration); } } @@ -162457,7 +164849,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (length(oldImportDecls) === 0) { return; } - suppressLeadingTrivia(oldImportDecls[0]); + setEmitFlags(oldImportDecls[0], 1024 /* NoLeadingComments */); const oldImportGroups = shouldCombine ? group(oldImportDecls, (importDecl) => getExternalModuleName2(importDecl.moduleSpecifier)) : [oldImportDecls]; const sortedImportGroups = shouldSort ? stableSort(oldImportGroups, (group1, group2) => compareModuleSpecifiersWorker(group1[0].moduleSpecifier, group2[0].moduleSpecifier, comparer)) : oldImportGroups; const newImportDecls = flatMap(sortedImportGroups, (importGroup) => getExternalModuleName2(importGroup[0].moduleSpecifier) || importGroup[0].moduleSpecifier === void 0 ? coalesce(importGroup) : importGroup); @@ -162780,11 +165172,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function getModuleSpecifierExpression(declaration) { var _a; switch (declaration.kind) { - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return (_a = tryCast(declaration.moduleReference, isExternalModuleReference)) == null ? void 0 : _a.expression; - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return declaration.moduleSpecifier; - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return declaration.declarationList.declarations[0].initializer.arguments[0]; } } @@ -162884,19 +165276,19 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function getImportKindOrder(s1) { var _a; switch (s1.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: if (!s1.importClause) return 0; if (s1.importClause.isTypeOnly) return 1; - if (((_a = s1.importClause.namedBindings) == null ? void 0 : _a.kind) === 273 /* NamespaceImport */) + if (((_a = s1.importClause.namedBindings) == null ? void 0 : _a.kind) === 274 /* NamespaceImport */) return 2; if (s1.importClause.name) return 3; return 4; - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return 5; - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return 6; } } @@ -163204,21 +165596,21 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function getOutliningSpanForNode(n, sourceFile) { switch (n.kind) { - case 240 /* Block */: + case 241 /* Block */: if (isFunctionLike(n.parent)) { return functionSpan(n.parent, n, sourceFile); } switch (n.parent.kind) { - case 245 /* DoStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 247 /* ForStatement */: - case 244 /* IfStatement */: - case 246 /* WhileStatement */: - case 253 /* WithStatement */: - case 298 /* CatchClause */: + case 246 /* DoStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 248 /* ForStatement */: + case 245 /* IfStatement */: + case 247 /* WhileStatement */: + case 254 /* WithStatement */: + case 299 /* CatchClause */: return spanForNode(n.parent); - case 257 /* TryStatement */: + case 258 /* TryStatement */: const tryStatement = n.parent; if (tryStatement.tryBlock === n) { return spanForNode(n.parent); @@ -163230,17 +165622,17 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} default: return createOutliningSpan(createTextSpanFromNode(n, sourceFile), "code" /* Code */); } - case 267 /* ModuleBlock */: + case 268 /* ModuleBlock */: return spanForNode(n.parent); - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: - case 268 /* CaseBlock */: - case 186 /* TypeLiteral */: - case 205 /* ObjectBindingPattern */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + case 269 /* CaseBlock */: + case 187 /* TypeLiteral */: + case 206 /* ObjectBindingPattern */: return spanForNode(n); - case 188 /* TupleType */: + case 189 /* TupleType */: return spanForNode( n, /*autoCollapse*/ @@ -163249,24 +165641,24 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} !isTupleTypeNode(n.parent), 23 /* OpenBracketToken */ ); - case 295 /* CaseClause */: - case 296 /* DefaultClause */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: return spanForNodeArray(n.statements); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return spanForObjectOrArrayLiteral(n); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return spanForObjectOrArrayLiteral(n, 23 /* OpenBracketToken */); - case 283 /* JsxElement */: + case 284 /* JsxElement */: return spanForJSXElement(n); - case 287 /* JsxFragment */: + case 288 /* JsxFragment */: return spanForJSXFragment(n); - case 284 /* JsxSelfClosingElement */: - case 285 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: return spanForJSXAttributes(n.attributes); - case 227 /* TemplateExpression */: + case 228 /* TemplateExpression */: case 15 /* NoSubstitutionTemplateLiteral */: return spanForTemplateLiteral(n); - case 206 /* ArrayBindingPattern */: + case 207 /* ArrayBindingPattern */: return spanForNode( n, /*autoCollapse*/ @@ -163275,15 +165667,15 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} !isBindingElement(n.parent), 23 /* OpenBracketToken */ ); - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return spanForArrowFunction(n); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return spanForCallExpression(n); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return spanForParenthesizedExpression(n); - case 274 /* NamedImports */: - case 278 /* NamedExports */: - case 299 /* AssertClause */: + case 275 /* NamedImports */: + case 279 /* NamedExports */: + case 300 /* AssertClause */: return spanForNamedImportsOrExportsOrAssertClause(n); } function spanForNamedImportsOrExportsOrAssertClause(node) { @@ -163404,7 +165796,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} node, sourceFile, /*autoCollapse*/ - node.kind !== 218 /* ArrowFunction */ + node.kind !== 219 /* ArrowFunction */ ); } function spanBetweenTokens(openToken, closeToken, hintSpanNode, sourceFile, autoCollapse = false, useFullStart = true) { @@ -163486,7 +165878,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return getRenameInfoError(wouldRenameNodeModules); } const kind = ts_SymbolDisplay_exports.getSymbolKind(typeChecker, symbol, node); - const specifierName = isImportOrExportSpecifierName(node) || isStringOrNumericLiteralLike(node) && node.parent.kind === 166 /* ComputedPropertyName */ ? stripQuotes(getTextOfIdentifierOrLiteral(node)) : void 0; + const specifierName = isImportOrExportSpecifierName(node) || isStringOrNumericLiteralLike(node) && node.parent.kind === 167 /* ComputedPropertyName */ ? stripQuotes(getTextOfIdentifierOrLiteral(node)) : void 0; const displayName = specifierName || typeChecker.symbolToString(symbol); const fullDisplayName = specifierName || typeChecker.getFullyQualifiedName(symbol); return getRenameInfoSuccess(displayName, fullDisplayName, kind, ts_SymbolDisplay_exports.getSymbolModifiers(typeChecker, symbol), node, sourceFile); @@ -163772,10 +166164,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} ); } return void 0; - } else if (isTemplateHead(node) && parent2.parent.kind === 214 /* TaggedTemplateExpression */) { + } else if (isTemplateHead(node) && parent2.parent.kind === 215 /* TaggedTemplateExpression */) { const templateExpression = parent2; const tagExpression = templateExpression.parent; - Debug.assert(templateExpression.kind === 227 /* TemplateExpression */); + Debug.assert(templateExpression.kind === 228 /* TemplateExpression */); const argumentIndex = isInsideTemplateLiteral(node, position, sourceFile) ? 0 : 1; return getArgumentListInfoForTemplate(tagExpression, argumentIndex, sourceFile); } else if (isTemplateSpan(parent2) && isTaggedTemplateExpression(parent2.parent.parent)) { @@ -163852,17 +166244,17 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function getContextualSignatureLocationInfo(node, sourceFile, position, checker) { const { parent: parent2 } = node; switch (parent2.kind) { - case 216 /* ParenthesizedExpression */: - case 173 /* MethodDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 217 /* ParenthesizedExpression */: + case 174 /* MethodDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: const info = getArgumentOrParameterListInfo(node, position, sourceFile); if (!info) return void 0; const { argumentIndex, argumentCount, argumentsSpan } = info; const contextualType = isMethodDeclaration(parent2) ? checker.getContextualTypeForObjectLiteralElement(parent2) : checker.getContextualType(parent2); return contextualType && { contextualType, argumentIndex, argumentCount, argumentsSpan }; - case 225 /* BinaryExpression */: { + case 226 /* BinaryExpression */: { const highestBinary = getHighestBinary(parent2); const contextualType2 = checker.getContextualType(highestBinary); const argumentIndex2 = node.kind === 21 /* OpenParenToken */ ? 0 : countBinaryExpressionParameters(parent2) - 1; @@ -163936,7 +166328,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const template = taggedTemplate.template; const applicableSpanStart = template.getStart(); let applicableSpanEnd = template.getEnd(); - if (template.kind === 227 /* TemplateExpression */) { + if (template.kind === 228 /* TemplateExpression */) { const lastSpan = last(template.templateSpans); if (lastSpan.literal.getFullWidth() === 0) { applicableSpanEnd = skipTrivia( @@ -164249,7 +166641,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const groupedWithPlusMinusTokens = groupChildren(children, (child) => child === node.readonlyToken || child.kind === 148 /* ReadonlyKeyword */ || child === node.questionToken || child.kind === 58 /* QuestionToken */); const groupedWithBrackets = groupChildren( groupedWithPlusMinusTokens, - ({ kind }) => kind === 23 /* OpenBracketToken */ || kind === 167 /* TypeParameter */ || kind === 24 /* CloseBracketToken */ + ({ kind }) => kind === 23 /* OpenBracketToken */ || kind === 168 /* TypeParameter */ || kind === 24 /* CloseBracketToken */ ); return [ openBraceToken, @@ -164260,7 +166652,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } if (isPropertySignature(node)) { const children = groupChildren(node.getChildren(), (child) => child === node.name || contains(node.modifiers, child)); - const firstJSDocChild = ((_a = children[0]) == null ? void 0 : _a.kind) === 326 /* JSDoc */ ? children[0] : void 0; + const firstJSDocChild = ((_a = children[0]) == null ? void 0 : _a.kind) === 327 /* JSDoc */ ? children[0] : void 0; const withJSDocSeparated = firstJSDocChild ? children.slice(1) : children; const splittedChildren = splitChildren(withJSDocSeparated, ({ kind }) => kind === 59 /* ColonToken */); return firstJSDocChild ? [firstJSDocChild, createSyntaxList2(splittedChildren)] : splittedChildren; @@ -164321,19 +166713,19 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function isListOpener(token) { const kind = token && token.kind; - return kind === 19 /* OpenBraceToken */ || kind === 23 /* OpenBracketToken */ || kind === 21 /* OpenParenToken */ || kind === 285 /* JsxOpeningElement */; + return kind === 19 /* OpenBraceToken */ || kind === 23 /* OpenBracketToken */ || kind === 21 /* OpenParenToken */ || kind === 286 /* JsxOpeningElement */; } function isListCloser(token) { const kind = token && token.kind; - return kind === 20 /* CloseBraceToken */ || kind === 24 /* CloseBracketToken */ || kind === 22 /* CloseParenToken */ || kind === 286 /* JsxClosingElement */; + return kind === 20 /* CloseBraceToken */ || kind === 24 /* CloseBracketToken */ || kind === 22 /* CloseParenToken */ || kind === 287 /* JsxClosingElement */; } function getEndPos(sourceFile, node) { switch (node.kind) { - case 347 /* JSDocParameterTag */: - case 344 /* JSDocCallbackTag */: - case 354 /* JSDocPropertyTag */: - case 352 /* JSDocTypedefTag */: - case 349 /* JSDocThisTag */: + case 348 /* JSDocParameterTag */: + case 345 /* JSDocCallbackTag */: + case 355 /* JSDocPropertyTag */: + case 353 /* JSDocTypedefTag */: + case 350 /* JSDocThisTag */: return sourceFile.getLineEndOfPosition(node.getStart()); default: return node.getEnd(); @@ -164368,7 +166760,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } const flags = getCombinedLocalAndExportSymbolFlags(symbol); if (flags & 32 /* Class */) { - return getDeclarationOfKind(symbol, 230 /* ClassExpression */) ? "local class" /* localClassElement */ : "class" /* classElement */; + return getDeclarationOfKind(symbol, 231 /* ClassExpression */) ? "local class" /* localClassElement */ : "class" /* classElement */; } if (flags & 384 /* Enum */) return "enum" /* enumElement */; @@ -164406,6 +166798,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return "parameter" /* parameterElement */; } else if (symbol.valueDeclaration && isVarConst(symbol.valueDeclaration)) { return "const" /* constElement */; + } else if (symbol.valueDeclaration && isVarUsing(symbol.valueDeclaration)) { + return "using" /* variableUsingElement */; + } else if (symbol.valueDeclaration && isVarAwaitUsing(symbol.valueDeclaration)) { + return "await using" /* variableAwaitUsingElement */; } else if (forEach(symbol.declarations, isLet)) { return "let" /* letElement */; } @@ -164473,7 +166869,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } return modifiers.size > 0 ? arrayFrom(modifiers.values()).join(",") : "" /* none */; } - function getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, symbol, sourceFile, enclosingDeclaration, location, semanticMeaning = getMeaningFromLocation(location), alias) { + function getSymbolDisplayPartsDocumentationAndSymbolKindWorker(typeChecker, symbol, sourceFile, enclosingDeclaration, location, type, semanticMeaning, alias) { var _a; const displayParts = []; let documentation = []; @@ -164482,7 +166878,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} let symbolKind = semanticMeaning & 1 /* Value */ ? getSymbolKindOfConstructorPropertyMethodAccessorFunctionOrVar(typeChecker, symbol, location) : "" /* unknown */; let hasAddedSymbolInfo = false; const isThisExpression = location.kind === 110 /* ThisKeyword */ && isInExpressionContext(location) || isThisInTypeQuery(location); - let type; let documentationFromAlias; let tagsFromAlias; let hasMultipleSignatures = false; @@ -164494,13 +166889,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const declaration = find(symbol.declarations, (declaration2) => declaration2.name === location); if (declaration) { switch (declaration.kind) { - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: symbolKind = "getter" /* memberGetAccessorElement */; break; - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: symbolKind = "setter" /* memberSetAccessorElement */; break; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: symbolKind = "accessor" /* memberAccessorVariableElement */; break; default: @@ -164511,8 +166906,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } let signature; - type = isThisExpression ? typeChecker.getTypeAtLocation(location) : typeChecker.getTypeOfSymbolAtLocation(symbol, location); - if (location.parent && location.parent.kind === 210 /* PropertyAccessExpression */) { + type ?? (type = isThisExpression ? typeChecker.getTypeAtLocation(location) : typeChecker.getTypeOfSymbolAtLocation(symbol, location)); + if (location.parent && location.parent.kind === 211 /* PropertyAccessExpression */) { const right = location.parent.name; if (right === location || right && right.getFullWidth() === 0) { location = location.parent; @@ -164528,7 +166923,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } if (callExpressionLike) { signature = typeChecker.getResolvedSignature(callExpressionLike); - const useConstructSignatures = callExpressionLike.kind === 213 /* NewExpression */ || isCallExpression(callExpressionLike) && callExpressionLike.expression.kind === 108 /* SuperKeyword */; + const useConstructSignatures = callExpressionLike.kind === 214 /* NewExpression */ || isCallExpression(callExpressionLike) && callExpressionLike.expression.kind === 108 /* SuperKeyword */; const allSignatures = useConstructSignatures ? type.getConstructSignatures() : type.getCallSignatures(); if (signature && !contains(allSignatures, signature.target) && !contains(allSignatures, signature)) { signature = allSignatures.length ? allSignatures[0] : void 0; @@ -164591,21 +166986,21 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} hasMultipleSignatures = allSignatures.length > 1; } } else if (isNameOfFunctionDeclaration(location) && !(symbolFlags & 98304 /* Accessor */) || // name of function declaration - location.kind === 137 /* ConstructorKeyword */ && location.parent.kind === 175 /* Constructor */) { + location.kind === 137 /* ConstructorKeyword */ && location.parent.kind === 176 /* Constructor */) { const functionDeclaration = location.parent; const locationIsSymbolDeclaration = symbol.declarations && find(symbol.declarations, (declaration) => declaration === (location.kind === 137 /* ConstructorKeyword */ ? functionDeclaration.parent : functionDeclaration)); if (locationIsSymbolDeclaration) { - const allSignatures = functionDeclaration.kind === 175 /* Constructor */ ? type.getNonNullableType().getConstructSignatures() : type.getNonNullableType().getCallSignatures(); + const allSignatures = functionDeclaration.kind === 176 /* Constructor */ ? type.getNonNullableType().getConstructSignatures() : type.getNonNullableType().getCallSignatures(); if (!typeChecker.isImplementationOfOverload(functionDeclaration)) { signature = typeChecker.getSignatureFromDeclaration(functionDeclaration); } else { signature = allSignatures[0]; } - if (functionDeclaration.kind === 175 /* Constructor */) { + if (functionDeclaration.kind === 176 /* Constructor */) { symbolKind = "constructor" /* constructorImplementationElement */; addPrefixForAnyFunctionOrVar(type.symbol, symbolKind); } else { - addPrefixForAnyFunctionOrVar(functionDeclaration.kind === 178 /* CallSignature */ && !(type.symbol.flags & 2048 /* TypeLiteral */ || type.symbol.flags & 4096 /* ObjectLiteral */) ? type.symbol : symbol, symbolKind); + addPrefixForAnyFunctionOrVar(functionDeclaration.kind === 179 /* CallSignature */ && !(type.symbol.flags & 2048 /* TypeLiteral */ || type.symbol.flags & 4096 /* ObjectLiteral */) ? type.symbol : symbol, symbolKind); } if (signature) { addSignatureDisplayParts(signature, allSignatures); @@ -164617,7 +167012,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } if (symbolFlags & 32 /* Class */ && !hasAddedSymbolInfo && !isThisExpression) { addAliasPrefixIfNecessary(); - if (getDeclarationOfKind(symbol, 230 /* ClassExpression */)) { + if (getDeclarationOfKind(symbol, 231 /* ClassExpression */)) { pushSymbolKind("local class" /* localClassElement */); } else { displayParts.push(keywordPart(86 /* ClassKeyword */)); @@ -164656,7 +167051,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } if (symbolFlags & 1536 /* Module */ && !isThisExpression) { prefixNextMeaning(); - const declaration = getDeclarationOfKind(symbol, 266 /* ModuleDeclaration */); + const declaration = getDeclarationOfKind(symbol, 267 /* ModuleDeclaration */); const isNamespace = declaration && declaration.name && declaration.name.kind === 80 /* Identifier */; displayParts.push(keywordPart(isNamespace ? 145 /* NamespaceKeyword */ : 144 /* ModuleKeyword */)); displayParts.push(spacePart()); @@ -164674,7 +167069,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} addFullSymbolName(symbol.parent, enclosingDeclaration); writeTypeParametersOfSymbol(symbol.parent, enclosingDeclaration); } else { - const decl = getDeclarationOfKind(symbol, 167 /* TypeParameter */); + const decl = getDeclarationOfKind(symbol, 168 /* TypeParameter */); if (decl === void 0) return Debug.fail(); const declaration = decl.parent; @@ -164682,10 +167077,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (isFunctionLike(declaration)) { addInPrefix(); const signature = typeChecker.getSignatureFromDeclaration(declaration); - if (declaration.kind === 179 /* ConstructSignature */) { + if (declaration.kind === 180 /* ConstructSignature */) { displayParts.push(keywordPart(105 /* NewKeyword */)); displayParts.push(spacePart()); - } else if (declaration.kind !== 178 /* CallSignature */ && declaration.name) { + } else if (declaration.kind !== 179 /* CallSignature */ && declaration.name) { addFullSymbolName(declaration.symbol); } addRange(displayParts, signatureToDisplayParts(typeChecker, signature, sourceFile, 32 /* WriteTypeArgumentsOfSignature */)); @@ -164703,7 +167098,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} symbolKind = "enum member" /* enumMemberElement */; addPrefixForAnyFunctionOrVar(symbol, "enum member"); const declaration = (_a = symbol.declarations) == null ? void 0 : _a[0]; - if ((declaration == null ? void 0 : declaration.kind) === 305 /* EnumMember */) { + if ((declaration == null ? void 0 : declaration.kind) === 306 /* EnumMember */) { const constantValue = typeChecker.getConstantValue(declaration); if (constantValue !== void 0) { displayParts.push(spacePart()); @@ -164726,12 +167121,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (declarationName && !hasAddedSymbolInfo) { const isExternalModuleDeclaration = isModuleWithStringLiteralName(resolvedNode) && hasSyntacticModifier(resolvedNode, 2 /* Ambient */); const shouldUseAliasName = symbol.name !== "default" && !isExternalModuleDeclaration; - const resolvedInfo = getSymbolDisplayPartsDocumentationAndSymbolKind( + const resolvedInfo = getSymbolDisplayPartsDocumentationAndSymbolKindWorker( typeChecker, resolvedSymbol, getSourceFileOfNode(resolvedNode), resolvedNode, declarationName, + type, semanticMeaning, shouldUseAliasName ? symbol : resolvedSymbol ); @@ -164747,17 +167143,17 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } if (symbol.declarations) { switch (symbol.declarations[0].kind) { - case 269 /* NamespaceExportDeclaration */: + case 270 /* NamespaceExportDeclaration */: displayParts.push(keywordPart(95 /* ExportKeyword */)); displayParts.push(spacePart()); displayParts.push(keywordPart(145 /* NamespaceKeyword */)); break; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: displayParts.push(keywordPart(95 /* ExportKeyword */)); displayParts.push(spacePart()); displayParts.push(keywordPart(symbol.declarations[0].isExportEquals ? 64 /* EqualsToken */ : 90 /* DefaultKeyword */)); break; - case 280 /* ExportSpecifier */: + case 281 /* ExportSpecifier */: displayParts.push(keywordPart(95 /* ExportKeyword */)); break; default: @@ -164767,7 +167163,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} displayParts.push(spacePart()); addFullSymbolName(symbol); forEach(symbol.declarations, (declaration) => { - if (declaration.kind === 270 /* ImportEqualsDeclaration */) { + if (declaration.kind === 271 /* ImportEqualsDeclaration */) { const importEqualsDeclaration = declaration; if (isExternalModuleImportEqualsDeclaration(importEqualsDeclaration)) { displayParts.push(spacePart()); @@ -164799,7 +167195,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } else { addPrefixForAnyFunctionOrVar(symbol, symbolKind); } - if (symbolKind === "property" /* memberVariableElement */ || symbolKind === "accessor" /* memberAccessorVariableElement */ || symbolKind === "getter" /* memberGetAccessorElement */ || symbolKind === "setter" /* memberSetAccessorElement */ || symbolKind === "JSX attribute" /* jsxAttribute */ || symbolFlags & 3 /* Variable */ || symbolKind === "local var" /* localVariableElement */ || symbolKind === "index" /* indexSignatureElement */ || isThisExpression) { + if (symbolKind === "property" /* memberVariableElement */ || symbolKind === "accessor" /* memberAccessorVariableElement */ || symbolKind === "getter" /* memberGetAccessorElement */ || symbolKind === "setter" /* memberSetAccessorElement */ || symbolKind === "JSX attribute" /* jsxAttribute */ || symbolFlags & 3 /* Variable */ || symbolKind === "local var" /* localVariableElement */ || symbolKind === "index" /* indexSignatureElement */ || symbolKind === "using" /* variableUsingElement */ || symbolKind === "await using" /* variableAwaitUsingElement */ || isThisExpression) { displayParts.push(punctuationPart(59 /* ColonToken */)); displayParts.push(spacePart()); if (type.symbol && type.symbol.flags & 262144 /* TypeParameter */ && symbolKind !== "index" /* indexSignatureElement */) { @@ -164835,9 +167231,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} documentation = symbol.getContextualDocumentationComment(enclosingDeclaration, typeChecker); } if (documentation.length === 0 && symbolFlags & 4 /* Property */) { - if (symbol.parent && symbol.declarations && forEach(symbol.parent.declarations, (declaration) => declaration.kind === 311 /* SourceFile */)) { + if (symbol.parent && symbol.declarations && forEach(symbol.parent.declarations, (declaration) => declaration.kind === 312 /* SourceFile */)) { for (const declaration of symbol.declarations) { - if (!declaration.parent || declaration.parent.kind !== 225 /* BinaryExpression */) { + if (!declaration.parent || declaration.parent.kind !== 226 /* BinaryExpression */) { continue; } const rhsSymbol = typeChecker.getSymbolAtLocation(declaration.parent.right); @@ -164949,6 +167345,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} case "let" /* letElement */: case "const" /* constElement */: case "constructor" /* constructorImplementationElement */: + case "using" /* variableUsingElement */: + case "await using" /* variableAwaitUsingElement */: displayParts.push(textOrKeywordPart(symbolKind2)); return; default: @@ -164984,19 +167382,32 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} addRange(displayParts, typeParameterParts); } } + function getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, symbol, sourceFile, enclosingDeclaration, location, semanticMeaning = getMeaningFromLocation(location), alias) { + return getSymbolDisplayPartsDocumentationAndSymbolKindWorker( + typeChecker, + symbol, + sourceFile, + enclosingDeclaration, + location, + /*type*/ + void 0, + semanticMeaning, + alias + ); + } function isLocalVariableOrFunction(symbol) { if (symbol.parent) { return false; } return forEach(symbol.declarations, (declaration) => { - if (declaration.kind === 217 /* FunctionExpression */) { + if (declaration.kind === 218 /* FunctionExpression */) { return true; } - if (declaration.kind !== 259 /* VariableDeclaration */ && declaration.kind !== 261 /* FunctionDeclaration */) { + if (declaration.kind !== 260 /* VariableDeclaration */ && declaration.kind !== 262 /* FunctionDeclaration */) { return false; } for (let parent2 = declaration.parent; !isFunctionBlock(parent2); parent2 = parent2.parent) { - if (parent2.kind === 311 /* SourceFile */ || parent2.kind === 267 /* ModuleBlock */) { + if (parent2.kind === 312 /* SourceFile */ || parent2.kind === 268 /* ModuleBlock */) { return false; } } @@ -165170,16 +167581,16 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return newEnd !== end && (trailingTriviaOption === 2 /* Include */ || isLineBreak(sourceFile.text.charCodeAt(newEnd - 1))) ? newEnd : end; } function isSeparator(node, candidate) { - return !!candidate && !!node.parent && (candidate.kind === 28 /* CommaToken */ || candidate.kind === 27 /* SemicolonToken */ && node.parent.kind === 209 /* ObjectLiteralExpression */); + return !!candidate && !!node.parent && (candidate.kind === 28 /* CommaToken */ || candidate.kind === 27 /* SemicolonToken */ && node.parent.kind === 210 /* ObjectLiteralExpression */); } function isThisTypeAnnotatable(containingFunction) { return isFunctionExpression(containingFunction) || isFunctionDeclaration(containingFunction); } function updateJSDocHost(parent2) { - if (parent2.kind !== 218 /* ArrowFunction */) { + if (parent2.kind !== 219 /* ArrowFunction */) { return parent2; } - const jsDocNode = parent2.parent.kind === 171 /* PropertyDeclaration */ ? parent2.parent : parent2.parent.parent; + const jsDocNode = parent2.parent.kind === 172 /* PropertyDeclaration */ ? parent2.parent : parent2.parent.parent; jsDocNode.jsDoc = parent2.jsDoc; return jsDocNode; } @@ -165188,7 +167599,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return void 0; } switch (oldTag.kind) { - case 347 /* JSDocParameterTag */: { + case 348 /* JSDocParameterTag */: { const oldParam = oldTag; const newParam = newTag; return isIdentifier(oldParam.name) && isIdentifier(newParam.name) && oldParam.name.escapedText === newParam.name.escapedText ? factory.createJSDocParameterTag( @@ -165202,14 +167613,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} oldParam.comment ) : void 0; } - case 348 /* JSDocReturnTag */: + case 349 /* JSDocReturnTag */: return factory.createJSDocReturnTag( /*tagName*/ void 0, newTag.typeExpression, oldTag.comment ); - case 350 /* JSDocTypeTag */: + case 351 /* JSDocTypeTag */: return factory.createJSDocTypeTag( /*tagName*/ void 0, @@ -165570,7 +167981,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return !isInComment(sourceFile, position) && !isInString(sourceFile, position) && !isInTemplateString(sourceFile, position) && !isInJSXText(sourceFile, position); } function needSemicolonBetween(a, b) { - return (isPropertySignature(a) || isPropertyDeclaration(a)) && isClassOrTypeElement(b) && b.name.kind === 166 /* ComputedPropertyName */ || isStatementButNotDeclaration(a) && isStatementButNotDeclaration(b); + return (isPropertySignature(a) || isPropertyDeclaration(a)) && isClassOrTypeElement(b) && b.name.kind === 167 /* ComputedPropertyName */ || isStatementButNotDeclaration(a) && isStatementButNotDeclaration(b); } function deleteNode(changes, sourceFile, node, options = { leadingTriviaOption: 1 /* IncludeAll */ }) { const startPosition = getAdjustedStartPosition(sourceFile, node, options); @@ -165614,7 +168025,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} leadingTriviaOption: 0 /* Exclude */, trailingTriviaOption: 0 /* Exclude */ }; - ChangeTracker = class { + ChangeTracker = class _ChangeTracker { /** Public for tests only. Other callers should use `ChangeTracker.with`. */ constructor(newLineCharacter, formatContext) { this.newLineCharacter = newLineCharacter; @@ -165625,10 +168036,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} this.deletedNodes = []; } static fromContext(context) { - return new ChangeTracker(getNewLineOrDefaultFromHost(context.host, context.formatContext.options), context.formatContext); + return new _ChangeTracker(getNewLineOrDefaultFromHost(context.host, context.formatContext.options), context.formatContext); } static with(context, cb) { - const tracker = ChangeTracker.fromContext(context); + const tracker = _ChangeTracker.fromContext(context); cb(tracker); return tracker.getChanges(); } @@ -165763,6 +168174,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} insertNodeBefore(sourceFile, before, newNode, blankLineBetween = false, options = {}) { this.insertNodeAt(sourceFile, getAdjustedStartPosition(sourceFile, before, options), newNode, this.getOptionsForInsertNodeBefore(before, newNode, blankLineBetween)); } + insertNodesBefore(sourceFile, before, newNodes, blankLineBetween = false, options = {}) { + this.insertNodesAt(sourceFile, getAdjustedStartPosition(sourceFile, before, options), newNodes, this.getOptionsForInsertNodeBefore(before, first(newNodes), blankLineBetween)); + } insertModifierAt(sourceFile, pos, modifier, options = {}) { this.insertNodeAt(sourceFile, pos, factory.createToken(modifier), options); } @@ -165835,7 +168249,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} endNode2 = first(node.parameters); } } else { - endNode2 = (node.kind === 259 /* VariableDeclaration */ ? node.exclamationToken : node.questionToken) ?? node.name; + endNode2 = (node.kind === 260 /* VariableDeclaration */ ? node.exclamationToken : node.questionToken) ?? node.name; } this.insertNodeAt(sourceFile, endNode2.end, type, { prefix: ": " }); return true; @@ -165983,18 +168397,18 @@ ${options.prefix}` : "\n" : options.prefix } getInsertNodeAfterOptionsWorker(node) { switch (node.kind) { - case 262 /* ClassDeclaration */: - case 266 /* ModuleDeclaration */: + case 263 /* ClassDeclaration */: + case 267 /* ModuleDeclaration */: return { prefix: this.newLineCharacter, suffix: this.newLineCharacter }; - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: case 11 /* StringLiteral */: case 80 /* Identifier */: return { prefix: ", " }; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return { suffix: "," + this.newLineCharacter }; case 95 /* ExportKeyword */: return { prefix: " " }; - case 168 /* Parameter */: + case 169 /* Parameter */: return {}; default: Debug.assert(isStatement(node) || isClassOrTypeElement(node)); @@ -166003,7 +168417,7 @@ ${options.prefix}` : "\n" : options.prefix } insertName(sourceFile, node, name) { Debug.assert(!node.name); - if (node.kind === 218 /* ArrowFunction */) { + if (node.kind === 219 /* ArrowFunction */) { const arrow = findChildOfKind(node, 39 /* EqualsGreaterThanToken */, sourceFile); const lparen = findChildOfKind(node, 21 /* OpenParenToken */, sourceFile); if (lparen) { @@ -166013,12 +168427,12 @@ ${options.prefix}` : "\n" : options.prefix this.insertText(sourceFile, first(node.parameters).getStart(sourceFile), `function ${name}(`); this.replaceRange(sourceFile, arrow, factory.createToken(22 /* CloseParenToken */)); } - if (node.body.kind !== 240 /* Block */) { + if (node.body.kind !== 241 /* Block */) { this.insertNodesAt(sourceFile, node.body.getStart(sourceFile), [factory.createToken(19 /* OpenBraceToken */), factory.createToken(107 /* ReturnKeyword */)], { joiner: " ", suffix: " " }); this.insertNodesAt(sourceFile, node.body.end, [factory.createToken(27 /* SemicolonToken */), factory.createToken(20 /* CloseBraceToken */)], { joiner: " " }); } } else { - const pos = findChildOfKind(node, node.kind === 217 /* FunctionExpression */ ? 100 /* FunctionKeyword */ : 86 /* ClassKeyword */, sourceFile).end; + const pos = findChildOfKind(node, node.kind === 218 /* FunctionExpression */ ? 100 /* FunctionKeyword */ : 86 /* ClassKeyword */, sourceFile).end; this.insertNodeAt(sourceFile, pos, factory.createIdentifier(name), { prefix: " " }); } } @@ -166253,7 +168667,7 @@ ${options.prefix}` : "\n" : options.prefix ((_deleteDeclaration) => { function deleteDeclaration2(changes, deletedNodesInLists, sourceFile, node) { switch (node.kind) { - case 168 /* Parameter */: { + case 169 /* Parameter */: { const oldFunction = node.parent; if (isArrowFunction(oldFunction) && oldFunction.parameters.length === 1 && !findChildOfKind(oldFunction, 21 /* OpenParenToken */, sourceFile)) { changes.replaceNodeWithText(sourceFile, node, "()"); @@ -166262,29 +168676,29 @@ ${options.prefix}` : "\n" : options.prefix } break; } - case 271 /* ImportDeclaration */: - case 270 /* ImportEqualsDeclaration */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: const isFirstImport = sourceFile.imports.length && node === first(sourceFile.imports).parent || node === find(sourceFile.statements, isAnyImportSyntax); deleteNode(changes, sourceFile, node, { leadingTriviaOption: isFirstImport ? 0 /* Exclude */ : hasJSDocNodes(node) ? 2 /* JSDoc */ : 3 /* StartLine */ }); break; - case 207 /* BindingElement */: + case 208 /* BindingElement */: const pattern = node.parent; - const preserveComma = pattern.kind === 206 /* ArrayBindingPattern */ && node !== last(pattern.elements); + const preserveComma = pattern.kind === 207 /* ArrayBindingPattern */ && node !== last(pattern.elements); if (preserveComma) { deleteNode(changes, sourceFile, node); } else { deleteNodeInList(changes, deletedNodesInLists, sourceFile, node); } break; - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: deleteVariableDeclaration(changes, deletedNodesInLists, sourceFile, node); break; - case 167 /* TypeParameter */: + case 168 /* TypeParameter */: deleteNodeInList(changes, deletedNodesInLists, sourceFile, node); break; - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: const namedImports = node.parent; if (namedImports.elements.length === 1) { deleteImportBinding(changes, sourceFile, namedImports); @@ -166292,7 +168706,7 @@ ${options.prefix}` : "\n" : options.prefix deleteNodeInList(changes, deletedNodesInLists, sourceFile, node); } break; - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: deleteImportBinding(changes, sourceFile, node); break; case 27 /* SemicolonToken */: @@ -166301,8 +168715,8 @@ ${options.prefix}` : "\n" : options.prefix case 100 /* FunctionKeyword */: deleteNode(changes, sourceFile, node, { leadingTriviaOption: 0 /* Exclude */ }); break; - case 262 /* ClassDeclaration */: - case 261 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: + case 262 /* FunctionDeclaration */: deleteNode(changes, sourceFile, node, { leadingTriviaOption: hasJSDocNodes(node) ? 2 /* JSDoc */ : 3 /* StartLine */ }); break; default: @@ -166344,13 +168758,13 @@ ${options.prefix}` : "\n" : options.prefix const previousToken = Debug.checkDefined(getTokenAtPosition(sourceFile, node.pos - 1)); changes.deleteRange(sourceFile, { pos: previousToken.getStart(sourceFile), end: node.end }); } else { - const importDecl = getAncestor(node, 271 /* ImportDeclaration */); + const importDecl = getAncestor(node, 272 /* ImportDeclaration */); deleteNode(changes, sourceFile, importDecl); } } function deleteVariableDeclaration(changes, deletedNodesInLists, sourceFile, node) { const { parent: parent2 } = node; - if (parent2.kind === 298 /* CatchClause */) { + if (parent2.kind === 299 /* CatchClause */) { changes.deleteNodeRange(sourceFile, findChildOfKind(parent2, 21 /* OpenParenToken */, sourceFile), findChildOfKind(parent2, 22 /* CloseParenToken */, sourceFile)); return; } @@ -166360,14 +168774,14 @@ ${options.prefix}` : "\n" : options.prefix } const gp = parent2.parent; switch (gp.kind) { - case 249 /* ForOfStatement */: - case 248 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 249 /* ForInStatement */: changes.replaceNode(sourceFile, node, factory.createObjectLiteralExpression()); break; - case 247 /* ForStatement */: + case 248 /* ForStatement */: deleteNode(changes, sourceFile, parent2); break; - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: deleteNode(changes, sourceFile, gp, { leadingTriviaOption: hasJSDocNodes(gp) ? 2 /* JSDoc */ : 3 /* StartLine */ }); break; default: @@ -166550,10 +168964,10 @@ ${options.prefix}` : "\n" : options.prefix function shouldRescanJsxIdentifier(node) { if (node.parent) { switch (node.parent.kind) { - case 290 /* JsxAttribute */: - case 285 /* JsxOpeningElement */: - case 286 /* JsxClosingElement */: - case 284 /* JsxSelfClosingElement */: + case 291 /* JsxAttribute */: + case 286 /* JsxOpeningElement */: + case 287 /* JsxClosingElement */: + case 285 /* JsxSelfClosingElement */: return isKeyword(node.kind) || node.kind === 80 /* Identifier */; } } @@ -166754,7 +169168,7 @@ ${options.prefix}` : "\n" : options.prefix // src/services/formatting/rules.ts function getAllRules() { const allTokens = []; - for (let token = 0 /* FirstToken */; token <= 164 /* LastToken */; token++) { + for (let token = 0 /* FirstToken */; token <= 165 /* LastToken */; token++) { if (token !== 1 /* EndOfFileToken */) { allTokens.push(token); } @@ -166765,12 +169179,12 @@ ${options.prefix}` : "\n" : options.prefix const anyToken = { tokens: allTokens, isSpecific: false }; const anyTokenIncludingMultilineComments = tokenRangeFrom([...allTokens, 3 /* MultiLineCommentTrivia */]); const anyTokenIncludingEOF = tokenRangeFrom([...allTokens, 1 /* EndOfFileToken */]); - const keywords = tokenRangeFromRange(83 /* FirstKeyword */, 164 /* LastKeyword */); + const keywords = tokenRangeFromRange(83 /* FirstKeyword */, 165 /* LastKeyword */); const binaryOperators = tokenRangeFromRange(30 /* FirstBinaryOperator */, 79 /* LastBinaryOperator */); const binaryKeywordOperators = [ 103 /* InKeyword */, 104 /* InstanceOfKeyword */, - 164 /* OfKeyword */, + 165 /* OfKeyword */, 130 /* AsKeyword */, 142 /* IsKeyword */, 152 /* SatisfiesKeyword */ @@ -166899,7 +169313,7 @@ ${options.prefix}` : "\n" : options.prefix 153 /* SetKeyword */, 126 /* StaticKeyword */, 156 /* TypeKeyword */, - 160 /* FromKeyword */, + 161 /* FromKeyword */, 143 /* KeyOfKeyword */, 140 /* InferKeyword */ ], @@ -166910,7 +169324,7 @@ ${options.prefix}` : "\n" : options.prefix rule( "SpaceBeforeCertainTypeScriptKeywords", anyToken, - [96 /* ExtendsKeyword */, 119 /* ImplementsKeyword */, 160 /* FromKeyword */], + [96 /* ExtendsKeyword */, 119 /* ImplementsKeyword */, 161 /* FromKeyword */], [isNonJsxSameLineTokenContext], 4 /* InsertSpace */ ), @@ -167100,40 +169514,40 @@ ${options.prefix}` : "\n" : options.prefix return (context) => !context.options || !hasProperty(context.options, optionName) || !!context.options[optionName]; } function isForContext(context) { - return context.contextNode.kind === 247 /* ForStatement */; + return context.contextNode.kind === 248 /* ForStatement */; } function isNotForContext(context) { return !isForContext(context); } function isBinaryOpContext(context) { switch (context.contextNode.kind) { - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return context.contextNode.operatorToken.kind !== 28 /* CommaToken */; - case 226 /* ConditionalExpression */: - case 193 /* ConditionalType */: - case 233 /* AsExpression */: - case 280 /* ExportSpecifier */: - case 275 /* ImportSpecifier */: - case 181 /* TypePredicate */: - case 191 /* UnionType */: - case 192 /* IntersectionType */: - case 237 /* SatisfiesExpression */: + case 227 /* ConditionalExpression */: + case 194 /* ConditionalType */: + case 234 /* AsExpression */: + case 281 /* ExportSpecifier */: + case 276 /* ImportSpecifier */: + case 182 /* TypePredicate */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: + case 238 /* SatisfiesExpression */: return true; - case 207 /* BindingElement */: - case 264 /* TypeAliasDeclaration */: - case 270 /* ImportEqualsDeclaration */: - case 276 /* ExportAssignment */: - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 305 /* EnumMember */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: + case 208 /* BindingElement */: + case 265 /* TypeAliasDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 277 /* ExportAssignment */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 306 /* EnumMember */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: return context.currentTokenSpan.kind === 64 /* EqualsToken */ || context.nextTokenSpan.kind === 64 /* EqualsToken */; - case 248 /* ForInStatement */: - case 167 /* TypeParameter */: + case 249 /* ForInStatement */: + case 168 /* TypeParameter */: return context.currentTokenSpan.kind === 103 /* InKeyword */ || context.nextTokenSpan.kind === 103 /* InKeyword */ || context.currentTokenSpan.kind === 64 /* EqualsToken */ || context.nextTokenSpan.kind === 64 /* EqualsToken */; - case 249 /* ForOfStatement */: - return context.currentTokenSpan.kind === 164 /* OfKeyword */ || context.nextTokenSpan.kind === 164 /* OfKeyword */; + case 250 /* ForOfStatement */: + return context.currentTokenSpan.kind === 165 /* OfKeyword */ || context.nextTokenSpan.kind === 165 /* OfKeyword */; } return false; } @@ -167145,16 +169559,16 @@ ${options.prefix}` : "\n" : options.prefix } function isTypeAnnotationContext(context) { const contextKind = context.contextNode.kind; - return contextKind === 171 /* PropertyDeclaration */ || contextKind === 170 /* PropertySignature */ || contextKind === 168 /* Parameter */ || contextKind === 259 /* VariableDeclaration */ || isFunctionLikeKind(contextKind); + return contextKind === 172 /* PropertyDeclaration */ || contextKind === 171 /* PropertySignature */ || contextKind === 169 /* Parameter */ || contextKind === 260 /* VariableDeclaration */ || isFunctionLikeKind(contextKind); } function isConditionalOperatorContext(context) { - return context.contextNode.kind === 226 /* ConditionalExpression */ || context.contextNode.kind === 193 /* ConditionalType */; + return context.contextNode.kind === 227 /* ConditionalExpression */ || context.contextNode.kind === 194 /* ConditionalType */; } function isSameLineTokenOrBeforeBlockContext(context) { return context.TokensAreOnSameLine() || isBeforeBlockContext(context); } function isBraceWrappedContext(context) { - return context.contextNode.kind === 205 /* ObjectBindingPattern */ || context.contextNode.kind === 199 /* MappedType */ || isSingleLineBlockContext(context); + return context.contextNode.kind === 206 /* ObjectBindingPattern */ || context.contextNode.kind === 200 /* MappedType */ || isSingleLineBlockContext(context); } function isBeforeMultilineBlockContext(context) { return isBeforeBlockContext(context) && !(context.NextNodeAllOnSameLine() || context.NextNodeBlockIsOnOneLine()); @@ -167176,26 +169590,26 @@ ${options.prefix}` : "\n" : options.prefix return true; } switch (node.kind) { - case 240 /* Block */: - case 268 /* CaseBlock */: - case 209 /* ObjectLiteralExpression */: - case 267 /* ModuleBlock */: + case 241 /* Block */: + case 269 /* CaseBlock */: + case 210 /* ObjectLiteralExpression */: + case 268 /* ModuleBlock */: return true; } return false; } function isFunctionDeclContext(context) { switch (context.contextNode.kind) { - case 261 /* FunctionDeclaration */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 178 /* CallSignature */: - case 217 /* FunctionExpression */: - case 175 /* Constructor */: - case 218 /* ArrowFunction */: - case 263 /* InterfaceDeclaration */: + case 262 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 179 /* CallSignature */: + case 218 /* FunctionExpression */: + case 176 /* Constructor */: + case 219 /* ArrowFunction */: + case 264 /* InterfaceDeclaration */: return true; } return false; @@ -167204,39 +169618,39 @@ ${options.prefix}` : "\n" : options.prefix return !isFunctionDeclContext(context); } function isFunctionDeclarationOrFunctionExpressionContext(context) { - return context.contextNode.kind === 261 /* FunctionDeclaration */ || context.contextNode.kind === 217 /* FunctionExpression */; + return context.contextNode.kind === 262 /* FunctionDeclaration */ || context.contextNode.kind === 218 /* FunctionExpression */; } function isTypeScriptDeclWithBlockContext(context) { return nodeIsTypeScriptDeclWithBlockContext(context.contextNode); } function nodeIsTypeScriptDeclWithBlockContext(node) { switch (node.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: - case 186 /* TypeLiteral */: - case 266 /* ModuleDeclaration */: - case 277 /* ExportDeclaration */: - case 278 /* NamedExports */: - case 271 /* ImportDeclaration */: - case 274 /* NamedImports */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + case 187 /* TypeLiteral */: + case 267 /* ModuleDeclaration */: + case 278 /* ExportDeclaration */: + case 279 /* NamedExports */: + case 272 /* ImportDeclaration */: + case 275 /* NamedImports */: return true; } return false; } function isAfterCodeBlockContext(context) { switch (context.currentTokenParent.kind) { - case 262 /* ClassDeclaration */: - case 266 /* ModuleDeclaration */: - case 265 /* EnumDeclaration */: - case 298 /* CatchClause */: - case 267 /* ModuleBlock */: - case 254 /* SwitchStatement */: + case 263 /* ClassDeclaration */: + case 267 /* ModuleDeclaration */: + case 266 /* EnumDeclaration */: + case 299 /* CatchClause */: + case 268 /* ModuleBlock */: + case 255 /* SwitchStatement */: return true; - case 240 /* Block */: { + case 241 /* Block */: { const blockParent = context.currentTokenParent.parent; - if (!blockParent || blockParent.kind !== 218 /* ArrowFunction */ && blockParent.kind !== 217 /* FunctionExpression */) { + if (!blockParent || blockParent.kind !== 219 /* ArrowFunction */ && blockParent.kind !== 218 /* FunctionExpression */) { return true; } } @@ -167245,29 +169659,29 @@ ${options.prefix}` : "\n" : options.prefix } function isControlDeclContext(context) { switch (context.contextNode.kind) { - case 244 /* IfStatement */: - case 254 /* SwitchStatement */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 246 /* WhileStatement */: - case 257 /* TryStatement */: - case 245 /* DoStatement */: - case 253 /* WithStatement */: - case 298 /* CatchClause */: + case 245 /* IfStatement */: + case 255 /* SwitchStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 247 /* WhileStatement */: + case 258 /* TryStatement */: + case 246 /* DoStatement */: + case 254 /* WithStatement */: + case 299 /* CatchClause */: return true; default: return false; } } function isObjectContext(context) { - return context.contextNode.kind === 209 /* ObjectLiteralExpression */; + return context.contextNode.kind === 210 /* ObjectLiteralExpression */; } function isFunctionCallContext(context) { - return context.contextNode.kind === 212 /* CallExpression */; + return context.contextNode.kind === 213 /* CallExpression */; } function isNewContext(context) { - return context.contextNode.kind === 213 /* NewExpression */; + return context.contextNode.kind === 214 /* NewExpression */; } function isFunctionCallOrNewContext(context) { return isFunctionCallContext(context) || isNewContext(context); @@ -167282,10 +169696,10 @@ ${options.prefix}` : "\n" : options.prefix return context.nextTokenSpan.kind !== 22 /* CloseParenToken */; } function isArrowFunctionContext(context) { - return context.contextNode.kind === 218 /* ArrowFunction */; + return context.contextNode.kind === 219 /* ArrowFunction */; } function isImportTypeContext(context) { - return context.contextNode.kind === 204 /* ImportType */; + return context.contextNode.kind === 205 /* ImportType */; } function isNonJsxSameLineTokenContext(context) { return context.TokensAreOnSameLine() && context.contextNode.kind !== 12 /* JsxText */; @@ -167294,19 +169708,19 @@ ${options.prefix}` : "\n" : options.prefix return context.contextNode.kind !== 12 /* JsxText */; } function isNonJsxElementOrFragmentContext(context) { - return context.contextNode.kind !== 283 /* JsxElement */ && context.contextNode.kind !== 287 /* JsxFragment */; + return context.contextNode.kind !== 284 /* JsxElement */ && context.contextNode.kind !== 288 /* JsxFragment */; } function isJsxExpressionContext(context) { - return context.contextNode.kind === 293 /* JsxExpression */ || context.contextNode.kind === 292 /* JsxSpreadAttribute */; + return context.contextNode.kind === 294 /* JsxExpression */ || context.contextNode.kind === 293 /* JsxSpreadAttribute */; } function isNextTokenParentJsxAttribute(context) { - return context.nextTokenParent.kind === 290 /* JsxAttribute */; + return context.nextTokenParent.kind === 291 /* JsxAttribute */; } function isJsxAttributeContext(context) { - return context.contextNode.kind === 290 /* JsxAttribute */; + return context.contextNode.kind === 291 /* JsxAttribute */; } function isJsxSelfClosingElementContext(context) { - return context.contextNode.kind === 284 /* JsxSelfClosingElement */; + return context.contextNode.kind === 285 /* JsxSelfClosingElement */; } function isNotBeforeBlockInFunctionDeclarationContext(context) { return !isFunctionDeclContext(context) && !isBeforeBlockContext(context); @@ -167318,44 +169732,44 @@ ${options.prefix}` : "\n" : options.prefix while (node && isExpression(node)) { node = node.parent; } - return node && node.kind === 169 /* Decorator */; + return node && node.kind === 170 /* Decorator */; } function isStartOfVariableDeclarationList(context) { - return context.currentTokenParent.kind === 260 /* VariableDeclarationList */ && context.currentTokenParent.getStart(context.sourceFile) === context.currentTokenSpan.pos; + return context.currentTokenParent.kind === 261 /* VariableDeclarationList */ && context.currentTokenParent.getStart(context.sourceFile) === context.currentTokenSpan.pos; } function isNotFormatOnEnter(context) { return context.formattingRequestKind !== 2 /* FormatOnEnter */; } function isModuleDeclContext(context) { - return context.contextNode.kind === 266 /* ModuleDeclaration */; + return context.contextNode.kind === 267 /* ModuleDeclaration */; } function isObjectTypeContext(context) { - return context.contextNode.kind === 186 /* TypeLiteral */; + return context.contextNode.kind === 187 /* TypeLiteral */; } function isConstructorSignatureContext(context) { - return context.contextNode.kind === 179 /* ConstructSignature */; + return context.contextNode.kind === 180 /* ConstructSignature */; } function isTypeArgumentOrParameterOrAssertion(token, parent2) { if (token.kind !== 30 /* LessThanToken */ && token.kind !== 32 /* GreaterThanToken */) { return false; } switch (parent2.kind) { - case 182 /* TypeReference */: - case 215 /* TypeAssertionExpression */: - case 264 /* TypeAliasDeclaration */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 232 /* ExpressionWithTypeArguments */: + case 183 /* TypeReference */: + case 216 /* TypeAssertionExpression */: + case 265 /* TypeAliasDeclaration */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 233 /* ExpressionWithTypeArguments */: return true; default: return false; @@ -167365,31 +169779,31 @@ ${options.prefix}` : "\n" : options.prefix return isTypeArgumentOrParameterOrAssertion(context.currentTokenSpan, context.currentTokenParent) || isTypeArgumentOrParameterOrAssertion(context.nextTokenSpan, context.nextTokenParent); } function isTypeAssertionContext(context) { - return context.contextNode.kind === 215 /* TypeAssertionExpression */; + return context.contextNode.kind === 216 /* TypeAssertionExpression */; } function isNonTypeAssertionContext(context) { return !isTypeAssertionContext(context); } function isVoidOpContext(context) { - return context.currentTokenSpan.kind === 116 /* VoidKeyword */ && context.currentTokenParent.kind === 221 /* VoidExpression */; + return context.currentTokenSpan.kind === 116 /* VoidKeyword */ && context.currentTokenParent.kind === 222 /* VoidExpression */; } function isYieldOrYieldStarWithOperand(context) { - return context.contextNode.kind === 228 /* YieldExpression */ && context.contextNode.expression !== void 0; + return context.contextNode.kind === 229 /* YieldExpression */ && context.contextNode.expression !== void 0; } function isNonNullAssertionContext(context) { - return context.contextNode.kind === 234 /* NonNullExpression */; + return context.contextNode.kind === 235 /* NonNullExpression */; } function isNotStatementConditionContext(context) { return !isStatementConditionContext(context); } function isStatementConditionContext(context) { switch (context.contextNode.kind) { - case 244 /* IfStatement */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: + case 245 /* IfStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: return true; default: return false; @@ -167415,16 +169829,16 @@ ${options.prefix}` : "\n" : options.prefix if (startLine === endLine) { return nextTokenKind === 20 /* CloseBraceToken */ || nextTokenKind === 1 /* EndOfFileToken */; } - if (nextTokenKind === 239 /* SemicolonClassElement */ || nextTokenKind === 27 /* SemicolonToken */) { + if (nextTokenKind === 240 /* SemicolonClassElement */ || nextTokenKind === 27 /* SemicolonToken */) { return false; } - if (context.contextNode.kind === 263 /* InterfaceDeclaration */ || context.contextNode.kind === 264 /* TypeAliasDeclaration */) { + if (context.contextNode.kind === 264 /* InterfaceDeclaration */ || context.contextNode.kind === 265 /* TypeAliasDeclaration */) { return !isPropertySignature(context.currentTokenParent) || !!context.currentTokenParent.type || nextTokenKind !== 21 /* OpenParenToken */; } if (isPropertyDeclaration(context.currentTokenParent)) { return !context.currentTokenParent.initializer; } - return context.currentTokenParent.kind !== 247 /* ForStatement */ && context.currentTokenParent.kind !== 241 /* EmptyStatement */ && context.currentTokenParent.kind !== 239 /* SemicolonClassElement */ && nextTokenKind !== 23 /* OpenBracketToken */ && nextTokenKind !== 21 /* OpenParenToken */ && nextTokenKind !== 40 /* PlusToken */ && nextTokenKind !== 41 /* MinusToken */ && nextTokenKind !== 44 /* SlashToken */ && nextTokenKind !== 14 /* RegularExpressionLiteral */ && nextTokenKind !== 28 /* CommaToken */ && nextTokenKind !== 227 /* TemplateExpression */ && nextTokenKind !== 16 /* TemplateHead */ && nextTokenKind !== 15 /* NoSubstitutionTemplateLiteral */ && nextTokenKind !== 25 /* DotToken */; + return context.currentTokenParent.kind !== 248 /* ForStatement */ && context.currentTokenParent.kind !== 242 /* EmptyStatement */ && context.currentTokenParent.kind !== 240 /* SemicolonClassElement */ && nextTokenKind !== 23 /* OpenBracketToken */ && nextTokenKind !== 21 /* OpenParenToken */ && nextTokenKind !== 40 /* PlusToken */ && nextTokenKind !== 41 /* MinusToken */ && nextTokenKind !== 44 /* SlashToken */ && nextTokenKind !== 14 /* RegularExpressionLiteral */ && nextTokenKind !== 28 /* CommaToken */ && nextTokenKind !== 228 /* TemplateExpression */ && nextTokenKind !== 16 /* TemplateHead */ && nextTokenKind !== 15 /* NoSubstitutionTemplateLiteral */ && nextTokenKind !== 25 /* DotToken */; } function isSemicolonInsertionContext(context) { return positionIsASICandidate(context.currentTokenSpan.end, context.currentTokenParent, context.sourceFile); @@ -167505,7 +169919,7 @@ ${options.prefix}` : "\n" : options.prefix return map2; } function getRuleBucketIndex(row, column) { - Debug.assert(row <= 164 /* LastKeyword */ && column <= 164 /* LastKeyword */, "Must compute formatting context from tokens"); + Debug.assert(row <= 165 /* LastKeyword */ && column <= 165 /* LastKeyword */, "Must compute formatting context from tokens"); return row * mapRowLength + column; } function addRule(rules, rule2, specificTokens, constructionState, rulesBucketIndex) { @@ -167535,7 +169949,7 @@ ${options.prefix}` : "\n" : options.prefix init_ts_formatting(); maskBitSize = 5; mask = 31; - mapRowLength = 164 /* LastToken */ + 1; + mapRowLength = 165 /* LastToken */ + 1; RulesPosition = ((RulesPosition2) => { RulesPosition2[RulesPosition2["StopRulesSpecific"] = 0] = "StopRulesSpecific"; RulesPosition2[RulesPosition2["StopRulesAny"] = maskBitSize * 1] = "StopRulesAny"; @@ -167627,17 +170041,17 @@ ${options.prefix}` : "\n" : options.prefix } function isListElement(parent2, node) { switch (parent2.kind) { - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: return rangeContainsRange(parent2.members, node); - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: const body = parent2.body; - return !!body && body.kind === 267 /* ModuleBlock */ && rangeContainsRange(body.statements, node); - case 311 /* SourceFile */: - case 240 /* Block */: - case 267 /* ModuleBlock */: + return !!body && body.kind === 268 /* ModuleBlock */ && rangeContainsRange(body.statements, node); + case 312 /* SourceFile */: + case 241 /* Block */: + case 268 /* ModuleBlock */: return rangeContainsRange(parent2.statements, node); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return rangeContainsRange(parent2.block.statements, node); } return false; @@ -167669,11 +170083,11 @@ ${options.prefix}` : "\n" : options.prefix if (index >= sorted.length) { return false; } - const error = sorted[index]; - if (r.end <= error.start) { + const error2 = sorted[index]; + if (r.end <= error2.start) { return false; } - if (startEndOverlapsWithStartEnd(r.pos, r.end, error.start, error.start + error.length)) { + if (startEndOverlapsWithStartEnd(r.pos, r.end, error2.start, error2.start + error2.length)) { return true; } index++; @@ -167778,7 +170192,8 @@ ${options.prefix}` : "\n" : options.prefix } processNode(enclosingNode, enclosingNode, startLine, undecoratedStartLine, initialIndentation, delta); } - if (!formattingScanner.isOnToken()) { + const remainingTrivia = formattingScanner.getCurrentLeadingTrivia(); + if (remainingTrivia) { const indentation = SmartIndenter.nodeWillIndentChild( options, enclosingNode, @@ -167788,25 +170203,30 @@ ${options.prefix}` : "\n" : options.prefix /*indentByDefault*/ false ) ? initialIndentation + options.indentSize : initialIndentation; - const leadingTrivia = formattingScanner.getCurrentLeadingTrivia(); - if (leadingTrivia) { - indentTriviaItems( - leadingTrivia, - indentation, - /*indentNextTokenOrTrivia*/ - false, - (item) => processRange( + indentTriviaItems( + remainingTrivia, + indentation, + /*indentNextTokenOrTrivia*/ + true, + (item) => { + processRange( item, sourceFile.getLineAndCharacterOfPosition(item.pos), enclosingNode, enclosingNode, /*dynamicIndentation*/ void 0 - ) - ); - if (options.trimTrailingWhitespace !== false) { - trimTrailingWhitespacesForRemainingRange(leadingTrivia); + ); + insertIndentation( + item.pos, + indentation, + /*lineAdded*/ + false + ); } + ); + if (options.trimTrailingWhitespace !== false) { + trimTrailingWhitespacesForRemainingRange(remainingTrivia); } } if (previousRange && formattingScanner.getTokenFullStart() >= originalRange.end) { @@ -167869,24 +170289,24 @@ ${options.prefix}` : "\n" : options.prefix return modifier.kind; } switch (node.kind) { - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return 86 /* ClassKeyword */; - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: return 120 /* InterfaceKeyword */; - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return 100 /* FunctionKeyword */; - case 265 /* EnumDeclaration */: - return 265 /* EnumDeclaration */; - case 176 /* GetAccessor */: + case 266 /* EnumDeclaration */: + return 266 /* EnumDeclaration */; + case 177 /* GetAccessor */: return 139 /* GetKeyword */; - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return 153 /* SetKeyword */; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: if (node.asteriskToken) { return 42 /* AsteriskToken */; } - case 171 /* PropertyDeclaration */: - case 168 /* Parameter */: + case 172 /* PropertyDeclaration */: + case 169 /* Parameter */: const name = getNameOfDeclaration(node); if (name) { return name.kind; @@ -167936,15 +170356,15 @@ ${options.prefix}` : "\n" : options.prefix case 44 /* SlashToken */: case 32 /* GreaterThanToken */: switch (container.kind) { - case 285 /* JsxOpeningElement */: - case 286 /* JsxClosingElement */: - case 284 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 287 /* JsxClosingElement */: + case 285 /* JsxSelfClosingElement */: return false; } break; case 23 /* OpenBracketToken */: case 24 /* CloseBracketToken */: - if (container.kind !== 199 /* MappedType */) { + if (container.kind !== 200 /* MappedType */) { return false; } break; @@ -168045,11 +170465,11 @@ ${options.prefix}` : "\n" : options.prefix return inheritedIndentation; } } - const effectiveParentStartLine = child.kind === 169 /* Decorator */ ? childStartLine : undecoratedParentStartLine; + const effectiveParentStartLine = child.kind === 170 /* Decorator */ ? childStartLine : undecoratedParentStartLine; const childIndentation = computeIndentation(child, childStartLine, childIndentationAmount, node, parentDynamicIndentation, effectiveParentStartLine); processNode(child, childContextNode, childStartLine, undecoratedChildStartLine, childIndentation.indentation, childIndentation.delta); childContextNode = node; - if (isFirstListItem && parent2.kind === 208 /* ArrayLiteralExpression */ && inheritedIndentation === -1 /* Unknown */) { + if (isFirstListItem && parent2.kind === 209 /* ArrayLiteralExpression */ && inheritedIndentation === -1 /* Unknown */) { inheritedIndentation = childIndentation.indentation; } return inheritedIndentation; @@ -168470,50 +170890,50 @@ ${options.prefix}` : "\n" : options.prefix } function getOpenTokenForList(node, list) { switch (node.kind) { - case 175 /* Constructor */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 218 /* ArrowFunction */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 176 /* Constructor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 219 /* ArrowFunction */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: if (node.typeParameters === list) { return 30 /* LessThanToken */; } else if (node.parameters === list) { return 21 /* OpenParenToken */; } break; - case 212 /* CallExpression */: - case 213 /* NewExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: if (node.typeArguments === list) { return 30 /* LessThanToken */; } else if (node.arguments === list) { return 21 /* OpenParenToken */; } break; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: if (node.typeParameters === list) { return 30 /* LessThanToken */; } break; - case 182 /* TypeReference */: - case 214 /* TaggedTemplateExpression */: - case 185 /* TypeQuery */: - case 232 /* ExpressionWithTypeArguments */: - case 204 /* ImportType */: + case 183 /* TypeReference */: + case 215 /* TaggedTemplateExpression */: + case 186 /* TypeQuery */: + case 233 /* ExpressionWithTypeArguments */: + case 205 /* ImportType */: if (node.typeArguments === list) { return 30 /* LessThanToken */; } break; - case 186 /* TypeLiteral */: + case 187 /* TypeLiteral */: return 19 /* OpenBraceToken */; } return 0 /* Unknown */; @@ -168613,11 +171033,11 @@ ${options.prefix}` : "\n" : options.prefix } const lineAtPosition = sourceFile.getLineAndCharacterOfPosition(position).line; const currentToken = getTokenAtPosition(sourceFile, position); - const isObjectLiteral = currentToken.kind === 19 /* OpenBraceToken */ && currentToken.parent.kind === 209 /* ObjectLiteralExpression */; + const isObjectLiteral = currentToken.kind === 19 /* OpenBraceToken */ && currentToken.parent.kind === 210 /* ObjectLiteralExpression */; if (options.indentStyle === 1 /* Block */ || isObjectLiteral) { return getBlockIndent(sourceFile, position, options); } - if (precedingToken.kind === 28 /* CommaToken */ && precedingToken.parent.kind !== 225 /* BinaryExpression */) { + if (precedingToken.kind === 28 /* CommaToken */ && precedingToken.parent.kind !== 226 /* BinaryExpression */) { const actualIndentation = getActualIndentationForListItemBeforeComma(precedingToken, sourceFile, options); if (actualIndentation !== -1 /* Unknown */) { return actualIndentation; @@ -168625,7 +171045,7 @@ ${options.prefix}` : "\n" : options.prefix } const containerList = getListByPosition(position, precedingToken.parent, sourceFile); if (containerList && !rangeContainsRange(containerList, precedingToken)) { - const useTheSameBaseIndentation = [217 /* FunctionExpression */, 218 /* ArrowFunction */].indexOf(currentToken.parent.kind) !== -1; + const useTheSameBaseIndentation = [218 /* FunctionExpression */, 219 /* ArrowFunction */].indexOf(currentToken.parent.kind) !== -1; const indentSize = useTheSameBaseIndentation ? 0 : options.indentSize; return getActualIndentationForListStartLine(containerList, sourceFile, options) + indentSize; } @@ -168767,7 +171187,7 @@ ${options.prefix}` : "\n" : options.prefix } } function getActualIndentationForNode(current, parent2, currentLineAndChar, parentAndChildShareLine, sourceFile, options) { - const useActualIndentation = (isDeclaration(current) || isStatementButNotDeclaration(current)) && (parent2.kind === 311 /* SourceFile */ || !parentAndChildShareLine); + const useActualIndentation = (isDeclaration(current) || isStatementButNotDeclaration(current)) && (parent2.kind === 312 /* SourceFile */ || !parentAndChildShareLine); if (!useActualIndentation) { return -1 /* Unknown */; } @@ -168805,7 +171225,7 @@ ${options.prefix}` : "\n" : options.prefix } SmartIndenter2.isArgumentAndStartLineOverlapsExpressionBeingCalled = isArgumentAndStartLineOverlapsExpressionBeingCalled; function childStartsOnTheSameLineWithElseInIfStatement(parent2, child, childStartLine, sourceFile) { - if (parent2.kind === 244 /* IfStatement */ && parent2.elseStatement === child) { + if (parent2.kind === 245 /* IfStatement */ && parent2.elseStatement === child) { const elseKeyword = findChildOfKind(parent2, 93 /* ElseKeyword */, sourceFile); Debug.assert(elseKeyword !== void 0); const elseKeywordStartLine = getStartLineAndCharacterForNode(elseKeyword, sourceFile).line; @@ -168856,42 +171276,42 @@ ${options.prefix}` : "\n" : options.prefix } function getListByRange(start, end, node, sourceFile) { switch (node.kind) { - case 182 /* TypeReference */: + case 183 /* TypeReference */: return getList(node.typeArguments); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return getList(node.properties); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return getList(node.elements); - case 186 /* TypeLiteral */: + case 187 /* TypeLiteral */: return getList(node.members); - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 178 /* CallSignature */: - case 175 /* Constructor */: - case 184 /* ConstructorType */: - case 179 /* ConstructSignature */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 176 /* Constructor */: + case 185 /* ConstructorType */: + case 180 /* ConstructSignature */: return getList(node.typeParameters) || getList(node.parameters); - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return getList(node.parameters); - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 351 /* JSDocTemplateTag */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 352 /* JSDocTemplateTag */: return getList(node.typeParameters); - case 213 /* NewExpression */: - case 212 /* CallExpression */: + case 214 /* NewExpression */: + case 213 /* CallExpression */: return getList(node.typeArguments) || getList(node.arguments); - case 260 /* VariableDeclarationList */: + case 261 /* VariableDeclarationList */: return getList(node.declarations); - case 274 /* NamedImports */: - case 278 /* NamedExports */: + case 275 /* NamedImports */: + case 279 /* NamedExports */: return getList(node.elements); - case 205 /* ObjectBindingPattern */: - case 206 /* ArrayBindingPattern */: + case 206 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: return getList(node.elements); } function getList(list) { @@ -168914,7 +171334,7 @@ ${options.prefix}` : "\n" : options.prefix return findColumnForFirstNonWhitespaceCharacterInLine(sourceFile.getLineAndCharacterOfPosition(list.pos), sourceFile, options); } function getActualIndentationForListItem(node, sourceFile, options, listIndentsChild) { - if (node.parent && node.parent.kind === 260 /* VariableDeclarationList */) { + if (node.parent && node.parent.kind === 261 /* VariableDeclarationList */) { return -1 /* Unknown */; } const containingList = getContainingList(node, sourceFile); @@ -168975,96 +171395,96 @@ ${options.prefix}` : "\n" : options.prefix function nodeWillIndentChild(settings, parent2, child, sourceFile, indentByDefault) { const childKind = child ? child.kind : 0 /* Unknown */; switch (parent2.kind) { - case 243 /* ExpressionStatement */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 208 /* ArrayLiteralExpression */: - case 240 /* Block */: - case 267 /* ModuleBlock */: - case 209 /* ObjectLiteralExpression */: - case 186 /* TypeLiteral */: - case 199 /* MappedType */: - case 188 /* TupleType */: - case 216 /* ParenthesizedExpression */: - case 210 /* PropertyAccessExpression */: - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 242 /* VariableStatement */: - case 276 /* ExportAssignment */: - case 252 /* ReturnStatement */: - case 226 /* ConditionalExpression */: - case 206 /* ArrayBindingPattern */: - case 205 /* ObjectBindingPattern */: - case 285 /* JsxOpeningElement */: - case 288 /* JsxOpeningFragment */: - case 284 /* JsxSelfClosingElement */: - case 293 /* JsxExpression */: - case 172 /* MethodSignature */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 168 /* Parameter */: - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 195 /* ParenthesizedType */: - case 214 /* TaggedTemplateExpression */: - case 222 /* AwaitExpression */: - case 278 /* NamedExports */: - case 274 /* NamedImports */: - case 280 /* ExportSpecifier */: - case 275 /* ImportSpecifier */: - case 171 /* PropertyDeclaration */: - case 295 /* CaseClause */: - case 296 /* DefaultClause */: + case 244 /* ExpressionStatement */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 209 /* ArrayLiteralExpression */: + case 241 /* Block */: + case 268 /* ModuleBlock */: + case 210 /* ObjectLiteralExpression */: + case 187 /* TypeLiteral */: + case 200 /* MappedType */: + case 189 /* TupleType */: + case 217 /* ParenthesizedExpression */: + case 211 /* PropertyAccessExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 243 /* VariableStatement */: + case 277 /* ExportAssignment */: + case 253 /* ReturnStatement */: + case 227 /* ConditionalExpression */: + case 207 /* ArrayBindingPattern */: + case 206 /* ObjectBindingPattern */: + case 286 /* JsxOpeningElement */: + case 289 /* JsxOpeningFragment */: + case 285 /* JsxSelfClosingElement */: + case 294 /* JsxExpression */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 169 /* Parameter */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 196 /* ParenthesizedType */: + case 215 /* TaggedTemplateExpression */: + case 223 /* AwaitExpression */: + case 279 /* NamedExports */: + case 275 /* NamedImports */: + case 281 /* ExportSpecifier */: + case 276 /* ImportSpecifier */: + case 172 /* PropertyDeclaration */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: return true; - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: return settings.indentSwitchCase ?? true; - case 259 /* VariableDeclaration */: - case 302 /* PropertyAssignment */: - case 225 /* BinaryExpression */: - if (!settings.indentMultiLineObjectLiteralBeginningOnBlankLine && sourceFile && childKind === 209 /* ObjectLiteralExpression */) { + case 260 /* VariableDeclaration */: + case 303 /* PropertyAssignment */: + case 226 /* BinaryExpression */: + if (!settings.indentMultiLineObjectLiteralBeginningOnBlankLine && sourceFile && childKind === 210 /* ObjectLiteralExpression */) { return rangeIsOnOneLine(sourceFile, child); } - if (parent2.kind === 225 /* BinaryExpression */ && sourceFile && child && childKind === 283 /* JsxElement */) { + if (parent2.kind === 226 /* BinaryExpression */ && sourceFile && child && childKind === 284 /* JsxElement */) { const parentStartLine = sourceFile.getLineAndCharacterOfPosition(skipTrivia(sourceFile.text, parent2.pos)).line; const childStartLine = sourceFile.getLineAndCharacterOfPosition(skipTrivia(sourceFile.text, child.pos)).line; return parentStartLine !== childStartLine; } - if (parent2.kind !== 225 /* BinaryExpression */) { + if (parent2.kind !== 226 /* BinaryExpression */) { return true; } break; - case 245 /* DoStatement */: - case 246 /* WhileStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 247 /* ForStatement */: - case 244 /* IfStatement */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 173 /* MethodDeclaration */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - return childKind !== 240 /* Block */; - case 218 /* ArrowFunction */: - if (sourceFile && childKind === 216 /* ParenthesizedExpression */) { + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 248 /* ForStatement */: + case 245 /* IfStatement */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + return childKind !== 241 /* Block */; + case 219 /* ArrowFunction */: + if (sourceFile && childKind === 217 /* ParenthesizedExpression */) { return rangeIsOnOneLine(sourceFile, child); } - return childKind !== 240 /* Block */; - case 277 /* ExportDeclaration */: - return childKind !== 278 /* NamedExports */; - case 271 /* ImportDeclaration */: - return childKind !== 272 /* ImportClause */ || !!child.namedBindings && child.namedBindings.kind !== 274 /* NamedImports */; - case 283 /* JsxElement */: - return childKind !== 286 /* JsxClosingElement */; - case 287 /* JsxFragment */: - return childKind !== 289 /* JsxClosingFragment */; - case 192 /* IntersectionType */: - case 191 /* UnionType */: - if (childKind === 186 /* TypeLiteral */ || childKind === 188 /* TupleType */) { + return childKind !== 241 /* Block */; + case 278 /* ExportDeclaration */: + return childKind !== 279 /* NamedExports */; + case 272 /* ImportDeclaration */: + return childKind !== 273 /* ImportClause */ || !!child.namedBindings && child.namedBindings.kind !== 275 /* NamedImports */; + case 284 /* JsxElement */: + return childKind !== 287 /* JsxClosingElement */; + case 288 /* JsxFragment */: + return childKind !== 290 /* JsxClosingFragment */; + case 193 /* IntersectionType */: + case 192 /* UnionType */: + if (childKind === 187 /* TypeLiteral */ || childKind === 189 /* TupleType */) { return false; } break; @@ -169074,11 +171494,11 @@ ${options.prefix}` : "\n" : options.prefix SmartIndenter2.nodeWillIndentChild = nodeWillIndentChild; function isControlFlowEndingStatement(kind, parent2) { switch (kind) { - case 252 /* ReturnStatement */: - case 256 /* ThrowStatement */: - case 250 /* ContinueStatement */: - case 251 /* BreakStatement */: - return parent2.kind !== 240 /* Block */; + case 253 /* ReturnStatement */: + case 257 /* ThrowStatement */: + case 251 /* ContinueStatement */: + case 252 /* BreakStatement */: + return parent2.kind !== 241 /* Block */; default: return false; } @@ -169188,11 +171608,11 @@ ${options.prefix}` : "\n" : options.prefix function getTypeScriptVersion() { return typeScriptVersion2 ?? (typeScriptVersion2 = new Version(version)); } - function formatDeprecationMessage(name, error, errorAfter, since, message) { - let deprecationMessage = error ? "DeprecationError: " : "DeprecationWarning: "; + function formatDeprecationMessage(name, error2, errorAfter, since, message) { + let deprecationMessage = error2 ? "DeprecationError: " : "DeprecationWarning: "; deprecationMessage += `'${name}' `; deprecationMessage += since ? `has been deprecated since v${since}` : "is deprecated"; - deprecationMessage += error ? " and can no longer be used." : errorAfter ? ` and will no longer be usable after v${errorAfter}.` : "."; + deprecationMessage += error2 ? " and can no longer be used." : errorAfter ? ` and will no longer be usable after v${errorAfter}.` : "."; deprecationMessage += message ? ` ${formatStringFromArgs(message, [name], 0)}` : ""; return deprecationMessage; } @@ -169230,9 +171650,9 @@ ${options.prefix}` : "\n" : options.prefix const errorAfter = typeof options.errorAfter === "string" ? new Version(options.errorAfter) : options.errorAfter; const warnAfter = typeof options.warnAfter === "string" ? new Version(options.warnAfter) : options.warnAfter; const since = typeof options.since === "string" ? new Version(options.since) : options.since ?? warnAfter; - const error = options.error || errorAfter && version2.compareTo(errorAfter) >= 0; + const error2 = options.error || errorAfter && version2.compareTo(errorAfter) >= 0; const warn = !warnAfter || version2.compareTo(warnAfter) >= 0; - return error ? createErrorDeprecation(name, errorAfter, since, options.message) : warn ? createWarningDeprecation(name, errorAfter, since, options.message) : noop; + return error2 ? createErrorDeprecation(name, errorAfter, since, options.message) : warn ? createWarningDeprecation(name, errorAfter, since, options.message) : noop; } function wrapFunction(deprecation, func) { return function() { @@ -169312,9 +171732,9 @@ ${options.prefix}` : "\n" : options.prefix init_ts5(); init_deprecate(); addObjectAllocatorPatcher((objectAllocator2) => { - const Identifier74 = objectAllocator2.getIdentifierConstructor(); - if (!hasProperty(Identifier74.prototype, "originalKeywordKind")) { - Object.defineProperty(Identifier74.prototype, "originalKeywordKind", { + const Identifier78 = objectAllocator2.getIdentifierConstructor(); + if (!hasProperty(Identifier78.prototype, "originalKeywordKind")) { + Object.defineProperty(Identifier78.prototype, "originalKeywordKind", { get: deprecate(function() { return identifierToKeywordKind(this); }, { @@ -169326,10 +171746,10 @@ ${options.prefix}` : "\n" : options.prefix }) }); } - if (!hasProperty(Identifier74.prototype, "isInJSDocNamespace")) { - Object.defineProperty(Identifier74.prototype, "isInJSDocNamespace", { + if (!hasProperty(Identifier78.prototype, "isInJSDocNamespace")) { + Object.defineProperty(Identifier78.prototype, "isInJSDocNamespace", { get: deprecate(function() { - return this.flags & 2048 /* IdentifierIsInJSDocNamespace */ ? true : void 0; + return this.flags & 4096 /* IdentifierIsInJSDocNamespace */ ? true : void 0; }, { name: "isInJSDocNamespace", since: "5.0", @@ -169881,7 +172301,7 @@ ${options.prefix}` : "\n" : options.prefix "use strict"; init_ts7(); init_ts_server3(); - ThrottledOperations = class { + ThrottledOperations = class _ThrottledOperations { constructor(host, logger) { this.host = host; this.pendingTimeouts = /* @__PURE__ */ new Map(); @@ -169898,7 +172318,7 @@ ${options.prefix}` : "\n" : options.prefix if (pendingTimeout) { this.host.clearTimeout(pendingTimeout); } - this.pendingTimeouts.set(operationId, this.host.setTimeout(ThrottledOperations.run, delay, operationId, this, cb)); + this.pendingTimeouts.set(operationId, this.host.setTimeout(_ThrottledOperations.run, delay, operationId, this, cb)); if (this.logger) { this.logger.info(`Scheduled: ${operationId}${pendingTimeout ? ", Cancelled earlier one" : ""}`); } @@ -169921,7 +172341,7 @@ ${options.prefix}` : "\n" : options.prefix (_b = perfLogger) == null ? void 0 : _b.logStopScheduledOperation(); } }; - GcTimer = class { + GcTimer = class _GcTimer { constructor(host, delay, logger) { this.host = host; this.delay = delay; @@ -169931,7 +172351,7 @@ ${options.prefix}` : "\n" : options.prefix if (!this.host.gc || this.timerId !== void 0) { return; } - this.timerId = this.host.setTimeout(GcTimer.run, this.delay, this); + this.timerId = this.host.setTimeout(_GcTimer.run, this.delay, this); } static run(self) { var _a, _b; @@ -170927,7 +173347,7 @@ ${options.prefix}` : "\n" : options.prefix ProjectKind2[ProjectKind2["Auxiliary"] = 4] = "Auxiliary"; return ProjectKind2; })(ProjectKind || {}); - Project3 = class { + Project3 = class _Project { /** @internal */ constructor(projectName, projectKind, projectService, documentRegistry, hasExplicitListOfFiles, lastFileExceededProgramSize, compilerOptions, compileOnSaveEnabled, watchOptions, directoryStructureHost, currentDirectory) { this.projectKind = projectKind; @@ -171044,7 +173464,7 @@ ${options.prefix}` : "\n" : options.prefix return hasOneOrMoreJsAndNoTsFiles(this); } static resolveModule(moduleName, initialDir, host, log) { - return Project3.importServicePluginSync({ name: moduleName }, [initialDir], host, log).resolvedModule; + return _Project.importServicePluginSync({ name: moduleName }, [initialDir], host, log).resolvedModule; } /** @internal */ static importServicePluginSync(pluginConfigEntry, searchPaths, host, log) { @@ -171421,6 +173841,16 @@ ${options.prefix}` : "\n" : options.prefix true ); } + /** @internal */ + cleanupProgram() { + if (this.program) { + for (const f of this.program.getSourceFiles()) { + this.detachScriptInfoIfNotRoot(f.fileName); + } + this.program.forEachResolvedProjectReference((ref) => this.detachScriptInfoFromProject(ref.sourceFile.fileName)); + this.program = void 0; + } + } disableLanguageService(lastFileExceededProgramSize) { if (!this.languageServiceEnabled) { return; @@ -171428,6 +173858,7 @@ ${options.prefix}` : "\n" : options.prefix Debug.assert(this.projectService.serverMode !== 2 /* Syntactic */); this.languageService.cleanupSemanticCache(); this.languageServiceEnabled = false; + this.cleanupProgram(); this.lastFileExceededProgramSize = lastFileExceededProgramSize; this.builderState = void 0; if (this.autoImportProviderHost) { @@ -171436,6 +173867,7 @@ ${options.prefix}` : "\n" : options.prefix this.autoImportProviderHost = void 0; this.resolutionCache.closeTypeRootsWatch(); this.clearGeneratedFileWatch(); + this.projectService.verifyDocumentRegistry(); this.projectService.onUpdateLanguageServiceStateForProject( this, /*languageServiceEnabled*/ @@ -171479,12 +173911,7 @@ ${options.prefix}` : "\n" : options.prefix close() { this.projectService.typingsCache.onProjectClosed(this); this.closeWatchingTypingLocations(); - if (this.program) { - for (const f of this.program.getSourceFiles()) { - this.detachScriptInfoIfNotRoot(f.fileName); - } - this.program.forEachResolvedProjectReference((ref) => this.detachScriptInfoFromProject(ref.sourceFile.fileName)); - } + this.cleanupProgram(); forEach(this.externalFiles, (externalFile) => this.detachScriptInfoIfNotRoot(externalFile)); for (const root of this.rootFiles) { root.detachFromProject(this); @@ -171862,6 +174289,7 @@ ${options.prefix}` : "\n" : options.prefix updateGraphWorker() { var _a, _b; const oldProgram = this.languageService.getCurrentProgram(); + Debug.assert(oldProgram === this.program); Debug.assert(!this.isClosed(), "Called update graph worker of closed project"); this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`); const start = timestamp(); @@ -171992,6 +174420,7 @@ ${options.prefix}` : "\n" : options.prefix } else if (this.program !== oldProgram) { this.writeLog(`Different program with same set of files`); } + this.projectService.verifyDocumentRegistry(); return hasNewProgram; } /** @internal */ @@ -172388,7 +174817,7 @@ ${options.prefix}` : "\n" : options.prefix return this.projectService.includePackageJsonAutoImports(); } /** @internal */ - getModuleResolutionHostForAutoImportProvider() { + getHostForAutoImportProvider() { var _a, _b; if (this.program) { return { @@ -172399,7 +174828,8 @@ ${options.prefix}` : "\n" : options.prefix readFile: this.projectService.host.readFile.bind(this.projectService.host), getDirectories: this.projectService.host.getDirectories.bind(this.projectService.host), trace: (_b = this.projectService.host.trace) == null ? void 0 : _b.bind(this.projectService.host), - useCaseSensitiveFileNames: this.program.useCaseSensitiveFileNames() + useCaseSensitiveFileNames: this.program.useCaseSensitiveFileNames(), + readDirectory: this.projectService.host.readDirectory.bind(this.projectService.host) }; } return this.projectService.host; @@ -172427,7 +174857,7 @@ ${options.prefix}` : "\n" : options.prefix if (dependencySelection) { (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.Session, "getPackageJsonAutoImportProvider"); const start = timestamp(); - this.autoImportProviderHost = AutoImportProviderProject.create(dependencySelection, this, this.getModuleResolutionHostForAutoImportProvider(), this.documentRegistry); + this.autoImportProviderHost = AutoImportProviderProject.create(dependencySelection, this, this.getHostForAutoImportProvider(), this.documentRegistry); if (this.autoImportProviderHost) { updateProjectIfDirty(this.autoImportProviderHost); this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider", timestamp() - start); @@ -172614,12 +175044,11 @@ ${options.prefix}` : "\n" : options.prefix isOrphan() { return true; } - /** @internal */ scheduleInvalidateResolutionsOfFailedLookupLocations() { return; } }; - _AutoImportProviderProject = class extends Project3 { + _AutoImportProviderProject = class _AutoImportProviderProject extends Project3 { /** @internal */ constructor(hostProject, initialRootNames, documentRegistry, compilerOptions) { super( @@ -172644,7 +175073,7 @@ ${options.prefix}` : "\n" : options.prefix this.getParsedCommandLine = maybeBind(this.hostProject, this.hostProject.getParsedCommandLine); } /** @internal */ - static getRootFileNames(dependencySelection, hostProject, moduleResolutionHost, compilerOptions) { + static getRootFileNames(dependencySelection, hostProject, host, compilerOptions) { var _a, _b; if (!dependencySelection) { return emptyArray; @@ -172674,7 +175103,7 @@ ${options.prefix}` : "\n" : options.prefix name, hostProject.currentDirectory, compilerOptions, - moduleResolutionHost, + host, program.getModuleResolutionCache() ); if (packageJson) { @@ -172691,7 +175120,7 @@ ${options.prefix}` : "\n" : options.prefix `@types/${name}`, directory, compilerOptions, - moduleResolutionHost, + host, program.getModuleResolutionCache() ); if (typesPackageJson) { @@ -172731,12 +175160,12 @@ ${options.prefix}` : "\n" : options.prefix const entrypoints = getEntrypointsFromPackageJsonInfo( packageJson, compilerOptions, - moduleResolutionHost, + host, program2.getModuleResolutionCache(), resolveJs ); if (entrypoints) { - const real = (_a2 = moduleResolutionHost.realpath) == null ? void 0 : _a2.call(moduleResolutionHost, packageJson.packageDirectory); + const real = (_a2 = host.realpath) == null ? void 0 : _a2.call(host, packageJson.packageDirectory); const isSymlink = real && real !== packageJson.packageDirectory; if (isSymlink) { symlinkCache.setSymlinkedDirectory(packageJson.packageDirectory, { @@ -172754,7 +175183,7 @@ ${options.prefix}` : "\n" : options.prefix } } /** @internal */ - static create(dependencySelection, hostProject, moduleResolutionHost, documentRegistry) { + static create(dependencySelection, hostProject, host, documentRegistry) { if (dependencySelection === 0 /* Off */) { return void 0; } @@ -172762,7 +175191,7 @@ ${options.prefix}` : "\n" : options.prefix ...hostProject.getCompilerOptions(), ...this.compilerOptionsOverrides }; - const rootNames = this.getRootFileNames(dependencySelection, hostProject, moduleResolutionHost, compilerOptions); + const rootNames = this.getRootFileNames(dependencySelection, hostProject, host, compilerOptions); if (!rootNames.length) { return void 0; } @@ -172781,7 +175210,7 @@ ${options.prefix}` : "\n" : options.prefix rootFileNames = _AutoImportProviderProject.getRootFileNames( this.hostProject.includePackageJsonAutoImports(), this.hostProject, - this.hostProject.getModuleResolutionHostForAutoImportProvider(), + this.hostProject.getHostForAutoImportProvider(), this.getCompilationSettings() ); } @@ -172820,7 +175249,7 @@ ${options.prefix}` : "\n" : options.prefix onPackageJsonChange() { throw new Error("package.json changes should be notified on an AutoImportProvider's host project"); } - getModuleResolutionHostForAutoImportProvider() { + getHostForAutoImportProvider() { throw new Error("AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead."); } getProjectReferences() { @@ -172843,11 +175272,10 @@ ${options.prefix}` : "\n" : options.prefix return (_a = this.hostProject.getCurrentProgram()) == null ? void 0 : _a.getModuleResolutionCache(); } }; - AutoImportProviderProject = _AutoImportProviderProject; /** @internal */ - AutoImportProviderProject.maxDependencies = 10; + _AutoImportProviderProject.maxDependencies = 10; /** @internal */ - AutoImportProviderProject.compilerOptionsOverrides = { + _AutoImportProviderProject.compilerOptionsOverrides = { diagnostics: false, skipLibCheck: true, sourceMap: false, @@ -172855,6 +175283,7 @@ ${options.prefix}` : "\n" : options.prefix lib: emptyArray, noLib: true }; + AutoImportProviderProject = _AutoImportProviderProject; ConfiguredProject2 = class extends Project3 { /** @internal */ constructor(configFileName, canonicalConfigFilePath, projectService, documentRegistry, cachedDirectoryStructureHost) { @@ -173377,7 +175806,7 @@ ${options.prefix}` : "\n" : options.prefix defaultTypeSafeList = { "jquery": { // jquery files can have names like "jquery-1.10.2.min.js" (or "jquery.intellisense.js") - match: /jquery(-[\d\.]+)?(\.intellisense)?(\.min)?\.js$/i, + match: /jquery(-[\d.]+)?(\.intellisense)?(\.min)?\.js$/i, types: ["jquery"] }, "WinJS": { @@ -173442,7 +175871,7 @@ ${options.prefix}` : "\n" : options.prefix ProjectReferenceProjectLoadKind2[ProjectReferenceProjectLoadKind2["FindCreateLoad"] = 2] = "FindCreateLoad"; return ProjectReferenceProjectLoadKind2; })(ProjectReferenceProjectLoadKind || {}); - _ProjectService = class { + _ProjectService = class _ProjectService { constructor(opts) { /** * Container of all known scripts @@ -173520,6 +175949,9 @@ ${options.prefix}` : "\n" : options.prefix this.sharedExtendedConfigFileWatchers = /* @__PURE__ */ new Map(); /** @internal */ this.extendedConfigCache = /* @__PURE__ */ new Map(); + /** @internal */ + this.verifyDocumentRegistry = noop; + var _a; this.host = opts.host; this.logger = opts.logger; this.cancellationToken = opts.cancellationToken; @@ -173567,6 +175999,7 @@ ${options.prefix}` : "\n" : options.prefix watchFile: returnNoopFileWatcher, watchDirectory: returnNoopFileWatcher } : getWatchFactory(this.host, watchLogLevel, log, getDetailWatchInfo); + (_a = opts.incrementalVerifier) == null ? void 0 : _a.call(opts, this); } toPath(fileName) { return toPath(fileName, this.currentDirectory, this.toCanonicalFileName); @@ -174895,6 +177328,7 @@ ${options.prefix}` : "\n" : options.prefix /*ensureSynchronized*/ false ).cleanupSemanticCache(); + project.cleanupProgram(); project.markAsDirty(); } sendConfigFileDiagEvent(project, triggerFile) { @@ -176100,7 +178534,7 @@ Dynamic files must always be opened with service's current directory or service } } if (!exclude) { - if (/^.+[\.-]min\.js$/.test(normalizedNames[i])) { + if (/^.+[.-]min\.js$/.test(normalizedNames[i])) { excludedFiles.push(normalizedNames[i]); } else { filesToKeep.push(proj.rootFiles[i]); @@ -176420,9 +178854,9 @@ Dynamic files must always be opened with service's current directory or service return this.incompleteCompletionsCache || (this.incompleteCompletionsCache = createIncompleteCompletionsCache()); } }; - ProjectService3 = _ProjectService; /** Makes a filename safe to insert in a RegExp */ - ProjectService3.filenameEscapeRegexp = /[-\/\\^$*+?.()|[\]{}]/g; + _ProjectService.filenameEscapeRegexp = /[-/\\^$*+?.()|[\]{}]/g; + ProjectService3 = _ProjectService; } }); @@ -177158,7 +179592,7 @@ ${json}${newLine}`; "documentHighlights" /* DocumentHighlights */, "documentHighlights-full" /* DocumentHighlightsFull */ ]; - Session3 = class { + Session3 = class _Session { constructor(opts) { this.changeSeq = 0; this.handlers = new Map(Object.entries({ @@ -177833,7 +180267,8 @@ ${json}${newLine}`; allowLocalPluginLoads: opts.allowLocalPluginLoads, typesMapLocation: opts.typesMapLocation, serverMode: opts.serverMode, - session: this + session: this, + incrementalVerifier: opts.incrementalVerifier }; this.projectService = new ProjectService3(settings); this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)); @@ -178153,6 +180588,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter /*ensureSynchronized*/ false ).cleanupSemanticCache(); + p.cleanupProgram(); } } cleanup() { @@ -178259,7 +180695,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter const { file, project } = this.getFileAndProject(args); const position = this.getPositionInFile(args, file); const definitions = this.mapDefinitionInfoLocations(project.getLanguageService().getDefinitionAtPosition(file, position) || emptyArray2, project); - return simplifiedResult ? this.mapDefinitionInfo(definitions, project) : definitions.map(Session3.mapToOriginalLocation); + return simplifiedResult ? this.mapDefinitionInfo(definitions, project) : definitions.map(_Session.mapToOriginalLocation); } mapDefinitionInfoLocations(definitions, project) { return definitions.map((info) => { @@ -178296,7 +180732,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter }; } return { - definitions: definitions.map(Session3.mapToOriginalLocation), + definitions: definitions.map(_Session.mapToOriginalLocation), textSpan }; } @@ -178418,7 +180854,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter } const initialNode = getTouchingPropertyName(program.getSourceFile(file), position); const symbol = program.getTypeChecker().getSymbolAtLocation(initialNode); - const importSpecifier = symbol && getDeclarationOfKind(symbol, 275 /* ImportSpecifier */); + const importSpecifier = symbol && getDeclarationOfKind(symbol, 276 /* ImportSpecifier */); if (!importSpecifier) return void 0; const nameToSearch = ((_a2 = importSpecifier.propertyName) == null ? void 0 : _a2.text) || importSpecifier.name.text; @@ -178553,7 +180989,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter const { file, project } = this.getFileAndProject(args); const position = this.getPositionInFile(args, file); const implementations = this.mapImplementationLocations(project.getLanguageService().getImplementationAtPosition(file, position) || emptyArray2, project); - return simplifiedResult ? implementations.map(({ fileName, textSpan, contextSpan }) => this.toFileSpanWithContext(fileName, textSpan, contextSpan, project)) : implementations.map(Session3.mapToOriginalLocation); + return simplifiedResult ? implementations.map(({ fileName, textSpan, contextSpan }) => this.toFileSpanWithContext(fileName, textSpan, contextSpan, project)) : implementations.map(_Session.mapToOriginalLocation); } getSyntacticDiagnosticsSync(args) { const { configFile } = this.getConfigFileAndProject(args); @@ -178632,10 +181068,29 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter const { file, project } = this.getFileAndProject(args); const scriptInfo = this.projectService.getScriptInfoForNormalizedPath(file); const hints = project.getLanguageService().provideInlayHints(file, args, this.getPreferences(file)); - return hints.map((hint) => ({ - ...hint, - position: scriptInfo.positionToLineOffset(hint.position) - })); + return hints.map((hint) => { + const { position, displayParts } = hint; + return { + ...hint, + position: scriptInfo.positionToLineOffset(position), + displayParts: displayParts == null ? void 0 : displayParts.map(({ text, span, file: file2 }) => { + if (span) { + Debug.assertIsDefined(file2, "Target file should be defined together with its span."); + const scriptInfo2 = this.projectService.getScriptInfo(file2); + return { + text, + span: { + start: scriptInfo2.positionToLineOffset(span.start), + end: scriptInfo2.positionToLineOffset(span.start + span.length), + file: file2 + } + }; + } else { + return { text }; + } + }) + }; + }); } setCompilerOptionsForInferredProjects(args) { this.projectService.setCompilerOptionsForInferredProjects(args.options, args.projectRootPath); @@ -179036,6 +181491,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter kindModifiers, sortText, insertText, + filterText, replacementSpan, hasAction, source, @@ -179054,6 +181510,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter kindModifiers, sortText, insertText, + filterText, replacementSpan: convertedSpan, isSnippet, hasAction: hasAction || void 0, @@ -180108,7 +182565,7 @@ ${e.message}`; ); } }; - _ScriptVersionCache = class { + _ScriptVersionCache = class _ScriptVersionCache { constructor() { this.changes = []; this.versions = new Array(_ScriptVersionCache.maxVersions); @@ -180200,11 +182657,11 @@ ${e.message}`; return svc; } }; + _ScriptVersionCache.changeNumberThreshold = 8; + _ScriptVersionCache.changeLengthThreshold = 256; + _ScriptVersionCache.maxVersions = 8; ScriptVersionCache = _ScriptVersionCache; - ScriptVersionCache.changeNumberThreshold = 8; - ScriptVersionCache.changeLengthThreshold = 256; - ScriptVersionCache.maxVersions = 8; - LineIndexSnapshot = class { + LineIndexSnapshot = class _LineIndexSnapshot { constructor(version2, cache, index, changesSincePreviousVersion = emptyArray2) { this.version = version2; this.cache = cache; @@ -180218,7 +182675,7 @@ ${e.message}`; return this.index.getLength(); } getChangeRange(oldSnapshot) { - if (oldSnapshot instanceof LineIndexSnapshot && this.cache === oldSnapshot.cache) { + if (oldSnapshot instanceof _LineIndexSnapshot && this.cache === oldSnapshot.cache) { if (this.version <= oldSnapshot.version) { return unchangedTextChangeRange; } else { @@ -180227,7 +182684,7 @@ ${e.message}`; } } }; - LineIndex = class { + LineIndex = class _LineIndex { constructor() { // set this to true to check each edit for accuracy this.checkEdits = false; @@ -180260,7 +182717,7 @@ ${e.message}`; for (let i = 0; i < lines.length; i++) { leaves[i] = new LineLeaf(lines[i]); } - this.root = LineIndex.buildTreeFromBottom(leaves); + this.root = _LineIndex.buildTreeFromBottom(leaves); } else { this.root = new LineNode(); } @@ -180304,7 +182761,7 @@ ${e.message}`; if (this.root.charCount() === 0) { Debug.assert(deleteLength === 0); if (newText !== void 0) { - this.load(LineIndex.linesFromText(newText).lines); + this.load(_LineIndex.linesFromText(newText).lines); return this; } return void 0; @@ -180375,7 +182832,7 @@ ${e.message}`; return { lines, lineMap }; } }; - LineNode = class { + LineNode = class _LineNode { constructor(children = []) { this.children = children; this.totalChars = 0; @@ -180507,7 +182964,7 @@ ${e.message}`; childIndex++; const endLength = childIndex; if (childIndex < clen) { - splitNode = new LineNode(); + splitNode = new _LineNode(); while (childIndex < clen) { splitNode.add(this.children[childIndex]); childIndex++; @@ -180556,7 +183013,7 @@ ${e.message}`; splitNodes = new Array(splitNodeCount); let splitNodeIndex = 0; for (let i = 0; i < splitNodeCount; i++) { - splitNodes[i] = new LineNode(); + splitNodes[i] = new _LineNode(); } let splitNode = splitNodes[0]; while (nodeIndex < nodeCount) { @@ -180624,6 +183081,7 @@ ${e.message}`; ActionWatchTypingLocations: () => ActionWatchTypingLocations, Arguments: () => Arguments, AutoImportProviderProject: () => AutoImportProviderProject, + AuxiliaryProject: () => AuxiliaryProject, CharRangeSection: () => CharRangeSection, CommandNames: () => CommandNames, ConfigFileDiagEvent: () => ConfigFileDiagEvent, @@ -180754,6 +183212,7 @@ ${e.message}`; CompletionTriggerKind: () => CompletionTriggerKind, Completions: () => ts_Completions_exports, ConfigFileProgramReloadLevel: () => ConfigFileProgramReloadLevel, + ContainerFlags: () => ContainerFlags, ContextFlags: () => ContextFlags, CoreServicesShimHostAdapter: () => CoreServicesShimHostAdapter, Debug: () => Debug, @@ -180783,6 +183242,8 @@ ${e.message}`; GetLiteralTextFlags: () => GetLiteralTextFlags, GoToDefinition: () => ts_GoToDefinition_exports, HighlightSpanKind: () => HighlightSpanKind, + IdentifierNameMap: () => IdentifierNameMap, + IdentifierNameMultiMap: () => IdentifierNameMultiMap, ImportKind: () => ImportKind, ImportsNotUsedAsValues: () => ImportsNotUsedAsValues, IndentStyle: () => IndentStyle, @@ -180887,6 +183348,7 @@ ${e.message}`; WatchLogLevel: () => WatchLogLevel, WatchType: () => WatchType, accessPrivateIdentifier: () => accessPrivateIdentifier, + addDisposableResourceHelper: () => addDisposableResourceHelper, addEmitFlags: () => addEmitFlags, addEmitHelper: () => addEmitHelper, addEmitHelpers: () => addEmitHelpers, @@ -180966,6 +183428,9 @@ ${e.message}`; changesAffectingProgramStructure: () => changesAffectingProgramStructure, childIsDecorated: () => childIsDecorated, classElementOrClassElementParameterIsDecorated: () => classElementOrClassElementParameterIsDecorated, + classHasClassThisAssignment: () => classHasClassThisAssignment, + classHasDeclaredOrExplicitlyAssignedName: () => classHasDeclaredOrExplicitlyAssignedName, + classHasExplicitlyAssignedName: () => classHasExplicitlyAssignedName, classOrConstructorParameterIsDecorated: () => classOrConstructorParameterIsDecorated, classPrivateFieldGetHelper: () => classPrivateFieldGetHelper, classPrivateFieldInHelper: () => classPrivateFieldInHelper, @@ -181063,6 +183528,8 @@ ${e.message}`; createCacheWithRedirects: () => createCacheWithRedirects, createCacheableExportInfoMap: () => createCacheableExportInfoMap, createCachedDirectoryStructureHost: () => createCachedDirectoryStructureHost, + createClassNamedEvaluationHelperBlock: () => createClassNamedEvaluationHelperBlock, + createClassThisAssignmentBlock: () => createClassThisAssignmentBlock, createClassifier: () => createClassifier, createCommentDirectivesMap: () => createCommentDirectivesMap, createCompilerDiagnostic: () => createCompilerDiagnostic, @@ -181195,6 +183662,7 @@ ${e.message}`; displayPart: () => displayPart, displayPartsToString: () => displayPartsToString, disposeEmitNodes: () => disposeEmitNodes, + disposeResourcesHelper: () => disposeResourcesHelper, documentSpansEqual: () => documentSpansEqual, dumpTracingLegend: () => dumpTracingLegend, elementAt: () => elementAt, @@ -181272,7 +183740,7 @@ ${e.message}`; findPackageJsons: () => findPackageJsons, findPrecedingMatchingToken: () => findPrecedingMatchingToken, findPrecedingToken: () => findPrecedingToken, - findSuperStatementIndex: () => findSuperStatementIndex, + findSuperStatementIndexPath: () => findSuperStatementIndexPath, findTokenOnLeftOfPosition: () => findTokenOnLeftOfPosition, findUseStrictPrologue: () => findUseStrictPrologue, first: () => first, @@ -181347,6 +183815,7 @@ ${e.message}`; getAreDeclarationMapsEnabled: () => getAreDeclarationMapsEnabled, getAssignedExpandoInitializer: () => getAssignedExpandoInitializer, getAssignedName: () => getAssignedName, + getAssignedNameOfIdentifier: () => getAssignedNameOfIdentifier, getAssignmentDeclarationKind: () => getAssignmentDeclarationKind, getAssignmentDeclarationPropertyAccessKind: () => getAssignmentDeclarationPropertyAccessKind, getAssignmentTargetKind: () => getAssignmentTargetKind, @@ -181374,8 +183843,10 @@ ${e.message}`; getConditions: () => getConditions, getConfigFileParsingDiagnostics: () => getConfigFileParsingDiagnostics, getConstantValue: () => getConstantValue, + getContainerFlags: () => getContainerFlags, getContainerNode: () => getContainerNode, getContainingClass: () => getContainingClass, + getContainingClassExcludingClassDecorators: () => getContainingClassExcludingClassDecorators, getContainingClassStaticBlock: () => getContainingClassStaticBlock, getContainingFunction: () => getContainingFunction, getContainingFunctionDeclaration: () => getContainingFunctionDeclaration, @@ -181433,7 +183904,9 @@ ${e.message}`; getEmitModuleKind: () => getEmitModuleKind, getEmitModuleResolutionKind: () => getEmitModuleResolutionKind, getEmitScriptTarget: () => getEmitScriptTarget, + getEmitStandardClassFields: () => getEmitStandardClassFields, getEnclosingBlockScopeContainer: () => getEnclosingBlockScopeContainer, + getEnclosingContainer: () => getEnclosingContainer, getEncodedSemanticClassifications: () => getEncodedSemanticClassifications, getEncodedSyntacticClassifications: () => getEncodedSyntacticClassifications, getEndLinePosition: () => getEndLinePosition, @@ -181651,6 +184124,7 @@ ${e.message}`; getPropertyAssignmentAliasLikeExpression: () => getPropertyAssignmentAliasLikeExpression, getPropertyNameForPropertyNameNode: () => getPropertyNameForPropertyNameNode, getPropertyNameForUniqueESSymbol: () => getPropertyNameForUniqueESSymbol, + getPropertyNameFromType: () => getPropertyNameFromType, getPropertyNameOfBindingOrAssignmentElement: () => getPropertyNameOfBindingOrAssignmentElement, getPropertySymbolFromBindingElement: () => getPropertySymbolFromBindingElement, getPropertySymbolsFromContextualType: () => getPropertySymbolsFromContextualType, @@ -181831,6 +184305,8 @@ ${e.message}`; indexOfNode: () => indexOfNode, indicesOf: () => indicesOf, inferredTypesContainingFile: () => inferredTypesContainingFile, + injectClassNamedEvaluationHelperBlockIfMissing: () => injectClassNamedEvaluationHelperBlockIfMissing, + injectClassThisAssignmentIfMissing: () => injectClassThisAssignmentIfMissing, insertImports: () => insertImports, insertLeadingStatement: () => insertLeadingStatement, insertSorted: () => insertSorted, @@ -181933,8 +184409,10 @@ ${e.message}`; isClassExpression: () => isClassExpression, isClassLike: () => isClassLike, isClassMemberModifier: () => isClassMemberModifier, + isClassNamedEvaluationHelperBlock: () => isClassNamedEvaluationHelperBlock, isClassOrTypeElement: () => isClassOrTypeElement, isClassStaticBlockDeclaration: () => isClassStaticBlockDeclaration, + isClassThisAssignmentBlock: () => isClassThisAssignmentBlock, isCollapsedRange: () => isCollapsedRange, isColonToken: () => isColonToken, isCommaExpression: () => isCommaExpression, @@ -181980,6 +184458,7 @@ ${e.message}`; isDiagnosticWithLocation: () => isDiagnosticWithLocation, isDiskPathRoot: () => isDiskPathRoot, isDoStatement: () => isDoStatement, + isDocumentRegistryEntry: () => isDocumentRegistryEntry, isDotDotDotToken: () => isDotDotDotToken, isDottedName: () => isDottedName, isDynamicName: () => isDynamicName, @@ -182030,6 +184509,7 @@ ${e.message}`; isExternalModuleReference: () => isExternalModuleReference, isExternalModuleSymbol: () => isExternalModuleSymbol, isExternalOrCommonJsModule: () => isExternalOrCommonJsModule, + isFileLevelReservedGeneratedIdentifier: () => isFileLevelReservedGeneratedIdentifier, isFileLevelUniqueName: () => isFileLevelUniqueName, isFileProbablyExternalModule: () => isFileProbablyExternalModule, isFirstDeclarationOfSymbolParameter: () => isFirstDeclarationOfSymbolParameter, @@ -182100,6 +184580,7 @@ ${e.message}`; isInString: () => isInString, isInTemplateString: () => isInTemplateString, isInTopLevelContext: () => isInTopLevelContext, + isInTypeQuery: () => isInTypeQuery, isIncrementalCompilation: () => isIncrementalCompilation, isIndexSignatureDeclaration: () => isIndexSignatureDeclaration, isIndexedAccessTypeNode: () => isIndexedAccessTypeNode, @@ -182477,6 +184958,7 @@ ${e.message}`; isTypeQueryNode: () => isTypeQueryNode, isTypeReferenceNode: () => isTypeReferenceNode, isTypeReferenceType: () => isTypeReferenceType, + isTypeUsableAsPropertyName: () => isTypeUsableAsPropertyName, isUMDExportSymbol: () => isUMDExportSymbol, isUnaryExpression: () => isUnaryExpression, isUnaryExpressionWithWrite: () => isUnaryExpressionWithWrite, @@ -182491,7 +184973,9 @@ ${e.message}`; isValidESSymbolDeclaration: () => isValidESSymbolDeclaration, isValidTypeOnlyAliasUseSite: () => isValidTypeOnlyAliasUseSite, isValueSignatureDeclaration: () => isValueSignatureDeclaration, + isVarAwaitUsing: () => isVarAwaitUsing, isVarConst: () => isVarConst, + isVarUsing: () => isVarUsing, isVariableDeclaration: () => isVariableDeclaration, isVariableDeclarationInVariableStatement: () => isVariableDeclarationInVariableStatement, isVariableDeclarationInitializedToBareOrAccessedRequire: () => isVariableDeclarationInitializedToBareOrAccessedRequire, @@ -182903,6 +185387,7 @@ ${e.message}`; transformJsx: () => transformJsx, transformLegacyDecorators: () => transformLegacyDecorators, transformModule: () => transformModule, + transformNamedEvaluation: () => transformNamedEvaluation, transformNodeModule: () => transformNodeModule, transformNodes: () => transformNodes, transformSystemModule: () => transformSystemModule, @@ -183015,6 +185500,7 @@ ${e.message}`; ActionWatchTypingLocations: () => ActionWatchTypingLocations, Arguments: () => Arguments, AutoImportProviderProject: () => AutoImportProviderProject, + AuxiliaryProject: () => AuxiliaryProject, CharRangeSection: () => CharRangeSection, CommandNames: () => CommandNames, ConfigFileDiagEvent: () => ConfigFileDiagEvent, @@ -183133,6 +185619,7 @@ ${e.message}`; CompletionTriggerKind: () => CompletionTriggerKind, Completions: () => ts_Completions_exports, ConfigFileProgramReloadLevel: () => ConfigFileProgramReloadLevel, + ContainerFlags: () => ContainerFlags, ContextFlags: () => ContextFlags, CoreServicesShimHostAdapter: () => CoreServicesShimHostAdapter, Debug: () => Debug, @@ -183162,6 +185649,8 @@ ${e.message}`; GetLiteralTextFlags: () => GetLiteralTextFlags, GoToDefinition: () => ts_GoToDefinition_exports, HighlightSpanKind: () => HighlightSpanKind, + IdentifierNameMap: () => IdentifierNameMap, + IdentifierNameMultiMap: () => IdentifierNameMultiMap, ImportKind: () => ImportKind, ImportsNotUsedAsValues: () => ImportsNotUsedAsValues, IndentStyle: () => IndentStyle, @@ -183266,6 +185755,7 @@ ${e.message}`; WatchLogLevel: () => WatchLogLevel, WatchType: () => WatchType, accessPrivateIdentifier: () => accessPrivateIdentifier, + addDisposableResourceHelper: () => addDisposableResourceHelper, addEmitFlags: () => addEmitFlags, addEmitHelper: () => addEmitHelper, addEmitHelpers: () => addEmitHelpers, @@ -183345,6 +185835,9 @@ ${e.message}`; changesAffectingProgramStructure: () => changesAffectingProgramStructure, childIsDecorated: () => childIsDecorated, classElementOrClassElementParameterIsDecorated: () => classElementOrClassElementParameterIsDecorated, + classHasClassThisAssignment: () => classHasClassThisAssignment, + classHasDeclaredOrExplicitlyAssignedName: () => classHasDeclaredOrExplicitlyAssignedName, + classHasExplicitlyAssignedName: () => classHasExplicitlyAssignedName, classOrConstructorParameterIsDecorated: () => classOrConstructorParameterIsDecorated, classPrivateFieldGetHelper: () => classPrivateFieldGetHelper, classPrivateFieldInHelper: () => classPrivateFieldInHelper, @@ -183442,6 +185935,8 @@ ${e.message}`; createCacheWithRedirects: () => createCacheWithRedirects, createCacheableExportInfoMap: () => createCacheableExportInfoMap, createCachedDirectoryStructureHost: () => createCachedDirectoryStructureHost, + createClassNamedEvaluationHelperBlock: () => createClassNamedEvaluationHelperBlock, + createClassThisAssignmentBlock: () => createClassThisAssignmentBlock, createClassifier: () => createClassifier, createCommentDirectivesMap: () => createCommentDirectivesMap, createCompilerDiagnostic: () => createCompilerDiagnostic, @@ -183574,6 +186069,7 @@ ${e.message}`; displayPart: () => displayPart, displayPartsToString: () => displayPartsToString, disposeEmitNodes: () => disposeEmitNodes, + disposeResourcesHelper: () => disposeResourcesHelper, documentSpansEqual: () => documentSpansEqual, dumpTracingLegend: () => dumpTracingLegend, elementAt: () => elementAt, @@ -183651,7 +186147,7 @@ ${e.message}`; findPackageJsons: () => findPackageJsons, findPrecedingMatchingToken: () => findPrecedingMatchingToken, findPrecedingToken: () => findPrecedingToken, - findSuperStatementIndex: () => findSuperStatementIndex, + findSuperStatementIndexPath: () => findSuperStatementIndexPath, findTokenOnLeftOfPosition: () => findTokenOnLeftOfPosition, findUseStrictPrologue: () => findUseStrictPrologue, first: () => first, @@ -183726,6 +186222,7 @@ ${e.message}`; getAreDeclarationMapsEnabled: () => getAreDeclarationMapsEnabled, getAssignedExpandoInitializer: () => getAssignedExpandoInitializer, getAssignedName: () => getAssignedName, + getAssignedNameOfIdentifier: () => getAssignedNameOfIdentifier, getAssignmentDeclarationKind: () => getAssignmentDeclarationKind, getAssignmentDeclarationPropertyAccessKind: () => getAssignmentDeclarationPropertyAccessKind, getAssignmentTargetKind: () => getAssignmentTargetKind, @@ -183753,8 +186250,10 @@ ${e.message}`; getConditions: () => getConditions, getConfigFileParsingDiagnostics: () => getConfigFileParsingDiagnostics, getConstantValue: () => getConstantValue, + getContainerFlags: () => getContainerFlags, getContainerNode: () => getContainerNode, getContainingClass: () => getContainingClass, + getContainingClassExcludingClassDecorators: () => getContainingClassExcludingClassDecorators, getContainingClassStaticBlock: () => getContainingClassStaticBlock, getContainingFunction: () => getContainingFunction, getContainingFunctionDeclaration: () => getContainingFunctionDeclaration, @@ -183812,7 +186311,9 @@ ${e.message}`; getEmitModuleKind: () => getEmitModuleKind, getEmitModuleResolutionKind: () => getEmitModuleResolutionKind, getEmitScriptTarget: () => getEmitScriptTarget, + getEmitStandardClassFields: () => getEmitStandardClassFields, getEnclosingBlockScopeContainer: () => getEnclosingBlockScopeContainer, + getEnclosingContainer: () => getEnclosingContainer, getEncodedSemanticClassifications: () => getEncodedSemanticClassifications, getEncodedSyntacticClassifications: () => getEncodedSyntacticClassifications, getEndLinePosition: () => getEndLinePosition, @@ -184030,6 +186531,7 @@ ${e.message}`; getPropertyAssignmentAliasLikeExpression: () => getPropertyAssignmentAliasLikeExpression, getPropertyNameForPropertyNameNode: () => getPropertyNameForPropertyNameNode, getPropertyNameForUniqueESSymbol: () => getPropertyNameForUniqueESSymbol, + getPropertyNameFromType: () => getPropertyNameFromType, getPropertyNameOfBindingOrAssignmentElement: () => getPropertyNameOfBindingOrAssignmentElement, getPropertySymbolFromBindingElement: () => getPropertySymbolFromBindingElement, getPropertySymbolsFromContextualType: () => getPropertySymbolsFromContextualType, @@ -184210,6 +186712,8 @@ ${e.message}`; indexOfNode: () => indexOfNode, indicesOf: () => indicesOf, inferredTypesContainingFile: () => inferredTypesContainingFile, + injectClassNamedEvaluationHelperBlockIfMissing: () => injectClassNamedEvaluationHelperBlockIfMissing, + injectClassThisAssignmentIfMissing: () => injectClassThisAssignmentIfMissing, insertImports: () => insertImports, insertLeadingStatement: () => insertLeadingStatement, insertSorted: () => insertSorted, @@ -184312,8 +186816,10 @@ ${e.message}`; isClassExpression: () => isClassExpression, isClassLike: () => isClassLike, isClassMemberModifier: () => isClassMemberModifier, + isClassNamedEvaluationHelperBlock: () => isClassNamedEvaluationHelperBlock, isClassOrTypeElement: () => isClassOrTypeElement, isClassStaticBlockDeclaration: () => isClassStaticBlockDeclaration, + isClassThisAssignmentBlock: () => isClassThisAssignmentBlock, isCollapsedRange: () => isCollapsedRange, isColonToken: () => isColonToken, isCommaExpression: () => isCommaExpression, @@ -184359,6 +186865,7 @@ ${e.message}`; isDiagnosticWithLocation: () => isDiagnosticWithLocation, isDiskPathRoot: () => isDiskPathRoot, isDoStatement: () => isDoStatement, + isDocumentRegistryEntry: () => isDocumentRegistryEntry, isDotDotDotToken: () => isDotDotDotToken, isDottedName: () => isDottedName, isDynamicName: () => isDynamicName, @@ -184409,6 +186916,7 @@ ${e.message}`; isExternalModuleReference: () => isExternalModuleReference, isExternalModuleSymbol: () => isExternalModuleSymbol, isExternalOrCommonJsModule: () => isExternalOrCommonJsModule, + isFileLevelReservedGeneratedIdentifier: () => isFileLevelReservedGeneratedIdentifier, isFileLevelUniqueName: () => isFileLevelUniqueName, isFileProbablyExternalModule: () => isFileProbablyExternalModule, isFirstDeclarationOfSymbolParameter: () => isFirstDeclarationOfSymbolParameter, @@ -184479,6 +186987,7 @@ ${e.message}`; isInString: () => isInString, isInTemplateString: () => isInTemplateString, isInTopLevelContext: () => isInTopLevelContext, + isInTypeQuery: () => isInTypeQuery, isIncrementalCompilation: () => isIncrementalCompilation, isIndexSignatureDeclaration: () => isIndexSignatureDeclaration, isIndexedAccessTypeNode: () => isIndexedAccessTypeNode, @@ -184856,6 +187365,7 @@ ${e.message}`; isTypeQueryNode: () => isTypeQueryNode, isTypeReferenceNode: () => isTypeReferenceNode, isTypeReferenceType: () => isTypeReferenceType, + isTypeUsableAsPropertyName: () => isTypeUsableAsPropertyName, isUMDExportSymbol: () => isUMDExportSymbol, isUnaryExpression: () => isUnaryExpression, isUnaryExpressionWithWrite: () => isUnaryExpressionWithWrite, @@ -184870,7 +187380,9 @@ ${e.message}`; isValidESSymbolDeclaration: () => isValidESSymbolDeclaration, isValidTypeOnlyAliasUseSite: () => isValidTypeOnlyAliasUseSite, isValueSignatureDeclaration: () => isValueSignatureDeclaration, + isVarAwaitUsing: () => isVarAwaitUsing, isVarConst: () => isVarConst, + isVarUsing: () => isVarUsing, isVariableDeclaration: () => isVariableDeclaration, isVariableDeclarationInVariableStatement: () => isVariableDeclarationInVariableStatement, isVariableDeclarationInitializedToBareOrAccessedRequire: () => isVariableDeclarationInitializedToBareOrAccessedRequire, @@ -185282,6 +187794,7 @@ ${e.message}`; transformJsx: () => transformJsx, transformLegacyDecorators: () => transformLegacyDecorators, transformModule: () => transformModule, + transformNamedEvaluation: () => transformNamedEvaluation, transformNodeModule: () => transformNodeModule, transformNodes: () => transformNodes, transformSystemModule: () => transformSystemModule, diff --git a/node_modules/typescript/lib/typescript.d.ts b/node_modules/typescript/lib/typescript.d.ts index ff7896e..ead6d07 100644 --- a/node_modules/typescript/lib/typescript.d.ts +++ b/node_modules/typescript/lib/typescript.d.ts @@ -14,7 +14,7 @@ and limitations under the License. ***************************************************************************** */ declare namespace ts { - const versionMajorMinor = "5.1"; + const versionMajorMinor = "5.2"; /** The version of the TypeScript compiler release */ const version: string; /** @@ -204,211 +204,212 @@ declare namespace ts { UndefinedKeyword = 157, UniqueKeyword = 158, UnknownKeyword = 159, - FromKeyword = 160, - GlobalKeyword = 161, - BigIntKeyword = 162, - OverrideKeyword = 163, - OfKeyword = 164, - QualifiedName = 165, - ComputedPropertyName = 166, - TypeParameter = 167, - Parameter = 168, - Decorator = 169, - PropertySignature = 170, - PropertyDeclaration = 171, - MethodSignature = 172, - MethodDeclaration = 173, - ClassStaticBlockDeclaration = 174, - Constructor = 175, - GetAccessor = 176, - SetAccessor = 177, - CallSignature = 178, - ConstructSignature = 179, - IndexSignature = 180, - TypePredicate = 181, - TypeReference = 182, - FunctionType = 183, - ConstructorType = 184, - TypeQuery = 185, - TypeLiteral = 186, - ArrayType = 187, - TupleType = 188, - OptionalType = 189, - RestType = 190, - UnionType = 191, - IntersectionType = 192, - ConditionalType = 193, - InferType = 194, - ParenthesizedType = 195, - ThisType = 196, - TypeOperator = 197, - IndexedAccessType = 198, - MappedType = 199, - LiteralType = 200, - NamedTupleMember = 201, - TemplateLiteralType = 202, - TemplateLiteralTypeSpan = 203, - ImportType = 204, - ObjectBindingPattern = 205, - ArrayBindingPattern = 206, - BindingElement = 207, - ArrayLiteralExpression = 208, - ObjectLiteralExpression = 209, - PropertyAccessExpression = 210, - ElementAccessExpression = 211, - CallExpression = 212, - NewExpression = 213, - TaggedTemplateExpression = 214, - TypeAssertionExpression = 215, - ParenthesizedExpression = 216, - FunctionExpression = 217, - ArrowFunction = 218, - DeleteExpression = 219, - TypeOfExpression = 220, - VoidExpression = 221, - AwaitExpression = 222, - PrefixUnaryExpression = 223, - PostfixUnaryExpression = 224, - BinaryExpression = 225, - ConditionalExpression = 226, - TemplateExpression = 227, - YieldExpression = 228, - SpreadElement = 229, - ClassExpression = 230, - OmittedExpression = 231, - ExpressionWithTypeArguments = 232, - AsExpression = 233, - NonNullExpression = 234, - MetaProperty = 235, - SyntheticExpression = 236, - SatisfiesExpression = 237, - TemplateSpan = 238, - SemicolonClassElement = 239, - Block = 240, - EmptyStatement = 241, - VariableStatement = 242, - ExpressionStatement = 243, - IfStatement = 244, - DoStatement = 245, - WhileStatement = 246, - ForStatement = 247, - ForInStatement = 248, - ForOfStatement = 249, - ContinueStatement = 250, - BreakStatement = 251, - ReturnStatement = 252, - WithStatement = 253, - SwitchStatement = 254, - LabeledStatement = 255, - ThrowStatement = 256, - TryStatement = 257, - DebuggerStatement = 258, - VariableDeclaration = 259, - VariableDeclarationList = 260, - FunctionDeclaration = 261, - ClassDeclaration = 262, - InterfaceDeclaration = 263, - TypeAliasDeclaration = 264, - EnumDeclaration = 265, - ModuleDeclaration = 266, - ModuleBlock = 267, - CaseBlock = 268, - NamespaceExportDeclaration = 269, - ImportEqualsDeclaration = 270, - ImportDeclaration = 271, - ImportClause = 272, - NamespaceImport = 273, - NamedImports = 274, - ImportSpecifier = 275, - ExportAssignment = 276, - ExportDeclaration = 277, - NamedExports = 278, - NamespaceExport = 279, - ExportSpecifier = 280, - MissingDeclaration = 281, - ExternalModuleReference = 282, - JsxElement = 283, - JsxSelfClosingElement = 284, - JsxOpeningElement = 285, - JsxClosingElement = 286, - JsxFragment = 287, - JsxOpeningFragment = 288, - JsxClosingFragment = 289, - JsxAttribute = 290, - JsxAttributes = 291, - JsxSpreadAttribute = 292, - JsxExpression = 293, - JsxNamespacedName = 294, - CaseClause = 295, - DefaultClause = 296, - HeritageClause = 297, - CatchClause = 298, - AssertClause = 299, - AssertEntry = 300, - ImportTypeAssertionContainer = 301, - PropertyAssignment = 302, - ShorthandPropertyAssignment = 303, - SpreadAssignment = 304, - EnumMember = 305, - /** @deprecated */ UnparsedPrologue = 306, - /** @deprecated */ UnparsedPrepend = 307, - /** @deprecated */ UnparsedText = 308, - /** @deprecated */ UnparsedInternalText = 309, - /** @deprecated */ UnparsedSyntheticReference = 310, - SourceFile = 311, - Bundle = 312, - /** @deprecated */ UnparsedSource = 313, - /** @deprecated */ InputFiles = 314, - JSDocTypeExpression = 315, - JSDocNameReference = 316, - JSDocMemberName = 317, - JSDocAllType = 318, - JSDocUnknownType = 319, - JSDocNullableType = 320, - JSDocNonNullableType = 321, - JSDocOptionalType = 322, - JSDocFunctionType = 323, - JSDocVariadicType = 324, - JSDocNamepathType = 325, - JSDoc = 326, + UsingKeyword = 160, + FromKeyword = 161, + GlobalKeyword = 162, + BigIntKeyword = 163, + OverrideKeyword = 164, + OfKeyword = 165, + QualifiedName = 166, + ComputedPropertyName = 167, + TypeParameter = 168, + Parameter = 169, + Decorator = 170, + PropertySignature = 171, + PropertyDeclaration = 172, + MethodSignature = 173, + MethodDeclaration = 174, + ClassStaticBlockDeclaration = 175, + Constructor = 176, + GetAccessor = 177, + SetAccessor = 178, + CallSignature = 179, + ConstructSignature = 180, + IndexSignature = 181, + TypePredicate = 182, + TypeReference = 183, + FunctionType = 184, + ConstructorType = 185, + TypeQuery = 186, + TypeLiteral = 187, + ArrayType = 188, + TupleType = 189, + OptionalType = 190, + RestType = 191, + UnionType = 192, + IntersectionType = 193, + ConditionalType = 194, + InferType = 195, + ParenthesizedType = 196, + ThisType = 197, + TypeOperator = 198, + IndexedAccessType = 199, + MappedType = 200, + LiteralType = 201, + NamedTupleMember = 202, + TemplateLiteralType = 203, + TemplateLiteralTypeSpan = 204, + ImportType = 205, + ObjectBindingPattern = 206, + ArrayBindingPattern = 207, + BindingElement = 208, + ArrayLiteralExpression = 209, + ObjectLiteralExpression = 210, + PropertyAccessExpression = 211, + ElementAccessExpression = 212, + CallExpression = 213, + NewExpression = 214, + TaggedTemplateExpression = 215, + TypeAssertionExpression = 216, + ParenthesizedExpression = 217, + FunctionExpression = 218, + ArrowFunction = 219, + DeleteExpression = 220, + TypeOfExpression = 221, + VoidExpression = 222, + AwaitExpression = 223, + PrefixUnaryExpression = 224, + PostfixUnaryExpression = 225, + BinaryExpression = 226, + ConditionalExpression = 227, + TemplateExpression = 228, + YieldExpression = 229, + SpreadElement = 230, + ClassExpression = 231, + OmittedExpression = 232, + ExpressionWithTypeArguments = 233, + AsExpression = 234, + NonNullExpression = 235, + MetaProperty = 236, + SyntheticExpression = 237, + SatisfiesExpression = 238, + TemplateSpan = 239, + SemicolonClassElement = 240, + Block = 241, + EmptyStatement = 242, + VariableStatement = 243, + ExpressionStatement = 244, + IfStatement = 245, + DoStatement = 246, + WhileStatement = 247, + ForStatement = 248, + ForInStatement = 249, + ForOfStatement = 250, + ContinueStatement = 251, + BreakStatement = 252, + ReturnStatement = 253, + WithStatement = 254, + SwitchStatement = 255, + LabeledStatement = 256, + ThrowStatement = 257, + TryStatement = 258, + DebuggerStatement = 259, + VariableDeclaration = 260, + VariableDeclarationList = 261, + FunctionDeclaration = 262, + ClassDeclaration = 263, + InterfaceDeclaration = 264, + TypeAliasDeclaration = 265, + EnumDeclaration = 266, + ModuleDeclaration = 267, + ModuleBlock = 268, + CaseBlock = 269, + NamespaceExportDeclaration = 270, + ImportEqualsDeclaration = 271, + ImportDeclaration = 272, + ImportClause = 273, + NamespaceImport = 274, + NamedImports = 275, + ImportSpecifier = 276, + ExportAssignment = 277, + ExportDeclaration = 278, + NamedExports = 279, + NamespaceExport = 280, + ExportSpecifier = 281, + MissingDeclaration = 282, + ExternalModuleReference = 283, + JsxElement = 284, + JsxSelfClosingElement = 285, + JsxOpeningElement = 286, + JsxClosingElement = 287, + JsxFragment = 288, + JsxOpeningFragment = 289, + JsxClosingFragment = 290, + JsxAttribute = 291, + JsxAttributes = 292, + JsxSpreadAttribute = 293, + JsxExpression = 294, + JsxNamespacedName = 295, + CaseClause = 296, + DefaultClause = 297, + HeritageClause = 298, + CatchClause = 299, + AssertClause = 300, + AssertEntry = 301, + ImportTypeAssertionContainer = 302, + PropertyAssignment = 303, + ShorthandPropertyAssignment = 304, + SpreadAssignment = 305, + EnumMember = 306, + /** @deprecated */ UnparsedPrologue = 307, + /** @deprecated */ UnparsedPrepend = 308, + /** @deprecated */ UnparsedText = 309, + /** @deprecated */ UnparsedInternalText = 310, + /** @deprecated */ UnparsedSyntheticReference = 311, + SourceFile = 312, + Bundle = 313, + /** @deprecated */ UnparsedSource = 314, + /** @deprecated */ InputFiles = 315, + JSDocTypeExpression = 316, + JSDocNameReference = 317, + JSDocMemberName = 318, + JSDocAllType = 319, + JSDocUnknownType = 320, + JSDocNullableType = 321, + JSDocNonNullableType = 322, + JSDocOptionalType = 323, + JSDocFunctionType = 324, + JSDocVariadicType = 325, + JSDocNamepathType = 326, + JSDoc = 327, /** @deprecated Use SyntaxKind.JSDoc */ - JSDocComment = 326, - JSDocText = 327, - JSDocTypeLiteral = 328, - JSDocSignature = 329, - JSDocLink = 330, - JSDocLinkCode = 331, - JSDocLinkPlain = 332, - JSDocTag = 333, - JSDocAugmentsTag = 334, - JSDocImplementsTag = 335, - JSDocAuthorTag = 336, - JSDocDeprecatedTag = 337, - JSDocClassTag = 338, - JSDocPublicTag = 339, - JSDocPrivateTag = 340, - JSDocProtectedTag = 341, - JSDocReadonlyTag = 342, - JSDocOverrideTag = 343, - JSDocCallbackTag = 344, - JSDocOverloadTag = 345, - JSDocEnumTag = 346, - JSDocParameterTag = 347, - JSDocReturnTag = 348, - JSDocThisTag = 349, - JSDocTypeTag = 350, - JSDocTemplateTag = 351, - JSDocTypedefTag = 352, - JSDocSeeTag = 353, - JSDocPropertyTag = 354, - JSDocThrowsTag = 355, - JSDocSatisfiesTag = 356, - SyntaxList = 357, - NotEmittedStatement = 358, - PartiallyEmittedExpression = 359, - CommaListExpression = 360, - SyntheticReferenceExpression = 361, - Count = 362, + JSDocComment = 327, + JSDocText = 328, + JSDocTypeLiteral = 329, + JSDocSignature = 330, + JSDocLink = 331, + JSDocLinkCode = 332, + JSDocLinkPlain = 333, + JSDocTag = 334, + JSDocAugmentsTag = 335, + JSDocImplementsTag = 336, + JSDocAuthorTag = 337, + JSDocDeprecatedTag = 338, + JSDocClassTag = 339, + JSDocPublicTag = 340, + JSDocPrivateTag = 341, + JSDocProtectedTag = 342, + JSDocReadonlyTag = 343, + JSDocOverrideTag = 344, + JSDocCallbackTag = 345, + JSDocOverloadTag = 346, + JSDocEnumTag = 347, + JSDocParameterTag = 348, + JSDocReturnTag = 349, + JSDocThisTag = 350, + JSDocTypeTag = 351, + JSDocTemplateTag = 352, + JSDocTypedefTag = 353, + JSDocSeeTag = 354, + JSDocPropertyTag = 355, + JSDocThrowsTag = 356, + JSDocSatisfiesTag = 357, + SyntaxList = 358, + NotEmittedStatement = 359, + PartiallyEmittedExpression = 360, + CommaListExpression = 361, + SyntheticReferenceExpression = 362, + Count = 363, FirstAssignment = 64, LastAssignment = 79, FirstCompoundAssignment = 65, @@ -416,15 +417,15 @@ declare namespace ts { FirstReservedWord = 83, LastReservedWord = 118, FirstKeyword = 83, - LastKeyword = 164, + LastKeyword = 165, FirstFutureReservedWord = 119, LastFutureReservedWord = 127, - FirstTypeNode = 181, - LastTypeNode = 204, + FirstTypeNode = 182, + LastTypeNode = 205, FirstPunctuation = 19, LastPunctuation = 79, FirstToken = 0, - LastToken = 164, + LastToken = 165, FirstTriviaToken = 2, LastTriviaToken = 7, FirstLiteralToken = 9, @@ -433,19 +434,19 @@ declare namespace ts { LastTemplateToken = 18, FirstBinaryOperator = 30, LastBinaryOperator = 79, - FirstStatement = 242, - LastStatement = 258, - FirstNode = 165, - FirstJSDocNode = 315, - LastJSDocNode = 356, - FirstJSDocTagNode = 333, - LastJSDocTagNode = 356 + FirstStatement = 243, + LastStatement = 259, + FirstNode = 166, + FirstJSDocNode = 316, + LastJSDocNode = 357, + FirstJSDocTagNode = 334, + LastJSDocTagNode = 357 } type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia; type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral; type PseudoLiteralSyntaxKind = SyntaxKind.TemplateHead | SyntaxKind.TemplateMiddle | SyntaxKind.TemplateTail; type PunctuationSyntaxKind = SyntaxKind.OpenBraceToken | SyntaxKind.CloseBraceToken | SyntaxKind.OpenParenToken | SyntaxKind.CloseParenToken | SyntaxKind.OpenBracketToken | SyntaxKind.CloseBracketToken | SyntaxKind.DotToken | SyntaxKind.DotDotDotToken | SyntaxKind.SemicolonToken | SyntaxKind.CommaToken | SyntaxKind.QuestionDotToken | SyntaxKind.LessThanToken | SyntaxKind.LessThanSlashToken | SyntaxKind.GreaterThanToken | SyntaxKind.LessThanEqualsToken | SyntaxKind.GreaterThanEqualsToken | SyntaxKind.EqualsEqualsToken | SyntaxKind.ExclamationEqualsToken | SyntaxKind.EqualsEqualsEqualsToken | SyntaxKind.ExclamationEqualsEqualsToken | SyntaxKind.EqualsGreaterThanToken | SyntaxKind.PlusToken | SyntaxKind.MinusToken | SyntaxKind.AsteriskToken | SyntaxKind.AsteriskAsteriskToken | SyntaxKind.SlashToken | SyntaxKind.PercentToken | SyntaxKind.PlusPlusToken | SyntaxKind.MinusMinusToken | SyntaxKind.LessThanLessThanToken | SyntaxKind.GreaterThanGreaterThanToken | SyntaxKind.GreaterThanGreaterThanGreaterThanToken | SyntaxKind.AmpersandToken | SyntaxKind.BarToken | SyntaxKind.CaretToken | SyntaxKind.ExclamationToken | SyntaxKind.TildeToken | SyntaxKind.AmpersandAmpersandToken | SyntaxKind.AmpersandAmpersandEqualsToken | SyntaxKind.BarBarToken | SyntaxKind.BarBarEqualsToken | SyntaxKind.QuestionQuestionToken | SyntaxKind.QuestionQuestionEqualsToken | SyntaxKind.QuestionToken | SyntaxKind.ColonToken | SyntaxKind.AtToken | SyntaxKind.BacktickToken | SyntaxKind.HashToken | SyntaxKind.EqualsToken | SyntaxKind.PlusEqualsToken | SyntaxKind.MinusEqualsToken | SyntaxKind.AsteriskEqualsToken | SyntaxKind.AsteriskAsteriskEqualsToken | SyntaxKind.SlashEqualsToken | SyntaxKind.PercentEqualsToken | SyntaxKind.LessThanLessThanEqualsToken | SyntaxKind.GreaterThanGreaterThanEqualsToken | SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken | SyntaxKind.AmpersandEqualsToken | SyntaxKind.BarEqualsToken | SyntaxKind.CaretEqualsToken; - type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AccessorKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsKeyword | SyntaxKind.AssertsKeyword | SyntaxKind.AssertKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FromKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.GetKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InferKeyword | SyntaxKind.InKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.LetKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.OfKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OutKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.RequireKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SatisfiesKeyword | SyntaxKind.SetKeyword | SyntaxKind.StaticKeyword | SyntaxKind.StringKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.YieldKeyword; + type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AccessorKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsKeyword | SyntaxKind.AssertsKeyword | SyntaxKind.AssertKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FromKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.GetKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InferKeyword | SyntaxKind.InKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.LetKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.OfKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OutKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.RequireKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SatisfiesKeyword | SyntaxKind.SetKeyword | SyntaxKind.StaticKeyword | SyntaxKind.StringKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.UsingKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.YieldKeyword; type ModifierSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AccessorKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.ConstKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.ExportKeyword | SyntaxKind.InKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OutKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.StaticKeyword; type KeywordTypeSyntaxKind = SyntaxKind.AnyKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.StringKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VoidKeyword; type TokenSyntaxKind = SyntaxKind.Unknown | SyntaxKind.EndOfFileToken | TriviaSyntaxKind | LiteralSyntaxKind | PseudoLiteralSyntaxKind | PunctuationSyntaxKind | SyntaxKind.Identifier | KeywordSyntaxKind; @@ -455,32 +456,35 @@ declare namespace ts { None = 0, Let = 1, Const = 2, - NestedNamespace = 4, - Synthesized = 8, - Namespace = 16, - OptionalChain = 32, - ExportContext = 64, - ContainsThis = 128, - HasImplicitReturn = 256, - HasExplicitReturn = 512, - GlobalAugmentation = 1024, - HasAsyncFunctions = 2048, - DisallowInContext = 4096, - YieldContext = 8192, - DecoratorContext = 16384, - AwaitContext = 32768, - DisallowConditionalTypesContext = 65536, - ThisNodeHasError = 131072, - JavaScriptFile = 262144, - ThisNodeOrAnySubNodesHasError = 524288, - HasAggregatedChildData = 1048576, - JSDoc = 8388608, - JsonFile = 67108864, - BlockScoped = 3, - ReachabilityCheckFlags = 768, - ReachabilityAndEmitFlags = 2816, - ContextFlags = 50720768, - TypeExcludesFlags = 40960 + Using = 4, + AwaitUsing = 6, + NestedNamespace = 8, + Synthesized = 16, + Namespace = 32, + OptionalChain = 64, + ExportContext = 128, + ContainsThis = 256, + HasImplicitReturn = 512, + HasExplicitReturn = 1024, + GlobalAugmentation = 2048, + HasAsyncFunctions = 4096, + DisallowInContext = 8192, + YieldContext = 16384, + DecoratorContext = 32768, + AwaitContext = 65536, + DisallowConditionalTypesContext = 131072, + ThisNodeHasError = 262144, + JavaScriptFile = 524288, + ThisNodeOrAnySubNodesHasError = 1048576, + HasAggregatedChildData = 2097152, + JSDoc = 16777216, + JsonFile = 134217728, + BlockScoped = 7, + Constant = 6, + ReachabilityCheckFlags = 1536, + ReachabilityAndEmitFlags = 5632, + ContextFlags = 101441536, + TypeExcludesFlags = 81920 } enum ModifierFlags { None = 0, @@ -1770,9 +1774,11 @@ declare namespace ts { }; }) | ExportDeclaration & { readonly isTypeOnly: true; + readonly moduleSpecifier: Expression; } | NamespaceExport & { readonly parent: ExportDeclaration & { readonly isTypeOnly: true; + readonly moduleSpecifier: Expression; }; }; type TypeOnlyAliasDeclaration = TypeOnlyImportDeclaration | TypeOnlyExportDeclaration; @@ -2217,7 +2223,7 @@ declare namespace ts { getSourceFileByPath(path: Path): SourceFile | undefined; getCurrentDirectory(): string; } - interface ParseConfigHost { + interface ParseConfigHost extends ModuleResolutionHost { useCaseSensitiveFileNames: boolean; readDirectory(rootDir: string, extensions: readonly string[], excludes: readonly string[] | undefined, includes: readonly string[], depth?: number): readonly string[]; /** @@ -2894,7 +2900,7 @@ declare namespace ts { hasRestElement: boolean; combinedFlags: ElementFlags; readonly: boolean; - labeledElementDeclarations?: readonly (NamedTupleMember | ParameterDeclaration)[]; + labeledElementDeclarations?: readonly (NamedTupleMember | ParameterDeclaration | undefined)[]; } interface TupleTypeReference extends TypeReference { target: TupleType; @@ -3535,7 +3541,14 @@ declare namespace ts { All = 15, ExcludeJSDocTypeAssertion = 16 } - type TypeOfTag = "undefined" | "number" | "bigint" | "boolean" | "string" | "symbol" | "object" | "function"; + type ImmediatelyInvokedFunctionExpression = CallExpression & { + readonly expression: FunctionExpression; + }; + type ImmediatelyInvokedArrowFunction = CallExpression & { + readonly expression: ParenthesizedExpression & { + readonly expression: ArrowFunction; + }; + }; interface NodeFactory { createNodeArray(elements?: readonly T[], hasTrailingComma?: boolean): NodeArray; createNumericLiteral(value: string | number, numericLiteralFlags?: TokenFlags): NumericLiteral; @@ -4005,8 +4018,8 @@ declare namespace ts { createPostfixDecrement(operand: Expression): PostfixUnaryExpression; createImmediatelyInvokedFunctionExpression(statements: readonly Statement[]): CallExpression; createImmediatelyInvokedFunctionExpression(statements: readonly Statement[], param: ParameterDeclaration, paramValue: Expression): CallExpression; - createImmediatelyInvokedArrowFunction(statements: readonly Statement[]): CallExpression; - createImmediatelyInvokedArrowFunction(statements: readonly Statement[], param: ParameterDeclaration, paramValue: Expression): CallExpression; + createImmediatelyInvokedArrowFunction(statements: readonly Statement[]): ImmediatelyInvokedArrowFunction; + createImmediatelyInvokedArrowFunction(statements: readonly Statement[], param: ParameterDeclaration, paramValue: Expression): ImmediatelyInvokedArrowFunction; createVoidZero(): VoidExpression; createExportDefault(expression: Expression): ExportAssignment; createExternalModuleExport(exportName: Identifier): ExportDeclaration; @@ -4336,6 +4349,7 @@ declare namespace ts { readonly includeInlayPropertyDeclarationTypeHints?: boolean; readonly includeInlayFunctionLikeReturnTypeHints?: boolean; readonly includeInlayEnumMemberValueHints?: boolean; + readonly interactiveInlayHints?: boolean; readonly allowRenameOfImportPath?: boolean; readonly autoImportFileExcludePatterns?: string[]; readonly organizeImportsIgnoreCase?: "auto" | boolean; @@ -6402,11 +6416,18 @@ declare namespace ts { Enum = "Enum" } interface InlayHint { + /** This property will be the empty string when displayParts is set. */ text: string; position: number; kind: InlayHintKind; whitespaceBefore?: boolean; whitespaceAfter?: boolean; + displayParts?: InlayHintDisplayPart[]; + } + interface InlayHintDisplayPart { + text: string; + span?: TextSpan; + file?: string; } interface TodoCommentDescriptor { text: string; @@ -6838,6 +6859,7 @@ declare namespace ts { kindModifiers?: string; sortText: string; insertText?: string; + filterText?: string; isSnippet?: true; /** * An optional span that indicates the text to be replaced by this completion item. @@ -6997,6 +7019,10 @@ declare namespace ts { variableElement = "var", /** Inside function */ localVariableElement = "local var", + /** using foo = ... */ + variableUsingElement = "using", + /** await using foo = ... */ + variableAwaitUsingElement = "await using", /** * Inside module and script only * function f() { } diff --git a/node_modules/typescript/lib/typescript.js b/node_modules/typescript/lib/typescript.js index 589e2c2..4d0ee15 100644 --- a/node_modules/typescript/lib/typescript.js +++ b/node_modules/typescript/lib/typescript.js @@ -34,8 +34,8 @@ var ts = (() => { var init_corePublic = __esm({ "src/compiler/corePublic.ts"() { "use strict"; - versionMajorMinor = "5.1"; - version = "5.1.6"; + versionMajorMinor = "5.2"; + version = "5.2.2"; Comparison = /* @__PURE__ */ ((Comparison3) => { Comparison3[Comparison3["LessThan"] = -1] = "LessThan"; Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo"; @@ -1464,8 +1464,8 @@ var ts = (() => { } return false; } - function createGetCanonicalFileName(useCaseSensitiveFileNames) { - return useCaseSensitiveFileNames ? identity : toFileNameLowerCase; + function createGetCanonicalFileName(useCaseSensitiveFileNames2) { + return useCaseSensitiveFileNames2 ? identity : toFileNameLowerCase; } function patternText({ prefix, suffix }) { return `${prefix}*${suffix}`; @@ -1646,7 +1646,7 @@ var ts = (() => { return void 0; }; hasOwnProperty = Object.prototype.hasOwnProperty; - fileNameLowerCaseRegExp = /[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g; + fileNameLowerCaseRegExp = /[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g; AssertionLevel = /* @__PURE__ */ ((AssertionLevel2) => { AssertionLevel2[AssertionLevel2["None"] = 0] = "None"; AssertionLevel2[AssertionLevel2["Normal"] = 1] = "Normal"; @@ -1748,10 +1748,10 @@ var ts = (() => { } Debug2.log = log; ((_log) => { - function error(s) { + function error2(s) { logMessage(1 /* Error */, s); } - _log.error = error; + _log.error = error2; function warn(s) { logMessage(2 /* Warning */, s); } @@ -1951,7 +1951,7 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`, return func.name; } else { const text = Function.prototype.toString.call(func); - const match = /^function\s+([\w\$]+)\s*\(/.exec(text); + const match = /^function\s+([\w$]+)\s*\(/.exec(text); return match ? match[1] : ""; } } @@ -2025,6 +2025,15 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`, ); } Debug2.formatSnippetKind = formatSnippetKind; + function formatScriptKind(kind) { + return formatEnum( + kind, + ScriptKind, + /*isFlags*/ + false + ); + } + Debug2.formatScriptKind = formatScriptKind; function formatNodeFlags(flags) { return formatEnum( flags, @@ -2927,13 +2936,13 @@ ${lanes.join("\n")} "src/compiler/semver.ts"() { "use strict"; init_ts2(); - versionRegExp = /^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i; + versionRegExp = /^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i; prereleaseRegExp = /^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i; prereleasePartRegExp = /^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i; buildRegExp = /^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i; buildPartRegExp = /^[a-z0-9-]+$/i; numericIdentifierRegExp = /^(0|[1-9]\d*)$/; - _Version = class { + _Version = class _Version { constructor(major, minor = 0, patch = 0, prerelease = "", build2 = "") { if (typeof major === "string") { const result = Debug.checkDefined(tryParseComponents(major), "Invalid version"); @@ -2997,16 +3006,16 @@ ${lanes.join("\n")} return result; } }; + _Version.zero = new _Version(0, 0, 0, ["0"]); Version = _Version; - Version.zero = new _Version(0, 0, 0, ["0"]); - VersionRange = class { + VersionRange = class _VersionRange { constructor(spec) { this._alternatives = spec ? Debug.checkDefined(parseRange(spec), "Invalid range spec.") : emptyArray; } static tryParse(text) { const sets = parseRange(text); if (sets) { - const range = new VersionRange(""); + const range = new _VersionRange(""); range._alternatives = sets; return range; } @@ -3684,210 +3693,211 @@ ${lanes.join("\n")} SyntaxKind5[SyntaxKind5["UndefinedKeyword"] = 157] = "UndefinedKeyword"; SyntaxKind5[SyntaxKind5["UniqueKeyword"] = 158] = "UniqueKeyword"; SyntaxKind5[SyntaxKind5["UnknownKeyword"] = 159] = "UnknownKeyword"; - SyntaxKind5[SyntaxKind5["FromKeyword"] = 160] = "FromKeyword"; - SyntaxKind5[SyntaxKind5["GlobalKeyword"] = 161] = "GlobalKeyword"; - SyntaxKind5[SyntaxKind5["BigIntKeyword"] = 162] = "BigIntKeyword"; - SyntaxKind5[SyntaxKind5["OverrideKeyword"] = 163] = "OverrideKeyword"; - SyntaxKind5[SyntaxKind5["OfKeyword"] = 164] = "OfKeyword"; - SyntaxKind5[SyntaxKind5["QualifiedName"] = 165] = "QualifiedName"; - SyntaxKind5[SyntaxKind5["ComputedPropertyName"] = 166] = "ComputedPropertyName"; - SyntaxKind5[SyntaxKind5["TypeParameter"] = 167] = "TypeParameter"; - SyntaxKind5[SyntaxKind5["Parameter"] = 168] = "Parameter"; - SyntaxKind5[SyntaxKind5["Decorator"] = 169] = "Decorator"; - SyntaxKind5[SyntaxKind5["PropertySignature"] = 170] = "PropertySignature"; - SyntaxKind5[SyntaxKind5["PropertyDeclaration"] = 171] = "PropertyDeclaration"; - SyntaxKind5[SyntaxKind5["MethodSignature"] = 172] = "MethodSignature"; - SyntaxKind5[SyntaxKind5["MethodDeclaration"] = 173] = "MethodDeclaration"; - SyntaxKind5[SyntaxKind5["ClassStaticBlockDeclaration"] = 174] = "ClassStaticBlockDeclaration"; - SyntaxKind5[SyntaxKind5["Constructor"] = 175] = "Constructor"; - SyntaxKind5[SyntaxKind5["GetAccessor"] = 176] = "GetAccessor"; - SyntaxKind5[SyntaxKind5["SetAccessor"] = 177] = "SetAccessor"; - SyntaxKind5[SyntaxKind5["CallSignature"] = 178] = "CallSignature"; - SyntaxKind5[SyntaxKind5["ConstructSignature"] = 179] = "ConstructSignature"; - SyntaxKind5[SyntaxKind5["IndexSignature"] = 180] = "IndexSignature"; - SyntaxKind5[SyntaxKind5["TypePredicate"] = 181] = "TypePredicate"; - SyntaxKind5[SyntaxKind5["TypeReference"] = 182] = "TypeReference"; - SyntaxKind5[SyntaxKind5["FunctionType"] = 183] = "FunctionType"; - SyntaxKind5[SyntaxKind5["ConstructorType"] = 184] = "ConstructorType"; - SyntaxKind5[SyntaxKind5["TypeQuery"] = 185] = "TypeQuery"; - SyntaxKind5[SyntaxKind5["TypeLiteral"] = 186] = "TypeLiteral"; - SyntaxKind5[SyntaxKind5["ArrayType"] = 187] = "ArrayType"; - SyntaxKind5[SyntaxKind5["TupleType"] = 188] = "TupleType"; - SyntaxKind5[SyntaxKind5["OptionalType"] = 189] = "OptionalType"; - SyntaxKind5[SyntaxKind5["RestType"] = 190] = "RestType"; - SyntaxKind5[SyntaxKind5["UnionType"] = 191] = "UnionType"; - SyntaxKind5[SyntaxKind5["IntersectionType"] = 192] = "IntersectionType"; - SyntaxKind5[SyntaxKind5["ConditionalType"] = 193] = "ConditionalType"; - SyntaxKind5[SyntaxKind5["InferType"] = 194] = "InferType"; - SyntaxKind5[SyntaxKind5["ParenthesizedType"] = 195] = "ParenthesizedType"; - SyntaxKind5[SyntaxKind5["ThisType"] = 196] = "ThisType"; - SyntaxKind5[SyntaxKind5["TypeOperator"] = 197] = "TypeOperator"; - SyntaxKind5[SyntaxKind5["IndexedAccessType"] = 198] = "IndexedAccessType"; - SyntaxKind5[SyntaxKind5["MappedType"] = 199] = "MappedType"; - SyntaxKind5[SyntaxKind5["LiteralType"] = 200] = "LiteralType"; - SyntaxKind5[SyntaxKind5["NamedTupleMember"] = 201] = "NamedTupleMember"; - SyntaxKind5[SyntaxKind5["TemplateLiteralType"] = 202] = "TemplateLiteralType"; - SyntaxKind5[SyntaxKind5["TemplateLiteralTypeSpan"] = 203] = "TemplateLiteralTypeSpan"; - SyntaxKind5[SyntaxKind5["ImportType"] = 204] = "ImportType"; - SyntaxKind5[SyntaxKind5["ObjectBindingPattern"] = 205] = "ObjectBindingPattern"; - SyntaxKind5[SyntaxKind5["ArrayBindingPattern"] = 206] = "ArrayBindingPattern"; - SyntaxKind5[SyntaxKind5["BindingElement"] = 207] = "BindingElement"; - SyntaxKind5[SyntaxKind5["ArrayLiteralExpression"] = 208] = "ArrayLiteralExpression"; - SyntaxKind5[SyntaxKind5["ObjectLiteralExpression"] = 209] = "ObjectLiteralExpression"; - SyntaxKind5[SyntaxKind5["PropertyAccessExpression"] = 210] = "PropertyAccessExpression"; - SyntaxKind5[SyntaxKind5["ElementAccessExpression"] = 211] = "ElementAccessExpression"; - SyntaxKind5[SyntaxKind5["CallExpression"] = 212] = "CallExpression"; - SyntaxKind5[SyntaxKind5["NewExpression"] = 213] = "NewExpression"; - SyntaxKind5[SyntaxKind5["TaggedTemplateExpression"] = 214] = "TaggedTemplateExpression"; - SyntaxKind5[SyntaxKind5["TypeAssertionExpression"] = 215] = "TypeAssertionExpression"; - SyntaxKind5[SyntaxKind5["ParenthesizedExpression"] = 216] = "ParenthesizedExpression"; - SyntaxKind5[SyntaxKind5["FunctionExpression"] = 217] = "FunctionExpression"; - SyntaxKind5[SyntaxKind5["ArrowFunction"] = 218] = "ArrowFunction"; - SyntaxKind5[SyntaxKind5["DeleteExpression"] = 219] = "DeleteExpression"; - SyntaxKind5[SyntaxKind5["TypeOfExpression"] = 220] = "TypeOfExpression"; - SyntaxKind5[SyntaxKind5["VoidExpression"] = 221] = "VoidExpression"; - SyntaxKind5[SyntaxKind5["AwaitExpression"] = 222] = "AwaitExpression"; - SyntaxKind5[SyntaxKind5["PrefixUnaryExpression"] = 223] = "PrefixUnaryExpression"; - SyntaxKind5[SyntaxKind5["PostfixUnaryExpression"] = 224] = "PostfixUnaryExpression"; - SyntaxKind5[SyntaxKind5["BinaryExpression"] = 225] = "BinaryExpression"; - SyntaxKind5[SyntaxKind5["ConditionalExpression"] = 226] = "ConditionalExpression"; - SyntaxKind5[SyntaxKind5["TemplateExpression"] = 227] = "TemplateExpression"; - SyntaxKind5[SyntaxKind5["YieldExpression"] = 228] = "YieldExpression"; - SyntaxKind5[SyntaxKind5["SpreadElement"] = 229] = "SpreadElement"; - SyntaxKind5[SyntaxKind5["ClassExpression"] = 230] = "ClassExpression"; - SyntaxKind5[SyntaxKind5["OmittedExpression"] = 231] = "OmittedExpression"; - SyntaxKind5[SyntaxKind5["ExpressionWithTypeArguments"] = 232] = "ExpressionWithTypeArguments"; - SyntaxKind5[SyntaxKind5["AsExpression"] = 233] = "AsExpression"; - SyntaxKind5[SyntaxKind5["NonNullExpression"] = 234] = "NonNullExpression"; - SyntaxKind5[SyntaxKind5["MetaProperty"] = 235] = "MetaProperty"; - SyntaxKind5[SyntaxKind5["SyntheticExpression"] = 236] = "SyntheticExpression"; - SyntaxKind5[SyntaxKind5["SatisfiesExpression"] = 237] = "SatisfiesExpression"; - SyntaxKind5[SyntaxKind5["TemplateSpan"] = 238] = "TemplateSpan"; - SyntaxKind5[SyntaxKind5["SemicolonClassElement"] = 239] = "SemicolonClassElement"; - SyntaxKind5[SyntaxKind5["Block"] = 240] = "Block"; - SyntaxKind5[SyntaxKind5["EmptyStatement"] = 241] = "EmptyStatement"; - SyntaxKind5[SyntaxKind5["VariableStatement"] = 242] = "VariableStatement"; - SyntaxKind5[SyntaxKind5["ExpressionStatement"] = 243] = "ExpressionStatement"; - SyntaxKind5[SyntaxKind5["IfStatement"] = 244] = "IfStatement"; - SyntaxKind5[SyntaxKind5["DoStatement"] = 245] = "DoStatement"; - SyntaxKind5[SyntaxKind5["WhileStatement"] = 246] = "WhileStatement"; - SyntaxKind5[SyntaxKind5["ForStatement"] = 247] = "ForStatement"; - SyntaxKind5[SyntaxKind5["ForInStatement"] = 248] = "ForInStatement"; - SyntaxKind5[SyntaxKind5["ForOfStatement"] = 249] = "ForOfStatement"; - SyntaxKind5[SyntaxKind5["ContinueStatement"] = 250] = "ContinueStatement"; - SyntaxKind5[SyntaxKind5["BreakStatement"] = 251] = "BreakStatement"; - SyntaxKind5[SyntaxKind5["ReturnStatement"] = 252] = "ReturnStatement"; - SyntaxKind5[SyntaxKind5["WithStatement"] = 253] = "WithStatement"; - SyntaxKind5[SyntaxKind5["SwitchStatement"] = 254] = "SwitchStatement"; - SyntaxKind5[SyntaxKind5["LabeledStatement"] = 255] = "LabeledStatement"; - SyntaxKind5[SyntaxKind5["ThrowStatement"] = 256] = "ThrowStatement"; - SyntaxKind5[SyntaxKind5["TryStatement"] = 257] = "TryStatement"; - SyntaxKind5[SyntaxKind5["DebuggerStatement"] = 258] = "DebuggerStatement"; - SyntaxKind5[SyntaxKind5["VariableDeclaration"] = 259] = "VariableDeclaration"; - SyntaxKind5[SyntaxKind5["VariableDeclarationList"] = 260] = "VariableDeclarationList"; - SyntaxKind5[SyntaxKind5["FunctionDeclaration"] = 261] = "FunctionDeclaration"; - SyntaxKind5[SyntaxKind5["ClassDeclaration"] = 262] = "ClassDeclaration"; - SyntaxKind5[SyntaxKind5["InterfaceDeclaration"] = 263] = "InterfaceDeclaration"; - SyntaxKind5[SyntaxKind5["TypeAliasDeclaration"] = 264] = "TypeAliasDeclaration"; - SyntaxKind5[SyntaxKind5["EnumDeclaration"] = 265] = "EnumDeclaration"; - SyntaxKind5[SyntaxKind5["ModuleDeclaration"] = 266] = "ModuleDeclaration"; - SyntaxKind5[SyntaxKind5["ModuleBlock"] = 267] = "ModuleBlock"; - SyntaxKind5[SyntaxKind5["CaseBlock"] = 268] = "CaseBlock"; - SyntaxKind5[SyntaxKind5["NamespaceExportDeclaration"] = 269] = "NamespaceExportDeclaration"; - SyntaxKind5[SyntaxKind5["ImportEqualsDeclaration"] = 270] = "ImportEqualsDeclaration"; - SyntaxKind5[SyntaxKind5["ImportDeclaration"] = 271] = "ImportDeclaration"; - SyntaxKind5[SyntaxKind5["ImportClause"] = 272] = "ImportClause"; - SyntaxKind5[SyntaxKind5["NamespaceImport"] = 273] = "NamespaceImport"; - SyntaxKind5[SyntaxKind5["NamedImports"] = 274] = "NamedImports"; - SyntaxKind5[SyntaxKind5["ImportSpecifier"] = 275] = "ImportSpecifier"; - SyntaxKind5[SyntaxKind5["ExportAssignment"] = 276] = "ExportAssignment"; - SyntaxKind5[SyntaxKind5["ExportDeclaration"] = 277] = "ExportDeclaration"; - SyntaxKind5[SyntaxKind5["NamedExports"] = 278] = "NamedExports"; - SyntaxKind5[SyntaxKind5["NamespaceExport"] = 279] = "NamespaceExport"; - SyntaxKind5[SyntaxKind5["ExportSpecifier"] = 280] = "ExportSpecifier"; - SyntaxKind5[SyntaxKind5["MissingDeclaration"] = 281] = "MissingDeclaration"; - SyntaxKind5[SyntaxKind5["ExternalModuleReference"] = 282] = "ExternalModuleReference"; - SyntaxKind5[SyntaxKind5["JsxElement"] = 283] = "JsxElement"; - SyntaxKind5[SyntaxKind5["JsxSelfClosingElement"] = 284] = "JsxSelfClosingElement"; - SyntaxKind5[SyntaxKind5["JsxOpeningElement"] = 285] = "JsxOpeningElement"; - SyntaxKind5[SyntaxKind5["JsxClosingElement"] = 286] = "JsxClosingElement"; - SyntaxKind5[SyntaxKind5["JsxFragment"] = 287] = "JsxFragment"; - SyntaxKind5[SyntaxKind5["JsxOpeningFragment"] = 288] = "JsxOpeningFragment"; - SyntaxKind5[SyntaxKind5["JsxClosingFragment"] = 289] = "JsxClosingFragment"; - SyntaxKind5[SyntaxKind5["JsxAttribute"] = 290] = "JsxAttribute"; - SyntaxKind5[SyntaxKind5["JsxAttributes"] = 291] = "JsxAttributes"; - SyntaxKind5[SyntaxKind5["JsxSpreadAttribute"] = 292] = "JsxSpreadAttribute"; - SyntaxKind5[SyntaxKind5["JsxExpression"] = 293] = "JsxExpression"; - SyntaxKind5[SyntaxKind5["JsxNamespacedName"] = 294] = "JsxNamespacedName"; - SyntaxKind5[SyntaxKind5["CaseClause"] = 295] = "CaseClause"; - SyntaxKind5[SyntaxKind5["DefaultClause"] = 296] = "DefaultClause"; - SyntaxKind5[SyntaxKind5["HeritageClause"] = 297] = "HeritageClause"; - SyntaxKind5[SyntaxKind5["CatchClause"] = 298] = "CatchClause"; - SyntaxKind5[SyntaxKind5["AssertClause"] = 299] = "AssertClause"; - SyntaxKind5[SyntaxKind5["AssertEntry"] = 300] = "AssertEntry"; - SyntaxKind5[SyntaxKind5["ImportTypeAssertionContainer"] = 301] = "ImportTypeAssertionContainer"; - SyntaxKind5[SyntaxKind5["PropertyAssignment"] = 302] = "PropertyAssignment"; - SyntaxKind5[SyntaxKind5["ShorthandPropertyAssignment"] = 303] = "ShorthandPropertyAssignment"; - SyntaxKind5[SyntaxKind5["SpreadAssignment"] = 304] = "SpreadAssignment"; - SyntaxKind5[SyntaxKind5["EnumMember"] = 305] = "EnumMember"; - SyntaxKind5[SyntaxKind5["UnparsedPrologue"] = 306] = "UnparsedPrologue"; - SyntaxKind5[SyntaxKind5["UnparsedPrepend"] = 307] = "UnparsedPrepend"; - SyntaxKind5[SyntaxKind5["UnparsedText"] = 308] = "UnparsedText"; - SyntaxKind5[SyntaxKind5["UnparsedInternalText"] = 309] = "UnparsedInternalText"; - SyntaxKind5[SyntaxKind5["UnparsedSyntheticReference"] = 310] = "UnparsedSyntheticReference"; - SyntaxKind5[SyntaxKind5["SourceFile"] = 311] = "SourceFile"; - SyntaxKind5[SyntaxKind5["Bundle"] = 312] = "Bundle"; - SyntaxKind5[SyntaxKind5["UnparsedSource"] = 313] = "UnparsedSource"; - SyntaxKind5[SyntaxKind5["InputFiles"] = 314] = "InputFiles"; - SyntaxKind5[SyntaxKind5["JSDocTypeExpression"] = 315] = "JSDocTypeExpression"; - SyntaxKind5[SyntaxKind5["JSDocNameReference"] = 316] = "JSDocNameReference"; - SyntaxKind5[SyntaxKind5["JSDocMemberName"] = 317] = "JSDocMemberName"; - SyntaxKind5[SyntaxKind5["JSDocAllType"] = 318] = "JSDocAllType"; - SyntaxKind5[SyntaxKind5["JSDocUnknownType"] = 319] = "JSDocUnknownType"; - SyntaxKind5[SyntaxKind5["JSDocNullableType"] = 320] = "JSDocNullableType"; - SyntaxKind5[SyntaxKind5["JSDocNonNullableType"] = 321] = "JSDocNonNullableType"; - SyntaxKind5[SyntaxKind5["JSDocOptionalType"] = 322] = "JSDocOptionalType"; - SyntaxKind5[SyntaxKind5["JSDocFunctionType"] = 323] = "JSDocFunctionType"; - SyntaxKind5[SyntaxKind5["JSDocVariadicType"] = 324] = "JSDocVariadicType"; - SyntaxKind5[SyntaxKind5["JSDocNamepathType"] = 325] = "JSDocNamepathType"; - SyntaxKind5[SyntaxKind5["JSDoc"] = 326] = "JSDoc"; - SyntaxKind5[SyntaxKind5["JSDocComment"] = 326 /* JSDoc */] = "JSDocComment"; - SyntaxKind5[SyntaxKind5["JSDocText"] = 327] = "JSDocText"; - SyntaxKind5[SyntaxKind5["JSDocTypeLiteral"] = 328] = "JSDocTypeLiteral"; - SyntaxKind5[SyntaxKind5["JSDocSignature"] = 329] = "JSDocSignature"; - SyntaxKind5[SyntaxKind5["JSDocLink"] = 330] = "JSDocLink"; - SyntaxKind5[SyntaxKind5["JSDocLinkCode"] = 331] = "JSDocLinkCode"; - SyntaxKind5[SyntaxKind5["JSDocLinkPlain"] = 332] = "JSDocLinkPlain"; - SyntaxKind5[SyntaxKind5["JSDocTag"] = 333] = "JSDocTag"; - SyntaxKind5[SyntaxKind5["JSDocAugmentsTag"] = 334] = "JSDocAugmentsTag"; - SyntaxKind5[SyntaxKind5["JSDocImplementsTag"] = 335] = "JSDocImplementsTag"; - SyntaxKind5[SyntaxKind5["JSDocAuthorTag"] = 336] = "JSDocAuthorTag"; - SyntaxKind5[SyntaxKind5["JSDocDeprecatedTag"] = 337] = "JSDocDeprecatedTag"; - SyntaxKind5[SyntaxKind5["JSDocClassTag"] = 338] = "JSDocClassTag"; - SyntaxKind5[SyntaxKind5["JSDocPublicTag"] = 339] = "JSDocPublicTag"; - SyntaxKind5[SyntaxKind5["JSDocPrivateTag"] = 340] = "JSDocPrivateTag"; - SyntaxKind5[SyntaxKind5["JSDocProtectedTag"] = 341] = "JSDocProtectedTag"; - SyntaxKind5[SyntaxKind5["JSDocReadonlyTag"] = 342] = "JSDocReadonlyTag"; - SyntaxKind5[SyntaxKind5["JSDocOverrideTag"] = 343] = "JSDocOverrideTag"; - SyntaxKind5[SyntaxKind5["JSDocCallbackTag"] = 344] = "JSDocCallbackTag"; - SyntaxKind5[SyntaxKind5["JSDocOverloadTag"] = 345] = "JSDocOverloadTag"; - SyntaxKind5[SyntaxKind5["JSDocEnumTag"] = 346] = "JSDocEnumTag"; - SyntaxKind5[SyntaxKind5["JSDocParameterTag"] = 347] = "JSDocParameterTag"; - SyntaxKind5[SyntaxKind5["JSDocReturnTag"] = 348] = "JSDocReturnTag"; - SyntaxKind5[SyntaxKind5["JSDocThisTag"] = 349] = "JSDocThisTag"; - SyntaxKind5[SyntaxKind5["JSDocTypeTag"] = 350] = "JSDocTypeTag"; - SyntaxKind5[SyntaxKind5["JSDocTemplateTag"] = 351] = "JSDocTemplateTag"; - SyntaxKind5[SyntaxKind5["JSDocTypedefTag"] = 352] = "JSDocTypedefTag"; - SyntaxKind5[SyntaxKind5["JSDocSeeTag"] = 353] = "JSDocSeeTag"; - SyntaxKind5[SyntaxKind5["JSDocPropertyTag"] = 354] = "JSDocPropertyTag"; - SyntaxKind5[SyntaxKind5["JSDocThrowsTag"] = 355] = "JSDocThrowsTag"; - SyntaxKind5[SyntaxKind5["JSDocSatisfiesTag"] = 356] = "JSDocSatisfiesTag"; - SyntaxKind5[SyntaxKind5["SyntaxList"] = 357] = "SyntaxList"; - SyntaxKind5[SyntaxKind5["NotEmittedStatement"] = 358] = "NotEmittedStatement"; - SyntaxKind5[SyntaxKind5["PartiallyEmittedExpression"] = 359] = "PartiallyEmittedExpression"; - SyntaxKind5[SyntaxKind5["CommaListExpression"] = 360] = "CommaListExpression"; - SyntaxKind5[SyntaxKind5["SyntheticReferenceExpression"] = 361] = "SyntheticReferenceExpression"; - SyntaxKind5[SyntaxKind5["Count"] = 362] = "Count"; + SyntaxKind5[SyntaxKind5["UsingKeyword"] = 160] = "UsingKeyword"; + SyntaxKind5[SyntaxKind5["FromKeyword"] = 161] = "FromKeyword"; + SyntaxKind5[SyntaxKind5["GlobalKeyword"] = 162] = "GlobalKeyword"; + SyntaxKind5[SyntaxKind5["BigIntKeyword"] = 163] = "BigIntKeyword"; + SyntaxKind5[SyntaxKind5["OverrideKeyword"] = 164] = "OverrideKeyword"; + SyntaxKind5[SyntaxKind5["OfKeyword"] = 165] = "OfKeyword"; + SyntaxKind5[SyntaxKind5["QualifiedName"] = 166] = "QualifiedName"; + SyntaxKind5[SyntaxKind5["ComputedPropertyName"] = 167] = "ComputedPropertyName"; + SyntaxKind5[SyntaxKind5["TypeParameter"] = 168] = "TypeParameter"; + SyntaxKind5[SyntaxKind5["Parameter"] = 169] = "Parameter"; + SyntaxKind5[SyntaxKind5["Decorator"] = 170] = "Decorator"; + SyntaxKind5[SyntaxKind5["PropertySignature"] = 171] = "PropertySignature"; + SyntaxKind5[SyntaxKind5["PropertyDeclaration"] = 172] = "PropertyDeclaration"; + SyntaxKind5[SyntaxKind5["MethodSignature"] = 173] = "MethodSignature"; + SyntaxKind5[SyntaxKind5["MethodDeclaration"] = 174] = "MethodDeclaration"; + SyntaxKind5[SyntaxKind5["ClassStaticBlockDeclaration"] = 175] = "ClassStaticBlockDeclaration"; + SyntaxKind5[SyntaxKind5["Constructor"] = 176] = "Constructor"; + SyntaxKind5[SyntaxKind5["GetAccessor"] = 177] = "GetAccessor"; + SyntaxKind5[SyntaxKind5["SetAccessor"] = 178] = "SetAccessor"; + SyntaxKind5[SyntaxKind5["CallSignature"] = 179] = "CallSignature"; + SyntaxKind5[SyntaxKind5["ConstructSignature"] = 180] = "ConstructSignature"; + SyntaxKind5[SyntaxKind5["IndexSignature"] = 181] = "IndexSignature"; + SyntaxKind5[SyntaxKind5["TypePredicate"] = 182] = "TypePredicate"; + SyntaxKind5[SyntaxKind5["TypeReference"] = 183] = "TypeReference"; + SyntaxKind5[SyntaxKind5["FunctionType"] = 184] = "FunctionType"; + SyntaxKind5[SyntaxKind5["ConstructorType"] = 185] = "ConstructorType"; + SyntaxKind5[SyntaxKind5["TypeQuery"] = 186] = "TypeQuery"; + SyntaxKind5[SyntaxKind5["TypeLiteral"] = 187] = "TypeLiteral"; + SyntaxKind5[SyntaxKind5["ArrayType"] = 188] = "ArrayType"; + SyntaxKind5[SyntaxKind5["TupleType"] = 189] = "TupleType"; + SyntaxKind5[SyntaxKind5["OptionalType"] = 190] = "OptionalType"; + SyntaxKind5[SyntaxKind5["RestType"] = 191] = "RestType"; + SyntaxKind5[SyntaxKind5["UnionType"] = 192] = "UnionType"; + SyntaxKind5[SyntaxKind5["IntersectionType"] = 193] = "IntersectionType"; + SyntaxKind5[SyntaxKind5["ConditionalType"] = 194] = "ConditionalType"; + SyntaxKind5[SyntaxKind5["InferType"] = 195] = "InferType"; + SyntaxKind5[SyntaxKind5["ParenthesizedType"] = 196] = "ParenthesizedType"; + SyntaxKind5[SyntaxKind5["ThisType"] = 197] = "ThisType"; + SyntaxKind5[SyntaxKind5["TypeOperator"] = 198] = "TypeOperator"; + SyntaxKind5[SyntaxKind5["IndexedAccessType"] = 199] = "IndexedAccessType"; + SyntaxKind5[SyntaxKind5["MappedType"] = 200] = "MappedType"; + SyntaxKind5[SyntaxKind5["LiteralType"] = 201] = "LiteralType"; + SyntaxKind5[SyntaxKind5["NamedTupleMember"] = 202] = "NamedTupleMember"; + SyntaxKind5[SyntaxKind5["TemplateLiteralType"] = 203] = "TemplateLiteralType"; + SyntaxKind5[SyntaxKind5["TemplateLiteralTypeSpan"] = 204] = "TemplateLiteralTypeSpan"; + SyntaxKind5[SyntaxKind5["ImportType"] = 205] = "ImportType"; + SyntaxKind5[SyntaxKind5["ObjectBindingPattern"] = 206] = "ObjectBindingPattern"; + SyntaxKind5[SyntaxKind5["ArrayBindingPattern"] = 207] = "ArrayBindingPattern"; + SyntaxKind5[SyntaxKind5["BindingElement"] = 208] = "BindingElement"; + SyntaxKind5[SyntaxKind5["ArrayLiteralExpression"] = 209] = "ArrayLiteralExpression"; + SyntaxKind5[SyntaxKind5["ObjectLiteralExpression"] = 210] = "ObjectLiteralExpression"; + SyntaxKind5[SyntaxKind5["PropertyAccessExpression"] = 211] = "PropertyAccessExpression"; + SyntaxKind5[SyntaxKind5["ElementAccessExpression"] = 212] = "ElementAccessExpression"; + SyntaxKind5[SyntaxKind5["CallExpression"] = 213] = "CallExpression"; + SyntaxKind5[SyntaxKind5["NewExpression"] = 214] = "NewExpression"; + SyntaxKind5[SyntaxKind5["TaggedTemplateExpression"] = 215] = "TaggedTemplateExpression"; + SyntaxKind5[SyntaxKind5["TypeAssertionExpression"] = 216] = "TypeAssertionExpression"; + SyntaxKind5[SyntaxKind5["ParenthesizedExpression"] = 217] = "ParenthesizedExpression"; + SyntaxKind5[SyntaxKind5["FunctionExpression"] = 218] = "FunctionExpression"; + SyntaxKind5[SyntaxKind5["ArrowFunction"] = 219] = "ArrowFunction"; + SyntaxKind5[SyntaxKind5["DeleteExpression"] = 220] = "DeleteExpression"; + SyntaxKind5[SyntaxKind5["TypeOfExpression"] = 221] = "TypeOfExpression"; + SyntaxKind5[SyntaxKind5["VoidExpression"] = 222] = "VoidExpression"; + SyntaxKind5[SyntaxKind5["AwaitExpression"] = 223] = "AwaitExpression"; + SyntaxKind5[SyntaxKind5["PrefixUnaryExpression"] = 224] = "PrefixUnaryExpression"; + SyntaxKind5[SyntaxKind5["PostfixUnaryExpression"] = 225] = "PostfixUnaryExpression"; + SyntaxKind5[SyntaxKind5["BinaryExpression"] = 226] = "BinaryExpression"; + SyntaxKind5[SyntaxKind5["ConditionalExpression"] = 227] = "ConditionalExpression"; + SyntaxKind5[SyntaxKind5["TemplateExpression"] = 228] = "TemplateExpression"; + SyntaxKind5[SyntaxKind5["YieldExpression"] = 229] = "YieldExpression"; + SyntaxKind5[SyntaxKind5["SpreadElement"] = 230] = "SpreadElement"; + SyntaxKind5[SyntaxKind5["ClassExpression"] = 231] = "ClassExpression"; + SyntaxKind5[SyntaxKind5["OmittedExpression"] = 232] = "OmittedExpression"; + SyntaxKind5[SyntaxKind5["ExpressionWithTypeArguments"] = 233] = "ExpressionWithTypeArguments"; + SyntaxKind5[SyntaxKind5["AsExpression"] = 234] = "AsExpression"; + SyntaxKind5[SyntaxKind5["NonNullExpression"] = 235] = "NonNullExpression"; + SyntaxKind5[SyntaxKind5["MetaProperty"] = 236] = "MetaProperty"; + SyntaxKind5[SyntaxKind5["SyntheticExpression"] = 237] = "SyntheticExpression"; + SyntaxKind5[SyntaxKind5["SatisfiesExpression"] = 238] = "SatisfiesExpression"; + SyntaxKind5[SyntaxKind5["TemplateSpan"] = 239] = "TemplateSpan"; + SyntaxKind5[SyntaxKind5["SemicolonClassElement"] = 240] = "SemicolonClassElement"; + SyntaxKind5[SyntaxKind5["Block"] = 241] = "Block"; + SyntaxKind5[SyntaxKind5["EmptyStatement"] = 242] = "EmptyStatement"; + SyntaxKind5[SyntaxKind5["VariableStatement"] = 243] = "VariableStatement"; + SyntaxKind5[SyntaxKind5["ExpressionStatement"] = 244] = "ExpressionStatement"; + SyntaxKind5[SyntaxKind5["IfStatement"] = 245] = "IfStatement"; + SyntaxKind5[SyntaxKind5["DoStatement"] = 246] = "DoStatement"; + SyntaxKind5[SyntaxKind5["WhileStatement"] = 247] = "WhileStatement"; + SyntaxKind5[SyntaxKind5["ForStatement"] = 248] = "ForStatement"; + SyntaxKind5[SyntaxKind5["ForInStatement"] = 249] = "ForInStatement"; + SyntaxKind5[SyntaxKind5["ForOfStatement"] = 250] = "ForOfStatement"; + SyntaxKind5[SyntaxKind5["ContinueStatement"] = 251] = "ContinueStatement"; + SyntaxKind5[SyntaxKind5["BreakStatement"] = 252] = "BreakStatement"; + SyntaxKind5[SyntaxKind5["ReturnStatement"] = 253] = "ReturnStatement"; + SyntaxKind5[SyntaxKind5["WithStatement"] = 254] = "WithStatement"; + SyntaxKind5[SyntaxKind5["SwitchStatement"] = 255] = "SwitchStatement"; + SyntaxKind5[SyntaxKind5["LabeledStatement"] = 256] = "LabeledStatement"; + SyntaxKind5[SyntaxKind5["ThrowStatement"] = 257] = "ThrowStatement"; + SyntaxKind5[SyntaxKind5["TryStatement"] = 258] = "TryStatement"; + SyntaxKind5[SyntaxKind5["DebuggerStatement"] = 259] = "DebuggerStatement"; + SyntaxKind5[SyntaxKind5["VariableDeclaration"] = 260] = "VariableDeclaration"; + SyntaxKind5[SyntaxKind5["VariableDeclarationList"] = 261] = "VariableDeclarationList"; + SyntaxKind5[SyntaxKind5["FunctionDeclaration"] = 262] = "FunctionDeclaration"; + SyntaxKind5[SyntaxKind5["ClassDeclaration"] = 263] = "ClassDeclaration"; + SyntaxKind5[SyntaxKind5["InterfaceDeclaration"] = 264] = "InterfaceDeclaration"; + SyntaxKind5[SyntaxKind5["TypeAliasDeclaration"] = 265] = "TypeAliasDeclaration"; + SyntaxKind5[SyntaxKind5["EnumDeclaration"] = 266] = "EnumDeclaration"; + SyntaxKind5[SyntaxKind5["ModuleDeclaration"] = 267] = "ModuleDeclaration"; + SyntaxKind5[SyntaxKind5["ModuleBlock"] = 268] = "ModuleBlock"; + SyntaxKind5[SyntaxKind5["CaseBlock"] = 269] = "CaseBlock"; + SyntaxKind5[SyntaxKind5["NamespaceExportDeclaration"] = 270] = "NamespaceExportDeclaration"; + SyntaxKind5[SyntaxKind5["ImportEqualsDeclaration"] = 271] = "ImportEqualsDeclaration"; + SyntaxKind5[SyntaxKind5["ImportDeclaration"] = 272] = "ImportDeclaration"; + SyntaxKind5[SyntaxKind5["ImportClause"] = 273] = "ImportClause"; + SyntaxKind5[SyntaxKind5["NamespaceImport"] = 274] = "NamespaceImport"; + SyntaxKind5[SyntaxKind5["NamedImports"] = 275] = "NamedImports"; + SyntaxKind5[SyntaxKind5["ImportSpecifier"] = 276] = "ImportSpecifier"; + SyntaxKind5[SyntaxKind5["ExportAssignment"] = 277] = "ExportAssignment"; + SyntaxKind5[SyntaxKind5["ExportDeclaration"] = 278] = "ExportDeclaration"; + SyntaxKind5[SyntaxKind5["NamedExports"] = 279] = "NamedExports"; + SyntaxKind5[SyntaxKind5["NamespaceExport"] = 280] = "NamespaceExport"; + SyntaxKind5[SyntaxKind5["ExportSpecifier"] = 281] = "ExportSpecifier"; + SyntaxKind5[SyntaxKind5["MissingDeclaration"] = 282] = "MissingDeclaration"; + SyntaxKind5[SyntaxKind5["ExternalModuleReference"] = 283] = "ExternalModuleReference"; + SyntaxKind5[SyntaxKind5["JsxElement"] = 284] = "JsxElement"; + SyntaxKind5[SyntaxKind5["JsxSelfClosingElement"] = 285] = "JsxSelfClosingElement"; + SyntaxKind5[SyntaxKind5["JsxOpeningElement"] = 286] = "JsxOpeningElement"; + SyntaxKind5[SyntaxKind5["JsxClosingElement"] = 287] = "JsxClosingElement"; + SyntaxKind5[SyntaxKind5["JsxFragment"] = 288] = "JsxFragment"; + SyntaxKind5[SyntaxKind5["JsxOpeningFragment"] = 289] = "JsxOpeningFragment"; + SyntaxKind5[SyntaxKind5["JsxClosingFragment"] = 290] = "JsxClosingFragment"; + SyntaxKind5[SyntaxKind5["JsxAttribute"] = 291] = "JsxAttribute"; + SyntaxKind5[SyntaxKind5["JsxAttributes"] = 292] = "JsxAttributes"; + SyntaxKind5[SyntaxKind5["JsxSpreadAttribute"] = 293] = "JsxSpreadAttribute"; + SyntaxKind5[SyntaxKind5["JsxExpression"] = 294] = "JsxExpression"; + SyntaxKind5[SyntaxKind5["JsxNamespacedName"] = 295] = "JsxNamespacedName"; + SyntaxKind5[SyntaxKind5["CaseClause"] = 296] = "CaseClause"; + SyntaxKind5[SyntaxKind5["DefaultClause"] = 297] = "DefaultClause"; + SyntaxKind5[SyntaxKind5["HeritageClause"] = 298] = "HeritageClause"; + SyntaxKind5[SyntaxKind5["CatchClause"] = 299] = "CatchClause"; + SyntaxKind5[SyntaxKind5["AssertClause"] = 300] = "AssertClause"; + SyntaxKind5[SyntaxKind5["AssertEntry"] = 301] = "AssertEntry"; + SyntaxKind5[SyntaxKind5["ImportTypeAssertionContainer"] = 302] = "ImportTypeAssertionContainer"; + SyntaxKind5[SyntaxKind5["PropertyAssignment"] = 303] = "PropertyAssignment"; + SyntaxKind5[SyntaxKind5["ShorthandPropertyAssignment"] = 304] = "ShorthandPropertyAssignment"; + SyntaxKind5[SyntaxKind5["SpreadAssignment"] = 305] = "SpreadAssignment"; + SyntaxKind5[SyntaxKind5["EnumMember"] = 306] = "EnumMember"; + SyntaxKind5[SyntaxKind5["UnparsedPrologue"] = 307] = "UnparsedPrologue"; + SyntaxKind5[SyntaxKind5["UnparsedPrepend"] = 308] = "UnparsedPrepend"; + SyntaxKind5[SyntaxKind5["UnparsedText"] = 309] = "UnparsedText"; + SyntaxKind5[SyntaxKind5["UnparsedInternalText"] = 310] = "UnparsedInternalText"; + SyntaxKind5[SyntaxKind5["UnparsedSyntheticReference"] = 311] = "UnparsedSyntheticReference"; + SyntaxKind5[SyntaxKind5["SourceFile"] = 312] = "SourceFile"; + SyntaxKind5[SyntaxKind5["Bundle"] = 313] = "Bundle"; + SyntaxKind5[SyntaxKind5["UnparsedSource"] = 314] = "UnparsedSource"; + SyntaxKind5[SyntaxKind5["InputFiles"] = 315] = "InputFiles"; + SyntaxKind5[SyntaxKind5["JSDocTypeExpression"] = 316] = "JSDocTypeExpression"; + SyntaxKind5[SyntaxKind5["JSDocNameReference"] = 317] = "JSDocNameReference"; + SyntaxKind5[SyntaxKind5["JSDocMemberName"] = 318] = "JSDocMemberName"; + SyntaxKind5[SyntaxKind5["JSDocAllType"] = 319] = "JSDocAllType"; + SyntaxKind5[SyntaxKind5["JSDocUnknownType"] = 320] = "JSDocUnknownType"; + SyntaxKind5[SyntaxKind5["JSDocNullableType"] = 321] = "JSDocNullableType"; + SyntaxKind5[SyntaxKind5["JSDocNonNullableType"] = 322] = "JSDocNonNullableType"; + SyntaxKind5[SyntaxKind5["JSDocOptionalType"] = 323] = "JSDocOptionalType"; + SyntaxKind5[SyntaxKind5["JSDocFunctionType"] = 324] = "JSDocFunctionType"; + SyntaxKind5[SyntaxKind5["JSDocVariadicType"] = 325] = "JSDocVariadicType"; + SyntaxKind5[SyntaxKind5["JSDocNamepathType"] = 326] = "JSDocNamepathType"; + SyntaxKind5[SyntaxKind5["JSDoc"] = 327] = "JSDoc"; + SyntaxKind5[SyntaxKind5["JSDocComment"] = 327 /* JSDoc */] = "JSDocComment"; + SyntaxKind5[SyntaxKind5["JSDocText"] = 328] = "JSDocText"; + SyntaxKind5[SyntaxKind5["JSDocTypeLiteral"] = 329] = "JSDocTypeLiteral"; + SyntaxKind5[SyntaxKind5["JSDocSignature"] = 330] = "JSDocSignature"; + SyntaxKind5[SyntaxKind5["JSDocLink"] = 331] = "JSDocLink"; + SyntaxKind5[SyntaxKind5["JSDocLinkCode"] = 332] = "JSDocLinkCode"; + SyntaxKind5[SyntaxKind5["JSDocLinkPlain"] = 333] = "JSDocLinkPlain"; + SyntaxKind5[SyntaxKind5["JSDocTag"] = 334] = "JSDocTag"; + SyntaxKind5[SyntaxKind5["JSDocAugmentsTag"] = 335] = "JSDocAugmentsTag"; + SyntaxKind5[SyntaxKind5["JSDocImplementsTag"] = 336] = "JSDocImplementsTag"; + SyntaxKind5[SyntaxKind5["JSDocAuthorTag"] = 337] = "JSDocAuthorTag"; + SyntaxKind5[SyntaxKind5["JSDocDeprecatedTag"] = 338] = "JSDocDeprecatedTag"; + SyntaxKind5[SyntaxKind5["JSDocClassTag"] = 339] = "JSDocClassTag"; + SyntaxKind5[SyntaxKind5["JSDocPublicTag"] = 340] = "JSDocPublicTag"; + SyntaxKind5[SyntaxKind5["JSDocPrivateTag"] = 341] = "JSDocPrivateTag"; + SyntaxKind5[SyntaxKind5["JSDocProtectedTag"] = 342] = "JSDocProtectedTag"; + SyntaxKind5[SyntaxKind5["JSDocReadonlyTag"] = 343] = "JSDocReadonlyTag"; + SyntaxKind5[SyntaxKind5["JSDocOverrideTag"] = 344] = "JSDocOverrideTag"; + SyntaxKind5[SyntaxKind5["JSDocCallbackTag"] = 345] = "JSDocCallbackTag"; + SyntaxKind5[SyntaxKind5["JSDocOverloadTag"] = 346] = "JSDocOverloadTag"; + SyntaxKind5[SyntaxKind5["JSDocEnumTag"] = 347] = "JSDocEnumTag"; + SyntaxKind5[SyntaxKind5["JSDocParameterTag"] = 348] = "JSDocParameterTag"; + SyntaxKind5[SyntaxKind5["JSDocReturnTag"] = 349] = "JSDocReturnTag"; + SyntaxKind5[SyntaxKind5["JSDocThisTag"] = 350] = "JSDocThisTag"; + SyntaxKind5[SyntaxKind5["JSDocTypeTag"] = 351] = "JSDocTypeTag"; + SyntaxKind5[SyntaxKind5["JSDocTemplateTag"] = 352] = "JSDocTemplateTag"; + SyntaxKind5[SyntaxKind5["JSDocTypedefTag"] = 353] = "JSDocTypedefTag"; + SyntaxKind5[SyntaxKind5["JSDocSeeTag"] = 354] = "JSDocSeeTag"; + SyntaxKind5[SyntaxKind5["JSDocPropertyTag"] = 355] = "JSDocPropertyTag"; + SyntaxKind5[SyntaxKind5["JSDocThrowsTag"] = 356] = "JSDocThrowsTag"; + SyntaxKind5[SyntaxKind5["JSDocSatisfiesTag"] = 357] = "JSDocSatisfiesTag"; + SyntaxKind5[SyntaxKind5["SyntaxList"] = 358] = "SyntaxList"; + SyntaxKind5[SyntaxKind5["NotEmittedStatement"] = 359] = "NotEmittedStatement"; + SyntaxKind5[SyntaxKind5["PartiallyEmittedExpression"] = 360] = "PartiallyEmittedExpression"; + SyntaxKind5[SyntaxKind5["CommaListExpression"] = 361] = "CommaListExpression"; + SyntaxKind5[SyntaxKind5["SyntheticReferenceExpression"] = 362] = "SyntheticReferenceExpression"; + SyntaxKind5[SyntaxKind5["Count"] = 363] = "Count"; SyntaxKind5[SyntaxKind5["FirstAssignment"] = 64 /* EqualsToken */] = "FirstAssignment"; SyntaxKind5[SyntaxKind5["LastAssignment"] = 79 /* CaretEqualsToken */] = "LastAssignment"; SyntaxKind5[SyntaxKind5["FirstCompoundAssignment"] = 65 /* PlusEqualsToken */] = "FirstCompoundAssignment"; @@ -3895,15 +3905,15 @@ ${lanes.join("\n")} SyntaxKind5[SyntaxKind5["FirstReservedWord"] = 83 /* BreakKeyword */] = "FirstReservedWord"; SyntaxKind5[SyntaxKind5["LastReservedWord"] = 118 /* WithKeyword */] = "LastReservedWord"; SyntaxKind5[SyntaxKind5["FirstKeyword"] = 83 /* BreakKeyword */] = "FirstKeyword"; - SyntaxKind5[SyntaxKind5["LastKeyword"] = 164 /* OfKeyword */] = "LastKeyword"; + SyntaxKind5[SyntaxKind5["LastKeyword"] = 165 /* OfKeyword */] = "LastKeyword"; SyntaxKind5[SyntaxKind5["FirstFutureReservedWord"] = 119 /* ImplementsKeyword */] = "FirstFutureReservedWord"; SyntaxKind5[SyntaxKind5["LastFutureReservedWord"] = 127 /* YieldKeyword */] = "LastFutureReservedWord"; - SyntaxKind5[SyntaxKind5["FirstTypeNode"] = 181 /* TypePredicate */] = "FirstTypeNode"; - SyntaxKind5[SyntaxKind5["LastTypeNode"] = 204 /* ImportType */] = "LastTypeNode"; + SyntaxKind5[SyntaxKind5["FirstTypeNode"] = 182 /* TypePredicate */] = "FirstTypeNode"; + SyntaxKind5[SyntaxKind5["LastTypeNode"] = 205 /* ImportType */] = "LastTypeNode"; SyntaxKind5[SyntaxKind5["FirstPunctuation"] = 19 /* OpenBraceToken */] = "FirstPunctuation"; SyntaxKind5[SyntaxKind5["LastPunctuation"] = 79 /* CaretEqualsToken */] = "LastPunctuation"; SyntaxKind5[SyntaxKind5["FirstToken"] = 0 /* Unknown */] = "FirstToken"; - SyntaxKind5[SyntaxKind5["LastToken"] = 164 /* LastKeyword */] = "LastToken"; + SyntaxKind5[SyntaxKind5["LastToken"] = 165 /* LastKeyword */] = "LastToken"; SyntaxKind5[SyntaxKind5["FirstTriviaToken"] = 2 /* SingleLineCommentTrivia */] = "FirstTriviaToken"; SyntaxKind5[SyntaxKind5["LastTriviaToken"] = 7 /* ConflictMarkerTrivia */] = "LastTriviaToken"; SyntaxKind5[SyntaxKind5["FirstLiteralToken"] = 9 /* NumericLiteral */] = "FirstLiteralToken"; @@ -3912,56 +3922,59 @@ ${lanes.join("\n")} SyntaxKind5[SyntaxKind5["LastTemplateToken"] = 18 /* TemplateTail */] = "LastTemplateToken"; SyntaxKind5[SyntaxKind5["FirstBinaryOperator"] = 30 /* LessThanToken */] = "FirstBinaryOperator"; SyntaxKind5[SyntaxKind5["LastBinaryOperator"] = 79 /* CaretEqualsToken */] = "LastBinaryOperator"; - SyntaxKind5[SyntaxKind5["FirstStatement"] = 242 /* VariableStatement */] = "FirstStatement"; - SyntaxKind5[SyntaxKind5["LastStatement"] = 258 /* DebuggerStatement */] = "LastStatement"; - SyntaxKind5[SyntaxKind5["FirstNode"] = 165 /* QualifiedName */] = "FirstNode"; - SyntaxKind5[SyntaxKind5["FirstJSDocNode"] = 315 /* JSDocTypeExpression */] = "FirstJSDocNode"; - SyntaxKind5[SyntaxKind5["LastJSDocNode"] = 356 /* JSDocSatisfiesTag */] = "LastJSDocNode"; - SyntaxKind5[SyntaxKind5["FirstJSDocTagNode"] = 333 /* JSDocTag */] = "FirstJSDocTagNode"; - SyntaxKind5[SyntaxKind5["LastJSDocTagNode"] = 356 /* JSDocSatisfiesTag */] = "LastJSDocTagNode"; + SyntaxKind5[SyntaxKind5["FirstStatement"] = 243 /* VariableStatement */] = "FirstStatement"; + SyntaxKind5[SyntaxKind5["LastStatement"] = 259 /* DebuggerStatement */] = "LastStatement"; + SyntaxKind5[SyntaxKind5["FirstNode"] = 166 /* QualifiedName */] = "FirstNode"; + SyntaxKind5[SyntaxKind5["FirstJSDocNode"] = 316 /* JSDocTypeExpression */] = "FirstJSDocNode"; + SyntaxKind5[SyntaxKind5["LastJSDocNode"] = 357 /* JSDocSatisfiesTag */] = "LastJSDocNode"; + SyntaxKind5[SyntaxKind5["FirstJSDocTagNode"] = 334 /* JSDocTag */] = "FirstJSDocTagNode"; + SyntaxKind5[SyntaxKind5["LastJSDocTagNode"] = 357 /* JSDocSatisfiesTag */] = "LastJSDocTagNode"; SyntaxKind5[SyntaxKind5["FirstContextualKeyword"] = 128 /* AbstractKeyword */] = "FirstContextualKeyword"; - SyntaxKind5[SyntaxKind5["LastContextualKeyword"] = 164 /* OfKeyword */] = "LastContextualKeyword"; + SyntaxKind5[SyntaxKind5["LastContextualKeyword"] = 165 /* OfKeyword */] = "LastContextualKeyword"; return SyntaxKind5; })(SyntaxKind || {}); NodeFlags = /* @__PURE__ */ ((NodeFlags3) => { NodeFlags3[NodeFlags3["None"] = 0] = "None"; NodeFlags3[NodeFlags3["Let"] = 1] = "Let"; NodeFlags3[NodeFlags3["Const"] = 2] = "Const"; - NodeFlags3[NodeFlags3["NestedNamespace"] = 4] = "NestedNamespace"; - NodeFlags3[NodeFlags3["Synthesized"] = 8] = "Synthesized"; - NodeFlags3[NodeFlags3["Namespace"] = 16] = "Namespace"; - NodeFlags3[NodeFlags3["OptionalChain"] = 32] = "OptionalChain"; - NodeFlags3[NodeFlags3["ExportContext"] = 64] = "ExportContext"; - NodeFlags3[NodeFlags3["ContainsThis"] = 128] = "ContainsThis"; - NodeFlags3[NodeFlags3["HasImplicitReturn"] = 256] = "HasImplicitReturn"; - NodeFlags3[NodeFlags3["HasExplicitReturn"] = 512] = "HasExplicitReturn"; - NodeFlags3[NodeFlags3["GlobalAugmentation"] = 1024] = "GlobalAugmentation"; - NodeFlags3[NodeFlags3["HasAsyncFunctions"] = 2048] = "HasAsyncFunctions"; - NodeFlags3[NodeFlags3["DisallowInContext"] = 4096] = "DisallowInContext"; - NodeFlags3[NodeFlags3["YieldContext"] = 8192] = "YieldContext"; - NodeFlags3[NodeFlags3["DecoratorContext"] = 16384] = "DecoratorContext"; - NodeFlags3[NodeFlags3["AwaitContext"] = 32768] = "AwaitContext"; - NodeFlags3[NodeFlags3["DisallowConditionalTypesContext"] = 65536] = "DisallowConditionalTypesContext"; - NodeFlags3[NodeFlags3["ThisNodeHasError"] = 131072] = "ThisNodeHasError"; - NodeFlags3[NodeFlags3["JavaScriptFile"] = 262144] = "JavaScriptFile"; - NodeFlags3[NodeFlags3["ThisNodeOrAnySubNodesHasError"] = 524288] = "ThisNodeOrAnySubNodesHasError"; - NodeFlags3[NodeFlags3["HasAggregatedChildData"] = 1048576] = "HasAggregatedChildData"; - NodeFlags3[NodeFlags3["PossiblyContainsDynamicImport"] = 2097152] = "PossiblyContainsDynamicImport"; - NodeFlags3[NodeFlags3["PossiblyContainsImportMeta"] = 4194304] = "PossiblyContainsImportMeta"; - NodeFlags3[NodeFlags3["JSDoc"] = 8388608] = "JSDoc"; - NodeFlags3[NodeFlags3["Ambient"] = 16777216] = "Ambient"; - NodeFlags3[NodeFlags3["InWithStatement"] = 33554432] = "InWithStatement"; - NodeFlags3[NodeFlags3["JsonFile"] = 67108864] = "JsonFile"; - NodeFlags3[NodeFlags3["TypeCached"] = 134217728] = "TypeCached"; - NodeFlags3[NodeFlags3["Deprecated"] = 268435456] = "Deprecated"; - NodeFlags3[NodeFlags3["BlockScoped"] = 3] = "BlockScoped"; - NodeFlags3[NodeFlags3["ReachabilityCheckFlags"] = 768] = "ReachabilityCheckFlags"; - NodeFlags3[NodeFlags3["ReachabilityAndEmitFlags"] = 2816] = "ReachabilityAndEmitFlags"; - NodeFlags3[NodeFlags3["ContextFlags"] = 50720768] = "ContextFlags"; - NodeFlags3[NodeFlags3["TypeExcludesFlags"] = 40960] = "TypeExcludesFlags"; - NodeFlags3[NodeFlags3["PermanentlySetIncrementalFlags"] = 6291456] = "PermanentlySetIncrementalFlags"; - NodeFlags3[NodeFlags3["IdentifierHasExtendedUnicodeEscape"] = 128 /* ContainsThis */] = "IdentifierHasExtendedUnicodeEscape"; - NodeFlags3[NodeFlags3["IdentifierIsInJSDocNamespace"] = 2048 /* HasAsyncFunctions */] = "IdentifierIsInJSDocNamespace"; + NodeFlags3[NodeFlags3["Using"] = 4] = "Using"; + NodeFlags3[NodeFlags3["AwaitUsing"] = 6] = "AwaitUsing"; + NodeFlags3[NodeFlags3["NestedNamespace"] = 8] = "NestedNamespace"; + NodeFlags3[NodeFlags3["Synthesized"] = 16] = "Synthesized"; + NodeFlags3[NodeFlags3["Namespace"] = 32] = "Namespace"; + NodeFlags3[NodeFlags3["OptionalChain"] = 64] = "OptionalChain"; + NodeFlags3[NodeFlags3["ExportContext"] = 128] = "ExportContext"; + NodeFlags3[NodeFlags3["ContainsThis"] = 256] = "ContainsThis"; + NodeFlags3[NodeFlags3["HasImplicitReturn"] = 512] = "HasImplicitReturn"; + NodeFlags3[NodeFlags3["HasExplicitReturn"] = 1024] = "HasExplicitReturn"; + NodeFlags3[NodeFlags3["GlobalAugmentation"] = 2048] = "GlobalAugmentation"; + NodeFlags3[NodeFlags3["HasAsyncFunctions"] = 4096] = "HasAsyncFunctions"; + NodeFlags3[NodeFlags3["DisallowInContext"] = 8192] = "DisallowInContext"; + NodeFlags3[NodeFlags3["YieldContext"] = 16384] = "YieldContext"; + NodeFlags3[NodeFlags3["DecoratorContext"] = 32768] = "DecoratorContext"; + NodeFlags3[NodeFlags3["AwaitContext"] = 65536] = "AwaitContext"; + NodeFlags3[NodeFlags3["DisallowConditionalTypesContext"] = 131072] = "DisallowConditionalTypesContext"; + NodeFlags3[NodeFlags3["ThisNodeHasError"] = 262144] = "ThisNodeHasError"; + NodeFlags3[NodeFlags3["JavaScriptFile"] = 524288] = "JavaScriptFile"; + NodeFlags3[NodeFlags3["ThisNodeOrAnySubNodesHasError"] = 1048576] = "ThisNodeOrAnySubNodesHasError"; + NodeFlags3[NodeFlags3["HasAggregatedChildData"] = 2097152] = "HasAggregatedChildData"; + NodeFlags3[NodeFlags3["PossiblyContainsDynamicImport"] = 4194304] = "PossiblyContainsDynamicImport"; + NodeFlags3[NodeFlags3["PossiblyContainsImportMeta"] = 8388608] = "PossiblyContainsImportMeta"; + NodeFlags3[NodeFlags3["JSDoc"] = 16777216] = "JSDoc"; + NodeFlags3[NodeFlags3["Ambient"] = 33554432] = "Ambient"; + NodeFlags3[NodeFlags3["InWithStatement"] = 67108864] = "InWithStatement"; + NodeFlags3[NodeFlags3["JsonFile"] = 134217728] = "JsonFile"; + NodeFlags3[NodeFlags3["TypeCached"] = 268435456] = "TypeCached"; + NodeFlags3[NodeFlags3["Deprecated"] = 536870912] = "Deprecated"; + NodeFlags3[NodeFlags3["BlockScoped"] = 7] = "BlockScoped"; + NodeFlags3[NodeFlags3["Constant"] = 6] = "Constant"; + NodeFlags3[NodeFlags3["ReachabilityCheckFlags"] = 1536] = "ReachabilityCheckFlags"; + NodeFlags3[NodeFlags3["ReachabilityAndEmitFlags"] = 5632] = "ReachabilityAndEmitFlags"; + NodeFlags3[NodeFlags3["ContextFlags"] = 101441536] = "ContextFlags"; + NodeFlags3[NodeFlags3["TypeExcludesFlags"] = 81920] = "TypeExcludesFlags"; + NodeFlags3[NodeFlags3["PermanentlySetIncrementalFlags"] = 12582912] = "PermanentlySetIncrementalFlags"; + NodeFlags3[NodeFlags3["IdentifierHasExtendedUnicodeEscape"] = 256 /* ContainsThis */] = "IdentifierHasExtendedUnicodeEscape"; + NodeFlags3[NodeFlags3["IdentifierIsInJSDocNamespace"] = 4096 /* HasAsyncFunctions */] = "IdentifierIsInJSDocNamespace"; return NodeFlags3; })(NodeFlags || {}); ModifierFlags = /* @__PURE__ */ ((ModifierFlags3) => { @@ -4374,15 +4387,13 @@ ${lanes.join("\n")} NodeCheckFlags2[NodeCheckFlags2["ContainsCapturedBlockScopeBinding"] = 8192] = "ContainsCapturedBlockScopeBinding"; NodeCheckFlags2[NodeCheckFlags2["CapturedBlockScopedBinding"] = 16384] = "CapturedBlockScopedBinding"; NodeCheckFlags2[NodeCheckFlags2["BlockScopedBindingInLoop"] = 32768] = "BlockScopedBindingInLoop"; - NodeCheckFlags2[NodeCheckFlags2["ClassWithBodyScopedClassBinding"] = 65536] = "ClassWithBodyScopedClassBinding"; - NodeCheckFlags2[NodeCheckFlags2["BodyScopedClassBinding"] = 131072] = "BodyScopedClassBinding"; - NodeCheckFlags2[NodeCheckFlags2["NeedsLoopOutParameter"] = 262144] = "NeedsLoopOutParameter"; - NodeCheckFlags2[NodeCheckFlags2["AssignmentsMarked"] = 524288] = "AssignmentsMarked"; - NodeCheckFlags2[NodeCheckFlags2["ClassWithConstructorReference"] = 1048576] = "ClassWithConstructorReference"; - NodeCheckFlags2[NodeCheckFlags2["ConstructorReferenceInClass"] = 2097152] = "ConstructorReferenceInClass"; - NodeCheckFlags2[NodeCheckFlags2["ContainsClassWithPrivateIdentifiers"] = 4194304] = "ContainsClassWithPrivateIdentifiers"; - NodeCheckFlags2[NodeCheckFlags2["ContainsSuperPropertyInStaticInitializer"] = 8388608] = "ContainsSuperPropertyInStaticInitializer"; - NodeCheckFlags2[NodeCheckFlags2["InCheckIdentifier"] = 16777216] = "InCheckIdentifier"; + NodeCheckFlags2[NodeCheckFlags2["NeedsLoopOutParameter"] = 65536] = "NeedsLoopOutParameter"; + NodeCheckFlags2[NodeCheckFlags2["AssignmentsMarked"] = 131072] = "AssignmentsMarked"; + NodeCheckFlags2[NodeCheckFlags2["ContainsConstructorReference"] = 262144] = "ContainsConstructorReference"; + NodeCheckFlags2[NodeCheckFlags2["ConstructorReference"] = 536870912] = "ConstructorReference"; + NodeCheckFlags2[NodeCheckFlags2["ContainsClassWithPrivateIdentifiers"] = 1048576] = "ContainsClassWithPrivateIdentifiers"; + NodeCheckFlags2[NodeCheckFlags2["ContainsSuperPropertyInStaticInitializer"] = 2097152] = "ContainsSuperPropertyInStaticInitializer"; + NodeCheckFlags2[NodeCheckFlags2["InCheckIdentifier"] = 4194304] = "InCheckIdentifier"; return NodeCheckFlags2; })(NodeCheckFlags || {}); TypeFlags = /* @__PURE__ */ ((TypeFlags2) => { @@ -4563,7 +4574,8 @@ ${lanes.join("\n")} SignatureFlags5[SignatureFlags5["IsOuterCallChain"] = 16] = "IsOuterCallChain"; SignatureFlags5[SignatureFlags5["IsUntypedSignatureInJSFile"] = 32] = "IsUntypedSignatureInJSFile"; SignatureFlags5[SignatureFlags5["IsNonInferrable"] = 64] = "IsNonInferrable"; - SignatureFlags5[SignatureFlags5["PropagatingFlags"] = 39] = "PropagatingFlags"; + SignatureFlags5[SignatureFlags5["IsSignatureCandidateForOverloadFailure"] = 128] = "IsSignatureCandidateForOverloadFailure"; + SignatureFlags5[SignatureFlags5["PropagatingFlags"] = 167] = "PropagatingFlags"; SignatureFlags5[SignatureFlags5["CallChainFlags"] = 24] = "CallChainFlags"; return SignatureFlags5; })(SignatureFlags || {}); @@ -4705,16 +4717,16 @@ ${lanes.join("\n")} NewLineKind2[NewLineKind2["LineFeed"] = 1] = "LineFeed"; return NewLineKind2; })(NewLineKind || {}); - ScriptKind = /* @__PURE__ */ ((ScriptKind5) => { - ScriptKind5[ScriptKind5["Unknown"] = 0] = "Unknown"; - ScriptKind5[ScriptKind5["JS"] = 1] = "JS"; - ScriptKind5[ScriptKind5["JSX"] = 2] = "JSX"; - ScriptKind5[ScriptKind5["TS"] = 3] = "TS"; - ScriptKind5[ScriptKind5["TSX"] = 4] = "TSX"; - ScriptKind5[ScriptKind5["External"] = 5] = "External"; - ScriptKind5[ScriptKind5["JSON"] = 6] = "JSON"; - ScriptKind5[ScriptKind5["Deferred"] = 7] = "Deferred"; - return ScriptKind5; + ScriptKind = /* @__PURE__ */ ((ScriptKind6) => { + ScriptKind6[ScriptKind6["Unknown"] = 0] = "Unknown"; + ScriptKind6[ScriptKind6["JS"] = 1] = "JS"; + ScriptKind6[ScriptKind6["JSX"] = 2] = "JSX"; + ScriptKind6[ScriptKind6["TS"] = 3] = "TS"; + ScriptKind6[ScriptKind6["TSX"] = 4] = "TSX"; + ScriptKind6[ScriptKind6["External"] = 5] = "External"; + ScriptKind6[ScriptKind6["JSON"] = 6] = "JSON"; + ScriptKind6[ScriptKind6["Deferred"] = 7] = "Deferred"; + return ScriptKind6; })(ScriptKind || {}); ScriptTarget = /* @__PURE__ */ ((ScriptTarget10) => { ScriptTarget10[ScriptTarget10["ES3"] = 0] = "ES3"; @@ -5029,8 +5041,9 @@ ${lanes.join("\n")} ExternalEmitHelpers2[ExternalEmitHelpers2["CreateBinding"] = 4194304] = "CreateBinding"; ExternalEmitHelpers2[ExternalEmitHelpers2["SetFunctionName"] = 8388608] = "SetFunctionName"; ExternalEmitHelpers2[ExternalEmitHelpers2["PropKey"] = 16777216] = "PropKey"; + ExternalEmitHelpers2[ExternalEmitHelpers2["AddDisposableResourceAndDisposeResources"] = 33554432] = "AddDisposableResourceAndDisposeResources"; ExternalEmitHelpers2[ExternalEmitHelpers2["FirstEmitHelper"] = 1 /* Extends */] = "FirstEmitHelper"; - ExternalEmitHelpers2[ExternalEmitHelpers2["LastEmitHelper"] = 16777216 /* PropKey */] = "LastEmitHelper"; + ExternalEmitHelpers2[ExternalEmitHelpers2["LastEmitHelper"] = 33554432 /* AddDisposableResourceAndDisposeResources */] = "LastEmitHelper"; ExternalEmitHelpers2[ExternalEmitHelpers2["ForOfIncludes"] = 256 /* Values */] = "ForOfIncludes"; ExternalEmitHelpers2[ExternalEmitHelpers2["ForAwaitOfIncludes"] = 16384 /* AsyncValues */] = "ForAwaitOfIncludes"; ExternalEmitHelpers2[ExternalEmitHelpers2["AsyncGeneratorIncludes"] = 6144] = "AsyncGeneratorIncludes"; @@ -5411,10 +5424,10 @@ ${lanes.join("\n")} pollingIntervalQueue(pollingInterval).pollScheduled = host.setTimeout(pollingInterval === 250 /* Low */ ? pollLowPollingIntervalQueue : pollPollingIntervalQueue, pollingInterval, pollingInterval === 250 /* Low */ ? "pollLowPollingIntervalQueue" : "pollPollingIntervalQueue", pollingIntervalQueue(pollingInterval)); } } - function createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames) { + function createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames2) { const fileWatcherCallbacks = createMultiMap(); const dirWatchers = /* @__PURE__ */ new Map(); - const toCanonicalName = createGetCanonicalFileName(useCaseSensitiveFileNames); + const toCanonicalName = createGetCanonicalFileName(useCaseSensitiveFileNames2); return nonPollingWatchFile; function nonPollingWatchFile(fileName, callback, _pollingInterval, fallbackOptions) { const filePath = toCanonicalName(fileName); @@ -5490,8 +5503,8 @@ ${lanes.join("\n")} pollScheduled = host.setTimeout(pollQueue, 2e3 /* High */, "pollQueue"); } } - function createSingleWatcherPerName(cache, useCaseSensitiveFileNames, name, callback, createWatcher) { - const toCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames); + function createSingleWatcherPerName(cache, useCaseSensitiveFileNames2, name, callback, createWatcher) { + const toCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2); const path = toCanonicalFileName(name); const existing = cache.get(path); if (existing) { @@ -5541,7 +5554,7 @@ ${lanes.join("\n")} } function createDirectoryWatcherSupportingRecursive({ watchDirectory, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, getCurrentDirectory, getAccessibleSortedChildDirectories, fileSystemEntryExists, @@ -5553,8 +5566,8 @@ ${lanes.join("\n")} const callbackCache = createMultiMap(); const cacheToUpdateChildWatches = /* @__PURE__ */ new Map(); let timerToUpdateChildWatches; - const filePathComparer = getStringComparer(!useCaseSensitiveFileNames); - const toCanonicalFilePath = createGetCanonicalFileName(useCaseSensitiveFileNames); + const filePathComparer = getStringComparer(!useCaseSensitiveFileNames2); + const toCanonicalFilePath = createGetCanonicalFileName(useCaseSensitiveFileNames2); return (dirName, callback, recursive, options) => recursive ? createDirectoryWatcher(dirName, options, callback) : watchDirectory(dirName, callback, recursive, options); function createDirectoryWatcher(dirName, options, callback) { const dirPath = toCanonicalFilePath(dirName); @@ -5721,12 +5734,12 @@ ${lanes.join("\n")} } } function isIgnoredPath(path, options) { - return some(ignoredPaths, (searchPath) => isInPath(path, searchPath)) || isIgnoredByWatchOptions(path, options, useCaseSensitiveFileNames, getCurrentDirectory); + return some(ignoredPaths, (searchPath) => isInPath(path, searchPath)) || isIgnoredByWatchOptions(path, options, useCaseSensitiveFileNames2, getCurrentDirectory); } function isInPath(path, searchPath) { if (stringContains(path, searchPath)) return true; - if (useCaseSensitiveFileNames) + if (useCaseSensitiveFileNames2) return false; return stringContains(toCanonicalFilePath(path), searchPath); } @@ -5744,14 +5757,14 @@ ${lanes.join("\n")} } }; } - function isIgnoredByWatchOptions(pathToCheck, options, useCaseSensitiveFileNames, getCurrentDirectory) { - return ((options == null ? void 0 : options.excludeDirectories) || (options == null ? void 0 : options.excludeFiles)) && (matchesExclude(pathToCheck, options == null ? void 0 : options.excludeFiles, useCaseSensitiveFileNames, getCurrentDirectory()) || matchesExclude(pathToCheck, options == null ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames, getCurrentDirectory())); + function isIgnoredByWatchOptions(pathToCheck, options, useCaseSensitiveFileNames2, getCurrentDirectory) { + return ((options == null ? void 0 : options.excludeDirectories) || (options == null ? void 0 : options.excludeFiles)) && (matchesExclude(pathToCheck, options == null ? void 0 : options.excludeFiles, useCaseSensitiveFileNames2, getCurrentDirectory()) || matchesExclude(pathToCheck, options == null ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames2, getCurrentDirectory())); } - function createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames, getCurrentDirectory) { + function createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames2, getCurrentDirectory) { return (eventName, relativeFileName) => { if (eventName === "rename") { const fileName = !relativeFileName ? directoryName : normalizePath(combinePaths(directoryName, relativeFileName)); - if (!relativeFileName || !isIgnoredByWatchOptions(fileName, options, useCaseSensitiveFileNames, getCurrentDirectory)) { + if (!relativeFileName || !isIgnoredByWatchOptions(fileName, options, useCaseSensitiveFileNames2, getCurrentDirectory)) { callback(fileName); } } @@ -5764,7 +5777,7 @@ ${lanes.join("\n")} clearTimeout: clearTimeout2, fsWatchWorker, fileSystemEntryExists, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, getCurrentDirectory, fsSupportsRecursiveFsWatch, getAccessibleSortedChildDirectories, @@ -5836,7 +5849,7 @@ ${lanes.join("\n")} ); case 5 /* UseFsEventsOnParentDirectory */: if (!nonPollingWatchFile) { - nonPollingWatchFile = createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames); + nonPollingWatchFile = createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames2); } return nonPollingWatchFile(fileName, callback, pollingInterval, getFallbackOptions(options)); default: @@ -5885,7 +5898,7 @@ ${lanes.join("\n")} return fsWatch( directoryName, 1 /* Directory */, - createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames, getCurrentDirectory), + createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames2, getCurrentDirectory), recursive, 500 /* Medium */, getFallbackOptions(options) @@ -5893,7 +5906,7 @@ ${lanes.join("\n")} } if (!hostRecursiveDirectoryWatcher) { hostRecursiveDirectoryWatcher = createDirectoryWatcherSupportingRecursive({ - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, getCurrentDirectory, fileSystemEntryExists, getAccessibleSortedChildDirectories, @@ -5939,7 +5952,7 @@ ${lanes.join("\n")} return fsWatch( directoryName, 1 /* Directory */, - createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames, getCurrentDirectory), + createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames2, getCurrentDirectory), recursive, 500 /* Medium */, getFallbackOptions(watchDirectoryOptions) @@ -5967,7 +5980,7 @@ ${lanes.join("\n")} function pollingWatchFile(fileName, callback, pollingInterval, options) { return createSingleWatcherPerName( pollingWatches, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames2, fileName, callback, (cb) => pollingWatchFileWorker(fileName, cb, pollingInterval, options) @@ -5976,7 +5989,7 @@ ${lanes.join("\n")} function fsWatch(fileOrDirectory, entryKind, callback, recursive, fallbackPollingInterval, fallbackOptions) { return createSingleWatcherPerName( recursive ? fsWatchesRecursive : fsWatches, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames2, fileOrDirectory, callback, (cb) => fsWatchHandlingExistenceOnHost(fileOrDirectory, entryKind, cb, recursive, fallbackPollingInterval, fallbackOptions) @@ -6135,7 +6148,7 @@ ${lanes.join("\n")} const Buffer2 = require("buffer").Buffer; const isLinuxOrMacOs = process.platform === "linux" || process.platform === "darwin"; const platform = _os.platform(); - const useCaseSensitiveFileNames = isFileSystemCaseSensitive(); + const useCaseSensitiveFileNames2 = isFileSystemCaseSensitive(); const fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync; const executingFilePath = __filename.endsWith("sys.js") ? _path.join(_path.dirname(__dirname), "__fake__.js") : __filename; const fsSupportsRecursiveFsWatch = process.platform === "win32" || process.platform === "darwin"; @@ -6146,7 +6159,7 @@ ${lanes.join("\n")} setTimeout, clearTimeout, fsWatchWorker, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, getCurrentDirectory, fileSystemEntryExists, // Node 4.0 `fs.watch` function supports the "recursive" option on both OSX and Windows @@ -6163,7 +6176,7 @@ ${lanes.join("\n")} const nodeSystem = { args: process.argv.slice(2), newLine: _os.EOL, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, write(s) { process.stdout.write(s); }, @@ -6228,7 +6241,7 @@ ${lanes.join("\n")} disableCPUProfiler, cpuProfilingEnabled: () => !!activeSession || contains(process.execArgv, "--cpu-prof") || contains(process.execArgv, "--prof"), realpath, - debugMode: !!process.env.NODE_INSPECTOR_IPC || !!process.env.VSCODE_INSPECTOR_OPTIONS || some(process.execArgv, (arg) => /^--(inspect|debug)(-brk)?(=\d+)?$/i.test(arg)), + debugMode: !!process.env.NODE_INSPECTOR_IPC || !!process.env.VSCODE_INSPECTOR_OPTIONS || some(process.execArgv, (arg) => /^--(inspect|debug)(-brk)?(=\d+)?$/i.test(arg)) || !!process.recordreplay, tryEnableSourceMapsForHost() { try { require("source-map-support").install(); @@ -6254,8 +6267,8 @@ ${lanes.join("\n")} try { const modulePath = resolveJSModule(moduleName, baseDir, nodeSystem); return { module: require(modulePath), modulePath, error: void 0 }; - } catch (error) { - return { module: void 0, modulePath: void 0, error }; + } catch (error2) { + return { module: void 0, modulePath: void 0, error: error2 }; } } }; @@ -6292,12 +6305,12 @@ ${lanes.join("\n")} for (const node of profile.nodes) { if (node.callFrame.url) { const url = normalizeSlashes(node.callFrame.url); - if (containsPath(fileUrlRoot, url, useCaseSensitiveFileNames)) { + if (containsPath(fileUrlRoot, url, useCaseSensitiveFileNames2)) { node.callFrame.url = getRelativePathToDirectoryOrUrl( fileUrlRoot, url, fileUrlRoot, - createGetCanonicalFileName(useCaseSensitiveFileNames), + createGetCanonicalFileName(useCaseSensitiveFileNames2), /*isAbsolutePathAnUrl*/ true ); @@ -6477,7 +6490,7 @@ ${lanes.join("\n")} } } function readDirectory(path, extensions, excludes, includes, depth) { - return matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, process.cwd(), depth, getAccessibleFileSystemEntries, realpath); + return matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames2, process.cwd(), depth, getAccessibleFileSystemEntries, realpath); } function fileSystemEntryExists(path, entryKind) { const originalStackTraceLimit = Error.stackTraceLimit; @@ -7053,6 +7066,7 @@ ${lanes.join("\n")} Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method: diag(1062, 1 /* Error */, "Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062", "Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."), An_export_assignment_cannot_be_used_in_a_namespace: diag(1063, 1 /* Error */, "An_export_assignment_cannot_be_used_in_a_namespace_1063", "An export assignment cannot be used in a namespace."), The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0: diag(1064, 1 /* Error */, "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064", "The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"), + The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type: diag(1065, 1 /* Error */, "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065", "The return type of an async function or method must be the global Promise type."), In_ambient_enum_declarations_member_initializer_must_be_constant_expression: diag(1066, 1 /* Error */, "In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066", "In ambient enum declarations member initializer must be constant expression."), Unexpected_token_A_constructor_method_accessor_or_property_was_expected: diag(1068, 1 /* Error */, "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068", "Unexpected token. A constructor, method, accessor, or property was expected."), Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces: diag(1069, 1 /* Error */, "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069", "Unexpected token. A type parameter name was expected without curly braces."), @@ -7082,6 +7096,7 @@ ${lanes.join("\n")} A_return_statement_can_only_be_used_within_a_function_body: diag(1108, 1 /* Error */, "A_return_statement_can_only_be_used_within_a_function_body_1108", "A 'return' statement can only be used within a function body."), Expression_expected: diag(1109, 1 /* Error */, "Expression_expected_1109", "Expression expected."), Type_expected: diag(1110, 1 /* Error */, "Type_expected_1110", "Type expected."), + Private_field_0_must_be_declared_in_an_enclosing_class: diag(1111, 1 /* Error */, "Private_field_0_must_be_declared_in_an_enclosing_class_1111", "Private field '{0}' must be declared in an enclosing class."), A_default_clause_cannot_appear_more_than_once_in_a_switch_statement: diag(1113, 1 /* Error */, "A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113", "A 'default' clause cannot appear more than once in a 'switch' statement."), Duplicate_label_0: diag(1114, 1 /* Error */, "Duplicate_label_0_1114", "Duplicate label '{0}'."), A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement: diag(1115, 1 /* Error */, "A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115", "A 'continue' statement can only jump to a label of an enclosing iteration statement."), @@ -7116,9 +7131,8 @@ ${lanes.join("\n")} Import_declarations_in_a_namespace_cannot_reference_a_module: diag(1147, 1 /* Error */, "Import_declarations_in_a_namespace_cannot_reference_a_module_1147", "Import declarations in a namespace cannot reference a module."), Cannot_use_imports_exports_or_module_augmentations_when_module_is_none: diag(1148, 1 /* Error */, "Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148", "Cannot use imports, exports, or module augmentations when '--module' is 'none'."), File_name_0_differs_from_already_included_file_name_1_only_in_casing: diag(1149, 1 /* Error */, "File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149", "File name '{0}' differs from already included file name '{1}' only in casing."), - const_declarations_must_be_initialized: diag(1155, 1 /* Error */, "const_declarations_must_be_initialized_1155", "'const' declarations must be initialized."), - const_declarations_can_only_be_declared_inside_a_block: diag(1156, 1 /* Error */, "const_declarations_can_only_be_declared_inside_a_block_1156", "'const' declarations can only be declared inside a block."), - let_declarations_can_only_be_declared_inside_a_block: diag(1157, 1 /* Error */, "let_declarations_can_only_be_declared_inside_a_block_1157", "'let' declarations can only be declared inside a block."), + _0_declarations_must_be_initialized: diag(1155, 1 /* Error */, "_0_declarations_must_be_initialized_1155", "'{0}' declarations must be initialized."), + _0_declarations_can_only_be_declared_inside_a_block: diag(1156, 1 /* Error */, "_0_declarations_can_only_be_declared_inside_a_block_1156", "'{0}' declarations can only be declared inside a block."), Unterminated_template_literal: diag(1160, 1 /* Error */, "Unterminated_template_literal_1160", "Unterminated template literal."), Unterminated_regular_expression_literal: diag(1161, 1 /* Error */, "Unterminated_regular_expression_literal_1161", "Unterminated regular expression literal."), An_object_member_cannot_be_declared_optional: diag(1162, 1 /* Error */, "An_object_member_cannot_be_declared_optional_1162", "An object member cannot be declared optional."), @@ -7300,8 +7314,6 @@ ${lanes.join("\n")} Class_constructor_may_not_be_a_generator: diag(1368, 1 /* Error */, "Class_constructor_may_not_be_a_generator_1368", "Class constructor may not be a generator."), Did_you_mean_0: diag(1369, 3 /* Message */, "Did_you_mean_0_1369", "Did you mean '{0}'?"), This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error: diag(1371, 1 /* Error */, "This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371", "This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."), - Convert_to_type_only_import: diag(1373, 3 /* Message */, "Convert_to_type_only_import_1373", "Convert to type-only import"), - Convert_all_imports_not_used_as_a_value_to_type_only_imports: diag(1374, 3 /* Message */, "Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374", "Convert all imports not used as a value to type-only imports"), await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module: diag(1375, 1 /* Error */, "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375", "'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."), _0_was_imported_here: diag(1376, 3 /* Message */, "_0_was_imported_here_1376", "'{0}' was imported here."), _0_was_exported_here: diag(1377, 3 /* Message */, "_0_was_exported_here_1377", "'{0}' was exported here."), @@ -7405,6 +7417,11 @@ ${lanes.join("\n")} Escape_sequence_0_is_not_allowed: diag(1488, 1 /* Error */, "Escape_sequence_0_is_not_allowed_1488", "Escape sequence '{0}' is not allowed."), Decimals_with_leading_zeros_are_not_allowed: diag(1489, 1 /* Error */, "Decimals_with_leading_zeros_are_not_allowed_1489", "Decimals with leading zeros are not allowed."), File_appears_to_be_binary: diag(1490, 1 /* Error */, "File_appears_to_be_binary_1490", "File appears to be binary."), + _0_modifier_cannot_appear_on_a_using_declaration: diag(1491, 1 /* Error */, "_0_modifier_cannot_appear_on_a_using_declaration_1491", "'{0}' modifier cannot appear on a 'using' declaration."), + _0_declarations_may_not_have_binding_patterns: diag(1492, 1 /* Error */, "_0_declarations_may_not_have_binding_patterns_1492", "'{0}' declarations may not have binding patterns."), + The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration: diag(1493, 1 /* Error */, "The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493", "The left-hand side of a 'for...in' statement cannot be a 'using' declaration."), + The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration: diag(1494, 1 /* Error */, "The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494", "The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."), + _0_modifier_cannot_appear_on_an_await_using_declaration: diag(1495, 1 /* Error */, "_0_modifier_cannot_appear_on_an_await_using_declaration_1495", "'{0}' modifier cannot appear on an 'await using' declaration."), The_types_of_0_are_incompatible_between_these_types: diag(2200, 1 /* Error */, "The_types_of_0_are_incompatible_between_these_types_2200", "The types of '{0}' are incompatible between these types."), The_types_returned_by_0_are_incompatible_between_these_types: diag(2201, 1 /* Error */, "The_types_returned_by_0_are_incompatible_between_these_types_2201", "The types returned by '{0}' are incompatible between these types."), Call_signature_return_types_0_and_1_are_incompatible: diag( @@ -7499,7 +7516,6 @@ ${lanes.join("\n")} This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0: diag(2343, 1 /* Error */, "This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343", "This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."), Type_0_does_not_satisfy_the_constraint_1: diag(2344, 1 /* Error */, "Type_0_does_not_satisfy_the_constraint_1_2344", "Type '{0}' does not satisfy the constraint '{1}'."), Argument_of_type_0_is_not_assignable_to_parameter_of_type_1: diag(2345, 1 /* Error */, "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345", "Argument of type '{0}' is not assignable to parameter of type '{1}'."), - Call_target_does_not_contain_any_signatures: diag(2346, 1 /* Error */, "Call_target_does_not_contain_any_signatures_2346", "Call target does not contain any signatures."), Untyped_function_calls_may_not_accept_type_arguments: diag(2347, 1 /* Error */, "Untyped_function_calls_may_not_accept_type_arguments_2347", "Untyped function calls may not accept type arguments."), Value_of_type_0_is_not_callable_Did_you_mean_to_include_new: diag(2348, 1 /* Error */, "Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348", "Value of type '{0}' is not callable. Did you mean to include 'new'?"), This_expression_is_not_callable: diag(2349, 1 /* Error */, "This_expression_is_not_callable_2349", "This expression is not callable."), @@ -7951,6 +7967,11 @@ ${lanes.join("\n")} A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead: diag(2846, 1 /* Error */, "A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846", "A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"), The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression: diag(2848, 1 /* Error */, "The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848", "The right-hand side of an 'instanceof' expression must not be an instantiation expression."), Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1: diag(2849, 1 /* Error */, "Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849", "Target signature provides too few arguments. Expected {0} or more, but got {1}."), + The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined: diag(2850, 1 /* Error */, "The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850", "The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."), + The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined: diag(2851, 1 /* Error */, "The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851", "The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."), + await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules: diag(2852, 1 /* Error */, "await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852", "'await using' statements are only allowed within async functions and at the top levels of modules."), + await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module: diag(2853, 1 /* Error */, "await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853", "'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."), + Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher: diag(2854, 1 /* Error */, "Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854", "Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."), Import_declaration_0_is_using_private_name_1: diag(4e3, 1 /* Error */, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."), Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, 1 /* Error */, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."), Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, 1 /* Error */, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."), @@ -8104,7 +8125,6 @@ ${lanes.join("\n")} Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0: diag(5081, 1 /* Error */, "Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081", "Cannot find a tsconfig.json file at the current directory: {0}."), _0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1: diag(5082, 1 /* Error */, "_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082", "'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."), Cannot_read_file_0: diag(5083, 1 /* Error */, "Cannot_read_file_0_5083", "Cannot read file '{0}'."), - Tuple_members_must_all_have_names_or_all_not_have_names: diag(5084, 1 /* Error */, "Tuple_members_must_all_have_names_or_all_not_have_names_5084", "Tuple members must all have names or all not have names."), A_tuple_member_cannot_be_both_optional_and_rest: diag(5085, 1 /* Error */, "A_tuple_member_cannot_be_both_optional_and_rest_5085", "A tuple member cannot be both optional and rest."), A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type: diag(5086, 1 /* Error */, "A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086", "A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."), A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type: diag(5087, 1 /* Error */, "A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087", "A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."), @@ -8127,6 +8147,8 @@ ${lanes.join("\n")} Use_0_instead: diag(5106, 3 /* Message */, "Use_0_instead_5106", "Use '{0}' instead."), Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error: diag(5107, 1 /* Error */, "Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107", `Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`), Option_0_1_has_been_removed_Please_remove_it_from_your_configuration: diag(5108, 1 /* Error */, "Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108", "Option '{0}={1}' has been removed. Please remove it from your configuration."), + Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1: diag(5109, 1 /* Error */, "Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109", "Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."), + Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1: diag(5110, 1 /* Error */, "Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110", "Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."), Generates_a_sourcemap_for_each_corresponding_d_ts_file: diag(6e3, 3 /* Message */, "Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000", "Generates a sourcemap for each corresponding '.d.ts' file."), Concatenate_and_emit_output_to_single_file: diag(6001, 3 /* Message */, "Concatenate_and_emit_output_to_single_file_6001", "Concatenate and emit output to single file."), Generates_corresponding_d_ts_file: diag(6002, 3 /* Message */, "Generates_corresponding_d_ts_file_6002", "Generates corresponding '.d.ts' file."), @@ -8507,6 +8529,8 @@ ${lanes.join("\n")} Resolved_under_condition_0: diag(6414, 3 /* Message */, "Resolved_under_condition_0_6414", "Resolved under condition '{0}'."), Failed_to_resolve_under_condition_0: diag(6415, 3 /* Message */, "Failed_to_resolve_under_condition_0_6415", "Failed to resolve under condition '{0}'."), Exiting_conditional_exports: diag(6416, 3 /* Message */, "Exiting_conditional_exports_6416", "Exiting conditional exports."), + Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0: diag(6417, 3 /* Message */, "Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417", "Searching all ancestor node_modules directories for preferred extensions: {0}."), + Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0: diag(6418, 3 /* Message */, "Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418", "Searching all ancestor node_modules directories for fallback extensions: {0}."), The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1: diag(6500, 3 /* Message */, "The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500", "The expected type comes from property '{0}' which is declared here on type '{1}'"), The_expected_type_comes_from_this_index_signature: diag(6501, 3 /* Message */, "The_expected_type_comes_from_this_index_signature_6501", "The expected type comes from this index signature."), The_expected_type_comes_from_the_return_type_of_this_signature: diag(6502, 3 /* Message */, "The_expected_type_comes_from_the_return_type_of_this_signature_6502", "The expected type comes from the return type of this signature."), @@ -8745,6 +8769,7 @@ ${lanes.join("\n")} Parameter_modifiers_can_only_be_used_in_TypeScript_files: diag(8012, 1 /* Error */, "Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012", "Parameter modifiers can only be used in TypeScript files."), Non_null_assertions_can_only_be_used_in_TypeScript_files: diag(8013, 1 /* Error */, "Non_null_assertions_can_only_be_used_in_TypeScript_files_8013", "Non-null assertions can only be used in TypeScript files."), Type_assertion_expressions_can_only_be_used_in_TypeScript_files: diag(8016, 1 /* Error */, "Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016", "Type assertion expressions can only be used in TypeScript files."), + Signature_declarations_can_only_be_used_in_TypeScript_files: diag(8017, 1 /* Error */, "Signature_declarations_can_only_be_used_in_TypeScript_files_8017", "Signature declarations can only be used in TypeScript files."), Report_errors_in_js_files: diag(8019, 3 /* Message */, "Report_errors_in_js_files_8019", "Report errors in .js files."), JSDoc_types_can_only_be_used_inside_documentation_comments: diag(8020, 1 /* Error */, "JSDoc_types_can_only_be_used_inside_documentation_comments_8020", "JSDoc types can only be used inside documentation comments."), JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags: diag(8021, 1 /* Error */, "JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021", "JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."), @@ -9019,6 +9044,14 @@ ${lanes.join("\n")} Convert_all_typedef_to_TypeScript_types: diag(95177, 3 /* Message */, "Convert_all_typedef_to_TypeScript_types_95177", "Convert all typedef to TypeScript types."), Move_to_file: diag(95178, 3 /* Message */, "Move_to_file_95178", "Move to file"), Cannot_move_to_file_selected_file_is_invalid: diag(95179, 3 /* Message */, "Cannot_move_to_file_selected_file_is_invalid_95179", "Cannot move to file, selected file is invalid"), + Use_import_type: diag(95180, 3 /* Message */, "Use_import_type_95180", "Use 'import type'"), + Use_type_0: diag(95181, 3 /* Message */, "Use_type_0_95181", "Use 'type {0}'"), + Fix_all_with_type_only_imports: diag(95182, 3 /* Message */, "Fix_all_with_type_only_imports_95182", "Fix all with type-only imports"), + Cannot_move_statements_to_the_selected_file: diag(95183, 3 /* Message */, "Cannot_move_statements_to_the_selected_file_95183", "Cannot move statements to the selected file"), + Inline_variable: diag(95184, 3 /* Message */, "Inline_variable_95184", "Inline variable"), + Could_not_find_variable_to_inline: diag(95185, 3 /* Message */, "Could_not_find_variable_to_inline_95185", "Could not find variable to inline."), + Variables_with_multiple_declarations_cannot_be_inlined: diag(95186, 3 /* Message */, "Variables_with_multiple_declarations_cannot_be_inlined_95186", "Variables with multiple declarations cannot be inlined."), + Add_missing_comma_for_object_member_completion_0: diag(95187, 3 /* Message */, "Add_missing_comma_for_object_member_completion_0_95187", "Add missing comma for object member completion '{0}'."), No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer: diag(18004, 1 /* Error */, "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004", "No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."), Classes_may_not_have_a_field_named_constructor: diag(18006, 1 /* Error */, "Classes_may_not_have_a_field_named_constructor_18006", "Classes may not have a field named 'constructor'."), JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array: diag(18007, 1 /* Error */, "JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007", "JSX expressions may not use the comma operator. Did you mean to write an array?"), @@ -9045,8 +9078,8 @@ ${lanes.join("\n")} Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment: diag(18034, 3 /* Message */, "Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034", "Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."), Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name: diag(18035, 1 /* Error */, "Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035", "Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."), Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator: diag(18036, 1 /* Error */, "Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036", "Class decorators can't be used with static private identifier. Consider removing the experimental decorator."), - Await_expression_cannot_be_used_inside_a_class_static_block: diag(18037, 1 /* Error */, "Await_expression_cannot_be_used_inside_a_class_static_block_18037", "Await expression cannot be used inside a class static block."), - For_await_loops_cannot_be_used_inside_a_class_static_block: diag(18038, 1 /* Error */, "For_await_loops_cannot_be_used_inside_a_class_static_block_18038", "'For await' loops cannot be used inside a class static block."), + await_expression_cannot_be_used_inside_a_class_static_block: diag(18037, 1 /* Error */, "await_expression_cannot_be_used_inside_a_class_static_block_18037", "'await' expression cannot be used inside a class static block."), + for_await_loops_cannot_be_used_inside_a_class_static_block: diag(18038, 1 /* Error */, "for_await_loops_cannot_be_used_inside_a_class_static_block_18038", "'for await' loops cannot be used inside a class static block."), Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block: diag(18039, 1 /* Error */, "Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039", "Invalid use of '{0}'. It cannot be used inside a class static block."), A_return_statement_cannot_be_used_inside_a_class_static_block: diag(18041, 1 /* Error */, "A_return_statement_cannot_be_used_inside_a_class_static_block_18041", "A 'return' statement cannot be used inside a class static block."), _0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation: diag(18042, 1 /* Error */, "_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042", "'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."), @@ -9060,7 +9093,8 @@ ${lanes.join("\n")} The_value_0_cannot_be_used_here: diag(18050, 1 /* Error */, "The_value_0_cannot_be_used_here_18050", "The value '{0}' cannot be used here."), Compiler_option_0_cannot_be_given_an_empty_string: diag(18051, 1 /* Error */, "Compiler_option_0_cannot_be_given_an_empty_string_18051", "Compiler option '{0}' cannot be given an empty string."), Non_abstract_class_0_does_not_implement_all_abstract_members_of_1: diag(18052, 1 /* Error */, "Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052", "Non-abstract class '{0}' does not implement all abstract members of '{1}'"), - Its_type_0_is_not_a_valid_JSX_element_type: diag(18053, 1 /* Error */, "Its_type_0_is_not_a_valid_JSX_element_type_18053", "Its type '{0}' is not a valid JSX element type.") + Its_type_0_is_not_a_valid_JSX_element_type: diag(18053, 1 /* Error */, "Its_type_0_is_not_a_valid_JSX_element_type_18053", "Its type '{0}' is not a valid JSX element type."), + await_using_statements_cannot_be_used_inside_a_class_static_block: diag(18054, 1 /* Error */, "await_using_statements_cannot_be_used_inside_a_class_static_block_18054", "'await using' statements cannot be used inside a class static block.") }; } }); @@ -9337,9 +9371,9 @@ ${lanes.join("\n")} } return false; } - function scanConflictMarkerTrivia(text, pos, error) { - if (error) { - error(Diagnostics.Merge_conflict_marker_encountered, pos, mergeConflictMarkerLength); + function scanConflictMarkerTrivia(text, pos, error2) { + if (error2) { + error2(Diagnostics.Merge_conflict_marker_encountered, pos, mergeConflictMarkerLength); } const ch = text.charCodeAt(pos); const len = text.length; @@ -9635,7 +9669,7 @@ ${lanes.join("\n")} }); } return scanner2; - function error(message, errPos = pos, length3, arg0) { + function error2(message, errPos = pos, length3, arg0) { if (onError) { const oldPos = pos; pos = errPos; @@ -9659,9 +9693,9 @@ ${lanes.join("\n")} } else { tokenFlags |= 16384 /* ContainsInvalidSeparator */; if (isPreviousTokenSeparator) { - error(Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1); + error2(Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1); } else { - error(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1); + error2(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1); } } pos++; @@ -9678,7 +9712,7 @@ ${lanes.join("\n")} } if (text.charCodeAt(pos - 1) === 95 /* _ */) { tokenFlags |= 16384 /* ContainsInvalidSeparator */; - error(Diagnostics.Numeric_separators_are_not_allowed_here, pos - 1, 1); + error2(Diagnostics.Numeric_separators_are_not_allowed_here, pos - 1, 1); } return result + text.substring(start2, pos); } @@ -9689,7 +9723,7 @@ ${lanes.join("\n")} pos++; if (text.charCodeAt(pos) === 95 /* _ */) { tokenFlags |= 512 /* ContainsSeparator */ | 16384 /* ContainsInvalidSeparator */; - error(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1); + error2(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1); pos--; mainFragment = scanNumberFragment(); } else if (!scanDigits()) { @@ -9704,8 +9738,8 @@ ${lanes.join("\n")} const literal = (withMinus ? "-" : "") + "0o" + (+tokenValue).toString(8); if (withMinus) start2--; - error(Diagnostics.Octal_literals_are_not_allowed_Use_the_syntax_0, start2, pos - start2, literal); - return { type: 9 /* NumericLiteral */, value: tokenValue }; + error2(Diagnostics.Octal_literals_are_not_allowed_Use_the_syntax_0, start2, pos - start2, literal); + return 9 /* NumericLiteral */; } } else { mainFragment = scanNumberFragment(); @@ -9725,7 +9759,7 @@ ${lanes.join("\n")} const preNumericPart = pos; const finalFragment = scanNumberFragment(); if (!finalFragment) { - error(Diagnostics.Digit_expected); + error2(Diagnostics.Digit_expected); } else { scientificFragment = text.substring(end2, preNumericPart) + finalFragment; end2 = pos; @@ -9744,21 +9778,19 @@ ${lanes.join("\n")} result = text.substring(start2, end2); } if (tokenFlags & 8192 /* ContainsLeadingZero */) { - error(Diagnostics.Decimals_with_leading_zeros_are_not_allowed, start2, end2 - start2); - return { type: 9 /* NumericLiteral */, value: "" + +result }; + error2(Diagnostics.Decimals_with_leading_zeros_are_not_allowed, start2, end2 - start2); + tokenValue = "" + +result; + return 9 /* NumericLiteral */; } if (decimalFragment !== void 0 || tokenFlags & 16 /* Scientific */) { checkForIdentifierStartAfterNumericLiteral(start2, decimalFragment === void 0 && !!(tokenFlags & 16 /* Scientific */)); - return { - type: 9 /* NumericLiteral */, - value: "" + +result - // if value is not an integer, it can be safely coerced to a number - }; + tokenValue = "" + +result; + return 9 /* NumericLiteral */; } else { tokenValue = result; const type = checkBigIntSuffix(); checkForIdentifierStartAfterNumericLiteral(start2); - return { type, value: tokenValue }; + return type; } } function checkForIdentifierStartAfterNumericLiteral(numericStart, isScientific) { @@ -9769,12 +9801,12 @@ ${lanes.join("\n")} const { length: length3 } = scanIdentifierParts(); if (length3 === 1 && text[identifierStart] === "n") { if (isScientific) { - error(Diagnostics.A_bigint_literal_cannot_use_exponential_notation, numericStart, identifierStart - numericStart + 1); + error2(Diagnostics.A_bigint_literal_cannot_use_exponential_notation, numericStart, identifierStart - numericStart + 1); } else { - error(Diagnostics.A_bigint_literal_must_be_an_integer, numericStart, identifierStart - numericStart + 1); + error2(Diagnostics.A_bigint_literal_must_be_an_integer, numericStart, identifierStart - numericStart + 1); } } else { - error(Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal, identifierStart, length3); + error2(Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal, identifierStart, length3); pos = identifierStart; } } @@ -9821,9 +9853,9 @@ ${lanes.join("\n")} allowSeparator = false; isPreviousTokenSeparator = true; } else if (isPreviousTokenSeparator) { - error(Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1); + error2(Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1); } else { - error(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1); + error2(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1); } pos++; continue; @@ -9842,7 +9874,7 @@ ${lanes.join("\n")} valueChars = []; } if (text.charCodeAt(pos - 1) === 95 /* _ */) { - error(Diagnostics.Numeric_separators_are_not_allowed_here, pos - 1, 1); + error2(Diagnostics.Numeric_separators_are_not_allowed_here, pos - 1, 1); } return String.fromCharCode(...valueChars); } @@ -9855,7 +9887,7 @@ ${lanes.join("\n")} if (pos >= end) { result += text.substring(start2, pos); tokenFlags |= 4 /* Unterminated */; - error(Diagnostics.Unterminated_string_literal); + error2(Diagnostics.Unterminated_string_literal); break; } const ch = text.charCodeAt(pos); @@ -9876,7 +9908,7 @@ ${lanes.join("\n")} if (isLineBreak(ch) && !jsxAttributeString) { result += text.substring(start2, pos); tokenFlags |= 4 /* Unterminated */; - error(Diagnostics.Unterminated_string_literal); + error2(Diagnostics.Unterminated_string_literal); break; } pos++; @@ -9893,7 +9925,7 @@ ${lanes.join("\n")} if (pos >= end) { contents += text.substring(start2, pos); tokenFlags |= 4 /* Unterminated */; - error(Diagnostics.Unterminated_template_literal); + error2(Diagnostics.Unterminated_template_literal); resultingToken = startedWithBacktick ? 15 /* NoSubstitutionTemplateLiteral */ : 18 /* TemplateTail */; break; } @@ -9936,7 +9968,7 @@ ${lanes.join("\n")} const start2 = pos; pos++; if (pos >= end) { - error(Diagnostics.Unexpected_end_of_text); + error2(Diagnostics.Unexpected_end_of_text); return ""; } const ch = text.charCodeAt(pos); @@ -9962,7 +9994,7 @@ ${lanes.join("\n")} tokenFlags |= 2048 /* ContainsInvalidEscape */; if (shouldEmitInvalidEscapeError) { const code = parseInt(text.substring(start2 + 1, pos), 8); - error(Diagnostics.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0, start2, pos - start2, "\\x" + padLeft(code.toString(16), 2, "0")); + error2(Diagnostics.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0, start2, pos - start2, "\\x" + padLeft(code.toString(16), 2, "0")); return String.fromCharCode(code); } return text.substring(start2, pos); @@ -9970,7 +10002,7 @@ ${lanes.join("\n")} case 57 /* _9 */: tokenFlags |= 2048 /* ContainsInvalidEscape */; if (shouldEmitInvalidEscapeError) { - error(Diagnostics.Escape_sequence_0_is_not_allowed, start2, pos - start2, text.substring(start2, pos)); + error2(Diagnostics.Escape_sequence_0_is_not_allowed, start2, pos - start2, text.substring(start2, pos)); return String.fromCharCode(ch); } return text.substring(start2, pos); @@ -10002,28 +10034,28 @@ ${lanes.join("\n")} if (escapedValue < 0) { tokenFlags |= 2048 /* ContainsInvalidEscape */; if (shouldEmitInvalidEscapeError) { - error(Diagnostics.Hexadecimal_digit_expected); + error2(Diagnostics.Hexadecimal_digit_expected); } return text.substring(start2, pos); } if (!isCodePoint(escapedValue)) { tokenFlags |= 2048 /* ContainsInvalidEscape */; if (shouldEmitInvalidEscapeError) { - error(Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive); + error2(Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive); } return text.substring(start2, pos); } if (pos >= end) { tokenFlags |= 2048 /* ContainsInvalidEscape */; if (shouldEmitInvalidEscapeError) { - error(Diagnostics.Unexpected_end_of_text); + error2(Diagnostics.Unexpected_end_of_text); } return text.substring(start2, pos); } if (text.charCodeAt(pos) !== 125 /* closeBrace */) { tokenFlags |= 2048 /* ContainsInvalidEscape */; if (shouldEmitInvalidEscapeError) { - error(Diagnostics.Unterminated_Unicode_escape_sequence); + error2(Diagnostics.Unterminated_Unicode_escape_sequence); } return text.substring(start2, pos); } @@ -10035,7 +10067,7 @@ ${lanes.join("\n")} if (!(pos < end && isHexDigit(text.charCodeAt(pos)))) { tokenFlags |= 2048 /* ContainsInvalidEscape */; if (shouldEmitInvalidEscapeError) { - error(Diagnostics.Hexadecimal_digit_expected); + error2(Diagnostics.Hexadecimal_digit_expected); } return text.substring(start2, pos); } @@ -10047,7 +10079,7 @@ ${lanes.join("\n")} if (!(pos < end && isHexDigit(text.charCodeAt(pos)))) { tokenFlags |= 2048 /* ContainsInvalidEscape */; if (shouldEmitInvalidEscapeError) { - error(Diagnostics.Hexadecimal_digit_expected); + error2(Diagnostics.Hexadecimal_digit_expected); } return text.substring(start2, pos); } @@ -10075,19 +10107,19 @@ ${lanes.join("\n")} const escapedValue = escapedValueString ? parseInt(escapedValueString, 16) : -1; let isInvalidExtendedEscape = false; if (escapedValue < 0) { - error(Diagnostics.Hexadecimal_digit_expected); + error2(Diagnostics.Hexadecimal_digit_expected); isInvalidExtendedEscape = true; } else if (escapedValue > 1114111) { - error(Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive); + error2(Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive); isInvalidExtendedEscape = true; } if (pos >= end) { - error(Diagnostics.Unexpected_end_of_text); + error2(Diagnostics.Unexpected_end_of_text); isInvalidExtendedEscape = true; } else if (text.charCodeAt(pos) === 125 /* closeBrace */) { pos++; } else { - error(Diagnostics.Unterminated_Unicode_escape_sequence); + error2(Diagnostics.Unterminated_Unicode_escape_sequence); isInvalidExtendedEscape = true; } if (isInvalidExtendedEscape) { @@ -10181,9 +10213,9 @@ ${lanes.join("\n")} separatorAllowed = false; isPreviousTokenSeparator = true; } else if (isPreviousTokenSeparator) { - error(Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1); + error2(Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1); } else { - error(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1); + error2(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1); } pos++; continue; @@ -10197,7 +10229,7 @@ ${lanes.join("\n")} isPreviousTokenSeparator = false; } if (text.charCodeAt(pos - 1) === 95 /* _ */) { - error(Diagnostics.Numeric_separators_are_not_allowed_here, pos - 1, 1); + error2(Diagnostics.Numeric_separators_are_not_allowed_here, pos - 1, 1); } return value; } @@ -10227,7 +10259,7 @@ ${lanes.join("\n")} const ch = codePointAt(text, pos); if (pos === 0) { if (ch === 65533 /* replacementCharacter */) { - error(Diagnostics.File_appears_to_be_binary); + error2(Diagnostics.File_appears_to_be_binary); pos = end; return token = 8 /* NonTextFileMarkerTrivia */; } @@ -10367,7 +10399,7 @@ ${lanes.join("\n")} return token = 41 /* MinusToken */; case 46 /* dot */: if (isDigit(text.charCodeAt(pos + 1))) { - tokenValue = scanNumber().value; + scanNumber(); return token = 9 /* NumericLiteral */; } if (text.charCodeAt(pos + 1) === 46 /* dot */ && text.charCodeAt(pos + 2) === 46 /* dot */) { @@ -10418,7 +10450,7 @@ ${lanes.join("\n")} } commentDirectives = appendIfCommentDirective(commentDirectives, text.slice(lastLineStart, pos), commentDirectiveRegExMultiLine, lastLineStart); if (!commentClosed) { - error(Diagnostics.Asterisk_Slash_expected); + error2(Diagnostics.Asterisk_Slash_expected); } if (skipTrivia2) { continue; @@ -10443,7 +10475,7 @@ ${lanes.join("\n")} true ); if (!tokenValue) { - error(Diagnostics.Hexadecimal_digit_expected); + error2(Diagnostics.Hexadecimal_digit_expected); tokenValue = "0"; } tokenValue = "0x" + tokenValue; @@ -10456,7 +10488,7 @@ ${lanes.join("\n")} 2 ); if (!tokenValue) { - error(Diagnostics.Binary_digit_expected); + error2(Diagnostics.Binary_digit_expected); tokenValue = "0"; } tokenValue = "0b" + tokenValue; @@ -10469,7 +10501,7 @@ ${lanes.join("\n")} 8 ); if (!tokenValue) { - error(Diagnostics.Octal_digit_expected); + error2(Diagnostics.Octal_digit_expected); tokenValue = "0"; } tokenValue = "0o" + tokenValue; @@ -10485,8 +10517,7 @@ ${lanes.join("\n")} case 55 /* _7 */: case 56 /* _8 */: case 57 /* _9 */: - ({ type: token, value: tokenValue } = scanNumber()); - return token; + return token = scanNumber(); case 58 /* colon */: pos++; return token = 59 /* ColonToken */; @@ -10495,7 +10526,7 @@ ${lanes.join("\n")} return token = 27 /* SemicolonToken */; case 60 /* lessThan */: if (isConflictMarkerTrivia(text, pos)) { - pos = scanConflictMarkerTrivia(text, pos, error); + pos = scanConflictMarkerTrivia(text, pos, error2); if (skipTrivia2) { continue; } else { @@ -10518,7 +10549,7 @@ ${lanes.join("\n")} return token = 30 /* LessThanToken */; case 61 /* equals */: if (isConflictMarkerTrivia(text, pos)) { - pos = scanConflictMarkerTrivia(text, pos, error); + pos = scanConflictMarkerTrivia(text, pos, error2); if (skipTrivia2) { continue; } else { @@ -10538,7 +10569,7 @@ ${lanes.join("\n")} return token = 64 /* EqualsToken */; case 62 /* greaterThan */: if (isConflictMarkerTrivia(text, pos)) { - pos = scanConflictMarkerTrivia(text, pos, error); + pos = scanConflictMarkerTrivia(text, pos, error2); if (skipTrivia2) { continue; } else { @@ -10576,7 +10607,7 @@ ${lanes.join("\n")} return token = 19 /* OpenBraceToken */; case 124 /* bar */: if (isConflictMarkerTrivia(text, pos)) { - pos = scanConflictMarkerTrivia(text, pos, error); + pos = scanConflictMarkerTrivia(text, pos, error2); if (skipTrivia2) { continue; } else { @@ -10618,12 +10649,12 @@ ${lanes.join("\n")} tokenValue = String.fromCharCode(cookedChar) + scanIdentifierParts(); return token = getIdentifierToken(); } - error(Diagnostics.Invalid_character); + error2(Diagnostics.Invalid_character); pos++; return token = 0 /* Unknown */; case 35 /* hash */: if (pos !== 0 && text[pos + 1] === "!") { - error(Diagnostics.can_only_be_used_at_the_start_of_a_file); + error2(Diagnostics.can_only_be_used_at_the_start_of_a_file); pos++; return token = 0 /* Unknown */; } @@ -10651,7 +10682,7 @@ ${lanes.join("\n")} scanIdentifier(charAfterHash, languageVersion); } else { tokenValue = "#"; - error(Diagnostics.Invalid_character, pos++, charSize(ch)); + error2(Diagnostics.Invalid_character, pos++, charSize(ch)); } return token = 81 /* PrivateIdentifier */; default: @@ -10667,7 +10698,7 @@ ${lanes.join("\n")} continue; } const size = charSize(ch); - error(Diagnostics.Invalid_character, pos, size); + error2(Diagnostics.Invalid_character, pos, size); pos += size; return token = 0 /* Unknown */; } @@ -10733,13 +10764,13 @@ ${lanes.join("\n")} while (true) { if (p >= end) { tokenFlags |= 4 /* Unterminated */; - error(Diagnostics.Unterminated_regular_expression_literal); + error2(Diagnostics.Unterminated_regular_expression_literal); break; } const ch = text.charCodeAt(p); if (isLineBreak(ch)) { tokenFlags |= 4 /* Unterminated */; - error(Diagnostics.Unterminated_regular_expression_literal); + error2(Diagnostics.Unterminated_regular_expression_literal); break; } if (inEscape) { @@ -10851,16 +10882,16 @@ ${lanes.join("\n")} } if (char === 60 /* lessThan */) { if (isConflictMarkerTrivia(text, pos)) { - pos = scanConflictMarkerTrivia(text, pos, error); + pos = scanConflictMarkerTrivia(text, pos, error2); return token = 7 /* ConflictMarkerTrivia */; } break; } if (char === 62 /* greaterThan */) { - error(Diagnostics.Unexpected_token_Did_you_mean_or_gt, pos, 1); + error2(Diagnostics.Unexpected_token_Did_you_mean_or_gt, pos, 1); } if (char === 125 /* closeBrace */) { - error(Diagnostics.Unexpected_token_Did_you_mean_or_rbrace, pos, 1); + error2(Diagnostics.Unexpected_token_Did_you_mean_or_rbrace, pos, 1); } if (isLineBreak(char) && firstNonWhitespace === 0) { firstNonWhitespace = -1; @@ -11130,7 +11161,7 @@ ${lanes.join("\n")} as: 130 /* AsKeyword */, asserts: 131 /* AssertsKeyword */, assert: 132 /* AssertKeyword */, - bigint: 162 /* BigIntKeyword */, + bigint: 163 /* BigIntKeyword */, boolean: 136 /* BooleanKeyword */, break: 83 /* BreakKeyword */, case: 84 /* CaseKeyword */, @@ -11151,7 +11182,7 @@ ${lanes.join("\n")} false: 97 /* FalseKeyword */, finally: 98 /* FinallyKeyword */, for: 99 /* ForKeyword */, - from: 160 /* FromKeyword */, + from: 161 /* FromKeyword */, function: 100 /* FunctionKeyword */, get: 139 /* GetKeyword */, if: 101 /* IfKeyword */, @@ -11176,11 +11207,11 @@ ${lanes.join("\n")} private: 123 /* PrivateKeyword */, protected: 124 /* ProtectedKeyword */, public: 125 /* PublicKeyword */, - override: 163 /* OverrideKeyword */, + override: 164 /* OverrideKeyword */, out: 147 /* OutKeyword */, readonly: 148 /* ReadonlyKeyword */, require: 149 /* RequireKeyword */, - global: 161 /* GlobalKeyword */, + global: 162 /* GlobalKeyword */, return: 107 /* ReturnKeyword */, satisfies: 152 /* SatisfiesKeyword */, set: 153 /* SetKeyword */, @@ -11198,6 +11229,7 @@ ${lanes.join("\n")} undefined: 157 /* UndefinedKeyword */, unique: 158 /* UniqueKeyword */, unknown: 159 /* UnknownKeyword */, + using: 160 /* UsingKeyword */, var: 115 /* VarKeyword */, void: 116 /* VoidKeyword */, while: 117 /* WhileKeyword */, @@ -11205,7 +11237,7 @@ ${lanes.join("\n")} yield: 127 /* YieldKeyword */, async: 134 /* AsyncKeyword */, await: 135 /* AwaitKeyword */, - of: 164 /* OfKeyword */ + of: 165 /* OfKeyword */ }; textToKeyword = new Map(Object.entries(textToKeywordObj)); textToToken = new Map(Object.entries({ @@ -11427,16 +11459,16 @@ ${lanes.join("\n")} ); } function getTypeParameterOwner(d) { - if (d && d.kind === 167 /* TypeParameter */) { + if (d && d.kind === 168 /* TypeParameter */) { for (let current = d; current; current = current.parent) { - if (isFunctionLike(current) || isClassLike(current) || current.kind === 263 /* InterfaceDeclaration */) { + if (isFunctionLike(current) || isClassLike(current) || current.kind === 264 /* InterfaceDeclaration */) { return current; } } } } function isParameterPropertyDeclaration(node, parent2) { - return isParameter(node) && hasSyntacticModifier(node, 16476 /* ParameterPropertyModifier */) && parent2.kind === 175 /* Constructor */; + return isParameter(node) && hasSyntacticModifier(node, 16476 /* ParameterPropertyModifier */) && parent2.kind === 176 /* Constructor */; } function isEmptyBindingPattern(node) { if (isBindingPattern(node)) { @@ -11462,14 +11494,14 @@ ${lanes.join("\n")} node = walkUpBindingElementsAndPatterns(node); } let flags = getFlags(node); - if (node.kind === 259 /* VariableDeclaration */) { + if (node.kind === 260 /* VariableDeclaration */) { node = node.parent; } - if (node && node.kind === 260 /* VariableDeclarationList */) { + if (node && node.kind === 261 /* VariableDeclarationList */) { flags |= getFlags(node); node = node.parent; } - if (node && node.kind === 242 /* VariableStatement */) { + if (node && node.kind === 243 /* VariableStatement */) { flags |= getFlags(node); } return flags; @@ -11481,11 +11513,14 @@ ${lanes.join("\n")} return getCombinedFlags(node, getEffectiveModifierFlagsAlwaysIncludeJSDoc); } function getCombinedNodeFlags(node) { - return getCombinedFlags(node, (n) => n.flags); + return getCombinedFlags(node, getNodeFlags); + } + function getNodeFlags(node) { + return node.flags; } function validateLocaleAndSetLanguage(locale, sys2, errors) { const lowerCaseLocale = locale.toLowerCase(); - const matchResult = /^([a-z]+)([_\-]([a-z]+))?$/.exec(lowerCaseLocale); + const matchResult = /^([a-z]+)([_-]([a-z]+))?$/.exec(lowerCaseLocale); if (!matchResult) { if (errors) { errors.push(createCompilerDiagnostic(Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1, "en", "ja-jp")); @@ -11558,7 +11593,7 @@ ${lanes.join("\n")} return void 0; } function isParseTreeNode(node) { - return (node.flags & 8 /* Synthesized */) === 0; + return (node.flags & 16 /* Synthesized */) === 0; } function getParseTreeNode(node, nodeTest) { if (node === void 0 || isParseTreeNode(node)) { @@ -11601,30 +11636,30 @@ ${lanes.join("\n")} return getDeclarationIdentifier(hostNode); } switch (hostNode.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: if (hostNode.declarationList && hostNode.declarationList.declarations[0]) { return getDeclarationIdentifier(hostNode.declarationList.declarations[0]); } break; - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: let expr = hostNode.expression; - if (expr.kind === 225 /* BinaryExpression */ && expr.operatorToken.kind === 64 /* EqualsToken */) { + if (expr.kind === 226 /* BinaryExpression */ && expr.operatorToken.kind === 64 /* EqualsToken */) { expr = expr.left; } switch (expr.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return expr.name; - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: const arg = expr.argumentExpression; if (isIdentifier(arg)) { return arg; } } break; - case 216 /* ParenthesizedExpression */: { + case 217 /* ParenthesizedExpression */: { return getDeclarationIdentifier(hostNode.expression); } - case 255 /* LabeledStatement */: { + case 256 /* LabeledStatement */: { if (isDeclaration(hostNode.statement) || isExpression(hostNode.statement)) { return getDeclarationIdentifier(hostNode.statement); } @@ -11655,16 +11690,16 @@ ${lanes.join("\n")} switch (declaration.kind) { case 80 /* Identifier */: return declaration; - case 354 /* JSDocPropertyTag */: - case 347 /* JSDocParameterTag */: { + case 355 /* JSDocPropertyTag */: + case 348 /* JSDocParameterTag */: { const { name } = declaration; - if (name.kind === 165 /* QualifiedName */) { + if (name.kind === 166 /* QualifiedName */) { return name.right; } break; } - case 212 /* CallExpression */: - case 225 /* BinaryExpression */: { + case 213 /* CallExpression */: + case 226 /* BinaryExpression */: { const expr2 = declaration; switch (getAssignmentDeclarationKind(expr2)) { case 1 /* ExportsProperty */: @@ -11680,15 +11715,15 @@ ${lanes.join("\n")} return void 0; } } - case 352 /* JSDocTypedefTag */: + case 353 /* JSDocTypedefTag */: return getNameOfJSDocTypedef(declaration); - case 346 /* JSDocEnumTag */: + case 347 /* JSDocEnumTag */: return nameForNamelessJSDocTypedef(declaration); - case 276 /* ExportAssignment */: { + case 277 /* ExportAssignment */: { const { expression } = declaration; return isIdentifier(expression) ? expression : void 0; } - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: const expr = declaration; if (isBindableStaticElementAccessExpression(expr)) { return expr.argumentExpression; @@ -11935,10 +11970,10 @@ ${lanes.join("\n")} return getJSDocTags(node).filter((doc) => doc.kind === kind); } function getTextOfJSDocComment(comment) { - return typeof comment === "string" ? comment : comment == null ? void 0 : comment.map((c) => c.kind === 327 /* JSDocText */ ? c.text : formatJSDocLink(c)).join(""); + return typeof comment === "string" ? comment : comment == null ? void 0 : comment.map((c) => c.kind === 328 /* JSDocText */ ? c.text : formatJSDocLink(c)).join(""); } function formatJSDocLink(link) { - const kind = link.kind === 330 /* JSDocLink */ ? "link" : link.kind === 331 /* JSDocLinkCode */ ? "linkcode" : "linkplain"; + const kind = link.kind === 331 /* JSDocLink */ ? "link" : link.kind === 332 /* JSDocLinkCode */ ? "linkcode" : "linkplain"; const name = link.name ? entityNameToString(link.name) : ""; const space = link.name && link.text.startsWith("://") ? "" : " "; return `{@${kind} ${name}${space}${link.text}}`; @@ -11954,7 +11989,7 @@ ${lanes.join("\n")} return emptyArray; } if (isJSDocTypeAlias(node)) { - Debug.assert(node.parent.kind === 326 /* JSDoc */); + Debug.assert(node.parent.kind === 327 /* JSDoc */); return flatMap(node.parent.tags, (tag) => isJSDocTemplateTag(tag) ? tag.typeParameters : void 0); } if (node.typeParameters) { @@ -11982,20 +12017,20 @@ ${lanes.join("\n")} return node.kind === 80 /* Identifier */ || node.kind === 81 /* PrivateIdentifier */; } function isGetOrSetAccessorDeclaration(node) { - return node.kind === 177 /* SetAccessor */ || node.kind === 176 /* GetAccessor */; + return node.kind === 178 /* SetAccessor */ || node.kind === 177 /* GetAccessor */; } function isPropertyAccessChain(node) { - return isPropertyAccessExpression(node) && !!(node.flags & 32 /* OptionalChain */); + return isPropertyAccessExpression(node) && !!(node.flags & 64 /* OptionalChain */); } function isElementAccessChain(node) { - return isElementAccessExpression(node) && !!(node.flags & 32 /* OptionalChain */); + return isElementAccessExpression(node) && !!(node.flags & 64 /* OptionalChain */); } function isCallChain(node) { - return isCallExpression(node) && !!(node.flags & 32 /* OptionalChain */); + return isCallExpression(node) && !!(node.flags & 64 /* OptionalChain */); } function isOptionalChain(node) { const kind = node.kind; - return !!(node.flags & 32 /* OptionalChain */) && (kind === 210 /* PropertyAccessExpression */ || kind === 211 /* ElementAccessExpression */ || kind === 212 /* CallExpression */ || kind === 234 /* NonNullExpression */); + return !!(node.flags & 64 /* OptionalChain */) && (kind === 211 /* PropertyAccessExpression */ || kind === 212 /* ElementAccessExpression */ || kind === 213 /* CallExpression */ || kind === 235 /* NonNullExpression */); } function isOptionalChainRoot(node) { return isOptionalChain(node) && !isNonNullExpression(node) && !!node.questionDotToken; @@ -12007,7 +12042,7 @@ ${lanes.join("\n")} return !isOptionalChain(node.parent) || isOptionalChainRoot(node.parent) || node !== node.parent.expression; } function isNullishCoalesce(node) { - return node.kind === 225 /* BinaryExpression */ && node.operatorToken.kind === 61 /* QuestionQuestionToken */; + return node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 61 /* QuestionQuestionToken */; } function isConstTypeReference(node) { return isTypeReferenceNode(node) && isIdentifier(node.typeName) && node.typeName.escapedText === "const" && !node.typeArguments; @@ -12016,37 +12051,37 @@ ${lanes.join("\n")} return skipOuterExpressions(node, 8 /* PartiallyEmittedExpressions */); } function isNonNullChain(node) { - return isNonNullExpression(node) && !!(node.flags & 32 /* OptionalChain */); + return isNonNullExpression(node) && !!(node.flags & 64 /* OptionalChain */); } function isBreakOrContinueStatement(node) { - return node.kind === 251 /* BreakStatement */ || node.kind === 250 /* ContinueStatement */; + return node.kind === 252 /* BreakStatement */ || node.kind === 251 /* ContinueStatement */; } function isNamedExportBindings(node) { - return node.kind === 279 /* NamespaceExport */ || node.kind === 278 /* NamedExports */; + return node.kind === 280 /* NamespaceExport */ || node.kind === 279 /* NamedExports */; } function isUnparsedTextLike(node) { switch (node.kind) { - case 308 /* UnparsedText */: - case 309 /* UnparsedInternalText */: + case 309 /* UnparsedText */: + case 310 /* UnparsedInternalText */: return true; default: return false; } } function isUnparsedNode(node) { - return isUnparsedTextLike(node) || node.kind === 306 /* UnparsedPrologue */ || node.kind === 310 /* UnparsedSyntheticReference */; + return isUnparsedTextLike(node) || node.kind === 307 /* UnparsedPrologue */ || node.kind === 311 /* UnparsedSyntheticReference */; } function isJSDocPropertyLikeTag(node) { - return node.kind === 354 /* JSDocPropertyTag */ || node.kind === 347 /* JSDocParameterTag */; + return node.kind === 355 /* JSDocPropertyTag */ || node.kind === 348 /* JSDocParameterTag */; } function isNode(node) { return isNodeKind(node.kind); } function isNodeKind(kind) { - return kind >= 165 /* FirstNode */; + return kind >= 166 /* FirstNode */; } function isTokenKind(kind) { - return kind >= 0 /* FirstToken */ && kind <= 164 /* LastToken */; + return kind >= 0 /* FirstToken */ && kind <= 165 /* LastToken */; } function isToken(n) { return isTokenKind(n.kind); @@ -12062,11 +12097,11 @@ ${lanes.join("\n")} } function isLiteralExpressionOfObject(node) { switch (node.kind) { - case 209 /* ObjectLiteralExpression */: - case 208 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: + case 209 /* ArrayLiteralExpression */: case 14 /* RegularExpressionLiteral */: - case 217 /* FunctionExpression */: - case 230 /* ClassExpression */: + case 218 /* FunctionExpression */: + case 231 /* ClassExpression */: return true; } return false; @@ -12086,23 +12121,23 @@ ${lanes.join("\n")} } function isTypeOnlyImportDeclaration(node) { switch (node.kind) { - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: return node.isTypeOnly || node.parent.parent.isTypeOnly; - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: return node.parent.isTypeOnly; - case 272 /* ImportClause */: - case 270 /* ImportEqualsDeclaration */: + case 273 /* ImportClause */: + case 271 /* ImportEqualsDeclaration */: return node.isTypeOnly; } return false; } function isTypeOnlyExportDeclaration(node) { switch (node.kind) { - case 280 /* ExportSpecifier */: + case 281 /* ExportSpecifier */: return node.isTypeOnly || node.parent.parent.isTypeOnly; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return node.isTypeOnly && !!node.moduleSpecifier && !node.exportClause; - case 279 /* NamespaceExport */: + case 280 /* NamespaceExport */: return node.parent.isTypeOnly; } return false; @@ -12124,6 +12159,10 @@ ${lanes.join("\n")} var _a; return isPrivateIdentifier(node) && ((_a = node.emitNode) == null ? void 0 : _a.autoGenerate) !== void 0; } + function isFileLevelReservedGeneratedIdentifier(node) { + const flags = node.emitNode.autoGenerate.flags; + return !!(flags & 32 /* FileLevel */) && !!(flags & 16 /* Optimistic */) && !!(flags & 8 /* ReservedInNestedScopes */); + } function isPrivateIdentifierClassElementDeclaration(node) { return (isPropertyDeclaration(node) || isMethodOrAccessor(node)) && isPrivateIdentifier(node.name); } @@ -12146,7 +12185,7 @@ ${lanes.join("\n")} case 148 /* ReadonlyKeyword */: case 126 /* StaticKeyword */: case 147 /* OutKeyword */: - case 163 /* OverrideKeyword */: + case 164 /* OverrideKeyword */: return true; } return false; @@ -12155,22 +12194,22 @@ ${lanes.join("\n")} return !!(modifierToFlag(kind) & 16476 /* ParameterPropertyModifier */); } function isClassMemberModifier(idToken) { - return isParameterPropertyModifier(idToken) || idToken === 126 /* StaticKeyword */ || idToken === 163 /* OverrideKeyword */ || idToken === 129 /* AccessorKeyword */; + return isParameterPropertyModifier(idToken) || idToken === 126 /* StaticKeyword */ || idToken === 164 /* OverrideKeyword */ || idToken === 129 /* AccessorKeyword */; } function isModifier(node) { return isModifierKind(node.kind); } function isEntityName(node) { const kind = node.kind; - return kind === 165 /* QualifiedName */ || kind === 80 /* Identifier */; + return kind === 166 /* QualifiedName */ || kind === 80 /* Identifier */; } function isPropertyName(node) { const kind = node.kind; - return kind === 80 /* Identifier */ || kind === 81 /* PrivateIdentifier */ || kind === 11 /* StringLiteral */ || kind === 9 /* NumericLiteral */ || kind === 166 /* ComputedPropertyName */; + return kind === 80 /* Identifier */ || kind === 81 /* PrivateIdentifier */ || kind === 11 /* StringLiteral */ || kind === 9 /* NumericLiteral */ || kind === 167 /* ComputedPropertyName */; } function isBindingName(node) { const kind = node.kind; - return kind === 80 /* Identifier */ || kind === 205 /* ObjectBindingPattern */ || kind === 206 /* ArrayBindingPattern */; + return kind === 80 /* Identifier */ || kind === 206 /* ObjectBindingPattern */ || kind === 207 /* ArrayBindingPattern */; } function isFunctionLike(node) { return !!node && isFunctionLikeKind(node.kind); @@ -12186,13 +12225,13 @@ ${lanes.join("\n")} } function isFunctionLikeDeclarationKind(kind) { switch (kind) { - case 261 /* FunctionDeclaration */: - case 173 /* MethodDeclaration */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return true; default: return false; @@ -12200,14 +12239,14 @@ ${lanes.join("\n")} } function isFunctionLikeKind(kind) { switch (kind) { - case 172 /* MethodSignature */: - case 178 /* CallSignature */: - case 329 /* JSDocSignature */: - case 179 /* ConstructSignature */: - case 180 /* IndexSignature */: - case 183 /* FunctionType */: - case 323 /* JSDocFunctionType */: - case 184 /* ConstructorType */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 330 /* JSDocSignature */: + case 180 /* ConstructSignature */: + case 181 /* IndexSignature */: + case 184 /* FunctionType */: + case 324 /* JSDocFunctionType */: + case 185 /* ConstructorType */: return true; default: return isFunctionLikeDeclarationKind(kind); @@ -12218,22 +12257,22 @@ ${lanes.join("\n")} } function isClassElement(node) { const kind = node.kind; - return kind === 175 /* Constructor */ || kind === 171 /* PropertyDeclaration */ || kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */ || kind === 180 /* IndexSignature */ || kind === 174 /* ClassStaticBlockDeclaration */ || kind === 239 /* SemicolonClassElement */; + return kind === 176 /* Constructor */ || kind === 172 /* PropertyDeclaration */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 181 /* IndexSignature */ || kind === 175 /* ClassStaticBlockDeclaration */ || kind === 240 /* SemicolonClassElement */; } function isClassLike(node) { - return node && (node.kind === 262 /* ClassDeclaration */ || node.kind === 230 /* ClassExpression */); + return node && (node.kind === 263 /* ClassDeclaration */ || node.kind === 231 /* ClassExpression */); } function isAccessor(node) { - return node && (node.kind === 176 /* GetAccessor */ || node.kind === 177 /* SetAccessor */); + return node && (node.kind === 177 /* GetAccessor */ || node.kind === 178 /* SetAccessor */); } function isAutoAccessorPropertyDeclaration(node) { return isPropertyDeclaration(node) && hasAccessorModifier(node); } function isMethodOrAccessor(node) { switch (node.kind) { - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return true; default: return false; @@ -12241,10 +12280,10 @@ ${lanes.join("\n")} } function isNamedClassElement(node) { switch (node.kind) { - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 171 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 172 /* PropertyDeclaration */: return true; default: return false; @@ -12255,22 +12294,22 @@ ${lanes.join("\n")} } function isTypeElement(node) { const kind = node.kind; - return kind === 179 /* ConstructSignature */ || kind === 178 /* CallSignature */ || kind === 170 /* PropertySignature */ || kind === 172 /* MethodSignature */ || kind === 180 /* IndexSignature */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */; + return kind === 180 /* ConstructSignature */ || kind === 179 /* CallSignature */ || kind === 171 /* PropertySignature */ || kind === 173 /* MethodSignature */ || kind === 181 /* IndexSignature */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; } function isClassOrTypeElement(node) { return isTypeElement(node) || isClassElement(node); } function isObjectLiteralElementLike(node) { const kind = node.kind; - return kind === 302 /* PropertyAssignment */ || kind === 303 /* ShorthandPropertyAssignment */ || kind === 304 /* SpreadAssignment */ || kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */; + return kind === 303 /* PropertyAssignment */ || kind === 304 /* ShorthandPropertyAssignment */ || kind === 305 /* SpreadAssignment */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; } function isTypeNode(node) { return isTypeNodeKind(node.kind); } function isFunctionOrConstructorTypeNode(node) { switch (node.kind) { - case 183 /* FunctionType */: - case 184 /* ConstructorType */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: return true; } return false; @@ -12278,23 +12317,23 @@ ${lanes.join("\n")} function isBindingPattern(node) { if (node) { const kind = node.kind; - return kind === 206 /* ArrayBindingPattern */ || kind === 205 /* ObjectBindingPattern */; + return kind === 207 /* ArrayBindingPattern */ || kind === 206 /* ObjectBindingPattern */; } return false; } function isAssignmentPattern(node) { const kind = node.kind; - return kind === 208 /* ArrayLiteralExpression */ || kind === 209 /* ObjectLiteralExpression */; + return kind === 209 /* ArrayLiteralExpression */ || kind === 210 /* ObjectLiteralExpression */; } function isArrayBindingElement(node) { const kind = node.kind; - return kind === 207 /* BindingElement */ || kind === 231 /* OmittedExpression */; + return kind === 208 /* BindingElement */ || kind === 232 /* OmittedExpression */; } function isDeclarationBindingElement(bindingElement) { switch (bindingElement.kind) { - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 207 /* BindingElement */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 208 /* BindingElement */: return true; } return false; @@ -12307,40 +12346,40 @@ ${lanes.join("\n")} } function isObjectBindingOrAssignmentPattern(node) { switch (node.kind) { - case 205 /* ObjectBindingPattern */: - case 209 /* ObjectLiteralExpression */: + case 206 /* ObjectBindingPattern */: + case 210 /* ObjectLiteralExpression */: return true; } return false; } function isObjectBindingOrAssignmentElement(node) { switch (node.kind) { - case 207 /* BindingElement */: - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: - case 304 /* SpreadAssignment */: + case 208 /* BindingElement */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 305 /* SpreadAssignment */: return true; } return false; } function isArrayBindingOrAssignmentPattern(node) { switch (node.kind) { - case 206 /* ArrayBindingPattern */: - case 208 /* ArrayLiteralExpression */: + case 207 /* ArrayBindingPattern */: + case 209 /* ArrayLiteralExpression */: return true; } return false; } function isArrayBindingOrAssignmentElement(node) { switch (node.kind) { - case 207 /* BindingElement */: - case 231 /* OmittedExpression */: - case 229 /* SpreadElement */: - case 208 /* ArrayLiteralExpression */: - case 209 /* ObjectLiteralExpression */: + case 208 /* BindingElement */: + case 232 /* OmittedExpression */: + case 230 /* SpreadElement */: + case 209 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: case 80 /* Identifier */: - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return true; } return isAssignmentExpression( @@ -12351,50 +12390,50 @@ ${lanes.join("\n")} } function isPropertyAccessOrQualifiedNameOrImportTypeNode(node) { const kind = node.kind; - return kind === 210 /* PropertyAccessExpression */ || kind === 165 /* QualifiedName */ || kind === 204 /* ImportType */; + return kind === 211 /* PropertyAccessExpression */ || kind === 166 /* QualifiedName */ || kind === 205 /* ImportType */; } function isPropertyAccessOrQualifiedName(node) { const kind = node.kind; - return kind === 210 /* PropertyAccessExpression */ || kind === 165 /* QualifiedName */; + return kind === 211 /* PropertyAccessExpression */ || kind === 166 /* QualifiedName */; } function isCallLikeExpression(node) { switch (node.kind) { - case 285 /* JsxOpeningElement */: - case 284 /* JsxSelfClosingElement */: - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 214 /* TaggedTemplateExpression */: - case 169 /* Decorator */: + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 215 /* TaggedTemplateExpression */: + case 170 /* Decorator */: return true; default: return false; } } function isCallOrNewExpression(node) { - return node.kind === 212 /* CallExpression */ || node.kind === 213 /* NewExpression */; + return node.kind === 213 /* CallExpression */ || node.kind === 214 /* NewExpression */; } function isTemplateLiteral(node) { const kind = node.kind; - return kind === 227 /* TemplateExpression */ || kind === 15 /* NoSubstitutionTemplateLiteral */; + return kind === 228 /* TemplateExpression */ || kind === 15 /* NoSubstitutionTemplateLiteral */; } function isLeftHandSideExpression(node) { return isLeftHandSideExpressionKind(skipPartiallyEmittedExpressions(node).kind); } function isLeftHandSideExpressionKind(kind) { switch (kind) { - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: - case 213 /* NewExpression */: - case 212 /* CallExpression */: - case 283 /* JsxElement */: - case 284 /* JsxSelfClosingElement */: - case 287 /* JsxFragment */: - case 214 /* TaggedTemplateExpression */: - case 208 /* ArrayLiteralExpression */: - case 216 /* ParenthesizedExpression */: - case 209 /* ObjectLiteralExpression */: - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + case 214 /* NewExpression */: + case 213 /* CallExpression */: + case 284 /* JsxElement */: + case 285 /* JsxSelfClosingElement */: + case 288 /* JsxFragment */: + case 215 /* TaggedTemplateExpression */: + case 209 /* ArrayLiteralExpression */: + case 217 /* ParenthesizedExpression */: + case 210 /* ObjectLiteralExpression */: + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: case 80 /* Identifier */: case 81 /* PrivateIdentifier */: case 14 /* RegularExpressionLiteral */: @@ -12402,17 +12441,17 @@ ${lanes.join("\n")} case 10 /* BigIntLiteral */: case 11 /* StringLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: - case 227 /* TemplateExpression */: + case 228 /* TemplateExpression */: case 97 /* FalseKeyword */: case 106 /* NullKeyword */: case 110 /* ThisKeyword */: case 112 /* TrueKeyword */: case 108 /* SuperKeyword */: - case 234 /* NonNullExpression */: - case 232 /* ExpressionWithTypeArguments */: - case 235 /* MetaProperty */: + case 235 /* NonNullExpression */: + case 233 /* ExpressionWithTypeArguments */: + case 236 /* MetaProperty */: case 102 /* ImportKeyword */: - case 281 /* MissingDeclaration */: + case 282 /* MissingDeclaration */: return true; default: return false; @@ -12423,13 +12462,13 @@ ${lanes.join("\n")} } function isUnaryExpressionKind(kind) { switch (kind) { - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: - case 219 /* DeleteExpression */: - case 220 /* TypeOfExpression */: - case 221 /* VoidExpression */: - case 222 /* AwaitExpression */: - case 215 /* TypeAssertionExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: + case 220 /* DeleteExpression */: + case 221 /* TypeOfExpression */: + case 222 /* VoidExpression */: + case 223 /* AwaitExpression */: + case 216 /* TypeAssertionExpression */: return true; default: return isLeftHandSideExpressionKind(kind); @@ -12437,9 +12476,9 @@ ${lanes.join("\n")} } function isUnaryExpressionWithWrite(expr) { switch (expr.kind) { - case 224 /* PostfixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return true; - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: return expr.operator === 46 /* PlusPlusToken */ || expr.operator === 47 /* MinusMinusToken */; default: return false; @@ -12450,7 +12489,7 @@ ${lanes.join("\n")} case 106 /* NullKeyword */: case 112 /* TrueKeyword */: case 97 /* FalseKeyword */: - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: return true; default: return isLiteralExpression(node); @@ -12461,16 +12500,16 @@ ${lanes.join("\n")} } function isExpressionKind(kind) { switch (kind) { - case 226 /* ConditionalExpression */: - case 228 /* YieldExpression */: - case 218 /* ArrowFunction */: - case 225 /* BinaryExpression */: - case 229 /* SpreadElement */: - case 233 /* AsExpression */: - case 231 /* OmittedExpression */: - case 360 /* CommaListExpression */: - case 359 /* PartiallyEmittedExpression */: - case 237 /* SatisfiesExpression */: + case 227 /* ConditionalExpression */: + case 229 /* YieldExpression */: + case 219 /* ArrowFunction */: + case 226 /* BinaryExpression */: + case 230 /* SpreadElement */: + case 234 /* AsExpression */: + case 232 /* OmittedExpression */: + case 361 /* CommaListExpression */: + case 360 /* PartiallyEmittedExpression */: + case 238 /* SatisfiesExpression */: return true; default: return isUnaryExpressionKind(kind); @@ -12478,20 +12517,20 @@ ${lanes.join("\n")} } function isAssertionExpression(node) { const kind = node.kind; - return kind === 215 /* TypeAssertionExpression */ || kind === 233 /* AsExpression */; + return kind === 216 /* TypeAssertionExpression */ || kind === 234 /* AsExpression */; } function isNotEmittedOrPartiallyEmittedNode(node) { return isNotEmittedStatement(node) || isPartiallyEmittedExpression(node); } function isIterationStatement(node, lookInLabeledStatements) { switch (node.kind) { - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: return true; - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return lookInLabeledStatements && isIterationStatement(node.statement, lookInLabeledStatements); } return false; @@ -12509,7 +12548,7 @@ ${lanes.join("\n")} return isAnyImportOrReExport(result) || isExportAssignment(result) || hasSyntacticModifier(result, 1 /* Export */); } function isForInOrOfStatement(node) { - return node.kind === 248 /* ForInStatement */ || node.kind === 249 /* ForOfStatement */; + return node.kind === 249 /* ForInStatement */ || node.kind === 250 /* ForOfStatement */; } function isConciseBody(node) { return isBlock(node) || isExpression(node); @@ -12522,89 +12561,89 @@ ${lanes.join("\n")} } function isModuleBody(node) { const kind = node.kind; - return kind === 267 /* ModuleBlock */ || kind === 266 /* ModuleDeclaration */ || kind === 80 /* Identifier */; + return kind === 268 /* ModuleBlock */ || kind === 267 /* ModuleDeclaration */ || kind === 80 /* Identifier */; } function isNamespaceBody(node) { const kind = node.kind; - return kind === 267 /* ModuleBlock */ || kind === 266 /* ModuleDeclaration */; + return kind === 268 /* ModuleBlock */ || kind === 267 /* ModuleDeclaration */; } function isJSDocNamespaceBody(node) { const kind = node.kind; - return kind === 80 /* Identifier */ || kind === 266 /* ModuleDeclaration */; + return kind === 80 /* Identifier */ || kind === 267 /* ModuleDeclaration */; } function isNamedImportBindings(node) { const kind = node.kind; - return kind === 274 /* NamedImports */ || kind === 273 /* NamespaceImport */; + return kind === 275 /* NamedImports */ || kind === 274 /* NamespaceImport */; } function isModuleOrEnumDeclaration(node) { - return node.kind === 266 /* ModuleDeclaration */ || node.kind === 265 /* EnumDeclaration */; + return node.kind === 267 /* ModuleDeclaration */ || node.kind === 266 /* EnumDeclaration */; } function canHaveSymbol(node) { switch (node.kind) { - case 218 /* ArrowFunction */: - case 225 /* BinaryExpression */: - case 207 /* BindingElement */: - case 212 /* CallExpression */: - case 178 /* CallSignature */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 174 /* ClassStaticBlockDeclaration */: - case 175 /* Constructor */: - case 184 /* ConstructorType */: - case 179 /* ConstructSignature */: - case 211 /* ElementAccessExpression */: - case 265 /* EnumDeclaration */: - case 305 /* EnumMember */: - case 276 /* ExportAssignment */: - case 277 /* ExportDeclaration */: - case 280 /* ExportSpecifier */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 183 /* FunctionType */: - case 176 /* GetAccessor */: + case 219 /* ArrowFunction */: + case 226 /* BinaryExpression */: + case 208 /* BindingElement */: + case 213 /* CallExpression */: + case 179 /* CallSignature */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 175 /* ClassStaticBlockDeclaration */: + case 176 /* Constructor */: + case 185 /* ConstructorType */: + case 180 /* ConstructSignature */: + case 212 /* ElementAccessExpression */: + case 266 /* EnumDeclaration */: + case 306 /* EnumMember */: + case 277 /* ExportAssignment */: + case 278 /* ExportDeclaration */: + case 281 /* ExportSpecifier */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 184 /* FunctionType */: + case 177 /* GetAccessor */: case 80 /* Identifier */: - case 272 /* ImportClause */: - case 270 /* ImportEqualsDeclaration */: - case 275 /* ImportSpecifier */: - case 180 /* IndexSignature */: - case 263 /* InterfaceDeclaration */: - case 344 /* JSDocCallbackTag */: - case 346 /* JSDocEnumTag */: - case 323 /* JSDocFunctionType */: - case 347 /* JSDocParameterTag */: - case 354 /* JSDocPropertyTag */: - case 329 /* JSDocSignature */: - case 352 /* JSDocTypedefTag */: - case 328 /* JSDocTypeLiteral */: - case 290 /* JsxAttribute */: - case 291 /* JsxAttributes */: - case 292 /* JsxSpreadAttribute */: - case 199 /* MappedType */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 266 /* ModuleDeclaration */: - case 201 /* NamedTupleMember */: - case 279 /* NamespaceExport */: - case 269 /* NamespaceExportDeclaration */: - case 273 /* NamespaceImport */: - case 213 /* NewExpression */: + case 273 /* ImportClause */: + case 271 /* ImportEqualsDeclaration */: + case 276 /* ImportSpecifier */: + case 181 /* IndexSignature */: + case 264 /* InterfaceDeclaration */: + case 345 /* JSDocCallbackTag */: + case 347 /* JSDocEnumTag */: + case 324 /* JSDocFunctionType */: + case 348 /* JSDocParameterTag */: + case 355 /* JSDocPropertyTag */: + case 330 /* JSDocSignature */: + case 353 /* JSDocTypedefTag */: + case 329 /* JSDocTypeLiteral */: + case 291 /* JsxAttribute */: + case 292 /* JsxAttributes */: + case 293 /* JsxSpreadAttribute */: + case 200 /* MappedType */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 267 /* ModuleDeclaration */: + case 202 /* NamedTupleMember */: + case 280 /* NamespaceExport */: + case 270 /* NamespaceExportDeclaration */: + case 274 /* NamespaceImport */: + case 214 /* NewExpression */: case 15 /* NoSubstitutionTemplateLiteral */: case 9 /* NumericLiteral */: - case 209 /* ObjectLiteralExpression */: - case 168 /* Parameter */: - case 210 /* PropertyAccessExpression */: - case 302 /* PropertyAssignment */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 177 /* SetAccessor */: - case 303 /* ShorthandPropertyAssignment */: - case 311 /* SourceFile */: - case 304 /* SpreadAssignment */: + case 210 /* ObjectLiteralExpression */: + case 169 /* Parameter */: + case 211 /* PropertyAccessExpression */: + case 303 /* PropertyAssignment */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 178 /* SetAccessor */: + case 304 /* ShorthandPropertyAssignment */: + case 312 /* SourceFile */: + case 305 /* SpreadAssignment */: case 11 /* StringLiteral */: - case 264 /* TypeAliasDeclaration */: - case 186 /* TypeLiteral */: - case 167 /* TypeParameter */: - case 259 /* VariableDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 187 /* TypeLiteral */: + case 168 /* TypeParameter */: + case 260 /* VariableDeclaration */: return true; default: return false; @@ -12612,53 +12651,53 @@ ${lanes.join("\n")} } function canHaveLocals(node) { switch (node.kind) { - case 218 /* ArrowFunction */: - case 240 /* Block */: - case 178 /* CallSignature */: - case 268 /* CaseBlock */: - case 298 /* CatchClause */: - case 174 /* ClassStaticBlockDeclaration */: - case 193 /* ConditionalType */: - case 175 /* Constructor */: - case 184 /* ConstructorType */: - case 179 /* ConstructSignature */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 183 /* FunctionType */: - case 176 /* GetAccessor */: - case 180 /* IndexSignature */: - case 344 /* JSDocCallbackTag */: - case 346 /* JSDocEnumTag */: - case 323 /* JSDocFunctionType */: - case 329 /* JSDocSignature */: - case 352 /* JSDocTypedefTag */: - case 199 /* MappedType */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 266 /* ModuleDeclaration */: - case 177 /* SetAccessor */: - case 311 /* SourceFile */: - case 264 /* TypeAliasDeclaration */: + case 219 /* ArrowFunction */: + case 241 /* Block */: + case 179 /* CallSignature */: + case 269 /* CaseBlock */: + case 299 /* CatchClause */: + case 175 /* ClassStaticBlockDeclaration */: + case 194 /* ConditionalType */: + case 176 /* Constructor */: + case 185 /* ConstructorType */: + case 180 /* ConstructSignature */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 184 /* FunctionType */: + case 177 /* GetAccessor */: + case 181 /* IndexSignature */: + case 345 /* JSDocCallbackTag */: + case 347 /* JSDocEnumTag */: + case 324 /* JSDocFunctionType */: + case 330 /* JSDocSignature */: + case 353 /* JSDocTypedefTag */: + case 200 /* MappedType */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 267 /* ModuleDeclaration */: + case 178 /* SetAccessor */: + case 312 /* SourceFile */: + case 265 /* TypeAliasDeclaration */: return true; default: return false; } } function isDeclarationKind(kind) { - return kind === 218 /* ArrowFunction */ || kind === 207 /* BindingElement */ || kind === 262 /* ClassDeclaration */ || kind === 230 /* ClassExpression */ || kind === 174 /* ClassStaticBlockDeclaration */ || kind === 175 /* Constructor */ || kind === 265 /* EnumDeclaration */ || kind === 305 /* EnumMember */ || kind === 280 /* ExportSpecifier */ || kind === 261 /* FunctionDeclaration */ || kind === 217 /* FunctionExpression */ || kind === 176 /* GetAccessor */ || kind === 272 /* ImportClause */ || kind === 270 /* ImportEqualsDeclaration */ || kind === 275 /* ImportSpecifier */ || kind === 263 /* InterfaceDeclaration */ || kind === 290 /* JsxAttribute */ || kind === 173 /* MethodDeclaration */ || kind === 172 /* MethodSignature */ || kind === 266 /* ModuleDeclaration */ || kind === 269 /* NamespaceExportDeclaration */ || kind === 273 /* NamespaceImport */ || kind === 279 /* NamespaceExport */ || kind === 168 /* Parameter */ || kind === 302 /* PropertyAssignment */ || kind === 171 /* PropertyDeclaration */ || kind === 170 /* PropertySignature */ || kind === 177 /* SetAccessor */ || kind === 303 /* ShorthandPropertyAssignment */ || kind === 264 /* TypeAliasDeclaration */ || kind === 167 /* TypeParameter */ || kind === 259 /* VariableDeclaration */ || kind === 352 /* JSDocTypedefTag */ || kind === 344 /* JSDocCallbackTag */ || kind === 354 /* JSDocPropertyTag */; + return kind === 219 /* ArrowFunction */ || kind === 208 /* BindingElement */ || kind === 263 /* ClassDeclaration */ || kind === 231 /* ClassExpression */ || kind === 175 /* ClassStaticBlockDeclaration */ || kind === 176 /* Constructor */ || kind === 266 /* EnumDeclaration */ || kind === 306 /* EnumMember */ || kind === 281 /* ExportSpecifier */ || kind === 262 /* FunctionDeclaration */ || kind === 218 /* FunctionExpression */ || kind === 177 /* GetAccessor */ || kind === 273 /* ImportClause */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 276 /* ImportSpecifier */ || kind === 264 /* InterfaceDeclaration */ || kind === 291 /* JsxAttribute */ || kind === 174 /* MethodDeclaration */ || kind === 173 /* MethodSignature */ || kind === 267 /* ModuleDeclaration */ || kind === 270 /* NamespaceExportDeclaration */ || kind === 274 /* NamespaceImport */ || kind === 280 /* NamespaceExport */ || kind === 169 /* Parameter */ || kind === 303 /* PropertyAssignment */ || kind === 172 /* PropertyDeclaration */ || kind === 171 /* PropertySignature */ || kind === 178 /* SetAccessor */ || kind === 304 /* ShorthandPropertyAssignment */ || kind === 265 /* TypeAliasDeclaration */ || kind === 168 /* TypeParameter */ || kind === 260 /* VariableDeclaration */ || kind === 353 /* JSDocTypedefTag */ || kind === 345 /* JSDocCallbackTag */ || kind === 355 /* JSDocPropertyTag */; } function isDeclarationStatementKind(kind) { - return kind === 261 /* FunctionDeclaration */ || kind === 281 /* MissingDeclaration */ || kind === 262 /* ClassDeclaration */ || kind === 263 /* InterfaceDeclaration */ || kind === 264 /* TypeAliasDeclaration */ || kind === 265 /* EnumDeclaration */ || kind === 266 /* ModuleDeclaration */ || kind === 271 /* ImportDeclaration */ || kind === 270 /* ImportEqualsDeclaration */ || kind === 277 /* ExportDeclaration */ || kind === 276 /* ExportAssignment */ || kind === 269 /* NamespaceExportDeclaration */; + return kind === 262 /* FunctionDeclaration */ || kind === 282 /* MissingDeclaration */ || kind === 263 /* ClassDeclaration */ || kind === 264 /* InterfaceDeclaration */ || kind === 265 /* TypeAliasDeclaration */ || kind === 266 /* EnumDeclaration */ || kind === 267 /* ModuleDeclaration */ || kind === 272 /* ImportDeclaration */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 278 /* ExportDeclaration */ || kind === 277 /* ExportAssignment */ || kind === 270 /* NamespaceExportDeclaration */; } function isStatementKindButNotDeclarationKind(kind) { - return kind === 251 /* BreakStatement */ || kind === 250 /* ContinueStatement */ || kind === 258 /* DebuggerStatement */ || kind === 245 /* DoStatement */ || kind === 243 /* ExpressionStatement */ || kind === 241 /* EmptyStatement */ || kind === 248 /* ForInStatement */ || kind === 249 /* ForOfStatement */ || kind === 247 /* ForStatement */ || kind === 244 /* IfStatement */ || kind === 255 /* LabeledStatement */ || kind === 252 /* ReturnStatement */ || kind === 254 /* SwitchStatement */ || kind === 256 /* ThrowStatement */ || kind === 257 /* TryStatement */ || kind === 242 /* VariableStatement */ || kind === 246 /* WhileStatement */ || kind === 253 /* WithStatement */ || kind === 358 /* NotEmittedStatement */; + return kind === 252 /* BreakStatement */ || kind === 251 /* ContinueStatement */ || kind === 259 /* DebuggerStatement */ || kind === 246 /* DoStatement */ || kind === 244 /* ExpressionStatement */ || kind === 242 /* EmptyStatement */ || kind === 249 /* ForInStatement */ || kind === 250 /* ForOfStatement */ || kind === 248 /* ForStatement */ || kind === 245 /* IfStatement */ || kind === 256 /* LabeledStatement */ || kind === 253 /* ReturnStatement */ || kind === 255 /* SwitchStatement */ || kind === 257 /* ThrowStatement */ || kind === 258 /* TryStatement */ || kind === 243 /* VariableStatement */ || kind === 247 /* WhileStatement */ || kind === 254 /* WithStatement */ || kind === 359 /* NotEmittedStatement */; } function isDeclaration(node) { - if (node.kind === 167 /* TypeParameter */) { - return node.parent && node.parent.kind !== 351 /* JSDocTemplateTag */ || isInJSFile(node); + if (node.kind === 168 /* TypeParameter */) { + return node.parent && node.parent.kind !== 352 /* JSDocTemplateTag */ || isInJSFile(node); } return isDeclarationKind(node.kind); } @@ -12673,10 +12712,10 @@ ${lanes.join("\n")} return isStatementKindButNotDeclarationKind(kind) || isDeclarationStatementKind(kind) || isBlockStatement(node); } function isBlockStatement(node) { - if (node.kind !== 240 /* Block */) + if (node.kind !== 241 /* Block */) return false; if (node.parent !== void 0) { - if (node.parent.kind === 257 /* TryStatement */ || node.parent.kind === 298 /* CatchClause */) { + if (node.parent.kind === 258 /* TryStatement */ || node.parent.kind === 299 /* CatchClause */) { return false; } } @@ -12684,50 +12723,50 @@ ${lanes.join("\n")} } function isStatementOrBlock(node) { const kind = node.kind; - return isStatementKindButNotDeclarationKind(kind) || isDeclarationStatementKind(kind) || kind === 240 /* Block */; + return isStatementKindButNotDeclarationKind(kind) || isDeclarationStatementKind(kind) || kind === 241 /* Block */; } function isModuleReference(node) { const kind = node.kind; - return kind === 282 /* ExternalModuleReference */ || kind === 165 /* QualifiedName */ || kind === 80 /* Identifier */; + return kind === 283 /* ExternalModuleReference */ || kind === 166 /* QualifiedName */ || kind === 80 /* Identifier */; } function isJsxTagNameExpression(node) { const kind = node.kind; - return kind === 110 /* ThisKeyword */ || kind === 80 /* Identifier */ || kind === 210 /* PropertyAccessExpression */ || kind === 294 /* JsxNamespacedName */; + return kind === 110 /* ThisKeyword */ || kind === 80 /* Identifier */ || kind === 211 /* PropertyAccessExpression */ || kind === 295 /* JsxNamespacedName */; } function isJsxChild(node) { const kind = node.kind; - return kind === 283 /* JsxElement */ || kind === 293 /* JsxExpression */ || kind === 284 /* JsxSelfClosingElement */ || kind === 12 /* JsxText */ || kind === 287 /* JsxFragment */; + return kind === 284 /* JsxElement */ || kind === 294 /* JsxExpression */ || kind === 285 /* JsxSelfClosingElement */ || kind === 12 /* JsxText */ || kind === 288 /* JsxFragment */; } function isJsxAttributeLike(node) { const kind = node.kind; - return kind === 290 /* JsxAttribute */ || kind === 292 /* JsxSpreadAttribute */; + return kind === 291 /* JsxAttribute */ || kind === 293 /* JsxSpreadAttribute */; } function isStringLiteralOrJsxExpression(node) { const kind = node.kind; - return kind === 11 /* StringLiteral */ || kind === 293 /* JsxExpression */; + return kind === 11 /* StringLiteral */ || kind === 294 /* JsxExpression */; } function isJsxOpeningLikeElement(node) { const kind = node.kind; - return kind === 285 /* JsxOpeningElement */ || kind === 284 /* JsxSelfClosingElement */; + return kind === 286 /* JsxOpeningElement */ || kind === 285 /* JsxSelfClosingElement */; } function isCaseOrDefaultClause(node) { const kind = node.kind; - return kind === 295 /* CaseClause */ || kind === 296 /* DefaultClause */; + return kind === 296 /* CaseClause */ || kind === 297 /* DefaultClause */; } function isJSDocNode(node) { - return node.kind >= 315 /* FirstJSDocNode */ && node.kind <= 356 /* LastJSDocNode */; + return node.kind >= 316 /* FirstJSDocNode */ && node.kind <= 357 /* LastJSDocNode */; } function isJSDocCommentContainingNode(node) { - return node.kind === 326 /* JSDoc */ || node.kind === 325 /* JSDocNamepathType */ || node.kind === 327 /* JSDocText */ || isJSDocLinkLike(node) || isJSDocTag(node) || isJSDocTypeLiteral(node) || isJSDocSignature(node); + return node.kind === 327 /* JSDoc */ || node.kind === 326 /* JSDocNamepathType */ || node.kind === 328 /* JSDocText */ || isJSDocLinkLike(node) || isJSDocTag(node) || isJSDocTypeLiteral(node) || isJSDocSignature(node); } function isJSDocTag(node) { - return node.kind >= 333 /* FirstJSDocTagNode */ && node.kind <= 356 /* LastJSDocTagNode */; + return node.kind >= 334 /* FirstJSDocTagNode */ && node.kind <= 357 /* LastJSDocTagNode */; } function isSetAccessor(node) { - return node.kind === 177 /* SetAccessor */; + return node.kind === 178 /* SetAccessor */; } function isGetAccessor(node) { - return node.kind === 176 /* GetAccessor */; + return node.kind === 177 /* GetAccessor */; } function hasJSDocNodes(node) { if (!canHaveJSDoc(node)) @@ -12743,22 +12782,22 @@ ${lanes.join("\n")} } function hasOnlyExpressionInitializer(node) { switch (node.kind) { - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 207 /* BindingElement */: - case 171 /* PropertyDeclaration */: - case 302 /* PropertyAssignment */: - case 305 /* EnumMember */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 208 /* BindingElement */: + case 172 /* PropertyDeclaration */: + case 303 /* PropertyAssignment */: + case 306 /* EnumMember */: return true; default: return false; } } function isObjectLiteralElement(node) { - return node.kind === 290 /* JsxAttribute */ || node.kind === 292 /* JsxSpreadAttribute */ || isObjectLiteralElementLike(node); + return node.kind === 291 /* JsxAttribute */ || node.kind === 293 /* JsxSpreadAttribute */ || isObjectLiteralElementLike(node); } function isTypeReferenceType(node) { - return node.kind === 182 /* TypeReference */ || node.kind === 232 /* ExpressionWithTypeArguments */; + return node.kind === 183 /* TypeReference */ || node.kind === 233 /* ExpressionWithTypeArguments */; } function guessIndentation(lines) { let indentation = MAX_SMI_X86; @@ -12785,7 +12824,7 @@ ${lanes.join("\n")} return node.kind === 11 /* StringLiteral */ || node.kind === 15 /* NoSubstitutionTemplateLiteral */; } function isJSDocLinkLike(node) { - return node.kind === 330 /* JSDocLink */ || node.kind === 331 /* JSDocLinkCode */ || node.kind === 332 /* JSDocLinkPlain */; + return node.kind === 331 /* JSDocLink */ || node.kind === 332 /* JSDocLinkCode */ || node.kind === 333 /* JSDocLinkPlain */; } function hasRestParameter(s) { const last2 = lastOrUndefined(s.parameters); @@ -12793,7 +12832,7 @@ ${lanes.join("\n")} } function isRestParameter(node) { const type = isJSDocParameterTag(node) ? node.typeExpression && node.typeExpression.type : node.type; - return node.dotDotDotToken !== void 0 || !!type && type.kind === 324 /* JSDocVariadicType */; + return node.dotDotDotToken !== void 0 || !!type && type.kind === 325 /* JSDocVariadicType */; } var unchangedTextChangeRange, supportedLocaleDirectories, MAX_SMI_X86; var init_utilitiesPublic = __esm({ @@ -13015,19 +13054,19 @@ ${lanes.join("\n")} } function containsParseError(node) { aggregateChildData(node); - return (node.flags & 524288 /* ThisNodeOrAnySubNodesHasError */) !== 0; + return (node.flags & 1048576 /* ThisNodeOrAnySubNodesHasError */) !== 0; } function aggregateChildData(node) { - if (!(node.flags & 1048576 /* HasAggregatedChildData */)) { - const thisNodeOrAnySubNodesHasError = (node.flags & 131072 /* ThisNodeHasError */) !== 0 || forEachChild(node, containsParseError); + if (!(node.flags & 2097152 /* HasAggregatedChildData */)) { + const thisNodeOrAnySubNodesHasError = (node.flags & 262144 /* ThisNodeHasError */) !== 0 || forEachChild(node, containsParseError); if (thisNodeOrAnySubNodesHasError) { - node.flags |= 524288 /* ThisNodeOrAnySubNodesHasError */; + node.flags |= 1048576 /* ThisNodeOrAnySubNodesHasError */; } - node.flags |= 1048576 /* HasAggregatedChildData */; + node.flags |= 2097152 /* HasAggregatedChildData */; } } function getSourceFileOfNode(node) { - while (node && node.kind !== 311 /* SourceFile */) { + while (node && node.kind !== 312 /* SourceFile */) { node = node.parent; } return node; @@ -13040,11 +13079,11 @@ ${lanes.join("\n")} } function isStatementWithLocals(node) { switch (node.kind) { - case 240 /* Block */: - case 268 /* CaseBlock */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: + case 241 /* Block */: + case 269 /* CaseBlock */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: return true; } return false; @@ -13203,7 +13242,7 @@ ${lanes.join("\n")} if (includeJsDoc && hasJSDocNodes(node)) { return getTokenPosOfNode(node.jsDoc[0], sourceFile); } - if (node.kind === 357 /* SyntaxList */ && node._children.length > 0) { + if (node.kind === 358 /* SyntaxList */ && node._children.length > 0) { return getTokenPosOfNode(node._children[0], sourceFile, includeJsDoc); } return skipTrivia( @@ -13718,11 +13757,11 @@ ${lanes.join("\n")} return getBaseFileName(moduleName).replace(/^(\d)/, "_$1").replace(/\W/g, "_"); } function isBlockOrCatchScoped(declaration) { - return (getCombinedNodeFlags(declaration) & 3 /* BlockScoped */) !== 0 || isCatchClauseVariableDeclarationOrBindingElement(declaration); + return (getCombinedNodeFlags(declaration) & 7 /* BlockScoped */) !== 0 || isCatchClauseVariableDeclarationOrBindingElement(declaration); } function isCatchClauseVariableDeclarationOrBindingElement(declaration) { const node = getRootDeclaration(declaration); - return node.kind === 259 /* VariableDeclaration */ && node.parent.kind === 298 /* CatchClause */; + return node.kind === 260 /* VariableDeclaration */ && node.parent.kind === 299 /* CatchClause */; } function isAmbientModule(node) { return isModuleDeclaration(node) && (node.name.kind === 11 /* StringLiteral */ || isGlobalScopeAugmentation(node)); @@ -13740,22 +13779,22 @@ ${lanes.join("\n")} return isShorthandAmbientModule(moduleSymbol.valueDeclaration); } function isShorthandAmbientModule(node) { - return !!node && node.kind === 266 /* ModuleDeclaration */ && !node.body; + return !!node && node.kind === 267 /* ModuleDeclaration */ && !node.body; } function isBlockScopedContainerTopLevel(node) { - return node.kind === 311 /* SourceFile */ || node.kind === 266 /* ModuleDeclaration */ || isFunctionLikeOrClassStaticBlockDeclaration(node); + return node.kind === 312 /* SourceFile */ || node.kind === 267 /* ModuleDeclaration */ || isFunctionLikeOrClassStaticBlockDeclaration(node); } function isGlobalScopeAugmentation(module2) { - return !!(module2.flags & 1024 /* GlobalAugmentation */); + return !!(module2.flags & 2048 /* GlobalAugmentation */); } function isExternalModuleAugmentation(node) { return isAmbientModule(node) && isModuleAugmentationExternal(node); } function isModuleAugmentationExternal(node) { switch (node.parent.kind) { - case 311 /* SourceFile */: + case 312 /* SourceFile */: return isExternalModule(node.parent); - case 267 /* ModuleBlock */: + case 268 /* ModuleBlock */: return isAmbientModule(node.parent.parent) && isSourceFile(node.parent.parent.parent) && !isExternalModule(node.parent.parent.parent); } return false; @@ -13798,28 +13837,28 @@ ${lanes.join("\n")} return false; } function isAmbientPropertyDeclaration(node) { - return !!(node.flags & 16777216 /* Ambient */) || hasSyntacticModifier(node, 2 /* Ambient */); + return !!(node.flags & 33554432 /* Ambient */) || hasSyntacticModifier(node, 2 /* Ambient */); } function isBlockScope(node, parentNode) { switch (node.kind) { - case 311 /* SourceFile */: - case 268 /* CaseBlock */: - case 298 /* CatchClause */: - case 266 /* ModuleDeclaration */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 175 /* Constructor */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 171 /* PropertyDeclaration */: - case 174 /* ClassStaticBlockDeclaration */: + case 312 /* SourceFile */: + case 269 /* CaseBlock */: + case 299 /* CatchClause */: + case 267 /* ModuleDeclaration */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 172 /* PropertyDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: return true; - case 240 /* Block */: + case 241 /* Block */: return !isFunctionLikeOrClassStaticBlockDeclaration(parentNode); } return false; @@ -13827,9 +13866,9 @@ ${lanes.join("\n")} function isDeclarationWithTypeParameters(node) { Debug.type(node); switch (node.kind) { - case 344 /* JSDocCallbackTag */: - case 352 /* JSDocTypedefTag */: - case 329 /* JSDocSignature */: + case 345 /* JSDocCallbackTag */: + case 353 /* JSDocTypedefTag */: + case 330 /* JSDocSignature */: return true; default: assertType(node); @@ -13839,25 +13878,25 @@ ${lanes.join("\n")} function isDeclarationWithTypeParameterChildren(node) { Debug.type(node); switch (node.kind) { - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 172 /* MethodSignature */: - case 180 /* IndexSignature */: - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 323 /* JSDocFunctionType */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 351 /* JSDocTemplateTag */: - case 261 /* FunctionDeclaration */: - case 173 /* MethodDeclaration */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 173 /* MethodSignature */: + case 181 /* IndexSignature */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 324 /* JSDocFunctionType */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 352 /* JSDocTemplateTag */: + case 262 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return true; default: assertType(node); @@ -13866,8 +13905,8 @@ ${lanes.join("\n")} } function isAnyImportSyntax(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: - case 270 /* ImportEqualsDeclaration */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: return true; default: return false; @@ -13878,15 +13917,15 @@ ${lanes.join("\n")} } function isLateVisibilityPaintedStatement(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: - case 270 /* ImportEqualsDeclaration */: - case 242 /* VariableStatement */: - case 262 /* ClassDeclaration */: - case 261 /* FunctionDeclaration */: - case 266 /* ModuleDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 243 /* VariableStatement */: + case 263 /* ClassDeclaration */: + case 262 /* FunctionDeclaration */: + case 267 /* ModuleDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: return true; default: return false; @@ -13898,6 +13937,9 @@ ${lanes.join("\n")} function isAnyImportOrReExport(node) { return isAnyImportSyntax(node) || isExportDeclaration(node); } + function getEnclosingContainer(node) { + return findAncestor(node.parent, (n) => !!(getContainerFlags(n) & 1 /* IsContainer */)); + } function getEnclosingBlockScopeContainer(node) { return findAncestor(node.parent, (current) => isBlockScope(current, current.parent)); } @@ -13915,7 +13957,7 @@ ${lanes.join("\n")} return info.declaration ? declarationNameToString(info.declaration.parameters[0].name) : void 0; } function isComputedNonLiteralName(name) { - return name.kind === 166 /* ComputedPropertyName */ && !isStringOrNumericLiteralLike(name.expression); + return name.kind === 167 /* ComputedPropertyName */ && !isStringOrNumericLiteralLike(name.expression); } function tryGetTextOfPropertyName(name) { var _a; @@ -13927,11 +13969,11 @@ ${lanes.join("\n")} case 9 /* NumericLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: return escapeLeadingUnderscores(name.text); - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: if (isStringOrNumericLiteralLike(name.expression)) return escapeLeadingUnderscores(name.expression.text); return void 0; - case 294 /* JsxNamespacedName */: + case 295 /* JsxNamespacedName */: return getEscapedTextOfJsxNamespacedName(name); default: return Debug.assertNever(name); @@ -13947,17 +13989,17 @@ ${lanes.join("\n")} case 81 /* PrivateIdentifier */: case 80 /* Identifier */: return getFullWidth(name) === 0 ? idText(name) : getTextOfNode(name); - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: return entityNameToString(name.left) + "." + entityNameToString(name.right); - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: if (isIdentifier(name.name) || isPrivateIdentifier(name.name)) { return entityNameToString(name.expression) + "." + entityNameToString(name.name); } else { return Debug.assertNever(name.name); } - case 317 /* JSDocMemberName */: + case 318 /* JSDocMemberName */: return entityNameToString(name.left) + entityNameToString(name.right); - case 294 /* JsxNamespacedName */: + case 295 /* JsxNamespacedName */: return entityNameToString(name.namespace) + ":" + entityNameToString(name.name); default: return Debug.assertNever(name); @@ -14063,7 +14105,7 @@ ${lanes.join("\n")} } function getErrorSpanForArrowFunction(sourceFile, node) { const pos = skipTrivia(sourceFile.text, node.pos); - if (node.body && node.body.kind === 240 /* Block */) { + if (node.body && node.body.kind === 241 /* Block */) { const { line: startLine } = getLineAndCharacterOfPosition(sourceFile, node.body.pos); const { line: endLine } = getLineAndCharacterOfPosition(sourceFile, node.body.end); if (startLine < endLine) { @@ -14075,7 +14117,7 @@ ${lanes.join("\n")} function getErrorSpanForNode(sourceFile, node) { let errorNode = node; switch (node.kind) { - case 311 /* SourceFile */: { + case 312 /* SourceFile */: { const pos2 = skipTrivia( sourceFile.text, 0, @@ -14087,43 +14129,43 @@ ${lanes.join("\n")} } return getSpanOfTokenAtPosition(sourceFile, pos2); } - case 259 /* VariableDeclaration */: - case 207 /* BindingElement */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 266 /* ModuleDeclaration */: - case 265 /* EnumDeclaration */: - case 305 /* EnumMember */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 264 /* TypeAliasDeclaration */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 273 /* NamespaceImport */: + case 260 /* VariableDeclaration */: + case 208 /* BindingElement */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 267 /* ModuleDeclaration */: + case 266 /* EnumDeclaration */: + case 306 /* EnumMember */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 265 /* TypeAliasDeclaration */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 274 /* NamespaceImport */: errorNode = node.name; break; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return getErrorSpanForArrowFunction(sourceFile, node); - case 295 /* CaseClause */: - case 296 /* DefaultClause */: { + case 296 /* CaseClause */: + case 297 /* DefaultClause */: { const start = skipTrivia(sourceFile.text, node.pos); const end = node.statements.length > 0 ? node.statements[0].pos : node.end; return createTextSpanFromBounds(start, end); } - case 252 /* ReturnStatement */: - case 228 /* YieldExpression */: { + case 253 /* ReturnStatement */: + case 229 /* YieldExpression */: { const pos2 = skipTrivia(sourceFile.text, node.pos); return getSpanOfTokenAtPosition(sourceFile, pos2); } - case 237 /* SatisfiesExpression */: { + case 238 /* SatisfiesExpression */: { const pos2 = skipTrivia(sourceFile.text, node.expression.end); return getSpanOfTokenAtPosition(sourceFile, pos2); } - case 356 /* JSDocSatisfiesTag */: { + case 357 /* JSDocSatisfiesTag */: { const pos2 = skipTrivia(sourceFile.text, node.tagName.pos); return getSpanOfTokenAtPosition(sourceFile, pos2); } @@ -14155,17 +14197,23 @@ ${lanes.join("\n")} function isDeclarationReadonly(declaration) { return !!(getCombinedModifierFlags(declaration) & 64 /* Readonly */ && !isParameterPropertyDeclaration(declaration, declaration.parent)); } + function isVarAwaitUsing(node) { + return (getCombinedNodeFlags(node) & 7 /* BlockScoped */) === 6 /* AwaitUsing */; + } + function isVarUsing(node) { + return (getCombinedNodeFlags(node) & 7 /* BlockScoped */) === 4 /* Using */; + } function isVarConst(node) { - return !!(getCombinedNodeFlags(node) & 2 /* Const */); + return (getCombinedNodeFlags(node) & 7 /* BlockScoped */) === 2 /* Const */; } function isLet(node) { - return !!(getCombinedNodeFlags(node) & 1 /* Let */); + return (getCombinedNodeFlags(node) & 7 /* BlockScoped */) === 1 /* Let */; } function isSuperCall(n) { - return n.kind === 212 /* CallExpression */ && n.expression.kind === 108 /* SuperKeyword */; + return n.kind === 213 /* CallExpression */ && n.expression.kind === 108 /* SuperKeyword */; } function isImportCall(n) { - return n.kind === 212 /* CallExpression */ && n.expression.kind === 102 /* ImportKeyword */; + return n.kind === 213 /* CallExpression */ && n.expression.kind === 102 /* ImportKeyword */; } function isImportMeta(n) { return isMetaProperty(n) && n.keywordToken === 102 /* ImportKeyword */ && n.name.escapedText === "meta"; @@ -14174,7 +14222,7 @@ ${lanes.join("\n")} return isImportTypeNode(n) && isLiteralTypeNode(n.argument) && isStringLiteral(n.argument.literal); } function isPrologueDirective(node) { - return node.kind === 243 /* ExpressionStatement */ && node.expression.kind === 11 /* StringLiteral */; + return node.kind === 244 /* ExpressionStatement */ && node.expression.kind === 11 /* StringLiteral */; } function isCustomPrologue(node) { return !!(getEmitFlags(node) & 2097152 /* CustomPrologue */); @@ -14192,18 +14240,18 @@ ${lanes.join("\n")} return node.kind !== 12 /* JsxText */ ? getLeadingCommentRanges(sourceFileOfNode.text, node.pos) : void 0; } function getJSDocCommentRanges(node, text) { - const commentRanges = node.kind === 168 /* Parameter */ || node.kind === 167 /* TypeParameter */ || node.kind === 217 /* FunctionExpression */ || node.kind === 218 /* ArrowFunction */ || node.kind === 216 /* ParenthesizedExpression */ || node.kind === 259 /* VariableDeclaration */ || node.kind === 280 /* ExportSpecifier */ ? concatenate(getTrailingCommentRanges(text, node.pos), getLeadingCommentRanges(text, node.pos)) : getLeadingCommentRanges(text, node.pos); + const commentRanges = node.kind === 169 /* Parameter */ || node.kind === 168 /* TypeParameter */ || node.kind === 218 /* FunctionExpression */ || node.kind === 219 /* ArrowFunction */ || node.kind === 217 /* ParenthesizedExpression */ || node.kind === 260 /* VariableDeclaration */ || node.kind === 281 /* ExportSpecifier */ ? concatenate(getTrailingCommentRanges(text, node.pos), getLeadingCommentRanges(text, node.pos)) : getLeadingCommentRanges(text, node.pos); return filter(commentRanges, (comment) => text.charCodeAt(comment.pos + 1) === 42 /* asterisk */ && text.charCodeAt(comment.pos + 2) === 42 /* asterisk */ && text.charCodeAt(comment.pos + 3) !== 47 /* slash */); } function isPartOfTypeNode(node) { - if (181 /* FirstTypeNode */ <= node.kind && node.kind <= 204 /* LastTypeNode */) { + if (182 /* FirstTypeNode */ <= node.kind && node.kind <= 205 /* LastTypeNode */) { return true; } switch (node.kind) { case 133 /* AnyKeyword */: case 159 /* UnknownKeyword */: case 150 /* NumberKeyword */: - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: case 154 /* StringKeyword */: case 136 /* BooleanKeyword */: case 155 /* SymbolKeyword */: @@ -14213,64 +14261,64 @@ ${lanes.join("\n")} case 146 /* NeverKeyword */: return true; case 116 /* VoidKeyword */: - return node.parent.kind !== 221 /* VoidExpression */; - case 232 /* ExpressionWithTypeArguments */: + return node.parent.kind !== 222 /* VoidExpression */; + case 233 /* ExpressionWithTypeArguments */: return isHeritageClause(node.parent) && !isExpressionWithTypeArgumentsInClassExtendsClause(node); - case 167 /* TypeParameter */: - return node.parent.kind === 199 /* MappedType */ || node.parent.kind === 194 /* InferType */; + case 168 /* TypeParameter */: + return node.parent.kind === 200 /* MappedType */ || node.parent.kind === 195 /* InferType */; case 80 /* Identifier */: - if (node.parent.kind === 165 /* QualifiedName */ && node.parent.right === node) { + if (node.parent.kind === 166 /* QualifiedName */ && node.parent.right === node) { node = node.parent; - } else if (node.parent.kind === 210 /* PropertyAccessExpression */ && node.parent.name === node) { + } else if (node.parent.kind === 211 /* PropertyAccessExpression */ && node.parent.name === node) { node = node.parent; } Debug.assert( - node.kind === 80 /* Identifier */ || node.kind === 165 /* QualifiedName */ || node.kind === 210 /* PropertyAccessExpression */, + node.kind === 80 /* Identifier */ || node.kind === 166 /* QualifiedName */ || node.kind === 211 /* PropertyAccessExpression */, "'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'." ); - case 165 /* QualifiedName */: - case 210 /* PropertyAccessExpression */: + case 166 /* QualifiedName */: + case 211 /* PropertyAccessExpression */: case 110 /* ThisKeyword */: { const { parent: parent2 } = node; - if (parent2.kind === 185 /* TypeQuery */) { + if (parent2.kind === 186 /* TypeQuery */) { return false; } - if (parent2.kind === 204 /* ImportType */) { + if (parent2.kind === 205 /* ImportType */) { return !parent2.isTypeOf; } - if (181 /* FirstTypeNode */ <= parent2.kind && parent2.kind <= 204 /* LastTypeNode */) { + if (182 /* FirstTypeNode */ <= parent2.kind && parent2.kind <= 205 /* LastTypeNode */) { return true; } switch (parent2.kind) { - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return isHeritageClause(parent2.parent) && !isExpressionWithTypeArgumentsInClassExtendsClause(parent2); - case 167 /* TypeParameter */: + case 168 /* TypeParameter */: return node === parent2.constraint; - case 351 /* JSDocTemplateTag */: + case 352 /* JSDocTemplateTag */: return node === parent2.constraint; - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 168 /* Parameter */: - case 259 /* VariableDeclaration */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 169 /* Parameter */: + case 260 /* VariableDeclaration */: return node === parent2.type; - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 175 /* Constructor */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return node === parent2.type; - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 180 /* IndexSignature */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 181 /* IndexSignature */: return node === parent2.type; - case 215 /* TypeAssertionExpression */: + case 216 /* TypeAssertionExpression */: return node === parent2.type; - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 214 /* TaggedTemplateExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 215 /* TaggedTemplateExpression */: return contains(parent2.typeArguments, node); } } @@ -14290,23 +14338,23 @@ ${lanes.join("\n")} return traverse(body); function traverse(node) { switch (node.kind) { - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: return visitor(node); - case 268 /* CaseBlock */: - case 240 /* Block */: - case 244 /* IfStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 253 /* WithStatement */: - case 254 /* SwitchStatement */: - case 295 /* CaseClause */: - case 296 /* DefaultClause */: - case 255 /* LabeledStatement */: - case 257 /* TryStatement */: - case 298 /* CatchClause */: + case 269 /* CaseBlock */: + case 241 /* Block */: + case 245 /* IfStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 254 /* WithStatement */: + case 255 /* SwitchStatement */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: + case 256 /* LabeledStatement */: + case 258 /* TryStatement */: + case 299 /* CatchClause */: return forEachChild(node, traverse); } } @@ -14315,21 +14363,21 @@ ${lanes.join("\n")} return traverse(body); function traverse(node) { switch (node.kind) { - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: visitor(node); const operand = node.expression; if (operand) { traverse(operand); } return; - case 265 /* EnumDeclaration */: - case 263 /* InterfaceDeclaration */: - case 266 /* ModuleDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 266 /* EnumDeclaration */: + case 264 /* InterfaceDeclaration */: + case 267 /* ModuleDeclaration */: + case 265 /* TypeAliasDeclaration */: return; default: if (isFunctionLike(node)) { - if (node.name && node.name.kind === 166 /* ComputedPropertyName */) { + if (node.name && node.name.kind === 167 /* ComputedPropertyName */) { traverse(node.name.expression); return; } @@ -14340,9 +14388,9 @@ ${lanes.join("\n")} } } function getRestParameterElementType(node) { - if (node && node.kind === 187 /* ArrayType */) { + if (node && node.kind === 188 /* ArrayType */) { return node.elementType; - } else if (node && node.kind === 182 /* TypeReference */) { + } else if (node && node.kind === 183 /* TypeReference */) { return singleOrUndefined(node.typeArguments); } else { return void 0; @@ -14350,26 +14398,26 @@ ${lanes.join("\n")} } function getMembersOfDeclaration(node) { switch (node.kind) { - case 263 /* InterfaceDeclaration */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 186 /* TypeLiteral */: + case 264 /* InterfaceDeclaration */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 187 /* TypeLiteral */: return node.members; - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return node.properties; } } function isVariableLike(node) { if (node) { switch (node.kind) { - case 207 /* BindingElement */: - case 305 /* EnumMember */: - case 168 /* Parameter */: - case 302 /* PropertyAssignment */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 303 /* ShorthandPropertyAssignment */: - case 259 /* VariableDeclaration */: + case 208 /* BindingElement */: + case 306 /* EnumMember */: + case 169 /* Parameter */: + case 303 /* PropertyAssignment */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 304 /* ShorthandPropertyAssignment */: + case 260 /* VariableDeclaration */: return true; } } @@ -14379,7 +14427,7 @@ ${lanes.join("\n")} return isVariableLike(node) || isAccessor(node); } function isVariableDeclarationInVariableStatement(node) { - return node.parent.kind === 260 /* VariableDeclarationList */ && node.parent.parent.kind === 242 /* VariableStatement */; + return node.parent.kind === 261 /* VariableDeclarationList */ && node.parent.parent.kind === 243 /* VariableStatement */; } function isCommonJsExportedExpression(node) { if (!isInJSFile(node)) @@ -14396,13 +14444,13 @@ ${lanes.join("\n")} } function introducesArgumentsExoticObject(node) { switch (node.kind) { - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: return true; } return false; @@ -14412,20 +14460,20 @@ ${lanes.join("\n")} if (beforeUnwrapLabelCallback) { beforeUnwrapLabelCallback(node); } - if (node.statement.kind !== 255 /* LabeledStatement */) { + if (node.statement.kind !== 256 /* LabeledStatement */) { return node.statement; } node = node.statement; } } function isFunctionBlock(node) { - return node && node.kind === 240 /* Block */ && isFunctionLike(node.parent); + return node && node.kind === 241 /* Block */ && isFunctionLike(node.parent); } function isObjectLiteralMethod(node) { - return node && node.kind === 173 /* MethodDeclaration */ && node.parent.kind === 209 /* ObjectLiteralExpression */; + return node && node.kind === 174 /* MethodDeclaration */ && node.parent.kind === 210 /* ObjectLiteralExpression */; } function isObjectLiteralOrClassExpressionMethodOrAccessor(node) { - return (node.kind === 173 /* MethodDeclaration */ || node.kind === 176 /* GetAccessor */ || node.kind === 177 /* SetAccessor */) && (node.parent.kind === 209 /* ObjectLiteralExpression */ || node.parent.kind === 230 /* ClassExpression */); + return (node.kind === 174 /* MethodDeclaration */ || node.kind === 177 /* GetAccessor */ || node.kind === 178 /* SetAccessor */) && (node.parent.kind === 210 /* ObjectLiteralExpression */ || node.parent.kind === 231 /* ClassExpression */); } function isIdentifierTypePredicate(predicate) { return predicate && predicate.kind === 1 /* Identifier */; @@ -14480,64 +14528,68 @@ ${lanes.join("\n")} function getContainingFunctionOrClassStaticBlock(node) { return findAncestor(node.parent, isFunctionLikeOrClassStaticBlockDeclaration); } + function getContainingClassExcludingClassDecorators(node) { + const decorator = findAncestor(node.parent, (n) => isClassLike(n) ? "quit" : isDecorator(n)); + return decorator && isClassLike(decorator.parent) ? getContainingClass(decorator.parent) : getContainingClass(decorator ?? node); + } function getThisContainer(node, includeArrowFunctions, includeClassComputedPropertyName) { - Debug.assert(node.kind !== 311 /* SourceFile */); + Debug.assert(node.kind !== 312 /* SourceFile */); while (true) { node = node.parent; if (!node) { return Debug.fail(); } switch (node.kind) { - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: if (includeClassComputedPropertyName && isClassLike(node.parent.parent)) { return node; } node = node.parent.parent; break; - case 169 /* Decorator */: - if (node.parent.kind === 168 /* Parameter */ && isClassElement(node.parent.parent)) { + case 170 /* Decorator */: + if (node.parent.kind === 169 /* Parameter */ && isClassElement(node.parent.parent)) { node = node.parent.parent; } else if (isClassElement(node.parent)) { node = node.parent; } break; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: if (!includeArrowFunctions) { continue; } - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 266 /* ModuleDeclaration */: - case 174 /* ClassStaticBlockDeclaration */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 180 /* IndexSignature */: - case 265 /* EnumDeclaration */: - case 311 /* SourceFile */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 267 /* ModuleDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 181 /* IndexSignature */: + case 266 /* EnumDeclaration */: + case 312 /* SourceFile */: return node; } } } function isThisContainerOrFunctionBlock(node) { switch (node.kind) { - case 218 /* ArrowFunction */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 171 /* PropertyDeclaration */: + case 219 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 172 /* PropertyDeclaration */: return true; - case 240 /* Block */: + case 241 /* Block */: switch (node.parent.kind) { - case 175 /* Constructor */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return true; default: return false; @@ -14569,9 +14621,9 @@ ${lanes.join("\n")} ); if (container) { switch (container.kind) { - case 175 /* Constructor */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 176 /* Constructor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: return container; } } @@ -14584,26 +14636,26 @@ ${lanes.join("\n")} return void 0; } switch (node.kind) { - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: node = node.parent; break; - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: if (!stopOnFunctions) { continue; } - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 174 /* ClassStaticBlockDeclaration */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 175 /* ClassStaticBlockDeclaration */: return node; - case 169 /* Decorator */: - if (node.parent.kind === 168 /* Parameter */ && isClassElement(node.parent.parent)) { + case 170 /* Decorator */: + if (node.parent.kind === 169 /* Parameter */ && isClassElement(node.parent.parent)) { node = node.parent.parent; } else if (isClassElement(node.parent)) { node = node.parent; @@ -14613,14 +14665,14 @@ ${lanes.join("\n")} } } function getImmediatelyInvokedFunctionExpression(func) { - if (func.kind === 217 /* FunctionExpression */ || func.kind === 218 /* ArrowFunction */) { + if (func.kind === 218 /* FunctionExpression */ || func.kind === 219 /* ArrowFunction */) { let prev = func; let parent2 = func.parent; - while (parent2.kind === 216 /* ParenthesizedExpression */) { + while (parent2.kind === 217 /* ParenthesizedExpression */) { prev = parent2; parent2 = parent2.parent; } - if (parent2.kind === 212 /* CallExpression */ && parent2.expression === prev) { + if (parent2.kind === 213 /* CallExpression */ && parent2.expression === prev) { return parent2; } } @@ -14630,11 +14682,11 @@ ${lanes.join("\n")} } function isSuperProperty(node) { const kind = node.kind; - return (kind === 210 /* PropertyAccessExpression */ || kind === 211 /* ElementAccessExpression */) && node.expression.kind === 108 /* SuperKeyword */; + return (kind === 211 /* PropertyAccessExpression */ || kind === 212 /* ElementAccessExpression */) && node.expression.kind === 108 /* SuperKeyword */; } function isThisProperty(node) { const kind = node.kind; - return (kind === 210 /* PropertyAccessExpression */ || kind === 211 /* ElementAccessExpression */) && node.expression.kind === 110 /* ThisKeyword */; + return (kind === 211 /* PropertyAccessExpression */ || kind === 212 /* ElementAccessExpression */) && node.expression.kind === 110 /* ThisKeyword */; } function isThisInitializedDeclaration(node) { var _a; @@ -14645,22 +14697,22 @@ ${lanes.join("\n")} } function getEntityNameFromTypeNode(node) { switch (node.kind) { - case 182 /* TypeReference */: + case 183 /* TypeReference */: return node.typeName; - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return isEntityNameExpression(node.expression) ? node.expression : void 0; case 80 /* Identifier */: - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: return node; } return void 0; } function getInvokedExpression(node) { switch (node.kind) { - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return node.tag; - case 285 /* JsxOpeningElement */: - case 284 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: return node.tagName; default: return node.expression; @@ -14671,20 +14723,20 @@ ${lanes.join("\n")} return false; } switch (node.kind) { - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return true; - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return !useLegacyDecorators; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return parent2 !== void 0 && (useLegacyDecorators ? isClassDeclaration(parent2) : isClassLike(parent2) && !hasAbstractModifier(node) && !hasAmbientModifier(node)); - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 173 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: return node.body !== void 0 && parent2 !== void 0 && (useLegacyDecorators ? isClassDeclaration(parent2) : isClassLike(parent2)); - case 168 /* Parameter */: + case 169 /* Parameter */: if (!useLegacyDecorators) return false; - return parent2 !== void 0 && parent2.body !== void 0 && (parent2.kind === 175 /* Constructor */ || parent2.kind === 173 /* MethodDeclaration */ || parent2.kind === 177 /* SetAccessor */) && getThisParameter(parent2) !== node && grandparent !== void 0 && grandparent.kind === 262 /* ClassDeclaration */; + return parent2 !== void 0 && parent2.body !== void 0 && (parent2.kind === 176 /* Constructor */ || parent2.kind === 174 /* MethodDeclaration */ || parent2.kind === 178 /* SetAccessor */) && getThisParameter(parent2) !== node && grandparent !== void 0 && grandparent.kind === 263 /* ClassDeclaration */; } return false; } @@ -14696,13 +14748,13 @@ ${lanes.join("\n")} } function childIsDecorated(useLegacyDecorators, node, parent2) { switch (node.kind) { - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return some(node.members, (m) => nodeOrChildIsDecorated(useLegacyDecorators, m, node, parent2)); - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return !useLegacyDecorators && some(node.members, (m) => nodeOrChildIsDecorated(useLegacyDecorators, m, node, parent2)); - case 173 /* MethodDeclaration */: - case 177 /* SetAccessor */: - case 175 /* Constructor */: + case 174 /* MethodDeclaration */: + case 178 /* SetAccessor */: + case 176 /* Constructor */: return some(node.parameters, (p) => nodeIsDecorated(useLegacyDecorators, p, node, parent2)); default: return false; @@ -14753,7 +14805,7 @@ ${lanes.join("\n")} } function isJSXTagName(node) { const { parent: parent2 } = node; - if (parent2.kind === 285 /* JsxOpeningElement */ || parent2.kind === 284 /* JsxSelfClosingElement */ || parent2.kind === 286 /* JsxClosingElement */) { + if (parent2.kind === 286 /* JsxOpeningElement */ || parent2.kind === 285 /* JsxSelfClosingElement */ || parent2.kind === 287 /* JsxClosingElement */) { return parent2.tagName === node; } return false; @@ -14765,54 +14817,54 @@ ${lanes.join("\n")} case 112 /* TrueKeyword */: case 97 /* FalseKeyword */: case 14 /* RegularExpressionLiteral */: - case 208 /* ArrayLiteralExpression */: - case 209 /* ObjectLiteralExpression */: - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 214 /* TaggedTemplateExpression */: - case 233 /* AsExpression */: - case 215 /* TypeAssertionExpression */: - case 237 /* SatisfiesExpression */: - case 234 /* NonNullExpression */: - case 216 /* ParenthesizedExpression */: - case 217 /* FunctionExpression */: - case 230 /* ClassExpression */: - case 218 /* ArrowFunction */: - case 221 /* VoidExpression */: - case 219 /* DeleteExpression */: - case 220 /* TypeOfExpression */: - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: - case 225 /* BinaryExpression */: - case 226 /* ConditionalExpression */: - case 229 /* SpreadElement */: - case 227 /* TemplateExpression */: - case 231 /* OmittedExpression */: - case 283 /* JsxElement */: - case 284 /* JsxSelfClosingElement */: - case 287 /* JsxFragment */: - case 228 /* YieldExpression */: - case 222 /* AwaitExpression */: - case 235 /* MetaProperty */: + case 209 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 215 /* TaggedTemplateExpression */: + case 234 /* AsExpression */: + case 216 /* TypeAssertionExpression */: + case 238 /* SatisfiesExpression */: + case 235 /* NonNullExpression */: + case 217 /* ParenthesizedExpression */: + case 218 /* FunctionExpression */: + case 231 /* ClassExpression */: + case 219 /* ArrowFunction */: + case 222 /* VoidExpression */: + case 220 /* DeleteExpression */: + case 221 /* TypeOfExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: + case 226 /* BinaryExpression */: + case 227 /* ConditionalExpression */: + case 230 /* SpreadElement */: + case 228 /* TemplateExpression */: + case 232 /* OmittedExpression */: + case 284 /* JsxElement */: + case 285 /* JsxSelfClosingElement */: + case 288 /* JsxFragment */: + case 229 /* YieldExpression */: + case 223 /* AwaitExpression */: + case 236 /* MetaProperty */: return true; - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return !isHeritageClause(node.parent) && !isJSDocAugmentsTag(node.parent); - case 165 /* QualifiedName */: - while (node.parent.kind === 165 /* QualifiedName */) { + case 166 /* QualifiedName */: + while (node.parent.kind === 166 /* QualifiedName */) { node = node.parent; } - return node.parent.kind === 185 /* TypeQuery */ || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node); - case 317 /* JSDocMemberName */: + return node.parent.kind === 186 /* TypeQuery */ || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node); + case 318 /* JSDocMemberName */: while (isJSDocMemberName(node.parent)) { node = node.parent; } - return node.parent.kind === 185 /* TypeQuery */ || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node); + return node.parent.kind === 186 /* TypeQuery */ || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node); case 81 /* PrivateIdentifier */: return isBinaryExpression(node.parent) && node.parent.left === node && node.parent.operatorToken.kind === 103 /* InKeyword */; case 80 /* Identifier */: - if (node.parent.kind === 185 /* TypeQuery */ || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node)) { + if (node.parent.kind === 186 /* TypeQuery */ || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node)) { return true; } case 9 /* NumericLiteral */: @@ -14828,64 +14880,64 @@ ${lanes.join("\n")} function isInExpressionContext(node) { const { parent: parent2 } = node; switch (parent2.kind) { - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 305 /* EnumMember */: - case 302 /* PropertyAssignment */: - case 207 /* BindingElement */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 306 /* EnumMember */: + case 303 /* PropertyAssignment */: + case 208 /* BindingElement */: return parent2.initializer === node; - case 243 /* ExpressionStatement */: - case 244 /* IfStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: - case 252 /* ReturnStatement */: - case 253 /* WithStatement */: - case 254 /* SwitchStatement */: - case 295 /* CaseClause */: - case 256 /* ThrowStatement */: + case 244 /* ExpressionStatement */: + case 245 /* IfStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 253 /* ReturnStatement */: + case 254 /* WithStatement */: + case 255 /* SwitchStatement */: + case 296 /* CaseClause */: + case 257 /* ThrowStatement */: return parent2.expression === node; - case 247 /* ForStatement */: + case 248 /* ForStatement */: const forStatement = parent2; - return forStatement.initializer === node && forStatement.initializer.kind !== 260 /* VariableDeclarationList */ || forStatement.condition === node || forStatement.incrementor === node; - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: + return forStatement.initializer === node && forStatement.initializer.kind !== 261 /* VariableDeclarationList */ || forStatement.condition === node || forStatement.incrementor === node; + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: const forInStatement = parent2; - return forInStatement.initializer === node && forInStatement.initializer.kind !== 260 /* VariableDeclarationList */ || forInStatement.expression === node; - case 215 /* TypeAssertionExpression */: - case 233 /* AsExpression */: + return forInStatement.initializer === node && forInStatement.initializer.kind !== 261 /* VariableDeclarationList */ || forInStatement.expression === node; + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: return node === parent2.expression; - case 238 /* TemplateSpan */: + case 239 /* TemplateSpan */: return node === parent2.expression; - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: return node === parent2.expression; - case 169 /* Decorator */: - case 293 /* JsxExpression */: - case 292 /* JsxSpreadAttribute */: - case 304 /* SpreadAssignment */: + case 170 /* Decorator */: + case 294 /* JsxExpression */: + case 293 /* JsxSpreadAttribute */: + case 305 /* SpreadAssignment */: return true; - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return parent2.expression === node && !isPartOfTypeNode(parent2); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return parent2.objectAssignmentInitializer === node; - case 237 /* SatisfiesExpression */: + case 238 /* SatisfiesExpression */: return node === parent2.expression; default: return isExpressionNode(parent2); } } function isPartOfTypeQuery(node) { - while (node.kind === 165 /* QualifiedName */ || node.kind === 80 /* Identifier */) { + while (node.kind === 166 /* QualifiedName */ || node.kind === 80 /* Identifier */) { node = node.parent; } - return node.kind === 185 /* TypeQuery */; + return node.kind === 186 /* TypeQuery */; } function isNamespaceReexportDeclaration(node) { return isNamespaceExport(node) && !!node.parent.moduleSpecifier; } function isExternalModuleImportEqualsDeclaration(node) { - return node.kind === 270 /* ImportEqualsDeclaration */ && node.moduleReference.kind === 282 /* ExternalModuleReference */; + return node.kind === 271 /* ImportEqualsDeclaration */ && node.moduleReference.kind === 283 /* ExternalModuleReference */; } function getExternalModuleImportEqualsDeclarationExpression(node) { Debug.assert(isExternalModuleImportEqualsDeclaration(node)); @@ -14895,7 +14947,7 @@ ${lanes.join("\n")} return isVariableDeclarationInitializedToBareOrAccessedRequire(node) && getLeftmostAccessExpression(node.initializer).arguments[0]; } function isInternalModuleImportEqualsDeclaration(node) { - return node.kind === 270 /* ImportEqualsDeclaration */ && node.moduleReference.kind !== 282 /* ExternalModuleReference */; + return node.kind === 271 /* ImportEqualsDeclaration */ && node.moduleReference.kind !== 283 /* ExternalModuleReference */; } function isSourceFileJS(file) { return isInJSFile(file); @@ -14904,22 +14956,22 @@ ${lanes.join("\n")} return !isInJSFile(file); } function isInJSFile(node) { - return !!node && !!(node.flags & 262144 /* JavaScriptFile */); + return !!node && !!(node.flags & 524288 /* JavaScriptFile */); } function isInJsonFile(node) { - return !!node && !!(node.flags & 67108864 /* JsonFile */); + return !!node && !!(node.flags & 134217728 /* JsonFile */); } function isSourceFileNotJson(file) { return !isJsonSourceFile(file); } function isInJSDoc(node) { - return !!node && !!(node.flags & 8388608 /* JSDoc */); + return !!node && !!(node.flags & 16777216 /* JSDoc */); } function isJSDocIndexSignature(node) { return isTypeReferenceNode(node) && isIdentifier(node.typeName) && node.typeName.escapedText === "Object" && node.typeArguments && node.typeArguments.length === 2 && (node.typeArguments[0].kind === 154 /* StringKeyword */ || node.typeArguments[0].kind === 150 /* NumberKeyword */); } function isRequireCall(callExpression, requireStringLiteralLikeArgument) { - if (callExpression.kind !== 212 /* CallExpression */) { + if (callExpression.kind !== 213 /* CallExpression */) { return false; } const { expression, arguments: args } = callExpression; @@ -14996,9 +15048,9 @@ ${lanes.join("\n")} function getExpandoInitializer(initializer, isPrototypeAssignment) { if (isCallExpression(initializer)) { const e = skipParentheses(initializer.expression); - return e.kind === 217 /* FunctionExpression */ || e.kind === 218 /* ArrowFunction */ ? initializer : void 0; + return e.kind === 218 /* FunctionExpression */ || e.kind === 219 /* ArrowFunction */ ? initializer : void 0; } - if (initializer.kind === 217 /* FunctionExpression */ || initializer.kind === 230 /* ClassExpression */ || initializer.kind === 218 /* ArrowFunction */) { + if (initializer.kind === 218 /* FunctionExpression */ || initializer.kind === 231 /* ClassExpression */ || initializer.kind === 219 /* ArrowFunction */) { return initializer; } if (isObjectLiteralExpression(initializer) && (initializer.properties.length === 0 || isPrototypeAssignment)) { @@ -15189,11 +15241,11 @@ ${lanes.join("\n")} return isBinaryExpression(node) && getAssignmentDeclarationKind(node) === 3 /* PrototypeProperty */; } function isSpecialPropertyDeclaration(expr) { - return isInJSFile(expr) && expr.parent && expr.parent.kind === 243 /* ExpressionStatement */ && (!isElementAccessExpression(expr) || isLiteralLikeElementAccess(expr)) && !!getJSDocTypeTag(expr.parent); + return isInJSFile(expr) && expr.parent && expr.parent.kind === 244 /* ExpressionStatement */ && (!isElementAccessExpression(expr) || isLiteralLikeElementAccess(expr)) && !!getJSDocTypeTag(expr.parent); } function setValueDeclaration(symbol, node) { const { valueDeclaration } = symbol; - if (!valueDeclaration || !(node.flags & 16777216 /* Ambient */ && !isInJSFile(node) && !(valueDeclaration.flags & 16777216 /* Ambient */)) && (isAssignmentDeclaration(valueDeclaration) && !isAssignmentDeclaration(node)) || valueDeclaration.kind !== node.kind && isEffectiveModuleDeclaration(valueDeclaration)) { + if (!valueDeclaration || !(node.flags & 33554432 /* Ambient */ && !isInJSFile(node) && !(valueDeclaration.flags & 33554432 /* Ambient */)) && (isAssignmentDeclaration(valueDeclaration) && !isAssignmentDeclaration(node)) || valueDeclaration.kind !== node.kind && isEffectiveModuleDeclaration(valueDeclaration)) { symbol.valueDeclaration = node; } } @@ -15202,29 +15254,29 @@ ${lanes.join("\n")} return false; } const decl = symbol.valueDeclaration; - return decl.kind === 261 /* FunctionDeclaration */ || isVariableDeclaration(decl) && decl.initializer && isFunctionLike(decl.initializer); + return decl.kind === 262 /* FunctionDeclaration */ || isVariableDeclaration(decl) && decl.initializer && isFunctionLike(decl.initializer); } function tryGetModuleSpecifierFromDeclaration(node) { var _a, _b; switch (node.kind) { - case 259 /* VariableDeclaration */: - case 207 /* BindingElement */: + case 260 /* VariableDeclaration */: + case 208 /* BindingElement */: return (_a = findAncestor(node.initializer, (node2) => isRequireCall( node2, /*requireStringLiteralLikeArgument*/ true ))) == null ? void 0 : _a.arguments[0]; - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return tryCast(node.moduleSpecifier, isStringLiteralLike); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return tryCast((_b = tryCast(node.moduleReference, isExternalModuleReference)) == null ? void 0 : _b.expression, isStringLiteralLike); - case 272 /* ImportClause */: - case 279 /* NamespaceExport */: + case 273 /* ImportClause */: + case 280 /* NamespaceExport */: return tryCast(node.parent.moduleSpecifier, isStringLiteralLike); - case 273 /* NamespaceImport */: - case 280 /* ExportSpecifier */: + case 274 /* NamespaceImport */: + case 281 /* ExportSpecifier */: return tryCast(node.parent.parent.moduleSpecifier, isStringLiteralLike); - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: return tryCast(node.parent.parent.parent.moduleSpecifier, isStringLiteralLike); default: Debug.assertNever(node); @@ -15235,18 +15287,18 @@ ${lanes.join("\n")} } function tryGetImportFromModuleSpecifier(node) { switch (node.parent.kind) { - case 271 /* ImportDeclaration */: - case 277 /* ExportDeclaration */: + case 272 /* ImportDeclaration */: + case 278 /* ExportDeclaration */: return node.parent; - case 282 /* ExternalModuleReference */: + case 283 /* ExternalModuleReference */: return node.parent.parent; - case 212 /* CallExpression */: + case 213 /* CallExpression */: return isImportCall(node.parent) || isRequireCall( node.parent, /*requireStringLiteralLikeArgument*/ false ) ? node.parent : void 0; - case 200 /* LiteralType */: + case 201 /* LiteralType */: Debug.assert(isStringLiteral(node)); return tryCast(node.parent.parent, isImportTypeNode); default: @@ -15255,16 +15307,16 @@ ${lanes.join("\n")} } function getExternalModuleName(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: - case 277 /* ExportDeclaration */: + case 272 /* ImportDeclaration */: + case 278 /* ExportDeclaration */: return node.moduleSpecifier; - case 270 /* ImportEqualsDeclaration */: - return node.moduleReference.kind === 282 /* ExternalModuleReference */ ? node.moduleReference.expression : void 0; - case 204 /* ImportType */: + case 271 /* ImportEqualsDeclaration */: + return node.moduleReference.kind === 283 /* ExternalModuleReference */ ? node.moduleReference.expression : void 0; + case 205 /* ImportType */: return isLiteralImportTypeNode(node) ? node.argument.literal : void 0; - case 212 /* CallExpression */: + case 213 /* CallExpression */: return node.arguments[0]; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return node.name.kind === 11 /* StringLiteral */ ? node.name : void 0; default: return Debug.assertNever(node); @@ -15272,18 +15324,18 @@ ${lanes.join("\n")} } function getNamespaceDeclarationNode(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return node.importClause && tryCast(node.importClause.namedBindings, isNamespaceImport); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return node; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return node.exportClause && tryCast(node.exportClause, isNamespaceExport); default: return Debug.assertNever(node); } } function isDefaultImport(node) { - return node.kind === 271 /* ImportDeclaration */ && !!node.importClause && !!node.importClause.name; + return node.kind === 272 /* ImportDeclaration */ && !!node.importClause && !!node.importClause.name; } function forEachImportClauseDeclaration(node, action) { if (node.name) { @@ -15300,13 +15352,13 @@ ${lanes.join("\n")} function hasQuestionToken(node) { if (node) { switch (node.kind) { - case 168 /* Parameter */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 303 /* ShorthandPropertyAssignment */: - case 302 /* PropertyAssignment */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: + case 169 /* Parameter */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 304 /* ShorthandPropertyAssignment */: + case 303 /* PropertyAssignment */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: return node.questionToken !== void 0; } } @@ -15318,7 +15370,7 @@ ${lanes.join("\n")} return !!name && name.escapedText === "new"; } function isJSDocTypeAlias(node) { - return node.kind === 352 /* JSDocTypedefTag */ || node.kind === 344 /* JSDocCallbackTag */ || node.kind === 346 /* JSDocEnumTag */; + return node.kind === 353 /* JSDocTypedefTag */ || node.kind === 345 /* JSDocCallbackTag */ || node.kind === 347 /* JSDocEnumTag */; } function isTypeAlias(node) { return isJSDocTypeAlias(node) || isTypeAliasDeclaration(node); @@ -15331,12 +15383,12 @@ ${lanes.join("\n")} } function getSingleInitializerOfVariableStatementOrPropertyDeclaration(node) { switch (node.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: const v = getSingleVariableOfVariableStatement(node); return v && v.initializer; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return node.initializer; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return node.initializer; } } @@ -15344,26 +15396,26 @@ ${lanes.join("\n")} return isVariableStatement(node) ? firstOrUndefined(node.declarationList.declarations) : void 0; } function getNestedModuleDeclaration(node) { - return isModuleDeclaration(node) && node.body && node.body.kind === 266 /* ModuleDeclaration */ ? node.body : void 0; + return isModuleDeclaration(node) && node.body && node.body.kind === 267 /* ModuleDeclaration */ ? node.body : void 0; } function canHaveFlowNode(node) { - if (node.kind >= 242 /* FirstStatement */ && node.kind <= 258 /* LastStatement */) { + if (node.kind >= 243 /* FirstStatement */ && node.kind <= 259 /* LastStatement */) { return true; } switch (node.kind) { case 80 /* Identifier */: case 110 /* ThisKeyword */: case 108 /* SuperKeyword */: - case 165 /* QualifiedName */: - case 235 /* MetaProperty */: - case 211 /* ElementAccessExpression */: - case 210 /* PropertyAccessExpression */: - case 207 /* BindingElement */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 166 /* QualifiedName */: + case 236 /* MetaProperty */: + case 212 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 208 /* BindingElement */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return true; default: return false; @@ -15371,72 +15423,72 @@ ${lanes.join("\n")} } function canHaveJSDoc(node) { switch (node.kind) { - case 218 /* ArrowFunction */: - case 225 /* BinaryExpression */: - case 240 /* Block */: - case 251 /* BreakStatement */: - case 178 /* CallSignature */: - case 295 /* CaseClause */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 174 /* ClassStaticBlockDeclaration */: - case 175 /* Constructor */: - case 184 /* ConstructorType */: - case 179 /* ConstructSignature */: - case 250 /* ContinueStatement */: - case 258 /* DebuggerStatement */: - case 245 /* DoStatement */: - case 211 /* ElementAccessExpression */: - case 241 /* EmptyStatement */: + case 219 /* ArrowFunction */: + case 226 /* BinaryExpression */: + case 241 /* Block */: + case 252 /* BreakStatement */: + case 179 /* CallSignature */: + case 296 /* CaseClause */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 175 /* ClassStaticBlockDeclaration */: + case 176 /* Constructor */: + case 185 /* ConstructorType */: + case 180 /* ConstructSignature */: + case 251 /* ContinueStatement */: + case 259 /* DebuggerStatement */: + case 246 /* DoStatement */: + case 212 /* ElementAccessExpression */: + case 242 /* EmptyStatement */: case 1 /* EndOfFileToken */: - case 265 /* EnumDeclaration */: - case 305 /* EnumMember */: - case 276 /* ExportAssignment */: - case 277 /* ExportDeclaration */: - case 280 /* ExportSpecifier */: - case 243 /* ExpressionStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 247 /* ForStatement */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 183 /* FunctionType */: - case 176 /* GetAccessor */: + case 266 /* EnumDeclaration */: + case 306 /* EnumMember */: + case 277 /* ExportAssignment */: + case 278 /* ExportDeclaration */: + case 281 /* ExportSpecifier */: + case 244 /* ExpressionStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 248 /* ForStatement */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 184 /* FunctionType */: + case 177 /* GetAccessor */: case 80 /* Identifier */: - case 244 /* IfStatement */: - case 271 /* ImportDeclaration */: - case 270 /* ImportEqualsDeclaration */: - case 180 /* IndexSignature */: - case 263 /* InterfaceDeclaration */: - case 323 /* JSDocFunctionType */: - case 329 /* JSDocSignature */: - case 255 /* LabeledStatement */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 266 /* ModuleDeclaration */: - case 201 /* NamedTupleMember */: - case 269 /* NamespaceExportDeclaration */: - case 209 /* ObjectLiteralExpression */: - case 168 /* Parameter */: - case 216 /* ParenthesizedExpression */: - case 210 /* PropertyAccessExpression */: - case 302 /* PropertyAssignment */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 252 /* ReturnStatement */: - case 239 /* SemicolonClassElement */: - case 177 /* SetAccessor */: - case 303 /* ShorthandPropertyAssignment */: - case 304 /* SpreadAssignment */: - case 254 /* SwitchStatement */: - case 256 /* ThrowStatement */: - case 257 /* TryStatement */: - case 264 /* TypeAliasDeclaration */: - case 167 /* TypeParameter */: - case 259 /* VariableDeclaration */: - case 242 /* VariableStatement */: - case 246 /* WhileStatement */: - case 253 /* WithStatement */: + case 245 /* IfStatement */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 181 /* IndexSignature */: + case 264 /* InterfaceDeclaration */: + case 324 /* JSDocFunctionType */: + case 330 /* JSDocSignature */: + case 256 /* LabeledStatement */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 267 /* ModuleDeclaration */: + case 202 /* NamedTupleMember */: + case 270 /* NamespaceExportDeclaration */: + case 210 /* ObjectLiteralExpression */: + case 169 /* Parameter */: + case 217 /* ParenthesizedExpression */: + case 211 /* PropertyAccessExpression */: + case 303 /* PropertyAssignment */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 253 /* ReturnStatement */: + case 240 /* SemicolonClassElement */: + case 178 /* SetAccessor */: + case 304 /* ShorthandPropertyAssignment */: + case 305 /* SpreadAssignment */: + case 255 /* SwitchStatement */: + case 257 /* ThrowStatement */: + case 258 /* TryStatement */: + case 265 /* TypeAliasDeclaration */: + case 168 /* TypeParameter */: + case 260 /* VariableDeclaration */: + case 243 /* VariableStatement */: + case 247 /* WhileStatement */: + case 254 /* WithStatement */: return true; default: return false; @@ -15452,11 +15504,11 @@ ${lanes.join("\n")} if (hasJSDocNodes(node)) { result = addRange(result, filterOwnedJSDocTags(hostNode, last(node.jsDoc))); } - if (node.kind === 168 /* Parameter */) { + if (node.kind === 169 /* Parameter */) { result = addRange(result, (noCache ? getJSDocParameterTagsNoCache : getJSDocParameterTags)(node)); break; } - if (node.kind === 167 /* TypeParameter */) { + if (node.kind === 168 /* TypeParameter */) { result = addRange(result, (noCache ? getJSDocTypeParameterTagsNoCache : getJSDocTypeParameterTags)(node)); break; } @@ -15476,7 +15528,7 @@ ${lanes.join("\n")} } function getNextJSDocCommentLocation(node) { const parent2 = node.parent; - if (parent2.kind === 302 /* PropertyAssignment */ || parent2.kind === 276 /* ExportAssignment */ || parent2.kind === 171 /* PropertyDeclaration */ || parent2.kind === 243 /* ExpressionStatement */ && node.kind === 210 /* PropertyAccessExpression */ || parent2.kind === 252 /* ReturnStatement */ || getNestedModuleDeclaration(parent2) || isBinaryExpression(node) && node.operatorToken.kind === 64 /* EqualsToken */) { + if (parent2.kind === 303 /* PropertyAssignment */ || parent2.kind === 277 /* ExportAssignment */ || parent2.kind === 172 /* PropertyDeclaration */ || parent2.kind === 244 /* ExpressionStatement */ && node.kind === 211 /* PropertyAccessExpression */ || parent2.kind === 253 /* ReturnStatement */ || getNestedModuleDeclaration(parent2) || isBinaryExpression(node) && node.operatorToken.kind === 64 /* EqualsToken */) { return parent2; } else if (parent2.parent && (getSingleVariableOfVariableStatement(parent2.parent) === node || isBinaryExpression(parent2) && parent2.operatorToken.kind === 64 /* EqualsToken */)) { return parent2.parent; @@ -15546,32 +15598,32 @@ ${lanes.join("\n")} let parent2 = node.parent; while (true) { switch (parent2.kind) { - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: const binaryOperator = parent2.operatorToken.kind; return isAssignmentOperator(binaryOperator) && parent2.left === node ? binaryOperator === 64 /* EqualsToken */ || isLogicalOrCoalescingAssignmentOperator(binaryOperator) ? 1 /* Definite */ : 2 /* Compound */ : 0 /* None */; - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: const unaryOperator = parent2.operator; return unaryOperator === 46 /* PlusPlusToken */ || unaryOperator === 47 /* MinusMinusToken */ ? 2 /* Compound */ : 0 /* None */; - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: return parent2.initializer === node ? 1 /* Definite */ : 0 /* None */; - case 216 /* ParenthesizedExpression */: - case 208 /* ArrayLiteralExpression */: - case 229 /* SpreadElement */: - case 234 /* NonNullExpression */: + case 217 /* ParenthesizedExpression */: + case 209 /* ArrayLiteralExpression */: + case 230 /* SpreadElement */: + case 235 /* NonNullExpression */: node = parent2; break; - case 304 /* SpreadAssignment */: + case 305 /* SpreadAssignment */: node = parent2.parent; break; - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: if (parent2.name !== node) { return 0 /* None */; } node = parent2.parent; break; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: if (parent2.name === node) { return 0 /* None */; } @@ -15588,22 +15640,22 @@ ${lanes.join("\n")} } function isNodeWithPossibleHoistedDeclaration(node) { switch (node.kind) { - case 240 /* Block */: - case 242 /* VariableStatement */: - case 253 /* WithStatement */: - case 244 /* IfStatement */: - case 254 /* SwitchStatement */: - case 268 /* CaseBlock */: - case 295 /* CaseClause */: - case 296 /* DefaultClause */: - case 255 /* LabeledStatement */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: - case 257 /* TryStatement */: - case 298 /* CatchClause */: + case 241 /* Block */: + case 243 /* VariableStatement */: + case 254 /* WithStatement */: + case 245 /* IfStatement */: + case 255 /* SwitchStatement */: + case 269 /* CaseBlock */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: + case 256 /* LabeledStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 258 /* TryStatement */: + case 299 /* CatchClause */: return true; } return false; @@ -15618,14 +15670,14 @@ ${lanes.join("\n")} return node; } function walkUpParenthesizedTypes(node) { - return walkUp(node, 195 /* ParenthesizedType */); + return walkUp(node, 196 /* ParenthesizedType */); } function walkUpParenthesizedExpressions(node) { - return walkUp(node, 216 /* ParenthesizedExpression */); + return walkUp(node, 217 /* ParenthesizedExpression */); } function walkUpParenthesizedTypesAndGetParentAndChild(node) { let child; - while (node && node.kind === 195 /* ParenthesizedType */) { + while (node && node.kind === 196 /* ParenthesizedType */) { child = node; node = node.parent; } @@ -15641,11 +15693,11 @@ ${lanes.join("\n")} return skipOuterExpressions(node, flags); } function isDeleteTarget(node) { - if (node.kind !== 210 /* PropertyAccessExpression */ && node.kind !== 211 /* ElementAccessExpression */) { + if (node.kind !== 211 /* PropertyAccessExpression */ && node.kind !== 212 /* ElementAccessExpression */) { return false; } node = walkUpParenthesizedExpressions(node.parent); - return node && node.kind === 219 /* DeleteExpression */; + return node && node.kind === 220 /* DeleteExpression */; } function isNodeDescendantOf(node, ancestor) { while (node) { @@ -15683,55 +15735,55 @@ ${lanes.join("\n")} } } function isLiteralComputedPropertyDeclarationName(node) { - return isStringOrNumericLiteralLike(node) && node.parent.kind === 166 /* ComputedPropertyName */ && isDeclaration(node.parent.parent); + return isStringOrNumericLiteralLike(node) && node.parent.kind === 167 /* ComputedPropertyName */ && isDeclaration(node.parent.parent); } function isIdentifierName(node) { const parent2 = node.parent; switch (parent2.kind) { - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 305 /* EnumMember */: - case 302 /* PropertyAssignment */: - case 210 /* PropertyAccessExpression */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 306 /* EnumMember */: + case 303 /* PropertyAssignment */: + case 211 /* PropertyAccessExpression */: return parent2.name === node; - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: return parent2.right === node; - case 207 /* BindingElement */: - case 275 /* ImportSpecifier */: + case 208 /* BindingElement */: + case 276 /* ImportSpecifier */: return parent2.propertyName === node; - case 280 /* ExportSpecifier */: - case 290 /* JsxAttribute */: - case 284 /* JsxSelfClosingElement */: - case 285 /* JsxOpeningElement */: - case 286 /* JsxClosingElement */: + case 281 /* ExportSpecifier */: + case 291 /* JsxAttribute */: + case 285 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 287 /* JsxClosingElement */: return true; } return false; } function isAliasSymbolDeclaration(node) { - if (node.kind === 270 /* ImportEqualsDeclaration */ || node.kind === 269 /* NamespaceExportDeclaration */ || node.kind === 272 /* ImportClause */ && !!node.name || node.kind === 273 /* NamespaceImport */ || node.kind === 279 /* NamespaceExport */ || node.kind === 275 /* ImportSpecifier */ || node.kind === 280 /* ExportSpecifier */ || node.kind === 276 /* ExportAssignment */ && exportAssignmentIsAlias(node)) { + if (node.kind === 271 /* ImportEqualsDeclaration */ || node.kind === 270 /* NamespaceExportDeclaration */ || node.kind === 273 /* ImportClause */ && !!node.name || node.kind === 274 /* NamespaceImport */ || node.kind === 280 /* NamespaceExport */ || node.kind === 276 /* ImportSpecifier */ || node.kind === 281 /* ExportSpecifier */ || node.kind === 277 /* ExportAssignment */ && exportAssignmentIsAlias(node)) { return true; } return isInJSFile(node) && (isBinaryExpression(node) && getAssignmentDeclarationKind(node) === 2 /* ModuleExports */ && exportAssignmentIsAlias(node) || isPropertyAccessExpression(node) && isBinaryExpression(node.parent) && node.parent.left === node && node.parent.operatorToken.kind === 64 /* EqualsToken */ && isAliasableExpression(node.parent.right)); } function getAliasDeclarationFromName(node) { switch (node.parent.kind) { - case 272 /* ImportClause */: - case 275 /* ImportSpecifier */: - case 273 /* NamespaceImport */: - case 280 /* ExportSpecifier */: - case 276 /* ExportAssignment */: - case 270 /* ImportEqualsDeclaration */: - case 279 /* NamespaceExport */: + case 273 /* ImportClause */: + case 276 /* ImportSpecifier */: + case 274 /* NamespaceImport */: + case 281 /* ExportSpecifier */: + case 277 /* ExportAssignment */: + case 271 /* ImportEqualsDeclaration */: + case 280 /* NamespaceExport */: return node.parent; - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: do { node = node.parent; - } while (node.parent.kind === 165 /* QualifiedName */); + } while (node.parent.kind === 166 /* QualifiedName */); return getAliasDeclarationFromName(node); } } @@ -15746,7 +15798,7 @@ ${lanes.join("\n")} return isExportAssignment(node) ? node.expression : node.right; } function getPropertyAssignmentAliasLikeExpression(node) { - return node.kind === 303 /* ShorthandPropertyAssignment */ ? node.name : node.kind === 302 /* PropertyAssignment */ ? node.initializer : node.parent.right; + return node.kind === 304 /* ShorthandPropertyAssignment */ ? node.name : node.kind === 303 /* PropertyAssignment */ ? node.initializer : node.parent.right; } function getEffectiveBaseTypeNode(node) { const baseType = getClassExtendsHeritageElement(node); @@ -15797,7 +15849,7 @@ ${lanes.join("\n")} return void 0; } function isKeyword(token) { - return 83 /* FirstKeyword */ <= token && token <= 164 /* LastKeyword */; + return 83 /* FirstKeyword */ <= token && token <= 165 /* LastKeyword */; } function isPunctuation(token) { return 19 /* FirstPunctuation */ <= token && token <= 79 /* LastPunctuation */; @@ -15806,7 +15858,7 @@ ${lanes.join("\n")} return isKeyword(token) || isPunctuation(token); } function isContextualKeyword(token) { - return 128 /* FirstContextualKeyword */ <= token && token <= 164 /* LastContextualKeyword */; + return 128 /* FirstContextualKeyword */ <= token && token <= 165 /* LastContextualKeyword */; } function isNonContextualKeyword(token) { return isKeyword(token) && !isContextualKeyword(token); @@ -15835,13 +15887,13 @@ ${lanes.join("\n")} } let flags = 0 /* Normal */; switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 173 /* MethodDeclaration */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 174 /* MethodDeclaration */: if (node.asteriskToken) { flags |= 1 /* Generator */; } - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: if (hasSyntacticModifier(node, 512 /* Async */)) { flags |= 2 /* Async */; } @@ -15854,10 +15906,10 @@ ${lanes.join("\n")} } function isAsyncFunction(node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: return node.body !== void 0 && node.asteriskToken === void 0 && hasSyntacticModifier(node, 512 /* Async */); } return false; @@ -15873,7 +15925,7 @@ ${lanes.join("\n")} return !!name && isDynamicName(name); } function isDynamicName(name) { - if (!(name.kind === 166 /* ComputedPropertyName */ || name.kind === 211 /* ElementAccessExpression */)) { + if (!(name.kind === 167 /* ComputedPropertyName */ || name.kind === 212 /* ElementAccessExpression */)) { return false; } const expr = isElementAccessExpression(name) ? skipParentheses(name.argumentExpression) : name.expression; @@ -15887,7 +15939,7 @@ ${lanes.join("\n")} case 11 /* StringLiteral */: case 9 /* NumericLiteral */: return escapeLeadingUnderscores(name.text); - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: const nameExpression = name.expression; if (isStringOrNumericLiteralLike(nameExpression)) { return escapeLeadingUnderscores(nameExpression.text); @@ -15898,7 +15950,7 @@ ${lanes.join("\n")} return nameExpression.operand.text; } return void 0; - case 294 /* JsxNamespacedName */: + case 295 /* JsxNamespacedName */: return getEscapedTextOfJsxNamespacedName(name); default: return Debug.assertNever(name); @@ -15942,13 +15994,17 @@ ${lanes.join("\n")} function isAnonymousFunctionDefinition(node, cb) { node = skipOuterExpressions(node); switch (node.kind) { - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: + case 231 /* ClassExpression */: + if (classHasDeclaredOrExplicitlyAssignedName(node)) { + return false; + } + break; + case 218 /* FunctionExpression */: if (node.name) { return false; } break; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: break; default: return false; @@ -15957,19 +16013,19 @@ ${lanes.join("\n")} } function isNamedEvaluationSource(node) { switch (node.kind) { - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return !isProtoSetter(node.name); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return !!node.objectAssignmentInitializer; - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return isIdentifier(node.name) && !!node.initializer; - case 168 /* Parameter */: + case 169 /* Parameter */: return isIdentifier(node.name) && !!node.initializer && !node.dotDotDotToken; - case 207 /* BindingElement */: + case 208 /* BindingElement */: return isIdentifier(node.name) && !!node.initializer && !node.dotDotDotToken; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return !!node.initializer; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: switch (node.operatorToken.kind) { case 64 /* EqualsToken */: case 77 /* AmpersandAmpersandEqualsToken */: @@ -15978,7 +16034,7 @@ ${lanes.join("\n")} return isIdentifier(node.left); } break; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return true; } return false; @@ -15987,18 +16043,18 @@ ${lanes.join("\n")} if (!isNamedEvaluationSource(node)) return false; switch (node.kind) { - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return isAnonymousFunctionDefinition(node.initializer, cb); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return isAnonymousFunctionDefinition(node.objectAssignmentInitializer, cb); - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 207 /* BindingElement */: - case 171 /* PropertyDeclaration */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 208 /* BindingElement */: + case 172 /* PropertyDeclaration */: return isAnonymousFunctionDefinition(node.initializer, cb); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return isAnonymousFunctionDefinition(node.right, cb); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return isAnonymousFunctionDefinition(node.expression, cb); } } @@ -16007,17 +16063,17 @@ ${lanes.join("\n")} } function isParameterDeclaration(node) { const root = getRootDeclaration(node); - return root.kind === 168 /* Parameter */; + return root.kind === 169 /* Parameter */; } function getRootDeclaration(node) { - while (node.kind === 207 /* BindingElement */) { + while (node.kind === 208 /* BindingElement */) { node = node.parent.parent; } return node; } function nodeStartsNewLexicalEnvironment(node) { const kind = node.kind; - return kind === 175 /* Constructor */ || kind === 217 /* FunctionExpression */ || kind === 261 /* FunctionDeclaration */ || kind === 218 /* ArrowFunction */ || kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */ || kind === 266 /* ModuleDeclaration */ || kind === 311 /* SourceFile */; + return kind === 176 /* Constructor */ || kind === 218 /* FunctionExpression */ || kind === 262 /* FunctionDeclaration */ || kind === 219 /* ArrowFunction */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 267 /* ModuleDeclaration */ || kind === 312 /* SourceFile */; } function nodeIsSynthesized(range) { return positionIsSynthesized(range.pos) || positionIsSynthesized(range.end); @@ -16027,22 +16083,22 @@ ${lanes.join("\n")} } function getExpressionAssociativity(expression) { const operator = getOperator(expression); - const hasArguments = expression.kind === 213 /* NewExpression */ && expression.arguments !== void 0; + const hasArguments = expression.kind === 214 /* NewExpression */ && expression.arguments !== void 0; return getOperatorAssociativity(expression.kind, operator, hasArguments); } function getOperatorAssociativity(kind, operator, hasArguments) { switch (kind) { - case 213 /* NewExpression */: + case 214 /* NewExpression */: return hasArguments ? 0 /* Left */ : 1 /* Right */; - case 223 /* PrefixUnaryExpression */: - case 220 /* TypeOfExpression */: - case 221 /* VoidExpression */: - case 219 /* DeleteExpression */: - case 222 /* AwaitExpression */: - case 226 /* ConditionalExpression */: - case 228 /* YieldExpression */: + case 224 /* PrefixUnaryExpression */: + case 221 /* TypeOfExpression */: + case 222 /* VoidExpression */: + case 220 /* DeleteExpression */: + case 223 /* AwaitExpression */: + case 227 /* ConditionalExpression */: + case 229 /* YieldExpression */: return 1 /* Right */; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: switch (operator) { case 43 /* AsteriskAsteriskToken */: case 64 /* EqualsToken */: @@ -16068,13 +16124,13 @@ ${lanes.join("\n")} } function getExpressionPrecedence(expression) { const operator = getOperator(expression); - const hasArguments = expression.kind === 213 /* NewExpression */ && expression.arguments !== void 0; + const hasArguments = expression.kind === 214 /* NewExpression */ && expression.arguments !== void 0; return getOperatorPrecedence(expression.kind, operator, hasArguments); } function getOperator(expression) { - if (expression.kind === 225 /* BinaryExpression */) { + if (expression.kind === 226 /* BinaryExpression */) { return expression.operatorToken.kind; - } else if (expression.kind === 223 /* PrefixUnaryExpression */ || expression.kind === 224 /* PostfixUnaryExpression */) { + } else if (expression.kind === 224 /* PrefixUnaryExpression */ || expression.kind === 225 /* PostfixUnaryExpression */) { return expression.operator; } else { return expression.kind; @@ -16082,15 +16138,15 @@ ${lanes.join("\n")} } function getOperatorPrecedence(nodeKind, operatorKind, hasArguments) { switch (nodeKind) { - case 360 /* CommaListExpression */: + case 361 /* CommaListExpression */: return 0 /* Comma */; - case 229 /* SpreadElement */: + case 230 /* SpreadElement */: return 1 /* Spread */; - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: return 2 /* Yield */; - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: return 4 /* Conditional */; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: switch (operatorKind) { case 28 /* CommaToken */: return 0 /* Comma */; @@ -16114,27 +16170,27 @@ ${lanes.join("\n")} default: return getBinaryOperatorPrecedence(operatorKind); } - case 215 /* TypeAssertionExpression */: - case 234 /* NonNullExpression */: - case 223 /* PrefixUnaryExpression */: - case 220 /* TypeOfExpression */: - case 221 /* VoidExpression */: - case 219 /* DeleteExpression */: - case 222 /* AwaitExpression */: + case 216 /* TypeAssertionExpression */: + case 235 /* NonNullExpression */: + case 224 /* PrefixUnaryExpression */: + case 221 /* TypeOfExpression */: + case 222 /* VoidExpression */: + case 220 /* DeleteExpression */: + case 223 /* AwaitExpression */: return 16 /* Unary */; - case 224 /* PostfixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return 17 /* Update */; - case 212 /* CallExpression */: + case 213 /* CallExpression */: return 18 /* LeftHandSide */; - case 213 /* NewExpression */: + case 214 /* NewExpression */: return hasArguments ? 19 /* Member */ : 18 /* LeftHandSide */; - case 214 /* TaggedTemplateExpression */: - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: - case 235 /* MetaProperty */: + case 215 /* TaggedTemplateExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + case 236 /* MetaProperty */: return 19 /* Member */; - case 233 /* AsExpression */: - case 237 /* SatisfiesExpression */: + case 234 /* AsExpression */: + case 238 /* SatisfiesExpression */: return 11 /* Relational */; case 110 /* ThisKeyword */: case 108 /* SuperKeyword */: @@ -16146,19 +16202,19 @@ ${lanes.join("\n")} case 9 /* NumericLiteral */: case 10 /* BigIntLiteral */: case 11 /* StringLiteral */: - case 208 /* ArrayLiteralExpression */: - case 209 /* ObjectLiteralExpression */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 230 /* ClassExpression */: + case 209 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 231 /* ClassExpression */: case 14 /* RegularExpressionLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: - case 227 /* TemplateExpression */: - case 216 /* ParenthesizedExpression */: - case 231 /* OmittedExpression */: - case 283 /* JsxElement */: - case 284 /* JsxSelfClosingElement */: - case 287 /* JsxFragment */: + case 228 /* TemplateExpression */: + case 217 /* ParenthesizedExpression */: + case 232 /* OmittedExpression */: + case 284 /* JsxElement */: + case 285 /* JsxSelfClosingElement */: + case 288 /* JsxFragment */: return 20 /* Primary */; default: return -1 /* Invalid */; @@ -16211,7 +16267,7 @@ ${lanes.join("\n")} function getSemanticJsxChildren(children) { return filter(children, (i) => { switch (i.kind) { - case 293 /* JsxExpression */: + case 294 /* JsxExpression */: return !!i.expression; case 12 /* JsxText */: return !i.containsOnlyTriviaWhiteSpaces; @@ -16680,6 +16736,12 @@ ${lanes.join("\n")} function isThisIdentifier(node) { return !!node && node.kind === 80 /* Identifier */ && identifierIsThisKeyword(node); } + function isInTypeQuery(node) { + return !!findAncestor( + node, + (n) => n.kind === 186 /* TypeQuery */ ? true : n.kind === 80 /* Identifier */ || n.kind === 166 /* QualifiedName */ ? false : "quit" + ); + } function isThisInTypeQuery(node) { if (!isThisIdentifier(node)) { return false; @@ -16687,7 +16749,7 @@ ${lanes.join("\n")} while (isQualifiedName(node.parent) && node.parent.left === node) { node = node.parent; } - return node.parent.kind === 185 /* TypeQuery */; + return node.parent.kind === 186 /* TypeQuery */; } function identifierIsThisKeyword(id) { return id.escapedText === "this"; @@ -16699,9 +16761,9 @@ ${lanes.join("\n")} let setAccessor; if (hasDynamicName(accessor)) { firstAccessor = accessor; - if (accessor.kind === 176 /* GetAccessor */) { + if (accessor.kind === 177 /* GetAccessor */) { getAccessor = accessor; - } else if (accessor.kind === 177 /* SetAccessor */) { + } else if (accessor.kind === 178 /* SetAccessor */) { setAccessor = accessor; } else { Debug.fail("Accessor has wrong kind"); @@ -16717,10 +16779,10 @@ ${lanes.join("\n")} } else if (!secondAccessor) { secondAccessor = member; } - if (member.kind === 176 /* GetAccessor */ && !getAccessor) { + if (member.kind === 177 /* GetAccessor */ && !getAccessor) { getAccessor = member; } - if (member.kind === 177 /* SetAccessor */ && !setAccessor) { + if (member.kind === 178 /* SetAccessor */ && !setAccessor) { setAccessor = member; } } @@ -16752,7 +16814,7 @@ ${lanes.join("\n")} return flatMap(getJSDocTags(node), (tag) => isNonTypeAliasTemplate(tag) ? tag.typeParameters : void 0); } function isNonTypeAliasTemplate(tag) { - return isJSDocTemplateTag(tag) && !(tag.parent.kind === 326 /* JSDoc */ && (tag.parent.tags.some(isJSDocTypeAlias) || tag.parent.tags.some(isJSDocOverloadTag))); + return isJSDocTemplateTag(tag) && !(tag.parent.kind === 327 /* JSDoc */ && (tag.parent.tags.some(isJSDocTypeAlias) || tag.parent.tags.some(isJSDocOverloadTag))); } function getEffectiveSetAccessorTypeAnnotationNode(node) { const parameter = getSetAccessorValueParameter(node); @@ -16942,7 +17004,7 @@ ${lanes.join("\n")} return getSyntacticModifierFlags(node) & flags; } function getModifierFlagsWorker(node, includeJSDoc, alwaysIncludeJSDoc) { - if (node.kind >= 0 /* FirstToken */ && node.kind <= 164 /* LastToken */) { + if (node.kind >= 0 /* FirstToken */ && node.kind <= 165 /* LastToken */) { return 0 /* None */; } if (!(node.modifierFlagsCache & 536870912 /* HasComputedFlags */)) { @@ -17001,7 +17063,7 @@ ${lanes.join("\n")} } function getSyntacticModifierFlagsNoCache(node) { let flags = canHaveModifiers(node) ? modifiersToFlags(node.modifiers) : 0 /* None */; - if (node.flags & 4 /* NestedNamespace */ || node.kind === 80 /* Identifier */ && node.flags & 2048 /* IdentifierIsInJSDocNamespace */) { + if (node.flags & 8 /* NestedNamespace */ || node.kind === 80 /* Identifier */ && node.flags & 4096 /* IdentifierIsInJSDocNamespace */) { flags |= 1 /* Export */; } return flags; @@ -17041,13 +17103,13 @@ ${lanes.join("\n")} return 512 /* Async */; case 148 /* ReadonlyKeyword */: return 64 /* Readonly */; - case 163 /* OverrideKeyword */: + case 164 /* OverrideKeyword */: return 16384 /* Override */; case 103 /* InKeyword */: return 32768 /* In */; case 147 /* OutKeyword */: return 65536 /* Out */; - case 169 /* Decorator */: + case 170 /* Decorator */: return 131072 /* Decorator */; } return 0 /* None */; @@ -17104,7 +17166,7 @@ ${lanes.join("\n")} true )) { const kind = node.left.kind; - return kind === 209 /* ObjectLiteralExpression */ || kind === 208 /* ArrayLiteralExpression */; + return kind === 210 /* ObjectLiteralExpression */ || kind === 209 /* ArrayLiteralExpression */; } return false; } @@ -17118,12 +17180,12 @@ ${lanes.join("\n")} switch (node.kind) { case 80 /* Identifier */: return node; - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: do { node = node.left; } while (node.kind !== 80 /* Identifier */); return node; - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: do { node = node.expression; } while (node.kind !== 80 /* Identifier */); @@ -17131,7 +17193,7 @@ ${lanes.join("\n")} } } function isDottedName(node) { - return node.kind === 80 /* Identifier */ || node.kind === 110 /* ThisKeyword */ || node.kind === 108 /* SuperKeyword */ || node.kind === 235 /* MetaProperty */ || node.kind === 210 /* PropertyAccessExpression */ && isDottedName(node.expression) || node.kind === 216 /* ParenthesizedExpression */ && isDottedName(node.expression); + return node.kind === 80 /* Identifier */ || node.kind === 110 /* ThisKeyword */ || node.kind === 108 /* SuperKeyword */ || node.kind === 236 /* MetaProperty */ || node.kind === 211 /* PropertyAccessExpression */ && isDottedName(node.expression) || node.kind === 217 /* ParenthesizedExpression */ && isDottedName(node.expression); } function isPropertyAccessEntityNameExpression(node) { return isPropertyAccessExpression(node) && isIdentifier(node.name) && isEntityNameExpression(node.expression); @@ -17158,7 +17220,7 @@ ${lanes.join("\n")} return isBindableStaticAccessExpression(node) && getElementOrPropertyAccessName(node) === "prototype"; } function isRightSideOfQualifiedNameOrPropertyAccess(node) { - return node.parent.kind === 165 /* QualifiedName */ && node.parent.right === node || node.parent.kind === 210 /* PropertyAccessExpression */ && node.parent.name === node; + return node.parent.kind === 166 /* QualifiedName */ && node.parent.right === node || node.parent.kind === 211 /* PropertyAccessExpression */ && node.parent.name === node || node.parent.kind === 236 /* MetaProperty */ && node.parent.name === node; } function isRightSideOfAccessExpression(node) { return isPropertyAccessExpression(node.parent) && node.parent.name === node || isElementAccessExpression(node.parent) && node.parent.argumentExpression === node; @@ -17167,10 +17229,10 @@ ${lanes.join("\n")} return isQualifiedName(node.parent) && node.parent.right === node || isPropertyAccessExpression(node.parent) && node.parent.name === node || isJSDocMemberName(node.parent) && node.parent.right === node; } function isEmptyObjectLiteral(expression) { - return expression.kind === 209 /* ObjectLiteralExpression */ && expression.properties.length === 0; + return expression.kind === 210 /* ObjectLiteralExpression */ && expression.properties.length === 0; } function isEmptyArrayLiteral(expression) { - return expression.kind === 208 /* ArrayLiteralExpression */ && expression.elements.length === 0; + return expression.kind === 209 /* ArrayLiteralExpression */ && expression.elements.length === 0; } function getLocalSymbolForExportDefault(symbol) { if (!isExportDefaultSymbol(symbol) || !symbol.declarations) @@ -17436,8 +17498,8 @@ ${lanes.join("\n")} const parseNode = getParseTreeNode(node); if (parseNode) { switch (parseNode.parent.kind) { - case 265 /* EnumDeclaration */: - case 266 /* ModuleDeclaration */: + case 266 /* EnumDeclaration */: + case 267 /* ModuleDeclaration */: return parseNode === parseNode.parent.name; } } @@ -17490,24 +17552,24 @@ ${lanes.join("\n")} function accessKind(node) { const { parent: parent2 } = node; switch (parent2 == null ? void 0 : parent2.kind) { - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return accessKind(parent2); - case 224 /* PostfixUnaryExpression */: - case 223 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: const { operator } = parent2; return operator === 46 /* PlusPlusToken */ || operator === 47 /* MinusMinusToken */ ? 2 /* ReadWrite */ : 0 /* Read */; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: const { left, operatorToken } = parent2; return left === node && isAssignmentOperator(operatorToken.kind) ? operatorToken.kind === 64 /* EqualsToken */ ? 1 /* Write */ : 2 /* ReadWrite */ : 0 /* Read */; - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return parent2.name !== node ? 0 /* Read */ : accessKind(parent2); - case 302 /* PropertyAssignment */: { + case 303 /* PropertyAssignment */: { const parentAccess = accessKind(parent2.parent); return node === parent2.name ? reverseAccessKind(parentAccess) : parentAccess; } - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return node === parent2.objectAssignmentInitializer ? 0 /* Read */ : accessKind(parent2.parent); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return accessKind(parent2); default: return 0 /* Read */; @@ -17620,16 +17682,16 @@ ${lanes.join("\n")} return isClassLike(node) || isInterfaceDeclaration(node) || isTypeLiteralNode(node); } function isTypeNodeKind(kind) { - return kind >= 181 /* FirstTypeNode */ && kind <= 204 /* LastTypeNode */ || kind === 133 /* AnyKeyword */ || kind === 159 /* UnknownKeyword */ || kind === 150 /* NumberKeyword */ || kind === 162 /* BigIntKeyword */ || kind === 151 /* ObjectKeyword */ || kind === 136 /* BooleanKeyword */ || kind === 154 /* StringKeyword */ || kind === 155 /* SymbolKeyword */ || kind === 116 /* VoidKeyword */ || kind === 157 /* UndefinedKeyword */ || kind === 146 /* NeverKeyword */ || kind === 141 /* IntrinsicKeyword */ || kind === 232 /* ExpressionWithTypeArguments */ || kind === 318 /* JSDocAllType */ || kind === 319 /* JSDocUnknownType */ || kind === 320 /* JSDocNullableType */ || kind === 321 /* JSDocNonNullableType */ || kind === 322 /* JSDocOptionalType */ || kind === 323 /* JSDocFunctionType */ || kind === 324 /* JSDocVariadicType */; + return kind >= 182 /* FirstTypeNode */ && kind <= 205 /* LastTypeNode */ || kind === 133 /* AnyKeyword */ || kind === 159 /* UnknownKeyword */ || kind === 150 /* NumberKeyword */ || kind === 163 /* BigIntKeyword */ || kind === 151 /* ObjectKeyword */ || kind === 136 /* BooleanKeyword */ || kind === 154 /* StringKeyword */ || kind === 155 /* SymbolKeyword */ || kind === 116 /* VoidKeyword */ || kind === 157 /* UndefinedKeyword */ || kind === 146 /* NeverKeyword */ || kind === 141 /* IntrinsicKeyword */ || kind === 233 /* ExpressionWithTypeArguments */ || kind === 319 /* JSDocAllType */ || kind === 320 /* JSDocUnknownType */ || kind === 321 /* JSDocNullableType */ || kind === 322 /* JSDocNonNullableType */ || kind === 323 /* JSDocOptionalType */ || kind === 324 /* JSDocFunctionType */ || kind === 325 /* JSDocVariadicType */; } function isAccessExpression(node) { - return node.kind === 210 /* PropertyAccessExpression */ || node.kind === 211 /* ElementAccessExpression */; + return node.kind === 211 /* PropertyAccessExpression */ || node.kind === 212 /* ElementAccessExpression */; } function getNameOfAccessExpression(node) { - if (node.kind === 210 /* PropertyAccessExpression */) { + if (node.kind === 211 /* PropertyAccessExpression */) { return node.name; } - Debug.assert(node.kind === 211 /* ElementAccessExpression */); + Debug.assert(node.kind === 212 /* ElementAccessExpression */); return node.argumentExpression; } function isBundleFileTextLike(section) { @@ -17642,7 +17704,7 @@ ${lanes.join("\n")} } } function isNamedImportsOrExports(node) { - return node.kind === 274 /* NamedImports */ || node.kind === 278 /* NamedExports */; + return node.kind === 275 /* NamedImports */ || node.kind === 279 /* NamedExports */; } function getLeftmostAccessExpression(expr) { while (isAccessExpression(expr)) { @@ -17655,12 +17717,12 @@ ${lanes.join("\n")} return walkAccessExpression(name.parent); } function walkAccessExpression(access) { - if (access.kind === 210 /* PropertyAccessExpression */) { + if (access.kind === 211 /* PropertyAccessExpression */) { const res = action(access.name); if (res !== void 0) { return res; } - } else if (access.kind === 211 /* ElementAccessExpression */) { + } else if (access.kind === 212 /* ElementAccessExpression */) { if (isIdentifier(access.argumentExpression) || isStringLiteralLike(access.argumentExpression)) { const res = action(access.argumentExpression); if (res !== void 0) { @@ -17682,28 +17744,28 @@ ${lanes.join("\n")} function getLeftmostExpression(node, stopAtCallExpressions) { while (true) { switch (node.kind) { - case 224 /* PostfixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: node = node.operand; continue; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: node = node.left; continue; - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: node = node.condition; continue; - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: node = node.tag; continue; - case 212 /* CallExpression */: + case 213 /* CallExpression */: if (stopAtCallExpressions) { return node; } - case 233 /* AsExpression */: - case 211 /* ElementAccessExpression */: - case 210 /* PropertyAccessExpression */: - case 234 /* NonNullExpression */: - case 359 /* PartiallyEmittedExpression */: - case 237 /* SatisfiesExpression */: + case 234 /* AsExpression */: + case 212 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 235 /* NonNullExpression */: + case 360 /* PartiallyEmittedExpression */: + case 238 /* SatisfiesExpression */: node = node.expression; continue; } @@ -18161,6 +18223,9 @@ ${lanes.join("\n")} function getUseDefineForClassFields(compilerOptions) { return compilerOptions.useDefineForClassFields === void 0 ? getEmitScriptTarget(compilerOptions) >= 9 /* ES2022 */ : compilerOptions.useDefineForClassFields; } + function getEmitStandardClassFields(compilerOptions) { + return compilerOptions.useDefineForClassFields !== false && getEmitScriptTarget(compilerOptions) >= 9 /* ES2022 */; + } function compilerOptionsAffectSemanticDiagnostics(newOptions, oldOptions) { return optionsHaveChanges(oldOptions, newOptions, semanticDiagnosticsOptionDeclarations); } @@ -18346,7 +18411,7 @@ ${lanes.join("\n")} function replaceWildcardCharacter(match, singleAsteriskRegexFragment) { return match === "*" ? singleAsteriskRegexFragment : match === "?" ? "[^/]" : "\\" + match; } - function getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames, currentDirectory) { + function getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames2, currentDirectory) { path = normalizePath(path); currentDirectory = normalizePath(currentDirectory); const absolutePath = combinePaths(currentDirectory, path); @@ -18355,22 +18420,22 @@ ${lanes.join("\n")} includeFilePattern: getRegularExpressionForWildcard(includes, absolutePath, "files"), includeDirectoryPattern: getRegularExpressionForWildcard(includes, absolutePath, "directories"), excludePattern: getRegularExpressionForWildcard(excludes, absolutePath, "exclude"), - basePaths: getBasePaths(path, includes, useCaseSensitiveFileNames) + basePaths: getBasePaths(path, includes, useCaseSensitiveFileNames2) }; } - function getRegexFromPattern(pattern, useCaseSensitiveFileNames) { - return new RegExp(pattern, useCaseSensitiveFileNames ? "" : "i"); + function getRegexFromPattern(pattern, useCaseSensitiveFileNames2) { + return new RegExp(pattern, useCaseSensitiveFileNames2 ? "" : "i"); } - function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath) { + function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames2, currentDirectory, depth, getFileSystemEntries, realpath) { path = normalizePath(path); currentDirectory = normalizePath(currentDirectory); - const patterns = getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames, currentDirectory); - const includeFileRegexes = patterns.includeFilePatterns && patterns.includeFilePatterns.map((pattern) => getRegexFromPattern(pattern, useCaseSensitiveFileNames)); - const includeDirectoryRegex = patterns.includeDirectoryPattern && getRegexFromPattern(patterns.includeDirectoryPattern, useCaseSensitiveFileNames); - const excludeRegex = patterns.excludePattern && getRegexFromPattern(patterns.excludePattern, useCaseSensitiveFileNames); + const patterns = getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames2, currentDirectory); + const includeFileRegexes = patterns.includeFilePatterns && patterns.includeFilePatterns.map((pattern) => getRegexFromPattern(pattern, useCaseSensitiveFileNames2)); + const includeDirectoryRegex = patterns.includeDirectoryPattern && getRegexFromPattern(patterns.includeDirectoryPattern, useCaseSensitiveFileNames2); + const excludeRegex = patterns.excludePattern && getRegexFromPattern(patterns.excludePattern, useCaseSensitiveFileNames2); const results = includeFileRegexes ? includeFileRegexes.map(() => []) : [[]]; const visited = /* @__PURE__ */ new Map(); - const toCanonical = createGetCanonicalFileName(useCaseSensitiveFileNames); + const toCanonical = createGetCanonicalFileName(useCaseSensitiveFileNames2); for (const basePath of patterns.basePaths) { visitDirectory(basePath, combinePaths(currentDirectory, basePath), depth); } @@ -18412,7 +18477,7 @@ ${lanes.join("\n")} } } } - function getBasePaths(path, includes, useCaseSensitiveFileNames) { + function getBasePaths(path, includes, useCaseSensitiveFileNames2) { const basePaths = [path]; if (includes) { const includeBasePaths = []; @@ -18420,9 +18485,9 @@ ${lanes.join("\n")} const absolute = isRootedDiskPath(include) ? include : normalizePath(combinePaths(path, include)); includeBasePaths.push(getIncludeBasePath(absolute)); } - includeBasePaths.sort(getStringComparer(!useCaseSensitiveFileNames)); + includeBasePaths.sort(getStringComparer(!useCaseSensitiveFileNames2)); for (const includeBasePath of includeBasePaths) { - if (every(basePaths, (basePath) => !containsPath(basePath, includeBasePath, path, !useCaseSensitiveFileNames))) { + if (every(basePaths, (basePath) => !containsPath(basePath, includeBasePath, path, !useCaseSensitiveFileNames2))) { basePaths.push(includeBasePath); } } @@ -18781,39 +18846,39 @@ ${lanes.join("\n")} return success && result === 10 /* BigIntLiteral */ && scanner2.getTokenEnd() === s.length + 1 && !(flags & 512 /* ContainsSeparator */) && (!roundTripOnly || s === pseudoBigIntToString({ negative, base10Value: parsePseudoBigInt(scanner2.getTokenValue()) })); } function isValidTypeOnlyAliasUseSite(useSite) { - return !!(useSite.flags & 16777216 /* Ambient */) || isPartOfTypeQuery(useSite) || isIdentifierInNonEmittingHeritageClause(useSite) || isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(useSite) || !(isExpressionNode(useSite) || isShorthandPropertyNameUseSite(useSite)); + return !!(useSite.flags & 33554432 /* Ambient */) || isPartOfTypeQuery(useSite) || isIdentifierInNonEmittingHeritageClause(useSite) || isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(useSite) || !(isExpressionNode(useSite) || isShorthandPropertyNameUseSite(useSite)); } function isShorthandPropertyNameUseSite(useSite) { return isIdentifier(useSite) && isShorthandPropertyAssignment(useSite.parent) && useSite.parent.name === useSite; } function isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(node) { - while (node.kind === 80 /* Identifier */ || node.kind === 210 /* PropertyAccessExpression */) { + while (node.kind === 80 /* Identifier */ || node.kind === 211 /* PropertyAccessExpression */) { node = node.parent; } - if (node.kind !== 166 /* ComputedPropertyName */) { + if (node.kind !== 167 /* ComputedPropertyName */) { return false; } if (hasSyntacticModifier(node.parent, 256 /* Abstract */)) { return true; } const containerKind = node.parent.parent.kind; - return containerKind === 263 /* InterfaceDeclaration */ || containerKind === 186 /* TypeLiteral */; + return containerKind === 264 /* InterfaceDeclaration */ || containerKind === 187 /* TypeLiteral */; } function isIdentifierInNonEmittingHeritageClause(node) { if (node.kind !== 80 /* Identifier */) return false; const heritageClause = findAncestor(node.parent, (parent2) => { switch (parent2.kind) { - case 297 /* HeritageClause */: + case 298 /* HeritageClause */: return true; - case 210 /* PropertyAccessExpression */: - case 232 /* ExpressionWithTypeArguments */: + case 211 /* PropertyAccessExpression */: + case 233 /* ExpressionWithTypeArguments */: return false; default: return "quit"; } }); - return (heritageClause == null ? void 0 : heritageClause.token) === 119 /* ImplementsKeyword */ || (heritageClause == null ? void 0 : heritageClause.parent.kind) === 263 /* InterfaceDeclaration */; + return (heritageClause == null ? void 0 : heritageClause.token) === 119 /* ImplementsKeyword */ || (heritageClause == null ? void 0 : heritageClause.parent.kind) === 264 /* InterfaceDeclaration */; } function isIdentifierTypeReference(node) { return isTypeReferenceNode(node) && isIdentifier(node.typeName); @@ -18925,20 +18990,20 @@ ${lanes.join("\n")} if (!node.parent) return void 0; switch (node.kind) { - case 167 /* TypeParameter */: + case 168 /* TypeParameter */: const { parent: parent3 } = node; - return parent3.kind === 194 /* InferType */ ? void 0 : parent3.typeParameters; - case 168 /* Parameter */: + return parent3.kind === 195 /* InferType */ ? void 0 : parent3.typeParameters; + case 169 /* Parameter */: return node.parent.parameters; - case 203 /* TemplateLiteralTypeSpan */: + case 204 /* TemplateLiteralTypeSpan */: return node.parent.templateSpans; - case 238 /* TemplateSpan */: + case 239 /* TemplateSpan */: return node.parent.templateSpans; - case 169 /* Decorator */: { + case 170 /* Decorator */: { const { parent: parent4 } = node; return canHaveDecorators(parent4) ? parent4.modifiers : void 0; } - case 297 /* HeritageClause */: + case 298 /* HeritageClause */: return node.parent.heritageClauses; } const { parent: parent2 } = node; @@ -18946,43 +19011,43 @@ ${lanes.join("\n")} return isJSDocTypeLiteral(node.parent) ? void 0 : node.parent.tags; } switch (parent2.kind) { - case 186 /* TypeLiteral */: - case 263 /* InterfaceDeclaration */: + case 187 /* TypeLiteral */: + case 264 /* InterfaceDeclaration */: return isTypeElement(node) ? parent2.members : void 0; - case 191 /* UnionType */: - case 192 /* IntersectionType */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: return parent2.types; - case 188 /* TupleType */: - case 208 /* ArrayLiteralExpression */: - case 360 /* CommaListExpression */: - case 274 /* NamedImports */: - case 278 /* NamedExports */: + case 189 /* TupleType */: + case 209 /* ArrayLiteralExpression */: + case 361 /* CommaListExpression */: + case 275 /* NamedImports */: + case 279 /* NamedExports */: return parent2.elements; - case 209 /* ObjectLiteralExpression */: - case 291 /* JsxAttributes */: + case 210 /* ObjectLiteralExpression */: + case 292 /* JsxAttributes */: return parent2.properties; - case 212 /* CallExpression */: - case 213 /* NewExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: return isTypeNode(node) ? parent2.typeArguments : parent2.expression === node ? void 0 : parent2.arguments; - case 283 /* JsxElement */: - case 287 /* JsxFragment */: + case 284 /* JsxElement */: + case 288 /* JsxFragment */: return isJsxChild(node) ? parent2.children : void 0; - case 285 /* JsxOpeningElement */: - case 284 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: return isTypeNode(node) ? parent2.typeArguments : void 0; - case 240 /* Block */: - case 295 /* CaseClause */: - case 296 /* DefaultClause */: - case 267 /* ModuleBlock */: + case 241 /* Block */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: + case 268 /* ModuleBlock */: return parent2.statements; - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: return parent2.clauses; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return isClassElement(node) ? parent2.members : void 0; - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return isEnumMember(node) ? parent2.members : void 0; - case 311 /* SourceFile */: + case 312 /* SourceFile */: return parent2.statements; } } @@ -18991,7 +19056,7 @@ ${lanes.join("\n")} if (some(node.parameters, (p) => !getEffectiveTypeAnnotationNode(p))) { return true; } - if (node.kind !== 218 /* ArrowFunction */) { + if (node.kind !== 219 /* ArrowFunction */) { const parameter = firstOrUndefined(node.parameters); if (!(parameter && parameterIsThisKeyword(parameter))) { return true; @@ -19004,14 +19069,14 @@ ${lanes.join("\n")} return name === "Infinity" || name === "-Infinity" || name === "NaN"; } function isCatchClauseVariableDeclaration(node) { - return node.kind === 259 /* VariableDeclaration */ && node.parent.kind === 298 /* CatchClause */; + return node.kind === 260 /* VariableDeclaration */ && node.parent.kind === 299 /* CatchClause */; } function isParameterOrCatchClauseVariable(symbol) { const declaration = symbol.valueDeclaration && getRootDeclaration(symbol.valueDeclaration); return !!declaration && (isParameter(declaration) || isCatchClauseVariableDeclaration(declaration)); } function isFunctionExpressionOrArrowFunction(node) { - return node.kind === 217 /* FunctionExpression */ || node.kind === 218 /* ArrowFunction */; + return node.kind === 218 /* FunctionExpression */ || node.kind === 219 /* ArrowFunction */; } function escapeSnippetText(text) { return text.replace(/\$/gm, () => "\\$"); @@ -19074,23 +19139,23 @@ ${lanes.join("\n")} } function getParameterTypeNode(parameter) { var _a; - return parameter.kind === 347 /* JSDocParameterTag */ ? (_a = parameter.typeExpression) == null ? void 0 : _a.type : parameter.type; + return parameter.kind === 348 /* JSDocParameterTag */ ? (_a = parameter.typeExpression) == null ? void 0 : _a.type : parameter.type; } function isTypeDeclaration(node) { switch (node.kind) { - case 167 /* TypeParameter */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 265 /* EnumDeclaration */: - case 352 /* JSDocTypedefTag */: - case 344 /* JSDocCallbackTag */: - case 346 /* JSDocEnumTag */: + case 168 /* TypeParameter */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 266 /* EnumDeclaration */: + case 353 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: + case 347 /* JSDocEnumTag */: return true; - case 272 /* ImportClause */: + case 273 /* ImportClause */: return node.isTypeOnly; - case 275 /* ImportSpecifier */: - case 280 /* ExportSpecifier */: + case 276 /* ImportSpecifier */: + case 281 /* ExportSpecifier */: return node.parent.parent.isTypeOnly; default: return false; @@ -19104,7 +19169,7 @@ ${lanes.join("\n")} return false; } const { isBracketed, typeExpression } = node; - return isBracketed || !!typeExpression && typeExpression.type.kind === 322 /* JSDocOptionalType */; + return isBracketed || !!typeExpression && typeExpression.type.kind === 323 /* JSDocOptionalType */; } function canUsePropertyAccess(name, languageVersion) { if (name.length === 0) { @@ -19119,17 +19184,17 @@ ${lanes.join("\n")} } function isJSDocOptionalParameter(node) { return isInJSFile(node) && // node.type should only be a JSDocOptionalType when node is a parameter of a JSDocFunctionType - (node.type && node.type.kind === 322 /* JSDocOptionalType */ || getJSDocParameterTags(node).some(({ isBracketed, typeExpression }) => isBracketed || !!typeExpression && typeExpression.type.kind === 322 /* JSDocOptionalType */)); + (node.type && node.type.kind === 323 /* JSDocOptionalType */ || getJSDocParameterTags(node).some(({ isBracketed, typeExpression }) => isBracketed || !!typeExpression && typeExpression.type.kind === 323 /* JSDocOptionalType */)); } function isOptionalDeclaration(declaration) { switch (declaration.kind) { - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: return !!declaration.questionToken; - case 168 /* Parameter */: + case 169 /* Parameter */: return !!declaration.questionToken || isJSDocOptionalParameter(declaration); - case 354 /* JSDocPropertyTag */: - case 347 /* JSDocParameterTag */: + case 355 /* JSDocPropertyTag */: + case 348 /* JSDocParameterTag */: return isOptionalJSDocPropertyLikeTag(declaration); default: return false; @@ -19137,7 +19202,7 @@ ${lanes.join("\n")} } function isNonNullAccess(node) { const kind = node.kind; - return (kind === 210 /* PropertyAccessExpression */ || kind === 211 /* ElementAccessExpression */) && isNonNullExpression(node.expression); + return (kind === 211 /* PropertyAccessExpression */ || kind === 212 /* ElementAccessExpression */) && isNonNullExpression(node.expression); } function isJSDocSatisfiesExpression(node) { return isInJSFile(node) && isParenthesizedExpression(node) && hasJSDocNodes(node) && !!getJSDocSatisfiesTag(node); @@ -19157,7 +19222,7 @@ ${lanes.join("\n")} } function isJsxAttributeName(node) { const kind = node.kind; - return kind === 80 /* Identifier */ || kind === 294 /* JsxNamespacedName */; + return kind === 80 /* Identifier */ || kind === 295 /* JsxNamespacedName */; } function getEscapedTextOfJsxNamespacedName(node) { return `${node.namespace.escapedText}:${idText(node.name)}`; @@ -19168,6 +19233,18 @@ ${lanes.join("\n")} function intrinsicTagNameToString(node) { return isIdentifier(node) ? idText(node) : getTextOfJsxNamespacedName(node); } + function isTypeUsableAsPropertyName(type) { + return !!(type.flags & 8576 /* StringOrNumberLiteralOrUnique */); + } + function getPropertyNameFromType(type) { + if (type.flags & 8192 /* UniqueESSymbol */) { + return type.escapedName; + } + if (type.flags & (128 /* StringLiteral */ | 256 /* NumberLiteral */)) { + return escapeLeadingUnderscores("" + type.value); + } + return Debug.fail(); + } var resolvingEmptyArray, externalHelpersModuleNameText, defaultMaximumTruncationLength, noTruncationMaximumTruncationLength, stringWriter, GetLiteralTextFlags, fullTripleSlashReferencePathRegEx, fullTripleSlashReferenceTypeReferenceDirectiveRegEx, fullTripleSlashLibReferenceRegEx, fullTripleSlashAMDReferencePathRegEx, fullTripleSlashAMDModuleRegEx, defaultLibReferenceRegEx, AssignmentKind, FunctionFlags, Associativity, OperatorPrecedence, templateSubstitutionRegExp, doubleQuoteEscapedCharsRegExp, singleQuoteEscapedCharsRegExp, backtickQuoteEscapedCharsRegExp, escapedCharsMap, nonAsciiCharacters, jsxDoubleQuoteEscapedCharsRegExp, jsxSingleQuoteEscapedCharsRegExp, jsxEscapedCharsMap, indentStrings, base64Digits, carriageReturnLineFeed, lineFeed, objectAllocator, objectAllocatorPatchers, localizedDiagnosticMessages, reservedCharacterPattern, wildcardCharCodes, commonPackageFolders, implicitExcludePathRegexPattern, filesMatcher, directoriesMatcher, excludeMatcher, wildcardMatchers, supportedTSExtensions, supportedTSExtensionsFlat, supportedTSExtensionsWithJson, supportedTSExtensionsForExtractExtension, supportedJSExtensions, supportedJSExtensionsFlat, allSupportedExtensions, allSupportedExtensionsWithJson, supportedDeclarationExtensions, supportedTSImplementationExtensions, extensionsNotSupportingExtensionlessResolution, ModuleSpecifierEnding, extensionsToRemove, emptyFileSystemEntries; var init_utilities = __esm({ "src/compiler/utilities.ts"() { @@ -19240,9 +19317,9 @@ ${lanes.join("\n")} return OperatorPrecedence2; })(OperatorPrecedence || {}); templateSubstitutionRegExp = /\$\{/g; - doubleQuoteEscapedCharsRegExp = /[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g; - singleQuoteEscapedCharsRegExp = /[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g; - backtickQuoteEscapedCharsRegExp = /\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g; + doubleQuoteEscapedCharsRegExp = /[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g; + singleQuoteEscapedCharsRegExp = /[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g; + backtickQuoteEscapedCharsRegExp = /\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g; escapedCharsMap = new Map(Object.entries({ " ": "\\t", "\v": "\\v", @@ -19264,8 +19341,8 @@ ${lanes.join("\n")} // special case for CRLFs in backticks })); nonAsciiCharacters = /[^\u0000-\u007F]/g; - jsxDoubleQuoteEscapedCharsRegExp = /[\"\u0000-\u001f\u2028\u2029\u0085]/g; - jsxSingleQuoteEscapedCharsRegExp = /[\'\u0000-\u001f\u2028\u2029\u0085]/g; + jsxDoubleQuoteEscapedCharsRegExp = /["\u0000-\u001f\u2028\u2029\u0085]/g; + jsxSingleQuoteEscapedCharsRegExp = /['\u0000-\u001f\u2028\u2029\u0085]/g; jsxEscapedCharsMap = new Map(Object.entries({ '"': """, "'": "'" @@ -19286,7 +19363,7 @@ ${lanes.join("\n")} getSourceMapSourceConstructor: () => SourceMapSource }; objectAllocatorPatchers = []; - reservedCharacterPattern = /[^\w\s\/]/g; + reservedCharacterPattern = /[^\w\s/]/g; wildcardCharCodes = [42 /* asterisk */, 63 /* question */]; commonPackageFolders = ["node_modules", "bower_components", "jspm_packages"]; implicitExcludePathRegexPattern = `(?!(${commonPackageFolders.join("|")})(/|$))`; @@ -19477,16 +19554,16 @@ ${lanes.join("\n")} return parenthesizerRule; } function binaryOperandNeedsParentheses(binaryOperator, operand, isLeftSideOfBinary, leftOperand) { - const binaryOperatorPrecedence = getOperatorPrecedence(225 /* BinaryExpression */, binaryOperator); - const binaryOperatorAssociativity = getOperatorAssociativity(225 /* BinaryExpression */, binaryOperator); + const binaryOperatorPrecedence = getOperatorPrecedence(226 /* BinaryExpression */, binaryOperator); + const binaryOperatorAssociativity = getOperatorAssociativity(226 /* BinaryExpression */, binaryOperator); const emittedOperand = skipPartiallyEmittedExpressions(operand); - if (!isLeftSideOfBinary && operand.kind === 218 /* ArrowFunction */ && binaryOperatorPrecedence > 3 /* Assignment */) { + if (!isLeftSideOfBinary && operand.kind === 219 /* ArrowFunction */ && binaryOperatorPrecedence > 3 /* Assignment */) { return true; } const operandPrecedence = getExpressionPrecedence(emittedOperand); switch (compareValues(operandPrecedence, binaryOperatorPrecedence)) { case -1 /* LessThan */: - if (!isLeftSideOfBinary && binaryOperatorAssociativity === 1 /* Right */ && operand.kind === 228 /* YieldExpression */) { + if (!isLeftSideOfBinary && binaryOperatorAssociativity === 1 /* Right */ && operand.kind === 229 /* YieldExpression */) { return false; } return true; @@ -19520,7 +19597,7 @@ ${lanes.join("\n")} if (isLiteralKind(node.kind)) { return node.kind; } - if (node.kind === 225 /* BinaryExpression */ && node.operatorToken.kind === 40 /* PlusToken */) { + if (node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 40 /* PlusToken */) { if (node.cachedLiteralKind !== void 0) { return node.cachedLiteralKind; } @@ -19533,7 +19610,7 @@ ${lanes.join("\n")} } function parenthesizeBinaryOperand(binaryOperator, operand, isLeftSideOfBinary, leftOperand) { const skipped = skipPartiallyEmittedExpressions(operand); - if (skipped.kind === 216 /* ParenthesizedExpression */) { + if (skipped.kind === 217 /* ParenthesizedExpression */) { return operand; } return binaryOperandNeedsParentheses(binaryOperator, operand, isLeftSideOfBinary, leftOperand) ? factory2.createParenthesizedExpression(operand) : operand; @@ -19559,7 +19636,7 @@ ${lanes.join("\n")} return isCommaSequence(expression) ? factory2.createParenthesizedExpression(expression) : expression; } function parenthesizeConditionOfConditionalExpression(condition) { - const conditionalPrecedence = getOperatorPrecedence(226 /* ConditionalExpression */, 58 /* QuestionToken */); + const conditionalPrecedence = getOperatorPrecedence(227 /* ConditionalExpression */, 58 /* QuestionToken */); const emittedCondition = skipPartiallyEmittedExpressions(condition); const conditionPrecedence = getExpressionPrecedence(emittedCondition); if (compareValues(conditionPrecedence, conditionalPrecedence) !== 1 /* GreaterThan */) { @@ -19580,8 +19657,8 @@ ${lanes.join("\n")} /*stopAtCallExpressions*/ false ).kind) { - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: needsParens = true; } } @@ -19594,16 +19671,16 @@ ${lanes.join("\n")} true ); switch (leftmostExpr.kind) { - case 212 /* CallExpression */: + case 213 /* CallExpression */: return factory2.createParenthesizedExpression(expression); - case 213 /* NewExpression */: + case 214 /* NewExpression */: return !leftmostExpr.arguments ? factory2.createParenthesizedExpression(expression) : expression; } return parenthesizeLeftSideOfAccess(expression); } function parenthesizeLeftSideOfAccess(expression, optionalChain) { const emittedExpression = skipPartiallyEmittedExpressions(expression); - if (isLeftHandSideExpression(emittedExpression) && (emittedExpression.kind !== 213 /* NewExpression */ || emittedExpression.arguments) && (optionalChain || !isOptionalChain(emittedExpression))) { + if (isLeftHandSideExpression(emittedExpression) && (emittedExpression.kind !== 214 /* NewExpression */ || emittedExpression.arguments) && (optionalChain || !isOptionalChain(emittedExpression))) { return expression; } return setTextRange(factory2.createParenthesizedExpression(expression), expression); @@ -19621,7 +19698,7 @@ ${lanes.join("\n")} function parenthesizeExpressionForDisallowedComma(expression) { const emittedExpression = skipPartiallyEmittedExpressions(expression); const expressionPrecedence = getExpressionPrecedence(emittedExpression); - const commaPrecedence = getOperatorPrecedence(225 /* BinaryExpression */, 28 /* CommaToken */); + const commaPrecedence = getOperatorPrecedence(226 /* BinaryExpression */, 28 /* CommaToken */); return expressionPrecedence > commaPrecedence ? expression : setTextRange(factory2.createParenthesizedExpression(expression), expression); } function parenthesizeExpressionOfExpressionStatement(expression) { @@ -19629,7 +19706,7 @@ ${lanes.join("\n")} if (isCallExpression(emittedExpression)) { const callee = emittedExpression.expression; const kind = skipPartiallyEmittedExpressions(callee).kind; - if (kind === 217 /* FunctionExpression */ || kind === 218 /* ArrowFunction */) { + if (kind === 218 /* FunctionExpression */ || kind === 219 /* ArrowFunction */) { const updated = factory2.updateCallExpression( emittedExpression, setTextRange(factory2.createParenthesizedExpression(callee), callee), @@ -19644,7 +19721,7 @@ ${lanes.join("\n")} /*stopAtCallExpressions*/ false ).kind; - if (leftmostExpressionKind === 209 /* ObjectLiteralExpression */ || leftmostExpressionKind === 217 /* FunctionExpression */) { + if (leftmostExpressionKind === 210 /* ObjectLiteralExpression */ || leftmostExpressionKind === 218 /* FunctionExpression */) { return setTextRange(factory2.createParenthesizedExpression(expression), expression); } return expression; @@ -19654,31 +19731,31 @@ ${lanes.join("\n")} body, /*stopAtCallExpressions*/ false - ).kind === 209 /* ObjectLiteralExpression */)) { + ).kind === 210 /* ObjectLiteralExpression */)) { return setTextRange(factory2.createParenthesizedExpression(body), body); } return body; } function parenthesizeCheckTypeOfConditionalType(checkType) { switch (checkType.kind) { - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 193 /* ConditionalType */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 194 /* ConditionalType */: return factory2.createParenthesizedType(checkType); } return checkType; } function parenthesizeExtendsTypeOfConditionalType(extendsType) { switch (extendsType.kind) { - case 193 /* ConditionalType */: + case 194 /* ConditionalType */: return factory2.createParenthesizedType(extendsType); } return extendsType; } function parenthesizeConstituentTypeOfUnionType(type) { switch (type.kind) { - case 191 /* UnionType */: - case 192 /* IntersectionType */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: return factory2.createParenthesizedType(type); } return parenthesizeCheckTypeOfConditionalType(type); @@ -19688,8 +19765,8 @@ ${lanes.join("\n")} } function parenthesizeConstituentTypeOfIntersectionType(type) { switch (type.kind) { - case 191 /* UnionType */: - case 192 /* IntersectionType */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: return factory2.createParenthesizedType(type); } return parenthesizeConstituentTypeOfUnionType(type); @@ -19699,23 +19776,23 @@ ${lanes.join("\n")} } function parenthesizeOperandOfTypeOperator(type) { switch (type.kind) { - case 192 /* IntersectionType */: + case 193 /* IntersectionType */: return factory2.createParenthesizedType(type); } return parenthesizeConstituentTypeOfIntersectionType(type); } function parenthesizeOperandOfReadonlyTypeOperator(type) { switch (type.kind) { - case 197 /* TypeOperator */: + case 198 /* TypeOperator */: return factory2.createParenthesizedType(type); } return parenthesizeOperandOfTypeOperator(type); } function parenthesizeNonArrayTypeOfPostfixType(type) { switch (type.kind) { - case 194 /* InferType */: - case 197 /* TypeOperator */: - case 185 /* TypeQuery */: + case 195 /* InferType */: + case 198 /* TypeOperator */: + case 186 /* TypeQuery */: return factory2.createParenthesizedType(type); } return parenthesizeOperandOfTypeOperator(type); @@ -19807,6 +19884,7 @@ ${lanes.join("\n")} return { convertToFunctionBlock, convertToFunctionExpression, + convertToClassExpression, convertToArrayAssignmentElement, convertToObjectAssignmentElement, convertToAssignmentPattern, @@ -19824,10 +19902,11 @@ ${lanes.join("\n")} return body; } function convertToFunctionExpression(node) { + var _a; if (!node.body) return Debug.fail(`Cannot convert a FunctionDeclaration without a body`); const updated = factory2.createFunctionExpression( - getModifiers(node), + (_a = getModifiers(node)) == null ? void 0 : _a.filter((modifier) => !isExportModifier(modifier) && !isDefaultModifier(modifier)), node.asteriskToken, node.name, node.typeParameters, @@ -19846,6 +19925,26 @@ ${lanes.join("\n")} } return updated; } + function convertToClassExpression(node) { + var _a; + const updated = factory2.createClassExpression( + (_a = node.modifiers) == null ? void 0 : _a.filter((modifier) => !isExportModifier(modifier) && !isDefaultModifier(modifier)), + node.name, + node.typeParameters, + node.heritageClauses, + node.members + ); + setOriginalNode(updated, node); + setTextRange(updated, node); + if (getStartsOnNewLine(node)) { + setStartsOnNewLine( + updated, + /*newLine*/ + true + ); + } + return updated; + } function convertToArrayAssignmentElement(element) { if (isBindingElement(element)) { if (element.dotDotDotToken) { @@ -19880,11 +19979,11 @@ ${lanes.join("\n")} } function convertToAssignmentPattern(node) { switch (node.kind) { - case 206 /* ArrayBindingPattern */: - case 208 /* ArrayLiteralExpression */: + case 207 /* ArrayBindingPattern */: + case 209 /* ArrayLiteralExpression */: return convertToArrayAssignmentPattern(node); - case 205 /* ObjectBindingPattern */: - case 209 /* ObjectLiteralExpression */: + case 206 /* ObjectBindingPattern */: + case 210 /* ObjectLiteralExpression */: return convertToObjectAssignmentPattern(node); } } @@ -19927,6 +20026,7 @@ ${lanes.join("\n")} nullNodeConverters = { convertToFunctionBlock: notImplemented, convertToFunctionExpression: notImplemented, + convertToClassExpression: notImplemented, convertToArrayAssignmentElement: notImplemented, convertToObjectAssignmentElement: notImplemented, convertToAssignmentPattern: notImplemented, @@ -20239,40 +20339,40 @@ ${lanes.join("\n")} updateExternalModuleReference, // lazily load factory members for JSDoc types with similar structure get createJSDocAllType() { - return getJSDocPrimaryTypeCreateFunction(318 /* JSDocAllType */); + return getJSDocPrimaryTypeCreateFunction(319 /* JSDocAllType */); }, get createJSDocUnknownType() { - return getJSDocPrimaryTypeCreateFunction(319 /* JSDocUnknownType */); + return getJSDocPrimaryTypeCreateFunction(320 /* JSDocUnknownType */); }, get createJSDocNonNullableType() { - return getJSDocPrePostfixUnaryTypeCreateFunction(321 /* JSDocNonNullableType */); + return getJSDocPrePostfixUnaryTypeCreateFunction(322 /* JSDocNonNullableType */); }, get updateJSDocNonNullableType() { - return getJSDocPrePostfixUnaryTypeUpdateFunction(321 /* JSDocNonNullableType */); + return getJSDocPrePostfixUnaryTypeUpdateFunction(322 /* JSDocNonNullableType */); }, get createJSDocNullableType() { - return getJSDocPrePostfixUnaryTypeCreateFunction(320 /* JSDocNullableType */); + return getJSDocPrePostfixUnaryTypeCreateFunction(321 /* JSDocNullableType */); }, get updateJSDocNullableType() { - return getJSDocPrePostfixUnaryTypeUpdateFunction(320 /* JSDocNullableType */); + return getJSDocPrePostfixUnaryTypeUpdateFunction(321 /* JSDocNullableType */); }, get createJSDocOptionalType() { - return getJSDocUnaryTypeCreateFunction(322 /* JSDocOptionalType */); + return getJSDocUnaryTypeCreateFunction(323 /* JSDocOptionalType */); }, get updateJSDocOptionalType() { - return getJSDocUnaryTypeUpdateFunction(322 /* JSDocOptionalType */); + return getJSDocUnaryTypeUpdateFunction(323 /* JSDocOptionalType */); }, get createJSDocVariadicType() { - return getJSDocUnaryTypeCreateFunction(324 /* JSDocVariadicType */); + return getJSDocUnaryTypeCreateFunction(325 /* JSDocVariadicType */); }, get updateJSDocVariadicType() { - return getJSDocUnaryTypeUpdateFunction(324 /* JSDocVariadicType */); + return getJSDocUnaryTypeUpdateFunction(325 /* JSDocVariadicType */); }, get createJSDocNamepathType() { - return getJSDocUnaryTypeCreateFunction(325 /* JSDocNamepathType */); + return getJSDocUnaryTypeCreateFunction(326 /* JSDocNamepathType */); }, get updateJSDocNamepathType() { - return getJSDocUnaryTypeUpdateFunction(325 /* JSDocNamepathType */); + return getJSDocUnaryTypeUpdateFunction(326 /* JSDocNamepathType */); }, createJSDocFunctionType, updateJSDocFunctionType, @@ -20312,82 +20412,82 @@ ${lanes.join("\n")} updateJSDocLinkPlain, // lazily load factory members for JSDoc tags with similar structure get createJSDocTypeTag() { - return getJSDocTypeLikeTagCreateFunction(350 /* JSDocTypeTag */); + return getJSDocTypeLikeTagCreateFunction(351 /* JSDocTypeTag */); }, get updateJSDocTypeTag() { - return getJSDocTypeLikeTagUpdateFunction(350 /* JSDocTypeTag */); + return getJSDocTypeLikeTagUpdateFunction(351 /* JSDocTypeTag */); }, get createJSDocReturnTag() { - return getJSDocTypeLikeTagCreateFunction(348 /* JSDocReturnTag */); + return getJSDocTypeLikeTagCreateFunction(349 /* JSDocReturnTag */); }, get updateJSDocReturnTag() { - return getJSDocTypeLikeTagUpdateFunction(348 /* JSDocReturnTag */); + return getJSDocTypeLikeTagUpdateFunction(349 /* JSDocReturnTag */); }, get createJSDocThisTag() { - return getJSDocTypeLikeTagCreateFunction(349 /* JSDocThisTag */); + return getJSDocTypeLikeTagCreateFunction(350 /* JSDocThisTag */); }, get updateJSDocThisTag() { - return getJSDocTypeLikeTagUpdateFunction(349 /* JSDocThisTag */); + return getJSDocTypeLikeTagUpdateFunction(350 /* JSDocThisTag */); }, get createJSDocAuthorTag() { - return getJSDocSimpleTagCreateFunction(336 /* JSDocAuthorTag */); + return getJSDocSimpleTagCreateFunction(337 /* JSDocAuthorTag */); }, get updateJSDocAuthorTag() { - return getJSDocSimpleTagUpdateFunction(336 /* JSDocAuthorTag */); + return getJSDocSimpleTagUpdateFunction(337 /* JSDocAuthorTag */); }, get createJSDocClassTag() { - return getJSDocSimpleTagCreateFunction(338 /* JSDocClassTag */); + return getJSDocSimpleTagCreateFunction(339 /* JSDocClassTag */); }, get updateJSDocClassTag() { - return getJSDocSimpleTagUpdateFunction(338 /* JSDocClassTag */); + return getJSDocSimpleTagUpdateFunction(339 /* JSDocClassTag */); }, get createJSDocPublicTag() { - return getJSDocSimpleTagCreateFunction(339 /* JSDocPublicTag */); + return getJSDocSimpleTagCreateFunction(340 /* JSDocPublicTag */); }, get updateJSDocPublicTag() { - return getJSDocSimpleTagUpdateFunction(339 /* JSDocPublicTag */); + return getJSDocSimpleTagUpdateFunction(340 /* JSDocPublicTag */); }, get createJSDocPrivateTag() { - return getJSDocSimpleTagCreateFunction(340 /* JSDocPrivateTag */); + return getJSDocSimpleTagCreateFunction(341 /* JSDocPrivateTag */); }, get updateJSDocPrivateTag() { - return getJSDocSimpleTagUpdateFunction(340 /* JSDocPrivateTag */); + return getJSDocSimpleTagUpdateFunction(341 /* JSDocPrivateTag */); }, get createJSDocProtectedTag() { - return getJSDocSimpleTagCreateFunction(341 /* JSDocProtectedTag */); + return getJSDocSimpleTagCreateFunction(342 /* JSDocProtectedTag */); }, get updateJSDocProtectedTag() { - return getJSDocSimpleTagUpdateFunction(341 /* JSDocProtectedTag */); + return getJSDocSimpleTagUpdateFunction(342 /* JSDocProtectedTag */); }, get createJSDocReadonlyTag() { - return getJSDocSimpleTagCreateFunction(342 /* JSDocReadonlyTag */); + return getJSDocSimpleTagCreateFunction(343 /* JSDocReadonlyTag */); }, get updateJSDocReadonlyTag() { - return getJSDocSimpleTagUpdateFunction(342 /* JSDocReadonlyTag */); + return getJSDocSimpleTagUpdateFunction(343 /* JSDocReadonlyTag */); }, get createJSDocOverrideTag() { - return getJSDocSimpleTagCreateFunction(343 /* JSDocOverrideTag */); + return getJSDocSimpleTagCreateFunction(344 /* JSDocOverrideTag */); }, get updateJSDocOverrideTag() { - return getJSDocSimpleTagUpdateFunction(343 /* JSDocOverrideTag */); + return getJSDocSimpleTagUpdateFunction(344 /* JSDocOverrideTag */); }, get createJSDocDeprecatedTag() { - return getJSDocSimpleTagCreateFunction(337 /* JSDocDeprecatedTag */); + return getJSDocSimpleTagCreateFunction(338 /* JSDocDeprecatedTag */); }, get updateJSDocDeprecatedTag() { - return getJSDocSimpleTagUpdateFunction(337 /* JSDocDeprecatedTag */); + return getJSDocSimpleTagUpdateFunction(338 /* JSDocDeprecatedTag */); }, get createJSDocThrowsTag() { - return getJSDocTypeLikeTagCreateFunction(355 /* JSDocThrowsTag */); + return getJSDocTypeLikeTagCreateFunction(356 /* JSDocThrowsTag */); }, get updateJSDocThrowsTag() { - return getJSDocTypeLikeTagUpdateFunction(355 /* JSDocThrowsTag */); + return getJSDocTypeLikeTagUpdateFunction(356 /* JSDocThrowsTag */); }, get createJSDocSatisfiesTag() { - return getJSDocTypeLikeTagCreateFunction(356 /* JSDocSatisfiesTag */); + return getJSDocTypeLikeTagCreateFunction(357 /* JSDocSatisfiesTag */); }, get updateJSDocSatisfiesTag() { - return getJSDocTypeLikeTagUpdateFunction(356 /* JSDocSatisfiesTag */); + return getJSDocTypeLikeTagUpdateFunction(357 /* JSDocSatisfiesTag */); }, createJSDocEnumTag, updateJSDocEnumTag, @@ -20562,6 +20662,7 @@ ${lanes.join("\n")} createExportDefault, createExternalModuleExport, createTypeCheck, + createIsNotTypeCheck, createMethodCall, createGlobalMethodCall, createFunctionBindCall, @@ -20593,7 +20694,8 @@ ${lanes.join("\n")} ensureUseStrict, liftToBlock, mergeLexicalEnvironment, - updateModifiers + updateModifiers, + updateModifierLike }; forEach(nodeFactoryPatchers, (fn) => fn(factory2)); return factory2; @@ -20751,11 +20853,11 @@ ${lanes.join("\n")} } const node = createBaseIdentifier(escapeLeadingUnderscores(text)); if (hasExtendedUnicodeEscape) - node.flags |= 128 /* IdentifierHasExtendedUnicodeEscape */; + node.flags |= 256 /* IdentifierHasExtendedUnicodeEscape */; if (node.escapedText === "await") { node.transformFlags |= 67108864 /* ContainsPossibleTopLevelAwait */; } - if (node.flags & 128 /* IdentifierHasExtendedUnicodeEscape */) { + if (node.flags & 256 /* IdentifierHasExtendedUnicodeEscape */) { node.transformFlags |= 1024 /* ContainsES2015 */; } return node; @@ -20850,7 +20952,7 @@ ${lanes.join("\n")} return baseFactory2.createBaseTokenNode(kind); } function createToken(token) { - Debug.assert(token >= 0 /* FirstToken */ && token <= 164 /* LastToken */, "Invalid token"); + Debug.assert(token >= 0 /* FirstToken */ && token <= 165 /* LastToken */, "Invalid token"); Debug.assert(token <= 15 /* FirstTemplateToken */ || token >= 18 /* LastTemplateToken */, "Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."); Debug.assert(token <= 9 /* FirstLiteralToken */ || token >= 15 /* LastLiteralToken */, "Invalid token. Use 'createLiteralLikeNode' to create literals."); Debug.assert(token !== 80 /* Identifier */, "Invalid token. Use 'createIdentifier' to create identifiers"); @@ -20860,6 +20962,9 @@ ${lanes.join("\n")} case 134 /* AsyncKeyword */: transformFlags = 256 /* ContainsES2017 */ | 128 /* ContainsES2018 */; break; + case 160 /* UsingKeyword */: + transformFlags = 4 /* ContainsESNext */; + break; case 125 /* PublicKeyword */: case 123 /* PrivateKeyword */: case 124 /* ProtectedKeyword */: @@ -20869,12 +20974,12 @@ ${lanes.join("\n")} case 87 /* ConstKeyword */: case 133 /* AnyKeyword */: case 150 /* NumberKeyword */: - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: case 146 /* NeverKeyword */: case 151 /* ObjectKeyword */: case 103 /* InKeyword */: case 147 /* OutKeyword */: - case 163 /* OverrideKeyword */: + case 164 /* OverrideKeyword */: case 154 /* StringKeyword */: case 136 /* BooleanKeyword */: case 155 /* SymbolKeyword */: @@ -20942,7 +21047,7 @@ ${lanes.join("\n")} if (flags2 & 32 /* Static */) result.push(createModifier(126 /* StaticKeyword */)); if (flags2 & 16384 /* Override */) - result.push(createModifier(163 /* OverrideKeyword */)); + result.push(createModifier(164 /* OverrideKeyword */)); if (flags2 & 64 /* Readonly */) result.push(createModifier(148 /* ReadonlyKeyword */)); if (flags2 & 128 /* Accessor */) @@ -20956,7 +21061,7 @@ ${lanes.join("\n")} return result.length ? result : void 0; } function createQualifiedName(left, right) { - const node = createBaseNode(165 /* QualifiedName */); + const node = createBaseNode(166 /* QualifiedName */); node.left = left; node.right = asName(right); node.transformFlags |= propagateChildFlags(node.left) | propagateIdentifierNameFlags(node.right); @@ -20967,7 +21072,7 @@ ${lanes.join("\n")} return node.left !== left || node.right !== right ? update(createQualifiedName(left, right), node) : node; } function createComputedPropertyName(expression) { - const node = createBaseNode(166 /* ComputedPropertyName */); + const node = createBaseNode(167 /* ComputedPropertyName */); node.expression = parenthesizerRules().parenthesizeExpressionOfComputedPropertyName(expression); node.transformFlags |= propagateChildFlags(node.expression) | 1024 /* ContainsES2015 */ | 131072 /* ContainsComputedPropertyName */; return node; @@ -20976,7 +21081,7 @@ ${lanes.join("\n")} return node.expression !== expression ? update(createComputedPropertyName(expression), node) : node; } function createTypeParameterDeclaration(modifiers, name, constraint, defaultType) { - const node = createBaseDeclaration(167 /* TypeParameter */); + const node = createBaseDeclaration(168 /* TypeParameter */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.constraint = constraint; @@ -20990,7 +21095,7 @@ ${lanes.join("\n")} return node.modifiers !== modifiers || node.name !== name || node.constraint !== constraint || node.default !== defaultType ? update(createTypeParameterDeclaration(modifiers, name, constraint, defaultType), node) : node; } function createParameterDeclaration(modifiers, dotDotDotToken, name, questionToken, type, initializer) { - const node = createBaseDeclaration(168 /* Parameter */); + const node = createBaseDeclaration(169 /* Parameter */); node.modifiers = asNodeArray(modifiers); node.dotDotDotToken = dotDotDotToken; node.name = asName(name); @@ -21009,7 +21114,7 @@ ${lanes.join("\n")} return node.modifiers !== modifiers || node.dotDotDotToken !== dotDotDotToken || node.name !== name || node.questionToken !== questionToken || node.type !== type || node.initializer !== initializer ? update(createParameterDeclaration(modifiers, dotDotDotToken, name, questionToken, type, initializer), node) : node; } function createDecorator(expression) { - const node = createBaseNode(169 /* Decorator */); + const node = createBaseNode(170 /* Decorator */); node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess( expression, /*optionalChain*/ @@ -21022,7 +21127,7 @@ ${lanes.join("\n")} return node.expression !== expression ? update(createDecorator(expression), node) : node; } function createPropertySignature(modifiers, name, questionToken, type) { - const node = createBaseDeclaration(170 /* PropertySignature */); + const node = createBaseDeclaration(171 /* PropertySignature */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.type = type; @@ -21042,14 +21147,14 @@ ${lanes.join("\n")} return update(updated, original); } function createPropertyDeclaration(modifiers, name, questionOrExclamationToken, type, initializer) { - const node = createBaseDeclaration(171 /* PropertyDeclaration */); + const node = createBaseDeclaration(172 /* PropertyDeclaration */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.questionToken = questionOrExclamationToken && isQuestionToken(questionOrExclamationToken) ? questionOrExclamationToken : void 0; node.exclamationToken = questionOrExclamationToken && isExclamationToken(questionOrExclamationToken) ? questionOrExclamationToken : void 0; node.type = type; node.initializer = asInitializer(initializer); - const isAmbient = node.flags & 16777216 /* Ambient */ || modifiersToFlags(node.modifiers) & 2 /* Ambient */; + const isAmbient = node.flags & 33554432 /* Ambient */ || modifiersToFlags(node.modifiers) & 2 /* Ambient */; node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateNameFlags(node.name) | propagateChildFlags(node.initializer) | (isAmbient || node.questionToken || node.exclamationToken || node.type ? 1 /* ContainsTypeScript */ : 0 /* None */) | (isComputedPropertyName(node.name) || modifiersToFlags(node.modifiers) & 32 /* Static */ && node.initializer ? 8192 /* ContainsTypeScriptClassSyntax */ : 0 /* None */) | 16777216 /* ContainsClassFields */; node.jsDoc = void 0; return node; @@ -21058,7 +21163,7 @@ ${lanes.join("\n")} return node.modifiers !== modifiers || node.name !== name || node.questionToken !== (questionOrExclamationToken !== void 0 && isQuestionToken(questionOrExclamationToken) ? questionOrExclamationToken : void 0) || node.exclamationToken !== (questionOrExclamationToken !== void 0 && isExclamationToken(questionOrExclamationToken) ? questionOrExclamationToken : void 0) || node.type !== type || node.initializer !== initializer ? update(createPropertyDeclaration(modifiers, name, questionOrExclamationToken, type, initializer), node) : node; } function createMethodSignature(modifiers, name, questionToken, typeParameters, parameters, type) { - const node = createBaseDeclaration(172 /* MethodSignature */); + const node = createBaseDeclaration(173 /* MethodSignature */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.questionToken = questionToken; @@ -21076,7 +21181,7 @@ ${lanes.join("\n")} return node.modifiers !== modifiers || node.name !== name || node.questionToken !== questionToken || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type ? finishUpdateBaseSignatureDeclaration(createMethodSignature(modifiers, name, questionToken, typeParameters, parameters, type), node) : node; } function createMethodDeclaration(modifiers, asteriskToken, name, questionToken, typeParameters, parameters, type, body) { - const node = createBaseDeclaration(173 /* MethodDeclaration */); + const node = createBaseDeclaration(174 /* MethodDeclaration */); node.modifiers = asNodeArray(modifiers); node.asteriskToken = asteriskToken; node.name = asName(name); @@ -21113,7 +21218,7 @@ ${lanes.join("\n")} return update(updated, original); } function createClassStaticBlockDeclaration(body) { - const node = createBaseDeclaration(174 /* ClassStaticBlockDeclaration */); + const node = createBaseDeclaration(175 /* ClassStaticBlockDeclaration */); node.body = body; node.transformFlags = propagateChildFlags(body) | 16777216 /* ContainsClassFields */; node.modifiers = void 0; @@ -21134,7 +21239,7 @@ ${lanes.join("\n")} return update(updated, original); } function createConstructorDeclaration(modifiers, parameters, body) { - const node = createBaseDeclaration(175 /* Constructor */); + const node = createBaseDeclaration(176 /* Constructor */); node.modifiers = asNodeArray(modifiers); node.parameters = createNodeArray(parameters); node.body = body; @@ -21160,7 +21265,7 @@ ${lanes.join("\n")} return finishUpdateBaseSignatureDeclaration(updated, original); } function createGetAccessorDeclaration(modifiers, name, parameters, type, body) { - const node = createBaseDeclaration(176 /* GetAccessor */); + const node = createBaseDeclaration(177 /* GetAccessor */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.parameters = createNodeArray(parameters); @@ -21191,7 +21296,7 @@ ${lanes.join("\n")} return finishUpdateBaseSignatureDeclaration(updated, original); } function createSetAccessorDeclaration(modifiers, name, parameters, body) { - const node = createBaseDeclaration(177 /* SetAccessor */); + const node = createBaseDeclaration(178 /* SetAccessor */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.parameters = createNodeArray(parameters); @@ -21223,7 +21328,7 @@ ${lanes.join("\n")} return finishUpdateBaseSignatureDeclaration(updated, original); } function createCallSignature(typeParameters, parameters, type) { - const node = createBaseDeclaration(178 /* CallSignature */); + const node = createBaseDeclaration(179 /* CallSignature */); node.typeParameters = asNodeArray(typeParameters); node.parameters = asNodeArray(parameters); node.type = type; @@ -21238,7 +21343,7 @@ ${lanes.join("\n")} return node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type ? finishUpdateBaseSignatureDeclaration(createCallSignature(typeParameters, parameters, type), node) : node; } function createConstructSignature(typeParameters, parameters, type) { - const node = createBaseDeclaration(179 /* ConstructSignature */); + const node = createBaseDeclaration(180 /* ConstructSignature */); node.typeParameters = asNodeArray(typeParameters); node.parameters = asNodeArray(parameters); node.type = type; @@ -21253,7 +21358,7 @@ ${lanes.join("\n")} return node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type ? finishUpdateBaseSignatureDeclaration(createConstructSignature(typeParameters, parameters, type), node) : node; } function createIndexSignature(modifiers, parameters, type) { - const node = createBaseDeclaration(180 /* IndexSignature */); + const node = createBaseDeclaration(181 /* IndexSignature */); node.modifiers = asNodeArray(modifiers); node.parameters = asNodeArray(parameters); node.type = type; @@ -21268,7 +21373,7 @@ ${lanes.join("\n")} return node.parameters !== parameters || node.type !== type || node.modifiers !== modifiers ? finishUpdateBaseSignatureDeclaration(createIndexSignature(modifiers, parameters, type), node) : node; } function createTemplateLiteralTypeSpan(type, literal) { - const node = createBaseNode(203 /* TemplateLiteralTypeSpan */); + const node = createBaseNode(204 /* TemplateLiteralTypeSpan */); node.type = type; node.literal = literal; node.transformFlags = 1 /* ContainsTypeScript */; @@ -21281,7 +21386,7 @@ ${lanes.join("\n")} return createToken(kind); } function createTypePredicateNode(assertsModifier, parameterName, type) { - const node = createBaseNode(181 /* TypePredicate */); + const node = createBaseNode(182 /* TypePredicate */); node.assertsModifier = assertsModifier; node.parameterName = asName(parameterName); node.type = type; @@ -21292,7 +21397,7 @@ ${lanes.join("\n")} return node.assertsModifier !== assertsModifier || node.parameterName !== parameterName || node.type !== type ? update(createTypePredicateNode(assertsModifier, parameterName, type), node) : node; } function createTypeReferenceNode(typeName, typeArguments) { - const node = createBaseNode(182 /* TypeReference */); + const node = createBaseNode(183 /* TypeReference */); node.typeName = asName(typeName); node.typeArguments = typeArguments && parenthesizerRules().parenthesizeTypeArguments(createNodeArray(typeArguments)); node.transformFlags = 1 /* ContainsTypeScript */; @@ -21302,7 +21407,7 @@ ${lanes.join("\n")} return node.typeName !== typeName || node.typeArguments !== typeArguments ? update(createTypeReferenceNode(typeName, typeArguments), node) : node; } function createFunctionTypeNode(typeParameters, parameters, type) { - const node = createBaseDeclaration(183 /* FunctionType */); + const node = createBaseDeclaration(184 /* FunctionType */); node.typeParameters = asNodeArray(typeParameters); node.parameters = asNodeArray(parameters); node.type = type; @@ -21327,7 +21432,7 @@ ${lanes.join("\n")} return args.length === 4 ? createConstructorTypeNode1(...args) : args.length === 3 ? createConstructorTypeNode2(...args) : Debug.fail("Incorrect number of arguments specified."); } function createConstructorTypeNode1(modifiers, typeParameters, parameters, type) { - const node = createBaseDeclaration(184 /* ConstructorType */); + const node = createBaseDeclaration(185 /* ConstructorType */); node.modifiers = asNodeArray(modifiers); node.typeParameters = asNodeArray(typeParameters); node.parameters = asNodeArray(parameters); @@ -21358,7 +21463,7 @@ ${lanes.join("\n")} return updateConstructorTypeNode1(node, node.modifiers, typeParameters, parameters, type); } function createTypeQueryNode(exprName, typeArguments) { - const node = createBaseNode(185 /* TypeQuery */); + const node = createBaseNode(186 /* TypeQuery */); node.exprName = exprName; node.typeArguments = typeArguments && parenthesizerRules().parenthesizeTypeArguments(typeArguments); node.transformFlags = 1 /* ContainsTypeScript */; @@ -21368,7 +21473,7 @@ ${lanes.join("\n")} return node.exprName !== exprName || node.typeArguments !== typeArguments ? update(createTypeQueryNode(exprName, typeArguments), node) : node; } function createTypeLiteralNode(members) { - const node = createBaseDeclaration(186 /* TypeLiteral */); + const node = createBaseDeclaration(187 /* TypeLiteral */); node.members = createNodeArray(members); node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -21377,7 +21482,7 @@ ${lanes.join("\n")} return node.members !== members ? update(createTypeLiteralNode(members), node) : node; } function createArrayTypeNode(elementType) { - const node = createBaseNode(187 /* ArrayType */); + const node = createBaseNode(188 /* ArrayType */); node.elementType = parenthesizerRules().parenthesizeNonArrayTypeOfPostfixType(elementType); node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -21386,7 +21491,7 @@ ${lanes.join("\n")} return node.elementType !== elementType ? update(createArrayTypeNode(elementType), node) : node; } function createTupleTypeNode(elements) { - const node = createBaseNode(188 /* TupleType */); + const node = createBaseNode(189 /* TupleType */); node.elements = createNodeArray(parenthesizerRules().parenthesizeElementTypesOfTupleType(elements)); node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -21395,7 +21500,7 @@ ${lanes.join("\n")} return node.elements !== elements ? update(createTupleTypeNode(elements), node) : node; } function createNamedTupleMember(dotDotDotToken, name, questionToken, type) { - const node = createBaseDeclaration(201 /* NamedTupleMember */); + const node = createBaseDeclaration(202 /* NamedTupleMember */); node.dotDotDotToken = dotDotDotToken; node.name = name; node.questionToken = questionToken; @@ -21408,7 +21513,7 @@ ${lanes.join("\n")} return node.dotDotDotToken !== dotDotDotToken || node.name !== name || node.questionToken !== questionToken || node.type !== type ? update(createNamedTupleMember(dotDotDotToken, name, questionToken, type), node) : node; } function createOptionalTypeNode(type) { - const node = createBaseNode(189 /* OptionalType */); + const node = createBaseNode(190 /* OptionalType */); node.type = parenthesizerRules().parenthesizeTypeOfOptionalType(type); node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -21417,7 +21522,7 @@ ${lanes.join("\n")} return node.type !== type ? update(createOptionalTypeNode(type), node) : node; } function createRestTypeNode(type) { - const node = createBaseNode(190 /* RestType */); + const node = createBaseNode(191 /* RestType */); node.type = type; node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -21435,19 +21540,19 @@ ${lanes.join("\n")} return node.types !== types ? update(createUnionOrIntersectionTypeNode(node.kind, types, parenthesize), node) : node; } function createUnionTypeNode(types) { - return createUnionOrIntersectionTypeNode(191 /* UnionType */, types, parenthesizerRules().parenthesizeConstituentTypesOfUnionType); + return createUnionOrIntersectionTypeNode(192 /* UnionType */, types, parenthesizerRules().parenthesizeConstituentTypesOfUnionType); } function updateUnionTypeNode(node, types) { return updateUnionOrIntersectionTypeNode(node, types, parenthesizerRules().parenthesizeConstituentTypesOfUnionType); } function createIntersectionTypeNode(types) { - return createUnionOrIntersectionTypeNode(192 /* IntersectionType */, types, parenthesizerRules().parenthesizeConstituentTypesOfIntersectionType); + return createUnionOrIntersectionTypeNode(193 /* IntersectionType */, types, parenthesizerRules().parenthesizeConstituentTypesOfIntersectionType); } function updateIntersectionTypeNode(node, types) { return updateUnionOrIntersectionTypeNode(node, types, parenthesizerRules().parenthesizeConstituentTypesOfIntersectionType); } function createConditionalTypeNode(checkType, extendsType, trueType, falseType) { - const node = createBaseNode(193 /* ConditionalType */); + const node = createBaseNode(194 /* ConditionalType */); node.checkType = parenthesizerRules().parenthesizeCheckTypeOfConditionalType(checkType); node.extendsType = parenthesizerRules().parenthesizeExtendsTypeOfConditionalType(extendsType); node.trueType = trueType; @@ -21461,7 +21566,7 @@ ${lanes.join("\n")} return node.checkType !== checkType || node.extendsType !== extendsType || node.trueType !== trueType || node.falseType !== falseType ? update(createConditionalTypeNode(checkType, extendsType, trueType, falseType), node) : node; } function createInferTypeNode(typeParameter) { - const node = createBaseNode(194 /* InferType */); + const node = createBaseNode(195 /* InferType */); node.typeParameter = typeParameter; node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -21470,7 +21575,7 @@ ${lanes.join("\n")} return node.typeParameter !== typeParameter ? update(createInferTypeNode(typeParameter), node) : node; } function createTemplateLiteralType(head, templateSpans) { - const node = createBaseNode(202 /* TemplateLiteralType */); + const node = createBaseNode(203 /* TemplateLiteralType */); node.head = head; node.templateSpans = createNodeArray(templateSpans); node.transformFlags = 1 /* ContainsTypeScript */; @@ -21480,7 +21585,7 @@ ${lanes.join("\n")} return node.head !== head || node.templateSpans !== templateSpans ? update(createTemplateLiteralType(head, templateSpans), node) : node; } function createImportTypeNode(argument, assertions, qualifier, typeArguments, isTypeOf = false) { - const node = createBaseNode(204 /* ImportType */); + const node = createBaseNode(205 /* ImportType */); node.argument = argument; node.assertions = assertions; node.qualifier = qualifier; @@ -21493,7 +21598,7 @@ ${lanes.join("\n")} return node.argument !== argument || node.assertions !== assertions || node.qualifier !== qualifier || node.typeArguments !== typeArguments || node.isTypeOf !== isTypeOf ? update(createImportTypeNode(argument, assertions, qualifier, typeArguments, isTypeOf), node) : node; } function createParenthesizedType(type) { - const node = createBaseNode(195 /* ParenthesizedType */); + const node = createBaseNode(196 /* ParenthesizedType */); node.type = type; node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -21502,12 +21607,12 @@ ${lanes.join("\n")} return node.type !== type ? update(createParenthesizedType(type), node) : node; } function createThisTypeNode() { - const node = createBaseNode(196 /* ThisType */); + const node = createBaseNode(197 /* ThisType */); node.transformFlags = 1 /* ContainsTypeScript */; return node; } function createTypeOperatorNode(operator, type) { - const node = createBaseNode(197 /* TypeOperator */); + const node = createBaseNode(198 /* TypeOperator */); node.operator = operator; node.type = operator === 148 /* ReadonlyKeyword */ ? parenthesizerRules().parenthesizeOperandOfReadonlyTypeOperator(type) : parenthesizerRules().parenthesizeOperandOfTypeOperator(type); node.transformFlags = 1 /* ContainsTypeScript */; @@ -21517,7 +21622,7 @@ ${lanes.join("\n")} return node.type !== type ? update(createTypeOperatorNode(node.operator, type), node) : node; } function createIndexedAccessTypeNode(objectType, indexType) { - const node = createBaseNode(198 /* IndexedAccessType */); + const node = createBaseNode(199 /* IndexedAccessType */); node.objectType = parenthesizerRules().parenthesizeNonArrayTypeOfPostfixType(objectType); node.indexType = indexType; node.transformFlags = 1 /* ContainsTypeScript */; @@ -21527,7 +21632,7 @@ ${lanes.join("\n")} return node.objectType !== objectType || node.indexType !== indexType ? update(createIndexedAccessTypeNode(objectType, indexType), node) : node; } function createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type, members) { - const node = createBaseDeclaration(199 /* MappedType */); + const node = createBaseDeclaration(200 /* MappedType */); node.readonlyToken = readonlyToken; node.typeParameter = typeParameter; node.nameType = nameType; @@ -21543,7 +21648,7 @@ ${lanes.join("\n")} return node.readonlyToken !== readonlyToken || node.typeParameter !== typeParameter || node.nameType !== nameType || node.questionToken !== questionToken || node.type !== type || node.members !== members ? update(createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type, members), node) : node; } function createLiteralTypeNode(literal) { - const node = createBaseNode(200 /* LiteralType */); + const node = createBaseNode(201 /* LiteralType */); node.literal = literal; node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -21552,7 +21657,7 @@ ${lanes.join("\n")} return node.literal !== literal ? update(createLiteralTypeNode(literal), node) : node; } function createObjectBindingPattern(elements) { - const node = createBaseNode(205 /* ObjectBindingPattern */); + const node = createBaseNode(206 /* ObjectBindingPattern */); node.elements = createNodeArray(elements); node.transformFlags |= propagateChildrenFlags(node.elements) | 1024 /* ContainsES2015 */ | 524288 /* ContainsBindingPattern */; if (node.transformFlags & 32768 /* ContainsRestOrSpread */) { @@ -21564,7 +21669,7 @@ ${lanes.join("\n")} return node.elements !== elements ? update(createObjectBindingPattern(elements), node) : node; } function createArrayBindingPattern(elements) { - const node = createBaseNode(206 /* ArrayBindingPattern */); + const node = createBaseNode(207 /* ArrayBindingPattern */); node.elements = createNodeArray(elements); node.transformFlags |= propagateChildrenFlags(node.elements) | 1024 /* ContainsES2015 */ | 524288 /* ContainsBindingPattern */; return node; @@ -21573,7 +21678,7 @@ ${lanes.join("\n")} return node.elements !== elements ? update(createArrayBindingPattern(elements), node) : node; } function createBindingElement(dotDotDotToken, propertyName, name, initializer) { - const node = createBaseDeclaration(207 /* BindingElement */); + const node = createBaseDeclaration(208 /* BindingElement */); node.dotDotDotToken = dotDotDotToken; node.propertyName = asName(propertyName); node.name = asName(name); @@ -21586,7 +21691,7 @@ ${lanes.join("\n")} return node.propertyName !== propertyName || node.dotDotDotToken !== dotDotDotToken || node.name !== name || node.initializer !== initializer ? update(createBindingElement(dotDotDotToken, propertyName, name, initializer), node) : node; } function createArrayLiteralExpression(elements, multiLine) { - const node = createBaseNode(208 /* ArrayLiteralExpression */); + const node = createBaseNode(209 /* ArrayLiteralExpression */); const lastElement = elements && lastOrUndefined(elements); const elementsArray = createNodeArray(elements, lastElement && isOmittedExpression(lastElement) ? true : void 0); node.elements = parenthesizerRules().parenthesizeExpressionsOfCommaDelimitedList(elementsArray); @@ -21598,7 +21703,7 @@ ${lanes.join("\n")} return node.elements !== elements ? update(createArrayLiteralExpression(elements, node.multiLine), node) : node; } function createObjectLiteralExpression(properties, multiLine) { - const node = createBaseDeclaration(209 /* ObjectLiteralExpression */); + const node = createBaseDeclaration(210 /* ObjectLiteralExpression */); node.properties = createNodeArray(properties); node.multiLine = multiLine; node.transformFlags |= propagateChildrenFlags(node.properties); @@ -21609,7 +21714,7 @@ ${lanes.join("\n")} return node.properties !== properties ? update(createObjectLiteralExpression(properties, node.multiLine), node) : node; } function createBasePropertyAccessExpression(expression, questionDotToken, name) { - const node = createBaseDeclaration(210 /* PropertyAccessExpression */); + const node = createBaseDeclaration(211 /* PropertyAccessExpression */); node.expression = expression; node.questionDotToken = questionDotToken; node.name = name; @@ -21650,16 +21755,16 @@ ${lanes.join("\n")} questionDotToken, asName(name) ); - node.flags |= 32 /* OptionalChain */; + node.flags |= 64 /* OptionalChain */; node.transformFlags |= 32 /* ContainsES2020 */; return node; } function updatePropertyAccessChain(node, expression, questionDotToken, name) { - Debug.assert(!!(node.flags & 32 /* OptionalChain */), "Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."); + Debug.assert(!!(node.flags & 64 /* OptionalChain */), "Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."); return node.expression !== expression || node.questionDotToken !== questionDotToken || node.name !== name ? update(createPropertyAccessChain(expression, questionDotToken, name), node) : node; } function createBaseElementAccessExpression(expression, questionDotToken, argumentExpression) { - const node = createBaseDeclaration(211 /* ElementAccessExpression */); + const node = createBaseDeclaration(212 /* ElementAccessExpression */); node.expression = expression; node.questionDotToken = questionDotToken; node.argumentExpression = argumentExpression; @@ -21700,16 +21805,16 @@ ${lanes.join("\n")} questionDotToken, asExpression(index) ); - node.flags |= 32 /* OptionalChain */; + node.flags |= 64 /* OptionalChain */; node.transformFlags |= 32 /* ContainsES2020 */; return node; } function updateElementAccessChain(node, expression, questionDotToken, argumentExpression) { - Debug.assert(!!(node.flags & 32 /* OptionalChain */), "Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."); + Debug.assert(!!(node.flags & 64 /* OptionalChain */), "Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."); return node.expression !== expression || node.questionDotToken !== questionDotToken || node.argumentExpression !== argumentExpression ? update(createElementAccessChain(expression, questionDotToken, argumentExpression), node) : node; } function createBaseCallExpression(expression, questionDotToken, typeArguments, argumentsArray) { - const node = createBaseDeclaration(212 /* CallExpression */); + const node = createBaseDeclaration(213 /* CallExpression */); node.expression = expression; node.questionDotToken = questionDotToken; node.typeArguments = typeArguments; @@ -21757,16 +21862,16 @@ ${lanes.join("\n")} asNodeArray(typeArguments), parenthesizerRules().parenthesizeExpressionsOfCommaDelimitedList(createNodeArray(argumentsArray)) ); - node.flags |= 32 /* OptionalChain */; + node.flags |= 64 /* OptionalChain */; node.transformFlags |= 32 /* ContainsES2020 */; return node; } function updateCallChain(node, expression, questionDotToken, typeArguments, argumentsArray) { - Debug.assert(!!(node.flags & 32 /* OptionalChain */), "Cannot update a CallExpression using updateCallChain. Use updateCall instead."); + Debug.assert(!!(node.flags & 64 /* OptionalChain */), "Cannot update a CallExpression using updateCallChain. Use updateCall instead."); return node.expression !== expression || node.questionDotToken !== questionDotToken || node.typeArguments !== typeArguments || node.arguments !== argumentsArray ? update(createCallChain(expression, questionDotToken, typeArguments, argumentsArray), node) : node; } function createNewExpression(expression, typeArguments, argumentsArray) { - const node = createBaseDeclaration(213 /* NewExpression */); + const node = createBaseDeclaration(214 /* NewExpression */); node.expression = parenthesizerRules().parenthesizeExpressionOfNew(expression); node.typeArguments = asNodeArray(typeArguments); node.arguments = argumentsArray ? parenthesizerRules().parenthesizeExpressionsOfCommaDelimitedList(argumentsArray) : void 0; @@ -21780,7 +21885,7 @@ ${lanes.join("\n")} return node.expression !== expression || node.typeArguments !== typeArguments || node.arguments !== argumentsArray ? update(createNewExpression(expression, typeArguments, argumentsArray), node) : node; } function createTaggedTemplateExpression(tag, typeArguments, template) { - const node = createBaseNode(214 /* TaggedTemplateExpression */); + const node = createBaseNode(215 /* TaggedTemplateExpression */); node.tag = parenthesizerRules().parenthesizeLeftSideOfAccess( tag, /*optionalChain*/ @@ -21801,7 +21906,7 @@ ${lanes.join("\n")} return node.tag !== tag || node.typeArguments !== typeArguments || node.template !== template ? update(createTaggedTemplateExpression(tag, typeArguments, template), node) : node; } function createTypeAssertion(type, expression) { - const node = createBaseNode(215 /* TypeAssertionExpression */); + const node = createBaseNode(216 /* TypeAssertionExpression */); node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); node.type = type; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.type) | 1 /* ContainsTypeScript */; @@ -21811,7 +21916,7 @@ ${lanes.join("\n")} return node.type !== type || node.expression !== expression ? update(createTypeAssertion(type, expression), node) : node; } function createParenthesizedExpression(expression) { - const node = createBaseNode(216 /* ParenthesizedExpression */); + const node = createBaseNode(217 /* ParenthesizedExpression */); node.expression = expression; node.transformFlags = propagateChildFlags(node.expression); node.jsDoc = void 0; @@ -21821,7 +21926,7 @@ ${lanes.join("\n")} return node.expression !== expression ? update(createParenthesizedExpression(expression), node) : node; } function createFunctionExpression(modifiers, asteriskToken, name, typeParameters, parameters, type, body) { - const node = createBaseDeclaration(217 /* FunctionExpression */); + const node = createBaseDeclaration(218 /* FunctionExpression */); node.modifiers = asNodeArray(modifiers); node.asteriskToken = asteriskToken; node.name = asName(name); @@ -21846,7 +21951,7 @@ ${lanes.join("\n")} return node.name !== name || node.modifiers !== modifiers || node.asteriskToken !== asteriskToken || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type || node.body !== body ? finishUpdateBaseSignatureDeclaration(createFunctionExpression(modifiers, asteriskToken, name, typeParameters, parameters, type, body), node) : node; } function createArrowFunction(modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body) { - const node = createBaseDeclaration(218 /* ArrowFunction */); + const node = createBaseDeclaration(219 /* ArrowFunction */); node.modifiers = asNodeArray(modifiers); node.typeParameters = asNodeArray(typeParameters); node.parameters = createNodeArray(parameters); @@ -21868,7 +21973,7 @@ ${lanes.join("\n")} return node.modifiers !== modifiers || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type || node.equalsGreaterThanToken !== equalsGreaterThanToken || node.body !== body ? finishUpdateBaseSignatureDeclaration(createArrowFunction(modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body), node) : node; } function createDeleteExpression(expression) { - const node = createBaseNode(219 /* DeleteExpression */); + const node = createBaseNode(220 /* DeleteExpression */); node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); node.transformFlags |= propagateChildFlags(node.expression); return node; @@ -21877,7 +21982,7 @@ ${lanes.join("\n")} return node.expression !== expression ? update(createDeleteExpression(expression), node) : node; } function createTypeOfExpression(expression) { - const node = createBaseNode(220 /* TypeOfExpression */); + const node = createBaseNode(221 /* TypeOfExpression */); node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); node.transformFlags |= propagateChildFlags(node.expression); return node; @@ -21886,7 +21991,7 @@ ${lanes.join("\n")} return node.expression !== expression ? update(createTypeOfExpression(expression), node) : node; } function createVoidExpression(expression) { - const node = createBaseNode(221 /* VoidExpression */); + const node = createBaseNode(222 /* VoidExpression */); node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); node.transformFlags |= propagateChildFlags(node.expression); return node; @@ -21895,7 +22000,7 @@ ${lanes.join("\n")} return node.expression !== expression ? update(createVoidExpression(expression), node) : node; } function createAwaitExpression(expression) { - const node = createBaseNode(222 /* AwaitExpression */); + const node = createBaseNode(223 /* AwaitExpression */); node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); node.transformFlags |= propagateChildFlags(node.expression) | 256 /* ContainsES2017 */ | 128 /* ContainsES2018 */ | 2097152 /* ContainsAwait */; return node; @@ -21904,7 +22009,7 @@ ${lanes.join("\n")} return node.expression !== expression ? update(createAwaitExpression(expression), node) : node; } function createPrefixUnaryExpression(operator, operand) { - const node = createBaseNode(223 /* PrefixUnaryExpression */); + const node = createBaseNode(224 /* PrefixUnaryExpression */); node.operator = operator; node.operand = parenthesizerRules().parenthesizeOperandOfPrefixUnary(operand); node.transformFlags |= propagateChildFlags(node.operand); @@ -21917,7 +22022,7 @@ ${lanes.join("\n")} return node.operand !== operand ? update(createPrefixUnaryExpression(node.operator, operand), node) : node; } function createPostfixUnaryExpression(operand, operator) { - const node = createBaseNode(224 /* PostfixUnaryExpression */); + const node = createBaseNode(225 /* PostfixUnaryExpression */); node.operator = operator; node.operand = parenthesizerRules().parenthesizeOperandOfPostfixUnary(operand); node.transformFlags |= propagateChildFlags(node.operand); @@ -21930,7 +22035,7 @@ ${lanes.join("\n")} return node.operand !== operand ? update(createPostfixUnaryExpression(operand, node.operator), node) : node; } function createBinaryExpression(left, operator, right) { - const node = createBaseDeclaration(225 /* BinaryExpression */); + const node = createBaseDeclaration(226 /* BinaryExpression */); const operatorToken = asToken(operator); const operatorKind = operatorToken.kind; node.left = parenthesizerRules().parenthesizeLeftSideOfBinary(operatorKind, left); @@ -21963,7 +22068,7 @@ ${lanes.join("\n")} return node.left !== left || node.operatorToken !== operator || node.right !== right ? update(createBinaryExpression(left, operator, right), node) : node; } function createConditionalExpression(condition, questionToken, whenTrue, colonToken, whenFalse) { - const node = createBaseNode(226 /* ConditionalExpression */); + const node = createBaseNode(227 /* ConditionalExpression */); node.condition = parenthesizerRules().parenthesizeConditionOfConditionalExpression(condition); node.questionToken = questionToken ?? createToken(58 /* QuestionToken */); node.whenTrue = parenthesizerRules().parenthesizeBranchOfConditionalExpression(whenTrue); @@ -21976,7 +22081,7 @@ ${lanes.join("\n")} return node.condition !== condition || node.questionToken !== questionToken || node.whenTrue !== whenTrue || node.colonToken !== colonToken || node.whenFalse !== whenFalse ? update(createConditionalExpression(condition, questionToken, whenTrue, colonToken, whenFalse), node) : node; } function createTemplateExpression(head, templateSpans) { - const node = createBaseNode(227 /* TemplateExpression */); + const node = createBaseNode(228 /* TemplateExpression */); node.head = head; node.templateSpans = createNodeArray(templateSpans); node.transformFlags |= propagateChildFlags(node.head) | propagateChildrenFlags(node.templateSpans) | 1024 /* ContainsES2015 */; @@ -22051,7 +22156,7 @@ ${lanes.join("\n")} } function createYieldExpression(asteriskToken, expression) { Debug.assert(!asteriskToken || !!expression, "A `YieldExpression` with an asteriskToken must have an expression."); - const node = createBaseNode(228 /* YieldExpression */); + const node = createBaseNode(229 /* YieldExpression */); node.expression = expression && parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); node.asteriskToken = asteriskToken; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.asteriskToken) | 1024 /* ContainsES2015 */ | 128 /* ContainsES2018 */ | 1048576 /* ContainsYield */; @@ -22061,7 +22166,7 @@ ${lanes.join("\n")} return node.expression !== expression || node.asteriskToken !== asteriskToken ? update(createYieldExpression(asteriskToken, expression), node) : node; } function createSpreadElement(expression) { - const node = createBaseNode(229 /* SpreadElement */); + const node = createBaseNode(230 /* SpreadElement */); node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); node.transformFlags |= propagateChildFlags(node.expression) | 1024 /* ContainsES2015 */ | 32768 /* ContainsRestOrSpread */; return node; @@ -22070,7 +22175,7 @@ ${lanes.join("\n")} return node.expression !== expression ? update(createSpreadElement(expression), node) : node; } function createClassExpression(modifiers, name, typeParameters, heritageClauses, members) { - const node = createBaseDeclaration(230 /* ClassExpression */); + const node = createBaseDeclaration(231 /* ClassExpression */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.typeParameters = asNodeArray(typeParameters); @@ -22084,10 +22189,10 @@ ${lanes.join("\n")} return node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.heritageClauses !== heritageClauses || node.members !== members ? update(createClassExpression(modifiers, name, typeParameters, heritageClauses, members), node) : node; } function createOmittedExpression() { - return createBaseNode(231 /* OmittedExpression */); + return createBaseNode(232 /* OmittedExpression */); } function createExpressionWithTypeArguments(expression, typeArguments) { - const node = createBaseNode(232 /* ExpressionWithTypeArguments */); + const node = createBaseNode(233 /* ExpressionWithTypeArguments */); node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess( expression, /*optionalChain*/ @@ -22101,7 +22206,7 @@ ${lanes.join("\n")} return node.expression !== expression || node.typeArguments !== typeArguments ? update(createExpressionWithTypeArguments(expression, typeArguments), node) : node; } function createAsExpression(expression, type) { - const node = createBaseNode(233 /* AsExpression */); + const node = createBaseNode(234 /* AsExpression */); node.expression = expression; node.type = type; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.type) | 1 /* ContainsTypeScript */; @@ -22111,7 +22216,7 @@ ${lanes.join("\n")} return node.expression !== expression || node.type !== type ? update(createAsExpression(expression, type), node) : node; } function createNonNullExpression(expression) { - const node = createBaseNode(234 /* NonNullExpression */); + const node = createBaseNode(235 /* NonNullExpression */); node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess( expression, /*optionalChain*/ @@ -22127,7 +22232,7 @@ ${lanes.join("\n")} return node.expression !== expression ? update(createNonNullExpression(expression), node) : node; } function createSatisfiesExpression(expression, type) { - const node = createBaseNode(237 /* SatisfiesExpression */); + const node = createBaseNode(238 /* SatisfiesExpression */); node.expression = expression; node.type = type; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.type) | 1 /* ContainsTypeScript */; @@ -22137,8 +22242,8 @@ ${lanes.join("\n")} return node.expression !== expression || node.type !== type ? update(createSatisfiesExpression(expression, type), node) : node; } function createNonNullChain(expression) { - const node = createBaseNode(234 /* NonNullExpression */); - node.flags |= 32 /* OptionalChain */; + const node = createBaseNode(235 /* NonNullExpression */); + node.flags |= 64 /* OptionalChain */; node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess( expression, /*optionalChain*/ @@ -22148,11 +22253,11 @@ ${lanes.join("\n")} return node; } function updateNonNullChain(node, expression) { - Debug.assert(!!(node.flags & 32 /* OptionalChain */), "Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."); + Debug.assert(!!(node.flags & 64 /* OptionalChain */), "Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."); return node.expression !== expression ? update(createNonNullChain(expression), node) : node; } function createMetaProperty(keywordToken, name) { - const node = createBaseNode(235 /* MetaProperty */); + const node = createBaseNode(236 /* MetaProperty */); node.keywordToken = keywordToken; node.name = name; node.transformFlags |= propagateChildFlags(node.name); @@ -22173,7 +22278,7 @@ ${lanes.join("\n")} return node.name !== name ? update(createMetaProperty(node.keywordToken, name), node) : node; } function createTemplateSpan(expression, literal) { - const node = createBaseNode(238 /* TemplateSpan */); + const node = createBaseNode(239 /* TemplateSpan */); node.expression = expression; node.literal = literal; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.literal) | 1024 /* ContainsES2015 */; @@ -22183,12 +22288,12 @@ ${lanes.join("\n")} return node.expression !== expression || node.literal !== literal ? update(createTemplateSpan(expression, literal), node) : node; } function createSemicolonClassElement() { - const node = createBaseNode(239 /* SemicolonClassElement */); + const node = createBaseNode(240 /* SemicolonClassElement */); node.transformFlags |= 1024 /* ContainsES2015 */; return node; } function createBlock(statements, multiLine) { - const node = createBaseNode(240 /* Block */); + const node = createBaseNode(241 /* Block */); node.statements = createNodeArray(statements); node.multiLine = multiLine; node.transformFlags |= propagateChildrenFlags(node.statements); @@ -22201,7 +22306,7 @@ ${lanes.join("\n")} return node.statements !== statements ? update(createBlock(statements, node.multiLine), node) : node; } function createVariableStatement(modifiers, declarationList) { - const node = createBaseNode(242 /* VariableStatement */); + const node = createBaseNode(243 /* VariableStatement */); node.modifiers = asNodeArray(modifiers); node.declarationList = isArray(declarationList) ? createVariableDeclarationList(declarationList) : declarationList; node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.declarationList); @@ -22216,12 +22321,12 @@ ${lanes.join("\n")} return node.modifiers !== modifiers || node.declarationList !== declarationList ? update(createVariableStatement(modifiers, declarationList), node) : node; } function createEmptyStatement() { - const node = createBaseNode(241 /* EmptyStatement */); + const node = createBaseNode(242 /* EmptyStatement */); node.jsDoc = void 0; return node; } function createExpressionStatement(expression) { - const node = createBaseNode(243 /* ExpressionStatement */); + const node = createBaseNode(244 /* ExpressionStatement */); node.expression = parenthesizerRules().parenthesizeExpressionOfExpressionStatement(expression); node.transformFlags |= propagateChildFlags(node.expression); node.jsDoc = void 0; @@ -22232,7 +22337,7 @@ ${lanes.join("\n")} return node.expression !== expression ? update(createExpressionStatement(expression), node) : node; } function createIfStatement(expression, thenStatement, elseStatement) { - const node = createBaseNode(244 /* IfStatement */); + const node = createBaseNode(245 /* IfStatement */); node.expression = expression; node.thenStatement = asEmbeddedStatement(thenStatement); node.elseStatement = asEmbeddedStatement(elseStatement); @@ -22245,7 +22350,7 @@ ${lanes.join("\n")} return node.expression !== expression || node.thenStatement !== thenStatement || node.elseStatement !== elseStatement ? update(createIfStatement(expression, thenStatement, elseStatement), node) : node; } function createDoStatement(statement, expression) { - const node = createBaseNode(245 /* DoStatement */); + const node = createBaseNode(246 /* DoStatement */); node.statement = asEmbeddedStatement(statement); node.expression = expression; node.transformFlags |= propagateChildFlags(node.statement) | propagateChildFlags(node.expression); @@ -22257,7 +22362,7 @@ ${lanes.join("\n")} return node.statement !== statement || node.expression !== expression ? update(createDoStatement(statement, expression), node) : node; } function createWhileStatement(expression, statement) { - const node = createBaseNode(246 /* WhileStatement */); + const node = createBaseNode(247 /* WhileStatement */); node.expression = expression; node.statement = asEmbeddedStatement(statement); node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.statement); @@ -22269,7 +22374,7 @@ ${lanes.join("\n")} return node.expression !== expression || node.statement !== statement ? update(createWhileStatement(expression, statement), node) : node; } function createForStatement(initializer, condition, incrementor, statement) { - const node = createBaseNode(247 /* ForStatement */); + const node = createBaseNode(248 /* ForStatement */); node.initializer = initializer; node.condition = condition; node.incrementor = incrementor; @@ -22285,7 +22390,7 @@ ${lanes.join("\n")} return node.initializer !== initializer || node.condition !== condition || node.incrementor !== incrementor || node.statement !== statement ? update(createForStatement(initializer, condition, incrementor, statement), node) : node; } function createForInStatement(initializer, expression, statement) { - const node = createBaseNode(248 /* ForInStatement */); + const node = createBaseNode(249 /* ForInStatement */); node.initializer = initializer; node.expression = expression; node.statement = asEmbeddedStatement(statement); @@ -22300,7 +22405,7 @@ ${lanes.join("\n")} return node.initializer !== initializer || node.expression !== expression || node.statement !== statement ? update(createForInStatement(initializer, expression, statement), node) : node; } function createForOfStatement(awaitModifier, initializer, expression, statement) { - const node = createBaseNode(249 /* ForOfStatement */); + const node = createBaseNode(250 /* ForOfStatement */); node.awaitModifier = awaitModifier; node.initializer = initializer; node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); @@ -22318,7 +22423,7 @@ ${lanes.join("\n")} return node.awaitModifier !== awaitModifier || node.initializer !== initializer || node.expression !== expression || node.statement !== statement ? update(createForOfStatement(awaitModifier, initializer, expression, statement), node) : node; } function createContinueStatement(label) { - const node = createBaseNode(250 /* ContinueStatement */); + const node = createBaseNode(251 /* ContinueStatement */); node.label = asName(label); node.transformFlags |= propagateChildFlags(node.label) | 4194304 /* ContainsHoistedDeclarationOrCompletion */; node.jsDoc = void 0; @@ -22329,7 +22434,7 @@ ${lanes.join("\n")} return node.label !== label ? update(createContinueStatement(label), node) : node; } function createBreakStatement(label) { - const node = createBaseNode(251 /* BreakStatement */); + const node = createBaseNode(252 /* BreakStatement */); node.label = asName(label); node.transformFlags |= propagateChildFlags(node.label) | 4194304 /* ContainsHoistedDeclarationOrCompletion */; node.jsDoc = void 0; @@ -22340,7 +22445,7 @@ ${lanes.join("\n")} return node.label !== label ? update(createBreakStatement(label), node) : node; } function createReturnStatement(expression) { - const node = createBaseNode(252 /* ReturnStatement */); + const node = createBaseNode(253 /* ReturnStatement */); node.expression = expression; node.transformFlags |= propagateChildFlags(node.expression) | 128 /* ContainsES2018 */ | 4194304 /* ContainsHoistedDeclarationOrCompletion */; node.jsDoc = void 0; @@ -22351,7 +22456,7 @@ ${lanes.join("\n")} return node.expression !== expression ? update(createReturnStatement(expression), node) : node; } function createWithStatement(expression, statement) { - const node = createBaseNode(253 /* WithStatement */); + const node = createBaseNode(254 /* WithStatement */); node.expression = expression; node.statement = asEmbeddedStatement(statement); node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.statement); @@ -22363,7 +22468,7 @@ ${lanes.join("\n")} return node.expression !== expression || node.statement !== statement ? update(createWithStatement(expression, statement), node) : node; } function createSwitchStatement(expression, caseBlock) { - const node = createBaseNode(254 /* SwitchStatement */); + const node = createBaseNode(255 /* SwitchStatement */); node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); node.caseBlock = caseBlock; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.caseBlock); @@ -22376,7 +22481,7 @@ ${lanes.join("\n")} return node.expression !== expression || node.caseBlock !== caseBlock ? update(createSwitchStatement(expression, caseBlock), node) : node; } function createLabeledStatement(label, statement) { - const node = createBaseNode(255 /* LabeledStatement */); + const node = createBaseNode(256 /* LabeledStatement */); node.label = asName(label); node.statement = asEmbeddedStatement(statement); node.transformFlags |= propagateChildFlags(node.label) | propagateChildFlags(node.statement); @@ -22388,7 +22493,7 @@ ${lanes.join("\n")} return node.label !== label || node.statement !== statement ? update(createLabeledStatement(label, statement), node) : node; } function createThrowStatement(expression) { - const node = createBaseNode(256 /* ThrowStatement */); + const node = createBaseNode(257 /* ThrowStatement */); node.expression = expression; node.transformFlags |= propagateChildFlags(node.expression); node.jsDoc = void 0; @@ -22399,7 +22504,7 @@ ${lanes.join("\n")} return node.expression !== expression ? update(createThrowStatement(expression), node) : node; } function createTryStatement(tryBlock, catchClause, finallyBlock) { - const node = createBaseNode(257 /* TryStatement */); + const node = createBaseNode(258 /* TryStatement */); node.tryBlock = tryBlock; node.catchClause = catchClause; node.finallyBlock = finallyBlock; @@ -22412,13 +22517,13 @@ ${lanes.join("\n")} return node.tryBlock !== tryBlock || node.catchClause !== catchClause || node.finallyBlock !== finallyBlock ? update(createTryStatement(tryBlock, catchClause, finallyBlock), node) : node; } function createDebuggerStatement() { - const node = createBaseNode(258 /* DebuggerStatement */); + const node = createBaseNode(259 /* DebuggerStatement */); node.jsDoc = void 0; node.flowNode = void 0; return node; } function createVariableDeclaration(name, exclamationToken, type, initializer) { - const node = createBaseDeclaration(259 /* VariableDeclaration */); + const node = createBaseDeclaration(260 /* VariableDeclaration */); node.name = asName(name); node.exclamationToken = exclamationToken; node.type = type; @@ -22431,20 +22536,23 @@ ${lanes.join("\n")} return node.name !== name || node.type !== type || node.exclamationToken !== exclamationToken || node.initializer !== initializer ? update(createVariableDeclaration(name, exclamationToken, type, initializer), node) : node; } function createVariableDeclarationList(declarations, flags2 = 0 /* None */) { - const node = createBaseNode(260 /* VariableDeclarationList */); - node.flags |= flags2 & 3 /* BlockScoped */; + const node = createBaseNode(261 /* VariableDeclarationList */); + node.flags |= flags2 & 7 /* BlockScoped */; node.declarations = createNodeArray(declarations); node.transformFlags |= propagateChildrenFlags(node.declarations) | 4194304 /* ContainsHoistedDeclarationOrCompletion */; - if (flags2 & 3 /* BlockScoped */) { + if (flags2 & 7 /* BlockScoped */) { node.transformFlags |= 1024 /* ContainsES2015 */ | 262144 /* ContainsBlockScopedBinding */; } + if (flags2 & 4 /* Using */) { + node.transformFlags |= 4 /* ContainsESNext */; + } return node; } function updateVariableDeclarationList(node, declarations) { return node.declarations !== declarations ? update(createVariableDeclarationList(declarations, node.flags), node) : node; } function createFunctionDeclaration(modifiers, asteriskToken, name, typeParameters, parameters, type, body) { - const node = createBaseDeclaration(261 /* FunctionDeclaration */); + const node = createBaseDeclaration(262 /* FunctionDeclaration */); node.modifiers = asNodeArray(modifiers); node.asteriskToken = asteriskToken; node.name = asName(name); @@ -22480,7 +22588,7 @@ ${lanes.join("\n")} return finishUpdateBaseSignatureDeclaration(updated, original); } function createClassDeclaration(modifiers, name, typeParameters, heritageClauses, members) { - const node = createBaseDeclaration(262 /* ClassDeclaration */); + const node = createBaseDeclaration(263 /* ClassDeclaration */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.typeParameters = asNodeArray(typeParameters); @@ -22501,7 +22609,7 @@ ${lanes.join("\n")} return node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.heritageClauses !== heritageClauses || node.members !== members ? update(createClassDeclaration(modifiers, name, typeParameters, heritageClauses, members), node) : node; } function createInterfaceDeclaration(modifiers, name, typeParameters, heritageClauses, members) { - const node = createBaseDeclaration(263 /* InterfaceDeclaration */); + const node = createBaseDeclaration(264 /* InterfaceDeclaration */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.typeParameters = asNodeArray(typeParameters); @@ -22515,7 +22623,7 @@ ${lanes.join("\n")} return node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.heritageClauses !== heritageClauses || node.members !== members ? update(createInterfaceDeclaration(modifiers, name, typeParameters, heritageClauses, members), node) : node; } function createTypeAliasDeclaration(modifiers, name, typeParameters, type) { - const node = createBaseDeclaration(264 /* TypeAliasDeclaration */); + const node = createBaseDeclaration(265 /* TypeAliasDeclaration */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.typeParameters = asNodeArray(typeParameters); @@ -22530,7 +22638,7 @@ ${lanes.join("\n")} return node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.type !== type ? update(createTypeAliasDeclaration(modifiers, name, typeParameters, type), node) : node; } function createEnumDeclaration(modifiers, name, members) { - const node = createBaseDeclaration(265 /* EnumDeclaration */); + const node = createBaseDeclaration(266 /* EnumDeclaration */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.members = createNodeArray(members); @@ -22543,9 +22651,9 @@ ${lanes.join("\n")} return node.modifiers !== modifiers || node.name !== name || node.members !== members ? update(createEnumDeclaration(modifiers, name, members), node) : node; } function createModuleDeclaration(modifiers, name, body, flags2 = 0 /* None */) { - const node = createBaseDeclaration(266 /* ModuleDeclaration */); + const node = createBaseDeclaration(267 /* ModuleDeclaration */); node.modifiers = asNodeArray(modifiers); - node.flags |= flags2 & (16 /* Namespace */ | 4 /* NestedNamespace */ | 1024 /* GlobalAugmentation */); + node.flags |= flags2 & (32 /* Namespace */ | 8 /* NestedNamespace */ | 2048 /* GlobalAugmentation */); node.name = name; node.body = body; if (modifiersToFlags(node.modifiers) & 2 /* Ambient */) { @@ -22563,7 +22671,7 @@ ${lanes.join("\n")} return node.modifiers !== modifiers || node.name !== name || node.body !== body ? update(createModuleDeclaration(modifiers, name, body, node.flags), node) : node; } function createModuleBlock(statements) { - const node = createBaseNode(267 /* ModuleBlock */); + const node = createBaseNode(268 /* ModuleBlock */); node.statements = createNodeArray(statements); node.transformFlags |= propagateChildrenFlags(node.statements); node.jsDoc = void 0; @@ -22573,7 +22681,7 @@ ${lanes.join("\n")} return node.statements !== statements ? update(createModuleBlock(statements), node) : node; } function createCaseBlock(clauses) { - const node = createBaseNode(268 /* CaseBlock */); + const node = createBaseNode(269 /* CaseBlock */); node.clauses = createNodeArray(clauses); node.transformFlags |= propagateChildrenFlags(node.clauses); node.locals = void 0; @@ -22584,7 +22692,7 @@ ${lanes.join("\n")} return node.clauses !== clauses ? update(createCaseBlock(clauses), node) : node; } function createNamespaceExportDeclaration(name) { - const node = createBaseDeclaration(269 /* NamespaceExportDeclaration */); + const node = createBaseDeclaration(270 /* NamespaceExportDeclaration */); node.name = asName(name); node.transformFlags |= propagateIdentifierNameFlags(node.name) | 1 /* ContainsTypeScript */; node.modifiers = void 0; @@ -22601,7 +22709,7 @@ ${lanes.join("\n")} return update(updated, original); } function createImportEqualsDeclaration(modifiers, isTypeOnly, name, moduleReference) { - const node = createBaseDeclaration(270 /* ImportEqualsDeclaration */); + const node = createBaseDeclaration(271 /* ImportEqualsDeclaration */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.isTypeOnly = isTypeOnly; @@ -22618,7 +22726,7 @@ ${lanes.join("\n")} return node.modifiers !== modifiers || node.isTypeOnly !== isTypeOnly || node.name !== name || node.moduleReference !== moduleReference ? update(createImportEqualsDeclaration(modifiers, isTypeOnly, name, moduleReference), node) : node; } function createImportDeclaration(modifiers, importClause, moduleSpecifier, assertClause) { - const node = createBaseNode(271 /* ImportDeclaration */); + const node = createBaseNode(272 /* ImportDeclaration */); node.modifiers = asNodeArray(modifiers); node.importClause = importClause; node.moduleSpecifier = moduleSpecifier; @@ -22632,7 +22740,7 @@ ${lanes.join("\n")} return node.modifiers !== modifiers || node.importClause !== importClause || node.moduleSpecifier !== moduleSpecifier || node.assertClause !== assertClause ? update(createImportDeclaration(modifiers, importClause, moduleSpecifier, assertClause), node) : node; } function createImportClause(isTypeOnly, name, namedBindings) { - const node = createBaseDeclaration(272 /* ImportClause */); + const node = createBaseDeclaration(273 /* ImportClause */); node.isTypeOnly = isTypeOnly; node.name = name; node.namedBindings = namedBindings; @@ -22647,7 +22755,7 @@ ${lanes.join("\n")} return node.isTypeOnly !== isTypeOnly || node.name !== name || node.namedBindings !== namedBindings ? update(createImportClause(isTypeOnly, name, namedBindings), node) : node; } function createAssertClause(elements, multiLine) { - const node = createBaseNode(299 /* AssertClause */); + const node = createBaseNode(300 /* AssertClause */); node.elements = createNodeArray(elements); node.multiLine = multiLine; node.transformFlags |= 4 /* ContainsESNext */; @@ -22657,7 +22765,7 @@ ${lanes.join("\n")} return node.elements !== elements || node.multiLine !== multiLine ? update(createAssertClause(elements, multiLine), node) : node; } function createAssertEntry(name, value) { - const node = createBaseNode(300 /* AssertEntry */); + const node = createBaseNode(301 /* AssertEntry */); node.name = name; node.value = value; node.transformFlags |= 4 /* ContainsESNext */; @@ -22667,7 +22775,7 @@ ${lanes.join("\n")} return node.name !== name || node.value !== value ? update(createAssertEntry(name, value), node) : node; } function createImportTypeAssertionContainer(clause, multiLine) { - const node = createBaseNode(301 /* ImportTypeAssertionContainer */); + const node = createBaseNode(302 /* ImportTypeAssertionContainer */); node.assertClause = clause; node.multiLine = multiLine; return node; @@ -22676,7 +22784,7 @@ ${lanes.join("\n")} return node.assertClause !== clause || node.multiLine !== multiLine ? update(createImportTypeAssertionContainer(clause, multiLine), node) : node; } function createNamespaceImport(name) { - const node = createBaseDeclaration(273 /* NamespaceImport */); + const node = createBaseDeclaration(274 /* NamespaceImport */); node.name = name; node.transformFlags |= propagateChildFlags(node.name); node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; @@ -22686,7 +22794,7 @@ ${lanes.join("\n")} return node.name !== name ? update(createNamespaceImport(name), node) : node; } function createNamespaceExport(name) { - const node = createBaseDeclaration(279 /* NamespaceExport */); + const node = createBaseDeclaration(280 /* NamespaceExport */); node.name = name; node.transformFlags |= propagateChildFlags(node.name) | 32 /* ContainsES2020 */; node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; @@ -22696,7 +22804,7 @@ ${lanes.join("\n")} return node.name !== name ? update(createNamespaceExport(name), node) : node; } function createNamedImports(elements) { - const node = createBaseNode(274 /* NamedImports */); + const node = createBaseNode(275 /* NamedImports */); node.elements = createNodeArray(elements); node.transformFlags |= propagateChildrenFlags(node.elements); node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; @@ -22706,7 +22814,7 @@ ${lanes.join("\n")} return node.elements !== elements ? update(createNamedImports(elements), node) : node; } function createImportSpecifier(isTypeOnly, propertyName, name) { - const node = createBaseDeclaration(275 /* ImportSpecifier */); + const node = createBaseDeclaration(276 /* ImportSpecifier */); node.isTypeOnly = isTypeOnly; node.propertyName = propertyName; node.name = name; @@ -22718,7 +22826,7 @@ ${lanes.join("\n")} return node.isTypeOnly !== isTypeOnly || node.propertyName !== propertyName || node.name !== name ? update(createImportSpecifier(isTypeOnly, propertyName, name), node) : node; } function createExportAssignment2(modifiers, isExportEquals, expression) { - const node = createBaseDeclaration(276 /* ExportAssignment */); + const node = createBaseDeclaration(277 /* ExportAssignment */); node.modifiers = asNodeArray(modifiers); node.isExportEquals = isExportEquals; node.expression = isExportEquals ? parenthesizerRules().parenthesizeRightSideOfBinary( @@ -22736,7 +22844,7 @@ ${lanes.join("\n")} return node.modifiers !== modifiers || node.expression !== expression ? update(createExportAssignment2(modifiers, node.isExportEquals, expression), node) : node; } function createExportDeclaration(modifiers, isTypeOnly, exportClause, moduleSpecifier, assertClause) { - const node = createBaseDeclaration(277 /* ExportDeclaration */); + const node = createBaseDeclaration(278 /* ExportDeclaration */); node.modifiers = asNodeArray(modifiers); node.isTypeOnly = isTypeOnly; node.exportClause = exportClause; @@ -22759,7 +22867,7 @@ ${lanes.join("\n")} return update(updated, original); } function createNamedExports(elements) { - const node = createBaseNode(278 /* NamedExports */); + const node = createBaseNode(279 /* NamedExports */); node.elements = createNodeArray(elements); node.transformFlags |= propagateChildrenFlags(node.elements); node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; @@ -22769,7 +22877,7 @@ ${lanes.join("\n")} return node.elements !== elements ? update(createNamedExports(elements), node) : node; } function createExportSpecifier(isTypeOnly, propertyName, name) { - const node = createBaseNode(280 /* ExportSpecifier */); + const node = createBaseNode(281 /* ExportSpecifier */); node.isTypeOnly = isTypeOnly; node.propertyName = asName(propertyName); node.name = asName(name); @@ -22782,12 +22890,12 @@ ${lanes.join("\n")} return node.isTypeOnly !== isTypeOnly || node.propertyName !== propertyName || node.name !== name ? update(createExportSpecifier(isTypeOnly, propertyName, name), node) : node; } function createMissingDeclaration() { - const node = createBaseDeclaration(281 /* MissingDeclaration */); + const node = createBaseDeclaration(282 /* MissingDeclaration */); node.jsDoc = void 0; return node; } function createExternalModuleReference(expression) { - const node = createBaseNode(282 /* ExternalModuleReference */); + const node = createBaseNode(283 /* ExternalModuleReference */); node.expression = expression; node.transformFlags |= propagateChildFlags(node.expression); node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; @@ -22819,7 +22927,7 @@ ${lanes.join("\n")} return node.type !== type ? update(createJSDocUnaryTypeWorker(kind, type), node) : node; } function createJSDocFunctionType(parameters, type) { - const node = createBaseDeclaration(323 /* JSDocFunctionType */); + const node = createBaseDeclaration(324 /* JSDocFunctionType */); node.parameters = asNodeArray(parameters); node.type = type; node.transformFlags = propagateChildrenFlags(node.parameters) | (node.type ? 1 /* ContainsTypeScript */ : 0 /* None */); @@ -22833,7 +22941,7 @@ ${lanes.join("\n")} return node.parameters !== parameters || node.type !== type ? update(createJSDocFunctionType(parameters, type), node) : node; } function createJSDocTypeLiteral(propertyTags, isArrayType = false) { - const node = createBaseDeclaration(328 /* JSDocTypeLiteral */); + const node = createBaseDeclaration(329 /* JSDocTypeLiteral */); node.jsDocPropertyTags = asNodeArray(propertyTags); node.isArrayType = isArrayType; return node; @@ -22842,7 +22950,7 @@ ${lanes.join("\n")} return node.jsDocPropertyTags !== propertyTags || node.isArrayType !== isArrayType ? update(createJSDocTypeLiteral(propertyTags, isArrayType), node) : node; } function createJSDocTypeExpression(type) { - const node = createBaseNode(315 /* JSDocTypeExpression */); + const node = createBaseNode(316 /* JSDocTypeExpression */); node.type = type; return node; } @@ -22850,7 +22958,7 @@ ${lanes.join("\n")} return node.type !== type ? update(createJSDocTypeExpression(type), node) : node; } function createJSDocSignature(typeParameters, parameters, type) { - const node = createBaseDeclaration(329 /* JSDocSignature */); + const node = createBaseDeclaration(330 /* JSDocSignature */); node.typeParameters = asNodeArray(typeParameters); node.parameters = createNodeArray(parameters); node.type = type; @@ -22879,7 +22987,7 @@ ${lanes.join("\n")} return node; } function createJSDocTemplateTag(tagName, constraint, typeParameters, comment) { - const node = createBaseJSDocTag(351 /* JSDocTemplateTag */, tagName ?? createIdentifier("template"), comment); + const node = createBaseJSDocTag(352 /* JSDocTemplateTag */, tagName ?? createIdentifier("template"), comment); node.constraint = constraint; node.typeParameters = createNodeArray(typeParameters); return node; @@ -22888,7 +22996,7 @@ ${lanes.join("\n")} return node.tagName !== tagName || node.constraint !== constraint || node.typeParameters !== typeParameters || node.comment !== comment ? update(createJSDocTemplateTag(tagName, constraint, typeParameters, comment), node) : node; } function createJSDocTypedefTag(tagName, typeExpression, fullName, comment) { - const node = createBaseJSDocTagDeclaration(352 /* JSDocTypedefTag */, tagName ?? createIdentifier("typedef"), comment); + const node = createBaseJSDocTagDeclaration(353 /* JSDocTypedefTag */, tagName ?? createIdentifier("typedef"), comment); node.typeExpression = typeExpression; node.fullName = fullName; node.name = getJSDocTypeAliasName(fullName); @@ -22900,7 +23008,7 @@ ${lanes.join("\n")} return node.tagName !== tagName || node.typeExpression !== typeExpression || node.fullName !== fullName || node.comment !== comment ? update(createJSDocTypedefTag(tagName, typeExpression, fullName, comment), node) : node; } function createJSDocParameterTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment) { - const node = createBaseJSDocTagDeclaration(347 /* JSDocParameterTag */, tagName ?? createIdentifier("param"), comment); + const node = createBaseJSDocTagDeclaration(348 /* JSDocParameterTag */, tagName ?? createIdentifier("param"), comment); node.typeExpression = typeExpression; node.name = name; node.isNameFirst = !!isNameFirst; @@ -22911,7 +23019,7 @@ ${lanes.join("\n")} return node.tagName !== tagName || node.name !== name || node.isBracketed !== isBracketed || node.typeExpression !== typeExpression || node.isNameFirst !== isNameFirst || node.comment !== comment ? update(createJSDocParameterTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment), node) : node; } function createJSDocPropertyTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment) { - const node = createBaseJSDocTagDeclaration(354 /* JSDocPropertyTag */, tagName ?? createIdentifier("prop"), comment); + const node = createBaseJSDocTagDeclaration(355 /* JSDocPropertyTag */, tagName ?? createIdentifier("prop"), comment); node.typeExpression = typeExpression; node.name = name; node.isNameFirst = !!isNameFirst; @@ -22922,7 +23030,7 @@ ${lanes.join("\n")} return node.tagName !== tagName || node.name !== name || node.isBracketed !== isBracketed || node.typeExpression !== typeExpression || node.isNameFirst !== isNameFirst || node.comment !== comment ? update(createJSDocPropertyTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment), node) : node; } function createJSDocCallbackTag(tagName, typeExpression, fullName, comment) { - const node = createBaseJSDocTagDeclaration(344 /* JSDocCallbackTag */, tagName ?? createIdentifier("callback"), comment); + const node = createBaseJSDocTagDeclaration(345 /* JSDocCallbackTag */, tagName ?? createIdentifier("callback"), comment); node.typeExpression = typeExpression; node.fullName = fullName; node.name = getJSDocTypeAliasName(fullName); @@ -22934,7 +23042,7 @@ ${lanes.join("\n")} return node.tagName !== tagName || node.typeExpression !== typeExpression || node.fullName !== fullName || node.comment !== comment ? update(createJSDocCallbackTag(tagName, typeExpression, fullName, comment), node) : node; } function createJSDocOverloadTag(tagName, typeExpression, comment) { - const node = createBaseJSDocTag(345 /* JSDocOverloadTag */, tagName ?? createIdentifier("overload"), comment); + const node = createBaseJSDocTag(346 /* JSDocOverloadTag */, tagName ?? createIdentifier("overload"), comment); node.typeExpression = typeExpression; return node; } @@ -22942,7 +23050,7 @@ ${lanes.join("\n")} return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocOverloadTag(tagName, typeExpression, comment), node) : node; } function createJSDocAugmentsTag(tagName, className, comment) { - const node = createBaseJSDocTag(334 /* JSDocAugmentsTag */, tagName ?? createIdentifier("augments"), comment); + const node = createBaseJSDocTag(335 /* JSDocAugmentsTag */, tagName ?? createIdentifier("augments"), comment); node.class = className; return node; } @@ -22950,12 +23058,12 @@ ${lanes.join("\n")} return node.tagName !== tagName || node.class !== className || node.comment !== comment ? update(createJSDocAugmentsTag(tagName, className, comment), node) : node; } function createJSDocImplementsTag(tagName, className, comment) { - const node = createBaseJSDocTag(335 /* JSDocImplementsTag */, tagName ?? createIdentifier("implements"), comment); + const node = createBaseJSDocTag(336 /* JSDocImplementsTag */, tagName ?? createIdentifier("implements"), comment); node.class = className; return node; } function createJSDocSeeTag(tagName, name, comment) { - const node = createBaseJSDocTag(353 /* JSDocSeeTag */, tagName ?? createIdentifier("see"), comment); + const node = createBaseJSDocTag(354 /* JSDocSeeTag */, tagName ?? createIdentifier("see"), comment); node.name = name; return node; } @@ -22963,7 +23071,7 @@ ${lanes.join("\n")} return node.tagName !== tagName || node.name !== name || node.comment !== comment ? update(createJSDocSeeTag(tagName, name, comment), node) : node; } function createJSDocNameReference(name) { - const node = createBaseNode(316 /* JSDocNameReference */); + const node = createBaseNode(317 /* JSDocNameReference */); node.name = name; return node; } @@ -22971,7 +23079,7 @@ ${lanes.join("\n")} return node.name !== name ? update(createJSDocNameReference(name), node) : node; } function createJSDocMemberName(left, right) { - const node = createBaseNode(317 /* JSDocMemberName */); + const node = createBaseNode(318 /* JSDocMemberName */); node.left = left; node.right = right; node.transformFlags |= propagateChildFlags(node.left) | propagateChildFlags(node.right); @@ -22981,7 +23089,7 @@ ${lanes.join("\n")} return node.left !== left || node.right !== right ? update(createJSDocMemberName(left, right), node) : node; } function createJSDocLink(name, text) { - const node = createBaseNode(330 /* JSDocLink */); + const node = createBaseNode(331 /* JSDocLink */); node.name = name; node.text = text; return node; @@ -22990,7 +23098,7 @@ ${lanes.join("\n")} return node.name !== name ? update(createJSDocLink(name, text), node) : node; } function createJSDocLinkCode(name, text) { - const node = createBaseNode(331 /* JSDocLinkCode */); + const node = createBaseNode(332 /* JSDocLinkCode */); node.name = name; node.text = text; return node; @@ -22999,7 +23107,7 @@ ${lanes.join("\n")} return node.name !== name ? update(createJSDocLinkCode(name, text), node) : node; } function createJSDocLinkPlain(name, text) { - const node = createBaseNode(332 /* JSDocLinkPlain */); + const node = createBaseNode(333 /* JSDocLinkPlain */); node.name = name; node.text = text; return node; @@ -23026,14 +23134,14 @@ ${lanes.join("\n")} return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocTypeLikeTagWorker(kind, tagName, typeExpression, comment), node) : node; } function createJSDocUnknownTag(tagName, comment) { - const node = createBaseJSDocTag(333 /* JSDocTag */, tagName, comment); + const node = createBaseJSDocTag(334 /* JSDocTag */, tagName, comment); return node; } function updateJSDocUnknownTag(node, tagName, comment) { return node.tagName !== tagName || node.comment !== comment ? update(createJSDocUnknownTag(tagName, comment), node) : node; } function createJSDocEnumTag(tagName, typeExpression, comment) { - const node = createBaseJSDocTagDeclaration(346 /* JSDocEnumTag */, tagName ?? createIdentifier(getDefaultTagNameForKind(346 /* JSDocEnumTag */)), comment); + const node = createBaseJSDocTagDeclaration(347 /* JSDocEnumTag */, tagName ?? createIdentifier(getDefaultTagNameForKind(347 /* JSDocEnumTag */)), comment); node.typeExpression = typeExpression; node.locals = void 0; node.nextContainer = void 0; @@ -23043,7 +23151,7 @@ ${lanes.join("\n")} return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocEnumTag(tagName, typeExpression, comment), node) : node; } function createJSDocText(text) { - const node = createBaseNode(327 /* JSDocText */); + const node = createBaseNode(328 /* JSDocText */); node.text = text; return node; } @@ -23051,7 +23159,7 @@ ${lanes.join("\n")} return node.text !== text ? update(createJSDocText(text), node) : node; } function createJSDocComment(comment, tags) { - const node = createBaseNode(326 /* JSDoc */); + const node = createBaseNode(327 /* JSDoc */); node.comment = comment; node.tags = asNodeArray(tags); return node; @@ -23060,7 +23168,7 @@ ${lanes.join("\n")} return node.comment !== comment || node.tags !== tags ? update(createJSDocComment(comment, tags), node) : node; } function createJsxElement(openingElement, children, closingElement) { - const node = createBaseNode(283 /* JsxElement */); + const node = createBaseNode(284 /* JsxElement */); node.openingElement = openingElement; node.children = createNodeArray(children); node.closingElement = closingElement; @@ -23071,7 +23179,7 @@ ${lanes.join("\n")} return node.openingElement !== openingElement || node.children !== children || node.closingElement !== closingElement ? update(createJsxElement(openingElement, children, closingElement), node) : node; } function createJsxSelfClosingElement(tagName, typeArguments, attributes) { - const node = createBaseNode(284 /* JsxSelfClosingElement */); + const node = createBaseNode(285 /* JsxSelfClosingElement */); node.tagName = tagName; node.typeArguments = asNodeArray(typeArguments); node.attributes = attributes; @@ -23085,7 +23193,7 @@ ${lanes.join("\n")} return node.tagName !== tagName || node.typeArguments !== typeArguments || node.attributes !== attributes ? update(createJsxSelfClosingElement(tagName, typeArguments, attributes), node) : node; } function createJsxOpeningElement(tagName, typeArguments, attributes) { - const node = createBaseNode(285 /* JsxOpeningElement */); + const node = createBaseNode(286 /* JsxOpeningElement */); node.tagName = tagName; node.typeArguments = asNodeArray(typeArguments); node.attributes = attributes; @@ -23099,7 +23207,7 @@ ${lanes.join("\n")} return node.tagName !== tagName || node.typeArguments !== typeArguments || node.attributes !== attributes ? update(createJsxOpeningElement(tagName, typeArguments, attributes), node) : node; } function createJsxClosingElement(tagName) { - const node = createBaseNode(286 /* JsxClosingElement */); + const node = createBaseNode(287 /* JsxClosingElement */); node.tagName = tagName; node.transformFlags |= propagateChildFlags(node.tagName) | 2 /* ContainsJsx */; return node; @@ -23108,7 +23216,7 @@ ${lanes.join("\n")} return node.tagName !== tagName ? update(createJsxClosingElement(tagName), node) : node; } function createJsxFragment(openingFragment, children, closingFragment) { - const node = createBaseNode(287 /* JsxFragment */); + const node = createBaseNode(288 /* JsxFragment */); node.openingFragment = openingFragment; node.children = createNodeArray(children); node.closingFragment = closingFragment; @@ -23129,17 +23237,17 @@ ${lanes.join("\n")} return node.text !== text || node.containsOnlyTriviaWhiteSpaces !== containsOnlyTriviaWhiteSpaces ? update(createJsxText(text, containsOnlyTriviaWhiteSpaces), node) : node; } function createJsxOpeningFragment() { - const node = createBaseNode(288 /* JsxOpeningFragment */); + const node = createBaseNode(289 /* JsxOpeningFragment */); node.transformFlags |= 2 /* ContainsJsx */; return node; } function createJsxJsxClosingFragment() { - const node = createBaseNode(289 /* JsxClosingFragment */); + const node = createBaseNode(290 /* JsxClosingFragment */); node.transformFlags |= 2 /* ContainsJsx */; return node; } function createJsxAttribute(name, initializer) { - const node = createBaseDeclaration(290 /* JsxAttribute */); + const node = createBaseDeclaration(291 /* JsxAttribute */); node.name = name; node.initializer = initializer; node.transformFlags |= propagateChildFlags(node.name) | propagateChildFlags(node.initializer) | 2 /* ContainsJsx */; @@ -23149,7 +23257,7 @@ ${lanes.join("\n")} return node.name !== name || node.initializer !== initializer ? update(createJsxAttribute(name, initializer), node) : node; } function createJsxAttributes(properties) { - const node = createBaseDeclaration(291 /* JsxAttributes */); + const node = createBaseDeclaration(292 /* JsxAttributes */); node.properties = createNodeArray(properties); node.transformFlags |= propagateChildrenFlags(node.properties) | 2 /* ContainsJsx */; return node; @@ -23158,7 +23266,7 @@ ${lanes.join("\n")} return node.properties !== properties ? update(createJsxAttributes(properties), node) : node; } function createJsxSpreadAttribute(expression) { - const node = createBaseNode(292 /* JsxSpreadAttribute */); + const node = createBaseNode(293 /* JsxSpreadAttribute */); node.expression = expression; node.transformFlags |= propagateChildFlags(node.expression) | 2 /* ContainsJsx */; return node; @@ -23167,7 +23275,7 @@ ${lanes.join("\n")} return node.expression !== expression ? update(createJsxSpreadAttribute(expression), node) : node; } function createJsxExpression(dotDotDotToken, expression) { - const node = createBaseNode(293 /* JsxExpression */); + const node = createBaseNode(294 /* JsxExpression */); node.dotDotDotToken = dotDotDotToken; node.expression = expression; node.transformFlags |= propagateChildFlags(node.dotDotDotToken) | propagateChildFlags(node.expression) | 2 /* ContainsJsx */; @@ -23177,7 +23285,7 @@ ${lanes.join("\n")} return node.expression !== expression ? update(createJsxExpression(node.dotDotDotToken, expression), node) : node; } function createJsxNamespacedName(namespace, name) { - const node = createBaseNode(294 /* JsxNamespacedName */); + const node = createBaseNode(295 /* JsxNamespacedName */); node.namespace = namespace; node.name = name; node.transformFlags |= propagateChildFlags(node.namespace) | propagateChildFlags(node.name) | 2 /* ContainsJsx */; @@ -23187,7 +23295,7 @@ ${lanes.join("\n")} return node.namespace !== namespace || node.name !== name ? update(createJsxNamespacedName(namespace, name), node) : node; } function createCaseClause(expression, statements) { - const node = createBaseNode(295 /* CaseClause */); + const node = createBaseNode(296 /* CaseClause */); node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); node.statements = createNodeArray(statements); node.transformFlags |= propagateChildFlags(node.expression) | propagateChildrenFlags(node.statements); @@ -23198,7 +23306,7 @@ ${lanes.join("\n")} return node.expression !== expression || node.statements !== statements ? update(createCaseClause(expression, statements), node) : node; } function createDefaultClause(statements) { - const node = createBaseNode(296 /* DefaultClause */); + const node = createBaseNode(297 /* DefaultClause */); node.statements = createNodeArray(statements); node.transformFlags = propagateChildrenFlags(node.statements); return node; @@ -23207,7 +23315,7 @@ ${lanes.join("\n")} return node.statements !== statements ? update(createDefaultClause(statements), node) : node; } function createHeritageClause(token, types) { - const node = createBaseNode(297 /* HeritageClause */); + const node = createBaseNode(298 /* HeritageClause */); node.token = token; node.types = createNodeArray(types); node.transformFlags |= propagateChildrenFlags(node.types); @@ -23227,7 +23335,7 @@ ${lanes.join("\n")} return node.types !== types ? update(createHeritageClause(node.token, types), node) : node; } function createCatchClause(variableDeclaration, block) { - const node = createBaseNode(298 /* CatchClause */); + const node = createBaseNode(299 /* CatchClause */); node.variableDeclaration = asVariableDeclaration(variableDeclaration); node.block = block; node.transformFlags |= propagateChildFlags(node.variableDeclaration) | propagateChildFlags(node.block) | (!variableDeclaration ? 64 /* ContainsES2019 */ : 0 /* None */); @@ -23239,7 +23347,7 @@ ${lanes.join("\n")} return node.variableDeclaration !== variableDeclaration || node.block !== block ? update(createCatchClause(variableDeclaration, block), node) : node; } function createPropertyAssignment(name, initializer) { - const node = createBaseDeclaration(302 /* PropertyAssignment */); + const node = createBaseDeclaration(303 /* PropertyAssignment */); node.name = asName(name); node.initializer = parenthesizerRules().parenthesizeExpressionForDisallowedComma(initializer); node.transformFlags |= propagateNameFlags(node.name) | propagateChildFlags(node.initializer); @@ -23261,7 +23369,7 @@ ${lanes.join("\n")} return update(updated, original); } function createShorthandPropertyAssignment(name, objectAssignmentInitializer) { - const node = createBaseDeclaration(303 /* ShorthandPropertyAssignment */); + const node = createBaseDeclaration(304 /* ShorthandPropertyAssignment */); node.name = asName(name); node.objectAssignmentInitializer = objectAssignmentInitializer && parenthesizerRules().parenthesizeExpressionForDisallowedComma(objectAssignmentInitializer); node.transformFlags |= propagateIdentifierNameFlags(node.name) | propagateChildFlags(node.objectAssignmentInitializer) | 1024 /* ContainsES2015 */; @@ -23285,7 +23393,7 @@ ${lanes.join("\n")} return update(updated, original); } function createSpreadAssignment(expression) { - const node = createBaseDeclaration(304 /* SpreadAssignment */); + const node = createBaseDeclaration(305 /* SpreadAssignment */); node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); node.transformFlags |= propagateChildFlags(node.expression) | 128 /* ContainsES2018 */ | 65536 /* ContainsObjectRestOrSpread */; node.jsDoc = void 0; @@ -23295,7 +23403,7 @@ ${lanes.join("\n")} return node.expression !== expression ? update(createSpreadAssignment(expression), node) : node; } function createEnumMember(name, initializer) { - const node = createBaseDeclaration(305 /* EnumMember */); + const node = createBaseDeclaration(306 /* EnumMember */); node.name = asName(name); node.initializer = initializer && parenthesizerRules().parenthesizeExpressionForDisallowedComma(initializer); node.transformFlags |= propagateChildFlags(node.name) | propagateChildFlags(node.initializer) | 1 /* ContainsTypeScript */; @@ -23306,7 +23414,7 @@ ${lanes.join("\n")} return node.name !== name || node.initializer !== initializer ? update(createEnumMember(name, initializer), node) : node; } function createSourceFile2(statements, endOfFileToken, flags2) { - const node = baseFactory2.createBaseSourceFileNode(311 /* SourceFile */); + const node = baseFactory2.createBaseSourceFileNode(312 /* SourceFile */); node.statements = createNodeArray(statements); node.endOfFileToken = endOfFileToken; node.flags |= flags2; @@ -23376,7 +23484,7 @@ ${lanes.join("\n")} } function cloneRedirectedSourceFile(source) { const node = createRedirectedSourceFile(source.redirectInfo); - node.flags |= source.flags & ~8 /* Synthesized */; + node.flags |= source.flags & ~16 /* Synthesized */; node.fileName = source.fileName; node.path = source.path; node.resolvedPath = source.resolvedPath; @@ -23387,8 +23495,8 @@ ${lanes.join("\n")} return node; } function cloneSourceFileWorker(source) { - const node = baseFactory2.createBaseSourceFileNode(311 /* SourceFile */); - node.flags |= source.flags & ~8 /* Synthesized */; + const node = baseFactory2.createBaseSourceFileNode(312 /* SourceFile */); + node.flags |= source.flags & ~16 /* Synthesized */; for (const p in source) { if (hasProperty(node, p) || !hasProperty(source, p)) { continue; @@ -23421,7 +23529,7 @@ ${lanes.join("\n")} return node.statements !== statements || node.isDeclarationFile !== isDeclarationFile || node.referencedFiles !== referencedFiles || node.typeReferenceDirectives !== typeReferenceDirectives || node.hasNoDefaultLib !== hasNoDefaultLib || node.libReferenceDirectives !== libReferenceDirectives ? update(cloneSourceFileWithChanges(node, statements, isDeclarationFile, referencedFiles, typeReferenceDirectives, hasNoDefaultLib, libReferenceDirectives), node) : node; } function createBundle(sourceFiles, prepends = emptyArray) { - const node = createBaseNode(312 /* Bundle */); + const node = createBaseNode(313 /* Bundle */); node.prepends = prepends; node.sourceFiles = sourceFiles; node.syntheticFileReferences = void 0; @@ -23434,7 +23542,7 @@ ${lanes.join("\n")} return node.sourceFiles !== sourceFiles || node.prepends !== prepends ? update(createBundle(sourceFiles, prepends), node) : node; } function createUnparsedSource(prologues, syntheticReferences, texts) { - const node = createBaseNode(313 /* UnparsedSource */); + const node = createBaseNode(314 /* UnparsedSource */); node.prologues = prologues; node.syntheticReferences = syntheticReferences; node.texts = texts; @@ -23451,48 +23559,48 @@ ${lanes.join("\n")} return node; } function createUnparsedPrologue(data) { - return createBaseUnparsedNode(306 /* UnparsedPrologue */, data); + return createBaseUnparsedNode(307 /* UnparsedPrologue */, data); } function createUnparsedPrepend(data, texts) { - const node = createBaseUnparsedNode(307 /* UnparsedPrepend */, data); + const node = createBaseUnparsedNode(308 /* UnparsedPrepend */, data); node.texts = texts; return node; } function createUnparsedTextLike(data, internal) { - return createBaseUnparsedNode(internal ? 309 /* UnparsedInternalText */ : 308 /* UnparsedText */, data); + return createBaseUnparsedNode(internal ? 310 /* UnparsedInternalText */ : 309 /* UnparsedText */, data); } function createUnparsedSyntheticReference(section) { - const node = createBaseNode(310 /* UnparsedSyntheticReference */); + const node = createBaseNode(311 /* UnparsedSyntheticReference */); node.data = section.data; node.section = section; return node; } function createInputFiles2() { - const node = createBaseNode(314 /* InputFiles */); + const node = createBaseNode(315 /* InputFiles */); node.javascriptText = ""; node.declarationText = ""; return node; } function createSyntheticExpression(type, isSpread = false, tupleNameSource) { - const node = createBaseNode(236 /* SyntheticExpression */); + const node = createBaseNode(237 /* SyntheticExpression */); node.type = type; node.isSpread = isSpread; node.tupleNameSource = tupleNameSource; return node; } function createSyntaxList3(children) { - const node = createBaseNode(357 /* SyntaxList */); + const node = createBaseNode(358 /* SyntaxList */); node._children = children; return node; } function createNotEmittedStatement(original) { - const node = createBaseNode(358 /* NotEmittedStatement */); + const node = createBaseNode(359 /* NotEmittedStatement */); node.original = original; setTextRange(node, original); return node; } function createPartiallyEmittedExpression(expression, original) { - const node = createBaseNode(359 /* PartiallyEmittedExpression */); + const node = createBaseNode(360 /* PartiallyEmittedExpression */); node.expression = expression; node.original = original; node.transformFlags |= propagateChildFlags(node.expression) | 1 /* ContainsTypeScript */; @@ -23514,7 +23622,7 @@ ${lanes.join("\n")} return node; } function createCommaListExpression(elements) { - const node = createBaseNode(360 /* CommaListExpression */); + const node = createBaseNode(361 /* CommaListExpression */); node.elements = createNodeArray(sameFlatMap(elements, flattenCommaElements)); node.transformFlags |= propagateChildrenFlags(node.elements); return node; @@ -23523,7 +23631,7 @@ ${lanes.join("\n")} return node.elements !== elements ? update(createCommaListExpression(elements), node) : node; } function createSyntheticReferenceExpression(expression, thisArg) { - const node = createBaseNode(361 /* SyntheticReferenceExpression */); + const node = createBaseNode(362 /* SyntheticReferenceExpression */); node.expression = expression; node.thisArg = thisArg; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.thisArg); @@ -23534,7 +23642,7 @@ ${lanes.join("\n")} } function cloneGeneratedIdentifier(node) { const clone2 = createBaseIdentifier(node.escapedText); - clone2.flags |= node.flags & ~8 /* Synthesized */; + clone2.flags |= node.flags & ~16 /* Synthesized */; clone2.transformFlags = node.transformFlags; setOriginalNode(clone2, node); setIdentifierAutoGenerate(clone2, { ...node.emitNode.autoGenerate }); @@ -23542,7 +23650,7 @@ ${lanes.join("\n")} } function cloneIdentifier(node) { const clone2 = createBaseIdentifier(node.escapedText); - clone2.flags |= node.flags & ~8 /* Synthesized */; + clone2.flags |= node.flags & ~16 /* Synthesized */; clone2.jsDoc = node.jsDoc; clone2.flowNode = node.flowNode; clone2.symbol = node.symbol; @@ -23555,7 +23663,7 @@ ${lanes.join("\n")} } function cloneGeneratedPrivateIdentifier(node) { const clone2 = createBasePrivateIdentifier(node.escapedText); - clone2.flags |= node.flags & ~8 /* Synthesized */; + clone2.flags |= node.flags & ~16 /* Synthesized */; clone2.transformFlags = node.transformFlags; setOriginalNode(clone2, node); setIdentifierAutoGenerate(clone2, { ...node.emitNode.autoGenerate }); @@ -23563,7 +23671,7 @@ ${lanes.join("\n")} } function clonePrivateIdentifier(node) { const clone2 = createBasePrivateIdentifier(node.escapedText); - clone2.flags |= node.flags & ~8 /* Synthesized */; + clone2.flags |= node.flags & ~16 /* Synthesized */; clone2.transformFlags = node.transformFlags; setOriginalNode(clone2, node); return clone2; @@ -23588,7 +23696,7 @@ ${lanes.join("\n")} return clonePrivateIdentifier(node); } const clone2 = !isNodeKind(node.kind) ? baseFactory2.createBaseTokenNode(node.kind) : baseFactory2.createBaseNode(node.kind); - clone2.flags |= node.flags & ~8 /* Synthesized */; + clone2.flags |= node.flags & ~16 /* Synthesized */; clone2.transformFlags = node.transformFlags; setOriginalNode(clone2, node); for (const key in node) { @@ -23681,7 +23789,10 @@ ${lanes.join("\n")} ); } function createTypeCheck(value, tag) { - return tag === "undefined" ? factory2.createStrictEquality(value, createVoidZero()) : factory2.createStrictEquality(createTypeOfExpression(value), createStringLiteral(tag)); + return tag === "null" ? factory2.createStrictEquality(value, createNull()) : tag === "undefined" ? factory2.createStrictEquality(value, createVoidZero()) : factory2.createStrictEquality(createTypeOfExpression(value), createStringLiteral(tag)); + } + function createIsNotTypeCheck(value, tag) { + return tag === "null" ? factory2.createStrictInequality(value, createNull()) : tag === "undefined" ? factory2.createStrictInequality(value, createVoidZero()) : factory2.createStrictInequality(createTypeOfExpression(value), createStringLiteral(tag)); } function createMethodCall(object, methodName, argumentsList) { if (isCallChain(object)) { @@ -23756,17 +23867,17 @@ ${lanes.join("\n")} } function updateOuterExpression(outerExpression, expression) { switch (outerExpression.kind) { - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return updateParenthesizedExpression(outerExpression, expression); - case 215 /* TypeAssertionExpression */: + case 216 /* TypeAssertionExpression */: return updateTypeAssertion(outerExpression, outerExpression.type, expression); - case 233 /* AsExpression */: + case 234 /* AsExpression */: return updateAsExpression(outerExpression, expression, outerExpression.type); - case 237 /* SatisfiesExpression */: + case 238 /* SatisfiesExpression */: return updateSatisfiesExpression(outerExpression, expression, outerExpression.type); - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: return updateNonNullExpression(outerExpression, expression); - case 359 /* PartiallyEmittedExpression */: + case 360 /* PartiallyEmittedExpression */: return updatePartiallyEmittedExpression(outerExpression, expression); } } @@ -23806,13 +23917,13 @@ ${lanes.join("\n")} case 10 /* BigIntLiteral */: case 11 /* StringLiteral */: return false; - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: const elements = target.elements; if (elements.length === 0) { return false; } return true; - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return target.properties.length > 0; default: return true; @@ -24075,6 +24186,9 @@ ${lanes.join("\n")} } return isTypeParameterDeclaration(node) ? updateTypeParameterDeclaration(node, modifierArray, node.name, node.constraint, node.default) : isParameter(node) ? updateParameterDeclaration(node, modifierArray, node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer) : isConstructorTypeNode(node) ? updateConstructorTypeNode1(node, modifierArray, node.typeParameters, node.parameters, node.type) : isPropertySignature(node) ? updatePropertySignature(node, modifierArray, node.name, node.questionToken, node.type) : isPropertyDeclaration(node) ? updatePropertyDeclaration2(node, modifierArray, node.name, node.questionToken ?? node.exclamationToken, node.type, node.initializer) : isMethodSignature(node) ? updateMethodSignature(node, modifierArray, node.name, node.questionToken, node.typeParameters, node.parameters, node.type) : isMethodDeclaration(node) ? updateMethodDeclaration(node, modifierArray, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body) : isConstructorDeclaration(node) ? updateConstructorDeclaration(node, modifierArray, node.parameters, node.body) : isGetAccessorDeclaration(node) ? updateGetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.type, node.body) : isSetAccessorDeclaration(node) ? updateSetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.body) : isIndexSignatureDeclaration(node) ? updateIndexSignature(node, modifierArray, node.parameters, node.type) : isFunctionExpression(node) ? updateFunctionExpression(node, modifierArray, node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body) : isArrowFunction(node) ? updateArrowFunction(node, modifierArray, node.typeParameters, node.parameters, node.type, node.equalsGreaterThanToken, node.body) : isClassExpression(node) ? updateClassExpression(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isVariableStatement(node) ? updateVariableStatement(node, modifierArray, node.declarationList) : isFunctionDeclaration(node) ? updateFunctionDeclaration(node, modifierArray, node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body) : isClassDeclaration(node) ? updateClassDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isInterfaceDeclaration(node) ? updateInterfaceDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isTypeAliasDeclaration(node) ? updateTypeAliasDeclaration(node, modifierArray, node.name, node.typeParameters, node.type) : isEnumDeclaration(node) ? updateEnumDeclaration(node, modifierArray, node.name, node.members) : isModuleDeclaration(node) ? updateModuleDeclaration(node, modifierArray, node.name, node.body) : isImportEqualsDeclaration(node) ? updateImportEqualsDeclaration(node, modifierArray, node.isTypeOnly, node.name, node.moduleReference) : isImportDeclaration(node) ? updateImportDeclaration(node, modifierArray, node.importClause, node.moduleSpecifier, node.assertClause) : isExportAssignment(node) ? updateExportAssignment(node, modifierArray, node.expression) : isExportDeclaration(node) ? updateExportDeclaration(node, modifierArray, node.isTypeOnly, node.exportClause, node.moduleSpecifier, node.assertClause) : Debug.assertNever(node); } + function updateModifierLike(node, modifierArray) { + return isParameter(node) ? updateParameterDeclaration(node, modifierArray, node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer) : isPropertyDeclaration(node) ? updatePropertyDeclaration2(node, modifierArray, node.name, node.questionToken ?? node.exclamationToken, node.type, node.initializer) : isMethodDeclaration(node) ? updateMethodDeclaration(node, modifierArray, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body) : isGetAccessorDeclaration(node) ? updateGetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.type, node.body) : isSetAccessorDeclaration(node) ? updateSetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.body) : isClassExpression(node) ? updateClassExpression(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isClassDeclaration(node) ? updateClassDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : Debug.assertNever(node); + } function asNodeArray(array) { return array ? createNodeArray(array) : void 0; } @@ -24123,43 +24237,43 @@ ${lanes.join("\n")} } function getDefaultTagNameForKind(kind) { switch (kind) { - case 350 /* JSDocTypeTag */: + case 351 /* JSDocTypeTag */: return "type"; - case 348 /* JSDocReturnTag */: + case 349 /* JSDocReturnTag */: return "returns"; - case 349 /* JSDocThisTag */: + case 350 /* JSDocThisTag */: return "this"; - case 346 /* JSDocEnumTag */: + case 347 /* JSDocEnumTag */: return "enum"; - case 336 /* JSDocAuthorTag */: + case 337 /* JSDocAuthorTag */: return "author"; - case 338 /* JSDocClassTag */: + case 339 /* JSDocClassTag */: return "class"; - case 339 /* JSDocPublicTag */: + case 340 /* JSDocPublicTag */: return "public"; - case 340 /* JSDocPrivateTag */: + case 341 /* JSDocPrivateTag */: return "private"; - case 341 /* JSDocProtectedTag */: + case 342 /* JSDocProtectedTag */: return "protected"; - case 342 /* JSDocReadonlyTag */: + case 343 /* JSDocReadonlyTag */: return "readonly"; - case 343 /* JSDocOverrideTag */: + case 344 /* JSDocOverrideTag */: return "override"; - case 351 /* JSDocTemplateTag */: + case 352 /* JSDocTemplateTag */: return "template"; - case 352 /* JSDocTypedefTag */: + case 353 /* JSDocTypedefTag */: return "typedef"; - case 347 /* JSDocParameterTag */: + case 348 /* JSDocParameterTag */: return "param"; - case 354 /* JSDocPropertyTag */: + case 355 /* JSDocPropertyTag */: return "prop"; - case 344 /* JSDocCallbackTag */: + case 345 /* JSDocCallbackTag */: return "callback"; - case 345 /* JSDocOverloadTag */: + case 346 /* JSDocOverloadTag */: return "overload"; - case 334 /* JSDocAugmentsTag */: + case 335 /* JSDocAugmentsTag */: return "augments"; - case 335 /* JSDocImplementsTag */: + case 336 /* JSDocImplementsTag */: return "implements"; default: return Debug.fail(`Unsupported kind: ${Debug.formatSyntaxKind(kind)}`); @@ -24241,77 +24355,77 @@ ${lanes.join("\n")} children.transformFlags = subtreeFlags; } function getTransformFlagsSubtreeExclusions(kind) { - if (kind >= 181 /* FirstTypeNode */ && kind <= 204 /* LastTypeNode */) { + if (kind >= 182 /* FirstTypeNode */ && kind <= 205 /* LastTypeNode */) { return -2 /* TypeExcludes */; } switch (kind) { - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 208 /* ArrayLiteralExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 209 /* ArrayLiteralExpression */: return -2147450880 /* ArrayLiteralOrCallOrNewExcludes */; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return -1941676032 /* ModuleExcludes */; - case 168 /* Parameter */: + case 169 /* Parameter */: return -2147483648 /* ParameterExcludes */; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return -2072174592 /* ArrowFunctionExcludes */; - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: return -1937940480 /* FunctionExcludes */; - case 260 /* VariableDeclarationList */: + case 261 /* VariableDeclarationList */: return -2146893824 /* VariableDeclarationListExcludes */; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return -2147344384 /* ClassExcludes */; - case 175 /* Constructor */: + case 176 /* Constructor */: return -1937948672 /* ConstructorExcludes */; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return -2013249536 /* PropertyExcludes */; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return -2005057536 /* MethodOrAccessorExcludes */; case 133 /* AnyKeyword */: case 150 /* NumberKeyword */: - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: case 146 /* NeverKeyword */: case 154 /* StringKeyword */: case 151 /* ObjectKeyword */: case 136 /* BooleanKeyword */: case 155 /* SymbolKeyword */: case 116 /* VoidKeyword */: - case 167 /* TypeParameter */: - case 170 /* PropertySignature */: - case 172 /* MethodSignature */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 180 /* IndexSignature */: - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 168 /* TypeParameter */: + case 171 /* PropertySignature */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 181 /* IndexSignature */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: return -2 /* TypeExcludes */; - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return -2147278848 /* ObjectLiteralExcludes */; - case 298 /* CatchClause */: + case 299 /* CatchClause */: return -2147418112 /* CatchClauseExcludes */; - case 205 /* ObjectBindingPattern */: - case 206 /* ArrayBindingPattern */: + case 206 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: return -2147450880 /* BindingPatternExcludes */; - case 215 /* TypeAssertionExpression */: - case 237 /* SatisfiesExpression */: - case 233 /* AsExpression */: - case 359 /* PartiallyEmittedExpression */: - case 216 /* ParenthesizedExpression */: + case 216 /* TypeAssertionExpression */: + case 238 /* SatisfiesExpression */: + case 234 /* AsExpression */: + case 360 /* PartiallyEmittedExpression */: + case 217 /* ParenthesizedExpression */: case 108 /* SuperKeyword */: return -2147483648 /* OuterExpressionExcludes */; - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return -2147483648 /* PropertyAccessExcludes */; default: return -2147483648 /* NodeExcludes */; } } function makeSynthetic(node) { - node.flags |= 8 /* Synthesized */; + node.flags |= 16 /* Synthesized */; return node; } function createUnparsedSourceFile(textOrInputFiles, mapPathOrType, mapTextOrStripInternal) { @@ -24560,11 +24674,13 @@ ${lanes.join("\n")} return new (SourceMapSource2 || (SourceMapSource2 = objectAllocator.getSourceMapSourceConstructor()))(fileName, text, skipTrivia2); } function setOriginalNode(node, original) { - node.original = original; - if (original) { - const emitNode = original.emitNode; - if (emitNode) - node.emitNode = mergeEmitNode(emitNode, node.emitNode); + if (node.original !== original) { + node.original = original; + if (original) { + const emitNode = original.emitNode; + if (emitNode) + node.emitNode = mergeEmitNode(emitNode, node.emitNode); + } } return node; } @@ -24580,35 +24696,53 @@ ${lanes.join("\n")} constantValue, helpers, startsOnNewLine, - snippetElement + snippetElement, + classThis, + assignedName } = sourceEmitNode; if (!destEmitNode) destEmitNode = {}; - if (leadingComments) - destEmitNode.leadingComments = addRange(leadingComments.slice(), destEmitNode.leadingComments); - if (trailingComments) - destEmitNode.trailingComments = addRange(trailingComments.slice(), destEmitNode.trailingComments); - if (flags) + if (flags) { destEmitNode.flags = flags; - if (internalFlags) + } + if (internalFlags) { destEmitNode.internalFlags = internalFlags & ~8 /* Immutable */; - if (commentRange) + } + if (leadingComments) { + destEmitNode.leadingComments = addRange(leadingComments.slice(), destEmitNode.leadingComments); + } + if (trailingComments) { + destEmitNode.trailingComments = addRange(trailingComments.slice(), destEmitNode.trailingComments); + } + if (commentRange) { destEmitNode.commentRange = commentRange; - if (sourceMapRange) + } + if (sourceMapRange) { destEmitNode.sourceMapRange = sourceMapRange; - if (tokenSourceMapRanges) + } + if (tokenSourceMapRanges) { destEmitNode.tokenSourceMapRanges = mergeTokenSourceMapRanges(tokenSourceMapRanges, destEmitNode.tokenSourceMapRanges); - if (constantValue !== void 0) + } + if (constantValue !== void 0) { destEmitNode.constantValue = constantValue; + } if (helpers) { for (const helper of helpers) { destEmitNode.helpers = appendIfUnique(destEmitNode.helpers, helper); } } - if (startsOnNewLine !== void 0) + if (startsOnNewLine !== void 0) { destEmitNode.startsOnNewLine = startsOnNewLine; - if (snippetElement !== void 0) + } + if (snippetElement !== void 0) { destEmitNode.snippetElement = snippetElement; + } + if (classThis) { + destEmitNode.classThis = classThis; + } + if (assignedName) { + destEmitNode.assignedName = assignedName; + } return destEmitNode; } function mergeTokenSourceMapRanges(sourceRanges, destRanges) { @@ -24651,7 +24785,7 @@ ${lanes.join("\n")} function getOrCreateEmitNode(node) { if (!node.emitNode) { if (isParseTreeNode(node)) { - if (node.kind === 311 /* SourceFile */) { + if (node.kind === 312 /* SourceFile */) { return node.emitNode = { annotatedNodes: [node] }; } const sourceFile = getSourceFileOfNode(getParseTreeNode(getSourceFileOfNode(node))) ?? Debug.fail("Could not determine parsed source file."); @@ -24913,7 +25047,10 @@ ${lanes.join("\n")} // Class Fields Helpers createClassPrivateFieldGetHelper, createClassPrivateFieldSetHelper, - createClassPrivateFieldInHelper + createClassPrivateFieldInHelper, + // 'using' helpers + createAddDisposableResourceHelper, + createDisposeResourcesHelper }; function getUnscopedHelperName(name) { return setEmitFlags(factory2.createIdentifier(name), 8192 /* HelperName */ | 4 /* AdviseOnEmitNode */); @@ -24968,10 +25105,12 @@ ${lanes.join("\n")} ); } function createESDecorateClassContextObject(contextIn) { - return factory2.createObjectLiteralExpression([ + const properties = [ factory2.createPropertyAssignment(factory2.createIdentifier("kind"), factory2.createStringLiteral("class")), - factory2.createPropertyAssignment(factory2.createIdentifier("name"), contextIn.name) - ]); + factory2.createPropertyAssignment(factory2.createIdentifier("name"), contextIn.name), + factory2.createPropertyAssignment(factory2.createIdentifier("metadata"), contextIn.metadata) + ]; + return factory2.createObjectLiteralExpression(properties); } function createESDecorateClassElementAccessGetMethod(elementName) { const accessor = elementName.computed ? factory2.createElementAccessExpression(factory2.createIdentifier("obj"), elementName.name) : factory2.createPropertyAccessExpression(factory2.createIdentifier("obj"), elementName.name); @@ -25075,13 +25214,15 @@ ${lanes.join("\n")} return factory2.createObjectLiteralExpression(properties); } function createESDecorateClassElementContextObject(contextIn) { - return factory2.createObjectLiteralExpression([ + const properties = [ factory2.createPropertyAssignment(factory2.createIdentifier("kind"), factory2.createStringLiteral(contextIn.kind)), factory2.createPropertyAssignment(factory2.createIdentifier("name"), contextIn.name.computed ? contextIn.name.name : factory2.createStringLiteralFromNode(contextIn.name.name)), factory2.createPropertyAssignment(factory2.createIdentifier("static"), contextIn.static ? factory2.createTrue() : factory2.createFalse()), factory2.createPropertyAssignment(factory2.createIdentifier("private"), contextIn.private ? factory2.createTrue() : factory2.createFalse()), - factory2.createPropertyAssignment(factory2.createIdentifier("access"), createESDecorateClassElementAccessObject(contextIn.name, contextIn.access)) - ]); + factory2.createPropertyAssignment(factory2.createIdentifier("access"), createESDecorateClassElementAccessObject(contextIn.name, contextIn.access)), + factory2.createPropertyAssignment(factory2.createIdentifier("metadata"), contextIn.metadata) + ]; + return factory2.createObjectLiteralExpression(properties); } function createESDecorateContextObject(contextIn) { return contextIn.kind === "class" ? createESDecorateClassContextObject(contextIn) : createESDecorateClassElementContextObject(contextIn); @@ -25392,6 +25533,24 @@ ${lanes.join("\n")} [state, receiver] ); } + function createAddDisposableResourceHelper(envBinding, value, async) { + context.requestEmitHelper(addDisposableResourceHelper); + return factory2.createCallExpression( + getUnscopedHelperName("__addDisposableResource"), + /*typeArguments*/ + void 0, + [envBinding, value, async ? factory2.createTrue() : factory2.createFalse()] + ); + } + function createDisposeResourcesHelper(envBinding) { + context.requestEmitHelper(disposeResourcesHelper); + return factory2.createCallExpression( + getUnscopedHelperName("__disposeResources"), + /*typeArguments*/ + void 0, + [envBinding] + ); + } } function compareEmitHelpers(x, y) { if (x === y) @@ -25444,13 +25603,15 @@ ${lanes.join("\n")} classPrivateFieldSetHelper, classPrivateFieldInHelper, createBindingHelper, - setModuleDefaultHelper + setModuleDefaultHelper, + addDisposableResourceHelper, + disposeResourcesHelper ], (helper) => helper.name)); } function isCallToHelper(firstSegment, helperName) { return isCallExpression(firstSegment) && isIdentifier(firstSegment.expression) && (getEmitFlags(firstSegment.expression) & 8192 /* HelperName */) !== 0 && firstSegment.expression.escapedText === helperName; } - var PrivateIdentifierKind, decorateHelper, metadataHelper, paramHelper, esDecorateHelper, runInitializersHelper, assignHelper, awaitHelper, asyncGeneratorHelper, asyncDelegator, asyncValues, restHelper, awaiterHelper, extendsHelper, templateObjectHelper, readHelper, spreadArrayHelper, propKeyHelper, setFunctionNameHelper, valuesHelper, generatorHelper, createBindingHelper, setModuleDefaultHelper, importStarHelper, importDefaultHelper, exportStarHelper, classPrivateFieldGetHelper, classPrivateFieldSetHelper, classPrivateFieldInHelper, allUnscopedEmitHelpers, asyncSuperHelper, advancedAsyncSuperHelper; + var PrivateIdentifierKind, decorateHelper, metadataHelper, paramHelper, esDecorateHelper, runInitializersHelper, assignHelper, awaitHelper, asyncGeneratorHelper, asyncDelegator, asyncValues, restHelper, awaiterHelper, extendsHelper, templateObjectHelper, readHelper, spreadArrayHelper, propKeyHelper, setFunctionNameHelper, valuesHelper, generatorHelper, createBindingHelper, setModuleDefaultHelper, importStarHelper, importDefaultHelper, exportStarHelper, classPrivateFieldGetHelper, classPrivateFieldSetHelper, classPrivateFieldInHelper, addDisposableResourceHelper, disposeResourcesHelper, allUnscopedEmitHelpers, asyncSuperHelper, advancedAsyncSuperHelper; var init_emitHelpers = __esm({ "src/compiler/factory/emitHelpers.ts"() { "use strict"; @@ -25882,6 +26043,63 @@ ${lanes.join("\n")} return typeof state === "function" ? receiver === state : state.has(receiver); };` }; + addDisposableResourceHelper = { + name: "typescript:addDisposableResource", + importName: "__addDisposableResource", + scoped: false, + text: ` + var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) { + if (value !== null && value !== void 0) { + if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); + var dispose; + if (async) { + if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); + dispose = value[Symbol.asyncDispose]; + } + if (dispose === void 0) { + if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); + dispose = value[Symbol.dispose]; + } + if (typeof dispose !== "function") throw new TypeError("Object not disposable."); + env.stack.push({ value: value, dispose: dispose, async: async }); + } + else if (async) { + env.stack.push({ async: true }); + } + return value; + };` + }; + disposeResourcesHelper = { + name: "typescript:disposeResources", + importName: "__disposeResources", + scoped: false, + text: ` + var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) { + return function (env) { + function fail(e) { + env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; + env.hasError = true; + } + function next() { + while (env.stack.length) { + var rec = env.stack.pop(); + try { + var result = rec.dispose && rec.dispose.call(rec.value); + if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); + } + catch (e) { + fail(e); + } + } + if (env.hasError) throw env.error; + } + return next(); + }; + })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { + var e = new Error(message); + return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; + });` + }; asyncSuperHelper = { name: "typescript:async-super", scoped: true, @@ -25989,7 +26207,7 @@ ${lanes.join("\n")} return node.kind === 128 /* AbstractKeyword */; } function isOverrideModifier(node) { - return node.kind === 163 /* OverrideKeyword */; + return node.kind === 164 /* OverrideKeyword */; } function isAccessorModifier(node) { return node.kind === 129 /* AccessorKeyword */; @@ -26004,577 +26222,577 @@ ${lanes.join("\n")} return node.kind === 84 /* CaseKeyword */; } function isQualifiedName(node) { - return node.kind === 165 /* QualifiedName */; + return node.kind === 166 /* QualifiedName */; } function isComputedPropertyName(node) { - return node.kind === 166 /* ComputedPropertyName */; + return node.kind === 167 /* ComputedPropertyName */; } function isTypeParameterDeclaration(node) { - return node.kind === 167 /* TypeParameter */; + return node.kind === 168 /* TypeParameter */; } function isParameter(node) { - return node.kind === 168 /* Parameter */; + return node.kind === 169 /* Parameter */; } function isDecorator(node) { - return node.kind === 169 /* Decorator */; + return node.kind === 170 /* Decorator */; } function isPropertySignature(node) { - return node.kind === 170 /* PropertySignature */; + return node.kind === 171 /* PropertySignature */; } function isPropertyDeclaration(node) { - return node.kind === 171 /* PropertyDeclaration */; + return node.kind === 172 /* PropertyDeclaration */; } function isMethodSignature(node) { - return node.kind === 172 /* MethodSignature */; + return node.kind === 173 /* MethodSignature */; } function isMethodDeclaration(node) { - return node.kind === 173 /* MethodDeclaration */; + return node.kind === 174 /* MethodDeclaration */; } function isClassStaticBlockDeclaration(node) { - return node.kind === 174 /* ClassStaticBlockDeclaration */; + return node.kind === 175 /* ClassStaticBlockDeclaration */; } function isConstructorDeclaration(node) { - return node.kind === 175 /* Constructor */; + return node.kind === 176 /* Constructor */; } function isGetAccessorDeclaration(node) { - return node.kind === 176 /* GetAccessor */; + return node.kind === 177 /* GetAccessor */; } function isSetAccessorDeclaration(node) { - return node.kind === 177 /* SetAccessor */; + return node.kind === 178 /* SetAccessor */; } function isCallSignatureDeclaration(node) { - return node.kind === 178 /* CallSignature */; + return node.kind === 179 /* CallSignature */; } function isConstructSignatureDeclaration(node) { - return node.kind === 179 /* ConstructSignature */; + return node.kind === 180 /* ConstructSignature */; } function isIndexSignatureDeclaration(node) { - return node.kind === 180 /* IndexSignature */; + return node.kind === 181 /* IndexSignature */; } function isTypePredicateNode(node) { - return node.kind === 181 /* TypePredicate */; + return node.kind === 182 /* TypePredicate */; } function isTypeReferenceNode(node) { - return node.kind === 182 /* TypeReference */; + return node.kind === 183 /* TypeReference */; } function isFunctionTypeNode(node) { - return node.kind === 183 /* FunctionType */; + return node.kind === 184 /* FunctionType */; } function isConstructorTypeNode(node) { - return node.kind === 184 /* ConstructorType */; + return node.kind === 185 /* ConstructorType */; } function isTypeQueryNode(node) { - return node.kind === 185 /* TypeQuery */; + return node.kind === 186 /* TypeQuery */; } function isTypeLiteralNode(node) { - return node.kind === 186 /* TypeLiteral */; + return node.kind === 187 /* TypeLiteral */; } function isArrayTypeNode(node) { - return node.kind === 187 /* ArrayType */; + return node.kind === 188 /* ArrayType */; } function isTupleTypeNode(node) { - return node.kind === 188 /* TupleType */; + return node.kind === 189 /* TupleType */; } function isNamedTupleMember(node) { - return node.kind === 201 /* NamedTupleMember */; + return node.kind === 202 /* NamedTupleMember */; } function isOptionalTypeNode(node) { - return node.kind === 189 /* OptionalType */; + return node.kind === 190 /* OptionalType */; } function isRestTypeNode(node) { - return node.kind === 190 /* RestType */; + return node.kind === 191 /* RestType */; } function isUnionTypeNode(node) { - return node.kind === 191 /* UnionType */; + return node.kind === 192 /* UnionType */; } function isIntersectionTypeNode(node) { - return node.kind === 192 /* IntersectionType */; + return node.kind === 193 /* IntersectionType */; } function isConditionalTypeNode(node) { - return node.kind === 193 /* ConditionalType */; + return node.kind === 194 /* ConditionalType */; } function isInferTypeNode(node) { - return node.kind === 194 /* InferType */; + return node.kind === 195 /* InferType */; } function isParenthesizedTypeNode(node) { - return node.kind === 195 /* ParenthesizedType */; + return node.kind === 196 /* ParenthesizedType */; } function isThisTypeNode(node) { - return node.kind === 196 /* ThisType */; + return node.kind === 197 /* ThisType */; } function isTypeOperatorNode(node) { - return node.kind === 197 /* TypeOperator */; + return node.kind === 198 /* TypeOperator */; } function isIndexedAccessTypeNode(node) { - return node.kind === 198 /* IndexedAccessType */; + return node.kind === 199 /* IndexedAccessType */; } function isMappedTypeNode(node) { - return node.kind === 199 /* MappedType */; + return node.kind === 200 /* MappedType */; } function isLiteralTypeNode(node) { - return node.kind === 200 /* LiteralType */; + return node.kind === 201 /* LiteralType */; } function isImportTypeNode(node) { - return node.kind === 204 /* ImportType */; + return node.kind === 205 /* ImportType */; } function isTemplateLiteralTypeSpan(node) { - return node.kind === 203 /* TemplateLiteralTypeSpan */; + return node.kind === 204 /* TemplateLiteralTypeSpan */; } function isTemplateLiteralTypeNode(node) { - return node.kind === 202 /* TemplateLiteralType */; + return node.kind === 203 /* TemplateLiteralType */; } function isObjectBindingPattern(node) { - return node.kind === 205 /* ObjectBindingPattern */; + return node.kind === 206 /* ObjectBindingPattern */; } function isArrayBindingPattern(node) { - return node.kind === 206 /* ArrayBindingPattern */; + return node.kind === 207 /* ArrayBindingPattern */; } function isBindingElement(node) { - return node.kind === 207 /* BindingElement */; + return node.kind === 208 /* BindingElement */; } function isArrayLiteralExpression(node) { - return node.kind === 208 /* ArrayLiteralExpression */; + return node.kind === 209 /* ArrayLiteralExpression */; } function isObjectLiteralExpression(node) { - return node.kind === 209 /* ObjectLiteralExpression */; + return node.kind === 210 /* ObjectLiteralExpression */; } function isPropertyAccessExpression(node) { - return node.kind === 210 /* PropertyAccessExpression */; + return node.kind === 211 /* PropertyAccessExpression */; } function isElementAccessExpression(node) { - return node.kind === 211 /* ElementAccessExpression */; + return node.kind === 212 /* ElementAccessExpression */; } function isCallExpression(node) { - return node.kind === 212 /* CallExpression */; + return node.kind === 213 /* CallExpression */; } function isNewExpression(node) { - return node.kind === 213 /* NewExpression */; + return node.kind === 214 /* NewExpression */; } function isTaggedTemplateExpression(node) { - return node.kind === 214 /* TaggedTemplateExpression */; + return node.kind === 215 /* TaggedTemplateExpression */; } function isTypeAssertionExpression(node) { - return node.kind === 215 /* TypeAssertionExpression */; + return node.kind === 216 /* TypeAssertionExpression */; } function isParenthesizedExpression(node) { - return node.kind === 216 /* ParenthesizedExpression */; + return node.kind === 217 /* ParenthesizedExpression */; } function isFunctionExpression(node) { - return node.kind === 217 /* FunctionExpression */; + return node.kind === 218 /* FunctionExpression */; } function isArrowFunction(node) { - return node.kind === 218 /* ArrowFunction */; + return node.kind === 219 /* ArrowFunction */; } function isDeleteExpression(node) { - return node.kind === 219 /* DeleteExpression */; + return node.kind === 220 /* DeleteExpression */; } function isTypeOfExpression(node) { - return node.kind === 220 /* TypeOfExpression */; + return node.kind === 221 /* TypeOfExpression */; } function isVoidExpression(node) { - return node.kind === 221 /* VoidExpression */; + return node.kind === 222 /* VoidExpression */; } function isAwaitExpression(node) { - return node.kind === 222 /* AwaitExpression */; + return node.kind === 223 /* AwaitExpression */; } function isPrefixUnaryExpression(node) { - return node.kind === 223 /* PrefixUnaryExpression */; + return node.kind === 224 /* PrefixUnaryExpression */; } function isPostfixUnaryExpression(node) { - return node.kind === 224 /* PostfixUnaryExpression */; + return node.kind === 225 /* PostfixUnaryExpression */; } function isBinaryExpression(node) { - return node.kind === 225 /* BinaryExpression */; + return node.kind === 226 /* BinaryExpression */; } function isConditionalExpression(node) { - return node.kind === 226 /* ConditionalExpression */; + return node.kind === 227 /* ConditionalExpression */; } function isTemplateExpression(node) { - return node.kind === 227 /* TemplateExpression */; + return node.kind === 228 /* TemplateExpression */; } function isYieldExpression(node) { - return node.kind === 228 /* YieldExpression */; + return node.kind === 229 /* YieldExpression */; } function isSpreadElement(node) { - return node.kind === 229 /* SpreadElement */; + return node.kind === 230 /* SpreadElement */; } function isClassExpression(node) { - return node.kind === 230 /* ClassExpression */; + return node.kind === 231 /* ClassExpression */; } function isOmittedExpression(node) { - return node.kind === 231 /* OmittedExpression */; + return node.kind === 232 /* OmittedExpression */; } function isExpressionWithTypeArguments(node) { - return node.kind === 232 /* ExpressionWithTypeArguments */; + return node.kind === 233 /* ExpressionWithTypeArguments */; } function isAsExpression(node) { - return node.kind === 233 /* AsExpression */; + return node.kind === 234 /* AsExpression */; } function isSatisfiesExpression(node) { - return node.kind === 237 /* SatisfiesExpression */; + return node.kind === 238 /* SatisfiesExpression */; } function isNonNullExpression(node) { - return node.kind === 234 /* NonNullExpression */; + return node.kind === 235 /* NonNullExpression */; } function isMetaProperty(node) { - return node.kind === 235 /* MetaProperty */; + return node.kind === 236 /* MetaProperty */; } function isSyntheticExpression(node) { - return node.kind === 236 /* SyntheticExpression */; + return node.kind === 237 /* SyntheticExpression */; } function isPartiallyEmittedExpression(node) { - return node.kind === 359 /* PartiallyEmittedExpression */; + return node.kind === 360 /* PartiallyEmittedExpression */; } function isCommaListExpression(node) { - return node.kind === 360 /* CommaListExpression */; + return node.kind === 361 /* CommaListExpression */; } function isTemplateSpan(node) { - return node.kind === 238 /* TemplateSpan */; + return node.kind === 239 /* TemplateSpan */; } function isSemicolonClassElement(node) { - return node.kind === 239 /* SemicolonClassElement */; + return node.kind === 240 /* SemicolonClassElement */; } function isBlock(node) { - return node.kind === 240 /* Block */; + return node.kind === 241 /* Block */; } function isVariableStatement(node) { - return node.kind === 242 /* VariableStatement */; + return node.kind === 243 /* VariableStatement */; } function isEmptyStatement(node) { - return node.kind === 241 /* EmptyStatement */; + return node.kind === 242 /* EmptyStatement */; } function isExpressionStatement(node) { - return node.kind === 243 /* ExpressionStatement */; + return node.kind === 244 /* ExpressionStatement */; } function isIfStatement(node) { - return node.kind === 244 /* IfStatement */; + return node.kind === 245 /* IfStatement */; } function isDoStatement(node) { - return node.kind === 245 /* DoStatement */; + return node.kind === 246 /* DoStatement */; } function isWhileStatement(node) { - return node.kind === 246 /* WhileStatement */; + return node.kind === 247 /* WhileStatement */; } function isForStatement(node) { - return node.kind === 247 /* ForStatement */; + return node.kind === 248 /* ForStatement */; } function isForInStatement(node) { - return node.kind === 248 /* ForInStatement */; + return node.kind === 249 /* ForInStatement */; } function isForOfStatement(node) { - return node.kind === 249 /* ForOfStatement */; + return node.kind === 250 /* ForOfStatement */; } function isContinueStatement(node) { - return node.kind === 250 /* ContinueStatement */; + return node.kind === 251 /* ContinueStatement */; } function isBreakStatement(node) { - return node.kind === 251 /* BreakStatement */; + return node.kind === 252 /* BreakStatement */; } function isReturnStatement(node) { - return node.kind === 252 /* ReturnStatement */; + return node.kind === 253 /* ReturnStatement */; } function isWithStatement(node) { - return node.kind === 253 /* WithStatement */; + return node.kind === 254 /* WithStatement */; } function isSwitchStatement(node) { - return node.kind === 254 /* SwitchStatement */; + return node.kind === 255 /* SwitchStatement */; } function isLabeledStatement(node) { - return node.kind === 255 /* LabeledStatement */; + return node.kind === 256 /* LabeledStatement */; } function isThrowStatement(node) { - return node.kind === 256 /* ThrowStatement */; + return node.kind === 257 /* ThrowStatement */; } function isTryStatement(node) { - return node.kind === 257 /* TryStatement */; + return node.kind === 258 /* TryStatement */; } function isDebuggerStatement(node) { - return node.kind === 258 /* DebuggerStatement */; + return node.kind === 259 /* DebuggerStatement */; } function isVariableDeclaration(node) { - return node.kind === 259 /* VariableDeclaration */; + return node.kind === 260 /* VariableDeclaration */; } function isVariableDeclarationList(node) { - return node.kind === 260 /* VariableDeclarationList */; + return node.kind === 261 /* VariableDeclarationList */; } function isFunctionDeclaration(node) { - return node.kind === 261 /* FunctionDeclaration */; + return node.kind === 262 /* FunctionDeclaration */; } function isClassDeclaration(node) { - return node.kind === 262 /* ClassDeclaration */; + return node.kind === 263 /* ClassDeclaration */; } function isInterfaceDeclaration(node) { - return node.kind === 263 /* InterfaceDeclaration */; + return node.kind === 264 /* InterfaceDeclaration */; } function isTypeAliasDeclaration(node) { - return node.kind === 264 /* TypeAliasDeclaration */; + return node.kind === 265 /* TypeAliasDeclaration */; } function isEnumDeclaration(node) { - return node.kind === 265 /* EnumDeclaration */; + return node.kind === 266 /* EnumDeclaration */; } function isModuleDeclaration(node) { - return node.kind === 266 /* ModuleDeclaration */; + return node.kind === 267 /* ModuleDeclaration */; } function isModuleBlock(node) { - return node.kind === 267 /* ModuleBlock */; + return node.kind === 268 /* ModuleBlock */; } function isCaseBlock(node) { - return node.kind === 268 /* CaseBlock */; + return node.kind === 269 /* CaseBlock */; } function isNamespaceExportDeclaration(node) { - return node.kind === 269 /* NamespaceExportDeclaration */; + return node.kind === 270 /* NamespaceExportDeclaration */; } function isImportEqualsDeclaration(node) { - return node.kind === 270 /* ImportEqualsDeclaration */; + return node.kind === 271 /* ImportEqualsDeclaration */; } function isImportDeclaration(node) { - return node.kind === 271 /* ImportDeclaration */; + return node.kind === 272 /* ImportDeclaration */; } function isImportClause(node) { - return node.kind === 272 /* ImportClause */; + return node.kind === 273 /* ImportClause */; } function isImportTypeAssertionContainer(node) { - return node.kind === 301 /* ImportTypeAssertionContainer */; + return node.kind === 302 /* ImportTypeAssertionContainer */; } function isAssertClause(node) { - return node.kind === 299 /* AssertClause */; + return node.kind === 300 /* AssertClause */; } function isAssertEntry(node) { - return node.kind === 300 /* AssertEntry */; + return node.kind === 301 /* AssertEntry */; } function isNamespaceImport(node) { - return node.kind === 273 /* NamespaceImport */; + return node.kind === 274 /* NamespaceImport */; } function isNamespaceExport(node) { - return node.kind === 279 /* NamespaceExport */; + return node.kind === 280 /* NamespaceExport */; } function isNamedImports(node) { - return node.kind === 274 /* NamedImports */; + return node.kind === 275 /* NamedImports */; } function isImportSpecifier(node) { - return node.kind === 275 /* ImportSpecifier */; + return node.kind === 276 /* ImportSpecifier */; } function isExportAssignment(node) { - return node.kind === 276 /* ExportAssignment */; + return node.kind === 277 /* ExportAssignment */; } function isExportDeclaration(node) { - return node.kind === 277 /* ExportDeclaration */; + return node.kind === 278 /* ExportDeclaration */; } function isNamedExports(node) { - return node.kind === 278 /* NamedExports */; + return node.kind === 279 /* NamedExports */; } function isExportSpecifier(node) { - return node.kind === 280 /* ExportSpecifier */; + return node.kind === 281 /* ExportSpecifier */; } function isMissingDeclaration(node) { - return node.kind === 281 /* MissingDeclaration */; + return node.kind === 282 /* MissingDeclaration */; } function isNotEmittedStatement(node) { - return node.kind === 358 /* NotEmittedStatement */; + return node.kind === 359 /* NotEmittedStatement */; } function isSyntheticReference(node) { - return node.kind === 361 /* SyntheticReferenceExpression */; + return node.kind === 362 /* SyntheticReferenceExpression */; } function isExternalModuleReference(node) { - return node.kind === 282 /* ExternalModuleReference */; + return node.kind === 283 /* ExternalModuleReference */; } function isJsxElement(node) { - return node.kind === 283 /* JsxElement */; + return node.kind === 284 /* JsxElement */; } function isJsxSelfClosingElement(node) { - return node.kind === 284 /* JsxSelfClosingElement */; + return node.kind === 285 /* JsxSelfClosingElement */; } function isJsxOpeningElement(node) { - return node.kind === 285 /* JsxOpeningElement */; + return node.kind === 286 /* JsxOpeningElement */; } function isJsxClosingElement(node) { - return node.kind === 286 /* JsxClosingElement */; + return node.kind === 287 /* JsxClosingElement */; } function isJsxFragment(node) { - return node.kind === 287 /* JsxFragment */; + return node.kind === 288 /* JsxFragment */; } function isJsxOpeningFragment(node) { - return node.kind === 288 /* JsxOpeningFragment */; + return node.kind === 289 /* JsxOpeningFragment */; } function isJsxClosingFragment(node) { - return node.kind === 289 /* JsxClosingFragment */; + return node.kind === 290 /* JsxClosingFragment */; } function isJsxAttribute(node) { - return node.kind === 290 /* JsxAttribute */; + return node.kind === 291 /* JsxAttribute */; } function isJsxAttributes(node) { - return node.kind === 291 /* JsxAttributes */; + return node.kind === 292 /* JsxAttributes */; } function isJsxSpreadAttribute(node) { - return node.kind === 292 /* JsxSpreadAttribute */; + return node.kind === 293 /* JsxSpreadAttribute */; } function isJsxExpression(node) { - return node.kind === 293 /* JsxExpression */; + return node.kind === 294 /* JsxExpression */; } function isJsxNamespacedName(node) { - return node.kind === 294 /* JsxNamespacedName */; + return node.kind === 295 /* JsxNamespacedName */; } function isCaseClause(node) { - return node.kind === 295 /* CaseClause */; + return node.kind === 296 /* CaseClause */; } function isDefaultClause(node) { - return node.kind === 296 /* DefaultClause */; + return node.kind === 297 /* DefaultClause */; } function isHeritageClause(node) { - return node.kind === 297 /* HeritageClause */; + return node.kind === 298 /* HeritageClause */; } function isCatchClause(node) { - return node.kind === 298 /* CatchClause */; + return node.kind === 299 /* CatchClause */; } function isPropertyAssignment(node) { - return node.kind === 302 /* PropertyAssignment */; + return node.kind === 303 /* PropertyAssignment */; } function isShorthandPropertyAssignment(node) { - return node.kind === 303 /* ShorthandPropertyAssignment */; + return node.kind === 304 /* ShorthandPropertyAssignment */; } function isSpreadAssignment(node) { - return node.kind === 304 /* SpreadAssignment */; + return node.kind === 305 /* SpreadAssignment */; } function isEnumMember(node) { - return node.kind === 305 /* EnumMember */; + return node.kind === 306 /* EnumMember */; } function isUnparsedPrepend(node) { - return node.kind === 307 /* UnparsedPrepend */; + return node.kind === 308 /* UnparsedPrepend */; } function isSourceFile(node) { - return node.kind === 311 /* SourceFile */; + return node.kind === 312 /* SourceFile */; } function isBundle(node) { - return node.kind === 312 /* Bundle */; + return node.kind === 313 /* Bundle */; } function isUnparsedSource(node) { - return node.kind === 313 /* UnparsedSource */; + return node.kind === 314 /* UnparsedSource */; } function isJSDocTypeExpression(node) { - return node.kind === 315 /* JSDocTypeExpression */; + return node.kind === 316 /* JSDocTypeExpression */; } function isJSDocNameReference(node) { - return node.kind === 316 /* JSDocNameReference */; + return node.kind === 317 /* JSDocNameReference */; } function isJSDocMemberName(node) { - return node.kind === 317 /* JSDocMemberName */; + return node.kind === 318 /* JSDocMemberName */; } function isJSDocLink(node) { - return node.kind === 330 /* JSDocLink */; + return node.kind === 331 /* JSDocLink */; } function isJSDocLinkCode(node) { - return node.kind === 331 /* JSDocLinkCode */; + return node.kind === 332 /* JSDocLinkCode */; } function isJSDocLinkPlain(node) { - return node.kind === 332 /* JSDocLinkPlain */; + return node.kind === 333 /* JSDocLinkPlain */; } function isJSDocAllType(node) { - return node.kind === 318 /* JSDocAllType */; + return node.kind === 319 /* JSDocAllType */; } function isJSDocUnknownType(node) { - return node.kind === 319 /* JSDocUnknownType */; + return node.kind === 320 /* JSDocUnknownType */; } function isJSDocNullableType(node) { - return node.kind === 320 /* JSDocNullableType */; + return node.kind === 321 /* JSDocNullableType */; } function isJSDocNonNullableType(node) { - return node.kind === 321 /* JSDocNonNullableType */; + return node.kind === 322 /* JSDocNonNullableType */; } function isJSDocOptionalType(node) { - return node.kind === 322 /* JSDocOptionalType */; + return node.kind === 323 /* JSDocOptionalType */; } function isJSDocFunctionType(node) { - return node.kind === 323 /* JSDocFunctionType */; + return node.kind === 324 /* JSDocFunctionType */; } function isJSDocVariadicType(node) { - return node.kind === 324 /* JSDocVariadicType */; + return node.kind === 325 /* JSDocVariadicType */; } function isJSDocNamepathType(node) { - return node.kind === 325 /* JSDocNamepathType */; + return node.kind === 326 /* JSDocNamepathType */; } function isJSDoc(node) { - return node.kind === 326 /* JSDoc */; + return node.kind === 327 /* JSDoc */; } function isJSDocTypeLiteral(node) { - return node.kind === 328 /* JSDocTypeLiteral */; + return node.kind === 329 /* JSDocTypeLiteral */; } function isJSDocSignature(node) { - return node.kind === 329 /* JSDocSignature */; + return node.kind === 330 /* JSDocSignature */; } function isJSDocAugmentsTag(node) { - return node.kind === 334 /* JSDocAugmentsTag */; + return node.kind === 335 /* JSDocAugmentsTag */; } function isJSDocAuthorTag(node) { - return node.kind === 336 /* JSDocAuthorTag */; + return node.kind === 337 /* JSDocAuthorTag */; } function isJSDocClassTag(node) { - return node.kind === 338 /* JSDocClassTag */; + return node.kind === 339 /* JSDocClassTag */; } function isJSDocCallbackTag(node) { - return node.kind === 344 /* JSDocCallbackTag */; + return node.kind === 345 /* JSDocCallbackTag */; } function isJSDocPublicTag(node) { - return node.kind === 339 /* JSDocPublicTag */; + return node.kind === 340 /* JSDocPublicTag */; } function isJSDocPrivateTag(node) { - return node.kind === 340 /* JSDocPrivateTag */; + return node.kind === 341 /* JSDocPrivateTag */; } function isJSDocProtectedTag(node) { - return node.kind === 341 /* JSDocProtectedTag */; + return node.kind === 342 /* JSDocProtectedTag */; } function isJSDocReadonlyTag(node) { - return node.kind === 342 /* JSDocReadonlyTag */; + return node.kind === 343 /* JSDocReadonlyTag */; } function isJSDocOverrideTag(node) { - return node.kind === 343 /* JSDocOverrideTag */; + return node.kind === 344 /* JSDocOverrideTag */; } function isJSDocOverloadTag(node) { - return node.kind === 345 /* JSDocOverloadTag */; + return node.kind === 346 /* JSDocOverloadTag */; } function isJSDocDeprecatedTag(node) { - return node.kind === 337 /* JSDocDeprecatedTag */; + return node.kind === 338 /* JSDocDeprecatedTag */; } function isJSDocSeeTag(node) { - return node.kind === 353 /* JSDocSeeTag */; + return node.kind === 354 /* JSDocSeeTag */; } function isJSDocEnumTag(node) { - return node.kind === 346 /* JSDocEnumTag */; + return node.kind === 347 /* JSDocEnumTag */; } function isJSDocParameterTag(node) { - return node.kind === 347 /* JSDocParameterTag */; + return node.kind === 348 /* JSDocParameterTag */; } function isJSDocReturnTag(node) { - return node.kind === 348 /* JSDocReturnTag */; + return node.kind === 349 /* JSDocReturnTag */; } function isJSDocThisTag(node) { - return node.kind === 349 /* JSDocThisTag */; + return node.kind === 350 /* JSDocThisTag */; } function isJSDocTypeTag(node) { - return node.kind === 350 /* JSDocTypeTag */; + return node.kind === 351 /* JSDocTypeTag */; } function isJSDocTemplateTag(node) { - return node.kind === 351 /* JSDocTemplateTag */; + return node.kind === 352 /* JSDocTemplateTag */; } function isJSDocTypedefTag(node) { - return node.kind === 352 /* JSDocTypedefTag */; + return node.kind === 353 /* JSDocTypedefTag */; } function isJSDocUnknownTag(node) { - return node.kind === 333 /* JSDocTag */; + return node.kind === 334 /* JSDocTag */; } function isJSDocPropertyTag(node) { - return node.kind === 354 /* JSDocPropertyTag */; + return node.kind === 355 /* JSDocPropertyTag */; } function isJSDocImplementsTag(node) { - return node.kind === 335 /* JSDocImplementsTag */; + return node.kind === 336 /* JSDocImplementsTag */; } function isJSDocSatisfiesTag(node) { - return node.kind === 356 /* JSDocSatisfiesTag */; + return node.kind === 357 /* JSDocSatisfiesTag */; } function isJSDocThrowsTag(node) { - return node.kind === 355 /* JSDocThrowsTag */; + return node.kind === 356 /* JSDocThrowsTag */; } function isSyntaxList(n) { - return n.kind === 357 /* SyntaxList */; + return n.kind === 358 /* SyntaxList */; } var init_nodeTests = __esm({ "src/compiler/factory/nodeTests.ts"() { @@ -26888,14 +27106,14 @@ ${lanes.join("\n")} Debug.failBadSyntaxKind(property.name, "Private identifiers are not allowed in object literals."); } switch (property.kind) { - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return createExpressionForAccessorDeclaration(factory2, node.properties, property, receiver, !!node.multiLine); - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return createExpressionForPropertyAssignment(factory2, property, receiver); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return createExpressionForShorthandPropertyAssignment(factory2, property, receiver); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return createExpressionForMethodDeclaration(factory2, property, receiver); } } @@ -26948,7 +27166,7 @@ ${lanes.join("\n")} return firstStatement !== void 0 && isPrologueDirective(firstStatement) && isUseStrictPrologue(firstStatement); } function isCommaExpression(node) { - return node.kind === 225 /* BinaryExpression */ && node.operatorToken.kind === 28 /* CommaToken */; + return node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 28 /* CommaToken */; } function isCommaSequence(node) { return isCommaExpression(node) || isCommaListExpression(node); @@ -26963,19 +27181,19 @@ ${lanes.join("\n")} } function isOuterExpression(node, kinds = 15 /* All */) { switch (node.kind) { - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: if (kinds & 16 /* ExcludeJSDocTypeAssertion */ && isJSDocTypeAssertion(node)) { return false; } return (kinds & 1 /* Parentheses */) !== 0; - case 215 /* TypeAssertionExpression */: - case 233 /* AsExpression */: - case 232 /* ExpressionWithTypeArguments */: - case 237 /* SatisfiesExpression */: + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: + case 233 /* ExpressionWithTypeArguments */: + case 238 /* SatisfiesExpression */: return (kinds & 2 /* TypeAssertions */) !== 0; - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: return (kinds & 4 /* NonNullAssertions */) !== 0; - case 359 /* PartiallyEmittedExpression */: + case 360 /* PartiallyEmittedExpression */: return (kinds & 8 /* PartiallyEmittedExpressions */) !== 0; } return false; @@ -27112,10 +27330,10 @@ ${lanes.join("\n")} const name = namespaceDeclaration.name; return isGeneratedIdentifier(name) ? name : factory2.createIdentifier(getSourceTextOfNodeFromSourceFile(sourceFile, name) || idText(name)); } - if (node.kind === 271 /* ImportDeclaration */ && node.importClause) { + if (node.kind === 272 /* ImportDeclaration */ && node.importClause) { return factory2.getGeneratedNameForNode(node); } - if (node.kind === 277 /* ExportDeclaration */ && node.moduleSpecifier) { + if (node.kind === 278 /* ExportDeclaration */ && node.moduleSpecifier) { return factory2.getGeneratedNameForNode(node); } return void 0; @@ -27178,11 +27396,11 @@ ${lanes.join("\n")} } if (isObjectLiteralElementLike(bindingElement)) { switch (bindingElement.kind) { - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return getTargetOfBindingOrAssignmentElement(bindingElement.initializer); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return bindingElement.name; - case 304 /* SpreadAssignment */: + case 305 /* SpreadAssignment */: return getTargetOfBindingOrAssignmentElement(bindingElement.expression); } return void 0; @@ -27201,11 +27419,11 @@ ${lanes.join("\n")} } function getRestIndicatorOfBindingOrAssignmentElement(bindingElement) { switch (bindingElement.kind) { - case 168 /* Parameter */: - case 207 /* BindingElement */: + case 169 /* Parameter */: + case 208 /* BindingElement */: return bindingElement.dotDotDotToken; - case 229 /* SpreadElement */: - case 304 /* SpreadAssignment */: + case 230 /* SpreadElement */: + case 305 /* SpreadAssignment */: return bindingElement; } return void 0; @@ -27217,7 +27435,7 @@ ${lanes.join("\n")} } function tryGetPropertyNameOfBindingOrAssignmentElement(bindingElement) { switch (bindingElement.kind) { - case 207 /* BindingElement */: + case 208 /* BindingElement */: if (bindingElement.propertyName) { const propertyName = bindingElement.propertyName; if (isPrivateIdentifier(propertyName)) { @@ -27226,7 +27444,7 @@ ${lanes.join("\n")} return isComputedPropertyName(propertyName) && isStringOrNumericLiteral(propertyName.expression) ? propertyName.expression : propertyName; } break; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: if (bindingElement.name) { const propertyName = bindingElement.name; if (isPrivateIdentifier(propertyName)) { @@ -27235,7 +27453,7 @@ ${lanes.join("\n")} return isComputedPropertyName(propertyName) && isStringOrNumericLiteral(propertyName.expression) ? propertyName.expression : propertyName; } break; - case 304 /* SpreadAssignment */: + case 305 /* SpreadAssignment */: if (bindingElement.name && isPrivateIdentifier(bindingElement.name)) { return Debug.failBadSyntaxKind(bindingElement.name); } @@ -27252,11 +27470,11 @@ ${lanes.join("\n")} } function getElementsOfBindingOrAssignmentPattern(name) { switch (name.kind) { - case 205 /* ObjectBindingPattern */: - case 206 /* ArrayBindingPattern */: - case 208 /* ArrayLiteralExpression */: + case 206 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: + case 209 /* ArrayLiteralExpression */: return name.elements; - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return name.properties; } } @@ -27273,19 +27491,19 @@ ${lanes.join("\n")} } function canHaveIllegalType(node) { const kind = node.kind; - return kind === 175 /* Constructor */ || kind === 177 /* SetAccessor */; + return kind === 176 /* Constructor */ || kind === 178 /* SetAccessor */; } function canHaveIllegalTypeParameters(node) { const kind = node.kind; - return kind === 175 /* Constructor */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */; + return kind === 176 /* Constructor */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; } function canHaveIllegalDecorators(node) { const kind = node.kind; - return kind === 302 /* PropertyAssignment */ || kind === 303 /* ShorthandPropertyAssignment */ || kind === 261 /* FunctionDeclaration */ || kind === 175 /* Constructor */ || kind === 180 /* IndexSignature */ || kind === 174 /* ClassStaticBlockDeclaration */ || kind === 281 /* MissingDeclaration */ || kind === 242 /* VariableStatement */ || kind === 263 /* InterfaceDeclaration */ || kind === 264 /* TypeAliasDeclaration */ || kind === 265 /* EnumDeclaration */ || kind === 266 /* ModuleDeclaration */ || kind === 270 /* ImportEqualsDeclaration */ || kind === 271 /* ImportDeclaration */ || kind === 269 /* NamespaceExportDeclaration */ || kind === 277 /* ExportDeclaration */ || kind === 276 /* ExportAssignment */; + return kind === 303 /* PropertyAssignment */ || kind === 304 /* ShorthandPropertyAssignment */ || kind === 262 /* FunctionDeclaration */ || kind === 176 /* Constructor */ || kind === 181 /* IndexSignature */ || kind === 175 /* ClassStaticBlockDeclaration */ || kind === 282 /* MissingDeclaration */ || kind === 243 /* VariableStatement */ || kind === 264 /* InterfaceDeclaration */ || kind === 265 /* TypeAliasDeclaration */ || kind === 266 /* EnumDeclaration */ || kind === 267 /* ModuleDeclaration */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 272 /* ImportDeclaration */ || kind === 270 /* NamespaceExportDeclaration */ || kind === 278 /* ExportDeclaration */ || kind === 277 /* ExportAssignment */; } function canHaveIllegalModifiers(node) { const kind = node.kind; - return kind === 174 /* ClassStaticBlockDeclaration */ || kind === 302 /* PropertyAssignment */ || kind === 303 /* ShorthandPropertyAssignment */ || kind === 281 /* MissingDeclaration */ || kind === 269 /* NamespaceExportDeclaration */; + return kind === 175 /* ClassStaticBlockDeclaration */ || kind === 303 /* PropertyAssignment */ || kind === 304 /* ShorthandPropertyAssignment */ || kind === 282 /* MissingDeclaration */ || kind === 270 /* NamespaceExportDeclaration */; } function isQuestionOrExclamationToken(node) { return isQuestionToken(node) || isExclamationToken(node); @@ -27452,7 +27670,7 @@ ${lanes.join("\n")} initializer ); } - function createAccessorPropertyGetRedirector(factory2, node, modifiers, name) { + function createAccessorPropertyGetRedirector(factory2, node, modifiers, name, receiver = factory2.createThis()) { return factory2.createGetAccessorDeclaration( modifiers, name, @@ -27462,7 +27680,7 @@ ${lanes.join("\n")} factory2.createBlock([ factory2.createReturnStatement( factory2.createPropertyAccessExpression( - factory2.createThis(), + receiver, factory2.getGeneratedPrivateNameForNode( node.name, /*prefix*/ @@ -27474,7 +27692,7 @@ ${lanes.join("\n")} ]) ); } - function createAccessorPropertySetRedirector(factory2, node, modifiers, name) { + function createAccessorPropertySetRedirector(factory2, node, modifiers, name, receiver = factory2.createThis()) { return factory2.createSetAccessorDeclaration( modifiers, name, @@ -27489,7 +27707,7 @@ ${lanes.join("\n")} factory2.createExpressionStatement( factory2.createAssignment( factory2.createPropertyAccessExpression( - factory2.createThis(), + receiver, factory2.getGeneratedPrivateNameForNode( node.name, /*prefix*/ @@ -27690,11 +27908,11 @@ ${lanes.join("\n")} } function canHaveModifiers(node) { const kind = node.kind; - return kind === 167 /* TypeParameter */ || kind === 168 /* Parameter */ || kind === 170 /* PropertySignature */ || kind === 171 /* PropertyDeclaration */ || kind === 172 /* MethodSignature */ || kind === 173 /* MethodDeclaration */ || kind === 175 /* Constructor */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */ || kind === 180 /* IndexSignature */ || kind === 184 /* ConstructorType */ || kind === 217 /* FunctionExpression */ || kind === 218 /* ArrowFunction */ || kind === 230 /* ClassExpression */ || kind === 242 /* VariableStatement */ || kind === 261 /* FunctionDeclaration */ || kind === 262 /* ClassDeclaration */ || kind === 263 /* InterfaceDeclaration */ || kind === 264 /* TypeAliasDeclaration */ || kind === 265 /* EnumDeclaration */ || kind === 266 /* ModuleDeclaration */ || kind === 270 /* ImportEqualsDeclaration */ || kind === 271 /* ImportDeclaration */ || kind === 276 /* ExportAssignment */ || kind === 277 /* ExportDeclaration */; + return kind === 168 /* TypeParameter */ || kind === 169 /* Parameter */ || kind === 171 /* PropertySignature */ || kind === 172 /* PropertyDeclaration */ || kind === 173 /* MethodSignature */ || kind === 174 /* MethodDeclaration */ || kind === 176 /* Constructor */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 181 /* IndexSignature */ || kind === 185 /* ConstructorType */ || kind === 218 /* FunctionExpression */ || kind === 219 /* ArrowFunction */ || kind === 231 /* ClassExpression */ || kind === 243 /* VariableStatement */ || kind === 262 /* FunctionDeclaration */ || kind === 263 /* ClassDeclaration */ || kind === 264 /* InterfaceDeclaration */ || kind === 265 /* TypeAliasDeclaration */ || kind === 266 /* EnumDeclaration */ || kind === 267 /* ModuleDeclaration */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 272 /* ImportDeclaration */ || kind === 277 /* ExportAssignment */ || kind === 278 /* ExportDeclaration */; } function canHaveDecorators(node) { const kind = node.kind; - return kind === 168 /* Parameter */ || kind === 171 /* PropertyDeclaration */ || kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */ || kind === 230 /* ClassExpression */ || kind === 262 /* ClassDeclaration */; + return kind === 169 /* Parameter */ || kind === 172 /* PropertyDeclaration */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 231 /* ClassExpression */ || kind === 263 /* ClassDeclaration */; } var init_utilitiesPublic2 = __esm({ "src/compiler/factory/utilitiesPublic.ts"() { @@ -27730,7 +27948,7 @@ ${lanes.join("\n")} return canHaveModifiers(node) && hasModifierOfKind(node, 95 /* ExportKeyword */) || isImportEqualsDeclaration(node) && isExternalModuleReference(node.moduleReference) || isImportDeclaration(node) || isExportAssignment(node) || isExportDeclaration(node) ? node : void 0; } function getImportMetaIfNecessary(sourceFile) { - return sourceFile.flags & 4194304 /* PossiblyContainsImportMeta */ ? walkTreeForImportMeta(sourceFile) : void 0; + return sourceFile.flags & 8388608 /* PossiblyContainsImportMeta */ ? walkTreeForImportMeta(sourceFile) : void 0; } function walkTreeForImportMeta(node) { return isImportMeta2(node) ? node : forEachChild(node, walkTreeForImportMeta); @@ -27794,7 +28012,7 @@ ${lanes.join("\n")} return visitNode2(cbNode, node.expression); } function forEachChild(node, cbNode, cbNodes) { - if (node === void 0 || node.kind <= 164 /* LastToken */) { + if (node === void 0 || node.kind <= 165 /* LastToken */) { return; } const fn = forEachChildTable[node.kind]; @@ -27829,7 +28047,7 @@ ${lanes.join("\n")} continue; return res; } - if (current.kind >= 165 /* FirstNode */) { + if (current.kind >= 166 /* FirstNode */) { for (const child of gatherPossibleChildren(current)) { queue.push(child); parents.push(current); @@ -27910,7 +28128,7 @@ ${lanes.join("\n")} } function updateSourceFile(sourceFile, newText, textChangeRange, aggressiveChecks = false) { const newSourceFile = IncrementalParser.updateSourceFile(sourceFile, newText, textChangeRange, aggressiveChecks); - newSourceFile.flags |= sourceFile.flags & 6291456 /* PermanentlySetIncrementalFlags */; + newSourceFile.flags |= sourceFile.flags & 12582912 /* PermanentlySetIncrementalFlags */; return newSourceFile; } function parseIsolatedJSDocComment(content, start, length2) { @@ -28131,7 +28349,7 @@ ${lanes.join("\n")} if (lhs.kind === 110 /* ThisKeyword */) { return true; } - if (lhs.kind === 294 /* JsxNamespacedName */) { + if (lhs.kind === 295 /* JsxNamespacedName */) { return lhs.namespace.escapedText === rhs.namespace.escapedText && lhs.name.escapedText === rhs.name.escapedText; } return lhs.name.escapedText === rhs.name.escapedText && tagNamesAreEquivalent(lhs.expression, rhs.expression); @@ -28151,428 +28369,428 @@ ${lanes.join("\n")} }; parseNodeFactory = createNodeFactory(1 /* NoParenthesizerRules */, parseBaseNodeFactory); forEachChildTable = { - [165 /* QualifiedName */]: function forEachChildInQualifiedName(node, cbNode, _cbNodes) { + [166 /* QualifiedName */]: function forEachChildInQualifiedName(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.left) || visitNode2(cbNode, node.right); }, - [167 /* TypeParameter */]: function forEachChildInTypeParameter(node, cbNode, cbNodes) { + [168 /* TypeParameter */]: function forEachChildInTypeParameter(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.constraint) || visitNode2(cbNode, node.default) || visitNode2(cbNode, node.expression); }, - [303 /* ShorthandPropertyAssignment */]: function forEachChildInShorthandPropertyAssignment(node, cbNode, cbNodes) { + [304 /* ShorthandPropertyAssignment */]: function forEachChildInShorthandPropertyAssignment(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.equalsToken) || visitNode2(cbNode, node.objectAssignmentInitializer); }, - [304 /* SpreadAssignment */]: function forEachChildInSpreadAssignment(node, cbNode, _cbNodes) { + [305 /* SpreadAssignment */]: function forEachChildInSpreadAssignment(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [168 /* Parameter */]: function forEachChildInParameter(node, cbNode, cbNodes) { + [169 /* Parameter */]: function forEachChildInParameter(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.dotDotDotToken) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.initializer); }, - [171 /* PropertyDeclaration */]: function forEachChildInPropertyDeclaration(node, cbNode, cbNodes) { + [172 /* PropertyDeclaration */]: function forEachChildInPropertyDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.initializer); }, - [170 /* PropertySignature */]: function forEachChildInPropertySignature(node, cbNode, cbNodes) { + [171 /* PropertySignature */]: function forEachChildInPropertySignature(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.initializer); }, - [302 /* PropertyAssignment */]: function forEachChildInPropertyAssignment(node, cbNode, cbNodes) { + [303 /* PropertyAssignment */]: function forEachChildInPropertyAssignment(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.initializer); }, - [259 /* VariableDeclaration */]: function forEachChildInVariableDeclaration(node, cbNode, _cbNodes) { + [260 /* VariableDeclaration */]: function forEachChildInVariableDeclaration(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.initializer); }, - [207 /* BindingElement */]: function forEachChildInBindingElement(node, cbNode, _cbNodes) { + [208 /* BindingElement */]: function forEachChildInBindingElement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.dotDotDotToken) || visitNode2(cbNode, node.propertyName) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.initializer); }, - [180 /* IndexSignature */]: function forEachChildInIndexSignature(node, cbNode, cbNodes) { + [181 /* IndexSignature */]: function forEachChildInIndexSignature(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); }, - [184 /* ConstructorType */]: function forEachChildInConstructorType(node, cbNode, cbNodes) { + [185 /* ConstructorType */]: function forEachChildInConstructorType(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); }, - [183 /* FunctionType */]: function forEachChildInFunctionType(node, cbNode, cbNodes) { + [184 /* FunctionType */]: function forEachChildInFunctionType(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); }, - [178 /* CallSignature */]: forEachChildInCallOrConstructSignature, - [179 /* ConstructSignature */]: forEachChildInCallOrConstructSignature, - [173 /* MethodDeclaration */]: function forEachChildInMethodDeclaration(node, cbNode, cbNodes) { + [179 /* CallSignature */]: forEachChildInCallOrConstructSignature, + [180 /* ConstructSignature */]: forEachChildInCallOrConstructSignature, + [174 /* MethodDeclaration */]: function forEachChildInMethodDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.asteriskToken) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); }, - [172 /* MethodSignature */]: function forEachChildInMethodSignature(node, cbNode, cbNodes) { + [173 /* MethodSignature */]: function forEachChildInMethodSignature(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); }, - [175 /* Constructor */]: function forEachChildInConstructor(node, cbNode, cbNodes) { + [176 /* Constructor */]: function forEachChildInConstructor(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); }, - [176 /* GetAccessor */]: function forEachChildInGetAccessor(node, cbNode, cbNodes) { + [177 /* GetAccessor */]: function forEachChildInGetAccessor(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); }, - [177 /* SetAccessor */]: function forEachChildInSetAccessor(node, cbNode, cbNodes) { + [178 /* SetAccessor */]: function forEachChildInSetAccessor(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); }, - [261 /* FunctionDeclaration */]: function forEachChildInFunctionDeclaration(node, cbNode, cbNodes) { + [262 /* FunctionDeclaration */]: function forEachChildInFunctionDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.asteriskToken) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); }, - [217 /* FunctionExpression */]: function forEachChildInFunctionExpression(node, cbNode, cbNodes) { + [218 /* FunctionExpression */]: function forEachChildInFunctionExpression(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.asteriskToken) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); }, - [218 /* ArrowFunction */]: function forEachChildInArrowFunction(node, cbNode, cbNodes) { + [219 /* ArrowFunction */]: function forEachChildInArrowFunction(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.equalsGreaterThanToken) || visitNode2(cbNode, node.body); }, - [174 /* ClassStaticBlockDeclaration */]: function forEachChildInClassStaticBlockDeclaration(node, cbNode, cbNodes) { + [175 /* ClassStaticBlockDeclaration */]: function forEachChildInClassStaticBlockDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.body); }, - [182 /* TypeReference */]: function forEachChildInTypeReference(node, cbNode, cbNodes) { + [183 /* TypeReference */]: function forEachChildInTypeReference(node, cbNode, cbNodes) { return visitNode2(cbNode, node.typeName) || visitNodes(cbNode, cbNodes, node.typeArguments); }, - [181 /* TypePredicate */]: function forEachChildInTypePredicate(node, cbNode, _cbNodes) { + [182 /* TypePredicate */]: function forEachChildInTypePredicate(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.assertsModifier) || visitNode2(cbNode, node.parameterName) || visitNode2(cbNode, node.type); }, - [185 /* TypeQuery */]: function forEachChildInTypeQuery(node, cbNode, cbNodes) { + [186 /* TypeQuery */]: function forEachChildInTypeQuery(node, cbNode, cbNodes) { return visitNode2(cbNode, node.exprName) || visitNodes(cbNode, cbNodes, node.typeArguments); }, - [186 /* TypeLiteral */]: function forEachChildInTypeLiteral(node, cbNode, cbNodes) { + [187 /* TypeLiteral */]: function forEachChildInTypeLiteral(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.members); }, - [187 /* ArrayType */]: function forEachChildInArrayType(node, cbNode, _cbNodes) { + [188 /* ArrayType */]: function forEachChildInArrayType(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.elementType); }, - [188 /* TupleType */]: function forEachChildInTupleType(node, cbNode, cbNodes) { + [189 /* TupleType */]: function forEachChildInTupleType(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.elements); }, - [191 /* UnionType */]: forEachChildInUnionOrIntersectionType, - [192 /* IntersectionType */]: forEachChildInUnionOrIntersectionType, - [193 /* ConditionalType */]: function forEachChildInConditionalType(node, cbNode, _cbNodes) { + [192 /* UnionType */]: forEachChildInUnionOrIntersectionType, + [193 /* IntersectionType */]: forEachChildInUnionOrIntersectionType, + [194 /* ConditionalType */]: function forEachChildInConditionalType(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.checkType) || visitNode2(cbNode, node.extendsType) || visitNode2(cbNode, node.trueType) || visitNode2(cbNode, node.falseType); }, - [194 /* InferType */]: function forEachChildInInferType(node, cbNode, _cbNodes) { + [195 /* InferType */]: function forEachChildInInferType(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.typeParameter); }, - [204 /* ImportType */]: function forEachChildInImportType(node, cbNode, cbNodes) { + [205 /* ImportType */]: function forEachChildInImportType(node, cbNode, cbNodes) { return visitNode2(cbNode, node.argument) || visitNode2(cbNode, node.assertions) || visitNode2(cbNode, node.qualifier) || visitNodes(cbNode, cbNodes, node.typeArguments); }, - [301 /* ImportTypeAssertionContainer */]: function forEachChildInImportTypeAssertionContainer(node, cbNode, _cbNodes) { + [302 /* ImportTypeAssertionContainer */]: function forEachChildInImportTypeAssertionContainer(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.assertClause); }, - [195 /* ParenthesizedType */]: forEachChildInParenthesizedTypeOrTypeOperator, - [197 /* TypeOperator */]: forEachChildInParenthesizedTypeOrTypeOperator, - [198 /* IndexedAccessType */]: function forEachChildInIndexedAccessType(node, cbNode, _cbNodes) { + [196 /* ParenthesizedType */]: forEachChildInParenthesizedTypeOrTypeOperator, + [198 /* TypeOperator */]: forEachChildInParenthesizedTypeOrTypeOperator, + [199 /* IndexedAccessType */]: function forEachChildInIndexedAccessType(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.objectType) || visitNode2(cbNode, node.indexType); }, - [199 /* MappedType */]: function forEachChildInMappedType(node, cbNode, cbNodes) { + [200 /* MappedType */]: function forEachChildInMappedType(node, cbNode, cbNodes) { return visitNode2(cbNode, node.readonlyToken) || visitNode2(cbNode, node.typeParameter) || visitNode2(cbNode, node.nameType) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.type) || visitNodes(cbNode, cbNodes, node.members); }, - [200 /* LiteralType */]: function forEachChildInLiteralType(node, cbNode, _cbNodes) { + [201 /* LiteralType */]: function forEachChildInLiteralType(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.literal); }, - [201 /* NamedTupleMember */]: function forEachChildInNamedTupleMember(node, cbNode, _cbNodes) { + [202 /* NamedTupleMember */]: function forEachChildInNamedTupleMember(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.dotDotDotToken) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.type); }, - [205 /* ObjectBindingPattern */]: forEachChildInObjectOrArrayBindingPattern, - [206 /* ArrayBindingPattern */]: forEachChildInObjectOrArrayBindingPattern, - [208 /* ArrayLiteralExpression */]: function forEachChildInArrayLiteralExpression(node, cbNode, cbNodes) { + [206 /* ObjectBindingPattern */]: forEachChildInObjectOrArrayBindingPattern, + [207 /* ArrayBindingPattern */]: forEachChildInObjectOrArrayBindingPattern, + [209 /* ArrayLiteralExpression */]: function forEachChildInArrayLiteralExpression(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.elements); }, - [209 /* ObjectLiteralExpression */]: function forEachChildInObjectLiteralExpression(node, cbNode, cbNodes) { + [210 /* ObjectLiteralExpression */]: function forEachChildInObjectLiteralExpression(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.properties); }, - [210 /* PropertyAccessExpression */]: function forEachChildInPropertyAccessExpression(node, cbNode, _cbNodes) { + [211 /* PropertyAccessExpression */]: function forEachChildInPropertyAccessExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.questionDotToken) || visitNode2(cbNode, node.name); }, - [211 /* ElementAccessExpression */]: function forEachChildInElementAccessExpression(node, cbNode, _cbNodes) { + [212 /* ElementAccessExpression */]: function forEachChildInElementAccessExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.questionDotToken) || visitNode2(cbNode, node.argumentExpression); }, - [212 /* CallExpression */]: forEachChildInCallOrNewExpression, - [213 /* NewExpression */]: forEachChildInCallOrNewExpression, - [214 /* TaggedTemplateExpression */]: function forEachChildInTaggedTemplateExpression(node, cbNode, cbNodes) { + [213 /* CallExpression */]: forEachChildInCallOrNewExpression, + [214 /* NewExpression */]: forEachChildInCallOrNewExpression, + [215 /* TaggedTemplateExpression */]: function forEachChildInTaggedTemplateExpression(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tag) || visitNode2(cbNode, node.questionDotToken) || visitNodes(cbNode, cbNodes, node.typeArguments) || visitNode2(cbNode, node.template); }, - [215 /* TypeAssertionExpression */]: function forEachChildInTypeAssertionExpression(node, cbNode, _cbNodes) { + [216 /* TypeAssertionExpression */]: function forEachChildInTypeAssertionExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.type) || visitNode2(cbNode, node.expression); }, - [216 /* ParenthesizedExpression */]: function forEachChildInParenthesizedExpression(node, cbNode, _cbNodes) { + [217 /* ParenthesizedExpression */]: function forEachChildInParenthesizedExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [219 /* DeleteExpression */]: function forEachChildInDeleteExpression(node, cbNode, _cbNodes) { + [220 /* DeleteExpression */]: function forEachChildInDeleteExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [220 /* TypeOfExpression */]: function forEachChildInTypeOfExpression(node, cbNode, _cbNodes) { + [221 /* TypeOfExpression */]: function forEachChildInTypeOfExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [221 /* VoidExpression */]: function forEachChildInVoidExpression(node, cbNode, _cbNodes) { + [222 /* VoidExpression */]: function forEachChildInVoidExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [223 /* PrefixUnaryExpression */]: function forEachChildInPrefixUnaryExpression(node, cbNode, _cbNodes) { + [224 /* PrefixUnaryExpression */]: function forEachChildInPrefixUnaryExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.operand); }, - [228 /* YieldExpression */]: function forEachChildInYieldExpression(node, cbNode, _cbNodes) { + [229 /* YieldExpression */]: function forEachChildInYieldExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.asteriskToken) || visitNode2(cbNode, node.expression); }, - [222 /* AwaitExpression */]: function forEachChildInAwaitExpression(node, cbNode, _cbNodes) { + [223 /* AwaitExpression */]: function forEachChildInAwaitExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [224 /* PostfixUnaryExpression */]: function forEachChildInPostfixUnaryExpression(node, cbNode, _cbNodes) { + [225 /* PostfixUnaryExpression */]: function forEachChildInPostfixUnaryExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.operand); }, - [225 /* BinaryExpression */]: function forEachChildInBinaryExpression(node, cbNode, _cbNodes) { + [226 /* BinaryExpression */]: function forEachChildInBinaryExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.left) || visitNode2(cbNode, node.operatorToken) || visitNode2(cbNode, node.right); }, - [233 /* AsExpression */]: function forEachChildInAsExpression(node, cbNode, _cbNodes) { + [234 /* AsExpression */]: function forEachChildInAsExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.type); }, - [234 /* NonNullExpression */]: function forEachChildInNonNullExpression(node, cbNode, _cbNodes) { + [235 /* NonNullExpression */]: function forEachChildInNonNullExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [237 /* SatisfiesExpression */]: function forEachChildInSatisfiesExpression(node, cbNode, _cbNodes) { + [238 /* SatisfiesExpression */]: function forEachChildInSatisfiesExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.type); }, - [235 /* MetaProperty */]: function forEachChildInMetaProperty(node, cbNode, _cbNodes) { + [236 /* MetaProperty */]: function forEachChildInMetaProperty(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name); }, - [226 /* ConditionalExpression */]: function forEachChildInConditionalExpression(node, cbNode, _cbNodes) { + [227 /* ConditionalExpression */]: function forEachChildInConditionalExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.condition) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.whenTrue) || visitNode2(cbNode, node.colonToken) || visitNode2(cbNode, node.whenFalse); }, - [229 /* SpreadElement */]: function forEachChildInSpreadElement(node, cbNode, _cbNodes) { + [230 /* SpreadElement */]: function forEachChildInSpreadElement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [240 /* Block */]: forEachChildInBlock, - [267 /* ModuleBlock */]: forEachChildInBlock, - [311 /* SourceFile */]: function forEachChildInSourceFile(node, cbNode, cbNodes) { + [241 /* Block */]: forEachChildInBlock, + [268 /* ModuleBlock */]: forEachChildInBlock, + [312 /* SourceFile */]: function forEachChildInSourceFile(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.statements) || visitNode2(cbNode, node.endOfFileToken); }, - [242 /* VariableStatement */]: function forEachChildInVariableStatement(node, cbNode, cbNodes) { + [243 /* VariableStatement */]: function forEachChildInVariableStatement(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.declarationList); }, - [260 /* VariableDeclarationList */]: function forEachChildInVariableDeclarationList(node, cbNode, cbNodes) { + [261 /* VariableDeclarationList */]: function forEachChildInVariableDeclarationList(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.declarations); }, - [243 /* ExpressionStatement */]: function forEachChildInExpressionStatement(node, cbNode, _cbNodes) { + [244 /* ExpressionStatement */]: function forEachChildInExpressionStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [244 /* IfStatement */]: function forEachChildInIfStatement(node, cbNode, _cbNodes) { + [245 /* IfStatement */]: function forEachChildInIfStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.thenStatement) || visitNode2(cbNode, node.elseStatement); }, - [245 /* DoStatement */]: function forEachChildInDoStatement(node, cbNode, _cbNodes) { + [246 /* DoStatement */]: function forEachChildInDoStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.statement) || visitNode2(cbNode, node.expression); }, - [246 /* WhileStatement */]: function forEachChildInWhileStatement(node, cbNode, _cbNodes) { + [247 /* WhileStatement */]: function forEachChildInWhileStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.statement); }, - [247 /* ForStatement */]: function forEachChildInForStatement(node, cbNode, _cbNodes) { + [248 /* ForStatement */]: function forEachChildInForStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.initializer) || visitNode2(cbNode, node.condition) || visitNode2(cbNode, node.incrementor) || visitNode2(cbNode, node.statement); }, - [248 /* ForInStatement */]: function forEachChildInForInStatement(node, cbNode, _cbNodes) { + [249 /* ForInStatement */]: function forEachChildInForInStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.initializer) || visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.statement); }, - [249 /* ForOfStatement */]: function forEachChildInForOfStatement(node, cbNode, _cbNodes) { + [250 /* ForOfStatement */]: function forEachChildInForOfStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.awaitModifier) || visitNode2(cbNode, node.initializer) || visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.statement); }, - [250 /* ContinueStatement */]: forEachChildInContinueOrBreakStatement, - [251 /* BreakStatement */]: forEachChildInContinueOrBreakStatement, - [252 /* ReturnStatement */]: function forEachChildInReturnStatement(node, cbNode, _cbNodes) { + [251 /* ContinueStatement */]: forEachChildInContinueOrBreakStatement, + [252 /* BreakStatement */]: forEachChildInContinueOrBreakStatement, + [253 /* ReturnStatement */]: function forEachChildInReturnStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [253 /* WithStatement */]: function forEachChildInWithStatement(node, cbNode, _cbNodes) { + [254 /* WithStatement */]: function forEachChildInWithStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.statement); }, - [254 /* SwitchStatement */]: function forEachChildInSwitchStatement(node, cbNode, _cbNodes) { + [255 /* SwitchStatement */]: function forEachChildInSwitchStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.caseBlock); }, - [268 /* CaseBlock */]: function forEachChildInCaseBlock(node, cbNode, cbNodes) { + [269 /* CaseBlock */]: function forEachChildInCaseBlock(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.clauses); }, - [295 /* CaseClause */]: function forEachChildInCaseClause(node, cbNode, cbNodes) { + [296 /* CaseClause */]: function forEachChildInCaseClause(node, cbNode, cbNodes) { return visitNode2(cbNode, node.expression) || visitNodes(cbNode, cbNodes, node.statements); }, - [296 /* DefaultClause */]: function forEachChildInDefaultClause(node, cbNode, cbNodes) { + [297 /* DefaultClause */]: function forEachChildInDefaultClause(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.statements); }, - [255 /* LabeledStatement */]: function forEachChildInLabeledStatement(node, cbNode, _cbNodes) { + [256 /* LabeledStatement */]: function forEachChildInLabeledStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.label) || visitNode2(cbNode, node.statement); }, - [256 /* ThrowStatement */]: function forEachChildInThrowStatement(node, cbNode, _cbNodes) { + [257 /* ThrowStatement */]: function forEachChildInThrowStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [257 /* TryStatement */]: function forEachChildInTryStatement(node, cbNode, _cbNodes) { + [258 /* TryStatement */]: function forEachChildInTryStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.tryBlock) || visitNode2(cbNode, node.catchClause) || visitNode2(cbNode, node.finallyBlock); }, - [298 /* CatchClause */]: function forEachChildInCatchClause(node, cbNode, _cbNodes) { + [299 /* CatchClause */]: function forEachChildInCatchClause(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.variableDeclaration) || visitNode2(cbNode, node.block); }, - [169 /* Decorator */]: function forEachChildInDecorator(node, cbNode, _cbNodes) { + [170 /* Decorator */]: function forEachChildInDecorator(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [262 /* ClassDeclaration */]: forEachChildInClassDeclarationOrExpression, - [230 /* ClassExpression */]: forEachChildInClassDeclarationOrExpression, - [263 /* InterfaceDeclaration */]: function forEachChildInInterfaceDeclaration(node, cbNode, cbNodes) { + [263 /* ClassDeclaration */]: forEachChildInClassDeclarationOrExpression, + [231 /* ClassExpression */]: forEachChildInClassDeclarationOrExpression, + [264 /* InterfaceDeclaration */]: function forEachChildInInterfaceDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.heritageClauses) || visitNodes(cbNode, cbNodes, node.members); }, - [264 /* TypeAliasDeclaration */]: function forEachChildInTypeAliasDeclaration(node, cbNode, cbNodes) { + [265 /* TypeAliasDeclaration */]: function forEachChildInTypeAliasDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNode2(cbNode, node.type); }, - [265 /* EnumDeclaration */]: function forEachChildInEnumDeclaration(node, cbNode, cbNodes) { + [266 /* EnumDeclaration */]: function forEachChildInEnumDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.members); }, - [305 /* EnumMember */]: function forEachChildInEnumMember(node, cbNode, _cbNodes) { + [306 /* EnumMember */]: function forEachChildInEnumMember(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.initializer); }, - [266 /* ModuleDeclaration */]: function forEachChildInModuleDeclaration(node, cbNode, cbNodes) { + [267 /* ModuleDeclaration */]: function forEachChildInModuleDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.body); }, - [270 /* ImportEqualsDeclaration */]: function forEachChildInImportEqualsDeclaration(node, cbNode, cbNodes) { + [271 /* ImportEqualsDeclaration */]: function forEachChildInImportEqualsDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.moduleReference); }, - [271 /* ImportDeclaration */]: function forEachChildInImportDeclaration(node, cbNode, cbNodes) { + [272 /* ImportDeclaration */]: function forEachChildInImportDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.importClause) || visitNode2(cbNode, node.moduleSpecifier) || visitNode2(cbNode, node.assertClause); }, - [272 /* ImportClause */]: function forEachChildInImportClause(node, cbNode, _cbNodes) { + [273 /* ImportClause */]: function forEachChildInImportClause(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.namedBindings); }, - [299 /* AssertClause */]: function forEachChildInAssertClause(node, cbNode, cbNodes) { + [300 /* AssertClause */]: function forEachChildInAssertClause(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.elements); }, - [300 /* AssertEntry */]: function forEachChildInAssertEntry(node, cbNode, _cbNodes) { + [301 /* AssertEntry */]: function forEachChildInAssertEntry(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.value); }, - [269 /* NamespaceExportDeclaration */]: function forEachChildInNamespaceExportDeclaration(node, cbNode, cbNodes) { + [270 /* NamespaceExportDeclaration */]: function forEachChildInNamespaceExportDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name); }, - [273 /* NamespaceImport */]: function forEachChildInNamespaceImport(node, cbNode, _cbNodes) { + [274 /* NamespaceImport */]: function forEachChildInNamespaceImport(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name); }, - [279 /* NamespaceExport */]: function forEachChildInNamespaceExport(node, cbNode, _cbNodes) { + [280 /* NamespaceExport */]: function forEachChildInNamespaceExport(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name); }, - [274 /* NamedImports */]: forEachChildInNamedImportsOrExports, - [278 /* NamedExports */]: forEachChildInNamedImportsOrExports, - [277 /* ExportDeclaration */]: function forEachChildInExportDeclaration(node, cbNode, cbNodes) { + [275 /* NamedImports */]: forEachChildInNamedImportsOrExports, + [279 /* NamedExports */]: forEachChildInNamedImportsOrExports, + [278 /* ExportDeclaration */]: function forEachChildInExportDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.exportClause) || visitNode2(cbNode, node.moduleSpecifier) || visitNode2(cbNode, node.assertClause); }, - [275 /* ImportSpecifier */]: forEachChildInImportOrExportSpecifier, - [280 /* ExportSpecifier */]: forEachChildInImportOrExportSpecifier, - [276 /* ExportAssignment */]: function forEachChildInExportAssignment(node, cbNode, cbNodes) { + [276 /* ImportSpecifier */]: forEachChildInImportOrExportSpecifier, + [281 /* ExportSpecifier */]: forEachChildInImportOrExportSpecifier, + [277 /* ExportAssignment */]: function forEachChildInExportAssignment(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.expression); }, - [227 /* TemplateExpression */]: function forEachChildInTemplateExpression(node, cbNode, cbNodes) { + [228 /* TemplateExpression */]: function forEachChildInTemplateExpression(node, cbNode, cbNodes) { return visitNode2(cbNode, node.head) || visitNodes(cbNode, cbNodes, node.templateSpans); }, - [238 /* TemplateSpan */]: function forEachChildInTemplateSpan(node, cbNode, _cbNodes) { + [239 /* TemplateSpan */]: function forEachChildInTemplateSpan(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.literal); }, - [202 /* TemplateLiteralType */]: function forEachChildInTemplateLiteralType(node, cbNode, cbNodes) { + [203 /* TemplateLiteralType */]: function forEachChildInTemplateLiteralType(node, cbNode, cbNodes) { return visitNode2(cbNode, node.head) || visitNodes(cbNode, cbNodes, node.templateSpans); }, - [203 /* TemplateLiteralTypeSpan */]: function forEachChildInTemplateLiteralTypeSpan(node, cbNode, _cbNodes) { + [204 /* TemplateLiteralTypeSpan */]: function forEachChildInTemplateLiteralTypeSpan(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.type) || visitNode2(cbNode, node.literal); }, - [166 /* ComputedPropertyName */]: function forEachChildInComputedPropertyName(node, cbNode, _cbNodes) { + [167 /* ComputedPropertyName */]: function forEachChildInComputedPropertyName(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [297 /* HeritageClause */]: function forEachChildInHeritageClause(node, cbNode, cbNodes) { + [298 /* HeritageClause */]: function forEachChildInHeritageClause(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.types); }, - [232 /* ExpressionWithTypeArguments */]: function forEachChildInExpressionWithTypeArguments(node, cbNode, cbNodes) { + [233 /* ExpressionWithTypeArguments */]: function forEachChildInExpressionWithTypeArguments(node, cbNode, cbNodes) { return visitNode2(cbNode, node.expression) || visitNodes(cbNode, cbNodes, node.typeArguments); }, - [282 /* ExternalModuleReference */]: function forEachChildInExternalModuleReference(node, cbNode, _cbNodes) { + [283 /* ExternalModuleReference */]: function forEachChildInExternalModuleReference(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [281 /* MissingDeclaration */]: function forEachChildInMissingDeclaration(node, cbNode, cbNodes) { + [282 /* MissingDeclaration */]: function forEachChildInMissingDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers); }, - [360 /* CommaListExpression */]: function forEachChildInCommaListExpression(node, cbNode, cbNodes) { + [361 /* CommaListExpression */]: function forEachChildInCommaListExpression(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.elements); }, - [283 /* JsxElement */]: function forEachChildInJsxElement(node, cbNode, cbNodes) { + [284 /* JsxElement */]: function forEachChildInJsxElement(node, cbNode, cbNodes) { return visitNode2(cbNode, node.openingElement) || visitNodes(cbNode, cbNodes, node.children) || visitNode2(cbNode, node.closingElement); }, - [287 /* JsxFragment */]: function forEachChildInJsxFragment(node, cbNode, cbNodes) { + [288 /* JsxFragment */]: function forEachChildInJsxFragment(node, cbNode, cbNodes) { return visitNode2(cbNode, node.openingFragment) || visitNodes(cbNode, cbNodes, node.children) || visitNode2(cbNode, node.closingFragment); }, - [284 /* JsxSelfClosingElement */]: forEachChildInJsxOpeningOrSelfClosingElement, - [285 /* JsxOpeningElement */]: forEachChildInJsxOpeningOrSelfClosingElement, - [291 /* JsxAttributes */]: function forEachChildInJsxAttributes(node, cbNode, cbNodes) { + [285 /* JsxSelfClosingElement */]: forEachChildInJsxOpeningOrSelfClosingElement, + [286 /* JsxOpeningElement */]: forEachChildInJsxOpeningOrSelfClosingElement, + [292 /* JsxAttributes */]: function forEachChildInJsxAttributes(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.properties); }, - [290 /* JsxAttribute */]: function forEachChildInJsxAttribute(node, cbNode, _cbNodes) { + [291 /* JsxAttribute */]: function forEachChildInJsxAttribute(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.initializer); }, - [292 /* JsxSpreadAttribute */]: function forEachChildInJsxSpreadAttribute(node, cbNode, _cbNodes) { + [293 /* JsxSpreadAttribute */]: function forEachChildInJsxSpreadAttribute(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [293 /* JsxExpression */]: function forEachChildInJsxExpression(node, cbNode, _cbNodes) { + [294 /* JsxExpression */]: function forEachChildInJsxExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.dotDotDotToken) || visitNode2(cbNode, node.expression); }, - [286 /* JsxClosingElement */]: function forEachChildInJsxClosingElement(node, cbNode, _cbNodes) { + [287 /* JsxClosingElement */]: function forEachChildInJsxClosingElement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.tagName); }, - [294 /* JsxNamespacedName */]: function forEachChildInJsxNamespacedName(node, cbNode, _cbNodes) { + [295 /* JsxNamespacedName */]: function forEachChildInJsxNamespacedName(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.namespace) || visitNode2(cbNode, node.name); }, - [189 /* OptionalType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [190 /* RestType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [315 /* JSDocTypeExpression */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [321 /* JSDocNonNullableType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [320 /* JSDocNullableType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [322 /* JSDocOptionalType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [324 /* JSDocVariadicType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [323 /* JSDocFunctionType */]: function forEachChildInJSDocFunctionType(node, cbNode, cbNodes) { + [190 /* OptionalType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [191 /* RestType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [316 /* JSDocTypeExpression */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [322 /* JSDocNonNullableType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [321 /* JSDocNullableType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [323 /* JSDocOptionalType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [325 /* JSDocVariadicType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [324 /* JSDocFunctionType */]: function forEachChildInJSDocFunctionType(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); }, - [326 /* JSDoc */]: function forEachChildInJSDoc(node, cbNode, cbNodes) { + [327 /* JSDoc */]: function forEachChildInJSDoc(node, cbNode, cbNodes) { return (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)) || visitNodes(cbNode, cbNodes, node.tags); }, - [353 /* JSDocSeeTag */]: function forEachChildInJSDocSeeTag(node, cbNode, cbNodes) { + [354 /* JSDocSeeTag */]: function forEachChildInJSDocSeeTag(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.name) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); }, - [316 /* JSDocNameReference */]: function forEachChildInJSDocNameReference(node, cbNode, _cbNodes) { + [317 /* JSDocNameReference */]: function forEachChildInJSDocNameReference(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name); }, - [317 /* JSDocMemberName */]: function forEachChildInJSDocMemberName(node, cbNode, _cbNodes) { + [318 /* JSDocMemberName */]: function forEachChildInJSDocMemberName(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.left) || visitNode2(cbNode, node.right); }, - [347 /* JSDocParameterTag */]: forEachChildInJSDocParameterOrPropertyTag, - [354 /* JSDocPropertyTag */]: forEachChildInJSDocParameterOrPropertyTag, - [336 /* JSDocAuthorTag */]: function forEachChildInJSDocAuthorTag(node, cbNode, cbNodes) { + [348 /* JSDocParameterTag */]: forEachChildInJSDocParameterOrPropertyTag, + [355 /* JSDocPropertyTag */]: forEachChildInJSDocParameterOrPropertyTag, + [337 /* JSDocAuthorTag */]: function forEachChildInJSDocAuthorTag(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tagName) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); }, - [335 /* JSDocImplementsTag */]: function forEachChildInJSDocImplementsTag(node, cbNode, cbNodes) { + [336 /* JSDocImplementsTag */]: function forEachChildInJSDocImplementsTag(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.class) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); }, - [334 /* JSDocAugmentsTag */]: function forEachChildInJSDocAugmentsTag(node, cbNode, cbNodes) { + [335 /* JSDocAugmentsTag */]: function forEachChildInJSDocAugmentsTag(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.class) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); }, - [351 /* JSDocTemplateTag */]: function forEachChildInJSDocTemplateTag(node, cbNode, cbNodes) { + [352 /* JSDocTemplateTag */]: function forEachChildInJSDocTemplateTag(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.constraint) || visitNodes(cbNode, cbNodes, node.typeParameters) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); }, - [352 /* JSDocTypedefTag */]: function forEachChildInJSDocTypedefTag(node, cbNode, cbNodes) { - return visitNode2(cbNode, node.tagName) || (node.typeExpression && node.typeExpression.kind === 315 /* JSDocTypeExpression */ ? visitNode2(cbNode, node.typeExpression) || visitNode2(cbNode, node.fullName) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)) : visitNode2(cbNode, node.fullName) || visitNode2(cbNode, node.typeExpression) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment))); + [353 /* JSDocTypedefTag */]: function forEachChildInJSDocTypedefTag(node, cbNode, cbNodes) { + return visitNode2(cbNode, node.tagName) || (node.typeExpression && node.typeExpression.kind === 316 /* JSDocTypeExpression */ ? visitNode2(cbNode, node.typeExpression) || visitNode2(cbNode, node.fullName) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)) : visitNode2(cbNode, node.fullName) || visitNode2(cbNode, node.typeExpression) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment))); }, - [344 /* JSDocCallbackTag */]: function forEachChildInJSDocCallbackTag(node, cbNode, cbNodes) { + [345 /* JSDocCallbackTag */]: function forEachChildInJSDocCallbackTag(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.fullName) || visitNode2(cbNode, node.typeExpression) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); }, - [348 /* JSDocReturnTag */]: forEachChildInJSDocTypeLikeTag, - [350 /* JSDocTypeTag */]: forEachChildInJSDocTypeLikeTag, - [349 /* JSDocThisTag */]: forEachChildInJSDocTypeLikeTag, - [346 /* JSDocEnumTag */]: forEachChildInJSDocTypeLikeTag, - [356 /* JSDocSatisfiesTag */]: forEachChildInJSDocTypeLikeTag, - [355 /* JSDocThrowsTag */]: forEachChildInJSDocTypeLikeTag, - [345 /* JSDocOverloadTag */]: forEachChildInJSDocTypeLikeTag, - [329 /* JSDocSignature */]: function forEachChildInJSDocSignature(node, cbNode, _cbNodes) { + [349 /* JSDocReturnTag */]: forEachChildInJSDocTypeLikeTag, + [351 /* JSDocTypeTag */]: forEachChildInJSDocTypeLikeTag, + [350 /* JSDocThisTag */]: forEachChildInJSDocTypeLikeTag, + [347 /* JSDocEnumTag */]: forEachChildInJSDocTypeLikeTag, + [357 /* JSDocSatisfiesTag */]: forEachChildInJSDocTypeLikeTag, + [356 /* JSDocThrowsTag */]: forEachChildInJSDocTypeLikeTag, + [346 /* JSDocOverloadTag */]: forEachChildInJSDocTypeLikeTag, + [330 /* JSDocSignature */]: function forEachChildInJSDocSignature(node, cbNode, _cbNodes) { return forEach(node.typeParameters, cbNode) || forEach(node.parameters, cbNode) || visitNode2(cbNode, node.type); }, - [330 /* JSDocLink */]: forEachChildInJSDocLinkCodeOrPlain, - [331 /* JSDocLinkCode */]: forEachChildInJSDocLinkCodeOrPlain, - [332 /* JSDocLinkPlain */]: forEachChildInJSDocLinkCodeOrPlain, - [328 /* JSDocTypeLiteral */]: function forEachChildInJSDocTypeLiteral(node, cbNode, _cbNodes) { + [331 /* JSDocLink */]: forEachChildInJSDocLinkCodeOrPlain, + [332 /* JSDocLinkCode */]: forEachChildInJSDocLinkCodeOrPlain, + [333 /* JSDocLinkPlain */]: forEachChildInJSDocLinkCodeOrPlain, + [329 /* JSDocTypeLiteral */]: function forEachChildInJSDocTypeLiteral(node, cbNode, _cbNodes) { return forEach(node.jsDocPropertyTags, cbNode); }, - [333 /* JSDocTag */]: forEachChildInJSDocTag, - [338 /* JSDocClassTag */]: forEachChildInJSDocTag, - [339 /* JSDocPublicTag */]: forEachChildInJSDocTag, - [340 /* JSDocPrivateTag */]: forEachChildInJSDocTag, - [341 /* JSDocProtectedTag */]: forEachChildInJSDocTag, - [342 /* JSDocReadonlyTag */]: forEachChildInJSDocTag, - [337 /* JSDocDeprecatedTag */]: forEachChildInJSDocTag, - [343 /* JSDocOverrideTag */]: forEachChildInJSDocTag, - [359 /* PartiallyEmittedExpression */]: forEachChildInPartiallyEmittedExpression + [334 /* JSDocTag */]: forEachChildInJSDocTag, + [339 /* JSDocClassTag */]: forEachChildInJSDocTag, + [340 /* JSDocPublicTag */]: forEachChildInJSDocTag, + [341 /* JSDocPrivateTag */]: forEachChildInJSDocTag, + [342 /* JSDocProtectedTag */]: forEachChildInJSDocTag, + [343 /* JSDocReadonlyTag */]: forEachChildInJSDocTag, + [338 /* JSDocDeprecatedTag */]: forEachChildInJSDocTag, + [344 /* JSDocOverrideTag */]: forEachChildInJSDocTag, + [360 /* PartiallyEmittedExpression */]: forEachChildInPartiallyEmittedExpression }; ((Parser2) => { var scanner2 = createScanner( @@ -28580,7 +28798,7 @@ ${lanes.join("\n")} /*skipTrivia*/ true ); - var disallowInAndDecoratorContext = 4096 /* DisallowInContext */ | 16384 /* DecoratorContext */; + var disallowInAndDecoratorContext = 8192 /* DisallowInContext */ | 32768 /* DecoratorContext */; var NodeConstructor2; var TokenConstructor2; var IdentifierConstructor2; @@ -28825,10 +29043,10 @@ ${lanes.join("\n")} switch (scriptKind) { case 1 /* JS */: case 2 /* JSX */: - contextFlags = 262144 /* JavaScriptFile */; + contextFlags = 524288 /* JavaScriptFile */; break; case 6 /* JSON */: - contextFlags = 262144 /* JavaScriptFile */ | 67108864 /* JsonFile */; + contextFlags = 524288 /* JavaScriptFile */ | 134217728 /* JsonFile */; break; default: contextFlags = 0 /* None */; @@ -28860,13 +29078,14 @@ ${lanes.join("\n")} function parseSourceFileWorker(languageVersion2, setParentNodes, scriptKind2, setExternalModuleIndicator2) { const isDeclarationFile = isDeclarationFileName(fileName); if (isDeclarationFile) { - contextFlags |= 16777216 /* Ambient */; + contextFlags |= 33554432 /* Ambient */; } sourceFlags = contextFlags; nextToken(); const statements = parseList(0 /* SourceElements */, parseStatement); Debug.assert(token() === 1 /* EndOfFileToken */); - const endOfFileToken = addJSDocComment(parseTokenNode()); + const endHasJSDoc = hasPrecedingJSDocComment(); + const endOfFileToken = withJSDoc(parseTokenNode(), endHasJSDoc); const sourceFile = createSourceFile2(fileName, languageVersion2, scriptKind2, isDeclarationFile, statements, endOfFileToken, sourceFlags, setExternalModuleIndicator2); processCommentPragmas(sourceFile, sourceText); processPragmasIntoFields(sourceFile, reportPragmaDiagnostic); @@ -28886,18 +29105,18 @@ ${lanes.join("\n")} parseDiagnostics.push(createDetachedDiagnostic(fileName, pos, end, diagnostic)); } } - function withJSDoc(node, hasJSDoc) { - return hasJSDoc ? addJSDocComment(node) : node; - } let hasDeprecatedTag = false; - function addJSDocComment(node) { + function withJSDoc(node, hasJSDoc) { + if (!hasJSDoc) { + return node; + } Debug.assert(!node.jsDoc); const jsDoc = mapDefined(getJSDocCommentRanges(node, sourceText), (comment) => JSDocParser.parseJSDocComment(node, comment.pos, comment.end - comment.pos)); if (jsDoc.length) node.jsDoc = jsDoc; if (hasDeprecatedTag) { hasDeprecatedTag = false; - node.flags |= 268435456 /* Deprecated */; + node.flags |= 536870912 /* Deprecated */; } return node; } @@ -28922,7 +29141,7 @@ ${lanes.join("\n")} } speculationHelper(() => { const savedContextFlags = contextFlags; - contextFlags |= 32768 /* AwaitContext */; + contextFlags |= 65536 /* AwaitContext */; scanner2.resetTokenState(nextStatement.pos); nextToken(); while (token() !== 1 /* EndOfFileToken */) { @@ -28957,7 +29176,7 @@ ${lanes.join("\n")} syntaxCursor = savedSyntaxCursor; return factory2.updateSourceFile(sourceFile, setTextRange(factoryCreateNodeArray(statements), sourceFile.statements)); function containsPossibleTopLevelAwait(node) { - return !(node.flags & 32768 /* AwaitContext */) && !!(node.transformFlags & 67108864 /* ContainsPossibleTopLevelAwait */); + return !(node.flags & 65536 /* AwaitContext */) && !!(node.transformFlags & 67108864 /* ContainsPossibleTopLevelAwait */); } function findNextStatementWithAwait(statements2, start2) { for (let i = start2; i < statements2.length; i++) { @@ -29021,16 +29240,16 @@ ${lanes.join("\n")} } } function setDisallowInContext(val) { - setContextFlag(val, 4096 /* DisallowInContext */); + setContextFlag(val, 8192 /* DisallowInContext */); } function setYieldContext(val) { - setContextFlag(val, 8192 /* YieldContext */); + setContextFlag(val, 16384 /* YieldContext */); } function setDecoratorContext(val) { - setContextFlag(val, 16384 /* DecoratorContext */); + setContextFlag(val, 32768 /* DecoratorContext */); } function setAwaitContext(val) { - setContextFlag(val, 32768 /* AwaitContext */); + setContextFlag(val, 65536 /* AwaitContext */); } function doOutsideOfContext(context, func) { const contextFlagsToClear = context & contextFlags; @@ -29069,52 +29288,52 @@ ${lanes.join("\n")} return func(); } function allowInAnd(func) { - return doOutsideOfContext(4096 /* DisallowInContext */, func); + return doOutsideOfContext(8192 /* DisallowInContext */, func); } function disallowInAnd(func) { - return doInsideOfContext(4096 /* DisallowInContext */, func); + return doInsideOfContext(8192 /* DisallowInContext */, func); } function allowConditionalTypesAnd(func) { - return doOutsideOfContext(65536 /* DisallowConditionalTypesContext */, func); + return doOutsideOfContext(131072 /* DisallowConditionalTypesContext */, func); } function disallowConditionalTypesAnd(func) { - return doInsideOfContext(65536 /* DisallowConditionalTypesContext */, func); + return doInsideOfContext(131072 /* DisallowConditionalTypesContext */, func); } function doInYieldContext(func) { - return doInsideOfContext(8192 /* YieldContext */, func); + return doInsideOfContext(16384 /* YieldContext */, func); } function doInDecoratorContext(func) { - return doInsideOfContext(16384 /* DecoratorContext */, func); + return doInsideOfContext(32768 /* DecoratorContext */, func); } function doInAwaitContext(func) { - return doInsideOfContext(32768 /* AwaitContext */, func); + return doInsideOfContext(65536 /* AwaitContext */, func); } function doOutsideOfAwaitContext(func) { - return doOutsideOfContext(32768 /* AwaitContext */, func); + return doOutsideOfContext(65536 /* AwaitContext */, func); } function doInYieldAndAwaitContext(func) { - return doInsideOfContext(8192 /* YieldContext */ | 32768 /* AwaitContext */, func); + return doInsideOfContext(16384 /* YieldContext */ | 65536 /* AwaitContext */, func); } function doOutsideOfYieldAndAwaitContext(func) { - return doOutsideOfContext(8192 /* YieldContext */ | 32768 /* AwaitContext */, func); + return doOutsideOfContext(16384 /* YieldContext */ | 65536 /* AwaitContext */, func); } function inContext(flags) { return (contextFlags & flags) !== 0; } function inYieldContext() { - return inContext(8192 /* YieldContext */); + return inContext(16384 /* YieldContext */); } function inDisallowInContext() { - return inContext(4096 /* DisallowInContext */); + return inContext(8192 /* DisallowInContext */); } function inDisallowConditionalTypesContext() { - return inContext(65536 /* DisallowConditionalTypesContext */); + return inContext(131072 /* DisallowConditionalTypesContext */); } function inDecoratorContext() { - return inContext(16384 /* DecoratorContext */); + return inContext(32768 /* DecoratorContext */); } function inAwaitContext() { - return inContext(32768 /* AwaitContext */); + return inContext(65536 /* AwaitContext */); } function parseErrorAtCurrentToken(message, ...args) { return parseErrorAt(scanner2.getTokenStart(), scanner2.getTokenEnd(), message, ...args); @@ -29438,7 +29657,7 @@ ${lanes.join("\n")} } if (parseErrorBeforeNextFinishedNode) { parseErrorBeforeNextFinishedNode = false; - node.flags |= 131072 /* ThisNodeHasError */; + node.flags |= 262144 /* ThisNodeHasError */; } return node; } @@ -29467,7 +29686,7 @@ ${lanes.join("\n")} "", /*isSingleQuote*/ void 0 - ) : kind === 281 /* MissingDeclaration */ ? factory2.createMissingDeclaration() : factoryCreateToken(kind); + ) : kind === 282 /* MissingDeclaration */ ? factory2.createMissingDeclaration() : factoryCreateToken(kind); return finishNode(result, pos); } function internIdentifier(text) { @@ -29684,6 +29903,9 @@ ${lanes.join("\n")} case 22 /* HeritageClauses */: return isHeritageClause2(); case 23 /* ImportOrExportSpecifiers */: + if (token() === 161 /* FromKeyword */ && lookAhead(nextTokenIsStringLiteral)) { + return false; + } return tokenIsIdentifierOrKeyword(token()); case 13 /* JsxAttributes */: return tokenIsIdentifierOrKeyword(token()) || token() === 19 /* OpenBraceToken */; @@ -29840,7 +30062,7 @@ ${lanes.join("\n")} if (nodeIsMissing(node) || node.intersectsChange || containsParseError(node)) { return void 0; } - const nodeContextFlags = node.flags & 50720768 /* ContextFlags */; + const nodeContextFlags = node.flags & 101441536 /* ContextFlags */; if (nodeContextFlags !== contextFlags) { return void 0; } @@ -29898,14 +30120,14 @@ ${lanes.join("\n")} function isReusableClassMember(node) { if (node) { switch (node.kind) { - case 175 /* Constructor */: - case 180 /* IndexSignature */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 171 /* PropertyDeclaration */: - case 239 /* SemicolonClassElement */: + case 176 /* Constructor */: + case 181 /* IndexSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 172 /* PropertyDeclaration */: + case 240 /* SemicolonClassElement */: return true; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: const methodDeclaration = node; const nameIsConstructor = methodDeclaration.name.kind === 80 /* Identifier */ && methodDeclaration.name.escapedText === "constructor"; return !nameIsConstructor; @@ -29916,8 +30138,8 @@ ${lanes.join("\n")} function isReusableSwitchClause(node) { if (node) { switch (node.kind) { - case 295 /* CaseClause */: - case 296 /* DefaultClause */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: return true; } } @@ -29926,65 +30148,65 @@ ${lanes.join("\n")} function isReusableStatement(node) { if (node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 242 /* VariableStatement */: - case 240 /* Block */: - case 244 /* IfStatement */: - case 243 /* ExpressionStatement */: - case 256 /* ThrowStatement */: - case 252 /* ReturnStatement */: - case 254 /* SwitchStatement */: - case 251 /* BreakStatement */: - case 250 /* ContinueStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 247 /* ForStatement */: - case 246 /* WhileStatement */: - case 253 /* WithStatement */: - case 241 /* EmptyStatement */: - case 257 /* TryStatement */: - case 255 /* LabeledStatement */: - case 245 /* DoStatement */: - case 258 /* DebuggerStatement */: - case 271 /* ImportDeclaration */: - case 270 /* ImportEqualsDeclaration */: - case 277 /* ExportDeclaration */: - case 276 /* ExportAssignment */: - case 266 /* ModuleDeclaration */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 262 /* FunctionDeclaration */: + case 243 /* VariableStatement */: + case 241 /* Block */: + case 245 /* IfStatement */: + case 244 /* ExpressionStatement */: + case 257 /* ThrowStatement */: + case 253 /* ReturnStatement */: + case 255 /* SwitchStatement */: + case 252 /* BreakStatement */: + case 251 /* ContinueStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 248 /* ForStatement */: + case 247 /* WhileStatement */: + case 254 /* WithStatement */: + case 242 /* EmptyStatement */: + case 258 /* TryStatement */: + case 256 /* LabeledStatement */: + case 246 /* DoStatement */: + case 259 /* DebuggerStatement */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 278 /* ExportDeclaration */: + case 277 /* ExportAssignment */: + case 267 /* ModuleDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + case 265 /* TypeAliasDeclaration */: return true; } } return false; } function isReusableEnumMember(node) { - return node.kind === 305 /* EnumMember */; + return node.kind === 306 /* EnumMember */; } function isReusableTypeMember(node) { if (node) { switch (node.kind) { - case 179 /* ConstructSignature */: - case 172 /* MethodSignature */: - case 180 /* IndexSignature */: - case 170 /* PropertySignature */: - case 178 /* CallSignature */: + case 180 /* ConstructSignature */: + case 173 /* MethodSignature */: + case 181 /* IndexSignature */: + case 171 /* PropertySignature */: + case 179 /* CallSignature */: return true; } } return false; } function isReusableVariableDeclaration(node) { - if (node.kind !== 259 /* VariableDeclaration */) { + if (node.kind !== 260 /* VariableDeclaration */) { return false; } const variableDeclarator = node; return variableDeclarator.initializer === void 0; } function isReusableParameter(node) { - if (node.kind !== 168 /* Parameter */) { + if (node.kind !== 169 /* Parameter */) { return false; } const parameter = node; @@ -30042,6 +30264,9 @@ ${lanes.join("\n")} case 22 /* HeritageClauses */: return parseErrorAtCurrentToken(Diagnostics.Unexpected_token_expected); case 23 /* ImportOrExportSpecifiers */: + if (token() === 161 /* FromKeyword */) { + return parseErrorAtCurrentToken(Diagnostics._0_expected, "}"); + } return parseErrorAtCurrentToken(Diagnostics.Identifier_expected); case 13 /* JsxAttributes */: return parseErrorAtCurrentToken(Diagnostics.Identifier_expected); @@ -30321,14 +30546,14 @@ ${lanes.join("\n")} } function typeHasArrowFunctionBlockingParseError(node) { switch (node.kind) { - case 182 /* TypeReference */: + case 183 /* TypeReference */: return nodeIsMissing(node.typeName); - case 183 /* FunctionType */: - case 184 /* ConstructorType */: { + case 184 /* FunctionType */: + case 185 /* ConstructorType */: { const { parameters, type } = node; return isMissingList(parameters) || typeHasArrowFunctionBlockingParseError(type); } - case 195 /* ParenthesizedType */: + case 196 /* ParenthesizedType */: return typeHasArrowFunctionBlockingParseError(node.type); default: return false; @@ -30620,7 +30845,7 @@ ${lanes.join("\n")} function parseSignatureMember(kind) { const pos = getNodePos(); const hasJSDoc = hasPrecedingJSDocComment(); - if (kind === 179 /* ConstructSignature */) { + if (kind === 180 /* ConstructSignature */) { parseExpected(105 /* NewKeyword */); } const typeParameters = parseTypeParameters(); @@ -30631,7 +30856,7 @@ ${lanes.join("\n")} true ); parseTypeMemberSemicolon(); - const node = kind === 178 /* CallSignature */ ? factory2.createCallSignature(typeParameters, parameters, type) : factory2.createConstructSignature(typeParameters, parameters, type); + const node = kind === 179 /* CallSignature */ ? factory2.createCallSignature(typeParameters, parameters, type) : factory2.createConstructSignature(typeParameters, parameters, type); return withJSDoc(finishNode(node, pos), hasJSDoc); } function isIndexSignature() { @@ -30716,10 +30941,10 @@ ${lanes.join("\n")} } function parseTypeMember() { if (token() === 21 /* OpenParenToken */ || token() === 30 /* LessThanToken */) { - return parseSignatureMember(178 /* CallSignature */); + return parseSignatureMember(179 /* CallSignature */); } if (token() === 105 /* NewKeyword */ && lookAhead(nextTokenIsOpenParenOrLessThan)) { - return parseSignatureMember(179 /* ConstructSignature */); + return parseSignatureMember(180 /* ConstructSignature */); } const pos = getNodePos(); const hasJSDoc = hasPrecedingJSDocComment(); @@ -30728,10 +30953,10 @@ ${lanes.join("\n")} false ); if (parseContextualModifier(139 /* GetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 176 /* GetAccessor */, 4 /* Type */); + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* GetAccessor */, 4 /* Type */); } if (parseContextualModifier(153 /* SetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* SetAccessor */, 4 /* Type */); + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 178 /* SetAccessor */, 4 /* Type */); } if (isIndexSignature()) { return parseIndexSignatureDeclaration(pos, hasJSDoc, modifiers); @@ -30940,7 +31165,7 @@ ${lanes.join("\n")} return finishNode(factory2.createImportTypeAssertionContainer(clause, multiLine), pos); } function parseImportType() { - sourceFlags |= 2097152 /* PossiblyContainsDynamicImport */; + sourceFlags |= 4194304 /* PossiblyContainsDynamicImport */; const pos = getNodePos(); const isTypeOf = parseOptional(114 /* TypeOfKeyword */); parseExpected(102 /* ImportKeyword */); @@ -30965,7 +31190,7 @@ ${lanes.join("\n")} case 159 /* UnknownKeyword */: case 154 /* StringKeyword */: case 150 /* NumberKeyword */: - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: case 155 /* SymbolKeyword */: case 136 /* BooleanKeyword */: case 157 /* UndefinedKeyword */: @@ -31031,7 +31256,7 @@ ${lanes.join("\n")} case 159 /* UnknownKeyword */: case 154 /* StringKeyword */: case 150 /* NumberKeyword */: - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: case 136 /* BooleanKeyword */: case 148 /* ReadonlyKeyword */: case 155 /* SymbolKeyword */: @@ -31277,8 +31502,8 @@ ${lanes.join("\n")} return finishNode(factory2.createTypePredicateNode(assertsModifier, parameterName, type), pos); } function parseType() { - if (contextFlags & 40960 /* TypeExcludesFlags */) { - return doOutsideOfContext(40960 /* TypeExcludesFlags */, parseType); + if (contextFlags & 81920 /* TypeExcludesFlags */) { + return doOutsideOfContext(81920 /* TypeExcludesFlags */, parseType); } if (isStartOfFunctionTypeOrConstructorType()) { return parseFunctionOrConstructorType(); @@ -31399,12 +31624,14 @@ ${lanes.join("\n")} return arrowExpression; } const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); const expr = parseBinaryExpressionOrHigher(0 /* Lowest */); if (expr.kind === 80 /* Identifier */ && token() === 39 /* EqualsGreaterThanToken */) { return parseSimpleArrowFunctionExpression( pos, expr, allowReturnTypeInArrowFunction, + hasJSDoc, /*asyncModifier*/ void 0 ); @@ -31450,7 +31677,7 @@ ${lanes.join("\n")} ), pos); } } - function parseSimpleArrowFunctionExpression(pos, identifier, allowReturnTypeInArrowFunction, asyncModifier) { + function parseSimpleArrowFunctionExpression(pos, identifier, allowReturnTypeInArrowFunction, hasJSDoc, asyncModifier) { Debug.assert(token() === 39 /* EqualsGreaterThanToken */, "parseSimpleArrowFunctionExpression should only have been called if we had a =>"); const parameter = factory2.createParameterDeclaration( /*modifiers*/ @@ -31483,7 +31710,7 @@ ${lanes.join("\n")} equalsGreaterThanToken, body ); - return addJSDocComment(finishNode(node, pos)); + return withJSDoc(finishNode(node, pos), hasJSDoc); } function tryParseParenthesizedArrowFunctionExpression(allowReturnTypeInArrowFunction) { const triState = isParenthesizedArrowFunctionExpression(); @@ -31611,9 +31838,10 @@ ${lanes.join("\n")} if (token() === 134 /* AsyncKeyword */) { if (lookAhead(isUnParenthesizedAsyncArrowFunctionWorker) === 1 /* True */) { const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); const asyncModifier = parseModifiersForArrowFunction(); const expr = parseBinaryExpressionOrHigher(0 /* Lowest */); - return parseSimpleArrowFunctionExpression(pos, expr, allowReturnTypeInArrowFunction, asyncModifier); + return parseSimpleArrowFunctionExpression(pos, expr, allowReturnTypeInArrowFunction, hasJSDoc, asyncModifier); } } return void 0; @@ -31667,7 +31895,7 @@ ${lanes.join("\n")} return void 0; } let unwrappedType = type; - while ((unwrappedType == null ? void 0 : unwrappedType.kind) === 195 /* ParenthesizedType */) { + while ((unwrappedType == null ? void 0 : unwrappedType.kind) === 196 /* ParenthesizedType */) { unwrappedType = unwrappedType.type; } const hasJSDocFunctionType = unwrappedType && isJSDocFunctionType(unwrappedType); @@ -31730,7 +31958,7 @@ ${lanes.join("\n")} return parseBinaryExpressionRest(precedence, leftOperand, pos); } function isInOrOfKeyword(t) { - return t === 103 /* InKeyword */ || t === 164 /* OfKeyword */; + return t === 103 /* InKeyword */ || t === 165 /* OfKeyword */; } function parseBinaryExpressionRest(precedence, leftOperand, pos) { while (true) { @@ -31812,7 +32040,7 @@ ${lanes.join("\n")} if (token() === 43 /* AsteriskAsteriskToken */) { const pos = skipTrivia(sourceText, simpleUnaryExpression.pos); const { end } = simpleUnaryExpression; - if (simpleUnaryExpression.kind === 215 /* TypeAssertionExpression */) { + if (simpleUnaryExpression.kind === 216 /* TypeAssertionExpression */) { parseErrorAt(pos, end, Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses); } else { Debug.assert(isKeywordOrPunctuation(unaryOperator)); @@ -31899,13 +32127,13 @@ ${lanes.join("\n")} let expression; if (token() === 102 /* ImportKeyword */) { if (lookAhead(nextTokenIsOpenParenOrLessThan)) { - sourceFlags |= 2097152 /* PossiblyContainsDynamicImport */; + sourceFlags |= 4194304 /* PossiblyContainsDynamicImport */; expression = parseTokenNode(); } else if (lookAhead(nextTokenIsDot)) { nextToken(); nextToken(); expression = finishNode(factory2.createMetaProperty(102 /* ImportKeyword */, parseIdentifierName()), pos); - sourceFlags |= 4194304 /* PossiblyContainsImportMeta */; + sourceFlags |= 8388608 /* PossiblyContainsImportMeta */; } else { expression = parseMemberExpressionOrHigher(); } @@ -31952,11 +32180,11 @@ ${lanes.join("\n")} const pos = getNodePos(); const opening = parseJsxOpeningOrSelfClosingElementOrOpeningFragment(inExpressionContext); let result; - if (opening.kind === 285 /* JsxOpeningElement */) { + if (opening.kind === 286 /* JsxOpeningElement */) { let children = parseJsxChildren(opening); let closingElement; const lastChild = children[children.length - 1]; - if ((lastChild == null ? void 0 : lastChild.kind) === 283 /* JsxElement */ && !tagNamesAreEquivalent(lastChild.openingElement.tagName, lastChild.closingElement.tagName) && tagNamesAreEquivalent(opening.tagName, lastChild.closingElement.tagName)) { + if ((lastChild == null ? void 0 : lastChild.kind) === 284 /* JsxElement */ && !tagNamesAreEquivalent(lastChild.openingElement.tagName, lastChild.closingElement.tagName) && tagNamesAreEquivalent(opening.tagName, lastChild.closingElement.tagName)) { const end = lastChild.children.end; const newLast = finishNode( factory2.createJsxElement( @@ -31980,10 +32208,10 @@ ${lanes.join("\n")} } } result = finishNode(factory2.createJsxElement(opening, children, closingElement), pos); - } else if (opening.kind === 288 /* JsxOpeningFragment */) { + } else if (opening.kind === 289 /* JsxOpeningFragment */) { result = finishNode(factory2.createJsxFragment(opening, parseJsxChildren(opening), parseJsxClosingFragment(inExpressionContext)), pos); } else { - Debug.assert(opening.kind === 284 /* JsxSelfClosingElement */); + Debug.assert(opening.kind === 285 /* JsxSelfClosingElement */); result = opening; } if (!mustBeUnary && inExpressionContext && token() === 30 /* LessThanToken */) { @@ -32056,7 +32284,7 @@ ${lanes.join("\n")} if (!child) break; list.push(child); - if (isJsxOpeningElement(openingTag) && (child == null ? void 0 : child.kind) === 283 /* JsxElement */ && !tagNamesAreEquivalent(child.openingElement.tagName, child.closingElement.tagName) && tagNamesAreEquivalent(openingTag.tagName, child.closingElement.tagName)) { + if (isJsxOpeningElement(openingTag) && (child == null ? void 0 : child.kind) === 284 /* JsxElement */ && !tagNamesAreEquivalent(child.openingElement.tagName, child.closingElement.tagName) && tagNamesAreEquivalent(openingTag.tagName, child.closingElement.tagName)) { break; } } @@ -32075,7 +32303,7 @@ ${lanes.join("\n")} return finishNode(factory2.createJsxOpeningFragment(), pos); } const tagName = parseJsxElementName(); - const typeArguments = (contextFlags & 262144 /* JavaScriptFile */) === 0 ? tryParseTypeArguments() : void 0; + const typeArguments = (contextFlags & 524288 /* JavaScriptFile */) === 0 ? tryParseTypeArguments() : void 0; const attributes = parseJsxAttributes(); let node; if (token() === 32 /* GreaterThanToken */) { @@ -32253,17 +32481,17 @@ ${lanes.join("\n")} return token() === 29 /* QuestionDotToken */ && lookAhead(nextTokenIsIdentifierOrKeywordOrOpenBracketOrTemplate); } function tryReparseOptionalChain(node) { - if (node.flags & 32 /* OptionalChain */) { + if (node.flags & 64 /* OptionalChain */) { return true; } if (isNonNullExpression(node)) { let expr = node.expression; - while (isNonNullExpression(expr) && !(expr.flags & 32 /* OptionalChain */)) { + while (isNonNullExpression(expr) && !(expr.flags & 64 /* OptionalChain */)) { expr = expr.expression; } - if (expr.flags & 32 /* OptionalChain */) { + if (expr.flags & 64 /* OptionalChain */) { while (isNonNullExpression(node)) { - node.flags |= 32 /* OptionalChain */; + node.flags |= 64 /* OptionalChain */; node = node.expression; } return true; @@ -32329,7 +32557,7 @@ ${lanes.join("\n")} continue; } if (isTemplateStartOfTaggedTemplate()) { - expression = !questionDotToken && expression.kind === 232 /* ExpressionWithTypeArguments */ ? parseTaggedTemplateRest(pos, expression.expression, questionDotToken, expression.typeArguments) : parseTaggedTemplateRest( + expression = !questionDotToken && expression.kind === 233 /* ExpressionWithTypeArguments */ ? parseTaggedTemplateRest(pos, expression.expression, questionDotToken, expression.typeArguments) : parseTaggedTemplateRest( pos, expression, questionDotToken, @@ -32368,8 +32596,8 @@ ${lanes.join("\n")} true ) ); - if (questionDotToken || tag.flags & 32 /* OptionalChain */) { - tagExpression.flags |= 32 /* OptionalChain */; + if (questionDotToken || tag.flags & 64 /* OptionalChain */) { + tagExpression.flags |= 64 /* OptionalChain */; } tagExpression.questionDotToken = questionDotToken; return finishNode(tagExpression, pos); @@ -32392,7 +32620,7 @@ ${lanes.join("\n")} } } if (typeArguments || token() === 21 /* OpenParenToken */) { - if (!questionDotToken && expression.kind === 232 /* ExpressionWithTypeArguments */) { + if (!questionDotToken && expression.kind === 233 /* ExpressionWithTypeArguments */) { typeArguments = expression.typeArguments; expression = expression.expression; } @@ -32421,7 +32649,7 @@ ${lanes.join("\n")} return result; } function parseTypeArgumentsInExpression() { - if ((contextFlags & 262144 /* JavaScriptFile */) !== 0) { + if ((contextFlags & 524288 /* JavaScriptFile */) !== 0) { return void 0; } if (reScanLessThanToken() !== 30 /* LessThanToken */) { @@ -32553,10 +32781,10 @@ ${lanes.join("\n")} true ); if (parseContextualModifier(139 /* GetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 176 /* GetAccessor */, 0 /* None */); + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* GetAccessor */, 0 /* None */); } if (parseContextualModifier(153 /* SetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* SetAccessor */, 0 /* None */); + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 178 /* SetAccessor */, 0 /* None */); } const asteriskToken = parseOptionalToken(42 /* AsteriskToken */); const tokenIsIdentifier = isIdentifier2(); @@ -32650,7 +32878,7 @@ ${lanes.join("\n")} false ); let typeArguments; - if (expression.kind === 232 /* ExpressionWithTypeArguments */) { + if (expression.kind === 233 /* ExpressionWithTypeArguments */) { typeArguments = expression.typeArguments; expression = expression.expression; } @@ -32760,7 +32988,7 @@ ${lanes.join("\n")} parseExpected(21 /* OpenParenToken */); let initializer; if (token() !== 27 /* SemicolonToken */) { - if (token() === 115 /* VarKeyword */ || token() === 121 /* LetKeyword */ || token() === 87 /* ConstKeyword */) { + if (token() === 115 /* VarKeyword */ || token() === 121 /* LetKeyword */ || token() === 87 /* ConstKeyword */ || token() === 160 /* UsingKeyword */ && lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLineDisallowOf) || token() === 135 /* AwaitKeyword */ && lookAhead(nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLineDisallowOf)) { initializer = parseVariableDeclarationList( /*inForStatementInitializer*/ true @@ -32770,7 +32998,7 @@ ${lanes.join("\n")} } } let node; - if (awaitToken ? parseExpected(164 /* OfKeyword */) : parseOptional(164 /* OfKeyword */)) { + if (awaitToken ? parseExpected(165 /* OfKeyword */) : parseOptional(165 /* OfKeyword */)) { const expression = allowInAnd(() => parseAssignmentExpressionOrHigher( /*allowReturnTypeInArrowFunction*/ true @@ -32794,10 +33022,10 @@ ${lanes.join("\n")} function parseBreakOrContinueStatement(kind) { const pos = getNodePos(); const hasJSDoc = hasPrecedingJSDocComment(); - parseExpected(kind === 251 /* BreakStatement */ ? 83 /* BreakKeyword */ : 88 /* ContinueKeyword */); + parseExpected(kind === 252 /* BreakStatement */ ? 83 /* BreakKeyword */ : 88 /* ContinueKeyword */); const label = canParseSemicolon() ? void 0 : parseIdentifier(); parseSemicolon(); - const node = kind === 251 /* BreakStatement */ ? factory2.createBreakStatement(label) : factory2.createContinueStatement(label); + const node = kind === 252 /* BreakStatement */ ? factory2.createBreakStatement(label) : factory2.createContinueStatement(label); return withJSDoc(finishNode(node, pos), hasJSDoc); } function parseReturnStatement() { @@ -32816,7 +33044,7 @@ ${lanes.join("\n")} const openParenParsed = parseExpected(21 /* OpenParenToken */); const expression = allowInAnd(parseExpression); parseExpectedMatchingBrackets(21 /* OpenParenToken */, 22 /* CloseParenToken */, openParenParsed, openParenPosition); - const statement = doInsideOfContext(33554432 /* InWithStatement */, parseStatement); + const statement = doInsideOfContext(67108864 /* InWithStatement */, parseStatement); return withJSDoc(finishNode(factory2.createWithStatement(expression, statement), pos), hasJSDoc); } function parseCaseClause() { @@ -32956,6 +33184,10 @@ ${lanes.join("\n")} case 86 /* ClassKeyword */: case 94 /* EnumKeyword */: return true; + case 160 /* UsingKeyword */: + return isUsingDeclaration(); + case 135 /* AwaitKeyword */: + return isAwaitUsingDeclaration(); case 120 /* InterfaceKeyword */: case 156 /* TypeKeyword */: return nextTokenIsIdentifierOnSameLine(); @@ -32970,12 +33202,16 @@ ${lanes.join("\n")} case 124 /* ProtectedKeyword */: case 125 /* PublicKeyword */: case 148 /* ReadonlyKeyword */: + const previousToken = token(); nextToken(); if (scanner2.hasPrecedingLineBreak()) { return false; } + if (previousToken === 138 /* DeclareKeyword */ && token() === 156 /* TypeKeyword */) { + return true; + } continue; - case 161 /* GlobalKeyword */: + case 162 /* GlobalKeyword */: nextToken(); return token() === 19 /* OpenBraceToken */ || token() === 80 /* Identifier */ || token() === 95 /* ExportKeyword */; case 102 /* ImportKeyword */: @@ -33008,6 +33244,7 @@ ${lanes.join("\n")} case 19 /* OpenBraceToken */: case 115 /* VarKeyword */: case 121 /* LetKeyword */: + case 160 /* UsingKeyword */: case 100 /* FunctionKeyword */: case 86 /* ClassKeyword */: case 94 /* EnumKeyword */: @@ -33037,7 +33274,7 @@ ${lanes.join("\n")} case 144 /* ModuleKeyword */: case 145 /* NamespaceKeyword */: case 156 /* TypeKeyword */: - case 161 /* GlobalKeyword */: + case 162 /* GlobalKeyword */: return true; case 129 /* AccessorKeyword */: case 125 /* PublicKeyword */: @@ -33057,6 +33294,36 @@ ${lanes.join("\n")} function isLetDeclaration() { return lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuring); } + function nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLineDisallowOf() { + return nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine( + /*disallowOf*/ + true + ); + } + function nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine(disallowOf) { + nextToken(); + if (disallowOf && token() === 165 /* OfKeyword */) + return false; + return (isBindingIdentifier() || token() === 19 /* OpenBraceToken */) && !scanner2.hasPrecedingLineBreak(); + } + function isUsingDeclaration() { + return lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine); + } + function nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLineDisallowOf() { + return nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLine( + /*disallowOf*/ + true + ); + } + function nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLine(disallowOf) { + if (nextToken() === 160 /* UsingKeyword */) { + return nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine(disallowOf); + } + return false; + } + function isAwaitUsingDeclaration() { + return lookAhead(nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLine); + } function parseStatement() { switch (token()) { case 27 /* SemicolonToken */: @@ -33083,6 +33350,26 @@ ${lanes.join("\n")} ); } break; + case 135 /* AwaitKeyword */: + if (isAwaitUsingDeclaration()) { + return parseVariableStatement( + getNodePos(), + hasPrecedingJSDocComment(), + /*modifiers*/ + void 0 + ); + } + break; + case 160 /* UsingKeyword */: + if (isUsingDeclaration()) { + return parseVariableStatement( + getNodePos(), + hasPrecedingJSDocComment(), + /*modifiers*/ + void 0 + ); + } + break; case 100 /* FunctionKeyword */: return parseFunctionDeclaration( getNodePos(), @@ -33106,9 +33393,9 @@ ${lanes.join("\n")} case 99 /* ForKeyword */: return parseForOrForInOrForOfStatement(); case 88 /* ContinueKeyword */: - return parseBreakOrContinueStatement(250 /* ContinueStatement */); + return parseBreakOrContinueStatement(251 /* ContinueStatement */); case 83 /* BreakKeyword */: - return parseBreakOrContinueStatement(251 /* BreakStatement */); + return parseBreakOrContinueStatement(252 /* BreakStatement */); case 107 /* ReturnKeyword */: return parseReturnStatement(); case 118 /* WithKeyword */: @@ -33142,7 +33429,7 @@ ${lanes.join("\n")} case 129 /* AccessorKeyword */: case 126 /* StaticKeyword */: case 148 /* ReadonlyKeyword */: - case 161 /* GlobalKeyword */: + case 162 /* GlobalKeyword */: if (isStartOfDeclaration()) { return parseDeclaration(); } @@ -33167,15 +33454,15 @@ ${lanes.join("\n")} return node; } for (const m of modifiers) { - m.flags |= 16777216 /* Ambient */; + m.flags |= 33554432 /* Ambient */; } - return doInsideOfContext(16777216 /* Ambient */, () => parseDeclarationWorker(pos, hasJSDoc, modifiers)); + return doInsideOfContext(33554432 /* Ambient */, () => parseDeclarationWorker(pos, hasJSDoc, modifiers)); } else { return parseDeclarationWorker(pos, hasJSDoc, modifiers); } } function tryReuseAmbientDeclaration(pos) { - return doInsideOfContext(16777216 /* Ambient */, () => { + return doInsideOfContext(33554432 /* Ambient */, () => { const node = currentNode(parsingContext, pos); if (node) { return consumeNode(node); @@ -33187,6 +33474,8 @@ ${lanes.join("\n")} case 115 /* VarKeyword */: case 121 /* LetKeyword */: case 87 /* ConstKeyword */: + case 160 /* UsingKeyword */: + case 135 /* AwaitKeyword */: return parseVariableStatement(pos, hasJSDoc, modifiersIn); case 100 /* FunctionKeyword */: return parseFunctionDeclaration(pos, hasJSDoc, modifiersIn); @@ -33198,7 +33487,7 @@ ${lanes.join("\n")} return parseTypeAliasDeclaration(pos, hasJSDoc, modifiersIn); case 94 /* EnumKeyword */: return parseEnumDeclaration(pos, hasJSDoc, modifiersIn); - case 161 /* GlobalKeyword */: + case 162 /* GlobalKeyword */: case 144 /* ModuleKeyword */: case 145 /* NamespaceKeyword */: return parseModuleDeclaration(pos, hasJSDoc, modifiersIn); @@ -33218,7 +33507,7 @@ ${lanes.join("\n")} default: if (modifiersIn) { const missing = createMissingNode( - 281 /* MissingDeclaration */, + 282 /* MissingDeclaration */, /*reportAtCurrentPosition*/ true, Diagnostics.Declaration_expected @@ -33230,6 +33519,9 @@ ${lanes.join("\n")} return void 0; } } + function nextTokenIsStringLiteral() { + return nextToken() === 11 /* StringLiteral */; + } function nextTokenIsIdentifierOrStringLiteralOnSameLine() { nextToken(); return !scanner2.hasPrecedingLineBreak() && (isIdentifier2() || token() === 11 /* StringLiteral */); @@ -33282,14 +33574,14 @@ ${lanes.join("\n")} function parseObjectBindingPattern() { const pos = getNodePos(); parseExpected(19 /* OpenBraceToken */); - const elements = parseDelimitedList(9 /* ObjectBindingElements */, parseObjectBindingElement); + const elements = allowInAnd(() => parseDelimitedList(9 /* ObjectBindingElements */, parseObjectBindingElement)); parseExpected(20 /* CloseBraceToken */); return finishNode(factory2.createObjectBindingPattern(elements), pos); } function parseArrayBindingPattern() { const pos = getNodePos(); parseExpected(23 /* OpenBracketToken */); - const elements = parseDelimitedList(10 /* ArrayBindingElements */, parseArrayBindingElement); + const elements = allowInAnd(() => parseDelimitedList(10 /* ArrayBindingElements */, parseArrayBindingElement)); parseExpected(24 /* CloseBracketToken */); return finishNode(factory2.createArrayBindingPattern(elements), pos); } @@ -33336,12 +33628,20 @@ ${lanes.join("\n")} case 87 /* ConstKeyword */: flags |= 2 /* Const */; break; + case 160 /* UsingKeyword */: + flags |= 4 /* Using */; + break; + case 135 /* AwaitKeyword */: + Debug.assert(isAwaitUsingDeclaration()); + flags |= 6 /* AwaitUsing */; + nextToken(); + break; default: Debug.fail(); } nextToken(); let declarations; - if (token() === 164 /* OfKeyword */ && lookAhead(canFollowContextualOfKeyword)) { + if (token() === 165 /* OfKeyword */ && lookAhead(canFollowContextualOfKeyword)) { declarations = createMissingList(); } else { const savedDisallowIn = inDisallowInContext(); @@ -33447,7 +33747,7 @@ ${lanes.join("\n")} function parsePropertyDeclaration(pos, hasJSDoc, modifiers, name, questionToken) { const exclamationToken = !questionToken && !scanner2.hasPrecedingLineBreak() ? parseOptionalToken(54 /* ExclamationToken */) : void 0; const type = parseTypeAnnotation(); - const initializer = doOutsideOfContext(8192 /* YieldContext */ | 32768 /* AwaitContext */ | 4096 /* DisallowInContext */, parseInitializer); + const initializer = doOutsideOfContext(16384 /* YieldContext */ | 65536 /* AwaitContext */ | 8192 /* DisallowInContext */, parseInitializer); parseSemicolonAfterPropertyName(name, type, initializer); const node = factory2.createPropertyDeclaration( modifiers, @@ -33487,7 +33787,7 @@ ${lanes.join("\n")} false ); const body = parseFunctionBlockOrSemicolon(flags); - const node = kind === 176 /* GetAccessor */ ? factory2.createGetAccessorDeclaration(modifiers, name, parameters, type, body) : factory2.createSetAccessorDeclaration(modifiers, name, parameters, body); + const node = kind === 177 /* GetAccessor */ ? factory2.createGetAccessorDeclaration(modifiers, name, parameters, type, body) : factory2.createSetAccessorDeclaration(modifiers, name, parameters, body); node.typeParameters = typeParameters; if (isSetAccessorDeclaration(node)) node.type = type; @@ -33653,10 +33953,10 @@ ${lanes.join("\n")} return parseClassStaticBlockDeclaration(pos, hasJSDoc, modifiers); } if (parseContextualModifier(139 /* GetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 176 /* GetAccessor */, 0 /* None */); + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* GetAccessor */, 0 /* None */); } if (parseContextualModifier(153 /* SetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* SetAccessor */, 0 /* None */); + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 178 /* SetAccessor */, 0 /* None */); } if (token() === 137 /* ConstructorKeyword */ || token() === 11 /* StringLiteral */) { const constructorDeclaration = tryParseConstructorDeclaration(pos, hasJSDoc, modifiers); @@ -33671,9 +33971,9 @@ ${lanes.join("\n")} const isAmbient = some(modifiers, isDeclareModifier); if (isAmbient) { for (const m of modifiers) { - m.flags |= 16777216 /* Ambient */; + m.flags |= 33554432 /* Ambient */; } - return doInsideOfContext(16777216 /* Ambient */, () => parsePropertyOrMethodDeclaration(pos, hasJSDoc, modifiers)); + return doInsideOfContext(33554432 /* Ambient */, () => parsePropertyOrMethodDeclaration(pos, hasJSDoc, modifiers)); } else { return parsePropertyOrMethodDeclaration(pos, hasJSDoc, modifiers); } @@ -33704,10 +34004,10 @@ ${lanes.join("\n")} true ); if (token() === 86 /* ClassKeyword */) { - return parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, 230 /* ClassExpression */); + return parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, 231 /* ClassExpression */); } const missing = createMissingNode( - 281 /* MissingDeclaration */, + 282 /* MissingDeclaration */, /*reportAtCurrentPosition*/ true, Diagnostics.Expression_expected @@ -33722,11 +34022,11 @@ ${lanes.join("\n")} hasPrecedingJSDocComment(), /*modifiers*/ void 0, - 230 /* ClassExpression */ + 231 /* ClassExpression */ ); } function parseClassDeclaration(pos, hasJSDoc, modifiers) { - return parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, 262 /* ClassDeclaration */); + return parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, 263 /* ClassDeclaration */); } function parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, kind) { const savedAwaitContext = inAwaitContext(); @@ -33747,7 +34047,7 @@ ${lanes.join("\n")} members = createMissingList(); } setAwaitContext(savedAwaitContext); - const node = kind === 262 /* ClassDeclaration */ ? factory2.createClassDeclaration(modifiers, name, typeParameters, heritageClauses, members) : factory2.createClassExpression(modifiers, name, typeParameters, heritageClauses, members); + const node = kind === 263 /* ClassDeclaration */ ? factory2.createClassDeclaration(modifiers, name, typeParameters, heritageClauses, members) : factory2.createClassExpression(modifiers, name, typeParameters, heritageClauses, members); return withJSDoc(finishNode(node, pos), hasJSDoc); } function parseNameOfClassDeclarationOrExpression() { @@ -33773,7 +34073,7 @@ ${lanes.join("\n")} function parseExpressionWithTypeArguments() { const pos = getNodePos(); const expression = parseLeftHandSideExpressionOrHigher(); - if (expression.kind === 232 /* ExpressionWithTypeArguments */) { + if (expression.kind === 233 /* ExpressionWithTypeArguments */) { return expression; } const typeArguments = tryParseTypeArguments(); @@ -33799,6 +34099,9 @@ ${lanes.join("\n")} } function parseTypeAliasDeclaration(pos, hasJSDoc, modifiers) { parseExpected(156 /* TypeKeyword */); + if (scanner2.hasPrecedingLineBreak()) { + parseErrorAtCurrentToken(Diagnostics.Line_break_not_permitted_here); + } const name = parseIdentifier(); const typeParameters = parseTypeParameters(); parseExpected(64 /* EqualsToken */); @@ -33839,7 +34142,7 @@ ${lanes.join("\n")} return finishNode(factory2.createModuleBlock(statements), pos); } function parseModuleOrNamespaceDeclaration(pos, hasJSDoc, modifiers, flags) { - const namespaceFlag = flags & 16 /* Namespace */; + const namespaceFlag = flags & 32 /* Namespace */; const name = parseIdentifier(); const body = parseOptional(25 /* DotToken */) ? parseModuleOrNamespaceDeclaration( getNodePos(), @@ -33847,7 +34150,7 @@ ${lanes.join("\n")} false, /*modifiers*/ void 0, - 4 /* NestedNamespace */ | namespaceFlag + 8 /* NestedNamespace */ | namespaceFlag ) : parseModuleBlock(); const node = factory2.createModuleDeclaration(modifiers, name, body, flags); return withJSDoc(finishNode(node, pos), hasJSDoc); @@ -33855,9 +34158,9 @@ ${lanes.join("\n")} function parseAmbientExternalModuleDeclaration(pos, hasJSDoc, modifiersIn) { let flags = 0; let name; - if (token() === 161 /* GlobalKeyword */) { + if (token() === 162 /* GlobalKeyword */) { name = parseIdentifier(); - flags |= 1024 /* GlobalAugmentation */; + flags |= 2048 /* GlobalAugmentation */; } else { name = parseLiteralNode(); name.text = internIdentifier(name.text); @@ -33873,10 +34176,10 @@ ${lanes.join("\n")} } function parseModuleDeclaration(pos, hasJSDoc, modifiersIn) { let flags = 0; - if (token() === 161 /* GlobalKeyword */) { + if (token() === 162 /* GlobalKeyword */) { return parseAmbientExternalModuleDeclaration(pos, hasJSDoc, modifiersIn); } else if (parseOptional(145 /* NamespaceKeyword */)) { - flags |= 16 /* Namespace */; + flags |= 32 /* Namespace */; } else { parseExpected(144 /* ModuleKeyword */); if (token() === 11 /* StringLiteral */) { @@ -33914,7 +34217,7 @@ ${lanes.join("\n")} identifier = parseIdentifier(); } let isTypeOnly = false; - if (token() !== 160 /* FromKeyword */ && (identifier == null ? void 0 : identifier.escapedText) === "type" && (isIdentifier2() || tokenAfterImportDefinitelyProducesImportDeclaration())) { + if (token() !== 161 /* FromKeyword */ && (identifier == null ? void 0 : identifier.escapedText) === "type" && (isIdentifier2() || tokenAfterImportDefinitelyProducesImportDeclaration())) { isTypeOnly = true; identifier = isIdentifier2() ? parseIdentifier() : void 0; } @@ -33926,7 +34229,7 @@ ${lanes.join("\n")} token() === 42 /* AsteriskToken */ || // import * token() === 19 /* OpenBraceToken */) { importClause = parseImportClause(identifier, afterImportPos, isTypeOnly); - parseExpected(160 /* FromKeyword */); + parseExpected(161 /* FromKeyword */); } const moduleSpecifier = parseModuleSpecifier(); let assertClause; @@ -33991,7 +34294,7 @@ ${lanes.join("\n")} return token() === 42 /* AsteriskToken */ || token() === 19 /* OpenBraceToken */; } function tokenAfterImportedIdentifierDefinitelyProducesImportDeclaration() { - return token() === 28 /* CommaToken */ || token() === 160 /* FromKeyword */; + return token() === 28 /* CommaToken */ || token() === 161 /* FromKeyword */; } function parseImportEqualsDeclaration(pos, hasJSDoc, modifiers, identifier, isTypeOnly) { parseExpected(64 /* EqualsToken */); @@ -34004,7 +34307,7 @@ ${lanes.join("\n")} function parseImportClause(identifier, pos, isTypeOnly) { let namedBindings; if (!identifier || parseOptional(28 /* CommaToken */)) { - namedBindings = token() === 42 /* AsteriskToken */ ? parseNamespaceImport() : parseNamedImportsOrExports(274 /* NamedImports */); + namedBindings = token() === 42 /* AsteriskToken */ ? parseNamespaceImport() : parseNamedImportsOrExports(275 /* NamedImports */); } return finishNode(factory2.createImportClause(isTypeOnly, identifier, namedBindings), pos); } @@ -34040,15 +34343,15 @@ ${lanes.join("\n")} } function parseNamedImportsOrExports(kind) { const pos = getNodePos(); - const node = kind === 274 /* NamedImports */ ? factory2.createNamedImports(parseBracketedList(23 /* ImportOrExportSpecifiers */, parseImportSpecifier, 19 /* OpenBraceToken */, 20 /* CloseBraceToken */)) : factory2.createNamedExports(parseBracketedList(23 /* ImportOrExportSpecifiers */, parseExportSpecifier, 19 /* OpenBraceToken */, 20 /* CloseBraceToken */)); + const node = kind === 275 /* NamedImports */ ? factory2.createNamedImports(parseBracketedList(23 /* ImportOrExportSpecifiers */, parseImportSpecifier, 19 /* OpenBraceToken */, 20 /* CloseBraceToken */)) : factory2.createNamedExports(parseBracketedList(23 /* ImportOrExportSpecifiers */, parseExportSpecifier, 19 /* OpenBraceToken */, 20 /* CloseBraceToken */)); return finishNode(node, pos); } function parseExportSpecifier() { const hasJSDoc = hasPrecedingJSDocComment(); - return withJSDoc(parseImportOrExportSpecifier(280 /* ExportSpecifier */), hasJSDoc); + return withJSDoc(parseImportOrExportSpecifier(281 /* ExportSpecifier */), hasJSDoc); } function parseImportSpecifier() { - return parseImportOrExportSpecifier(275 /* ImportSpecifier */); + return parseImportOrExportSpecifier(276 /* ImportSpecifier */); } function parseImportOrExportSpecifier(kind) { const pos = getNodePos(); @@ -34092,10 +34395,10 @@ ${lanes.join("\n")} parseExpected(130 /* AsKeyword */); name = parseNameWithKeywordCheck(); } - if (kind === 275 /* ImportSpecifier */ && checkIdentifierIsKeyword) { + if (kind === 276 /* ImportSpecifier */ && checkIdentifierIsKeyword) { parseErrorAt(checkIdentifierStart, checkIdentifierEnd, Diagnostics.Identifier_expected); } - const node = kind === 275 /* ImportSpecifier */ ? factory2.createImportSpecifier(isTypeOnly, propertyName, name) : factory2.createExportSpecifier(isTypeOnly, propertyName, name); + const node = kind === 276 /* ImportSpecifier */ ? factory2.createImportSpecifier(isTypeOnly, propertyName, name) : factory2.createExportSpecifier(isTypeOnly, propertyName, name); return finishNode(node, pos); function parseNameWithKeywordCheck() { checkIdentifierIsKeyword = isKeyword(token()) && !isIdentifier2(); @@ -34122,12 +34425,12 @@ ${lanes.join("\n")} if (parseOptional(130 /* AsKeyword */)) { exportClause = parseNamespaceExport(namespaceExportPos); } - parseExpected(160 /* FromKeyword */); + parseExpected(161 /* FromKeyword */); moduleSpecifier = parseModuleSpecifier(); } else { - exportClause = parseNamedImportsOrExports(278 /* NamedExports */); - if (token() === 160 /* FromKeyword */ || token() === 11 /* StringLiteral */ && !scanner2.hasPrecedingLineBreak()) { - parseExpected(160 /* FromKeyword */); + exportClause = parseNamedImportsOrExports(279 /* NamedExports */); + if (token() === 161 /* FromKeyword */ || token() === 11 /* StringLiteral */ && !scanner2.hasPrecedingLineBreak()) { + parseExpected(161 /* FromKeyword */); moduleSpecifier = parseModuleSpecifier(); } } @@ -34232,7 +34535,7 @@ ${lanes.join("\n")} function parseJSDocTypeExpression(mayOmitBraces) { const pos = getNodePos(); const hasBrace = (mayOmitBraces ? parseOptional : parseExpected)(19 /* OpenBraceToken */); - const type = doInsideOfContext(8388608 /* JSDoc */, parseJSDocType); + const type = doInsideOfContext(16777216 /* JSDoc */, parseJSDocType); if (!mayOmitBraces || hasBrace) { parseExpectedJSDoc(20 /* CloseBraceToken */); } @@ -34271,7 +34574,7 @@ ${lanes.join("\n")} void 0, 1 /* JS */ ); - const jsDoc = doInsideOfContext(8388608 /* JSDoc */, () => parseJSDocCommentWorker(start, length2)); + const jsDoc = doInsideOfContext(16777216 /* JSDoc */, () => parseJSDocCommentWorker(start, length2)); const sourceFile = { languageVariant: 0 /* Standard */, text: content }; const diagnostics = attachFileToDiagnostics(parseDiagnostics, sourceFile); clearState(); @@ -34282,9 +34585,9 @@ ${lanes.join("\n")} const saveToken = currentToken; const saveParseDiagnosticsLength = parseDiagnostics.length; const saveParseErrorBeforeNextFinishedNode = parseErrorBeforeNextFinishedNode; - const comment = doInsideOfContext(8388608 /* JSDoc */, () => parseJSDocCommentWorker(start, length2)); + const comment = doInsideOfContext(16777216 /* JSDoc */, () => parseJSDocCommentWorker(start, length2)); setParent(comment, parent2); - if (contextFlags & 262144 /* JavaScriptFile */) { + if (contextFlags & 524288 /* JavaScriptFile */) { if (!jsDocDiagnostics) { jsDocDiagnostics = []; } @@ -34765,7 +35068,7 @@ ${lanes.join("\n")} switch (node.kind) { case 151 /* ObjectKeyword */: return true; - case 187 /* ArrayType */: + case 188 /* ArrayType */: return isObjectOrObjectArrayTypeReference(node.elementType); default: return isTypeReferenceNode(node) && isIdentifier(node.typeName) && node.typeName.escapedText === "Object" && !node.typeArguments; @@ -34781,7 +35084,7 @@ ${lanes.join("\n")} typeExpression = tryParseTypeExpression(); } const comment = parseTrailingTagComments(start2, getNodePos(), indent2, indentText); - const nestedTypeLiteral = target !== 4 /* CallbackParameter */ && parseNestedTypeLiteral(typeExpression, name, target, indent2); + const nestedTypeLiteral = parseNestedTypeLiteral(typeExpression, name, target, indent2); if (nestedTypeLiteral) { typeExpression = nestedTypeLiteral; isNameFirst = true; @@ -34795,14 +35098,14 @@ ${lanes.join("\n")} let child; let children; while (child = tryParse(() => parseChildParameterOrPropertyTag(target, indent2, name))) { - if (child.kind === 347 /* JSDocParameterTag */ || child.kind === 354 /* JSDocPropertyTag */) { + if (child.kind === 348 /* JSDocParameterTag */ || child.kind === 355 /* JSDocPropertyTag */) { children = append(children, child); - } else if (child.kind === 351 /* JSDocTemplateTag */) { + } else if (child.kind === 352 /* JSDocTemplateTag */) { parseErrorAtRange(child.tagName, Diagnostics.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag); } } if (children) { - const literal = finishNode(factory2.createJSDocTypeLiteral(children, typeExpression.type.kind === 187 /* ArrayType */), pos); + const literal = finishNode(factory2.createJSDocTypeLiteral(children, typeExpression.type.kind === 188 /* ArrayType */), pos); return finishNode(factory2.createJSDocTypeExpression(literal), pos); } } @@ -34937,11 +35240,11 @@ ${lanes.join("\n")} let jsDocPropertyTags; let hasChildren = false; while (child = tryParse(() => parseChildPropertyTag(indent2))) { - if (child.kind === 351 /* JSDocTemplateTag */) { + if (child.kind === 352 /* JSDocTemplateTag */) { break; } hasChildren = true; - if (child.kind === 350 /* JSDocTypeTag */) { + if (child.kind === 351 /* JSDocTypeTag */) { if (childTypeTag) { const lastError = parseErrorAtCurrentToken(Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags); if (lastError) { @@ -34956,7 +35259,7 @@ ${lanes.join("\n")} } } if (hasChildren) { - const isArrayType = typeExpression && typeExpression.type.kind === 187 /* ArrayType */; + const isArrayType = typeExpression && typeExpression.type.kind === 188 /* ArrayType */; const jsdocTypeLiteral = factory2.createJSDocTypeLiteral(jsDocPropertyTags, isArrayType); typeExpression = childTypeTag && childTypeTag.typeExpression && !isObjectOrObjectArrayTypeReference(childTypeTag.typeExpression.type) ? childTypeTag.typeExpression : finishNode(jsdocTypeLiteral, start2); end2 = typeExpression.end; @@ -34985,12 +35288,12 @@ ${lanes.join("\n")} void 0, typeNameOrNamespaceName, body, - nested ? 4 /* NestedNamespace */ : void 0 + nested ? 8 /* NestedNamespace */ : void 0 ); return finishNode(jsDocNamespaceNode, start2); } if (nested) { - typeNameOrNamespaceName.flags |= 2048 /* IdentifierIsInJSDocNamespace */; + typeNameOrNamespaceName.flags |= 4096 /* IdentifierIsInJSDocNamespace */; } return typeNameOrNamespaceName; } @@ -34999,7 +35302,7 @@ ${lanes.join("\n")} let child; let parameters; while (child = tryParse(() => parseChildParameterOrPropertyTag(4 /* CallbackParameter */, indent2))) { - if (child.kind === 351 /* JSDocTemplateTag */) { + if (child.kind === 352 /* JSDocTemplateTag */) { parseErrorAtRange(child.tagName, Diagnostics.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag); break; } @@ -35012,7 +35315,7 @@ ${lanes.join("\n")} const returnTag = tryParse(() => { if (parseOptionalJsdoc(60 /* AtToken */)) { const tag = parseTag(indent2); - if (tag && tag.kind === 348 /* JSDocReturnTag */) { + if (tag && tag.kind === 349 /* JSDocReturnTag */) { return tag; } } @@ -35067,7 +35370,7 @@ ${lanes.join("\n")} case 60 /* AtToken */: if (canParseTag) { const child = tryParseChildTag(target, indent2); - if (child && (child.kind === 347 /* JSDocParameterTag */ || child.kind === 354 /* JSDocPropertyTag */) && target !== 4 /* CallbackParameter */ && name && (isIdentifier(child.name) || !escapedTextsEqual(name, child.name.left))) { + if (child && (child.kind === 348 /* JSDocParameterTag */ || child.kind === 355 /* JSDocPropertyTag */) && name && (isIdentifier(child.name) || !escapedTextsEqual(name, child.name.left))) { return false; } return child; @@ -35132,7 +35435,7 @@ ${lanes.join("\n")} if (isBracketed) { skipWhitespace(); parseExpected(64 /* EqualsToken */); - defaultType = doInsideOfContext(8388608 /* JSDoc */, parseJSDocType); + defaultType = doInsideOfContext(16777216 /* JSDoc */, parseJSDocType); parseExpected(24 /* CloseBracketToken */); } if (nodeIsMissing(name)) { @@ -35582,7 +35885,7 @@ ${lanes.join("\n")} })(IncrementalParser || (IncrementalParser = {})); namedArgRegExCache = /* @__PURE__ */ new Map(); tripleSlashXMLCommentStartRegEx = /^\/\/\/\s*<(\S+)\s.*?\/>/im; - singleLinePragmaRegEx = /^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im; + singleLinePragmaRegEx = /^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im; } }); @@ -35968,7 +36271,7 @@ ${lanes.join("\n")} function convertConfigFileToObject(sourceFile, errors, jsonConversionNotifier) { var _a; const rootExpression = (_a = sourceFile.statements[0]) == null ? void 0 : _a.expression; - if (rootExpression && rootExpression.kind !== 209 /* ObjectLiteralExpression */) { + if (rootExpression && rootExpression.kind !== 210 /* ObjectLiteralExpression */) { errors.push(createDiagnosticForNodeInSourceFile( sourceFile, rootExpression, @@ -36020,7 +36323,7 @@ ${lanes.join("\n")} var _a; const result = returnValue ? {} : void 0; for (const element of node.properties) { - if (element.kind !== 302 /* PropertyAssignment */) { + if (element.kind !== 303 /* PropertyAssignment */) { errors.push(createDiagnosticForNodeInSourceFile(sourceFile, element, Diagnostics.Property_assignment_expected)); continue; } @@ -36065,15 +36368,15 @@ ${lanes.join("\n")} return valueExpression.text; case 9 /* NumericLiteral */: return Number(valueExpression.text); - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: if (valueExpression.operator !== 41 /* MinusToken */ || valueExpression.operand.kind !== 9 /* NumericLiteral */) { break; } return -Number(valueExpression.operand.text); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: const objectLiteralExpression = valueExpression; return convertObjectLiteralExpressionToJson(objectLiteralExpression, option); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return convertArrayLiteralExpressionToJson( valueExpression.elements, option && option.element @@ -36456,8 +36759,8 @@ ${lanes.join("\n")} const fileName = configFileName || "tsconfig.json"; const diagnosticMessage = Diagnostics.The_files_list_in_config_file_0_is_empty; const nodeValue = forEachTsConfigPropArray(sourceFile, "files", (property) => property.initializer); - const error = createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, nodeValue, diagnosticMessage, fileName); - errors.push(error); + const error2 = createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, nodeValue, diagnosticMessage, fileName); + errors.push(error2); } else { createCompilerDiagnosticOnlyIfJson(Diagnostics.The_files_list_in_config_file_0_is_empty, configFileName || "tsconfig.json"); } @@ -36564,8 +36867,8 @@ ${lanes.join("\n")} } } } - function isErrorNoInputFiles(error) { - return error.code === Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code; + function isErrorNoInputFiles(error2) { + return error2.code === Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code; } function getErrorForNoInputFiles({ includeSpecs, excludeSpecs }, configFileName) { return createCompilerDiagnostic( @@ -36586,7 +36889,7 @@ ${lanes.join("\n")} if (shouldReportNoInputFiles(fileNames, canJsonReportNoInutFiles)) { configParseDiagnostics.push(getErrorForNoInputFiles(configFileSpecs, configFileName)); } else { - filterMutate(configParseDiagnostics, (error) => !isErrorNoInputFiles(error)); + filterMutate(configParseDiagnostics, (error2) => !isErrorNoInputFiles(error2)); } return existingErrors !== configParseDiagnostics.length; } @@ -36994,19 +37297,19 @@ ${lanes.join("\n")} const wildcardFiles = arrayFrom(wildcardFileMap.values()); return literalFiles.concat(wildcardFiles, arrayFrom(wildCardJsonFileMap.values())); } - function isExcludedFile(pathToCheck, spec, basePath, useCaseSensitiveFileNames, currentDirectory) { + function isExcludedFile(pathToCheck, spec, basePath, useCaseSensitiveFileNames2, currentDirectory) { const { validatedFilesSpec, validatedIncludeSpecs, validatedExcludeSpecs } = spec; if (!length(validatedIncludeSpecs) || !length(validatedExcludeSpecs)) return false; basePath = normalizePath(basePath); - const keyMapper = createGetCanonicalFileName(useCaseSensitiveFileNames); + const keyMapper = createGetCanonicalFileName(useCaseSensitiveFileNames2); if (validatedFilesSpec) { for (const fileName of validatedFilesSpec) { if (keyMapper(getNormalizedAbsolutePath(fileName, basePath)) === pathToCheck) return false; } } - return matchesExcludeWorker(pathToCheck, validatedExcludeSpecs, useCaseSensitiveFileNames, currentDirectory, basePath); + return matchesExcludeWorker(pathToCheck, validatedExcludeSpecs, useCaseSensitiveFileNames2, currentDirectory, basePath); } function invalidDotDotAfterRecursiveWildcard(s) { const wildcardIndex = startsWith(s, "**/") ? 0 : s.indexOf("/**/"); @@ -37016,17 +37319,17 @@ ${lanes.join("\n")} const lastDotIndex = endsWith(s, "/..") ? s.length : s.lastIndexOf("/../"); return lastDotIndex > wildcardIndex; } - function matchesExclude(pathToCheck, excludeSpecs, useCaseSensitiveFileNames, currentDirectory) { + function matchesExclude(pathToCheck, excludeSpecs, useCaseSensitiveFileNames2, currentDirectory) { return matchesExcludeWorker( pathToCheck, filter(excludeSpecs, (spec) => !invalidDotDotAfterRecursiveWildcard(spec)), - useCaseSensitiveFileNames, + useCaseSensitiveFileNames2, currentDirectory ); } - function matchesExcludeWorker(pathToCheck, excludeSpecs, useCaseSensitiveFileNames, currentDirectory, basePath) { + function matchesExcludeWorker(pathToCheck, excludeSpecs, useCaseSensitiveFileNames2, currentDirectory, basePath) { const excludePattern = getRegularExpressionForWildcard(excludeSpecs, combinePaths(normalizePath(currentDirectory), basePath), "exclude"); - const excludeRegex = excludePattern && getRegexFromPattern(excludePattern, useCaseSensitiveFileNames); + const excludeRegex = excludePattern && getRegexFromPattern(excludePattern, useCaseSensitiveFileNames2); if (!excludeRegex) return false; if (excludeRegex.test(pathToCheck)) @@ -37056,9 +37359,9 @@ ${lanes.join("\n")} return [Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0, spec]; } } - function getWildcardDirectories({ validatedIncludeSpecs: include, validatedExcludeSpecs: exclude }, path, useCaseSensitiveFileNames) { + function getWildcardDirectories({ validatedIncludeSpecs: include, validatedExcludeSpecs: exclude }, path, useCaseSensitiveFileNames2) { const rawExcludeRegex = getRegularExpressionForWildcard(exclude, path, "exclude"); - const excludeRegex = rawExcludeRegex && new RegExp(rawExcludeRegex, useCaseSensitiveFileNames ? "" : "i"); + const excludeRegex = rawExcludeRegex && new RegExp(rawExcludeRegex, useCaseSensitiveFileNames2 ? "" : "i"); const wildcardDirectories = {}; if (include !== void 0) { const recursiveKeys = []; @@ -37067,7 +37370,7 @@ ${lanes.join("\n")} if (excludeRegex && excludeRegex.test(spec)) { continue; } - const match = getWildcardDirectoryFromSpec(spec, useCaseSensitiveFileNames); + const match = getWildcardDirectoryFromSpec(spec, useCaseSensitiveFileNames2); if (match) { const { key, flags } = match; const existingFlags = wildcardDirectories[key]; @@ -37082,7 +37385,7 @@ ${lanes.join("\n")} for (const key in wildcardDirectories) { if (hasProperty(wildcardDirectories, key)) { for (const recursiveKey of recursiveKeys) { - if (key !== recursiveKey && containsPath(recursiveKey, key, path, !useCaseSensitiveFileNames)) { + if (key !== recursiveKey && containsPath(recursiveKey, key, path, !useCaseSensitiveFileNames2)) { delete wildcardDirectories[key]; } } @@ -37091,20 +37394,20 @@ ${lanes.join("\n")} } return wildcardDirectories; } - function getWildcardDirectoryFromSpec(spec, useCaseSensitiveFileNames) { + function getWildcardDirectoryFromSpec(spec, useCaseSensitiveFileNames2) { const match = wildcardDirectoryPattern.exec(spec); if (match) { const questionWildcardIndex = spec.indexOf("?"); const starWildcardIndex = spec.indexOf("*"); const lastDirectorySeperatorIndex = spec.lastIndexOf(directorySeparator); return { - key: useCaseSensitiveFileNames ? match[0] : toFileNameLowerCase(match[0]), + key: useCaseSensitiveFileNames2 ? match[0] : toFileNameLowerCase(match[0]), flags: questionWildcardIndex !== -1 && questionWildcardIndex < lastDirectorySeperatorIndex || starWildcardIndex !== -1 && starWildcardIndex < lastDirectorySeperatorIndex ? 1 /* Recursive */ : 0 /* None */ }; } if (isImplicitGlob(spec.substring(spec.lastIndexOf(directorySeparator) + 1))) { return { - key: removeTrailingDirectorySeparator(useCaseSensitiveFileNames ? spec : toFileNameLowerCase(spec)), + key: removeTrailingDirectorySeparator(useCaseSensitiveFileNames2 ? spec : toFileNameLowerCase(spec)), flags: 1 /* Recursive */ }; } @@ -37254,6 +37557,7 @@ ${lanes.join("\n")} ["es2015.symbol", "lib.es2015.symbol.d.ts"], ["es2015.symbol.wellknown", "lib.es2015.symbol.wellknown.d.ts"], ["es2016.array.include", "lib.es2016.array.include.d.ts"], + ["es2017.date", "lib.es2017.date.d.ts"], ["es2017.object", "lib.es2017.object.d.ts"], ["es2017.sharedmemory", "lib.es2017.sharedmemory.d.ts"], ["es2017.string", "lib.es2017.string.d.ts"], @@ -37289,14 +37593,18 @@ ${lanes.join("\n")} ["es2022.string", "lib.es2022.string.d.ts"], ["es2022.regexp", "lib.es2022.regexp.d.ts"], ["es2023.array", "lib.es2023.array.d.ts"], + ["es2023.collection", "lib.es2023.collection.d.ts"], ["esnext.array", "lib.es2023.array.d.ts"], + ["esnext.collection", "lib.es2023.collection.d.ts"], ["esnext.symbol", "lib.es2019.symbol.d.ts"], ["esnext.asynciterable", "lib.es2018.asynciterable.d.ts"], ["esnext.intl", "lib.esnext.intl.d.ts"], + ["esnext.disposable", "lib.esnext.disposable.d.ts"], ["esnext.bigint", "lib.es2020.bigint.d.ts"], ["esnext.string", "lib.es2022.string.d.ts"], ["esnext.promise", "lib.es2021.promise.d.ts"], ["esnext.weakref", "lib.es2021.weakref.d.ts"], + ["esnext.decorators", "lib.esnext.decorators.d.ts"], ["decorators", "lib.decorators.d.ts"], ["decorators.legacy", "lib.decorators.legacy.d.ts"] ]; @@ -37704,6 +38012,7 @@ ${lanes.join("\n")} { name: "checkJs", type: "boolean", + affectsModuleResolution: true, showInSimplifiedHelpView: true, category: Diagnostics.JavaScript_Support, description: Diagnostics.Enable_error_reporting_in_type_checked_JavaScript_files, @@ -37930,7 +38239,7 @@ ${lanes.join("\n")} strictFlag: true, category: Diagnostics.Type_Checking, description: Diagnostics.Default_catch_clause_variables_as_unknown_instead_of_any, - defaultValueDescription: false + defaultValueDescription: Diagnostics.false_unless_strict_is_set }, { name: "alwaysStrict", @@ -38784,6 +39093,18 @@ ${lanes.join("\n")} result.push("JSON"); return result.join(", "); } + function extensionsToExtensionsArray(extensions) { + const result = []; + if (extensions & 1 /* TypeScript */) + result.push(...supportedTSImplementationExtensions); + if (extensions & 2 /* JavaScript */) + result.push(...supportedJSExtensionsFlat); + if (extensions & 4 /* Declaration */) + result.push(...supportedDeclarationExtensions); + if (extensions & 8 /* Json */) + result.push(".json" /* Json */); + return result; + } function resolvedTypeScriptOnly(resolved) { if (!resolved) { return void 0; @@ -38956,8 +39277,8 @@ ${lanes.join("\n")} return typeRoots; } function arePathsEqual(path1, path2, host) { - const useCaseSensitiveFileNames = typeof host.useCaseSensitiveFileNames === "function" ? host.useCaseSensitiveFileNames() : host.useCaseSensitiveFileNames; - return comparePaths(path1, path2, !useCaseSensitiveFileNames) === 0 /* EqualTo */; + const useCaseSensitiveFileNames2 = typeof host.useCaseSensitiveFileNames === "function" ? host.useCaseSensitiveFileNames() : host.useCaseSensitiveFileNames; + return comparePaths(path1, path2, !useCaseSensitiveFileNames2) === 0 /* EqualTo */; } function getOriginalAndResolvedFileName(fileName, host, traceEnabled) { const resolvedFileName = realPath(fileName, host, traceEnabled); @@ -39260,7 +39581,7 @@ ${lanes.join("\n")} return str + "}"; } function getKeyForCompilerOptions(options, affectingOptionDeclarations) { - return affectingOptionDeclarations.map((option) => compilerOptionValueToString(getCompilerOptionValue(options, option))).join("|") + (options.pathsBasePath ? `|${options.pathsBasePath}` : void 0); + return affectingOptionDeclarations.map((option) => compilerOptionValueToString(getCompilerOptionValue(options, option))).join("|") + `|${options.pathsBasePath}`; } function createCacheWithRedirects(ownOptions) { const redirectsMap = /* @__PURE__ */ new Map(); @@ -40220,7 +40541,7 @@ ${lanes.join("\n")} arrayIsEqualTo ); for (const conditions of conditionSets) { - const loadPackageJsonExportsState = { ...loadPackageJsonMainState, failedLookupLocations: [], conditions }; + const loadPackageJsonExportsState = { ...loadPackageJsonMainState, failedLookupLocations: [], conditions, host }; const exportResolutions = loadEntrypointsFromExportMap( packageJsonInfo, packageJsonInfo.contents.packageJsonContent.exports, @@ -40252,23 +40573,42 @@ ${lanes.join("\n")} return entrypoints; function loadEntrypointsFromTargetExports(target) { var _a, _b; - if (typeof target === "string" && startsWith(target, "./") && target.indexOf("*") === -1) { - const partsAfterFirst = getPathComponents(target).slice(2); - if (partsAfterFirst.indexOf("..") >= 0 || partsAfterFirst.indexOf(".") >= 0 || partsAfterFirst.indexOf("node_modules") >= 0) { - return false; - } - const resolvedTarget = combinePaths(scope.packageDirectory, target); - const finalPath = getNormalizedAbsolutePath(resolvedTarget, (_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a)); - const result = loadFileNameFromPackageJsonField( - extensions, - finalPath, - /*onlyRecordFailures*/ - false, - state - ); - if (result) { - entrypoints = appendIfUnique(entrypoints, result, (a, b) => a.path === b.path); - return true; + if (typeof target === "string" && startsWith(target, "./")) { + if (target.indexOf("*") >= 0 && state.host.readDirectory) { + if (target.indexOf("*") !== target.lastIndexOf("*")) { + return false; + } + state.host.readDirectory( + scope.packageDirectory, + extensionsToExtensionsArray(extensions), + /*excludes*/ + void 0, + [changeAnyExtension(target.replace("*", "**/*"), getDeclarationEmitExtensionForPath(target))] + ).forEach((entry) => { + entrypoints = appendIfUnique(entrypoints, { + path: entry, + ext: getAnyExtensionFromPath(entry), + resolvedUsingTsExtension: void 0 + }); + }); + } else { + const partsAfterFirst = getPathComponents(target).slice(2); + if (partsAfterFirst.indexOf("..") >= 0 || partsAfterFirst.indexOf(".") >= 0 || partsAfterFirst.indexOf("node_modules") >= 0) { + return false; + } + const resolvedTarget = combinePaths(scope.packageDirectory, target); + const finalPath = getNormalizedAbsolutePath(resolvedTarget, (_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a)); + const result = loadFileNameFromPackageJsonField( + extensions, + finalPath, + /*onlyRecordFailures*/ + false, + state + ); + if (result) { + entrypoints = appendIfUnique(entrypoints, result, (a, b) => a.path === b.path); + return true; + } } } else if (Array.isArray(target)) { for (const t of target) { @@ -40477,6 +40817,9 @@ ${lanes.join("\n")} } const trailingParts = parts.slice(nameParts.length); const subpath = !length(trailingParts) ? "." : `.${directorySeparator}${trailingParts.join(directorySeparator)}`; + if (getAllowJSCompilerOption(state.compilerOptions) && !pathContainsNodeModules(directory)) { + return loadModuleFromExports(scope, extensions, subpath, state, cache, redirectedReference); + } const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */); const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */); return loadModuleFromExports(scope, priorityExtensions, subpath, state, cache, redirectedReference) || loadModuleFromExports(scope, secondaryExtensions, subpath, state, cache, redirectedReference); @@ -40824,13 +41167,10 @@ ${lanes.join("\n")} function combineDirectoryPath(root, dir) { return ensureTrailingDirectorySeparator(combinePaths(root, dir)); } - function useCaseSensitiveFileNames() { - return !state.host.useCaseSensitiveFileNames ? true : typeof state.host.useCaseSensitiveFileNames === "boolean" ? state.host.useCaseSensitiveFileNames : state.host.useCaseSensitiveFileNames(); - } function tryLoadInputFileForPath(finalPath, entry, packagePath, isImports2) { var _a, _b, _c, _d; - if (!state.isConfigLookup && (state.compilerOptions.declarationDir || state.compilerOptions.outDir) && finalPath.indexOf("/node_modules/") === -1 && (state.compilerOptions.configFile ? containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames()) : true)) { - const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames }); + if (!state.isConfigLookup && (state.compilerOptions.declarationDir || state.compilerOptions.outDir) && finalPath.indexOf("/node_modules/") === -1 && (state.compilerOptions.configFile ? containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames(state)) : true)) { + const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames: () => useCaseSensitiveFileNames(state) }); const commonSourceDirGuesses = []; if (state.compilerOptions.rootDir || state.compilerOptions.composite && state.compilerOptions.configFilePath) { const commonDir = toAbsolutePath(getCommonSourceDirectory(state.compilerOptions, () => [], ((_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a)) || "", getCanonicalFileName)); @@ -40859,7 +41199,7 @@ ${lanes.join("\n")} for (const commonSourceDirGuess of commonSourceDirGuesses) { const candidateDirectories = getOutputDirectoriesForBaseDirectory(commonSourceDirGuess); for (const candidateDir of candidateDirectories) { - if (containsPath(candidateDir, finalPath, !useCaseSensitiveFileNames())) { + if (containsPath(candidateDir, finalPath, !useCaseSensitiveFileNames(state))) { const pathFragment = finalPath.slice(candidateDir.length + 1); const possibleInputBase = combinePaths(commonSourceDirGuess, pathFragment); const jsAndDtsExtensions = [".mjs" /* Mjs */, ".cjs" /* Cjs */, ".js" /* Js */, ".json" /* Json */, ".d.mts" /* Dmts */, ".d.cts" /* Dcts */, ".d.ts" /* Dts */]; @@ -40869,7 +41209,7 @@ ${lanes.join("\n")} for (const possibleExt of inputExts) { if (!extensionIsOk(extensions, possibleExt)) continue; - const possibleInputWithInputExtension = changeAnyExtension(possibleInputBase, possibleExt, ext, !useCaseSensitiveFileNames()); + const possibleInputWithInputExtension = changeAnyExtension(possibleInputBase, possibleExt, ext, !useCaseSensitiveFileNames(state)); if (state.host.fileExists(possibleInputWithInputExtension)) { return toSearchResult(withPackageId(scope, loadFileNameFromPackageJsonField( extensions, @@ -40943,11 +41283,13 @@ ${lanes.join("\n")} const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */); const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */); if (priorityExtensions) { + traceIfEnabled(state, Diagnostics.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0, formatExtensions(priorityExtensions)); const result = lookup(priorityExtensions); if (result) return result; } if (secondaryExtensions && !typesScopeOnly) { + traceIfEnabled(state, Diagnostics.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0, formatExtensions(secondaryExtensions)); return lookup(secondaryExtensions); } function lookup(extensions2) { @@ -41283,6 +41625,9 @@ ${lanes.join("\n")} trace(state.host, diagnostic, ...args); } } + function useCaseSensitiveFileNames(state) { + return !state.host.useCaseSensitiveFileNames ? true : typeof state.host.useCaseSensitiveFileNames === "boolean" ? state.host.useCaseSensitiveFileNames : state.host.useCaseSensitiveFileNames(); + } var typeScriptVersion, nodeModulesAtTypes, NodeResolutionFeatures, nodeModulesPathPart, mangledScopedPackageSeparator; var init_moduleNameResolver = __esm({ "src/compiler/moduleNameResolver.ts"() { @@ -41331,23 +41676,23 @@ ${lanes.join("\n")} } function getModuleInstanceStateWorker(node, visited) { switch (node.kind) { - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: return 0 /* NonInstantiated */; - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: if (isEnumConst(node)) { return 2 /* ConstEnumOnly */; } break; - case 271 /* ImportDeclaration */: - case 270 /* ImportEqualsDeclaration */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: if (!hasSyntacticModifier(node, 1 /* Export */)) { return 0 /* NonInstantiated */; } break; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: const exportDeclaration = node; - if (!exportDeclaration.moduleSpecifier && exportDeclaration.exportClause && exportDeclaration.exportClause.kind === 278 /* NamedExports */) { + if (!exportDeclaration.moduleSpecifier && exportDeclaration.exportClause && exportDeclaration.exportClause.kind === 279 /* NamedExports */) { let state = 0 /* NonInstantiated */; for (const specifier of exportDeclaration.exportClause.elements) { const specifierState = getModuleInstanceStateForAliasTarget(specifier, visited); @@ -41361,7 +41706,7 @@ ${lanes.join("\n")} return state; } break; - case 267 /* ModuleBlock */: { + case 268 /* ModuleBlock */: { let state = 0 /* NonInstantiated */; forEachChild(node, (n) => { const childState = getModuleInstanceStateCached(n, visited); @@ -41380,10 +41725,10 @@ ${lanes.join("\n")} }); return state; } - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return getModuleInstanceState(node, visited); case 80 /* Identifier */: - if (node.flags & 2048 /* IdentifierIsInJSDocNamespace */) { + if (node.flags & 4096 /* IdentifierIsInJSDocNamespace */) { return 0 /* NonInstantiated */; } } @@ -41413,6 +41758,9 @@ ${lanes.join("\n")} if (found === 1 /* Instantiated */) { return found; } + if (statement.kind === 271 /* ImportEqualsDeclaration */) { + found = 1 /* Instantiated */; + } } } if (found !== void 0) { @@ -41546,7 +41894,7 @@ ${lanes.join("\n")} } } function getDeclarationName(node) { - if (node.kind === 276 /* ExportAssignment */) { + if (node.kind === 277 /* ExportAssignment */) { return node.isExportEquals ? "export=" /* ExportEquals */ : "default" /* Default */; } const name = getNameOfDeclaration(node); @@ -41555,7 +41903,7 @@ ${lanes.join("\n")} const moduleName = getTextOfIdentifierOrLiteral(name); return isGlobalScopeAugmentation(node) ? "__global" : `"${moduleName}"`; } - if (name.kind === 166 /* ComputedPropertyName */) { + if (name.kind === 167 /* ComputedPropertyName */) { const nameExpression = name.expression; if (isStringOrNumericLiteralLike(nameExpression)) { return escapeLeadingUnderscores(nameExpression.text); @@ -41580,31 +41928,31 @@ ${lanes.join("\n")} return isPropertyNameLiteral(name) ? getEscapedTextOfIdentifierOrLiteral(name) : void 0; } switch (node.kind) { - case 175 /* Constructor */: + case 176 /* Constructor */: return "__constructor" /* Constructor */; - case 183 /* FunctionType */: - case 178 /* CallSignature */: - case 329 /* JSDocSignature */: + case 184 /* FunctionType */: + case 179 /* CallSignature */: + case 330 /* JSDocSignature */: return "__call" /* Call */; - case 184 /* ConstructorType */: - case 179 /* ConstructSignature */: + case 185 /* ConstructorType */: + case 180 /* ConstructSignature */: return "__new" /* New */; - case 180 /* IndexSignature */: + case 181 /* IndexSignature */: return "__index" /* Index */; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return "__export" /* ExportStar */; - case 311 /* SourceFile */: + case 312 /* SourceFile */: return "export=" /* ExportEquals */; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: if (getAssignmentDeclarationKind(node) === 2 /* ModuleExports */) { return "export=" /* ExportEquals */; } Debug.fail("Unknown binary declaration kind"); break; - case 323 /* JSDocFunctionType */: + case 324 /* JSDocFunctionType */: return isJSDocConstructSignature(node) ? "__new" /* New */ : "__call" /* Call */; - case 168 /* Parameter */: - Debug.assert(node.parent.kind === 323 /* JSDocFunctionType */, "Impossible parameter parent kind", () => `parent is: ${Debug.formatSyntaxKind(node.parent.kind)}, expected JSDocFunctionType`); + case 169 /* Parameter */: + Debug.assert(node.parent.kind === 324 /* JSDocFunctionType */, "Impossible parameter parent kind", () => `parent is: ${Debug.formatSyntaxKind(node.parent.kind)}, expected JSDocFunctionType`); const functionType = node.parent; const index = functionType.parameters.indexOf(node); return "arg" + index; @@ -41651,7 +41999,7 @@ ${lanes.join("\n")} messageNeedsName = false; multipleDefaultExports = true; } else { - if (symbol.declarations && symbol.declarations.length && (node.kind === 276 /* ExportAssignment */ && !node.isExportEquals)) { + if (symbol.declarations && symbol.declarations.length && (node.kind === 277 /* ExportAssignment */ && !node.isExportEquals)) { message = Diagnostics.A_module_cannot_have_multiple_default_exports; messageNeedsName = false; multipleDefaultExports = true; @@ -41690,7 +42038,7 @@ ${lanes.join("\n")} function declareModuleMember(node, symbolFlags, symbolExcludes) { const hasExportModifier = !!(getCombinedModifierFlags(node) & 1 /* Export */) || jsdocTreatAsExported(node); if (symbolFlags & 2097152 /* Alias */) { - if (node.kind === 280 /* ExportSpecifier */ || node.kind === 270 /* ImportEqualsDeclaration */ && hasExportModifier) { + if (node.kind === 281 /* ExportSpecifier */ || node.kind === 271 /* ImportEqualsDeclaration */ && hasExportModifier) { return declareSymbol(container.symbol.exports, container.symbol, node, symbolFlags, symbolExcludes); } else { Debug.assertNode(container, canHaveLocals); @@ -41706,7 +42054,7 @@ ${lanes.join("\n")} } else { if (isJSDocTypeAlias(node)) Debug.assert(isInJSFile(node)); - if (!isAmbientModule(node) && (hasExportModifier || container.flags & 64 /* ExportContext */)) { + if (!isAmbientModule(node) && (hasExportModifier || container.flags & 128 /* ExportContext */)) { if (!canHaveLocals(container) || !container.locals || hasSyntacticModifier(node, 1024 /* Default */) && !getDeclarationName(node)) { return declareSymbol(container.symbol.exports, container.symbol, node, symbolFlags, symbolExcludes); } @@ -41757,7 +42105,7 @@ ${lanes.join("\n")} const saveThisParentContainer = thisParentContainer; const savedBlockScopeContainer = blockScopeContainer; if (containerFlags & 1 /* IsContainer */) { - if (node.kind !== 218 /* ArrowFunction */) { + if (node.kind !== 219 /* ArrowFunction */) { thisParentContainer = container; } container = blockScopeContainer = node; @@ -41779,35 +42127,35 @@ ${lanes.join("\n")} const saveExceptionTarget = currentExceptionTarget; const saveActiveLabelList = activeLabelList; const saveHasExplicitReturn = hasExplicitReturn; - const isImmediatelyInvoked = containerFlags & 16 /* IsFunctionExpression */ && !hasSyntacticModifier(node, 512 /* Async */) && !node.asteriskToken && !!getImmediatelyInvokedFunctionExpression(node) || node.kind === 174 /* ClassStaticBlockDeclaration */; + const isImmediatelyInvoked = containerFlags & 16 /* IsFunctionExpression */ && !hasSyntacticModifier(node, 512 /* Async */) && !node.asteriskToken && !!getImmediatelyInvokedFunctionExpression(node) || node.kind === 175 /* ClassStaticBlockDeclaration */; if (!isImmediatelyInvoked) { currentFlow = initFlowNode({ flags: 2 /* Start */ }); if (containerFlags & (16 /* IsFunctionExpression */ | 128 /* IsObjectLiteralOrClassExpressionMethodOrAccessor */)) { currentFlow.node = node; } } - currentReturnTarget = isImmediatelyInvoked || node.kind === 175 /* Constructor */ || isInJSFile(node) && (node.kind === 261 /* FunctionDeclaration */ || node.kind === 217 /* FunctionExpression */) ? createBranchLabel() : void 0; + currentReturnTarget = isImmediatelyInvoked || node.kind === 176 /* Constructor */ || isInJSFile(node) && (node.kind === 262 /* FunctionDeclaration */ || node.kind === 218 /* FunctionExpression */) ? createBranchLabel() : void 0; currentExceptionTarget = void 0; currentBreakTarget = void 0; currentContinueTarget = void 0; activeLabelList = void 0; hasExplicitReturn = false; bindChildren(node); - node.flags &= ~2816 /* ReachabilityAndEmitFlags */; + node.flags &= ~5632 /* ReachabilityAndEmitFlags */; if (!(currentFlow.flags & 1 /* Unreachable */) && containerFlags & 8 /* IsFunctionLike */ && nodeIsPresent(node.body)) { - node.flags |= 256 /* HasImplicitReturn */; + node.flags |= 512 /* HasImplicitReturn */; if (hasExplicitReturn) - node.flags |= 512 /* HasExplicitReturn */; + node.flags |= 1024 /* HasExplicitReturn */; node.endFlowNode = currentFlow; } - if (node.kind === 311 /* SourceFile */) { + if (node.kind === 312 /* SourceFile */) { node.flags |= emitFlags; node.endFlowNode = currentFlow; } if (currentReturnTarget) { addAntecedent(currentReturnTarget, currentFlow); currentFlow = finishFlowLabel(currentReturnTarget); - if (node.kind === 175 /* Constructor */ || node.kind === 174 /* ClassStaticBlockDeclaration */ || isInJSFile(node) && (node.kind === 261 /* FunctionDeclaration */ || node.kind === 217 /* FunctionExpression */)) { + if (node.kind === 176 /* Constructor */ || node.kind === 175 /* ClassStaticBlockDeclaration */ || isInJSFile(node) && (node.kind === 262 /* FunctionDeclaration */ || node.kind === 218 /* FunctionExpression */)) { node.returnFlowNode = currentFlow; } } @@ -41824,7 +42172,7 @@ ${lanes.join("\n")} seenThisKeyword = false; bindChildren(node); Debug.assertNotNode(node, isIdentifier); - node.flags = seenThisKeyword ? node.flags | 128 /* ContainsThis */ : node.flags & ~128 /* ContainsThis */; + node.flags = seenThisKeyword ? node.flags | 256 /* ContainsThis */ : node.flags & ~256 /* ContainsThis */; } else { bindChildren(node); } @@ -41833,8 +42181,8 @@ ${lanes.join("\n")} blockScopeContainer = savedBlockScopeContainer; } function bindEachFunctionsFirst(nodes) { - bindEach(nodes, (n) => n.kind === 261 /* FunctionDeclaration */ ? bind(n) : void 0); - bindEach(nodes, (n) => n.kind !== 261 /* FunctionDeclaration */ ? bind(n) : void 0); + bindEach(nodes, (n) => n.kind === 262 /* FunctionDeclaration */ ? bind(n) : void 0); + bindEach(nodes, (n) => n.kind !== 262 /* FunctionDeclaration */ ? bind(n) : void 0); } function bindEach(nodes, bindFunction = bind) { if (nodes === void 0) { @@ -41854,59 +42202,59 @@ ${lanes.join("\n")} inAssignmentPattern = saveInAssignmentPattern; return; } - if (node.kind >= 242 /* FirstStatement */ && node.kind <= 258 /* LastStatement */ && !options.allowUnreachableCode) { + if (node.kind >= 243 /* FirstStatement */ && node.kind <= 259 /* LastStatement */ && !options.allowUnreachableCode) { node.flowNode = currentFlow; } switch (node.kind) { - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: bindWhileStatement(node); break; - case 245 /* DoStatement */: + case 246 /* DoStatement */: bindDoStatement(node); break; - case 247 /* ForStatement */: + case 248 /* ForStatement */: bindForStatement(node); break; - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: bindForInOrForOfStatement(node); break; - case 244 /* IfStatement */: + case 245 /* IfStatement */: bindIfStatement(node); break; - case 252 /* ReturnStatement */: - case 256 /* ThrowStatement */: + case 253 /* ReturnStatement */: + case 257 /* ThrowStatement */: bindReturnOrThrow(node); break; - case 251 /* BreakStatement */: - case 250 /* ContinueStatement */: + case 252 /* BreakStatement */: + case 251 /* ContinueStatement */: bindBreakOrContinueStatement(node); break; - case 257 /* TryStatement */: + case 258 /* TryStatement */: bindTryStatement(node); break; - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: bindSwitchStatement(node); break; - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: bindCaseBlock(node); break; - case 295 /* CaseClause */: + case 296 /* CaseClause */: bindCaseClause(node); break; - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: bindExpressionStatement(node); break; - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: bindLabeledStatement(node); break; - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: bindPrefixUnaryExpressionFlow(node); break; - case 224 /* PostfixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: bindPostfixUnaryExpressionFlow(node); break; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: if (isDestructuringAssignment(node)) { inAssignmentPattern = saveInAssignmentPattern; bindDestructuringAssignmentFlow(node); @@ -41914,49 +42262,49 @@ ${lanes.join("\n")} } bindBinaryExpressionFlow(node); break; - case 219 /* DeleteExpression */: + case 220 /* DeleteExpression */: bindDeleteExpressionFlow(node); break; - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: bindConditionalExpressionFlow(node); break; - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: bindVariableDeclarationFlow(node); break; - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: bindAccessExpressionFlow(node); break; - case 212 /* CallExpression */: + case 213 /* CallExpression */: bindCallExpressionFlow(node); break; - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: bindNonNullExpressionFlow(node); break; - case 352 /* JSDocTypedefTag */: - case 344 /* JSDocCallbackTag */: - case 346 /* JSDocEnumTag */: + case 353 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: + case 347 /* JSDocEnumTag */: bindJSDocTypeAlias(node); break; - case 311 /* SourceFile */: { + case 312 /* SourceFile */: { bindEachFunctionsFirst(node.statements); bind(node.endOfFileToken); break; } - case 240 /* Block */: - case 267 /* ModuleBlock */: + case 241 /* Block */: + case 268 /* ModuleBlock */: bindEachFunctionsFirst(node.statements); break; - case 207 /* BindingElement */: + case 208 /* BindingElement */: bindBindingElementFlow(node); break; - case 168 /* Parameter */: + case 169 /* Parameter */: bindParameterFlow(node); break; - case 209 /* ObjectLiteralExpression */: - case 208 /* ArrayLiteralExpression */: - case 302 /* PropertyAssignment */: - case 229 /* SpreadElement */: + case 210 /* ObjectLiteralExpression */: + case 209 /* ArrayLiteralExpression */: + case 303 /* PropertyAssignment */: + case 230 /* SpreadElement */: inAssignmentPattern = saveInAssignmentPattern; default: bindEachChild(node); @@ -41970,19 +42318,19 @@ ${lanes.join("\n")} case 80 /* Identifier */: case 81 /* PrivateIdentifier */: case 110 /* ThisKeyword */: - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return containsNarrowableReference(expr); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return hasNarrowableArgument(expr); - case 216 /* ParenthesizedExpression */: - case 234 /* NonNullExpression */: + case 217 /* ParenthesizedExpression */: + case 235 /* NonNullExpression */: return isNarrowingExpression(expr.expression); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return isNarrowingBinaryExpression(expr); - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: return expr.operator === 54 /* ExclamationToken */ && isNarrowingExpression(expr.operand); - case 220 /* TypeOfExpression */: + case 221 /* TypeOfExpression */: return isNarrowingExpression(expr.expression); } return false; @@ -42001,7 +42349,7 @@ ${lanes.join("\n")} } } } - if (expr.expression.kind === 210 /* PropertyAccessExpression */ && containsNarrowableReference(expr.expression.expression)) { + if (expr.expression.kind === 211 /* PropertyAccessExpression */ && containsNarrowableReference(expr.expression.expression)) { return true; } return false; @@ -42032,9 +42380,9 @@ ${lanes.join("\n")} } function isNarrowableOperand(expr) { switch (expr.kind) { - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return isNarrowableOperand(expr.expression); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: switch (expr.operatorToken.kind) { case 64 /* EqualsToken */: return isNarrowableOperand(expr.left); @@ -42107,21 +42455,21 @@ ${lanes.join("\n")} function isStatementCondition(node) { const parent3 = node.parent; switch (parent3.kind) { - case 244 /* IfStatement */: - case 246 /* WhileStatement */: - case 245 /* DoStatement */: + case 245 /* IfStatement */: + case 247 /* WhileStatement */: + case 246 /* DoStatement */: return parent3.expression === node; - case 247 /* ForStatement */: - case 226 /* ConditionalExpression */: + case 248 /* ForStatement */: + case 227 /* ConditionalExpression */: return parent3.condition === node; } return false; } function isLogicalExpression(node) { while (true) { - if (node.kind === 216 /* ParenthesizedExpression */) { + if (node.kind === 217 /* ParenthesizedExpression */) { node = node.expression; - } else if (node.kind === 223 /* PrefixUnaryExpression */ && node.operator === 54 /* ExclamationToken */) { + } else if (node.kind === 224 /* PrefixUnaryExpression */ && node.operator === 54 /* ExclamationToken */) { node = node.operand; } else { return isLogicalOrCoalescingBinaryExpression(node); @@ -42164,7 +42512,7 @@ ${lanes.join("\n")} } function setContinueTarget(node, target) { let label = activeLabelList; - while (label && node.parent.kind === 255 /* LabeledStatement */) { + while (label && node.parent.kind === 256 /* LabeledStatement */) { label.continueTarget = target; label = label.next; node = node.parent; @@ -42215,12 +42563,12 @@ ${lanes.join("\n")} bind(node.expression); addAntecedent(preLoopLabel, currentFlow); currentFlow = preLoopLabel; - if (node.kind === 249 /* ForOfStatement */) { + if (node.kind === 250 /* ForOfStatement */) { bind(node.awaitModifier); } addAntecedent(postLoopLabel, currentFlow); bind(node.initializer); - if (node.initializer.kind !== 260 /* VariableDeclarationList */) { + if (node.initializer.kind !== 261 /* VariableDeclarationList */) { bindAssignmentTargetFlow(node.initializer); } bindIterativeStatement(node.statement, postLoopLabel, preLoopLabel); @@ -42242,7 +42590,7 @@ ${lanes.join("\n")} } function bindReturnOrThrow(node) { bind(node.expression); - if (node.kind === 252 /* ReturnStatement */) { + if (node.kind === 253 /* ReturnStatement */) { hasExplicitReturn = true; if (currentReturnTarget) { addAntecedent(currentReturnTarget, currentFlow); @@ -42259,7 +42607,7 @@ ${lanes.join("\n")} return void 0; } function bindBreakOrContinueFlow(node, breakTarget, continueTarget) { - const flowLabel = node.kind === 251 /* BreakStatement */ ? breakTarget : continueTarget; + const flowLabel = node.kind === 252 /* BreakStatement */ ? breakTarget : continueTarget; if (flowLabel) { addAntecedent(flowLabel, currentFlow); currentFlow = unreachableFlow; @@ -42329,7 +42677,7 @@ ${lanes.join("\n")} preSwitchCaseFlow = currentFlow; bind(node.caseBlock); addAntecedent(postSwitchLabel, currentFlow); - const hasDefault = forEach(node.caseBlock.clauses, (c) => c.kind === 296 /* DefaultClause */); + const hasDefault = forEach(node.caseBlock.clauses, (c) => c.kind === 297 /* DefaultClause */); node.possiblyExhaustive = !hasDefault && !postSwitchLabel.antecedents; if (!hasDefault) { addAntecedent(postSwitchLabel, createFlowSwitchClause(preSwitchCaseFlow, node, 0, 0)); @@ -42372,7 +42720,7 @@ ${lanes.join("\n")} maybeBindExpressionFlowIfCall(node.expression); } function maybeBindExpressionFlowIfCall(node) { - if (node.kind === 212 /* CallExpression */) { + if (node.kind === 213 /* CallExpression */) { const call = node; if (call.expression.kind !== 108 /* SuperKeyword */ && isDottedName(call.expression)) { currentFlow = createFlowCall(currentFlow, call); @@ -42398,7 +42746,7 @@ ${lanes.join("\n")} currentFlow = finishFlowLabel(postStatementLabel); } function bindDestructuringTargetFlow(node) { - if (node.kind === 225 /* BinaryExpression */ && node.operatorToken.kind === 64 /* EqualsToken */) { + if (node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 64 /* EqualsToken */) { bindAssignmentTargetFlow(node.left); } else { bindAssignmentTargetFlow(node); @@ -42407,21 +42755,21 @@ ${lanes.join("\n")} function bindAssignmentTargetFlow(node) { if (isNarrowableReference(node)) { currentFlow = createFlowMutation(16 /* Assignment */, currentFlow, node); - } else if (node.kind === 208 /* ArrayLiteralExpression */) { + } else if (node.kind === 209 /* ArrayLiteralExpression */) { for (const e of node.elements) { - if (e.kind === 229 /* SpreadElement */) { + if (e.kind === 230 /* SpreadElement */) { bindAssignmentTargetFlow(e.expression); } else { bindDestructuringTargetFlow(e); } } - } else if (node.kind === 209 /* ObjectLiteralExpression */) { + } else if (node.kind === 210 /* ObjectLiteralExpression */) { for (const p of node.properties) { - if (p.kind === 302 /* PropertyAssignment */) { + if (p.kind === 303 /* PropertyAssignment */) { bindDestructuringTargetFlow(p.initializer); - } else if (p.kind === 303 /* ShorthandPropertyAssignment */) { + } else if (p.kind === 304 /* ShorthandPropertyAssignment */) { bindAssignmentTargetFlow(p.name); - } else if (p.kind === 304 /* SpreadAssignment */) { + } else if (p.kind === 305 /* SpreadAssignment */) { bindAssignmentTargetFlow(p.expression); } } @@ -42552,7 +42900,7 @@ ${lanes.join("\n")} const operator = node.operatorToken.kind; if (isAssignmentOperator(operator) && !isAssignmentTarget(node)) { bindAssignmentTargetFlow(node.left); - if (operator === 64 /* EqualsToken */ && node.left.kind === 211 /* ElementAccessExpression */) { + if (operator === 64 /* EqualsToken */ && node.left.kind === 212 /* ElementAccessExpression */) { const elementAccess = node.left; if (isNarrowableOperand(elementAccess.expression)) { currentFlow = createFlowMutation(256 /* ArrayMutation */, currentFlow, node); @@ -42580,7 +42928,7 @@ ${lanes.join("\n")} } function bindDeleteExpressionFlow(node) { bindEachChild(node); - if (node.expression.kind === 210 /* PropertyAccessExpression */) { + if (node.expression.kind === 211 /* PropertyAccessExpression */) { bindAssignmentTargetFlow(node.expression); } } @@ -42645,7 +42993,7 @@ ${lanes.join("\n")} } function bindJSDocTypeAlias(node) { bind(node.tagName); - if (node.kind !== 346 /* JSDocEnumTag */ && node.fullName) { + if (node.kind !== 347 /* JSDocEnumTag */ && node.fullName) { setParent(node.fullName, node); setParentRecursive( node.fullName, @@ -42660,7 +43008,7 @@ ${lanes.join("\n")} function bindJSDocClassTag(node) { bindEachChild(node); const host = getHostSignatureFromJSDoc(node); - if (host && host.kind !== 173 /* MethodDeclaration */) { + if (host && host.kind !== 174 /* MethodDeclaration */) { addDeclarationToSymbol(host.symbol, host, 32 /* Class */); } } @@ -42673,15 +43021,15 @@ ${lanes.join("\n")} } function bindOptionalChainRest(node) { switch (node.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: bind(node.questionDotToken); bind(node.name); break; - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: bind(node.questionDotToken); bind(node.argumentExpression); break; - case 212 /* CallExpression */: + case 213 /* CallExpression */: bind(node.questionDotToken); bindEach(node.typeArguments); bindEach(node.arguments); @@ -42728,7 +43076,7 @@ ${lanes.join("\n")} bindOptionalChainFlow(node); } else { const expr = skipParentheses(node.expression); - if (expr.kind === 217 /* FunctionExpression */ || expr.kind === 218 /* ArrowFunction */) { + if (expr.kind === 218 /* FunctionExpression */ || expr.kind === 219 /* ArrowFunction */) { bindEach(node.typeArguments); bindEach(node.arguments); bind(node.expression); @@ -42739,7 +43087,7 @@ ${lanes.join("\n")} } } } - if (node.expression.kind === 210 /* PropertyAccessExpression */) { + if (node.expression.kind === 211 /* PropertyAccessExpression */) { const propertyAccess = node.expression; if (isIdentifier(propertyAccess.name) && isNarrowableOperand(propertyAccess.expression) && isPushOrUnshiftIdentifier(propertyAccess.name)) { currentFlow = createFlowMutation(256 /* ArrayMutation */, currentFlow, node); @@ -42754,39 +43102,39 @@ ${lanes.join("\n")} } function declareSymbolAndAddToSymbolTable(node, symbolFlags, symbolExcludes) { switch (container.kind) { - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return declareModuleMember(node, symbolFlags, symbolExcludes); - case 311 /* SourceFile */: + case 312 /* SourceFile */: return declareSourceFileMember(node, symbolFlags, symbolExcludes); - case 230 /* ClassExpression */: - case 262 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 263 /* ClassDeclaration */: return declareClassMember(node, symbolFlags, symbolExcludes); - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return declareSymbol(container.symbol.exports, container.symbol, node, symbolFlags, symbolExcludes); - case 186 /* TypeLiteral */: - case 328 /* JSDocTypeLiteral */: - case 209 /* ObjectLiteralExpression */: - case 263 /* InterfaceDeclaration */: - case 291 /* JsxAttributes */: + case 187 /* TypeLiteral */: + case 329 /* JSDocTypeLiteral */: + case 210 /* ObjectLiteralExpression */: + case 264 /* InterfaceDeclaration */: + case 292 /* JsxAttributes */: return declareSymbol(container.symbol.members, container.symbol, node, symbolFlags, symbolExcludes); - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 329 /* JSDocSignature */: - case 180 /* IndexSignature */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 323 /* JSDocFunctionType */: - case 174 /* ClassStaticBlockDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 199 /* MappedType */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 330 /* JSDocSignature */: + case 181 /* IndexSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 324 /* JSDocFunctionType */: + case 175 /* ClassStaticBlockDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 200 /* MappedType */: if (container.locals) Debug.assertNode(container, canHaveLocals); return declareSymbol( @@ -42817,10 +43165,10 @@ ${lanes.join("\n")} return !!body && body.statements.some((s) => isExportDeclaration(s) || isExportAssignment(s)); } function setExportContextFlag(node) { - if (node.flags & 16777216 /* Ambient */ && !hasExportDeclarations(node)) { - node.flags |= 64 /* ExportContext */; + if (node.flags & 33554432 /* Ambient */ && !hasExportDeclarations(node)) { + node.flags |= 128 /* ExportContext */; } else { - node.flags &= ~64 /* ExportContext */; + node.flags &= ~128 /* ExportContext */; } } function bindModuleDeclaration(node) { @@ -42888,10 +43236,10 @@ ${lanes.join("\n")} } function bindBlockScopedDeclaration(node, symbolFlags, symbolExcludes) { switch (blockScopeContainer.kind) { - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: declareModuleMember(node, symbolFlags, symbolExcludes); break; - case 311 /* SourceFile */: + case 312 /* SourceFile */: if (isExternalOrCommonJsModule(container)) { declareModuleMember(node, symbolFlags, symbolExcludes); break; @@ -42923,7 +43271,7 @@ ${lanes.join("\n")} const saveCurrentFlow = currentFlow; for (const typeAlias of delayedTypeAliases) { const host = typeAlias.parent.parent; - container = findAncestor(host.parent, (n) => !!(getContainerFlags(n) & 1 /* IsContainer */)) || file; + container = getEnclosingContainer(host) || file; blockScopeContainer = getEnclosingBlockScopeContainer(host) || file; currentFlow = initFlowNode({ flags: 2 /* Start */ }); parent2 = typeAlias; @@ -42981,7 +43329,7 @@ ${lanes.join("\n")} currentFlow = saveCurrentFlow; } function checkContextualIdentifier(node) { - if (!file.parseDiagnostics.length && !(node.flags & 16777216 /* Ambient */) && !(node.flags & 8388608 /* JSDoc */) && !isIdentifierName(node)) { + if (!file.parseDiagnostics.length && !(node.flags & 33554432 /* Ambient */) && !(node.flags & 16777216 /* JSDoc */) && !isIdentifierName(node)) { const originalKeywordKind = identifierToKeywordKind(node); if (originalKeywordKind === void 0) { return; @@ -42999,14 +43347,14 @@ ${lanes.join("\n")} Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module, declarationNameToString(node) )); - } else if (node.flags & 32768 /* AwaitContext */) { + } else if (node.flags & 65536 /* AwaitContext */) { file.bindDiagnostics.push(createDiagnosticForNode2( node, Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here, declarationNameToString(node) )); } - } else if (originalKeywordKind === 127 /* YieldKeyword */ && node.flags & 8192 /* YieldContext */) { + } else if (originalKeywordKind === 127 /* YieldKeyword */ && node.flags & 16384 /* YieldContext */) { file.bindDiagnostics.push(createDiagnosticForNode2( node, Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here, @@ -43094,7 +43442,7 @@ ${lanes.join("\n")} } function checkStrictModeFunctionDeclaration(node) { if (languageVersion < 2 /* ES2015 */) { - if (blockScopeContainer.kind !== 311 /* SourceFile */ && blockScopeContainer.kind !== 266 /* ModuleDeclaration */ && !isFunctionLikeOrClassStaticBlockDeclaration(blockScopeContainer)) { + if (blockScopeContainer.kind !== 312 /* SourceFile */ && blockScopeContainer.kind !== 267 /* ModuleDeclaration */ && !isFunctionLikeOrClassStaticBlockDeclaration(blockScopeContainer)) { const errorSpan = getErrorSpanForNode(file, node); file.bindDiagnostics.push(createFileDiagnostic( file, @@ -43156,7 +43504,7 @@ ${lanes.join("\n")} node.tracingPath = file.path; const saveInStrictMode = inStrictMode; bindWorker(node); - if (node.kind > 164 /* LastToken */) { + if (node.kind > 165 /* LastToken */) { const saveParent = parent2; parent2 = node; const containerFlags = getContainerFlags(node); @@ -43213,7 +43561,7 @@ ${lanes.join("\n")} function bindWorker(node) { switch (node.kind) { case 80 /* Identifier */: - if (node.flags & 2048 /* IdentifierIsInJSDocNamespace */) { + if (node.flags & 4096 /* IdentifierIsInJSDocNamespace */) { let parentNode = node.parent; while (parentNode && !isJSDocTypeAlias(parentNode)) { parentNode = parentNode.parent; @@ -43222,23 +43570,23 @@ ${lanes.join("\n")} break; } case 110 /* ThisKeyword */: - if (currentFlow && (isExpression(node) || parent2.kind === 303 /* ShorthandPropertyAssignment */)) { + if (currentFlow && (isExpression(node) || parent2.kind === 304 /* ShorthandPropertyAssignment */)) { node.flowNode = currentFlow; } return checkContextualIdentifier(node); - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: if (currentFlow && isPartOfTypeQuery(node)) { node.flowNode = currentFlow; } break; - case 235 /* MetaProperty */: + case 236 /* MetaProperty */: case 108 /* SuperKeyword */: node.flowNode = currentFlow; break; case 81 /* PrivateIdentifier */: return checkPrivateIdentifier(node); - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: const expr = node; if (currentFlow && isNarrowableReference(expr)) { expr.flowNode = currentFlow; @@ -43257,7 +43605,7 @@ ${lanes.join("\n")} ); } break; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: const specialKind = getAssignmentDeclarationKind(node); switch (specialKind) { case 1 /* ExportsProperty */: @@ -43292,81 +43640,81 @@ ${lanes.join("\n")} Debug.fail("Unknown binary expression special property assignment kind"); } return checkStrictModeBinaryExpression(node); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return checkStrictModeCatchClause(node); - case 219 /* DeleteExpression */: + case 220 /* DeleteExpression */: return checkStrictModeDeleteExpression(node); - case 224 /* PostfixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return checkStrictModePostfixUnaryExpression(node); - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: return checkStrictModePrefixUnaryExpression(node); - case 253 /* WithStatement */: + case 254 /* WithStatement */: return checkStrictModeWithStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return checkStrictModeLabeledStatement(node); - case 196 /* ThisType */: + case 197 /* ThisType */: seenThisKeyword = true; return; - case 181 /* TypePredicate */: + case 182 /* TypePredicate */: break; - case 167 /* TypeParameter */: + case 168 /* TypeParameter */: return bindTypeParameter(node); - case 168 /* Parameter */: + case 169 /* Parameter */: return bindParameter(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return bindVariableDeclarationOrBindingElement(node); - case 207 /* BindingElement */: + case 208 /* BindingElement */: node.flowNode = currentFlow; return bindVariableDeclarationOrBindingElement(node); - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: return bindPropertyWorker(node); - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return bindPropertyOrMethodOrAccessor(node, 4 /* Property */, 0 /* PropertyExcludes */); - case 305 /* EnumMember */: + case 306 /* EnumMember */: return bindPropertyOrMethodOrAccessor(node, 8 /* EnumMember */, 900095 /* EnumMemberExcludes */); - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 180 /* IndexSignature */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 181 /* IndexSignature */: return declareSymbolAndAddToSymbolTable(node, 131072 /* Signature */, 0 /* None */); - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: return bindPropertyOrMethodOrAccessor( node, 8192 /* Method */ | (node.questionToken ? 16777216 /* Optional */ : 0 /* None */), isObjectLiteralMethod(node) ? 0 /* PropertyExcludes */ : 103359 /* MethodExcludes */ ); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return bindFunctionDeclaration(node); - case 175 /* Constructor */: + case 176 /* Constructor */: return declareSymbolAndAddToSymbolTable( node, 16384 /* Constructor */, /*symbolExcludes:*/ 0 /* None */ ); - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return bindPropertyOrMethodOrAccessor(node, 32768 /* GetAccessor */, 46015 /* GetAccessorExcludes */); - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return bindPropertyOrMethodOrAccessor(node, 65536 /* SetAccessor */, 78783 /* SetAccessorExcludes */); - case 183 /* FunctionType */: - case 323 /* JSDocFunctionType */: - case 329 /* JSDocSignature */: - case 184 /* ConstructorType */: + case 184 /* FunctionType */: + case 324 /* JSDocFunctionType */: + case 330 /* JSDocSignature */: + case 185 /* ConstructorType */: return bindFunctionOrConstructorType(node); - case 186 /* TypeLiteral */: - case 328 /* JSDocTypeLiteral */: - case 199 /* MappedType */: + case 187 /* TypeLiteral */: + case 329 /* JSDocTypeLiteral */: + case 200 /* MappedType */: return bindAnonymousTypeWorker(node); - case 338 /* JSDocClassTag */: + case 339 /* JSDocClassTag */: return bindJSDocClassTag(node); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return bindObjectLiteralExpression(node); - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return bindFunctionExpression(node); - case 212 /* CallExpression */: + case 213 /* CallExpression */: const assignmentKind = getAssignmentDeclarationKind(node); switch (assignmentKind) { case 7 /* ObjectDefinePropertyValue */: @@ -43384,60 +43732,60 @@ ${lanes.join("\n")} bindCallExpression(node); } break; - case 230 /* ClassExpression */: - case 262 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 263 /* ClassDeclaration */: inStrictMode = true; return bindClassLikeDeclaration(node); - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: return bindBlockScopedDeclaration(node, 64 /* Interface */, 788872 /* InterfaceExcludes */); - case 264 /* TypeAliasDeclaration */: + case 265 /* TypeAliasDeclaration */: return bindBlockScopedDeclaration(node, 524288 /* TypeAlias */, 788968 /* TypeAliasExcludes */); - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return bindEnumDeclaration(node); - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return bindModuleDeclaration(node); - case 291 /* JsxAttributes */: + case 292 /* JsxAttributes */: return bindJsxAttributes(node); - case 290 /* JsxAttribute */: + case 291 /* JsxAttribute */: return bindJsxAttribute(node, 4 /* Property */, 0 /* PropertyExcludes */); - case 270 /* ImportEqualsDeclaration */: - case 273 /* NamespaceImport */: - case 275 /* ImportSpecifier */: - case 280 /* ExportSpecifier */: + case 271 /* ImportEqualsDeclaration */: + case 274 /* NamespaceImport */: + case 276 /* ImportSpecifier */: + case 281 /* ExportSpecifier */: return declareSymbolAndAddToSymbolTable(node, 2097152 /* Alias */, 2097152 /* AliasExcludes */); - case 269 /* NamespaceExportDeclaration */: + case 270 /* NamespaceExportDeclaration */: return bindNamespaceExportDeclaration(node); - case 272 /* ImportClause */: + case 273 /* ImportClause */: return bindImportClause(node); - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return bindExportDeclaration(node); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return bindExportAssignment(node); - case 311 /* SourceFile */: + case 312 /* SourceFile */: updateStrictModeStatementList(node.statements); return bindSourceFileIfExternalModule(); - case 240 /* Block */: + case 241 /* Block */: if (!isFunctionLikeOrClassStaticBlockDeclaration(node.parent)) { return; } - case 267 /* ModuleBlock */: + case 268 /* ModuleBlock */: return updateStrictModeStatementList(node.statements); - case 347 /* JSDocParameterTag */: - if (node.parent.kind === 329 /* JSDocSignature */) { + case 348 /* JSDocParameterTag */: + if (node.parent.kind === 330 /* JSDocSignature */) { return bindParameter(node); } - if (node.parent.kind !== 328 /* JSDocTypeLiteral */) { + if (node.parent.kind !== 329 /* JSDocTypeLiteral */) { break; } - case 354 /* JSDocPropertyTag */: + case 355 /* JSDocPropertyTag */: const propTag = node; - const flags = propTag.isBracketed || propTag.typeExpression && propTag.typeExpression.type.kind === 322 /* JSDocOptionalType */ ? 4 /* Property */ | 16777216 /* Optional */ : 4 /* Property */; + const flags = propTag.isBracketed || propTag.typeExpression && propTag.typeExpression.type.kind === 323 /* JSDocOptionalType */ ? 4 /* Property */ | 16777216 /* Optional */ : 4 /* Property */; return declareSymbolAndAddToSymbolTable(propTag, flags, 0 /* PropertyExcludes */); - case 352 /* JSDocTypedefTag */: - case 344 /* JSDocCallbackTag */: - case 346 /* JSDocEnumTag */: + case 353 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: + case 347 /* JSDocEnumTag */: return (delayedTypeAliases || (delayedTypeAliases = [])).push(node); - case 345 /* JSDocOverloadTag */: + case 346 /* JSDocOverloadTag */: return bind(node.typeExpression); } } @@ -43589,8 +43937,8 @@ ${lanes.join("\n")} false ); switch (thisContainer.kind) { - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: let constructorSymbol = thisContainer.symbol; if (isBinaryExpression(thisContainer.parent) && thisContainer.parent.operatorToken.kind === 64 /* EqualsToken */) { const l = thisContainer.parent.left; @@ -43608,12 +43956,12 @@ ${lanes.join("\n")} addDeclarationToSymbol(constructorSymbol, constructorSymbol.valueDeclaration, 32 /* Class */); } break; - case 175 /* Constructor */: - case 171 /* PropertyDeclaration */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 174 /* ClassStaticBlockDeclaration */: + case 176 /* Constructor */: + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 175 /* ClassStaticBlockDeclaration */: const containingClass = thisContainer.parent; const symbolTable = isStatic(thisContainer) ? containingClass.symbol.exports : containingClass.symbol.members; if (hasDynamicName(node)) { @@ -43630,7 +43978,7 @@ ${lanes.join("\n")} ); } break; - case 311 /* SourceFile */: + case 312 /* SourceFile */: if (hasDynamicName(node)) { break; } else if (thisContainer.commonJsModuleIndicator) { @@ -43639,7 +43987,7 @@ ${lanes.join("\n")} declareSymbolAndAddToSymbolTable(node, 1 /* FunctionScopedVariable */, 111550 /* FunctionScopedVariableExcludes */); } break; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: break; default: Debug.failBadSyntaxKind(thisContainer); @@ -43667,7 +44015,7 @@ ${lanes.join("\n")} function bindSpecialPropertyDeclaration(node) { if (node.expression.kind === 110 /* ThisKeyword */) { bindThisPropertyAssignment(node); - } else if (isBindableStaticAccessExpression(node) && node.parent.parent.kind === 311 /* SourceFile */) { + } else if (isBindableStaticAccessExpression(node) && node.parent.parent.kind === 312 /* SourceFile */) { if (isPrototypeAccess(node.expression)) { bindPrototypePropertyAssignment(node, node.parent); } else { @@ -43716,7 +44064,7 @@ ${lanes.join("\n")} } function bindObjectDefinePropertyAssignment(node) { let namespaceSymbol = lookupSymbolForPropertyAccess(node.arguments[0]); - const isToplevel = node.parent.parent.kind === 311 /* SourceFile */; + const isToplevel = node.parent.parent.kind === 312 /* SourceFile */; namespaceSymbol = bindPotentiallyMissingNamespaces( namespaceSymbol, node.arguments[0], @@ -43830,7 +44178,7 @@ ${lanes.join("\n")} declareSymbol(symbolTable, namespaceSymbol, declaration, includes | 67108864 /* Assignment */, excludes & ~67108864 /* Assignment */); } function isTopLevelNamespaceAssignment(propertyAccess) { - return isBinaryExpression(propertyAccess.parent) ? getParentOfBinaryExpression(propertyAccess.parent).parent.kind === 311 /* SourceFile */ : propertyAccess.parent.parent.kind === 311 /* SourceFile */; + return isBinaryExpression(propertyAccess.parent) ? getParentOfBinaryExpression(propertyAccess.parent).parent.kind === 312 /* SourceFile */ : propertyAccess.parent.parent.kind === 312 /* SourceFile */; } function bindPropertyAssignment(name, propertyAccess, isPrototypeProperty, containerIsClass) { let namespaceSymbol = lookupSymbolForPropertyAccess(name, container) || lookupSymbolForPropertyAccess(name, blockScopeContainer); @@ -43892,7 +44240,7 @@ ${lanes.join("\n")} } } function bindClassLikeDeclaration(node) { - if (node.kind === 262 /* ClassDeclaration */) { + if (node.kind === 263 /* ClassDeclaration */) { bindBlockScopedDeclaration(node, 32 /* Class */, 899503 /* ClassExcludes */); } else { const bindingName = node.name ? node.name.escapedText : "__class" /* Class */; @@ -43921,7 +44269,7 @@ ${lanes.join("\n")} checkStrictModeEvalOrArguments(node, node.name); } if (!isBindingPattern(node.name)) { - const possibleVariableDecl = node.kind === 259 /* VariableDeclaration */ ? node : node.parent.parent; + const possibleVariableDecl = node.kind === 260 /* VariableDeclaration */ ? node : node.parent.parent; if (isInJSFile(node) && shouldResolveJsRequire(options) && isVariableDeclarationInitializedToBareOrAccessedRequire(possibleVariableDecl) && !getJSDocTypeTag(node) && !(getCombinedModifierFlags(node) & 1 /* Export */)) { declareSymbolAndAddToSymbolTable(node, 2097152 /* Alias */, 2097152 /* AliasExcludes */); } else if (isBlockOrCatchScoped(node)) { @@ -43934,10 +44282,10 @@ ${lanes.join("\n")} } } function bindParameter(node) { - if (node.kind === 347 /* JSDocParameterTag */ && container.kind !== 329 /* JSDocSignature */) { + if (node.kind === 348 /* JSDocParameterTag */ && container.kind !== 330 /* JSDocSignature */) { return; } - if (inStrictMode && !(node.flags & 16777216 /* Ambient */)) { + if (inStrictMode && !(node.flags & 33554432 /* Ambient */)) { checkStrictModeEvalOrArguments(node, node.name); } if (isBindingPattern(node.name)) { @@ -43951,9 +44299,9 @@ ${lanes.join("\n")} } } function bindFunctionDeclaration(node) { - if (!file.isDeclarationFile && !(node.flags & 16777216 /* Ambient */)) { + if (!file.isDeclarationFile && !(node.flags & 33554432 /* Ambient */)) { if (isAsyncFunction(node)) { - emitFlags |= 2048 /* HasAsyncFunctions */; + emitFlags |= 4096 /* HasAsyncFunctions */; } } checkStrictModeFunctionName(node); @@ -43965,9 +44313,9 @@ ${lanes.join("\n")} } } function bindFunctionExpression(node) { - if (!file.isDeclarationFile && !(node.flags & 16777216 /* Ambient */)) { + if (!file.isDeclarationFile && !(node.flags & 33554432 /* Ambient */)) { if (isAsyncFunction(node)) { - emitFlags |= 2048 /* HasAsyncFunctions */; + emitFlags |= 4096 /* HasAsyncFunctions */; } } if (currentFlow) { @@ -43978,8 +44326,8 @@ ${lanes.join("\n")} return bindAnonymousDeclaration(node, 16 /* Function */, bindingName); } function bindPropertyOrMethodOrAccessor(node, symbolFlags, symbolExcludes) { - if (!file.isDeclarationFile && !(node.flags & 16777216 /* Ambient */) && isAsyncFunction(node)) { - emitFlags |= 2048 /* HasAsyncFunctions */; + if (!file.isDeclarationFile && !(node.flags & 33554432 /* Ambient */) && isAsyncFunction(node)) { + emitFlags |= 4096 /* HasAsyncFunctions */; } if (currentFlow && isObjectLiteralOrClassExpressionMethodOrAccessor(node)) { node.flowNode = currentFlow; @@ -44007,7 +44355,7 @@ ${lanes.join("\n")} } else { declareSymbolAndAddToSymbolTable(node, 262144 /* TypeParameter */, 526824 /* TypeParameterExcludes */); } - } else if (node.parent.kind === 194 /* InferType */) { + } else if (node.parent.kind === 195 /* InferType */) { const container2 = getInferTypeContainer(node.parent); if (container2) { Debug.assertNode(container2, canHaveLocals); @@ -44038,14 +44386,14 @@ ${lanes.join("\n")} if (currentFlow === unreachableFlow) { const reportError = ( // report error on all statements except empty ones - isStatementButNotDeclaration(node) && node.kind !== 241 /* EmptyStatement */ || // report error on class declarations - node.kind === 262 /* ClassDeclaration */ || // report error on instantiated modules or const-enums only modules if preserveConstEnums is set - node.kind === 266 /* ModuleDeclaration */ && shouldReportErrorOnModuleDeclaration(node) + isStatementButNotDeclaration(node) && node.kind !== 242 /* EmptyStatement */ || // report error on class declarations + node.kind === 263 /* ClassDeclaration */ || // report error on instantiated modules or const-enums only modules if preserveConstEnums is set + node.kind === 267 /* ModuleDeclaration */ && shouldReportErrorOnModuleDeclaration(node) ); if (reportError) { currentFlow = reportedUnreachableFlow; if (!options.allowUnreachableCode) { - const isError = unreachableCodeIsError(options) && !(node.flags & 16777216 /* Ambient */) && (!isVariableStatement(node) || !!(getCombinedNodeFlags(node.declarationList) & 3 /* BlockScoped */) || node.declarationList.declarations.some((d) => !!d.initializer)); + const isError = unreachableCodeIsError(options) && !(node.flags & 33554432 /* Ambient */) && (!isVariableStatement(node) || !!(getCombinedNodeFlags(node.declarationList) & 7 /* BlockScoped */) || node.declarationList.declarations.some((d) => !!d.initializer)); eachUnreachableRange(node, (start, end) => errorOrSuggestionOnRange(isError, start, end, Diagnostics.Unreachable_code_detected)); } } @@ -44064,16 +44412,16 @@ ${lanes.join("\n")} } function isExecutableStatement(s) { return !isFunctionDeclaration(s) && !isPurelyTypeDeclaration(s) && !isEnumDeclaration(s) && // `var x;` may declare a variable used above - !(isVariableStatement(s) && !(getCombinedNodeFlags(s) & (1 /* Let */ | 2 /* Const */)) && s.declarationList.declarations.some((d) => !d.initializer)); + !(isVariableStatement(s) && !(getCombinedNodeFlags(s) & 7 /* BlockScoped */) && s.declarationList.declarations.some((d) => !d.initializer)); } function isPurelyTypeDeclaration(s) { switch (s.kind) { - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: return true; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return getModuleInstanceState(s) !== 1 /* Instantiated */; - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return hasSyntacticModifier(s, 2048 /* Const */); default: return false; @@ -44108,54 +44456,54 @@ ${lanes.join("\n")} } function getContainerFlags(node) { switch (node.kind) { - case 230 /* ClassExpression */: - case 262 /* ClassDeclaration */: - case 265 /* EnumDeclaration */: - case 209 /* ObjectLiteralExpression */: - case 186 /* TypeLiteral */: - case 328 /* JSDocTypeLiteral */: - case 291 /* JsxAttributes */: + case 231 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 266 /* EnumDeclaration */: + case 210 /* ObjectLiteralExpression */: + case 187 /* TypeLiteral */: + case 329 /* JSDocTypeLiteral */: + case 292 /* JsxAttributes */: return 1 /* IsContainer */; - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: return 1 /* IsContainer */ | 64 /* IsInterface */; - case 266 /* ModuleDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 199 /* MappedType */: - case 180 /* IndexSignature */: + case 267 /* ModuleDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 200 /* MappedType */: + case 181 /* IndexSignature */: return 1 /* IsContainer */ | 32 /* HasLocals */; - case 311 /* SourceFile */: + case 312 /* SourceFile */: return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */; - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 173 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: if (isObjectLiteralOrClassExpressionMethodOrAccessor(node)) { return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */ | 8 /* IsFunctionLike */ | 128 /* IsObjectLiteralOrClassExpressionMethodOrAccessor */; } - case 175 /* Constructor */: - case 261 /* FunctionDeclaration */: - case 172 /* MethodSignature */: - case 178 /* CallSignature */: - case 329 /* JSDocSignature */: - case 323 /* JSDocFunctionType */: - case 183 /* FunctionType */: - case 179 /* ConstructSignature */: - case 184 /* ConstructorType */: - case 174 /* ClassStaticBlockDeclaration */: + case 176 /* Constructor */: + case 262 /* FunctionDeclaration */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 330 /* JSDocSignature */: + case 324 /* JSDocFunctionType */: + case 184 /* FunctionType */: + case 180 /* ConstructSignature */: + case 185 /* ConstructorType */: + case 175 /* ClassStaticBlockDeclaration */: return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */ | 8 /* IsFunctionLike */; - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */ | 8 /* IsFunctionLike */ | 16 /* IsFunctionExpression */; - case 267 /* ModuleBlock */: + case 268 /* ModuleBlock */: return 4 /* IsControlFlowContainer */; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return node.initializer ? 4 /* IsControlFlowContainer */ : 0; - case 298 /* CatchClause */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 268 /* CaseBlock */: + case 299 /* CatchClause */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 269 /* CaseBlock */: return 2 /* IsBlockScopedContainer */ | 32 /* HasLocals */; - case 240 /* Block */: + case 241 /* Block */: return isFunctionLike(node.parent) || isClassStaticBlockDeclaration(node.parent) ? 0 /* None */ : 2 /* IsBlockScopedContainer */ | 32 /* HasLocals */; } return 0 /* None */; @@ -44173,7 +44521,7 @@ ${lanes.join("\n")} return (_d = (_c = container.symbol) == null ? void 0 : _c.exports) == null ? void 0 : _d.get(name); } } - var ModuleInstanceState, binder; + var ModuleInstanceState, ContainerFlags, binder; var init_binder = __esm({ "src/compiler/binder.ts"() { "use strict"; @@ -44185,6 +44533,18 @@ ${lanes.join("\n")} ModuleInstanceState2[ModuleInstanceState2["ConstEnumOnly"] = 2] = "ConstEnumOnly"; return ModuleInstanceState2; })(ModuleInstanceState || {}); + ContainerFlags = /* @__PURE__ */ ((ContainerFlags2) => { + ContainerFlags2[ContainerFlags2["None"] = 0] = "None"; + ContainerFlags2[ContainerFlags2["IsContainer"] = 1] = "IsContainer"; + ContainerFlags2[ContainerFlags2["IsBlockScopedContainer"] = 2] = "IsBlockScopedContainer"; + ContainerFlags2[ContainerFlags2["IsControlFlowContainer"] = 4] = "IsControlFlowContainer"; + ContainerFlags2[ContainerFlags2["IsFunctionLike"] = 8] = "IsFunctionLike"; + ContainerFlags2[ContainerFlags2["IsFunctionExpression"] = 16] = "IsFunctionExpression"; + ContainerFlags2[ContainerFlags2["HasLocals"] = 32] = "HasLocals"; + ContainerFlags2[ContainerFlags2["IsInterface"] = 64] = "IsInterface"; + ContainerFlags2[ContainerFlags2["IsObjectLiteralOrClassExpressionMethodOrAccessor"] = 128] = "IsObjectLiteralOrClassExpressionMethodOrAccessor"; + return ContainerFlags2; + })(ContainerFlags || {}); binder = /* @__PURE__ */ createBinder(); } }); @@ -44331,7 +44691,7 @@ ${lanes.join("\n")} symbol.exports.forEach(visitSymbol); } forEach(symbol.declarations, (d) => { - if (d.type && d.type.kind === 185 /* TypeQuery */) { + if (d.type && d.type.kind === 186 /* TypeQuery */) { const query = d.type; const entity = getResolvedSymbol(getFirstIdentifier2(query.exprName)); visitSymbol(entity); @@ -44746,7 +45106,7 @@ ${lanes.join("\n")} if (originalExportSymbol === d.symbol) return topNamespace.parent.parent; function getTopNamespace(namespaceDeclaration) { - while (namespaceDeclaration.flags & 4 /* NestedNamespace */) { + while (namespaceDeclaration.flags & 8 /* NestedNamespace */) { namespaceDeclaration = namespaceDeclaration.parent; } return namespaceDeclaration; @@ -44776,7 +45136,9 @@ ${lanes.join("\n")} for (const { ending, value } of candidates) { if (value.length >= prefix.length + suffix.length && startsWith(value, prefix) && endsWith(value, suffix) && validateEnding({ ending, value })) { const matchedStar = value.substring(prefix.length, value.length - suffix.length); - return pathIsRelative(matchedStar) ? void 0 : key.replace("*", matchedStar); + if (!pathIsRelative(matchedStar)) { + return key.replace("*", matchedStar); + } } } } else if (some(candidates, (c) => c.ending !== 0 /* Minimal */ && pattern === c.value) || some(candidates, (c) => c.ending === 0 /* Minimal */ && pattern === c.value && validateEnding(c))) { @@ -44848,7 +45210,7 @@ ${lanes.join("\n")} for (const key of getOwnKeys(exports)) { if (key === "default" || conditions.indexOf(key) >= 0 || isApplicableVersionedTypesKey(conditions, key)) { const subTarget = exports[key]; - const result = tryGetModuleNameFromExports(options, targetFilePath, packageDirectory, packageName, subTarget, conditions); + const result = tryGetModuleNameFromExports(options, targetFilePath, packageDirectory, packageName, subTarget, conditions, mode); if (result) { return result; } @@ -45163,6 +45525,7 @@ ${lanes.join("\n")} var moduleKind = getEmitModuleKind(compilerOptions); var legacyDecorators = !!compilerOptions.experimentalDecorators; var useDefineForClassFields = getUseDefineForClassFields(compilerOptions); + var emitStandardClassFields = getEmitStandardClassFields(compilerOptions); var allowSyntheticDefaultImports = getAllowSyntheticDefaultImports(compilerOptions); var strictNullChecks = getStrictOptionValue(compilerOptions, "strictNullChecks"); var strictFunctionTypes = getStrictOptionValue(compilerOptions, "strictFunctionTypes"); @@ -45190,6 +45553,10 @@ ${lanes.join("\n")} var isolatedModulesLikeFlagName = compilerOptions.verbatimModuleSyntax ? "verbatimModuleSyntax" : "isolatedModules"; var canCollectSymbolAliasAccessabilityData = !compilerOptions.verbatimModuleSyntax || !!compilerOptions.importsNotUsedAsValues; var apparentArgumentCount; + var lastGetCombinedNodeFlagsNode; + var lastGetCombinedNodeFlagsResult = 0 /* None */; + var lastGetCombinedModifierFlagsNode; + var lastGetCombinedModifierFlagsResult = 0 /* None */; const checker = { getNodeCount: () => reduceLeft(host.getSourceFiles(), (n, s) => n + s.nodeCount, 0), getIdentifierCount: () => reduceLeft(host.getSourceFiles(), (n, s) => n + s.identifierCount, 0), @@ -45249,7 +45616,7 @@ ${lanes.join("\n")} return node ? getTypeFromTypeNode(node) : errorType; }, getParameterType: getTypeAtPosition, - getParameterIdentifierNameAtPosition, + getParameterIdentifierInfoAtPosition, getPromisedTypeOfPromise, getAwaitedType: (type) => getAwaitedType(type), getReturnTypeOfSignature, @@ -45367,13 +45734,24 @@ ${lanes.join("\n")} getTypeOfPropertyOfContextualType, getFullyQualifiedName, getResolvedSignature: (node, candidatesOutArray, argumentCount) => getResolvedSignatureWorker(node, candidatesOutArray, argumentCount, 0 /* Normal */), - getResolvedSignatureForStringLiteralCompletions: (call, editingArgument, candidatesOutArray) => runWithInferenceBlockedFromSourceNode(editingArgument, () => getResolvedSignatureWorker( - call, - candidatesOutArray, - /*argumentCount*/ - void 0, - 32 /* IsForStringLiteralArgumentCompletions */ - )), + getResolvedSignatureForStringLiteralCompletions: (call, editingArgument, candidatesOutArray, checkMode = 32 /* IsForStringLiteralArgumentCompletions */) => { + if (checkMode & 32 /* IsForStringLiteralArgumentCompletions */) { + return runWithInferenceBlockedFromSourceNode(editingArgument, () => getResolvedSignatureWorker( + call, + candidatesOutArray, + /*argumentCount*/ + void 0, + checkMode & ~32 /* IsForStringLiteralArgumentCompletions */ + )); + } + return runWithoutResolvedSignatureCaching(editingArgument, () => getResolvedSignatureWorker( + call, + candidatesOutArray, + /*argumentCount*/ + void 0, + checkMode & ~32 /* IsForStringLiteralArgumentCompletions */ + )); + }, getResolvedSignatureForSignatureHelp: (node, candidatesOutArray, argumentCount) => runWithoutResolvedSignatureCaching(node, () => getResolvedSignatureWorker(node, candidatesOutArray, argumentCount, 16 /* IsForSignatureHelp */)), getExpandedParameters, hasEffectiveRestParameter, @@ -45547,7 +45925,7 @@ ${lanes.join("\n")} Debug.assert(!!(getNodeLinks(file).flags & 1 /* TypeChecked */)); diagnostics2 = addRange(diagnostics2, suggestionDiagnostics.getDiagnostics(file.fileName)); checkUnusedIdentifiers(getPotentiallyUnusedIdentifiers(file), (containingNode, kind, diag2) => { - if (!containsParseError(containingNode) && !unusedIsError(kind, !!(containingNode.flags & 16777216 /* Ambient */))) { + if (!containsParseError(containingNode) && !unusedIsError(kind, !!(containingNode.flags & 33554432 /* Ambient */))) { (diagnostics2 || (diagnostics2 = [])).push({ ...diag2, category: 2 /* Suggestion */ }); } }); @@ -45573,14 +45951,19 @@ ${lanes.join("\n")} typeHasCallOrConstructSignatures }; function runWithoutResolvedSignatureCaching(node, fn) { - const containingCall = findAncestor(node, isCallLikeExpression); - const containingCallResolvedSignature = containingCall && getNodeLinks(containingCall).resolvedSignature; - if (containingCall) { - getNodeLinks(containingCall).resolvedSignature = void 0; + const cachedSignatures = []; + while (node) { + if (isCallLikeExpression(node)) { + const nodeLinks2 = getNodeLinks(node); + const resolvedSignature = nodeLinks2.resolvedSignature; + cachedSignatures.push([nodeLinks2, resolvedSignature]); + nodeLinks2.resolvedSignature = void 0; + } + node = node.parent; } const result = fn(); - if (containingCall) { - getNodeLinks(containingCall).resolvedSignature = containingCallResolvedSignature; + for (const [nodeLinks2, resolvedSignature] of cachedSignatures) { + nodeLinks2.resolvedSignature = resolvedSignature; } return result; } @@ -45886,7 +46269,7 @@ ${lanes.join("\n")} }; var amalgamatedDuplicates; var reverseMappedCache = /* @__PURE__ */ new Map(); - var inInferTypeForHomomorphicMappedType = false; + var homomorphicMappedTypeInferenceStack = []; var ambientModulesCache; var patternAmbientModules; var patternAmbientModuleAugmentations; @@ -45927,6 +46310,8 @@ ${lanes.join("\n")} var deferredGlobalImportMetaType; var deferredGlobalImportMetaExpressionType; var deferredGlobalImportCallOptionsType; + var deferredGlobalDisposableType; + var deferredGlobalAsyncDisposableType; var deferredGlobalExtractSymbol; var deferredGlobalOmitSymbol; var deferredGlobalAwaitedSymbol; @@ -46098,14 +46483,14 @@ ${lanes.join("\n")} } } function errorSkippedOn(key, location, message, ...args) { - const diagnostic = error(location, message, ...args); + const diagnostic = error2(location, message, ...args); diagnostic.skippedOn = key; return diagnostic; } function createError(location, message, ...args) { return location ? createDiagnosticForNode(location, message, ...args) : createCompilerDiagnostic(message, ...args); } - function error(location, message, ...args) { + function error2(location, message, ...args) { const diagnostic = createError(location, message, ...args); diagnostics.add(diagnostic); return diagnostic; @@ -46129,7 +46514,7 @@ ${lanes.join("\n")} addErrorOrSuggestion(isError, "message" in message ? createDiagnosticForNode(location, message, ...args) : createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(location), location, message)); } function errorAndMaybeSuggestAwait(location, maybeMissingAwait, message, ...args) { - const diagnostic = error(location, message, ...args); + const diagnostic = error2(location, message, ...args); if (maybeMissingAwait) { const related = createDiagnosticForNode(location, Diagnostics.Did_you_forget_to_use_await); addRelatedInfo(diagnostic, related); @@ -46155,7 +46540,7 @@ ${lanes.join("\n")} return !!symbol.valueDeclaration && isDeprecatedDeclaration2(symbol.valueDeclaration) || length(symbol.declarations) && every(symbol.declarations, isDeprecatedDeclaration2); } function isDeprecatedDeclaration2(declaration) { - return !!(getCombinedNodeFlags(declaration) & 268435456 /* Deprecated */); + return !!(getCombinedNodeFlagsCached(declaration) & 536870912 /* Deprecated */); } function addDeprecatedSuggestion(location, declarations, deprecatedEntity) { const diagnostic = createDiagnosticForNode(location, Diagnostics._0_is_deprecated, deprecatedEntity); @@ -46275,7 +46660,7 @@ ${lanes.join("\n")} } } else if (target.flags & 1024 /* NamespaceModule */) { if (target !== globalThisSymbol) { - error( + error2( source.declarations && getNameOfDeclaration(source.declarations[0]), Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity, symbolToString(target) @@ -46369,7 +46754,7 @@ ${lanes.join("\n")} if (isGlobalScopeAugmentation(moduleAugmentation)) { mergeSymbolTable(globals, moduleAugmentation.symbol.exports); } else { - const moduleNotFoundError = !(moduleName.parent.parent.flags & 16777216 /* Ambient */) ? Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found : void 0; + const moduleNotFoundError = !(moduleName.parent.parent.flags & 33554432 /* Ambient */) ? Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found : void 0; let mainModule = resolveExternalModuleNameWorker( moduleName, moduleName, @@ -46405,7 +46790,7 @@ ${lanes.join("\n")} mergeSymbol(mainModule, moduleAugmentation.symbol); } } else { - error(moduleName, Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity, moduleName.text); + error2(moduleName, Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity, moduleName.text); } } } @@ -46433,7 +46818,7 @@ ${lanes.join("\n")} return nodeLinks[nodeId] || (nodeLinks[nodeId] = new NodeLinks()); } function isGlobalSourceFile(node) { - return node.kind === 311 /* SourceFile */ && !isExternalOrCommonJsModule(node); + return node.kind === 312 /* SourceFile */ && !isExternalOrCommonJsModule(node); } function getSymbol2(symbols, name, meaning) { if (meaning) { @@ -46444,7 +46829,7 @@ ${lanes.join("\n")} return symbol; } if (symbol.flags & 2097152 /* Alias */) { - const targetFlags = getAllSymbolFlags(symbol); + const targetFlags = getSymbolFlags(symbol); if (targetFlags & meaning) { return symbol; } @@ -46467,7 +46852,7 @@ ${lanes.join("\n")} const useFile = getSourceFileOfNode(usage); const declContainer = getEnclosingBlockScopeContainer(declaration); if (declarationFile !== useFile) { - if (moduleKind && (declarationFile.externalModuleIndicator || useFile.externalModuleIndicator) || !outFile(compilerOptions) || isInTypeQuery(usage) || declaration.flags & 16777216 /* Ambient */) { + if (moduleKind && (declarationFile.externalModuleIndicator || useFile.externalModuleIndicator) || !outFile(compilerOptions) || isInTypeQuery(usage) || declaration.flags & 33554432 /* Ambient */) { return true; } if (isUsedInFunctionOrInstanceProperty(usage, declaration)) { @@ -46477,13 +46862,13 @@ ${lanes.join("\n")} return sourceFiles.indexOf(declarationFile) <= sourceFiles.indexOf(useFile); } if (declaration.pos <= usage.pos && !(isPropertyDeclaration(declaration) && isThisProperty(usage.parent) && !declaration.initializer && !declaration.exclamationToken)) { - if (declaration.kind === 207 /* BindingElement */) { - const errorBindingElement = getAncestor(usage, 207 /* BindingElement */); + if (declaration.kind === 208 /* BindingElement */) { + const errorBindingElement = getAncestor(usage, 208 /* BindingElement */); if (errorBindingElement) { return findAncestor(errorBindingElement, isBindingElement) !== findAncestor(declaration, isBindingElement) || declaration.pos < errorBindingElement.pos; } - return isBlockScopedNameDeclaredBeforeUse(getAncestor(declaration, 259 /* VariableDeclaration */), usage); - } else if (declaration.kind === 259 /* VariableDeclaration */) { + return isBlockScopedNameDeclaredBeforeUse(getAncestor(declaration, 260 /* VariableDeclaration */), usage); + } else if (declaration.kind === 260 /* VariableDeclaration */) { return !isImmediatelyUsedInInitializerOfBlockScopedVariable(declaration, usage); } else if (isClassDeclaration(declaration)) { return !findAncestor(usage, (n) => isComputedPropertyName(n) && n.parent.parent === declaration); @@ -46495,21 +46880,21 @@ ${lanes.join("\n")} false ); } else if (isParameterPropertyDeclaration(declaration, declaration.parent)) { - return !(getEmitScriptTarget(compilerOptions) === 99 /* ESNext */ && useDefineForClassFields && getContainingClass(declaration) === getContainingClass(usage) && isUsedInFunctionOrInstanceProperty(usage, declaration)); + return !(emitStandardClassFields && getContainingClass(declaration) === getContainingClass(usage) && isUsedInFunctionOrInstanceProperty(usage, declaration)); } return true; } - if (usage.parent.kind === 280 /* ExportSpecifier */ || usage.parent.kind === 276 /* ExportAssignment */ && usage.parent.isExportEquals) { + if (usage.parent.kind === 281 /* ExportSpecifier */ || usage.parent.kind === 277 /* ExportAssignment */ && usage.parent.isExportEquals) { return true; } - if (usage.kind === 276 /* ExportAssignment */ && usage.isExportEquals) { + if (usage.kind === 277 /* ExportAssignment */ && usage.isExportEquals) { return true; } - if (!!(usage.flags & 8388608 /* JSDoc */) || isInTypeQuery(usage) || isInAmbientOrTypeNode(usage)) { + if (!!(usage.flags & 16777216 /* JSDoc */) || isInTypeQuery(usage) || isInAmbientOrTypeNode(usage)) { return true; } if (isUsedInFunctionOrInstanceProperty(usage, declaration)) { - if (getEmitScriptTarget(compilerOptions) >= 9 /* ES2022 */ && useDefineForClassFields && getContainingClass(declaration) && (isPropertyDeclaration(declaration) || isParameterPropertyDeclaration(declaration, declaration.parent))) { + if (emitStandardClassFields && getContainingClass(declaration) && (isPropertyDeclaration(declaration) || isParameterPropertyDeclaration(declaration, declaration.parent))) { return !isPropertyImmediatelyReferencedWithinDeclaration( declaration, usage, @@ -46523,9 +46908,9 @@ ${lanes.join("\n")} return false; function isImmediatelyUsedInInitializerOfBlockScopedVariable(declaration2, usage2) { switch (declaration2.parent.parent.kind) { - case 242 /* VariableStatement */: - case 247 /* ForStatement */: - case 249 /* ForOfStatement */: + case 243 /* VariableStatement */: + case 248 /* ForStatement */: + case 250 /* ForOfStatement */: if (isSameScopeDescendentOf(usage2, declaration2, declContainer)) { return true; } @@ -46550,7 +46935,7 @@ ${lanes.join("\n")} const initializerOfProperty = propertyDeclaration.initializer === current; if (initializerOfProperty) { if (isStatic(current.parent)) { - if (declaration2.kind === 173 /* MethodDeclaration */) { + if (declaration2.kind === 174 /* MethodDeclaration */) { return true; } if (isPropertyDeclaration(declaration2) && getContainingClass(usage2) === getContainingClass(declaration2)) { @@ -46564,7 +46949,7 @@ ${lanes.join("\n")} } } } else { - const isDeclarationInstanceProperty = declaration2.kind === 171 /* PropertyDeclaration */ && !isStatic(declaration2); + const isDeclarationInstanceProperty = declaration2.kind === 172 /* PropertyDeclaration */ && !isStatic(declaration2); if (!isDeclarationInstanceProperty || getContainingClass(usage2) !== getContainingClass(declaration2)) { return true; } @@ -46583,15 +46968,15 @@ ${lanes.join("\n")} return "quit"; } switch (node.kind) { - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return true; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return stopAtAnyPropertyDeclaration && (isPropertyDeclaration(declaration2) && node.parent === declaration2.parent || isParameterPropertyDeclaration(declaration2, declaration2.parent) && node.parent === declaration2.parent.parent) ? "quit" : true; - case 240 /* Block */: + case 241 /* Block */: switch (node.parent.kind) { - case 176 /* GetAccessor */: - case 173 /* MethodDeclaration */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 174 /* MethodDeclaration */: + case 178 /* SetAccessor */: return true; default: return false; @@ -46621,19 +47006,19 @@ ${lanes.join("\n")} } function requiresScopeChangeWorker(node) { switch (node.kind) { - case 218 /* ArrowFunction */: - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: - case 175 /* Constructor */: + case 219 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 176 /* Constructor */: return false; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 302 /* PropertyAssignment */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 303 /* PropertyAssignment */: return requiresScopeChangeWorker(node.name); - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: if (hasStaticModifier(node)) { - return target < 99 /* ESNext */ || !useDefineForClassFields; + return !emitStandardClassFields; } return requiresScopeChangeWorker(node.name); default: @@ -46672,7 +47057,7 @@ ${lanes.join("\n")} if (name === "const" && isConstAssertion(location)) { return void 0; } - if (isModuleDeclaration(location) && lastLocation && location.name === lastLocation) { + if (isModuleOrEnumDeclaration(location) && lastLocation && location.name === lastLocation) { lastLocation = location; location = location.parent; } @@ -46680,17 +47065,17 @@ ${lanes.join("\n")} if (result = lookup(location.locals, name, meaning)) { let useResult = true; if (isFunctionLike(location) && lastLocation && lastLocation !== location.body) { - if (meaning & result.flags & 788968 /* Type */ && lastLocation.kind !== 326 /* JSDoc */) { - useResult = result.flags & 262144 /* TypeParameter */ ? lastLocation === location.type || lastLocation.kind === 168 /* Parameter */ || lastLocation.kind === 347 /* JSDocParameterTag */ || lastLocation.kind === 348 /* JSDocReturnTag */ || lastLocation.kind === 167 /* TypeParameter */ : false; + if (meaning & result.flags & 788968 /* Type */ && lastLocation.kind !== 327 /* JSDoc */) { + useResult = result.flags & 262144 /* TypeParameter */ ? lastLocation === location.type || lastLocation.kind === 169 /* Parameter */ || lastLocation.kind === 348 /* JSDocParameterTag */ || lastLocation.kind === 349 /* JSDocReturnTag */ || lastLocation.kind === 168 /* TypeParameter */ : false; } if (meaning & result.flags & 3 /* Variable */) { if (useOuterVariableScopeInParameter(result, location, lastLocation)) { useResult = false; } else if (result.flags & 1 /* FunctionScopedVariable */) { - useResult = lastLocation.kind === 168 /* Parameter */ || lastLocation === location.type && !!findAncestor(result.valueDeclaration, isParameter); + useResult = lastLocation.kind === 169 /* Parameter */ || lastLocation === location.type && !!findAncestor(result.valueDeclaration, isParameter); } } - } else if (location.kind === 193 /* ConditionalType */) { + } else if (location.kind === 194 /* ConditionalType */) { useResult = lastLocation === location.trueType; } if (useResult) { @@ -46702,13 +47087,13 @@ ${lanes.join("\n")} } withinDeferredContext = withinDeferredContext || getIsDeferredContext(location, lastLocation); switch (location.kind) { - case 311 /* SourceFile */: + case 312 /* SourceFile */: if (!isExternalOrCommonJsModule(location)) break; isInExternalModule = true; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: const moduleExports = ((_a = getSymbolOfDeclaration(location)) == null ? void 0 : _a.exports) || emptySymbols; - if (location.kind === 311 /* SourceFile */ || isModuleDeclaration(location) && location.flags & 16777216 /* Ambient */ && !isGlobalScopeAugmentation(location)) { + if (location.kind === 312 /* SourceFile */ || isModuleDeclaration(location) && location.flags & 33554432 /* Ambient */ && !isGlobalScopeAugmentation(location)) { if (result = moduleExports.get("default" /* Default */)) { const localSymbol = getLocalSymbolForExportDefault(result); if (localSymbol && result.flags & meaning && localSymbol.escapedName === name) { @@ -46717,7 +47102,7 @@ ${lanes.join("\n")} result = void 0; } const moduleExport = moduleExports.get(name); - if (moduleExport && moduleExport.flags === 2097152 /* Alias */ && (getDeclarationOfKind(moduleExport, 280 /* ExportSpecifier */) || getDeclarationOfKind(moduleExport, 279 /* NamespaceExport */))) { + if (moduleExport && moduleExport.flags === 2097152 /* Alias */ && (getDeclarationOfKind(moduleExport, 281 /* ExportSpecifier */) || getDeclarationOfKind(moduleExport, 280 /* NamespaceExport */))) { break; } } @@ -46729,10 +47114,10 @@ ${lanes.join("\n")} } } break; - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: if (result = lookup(((_c = getSymbolOfDeclaration(location)) == null ? void 0 : _c.exports) || emptySymbols, name, meaning & 8 /* EnumMember */)) { - if (nameNotFoundMessage && getIsolatedModules(compilerOptions) && !(location.flags & 16777216 /* Ambient */) && getSourceFileOfNode(location) !== getSourceFileOfNode(result.valueDeclaration)) { - error( + if (nameNotFoundMessage && getIsolatedModules(compilerOptions) && !(location.flags & 33554432 /* Ambient */) && getSourceFileOfNode(location) !== getSourceFileOfNode(result.valueDeclaration)) { + error2( errorLocation, Diagnostics.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead, unescapeLeadingUnderscores(name), @@ -46743,7 +47128,7 @@ ${lanes.join("\n")} break loop; } break; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: if (!isStatic(location)) { const ctor = findConstructorDeclaration(location.parent); if (ctor && ctor.locals) { @@ -46754,9 +47139,9 @@ ${lanes.join("\n")} } } break; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: if (result = lookup(getSymbolOfDeclaration(location).members || emptySymbols, name, meaning & 788968 /* Type */)) { if (!isTypeParameterSymbolDeclaredInContainer(result, location)) { result = void 0; @@ -46764,7 +47149,7 @@ ${lanes.join("\n")} } if (lastLocation && isStatic(lastLocation)) { if (nameNotFoundMessage) { - error(errorLocation, Diagnostics.Static_members_cannot_reference_class_type_parameters); + error2(errorLocation, Diagnostics.Static_members_cannot_reference_class_type_parameters); } return void 0; } @@ -46778,43 +47163,43 @@ ${lanes.join("\n")} } } break; - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: if (lastLocation === location.expression && location.parent.token === 96 /* ExtendsKeyword */) { const container = location.parent.parent; if (isClassLike(container) && (result = lookup(getSymbolOfDeclaration(container).members, name, meaning & 788968 /* Type */))) { if (nameNotFoundMessage) { - error(errorLocation, Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters); + error2(errorLocation, Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters); } return void 0; } } break; - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: grandparent = location.parent.parent; - if (isClassLike(grandparent) || grandparent.kind === 263 /* InterfaceDeclaration */) { + if (isClassLike(grandparent) || grandparent.kind === 264 /* InterfaceDeclaration */) { if (result = lookup(getSymbolOfDeclaration(grandparent).members, name, meaning & 788968 /* Type */)) { if (nameNotFoundMessage) { - error(errorLocation, Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type); + error2(errorLocation, Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type); } return void 0; } } break; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: if (getEmitScriptTarget(compilerOptions) >= 2 /* ES2015 */) { break; } - case 173 /* MethodDeclaration */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 261 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 262 /* FunctionDeclaration */: if (meaning & 3 /* Variable */ && name === "arguments") { result = argumentsSymbol; break loop; } break; - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: if (meaning & 3 /* Variable */ && name === "arguments") { result = argumentsSymbol; break loop; @@ -46827,37 +47212,37 @@ ${lanes.join("\n")} } } break; - case 169 /* Decorator */: - if (location.parent && location.parent.kind === 168 /* Parameter */) { + case 170 /* Decorator */: + if (location.parent && location.parent.kind === 169 /* Parameter */) { location = location.parent; } - if (location.parent && (isClassElement(location.parent) || location.parent.kind === 262 /* ClassDeclaration */)) { + if (location.parent && (isClassElement(location.parent) || location.parent.kind === 263 /* ClassDeclaration */)) { location = location.parent; } break; - case 352 /* JSDocTypedefTag */: - case 344 /* JSDocCallbackTag */: - case 346 /* JSDocEnumTag */: + case 353 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: + case 347 /* JSDocEnumTag */: const root = getJSDocRoot(location); if (root) { location = root.parent; } break; - case 168 /* Parameter */: + case 169 /* Parameter */: if (lastLocation && (lastLocation === location.initializer || lastLocation === location.name && isBindingPattern(lastLocation))) { if (!associatedDeclarationForContainingInitializerOrBindingName) { associatedDeclarationForContainingInitializerOrBindingName = location; } } break; - case 207 /* BindingElement */: + case 208 /* BindingElement */: if (lastLocation && (lastLocation === location.initializer || lastLocation === location.name && isBindingPattern(lastLocation))) { if (isParameterDeclaration(location) && !associatedDeclarationForContainingInitializerOrBindingName) { associatedDeclarationForContainingInitializerOrBindingName = location; } } break; - case 194 /* InferType */: + case 195 /* InferType */: if (meaning & 262144 /* TypeParameter */) { const parameterName = location.typeParameter.name; if (parameterName && name === parameterName.escapedText) { @@ -46866,7 +47251,7 @@ ${lanes.join("\n")} } } break; - case 280 /* ExportSpecifier */: + case 281 /* ExportSpecifier */: if (lastLocation && lastLocation === location.propertyName && location.parent.parent.moduleSpecifier) { location = location.parent.parent.parent; } @@ -46904,8 +47289,8 @@ ${lanes.join("\n")} } } function checkAndReportErrorForInvalidInitializer() { - if (propertyWithInvalidInitializer && !(useDefineForClassFields && getEmitScriptTarget(compilerOptions) >= 9 /* ES2022 */)) { - error( + if (propertyWithInvalidInitializer && !emitStandardClassFields) { + error2( errorLocation, errorLocation && propertyWithInvalidInitializer.type && textRangeContainsPositionInclusive(propertyWithInvalidInitializer.type, errorLocation.pos) ? Diagnostics.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor : Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor, declarationNameToString(propertyWithInvalidInitializer.name), @@ -46918,14 +47303,14 @@ ${lanes.join("\n")} if (!result) { if (nameNotFoundMessage) { addLazyDiagnostic(() => { - if (!errorLocation || errorLocation.parent.kind !== 330 /* JSDocLink */ && !checkAndReportErrorForMissingPrefix(errorLocation, name, nameArg) && // TODO: GH#18217 + if (!errorLocation || errorLocation.parent.kind !== 331 /* JSDocLink */ && !checkAndReportErrorForMissingPrefix(errorLocation, name, nameArg) && // TODO: GH#18217 !checkAndReportErrorForInvalidInitializer() && !checkAndReportErrorForExtendingInterface(errorLocation) && !checkAndReportErrorForUsingTypeAsNamespace(errorLocation, name, meaning) && !checkAndReportErrorForExportingPrimitiveType(errorLocation, name) && !checkAndReportErrorForUsingNamespaceAsTypeOrValue(errorLocation, name, meaning) && !checkAndReportErrorForUsingTypeAsValue(errorLocation, name, meaning) && !checkAndReportErrorForUsingValueAsType(errorLocation, name, meaning)) { let suggestion; let suggestedLib; if (nameArg) { suggestedLib = getSuggestedLibForNonExistentName(nameArg); if (suggestedLib) { - error(errorLocation, nameNotFoundMessage, diagnosticName(nameArg), suggestedLib); + error2(errorLocation, nameNotFoundMessage, diagnosticName(nameArg), suggestedLib); } } if (!suggestedLib && getSpellingSuggestions && suggestionCount < maximumSuggestionCount) { @@ -46954,7 +47339,7 @@ ${lanes.join("\n")} } } if (!suggestion && !suggestedLib && nameArg) { - error(errorLocation, nameNotFoundMessage, diagnosticName(nameArg)); + error2(errorLocation, nameNotFoundMessage, diagnosticName(nameArg)); } suggestionCount++; } @@ -46972,7 +47357,7 @@ ${lanes.join("\n")} checkResolvedBlockScopedVariable(exportOrLocalSymbol, errorLocation); } } - if (result && isInExternalModule && (meaning & 111551 /* Value */) === 111551 /* Value */ && !(originalLocation.flags & 8388608 /* JSDoc */)) { + if (result && isInExternalModule && (meaning & 111551 /* Value */) === 111551 /* Value */ && !(originalLocation.flags & 16777216 /* JSDoc */)) { const merged = getMergedSymbol(result); if (length(merged.declarations) && every(merged.declarations, (d) => isNamespaceExportDeclaration(d) || isSourceFile(d) && !!d.symbol.globalExports)) { errorOrSuggestion(!compilerOptions.allowUmdGlobalAccess, errorLocation, Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead, unescapeLeadingUnderscores(name)); @@ -46982,18 +47367,18 @@ ${lanes.join("\n")} const candidate = getMergedSymbol(getLateBoundSymbol(result)); const root = getRootDeclaration(associatedDeclarationForContainingInitializerOrBindingName); if (candidate === getSymbolOfDeclaration(associatedDeclarationForContainingInitializerOrBindingName)) { - error(errorLocation, Diagnostics.Parameter_0_cannot_reference_itself, declarationNameToString(associatedDeclarationForContainingInitializerOrBindingName.name)); + error2(errorLocation, Diagnostics.Parameter_0_cannot_reference_itself, declarationNameToString(associatedDeclarationForContainingInitializerOrBindingName.name)); } else if (candidate.valueDeclaration && candidate.valueDeclaration.pos > associatedDeclarationForContainingInitializerOrBindingName.pos && root.parent.locals && lookup(root.parent.locals, candidate.escapedName, meaning) === candidate) { - error(errorLocation, Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it, declarationNameToString(associatedDeclarationForContainingInitializerOrBindingName.name), declarationNameToString(errorLocation)); + error2(errorLocation, Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it, declarationNameToString(associatedDeclarationForContainingInitializerOrBindingName.name), declarationNameToString(errorLocation)); } } if (result && errorLocation && meaning & 111551 /* Value */ && result.flags & 2097152 /* Alias */ && !(result.flags & 111551 /* Value */) && !isValidTypeOnlyAliasUseSite(errorLocation)) { const typeOnlyDeclaration = getTypeOnlyAliasDeclaration(result, 111551 /* Value */); if (typeOnlyDeclaration) { - const message = typeOnlyDeclaration.kind === 280 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 277 /* ExportDeclaration */ || typeOnlyDeclaration.kind === 279 /* NamespaceExport */ ? Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type : Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type; + const message = typeOnlyDeclaration.kind === 281 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 278 /* ExportDeclaration */ || typeOnlyDeclaration.kind === 280 /* NamespaceExport */ ? Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type : Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type; const unescapedName = unescapeLeadingUnderscores(name); addTypeOnlyDeclarationRelatedInfo( - error(errorLocation, message, unescapedName), + error2(errorLocation, message, unescapedName), typeOnlyDeclaration, unescapedName ); @@ -47010,14 +47395,14 @@ ${lanes.join("\n")} diagnostic, createDiagnosticForNode( typeOnlyDeclaration, - typeOnlyDeclaration.kind === 280 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 277 /* ExportDeclaration */ || typeOnlyDeclaration.kind === 279 /* NamespaceExport */ ? Diagnostics._0_was_exported_here : Diagnostics._0_was_imported_here, + typeOnlyDeclaration.kind === 281 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 278 /* ExportDeclaration */ || typeOnlyDeclaration.kind === 280 /* NamespaceExport */ ? Diagnostics._0_was_exported_here : Diagnostics._0_was_imported_here, unescapedName ) ); } function getIsDeferredContext(location, lastLocation) { - if (location.kind !== 218 /* ArrowFunction */ && location.kind !== 217 /* FunctionExpression */) { - return isTypeQueryNode(location) || (isFunctionLikeDeclaration(location) || location.kind === 171 /* PropertyDeclaration */ && !isStatic(location)) && (!lastLocation || lastLocation !== location.name); + if (location.kind !== 219 /* ArrowFunction */ && location.kind !== 218 /* FunctionExpression */) { + return isTypeQueryNode(location) || (isFunctionLikeDeclaration(location) || location.kind === 172 /* PropertyDeclaration */ && !isStatic(location)) && (!lastLocation || lastLocation !== location.name); } if (lastLocation && lastLocation === location.name) { return false; @@ -47029,12 +47414,12 @@ ${lanes.join("\n")} } function isSelfReferenceLocation(node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 266 /* ModuleDeclaration */: + case 262 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 267 /* ModuleDeclaration */: return true; default: return false; @@ -47046,7 +47431,7 @@ ${lanes.join("\n")} function isTypeParameterSymbolDeclaredInContainer(symbol, container) { if (symbol.declarations) { for (const decl of symbol.declarations) { - if (decl.kind === 167 /* TypeParameter */) { + if (decl.kind === 168 /* TypeParameter */) { const parent2 = isJSDocTemplateTag(decl.parent) ? getJSDocHost(decl.parent) : decl.parent; if (parent2 === container) { return !(isJSDocTemplateTag(decl.parent) && find(decl.parent.parent.tags, isJSDocTypeAlias)); @@ -47076,13 +47461,13 @@ ${lanes.join("\n")} } const constructorType = getTypeOfSymbol(classSymbol); if (getPropertyOfType(constructorType, name)) { - error(errorLocation, Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0, diagnosticName(nameArg), symbolToString(classSymbol)); + error2(errorLocation, Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0, diagnosticName(nameArg), symbolToString(classSymbol)); return true; } if (location === container && !isStatic(location)) { const instanceType = getDeclaredTypeOfSymbol(classSymbol).thisType; if (getPropertyOfType(instanceType, name)) { - error(errorLocation, Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0, diagnosticName(nameArg)); + error2(errorLocation, Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0, diagnosticName(nameArg)); return true; } } @@ -47099,7 +47484,7 @@ ${lanes.join("\n")} /*ignoreErrors*/ true )) { - error(errorLocation, Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements, getTextOfNode(expression)); + error2(errorLocation, Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements, getTextOfNode(expression)); return true; } return false; @@ -47107,9 +47492,9 @@ ${lanes.join("\n")} function getEntityNameForExtendingInterface(node) { switch (node.kind) { case 80 /* Identifier */: - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return node.parent ? getEntityNameForExtendingInterface(node.parent) : void 0; - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: if (isEntityNameExpression(node.expression)) { return node.expression; } @@ -47138,7 +47523,7 @@ ${lanes.join("\n")} const propName = parent2.right.escapedText; const propType = getPropertyOfType(getDeclaredTypeOfSymbol(symbol), propName); if (propType) { - error( + error2( parent2, Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1, unescapeLeadingUnderscores(name), @@ -47147,7 +47532,7 @@ ${lanes.join("\n")} return true; } } - error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here, unescapeLeadingUnderscores(name)); + error2(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here, unescapeLeadingUnderscores(name)); return true; } } @@ -47167,7 +47552,7 @@ ${lanes.join("\n")} false )); if (symbol && !(symbol.flags & 1920 /* Namespace */)) { - error(errorLocation, Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0, unescapeLeadingUnderscores(name)); + error2(errorLocation, Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0, unescapeLeadingUnderscores(name)); return true; } } @@ -47177,8 +47562,8 @@ ${lanes.join("\n")} return name === "any" || name === "string" || name === "number" || name === "boolean" || name === "never" || name === "unknown"; } function checkAndReportErrorForExportingPrimitiveType(errorLocation, name) { - if (isPrimitiveTypeName(name) && errorLocation.parent.kind === 280 /* ExportSpecifier */) { - error(errorLocation, Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module, name); + if (isPrimitiveTypeName(name) && errorLocation.parent.kind === 281 /* ExportSpecifier */) { + error2(errorLocation, Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module, name); return true; } return false; @@ -47187,9 +47572,9 @@ ${lanes.join("\n")} if (meaning & 111551 /* Value */) { if (isPrimitiveTypeName(name)) { if (isExtendedByInterface(errorLocation)) { - error(errorLocation, Diagnostics.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes, unescapeLeadingUnderscores(name)); + error2(errorLocation, Diagnostics.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes, unescapeLeadingUnderscores(name)); } else { - error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here, unescapeLeadingUnderscores(name)); + error2(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here, unescapeLeadingUnderscores(name)); } return true; } @@ -47204,15 +47589,15 @@ ${lanes.join("\n")} /*isUse*/ false )); - const allFlags = symbol && getAllSymbolFlags(symbol); + const allFlags = symbol && getSymbolFlags(symbol); if (symbol && allFlags !== void 0 && !(allFlags & 111551 /* Value */)) { const rawName = unescapeLeadingUnderscores(name); if (isES2015OrLaterConstructorName(name)) { - error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later, rawName); + error2(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later, rawName); } else if (maybeMappedType(errorLocation, symbol)) { - error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0, rawName, rawName === "K" ? "P" : "K"); + error2(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0, rawName, rawName === "K" ? "P" : "K"); } else { - error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here, rawName); + error2(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here, rawName); } return true; } @@ -47268,7 +47653,7 @@ ${lanes.join("\n")} false )); if (symbol) { - error( + error2( errorLocation, Diagnostics.Cannot_use_namespace_0_as_a_value, unescapeLeadingUnderscores(name) @@ -47288,7 +47673,7 @@ ${lanes.join("\n")} false )); if (symbol) { - error(errorLocation, Diagnostics.Cannot_use_namespace_0_as_a_type, unescapeLeadingUnderscores(name)); + error2(errorLocation, Diagnostics.Cannot_use_namespace_0_as_a_type, unescapeLeadingUnderscores(name)); return true; } } @@ -47301,19 +47686,19 @@ ${lanes.join("\n")} return; } const declaration = (_a = result.declarations) == null ? void 0 : _a.find( - (d) => isBlockOrCatchScoped(d) || isClassLike(d) || d.kind === 265 /* EnumDeclaration */ + (d) => isBlockOrCatchScoped(d) || isClassLike(d) || d.kind === 266 /* EnumDeclaration */ ); if (declaration === void 0) return Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration"); - if (!(declaration.flags & 16777216 /* Ambient */) && !isBlockScopedNameDeclaredBeforeUse(declaration, errorLocation)) { + if (!(declaration.flags & 33554432 /* Ambient */) && !isBlockScopedNameDeclaredBeforeUse(declaration, errorLocation)) { let diagnosticMessage; const declarationName = declarationNameToString(getNameOfDeclaration(declaration)); if (result.flags & 2 /* BlockScopedVariable */) { - diagnosticMessage = error(errorLocation, Diagnostics.Block_scoped_variable_0_used_before_its_declaration, declarationName); + diagnosticMessage = error2(errorLocation, Diagnostics.Block_scoped_variable_0_used_before_its_declaration, declarationName); } else if (result.flags & 32 /* Class */) { - diagnosticMessage = error(errorLocation, Diagnostics.Class_0_used_before_its_declaration, declarationName); + diagnosticMessage = error2(errorLocation, Diagnostics.Class_0_used_before_its_declaration, declarationName); } else if (result.flags & 256 /* RegularEnum */) { - diagnosticMessage = error(errorLocation, Diagnostics.Enum_0_used_before_its_declaration, declarationName); + diagnosticMessage = error2(errorLocation, Diagnostics.Enum_0_used_before_its_declaration, declarationName); } if (diagnosticMessage) { addRelatedInfo( @@ -47328,13 +47713,13 @@ ${lanes.join("\n")} } function getAnyImportSyntax(node) { switch (node.kind) { - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return node; - case 272 /* ImportClause */: + case 273 /* ImportClause */: return node.parent; - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: return node.parent.parent; - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: return node.parent.parent.parent; default: return void 0; @@ -47344,7 +47729,7 @@ ${lanes.join("\n")} return symbol.declarations && findLast(symbol.declarations, isAliasSymbolDeclaration2); } function isAliasSymbolDeclaration2(node) { - return node.kind === 270 /* ImportEqualsDeclaration */ || node.kind === 269 /* NamespaceExportDeclaration */ || node.kind === 272 /* ImportClause */ && !!node.name || node.kind === 273 /* NamespaceImport */ || node.kind === 279 /* NamespaceExport */ || node.kind === 275 /* ImportSpecifier */ || node.kind === 280 /* ExportSpecifier */ || node.kind === 276 /* ExportAssignment */ && exportAssignmentIsAlias(node) || isBinaryExpression(node) && getAssignmentDeclarationKind(node) === 2 /* ModuleExports */ && exportAssignmentIsAlias(node) || isAccessExpression(node) && isBinaryExpression(node.parent) && node.parent.left === node && node.parent.operatorToken.kind === 64 /* EqualsToken */ && isAliasableOrJsExpression(node.parent.right) || node.kind === 303 /* ShorthandPropertyAssignment */ || node.kind === 302 /* PropertyAssignment */ && isAliasableOrJsExpression(node.initializer) || node.kind === 259 /* VariableDeclaration */ && isVariableDeclarationInitializedToBareOrAccessedRequire(node) || node.kind === 207 /* BindingElement */ && isVariableDeclarationInitializedToBareOrAccessedRequire(node.parent.parent); + return node.kind === 271 /* ImportEqualsDeclaration */ || node.kind === 270 /* NamespaceExportDeclaration */ || node.kind === 273 /* ImportClause */ && !!node.name || node.kind === 274 /* NamespaceImport */ || node.kind === 280 /* NamespaceExport */ || node.kind === 276 /* ImportSpecifier */ || node.kind === 281 /* ExportSpecifier */ || node.kind === 277 /* ExportAssignment */ && exportAssignmentIsAlias(node) || isBinaryExpression(node) && getAssignmentDeclarationKind(node) === 2 /* ModuleExports */ && exportAssignmentIsAlias(node) || isAccessExpression(node) && isBinaryExpression(node.parent) && node.parent.left === node && node.parent.operatorToken.kind === 64 /* EqualsToken */ && isAliasableOrJsExpression(node.parent.right) || node.kind === 304 /* ShorthandPropertyAssignment */ || node.kind === 303 /* PropertyAssignment */ && isAliasableOrJsExpression(node.initializer) || node.kind === 260 /* VariableDeclaration */ && isVariableDeclarationInitializedToBareOrAccessedRequire(node) || node.kind === 208 /* BindingElement */ && isVariableDeclarationInitializedToBareOrAccessedRequire(node.parent.parent); } function isAliasableOrJsExpression(e) { return isAliasableExpression(e) || isFunctionExpression(e) && isJSConstructor(e); @@ -47355,7 +47740,7 @@ ${lanes.join("\n")} const name = getLeftmostAccessExpression(commonJSPropertyAccess.expression).arguments[0]; return isIdentifier(commonJSPropertyAccess.name) ? resolveSymbol(getPropertyOfType(resolveExternalModuleTypeByLiteral(name), commonJSPropertyAccess.name.escapedText)) : void 0; } - if (isVariableDeclaration(node) || node.moduleReference.kind === 282 /* ExternalModuleReference */) { + if (isVariableDeclaration(node) || node.moduleReference.kind === 283 /* ExternalModuleReference */) { const immediate = resolveExternalModuleName( node, getExternalModuleRequireArgument(node) || getExternalModuleImportEqualsDeclarationExpression(node) @@ -47384,11 +47769,11 @@ ${lanes.join("\n")} false ) && !node.isTypeOnly) { const typeOnlyDeclaration = getTypeOnlyAliasDeclaration(getSymbolOfDeclaration(node)); - const isExport = typeOnlyDeclaration.kind === 280 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 277 /* ExportDeclaration */; + const isExport = typeOnlyDeclaration.kind === 281 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 278 /* ExportDeclaration */; const message = isExport ? Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type : Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type; const relatedMessage = isExport ? Diagnostics._0_was_exported_here : Diagnostics._0_was_imported_here; - const name = typeOnlyDeclaration.kind === 277 /* ExportDeclaration */ ? "*" : unescapeLeadingUnderscores(typeOnlyDeclaration.name.escapedText); - addRelatedInfo(error(node.moduleReference, message), createDiagnosticForNode(typeOnlyDeclaration, relatedMessage, name)); + const name = typeOnlyDeclaration.kind === 278 /* ExportDeclaration */ ? "*" : unescapeLeadingUnderscores(typeOnlyDeclaration.name.escapedText); + addRelatedInfo(error2(node.moduleReference, message), createDiagnosticForNode(typeOnlyDeclaration, relatedMessage, name)); } } function resolveExportByName(moduleSymbol, name, sourceNode, dontResolveAlias) { @@ -47493,7 +47878,7 @@ ${lanes.join("\n")} const compilerOptionName = moduleKind >= 5 /* ES2015 */ ? "allowSyntheticDefaultImports" : "esModuleInterop"; const exportEqualsSymbol = moduleSymbol.exports.get("export=" /* ExportEquals */); const exportAssignment = exportEqualsSymbol.valueDeclaration; - const err = error(node.name, Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag, symbolToString(moduleSymbol), compilerOptionName); + const err = error2(node.name, Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag, symbolToString(moduleSymbol), compilerOptionName); if (exportAssignment) { addRelatedInfo(err, createDiagnosticForNode( exportAssignment, @@ -47529,15 +47914,15 @@ ${lanes.join("\n")} } function getModuleSpecifierForImportOrExport(node) { switch (node.kind) { - case 272 /* ImportClause */: + case 273 /* ImportClause */: return node.parent.moduleSpecifier; - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return isExternalModuleReference(node.moduleReference) ? node.moduleReference.expression : void 0; - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: return node.parent.parent.moduleSpecifier; - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: return node.parent.parent.parent.moduleSpecifier; - case 280 /* ExportSpecifier */: + case 281 /* ExportSpecifier */: return node.parent.parent.moduleSpecifier; default: return Debug.assertNever(node); @@ -47546,14 +47931,14 @@ ${lanes.join("\n")} function reportNonDefaultExport(moduleSymbol, node) { var _a, _b, _c; if ((_a = moduleSymbol.exports) == null ? void 0 : _a.has(node.symbol.escapedName)) { - error( + error2( node.name, Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead, symbolToString(moduleSymbol), symbolToString(node.symbol) ); } else { - const diagnostic = error(node.name, Diagnostics.Module_0_has_no_default_export, symbolToString(moduleSymbol)); + const diagnostic = error2(node.name, Diagnostics.Module_0_has_no_default_export, symbolToString(moduleSymbol)); const exportStar = (_b = moduleSymbol.exports) == null ? void 0 : _b.get("__export" /* ExportStar */); if (exportStar) { const defaultExport = (_c = exportStar.declarations) == null ? void 0 : _c.find((decl) => { @@ -47704,7 +48089,7 @@ ${lanes.join("\n")} const suggestion = getSuggestedSymbolForNonexistentModule(name, targetSymbol); if (suggestion !== void 0) { const suggestionName = symbolToString(suggestion); - const diagnostic = error(name, Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2, moduleName, declarationName, suggestionName); + const diagnostic = error2(name, Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2, moduleName, declarationName, suggestionName); if (suggestion.valueDeclaration) { addRelatedInfo( diagnostic, @@ -47713,7 +48098,7 @@ ${lanes.join("\n")} } } else { if ((_a = moduleSymbol.exports) == null ? void 0 : _a.has("default" /* Default */)) { - error( + error2( name, Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead, moduleName, @@ -47731,10 +48116,10 @@ ${lanes.join("\n")} if (localSymbol) { const exportedEqualsSymbol = exports == null ? void 0 : exports.get("export=" /* ExportEquals */); if (exportedEqualsSymbol) { - getSymbolIfSameReference(exportedEqualsSymbol, localSymbol) ? reportInvalidImportEqualsExportMember(node, name, declarationName, moduleName) : error(name, Diagnostics.Module_0_has_no_exported_member_1, moduleName, declarationName); + getSymbolIfSameReference(exportedEqualsSymbol, localSymbol) ? reportInvalidImportEqualsExportMember(node, name, declarationName, moduleName) : error2(name, Diagnostics.Module_0_has_no_exported_member_1, moduleName, declarationName); } else { const exportedSymbol = exports ? find(symbolsToArray(exports), (symbol) => !!getSymbolIfSameReference(symbol, localSymbol)) : void 0; - const diagnostic = exportedSymbol ? error(name, Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2, moduleName, declarationName, symbolToString(exportedSymbol)) : error(name, Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported, moduleName, declarationName); + const diagnostic = exportedSymbol ? error2(name, Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2, moduleName, declarationName, symbolToString(exportedSymbol)) : error2(name, Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported, moduleName, declarationName); if (localSymbol.declarations) { addRelatedInfo( diagnostic, @@ -47743,20 +48128,20 @@ ${lanes.join("\n")} } } } else { - error(name, Diagnostics.Module_0_has_no_exported_member_1, moduleName, declarationName); + error2(name, Diagnostics.Module_0_has_no_exported_member_1, moduleName, declarationName); } } function reportInvalidImportEqualsExportMember(node, name, declarationName, moduleName) { if (moduleKind >= 5 /* ES2015 */) { const message = getESModuleInterop(compilerOptions) ? Diagnostics._0_can_only_be_imported_by_using_a_default_import : Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import; - error(name, message, declarationName); + error2(name, message, declarationName); } else { if (isInJSFile(node)) { const message = getESModuleInterop(compilerOptions) ? Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import : Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import; - error(name, message, declarationName); + error2(name, message, declarationName); } else { const message = getESModuleInterop(compilerOptions) ? Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import : Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import; - error(name, message, declarationName, declarationName, moduleName); + error2(name, message, declarationName, declarationName, moduleName); } } } @@ -47870,26 +48255,26 @@ ${lanes.join("\n")} } function getTargetOfAliasDeclaration(node, dontRecursivelyResolve = false) { switch (node.kind) { - case 270 /* ImportEqualsDeclaration */: - case 259 /* VariableDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 260 /* VariableDeclaration */: return getTargetOfImportEqualsDeclaration(node, dontRecursivelyResolve); - case 272 /* ImportClause */: + case 273 /* ImportClause */: return getTargetOfImportClause(node, dontRecursivelyResolve); - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: return getTargetOfNamespaceImport(node, dontRecursivelyResolve); - case 279 /* NamespaceExport */: + case 280 /* NamespaceExport */: return getTargetOfNamespaceExport(node, dontRecursivelyResolve); - case 275 /* ImportSpecifier */: - case 207 /* BindingElement */: + case 276 /* ImportSpecifier */: + case 208 /* BindingElement */: return getTargetOfImportSpecifier(node, dontRecursivelyResolve); - case 280 /* ExportSpecifier */: + case 281 /* ExportSpecifier */: return getTargetOfExportSpecifier(node, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */, dontRecursivelyResolve); - case 276 /* ExportAssignment */: - case 225 /* BinaryExpression */: + case 277 /* ExportAssignment */: + case 226 /* BinaryExpression */: return getTargetOfExportAssignment(node, dontRecursivelyResolve); - case 269 /* NamespaceExportDeclaration */: + case 270 /* NamespaceExportDeclaration */: return getTargetOfNamespaceExportDeclaration(node, dontRecursivelyResolve); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return resolveEntityName( node.name, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */, @@ -47897,10 +48282,10 @@ ${lanes.join("\n")} true, dontRecursivelyResolve ); - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return getTargetOfAliasLikeExpression(node.initializer, dontRecursivelyResolve); - case 211 /* ElementAccessExpression */: - case 210 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: return getTargetOfAccessExpression(node, dontRecursivelyResolve); default: return Debug.fail(); @@ -47926,7 +48311,7 @@ ${lanes.join("\n")} if (links.aliasTarget === resolvingSymbol) { links.aliasTarget = target || unknownSymbol; } else { - error(node, Diagnostics.Circular_definition_of_import_alias_0, symbolToString(symbol)); + error2(node, Diagnostics.Circular_definition_of_import_alias_0, symbolToString(symbol)); } } else if (links.aliasTarget === resolvingSymbol) { links.aliasTarget = unknownSymbol; @@ -47940,11 +48325,23 @@ ${lanes.join("\n")} } return void 0; } - function getAllSymbolFlags(symbol) { - let flags = symbol.flags; + function getSymbolFlags(symbol, excludeTypeOnlyMeanings, excludeLocalMeanings) { + const typeOnlyDeclaration = excludeTypeOnlyMeanings && getTypeOnlyAliasDeclaration(symbol); + const typeOnlyDeclarationIsExportStar = typeOnlyDeclaration && isExportDeclaration(typeOnlyDeclaration); + const typeOnlyResolution = typeOnlyDeclaration && (typeOnlyDeclarationIsExportStar ? resolveExternalModuleName( + typeOnlyDeclaration.moduleSpecifier, + typeOnlyDeclaration.moduleSpecifier, + /*ignoreErrors*/ + true + ) : resolveAlias(typeOnlyDeclaration.symbol)); + const typeOnlyExportStarTargets = typeOnlyDeclarationIsExportStar && typeOnlyResolution ? getExportsOfModule(typeOnlyResolution) : void 0; + let flags = excludeLocalMeanings ? 0 /* None */ : symbol.flags; let seenSymbols; while (symbol.flags & 2097152 /* Alias */) { - const target = resolveAlias(symbol); + const target = getExportSymbolOfValueSymbolIfExported(resolveAlias(symbol)); + if (!typeOnlyDeclarationIsExportStar && target === typeOnlyResolution || (typeOnlyExportStarTargets == null ? void 0 : typeOnlyExportStarTargets.get(target.escapedName)) === target) { + break; + } if (target === unknownSymbol) { return 67108863 /* All */; } @@ -48001,8 +48398,8 @@ ${lanes.join("\n")} return links.typeOnlyDeclaration || void 0; } if (links.typeOnlyDeclaration) { - const resolved = links.typeOnlyDeclaration.kind === 277 /* ExportDeclaration */ ? resolveSymbol(getExportsOfModule(links.typeOnlyDeclaration.symbol.parent).get(links.typeOnlyExportStarName || symbol.escapedName)) : resolveAlias(links.typeOnlyDeclaration.symbol); - return getAllSymbolFlags(resolved) & include ? links.typeOnlyDeclaration : void 0; + const resolved = links.typeOnlyDeclaration.kind === 278 /* ExportDeclaration */ ? resolveSymbol(getExportsOfModule(links.typeOnlyDeclaration.symbol.parent).get(links.typeOnlyExportStarName || symbol.escapedName)) : resolveAlias(links.typeOnlyDeclaration.symbol); + return getSymbolFlags(resolved) & include ? links.typeOnlyDeclaration : void 0; } return void 0; } @@ -48013,7 +48410,11 @@ ${lanes.join("\n")} const symbol = getSymbolOfDeclaration(node); const target = resolveAlias(symbol); if (target) { - const markAlias = target === unknownSymbol || getAllSymbolFlags(target) & 111551 /* Value */ && !isConstEnumOrConstEnumOnlyModule(target) && !getTypeOnlyAliasDeclaration(symbol, 111551 /* Value */); + const markAlias = target === unknownSymbol || getSymbolFlags( + symbol, + /*excludeTypeOnlyMeanings*/ + true + ) & 111551 /* Value */ && !isConstEnumOrConstEnumOnlyModule(target); if (markAlias) { markAliasSymbolAsReferenced(symbol); } @@ -48028,7 +48429,7 @@ ${lanes.join("\n")} if (!node) return Debug.fail(); if (isInternalModuleImportEqualsDeclaration(node)) { - if (getAllSymbolFlags(resolveSymbol(symbol)) & 111551 /* Value */) { + if (getSymbolFlags(resolveSymbol(symbol)) & 111551 /* Value */) { checkExpressionCached(node.moduleReference); } } @@ -48044,7 +48445,7 @@ ${lanes.join("\n")} if (entityName.kind === 80 /* Identifier */ && isRightSideOfQualifiedNameOrPropertyAccess(entityName)) { entityName = entityName.parent; } - if (entityName.kind === 80 /* Identifier */ || entityName.parent.kind === 165 /* QualifiedName */) { + if (entityName.kind === 80 /* Identifier */ || entityName.parent.kind === 166 /* QualifiedName */) { return resolveEntityName( entityName, 1920 /* Namespace */, @@ -48053,7 +48454,7 @@ ${lanes.join("\n")} dontResolveAlias ); } else { - Debug.assert(entityName.parent.kind === 270 /* ImportEqualsDeclaration */); + Debug.assert(entityName.parent.kind === 271 /* ImportEqualsDeclaration */); return resolveEntityName( entityName, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */, @@ -48126,9 +48527,9 @@ ${lanes.join("\n")} if (!symbol) { return getMergedSymbol(symbolFromJSPrototype); } - } else if (name.kind === 165 /* QualifiedName */ || name.kind === 210 /* PropertyAccessExpression */) { - const left = name.kind === 165 /* QualifiedName */ ? name.left : name.expression; - const right = name.kind === 165 /* QualifiedName */ ? name.right : name.name; + } else if (name.kind === 166 /* QualifiedName */ || name.kind === 211 /* PropertyAccessExpression */) { + const left = name.kind === 166 /* QualifiedName */ ? name.left : name.expression; + const right = name.kind === 166 /* QualifiedName */ ? name.right : name.name; let namespace = resolveEntityName( left, namespaceMeaning, @@ -48162,13 +48563,13 @@ ${lanes.join("\n")} const declarationName = declarationNameToString(right); const suggestionForNonexistentModule = getSuggestedSymbolForNonexistentModule(right, namespace); if (suggestionForNonexistentModule) { - error(right, Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2, namespaceName, declarationName, symbolToString(suggestionForNonexistentModule)); + error2(right, Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2, namespaceName, declarationName, symbolToString(suggestionForNonexistentModule)); return void 0; } const containingQualifiedName = isQualifiedName(name) && getContainingQualifiedNameNode(name); const canSuggestTypeof = globalObjectType && meaning & 788968 /* Type */ && containingQualifiedName && !isTypeOfExpression(containingQualifiedName.parent) && tryGetQualifiedNameAsValue(containingQualifiedName); if (canSuggestTypeof) { - error( + error2( containingQualifiedName, Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0, entityNameToString(containingQualifiedName) @@ -48178,7 +48579,7 @@ ${lanes.join("\n")} if (meaning & 1920 /* Namespace */ && isQualifiedName(name.parent)) { const exportedTypeSymbol = getMergedSymbol(getSymbol2(getExportsOfSymbol(namespace), right.escapedText, 788968 /* Type */)); if (exportedTypeSymbol) { - error( + error2( name.parent.right, Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1, symbolToString(exportedTypeSymbol), @@ -48187,7 +48588,7 @@ ${lanes.join("\n")} return void 0; } } - error(right, Diagnostics.Namespace_0_has_no_exported_member_1, namespaceName, declarationName); + error2(right, Diagnostics.Namespace_0_has_no_exported_member_1, namespaceName, declarationName); } return void 0; } @@ -48195,7 +48596,7 @@ ${lanes.join("\n")} Debug.assertNever(name, "Unknown entity name kind."); } Debug.assert((getCheckFlags(symbol) & 1 /* Instantiated */) === 0, "Should never get an instantiated symbol here."); - if (!nodeIsSynthesized(name) && isEntityName(name) && (symbol.flags & 2097152 /* Alias */ || name.parent.kind === 276 /* ExportAssignment */)) { + if (!nodeIsSynthesized(name) && isEntityName(name) && (symbol.flags & 2097152 /* Alias */ || name.parent.kind === 277 /* ExportAssignment */)) { markSymbolOfAliasDeclarationIfTypeOnly( getAliasDeclarationFromName(name), symbol, @@ -48225,7 +48626,7 @@ ${lanes.join("\n")} } } function getAssignmentDeclarationLocation(node) { - const typeAlias = findAncestor(node, (node2) => !(isJSDocNode(node2) || node2.flags & 8388608 /* JSDoc */) ? "quit" : isJSDocTypeAlias(node2)); + const typeAlias = findAncestor(node, (node2) => !(isJSDocNode(node2) || node2.flags & 16777216 /* JSDoc */) ? "quit" : isJSDocTypeAlias(node2)); if (typeAlias) { return; } @@ -48288,11 +48689,11 @@ ${lanes.join("\n")} return isStringLiteralLike(moduleReferenceExpression) ? resolveExternalModule(location, moduleReferenceExpression.text, moduleNotFoundError, moduleReferenceExpression, isForAugmentation) : void 0; } function resolveExternalModule(location, moduleReference, moduleNotFoundError, errorNode, isForAugmentation = false) { - var _a, _b, _c, _d, _e, _f, _g, _h, _i; + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j; if (startsWith(moduleReference, "@types/")) { const diag2 = Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1; const withoutAtTypePrefix = removePrefix(moduleReference, "@types/"); - error(errorNode, diag2, withoutAtTypePrefix, moduleReference); + error2(errorNode, diag2, withoutAtTypePrefix, moduleReference); } const ambientModule = tryFindAmbientModule( moduleReference, @@ -48311,20 +48712,23 @@ ${lanes.join("\n")} const sourceFile = resolvedModule && (!resolutionDiagnostic || resolutionDiagnostic === Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set) && host.getSourceFile(resolvedModule.resolvedFileName); if (sourceFile) { if (resolutionDiagnostic) { - error(errorNode, resolutionDiagnostic, moduleReference, resolvedModule.resolvedFileName); + error2(errorNode, resolutionDiagnostic, moduleReference, resolvedModule.resolvedFileName); } if (resolvedModule.resolvedUsingTsExtension && isDeclarationFileName(moduleReference)) { const importOrExport = ((_g = findAncestor(location, isImportDeclaration)) == null ? void 0 : _g.importClause) || findAncestor(location, or(isImportEqualsDeclaration, isExportDeclaration)); if (importOrExport && !importOrExport.isTypeOnly || findAncestor(location, isImportCall)) { - error( + error2( errorNode, Diagnostics.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead, getSuggestedImportSource(Debug.checkDefined(tryExtractTSExtension(moduleReference))) ); } } else if (resolvedModule.resolvedUsingTsExtension && !shouldAllowImportingTsExtension(compilerOptions, currentSourceFile.fileName)) { - const tsExtension = Debug.checkDefined(tryExtractTSExtension(moduleReference)); - error(errorNode, Diagnostics.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled, tsExtension); + const importOrExport = ((_h = findAncestor(location, isImportDeclaration)) == null ? void 0 : _h.importClause) || findAncestor(location, or(isImportEqualsDeclaration, isExportDeclaration)); + if (!((importOrExport == null ? void 0 : importOrExport.isTypeOnly) || findAncestor(location, isImportTypeNode))) { + const tsExtension = Debug.checkDefined(tryExtractTSExtension(moduleReference)); + error2(errorNode, Diagnostics.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled, tsExtension); + } } if (sourceFile.symbol) { if (resolvedModule.isExternalLibraryImport && !resolutionExtensionIsTSOrJson(resolvedModule.extension)) { @@ -48341,10 +48745,10 @@ ${lanes.join("\n")} if (moduleResolutionKind === 3 /* Node16 */ || moduleResolutionKind === 99 /* NodeNext */) { const isSyncImport = currentSourceFile.impliedNodeFormat === 1 /* CommonJS */ && !findAncestor(location, isImportCall) || !!findAncestor(location, isImportEqualsDeclaration); const overrideClauseHost = findAncestor(location, (l) => isImportTypeNode(l) || isExportDeclaration(l) || isImportDeclaration(l)); - const overrideClause = overrideClauseHost && isImportTypeNode(overrideClauseHost) ? (_h = overrideClauseHost.assertions) == null ? void 0 : _h.assertClause : overrideClauseHost == null ? void 0 : overrideClauseHost.assertClause; + const overrideClause = overrideClauseHost && isImportTypeNode(overrideClauseHost) ? (_i = overrideClauseHost.assertions) == null ? void 0 : _i.assertClause : overrideClauseHost == null ? void 0 : overrideClauseHost.assertClause; if (isSyncImport && sourceFile.impliedNodeFormat === 99 /* ESNext */ && !getResolutionModeOverrideForClause(overrideClause)) { if (findAncestor(location, isImportEqualsDeclaration)) { - error(errorNode, Diagnostics.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead, moduleReference); + error2(errorNode, Diagnostics.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead, moduleReference); } else { let diagnosticDetails; const ext = tryGetExtensionFromPath2(currentSourceFile.fileName); @@ -48396,7 +48800,7 @@ ${lanes.join("\n")} return getMergedSymbol(sourceFile.symbol); } if (moduleNotFoundError) { - error(errorNode, Diagnostics.File_0_is_not_a_module, sourceFile.fileName); + error2(errorNode, Diagnostics.File_0_is_not_a_module, sourceFile.fileName); } return void 0; } @@ -48413,7 +48817,7 @@ ${lanes.join("\n")} if (resolvedModule && !resolutionExtensionIsTSOrJson(resolvedModule.extension) && resolutionDiagnostic === void 0 || resolutionDiagnostic === Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type) { if (isForAugmentation) { const diag2 = Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented; - error(errorNode, diag2, moduleReference, resolvedModule.resolvedFileName); + error2(errorNode, diag2, moduleReference, resolvedModule.resolvedFileName); } else { errorOnImplicitAnyModule( /*isError*/ @@ -48431,31 +48835,31 @@ ${lanes.join("\n")} if (resolvedModule) { const redirect = host.getProjectReferenceRedirect(resolvedModule.resolvedFileName); if (redirect) { - error(errorNode, Diagnostics.Output_file_0_has_not_been_built_from_source_file_1, redirect, resolvedModule.resolvedFileName); + error2(errorNode, Diagnostics.Output_file_0_has_not_been_built_from_source_file_1, redirect, resolvedModule.resolvedFileName); return void 0; } } if (resolutionDiagnostic) { - error(errorNode, resolutionDiagnostic, moduleReference, resolvedModule.resolvedFileName); + error2(errorNode, resolutionDiagnostic, moduleReference, resolvedModule.resolvedFileName); } else { const isExtensionlessRelativePathImport = pathIsRelative(moduleReference) && !hasExtension(moduleReference); const resolutionIsNode16OrNext = moduleResolutionKind === 3 /* Node16 */ || moduleResolutionKind === 99 /* NodeNext */; if (!getResolveJsonModule(compilerOptions) && fileExtensionIs(moduleReference, ".json" /* Json */) && moduleResolutionKind !== 1 /* Classic */ && hasJsonModuleEmitEnabled(compilerOptions)) { - error(errorNode, Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension, moduleReference); + error2(errorNode, Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension, moduleReference); } else if (mode === 99 /* ESNext */ && resolutionIsNode16OrNext && isExtensionlessRelativePathImport) { const absoluteRef = getNormalizedAbsolutePath(moduleReference, getDirectoryPath(currentSourceFile.path)); - const suggestedExt = (_i = suggestedExtensions.find(([actualExt, _importExt]) => host.fileExists(absoluteRef + actualExt))) == null ? void 0 : _i[1]; + const suggestedExt = (_j = suggestedExtensions.find(([actualExt, _importExt]) => host.fileExists(absoluteRef + actualExt))) == null ? void 0 : _j[1]; if (suggestedExt) { - error( + error2( errorNode, Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0, moduleReference + suggestedExt ); } else { - error(errorNode, Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path); + error2(errorNode, Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path); } } else { - error(errorNode, moduleNotFoundError, moduleReference); + error2(errorNode, moduleNotFoundError, moduleReference); } } } @@ -48519,9 +48923,9 @@ ${lanes.join("\n")} var _a; const symbol = resolveExternalModuleSymbol(moduleSymbol, dontResolveAlias); if (!dontResolveAlias && symbol) { - if (!suppressInteropError && !(symbol.flags & (1536 /* Module */ | 3 /* Variable */)) && !getDeclarationOfKind(symbol, 311 /* SourceFile */)) { + if (!suppressInteropError && !(symbol.flags & (1536 /* Module */ | 3 /* Variable */)) && !getDeclarationOfKind(symbol, 312 /* SourceFile */)) { const compilerOptionName = moduleKind >= 5 /* ES2015 */ ? "allowSyntheticDefaultImports" : "esModuleInterop"; - error(referencingLocation, Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export, compilerOptionName); + error2(referencingLocation, Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export, compilerOptionName); return symbol; } const referenceParent = referencingLocation.parent; @@ -48876,12 +49280,12 @@ ${lanes.join("\n")} return getMergedSymbol(symbol && (symbol.flags & 1048576 /* ExportValue */) !== 0 && symbol.exportSymbol || symbol); } function symbolIsValue(symbol, includeTypeOnlyMembers) { - return !!(symbol.flags & 111551 /* Value */ || symbol.flags & 2097152 /* Alias */ && getAllSymbolFlags(symbol) & 111551 /* Value */ && (includeTypeOnlyMembers || !getTypeOnlyAliasDeclaration(symbol))); + return !!(symbol.flags & 111551 /* Value */ || symbol.flags & 2097152 /* Alias */ && getSymbolFlags(symbol, !includeTypeOnlyMembers) & 111551 /* Value */); } function findConstructorDeclaration(node) { const members = node.members; for (const member of members) { - if (member.kind === 175 /* Constructor */ && nodeIsPresent(member.body)) { + if (member.kind === 176 /* Constructor */ && nodeIsPresent(member.body)) { return member; } } @@ -48905,7 +49309,7 @@ ${lanes.join("\n")} function createIntrinsicType(kind, intrinsicName, objectFlags = 0 /* None */) { const type = createType(kind); type.intrinsicName = intrinsicName; - type.objectFlags = objectFlags; + type.objectFlags = objectFlags | 524288 /* CouldContainTypeVariablesComputed */ | 2097152 /* IsGenericTypeComputed */ | 33554432 /* IsUnknownLikeUnionComputed */ | 16777216 /* IsNeverIntersectionComputed */; return type; } function createObjectType(objectFlags, symbol) { @@ -48999,11 +49403,11 @@ ${lanes.join("\n")} } } switch (location.kind) { - case 311 /* SourceFile */: + case 312 /* SourceFile */: if (!isExternalOrCommonJsModule(location)) { break; } - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: const sym = getSymbolOfDeclaration(location); if (result = callback( (sym == null ? void 0 : sym.exports) || emptySymbols, @@ -49016,9 +49420,9 @@ ${lanes.join("\n")} return result; } break; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: let table; (getSymbolOfDeclaration(location).members || emptySymbols).forEach((memberSymbol, key) => { if (memberSymbol.flags & (788968 /* Type */ & ~67108864 /* Assignment */)) { @@ -49096,7 +49500,7 @@ ${lanes.join("\n")} return [symbol]; } const result2 = forEachEntry(symbols, (symbolFromSymbolTable) => { - if (symbolFromSymbolTable.flags & 2097152 /* Alias */ && symbolFromSymbolTable.escapedName !== "export=" /* ExportEquals */ && symbolFromSymbolTable.escapedName !== "default" /* Default */ && !(isUMDExportSymbol(symbolFromSymbolTable) && enclosingDeclaration && isExternalModule(getSourceFileOfNode(enclosingDeclaration))) && (!useOnlyExternalAliasing || some(symbolFromSymbolTable.declarations, isExternalModuleImportEqualsDeclaration)) && (isLocalNameLookup ? !some(symbolFromSymbolTable.declarations, isNamespaceReexportDeclaration) : true) && (ignoreQualification || !getDeclarationOfKind(symbolFromSymbolTable, 280 /* ExportSpecifier */))) { + if (symbolFromSymbolTable.flags & 2097152 /* Alias */ && symbolFromSymbolTable.escapedName !== "export=" /* ExportEquals */ && symbolFromSymbolTable.escapedName !== "default" /* Default */ && !(isUMDExportSymbol(symbolFromSymbolTable) && enclosingDeclaration && isExternalModule(getSourceFileOfNode(enclosingDeclaration))) && (!useOnlyExternalAliasing || some(symbolFromSymbolTable.declarations, isExternalModuleImportEqualsDeclaration)) && (isLocalNameLookup ? !some(symbolFromSymbolTable.declarations, isNamespaceReexportDeclaration) : true) && (ignoreQualification || !getDeclarationOfKind(symbolFromSymbolTable, 281 /* ExportSpecifier */))) { const resolvedImportedSymbol = resolveAlias(symbolFromSymbolTable); const candidate = getCandidateListForSymbol(symbolFromSymbolTable, resolvedImportedSymbol, ignoreQualification); if (candidate) { @@ -49141,9 +49545,9 @@ ${lanes.join("\n")} if (symbolFromSymbolTable === symbol) { return true; } - const shouldResolveAlias = symbolFromSymbolTable.flags & 2097152 /* Alias */ && !getDeclarationOfKind(symbolFromSymbolTable, 280 /* ExportSpecifier */); + const shouldResolveAlias = symbolFromSymbolTable.flags & 2097152 /* Alias */ && !getDeclarationOfKind(symbolFromSymbolTable, 281 /* ExportSpecifier */); symbolFromSymbolTable = shouldResolveAlias ? resolveAlias(symbolFromSymbolTable) : symbolFromSymbolTable; - const flags = shouldResolveAlias ? getAllSymbolFlags(symbolFromSymbolTable) : symbolFromSymbolTable.flags; + const flags = shouldResolveAlias ? getSymbolFlags(symbolFromSymbolTable) : symbolFromSymbolTable.flags; if (flags & meaning) { qualify = true; return true; @@ -49156,10 +49560,10 @@ ${lanes.join("\n")} if (symbol.declarations && symbol.declarations.length) { for (const declaration of symbol.declarations) { switch (declaration.kind) { - case 171 /* PropertyDeclaration */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: continue; default: return false; @@ -49295,10 +49699,10 @@ ${lanes.join("\n")} return node && getSymbolOfDeclaration(node); } function hasExternalModuleSymbol(declaration) { - return isAmbientModule(declaration) || declaration.kind === 311 /* SourceFile */ && isExternalOrCommonJsModule(declaration); + return isAmbientModule(declaration) || declaration.kind === 312 /* SourceFile */ && isExternalOrCommonJsModule(declaration); } function hasNonGlobalAugmentationExternalModuleSymbol(declaration) { - return isModuleWithStringLiteralName(declaration) || declaration.kind === 311 /* SourceFile */ && isExternalOrCommonJsModule(declaration); + return isModuleWithStringLiteralName(declaration) || declaration.kind === 312 /* SourceFile */ && isExternalOrCommonJsModule(declaration); } function hasVisibleDeclarations(symbol, shouldComputeAliasToMakeVisible) { let aliasesToMakeVisible; @@ -49346,9 +49750,9 @@ ${lanes.join("\n")} } function isEntityNameVisible(entityName, enclosingDeclaration) { let meaning; - if (entityName.parent.kind === 185 /* TypeQuery */ || entityName.parent.kind === 232 /* ExpressionWithTypeArguments */ && !isPartOfTypeNode(entityName.parent) || entityName.parent.kind === 166 /* ComputedPropertyName */) { + if (entityName.parent.kind === 186 /* TypeQuery */ || entityName.parent.kind === 233 /* ExpressionWithTypeArguments */ && !isPartOfTypeNode(entityName.parent) || entityName.parent.kind === 167 /* ComputedPropertyName */) { meaning = 111551 /* Value */ | 1048576 /* ExportValue */; - } else if (entityName.kind === 165 /* QualifiedName */ || entityName.kind === 210 /* PropertyAccessExpression */ || entityName.parent.kind === 270 /* ImportEqualsDeclaration */) { + } else if (entityName.kind === 166 /* QualifiedName */ || entityName.kind === 211 /* PropertyAccessExpression */ || entityName.parent.kind === 271 /* ImportEqualsDeclaration */) { meaning = 1920 /* Namespace */; } else { meaning = 788968 /* Type */; @@ -49414,7 +49818,7 @@ ${lanes.join("\n")} return writer ? symbolToStringWorker(writer).getText() : usingSingleLineStringWriter(symbolToStringWorker); function symbolToStringWorker(writer2) { const entity = builder(symbol, meaning, enclosingDeclaration, nodeFlags); - const printer = (enclosingDeclaration == null ? void 0 : enclosingDeclaration.kind) === 311 /* SourceFile */ ? createPrinterWithRemoveCommentsNeverAsciiEscape() : createPrinterWithRemoveComments(); + const printer = (enclosingDeclaration == null ? void 0 : enclosingDeclaration.kind) === 312 /* SourceFile */ ? createPrinterWithRemoveCommentsNeverAsciiEscape() : createPrinterWithRemoveComments(); const sourceFile = enclosingDeclaration && getSourceFileOfNode(enclosingDeclaration); printer.writeNode( 4 /* Unspecified */, @@ -49431,9 +49835,9 @@ ${lanes.join("\n")} function signatureToStringWorker(writer2) { let sigOutput; if (flags & 262144 /* WriteArrowStyleSignature */) { - sigOutput = kind === 1 /* Construct */ ? 184 /* ConstructorType */ : 183 /* FunctionType */; + sigOutput = kind === 1 /* Construct */ ? 185 /* ConstructorType */ : 184 /* FunctionType */; } else { - sigOutput = kind === 1 /* Construct */ ? 179 /* ConstructSignature */ : 178 /* CallSignature */; + sigOutput = kind === 1 /* Construct */ ? 180 /* ConstructSignature */ : 179 /* CallSignature */; } const sig = nodeBuilder.signatureToSignatureDeclaration(signature, sigOutput, enclosingDeclaration, toNodeBuilderFlags(flags) | 70221824 /* IgnoreErrors */ | 512 /* WriteTypeParametersInQualifiedName */); const printer = createPrinterWithRemoveCommentsOmitTrailingSemicolon(); @@ -49535,7 +49939,7 @@ ${lanes.join("\n")} return symbolToExpression(symbol, context, meaning); } function withContext(enclosingDeclaration, flags, tracker, cb) { - Debug.assert(enclosingDeclaration === void 0 || (enclosingDeclaration.flags & 8 /* Synthesized */) === 0); + Debug.assert(enclosingDeclaration === void 0 || (enclosingDeclaration.flags & 16 /* Synthesized */) === 0); const moduleResolverHost = (tracker == null ? void 0 : tracker.trackSymbol) ? tracker.moduleResolverHost : flags & 134217728 /* DoNotIncludeSymbolChain */ ? createBasicNodeBuilderModuleSpecifierResolutionHost(host) : void 0; const context = { enclosingDeclaration, @@ -49607,7 +50011,7 @@ ${lanes.join("\n")} } if (type.flags & 64 /* BigInt */) { context.approximateLength += 6; - return factory.createKeywordTypeNode(162 /* BigIntKeyword */); + return factory.createKeywordTypeNode(163 /* BigIntKeyword */); } if (type.flags & 16 /* Boolean */ && !type.aliasSymbol) { context.approximateLength += 7; @@ -49880,11 +50284,13 @@ ${lanes.join("\n")} return !!type2.target && isMappedTypeHomomorphic(type2.target) && !isMappedTypeHomomorphic(type2); } function createMappedTypeNodeFromType(type2) { + var _a2; Debug.assert(!!(type2.flags & 524288 /* Object */)); const readonlyToken = type2.declaration.readonlyToken ? factory.createToken(type2.declaration.readonlyToken.kind) : void 0; const questionToken = type2.declaration.questionToken ? factory.createToken(type2.declaration.questionToken.kind) : void 0; let appropriateConstraintTypeNode; let newTypeVariable; + const needsModifierPreservingWrapper = !isMappedTypeWithKeyofConstraintDeclaration(type2) && !(getModifiersTypeFromMappedType(type2).flags & 2 /* Unknown */) && context.flags & 4 /* GenerateNamesForShadowedTypeParams */ && !(getConstraintTypeFromMappedType(type2).flags & 262144 /* TypeParameter */ && ((_a2 = getConstraintOfTypeParameter(getConstraintTypeFromMappedType(type2))) == null ? void 0 : _a2.flags) & 4194304 /* Index */); if (isMappedTypeWithKeyofConstraintDeclaration(type2)) { if (isHomomorphicMappedTypeWithNonHomomorphicInstantiation(type2) && context.flags & 4 /* GenerateNamesForShadowedTypeParams */) { const newParam = createTypeParameter(createSymbol(262144 /* TypeParameter */, "T")); @@ -49892,6 +50298,11 @@ ${lanes.join("\n")} newTypeVariable = factory.createTypeReferenceNode(name); } appropriateConstraintTypeNode = factory.createTypeOperatorNode(143 /* KeyOfKeyword */, newTypeVariable || typeToTypeNodeHelper(getModifiersTypeFromMappedType(type2), context)); + } else if (needsModifierPreservingWrapper) { + const newParam = createTypeParameter(createSymbol(262144 /* TypeParameter */, "T")); + const name = typeParameterToName(newParam, context); + newTypeVariable = factory.createTypeReferenceNode(name); + appropriateConstraintTypeNode = newTypeVariable; } else { appropriateConstraintTypeNode = typeToTypeNodeHelper(getConstraintTypeFromMappedType(type2), context); } @@ -49922,6 +50333,18 @@ ${lanes.join("\n")} result, factory.createKeywordTypeNode(146 /* NeverKeyword */) ); + } else if (needsModifierPreservingWrapper) { + return factory.createConditionalTypeNode( + typeToTypeNodeHelper(getConstraintTypeFromMappedType(type2), context), + factory.createInferTypeNode(factory.createTypeParameterDeclaration( + /*modifiers*/ + void 0, + factory.cloneNode(newTypeVariable.typeName), + factory.createTypeOperatorNode(143 /* KeyOfKeyword */, typeToTypeNodeHelper(getModifiersTypeFromMappedType(type2), context)) + )), + result, + factory.createKeywordTypeNode(146 /* NeverKeyword */) + ); } return result; } @@ -49973,7 +50396,7 @@ ${lanes.join("\n")} const isStaticMethodSymbol = !!(symbol.flags & 8192 /* Method */) && // typeof static method some(symbol.declarations, (declaration) => isStatic(declaration)); const isNonLocalFunctionSymbol = !!(symbol.flags & 16 /* Function */) && (symbol.parent || // is exported function symbol - forEach(symbol.declarations, (declaration) => declaration.parent.kind === 311 /* SourceFile */ || declaration.parent.kind === 267 /* ModuleBlock */)); + forEach(symbol.declarations, (declaration) => declaration.parent.kind === 312 /* SourceFile */ || declaration.parent.kind === 268 /* ModuleBlock */)); if (isStaticMethodSymbol || isNonLocalFunctionSymbol) { return (!!(context.flags & 4096 /* UseTypeOfFunction */) || ((_a3 = context.visitedTypes) == null ? void 0 : _a3.has(typeId))) && // it is type of the symbol uses itself recursively (!(context.flags & 8 /* UseStructuralFallback */) || isValueSymbolAccessible(symbol, context.enclosingDeclaration)); @@ -50056,12 +50479,12 @@ ${lanes.join("\n")} } if (resolved.callSignatures.length === 1 && !resolved.constructSignatures.length) { const signature = resolved.callSignatures[0]; - const signatureNode = signatureToSignatureDeclarationHelper(signature, 183 /* FunctionType */, context); + const signatureNode = signatureToSignatureDeclarationHelper(signature, 184 /* FunctionType */, context); return signatureNode; } if (resolved.constructSignatures.length === 1 && !resolved.callSignatures.length) { const signature = resolved.constructSignatures[0]; - const signatureNode = signatureToSignatureDeclarationHelper(signature, 184 /* ConstructorType */, context); + const signatureNode = signatureToSignatureDeclarationHelper(signature, 185 /* ConstructorType */, context); return signatureNode; } } @@ -50101,19 +50524,18 @@ ${lanes.join("\n")} const arity = getTypeReferenceArity(type2); const tupleConstituentNodes = mapToTypeNodes(typeArguments.slice(0, arity), context); if (tupleConstituentNodes) { - if (type2.target.labeledElementDeclarations) { - for (let i = 0; i < tupleConstituentNodes.length; i++) { - const flags = type2.target.elementFlags[i]; + const { labeledElementDeclarations } = type2.target; + for (let i = 0; i < tupleConstituentNodes.length; i++) { + const flags = type2.target.elementFlags[i]; + const labeledElementDeclaration = labeledElementDeclarations == null ? void 0 : labeledElementDeclarations[i]; + if (labeledElementDeclaration) { tupleConstituentNodes[i] = factory.createNamedTupleMember( flags & 12 /* Variable */ ? factory.createToken(26 /* DotDotDotToken */) : void 0, - factory.createIdentifier(unescapeLeadingUnderscores(getTupleElementLabel(type2.target.labeledElementDeclarations[i]))), + factory.createIdentifier(unescapeLeadingUnderscores(getTupleElementLabel(labeledElementDeclaration))), flags & 2 /* Optional */ ? factory.createToken(58 /* QuestionToken */) : void 0, flags & 4 /* Rest */ ? factory.createArrayTypeNode(tupleConstituentNodes[i]) : tupleConstituentNodes[i] ); - } - } else { - for (let i = 0; i < Math.min(arity, tupleConstituentNodes.length); i++) { - const flags = type2.target.elementFlags[i]; + } else { tupleConstituentNodes[i] = flags & 12 /* Variable */ ? factory.createRestTypeNode(flags & 4 /* Rest */ ? factory.createArrayTypeNode(tupleConstituentNodes[i]) : tupleConstituentNodes[i]) : flags & 2 /* Optional */ ? factory.createOptionalTypeNode(tupleConstituentNodes[i]) : tupleConstituentNodes[i]; } } @@ -50247,12 +50669,12 @@ ${lanes.join("\n")} } const typeElements = []; for (const signature of resolvedType.callSignatures) { - typeElements.push(signatureToSignatureDeclarationHelper(signature, 178 /* CallSignature */, context)); + typeElements.push(signatureToSignatureDeclarationHelper(signature, 179 /* CallSignature */, context)); } for (const signature of resolvedType.constructSignatures) { if (signature.flags & 4 /* Abstract */) continue; - typeElements.push(signatureToSignatureDeclarationHelper(signature, 179 /* ConstructSignature */, context)); + typeElements.push(signatureToSignatureDeclarationHelper(signature, 180 /* ConstructSignature */, context)); } for (const info of resolvedType.indexInfos) { typeElements.push(indexInfoToIndexSignatureDeclarationHelper(info, context, resolvedType.objectFlags & 1024 /* ReverseMapped */ ? createElidedInformationPlaceholder(context) : void 0)); @@ -50336,39 +50758,41 @@ ${lanes.join("\n")} if (propertySymbol.flags & (16 /* Function */ | 8192 /* Method */) && !getPropertiesOfObjectType(propertyType).length && !isReadonlySymbol(propertySymbol)) { const signatures = getSignaturesOfType(filterType(propertyType, (t) => !(t.flags & 32768 /* Undefined */)), 0 /* Call */); for (const signature of signatures) { - const methodDeclaration = signatureToSignatureDeclarationHelper(signature, 172 /* MethodSignature */, context, { name: propertyName, questionToken: optionalToken }); + const methodDeclaration = signatureToSignatureDeclarationHelper(signature, 173 /* MethodSignature */, context, { name: propertyName, questionToken: optionalToken }); typeElements.push(preserveCommentsOn(methodDeclaration)); } + if (signatures.length || !optionalToken) { + return; + } + } + let propertyTypeNode; + if (shouldUsePlaceholderForProperty(propertySymbol, context)) { + propertyTypeNode = createElidedInformationPlaceholder(context); } else { - let propertyTypeNode; - if (shouldUsePlaceholderForProperty(propertySymbol, context)) { - propertyTypeNode = createElidedInformationPlaceholder(context); - } else { - if (propertyIsReverseMapped) { - context.reverseMappedStack || (context.reverseMappedStack = []); - context.reverseMappedStack.push(propertySymbol); - } - propertyTypeNode = propertyType ? serializeTypeForDeclaration(context, propertyType, propertySymbol, saveEnclosingDeclaration) : factory.createKeywordTypeNode(133 /* AnyKeyword */); - if (propertyIsReverseMapped) { - context.reverseMappedStack.pop(); - } + if (propertyIsReverseMapped) { + context.reverseMappedStack || (context.reverseMappedStack = []); + context.reverseMappedStack.push(propertySymbol); } - const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0; - if (modifiers) { - context.approximateLength += 9; + propertyTypeNode = propertyType ? serializeTypeForDeclaration(context, propertyType, propertySymbol, saveEnclosingDeclaration) : factory.createKeywordTypeNode(133 /* AnyKeyword */); + if (propertyIsReverseMapped) { + context.reverseMappedStack.pop(); } - const propertySignature = factory.createPropertySignature( - modifiers, - propertyName, - optionalToken, - propertyTypeNode - ); - typeElements.push(preserveCommentsOn(propertySignature)); } + const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0; + if (modifiers) { + context.approximateLength += 9; + } + const propertySignature = factory.createPropertySignature( + modifiers, + propertyName, + optionalToken, + propertyTypeNode + ); + typeElements.push(preserveCommentsOn(propertySignature)); function preserveCommentsOn(node) { var _a2; - if (some(propertySymbol.declarations, (d) => d.kind === 354 /* JSDocPropertyTag */)) { - const d = (_a2 = propertySymbol.declarations) == null ? void 0 : _a2.find((d2) => d2.kind === 354 /* JSDocPropertyTag */); + if (some(propertySymbol.declarations, (d) => d.kind === 355 /* JSDocPropertyTag */)) { + const d = (_a2 = propertySymbol.declarations) == null ? void 0 : _a2.find((d2) => d2.kind === 355 /* JSDocPropertyTag */); const commentText = getTextOfJSDocComment(d.comment); if (commentText) { setSyntheticLeadingComments(node, [{ kind: 3 /* MultiLineCommentTrivia */, text: "*\n * " + commentText.replace(/\n/g, "\n * ") + "\n ", pos: -1, end: -1, hasTrailingNewLine: true }]); @@ -50474,6 +50898,7 @@ ${lanes.join("\n")} ); } function signatureToSignatureDeclarationHelper(signature, kind, context, options) { + var _a; const suppressAny = context.flags & 256 /* SuppressAnyReturnType */; if (suppressAny) context.flags &= ~256 /* SuppressAnyReturnType */; @@ -50523,7 +50948,7 @@ ${lanes.join("\n")} } } } - const parameters = (some(expandedParams, (p) => p !== expandedParams[expandedParams.length - 1] && !!(getCheckFlags(p) & 32768 /* RestParameter */)) ? signature.parameters : expandedParams).map((parameter) => symbolToParameterDeclaration(parameter, context, kind === 175 /* Constructor */, options == null ? void 0 : options.privateSymbolVisitor, options == null ? void 0 : options.bundledImports)); + const parameters = (some(expandedParams, (p) => p !== expandedParams[expandedParams.length - 1] && !!(getCheckFlags(p) & 32768 /* RestParameter */)) ? signature.parameters : expandedParams).map((parameter) => symbolToParameterDeclaration(parameter, context, kind === 176 /* Constructor */, options == null ? void 0 : options.privateSymbolVisitor, options == null ? void 0 : options.bundledImports)); const thisParameter = context.flags & 33554432 /* OmitThisParameter */ ? void 0 : tryGetThisParameterDeclaration(signature, context); if (thisParameter) { parameters.unshift(thisParameter); @@ -50544,11 +50969,11 @@ ${lanes.join("\n")} } } let modifiers = options == null ? void 0 : options.modifiers; - if (kind === 184 /* ConstructorType */ && signature.flags & 4 /* Abstract */) { + if (kind === 185 /* ConstructorType */ && signature.flags & 4 /* Abstract */) { const flags = modifiersToFlags(modifiers); modifiers = factory.createModifiersFromModifierFlags(flags | 256 /* Abstract */); } - const node = kind === 178 /* CallSignature */ ? factory.createCallSignature(typeParameters, parameters, returnTypeNode) : kind === 179 /* ConstructSignature */ ? factory.createConstructSignature(typeParameters, parameters, returnTypeNode) : kind === 172 /* MethodSignature */ ? factory.createMethodSignature(modifiers, (options == null ? void 0 : options.name) ?? factory.createIdentifier(""), options == null ? void 0 : options.questionToken, typeParameters, parameters, returnTypeNode) : kind === 173 /* MethodDeclaration */ ? factory.createMethodDeclaration( + const node = kind === 179 /* CallSignature */ ? factory.createCallSignature(typeParameters, parameters, returnTypeNode) : kind === 180 /* ConstructSignature */ ? factory.createConstructSignature(typeParameters, parameters, returnTypeNode) : kind === 173 /* MethodSignature */ ? factory.createMethodSignature(modifiers, (options == null ? void 0 : options.name) ?? factory.createIdentifier(""), options == null ? void 0 : options.questionToken, typeParameters, parameters, returnTypeNode) : kind === 174 /* MethodDeclaration */ ? factory.createMethodDeclaration( modifiers, /*asteriskToken*/ void 0, @@ -50560,25 +50985,25 @@ ${lanes.join("\n")} returnTypeNode, /*body*/ void 0 - ) : kind === 175 /* Constructor */ ? factory.createConstructorDeclaration( + ) : kind === 176 /* Constructor */ ? factory.createConstructorDeclaration( modifiers, parameters, /*body*/ void 0 - ) : kind === 176 /* GetAccessor */ ? factory.createGetAccessorDeclaration( + ) : kind === 177 /* GetAccessor */ ? factory.createGetAccessorDeclaration( modifiers, (options == null ? void 0 : options.name) ?? factory.createIdentifier(""), parameters, returnTypeNode, /*body*/ void 0 - ) : kind === 177 /* SetAccessor */ ? factory.createSetAccessorDeclaration( + ) : kind === 178 /* SetAccessor */ ? factory.createSetAccessorDeclaration( modifiers, (options == null ? void 0 : options.name) ?? factory.createIdentifier(""), parameters, /*body*/ void 0 - ) : kind === 180 /* IndexSignature */ ? factory.createIndexSignature(modifiers, parameters, returnTypeNode) : kind === 323 /* JSDocFunctionType */ ? factory.createJSDocFunctionType(parameters, returnTypeNode) : kind === 183 /* FunctionType */ ? factory.createFunctionTypeNode(typeParameters, parameters, returnTypeNode ?? factory.createTypeReferenceNode(factory.createIdentifier(""))) : kind === 184 /* ConstructorType */ ? factory.createConstructorTypeNode(modifiers, typeParameters, parameters, returnTypeNode ?? factory.createTypeReferenceNode(factory.createIdentifier(""))) : kind === 261 /* FunctionDeclaration */ ? factory.createFunctionDeclaration( + ) : kind === 181 /* IndexSignature */ ? factory.createIndexSignature(modifiers, parameters, returnTypeNode) : kind === 324 /* JSDocFunctionType */ ? factory.createJSDocFunctionType(parameters, returnTypeNode) : kind === 184 /* FunctionType */ ? factory.createFunctionTypeNode(typeParameters, parameters, returnTypeNode ?? factory.createTypeReferenceNode(factory.createIdentifier(""))) : kind === 185 /* ConstructorType */ ? factory.createConstructorTypeNode(modifiers, typeParameters, parameters, returnTypeNode ?? factory.createTypeReferenceNode(factory.createIdentifier(""))) : kind === 262 /* FunctionDeclaration */ ? factory.createFunctionDeclaration( modifiers, /*asteriskToken*/ void 0, @@ -50588,7 +51013,7 @@ ${lanes.join("\n")} returnTypeNode, /*body*/ void 0 - ) : kind === 217 /* FunctionExpression */ ? factory.createFunctionExpression( + ) : kind === 218 /* FunctionExpression */ ? factory.createFunctionExpression( modifiers, /*asteriskToken*/ void 0, @@ -50597,7 +51022,7 @@ ${lanes.join("\n")} parameters, returnTypeNode, factory.createBlock([]) - ) : kind === 218 /* ArrowFunction */ ? factory.createArrowFunction( + ) : kind === 219 /* ArrowFunction */ ? factory.createArrowFunction( modifiers, typeParameters, parameters, @@ -50609,6 +51034,20 @@ ${lanes.join("\n")} if (typeArguments) { node.typeArguments = factory.createNodeArray(typeArguments); } + if (((_a = signature.declaration) == null ? void 0 : _a.kind) === 330 /* JSDocSignature */ && signature.declaration.parent.kind === 346 /* JSDocOverloadTag */) { + const comment = getTextOfNode( + signature.declaration.parent.parent, + /*includeTrivia*/ + true + ).slice(2, -2).split(/\r\n|\n|\r/).map((line) => line.replace(/^\s+/, " ")).join("\n"); + addSyntheticLeadingComment( + node, + 3 /* MultiLineCommentTrivia */, + comment, + /*hasTrailingNewLine*/ + true + ); + } cleanup == null ? void 0 : cleanup(); return node; } @@ -50647,9 +51086,9 @@ ${lanes.join("\n")} return typeParameterToDeclarationWithConstraint(type, context, constraintNode); } function symbolToParameterDeclaration(parameterSymbol, context, preserveModifierFlags, privateSymbolVisitor, bundledImports) { - let parameterDeclaration = getDeclarationOfKind(parameterSymbol, 168 /* Parameter */); + let parameterDeclaration = getDeclarationOfKind(parameterSymbol, 169 /* Parameter */); if (!parameterDeclaration && !isTransientSymbol(parameterSymbol)) { - parameterDeclaration = getDeclarationOfKind(parameterSymbol, 347 /* JSDocParameterTag */); + parameterDeclaration = getDeclarationOfKind(parameterSymbol, 348 /* JSDocParameterTag */); } let parameterType = getTypeOfSymbol(parameterSymbol); if (parameterDeclaration && isRequiredInitializedParameter(parameterDeclaration)) { @@ -50659,7 +51098,7 @@ ${lanes.join("\n")} const modifiers = !(context.flags & 8192 /* OmitParameterModifiers */) && preserveModifierFlags && parameterDeclaration && canHaveModifiers(parameterDeclaration) ? map(getModifiers(parameterDeclaration), factory.cloneNode) : void 0; const isRest = parameterDeclaration && isRestParameter(parameterDeclaration) || getCheckFlags(parameterSymbol) & 32768 /* RestParameter */; const dotDotDotToken = isRest ? factory.createToken(26 /* DotDotDotToken */) : void 0; - const name = parameterDeclaration ? parameterDeclaration.name ? parameterDeclaration.name.kind === 80 /* Identifier */ ? setEmitFlags(factory.cloneNode(parameterDeclaration.name), 16777216 /* NoAsciiEscaping */) : parameterDeclaration.name.kind === 165 /* QualifiedName */ ? setEmitFlags(factory.cloneNode(parameterDeclaration.name.right), 16777216 /* NoAsciiEscaping */) : cloneBindingName(parameterDeclaration.name) : symbolName(parameterSymbol) : symbolName(parameterSymbol); + const name = parameterDeclaration ? parameterDeclaration.name ? parameterDeclaration.name.kind === 80 /* Identifier */ ? setEmitFlags(factory.cloneNode(parameterDeclaration.name), 16777216 /* NoAsciiEscaping */) : parameterDeclaration.name.kind === 166 /* QualifiedName */ ? setEmitFlags(factory.cloneNode(parameterDeclaration.name.right), 16777216 /* NoAsciiEscaping */) : cloneBindingName(parameterDeclaration.name) : symbolName(parameterSymbol) : symbolName(parameterSymbol); const isOptional = parameterDeclaration && isOptionalParameter(parameterDeclaration) || getCheckFlags(parameterSymbol) & 16384 /* OptionalParameter */; const questionToken = isOptional ? factory.createToken(58 /* QuestionToken */) : void 0; const parameterNode = factory.createParameterDeclaration( @@ -50839,11 +51278,11 @@ ${lanes.join("\n")} return top; } function getSpecifierForModuleSymbol(symbol, context, overrideImportMode) { - let file = getDeclarationOfKind(symbol, 311 /* SourceFile */); + let file = getDeclarationOfKind(symbol, 312 /* SourceFile */); if (!file) { const equivalentFileSymbol = firstDefined(symbol.declarations, (d) => getFileSymbolIfFileSymbolExportEqualsContainer(d, symbol)); if (equivalentFileSymbol) { - file = getDeclarationOfKind(equivalentFileSymbol, 311 /* SourceFile */); + file = getDeclarationOfKind(equivalentFileSymbol, 312 /* SourceFile */); } } if (file && file.moduleName !== void 0) { @@ -51323,7 +51762,7 @@ ${lanes.join("\n")} } return transformed === existing ? setTextRange(factory.cloneNode(existing), existing) : transformed; function visitExistingNodeTreeSymbols(node) { - if (isJSDocAllType(node) || node.kind === 325 /* JSDocNamepathType */) { + if (isJSDocAllType(node) || node.kind === 326 /* JSDocNamepathType */) { return factory.createKeywordTypeNode(133 /* AnyKeyword */); } if (isJSDocUnknownType(node)) { @@ -51487,13 +51926,13 @@ ${lanes.join("\n")} function symbolTableToDeclarationStatements(symbolTable, context, bundled) { const serializePropertySymbolForClass = makeSerializePropertySymbol( factory.createPropertyDeclaration, - 173 /* MethodDeclaration */, + 174 /* MethodDeclaration */, /*useAccessors*/ true ); const serializePropertySymbolForInterfaceWorker = makeSerializePropertySymbol( (mods, name, question, type) => factory.createPropertySignature(mods, name, question, type), - 172 /* MethodSignature */, + 173 /* MethodSignature */, /*useAccessors*/ false ); @@ -51762,7 +52201,7 @@ ${lanes.join("\n")} if (!(symbol.flags & 16 /* Function */) && isTypeRepresentableAsFunctionNamespaceMerge(type, symbol)) { serializeAsFunctionNamespaceMerge(type, symbol, localName, modifierFlags); } else { - const flags = !(symbol.flags & 2 /* BlockScopedVariable */) ? ((_a = symbol.parent) == null ? void 0 : _a.valueDeclaration) && isSourceFile((_b = symbol.parent) == null ? void 0 : _b.valueDeclaration) ? 2 /* Const */ : void 0 : isConstVariable(symbol) ? 2 /* Const */ : 1 /* Let */; + const flags = !(symbol.flags & 2 /* BlockScopedVariable */) ? ((_a = symbol.parent) == null ? void 0 : _a.valueDeclaration) && isSourceFile((_b = symbol.parent) == null ? void 0 : _b.valueDeclaration) ? 2 /* Const */ : void 0 : isConstantVariable(symbol) ? 2 /* Const */ : 1 /* Let */; const name = needsPostExportDefault || !(symbol.flags & 4 /* Property */) ? localName : getUnusedName(localName, symbol); let textRange = symbol.declarations && find(symbol.declarations, (d) => isVariableDeclaration(d)); if (textRange && isVariableDeclarationList(textRange.parent) && textRange.parent.declarations.length === 1) { @@ -51908,7 +52347,7 @@ ${lanes.join("\n")} if (additionalModifierFlags & 1 /* Export */ && enclosingDeclaration2 && (isExportingScope(enclosingDeclaration2) || isModuleDeclaration(enclosingDeclaration2)) && canHaveExportModifier(node)) { newModifierFlags |= 1 /* Export */; } - if (addingDeclare && !(newModifierFlags & 1 /* Export */) && (!enclosingDeclaration2 || !(enclosingDeclaration2.flags & 16777216 /* Ambient */)) && (isEnumDeclaration(node) || isVariableStatement(node) || isFunctionDeclaration(node) || isClassDeclaration(node) || isModuleDeclaration(node))) { + if (addingDeclare && !(newModifierFlags & 1 /* Export */) && (!enclosingDeclaration2 || !(enclosingDeclaration2.flags & 33554432 /* Ambient */)) && (isEnumDeclaration(node) || isVariableStatement(node) || isFunctionDeclaration(node) || isClassDeclaration(node) || isModuleDeclaration(node))) { newModifierFlags |= 2 /* Ambient */; } if (additionalModifierFlags & 1024 /* Default */ && (isClassDeclaration(node) || isInterfaceDeclaration(node) || isFunctionDeclaration(node))) { @@ -51952,8 +52391,8 @@ ${lanes.join("\n")} const baseTypes = getBaseTypes(interfaceType); const baseType = length(baseTypes) ? getIntersectionType(baseTypes) : void 0; const members = flatMap(getPropertiesOfType(interfaceType), (p) => serializePropertySymbolForInterface(p, baseType)); - const callSignatures = serializeSignatures(0 /* Call */, interfaceType, baseType, 178 /* CallSignature */); - const constructSignatures = serializeSignatures(1 /* Construct */, interfaceType, baseType, 179 /* ConstructSignature */); + const callSignatures = serializeSignatures(0 /* Call */, interfaceType, baseType, 179 /* CallSignature */); + const constructSignatures = serializeSignatures(1 /* Construct */, interfaceType, baseType, 180 /* ConstructSignature */); const indexSignatures = serializeIndexSignatures(interfaceType, baseType); const heritageClauses = !length(baseTypes) ? void 0 : [factory.createHeritageClause(96 /* ExtendsKeyword */, mapDefined(baseTypes, (b) => trySerializeAsTypeReference(b, 111551 /* Value */)))]; addResult(factory.createInterfaceDeclaration( @@ -51970,7 +52409,7 @@ ${lanes.join("\n")} return !exports ? [] : filter(arrayFrom(exports.values()), (m) => isNamespaceMember(m) && isIdentifierText(m.escapedName, 99 /* ESNext */)); } function isTypeOnlyNamespace(symbol) { - return every(getNamespaceMembersForSerialization(symbol), (m) => !(getAllSymbolFlags(resolveSymbol(m)) & 111551 /* Value */)); + return every(getNamespaceMembersForSerialization(symbol), (m) => !(getSymbolFlags(resolveSymbol(m)) & 111551 /* Value */)); } function serializeModule(symbol, symbolName2, modifierFlags) { const members = getNamespaceMembersForSerialization(symbol); @@ -52018,7 +52457,7 @@ ${lanes.join("\n")} void 0, factory.createIdentifier(localName), nsBody, - 16 /* Namespace */ + 32 /* Namespace */ ), 0 /* None */); } } @@ -52035,7 +52474,7 @@ ${lanes.join("\n")} function serializeAsFunctionNamespaceMerge(type, symbol, localName, modifierFlags) { const signatures = getSignaturesOfType(type, 0 /* Call */); for (const sig of signatures) { - const decl = signatureToSignatureDeclarationHelper(sig, 261 /* FunctionDeclaration */, context, { name: factory.createIdentifier(localName), privateSymbolVisitor: includePrivateSymbol, bundledImports: bundled }); + const decl = signatureToSignatureDeclarationHelper(sig, 262 /* FunctionDeclaration */, context, { name: factory.createIdentifier(localName), privateSymbolVisitor: includePrivateSymbol, bundledImports: bundled }); addResult(setTextRange(decl, getSignatureTextRangeLocation(sig)), modifierFlags); } if (!(symbol.flags & (512 /* ValueModule */ | 1024 /* NamespaceModule */) && !!symbol.exports && !!symbol.exports.size)) { @@ -52075,7 +52514,7 @@ ${lanes.join("\n")} void 0, factory.createIdentifier(localName), factory.createModuleBlock([]), - 16 /* Namespace */ + 32 /* Namespace */ ); setParent(fakespace, enclosingDeclaration); fakespace.locals = createSymbolTable(props); @@ -52219,7 +52658,7 @@ ${lanes.join("\n")} [], /*body*/ void 0 - )] : serializeSignatures(1 /* Construct */, staticType, staticBaseType, 175 /* Constructor */); + )] : serializeSignatures(1 /* Construct */, staticType, staticBaseType, 176 /* Constructor */); const indexSignatures = serializeIndexSignatures(classType, baseTypes[0]); context.enclosingDeclaration = oldEnclosing; addResult(setTextRange(factory.createClassDeclaration( @@ -52271,8 +52710,8 @@ ${lanes.join("\n")} const targetName = getInternalSymbolName(target, verbatimTargetName); includePrivateSymbol(target); switch (node.kind) { - case 207 /* BindingElement */: - if (((_b = (_a = node.parent) == null ? void 0 : _a.parent) == null ? void 0 : _b.kind) === 259 /* VariableDeclaration */) { + case 208 /* BindingElement */: + if (((_b = (_a = node.parent) == null ? void 0 : _a.parent) == null ? void 0 : _b.kind) === 260 /* VariableDeclaration */) { const specifier2 = getSpecifierForModuleSymbol(target.parent || target, context); const { propertyName } = node; addResult(factory.createImportDeclaration( @@ -52298,15 +52737,15 @@ ${lanes.join("\n")} } Debug.failBadSyntaxKind(((_c = node.parent) == null ? void 0 : _c.parent) || node, "Unhandled binding element grandparent kind in declaration serialization"); break; - case 303 /* ShorthandPropertyAssignment */: - if (((_e = (_d = node.parent) == null ? void 0 : _d.parent) == null ? void 0 : _e.kind) === 225 /* BinaryExpression */) { + case 304 /* ShorthandPropertyAssignment */: + if (((_e = (_d = node.parent) == null ? void 0 : _d.parent) == null ? void 0 : _e.kind) === 226 /* BinaryExpression */) { serializeExportSpecifier( unescapeLeadingUnderscores(symbol.escapedName), targetName ); } break; - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: if (isPropertyAccessExpression(node.initializer)) { const initializer = node.initializer; const uniqueName = factory.createUniqueName(localName); @@ -52329,7 +52768,7 @@ ${lanes.join("\n")} ), modifierFlags); break; } - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: if (target.escapedName === "export=" /* ExportEquals */ && some(target.declarations, (d) => isSourceFile(d) && isJsonSourceFile(d))) { serializeMaybeAliasAssignment(symbol); break; @@ -52350,10 +52789,10 @@ ${lanes.join("\n")} ) : factory.createExternalModuleReference(factory.createStringLiteral(getSpecifierForModuleSymbol(target, context))) ), isLocalImport ? modifierFlags : 0 /* None */); break; - case 269 /* NamespaceExportDeclaration */: + case 270 /* NamespaceExportDeclaration */: addResult(factory.createNamespaceExportDeclaration(idText(node.name)), 0 /* None */); break; - case 272 /* ImportClause */: { + case 273 /* ImportClause */: { const generatedSpecifier = getSpecifierForModuleSymbol(target.parent || target, context); const specifier2 = bundled ? factory.createStringLiteral(generatedSpecifier) : node.parent.moduleSpecifier; addResult(factory.createImportDeclaration( @@ -52371,7 +52810,7 @@ ${lanes.join("\n")} ), 0 /* None */); break; } - case 273 /* NamespaceImport */: { + case 274 /* NamespaceImport */: { const generatedSpecifier = getSpecifierForModuleSymbol(target.parent || target, context); const specifier2 = bundled ? factory.createStringLiteral(generatedSpecifier) : node.parent.parent.moduleSpecifier; addResult(factory.createImportDeclaration( @@ -52389,7 +52828,7 @@ ${lanes.join("\n")} ), 0 /* None */); break; } - case 279 /* NamespaceExport */: + case 280 /* NamespaceExport */: addResult(factory.createExportDeclaration( /*modifiers*/ void 0, @@ -52399,7 +52838,7 @@ ${lanes.join("\n")} factory.createStringLiteral(getSpecifierForModuleSymbol(target, context)) ), 0 /* None */); break; - case 275 /* ImportSpecifier */: { + case 276 /* ImportSpecifier */: { const generatedSpecifier = getSpecifierForModuleSymbol(target.parent || target, context); const specifier2 = bundled ? factory.createStringLiteral(generatedSpecifier) : node.parent.parent.parent.moduleSpecifier; addResult(factory.createImportDeclaration( @@ -52424,7 +52863,7 @@ ${lanes.join("\n")} ), 0 /* None */); break; } - case 280 /* ExportSpecifier */: + case 281 /* ExportSpecifier */: const specifier = node.parent.parent.moduleSpecifier; serializeExportSpecifier( unescapeLeadingUnderscores(symbol.escapedName), @@ -52432,12 +52871,12 @@ ${lanes.join("\n")} specifier && isStringLiteralLike(specifier) ? factory.createStringLiteral(specifier.text) : void 0 ); break; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: serializeMaybeAliasAssignment(symbol); break; - case 225 /* BinaryExpression */: - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 226 /* BinaryExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: if (symbol.escapedName === "default" /* Default */ || symbol.escapedName === "export=" /* ExportEquals */) { serializeMaybeAliasAssignment(symbol); } else { @@ -52544,7 +52983,7 @@ ${lanes.join("\n")} void 0, serializeTypeForDeclaration(context, typeToSerialize, symbol, enclosingDeclaration, includePrivateSymbol, bundled) ) - ], ((_a = context.enclosingDeclaration) == null ? void 0 : _a.kind) === 266 /* ModuleDeclaration */ ? 1 /* Let */ : 2 /* Const */) + ], ((_a = context.enclosingDeclaration) == null ? void 0 : _a.kind) === 267 /* ModuleDeclaration */ ? 1 /* Let */ : 2 /* Const */) ); addResult( statement, @@ -52917,10 +53356,10 @@ ${lanes.join("\n")} return void 0; } function isTopLevelInExternalModuleAugmentation(node) { - return node && node.parent && node.parent.kind === 267 /* ModuleBlock */ && isExternalModuleAugmentation(node.parent.parent); + return node && node.parent && node.parent.kind === 268 /* ModuleBlock */ && isExternalModuleAugmentation(node.parent.parent); } function isDefaultBindingContext(location) { - return location.kind === 311 /* SourceFile */ || isAmbientModule(location); + return location.kind === 312 /* SourceFile */ || isAmbientModule(location); } function getNameOfSymbolFromNameType(symbol, context) { const nameType = getSymbolLinks(symbol).nameType; @@ -52968,17 +53407,17 @@ ${lanes.join("\n")} if (!declaration) { declaration = symbol.declarations[0]; } - if (declaration.parent && declaration.parent.kind === 259 /* VariableDeclaration */) { + if (declaration.parent && declaration.parent.kind === 260 /* VariableDeclaration */) { return declarationNameToString(declaration.parent.name); } switch (declaration.kind) { - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: if (context && !context.encounteredError && !(context.flags & 131072 /* AllowAnonymousIdentifier */)) { context.encounteredError = true; } - return declaration.kind === 230 /* ClassExpression */ ? "(Anonymous class)" : "(Anonymous function)"; + return declaration.kind === 231 /* ClassExpression */ ? "(Anonymous class)" : "(Anonymous function)"; } } const name = getNameOfSymbolFromNameType(symbol, context); @@ -52995,66 +53434,66 @@ ${lanes.join("\n")} return false; function determineIfDeclarationIsVisible() { switch (node.kind) { - case 344 /* JSDocCallbackTag */: - case 352 /* JSDocTypedefTag */: - case 346 /* JSDocEnumTag */: + case 345 /* JSDocCallbackTag */: + case 353 /* JSDocTypedefTag */: + case 347 /* JSDocEnumTag */: return !!(node.parent && node.parent.parent && node.parent.parent.parent && isSourceFile(node.parent.parent.parent)); - case 207 /* BindingElement */: + case 208 /* BindingElement */: return isDeclarationVisible(node.parent.parent); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: if (isBindingPattern(node.name) && !node.name.elements.length) { return false; } - case 266 /* ModuleDeclaration */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 261 /* FunctionDeclaration */: - case 265 /* EnumDeclaration */: - case 270 /* ImportEqualsDeclaration */: + case 267 /* ModuleDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 262 /* FunctionDeclaration */: + case 266 /* EnumDeclaration */: + case 271 /* ImportEqualsDeclaration */: if (isExternalModuleAugmentation(node)) { return true; } const parent2 = getDeclarationContainer(node); - if (!(getCombinedModifierFlags(node) & 1 /* Export */) && !(node.kind !== 270 /* ImportEqualsDeclaration */ && parent2.kind !== 311 /* SourceFile */ && parent2.flags & 16777216 /* Ambient */)) { + if (!(getCombinedModifierFlagsCached(node) & 1 /* Export */) && !(node.kind !== 271 /* ImportEqualsDeclaration */ && parent2.kind !== 312 /* SourceFile */ && parent2.flags & 33554432 /* Ambient */)) { return isGlobalSourceFile(parent2); } return isDeclarationVisible(parent2); - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: if (hasEffectiveModifier(node, 8 /* Private */ | 16 /* Protected */)) { return false; } - case 175 /* Constructor */: - case 179 /* ConstructSignature */: - case 178 /* CallSignature */: - case 180 /* IndexSignature */: - case 168 /* Parameter */: - case 267 /* ModuleBlock */: - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 186 /* TypeLiteral */: - case 182 /* TypeReference */: - case 187 /* ArrayType */: - case 188 /* TupleType */: - case 191 /* UnionType */: - case 192 /* IntersectionType */: - case 195 /* ParenthesizedType */: - case 201 /* NamedTupleMember */: + case 176 /* Constructor */: + case 180 /* ConstructSignature */: + case 179 /* CallSignature */: + case 181 /* IndexSignature */: + case 169 /* Parameter */: + case 268 /* ModuleBlock */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 187 /* TypeLiteral */: + case 183 /* TypeReference */: + case 188 /* ArrayType */: + case 189 /* TupleType */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: + case 196 /* ParenthesizedType */: + case 202 /* NamedTupleMember */: return isDeclarationVisible(node.parent); - case 272 /* ImportClause */: - case 273 /* NamespaceImport */: - case 275 /* ImportSpecifier */: + case 273 /* ImportClause */: + case 274 /* NamespaceImport */: + case 276 /* ImportSpecifier */: return false; - case 167 /* TypeParameter */: - case 311 /* SourceFile */: - case 269 /* NamespaceExportDeclaration */: + case 168 /* TypeParameter */: + case 312 /* SourceFile */: + case 270 /* NamespaceExportDeclaration */: return true; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return false; default: return false; @@ -53063,7 +53502,7 @@ ${lanes.join("\n")} } function collectLinkedAliases(node, setVisibility) { let exportSymbol; - if (node.parent && node.parent.kind === 276 /* ExportAssignment */) { + if (node.parent && node.parent.kind === 277 /* ExportAssignment */) { exportSymbol = resolveName( node, node.escapedText, @@ -53074,7 +53513,7 @@ ${lanes.join("\n")} /*isUse*/ false ); - } else if (node.parent.kind === 280 /* ExportSpecifier */) { + } else if (node.parent.kind === 281 /* ExportSpecifier */) { exportSymbol = getTargetOfExportSpecifier(node.parent, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */); } let result; @@ -53178,12 +53617,12 @@ ${lanes.join("\n")} function getDeclarationContainer(node) { return findAncestor(getRootDeclaration(node), (node2) => { switch (node2.kind) { - case 259 /* VariableDeclaration */: - case 260 /* VariableDeclarationList */: - case 275 /* ImportSpecifier */: - case 274 /* NamedImports */: - case 273 /* NamespaceImport */: - case 272 /* ImportClause */: + case 260 /* VariableDeclaration */: + case 261 /* VariableDeclarationList */: + case 276 /* ImportSpecifier */: + case 275 /* NamedImports */: + case 274 /* NamespaceImport */: + case 273 /* ImportClause */: return false; default: return true; @@ -53202,6 +53641,17 @@ ${lanes.join("\n")} var _a; return getTypeOfPropertyOfType(type, name) || ((_a = getApplicableIndexInfoForName(type, name)) == null ? void 0 : _a.type) || unknownType; } + function getTypeOfPropertyOrIndexSignatureOfType(type, name) { + var _a; + let propType; + return getTypeOfPropertyOfType(type, name) || (propType = (_a = getApplicableIndexInfoForName(type, name)) == null ? void 0 : _a.type) && addOptionality( + propType, + /*isProperty*/ + true, + /*isOptional*/ + true + ); + } function isTypeAny(type) { return type && (type.flags & 1 /* Any */) !== 0; } @@ -53301,23 +53751,23 @@ ${lanes.join("\n")} function getParentElementAccess(node) { const ancestor = node.parent.parent; switch (ancestor.kind) { - case 207 /* BindingElement */: - case 302 /* PropertyAssignment */: + case 208 /* BindingElement */: + case 303 /* PropertyAssignment */: return getSyntheticElementAccess(ancestor); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return getSyntheticElementAccess(node.parent); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return ancestor.initializer; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return ancestor.right; } } function getDestructuringPropertyName(node) { const parent2 = node.parent; - if (node.kind === 207 /* BindingElement */ && parent2.kind === 205 /* ObjectBindingPattern */) { + if (node.kind === 208 /* BindingElement */ && parent2.kind === 206 /* ObjectBindingPattern */) { return getLiteralPropertyNameText(node.propertyName || node.name); } - if (node.kind === 302 /* PropertyAssignment */ || node.kind === 303 /* ShorthandPropertyAssignment */) { + if (node.kind === 303 /* PropertyAssignment */ || node.kind === 304 /* ShorthandPropertyAssignment */) { return getLiteralPropertyNameText(node.name); } return "" + parent2.elements.indexOf(node); @@ -53336,17 +53786,17 @@ ${lanes.join("\n")} return parentType; } const pattern = declaration.parent; - if (strictNullChecks && declaration.flags & 16777216 /* Ambient */ && isParameterDeclaration(declaration)) { + if (strictNullChecks && declaration.flags & 33554432 /* Ambient */ && isParameterDeclaration(declaration)) { parentType = getNonNullableType(parentType); } else if (strictNullChecks && pattern.parent.initializer && !(getTypeFacts(getTypeOfInitializer(pattern.parent.initializer)) & 65536 /* EQUndefined */)) { parentType = getTypeWithFacts(parentType, 524288 /* NEUndefined */); } let type; - if (pattern.kind === 205 /* ObjectBindingPattern */) { + if (pattern.kind === 206 /* ObjectBindingPattern */) { if (declaration.dotDotDotToken) { parentType = getReducedType(parentType); if (parentType.flags & 2 /* Unknown */ || !isValidSpreadType(parentType)) { - error(declaration, Diagnostics.Rest_types_may_only_be_created_from_object_types); + error2(declaration, Diagnostics.Rest_types_may_only_be_created_from_object_types); return errorType; } const literalMembers = []; @@ -53406,13 +53856,13 @@ ${lanes.join("\n")} /*excludeJSDocTypeAssertions*/ true ); - return expr.kind === 208 /* ArrayLiteralExpression */ && expr.elements.length === 0; + return expr.kind === 209 /* ArrayLiteralExpression */ && expr.elements.length === 0; } function addOptionality(type, isProperty = false, isOptional = true) { return strictNullChecks && isOptional ? getOptionalType(type, isProperty) : type; } function getTypeForVariableLikeDeclaration(declaration, includeOptionality, checkMode) { - if (isVariableDeclaration(declaration) && declaration.parent.parent.kind === 248 /* ForInStatement */) { + if (isVariableDeclaration(declaration) && declaration.parent.parent.kind === 249 /* ForInStatement */) { const indexType = getIndexType(getNonNullableTypeIfNeeded(checkExpression( declaration.parent.parent.expression, /*checkMode*/ @@ -53420,7 +53870,7 @@ ${lanes.join("\n")} ))); return indexType.flags & (262144 /* TypeParameter */ | 4194304 /* Index */) ? getExtractStringType(indexType) : stringType; } - if (isVariableDeclaration(declaration) && declaration.parent.parent.kind === 249 /* ForOfStatement */) { + if (isVariableDeclaration(declaration) && declaration.parent.parent.kind === 250 /* ForOfStatement */) { const forOfStatement = declaration.parent.parent; return checkRightHandSideOfForOf(forOfStatement) || anyType; } @@ -53439,8 +53889,8 @@ ${lanes.join("\n")} if (declaredType) { return addOptionality(declaredType, isProperty, isOptional); } - if ((noImplicitAny || isInJSFile(declaration)) && isVariableDeclaration(declaration) && !isBindingPattern(declaration.name) && !(getCombinedModifierFlags(declaration) & 1 /* Export */) && !(declaration.flags & 16777216 /* Ambient */)) { - if (!(getCombinedNodeFlags(declaration) & 2 /* Const */) && (!declaration.initializer || isNullOrUndefined3(declaration.initializer))) { + if ((noImplicitAny || isInJSFile(declaration)) && isVariableDeclaration(declaration) && !isBindingPattern(declaration.name) && !(getCombinedModifierFlagsCached(declaration) & 1 /* Export */) && !(declaration.flags & 33554432 /* Ambient */)) { + if (!(getCombinedNodeFlagsCached(declaration) & 6 /* Constant */) && (!declaration.initializer || isNullOrUndefined3(declaration.initializer))) { return autoType; } if (declaration.initializer && isEmptyArrayLiteral2(declaration.initializer)) { @@ -53449,8 +53899,8 @@ ${lanes.join("\n")} } if (isParameter(declaration)) { const func = declaration.parent; - if (func.kind === 177 /* SetAccessor */ && hasBindableName(func)) { - const getter = getDeclarationOfKind(getSymbolOfDeclaration(declaration.parent), 176 /* GetAccessor */); + if (func.kind === 178 /* SetAccessor */ && hasBindableName(func)) { + const getter = getDeclarationOfKind(getSymbolOfDeclaration(declaration.parent), 177 /* GetAccessor */); if (getter) { const getterSignature = getSignatureFromDeclaration(getter); const thisParameter = getAccessorThisParameter(func); @@ -53524,7 +53974,7 @@ ${lanes.join("\n")} const links = getSymbolLinks(symbol); if (links.isConstructorDeclaredProperty === void 0) { links.isConstructorDeclaredProperty = false; - links.isConstructorDeclaredProperty = !!getDeclaringConstructor(symbol) && every(symbol.declarations, (declaration) => isBinaryExpression(declaration) && isPossiblyAliasedThisProperty(declaration) && (declaration.left.kind !== 211 /* ElementAccessExpression */ || isStringOrNumericLiteralLike(declaration.left.argumentExpression)) && !getAnnotatedTypeForAssignmentDeclaration( + links.isConstructorDeclaredProperty = !!getDeclaringConstructor(symbol) && every(symbol.declarations, (declaration) => isBinaryExpression(declaration) && isPossiblyAliasedThisProperty(declaration) && (declaration.left.kind !== 212 /* ElementAccessExpression */ || isStringOrNumericLiteralLike(declaration.left.argumentExpression)) && !getAnnotatedTypeForAssignmentDeclaration( /*declaredType*/ void 0, declaration, @@ -53552,7 +54002,7 @@ ${lanes.join("\n")} /*includeClassComputedPropertyName*/ false ); - if (container && (container.kind === 175 /* Constructor */ || isJSConstructor(container))) { + if (container && (container.kind === 176 /* Constructor */ || isJSConstructor(container))) { return container; } } @@ -53579,7 +54029,7 @@ ${lanes.join("\n")} reference.flowNode = staticBlock.returnFlowNode; const flowType = getFlowTypeOfProperty(reference, symbol); if (noImplicitAny && (flowType === autoType || flowType === autoArrayType)) { - error(symbol.valueDeclaration, Diagnostics.Member_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType)); + error2(symbol.valueDeclaration, Diagnostics.Member_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType)); } if (everyType(flowType, isNullableType)) { continue; @@ -53595,7 +54045,7 @@ ${lanes.join("\n")} reference.flowNode = constructor.returnFlowNode; const flowType = getFlowTypeOfProperty(reference, symbol); if (noImplicitAny && (flowType === autoType || flowType === autoArrayType)) { - error(symbol.valueDeclaration, Diagnostics.Member_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType)); + error2(symbol.valueDeclaration, Diagnostics.Member_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType)); } return everyType(flowType, isNullableType) ? void 0 : convertAutoToAny(flowType); } @@ -53667,7 +54117,7 @@ ${lanes.join("\n")} false, definedInMethod && !definedInConstructor )); - if (symbol.valueDeclaration && filterType(widened, (t) => !!(t.flags & ~98304 /* Nullable */)) === neverType) { + if (symbol.valueDeclaration && isInJSFile(symbol.valueDeclaration) && filterType(widened, (t) => !!(t.flags & ~98304 /* Nullable */)) === neverType) { reportImplicitAny(symbol.valueDeclaration, anyType); return anyType; } @@ -53770,11 +54220,11 @@ ${lanes.join("\n")} const unescapedName = unescapeLeadingUnderscores(s.escapedName); const exportedMemberName = ((_a = tryCast(exportedMember.valueDeclaration, isNamedDeclaration)) == null ? void 0 : _a.name) || exportedMember.valueDeclaration; addRelatedInfo( - error(s.valueDeclaration, Diagnostics.Duplicate_identifier_0, unescapedName), + error2(s.valueDeclaration, Diagnostics.Duplicate_identifier_0, unescapedName), createDiagnosticForNode(exportedMemberName, Diagnostics._0_was_also_declared_here, unescapedName) ); addRelatedInfo( - error(exportedMemberName, Diagnostics.Duplicate_identifier_0, unescapedName), + error2(exportedMemberName, Diagnostics.Duplicate_identifier_0, unescapedName), createDiagnosticForNode(s.valueDeclaration, Diagnostics._0_was_also_declared_here, unescapedName) ); } @@ -53832,7 +54282,7 @@ ${lanes.join("\n")} /*includeClassComputedPropertyName*/ false ); - return thisContainer.kind === 175 /* Constructor */ || thisContainer.kind === 261 /* FunctionDeclaration */ || thisContainer.kind === 217 /* FunctionExpression */ && !isPrototypePropertyAssignment(thisContainer.parent); + return thisContainer.kind === 176 /* Constructor */ || thisContainer.kind === 262 /* FunctionDeclaration */ || thisContainer.kind === 218 /* FunctionExpression */ && !isPrototypePropertyAssignment(thisContainer.parent); } function getConstructorDefinedThisAssignmentTypes(types, declarations) { Debug.assert(types.length === declarations.length); @@ -53906,7 +54356,7 @@ ${lanes.join("\n")} function getTypeFromArrayBindingPattern(pattern, includePatternInType, reportErrors2) { const elements = pattern.elements; const lastElement = lastOrUndefined(elements); - const restElement = lastElement && lastElement.kind === 207 /* BindingElement */ && lastElement.dotDotDotToken ? lastElement : void 0; + const restElement = lastElement && lastElement.kind === 208 /* BindingElement */ && lastElement.dotDotDotToken ? lastElement : void 0; if (elements.length === 0 || elements.length === 1 && restElement) { return languageVersion >= 2 /* ES2015 */ ? createIterableType(anyType) : anyArrayType; } @@ -53922,7 +54372,7 @@ ${lanes.join("\n")} return result; } function getTypeFromBindingPattern(pattern, includePatternInType = false, reportErrors2 = false) { - return pattern.kind === 205 /* ObjectBindingPattern */ ? getTypeFromObjectBindingPattern(pattern, includePatternInType, reportErrors2) : getTypeFromArrayBindingPattern(pattern, includePatternInType, reportErrors2); + return pattern.kind === 206 /* ObjectBindingPattern */ ? getTypeFromObjectBindingPattern(pattern, includePatternInType, reportErrors2) : getTypeFromArrayBindingPattern(pattern, includePatternInType, reportErrors2); } function getWidenedTypeForVariableLikeDeclaration(declaration, reportErrors2) { return widenTypeForVariableLikeDeclaration(getTypeForVariableLikeDeclaration( @@ -53963,7 +54413,7 @@ ${lanes.join("\n")} } function declarationBelongsToPrivateAmbientMember(declaration) { const root = getRootDeclaration(declaration); - const memberDeclaration = root.kind === 168 /* Parameter */ ? root.parent : root; + const memberDeclaration = root.kind === 169 /* Parameter */ ? root.parent : root; return isPrivateWithinAmbient(memberDeclaration); } function tryGetTypeFromEffectiveTypeNode(node) { @@ -54037,7 +54487,7 @@ ${lanes.join("\n")} return reportCircularityError(symbol); } let type; - if (declaration.kind === 276 /* ExportAssignment */) { + if (declaration.kind === 277 /* ExportAssignment */) { type = widenTypeForVariableLikeDeclaration(tryGetTypeFromEffectiveTypeNode(declaration) || checkExpressionCached(declaration.expression), declaration); } else if (isBinaryExpression(declaration) || isInJSFile(declaration) && (isCallExpression(declaration) || (isPropertyAccessExpression(declaration) || isBindableStaticElementAccessExpression(declaration)) && isBinaryExpression(declaration.parent))) { type = getWidenedTypeForAssignmentDeclaration(symbol); @@ -54078,13 +54528,13 @@ ${lanes.join("\n")} function getAnnotatedAccessorTypeNode(accessor) { if (accessor) { switch (accessor.kind) { - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: const getterTypeAnnotation = getEffectiveReturnTypeNode(accessor); return getterTypeAnnotation; - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: const setterTypeAnnotation = getEffectiveSetAccessorTypeAnnotationNode(accessor); return setterTypeAnnotation; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: Debug.assert(hasAccessorModifier(accessor)); const accessorTypeAnnotation = getEffectiveTypeAnnotationNode(accessor); return accessorTypeAnnotation; @@ -54109,9 +54559,9 @@ ${lanes.join("\n")} if (!pushTypeResolution(symbol, 0 /* Type */)) { return errorType; } - const getter = getDeclarationOfKind(symbol, 176 /* GetAccessor */); - const setter = getDeclarationOfKind(symbol, 177 /* SetAccessor */); - const accessor = tryCast(getDeclarationOfKind(symbol, 171 /* PropertyDeclaration */), isAutoAccessorPropertyDeclaration); + const getter = getDeclarationOfKind(symbol, 177 /* GetAccessor */); + const setter = getDeclarationOfKind(symbol, 178 /* SetAccessor */); + const accessor = tryCast(getDeclarationOfKind(symbol, 172 /* PropertyDeclaration */), isAutoAccessorPropertyDeclaration); let type = getter && isInJSFile(getter) && getTypeForDeclarationFromJSDocComment(getter) || getAnnotatedAccessorType(getter) || getAnnotatedAccessorType(setter) || getAnnotatedAccessorType(accessor) || getter && getter.body && getReturnTypeFromBody(getter) || accessor && accessor.initializer && getWidenedTypeForVariableLikeDeclaration( accessor, /*reportErrors*/ @@ -54129,13 +54579,13 @@ ${lanes.join("\n")} } if (!popTypeResolution()) { if (getAnnotatedAccessorTypeNode(getter)) { - error(getter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); + error2(getter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); } else if (getAnnotatedAccessorTypeNode(setter)) { - error(setter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); + error2(setter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); } else if (getAnnotatedAccessorTypeNode(accessor)) { - error(setter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); + error2(setter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); } else if (getter && noImplicitAny) { - error(getter, Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, symbolToString(symbol)); + error2(getter, Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, symbolToString(symbol)); } type = anyType; } @@ -54149,11 +54599,11 @@ ${lanes.join("\n")} if (!pushTypeResolution(symbol, 8 /* WriteType */)) { return errorType; } - const setter = getDeclarationOfKind(symbol, 177 /* SetAccessor */) ?? tryCast(getDeclarationOfKind(symbol, 171 /* PropertyDeclaration */), isAutoAccessorPropertyDeclaration); + const setter = getDeclarationOfKind(symbol, 178 /* SetAccessor */) ?? tryCast(getDeclarationOfKind(symbol, 172 /* PropertyDeclaration */), isAutoAccessorPropertyDeclaration); let writeType = getAnnotatedAccessorType(setter); if (!popTypeResolution()) { if (getAnnotatedAccessorTypeNode(setter)) { - error(setter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); + error2(setter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); } writeType = anyType; } @@ -54189,7 +54639,7 @@ ${lanes.join("\n")} const declaration = symbol.valueDeclaration; if (symbol.flags & 1536 /* Module */ && isShorthandAmbientModuleSymbol(symbol)) { return anyType; - } else if (declaration && (declaration.kind === 225 /* BinaryExpression */ || isAccessExpression(declaration) && declaration.parent.kind === 225 /* BinaryExpression */)) { + } else if (declaration && (declaration.kind === 226 /* BinaryExpression */ || isAccessExpression(declaration) && declaration.parent.kind === 226 /* BinaryExpression */)) { return getWidenedTypeForAssignmentDeclaration(symbol); } else if (symbol.flags & 512 /* ValueModule */ && declaration && isSourceFile(declaration) && declaration.commonJsModuleIndicator) { const resolvedModule = resolveExternalModuleSymbol(symbol); @@ -54231,7 +54681,7 @@ ${lanes.join("\n")} true ); const declaredType = firstDefined(exportSymbol == null ? void 0 : exportSymbol.declarations, (d) => isExportAssignment(d) ? tryGetTypeFromEffectiveTypeNode(d) : void 0); - links.type = (exportSymbol == null ? void 0 : exportSymbol.declarations) && isDuplicatedCommonJSExport(exportSymbol.declarations) && symbol.declarations.length ? getFlowTypeFromCommonJSExport(exportSymbol) : isDuplicatedCommonJSExport(symbol.declarations) ? autoType : declaredType ? declaredType : getAllSymbolFlags(targetSymbol) & 111551 /* Value */ ? getTypeOfSymbol(targetSymbol) : errorType; + links.type = (exportSymbol == null ? void 0 : exportSymbol.declarations) && isDuplicatedCommonJSExport(exportSymbol.declarations) && symbol.declarations.length ? getFlowTypeFromCommonJSExport(exportSymbol) : isDuplicatedCommonJSExport(symbol.declarations) ? autoType : declaredType ? declaredType : getSymbolFlags(targetSymbol) & 111551 /* Value */ ? getTypeOfSymbol(targetSymbol) : errorType; } return links.type; } @@ -54246,15 +54696,15 @@ ${lanes.join("\n")} function reportCircularityError(symbol) { const declaration = symbol.valueDeclaration; if (getEffectiveTypeAnnotationNode(declaration)) { - error( + error2( symbol.valueDeclaration, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol) ); return errorType; } - if (noImplicitAny && (declaration.kind !== 168 /* Parameter */ || declaration.initializer)) { - error( + if (noImplicitAny && (declaration.kind !== 169 /* Parameter */ || declaration.initializer)) { + error2( symbol.valueDeclaration, Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer, symbolToString(symbol) @@ -54367,43 +54817,43 @@ ${lanes.join("\n")} return void 0; } switch (node.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 172 /* MethodSignature */: - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 323 /* JSDocFunctionType */: - case 261 /* FunctionDeclaration */: - case 173 /* MethodDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 264 /* TypeAliasDeclaration */: - case 351 /* JSDocTemplateTag */: - case 352 /* JSDocTypedefTag */: - case 346 /* JSDocEnumTag */: - case 344 /* JSDocCallbackTag */: - case 199 /* MappedType */: - case 193 /* ConditionalType */: { + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 173 /* MethodSignature */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 324 /* JSDocFunctionType */: + case 262 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 265 /* TypeAliasDeclaration */: + case 352 /* JSDocTemplateTag */: + case 353 /* JSDocTypedefTag */: + case 347 /* JSDocEnumTag */: + case 345 /* JSDocCallbackTag */: + case 200 /* MappedType */: + case 194 /* ConditionalType */: { const outerTypeParameters = getOuterTypeParameters(node, includeThisTypes); - if (node.kind === 199 /* MappedType */) { + if (node.kind === 200 /* MappedType */) { return append(outerTypeParameters, getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(node.typeParameter))); - } else if (node.kind === 193 /* ConditionalType */) { + } else if (node.kind === 194 /* ConditionalType */) { return concatenate(outerTypeParameters, getInferTypeParameters(node)); } const outerAndOwnTypeParameters = appendTypeParameters(outerTypeParameters, getEffectiveTypeParameterDeclarations(node)); - const thisType = includeThisTypes && (node.kind === 262 /* ClassDeclaration */ || node.kind === 230 /* ClassExpression */ || node.kind === 263 /* InterfaceDeclaration */ || isJSConstructor(node)) && getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(node)).thisType; + const thisType = includeThisTypes && (node.kind === 263 /* ClassDeclaration */ || node.kind === 231 /* ClassExpression */ || node.kind === 264 /* InterfaceDeclaration */ || isJSConstructor(node)) && getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(node)).thisType; return thisType ? append(outerAndOwnTypeParameters, thisType) : outerAndOwnTypeParameters; } - case 347 /* JSDocParameterTag */: + case 348 /* JSDocParameterTag */: const paramSymbol = getParameterSymbolFromJSDoc(node); if (paramSymbol) { node = paramSymbol.valueDeclaration; } break; - case 326 /* JSDoc */: { + case 327 /* JSDoc */: { const outerTypeParameters = getOuterTypeParameters(node, includeThisTypes); return node.tags ? appendTypeParameters(outerTypeParameters, flatMap(node.tags, (t) => isJSDocTemplateTag(t) ? t.typeParameters : void 0)) : outerTypeParameters; } @@ -54413,14 +54863,14 @@ ${lanes.join("\n")} function getOuterTypeParametersOfClassOrInterface(symbol) { var _a; const declaration = symbol.flags & 32 /* Class */ || symbol.flags & 16 /* Function */ ? symbol.valueDeclaration : (_a = symbol.declarations) == null ? void 0 : _a.find((decl) => { - if (decl.kind === 263 /* InterfaceDeclaration */) { + if (decl.kind === 264 /* InterfaceDeclaration */) { return true; } - if (decl.kind !== 259 /* VariableDeclaration */) { + if (decl.kind !== 260 /* VariableDeclaration */) { return false; } const initializer = decl.initializer; - return !!initializer && (initializer.kind === 217 /* FunctionExpression */ || initializer.kind === 218 /* ArrowFunction */); + return !!initializer && (initializer.kind === 218 /* FunctionExpression */ || initializer.kind === 219 /* ArrowFunction */); }); Debug.assert(!!declaration, "Class was missing valueDeclaration -OR- non-class had no interface declarations"); return getOuterTypeParameters(declaration); @@ -54431,7 +54881,7 @@ ${lanes.join("\n")} } let result; for (const node of symbol.declarations) { - if (node.kind === 263 /* InterfaceDeclaration */ || node.kind === 262 /* ClassDeclaration */ || node.kind === 230 /* ClassExpression */ || isJSConstructor(node) || isTypeAlias(node)) { + if (node.kind === 264 /* InterfaceDeclaration */ || node.kind === 263 /* ClassDeclaration */ || node.kind === 231 /* ClassExpression */ || isJSConstructor(node) || isTypeAlias(node)) { const declaration = node; result = appendTypeParameters(result, getEffectiveTypeParameterDeclarations(declaration)); } @@ -54499,11 +54949,11 @@ ${lanes.join("\n")} resolveStructuredTypeMembers(baseConstructorType); } if (!popTypeResolution()) { - error(type.symbol.valueDeclaration, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression, symbolToString(type.symbol)); + error2(type.symbol.valueDeclaration, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression, symbolToString(type.symbol)); return type.resolvedBaseConstructorType = errorType; } if (!(baseConstructorType.flags & 1 /* Any */) && baseConstructorType !== nullWideningType && !isConstructorType(baseConstructorType)) { - const err = error(baseTypeNode.expression, Diagnostics.Type_0_is_not_a_constructor_function_type, typeToString(baseConstructorType)); + const err = error2(baseTypeNode.expression, Diagnostics.Type_0_is_not_a_constructor_function_type, typeToString(baseConstructorType)); if (baseConstructorType.flags & 262144 /* TypeParameter */) { const constraint = getConstraintFromTypeParameter(baseConstructorType); let ctorReturn = unknownType; @@ -54545,7 +54995,7 @@ ${lanes.join("\n")} return resolvedImplementsTypes; } function reportCircularBaseType(node, type) { - error(node, Diagnostics.Type_0_recursively_references_itself_as_a_base_type, typeToString( + error2(node, Diagnostics.Type_0_recursively_references_itself_as_a_base_type, typeToString( type, /*enclosingDeclaration*/ void 0, @@ -54569,7 +55019,7 @@ ${lanes.join("\n")} } if (!popTypeResolution() && type.symbol.declarations) { for (const declaration of type.symbol.declarations) { - if (declaration.kind === 262 /* ClassDeclaration */ || declaration.kind === 263 /* InterfaceDeclaration */) { + if (declaration.kind === 263 /* ClassDeclaration */ || declaration.kind === 264 /* InterfaceDeclaration */) { reportCircularBaseType(declaration, type); } } @@ -54599,7 +55049,7 @@ ${lanes.join("\n")} } else { const constructors = getInstantiatedConstructorsForTypeArguments(baseConstructorType, baseTypeNode.typeArguments, baseTypeNode); if (!constructors.length) { - error(baseTypeNode.expression, Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments); + error2(baseTypeNode.expression, Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments); return type.resolvedBaseTypes = emptyArray; } baseType = getReturnTypeOfSignature(constructors[0]); @@ -54619,7 +55069,7 @@ ${lanes.join("\n")} return type.resolvedBaseTypes = emptyArray; } if (type === reducedBaseType || hasBaseType(reducedBaseType, type)) { - error( + error2( type.symbol.valueDeclaration, Diagnostics.Type_0_recursively_references_itself_as_a_base_type, typeToString( @@ -54658,7 +55108,7 @@ ${lanes.join("\n")} type.resolvedBaseTypes = type.resolvedBaseTypes || emptyArray; if (type.symbol.declarations) { for (const declaration of type.symbol.declarations) { - if (declaration.kind === 263 /* InterfaceDeclaration */ && getInterfaceBaseTypeNodes(declaration)) { + if (declaration.kind === 264 /* InterfaceDeclaration */ && getInterfaceBaseTypeNodes(declaration)) { for (const node of getInterfaceBaseTypeNodes(declaration)) { const baseType = getReducedType(getTypeFromTypeNode(node)); if (!isErrorType(baseType)) { @@ -54673,7 +55123,7 @@ ${lanes.join("\n")} reportCircularBaseType(declaration, type); } } else { - error(node, Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members); + error2(node, Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members); } } } @@ -54686,8 +55136,8 @@ ${lanes.join("\n")} return true; } for (const declaration of symbol.declarations) { - if (declaration.kind === 263 /* InterfaceDeclaration */) { - if (declaration.flags & 128 /* ContainsThis */) { + if (declaration.kind === 264 /* InterfaceDeclaration */) { + if (declaration.flags & 256 /* ContainsThis */) { return false; } const baseTypeNodes = getInterfaceBaseTypeNodes(declaration); @@ -54758,10 +55208,10 @@ ${lanes.join("\n")} } } else { type = errorType; - if (declaration.kind === 346 /* JSDocEnumTag */) { - error(declaration.typeExpression.type, Diagnostics.Type_alias_0_circularly_references_itself, symbolToString(symbol)); + if (declaration.kind === 347 /* JSDocEnumTag */) { + error2(declaration.typeExpression.type, Diagnostics.Type_alias_0_circularly_references_itself, symbolToString(symbol)); } else { - error(isNamedDeclaration(declaration) ? declaration.name || declaration : declaration, Diagnostics.Type_alias_0_circularly_references_itself, symbolToString(symbol)); + error2(isNamedDeclaration(declaration) ? declaration.name || declaration : declaration, Diagnostics.Type_alias_0_circularly_references_itself, symbolToString(symbol)); } } links.declaredType = type; @@ -54777,7 +55227,7 @@ ${lanes.join("\n")} const memberTypeList = []; if (symbol.declarations) { for (const declaration of symbol.declarations) { - if (declaration.kind === 265 /* EnumDeclaration */) { + if (declaration.kind === 266 /* EnumDeclaration */) { for (const member of declaration.members) { if (hasBindableName(member)) { const memberSymbol = getSymbolOfDeclaration(member); @@ -54862,18 +55312,18 @@ ${lanes.join("\n")} case 159 /* UnknownKeyword */: case 154 /* StringKeyword */: case 150 /* NumberKeyword */: - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: case 136 /* BooleanKeyword */: case 155 /* SymbolKeyword */: case 151 /* ObjectKeyword */: case 116 /* VoidKeyword */: case 157 /* UndefinedKeyword */: case 146 /* NeverKeyword */: - case 200 /* LiteralType */: + case 201 /* LiteralType */: return true; - case 187 /* ArrayType */: + case 188 /* ArrayType */: return isThislessType(node.elementType); - case 182 /* TypeReference */: + case 183 /* TypeReference */: return !node.typeArguments || node.typeArguments.every(isThislessType); } return false; @@ -54889,21 +55339,21 @@ ${lanes.join("\n")} function isThislessFunctionLikeDeclaration(node) { const returnType = getEffectiveReturnTypeNode(node); const typeParameters = getEffectiveTypeParameterDeclarations(node); - return (node.kind === 175 /* Constructor */ || !!returnType && isThislessType(returnType)) && node.parameters.every(isThislessVariableLikeDeclaration) && typeParameters.every(isThislessTypeParameter); + return (node.kind === 176 /* Constructor */ || !!returnType && isThislessType(returnType)) && node.parameters.every(isThislessVariableLikeDeclaration) && typeParameters.every(isThislessTypeParameter); } function isThisless(symbol) { if (symbol.declarations && symbol.declarations.length === 1) { const declaration = symbol.declarations[0]; if (declaration) { switch (declaration.kind) { - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: return isThislessVariableLikeDeclaration(declaration); - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return isThislessFunctionLikeDeclaration(declaration); } } @@ -54946,9 +55396,6 @@ ${lanes.join("\n")} } return type; } - function isTypeUsableAsPropertyName(type) { - return !!(type.flags & 8576 /* StringOrNumberLiteralOrUnique */); - } function isLateBindableName(node) { if (!isComputedPropertyName(node) && !isElementAccessExpression(node)) { return false; @@ -54969,15 +55416,6 @@ ${lanes.join("\n")} function isNonBindableDynamicName(node) { return isDynamicName(node) && !isLateBindableName(node); } - function getPropertyNameFromType(type) { - if (type.flags & 8192 /* UniqueESSymbol */) { - return type.escapedName; - } - if (type.flags & (128 /* StringLiteral */ | 256 /* NumberLiteral */)) { - return escapeLeadingUnderscores("" + type.value); - } - return Debug.fail(); - } function addDeclarationToLateBoundSymbol(symbol, member, symbolFlags) { Debug.assert(!!(getCheckFlags(symbol) & 4096 /* Late */), "Expected a late-bound symbol."); symbol.flags |= symbolFlags; @@ -55010,8 +55448,8 @@ ${lanes.join("\n")} if (lateSymbol.flags & getExcludedSymbolFlags(symbolFlags) || earlySymbol) { const declarations = earlySymbol ? concatenate(earlySymbol.declarations, lateSymbol.declarations) : lateSymbol.declarations; const name = !(type.flags & 8192 /* UniqueESSymbol */) && unescapeLeadingUnderscores(memberName) || declarationNameToString(declName); - forEach(declarations, (declaration) => error(getNameOfDeclaration(declaration) || declaration, Diagnostics.Property_0_was_also_declared_here, name)); - error(declName || decl, Diagnostics.Duplicate_property_0, name); + forEach(declarations, (declaration) => error2(getNameOfDeclaration(declaration) || declaration, Diagnostics.Property_0_was_also_declared_here, name)); + error2(declName || decl, Diagnostics.Duplicate_property_0, name); lateSymbol = createSymbol(0 /* None */, memberName, 4096 /* Late */); } lateSymbol.links.nameType = type; @@ -55027,6 +55465,7 @@ ${lanes.join("\n")} return links.resolvedSymbol; } function getResolvedMembersOrExportsOfSymbol(symbol, resolutionKind) { + var _a, _b, _c; const links = getSymbolLinks(symbol); if (!links[resolutionKind]) { const isStatic2 = resolutionKind === "resolvedExports" /* resolvedExports */; @@ -55045,7 +55484,7 @@ ${lanes.join("\n")} } } } - const assignments = symbol.assignmentDeclarationMembers; + const assignments = (((_a = symbol.valueDeclaration) == null ? void 0 : _a.kind) === 219 /* ArrowFunction */ || ((_b = symbol.valueDeclaration) == null ? void 0 : _b.kind) === 218 /* FunctionExpression */) && ((_c = getSymbolOfNode(symbol.valueDeclaration.parent)) == null ? void 0 : _c.assignmentDeclarationMembers) || symbol.assignmentDeclarationMembers; if (assignments) { const decls = arrayFrom(assignments.values()); for (const member of decls) { @@ -55174,7 +55613,7 @@ ${lanes.join("\n")} /*resolvedTypePredicate*/ void 0, sig.minArgumentCount, - sig.flags & 39 /* PropagatingFlags */ + sig.flags & 167 /* PropagatingFlags */ ); result.target = sig.target; result.mapper = sig.mapper; @@ -55212,17 +55651,18 @@ ${lanes.join("\n")} function getExpandedParameters(sig, skipUnionExpanding) { if (signatureHasRestParameter(sig)) { const restIndex = sig.parameters.length - 1; + const restName = sig.parameters[restIndex].escapedName; const restType = getTypeOfSymbol(sig.parameters[restIndex]); if (isTupleType(restType)) { - return [expandSignatureParametersWithTupleMembers(restType, restIndex)]; + return [expandSignatureParametersWithTupleMembers(restType, restIndex, restName)]; } else if (!skipUnionExpanding && restType.flags & 1048576 /* Union */ && every(restType.types, isTupleType)) { - return map(restType.types, (t) => expandSignatureParametersWithTupleMembers(t, restIndex)); + return map(restType.types, (t) => expandSignatureParametersWithTupleMembers(t, restIndex, restName)); } } return [sig.parameters]; - function expandSignatureParametersWithTupleMembers(restType, restIndex) { - const elementTypes = getElementTypes(restType); - const associatedNames = getUniqAssociatedNamesFromTupleType(restType); + function expandSignatureParametersWithTupleMembers(restType, restIndex, restName) { + const elementTypes = getTypeArguments(restType); + const associatedNames = getUniqAssociatedNamesFromTupleType(restType, restName); const restParams = map(elementTypes, (t, i) => { const name = associatedNames && associatedNames[i] ? associatedNames[i] : getParameterNameAtPosition(sig, restIndex + i, restType); const flags = restType.target.elementFlags[i]; @@ -55233,10 +55673,10 @@ ${lanes.join("\n")} }); return concatenate(sig.parameters.slice(0, restIndex), restParams); } - function getUniqAssociatedNamesFromTupleType(type) { + function getUniqAssociatedNamesFromTupleType(type, restName) { const associatedNamesMap = /* @__PURE__ */ new Map(); - return map(type.target.labeledElementDeclarations, (labeledElement) => { - const name = getTupleElementLabel(labeledElement); + return map(type.target.labeledElementDeclarations, (labeledElement, i) => { + const name = getTupleElementLabel(labeledElement, i, restName); const prevCounter = associatedNamesMap.get(name); if (prevCounter === void 0) { associatedNamesMap.set(name, 1); @@ -55474,7 +55914,7 @@ ${lanes.join("\n")} /*resolvedTypePredicate*/ void 0, minArgCount, - (left.flags | right.flags) & 39 /* PropagatingFlags */ + (left.flags | right.flags) & 167 /* PropagatingFlags */ ); result.compositeKind = 1048576 /* Union */; result.compositeSignatures = concatenate(left.compositeKind !== 2097152 /* Intersection */ && left.compositeSignatures || [left], [right]); @@ -55622,20 +56062,17 @@ ${lanes.join("\n")} setStructuredTypeMembers(type, members2, callSignatures, constructSignatures, indexInfos2); return; } - let members = emptySymbols; + let members = getExportsOfSymbol(symbol); let indexInfos; - if (symbol.exports) { - members = getExportsOfSymbol(symbol); - if (symbol === globalThisSymbol) { - const varsOnly = /* @__PURE__ */ new Map(); - members.forEach((p) => { - var _a; - if (!(p.flags & 418 /* BlockScoped */) && !(p.flags & 512 /* ValueModule */ && ((_a = p.declarations) == null ? void 0 : _a.length) && every(p.declarations, isAmbientModule))) { - varsOnly.set(p.escapedName, p); - } - }); - members = varsOnly; - } + if (symbol === globalThisSymbol) { + const varsOnly = /* @__PURE__ */ new Map(); + members.forEach((p) => { + var _a; + if (!(p.flags & 418 /* BlockScoped */) && !(p.flags & 512 /* ValueModule */ && ((_a = p.declarations) == null ? void 0 : _a.length) && every(p.declarations, isAmbientModule))) { + varsOnly.set(p.escapedName, p); + } + }); + members = varsOnly; } let baseConstructorIndexInfo; setStructuredTypeMembers(type, members, emptyArray, emptyArray, emptyArray); @@ -55684,7 +56121,7 @@ ${lanes.join("\n")} /*resolvedTypePredicate*/ void 0, sig.minArgumentCount, - sig.flags & 39 /* PropagatingFlags */ + sig.flags & 167 /* PropagatingFlags */ ) : void 0 )); } @@ -55851,7 +56288,7 @@ ${lanes.join("\n")} true ) : symbol.links.checkFlags & 524288 /* StripOptional */ ? removeMissingOrUndefinedType(propType) : propType; if (!popTypeResolution()) { - error(currentNode, Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1, symbolToString(symbol), typeToString(mappedType)); + error2(currentNode, Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1, symbolToString(symbol), typeToString(mappedType)); type = errorType; } symbol.links.type = type; @@ -55880,7 +56317,7 @@ ${lanes.join("\n")} } function isMappedTypeWithKeyofConstraintDeclaration(type) { const constraintDeclaration = getConstraintDeclarationForMappedType(type); - return constraintDeclaration.kind === 197 /* TypeOperator */ && constraintDeclaration.operator === 143 /* KeyOfKeyword */; + return constraintDeclaration.kind === 198 /* TypeOperator */ && constraintDeclaration.operator === 143 /* KeyOfKeyword */; } function getModifiersTypeFromMappedType(type) { if (!type.modifiersType) { @@ -56035,9 +56472,9 @@ ${lanes.join("\n")} function getConstraintOfTypeParameter(typeParameter) { return hasNonCircularBaseConstraint(typeParameter) ? getConstraintFromTypeParameter(typeParameter) : void 0; } - function isConstTypeVariable(type) { + function isConstTypeVariable(type, depth = 0) { var _a; - return !!(type && (type.flags & 262144 /* TypeParameter */ && some((_a = type.symbol) == null ? void 0 : _a.declarations, (d) => hasSyntacticModifier(d, 2048 /* Const */)) || type.flags & 1048576 /* Union */ && some(type.types, isConstTypeVariable) || type.flags & 8388608 /* IndexedAccess */ && isConstTypeVariable(type.objectType) || type.flags & 16777216 /* Conditional */ && isConstTypeVariable(getConstraintOfConditionalType(type)) || type.flags & 33554432 /* Substitution */ && isConstTypeVariable(type.baseType) || isGenericTupleType(type) && findIndex(getElementTypes(type), (t, i) => !!(type.target.elementFlags[i] & 8 /* Variadic */) && isConstTypeVariable(t)) >= 0)); + return depth < 5 && !!(type && (type.flags & 262144 /* TypeParameter */ && some((_a = type.symbol) == null ? void 0 : _a.declarations, (d) => hasSyntacticModifier(d, 2048 /* Const */)) || type.flags & 1048576 /* Union */ && some(type.types, (t) => isConstTypeVariable(t, depth)) || type.flags & 8388608 /* IndexedAccess */ && isConstTypeVariable(type.objectType, depth + 1) || type.flags & 16777216 /* Conditional */ && isConstTypeVariable(getConstraintOfConditionalType(type), depth + 1) || type.flags & 33554432 /* Substitution */ && isConstTypeVariable(type.baseType, depth) || isGenericTupleType(type) && findIndex(getElementTypes(type), (t, i) => !!(type.target.elementFlags[i] & 8 /* Variadic */) && isConstTypeVariable(t, depth)) >= 0)); } function getConstraintOfIndexedAccess(type) { return hasNonCircularBaseConstraint(type) ? getConstraintFromIndexedAccess(type) : void 0; @@ -56177,7 +56614,7 @@ ${lanes.join("\n")} if (t.flags & 262144 /* TypeParameter */) { const errorNode = getConstraintDeclaration(t); if (errorNode) { - const diagnostic = error(errorNode, Diagnostics.Type_parameter_0_has_a_circular_constraint, typeToString(t)); + const diagnostic = error2(errorNode, Diagnostics.Type_parameter_0_has_a_circular_constraint, typeToString(t)); if (currentNode && !isNodeDescendantOf(errorNode, currentNode) && !isNodeDescendantOf(currentNode, errorNode)) { addRelatedInfo(diagnostic, createDiagnosticForNode(currentNode, Diagnostics.Circularity_originates_in_type_at_this_location)); } @@ -56594,7 +57031,35 @@ ${lanes.join("\n")} return emptyArray; } function getSignaturesOfType(type, kind) { - return getSignaturesOfStructuredType(getReducedApparentType(type), kind); + const result = getSignaturesOfStructuredType(getReducedApparentType(type), kind); + if (kind === 0 /* Call */ && !length(result) && type.flags & 1048576 /* Union */) { + if (type.arrayFallbackSignatures) { + return type.arrayFallbackSignatures; + } + let memberName; + if (everyType(type, (t) => { + var _a; + return !!((_a = t.symbol) == null ? void 0 : _a.parent) && isArrayOrTupleSymbol(t.symbol.parent) && (!memberName ? (memberName = t.symbol.escapedName, true) : memberName === t.symbol.escapedName); + })) { + const arrayArg = mapType(type, (t) => getMappedType((isReadonlyArraySymbol(t.symbol.parent) ? globalReadonlyArrayType : globalArrayType).typeParameters[0], t.mapper)); + const arrayType = createArrayType(arrayArg, someType(type, (t) => isReadonlyArraySymbol(t.symbol.parent))); + return type.arrayFallbackSignatures = getSignaturesOfType(getTypeOfPropertyOfType(arrayType, memberName), kind); + } + type.arrayFallbackSignatures = result; + } + return result; + } + function isArrayOrTupleSymbol(symbol) { + if (!symbol || !globalArrayType.symbol || !globalReadonlyArrayType.symbol) { + return false; + } + return !!getSymbolIfSameReference(symbol, globalArrayType.symbol) || !!getSymbolIfSameReference(symbol, globalReadonlyArrayType.symbol); + } + function isReadonlyArraySymbol(symbol) { + if (!symbol || !globalReadonlyArrayType.symbol) { + return false; + } + return !!getSymbolIfSameReference(symbol, globalReadonlyArrayType.symbol); } function findIndexInfo(indexInfos, keyType) { return find(indexInfos, (info) => info.keyType === keyType); @@ -56773,7 +57238,7 @@ ${lanes.join("\n")} } else { parameters.push(paramSymbol); } - if (type && type.kind === 200 /* LiteralType */) { + if (type && type.kind === 201 /* LiteralType */) { flags |= 2 /* HasLiteralTypes */; } const isOptionalParameter2 = isOptionalJSDocPropertyLikeTag(param) || param.initializer || param.questionToken || isRestParameter(param) || iife && parameters.length > iife.arguments.length && !type || isJSDocOptionalParameter(param); @@ -56781,8 +57246,8 @@ ${lanes.join("\n")} minArgumentCount = parameters.length; } } - if ((declaration.kind === 176 /* GetAccessor */ || declaration.kind === 177 /* SetAccessor */) && hasBindableName(declaration) && (!hasThisParameter2 || !thisParameter)) { - const otherKind = declaration.kind === 176 /* GetAccessor */ ? 177 /* SetAccessor */ : 176 /* GetAccessor */; + if ((declaration.kind === 177 /* GetAccessor */ || declaration.kind === 178 /* SetAccessor */) && hasBindableName(declaration) && (!hasThisParameter2 || !thisParameter)) { + const otherKind = declaration.kind === 177 /* GetAccessor */ ? 178 /* SetAccessor */ : 177 /* GetAccessor */; const other = getDeclarationOfKind(getSymbolOfDeclaration(declaration), otherKind); if (other) { thisParameter = getAnnotatedAccessorThisParameter(other); @@ -56873,15 +57338,15 @@ ${lanes.join("\n")} switch (node.kind) { case 80 /* Identifier */: return node.escapedText === argumentsSymbol.escapedName && getReferencedValueSymbol(node) === argumentsSymbol; - case 171 /* PropertyDeclaration */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - return node.name.kind === 166 /* ComputedPropertyName */ && traverse(node.name); - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + return node.name.kind === 167 /* ComputedPropertyName */ && traverse(node.name); + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return traverse(node.expression); - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return traverse(node.initializer); default: return !nodeStartsNewLexicalEnvironment(node) && !isPartOfTypeNode(node) && !!forEachChild(node, traverse); @@ -56968,7 +57433,7 @@ ${lanes.join("\n")} function createTypePredicateFromTypePredicateNode(node, signature) { const parameterName = node.parameterName; const type = node.type && getTypeFromTypeNode(node.type); - return parameterName.kind === 196 /* ThisType */ ? createTypePredicate( + return parameterName.kind === 197 /* ThisType */ ? createTypePredicate( node.assertsModifier ? 2 /* AssertsThis */ : 0 /* This */, /*parameterName*/ void 0, @@ -57000,14 +57465,14 @@ ${lanes.join("\n")} if (signature.declaration) { const typeNode = getEffectiveReturnTypeNode(signature.declaration); if (typeNode) { - error(typeNode, Diagnostics.Return_type_annotation_circularly_references_itself); + error2(typeNode, Diagnostics.Return_type_annotation_circularly_references_itself); } else if (noImplicitAny) { const declaration = signature.declaration; const name = getNameOfDeclaration(declaration); if (name) { - error(name, Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, declarationNameToString(name)); + error2(name, Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, declarationNameToString(name)); } else { - error(declaration, Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions); + error2(declaration, Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions); } } } @@ -57018,7 +57483,7 @@ ${lanes.join("\n")} return signature.resolvedReturnType; } function getReturnTypeFromAnnotation(declaration) { - if (declaration.kind === 175 /* Constructor */) { + if (declaration.kind === 176 /* Constructor */) { return getDeclaredTypeOfClassOrInterface(getMergedSymbol(declaration.parent.symbol)); } const typeNode = getEffectiveReturnTypeNode(declaration); @@ -57034,12 +57499,12 @@ ${lanes.join("\n")} if (typeNode) { return getTypeFromTypeNode(typeNode); } - if (declaration.kind === 176 /* GetAccessor */ && hasBindableName(declaration)) { + if (declaration.kind === 177 /* GetAccessor */ && hasBindableName(declaration)) { const jsDocType = isInJSFile(declaration) && getTypeForDeclarationFromJSDocComment(declaration); if (jsDocType) { return jsDocType; } - const setter = getDeclarationOfKind(getSymbolOfDeclaration(declaration), 177 /* SetAccessor */); + const setter = getDeclarationOfKind(getSymbolOfDeclaration(declaration), 178 /* SetAccessor */); const setterType = getAnnotatedAccessorType(setter); if (setterType) { return setterType; @@ -57048,7 +57513,7 @@ ${lanes.join("\n")} return getReturnTypeOfTypeTag(declaration); } function isResolvingReturnTypeOfSignature(signature) { - return !signature.resolvedReturnType && findResolutionCycleStartIndex(signature, 3 /* ResolvedReturnType */) >= 0; + return signature.compositeSignatures && some(signature.compositeSignatures, isResolvingReturnTypeOfSignature) || !signature.resolvedReturnType && findResolutionCycleStartIndex(signature, 3 /* ResolvedReturnType */) >= 0; } function getRestTypeOfSignature(signature) { return tryGetRestTypeOfSignature(signature) || anyType; @@ -57142,7 +57607,7 @@ ${lanes.join("\n")} var _a; if (!signature.isolatedSignatureType) { const kind = (_a = signature.declaration) == null ? void 0 : _a.kind; - const isConstructor = kind === void 0 || kind === 175 /* Constructor */ || kind === 179 /* ConstructSignature */ || kind === 184 /* ConstructorType */; + const isConstructor = kind === void 0 || kind === 176 /* Constructor */ || kind === 180 /* ConstructSignature */ || kind === 185 /* ConstructorType */; const type = createObjectType(16 /* Anonymous */); type.members = emptySymbols; type.properties = emptyArray; @@ -57201,9 +57666,9 @@ ${lanes.join("\n")} let inferences; if ((_a = typeParameter.symbol) == null ? void 0 : _a.declarations) { for (const declaration of typeParameter.symbol.declarations) { - if (declaration.parent.kind === 194 /* InferType */) { + if (declaration.parent.kind === 195 /* InferType */) { const [childTypeParameter = declaration.parent, grandParent] = walkUpParenthesizedTypesAndGetParentAndChild(declaration.parent.parent); - if (grandParent.kind === 182 /* TypeReference */ && !omitTypeReferences) { + if (grandParent.kind === 183 /* TypeReference */ && !omitTypeReferences) { const typeReference = grandParent; const typeParameters = getTypeParametersForTypeReferenceOrImport(typeReference); if (typeParameters) { @@ -57221,13 +57686,13 @@ ${lanes.join("\n")} } } } - } else if (grandParent.kind === 168 /* Parameter */ && grandParent.dotDotDotToken || grandParent.kind === 190 /* RestType */ || grandParent.kind === 201 /* NamedTupleMember */ && grandParent.dotDotDotToken) { + } else if (grandParent.kind === 169 /* Parameter */ && grandParent.dotDotDotToken || grandParent.kind === 191 /* RestType */ || grandParent.kind === 202 /* NamedTupleMember */ && grandParent.dotDotDotToken) { inferences = append(inferences, createArrayType(unknownType)); - } else if (grandParent.kind === 203 /* TemplateLiteralTypeSpan */) { + } else if (grandParent.kind === 204 /* TemplateLiteralTypeSpan */) { inferences = append(inferences, stringType); - } else if (grandParent.kind === 167 /* TypeParameter */ && grandParent.parent.kind === 199 /* MappedType */) { + } else if (grandParent.kind === 168 /* TypeParameter */ && grandParent.parent.kind === 200 /* MappedType */) { inferences = append(inferences, keyofConstraintType); - } else if (grandParent.kind === 199 /* MappedType */ && grandParent.type && skipParentheses(grandParent.type) === declaration.parent && grandParent.parent.kind === 193 /* ConditionalType */ && grandParent.parent.extendsType === grandParent && grandParent.parent.checkType.kind === 199 /* MappedType */ && grandParent.parent.checkType.type) { + } else if (grandParent.kind === 200 /* MappedType */ && grandParent.type && skipParentheses(grandParent.type) === declaration.parent && grandParent.parent.kind === 194 /* ConditionalType */ && grandParent.parent.extendsType === grandParent && grandParent.parent.checkType.kind === 200 /* MappedType */ && grandParent.parent.checkType.type) { const checkMappedType2 = grandParent.parent.checkType; const nodeType = getTypeFromTypeNode(checkMappedType2.type); inferences = append(inferences, instantiateType( @@ -57252,7 +57717,7 @@ ${lanes.join("\n")} } else { let type = getTypeFromTypeNode(constraintDeclaration); if (type.flags & 1 /* Any */ && !isErrorType(type)) { - type = constraintDeclaration.parent.parent.kind === 199 /* MappedType */ ? keyofConstraintType : unknownType; + type = constraintDeclaration.parent.parent.kind === 200 /* MappedType */ ? keyofConstraintType : unknownType; } typeParameter.constraint = type; } @@ -57261,7 +57726,7 @@ ${lanes.join("\n")} return typeParameter.constraint === noConstraintType ? void 0 : typeParameter.constraint; } function getParentSymbolOfTypeParameter(typeParameter) { - const tp = getDeclarationOfKind(typeParameter.symbol, 167 /* TypeParameter */); + const tp = getDeclarationOfKind(typeParameter.symbol, 168 /* TypeParameter */); const host2 = isJSDocTemplateTag(tp.parent) ? getEffectiveContainerForJSDocTemplateTag(tp.parent) : tp.parent; return host2 && getSymbolOfNode(host2); } @@ -57346,12 +57811,12 @@ ${lanes.join("\n")} return ((_a = type.target.localTypeParameters) == null ? void 0 : _a.map(() => errorType)) || emptyArray; } const node = type.node; - const typeArguments = !node ? emptyArray : node.kind === 182 /* TypeReference */ ? concatenate(type.target.outerTypeParameters, getEffectiveTypeArguments2(node, type.target.localTypeParameters)) : node.kind === 187 /* ArrayType */ ? [getTypeFromTypeNode(node.elementType)] : map(node.elements, getTypeFromTypeNode); + const typeArguments = !node ? emptyArray : node.kind === 183 /* TypeReference */ ? concatenate(type.target.outerTypeParameters, getEffectiveTypeArguments2(node, type.target.localTypeParameters)) : node.kind === 188 /* ArrayType */ ? [getTypeFromTypeNode(node.elementType)] : map(node.elements, getTypeFromTypeNode); if (popTypeResolution()) { type.resolvedTypeArguments = type.mapper ? instantiateTypes(typeArguments, type.mapper) : typeArguments; } else { type.resolvedTypeArguments = ((_b = type.target.localTypeParameters) == null ? void 0 : _b.map(() => errorType)) || emptyArray; - error( + error2( type.node || currentNode, type.target.symbol ? Diagnostics.Type_arguments_for_0_circularly_reference_themselves : Diagnostics.Tuple_type_arguments_circularly_reference_themselves, type.target.symbol && symbolToString(type.target.symbol) @@ -57380,12 +57845,12 @@ ${lanes.join("\n")} void 0, 2 /* WriteArrayAsGenericType */ ); - error(node, diag2, typeStr, minTypeArgumentCount, typeParameters.length); + error2(node, diag2, typeStr, minTypeArgumentCount, typeParameters.length); if (!isJs) { return errorType; } } - if (node.kind === 182 /* TypeReference */ && isDeferredTypeReferenceNode(node, length(node.typeArguments) !== typeParameters.length)) { + if (node.kind === 183 /* TypeReference */ && isDeferredTypeReferenceNode(node, length(node.typeArguments) !== typeParameters.length)) { return createDeferredTypeReference( type, node, @@ -57436,7 +57901,7 @@ ${lanes.join("\n")} const numTypeArguments = length(node.typeArguments); const minTypeArgumentCount = getMinTypeArgumentCount(typeParameters); if (numTypeArguments < minTypeArgumentCount || numTypeArguments > typeParameters.length) { - error( + error2( node, minTypeArgumentCount === typeParameters.length ? Diagnostics.Generic_type_0_requires_1_type_argument_s : Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments, symbolToString(symbol), @@ -57476,9 +57941,9 @@ ${lanes.join("\n")} } function getTypeReferenceName(node) { switch (node.kind) { - case 182 /* TypeReference */: + case 183 /* TypeReference */: return node.typeName; - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: const expr = node.expression; if (isEntityNameExpression(expr)) { return expr; @@ -57490,10 +57955,10 @@ ${lanes.join("\n")} return symbol.parent ? `${getSymbolPath(symbol.parent)}.${symbol.escapedName}` : symbol.escapedName; } function getUnresolvedSymbolForEntityName(name) { - const identifier = name.kind === 165 /* QualifiedName */ ? name.right : name.kind === 210 /* PropertyAccessExpression */ ? name.name : name; + const identifier = name.kind === 166 /* QualifiedName */ ? name.right : name.kind === 211 /* PropertyAccessExpression */ ? name.name : name; const text = identifier.escapedText; if (text) { - const parentSymbol = name.kind === 165 /* QualifiedName */ ? getUnresolvedSymbolForEntityName(name.left) : name.kind === 210 /* PropertyAccessExpression */ ? getUnresolvedSymbolForEntityName(name.expression) : void 0; + const parentSymbol = name.kind === 166 /* QualifiedName */ ? getUnresolvedSymbolForEntityName(name.left) : name.kind === 211 /* PropertyAccessExpression */ ? getUnresolvedSymbolForEntityName(name.expression) : void 0; const path = parentSymbol ? `${getSymbolPath(parentSymbol)}.${text}` : text; let result = unresolvedSymbols.get(path); if (!result) { @@ -57545,7 +58010,7 @@ ${lanes.join("\n")} const valueType = getTypeOfSymbol(symbol); let typeType = valueType; if (symbol.valueDeclaration) { - const isImportTypeWithQualifier = node.kind === 204 /* ImportType */ && node.qualifier; + const isImportTypeWithQualifier = node.kind === 205 /* ImportType */ && node.qualifier; if (valueType.symbol && valueType.symbol !== symbol && isImportTypeWithQualifier) { typeType = getTypeReferenceType(node, valueType.symbol); } @@ -57573,7 +58038,7 @@ ${lanes.join("\n")} return getIntersectionType([substitutionType.constraint, substitutionType.baseType]); } function isUnaryTupleTypeNode(node) { - return node.kind === 188 /* TupleType */ && node.elements.length === 1; + return node.kind === 189 /* TupleType */ && node.elements.length === 1; } function getImpliedConstraint(type, checkNode, extendsNode) { return isUnaryTupleTypeNode(checkNode) && isUnaryTupleTypeNode(extendsNode) ? getImpliedConstraint(type, checkNode.elements[0], extendsNode.elements[0]) : getActualTypeVariable(getTypeFromTypeNode(checkNode)) === getActualTypeVariable(type) ? getTypeFromTypeNode(extendsNode) : void 0; @@ -57581,17 +58046,17 @@ ${lanes.join("\n")} function getConditionalFlowTypeOfType(type, node) { let constraints; let covariant = true; - while (node && !isStatement(node) && node.kind !== 326 /* JSDoc */) { + while (node && !isStatement(node) && node.kind !== 327 /* JSDoc */) { const parent2 = node.parent; - if (parent2.kind === 168 /* Parameter */) { + if (parent2.kind === 169 /* Parameter */) { covariant = !covariant; } - if ((covariant || type.flags & 8650752 /* TypeVariable */) && parent2.kind === 193 /* ConditionalType */ && node === parent2.trueType) { + if ((covariant || type.flags & 8650752 /* TypeVariable */) && parent2.kind === 194 /* ConditionalType */ && node === parent2.trueType) { const constraint = getImpliedConstraint(type, parent2.checkType, parent2.extendsType); if (constraint) { constraints = append(constraints, constraint); } - } else if (type.flags & 262144 /* TypeParameter */ && parent2.kind === 199 /* MappedType */ && node === parent2.type) { + } else if (type.flags & 262144 /* TypeParameter */ && parent2.kind === 200 /* MappedType */ && node === parent2.type) { const mappedType = getTypeFromTypeNode(parent2); if (getTypeParameterFromMappedType(mappedType) === getActualTypeVariable(type)) { const typeParameter = getHomomorphicTypeVariable(mappedType); @@ -57608,11 +58073,11 @@ ${lanes.join("\n")} return constraints ? getSubstitutionType(type, getIntersectionType(constraints)) : type; } function isJSDocTypeReference(node) { - return !!(node.flags & 8388608 /* JSDoc */) && (node.kind === 182 /* TypeReference */ || node.kind === 204 /* ImportType */); + return !!(node.flags & 16777216 /* JSDoc */) && (node.kind === 183 /* TypeReference */ || node.kind === 205 /* ImportType */); } function checkNoTypeArguments(node, symbol) { if (node.typeArguments) { - error(node, Diagnostics.Type_0_is_not_generic, symbol ? symbolToString(symbol) : node.typeName ? declarationNameToString(node.typeName) : anon); + error2(node, Diagnostics.Type_0_is_not_generic, symbol ? symbolToString(symbol) : node.typeName ? declarationNameToString(node.typeName) : anon); return false; } return true; @@ -57731,9 +58196,9 @@ ${lanes.join("\n")} if (declarations) { for (const declaration of declarations) { switch (declaration.kind) { - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: return declaration; } } @@ -57744,11 +58209,11 @@ ${lanes.join("\n")} } const type = getDeclaredTypeOfSymbol(symbol); if (!(type.flags & 524288 /* Object */)) { - error(getTypeDeclaration(symbol), Diagnostics.Global_type_0_must_be_a_class_or_interface_type, symbolName(symbol)); + error2(getTypeDeclaration(symbol), Diagnostics.Global_type_0_must_be_a_class_or_interface_type, symbolName(symbol)); return arity ? emptyGenericType : emptyObjectType; } if (length(type.typeParameters) !== arity) { - error(getTypeDeclaration(symbol), Diagnostics.Global_type_0_must_have_1_type_parameter_s, symbolName(symbol), arity); + error2(getTypeDeclaration(symbol), Diagnostics.Global_type_0_must_have_1_type_parameter_s, symbolName(symbol), arity); return arity ? emptyGenericType : emptyObjectType; } return type; @@ -57765,7 +58230,7 @@ ${lanes.join("\n")} getDeclaredTypeOfSymbol(symbol); if (length(getSymbolLinks(symbol).typeParameters) !== arity) { const decl = symbol.declarations && find(symbol.declarations, isTypeAliasDeclaration); - error(decl, Diagnostics.Global_type_0_must_have_1_type_parameter_s, symbolName(symbol), arity); + error2(decl, Diagnostics.Global_type_0_must_have_1_type_parameter_s, symbolName(symbol), arity); return void 0; } } @@ -57961,6 +58426,22 @@ ${lanes.join("\n")} reportErrors2 )) || emptyGenericType; } + function getGlobalDisposableType(reportErrors2) { + return deferredGlobalDisposableType || (deferredGlobalDisposableType = getGlobalType( + "Disposable", + /*arity*/ + 0, + reportErrors2 + )) || emptyObjectType; + } + function getGlobalAsyncDisposableType(reportErrors2) { + return deferredGlobalAsyncDisposableType || (deferredGlobalAsyncDisposableType = getGlobalType( + "AsyncDisposable", + /*arity*/ + 0, + reportErrors2 + )) || emptyObjectType; + } function getGlobalTypeOrUndefined(name, arity = 0) { const symbol = getGlobalSymbol( name, @@ -58106,11 +58587,11 @@ ${lanes.join("\n")} } function getTupleElementFlags(node) { switch (node.kind) { - case 189 /* OptionalType */: + case 190 /* OptionalType */: return 2 /* Optional */; - case 190 /* RestType */: + case 191 /* RestType */: return getRestTypeElementFlags(node); - case 201 /* NamedTupleMember */: + case 202 /* NamedTupleMember */: return node.questionToken ? 2 /* Optional */ : node.dotDotDotToken ? getRestTypeElementFlags(node) : 1 /* Required */; default: return 1 /* Required */; @@ -58126,60 +58607,57 @@ ${lanes.join("\n")} return readonly ? globalReadonlyArrayType : globalArrayType; } const elementFlags = map(node.elements, getTupleElementFlags); - const missingName = some(node.elements, (e) => e.kind !== 201 /* NamedTupleMember */); - return getTupleTargetType( - elementFlags, - readonly, - /*associatedNames*/ - missingName ? void 0 : node.elements - ); + return getTupleTargetType(elementFlags, readonly, map(node.elements, memberIfLabeledElementDeclaration)); + } + function memberIfLabeledElementDeclaration(member) { + return isNamedTupleMember(member) || isParameter(member) ? member : void 0; } function isDeferredTypeReferenceNode(node, hasDefaultTypeArguments) { - return !!getAliasSymbolForTypeNode(node) || isResolvedByTypeAlias(node) && (node.kind === 187 /* ArrayType */ ? mayResolveTypeAlias(node.elementType) : node.kind === 188 /* TupleType */ ? some(node.elements, mayResolveTypeAlias) : hasDefaultTypeArguments || some(node.typeArguments, mayResolveTypeAlias)); + return !!getAliasSymbolForTypeNode(node) || isResolvedByTypeAlias(node) && (node.kind === 188 /* ArrayType */ ? mayResolveTypeAlias(node.elementType) : node.kind === 189 /* TupleType */ ? some(node.elements, mayResolveTypeAlias) : hasDefaultTypeArguments || some(node.typeArguments, mayResolveTypeAlias)); } function isResolvedByTypeAlias(node) { const parent2 = node.parent; switch (parent2.kind) { - case 195 /* ParenthesizedType */: - case 201 /* NamedTupleMember */: - case 182 /* TypeReference */: - case 191 /* UnionType */: - case 192 /* IntersectionType */: - case 198 /* IndexedAccessType */: - case 193 /* ConditionalType */: - case 197 /* TypeOperator */: - case 187 /* ArrayType */: - case 188 /* TupleType */: + case 196 /* ParenthesizedType */: + case 202 /* NamedTupleMember */: + case 183 /* TypeReference */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: + case 199 /* IndexedAccessType */: + case 194 /* ConditionalType */: + case 198 /* TypeOperator */: + case 188 /* ArrayType */: + case 189 /* TupleType */: return isResolvedByTypeAlias(parent2); - case 264 /* TypeAliasDeclaration */: + case 265 /* TypeAliasDeclaration */: return true; } return false; } function mayResolveTypeAlias(node) { switch (node.kind) { - case 182 /* TypeReference */: + case 183 /* TypeReference */: return isJSDocTypeReference(node) || !!(resolveTypeReferenceName(node, 788968 /* Type */).flags & 524288 /* TypeAlias */); - case 185 /* TypeQuery */: + case 186 /* TypeQuery */: return true; - case 197 /* TypeOperator */: + case 198 /* TypeOperator */: return node.operator !== 158 /* UniqueKeyword */ && mayResolveTypeAlias(node.type); - case 195 /* ParenthesizedType */: - case 189 /* OptionalType */: - case 201 /* NamedTupleMember */: - case 322 /* JSDocOptionalType */: - case 320 /* JSDocNullableType */: - case 321 /* JSDocNonNullableType */: - case 315 /* JSDocTypeExpression */: + case 196 /* ParenthesizedType */: + case 190 /* OptionalType */: + case 202 /* NamedTupleMember */: + case 323 /* JSDocOptionalType */: + case 321 /* JSDocNullableType */: + case 322 /* JSDocNonNullableType */: + case 316 /* JSDocTypeExpression */: return mayResolveTypeAlias(node.type); - case 190 /* RestType */: - return node.type.kind !== 187 /* ArrayType */ || mayResolveTypeAlias(node.type.elementType); - case 191 /* UnionType */: - case 192 /* IntersectionType */: + case 191 /* RestType */: + return node.type.kind !== 188 /* ArrayType */ || mayResolveTypeAlias(node.type.elementType); + case 192 /* UnionType */: + case 193 /* IntersectionType */: return some(node.types, mayResolveTypeAlias); - case 198 /* IndexedAccessType */: + case 199 /* IndexedAccessType */: return mayResolveTypeAlias(node.objectType) || mayResolveTypeAlias(node.indexType); - case 193 /* ConditionalType */: + case 194 /* ConditionalType */: return mayResolveTypeAlias(node.checkType) || mayResolveTypeAlias(node.extendsType) || mayResolveTypeAlias(node.trueType) || mayResolveTypeAlias(node.falseType); } return false; @@ -58190,15 +58668,15 @@ ${lanes.join("\n")} const target = getArrayOrTupleTargetType(node); if (target === emptyGenericType) { links.resolvedType = emptyObjectType; - } else if (!(node.kind === 188 /* TupleType */ && some(node.elements, (e) => !!(getTupleElementFlags(e) & 8 /* Variadic */))) && isDeferredTypeReferenceNode(node)) { - links.resolvedType = node.kind === 188 /* TupleType */ && node.elements.length === 0 ? target : createDeferredTypeReference( + } else if (!(node.kind === 189 /* TupleType */ && some(node.elements, (e) => !!(getTupleElementFlags(e) & 8 /* Variadic */))) && isDeferredTypeReferenceNode(node)) { + links.resolvedType = node.kind === 189 /* TupleType */ && node.elements.length === 0 ? target : createDeferredTypeReference( target, node, /*mapper*/ void 0 ); } else { - const elementTypes = node.kind === 187 /* ArrayType */ ? [getTypeFromTypeNode(node.elementType)] : map(node.elements, getTypeFromTypeNode); + const elementTypes = node.kind === 188 /* ArrayType */ ? [getTypeFromTypeNode(node.elementType)] : map(node.elements, getTypeFromTypeNode); links.resolvedType = createNormalizedTypeReference(target, elementTypes); } } @@ -58207,7 +58685,7 @@ ${lanes.join("\n")} function isReadonlyTypeOperator(node) { return isTypeOperatorNode(node) && node.operator === 148 /* ReadonlyKeyword */; } - function createTupleType(elementTypes, elementFlags, readonly = false, namedMemberDeclarations) { + function createTupleType(elementTypes, elementFlags, readonly = false, namedMemberDeclarations = []) { const tupleTarget = getTupleTargetType(elementFlags || map(elementTypes, (_) => 1 /* Required */), readonly, namedMemberDeclarations); return tupleTarget === emptyGenericType ? emptyObjectType : elementTypes.length ? createNormalizedTypeReference(tupleTarget, elementTypes) : tupleTarget; } @@ -58215,7 +58693,8 @@ ${lanes.join("\n")} if (elementFlags.length === 1 && elementFlags[0] & 4 /* Rest */) { return readonly ? globalReadonlyArrayType : globalArrayType; } - const key = map(elementFlags, (f) => f & 1 /* Required */ ? "#" : f & 2 /* Optional */ ? "?" : f & 4 /* Rest */ ? "." : "*").join() + (readonly ? "R" : "") + (namedMemberDeclarations && namedMemberDeclarations.length ? "," + map(namedMemberDeclarations, getNodeId).join(",") : ""); + const memberIds = mapDefined(namedMemberDeclarations, (node) => node ? getNodeId(node) : void 0); + const key = map(elementFlags, (f) => f & 1 /* Required */ ? "#" : f & 2 /* Optional */ ? "?" : f & 4 /* Rest */ ? "." : "*").join() + (readonly ? "R" : "") + (memberIds.length ? "," + memberIds.join(",") : ""); let type = tupleTypes.get(key); if (!type) { tupleTypes.set(key, type = createTupleTargetType(elementFlags, readonly, namedMemberDeclarations)); @@ -58297,7 +58776,7 @@ ${lanes.join("\n")} } const expandedTypes = []; const expandedFlags = []; - let expandedDeclarations = []; + const expandedDeclarations = []; let lastRequiredIndex = -1; let firstRestIndex = -1; let lastOptionalOrRestIndex = -1; @@ -58310,7 +58789,7 @@ ${lanes.join("\n")} } else if (isTupleType(type)) { const elements = getElementTypes(type); if (elements.length + expandedTypes.length >= 1e4) { - error(currentNode, isPartOfTypeNode(currentNode) ? Diagnostics.Type_produces_a_tuple_type_that_is_too_large_to_represent : Diagnostics.Expression_produces_a_tuple_type_that_is_too_large_to_represent); + error2(currentNode, isPartOfTypeNode(currentNode) ? Diagnostics.Type_produces_a_tuple_type_that_is_too_large_to_represent : Diagnostics.Expression_produces_a_tuple_type_that_is_too_large_to_represent); return errorType; } forEach(elements, (t, n) => { @@ -58335,7 +58814,7 @@ ${lanes.join("\n")} )); expandedTypes.splice(firstRestIndex + 1, lastOptionalOrRestIndex - firstRestIndex); expandedFlags.splice(firstRestIndex + 1, lastOptionalOrRestIndex - firstRestIndex); - expandedDeclarations == null ? void 0 : expandedDeclarations.splice(firstRestIndex + 1, lastOptionalOrRestIndex - firstRestIndex); + expandedDeclarations.splice(firstRestIndex + 1, lastOptionalOrRestIndex - firstRestIndex); } const tupleTarget = getTupleTargetType(expandedFlags, target.readonly, expandedDeclarations); return tupleTarget === emptyGenericType ? emptyObjectType : expandedFlags.length ? createTypeReference(tupleTarget, expandedTypes) : tupleTarget; @@ -58355,11 +58834,7 @@ ${lanes.join("\n")} true ) : type); expandedFlags.push(flags); - if (expandedDeclarations && declaration) { - expandedDeclarations.push(declaration); - } else { - expandedDeclarations = void 0; - } + expandedDeclarations.push(declaration); } } function sliceTupleType(type, index, endSkipCount = 0) { @@ -58386,6 +58861,9 @@ ${lanes.join("\n")} function getEndElementCount(type, flags) { return type.elementFlags.length - findLastIndex(type.elementFlags, (f) => !(f & flags)) - 1; } + function getTotalFixedElementCount(type) { + return type.fixedLength + getEndElementCount(type, 3 /* Fixed */); + } function getElementTypes(type) { const typeArguments = getTypeArguments(type); const arity = getTypeReferenceArity(type); @@ -58475,7 +58953,7 @@ ${lanes.join("\n")} const estimatedCount = count / (len - i) * len; if (estimatedCount > 1e6) { (_a = tracing) == null ? void 0 : _a.instant(tracing.Phase.CheckTypes, "removeSubtypes_DepthLimit", { typeIds: types.map((t) => t.id) }); - error(currentNode, Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent); + error2(currentNode, Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent); return void 0; } } @@ -58884,7 +59362,7 @@ ${lanes.join("\n")} const size = getCrossProductUnionSize(types); if (size >= 1e5) { (_a = tracing) == null ? void 0 : _a.instant(tracing.Phase.CheckTypes, "checkCrossProductUnion_DepthLimit", { typeIds: types.map((t) => t.id), size }); - error(currentNode, Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent); + error2(currentNode, Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent); return false; } return true; @@ -59236,12 +59714,12 @@ ${lanes.join("\n")} if (isCallLikeExpression(parent2)) { return isCallOrNewExpression(parent2) && isIdentifier(node) && hasMatchingArgument(parent2, node); } - return every(symbol.declarations, (d) => !isFunctionLike(d) || !!(getCombinedNodeFlags(d) & 268435456 /* Deprecated */)); + return every(symbol.declarations, (d) => !isFunctionLike(d) || isDeprecatedDeclaration2(d)); } return true; } function getPropertyTypeForIndexType(originalObjectType, objectType, indexType, fullIndexType, accessNode, accessFlags) { - const accessExpression = accessNode && accessNode.kind === 211 /* ElementAccessExpression */ ? accessNode : void 0; + const accessExpression = accessNode && accessNode.kind === 212 /* ElementAccessExpression */ ? accessNode : void 0; const propName = accessNode && isPrivateIdentifier(accessNode) ? void 0 : getPropertyNameFromIndex(indexType, accessNode); if (propName !== void 0) { if (accessFlags & 256 /* Contextual */) { @@ -59256,7 +59734,7 @@ ${lanes.join("\n")} if (accessExpression) { markPropertyAsReferenced(prop, accessExpression, isSelfTypeAccess(accessExpression.expression, objectType.symbol)); if (isAssignmentToReadonlyEntity(accessExpression, prop, getAssignmentTargetKind(accessExpression))) { - error(accessExpression.argumentExpression, Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property, symbolToString(prop)); + error2(accessExpression.argumentExpression, Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property, symbolToString(prop)); return void 0; } if (accessFlags & 8 /* CacheSymbol */) { @@ -59275,10 +59753,10 @@ ${lanes.join("\n")} const indexNode = getIndexNodeForAccessExpression(accessNode); if (isTupleType(objectType)) { if (index < 0) { - error(indexNode, Diagnostics.A_tuple_type_cannot_be_indexed_with_a_negative_value); + error2(indexNode, Diagnostics.A_tuple_type_cannot_be_indexed_with_a_negative_value); return undefinedType; } - error( + error2( indexNode, Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2, typeToString(objectType), @@ -59286,15 +59764,12 @@ ${lanes.join("\n")} unescapeLeadingUnderscores(propName) ); } else { - error(indexNode, Diagnostics.Property_0_does_not_exist_on_type_1, unescapeLeadingUnderscores(propName), typeToString(objectType)); + error2(indexNode, Diagnostics.Property_0_does_not_exist_on_type_1, unescapeLeadingUnderscores(propName), typeToString(objectType)); } } if (index >= 0) { errorIfWritingToReadonlyIndex(getIndexInfoOfType(objectType, numberType)); - return mapType(objectType, (t) => { - const restType = getRestTypeOfTupleType(t) || undefinedType; - return accessFlags & 1 /* IncludeUndefined */ ? getUnionType([restType, missingType]) : restType; - }); + return getTupleElementTypeOutOfStartCount(objectType, index, accessFlags & 1 /* IncludeUndefined */ ? missingType : void 0); } } } @@ -59306,13 +59781,13 @@ ${lanes.join("\n")} if (indexInfo) { if (accessFlags & 2 /* NoIndexSignatures */ && indexInfo.keyType !== numberType) { if (accessExpression) { - error(accessExpression, Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), typeToString(originalObjectType)); + error2(accessExpression, Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), typeToString(originalObjectType)); } return void 0; } if (accessNode && indexInfo.keyType === stringType && !isTypeAssignableToKind(indexType, 4 /* String */ | 8 /* Number */)) { const indexNode = getIndexNodeForAccessExpression(accessNode); - error(indexNode, Diagnostics.Type_0_cannot_be_used_as_an_index_type, typeToString(indexType)); + error2(indexNode, Diagnostics.Type_0_cannot_be_used_as_an_index_type, typeToString(indexType)); return accessFlags & 1 /* IncludeUndefined */ ? getUnionType([indexInfo.type, missingType]) : indexInfo.type; } errorIfWritingToReadonlyIndex(indexInfo); @@ -59340,23 +59815,23 @@ ${lanes.join("\n")} } } if (objectType.symbol === globalThisSymbol && propName !== void 0 && globalThisSymbol.exports.has(propName) && globalThisSymbol.exports.get(propName).flags & 418 /* BlockScoped */) { - error(accessExpression, Diagnostics.Property_0_does_not_exist_on_type_1, unescapeLeadingUnderscores(propName), typeToString(objectType)); + error2(accessExpression, Diagnostics.Property_0_does_not_exist_on_type_1, unescapeLeadingUnderscores(propName), typeToString(objectType)); } else if (noImplicitAny && !compilerOptions.suppressImplicitAnyIndexErrors && !(accessFlags & 128 /* SuppressNoImplicitAnyError */)) { if (propName !== void 0 && typeHasStaticProperty(propName, objectType)) { const typeName = typeToString(objectType); - error(accessExpression, Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead, propName, typeName, typeName + "[" + getTextOfNode(accessExpression.argumentExpression) + "]"); + error2(accessExpression, Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead, propName, typeName, typeName + "[" + getTextOfNode(accessExpression.argumentExpression) + "]"); } else if (getIndexTypeOfType(objectType, numberType)) { - error(accessExpression.argumentExpression, Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number); + error2(accessExpression.argumentExpression, Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number); } else { let suggestion; if (propName !== void 0 && (suggestion = getSuggestionForNonexistentProperty(propName, objectType))) { if (suggestion !== void 0) { - error(accessExpression.argumentExpression, Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2, propName, typeToString(objectType), suggestion); + error2(accessExpression.argumentExpression, Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2, propName, typeToString(objectType), suggestion); } } else { const suggestion2 = getSuggestionForNonexistentIndexSignature(objectType, accessExpression, indexType); if (suggestion2 !== void 0) { - error(accessExpression, Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1, typeToString(objectType), suggestion2); + error2(accessExpression, Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1, typeToString(objectType), suggestion2); } else { let errorInfo; if (indexType.flags & 1024 /* EnumLiteral */) { @@ -59421,11 +59896,11 @@ ${lanes.join("\n")} if (accessNode) { const indexNode = getIndexNodeForAccessExpression(accessNode); if (indexType.flags & (128 /* StringLiteral */ | 256 /* NumberLiteral */)) { - error(indexNode, Diagnostics.Property_0_does_not_exist_on_type_1, "" + indexType.value, typeToString(objectType)); + error2(indexNode, Diagnostics.Property_0_does_not_exist_on_type_1, "" + indexType.value, typeToString(objectType)); } else if (indexType.flags & (4 /* String */ | 8 /* Number */)) { - error(indexNode, Diagnostics.Type_0_has_no_matching_index_signature_for_type_1, typeToString(objectType), typeToString(indexType)); + error2(indexNode, Diagnostics.Type_0_has_no_matching_index_signature_for_type_1, typeToString(objectType), typeToString(indexType)); } else { - error(indexNode, Diagnostics.Type_0_cannot_be_used_as_an_index_type, typeToString(indexType)); + error2(indexNode, Diagnostics.Type_0_cannot_be_used_as_an_index_type, typeToString(indexType)); } } if (isTypeAny(indexType)) { @@ -59434,12 +59909,12 @@ ${lanes.join("\n")} return void 0; function errorIfWritingToReadonlyIndex(indexInfo) { if (indexInfo && indexInfo.isReadonly && accessExpression && (isAssignmentTarget(accessExpression) || isDeleteTarget(accessExpression))) { - error(accessExpression, Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(objectType)); + error2(accessExpression, Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(objectType)); } } } function getIndexNodeForAccessExpression(accessNode) { - return accessNode.kind === 211 /* ElementAccessExpression */ ? accessNode.argumentExpression : accessNode.kind === 198 /* IndexedAccessType */ ? accessNode.indexType : accessNode.kind === 166 /* ComputedPropertyName */ ? accessNode.expression : accessNode; + return accessNode.kind === 212 /* ElementAccessExpression */ ? accessNode.argumentExpression : accessNode.kind === 199 /* IndexedAccessType */ ? accessNode.indexType : accessNode.kind === 167 /* ComputedPropertyName */ ? accessNode.expression : accessNode; } function isPatternLiteralPlaceholderType(type) { if (type.flags & 2097152 /* Intersection */) { @@ -59579,7 +60054,7 @@ ${lanes.join("\n")} } if (compilerOptions.noUncheckedIndexedAccess && accessFlags & 32 /* ExpressionPosition */) accessFlags |= 1 /* IncludeUndefined */; - if (isGenericIndexType(indexType) || (accessNode && accessNode.kind !== 198 /* IndexedAccessType */ ? isGenericTupleType(objectType) && !indexTypeLessThan(indexType, objectType.target.fixedLength) : isGenericObjectType(objectType) && !(isTupleType(objectType) && indexTypeLessThan(indexType, objectType.target.fixedLength)) || isGenericReducibleType(objectType))) { + if (isGenericIndexType(indexType) || (accessNode && accessNode.kind !== 199 /* IndexedAccessType */ ? isGenericTupleType(objectType) && !indexTypeLessThan(indexType, getTotalFixedElementCount(objectType.target)) : isGenericObjectType(objectType) && !(isTupleType(objectType) && indexTypeLessThan(indexType, getTotalFixedElementCount(objectType.target))) || isGenericReducibleType(objectType))) { if (objectType.flags & 3 /* AnyOrUnknown */) { return objectType; } @@ -59659,7 +60134,7 @@ ${lanes.join("\n")} let tailCount = 0; while (true) { if (tailCount === 1e3) { - error(currentNode, Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite); + error2(currentNode, Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite); return errorType; } const checkType = instantiateType(getActualTypeVariable(root.checkType), mapper); @@ -59684,9 +60159,9 @@ ${lanes.join("\n")} ); if (freshMapper) { const freshCombinedMapper = combineTypeMappers(mapper, freshMapper); - for (const p of freshParams) { - if (root.inferTypeParameters.indexOf(p) === -1) { - p.mapper = freshCombinedMapper; + for (let i = 0; i < freshParams.length; i++) { + if (freshParams[i] !== root.inferTypeParameters[i]) { + freshParams[i].mapper = freshCombinedMapper; } } } @@ -59837,11 +60312,11 @@ ${lanes.join("\n")} const links = getNodeLinks(node); if (!links.resolvedType) { if (!isLiteralImportTypeNode(node)) { - error(node.argument, Diagnostics.String_literal_expected); + error2(node.argument, Diagnostics.String_literal_expected); links.resolvedSymbol = unknownSymbol; return links.resolvedType = errorType; } - const targetMeaning = node.isTypeOf ? 111551 /* Value */ : node.flags & 8388608 /* JSDoc */ ? 111551 /* Value */ | 788968 /* Type */ : 788968 /* Type */; + const targetMeaning = node.isTypeOf ? 111551 /* Value */ : node.flags & 16777216 /* JSDoc */ ? 111551 /* Value */ | 788968 /* Type */ : 788968 /* Type */; const innerModuleSymbol = resolveExternalModuleName(node, node.argument.literal); if (!innerModuleSymbol) { links.resolvedSymbol = unknownSymbol; @@ -59871,7 +60346,7 @@ ${lanes.join("\n")} const symbolFromModule = node.isTypeOf ? void 0 : getSymbol2(getExportsOfSymbol(mergedResolvedSymbol), current.escapedText, meaning); const next = symbolFromModule ?? symbolFromVariable; if (!next) { - error(current, Diagnostics.Namespace_0_has_no_exported_member_1, getFullyQualifiedName(currentNamespace), declarationNameToString(current)); + error2(current, Diagnostics.Namespace_0_has_no_exported_member_1, getFullyQualifiedName(currentNamespace), declarationNameToString(current)); return links.resolvedType = errorType; } getNodeLinks(current).resolvedSymbol = next; @@ -59884,7 +60359,7 @@ ${lanes.join("\n")} links.resolvedType = resolveImportSymbolType(node, links, moduleSymbol, targetMeaning); } else { const errorMessage = targetMeaning === 111551 /* Value */ ? Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here : Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0; - error(node, errorMessage, node.argument.literal.text); + error2(node, errorMessage, node.argument.literal.text); links.resolvedSymbol = unknownSymbol; links.resolvedType = errorType; } @@ -60147,7 +60622,7 @@ ${lanes.join("\n")} false ); const parent2 = container && container.parent; - if (parent2 && (isClassLike(parent2) || parent2.kind === 263 /* InterfaceDeclaration */)) { + if (parent2 && (isClassLike(parent2) || parent2.kind === 264 /* InterfaceDeclaration */)) { if (!isStatic(container) && (!isConstructorDeclaration(container) || isNodeDescendantOf(node, container.body))) { return getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(parent2)).thisType; } @@ -60155,14 +60630,14 @@ ${lanes.join("\n")} if (parent2 && isObjectLiteralExpression(parent2) && isBinaryExpression(parent2.parent) && getAssignmentDeclarationKind(parent2.parent) === 6 /* Prototype */) { return getDeclaredTypeOfClassOrInterface(getSymbolOfNode(parent2.parent.left).parent).thisType; } - const host2 = node.flags & 8388608 /* JSDoc */ ? getHostSignatureFromJSDoc(node) : void 0; + const host2 = node.flags & 16777216 /* JSDoc */ ? getHostSignatureFromJSDoc(node) : void 0; if (host2 && isFunctionExpression(host2) && isBinaryExpression(host2.parent) && getAssignmentDeclarationKind(host2.parent) === 3 /* PrototypeProperty */) { return getDeclaredTypeOfClassOrInterface(getSymbolOfNode(host2.parent.left).parent).thisType; } if (isJSConstructor(container) && isNodeDescendantOf(node, container.body)) { return getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(container)).thisType; } - error(node, Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface); + error2(node, Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface); return errorType; } function getTypeFromThisTypeNode(node) { @@ -60177,17 +60652,17 @@ ${lanes.join("\n")} } function getArrayElementTypeNode(node) { switch (node.kind) { - case 195 /* ParenthesizedType */: + case 196 /* ParenthesizedType */: return getArrayElementTypeNode(node.type); - case 188 /* TupleType */: + case 189 /* TupleType */: if (node.elements.length === 1) { node = node.elements[0]; - if (node.kind === 190 /* RestType */ || node.kind === 201 /* NamedTupleMember */ && node.dotDotDotToken) { + if (node.kind === 191 /* RestType */ || node.kind === 202 /* NamedTupleMember */ && node.dotDotDotToken) { return getArrayElementTypeNode(node.type); } } break; - case 187 /* ArrayType */: + case 188 /* ArrayType */: return node.elementType; } return void 0; @@ -60207,8 +60682,8 @@ ${lanes.join("\n")} function getTypeFromTypeNodeWorker(node) { switch (node.kind) { case 133 /* AnyKeyword */: - case 318 /* JSDocAllType */: - case 319 /* JSDocUnknownType */: + case 319 /* JSDocAllType */: + case 320 /* JSDocUnknownType */: return anyType; case 159 /* UnknownKeyword */: return unknownType; @@ -60216,7 +60691,7 @@ ${lanes.join("\n")} return stringType; case 150 /* NumberKeyword */: return numberType; - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: return bigintType; case 136 /* BooleanKeyword */: return booleanType; @@ -60231,69 +60706,69 @@ ${lanes.join("\n")} case 146 /* NeverKeyword */: return neverType; case 151 /* ObjectKeyword */: - return node.flags & 262144 /* JavaScriptFile */ && !noImplicitAny ? anyType : nonPrimitiveType; + return node.flags & 524288 /* JavaScriptFile */ && !noImplicitAny ? anyType : nonPrimitiveType; case 141 /* IntrinsicKeyword */: return intrinsicMarkerType; - case 196 /* ThisType */: + case 197 /* ThisType */: case 110 /* ThisKeyword */: return getTypeFromThisTypeNode(node); - case 200 /* LiteralType */: + case 201 /* LiteralType */: return getTypeFromLiteralTypeNode(node); - case 182 /* TypeReference */: + case 183 /* TypeReference */: return getTypeFromTypeReference(node); - case 181 /* TypePredicate */: + case 182 /* TypePredicate */: return node.assertsModifier ? voidType : booleanType; - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return getTypeFromTypeReference(node); - case 185 /* TypeQuery */: + case 186 /* TypeQuery */: return getTypeFromTypeQueryNode(node); - case 187 /* ArrayType */: - case 188 /* TupleType */: + case 188 /* ArrayType */: + case 189 /* TupleType */: return getTypeFromArrayOrTupleTypeNode(node); - case 189 /* OptionalType */: + case 190 /* OptionalType */: return getTypeFromOptionalTypeNode(node); - case 191 /* UnionType */: + case 192 /* UnionType */: return getTypeFromUnionTypeNode(node); - case 192 /* IntersectionType */: + case 193 /* IntersectionType */: return getTypeFromIntersectionTypeNode(node); - case 320 /* JSDocNullableType */: + case 321 /* JSDocNullableType */: return getTypeFromJSDocNullableTypeNode(node); - case 322 /* JSDocOptionalType */: + case 323 /* JSDocOptionalType */: return addOptionality(getTypeFromTypeNode(node.type)); - case 201 /* NamedTupleMember */: + case 202 /* NamedTupleMember */: return getTypeFromNamedTupleTypeNode(node); - case 195 /* ParenthesizedType */: - case 321 /* JSDocNonNullableType */: - case 315 /* JSDocTypeExpression */: + case 196 /* ParenthesizedType */: + case 322 /* JSDocNonNullableType */: + case 316 /* JSDocTypeExpression */: return getTypeFromTypeNode(node.type); - case 190 /* RestType */: + case 191 /* RestType */: return getTypeFromRestTypeNode(node); - case 324 /* JSDocVariadicType */: + case 325 /* JSDocVariadicType */: return getTypeFromJSDocVariadicType(node); - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 186 /* TypeLiteral */: - case 328 /* JSDocTypeLiteral */: - case 323 /* JSDocFunctionType */: - case 329 /* JSDocSignature */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 187 /* TypeLiteral */: + case 329 /* JSDocTypeLiteral */: + case 324 /* JSDocFunctionType */: + case 330 /* JSDocSignature */: return getTypeFromTypeLiteralOrFunctionOrConstructorTypeNode(node); - case 197 /* TypeOperator */: + case 198 /* TypeOperator */: return getTypeFromTypeOperatorNode(node); - case 198 /* IndexedAccessType */: + case 199 /* IndexedAccessType */: return getTypeFromIndexedAccessTypeNode(node); - case 199 /* MappedType */: + case 200 /* MappedType */: return getTypeFromMappedTypeNode(node); - case 193 /* ConditionalType */: + case 194 /* ConditionalType */: return getTypeFromConditionalTypeNode(node); - case 194 /* InferType */: + case 195 /* InferType */: return getTypeFromInferTypeNode(node); - case 202 /* TemplateLiteralType */: + case 203 /* TemplateLiteralType */: return getTypeFromTemplateTypeNode(node); - case 204 /* ImportType */: + case 205 /* ImportType */: return getTypeFromImportTypeNode(node); case 80 /* Identifier */: - case 165 /* QualifiedName */: - case 210 /* PropertyAccessExpression */: + case 166 /* QualifiedName */: + case 211 /* PropertyAccessExpression */: const symbol = getSymbolAtLocation(node); return symbol ? getDeclaredTypeOfSymbol(symbol) : errorType; default: @@ -60429,7 +60904,7 @@ ${lanes.join("\n")} /*resolvedTypePredicate*/ void 0, signature.minArgumentCount, - signature.flags & 39 /* PropagatingFlags */ + signature.flags & 167 /* PropagatingFlags */ ); result.target = signature; result.mapper = mapper; @@ -60491,26 +60966,31 @@ ${lanes.join("\n")} if (!result) { const newMapper = createTypeMapper(typeParameters, typeArguments); result = target.objectFlags & 4 /* Reference */ ? createDeferredTypeReference(type.target, type.node, newMapper, newAliasSymbol, newAliasTypeArguments) : target.objectFlags & 32 /* Mapped */ ? instantiateMappedType(target, newMapper, newAliasSymbol, newAliasTypeArguments) : instantiateAnonymousType(target, newMapper, newAliasSymbol, newAliasTypeArguments); - if (result.flags & 138117121 /* ObjectFlagsType */ && !(result.objectFlags & 524288 /* CouldContainTypeVariablesComputed */)) { + target.instantiations.set(id, result); + const resultObjectFlags = getObjectFlags(result); + if (result.flags & 138117121 /* ObjectFlagsType */ && !(resultObjectFlags & 524288 /* CouldContainTypeVariablesComputed */)) { const resultCouldContainTypeVariables = some(typeArguments, couldContainTypeVariables); - if (!(result.objectFlags & 524288 /* CouldContainTypeVariablesComputed */)) { - result.objectFlags |= 524288 /* CouldContainTypeVariablesComputed */ | (resultCouldContainTypeVariables ? 1048576 /* CouldContainTypeVariables */ : 0); + if (!(getObjectFlags(result) & 524288 /* CouldContainTypeVariablesComputed */)) { + if (resultObjectFlags & (32 /* Mapped */ | 16 /* Anonymous */ | 4 /* Reference */)) { + result.objectFlags |= 524288 /* CouldContainTypeVariablesComputed */ | (resultCouldContainTypeVariables ? 1048576 /* CouldContainTypeVariables */ : 0); + } else { + result.objectFlags |= !resultCouldContainTypeVariables ? 524288 /* CouldContainTypeVariablesComputed */ : 0; + } } } - target.instantiations.set(id, result); } return result; } return type; } function maybeTypeParameterReference(node) { - return !(node.parent.kind === 182 /* TypeReference */ && node.parent.typeArguments && node === node.parent.typeName || node.parent.kind === 204 /* ImportType */ && node.parent.typeArguments && node === node.parent.qualifier); + return !(node.parent.kind === 183 /* TypeReference */ && node.parent.typeArguments && node === node.parent.typeName || node.parent.kind === 205 /* ImportType */ && node.parent.typeArguments && node === node.parent.qualifier); } function isTypeParameterPossiblyReferenced(tp, node) { if (tp.symbol && tp.symbol.declarations && tp.symbol.declarations.length === 1) { const container = tp.symbol.declarations[0].parent; for (let n = node; n !== container; n = n.parent) { - if (!n || n.kind === 240 /* Block */ || n.kind === 193 /* ConditionalType */ && forEachChild(n.extendsType, containsReference)) { + if (!n || n.kind === 241 /* Block */ || n.kind === 194 /* ConditionalType */ && forEachChild(n.extendsType, containsReference)) { return true; } } @@ -60519,17 +60999,17 @@ ${lanes.join("\n")} return true; function containsReference(node2) { switch (node2.kind) { - case 196 /* ThisType */: + case 197 /* ThisType */: return !!tp.isThisType; case 80 /* Identifier */: return !tp.isThisType && isPartOfTypeNode(node2) && maybeTypeParameterReference(node2) && getTypeFromTypeNodeWorker(node2) === tp; - case 185 /* TypeQuery */: + case 186 /* TypeQuery */: const entityName = node2.exprName; const firstIdentifier = getFirstIdentifier(entityName); if (!isThisIdentifier(firstIdentifier)) { const firstIdentifierSymbol = getResolvedSymbol(firstIdentifier); const tpDeclaration = tp.symbol.declarations[0]; - const tpScope = tpDeclaration.kind === 167 /* TypeParameter */ ? tpDeclaration.parent : ( + const tpScope = tpDeclaration.kind === 168 /* TypeParameter */ ? tpDeclaration.parent : ( // Type parameter is a regular type parameter, e.g. foo tp.isThisType ? tpDeclaration : ( // Type parameter is the this type, and its declaration is the class declaration. @@ -60541,8 +61021,8 @@ ${lanes.join("\n")} } } return true; - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: return !node2.type && !!node2.body || some(node2.typeParameters, containsReference) || some(node2.parameters, containsReference) || !!node2.type && containsReference(node2.type); } return !!forEachChild(node2, containsReference); @@ -60592,6 +61072,9 @@ ${lanes.join("\n")} const elementFlags = tupleType.target.elementFlags; const elementTypes = map(getElementTypes(tupleType), (t, i) => { const singleton = elementFlags[i] & 8 /* Variadic */ ? t : elementFlags[i] & 4 /* Rest */ ? createArrayType(t) : createTupleType([t], [elementFlags[i]]); + if (singleton === typeVariable) { + return mappedType; + } return instantiateMappedType(mappedType, prependTypeMapping(typeVariable, singleton, mapper)); }); const newReadonly = getModifiedReadonlyState(tupleType.target.readonly, getMappedTypeModifiers(mappedType)); @@ -60679,7 +61162,7 @@ ${lanes.join("\n")} } if (instantiationDepth === 100 || instantiationCount >= 5e6) { (_a = tracing) == null ? void 0 : _a.instant(tracing.Phase.CheckTypes, "instantiateType_DepthLimit", { typeId: type.id, instantiationDepth, instantiationCount }); - error(currentNode, Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite); + error2(currentNode, Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite); return errorType; } totalInstantiationCount++; @@ -60795,32 +61278,32 @@ ${lanes.join("\n")} return createIndexInfo(info.keyType, instantiateType(info.type, mapper), info.isReadonly, info.declaration); } function isContextSensitive(node) { - Debug.assert(node.kind !== 173 /* MethodDeclaration */ || isObjectLiteralMethod(node)); + Debug.assert(node.kind !== 174 /* MethodDeclaration */ || isObjectLiteralMethod(node)); switch (node.kind) { - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: - case 261 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 262 /* FunctionDeclaration */: return isContextSensitiveFunctionLikeDeclaration(node); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return some(node.properties, isContextSensitive); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return some(node.elements, isContextSensitive); - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: return isContextSensitive(node.whenTrue) || isContextSensitive(node.whenFalse); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return (node.operatorToken.kind === 57 /* BarBarToken */ || node.operatorToken.kind === 61 /* QuestionQuestionToken */) && (isContextSensitive(node.left) || isContextSensitive(node.right)); - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return isContextSensitive(node.initializer); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return isContextSensitive(node.expression); - case 291 /* JsxAttributes */: + case 292 /* JsxAttributes */: return some(node.properties, isContextSensitive) || isJsxOpeningElement(node.parent) && some(node.parent.parent.children, isContextSensitive); - case 290 /* JsxAttribute */: { + case 291 /* JsxAttribute */: { const { initializer } = node; return !!initializer && isContextSensitive(initializer); } - case 293 /* JsxExpression */: { + case 294 /* JsxExpression */: { const { expression } = node; return !!expression && isContextSensitive(expression); } @@ -60834,7 +61317,7 @@ ${lanes.join("\n")} if (node.typeParameters || getEffectiveReturnTypeNode(node) || !node.body) { return false; } - if (node.body.kind !== 240 /* Block */) { + if (node.body.kind !== 241 /* Block */) { return isContextSensitive(node.body); } return !!forEachReturnStatement(node.body, (statement) => !!statement.expression && isContextSensitive(statement.expression)); @@ -60929,23 +61412,27 @@ ${lanes.join("\n")} return true; } switch (node.kind) { - case 293 /* JsxExpression */: - case 216 /* ParenthesizedExpression */: + case 234 /* AsExpression */: + if (!isConstAssertion(node)) { + break; + } + case 294 /* JsxExpression */: + case 217 /* ParenthesizedExpression */: return elaborateError(node.expression, source, target, relation, headMessage, containingMessageChain, errorOutputContainer); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: switch (node.operatorToken.kind) { case 64 /* EqualsToken */: case 28 /* CommaToken */: return elaborateError(node.right, source, target, relation, headMessage, containingMessageChain, errorOutputContainer); } break; - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return elaborateObjectLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return elaborateArrayLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer); - case 291 /* JsxAttributes */: + case 292 /* JsxAttributes */: return elaborateJsxComponents(node, source, target, relation, containingMessageChain, errorOutputContainer); - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return elaborateArrowFunction(node, source, target, relation, containingMessageChain, errorOutputContainer); } return false; @@ -61245,16 +61732,16 @@ ${lanes.join("\n")} } function getElaborationElementForJsxChild(child, nameType, getInvalidTextDiagnostic) { switch (child.kind) { - case 293 /* JsxExpression */: + case 294 /* JsxExpression */: return { errorNode: child, innerExpression: child.expression, nameType }; case 12 /* JsxText */: if (child.containsOnlyTriviaWhiteSpaces) { break; } return { errorNode: child, innerExpression: void 0, nameType, errorMessage: getInvalidTextDiagnostic() }; - case 283 /* JsxElement */: - case 284 /* JsxSelfClosingElement */: - case 287 /* JsxFragment */: + case 284 /* JsxElement */: + case 285 /* JsxSelfClosingElement */: + case 288 /* JsxFragment */: return { errorNode: child, innerExpression: child, nameType }; default: return Debug.assertNever(child, "Found invalid jsx child"); @@ -61295,7 +61782,7 @@ ${lanes.join("\n")} result = elaborateIterableOrArrayLikeTargetElementwise(children, realSource, arrayLikeTargetParts, relation, containingMessageChain, errorOutputContainer) || result; } else if (!isTypeRelatedTo(getIndexedAccessType(source, childrenNameType), childrenTargetType, relation)) { result = true; - const diag2 = error( + const diag2 = error2( containingElement.openingElement.tagName, Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided, childrenPropName, @@ -61323,7 +61810,7 @@ ${lanes.join("\n")} } } else if (!isTypeRelatedTo(getIndexedAccessType(source, childrenNameType), childrenTargetType, relation)) { result = true; - const diag2 = error( + const diag2 = error2( containingElement.openingElement.tagName, Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided, childrenPropName, @@ -61404,13 +61891,13 @@ ${lanes.join("\n")} continue; } switch (prop.kind) { - case 177 /* SetAccessor */: - case 176 /* GetAccessor */: - case 173 /* MethodDeclaration */: - case 303 /* ShorthandPropertyAssignment */: + case 178 /* SetAccessor */: + case 177 /* GetAccessor */: + case 174 /* MethodDeclaration */: + case 304 /* ShorthandPropertyAssignment */: yield { errorNode: prop.name, innerExpression: void 0, nameType: type }; break; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: yield { errorNode: prop.name, innerExpression: prop.initializer, nameType: type, errorMessage: isComputedNonLiteralName(prop.name) ? Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1 : void 0 }; break; default: @@ -61485,7 +61972,7 @@ ${lanes.join("\n")} void instantiateType(sourceRestType || targetRestType, reportUnreliableMarkers); } const kind = target.declaration ? target.declaration.kind : 0 /* Unknown */; - const strictVariance = !(checkMode & 3 /* Callback */) && strictFunctionTypes && kind !== 173 /* MethodDeclaration */ && kind !== 172 /* MethodSignature */ && kind !== 175 /* Constructor */; + const strictVariance = !(checkMode & 3 /* Callback */) && strictFunctionTypes && kind !== 174 /* MethodDeclaration */ && kind !== 173 /* MethodSignature */ && kind !== 176 /* Constructor */; let result = -1 /* True */; const sourceThisType = getThisTypeOfSignature(source); if (sourceThisType && sourceThisType !== voidType) { @@ -61804,6 +62291,7 @@ ${lanes.join("\n")} let errorInfo; let relatedInfo; let maybeKeys; + let maybeKeysSet; let sourceStack; let targetStack; let maybeCount = 0; @@ -61828,7 +62316,7 @@ ${lanes.join("\n")} } if (overflow) { (_a = tracing) == null ? void 0 : _a.instant(tracing.Phase.CheckTypes, "checkTypeRelatedTo_DepthLimit", { sourceId: source.id, targetId: target.id, depth: sourceDepth, targetDepth }); - const diag2 = error(errorNode || currentNode, Diagnostics.Excessive_stack_depth_comparing_types_0_and_1, typeToString(source), typeToString(target)); + const diag2 = error2(errorNode || currentNode, Diagnostics.Excessive_stack_depth_comparing_types_0_and_1, typeToString(source), typeToString(target)); if (errorOutputContainer) { (errorOutputContainer.errors || (errorOutputContainer.errors = [])).push(diag2); } @@ -62673,9 +63161,13 @@ ${lanes.join("\n")} } if (!maybeKeys) { maybeKeys = []; + maybeKeysSet = /* @__PURE__ */ new Set(); sourceStack = []; targetStack = []; } else { + if (maybeKeysSet.has(id)) { + return 3 /* Maybe */; + } const broadestEquivalentId = id.startsWith("*") ? getRelationKey( source2, target2, @@ -62684,10 +63176,8 @@ ${lanes.join("\n")} /*ignoreConstraints*/ true ) : void 0; - for (let i = 0; i < maybeCount; i++) { - if (id === maybeKeys[i] || broadestEquivalentId && broadestEquivalentId === maybeKeys[i]) { - return 3 /* Maybe */; - } + if (broadestEquivalentId && maybeKeysSet.has(broadestEquivalentId)) { + return 3 /* Maybe */; } if (sourceDepth === 100 || targetDepth === 100) { overflow = true; @@ -62696,6 +63186,7 @@ ${lanes.join("\n")} } const maybeStart = maybeCount; maybeKeys[maybeCount] = id; + maybeKeysSet.add(id); maybeCount++; const saveExpandingFlags = expandingFlags; if (recursionFlags & 1 /* Source */) { @@ -62748,17 +63239,34 @@ ${lanes.join("\n")} if (result2) { if (result2 === -1 /* True */ || sourceDepth === 0 && targetDepth === 0) { if (result2 === -1 /* True */ || result2 === 3 /* Maybe */) { - for (let i = maybeStart; i < maybeCount; i++) { - relation.set(maybeKeys[i], 1 /* Succeeded */ | propagatingVarianceFlags); - } + resetMaybeStack( + /*markAllAsSucceeded*/ + true + ); + } else { + resetMaybeStack( + /*markAllAsSucceeded*/ + false + ); } - maybeCount = maybeStart; } } else { relation.set(id, (reportErrors2 ? 4 /* Reported */ : 0) | 2 /* Failed */ | propagatingVarianceFlags); - maybeCount = maybeStart; + resetMaybeStack( + /*markAllAsSucceeded*/ + false + ); } return result2; + function resetMaybeStack(markAllAsSucceeded) { + for (let i = maybeStart; i < maybeCount; i++) { + maybeKeysSet.delete(maybeKeys[i]); + if (markAllAsSucceeded) { + relation.set(maybeKeys[i], 1 /* Succeeded */ | propagatingVarianceFlags); + } + } + maybeCount = maybeStart; + } } function structuredTypeRelatedTo(source2, target2, reportErrors2, intersectionState) { const saveErrorInfo = captureErrorCalculationState(); @@ -63170,26 +63678,6 @@ ${lanes.join("\n")} )) { return result2; } - if (sourceFlags & 8388608 /* IndexedAccess */) { - const indexType = source2.indexType; - if (indexType.flags & 4194304 /* Index */) { - const unresolvedIndexConstraint = getBaseConstraintOfType(indexType.type); - const indexConstraint = unresolvedIndexConstraint && unresolvedIndexConstraint !== noConstraintType ? getIndexType(unresolvedIndexConstraint) : keyofConstraintType; - const constraint2 = getIndexedAccessType(source2.objectType, indexConstraint); - if (result2 = isRelatedTo( - constraint2, - target2, - 1 /* Source */, - /*reportErrors*/ - false, - /*headMessage*/ - void 0, - intersectionState - )) { - return result2; - } - } - } if (isMappedTypeGenericIndexedAccess(source2)) { const indexConstraint = getConstraintOfType(source2.indexType); if (indexConstraint) { @@ -63875,7 +64363,7 @@ ${lanes.join("\n")} const sourceSignature = first(sourceSignatures); const targetSignature = first(targetSignatures); result2 = signatureRelatedTo(sourceSignature, targetSignature, eraseGenerics, reportErrors2, intersectionState, incompatibleReporter(sourceSignature, targetSignature)); - if (!result2 && reportErrors2 && kind === 1 /* Construct */ && sourceObjectFlags & targetObjectFlags && (((_a2 = targetSignature.declaration) == null ? void 0 : _a2.kind) === 175 /* Constructor */ || ((_b = sourceSignature.declaration) == null ? void 0 : _b.kind) === 175 /* Constructor */)) { + if (!result2 && reportErrors2 && kind === 1 /* Construct */ && sourceObjectFlags & targetObjectFlags && (((_a2 = targetSignature.declaration) == null ? void 0 : _a2.kind) === 176 /* Constructor */ || ((_b = sourceSignature.declaration) == null ? void 0 : _b.kind) === 176 /* Constructor */)) { const constructSignatureToString = (signature) => signatureToString( signature, /*enclosingDeclaration*/ @@ -64161,7 +64649,7 @@ ${lanes.join("\n")} let matched = false; for (let i = 0; i < types.length; i++) { if (include[i]) { - const targetType = getTypeOfPropertyOfType(types[i], propertyName); + const targetType = getTypeOfPropertyOrIndexSignatureOfType(types[i], propertyName); if (targetType && related(getDiscriminatingType(), targetType)) { matched = true; } else { @@ -64175,7 +64663,7 @@ ${lanes.join("\n")} } } } - const filtered = contains(include, 0 /* False */) ? getUnionType(types.filter((_, i) => include[i])) : target; + const filtered = contains(include, 0 /* False */) ? getUnionType(types.filter((_, i) => include[i]), 0 /* None */) : target; return filtered.flags & 131072 /* Never */ ? target : filtered; } function isWeakType(type) { @@ -64379,7 +64867,7 @@ ${lanes.join("\n")} } function getRecursionIdentity(type) { if (type.flags & 524288 /* Object */ && !isObjectOrArrayLiteralType(type)) { - if (getObjectFlags(type) && 4 /* Reference */ && type.node) { + if (getObjectFlags(type) & 4 /* Reference */ && type.node) { return type.node; } if (type.symbol && !(getObjectFlags(type) & 16 /* Anonymous */ && type.symbol.flags & 32 /* Class */)) { @@ -64560,7 +65048,7 @@ ${lanes.join("\n")} const target = type.target; if (getObjectFlags(target) & 1 /* Class */) { const baseTypeNode = getBaseTypeNodeOfClass(target); - if (baseTypeNode && baseTypeNode.expression.kind !== 80 /* Identifier */ && baseTypeNode.expression.kind !== 210 /* PropertyAccessExpression */) { + if (baseTypeNode && baseTypeNode.expression.kind !== 80 /* Identifier */ && baseTypeNode.expression.kind !== 211 /* PropertyAccessExpression */) { return void 0; } } @@ -64586,7 +65074,8 @@ ${lanes.join("\n")} return !!elementType && isEmptyLiteralType(elementType); } function isTupleLikeType(type) { - return isTupleType(type) || !!getPropertyOfType(type, "0"); + let lengthType; + return isTupleType(type) || !!getPropertyOfType(type, "0") || isArrayLikeType(type) && !!(lengthType = getTypeOfPropertyOfType(type, "length")) && everyType(lengthType, (t) => !!(t.flags & 256 /* NumberLiteral */)); } function isArrayOrTupleLikeType(type) { return isArrayLikeType(type) || isTupleLikeType(type); @@ -64597,17 +65086,7 @@ ${lanes.join("\n")} return propType; } if (everyType(type, isTupleType)) { - return mapType(type, (t) => { - const tupleType = t; - const restType = getRestTypeOfTupleType(tupleType); - if (!restType) { - return undefinedType; - } - if (compilerOptions.noUncheckedIndexedAccess && index >= tupleType.target.fixedLength + getEndElementCount(tupleType.target, 3 /* Fixed */)) { - return getUnionType([restType, undefinedType]); - } - return restType; - }); + return getTupleElementTypeOutOfStartCount(type, index, compilerOptions.noUncheckedIndexedAccess ? undefinedType : void 0); } return void 0; } @@ -64675,6 +65154,19 @@ ${lanes.join("\n")} function getRestTypeOfTupleType(type) { return getElementTypeOfSliceOfTupleType(type, type.target.fixedLength); } + function getTupleElementTypeOutOfStartCount(type, index, undefinedOrMissingType2) { + return mapType(type, (t) => { + const tupleType = t; + const restType = getRestTypeOfTupleType(tupleType); + if (!restType) { + return undefinedType; + } + if (undefinedOrMissingType2 && index >= getTotalFixedElementCount(tupleType.target)) { + return getUnionType([restType, undefinedOrMissingType2]); + } + return restType; + }); + } function getRestArrayTypeOfTupleType(type) { const restType = getRestTypeOfTupleType(type); return restType && createArrayType(restType); @@ -64943,7 +65435,7 @@ ${lanes.join("\n")} const t = getTypeOfSymbol(p); if (getObjectFlags(t) & 65536 /* ContainsWideningType */) { if (!reportWideningErrorsInType(t)) { - error(p.valueDeclaration, Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type, symbolToString(p), typeToString(getWidenedType(t))); + error2(p.valueDeclaration, Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type, symbolToString(p), typeToString(getWidenedType(t))); } errorReported = true; } @@ -64959,12 +65451,12 @@ ${lanes.join("\n")} } let diagnostic; switch (declaration.kind) { - case 225 /* BinaryExpression */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: + case 226 /* BinaryExpression */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: diagnostic = noImplicitAny ? Diagnostics.Member_0_implicitly_has_an_1_type : Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage; break; - case 168 /* Parameter */: + case 169 /* Parameter */: const param = declaration; if (isIdentifier(param.name)) { const originalKeywordKind = identifierToKeywordKind(param.name); @@ -64986,40 +65478,40 @@ ${lanes.join("\n")} } diagnostic = declaration.dotDotDotToken ? noImplicitAny ? Diagnostics.Rest_parameter_0_implicitly_has_an_any_type : Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage : noImplicitAny ? Diagnostics.Parameter_0_implicitly_has_an_1_type : Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage; break; - case 207 /* BindingElement */: + case 208 /* BindingElement */: diagnostic = Diagnostics.Binding_element_0_implicitly_has_an_1_type; if (!noImplicitAny) { return; } break; - case 323 /* JSDocFunctionType */: - error(declaration, Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type, typeAsString); + case 324 /* JSDocFunctionType */: + error2(declaration, Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type, typeAsString); return; - case 329 /* JSDocSignature */: + case 330 /* JSDocSignature */: if (noImplicitAny && isJSDocOverloadTag(declaration.parent)) { - error(declaration.parent.tagName, Diagnostics.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation, typeAsString); + error2(declaration.parent.tagName, Diagnostics.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation, typeAsString); } return; - case 261 /* FunctionDeclaration */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: if (noImplicitAny && !declaration.name) { if (wideningKind === 3 /* GeneratorYield */) { - error(declaration, Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation, typeAsString); + error2(declaration, Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation, typeAsString); } else { - error(declaration, Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type, typeAsString); + error2(declaration, Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type, typeAsString); } return; } diagnostic = !noImplicitAny ? Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage : wideningKind === 3 /* GeneratorYield */ ? Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type : Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type; break; - case 199 /* MappedType */: + case 200 /* MappedType */: if (noImplicitAny) { - error(declaration, Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type); + error2(declaration, Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type); } return; default: @@ -65114,7 +65606,7 @@ ${lanes.join("\n")} function inferFromIntraExpressionSites(context) { if (context.intraExpressionInferenceSites) { for (const { node, type } of context.intraExpressionInferenceSites) { - const contextualType = node.kind === 173 /* MethodDeclaration */ ? getContextualTypeForObjectLiteralMethod(node, 2 /* NoConstraints */) : getContextualType2(node, 2 /* NoConstraints */); + const contextualType = node.kind === 174 /* MethodDeclaration */ ? getContextualTypeForObjectLiteralMethod(node, 2 /* NoConstraints */) : getContextualType2(node, 2 /* NoConstraints */); if (contextualType) { inferTypes(context.inferences, type, contextualType); } @@ -65166,8 +65658,8 @@ ${lanes.join("\n")} } function isNonGenericTopLevelType(type) { if (type.aliasSymbol && !type.aliasTypeArguments) { - const declaration = getDeclarationOfKind(type.aliasSymbol, 264 /* TypeAliasDeclaration */); - return !!(declaration && findAncestor(declaration.parent, (n) => n.kind === 311 /* SourceFile */ ? true : n.kind === 266 /* ModuleDeclaration */ ? false : "quit")); + const declaration = getDeclarationOfKind(type.aliasSymbol, 265 /* TypeAliasDeclaration */); + return !!(declaration && findAncestor(declaration.parent, (n) => n.kind === 312 /* SourceFile */ ? true : n.kind === 267 /* ModuleDeclaration */ ? false : "quit")); } return false; } @@ -65209,17 +65701,18 @@ ${lanes.join("\n")} ); } function inferTypeForHomomorphicMappedType(source, target, constraint) { - if (inInferTypeForHomomorphicMappedType) { - return void 0; + const cacheKey = source.id + "," + target.id + "," + constraint.id; + if (reverseMappedCache.has(cacheKey)) { + return reverseMappedCache.get(cacheKey); } - const key = source.id + "," + target.id + "," + constraint.id; - if (reverseMappedCache.has(key)) { - return reverseMappedCache.get(key); + const recursionKey = source.id + "," + (target.target || target).id; + if (contains(homomorphicMappedTypeInferenceStack, recursionKey)) { + return void 0; } - inInferTypeForHomomorphicMappedType = true; + homomorphicMappedTypeInferenceStack.push(recursionKey); const type = createReverseMappedType(source, target, constraint); - inInferTypeForHomomorphicMappedType = false; - reverseMappedCache.set(key, type); + homomorphicMappedTypeInferenceStack.pop(); + reverseMappedCache.set(cacheKey, type); return type; } function isPartiallyInferableType(type) { @@ -65992,7 +66485,7 @@ ${lanes.join("\n")} if (!(source.flags & 64 /* IsNonInferrable */)) { const saveBivariant = bivariant; const kind = target.declaration ? target.declaration.kind : 0 /* Unknown */; - bivariant = bivariant || kind === 173 /* MethodDeclaration */ || kind === 172 /* MethodSignature */ || kind === 175 /* Constructor */; + bivariant = bivariant || kind === 174 /* MethodDeclaration */ || kind === 173 /* MethodSignature */ || kind === 176 /* Constructor */; applyToParameterTypes(source, target, inferFromContravariantTypesIfStrictFunctionTypes); bivariant = saveBivariant; } @@ -66092,7 +66585,7 @@ ${lanes.join("\n")} const constraint = getConstraintOfTypeParameter(inference.typeParameter); if (constraint) { const instantiatedConstraint = instantiateType(constraint, context.nonFixingMapper); - if (!inferredType || !context.compareTypes(inferredType, getTypeWithThisArgument(instantiatedConstraint, inferredType))) { + if (!inferredType || inferredType === wildcardType || !context.compareTypes(inferredType, getTypeWithThisArgument(instantiatedConstraint, inferredType))) { inference.inferredType = fallbackType && context.compareTypes(fallbackType, getTypeWithThisArgument(instantiatedConstraint, fallbackType)) ? fallbackType : instantiatedConstraint; } } @@ -66150,7 +66643,7 @@ ${lanes.join("\n")} return Diagnostics.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function; } default: - if (node.parent.kind === 303 /* ShorthandPropertyAssignment */) { + if (node.parent.kind === 304 /* ShorthandPropertyAssignment */) { return Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer; } else { return Diagnostics.Cannot_find_name_0; @@ -66173,14 +66666,8 @@ ${lanes.join("\n")} } return links.resolvedSymbol; } - function isInTypeQuery(node) { - return !!findAncestor( - node, - (n) => n.kind === 185 /* TypeQuery */ ? true : n.kind === 80 /* Identifier */ || n.kind === 165 /* QualifiedName */ ? false : "quit" - ); - } function isInAmbientOrTypeNode(node) { - return !!(node.flags & 16777216 /* Ambient */ || findAncestor(node, (n) => isInterfaceDeclaration(n) || isTypeAliasDeclaration(n) || isTypeLiteralNode(n))); + return !!(node.flags & 33554432 /* Ambient */ || findAncestor(node, (n) => isInterfaceDeclaration(n) || isTypeAliasDeclaration(n) || isTypeLiteralNode(n))); } function getFlowCacheKey(node, declaredType, initialType, flowContainer) { switch (node.kind) { @@ -66191,41 +66678,41 @@ ${lanes.join("\n")} } case 110 /* ThisKeyword */: return `0|${flowContainer ? getNodeId(flowContainer) : "-1"}|${getTypeId(declaredType)}|${getTypeId(initialType)}`; - case 234 /* NonNullExpression */: - case 216 /* ParenthesizedExpression */: + case 235 /* NonNullExpression */: + case 217 /* ParenthesizedExpression */: return getFlowCacheKey(node.expression, declaredType, initialType, flowContainer); - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: const left = getFlowCacheKey(node.left, declaredType, initialType, flowContainer); return left && left + "." + node.right.escapedText; - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: const propName = getAccessedPropertyName(node); if (propName !== void 0) { const key = getFlowCacheKey(node.expression, declaredType, initialType, flowContainer); return key && key + "." + propName; } break; - case 205 /* ObjectBindingPattern */: - case 206 /* ArrayBindingPattern */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: + case 206 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: return `${getNodeId(node)}#${getTypeId(declaredType)}`; } return void 0; } function isMatchingReference(source, target) { switch (target.kind) { - case 216 /* ParenthesizedExpression */: - case 234 /* NonNullExpression */: + case 217 /* ParenthesizedExpression */: + case 235 /* NonNullExpression */: return isMatchingReference(source, target.expression); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return isAssignmentExpression(target) && isMatchingReference(source, target.left) || isBinaryExpression(target) && target.operatorToken.kind === 28 /* CommaToken */ && isMatchingReference(source, target.right); } switch (source.kind) { - case 235 /* MetaProperty */: - return target.kind === 235 /* MetaProperty */ && source.keywordToken === target.keywordToken && source.name.escapedText === target.name.escapedText; + case 236 /* MetaProperty */: + return target.kind === 236 /* MetaProperty */ && source.keywordToken === target.keywordToken && source.name.escapedText === target.name.escapedText; case 80 /* Identifier */: case 81 /* PrivateIdentifier */: return isThisInTypeQuery(source) ? target.kind === 110 /* ThisKeyword */ : target.kind === 80 /* Identifier */ && getResolvedSymbol(source) === getResolvedSymbol(target) || (isVariableDeclaration(target) || isBindingElement(target)) && getExportSymbolOfValueSymbolIfExported(getResolvedSymbol(source)) === getSymbolOfDeclaration(target); @@ -66233,17 +66720,17 @@ ${lanes.join("\n")} return target.kind === 110 /* ThisKeyword */; case 108 /* SuperKeyword */: return target.kind === 108 /* SuperKeyword */; - case 234 /* NonNullExpression */: - case 216 /* ParenthesizedExpression */: + case 235 /* NonNullExpression */: + case 217 /* ParenthesizedExpression */: return isMatchingReference(source.expression, target); - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: const sourcePropertyName = getAccessedPropertyName(source); const targetPropertyName = isAccessExpression(target) ? getAccessedPropertyName(target) : void 0; return sourcePropertyName !== void 0 && targetPropertyName !== void 0 && targetPropertyName === sourcePropertyName && isMatchingReference(source.expression, target.expression); - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: return isAccessExpression(target) && source.right.escapedText === getAccessedPropertyName(target) && isMatchingReference(source.left, target.expression); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return isBinaryExpression(source) && source.operatorToken.kind === 28 /* CommaToken */ && isMatchingReference(source.right, target); } return false; @@ -66277,7 +66764,7 @@ ${lanes.join("\n")} /*ignoreErrors*/ true ); - if (!symbol || !(isConstVariable(symbol) || symbol.flags & 8 /* EnumMember */)) + if (!symbol || !(isConstantVariable(symbol) || symbol.flags & 8 /* EnumMember */)) return void 0; const declaration = symbol.valueDeclaration; if (declaration === void 0) @@ -66396,7 +66883,7 @@ ${lanes.join("\n")} } function getMatchingUnionConstituentForObjectLiteral(unionType, node) { const keyPropertyName = getKeyPropertyName(unionType); - const propNode = keyPropertyName && find(node.properties, (p) => p.symbol && p.kind === 302 /* PropertyAssignment */ && p.symbol.escapedName === keyPropertyName && isPossiblyDiscriminantValue(p.initializer)); + const propNode = keyPropertyName && find(node.properties, (p) => p.symbol && p.kind === 303 /* PropertyAssignment */ && p.symbol.escapedName === keyPropertyName && isPossiblyDiscriminantValue(p.initializer)); const propType = propNode && getContextFreeTypeOfExpression(propNode.initializer); return propType && getConstituentTypeForKeyType(unionType, propType); } @@ -66411,7 +66898,7 @@ ${lanes.join("\n")} } } } - if (expression.expression.kind === 210 /* PropertyAccessExpression */ && isOrContainsMatchingReference(reference, expression.expression.expression)) { + if (expression.expression.kind === 211 /* PropertyAccessExpression */ && isOrContainsMatchingReference(reference, expression.expression.expression)) { return true; } return false; @@ -66583,11 +67070,11 @@ ${lanes.join("\n")} ) || errorType); } function getAssignedTypeOfBinaryExpression(node) { - const isDestructuringDefaultAssignment = node.parent.kind === 208 /* ArrayLiteralExpression */ && isDestructuringAssignmentTarget(node.parent) || node.parent.kind === 302 /* PropertyAssignment */ && isDestructuringAssignmentTarget(node.parent.parent); + const isDestructuringDefaultAssignment = node.parent.kind === 209 /* ArrayLiteralExpression */ && isDestructuringAssignmentTarget(node.parent) || node.parent.kind === 303 /* PropertyAssignment */ && isDestructuringAssignmentTarget(node.parent.parent); return isDestructuringDefaultAssignment ? getTypeWithDefault(getAssignedType(node), node.right) : getTypeOfExpression(node.right); } function isDestructuringAssignmentTarget(parent2) { - return parent2.parent.kind === 225 /* BinaryExpression */ && parent2.parent.left === parent2 || parent2.parent.kind === 249 /* ForOfStatement */ && parent2.parent.initializer === parent2; + return parent2.parent.kind === 226 /* BinaryExpression */ && parent2.parent.left === parent2 || parent2.parent.kind === 250 /* ForOfStatement */ && parent2.parent.initializer === parent2; } function getAssignedTypeOfArrayLiteralElement(node, element) { return getTypeOfDestructuredArrayElement(getAssignedType(node), node.elements.indexOf(element)); @@ -66604,21 +67091,21 @@ ${lanes.join("\n")} function getAssignedType(node) { const { parent: parent2 } = node; switch (parent2.kind) { - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return stringType; - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return checkRightHandSideOfForOf(parent2) || errorType; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return getAssignedTypeOfBinaryExpression(parent2); - case 219 /* DeleteExpression */: + case 220 /* DeleteExpression */: return undefinedType; - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return getAssignedTypeOfArrayLiteralElement(parent2, node); - case 229 /* SpreadElement */: + case 230 /* SpreadElement */: return getAssignedTypeOfSpreadExpression(parent2); - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return getAssignedTypeOfPropertyAssignment(parent2); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return getAssignedTypeOfShorthandPropertyAssignment(parent2); } return errorType; @@ -66626,7 +67113,7 @@ ${lanes.join("\n")} function getInitialTypeOfBindingElement(node) { const pattern = node.parent; const parentType = getInitialType(pattern.parent); - const type = pattern.kind === 205 /* ObjectBindingPattern */ ? getTypeOfDestructuredProperty(parentType, node.propertyName || node.name) : !node.dotDotDotToken ? getTypeOfDestructuredArrayElement(parentType, pattern.elements.indexOf(node)) : getTypeOfDestructuredSpreadExpression(parentType); + const type = pattern.kind === 206 /* ObjectBindingPattern */ ? getTypeOfDestructuredProperty(parentType, node.propertyName || node.name) : !node.dotDotDotToken ? getTypeOfDestructuredArrayElement(parentType, pattern.elements.indexOf(node)) : getTypeOfDestructuredSpreadExpression(parentType); return getTypeWithDefault(type, node.initializer); } function getTypeOfInitializer(node) { @@ -66637,25 +67124,25 @@ ${lanes.join("\n")} if (node.initializer) { return getTypeOfInitializer(node.initializer); } - if (node.parent.parent.kind === 248 /* ForInStatement */) { + if (node.parent.parent.kind === 249 /* ForInStatement */) { return stringType; } - if (node.parent.parent.kind === 249 /* ForOfStatement */) { + if (node.parent.parent.kind === 250 /* ForOfStatement */) { return checkRightHandSideOfForOf(node.parent.parent) || errorType; } return errorType; } function getInitialType(node) { - return node.kind === 259 /* VariableDeclaration */ ? getInitialTypeOfVariableDeclaration(node) : getInitialTypeOfBindingElement(node); + return node.kind === 260 /* VariableDeclaration */ ? getInitialTypeOfVariableDeclaration(node) : getInitialTypeOfBindingElement(node); } function isEmptyArrayAssignment(node) { - return node.kind === 259 /* VariableDeclaration */ && node.initializer && isEmptyArrayLiteral2(node.initializer) || node.kind !== 207 /* BindingElement */ && node.parent.kind === 225 /* BinaryExpression */ && isEmptyArrayLiteral2(node.parent.right); + return node.kind === 260 /* VariableDeclaration */ && node.initializer && isEmptyArrayLiteral2(node.initializer) || node.kind !== 208 /* BindingElement */ && node.parent.kind === 226 /* BinaryExpression */ && isEmptyArrayLiteral2(node.parent.right); } function getReferenceCandidate(node) { switch (node.kind) { - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return getReferenceCandidate(node.expression); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: switch (node.operatorToken.kind) { case 64 /* EqualsToken */: case 76 /* BarBarEqualsToken */: @@ -66670,10 +67157,10 @@ ${lanes.join("\n")} } function getReferenceRoot(node) { const { parent: parent2 } = node; - return parent2.kind === 216 /* ParenthesizedExpression */ || parent2.kind === 225 /* BinaryExpression */ && parent2.operatorToken.kind === 64 /* EqualsToken */ && parent2.left === node || parent2.kind === 225 /* BinaryExpression */ && parent2.operatorToken.kind === 28 /* CommaToken */ && parent2.right === node ? getReferenceRoot(parent2) : node; + return parent2.kind === 217 /* ParenthesizedExpression */ || parent2.kind === 226 /* BinaryExpression */ && parent2.operatorToken.kind === 64 /* EqualsToken */ && parent2.left === node || parent2.kind === 226 /* BinaryExpression */ && parent2.operatorToken.kind === 28 /* CommaToken */ && parent2.right === node ? getReferenceRoot(parent2) : node; } function getTypeOfSwitchClause(clause) { - if (clause.kind === 295 /* CaseClause */) { + if (clause.kind === 296 /* CaseClause */) { return getRegularTypeOfLiteralType(getTypeOfExpression(clause.expression)); } return neverType; @@ -66689,12 +67176,12 @@ ${lanes.join("\n")} return links.switchTypes; } function getSwitchClauseTypeOfWitnesses(switchStatement) { - if (some(switchStatement.caseBlock.clauses, (clause) => clause.kind === 295 /* CaseClause */ && !isStringLiteralLike(clause.expression))) { + if (some(switchStatement.caseBlock.clauses, (clause) => clause.kind === 296 /* CaseClause */ && !isStringLiteralLike(clause.expression))) { return void 0; } const witnesses = []; for (const clause of switchStatement.caseBlock.clauses) { - const text = clause.kind === 295 /* CaseClause */ ? clause.expression.text : void 0; + const text = clause.kind === 296 /* CaseClause */ ? clause.expression.text : void 0; witnesses.push(text && !contains(witnesses, text) ? text : void 0); } return witnesses; @@ -66852,8 +67339,8 @@ ${lanes.join("\n")} function isEvolvingArrayOperationTarget(node) { const root = getReferenceRoot(node); const parent2 = root.parent; - const isLengthPushOrUnshift = isPropertyAccessExpression(parent2) && (parent2.name.escapedText === "length" || parent2.parent.kind === 212 /* CallExpression */ && isIdentifier(parent2.name) && isPushOrUnshiftIdentifier(parent2.name)); - const isElementAssignment = parent2.kind === 211 /* ElementAccessExpression */ && parent2.expression === root && parent2.parent.kind === 225 /* BinaryExpression */ && parent2.parent.operatorToken.kind === 64 /* EqualsToken */ && parent2.parent.left === parent2 && !isAssignmentTarget(parent2.parent) && isTypeAssignableToKind(getTypeOfExpression(parent2.argumentExpression), 296 /* NumberLike */); + const isLengthPushOrUnshift = isPropertyAccessExpression(parent2) && (parent2.name.escapedText === "length" || parent2.parent.kind === 213 /* CallExpression */ && isIdentifier(parent2.name) && isPushOrUnshiftIdentifier(parent2.name)); + const isElementAssignment = parent2.kind === 212 /* ElementAccessExpression */ && parent2.expression === root && parent2.parent.kind === 226 /* BinaryExpression */ && parent2.parent.operatorToken.kind === 64 /* EqualsToken */ && parent2.parent.left === parent2 && !isAssignmentTarget(parent2.parent) && isTypeAssignableToKind(getTypeOfExpression(parent2.argumentExpression), 296 /* NumberLike */); return isLengthPushOrUnshift || isElementAssignment; } function isDeclarationWithExplicitTypeAnnotation(node) { @@ -66876,7 +67363,7 @@ ${lanes.join("\n")} if (isDeclarationWithExplicitTypeAnnotation(declaration)) { return getTypeOfSymbol(symbol); } - if (isVariableDeclaration(declaration) && declaration.parent.parent.kind === 249 /* ForOfStatement */) { + if (isVariableDeclaration(declaration) && declaration.parent.parent.kind === 250 /* ForOfStatement */) { const statement = declaration.parent.parent; const expressionType = getTypeOfDottedName( statement.expression, @@ -66901,7 +67388,7 @@ ${lanes.join("\n")} } } function getTypeOfDottedName(node, diagnostic) { - if (!(node.flags & 33554432 /* InWithStatement */)) { + if (!(node.flags & 67108864 /* InWithStatement */)) { switch (node.kind) { case 80 /* Identifier */: const symbol = getExportSymbolOfValueSymbolIfExported(getResolvedSymbol(node)); @@ -66910,7 +67397,7 @@ ${lanes.join("\n")} return getExplicitThisType(node); case 108 /* SuperKeyword */: return checkSuperExpression(node); - case 210 /* PropertyAccessExpression */: { + case 211 /* PropertyAccessExpression */: { const type = getTypeOfDottedName(node.expression, diagnostic); if (type) { const name = node.name; @@ -66927,7 +67414,7 @@ ${lanes.join("\n")} } return void 0; } - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return getTypeOfDottedName(node.expression, diagnostic); } } @@ -66937,7 +67424,7 @@ ${lanes.join("\n")} let signature = links.effectsSignature; if (signature === void 0) { let funcType; - if (node.parent.kind === 243 /* ExpressionStatement */) { + if (node.parent.kind === 244 /* ExpressionStatement */) { funcType = getTypeOfDottedName( node.expression, /*diagnostic*/ @@ -66991,7 +67478,7 @@ ${lanes.join("\n")} /*excludeJSDocTypeAssertions*/ true ); - return node.kind === 97 /* FalseKeyword */ || node.kind === 225 /* BinaryExpression */ && (node.operatorToken.kind === 56 /* AmpersandAmpersandToken */ && (isFalseExpression(node.left) || isFalseExpression(node.right)) || node.operatorToken.kind === 57 /* BarBarToken */ && isFalseExpression(node.left) && isFalseExpression(node.right)); + return node.kind === 97 /* FalseKeyword */ || node.kind === 226 /* BinaryExpression */ && (node.operatorToken.kind === 56 /* AmpersandAmpersandToken */ && (isFalseExpression(node.left) || isFalseExpression(node.right)) || node.operatorToken.kind === 57 /* BarBarToken */ && isFalseExpression(node.left) && isFalseExpression(node.right)); } function isReachableFlowNodeWorker(flow, noCacheCheck) { while (true) { @@ -67110,14 +67597,16 @@ ${lanes.join("\n")} } function isConstantReference(node) { switch (node.kind) { + case 110 /* ThisKeyword */: + return true; case 80 /* Identifier */: if (!isThisInTypeQuery(node)) { const symbol = getResolvedSymbol(node); - return isConstVariable(symbol) || isParameterOrCatchClauseVariable(symbol) && !isSymbolAssigned(symbol); + return isConstantVariable(symbol) || isParameterOrCatchClauseVariable(symbol) && !isSymbolAssigned(symbol); } break; - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return isConstantReference(node.expression) && isReadonlySymbol(getNodeLinks(node).resolvedSymbol || unknownSymbol); } return false; @@ -67137,7 +67626,7 @@ ${lanes.join("\n")} const evolvedType = getTypeFromFlowType(getTypeAtFlowNode(flowNode)); sharedFlowCount = sharedFlowStart; const resultType = getObjectFlags(evolvedType) & 256 /* EvolvingArray */ && isEvolvingArrayOperationTarget(reference) ? autoArrayType : finalizeEvolvingArrayType(evolvedType); - if (resultType === unreachableNeverType || reference.parent && reference.parent.kind === 234 /* NonNullExpression */ && !(resultType.flags & 131072 /* Never */) && getTypeWithFacts(resultType, 2097152 /* NEUndefinedOrNull */).flags & 131072 /* Never */) { + if (resultType === unreachableNeverType || reference.parent && reference.parent.kind === 235 /* NonNullExpression */ && !(resultType.flags & 131072 /* Never */) && getTypeWithFacts(resultType, 2097152 /* NEUndefinedOrNull */).flags & 131072 /* Never */) { return declaredType; } return resultType === nonNullUnknownType ? unknownType : resultType; @@ -67206,7 +67695,7 @@ ${lanes.join("\n")} target.antecedents = saveAntecedents; } else if (flags & 2 /* Start */) { const container = flow.node; - if (container && container !== flowContainer && reference.kind !== 210 /* PropertyAccessExpression */ && reference.kind !== 211 /* ElementAccessExpression */ && reference.kind !== 110 /* ThisKeyword */) { + if (container && container !== flowContainer && reference.kind !== 211 /* PropertyAccessExpression */ && reference.kind !== 212 /* ElementAccessExpression */ && !(reference.kind === 110 /* ThisKeyword */ && container.kind !== 219 /* ArrowFunction */)) { flow = container.flowNode; continue; } @@ -67225,7 +67714,7 @@ ${lanes.join("\n")} } function getInitialOrAssignedType(flow) { const node = flow.node; - return getNarrowableTypeForReference(node.kind === 259 /* VariableDeclaration */ || node.kind === 207 /* BindingElement */ ? getInitialType(node) : getAssignedType(node), reference); + return getNarrowableTypeForReference(node.kind === 260 /* VariableDeclaration */ || node.kind === 208 /* BindingElement */ ? getInitialType(node) : getAssignedType(node), reference); } function getTypeAtFlowAssignment(flow) { const node = flow.node; @@ -67253,15 +67742,15 @@ ${lanes.join("\n")} if (!isReachableFlowNode(flow)) { return unreachableNeverType; } - if (isVariableDeclaration(node) && (isInJSFile(node) || isVarConst(node))) { + if (isVariableDeclaration(node) && (isInJSFile(node) || isVarConstLike(node))) { const init = getDeclaredExpandoInitializer(node); - if (init && (init.kind === 217 /* FunctionExpression */ || init.kind === 218 /* ArrowFunction */)) { + if (init && (init.kind === 218 /* FunctionExpression */ || init.kind === 219 /* ArrowFunction */)) { return getTypeAtFlowNode(flow.antecedent); } } return declaredType; } - if (isVariableDeclaration(node) && node.parent.parent.kind === 248 /* ForInStatement */ && (isMatchingReference(reference, node.parent.parent.expression) || optionalChainContainsReference(node.parent.parent.expression, reference))) { + if (isVariableDeclaration(node) && node.parent.parent.kind === 249 /* ForInStatement */ && (isMatchingReference(reference, node.parent.parent.expression) || optionalChainContainsReference(node.parent.parent.expression, reference))) { return getNonNullableTypeIfNeeded(finalizeEvolvingArrayType(getTypeFromFlowType(getTypeAtFlowNode(flow.antecedent)))); } return void 0; @@ -67275,7 +67764,7 @@ ${lanes.join("\n")} if (node.kind === 97 /* FalseKeyword */) { return unreachableNeverType; } - if (node.kind === 225 /* BinaryExpression */) { + if (node.kind === 226 /* BinaryExpression */) { if (node.operatorToken.kind === 56 /* AmpersandAmpersandToken */) { return narrowTypeByAssertion(narrowTypeByAssertion(type, node.left), node.right); } @@ -67315,13 +67804,13 @@ ${lanes.join("\n")} function getTypeAtFlowArrayMutation(flow) { if (declaredType === autoType || declaredType === autoArrayType) { const node = flow.node; - const expr = node.kind === 212 /* CallExpression */ ? node.expression.expression : node.left.expression; + const expr = node.kind === 213 /* CallExpression */ ? node.expression.expression : node.left.expression; if (isMatchingReference(reference, getReferenceCandidate(expr))) { const flowType = getTypeAtFlowNode(flow.antecedent); const type = getTypeFromFlowType(flowType); if (getObjectFlags(type) & 256 /* EvolvingArray */) { let evolvedType2 = type; - if (node.kind === 212 /* CallExpression */) { + if (node.kind === 213 /* CallExpression */) { for (const arg of node.arguments) { evolvedType2 = addEvolvingArrayElementType(evolvedType2, arg); } @@ -67358,7 +67847,7 @@ ${lanes.join("\n")} let type = getTypeFromFlowType(flowType); if (isMatchingReference(reference, expr)) { type = narrowTypeBySwitchOnDiscriminant(type, flow.switchStatement, flow.clauseStart, flow.clauseEnd); - } else if (expr.kind === 220 /* TypeOfExpression */ && isMatchingReference(reference, expr.expression)) { + } else if (expr.kind === 221 /* TypeOfExpression */ && isMatchingReference(reference, expr.expression)) { type = narrowTypeBySwitchOnTypeOf(type, flow.switchStatement, flow.clauseStart, flow.clauseEnd); } else { if (strictNullChecks) { @@ -67370,7 +67859,7 @@ ${lanes.join("\n")} flow.clauseEnd, (t) => !(t.flags & (32768 /* Undefined */ | 131072 /* Never */)) ); - } else if (expr.kind === 220 /* TypeOfExpression */ && optionalChainContainsReference(expr.expression, reference)) { + } else if (expr.kind === 221 /* TypeOfExpression */ && optionalChainContainsReference(expr.expression, reference)) { type = narrowTypeBySwitchOptionalChainContainment( type, flow.switchStatement, @@ -67515,7 +68004,7 @@ ${lanes.join("\n")} } } else if (isIdentifier(expr)) { const symbol = getResolvedSymbol(expr); - if (isConstVariable(symbol)) { + if (isConstantVariable(symbol)) { const declaration = symbol.valueDeclaration; if (isVariableDeclaration(declaration) && !declaration.type && declaration.initializer && isAccessExpression(declaration.initializer) && isMatchingReference(reference, declaration.initializer.expression)) { return declaration.initializer; @@ -67633,10 +68122,10 @@ ${lanes.join("\n")} const operator = expr.operatorToken.kind; const left = getReferenceCandidate(expr.left); const right = getReferenceCandidate(expr.right); - if (left.kind === 220 /* TypeOfExpression */ && isStringLiteralLike(right)) { + if (left.kind === 221 /* TypeOfExpression */ && isStringLiteralLike(right)) { return narrowTypeByTypeof(type, left, operator, right, assumeTrue); } - if (right.kind === 220 /* TypeOfExpression */ && isStringLiteralLike(left)) { + if (right.kind === 221 /* TypeOfExpression */ && isStringLiteralLike(left)) { return narrowTypeByTypeof(type, right, operator, left, assumeTrue); } if (isMatchingReference(reference, left)) { @@ -67674,12 +68163,15 @@ ${lanes.join("\n")} return narrowTypeByPrivateIdentifierInInExpression(type, expr, assumeTrue); } const target = getReferenceCandidate(expr.right); - const leftType = getTypeOfExpression(expr.left); - if (leftType.flags & 8576 /* StringOrNumberLiteralOrUnique */) { - if (containsMissingType(type) && isAccessExpression(reference) && isMatchingReference(reference.expression, target) && getAccessedPropertyName(reference) === getPropertyNameFromType(leftType)) { + if (containsMissingType(type) && isAccessExpression(reference) && isMatchingReference(reference.expression, target)) { + const leftType = getTypeOfExpression(expr.left); + if (isTypeUsableAsPropertyName(leftType) && getAccessedPropertyName(reference) === getPropertyNameFromType(leftType)) { return getTypeWithFacts(type, assumeTrue ? 524288 /* NEUndefined */ : 65536 /* EQUndefined */); } - if (isMatchingReference(reference, target)) { + } + if (isMatchingReference(reference, target)) { + const leftType = getTypeOfExpression(expr.left); + if (isTypeUsableAsPropertyName(leftType)) { return narrowTypeByInKeyword(type, leftType, assumeTrue); } } @@ -67895,7 +68387,7 @@ ${lanes.join("\n")} if (!witnesses) { return type; } - const defaultIndex = findIndex(switchStatement.caseBlock.clauses, (clause) => clause.kind === 296 /* DefaultClause */); + const defaultIndex = findIndex(switchStatement.caseBlock.clauses, (clause) => clause.kind === 297 /* DefaultClause */); const hasDefaultClause = clauseStart === clauseEnd || defaultIndex >= clauseStart && defaultIndex < clauseEnd; if (hasDefaultClause) { const notEqualFacts = getNotEqualFactsFromTypeofSwitch(clauseStart, clauseEnd, witnesses); @@ -68059,7 +68551,7 @@ ${lanes.join("\n")} case 80 /* Identifier */: if (!isMatchingReference(reference, expr) && inlineLevel < 5) { const symbol = getResolvedSymbol(expr); - if (isConstVariable(symbol)) { + if (isConstantVariable(symbol)) { const declaration = symbol.valueDeclaration; if (declaration && isVariableDeclaration(declaration) && !declaration.type && declaration.initializer && isConstantReference(reference)) { inlineLevel++; @@ -68071,17 +68563,17 @@ ${lanes.join("\n")} } case 110 /* ThisKeyword */: case 108 /* SuperKeyword */: - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return narrowTypeByTruthiness(type, expr, assumeTrue); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return narrowTypeByCallExpression(type, expr, assumeTrue); - case 216 /* ParenthesizedExpression */: - case 234 /* NonNullExpression */: + case 217 /* ParenthesizedExpression */: + case 235 /* NonNullExpression */: return narrowType(type, expr.expression, assumeTrue); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return narrowTypeByBinaryExpression(type, expr, assumeTrue); - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: if (expr.operator === 54 /* ExclamationToken */) { return narrowType(type, expr.operand, !assumeTrue); } @@ -68107,7 +68599,7 @@ ${lanes.join("\n")} location = location.parent; } if (isExpressionNode(location) && (!isAssignmentTarget(location) || isWriteAccess(location))) { - const type = getTypeOfExpression(location); + const type = removeOptionalTypeMarker(getTypeOfExpression(location)); if (getExportSymbolOfValueSymbolIfExported(getNodeLinks(location).resolvedSymbol) === symbol) { return type; } @@ -68119,7 +68611,7 @@ ${lanes.join("\n")} return getNonMissingTypeOfSymbol(symbol); } function getControlFlowContainer(node) { - return findAncestor(node.parent, (node2) => isFunctionLike(node2) && !getImmediatelyInvokedFunctionExpression(node2) || node2.kind === 267 /* ModuleBlock */ || node2.kind === 311 /* SourceFile */ || node2.kind === 171 /* PropertyDeclaration */); + return findAncestor(node.parent, (node2) => isFunctionLike(node2) && !getImmediatelyInvokedFunctionExpression(node2) || node2.kind === 268 /* ModuleBlock */ || node2.kind === 312 /* SourceFile */ || node2.kind === 172 /* PropertyDeclaration */); } function isSymbolAssigned(symbol) { if (!symbol.valueDeclaration) { @@ -68127,8 +68619,8 @@ ${lanes.join("\n")} } const parent2 = getRootDeclaration(symbol.valueDeclaration).parent; const links = getNodeLinks(parent2); - if (!(links.flags & 524288 /* AssignmentsMarked */)) { - links.flags |= 524288 /* AssignmentsMarked */; + if (!(links.flags & 131072 /* AssignmentsMarked */)) { + links.flags |= 131072 /* AssignmentsMarked */; if (!hasParentWithAssignmentsMarked(parent2)) { markNodeAssignments(parent2); } @@ -68136,7 +68628,7 @@ ${lanes.join("\n")} return symbol.isAssigned || false; } function hasParentWithAssignmentsMarked(node) { - return !!findAncestor(node.parent, (node2) => (isFunctionLike(node2) || isCatchClause(node2)) && !!(getNodeLinks(node2).flags & 524288 /* AssignmentsMarked */)); + return !!findAncestor(node.parent, (node2) => (isFunctionLike(node2) || isCatchClause(node2)) && !!(getNodeLinks(node2).flags & 131072 /* AssignmentsMarked */)); } function markNodeAssignments(node) { if (node.kind === 80 /* Identifier */) { @@ -68150,8 +68642,8 @@ ${lanes.join("\n")} forEachChild(node, markNodeAssignments); } } - function isConstVariable(symbol) { - return symbol.flags & 3 /* Variable */ && (getDeclarationNodeFlagsFromSymbol(symbol) & 2 /* Const */) !== 0; + function isConstantVariable(symbol) { + return symbol.flags & 3 /* Variable */ && (getDeclarationNodeFlagsFromSymbol(symbol) & 6 /* Constant */) !== 0; } function parameterInitializerContainsUndefined(declaration) { const links = getNodeLinks(declaration); @@ -68170,12 +68662,12 @@ ${lanes.join("\n")} return links.parameterInitializerContainsUndefined; } function removeOptionalityFromDeclaredType(declaredType, declaration) { - const removeUndefined = strictNullChecks && declaration.kind === 168 /* Parameter */ && declaration.initializer && getTypeFacts(declaredType) & 16777216 /* IsUndefined */ && !parameterInitializerContainsUndefined(declaration); + const removeUndefined = strictNullChecks && declaration.kind === 169 /* Parameter */ && declaration.initializer && getTypeFacts(declaredType) & 16777216 /* IsUndefined */ && !parameterInitializerContainsUndefined(declaration); return removeUndefined ? getTypeWithFacts(declaredType, 524288 /* NEUndefined */) : declaredType; } function isConstraintPosition(type, node) { const parent2 = node.parent; - return parent2.kind === 210 /* PropertyAccessExpression */ || parent2.kind === 165 /* QualifiedName */ || parent2.kind === 212 /* CallExpression */ && parent2.expression === node || parent2.kind === 211 /* ElementAccessExpression */ && parent2.expression === node && !(someType(type, isGenericTypeWithoutNullableConstraint) && isGenericIndexType(getTypeOfExpression(parent2.argumentExpression))); + return parent2.kind === 211 /* PropertyAccessExpression */ || parent2.kind === 166 /* QualifiedName */ || parent2.kind === 213 /* CallExpression */ && parent2.expression === node || parent2.kind === 212 /* ElementAccessExpression */ && parent2.expression === node && !(someType(type, isGenericTypeWithoutNullableConstraint) && isGenericIndexType(getTypeOfExpression(parent2.argumentExpression))); } function isGenericTypeWithUnionConstraint(type) { return type.flags & 2097152 /* Intersection */ ? some(type.types, isGenericTypeWithUnionConstraint) : !!(type.flags & 465829888 /* Instantiable */ && getBaseConstraintOrType(type).flags & (98304 /* Nullable */ | 1048576 /* Union */)); @@ -68218,9 +68710,13 @@ ${lanes.join("\n")} symbol, /*excludes*/ 111551 /* Value */ - ) && !isInTypeQuery(location) && !getTypeOnlyAliasDeclaration(symbol, 111551 /* Value */)) { + ) && !isInTypeQuery(location)) { const target = resolveAlias(symbol); - if (getAllSymbolFlags(target) & (111551 /* Value */ | 1048576 /* ExportValue */)) { + if (getSymbolFlags( + symbol, + /*excludeTypeOnlyMeanings*/ + true + ) & (111551 /* Value */ | 1048576 /* ExportValue */)) { if (getIsolatedModules(compilerOptions) || shouldPreserveConstEnums(compilerOptions) && isExportOrExportExpression(location) || !isConstEnumOrConstEnumOnlyModule(getExportSymbolOfValueSymbolIfExported(target))) { markAliasSymbolAsReferenced(symbol); } else { @@ -68236,14 +68732,14 @@ ${lanes.join("\n")} if (declaration) { if (isBindingElement(declaration) && !declaration.initializer && !declaration.dotDotDotToken && declaration.parent.elements.length >= 2) { const parent2 = declaration.parent.parent; - if (parent2.kind === 259 /* VariableDeclaration */ && getCombinedNodeFlags(declaration) & 2 /* Const */ || parent2.kind === 168 /* Parameter */) { + if (parent2.kind === 260 /* VariableDeclaration */ && getCombinedNodeFlagsCached(declaration) & 6 /* Constant */ || parent2.kind === 169 /* Parameter */) { const links = getNodeLinks(parent2); - if (!(links.flags & 16777216 /* InCheckIdentifier */)) { - links.flags |= 16777216 /* InCheckIdentifier */; + if (!(links.flags & 4194304 /* InCheckIdentifier */)) { + links.flags |= 4194304 /* InCheckIdentifier */; const parentType = getTypeForBindingElementParent(parent2, 0 /* Normal */); const parentTypeConstraint = parentType && mapType(parentType, getBaseConstraintOrType); - links.flags &= ~16777216 /* InCheckIdentifier */; - if (parentTypeConstraint && parentTypeConstraint.flags & 1048576 /* Union */ && !(parent2.kind === 168 /* Parameter */ && isSymbolAssigned(symbol))) { + links.flags &= ~4194304 /* InCheckIdentifier */; + if (parentTypeConstraint && parentTypeConstraint.flags & 1048576 /* Union */ && !(parent2.kind === 169 /* Parameter */ && isSymbolAssigned(symbol))) { const pattern = declaration.parent; const narrowedType = getFlowTypeOfReference( pattern, @@ -68295,15 +68791,15 @@ ${lanes.join("\n")} } if (symbol === argumentsSymbol) { if (isInPropertyInitializerOrClassStaticBlock(node)) { - error(node, Diagnostics.arguments_cannot_be_referenced_in_property_initializers); + error2(node, Diagnostics.arguments_cannot_be_referenced_in_property_initializers); return errorType; } const container = getContainingFunction(node); if (languageVersion < 2 /* ES2015 */) { - if (container.kind === 218 /* ArrowFunction */) { - error(node, Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression); + if (container.kind === 219 /* ArrowFunction */) { + error2(node, Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression); } else if (hasSyntacticModifier(container, 512 /* Async */)) { - error(node, Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method); + error2(node, Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method); } } getNodeLinks(container).flags |= 512 /* CaptureArguments */; @@ -68319,17 +68815,7 @@ ${lanes.join("\n")} } let declaration = localOrExportSymbol.valueDeclaration; if (declaration && localOrExportSymbol.flags & 32 /* Class */) { - if (declaration.kind === 262 /* ClassDeclaration */ && nodeIsDecorated(legacyDecorators, declaration)) { - let container = getContainingClass(node); - while (container !== void 0) { - if (container === declaration && container.name !== node) { - getNodeLinks(declaration).flags |= 1048576 /* ClassWithConstructorReference */; - getNodeLinks(node).flags |= 2097152 /* ConstructorReferenceInClass */; - break; - } - container = getContainingClass(container); - } - } else if (declaration.kind === 230 /* ClassExpression */) { + if (isClassLike(declaration) && declaration.name !== node) { let container = getThisContainer( node, /*includeArrowFunctions*/ @@ -68337,14 +68823,7 @@ ${lanes.join("\n")} /*includeClassComputedPropertyName*/ false ); - while (container.kind !== 311 /* SourceFile */) { - if (container.parent === declaration) { - if (isPropertyDeclaration(container) && isStatic(container) || isClassStaticBlockDeclaration(container)) { - getNodeLinks(declaration).flags |= 1048576 /* ClassWithConstructorReference */; - getNodeLinks(node).flags |= 2097152 /* ConstructorReferenceInClass */; - } - break; - } + while (container.kind !== 312 /* SourceFile */ && container.parent !== declaration) { container = getThisContainer( container, /*includeArrowFunctions*/ @@ -68353,6 +68832,11 @@ ${lanes.join("\n")} false ); } + if (container.kind !== 312 /* SourceFile */) { + getNodeLinks(declaration).flags |= 262144 /* ContainsConstructorReference */; + getNodeLinks(container).flags |= 262144 /* ContainsConstructorReference */; + getNodeLinks(node).flags |= 536870912 /* ConstructorReference */; + } } } checkNestedBlockScopedBinding(node, symbol); @@ -68361,14 +68845,14 @@ ${lanes.join("\n")} if (assignmentKind) { if (!(localOrExportSymbol.flags & 3 /* Variable */) && !(isInJSFile(node) && localOrExportSymbol.flags & 512 /* ValueModule */)) { const assignmentError = localOrExportSymbol.flags & 384 /* Enum */ ? Diagnostics.Cannot_assign_to_0_because_it_is_an_enum : localOrExportSymbol.flags & 32 /* Class */ ? Diagnostics.Cannot_assign_to_0_because_it_is_a_class : localOrExportSymbol.flags & 1536 /* Module */ ? Diagnostics.Cannot_assign_to_0_because_it_is_a_namespace : localOrExportSymbol.flags & 16 /* Function */ ? Diagnostics.Cannot_assign_to_0_because_it_is_a_function : localOrExportSymbol.flags & 2097152 /* Alias */ ? Diagnostics.Cannot_assign_to_0_because_it_is_an_import : Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable; - error(node, assignmentError, symbolToString(symbol)); + error2(node, assignmentError, symbolToString(symbol)); return errorType; } if (isReadonlySymbol(localOrExportSymbol)) { if (localOrExportSymbol.flags & 3 /* Variable */) { - error(node, Diagnostics.Cannot_assign_to_0_because_it_is_a_constant, symbolToString(symbol)); + error2(node, Diagnostics.Cannot_assign_to_0_because_it_is_a_constant, symbolToString(symbol)); } else { - error(node, Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property, symbolToString(symbol)); + error2(node, Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property, symbolToString(symbol)); } return errorType; } @@ -68387,30 +68871,30 @@ ${lanes.join("\n")} return type; } type = getNarrowableTypeForReference(type, node, checkMode); - const isParameter2 = getRootDeclaration(declaration).kind === 168 /* Parameter */; + const isParameter2 = getRootDeclaration(declaration).kind === 169 /* Parameter */; const declarationContainer = getControlFlowContainer(declaration); let flowContainer = getControlFlowContainer(node); const isOuterVariable = flowContainer !== declarationContainer; const isSpreadDestructuringAssignmentTarget = node.parent && node.parent.parent && isSpreadAssignment(node.parent) && isDestructuringAssignmentTarget(node.parent.parent); const isModuleExports = symbol.flags & 134217728 /* ModuleExports */; const typeIsAutomatic = type === autoType || type === autoArrayType; - const isAutomaticTypeInNonNull = typeIsAutomatic && node.parent.kind === 234 /* NonNullExpression */; - while (flowContainer !== declarationContainer && (flowContainer.kind === 217 /* FunctionExpression */ || flowContainer.kind === 218 /* ArrowFunction */ || isObjectLiteralOrClassExpressionMethodOrAccessor(flowContainer)) && (isConstVariable(localOrExportSymbol) && type !== autoArrayType || isParameter2 && !isSymbolAssigned(localOrExportSymbol))) { + const isAutomaticTypeInNonNull = typeIsAutomatic && node.parent.kind === 235 /* NonNullExpression */; + while (flowContainer !== declarationContainer && (flowContainer.kind === 218 /* FunctionExpression */ || flowContainer.kind === 219 /* ArrowFunction */ || isObjectLiteralOrClassExpressionMethodOrAccessor(flowContainer)) && (isConstantVariable(localOrExportSymbol) && type !== autoArrayType || isParameter2 && !isSymbolAssigned(localOrExportSymbol))) { flowContainer = getControlFlowContainer(flowContainer); } - const assumeInitialized = isParameter2 || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || isSameScopedBindingElement(node, declaration) || type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (3 /* AnyOrUnknown */ | 16384 /* Void */)) !== 0 || isInTypeQuery(node) || isInAmbientOrTypeNode(node) || node.parent.kind === 280 /* ExportSpecifier */) || node.parent.kind === 234 /* NonNullExpression */ || declaration.kind === 259 /* VariableDeclaration */ && declaration.exclamationToken || declaration.flags & 16777216 /* Ambient */; + const assumeInitialized = isParameter2 || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || isSameScopedBindingElement(node, declaration) || type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (3 /* AnyOrUnknown */ | 16384 /* Void */)) !== 0 || isInTypeQuery(node) || isInAmbientOrTypeNode(node) || node.parent.kind === 281 /* ExportSpecifier */) || node.parent.kind === 235 /* NonNullExpression */ || declaration.kind === 260 /* VariableDeclaration */ && declaration.exclamationToken || declaration.flags & 33554432 /* Ambient */; const initialType = isAutomaticTypeInNonNull ? undefinedType : assumeInitialized ? isParameter2 ? removeOptionalityFromDeclaredType(type, declaration) : type : typeIsAutomatic ? undefinedType : getOptionalType(type); const flowType = isAutomaticTypeInNonNull ? getNonNullableType(getFlowTypeOfReference(node, type, initialType, flowContainer)) : getFlowTypeOfReference(node, type, initialType, flowContainer); if (!isEvolvingArrayOperationTarget(node) && (type === autoType || type === autoArrayType)) { if (flowType === autoType || flowType === autoArrayType) { if (noImplicitAny) { - error(getNameOfDeclaration(declaration), Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined, symbolToString(symbol), typeToString(flowType)); - error(node, Diagnostics.Variable_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType)); + error2(getNameOfDeclaration(declaration), Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined, symbolToString(symbol), typeToString(flowType)); + error2(node, Diagnostics.Variable_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType)); } return convertAutoToAny(flowType); } } else if (!assumeInitialized && !containsUndefinedType(type) && containsUndefinedType(flowType)) { - error(node, Diagnostics.Variable_0_is_used_before_being_assigned, symbolToString(symbol)); + error2(node, Diagnostics.Variable_0_is_used_before_being_assigned, symbolToString(symbol)); return type; } return assignmentKind ? getBaseTypeOfLiteralType(flowType) : flowType; @@ -68452,7 +68936,7 @@ ${lanes.join("\n")} )); } function checkNestedBlockScopedBinding(node, symbol) { - if (languageVersion >= 2 /* ES2015 */ || (symbol.flags & (2 /* BlockScopedVariable */ | 32 /* Class */)) === 0 || !symbol.valueDeclaration || isSourceFile(symbol.valueDeclaration) || symbol.valueDeclaration.parent.kind === 298 /* CatchClause */) { + if (languageVersion >= 2 /* ES2015 */ || (symbol.flags & (2 /* BlockScopedVariable */ | 32 /* Class */)) === 0 || !symbol.valueDeclaration || isSourceFile(symbol.valueDeclaration) || symbol.valueDeclaration.parent.kind === 299 /* CatchClause */) { return; } const container = getEnclosingBlockScopeContainer(symbol.valueDeclaration); @@ -68462,7 +68946,7 @@ ${lanes.join("\n")} if (isCaptured) { let capturesBlockScopeBindingInLoopBody = true; if (isForStatement(container)) { - const varDeclList = getAncestor(symbol.valueDeclaration, 260 /* VariableDeclarationList */); + const varDeclList = getAncestor(symbol.valueDeclaration, 261 /* VariableDeclarationList */); if (varDeclList && varDeclList.parent === container) { const part = getPartOfForStatementContainingNode(node.parent, container); if (part) { @@ -68481,9 +68965,9 @@ ${lanes.join("\n")} } } if (isForStatement(container)) { - const varDeclList = getAncestor(symbol.valueDeclaration, 260 /* VariableDeclarationList */); + const varDeclList = getAncestor(symbol.valueDeclaration, 261 /* VariableDeclarationList */); if (varDeclList && varDeclList.parent === container && isAssignedInBodyOfForStatement(node, container)) { - getNodeLinks(symbol.valueDeclaration).flags |= 262144 /* NeedsLoopOutParameter */; + getNodeLinks(symbol.valueDeclaration).flags |= 65536 /* NeedsLoopOutParameter */; } } getNodeLinks(symbol.valueDeclaration).flags |= 32768 /* BlockScopedBindingInLoop */; @@ -68498,13 +68982,13 @@ ${lanes.join("\n")} } function isAssignedInBodyOfForStatement(node, container) { let current = node; - while (current.parent.kind === 216 /* ParenthesizedExpression */) { + while (current.parent.kind === 217 /* ParenthesizedExpression */) { current = current.parent; } let isAssigned = false; if (isAssignmentTarget(current)) { isAssigned = true; - } else if (current.parent.kind === 223 /* PrefixUnaryExpression */ || current.parent.kind === 224 /* PostfixUnaryExpression */) { + } else if (current.parent.kind === 224 /* PrefixUnaryExpression */ || current.parent.kind === 225 /* PostfixUnaryExpression */) { const expr = current.parent; isAssigned = expr.operator === 46 /* PlusPlusToken */ || expr.operator === 47 /* MinusMinusToken */; } @@ -68515,7 +68999,7 @@ ${lanes.join("\n")} } function captureLexicalThis(node, container) { getNodeLinks(node).flags |= 2 /* LexicalThis */; - if (container.kind === 171 /* PropertyDeclaration */ || container.kind === 175 /* Constructor */) { + if (container.kind === 172 /* PropertyDeclaration */ || container.kind === 176 /* Constructor */) { const classNode = container.parent; getNodeLinks(classNode).flags |= 4 /* CaptureThis */; } else { @@ -68540,13 +69024,13 @@ ${lanes.join("\n")} /*noCacheCheck*/ false )) { - error(node, diagnosticMessage); + error2(node, diagnosticMessage); } } } function checkThisInStaticClassFieldInitializerInDecoratedClass(thisExpression, container) { if (isPropertyDeclaration(container) && hasStaticModifier(container) && legacyDecorators && container.initializer && textRangeContainsPositionInclusive(container.initializer, thisExpression.pos) && hasDecorators(container.parent)) { - error(thisExpression, Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class); + error2(thisExpression, Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class); } } function checkThisExpression(node) { @@ -68560,11 +69044,11 @@ ${lanes.join("\n")} ); let capturedByArrowFunction = false; let thisInComputedPropertyName = false; - if (container.kind === 175 /* Constructor */) { + if (container.kind === 176 /* Constructor */) { checkThisBeforeSuper(node, container, Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class); } while (true) { - if (container.kind === 218 /* ArrowFunction */) { + if (container.kind === 219 /* ArrowFunction */) { container = getThisContainer( container, /*includeArrowFunctions*/ @@ -68573,7 +69057,7 @@ ${lanes.join("\n")} ); capturedByArrowFunction = true; } - if (container.kind === 166 /* ComputedPropertyName */) { + if (container.kind === 167 /* ComputedPropertyName */) { container = getThisContainer( container, !capturedByArrowFunction, @@ -68587,18 +69071,18 @@ ${lanes.join("\n")} } checkThisInStaticClassFieldInitializerInDecoratedClass(node, container); if (thisInComputedPropertyName) { - error(node, Diagnostics.this_cannot_be_referenced_in_a_computed_property_name); + error2(node, Diagnostics.this_cannot_be_referenced_in_a_computed_property_name); } else { switch (container.kind) { - case 266 /* ModuleDeclaration */: - error(node, Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body); + case 267 /* ModuleDeclaration */: + error2(node, Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body); break; - case 265 /* EnumDeclaration */: - error(node, Diagnostics.this_cannot_be_referenced_in_current_location); + case 266 /* EnumDeclaration */: + error2(node, Diagnostics.this_cannot_be_referenced_in_current_location); break; - case 175 /* Constructor */: + case 176 /* Constructor */: if (isInConstructorArgumentInitializer(node, container)) { - error(node, Diagnostics.this_cannot_be_referenced_in_constructor_arguments); + error2(node, Diagnostics.this_cannot_be_referenced_in_constructor_arguments); } break; } @@ -68615,9 +69099,9 @@ ${lanes.join("\n")} if (noImplicitThis) { const globalThisType2 = getTypeOfSymbol(globalThisSymbol); if (type === globalThisType2 && capturedByArrowFunction) { - error(node, Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this); + error2(node, Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this); } else if (!type) { - const diag2 = error(node, Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation); + const diag2 = error2(node, Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation); if (!isSourceFile(container)) { const outsideThis = tryGetThisTypeAt(container); if (outsideThis && outsideThis !== globalThisType2) { @@ -68690,36 +69174,33 @@ ${lanes.join("\n")} } } function getClassNameFromPrototypeMethod(container) { - if (container.kind === 217 /* FunctionExpression */ && isBinaryExpression(container.parent) && getAssignmentDeclarationKind(container.parent) === 3 /* PrototypeProperty */) { + if (container.kind === 218 /* FunctionExpression */ && isBinaryExpression(container.parent) && getAssignmentDeclarationKind(container.parent) === 3 /* PrototypeProperty */) { return container.parent.left.expression.expression; - } else if (container.kind === 173 /* MethodDeclaration */ && container.parent.kind === 209 /* ObjectLiteralExpression */ && isBinaryExpression(container.parent.parent) && getAssignmentDeclarationKind(container.parent.parent) === 6 /* Prototype */) { + } else if (container.kind === 174 /* MethodDeclaration */ && container.parent.kind === 210 /* ObjectLiteralExpression */ && isBinaryExpression(container.parent.parent) && getAssignmentDeclarationKind(container.parent.parent) === 6 /* Prototype */) { return container.parent.parent.left.expression; - } else if (container.kind === 217 /* FunctionExpression */ && container.parent.kind === 302 /* PropertyAssignment */ && container.parent.parent.kind === 209 /* ObjectLiteralExpression */ && isBinaryExpression(container.parent.parent.parent) && getAssignmentDeclarationKind(container.parent.parent.parent) === 6 /* Prototype */) { + } else if (container.kind === 218 /* FunctionExpression */ && container.parent.kind === 303 /* PropertyAssignment */ && container.parent.parent.kind === 210 /* ObjectLiteralExpression */ && isBinaryExpression(container.parent.parent.parent) && getAssignmentDeclarationKind(container.parent.parent.parent) === 6 /* Prototype */) { return container.parent.parent.parent.left.expression; - } else if (container.kind === 217 /* FunctionExpression */ && isPropertyAssignment(container.parent) && isIdentifier(container.parent.name) && (container.parent.name.escapedText === "value" || container.parent.name.escapedText === "get" || container.parent.name.escapedText === "set") && isObjectLiteralExpression(container.parent.parent) && isCallExpression(container.parent.parent.parent) && container.parent.parent.parent.arguments[2] === container.parent.parent && getAssignmentDeclarationKind(container.parent.parent.parent) === 9 /* ObjectDefinePrototypeProperty */) { + } else if (container.kind === 218 /* FunctionExpression */ && isPropertyAssignment(container.parent) && isIdentifier(container.parent.name) && (container.parent.name.escapedText === "value" || container.parent.name.escapedText === "get" || container.parent.name.escapedText === "set") && isObjectLiteralExpression(container.parent.parent) && isCallExpression(container.parent.parent.parent) && container.parent.parent.parent.arguments[2] === container.parent.parent && getAssignmentDeclarationKind(container.parent.parent.parent) === 9 /* ObjectDefinePrototypeProperty */) { return container.parent.parent.parent.arguments[0].expression; } else if (isMethodDeclaration(container) && isIdentifier(container.name) && (container.name.escapedText === "value" || container.name.escapedText === "get" || container.name.escapedText === "set") && isObjectLiteralExpression(container.parent) && isCallExpression(container.parent.parent) && container.parent.parent.arguments[2] === container.parent && getAssignmentDeclarationKind(container.parent.parent) === 9 /* ObjectDefinePrototypeProperty */) { return container.parent.parent.arguments[0].expression; } } function getTypeForThisExpressionFromJSDoc(node) { - const jsdocType = getJSDocType(node); - if (jsdocType && jsdocType.kind === 323 /* JSDocFunctionType */) { - const jsDocFunctionType = jsdocType; - if (jsDocFunctionType.parameters.length > 0 && jsDocFunctionType.parameters[0].name && jsDocFunctionType.parameters[0].name.escapedText === "this" /* This */) { - return getTypeFromTypeNode(jsDocFunctionType.parameters[0].type); - } - } const thisTag = getJSDocThisTag(node); if (thisTag && thisTag.typeExpression) { return getTypeFromTypeNode(thisTag.typeExpression); } + const signature = getSignatureOfTypeTag(node); + if (signature) { + return getThisTypeOfSignature(signature); + } } function isInConstructorArgumentInitializer(node, constructorDecl) { - return !!findAncestor(node, (n) => isFunctionLikeDeclaration(n) ? "quit" : n.kind === 168 /* Parameter */ && n.parent === constructorDecl); + return !!findAncestor(node, (n) => isFunctionLikeDeclaration(n) ? "quit" : n.kind === 169 /* Parameter */ && n.parent === constructorDecl); } function checkSuperExpression(node) { - const isCallExpression2 = node.parent.kind === 212 /* CallExpression */ && node.parent.expression === node; + const isCallExpression2 = node.parent.kind === 213 /* CallExpression */ && node.parent.expression === node; const immediateContainer = getSuperContainer( node, /*stopOnFunctions*/ @@ -68729,7 +69210,7 @@ ${lanes.join("\n")} let needToCaptureLexicalThis = false; let inAsyncFunction = false; if (!isCallExpression2) { - while (container && container.kind === 218 /* ArrowFunction */) { + while (container && container.kind === 219 /* ArrowFunction */) { if (hasSyntacticModifier(container, 512 /* Async */)) inAsyncFunction = true; container = getSuperContainer( @@ -68744,19 +69225,19 @@ ${lanes.join("\n")} } let nodeCheckFlag = 0; if (!container || !isLegalUsageOfSuperExpression(container)) { - const current = findAncestor(node, (n) => n === container ? "quit" : n.kind === 166 /* ComputedPropertyName */); - if (current && current.kind === 166 /* ComputedPropertyName */) { - error(node, Diagnostics.super_cannot_be_referenced_in_a_computed_property_name); + const current = findAncestor(node, (n) => n === container ? "quit" : n.kind === 167 /* ComputedPropertyName */); + if (current && current.kind === 167 /* ComputedPropertyName */) { + error2(node, Diagnostics.super_cannot_be_referenced_in_a_computed_property_name); } else if (isCallExpression2) { - error(node, Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors); - } else if (!container || !container.parent || !(isClassLike(container.parent) || container.parent.kind === 209 /* ObjectLiteralExpression */)) { - error(node, Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions); + error2(node, Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors); + } else if (!container || !container.parent || !(isClassLike(container.parent) || container.parent.kind === 210 /* ObjectLiteralExpression */)) { + error2(node, Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions); } else { - error(node, Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class); + error2(node, Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class); } return errorType; } - if (!isCallExpression2 && immediateContainer.kind === 175 /* Constructor */) { + if (!isCallExpression2 && immediateContainer.kind === 176 /* Constructor */) { checkThisBeforeSuper(node, container, Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class); } if (isStatic(container) || isCallExpression2) { @@ -68764,7 +69245,7 @@ ${lanes.join("\n")} if (!isCallExpression2 && languageVersion >= 2 /* ES2015 */ && languageVersion <= 8 /* ES2021 */ && (isPropertyDeclaration(container) || isClassStaticBlockDeclaration(container))) { forEachEnclosingBlockScopeContainer(node.parent, (current) => { if (!isSourceFile(current) || isExternalOrCommonJsModule(current)) { - getNodeLinks(current).flags |= 8388608 /* ContainsSuperPropertyInStaticInitializer */; + getNodeLinks(current).flags |= 2097152 /* ContainsSuperPropertyInStaticInitializer */; } }); } @@ -68772,7 +69253,7 @@ ${lanes.join("\n")} nodeCheckFlag = 16 /* SuperInstance */; } getNodeLinks(node).flags |= nodeCheckFlag; - if (container.kind === 173 /* MethodDeclaration */ && inAsyncFunction) { + if (container.kind === 174 /* MethodDeclaration */ && inAsyncFunction) { if (isSuperProperty(node.parent) && isAssignmentTarget(node.parent)) { getNodeLinks(container).flags |= 256 /* MethodWithSuperPropertyAssignmentInAsync */; } else { @@ -68782,9 +69263,9 @@ ${lanes.join("\n")} if (needToCaptureLexicalThis) { captureLexicalThis(node.parent, container); } - if (container.parent.kind === 209 /* ObjectLiteralExpression */) { + if (container.parent.kind === 210 /* ObjectLiteralExpression */) { if (languageVersion < 2 /* ES2015 */) { - error(node, Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher); + error2(node, Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher); return errorType; } else { return anyType; @@ -68792,7 +69273,7 @@ ${lanes.join("\n")} } const classLikeDeclaration = container.parent; if (!getClassExtendsHeritageElement(classLikeDeclaration)) { - error(node, Diagnostics.super_can_only_be_referenced_in_a_derived_class); + error2(node, Diagnostics.super_can_only_be_referenced_in_a_derived_class); return errorType; } const classType = getDeclaredTypeOfSymbol(getSymbolOfDeclaration(classLikeDeclaration)); @@ -68800,20 +69281,20 @@ ${lanes.join("\n")} if (!baseClassType) { return errorType; } - if (container.kind === 175 /* Constructor */ && isInConstructorArgumentInitializer(node, container)) { - error(node, Diagnostics.super_cannot_be_referenced_in_constructor_arguments); + if (container.kind === 176 /* Constructor */ && isInConstructorArgumentInitializer(node, container)) { + error2(node, Diagnostics.super_cannot_be_referenced_in_constructor_arguments); return errorType; } return nodeCheckFlag === 32 /* SuperStatic */ ? getBaseConstructorTypeOfClass(classType) : getTypeWithThisArgument(baseClassType, classType.thisType); function isLegalUsageOfSuperExpression(container2) { if (isCallExpression2) { - return container2.kind === 175 /* Constructor */; + return container2.kind === 176 /* Constructor */; } else { - if (isClassLike(container2.parent) || container2.parent.kind === 209 /* ObjectLiteralExpression */) { + if (isClassLike(container2.parent) || container2.parent.kind === 210 /* ObjectLiteralExpression */) { if (isStatic(container2)) { - return container2.kind === 173 /* MethodDeclaration */ || container2.kind === 172 /* MethodSignature */ || container2.kind === 176 /* GetAccessor */ || container2.kind === 177 /* SetAccessor */ || container2.kind === 171 /* PropertyDeclaration */ || container2.kind === 174 /* ClassStaticBlockDeclaration */; + return container2.kind === 174 /* MethodDeclaration */ || container2.kind === 173 /* MethodSignature */ || container2.kind === 177 /* GetAccessor */ || container2.kind === 178 /* SetAccessor */ || container2.kind === 172 /* PropertyDeclaration */ || container2.kind === 175 /* ClassStaticBlockDeclaration */; } else { - return container2.kind === 173 /* MethodDeclaration */ || container2.kind === 172 /* MethodSignature */ || container2.kind === 176 /* GetAccessor */ || container2.kind === 177 /* SetAccessor */ || container2.kind === 171 /* PropertyDeclaration */ || container2.kind === 170 /* PropertySignature */ || container2.kind === 175 /* Constructor */; + return container2.kind === 174 /* MethodDeclaration */ || container2.kind === 173 /* MethodSignature */ || container2.kind === 177 /* GetAccessor */ || container2.kind === 178 /* SetAccessor */ || container2.kind === 172 /* PropertyDeclaration */ || container2.kind === 171 /* PropertySignature */ || container2.kind === 176 /* Constructor */; } } } @@ -68821,7 +69302,7 @@ ${lanes.join("\n")} } } function getContainingObjectLiteral(func) { - return (func.kind === 173 /* MethodDeclaration */ || func.kind === 176 /* GetAccessor */ || func.kind === 177 /* SetAccessor */) && func.parent.kind === 209 /* ObjectLiteralExpression */ ? func.parent : func.kind === 217 /* FunctionExpression */ && func.parent.kind === 302 /* PropertyAssignment */ ? func.parent.parent : void 0; + return (func.kind === 174 /* MethodDeclaration */ || func.kind === 177 /* GetAccessor */ || func.kind === 178 /* SetAccessor */) && func.parent.kind === 210 /* ObjectLiteralExpression */ ? func.parent : func.kind === 218 /* FunctionExpression */ && func.parent.kind === 303 /* PropertyAssignment */ ? func.parent.parent : void 0; } function getThisTypeArgument(type) { return getObjectFlags(type) & 4 /* Reference */ && type.target === globalThisType ? getTypeArguments(type)[0] : void 0; @@ -68831,8 +69312,27 @@ ${lanes.join("\n")} return t.flags & 2097152 /* Intersection */ ? forEach(t.types, getThisTypeArgument) : getThisTypeArgument(t); }); } + function getThisTypeOfObjectLiteralFromContextualType(containingLiteral, contextualType) { + let literal = containingLiteral; + let type = contextualType; + while (type) { + const thisType = getThisTypeFromContextualType(type); + if (thisType) { + return thisType; + } + if (literal.parent.kind !== 303 /* PropertyAssignment */) { + break; + } + literal = literal.parent.parent; + type = getApparentTypeOfContextualType( + literal, + /*contextFlags*/ + void 0 + ); + } + } function getContextualThisParameterType(func) { - if (func.kind === 218 /* ArrowFunction */) { + if (func.kind === 219 /* ArrowFunction */) { return void 0; } if (isContextSensitiveFunctionOrObjectLiteralMethod(func)) { @@ -68853,27 +69353,14 @@ ${lanes.join("\n")} /*contextFlags*/ void 0 ); - let literal = containingLiteral; - let type = contextualType; - while (type) { - const thisType = getThisTypeFromContextualType(type); - if (thisType) { - return instantiateType(thisType, getMapperFromContext(getInferenceContext(containingLiteral))); - } - if (literal.parent.kind !== 302 /* PropertyAssignment */) { - break; - } - literal = literal.parent.parent; - type = getApparentTypeOfContextualType( - literal, - /*contextFlags*/ - void 0 - ); + const thisType = getThisTypeOfObjectLiteralFromContextualType(containingLiteral, contextualType); + if (thisType) { + return instantiateType(thisType, getMapperFromContext(getInferenceContext(containingLiteral))); } return getWidenedType(contextualType ? getNonNullableType(contextualType) : checkExpressionCached(containingLiteral)); } const parent2 = walkUpParenthesizedExpressions(func.parent); - if (parent2.kind === 225 /* BinaryExpression */ && parent2.operatorToken.kind === 64 /* EqualsToken */) { + if (parent2.kind === 226 /* BinaryExpression */ && parent2.operatorToken.kind === 64 /* EqualsToken */) { const target = parent2.left; if (isAccessExpression(target)) { const { expression } = target; @@ -68928,11 +69415,11 @@ ${lanes.join("\n")} return getTypeFromTypeNode(typeNode); } switch (declaration.kind) { - case 168 /* Parameter */: + case 169 /* Parameter */: return getContextuallyTypedParameterType(declaration); - case 207 /* BindingElement */: + case 208 /* BindingElement */: return getContextualTypeForBindingElement(declaration, contextFlags); - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: if (isStatic(declaration)) { return getContextualTypeForStaticPropertyDeclaration(declaration, contextFlags); } @@ -68941,10 +69428,10 @@ ${lanes.join("\n")} function getContextualTypeForBindingElement(declaration, contextFlags) { const parent2 = declaration.parent.parent; const name = declaration.propertyName || declaration.name; - const parentType = getContextualTypeForVariableLikeDeclaration(parent2, contextFlags) || parent2.kind !== 207 /* BindingElement */ && parent2.initializer && checkDeclarationInitializer(parent2, declaration.dotDotDotToken ? 64 /* RestBindingElement */ : 0 /* Normal */); + const parentType = getContextualTypeForVariableLikeDeclaration(parent2, contextFlags) || parent2.kind !== 208 /* BindingElement */ && parent2.initializer && checkDeclarationInitializer(parent2, declaration.dotDotDotToken ? 64 /* RestBindingElement */ : 0 /* Normal */); if (!parentType || isBindingPattern(name) || isComputedNonLiteralName(name)) return void 0; - if (parent2.name.kind === 206 /* ArrayBindingPattern */) { + if (parent2.name.kind === 207 /* ArrayBindingPattern */) { const index = indexOfNode(declaration.parent.elements, declaration); if (index < 0) return void 0; @@ -69094,7 +69581,7 @@ ${lanes.join("\n")} return signature ? getOrCreateTypeFromSignature(signature) : void 0; } function getContextualTypeForSubstitutionExpression(template, substitutionExpression) { - if (template.parent.kind === 214 /* TaggedTemplateExpression */) { + if (template.parent.kind === 215 /* TaggedTemplateExpression */) { return getContextualTypeForArgument(template.parent, substitutionExpression); } return void 0; @@ -69312,7 +69799,7 @@ ${lanes.join("\n")} } function getContextualTypeForObjectLiteralMethod(node, contextFlags) { Debug.assert(isObjectLiteralMethod(node)); - if (node.flags & 33554432 /* InWithStatement */) { + if (node.flags & 67108864 /* InWithStatement */) { return void 0; } return getContextualTypeForObjectLiteralElement(node, contextFlags); @@ -69448,16 +69935,17 @@ ${lanes.join("\n")} case 9 /* NumericLiteral */: case 10 /* BigIntLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: + case 228 /* TemplateExpression */: case 112 /* TrueKeyword */: case 97 /* FalseKeyword */: case 106 /* NullKeyword */: case 80 /* Identifier */: case 157 /* UndefinedKeyword */: return true; - case 210 /* PropertyAccessExpression */: - case 216 /* ParenthesizedExpression */: + case 211 /* PropertyAccessExpression */: + case 217 /* ParenthesizedExpression */: return isPossiblyDiscriminantValue(node.expression); - case 293 /* JsxExpression */: + case 294 /* JsxExpression */: return !node.expression || isPossiblyDiscriminantValue(node.expression); } return false; @@ -69467,7 +69955,7 @@ ${lanes.join("\n")} contextualType, concatenate( map( - filter(node.properties, (p) => !!p.symbol && p.kind === 302 /* PropertyAssignment */ && isPossiblyDiscriminantValue(p.initializer) && isDiscriminantProperty(contextualType, p.symbol.escapedName)), + filter(node.properties, (p) => !!p.symbol && p.kind === 303 /* PropertyAssignment */ && isPossiblyDiscriminantValue(p.initializer) && isDiscriminantProperty(contextualType, p.symbol.escapedName)), (prop) => [() => getContextFreeTypeOfExpression(prop.initializer), prop.symbol.escapedName] ), map( @@ -69487,7 +69975,7 @@ ${lanes.join("\n")} contextualType, concatenate( map( - filter(node.properties, (p) => !!p.symbol && p.kind === 290 /* JsxAttribute */ && isDiscriminantProperty(contextualType, p.symbol.escapedName) && (!p.initializer || isPossiblyDiscriminantValue(p.initializer))), + filter(node.properties, (p) => !!p.symbol && p.kind === 291 /* JsxAttribute */ && isDiscriminantProperty(contextualType, p.symbol.escapedName) && (!p.initializer || isPossiblyDiscriminantValue(p.initializer))), (prop) => [!prop.initializer ? () => trueType : () => getContextFreeTypeOfExpression(prop.initializer), prop.symbol.escapedName] ), map( @@ -69552,7 +70040,7 @@ ${lanes.join("\n")} } function getContextualType2(node, contextFlags) { var _a; - if (node.flags & 33554432 /* InWithStatement */) { + if (node.flags & 67108864 /* InWithStatement */) { return void 0; } const index = findContextualNode( @@ -69565,47 +70053,47 @@ ${lanes.join("\n")} } const { parent: parent2 } = node; switch (parent2.kind) { - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 207 /* BindingElement */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 208 /* BindingElement */: return getContextualTypeForInitializerExpression(node, contextFlags); - case 218 /* ArrowFunction */: - case 252 /* ReturnStatement */: + case 219 /* ArrowFunction */: + case 253 /* ReturnStatement */: return getContextualTypeForReturnExpression(node, contextFlags); - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: return getContextualTypeForYieldOperand(parent2, contextFlags); - case 222 /* AwaitExpression */: + case 223 /* AwaitExpression */: return getContextualTypeForAwaitOperand(parent2, contextFlags); - case 212 /* CallExpression */: - case 213 /* NewExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: return getContextualTypeForArgument(parent2, node); - case 169 /* Decorator */: + case 170 /* Decorator */: return getContextualTypeForDecorator(parent2); - case 215 /* TypeAssertionExpression */: - case 233 /* AsExpression */: + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: return isConstTypeReference(parent2.type) ? getContextualType2(parent2, contextFlags) : getTypeFromTypeNode(parent2.type); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return getContextualTypeForBinaryOperand(node, contextFlags); - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return getContextualTypeForObjectLiteralElement(parent2, contextFlags); - case 304 /* SpreadAssignment */: + case 305 /* SpreadAssignment */: return getContextualType2(parent2.parent, contextFlags); - case 208 /* ArrayLiteralExpression */: { + case 209 /* ArrayLiteralExpression */: { const arrayLiteral = parent2; const type = getApparentTypeOfContextualType(arrayLiteral, contextFlags); const elementIndex = indexOfNode(arrayLiteral.elements, node); const spreadIndices = (_a = getNodeLinks(arrayLiteral)).spreadIndices ?? (_a.spreadIndices = getSpreadIndices(arrayLiteral.elements)); return getContextualTypeForElementExpression(type, elementIndex, arrayLiteral.elements.length, spreadIndices.first, spreadIndices.last); } - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: return getContextualTypeForConditionalOperand(node, contextFlags); - case 238 /* TemplateSpan */: - Debug.assert(parent2.parent.kind === 227 /* TemplateExpression */); + case 239 /* TemplateSpan */: + Debug.assert(parent2.parent.kind === 228 /* TemplateExpression */); return getContextualTypeForSubstitutionExpression(parent2.parent, node); - case 216 /* ParenthesizedExpression */: { + case 217 /* ParenthesizedExpression */: { if (isInJSFile(parent2)) { if (isJSDocSatisfiesExpression(parent2)) { return getTypeFromTypeNode(getJSDocSatisfiesExpressionType(parent2)); @@ -69617,19 +70105,19 @@ ${lanes.join("\n")} } return getContextualType2(parent2, contextFlags); } - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: return getContextualType2(parent2, contextFlags); - case 237 /* SatisfiesExpression */: + case 238 /* SatisfiesExpression */: return getTypeFromTypeNode(parent2.type); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return tryGetTypeFromEffectiveTypeNode(parent2); - case 293 /* JsxExpression */: + case 294 /* JsxExpression */: return getContextualTypeForJsxExpression(parent2, contextFlags); - case 290 /* JsxAttribute */: - case 292 /* JsxSpreadAttribute */: + case 291 /* JsxAttribute */: + case 293 /* JsxSpreadAttribute */: return getContextualTypeForJsxAttribute(parent2, contextFlags); - case 285 /* JsxOpeningElement */: - case 284 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: return getContextualJsxElementAttributesType(parent2, contextFlags); } return void 0; @@ -69756,7 +70244,7 @@ ${lanes.join("\n")} let attributesType = forcedLookupLocation === void 0 ? getTypeOfFirstParameterOfSignatureWithFallback(sig, unknownType) : forcedLookupLocation === "" ? getReturnTypeOfSignature(sig) : getJsxPropsTypeForSignatureFromMember(sig, forcedLookupLocation); if (!attributesType) { if (!!forcedLookupLocation && !!length(context.attributes.properties)) { - error(context, Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property, unescapeLeadingUnderscores(forcedLookupLocation)); + error2(context, Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property, unescapeLeadingUnderscores(forcedLookupLocation)); } return unknownType; } @@ -69858,7 +70346,7 @@ ${lanes.join("\n")} /*resolvedTypePredicate*/ void 0, minArgCount, - (left.flags | right.flags) & 39 /* PropagatingFlags */ + (left.flags | right.flags) & 167 /* PropagatingFlags */ ); result.compositeKind = 2097152 /* Intersection */; result.compositeSignatures = concatenate(left.compositeKind === 2097152 /* Intersection */ && left.compositeSignatures || [left], [right]); @@ -69889,7 +70377,7 @@ ${lanes.join("\n")} return isFunctionExpressionOrArrowFunction(node) || isObjectLiteralMethod(node) ? getContextualSignature(node) : void 0; } function getContextualSignature(node) { - Debug.assert(node.kind !== 173 /* MethodDeclaration */ || isObjectLiteralMethod(node)); + Debug.assert(node.kind !== 174 /* MethodDeclaration */ || isObjectLiteralMethod(node)); const typeTagSignature = getSignatureOfTypeTag(node); if (typeTagSignature) { return typeTagSignature; @@ -69940,7 +70428,11 @@ ${lanes.join("\n")} return node.isSpread ? getIndexedAccessType(node.type, numberType) : node.type; } function hasDefaultValue(node) { - return node.kind === 207 /* BindingElement */ && !!node.initializer || node.kind === 225 /* BinaryExpression */ && node.operatorToken.kind === 64 /* EqualsToken */; + return node.kind === 208 /* BindingElement */ && !!node.initializer || node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 64 /* EqualsToken */; + } + function isSpreadIntoCallOrNew(node) { + const parent2 = walkUpParenthesizedExpressions(node.parent); + return isSpreadElement(parent2) && isCallOrNewExpression(parent2.parent); } function checkArrayLiteral(node, checkMode, forceTuple) { const elements = node.elements; @@ -69949,18 +70441,17 @@ ${lanes.join("\n")} const elementFlags = []; pushCachedContextualType(node); const inDestructuringPattern = isAssignmentTarget(node); - const isSpreadIntoCallOrNew = isSpreadElement(node.parent) && isCallOrNewExpression(node.parent.parent); - const inConstContext = isSpreadIntoCallOrNew || isConstContext(node); + const inConstContext = isConstContext(node); const contextualType = getApparentTypeOfContextualType( node, /*contextFlags*/ void 0 ); - const inTupleContext = isSpreadIntoCallOrNew || !!contextualType && someType(contextualType, isTupleLikeType); + const inTupleContext = isSpreadIntoCallOrNew(node) || !!contextualType && someType(contextualType, isTupleLikeType); let hasOmittedExpression = false; for (let i = 0; i < elementCount; i++) { const e = elements[i]; - if (e.kind === 229 /* SpreadElement */) { + if (e.kind === 230 /* SpreadElement */) { if (languageVersion < 2 /* ES2015 */) { checkExternalEmitHelpers(e, compilerOptions.downlevelIteration ? 1536 /* SpreadIncludes */ : 1024 /* SpreadArray */); } @@ -69984,7 +70475,7 @@ ${lanes.join("\n")} elementTypes.push(checkIteratedTypeOrElementType(33 /* Spread */, spreadType, undefinedType, e.expression)); elementFlags.push(4 /* Rest */); } - } else if (exactOptionalPropertyTypes && e.kind === 231 /* OmittedExpression */) { + } else if (exactOptionalPropertyTypes && e.kind === 232 /* OmittedExpression */) { hasOmittedExpression = true; elementTypes.push(undefinedOrMissingType); elementFlags.push(2 /* Optional */); @@ -70031,7 +70522,7 @@ ${lanes.join("\n")} } function isNumericName(name) { switch (name.kind) { - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: return isNumericComputedName(name); case 80 /* Identifier */: return isNumericLiteralName(name.escapedText); @@ -70048,7 +70539,7 @@ ${lanes.join("\n")} function checkComputedPropertyName(node) { const links = getNodeLinks(node.expression); if (!links.resolvedType) { - if ((isTypeLiteralNode(node.parent.parent) || isClassLike(node.parent.parent) || isInterfaceDeclaration(node.parent.parent)) && isBinaryExpression(node.expression) && node.expression.operatorToken.kind === 103 /* InKeyword */ && node.parent.kind !== 176 /* GetAccessor */ && node.parent.kind !== 177 /* SetAccessor */) { + if ((isTypeLiteralNode(node.parent.parent) || isClassLike(node.parent.parent) || isInterfaceDeclaration(node.parent.parent)) && isBinaryExpression(node.expression) && node.expression.operatorToken.kind === 103 /* InKeyword */ && node.parent.kind !== 177 /* GetAccessor */ && node.parent.kind !== 178 /* SetAccessor */) { return links.resolvedType = errorType; } links.resolvedType = checkExpression(node.expression); @@ -70062,7 +70553,7 @@ ${lanes.join("\n")} } } if (links.resolvedType.flags & 98304 /* Nullable */ || !isTypeAssignableToKind(links.resolvedType, 402653316 /* StringLike */ | 296 /* NumberLike */ | 12288 /* ESSymbolLike */) && !isTypeAssignableTo(links.resolvedType, stringNumberSymbolType)) { - error(node, Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any); + error2(node, Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any); } } return links.resolvedType; @@ -70117,7 +70608,7 @@ ${lanes.join("\n")} /*contextFlags*/ void 0 ); - const contextualTypeHasPattern = contextualType && contextualType.pattern && (contextualType.pattern.kind === 205 /* ObjectBindingPattern */ || contextualType.pattern.kind === 209 /* ObjectLiteralExpression */); + const contextualTypeHasPattern = contextualType && contextualType.pattern && (contextualType.pattern.kind === 206 /* ObjectBindingPattern */ || contextualType.pattern.kind === 210 /* ObjectLiteralExpression */); const inConstContext = isConstContext(node); const checkFlags = inConstContext ? 8 /* Readonly */ : 0; const isInJavascript = isInJSFile(node) && !isInJsonFile(node); @@ -70136,13 +70627,13 @@ ${lanes.join("\n")} let offset = 0; for (const memberDecl of node.properties) { let member = getSymbolOfDeclaration(memberDecl); - const computedNameType = memberDecl.name && memberDecl.name.kind === 166 /* ComputedPropertyName */ ? checkComputedPropertyName(memberDecl.name) : void 0; - if (memberDecl.kind === 302 /* PropertyAssignment */ || memberDecl.kind === 303 /* ShorthandPropertyAssignment */ || isObjectLiteralMethod(memberDecl)) { - let type = memberDecl.kind === 302 /* PropertyAssignment */ ? checkPropertyAssignment(memberDecl, checkMode) : ( + const computedNameType = memberDecl.name && memberDecl.name.kind === 167 /* ComputedPropertyName */ ? checkComputedPropertyName(memberDecl.name) : void 0; + if (memberDecl.kind === 303 /* PropertyAssignment */ || memberDecl.kind === 304 /* ShorthandPropertyAssignment */ || isObjectLiteralMethod(memberDecl)) { + let type = memberDecl.kind === 303 /* PropertyAssignment */ ? checkPropertyAssignment(memberDecl, checkMode) : ( // avoid resolving the left side of the ShorthandPropertyAssignment outside of the destructuring // for error recovery purposes. For example, if a user wrote `{ a = 100 }` instead of `{ a: 100 }`. // we don't want to say "could not find 'a'". - memberDecl.kind === 303 /* ShorthandPropertyAssignment */ ? checkExpressionForMutableLocation(!inDestructuringPattern && memberDecl.objectAssignmentInitializer ? memberDecl.objectAssignmentInitializer : memberDecl.name, checkMode) : checkObjectLiteralMethod(memberDecl, checkMode) + memberDecl.kind === 304 /* ShorthandPropertyAssignment */ ? checkExpressionForMutableLocation(!inDestructuringPattern && memberDecl.objectAssignmentInitializer ? memberDecl.objectAssignmentInitializer : memberDecl.name, checkMode) : checkObjectLiteralMethod(memberDecl, checkMode) ); if (isInJavascript) { const jsDocType = getTypeForDeclarationFromJSDocComment(memberDecl); @@ -70160,7 +70651,7 @@ ${lanes.join("\n")} prop.links.nameType = nameType; } if (inDestructuringPattern) { - const isOptional = memberDecl.kind === 302 /* PropertyAssignment */ && hasDefaultValue(memberDecl.initializer) || memberDecl.kind === 303 /* ShorthandPropertyAssignment */ && memberDecl.objectAssignmentInitializer; + const isOptional = memberDecl.kind === 303 /* PropertyAssignment */ && hasDefaultValue(memberDecl.initializer) || memberDecl.kind === 304 /* ShorthandPropertyAssignment */ && memberDecl.objectAssignmentInitializer; if (isOptional) { prop.flags |= 16777216 /* Optional */; } @@ -70169,7 +70660,7 @@ ${lanes.join("\n")} if (impliedProp) { prop.flags |= impliedProp.flags & 16777216 /* Optional */; } else if (!compilerOptions.suppressExcessPropertyErrors && !getIndexInfoOfType(contextualType, stringType)) { - error( + error2( memberDecl.name, Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1, symbolToString(member), @@ -70186,13 +70677,13 @@ ${lanes.join("\n")} prop.links.target = member; member = prop; allPropertiesTable == null ? void 0 : allPropertiesTable.set(prop.escapedName, prop); - if (contextualType && checkMode & 2 /* Inferential */ && !(checkMode & 4 /* SkipContextSensitive */) && (memberDecl.kind === 302 /* PropertyAssignment */ || memberDecl.kind === 173 /* MethodDeclaration */) && isContextSensitive(memberDecl)) { + if (contextualType && checkMode & 2 /* Inferential */ && !(checkMode & 4 /* SkipContextSensitive */) && (memberDecl.kind === 303 /* PropertyAssignment */ || memberDecl.kind === 174 /* MethodDeclaration */) && isContextSensitive(memberDecl)) { const inferenceContext = getInferenceContext(node); Debug.assert(inferenceContext); - const inferenceNode = memberDecl.kind === 302 /* PropertyAssignment */ ? memberDecl.initializer : memberDecl; + const inferenceNode = memberDecl.kind === 303 /* PropertyAssignment */ ? memberDecl.initializer : memberDecl; addIntraExpressionInferenceSite(inferenceContext, inferenceNode, type); } - } else if (memberDecl.kind === 304 /* SpreadAssignment */) { + } else if (memberDecl.kind === 305 /* SpreadAssignment */) { if (languageVersion < 2 /* ES2015 */) { checkExternalEmitHelpers(memberDecl, 2 /* Assign */); } @@ -70216,12 +70707,12 @@ ${lanes.join("\n")} } spread = getSpreadType(spread, mergedType, node.symbol, objectFlags, inConstContext); } else { - error(memberDecl, Diagnostics.Spread_types_may_only_be_created_from_object_types); + error2(memberDecl, Diagnostics.Spread_types_may_only_be_created_from_object_types); spread = errorType; } continue; } else { - Debug.assert(memberDecl.kind === 176 /* GetAccessor */ || memberDecl.kind === 177 /* SetAccessor */); + Debug.assert(memberDecl.kind === 177 /* GetAccessor */ || memberDecl.kind === 178 /* SetAccessor */); checkNodeDeferred(memberDecl); } if (computedNameType && !(computedNameType.flags & 8576 /* StringOrNumberLiteralOrUnique */)) { @@ -70246,17 +70737,17 @@ ${lanes.join("\n")} if (contextualTypeHasPattern) { const rootPatternParent = findAncestor( contextualType.pattern.parent, - (n) => n.kind === 259 /* VariableDeclaration */ || n.kind === 225 /* BinaryExpression */ || n.kind === 168 /* Parameter */ + (n) => n.kind === 260 /* VariableDeclaration */ || n.kind === 226 /* BinaryExpression */ || n.kind === 169 /* Parameter */ ); const spreadOrOutsideRootObject = findAncestor( node, - (n) => n === rootPatternParent || n.kind === 304 /* SpreadAssignment */ + (n) => n === rootPatternParent || n.kind === 305 /* SpreadAssignment */ ); - if (spreadOrOutsideRootObject.kind !== 304 /* SpreadAssignment */) { + if (spreadOrOutsideRootObject.kind !== 305 /* SpreadAssignment */) { for (const prop of getPropertiesOfType(contextualType)) { if (!propertiesTable.get(prop.escapedName) && !getPropertyOfType(spread, prop.escapedName)) { if (!(prop.flags & 16777216 /* Optional */)) { - error( + error2( prop.valueDeclaration || ((_a = tryCast(prop, isTransientSymbol)) == null ? void 0 : _a.links.bindingElement), Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value ); @@ -70331,7 +70822,7 @@ ${lanes.join("\n")} checkJsxOpeningLikeElementOrOpeningFragment(node.openingFragment); const nodeSourceFile = getSourceFileOfNode(node); if (getJSXTransformEnabled(compilerOptions) && (compilerOptions.jsxFactory || nodeSourceFile.pragmas.has("jsx")) && !compilerOptions.jsxFragmentFactory && !nodeSourceFile.pragmas.has("jsxfrag")) { - error(node, compilerOptions.jsxFactory ? Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option : Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments); + error2(node, compilerOptions.jsxFactory ? Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option : Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments); } checkJsxChildren(node); return getJsxElementTypeAt(node) || anyType; @@ -70387,7 +70878,7 @@ ${lanes.join("\n")} addIntraExpressionInferenceSite(inferenceContext, inferenceNode, exprType); } } else { - Debug.assert(attributeDecl.kind === 292 /* JsxSpreadAttribute */); + Debug.assert(attributeDecl.kind === 293 /* JsxSpreadAttribute */); if (attributesTable.size > 0) { spread = getSpreadType( spread, @@ -70416,7 +70907,7 @@ ${lanes.join("\n")} checkSpreadPropOverrides(exprType, allAttributesTable, attributeDecl); } } else { - error(attributeDecl.expression, Diagnostics.Spread_types_may_only_be_created_from_object_types); + error2(attributeDecl.expression, Diagnostics.Spread_types_may_only_be_created_from_object_types); typeToIntersect = typeToIntersect ? getIntersectionType([typeToIntersect, exprType]) : exprType; } } @@ -70433,12 +70924,12 @@ ${lanes.join("\n")} ); } } - const parent2 = openingLikeElement.parent.kind === 283 /* JsxElement */ ? openingLikeElement.parent : void 0; + const parent2 = openingLikeElement.parent.kind === 284 /* JsxElement */ ? openingLikeElement.parent : void 0; if (parent2 && parent2.openingElement === openingLikeElement && parent2.children.length > 0) { const childrenTypes = checkJsxChildren(parent2, checkMode); if (!hasSpreadAnyType && jsxChildrenPropertyName && jsxChildrenPropertyName !== "") { if (explicitlySpecifyChildrenAttribute) { - error(attributes, Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten, unescapeLeadingUnderscores(jsxChildrenPropertyName)); + error2(attributes, Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten, unescapeLeadingUnderscores(jsxChildrenPropertyName)); } const contextualType2 = getApparentTypeOfContextualType( openingLikeElement.attributes, @@ -70492,7 +70983,7 @@ ${lanes.join("\n")} if (!child.containsOnlyTriviaWhiteSpaces) { childrenTypes.push(stringType); } - } else if (child.kind === 293 /* JsxExpression */ && !child.expression) { + } else if (child.kind === 294 /* JsxExpression */ && !child.expression) { continue; } else { childrenTypes.push(checkExpressionForMutableLocation(child, checkMode)); @@ -70505,7 +70996,7 @@ ${lanes.join("\n")} if (!(right.flags & 16777216 /* Optional */)) { const left = props.get(right.escapedName); if (left) { - const diagnostic = error(left.valueDeclaration, Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten, unescapeLeadingUnderscores(left.escapedName)); + const diagnostic = error2(left.valueDeclaration, Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten, unescapeLeadingUnderscores(left.escapedName)); addRelatedInfo(diagnostic, createDiagnosticForNode(spread, Diagnostics.This_spread_always_overwrites_this_property)); } } @@ -70537,11 +71028,11 @@ ${lanes.join("\n")} links.jsxFlags |= 2 /* IntrinsicIndexedElement */; return links.resolvedSymbol = intrinsicElementsType.symbol; } - error(node, Diagnostics.Property_0_does_not_exist_on_type_1, intrinsicTagNameToString(node.tagName), "JSX." + JsxNames.IntrinsicElements); + error2(node, Diagnostics.Property_0_does_not_exist_on_type_1, intrinsicTagNameToString(node.tagName), "JSX." + JsxNames.IntrinsicElements); return links.resolvedSymbol = unknownSymbol; } else { if (noImplicitAny) { - error(node, Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists, unescapeLeadingUnderscores(JsxNames.IntrinsicElements)); + error2(node, Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists, unescapeLeadingUnderscores(JsxNames.IntrinsicElements)); } return links.resolvedSymbol = unknownSymbol; } @@ -70624,7 +71115,7 @@ ${lanes.join("\n")} } else if (propertiesOfJsxElementAttribPropInterface.length === 1) { return propertiesOfJsxElementAttribPropInterface[0].escapedName; } else if (propertiesOfJsxElementAttribPropInterface.length > 1 && jsxElementAttribPropInterfaceSym.declarations) { - error(jsxElementAttribPropInterfaceSym.declarations[0], Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property, unescapeLeadingUnderscores(nameOfAttribPropContainer)); + error2(jsxElementAttribPropInterfaceSym.declarations[0], Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property, unescapeLeadingUnderscores(nameOfAttribPropContainer)); } } return void 0; @@ -70647,7 +71138,7 @@ ${lanes.join("\n")} } else if (elementType.flags & 128 /* StringLiteral */) { const intrinsicType = getIntrinsicAttributesTypeFromStringLiteralType(elementType, caller); if (!intrinsicType) { - error(caller, Diagnostics.Property_0_does_not_exist_on_type_1, elementType.value, "JSX." + JsxNames.IntrinsicElements); + error2(caller, Diagnostics.Property_0_does_not_exist_on_type_1, elementType.value, "JSX." + JsxNames.IntrinsicElements); return emptyArray; } else { const fakeSignature = createSignatureForJSXIntrinsic(caller, intrinsicType); @@ -70773,11 +71264,11 @@ ${lanes.join("\n")} } function checkJsxPreconditions(errorNode) { if ((compilerOptions.jsx || 0 /* None */) === 0 /* None */) { - error(errorNode, Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided); + error2(errorNode, Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided); } if (getJsxElementTypeAt(errorNode) === void 0) { if (noImplicitAny) { - error(errorNode, Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist); + error2(errorNode, Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist); } } } @@ -70869,7 +71360,7 @@ ${lanes.join("\n")} if (node.expression) { const type = checkExpression(node.expression, checkMode); if (node.dotDotDotToken && type !== anyType && !isArrayType(type)) { - error(node, Diagnostics.JSX_spread_child_must_be_an_array_type); + error2(node, Diagnostics.JSX_spread_child_must_be_an_array_type); } return type; } else { @@ -70877,7 +71368,7 @@ ${lanes.join("\n")} } } function getDeclarationNodeFlagsFromSymbol(s) { - return s.valueDeclaration ? getCombinedNodeFlags(s.valueDeclaration) : 0; + return s.valueDeclaration ? getCombinedNodeFlagsCached(s.valueDeclaration) : 0; } function isPrototypeProperty(symbol) { if (symbol.flags & 8192 /* Method */ || getCheckFlags(symbol) & 4 /* SyntheticMethod */) { @@ -70889,7 +71380,7 @@ ${lanes.join("\n")} } } function checkPropertyAccessibility(node, isSuper, writing, type, prop, reportError = true) { - const errorNode = !reportError ? void 0 : node.kind === 165 /* QualifiedName */ ? node.right : node.kind === 204 /* ImportType */ ? node : node.kind === 207 /* BindingElement */ && node.propertyName ? node.propertyName : node.name; + const errorNode = !reportError ? void 0 : node.kind === 166 /* QualifiedName */ ? node.right : node.kind === 205 /* ImportType */ ? node : node.kind === 208 /* BindingElement */ && node.propertyName ? node.propertyName : node.name; return checkPropertyAccessibilityAtLocation(node, isSuper, writing, type, prop, errorNode); } function checkPropertyAccessibilityAtLocation(location, isSuper, writing, containingType, prop, errorNode) { @@ -70898,14 +71389,14 @@ ${lanes.join("\n")} if (languageVersion < 2 /* ES2015 */) { if (symbolHasNonMethodDeclaration(prop)) { if (errorNode) { - error(errorNode, Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword); + error2(errorNode, Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword); } return false; } } if (flags & 256 /* Abstract */) { if (errorNode) { - error( + error2( errorNode, Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression, symbolToString(prop), @@ -70919,7 +71410,7 @@ ${lanes.join("\n")} const declaringClassDeclaration = getClassLikeDeclarationOfSymbol(getParentOfSymbol(prop)); if (declaringClassDeclaration && isNodeUsedDuringClassInitialization(location)) { if (errorNode) { - error( + error2( errorNode, Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor, symbolToString(prop), @@ -70936,7 +71427,7 @@ ${lanes.join("\n")} const declaringClassDeclaration = getClassLikeDeclarationOfSymbol(getParentOfSymbol(prop)); if (!isNodeWithinClass(location, declaringClassDeclaration)) { if (errorNode) { - error( + error2( errorNode, Diagnostics.Property_0_is_private_and_only_accessible_within_class_1, symbolToString(prop), @@ -70959,7 +71450,7 @@ ${lanes.join("\n")} enclosingClass = enclosingClass && isClassDerivedFromDeclaringClasses(enclosingClass, prop, writing); if (flags & 32 /* Static */ || !enclosingClass) { if (errorNode) { - error( + error2( errorNode, Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses, symbolToString(prop), @@ -70977,7 +71468,7 @@ ${lanes.join("\n")} } if (!containingType || !hasBaseType(containingType, enclosingClass)) { if (errorNode) { - error( + error2( errorNode, Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2, symbolToString(prop), @@ -71025,28 +71516,28 @@ ${lanes.join("\n")} function reportObjectPossiblyNullOrUndefinedError(node, facts) { const nodeText2 = isEntityNameExpression(node) ? entityNameToString(node) : void 0; if (node.kind === 106 /* NullKeyword */) { - error(node, Diagnostics.The_value_0_cannot_be_used_here, "null"); + error2(node, Diagnostics.The_value_0_cannot_be_used_here, "null"); return; } if (nodeText2 !== void 0 && nodeText2.length < 100) { if (isIdentifier(node) && nodeText2 === "undefined") { - error(node, Diagnostics.The_value_0_cannot_be_used_here, "undefined"); + error2(node, Diagnostics.The_value_0_cannot_be_used_here, "undefined"); return; } - error( + error2( node, facts & 16777216 /* IsUndefined */ ? facts & 33554432 /* IsNull */ ? Diagnostics._0_is_possibly_null_or_undefined : Diagnostics._0_is_possibly_undefined : Diagnostics._0_is_possibly_null, nodeText2 ); } else { - error( + error2( node, facts & 16777216 /* IsUndefined */ ? facts & 33554432 /* IsNull */ ? Diagnostics.Object_is_possibly_null_or_undefined : Diagnostics.Object_is_possibly_undefined : Diagnostics.Object_is_possibly_null ); } } function reportCannotInvokePossiblyNullOrUndefinedError(node, facts) { - error( + error2( node, facts & 16777216 /* IsUndefined */ ? facts & 33554432 /* IsNull */ ? Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined : Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined : Diagnostics.Cannot_invoke_an_object_which_is_possibly_null ); @@ -71056,11 +71547,11 @@ ${lanes.join("\n")} if (isEntityNameExpression(node)) { const nodeText2 = entityNameToString(node); if (nodeText2.length < 100) { - error(node, Diagnostics._0_is_of_type_unknown, nodeText2); + error2(node, Diagnostics._0_is_of_type_unknown, nodeText2); return errorType; } } - error(node, Diagnostics.Object_is_of_type_unknown); + error2(node, Diagnostics.Object_is_of_type_unknown); return errorType; } const facts = getTypeFacts(type); @@ -71080,20 +71571,20 @@ ${lanes.join("\n")} if (isEntityNameExpression(node)) { const nodeText2 = entityNameToString(node); if (isIdentifier(node) && nodeText2 === "undefined") { - error(node, Diagnostics.The_value_0_cannot_be_used_here, nodeText2); + error2(node, Diagnostics.The_value_0_cannot_be_used_here, nodeText2); return nonNullType; } if (nodeText2.length < 100) { - error(node, Diagnostics._0_is_possibly_undefined, nodeText2); + error2(node, Diagnostics._0_is_possibly_undefined, nodeText2); return nonNullType; } } - error(node, Diagnostics.Object_is_possibly_undefined); + error2(node, Diagnostics.Object_is_possibly_undefined); } return nonNullType; } function checkPropertyAccessExpression(node, checkMode, writeOnly) { - return node.flags & 32 /* OptionalChain */ ? checkPropertyAccessChain(node, checkMode) : checkPropertyAccessExpressionOrQualifiedName(node, node.expression, checkNonNullExpression(node.expression), node.name, checkMode, writeOnly); + return node.flags & 64 /* OptionalChain */ ? checkPropertyAccessChain(node, checkMode) : checkPropertyAccessExpressionOrQualifiedName(node, node.expression, checkNonNullExpression(node.expression), node.name, checkMode, writeOnly); } function checkPropertyAccessChain(node, checkMode) { const leftType = checkExpression(node.expression); @@ -71105,13 +71596,13 @@ ${lanes.join("\n")} return checkPropertyAccessExpressionOrQualifiedName(node, node.left, leftType, node.right, checkMode); } function isMethodAccessForCall(node) { - while (node.parent.kind === 216 /* ParenthesizedExpression */) { + while (node.parent.kind === 217 /* ParenthesizedExpression */) { node = node.parent; } return isCallOrNewExpression(node.parent) && node.parent.expression === node; } function lookupSymbolForPrivateIdentifierDeclaration(propName, location) { - for (let containingClass = getContainingClass(location); !!containingClass; containingClass = getContainingClass(containingClass)) { + for (let containingClass = getContainingClassExcludingClassDecorators(location); !!containingClass; containingClass = getContainingClass(containingClass)) { const { symbol } = containingClass; const name = getSymbolNameForPrivateIdentifier(symbol, propName); const prop = symbol.members && symbol.members.get(name) || symbol.exports && symbol.exports.get(name); @@ -71183,7 +71674,7 @@ ${lanes.join("\n")} const lexicalClass = getContainingClass(lexicalValueDecl); Debug.assert(!!lexicalClass); if (findAncestor(lexicalClass, (n) => typeClass === n)) { - const diagnostic = error( + const diagnostic = error2( right, Diagnostics.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling, diagName, @@ -71205,7 +71696,7 @@ ${lanes.join("\n")} return true; } } - error( + error2( right, Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier, diagName, @@ -71247,18 +71738,24 @@ ${lanes.join("\n")} if (lexicallyScopedSymbol) { return isErrorType(apparentType) ? errorType : apparentType; } - if (!getContainingClass(right)) { + if (getContainingClassExcludingClassDecorators(right) === void 0) { grammarErrorOnNode(right, Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies); return anyType; } } - prop = lexicallyScopedSymbol ? getPrivateIdentifierPropertyOfType(leftType, lexicallyScopedSymbol) : void 0; - if (!prop && checkPrivateIdentifierPropertyAccess(leftType, right, lexicallyScopedSymbol)) { - return errorType; + prop = lexicallyScopedSymbol && getPrivateIdentifierPropertyOfType(leftType, lexicallyScopedSymbol); + if (prop === void 0) { + if (checkPrivateIdentifierPropertyAccess(leftType, right, lexicallyScopedSymbol)) { + return errorType; + } + const containingClass = getContainingClassExcludingClassDecorators(right); + if (containingClass && isPlainJsFile(getSourceFileOfNode(containingClass), compilerOptions.checkJs)) { + grammarErrorOnNode(right, Diagnostics.Private_field_0_must_be_declared_in_an_enclosing_class, idText(right)); + } } else { - const isSetonlyAccessor = prop && prop.flags & 65536 /* SetAccessor */ && !(prop.flags & 32768 /* GetAccessor */); + const isSetonlyAccessor = prop.flags & 65536 /* SetAccessor */ && !(prop.flags & 32768 /* GetAccessor */); if (isSetonlyAccessor && assignmentKind !== 1 /* Definite */) { - error(node, Diagnostics.Private_accessor_was_defined_without_a_getter); + error2(node, Diagnostics.Private_accessor_was_defined_without_a_getter); } } } else { @@ -71274,10 +71771,10 @@ ${lanes.join("\n")} /*skipObjectFunctionPropertyAugment*/ false, /*includeTypeOnlyMembers*/ - node.kind === 165 /* QualifiedName */ + node.kind === 166 /* QualifiedName */ ); } - if (isIdentifier(left) && parentSymbol && (getIsolatedModules(compilerOptions) || !(prop && (isConstEnumOrConstEnumOnlyModule(prop) || prop.flags & 8 /* EnumMember */ && node.parent.kind === 305 /* EnumMember */)) || shouldPreserveConstEnums(compilerOptions) && isExportOrExportExpression(node))) { + if (isIdentifier(left) && parentSymbol && (getIsolatedModules(compilerOptions) || !(prop && (isConstEnumOrConstEnumOnlyModule(prop) || prop.flags & 8 /* EnumMember */ && node.parent.kind === 306 /* EnumMember */)) || shouldPreserveConstEnums(compilerOptions) && isExportOrExportExpression(node))) { markAliasReferenced(parentSymbol, node); } let propType; @@ -71295,9 +71792,9 @@ ${lanes.join("\n")} } if (leftType.symbol === globalThisSymbol) { if (globalThisSymbol.exports.has(right.escapedText) && globalThisSymbol.exports.get(right.escapedText).flags & 418 /* BlockScoped */) { - error(right, Diagnostics.Property_0_does_not_exist_on_type_1, unescapeLeadingUnderscores(right.escapedText), typeToString(leftType)); + error2(right, Diagnostics.Property_0_does_not_exist_on_type_1, unescapeLeadingUnderscores(right.escapedText), typeToString(leftType)); } else if (noImplicitAny) { - error(right, Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature, typeToString(leftType)); + error2(right, Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature, typeToString(leftType)); } return anyType; } @@ -71307,13 +71804,13 @@ ${lanes.join("\n")} return errorType; } if (indexInfo.isReadonly && (isAssignmentTarget(node) || isDeleteTarget(node))) { - error(node, Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(apparentType)); + error2(node, Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(apparentType)); } propType = compilerOptions.noUncheckedIndexedAccess && !isAssignmentTarget(node) ? getUnionType([indexInfo.type, missingType]) : indexInfo.type; if (compilerOptions.noPropertyAccessFromIndexSignature && isPropertyAccessExpression(node)) { - error(right, Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0, unescapeLeadingUnderscores(right.escapedText)); + error2(right, Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0, unescapeLeadingUnderscores(right.escapedText)); } - if (indexInfo.declaration && getCombinedNodeFlags(indexInfo.declaration) & 268435456 /* Deprecated */) { + if (indexInfo.declaration && isDeprecatedDeclaration2(indexInfo.declaration)) { addDeprecatedSuggestion(right, [indexInfo.declaration], right.escapedText); } } else { @@ -71326,7 +71823,7 @@ ${lanes.join("\n")} getNodeLinks(node).resolvedSymbol = prop; checkPropertyAccessibility(node, left.kind === 108 /* SuperKeyword */, isWriteAccess(node), apparentType, prop); if (isAssignmentToReadonlyEntity(node, prop, assignmentKind)) { - error(right, Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property, idText(right)); + error2(right, Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property, idText(right)); return errorType; } propType = isThisPropertyAccessInConstructor(node, prop) ? autoType : writeOnly || isWriteOnlyAccess(node) ? getWriteTypeOfSymbol(prop) : getTypeOfSymbol(prop); @@ -71361,7 +71858,7 @@ ${lanes.join("\n")} if (declaration && isPropertyWithoutInitializer(declaration)) { if (!isStatic(declaration)) { const flowContainer = getControlFlowContainer(node); - if (flowContainer.kind === 175 /* Constructor */ && flowContainer.parent === declaration.parent && !(declaration.flags & 16777216 /* Ambient */)) { + if (flowContainer.kind === 176 /* Constructor */ && flowContainer.parent === declaration.parent && !(declaration.flags & 33554432 /* Ambient */)) { assumeUninitialized = true; } } @@ -71371,7 +71868,7 @@ ${lanes.join("\n")} } const flowType = getFlowTypeOfReference(node, propType, assumeUninitialized ? getOptionalType(propType) : propType); if (assumeUninitialized && !containsUndefinedType(propType) && containsUndefinedType(flowType)) { - error(errorNode, Diagnostics.Property_0_is_used_before_being_assigned, symbolToString(prop)); + error2(errorNode, Diagnostics.Property_0_is_used_before_being_assigned, symbolToString(prop)); return propType; } return assignmentKind ? getBaseTypeOfLiteralType(flowType) : flowType; @@ -71383,10 +71880,10 @@ ${lanes.join("\n")} } let diagnosticMessage; const declarationName = idText(right); - if (isInPropertyInitializerOrClassStaticBlock(node) && !isOptionalPropertyDeclaration(valueDeclaration) && !(isAccessExpression(node) && isAccessExpression(node.expression)) && !isBlockScopedNameDeclaredBeforeUse(valueDeclaration, right) && !(isMethodDeclaration(valueDeclaration) && getCombinedModifierFlags(valueDeclaration) & 32 /* Static */) && (compilerOptions.useDefineForClassFields || !isPropertyDeclaredInAncestorClass(prop))) { - diagnosticMessage = error(right, Diagnostics.Property_0_is_used_before_its_initialization, declarationName); - } else if (valueDeclaration.kind === 262 /* ClassDeclaration */ && node.parent.kind !== 182 /* TypeReference */ && !(valueDeclaration.flags & 16777216 /* Ambient */) && !isBlockScopedNameDeclaredBeforeUse(valueDeclaration, right)) { - diagnosticMessage = error(right, Diagnostics.Class_0_used_before_its_declaration, declarationName); + if (isInPropertyInitializerOrClassStaticBlock(node) && !isOptionalPropertyDeclaration(valueDeclaration) && !(isAccessExpression(node) && isAccessExpression(node.expression)) && !isBlockScopedNameDeclaredBeforeUse(valueDeclaration, right) && !(isMethodDeclaration(valueDeclaration) && getCombinedModifierFlagsCached(valueDeclaration) & 32 /* Static */) && (useDefineForClassFields || !isPropertyDeclaredInAncestorClass(prop))) { + diagnosticMessage = error2(right, Diagnostics.Property_0_is_used_before_its_initialization, declarationName); + } else if (valueDeclaration.kind === 263 /* ClassDeclaration */ && node.parent.kind !== 183 /* TypeReference */ && !(valueDeclaration.flags & 33554432 /* Ambient */) && !isBlockScopedNameDeclaredBeforeUse(valueDeclaration, right)) { + diagnosticMessage = error2(right, Diagnostics.Class_0_used_before_its_declaration, declarationName); } if (diagnosticMessage) { addRelatedInfo( @@ -71398,25 +71895,25 @@ ${lanes.join("\n")} function isInPropertyInitializerOrClassStaticBlock(node) { return !!findAncestor(node, (node2) => { switch (node2.kind) { - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return true; - case 302 /* PropertyAssignment */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 304 /* SpreadAssignment */: - case 166 /* ComputedPropertyName */: - case 238 /* TemplateSpan */: - case 293 /* JsxExpression */: - case 290 /* JsxAttribute */: - case 291 /* JsxAttributes */: - case 292 /* JsxSpreadAttribute */: - case 285 /* JsxOpeningElement */: - case 232 /* ExpressionWithTypeArguments */: - case 297 /* HeritageClause */: + case 303 /* PropertyAssignment */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 305 /* SpreadAssignment */: + case 167 /* ComputedPropertyName */: + case 239 /* TemplateSpan */: + case 294 /* JsxExpression */: + case 291 /* JsxAttribute */: + case 292 /* JsxAttributes */: + case 293 /* JsxSpreadAttribute */: + case 286 /* JsxOpeningElement */: + case 233 /* ExpressionWithTypeArguments */: + case 298 /* HeritageClause */: return false; - case 218 /* ArrowFunction */: - case 243 /* ExpressionStatement */: + case 219 /* ArrowFunction */: + case 244 /* ExpressionStatement */: return isBlock(node2.parent) && isClassStaticBlockDeclaration(node2.parent.parent) ? true : "quit"; default: return isExpressionNode(node2) ? false : "quit"; @@ -71661,9 +72158,9 @@ ${lanes.join("\n")} } function isValidPropertyAccess(node, propertyName) { switch (node.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return isValidPropertyAccessWithType(node, node.expression.kind === 108 /* SuperKeyword */, propertyName, getWidenedType(checkExpression(node.expression))); - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: return isValidPropertyAccessWithType( node, /*isSuper*/ @@ -71671,7 +72168,7 @@ ${lanes.join("\n")} propertyName, getWidenedType(checkExpression(node.left)) ); - case 204 /* ImportType */: + case 205 /* ImportType */: return isValidPropertyAccessWithType( node, /*isSuper*/ @@ -71684,7 +72181,7 @@ ${lanes.join("\n")} function isValidPropertyAccessForCompletions(node, type, property) { return isPropertyAccessible( node, - node.kind === 210 /* PropertyAccessExpression */ && node.expression.kind === 108 /* SuperKeyword */, + node.kind === 211 /* PropertyAccessExpression */ && node.expression.kind === 108 /* SuperKeyword */, /*isWrite*/ false, type, @@ -71717,7 +72214,7 @@ ${lanes.join("\n")} } function getForInVariableSymbol(node) { const initializer = node.initializer; - if (initializer.kind === 260 /* VariableDeclarationList */) { + if (initializer.kind === 261 /* VariableDeclarationList */) { const variable = initializer.declarations[0]; if (variable && !isBindingPattern(variable.name)) { return getSymbolOfDeclaration(variable); @@ -71738,7 +72235,7 @@ ${lanes.join("\n")} let child = expr; let node = expr.parent; while (node) { - if (node.kind === 248 /* ForInStatement */ && child === node.statement && getForInVariableSymbol(node) === symbol && hasNumericPropertyNames(getTypeOfExpression(node.expression))) { + if (node.kind === 249 /* ForInStatement */ && child === node.statement && getForInVariableSymbol(node) === symbol && hasNumericPropertyNames(getTypeOfExpression(node.expression))) { return true; } child = node; @@ -71749,7 +72246,7 @@ ${lanes.join("\n")} return false; } function checkIndexedAccess(node, checkMode) { - return node.flags & 32 /* OptionalChain */ ? checkElementAccessChain(node, checkMode) : checkElementAccessExpression(node, checkNonNullExpression(node.expression), checkMode); + return node.flags & 64 /* OptionalChain */ ? checkElementAccessChain(node, checkMode) : checkElementAccessExpression(node, checkNonNullExpression(node.expression), checkMode); } function checkElementAccessChain(node, checkMode) { const exprType = checkExpression(node.expression); @@ -71764,7 +72261,7 @@ ${lanes.join("\n")} return objectType; } if (isConstEnumObjectType(objectType) && !isStringLiteralLike(indexExpression)) { - error(indexExpression, Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal); + error2(indexExpression, Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal); return errorType; } const effectiveIndexType = isForInVariableForNumericPropertyNames(indexExpression) ? numberType : indexType; @@ -71779,11 +72276,11 @@ ${lanes.join("\n")} if (callLikeExpressionMayHaveTypeArguments(node)) { forEach(node.typeArguments, checkSourceElement); } - if (node.kind === 214 /* TaggedTemplateExpression */) { + if (node.kind === 215 /* TaggedTemplateExpression */) { checkExpression(node.template); } else if (isJsxOpeningLikeElement(node)) { checkExpression(node.attributes); - } else if (node.kind !== 169 /* Decorator */) { + } else if (node.kind !== 170 /* Decorator */) { forEach(node.arguments, (argument) => { checkExpression(argument); }); @@ -71828,7 +72325,7 @@ ${lanes.join("\n")} } } function isSpreadArgument(arg) { - return !!arg && (arg.kind === 229 /* SpreadElement */ || arg.kind === 236 /* SyntheticExpression */ && arg.isSpread); + return !!arg && (arg.kind === 230 /* SpreadElement */ || arg.kind === 237 /* SyntheticExpression */ && arg.isSpread); } function getSpreadArgumentIndex(args) { return findIndex(args, isSpreadArgument); @@ -71844,9 +72341,9 @@ ${lanes.join("\n")} let callIsIncomplete = false; let effectiveParameterCount = getParameterCount(signature); let effectiveMinimumArguments = getMinArgumentCount(signature); - if (node.kind === 214 /* TaggedTemplateExpression */) { + if (node.kind === 215 /* TaggedTemplateExpression */) { argCount = args.length; - if (node.template.kind === 227 /* TemplateExpression */) { + if (node.template.kind === 228 /* TemplateExpression */) { const lastSpan = last(node.template.templateSpans); callIsIncomplete = nodeIsMissing(lastSpan.literal) || !!lastSpan.literal.isUnterminated; } else { @@ -71854,7 +72351,7 @@ ${lanes.join("\n")} Debug.assert(templateLiteral.kind === 15 /* NoSubstitutionTemplateLiteral */); callIsIncomplete = !!templateLiteral.isUnterminated; } - } else if (node.kind === 169 /* Decorator */) { + } else if (node.kind === 170 /* Decorator */) { argCount = getDecoratorArgumentCount(node, signature); } else if (isJsxOpeningLikeElement(node)) { callIsIncomplete = node.attributes.end === node.end; @@ -71865,7 +72362,7 @@ ${lanes.join("\n")} effectiveParameterCount = args.length === 0 ? effectiveParameterCount : 1; effectiveMinimumArguments = Math.min(effectiveMinimumArguments, 1); } else if (!node.arguments) { - Debug.assert(node.kind === 213 /* NewExpression */); + Debug.assert(node.kind === 214 /* NewExpression */); return getMinArgumentCount(signature) === 0; } else { argCount = signatureHelpTrailingComma ? args.length + 1 : args.length; @@ -71961,7 +72458,7 @@ ${lanes.join("\n")} if (isJsxOpeningLikeElement(node)) { return inferJsxTypeArguments(node, signature, checkMode, context); } - if (node.kind !== 169 /* Decorator */) { + if (node.kind !== 170 /* Decorator */) { const skipBindingPatterns = every(signature.typeParameters, (p) => !!getDefaultFromTypeParameter(p)); const contextualType = getContextualType2(node, skipBindingPatterns ? 8 /* SkipBindingPatterns */ : 0 /* None */); if (contextualType) { @@ -71998,7 +72495,7 @@ ${lanes.join("\n")} } for (let i = 0; i < argCount; i++) { const arg = args[i]; - if (arg.kind !== 231 /* OmittedExpression */ && !(checkMode & 32 /* IsForStringLiteralArgumentCompletions */ && hasSkipDirectInferenceFlag(arg))) { + if (arg.kind !== 232 /* OmittedExpression */) { const paramType = getTypeAtPosition(signature, i); if (couldContainTypeVariables(paramType)) { const argType = checkExpressionWithContextualType(arg, paramType, context, checkMode); @@ -72026,11 +72523,11 @@ ${lanes.join("\n")} if (index >= argCount - 1) { const arg = args[argCount - 1]; if (isSpreadArgument(arg)) { - const spreadType = arg.kind === 236 /* SyntheticExpression */ ? arg.type : checkExpressionWithContextualType(arg.expression, restType, context, checkMode); + const spreadType = arg.kind === 237 /* SyntheticExpression */ ? arg.type : checkExpressionWithContextualType(arg.expression, restType, context, checkMode); if (isArrayLikeType(spreadType)) { return getMutableArrayOrTupleType(spreadType); } - return createArrayType(checkIteratedTypeOrElementType(33 /* Spread */, spreadType, undefinedType, arg.kind === 229 /* SpreadElement */ ? arg.expression : arg), inConstContext); + return createArrayType(checkIteratedTypeOrElementType(33 /* Spread */, spreadType, undefinedType, arg.kind === 230 /* SpreadElement */ ? arg.expression : arg), inConstContext); } } const types = []; @@ -72039,12 +72536,12 @@ ${lanes.join("\n")} for (let i = index; i < argCount; i++) { const arg = args[i]; if (isSpreadArgument(arg)) { - const spreadType = arg.kind === 236 /* SyntheticExpression */ ? arg.type : checkExpression(arg.expression); + const spreadType = arg.kind === 237 /* SyntheticExpression */ ? arg.type : checkExpression(arg.expression); if (isArrayLikeType(spreadType)) { types.push(spreadType); flags.push(8 /* Variadic */); } else { - types.push(checkIteratedTypeOrElementType(33 /* Spread */, spreadType, undefinedType, arg.kind === 229 /* SpreadElement */ ? arg.expression : arg)); + types.push(checkIteratedTypeOrElementType(33 /* Spread */, spreadType, undefinedType, arg.kind === 230 /* SpreadElement */ ? arg.expression : arg)); flags.push(4 /* Rest */); } } else { @@ -72054,7 +72551,7 @@ ${lanes.join("\n")} types.push(hasPrimitiveContextualType ? getRegularTypeOfLiteralType(argType) : getWidenedLiteralType(argType)); flags.push(1 /* Required */); } - if (arg.kind === 236 /* SyntheticExpression */ && arg.tupleNameSource) { + if (arg.kind === 237 /* SyntheticExpression */ && arg.tupleNameSource) { names.push(arg.tupleNameSource); } } @@ -72114,8 +72611,9 @@ ${lanes.join("\n")} void 0, checkMode ); + const checkAttributesType = checkMode & 4 /* SkipContextSensitive */ ? getRegularTypeOfObjectLiteral(attributesType) : attributesType; return checkTagNameDoesNotExpectTooManyArguments() && checkTypeRelatedToAndOptionallyElaborate( - attributesType, + checkAttributesType, paramType, relation, reportErrors2 ? node.tagName : void 0, @@ -72231,7 +72729,7 @@ ${lanes.join("\n")} const argCount = restType ? Math.min(getParameterCount(signature) - 1, args.length) : args.length; for (let i = 0; i < argCount; i++) { const arg = args[i]; - if (arg.kind !== 231 /* OmittedExpression */) { + if (arg.kind !== 232 /* OmittedExpression */) { const paramType = getTypeAtPosition(signature, i); const argType = checkExpressionWithContextualType( arg, @@ -72289,7 +72787,7 @@ ${lanes.join("\n")} } } function getThisArgumentOfCall(node) { - const expression = node.kind === 212 /* CallExpression */ ? node.expression : node.kind === 214 /* TaggedTemplateExpression */ ? node.tag : void 0; + const expression = node.kind === 213 /* CallExpression */ ? node.expression : node.kind === 215 /* TaggedTemplateExpression */ ? node.tag : node.kind === 170 /* Decorator */ && !legacyDecorators ? node.expression : void 0; if (expression) { const callee = skipOuterExpressions(expression); if (isAccessExpression(callee)) { @@ -72304,17 +72802,17 @@ ${lanes.join("\n")} return result; } function getEffectiveCallArguments(node) { - if (node.kind === 214 /* TaggedTemplateExpression */) { + if (node.kind === 215 /* TaggedTemplateExpression */) { const template = node.template; const args2 = [createSyntheticExpression(template, getGlobalTemplateStringsArrayType())]; - if (template.kind === 227 /* TemplateExpression */) { + if (template.kind === 228 /* TemplateExpression */) { forEach(template.templateSpans, (span) => { args2.push(span.expression); }); } return args2; } - if (node.kind === 169 /* Decorator */) { + if (node.kind === 170 /* Decorator */) { return getEffectiveDecoratorArguments(node); } if (isJsxOpeningLikeElement(node)) { @@ -72326,7 +72824,7 @@ ${lanes.join("\n")} const effectiveArgs = args.slice(0, spreadIndex); for (let i = spreadIndex; i < args.length; i++) { const arg = args[i]; - const spreadType = arg.kind === 229 /* SpreadElement */ && (flowLoopCount ? checkExpression(arg.expression) : checkExpressionCached(arg.expression)); + const spreadType = arg.kind === 230 /* SpreadElement */ && (flowLoopCount ? checkExpression(arg.expression) : checkExpressionCached(arg.expression)); if (spreadType && isTupleType(spreadType)) { forEach(getElementTypes(spreadType), (t, i2) => { var _a; @@ -72365,16 +72863,16 @@ ${lanes.join("\n")} } function getLegacyDecoratorArgumentCount(node, signature) { switch (node.parent.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return 1; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return hasAccessorModifier(node.parent) ? 3 : 2; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return languageVersion === 0 /* ES3 */ || signature.parameters.length <= 2 ? 2 : 3; - case 168 /* Parameter */: + case 169 /* Parameter */: return 3; default: return Debug.fail(); @@ -72470,7 +72968,7 @@ ${lanes.join("\n")} if (isVoidPromiseError && isInJSFile(node)) { return getDiagnosticForCallNode(node, Diagnostics.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments); } - const error2 = isDecorator(node) ? hasRestParameter2 ? Diagnostics.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0 : Diagnostics.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0 : hasRestParameter2 ? Diagnostics.Expected_at_least_0_arguments_but_got_1 : isVoidPromiseError ? Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise : Diagnostics.Expected_0_arguments_but_got_1; + const error3 = isDecorator(node) ? hasRestParameter2 ? Diagnostics.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0 : Diagnostics.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0 : hasRestParameter2 ? Diagnostics.Expected_at_least_0_arguments_but_got_1 : isVoidPromiseError ? Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise : Diagnostics.Expected_0_arguments_but_got_1; if (min2 < args.length && args.length < max) { if (headMessage) { let chain = chainDiagnosticMessages( @@ -72491,14 +72989,14 @@ ${lanes.join("\n")} let chain = chainDiagnosticMessages( /*details*/ void 0, - error2, + error3, parameterRange, args.length ); chain = chainDiagnosticMessages(chain, headMessage); diagnostic = getDiagnosticForCallNode(node, chain); } else { - diagnostic = getDiagnosticForCallNode(node, error2, parameterRange, args.length); + diagnostic = getDiagnosticForCallNode(node, error3, parameterRange, args.length); } const parameter = (_a = closestSignature == null ? void 0 : closestSignature.declaration) == null ? void 0 : _a.parameters[closestSignature.thisParameter ? args.length + 1 : args.length]; if (parameter) { @@ -72519,14 +73017,14 @@ ${lanes.join("\n")} let chain = chainDiagnosticMessages( /*details*/ void 0, - error2, + error3, parameterRange, args.length ); chain = chainDiagnosticMessages(chain, headMessage); return createDiagnosticForNodeArrayFromMessageChain(getSourceFileOfNode(node), errorSpan, chain); } - return createDiagnosticForNodeArray(getSourceFileOfNode(node), errorSpan, error2, parameterRange, args.length); + return createDiagnosticForNodeArray(getSourceFileOfNode(node), errorSpan, error3, parameterRange, args.length); } } function getTypeArgumentArityError(node, signatures, typeArguments, headMessage) { @@ -72588,8 +73086,8 @@ ${lanes.join("\n")} return createDiagnosticForNodeArray(getSourceFileOfNode(node), typeArguments, Diagnostics.Expected_0_type_arguments_but_got_1, belowArgCount === -Infinity ? aboveArgCount : belowArgCount, argCount); } function resolveCall(node, signatures, candidatesOutArray, checkMode, callChainFlags, headMessage) { - const isTaggedTemplate = node.kind === 214 /* TaggedTemplateExpression */; - const isDecorator2 = node.kind === 169 /* Decorator */; + const isTaggedTemplate = node.kind === 215 /* TaggedTemplateExpression */; + const isDecorator2 = node.kind === 170 /* Decorator */; const isJsxOpeningOrSelfClosingElement = isJsxOpeningLikeElement(node); const reportErrors2 = !isInferencePartiallyBlocked && !candidatesOutArray; let typeArguments; @@ -72601,21 +73099,15 @@ ${lanes.join("\n")} } const candidates = candidatesOutArray || []; reorderCandidates(signatures, candidates, callChainFlags); - if (!candidates.length) { - if (reportErrors2) { - diagnostics.add(getDiagnosticForCallNode(node, Diagnostics.Call_target_does_not_contain_any_signatures)); - } - return resolveErrorCall(node); - } + Debug.assert(candidates.length, "Revert #54442 and add a testcase with whatever triggered this"); const args = getEffectiveCallArguments(node); const isSingleNonGenericCandidate = candidates.length === 1 && !candidates[0].typeParameters; let argCheckMode = !isDecorator2 && !isSingleNonGenericCandidate && some(args, isContextSensitive) ? 4 /* SkipContextSensitive */ : 0 /* Normal */; - argCheckMode |= checkMode & 32 /* IsForStringLiteralArgumentCompletions */; let candidatesForArgumentError; let candidateForArgumentArityError; let candidateForTypeArgumentError; let result; - const signatureHelpTrailingComma = !!(checkMode & 16 /* IsForSignatureHelp */) && node.kind === 212 /* CallExpression */ && node.arguments.hasTrailingComma; + const signatureHelpTrailingComma = !!(checkMode & 16 /* IsForSignatureHelp */) && node.kind === 213 /* CallExpression */ && node.arguments.hasTrailingComma; if (candidates.length > 1) { result = chooseOverload(candidates, subtypeRelation, isSingleNonGenericCandidate, signatureHelpTrailingComma); } @@ -72834,7 +73326,7 @@ ${lanes.join("\n")} continue; } if (argCheckMode) { - argCheckMode = checkMode & 32 /* IsForStringLiteralArgumentCompletions */; + argCheckMode = 0 /* Normal */; if (inferenceContext) { const typeArgumentTypes = inferTypeArguments(node, candidate, args, argCheckMode, inferenceContext); checkCandidate = getSignatureInstantiation(candidate, typeArgumentTypes, isInJSFile(candidate.declaration), inferenceContext.inferredTypeParameters); @@ -72883,7 +73375,7 @@ ${lanes.join("\n")} parameters.push(createCombinedSymbolFromTypes(symbols, mapDefined(candidates, (candidate) => tryGetTypeAtPosition(candidate, i)))); } const restParameterSymbols = mapDefined(candidates, (c) => signatureHasRestParameter(c) ? last(c.parameters) : void 0); - let flags = 0 /* None */; + let flags = 128 /* IsSignatureCandidateForOverloadFailure */; if (restParameterSymbols.length !== 0) { const type = createArrayType(getUnionType(mapDefined(candidates, tryGetRestTypeOfSignature), 2 /* Subtype */)); parameters.push(createCombinedSymbolForOverloadFailure(restParameterSymbols, type)); @@ -73008,13 +73500,13 @@ ${lanes.join("\n")} const numConstructSignatures = getSignaturesOfType(apparentType, 1 /* Construct */).length; if (isUntypedFunctionCall(funcType, apparentType, callSignatures.length, numConstructSignatures)) { if (!isErrorType(funcType) && node.typeArguments) { - error(node, Diagnostics.Untyped_function_calls_may_not_accept_type_arguments); + error2(node, Diagnostics.Untyped_function_calls_may_not_accept_type_arguments); } return resolveUntypedCall(node); } if (!callSignatures.length) { if (numConstructSignatures) { - error(node, Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new, typeToString(funcType)); + error2(node, Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new, typeToString(funcType)); } else { let relatedInformation; if (node.arguments.length === 1) { @@ -73037,7 +73529,7 @@ ${lanes.join("\n")} return resolvingSignature; } if (callSignatures.some((sig) => isInJSFile(sig.declaration) && !!getJSDocClassTag(sig.declaration))) { - error(node, Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new, typeToString(funcType)); + error2(node, Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new, typeToString(funcType)); return resolveErrorCall(node); } return resolveCall(node, callSignatures, candidatesOutArray, checkMode, callChainFlags); @@ -73052,7 +73544,7 @@ ${lanes.join("\n")} if (node.arguments && languageVersion < 1 /* ES5 */) { const spreadIndex = getSpreadArgumentIndex(node.arguments); if (spreadIndex >= 0) { - error(node.arguments[spreadIndex], Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher); + error2(node.arguments[spreadIndex], Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher); } } let expressionType = checkNonNullExpression(node.expression); @@ -73065,7 +73557,7 @@ ${lanes.join("\n")} } if (isTypeAny(expressionType)) { if (node.typeArguments) { - error(node, Diagnostics.Untyped_function_calls_may_not_accept_type_arguments); + error2(node, Diagnostics.Untyped_function_calls_may_not_accept_type_arguments); } return resolveUntypedCall(node); } @@ -73075,12 +73567,12 @@ ${lanes.join("\n")} return resolveErrorCall(node); } if (someSignature(constructSignatures, (signature) => !!(signature.flags & 4 /* Abstract */))) { - error(node, Diagnostics.Cannot_create_an_instance_of_an_abstract_class); + error2(node, Diagnostics.Cannot_create_an_instance_of_an_abstract_class); return resolveErrorCall(node); } const valueDecl = expressionType.symbol && getClassLikeDeclarationOfSymbol(expressionType.symbol); if (valueDecl && hasSyntacticModifier(valueDecl, 256 /* Abstract */)) { - error(node, Diagnostics.Cannot_create_an_instance_of_an_abstract_class); + error2(node, Diagnostics.Cannot_create_an_instance_of_an_abstract_class); return resolveErrorCall(node); } return resolveCall(node, constructSignatures, candidatesOutArray, checkMode, 0 /* None */); @@ -73090,10 +73582,10 @@ ${lanes.join("\n")} const signature = resolveCall(node, callSignatures, candidatesOutArray, checkMode, 0 /* None */); if (!noImplicitAny) { if (signature.declaration && !isJSConstructor(signature.declaration) && getReturnTypeOfSignature(signature) !== voidType) { - error(node, Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword); + error2(node, Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword); } if (getThisTypeOfSignature(signature) === voidType) { - error(node, Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void); + error2(node, Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void); } } return signature; @@ -73143,7 +73635,7 @@ ${lanes.join("\n")} } const declaration = signature.declaration; const modifiers = getSelectedEffectiveModifierFlags(declaration, 24 /* NonPublicAccessibilityModifier */); - if (!modifiers || declaration.kind !== 175 /* Constructor */) { + if (!modifiers || declaration.kind !== 176 /* Constructor */) { return true; } const declaringClassDeclaration = getClassLikeDeclarationOfSymbol(declaration.parent.symbol); @@ -73157,10 +73649,10 @@ ${lanes.join("\n")} } } if (modifiers & 8 /* Private */) { - error(node, Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration, typeToString(declaringClass)); + error2(node, Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration, typeToString(declaringClass)); } if (modifiers & 16 /* Protected */) { - error(node, Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration, typeToString(declaringClass)); + error2(node, Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration, typeToString(declaringClass)); } return false; } @@ -73290,16 +73782,16 @@ ${lanes.join("\n")} } function getDiagnosticHeadMessageForDecoratorResolution(node) { switch (node.parent.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression; - case 168 /* Parameter */: + case 169 /* Parameter */: return Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression; default: return Debug.fail(); @@ -73322,7 +73814,7 @@ ${lanes.join("\n")} /*includeTrivia*/ false ); - error(node, Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0, nodeStr); + error2(node, Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0, nodeStr); return resolveErrorCall(node); } const headMessage = getDiagnosticHeadMessageForDecoratorResolution(node); @@ -73412,7 +73904,7 @@ ${lanes.join("\n")} return resolveUntypedCall(node); } if (signatures.length === 0) { - error(node.tagName, Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures, getTextOfNode(node.tagName)); + error2(node.tagName, Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures, getTextOfNode(node.tagName)); return resolveErrorCall(node); } return resolveCall(node, signatures, candidatesOutArray, checkMode, 0 /* None */); @@ -73422,16 +73914,16 @@ ${lanes.join("\n")} } function resolveSignature(node, candidatesOutArray, checkMode) { switch (node.kind) { - case 212 /* CallExpression */: + case 213 /* CallExpression */: return resolveCallExpression(node, candidatesOutArray, checkMode); - case 213 /* NewExpression */: + case 214 /* NewExpression */: return resolveNewExpression(node, candidatesOutArray, checkMode); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return resolveTaggedTemplateExpression(node, candidatesOutArray, checkMode); - case 169 /* Decorator */: + case 170 /* Decorator */: return resolveDecorator(node, candidatesOutArray, checkMode); - case 285 /* JsxOpeningElement */: - case 284 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: return resolveJsxOpeningLikeElement(node, candidatesOutArray, checkMode); } Debug.assertNever(node, "Branch in 'resolveSignature' should be unreachable."); @@ -73507,7 +73999,7 @@ ${lanes.join("\n")} let name; let decl; if (isVariableDeclaration(node.parent) && node.parent.initializer === node) { - if (!isInJSFile(node) && !(isVarConst(node.parent) && isFunctionLikeDeclaration(node))) { + if (!isInJSFile(node) && !(isVarConstLike(node.parent) && isFunctionLikeDeclaration(node))) { return void 0; } name = node.parent.name; @@ -73544,7 +74036,7 @@ ${lanes.join("\n")} return false; } let parent2 = node.parent; - while (parent2 && parent2.kind === 210 /* PropertyAccessExpression */) { + while (parent2 && parent2.kind === 211 /* PropertyAccessExpression */) { parent2 = parent2.parent; } if (parent2 && isBinaryExpression(parent2) && isPrototypeAccess(parent2.left) && parent2.operatorToken.kind === 64 /* EqualsToken */) { @@ -73568,11 +74060,11 @@ ${lanes.join("\n")} if (node.expression.kind === 108 /* SuperKeyword */) { return voidType; } - if (node.kind === 213 /* NewExpression */) { + if (node.kind === 214 /* NewExpression */) { const declaration = signature.declaration; - if (declaration && declaration.kind !== 175 /* Constructor */ && declaration.kind !== 179 /* ConstructSignature */ && declaration.kind !== 184 /* ConstructorType */ && !(isJSDocSignature(declaration) && ((_b = (_a = getJSDocRoot(declaration)) == null ? void 0 : _a.parent) == null ? void 0 : _b.kind) === 175 /* Constructor */) && !isJSDocConstructSignature(declaration) && !isJSConstructor(declaration)) { + if (declaration && declaration.kind !== 176 /* Constructor */ && declaration.kind !== 180 /* ConstructSignature */ && declaration.kind !== 185 /* ConstructorType */ && !(isJSDocSignature(declaration) && ((_b = (_a = getJSDocRoot(declaration)) == null ? void 0 : _a.parent) == null ? void 0 : _b.kind) === 176 /* Constructor */) && !isJSDocConstructSignature(declaration) && !isJSConstructor(declaration)) { if (noImplicitAny) { - error(node, Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type); + error2(node, Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type); } return anyType; } @@ -73584,11 +74076,11 @@ ${lanes.join("\n")} if (returnType.flags & 12288 /* ESSymbolLike */ && isSymbolOrSymbolForCall(node)) { return getESSymbolLikeTypeForNode(walkUpParenthesizedExpressions(node.parent)); } - if (node.kind === 212 /* CallExpression */ && !node.questionDotToken && node.parent.kind === 243 /* ExpressionStatement */ && returnType.flags & 16384 /* Void */ && getTypePredicateOfSignature(signature)) { + if (node.kind === 213 /* CallExpression */ && !node.questionDotToken && node.parent.kind === 244 /* ExpressionStatement */ && returnType.flags & 16384 /* Void */ && getTypePredicateOfSignature(signature)) { if (!isDottedName(node.expression)) { - error(node.expression, Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name); + error2(node.expression, Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name); } else if (!getEffectsSignature(node)) { - const diagnostic = error(node.expression, Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation); + const diagnostic = error2(node.expression, Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation); getTypeOfDottedName(node.expression, diagnostic); } } @@ -73607,7 +74099,9 @@ ${lanes.join("\n")} return returnType; } function checkDeprecatedSignature(signature, node) { - if (signature.declaration && signature.declaration.flags & 268435456 /* Deprecated */) { + if (signature.flags & 128 /* IsSignatureCandidateForOverloadFailure */) + return; + if (signature.declaration && signature.declaration.flags & 536870912 /* Deprecated */) { const suggestionNode = getDeprecatedSuggestionNode(node); const name = tryGetPropertyAccessOrIdentifierToString(getInvokedExpression(node)); addDeprecatedSuggestionWithSignature(suggestionNode, signature.declaration, name, signatureToString(signature)); @@ -73616,20 +74110,20 @@ ${lanes.join("\n")} function getDeprecatedSuggestionNode(node) { node = skipParentheses(node); switch (node.kind) { - case 212 /* CallExpression */: - case 169 /* Decorator */: - case 213 /* NewExpression */: + case 213 /* CallExpression */: + case 170 /* Decorator */: + case 214 /* NewExpression */: return getDeprecatedSuggestionNode(node.expression); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return getDeprecatedSuggestionNode(node.tag); - case 285 /* JsxOpeningElement */: - case 284 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: return getDeprecatedSuggestionNode(node.tagName); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return node.argumentExpression; - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return node.name; - case 182 /* TypeReference */: + case 183 /* TypeReference */: const typeReference = node; return isQualifiedName(typeReference.typeName) ? typeReference.typeName.right : typeReference; default: @@ -73677,7 +74171,7 @@ ${lanes.join("\n")} checkExpressionCached(node.arguments[i]); } if (specifierType.flags & 32768 /* Undefined */ || specifierType.flags & 65536 /* Null */ || !isTypeAssignableTo(specifierType, stringType)) { - error(specifier, Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0, typeToString(specifierType)); + error2(specifier, Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0, typeToString(specifierType)); } if (optionsType) { const importCallOptionsType = getGlobalImportCallOptionsType( @@ -73789,10 +74283,10 @@ ${lanes.join("\n")} if (resolvedRequire.flags & 2097152 /* Alias */) { return false; } - const targetDeclarationKind = resolvedRequire.flags & 16 /* Function */ ? 261 /* FunctionDeclaration */ : resolvedRequire.flags & 3 /* Variable */ ? 259 /* VariableDeclaration */ : 0 /* Unknown */; + const targetDeclarationKind = resolvedRequire.flags & 16 /* Function */ ? 262 /* FunctionDeclaration */ : resolvedRequire.flags & 3 /* Variable */ ? 260 /* VariableDeclaration */ : 0 /* Unknown */; if (targetDeclarationKind !== 0 /* Unknown */) { const decl = getDeclarationOfKind(resolvedRequire, targetDeclarationKind); - return !!decl && !!(decl.flags & 16777216 /* Ambient */); + return !!decl && !!(decl.flags & 33554432 /* Ambient */); } return false; } @@ -73807,7 +74301,7 @@ ${lanes.join("\n")} return getReturnTypeOfSignature(signature); } function checkAssertion(node, checkMode) { - if (node.kind === 215 /* TypeAssertionExpression */) { + if (node.kind === 216 /* TypeAssertionExpression */) { const file = getSourceFileOfNode(node); if (file && fileExtensionIsOneOf(file.fileName, [".cts" /* Cts */, ".mts" /* Mts */])) { grammarErrorOnNode(node, Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead); @@ -73823,18 +74317,18 @@ ${lanes.join("\n")} case 10 /* BigIntLiteral */: case 112 /* TrueKeyword */: case 97 /* FalseKeyword */: - case 208 /* ArrayLiteralExpression */: - case 209 /* ObjectLiteralExpression */: - case 227 /* TemplateExpression */: + case 209 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: + case 228 /* TemplateExpression */: return true; - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return isValidConstAssertionArgument(node.expression); - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: const op = node.operator; const arg = node.operand; return op === 41 /* MinusToken */ && (arg.kind === 9 /* NumericLiteral */ || arg.kind === 10 /* BigIntLiteral */) || op === 40 /* PlusToken */ && arg.kind === 9 /* NumericLiteral */; - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: const expr = skipParentheses(node.expression); const symbol = isEntityNameExpression(expr) ? resolveEntityName( expr, @@ -73851,7 +74345,7 @@ ${lanes.join("\n")} const exprType = checkExpression(expression, checkMode); if (isConstTypeReference(type)) { if (!isValidConstAssertionArgument(expression)) { - error(expression, Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals); + error2(expression, Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals); } return getRegularTypeOfLiteralType(exprType); } @@ -73865,12 +74359,12 @@ ${lanes.join("\n")} let type; let expression; switch (node.kind) { - case 233 /* AsExpression */: - case 215 /* TypeAssertionExpression */: + case 234 /* AsExpression */: + case 216 /* TypeAssertionExpression */: type = node.type; expression = node.expression; break; - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: type = getJSDocTypeAssertionType(node); expression = node.expression; break; @@ -73904,18 +74398,18 @@ ${lanes.join("\n")} return propagateOptionalTypeMarker(getNonNullableType(nonOptionalType), node, nonOptionalType !== leftType); } function checkNonNullAssertion(node) { - return node.flags & 32 /* OptionalChain */ ? checkNonNullChain(node) : getNonNullableType(checkExpression(node.expression)); + return node.flags & 64 /* OptionalChain */ ? checkNonNullChain(node) : getNonNullableType(checkExpression(node.expression)); } function checkExpressionWithTypeArguments(node) { checkGrammarExpressionWithTypeArguments(node); forEach(node.typeArguments, checkSourceElement); - if (node.kind === 232 /* ExpressionWithTypeArguments */) { + if (node.kind === 233 /* ExpressionWithTypeArguments */) { const parent2 = walkUpParenthesizedExpressions(node.parent); - if (parent2.kind === 225 /* BinaryExpression */ && parent2.operatorToken.kind === 104 /* InstanceOfKeyword */ && isNodeDescendantOf(node, parent2.right)) { - error(node, Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression); + if (parent2.kind === 226 /* BinaryExpression */ && parent2.operatorToken.kind === 104 /* InstanceOfKeyword */ && isNodeDescendantOf(node, parent2.right)) { + error2(node, Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression); } } - const exprType = node.kind === 232 /* ExpressionWithTypeArguments */ ? checkExpression(node.expression) : isThisIdentifier(node.exprName) ? checkThisExpression(node.exprName) : checkExpression(node.exprName); + const exprType = node.kind === 233 /* ExpressionWithTypeArguments */ ? checkExpression(node.expression) : isThisIdentifier(node.exprName) ? checkThisExpression(node.exprName) : checkExpression(node.exprName); return getInstantiationExpressionType(exprType, node); } function getInstantiationExpressionType(exprType, node) { @@ -73999,7 +74493,7 @@ ${lanes.join("\n")} if (isErrorType(targetType)) { return targetType; } - const errorNode = findAncestor(target.parent, (n) => n.kind === 237 /* SatisfiesExpression */ || n.kind === 356 /* JSDocSatisfiesTag */); + const errorNode = findAncestor(target.parent, (n) => n.kind === 238 /* SatisfiesExpression */ || n.kind === 357 /* JSDocSatisfiesTag */); checkTypeAssignableToAndOptionallyElaborate(exprType, targetType, errorNode, expression, Diagnostics.Type_0_does_not_satisfy_the_expected_type_1); return exprType; } @@ -74027,9 +74521,9 @@ ${lanes.join("\n")} function checkNewTargetMetaProperty(node) { const container = getNewTargetContainer(node); if (!container) { - error(node, Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor, "new.target"); + error2(node, Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor, "new.target"); return errorType; - } else if (container.kind === 175 /* Constructor */) { + } else if (container.kind === 176 /* Constructor */) { const symbol = getSymbolOfDeclaration(container.parent); return getTypeOfSymbol(symbol); } else { @@ -74040,13 +74534,13 @@ ${lanes.join("\n")} function checkImportMetaProperty(node) { if (moduleKind === 100 /* Node16 */ || moduleKind === 199 /* NodeNext */) { if (getSourceFileOfNode(node).impliedNodeFormat !== 99 /* ESNext */) { - error(node, Diagnostics.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output); + error2(node, Diagnostics.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output); } } else if (moduleKind < 6 /* ES2020 */ && moduleKind !== 4 /* System */) { - error(node, Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext); + error2(node, Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext); } const file = getSourceFileOfNode(node); - Debug.assert(!!(file.flags & 4194304 /* PossiblyContainsImportMeta */), "Containing file is missing import meta node flag."); + Debug.assert(!!(file.flags & 8388608 /* PossiblyContainsImportMeta */), "Containing file is missing import meta node flag."); return node.name.escapedText === "meta" ? getGlobalImportMetaType() : errorType; } function getTypeOfParameter(symbol) { @@ -74059,7 +74553,10 @@ ${lanes.join("\n")} } return type; } - function getTupleElementLabel(d) { + function getTupleElementLabel(d, index, restParameterName = "arg") { + if (!d) { + return `${restParameterName}_${index}`; + } Debug.assert(isIdentifier(d.name)); return d.name.escapedText; } @@ -74073,22 +74570,28 @@ ${lanes.join("\n")} if (isTupleType(restType)) { const associatedNames = restType.target.labeledElementDeclarations; const index = pos - paramCount; - return associatedNames && getTupleElementLabel(associatedNames[index]) || restParameter.escapedName + "_" + index; + return getTupleElementLabel(associatedNames == null ? void 0 : associatedNames[index], index, restParameter.escapedName); } return restParameter.escapedName; } - function getParameterIdentifierNameAtPosition(signature, pos) { + function getParameterIdentifierInfoAtPosition(signature, pos) { var _a; - if (((_a = signature.declaration) == null ? void 0 : _a.kind) === 323 /* JSDocFunctionType */) { + if (((_a = signature.declaration) == null ? void 0 : _a.kind) === 324 /* JSDocFunctionType */) { return void 0; } const paramCount = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0); if (pos < paramCount) { const param = signature.parameters[pos]; - return isParameterDeclarationWithIdentifierName(param) ? [param.escapedName, false] : void 0; + const paramIdent = getParameterDeclarationIdentifier(param); + return paramIdent ? { + parameter: paramIdent, + parameterName: param.escapedName, + isRestParameter: false + } : void 0; } const restParameter = signature.parameters[paramCount] || unknownSymbol; - if (!isParameterDeclarationWithIdentifierName(restParameter)) { + const restIdent = getParameterDeclarationIdentifier(restParameter); + if (!restIdent) { return void 0; } const restType = getTypeOfSymbol(restParameter); @@ -74097,21 +74600,22 @@ ${lanes.join("\n")} const index = pos - paramCount; const associatedName = associatedNames == null ? void 0 : associatedNames[index]; const isRestTupleElement = !!(associatedName == null ? void 0 : associatedName.dotDotDotToken); - return associatedName ? [ - getTupleElementLabel(associatedName), - isRestTupleElement - ] : void 0; + if (associatedName) { + Debug.assert(isIdentifier(associatedName.name)); + return { parameter: associatedName.name, parameterName: associatedName.name.escapedText, isRestParameter: isRestTupleElement }; + } + return void 0; } if (pos === paramCount) { - return [restParameter.escapedName, true]; + return { parameter: restIdent, parameterName: restParameter.escapedName, isRestParameter: true }; } return void 0; } - function isParameterDeclarationWithIdentifierName(symbol) { - return symbol.valueDeclaration && isParameter(symbol.valueDeclaration) && isIdentifier(symbol.valueDeclaration.name); + function getParameterDeclarationIdentifier(symbol) { + return symbol.valueDeclaration && isParameter(symbol.valueDeclaration) && isIdentifier(symbol.valueDeclaration.name) && symbol.valueDeclaration.name; } function isValidDeclarationForTupleLabel(d) { - return d.kind === 201 /* NamedTupleMember */ || isParameter(d) && d.name && isIdentifier(d.name); + return d.kind === 202 /* NamedTupleMember */ || isParameter(d) && d.name && isIdentifier(d.name); } function getNameableDeclarationAtPosition(signature, pos) { const paramCount = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0); @@ -74447,17 +74951,17 @@ ${lanes.join("\n")} if (!links.decoratorSignature) { links.decoratorSignature = anySignature; switch (parent2.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: { + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: { const node = parent2; const targetType = getTypeOfSymbol(getSymbolOfDeclaration(node)); const contextType = createClassDecoratorContextType(targetType); links.decoratorSignature = createESDecoratorCallSignature(targetType, contextType, targetType); break; } - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: { + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: { const node = parent2; if (!isClassLike(node.parent)) break; @@ -74469,7 +74973,7 @@ ${lanes.join("\n")} links.decoratorSignature = createESDecoratorCallSignature(targetType, contextType, returnType); break; } - case 171 /* PropertyDeclaration */: { + case 172 /* PropertyDeclaration */: { const node = parent2; if (!isClassLike(node.parent)) break; @@ -74491,8 +74995,8 @@ ${lanes.join("\n")} if (!links.decoratorSignature) { links.decoratorSignature = anySignature; switch (parent2.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: { + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: { const node = parent2; const targetType = getTypeOfSymbol(getSymbolOfDeclaration(node)); const targetParam = createParameter("target", targetType); @@ -74506,7 +75010,7 @@ ${lanes.join("\n")} ); break; } - case 168 /* Parameter */: { + case 169 /* Parameter */: { const node = parent2; if (!isConstructorDeclaration(node.parent) && !(isMethodDeclaration(node.parent) || isSetAccessorDeclaration(node.parent) && isClassLike(node.parent.parent))) { break; @@ -74532,10 +75036,10 @@ ${lanes.join("\n")} ); break; } - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 171 /* PropertyDeclaration */: { + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 172 /* PropertyDeclaration */: { const node = parent2; if (!isClassLike(node.parent)) break; @@ -74600,13 +75104,13 @@ ${lanes.join("\n")} function createPromiseReturnType(func, promisedType) { const promiseType = createPromiseType(promisedType); if (promiseType === unknownType) { - error(func, isImportCall(func) ? Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option : Diagnostics.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option); + error2(func, isImportCall(func) ? Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option : Diagnostics.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option); return errorType; } else if (!getGlobalPromiseConstructorSymbol( /*reportErrors*/ true )) { - error(func, isImportCall(func) ? Diagnostics.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option : Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option); + error2(func, isImportCall(func) ? Diagnostics.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option : Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option); } return promiseType; } @@ -74630,7 +75134,7 @@ ${lanes.join("\n")} let yieldType; let nextType; let fallbackReturnType = voidType; - if (func.body.kind !== 240 /* Block */) { + if (func.body.kind !== 241 /* Block */) { returnType = checkExpressionCached(func.body, checkMode && checkMode & ~8 /* SkipGenericFunctions */); if (isAsync) { returnType = unwrapAwaitedType(checkAwaitedType( @@ -74813,7 +75317,7 @@ ${lanes.join("\n")} return links.isExhaustive; } function computeExhaustiveSwitchStatement(node) { - if (node.expression.kind === 220 /* TypeOfExpression */) { + if (node.expression.kind === 221 /* TypeOfExpression */) { const witnesses = getSwitchClauseTypeOfWitnesses(node); if (!witnesses) { return false; @@ -74846,7 +75350,7 @@ ${lanes.join("\n")} forEachReturnStatement(func.body, (returnStatement) => { const expr = returnStatement.expression; if (expr) { - if (expr.kind === 212 /* CallExpression */ && expr.expression.kind === 80 /* Identifier */ && checkExpressionCached(expr.expression).symbol === func.symbol) { + if (expr.kind === 213 /* CallExpression */ && expr.expression.kind === 80 /* Identifier */ && checkExpressionCached(expr.expression).symbol === func.symbol) { hasReturnOfTypeNever = true; return; } @@ -74878,11 +75382,11 @@ ${lanes.join("\n")} } function mayReturnNever(func) { switch (func.kind) { - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return true; - case 173 /* MethodDeclaration */: - return func.parent.kind === 209 /* ObjectLiteralExpression */; + case 174 /* MethodDeclaration */: + return func.parent.kind === 210 /* ObjectLiteralExpression */; default: return false; } @@ -74896,17 +75400,17 @@ ${lanes.join("\n")} if (type && (maybeTypeOfKind(type, 16384 /* Void */) || type.flags & (1 /* Any */ | 32768 /* Undefined */))) { return; } - if (func.kind === 172 /* MethodSignature */ || nodeIsMissing(func.body) || func.body.kind !== 240 /* Block */ || !functionHasImplicitReturn(func)) { + if (func.kind === 173 /* MethodSignature */ || nodeIsMissing(func.body) || func.body.kind !== 241 /* Block */ || !functionHasImplicitReturn(func)) { return; } - const hasExplicitReturn = func.flags & 512 /* HasExplicitReturn */; + const hasExplicitReturn = func.flags & 1024 /* HasExplicitReturn */; const errorNode = getEffectiveReturnTypeNode(func) || func; if (type && type.flags & 131072 /* Never */) { - error(errorNode, Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point); + error2(errorNode, Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point); } else if (type && !hasExplicitReturn) { - error(errorNode, Diagnostics.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value); + error2(errorNode, Diagnostics.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value); } else if (type && strictNullChecks && !isTypeAssignableTo(undefinedType, type)) { - error(errorNode, Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined); + error2(errorNode, Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined); } else if (compilerOptions.noImplicitReturns) { if (!type) { if (!hasExplicitReturn) { @@ -74917,12 +75421,12 @@ ${lanes.join("\n")} return; } } - error(errorNode, Diagnostics.Not_all_code_paths_return_a_value); + error2(errorNode, Diagnostics.Not_all_code_paths_return_a_value); } } } function checkFunctionExpressionOrObjectLiteralMethod(node, checkMode) { - Debug.assert(node.kind !== 173 /* MethodDeclaration */ || isObjectLiteralMethod(node)); + Debug.assert(node.kind !== 174 /* MethodDeclaration */ || isObjectLiteralMethod(node)); checkNodeDeferred(node); if (isFunctionExpression(node)) { checkCollisionsForDeclarationName(node, node.name); @@ -74958,7 +75462,7 @@ ${lanes.join("\n")} return anyFunctionType; } const hasGrammarError = checkGrammarFunctionLikeDeclaration(node); - if (!hasGrammarError && node.kind === 217 /* FunctionExpression */) { + if (!hasGrammarError && node.kind === 218 /* FunctionExpression */) { checkGrammarForGenerator(node); } contextuallyCheckFunctionExpressionOrObjectLiteralMethod(node, checkMode); @@ -75007,7 +75511,7 @@ ${lanes.join("\n")} } } function checkFunctionExpressionOrObjectLiteralMethodDeferred(node) { - Debug.assert(node.kind !== 173 /* MethodDeclaration */ || isObjectLiteralMethod(node)); + Debug.assert(node.kind !== 174 /* MethodDeclaration */ || isObjectLiteralMethod(node)); const functionFlags = getFunctionFlags(node); const returnType = getReturnTypeFromAnnotation(node); checkAllCodePathsInNonVoidFunctionReturnOrThrow(node, returnType); @@ -75015,7 +75519,7 @@ ${lanes.join("\n")} if (!getEffectiveReturnTypeNode(node)) { getReturnTypeOfSignature(getSignatureFromDeclaration(node)); } - if (node.body.kind === 240 /* Block */) { + if (node.body.kind === 241 /* Block */) { checkSourceElement(node.body); } else { const exprType = checkExpression(node.body); @@ -75077,7 +75581,7 @@ ${lanes.join("\n")} return !setProp; } function isReadonlySymbol(symbol) { - return !!(getCheckFlags(symbol) & 8 /* Readonly */ || symbol.flags & 4 /* Property */ && getDeclarationModifierFlagsFromSymbol(symbol) & 64 /* Readonly */ || symbol.flags & 3 /* Variable */ && getDeclarationNodeFlagsFromSymbol(symbol) & 2 /* Const */ || symbol.flags & 98304 /* Accessor */ && !(symbol.flags & 65536 /* SetAccessor */) || symbol.flags & 8 /* EnumMember */ || some(symbol.declarations, isReadonlyAssignmentDeclaration)); + return !!(getCheckFlags(symbol) & 8 /* Readonly */ || symbol.flags & 4 /* Property */ && getDeclarationModifierFlagsFromSymbol(symbol) & 64 /* Readonly */ || symbol.flags & 3 /* Variable */ && getDeclarationNodeFlagsFromSymbol(symbol) & 6 /* Constant */ || symbol.flags & 98304 /* Accessor */ && !(symbol.flags & 65536 /* SetAccessor */) || symbol.flags & 8 /* EnumMember */ || some(symbol.declarations, isReadonlyAssignmentDeclaration)); } function isAssignmentToReadonlyEntity(expr, symbol, assignmentKind) { var _a, _b; @@ -75087,7 +75591,7 @@ ${lanes.join("\n")} if (isReadonlySymbol(symbol)) { if (symbol.flags & 4 /* Property */ && isAccessExpression(expr) && expr.expression.kind === 110 /* ThisKeyword */) { const ctor = getContainingFunction(expr); - if (!(ctor && (ctor.kind === 175 /* Constructor */ || isJSConstructor(ctor)))) { + if (!(ctor && (ctor.kind === 176 /* Constructor */ || isJSConstructor(ctor)))) { return true; } if (symbol.valueDeclaration) { @@ -75108,7 +75612,7 @@ ${lanes.join("\n")} const symbol2 = getNodeLinks(node).resolvedSymbol; if (symbol2.flags & 2097152 /* Alias */) { const declaration = getDeclarationOfAliasSymbol(symbol2); - return !!declaration && declaration.kind === 273 /* NamespaceImport */; + return !!declaration && declaration.kind === 274 /* NamespaceImport */; } } } @@ -75117,11 +75621,11 @@ ${lanes.join("\n")} function checkReferenceExpression(expr, invalidReferenceMessage, invalidOptionalChainMessage) { const node = skipOuterExpressions(expr, 6 /* Assertions */ | 1 /* Parentheses */); if (node.kind !== 80 /* Identifier */ && !isAccessExpression(node)) { - error(expr, invalidReferenceMessage); + error2(expr, invalidReferenceMessage); return false; } - if (node.flags & 32 /* OptionalChain */) { - error(expr, invalidOptionalChainMessage); + if (node.flags & 64 /* OptionalChain */) { + error2(expr, invalidOptionalChainMessage); return false; } return true; @@ -75130,17 +75634,17 @@ ${lanes.join("\n")} checkExpression(node.expression); const expr = skipParentheses(node.expression); if (!isAccessExpression(expr)) { - error(expr, Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference); + error2(expr, Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference); return booleanType; } if (isPropertyAccessExpression(expr) && isPrivateIdentifier(expr.name)) { - error(expr, Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier); + error2(expr, Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier); } const links = getNodeLinks(expr); const symbol = getExportSymbolOfValueSymbolIfExported(links.resolvedSymbol); if (symbol) { if (isReadonlySymbol(symbol)) { - error(expr, Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property); + error2(expr, Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property); } checkDeleteExpressionMustBeOptional(expr, symbol); } @@ -75149,7 +75653,7 @@ ${lanes.join("\n")} function checkDeleteExpressionMustBeOptional(expr, symbol) { const type = getTypeOfSymbol(symbol); if (strictNullChecks && !(type.flags & (3 /* AnyOrUnknown */ | 131072 /* Never */)) && !(exactOptionalPropertyTypes ? symbol.flags & 16777216 /* Optional */ : getTypeFacts(type) & 16777216 /* IsUndefined */)) { - error(expr, Diagnostics.The_operand_of_a_delete_operator_must_be_optional); + error2(expr, Diagnostics.The_operand_of_a_delete_operator_must_be_optional); } } function checkTypeOfExpression(node) { @@ -75160,24 +75664,24 @@ ${lanes.join("\n")} checkExpression(node.expression); return undefinedWideningType; } - function checkAwaitExpressionGrammar(node) { + function checkAwaitGrammar(node) { + let hasError = false; const container = getContainingFunctionOrClassStaticBlock(node); if (container && isClassStaticBlockDeclaration(container)) { - error(node, Diagnostics.Await_expression_cannot_be_used_inside_a_class_static_block); - } else if (!(node.flags & 32768 /* AwaitContext */)) { + const message = isAwaitExpression(node) ? Diagnostics.await_expression_cannot_be_used_inside_a_class_static_block : Diagnostics.await_using_statements_cannot_be_used_inside_a_class_static_block; + error2(node, message); + hasError = true; + } else if (!(node.flags & 65536 /* AwaitContext */)) { if (isInTopLevelContext(node)) { const sourceFile = getSourceFileOfNode(node); if (!hasParseDiagnostics(sourceFile)) { let span; if (!isEffectiveExternalModule(sourceFile, compilerOptions)) { span ?? (span = getSpanOfTokenAtPosition(sourceFile, node.pos)); - const diagnostic = createFileDiagnostic( - sourceFile, - span.start, - span.length, - Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module - ); + const message = isAwaitExpression(node) ? Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module : Diagnostics.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module; + const diagnostic = createFileDiagnostic(sourceFile, span.start, span.length, message); diagnostics.add(diagnostic); + hasError = true; } switch (moduleKind) { case 100 /* Node16 */: @@ -75187,6 +75691,7 @@ ${lanes.join("\n")} diagnostics.add( createFileDiagnostic(sourceFile, span.start, span.length, Diagnostics.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level) ); + hasError = true; break; } case 7 /* ES2022 */: @@ -75197,14 +75702,9 @@ ${lanes.join("\n")} } default: span ?? (span = getSpanOfTokenAtPosition(sourceFile, node.pos)); - diagnostics.add( - createFileDiagnostic( - sourceFile, - span.start, - span.length, - Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher - ) - ); + const message = isAwaitExpression(node) ? Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher : Diagnostics.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher; + diagnostics.add(createFileDiagnostic(sourceFile, span.start, span.length, message)); + hasError = true; break; } } @@ -75212,21 +75712,25 @@ ${lanes.join("\n")} const sourceFile = getSourceFileOfNode(node); if (!hasParseDiagnostics(sourceFile)) { const span = getSpanOfTokenAtPosition(sourceFile, node.pos); - const diagnostic = createFileDiagnostic(sourceFile, span.start, span.length, Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules); - if (container && container.kind !== 175 /* Constructor */ && (getFunctionFlags(container) & 2 /* Async */) === 0) { + const message = isAwaitExpression(node) ? Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules : Diagnostics.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules; + const diagnostic = createFileDiagnostic(sourceFile, span.start, span.length, message); + if (container && container.kind !== 176 /* Constructor */ && (getFunctionFlags(container) & 2 /* Async */) === 0) { const relatedInfo = createDiagnosticForNode(container, Diagnostics.Did_you_mean_to_mark_this_function_as_async); addRelatedInfo(diagnostic, relatedInfo); } diagnostics.add(diagnostic); + hasError = true; } } } - if (isInParameterInitializerBeforeContainingFunction(node)) { - error(node, Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer); + if (isAwaitExpression(node) && isInParameterInitializerBeforeContainingFunction(node)) { + error2(node, Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer); + hasError = true; } + return hasError; } function checkAwaitExpression(node) { - addLazyDiagnostic(() => checkAwaitExpressionGrammar(node)); + addLazyDiagnostic(() => checkAwaitGrammar(node)); const operandType = checkExpression(node.expression); const awaitedType = checkAwaitedType( operandType, @@ -75272,11 +75776,11 @@ ${lanes.join("\n")} case 55 /* TildeToken */: checkNonNullType(operandType, node.operand); if (maybeTypeOfKindConsideringBaseConstraint(operandType, 12288 /* ESSymbolLike */)) { - error(node.operand, Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol, tokenToString(node.operator)); + error2(node.operand, Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol, tokenToString(node.operator)); } if (node.operator === 40 /* PlusToken */) { if (maybeTypeOfKindConsideringBaseConstraint(operandType, 2112 /* BigIntLike */)) { - error(node.operand, Diagnostics.Operator_0_cannot_be_applied_to_type_1, tokenToString(node.operator), typeToString(getBaseTypeOfLiteralType(operandType))); + error2(node.operand, Diagnostics.Operator_0_cannot_be_applied_to_type_1, tokenToString(node.operator), typeToString(getBaseTypeOfLiteralType(operandType))); } return numberType; } @@ -75372,10 +75876,10 @@ ${lanes.join("\n")} return silentNeverType; } if (!isTypeAny(leftType) && allTypesAssignableToKind(leftType, 402784252 /* Primitive */)) { - error(left, Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter); + error2(left, Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter); } if (!(isTypeAny(rightType) || typeHasCallOrConstructSignatures(rightType) || isTypeSubtypeOf(rightType, globalFunctionType))) { - error(right, Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type); + error2(right, Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type); } return booleanType; } @@ -75404,7 +75908,7 @@ ${lanes.join("\n")} } if (checkTypeAssignableTo(checkNonNullType(rightType, right), nonPrimitiveType, right)) { if (hasEmptyObjectIntersection(rightType)) { - error(right, Diagnostics.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator, typeToString(rightType)); + error2(right, Diagnostics.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator, typeToString(rightType)); } } return booleanType; @@ -75422,7 +75926,7 @@ ${lanes.join("\n")} function checkObjectLiteralDestructuringPropertyAssignment(node, objectLiteralType, propertyIndex, allProperties, rightIsThis = false) { const properties = node.properties; const property = properties[propertyIndex]; - if (property.kind === 302 /* PropertyAssignment */ || property.kind === 303 /* ShorthandPropertyAssignment */) { + if (property.kind === 303 /* PropertyAssignment */ || property.kind === 304 /* ShorthandPropertyAssignment */) { const name = property.name; const exprType = getLiteralTypeFromPropertyName(name); if (isTypeUsableAsPropertyName(exprType)) { @@ -75443,10 +75947,10 @@ ${lanes.join("\n")} } const elementType = getIndexedAccessType(objectLiteralType, exprType, 32 /* ExpressionPosition */, name); const type = getFlowTypeOfDestructuring(property, elementType); - return checkDestructuringAssignment(property.kind === 303 /* ShorthandPropertyAssignment */ ? property : property.initializer, type); - } else if (property.kind === 304 /* SpreadAssignment */) { + return checkDestructuringAssignment(property.kind === 304 /* ShorthandPropertyAssignment */ ? property : property.initializer, type); + } else if (property.kind === 305 /* SpreadAssignment */) { if (propertyIndex < properties.length - 1) { - error(property, Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern); + error2(property, Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern); } else { if (languageVersion < 99 /* ESNext */) { checkExternalEmitHelpers(property, 4 /* Rest */); @@ -75464,7 +75968,7 @@ ${lanes.join("\n")} return checkDestructuringAssignment(property.expression, type); } } else { - error(property, Diagnostics.Property_assignment_expected); + error2(property, Diagnostics.Property_assignment_expected); } } function checkArrayLiteralAssignment(node, sourceType, checkMode) { @@ -75476,7 +75980,7 @@ ${lanes.join("\n")} let inBoundsType = compilerOptions.noUncheckedIndexedAccess ? void 0 : possiblyOutOfBoundsType; for (let i = 0; i < elements.length; i++) { let type = possiblyOutOfBoundsType; - if (node.elements[i].kind === 229 /* SpreadElement */) { + if (node.elements[i].kind === 230 /* SpreadElement */) { type = inBoundsType = inBoundsType ?? (checkIteratedTypeOrElementType(65 /* Destructuring */, sourceType, undefinedType, node) || errorType); } checkArrayLiteralDestructuringElementAssignment(node, sourceType, i, type, checkMode); @@ -75486,8 +75990,8 @@ ${lanes.join("\n")} function checkArrayLiteralDestructuringElementAssignment(node, sourceType, elementIndex, elementType, checkMode) { const elements = node.elements; const element = elements[elementIndex]; - if (element.kind !== 231 /* OmittedExpression */) { - if (element.kind !== 229 /* SpreadElement */) { + if (element.kind !== 232 /* OmittedExpression */) { + if (element.kind !== 230 /* SpreadElement */) { const indexType = getNumberLiteralType(elementIndex); if (isArrayLikeType(sourceType)) { const accessFlags = 32 /* ExpressionPosition */ | (hasDefaultValue(element) ? 16 /* NoTupleBoundsCheck */ : 0); @@ -75499,11 +76003,11 @@ ${lanes.join("\n")} return checkDestructuringAssignment(element, elementType, checkMode); } if (elementIndex < elements.length - 1) { - error(element, Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern); + error2(element, Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern); } else { const restExpression = element.expression; - if (restExpression.kind === 225 /* BinaryExpression */ && restExpression.operatorToken.kind === 64 /* EqualsToken */) { - error(restExpression.operatorToken, Diagnostics.A_rest_element_cannot_have_an_initializer); + if (restExpression.kind === 226 /* BinaryExpression */ && restExpression.operatorToken.kind === 64 /* EqualsToken */) { + error2(restExpression.operatorToken, Diagnostics.A_rest_element_cannot_have_an_initializer); } else { checkGrammarForDisallowedTrailingComma(node.elements, Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma); const type = everyType(sourceType, isTupleType) ? mapType(sourceType, (t) => sliceTupleType(t, elementIndex)) : createArrayType(elementType); @@ -75515,7 +76019,7 @@ ${lanes.join("\n")} } function checkDestructuringAssignment(exprOrAssignment, sourceType, checkMode, rightIsThis) { let target; - if (exprOrAssignment.kind === 303 /* ShorthandPropertyAssignment */) { + if (exprOrAssignment.kind === 304 /* ShorthandPropertyAssignment */) { const prop = exprOrAssignment; if (prop.objectAssignmentInitializer) { if (strictNullChecks && !(getTypeFacts(checkExpression(prop.objectAssignmentInitializer)) & 16777216 /* IsUndefined */)) { @@ -75527,26 +76031,26 @@ ${lanes.join("\n")} } else { target = exprOrAssignment; } - if (target.kind === 225 /* BinaryExpression */ && target.operatorToken.kind === 64 /* EqualsToken */) { + if (target.kind === 226 /* BinaryExpression */ && target.operatorToken.kind === 64 /* EqualsToken */) { checkBinaryExpression(target, checkMode); target = target.left; if (strictNullChecks) { sourceType = getTypeWithFacts(sourceType, 524288 /* NEUndefined */); } } - if (target.kind === 209 /* ObjectLiteralExpression */) { + if (target.kind === 210 /* ObjectLiteralExpression */) { return checkObjectLiteralAssignment(target, sourceType, rightIsThis); } - if (target.kind === 208 /* ArrayLiteralExpression */) { + if (target.kind === 209 /* ArrayLiteralExpression */) { return checkArrayLiteralAssignment(target, sourceType, checkMode); } return checkReferenceAssignment(target, sourceType, checkMode); } function checkReferenceAssignment(target, sourceType, checkMode) { const targetType = checkExpression(target, checkMode); - const error2 = target.parent.kind === 304 /* SpreadAssignment */ ? Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access : Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access; - const optionalError = target.parent.kind === 304 /* SpreadAssignment */ ? Diagnostics.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access : Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access; - if (checkReferenceExpression(target, error2, optionalError)) { + const error3 = target.parent.kind === 305 /* SpreadAssignment */ ? Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access : Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access; + const optionalError = target.parent.kind === 305 /* SpreadAssignment */ ? Diagnostics.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access : Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access; + if (checkReferenceExpression(target, error3, optionalError)) { checkTypeAssignableToAndOptionallyElaborate(sourceType, targetType, target, target); } if (isPrivateIdentifierPropertyAccessExpression(target)) { @@ -75560,8 +76064,8 @@ ${lanes.join("\n")} case 80 /* Identifier */: case 11 /* StringLiteral */: case 14 /* RegularExpressionLiteral */: - case 214 /* TaggedTemplateExpression */: - case 227 /* TemplateExpression */: + case 215 /* TaggedTemplateExpression */: + case 228 /* TemplateExpression */: case 15 /* NoSubstitutionTemplateLiteral */: case 9 /* NumericLiteral */: case 10 /* BigIntLiteral */: @@ -75569,25 +76073,25 @@ ${lanes.join("\n")} case 97 /* FalseKeyword */: case 106 /* NullKeyword */: case 157 /* UndefinedKeyword */: - case 217 /* FunctionExpression */: - case 230 /* ClassExpression */: - case 218 /* ArrowFunction */: - case 208 /* ArrayLiteralExpression */: - case 209 /* ObjectLiteralExpression */: - case 220 /* TypeOfExpression */: - case 234 /* NonNullExpression */: - case 284 /* JsxSelfClosingElement */: - case 283 /* JsxElement */: + case 218 /* FunctionExpression */: + case 231 /* ClassExpression */: + case 219 /* ArrowFunction */: + case 209 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: + case 221 /* TypeOfExpression */: + case 235 /* NonNullExpression */: + case 285 /* JsxSelfClosingElement */: + case 284 /* JsxElement */: return true; - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: return isSideEffectFree(node.whenTrue) && isSideEffectFree(node.whenFalse); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: if (isAssignmentOperator(node.operatorToken.kind)) { return false; } return isSideEffectFree(node.left) && isSideEffectFree(node.right); - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: switch (node.operator) { case 54 /* ExclamationToken */: case 40 /* PlusToken */: @@ -75596,9 +76100,9 @@ ${lanes.join("\n")} return true; } return false; - case 221 /* VoidExpression */: - case 215 /* TypeAssertionExpression */: - case 233 /* AsExpression */: + case 222 /* VoidExpression */: + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: default: return false; } @@ -75642,7 +76146,7 @@ ${lanes.join("\n")} } checkGrammarNullishCoalesceWithLogicalExpression(node); const operator = node.operatorToken.kind; - if (operator === 64 /* EqualsToken */ && (node.left.kind === 209 /* ObjectLiteralExpression */ || node.left.kind === 208 /* ArrayLiteralExpression */)) { + if (operator === 64 /* EqualsToken */ && (node.left.kind === 210 /* ObjectLiteralExpression */ || node.left.kind === 209 /* ArrayLiteralExpression */)) { state.skip = true; setLastResult(state, checkDestructuringAssignment(node.left, checkExpression(node.right, checkMode), checkMode, node.right.kind === 110 /* ThisKeyword */)); return state; @@ -75667,7 +76171,7 @@ ${lanes.join("\n")} const operator = operatorToken.kind; if (isLogicalOrCoalescingBinaryOperator(operator)) { let parent2 = node.parent; - while (parent2.kind === 216 /* ParenthesizedExpression */ || isLogicalOrCoalescingBinaryExpression(parent2)) { + while (parent2.kind === 217 /* ParenthesizedExpression */ || isLogicalOrCoalescingBinaryExpression(parent2)) { parent2 = parent2.parent; } if (operator === 56 /* AmpersandAmpersandToken */ || isIfStatement(parent2)) { @@ -75691,7 +76195,7 @@ ${lanes.join("\n")} Debug.assertIsDefined(leftType); const rightType = getLastResult(state); Debug.assertIsDefined(rightType); - result = checkBinaryLikeExpressionWorker(node.left, node.operatorToken, node.right, leftType, rightType, node); + result = checkBinaryLikeExpressionWorker(node.left, node.operatorToken, node.right, leftType, rightType, state.checkMode, node); } state.skip = false; setLeftType( @@ -75743,7 +76247,7 @@ ${lanes.join("\n")} } function checkBinaryLikeExpression(left, operatorToken, right, checkMode, errorNode) { const operator = operatorToken.kind; - if (operator === 64 /* EqualsToken */ && (left.kind === 209 /* ObjectLiteralExpression */ || left.kind === 208 /* ArrayLiteralExpression */)) { + if (operator === 64 /* EqualsToken */ && (left.kind === 210 /* ObjectLiteralExpression */ || left.kind === 209 /* ArrayLiteralExpression */)) { return checkDestructuringAssignment(left, checkExpression(right, checkMode), checkMode, right.kind === 110 /* ThisKeyword */); } let leftType; @@ -75753,9 +76257,9 @@ ${lanes.join("\n")} leftType = checkExpression(left, checkMode); } const rightType = checkExpression(right, checkMode); - return checkBinaryLikeExpressionWorker(left, operatorToken, right, leftType, rightType, errorNode); + return checkBinaryLikeExpressionWorker(left, operatorToken, right, leftType, rightType, checkMode, errorNode); } - function checkBinaryLikeExpressionWorker(left, operatorToken, right, leftType, rightType, errorNode) { + function checkBinaryLikeExpressionWorker(left, operatorToken, right, leftType, rightType, checkMode, errorNode) { const operator = operatorToken.kind; switch (operator) { case 42 /* AsteriskToken */: @@ -75787,7 +76291,7 @@ ${lanes.join("\n")} rightType = checkNonNullType(rightType, right); let suggestedOperator; if (leftType.flags & 528 /* BooleanLike */ && rightType.flags & 528 /* BooleanLike */ && (suggestedOperator = getSuggestedBooleanOperator(operatorToken.kind)) !== void 0) { - error(errorNode || operatorToken, Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead, tokenToString(operatorToken.kind), tokenToString(suggestedOperator)); + error2(errorNode || operatorToken, Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead, tokenToString(operatorToken.kind), tokenToString(suggestedOperator)); return numberType; } else { const leftOk = checkArithmeticOperandType( @@ -75817,7 +76321,7 @@ ${lanes.join("\n")} case 43 /* AsteriskAsteriskToken */: case 68 /* AsteriskAsteriskEqualsToken */: if (languageVersion < 3 /* ES2016 */) { - error(errorNode, Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later); + error2(errorNode, Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later); } } resultType2 = bigintType; @@ -75912,12 +76416,15 @@ ${lanes.join("\n")} case 36 /* ExclamationEqualsToken */: case 37 /* EqualsEqualsEqualsToken */: case 38 /* ExclamationEqualsEqualsToken */: - if (isLiteralExpressionOfObject(left) || isLiteralExpressionOfObject(right)) { - const eqType = operator === 35 /* EqualsEqualsToken */ || operator === 37 /* EqualsEqualsEqualsToken */; - error(errorNode, Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value, eqType ? "false" : "true"); + if (!(checkMode && checkMode & 128 /* TypeOnly */)) { + if ((isLiteralExpressionOfObject(left) || isLiteralExpressionOfObject(right)) && // only report for === and !== in JS, not == or != + (!isInJSFile(left) || (operator === 37 /* EqualsEqualsEqualsToken */ || operator === 38 /* ExclamationEqualsEqualsToken */))) { + const eqType = operator === 35 /* EqualsEqualsToken */ || operator === 37 /* EqualsEqualsEqualsToken */; + error2(errorNode, Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value, eqType ? "false" : "true"); + } + checkNaNEquality(errorNode, operator, left, right); + reportOperatorErrorUnless((left2, right2) => isTypeEqualityComparableTo(left2, right2) || isTypeEqualityComparableTo(right2, left2)); } - checkNaNEquality(errorNode, operator, left, right); - reportOperatorErrorUnless((left2, right2) => isTypeEqualityComparableTo(left2, right2) || isTypeEqualityComparableTo(right2, left2)); return booleanType; case 104 /* InstanceOfKeyword */: return checkInstanceOfExpression(left, right, leftType, rightType); @@ -75970,7 +76477,7 @@ ${lanes.join("\n")} return textSpanContainsPosition(diag2, start); }); if (!isInDiag2657) - error(left, Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects); + error2(left, Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects); } return rightType; default: @@ -76004,13 +76511,13 @@ ${lanes.join("\n")} } } function isIndirectCall(node) { - return node.parent.kind === 216 /* ParenthesizedExpression */ && isNumericLiteral(node.left) && node.left.text === "0" && (isCallExpression(node.parent.parent) && node.parent.parent.expression === node.parent || node.parent.parent.kind === 214 /* TaggedTemplateExpression */) && // special-case for "eval" because it's the only non-access case where an indirect call actually affects behavior. + return node.parent.kind === 217 /* ParenthesizedExpression */ && isNumericLiteral(node.left) && node.left.text === "0" && (isCallExpression(node.parent.parent) && node.parent.parent.expression === node.parent || node.parent.parent.kind === 215 /* TaggedTemplateExpression */) && // special-case for "eval" because it's the only non-access case where an indirect call actually affects behavior. (isAccessExpression(node.right) || isIdentifier(node.right) && node.right.escapedText === "eval"); } function checkForDisallowedESSymbolOperand(operator2) { const offendingSymbolOperand = maybeTypeOfKindConsideringBaseConstraint(leftType, 12288 /* ESSymbolLike */) ? left : maybeTypeOfKindConsideringBaseConstraint(rightType, 12288 /* ESSymbolLike */) ? right : void 0; if (offendingSymbolOperand) { - error(offendingSymbolOperand, Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol, tokenToString(operator2)); + error2(offendingSymbolOperand, Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol, tokenToString(operator2)); return false; } return true; @@ -76036,7 +76543,7 @@ ${lanes.join("\n")} } function checkAssignmentOperatorWorker() { let assigneeType = leftType; - if (isCompoundAssignment(operatorToken.kind) && left.kind === 210 /* PropertyAccessExpression */) { + if (isCompoundAssignment(operatorToken.kind) && left.kind === 211 /* PropertyAccessExpression */) { assigneeType = checkPropertyAccessExpression( left, /*checkMode*/ @@ -76131,7 +76638,7 @@ ${lanes.join("\n")} const isLeftNaN = isGlobalNaN(skipParentheses(left2)); const isRightNaN = isGlobalNaN(skipParentheses(right2)); if (isLeftNaN || isRightNaN) { - const err = error( + const err = error2( errorNode2, Diagnostics.This_condition_will_always_return_0, tokenToString(operator2 === 37 /* EqualsEqualsEqualsToken */ || operator2 === 35 /* EqualsEqualsToken */ ? 97 /* FalseKeyword */ : 112 /* TrueKeyword */) @@ -76212,23 +76719,23 @@ ${lanes.join("\n")} void 0 ); if (!contextualType || isTypeAny(contextualType)) { - error(node, Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation); + error2(node, Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation); } } }); } return type; function checkYieldExpressionGrammar() { - if (!(node.flags & 8192 /* YieldContext */)) { + if (!(node.flags & 16384 /* YieldContext */)) { grammarErrorOnFirstToken(node, Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body); } if (isInParameterInitializerBeforeContainingFunction(node)) { - error(node, Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer); + error2(node, Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer); } } } function checkConditionalExpression(node, checkMode) { - const type = checkTruthinessExpression(node.condition); + const type = checkTruthinessExpression(node.condition, checkMode); checkTestingKnownTruthyCallableOrAwaitableType(node.condition, type, node.whenTrue); const type1 = checkExpression(node.whenTrue, checkMode); const type2 = checkExpression(node.whenFalse, checkMode); @@ -76244,16 +76751,20 @@ ${lanes.join("\n")} for (const span of node.templateSpans) { const type = checkExpression(span.expression); if (maybeTypeOfKindConsideringBaseConstraint(type, 12288 /* ESSymbolLike */)) { - error(span.expression, Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String); + error2(span.expression, Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String); } texts.push(span.literal.text); types.push(isTypeAssignableTo(type, templateConstraintType) ? type : stringType); } - return isConstContext(node) || isTemplateLiteralContext(node) || someType(getContextualType2( + if (isConstContext(node) || isTemplateLiteralContext(node) || someType(getContextualType2( node, /*contextFlags*/ void 0 - ) || unknownType, isTemplateLiteralContextualType) ? getTemplateLiteralType(texts, types) : stringType; + ) || unknownType, isTemplateLiteralContextualType)) { + return getTemplateLiteralType(texts, types); + } + const evaluated = node.parent.kind !== 215 /* TaggedTemplateExpression */ && evaluateTemplateExpression(node); + return evaluated ? getFreshTypeOfLiteralType(getStringLiteralType(evaluated)) : stringType; } function isTemplateLiteralContextualType(type) { return !!(type.flags & (128 /* StringLiteral */ | 134217728 /* TemplateLiteral */) || type.flags & 58982400 /* InstantiableNonPrimitive */ && maybeTypeOfKind(getBaseConstraintOfType(type) || unknownType, 402653316 /* StringLike */)); @@ -76309,7 +76820,7 @@ ${lanes.join("\n")} /*excludeJSDocTypeAssertions*/ true ); - return node.kind === 215 /* TypeAssertionExpression */ || node.kind === 233 /* AsExpression */ || isJSDocTypeAssertion(node); + return node.kind === 216 /* TypeAssertionExpression */ || node.kind === 234 /* AsExpression */ || isJSDocTypeAssertion(node); } function checkDeclarationInitializer(declaration, checkMode, contextualType) { const initializer = getEffectiveInitializer(declaration); @@ -76326,7 +76837,7 @@ ${lanes.join("\n")} void 0, checkMode || 0 /* Normal */ ) : checkExpressionCached(initializer, checkMode)); - return isParameter(declaration) && declaration.name.kind === 206 /* ArrayBindingPattern */ && isTupleType(type) && !type.target.hasRestElement && getTypeReferenceArity(type) < declaration.name.elements.length ? padTupleType(type, declaration.name) : type; + return isParameter(declaration) && declaration.name.kind === 207 /* ArrayBindingPattern */ && isTupleType(type) && !type.target.hasRestElement && getTypeReferenceArity(type) < declaration.name.elements.length ? padTupleType(type, declaration.name) : type; } function padTupleType(type, pattern) { const patternElements = pattern.elements; @@ -76334,7 +76845,7 @@ ${lanes.join("\n")} const elementFlags = type.target.elementFlags.slice(); for (let i = getTypeReferenceArity(type); i < patternElements.length; i++) { const e = patternElements[i]; - if (i < patternElements.length - 1 || !(e.kind === 207 /* BindingElement */ && e.dotDotDotToken)) { + if (i < patternElements.length - 1 || !(e.kind === 208 /* BindingElement */ && e.dotDotDotToken)) { elementTypes.push(!isOmittedExpression(e) && hasDefaultValue(e) ? getTypeFromBindingElement( e, /*includePatternInType*/ @@ -76351,7 +76862,7 @@ ${lanes.join("\n")} return createTupleType(elementTypes, elementFlags, type.target.readonly); } function widenTypeInferredFromInitializer(declaration, type) { - const widened = getCombinedNodeFlags(declaration) & 2 /* Const */ || isDeclarationReadonly(declaration) ? type : getWidenedLiteralType(type); + const widened = getCombinedNodeFlagsCached(declaration) & 6 /* Constant */ || isDeclarationReadonly(declaration) ? type : getWidenedLiteralType(type); if (isInJSFile(declaration)) { if (isEmptyLiteralType(widened)) { reportImplicitAny(declaration, anyType); @@ -76395,14 +76906,14 @@ ${lanes.join("\n")} )); } function checkPropertyAssignment(node, checkMode) { - if (node.name.kind === 166 /* ComputedPropertyName */) { + if (node.name.kind === 167 /* ComputedPropertyName */) { checkComputedPropertyName(node.name); } return checkExpressionForMutableLocation(node.initializer, checkMode); } function checkObjectLiteralMethod(node, checkMode) { checkGrammarMethod(node); - if (node.name.kind === 166 /* ComputedPropertyName */) { + if (node.name.kind === 167 /* ComputedPropertyName */) { checkComputedPropertyName(node.name); } const uninstantiatedType = checkFunctionExpressionOrObjectLiteralMethod(node, checkMode); @@ -76558,18 +77069,18 @@ ${lanes.join("\n")} if (quickType) { return quickType; } - if (node.flags & 134217728 /* TypeCached */ && flowTypeCache) { + if (node.flags & 268435456 /* TypeCached */ && flowTypeCache) { const cachedType = flowTypeCache[getNodeId(node)]; if (cachedType) { return cachedType; } } const startInvocationCount = flowInvocationCount; - const type = checkExpression(node); + const type = checkExpression(node, 128 /* TypeOnly */); if (flowInvocationCount !== startInvocationCount) { const cache = flowTypeCache || (flowTypeCache = []); cache[getNodeId(node)] = type; - setNodeFlags(node, node.flags | 134217728 /* TypeCached */); + setNodeFlags(node, node.flags | 268435456 /* TypeCached */); } return type; } @@ -76634,15 +77145,15 @@ ${lanes.join("\n")} return type; } function checkConstEnumAccess(node, type) { - const ok = node.parent.kind === 210 /* PropertyAccessExpression */ && node.parent.expression === node || node.parent.kind === 211 /* ElementAccessExpression */ && node.parent.expression === node || ((node.kind === 80 /* Identifier */ || node.kind === 165 /* QualifiedName */) && isInRightSideOfImportOrExportAssignment(node) || node.parent.kind === 185 /* TypeQuery */ && node.parent.exprName === node) || node.parent.kind === 280 /* ExportSpecifier */; + const ok = node.parent.kind === 211 /* PropertyAccessExpression */ && node.parent.expression === node || node.parent.kind === 212 /* ElementAccessExpression */ && node.parent.expression === node || ((node.kind === 80 /* Identifier */ || node.kind === 166 /* QualifiedName */) && isInRightSideOfImportOrExportAssignment(node) || node.parent.kind === 186 /* TypeQuery */ && node.parent.exprName === node) || node.parent.kind === 281 /* ExportSpecifier */; if (!ok) { - error(node, Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query); + error2(node, Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query); } if (getIsolatedModules(compilerOptions)) { Debug.assert(!!(type.symbol.flags & 128 /* ConstEnum */)); const constEnumDeclaration = type.symbol.valueDeclaration; - if (constEnumDeclaration.flags & 16777216 /* Ambient */) { - error(node, Diagnostics.Cannot_access_ambient_const_enums_when_0_is_enabled, isolatedModulesLikeFlagName); + if (constEnumDeclaration.flags & 33554432 /* Ambient */ && !isValidTypeOnlyAliasUseSite(node)) { + error2(node, Diagnostics.Cannot_access_ambient_const_enums_when_0_is_enabled, isolatedModulesLikeFlagName); } } } @@ -76661,9 +77172,9 @@ ${lanes.join("\n")} const kind = node.kind; if (cancellationToken) { switch (kind) { - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: cancellationToken.throwIfCancellationRequested(); } } @@ -76680,7 +77191,7 @@ ${lanes.join("\n")} return nullWideningType; case 15 /* NoSubstitutionTemplateLiteral */: case 11 /* StringLiteral */: - return hasSkipDirectInferenceFlag(node) ? anyType : getFreshTypeOfLiteralType(getStringLiteralType(node.text)); + return hasSkipDirectInferenceFlag(node) ? wildcardType : getFreshTypeOfLiteralType(getStringLiteralType(node.text)); case 9 /* NumericLiteral */: checkGrammarNumericLiteral(node); return getFreshTypeOfLiteralType(getNumberLiteralType(+node.text)); @@ -76694,81 +77205,81 @@ ${lanes.join("\n")} return trueType; case 97 /* FalseKeyword */: return falseType; - case 227 /* TemplateExpression */: + case 228 /* TemplateExpression */: return checkTemplateExpression(node); case 14 /* RegularExpressionLiteral */: return globalRegExpType; - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return checkArrayLiteral(node, checkMode, forceTuple); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return checkObjectLiteral(node, checkMode); - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return checkPropertyAccessExpression(node, checkMode); - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: return checkQualifiedName(node, checkMode); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return checkIndexedAccess(node, checkMode); - case 212 /* CallExpression */: + case 213 /* CallExpression */: if (node.expression.kind === 102 /* ImportKeyword */) { return checkImportCallExpression(node); } - case 213 /* NewExpression */: + case 214 /* NewExpression */: return checkCallExpression(node, checkMode); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return checkTaggedTemplateExpression(node); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return checkParenthesizedExpression(node, checkMode); - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return checkClassExpression(node); - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return checkFunctionExpressionOrObjectLiteralMethod(node, checkMode); - case 220 /* TypeOfExpression */: + case 221 /* TypeOfExpression */: return checkTypeOfExpression(node); - case 215 /* TypeAssertionExpression */: - case 233 /* AsExpression */: + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: return checkAssertion(node, checkMode); - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: return checkNonNullAssertion(node); - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return checkExpressionWithTypeArguments(node); - case 237 /* SatisfiesExpression */: + case 238 /* SatisfiesExpression */: return checkSatisfiesExpression(node); - case 235 /* MetaProperty */: + case 236 /* MetaProperty */: return checkMetaProperty(node); - case 219 /* DeleteExpression */: + case 220 /* DeleteExpression */: return checkDeleteExpression(node); - case 221 /* VoidExpression */: + case 222 /* VoidExpression */: return checkVoidExpression(node); - case 222 /* AwaitExpression */: + case 223 /* AwaitExpression */: return checkAwaitExpression(node); - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: return checkPrefixUnaryExpression(node); - case 224 /* PostfixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return checkPostfixUnaryExpression(node); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return checkBinaryExpression(node, checkMode); - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: return checkConditionalExpression(node, checkMode); - case 229 /* SpreadElement */: + case 230 /* SpreadElement */: return checkSpreadExpression(node, checkMode); - case 231 /* OmittedExpression */: + case 232 /* OmittedExpression */: return undefinedWideningType; - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: return checkYieldExpression(node); - case 236 /* SyntheticExpression */: + case 237 /* SyntheticExpression */: return checkSyntheticExpression(node); - case 293 /* JsxExpression */: + case 294 /* JsxExpression */: return checkJsxExpression(node, checkMode); - case 283 /* JsxElement */: + case 284 /* JsxElement */: return checkJsxElement(node, checkMode); - case 284 /* JsxSelfClosingElement */: + case 285 /* JsxSelfClosingElement */: return checkJsxSelfClosingElement(node, checkMode); - case 287 /* JsxFragment */: + case 288 /* JsxFragment */: return checkJsxFragment(node); - case 291 /* JsxAttributes */: + case 292 /* JsxAttributes */: return checkJsxAttributes(node, checkMode); - case 285 /* JsxOpeningElement */: + case 286 /* JsxOpeningElement */: Debug.fail("Shouldn't ever directly check a JsxOpeningElement"); } return errorType; @@ -76783,7 +77294,7 @@ ${lanes.join("\n")} const typeParameter = getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(node)); getBaseConstraintOfType(typeParameter); if (!hasNonCircularTypeParameterDefault(typeParameter)) { - error(node.default, Diagnostics.Type_parameter_0_has_a_circular_default, typeToString(typeParameter)); + error2(node.default, Diagnostics.Type_parameter_0_has_a_circular_default, typeToString(typeParameter)); } const constraintType = getConstraintOfTypeParameter(typeParameter); const defaultType = getDefaultFromTypeParameter(typeParameter); @@ -76801,7 +77312,7 @@ ${lanes.join("\n")} if (modifiers) { const symbol = getSymbolOfDeclaration(node.parent); if (isTypeAliasDeclaration(node.parent) && !(getObjectFlags(getDeclaredTypeOfSymbol(symbol)) & (16 /* Anonymous */ | 32 /* Mapped */))) { - error(node, Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types); + error2(node, Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types); } else if (modifiers === 32768 /* In */ || modifiers === 65536 /* Out */) { (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.CheckTypes, "checkTypeParameterDeferred", { parent: getTypeId(getDeclaredTypeOfSymbol(symbol)), id: getTypeId(typeParameter) }); const source = createMarkerType(symbol, typeParameter, modifiers === 65536 /* Out */ ? markerSubTypeForCheck : markerSuperTypeForCheck); @@ -76820,38 +77331,38 @@ ${lanes.join("\n")} checkVariableLikeDeclaration(node); const func = getContainingFunction(node); if (hasSyntacticModifier(node, 16476 /* ParameterPropertyModifier */)) { - if (!(func.kind === 175 /* Constructor */ && nodeIsPresent(func.body))) { - error(node, Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation); + if (!(func.kind === 176 /* Constructor */ && nodeIsPresent(func.body))) { + error2(node, Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation); } - if (func.kind === 175 /* Constructor */ && isIdentifier(node.name) && node.name.escapedText === "constructor") { - error(node.name, Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name); + if (func.kind === 176 /* Constructor */ && isIdentifier(node.name) && node.name.escapedText === "constructor") { + error2(node.name, Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name); } } if (!node.initializer && isOptionalDeclaration(node) && isBindingPattern(node.name) && func.body) { - error(node, Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature); + error2(node, Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature); } if (node.name && isIdentifier(node.name) && (node.name.escapedText === "this" || node.name.escapedText === "new")) { if (func.parameters.indexOf(node) !== 0) { - error(node, Diagnostics.A_0_parameter_must_be_the_first_parameter, node.name.escapedText); + error2(node, Diagnostics.A_0_parameter_must_be_the_first_parameter, node.name.escapedText); } - if (func.kind === 175 /* Constructor */ || func.kind === 179 /* ConstructSignature */ || func.kind === 184 /* ConstructorType */) { - error(node, Diagnostics.A_constructor_cannot_have_a_this_parameter); + if (func.kind === 176 /* Constructor */ || func.kind === 180 /* ConstructSignature */ || func.kind === 185 /* ConstructorType */) { + error2(node, Diagnostics.A_constructor_cannot_have_a_this_parameter); } - if (func.kind === 218 /* ArrowFunction */) { - error(node, Diagnostics.An_arrow_function_cannot_have_a_this_parameter); + if (func.kind === 219 /* ArrowFunction */) { + error2(node, Diagnostics.An_arrow_function_cannot_have_a_this_parameter); } - if (func.kind === 176 /* GetAccessor */ || func.kind === 177 /* SetAccessor */) { - error(node, Diagnostics.get_and_set_accessors_cannot_declare_this_parameters); + if (func.kind === 177 /* GetAccessor */ || func.kind === 178 /* SetAccessor */) { + error2(node, Diagnostics.get_and_set_accessors_cannot_declare_this_parameters); } } if (node.dotDotDotToken && !isBindingPattern(node.name) && !isTypeAssignableTo(getReducedType(getTypeOfSymbol(node.symbol)), anyReadonlyArrayType)) { - error(node, Diagnostics.A_rest_parameter_must_be_of_an_array_type); + error2(node, Diagnostics.A_rest_parameter_must_be_of_an_array_type); } } function checkTypePredicate(node) { const parent2 = getTypePredicateParent(node); if (!parent2) { - error(node, Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods); + error2(node, Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods); return; } const signature = getSignatureFromDeclaration(parent2); @@ -76866,7 +77377,7 @@ ${lanes.join("\n")} } else { if (typePredicate.parameterIndex >= 0) { if (signatureHasRestParameter(signature) && typePredicate.parameterIndex === signature.parameters.length - 1) { - error(parameterName, Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter); + error2(parameterName, Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter); } else { if (typePredicate.type) { const leadingError = () => chainDiagnosticMessages( @@ -76893,20 +77404,20 @@ ${lanes.join("\n")} } } if (!hasReportedError) { - error(node.parameterName, Diagnostics.Cannot_find_parameter_0, typePredicate.parameterName); + error2(node.parameterName, Diagnostics.Cannot_find_parameter_0, typePredicate.parameterName); } } } } function getTypePredicateParent(node) { switch (node.parent.kind) { - case 218 /* ArrowFunction */: - case 178 /* CallSignature */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 183 /* FunctionType */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 219 /* ArrowFunction */: + case 179 /* CallSignature */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 184 /* FunctionType */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: const parent2 = node.parent; if (node === parent2.type) { return parent2; @@ -76920,13 +77431,13 @@ ${lanes.join("\n")} } const name = element.name; if (name.kind === 80 /* Identifier */ && name.escapedText === predicateVariableName) { - error( + error2( predicateVariableNode, Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern, predicateVariableName ); return true; - } else if (name.kind === 206 /* ArrayBindingPattern */ || name.kind === 205 /* ObjectBindingPattern */) { + } else if (name.kind === 207 /* ArrayBindingPattern */ || name.kind === 206 /* ObjectBindingPattern */) { if (checkIfTypePredicateVariableIsDeclaredInBindingPattern( name, predicateVariableNode, @@ -76938,9 +77449,9 @@ ${lanes.join("\n")} } } function checkSignatureDeclaration(node) { - if (node.kind === 180 /* IndexSignature */) { + if (node.kind === 181 /* IndexSignature */) { checkGrammarIndexSignature(node); - } else if (node.kind === 183 /* FunctionType */ || node.kind === 261 /* FunctionDeclaration */ || node.kind === 184 /* ConstructorType */ || node.kind === 178 /* CallSignature */ || node.kind === 175 /* Constructor */ || node.kind === 179 /* ConstructSignature */) { + } else if (node.kind === 184 /* FunctionType */ || node.kind === 262 /* FunctionDeclaration */ || node.kind === 185 /* ConstructorType */ || node.kind === 179 /* CallSignature */ || node.kind === 176 /* Constructor */ || node.kind === 180 /* ConstructSignature */) { checkGrammarFunctionLikeDeclaration(node); } const functionFlags = getFunctionFlags(node); @@ -76964,35 +77475,46 @@ ${lanes.join("\n")} addLazyDiagnostic(checkSignatureDeclarationDiagnostics); function checkSignatureDeclarationDiagnostics() { checkCollisionWithArgumentsInGeneratedCode(node); - const returnTypeNode = getEffectiveReturnTypeNode(node); + let returnTypeNode = getEffectiveReturnTypeNode(node); + let returnTypeErrorLocation = returnTypeNode; + if (isInJSFile(node)) { + const typeTag = getJSDocTypeTag(node); + if (typeTag && typeTag.typeExpression && isTypeReferenceNode(typeTag.typeExpression.type)) { + const signature = getSingleCallSignature(getTypeFromTypeNode(typeTag.typeExpression)); + if (signature && signature.declaration) { + returnTypeNode = getEffectiveReturnTypeNode(signature.declaration); + returnTypeErrorLocation = typeTag.typeExpression.type; + } + } + } if (noImplicitAny && !returnTypeNode) { switch (node.kind) { - case 179 /* ConstructSignature */: - error(node, Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type); + case 180 /* ConstructSignature */: + error2(node, Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type); break; - case 178 /* CallSignature */: - error(node, Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type); + case 179 /* CallSignature */: + error2(node, Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type); break; } } - if (returnTypeNode) { + if (returnTypeNode && returnTypeErrorLocation) { const functionFlags2 = getFunctionFlags(node); if ((functionFlags2 & (4 /* Invalid */ | 1 /* Generator */)) === 1 /* Generator */) { const returnType = getTypeFromTypeNode(returnTypeNode); if (returnType === voidType) { - error(returnTypeNode, Diagnostics.A_generator_cannot_have_a_void_type_annotation); + error2(returnTypeErrorLocation, Diagnostics.A_generator_cannot_have_a_void_type_annotation); } else { const generatorYieldType = getIterationTypeOfGeneratorFunctionReturnType(0 /* Yield */, returnType, (functionFlags2 & 2 /* Async */) !== 0) || anyType; const generatorReturnType = getIterationTypeOfGeneratorFunctionReturnType(1 /* Return */, returnType, (functionFlags2 & 2 /* Async */) !== 0) || generatorYieldType; const generatorNextType = getIterationTypeOfGeneratorFunctionReturnType(2 /* Next */, returnType, (functionFlags2 & 2 /* Async */) !== 0) || unknownType; const generatorInstantiation = createGeneratorReturnType(generatorYieldType, generatorReturnType, generatorNextType, !!(functionFlags2 & 2 /* Async */)); - checkTypeAssignableTo(generatorInstantiation, returnType, returnTypeNode); + checkTypeAssignableTo(generatorInstantiation, returnType, returnTypeErrorLocation); } } else if ((functionFlags2 & 3 /* AsyncGenerator */) === 2 /* Async */) { - checkAsyncFunctionReturnType(node, returnTypeNode); + checkAsyncFunctionReturnType(node, returnTypeNode, returnTypeErrorLocation); } } - if (node.kind !== 180 /* IndexSignature */ && node.kind !== 323 /* JSDocFunctionType */) { + if (node.kind !== 181 /* IndexSignature */ && node.kind !== 324 /* JSDocFunctionType */) { registerForUnusedIdentifiersCheck(node); } } @@ -77002,7 +77524,7 @@ ${lanes.join("\n")} const staticNames = /* @__PURE__ */ new Map(); const privateIdentifiers = /* @__PURE__ */ new Map(); for (const member of node.members) { - if (member.kind === 175 /* Constructor */) { + if (member.kind === 176 /* Constructor */) { for (const param of member.parameters) { if (isParameterPropertyDeclaration(param, member) && !isBindingPattern(param.name)) { addName(instanceNames, param.name, param.name.escapedText, 3 /* GetOrSetAccessor */); @@ -77020,16 +77542,16 @@ ${lanes.join("\n")} const memberName = name && getPropertyNameForPropertyNameNode(name); if (memberName) { switch (member.kind) { - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: addName(names, name, memberName, 1 /* GetAccessor */ | privateStaticFlags); break; - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: addName(names, name, memberName, 2 /* SetAccessor */ | privateStaticFlags); break; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: addName(names, name, memberName, 3 /* GetOrSetAccessor */ | privateStaticFlags); break; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: addName(names, name, memberName, 8 /* Method */ | privateStaticFlags); break; } @@ -77040,16 +77562,16 @@ ${lanes.join("\n")} const prev = names.get(name); if (prev) { if ((prev & 16 /* PrivateStatic */) !== (meaning & 16 /* PrivateStatic */)) { - error(location, Diagnostics.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name, getTextOfNode(location)); + error2(location, Diagnostics.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name, getTextOfNode(location)); } else { const prevIsMethod = !!(prev & 8 /* Method */); const isMethod = !!(meaning & 8 /* Method */); if (prevIsMethod || isMethod) { if (prevIsMethod !== isMethod) { - error(location, Diagnostics.Duplicate_identifier_0, getTextOfNode(location)); + error2(location, Diagnostics.Duplicate_identifier_0, getTextOfNode(location)); } } else if (prev & meaning & ~16 /* PrivateStatic */) { - error(location, Diagnostics.Duplicate_identifier_0, getTextOfNode(location)); + error2(location, Diagnostics.Duplicate_identifier_0, getTextOfNode(location)); } else { names.set(name, prev | meaning); } @@ -77070,10 +77592,13 @@ ${lanes.join("\n")} case "length": case "caller": case "arguments": + if (useDefineForClassFields) { + break; + } case "prototype": const message = Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1; const className = getNameOfSymbolAsWritten(getSymbolOfDeclaration(node)); - error(memberNameNode, message, memberName, className); + error2(memberNameNode, message, memberName, className); break; } } @@ -77082,7 +77607,7 @@ ${lanes.join("\n")} function checkObjectTypeForDuplicateDeclarations(node) { const names = /* @__PURE__ */ new Map(); for (const member of node.members) { - if (member.kind === 170 /* PropertySignature */) { + if (member.kind === 171 /* PropertySignature */) { let memberName; const name = member.name; switch (name.kind) { @@ -77097,8 +77622,8 @@ ${lanes.join("\n")} continue; } if (names.get(memberName)) { - error(getNameOfDeclaration(member.symbol.valueDeclaration), Diagnostics.Duplicate_identifier_0, memberName); - error(member.name, Diagnostics.Duplicate_identifier_0, memberName); + error2(getNameOfDeclaration(member.symbol.valueDeclaration), Diagnostics.Duplicate_identifier_0, memberName); + error2(member.name, Diagnostics.Duplicate_identifier_0, memberName); } else { names.set(memberName, true); } @@ -77106,7 +77631,7 @@ ${lanes.join("\n")} } } function checkTypeForDuplicateIndexSignatures(node) { - if (node.kind === 263 /* InterfaceDeclaration */) { + if (node.kind === 264 /* InterfaceDeclaration */) { const nodeSymbol = getSymbolOfDeclaration(node); if (nodeSymbol.declarations && nodeSymbol.declarations.length > 0 && nodeSymbol.declarations[0] !== node) { return; @@ -77130,7 +77655,7 @@ ${lanes.join("\n")} indexSignatureMap.forEach((entry) => { if (entry.declarations.length > 1) { for (const declaration of entry.declarations) { - error(declaration, Diagnostics.Duplicate_index_signature_for_type_0, typeToString(entry.type)); + error2(declaration, Diagnostics.Duplicate_index_signature_for_type_0, typeToString(entry.type)); } } }); @@ -77141,13 +77666,13 @@ ${lanes.join("\n")} checkGrammarComputedPropertyName(node.name); checkVariableLikeDeclaration(node); setNodeLinksForPrivateIdentifierScope(node); - if (hasSyntacticModifier(node, 256 /* Abstract */) && node.kind === 171 /* PropertyDeclaration */ && node.initializer) { - error(node, Diagnostics.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract, declarationNameToString(node.name)); + if (hasSyntacticModifier(node, 256 /* Abstract */) && node.kind === 172 /* PropertyDeclaration */ && node.initializer) { + error2(node, Diagnostics.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract, declarationNameToString(node.name)); } } function checkPropertySignature(node) { if (isPrivateIdentifier(node.name)) { - error(node, Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies); + error2(node, Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies); } return checkPropertyDeclaration(node); } @@ -77155,21 +77680,21 @@ ${lanes.join("\n")} if (!checkGrammarMethod(node)) checkGrammarComputedPropertyName(node.name); if (isMethodDeclaration(node) && node.asteriskToken && isIdentifier(node.name) && idText(node.name) === "constructor") { - error(node.name, Diagnostics.Class_constructor_may_not_be_a_generator); + error2(node.name, Diagnostics.Class_constructor_may_not_be_a_generator); } checkFunctionOrMethodDeclaration(node); - if (hasSyntacticModifier(node, 256 /* Abstract */) && node.kind === 173 /* MethodDeclaration */ && node.body) { - error(node, Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract, declarationNameToString(node.name)); + if (hasSyntacticModifier(node, 256 /* Abstract */) && node.kind === 174 /* MethodDeclaration */ && node.body) { + error2(node, Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract, declarationNameToString(node.name)); } if (isPrivateIdentifier(node.name) && !getContainingClass(node)) { - error(node, Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies); + error2(node, Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies); } setNodeLinksForPrivateIdentifierScope(node); } function setNodeLinksForPrivateIdentifierScope(node) { if (isPrivateIdentifier(node.name) && languageVersion < 99 /* ESNext */) { for (let lexicalScope = getEnclosingBlockScopeContainer(node); !!lexicalScope; lexicalScope = getEnclosingBlockScopeContainer(lexicalScope)) { - getNodeLinks(lexicalScope).flags |= 4194304 /* ContainsClassWithPrivateIdentifiers */; + getNodeLinks(lexicalScope).flags |= 1048576 /* ContainsClassWithPrivateIdentifiers */; } if (isClassExpression(node.parent)) { const enclosingIterationStatement = getEnclosingIterationStatement(node.parent); @@ -77203,7 +77728,7 @@ ${lanes.join("\n")} if (isPrivateIdentifierClassElementDeclaration(n)) { return true; } - return n.kind === 171 /* PropertyDeclaration */ && !isStatic(n) && !!n.initializer; + return n.kind === 172 /* PropertyDeclaration */ && !isStatic(n) && !!n.initializer; } function checkConstructorDeclarationDiagnostics() { const containingClassDecl = node.parent; @@ -77213,12 +77738,12 @@ ${lanes.join("\n")} const superCall = findFirstSuperCall(node.body); if (superCall) { if (classExtendsNull) { - error(superCall, Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null); + error2(superCall, Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null); } - const superCallShouldBeRootLevel = (getEmitScriptTarget(compilerOptions) !== 99 /* ESNext */ || !useDefineForClassFields) && (some(node.parent.members, isInstancePropertyWithInitializerOrPrivateIdentifierProperty) || some(node.parameters, (p) => hasSyntacticModifier(p, 16476 /* ParameterPropertyModifier */))); + const superCallShouldBeRootLevel = !emitStandardClassFields && (some(node.parent.members, isInstancePropertyWithInitializerOrPrivateIdentifierProperty) || some(node.parameters, (p) => hasSyntacticModifier(p, 16476 /* ParameterPropertyModifier */))); if (superCallShouldBeRootLevel) { if (!superCallIsRootLevelInConstructor(superCall, node.body)) { - error(superCall, Diagnostics.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers); + error2(superCall, Diagnostics.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers); } else { let superCallStatement; for (const statement of node.body.statements) { @@ -77231,12 +77756,12 @@ ${lanes.join("\n")} } } if (superCallStatement === void 0) { - error(node, Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers); + error2(node, Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers); } } } } else if (!classExtendsNull) { - error(node, Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call); + error2(node, Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call); } } } @@ -77256,7 +77781,7 @@ ${lanes.join("\n")} } function checkAccessorDeclaration(node) { if (isIdentifier(node.name) && idText(node.name) === "constructor" && isClassLike(node.parent)) { - error(node.name, Diagnostics.Class_constructor_may_not_be_an_accessor); + error2(node.name, Diagnostics.Class_constructor_may_not_be_an_accessor); } addLazyDiagnostic(checkAccessorDeclarationDiagnostics); checkSourceElement(node.body); @@ -77266,36 +77791,36 @@ ${lanes.join("\n")} checkGrammarComputedPropertyName(node.name); checkDecorators(node); checkSignatureDeclaration(node); - if (node.kind === 176 /* GetAccessor */) { - if (!(node.flags & 16777216 /* Ambient */) && nodeIsPresent(node.body) && node.flags & 256 /* HasImplicitReturn */) { - if (!(node.flags & 512 /* HasExplicitReturn */)) { - error(node.name, Diagnostics.A_get_accessor_must_return_a_value); + if (node.kind === 177 /* GetAccessor */) { + if (!(node.flags & 33554432 /* Ambient */) && nodeIsPresent(node.body) && node.flags & 512 /* HasImplicitReturn */) { + if (!(node.flags & 1024 /* HasExplicitReturn */)) { + error2(node.name, Diagnostics.A_get_accessor_must_return_a_value); } } } - if (node.name.kind === 166 /* ComputedPropertyName */) { + if (node.name.kind === 167 /* ComputedPropertyName */) { checkComputedPropertyName(node.name); } if (hasBindableName(node)) { const symbol = getSymbolOfDeclaration(node); - const getter = getDeclarationOfKind(symbol, 176 /* GetAccessor */); - const setter = getDeclarationOfKind(symbol, 177 /* SetAccessor */); + const getter = getDeclarationOfKind(symbol, 177 /* GetAccessor */); + const setter = getDeclarationOfKind(symbol, 178 /* SetAccessor */); if (getter && setter && !(getNodeCheckFlags(getter) & 1 /* TypeChecked */)) { getNodeLinks(getter).flags |= 1 /* TypeChecked */; const getterFlags = getEffectiveModifierFlags(getter); const setterFlags = getEffectiveModifierFlags(setter); if ((getterFlags & 256 /* Abstract */) !== (setterFlags & 256 /* Abstract */)) { - error(getter.name, Diagnostics.Accessors_must_both_be_abstract_or_non_abstract); - error(setter.name, Diagnostics.Accessors_must_both_be_abstract_or_non_abstract); + error2(getter.name, Diagnostics.Accessors_must_both_be_abstract_or_non_abstract); + error2(setter.name, Diagnostics.Accessors_must_both_be_abstract_or_non_abstract); } if (getterFlags & 16 /* Protected */ && !(setterFlags & (16 /* Protected */ | 8 /* Private */)) || getterFlags & 8 /* Private */ && !(setterFlags & 8 /* Private */)) { - error(getter.name, Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter); - error(setter.name, Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter); + error2(getter.name, Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter); + error2(setter.name, Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter); } } } const returnType = getTypeOfAccessors(getSymbolOfDeclaration(node)); - if (node.kind === 176 /* GetAccessor */) { + if (node.kind === 177 /* GetAccessor */) { checkAllCodePathsInNonVoidFunctionReturnOrThrow(node, returnType); } } @@ -77356,7 +77881,7 @@ ${lanes.join("\n")} } function checkTypeReferenceNode(node) { checkGrammarTypeArguments(node, node.typeArguments); - if (node.kind === 182 /* TypeReference */ && !isInJSFile(node) && !isInJSDoc(node) && node.typeArguments && node.typeName.end !== node.typeArguments.pos) { + if (node.kind === 183 /* TypeReference */ && !isInJSFile(node) && !isInJSDoc(node) && node.typeArguments && node.typeName.end !== node.typeArguments.pos) { const sourceFile = getSourceFileOfNode(node); if (scanTokenAtPosition(sourceFile, node.typeName.end) === 25 /* DotToken */) { grammarErrorAtPos(node, skipTrivia(sourceFile.text, node.typeName.end), 1, Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments); @@ -77378,7 +77903,7 @@ ${lanes.join("\n")} } const symbol = getNodeLinks(node).resolvedSymbol; if (symbol) { - if (some(symbol.declarations, (d) => isTypeDeclaration(d) && !!(d.flags & 268435456 /* Deprecated */))) { + if (some(symbol.declarations, (d) => isTypeDeclaration(d) && !!(d.flags & 536870912 /* Deprecated */))) { addDeprecatedSuggestion( getDeprecatedSuggestionNode(node), symbol.declarations, @@ -77418,17 +77943,12 @@ ${lanes.join("\n")} const elementTypes = node.elements; let seenOptionalElement = false; let seenRestElement = false; - const hasNamedElement = some(elementTypes, isNamedTupleMember); for (const e of elementTypes) { - if (e.kind !== 201 /* NamedTupleMember */ && hasNamedElement) { - grammarErrorOnNode(e, Diagnostics.Tuple_members_must_all_have_names_or_all_not_have_names); - break; - } const flags = getTupleElementFlags(e); if (flags & 8 /* Variadic */) { const type = getTypeFromTypeNode(e.type); if (!isArrayLikeType(type)) { - error(e, Diagnostics.A_rest_element_type_must_be_an_array_type); + error2(e, Diagnostics.A_rest_element_type_must_be_an_array_type); break; } if (isArrayType(type) || isTupleType(type) && type.target.combinedFlags & 4 /* Rest */) { @@ -77465,8 +77985,8 @@ ${lanes.join("\n")} const objectType = type.objectType; const indexType = type.indexType; if (isTypeAssignableTo(indexType, getIndexType(objectType, 0 /* None */))) { - if (accessNode.kind === 211 /* ElementAccessExpression */ && isAssignmentTarget(accessNode) && getObjectFlags(objectType) & 32 /* Mapped */ && getMappedTypeModifiers(objectType) & 1 /* IncludeReadonly */) { - error(accessNode, Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(objectType)); + if (accessNode.kind === 212 /* ElementAccessExpression */ && isAssignmentTarget(accessNode) && getObjectFlags(objectType) & 32 /* Mapped */ && getMappedTypeModifiers(objectType) & 1 /* IncludeReadonly */) { + error2(accessNode, Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(objectType)); } return type; } @@ -77479,12 +77999,12 @@ ${lanes.join("\n")} if (propertyName) { const propertySymbol = forEachType(apparentObjectType, (t) => getPropertyOfType(t, propertyName)); if (propertySymbol && getDeclarationModifierFlagsFromSymbol(propertySymbol) & 24 /* NonPublicAccessibilityModifier */) { - error(accessNode, Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter, unescapeLeadingUnderscores(propertyName)); + error2(accessNode, Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter, unescapeLeadingUnderscores(propertyName)); return errorType; } } } - error(accessNode, Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), typeToString(objectType)); + error2(accessNode, Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), typeToString(objectType)); return errorType; } function checkIndexedAccessType(node) { @@ -77526,7 +78046,7 @@ ${lanes.join("\n")} forEachChild(node, checkSourceElement); } function checkInferType(node) { - if (!findAncestor(node, (n) => n.parent && n.parent.kind === 193 /* ConditionalType */ && n.parent.extendsType === n)) { + if (!findAncestor(node, (n) => n.parent && n.parent.kind === 194 /* ConditionalType */ && n.parent.extendsType === n)) { grammarErrorOnNode(node, Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type); } checkSourceElement(node.typeParameter); @@ -77536,11 +78056,11 @@ ${lanes.join("\n")} if (!links.typeParametersChecked) { links.typeParametersChecked = true; const typeParameter = getDeclaredTypeOfTypeParameter(symbol); - const declarations = getDeclarationsOfKind(symbol, 167 /* TypeParameter */); + const declarations = getDeclarationsOfKind(symbol, 168 /* TypeParameter */); if (!areTypeParametersIdentical(declarations, [typeParameter], (decl) => [decl])) { const name = symbolToString(symbol); for (const declaration of declarations) { - error(declaration.name, Diagnostics.All_declarations_of_0_must_have_identical_constraints, name); + error2(declaration.name, Diagnostics.All_declarations_of_0_must_have_identical_constraints, name); } } } @@ -77574,22 +78094,23 @@ ${lanes.join("\n")} if (node.dotDotDotToken && node.questionToken) { grammarErrorOnNode(node, Diagnostics.A_tuple_member_cannot_be_both_optional_and_rest); } - if (node.type.kind === 189 /* OptionalType */) { + if (node.type.kind === 190 /* OptionalType */) { grammarErrorOnNode(node.type, Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type); } - if (node.type.kind === 190 /* RestType */) { + if (node.type.kind === 191 /* RestType */) { grammarErrorOnNode(node.type, Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type); } checkSourceElement(node.type); getTypeFromTypeNode(node); } function isPrivateWithinAmbient(node) { - return (hasEffectiveModifier(node, 8 /* Private */) || isPrivateIdentifierClassElementDeclaration(node)) && !!(node.flags & 16777216 /* Ambient */); + return (hasEffectiveModifier(node, 8 /* Private */) || isPrivateIdentifierClassElementDeclaration(node)) && !!(node.flags & 33554432 /* Ambient */); } function getEffectiveDeclarationFlags(n, flagsToCheck) { - let flags = getCombinedModifierFlags(n); - if (n.parent.kind !== 263 /* InterfaceDeclaration */ && n.parent.kind !== 262 /* ClassDeclaration */ && n.parent.kind !== 230 /* ClassExpression */ && n.flags & 16777216 /* Ambient */) { - if (!(flags & 2 /* Ambient */) && !(isModuleBlock(n.parent) && isModuleDeclaration(n.parent.parent) && isGlobalScopeAugmentation(n.parent.parent))) { + let flags = getCombinedModifierFlagsCached(n); + if (n.parent.kind !== 264 /* InterfaceDeclaration */ && n.parent.kind !== 263 /* ClassDeclaration */ && n.parent.kind !== 231 /* ClassExpression */ && n.flags & 33554432 /* Ambient */) { + const container = getEnclosingContainer(n); + if (container && container.flags & 128 /* ExportContext */ && !(flags & 2 /* Ambient */) && !(isModuleBlock(n.parent) && isModuleDeclaration(n.parent.parent) && isGlobalScopeAugmentation(n.parent.parent))) { flags |= 1 /* Export */; } flags |= 2 /* Ambient */; @@ -77611,13 +78132,13 @@ ${lanes.join("\n")} forEach(overloads, (o) => { const deviation = getEffectiveDeclarationFlags(o, flagsToCheck2) ^ canonicalFlags; if (deviation & 1 /* Export */) { - error(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported); + error2(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported); } else if (deviation & 2 /* Ambient */) { - error(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient); + error2(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient); } else if (deviation & (8 /* Private */ | 16 /* Protected */)) { - error(getNameOfDeclaration(o) || o, Diagnostics.Overload_signatures_must_all_be_public_private_or_protected); + error2(getNameOfDeclaration(o) || o, Diagnostics.Overload_signatures_must_all_be_public_private_or_protected); } else if (deviation & 256 /* Abstract */) { - error(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract); + error2(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract); } }); } @@ -77628,7 +78149,7 @@ ${lanes.join("\n")} forEach(overloads, (o) => { const deviation = hasQuestionToken(o) !== canonicalHasQuestionToken; if (deviation) { - error(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_optional_or_required); + error2(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_optional_or_required); } }); } @@ -77664,27 +78185,27 @@ ${lanes.join("\n")} (isPrivateIdentifier(node.name) && isPrivateIdentifier(subsequentName) && node.name.escapedText === subsequentName.escapedText || // Both are computed property names isComputedPropertyName(node.name) && isComputedPropertyName(subsequentName) && isTypeIdenticalTo(checkComputedPropertyName(node.name), checkComputedPropertyName(subsequentName)) || // Both are literal property names that are the same. isPropertyNameLiteral(node.name) && isPropertyNameLiteral(subsequentName) && getEscapedTextOfIdentifierOrLiteral(node.name) === getEscapedTextOfIdentifierOrLiteral(subsequentName))) { - const reportError = (node.kind === 173 /* MethodDeclaration */ || node.kind === 172 /* MethodSignature */) && isStatic(node) !== isStatic(subsequentNode); + const reportError = (node.kind === 174 /* MethodDeclaration */ || node.kind === 173 /* MethodSignature */) && isStatic(node) !== isStatic(subsequentNode); if (reportError) { const diagnostic = isStatic(node) ? Diagnostics.Function_overload_must_be_static : Diagnostics.Function_overload_must_not_be_static; - error(errorNode2, diagnostic); + error2(errorNode2, diagnostic); } return; } if (nodeIsPresent(subsequentNode.body)) { - error(errorNode2, Diagnostics.Function_implementation_name_must_be_0, declarationNameToString(node.name)); + error2(errorNode2, Diagnostics.Function_implementation_name_must_be_0, declarationNameToString(node.name)); return; } } } const errorNode = node.name || node; if (isConstructor) { - error(errorNode, Diagnostics.Constructor_implementation_is_missing); + error2(errorNode, Diagnostics.Constructor_implementation_is_missing); } else { if (hasSyntacticModifier(node, 256 /* Abstract */)) { - error(errorNode, Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive); + error2(errorNode, Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive); } else { - error(errorNode, Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration); + error2(errorNode, Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration); } } } @@ -77695,15 +78216,15 @@ ${lanes.join("\n")} if (declarations) { for (const current of declarations) { const node = current; - const inAmbientContext = node.flags & 16777216 /* Ambient */; - const inAmbientContextOrInterface = node.parent && (node.parent.kind === 263 /* InterfaceDeclaration */ || node.parent.kind === 186 /* TypeLiteral */) || inAmbientContext; + const inAmbientContext = node.flags & 33554432 /* Ambient */; + const inAmbientContextOrInterface = node.parent && (node.parent.kind === 264 /* InterfaceDeclaration */ || node.parent.kind === 187 /* TypeLiteral */) || inAmbientContext; if (inAmbientContextOrInterface) { previousDeclaration = void 0; } - if ((node.kind === 262 /* ClassDeclaration */ || node.kind === 230 /* ClassExpression */) && !inAmbientContext) { + if ((node.kind === 263 /* ClassDeclaration */ || node.kind === 231 /* ClassExpression */) && !inAmbientContext) { hasNonAmbientClass = true; } - if (node.kind === 261 /* FunctionDeclaration */ || node.kind === 173 /* MethodDeclaration */ || node.kind === 172 /* MethodSignature */ || node.kind === 175 /* Constructor */) { + if (node.kind === 262 /* FunctionDeclaration */ || node.kind === 174 /* MethodDeclaration */ || node.kind === 173 /* MethodSignature */ || node.kind === 176 /* Constructor */) { functionDeclarations.push(node); const currentNodeFlags = getEffectiveDeclarationFlags(node, flagsToCheck); someNodeFlags |= currentNodeFlags; @@ -77747,21 +78268,21 @@ ${lanes.join("\n")} } if (multipleConstructorImplementation) { forEach(functionDeclarations, (declaration) => { - error(declaration, Diagnostics.Multiple_constructor_implementations_are_not_allowed); + error2(declaration, Diagnostics.Multiple_constructor_implementations_are_not_allowed); }); } if (duplicateFunctionDeclaration) { forEach(functionDeclarations, (declaration) => { - error(getNameOfDeclaration(declaration) || declaration, Diagnostics.Duplicate_function_implementation); + error2(getNameOfDeclaration(declaration) || declaration, Diagnostics.Duplicate_function_implementation); }); } if (hasNonAmbientClass && !isConstructor && symbol.flags & 16 /* Function */ && declarations) { - const relatedDiagnostics = filter(declarations, (d) => d.kind === 262 /* ClassDeclaration */).map((d) => createDiagnosticForNode(d, Diagnostics.Consider_adding_a_declare_modifier_to_this_class)); + const relatedDiagnostics = filter(declarations, (d) => d.kind === 263 /* ClassDeclaration */).map((d) => createDiagnosticForNode(d, Diagnostics.Consider_adding_a_declare_modifier_to_this_class)); forEach(declarations, (declaration) => { - const diagnostic = declaration.kind === 262 /* ClassDeclaration */ ? Diagnostics.Class_declaration_cannot_implement_overload_list_for_0 : declaration.kind === 261 /* FunctionDeclaration */ ? Diagnostics.Function_with_bodies_can_only_merge_with_classes_that_are_ambient : void 0; + const diagnostic = declaration.kind === 263 /* ClassDeclaration */ ? Diagnostics.Class_declaration_cannot_implement_overload_list_for_0 : declaration.kind === 262 /* FunctionDeclaration */ ? Diagnostics.Function_with_bodies_can_only_merge_with_classes_that_are_ambient : void 0; if (diagnostic) { addRelatedInfo( - error(getNameOfDeclaration(declaration) || declaration, diagnostic, symbolName(symbol)), + error2(getNameOfDeclaration(declaration) || declaration, diagnostic, symbolName(symbol)), ...relatedDiagnostics ); } @@ -77782,7 +78303,7 @@ ${lanes.join("\n")} if (!isImplementationCompatibleWithOverload(bodySignature, signature)) { const errorNode = signature.declaration && isJSDocSignature(signature.declaration) ? signature.declaration.parent.tagName : signature.declaration; addRelatedInfo( - error(errorNode, Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature), + error2(errorNode, Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature), createDiagnosticForNode(bodyDeclaration, Diagnostics.The_implementation_signature_is_declared_here) ); break; @@ -77829,54 +78350,54 @@ ${lanes.join("\n")} const declarationSpaces = getDeclarationSpaces(d); const name = getNameOfDeclaration(d); if (declarationSpaces & commonDeclarationSpacesForDefaultAndNonDefault) { - error(name, Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead, declarationNameToString(name)); + error2(name, Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead, declarationNameToString(name)); } else if (declarationSpaces & commonDeclarationSpacesForExportsAndLocals) { - error(name, Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local, declarationNameToString(name)); + error2(name, Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local, declarationNameToString(name)); } } } function getDeclarationSpaces(decl) { let d = decl; switch (d.kind) { - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 352 /* JSDocTypedefTag */: - case 344 /* JSDocCallbackTag */: - case 346 /* JSDocEnumTag */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 353 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: + case 347 /* JSDocEnumTag */: return 2 /* ExportType */; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return isAmbientModule(d) || getModuleInstanceState(d) !== 0 /* NonInstantiated */ ? 4 /* ExportNamespace */ | 1 /* ExportValue */ : 4 /* ExportNamespace */; - case 262 /* ClassDeclaration */: - case 265 /* EnumDeclaration */: - case 305 /* EnumMember */: + case 263 /* ClassDeclaration */: + case 266 /* EnumDeclaration */: + case 306 /* EnumMember */: return 2 /* ExportType */ | 1 /* ExportValue */; - case 311 /* SourceFile */: + case 312 /* SourceFile */: return 2 /* ExportType */ | 1 /* ExportValue */ | 4 /* ExportNamespace */; - case 276 /* ExportAssignment */: - case 225 /* BinaryExpression */: + case 277 /* ExportAssignment */: + case 226 /* BinaryExpression */: const node2 = d; const expression = isExportAssignment(node2) ? node2.expression : node2.right; if (!isEntityNameExpression(expression)) { return 1 /* ExportValue */; } d = expression; - case 270 /* ImportEqualsDeclaration */: - case 273 /* NamespaceImport */: - case 272 /* ImportClause */: + case 271 /* ImportEqualsDeclaration */: + case 274 /* NamespaceImport */: + case 273 /* ImportClause */: let result = 0 /* None */; const target = resolveAlias(getSymbolOfDeclaration(d)); forEach(target.declarations, (d2) => { result |= getDeclarationSpaces(d2); }); return result; - case 259 /* VariableDeclaration */: - case 207 /* BindingElement */: - case 261 /* FunctionDeclaration */: - case 275 /* ImportSpecifier */: + case 260 /* VariableDeclaration */: + case 208 /* BindingElement */: + case 262 /* FunctionDeclaration */: + case 276 /* ImportSpecifier */: case 80 /* Identifier */: return 1 /* ExportValue */; - case 172 /* MethodSignature */: - case 170 /* PropertySignature */: + case 173 /* MethodSignature */: + case 171 /* PropertySignature */: return 2 /* ExportType */; default: return Debug.failBadSyntaxKind(d); @@ -77911,7 +78432,7 @@ ${lanes.join("\n")} const thenSignatures = thenFunction ? getSignaturesOfType(thenFunction, 0 /* Call */) : emptyArray; if (thenSignatures.length === 0) { if (errorNode) { - error(errorNode, Diagnostics.A_promise_must_have_a_then_method); + error2(errorNode, Diagnostics.A_promise_must_have_a_then_method); } return void 0; } @@ -77931,7 +78452,7 @@ ${lanes.join("\n")} thisTypeForErrorOut.value = thisTypeForError; } if (errorNode) { - error(errorNode, Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1, typeToString(type), typeToString(thisTypeForError)); + error2(errorNode, Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1, typeToString(type), typeToString(thisTypeForError)); } return void 0; } @@ -77942,7 +78463,7 @@ ${lanes.join("\n")} const onfulfilledParameterSignatures = getSignaturesOfType(onfulfilledParameterType, 0 /* Call */); if (onfulfilledParameterSignatures.length === 0) { if (errorNode) { - error(errorNode, Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback); + error2(errorNode, Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback); } return void 0; } @@ -78023,7 +78544,7 @@ ${lanes.join("\n")} if (type.flags & 1048576 /* Union */) { if (awaitedTypeStack.lastIndexOf(type.id) >= 0) { if (errorNode) { - error(errorNode, Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method); + error2(errorNode, Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method); } return void 0; } @@ -78046,7 +78567,7 @@ ${lanes.join("\n")} if (promisedType) { if (type.id === promisedType.id || awaitedTypeStack.lastIndexOf(promisedType.id) >= 0) { if (errorNode) { - error(errorNode, Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method); + error2(errorNode, Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method); } return void 0; } @@ -78072,7 +78593,7 @@ ${lanes.join("\n")} } return typeAsAwaitable.awaitedTypeOfType = type; } - function checkAsyncFunctionReturnType(node, returnTypeNode) { + function checkAsyncFunctionReturnType(node, returnTypeNode, returnTypeErrorLocation) { const returnType = getTypeFromTypeNode(returnTypeNode); if (languageVersion >= 2 /* ES2015 */) { if (isErrorType(returnType)) { @@ -78083,7 +78604,7 @@ ${lanes.join("\n")} true ); if (globalPromiseType !== emptyGenericType && !isReferenceToType2(returnType, globalPromiseType)) { - error(returnTypeNode, Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0, typeToString(getAwaitedTypeNoAlias(returnType) || voidType)); + reportErrorForInvalidReturnType(Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0, returnTypeNode, returnTypeErrorLocation, typeToString(getAwaitedTypeNoAlias(returnType) || voidType)); return; } } else { @@ -78093,7 +78614,7 @@ ${lanes.join("\n")} } const promiseConstructorName = getEntityNameFromTypeNode(returnTypeNode); if (promiseConstructorName === void 0) { - error(returnTypeNode, Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, typeToString(returnType)); + reportErrorForInvalidReturnType(Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, returnTypeNode, returnTypeErrorLocation, typeToString(returnType)); return; } const promiseConstructorSymbol = resolveEntityName( @@ -78108,9 +78629,9 @@ ${lanes.join("\n")} /*reportErrors*/ false )) { - error(returnTypeNode, Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option); + error2(returnTypeErrorLocation, Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option); } else { - error(returnTypeNode, Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, entityNameToString(promiseConstructorName)); + reportErrorForInvalidReturnType(Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, returnTypeNode, returnTypeErrorLocation, entityNameToString(promiseConstructorName)); } return; } @@ -78119,21 +78640,22 @@ ${lanes.join("\n")} true ); if (globalPromiseConstructorLikeType === emptyObjectType) { - error(returnTypeNode, Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, entityNameToString(promiseConstructorName)); + reportErrorForInvalidReturnType(Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, returnTypeNode, returnTypeErrorLocation, entityNameToString(promiseConstructorName)); return; } - if (!checkTypeAssignableTo( - promiseConstructorType, - globalPromiseConstructorLikeType, - returnTypeNode, - Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value - )) { + const headMessage = Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value; + const errorInfo = () => returnTypeNode === returnTypeErrorLocation ? void 0 : chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type + ); + if (!checkTypeAssignableTo(promiseConstructorType, globalPromiseConstructorLikeType, returnTypeErrorLocation, headMessage, errorInfo)) { return; } const rootName = promiseConstructorName && getFirstIdentifier(promiseConstructorName); const collidingSymbol = getSymbol2(node.locals, rootName.escapedText, 111551 /* Value */); if (collidingSymbol) { - error( + error2( collidingSymbol.valueDeclaration, Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions, idText(rootName), @@ -78149,6 +78671,14 @@ ${lanes.join("\n")} node, Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member ); + function reportErrorForInvalidReturnType(message, returnTypeNode2, returnTypeErrorLocation2, typeName) { + if (returnTypeNode2 === returnTypeErrorLocation2) { + error2(returnTypeErrorLocation2, message, typeName); + } else { + const diag2 = error2(returnTypeErrorLocation2, Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type); + addRelatedInfo(diag2, createDiagnosticForNode(returnTypeNode2, message, typeName)); + } + } } function checkDecorator(node) { const signature = getResolvedSignature(node); @@ -78163,21 +78693,21 @@ ${lanes.join("\n")} let headMessage; const expectedReturnType = decoratorSignature.resolvedReturnType; switch (node.parent.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: headMessage = Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1; break; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: if (!legacyDecorators) { headMessage = Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1; break; } - case 168 /* Parameter */: + case 169 /* Parameter */: headMessage = Diagnostics.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any; break; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: headMessage = Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1; break; default: @@ -78246,7 +78776,7 @@ ${lanes.join("\n")} if (canCollectSymbolAliasAccessabilityData && symbolIsValue(rootSymbol) && !isConstEnumOrConstEnumOnlyModule(resolveAlias(rootSymbol)) && !getTypeOnlyAliasDeclaration(rootSymbol)) { markAliasSymbolAsReferenced(rootSymbol); } else if (forDecoratorMetadata && getIsolatedModules(compilerOptions) && getEmitModuleKind(compilerOptions) >= 5 /* ES2015 */ && !symbolIsValue(rootSymbol) && !some(rootSymbol.declarations, isTypeOnlyImportOrExportDeclaration)) { - const diag2 = error(typeName, Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled); + const diag2 = error2(typeName, Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled); const aliasDeclaration = find(rootSymbol.declarations || emptyArray, isAliasSymbolDeclaration2); if (aliasDeclaration) { addRelatedInfo(diag2, createDiagnosticForNode(aliasDeclaration, Diagnostics._0_was_imported_here, idText(rootName))); @@ -78267,15 +78797,15 @@ ${lanes.join("\n")} function getEntityNameForDecoratorMetadata(node) { if (node) { switch (node.kind) { - case 192 /* IntersectionType */: - case 191 /* UnionType */: + case 193 /* IntersectionType */: + case 192 /* UnionType */: return getEntityNameForDecoratorMetadataFromTypeList(node.types); - case 193 /* ConditionalType */: + case 194 /* ConditionalType */: return getEntityNameForDecoratorMetadataFromTypeList([node.trueType, node.falseType]); - case 195 /* ParenthesizedType */: - case 201 /* NamedTupleMember */: + case 196 /* ParenthesizedType */: + case 202 /* NamedTupleMember */: return getEntityNameForDecoratorMetadata(node.type); - case 182 /* TypeReference */: + case 183 /* TypeReference */: return node.typeName; } } @@ -78283,13 +78813,13 @@ ${lanes.join("\n")} function getEntityNameForDecoratorMetadataFromTypeList(types) { let commonEntityName; for (let typeNode of types) { - while (typeNode.kind === 195 /* ParenthesizedType */ || typeNode.kind === 201 /* NamedTupleMember */) { + while (typeNode.kind === 196 /* ParenthesizedType */ || typeNode.kind === 202 /* NamedTupleMember */) { typeNode = typeNode.type; } if (typeNode.kind === 146 /* NeverKeyword */) { continue; } - if (!strictNullChecks && (typeNode.kind === 200 /* LiteralType */ && typeNode.literal.kind === 106 /* NullKeyword */ || typeNode.kind === 157 /* UndefinedKeyword */)) { + if (!strictNullChecks && (typeNode.kind === 201 /* LiteralType */ && typeNode.literal.kind === 106 /* NullKeyword */ || typeNode.kind === 157 /* UndefinedKeyword */)) { continue; } const individualEntityName = getEntityNameForDecoratorMetadata(typeNode); @@ -78320,7 +78850,7 @@ ${lanes.join("\n")} } if (legacyDecorators) { checkExternalEmitHelpers(firstDecorator, 8 /* Decorate */); - if (node.kind === 168 /* Parameter */) { + if (node.kind === 169 /* Parameter */) { checkExternalEmitHelpers(firstDecorator, 32 /* Param */); } } else if (languageVersion < 99 /* ESNext */) { @@ -78346,7 +78876,7 @@ ${lanes.join("\n")} if (compilerOptions.emitDecoratorMetadata) { checkExternalEmitHelpers(firstDecorator, 16 /* Metadata */); switch (node.kind) { - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: const constructor = getFirstConstructorWithBody(node); if (constructor) { for (const parameter of constructor.parameters) { @@ -78354,27 +78884,28 @@ ${lanes.join("\n")} } } break; - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - const otherKind = node.kind === 176 /* GetAccessor */ ? 177 /* SetAccessor */ : 176 /* GetAccessor */; + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + const otherKind = node.kind === 177 /* GetAccessor */ ? 178 /* SetAccessor */ : 177 /* GetAccessor */; const otherAccessor = getDeclarationOfKind(getSymbolOfDeclaration(node), otherKind); markDecoratorMedataDataTypeNodeAsReferenced(getAnnotatedAccessorTypeNode(node) || otherAccessor && getAnnotatedAccessorTypeNode(otherAccessor)); break; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: for (const parameter of node.parameters) { markDecoratorMedataDataTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(parameter)); } markDecoratorMedataDataTypeNodeAsReferenced(getEffectiveReturnTypeNode(node)); break; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: markDecoratorMedataDataTypeNodeAsReferenced(getEffectiveTypeAnnotationNode(node)); break; - case 168 /* Parameter */: + case 169 /* Parameter */: markDecoratorMedataDataTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(node)); const containingSignature = node.parent; for (const parameter of containingSignature.parameters) { markDecoratorMedataDataTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(parameter)); } + markDecoratorMedataDataTypeNodeAsReferenced(getEffectiveReturnTypeNode(containingSignature)); break; } } @@ -78394,7 +78925,7 @@ ${lanes.join("\n")} } function checkJSDocTypeAliasTag(node) { if (!node.typeExpression) { - error(node.name, Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags); + error2(node.name, Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags); } if (node.name) { checkTypeNameIsReserved(node.name, Diagnostics.Type_alias_name_cannot_be_0); @@ -78419,7 +78950,7 @@ ${lanes.join("\n")} if (length(tags) > 1) { for (let i = 1; i < length(tags); i++) { const tagName = tags[i].tagName; - error(tagName, Diagnostics._0_tag_already_specified, idText(tagName)); + error2(tagName, Diagnostics._0_tag_already_specified, idText(tagName)); } } } @@ -78451,40 +78982,40 @@ ${lanes.join("\n")} function checkJSDocImplementsTag(node) { const classLike = getEffectiveJSDocHost(node); if (!classLike || !isClassDeclaration(classLike) && !isClassExpression(classLike)) { - error(classLike, Diagnostics.JSDoc_0_is_not_attached_to_a_class, idText(node.tagName)); + error2(classLike, Diagnostics.JSDoc_0_is_not_attached_to_a_class, idText(node.tagName)); } } function checkJSDocAugmentsTag(node) { const classLike = getEffectiveJSDocHost(node); if (!classLike || !isClassDeclaration(classLike) && !isClassExpression(classLike)) { - error(classLike, Diagnostics.JSDoc_0_is_not_attached_to_a_class, idText(node.tagName)); + error2(classLike, Diagnostics.JSDoc_0_is_not_attached_to_a_class, idText(node.tagName)); return; } const augmentsTags = getJSDocTags(classLike).filter(isJSDocAugmentsTag); Debug.assert(augmentsTags.length > 0); if (augmentsTags.length > 1) { - error(augmentsTags[1], Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag); + error2(augmentsTags[1], Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag); } const name = getIdentifierFromEntityNameExpression(node.class.expression); const extend2 = getClassExtendsHeritageElement(classLike); if (extend2) { const className = getIdentifierFromEntityNameExpression(extend2.expression); if (className && name.escapedText !== className.escapedText) { - error(name, Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause, idText(node.tagName), idText(name), idText(className)); + error2(name, Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause, idText(node.tagName), idText(name), idText(className)); } } } function checkJSDocAccessibilityModifiers(node) { const host2 = getJSDocHost(node); if (host2 && isPrivateIdentifierClassElementDeclaration(host2)) { - error(node, Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier); + error2(node, Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier); } } function getIdentifierFromEntityNameExpression(node) { switch (node.kind) { case 80 /* Identifier */: return node; - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return node.name; default: return void 0; @@ -78495,7 +79026,7 @@ ${lanes.join("\n")} checkDecorators(node); checkSignatureDeclaration(node); const functionFlags = getFunctionFlags(node); - if (node.name && node.name.kind === 166 /* ComputedPropertyName */) { + if (node.name && node.name.kind === 167 /* ComputedPropertyName */) { checkComputedPropertyName(node.name); } if (hasBindableName(node)) { @@ -78503,7 +79034,7 @@ ${lanes.join("\n")} const localSymbol = node.localSymbol || symbol; const firstDeclaration = (_a = localSymbol.declarations) == null ? void 0 : _a.find( // Get first non javascript function declaration - (declaration) => declaration.kind === node.kind && !(declaration.flags & 262144 /* JavaScriptFile */) + (declaration) => declaration.kind === node.kind && !(declaration.flags & 524288 /* JavaScriptFile */) ); if (node === firstDeclaration) { checkFunctionOrConstructorSymbol(localSymbol); @@ -78512,14 +79043,14 @@ ${lanes.join("\n")} checkFunctionOrConstructorSymbol(symbol); } } - const body = node.kind === 172 /* MethodSignature */ ? void 0 : node.body; + const body = node.kind === 173 /* MethodSignature */ ? void 0 : node.body; checkSourceElement(body); checkAllCodePathsInNonVoidFunctionReturnOrThrow(node, getReturnTypeFromAnnotation(node)); addLazyDiagnostic(checkFunctionOrMethodDeclarationDiagnostics); if (isInJSFile(node)) { const typeTag = getJSDocTypeTag(node); if (typeTag && typeTag.typeExpression && !getContextualCallSignature(getTypeFromTypeNode(typeTag.typeExpression), node)) { - error(typeTag.typeExpression.type, Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature); + error2(typeTag.typeExpression.type, Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature); } } function checkFunctionOrMethodDeclarationDiagnostics() { @@ -78548,42 +79079,42 @@ ${lanes.join("\n")} function checkUnusedIdentifiers(potentiallyUnusedIdentifiers, addDiagnostic) { for (const node of potentiallyUnusedIdentifiers) { switch (node.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: checkUnusedClassMembers(node, addDiagnostic); checkUnusedTypeParameters(node, addDiagnostic); break; - case 311 /* SourceFile */: - case 266 /* ModuleDeclaration */: - case 240 /* Block */: - case 268 /* CaseBlock */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: + case 312 /* SourceFile */: + case 267 /* ModuleDeclaration */: + case 241 /* Block */: + case 269 /* CaseBlock */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: checkUnusedLocalsAndParameters(node, addDiagnostic); break; - case 175 /* Constructor */: - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 176 /* Constructor */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: if (node.body) { checkUnusedLocalsAndParameters(node, addDiagnostic); } checkUnusedTypeParameters(node, addDiagnostic); break; - case 172 /* MethodSignature */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 264 /* TypeAliasDeclaration */: - case 263 /* InterfaceDeclaration */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 265 /* TypeAliasDeclaration */: + case 264 /* InterfaceDeclaration */: checkUnusedTypeParameters(node, addDiagnostic); break; - case 194 /* InferType */: + case 195 /* InferType */: checkUnusedInferTypeParameter(node, addDiagnostic); break; default: @@ -78602,28 +79133,28 @@ ${lanes.join("\n")} function checkUnusedClassMembers(node, addDiagnostic) { for (const member of node.members) { switch (member.kind) { - case 173 /* MethodDeclaration */: - case 171 /* PropertyDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - if (member.kind === 177 /* SetAccessor */ && member.symbol.flags & 32768 /* GetAccessor */) { + case 174 /* MethodDeclaration */: + case 172 /* PropertyDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + if (member.kind === 178 /* SetAccessor */ && member.symbol.flags & 32768 /* GetAccessor */) { break; } const symbol = getSymbolOfDeclaration(member); - if (!symbol.isReferenced && (hasEffectiveModifier(member, 8 /* Private */) || isNamedDeclaration(member) && isPrivateIdentifier(member.name)) && !(member.flags & 16777216 /* Ambient */)) { + if (!symbol.isReferenced && (hasEffectiveModifier(member, 8 /* Private */) || isNamedDeclaration(member) && isPrivateIdentifier(member.name)) && !(member.flags & 33554432 /* Ambient */)) { addDiagnostic(member, 0 /* Local */, createDiagnosticForNode(member.name, Diagnostics._0_is_declared_but_its_value_is_never_read, symbolToString(symbol))); } break; - case 175 /* Constructor */: + case 176 /* Constructor */: for (const parameter of member.parameters) { if (!parameter.symbol.isReferenced && hasSyntacticModifier(parameter, 8 /* Private */)) { addDiagnostic(parameter, 0 /* Local */, createDiagnosticForNode(parameter.name, Diagnostics.Property_0_is_declared_but_its_value_is_never_read, symbolName(parameter.symbol))); } } break; - case 180 /* IndexSignature */: - case 239 /* SemicolonClassElement */: - case 174 /* ClassStaticBlockDeclaration */: + case 181 /* IndexSignature */: + case 240 /* SemicolonClassElement */: + case 175 /* ClassStaticBlockDeclaration */: break; default: Debug.fail("Unexpected class member"); @@ -78647,7 +79178,7 @@ ${lanes.join("\n")} continue; const name = idText(typeParameter.name); const { parent: parent2 } = typeParameter; - if (parent2.kind !== 194 /* InferType */ && parent2.typeParameters.every(isTypeParameterUnused)) { + if (parent2.kind !== 195 /* InferType */ && parent2.typeParameters.every(isTypeParameterUnused)) { if (tryAddToSet(seenParentsWithEveryUnused, parent2)) { const sourceFile = getSourceFileOfNode(parent2); const range = isJSDocTemplateTag(parent2) ? rangeOfNode(parent2) : rangeOfTypeParameters(sourceFile, parent2.typeParameters); @@ -78705,7 +79236,11 @@ ${lanes.join("\n")} addToGroup(unusedDestructures, declaration.parent, declaration, getNodeId); } } else if (isVariableDeclaration(declaration)) { - addToGroup(unusedVariables, declaration.parent, declaration, getNodeId); + const blockScopeKind = getCombinedNodeFlagsCached(declaration) & 7 /* BlockScoped */; + const name = getNameOfDeclaration(declaration); + if (blockScopeKind !== 4 /* Using */ && blockScopeKind !== 6 /* AwaitUsing */ || !name || !isIdentifierThatStartsWithUnderscore(name)) { + addToGroup(unusedVariables, declaration.parent, declaration, getNodeId); + } } else { const parameter = local.valueDeclaration && tryGetRootParameterDeclaration(local.valueDeclaration); const name = local.valueDeclaration && getNameOfDeclaration(local.valueDeclaration); @@ -78726,7 +79261,7 @@ ${lanes.join("\n")} }); unusedImports.forEach(([importClause, unuseds]) => { const importDecl = importClause.parent; - const nDeclarations = (importClause.name ? 1 : 0) + (importClause.namedBindings ? importClause.namedBindings.kind === 273 /* NamespaceImport */ ? 1 : importClause.namedBindings.elements.length : 0); + const nDeclarations = (importClause.name ? 1 : 0) + (importClause.namedBindings ? importClause.namedBindings.kind === 274 /* NamespaceImport */ ? 1 : importClause.namedBindings.elements.length : 0); if (nDeclarations === unuseds.length) { addDiagnostic(importDecl, 0 /* Local */, unuseds.length === 1 ? createDiagnosticForNode(importDecl, Diagnostics._0_is_declared_but_its_value_is_never_read, idText(first(unuseds).name)) : createDiagnosticForNode(importDecl, Diagnostics.All_imports_in_import_declaration_are_unused)); } else { @@ -78737,7 +79272,7 @@ ${lanes.join("\n")} unusedDestructures.forEach(([bindingPattern, bindingElements]) => { const kind = tryGetRootParameterDeclaration(bindingPattern.parent) ? 1 /* Parameter */ : 0 /* Local */; if (bindingPattern.elements.length === bindingElements.length) { - if (bindingElements.length === 1 && bindingPattern.parent.kind === 259 /* VariableDeclaration */ && bindingPattern.parent.parent.kind === 260 /* VariableDeclarationList */) { + if (bindingElements.length === 1 && bindingPattern.parent.kind === 260 /* VariableDeclaration */ && bindingPattern.parent.parent.kind === 261 /* VariableDeclarationList */) { addToGroup(unusedVariables, bindingPattern.parent.parent, bindingPattern.parent, getNodeId); } else { addDiagnostic(bindingPattern, kind, bindingElements.length === 1 ? createDiagnosticForNode(bindingPattern, Diagnostics._0_is_declared_but_its_value_is_never_read, bindingNameText(first(bindingElements).name)) : createDiagnosticForNode(bindingPattern, Diagnostics.All_destructured_elements_are_unused)); @@ -78750,7 +79285,7 @@ ${lanes.join("\n")} }); unusedVariables.forEach(([declarationList, declarations]) => { if (declarationList.declarations.length === declarations.length) { - addDiagnostic(declarationList, 0 /* Local */, declarations.length === 1 ? createDiagnosticForNode(first(declarations).name, Diagnostics._0_is_declared_but_its_value_is_never_read, bindingNameText(first(declarations).name)) : createDiagnosticForNode(declarationList.parent.kind === 242 /* VariableStatement */ ? declarationList.parent : declarationList, Diagnostics.All_variables_are_unused)); + addDiagnostic(declarationList, 0 /* Local */, declarations.length === 1 ? createDiagnosticForNode(first(declarations).name, Diagnostics._0_is_declared_but_its_value_is_never_read, bindingNameText(first(declarations).name)) : createDiagnosticForNode(declarationList.parent.kind === 243 /* VariableStatement */ ? declarationList.parent : declarationList, Diagnostics.All_variables_are_unused)); } else { for (const decl of declarations) { addDiagnostic(decl, 0 /* Local */, createDiagnosticForNode(decl, Diagnostics._0_is_declared_but_its_value_is_never_read, bindingNameText(decl.name))); @@ -78779,21 +79314,21 @@ ${lanes.join("\n")} switch (name.kind) { case 80 /* Identifier */: return idText(name); - case 206 /* ArrayBindingPattern */: - case 205 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: + case 206 /* ObjectBindingPattern */: return bindingNameText(cast(first(name.elements), isBindingElement).name); default: return Debug.assertNever(name); } } function isImportedDeclaration(node) { - return node.kind === 272 /* ImportClause */ || node.kind === 275 /* ImportSpecifier */ || node.kind === 273 /* NamespaceImport */; + return node.kind === 273 /* ImportClause */ || node.kind === 276 /* ImportSpecifier */ || node.kind === 274 /* NamespaceImport */; } function importClauseFromImported(decl) { - return decl.kind === 272 /* ImportClause */ ? decl : decl.kind === 273 /* NamespaceImport */ ? decl.parent : decl.parent.parent; + return decl.kind === 273 /* ImportClause */ ? decl : decl.kind === 274 /* NamespaceImport */ ? decl.parent : decl.parent.parent; } function checkBlock(node) { - if (node.kind === 240 /* Block */) { + if (node.kind === 241 /* Block */) { checkGrammarStatementInAmbientContext(node); } if (isFunctionOrModuleBlock(node)) { @@ -78808,7 +79343,7 @@ ${lanes.join("\n")} } } function checkCollisionWithArgumentsInGeneratedCode(node) { - if (languageVersion >= 2 /* ES2015 */ || !hasRestParameter(node) || node.flags & 16777216 /* Ambient */ || nodeIsMissing(node.body)) { + if (languageVersion >= 2 /* ES2015 */ || !hasRestParameter(node) || node.flags & 33554432 /* Ambient */ || nodeIsMissing(node.body)) { return; } forEach(node.parameters, (p) => { @@ -78821,10 +79356,10 @@ ${lanes.join("\n")} if ((identifier == null ? void 0 : identifier.escapedText) !== name) { return false; } - if (node.kind === 171 /* PropertyDeclaration */ || node.kind === 170 /* PropertySignature */ || node.kind === 173 /* MethodDeclaration */ || node.kind === 172 /* MethodSignature */ || node.kind === 176 /* GetAccessor */ || node.kind === 177 /* SetAccessor */ || node.kind === 302 /* PropertyAssignment */) { + if (node.kind === 172 /* PropertyDeclaration */ || node.kind === 171 /* PropertySignature */ || node.kind === 174 /* MethodDeclaration */ || node.kind === 173 /* MethodSignature */ || node.kind === 177 /* GetAccessor */ || node.kind === 178 /* SetAccessor */ || node.kind === 303 /* PropertyAssignment */) { return false; } - if (node.flags & 16777216 /* Ambient */) { + if (node.flags & 33554432 /* Ambient */) { return false; } if (isImportClause(node) || isImportEqualsDeclaration(node) || isImportSpecifier(node)) { @@ -78843,9 +79378,9 @@ ${lanes.join("\n")} if (getNodeCheckFlags(current) & 4 /* CaptureThis */) { const isDeclaration2 = node.kind !== 80 /* Identifier */; if (isDeclaration2) { - error(getNameOfDeclaration(node), Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference); + error2(getNameOfDeclaration(node), Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference); } else { - error(node, Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference); + error2(node, Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference); } return true; } @@ -78857,9 +79392,9 @@ ${lanes.join("\n")} if (getNodeCheckFlags(current) & 8 /* CaptureNewTarget */) { const isDeclaration2 = node.kind !== 80 /* Identifier */; if (isDeclaration2) { - error(getNameOfDeclaration(node), Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference); + error2(getNameOfDeclaration(node), Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference); } else { - error(node, Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference); + error2(node, Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference); } return true; } @@ -78877,7 +79412,7 @@ ${lanes.join("\n")} return; } const parent2 = getDeclarationContainer(node); - if (parent2.kind === 311 /* SourceFile */ && isExternalOrCommonJsModule(parent2)) { + if (parent2.kind === 312 /* SourceFile */ && isExternalOrCommonJsModule(parent2)) { errorSkippedOn( "noEmit", name, @@ -78895,7 +79430,7 @@ ${lanes.join("\n")} return; } const parent2 = getDeclarationContainer(node); - if (parent2.kind === 311 /* SourceFile */ && isExternalOrCommonJsModule(parent2) && parent2.flags & 2048 /* HasAsyncFunctions */) { + if (parent2.kind === 312 /* SourceFile */ && isExternalOrCommonJsModule(parent2) && parent2.flags & 4096 /* HasAsyncFunctions */) { errorSkippedOn( "noEmit", name, @@ -78912,7 +79447,7 @@ ${lanes.join("\n")} } function checkWeakMapSetCollision(node) { const enclosingBlockScope = getEnclosingBlockScopeContainer(node); - if (getNodeCheckFlags(enclosingBlockScope) & 4194304 /* ContainsClassWithPrivateIdentifiers */) { + if (getNodeCheckFlags(enclosingBlockScope) & 1048576 /* ContainsClassWithPrivateIdentifiers */) { Debug.assert(isNamedDeclaration(node) && isIdentifier(node.name) && typeof node.name.escapedText === "string", "The target of a WeakMap/WeakSet collision check should be an identifier"); errorSkippedOn("noEmit", node, Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel, node.name.escapedText); } @@ -78926,18 +79461,18 @@ ${lanes.join("\n")} let hasCollision = false; if (isClassExpression(node)) { for (const member of node.members) { - if (getNodeCheckFlags(member) & 8388608 /* ContainsSuperPropertyInStaticInitializer */) { + if (getNodeCheckFlags(member) & 2097152 /* ContainsSuperPropertyInStaticInitializer */) { hasCollision = true; break; } } } else if (isFunctionExpression(node)) { - if (getNodeCheckFlags(node) & 8388608 /* ContainsSuperPropertyInStaticInitializer */) { + if (getNodeCheckFlags(node) & 2097152 /* ContainsSuperPropertyInStaticInitializer */) { hasCollision = true; } } else { const container = getEnclosingBlockScopeContainer(node); - if (container && getNodeCheckFlags(container) & 8388608 /* ContainsSuperPropertyInStaticInitializer */) { + if (container && getNodeCheckFlags(container) & 2097152 /* ContainsSuperPropertyInStaticInitializer */) { hasCollision = true; } } @@ -78961,7 +79496,7 @@ ${lanes.join("\n")} recordPotentialCollisionWithReflectInGeneratedCode(node, name); if (isClassLike(node)) { checkTypeNameIsReserved(name, Diagnostics.Class_name_cannot_be_0); - if (!(node.flags & 16777216 /* Ambient */)) { + if (!(node.flags & 33554432 /* Ambient */)) { checkClassNameCollisionWithObject(name); } } else if (isEnumDeclaration(node)) { @@ -78969,10 +79504,7 @@ ${lanes.join("\n")} } } function checkVarDeclaredNamesNotShadowed(node) { - if ((getCombinedNodeFlags(node) & 3 /* BlockScoped */) !== 0 || isParameterDeclaration(node)) { - return; - } - if (node.kind === 259 /* VariableDeclaration */ && !node.initializer) { + if ((getCombinedNodeFlagsCached(node) & 7 /* BlockScoped */) !== 0 || isParameterDeclaration(node)) { return; } const symbol = getSymbolOfDeclaration(node); @@ -78991,13 +79523,13 @@ ${lanes.join("\n")} false ); if (localDeclarationSymbol && localDeclarationSymbol !== symbol && localDeclarationSymbol.flags & 2 /* BlockScopedVariable */) { - if (getDeclarationNodeFlagsFromSymbol(localDeclarationSymbol) & 3 /* BlockScoped */) { - const varDeclList = getAncestor(localDeclarationSymbol.valueDeclaration, 260 /* VariableDeclarationList */); - const container = varDeclList.parent.kind === 242 /* VariableStatement */ && varDeclList.parent.parent ? varDeclList.parent.parent : void 0; - const namesShareScope = container && (container.kind === 240 /* Block */ && isFunctionLike(container.parent) || container.kind === 267 /* ModuleBlock */ || container.kind === 266 /* ModuleDeclaration */ || container.kind === 311 /* SourceFile */); + if (getDeclarationNodeFlagsFromSymbol(localDeclarationSymbol) & 7 /* BlockScoped */) { + const varDeclList = getAncestor(localDeclarationSymbol.valueDeclaration, 261 /* VariableDeclarationList */); + const container = varDeclList.parent.kind === 243 /* VariableStatement */ && varDeclList.parent.parent ? varDeclList.parent.parent : void 0; + const namesShareScope = container && (container.kind === 241 /* Block */ && isFunctionLike(container.parent) || container.kind === 268 /* ModuleBlock */ || container.kind === 267 /* ModuleDeclaration */ || container.kind === 312 /* SourceFile */); if (!namesShareScope) { const name = symbolToString(localDeclarationSymbol); - error(node, Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1, name, name); + error2(node, Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1, name, name); } } } @@ -79015,7 +79547,7 @@ ${lanes.join("\n")} if (!node.name) { return; } - if (node.name.kind === 166 /* ComputedPropertyName */) { + if (node.name.kind === 167 /* ComputedPropertyName */) { checkComputedPropertyName(node.name); if (hasOnlyExpressionInitializer(node) && node.initializer) { checkExpressionCached(node.initializer); @@ -79029,7 +79561,7 @@ ${lanes.join("\n")} if (isObjectBindingPattern(node.parent) && node.dotDotDotToken && languageVersion < 5 /* ES2018 */) { checkExternalEmitHelpers(node, 4 /* Rest */); } - if (node.propertyName && node.propertyName.kind === 166 /* ComputedPropertyName */) { + if (node.propertyName && node.propertyName.kind === 167 /* ComputedPropertyName */) { checkComputedPropertyName(node.propertyName); } const parent2 = node.parent.parent; @@ -79062,20 +79594,20 @@ ${lanes.join("\n")} } } if (isBindingPattern(node.name)) { - if (node.name.kind === 206 /* ArrayBindingPattern */ && languageVersion < 2 /* ES2015 */ && compilerOptions.downlevelIteration) { + if (node.name.kind === 207 /* ArrayBindingPattern */ && languageVersion < 2 /* ES2015 */ && compilerOptions.downlevelIteration) { checkExternalEmitHelpers(node, 512 /* Read */); } forEach(node.name.elements, checkSourceElement); } if (isParameter(node) && node.initializer && nodeIsMissing(getContainingFunction(node).body)) { - error(node, Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation); + error2(node, Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation); return; } if (isBindingPattern(node.name)) { if (isInAmbientOrTypeNode(node)) { return; } - const needCheckInitializer = hasOnlyExpressionInitializer(node) && node.initializer && node.parent.parent.kind !== 248 /* ForInStatement */; + const needCheckInitializer = hasOnlyExpressionInitializer(node) && node.initializer && node.parent.parent.kind !== 249 /* ForInStatement */; const needCheckWidenedType = !some(node.name.elements, not(isOmittedExpression)); if (needCheckInitializer || needCheckWidenedType) { const widenedType = getWidenedTypeForVariableLikeDeclaration(node); @@ -79107,20 +79639,45 @@ ${lanes.join("\n")} const initializer = hasOnlyExpressionInitializer(node) && getEffectiveInitializer(node); if (initializer) { const isJSObjectLiteralInitializer = isInJSFile(node) && isObjectLiteralExpression(initializer) && (initializer.properties.length === 0 || isPrototypeAccess(node.name)) && !!((_a = symbol.exports) == null ? void 0 : _a.size); - if (!isJSObjectLiteralInitializer && node.parent.parent.kind !== 248 /* ForInStatement */) { + if (!isJSObjectLiteralInitializer && node.parent.parent.kind !== 249 /* ForInStatement */) { + const initializerType = checkExpressionCached(initializer); checkTypeAssignableToAndOptionallyElaborate( - checkExpressionCached(initializer), + initializerType, type, node, initializer, /*headMessage*/ void 0 ); + const blockScopeKind = getCombinedNodeFlagsCached(node) & 7 /* BlockScoped */; + if (blockScopeKind === 6 /* AwaitUsing */) { + const globalAsyncDisposableType = getGlobalAsyncDisposableType( + /*reportErrors*/ + true + ); + const globalDisposableType = getGlobalDisposableType( + /*reportErrors*/ + true + ); + if (globalAsyncDisposableType !== emptyObjectType && globalDisposableType !== emptyObjectType) { + const optionalDisposableType = getUnionType([globalAsyncDisposableType, globalDisposableType, nullType, undefinedType]); + checkTypeAssignableTo(initializerType, optionalDisposableType, initializer, Diagnostics.The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined); + } + } else if (blockScopeKind === 4 /* Using */) { + const globalDisposableType = getGlobalDisposableType( + /*reportErrors*/ + true + ); + if (globalDisposableType !== emptyObjectType) { + const optionalDisposableType = getUnionType([globalDisposableType, nullType, undefinedType]); + checkTypeAssignableTo(initializerType, optionalDisposableType, initializer, Diagnostics.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined); + } + } } } if (symbol.declarations && symbol.declarations.length > 1) { if (some(symbol.declarations, (d) => d !== node && isVariableLike(d) && !areDeclarationFlagsIdentical(d, node))) { - error(node.name, Diagnostics.All_declarations_of_0_must_have_identical_modifiers, declarationNameToString(node.name)); + error2(node.name, Diagnostics.All_declarations_of_0_must_have_identical_modifiers, declarationNameToString(node.name)); } } } else { @@ -79139,12 +79696,12 @@ ${lanes.join("\n")} ); } if (symbol.valueDeclaration && !areDeclarationFlagsIdentical(node, symbol.valueDeclaration)) { - error(node.name, Diagnostics.All_declarations_of_0_must_have_identical_modifiers, declarationNameToString(node.name)); + error2(node.name, Diagnostics.All_declarations_of_0_must_have_identical_modifiers, declarationNameToString(node.name)); } } - if (node.kind !== 171 /* PropertyDeclaration */ && node.kind !== 170 /* PropertySignature */) { + if (node.kind !== 172 /* PropertyDeclaration */ && node.kind !== 171 /* PropertySignature */) { checkExportsOnMergedDeclarations(node); - if (node.kind === 259 /* VariableDeclaration */ || node.kind === 207 /* BindingElement */) { + if (node.kind === 260 /* VariableDeclaration */ || node.kind === 208 /* BindingElement */) { checkVarDeclaredNamesNotShadowed(node); } checkCollisionsForDeclarationName(node, node.name); @@ -79152,9 +79709,9 @@ ${lanes.join("\n")} } function errorNextVariableOrPropertyDeclarationMustHaveSameType(firstDeclaration, firstType, nextDeclaration, nextType) { const nextDeclarationName = getNameOfDeclaration(nextDeclaration); - const message = nextDeclaration.kind === 171 /* PropertyDeclaration */ || nextDeclaration.kind === 170 /* PropertySignature */ ? Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2 : Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2; + const message = nextDeclaration.kind === 172 /* PropertyDeclaration */ || nextDeclaration.kind === 171 /* PropertySignature */ ? Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2 : Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2; const declName = declarationNameToString(nextDeclarationName); - const err = error( + const err = error2( nextDeclarationName, message, declName, @@ -79169,7 +79726,7 @@ ${lanes.join("\n")} } } function areDeclarationFlagsIdentical(left, right) { - if (left.kind === 168 /* Parameter */ && right.kind === 259 /* VariableDeclaration */ || left.kind === 259 /* VariableDeclaration */ && right.kind === 168 /* Parameter */) { + if (left.kind === 169 /* Parameter */ && right.kind === 260 /* VariableDeclaration */ || left.kind === 260 /* VariableDeclaration */ && right.kind === 169 /* Parameter */) { return true; } if (hasQuestionToken(left) !== hasQuestionToken(right)) { @@ -79189,10 +79746,17 @@ ${lanes.join("\n")} checkGrammarBindingElement(node); return checkVariableLikeDeclaration(node); } + function checkVariableDeclarationList(node) { + const blockScopeKind = getCombinedNodeFlags(node) & 7 /* BlockScoped */; + if (blockScopeKind === 4 /* Using */ || blockScopeKind === 6 /* AwaitUsing */) { + checkExternalEmitHelpers(node, 33554432 /* AddDisposableResourceAndDisposeResources */); + } + forEach(node.declarations, checkSourceElement); + } function checkVariableStatement(node) { if (!checkGrammarModifiers(node) && !checkGrammarVariableDeclarationList(node.declarationList)) - checkGrammarForDisallowedLetOrConstStatement(node); - forEach(node.declarationList.declarations, checkSourceElement); + checkGrammarForDisallowedBlockScopedVariableStatement(node); + checkVariableDeclarationList(node.declarationList); } function checkExpressionStatement(node) { checkGrammarStatementInAmbientContext(node); @@ -79203,8 +79767,8 @@ ${lanes.join("\n")} const type = checkTruthinessExpression(node.expression); checkTestingKnownTruthyCallableOrAwaitableType(node.expression, type, node.thenStatement); checkSourceElement(node.thenStatement); - if (node.thenStatement.kind === 241 /* EmptyStatement */) { - error(node.thenStatement, Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement); + if (node.thenStatement.kind === 242 /* EmptyStatement */) { + error2(node.thenStatement, Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement); } checkSourceElement(node.elseStatement); } @@ -79254,7 +79818,7 @@ ${lanes.join("\n")} getTypeNameForErrorDisplay(type) ); } else { - error(location, Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead); + error2(location, Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead); } } } @@ -79320,7 +79884,7 @@ ${lanes.join("\n")} } function checkTruthinessOfType(type, node) { if (type.flags & 16384 /* Void */) { - error(node, Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness); + error2(node, Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness); } return type; } @@ -79329,13 +79893,13 @@ ${lanes.join("\n")} } function checkForStatement(node) { if (!checkGrammarStatementInAmbientContext(node)) { - if (node.initializer && node.initializer.kind === 260 /* VariableDeclarationList */) { + if (node.initializer && node.initializer.kind === 261 /* VariableDeclarationList */) { checkGrammarVariableDeclarationList(node.initializer); } } if (node.initializer) { - if (node.initializer.kind === 260 /* VariableDeclarationList */) { - forEach(node.initializer.declarations, checkVariableDeclaration); + if (node.initializer.kind === 261 /* VariableDeclarationList */) { + checkVariableDeclarationList(node.initializer); } else { checkExpression(node.initializer); } @@ -79354,7 +79918,7 @@ ${lanes.join("\n")} const container = getContainingFunctionOrClassStaticBlock(node); if (node.awaitModifier) { if (container && isClassStaticBlockDeclaration(container)) { - grammarErrorOnNode(node.awaitModifier, Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block); + grammarErrorOnNode(node.awaitModifier, Diagnostics.for_await_loops_cannot_be_used_inside_a_class_static_block); } else { const functionFlags = getFunctionFlags(container); if ((functionFlags & (4 /* Invalid */ | 2 /* Async */)) === 2 /* Async */ && languageVersion < 99 /* ESNext */) { @@ -79364,12 +79928,12 @@ ${lanes.join("\n")} } else if (compilerOptions.downlevelIteration && languageVersion < 2 /* ES2015 */) { checkExternalEmitHelpers(node, 256 /* ForOfIncludes */); } - if (node.initializer.kind === 260 /* VariableDeclarationList */) { - checkForInOrForOfVariableDeclaration(node); + if (node.initializer.kind === 261 /* VariableDeclarationList */) { + checkVariableDeclarationList(node.initializer); } else { const varExpr = node.initializer; const iteratedType = checkRightHandSideOfForOf(node); - if (varExpr.kind === 208 /* ArrayLiteralExpression */ || varExpr.kind === 209 /* ObjectLiteralExpression */) { + if (varExpr.kind === 209 /* ArrayLiteralExpression */ || varExpr.kind === 210 /* ObjectLiteralExpression */) { checkDestructuringAssignment(varExpr, iteratedType || errorType); } else { const leftType = checkExpression(varExpr); @@ -79391,19 +79955,19 @@ ${lanes.join("\n")} function checkForInStatement(node) { checkGrammarForInOrForOfStatement(node); const rightType = getNonNullableTypeIfNeeded(checkExpression(node.expression)); - if (node.initializer.kind === 260 /* VariableDeclarationList */) { + if (node.initializer.kind === 261 /* VariableDeclarationList */) { const variable = node.initializer.declarations[0]; if (variable && isBindingPattern(variable.name)) { - error(variable.name, Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern); + error2(variable.name, Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern); } - checkForInOrForOfVariableDeclaration(node); + checkVariableDeclarationList(node.initializer); } else { const varExpr = node.initializer; const leftType = checkExpression(varExpr); - if (varExpr.kind === 208 /* ArrayLiteralExpression */ || varExpr.kind === 209 /* ObjectLiteralExpression */) { - error(varExpr, Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern); + if (varExpr.kind === 209 /* ArrayLiteralExpression */ || varExpr.kind === 210 /* ObjectLiteralExpression */) { + error2(varExpr, Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern); } else if (!isTypeAssignableTo(getIndexTypeOrString(rightType), leftType)) { - error(varExpr, Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any); + error2(varExpr, Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any); } else { checkReferenceExpression( varExpr, @@ -79413,20 +79977,13 @@ ${lanes.join("\n")} } } if (rightType === neverType || !isTypeAssignableToKind(rightType, 67108864 /* NonPrimitive */ | 58982400 /* InstantiableNonPrimitive */)) { - error(node.expression, Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0, typeToString(rightType)); + error2(node.expression, Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0, typeToString(rightType)); } checkSourceElement(node.statement); if (node.locals) { registerForUnusedIdentifiersCheck(node); } } - function checkForInOrForOfVariableDeclaration(iterationStatement) { - const variableDeclarationList = iterationStatement.initializer; - if (variableDeclarationList.declarations.length >= 1) { - const decl = variableDeclarationList.declarations[0]; - checkVariableDeclaration(decl); - } - } function checkRightHandSideOfForOf(statement) { const use = statement.awaitModifier ? 15 /* ForAwaitOf */ : 13 /* ForOf */; return checkIteratedTypeOrElementType(use, checkNonNullExpression(statement.expression), undefinedType, statement.expression); @@ -79484,7 +80041,7 @@ ${lanes.join("\n")} if (hasStringConstituent) { if (languageVersion < 1 /* ES5 */) { if (errorNode) { - error(errorNode, Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher); + error2(errorNode, Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher); reportedError = true; } } @@ -79944,7 +80501,7 @@ ${lanes.join("\n")} errorOutputContainer.errors ?? (errorOutputContainer.errors = []); errorOutputContainer.errors.push(createDiagnosticForNode(errorNode, diagnostic, methodName)); } else { - error(errorNode, diagnostic, methodName); + error2(errorNode, diagnostic, methodName); } } return methodName === "next" ? noIterationTypes : void 0; @@ -79999,7 +80556,7 @@ ${lanes.join("\n")} errorOutputContainer.errors ?? (errorOutputContainer.errors = []); errorOutputContainer.errors.push(createDiagnosticForNode(errorNode, resolver.mustHaveAValueDiagnostic, methodName)); } else { - error(errorNode, resolver.mustHaveAValueDiagnostic, methodName); + error2(errorNode, resolver.mustHaveAValueDiagnostic, methodName); } } yieldType = anyType; @@ -80083,13 +80640,13 @@ ${lanes.join("\n")} const functionFlags = getFunctionFlags(container); if (strictNullChecks || node.expression || returnType.flags & 131072 /* Never */) { const exprType = node.expression ? checkExpressionCached(node.expression) : undefinedType; - if (container.kind === 177 /* SetAccessor */) { + if (container.kind === 178 /* SetAccessor */) { if (node.expression) { - error(node, Diagnostics.Setters_cannot_return_a_value); + error2(node, Diagnostics.Setters_cannot_return_a_value); } - } else if (container.kind === 175 /* Constructor */) { + } else if (container.kind === 176 /* Constructor */) { if (node.expression && !checkTypeAssignableToAndOptionallyElaborate(exprType, returnType, node, node.expression)) { - error(node, Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class); + error2(node, Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class); } } else if (getReturnTypeFromAnnotation(container)) { const unwrappedReturnType = unwrapReturnType(returnType, functionFlags) ?? returnType; @@ -80104,13 +80661,13 @@ ${lanes.join("\n")} checkTypeAssignableToAndOptionallyElaborate(unwrappedExprType, unwrappedReturnType, node, node.expression); } } - } else if (container.kind !== 175 /* Constructor */ && compilerOptions.noImplicitReturns && !isUnwrappedReturnTypeUndefinedVoidOrAny(container, returnType)) { - error(node, Diagnostics.Not_all_code_paths_return_a_value); + } else if (container.kind !== 176 /* Constructor */ && compilerOptions.noImplicitReturns && !isUnwrappedReturnTypeUndefinedVoidOrAny(container, returnType)) { + error2(node, Diagnostics.Not_all_code_paths_return_a_value); } } function checkWithStatement(node) { if (!checkGrammarStatementInAmbientContext(node)) { - if (node.flags & 32768 /* AwaitContext */) { + if (node.flags & 65536 /* AwaitContext */) { grammarErrorOnFirstToken(node, Diagnostics.with_statements_are_not_allowed_in_an_async_function_block); } } @@ -80128,7 +80685,7 @@ ${lanes.join("\n")} let hasDuplicateDefaultClause = false; const expressionType = checkExpression(node.expression); forEach(node.caseBlock.clauses, (clause) => { - if (clause.kind === 296 /* DefaultClause */ && !hasDuplicateDefaultClause) { + if (clause.kind === 297 /* DefaultClause */ && !hasDuplicateDefaultClause) { if (firstDefaultClause === void 0) { firstDefaultClause = clause; } else { @@ -80136,12 +80693,12 @@ ${lanes.join("\n")} hasDuplicateDefaultClause = true; } } - if (clause.kind === 295 /* CaseClause */) { + if (clause.kind === 296 /* CaseClause */) { addLazyDiagnostic(createLazyCaseClauseDiagnostics(clause)); } forEach(clause.statements, checkSourceElement); if (compilerOptions.noFallthroughCasesInSwitch && clause.fallthroughFlowNode && isReachableFlowNode(clause.fallthroughFlowNode)) { - error(clause, Diagnostics.Fallthrough_case_in_switch); + error2(clause, Diagnostics.Fallthrough_case_in_switch); } function createLazyCaseClauseDiagnostics(clause2) { return () => { @@ -80168,7 +80725,7 @@ ${lanes.join("\n")} if (isFunctionLike(current)) { return "quit"; } - if (current.kind === 255 /* LabeledStatement */ && current.label.escapedText === node.label.escapedText) { + if (current.kind === 256 /* LabeledStatement */ && current.label.escapedText === node.label.escapedText) { grammarErrorOnNode(node.label, Diagnostics.Duplicate_label_0, getTextOfNode(node.label)); return true; } @@ -80258,8 +80815,8 @@ ${lanes.join("\n")} return; } const indexInfos = getApplicableIndexInfos(type, propNameType); - const interfaceDeclaration = getObjectFlags(type) & 2 /* Interface */ ? getDeclarationOfKind(type.symbol, 263 /* InterfaceDeclaration */) : void 0; - const propDeclaration = declaration && declaration.kind === 225 /* BinaryExpression */ || name && name.kind === 166 /* ComputedPropertyName */ ? declaration : void 0; + const interfaceDeclaration = getObjectFlags(type) & 2 /* Interface */ ? getDeclarationOfKind(type.symbol, 264 /* InterfaceDeclaration */) : void 0; + const propDeclaration = declaration && declaration.kind === 226 /* BinaryExpression */ || name && name.kind === 167 /* ComputedPropertyName */ ? declaration : void 0; const localPropDeclaration = getParentOfSymbol(prop) === type.symbol ? declaration : void 0; for (const info of indexInfos) { const localIndexDeclaration = info.declaration && getParentOfSymbol(getSymbolOfDeclaration(info.declaration)) === type.symbol ? info.declaration : void 0; @@ -80283,7 +80840,7 @@ ${lanes.join("\n")} function checkIndexConstraintForIndexSignature(type, checkInfo) { const declaration = checkInfo.declaration; const indexInfos = getApplicableIndexInfos(type, checkInfo.keyType); - const interfaceDeclaration = getObjectFlags(type) & 2 /* Interface */ ? getDeclarationOfKind(type.symbol, 263 /* InterfaceDeclaration */) : void 0; + const interfaceDeclaration = getObjectFlags(type) & 2 /* Interface */ ? getDeclarationOfKind(type.symbol, 264 /* InterfaceDeclaration */) : void 0; const localCheckDeclaration = declaration && getParentOfSymbol(getSymbolOfDeclaration(declaration)) === type.symbol ? declaration : void 0; for (const info of indexInfos) { if (info === checkInfo) @@ -80291,7 +80848,7 @@ ${lanes.join("\n")} const localIndexDeclaration = info.declaration && getParentOfSymbol(getSymbolOfDeclaration(info.declaration)) === type.symbol ? info.declaration : void 0; const errorNode = localCheckDeclaration || localIndexDeclaration || (interfaceDeclaration && !some(getBaseTypes(type), (base) => !!getIndexInfoOfType(base, checkInfo.keyType) && !!getIndexTypeOfType(base, info.keyType)) ? interfaceDeclaration : void 0); if (errorNode && !isTypeAssignableTo(checkInfo.type, info.type)) { - error( + error2( errorNode, Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3, typeToString(checkInfo.keyType), @@ -80314,12 +80871,12 @@ ${lanes.join("\n")} case "symbol": case "void": case "object": - error(name, message, name.escapedText); + error2(name, message, name.escapedText); } } function checkClassNameCollisionWithObject(name) { if (languageVersion >= 1 /* ES5 */ && name.escapedText === "Object" && (moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(name).impliedNodeFormat === 1 /* CommonJS */)) { - error(name, Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0, ModuleKind[moduleKind]); + error2(name, Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0, ModuleKind[moduleKind]); } } function checkUnmatchedJSDocParameters(node) { @@ -80342,7 +80899,7 @@ ${lanes.join("\n")} const lastJSDocParamIndex = jsdocParameters.length - 1; const lastJSDocParam = jsdocParameters[lastJSDocParamIndex]; if (isJs && lastJSDocParam && isIdentifier(lastJSDocParam.name) && lastJSDocParam.typeExpression && lastJSDocParam.typeExpression.type && !parameters.has(lastJSDocParam.name.escapedText) && !excludedParameters.has(lastJSDocParamIndex) && !isArrayType(getTypeFromTypeNode(lastJSDocParam.typeExpression.type))) { - error(lastJSDocParam.name, Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type, idText(lastJSDocParam.name)); + error2(lastJSDocParam.name, Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type, idText(lastJSDocParam.name)); } } else { forEach(jsdocParameters, ({ name, isNameFirst }, index) => { @@ -80351,7 +80908,7 @@ ${lanes.join("\n")} } if (isQualifiedName(name)) { if (isJs) { - error(name, Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1, entityNameToString(name), entityNameToString(name.left)); + error2(name, Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1, entityNameToString(name), entityNameToString(name.left)); } } else { if (!isNameFirst) { @@ -80376,11 +80933,11 @@ ${lanes.join("\n")} seenDefault = true; checkTypeParametersNotReferenced(node.default, typeParameterDeclarations, i); } else if (seenDefault) { - error(node, Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters); + error2(node, Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters); } for (let j = 0; j < i; j++) { if (typeParameterDeclarations[j].symbol === node.symbol) { - error(node.name, Diagnostics.Duplicate_identifier_0, declarationNameToString(node.name)); + error2(node.name, Diagnostics.Duplicate_identifier_0, declarationNameToString(node.name)); } } }; @@ -80389,12 +80946,12 @@ ${lanes.join("\n")} function checkTypeParametersNotReferenced(root, typeParameters, index) { visit(root); function visit(node) { - if (node.kind === 182 /* TypeReference */) { + if (node.kind === 183 /* TypeReference */) { const type = getTypeFromTypeReference(node); if (type.flags & 262144 /* TypeParameter */) { for (let i = index; i < typeParameters.length; i++) { if (type.symbol === getSymbolOfDeclaration(typeParameters[i])) { - error(node, Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters); + error2(node, Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters); } } } @@ -80417,7 +80974,7 @@ ${lanes.join("\n")} if (!areTypeParametersIdentical(declarations, type.localTypeParameters, getEffectiveTypeParameterDeclarations)) { const name = symbolToString(symbol); for (const declaration of declarations) { - error(declaration.name, Diagnostics.All_declarations_of_0_must_have_identical_type_parameters, name); + error2(declaration.name, Diagnostics.All_declarations_of_0_must_have_identical_type_parameters, name); } } } @@ -80459,7 +81016,7 @@ ${lanes.join("\n")} node ); const willTransformPrivateElementsOrClassStaticBlocks = languageVersion <= 9 /* ES2022 */; - const willTransformInitializers = !useDefineForClassFields || languageVersion < 9 /* ES2022 */; + const willTransformInitializers = !emitStandardClassFields; if (willTransformStaticElementsOfDecoratedClass || willTransformPrivateElementsOrClassStaticBlocks) { for (const member of node.members) { if (willTransformStaticElementsOfDecoratedClass && classElementOrClassElementParameterIsDecorated( @@ -80540,7 +81097,7 @@ ${lanes.join("\n")} checkTypeParameterListsIdentical(symbol); checkFunctionOrConstructorSymbol(symbol); checkClassForDuplicateDeclarations(node); - const nodeInAmbientContext = !!(node.flags & 16777216 /* Ambient */); + const nodeInAmbientContext = !!(node.flags & 33554432 /* Ambient */); if (!nodeInAmbientContext) { checkClassForStaticPropertyNameConflicts(node); } @@ -80588,18 +81145,18 @@ ${lanes.join("\n")} } if (baseConstructorType.flags & 8650752 /* TypeVariable */) { if (!isMixinConstructorType(staticType)) { - error(node.name || node, Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any); + error2(node.name || node, Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any); } else { const constructSignatures = getSignaturesOfType(baseConstructorType, 1 /* Construct */); if (constructSignatures.some((signature) => signature.flags & 4 /* Abstract */) && !hasSyntacticModifier(node, 256 /* Abstract */)) { - error(node.name || node, Diagnostics.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract); + error2(node.name || node, Diagnostics.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract); } } } if (!(staticBaseType.symbol && staticBaseType.symbol.flags & 32 /* Class */) && !(baseConstructorType.flags & 8650752 /* TypeVariable */)) { const constructors = getInstantiatedConstructorsForTypeArguments(staticBaseType, baseTypeNode.typeArguments, baseTypeNode); if (forEach(constructors, (sig) => !isJSConstructor(sig.declaration) && !isTypeIdenticalTo(getReturnTypeOfSignature(sig), baseType))) { - error(baseTypeNode.expression, Diagnostics.Base_constructors_must_all_have_the_same_return_type); + error2(baseTypeNode.expression, Diagnostics.Base_constructors_must_all_have_the_same_return_type); } } checkKindsOfPropertyMemberOverrides(type, baseType); @@ -80611,7 +81168,7 @@ ${lanes.join("\n")} if (implementedTypeNodes) { for (const typeRefNode of implementedTypeNodes) { if (!isEntityNameExpression(typeRefNode.expression) || isOptionalChain(typeRefNode.expression)) { - error(typeRefNode.expression, Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments); + error2(typeRefNode.expression, Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments); } checkTypeReferenceNode(typeRefNode); addLazyDiagnostic(createImplementsDiagnostics(typeRefNode)); @@ -80644,7 +81201,7 @@ ${lanes.join("\n")} issueMemberSpecificError(node, typeWithThis, baseWithThis, genericDiag); } } else { - error(typeRefNode, Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members); + error2(typeRefNode, Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members); } } }; @@ -80711,7 +81268,7 @@ ${lanes.join("\n")} } function checkMemberForOverrideModifier(node, staticType, baseStaticType, baseWithThis, type, typeWithThis, memberHasOverrideModifier, memberHasAbstractModifier, memberIsStatic, memberIsParameterProperty, memberName, errorNode) { const isJs = isInJSFile(node); - const nodeInAmbientContext = !!(node.flags & 16777216 /* Ambient */); + const nodeInAmbientContext = !!(node.flags & 33554432 /* Ambient */); if (baseWithThis && (memberHasOverrideModifier || compilerOptions.noImplicitOverride)) { const memberEscapedName = escapeLeadingUnderscores(memberName); const thisType = memberIsStatic ? staticType : typeWithThis; @@ -80722,12 +81279,12 @@ ${lanes.join("\n")} if (prop && !baseProp && memberHasOverrideModifier) { if (errorNode) { const suggestion = getSuggestedSymbolForNonexistentClassMember(memberName, baseType); - suggestion ? error( + suggestion ? error2( errorNode, isJs ? Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1 : Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1, baseClassName, symbolToString(suggestion) - ) : error( + ) : error2( errorNode, isJs ? Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0 : Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0, baseClassName @@ -80742,12 +81299,12 @@ ${lanes.join("\n")} if (!baseHasAbstract) { if (errorNode) { const diag2 = memberIsParameterProperty ? isJs ? Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0 : Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0 : isJs ? Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0 : Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0; - error(errorNode, diag2, baseClassName); + error2(errorNode, diag2, baseClassName); } return 1 /* NeedsOverride */; } else if (memberHasAbstractModifier && baseHasAbstract) { if (errorNode) { - error(errorNode, Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0, baseClassName); + error2(errorNode, Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0, baseClassName); } return 1 /* NeedsOverride */; } @@ -80755,7 +81312,7 @@ ${lanes.join("\n")} } else if (memberHasOverrideModifier) { if (errorNode) { const className = typeToString(type); - error( + error2( errorNode, isJs ? Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class : Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class, className @@ -80808,7 +81365,7 @@ ${lanes.join("\n")} if (declaration && hasEffectiveModifier(declaration, 8 /* Private */)) { const typeClassDeclaration = getClassLikeDeclarationOfSymbol(type.symbol); if (!isNodeWithinClass(node, typeClassDeclaration)) { - error(node, Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private, getFullyQualifiedName(type.symbol)); + error2(node, Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private, getFullyQualifiedName(type.symbol)); } } } @@ -80845,7 +81402,7 @@ ${lanes.join("\n")} return getCheckFlags(s) & 1 /* Instantiated */ ? s.links.target : s; } function getClassOrInterfaceDeclarationsOfSymbol(symbol) { - return filter(symbol.declarations, (d) => d.kind === 262 /* ClassDeclaration */ || d.kind === 263 /* InterfaceDeclaration */); + return filter(symbol.declarations, (d) => d.kind === 263 /* ClassDeclaration */ || d.kind === 264 /* InterfaceDeclaration */); } function checkKindsOfPropertyMemberOverrides(type, baseType) { var _a, _b, _c, _d; @@ -80877,14 +81434,14 @@ ${lanes.join("\n")} } } if (!inheritedAbstractMemberNotImplementedError) { - inheritedAbstractMemberNotImplementedError = error( + inheritedAbstractMemberNotImplementedError = error2( derivedClassDecl, Diagnostics.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1, typeToString(type), typeToString(baseType) ); } - if (derivedClassDecl.kind === 230 /* ClassExpression */) { + if (derivedClassDecl.kind === 231 /* ClassExpression */) { addRelatedInfo( inheritedAbstractMemberNotImplementedError, createDiagnosticForNode( @@ -80923,15 +81480,15 @@ ${lanes.join("\n")} const overriddenInstanceAccessor = basePropertyFlags === 4 /* Property */ && derivedPropertyFlags !== 4 /* Property */; if (overriddenInstanceProperty || overriddenInstanceAccessor) { const errorMessage2 = overriddenInstanceProperty ? Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property : Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor; - error(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage2, symbolToString(base), typeToString(baseType), typeToString(type)); + error2(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage2, symbolToString(base), typeToString(baseType), typeToString(type)); } else if (useDefineForClassFields) { - const uninitialized = (_c = derived.declarations) == null ? void 0 : _c.find((d) => d.kind === 171 /* PropertyDeclaration */ && !d.initializer); - if (uninitialized && !(derived.flags & 33554432 /* Transient */) && !(baseDeclarationFlags & 256 /* Abstract */) && !(derivedDeclarationFlags & 256 /* Abstract */) && !((_d = derived.declarations) == null ? void 0 : _d.some((d) => !!(d.flags & 16777216 /* Ambient */)))) { + const uninitialized = (_c = derived.declarations) == null ? void 0 : _c.find((d) => d.kind === 172 /* PropertyDeclaration */ && !d.initializer); + if (uninitialized && !(derived.flags & 33554432 /* Transient */) && !(baseDeclarationFlags & 256 /* Abstract */) && !(derivedDeclarationFlags & 256 /* Abstract */) && !((_d = derived.declarations) == null ? void 0 : _d.some((d) => !!(d.flags & 33554432 /* Ambient */)))) { const constructor = findConstructorDeclaration(getClassLikeDeclarationOfSymbol(type.symbol)); const propName = uninitialized.name; if (uninitialized.exclamationToken || !constructor || !isIdentifier(propName) || !strictNullChecks || !isPropertyInitializedInConstructor(propName, type, constructor)) { const errorMessage2 = Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration; - error(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage2, symbolToString(base), typeToString(baseType)); + error2(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage2, symbolToString(base), typeToString(baseType)); } } } @@ -80948,7 +81505,7 @@ ${lanes.join("\n")} } else { errorMessage = Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function; } - error(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage, typeToString(baseType), symbolToString(base), typeToString(type)); + error2(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage, typeToString(baseType), symbolToString(base), typeToString(type)); } } } @@ -81013,7 +81570,7 @@ ${lanes.join("\n")} return ok; } function checkPropertyInitialization(node) { - if (!strictNullChecks || !strictPropertyInitialization || node.flags & 16777216 /* Ambient */) { + if (!strictNullChecks || !strictPropertyInitialization || node.flags & 33554432 /* Ambient */) { return; } const constructor = findConstructorDeclaration(node); @@ -81027,7 +81584,7 @@ ${lanes.join("\n")} const type = getTypeOfSymbol(getSymbolOfDeclaration(member)); if (!(type.flags & 3 /* AnyOrUnknown */ || containsUndefinedType(type))) { if (!constructor || !isPropertyInitializedInConstructor(propName, type, constructor)) { - error(member.name, Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor, declarationNameToString(propName)); + error2(member.name, Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor, declarationNameToString(propName)); } } } @@ -81035,7 +81592,7 @@ ${lanes.join("\n")} } } function isPropertyWithoutInitializer(node) { - return node.kind === 171 /* PropertyDeclaration */ && !hasAbstractModifier(node) && !node.exclamationToken && !node.initializer; + return node.kind === 172 /* PropertyDeclaration */ && !hasAbstractModifier(node) && !node.exclamationToken && !node.initializer; } function isPropertyInitializedInStaticBlocks(propName, propType, staticBlocks, startPos, endPos) { for (const staticBlock of staticBlocks) { @@ -81069,7 +81626,7 @@ ${lanes.join("\n")} checkExportsOnMergedDeclarations(node); const symbol = getSymbolOfDeclaration(node); checkTypeParameterListsIdentical(symbol); - const firstInterfaceDecl = getDeclarationOfKind(symbol, 263 /* InterfaceDeclaration */); + const firstInterfaceDecl = getDeclarationOfKind(symbol, 264 /* InterfaceDeclaration */); if (node === firstInterfaceDecl) { const type = getDeclaredTypeOfSymbol(symbol); const typeWithThis = getTypeWithThisArgument(type); @@ -81084,7 +81641,7 @@ ${lanes.join("\n")} }); forEach(getInterfaceBaseTypeNodes(node), (heritageElement) => { if (!isEntityNameExpression(heritageElement.expression) || isOptionalChain(heritageElement.expression)) { - error(heritageElement.expression, Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments); + error2(heritageElement.expression, Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments); } checkTypeReferenceNode(heritageElement); }); @@ -81101,7 +81658,7 @@ ${lanes.join("\n")} checkTypeParameters(node.typeParameters); if (node.type.kind === 141 /* IntrinsicKeyword */) { if (!intrinsicTypeKinds.has(node.name.escapedText) || length(node.typeParameters) !== 1) { - error(node.type, Diagnostics.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types); + error2(node.type, Diagnostics.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types); } } else { checkSourceElement(node.type); @@ -81122,23 +81679,23 @@ ${lanes.join("\n")} } function computeMemberValue(member, autoValue) { if (isComputedNonLiteralName(member.name)) { - error(member.name, Diagnostics.Computed_property_names_are_not_allowed_in_enums); + error2(member.name, Diagnostics.Computed_property_names_are_not_allowed_in_enums); } else { const text = getTextOfPropertyName(member.name); if (isNumericLiteralName(text) && !isInfinityOrNaNString(text)) { - error(member.name, Diagnostics.An_enum_member_cannot_have_a_numeric_name); + error2(member.name, Diagnostics.An_enum_member_cannot_have_a_numeric_name); } } if (member.initializer) { return computeConstantValue(member); } - if (member.parent.flags & 16777216 /* Ambient */ && !isEnumConst(member.parent)) { + if (member.parent.flags & 33554432 /* Ambient */ && !isEnumConst(member.parent)) { return void 0; } if (autoValue !== void 0) { return autoValue; } - error(member.name, Diagnostics.Enum_member_must_have_initializer); + error2(member.name, Diagnostics.Enum_member_must_have_initializer); return void 0; } function computeConstantValue(member) { @@ -81147,12 +81704,12 @@ ${lanes.join("\n")} const value = evaluate(initializer, member); if (value !== void 0) { if (isConstEnum && typeof value === "number" && !isFinite(value)) { - error(initializer, isNaN(value) ? Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN : Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value); + error2(initializer, isNaN(value) ? Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN : Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value); } } else if (isConstEnum) { - error(initializer, Diagnostics.const_enum_member_initializers_must_be_constant_expressions); - } else if (member.parent.flags & 16777216 /* Ambient */) { - error(initializer, Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression); + error2(initializer, Diagnostics.const_enum_member_initializers_must_be_constant_expressions); + } else if (member.parent.flags & 33554432 /* Ambient */) { + error2(initializer, Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression); } else { checkTypeAssignableTo(checkExpression(initializer), numberType, initializer, Diagnostics.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values); } @@ -81160,7 +81717,7 @@ ${lanes.join("\n")} } function evaluate(expr, location) { switch (expr.kind) { - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: const value = evaluate(expr.operand, location); if (typeof value === "number") { switch (expr.operator) { @@ -81173,7 +81730,7 @@ ${lanes.join("\n")} } } break; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: const left = evaluate(expr.left, location); const right = evaluate(expr.right, location); if (typeof left === "number" && typeof right === "number") { @@ -81210,18 +81767,30 @@ ${lanes.join("\n")} case 11 /* StringLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: return expr.text; - case 227 /* TemplateExpression */: + case 228 /* TemplateExpression */: return evaluateTemplateExpression(expr, location); case 9 /* NumericLiteral */: checkGrammarNumericLiteral(expr); return +expr.text; - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return evaluate(expr.expression, location); - case 80 /* Identifier */: - if (isInfinityOrNaNString(expr.escapedText)) { - return +expr.escapedText; + case 80 /* Identifier */: { + const identifier = expr; + if (isInfinityOrNaNString(identifier.escapedText) && resolveEntityName( + identifier, + 111551 /* Value */, + /*ignoreErrors*/ + true + ) === getGlobalSymbol( + identifier.escapedText, + 111551 /* Value */, + /*diagnostic*/ + void 0 + )) { + return +identifier.escapedText; } - case 210 /* PropertyAccessExpression */: + } + case 211 /* PropertyAccessExpression */: if (isEntityNameExpression(expr)) { const symbol = resolveEntityName( expr, @@ -81231,18 +81800,18 @@ ${lanes.join("\n")} ); if (symbol) { if (symbol.flags & 8 /* EnumMember */) { - return evaluateEnumMember(expr, symbol, location); + return location ? evaluateEnumMember(expr, symbol, location) : getEnumMemberValue(symbol.valueDeclaration); } - if (isConstVariable(symbol)) { + if (isConstantVariable(symbol)) { const declaration = symbol.valueDeclaration; - if (declaration && !declaration.type && declaration.initializer && declaration !== location && isBlockScopedNameDeclaredBeforeUse(declaration, location)) { + if (declaration && !declaration.type && declaration.initializer && (!location || declaration !== location && isBlockScopedNameDeclaredBeforeUse(declaration, location))) { return evaluate(declaration.initializer, declaration); } } } } break; - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: const root = expr.expression; if (isEntityNameExpression(root) && isStringLiteralLike(expr.argumentExpression)) { const rootSymbol = resolveEntityName( @@ -81255,7 +81824,7 @@ ${lanes.join("\n")} const name = escapeLeadingUnderscores(expr.argumentExpression.text); const member = rootSymbol.exports.get(name); if (member) { - return evaluateEnumMember(expr, member, location); + return location ? evaluateEnumMember(expr, member, location) : getEnumMemberValue(member.valueDeclaration); } } } @@ -81266,11 +81835,11 @@ ${lanes.join("\n")} function evaluateEnumMember(expr, symbol, location) { const declaration = symbol.valueDeclaration; if (!declaration || declaration === location) { - error(expr, Diagnostics.Property_0_is_used_before_being_assigned, symbolToString(symbol)); + error2(expr, Diagnostics.Property_0_is_used_before_being_assigned, symbolToString(symbol)); return void 0; } if (!isBlockScopedNameDeclaredBeforeUse(declaration, location)) { - error(expr, Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums); + error2(expr, Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums); return 0; } return getEnumMemberValue(declaration); @@ -81303,13 +81872,13 @@ ${lanes.join("\n")} const enumIsConst = isEnumConst(node); forEach(enumSymbol.declarations, (decl) => { if (isEnumDeclaration(decl) && isEnumConst(decl) !== enumIsConst) { - error(getNameOfDeclaration(decl), Diagnostics.Enum_declarations_must_all_be_const_or_non_const); + error2(getNameOfDeclaration(decl), Diagnostics.Enum_declarations_must_all_be_const_or_non_const); } }); } let seenEnumMissingInitialInitializer = false; forEach(enumSymbol.declarations, (declaration) => { - if (declaration.kind !== 265 /* EnumDeclaration */) { + if (declaration.kind !== 266 /* EnumDeclaration */) { return false; } const enumDeclaration = declaration; @@ -81319,7 +81888,7 @@ ${lanes.join("\n")} const firstEnumMember = enumDeclaration.members[0]; if (!firstEnumMember.initializer) { if (seenEnumMissingInitialInitializer) { - error(firstEnumMember.name, Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element); + error2(firstEnumMember.name, Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element); } else { seenEnumMissingInitialInitializer = true; } @@ -81329,7 +81898,7 @@ ${lanes.join("\n")} } function checkEnumMember(node) { if (isPrivateIdentifier(node.name)) { - error(node, Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier); + error2(node, Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier); } if (node.initializer) { checkExpression(node.initializer); @@ -81339,7 +81908,7 @@ ${lanes.join("\n")} const declarations = symbol.declarations; if (declarations) { for (const declaration of declarations) { - if ((declaration.kind === 262 /* ClassDeclaration */ || declaration.kind === 261 /* FunctionDeclaration */ && nodeIsPresent(declaration.body)) && !(declaration.flags & 16777216 /* Ambient */)) { + if ((declaration.kind === 263 /* ClassDeclaration */ || declaration.kind === 262 /* FunctionDeclaration */ && nodeIsPresent(declaration.body)) && !(declaration.flags & 33554432 /* Ambient */)) { return declaration; } } @@ -81368,9 +81937,9 @@ ${lanes.join("\n")} function checkModuleDeclarationDiagnostics() { var _a, _b; const isGlobalAugmentation = isGlobalScopeAugmentation(node); - const inAmbientContext = node.flags & 16777216 /* Ambient */; + const inAmbientContext = node.flags & 33554432 /* Ambient */; if (isGlobalAugmentation && !inAmbientContext) { - error(node.name, Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context); + error2(node.name, Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context); } const isAmbientExternalModule = isAmbientModule(node); const contextErrorMessage = isAmbientExternalModule ? Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file : Diagnostics.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module; @@ -81389,26 +81958,26 @@ ${lanes.join("\n")} const symbol = getSymbolOfDeclaration(node); if (symbol.flags & 512 /* ValueModule */ && !inAmbientContext && isInstantiatedModule(node, shouldPreserveConstEnums(compilerOptions))) { if (getIsolatedModules(compilerOptions) && !getSourceFileOfNode(node).externalModuleIndicator) { - error(node.name, Diagnostics.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement, isolatedModulesLikeFlagName); + error2(node.name, Diagnostics.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement, isolatedModulesLikeFlagName); } if (((_a = symbol.declarations) == null ? void 0 : _a.length) > 1) { const firstNonAmbientClassOrFunc = getFirstNonAmbientClassOrFunctionDeclaration(symbol); if (firstNonAmbientClassOrFunc) { if (getSourceFileOfNode(node) !== getSourceFileOfNode(firstNonAmbientClassOrFunc)) { - error(node.name, Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged); + error2(node.name, Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged); } else if (node.pos < firstNonAmbientClassOrFunc.pos) { - error(node.name, Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged); + error2(node.name, Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged); } } - const mergedClass = getDeclarationOfKind(symbol, 262 /* ClassDeclaration */); + const mergedClass = getDeclarationOfKind(symbol, 263 /* ClassDeclaration */); if (mergedClass && inSameLexicalScope(node, mergedClass)) { getNodeLinks(node).flags |= 2048 /* LexicalModuleMergesWithClass */; } } - if (compilerOptions.verbatimModuleSyntax && node.parent.kind === 311 /* SourceFile */ && (moduleKind === 1 /* CommonJS */ || node.parent.impliedNodeFormat === 1 /* CommonJS */)) { + if (compilerOptions.verbatimModuleSyntax && node.parent.kind === 312 /* SourceFile */ && (moduleKind === 1 /* CommonJS */ || node.parent.impliedNodeFormat === 1 /* CommonJS */)) { const exportModifier = (_b = node.modifiers) == null ? void 0 : _b.find((m) => m.kind === 95 /* ExportKeyword */); if (exportModifier) { - error(exportModifier, Diagnostics.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); + error2(exportModifier, Diagnostics.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); } } } @@ -81422,15 +81991,15 @@ ${lanes.join("\n")} } } else if (isGlobalSourceFile(node.parent)) { if (isGlobalAugmentation) { - error(node.name, Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations); + error2(node.name, Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations); } else if (isExternalModuleNameRelative(getTextOfIdentifierOrLiteral(node.name))) { - error(node.name, Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name); + error2(node.name, Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name); } } else { if (isGlobalAugmentation) { - error(node.name, Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations); + error2(node.name, Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations); } else { - error(node.name, Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces); + error2(node.name, Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces); } } } @@ -81438,21 +82007,21 @@ ${lanes.join("\n")} } function checkModuleAugmentationElement(node, isGlobalAugmentation) { switch (node.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: for (const decl of node.declarationList.declarations) { checkModuleAugmentationElement(decl, isGlobalAugmentation); } break; - case 276 /* ExportAssignment */: - case 277 /* ExportDeclaration */: + case 277 /* ExportAssignment */: + case 278 /* ExportDeclaration */: grammarErrorOnFirstToken(node, Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations); break; - case 270 /* ImportEqualsDeclaration */: - case 271 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 272 /* ImportDeclaration */: grammarErrorOnFirstToken(node, Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module); break; - case 207 /* BindingElement */: - case 259 /* VariableDeclaration */: + case 208 /* BindingElement */: + case 260 /* VariableDeclaration */: const name = node.name; if (isBindingPattern(name)) { for (const el of name.elements) { @@ -81460,12 +82029,12 @@ ${lanes.join("\n")} } break; } - case 262 /* ClassDeclaration */: - case 265 /* EnumDeclaration */: - case 261 /* FunctionDeclaration */: - case 263 /* InterfaceDeclaration */: - case 266 /* ModuleDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 263 /* ClassDeclaration */: + case 266 /* EnumDeclaration */: + case 262 /* FunctionDeclaration */: + case 264 /* InterfaceDeclaration */: + case 267 /* ModuleDeclaration */: + case 265 /* TypeAliasDeclaration */: if (isGlobalAugmentation) { return; } @@ -81476,12 +82045,12 @@ ${lanes.join("\n")} switch (node.kind) { case 80 /* Identifier */: return node; - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: do { node = node.left; } while (node.kind !== 80 /* Identifier */); return node; - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: do { if (isModuleExportsAccessExpression(node.expression) && !isPrivateIdentifier(node.name)) { return node.name; @@ -81497,17 +82066,17 @@ ${lanes.join("\n")} return false; } if (!isStringLiteral(moduleName)) { - error(moduleName, Diagnostics.String_literal_expected); + error2(moduleName, Diagnostics.String_literal_expected); return false; } - const inAmbientExternalModule = node.parent.kind === 267 /* ModuleBlock */ && isAmbientModule(node.parent.parent); - if (node.parent.kind !== 311 /* SourceFile */ && !inAmbientExternalModule) { - error(moduleName, node.kind === 277 /* ExportDeclaration */ ? Diagnostics.Export_declarations_are_not_permitted_in_a_namespace : Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module); + const inAmbientExternalModule = node.parent.kind === 268 /* ModuleBlock */ && isAmbientModule(node.parent.parent); + if (node.parent.kind !== 312 /* SourceFile */ && !inAmbientExternalModule) { + error2(moduleName, node.kind === 278 /* ExportDeclaration */ ? Diagnostics.Export_declarations_are_not_permitted_in_a_namespace : Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module); return false; } if (inAmbientExternalModule && isExternalModuleNameRelative(moduleName.text)) { if (!isTopLevelInExternalModuleAugmentation(node)) { - error(node, Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name); + error2(node, Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name); return false; } } @@ -81516,7 +82085,7 @@ ${lanes.join("\n")} for (const clause of node.assertClause.elements) { if (!isStringLiteral(clause.value)) { hasError = true; - error(clause.value, Diagnostics.Import_assertion_values_must_be_string_literal_expressions); + error2(clause.value, Diagnostics.Import_assertion_values_must_be_string_literal_expressions); } } return !hasError; @@ -81531,9 +82100,9 @@ ${lanes.join("\n")} symbol = getMergedSymbol(symbol.exportSymbol || symbol); if (isInJSFile(node) && !(target.flags & 111551 /* Value */) && !isTypeOnlyImportOrExportDeclaration(node)) { const errorNode = isImportOrExportSpecifier(node) ? node.propertyName || node.name : isNamedDeclaration(node) ? node.name : node; - Debug.assert(node.kind !== 279 /* NamespaceExport */); - if (node.kind === 280 /* ExportSpecifier */) { - const diag2 = error(errorNode, Diagnostics.Types_cannot_appear_in_export_declarations_in_JavaScript_files); + Debug.assert(node.kind !== 280 /* NamespaceExport */); + if (node.kind === 281 /* ExportSpecifier */) { + const diag2 = error2(errorNode, Diagnostics.Types_cannot_appear_in_export_declarations_in_JavaScript_files); const alreadyExportedSymbol = (_b = (_a = getSourceFileOfNode(node).symbol) == null ? void 0 : _a.exports) == null ? void 0 : _b.get((node.propertyName || node.name).escapedText); if (alreadyExportedSymbol === target) { const exportingDeclaration = (_c = alreadyExportedSymbol.declarations) == null ? void 0 : _c.find(isJSDocNode); @@ -81546,11 +82115,11 @@ ${lanes.join("\n")} } } } else { - Debug.assert(node.kind !== 259 /* VariableDeclaration */); + Debug.assert(node.kind !== 260 /* VariableDeclaration */); const importDeclaration = findAncestor(node, or(isImportDeclaration, isImportEqualsDeclaration)); const moduleSpecifier = (importDeclaration && ((_d = tryGetModuleSpecifierFromDeclaration(importDeclaration)) == null ? void 0 : _d.text)) ?? "..."; const importedIdentifier = unescapeLeadingUnderscores(isIdentifier(errorNode) ? errorNode.escapedText : symbol.escapedName); - error( + error2( errorNode, Diagnostics._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation, importedIdentifier, @@ -81559,47 +82128,47 @@ ${lanes.join("\n")} } return; } - const targetFlags = getAllSymbolFlags(target); + const targetFlags = getSymbolFlags(target); const excludedMeanings = (symbol.flags & (111551 /* Value */ | 1048576 /* ExportValue */) ? 111551 /* Value */ : 0) | (symbol.flags & 788968 /* Type */ ? 788968 /* Type */ : 0) | (symbol.flags & 1920 /* Namespace */ ? 1920 /* Namespace */ : 0); if (targetFlags & excludedMeanings) { - const message = node.kind === 280 /* ExportSpecifier */ ? Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0 : Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0; - error(node, message, symbolToString(symbol)); + const message = node.kind === 281 /* ExportSpecifier */ ? Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0 : Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0; + error2(node, message, symbolToString(symbol)); } - if (getIsolatedModules(compilerOptions) && !isTypeOnlyImportOrExportDeclaration(node) && !(node.flags & 16777216 /* Ambient */)) { + if (getIsolatedModules(compilerOptions) && !isTypeOnlyImportOrExportDeclaration(node) && !(node.flags & 33554432 /* Ambient */)) { const typeOnlyAlias = getTypeOnlyAliasDeclaration(symbol); const isType = !(targetFlags & 111551 /* Value */); if (isType || typeOnlyAlias) { switch (node.kind) { - case 272 /* ImportClause */: - case 275 /* ImportSpecifier */: - case 270 /* ImportEqualsDeclaration */: { + case 273 /* ImportClause */: + case 276 /* ImportSpecifier */: + case 271 /* ImportEqualsDeclaration */: { if (compilerOptions.preserveValueImports || compilerOptions.verbatimModuleSyntax) { Debug.assertIsDefined(node.name, "An ImportClause with a symbol should have a name"); const message = compilerOptions.verbatimModuleSyntax && isInternalModuleImportEqualsDeclaration(node) ? Diagnostics.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled : isType ? compilerOptions.verbatimModuleSyntax ? Diagnostics._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled : Diagnostics._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled : compilerOptions.verbatimModuleSyntax ? Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled : Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled; - const name = idText(node.kind === 275 /* ImportSpecifier */ ? node.propertyName || node.name : node.name); + const name = idText(node.kind === 276 /* ImportSpecifier */ ? node.propertyName || node.name : node.name); addTypeOnlyDeclarationRelatedInfo( - error(node, message, name), + error2(node, message, name), isType ? void 0 : typeOnlyAlias, name ); } - if (isType && node.kind === 270 /* ImportEqualsDeclaration */ && hasEffectiveModifier(node, 1 /* Export */)) { - error(node, Diagnostics.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled, isolatedModulesLikeFlagName); + if (isType && node.kind === 271 /* ImportEqualsDeclaration */ && hasEffectiveModifier(node, 1 /* Export */)) { + error2(node, Diagnostics.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled, isolatedModulesLikeFlagName); } break; } - case 280 /* ExportSpecifier */: { + case 281 /* ExportSpecifier */: { if (compilerOptions.verbatimModuleSyntax || getSourceFileOfNode(typeOnlyAlias) !== getSourceFileOfNode(node)) { const name = idText(node.propertyName || node.name); - const diagnostic = isType ? error(node, Diagnostics.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type, isolatedModulesLikeFlagName) : error(node, Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled, name, isolatedModulesLikeFlagName); + const diagnostic = isType ? error2(node, Diagnostics.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type, isolatedModulesLikeFlagName) : error2(node, Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled, name, isolatedModulesLikeFlagName); addTypeOnlyDeclarationRelatedInfo(diagnostic, isType ? void 0 : typeOnlyAlias, name); break; } } } } - if (compilerOptions.verbatimModuleSyntax && node.kind !== 270 /* ImportEqualsDeclaration */ && !isInJSFile(node) && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { - error(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); + if (compilerOptions.verbatimModuleSyntax && node.kind !== 271 /* ImportEqualsDeclaration */ && !isInJSFile(node) && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { + error2(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); } } if (isImportSpecifier(node)) { @@ -81641,7 +82210,7 @@ ${lanes.join("\n")} function checkImportBinding(node) { checkCollisionsForDeclarationName(node, node.name); checkAliasSymbol(node); - if (node.kind === 275 /* ImportSpecifier */ && idText(node.propertyName || node.name) === "default" && getESModuleInterop(compilerOptions) && moduleKind !== 4 /* System */ && (moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { + if (node.kind === 276 /* ImportSpecifier */ && idText(node.propertyName || node.name) === "default" && getESModuleInterop(compilerOptions) && moduleKind !== 4 /* System */ && (moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { checkExternalEmitHelpers(node, 131072 /* ImportDefault */); } } @@ -81688,7 +82257,7 @@ ${lanes.join("\n")} checkImportBinding(importClause); } if (importClause.namedBindings) { - if (importClause.namedBindings.kind === 273 /* NamespaceImport */) { + if (importClause.namedBindings.kind === 274 /* NamespaceImport */) { checkImportBinding(importClause.namedBindings); if (moduleKind !== 4 /* System */ && (moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */) && getESModuleInterop(compilerOptions)) { checkExternalEmitHelpers(node, 65536 /* ImportStar */); @@ -81714,14 +82283,14 @@ ${lanes.join("\n")} if (hasSyntacticModifier(node, 1 /* Export */)) { markExportAsReferenced(node); } - if (node.moduleReference.kind !== 282 /* ExternalModuleReference */) { + if (node.moduleReference.kind !== 283 /* ExternalModuleReference */) { const target = resolveAlias(getSymbolOfDeclaration(node)); if (target !== unknownSymbol) { - const targetFlags = getAllSymbolFlags(target); + const targetFlags = getSymbolFlags(target); if (targetFlags & 111551 /* Value */) { const moduleName = getFirstIdentifier(node.moduleReference); if (!(resolveEntityName(moduleName, 111551 /* Value */ | 1920 /* Namespace */).flags & 1920 /* Namespace */)) { - error(moduleName, Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name, declarationNameToString(moduleName)); + error2(moduleName, Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name, declarationNameToString(moduleName)); } } if (targetFlags & 788968 /* Type */) { @@ -81732,7 +82301,7 @@ ${lanes.join("\n")} grammarErrorOnNode(node, Diagnostics.An_import_alias_cannot_use_import_type); } } else { - if (moduleKind >= 5 /* ES2015 */ && getSourceFileOfNode(node).impliedNodeFormat === void 0 && !node.isTypeOnly && !(node.flags & 16777216 /* Ambient */)) { + if (moduleKind >= 5 /* ES2015 */ && getSourceFileOfNode(node).impliedNodeFormat === void 0 && !node.isTypeOnly && !(node.flags & 33554432 /* Ambient */)) { grammarErrorOnNode(node, Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead); } } @@ -81752,15 +82321,15 @@ ${lanes.join("\n")} if (!node.moduleSpecifier || checkExternalImportOrExportDeclaration(node)) { if (node.exportClause && !isNamespaceExport(node.exportClause)) { forEach(node.exportClause.elements, checkExportSpecifier); - const inAmbientExternalModule = node.parent.kind === 267 /* ModuleBlock */ && isAmbientModule(node.parent.parent); - const inAmbientNamespaceDeclaration = !inAmbientExternalModule && node.parent.kind === 267 /* ModuleBlock */ && !node.moduleSpecifier && node.flags & 16777216 /* Ambient */; - if (node.parent.kind !== 311 /* SourceFile */ && !inAmbientExternalModule && !inAmbientNamespaceDeclaration) { - error(node, Diagnostics.Export_declarations_are_not_permitted_in_a_namespace); + const inAmbientExternalModule = node.parent.kind === 268 /* ModuleBlock */ && isAmbientModule(node.parent.parent); + const inAmbientNamespaceDeclaration = !inAmbientExternalModule && node.parent.kind === 268 /* ModuleBlock */ && !node.moduleSpecifier && node.flags & 33554432 /* Ambient */; + if (node.parent.kind !== 312 /* SourceFile */ && !inAmbientExternalModule && !inAmbientNamespaceDeclaration) { + error2(node, Diagnostics.Export_declarations_are_not_permitted_in_a_namespace); } } else { const moduleSymbol = resolveExternalModuleName(node, node.moduleSpecifier); if (moduleSymbol && hasExportAssignmentSymbol(moduleSymbol)) { - error(node.moduleSpecifier, Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk, symbolToString(moduleSymbol)); + error2(node.moduleSpecifier, Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk, symbolToString(moduleSymbol)); } else if (node.exportClause) { checkAliasSymbol(node.exportClause); } @@ -81779,13 +82348,13 @@ ${lanes.join("\n")} } function checkGrammarExportDeclaration(node) { var _a; - if (node.isTypeOnly && ((_a = node.exportClause) == null ? void 0 : _a.kind) === 278 /* NamedExports */) { + if (node.isTypeOnly && ((_a = node.exportClause) == null ? void 0 : _a.kind) === 279 /* NamedExports */) { return checkGrammarNamedImportsOrExports(node.exportClause); } return false; } function checkGrammarModuleElementContext(node, errorMessage) { - const isInAppropriateContext = node.parent.kind === 311 /* SourceFile */ || node.parent.kind === 267 /* ModuleBlock */ || node.parent.kind === 266 /* ModuleDeclaration */; + const isInAppropriateContext = node.parent.kind === 312 /* SourceFile */ || node.parent.kind === 268 /* ModuleBlock */ || node.parent.kind === 267 /* ModuleDeclaration */; if (!isInAppropriateContext) { grammarErrorOnFirstToken(node, errorMessage); } @@ -81821,7 +82390,7 @@ ${lanes.join("\n")} } for (const statement of sourceFile.statements) { if (canConvertImportDeclarationToTypeOnly(statement) || canConvertImportEqualsDeclarationToTypeOnly(statement)) { - error( + error2( statement, Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error ); @@ -81851,13 +82420,13 @@ ${lanes.join("\n")} true ); if (symbol && (symbol === undefinedSymbol || symbol === globalThisSymbol || symbol.declarations && isGlobalSourceFile(getDeclarationContainer(symbol.declarations[0])))) { - error(exportedName, Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module, idText(exportedName)); + error2(exportedName, Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module, idText(exportedName)); } else { if (!node.isTypeOnly && !node.parent.parent.isTypeOnly) { markExportAsReferenced(node); } const target = symbol && (symbol.flags & 2097152 /* Alias */ ? resolveAlias(symbol) : symbol); - if (!target || getAllSymbolFlags(target) & 111551 /* Value */) { + if (!target || getSymbolFlags(target) & 111551 /* Value */) { checkExpressionCached(node.propertyName || node.name); } } @@ -81872,12 +82441,12 @@ ${lanes.join("\n")} if (checkGrammarModuleElementContext(node, illegalContextMessage)) { return; } - const container = node.parent.kind === 311 /* SourceFile */ ? node.parent : node.parent.parent; - if (container.kind === 266 /* ModuleDeclaration */ && !isAmbientModule(container)) { + const container = node.parent.kind === 312 /* SourceFile */ ? node.parent : node.parent.parent; + if (container.kind === 267 /* ModuleDeclaration */ && !isAmbientModule(container)) { if (node.isExportEquals) { - error(node, Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace); + error2(node, Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace); } else { - error(node, Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module); + error2(node, Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module); } return; } @@ -81888,7 +82457,7 @@ ${lanes.join("\n")} if (typeAnnotationNode) { checkTypeAssignableTo(checkExpressionCached(node.expression), getTypeFromTypeNode(typeAnnotationNode), node.expression); } - const isIllegalExportDefaultInCJS = !node.isExportEquals && !(node.flags & 16777216 /* Ambient */) && compilerOptions.verbatimModuleSyntax && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */); + const isIllegalExportDefaultInCJS = !node.isExportEquals && !(node.flags & 33554432 /* Ambient */) && compilerOptions.verbatimModuleSyntax && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */); if (node.expression.kind === 80 /* Identifier */) { const id = node.expression; const sym = getExportSymbolOfValueSymbolIfExported(resolveEntityName( @@ -81902,17 +82471,17 @@ ${lanes.join("\n")} )); if (sym) { markAliasReferenced(sym, id); - if (getAllSymbolFlags(sym) & 111551 /* Value */) { + if (getSymbolFlags(sym) & 111551 /* Value */) { checkExpressionCached(id); - if (!isIllegalExportDefaultInCJS && !(node.flags & 16777216 /* Ambient */) && compilerOptions.verbatimModuleSyntax && getTypeOnlyAliasDeclaration(sym, 111551 /* Value */)) { - error( + if (!isIllegalExportDefaultInCJS && !(node.flags & 33554432 /* Ambient */) && compilerOptions.verbatimModuleSyntax && getTypeOnlyAliasDeclaration(sym, 111551 /* Value */)) { + error2( id, node.isExportEquals ? Diagnostics.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration : Diagnostics.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration, idText(id) ); } - } else if (!isIllegalExportDefaultInCJS && !(node.flags & 16777216 /* Ambient */) && compilerOptions.verbatimModuleSyntax) { - error( + } else if (!isIllegalExportDefaultInCJS && !(node.flags & 33554432 /* Ambient */) && compilerOptions.verbatimModuleSyntax) { + error2( id, node.isExportEquals ? Diagnostics.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type : Diagnostics.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type, idText(id) @@ -81932,16 +82501,16 @@ ${lanes.join("\n")} checkExpressionCached(node.expression); } if (isIllegalExportDefaultInCJS) { - error(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); + error2(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); } checkExternalModuleExports(container); - if (node.flags & 16777216 /* Ambient */ && !isEntityNameExpression(node.expression)) { + if (node.flags & 33554432 /* Ambient */ && !isEntityNameExpression(node.expression)) { grammarErrorOnNode(node.expression, Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context); } if (node.isExportEquals) { - if (moduleKind >= 5 /* ES2015 */ && (node.flags & 16777216 /* Ambient */ && getSourceFileOfNode(node).impliedNodeFormat === 99 /* ESNext */ || !(node.flags & 16777216 /* Ambient */) && getSourceFileOfNode(node).impliedNodeFormat !== 1 /* CommonJS */)) { + if (moduleKind >= 5 /* ES2015 */ && (node.flags & 33554432 /* Ambient */ && getSourceFileOfNode(node).impliedNodeFormat === 99 /* ESNext */ || !(node.flags & 33554432 /* Ambient */) && getSourceFileOfNode(node).impliedNodeFormat !== 1 /* CommonJS */)) { grammarErrorOnNode(node, Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead); - } else if (moduleKind === 4 /* System */ && !(node.flags & 16777216 /* Ambient */)) { + } else if (moduleKind === 4 /* System */ && !(node.flags & 33554432 /* Ambient */)) { grammarErrorOnNode(node, Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system); } } @@ -81957,7 +82526,7 @@ ${lanes.join("\n")} if (exportEqualsSymbol && hasExportedMembers(moduleSymbol)) { const declaration = getDeclarationOfAliasSymbol(exportEqualsSymbol) || exportEqualsSymbol.valueDeclaration; if (declaration && !isTopLevelInExternalModuleAugmentation(declaration) && !isInJSFile(declaration)) { - error(declaration, Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements); + error2(declaration, Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements); } } const exports = getExportsOfModule(moduleSymbol); @@ -82014,182 +82583,182 @@ ${lanes.join("\n")} const kind = node.kind; if (cancellationToken) { switch (kind) { - case 266 /* ModuleDeclaration */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 261 /* FunctionDeclaration */: + case 267 /* ModuleDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 262 /* FunctionDeclaration */: cancellationToken.throwIfCancellationRequested(); } } - if (kind >= 242 /* FirstStatement */ && kind <= 258 /* LastStatement */ && canHaveFlowNode(node) && node.flowNode && !isReachableFlowNode(node.flowNode)) { + if (kind >= 243 /* FirstStatement */ && kind <= 259 /* LastStatement */ && canHaveFlowNode(node) && node.flowNode && !isReachableFlowNode(node.flowNode)) { errorOrSuggestion(compilerOptions.allowUnreachableCode === false, node, Diagnostics.Unreachable_code_detected); } switch (kind) { - case 167 /* TypeParameter */: + case 168 /* TypeParameter */: return checkTypeParameter(node); - case 168 /* Parameter */: + case 169 /* Parameter */: return checkParameter(node); - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return checkPropertyDeclaration(node); - case 170 /* PropertySignature */: + case 171 /* PropertySignature */: return checkPropertySignature(node); - case 184 /* ConstructorType */: - case 183 /* FunctionType */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 180 /* IndexSignature */: + case 185 /* ConstructorType */: + case 184 /* FunctionType */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 181 /* IndexSignature */: return checkSignatureDeclaration(node); - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: return checkMethodDeclaration(node); - case 174 /* ClassStaticBlockDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: return checkClassStaticBlockDeclaration(node); - case 175 /* Constructor */: + case 176 /* Constructor */: return checkConstructorDeclaration(node); - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return checkAccessorDeclaration(node); - case 182 /* TypeReference */: + case 183 /* TypeReference */: return checkTypeReferenceNode(node); - case 181 /* TypePredicate */: + case 182 /* TypePredicate */: return checkTypePredicate(node); - case 185 /* TypeQuery */: + case 186 /* TypeQuery */: return checkTypeQuery(node); - case 186 /* TypeLiteral */: + case 187 /* TypeLiteral */: return checkTypeLiteral(node); - case 187 /* ArrayType */: + case 188 /* ArrayType */: return checkArrayType(node); - case 188 /* TupleType */: + case 189 /* TupleType */: return checkTupleType(node); - case 191 /* UnionType */: - case 192 /* IntersectionType */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: return checkUnionOrIntersectionType(node); - case 195 /* ParenthesizedType */: - case 189 /* OptionalType */: - case 190 /* RestType */: + case 196 /* ParenthesizedType */: + case 190 /* OptionalType */: + case 191 /* RestType */: return checkSourceElement(node.type); - case 196 /* ThisType */: + case 197 /* ThisType */: return checkThisType(node); - case 197 /* TypeOperator */: + case 198 /* TypeOperator */: return checkTypeOperator(node); - case 193 /* ConditionalType */: + case 194 /* ConditionalType */: return checkConditionalType(node); - case 194 /* InferType */: + case 195 /* InferType */: return checkInferType(node); - case 202 /* TemplateLiteralType */: + case 203 /* TemplateLiteralType */: return checkTemplateLiteralType(node); - case 204 /* ImportType */: + case 205 /* ImportType */: return checkImportType(node); - case 201 /* NamedTupleMember */: + case 202 /* NamedTupleMember */: return checkNamedTupleMember(node); - case 334 /* JSDocAugmentsTag */: + case 335 /* JSDocAugmentsTag */: return checkJSDocAugmentsTag(node); - case 335 /* JSDocImplementsTag */: + case 336 /* JSDocImplementsTag */: return checkJSDocImplementsTag(node); - case 352 /* JSDocTypedefTag */: - case 344 /* JSDocCallbackTag */: - case 346 /* JSDocEnumTag */: + case 353 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: + case 347 /* JSDocEnumTag */: return checkJSDocTypeAliasTag(node); - case 351 /* JSDocTemplateTag */: + case 352 /* JSDocTemplateTag */: return checkJSDocTemplateTag(node); - case 350 /* JSDocTypeTag */: + case 351 /* JSDocTypeTag */: return checkJSDocTypeTag(node); - case 330 /* JSDocLink */: - case 331 /* JSDocLinkCode */: - case 332 /* JSDocLinkPlain */: + case 331 /* JSDocLink */: + case 332 /* JSDocLinkCode */: + case 333 /* JSDocLinkPlain */: return checkJSDocLinkLikeTag(node); - case 347 /* JSDocParameterTag */: + case 348 /* JSDocParameterTag */: return checkJSDocParameterTag(node); - case 354 /* JSDocPropertyTag */: + case 355 /* JSDocPropertyTag */: return checkJSDocPropertyTag(node); - case 323 /* JSDocFunctionType */: + case 324 /* JSDocFunctionType */: checkJSDocFunctionType(node); - case 321 /* JSDocNonNullableType */: - case 320 /* JSDocNullableType */: - case 318 /* JSDocAllType */: - case 319 /* JSDocUnknownType */: - case 328 /* JSDocTypeLiteral */: + case 322 /* JSDocNonNullableType */: + case 321 /* JSDocNullableType */: + case 319 /* JSDocAllType */: + case 320 /* JSDocUnknownType */: + case 329 /* JSDocTypeLiteral */: checkJSDocTypeIsInJsFile(node); forEachChild(node, checkSourceElement); return; - case 324 /* JSDocVariadicType */: + case 325 /* JSDocVariadicType */: checkJSDocVariadicType(node); return; - case 315 /* JSDocTypeExpression */: + case 316 /* JSDocTypeExpression */: return checkSourceElement(node.type); - case 339 /* JSDocPublicTag */: - case 341 /* JSDocProtectedTag */: - case 340 /* JSDocPrivateTag */: + case 340 /* JSDocPublicTag */: + case 342 /* JSDocProtectedTag */: + case 341 /* JSDocPrivateTag */: return checkJSDocAccessibilityModifiers(node); - case 356 /* JSDocSatisfiesTag */: + case 357 /* JSDocSatisfiesTag */: return checkJSDocSatisfiesTag(node); - case 198 /* IndexedAccessType */: + case 199 /* IndexedAccessType */: return checkIndexedAccessType(node); - case 199 /* MappedType */: + case 200 /* MappedType */: return checkMappedType(node); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return checkFunctionDeclaration(node); - case 240 /* Block */: - case 267 /* ModuleBlock */: + case 241 /* Block */: + case 268 /* ModuleBlock */: return checkBlock(node); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return checkVariableStatement(node); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return checkExpressionStatement(node); - case 244 /* IfStatement */: + case 245 /* IfStatement */: return checkIfStatement(node); - case 245 /* DoStatement */: + case 246 /* DoStatement */: return checkDoStatement(node); - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: return checkWhileStatement(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return checkForStatement(node); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return checkForInStatement(node); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return checkForOfStatement(node); - case 250 /* ContinueStatement */: - case 251 /* BreakStatement */: + case 251 /* ContinueStatement */: + case 252 /* BreakStatement */: return checkBreakOrContinueStatement(node); - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: return checkReturnStatement(node); - case 253 /* WithStatement */: + case 254 /* WithStatement */: return checkWithStatement(node); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return checkSwitchStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return checkLabeledStatement(node); - case 256 /* ThrowStatement */: + case 257 /* ThrowStatement */: return checkThrowStatement(node); - case 257 /* TryStatement */: + case 258 /* TryStatement */: return checkTryStatement(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return checkVariableDeclaration(node); - case 207 /* BindingElement */: + case 208 /* BindingElement */: return checkBindingElement(node); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return checkClassDeclaration(node); - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: return checkInterfaceDeclaration(node); - case 264 /* TypeAliasDeclaration */: + case 265 /* TypeAliasDeclaration */: return checkTypeAliasDeclaration(node); - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return checkEnumDeclaration(node); - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return checkModuleDeclaration(node); - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return checkImportDeclaration(node); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return checkImportEqualsDeclaration(node); - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return checkExportDeclaration(node); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return checkExportAssignment(node); - case 241 /* EmptyStatement */: - case 258 /* DebuggerStatement */: + case 242 /* EmptyStatement */: + case 259 /* DebuggerStatement */: checkGrammarStatementInAmbientContext(node); return; - case 281 /* MissingDeclaration */: + case 282 /* MissingDeclaration */: return checkMissingDeclaration(node); } } @@ -82223,16 +82792,16 @@ ${lanes.join("\n")} const { parent: parent2 } = node; if (isParameter(parent2) && isJSDocFunctionType(parent2.parent)) { if (last(parent2.parent.parameters) !== parent2) { - error(node, Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list); + error2(node, Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list); } return; } if (!isJSDocTypeExpression(parent2)) { - error(node, Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature); + error2(node, Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature); } const paramTag = node.parent.parent; if (!isJSDocParameterTag(paramTag)) { - error(node, Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature); + error2(node, Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature); return; } const param = getParameterSymbolFromJSDoc(paramTag); @@ -82241,7 +82810,7 @@ ${lanes.join("\n")} } const host2 = getHostSignatureFromJSDoc(paramTag); if (!host2 || last(host2.parameters).symbol !== param) { - error(node, Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list); + error2(node, Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list); } } function getTypeFromJSDocVariadicType(node) { @@ -82288,38 +82857,38 @@ ${lanes.join("\n")} currentNode = node; instantiationCount = 0; switch (node.kind) { - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 214 /* TaggedTemplateExpression */: - case 169 /* Decorator */: - case 285 /* JsxOpeningElement */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 215 /* TaggedTemplateExpression */: + case 170 /* Decorator */: + case 286 /* JsxOpeningElement */: resolveUntypedCall(node); break; - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: checkFunctionExpressionOrObjectLiteralMethodDeferred(node); break; - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: checkAccessorDeclaration(node); break; - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: checkClassExpressionDeferred(node); break; - case 167 /* TypeParameter */: + case 168 /* TypeParameter */: checkTypeParameterDeferred(node); break; - case 284 /* JsxSelfClosingElement */: + case 285 /* JsxSelfClosingElement */: checkJsxSelfClosingElementDeferred(node); break; - case 283 /* JsxElement */: + case 284 /* JsxElement */: checkJsxElementDeferred(node); break; - case 215 /* TypeAssertionExpression */: - case 233 /* AsExpression */: - case 216 /* ParenthesizedExpression */: + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: + case 217 /* ParenthesizedExpression */: checkAssertionDeferred(node); } currentNode = saveCurrentNode; @@ -82377,7 +82946,7 @@ ${lanes.join("\n")} addLazyDiagnostic(() => { if (!node.isDeclarationFile && (compilerOptions.noUnusedLocals || compilerOptions.noUnusedParameters)) { checkUnusedIdentifiers(getPotentiallyUnusedIdentifiers(node), (containingNode, kind, diag2) => { - if (!containsParseError(containingNode) && unusedIsError(kind, !!(containingNode.flags & 16777216 /* Ambient */))) { + if (!containsParseError(containingNode) && unusedIsError(kind, !!(containingNode.flags & 33554432 /* Ambient */))) { diagnostics.add(diag2); } }); @@ -82456,7 +83025,7 @@ ${lanes.join("\n")} return diagnostics.getGlobalDiagnostics(); } function getSymbolsInScope(location, meaning) { - if (location.flags & 33554432 /* InWithStatement */) { + if (location.flags & 67108864 /* InWithStatement */) { return []; } const symbols = createSymbolTable(); @@ -82470,27 +83039,27 @@ ${lanes.join("\n")} copySymbols(location.locals, meaning); } switch (location.kind) { - case 311 /* SourceFile */: + case 312 /* SourceFile */: if (!isExternalModule(location)) break; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: copyLocallyVisibleExportSymbols(getSymbolOfDeclaration(location).exports, meaning & 2623475 /* ModuleMember */); break; - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: copySymbols(getSymbolOfDeclaration(location).exports, meaning & 8 /* EnumMember */); break; - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: const className = location.name; if (className) { copySymbol(location.symbol, meaning); } - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: if (!isStaticSymbol) { copySymbols(getMembersOfSymbol(getSymbolOfDeclaration(location)), meaning & 788968 /* Type */); } break; - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: const funcName = location.name; if (funcName) { copySymbol(location.symbol, meaning); @@ -82523,7 +83092,7 @@ ${lanes.join("\n")} function copyLocallyVisibleExportSymbols(source, meaning2) { if (meaning2) { source.forEach((symbol) => { - if (!getDeclarationOfKind(symbol, 280 /* ExportSpecifier */) && !getDeclarationOfKind(symbol, 279 /* NamespaceExport */)) { + if (!getDeclarationOfKind(symbol, 281 /* ExportSpecifier */) && !getDeclarationOfKind(symbol, 280 /* NamespaceExport */) && symbol.escapedName !== "default" /* Default */) { copySymbol(symbol, meaning2); } }); @@ -82534,16 +83103,16 @@ ${lanes.join("\n")} return name.kind === 80 /* Identifier */ && isTypeDeclaration(name.parent) && getNameOfDeclaration(name.parent) === name; } function isTypeReferenceIdentifier(node) { - while (node.parent.kind === 165 /* QualifiedName */) { + while (node.parent.kind === 166 /* QualifiedName */) { node = node.parent; } - return node.parent.kind === 182 /* TypeReference */; + return node.parent.kind === 183 /* TypeReference */; } function isInNameOfExpressionWithTypeArguments(node) { - while (node.parent.kind === 210 /* PropertyAccessExpression */) { + while (node.parent.kind === 211 /* PropertyAccessExpression */) { node = node.parent; } - return node.parent.kind === 232 /* ExpressionWithTypeArguments */; + return node.parent.kind === 233 /* ExpressionWithTypeArguments */; } function forEachEnclosingClass(node, callback) { let result; @@ -82569,13 +83138,13 @@ ${lanes.join("\n")} return !!forEachEnclosingClass(node, (n) => n === classDeclaration); } function getLeftSideOfImportEqualsOrExportAssignment(nodeOnRightSide) { - while (nodeOnRightSide.parent.kind === 165 /* QualifiedName */) { + while (nodeOnRightSide.parent.kind === 166 /* QualifiedName */) { nodeOnRightSide = nodeOnRightSide.parent; } - if (nodeOnRightSide.parent.kind === 270 /* ImportEqualsDeclaration */) { + if (nodeOnRightSide.parent.kind === 271 /* ImportEqualsDeclaration */) { return nodeOnRightSide.parent.moduleReference === nodeOnRightSide ? nodeOnRightSide.parent : void 0; } - if (nodeOnRightSide.parent.kind === 276 /* ExportAssignment */) { + if (nodeOnRightSide.parent.kind === 277 /* ExportAssignment */) { return nodeOnRightSide.parent.expression === nodeOnRightSide ? nodeOnRightSide.parent : void 0; } return void 0; @@ -82601,7 +83170,7 @@ ${lanes.join("\n")} node = parent2; parent2 = parent2.parent; } - if (parent2 && parent2.kind === 204 /* ImportType */ && parent2.qualifier === node) { + if (parent2 && parent2.kind === 205 /* ImportType */ && parent2.qualifier === node) { return parent2; } return void 0; @@ -82623,7 +83192,7 @@ ${lanes.join("\n")} /*contextFlags*/ void 0 ); - const type = contextualType && getThisTypeFromContextualType(contextualType); + const type = getThisTypeOfObjectLiteralFromContextualType(containingLiteral, contextualType); return type && !isTypeAny(type); } } @@ -82633,7 +83202,7 @@ ${lanes.join("\n")} if (isDeclarationName(name)) { return getSymbolOfNode(name.parent); } - if (isInJSFile(name) && name.parent.kind === 210 /* PropertyAccessExpression */ && name.parent === name.parent.parent.left) { + if (isInJSFile(name) && name.parent.kind === 211 /* PropertyAccessExpression */ && name.parent === name.parent.parent.left) { if (!isPrivateIdentifier(name) && !isJSDocMemberName(name) && !isThisPropertyAndThisTyped(name.parent)) { const specialPropertyAssignmentSymbol = getSpecialPropertyAssignmentSymbolFromEntityName(name); if (specialPropertyAssignmentSymbol) { @@ -82641,7 +83210,7 @@ ${lanes.join("\n")} } } } - if (name.parent.kind === 276 /* ExportAssignment */ && isEntityNameExpression(name)) { + if (name.parent.kind === 277 /* ExportAssignment */ && isEntityNameExpression(name)) { const success = resolveEntityName( name, /*all meanings*/ @@ -82653,7 +83222,7 @@ ${lanes.join("\n")} return success; } } else if (isEntityName(name) && isInRightSideOfImportOrExportAssignment(name)) { - const importEqualsDeclaration = getAncestor(name, 270 /* ImportEqualsDeclaration */); + const importEqualsDeclaration = getAncestor(name, 271 /* ImportEqualsDeclaration */); Debug.assert(importEqualsDeclaration !== void 0); return getSymbolOfPartOfRightHandSideOfImportEquals( name, @@ -82674,7 +83243,7 @@ ${lanes.join("\n")} } if (isInNameOfExpressionWithTypeArguments(name)) { let meaning = 0 /* None */; - if (name.parent.kind === 232 /* ExpressionWithTypeArguments */) { + if (name.parent.kind === 233 /* ExpressionWithTypeArguments */) { meaning = isPartOfTypeNode(name) ? 788968 /* Type */ : 111551 /* Value */; if (isExpressionWithTypeArgumentsInClassExtendsClause(name.parent)) { meaning |= 111551 /* Value */; @@ -82693,10 +83262,10 @@ ${lanes.join("\n")} return entityNameSymbol; } } - if (name.parent.kind === 347 /* JSDocParameterTag */) { + if (name.parent.kind === 348 /* JSDocParameterTag */) { return getParameterSymbolFromJSDoc(name.parent); } - if (name.parent.kind === 167 /* TypeParameter */ && name.parent.parent.kind === 351 /* JSDocTemplateTag */) { + if (name.parent.kind === 168 /* TypeParameter */ && name.parent.parent.kind === 352 /* JSDocTemplateTag */) { Debug.assert(!isInJSFile(name)); const typeParameter = getTypeParameterFromJsDoc(name.parent); return typeParameter && typeParameter.symbol; @@ -82749,12 +83318,12 @@ ${lanes.join("\n")} return result; } else if (isPrivateIdentifier(name)) { return getSymbolForPrivateIdentifierExpression(name); - } else if (name.kind === 210 /* PropertyAccessExpression */ || name.kind === 165 /* QualifiedName */) { + } else if (name.kind === 211 /* PropertyAccessExpression */ || name.kind === 166 /* QualifiedName */) { const links = getNodeLinks(name); if (links.resolvedSymbol) { return links.resolvedSymbol; } - if (name.kind === 210 /* PropertyAccessExpression */) { + if (name.kind === 211 /* PropertyAccessExpression */) { checkPropertyAccessExpression(name, 0 /* Normal */); if (!links.resolvedSymbol) { const expressionType = checkExpressionCached(name.expression); @@ -82794,7 +83363,7 @@ ${lanes.join("\n")} return resolveJSDocMemberName(name); } } else if (isTypeReferenceIdentifier(name)) { - const meaning = name.parent.kind === 182 /* TypeReference */ ? 788968 /* Type */ : 1920 /* Namespace */; + const meaning = name.parent.kind === 183 /* TypeReference */ ? 788968 /* Type */ : 1920 /* Namespace */; const symbol = resolveEntityName( name, meaning, @@ -82805,7 +83374,7 @@ ${lanes.join("\n")} ); return symbol && symbol !== unknownSymbol ? symbol : getUnresolvedSymbolForEntityName(name); } - if (name.parent.kind === 181 /* TypePredicate */) { + if (name.parent.kind === 182 /* TypePredicate */) { return resolveEntityName( name, /*meaning*/ @@ -82846,7 +83415,7 @@ ${lanes.join("\n")} } const { parent: parent2 } = node; const grandParent = parent2.parent; - if (node.flags & 33554432 /* InWithStatement */) { + if (node.flags & 67108864 /* InWithStatement */) { return void 0; } if (isDeclarationNameOrImportPropertyName(node)) { @@ -82858,7 +83427,7 @@ ${lanes.join("\n")} if (node.kind === 80 /* Identifier */) { if (isInRightSideOfImportOrExportAssignment(node)) { return getSymbolOfNameOrPropertyAccessExpression(node); - } else if (parent2.kind === 207 /* BindingElement */ && grandParent.kind === 205 /* ObjectBindingPattern */ && node === parent2.propertyName) { + } else if (parent2.kind === 208 /* BindingElement */ && grandParent.kind === 206 /* ObjectBindingPattern */ && node === parent2.propertyName) { const typeOfPattern = getTypeOfNode(grandParent); const propertyDeclaration = getPropertyOfType(typeOfPattern, node.escapedText); if (propertyDeclaration) { @@ -82877,8 +83446,8 @@ ${lanes.join("\n")} switch (node.kind) { case 80 /* Identifier */: case 81 /* PrivateIdentifier */: - case 210 /* PropertyAccessExpression */: - case 165 /* QualifiedName */: + case 211 /* PropertyAccessExpression */: + case 166 /* QualifiedName */: if (!isThisInTypeQuery(node)) { return getSymbolOfNameOrPropertyAccessExpression(node); } @@ -82899,19 +83468,19 @@ ${lanes.join("\n")} if (isInExpressionContext(node)) { return checkExpression(node).symbol; } - case 196 /* ThisType */: + case 197 /* ThisType */: return getTypeFromThisTypeNode(node).symbol; case 108 /* SuperKeyword */: return checkExpression(node).symbol; case 137 /* ConstructorKeyword */: const constructorDeclaration = node.parent; - if (constructorDeclaration && constructorDeclaration.kind === 175 /* Constructor */) { + if (constructorDeclaration && constructorDeclaration.kind === 176 /* Constructor */) { return constructorDeclaration.parent.symbol; } return void 0; case 11 /* StringLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: - if (isExternalModuleImportEqualsDeclaration(node.parent.parent) && getExternalModuleImportEqualsDeclarationExpression(node.parent.parent) === node || (node.parent.kind === 271 /* ImportDeclaration */ || node.parent.kind === 277 /* ExportDeclaration */) && node.parent.moduleSpecifier === node || (isInJSFile(node) && getEmitModuleResolutionKind(compilerOptions) !== 100 /* Bundler */ && isRequireCall( + if (isExternalModuleImportEqualsDeclaration(node.parent.parent) && getExternalModuleImportEqualsDeclarationExpression(node.parent.parent) === node || (node.parent.kind === 272 /* ImportDeclaration */ || node.parent.kind === 278 /* ExportDeclaration */) && node.parent.moduleSpecifier === node || (isInJSFile(node) && getEmitModuleResolutionKind(compilerOptions) !== 100 /* Bundler */ && isRequireCall( node.parent, /*requireStringLiteralLikeArgument*/ false @@ -82929,16 +83498,16 @@ ${lanes.join("\n")} case 39 /* EqualsGreaterThanToken */: case 86 /* ClassKeyword */: return getSymbolOfNode(node.parent); - case 204 /* ImportType */: + case 205 /* ImportType */: return isLiteralImportTypeNode(node) ? getSymbolAtLocation(node.argument.literal, ignoreErrors) : void 0; case 95 /* ExportKeyword */: return isExportAssignment(node.parent) ? Debug.checkDefined(node.parent.symbol) : void 0; case 102 /* ImportKeyword */: case 105 /* NewKeyword */: return isMetaProperty(node.parent) ? checkMetaPropertyKeyword(node.parent).symbol : void 0; - case 235 /* MetaProperty */: + case 236 /* MetaProperty */: return checkExpression(node).symbol; - case 294 /* JsxNamespacedName */: + case 295 /* JsxNamespacedName */: if (isJSXTagName(node) && isJsxIntrinsicTagName(node)) { const symbol = getIntrinsicTagSymbol(node.parent); return symbol === unknownSymbol ? void 0 : symbol; @@ -82957,7 +83526,7 @@ ${lanes.join("\n")} return void 0; } function getShorthandAssignmentValueSymbol(location) { - if (location && location.kind === 303 /* ShorthandPropertyAssignment */) { + if (location && location.kind === 304 /* ShorthandPropertyAssignment */) { return resolveEntityName(location.name, 111551 /* Value */ | 2097152 /* Alias */); } return void 0; @@ -82973,7 +83542,7 @@ ${lanes.join("\n")} if (isSourceFile(node) && !isExternalModule(node)) { return errorType; } - if (node.flags & 33554432 /* InWithStatement */) { + if (node.flags & 67108864 /* InWithStatement */) { return errorType; } const classDecl = tryGetClassImplementingOrExtendingExpressionWithTypeArguments(node); @@ -83037,16 +83606,16 @@ ${lanes.join("\n")} return errorType; } function getTypeOfAssignmentPattern(expr) { - Debug.assert(expr.kind === 209 /* ObjectLiteralExpression */ || expr.kind === 208 /* ArrayLiteralExpression */); - if (expr.parent.kind === 249 /* ForOfStatement */) { + Debug.assert(expr.kind === 210 /* ObjectLiteralExpression */ || expr.kind === 209 /* ArrayLiteralExpression */); + if (expr.parent.kind === 250 /* ForOfStatement */) { const iteratedType = checkRightHandSideOfForOf(expr.parent); return checkDestructuringAssignment(expr, iteratedType || errorType); } - if (expr.parent.kind === 225 /* BinaryExpression */) { + if (expr.parent.kind === 226 /* BinaryExpression */) { const iteratedType = getTypeOfExpression(expr.parent.right); return checkDestructuringAssignment(expr, iteratedType || errorType); } - if (expr.parent.kind === 302 /* PropertyAssignment */) { + if (expr.parent.kind === 303 /* PropertyAssignment */) { const node2 = cast(expr.parent.parent, isObjectLiteralExpression); const typeOfParentObjectLiteral = getTypeOfAssignmentPattern(node2) || errorType; const propertyIndex = indexOfNode(node2.properties, expr.parent); @@ -83079,7 +83648,7 @@ ${lanes.join("\n")} case 9 /* NumericLiteral */: case 11 /* StringLiteral */: return getStringLiteralType(name.text); - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: const nameType = checkComputedPropertyName(name); return isTypeAssignableToKind(nameType, 12288 /* ESSymbolLike */) ? nameType : stringType; default: @@ -83149,7 +83718,7 @@ ${lanes.join("\n")} return symbolLinks2.exportsSomeValue; function isValue(s) { s = resolveSymbol(s); - return s && !!(getAllSymbolFlags(s) & 111551 /* Value */); + return s && !!(getSymbolFlags(s) & 111551 /* Value */); } } function isNameOfModuleOrEnumDeclaration(node) { @@ -83174,7 +83743,7 @@ ${lanes.join("\n")} } const parentSymbol = getParentOfSymbol(symbol); if (parentSymbol) { - if (parentSymbol.flags & 512 /* ValueModule */ && ((_a = parentSymbol.valueDeclaration) == null ? void 0 : _a.kind) === 311 /* SourceFile */) { + if (parentSymbol.flags & 512 /* ValueModule */ && ((_a = parentSymbol.valueDeclaration) == null ? void 0 : _a.kind) === 312 /* SourceFile */) { const symbolFile = parentSymbol.valueDeclaration; const referenceFile = getSourceFileOfNode(node); const symbolIsUmdExport = symbolFile !== referenceFile; @@ -83204,7 +83773,7 @@ ${lanes.join("\n")} return void 0; } function isSymbolOfDestructuredElementOfCatchBinding(symbol) { - return symbol.valueDeclaration && isBindingElement(symbol.valueDeclaration) && walkUpBindingElementsAndPatterns(symbol.valueDeclaration).parent.kind === 298 /* CatchClause */; + return symbol.valueDeclaration && isBindingElement(symbol.valueDeclaration) && walkUpBindingElementsAndPatterns(symbol.valueDeclaration).parent.kind === 299 /* CatchClause */; } function isSymbolOfDeclarationWithCollidingName(symbol) { if (symbol.flags & 418 /* BlockScoped */ && symbol.valueDeclaration && !isSourceFile(symbol.valueDeclaration)) { @@ -83232,7 +83801,7 @@ ${lanes.join("\n")} /*lookInLabeledStatements*/ false ); - const inLoopBodyBlock = container.kind === 240 /* Block */ && isIterationStatement( + const inLoopBodyBlock = container.kind === 241 /* Block */ && isIterationStatement( container.parent, /*lookInLabeledStatements*/ false @@ -83272,31 +83841,35 @@ ${lanes.join("\n")} function isValueAliasDeclaration(node) { Debug.assert(canCollectSymbolAliasAccessabilityData); switch (node.kind) { - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return isAliasResolvedToValue(getSymbolOfDeclaration(node)); - case 272 /* ImportClause */: - case 273 /* NamespaceImport */: - case 275 /* ImportSpecifier */: - case 280 /* ExportSpecifier */: + case 273 /* ImportClause */: + case 274 /* NamespaceImport */: + case 276 /* ImportSpecifier */: + case 281 /* ExportSpecifier */: const symbol = getSymbolOfDeclaration(node); - return !!symbol && isAliasResolvedToValue(symbol) && !getTypeOnlyAliasDeclaration(symbol, 111551 /* Value */); - case 277 /* ExportDeclaration */: + return !!symbol && isAliasResolvedToValue( + symbol, + /*excludeTypeOnlyValues*/ + true + ); + case 278 /* ExportDeclaration */: const exportClause = node.exportClause; return !!exportClause && (isNamespaceExport(exportClause) || some(exportClause.elements, isValueAliasDeclaration)); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return node.expression && node.expression.kind === 80 /* Identifier */ ? isAliasResolvedToValue(getSymbolOfDeclaration(node)) : true; } return false; } function isTopLevelValueImportEqualsWithEntityName(nodeIn) { const node = getParseTreeNode(nodeIn, isImportEqualsDeclaration); - if (node === void 0 || node.parent.kind !== 311 /* SourceFile */ || !isInternalModuleImportEqualsDeclaration(node)) { + if (node === void 0 || node.parent.kind !== 312 /* SourceFile */ || !isInternalModuleImportEqualsDeclaration(node)) { return false; } const isValue = isAliasResolvedToValue(getSymbolOfDeclaration(node)); return isValue && node.moduleReference && !nodeIsMissing(node.moduleReference); } - function isAliasResolvedToValue(symbol) { + function isAliasResolvedToValue(symbol, excludeTypeOnlyValues) { if (!symbol) { return false; } @@ -83304,7 +83877,12 @@ ${lanes.join("\n")} if (target === unknownSymbol) { return true; } - return !!((getAllSymbolFlags(target) ?? -1) & 111551 /* Value */) && (shouldPreserveConstEnums(compilerOptions) || !isConstEnumOrConstEnumOnlyModule(target)); + return !!(getSymbolFlags( + symbol, + excludeTypeOnlyValues, + /*excludeLocalMeanings*/ + true + ) & 111551 /* Value */) && (shouldPreserveConstEnums(compilerOptions) || !isConstEnumOrConstEnumOnlyModule(target)); } function isConstEnumOrConstEnumOnlyModule(s) { return isConstEnumSymbol(s) || !!s.constEnumOnlyModule; @@ -83318,7 +83896,7 @@ ${lanes.join("\n")} return true; } const target = getSymbolLinks(symbol).aliasTarget; - if (target && getEffectiveModifierFlags(node) & 1 /* Export */ && getAllSymbolFlags(target) & 111551 /* Value */ && (shouldPreserveConstEnums(compilerOptions) || !isConstEnumOrConstEnumOnlyModule(target))) { + if (target && getEffectiveModifierFlags(node) & 1 /* Export */ && getSymbolFlags(target) & 111551 /* Value */ && (shouldPreserveConstEnums(compilerOptions) || !isConstEnumOrConstEnumOnlyModule(target))) { return true; } } @@ -83380,15 +83958,15 @@ ${lanes.join("\n")} } function canHaveConstantValue(node) { switch (node.kind) { - case 305 /* EnumMember */: - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 306 /* EnumMember */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return true; } return false; } function getConstantValue2(node) { - if (node.kind === 305 /* EnumMember */) { + if (node.kind === 306 /* EnumMember */) { return getEnumMemberValue(node); } const symbol = getNodeLinks(node).resolvedSymbol; @@ -83588,24 +84166,24 @@ ${lanes.join("\n")} if (symbol) { return filter(getExportSymbolOfValueSymbolIfExported(symbol).declarations, (declaration) => { switch (declaration.kind) { - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 207 /* BindingElement */: - case 171 /* PropertyDeclaration */: - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: - case 305 /* EnumMember */: - case 209 /* ObjectLiteralExpression */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 265 /* EnumDeclaration */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 266 /* ModuleDeclaration */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 208 /* BindingElement */: + case 172 /* PropertyDeclaration */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 306 /* EnumMember */: + case 210 /* ObjectLiteralExpression */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 266 /* EnumDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 267 /* ModuleDeclaration */: return true; } return false; @@ -83616,7 +84194,7 @@ ${lanes.join("\n")} return void 0; } function isLiteralConstDeclaration(node) { - if (isDeclarationReadonly(node) || isVariableDeclaration(node) && isVarConst(node)) { + if (isDeclarationReadonly(node) || isVariableDeclaration(node) && isVarConstLike(node)) { return isFreshLiteralType(getTypeOfSymbol(getSymbolOfDeclaration(node))); } return false; @@ -83734,12 +84312,12 @@ ${lanes.join("\n")} getJsxFragmentFactoryEntity, getAllAccessorDeclarations(accessor) { accessor = getParseTreeNode(accessor, isGetOrSetAccessorDeclaration); - const otherKind = accessor.kind === 177 /* SetAccessor */ ? 176 /* GetAccessor */ : 177 /* SetAccessor */; + const otherKind = accessor.kind === 178 /* SetAccessor */ ? 177 /* GetAccessor */ : 178 /* SetAccessor */; const otherAccessor = getDeclarationOfKind(getSymbolOfDeclaration(accessor), otherKind); const firstAccessor = otherAccessor && otherAccessor.pos < accessor.pos ? otherAccessor : accessor; const secondAccessor = otherAccessor && otherAccessor.pos < accessor.pos ? accessor : otherAccessor; - const setAccessor = accessor.kind === 177 /* SetAccessor */ ? accessor : otherAccessor; - const getAccessor = accessor.kind === 176 /* GetAccessor */ ? accessor : otherAccessor; + const setAccessor = accessor.kind === 178 /* SetAccessor */ ? accessor : otherAccessor; + const getAccessor = accessor.kind === 177 /* GetAccessor */ ? accessor : otherAccessor; return { firstAccessor, secondAccessor, @@ -83760,7 +84338,7 @@ ${lanes.join("\n")} }, getDeclarationStatementsForSourceFile: (node, flags, tracker, bundled) => { const n = getParseTreeNode(node); - Debug.assert(n && n.kind === 311 /* SourceFile */, "Non-sourcefile node passed into getDeclarationsForSourceFile"); + Debug.assert(n && n.kind === 312 /* SourceFile */, "Non-sourcefile node passed into getDeclarationsForSourceFile"); const sym = getSymbolOfDeclaration(node); if (!sym) { return !node.locals ? [] : nodeBuilder.symbolTableToDeclarationStatements(node.locals, node, flags, tracker, bundled); @@ -83795,18 +84373,18 @@ ${lanes.join("\n")} return false; } function isInHeritageClause(node) { - return node.parent && node.parent.kind === 232 /* ExpressionWithTypeArguments */ && node.parent.parent && node.parent.parent.kind === 297 /* HeritageClause */; + return node.parent && node.parent.kind === 233 /* ExpressionWithTypeArguments */ && node.parent.parent && node.parent.parent.kind === 298 /* HeritageClause */; } function getTypeReferenceDirectivesForEntityName(node) { if (!fileToDirective) { return void 0; } let meaning; - if (node.parent.kind === 166 /* ComputedPropertyName */) { + if (node.parent.kind === 167 /* ComputedPropertyName */) { meaning = 111551 /* Value */ | 1048576 /* ExportValue */; } else { meaning = 788968 /* Type */ | 1920 /* Namespace */; - if (node.kind === 80 /* Identifier */ && isInTypeQuery(node) || node.kind === 210 /* PropertyAccessExpression */ && !isInHeritageClause(node)) { + if (node.kind === 80 /* Identifier */ && isInTypeQuery(node) || node.kind === 211 /* PropertyAccessExpression */ && !isInHeritageClause(node)) { meaning = 111551 /* Value */ | 1048576 /* ExportValue */; } } @@ -83849,7 +84427,7 @@ ${lanes.join("\n")} break; } } - if (current.valueDeclaration && current.valueDeclaration.kind === 311 /* SourceFile */ && current.flags & 512 /* ValueModule */) { + if (current.valueDeclaration && current.valueDeclaration.kind === 312 /* SourceFile */ && current.flags & 512 /* ValueModule */) { return false; } for (const decl of symbol.declarations) { @@ -83874,7 +84452,7 @@ ${lanes.join("\n")} } } function getExternalModuleFileFromDeclaration(declaration) { - const specifier = declaration.kind === 266 /* ModuleDeclaration */ ? tryCast(declaration.name, isStringLiteral) : getExternalModuleName(declaration); + const specifier = declaration.kind === 267 /* ModuleDeclaration */ ? tryCast(declaration.name, isStringLiteral) : getExternalModuleName(declaration); const moduleSymbol = resolveExternalModuleNameWorker( specifier, specifier, @@ -83884,7 +84462,7 @@ ${lanes.join("\n")} if (!moduleSymbol) { return void 0; } - return getDeclarationOfKind(moduleSymbol, 311 /* SourceFile */); + return getDeclarationOfKind(moduleSymbol, 312 /* SourceFile */); } function initializeTypeChecker() { for (const file of host.getSourceFiles()) { @@ -84066,11 +84644,11 @@ ${lanes.join("\n")} function checkExternalEmitHelpers(location, helpers) { if ((requestedExternalEmitHelpers & helpers) !== helpers && compilerOptions.importHelpers) { const sourceFile = getSourceFileOfNode(location); - if (isEffectiveExternalModule(sourceFile, compilerOptions) && !(location.flags & 16777216 /* Ambient */)) { + if (isEffectiveExternalModule(sourceFile, compilerOptions) && !(location.flags & 33554432 /* Ambient */)) { const helpersModule = resolveHelpersModule(sourceFile, location); if (helpersModule !== unknownSymbol) { const uncheckedHelpers = helpers & ~requestedExternalEmitHelpers; - for (let helper = 1 /* FirstEmitHelper */; helper <= 16777216 /* LastEmitHelper */; helper <<= 1) { + for (let helper = 1 /* FirstEmitHelper */; helper <= 33554432 /* LastEmitHelper */; helper <<= 1) { if (uncheckedHelpers & helper) { for (const name of getHelperNames(helper)) { if (requestedExternalEmitHelperNames.has(name)) @@ -84078,18 +84656,18 @@ ${lanes.join("\n")} requestedExternalEmitHelperNames.add(name); const symbol = resolveSymbol(getSymbol2(getExportsOfModule(helpersModule), escapeLeadingUnderscores(name), 111551 /* Value */)); if (!symbol) { - error(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name); + error2(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name); } else if (helper & 524288 /* ClassPrivateFieldGet */) { if (!some(getSignaturesOfSymbol(symbol), (signature) => getParameterCount(signature) > 3)) { - error(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name, 4); + error2(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name, 4); } } else if (helper & 1048576 /* ClassPrivateFieldSet */) { if (!some(getSignaturesOfSymbol(symbol), (signature) => getParameterCount(signature) > 4)) { - error(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name, 5); + error2(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name, 5); } } else if (helper & 1024 /* SpreadArray */) { if (!some(getSignaturesOfSymbol(symbol), (signature) => getParameterCount(signature) > 2)) { - error(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name, 3); + error2(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name, 3); } } } @@ -84152,6 +84730,8 @@ ${lanes.join("\n")} return ["__setFunctionName"]; case 16777216 /* PropKey */: return ["__propKey"]; + case 33554432 /* AddDisposableResourceAndDisposeResources */: + return ["__addDisposableResource", "__disposeResources"]; default: return Debug.fail("Unrecognized helper"); } @@ -84170,6 +84750,7 @@ ${lanes.join("\n")} if (isParameter(node) && parameterIsThisKeyword(node)) { return grammarErrorOnFirstToken(node, Diagnostics.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters); } + const blockScopeKind = isVariableStatement(node) ? node.declarationList.flags & 7 /* BlockScoped */ : 0 /* None */; let lastStatic, lastDeclare, lastAsync, lastOverride, firstDecorator; let flags = 0 /* None */; let sawExportBeforeDecorators = false; @@ -84177,12 +84758,12 @@ ${lanes.join("\n")} for (const modifier of node.modifiers) { if (isDecorator(modifier)) { if (!nodeCanBeDecorated(legacyDecorators, node, node.parent, node.parent.parent)) { - if (node.kind === 173 /* MethodDeclaration */ && !nodeIsPresent(node.body)) { + if (node.kind === 174 /* MethodDeclaration */ && !nodeIsPresent(node.body)) { return grammarErrorOnFirstToken(node, Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload); } else { return grammarErrorOnFirstToken(node, Diagnostics.Decorators_are_not_valid_here); } - } else if (legacyDecorators && (node.kind === 176 /* GetAccessor */ || node.kind === 177 /* SetAccessor */)) { + } else if (legacyDecorators && (node.kind === 177 /* GetAccessor */ || node.kind === 178 /* SetAccessor */)) { const accessors = getAllAccessorDeclarations(node.parent.members, node); if (hasDecorators(accessors.firstAccessor) && node === accessors.secondAccessor) { return grammarErrorOnFirstToken(node, Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name); @@ -84196,7 +84777,7 @@ ${lanes.join("\n")} const sourceFile = getSourceFileOfNode(modifier); if (!hasParseDiagnostics(sourceFile)) { addRelatedInfo( - error(modifier, Diagnostics.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export), + error2(modifier, Diagnostics.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export), createDiagnosticForNode(firstDecorator, Diagnostics.Decorator_used_before_export_here) ); return true; @@ -84212,29 +84793,29 @@ ${lanes.join("\n")} firstDecorator ?? (firstDecorator = modifier); } else { if (modifier.kind !== 148 /* ReadonlyKeyword */) { - if (node.kind === 170 /* PropertySignature */ || node.kind === 172 /* MethodSignature */) { + if (node.kind === 171 /* PropertySignature */ || node.kind === 173 /* MethodSignature */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_type_member, tokenToString(modifier.kind)); } - if (node.kind === 180 /* IndexSignature */ && (modifier.kind !== 126 /* StaticKeyword */ || !isClassLike(node.parent))) { + if (node.kind === 181 /* IndexSignature */ && (modifier.kind !== 126 /* StaticKeyword */ || !isClassLike(node.parent))) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_an_index_signature, tokenToString(modifier.kind)); } } if (modifier.kind !== 103 /* InKeyword */ && modifier.kind !== 147 /* OutKeyword */ && modifier.kind !== 87 /* ConstKeyword */) { - if (node.kind === 167 /* TypeParameter */) { + if (node.kind === 168 /* TypeParameter */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_type_parameter, tokenToString(modifier.kind)); } } switch (modifier.kind) { case 87 /* ConstKeyword */: - if (node.kind !== 265 /* EnumDeclaration */ && node.kind !== 167 /* TypeParameter */) { + if (node.kind !== 266 /* EnumDeclaration */ && node.kind !== 168 /* TypeParameter */) { return grammarErrorOnNode(node, Diagnostics.A_class_member_cannot_have_the_0_keyword, tokenToString(87 /* ConstKeyword */)); } const parent2 = node.parent; - if (node.kind === 167 /* TypeParameter */ && !(isFunctionLikeDeclaration(parent2) || isClassLike(parent2) || isFunctionTypeNode(parent2) || isConstructorTypeNode(parent2) || isCallSignatureDeclaration(parent2) || isConstructSignatureDeclaration(parent2) || isMethodSignature(parent2))) { + if (node.kind === 168 /* TypeParameter */ && !(isFunctionLikeDeclaration(parent2) || isClassLike(parent2) || isFunctionTypeNode(parent2) || isConstructorTypeNode(parent2) || isCallSignatureDeclaration(parent2) || isConstructSignatureDeclaration(parent2) || isMethodSignature(parent2))) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class, tokenToString(modifier.kind)); } break; - case 163 /* OverrideKeyword */: + case 164 /* OverrideKeyword */: if (flags & 16384 /* Override */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, "override"); } else if (flags & 2 /* Ambient */) { @@ -84265,7 +84846,7 @@ ${lanes.join("\n")} return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, text, "readonly"); } else if (flags & 512 /* Async */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, text, "async"); - } else if (node.parent.kind === 267 /* ModuleBlock */ || node.parent.kind === 311 /* SourceFile */) { + } else if (node.parent.kind === 268 /* ModuleBlock */ || node.parent.kind === 312 /* SourceFile */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element, text); } else if (flags & 256 /* Abstract */) { if (modifier.kind === 123 /* PrivateKeyword */) { @@ -84287,9 +84868,9 @@ ${lanes.join("\n")} return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "static", "async"); } else if (flags & 128 /* Accessor */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "static", "accessor"); - } else if (node.parent.kind === 267 /* ModuleBlock */ || node.parent.kind === 311 /* SourceFile */) { + } else if (node.parent.kind === 268 /* ModuleBlock */ || node.parent.kind === 312 /* SourceFile */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element, "static"); - } else if (node.kind === 168 /* Parameter */) { + } else if (node.kind === 169 /* Parameter */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_parameter, "static"); } else if (flags & 256 /* Abstract */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "static", "abstract"); @@ -84306,7 +84887,7 @@ ${lanes.join("\n")} return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "accessor", "readonly"); } else if (flags & 2 /* Ambient */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "accessor", "declare"); - } else if (node.kind !== 171 /* PropertyDeclaration */) { + } else if (node.kind !== 172 /* PropertyDeclaration */) { return grammarErrorOnNode(modifier, Diagnostics.accessor_modifier_can_only_appear_on_a_property_declaration); } flags |= 128 /* Accessor */; @@ -84314,7 +84895,7 @@ ${lanes.join("\n")} case 148 /* ReadonlyKeyword */: if (flags & 64 /* Readonly */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, "readonly"); - } else if (node.kind !== 171 /* PropertyDeclaration */ && node.kind !== 170 /* PropertySignature */ && node.kind !== 180 /* IndexSignature */ && node.kind !== 168 /* Parameter */) { + } else if (node.kind !== 172 /* PropertyDeclaration */ && node.kind !== 171 /* PropertySignature */ && node.kind !== 181 /* IndexSignature */ && node.kind !== 169 /* Parameter */) { return grammarErrorOnNode(modifier, Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature); } else if (flags & 128 /* Accessor */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "readonly", "accessor"); @@ -84322,8 +84903,8 @@ ${lanes.join("\n")} flags |= 64 /* Readonly */; break; case 95 /* ExportKeyword */: - if (compilerOptions.verbatimModuleSyntax && !(node.flags & 16777216 /* Ambient */) && node.kind !== 264 /* TypeAliasDeclaration */ && node.kind !== 263 /* InterfaceDeclaration */ && // ModuleDeclaration needs to be checked that it is uninstantiated later - node.kind !== 266 /* ModuleDeclaration */ && node.parent.kind === 311 /* SourceFile */ && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { + if (compilerOptions.verbatimModuleSyntax && !(node.flags & 33554432 /* Ambient */) && node.kind !== 265 /* TypeAliasDeclaration */ && node.kind !== 264 /* InterfaceDeclaration */ && // ModuleDeclaration needs to be checked that it is uninstantiated later + node.kind !== 267 /* ModuleDeclaration */ && node.parent.kind === 312 /* SourceFile */ && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { return grammarErrorOnNode(modifier, Diagnostics.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); } if (flags & 1 /* Export */) { @@ -84336,15 +84917,23 @@ ${lanes.join("\n")} return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "export", "async"); } else if (isClassLike(node.parent)) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind, "export"); - } else if (node.kind === 168 /* Parameter */) { + } else if (node.kind === 169 /* Parameter */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_parameter, "export"); + } else if (blockScopeKind === 4 /* Using */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_using_declaration, "export"); + } else if (blockScopeKind === 6 /* AwaitUsing */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_an_await_using_declaration, "export"); } flags |= 1 /* Export */; break; case 90 /* DefaultKeyword */: - const container = node.parent.kind === 311 /* SourceFile */ ? node.parent : node.parent.parent; - if (container.kind === 266 /* ModuleDeclaration */ && !isAmbientModule(container)) { + const container = node.parent.kind === 312 /* SourceFile */ ? node.parent : node.parent.parent; + if (container.kind === 267 /* ModuleDeclaration */ && !isAmbientModule(container)) { return grammarErrorOnNode(modifier, Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module); + } else if (blockScopeKind === 4 /* Using */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_using_declaration, "default"); + } else if (blockScopeKind === 6 /* AwaitUsing */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_an_await_using_declaration, "default"); } else if (!(flags & 1 /* Export */)) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "export", "default"); } else if (sawExportBeforeDecorators) { @@ -84361,9 +84950,13 @@ ${lanes.join("\n")} return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context, "override"); } else if (isClassLike(node.parent) && !isPropertyDeclaration(node)) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind, "declare"); - } else if (node.kind === 168 /* Parameter */) { + } else if (node.kind === 169 /* Parameter */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_parameter, "declare"); - } else if (node.parent.flags & 16777216 /* Ambient */ && node.parent.kind === 267 /* ModuleBlock */) { + } else if (blockScopeKind === 4 /* Using */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_using_declaration, "declare"); + } else if (blockScopeKind === 6 /* AwaitUsing */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_an_await_using_declaration, "declare"); + } else if (node.parent.flags & 33554432 /* Ambient */ && node.parent.kind === 268 /* ModuleBlock */) { return grammarErrorOnNode(modifier, Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context); } else if (isPrivateIdentifierClassElementDeclaration(node)) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier, "declare"); @@ -84377,12 +84970,12 @@ ${lanes.join("\n")} if (flags & 256 /* Abstract */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, "abstract"); } - if (node.kind !== 262 /* ClassDeclaration */ && node.kind !== 184 /* ConstructorType */) { - if (node.kind !== 173 /* MethodDeclaration */ && node.kind !== 171 /* PropertyDeclaration */ && node.kind !== 176 /* GetAccessor */ && node.kind !== 177 /* SetAccessor */) { + if (node.kind !== 263 /* ClassDeclaration */ && node.kind !== 185 /* ConstructorType */) { + if (node.kind !== 174 /* MethodDeclaration */ && node.kind !== 172 /* PropertyDeclaration */ && node.kind !== 177 /* GetAccessor */ && node.kind !== 178 /* SetAccessor */) { return grammarErrorOnNode(modifier, Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration); } - if (!(node.parent.kind === 262 /* ClassDeclaration */ && hasSyntacticModifier(node.parent, 256 /* Abstract */))) { - const message = node.kind === 171 /* PropertyDeclaration */ ? Diagnostics.Abstract_properties_can_only_appear_within_an_abstract_class : Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class; + if (!(node.parent.kind === 263 /* ClassDeclaration */ && hasSyntacticModifier(node.parent, 256 /* Abstract */))) { + const message = node.kind === 172 /* PropertyDeclaration */ ? Diagnostics.Abstract_properties_can_only_appear_within_an_abstract_class : Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class; return grammarErrorOnNode(modifier, message); } if (flags & 32 /* Static */) { @@ -84409,9 +85002,9 @@ ${lanes.join("\n")} case 134 /* AsyncKeyword */: if (flags & 512 /* Async */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, "async"); - } else if (flags & 2 /* Ambient */ || node.parent.flags & 16777216 /* Ambient */) { + } else if (flags & 2 /* Ambient */ || node.parent.flags & 33554432 /* Ambient */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context, "async"); - } else if (node.kind === 168 /* Parameter */) { + } else if (node.kind === 169 /* Parameter */) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_parameter, "async"); } if (flags & 256 /* Abstract */) { @@ -84424,7 +85017,7 @@ ${lanes.join("\n")} case 147 /* OutKeyword */: const inOutFlag = modifier.kind === 103 /* InKeyword */ ? 32768 /* In */ : 65536 /* Out */; const inOutText = modifier.kind === 103 /* InKeyword */ ? "in" : "out"; - if (node.kind !== 167 /* TypeParameter */ || !(isInterfaceDeclaration(node.parent) || isClassLike(node.parent) || isTypeAliasDeclaration(node.parent))) { + if (node.kind !== 168 /* TypeParameter */ || !(isInterfaceDeclaration(node.parent) || isClassLike(node.parent) || isTypeAliasDeclaration(node.parent))) { return grammarErrorOnNode(modifier, Diagnostics._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias, inOutText); } if (flags & inOutFlag) { @@ -84438,7 +85031,7 @@ ${lanes.join("\n")} } } } - if (node.kind === 175 /* Constructor */) { + if (node.kind === 176 /* Constructor */) { if (flags & 32 /* Static */) { return grammarErrorOnNode(lastStatic, Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "static"); } @@ -84449,11 +85042,11 @@ ${lanes.join("\n")} return grammarErrorOnNode(lastAsync, Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "async"); } return false; - } else if ((node.kind === 271 /* ImportDeclaration */ || node.kind === 270 /* ImportEqualsDeclaration */) && flags & 2 /* Ambient */) { + } else if ((node.kind === 272 /* ImportDeclaration */ || node.kind === 271 /* ImportEqualsDeclaration */) && flags & 2 /* Ambient */) { return grammarErrorOnNode(lastDeclare, Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration, "declare"); - } else if (node.kind === 168 /* Parameter */ && flags & 16476 /* ParameterPropertyModifier */ && isBindingPattern(node.name)) { + } else if (node.kind === 169 /* Parameter */ && flags & 16476 /* ParameterPropertyModifier */ && isBindingPattern(node.name)) { return grammarErrorOnNode(node, Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern); - } else if (node.kind === 168 /* Parameter */ && flags & 16476 /* ParameterPropertyModifier */ && node.dotDotDotToken) { + } else if (node.kind === 169 /* Parameter */ && flags & 16476 /* ParameterPropertyModifier */ && node.dotDotDotToken) { return grammarErrorOnNode(node, Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter); } if (flags & 512 /* Async */) { @@ -84473,46 +85066,47 @@ ${lanes.join("\n")} } function findFirstIllegalModifier(node) { switch (node.kind) { - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 175 /* Constructor */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 180 /* IndexSignature */: - case 266 /* ModuleDeclaration */: - case 271 /* ImportDeclaration */: - case 270 /* ImportEqualsDeclaration */: - case 277 /* ExportDeclaration */: - case 276 /* ExportAssignment */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 168 /* Parameter */: - case 167 /* TypeParameter */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 176 /* Constructor */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 181 /* IndexSignature */: + case 267 /* ModuleDeclaration */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 278 /* ExportDeclaration */: + case 277 /* ExportAssignment */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 169 /* Parameter */: + case 168 /* TypeParameter */: return void 0; - case 174 /* ClassStaticBlockDeclaration */: - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: - case 269 /* NamespaceExportDeclaration */: - case 281 /* MissingDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 270 /* NamespaceExportDeclaration */: + case 282 /* MissingDeclaration */: return find(node.modifiers, isModifier); default: - if (node.parent.kind === 267 /* ModuleBlock */ || node.parent.kind === 311 /* SourceFile */) { + if (node.parent.kind === 268 /* ModuleBlock */ || node.parent.kind === 312 /* SourceFile */) { return void 0; } switch (node.kind) { - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return findFirstModifierExcept(node, 134 /* AsyncKeyword */); - case 262 /* ClassDeclaration */: - case 184 /* ConstructorType */: + case 263 /* ClassDeclaration */: + case 185 /* ConstructorType */: return findFirstModifierExcept(node, 128 /* AbstractKeyword */); - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 242 /* VariableStatement */: - case 264 /* TypeAliasDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: return find(node.modifiers, isModifier); - case 265 /* EnumDeclaration */: + case 243 /* VariableStatement */: + return node.declarationList.flags & 4 /* Using */ ? findFirstModifierExcept(node, 135 /* AwaitKeyword */) : find(node.modifiers, isModifier); + case 266 /* EnumDeclaration */: return findFirstModifierExcept(node, 87 /* ConstKeyword */); default: Debug.assertNever(node); @@ -84528,10 +85122,10 @@ ${lanes.join("\n")} } function checkGrammarAsyncModifier(node, asyncModifier) { switch (node.kind) { - case 173 /* MethodDeclaration */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return false; } return grammarErrorOnNode(asyncModifier, Diagnostics._0_modifier_cannot_be_used_here, "async"); @@ -84559,7 +85153,7 @@ ${lanes.join("\n")} if (i !== parameterCount - 1) { return grammarErrorOnNode(parameter.dotDotDotToken, Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list); } - if (!(parameter.flags & 16777216 /* Ambient */)) { + if (!(parameter.flags & 33554432 /* Ambient */)) { checkGrammarForDisallowedTrailingComma(parameters, Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma); } if (parameter.questionToken) { @@ -84589,12 +85183,12 @@ ${lanes.join("\n")} if (length(nonSimpleParameters)) { forEach(nonSimpleParameters, (parameter) => { addRelatedInfo( - error(parameter, Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive), + error2(parameter, Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive), createDiagnosticForNode(useStrictDirective, Diagnostics.use_strict_directive_used_here) ); }); const diagnostics2 = nonSimpleParameters.map((parameter, index) => index === 0 ? createDiagnosticForNode(parameter, Diagnostics.Non_simple_parameter_declared_here) : createDiagnosticForNode(parameter, Diagnostics.and_here)); - addRelatedInfo(error(useStrictDirective, Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list), ...diagnostics2); + addRelatedInfo(error2(useStrictDirective, Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list), ...diagnostics2); return true; } } @@ -84676,7 +85270,7 @@ ${lanes.join("\n")} return checkGrammarForDisallowedTrailingComma(typeArguments) || checkGrammarForAtLeastOneTypeArgument(node, typeArguments); } function checkGrammarTaggedTemplateChain(node) { - if (node.questionDotToken || node.flags & 32 /* OptionalChain */) { + if (node.questionDotToken || node.flags & 64 /* OptionalChain */) { return grammarErrorOnNode(node.template, Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain); } return false; @@ -84744,11 +85338,11 @@ ${lanes.join("\n")} return false; } function checkGrammarComputedPropertyName(node) { - if (node.kind !== 166 /* ComputedPropertyName */) { + if (node.kind !== 167 /* ComputedPropertyName */) { return false; } const computedPropertyName = node; - if (computedPropertyName.expression.kind === 225 /* BinaryExpression */ && computedPropertyName.expression.operatorToken.kind === 28 /* CommaToken */) { + if (computedPropertyName.expression.kind === 226 /* BinaryExpression */ && computedPropertyName.expression.operatorToken.kind === 28 /* CommaToken */) { return grammarErrorOnNode(computedPropertyName.expression, Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name); } return false; @@ -84756,9 +85350,9 @@ ${lanes.join("\n")} function checkGrammarForGenerator(node) { if (node.asteriskToken) { Debug.assert( - node.kind === 261 /* FunctionDeclaration */ || node.kind === 217 /* FunctionExpression */ || node.kind === 173 /* MethodDeclaration */ + node.kind === 262 /* FunctionDeclaration */ || node.kind === 218 /* FunctionExpression */ || node.kind === 174 /* MethodDeclaration */ ); - if (node.flags & 16777216 /* Ambient */) { + if (node.flags & 33554432 /* Ambient */) { return grammarErrorOnNode(node.asteriskToken, Diagnostics.Generators_are_not_allowed_in_an_ambient_context); } if (!node.body) { @@ -84775,7 +85369,7 @@ ${lanes.join("\n")} function checkGrammarObjectLiteralExpression(node, inDestructuring) { const seen = /* @__PURE__ */ new Map(); for (const prop of node.properties) { - if (prop.kind === 304 /* SpreadAssignment */) { + if (prop.kind === 305 /* SpreadAssignment */) { if (inDestructuring) { const expression = skipParentheses(prop.expression); if (isArrayLiteralExpression(expression) || isObjectLiteralExpression(expression)) { @@ -84785,10 +85379,10 @@ ${lanes.join("\n")} continue; } const name = prop.name; - if (name.kind === 166 /* ComputedPropertyName */) { + if (name.kind === 167 /* ComputedPropertyName */) { checkGrammarComputedPropertyName(name); } - if (prop.kind === 303 /* ShorthandPropertyAssignment */ && !inDestructuring && prop.objectAssignmentInitializer) { + if (prop.kind === 304 /* ShorthandPropertyAssignment */ && !inDestructuring && prop.objectAssignmentInitializer) { grammarErrorOnNode(prop.equalsToken, Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern); } if (name.kind === 81 /* PrivateIdentifier */) { @@ -84796,7 +85390,7 @@ ${lanes.join("\n")} } if (canHaveModifiers(prop) && prop.modifiers) { for (const mod of prop.modifiers) { - if (isModifier(mod) && (mod.kind !== 134 /* AsyncKeyword */ || prop.kind !== 173 /* MethodDeclaration */)) { + if (isModifier(mod) && (mod.kind !== 134 /* AsyncKeyword */ || prop.kind !== 174 /* MethodDeclaration */)) { grammarErrorOnNode(mod, Diagnostics._0_modifier_cannot_be_used_here, getTextOfNode(mod)); } } @@ -84809,8 +85403,8 @@ ${lanes.join("\n")} } let currentKind; switch (prop.kind) { - case 303 /* ShorthandPropertyAssignment */: - case 302 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 303 /* PropertyAssignment */: checkGrammarForInvalidExclamationToken(prop.exclamationToken, Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context); checkGrammarForInvalidQuestionMark(prop.questionToken, Diagnostics.An_object_member_cannot_be_declared_optional); if (name.kind === 9 /* NumericLiteral */) { @@ -84818,13 +85412,13 @@ ${lanes.join("\n")} } currentKind = 4 /* PropertyAssignment */; break; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: currentKind = 8 /* Method */; break; - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: currentKind = 1 /* GetAccessor */; break; - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: currentKind = 2 /* SetAccessor */; break; default: @@ -84861,7 +85455,7 @@ ${lanes.join("\n")} checkGrammarTypeArguments(node, node.typeArguments); const seen = /* @__PURE__ */ new Map(); for (const attr of node.attributes.properties) { - if (attr.kind === 292 /* JsxSpreadAttribute */) { + if (attr.kind === 293 /* JsxSpreadAttribute */) { continue; } const { name, initializer } = attr; @@ -84871,7 +85465,7 @@ ${lanes.join("\n")} } else { return grammarErrorOnNode(name, Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name); } - if (initializer && initializer.kind === 293 /* JsxExpression */ && !initializer.expression) { + if (initializer && initializer.kind === 294 /* JsxExpression */ && !initializer.expression) { return grammarErrorOnNode(initializer, Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression); } } @@ -84893,8 +85487,8 @@ ${lanes.join("\n")} if (checkGrammarStatementInAmbientContext(forInOrOfStatement)) { return true; } - if (forInOrOfStatement.kind === 249 /* ForOfStatement */ && forInOrOfStatement.awaitModifier) { - if (!(forInOrOfStatement.flags & 32768 /* AwaitContext */)) { + if (forInOrOfStatement.kind === 250 /* ForOfStatement */ && forInOrOfStatement.awaitModifier) { + if (!(forInOrOfStatement.flags & 65536 /* AwaitContext */)) { const sourceFile = getSourceFileOfNode(forInOrOfStatement); if (isInTopLevelContext(forInOrOfStatement)) { if (!hasParseDiagnostics(sourceFile)) { @@ -84933,7 +85527,7 @@ ${lanes.join("\n")} if (!hasParseDiagnostics(sourceFile)) { const diagnostic = createDiagnosticForNode(forInOrOfStatement.awaitModifier, Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules); const func = getContainingFunction(forInOrOfStatement); - if (func && func.kind !== 175 /* Constructor */) { + if (func && func.kind !== 176 /* Constructor */) { Debug.assert((getFunctionFlags(func) & 2 /* Async */) === 0, "Enclosing function should never be an async function."); const relatedInfo = createDiagnosticForNode(func, Diagnostics.Did_you_mean_to_mark_this_function_as_async); addRelatedInfo(diagnostic, relatedInfo); @@ -84945,11 +85539,11 @@ ${lanes.join("\n")} return false; } } - if (isForOfStatement(forInOrOfStatement) && !(forInOrOfStatement.flags & 32768 /* AwaitContext */) && isIdentifier(forInOrOfStatement.initializer) && forInOrOfStatement.initializer.escapedText === "async") { + if (isForOfStatement(forInOrOfStatement) && !(forInOrOfStatement.flags & 65536 /* AwaitContext */) && isIdentifier(forInOrOfStatement.initializer) && forInOrOfStatement.initializer.escapedText === "async") { grammarErrorOnNode(forInOrOfStatement.initializer, Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async); return false; } - if (forInOrOfStatement.initializer.kind === 260 /* VariableDeclarationList */) { + if (forInOrOfStatement.initializer.kind === 261 /* VariableDeclarationList */) { const variableList = forInOrOfStatement.initializer; if (!checkGrammarVariableDeclarationList(variableList)) { const declarations = variableList.declarations; @@ -84957,16 +85551,16 @@ ${lanes.join("\n")} return false; } if (declarations.length > 1) { - const diagnostic = forInOrOfStatement.kind === 248 /* ForInStatement */ ? Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement : Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement; + const diagnostic = forInOrOfStatement.kind === 249 /* ForInStatement */ ? Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement : Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement; return grammarErrorOnFirstToken(variableList.declarations[1], diagnostic); } const firstDeclaration = declarations[0]; if (firstDeclaration.initializer) { - const diagnostic = forInOrOfStatement.kind === 248 /* ForInStatement */ ? Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer : Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer; + const diagnostic = forInOrOfStatement.kind === 249 /* ForInStatement */ ? Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer : Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer; return grammarErrorOnNode(firstDeclaration.name, diagnostic); } if (firstDeclaration.type) { - const diagnostic = forInOrOfStatement.kind === 248 /* ForInStatement */ ? Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation : Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation; + const diagnostic = forInOrOfStatement.kind === 249 /* ForInStatement */ ? Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation : Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation; return grammarErrorOnNode(firstDeclaration, diagnostic); } } @@ -84974,7 +85568,7 @@ ${lanes.join("\n")} return false; } function checkGrammarAccessor(accessor) { - if (!(accessor.flags & 16777216 /* Ambient */) && accessor.parent.kind !== 186 /* TypeLiteral */ && accessor.parent.kind !== 263 /* InterfaceDeclaration */) { + if (!(accessor.flags & 33554432 /* Ambient */) && accessor.parent.kind !== 187 /* TypeLiteral */ && accessor.parent.kind !== 264 /* InterfaceDeclaration */) { if (languageVersion < 1 /* ES5 */) { return grammarErrorOnNode(accessor.name, Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher); } @@ -84989,7 +85583,7 @@ ${lanes.join("\n")} if (hasSyntacticModifier(accessor, 256 /* Abstract */)) { return grammarErrorOnNode(accessor, Diagnostics.An_abstract_accessor_cannot_have_an_implementation); } - if (accessor.parent.kind === 186 /* TypeLiteral */ || accessor.parent.kind === 263 /* InterfaceDeclaration */) { + if (accessor.parent.kind === 187 /* TypeLiteral */ || accessor.parent.kind === 264 /* InterfaceDeclaration */) { return grammarErrorOnNode(accessor.body, Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts); } } @@ -84999,10 +85593,10 @@ ${lanes.join("\n")} if (!doesAccessorHaveCorrectParameterCount(accessor)) { return grammarErrorOnNode( accessor.name, - accessor.kind === 176 /* GetAccessor */ ? Diagnostics.A_get_accessor_cannot_have_parameters : Diagnostics.A_set_accessor_must_have_exactly_one_parameter + accessor.kind === 177 /* GetAccessor */ ? Diagnostics.A_get_accessor_cannot_have_parameters : Diagnostics.A_set_accessor_must_have_exactly_one_parameter ); } - if (accessor.kind === 177 /* SetAccessor */) { + if (accessor.kind === 178 /* SetAccessor */) { if (accessor.type) { return grammarErrorOnNode(accessor.name, Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation); } @@ -85020,10 +85614,10 @@ ${lanes.join("\n")} return false; } function doesAccessorHaveCorrectParameterCount(accessor) { - return getAccessorThisParameter(accessor) || accessor.parameters.length === (accessor.kind === 176 /* GetAccessor */ ? 0 : 1); + return getAccessorThisParameter(accessor) || accessor.parameters.length === (accessor.kind === 177 /* GetAccessor */ ? 0 : 1); } function getAccessorThisParameter(accessor) { - if (accessor.parameters.length === (accessor.kind === 176 /* GetAccessor */ ? 1 : 2)) { + if (accessor.parameters.length === (accessor.kind === 177 /* GetAccessor */ ? 1 : 2)) { return getThisParameter(accessor); } } @@ -85040,7 +85634,7 @@ ${lanes.join("\n")} } } switch (parent2.kind) { - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: const decl = parent2; if (decl.name.kind !== 80 /* Identifier */) { return grammarErrorOnNode(node, Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name); @@ -85052,12 +85646,12 @@ ${lanes.join("\n")} return grammarErrorOnNode(parent2.name, Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const); } break; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: if (!isStatic(parent2) || !hasEffectiveReadonlyModifier(parent2)) { return grammarErrorOnNode(parent2.name, Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly); } break; - case 170 /* PropertySignature */: + case 171 /* PropertySignature */: if (!hasSyntacticModifier(parent2, 64 /* Readonly */)) { return grammarErrorOnNode(parent2.name, Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly); } @@ -85066,7 +85660,7 @@ ${lanes.join("\n")} return grammarErrorOnNode(node, Diagnostics.unique_symbol_types_are_not_allowed_here); } } else if (node.operator === 148 /* ReadonlyKeyword */) { - if (node.type.kind !== 187 /* ArrayType */ && node.type.kind !== 188 /* TupleType */) { + if (node.type.kind !== 188 /* ArrayType */ && node.type.kind !== 189 /* TupleType */) { return grammarErrorOnFirstToken(node, Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types, tokenToString(155 /* SymbolKeyword */)); } } @@ -85080,8 +85674,8 @@ ${lanes.join("\n")} if (checkGrammarFunctionLikeDeclaration(node)) { return true; } - if (node.kind === 173 /* MethodDeclaration */) { - if (node.parent.kind === 209 /* ObjectLiteralExpression */) { + if (node.kind === 174 /* MethodDeclaration */) { + if (node.parent.kind === 210 /* ObjectLiteralExpression */) { if (node.modifiers && !(node.modifiers.length === 1 && first(node.modifiers).kind === 134 /* AsyncKeyword */)) { return grammarErrorOnFirstToken(node, Diagnostics.Modifiers_cannot_appear_here); } else if (checkGrammarForInvalidQuestionMark(node.questionToken, Diagnostics.An_object_member_cannot_be_declared_optional)) { @@ -85100,14 +85694,14 @@ ${lanes.join("\n")} if (languageVersion < 2 /* ES2015 */ && isPrivateIdentifier(node.name)) { return grammarErrorOnNode(node.name, Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher); } - if (node.flags & 16777216 /* Ambient */) { + if (node.flags & 33554432 /* Ambient */) { return checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type); - } else if (node.kind === 173 /* MethodDeclaration */ && !node.body) { + } else if (node.kind === 174 /* MethodDeclaration */ && !node.body) { return checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type); } - } else if (node.parent.kind === 263 /* InterfaceDeclaration */) { + } else if (node.parent.kind === 264 /* InterfaceDeclaration */) { return checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type); - } else if (node.parent.kind === 186 /* TypeLiteral */) { + } else if (node.parent.kind === 187 /* TypeLiteral */) { return checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type); } } @@ -85118,9 +85712,9 @@ ${lanes.join("\n")} return grammarErrorOnNode(node, Diagnostics.Jump_target_cannot_cross_function_boundary); } switch (current.kind) { - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: if (node.label && current.label.escapedText === node.label.escapedText) { - const isMisplacedContinueLabel = node.kind === 250 /* ContinueStatement */ && !isIterationStatement( + const isMisplacedContinueLabel = node.kind === 251 /* ContinueStatement */ && !isIterationStatement( current.statement, /*lookInLabeledStatements*/ true @@ -85131,8 +85725,8 @@ ${lanes.join("\n")} return false; } break; - case 254 /* SwitchStatement */: - if (node.kind === 251 /* BreakStatement */ && !node.label) { + case 255 /* SwitchStatement */: + if (node.kind === 252 /* BreakStatement */ && !node.label) { return false; } break; @@ -85149,10 +85743,10 @@ ${lanes.join("\n")} current = current.parent; } if (node.label) { - const message = node.kind === 251 /* BreakStatement */ ? Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement : Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement; + const message = node.kind === 252 /* BreakStatement */ ? Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement : Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement; return grammarErrorOnNode(node, message); } else { - const message = node.kind === 251 /* BreakStatement */ ? Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement : Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement; + const message = node.kind === 252 /* BreakStatement */ ? Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement : Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement; return grammarErrorOnNode(node, message); } } @@ -85172,10 +85766,10 @@ ${lanes.join("\n")} } } function isStringOrNumberLiteralExpression(expr) { - return isStringOrNumericLiteralLike(expr) || expr.kind === 223 /* PrefixUnaryExpression */ && expr.operator === 41 /* MinusToken */ && expr.operand.kind === 9 /* NumericLiteral */; + return isStringOrNumericLiteralLike(expr) || expr.kind === 224 /* PrefixUnaryExpression */ && expr.operator === 41 /* MinusToken */ && expr.operand.kind === 9 /* NumericLiteral */; } function isBigIntLiteralExpression(expr) { - return expr.kind === 10 /* BigIntLiteral */ || expr.kind === 223 /* PrefixUnaryExpression */ && expr.operator === 41 /* MinusToken */ && expr.operand.kind === 10 /* BigIntLiteral */; + return expr.kind === 10 /* BigIntLiteral */ || expr.kind === 224 /* PrefixUnaryExpression */ && expr.operator === 41 /* MinusToken */ && expr.operand.kind === 10 /* BigIntLiteral */; } function isSimpleLiteralEnumReference(expr) { if ((isPropertyAccessExpression(expr) || isElementAccessExpression(expr) && isStringOrNumberLiteralExpression(expr.argumentExpression)) && isEntityNameExpression(expr.expression)) { @@ -85186,7 +85780,7 @@ ${lanes.join("\n")} const initializer = node.initializer; if (initializer) { const isInvalidInitializer = !(isStringOrNumberLiteralExpression(initializer) || isSimpleLiteralEnumReference(initializer) || initializer.kind === 112 /* TrueKeyword */ || initializer.kind === 97 /* FalseKeyword */ || isBigIntLiteralExpression(initializer)); - const isConstOrReadonly = isDeclarationReadonly(node) || isVariableDeclaration(node) && isVarConst(node); + const isConstOrReadonly = isDeclarationReadonly(node) || isVariableDeclaration(node) && isVarConstLike(node); if (isConstOrReadonly && !node.type) { if (isInvalidInitializer) { return grammarErrorOnNode(initializer, Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference); @@ -85197,27 +85791,41 @@ ${lanes.join("\n")} } } function checkGrammarVariableDeclaration(node) { - if (node.parent.parent.kind !== 248 /* ForInStatement */ && node.parent.parent.kind !== 249 /* ForOfStatement */) { - if (node.flags & 16777216 /* Ambient */) { + const nodeFlags = getCombinedNodeFlagsCached(node); + const blockScopeKind = nodeFlags & 7 /* BlockScoped */; + if (isBindingPattern(node.name)) { + switch (blockScopeKind) { + case 6 /* AwaitUsing */: + return grammarErrorOnNode(node, Diagnostics._0_declarations_may_not_have_binding_patterns, "await using"); + case 4 /* Using */: + return grammarErrorOnNode(node, Diagnostics._0_declarations_may_not_have_binding_patterns, "using"); + } + } + if (node.parent.parent.kind !== 249 /* ForInStatement */ && node.parent.parent.kind !== 250 /* ForOfStatement */) { + if (nodeFlags & 33554432 /* Ambient */) { checkAmbientInitializer(node); } else if (!node.initializer) { if (isBindingPattern(node.name) && !isBindingPattern(node.parent)) { return grammarErrorOnNode(node, Diagnostics.A_destructuring_declaration_must_have_an_initializer); } - if (isVarConst(node)) { - return grammarErrorOnNode(node, Diagnostics.const_declarations_must_be_initialized); + switch (blockScopeKind) { + case 6 /* AwaitUsing */: + return grammarErrorOnNode(node, Diagnostics._0_declarations_must_be_initialized, "await using"); + case 4 /* Using */: + return grammarErrorOnNode(node, Diagnostics._0_declarations_must_be_initialized, "using"); + case 2 /* Const */: + return grammarErrorOnNode(node, Diagnostics._0_declarations_must_be_initialized, "const"); } } } - if (node.exclamationToken && (node.parent.parent.kind !== 242 /* VariableStatement */ || !node.type || node.initializer || node.flags & 16777216 /* Ambient */)) { + if (node.exclamationToken && (node.parent.parent.kind !== 243 /* VariableStatement */ || !node.type || node.initializer || nodeFlags & 33554432 /* Ambient */)) { const message = node.initializer ? Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions : !node.type ? Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations : Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context; return grammarErrorOnNode(node.exclamationToken, message); } - if ((moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */) && moduleKind !== 4 /* System */ && !(node.parent.parent.flags & 16777216 /* Ambient */) && hasSyntacticModifier(node.parent.parent, 1 /* Export */)) { + if ((moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */) && moduleKind !== 4 /* System */ && !(node.parent.parent.flags & 33554432 /* Ambient */) && hasSyntacticModifier(node.parent.parent, 1 /* Export */)) { checkESModuleMarker(node.name); } - const checkLetConstNames = isLet(node) || isVarConst(node); - return checkLetConstNames && checkGrammarNameInLetOrConstDeclarations(node.name); + return !!blockScopeKind && checkGrammarNameInLetOrConstDeclarations(node.name); } function checkESModuleMarker(name) { if (name.kind === 80 /* Identifier */) { @@ -85257,29 +85865,39 @@ ${lanes.join("\n")} if (!declarationList.declarations.length) { return grammarErrorAtPos(declarationList, declarations.pos, declarations.end - declarations.pos, Diagnostics.Variable_declaration_list_cannot_be_empty); } + const blockScopeFlags = declarationList.flags & 7 /* BlockScoped */; + if ((blockScopeFlags === 4 /* Using */ || blockScopeFlags === 6 /* AwaitUsing */) && isForInStatement(declarationList.parent)) { + return grammarErrorOnNode( + declarationList, + blockScopeFlags === 4 /* Using */ ? Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration : Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration + ); + } + if (blockScopeFlags === 6 /* AwaitUsing */) { + return checkAwaitGrammar(declarationList); + } return false; } function allowLetAndConstDeclarations(parent2) { switch (parent2.kind) { - case 244 /* IfStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: - case 253 /* WithStatement */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: + case 245 /* IfStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 254 /* WithStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: return false; - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return allowLetAndConstDeclarations(parent2.parent); } return true; } - function checkGrammarForDisallowedLetOrConstStatement(node) { + function checkGrammarForDisallowedBlockScopedVariableStatement(node) { if (!allowLetAndConstDeclarations(node.parent)) { - if (isLet(node.declarationList)) { - return grammarErrorOnNode(node, Diagnostics.let_declarations_can_only_be_declared_inside_a_block); - } else if (isVarConst(node.declarationList)) { - return grammarErrorOnNode(node, Diagnostics.const_declarations_can_only_be_declared_inside_a_block); + const blockScopeKind = getCombinedNodeFlagsCached(node.declarationList) & 7 /* BlockScoped */; + if (blockScopeKind) { + const keyword = blockScopeKind === 1 /* Let */ ? "let" : blockScopeKind === 2 /* Const */ ? "const" : blockScopeKind === 4 /* Using */ ? "using" : blockScopeKind === 6 /* AwaitUsing */ ? "await using" : Debug.fail("Unknown BlockScope flag"); + return grammarErrorOnNode(node, Diagnostics._0_declarations_can_only_be_declared_inside_a_block, keyword); } } } @@ -85368,7 +85986,7 @@ ${lanes.join("\n")} if (isAutoAccessorPropertyDeclaration(node) && checkGrammarForInvalidQuestionMark(node.questionToken, Diagnostics.An_accessor_property_cannot_be_declared_optional)) { return true; } - } else if (node.parent.kind === 263 /* InterfaceDeclaration */) { + } else if (node.parent.kind === 264 /* InterfaceDeclaration */) { if (checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)) { return true; } @@ -85385,23 +86003,23 @@ ${lanes.join("\n")} return grammarErrorOnNode(node.initializer, Diagnostics.A_type_literal_property_cannot_have_an_initializer); } } - if (node.flags & 16777216 /* Ambient */) { + if (node.flags & 33554432 /* Ambient */) { checkAmbientInitializer(node); } - if (isPropertyDeclaration(node) && node.exclamationToken && (!isClassLike(node.parent) || !node.type || node.initializer || node.flags & 16777216 /* Ambient */ || isStatic(node) || hasAbstractModifier(node))) { + if (isPropertyDeclaration(node) && node.exclamationToken && (!isClassLike(node.parent) || !node.type || node.initializer || node.flags & 33554432 /* Ambient */ || isStatic(node) || hasAbstractModifier(node))) { const message = node.initializer ? Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions : !node.type ? Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations : Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context; return grammarErrorOnNode(node.exclamationToken, message); } } function checkGrammarTopLevelElementForRequiredDeclareModifier(node) { - if (node.kind === 263 /* InterfaceDeclaration */ || node.kind === 264 /* TypeAliasDeclaration */ || node.kind === 271 /* ImportDeclaration */ || node.kind === 270 /* ImportEqualsDeclaration */ || node.kind === 277 /* ExportDeclaration */ || node.kind === 276 /* ExportAssignment */ || node.kind === 269 /* NamespaceExportDeclaration */ || hasSyntacticModifier(node, 2 /* Ambient */ | 1 /* Export */ | 1024 /* Default */)) { + if (node.kind === 264 /* InterfaceDeclaration */ || node.kind === 265 /* TypeAliasDeclaration */ || node.kind === 272 /* ImportDeclaration */ || node.kind === 271 /* ImportEqualsDeclaration */ || node.kind === 278 /* ExportDeclaration */ || node.kind === 277 /* ExportAssignment */ || node.kind === 270 /* NamespaceExportDeclaration */ || hasSyntacticModifier(node, 2 /* Ambient */ | 1 /* Export */ | 1024 /* Default */)) { return false; } return grammarErrorOnFirstToken(node, Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier); } function checkGrammarTopLevelElementsForRequiredDeclareModifier(file) { for (const decl of file.statements) { - if (isDeclaration(decl) || decl.kind === 242 /* VariableStatement */) { + if (isDeclaration(decl) || decl.kind === 243 /* VariableStatement */) { if (checkGrammarTopLevelElementForRequiredDeclareModifier(decl)) { return true; } @@ -85410,15 +86028,15 @@ ${lanes.join("\n")} return false; } function checkGrammarSourceFile(node) { - return !!(node.flags & 16777216 /* Ambient */) && checkGrammarTopLevelElementsForRequiredDeclareModifier(node); + return !!(node.flags & 33554432 /* Ambient */) && checkGrammarTopLevelElementsForRequiredDeclareModifier(node); } function checkGrammarStatementInAmbientContext(node) { - if (node.flags & 16777216 /* Ambient */) { + if (node.flags & 33554432 /* Ambient */) { const links = getNodeLinks(node); if (!links.hasReportedStatementInAmbientContext && (isFunctionLike(node.parent) || isAccessor(node.parent))) { return getNodeLinks(node).hasReportedStatementInAmbientContext = grammarErrorOnFirstToken(node, Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts); } - if (node.parent.kind === 240 /* Block */ || node.parent.kind === 267 /* ModuleBlock */ || node.parent.kind === 311 /* SourceFile */) { + if (node.parent.kind === 241 /* Block */ || node.parent.kind === 268 /* ModuleBlock */ || node.parent.kind === 312 /* SourceFile */) { const links2 = getNodeLinks(node.parent); if (!links2.hasReportedStatementInAmbientContext) { return links2.hasReportedStatementInAmbientContext = grammarErrorOnFirstToken(node, Diagnostics.Statements_are_not_allowed_in_ambient_contexts); @@ -85487,7 +86105,7 @@ ${lanes.join("\n")} if (node.isTypeOnly && node.name && node.namedBindings) { return grammarErrorOnNode(node, Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both); } - if (node.isTypeOnly && ((_a = node.namedBindings) == null ? void 0 : _a.kind) === 274 /* NamedImports */) { + if (node.isTypeOnly && ((_a = node.namedBindings) == null ? void 0 : _a.kind) === 275 /* NamedImports */) { return checkGrammarNamedImportsOrExports(node.namedBindings); } return false; @@ -85497,7 +86115,7 @@ ${lanes.join("\n")} if (specifier.isTypeOnly) { return grammarErrorOnFirstToken( specifier, - specifier.kind === 275 /* ImportSpecifier */ ? Diagnostics.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement : Diagnostics.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement + specifier.kind === 276 /* ImportSpecifier */ ? Diagnostics.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement : Diagnostics.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement ); } }); @@ -85611,17 +86229,37 @@ ${lanes.join("\n")} const name = getPropertyNameForPropertyNameNode(node); return name ? name : isComputedPropertyName(node) && isEntityNameExpression(node.expression) ? tryGetNameFromEntityNameExpression(node.expression) : void 0; } + function getCombinedModifierFlagsCached(node) { + if (lastGetCombinedModifierFlagsNode === node) { + return lastGetCombinedModifierFlagsResult; + } + lastGetCombinedModifierFlagsNode = node; + lastGetCombinedModifierFlagsResult = getCombinedModifierFlags(node); + return lastGetCombinedModifierFlagsResult; + } + function getCombinedNodeFlagsCached(node) { + if (lastGetCombinedNodeFlagsNode === node) { + return lastGetCombinedNodeFlagsResult; + } + lastGetCombinedNodeFlagsNode = node; + lastGetCombinedNodeFlagsResult = getCombinedNodeFlags(node); + return lastGetCombinedNodeFlagsResult; + } + function isVarConstLike(node) { + const blockScopeKind = getCombinedNodeFlagsCached(node) & 7 /* BlockScoped */; + return blockScopeKind === 2 /* Const */ || blockScopeKind === 4 /* Using */ || blockScopeKind === 6 /* AwaitUsing */; + } } function isNotAccessor(declaration) { return !isAccessor(declaration); } function isNotOverload(declaration) { - return declaration.kind !== 261 /* FunctionDeclaration */ && declaration.kind !== 173 /* MethodDeclaration */ || !!declaration.body; + return declaration.kind !== 262 /* FunctionDeclaration */ && declaration.kind !== 174 /* MethodDeclaration */ || !!declaration.body; } function isDeclarationNameOrImportPropertyName(name) { switch (name.parent.kind) { - case 275 /* ImportSpecifier */: - case 280 /* ExportSpecifier */: + case 276 /* ImportSpecifier */: + case 281 /* ExportSpecifier */: return isIdentifier(name); default: return isDeclarationName(name); @@ -85772,6 +86410,7 @@ ${lanes.join("\n")} CheckMode3[CheckMode3["IsForSignatureHelp"] = 16] = "IsForSignatureHelp"; CheckMode3[CheckMode3["IsForStringLiteralArgumentCompletions"] = 32] = "IsForStringLiteralArgumentCompletions"; CheckMode3[CheckMode3["RestBindingElement"] = 64] = "RestBindingElement"; + CheckMode3[CheckMode3["TypeOnly"] = 128] = "TypeOnly"; return CheckMode3; })(CheckMode || {}); SignatureCheckMode = /* @__PURE__ */ ((SignatureCheckMode3) => { @@ -85805,13 +86444,13 @@ ${lanes.join("\n")} JsxNames2.IntrinsicClassAttributes = "IntrinsicClassAttributes"; JsxNames2.LibraryManagedAttributes = "LibraryManagedAttributes"; })(JsxNames || (JsxNames = {})); - SymbolTrackerImpl = class { + SymbolTrackerImpl = class _SymbolTrackerImpl { constructor(context, tracker, moduleResolverHost) { this.moduleResolverHost = void 0; this.inner = void 0; this.disableTrackSymbol = false; var _a; - while (tracker instanceof SymbolTrackerImpl) { + while (tracker instanceof _SymbolTrackerImpl) { tracker = tracker.inner; } this.inner = tracker; @@ -86180,21 +86819,21 @@ ${lanes.join("\n")} "use strict"; init_ts2(); visitEachChildTable = { - [165 /* QualifiedName */]: function visitEachChildOfQualifiedName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [166 /* QualifiedName */]: function visitEachChildOfQualifiedName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateQualifiedName( node, Debug.checkDefined(nodeVisitor(node.left, visitor, isEntityName)), Debug.checkDefined(nodeVisitor(node.right, visitor, isIdentifier)) ); }, - [166 /* ComputedPropertyName */]: function visitEachChildOfComputedPropertyName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [167 /* ComputedPropertyName */]: function visitEachChildOfComputedPropertyName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateComputedPropertyName( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, // Signature elements - [167 /* TypeParameter */]: function visitEachChildOfTypeParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [168 /* TypeParameter */]: function visitEachChildOfTypeParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeParameterDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -86203,7 +86842,7 @@ ${lanes.join("\n")} nodeVisitor(node.default, visitor, isTypeNode) ); }, - [168 /* Parameter */]: function visitEachChildOfParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [169 /* Parameter */]: function visitEachChildOfParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateParameterDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -86214,14 +86853,14 @@ ${lanes.join("\n")} nodeVisitor(node.initializer, visitor, isExpression) ); }, - [169 /* Decorator */]: function visitEachChildOfDecorator(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [170 /* Decorator */]: function visitEachChildOfDecorator(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateDecorator( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, // Type elements - [170 /* PropertySignature */]: function visitEachChildOfPropertySignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [171 /* PropertySignature */]: function visitEachChildOfPropertySignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updatePropertySignature( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -86230,7 +86869,7 @@ ${lanes.join("\n")} nodeVisitor(node.type, visitor, isTypeNode) ); }, - [171 /* PropertyDeclaration */]: function visitEachChildOfPropertyDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [172 /* PropertyDeclaration */]: function visitEachChildOfPropertyDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updatePropertyDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -86241,7 +86880,7 @@ ${lanes.join("\n")} nodeVisitor(node.initializer, visitor, isExpression) ); }, - [172 /* MethodSignature */]: function visitEachChildOfMethodSignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [173 /* MethodSignature */]: function visitEachChildOfMethodSignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateMethodSignature( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -86252,7 +86891,7 @@ ${lanes.join("\n")} nodeVisitor(node.type, visitor, isTypeNode) ); }, - [173 /* MethodDeclaration */]: function visitEachChildOfMethodDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [174 /* MethodDeclaration */]: function visitEachChildOfMethodDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateMethodDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -86265,7 +86904,7 @@ ${lanes.join("\n")} visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [175 /* Constructor */]: function visitEachChildOfConstructorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [176 /* Constructor */]: function visitEachChildOfConstructorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateConstructorDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -86273,7 +86912,7 @@ ${lanes.join("\n")} visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [176 /* GetAccessor */]: function visitEachChildOfGetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [177 /* GetAccessor */]: function visitEachChildOfGetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateGetAccessorDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -86283,7 +86922,7 @@ ${lanes.join("\n")} visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [177 /* SetAccessor */]: function visitEachChildOfSetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [178 /* SetAccessor */]: function visitEachChildOfSetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateSetAccessorDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -86292,7 +86931,7 @@ ${lanes.join("\n")} visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [174 /* ClassStaticBlockDeclaration */]: function visitEachChildOfClassStaticBlockDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [175 /* ClassStaticBlockDeclaration */]: function visitEachChildOfClassStaticBlockDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { context.startLexicalEnvironment(); context.suspendLexicalEnvironment(); return context.factory.updateClassStaticBlockDeclaration( @@ -86300,7 +86939,7 @@ ${lanes.join("\n")} visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [178 /* CallSignature */]: function visitEachChildOfCallSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [179 /* CallSignature */]: function visitEachChildOfCallSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateCallSignature( node, nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), @@ -86308,7 +86947,7 @@ ${lanes.join("\n")} nodeVisitor(node.type, visitor, isTypeNode) ); }, - [179 /* ConstructSignature */]: function visitEachChildOfConstructSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [180 /* ConstructSignature */]: function visitEachChildOfConstructSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateConstructSignature( node, nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), @@ -86316,7 +86955,7 @@ ${lanes.join("\n")} nodeVisitor(node.type, visitor, isTypeNode) ); }, - [180 /* IndexSignature */]: function visitEachChildOfIndexSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [181 /* IndexSignature */]: function visitEachChildOfIndexSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateIndexSignature( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -86325,7 +86964,7 @@ ${lanes.join("\n")} ); }, // Types - [181 /* TypePredicate */]: function visitEachChildOfTypePredicateNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [182 /* TypePredicate */]: function visitEachChildOfTypePredicateNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypePredicateNode( node, nodeVisitor(node.assertsModifier, visitor, isAssertsKeyword), @@ -86333,14 +86972,14 @@ ${lanes.join("\n")} nodeVisitor(node.type, visitor, isTypeNode) ); }, - [182 /* TypeReference */]: function visitEachChildOfTypeReferenceNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [183 /* TypeReference */]: function visitEachChildOfTypeReferenceNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeReferenceNode( node, Debug.checkDefined(nodeVisitor(node.typeName, visitor, isEntityName)), nodesVisitor(node.typeArguments, visitor, isTypeNode) ); }, - [183 /* FunctionType */]: function visitEachChildOfFunctionTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [184 /* FunctionType */]: function visitEachChildOfFunctionTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateFunctionTypeNode( node, nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), @@ -86348,7 +86987,7 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [184 /* ConstructorType */]: function visitEachChildOfConstructorTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [185 /* ConstructorType */]: function visitEachChildOfConstructorTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateConstructorTypeNode( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -86357,56 +86996,56 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [185 /* TypeQuery */]: function visitEachChildOfTypeQueryNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [186 /* TypeQuery */]: function visitEachChildOfTypeQueryNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeQueryNode( node, Debug.checkDefined(nodeVisitor(node.exprName, visitor, isEntityName)), nodesVisitor(node.typeArguments, visitor, isTypeNode) ); }, - [186 /* TypeLiteral */]: function visitEachChildOfTypeLiteralNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [187 /* TypeLiteral */]: function visitEachChildOfTypeLiteralNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateTypeLiteralNode( node, nodesVisitor(node.members, visitor, isTypeElement) ); }, - [187 /* ArrayType */]: function visitEachChildOfArrayTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [188 /* ArrayType */]: function visitEachChildOfArrayTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateArrayTypeNode( node, Debug.checkDefined(nodeVisitor(node.elementType, visitor, isTypeNode)) ); }, - [188 /* TupleType */]: function visitEachChildOfTupleTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [189 /* TupleType */]: function visitEachChildOfTupleTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateTupleTypeNode( node, nodesVisitor(node.elements, visitor, isTypeNode) ); }, - [189 /* OptionalType */]: function visitEachChildOfOptionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [190 /* OptionalType */]: function visitEachChildOfOptionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateOptionalTypeNode( node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [190 /* RestType */]: function visitEachChildOfRestTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [191 /* RestType */]: function visitEachChildOfRestTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateRestTypeNode( node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [191 /* UnionType */]: function visitEachChildOfUnionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [192 /* UnionType */]: function visitEachChildOfUnionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateUnionTypeNode( node, nodesVisitor(node.types, visitor, isTypeNode) ); }, - [192 /* IntersectionType */]: function visitEachChildOfIntersectionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [193 /* IntersectionType */]: function visitEachChildOfIntersectionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateIntersectionTypeNode( node, nodesVisitor(node.types, visitor, isTypeNode) ); }, - [193 /* ConditionalType */]: function visitEachChildOfConditionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [194 /* ConditionalType */]: function visitEachChildOfConditionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateConditionalTypeNode( node, Debug.checkDefined(nodeVisitor(node.checkType, visitor, isTypeNode)), @@ -86415,13 +87054,13 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.falseType, visitor, isTypeNode)) ); }, - [194 /* InferType */]: function visitEachChildOfInferTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [195 /* InferType */]: function visitEachChildOfInferTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateInferTypeNode( node, Debug.checkDefined(nodeVisitor(node.typeParameter, visitor, isTypeParameterDeclaration)) ); }, - [204 /* ImportType */]: function visitEachChildOfImportTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [205 /* ImportType */]: function visitEachChildOfImportTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateImportTypeNode( node, Debug.checkDefined(nodeVisitor(node.argument, visitor, isTypeNode)), @@ -86431,14 +87070,14 @@ ${lanes.join("\n")} node.isTypeOf ); }, - [301 /* ImportTypeAssertionContainer */]: function visitEachChildOfImportTypeAssertionContainer(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [302 /* ImportTypeAssertionContainer */]: function visitEachChildOfImportTypeAssertionContainer(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateImportTypeAssertionContainer( node, Debug.checkDefined(nodeVisitor(node.assertClause, visitor, isAssertClause)), node.multiLine ); }, - [201 /* NamedTupleMember */]: function visitEachChildOfNamedTupleMember(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [202 /* NamedTupleMember */]: function visitEachChildOfNamedTupleMember(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateNamedTupleMember( node, tokenVisitor ? nodeVisitor(node.dotDotDotToken, tokenVisitor, isDotDotDotToken) : node.dotDotDotToken, @@ -86447,26 +87086,26 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [195 /* ParenthesizedType */]: function visitEachChildOfParenthesizedType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [196 /* ParenthesizedType */]: function visitEachChildOfParenthesizedType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateParenthesizedType( node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [197 /* TypeOperator */]: function visitEachChildOfTypeOperatorNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [198 /* TypeOperator */]: function visitEachChildOfTypeOperatorNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeOperatorNode( node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [198 /* IndexedAccessType */]: function visitEachChildOfIndexedAccessType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [199 /* IndexedAccessType */]: function visitEachChildOfIndexedAccessType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateIndexedAccessTypeNode( node, Debug.checkDefined(nodeVisitor(node.objectType, visitor, isTypeNode)), Debug.checkDefined(nodeVisitor(node.indexType, visitor, isTypeNode)) ); }, - [199 /* MappedType */]: function visitEachChildOfMappedType(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [200 /* MappedType */]: function visitEachChildOfMappedType(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateMappedTypeNode( node, tokenVisitor ? nodeVisitor(node.readonlyToken, tokenVisitor, isReadonlyKeywordOrPlusOrMinusToken) : node.readonlyToken, @@ -86477,20 +87116,20 @@ ${lanes.join("\n")} nodesVisitor(node.members, visitor, isTypeElement) ); }, - [200 /* LiteralType */]: function visitEachChildOfLiteralTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [201 /* LiteralType */]: function visitEachChildOfLiteralTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateLiteralTypeNode( node, Debug.checkDefined(nodeVisitor(node.literal, visitor, isLiteralTypeLiteral)) ); }, - [202 /* TemplateLiteralType */]: function visitEachChildOfTemplateLiteralType(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [203 /* TemplateLiteralType */]: function visitEachChildOfTemplateLiteralType(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTemplateLiteralType( node, Debug.checkDefined(nodeVisitor(node.head, visitor, isTemplateHead)), nodesVisitor(node.templateSpans, visitor, isTemplateLiteralTypeSpan) ); }, - [203 /* TemplateLiteralTypeSpan */]: function visitEachChildOfTemplateLiteralTypeSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [204 /* TemplateLiteralTypeSpan */]: function visitEachChildOfTemplateLiteralTypeSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTemplateLiteralTypeSpan( node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)), @@ -86498,19 +87137,19 @@ ${lanes.join("\n")} ); }, // Binding patterns - [205 /* ObjectBindingPattern */]: function visitEachChildOfObjectBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [206 /* ObjectBindingPattern */]: function visitEachChildOfObjectBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateObjectBindingPattern( node, nodesVisitor(node.elements, visitor, isBindingElement) ); }, - [206 /* ArrayBindingPattern */]: function visitEachChildOfArrayBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [207 /* ArrayBindingPattern */]: function visitEachChildOfArrayBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateArrayBindingPattern( node, nodesVisitor(node.elements, visitor, isArrayBindingElement) ); }, - [207 /* BindingElement */]: function visitEachChildOfBindingElement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [208 /* BindingElement */]: function visitEachChildOfBindingElement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateBindingElement( node, tokenVisitor ? nodeVisitor(node.dotDotDotToken, tokenVisitor, isDotDotDotToken) : node.dotDotDotToken, @@ -86520,19 +87159,19 @@ ${lanes.join("\n")} ); }, // Expression - [208 /* ArrayLiteralExpression */]: function visitEachChildOfArrayLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [209 /* ArrayLiteralExpression */]: function visitEachChildOfArrayLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateArrayLiteralExpression( node, nodesVisitor(node.elements, visitor, isExpression) ); }, - [209 /* ObjectLiteralExpression */]: function visitEachChildOfObjectLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [210 /* ObjectLiteralExpression */]: function visitEachChildOfObjectLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateObjectLiteralExpression( node, nodesVisitor(node.properties, visitor, isObjectLiteralElementLike) ); }, - [210 /* PropertyAccessExpression */]: function visitEachChildOfPropertyAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [211 /* PropertyAccessExpression */]: function visitEachChildOfPropertyAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return isPropertyAccessChain(node) ? context.factory.updatePropertyAccessChain( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), @@ -86544,7 +87183,7 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.name, visitor, isMemberName)) ); }, - [211 /* ElementAccessExpression */]: function visitEachChildOfElementAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [212 /* ElementAccessExpression */]: function visitEachChildOfElementAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return isElementAccessChain(node) ? context.factory.updateElementAccessChain( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), @@ -86556,7 +87195,7 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.argumentExpression, visitor, isExpression)) ); }, - [212 /* CallExpression */]: function visitEachChildOfCallExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [213 /* CallExpression */]: function visitEachChildOfCallExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return isCallChain(node) ? context.factory.updateCallChain( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), @@ -86570,7 +87209,7 @@ ${lanes.join("\n")} nodesVisitor(node.arguments, visitor, isExpression) ); }, - [213 /* NewExpression */]: function visitEachChildOfNewExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [214 /* NewExpression */]: function visitEachChildOfNewExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateNewExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), @@ -86578,7 +87217,7 @@ ${lanes.join("\n")} nodesVisitor(node.arguments, visitor, isExpression) ); }, - [214 /* TaggedTemplateExpression */]: function visitEachChildOfTaggedTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [215 /* TaggedTemplateExpression */]: function visitEachChildOfTaggedTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTaggedTemplateExpression( node, Debug.checkDefined(nodeVisitor(node.tag, visitor, isExpression)), @@ -86586,20 +87225,20 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.template, visitor, isTemplateLiteral)) ); }, - [215 /* TypeAssertionExpression */]: function visitEachChildOfTypeAssertionExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [216 /* TypeAssertionExpression */]: function visitEachChildOfTypeAssertionExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeAssertion( node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)), Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [216 /* ParenthesizedExpression */]: function visitEachChildOfParenthesizedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [217 /* ParenthesizedExpression */]: function visitEachChildOfParenthesizedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateParenthesizedExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [217 /* FunctionExpression */]: function visitEachChildOfFunctionExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [218 /* FunctionExpression */]: function visitEachChildOfFunctionExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateFunctionExpression( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -86611,7 +87250,7 @@ ${lanes.join("\n")} visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [218 /* ArrowFunction */]: function visitEachChildOfArrowFunction(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [219 /* ArrowFunction */]: function visitEachChildOfArrowFunction(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateArrowFunction( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -86622,43 +87261,43 @@ ${lanes.join("\n")} visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [219 /* DeleteExpression */]: function visitEachChildOfDeleteExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [220 /* DeleteExpression */]: function visitEachChildOfDeleteExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateDeleteExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [220 /* TypeOfExpression */]: function visitEachChildOfTypeOfExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [221 /* TypeOfExpression */]: function visitEachChildOfTypeOfExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeOfExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [221 /* VoidExpression */]: function visitEachChildOfVoidExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [222 /* VoidExpression */]: function visitEachChildOfVoidExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateVoidExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [222 /* AwaitExpression */]: function visitEachChildOfAwaitExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [223 /* AwaitExpression */]: function visitEachChildOfAwaitExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateAwaitExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [223 /* PrefixUnaryExpression */]: function visitEachChildOfPrefixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [224 /* PrefixUnaryExpression */]: function visitEachChildOfPrefixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updatePrefixUnaryExpression( node, Debug.checkDefined(nodeVisitor(node.operand, visitor, isExpression)) ); }, - [224 /* PostfixUnaryExpression */]: function visitEachChildOfPostfixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [225 /* PostfixUnaryExpression */]: function visitEachChildOfPostfixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updatePostfixUnaryExpression( node, Debug.checkDefined(nodeVisitor(node.operand, visitor, isExpression)) ); }, - [225 /* BinaryExpression */]: function visitEachChildOfBinaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [226 /* BinaryExpression */]: function visitEachChildOfBinaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateBinaryExpression( node, Debug.checkDefined(nodeVisitor(node.left, visitor, isExpression)), @@ -86666,7 +87305,7 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.right, visitor, isExpression)) ); }, - [226 /* ConditionalExpression */]: function visitEachChildOfConditionalExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [227 /* ConditionalExpression */]: function visitEachChildOfConditionalExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateConditionalExpression( node, Debug.checkDefined(nodeVisitor(node.condition, visitor, isExpression)), @@ -86676,27 +87315,27 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.whenFalse, visitor, isExpression)) ); }, - [227 /* TemplateExpression */]: function visitEachChildOfTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [228 /* TemplateExpression */]: function visitEachChildOfTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTemplateExpression( node, Debug.checkDefined(nodeVisitor(node.head, visitor, isTemplateHead)), nodesVisitor(node.templateSpans, visitor, isTemplateSpan) ); }, - [228 /* YieldExpression */]: function visitEachChildOfYieldExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [229 /* YieldExpression */]: function visitEachChildOfYieldExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateYieldExpression( node, tokenVisitor ? nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken) : node.asteriskToken, nodeVisitor(node.expression, visitor, isExpression) ); }, - [229 /* SpreadElement */]: function visitEachChildOfSpreadElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [230 /* SpreadElement */]: function visitEachChildOfSpreadElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateSpreadElement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [230 /* ClassExpression */]: function visitEachChildOfClassExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [231 /* ClassExpression */]: function visitEachChildOfClassExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateClassExpression( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -86706,28 +87345,28 @@ ${lanes.join("\n")} nodesVisitor(node.members, visitor, isClassElement) ); }, - [232 /* ExpressionWithTypeArguments */]: function visitEachChildOfExpressionWithTypeArguments(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [233 /* ExpressionWithTypeArguments */]: function visitEachChildOfExpressionWithTypeArguments(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateExpressionWithTypeArguments( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), nodesVisitor(node.typeArguments, visitor, isTypeNode) ); }, - [233 /* AsExpression */]: function visitEachChildOfAsExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [234 /* AsExpression */]: function visitEachChildOfAsExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateAsExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [237 /* SatisfiesExpression */]: function visitEachChildOfSatisfiesExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [238 /* SatisfiesExpression */]: function visitEachChildOfSatisfiesExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateSatisfiesExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [234 /* NonNullExpression */]: function visitEachChildOfNonNullExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [235 /* NonNullExpression */]: function visitEachChildOfNonNullExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return isOptionalChain(node) ? context.factory.updateNonNullChain( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) @@ -86736,14 +87375,14 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [235 /* MetaProperty */]: function visitEachChildOfMetaProperty(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [236 /* MetaProperty */]: function visitEachChildOfMetaProperty(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateMetaProperty( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) ); }, // Misc - [238 /* TemplateSpan */]: function visitEachChildOfTemplateSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [239 /* TemplateSpan */]: function visitEachChildOfTemplateSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTemplateSpan( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), @@ -86751,26 +87390,26 @@ ${lanes.join("\n")} ); }, // Element - [240 /* Block */]: function visitEachChildOfBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [241 /* Block */]: function visitEachChildOfBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateBlock( node, nodesVisitor(node.statements, visitor, isStatement) ); }, - [242 /* VariableStatement */]: function visitEachChildOfVariableStatement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [243 /* VariableStatement */]: function visitEachChildOfVariableStatement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateVariableStatement( node, nodesVisitor(node.modifiers, visitor, isModifierLike), Debug.checkDefined(nodeVisitor(node.declarationList, visitor, isVariableDeclarationList)) ); }, - [243 /* ExpressionStatement */]: function visitEachChildOfExpressionStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [244 /* ExpressionStatement */]: function visitEachChildOfExpressionStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateExpressionStatement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [244 /* IfStatement */]: function visitEachChildOfIfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [245 /* IfStatement */]: function visitEachChildOfIfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateIfStatement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), @@ -86778,21 +87417,21 @@ ${lanes.join("\n")} nodeVisitor(node.elseStatement, visitor, isStatement, context.factory.liftToBlock) ); }, - [245 /* DoStatement */]: function visitEachChildOfDoStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [246 /* DoStatement */]: function visitEachChildOfDoStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateDoStatement( node, visitIterationBody(node.statement, visitor, context, nodeVisitor), Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [246 /* WhileStatement */]: function visitEachChildOfWhileStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [247 /* WhileStatement */]: function visitEachChildOfWhileStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateWhileStatement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), visitIterationBody(node.statement, visitor, context, nodeVisitor) ); }, - [247 /* ForStatement */]: function visitEachChildOfForStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [248 /* ForStatement */]: function visitEachChildOfForStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateForStatement( node, nodeVisitor(node.initializer, visitor, isForInitializer), @@ -86801,7 +87440,7 @@ ${lanes.join("\n")} visitIterationBody(node.statement, visitor, context, nodeVisitor) ); }, - [248 /* ForInStatement */]: function visitEachChildOfForInStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [249 /* ForInStatement */]: function visitEachChildOfForInStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateForInStatement( node, Debug.checkDefined(nodeVisitor(node.initializer, visitor, isForInitializer)), @@ -86809,7 +87448,7 @@ ${lanes.join("\n")} visitIterationBody(node.statement, visitor, context, nodeVisitor) ); }, - [249 /* ForOfStatement */]: function visitEachChildOfForOfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [250 /* ForOfStatement */]: function visitEachChildOfForOfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateForOfStatement( node, tokenVisitor ? nodeVisitor(node.awaitModifier, tokenVisitor, isAwaitKeyword) : node.awaitModifier, @@ -86818,52 +87457,52 @@ ${lanes.join("\n")} visitIterationBody(node.statement, visitor, context, nodeVisitor) ); }, - [250 /* ContinueStatement */]: function visitEachChildOfContinueStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [251 /* ContinueStatement */]: function visitEachChildOfContinueStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateContinueStatement( node, nodeVisitor(node.label, visitor, isIdentifier) ); }, - [251 /* BreakStatement */]: function visitEachChildOfBreakStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [252 /* BreakStatement */]: function visitEachChildOfBreakStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateBreakStatement( node, nodeVisitor(node.label, visitor, isIdentifier) ); }, - [252 /* ReturnStatement */]: function visitEachChildOfReturnStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [253 /* ReturnStatement */]: function visitEachChildOfReturnStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateReturnStatement( node, nodeVisitor(node.expression, visitor, isExpression) ); }, - [253 /* WithStatement */]: function visitEachChildOfWithStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [254 /* WithStatement */]: function visitEachChildOfWithStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateWithStatement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), Debug.checkDefined(nodeVisitor(node.statement, visitor, isStatement, context.factory.liftToBlock)) ); }, - [254 /* SwitchStatement */]: function visitEachChildOfSwitchStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [255 /* SwitchStatement */]: function visitEachChildOfSwitchStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateSwitchStatement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), Debug.checkDefined(nodeVisitor(node.caseBlock, visitor, isCaseBlock)) ); }, - [255 /* LabeledStatement */]: function visitEachChildOfLabeledStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [256 /* LabeledStatement */]: function visitEachChildOfLabeledStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateLabeledStatement( node, Debug.checkDefined(nodeVisitor(node.label, visitor, isIdentifier)), Debug.checkDefined(nodeVisitor(node.statement, visitor, isStatement, context.factory.liftToBlock)) ); }, - [256 /* ThrowStatement */]: function visitEachChildOfThrowStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [257 /* ThrowStatement */]: function visitEachChildOfThrowStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateThrowStatement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [257 /* TryStatement */]: function visitEachChildOfTryStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [258 /* TryStatement */]: function visitEachChildOfTryStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTryStatement( node, Debug.checkDefined(nodeVisitor(node.tryBlock, visitor, isBlock)), @@ -86871,7 +87510,7 @@ ${lanes.join("\n")} nodeVisitor(node.finallyBlock, visitor, isBlock) ); }, - [259 /* VariableDeclaration */]: function visitEachChildOfVariableDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [260 /* VariableDeclaration */]: function visitEachChildOfVariableDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateVariableDeclaration( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isBindingName)), @@ -86880,13 +87519,13 @@ ${lanes.join("\n")} nodeVisitor(node.initializer, visitor, isExpression) ); }, - [260 /* VariableDeclarationList */]: function visitEachChildOfVariableDeclarationList(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [261 /* VariableDeclarationList */]: function visitEachChildOfVariableDeclarationList(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateVariableDeclarationList( node, nodesVisitor(node.declarations, visitor, isVariableDeclaration) ); }, - [261 /* FunctionDeclaration */]: function visitEachChildOfFunctionDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [262 /* FunctionDeclaration */]: function visitEachChildOfFunctionDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateFunctionDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -86898,7 +87537,7 @@ ${lanes.join("\n")} visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [262 /* ClassDeclaration */]: function visitEachChildOfClassDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [263 /* ClassDeclaration */]: function visitEachChildOfClassDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateClassDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -86908,7 +87547,7 @@ ${lanes.join("\n")} nodesVisitor(node.members, visitor, isClassElement) ); }, - [263 /* InterfaceDeclaration */]: function visitEachChildOfInterfaceDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [264 /* InterfaceDeclaration */]: function visitEachChildOfInterfaceDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateInterfaceDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -86918,7 +87557,7 @@ ${lanes.join("\n")} nodesVisitor(node.members, visitor, isTypeElement) ); }, - [264 /* TypeAliasDeclaration */]: function visitEachChildOfTypeAliasDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [265 /* TypeAliasDeclaration */]: function visitEachChildOfTypeAliasDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeAliasDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -86927,7 +87566,7 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [265 /* EnumDeclaration */]: function visitEachChildOfEnumDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [266 /* EnumDeclaration */]: function visitEachChildOfEnumDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateEnumDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -86935,7 +87574,7 @@ ${lanes.join("\n")} nodesVisitor(node.members, visitor, isEnumMember) ); }, - [266 /* ModuleDeclaration */]: function visitEachChildOfModuleDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [267 /* ModuleDeclaration */]: function visitEachChildOfModuleDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateModuleDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -86943,25 +87582,25 @@ ${lanes.join("\n")} nodeVisitor(node.body, visitor, isModuleBody) ); }, - [267 /* ModuleBlock */]: function visitEachChildOfModuleBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [268 /* ModuleBlock */]: function visitEachChildOfModuleBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateModuleBlock( node, nodesVisitor(node.statements, visitor, isStatement) ); }, - [268 /* CaseBlock */]: function visitEachChildOfCaseBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [269 /* CaseBlock */]: function visitEachChildOfCaseBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateCaseBlock( node, nodesVisitor(node.clauses, visitor, isCaseOrDefaultClause) ); }, - [269 /* NamespaceExportDeclaration */]: function visitEachChildOfNamespaceExportDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [270 /* NamespaceExportDeclaration */]: function visitEachChildOfNamespaceExportDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateNamespaceExportDeclaration( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) ); }, - [270 /* ImportEqualsDeclaration */]: function visitEachChildOfImportEqualsDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [271 /* ImportEqualsDeclaration */]: function visitEachChildOfImportEqualsDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateImportEqualsDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -86970,7 +87609,7 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.moduleReference, visitor, isModuleReference)) ); }, - [271 /* ImportDeclaration */]: function visitEachChildOfImportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [272 /* ImportDeclaration */]: function visitEachChildOfImportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateImportDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -86979,21 +87618,21 @@ ${lanes.join("\n")} nodeVisitor(node.assertClause, visitor, isAssertClause) ); }, - [299 /* AssertClause */]: function visitEachChildOfAssertClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [300 /* AssertClause */]: function visitEachChildOfAssertClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateAssertClause( node, nodesVisitor(node.elements, visitor, isAssertEntry), node.multiLine ); }, - [300 /* AssertEntry */]: function visitEachChildOfAssertEntry(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [301 /* AssertEntry */]: function visitEachChildOfAssertEntry(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateAssertEntry( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isAssertionKey)), Debug.checkDefined(nodeVisitor(node.value, visitor, isExpression)) ); }, - [272 /* ImportClause */]: function visitEachChildOfImportClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [273 /* ImportClause */]: function visitEachChildOfImportClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateImportClause( node, node.isTypeOnly, @@ -87001,25 +87640,25 @@ ${lanes.join("\n")} nodeVisitor(node.namedBindings, visitor, isNamedImportBindings) ); }, - [273 /* NamespaceImport */]: function visitEachChildOfNamespaceImport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [274 /* NamespaceImport */]: function visitEachChildOfNamespaceImport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateNamespaceImport( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) ); }, - [279 /* NamespaceExport */]: function visitEachChildOfNamespaceExport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [280 /* NamespaceExport */]: function visitEachChildOfNamespaceExport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateNamespaceExport( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) ); }, - [274 /* NamedImports */]: function visitEachChildOfNamedImports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [275 /* NamedImports */]: function visitEachChildOfNamedImports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateNamedImports( node, nodesVisitor(node.elements, visitor, isImportSpecifier) ); }, - [275 /* ImportSpecifier */]: function visitEachChildOfImportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [276 /* ImportSpecifier */]: function visitEachChildOfImportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateImportSpecifier( node, node.isTypeOnly, @@ -87027,14 +87666,14 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) ); }, - [276 /* ExportAssignment */]: function visitEachChildOfExportAssignment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [277 /* ExportAssignment */]: function visitEachChildOfExportAssignment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateExportAssignment( node, nodesVisitor(node.modifiers, visitor, isModifierLike), Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [277 /* ExportDeclaration */]: function visitEachChildOfExportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [278 /* ExportDeclaration */]: function visitEachChildOfExportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateExportDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -87044,13 +87683,13 @@ ${lanes.join("\n")} nodeVisitor(node.assertClause, visitor, isAssertClause) ); }, - [278 /* NamedExports */]: function visitEachChildOfNamedExports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [279 /* NamedExports */]: function visitEachChildOfNamedExports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateNamedExports( node, nodesVisitor(node.elements, visitor, isExportSpecifier) ); }, - [280 /* ExportSpecifier */]: function visitEachChildOfExportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [281 /* ExportSpecifier */]: function visitEachChildOfExportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateExportSpecifier( node, node.isTypeOnly, @@ -87059,14 +87698,14 @@ ${lanes.join("\n")} ); }, // Module references - [282 /* ExternalModuleReference */]: function visitEachChildOfExternalModuleReference(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [283 /* ExternalModuleReference */]: function visitEachChildOfExternalModuleReference(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateExternalModuleReference( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, // JSX - [283 /* JsxElement */]: function visitEachChildOfJsxElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [284 /* JsxElement */]: function visitEachChildOfJsxElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxElement( node, Debug.checkDefined(nodeVisitor(node.openingElement, visitor, isJsxOpeningElement)), @@ -87074,7 +87713,7 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.closingElement, visitor, isJsxClosingElement)) ); }, - [284 /* JsxSelfClosingElement */]: function visitEachChildOfJsxSelfClosingElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [285 /* JsxSelfClosingElement */]: function visitEachChildOfJsxSelfClosingElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxSelfClosingElement( node, Debug.checkDefined(nodeVisitor(node.tagName, visitor, isJsxTagNameExpression)), @@ -87082,7 +87721,7 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.attributes, visitor, isJsxAttributes)) ); }, - [285 /* JsxOpeningElement */]: function visitEachChildOfJsxOpeningElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [286 /* JsxOpeningElement */]: function visitEachChildOfJsxOpeningElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxOpeningElement( node, Debug.checkDefined(nodeVisitor(node.tagName, visitor, isJsxTagNameExpression)), @@ -87090,20 +87729,20 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.attributes, visitor, isJsxAttributes)) ); }, - [286 /* JsxClosingElement */]: function visitEachChildOfJsxClosingElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [287 /* JsxClosingElement */]: function visitEachChildOfJsxClosingElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxClosingElement( node, Debug.checkDefined(nodeVisitor(node.tagName, visitor, isJsxTagNameExpression)) ); }, - [294 /* JsxNamespacedName */]: function forEachChildInJsxNamespacedName2(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [295 /* JsxNamespacedName */]: function forEachChildInJsxNamespacedName2(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxNamespacedName( node, Debug.checkDefined(nodeVisitor(node.namespace, visitor, isIdentifier)), Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) ); }, - [287 /* JsxFragment */]: function visitEachChildOfJsxFragment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [288 /* JsxFragment */]: function visitEachChildOfJsxFragment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxFragment( node, Debug.checkDefined(nodeVisitor(node.openingFragment, visitor, isJsxOpeningFragment)), @@ -87111,52 +87750,52 @@ ${lanes.join("\n")} Debug.checkDefined(nodeVisitor(node.closingFragment, visitor, isJsxClosingFragment)) ); }, - [290 /* JsxAttribute */]: function visitEachChildOfJsxAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [291 /* JsxAttribute */]: function visitEachChildOfJsxAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxAttribute( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isJsxAttributeName)), nodeVisitor(node.initializer, visitor, isStringLiteralOrJsxExpression) ); }, - [291 /* JsxAttributes */]: function visitEachChildOfJsxAttributes(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [292 /* JsxAttributes */]: function visitEachChildOfJsxAttributes(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateJsxAttributes( node, nodesVisitor(node.properties, visitor, isJsxAttributeLike) ); }, - [292 /* JsxSpreadAttribute */]: function visitEachChildOfJsxSpreadAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [293 /* JsxSpreadAttribute */]: function visitEachChildOfJsxSpreadAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxSpreadAttribute( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [293 /* JsxExpression */]: function visitEachChildOfJsxExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [294 /* JsxExpression */]: function visitEachChildOfJsxExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxExpression( node, nodeVisitor(node.expression, visitor, isExpression) ); }, // Clauses - [295 /* CaseClause */]: function visitEachChildOfCaseClause(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [296 /* CaseClause */]: function visitEachChildOfCaseClause(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateCaseClause( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), nodesVisitor(node.statements, visitor, isStatement) ); }, - [296 /* DefaultClause */]: function visitEachChildOfDefaultClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [297 /* DefaultClause */]: function visitEachChildOfDefaultClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateDefaultClause( node, nodesVisitor(node.statements, visitor, isStatement) ); }, - [297 /* HeritageClause */]: function visitEachChildOfHeritageClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [298 /* HeritageClause */]: function visitEachChildOfHeritageClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateHeritageClause( node, nodesVisitor(node.types, visitor, isExpressionWithTypeArguments) ); }, - [298 /* CatchClause */]: function visitEachChildOfCatchClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [299 /* CatchClause */]: function visitEachChildOfCatchClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateCatchClause( node, nodeVisitor(node.variableDeclaration, visitor, isVariableDeclaration), @@ -87164,28 +87803,28 @@ ${lanes.join("\n")} ); }, // Property assignments - [302 /* PropertyAssignment */]: function visitEachChildOfPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [303 /* PropertyAssignment */]: function visitEachChildOfPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updatePropertyAssignment( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), Debug.checkDefined(nodeVisitor(node.initializer, visitor, isExpression)) ); }, - [303 /* ShorthandPropertyAssignment */]: function visitEachChildOfShorthandPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [304 /* ShorthandPropertyAssignment */]: function visitEachChildOfShorthandPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateShorthandPropertyAssignment( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)), nodeVisitor(node.objectAssignmentInitializer, visitor, isExpression) ); }, - [304 /* SpreadAssignment */]: function visitEachChildOfSpreadAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [305 /* SpreadAssignment */]: function visitEachChildOfSpreadAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateSpreadAssignment( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, // Enum - [305 /* EnumMember */]: function visitEachChildOfEnumMember(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [306 /* EnumMember */]: function visitEachChildOfEnumMember(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateEnumMember( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), @@ -87193,20 +87832,20 @@ ${lanes.join("\n")} ); }, // Top-level nodes - [311 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context, _nodesVisitor, _nodeVisitor, _tokenVisitor) { + [312 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context, _nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateSourceFile( node, visitLexicalEnvironment(node.statements, visitor, context) ); }, // Transformation nodes - [359 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [360 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updatePartiallyEmittedExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [360 /* CommaListExpression */]: function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [361 /* CommaListExpression */]: function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateCommaListExpression( node, nodesVisitor(node.elements, visitor, isExpression) @@ -87499,13 +88138,13 @@ ${lanes.join("\n")} let sourceLine = 0; let sourceCharacter = 0; let nameIndex = 0; - let error; + let error2; return { get pos() { return pos; }, get error() { - return error; + return error2; }, get state() { return captureMapping( @@ -87590,8 +88229,8 @@ ${lanes.join("\n")} return { value: void 0, done: true }; } function setError(message) { - if (error === void 0) { - error = message; + if (error2 === void 0) { + error2 = message; } } function setErrorAndStopIterating(message) { @@ -87599,7 +88238,7 @@ ${lanes.join("\n")} return stopIterating(); } function hasReportedError() { - return error !== void 0; + return error2 !== void 0; } function isSourceMappingSegmentEnd() { return pos === mappings.length || mappings.charCodeAt(pos) === 44 /* comma */ || mappings.charCodeAt(pos) === 59 /* semicolon */; @@ -87807,7 +88446,7 @@ ${lanes.join("\n")} function chainBundle(context, transformSourceFile) { return transformSourceFileOrBundle; function transformSourceFileOrBundle(node) { - return node.kind === 311 /* SourceFile */ ? transformSourceFile(node) : transformBundle(node); + return node.kind === 312 /* SourceFile */ ? transformSourceFile(node) : transformBundle(node); } function transformBundle(node) { return context.factory.createBundle(map(node.sourceFiles, transformSourceFile), node.prepends); @@ -87837,9 +88476,11 @@ ${lanes.join("\n")} function getImportNeedsImportDefaultHelper(node) { return !getImportNeedsImportStarHelper(node) && (isDefaultImport(node) || !!node.importClause && isNamedImports(node.importClause.namedBindings) && containsDefaultReference(node.importClause.namedBindings)); } - function collectExternalModuleInfo(context, sourceFile, resolver, compilerOptions) { + function collectExternalModuleInfo(context, sourceFile) { + const resolver = context.getEmitResolver(); + const compilerOptions = context.getCompilerOptions(); const externalImports = []; - const exportSpecifiers = createMultiMap(); + const exportSpecifiers = new IdentifierNameMultiMap(); const exportedBindings = []; const uniqueExports = /* @__PURE__ */ new Map(); let exportedNames; @@ -87850,7 +88491,7 @@ ${lanes.join("\n")} let hasImportDefault = false; for (const node of sourceFile.statements) { switch (node.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: externalImports.push(node); if (!hasImportStar && getImportNeedsImportStarHelper(node)) { hasImportStar = true; @@ -87859,12 +88500,12 @@ ${lanes.join("\n")} hasImportDefault = true; } break; - case 270 /* ImportEqualsDeclaration */: - if (node.moduleReference.kind === 282 /* ExternalModuleReference */) { + case 271 /* ImportEqualsDeclaration */: + if (node.moduleReference.kind === 283 /* ExternalModuleReference */) { externalImports.push(node); } break; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: if (node.moduleSpecifier) { if (!node.exportClause) { externalImports.push(node); @@ -87887,19 +88528,19 @@ ${lanes.join("\n")} addExportedNamesForExportDeclaration(node); } break; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: if (node.isExportEquals && !exportEquals) { exportEquals = node; } break; - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: if (hasSyntacticModifier(node, 1 /* Export */)) { for (const decl of node.declarationList.declarations) { exportedNames = collectExportedVariableInfo(decl, uniqueExports, exportedNames, exportedBindings); } } break; - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: if (hasSyntacticModifier(node, 1 /* Export */)) { if (hasSyntacticModifier(node, 1024 /* Default */)) { if (!hasExportDefault) { @@ -87916,7 +88557,7 @@ ${lanes.join("\n")} } } break; - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: if (hasSyntacticModifier(node, 1 /* Export */)) { if (hasSyntacticModifier(node, 1024 /* Default */)) { if (!hasExportDefault) { @@ -87945,7 +88586,7 @@ ${lanes.join("\n")} if (!uniqueExports.get(idText(specifier.name))) { const name = specifier.propertyName || specifier.name; if (!node.moduleSpecifier) { - exportSpecifiers.add(idText(name), specifier); + exportSpecifiers.add(name, specifier); } const decl = resolver.getReferencedImportDeclaration(name) || resolver.getReferencedValueDeclaration(name); if (decl) { @@ -88035,14 +88676,23 @@ ${lanes.join("\n")} const expression = skipParentheses(statement.expression); return isSuperCall(expression) ? expression : void 0; } - function findSuperStatementIndex(statements, indexAfterLastPrologueStatement) { - for (let i = indexAfterLastPrologueStatement; i < statements.length; i += 1) { + function findSuperStatementIndexPathWorker(statements, start, indices) { + for (let i = start; i < statements.length; i += 1) { const statement = statements[i]; if (getSuperCallFromStatement(statement)) { - return i; + indices.unshift(i); + return true; + } else if (isTryStatement(statement) && findSuperStatementIndexPathWorker(statement.tryBlock.statements, 0, indices)) { + indices.unshift(i); + return true; } } - return -1; + return false; + } + function findSuperStatementIndexPath(statements, start) { + const indices = []; + findSuperStatementIndexPathWorker(statements, start, indices); + return indices; } function getProperties(node, requireInitializer, isStatic2) { return filter(node.members, (m) => isInitializedOrStaticProperty(m, requireInitializer, isStatic2)); @@ -88060,7 +88710,7 @@ ${lanes.join("\n")} return isPropertyDeclaration(member) && hasStaticModifier(member); } function isInitializedProperty(member) { - return member.kind === 171 /* PropertyDeclaration */ && member.initializer !== void 0; + return member.kind === 172 /* PropertyDeclaration */ && member.initializer !== void 0; } function isNonStaticMethodOrAccessorWithPrivateName(member) { return !isStatic(member) && (isMethodOrAccessor(member) || isAutoAccessorPropertyDeclaration(member)) && isPrivateIdentifier(member.name); @@ -88097,15 +88747,15 @@ ${lanes.join("\n")} } function getAllDecoratorsOfClassElement(member, parent2, useLegacyDecorators) { switch (member.kind) { - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: if (!useLegacyDecorators) { return getAllDecoratorsOfMethod(member); } return getAllDecoratorsOfAccessors(member, parent2); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return getAllDecoratorsOfMethod(member); - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return getAllDecoratorsOfProperty(member); default: return void 0; @@ -88177,10 +88827,90 @@ ${lanes.join("\n")} function accessPrivateIdentifier(env, name) { return walkUpLexicalEnvironments(env, (env2) => getPrivateIdentifier(env2.privateEnv, name)); } + var IdentifierNameMap, IdentifierNameMultiMap; var init_utilities3 = __esm({ "src/compiler/transformers/utilities.ts"() { "use strict"; init_ts2(); + IdentifierNameMap = class _IdentifierNameMap { + constructor() { + this._map = /* @__PURE__ */ new Map(); + } + get size() { + return this._map.size; + } + has(key) { + return this._map.has(_IdentifierNameMap.toKey(key)); + } + get(key) { + return this._map.get(_IdentifierNameMap.toKey(key)); + } + set(key, value) { + this._map.set(_IdentifierNameMap.toKey(key), value); + return this; + } + delete(key) { + var _a; + return ((_a = this._map) == null ? void 0 : _a.delete(_IdentifierNameMap.toKey(key))) ?? false; + } + clear() { + this._map.clear(); + } + values() { + return this._map.values(); + } + static toKey(name) { + if (isGeneratedPrivateIdentifier(name) || isGeneratedIdentifier(name)) { + const autoGenerate = name.emitNode.autoGenerate; + if ((autoGenerate.flags & 7 /* KindMask */) === 4 /* Node */) { + const node = getNodeForGeneratedName(name); + const baseName = isMemberName(node) && node !== name ? _IdentifierNameMap.toKey(node) : `(generated@${getNodeId(node)})`; + return formatGeneratedName( + /*privateName*/ + false, + autoGenerate.prefix, + baseName, + autoGenerate.suffix, + _IdentifierNameMap.toKey + ); + } else { + const baseName = `(auto@${autoGenerate.id})`; + return formatGeneratedName( + /*privateName*/ + false, + autoGenerate.prefix, + baseName, + autoGenerate.suffix, + _IdentifierNameMap.toKey + ); + } + } + if (isPrivateIdentifier(name)) { + return idText(name).slice(1); + } + return idText(name); + } + }; + IdentifierNameMultiMap = class extends IdentifierNameMap { + add(key, value) { + let values = this.get(key); + if (values) { + values.push(value); + } else { + this.set(key, values = [value]); + } + return values; + } + remove(key, value) { + const values = this.get(key); + if (values) { + unorderedRemoveItem(values, value); + if (!values.length) { + this.delete(key); + } + } + } + }; } }); @@ -88652,6 +89382,287 @@ ${lanes.join("\n")} } }); + // src/compiler/transformers/classThis.ts + function createClassThisAssignmentBlock(factory2, classThis, thisExpression = factory2.createThis()) { + const expression = factory2.createAssignment(classThis, thisExpression); + const statement = factory2.createExpressionStatement(expression); + const body = factory2.createBlock( + [statement], + /*multiLine*/ + false + ); + const block = factory2.createClassStaticBlockDeclaration(body); + getOrCreateEmitNode(block).classThis = classThis; + return block; + } + function isClassThisAssignmentBlock(node) { + var _a; + if (!isClassStaticBlockDeclaration(node) || node.body.statements.length !== 1) { + return false; + } + const statement = node.body.statements[0]; + return isExpressionStatement(statement) && isAssignmentExpression( + statement.expression, + /*excludeCompoundAssignment*/ + true + ) && isIdentifier(statement.expression.left) && ((_a = node.emitNode) == null ? void 0 : _a.classThis) === statement.expression.left && statement.expression.right.kind === 110 /* ThisKeyword */; + } + function classHasClassThisAssignment(node) { + var _a; + return !!((_a = node.emitNode) == null ? void 0 : _a.classThis) && some(node.members, isClassThisAssignmentBlock); + } + function injectClassThisAssignmentIfMissing(factory2, node, classThis, thisExpression) { + if (classHasClassThisAssignment(node)) { + return node; + } + const staticBlock = createClassThisAssignmentBlock(factory2, classThis, thisExpression); + if (node.name) { + setSourceMapRange(staticBlock.body.statements[0], node.name); + } + const members = factory2.createNodeArray([staticBlock, ...node.members]); + setTextRange(members, node.members); + const updatedNode = isClassDeclaration(node) ? factory2.updateClassDeclaration( + node, + node.modifiers, + node.name, + node.typeParameters, + node.heritageClauses, + members + ) : factory2.updateClassExpression( + node, + node.modifiers, + node.name, + node.typeParameters, + node.heritageClauses, + members + ); + getOrCreateEmitNode(updatedNode).classThis = classThis; + return updatedNode; + } + var init_classThis = __esm({ + "src/compiler/transformers/classThis.ts"() { + "use strict"; + init_ts2(); + } + }); + + // src/compiler/transformers/namedEvaluation.ts + function getAssignedNameOfIdentifier(factory2, name, expression) { + const original = getOriginalNode(skipOuterExpressions(expression)); + if ((isClassDeclaration(original) || isFunctionDeclaration(original)) && !original.name && hasSyntacticModifier(original, 1024 /* Default */)) { + return factory2.createStringLiteral("default"); + } + return factory2.createStringLiteralFromNode(name); + } + function getAssignedNameOfPropertyName(context, name, assignedNameText) { + const { factory: factory2 } = context; + if (assignedNameText !== void 0) { + const assignedName2 = factory2.createStringLiteral(assignedNameText); + return { assignedName: assignedName2, name }; + } + if (isPropertyNameLiteral(name) || isPrivateIdentifier(name)) { + const assignedName2 = factory2.createStringLiteralFromNode(name); + return { assignedName: assignedName2, name }; + } + if (isPropertyNameLiteral(name.expression) && !isIdentifier(name.expression)) { + const assignedName2 = factory2.createStringLiteralFromNode(name.expression); + return { assignedName: assignedName2, name }; + } + const assignedName = factory2.getGeneratedNameForNode(name); + context.hoistVariableDeclaration(assignedName); + const key = context.getEmitHelperFactory().createPropKeyHelper(name.expression); + const assignment = factory2.createAssignment(assignedName, key); + const updatedName = factory2.updateComputedPropertyName(name, assignment); + return { assignedName, name: updatedName }; + } + function createClassNamedEvaluationHelperBlock(context, assignedName, thisExpression = context.factory.createThis()) { + const { factory: factory2 } = context; + const expression = context.getEmitHelperFactory().createSetFunctionNameHelper(thisExpression, assignedName); + const statement = factory2.createExpressionStatement(expression); + const body = factory2.createBlock( + [statement], + /*multiLine*/ + false + ); + const block = factory2.createClassStaticBlockDeclaration(body); + getOrCreateEmitNode(block).assignedName = assignedName; + return block; + } + function isClassNamedEvaluationHelperBlock(node) { + var _a; + if (!isClassStaticBlockDeclaration(node) || node.body.statements.length !== 1) { + return false; + } + const statement = node.body.statements[0]; + return isExpressionStatement(statement) && isCallToHelper(statement.expression, "___setFunctionName") && statement.expression.arguments.length >= 2 && statement.expression.arguments[1] === ((_a = node.emitNode) == null ? void 0 : _a.assignedName); + } + function classHasExplicitlyAssignedName(node) { + var _a; + return !!((_a = node.emitNode) == null ? void 0 : _a.assignedName) && some(node.members, isClassNamedEvaluationHelperBlock); + } + function classHasDeclaredOrExplicitlyAssignedName(node) { + return !!node.name || classHasExplicitlyAssignedName(node); + } + function injectClassNamedEvaluationHelperBlockIfMissing(context, node, assignedName, thisExpression) { + if (classHasExplicitlyAssignedName(node)) { + return node; + } + const { factory: factory2 } = context; + const namedEvaluationBlock = createClassNamedEvaluationHelperBlock(context, assignedName, thisExpression); + if (node.name) { + setSourceMapRange(namedEvaluationBlock.body.statements[0], node.name); + } + const insertionIndex = findIndex(node.members, isClassThisAssignmentBlock) + 1; + const leading = node.members.slice(0, insertionIndex); + const trailing = node.members.slice(insertionIndex); + const members = factory2.createNodeArray([...leading, namedEvaluationBlock, ...trailing]); + setTextRange(members, node.members); + node = isClassDeclaration(node) ? factory2.updateClassDeclaration( + node, + node.modifiers, + node.name, + node.typeParameters, + node.heritageClauses, + members + ) : factory2.updateClassExpression( + node, + node.modifiers, + node.name, + node.typeParameters, + node.heritageClauses, + members + ); + getOrCreateEmitNode(node).assignedName = assignedName; + return node; + } + function finishTransformNamedEvaluation(context, expression, assignedName, ignoreEmptyStringLiteral) { + if (ignoreEmptyStringLiteral && isStringLiteral(assignedName) && isEmptyStringLiteral(assignedName)) { + return expression; + } + const { factory: factory2 } = context; + const innerExpression = skipOuterExpressions(expression); + const updatedExpression = isClassExpression(innerExpression) ? cast(injectClassNamedEvaluationHelperBlockIfMissing(context, innerExpression, assignedName), isClassExpression) : context.getEmitHelperFactory().createSetFunctionNameHelper(innerExpression, assignedName); + return factory2.restoreOuterExpressions(expression, updatedExpression); + } + function transformNamedEvaluationOfPropertyAssignment(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const { assignedName, name } = getAssignedNameOfPropertyName(context, node.name, assignedNameText); + const initializer = finishTransformNamedEvaluation(context, node.initializer, assignedName, ignoreEmptyStringLiteral); + return factory2.updatePropertyAssignment( + node, + name, + initializer + ); + } + function transformNamedEvaluationOfShorthandAssignmentProperty(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : getAssignedNameOfIdentifier(factory2, node.name, node.objectAssignmentInitializer); + const objectAssignmentInitializer = finishTransformNamedEvaluation(context, node.objectAssignmentInitializer, assignedName, ignoreEmptyStringLiteral); + return factory2.updateShorthandPropertyAssignment( + node, + node.name, + objectAssignmentInitializer + ); + } + function transformNamedEvaluationOfVariableDeclaration(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : getAssignedNameOfIdentifier(factory2, node.name, node.initializer); + const initializer = finishTransformNamedEvaluation(context, node.initializer, assignedName, ignoreEmptyStringLiteral); + return factory2.updateVariableDeclaration( + node, + node.name, + node.exclamationToken, + node.type, + initializer + ); + } + function transformNamedEvaluationOfParameterDeclaration(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : getAssignedNameOfIdentifier(factory2, node.name, node.initializer); + const initializer = finishTransformNamedEvaluation(context, node.initializer, assignedName, ignoreEmptyStringLiteral); + return factory2.updateParameterDeclaration( + node, + node.modifiers, + node.dotDotDotToken, + node.name, + node.questionToken, + node.type, + initializer + ); + } + function transformNamedEvaluationOfBindingElement(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : getAssignedNameOfIdentifier(factory2, node.name, node.initializer); + const initializer = finishTransformNamedEvaluation(context, node.initializer, assignedName, ignoreEmptyStringLiteral); + return factory2.updateBindingElement( + node, + node.dotDotDotToken, + node.propertyName, + node.name, + initializer + ); + } + function transformNamedEvaluationOfPropertyDeclaration(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const { assignedName, name } = getAssignedNameOfPropertyName(context, node.name, assignedNameText); + const initializer = finishTransformNamedEvaluation(context, node.initializer, assignedName, ignoreEmptyStringLiteral); + return factory2.updatePropertyDeclaration( + node, + node.modifiers, + name, + node.questionToken ?? node.exclamationToken, + node.type, + initializer + ); + } + function transformNamedEvaluationOfAssignmentExpression(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : getAssignedNameOfIdentifier(factory2, node.left, node.right); + const right = finishTransformNamedEvaluation(context, node.right, assignedName, ignoreEmptyStringLiteral); + return factory2.updateBinaryExpression( + node, + node.left, + node.operatorToken, + right + ); + } + function transformNamedEvaluationOfExportAssignment(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : factory2.createStringLiteral(node.isExportEquals ? "" : "default"); + const expression = finishTransformNamedEvaluation(context, node.expression, assignedName, ignoreEmptyStringLiteral); + return factory2.updateExportAssignment( + node, + node.modifiers, + expression + ); + } + function transformNamedEvaluation(context, node, ignoreEmptyStringLiteral, assignedName) { + switch (node.kind) { + case 303 /* PropertyAssignment */: + return transformNamedEvaluationOfPropertyAssignment(context, node, ignoreEmptyStringLiteral, assignedName); + case 304 /* ShorthandPropertyAssignment */: + return transformNamedEvaluationOfShorthandAssignmentProperty(context, node, ignoreEmptyStringLiteral, assignedName); + case 260 /* VariableDeclaration */: + return transformNamedEvaluationOfVariableDeclaration(context, node, ignoreEmptyStringLiteral, assignedName); + case 169 /* Parameter */: + return transformNamedEvaluationOfParameterDeclaration(context, node, ignoreEmptyStringLiteral, assignedName); + case 208 /* BindingElement */: + return transformNamedEvaluationOfBindingElement(context, node, ignoreEmptyStringLiteral, assignedName); + case 172 /* PropertyDeclaration */: + return transformNamedEvaluationOfPropertyDeclaration(context, node, ignoreEmptyStringLiteral, assignedName); + case 226 /* BinaryExpression */: + return transformNamedEvaluationOfAssignmentExpression(context, node, ignoreEmptyStringLiteral, assignedName); + case 277 /* ExportAssignment */: + return transformNamedEvaluationOfExportAssignment(context, node, ignoreEmptyStringLiteral, assignedName); + } + } + var init_namedEvaluation = __esm({ + "src/compiler/transformers/namedEvaluation.ts"() { + "use strict"; + init_ts2(); + } + }); + // src/compiler/transformers/taggedTemplate.ts function processTaggedTemplateExpression(context, node, visitor, currentSourceFile, recordTaggedTemplateString, level) { const tag = visitNode(node.tag, visitor, isExpression); @@ -88750,8 +89761,8 @@ ${lanes.join("\n")} const previousOnSubstituteNode = context.onSubstituteNode; context.onEmitNode = onEmitNode; context.onSubstituteNode = onSubstituteNode; - context.enableSubstitution(210 /* PropertyAccessExpression */); - context.enableSubstitution(211 /* ElementAccessExpression */); + context.enableSubstitution(211 /* PropertyAccessExpression */); + context.enableSubstitution(212 /* ElementAccessExpression */); let currentSourceFile; let currentNamespace; let currentNamespaceContainerName; @@ -88762,14 +89773,14 @@ ${lanes.join("\n")} let applicableSubstitutions; return transformSourceFileOrBundle; function transformSourceFileOrBundle(node) { - if (node.kind === 312 /* Bundle */) { + if (node.kind === 313 /* Bundle */) { return transformBundle(node); } return transformSourceFile(node); } function transformBundle(node) { return factory2.createBundle(node.sourceFiles.map(transformSourceFile), mapDefined(node.prepends, (prepend) => { - if (prepend.kind === 314 /* InputFiles */) { + if (prepend.kind === 315 /* InputFiles */) { return createUnparsedSourceFile(prepend, "js"); } return prepend; @@ -88800,22 +89811,22 @@ ${lanes.join("\n")} } function onBeforeVisitNode(node) { switch (node.kind) { - case 311 /* SourceFile */: - case 268 /* CaseBlock */: - case 267 /* ModuleBlock */: - case 240 /* Block */: + case 312 /* SourceFile */: + case 269 /* CaseBlock */: + case 268 /* ModuleBlock */: + case 241 /* Block */: currentLexicalScope = node; currentScopeFirstDeclarationsOfName = void 0; break; - case 262 /* ClassDeclaration */: - case 261 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: + case 262 /* FunctionDeclaration */: if (hasSyntacticModifier(node, 2 /* Ambient */)) { break; } if (node.name) { recordEmittedDeclarationInScope(node); } else { - Debug.assert(node.kind === 262 /* ClassDeclaration */ || hasSyntacticModifier(node, 1024 /* Default */)); + Debug.assert(node.kind === 263 /* ClassDeclaration */ || hasSyntacticModifier(node, 1024 /* Default */)); } break; } @@ -88834,10 +89845,10 @@ ${lanes.join("\n")} } function sourceElementVisitorWorker(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: - case 270 /* ImportEqualsDeclaration */: - case 276 /* ExportAssignment */: - case 277 /* ExportDeclaration */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 277 /* ExportAssignment */: + case 278 /* ExportDeclaration */: return visitElidableStatement(node); default: return visitorWorker(node); @@ -88852,13 +89863,13 @@ ${lanes.join("\n")} return node; } switch (node.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return visitImportDeclaration(node); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return visitImportEqualsDeclaration(node); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return visitExportAssignment(node); - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return visitExportDeclaration(node); default: Debug.fail("Unhandled ellided statement"); @@ -88868,7 +89879,7 @@ ${lanes.join("\n")} return saveStateAndInvoke(node, namespaceElementVisitorWorker); } function namespaceElementVisitorWorker(node) { - if (node.kind === 277 /* ExportDeclaration */ || node.kind === 271 /* ImportDeclaration */ || node.kind === 272 /* ImportClause */ || node.kind === 270 /* ImportEqualsDeclaration */ && node.moduleReference.kind === 282 /* ExternalModuleReference */) { + if (node.kind === 278 /* ExportDeclaration */ || node.kind === 272 /* ImportDeclaration */ || node.kind === 273 /* ImportClause */ || node.kind === 271 /* ImportEqualsDeclaration */ && node.moduleReference.kind === 283 /* ExternalModuleReference */) { return void 0; } else if (node.transformFlags & 1 /* ContainsTypeScript */ || hasSyntacticModifier(node, 1 /* Export */)) { return visitTypeScript(node); @@ -88880,21 +89891,21 @@ ${lanes.join("\n")} } function classElementVisitorWorker(node, parent2) { switch (node.kind) { - case 175 /* Constructor */: + case 176 /* Constructor */: return visitConstructor(node); - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return visitPropertyDeclaration(node, parent2); - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return visitGetAccessor(node, parent2); - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return visitSetAccessor(node, parent2); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return visitMethodDeclaration(node, parent2); - case 174 /* ClassStaticBlockDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: return visitEachChild(node, visitor, context); - case 239 /* SemicolonClassElement */: + case 240 /* SemicolonClassElement */: return node; - case 180 /* IndexSignature */: + case 181 /* IndexSignature */: return; default: return Debug.failBadSyntaxKind(node); @@ -88905,15 +89916,15 @@ ${lanes.join("\n")} } function objectLiteralElementVisitorWorker(node, parent2) { switch (node.kind) { - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: - case 304 /* SpreadAssignment */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 305 /* SpreadAssignment */: return visitor(node); - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return visitGetAccessor(node, parent2); - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return visitSetAccessor(node, parent2); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return visitMethodDeclaration(node, parent2); default: return Debug.failBadSyntaxKind(node); @@ -88947,19 +89958,19 @@ ${lanes.join("\n")} case 123 /* PrivateKeyword */: case 124 /* ProtectedKeyword */: case 128 /* AbstractKeyword */: - case 163 /* OverrideKeyword */: + case 164 /* OverrideKeyword */: case 87 /* ConstKeyword */: case 138 /* DeclareKeyword */: case 148 /* ReadonlyKeyword */: case 103 /* InKeyword */: case 147 /* OutKeyword */: - case 187 /* ArrayType */: - case 188 /* TupleType */: - case 189 /* OptionalType */: - case 190 /* RestType */: - case 186 /* TypeLiteral */: - case 181 /* TypePredicate */: - case 167 /* TypeParameter */: + case 188 /* ArrayType */: + case 189 /* TupleType */: + case 190 /* OptionalType */: + case 191 /* RestType */: + case 187 /* TypeLiteral */: + case 182 /* TypePredicate */: + case 168 /* TypeParameter */: case 133 /* AnyKeyword */: case 159 /* UnknownKeyword */: case 136 /* BooleanKeyword */: @@ -88968,80 +89979,80 @@ ${lanes.join("\n")} case 146 /* NeverKeyword */: case 116 /* VoidKeyword */: case 155 /* SymbolKeyword */: - case 184 /* ConstructorType */: - case 183 /* FunctionType */: - case 185 /* TypeQuery */: - case 182 /* TypeReference */: - case 191 /* UnionType */: - case 192 /* IntersectionType */: - case 193 /* ConditionalType */: - case 195 /* ParenthesizedType */: - case 196 /* ThisType */: - case 197 /* TypeOperator */: - case 198 /* IndexedAccessType */: - case 199 /* MappedType */: - case 200 /* LiteralType */: - case 180 /* IndexSignature */: + case 185 /* ConstructorType */: + case 184 /* FunctionType */: + case 186 /* TypeQuery */: + case 183 /* TypeReference */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: + case 194 /* ConditionalType */: + case 196 /* ParenthesizedType */: + case 197 /* ThisType */: + case 198 /* TypeOperator */: + case 199 /* IndexedAccessType */: + case 200 /* MappedType */: + case 201 /* LiteralType */: + case 181 /* IndexSignature */: return void 0; - case 264 /* TypeAliasDeclaration */: + case 265 /* TypeAliasDeclaration */: return factory2.createNotEmittedStatement(node); - case 269 /* NamespaceExportDeclaration */: + case 270 /* NamespaceExportDeclaration */: return void 0; - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: return factory2.createNotEmittedStatement(node); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return visitClassDeclaration(node); - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return visitClassExpression(node); - case 297 /* HeritageClause */: + case 298 /* HeritageClause */: return visitHeritageClause(node); - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return visitExpressionWithTypeArguments(node); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return visitObjectLiteralExpression(node); - case 175 /* Constructor */: - case 171 /* PropertyDeclaration */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 174 /* ClassStaticBlockDeclaration */: + case 176 /* Constructor */: + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 175 /* ClassStaticBlockDeclaration */: return Debug.fail("Class and object literal elements must be visited with their respective visitors"); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return visitFunctionDeclaration(node); - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: return visitFunctionExpression(node); - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return visitArrowFunction(node); - case 168 /* Parameter */: + case 169 /* Parameter */: return visitParameter(node); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression(node); - case 215 /* TypeAssertionExpression */: - case 233 /* AsExpression */: + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: return visitAssertionExpression(node); - case 237 /* SatisfiesExpression */: + case 238 /* SatisfiesExpression */: return visitSatisfiesExpression(node); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return visitCallExpression(node); - case 213 /* NewExpression */: + case 214 /* NewExpression */: return visitNewExpression(node); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return visitTaggedTemplateExpression(node); - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: return visitNonNullExpression(node); - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return visitEnumDeclaration(node); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return visitVariableStatement(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return visitVariableDeclaration(node); - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return visitModuleDeclaration(node); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return visitImportEqualsDeclaration(node); - case 284 /* JsxSelfClosingElement */: + case 285 /* JsxSelfClosingElement */: return visitJsxSelfClosingElement(node); - case 285 /* JsxOpeningElement */: + case 286 /* JsxOpeningElement */: return visitJsxJsxOpeningElement(node); default: return visitEachChild(node, visitor, context); @@ -89151,25 +90162,25 @@ ${lanes.join("\n")} insertStatementsAfterStandardPrologue(statements, context.endLexicalEnvironment()); const iife = factory2.createImmediatelyInvokedArrowFunction(statements); setInternalEmitFlags(iife, 1 /* TypeScriptClassWrapper */); - const modifiers2 = facts & 16 /* IsNamedExternalExport */ ? factory2.createModifiersFromModifierFlags(1 /* Export */) : void 0; + const varDecl = factory2.createVariableDeclaration( + factory2.getLocalName( + node, + /*allowComments*/ + false, + /*allowSourceMaps*/ + false + ), + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + iife + ); + setOriginalNode(varDecl, node); const varStatement = factory2.createVariableStatement( - modifiers2, - factory2.createVariableDeclarationList([ - factory2.createVariableDeclaration( - factory2.getLocalName( - node, - /*allowComments*/ - false, - /*allowSourceMaps*/ - false - ), - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - iife - ) - ], 1 /* Let */) + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList([varDecl], 1 /* Let */) ); setOriginalNode(varStatement, node); setCommentRange(varStatement, node); @@ -89198,10 +90209,10 @@ ${lanes.join("\n")} )) ]; } - if (facts & 16 /* IsNamedExternalExport */ && !promoteToIIFE) { + if (facts & 16 /* IsNamedExternalExport */) { return [ statement, - factory2.createExternalModuleExport(factory2.getLocalName( + factory2.createExternalModuleExport(factory2.getDeclarationName( node, /*allowComments*/ false, @@ -89365,19 +90376,19 @@ ${lanes.join("\n")} } function shouldAddTypeMetadata(node) { const kind = node.kind; - return kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */ || kind === 171 /* PropertyDeclaration */; + return kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 172 /* PropertyDeclaration */; } function shouldAddReturnTypeMetadata(node) { - return node.kind === 173 /* MethodDeclaration */; + return node.kind === 174 /* MethodDeclaration */; } function shouldAddParamTypesMetadata(node) { switch (node.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return getFirstConstructorWithBody(node) !== void 0; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return true; } return false; @@ -89426,7 +90437,7 @@ ${lanes.join("\n")} return !nodeIsMissing(node.body); } function visitPropertyDeclaration(node, parent2) { - const isAmbient = node.flags & 16777216 /* Ambient */ || hasSyntacticModifier(node, 256 /* Abstract */); + const isAmbient = node.flags & 33554432 /* Ambient */ || hasSyntacticModifier(node, 256 /* Abstract */); if (isAmbient && !(legacyDecorators && hasDecorators(node))) { return void 0; } @@ -89468,6 +90479,35 @@ ${lanes.join("\n")} transformConstructorBody(node.body, node) ); } + function transformConstructorBodyWorker(statementsOut, statementsIn, statementOffset, superPath, superPathDepth, initializerStatements) { + const superStatementIndex = superPath[superPathDepth]; + const superStatement = statementsIn[superStatementIndex]; + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, statementOffset, superStatementIndex - statementOffset)); + if (isTryStatement(superStatement)) { + const tryBlockStatements = []; + transformConstructorBodyWorker( + tryBlockStatements, + superStatement.tryBlock.statements, + /*statementOffset*/ + 0, + superPath, + superPathDepth + 1, + initializerStatements + ); + const tryBlockStatementsArray = factory2.createNodeArray(tryBlockStatements); + setTextRange(tryBlockStatementsArray, superStatement.tryBlock.statements); + statementsOut.push(factory2.updateTryStatement( + superStatement, + factory2.updateBlock(superStatement.tryBlock, tryBlockStatements), + visitNode(superStatement.catchClause, visitor, isCatchClause), + visitNode(superStatement.finallyBlock, visitor, isBlock) + )); + } else { + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex, 1)); + addRange(statementsOut, initializerStatements); + } + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex + 1)); + } function transformConstructorBody(body, constructor) { const parametersWithPropertyAssignments = constructor && filter(constructor.parameters, (p) => isParameterPropertyDeclaration(p, constructor)); if (!some(parametersWithPropertyAssignments)) { @@ -89482,25 +90522,22 @@ ${lanes.join("\n")} false, visitor ); - const superStatementIndex = findSuperStatementIndex(body.statements, prologueStatementCount); - if (superStatementIndex >= 0) { - addRange( + const superPath = findSuperStatementIndexPath(body.statements, prologueStatementCount); + const parameterPropertyAssignments = mapDefined(parametersWithPropertyAssignments, transformParameterWithPropertyAssignment); + if (superPath.length) { + transformConstructorBodyWorker( statements, - visitNodes2(body.statements, visitor, isStatement, prologueStatementCount, superStatementIndex + 1 - prologueStatementCount) + body.statements, + prologueStatementCount, + superPath, + /*superPathDepth*/ + 0, + parameterPropertyAssignments ); - } - const parameterPropertyAssignments = mapDefined(parametersWithPropertyAssignments, transformParameterWithPropertyAssignment); - if (superStatementIndex >= 0) { - addRange(statements, parameterPropertyAssignments); } else { - statements = [ - ...statements.slice(0, prologueStatementCount), - ...parameterPropertyAssignments, - ...statements.slice(prologueStatementCount) - ]; + addRange(statements, parameterPropertyAssignments); + addRange(statements, visitNodes2(body.statements, visitor, isStatement, prologueStatementCount)); } - const start = superStatementIndex >= 0 ? superStatementIndex + 1 : prologueStatementCount; - addRange(statements, visitNodes2(body.statements, visitor, isStatement, start)); statements = factory2.mergeLexicalEnvironment(statements, endLexicalEnvironment()); const block = factory2.createBlock( setTextRange(factory2.createNodeArray(statements), body.statements), @@ -89996,7 +91033,7 @@ ${lanes.join("\n")} /*allowSourceMaps*/ true )); - const varFlags = currentLexicalScope.kind === 311 /* SourceFile */ ? 0 /* None */ : 1 /* Let */; + const varFlags = currentLexicalScope.kind === 312 /* SourceFile */ ? 0 /* None */ : 1 /* Let */; const statement = factory2.createVariableStatement( visitNodes2(node.modifiers, modifierVisitor, isModifier), factory2.createVariableDeclarationList([varDecl], varFlags) @@ -90007,7 +91044,7 @@ ${lanes.join("\n")} setOriginalNode(statement, node); recordEmittedDeclarationInScope(node); if (isFirstEmittedDeclarationInScope(node)) { - if (node.kind === 265 /* EnumDeclaration */) { + if (node.kind === 266 /* EnumDeclaration */) { setSourceMapRange(statement.declarationList, node); } else { setSourceMapRange(statement, node); @@ -90115,7 +91152,7 @@ ${lanes.join("\n")} let statementsLocation; let blockLocation; if (node.body) { - if (node.body.kind === 267 /* ModuleBlock */) { + if (node.body.kind === 268 /* ModuleBlock */) { saveStateAndInvoke(node.body, (body) => addRange(statements, visitNodes2(body.statements, namespaceElementVisitor, isStatement))); statementsLocation = node.body.statements; blockLocation = node.body; @@ -90146,13 +91183,13 @@ ${lanes.join("\n")} true ); setTextRange(block, blockLocation); - if (!node.body || node.body.kind !== 267 /* ModuleBlock */) { + if (!node.body || node.body.kind !== 268 /* ModuleBlock */) { setEmitFlags(block, getEmitFlags(block) | 3072 /* NoComments */); } return block; } function getInnerMostModuleDeclarationFromDottedModule(moduleDeclaration) { - if (moduleDeclaration.body.kind === 266 /* ModuleDeclaration */) { + if (moduleDeclaration.body.kind === 267 /* ModuleDeclaration */) { const recursiveInnerModule = getInnerMostModuleDeclarationFromDottedModule(moduleDeclaration.body); return recursiveInnerModule || moduleDeclaration.body; } @@ -90187,7 +91224,7 @@ ${lanes.join("\n")} ) : void 0; } function visitNamedImportBindings(node) { - if (node.kind === 273 /* NamespaceImport */) { + if (node.kind === 274 /* NamespaceImport */) { return shouldEmitAliasDeclaration(node) ? node : void 0; } else { const allowEmpty = compilerOptions.verbatimModuleSyntax || compilerOptions.preserveValueImports && (compilerOptions.importsNotUsedAsValues === 1 /* Preserve */ || compilerOptions.importsNotUsedAsValues === 2 /* Error */); @@ -90385,15 +91422,15 @@ ${lanes.join("\n")} if ((enabledSubstitutions & 2 /* NamespaceExports */) === 0) { enabledSubstitutions |= 2 /* NamespaceExports */; context.enableSubstitution(80 /* Identifier */); - context.enableSubstitution(303 /* ShorthandPropertyAssignment */); - context.enableEmitNotification(266 /* ModuleDeclaration */); + context.enableSubstitution(304 /* ShorthandPropertyAssignment */); + context.enableEmitNotification(267 /* ModuleDeclaration */); } } function isTransformedModuleDeclaration(node) { - return getOriginalNode(node).kind === 266 /* ModuleDeclaration */; + return getOriginalNode(node).kind === 267 /* ModuleDeclaration */; } function isTransformedEnumDeclaration(node) { - return getOriginalNode(node).kind === 265 /* EnumDeclaration */; + return getOriginalNode(node).kind === 266 /* EnumDeclaration */; } function onEmitNode(hint, node, emitCallback) { const savedApplicableSubstitutions = applicableSubstitutions; @@ -90438,9 +91475,9 @@ ${lanes.join("\n")} switch (node.kind) { case 80 /* Identifier */: return substituteExpressionIdentifier(node); - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return substitutePropertyAccessExpression(node); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return substituteElementAccessExpression(node); } return node; @@ -90455,8 +91492,8 @@ ${lanes.join("\n")} /*prefixLocals*/ false ); - if (container && container.kind !== 311 /* SourceFile */) { - const substitute = applicableSubstitutions & 2 /* NamespaceExports */ && container.kind === 266 /* ModuleDeclaration */ || applicableSubstitutions & 8 /* NonQualifiedEnumMembers */ && container.kind === 265 /* EnumDeclaration */; + if (container && container.kind !== 312 /* SourceFile */) { + const substitute = applicableSubstitutions & 2 /* NamespaceExports */ && container.kind === 267 /* ModuleDeclaration */ || applicableSubstitutions & 8 /* NonQualifiedEnumMembers */ && container.kind === 266 /* EnumDeclaration */; if (substitute) { return setTextRange( factory2.createPropertyAccessExpression(factory2.getGeneratedNameForNode(container), node), @@ -90481,7 +91518,7 @@ ${lanes.join("\n")} const constantValue = tryGetConstEnumValue(node); if (constantValue !== void 0) { setConstantValue(node, constantValue); - const substitute = typeof constantValue === "string" ? factory2.createStringLiteral(constantValue) : factory2.createNumericLiteral(constantValue); + const substitute = typeof constantValue === "string" ? factory2.createStringLiteral(constantValue) : constantValue < 0 ? factory2.createPrefixUnaryExpression(41 /* MinusToken */, factory2.createNumericLiteral(Math.abs(constantValue))) : factory2.createNumericLiteral(constantValue); if (!compilerOptions.removeComments) { const originalNode = getOriginalNode(node, isAccessExpression); addSyntheticTrailingComment(substitute, 3 /* MultiLineCommentTrivia */, ` ${safeMultiLineComment(getTextOfNode(originalNode))} `); @@ -90544,8 +91581,9 @@ ${lanes.join("\n")} let pendingStatements; let lexicalEnvironment; const lexicalEnvironmentMap = /* @__PURE__ */ new Map(); + const noSubstitution = /* @__PURE__ */ new Set(); let currentClassContainer; - let currentStaticPropertyDeclarationOrStaticBlock; + let currentClassElement; let shouldSubstituteThisWithClassThis = false; let previousShouldSubstituteThisWithClassThis = false; return chainBundle(context, transformSourceFile); @@ -90577,76 +91615,77 @@ ${lanes.join("\n")} switch (node.kind) { case 129 /* AccessorKeyword */: return Debug.fail("Use `modifierVisitor` instead."); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return visitClassDeclaration(node); - case 230 /* ClassExpression */: - return visitClassExpression( - node, - /*referencedName*/ - void 0 - ); - case 174 /* ClassStaticBlockDeclaration */: - case 171 /* PropertyDeclaration */: + case 231 /* ClassExpression */: + return visitClassExpression(node); + case 175 /* ClassStaticBlockDeclaration */: + case 172 /* PropertyDeclaration */: return Debug.fail("Use `classElementVisitor` instead."); - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return visitPropertyAssignment(node); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return visitVariableStatement(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return visitVariableDeclaration(node); - case 168 /* Parameter */: + case 169 /* Parameter */: return visitParameterDeclaration(node); - case 207 /* BindingElement */: + case 208 /* BindingElement */: return visitBindingElement(node); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return visitExportAssignment(node); case 81 /* PrivateIdentifier */: return visitPrivateIdentifier(node); - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return visitPropertyAccessExpression(node); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return visitElementAccessExpression(node); - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return visitPreOrPostfixUnaryExpression( node, /*discarded*/ false ); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return visitBinaryExpression( node, /*discarded*/ false ); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression( node, /*discarded*/ - false, - /*referencedName*/ - void 0 + false ); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return visitCallExpression(node); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return visitExpressionStatement(node); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return visitTaggedTemplateExpression(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement(node); - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 175 /* Constructor */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: { - return setCurrentStaticPropertyDeclarationOrStaticBlockAnd( - /*current*/ + case 110 /* ThisKeyword */: + return visitThisExpression(node); + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + return setCurrentClassElementAnd( + /*classElement*/ void 0, fallbackVisitor, node ); + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: { + return setCurrentClassElementAnd( + node, + fallbackVisitor, + node + ); } default: return fallbackVisitor(node); @@ -90655,56 +91694,32 @@ ${lanes.join("\n")} function fallbackVisitor(node) { return visitEachChild(node, visitor, context); } - function namedEvaluationVisitor(node, referencedName) { - switch (node.kind) { - case 359 /* PartiallyEmittedExpression */: - return visitPartiallyEmittedExpression( - node, - /*discarded*/ - false, - referencedName - ); - case 216 /* ParenthesizedExpression */: - return visitParenthesizedExpression( - node, - /*discarded*/ - false, - referencedName - ); - case 230 /* ClassExpression */: - return visitClassExpression(node, referencedName); - default: - return visitor(node); - } - } function discardedValueVisitor(node) { switch (node.kind) { - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return visitPreOrPostfixUnaryExpression( node, /*discarded*/ true ); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return visitBinaryExpression( node, /*discarded*/ true ); - case 360 /* CommaListExpression */: + case 361 /* CommaListExpression */: return visitCommaListExpression( node, /*discarded*/ true ); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression( node, /*discarded*/ - true, - /*referencedName*/ - void 0 + true ); default: return visitor(node); @@ -90712,9 +91727,9 @@ ${lanes.join("\n")} } function heritageClauseVisitor(node) { switch (node.kind) { - case 297 /* HeritageClause */: + case 298 /* HeritageClause */: return visitEachChild(node, heritageClauseVisitor, context); - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return visitExpressionWithTypeArgumentsInHeritageClause(node); default: return visitor(node); @@ -90722,8 +91737,8 @@ ${lanes.join("\n")} } function assignmentTargetVisitor(node) { switch (node.kind) { - case 209 /* ObjectLiteralExpression */: - case 208 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return visitAssignmentPattern(node); default: return visitor(node); @@ -90731,29 +91746,35 @@ ${lanes.join("\n")} } function classElementVisitor(node) { switch (node.kind) { - case 175 /* Constructor */: - return visitConstructorDeclaration(node); - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 173 /* MethodDeclaration */: - return setCurrentStaticPropertyDeclarationOrStaticBlockAnd( - /*current*/ - void 0, + case 176 /* Constructor */: + return setCurrentClassElementAnd( + node, + visitConstructorDeclaration, + node + ); + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: + return setCurrentClassElementAnd( + node, visitMethodOrAccessorDeclaration, node ); - case 171 /* PropertyDeclaration */: - return setCurrentStaticPropertyDeclarationOrStaticBlockAnd( - /*current*/ - void 0, + case 172 /* PropertyDeclaration */: + return setCurrentClassElementAnd( + node, visitPropertyDeclaration, node ); - case 174 /* ClassStaticBlockDeclaration */: - return visitClassStaticBlockDeclaration(node); - case 166 /* ComputedPropertyName */: + case 175 /* ClassStaticBlockDeclaration */: + return setCurrentClassElementAnd( + node, + visitClassStaticBlockDeclaration, + node + ); + case 167 /* ComputedPropertyName */: return visitComputedPropertyName(node); - case 239 /* SemicolonClassElement */: + case 240 /* SemicolonClassElement */: return node; default: return isModifierLike(node) ? modifierVisitor(node) : visitor(node); @@ -90761,7 +91782,7 @@ ${lanes.join("\n")} } function propertyNameVisitor(node) { switch (node.kind) { - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: return visitComputedPropertyName(node); default: return visitor(node); @@ -90769,10 +91790,10 @@ ${lanes.join("\n")} } function accessorFieldResultVisitor(node) { switch (node.kind) { - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return transformFieldInitializer(node); - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return classElementVisitor(node); default: Debug.assertMissingNode(node, "Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration"); @@ -90801,9 +91822,7 @@ ${lanes.join("\n")} } function visitPropertyAssignment(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const { referencedName, name } = visitReferencedPropertyName(node.name); - const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, referencedName), isExpression); - return factory2.updatePropertyAssignment(node, name, initializer); + node = transformNamedEvaluation(context, node); } return visitEachChild(node, visitor, context); } @@ -90815,71 +91834,33 @@ ${lanes.join("\n")} pendingStatements = savedPendingStatements; return statement; } - function getAssignedNameOfIdentifier(name, initializer) { - const originalClass = getOriginalNode(initializer, isClassLike); - return originalClass && !originalClass.name && hasSyntacticModifier(originalClass, 1024 /* Default */) ? factory2.createStringLiteral("default") : factory2.createStringLiteralFromNode(name); - } function visitVariableDeclaration(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.name, node.initializer); - const name = visitNode(node.name, visitor, isBindingName); - const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateVariableDeclaration( - node, - name, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - initializer - ); + node = transformNamedEvaluation(context, node); } return visitEachChild(node, visitor, context); } function visitParameterDeclaration(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.name, node.initializer); - const name = visitNode(node.name, visitor, isBindingName); - const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateParameterDeclaration( - node, - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - name, - /*questionToken*/ - void 0, - /*type*/ - void 0, - initializer - ); + node = transformNamedEvaluation(context, node); } return visitEachChild(node, visitor, context); } function visitBindingElement(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.name, node.initializer); - const propertyName = visitNode(node.propertyName, visitor, isPropertyName); - const name = visitNode(node.name, visitor, isBindingName); - const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateBindingElement( - node, - /*dotDotDotToken*/ - void 0, - propertyName, - name, - initializer - ); + node = transformNamedEvaluation(context, node); } return visitEachChild(node, visitor, context); } function visitExportAssignment(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = factory2.createStringLiteral(node.isExportEquals ? "" : "default"); - const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); - const expression = visitNode(node.expression, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateExportAssignment(node, modifiers, expression); + node = transformNamedEvaluation( + context, + node, + /*ignoreEmptyStringLiteral*/ + true, + node.isExportEquals ? "" : "default" + ); } return visitEachChild(node, visitor, context); } @@ -90944,12 +91925,15 @@ ${lanes.join("\n")} } return void 0; } - function setCurrentStaticPropertyDeclarationOrStaticBlockAnd(current, visitor2, arg) { - const savedCurrentStaticPropertyDeclarationOrStaticBlock = currentStaticPropertyDeclarationOrStaticBlock; - currentStaticPropertyDeclarationOrStaticBlock = current; - const result = visitor2(arg); - currentStaticPropertyDeclarationOrStaticBlock = savedCurrentStaticPropertyDeclarationOrStaticBlock; - return result; + function setCurrentClassElementAnd(classElement, visitor2, arg) { + if (classElement !== currentClassElement) { + const savedCurrentClassElement = currentClassElement; + currentClassElement = classElement; + const result = visitor2(arg); + currentClassElement = savedCurrentClassElement; + return result; + } + return visitor2(arg); } function getHoistedFunctionName(node) { Debug.assert(isPrivateIdentifier(node.name)); @@ -90967,6 +91951,11 @@ ${lanes.join("\n")} } } } + function getClassThis() { + const lex = getClassLexicalEnvironment(); + const classThis = lex.classThis ?? lex.classConstructor ?? (currentClassContainer == null ? void 0 : currentClassContainer.name); + return Debug.checkDefined(classThis); + } function transformAutoAccessor(node) { const commentRange = getCommentRange(node); const sourceMapRange = getSourceMapRange(node); @@ -90993,11 +91982,13 @@ ${lanes.join("\n")} setOriginalNode(backingField, node); setEmitFlags(backingField, 3072 /* NoComments */); setSourceMapRange(backingField, sourceMapRange); - const getter = createAccessorPropertyGetRedirector(factory2, node, modifiers, getterName); + const receiver = isStatic(node) ? getClassThis() : factory2.createThis(); + const getter = createAccessorPropertyGetRedirector(factory2, node, modifiers, getterName, receiver); setOriginalNode(getter, node); setCommentRange(getter, commentRange); setSourceMapRange(getter, sourceMapRange); - const setter = createAccessorPropertySetRedirector(factory2, node, modifiers, setterName); + const setterModifiers = factory2.createModifiersFromModifierFlags(modifiersToFlags(modifiers)); + const setter = createAccessorPropertySetRedirector(factory2, node, setterModifiers, setterName, receiver); setOriginalNode(setter, node); setEmitFlags(setter, 3072 /* NoComments */); setSourceMapRange(setter, sourceMapRange); @@ -91036,17 +92027,7 @@ ${lanes.join("\n")} ); } if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const { referencedName, name } = visitReferencedPropertyName(node.name); - return factory2.updatePropertyDeclaration( - node, - visitNodes2(node.modifiers, modifierVisitor, isModifier), - name, - /*questionOrExclamationToken*/ - void 0, - /*type*/ - void 0, - visitNode(node.initializer, (child) => namedEvaluationVisitor(child, referencedName), isExpression) - ); + node = transformNamedEvaluation(context, node); } return factory2.updatePropertyDeclaration( node, @@ -91064,9 +92045,7 @@ ${lanes.join("\n")} const expr = getPropertyNameExpressionIfNeeded( node.name, /*shouldHoist*/ - !!node.initializer || useDefineForClassFields, - /*captureReferencedName*/ - isNamedEvaluation(node, isAnonymousClassNeedingAssignedName) + !!node.initializer || useDefineForClassFields ); if (expr) { getPendingExpressions().push(...flattenCommaList(expr)); @@ -91111,8 +92090,21 @@ ${lanes.join("\n")} } return transformFieldInitializer(node); } + function shouldForceDynamicThis() { + return !!currentClassElement && hasStaticModifier(currentClassElement) && isAccessor(currentClassElement) && isAutoAccessorPropertyDeclaration(getOriginalNode(currentClassElement)); + } + function ensureDynamicThisIfNeeded(node) { + if (shouldForceDynamicThis()) { + const innerExpression = skipOuterExpressions(node); + if (innerExpression.kind === 110 /* ThisKeyword */) { + noSubstitution.add(innerExpression); + } + } + } function createPrivateIdentifierAccess(info, receiver) { - return createPrivateIdentifierAccessHelper(info, visitNode(receiver, visitor, isExpression)); + receiver = visitNode(receiver, visitor, isExpression); + ensureDynamicThisIfNeeded(receiver); + return createPrivateIdentifierAccessHelper(info, receiver); } function createPrivateIdentifierAccessHelper(info, receiver) { setCommentRange(receiver, moveRangePos(receiver, -1)); @@ -91157,7 +92149,7 @@ ${lanes.join("\n")} ); } } - if (shouldTransformSuperInStaticInitializers && isSuperProperty(node) && isIdentifier(node.name) && currentStaticPropertyDeclarationOrStaticBlock && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node) && isIdentifier(node.name) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { const { classConstructor, superClassReference, facts } = lexicalEnvironment.data; if (facts & 1 /* ClassWasDecorated */) { return visitInvalidSuperProperty(node); @@ -91176,7 +92168,7 @@ ${lanes.join("\n")} return visitEachChild(node, visitor, context); } function visitElementAccessExpression(node) { - if (shouldTransformSuperInStaticInitializers && isSuperProperty(node) && currentStaticPropertyDeclarationOrStaticBlock && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { const { classConstructor, superClassReference, facts } = lexicalEnvironment.data; if (facts & 1 /* ClassWasDecorated */) { return visitInvalidSuperProperty(node); @@ -91201,6 +92193,7 @@ ${lanes.join("\n")} let info; if (info = accessPrivateIdentifier2(operand.name)) { const receiver = visitNode(operand.expression, visitor, isExpression); + ensureDynamicThisIfNeeded(receiver); const { readExpression, initializeExpression } = createCopiableReceiverExpr(receiver); let expression = createPrivateIdentifierAccess(info, readExpression); const temp = isPrefixUnaryExpression(node) || discarded ? void 0 : factory2.createTempVariable(hoistVariableDeclaration); @@ -91219,7 +92212,7 @@ ${lanes.join("\n")} } return expression; } - } else if (shouldTransformSuperInStaticInitializers && isSuperProperty(operand) && currentStaticPropertyDeclarationOrStaticBlock && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + } else if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(operand) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { const { classConstructor, superClassReference, facts } = lexicalEnvironment.data; if (facts & 1 /* ClassWasDecorated */) { const expression = visitInvalidSuperProperty(operand); @@ -91276,6 +92269,9 @@ ${lanes.join("\n")} } function createCopiableReceiverExpr(receiver) { const clone2 = nodeIsSynthesized(receiver) ? receiver : factory2.cloneNode(receiver); + if (receiver.kind === 110 /* ThisKeyword */ && noSubstitution.has(receiver)) { + noSubstitution.add(clone2); + } if (isSimpleInlineableExpression(receiver)) { return { readExpression: clone2, initializeExpression: void 0 }; } @@ -91306,7 +92302,7 @@ ${lanes.join("\n")} [visitNode(thisArg, visitor, isExpression), ...visitNodes2(node.arguments, visitor, isExpression)] ); } - if (shouldTransformSuperInStaticInitializers && isSuperProperty(node.expression) && currentStaticPropertyDeclarationOrStaticBlock && ((_a = lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) == null ? void 0 : _a.classConstructor)) { + if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node.expression) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && ((_a = lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) == null ? void 0 : _a.classConstructor)) { const invocation = factory2.createFunctionCallCall( visitNode(node.expression, visitor, isExpression), lexicalEnvironment.data.classConstructor, @@ -91335,7 +92331,7 @@ ${lanes.join("\n")} visitNode(node.template, visitor, isTemplateLiteral) ); } - if (shouldTransformSuperInStaticInitializers && isSuperProperty(node.tag) && currentStaticPropertyDeclarationOrStaticBlock && ((_a = lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) == null ? void 0 : _a.classConstructor)) { + if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node.tag) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && ((_a = lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) == null ? void 0 : _a.classConstructor)) { const invocation = factory2.createFunctionBindCall( visitNode(node.tag, visitor, isExpression), lexicalEnvironment.data.classConstructor, @@ -91358,30 +92354,40 @@ ${lanes.join("\n")} lexicalEnvironmentMap.set(getOriginalNode(node), lexicalEnvironment); } if (shouldTransformPrivateElementsOrClassStaticBlocks) { + if (isClassThisAssignmentBlock(node)) { + const result = visitNode(node.body.statements[0].expression, visitor, isExpression); + if (isAssignmentExpression( + result, + /*excludeCompoundAssignment*/ + true + ) && result.left === result.right) { + return void 0; + } + return result; + } + if (isClassNamedEvaluationHelperBlock(node)) { + return visitNode(node.body.statements[0].expression, visitor, isExpression); + } startLexicalEnvironment(); - let statements = setCurrentStaticPropertyDeclarationOrStaticBlockAnd( + let statements = setCurrentClassElementAnd( node, (statements2) => visitNodes2(statements2, visitor, isStatement), node.body.statements ); statements = factory2.mergeLexicalEnvironment(statements, endLexicalEnvironment()); const iife = factory2.createImmediatelyInvokedArrowFunction(statements); + setOriginalNode(skipParentheses(iife.expression), node); + addEmitFlags(skipParentheses(iife.expression), 4 /* AdviseOnEmitNode */); setOriginalNode(iife, node); setTextRange(iife, node); - addEmitFlags(iife, 4 /* AdviseOnEmitNode */); return iife; } } function isAnonymousClassNeedingAssignedName(node) { if (isClassExpression(node) && !node.name) { const staticPropertiesOrClassStaticBlocks = getStaticPropertiesAndClassStaticBlock(node); - const classStaticBlock = find(staticPropertiesOrClassStaticBlocks, isClassStaticBlockDeclaration); - if (classStaticBlock) { - for (const statement of classStaticBlock.body.statements) { - if (isExpressionStatement(statement) && isCallToHelper(statement.expression, "___setFunctionName")) { - return false; - } - } + if (some(staticPropertiesOrClassStaticBlocks, isClassNamedEvaluationHelperBlock)) { + return false; } const hasTransformableStatics = (shouldTransformPrivateElementsOrClassStaticBlocks || !!(getInternalEmitFlags(node) && 32 /* TransformPrivateStaticElements */)) && some(staticPropertiesOrClassStaticBlocks, (node2) => isClassStaticBlockDeclaration(node2) || isPrivateIdentifierClassElementDeclaration(node2) || shouldTransformInitializers && isInitializedProperty(node2)); return hasTransformableStatics; @@ -91404,10 +92410,8 @@ ${lanes.join("\n")} } if (isAssignmentExpression(node)) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.left, node.right); - const left2 = visitNode(node.left, visitor, isExpression); - const right = visitNode(node.right, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateBinaryExpression(node, left2, node.operatorToken, right); + node = transformNamedEvaluation(context, node); + Debug.assertNode(node, isAssignmentExpression); } const left = skipOuterExpressions(node.left, 8 /* PartiallyEmittedExpressions */ | 1 /* Parentheses */); if (isPrivateIdentifierPropertyAccessExpression(left)) { @@ -91421,7 +92425,7 @@ ${lanes.join("\n")} node ); } - } else if (shouldTransformSuperInStaticInitializers && isSuperProperty(node.left) && currentStaticPropertyDeclarationOrStaticBlock && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + } else if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node.left) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { const { classConstructor, superClassReference, facts } = lexicalEnvironment.data; if (facts & 1 /* ClassWasDecorated */) { return factory2.updateBinaryExpression( @@ -91486,36 +92490,15 @@ ${lanes.join("\n")} const elements = discarded ? visitCommaListElements(node.elements, discardedValueVisitor) : visitCommaListElements(node.elements, visitor, discardedValueVisitor); return factory2.updateCommaListExpression(node, elements); } - function visitParenthesizedExpression(node, discarded, referencedName) { - const visitorFunc = discarded ? discardedValueVisitor : referencedName ? (node2) => namedEvaluationVisitor(node2, referencedName) : visitor; + function visitParenthesizedExpression(node, discarded) { + const visitorFunc = discarded ? discardedValueVisitor : visitor; const expression = visitNode(node.expression, visitorFunc, isExpression); return factory2.updateParenthesizedExpression(node, expression); } - function visitPartiallyEmittedExpression(node, discarded, referencedName) { - const visitorFunc = discarded ? discardedValueVisitor : referencedName ? (node2) => namedEvaluationVisitor(node2, referencedName) : visitor; - const expression = visitNode(node.expression, visitorFunc, isExpression); - return factory2.updatePartiallyEmittedExpression(node, expression); - } - function visitReferencedPropertyName(node) { - if (isPropertyNameLiteral(node) || isPrivateIdentifier(node)) { - const referencedName2 = factory2.createStringLiteralFromNode(node); - const name2 = visitNode(node, visitor, isPropertyName); - return { referencedName: referencedName2, name: name2 }; - } - if (isPropertyNameLiteral(node.expression) && !isIdentifier(node.expression)) { - const referencedName2 = factory2.createStringLiteralFromNode(node.expression); - const name2 = visitNode(node, visitor, isPropertyName); - return { referencedName: referencedName2, name: name2 }; - } - const referencedName = factory2.createTempVariable(hoistVariableDeclaration); - const key = emitHelpers().createPropKeyHelper(visitNode(node.expression, visitor, isExpression)); - const assignment = factory2.createAssignment(referencedName, key); - const name = factory2.updateComputedPropertyName(node, injectPendingExpressions(assignment)); - return { referencedName, name }; - } function createPrivateIdentifierAssignment(info, receiver, right, operator) { receiver = visitNode(receiver, visitor, isExpression); right = visitNode(right, visitor, isExpression); + ensureDynamicThisIfNeeded(receiver); if (isCompoundAssignment(operator)) { const { readExpression, initializeExpression } = createCopiableReceiverExpr(receiver); receiver = initializeExpression || readExpression; @@ -91562,11 +92545,15 @@ ${lanes.join("\n")} return filter(node.members, isNonStaticMethodOrAccessorWithPrivateName); } function getClassFacts(node) { + var _a; let facts = 0 /* None */; const original = getOriginalNode(node); if (isClassDeclaration(original) && classOrConstructorParameterIsDecorated(legacyDecorators, original)) { facts |= 1 /* ClassWasDecorated */; } + if (shouldTransformPrivateElementsOrClassStaticBlocks && (classHasClassThisAssignment(node) || classHasExplicitlyAssignedName(node))) { + facts |= 2 /* NeedsClassConstructorReference */; + } let containsPublicInstanceFields = false; let containsInitializedPublicInstanceFields = false; let containsInstancePrivateElements = false; @@ -91575,6 +92562,8 @@ ${lanes.join("\n")} if (isStatic(member)) { if (member.name && (isPrivateIdentifier(member.name) || isAutoAccessorPropertyDeclaration(member)) && shouldTransformPrivateElementsOrClassStaticBlocks) { facts |= 2 /* NeedsClassConstructorReference */; + } else if (isAutoAccessorPropertyDeclaration(member) && shouldTransformAutoAccessors === -1 /* True */ && !node.name && !((_a = node.emitNode) == null ? void 0 : _a.classThis)) { + facts |= 2 /* NeedsClassConstructorReference */; } if (isPropertyDeclaration(member) || isClassStaticBlockDeclaration(member)) { if (shouldTransformThisInStaticInitializers && member.transformFlags & 16384 /* ContainsLexicalThis */) { @@ -91595,6 +92584,9 @@ ${lanes.join("\n")} containsInstancePrivateElements || (containsInstancePrivateElements = isPrivateIdentifierClassElementDeclaration(member)); } else if (isPrivateIdentifierClassElementDeclaration(member)) { containsInstancePrivateElements = true; + if (resolver.getNodeCheckFlags(member) & 262144 /* ContainsConstructorReference */) { + facts |= 2 /* NeedsClassConstructorReference */; + } } else if (isPropertyDeclaration(member)) { containsPublicInstanceFields = true; containsInitializedPublicInstanceFields || (containsInitializedPublicInstanceFields = !!member.initializer); @@ -91629,7 +92621,8 @@ ${lanes.join("\n")} } return visitEachChild(node, visitor, context); } - function visitInNewClassLexicalEnvironment(node, referencedName, visitor2) { + function visitInNewClassLexicalEnvironment(node, visitor2) { + var _a; const savedCurrentClassContainer = currentClassContainer; const savedPendingExpressions = pendingExpressions; const savedLexicalEnvironment = lexicalEnvironment; @@ -91641,6 +92634,15 @@ ${lanes.join("\n")} const name = getNameOfDeclaration(node); if (name && isIdentifier(name)) { getPrivateIdentifierEnvironment().data.className = name; + } else if ((_a = node.emitNode) == null ? void 0 : _a.assignedName) { + if (isStringLiteral(node.emitNode.assignedName)) { + if (node.emitNode.assignedName.textSourceNode && isIdentifier(node.emitNode.assignedName.textSourceNode)) { + getPrivateIdentifierEnvironment().data.className = node.emitNode.assignedName.textSourceNode; + } else if (isIdentifierText(node.emitNode.assignedName.text, languageVersion)) { + const prefixName = factory2.createIdentifier(node.emitNode.assignedName.text); + getPrivateIdentifierEnvironment().data.className = prefixName; + } + } } } if (shouldTransformPrivateElementsOrClassStaticBlocks) { @@ -91659,7 +92661,7 @@ ${lanes.join("\n")} if (facts & 8 /* NeedsSubstitutionForThisInClassStaticField */) { enableSubstitutionForClassStaticThisOrSuperReference(); } - const result = visitor2(node, facts, referencedName); + const result = visitor2(node, facts); endClassLexicalEnvironment(); Debug.assert(lexicalEnvironment === savedLexicalEnvironment); currentClassContainer = savedCurrentClassContainer; @@ -91667,12 +92669,7 @@ ${lanes.join("\n")} return result; } function visitClassDeclaration(node) { - return visitInNewClassLexicalEnvironment( - node, - /*referencedName*/ - void 0, - visitClassDeclarationInNewClassLexicalEnvironment - ); + return visitInNewClassLexicalEnvironment(node, visitClassDeclarationInNewClassLexicalEnvironment); } function visitClassDeclarationInNewClassLexicalEnvironment(node, facts) { var _a, _b; @@ -91690,10 +92687,11 @@ ${lanes.join("\n")} getClassLexicalEnvironment().classConstructor = factory2.cloneNode(temp); pendingClassReferenceAssignment = factory2.createAssignment(temp, factory2.getInternalName(node)); } - if ((_b = node.emitNode) == null ? void 0 : _b.classThis) { - getClassLexicalEnvironment().classThis = node.emitNode.classThis; - } } + if ((_b = node.emitNode) == null ? void 0 : _b.classThis) { + getClassLexicalEnvironment().classThis = node.emitNode.classThis; + } + const isClassWithConstructorReference = resolver.getNodeCheckFlags(node) & 262144 /* ContainsConstructorReference */; const isExport = hasSyntacticModifier(node, 1 /* Export */); const isDefault = hasSyntacticModifier(node, 1024 /* Default */); let modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); @@ -91728,6 +92726,11 @@ ${lanes.join("\n")} ) )); } + const alias = getClassLexicalEnvironment().classConstructor; + if (isClassWithConstructorReference && alias) { + enableSubstitutionForClassAliases(); + classAliases[getOriginalNodeId(node)] = alias; + } const classDecl = factory2.updateClassDeclaration( node, modifiers, @@ -91743,24 +92746,27 @@ ${lanes.join("\n")} } return statements; } - function visitClassExpression(node, referencedName) { - return visitInNewClassLexicalEnvironment(node, referencedName, visitClassExpressionInNewClassLexicalEnvironment); + function visitClassExpression(node) { + return visitInNewClassLexicalEnvironment(node, visitClassExpressionInNewClassLexicalEnvironment); } - function visitClassExpressionInNewClassLexicalEnvironment(node, facts, referencedName) { - var _a, _b, _c, _d; + function visitClassExpressionInNewClassLexicalEnvironment(node, facts) { + var _a, _b, _c; const isDecoratedClassDeclaration = !!(facts & 1 /* ClassWasDecorated */); const staticPropertiesOrClassStaticBlocks = getStaticPropertiesAndClassStaticBlock(node); - const isClassWithConstructorReference = resolver.getNodeCheckFlags(node) & 1048576 /* ClassWithConstructorReference */; + const classCheckFlags = resolver.getNodeCheckFlags(node); + const isClassWithConstructorReference = classCheckFlags & 262144 /* ContainsConstructorReference */; let temp; function createClassTempVar() { var _a2; if (shouldTransformPrivateElementsOrClassStaticBlocks && ((_a2 = node.emitNode) == null ? void 0 : _a2.classThis)) { return getClassLexicalEnvironment().classConstructor = node.emitNode.classThis; } - const classCheckFlags = resolver.getNodeCheckFlags(node); - const isClassWithConstructorReference2 = classCheckFlags & 1048576 /* ClassWithConstructorReference */; const requiresBlockScopedVar = classCheckFlags & 32768 /* BlockScopedBindingInLoop */; - const temp2 = factory2.createTempVariable(requiresBlockScopedVar ? addBlockScopedVariable : hoistVariableDeclaration, !!isClassWithConstructorReference2); + const temp2 = factory2.createTempVariable( + requiresBlockScopedVar ? addBlockScopedVariable : hoistVariableDeclaration, + /*reservedInNestedScopes*/ + true + ); getClassLexicalEnvironment().classConstructor = factory2.cloneNode(temp2); return temp2; } @@ -91773,7 +92779,7 @@ ${lanes.join("\n")} const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); const heritageClauses = visitNodes2(node.heritageClauses, heritageClauseVisitor, isHeritageClause); const { members, prologue } = transformClassMembers(node); - let classExpression = factory2.updateClassExpression( + const classExpression = factory2.updateClassExpression( node, modifiers, node.name, @@ -91787,41 +92793,18 @@ ${lanes.join("\n")} expressions.push(prologue); } const hasTransformableStatics = (shouldTransformPrivateElementsOrClassStaticBlocks || getInternalEmitFlags(node) & 32 /* TransformPrivateStaticElements */) && some(staticPropertiesOrClassStaticBlocks, (node2) => isClassStaticBlockDeclaration(node2) || isPrivateIdentifierClassElementDeclaration(node2) || shouldTransformInitializers && isInitializedProperty(node2)); - if (hasTransformableStatics || some(pendingExpressions) || referencedName) { + if (hasTransformableStatics || some(pendingExpressions)) { if (isDecoratedClassDeclaration) { Debug.assertIsDefined(pendingStatements, "Decorated classes transformed by TypeScript are expected to be within a variable declaration."); if (some(pendingExpressions)) { addRange(pendingStatements, map(pendingExpressions, factory2.createExpressionStatement)); } - if (referencedName) { - if (shouldTransformPrivateElementsOrClassStaticBlocks) { - const setNameExpression = emitHelpers().createSetFunctionNameHelper(temp ?? ((_b = node.emitNode) == null ? void 0 : _b.classThis) ?? factory2.getInternalName(node), referencedName); - pendingStatements.push(factory2.createExpressionStatement(setNameExpression)); - } else { - const setNameExpression = emitHelpers().createSetFunctionNameHelper(factory2.createThis(), referencedName); - classExpression = factory2.updateClassExpression( - classExpression, - classExpression.modifiers, - classExpression.name, - classExpression.typeParameters, - classExpression.heritageClauses, - [ - factory2.createClassStaticBlockDeclaration( - factory2.createBlock([ - factory2.createExpressionStatement(setNameExpression) - ]) - ), - ...classExpression.members - ] - ); - } - } if (some(staticPropertiesOrClassStaticBlocks)) { - addPropertyOrClassStaticBlockStatements(pendingStatements, staticPropertiesOrClassStaticBlocks, ((_c = node.emitNode) == null ? void 0 : _c.classThis) ?? factory2.getInternalName(node)); + addPropertyOrClassStaticBlockStatements(pendingStatements, staticPropertiesOrClassStaticBlocks, ((_b = node.emitNode) == null ? void 0 : _b.classThis) ?? factory2.getInternalName(node)); } if (temp) { expressions.push(factory2.createAssignment(temp, classExpression)); - } else if (shouldTransformPrivateElementsOrClassStaticBlocks && ((_d = node.emitNode) == null ? void 0 : _d.classThis)) { + } else if (shouldTransformPrivateElementsOrClassStaticBlocks && ((_c = node.emitNode) == null ? void 0 : _c.classThis)) { expressions.push(factory2.createAssignment(node.emitNode.classThis, classExpression)); } else { expressions.push(classExpression); @@ -91836,9 +92819,6 @@ ${lanes.join("\n")} } expressions.push(factory2.createAssignment(temp, classExpression)); addRange(expressions, pendingExpressions); - if (referencedName) { - expressions.push(emitHelpers().createSetFunctionNameHelper(temp, referencedName)); - } addRange(expressions, generateInitializedPropertyExpressionsOrClassStaticBlock(staticPropertiesOrClassStaticBlocks, temp)); expressions.push(factory2.cloneNode(temp)); } @@ -91857,6 +92837,13 @@ ${lanes.join("\n")} } return void 0; } + function visitThisExpression(node) { + if (shouldTransformThisInStaticInitializers && currentClassElement && isClassStaticBlockDeclaration(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + const { classThis, classConstructor } = lexicalEnvironment.data; + return classThis ?? classConstructor ?? node; + } + return node; + } function transformClassMembers(node) { const shouldTransformPrivateStaticElementsInClass = !!(getInternalEmitFlags(node) & 32 /* TransformPrivateStaticElements */); if (shouldTransformPrivateElementsOrClassStaticBlocks || shouldTransformPrivateStaticElementsInFile) { @@ -91936,9 +92923,14 @@ ${lanes.join("\n")} } if (syntheticConstructor || syntheticStaticBlock) { let membersArray; + const classThisAssignmentBlock = find(members, isClassThisAssignmentBlock); + const classNamedEvaluationHelperBlock = find(members, isClassNamedEvaluationHelperBlock); + membersArray = append(membersArray, classThisAssignmentBlock); + membersArray = append(membersArray, classNamedEvaluationHelperBlock); membersArray = append(membersArray, syntheticConstructor); membersArray = append(membersArray, syntheticStaticBlock); - membersArray = addRange(membersArray, members); + const remainingMembers = classThisAssignmentBlock || classNamedEvaluationHelperBlock ? filter(members, (member) => member !== classThisAssignmentBlock && member !== classNamedEvaluationHelperBlock) : members; + membersArray = addRange(membersArray, remainingMembers); members = setTextRange( factory2.createNodeArray(membersArray), /*location*/ @@ -91999,8 +92991,46 @@ ${lanes.join("\n")} ) ); } + function transformConstructorBodyWorker(statementsOut, statementsIn, statementOffset, superPath, superPathDepth, initializerStatements, constructor) { + const superStatementIndex = superPath[superPathDepth]; + const superStatement = statementsIn[superStatementIndex]; + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, statementOffset, superStatementIndex - statementOffset)); + statementOffset = superStatementIndex + 1; + if (isTryStatement(superStatement)) { + const tryBlockStatements = []; + transformConstructorBodyWorker( + tryBlockStatements, + superStatement.tryBlock.statements, + /*statementOffset*/ + 0, + superPath, + superPathDepth + 1, + initializerStatements, + constructor + ); + const tryBlockStatementsArray = factory2.createNodeArray(tryBlockStatements); + setTextRange(tryBlockStatementsArray, superStatement.tryBlock.statements); + statementsOut.push(factory2.updateTryStatement( + superStatement, + factory2.updateBlock(superStatement.tryBlock, tryBlockStatements), + visitNode(superStatement.catchClause, visitor, isCatchClause), + visitNode(superStatement.finallyBlock, visitor, isBlock) + )); + } else { + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex, 1)); + while (statementOffset < statementsIn.length) { + const statement = statementsIn[statementOffset]; + if (isParameterPropertyDeclaration(getOriginalNode(statement), constructor)) { + statementOffset++; + } else { + break; + } + } + addRange(statementsOut, initializerStatements); + } + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, statementOffset)); + } function transformConstructorBody(node, constructor, isDerivedClass) { - var _a; const instanceProperties = getProperties( node, /*requireInitializer*/ @@ -92024,68 +93054,65 @@ ${lanes.join("\n")} } resumeLexicalEnvironment(); const needsSyntheticConstructor = !constructor && isDerivedClass; - let indexOfFirstStatementAfterSuperAndPrologue = 0; - let prologueStatementCount = 0; - let superStatementIndex = -1; + let statementOffset = 0; let statements = []; - if ((_a = constructor == null ? void 0 : constructor.body) == null ? void 0 : _a.statements) { - prologueStatementCount = factory2.copyPrologue( + const initializerStatements = []; + const receiver = factory2.createThis(); + addInstanceMethodStatements(initializerStatements, privateMethodsAndAccessors, receiver); + if (constructor) { + const parameterProperties = filter(instanceProperties, (prop) => isParameterPropertyDeclaration(getOriginalNode(prop), constructor)); + const nonParameterProperties = filter(properties, (prop) => !isParameterPropertyDeclaration(getOriginalNode(prop), constructor)); + addPropertyOrClassStaticBlockStatements(initializerStatements, parameterProperties, receiver); + addPropertyOrClassStaticBlockStatements(initializerStatements, nonParameterProperties, receiver); + } else { + addPropertyOrClassStaticBlockStatements(initializerStatements, properties, receiver); + } + if (constructor == null ? void 0 : constructor.body) { + statementOffset = factory2.copyPrologue( constructor.body.statements, statements, /*ensureUseStrict*/ false, visitor ); - superStatementIndex = findSuperStatementIndex(constructor.body.statements, prologueStatementCount); - if (superStatementIndex >= 0) { - indexOfFirstStatementAfterSuperAndPrologue = superStatementIndex + 1; - statements = [ - ...statements.slice(0, prologueStatementCount), - ...visitNodes2(constructor.body.statements, visitor, isStatement, prologueStatementCount, indexOfFirstStatementAfterSuperAndPrologue - prologueStatementCount), - ...statements.slice(prologueStatementCount) - ]; - } else if (prologueStatementCount >= 0) { - indexOfFirstStatementAfterSuperAndPrologue = prologueStatementCount; - } - } - if (needsSyntheticConstructor) { - statements.push( - factory2.createExpressionStatement( - factory2.createCallExpression( - factory2.createSuper(), - /*typeArguments*/ - void 0, - [factory2.createSpreadElement(factory2.createIdentifier("arguments"))] - ) - ) - ); - } - let parameterPropertyDeclarationCount = 0; - if (constructor == null ? void 0 : constructor.body) { - for (let i = indexOfFirstStatementAfterSuperAndPrologue; i < constructor.body.statements.length; i++) { - const statement = constructor.body.statements[i]; - if (isParameterPropertyDeclaration(getOriginalNode(statement), constructor)) { - parameterPropertyDeclarationCount++; - } else { - break; + const superStatementIndices = findSuperStatementIndexPath(constructor.body.statements, statementOffset); + if (superStatementIndices.length) { + transformConstructorBodyWorker( + statements, + constructor.body.statements, + statementOffset, + superStatementIndices, + /*superPathDepth*/ + 0, + initializerStatements, + constructor + ); + } else { + while (statementOffset < constructor.body.statements.length) { + const statement = constructor.body.statements[statementOffset]; + if (isParameterPropertyDeclaration(getOriginalNode(statement), constructor)) { + statementOffset++; + } else { + break; + } } + addRange(statements, initializerStatements); + addRange(statements, visitNodes2(constructor.body.statements, visitor, isStatement, statementOffset)); } - if (parameterPropertyDeclarationCount > 0) { - indexOfFirstStatementAfterSuperAndPrologue += parameterPropertyDeclarationCount; - } - } - const receiver = factory2.createThis(); - addInstanceMethodStatements(statements, privateMethodsAndAccessors, receiver); - if (constructor) { - const parameterProperties = filter(instanceProperties, (prop) => isParameterPropertyDeclaration(getOriginalNode(prop), constructor)); - const nonParameterProperties = filter(properties, (prop) => !isParameterPropertyDeclaration(getOriginalNode(prop), constructor)); - addPropertyOrClassStaticBlockStatements(statements, parameterProperties, receiver); - addPropertyOrClassStaticBlockStatements(statements, nonParameterProperties, receiver); } else { - addPropertyOrClassStaticBlockStatements(statements, properties, receiver); - } - if (constructor) { - addRange(statements, visitNodes2(constructor.body.statements, visitor, isStatement, indexOfFirstStatementAfterSuperAndPrologue)); + if (needsSyntheticConstructor) { + statements.push( + factory2.createExpressionStatement( + factory2.createCallExpression( + factory2.createSuper(), + /*typeArguments*/ + void 0, + [factory2.createSpreadElement(factory2.createIdentifier("arguments"))] + ) + ) + ); + } + addRange(statements, initializerStatements); } statements = factory2.mergeLexicalEnvironment(statements, endLexicalEnvironment()); if (statements.length === 0 && !constructor) { @@ -92118,7 +93145,7 @@ ${lanes.join("\n")} } } function transformPropertyOrClassStaticBlock(property, receiver) { - const expression = isClassStaticBlockDeclaration(property) ? transformClassStaticBlockDeclaration(property) : transformProperty(property, receiver); + const expression = isClassStaticBlockDeclaration(property) ? setCurrentClassElementAnd(property, transformClassStaticBlockDeclaration, property) : transformProperty(property, receiver); if (!expression) { return void 0; } @@ -92143,7 +93170,12 @@ ${lanes.join("\n")} function generateInitializedPropertyExpressionsOrClassStaticBlock(propertiesOrClassStaticBlocks, receiver) { const expressions = []; for (const property of propertiesOrClassStaticBlocks) { - const expression = isClassStaticBlockDeclaration(property) ? transformClassStaticBlockDeclaration(property) : transformProperty(property, receiver); + const expression = isClassStaticBlockDeclaration(property) ? setCurrentClassElementAnd(property, transformClassStaticBlockDeclaration, property) : setCurrentClassElementAnd( + property, + () => transformProperty(property, receiver), + /*arg*/ + void 0 + ); if (!expression) { continue; } @@ -92158,7 +93190,7 @@ ${lanes.join("\n")} } function transformProperty(property, receiver) { var _a; - const savedCurrentStaticPropertyDeclarationOrStaticBlock = currentStaticPropertyDeclarationOrStaticBlock; + const savedCurrentClassElement = currentClassElement; const transformed = transformPropertyWorker(property, receiver); if (transformed && hasStaticModifier(property) && ((_a = lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) == null ? void 0 : _a.facts)) { setOriginalNode(transformed, property); @@ -92166,26 +93198,18 @@ ${lanes.join("\n")} setSourceMapRange(transformed, getSourceMapRange(property.name)); lexicalEnvironmentMap.set(getOriginalNode(property), lexicalEnvironment); } - currentStaticPropertyDeclarationOrStaticBlock = savedCurrentStaticPropertyDeclarationOrStaticBlock; + currentClassElement = savedCurrentClassElement; return transformed; } function transformPropertyWorker(property, receiver) { const emitAssignment = !useDefineForClassFields; - let referencedName; if (isNamedEvaluation(property, isAnonymousClassNeedingAssignedName)) { - if (isPropertyNameLiteral(property.name) || isPrivateIdentifier(property.name)) { - referencedName = factory2.createStringLiteralFromNode(property.name); - } else if (isPropertyNameLiteral(property.name.expression) && !isIdentifier(property.name.expression)) { - referencedName = factory2.createStringLiteralFromNode(property.name.expression); - } else { - referencedName = factory2.getGeneratedNameForNode(property.name); - } + property = transformNamedEvaluation(context, property); } const propertyName = hasAccessorModifier(property) ? factory2.getGeneratedPrivateNameForNode(property.name) : isComputedPropertyName(property.name) && !isSimpleInlineableExpression(property.name.expression) ? factory2.updateComputedPropertyName(property.name, factory2.getGeneratedNameForNode(property.name)) : property.name; if (hasStaticModifier(property)) { - currentStaticPropertyDeclarationOrStaticBlock = property; + currentClassElement = property; } - const initializerVisitor = referencedName ? (child) => namedEvaluationVisitor(child, referencedName) : visitor; if (isPrivateIdentifier(propertyName) && shouldTransformClassElementToWeakMap(property)) { const privateIdentifierInfo = accessPrivateIdentifier2(propertyName); if (privateIdentifierInfo) { @@ -92194,14 +93218,14 @@ ${lanes.join("\n")} return createPrivateInstanceFieldInitializer( factory2, receiver, - visitNode(property.initializer, initializerVisitor, isExpression), + visitNode(property.initializer, visitor, isExpression), privateIdentifierInfo.brandCheckIdentifier ); } else { return createPrivateStaticFieldInitializer( factory2, privateIdentifierInfo.variableName, - visitNode(property.initializer, initializerVisitor, isExpression) + visitNode(property.initializer, visitor, isExpression) ); } } else { @@ -92218,7 +93242,7 @@ ${lanes.join("\n")} if (hasSyntacticModifier(propertyOriginalNode, 256 /* Abstract */)) { return void 0; } - let initializer = visitNode(property.initializer, initializerVisitor, isExpression); + let initializer = visitNode(property.initializer, visitor, isExpression); if (isParameterPropertyDeclaration(propertyOriginalNode, propertyOriginalNode.parent) && isIdentifier(propertyName)) { const localName = factory2.cloneNode(propertyName); if (initializer) { @@ -92263,14 +93287,14 @@ ${lanes.join("\n")} if ((enabledSubstitutions & 2 /* ClassStaticThisOrSuperReference */) === 0) { enabledSubstitutions |= 2 /* ClassStaticThisOrSuperReference */; context.enableSubstitution(110 /* ThisKeyword */); - context.enableEmitNotification(261 /* FunctionDeclaration */); - context.enableEmitNotification(217 /* FunctionExpression */); - context.enableEmitNotification(175 /* Constructor */); - context.enableEmitNotification(176 /* GetAccessor */); - context.enableEmitNotification(177 /* SetAccessor */); - context.enableEmitNotification(173 /* MethodDeclaration */); - context.enableEmitNotification(171 /* PropertyDeclaration */); - context.enableEmitNotification(166 /* ComputedPropertyName */); + context.enableEmitNotification(262 /* FunctionDeclaration */); + context.enableEmitNotification(218 /* FunctionExpression */); + context.enableEmitNotification(176 /* Constructor */); + context.enableEmitNotification(177 /* GetAccessor */); + context.enableEmitNotification(178 /* SetAccessor */); + context.enableEmitNotification(174 /* MethodDeclaration */); + context.enableEmitNotification(172 /* PropertyDeclaration */); + context.enableEmitNotification(167 /* ComputedPropertyName */); } } function addInstanceMethodStatements(statements, methods, receiver) { @@ -92296,10 +93320,10 @@ ${lanes.join("\n")} visitNode(node.argumentExpression, visitor, isExpression) ); } - function getPropertyNameExpressionIfNeeded(name, shouldHoist, captureReferencedName) { + function getPropertyNameExpressionIfNeeded(name, shouldHoist) { if (isComputedPropertyName(name)) { const cacheAssignment = findComputedPropertyNameCacheAssignment(name); - let expression = visitNode(name.expression, visitor, isExpression); + const expression = visitNode(name.expression, visitor, isExpression); const innerExpression = skipPartiallyEmittedExpressions(expression); const inlinable = isSimpleInlineableExpression(innerExpression); const alreadyTransformed = !!cacheAssignment || isAssignmentExpression(innerExpression) && isGeneratedIdentifier(innerExpression.left); @@ -92310,9 +93334,6 @@ ${lanes.join("\n")} } else { hoistVariableDeclaration(generatedName); } - if (captureReferencedName) { - expression = emitHelpers().createPropKeyHelper(expression); - } return factory2.createAssignment(generatedName, expression); } return inlinable || isIdentifier(innerExpression) ? void 0 : expression; @@ -92508,7 +93529,7 @@ ${lanes.join("\n")} } if (isPrivateIdentifierPropertyAccessExpression(node)) { return wrapPrivateIdentifierForDestructuringTarget(node); - } else if (shouldTransformSuperInStaticInitializers && isSuperProperty(node) && currentStaticPropertyDeclarationOrStaticBlock && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + } else if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { const { classConstructor, superClassReference, facts } = lexicalEnvironment.data; if (facts & 1 /* ClassWasDecorated */) { return visitInvalidSuperProperty(node); @@ -92535,10 +93556,7 @@ ${lanes.join("\n")} } function visitAssignmentElement(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const left = visitDestructuringAssignmentTarget(node.left); - const assignedName = getAssignedNameOfIdentifier(node.left, node.right); - const right = visitNode(node.right, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateBinaryExpression(node, left, node.operatorToken, right); + node = transformNamedEvaluation(context, node); } if (isAssignmentExpression( node, @@ -92585,9 +93603,7 @@ ${lanes.join("\n")} } function visitShorthandAssignmentProperty(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.name, node.objectAssignmentInitializer); - const objectAssignmentInitializer = visitNode(node.objectAssignmentInitializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateShorthandPropertyAssignment(node, node.name, objectAssignmentInitializer); + node = transformNamedEvaluation(context, node); } return visitEachChild(node, visitor, context); } @@ -92637,16 +93653,16 @@ ${lanes.join("\n")} return; } switch (node.kind) { - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: if (isArrowFunction(original) || getEmitFlags(node) & 524288 /* AsyncFunctionBody */) { break; } - case 261 /* FunctionDeclaration */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 173 /* MethodDeclaration */: - case 171 /* PropertyDeclaration */: { + case 262 /* FunctionDeclaration */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 172 /* PropertyDeclaration */: { const savedLexicalEnvironment = lexicalEnvironment; const savedPreviousShouldSubstituteThisWithClassThis = previousShouldSubstituteThisWithClassThis; lexicalEnvironment = void 0; @@ -92658,7 +93674,7 @@ ${lanes.join("\n")} lexicalEnvironment = savedLexicalEnvironment; return; } - case 166 /* ComputedPropertyName */: { + case 167 /* ComputedPropertyName */: { const savedLexicalEnvironment = lexicalEnvironment; const savedShouldSubstituteThisWithClassThis = shouldSubstituteThisWithClassThis; lexicalEnvironment = lexicalEnvironment == null ? void 0 : lexicalEnvironment.previous; @@ -92688,11 +93704,8 @@ ${lanes.join("\n")} return node; } function substituteThisExpression(node) { - if (enabledSubstitutions & 2 /* ClassStaticThisOrSuperReference */ && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + if (enabledSubstitutions & 2 /* ClassStaticThisOrSuperReference */ && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) && !noSubstitution.has(node)) { const { facts, classConstructor, classThis } = lexicalEnvironment.data; - if (facts & 1 /* ClassWasDecorated */ && legacyDecorators) { - return factory2.createParenthesizedExpression(factory2.createVoidZero()); - } const substituteThis = shouldSubstituteThisWithClassThis ? classThis ?? classConstructor : classConstructor; if (substituteThis) { return setTextRange( @@ -92703,6 +93716,9 @@ ${lanes.join("\n")} node ); } + if (facts & 1 /* ClassWasDecorated */ && legacyDecorators) { + return factory2.createParenthesizedExpression(factory2.createVoidZero()); + } } return node; } @@ -92711,7 +93727,7 @@ ${lanes.join("\n")} } function trySubstituteClassAlias(node) { if (enabledSubstitutions & 1 /* ClassAliases */) { - if (resolver.getNodeCheckFlags(node) & 2097152 /* ConstructorReferenceInClass */) { + if (resolver.getNodeCheckFlags(node) & 536870912 /* ConstructorReference */) { const declaration = resolver.getReferencedValueDeclaration(node); if (declaration) { const classAlias = classAliases[declaration.id]; @@ -92757,6 +93773,12 @@ ${lanes.join("\n")} function isPrivateIdentifierInExpression(node) { return isPrivateIdentifier(node.left) && node.operatorToken.kind === 103 /* InKeyword */; } + function isStaticPropertyDeclaration2(node) { + return isPropertyDeclaration(node) && hasStaticModifier(node); + } + function isStaticPropertyDeclarationOrClassStaticBlock(node) { + return isClassStaticBlockDeclaration(node) || isStaticPropertyDeclaration2(node); + } var init_classFields = __esm({ "src/compiler/transformers/classFields.ts"() { "use strict"; @@ -92798,15 +93820,15 @@ ${lanes.join("\n")} } function serializeTypeOfNode(node) { switch (node.kind) { - case 171 /* PropertyDeclaration */: - case 168 /* Parameter */: + case 172 /* PropertyDeclaration */: + case 169 /* Parameter */: return serializeTypeNode(node.type); - case 177 /* SetAccessor */: - case 176 /* GetAccessor */: + case 178 /* SetAccessor */: + case 177 /* GetAccessor */: return serializeTypeNode(getAccessorTypeNode(node)); - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 173 /* MethodDeclaration */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 174 /* MethodDeclaration */: return factory2.createIdentifier("Function"); default: return factory2.createVoidZero(); @@ -92833,7 +93855,7 @@ ${lanes.join("\n")} return factory2.createArrayLiteralExpression(expressions); } function getParametersOfDecoratedDeclaration(node, container) { - if (container && node.kind === 176 /* GetAccessor */) { + if (container && node.kind === 177 /* GetAccessor */) { const { setAccessor } = getAllAccessorDeclarations(container.members, node); if (setAccessor) { return setAccessor.parameters; @@ -92859,72 +93881,72 @@ ${lanes.join("\n")} case 157 /* UndefinedKeyword */: case 146 /* NeverKeyword */: return factory2.createVoidZero(); - case 183 /* FunctionType */: - case 184 /* ConstructorType */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: return factory2.createIdentifier("Function"); - case 187 /* ArrayType */: - case 188 /* TupleType */: + case 188 /* ArrayType */: + case 189 /* TupleType */: return factory2.createIdentifier("Array"); - case 181 /* TypePredicate */: + case 182 /* TypePredicate */: return node.assertsModifier ? factory2.createVoidZero() : factory2.createIdentifier("Boolean"); case 136 /* BooleanKeyword */: return factory2.createIdentifier("Boolean"); - case 202 /* TemplateLiteralType */: + case 203 /* TemplateLiteralType */: case 154 /* StringKeyword */: return factory2.createIdentifier("String"); case 151 /* ObjectKeyword */: return factory2.createIdentifier("Object"); - case 200 /* LiteralType */: + case 201 /* LiteralType */: return serializeLiteralOfLiteralTypeNode(node.literal); case 150 /* NumberKeyword */: return factory2.createIdentifier("Number"); - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: return getGlobalConstructor("BigInt", 7 /* ES2020 */); case 155 /* SymbolKeyword */: return getGlobalConstructor("Symbol", 2 /* ES2015 */); - case 182 /* TypeReference */: + case 183 /* TypeReference */: return serializeTypeReferenceNode(node); - case 192 /* IntersectionType */: + case 193 /* IntersectionType */: return serializeUnionOrIntersectionConstituents( node.types, /*isIntersection*/ true ); - case 191 /* UnionType */: + case 192 /* UnionType */: return serializeUnionOrIntersectionConstituents( node.types, /*isIntersection*/ false ); - case 193 /* ConditionalType */: + case 194 /* ConditionalType */: return serializeUnionOrIntersectionConstituents( [node.trueType, node.falseType], /*isIntersection*/ false ); - case 197 /* TypeOperator */: + case 198 /* TypeOperator */: if (node.operator === 148 /* ReadonlyKeyword */) { return serializeTypeNode(node.type); } break; - case 185 /* TypeQuery */: - case 198 /* IndexedAccessType */: - case 199 /* MappedType */: - case 186 /* TypeLiteral */: + case 186 /* TypeQuery */: + case 199 /* IndexedAccessType */: + case 200 /* MappedType */: + case 187 /* TypeLiteral */: case 133 /* AnyKeyword */: case 159 /* UnknownKeyword */: - case 196 /* ThisType */: - case 204 /* ImportType */: + case 197 /* ThisType */: + case 205 /* ImportType */: break; - case 318 /* JSDocAllType */: - case 319 /* JSDocUnknownType */: - case 323 /* JSDocFunctionType */: - case 324 /* JSDocVariadicType */: - case 325 /* JSDocNamepathType */: + case 319 /* JSDocAllType */: + case 320 /* JSDocUnknownType */: + case 324 /* JSDocFunctionType */: + case 325 /* JSDocVariadicType */: + case 326 /* JSDocNamepathType */: break; - case 320 /* JSDocNullableType */: - case 321 /* JSDocNonNullableType */: - case 322 /* JSDocOptionalType */: + case 321 /* JSDocNullableType */: + case 322 /* JSDocNonNullableType */: + case 323 /* JSDocOptionalType */: return serializeTypeNode(node.type); default: return Debug.failBadSyntaxKind(node); @@ -92936,7 +93958,7 @@ ${lanes.join("\n")} case 11 /* StringLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: return factory2.createIdentifier("String"); - case 223 /* PrefixUnaryExpression */: { + case 224 /* PrefixUnaryExpression */: { const operand = node.operand; switch (operand.kind) { case 9 /* NumericLiteral */: @@ -93095,7 +94117,7 @@ ${lanes.join("\n")} name.original = void 0; setParent(name, getParseTreeNode(currentLexicalScope)); return name; - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: return serializeQualifiedNameAsExpression(node); } } @@ -93151,23 +94173,23 @@ ${lanes.join("\n")} return node; } switch (node.kind) { - case 169 /* Decorator */: + case 170 /* Decorator */: return void 0; - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return visitClassDeclaration(node); - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return visitClassExpression(node); - case 175 /* Constructor */: + case 176 /* Constructor */: return visitConstructorDeclaration(node); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return visitMethodDeclaration(node); - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return visitSetAccessorDeclaration(node); - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return visitGetAccessorDeclaration(node); - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return visitPropertyDeclaration(node); - case 168 /* Parameter */: + case 169 /* Parameter */: return visitParameterDeclaration(node); default: return visitEachChild(node, visitor, context); @@ -93307,39 +94329,36 @@ ${lanes.join("\n")} ); setOriginalNode(classExpression, node); setTextRange(classExpression, location); + const varInitializer = classAlias && !assignClassAliasInStaticBlock ? factory2.createAssignment(classAlias, classExpression) : classExpression; const varDecl = factory2.createVariableDeclaration( declName, /*exclamationToken*/ void 0, /*type*/ void 0, - classAlias && !assignClassAliasInStaticBlock ? factory2.createAssignment(classAlias, classExpression) : classExpression + varInitializer ); setOriginalNode(varDecl, node); - let varModifiers; - if (isExport && !isDefault) { - varModifiers = factory2.createModifiersFromModifierFlags(1 /* Export */); - } - const statement = factory2.createVariableStatement( - varModifiers, - factory2.createVariableDeclarationList([ - varDecl - ], 1 /* Let */) + const varDeclList = factory2.createVariableDeclarationList([varDecl], 1 /* Let */); + const varStatement = factory2.createVariableStatement( + /*modifiers*/ + void 0, + varDeclList ); - setOriginalNode(statement, node); - setTextRange(statement, location); - setCommentRange(statement, node); - const statements = [statement]; + setOriginalNode(varStatement, node); + setTextRange(varStatement, location); + setCommentRange(varStatement, node); + const statements = [varStatement]; addRange(statements, decorationStatements); addConstructorDecorationStatement(statements, node); - if (isExport && isDefault) { - statements.push(factory2.createExportAssignment( - /*modifiers*/ - void 0, - /*isExportEquals*/ - false, - declName - )); + if (isExport) { + if (isDefault) { + const exportStatement = factory2.createExportDefault(declName); + statements.push(exportStatement); + } else { + const exportStatement = factory2.createExternalModuleExport(factory2.getDeclarationName(node)); + statements.push(exportStatement); + } } return statements; } @@ -93406,7 +94425,7 @@ ${lanes.join("\n")} ), node); } function visitPropertyDeclaration(node) { - if (node.flags & 16777216 /* Ambient */ || hasSyntacticModifier(node, 2 /* Ambient */)) { + if (node.flags & 33554432 /* Ambient */ || hasSyntacticModifier(node, 2 /* Ambient */)) { return void 0; } return finishClassElement(factory2.updatePropertyDeclaration( @@ -93574,7 +94593,7 @@ ${lanes.join("\n")} } } function getClassAliasIfNeeded(node) { - if (resolver.getNodeCheckFlags(node) & 1048576 /* ClassWithConstructorReference */) { + if (resolver.getNodeCheckFlags(node) & 262144 /* ContainsConstructorReference */) { enableSubstitutionForClassAliases(); const classAlias = factory2.createUniqueName(node.name && !isGeneratedIdentifier(node.name) ? idText(node.name) : "default"); classAliases[getOriginalNodeId(node)] = classAlias; @@ -93607,7 +94626,7 @@ ${lanes.join("\n")} } function trySubstituteClassAlias(node) { if (classAliases) { - if (resolver.getNodeCheckFlags(node) & 2097152 /* ConstructorReferenceInClass */) { + if (resolver.getNodeCheckFlags(node) & 536870912 /* ConstructorReference */) { const declaration = resolver.getReferencedValueDeclaration(node); if (declaration) { const classAlias = classAliases[declaration.id]; @@ -93639,8 +94658,7 @@ ${lanes.join("\n")} endLexicalEnvironment, hoistVariableDeclaration } = context; - const compilerOptions = context.getCompilerOptions(); - const languageVersion = getEmitScriptTarget(compilerOptions); + const languageVersion = getEmitScriptTarget(context.getCompilerOptions()); let top; let classInfo; let classThis; @@ -93752,86 +94770,78 @@ ${lanes.join("\n")} return node; } switch (node.kind) { - case 169 /* Decorator */: + case 170 /* Decorator */: return Debug.fail("Use `modifierVisitor` instead."); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return visitClassDeclaration(node); - case 230 /* ClassExpression */: - return visitClassExpression( - node, - /*referencedName*/ - void 0 - ); - case 175 /* Constructor */: - case 171 /* PropertyDeclaration */: - case 174 /* ClassStaticBlockDeclaration */: + case 231 /* ClassExpression */: + return visitClassExpression(node); + case 176 /* Constructor */: + case 172 /* PropertyDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: return Debug.fail("Not supported outside of a class. Use 'classElementVisitor' instead."); - case 168 /* Parameter */: + case 169 /* Parameter */: return visitParameterDeclaration(node); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return visitBinaryExpression( node, /*discarded*/ false ); - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return visitPropertyAssignment(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return visitVariableDeclaration(node); - case 207 /* BindingElement */: + case 208 /* BindingElement */: return visitBindingElement(node); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return visitExportAssignment(node); case 110 /* ThisKeyword */: return visitThisExpression(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement(node); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return visitExpressionStatement(node); - case 360 /* CommaListExpression */: + case 361 /* CommaListExpression */: return visitCommaListExpression( node, /*discarded*/ false ); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression( node, /*discarded*/ - false, - /*referencedName*/ - void 0 + false ); - case 359 /* PartiallyEmittedExpression */: + case 360 /* PartiallyEmittedExpression */: return visitPartiallyEmittedExpression( node, /*discarded*/ - false, - /*referencedName*/ - void 0 + false ); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return visitCallExpression(node); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return visitTaggedTemplateExpression(node); - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return visitPreOrPostfixUnaryExpression( node, /*discarded*/ false ); - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return visitPropertyAccessExpression(node); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return visitElementAccessExpression(node); - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: return visitComputedPropertyName(node); - case 173 /* MethodDeclaration */: - case 177 /* SetAccessor */: - case 176 /* GetAccessor */: - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: { + case 174 /* MethodDeclaration */: + case 178 /* SetAccessor */: + case 177 /* GetAccessor */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: { enterOther(); const result = visitEachChild(node, fallbackVisitor, context); exitOther(); @@ -93843,7 +94853,7 @@ ${lanes.join("\n")} } function fallbackVisitor(node) { switch (node.kind) { - case 169 /* Decorator */: + case 170 /* Decorator */: return void 0; default: return visitor(node); @@ -93851,7 +94861,7 @@ ${lanes.join("\n")} } function modifierVisitor(node) { switch (node.kind) { - case 169 /* Decorator */: + case 170 /* Decorator */: return void 0; default: return node; @@ -93859,72 +94869,48 @@ ${lanes.join("\n")} } function classElementVisitor(node) { switch (node.kind) { - case 175 /* Constructor */: + case 176 /* Constructor */: return visitConstructorDeclaration(node); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return visitMethodDeclaration(node); - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return visitGetAccessorDeclaration(node); - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return visitSetAccessorDeclaration(node); - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return visitPropertyDeclaration(node); - case 174 /* ClassStaticBlockDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: return visitClassStaticBlockDeclaration(node); default: return visitor(node); } } - function namedEvaluationVisitor(node, referencedName) { - switch (node.kind) { - case 359 /* PartiallyEmittedExpression */: - return visitPartiallyEmittedExpression( - node, - /*discarded*/ - false, - referencedName - ); - case 216 /* ParenthesizedExpression */: - return visitParenthesizedExpression( - node, - /*discarded*/ - false, - referencedName - ); - case 230 /* ClassExpression */: - return visitClassExpression(node, referencedName); - default: - return visitor(node); - } - } function discardedValueVisitor(node) { switch (node.kind) { - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return visitPreOrPostfixUnaryExpression( node, /*discarded*/ true ); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return visitBinaryExpression( node, /*discarded*/ true ); - case 360 /* CommaListExpression */: + case 361 /* CommaListExpression */: return visitCommaListExpression( node, /*discarded*/ true ); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression( node, /*discarded*/ - true, - /*referencedName*/ - void 0 + true ); default: return visitor(node); @@ -93962,6 +94948,7 @@ ${lanes.join("\n")} ); } function createClassInfo(node) { + const metadataReference = factory2.createUniqueName("_metadata", 16 /* Optimistic */ | 32 /* FileLevel */); let instanceExtraInitializersName; let staticExtraInitializersName; let hasStaticInitializers = false; @@ -93975,13 +94962,15 @@ ${lanes.join("\n")} node )) { if (hasStaticModifier(member)) { - staticExtraInitializersName ?? (staticExtraInitializersName = factory2.createUniqueName("_staticExtraInitializers", 16 /* Optimistic */)); + staticExtraInitializersName ?? (staticExtraInitializersName = factory2.createUniqueName("_staticExtraInitializers", 16 /* Optimistic */ | 32 /* FileLevel */)); } else { - instanceExtraInitializersName ?? (instanceExtraInitializersName = factory2.createUniqueName("_instanceExtraInitializers", 16 /* Optimistic */)); + instanceExtraInitializersName ?? (instanceExtraInitializersName = factory2.createUniqueName("_instanceExtraInitializers", 16 /* Optimistic */ | 32 /* FileLevel */)); } } if (isClassStaticBlockDeclaration(member)) { - hasStaticInitializers = true; + if (!isClassNamedEvaluationHelperBlock(member)) { + hasStaticInitializers = true; + } } else if (isPropertyDeclaration(member)) { if (hasStaticModifier(member)) { hasStaticInitializers || (hasStaticInitializers = !!member.initializer || hasDecorators(member)); @@ -93998,6 +94987,7 @@ ${lanes.join("\n")} } return { class: node, + metadataReference, instanceExtraInitializersName, staticExtraInitializersName, hasStaticInitializers, @@ -94005,19 +94995,15 @@ ${lanes.join("\n")} hasStaticPrivateClassElements }; } - function containsLexicalSuperInStaticInitializer(node) { - for (const member of node.members) { - if (isClassStaticBlockDeclaration(member) || isPropertyDeclaration(member) && hasStaticModifier(member)) { - if (member.transformFlags & 134217728 /* ContainsLexicalSuper */) { - return true; - } - } - } - return false; - } - function transformClassLike(node, className) { - var _a; + function transformClassLike(node) { startLexicalEnvironment(); + if (!classHasDeclaredOrExplicitlyAssignedName(node) && classOrConstructorParameterIsDecorated( + /*useLegacyDecorators*/ + false, + node + )) { + node = injectClassNamedEvaluationHelperBlockIfMissing(context, node, factory2.createStringLiteral("")); + } const classReference = factory2.getLocalName( node, /*allowComments*/ @@ -94036,10 +95022,11 @@ ${lanes.join("\n")} let shouldTransformPrivateStaticElementsInClass = false; const classDecorators = transformAllDecoratorsOfDeclaration(getAllDecoratorsOfClass(node)); if (classDecorators) { - classInfo2.classDecoratorsName = factory2.createUniqueName("_classDecorators", 16 /* Optimistic */); - classInfo2.classDescriptorName = factory2.createUniqueName("_classDescriptor", 16 /* Optimistic */); - classInfo2.classExtraInitializersName = factory2.createUniqueName("_classExtraInitializers", 16 /* Optimistic */); - classInfo2.classThis = factory2.createUniqueName("_classThis", 16 /* Optimistic */); + classInfo2.classDecoratorsName = factory2.createUniqueName("_classDecorators", 16 /* Optimistic */ | 32 /* FileLevel */); + classInfo2.classDescriptorName = factory2.createUniqueName("_classDescriptor", 16 /* Optimistic */ | 32 /* FileLevel */); + classInfo2.classExtraInitializersName = factory2.createUniqueName("_classExtraInitializers", 16 /* Optimistic */ | 32 /* FileLevel */); + const needsUniqueClassThis = some(node.members, (member) => (isPrivateIdentifierClassElementDeclaration(member) || isAutoAccessorPropertyDeclaration(member)) && hasStaticModifier(member)); + classInfo2.classThis = factory2.createUniqueName("_classThis", needsUniqueClassThis ? 16 /* Optimistic */ | 8 /* ReservedInNestedScopes */ : 16 /* Optimistic */ | 32 /* FileLevel */); classDefinitionStatements.push( createLet(classInfo2.classDecoratorsName, factory2.createArrayLiteralExpression(classDecorators)), createLet(classInfo2.classDescriptorName), @@ -94051,34 +95038,26 @@ ${lanes.join("\n")} shouldTransformPrivateStaticElementsInFile = true; } } - if (classDecorators && containsLexicalSuperInStaticInitializer(node)) { - const extendsClause = getHeritageClause(node.heritageClauses, 96 /* ExtendsKeyword */); - const extendsElement = extendsClause && firstOrUndefined(extendsClause.types); - const extendsExpression = extendsElement && visitNode(extendsElement.expression, visitor, isExpression); - if (extendsExpression) { - classInfo2.classSuper = factory2.createUniqueName("_classSuper", 16 /* Optimistic */); - const unwrapped = skipOuterExpressions(extendsExpression); - const safeExtendsExpression = isClassExpression(unwrapped) && !unwrapped.name || isFunctionExpression(unwrapped) && !unwrapped.name || isArrowFunction(unwrapped) ? factory2.createComma(factory2.createNumericLiteral(0), extendsExpression) : extendsExpression; - classDefinitionStatements.push(createLet(classInfo2.classSuper, safeExtendsExpression)); - const updatedExtendsElement = factory2.updateExpressionWithTypeArguments( - extendsElement, - classInfo2.classSuper, - /*typeArguments*/ - void 0 - ); - const updatedExtendsClause = factory2.updateHeritageClause(extendsClause, [updatedExtendsElement]); - heritageClauses = factory2.createNodeArray([updatedExtendsClause]); - } - } else { - heritageClauses = visitNodes2(node.heritageClauses, visitor, isHeritageClause); + const extendsClause = getHeritageClause(node.heritageClauses, 96 /* ExtendsKeyword */); + const extendsElement = extendsClause && firstOrUndefined(extendsClause.types); + const extendsExpression = extendsElement && visitNode(extendsElement.expression, visitor, isExpression); + if (extendsExpression) { + classInfo2.classSuper = factory2.createUniqueName("_classSuper", 16 /* Optimistic */ | 32 /* FileLevel */); + const unwrapped = skipOuterExpressions(extendsExpression); + const safeExtendsExpression = isClassExpression(unwrapped) && !unwrapped.name || isFunctionExpression(unwrapped) && !unwrapped.name || isArrowFunction(unwrapped) ? factory2.createComma(factory2.createNumericLiteral(0), extendsExpression) : extendsExpression; + classDefinitionStatements.push(createLet(classInfo2.classSuper, safeExtendsExpression)); + const updatedExtendsElement = factory2.updateExpressionWithTypeArguments( + extendsElement, + classInfo2.classSuper, + /*typeArguments*/ + void 0 + ); + const updatedExtendsClause = factory2.updateHeritageClause(extendsClause, [updatedExtendsElement]); + heritageClauses = factory2.createNodeArray([updatedExtendsClause]); } const renamedClassThis = classInfo2.classThis ?? factory2.createThis(); - const needsSetNameHelper = !((_a = getOriginalNode(node, isClassLike)) == null ? void 0 : _a.name) && (classDecorators || !isStringLiteral(className) || !isEmptyStringLiteral(className)); - if (needsSetNameHelper) { - const setNameExpr = emitHelpers().createSetFunctionNameHelper(factory2.createThis(), className); - leadingBlockStatements = append(leadingBlockStatements, factory2.createExpressionStatement(setNameExpr)); - } enterClass(classInfo2); + leadingBlockStatements = append(leadingBlockStatements, createMetadata(classInfo2.metadataReference, classInfo2.classSuper)); let members = visitNodes2(node.members, classElementVisitor, isClassElement); if (pendingExpressions) { let outerThis; @@ -94176,15 +95155,15 @@ ${lanes.join("\n")} leadingBlockStatements = addRange(leadingBlockStatements, classInfo2.nonStaticFieldDecorationStatements); if (classInfo2.classDescriptorName && classInfo2.classDecoratorsName && classInfo2.classExtraInitializersName && classInfo2.classThis) { leadingBlockStatements ?? (leadingBlockStatements = []); - const valueProperty = factory2.createPropertyAssignment("value", factory2.createThis()); + const valueProperty = factory2.createPropertyAssignment("value", renamedClassThis); const classDescriptor = factory2.createObjectLiteralExpression([valueProperty]); const classDescriptorAssignment = factory2.createAssignment(classInfo2.classDescriptorName, classDescriptor); - const classNameReference = factory2.createPropertyAccessExpression(factory2.createThis(), "name"); + const classNameReference = factory2.createPropertyAccessExpression(renamedClassThis, "name"); const esDecorateHelper2 = emitHelpers().createESDecorateHelper( factory2.createNull(), classDescriptorAssignment, classInfo2.classDecoratorsName, - { kind: "class", name: classNameReference }, + { kind: "class", name: classNameReference, metadata: classInfo2.metadataReference }, factory2.createNull(), classInfo2.classExtraInitializersName ); @@ -94196,6 +95175,7 @@ ${lanes.join("\n")} const classReferenceAssignment = factory2.createAssignment(classReference, classThisAssignment); leadingBlockStatements.push(factory2.createExpressionStatement(classReferenceAssignment)); } + leadingBlockStatements.push(createSymbolMetadata(renamedClassThis, classInfo2.metadataReference)); if (classInfo2.staticExtraInitializersName) { const runStaticInitializersHelper = emitHelpers().createRunInitializersHelper(renamedClassThis, classInfo2.staticExtraInitializersName); const runStaticInitializersStatement = factory2.createExpressionStatement(runStaticInitializersHelper); @@ -94212,32 +95192,35 @@ ${lanes.join("\n")} addRange(leadingBlockStatements, trailingBlockStatements); trailingBlockStatements = void 0; } - let newMembers = members; - if (leadingBlockStatements) { - const leadingStaticBlockBody = factory2.createBlock( - leadingBlockStatements, - /*multiLine*/ - true - ); - const leadingStaticBlock = factory2.createClassStaticBlockDeclaration(leadingStaticBlockBody); - if (shouldTransformPrivateStaticElementsInClass) { - setInternalEmitFlags(leadingStaticBlock, 32 /* TransformPrivateStaticElements */); - } - newMembers = [leadingStaticBlock, ...newMembers]; - } - if (syntheticConstructor) { - newMembers = [...newMembers, syntheticConstructor]; - } - if (trailingBlockStatements) { - const trailingStaticBlockBody = factory2.createBlock( - trailingBlockStatements, - /*multiLine*/ - true - ); - const trailingStaticBlock = factory2.createClassStaticBlockDeclaration(trailingStaticBlockBody); - newMembers = [...newMembers, trailingStaticBlock]; + const leadingStaticBlock = leadingBlockStatements && factory2.createClassStaticBlockDeclaration(factory2.createBlock( + leadingBlockStatements, + /*multiLine*/ + true + )); + if (leadingStaticBlock && shouldTransformPrivateStaticElementsInClass) { + setInternalEmitFlags(leadingStaticBlock, 32 /* TransformPrivateStaticElements */); } - if (newMembers !== members) { + const trailingStaticBlock = trailingBlockStatements && factory2.createClassStaticBlockDeclaration(factory2.createBlock( + trailingBlockStatements, + /*multiLine*/ + true + )); + if (leadingStaticBlock || syntheticConstructor || trailingStaticBlock) { + const newMembers = []; + const existingNamedEvaluationHelperBlockIndex = members.findIndex(isClassNamedEvaluationHelperBlock); + if (leadingStaticBlock) { + addRange(newMembers, members, 0, existingNamedEvaluationHelperBlockIndex + 1); + newMembers.push(leadingStaticBlock); + addRange(newMembers, members, existingNamedEvaluationHelperBlockIndex + 1); + } else { + addRange(newMembers, members); + } + if (syntheticConstructor) { + newMembers.push(syntheticConstructor); + } + if (trailingStaticBlock) { + newMembers.push(trailingStaticBlock); + } members = setTextRange(factory2.createNodeArray(newMembers), members); } const lexicalEnvironment = endLexicalEnvironment(); @@ -94253,6 +95236,9 @@ ${lanes.join("\n")} heritageClauses, members ); + if (classInfo2.classThis) { + classExpression = injectClassThisAssignmentIfMissing(factory2, classExpression, classInfo2.classThis); + } const classReferenceDeclaration = factory2.createVariableDeclaration( classReference, /*exclamationToken*/ @@ -94292,7 +95278,6 @@ ${lanes.join("\n")} } } setOriginalNode(classExpression, node); - getOrCreateEmitNode(classExpression).classThis = classInfo2.classThis; return factory2.createImmediatelyInvokedArrowFunction(factory2.mergeLexicalEnvironment(classDefinitionStatements, lexicalEnvironment)); } function isDecoratedClassLike(node) { @@ -94308,26 +95293,51 @@ ${lanes.join("\n")} } function visitClassDeclaration(node) { if (isDecoratedClassLike(node)) { - if (hasSyntacticModifier(node, 1 /* Export */) && hasSyntacticModifier(node, 1024 /* Default */)) { - const originalClass = getOriginalNode(node, isClassLike) ?? node; - const className = originalClass.name ? factory2.createStringLiteralFromNode(originalClass.name) : factory2.createStringLiteral("default"); - const iife = transformClassLike(node, className); - const statement = factory2.createExportDefault(iife); - setOriginalNode(statement, node); - setCommentRange(statement, getCommentRange(node)); - setSourceMapRange(statement, moveRangePastDecorators(node)); - return statement; + const statements = []; + const originalClass = getOriginalNode(node, isClassLike) ?? node; + const className = originalClass.name ? factory2.createStringLiteralFromNode(originalClass.name) : factory2.createStringLiteral("default"); + const isExport = hasSyntacticModifier(node, 1 /* Export */); + const isDefault = hasSyntacticModifier(node, 1024 /* Default */); + if (!node.name) { + node = injectClassNamedEvaluationHelperBlockIfMissing(context, node, className); + } + if (isExport && isDefault) { + const iife = transformClassLike(node); + if (node.name) { + const varDecl = factory2.createVariableDeclaration( + factory2.getLocalName(node), + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + iife + ); + setOriginalNode(varDecl, node); + const varDecls = factory2.createVariableDeclarationList([varDecl], 1 /* Let */); + const varStatement = factory2.createVariableStatement( + /*modifiers*/ + void 0, + varDecls + ); + statements.push(varStatement); + const exportStatement = factory2.createExportDefault(factory2.getDeclarationName(node)); + setOriginalNode(exportStatement, node); + setCommentRange(exportStatement, getCommentRange(node)); + setSourceMapRange(exportStatement, moveRangePastDecorators(node)); + statements.push(exportStatement); + } else { + const exportStatement = factory2.createExportDefault(iife); + setOriginalNode(exportStatement, node); + setCommentRange(exportStatement, getCommentRange(node)); + setSourceMapRange(exportStatement, moveRangePastDecorators(node)); + statements.push(exportStatement); + } } else { Debug.assertIsDefined(node.name, "A class declaration that is not a default export must have a name."); - const iife = transformClassLike(node, factory2.createStringLiteralFromNode(node.name)); - const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); - const declName = languageVersion <= 2 /* ES2015 */ ? factory2.getInternalName( - node, - /*allowComments*/ - false, - /*allowSourceMaps*/ - true - ) : factory2.getLocalName( + const iife = transformClassLike(node); + const modifierVisitorNoExport = isExport ? (node2) => isExportModifier(node2) ? void 0 : modifierVisitor(node2) : modifierVisitor; + const modifiers = visitNodes2(node.modifiers, modifierVisitorNoExport, isModifier); + const declName = factory2.getLocalName( node, /*allowComments*/ false, @@ -94344,11 +95354,17 @@ ${lanes.join("\n")} ); setOriginalNode(varDecl, node); const varDecls = factory2.createVariableDeclarationList([varDecl], 1 /* Let */); - const statement = factory2.createVariableStatement(modifiers, varDecls); - setOriginalNode(statement, node); - setCommentRange(statement, getCommentRange(node)); - return statement; + const varStatement = factory2.createVariableStatement(modifiers, varDecls); + setOriginalNode(varStatement, node); + setCommentRange(varStatement, getCommentRange(node)); + statements.push(varStatement); + if (isExport) { + const exportStatement = factory2.createExternalModuleExport(declName); + setOriginalNode(exportStatement, node); + statements.push(exportStatement); + } } + return singleOrMany(statements); } else { const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); const heritageClauses = visitNodes2(node.heritageClauses, visitor, isHeritageClause); @@ -94369,10 +95385,9 @@ ${lanes.join("\n")} ); } } - function visitClassExpression(node, referencedName) { + function visitClassExpression(node) { if (isDecoratedClassLike(node)) { - const className = node.name ? factory2.createStringLiteralFromNode(node.name) : referencedName ?? factory2.createStringLiteral(""); - const iife = transformClassLike(node, className); + const iife = transformClassLike(node); setOriginalNode(iife, node); return iife; } else { @@ -94409,6 +95424,35 @@ ${lanes.join("\n")} return statements; } } + function transformConstructorBodyWorker(statementsOut, statementsIn, statementOffset, superPath, superPathDepth, initializerStatements) { + const superStatementIndex = superPath[superPathDepth]; + const superStatement = statementsIn[superStatementIndex]; + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, statementOffset, superStatementIndex - statementOffset)); + if (isTryStatement(superStatement)) { + const tryBlockStatements = []; + transformConstructorBodyWorker( + tryBlockStatements, + superStatement.tryBlock.statements, + /*statementOffset*/ + 0, + superPath, + superPathDepth + 1, + initializerStatements + ); + const tryBlockStatementsArray = factory2.createNodeArray(tryBlockStatements); + setTextRange(tryBlockStatementsArray, superStatement.tryBlock.statements); + statementsOut.push(factory2.updateTryStatement( + superStatement, + factory2.updateBlock(superStatement.tryBlock, tryBlockStatements), + visitNode(superStatement.catchClause, visitor, isCatchClause), + visitNode(superStatement.finallyBlock, visitor, isBlock) + )); + } else { + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex, 1)); + addRange(statementsOut, initializerStatements); + } + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex + 1)); + } function visitConstructorDeclaration(node) { enterClassElement(node); const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); @@ -94425,11 +95469,9 @@ ${lanes.join("\n")} false, visitor ); - const superStatementIndex = findSuperStatementIndex(node.body.statements, nonPrologueStart); - if (superStatementIndex >= 0) { - addRange(statements, visitNodes2(node.body.statements, visitor, isStatement, nonPrologueStart, superStatementIndex + 1 - nonPrologueStart)); - addRange(statements, initializerStatements); - addRange(statements, visitNodes2(node.body.statements, visitor, isStatement, superStatementIndex + 1)); + const superStatementIndices = findSuperStatementIndexPath(node.body.statements, nonPrologueStart); + if (superStatementIndices.length > 0) { + transformConstructorBodyWorker(statements, node.body.statements, nonPrologueStart, superStatementIndices, 0, initializerStatements); } else { addRange(statements, initializerStatements); addRange(statements, visitNodes2(node.body.statements, visitor, isStatement)); @@ -94454,7 +95496,7 @@ ${lanes.join("\n")} } return updated; } - function partialTransformClassElement(member, useNamedEvaluation, classInfo2, createDescriptor) { + function partialTransformClassElement(member, classInfo2, createDescriptor) { let referencedName; let name; let initializersName; @@ -94463,11 +95505,7 @@ ${lanes.join("\n")} if (!classInfo2) { const modifiers2 = visitNodes2(member.modifiers, modifierVisitor, isModifier); enterName(); - if (useNamedEvaluation) { - ({ referencedName, name } = visitReferencedPropertyName(member.name)); - } else { - name = visitPropertyName(member.name); - } + name = visitPropertyName(member.name); exitName(); return { modifiers: modifiers2, referencedName, name, initializersName, descriptorName, thisArg }; } @@ -94516,9 +95554,10 @@ ${lanes.join("\n")} get: isPropertyDeclaration(member) || isGetAccessorDeclaration(member) || isMethodDeclaration(member), // 3. If _kind_ is ~field~, ~accessor~, or ~setter~, then ... set: isPropertyDeclaration(member) || isSetAccessorDeclaration(member) - } + }, + metadata: classInfo2.metadataReference }; - const extraInitializers = isStatic(member) ? classInfo2.staticExtraInitializersName ?? (classInfo2.staticExtraInitializersName = factory2.createUniqueName("_staticExtraInitializers", 16 /* Optimistic */)) : classInfo2.instanceExtraInitializersName ?? (classInfo2.instanceExtraInitializersName = factory2.createUniqueName("_instanceExtraInitializers", 16 /* Optimistic */)); + const extraInitializers = isStatic(member) ? classInfo2.staticExtraInitializersName ?? (classInfo2.staticExtraInitializersName = factory2.createUniqueName("_staticExtraInitializers", 16 /* Optimistic */ | 32 /* FileLevel */)) : classInfo2.instanceExtraInitializersName ?? (classInfo2.instanceExtraInitializersName = factory2.createUniqueName("_instanceExtraInitializers", 16 /* Optimistic */ | 32 /* FileLevel */)); if (isMethodOrAccessor(member)) { let descriptor; if (isPrivateIdentifierClassElementDeclaration(member) && createDescriptor) { @@ -94560,11 +95599,7 @@ ${lanes.join("\n")} } if (name === void 0) { enterName(); - if (useNamedEvaluation) { - ({ referencedName, name } = visitReferencedPropertyName(member.name)); - } else { - name = visitPropertyName(member.name); - } + name = visitPropertyName(member.name); exitName(); } if (!some(modifiers) && (isMethodDeclaration(member) || isPropertyDeclaration(member))) { @@ -94574,13 +95609,7 @@ ${lanes.join("\n")} } function visitMethodDeclaration(node) { enterClassElement(node); - const { modifiers, name, descriptorName } = partialTransformClassElement( - node, - /*useNamedEvaluation*/ - false, - classInfo, - createMethodDescriptorObject - ); + const { modifiers, name, descriptorName } = partialTransformClassElement(node, classInfo, createMethodDescriptorObject); if (descriptorName) { exitClassElement(); return finishClassElement(createMethodDescriptorForwarder(modifiers, name, descriptorName), node); @@ -94606,13 +95635,7 @@ ${lanes.join("\n")} } function visitGetAccessorDeclaration(node) { enterClassElement(node); - const { modifiers, name, descriptorName } = partialTransformClassElement( - node, - /*useNamedEvaluation*/ - false, - classInfo, - createGetAccessorDescriptorObject - ); + const { modifiers, name, descriptorName } = partialTransformClassElement(node, classInfo, createGetAccessorDescriptorObject); if (descriptorName) { exitClassElement(); return finishClassElement(createGetAccessorDescriptorForwarder(modifiers, name, descriptorName), node); @@ -94633,13 +95656,7 @@ ${lanes.join("\n")} } function visitSetAccessorDeclaration(node) { enterClassElement(node); - const { modifiers, name, descriptorName } = partialTransformClassElement( - node, - /*useNamedEvaluation*/ - false, - classInfo, - createSetAccessorDescriptorObject - ); + const { modifiers, name, descriptorName } = partialTransformClassElement(node, classInfo, createSetAccessorDescriptorObject); if (descriptorName) { exitClassElement(); return finishClassElement(createSetAccessorDescriptorForwarder(modifiers, name, descriptorName), node); @@ -94652,19 +95669,31 @@ ${lanes.join("\n")} } function visitClassStaticBlockDeclaration(node) { enterClassElement(node); - if (classInfo) - classInfo.hasStaticInitializers = true; - const result = visitEachChild(node, visitor, context); + let result; + if (isClassNamedEvaluationHelperBlock(node)) { + result = visitEachChild(node, visitor, context); + } else if (isClassThisAssignmentBlock(node)) { + const savedClassThis = classThis; + classThis = void 0; + result = visitEachChild(node, visitor, context); + classThis = savedClassThis; + } else { + if (classInfo) + classInfo.hasStaticInitializers = true; + result = visitEachChild(node, visitor, context); + } exitClassElement(); return result; } function visitPropertyDeclaration(node) { + if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.initializer)); + } enterClassElement(node); Debug.assert(!isAmbientPropertyDeclaration(node), "Not yet implemented."); - const useNamedEvaluation = isNamedEvaluation(node, isAnonymousClassNeedingAssignedName); - const { modifiers, name, referencedName, initializersName, descriptorName, thisArg } = partialTransformClassElement(node, useNamedEvaluation, classInfo, hasAccessorModifier(node) ? createAccessorPropertyDescriptorObject : void 0); + const { modifiers, name, initializersName, descriptorName, thisArg } = partialTransformClassElement(node, classInfo, hasAccessorModifier(node) ? createAccessorPropertyDescriptorObject : void 0); startLexicalEnvironment(); - let initializer = referencedName ? visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, referencedName), isExpression) : visitNode(node.initializer, visitor, isExpression); + let initializer = visitNode(node.initializer, visitor, isExpression); if (initializersName) { initializer = emitHelpers().createRunInitializersHelper( thisArg ?? factory2.createThis(), @@ -94794,38 +95823,21 @@ ${lanes.join("\n")} return visitEachChild(node, visitor, context); } function visitParameterDeclaration(node) { - let updated; if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.name, node.initializer); - const name = visitNode(node.name, visitor, isBindingName); - const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - updated = factory2.updateParameterDeclaration( - node, - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - name, - /*questionToken*/ - void 0, - /*type*/ - void 0, - initializer - ); - } else { - updated = factory2.updateParameterDeclaration( - node, - /*modifiers*/ - void 0, - node.dotDotDotToken, - visitNode(node.name, visitor, isBindingName), - /*questionToken*/ - void 0, - /*type*/ - void 0, - visitNode(node.initializer, visitor, isExpression) - ); + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.initializer)); } + const updated = factory2.updateParameterDeclaration( + node, + /*modifiers*/ + void 0, + node.dotDotDotToken, + visitNode(node.name, visitor, isBindingName), + /*questionToken*/ + void 0, + /*type*/ + void 0, + visitNode(node.initializer, visitor, isExpression) + ); if (updated !== node) { setCommentRange(updated, node); setTextRange(updated, moveRangePastModifiers(node)); @@ -94837,6 +95849,14 @@ ${lanes.join("\n")} function isAnonymousClassNeedingAssignedName(node) { return isClassExpression(node) && !node.name && isDecoratedClassLike(node); } + function canIgnoreEmptyStringLiteralInAssignedName(node) { + const innerExpression = skipOuterExpressions(node); + return isClassExpression(innerExpression) && !innerExpression.name && !classOrConstructorParameterIsDecorated( + /*useLegacyDecorators*/ + false, + innerExpression + ); + } function visitForStatement(node) { return factory2.updateForStatement( node, @@ -94857,10 +95877,8 @@ ${lanes.join("\n")} } if (isAssignmentExpression(node)) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.left, node.right); - const left = visitNode(node.left, visitor, isExpression); - const right = visitNode(node.right, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateBinaryExpression(node, left, node.operatorToken, right); + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.right)); + return visitEachChild(node, visitor, context); } if (isSuperProperty(node.left) && classThis && classSuper) { let setterName = isElementAccessExpression(node.left) ? visitNode(node.left.argumentExpression, visitor, isExpression) : isIdentifier(node.left.name) ? factory2.createStringLiteralFromNode(node.left.name) : void 0; @@ -94980,43 +95998,19 @@ ${lanes.join("\n")} } function visitPropertyAssignment(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const { referencedName, name } = visitReferencedPropertyName(node.name); - const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, referencedName), isExpression); - return factory2.updatePropertyAssignment(node, name, initializer); + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.initializer)); } return visitEachChild(node, visitor, context); } function visitVariableDeclaration(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.name, node.initializer); - const name = visitNode(node.name, visitor, isBindingName); - const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateVariableDeclaration( - node, - name, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - initializer - ); + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.initializer)); } return visitEachChild(node, visitor, context); } function visitBindingElement(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.name, node.initializer); - const propertyName = visitNode(node.propertyName, visitor, isPropertyName); - const name = visitNode(node.name, visitor, isBindingName); - const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateBindingElement( - node, - /*dotDotDotToken*/ - void 0, - propertyName, - name, - initializer - ); + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.initializer)); } return visitEachChild(node, visitor, context); } @@ -95053,14 +96047,11 @@ ${lanes.join("\n")} /*excludeCompoundAssignment*/ true )) { - const assignmentTarget = visitDestructuringAssignmentTarget(node.left); - let initializer; if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.left, node.right); - initializer = visitNode(node.right, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - } else { - initializer = visitNode(node.right, visitor, isExpression); + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.right)); } + const assignmentTarget = visitDestructuringAssignmentTarget(node.left); + const initializer = visitNode(node.right, visitor, isExpression); return factory2.updateBinaryExpression(node, assignmentTarget, node.operatorToken, initializer); } else { return visitDestructuringAssignmentTarget(node); @@ -95099,10 +96090,7 @@ ${lanes.join("\n")} } function visitShorthandAssignmentProperty(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const assignedName = getAssignedNameOfIdentifier(node.name, node.objectAssignmentInitializer); - const name = visitNode(node.name, visitor, isIdentifier); - const objectAssignmentInitializer = visitNode(node.objectAssignmentInitializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression); - return factory2.updateShorthandPropertyAssignment(node, name, objectAssignmentInitializer); + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.objectAssignmentInitializer)); } return visitEachChild(node, visitor, context); } @@ -95134,20 +96122,17 @@ ${lanes.join("\n")} } function visitExportAssignment(node) { if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - const referencedName = factory2.createStringLiteral(node.isExportEquals ? "" : "default"); - const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); - const expression = visitNode(node.expression, (node2) => namedEvaluationVisitor(node2, referencedName), isExpression); - return factory2.updateExportAssignment(node, modifiers, expression); + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.expression)); } return visitEachChild(node, visitor, context); } - function visitParenthesizedExpression(node, discarded, referencedName) { - const visitorFunc = discarded ? discardedValueVisitor : referencedName ? (node2) => namedEvaluationVisitor(node2, referencedName) : visitor; + function visitParenthesizedExpression(node, discarded) { + const visitorFunc = discarded ? discardedValueVisitor : visitor; const expression = visitNode(node.expression, visitorFunc, isExpression); return factory2.updateParenthesizedExpression(node, expression); } - function visitPartiallyEmittedExpression(node, discarded, referencedName) { - const visitorFunc = discarded ? discardedValueVisitor : referencedName ? (node2) => namedEvaluationVisitor(node2, referencedName) : visitor; + function visitPartiallyEmittedExpression(node, discarded) { + const visitorFunc = discarded ? discardedValueVisitor : visitor; const expression = visitNode(node.expression, visitorFunc, isExpression); return factory2.updatePartiallyEmittedExpression(node, expression); } @@ -95175,6 +96160,17 @@ ${lanes.join("\n")} function transformDecorator(decorator) { const expression = visitNode(decorator.expression, visitor, isExpression); setEmitFlags(expression, 3072 /* NoComments */); + const innerExpression = skipOuterExpressions(expression); + if (isAccessExpression(innerExpression)) { + const { target, thisArg } = factory2.createCallBinding( + expression, + hoistVariableDeclaration, + languageVersion, + /*cacheIdentifiers*/ + true + ); + return factory2.restoreOuterExpressions(expression, factory2.createFunctionBindCall(target, thisArg, [])); + } return expression; } function createDescriptorMethod(original, name, modifiers, asteriskToken, kind, parameters, body) { @@ -95360,9 +96356,59 @@ ${lanes.join("\n")} ]) ); } - function getAssignedNameOfIdentifier(name, initializer) { - const originalClass = getOriginalNode(initializer, isClassLike); - return originalClass && !originalClass.name && hasSyntacticModifier(originalClass, 1024 /* Default */) ? factory2.createStringLiteral("default") : factory2.createStringLiteralFromNode(name); + function createMetadata(name, classSuper2) { + const varDecl = factory2.createVariableDeclaration( + name, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + factory2.createConditionalExpression( + factory2.createLogicalAnd( + factory2.createTypeCheck(factory2.createIdentifier("Symbol"), "function"), + factory2.createPropertyAccessExpression(factory2.createIdentifier("Symbol"), "metadata") + ), + factory2.createToken(58 /* QuestionToken */), + factory2.createCallExpression( + factory2.createPropertyAccessExpression(factory2.createIdentifier("Object"), "create"), + /*typeArguments*/ + void 0, + [classSuper2 ? createSymbolMetadataReference(classSuper2) : factory2.createNull()] + ), + factory2.createToken(59 /* ColonToken */), + factory2.createVoidZero() + ) + ); + return factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList([varDecl], 2 /* Const */) + ); + } + function createSymbolMetadata(target, value) { + const defineProperty = factory2.createObjectDefinePropertyCall( + target, + factory2.createPropertyAccessExpression(factory2.createIdentifier("Symbol"), "metadata"), + factory2.createPropertyDescriptor( + { configurable: true, writable: true, enumerable: true, value }, + /*singleLine*/ + true + ) + ); + return setEmitFlags( + factory2.createIfStatement(value, factory2.createExpressionStatement(defineProperty)), + 1 /* SingleLine */ + ); + } + function createSymbolMetadataReference(classSuper2) { + return factory2.createBinaryExpression( + factory2.createElementAccessExpression( + classSuper2, + factory2.createPropertyAccessExpression(factory2.createIdentifier("Symbol"), "metadata") + ), + 61 /* QuestionQuestionToken */, + factory2.createNull() + ); } } var init_esDecorators = __esm({ @@ -95446,34 +96492,34 @@ ${lanes.join("\n")} switch (node.kind) { case 134 /* AsyncKeyword */: return void 0; - case 222 /* AwaitExpression */: + case 223 /* AwaitExpression */: return visitAwaitExpression(node); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitMethodDeclaration, node); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitFunctionDeclaration, node); - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitFunctionExpression, node); - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return doWithContext(1 /* NonTopLevel */, visitArrowFunction, node); - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: if (capturedSuperProperties && isPropertyAccessExpression(node) && node.expression.kind === 108 /* SuperKeyword */) { capturedSuperProperties.add(node.name.escapedText); } return visitEachChild(node, visitor, context); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: if (capturedSuperProperties && node.expression.kind === 108 /* SuperKeyword */) { hasSuperElementAccess = true; } return visitEachChild(node, visitor, context); - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitGetAccessorDeclaration, node); - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitSetAccessorDeclaration, node); - case 175 /* Constructor */: + case 176 /* Constructor */: return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitConstructorDeclaration, node); - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitDefault, node); default: return visitEachChild(node, visitor, context); @@ -95482,27 +96528,27 @@ ${lanes.join("\n")} function asyncBodyVisitor(node) { if (isNodeWithPossibleHoistedDeclaration(node)) { switch (node.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return visitVariableStatementInAsyncBody(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatementInAsyncBody(node); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return visitForInStatementInAsyncBody(node); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return visitForOfStatementInAsyncBody(node); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return visitCatchClauseInAsyncBody(node); - case 240 /* Block */: - case 254 /* SwitchStatement */: - case 268 /* CaseBlock */: - case 295 /* CaseClause */: - case 296 /* DefaultClause */: - case 257 /* TryStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: - case 244 /* IfStatement */: - case 253 /* WithStatement */: - case 255 /* LabeledStatement */: + case 241 /* Block */: + case 255 /* SwitchStatement */: + case 269 /* CaseBlock */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: + case 258 /* TryStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 245 /* IfStatement */: + case 254 /* WithStatement */: + case 256 /* LabeledStatement */: return visitEachChild(node, asyncBodyVisitor, context); default: return Debug.assertNever(node, "Unhandled node."); @@ -95695,7 +96741,7 @@ ${lanes.join("\n")} } } function isVariableDeclarationListWithCollidingName(node) { - return !!node && isVariableDeclarationList(node) && !(node.flags & 3 /* BlockScoped */) && node.declarations.some(collidesWithParameterName); + return !!node && isVariableDeclarationList(node) && !(node.flags & 7 /* BlockScoped */) && node.declarations.some(collidesWithParameterName); } function visitVariableDeclarationListWithCollidingNames(node, hasReceiver) { hoistVariableDeclarationList(node); @@ -95779,7 +96825,7 @@ ${lanes.join("\n")} const original = getOriginalNode(node, isFunctionLike); const nodeType = original.type; const promiseConstructor = languageVersion < 2 /* ES2015 */ ? getPromiseConstructor(nodeType) : void 0; - const isArrowFunction2 = node.kind === 218 /* ArrowFunction */; + const isArrowFunction2 = node.kind === 219 /* ArrowFunction */; const hasLexicalArguments = (resolver.getNodeCheckFlags(node) & 512 /* CaptureArguments */) !== 0; const savedEnclosingFunctionParameterNames = enclosingFunctionParameterNames; enclosingFunctionParameterNames = /* @__PURE__ */ new Set(); @@ -95878,15 +96924,15 @@ ${lanes.join("\n")} function enableSubstitutionForAsyncMethodsWithSuper() { if ((enabledSubstitutions & 1 /* AsyncMethodsWithSuper */) === 0) { enabledSubstitutions |= 1 /* AsyncMethodsWithSuper */; - context.enableSubstitution(212 /* CallExpression */); - context.enableSubstitution(210 /* PropertyAccessExpression */); - context.enableSubstitution(211 /* ElementAccessExpression */); - context.enableEmitNotification(262 /* ClassDeclaration */); - context.enableEmitNotification(173 /* MethodDeclaration */); - context.enableEmitNotification(176 /* GetAccessor */); - context.enableEmitNotification(177 /* SetAccessor */); - context.enableEmitNotification(175 /* Constructor */); - context.enableEmitNotification(242 /* VariableStatement */); + context.enableSubstitution(213 /* CallExpression */); + context.enableSubstitution(211 /* PropertyAccessExpression */); + context.enableSubstitution(212 /* ElementAccessExpression */); + context.enableEmitNotification(263 /* ClassDeclaration */); + context.enableEmitNotification(174 /* MethodDeclaration */); + context.enableEmitNotification(177 /* GetAccessor */); + context.enableEmitNotification(178 /* SetAccessor */); + context.enableEmitNotification(176 /* Constructor */); + context.enableEmitNotification(243 /* VariableStatement */); } } function onEmitNode(hint, node, emitCallback) { @@ -95917,11 +96963,11 @@ ${lanes.join("\n")} } function substituteExpression(node) { switch (node.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return substitutePropertyAccessExpression(node); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return substituteElementAccessExpression(node); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return substituteCallExpression(node); } return node; @@ -95965,7 +97011,7 @@ ${lanes.join("\n")} } function isSuperContainer(node) { const kind = node.kind; - return kind === 262 /* ClassDeclaration */ || kind === 175 /* Constructor */ || kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */; + return kind === 263 /* ClassDeclaration */ || kind === 176 /* Constructor */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; } function createSuperElementAccessInAsyncMethod(argumentExpression, location) { if (enclosingSuperContainerFlags & 256 /* MethodWithSuperPropertyAssignmentInAsync */) { @@ -96211,119 +97257,119 @@ ${lanes.join("\n")} return node; } switch (node.kind) { - case 222 /* AwaitExpression */: + case 223 /* AwaitExpression */: return visitAwaitExpression(node); - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: return visitYieldExpression(node); - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: return visitReturnStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return visitLabeledStatement(node); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return visitObjectLiteralExpression(node); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return visitBinaryExpression(node, expressionResultIsUnused2); - case 360 /* CommaListExpression */: + case 361 /* CommaListExpression */: return visitCommaListExpression(node, expressionResultIsUnused2); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return visitCatchClause(node); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return visitVariableStatement(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return visitVariableDeclaration(node); - case 245 /* DoStatement */: - case 246 /* WhileStatement */: - case 248 /* ForInStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 249 /* ForInStatement */: return doWithHierarchyFacts( visitDefault, node, 0 /* IterationStatementExcludes */, 2 /* IterationStatementIncludes */ ); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return visitForOfStatement( node, /*outermostLabeledStatement*/ void 0 ); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return doWithHierarchyFacts( visitForStatement, node, 0 /* IterationStatementExcludes */, 2 /* IterationStatementIncludes */ ); - case 221 /* VoidExpression */: + case 222 /* VoidExpression */: return visitVoidExpression(node); - case 175 /* Constructor */: + case 176 /* Constructor */: return doWithHierarchyFacts( visitConstructorDeclaration, node, 2 /* ClassOrFunctionExcludes */, 1 /* ClassOrFunctionIncludes */ ); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return doWithHierarchyFacts( visitMethodDeclaration, node, 2 /* ClassOrFunctionExcludes */, 1 /* ClassOrFunctionIncludes */ ); - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return doWithHierarchyFacts( visitGetAccessorDeclaration, node, 2 /* ClassOrFunctionExcludes */, 1 /* ClassOrFunctionIncludes */ ); - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return doWithHierarchyFacts( visitSetAccessorDeclaration, node, 2 /* ClassOrFunctionExcludes */, 1 /* ClassOrFunctionIncludes */ ); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return doWithHierarchyFacts( visitFunctionDeclaration, node, 2 /* ClassOrFunctionExcludes */, 1 /* ClassOrFunctionIncludes */ ); - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: return doWithHierarchyFacts( visitFunctionExpression, node, 2 /* ClassOrFunctionExcludes */, 1 /* ClassOrFunctionIncludes */ ); - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return doWithHierarchyFacts( visitArrowFunction, node, 2 /* ArrowFunctionExcludes */, 0 /* ArrowFunctionIncludes */ ); - case 168 /* Parameter */: + case 169 /* Parameter */: return visitParameter(node); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return visitExpressionStatement(node); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression(node, expressionResultIsUnused2); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return visitTaggedTemplateExpression(node); - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: if (capturedSuperProperties && isPropertyAccessExpression(node) && node.expression.kind === 108 /* SuperKeyword */) { capturedSuperProperties.add(node.name.escapedText); } return visitEachChild(node, visitor, context); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: if (capturedSuperProperties && node.expression.kind === 108 /* SuperKeyword */) { hasSuperElementAccess = true; } return visitEachChild(node, visitor, context); - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return doWithHierarchyFacts( visitDefault, node, @@ -96408,7 +97454,7 @@ ${lanes.join("\n")} function visitLabeledStatement(node) { if (enclosingFunctionFlags & 2 /* Async */) { const statement = unwrapInnermostStatementOfLabel(node); - if (statement.kind === 249 /* ForOfStatement */ && statement.awaitModifier) { + if (statement.kind === 250 /* ForOfStatement */ && statement.awaitModifier) { return visitForOfStatement(statement, node); } return factory2.restoreEnclosingLabel(visitNode(statement, visitor, isStatement, factory2.liftToBlock), node); @@ -96419,7 +97465,7 @@ ${lanes.join("\n")} let chunkObject; const objects = []; for (const e of elements) { - if (e.kind === 304 /* SpreadAssignment */) { + if (e.kind === 305 /* SpreadAssignment */) { if (chunkObject) { objects.push(factory2.createObjectLiteralExpression(chunkObject)); chunkObject = void 0; @@ -96427,7 +97473,7 @@ ${lanes.join("\n")} const target = e.expression; objects.push(visitNode(target, visitor, isExpression)); } else { - chunkObject = append(chunkObject, e.kind === 302 /* PropertyAssignment */ ? factory2.createPropertyAssignment(e.name, visitNode(e.initializer, visitor, isExpression)) : visitNode(e, visitor, isObjectLiteralElementLike)); + chunkObject = append(chunkObject, e.kind === 303 /* PropertyAssignment */ ? factory2.createPropertyAssignment(e.name, visitNode(e.initializer, visitor, isExpression)) : visitNode(e, visitor, isObjectLiteralElementLike)); } } if (chunkObject) { @@ -96438,7 +97484,7 @@ ${lanes.join("\n")} function visitObjectLiteralExpression(node) { if (node.transformFlags & 65536 /* ContainsObjectRestOrSpread */) { const objects = chunkObjectLiteralElements(node.properties); - if (objects.length && objects[0].kind !== 209 /* ObjectLiteralExpression */) { + if (objects.length && objects[0].kind !== 210 /* ObjectLiteralExpression */) { objects.unshift(factory2.createObjectLiteralExpression()); } let expression = objects[0]; @@ -97207,15 +98253,15 @@ ${lanes.join("\n")} function enableSubstitutionForAsyncMethodsWithSuper() { if ((enabledSubstitutions & 1 /* AsyncMethodsWithSuper */) === 0) { enabledSubstitutions |= 1 /* AsyncMethodsWithSuper */; - context.enableSubstitution(212 /* CallExpression */); - context.enableSubstitution(210 /* PropertyAccessExpression */); - context.enableSubstitution(211 /* ElementAccessExpression */); - context.enableEmitNotification(262 /* ClassDeclaration */); - context.enableEmitNotification(173 /* MethodDeclaration */); - context.enableEmitNotification(176 /* GetAccessor */); - context.enableEmitNotification(177 /* SetAccessor */); - context.enableEmitNotification(175 /* Constructor */); - context.enableEmitNotification(242 /* VariableStatement */); + context.enableSubstitution(213 /* CallExpression */); + context.enableSubstitution(211 /* PropertyAccessExpression */); + context.enableSubstitution(212 /* ElementAccessExpression */); + context.enableEmitNotification(263 /* ClassDeclaration */); + context.enableEmitNotification(174 /* MethodDeclaration */); + context.enableEmitNotification(177 /* GetAccessor */); + context.enableEmitNotification(178 /* SetAccessor */); + context.enableEmitNotification(176 /* Constructor */); + context.enableEmitNotification(243 /* VariableStatement */); } } function onEmitNode(hint, node, emitCallback) { @@ -97246,11 +98292,11 @@ ${lanes.join("\n")} } function substituteExpression(node) { switch (node.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return substitutePropertyAccessExpression(node); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return substituteElementAccessExpression(node); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return substituteCallExpression(node); } return node; @@ -97294,7 +98340,7 @@ ${lanes.join("\n")} } function isSuperContainer(node) { const kind = node.kind; - return kind === 262 /* ClassDeclaration */ || kind === 175 /* Constructor */ || kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */; + return kind === 263 /* ClassDeclaration */ || kind === 176 /* Constructor */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; } function createSuperElementAccessInAsyncMethod(argumentExpression, location) { if (enclosingSuperContainerFlags & 256 /* MethodWithSuperPropertyAssignmentInAsync */) { @@ -97345,7 +98391,7 @@ ${lanes.join("\n")} return node; } switch (node.kind) { - case 298 /* CatchClause */: + case 299 /* CatchClause */: return visitCatchClause(node); default: return visitEachChild(node, visitor, context); @@ -97390,7 +98436,7 @@ ${lanes.join("\n")} return node; } switch (node.kind) { - case 212 /* CallExpression */: { + case 213 /* CallExpression */: { const updated = visitNonOptionalCallExpression( node, /*captureThisArg*/ @@ -97399,8 +98445,8 @@ ${lanes.join("\n")} Debug.assertNotNode(updated, isSyntheticReference); return updated; } - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: if (isOptionalChain(node)) { const updated = visitOptionalExpression( node, @@ -97413,12 +98459,12 @@ ${lanes.join("\n")} return updated; } return visitEachChild(node, visitor, context); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: if (node.operatorToken.kind === 61 /* QuestionQuestionToken */) { return transformNullishCoalescingExpression(node); } return visitEachChild(node, visitor, context); - case 219 /* DeleteExpression */: + case 220 /* DeleteExpression */: return visitDeleteExpression(node); default: return visitEachChild(node, visitor, context); @@ -97456,7 +98502,7 @@ ${lanes.join("\n")} thisArg = expression; } } - expression = node.kind === 210 /* PropertyAccessExpression */ ? factory2.updatePropertyAccessExpression(node, expression, visitNode(node.name, visitor, isIdentifier)) : factory2.updateElementAccessExpression(node, expression, visitNode(node.argumentExpression, visitor, isExpression)); + expression = node.kind === 211 /* PropertyAccessExpression */ ? factory2.updatePropertyAccessExpression(node, expression, visitNode(node.name, visitor, isIdentifier)) : factory2.updateElementAccessExpression(node, expression, visitNode(node.argumentExpression, visitor, isExpression)); return thisArg ? factory2.createSyntheticReferenceExpression(expression, thisArg) : expression; } function visitNonOptionalCallExpression(node, captureThisArg) { @@ -97492,12 +98538,12 @@ ${lanes.join("\n")} } function visitNonOptionalExpression(node, captureThisArg, isDelete) { switch (node.kind) { - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitNonOptionalParenthesizedExpression(node, captureThisArg, isDelete); - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return visitNonOptionalPropertyOrElementAccessExpression(node, captureThisArg, isDelete); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return visitNonOptionalCallExpression(node, captureThisArg); default: return visitNode(node, visitor, isExpression); @@ -97523,8 +98569,8 @@ ${lanes.join("\n")} for (let i = 0; i < chain.length; i++) { const segment = chain[i]; switch (segment.kind) { - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: if (i === chain.length - 1 && captureThisArg) { if (!isSimpleCopiableExpression(rightExpression)) { thisArg = factory2.createTempVariable(hoistVariableDeclaration); @@ -97533,9 +98579,9 @@ ${lanes.join("\n")} thisArg = rightExpression; } } - rightExpression = segment.kind === 210 /* PropertyAccessExpression */ ? factory2.createPropertyAccessExpression(rightExpression, visitNode(segment.name, visitor, isIdentifier)) : factory2.createElementAccessExpression(rightExpression, visitNode(segment.argumentExpression, visitor, isExpression)); + rightExpression = segment.kind === 211 /* PropertyAccessExpression */ ? factory2.createPropertyAccessExpression(rightExpression, visitNode(segment.name, visitor, isIdentifier)) : factory2.createElementAccessExpression(rightExpression, visitNode(segment.argumentExpression, visitor, isExpression)); break; - case 212 /* CallExpression */: + case 213 /* CallExpression */: if (i === 0 && leftThisArg) { if (!isGeneratedIdentifier(leftThisArg)) { leftThisArg = factory2.cloneNode(leftThisArg); @@ -97718,22 +98764,636 @@ ${lanes.join("\n")} // src/compiler/transformers/esnext.ts function transformESNext(context) { + const { + factory: factory2, + getEmitHelperFactory: emitHelpers, + hoistVariableDeclaration, + startLexicalEnvironment, + endLexicalEnvironment + } = context; + let exportBindings; + let exportVars; + let defaultExportBinding; + let exportEqualsBinding; return chainBundle(context, transformSourceFile); function transformSourceFile(node) { if (node.isDeclarationFile) { return node; } - return visitEachChild(node, visitor, context); + const visited = visitNode(node, visitor, isSourceFile); + addEmitHelpers(visited, context.readEmitHelpers()); + exportVars = void 0; + exportBindings = void 0; + defaultExportBinding = void 0; + return visited; } function visitor(node) { if ((node.transformFlags & 4 /* ContainsESNext */) === 0) { return node; } switch (node.kind) { + case 312 /* SourceFile */: + return visitSourceFile(node); + case 241 /* Block */: + return visitBlock(node); + case 248 /* ForStatement */: + return visitForStatement(node); + case 250 /* ForOfStatement */: + return visitForOfStatement(node); + case 255 /* SwitchStatement */: + return visitSwitchStatement(node); default: return visitEachChild(node, visitor, context); } } + function visitSourceFile(node) { + const usingKind = getUsingKindOfStatements(node.statements); + if (usingKind) { + startLexicalEnvironment(); + exportBindings = new IdentifierNameMap(); + exportVars = []; + const prologueCount = countPrologueStatements(node.statements); + const topLevelStatements = []; + addRange(topLevelStatements, visitArray(node.statements, visitor, isStatement, 0, prologueCount)); + let pos = prologueCount; + while (pos < node.statements.length) { + const statement = node.statements[pos]; + if (getUsingKind(statement) !== 0 /* None */) { + if (pos > prologueCount) { + addRange(topLevelStatements, visitNodes2(node.statements, visitor, isStatement, prologueCount, pos - prologueCount)); + } + break; + } + pos++; + } + Debug.assert(pos < node.statements.length, "Should have encountered at least one 'using' statement."); + const envBinding = createEnvBinding(); + const bodyStatements = transformUsingDeclarations(node.statements, pos, node.statements.length, envBinding, topLevelStatements); + if (exportBindings.size) { + append(topLevelStatements, factory2.createExportDeclaration( + /*modifiers*/ + void 0, + /*isTypeOnly*/ + false, + factory2.createNamedExports(arrayFrom(exportBindings.values())) + )); + } + addRange(topLevelStatements, endLexicalEnvironment()); + if (exportVars.length) { + topLevelStatements.push(factory2.createVariableStatement( + factory2.createModifiersFromModifierFlags(1 /* Export */), + factory2.createVariableDeclarationList( + exportVars, + 1 /* Let */ + ) + )); + } + addRange(topLevelStatements, createDownlevelUsingStatements(bodyStatements, envBinding, usingKind === 2 /* Async */)); + if (exportEqualsBinding) { + topLevelStatements.push(factory2.createExportAssignment( + /*modifiers*/ + void 0, + /*isExportEquals*/ + true, + exportEqualsBinding + )); + } + return factory2.updateSourceFile(node, topLevelStatements); + } + return visitEachChild(node, visitor, context); + } + function visitBlock(node) { + const usingKind = getUsingKindOfStatements(node.statements); + if (usingKind) { + const prologueCount = countPrologueStatements(node.statements); + const envBinding = createEnvBinding(); + return factory2.updateBlock( + node, + [ + ...visitArray(node.statements, visitor, isStatement, 0, prologueCount), + ...createDownlevelUsingStatements( + transformUsingDeclarations( + node.statements, + prologueCount, + node.statements.length, + envBinding, + /*topLevelStatements*/ + void 0 + ), + envBinding, + usingKind === 2 /* Async */ + ) + ] + ); + } + return visitEachChild(node, visitor, context); + } + function visitForStatement(node) { + if (node.initializer && isUsingVariableDeclarationList(node.initializer)) { + return visitNode( + factory2.createBlock([ + factory2.createVariableStatement( + /*modifiers*/ + void 0, + node.initializer + ), + factory2.updateForStatement( + node, + /*initializer*/ + void 0, + node.condition, + node.incrementor, + node.statement + ) + ]), + visitor, + isStatement + ); + } + return visitEachChild(node, visitor, context); + } + function visitForOfStatement(node) { + if (isUsingVariableDeclarationList(node.initializer)) { + const forInitializer = node.initializer; + Debug.assertNode(forInitializer, isUsingVariableDeclarationList); + Debug.assert(forInitializer.declarations.length === 1, "ForInitializer may only have one declaration"); + const forDecl = forInitializer.declarations[0]; + Debug.assert(!forDecl.initializer, "ForInitializer may not have an initializer"); + const isAwaitUsing = getUsingKindOfVariableDeclarationList(forInitializer) === 2 /* Async */; + const temp = factory2.getGeneratedNameForNode(forDecl.name); + const usingVar = factory2.updateVariableDeclaration( + forDecl, + forDecl.name, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + temp + ); + const usingVarList = factory2.createVariableDeclarationList([usingVar], isAwaitUsing ? 6 /* AwaitUsing */ : 4 /* Using */); + const usingVarStatement = factory2.createVariableStatement( + /*modifiers*/ + void 0, + usingVarList + ); + return visitNode( + factory2.updateForOfStatement( + node, + node.awaitModifier, + factory2.createVariableDeclarationList([ + factory2.createVariableDeclaration(temp) + ], 2 /* Const */), + node.expression, + isBlock(node.statement) ? factory2.updateBlock(node.statement, [ + usingVarStatement, + ...node.statement.statements + ]) : factory2.createBlock( + [ + usingVarStatement, + node.statement + ], + /*multiLine*/ + true + ) + ), + visitor, + isStatement + ); + } + return visitEachChild(node, visitor, context); + } + function visitCaseOrDefaultClause(node, envBinding) { + if (getUsingKindOfStatements(node.statements) !== 0 /* None */) { + if (isCaseClause(node)) { + return factory2.updateCaseClause( + node, + visitNode(node.expression, visitor, isExpression), + transformUsingDeclarations( + node.statements, + /*start*/ + 0, + node.statements.length, + envBinding, + /*topLevelStatements*/ + void 0 + ) + ); + } else { + return factory2.updateDefaultClause( + node, + transformUsingDeclarations( + node.statements, + /*start*/ + 0, + node.statements.length, + envBinding, + /*topLevelStatements*/ + void 0 + ) + ); + } + } + return visitEachChild(node, visitor, context); + } + function visitSwitchStatement(node) { + const usingKind = getUsingKindOfCaseOrDefaultClauses(node.caseBlock.clauses); + if (usingKind) { + const envBinding = createEnvBinding(); + return createDownlevelUsingStatements( + [ + factory2.updateSwitchStatement( + node, + visitNode(node.expression, visitor, isExpression), + factory2.updateCaseBlock( + node.caseBlock, + node.caseBlock.clauses.map((clause) => visitCaseOrDefaultClause(clause, envBinding)) + ) + ) + ], + envBinding, + usingKind === 2 /* Async */ + ); + } + return visitEachChild(node, visitor, context); + } + function transformUsingDeclarations(statementsIn, start, end, envBinding, topLevelStatements) { + const statements = []; + for (let i = start; i < end; i++) { + const statement = statementsIn[i]; + const usingKind = getUsingKind(statement); + if (usingKind) { + Debug.assertNode(statement, isVariableStatement); + const declarations = []; + for (let declaration of statement.declarationList.declarations) { + if (!isIdentifier(declaration.name)) { + declarations.length = 0; + break; + } + if (isNamedEvaluation(declaration)) { + declaration = transformNamedEvaluation(context, declaration); + } + const initializer = visitNode(declaration.initializer, visitor, isExpression) ?? factory2.createVoidZero(); + declarations.push(factory2.updateVariableDeclaration( + declaration, + declaration.name, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + emitHelpers().createAddDisposableResourceHelper( + envBinding, + initializer, + usingKind === 2 /* Async */ + ) + )); + } + if (declarations.length) { + const varList = factory2.createVariableDeclarationList(declarations, 2 /* Const */); + setOriginalNode(varList, statement.declarationList); + setTextRange(varList, statement.declarationList); + hoistOrAppendNode(factory2.updateVariableStatement( + statement, + /*modifiers*/ + void 0, + varList + )); + continue; + } + } + const result = visitor(statement); + if (isArray(result)) { + result.forEach(hoistOrAppendNode); + } else if (result) { + hoistOrAppendNode(result); + } + } + return statements; + function hoistOrAppendNode(node) { + Debug.assertNode(node, isStatement); + append(statements, hoist(node)); + } + function hoist(node) { + if (!topLevelStatements) + return node; + switch (node.kind) { + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 278 /* ExportDeclaration */: + case 262 /* FunctionDeclaration */: + return hoistImportOrExportOrHoistedDeclaration(node, topLevelStatements); + case 277 /* ExportAssignment */: + return hoistExportAssignment(node); + case 263 /* ClassDeclaration */: + return hoistClassDeclaration(node); + case 243 /* VariableStatement */: + return hoistVariableStatement(node); + } + return node; + } + } + function hoistImportOrExportOrHoistedDeclaration(node, topLevelStatements) { + topLevelStatements.push(node); + return void 0; + } + function hoistExportAssignment(node) { + return node.isExportEquals ? hoistExportEquals(node) : hoistExportDefault(node); + } + function hoistExportDefault(node) { + if (defaultExportBinding) { + return node; + } + defaultExportBinding = factory2.createUniqueName("_default", 8 /* ReservedInNestedScopes */ | 32 /* FileLevel */ | 16 /* Optimistic */); + hoistBindingIdentifier( + defaultExportBinding, + /*isExport*/ + true, + "default", + node + ); + let expression = node.expression; + let innerExpression = skipOuterExpressions(expression); + if (isNamedEvaluation(innerExpression)) { + innerExpression = transformNamedEvaluation( + context, + innerExpression, + /*ignoreEmptyStringLiteral*/ + false, + "default" + ); + expression = factory2.restoreOuterExpressions(expression, innerExpression); + } + const assignment = factory2.createAssignment(defaultExportBinding, expression); + return factory2.createExpressionStatement(assignment); + } + function hoistExportEquals(node) { + if (exportEqualsBinding) { + return node; + } + exportEqualsBinding = factory2.createUniqueName("_default", 8 /* ReservedInNestedScopes */ | 32 /* FileLevel */ | 16 /* Optimistic */); + hoistVariableDeclaration(exportEqualsBinding); + const assignment = factory2.createAssignment(exportEqualsBinding, node.expression); + return factory2.createExpressionStatement(assignment); + } + function hoistClassDeclaration(node) { + if (!node.name && defaultExportBinding) { + return node; + } + const isExported2 = hasSyntacticModifier(node, 1 /* Export */); + const isDefault = hasSyntacticModifier(node, 1024 /* Default */); + let expression = factory2.converters.convertToClassExpression(node); + if (node.name) { + hoistBindingIdentifier( + factory2.getLocalName(node), + isExported2 && !isDefault, + /*exportAlias*/ + void 0, + node + ); + expression = factory2.createAssignment(factory2.getDeclarationName(node), expression); + if (isNamedEvaluation(expression)) { + expression = transformNamedEvaluation( + context, + expression, + /*ignoreEmptyStringLiteral*/ + false + ); + } + setOriginalNode(expression, node); + setSourceMapRange(expression, node); + setCommentRange(expression, node); + } + if (isDefault && !defaultExportBinding) { + defaultExportBinding = factory2.createUniqueName("_default", 8 /* ReservedInNestedScopes */ | 32 /* FileLevel */ | 16 /* Optimistic */); + hoistBindingIdentifier( + defaultExportBinding, + /*isExport*/ + true, + "default", + node + ); + expression = factory2.createAssignment(defaultExportBinding, expression); + if (isNamedEvaluation(expression)) { + expression = transformNamedEvaluation( + context, + expression, + /*ignoreEmptyStringLiteral*/ + false, + "default" + ); + } + setOriginalNode(expression, node); + } + return factory2.createExpressionStatement(expression); + } + function hoistVariableStatement(node) { + let expressions; + const isExported2 = hasSyntacticModifier(node, 1 /* Export */); + for (const variable of node.declarationList.declarations) { + hoistBindingElement(variable, isExported2, variable); + if (variable.initializer) { + expressions = append(expressions, hoistInitializedVariable(variable)); + } + } + if (expressions) { + const statement = factory2.createExpressionStatement(factory2.inlineExpressions(expressions)); + setOriginalNode(statement, node); + setCommentRange(statement, node); + setSourceMapRange(statement, node); + return statement; + } + return void 0; + } + function hoistInitializedVariable(node) { + Debug.assertIsDefined(node.initializer); + let target; + if (isIdentifier(node.name)) { + target = factory2.cloneNode(node.name); + setEmitFlags(target, getEmitFlags(target) & ~(32768 /* LocalName */ | 16384 /* ExportName */ | 65536 /* InternalName */)); + } else { + target = factory2.converters.convertToAssignmentPattern(node.name); + } + const assignment = factory2.createAssignment(target, node.initializer); + setOriginalNode(assignment, node); + setCommentRange(assignment, node); + setSourceMapRange(assignment, node); + return assignment; + } + function hoistBindingElement(node, isExportedDeclaration, original) { + if (isBindingPattern(node.name)) { + for (const element of node.name.elements) { + if (!isOmittedExpression(element)) { + hoistBindingElement(element, isExportedDeclaration, original); + } + } + } else { + hoistBindingIdentifier( + node.name, + isExportedDeclaration, + /*exportAlias*/ + void 0, + original + ); + } + } + function hoistBindingIdentifier(node, isExport, exportAlias, original) { + const name = isGeneratedIdentifier(node) ? node : factory2.cloneNode(node); + if (isExport) { + if (exportAlias === void 0 && !isLocalName(name)) { + const varDecl = factory2.createVariableDeclaration(name); + if (original) { + setOriginalNode(varDecl, original); + } + exportVars.push(varDecl); + return; + } + const localName = exportAlias !== void 0 ? name : void 0; + const exportName = exportAlias !== void 0 ? exportAlias : name; + const specifier = factory2.createExportSpecifier( + /*isTypeOnly*/ + false, + localName, + exportName + ); + if (original) { + setOriginalNode(specifier, original); + } + exportBindings.set(name, specifier); + } + hoistVariableDeclaration(name); + } + function createEnvBinding() { + return factory2.createUniqueName("env"); + } + function createDownlevelUsingStatements(bodyStatements, envBinding, async) { + const statements = []; + const envObject = factory2.createObjectLiteralExpression([ + factory2.createPropertyAssignment("stack", factory2.createArrayLiteralExpression()), + factory2.createPropertyAssignment("error", factory2.createVoidZero()), + factory2.createPropertyAssignment("hasError", factory2.createFalse()) + ]); + const envVar = factory2.createVariableDeclaration( + envBinding, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + envObject + ); + const envVarList = factory2.createVariableDeclarationList([envVar], 2 /* Const */); + const envVarStatement = factory2.createVariableStatement( + /*modifiers*/ + void 0, + envVarList + ); + statements.push(envVarStatement); + const tryBlock = factory2.createBlock( + bodyStatements, + /*multiLine*/ + true + ); + const bodyCatchBinding = factory2.createUniqueName("e"); + const catchClause = factory2.createCatchClause( + bodyCatchBinding, + factory2.createBlock( + [ + factory2.createExpressionStatement( + factory2.createAssignment( + factory2.createPropertyAccessExpression(envBinding, "error"), + bodyCatchBinding + ) + ), + factory2.createExpressionStatement( + factory2.createAssignment( + factory2.createPropertyAccessExpression(envBinding, "hasError"), + factory2.createTrue() + ) + ) + ], + /*multiLine*/ + true + ) + ); + let finallyBlock; + if (async) { + const result = factory2.createUniqueName("result"); + finallyBlock = factory2.createBlock( + [ + factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList([ + factory2.createVariableDeclaration( + result, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + emitHelpers().createDisposeResourcesHelper(envBinding) + ) + ], 2 /* Const */) + ), + factory2.createIfStatement(result, factory2.createExpressionStatement(factory2.createAwaitExpression(result))) + ], + /*multiLine*/ + true + ); + } else { + finallyBlock = factory2.createBlock( + [ + factory2.createExpressionStatement( + emitHelpers().createDisposeResourcesHelper(envBinding) + ) + ], + /*multiLine*/ + true + ); + } + const tryStatement = factory2.createTryStatement(tryBlock, catchClause, finallyBlock); + statements.push(tryStatement); + return statements; + } + } + function countPrologueStatements(statements) { + for (let i = 0; i < statements.length; i++) { + if (!isPrologueDirective(statements[i]) && !isCustomPrologue(statements[i])) { + return i; + } + } + return 0; + } + function isUsingVariableDeclarationList(node) { + return isVariableDeclarationList(node) && getUsingKindOfVariableDeclarationList(node) !== 0 /* None */; + } + function getUsingKindOfVariableDeclarationList(node) { + return (node.flags & 7 /* BlockScoped */) === 6 /* AwaitUsing */ ? 2 /* Async */ : (node.flags & 7 /* BlockScoped */) === 4 /* Using */ ? 1 /* Sync */ : 0 /* None */; + } + function getUsingKindOfVariableStatement(node) { + return getUsingKindOfVariableDeclarationList(node.declarationList); + } + function getUsingKind(statement) { + return isVariableStatement(statement) ? getUsingKindOfVariableStatement(statement) : 0 /* None */; + } + function getUsingKindOfStatements(statements) { + let result = 0 /* None */; + for (const statement of statements) { + const usingKind = getUsingKind(statement); + if (usingKind === 2 /* Async */) + return 2 /* Async */; + if (usingKind > result) + result = usingKind; + } + return result; + } + function getUsingKindOfCaseOrDefaultClauses(clauses) { + let result = 0 /* None */; + for (const clause of clauses) { + const usingKind = getUsingKindOfStatements(clause.statements); + if (usingKind === 2 /* Async */) + return 2 /* Async */; + if (usingKind > result) + result = usingKind; + } + return result; } var init_esnext = __esm({ "src/compiler/transformers/esnext.ts"() { @@ -97893,25 +99553,25 @@ ${lanes.join("\n")} } function visitorWorker(node) { switch (node.kind) { - case 283 /* JsxElement */: + case 284 /* JsxElement */: return visitJsxElement( node, /*isChild*/ false ); - case 284 /* JsxSelfClosingElement */: + case 285 /* JsxSelfClosingElement */: return visitJsxSelfClosingElement( node, /*isChild*/ false ); - case 287 /* JsxFragment */: + case 288 /* JsxFragment */: return visitJsxFragment( node, /*isChild*/ false ); - case 293 /* JsxExpression */: + case 294 /* JsxExpression */: return visitJsxExpression(node); default: return visitEachChild(node, visitor, context); @@ -97921,21 +99581,21 @@ ${lanes.join("\n")} switch (node.kind) { case 12 /* JsxText */: return visitJsxText(node); - case 293 /* JsxExpression */: + case 294 /* JsxExpression */: return visitJsxExpression(node); - case 283 /* JsxElement */: + case 284 /* JsxElement */: return visitJsxElement( node, /*isChild*/ true ); - case 284 /* JsxSelfClosingElement */: + case 285 /* JsxSelfClosingElement */: return visitJsxSelfClosingElement( node, /*isChild*/ true ); - case 287 /* JsxFragment */: + case 288 /* JsxFragment */: return visitJsxFragment( node, /*isChild*/ @@ -98143,10 +99803,10 @@ ${lanes.join("\n")} for (const prop of attr.expression.properties) { if (isSpreadAssignment(prop)) { finishObjectLiteralIfNeeded(); - expressions.push(prop.expression); + expressions.push(Debug.checkDefined(visitNode(prop.expression, visitor, isExpression))); continue; } - properties.push(prop); + properties.push(Debug.checkDefined(visitNode(prop, visitor))); } continue; } @@ -98185,7 +99845,7 @@ ${lanes.join("\n")} const literal = factory2.createStringLiteral(tryDecodeEntities(node.text) || node.text, singleQuote); return setTextRange(literal, node); } - if (node.kind === 293 /* JsxExpression */) { + if (node.kind === 294 /* JsxExpression */) { if (node.expression === void 0) { return factory2.createTrue(); } @@ -98259,7 +99919,7 @@ ${lanes.join("\n")} return decoded === text ? void 0 : decoded; } function getTagName(node) { - if (node.kind === 283 /* JsxElement */) { + if (node.kind === 284 /* JsxElement */) { return getTagName(node.openingElement); } else { const tagName = node.tagName; @@ -98566,7 +100226,7 @@ ${lanes.join("\n")} return node; } switch (node.kind) { - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return visitBinaryExpression(node); default: return visitEachChild(node, visitor, context); @@ -98700,7 +100360,7 @@ ${lanes.join("\n")} hierarchyFacts = (hierarchyFacts & ~excludeFacts | includeFacts) & -32768 /* SubtreeFactsMask */ | ancestorFacts; } function isReturnVoidStatementInConstructorWithCapturedSuper(node) { - return (hierarchyFacts & 8192 /* ConstructorWithCapturedSuper */) !== 0 && node.kind === 252 /* ReturnStatement */ && !node.expression; + return (hierarchyFacts & 8192 /* ConstructorWithCapturedSuper */) !== 0 && node.kind === 253 /* ReturnStatement */ && !node.expression; } function isOrMayContainReturnCompletion(node) { return node.transformFlags & 4194304 /* ContainsHoistedDeclarationOrCompletion */ && (isReturnStatement(node) || isIfStatement(node) || isWithStatement(node) || isSwitchStatement(node) || isCaseBlock(node) || isCaseClause(node) || isDefaultClause(node) || isTryStatement(node) || isCatchClause(node) || isLabeledStatement(node) || isIterationStatement( @@ -98767,85 +100427,85 @@ ${lanes.join("\n")} switch (node.kind) { case 126 /* StaticKeyword */: return void 0; - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return visitClassDeclaration(node); - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return visitClassExpression(node); - case 168 /* Parameter */: + case 169 /* Parameter */: return visitParameter(node); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return visitFunctionDeclaration(node); - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return visitArrowFunction(node); - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: return visitFunctionExpression(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return visitVariableDeclaration(node); case 80 /* Identifier */: return visitIdentifier(node); - case 260 /* VariableDeclarationList */: + case 261 /* VariableDeclarationList */: return visitVariableDeclarationList(node); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return visitSwitchStatement(node); - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: return visitCaseBlock(node); - case 240 /* Block */: + case 241 /* Block */: return visitBlock( node, /*isFunctionBody*/ false ); - case 251 /* BreakStatement */: - case 250 /* ContinueStatement */: + case 252 /* BreakStatement */: + case 251 /* ContinueStatement */: return visitBreakOrContinueStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return visitLabeledStatement(node); - case 245 /* DoStatement */: - case 246 /* WhileStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: return visitDoOrWhileStatement( node, /*outermostLabeledStatement*/ void 0 ); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement( node, /*outermostLabeledStatement*/ void 0 ); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return visitForInStatement( node, /*outermostLabeledStatement*/ void 0 ); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return visitForOfStatement( node, /*outermostLabeledStatement*/ void 0 ); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return visitExpressionStatement(node); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return visitObjectLiteralExpression(node); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return visitCatchClause(node); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return visitShorthandPropertyAssignment(node); - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: return visitComputedPropertyName(node); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return visitArrayLiteralExpression(node); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return visitCallExpression(node); - case 213 /* NewExpression */: + case 214 /* NewExpression */: return visitNewExpression(node); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression(node, expressionResultIsUnused2); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return visitBinaryExpression(node, expressionResultIsUnused2); - case 360 /* CommaListExpression */: + case 361 /* CommaListExpression */: return visitCommaListExpression(node, expressionResultIsUnused2); case 15 /* NoSubstitutionTemplateLiteral */: case 16 /* TemplateHead */: @@ -98856,13 +100516,13 @@ ${lanes.join("\n")} return visitStringLiteral(node); case 9 /* NumericLiteral */: return visitNumericLiteral(node); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return visitTaggedTemplateExpression(node); - case 227 /* TemplateExpression */: + case 228 /* TemplateExpression */: return visitTemplateExpression(node); - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: return visitYieldExpression(node); - case 229 /* SpreadElement */: + case 230 /* SpreadElement */: return visitSpreadElement(node); case 108 /* SuperKeyword */: return visitSuperKeyword( @@ -98871,18 +100531,18 @@ ${lanes.join("\n")} ); case 110 /* ThisKeyword */: return visitThisKeyword(node); - case 235 /* MetaProperty */: + case 236 /* MetaProperty */: return visitMetaProperty(node); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return visitMethodDeclaration(node); - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return visitAccessorDeclaration(node); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return visitVariableStatement(node); - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: return visitReturnStatement(node); - case 221 /* VoidExpression */: + case 222 /* VoidExpression */: return visitVoidExpression(node); default: return visitEachChild(node, visitor, context); @@ -98980,7 +100640,7 @@ ${lanes.join("\n")} return convertedLoopState.argumentsName || (convertedLoopState.argumentsName = factory2.createUniqueName("arguments")); } } - if (node.flags & 128 /* IdentifierHasExtendedUnicodeEscape */) { + if (node.flags & 256 /* IdentifierHasExtendedUnicodeEscape */) { return setOriginalNode(setTextRange( factory2.createIdentifier(unescapeLeadingUnderscores(node.escapedText)), node @@ -98990,13 +100650,13 @@ ${lanes.join("\n")} } function visitBreakOrContinueStatement(node) { if (convertedLoopState) { - const jump = node.kind === 251 /* BreakStatement */ ? 2 /* Break */ : 4 /* Continue */; + const jump = node.kind === 252 /* BreakStatement */ ? 2 /* Break */ : 4 /* Continue */; const canUseBreakOrContinue = node.label && convertedLoopState.labels && convertedLoopState.labels.get(idText(node.label)) || !node.label && convertedLoopState.allowedNonLabeledJumps & jump; if (!canUseBreakOrContinue) { let labelMarker; const label = node.label; if (!label) { - if (node.kind === 251 /* BreakStatement */) { + if (node.kind === 252 /* BreakStatement */) { convertedLoopState.nonLocalJumps |= 2 /* Break */; labelMarker = "break"; } else { @@ -99004,7 +100664,7 @@ ${lanes.join("\n")} labelMarker = "continue"; } } else { - if (node.kind === 251 /* BreakStatement */) { + if (node.kind === 252 /* BreakStatement */) { labelMarker = `break-${label.escapedText}`; setLabeledJump( convertedLoopState, @@ -99210,6 +100870,104 @@ ${lanes.join("\n")} setEmitFlags(block, 3072 /* NoComments */); return block; } + function transformConstructorBodyWorker(prologueOut, statementsOut, statementsIn, statementOffset, superPath, superPathDepth, constructor, isDerivedClass, hasSynthesizedSuper, isFirstStatement) { + let mayReplaceThis = false; + const superStatementIndex = superPathDepth < superPath.length ? superPath[superPathDepth] : -1; + const leadingStatementsEnd = superStatementIndex >= 0 ? superStatementIndex : statementsIn.length; + if (isFirstStatement && superStatementIndex >= 0) { + let firstMaterialIndex = statementOffset; + while (isFirstStatement && firstMaterialIndex < superStatementIndex) { + const statement = constructor.body.statements[firstMaterialIndex]; + if (!isUninitializedVariableStatement(statement) && !isUsingDeclarationStateVariableStatement(statement)) + break; + firstMaterialIndex++; + } + isFirstStatement = superStatementIndex === firstMaterialIndex; + } + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, statementOffset, leadingStatementsEnd - statementOffset)); + const superStatement = superStatementIndex >= 0 ? statementsIn[superStatementIndex] : void 0; + if (superStatement && isTryStatement(superStatement)) { + const tryBlockStatements = []; + mayReplaceThis = transformConstructorBodyWorker( + prologueOut, + tryBlockStatements, + superStatement.tryBlock.statements, + /*statementOffset*/ + 0, + superPath, + superPathDepth + 1, + constructor, + isDerivedClass, + hasSynthesizedSuper, + isFirstStatement + ); + const tryBlockStatementsArray = factory2.createNodeArray(tryBlockStatements); + setTextRange(tryBlockStatementsArray, superStatement.tryBlock.statements); + statementsOut.push(factory2.updateTryStatement( + superStatement, + factory2.updateBlock(superStatement.tryBlock, tryBlockStatements), + visitNode(superStatement.catchClause, visitor, isCatchClause), + visitNode(superStatement.finallyBlock, visitor, isBlock) + )); + } else { + const superCall = superStatement && getSuperCallFromStatement(superStatement); + let superCallExpression; + if (hasSynthesizedSuper) { + superCallExpression = createDefaultSuperCallOrThis(); + hierarchyFacts |= 8192 /* ConstructorWithCapturedSuper */; + } else if (superCall) { + superCallExpression = visitSuperCallInBody(superCall); + hierarchyFacts |= 8192 /* ConstructorWithCapturedSuper */; + } + if (isDerivedClass || superCallExpression) { + if (superCallExpression && superStatementIndex === statementsIn.length - 1 && !(constructor.body.transformFlags & 16384 /* ContainsLexicalThis */)) { + const superCall2 = cast(cast(superCallExpression, isBinaryExpression).left, isCallExpression); + const returnStatement = factory2.createReturnStatement(superCallExpression); + setCommentRange(returnStatement, getCommentRange(superCall2)); + setEmitFlags(superCall2, 3072 /* NoComments */); + statementsOut.push(returnStatement); + return false; + } else { + if (isFirstStatement) { + insertCaptureThisForNode(statementsOut, constructor, superCallExpression || createActualThis()); + } else { + insertCaptureThisForNode(prologueOut, constructor, createActualThis()); + if (superCallExpression) { + addSuperThisCaptureThisForNode(statementsOut, superCallExpression); + } + } + mayReplaceThis = true; + } + } else { + insertCaptureThisForNodeIfNeeded(prologueOut, constructor); + } + } + if (superStatementIndex >= 0) { + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex + 1)); + } + return mayReplaceThis; + } + function isUninitializedVariableStatement(node) { + return isVariableStatement(node) && every(node.declarationList.declarations, (decl) => isIdentifier(decl.name) && !decl.initializer); + } + function isUsingDeclarationStateVariableStatement(node) { + if (!isVariableStatement(node) || node.declarationList.declarations.length !== 1) + return false; + const varDecl = node.declarationList.declarations[0]; + if (!isIdentifier(varDecl.name) || !varDecl.initializer) + return false; + const initializer = varDecl.initializer; + if (!isObjectLiteralExpression(initializer) || initializer.properties.length !== 3) + return false; + const [stackProp, errorProp, hasErrorProp] = initializer.properties; + if (!isPropertyAssignment(stackProp) || !isIdentifier(stackProp.name) || idText(stackProp.name) !== "stack" || !isArrayLiteralExpression(stackProp.initializer)) + return false; + if (!isPropertyAssignment(errorProp) || !isIdentifier(errorProp.name) || idText(errorProp.name) !== "error" || !isVoidExpression(errorProp.initializer) || !isNumericLiteral(errorProp.initializer.expression)) + return false; + if (!isPropertyAssignment(hasErrorProp) || !isIdentifier(hasErrorProp.name) || idText(hasErrorProp.name) !== "hasError" || hasErrorProp.initializer.kind !== 97 /* FalseKeyword */) + return false; + return true; + } function transformConstructorBody(constructor, node, extendsClauseElement, hasSynthesizedSuper) { const isDerivedClass = !!extendsClauseElement && skipOuterExpressions(extendsClauseElement.expression).kind !== 106 /* NullKeyword */; if (!constructor) @@ -99217,82 +100975,43 @@ ${lanes.join("\n")} const prologue = []; const statements = []; resumeLexicalEnvironment(); - const existingPrologue = takeWhile(constructor.body.statements, isPrologueDirective); - const { superCall, superStatementIndex } = findSuperCallAndStatementIndex(constructor.body.statements, existingPrologue); - const postSuperStatementsStart = superStatementIndex === -1 ? existingPrologue.length : superStatementIndex + 1; - let statementOffset = postSuperStatementsStart; - if (!hasSynthesizedSuper) - statementOffset = factory2.copyStandardPrologue( - constructor.body.statements, - prologue, - statementOffset, - /*ensureUseStrict*/ - false - ); - if (!hasSynthesizedSuper) - statementOffset = factory2.copyCustomPrologue( - constructor.body.statements, - statements, - statementOffset, - visitor, - /*filter*/ - void 0 - ); - let superCallExpression; - if (hasSynthesizedSuper) { - superCallExpression = createDefaultSuperCallOrThis(); - } else if (superCall) { - superCallExpression = visitSuperCallInBody(superCall); - } - if (superCallExpression) { + const standardPrologueEnd = factory2.copyStandardPrologue( + constructor.body.statements, + prologue, + /*statementOffset*/ + 0 + ); + const superStatementIndices = findSuperStatementIndexPath(constructor.body.statements, standardPrologueEnd); + if (hasSynthesizedSuper || superStatementIndices.length > 0) { hierarchyFacts |= 8192 /* ConstructorWithCapturedSuper */; } - addDefaultValueAssignmentsIfNeeded2(prologue, constructor); - addRestParameterIfNeeded(prologue, constructor, hasSynthesizedSuper); - addRange(statements, visitNodes2( - constructor.body.statements, - visitor, - isStatement, - /*start*/ - statementOffset - )); - factory2.mergeLexicalEnvironment(prologue, endLexicalEnvironment()); - insertCaptureNewTargetIfNeeded( + const mayReplaceThis = transformConstructorBodyWorker( prologue, + statements, + constructor.body.statements, + standardPrologueEnd, + superStatementIndices, + /*superPathDepth*/ + 0, constructor, - /*copyOnWrite*/ - false + isDerivedClass, + hasSynthesizedSuper, + /*isFirstStatement*/ + true + // NOTE: this will be recalculated inside of transformConstructorBodyWorker ); - if (isDerivedClass || superCallExpression) { - if (superCallExpression && postSuperStatementsStart === constructor.body.statements.length && !(constructor.body.transformFlags & 16384 /* ContainsLexicalThis */)) { - const superCall2 = cast(cast(superCallExpression, isBinaryExpression).left, isCallExpression); - const returnStatement = factory2.createReturnStatement(superCallExpression); - setCommentRange(returnStatement, getCommentRange(superCall2)); - setEmitFlags(superCall2, 3072 /* NoComments */); - statements.push(returnStatement); - } else { - if (superStatementIndex <= existingPrologue.length) { - insertCaptureThisForNode(statements, constructor, superCallExpression || createActualThis()); - } else { - insertCaptureThisForNode(prologue, constructor, createActualThis()); - if (superCallExpression) { - insertSuperThisCaptureThisForNode(statements, superCallExpression); - } - } - if (!isSufficientlyCoveredByReturnStatements(constructor.body)) { - statements.push(factory2.createReturnStatement(factory2.createUniqueName("_this", 16 /* Optimistic */ | 32 /* FileLevel */))); - } - } - } else { - insertCaptureThisForNodeIfNeeded(prologue, constructor); + addDefaultValueAssignmentsIfNeeded2(prologue, constructor); + addRestParameterIfNeeded(prologue, constructor, hasSynthesizedSuper); + insertCaptureNewTargetIfNeeded(prologue, constructor); + factory2.mergeLexicalEnvironment(prologue, endLexicalEnvironment()); + if (mayReplaceThis && !isSufficientlyCoveredByReturnStatements(constructor.body)) { + statements.push(factory2.createReturnStatement(factory2.createUniqueName("_this", 16 /* Optimistic */ | 32 /* FileLevel */))); } const body = factory2.createBlock( setTextRange( factory2.createNodeArray( [ - ...existingPrologue, ...prologue, - ...superStatementIndex <= existingPrologue.length ? emptyArray : visitNodes2(constructor.body.statements, visitor, isStatement, existingPrologue.length, superStatementIndex - existingPrologue.length), ...statements ] ), @@ -99305,29 +101024,15 @@ ${lanes.join("\n")} setTextRange(body, constructor.body); return body; } - function findSuperCallAndStatementIndex(originalBodyStatements, existingPrologue) { - for (let i = existingPrologue.length; i < originalBodyStatements.length; i += 1) { - const superCall = getSuperCallFromStatement(originalBodyStatements[i]); - if (superCall) { - return { - superCall, - superStatementIndex: i - }; - } - } - return { - superStatementIndex: -1 - }; - } function isSufficientlyCoveredByReturnStatements(statement) { - if (statement.kind === 252 /* ReturnStatement */) { + if (statement.kind === 253 /* ReturnStatement */) { return true; - } else if (statement.kind === 244 /* IfStatement */) { + } else if (statement.kind === 245 /* IfStatement */) { const ifStatement = statement; if (ifStatement.elseStatement) { return isSufficientlyCoveredByReturnStatements(ifStatement.thenStatement) && isSufficientlyCoveredByReturnStatements(ifStatement.elseStatement); } - } else if (statement.kind === 240 /* Block */) { + } else if (statement.kind === 241 /* Block */) { const lastStatement = lastOrUndefined(statement.statements); if (lastStatement && isSufficientlyCoveredByReturnStatements(lastStatement)) { return true; @@ -99601,13 +101306,13 @@ ${lanes.join("\n")} return true; } function insertCaptureThisForNodeIfNeeded(statements, node) { - if (hierarchyFacts & 65536 /* CapturedLexicalThis */ && node.kind !== 218 /* ArrowFunction */) { + if (hierarchyFacts & 65536 /* CapturedLexicalThis */ && node.kind !== 219 /* ArrowFunction */) { insertCaptureThisForNode(statements, node, factory2.createThis()); return true; } return false; } - function insertSuperThisCaptureThisForNode(statements, superExpression) { + function addSuperThisCaptureThisForNode(statements, superExpression) { enableSubstitutionsForCapturedThis(); const assignSuperExpression = factory2.createExpressionStatement( factory2.createBinaryExpression( @@ -99616,7 +101321,7 @@ ${lanes.join("\n")} superExpression ) ); - insertStatementAfterCustomPrologue(statements, assignSuperExpression); + statements.push(assignSuperExpression); setCommentRange(assignSuperExpression, getOriginalNode(superExpression).parent); } function insertCaptureThisForNode(statements, node, initializer) { @@ -99639,25 +101344,25 @@ ${lanes.join("\n")} setSourceMapRange(captureThisStatement, node); insertStatementAfterCustomPrologue(statements, captureThisStatement); } - function insertCaptureNewTargetIfNeeded(statements, node, copyOnWrite) { + function insertCaptureNewTargetIfNeeded(statements, node) { if (hierarchyFacts & 32768 /* NewTarget */) { let newTarget; switch (node.kind) { - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return statements; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: newTarget = factory2.createVoidZero(); break; - case 175 /* Constructor */: + case 176 /* Constructor */: newTarget = factory2.createPropertyAccessExpression( setEmitFlags(factory2.createThis(), 8 /* NoSubstitution */), "constructor" ); break; - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: newTarget = factory2.createConditionalExpression( factory2.createLogicalAnd( setEmitFlags(factory2.createThis(), 8 /* NoSubstitution */), @@ -99696,9 +101401,6 @@ ${lanes.join("\n")} ]) ); setEmitFlags(captureNewTargetStatement, 3072 /* NoComments */ | 2097152 /* CustomPrologue */); - if (copyOnWrite) { - statements = statements.slice(); - } insertStatementAfterCustomPrologue(statements, captureNewTargetStatement); } return statements; @@ -99706,21 +101408,21 @@ ${lanes.join("\n")} function addClassMembers(statements, node) { for (const member of node.members) { switch (member.kind) { - case 239 /* SemicolonClassElement */: + case 240 /* SemicolonClassElement */: statements.push(transformSemicolonClassElementToStatement(member)); break; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: statements.push(transformClassMethodDeclarationToStatement(getClassMemberPrefix(node, member), member, node)); break; - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: const accessors = getAllAccessorDeclarations(node.members, member); if (member === accessors.firstAccessor) { statements.push(transformAccessorsToStatement(getClassMemberPrefix(node, member), accessors, node)); } break; - case 175 /* Constructor */: - case 174 /* ClassStaticBlockDeclaration */: + case 176 /* Constructor */: + case 175 /* ClassStaticBlockDeclaration */: break; default: Debug.failBadSyntaxKind(member, currentSourceFile && currentSourceFile.fileName); @@ -99927,7 +101629,7 @@ ${lanes.join("\n")} const ancestorFacts = container && isClassLike(container) && !isStatic(node) ? enterSubtree(32670 /* FunctionExcludes */, 65 /* FunctionIncludes */ | 8 /* NonStaticClassElement */) : enterSubtree(32670 /* FunctionExcludes */, 65 /* FunctionIncludes */); const parameters = visitParameterList(node.parameters, visitor, context); const body = transformFunctionBody2(node); - if (hierarchyFacts & 32768 /* NewTarget */ && !name && (node.kind === 261 /* FunctionDeclaration */ || node.kind === 217 /* FunctionExpression */)) { + if (hierarchyFacts & 32768 /* NewTarget */ && !name && (node.kind === 262 /* FunctionDeclaration */ || node.kind === 218 /* FunctionExpression */)) { name = factory2.getGeneratedNameForNode(node); } exitSubtree(ancestorFacts, 98304 /* FunctionSubtreeExcludes */, 0 /* None */); @@ -99988,7 +101690,7 @@ ${lanes.join("\n")} multiLine = true; } } else { - Debug.assert(node.kind === 218 /* ArrowFunction */); + Debug.assert(node.kind === 219 /* ArrowFunction */); statementsLocation = moveRangeEnd(body, -1); const equalsGreaterThanToken = node.equalsGreaterThanToken; if (!nodeIsSynthesized(equalsGreaterThanToken) && !nodeIsSynthesized(body)) { @@ -100007,12 +101709,7 @@ ${lanes.join("\n")} closeBraceLocation = body; } factory2.mergeLexicalEnvironment(prologue, endLexicalEnvironment()); - insertCaptureNewTargetIfNeeded( - prologue, - node, - /*copyOnWrite*/ - false - ); + insertCaptureNewTargetIfNeeded(prologue, node); insertCaptureThisForNodeIfNeeded(prologue, node); if (some(prologue)) { multiLine = true; @@ -100090,7 +101787,7 @@ ${lanes.join("\n")} function visitVariableStatement(node) { const ancestorFacts = enterSubtree(0 /* None */, hasSyntacticModifier(node, 1 /* Export */) ? 32 /* ExportedVariableStatement */ : 0 /* None */); let updated; - if (convertedLoopState && (node.declarationList.flags & 3 /* BlockScoped */) === 0 && !isVariableStatementOfTypeScriptClassWrapper(node)) { + if (convertedLoopState && (node.declarationList.flags & 7 /* BlockScoped */) === 0 && !isVariableStatementOfTypeScriptClassWrapper(node)) { let assignments; for (const decl of node.declarationList.declarations) { hoistVariableDeclarationDeclaredInConvertedLoop(convertedLoopState, decl); @@ -100122,8 +101819,8 @@ ${lanes.join("\n")} return updated; } function visitVariableDeclarationList(node) { - if (node.flags & 3 /* BlockScoped */ || node.transformFlags & 524288 /* ContainsBindingPattern */) { - if (node.flags & 3 /* BlockScoped */) { + if (node.flags & 7 /* BlockScoped */ || node.transformFlags & 524288 /* ContainsBindingPattern */) { + if (node.flags & 7 /* BlockScoped */) { enableSubstitutionsForBlockScopedBindings(); } const declarations = visitNodes2(node.declarations, node.flags & 1 /* Let */ ? visitVariableDeclarationInLetDeclarationList : visitVariableDeclaration, isVariableDeclaration); @@ -100214,14 +101911,14 @@ ${lanes.join("\n")} } function visitIterationStatement(node, outermostLabeledStatement) { switch (node.kind) { - case 245 /* DoStatement */: - case 246 /* WhileStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: return visitDoOrWhileStatement(node, outermostLabeledStatement); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement(node, outermostLabeledStatement); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return visitForInStatement(node, outermostLabeledStatement); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return visitForOfStatement(node, outermostLabeledStatement); } } @@ -100277,7 +101974,7 @@ ${lanes.join("\n")} const statements = []; const initializer = node.initializer; if (isVariableDeclarationList(initializer)) { - if (node.initializer.flags & 3 /* BlockScoped */) { + if (node.initializer.flags & 7 /* BlockScoped */) { enableSubstitutionsForBlockScopedBindings(); } const firstOriginalDeclaration = firstOrUndefined(initializer.declarations); @@ -100571,7 +102268,7 @@ ${lanes.join("\n")} let numInitialProperties = -1, hasComputed = false; for (let i = 0; i < properties.length; i++) { const property = properties[i]; - if (property.transformFlags & 1048576 /* ContainsYield */ && hierarchyFacts & 4 /* AsyncFunctionBody */ || (hasComputed = Debug.checkDefined(property.name).kind === 166 /* ComputedPropertyName */)) { + if (property.transformFlags & 1048576 /* ContainsYield */ && hierarchyFacts & 4 /* AsyncFunctionBody */ || (hasComputed = Debug.checkDefined(property.name).kind === 167 /* ComputedPropertyName */)) { numInitialProperties = i; break; } @@ -100693,15 +102390,15 @@ ${lanes.join("\n")} } function convertIterationStatementCore(node, initializerFunction, convertedLoopBody) { switch (node.kind) { - case 247 /* ForStatement */: + case 248 /* ForStatement */: return convertForStatement(node, initializerFunction, convertedLoopBody); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return convertForInStatement(node, convertedLoopBody); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return convertForOfStatement(node, convertedLoopBody); - case 245 /* DoStatement */: + case 246 /* DoStatement */: return convertDoStatement(node, convertedLoopBody); - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: return convertWhileStatement(node, convertedLoopBody); default: return Debug.failBadSyntaxKind(node, "IterationStatement expected"); @@ -100753,18 +102450,18 @@ ${lanes.join("\n")} function createConvertedLoopState(node) { let loopInitializer; switch (node.kind) { - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: const initializer = node.initializer; - if (initializer && initializer.kind === 260 /* VariableDeclarationList */) { + if (initializer && initializer.kind === 261 /* VariableDeclarationList */) { loopInitializer = initializer; } break; } const loopParameters = []; const loopOutParameters = []; - if (loopInitializer && getCombinedNodeFlags(loopInitializer) & 3 /* BlockScoped */) { + if (loopInitializer && getCombinedNodeFlags(loopInitializer) & 7 /* BlockScoped */) { const hasCapturedBindingsInForHead = shouldConvertInitializerOfForStatement(node) || shouldConvertConditionOfForStatement(node) || shouldConvertIncrementorOfForStatement(node); for (const decl of loopInitializer.declarations) { processLoopVariableDeclaration(node, decl, loopParameters, loopOutParameters, hasCapturedBindingsInForHead); @@ -101172,10 +102869,10 @@ ${lanes.join("\n")} name )); const checkFlags = resolver.getNodeCheckFlags(decl); - if (checkFlags & 262144 /* NeedsLoopOutParameter */ || hasCapturedBindingsInForHead) { + if (checkFlags & 65536 /* NeedsLoopOutParameter */ || hasCapturedBindingsInForHead) { const outParamName = factory2.createUniqueName("out_" + idText(name)); let flags = 0 /* None */; - if (checkFlags & 262144 /* NeedsLoopOutParameter */) { + if (checkFlags & 65536 /* NeedsLoopOutParameter */) { flags |= 1 /* Body */; } if (isForStatement(container)) { @@ -101196,20 +102893,20 @@ ${lanes.join("\n")} for (let i = start; i < numProperties; i++) { const property = properties[i]; switch (property.kind) { - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: const accessors = getAllAccessorDeclarations(node.properties, property); if (property === accessors.firstAccessor) { expressions.push(transformAccessorsToExpression(receiver, accessors, node, !!node.multiLine)); } break; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: expressions.push(transformObjectLiteralMethodDeclarationToExpression(property, receiver, node, node.multiLine)); break; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: expressions.push(transformPropertyAssignmentToExpression(property, receiver, node.multiLine)); break; - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: expressions.push(transformShorthandPropertyAssignmentToExpression(property, receiver, node.multiLine)); break; default: @@ -101335,7 +103032,7 @@ ${lanes.join("\n")} let updated; const parameters = visitParameterList(node.parameters, visitor, context); const body = transformFunctionBody2(node); - if (node.kind === 176 /* GetAccessor */) { + if (node.kind === 177 /* GetAccessor */) { updated = factory2.updateGetAccessorDeclaration(node, node.modifiers, node.name, parameters, node.type, body); } else { updated = factory2.updateSetAccessorDeclaration(node, node.modifiers, node.name, parameters, body); @@ -101699,13 +103396,13 @@ ${lanes.join("\n")} if ((enabledSubstitutions & 1 /* CapturedThis */) === 0) { enabledSubstitutions |= 1 /* CapturedThis */; context.enableSubstitution(110 /* ThisKeyword */); - context.enableEmitNotification(175 /* Constructor */); - context.enableEmitNotification(173 /* MethodDeclaration */); - context.enableEmitNotification(176 /* GetAccessor */); - context.enableEmitNotification(177 /* SetAccessor */); - context.enableEmitNotification(218 /* ArrowFunction */); - context.enableEmitNotification(217 /* FunctionExpression */); - context.enableEmitNotification(261 /* FunctionDeclaration */); + context.enableEmitNotification(176 /* Constructor */); + context.enableEmitNotification(174 /* MethodDeclaration */); + context.enableEmitNotification(177 /* GetAccessor */); + context.enableEmitNotification(178 /* SetAccessor */); + context.enableEmitNotification(219 /* ArrowFunction */); + context.enableEmitNotification(218 /* FunctionExpression */); + context.enableEmitNotification(262 /* FunctionDeclaration */); } } function onSubstituteNode(hint, node) { @@ -101729,10 +103426,10 @@ ${lanes.join("\n")} } function isNameOfDeclarationWithCollidingName(node) { switch (node.parent.kind) { - case 207 /* BindingElement */: - case 262 /* ClassDeclaration */: - case 265 /* EnumDeclaration */: - case 259 /* VariableDeclaration */: + case 208 /* BindingElement */: + case 263 /* ClassDeclaration */: + case 266 /* EnumDeclaration */: + case 260 /* VariableDeclaration */: return node.parent.name === node && resolver.isDeclarationWithCollidingName(node.parent); } return false; @@ -101789,11 +103486,11 @@ ${lanes.join("\n")} return false; } const statement = firstOrUndefined(constructor.body.statements); - if (!statement || !nodeIsSynthesized(statement) || statement.kind !== 243 /* ExpressionStatement */) { + if (!statement || !nodeIsSynthesized(statement) || statement.kind !== 244 /* ExpressionStatement */) { return false; } const statementExpression = statement.expression; - if (!nodeIsSynthesized(statementExpression) || statementExpression.kind !== 212 /* CallExpression */) { + if (!nodeIsSynthesized(statementExpression) || statementExpression.kind !== 213 /* CallExpression */) { return false; } const callTarget = statementExpression.expression; @@ -101801,7 +103498,7 @@ ${lanes.join("\n")} return false; } const callArgument = singleOrUndefined(statementExpression.arguments); - if (!callArgument || !nodeIsSynthesized(callArgument) || callArgument.kind !== 229 /* SpreadElement */) { + if (!callArgument || !nodeIsSynthesized(callArgument) || callArgument.kind !== 230 /* SpreadElement */) { return false; } const expression = callArgument.expression; @@ -101824,24 +103521,24 @@ ${lanes.join("\n")} if (compilerOptions.jsx === 1 /* Preserve */ || compilerOptions.jsx === 3 /* ReactNative */) { previousOnEmitNode = context.onEmitNode; context.onEmitNode = onEmitNode; - context.enableEmitNotification(285 /* JsxOpeningElement */); - context.enableEmitNotification(286 /* JsxClosingElement */); - context.enableEmitNotification(284 /* JsxSelfClosingElement */); + context.enableEmitNotification(286 /* JsxOpeningElement */); + context.enableEmitNotification(287 /* JsxClosingElement */); + context.enableEmitNotification(285 /* JsxSelfClosingElement */); noSubstitution = []; } const previousOnSubstituteNode = context.onSubstituteNode; context.onSubstituteNode = onSubstituteNode; - context.enableSubstitution(210 /* PropertyAccessExpression */); - context.enableSubstitution(302 /* PropertyAssignment */); + context.enableSubstitution(211 /* PropertyAccessExpression */); + context.enableSubstitution(303 /* PropertyAssignment */); return chainBundle(context, transformSourceFile); function transformSourceFile(node) { return node; } function onEmitNode(hint, node, emitCallback) { switch (node.kind) { - case 285 /* JsxOpeningElement */: - case 286 /* JsxClosingElement */: - case 284 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 287 /* JsxClosingElement */: + case 285 /* JsxSelfClosingElement */: const tagName = node.tagName; noSubstitution[getOriginalNodeId(tagName)] = true; break; @@ -101973,13 +103670,13 @@ ${lanes.join("\n")} } function visitJavaScriptInStatementContainingYield(node) { switch (node.kind) { - case 245 /* DoStatement */: + case 246 /* DoStatement */: return visitDoStatement(node); - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: return visitWhileStatement(node); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return visitSwitchStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return visitLabeledStatement(node); default: return visitJavaScriptInGeneratorFunctionBody(node); @@ -101987,24 +103684,24 @@ ${lanes.join("\n")} } function visitJavaScriptInGeneratorFunctionBody(node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return visitFunctionDeclaration(node); - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: return visitFunctionExpression(node); - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return visitAccessorDeclaration(node); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return visitVariableStatement(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement(node); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return visitForInStatement(node); - case 251 /* BreakStatement */: + case 252 /* BreakStatement */: return visitBreakStatement(node); - case 250 /* ContinueStatement */: + case 251 /* ContinueStatement */: return visitContinueStatement(node); - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: return visitReturnStatement(node); default: if (node.transformFlags & 1048576 /* ContainsYield */) { @@ -102018,23 +103715,23 @@ ${lanes.join("\n")} } function visitJavaScriptContainingYield(node) { switch (node.kind) { - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return visitBinaryExpression(node); - case 360 /* CommaListExpression */: + case 361 /* CommaListExpression */: return visitCommaListExpression(node); - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: return visitConditionalExpression(node); - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: return visitYieldExpression(node); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return visitArrayLiteralExpression(node); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return visitObjectLiteralExpression(node); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return visitElementAccessExpression(node); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return visitCallExpression(node); - case 213 /* NewExpression */: + case 214 /* NewExpression */: return visitNewExpression(node); default: return visitEachChild(node, visitor, context); @@ -102042,9 +103739,9 @@ ${lanes.join("\n")} } function visitGenerator(node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return visitFunctionDeclaration(node); - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: return visitFunctionExpression(node); default: return Debug.failBadSyntaxKind(node); @@ -102229,14 +103926,14 @@ ${lanes.join("\n")} if (containsYield(right)) { let target; switch (left.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: target = factory2.updatePropertyAccessExpression( left, cacheExpression(Debug.checkDefined(visitNode(left.expression, visitor, isLeftHandSideExpression))), left.name ); break; - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: target = factory2.updateElementAccessExpression( left, cacheExpression(Debug.checkDefined(visitNode(left.expression, visitor, isLeftHandSideExpression))), @@ -102569,35 +104266,35 @@ ${lanes.join("\n")} } function transformAndEmitStatementWorker(node) { switch (node.kind) { - case 240 /* Block */: + case 241 /* Block */: return transformAndEmitBlock(node); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return transformAndEmitExpressionStatement(node); - case 244 /* IfStatement */: + case 245 /* IfStatement */: return transformAndEmitIfStatement(node); - case 245 /* DoStatement */: + case 246 /* DoStatement */: return transformAndEmitDoStatement(node); - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: return transformAndEmitWhileStatement(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return transformAndEmitForStatement(node); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return transformAndEmitForInStatement(node); - case 250 /* ContinueStatement */: + case 251 /* ContinueStatement */: return transformAndEmitContinueStatement(node); - case 251 /* BreakStatement */: + case 252 /* BreakStatement */: return transformAndEmitBreakStatement(node); - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: return transformAndEmitReturnStatement(node); - case 253 /* WithStatement */: + case 254 /* WithStatement */: return transformAndEmitWithStatement(node); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return transformAndEmitSwitchStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return transformAndEmitLabeledStatement(node); - case 256 /* ThrowStatement */: + case 257 /* ThrowStatement */: return transformAndEmitThrowStatement(node); - case 257 /* TryStatement */: + case 258 /* TryStatement */: return transformAndEmitTryStatement(node); default: return emitStatement(visitNode(node, visitor, isStatement)); @@ -102949,7 +104646,7 @@ ${lanes.join("\n")} for (let i = 0; i < numClauses; i++) { const clause = caseBlock.clauses[i]; clauseLabels.push(defineLabel()); - if (clause.kind === 296 /* DefaultClause */ && defaultClauseIndex === -1) { + if (clause.kind === 297 /* DefaultClause */ && defaultClauseIndex === -1) { defaultClauseIndex = i; } } @@ -102959,7 +104656,7 @@ ${lanes.join("\n")} let defaultClausesSkipped = 0; for (let i = clausesWritten; i < numClauses; i++) { const clause = caseBlock.clauses[i]; - if (clause.kind === 295 /* CaseClause */) { + if (clause.kind === 296 /* CaseClause */) { if (containsYield(clause.expression) && pendingClauses.length > 0) { break; } @@ -103932,12 +105629,12 @@ ${lanes.join("\n")} const previousOnEmitNode = context.onEmitNode; context.onSubstituteNode = onSubstituteNode; context.onEmitNode = onEmitNode; - context.enableSubstitution(212 /* CallExpression */); - context.enableSubstitution(214 /* TaggedTemplateExpression */); + context.enableSubstitution(213 /* CallExpression */); + context.enableSubstitution(215 /* TaggedTemplateExpression */); context.enableSubstitution(80 /* Identifier */); - context.enableSubstitution(225 /* BinaryExpression */); - context.enableSubstitution(303 /* ShorthandPropertyAssignment */); - context.enableEmitNotification(311 /* SourceFile */); + context.enableSubstitution(226 /* BinaryExpression */); + context.enableSubstitution(304 /* ShorthandPropertyAssignment */); + context.enableEmitNotification(312 /* SourceFile */); const moduleInfoMap = []; let currentSourceFile; let currentModuleInfo; @@ -103949,7 +105646,7 @@ ${lanes.join("\n")} return node; } currentSourceFile = node; - currentModuleInfo = collectExternalModuleInfo(context, node, resolver, compilerOptions); + currentModuleInfo = collectExternalModuleInfo(context, node); moduleInfoMap[getOriginalNodeId(node)] = currentModuleInfo; const transformModule2 = getTransformModuleDelegate(moduleKind); const updated = transformModule2(node); @@ -104349,63 +106046,59 @@ ${lanes.join("\n")} } function topLevelVisitor(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: - return visitImportDeclaration(node); - case 270 /* ImportEqualsDeclaration */: - return visitImportEqualsDeclaration(node); - case 277 /* ExportDeclaration */: - return visitExportDeclaration(node); - case 276 /* ExportAssignment */: - return visitExportAssignment(node); - case 261 /* FunctionDeclaration */: - return visitFunctionDeclaration(node); - case 262 /* ClassDeclaration */: - return visitClassDeclaration(node); + case 272 /* ImportDeclaration */: + return visitTopLevelImportDeclaration(node); + case 271 /* ImportEqualsDeclaration */: + return visitTopLevelImportEqualsDeclaration(node); + case 278 /* ExportDeclaration */: + return visitTopLevelExportDeclaration(node); + case 277 /* ExportAssignment */: + return visitTopLevelExportAssignment(node); default: return topLevelNestedVisitor(node); } } function topLevelNestedVisitor(node) { switch (node.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return visitVariableStatement(node); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return visitFunctionDeclaration(node); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return visitClassDeclaration(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement( node, /*isTopLevel*/ true ); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return visitForInStatement(node); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return visitForOfStatement(node); - case 245 /* DoStatement */: + case 246 /* DoStatement */: return visitDoStatement(node); - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: return visitWhileStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return visitLabeledStatement(node); - case 253 /* WithStatement */: + case 254 /* WithStatement */: return visitWithStatement(node); - case 244 /* IfStatement */: + case 245 /* IfStatement */: return visitIfStatement(node); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return visitSwitchStatement(node); - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: return visitCaseBlock(node); - case 295 /* CaseClause */: + case 296 /* CaseClause */: return visitCaseClause(node); - case 296 /* DefaultClause */: + case 297 /* DefaultClause */: return visitDefaultClause(node); - case 257 /* TryStatement */: + case 258 /* TryStatement */: return visitTryStatement(node); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return visitCatchClause(node); - case 240 /* Block */: + case 241 /* Block */: return visitBlock(node); default: return visitor(node); @@ -104416,30 +106109,30 @@ ${lanes.join("\n")} return node; } switch (node.kind) { - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement( node, /*isTopLevel*/ false ); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return visitExpressionStatement(node); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression(node, valueIsDiscarded); - case 359 /* PartiallyEmittedExpression */: + case 360 /* PartiallyEmittedExpression */: return visitPartiallyEmittedExpression(node, valueIsDiscarded); - case 212 /* CallExpression */: + case 213 /* CallExpression */: if (isImportCall(node) && currentSourceFile.impliedNodeFormat === void 0) { return visitImportCallExpression(node); } break; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: if (isDestructuringAssignment(node)) { return visitDestructuringAssignment(node, valueIsDiscarded); } break; - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return visitPreOrPostfixUnaryExpression(node, valueIsDiscarded); } return visitEachChild(node, visitor, context); @@ -104462,24 +106155,24 @@ ${lanes.join("\n")} if (isObjectLiteralExpression(node)) { for (const elem of node.properties) { switch (elem.kind) { - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: if (destructuringNeedsFlattening(elem.initializer)) { return true; } break; - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: if (destructuringNeedsFlattening(elem.name)) { return true; } break; - case 304 /* SpreadAssignment */: + case 305 /* SpreadAssignment */: if (destructuringNeedsFlattening(elem.expression)) { return true; } break; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return false; default: Debug.assertNever(elem, "Unhandled object member kind"); @@ -104507,7 +106200,7 @@ ${lanes.join("\n")} return visitEachChild(node, visitor, context); } function visitForStatement(node, isTopLevel) { - if (isTopLevel && node.initializer && isVariableDeclarationList(node.initializer) && !(node.initializer.flags & 3 /* BlockScoped */)) { + if (isTopLevel && node.initializer && isVariableDeclarationList(node.initializer) && !(node.initializer.flags & 7 /* BlockScoped */)) { const exportStatements = appendExportsOfVariableDeclarationList( /*statements*/ void 0, @@ -104548,7 +106241,7 @@ ${lanes.join("\n")} ); } function visitForInStatement(node) { - if (isVariableDeclarationList(node.initializer) && !(node.initializer.flags & 3 /* BlockScoped */)) { + if (isVariableDeclarationList(node.initializer) && !(node.initializer.flags & 7 /* BlockScoped */)) { const exportStatements = appendExportsOfVariableDeclarationList( /*statements*/ void 0, @@ -104576,7 +106269,7 @@ ${lanes.join("\n")} ); } function visitForOfStatement(node) { - if (isVariableDeclarationList(node.initializer) && !(node.initializer.flags & 3 /* BlockScoped */)) { + if (isVariableDeclarationList(node.initializer) && !(node.initializer.flags & 7 /* BlockScoped */)) { const exportStatements = appendExportsOfVariableDeclarationList( /*statements*/ void 0, @@ -104956,7 +106649,7 @@ ${lanes.join("\n")} } return innerExpr; } - function visitImportDeclaration(node) { + function visitTopLevelImportDeclaration(node) { let statements; const namespaceDeclaration = getNamespaceDeclarationNode(node); if (moduleKind !== 2 /* AMD */) { @@ -105065,7 +106758,7 @@ ${lanes.join("\n")} args ); } - function visitImportEqualsDeclaration(node) { + function visitTopLevelImportEqualsDeclaration(node) { Debug.assert(isExternalModuleImportEqualsDeclaration(node), "import= for internal module references should be handled in an earlier transformer."); let statements; if (moduleKind !== 2 /* AMD */) { @@ -105133,7 +106826,7 @@ ${lanes.join("\n")} statements = appendExportsOfImportEqualsDeclaration(statements, node); return singleOrMany(statements); } - function visitExportDeclaration(node) { + function visitTopLevelExportDeclaration(node) { if (!node.moduleSpecifier) { return void 0; } @@ -105235,7 +106928,7 @@ ${lanes.join("\n")} ); } } - function visitExportAssignment(node) { + function visitTopLevelExportAssignment(node) { if (node.isExportEquals) { return void 0; } @@ -105439,19 +107132,21 @@ ${lanes.join("\n")} if (!importClause) { return statements; } + const seen = new IdentifierNameMap(); if (importClause.name) { - statements = appendExportsOfDeclaration(statements, importClause); + statements = appendExportsOfDeclaration(statements, seen, importClause); } const namedBindings = importClause.namedBindings; if (namedBindings) { switch (namedBindings.kind) { - case 273 /* NamespaceImport */: - statements = appendExportsOfDeclaration(statements, namedBindings); + case 274 /* NamespaceImport */: + statements = appendExportsOfDeclaration(statements, seen, namedBindings); break; - case 274 /* NamedImports */: + case 275 /* NamedImports */: for (const importBinding of namedBindings.elements) { statements = appendExportsOfDeclaration( statements, + seen, importBinding, /*liveBinding*/ true @@ -105466,7 +107161,7 @@ ${lanes.join("\n")} if (currentModuleInfo.exportEquals) { return statements; } - return appendExportsOfDeclaration(statements, decl); + return appendExportsOfDeclaration(statements, new IdentifierNameMap(), decl); } function appendExportsOfVariableStatement(statements, node) { return appendExportsOfVariableDeclarationList( @@ -105496,7 +107191,7 @@ ${lanes.join("\n")} } } } else if (!isGeneratedIdentifier(decl.name) && (!isVariableDeclaration(decl) || decl.initializer || isForInOrOfInitializer)) { - statements = appendExportsOfDeclaration(statements, decl); + statements = appendExportsOfDeclaration(statements, new IdentifierNameMap(), decl); } return statements; } @@ -105504,10 +107199,12 @@ ${lanes.join("\n")} if (currentModuleInfo.exportEquals) { return statements; } + const seen = new IdentifierNameMap(); if (hasSyntacticModifier(decl, 1 /* Export */)) { const exportName = hasSyntacticModifier(decl, 1024 /* Default */) ? factory2.createIdentifier("default") : factory2.getDeclarationName(decl); statements = appendExportStatement( statements, + seen, exportName, factory2.getLocalName(decl), /*location*/ @@ -105515,17 +107212,18 @@ ${lanes.join("\n")} ); } if (decl.name) { - statements = appendExportsOfDeclaration(statements, decl); + statements = appendExportsOfDeclaration(statements, seen, decl); } return statements; } - function appendExportsOfDeclaration(statements, decl, liveBinding) { + function appendExportsOfDeclaration(statements, seen, decl, liveBinding) { const name = factory2.getDeclarationName(decl); - const exportSpecifiers = currentModuleInfo.exportSpecifiers.get(idText(name)); + const exportSpecifiers = currentModuleInfo.exportSpecifiers.get(name); if (exportSpecifiers) { for (const exportSpecifier of exportSpecifiers) { statements = appendExportStatement( statements, + seen, exportSpecifier.name, name, /*location*/ @@ -105538,8 +107236,11 @@ ${lanes.join("\n")} } return statements; } - function appendExportStatement(statements, exportName, expression, location, allowComments, liveBinding) { - statements = append(statements, createExportStatement(exportName, expression, location, allowComments, liveBinding)); + function appendExportStatement(statements, seen, exportName, expression, location, allowComments, liveBinding) { + if (!seen.has(exportName)) { + seen.set(exportName, true); + statements = append(statements, createExportStatement(exportName, expression, location, allowComments, liveBinding)); + } return statements; } function createUnderscoreUnderscoreESModule() { @@ -105634,7 +107335,7 @@ ${lanes.join("\n")} return node; } function onEmitNode(hint, node, emitCallback) { - if (node.kind === 311 /* SourceFile */) { + if (node.kind === 312 /* SourceFile */) { currentSourceFile = node; currentModuleInfo = moduleInfoMap[getOriginalNodeId(currentSourceFile)]; previousOnEmitNode(hint, node, emitCallback); @@ -105672,11 +107373,11 @@ ${lanes.join("\n")} switch (node.kind) { case 80 /* Identifier */: return substituteExpressionIdentifier(node); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return substituteCallExpression(node); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return substituteTaggedTemplateExpression(node); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return substituteBinaryExpression(node); } return node; @@ -105729,7 +107430,7 @@ ${lanes.join("\n")} return node; } else if (!(isGeneratedIdentifier(node) && !(node.emitNode.autoGenerate.flags & 64 /* AllowNameSubstitution */)) && !isLocalName(node)) { const exportContainer = resolver.getReferencedExportContainer(node, isExportName(node)); - if (exportContainer && exportContainer.kind === 311 /* SourceFile */) { + if (exportContainer && exportContainer.kind === 312 /* SourceFile */) { return setTextRange( factory2.createPropertyAccessExpression( factory2.createIdentifier("exports"), @@ -105766,7 +107467,7 @@ ${lanes.join("\n")} return node; } function substituteBinaryExpression(node) { - if (isAssignmentOperator(node.operatorToken.kind) && isIdentifier(node.left) && !isGeneratedIdentifier(node.left) && !isLocalName(node.left)) { + if (isAssignmentOperator(node.operatorToken.kind) && isIdentifier(node.left) && (!isGeneratedIdentifier(node.left) || isFileLevelReservedGeneratedIdentifier(node.left)) && !isLocalName(node.left)) { const exportedNames = getExports(node.left); if (exportedNames) { let expression = node; @@ -105805,6 +107506,15 @@ ${lanes.join("\n")} return arrayFrom(bindingsSet); } } + } else if (isFileLevelReservedGeneratedIdentifier(name)) { + const exportSpecifiers = currentModuleInfo == null ? void 0 : currentModuleInfo.exportSpecifiers.get(name); + if (exportSpecifiers) { + const exportedNames = []; + for (const exportSpecifier of exportSpecifiers) { + exportedNames.push(exportSpecifier.name); + } + return exportedNames; + } } } } @@ -105838,10 +107548,10 @@ ${lanes.join("\n")} context.onSubstituteNode = onSubstituteNode; context.onEmitNode = onEmitNode; context.enableSubstitution(80 /* Identifier */); - context.enableSubstitution(303 /* ShorthandPropertyAssignment */); - context.enableSubstitution(225 /* BinaryExpression */); - context.enableSubstitution(235 /* MetaProperty */); - context.enableEmitNotification(311 /* SourceFile */); + context.enableSubstitution(304 /* ShorthandPropertyAssignment */); + context.enableSubstitution(226 /* BinaryExpression */); + context.enableSubstitution(236 /* MetaProperty */); + context.enableEmitNotification(312 /* SourceFile */); const moduleInfoMap = []; const exportFunctionsMap = []; const noSubstitutionMap = []; @@ -105861,7 +107571,7 @@ ${lanes.join("\n")} const id = getOriginalNodeId(node); currentSourceFile = node; enclosingBlockScopedContainer = node; - moduleInfo = moduleInfoMap[id] = collectExternalModuleInfo(context, node, resolver, compilerOptions); + moduleInfo = moduleInfoMap[id] = collectExternalModuleInfo(context, node); exportFunction = factory2.createUniqueName("exports"); exportFunctionsMap[id] = exportFunction; contextObject = contextObjectMap[id] = factory2.createUniqueName("context"); @@ -106028,7 +107738,7 @@ ${lanes.join("\n")} if (!moduleInfo.exportedNames && moduleInfo.exportSpecifiers.size === 0) { let hasExportDeclarationWithExportClause = false; for (const externalImport of moduleInfo.externalImports) { - if (externalImport.kind === 277 /* ExportDeclaration */ && externalImport.exportClause) { + if (externalImport.kind === 278 /* ExportDeclaration */ && externalImport.exportClause) { hasExportDeclarationWithExportClause = true; break; } @@ -106176,11 +107886,11 @@ ${lanes.join("\n")} for (const entry of group2.externalImports) { const importVariableName = getLocalNameForExternalImport(factory2, entry, currentSourceFile); switch (entry.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: if (!entry.importClause) { break; } - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: Debug.assert(importVariableName !== void 0); statements.push( factory2.createExpressionStatement( @@ -106203,7 +107913,7 @@ ${lanes.join("\n")} ); } break; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: Debug.assert(importVariableName !== void 0); if (entry.exportClause) { if (isNamedExports(entry.exportClause)) { @@ -106298,13 +108008,13 @@ ${lanes.join("\n")} } function topLevelVisitor(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return visitImportDeclaration(node); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return visitImportEqualsDeclaration(node); - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return visitExportDeclaration(node); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return visitExportAssignment(node); default: return topLevelNestedVisitor(node); @@ -106401,18 +108111,43 @@ ${lanes.join("\n")} if (!shouldHoistVariableDeclarationList(node.declarationList)) { return visitNode(node, visitor, isStatement); } - let expressions; - const isExportedDeclaration = hasSyntacticModifier(node, 1 /* Export */); - for (const variable of node.declarationList.declarations) { - if (variable.initializer) { - expressions = append(expressions, transformInitializedVariable(variable, isExportedDeclaration)); - } else { - hoistBindingElement(variable); - } - } let statements; - if (expressions) { - statements = append(statements, setTextRange(factory2.createExpressionStatement(factory2.inlineExpressions(expressions)), node)); + if (isVarUsing(node.declarationList) || isVarAwaitUsing(node.declarationList)) { + const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifierLike); + const declarations = []; + for (const variable of node.declarationList.declarations) { + declarations.push(factory2.updateVariableDeclaration( + variable, + factory2.getGeneratedNameForNode(variable.name), + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + transformInitializedVariable( + variable, + /*isExportedDeclaration*/ + false + ) + )); + } + const declarationList = factory2.updateVariableDeclarationList( + node.declarationList, + declarations + ); + statements = append(statements, factory2.updateVariableStatement(node, modifiers, declarationList)); + } else { + let expressions; + const isExportedDeclaration = hasSyntacticModifier(node, 1 /* Export */); + for (const variable of node.declarationList.declarations) { + if (variable.initializer) { + expressions = append(expressions, transformInitializedVariable(variable, isExportedDeclaration)); + } else { + hoistBindingElement(variable); + } + } + if (expressions) { + statements = append(statements, setTextRange(factory2.createExpressionStatement(factory2.inlineExpressions(expressions)), node)); + } } statements = appendExportsOfVariableStatement( statements, @@ -106434,7 +108169,7 @@ ${lanes.join("\n")} } } function shouldHoistVariableDeclarationList(node) { - return (getEmitFlags(node) & 4194304 /* NoHoisting */) === 0 && (enclosingBlockScopedContainer.kind === 311 /* SourceFile */ || (getOriginalNode(node).flags & 3 /* BlockScoped */) === 0); + return (getEmitFlags(node) & 4194304 /* NoHoisting */) === 0 && (enclosingBlockScopedContainer.kind === 312 /* SourceFile */ || (getOriginalNode(node).flags & 7 /* BlockScoped */) === 0); } function transformInitializedVariable(node, isExportedDeclaration) { const createAssignment = isExportedDeclaration ? createExportedVariableAssignment : createNonExportedVariableAssignment; @@ -106484,10 +108219,10 @@ ${lanes.join("\n")} const namedBindings = importClause.namedBindings; if (namedBindings) { switch (namedBindings.kind) { - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: statements = appendExportsOfDeclaration(statements, namedBindings); break; - case 274 /* NamedImports */: + case 275 /* NamedImports */: for (const importBinding of namedBindings.elements) { statements = appendExportsOfDeclaration(statements, importBinding); } @@ -106553,7 +108288,7 @@ ${lanes.join("\n")} return statements; } const name = factory2.getDeclarationName(decl); - const exportSpecifiers = moduleInfo.exportSpecifiers.get(idText(name)); + const exportSpecifiers = moduleInfo.exportSpecifiers.get(name); if (exportSpecifiers) { for (const exportSpecifier of exportSpecifiers) { if (exportSpecifier.name.escapedText !== excludeName) { @@ -106587,45 +108322,45 @@ ${lanes.join("\n")} } function topLevelNestedVisitor(node) { switch (node.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return visitVariableStatement(node); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return visitFunctionDeclaration(node); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return visitClassDeclaration(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement( node, /*isTopLevel*/ true ); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return visitForInStatement(node); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return visitForOfStatement(node); - case 245 /* DoStatement */: + case 246 /* DoStatement */: return visitDoStatement(node); - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: return visitWhileStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return visitLabeledStatement(node); - case 253 /* WithStatement */: + case 254 /* WithStatement */: return visitWithStatement(node); - case 244 /* IfStatement */: + case 245 /* IfStatement */: return visitIfStatement(node); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return visitSwitchStatement(node); - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: return visitCaseBlock(node); - case 295 /* CaseClause */: + case 296 /* CaseClause */: return visitCaseClause(node); - case 296 /* DefaultClause */: + case 297 /* DefaultClause */: return visitDefaultClause(node); - case 257 /* TryStatement */: + case 258 /* TryStatement */: return visitTryStatement(node); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return visitCatchClause(node); - case 240 /* Block */: + case 241 /* Block */: return visitBlock(node); default: return visitor(node); @@ -106779,30 +108514,30 @@ ${lanes.join("\n")} return node; } switch (node.kind) { - case 247 /* ForStatement */: + case 248 /* ForStatement */: return visitForStatement( node, /*isTopLevel*/ false ); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return visitExpressionStatement(node); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression(node, valueIsDiscarded); - case 359 /* PartiallyEmittedExpression */: + case 360 /* PartiallyEmittedExpression */: return visitPartiallyEmittedExpression(node, valueIsDiscarded); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: if (isDestructuringAssignment(node)) { return visitDestructuringAssignment(node, valueIsDiscarded); } break; - case 212 /* CallExpression */: + case 213 /* CallExpression */: if (isImportCall(node)) { return visitImportCallExpression(node); } break; - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return visitPrefixOrPostfixUnaryExpression(node, valueIsDiscarded); } return visitEachChild(node, visitor, context); @@ -106875,7 +108610,7 @@ ${lanes.join("\n")} return hasExportedReferenceInDestructuringTarget(node.initializer); } else if (isIdentifier(node)) { const container = resolver.getReferencedExportContainer(node); - return container !== void 0 && container.kind === 311 /* SourceFile */; + return container !== void 0 && container.kind === 312 /* SourceFile */; } else { return false; } @@ -106919,7 +108654,7 @@ ${lanes.join("\n")} return node; } function onEmitNode(hint, node, emitCallback) { - if (node.kind === 311 /* SourceFile */) { + if (node.kind === 312 /* SourceFile */) { const id = getOriginalNodeId(node); currentSourceFile = node; moduleInfo = moduleInfoMap[id]; @@ -106953,7 +108688,7 @@ ${lanes.join("\n")} } function substituteUnspecified(node) { switch (node.kind) { - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return substituteShorthandPropertyAssignment(node); } return node; @@ -106997,9 +108732,9 @@ ${lanes.join("\n")} switch (node.kind) { case 80 /* Identifier */: return substituteExpressionIdentifier(node); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return substituteBinaryExpression(node); - case 235 /* MetaProperty */: + case 236 /* MetaProperty */: return substituteMetaProperty(node); } return node; @@ -107040,7 +108775,7 @@ ${lanes.join("\n")} return node; } function substituteBinaryExpression(node) { - if (isAssignmentOperator(node.operatorToken.kind) && isIdentifier(node.left) && !isGeneratedIdentifier(node.left) && !isLocalName(node.left)) { + if (isAssignmentOperator(node.operatorToken.kind) && isIdentifier(node.left) && (!isGeneratedIdentifier(node.left) || isFileLevelReservedGeneratedIdentifier(node.left)) && !isLocalName(node.left)) { const exportedNames = getExports(node.left); if (exportedNames) { let expression = node; @@ -107067,10 +108802,19 @@ ${lanes.join("\n")} /*prefixLocals*/ false ); - if (exportContainer && exportContainer.kind === 311 /* SourceFile */) { + if (exportContainer && exportContainer.kind === 312 /* SourceFile */) { exportedNames = append(exportedNames, factory2.getDeclarationName(valueDeclaration)); } exportedNames = addRange(exportedNames, moduleInfo == null ? void 0 : moduleInfo.exportedBindings[getOriginalNodeId(valueDeclaration)]); + } else if (isGeneratedIdentifier(name) && isFileLevelReservedGeneratedIdentifier(name)) { + const exportSpecifiers = moduleInfo == null ? void 0 : moduleInfo.exportSpecifiers.get(name); + if (exportSpecifiers) { + const exportedNames2 = []; + for (const exportSpecifier of exportSpecifiers) { + exportedNames2.push(exportSpecifier.name); + } + return exportedNames2; + } } return exportedNames; } @@ -107123,7 +108867,7 @@ ${lanes.join("\n")} const previousOnSubstituteNode = context.onSubstituteNode; context.onEmitNode = onEmitNode; context.onSubstituteNode = onSubstituteNode; - context.enableEmitNotification(311 /* SourceFile */); + context.enableEmitNotification(312 /* SourceFile */); context.enableSubstitution(80 /* Identifier */); let helperNameSubstitutions; let currentSourceFile; @@ -107171,11 +108915,11 @@ ${lanes.join("\n")} } function visitor(node) { switch (node.kind) { - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return getEmitModuleKind(compilerOptions) >= 100 /* Node16 */ ? visitImportEqualsDeclaration(node) : void 0; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return visitExportAssignment(node); - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: const exportDecl = node; return visitExportDeclaration(exportDecl); } @@ -107386,8 +109130,8 @@ ${lanes.join("\n")} const cjsOnEmitNode = context.onEmitNode; context.onSubstituteNode = onSubstituteNode; context.onEmitNode = onEmitNode; - context.enableSubstitution(311 /* SourceFile */); - context.enableEmitNotification(311 /* SourceFile */); + context.enableSubstitution(312 /* SourceFile */); + context.enableEmitNotification(312 /* SourceFile */); let currentSourceFile; return transformSourceFileOrBundle; function onSubstituteNode(hint, node) { @@ -107430,7 +109174,7 @@ ${lanes.join("\n")} return result; } function transformSourceFileOrBundle(node) { - return node.kind === 311 /* SourceFile */ ? transformSourceFile(node) : transformBundle(node); + return node.kind === 312 /* SourceFile */ ? transformSourceFile(node) : transformBundle(node); } function transformBundle(node) { return context.factory.createBundle(map(node.sourceFiles, transformSourceFile), node.prepends); @@ -107466,7 +109210,7 @@ ${lanes.join("\n")} function getAccessorNameVisibilityDiagnosticMessage(symbolAccessibilityResult) { if (isStatic(node)) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1; - } else if (node.parent.kind === 262 /* ClassDeclaration */) { + } else if (node.parent.kind === 263 /* ClassDeclaration */) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1; } else { return symbolAccessibilityResult.errorModuleName ? Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1; @@ -107483,7 +109227,7 @@ ${lanes.join("\n")} function getMethodNameVisibilityDiagnosticMessage(symbolAccessibilityResult) { if (isStatic(node)) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1; - } else if (node.parent.kind === 262 /* ClassDeclaration */) { + } else if (node.parent.kind === 263 /* ClassDeclaration */) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1; } else { return symbolAccessibilityResult.errorModuleName ? Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1; @@ -107514,12 +109258,12 @@ ${lanes.join("\n")} return Debug.assertNever(node, `Attempted to set a declaration diagnostic context for unhandled node kind: ${Debug.formatSyntaxKind(node.kind)}`); } function getVariableDeclarationTypeVisibilityDiagnosticMessage(symbolAccessibilityResult) { - if (node.kind === 259 /* VariableDeclaration */ || node.kind === 207 /* BindingElement */) { + if (node.kind === 260 /* VariableDeclaration */ || node.kind === 208 /* BindingElement */) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Exported_variable_0_has_or_is_using_private_name_1; - } else if (node.kind === 171 /* PropertyDeclaration */ || node.kind === 210 /* PropertyAccessExpression */ || node.kind === 211 /* ElementAccessExpression */ || node.kind === 225 /* BinaryExpression */ || node.kind === 170 /* PropertySignature */ || node.kind === 168 /* Parameter */ && hasSyntacticModifier(node.parent, 8 /* Private */)) { + } else if (node.kind === 172 /* PropertyDeclaration */ || node.kind === 211 /* PropertyAccessExpression */ || node.kind === 212 /* ElementAccessExpression */ || node.kind === 226 /* BinaryExpression */ || node.kind === 171 /* PropertySignature */ || node.kind === 169 /* Parameter */ && hasSyntacticModifier(node.parent, 8 /* Private */)) { if (isStatic(node)) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1; - } else if (node.parent.kind === 262 /* ClassDeclaration */ || node.kind === 168 /* Parameter */) { + } else if (node.parent.kind === 263 /* ClassDeclaration */ || node.kind === 169 /* Parameter */) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1; } else { return symbolAccessibilityResult.errorModuleName ? Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1; @@ -107536,7 +109280,7 @@ ${lanes.join("\n")} } function getAccessorDeclarationTypeVisibilityError(symbolAccessibilityResult) { let diagnosticMessage; - if (node.kind === 177 /* SetAccessor */) { + if (node.kind === 178 /* SetAccessor */) { if (isStatic(node)) { diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1; } else { @@ -107558,26 +109302,26 @@ ${lanes.join("\n")} function getReturnTypeVisibilityError(symbolAccessibilityResult) { let diagnosticMessage; switch (node.kind) { - case 179 /* ConstructSignature */: + case 180 /* ConstructSignature */: diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0; break; - case 178 /* CallSignature */: + case 179 /* CallSignature */: diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0; break; - case 180 /* IndexSignature */: + case 181 /* IndexSignature */: diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0; break; - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: if (isStatic(node)) { diagnosticMessage = symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0; - } else if (node.parent.kind === 262 /* ClassDeclaration */) { + } else if (node.parent.kind === 263 /* ClassDeclaration */) { diagnosticMessage = symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0; } else { diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0; } break; - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: diagnosticMessage = symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0; break; default: @@ -107598,29 +109342,29 @@ ${lanes.join("\n")} } function getParameterDeclarationTypeVisibilityDiagnosticMessage(symbolAccessibilityResult) { switch (node.parent.kind) { - case 175 /* Constructor */: + case 176 /* Constructor */: return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1; - case 179 /* ConstructSignature */: - case 184 /* ConstructorType */: + case 180 /* ConstructSignature */: + case 185 /* ConstructorType */: return symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1; - case 178 /* CallSignature */: + case 179 /* CallSignature */: return symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1; - case 180 /* IndexSignature */: + case 181 /* IndexSignature */: return symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1; - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: if (isStatic(node.parent)) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1; - } else if (node.parent.parent.kind === 262 /* ClassDeclaration */) { + } else if (node.parent.parent.kind === 263 /* ClassDeclaration */) { return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1; } else { return symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1; } - case 261 /* FunctionDeclaration */: - case 183 /* FunctionType */: + case 262 /* FunctionDeclaration */: + case 184 /* FunctionType */: return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1; - case 177 /* SetAccessor */: - case 176 /* GetAccessor */: + case 178 /* SetAccessor */: + case 177 /* GetAccessor */: return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1; default: return Debug.fail(`Unknown parent for parameter: ${Debug.formatSyntaxKind(node.parent.kind)}`); @@ -107629,40 +109373,40 @@ ${lanes.join("\n")} function getTypeParameterConstraintVisibilityError() { let diagnosticMessage; switch (node.parent.kind) { - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1; break; - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1; break; - case 199 /* MappedType */: + case 200 /* MappedType */: diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1; break; - case 184 /* ConstructorType */: - case 179 /* ConstructSignature */: + case 185 /* ConstructorType */: + case 180 /* ConstructSignature */: diagnosticMessage = Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1; break; - case 178 /* CallSignature */: + case 179 /* CallSignature */: diagnosticMessage = Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1; break; - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: if (isStatic(node.parent)) { diagnosticMessage = Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1; - } else if (node.parent.parent.kind === 262 /* ClassDeclaration */) { + } else if (node.parent.parent.kind === 263 /* ClassDeclaration */) { diagnosticMessage = Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1; } else { diagnosticMessage = Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1; } break; - case 183 /* FunctionType */: - case 261 /* FunctionDeclaration */: + case 184 /* FunctionType */: + case 262 /* FunctionDeclaration */: diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1; break; - case 194 /* InferType */: + case 195 /* InferType */: diagnosticMessage = Diagnostics.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1; break; - case 264 /* TypeAliasDeclaration */: + case 265 /* TypeAliasDeclaration */: diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1; break; default: @@ -107730,7 +109474,7 @@ ${lanes.join("\n")} } function isInternalDeclaration(node, currentSourceFile) { const parseTreeNode = getParseTreeNode(node); - if (parseTreeNode && parseTreeNode.kind === 168 /* Parameter */) { + if (parseTreeNode && parseTreeNode.kind === 169 /* Parameter */) { const paramIdx = parseTreeNode.parent.parameters.indexOf(parseTreeNode); const previousSibling = paramIdx > 0 ? parseTreeNode.parent.parameters[paramIdx - 1] : void 0; const text = currentSourceFile.text; @@ -107961,10 +109705,10 @@ ${lanes.join("\n")} return result; } function transformRoot(node) { - if (node.kind === 311 /* SourceFile */ && node.isDeclarationFile) { + if (node.kind === 312 /* SourceFile */ && node.isDeclarationFile) { return node; } - if (node.kind === 312 /* Bundle */) { + if (node.kind === 313 /* Bundle */) { isBundledEmit = true; refs = /* @__PURE__ */ new Map(); libs2 = /* @__PURE__ */ new Map(); @@ -108031,7 +109775,7 @@ ${lanes.join("\n")} ); } ), mapDefined(node.prepends, (prepend) => { - if (prepend.kind === 314 /* InputFiles */) { + if (prepend.kind === 315 /* InputFiles */) { const sourceFile = createUnparsedSourceFile(prepend, "dts", stripInternal); hasNoDefaultLib = hasNoDefaultLib || !!sourceFile.hasNoDefaultLib; collectReferences(sourceFile, refs); @@ -108199,14 +109943,14 @@ ${lanes.join("\n")} if (name.kind === 80 /* Identifier */) { return name; } else { - if (name.kind === 206 /* ArrayBindingPattern */) { + if (name.kind === 207 /* ArrayBindingPattern */) { return factory2.updateArrayBindingPattern(name, visitNodes2(name.elements, visitBindingElement, isArrayBindingElement)); } else { return factory2.updateObjectBindingPattern(name, visitNodes2(name.elements, visitBindingElement, isBindingElement)); } } function visitBindingElement(elem) { - if (elem.kind === 231 /* OmittedExpression */) { + if (elem.kind === 232 /* OmittedExpression */) { return elem; } if (elem.propertyName && isIdentifier(elem.propertyName) && isIdentifier(elem.name) && !elem.symbol.isReferenced && !isIdentifierANonContextualKeyword(elem.propertyName)) { @@ -108270,14 +110014,14 @@ ${lanes.join("\n")} if (shouldPrintWithInitializer(node)) { return; } - const shouldUseResolverType = node.kind === 168 /* Parameter */ && (resolver.isRequiredInitializedParameter(node) || resolver.isOptionalUninitializedParameterProperty(node)); + const shouldUseResolverType = node.kind === 169 /* Parameter */ && (resolver.isRequiredInitializedParameter(node) || resolver.isOptionalUninitializedParameterProperty(node)); if (type && !shouldUseResolverType) { return visitNode(type, visitDeclarationSubtree, isTypeNode); } if (!getParseTreeNode(node)) { return type ? visitNode(type, visitDeclarationSubtree, isTypeNode) : factory2.createKeywordTypeNode(133 /* AnyKeyword */); } - if (node.kind === 177 /* SetAccessor */) { + if (node.kind === 178 /* SetAccessor */) { return factory2.createKeywordTypeNode(133 /* AnyKeyword */); } errorNameNode = node.name; @@ -108286,10 +110030,10 @@ ${lanes.join("\n")} oldDiag = getSymbolAccessibilityDiagnostic; getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(node); } - if (node.kind === 259 /* VariableDeclaration */ || node.kind === 207 /* BindingElement */) { + if (node.kind === 260 /* VariableDeclaration */ || node.kind === 208 /* BindingElement */) { return cleanup(resolver.createTypeOfDeclaration(node, enclosingDeclaration, declarationEmitNodeBuilderFlags, symbolTracker)); } - if (node.kind === 168 /* Parameter */ || node.kind === 171 /* PropertyDeclaration */ || node.kind === 170 /* PropertySignature */) { + if (node.kind === 169 /* Parameter */ || node.kind === 172 /* PropertyDeclaration */ || node.kind === 171 /* PropertySignature */) { if (isPropertySignature(node) || !node.initializer) return cleanup(resolver.createTypeOfDeclaration(node, enclosingDeclaration, declarationEmitNodeBuilderFlags, symbolTracker, shouldUseResolverType)); return cleanup(resolver.createTypeOfDeclaration(node, enclosingDeclaration, declarationEmitNodeBuilderFlags, symbolTracker, shouldUseResolverType) || resolver.createTypeOfExpression(node.initializer, enclosingDeclaration, declarationEmitNodeBuilderFlags, symbolTracker)); @@ -108306,21 +110050,21 @@ ${lanes.join("\n")} function isDeclarationAndNotVisible(node) { node = getParseTreeNode(node); switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 266 /* ModuleDeclaration */: - case 263 /* InterfaceDeclaration */: - case 262 /* ClassDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 265 /* EnumDeclaration */: + case 262 /* FunctionDeclaration */: + case 267 /* ModuleDeclaration */: + case 264 /* InterfaceDeclaration */: + case 263 /* ClassDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 266 /* EnumDeclaration */: return !resolver.isDeclarationVisible(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return !getBindingNameVisible(node); - case 270 /* ImportEqualsDeclaration */: - case 271 /* ImportDeclaration */: - case 277 /* ExportDeclaration */: - case 276 /* ExportAssignment */: + case 271 /* ImportEqualsDeclaration */: + case 272 /* ImportDeclaration */: + case 278 /* ExportDeclaration */: + case 277 /* ExportAssignment */: return false; - case 174 /* ClassStaticBlockDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: return true; } return false; @@ -108408,7 +110152,7 @@ ${lanes.join("\n")} function rewriteModuleSpecifier(parent2, input) { if (!input) return void 0; - resultHasExternalModuleIndicator = resultHasExternalModuleIndicator || parent2.kind !== 266 /* ModuleDeclaration */ && parent2.kind !== 204 /* ImportType */; + resultHasExternalModuleIndicator = resultHasExternalModuleIndicator || parent2.kind !== 267 /* ModuleDeclaration */ && parent2.kind !== 205 /* ImportType */; if (isStringLiteralLike(input)) { if (isBundledEmit) { const newName = getExternalModuleNameFromDeclaration(context.getEmitHost(), resolver, parent2); @@ -108427,7 +110171,7 @@ ${lanes.join("\n")} function transformImportEqualsDeclaration(decl) { if (!resolver.isDeclarationVisible(decl)) return; - if (decl.moduleReference.kind === 282 /* ExternalModuleReference */) { + if (decl.moduleReference.kind === 283 /* ExternalModuleReference */) { const specifier = getExternalModuleImportEqualsDeclarationExpression(decl); return factory2.updateImportEqualsDeclaration( decl, @@ -108464,7 +110208,7 @@ ${lanes.join("\n")} void 0 ), rewriteModuleSpecifier(decl, decl.moduleSpecifier), getResolutionModeOverrideForClauseInNightly(decl.assertClause)); } - if (decl.importClause.namedBindings.kind === 273 /* NamespaceImport */) { + if (decl.importClause.namedBindings.kind === 274 /* NamespaceImport */) { const namedBindings = resolver.isDeclarationVisible(decl.importClause.namedBindings) ? decl.importClause.namedBindings : ( /*namedBindings*/ void 0 @@ -108567,7 +110311,7 @@ ${lanes.join("\n")} const oldDiag = getSymbolAccessibilityDiagnostic; const canProduceDiagnostic = canProduceDiagnostics(input); const oldWithinObjectLiteralType = suppressNewDiagnosticContexts; - let shouldEnterSuppressNewDiagnosticsContextContext = (input.kind === 186 /* TypeLiteral */ || input.kind === 199 /* MappedType */) && input.parent.kind !== 264 /* TypeAliasDeclaration */; + let shouldEnterSuppressNewDiagnosticsContextContext = (input.kind === 187 /* TypeLiteral */ || input.kind === 200 /* MappedType */) && input.parent.kind !== 265 /* TypeAliasDeclaration */; if (isMethodDeclaration(input) || isMethodSignature(input)) { if (hasEffectiveModifier(input, 8 /* Private */)) { if (input.symbol && input.symbol.declarations && input.symbol.declarations[0] !== input) @@ -108595,26 +110339,26 @@ ${lanes.join("\n")} } if (isProcessedComponent(input)) { switch (input.kind) { - case 232 /* ExpressionWithTypeArguments */: { + case 233 /* ExpressionWithTypeArguments */: { if (isEntityName(input.expression) || isEntityNameExpression(input.expression)) { checkEntityNameVisibility(input.expression, enclosingDeclaration); } const node = visitEachChild(input, visitDeclarationSubtree, context); return cleanup(factory2.updateExpressionWithTypeArguments(node, node.expression, node.typeArguments)); } - case 182 /* TypeReference */: { + case 183 /* TypeReference */: { checkEntityNameVisibility(input.typeName, enclosingDeclaration); const node = visitEachChild(input, visitDeclarationSubtree, context); return cleanup(factory2.updateTypeReferenceNode(node, node.typeName, node.typeArguments)); } - case 179 /* ConstructSignature */: + case 180 /* ConstructSignature */: return cleanup(factory2.updateConstructSignature( input, ensureTypeParams(input, input.typeParameters), updateParamsList(input, input.parameters), ensureType(input, input.type) )); - case 175 /* Constructor */: { + case 176 /* Constructor */: { const ctor = factory2.createConstructorDeclaration( /*modifiers*/ ensureModifiers(input), @@ -108624,7 +110368,7 @@ ${lanes.join("\n")} ); return cleanup(ctor); } - case 173 /* MethodDeclaration */: { + case 174 /* MethodDeclaration */: { if (isPrivateIdentifier(input.name)) { return cleanup( /*returnValue*/ @@ -108645,7 +110389,7 @@ ${lanes.join("\n")} ); return cleanup(sig); } - case 176 /* GetAccessor */: { + case 177 /* GetAccessor */: { if (isPrivateIdentifier(input.name)) { return cleanup( /*returnValue*/ @@ -108663,7 +110407,7 @@ ${lanes.join("\n")} void 0 )); } - case 177 /* SetAccessor */: { + case 178 /* SetAccessor */: { if (isPrivateIdentifier(input.name)) { return cleanup( /*returnValue*/ @@ -108679,7 +110423,7 @@ ${lanes.join("\n")} void 0 )); } - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: if (isPrivateIdentifier(input.name)) { return cleanup( /*returnValue*/ @@ -108694,7 +110438,7 @@ ${lanes.join("\n")} ensureType(input, input.type), ensureNoInitializer(input) )); - case 170 /* PropertySignature */: + case 171 /* PropertySignature */: if (isPrivateIdentifier(input.name)) { return cleanup( /*returnValue*/ @@ -108708,7 +110452,7 @@ ${lanes.join("\n")} input.questionToken, ensureType(input, input.type) )); - case 172 /* MethodSignature */: { + case 173 /* MethodSignature */: { if (isPrivateIdentifier(input.name)) { return cleanup( /*returnValue*/ @@ -108725,7 +110469,7 @@ ${lanes.join("\n")} ensureType(input, input.type) )); } - case 178 /* CallSignature */: { + case 179 /* CallSignature */: { return cleanup(factory2.updateCallSignature( input, ensureTypeParams(input, input.typeParameters), @@ -108733,7 +110477,7 @@ ${lanes.join("\n")} ensureType(input, input.type) )); } - case 180 /* IndexSignature */: { + case 181 /* IndexSignature */: { return cleanup(factory2.updateIndexSignature( input, ensureModifiers(input), @@ -108741,7 +110485,7 @@ ${lanes.join("\n")} visitNode(input.type, visitDeclarationSubtree, isTypeNode) || factory2.createKeywordTypeNode(133 /* AnyKeyword */) )); } - case 259 /* VariableDeclaration */: { + case 260 /* VariableDeclaration */: { if (isBindingPattern(input.name)) { return recreateBindingPattern(input.name); } @@ -108756,7 +110500,7 @@ ${lanes.join("\n")} ensureNoInitializer(input) )); } - case 167 /* TypeParameter */: { + case 168 /* TypeParameter */: { if (isPrivateMethodTypeParameter(input) && (input.default || input.constraint)) { return cleanup(factory2.updateTypeParameterDeclaration( input, @@ -108770,7 +110514,7 @@ ${lanes.join("\n")} } return cleanup(visitEachChild(input, visitDeclarationSubtree, context)); } - case 193 /* ConditionalType */: { + case 194 /* ConditionalType */: { const checkType = visitNode(input.checkType, visitDeclarationSubtree, isTypeNode); const extendsType = visitNode(input.extendsType, visitDeclarationSubtree, isTypeNode); const oldEnclosingDecl = enclosingDeclaration; @@ -108784,13 +110528,13 @@ ${lanes.join("\n")} Debug.assert(falseType); return cleanup(factory2.updateConditionalTypeNode(input, checkType, extendsType, trueType, falseType)); } - case 183 /* FunctionType */: { + case 184 /* FunctionType */: { return cleanup(factory2.updateFunctionTypeNode(input, visitNodes2(input.typeParameters, visitDeclarationSubtree, isTypeParameterDeclaration), updateParamsList(input, input.parameters), Debug.checkDefined(visitNode(input.type, visitDeclarationSubtree, isTypeNode)))); } - case 184 /* ConstructorType */: { + case 185 /* ConstructorType */: { return cleanup(factory2.updateConstructorTypeNode(input, ensureModifiers(input), visitNodes2(input.typeParameters, visitDeclarationSubtree, isTypeParameterDeclaration), updateParamsList(input, input.parameters), Debug.checkDefined(visitNode(input.type, visitDeclarationSubtree, isTypeNode)))); } - case 204 /* ImportType */: { + case 205 /* ImportType */: { if (!isLiteralImportTypeNode(input)) return cleanup(input); return cleanup(factory2.updateImportTypeNode( @@ -108830,7 +110574,7 @@ ${lanes.join("\n")} } } function isPrivateMethodTypeParameter(node) { - return node.parent.kind === 173 /* MethodDeclaration */ && hasEffectiveModifier(node.parent, 8 /* Private */); + return node.parent.kind === 174 /* MethodDeclaration */ && hasEffectiveModifier(node.parent, 8 /* Private */); } function visitDeclarationStatements(input) { if (!isPreservedDeclarationStatement(input)) { @@ -108839,7 +110583,7 @@ ${lanes.join("\n")} if (shouldStripInternal(input)) return; switch (input.kind) { - case 277 /* ExportDeclaration */: { + case 278 /* ExportDeclaration */: { if (isSourceFile(input.parent)) { resultHasExternalModuleIndicator = true; } @@ -108853,7 +110597,7 @@ ${lanes.join("\n")} getResolutionModeOverrideForClause(input.assertClause) ? input.assertClause : void 0 ); } - case 276 /* ExportAssignment */: { + case 277 /* ExportAssignment */: { if (isSourceFile(input.parent)) { resultHasExternalModuleIndicator = true; } @@ -108894,6 +110638,21 @@ ${lanes.join("\n")} const modifiers = factory2.createModifiersFromModifierFlags(getEffectiveModifierFlags(statement) & (258047 /* All */ ^ 1 /* Export */)); return factory2.updateModifiers(statement, modifiers); } + function updateModuleDeclarationAndKeyword(node, modifiers, name, body) { + const updated = factory2.updateModuleDeclaration(node, modifiers, name, body); + if (isAmbientModule(updated) || updated.flags & 32 /* Namespace */) { + return updated; + } + const fixed = factory2.createModuleDeclaration( + updated.modifiers, + updated.name, + updated.body, + updated.flags | 32 /* Namespace */ + ); + setOriginalNode(fixed, updated); + setTextRange(fixed, updated); + return fixed; + } function transformTopLevelDeclaration(input) { if (lateMarkedStatements) { while (orderedRemoveItem(lateMarkedStatements, input)) @@ -108902,10 +110661,10 @@ ${lanes.join("\n")} if (shouldStripInternal(input)) return; switch (input.kind) { - case 270 /* ImportEqualsDeclaration */: { + case 271 /* ImportEqualsDeclaration */: { return transformImportEqualsDeclaration(input); } - case 271 /* ImportDeclaration */: { + case 272 /* ImportDeclaration */: { return transformImportDeclaration(input); } } @@ -108925,7 +110684,7 @@ ${lanes.join("\n")} } const previousNeedsDeclare = needsDeclare; switch (input.kind) { - case 264 /* TypeAliasDeclaration */: { + case 265 /* TypeAliasDeclaration */: { needsDeclare = false; const clean2 = cleanup(factory2.updateTypeAliasDeclaration( input, @@ -108937,7 +110696,7 @@ ${lanes.join("\n")} needsDeclare = previousNeedsDeclare; return clean2; } - case 263 /* InterfaceDeclaration */: { + case 264 /* InterfaceDeclaration */: { return cleanup(factory2.updateInterfaceDeclaration( input, ensureModifiers(input), @@ -108947,7 +110706,7 @@ ${lanes.join("\n")} visitNodes2(input.members, visitDeclarationSubtree, isTypeElement) )); } - case 261 /* FunctionDeclaration */: { + case 262 /* FunctionDeclaration */: { const clean2 = cleanup(factory2.updateFunctionDeclaration( input, ensureModifiers(input), @@ -108967,7 +110726,7 @@ ${lanes.join("\n")} void 0, clean2.name || factory2.createIdentifier("_default"), factory2.createModuleBlock([]), - 16 /* Namespace */ + 32 /* Namespace */ ); setParent(fakespace, enclosingDeclaration); fakespace.locals = createSymbolTable(props); @@ -109017,7 +110776,7 @@ ${lanes.join("\n")} })) )); } - const namespaceDecl = factory2.createModuleDeclaration(ensureModifiers(input), input.name, factory2.createModuleBlock(declarations), 16 /* Namespace */); + const namespaceDecl = factory2.createModuleDeclaration(ensureModifiers(input), input.name, factory2.createModuleBlock(declarations), 32 /* Namespace */); if (!hasEffectiveModifier(clean2, 1024 /* Default */)) { return [clean2, namespaceDecl]; } @@ -109056,17 +110815,17 @@ ${lanes.join("\n")} return clean2; } } - case 266 /* ModuleDeclaration */: { + case 267 /* ModuleDeclaration */: { needsDeclare = false; const inner = input.body; - if (inner && inner.kind === 267 /* ModuleBlock */) { + if (inner && inner.kind === 268 /* ModuleBlock */) { const oldNeedsScopeFix = needsScopeFixMarker; const oldHasScopeFix = resultHasScopeMarker; resultHasScopeMarker = false; needsScopeFixMarker = false; const statements = visitNodes2(inner.statements, visitDeclarationStatements, isStatement); let lateStatements = transformAndReplaceLatePaintedStatements(statements); - if (input.flags & 16777216 /* Ambient */) { + if (input.flags & 33554432 /* Ambient */) { needsScopeFixMarker = false; } if (!isGlobalScopeAugmentation(input) && !hasScopeMarker2(lateStatements) && !resultHasScopeMarker) { @@ -109081,7 +110840,7 @@ ${lanes.join("\n")} needsScopeFixMarker = oldNeedsScopeFix; resultHasScopeMarker = oldHasScopeFix; const mods = ensureModifiers(input); - return cleanup(factory2.updateModuleDeclaration( + return cleanup(updateModuleDeclarationAndKeyword( input, mods, isExternalModuleAugmentation(input) ? rewriteModuleSpecifier(input, input.name) : input.name, @@ -109095,7 +110854,7 @@ ${lanes.join("\n")} const id = getOriginalNodeId(inner); const body = lateStatementReplacementMap.get(id); lateStatementReplacementMap.delete(id); - return cleanup(factory2.updateModuleDeclaration( + return cleanup(updateModuleDeclarationAndKeyword( input, mods, input.name, @@ -109103,7 +110862,7 @@ ${lanes.join("\n")} )); } } - case 262 /* ClassDeclaration */: { + case 263 /* ClassDeclaration */: { errorNameNode = input.name; errorFallbackNode = input; const modifiers = factory2.createNodeArray(ensureModifiers(input)); @@ -109219,10 +110978,10 @@ ${lanes.join("\n")} )); } } - case 242 /* VariableStatement */: { + case 243 /* VariableStatement */: { return cleanup(transformVariableStatement(input)); } - case 265 /* EnumDeclaration */: { + case 266 /* EnumDeclaration */: { return cleanup(factory2.updateEnumDeclaration(input, factory2.createNodeArray(ensureModifiers(input)), input.name, factory2.createNodeArray(mapDefined(input.members, (m) => { if (shouldStripInternal(m)) return; @@ -109239,7 +110998,7 @@ ${lanes.join("\n")} if (canProdiceDiagnostic) { getSymbolAccessibilityDiagnostic = oldDiag; } - if (input.kind === 266 /* ModuleDeclaration */) { + if (input.kind === 267 /* ModuleDeclaration */) { needsDeclare = previousNeedsDeclare; } if (node === input) { @@ -109256,13 +111015,23 @@ ${lanes.join("\n")} const nodes = visitNodes2(input.declarationList.declarations, visitDeclarationSubtree, isVariableDeclaration); if (!length(nodes)) return; - return factory2.updateVariableStatement(input, factory2.createNodeArray(ensureModifiers(input)), factory2.updateVariableDeclarationList(input.declarationList, nodes)); + const modifiers = factory2.createNodeArray(ensureModifiers(input)); + let declList; + if (isVarUsing(input.declarationList) || isVarAwaitUsing(input.declarationList)) { + declList = factory2.createVariableDeclarationList(nodes, 2 /* Const */); + setOriginalNode(declList, input.declarationList); + setTextRange(declList, input.declarationList); + setCommentRange(declList, input.declarationList); + } else { + declList = factory2.updateVariableDeclarationList(input.declarationList, nodes); + } + return factory2.updateVariableStatement(input, modifiers, declList); } function recreateBindingPattern(d) { return flatten(mapDefined(d.elements, (e) => recreateBindingElement(e))); } function recreateBindingElement(e) { - if (e.kind === 231 /* OmittedExpression */) { + if (e.kind === 232 /* OmittedExpression */) { return; } if (e.name) { @@ -109322,7 +111091,7 @@ ${lanes.join("\n")} function ensureModifierFlags(node) { let mask2 = 258047 /* All */ ^ (4 /* Public */ | 512 /* Async */ | 16384 /* Override */); let additions = needsDeclare && !isAlwaysType(node) ? 2 /* Ambient */ : 0 /* None */; - const parentIsFile = node.parent.kind === 311 /* SourceFile */; + const parentIsFile = node.parent.kind === 312 /* SourceFile */; if (!parentIsFile || isBundledEmit && parentIsFile && isExternalModule(node.parent)) { mask2 ^= 2 /* Ambient */; additions = 0 /* None */; @@ -109348,7 +111117,7 @@ ${lanes.join("\n")} } } function isAlwaysType(node) { - if (node.kind === 263 /* InterfaceDeclaration */) { + if (node.kind === 264 /* InterfaceDeclaration */) { return true; } return false; @@ -109368,57 +111137,57 @@ ${lanes.join("\n")} } function getTypeAnnotationFromAccessor(accessor) { if (accessor) { - return accessor.kind === 176 /* GetAccessor */ ? accessor.type : accessor.parameters.length > 0 ? accessor.parameters[0].type : void 0; + return accessor.kind === 177 /* GetAccessor */ ? accessor.type : accessor.parameters.length > 0 ? accessor.parameters[0].type : void 0; } } function canHaveLiteralInitializer(node) { switch (node.kind) { - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: return !hasEffectiveModifier(node, 8 /* Private */); - case 168 /* Parameter */: - case 259 /* VariableDeclaration */: + case 169 /* Parameter */: + case 260 /* VariableDeclaration */: return true; } return false; } function isPreservedDeclarationStatement(node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 266 /* ModuleDeclaration */: - case 270 /* ImportEqualsDeclaration */: - case 263 /* InterfaceDeclaration */: - case 262 /* ClassDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 265 /* EnumDeclaration */: - case 242 /* VariableStatement */: - case 271 /* ImportDeclaration */: - case 277 /* ExportDeclaration */: - case 276 /* ExportAssignment */: + case 262 /* FunctionDeclaration */: + case 267 /* ModuleDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 264 /* InterfaceDeclaration */: + case 263 /* ClassDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 266 /* EnumDeclaration */: + case 243 /* VariableStatement */: + case 272 /* ImportDeclaration */: + case 278 /* ExportDeclaration */: + case 277 /* ExportAssignment */: return true; } return false; } function isProcessedComponent(node) { switch (node.kind) { - case 179 /* ConstructSignature */: - case 175 /* Constructor */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 172 /* MethodSignature */: - case 178 /* CallSignature */: - case 180 /* IndexSignature */: - case 259 /* VariableDeclaration */: - case 167 /* TypeParameter */: - case 232 /* ExpressionWithTypeArguments */: - case 182 /* TypeReference */: - case 193 /* ConditionalType */: - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 204 /* ImportType */: + case 180 /* ConstructSignature */: + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 181 /* IndexSignature */: + case 260 /* VariableDeclaration */: + case 168 /* TypeParameter */: + case 233 /* ExpressionWithTypeArguments */: + case 183 /* TypeReference */: + case 194 /* ConditionalType */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 205 /* ImportType */: return true; } return false; @@ -109467,16 +111236,17 @@ ${lanes.join("\n")} transformers.push(transformTypeScript); if (compilerOptions.experimentalDecorators) { transformers.push(transformLegacyDecorators); - } else if (languageVersion < 99 /* ESNext */ || !useDefineForClassFields) { - transformers.push(transformESDecorators); } - transformers.push(transformClassFields); if (getJSXTransformEnabled(compilerOptions)) { transformers.push(transformJsx); } if (languageVersion < 99 /* ESNext */) { transformers.push(transformESNext); } + if (!compilerOptions.experimentalDecorators && (languageVersion < 99 /* ESNext */ || !useDefineForClassFields)) { + transformers.push(transformESDecorators); + } + transformers.push(transformClassFields); if (languageVersion < 8 /* ES2021 */) { transformers.push(transformES2021); } @@ -109535,7 +111305,7 @@ ${lanes.join("\n")} } function transformNodes(resolver, host, factory2, options, nodes, transformers, allowDtsFiles) { var _a, _b; - const enabledSyntaxKindFeatures = new Array(362 /* Count */); + const enabledSyntaxKindFeatures = new Array(363 /* Count */); let lexicalEnvironmentVariableDeclarations; let lexicalEnvironmentFunctionDeclarations; let lexicalEnvironmentStatements; @@ -109614,7 +111384,7 @@ ${lanes.join("\n")} state = 1 /* Initialized */; const transformed = []; for (const node of nodes) { - (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.Emit, "transformNodes", node.kind === 311 /* SourceFile */ ? { path: node.path } : { kind: node.kind, pos: node.pos, end: node.end }); + (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.Emit, "transformNodes", node.kind === 312 /* SourceFile */ ? { path: node.path } : { kind: node.kind, pos: node.pos, end: node.end }); transformed.push((allowDtsFiles ? transformation : transformRoot)(node)); (_b = tracing) == null ? void 0 : _b.pop(); } @@ -109942,7 +111712,7 @@ ${lanes.join("\n")} } function getOutputPathsFor(sourceFile, host, forceDtsPaths) { const options = host.getCompilerOptions(); - if (sourceFile.kind === 312 /* Bundle */) { + if (sourceFile.kind === 313 /* Bundle */) { return getOutputPathsForBundle(options, forceDtsPaths); } else { const ownOutputFilePath = getOwnEmitOutputFilePath(sourceFile.fileName, host, getOutputExtension(sourceFile.fileName, options)); @@ -110334,8 +112104,8 @@ ${lanes.join("\n")} } function printSourceFileOrBundle(jsFilePath, sourceMapFilePath, transform2, printer, mapOptions) { const sourceFileOrBundle = transform2.transformed[0]; - const bundle = sourceFileOrBundle.kind === 312 /* Bundle */ ? sourceFileOrBundle : void 0; - const sourceFile = sourceFileOrBundle.kind === 311 /* SourceFile */ ? sourceFileOrBundle : void 0; + const bundle = sourceFileOrBundle.kind === 313 /* Bundle */ ? sourceFileOrBundle : void 0; + const sourceFile = sourceFileOrBundle.kind === 312 /* SourceFile */ ? sourceFileOrBundle : void 0; const sourceFiles = bundle ? bundle.sourceFiles : [sourceFile]; let sourceMapGenerator; if (shouldEmitSourceMaps(mapOptions, sourceFileOrBundle)) { @@ -110397,7 +112167,7 @@ ${lanes.join("\n")} writer.clear(); } function shouldEmitSourceMaps(mapOptions, sourceFileOrBundle) { - return (mapOptions.sourceMap || mapOptions.inlineSourceMap) && (sourceFileOrBundle.kind !== 311 /* SourceFile */ || !fileExtensionIs(sourceFileOrBundle.fileName, ".json" /* Json */)); + return (mapOptions.sourceMap || mapOptions.inlineSourceMap) && (sourceFileOrBundle.kind !== 312 /* SourceFile */ || !fileExtensionIs(sourceFileOrBundle.fileName, ".json" /* Json */)); } function getSourceRoot(mapOptions) { const sourceRoot = normalizeSlashes(mapOptions.sourceRoot || ""); @@ -110717,11 +112487,11 @@ ${lanes.join("\n")} break; } switch (node.kind) { - case 311 /* SourceFile */: + case 312 /* SourceFile */: return printFile(node); - case 312 /* Bundle */: + case 313 /* Bundle */: return printBundle(node); - case 313 /* UnparsedSource */: + case 314 /* UnparsedSource */: return printUnparsedSource(node); } writeNode(hint, node, sourceFile, beginPrint()); @@ -111100,301 +112870,301 @@ ${lanes.join("\n")} return emitIdentifier(node); case 81 /* PrivateIdentifier */: return emitPrivateIdentifier(node); - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: return emitQualifiedName(node); - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: return emitComputedPropertyName(node); - case 167 /* TypeParameter */: + case 168 /* TypeParameter */: return emitTypeParameter(node); - case 168 /* Parameter */: + case 169 /* Parameter */: return emitParameter(node); - case 169 /* Decorator */: + case 170 /* Decorator */: return emitDecorator(node); - case 170 /* PropertySignature */: + case 171 /* PropertySignature */: return emitPropertySignature(node); - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return emitPropertyDeclaration(node); - case 172 /* MethodSignature */: + case 173 /* MethodSignature */: return emitMethodSignature(node); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return emitMethodDeclaration(node); - case 174 /* ClassStaticBlockDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: return emitClassStaticBlockDeclaration(node); - case 175 /* Constructor */: + case 176 /* Constructor */: return emitConstructor(node); - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return emitAccessorDeclaration(node); - case 178 /* CallSignature */: + case 179 /* CallSignature */: return emitCallSignature(node); - case 179 /* ConstructSignature */: + case 180 /* ConstructSignature */: return emitConstructSignature(node); - case 180 /* IndexSignature */: + case 181 /* IndexSignature */: return emitIndexSignature(node); - case 181 /* TypePredicate */: + case 182 /* TypePredicate */: return emitTypePredicate(node); - case 182 /* TypeReference */: + case 183 /* TypeReference */: return emitTypeReference(node); - case 183 /* FunctionType */: + case 184 /* FunctionType */: return emitFunctionType(node); - case 184 /* ConstructorType */: + case 185 /* ConstructorType */: return emitConstructorType(node); - case 185 /* TypeQuery */: + case 186 /* TypeQuery */: return emitTypeQuery(node); - case 186 /* TypeLiteral */: + case 187 /* TypeLiteral */: return emitTypeLiteral(node); - case 187 /* ArrayType */: + case 188 /* ArrayType */: return emitArrayType(node); - case 188 /* TupleType */: + case 189 /* TupleType */: return emitTupleType(node); - case 189 /* OptionalType */: + case 190 /* OptionalType */: return emitOptionalType(node); - case 191 /* UnionType */: + case 192 /* UnionType */: return emitUnionType(node); - case 192 /* IntersectionType */: + case 193 /* IntersectionType */: return emitIntersectionType(node); - case 193 /* ConditionalType */: + case 194 /* ConditionalType */: return emitConditionalType(node); - case 194 /* InferType */: + case 195 /* InferType */: return emitInferType(node); - case 195 /* ParenthesizedType */: + case 196 /* ParenthesizedType */: return emitParenthesizedType(node); - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return emitExpressionWithTypeArguments(node); - case 196 /* ThisType */: + case 197 /* ThisType */: return emitThisType(); - case 197 /* TypeOperator */: + case 198 /* TypeOperator */: return emitTypeOperator(node); - case 198 /* IndexedAccessType */: + case 199 /* IndexedAccessType */: return emitIndexedAccessType(node); - case 199 /* MappedType */: + case 200 /* MappedType */: return emitMappedType(node); - case 200 /* LiteralType */: + case 201 /* LiteralType */: return emitLiteralType(node); - case 201 /* NamedTupleMember */: + case 202 /* NamedTupleMember */: return emitNamedTupleMember(node); - case 202 /* TemplateLiteralType */: + case 203 /* TemplateLiteralType */: return emitTemplateType(node); - case 203 /* TemplateLiteralTypeSpan */: + case 204 /* TemplateLiteralTypeSpan */: return emitTemplateTypeSpan(node); - case 204 /* ImportType */: + case 205 /* ImportType */: return emitImportTypeNode(node); - case 205 /* ObjectBindingPattern */: + case 206 /* ObjectBindingPattern */: return emitObjectBindingPattern(node); - case 206 /* ArrayBindingPattern */: + case 207 /* ArrayBindingPattern */: return emitArrayBindingPattern(node); - case 207 /* BindingElement */: + case 208 /* BindingElement */: return emitBindingElement(node); - case 238 /* TemplateSpan */: + case 239 /* TemplateSpan */: return emitTemplateSpan(node); - case 239 /* SemicolonClassElement */: + case 240 /* SemicolonClassElement */: return emitSemicolonClassElement(); - case 240 /* Block */: + case 241 /* Block */: return emitBlock(node); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return emitVariableStatement(node); - case 241 /* EmptyStatement */: + case 242 /* EmptyStatement */: return emitEmptyStatement( /*isEmbeddedStatement*/ false ); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return emitExpressionStatement(node); - case 244 /* IfStatement */: + case 245 /* IfStatement */: return emitIfStatement(node); - case 245 /* DoStatement */: + case 246 /* DoStatement */: return emitDoStatement(node); - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: return emitWhileStatement(node); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return emitForStatement(node); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return emitForInStatement(node); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return emitForOfStatement(node); - case 250 /* ContinueStatement */: + case 251 /* ContinueStatement */: return emitContinueStatement(node); - case 251 /* BreakStatement */: + case 252 /* BreakStatement */: return emitBreakStatement(node); - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: return emitReturnStatement(node); - case 253 /* WithStatement */: + case 254 /* WithStatement */: return emitWithStatement(node); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return emitSwitchStatement(node); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return emitLabeledStatement(node); - case 256 /* ThrowStatement */: + case 257 /* ThrowStatement */: return emitThrowStatement(node); - case 257 /* TryStatement */: + case 258 /* TryStatement */: return emitTryStatement(node); - case 258 /* DebuggerStatement */: + case 259 /* DebuggerStatement */: return emitDebuggerStatement(node); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return emitVariableDeclaration(node); - case 260 /* VariableDeclarationList */: + case 261 /* VariableDeclarationList */: return emitVariableDeclarationList(node); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return emitFunctionDeclaration(node); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return emitClassDeclaration(node); - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: return emitInterfaceDeclaration(node); - case 264 /* TypeAliasDeclaration */: + case 265 /* TypeAliasDeclaration */: return emitTypeAliasDeclaration(node); - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return emitEnumDeclaration(node); - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return emitModuleDeclaration(node); - case 267 /* ModuleBlock */: + case 268 /* ModuleBlock */: return emitModuleBlock(node); - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: return emitCaseBlock(node); - case 269 /* NamespaceExportDeclaration */: + case 270 /* NamespaceExportDeclaration */: return emitNamespaceExportDeclaration(node); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return emitImportEqualsDeclaration(node); - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return emitImportDeclaration(node); - case 272 /* ImportClause */: + case 273 /* ImportClause */: return emitImportClause(node); - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: return emitNamespaceImport(node); - case 279 /* NamespaceExport */: + case 280 /* NamespaceExport */: return emitNamespaceExport(node); - case 274 /* NamedImports */: + case 275 /* NamedImports */: return emitNamedImports(node); - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: return emitImportSpecifier(node); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return emitExportAssignment(node); - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return emitExportDeclaration(node); - case 278 /* NamedExports */: + case 279 /* NamedExports */: return emitNamedExports(node); - case 280 /* ExportSpecifier */: + case 281 /* ExportSpecifier */: return emitExportSpecifier(node); - case 299 /* AssertClause */: + case 300 /* AssertClause */: return emitAssertClause(node); - case 300 /* AssertEntry */: + case 301 /* AssertEntry */: return emitAssertEntry(node); - case 281 /* MissingDeclaration */: + case 282 /* MissingDeclaration */: return; - case 282 /* ExternalModuleReference */: + case 283 /* ExternalModuleReference */: return emitExternalModuleReference(node); case 12 /* JsxText */: return emitJsxText(node); - case 285 /* JsxOpeningElement */: - case 288 /* JsxOpeningFragment */: + case 286 /* JsxOpeningElement */: + case 289 /* JsxOpeningFragment */: return emitJsxOpeningElementOrFragment(node); - case 286 /* JsxClosingElement */: - case 289 /* JsxClosingFragment */: + case 287 /* JsxClosingElement */: + case 290 /* JsxClosingFragment */: return emitJsxClosingElementOrFragment(node); - case 290 /* JsxAttribute */: + case 291 /* JsxAttribute */: return emitJsxAttribute(node); - case 291 /* JsxAttributes */: + case 292 /* JsxAttributes */: return emitJsxAttributes(node); - case 292 /* JsxSpreadAttribute */: + case 293 /* JsxSpreadAttribute */: return emitJsxSpreadAttribute(node); - case 293 /* JsxExpression */: + case 294 /* JsxExpression */: return emitJsxExpression(node); - case 294 /* JsxNamespacedName */: + case 295 /* JsxNamespacedName */: return emitJsxNamespacedName(node); - case 295 /* CaseClause */: + case 296 /* CaseClause */: return emitCaseClause(node); - case 296 /* DefaultClause */: + case 297 /* DefaultClause */: return emitDefaultClause(node); - case 297 /* HeritageClause */: + case 298 /* HeritageClause */: return emitHeritageClause(node); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return emitCatchClause(node); - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return emitPropertyAssignment(node); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return emitShorthandPropertyAssignment(node); - case 304 /* SpreadAssignment */: + case 305 /* SpreadAssignment */: return emitSpreadAssignment(node); - case 305 /* EnumMember */: + case 306 /* EnumMember */: return emitEnumMember(node); - case 306 /* UnparsedPrologue */: + case 307 /* UnparsedPrologue */: return writeUnparsedNode(node); - case 313 /* UnparsedSource */: - case 307 /* UnparsedPrepend */: + case 314 /* UnparsedSource */: + case 308 /* UnparsedPrepend */: return emitUnparsedSourceOrPrepend(node); - case 308 /* UnparsedText */: - case 309 /* UnparsedInternalText */: + case 309 /* UnparsedText */: + case 310 /* UnparsedInternalText */: return emitUnparsedTextLike(node); - case 310 /* UnparsedSyntheticReference */: + case 311 /* UnparsedSyntheticReference */: return emitUnparsedSyntheticReference(node); - case 311 /* SourceFile */: + case 312 /* SourceFile */: return emitSourceFile(node); - case 312 /* Bundle */: + case 313 /* Bundle */: return Debug.fail("Bundles should be printed using printBundle"); - case 314 /* InputFiles */: + case 315 /* InputFiles */: return Debug.fail("InputFiles should not be printed"); - case 315 /* JSDocTypeExpression */: + case 316 /* JSDocTypeExpression */: return emitJSDocTypeExpression(node); - case 316 /* JSDocNameReference */: + case 317 /* JSDocNameReference */: return emitJSDocNameReference(node); - case 318 /* JSDocAllType */: + case 319 /* JSDocAllType */: return writePunctuation("*"); - case 319 /* JSDocUnknownType */: + case 320 /* JSDocUnknownType */: return writePunctuation("?"); - case 320 /* JSDocNullableType */: + case 321 /* JSDocNullableType */: return emitJSDocNullableType(node); - case 321 /* JSDocNonNullableType */: + case 322 /* JSDocNonNullableType */: return emitJSDocNonNullableType(node); - case 322 /* JSDocOptionalType */: + case 323 /* JSDocOptionalType */: return emitJSDocOptionalType(node); - case 323 /* JSDocFunctionType */: + case 324 /* JSDocFunctionType */: return emitJSDocFunctionType(node); - case 190 /* RestType */: - case 324 /* JSDocVariadicType */: + case 191 /* RestType */: + case 325 /* JSDocVariadicType */: return emitRestOrJSDocVariadicType(node); - case 325 /* JSDocNamepathType */: + case 326 /* JSDocNamepathType */: return; - case 326 /* JSDoc */: + case 327 /* JSDoc */: return emitJSDoc(node); - case 328 /* JSDocTypeLiteral */: + case 329 /* JSDocTypeLiteral */: return emitJSDocTypeLiteral(node); - case 329 /* JSDocSignature */: + case 330 /* JSDocSignature */: return emitJSDocSignature(node); - case 333 /* JSDocTag */: - case 338 /* JSDocClassTag */: - case 343 /* JSDocOverrideTag */: + case 334 /* JSDocTag */: + case 339 /* JSDocClassTag */: + case 344 /* JSDocOverrideTag */: return emitJSDocSimpleTag(node); - case 334 /* JSDocAugmentsTag */: - case 335 /* JSDocImplementsTag */: + case 335 /* JSDocAugmentsTag */: + case 336 /* JSDocImplementsTag */: return emitJSDocHeritageTag(node); - case 336 /* JSDocAuthorTag */: - case 337 /* JSDocDeprecatedTag */: + case 337 /* JSDocAuthorTag */: + case 338 /* JSDocDeprecatedTag */: return; - case 339 /* JSDocPublicTag */: - case 340 /* JSDocPrivateTag */: - case 341 /* JSDocProtectedTag */: - case 342 /* JSDocReadonlyTag */: + case 340 /* JSDocPublicTag */: + case 341 /* JSDocPrivateTag */: + case 342 /* JSDocProtectedTag */: + case 343 /* JSDocReadonlyTag */: return; - case 344 /* JSDocCallbackTag */: + case 345 /* JSDocCallbackTag */: return emitJSDocCallbackTag(node); - case 345 /* JSDocOverloadTag */: + case 346 /* JSDocOverloadTag */: return emitJSDocOverloadTag(node); - case 347 /* JSDocParameterTag */: - case 354 /* JSDocPropertyTag */: + case 348 /* JSDocParameterTag */: + case 355 /* JSDocPropertyTag */: return emitJSDocPropertyLikeTag(node); - case 346 /* JSDocEnumTag */: - case 348 /* JSDocReturnTag */: - case 349 /* JSDocThisTag */: - case 350 /* JSDocTypeTag */: - case 355 /* JSDocThrowsTag */: - case 356 /* JSDocSatisfiesTag */: + case 347 /* JSDocEnumTag */: + case 349 /* JSDocReturnTag */: + case 350 /* JSDocThisTag */: + case 351 /* JSDocTypeTag */: + case 356 /* JSDocThrowsTag */: + case 357 /* JSDocSatisfiesTag */: return emitJSDocSimpleTypedTag(node); - case 351 /* JSDocTemplateTag */: + case 352 /* JSDocTemplateTag */: return emitJSDocTemplateTag(node); - case 352 /* JSDocTypedefTag */: + case 353 /* JSDocTypedefTag */: return emitJSDocTypedefTag(node); - case 353 /* JSDocSeeTag */: + case 354 /* JSDocSeeTag */: return emitJSDocSeeTag(node); - case 358 /* NotEmittedStatement */: + case 359 /* NotEmittedStatement */: return; } if (isExpression(node)) { @@ -111427,83 +113197,83 @@ ${lanes.join("\n")} return emitIdentifier(node); case 81 /* PrivateIdentifier */: return emitPrivateIdentifier(node); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return emitArrayLiteralExpression(node); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return emitObjectLiteralExpression(node); - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return emitPropertyAccessExpression(node); - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return emitElementAccessExpression(node); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return emitCallExpression(node); - case 213 /* NewExpression */: + case 214 /* NewExpression */: return emitNewExpression(node); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return emitTaggedTemplateExpression(node); - case 215 /* TypeAssertionExpression */: + case 216 /* TypeAssertionExpression */: return emitTypeAssertionExpression(node); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return emitParenthesizedExpression(node); - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: return emitFunctionExpression(node); - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return emitArrowFunction(node); - case 219 /* DeleteExpression */: + case 220 /* DeleteExpression */: return emitDeleteExpression(node); - case 220 /* TypeOfExpression */: + case 221 /* TypeOfExpression */: return emitTypeOfExpression(node); - case 221 /* VoidExpression */: + case 222 /* VoidExpression */: return emitVoidExpression(node); - case 222 /* AwaitExpression */: + case 223 /* AwaitExpression */: return emitAwaitExpression(node); - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: return emitPrefixUnaryExpression(node); - case 224 /* PostfixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return emitPostfixUnaryExpression(node); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return emitBinaryExpression(node); - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: return emitConditionalExpression(node); - case 227 /* TemplateExpression */: + case 228 /* TemplateExpression */: return emitTemplateExpression(node); - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: return emitYieldExpression(node); - case 229 /* SpreadElement */: + case 230 /* SpreadElement */: return emitSpreadElement(node); - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return emitClassExpression(node); - case 231 /* OmittedExpression */: + case 232 /* OmittedExpression */: return; - case 233 /* AsExpression */: + case 234 /* AsExpression */: return emitAsExpression(node); - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: return emitNonNullExpression(node); - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return emitExpressionWithTypeArguments(node); - case 237 /* SatisfiesExpression */: + case 238 /* SatisfiesExpression */: return emitSatisfiesExpression(node); - case 235 /* MetaProperty */: + case 236 /* MetaProperty */: return emitMetaProperty(node); - case 236 /* SyntheticExpression */: + case 237 /* SyntheticExpression */: return Debug.fail("SyntheticExpression should never be printed."); - case 281 /* MissingDeclaration */: + case 282 /* MissingDeclaration */: return; - case 283 /* JsxElement */: + case 284 /* JsxElement */: return emitJsxElement(node); - case 284 /* JsxSelfClosingElement */: + case 285 /* JsxSelfClosingElement */: return emitJsxSelfClosingElement(node); - case 287 /* JsxFragment */: + case 288 /* JsxFragment */: return emitJsxFragment(node); - case 357 /* SyntaxList */: + case 358 /* SyntaxList */: return Debug.fail("SyntaxList should not be printed"); - case 358 /* NotEmittedStatement */: + case 359 /* NotEmittedStatement */: return; - case 359 /* PartiallyEmittedExpression */: + case 360 /* PartiallyEmittedExpression */: return emitPartiallyEmittedExpression(node); - case 360 /* CommaListExpression */: + case 361 /* CommaListExpression */: return emitCommaList(node); - case 361 /* SyntheticReferenceExpression */: + case 362 /* SyntheticReferenceExpression */: return Debug.fail("SyntheticReferenceExpression should not be printed"); } } @@ -111549,7 +113319,7 @@ ${lanes.join("\n")} } function emitHelpers(node) { let helpersEmitted = false; - const bundle = node.kind === 312 /* Bundle */ ? node : void 0; + const bundle = node.kind === 313 /* Bundle */ ? node : void 0; if (bundle && moduleKind === 0 /* None */) { return; } @@ -111624,7 +113394,7 @@ ${lanes.join("\n")} updateOrPushBundleFileTextLike( pos, writer.getTextPos(), - unparsed.kind === 308 /* UnparsedText */ ? "text" /* Text */ : "internal" /* Internal */ + unparsed.kind === 309 /* UnparsedText */ ? "text" /* Text */ : "internal" /* Internal */ ); } } @@ -111660,7 +113430,7 @@ ${lanes.join("\n")} } function emitTabStop(hint, node, snippet) { Debug.assert( - node.kind === 241 /* EmptyStatement */, + node.kind === 242 /* EmptyStatement */, `A tab stop cannot be attached to a node of kind ${Debug.formatSyntaxKind(node.kind)}.` ); Debug.assert( @@ -111732,7 +113502,7 @@ ${lanes.join("\n")} emit(node.dotDotDotToken); emitNodeWithWriter(node.name, writeParameter); emit(node.questionToken); - if (node.parent && node.parent.kind === 323 /* JSDocFunctionType */ && !node.name) { + if (node.parent && node.parent.kind === 324 /* JSDocFunctionType */ && !node.name) { emit(node.type); } else { emitTypeAnnotation(node.type); @@ -111808,7 +113578,7 @@ ${lanes.join("\n")} /*allowDecorators*/ true ); - const token = node.kind === 176 /* GetAccessor */ ? 139 /* GetKeyword */ : 153 /* SetKeyword */; + const token = node.kind === 177 /* GetAccessor */ ? 139 /* GetKeyword */ : 153 /* SetKeyword */; emitTokenWithComment(token, pos, writeKeyword, node); writeSpace(); emit(node.name); @@ -112162,7 +113932,7 @@ ${lanes.join("\n")} return !(expression.numericLiteralFlags & 448 /* WithSpecifier */) && !stringContains(text, tokenToString(25 /* DotToken */)) && !stringContains(text, String.fromCharCode(69 /* E */)) && !stringContains(text, String.fromCharCode(101 /* e */)); } else if (isAccessExpression(expression)) { const constantValue = getConstantValue(expression); - return typeof constantValue === "number" && isFinite(constantValue) && Math.floor(constantValue) === constantValue; + return typeof constantValue === "number" && isFinite(constantValue) && constantValue >= 0 && Math.floor(constantValue) === constantValue; } } function emitElementAccessExpression(node) { @@ -112273,7 +114043,7 @@ ${lanes.join("\n")} } function shouldEmitWhitespaceBeforeOperand(node) { const operand = node.operand; - return operand.kind === 223 /* PrefixUnaryExpression */ && (node.operator === 40 /* PlusToken */ && (operand.operator === 40 /* PlusToken */ || operand.operator === 46 /* PlusPlusToken */) || node.operator === 41 /* MinusToken */ && (operand.operator === 41 /* MinusToken */ || operand.operator === 47 /* MinusMinusToken */)); + return operand.kind === 224 /* PrefixUnaryExpression */ && (node.operator === 40 /* PlusToken */ && (operand.operator === 40 /* PlusToken */ || operand.operator === 46 /* PlusPlusToken */) || node.operator === 41 /* MinusToken */ && (operand.operator === 41 /* MinusToken */ || operand.operator === 47 /* MinusMinusToken */)); } function emitPostfixUnaryExpression(node) { emitExpression(node.operand, parenthesizer.parenthesizeOperandOfPostfixUnary); @@ -112532,7 +114302,7 @@ ${lanes.join("\n")} if (node.elseStatement) { writeLineOrSpace(node, node.thenStatement, node.elseStatement); emitTokenWithComment(93 /* ElseKeyword */, node.thenStatement.end, writeKeyword, node); - if (node.elseStatement.kind === 244 /* IfStatement */) { + if (node.elseStatement.kind === 245 /* IfStatement */) { writeSpace(); emit(node.elseStatement); } else { @@ -112599,7 +114369,7 @@ ${lanes.join("\n")} emitTokenWithComment(21 /* OpenParenToken */, openParenPos, writePunctuation, node); emitForBinding(node.initializer); writeSpace(); - emitTokenWithComment(164 /* OfKeyword */, node.initializer.end, writeKeyword, node); + emitTokenWithComment(165 /* OfKeyword */, node.initializer.end, writeKeyword, node); writeSpace(); emitExpression(node.expression); emitTokenWithComment(22 /* CloseParenToken */, node.expression.end, writePunctuation, node); @@ -112607,7 +114377,7 @@ ${lanes.join("\n")} } function emitForBinding(node) { if (node !== void 0) { - if (node.kind === 260 /* VariableDeclarationList */) { + if (node.kind === 261 /* VariableDeclarationList */) { emit(node); } else { emitExpression(node); @@ -112643,7 +114413,7 @@ ${lanes.join("\n")} } pos = writeTokenText(token, writer2, pos); if (isSimilarNode && contextNode.end !== pos) { - const isJsxExprContext = contextNode.kind === 293 /* JsxExpression */; + const isJsxExprContext = contextNode.kind === 294 /* JsxExpression */; emitTrailingCommentsOfPosition( pos, /*prefixSpace*/ @@ -112755,7 +114525,14 @@ ${lanes.join("\n")} emitInitializer(node.initializer, ((_a = node.type) == null ? void 0 : _a.end) ?? ((_c = (_b = node.name.emitNode) == null ? void 0 : _b.typeNode) == null ? void 0 : _c.end) ?? node.name.end, node, parenthesizer.parenthesizeExpressionForDisallowedComma); } function emitVariableDeclarationList(node) { - writeKeyword(isLet(node) ? "let" : isVarConst(node) ? "const" : "var"); + if (isVarAwaitUsing(node)) { + writeKeyword("await"); + writeSpace(); + writeKeyword("using"); + } else { + const head = isLet(node) ? "let" : isVarConst(node) ? "const" : isVarUsing(node) ? "using" : "var"; + writeKeyword(head); + } writeSpace(); emitList(node, node.declarations, 528 /* VariableDeclarationList */); } @@ -112964,8 +114741,8 @@ ${lanes.join("\n")} /*allowDecorators*/ false ); - if (~node.flags & 1024 /* GlobalAugmentation */) { - writeKeyword(node.flags & 16 /* Namespace */ ? "namespace" : "module"); + if (~node.flags & 2048 /* GlobalAugmentation */) { + writeKeyword(node.flags & 32 /* Namespace */ ? "namespace" : "module"); writeSpace(); } emit(node.name); @@ -113041,7 +114818,7 @@ ${lanes.join("\n")} if (node.importClause) { emit(node.importClause); writeSpace(); - emitTokenWithComment(160 /* FromKeyword */, node.importClause.end, writeKeyword, node); + emitTokenWithComment(161 /* FromKeyword */, node.importClause.end, writeKeyword, node); writeSpace(); } emitExpression(node.moduleSpecifier); @@ -113108,7 +114885,7 @@ ${lanes.join("\n")} if (node.moduleSpecifier) { writeSpace(); const fromPos = node.exportClause ? node.exportClause.end : nextPos; - emitTokenWithComment(160 /* FromKeyword */, fromPos, writeKeyword, node); + emitTokenWithComment(161 /* FromKeyword */, fromPos, writeKeyword, node); writeSpace(); emitExpression(node.moduleSpecifier); } @@ -113363,7 +115140,7 @@ ${lanes.join("\n")} } } if (node.tags) { - if (node.tags.length === 1 && node.tags[0].kind === 350 /* JSDocTypeTag */ && !node.comment) { + if (node.tags.length === 1 && node.tags[0].kind === 351 /* JSDocTypeTag */ && !node.comment) { writeSpace(); emit(node.tags[0]); } else { @@ -113407,7 +115184,7 @@ ${lanes.join("\n")} function emitJSDocTypedefTag(tag) { emitJSDocTagName(tag.tagName); if (tag.typeExpression) { - if (tag.typeExpression.kind === 315 /* JSDocTypeExpression */) { + if (tag.typeExpression.kind === 316 /* JSDocTypeExpression */) { emitJSDocTypeExpression(tag.typeExpression); } else { writeSpace(); @@ -113425,7 +115202,7 @@ ${lanes.join("\n")} emit(tag.fullName); } emitJSDocComment(tag.comment); - if (tag.typeExpression && tag.typeExpression.kind === 328 /* JSDocTypeLiteral */) { + if (tag.typeExpression && tag.typeExpression.kind === 329 /* JSDocTypeLiteral */) { emitJSDocTypeLiteral(tag.typeExpression); } } @@ -114308,7 +116085,7 @@ ${lanes.join("\n")} return block.statements.length === 0 && (!currentSourceFile || rangeEndIsOnSameLineAsRangeStart(block, block, currentSourceFile)); } function skipSynthesizedParentheses(node) { - while (node.kind === 216 /* ParenthesizedExpression */ && nodeIsSynthesized(node)) { + while (node.kind === 217 /* ParenthesizedExpression */ && nodeIsSynthesized(node)) { node = node.expression; } return node; @@ -114395,84 +116172,84 @@ ${lanes.join("\n")} if (!node) return; switch (node.kind) { - case 240 /* Block */: + case 241 /* Block */: forEach(node.statements, generateNames); break; - case 255 /* LabeledStatement */: - case 253 /* WithStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: + case 256 /* LabeledStatement */: + case 254 /* WithStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: generateNames(node.statement); break; - case 244 /* IfStatement */: + case 245 /* IfStatement */: generateNames(node.thenStatement); generateNames(node.elseStatement); break; - case 247 /* ForStatement */: - case 249 /* ForOfStatement */: - case 248 /* ForInStatement */: + case 248 /* ForStatement */: + case 250 /* ForOfStatement */: + case 249 /* ForInStatement */: generateNames(node.initializer); generateNames(node.statement); break; - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: generateNames(node.caseBlock); break; - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: forEach(node.clauses, generateNames); break; - case 295 /* CaseClause */: - case 296 /* DefaultClause */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: forEach(node.statements, generateNames); break; - case 257 /* TryStatement */: + case 258 /* TryStatement */: generateNames(node.tryBlock); generateNames(node.catchClause); generateNames(node.finallyBlock); break; - case 298 /* CatchClause */: + case 299 /* CatchClause */: generateNames(node.variableDeclaration); generateNames(node.block); break; - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: generateNames(node.declarationList); break; - case 260 /* VariableDeclarationList */: + case 261 /* VariableDeclarationList */: forEach(node.declarations, generateNames); break; - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 207 /* BindingElement */: - case 262 /* ClassDeclaration */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 208 /* BindingElement */: + case 263 /* ClassDeclaration */: generateNameIfNeeded(node.name); break; - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: generateNameIfNeeded(node.name); if (getEmitFlags(node) & 1048576 /* ReuseTempVariableScope */) { forEach(node.parameters, generateNames); generateNames(node.body); } break; - case 205 /* ObjectBindingPattern */: - case 206 /* ArrayBindingPattern */: + case 206 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: forEach(node.elements, generateNames); break; - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: generateNames(node.importClause); break; - case 272 /* ImportClause */: + case 273 /* ImportClause */: generateNameIfNeeded(node.name); generateNames(node.namedBindings); break; - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: generateNameIfNeeded(node.name); break; - case 279 /* NamespaceExport */: + case 280 /* NamespaceExport */: generateNameIfNeeded(node.name); break; - case 274 /* NamedImports */: + case 275 /* NamedImports */: forEach(node.elements, generateNames); break; - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: generateNameIfNeeded(node.propertyName || node.name); break; } @@ -114481,12 +116258,12 @@ ${lanes.join("\n")} if (!node) return; switch (node.kind) { - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: - case 171 /* PropertyDeclaration */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: generateNameIfNeeded(node.name); break; } @@ -114744,16 +116521,16 @@ ${lanes.join("\n")} prefix, suffix ); - case 266 /* ModuleDeclaration */: - case 265 /* EnumDeclaration */: + case 267 /* ModuleDeclaration */: + case 266 /* EnumDeclaration */: Debug.assert(!prefix && !suffix && !privateName); return generateNameForModuleOrEnum(node); - case 271 /* ImportDeclaration */: - case 277 /* ExportDeclaration */: + case 272 /* ImportDeclaration */: + case 278 /* ExportDeclaration */: Debug.assert(!prefix && !suffix && !privateName); return generateNameForImportOrExportDeclaration(node); - case 261 /* FunctionDeclaration */: - case 262 /* ClassDeclaration */: { + case 262 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: { Debug.assert(!prefix && !suffix && !privateName); const name = node.name; if (name && !isGeneratedIdentifier(name)) { @@ -114768,17 +116545,17 @@ ${lanes.join("\n")} } return generateNameForExportDefault(); } - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: Debug.assert(!prefix && !suffix && !privateName); return generateNameForExportDefault(); - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: Debug.assert(!prefix && !suffix && !privateName); return generateNameForClassExpression(); - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return generateNameForMethodOrAccessor(node, privateName, prefix, suffix); - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: return makeTempVariableName( 0 /* Auto */, /*reservedInNestedScopes*/ @@ -114872,7 +116649,7 @@ ${lanes.join("\n")} emitLeadingComments( pos, /*isEmittedNode*/ - node.kind !== 358 /* NotEmittedStatement */ + node.kind !== 359 /* NotEmittedStatement */ ); } if (!skipLeadingComments || pos >= 0 && (emitFlags & 1024 /* NoLeadingComments */) !== 0) { @@ -114880,7 +116657,7 @@ ${lanes.join("\n")} } if (!skipTrailingComments || end >= 0 && (emitFlags & 2048 /* NoTrailingComments */) !== 0) { containerEnd = end; - if (node.kind === 260 /* VariableDeclarationList */) { + if (node.kind === 261 /* VariableDeclarationList */) { declarationListContainerEnd = end; } } @@ -114896,7 +116673,7 @@ ${lanes.join("\n")} containerPos = savedContainerPos; containerEnd = savedContainerEnd; declarationListContainerEnd = savedDeclarationListContainerEnd; - if (!skipTrailingComments && node.kind !== 358 /* NotEmittedStatement */) { + if (!skipTrailingComments && node.kind !== 359 /* NotEmittedStatement */) { emitTrailingComments(end); } } @@ -115168,7 +116945,7 @@ ${lanes.join("\n")} } } else { const source = sourceMapRange.source || sourceMapSource; - if (node.kind !== 358 /* NotEmittedStatement */ && (emitFlags & 32 /* NoLeadingSourceMap */) === 0 && sourceMapRange.pos >= 0) { + if (node.kind !== 359 /* NotEmittedStatement */ && (emitFlags & 32 /* NoLeadingSourceMap */) === 0 && sourceMapRange.pos >= 0) { emitSourcePos(sourceMapRange.source || sourceMapSource, skipSourceTrivia(source, sourceMapRange.pos)); } if (emitFlags & 128 /* NoNestedSourceMaps */) { @@ -115183,7 +116960,7 @@ ${lanes.join("\n")} if (emitFlags & 128 /* NoNestedSourceMaps */) { sourceMapsDisabled = false; } - if (node.kind !== 358 /* NotEmittedStatement */ && (emitFlags & 64 /* NoTrailingSourceMap */) === 0 && sourceMapRange.end >= 0) { + if (node.kind !== 359 /* NotEmittedStatement */ && (emitFlags & 64 /* NoTrailingSourceMap */) === 0 && sourceMapRange.end >= 0) { emitSourcePos(sourceMapRange.source || sourceMapSource, sourceMapRange.end); } } @@ -115350,14 +117127,14 @@ ${lanes.join("\n")} }); // src/compiler/watchUtilities.ts - function createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensitiveFileNames) { + function createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensitiveFileNames2) { if (!host.getDirectories || !host.readDirectory) { return void 0; } const cachedReadDirectoryResult = /* @__PURE__ */ new Map(); - const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames); + const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2); return { - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, fileExists, readFile: (path, encoding) => host.readFile(path, encoding), directoryExists: host.directoryExists && directoryExists, @@ -115479,7 +117256,7 @@ ${lanes.join("\n")} const rootResult = tryReadDirectory2(rootDir, rootDirPath); let rootSymLinkResult; if (rootResult !== void 0) { - return matchFiles(rootDir, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath); + return matchFiles(rootDir, extensions, excludes, includes, useCaseSensitiveFileNames2, currentDirectory, depth, getFileSystemEntries, realpath); } return host.readDirectory(rootDir, extensions, excludes, includes, depth); function getFileSystemEntries(dir) { @@ -115674,7 +117451,7 @@ ${lanes.join("\n")} program, extraFileExtensions, currentDirectory, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, writeLog, toPath: toPath3 }) { @@ -115690,7 +117467,7 @@ ${lanes.join("\n")} writeLog(`Project: ${configFileName} Detected file add/remove of non supported extension: ${fileOrDirectory}`); return true; } - if (isExcludedFile(fileOrDirectory, options.configFile.configFileSpecs, getNormalizedAbsolutePath(getDirectoryPath(configFileName), currentDirectory), useCaseSensitiveFileNames, currentDirectory)) { + if (isExcludedFile(fileOrDirectory, options.configFile.configFileSpecs, getNormalizedAbsolutePath(getDirectoryPath(configFileName), currentDirectory), useCaseSensitiveFileNames2, currentDirectory)) { writeLog(`Project: ${configFileName} Detected excluded file: ${fileOrDirectory}`); return true; } @@ -115747,7 +117524,7 @@ ${lanes.join("\n")} function createExcludeHandlingAddWatch(key) { return (file, cb, flags, options, detailInfo1, detailInfo2) => { var _a; - return !matchesExclude(file, key === "watchFile" ? options == null ? void 0 : options.excludeFiles : options == null ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames(), ((_a = host.getCurrentDirectory) == null ? void 0 : _a.call(host)) || "") ? factory2[key].call( + return !matchesExclude(file, key === "watchFile" ? options == null ? void 0 : options.excludeFiles : options == null ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames2(), ((_a = host.getCurrentDirectory) == null ? void 0 : _a.call(host)) || "") ? factory2[key].call( /*thisArgs*/ void 0, file, @@ -115759,7 +117536,7 @@ ${lanes.join("\n")} ) : excludeWatcherFactory(file, flags, options, detailInfo1, detailInfo2); }; } - function useCaseSensitiveFileNames() { + function useCaseSensitiveFileNames2() { return typeof host.useCaseSensitiveFileNames === "boolean" ? host.useCaseSensitiveFileNames : host.useCaseSensitiveFileNames(); } function createExcludeWatcherWithLogging(file, flags, options, detailInfo1, detailInfo2) { @@ -117260,13 +119037,13 @@ ${lanes.join("\n")} sourceFileOptions, /*onError*/ void 0, - shouldCreateNewSourceFile || sourceFileOptions.impliedNodeFormat !== oldSourceFile.impliedNodeFormat + shouldCreateNewSourceFile ) : host.getSourceFile( oldSourceFile.fileName, sourceFileOptions, /*onError*/ void 0, - shouldCreateNewSourceFile || sourceFileOptions.impliedNodeFormat !== oldSourceFile.impliedNodeFormat + shouldCreateNewSourceFile ); if (!newSourceFile) { return 0 /* Not */; @@ -117317,7 +119094,7 @@ ${lanes.join("\n")} structureIsReused = 1 /* SafeModules */; } else if (!arrayIsEqualTo(oldSourceFile.moduleAugmentations, newSourceFile.moduleAugmentations, moduleNameIsEqualTo)) { structureIsReused = 1 /* SafeModules */; - } else if ((oldSourceFile.flags & 6291456 /* PermanentlySetIncrementalFlags */) !== (newSourceFile.flags & 6291456 /* PermanentlySetIncrementalFlags */)) { + } else if ((oldSourceFile.flags & 12582912 /* PermanentlySetIncrementalFlags */) !== (newSourceFile.flags & 12582912 /* PermanentlySetIncrementalFlags */)) { structureIsReused = 1 /* SafeModules */; } else if (!arrayIsEqualTo(oldSourceFile.typeReferenceDirectives, newSourceFile.typeReferenceDirectives, fileReferenceIsEqualTo)) { structureIsReused = 1 /* SafeModules */; @@ -117708,89 +119485,97 @@ ${lanes.join("\n")} return diagnostics; function walk(node, parent2) { switch (parent2.kind) { - case 168 /* Parameter */: - case 171 /* PropertyDeclaration */: - case 173 /* MethodDeclaration */: + case 169 /* Parameter */: + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: if (parent2.questionToken === node) { diagnostics.push(createDiagnosticForNode2(node, Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, "?")); return "skip"; } - case 172 /* MethodSignature */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: - case 218 /* ArrowFunction */: - case 259 /* VariableDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 219 /* ArrowFunction */: + case 260 /* VariableDeclaration */: if (parent2.type === node) { diagnostics.push(createDiagnosticForNode2(node, Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files)); return "skip"; } } switch (node.kind) { - case 272 /* ImportClause */: + case 273 /* ImportClause */: if (node.isTypeOnly) { diagnostics.push(createDiagnosticForNode2(parent2, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, "import type")); return "skip"; } break; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: if (node.isTypeOnly) { diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, "export type")); return "skip"; } break; - case 275 /* ImportSpecifier */: - case 280 /* ExportSpecifier */: + case 276 /* ImportSpecifier */: + case 281 /* ExportSpecifier */: if (node.isTypeOnly) { diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, isImportSpecifier(node) ? "import...type" : "export...type")); return "skip"; } break; - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: diagnostics.push(createDiagnosticForNode2(node, Diagnostics.import_can_only_be_used_in_TypeScript_files)); return "skip"; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: if (node.isExportEquals) { diagnostics.push(createDiagnosticForNode2(node, Diagnostics.export_can_only_be_used_in_TypeScript_files)); return "skip"; } break; - case 297 /* HeritageClause */: + case 298 /* HeritageClause */: const heritageClause = node; if (heritageClause.token === 119 /* ImplementsKeyword */) { diagnostics.push(createDiagnosticForNode2(node, Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)); return "skip"; } break; - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: const interfaceKeyword = tokenToString(120 /* InterfaceKeyword */); Debug.assertIsDefined(interfaceKeyword); diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, interfaceKeyword)); return "skip"; - case 266 /* ModuleDeclaration */: - const moduleKeyword = node.flags & 16 /* Namespace */ ? tokenToString(145 /* NamespaceKeyword */) : tokenToString(144 /* ModuleKeyword */); + case 267 /* ModuleDeclaration */: + const moduleKeyword = node.flags & 32 /* Namespace */ ? tokenToString(145 /* NamespaceKeyword */) : tokenToString(144 /* ModuleKeyword */); Debug.assertIsDefined(moduleKeyword); diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, moduleKeyword)); return "skip"; - case 264 /* TypeAliasDeclaration */: + case 265 /* TypeAliasDeclaration */: diagnostics.push(createDiagnosticForNode2(node, Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)); return "skip"; - case 265 /* EnumDeclaration */: + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 262 /* FunctionDeclaration */: + if (!node.body) { + diagnostics.push(createDiagnosticForNode2(node, Diagnostics.Signature_declarations_can_only_be_used_in_TypeScript_files)); + return "skip"; + } + return; + case 266 /* EnumDeclaration */: const enumKeyword = Debug.checkDefined(tokenToString(94 /* EnumKeyword */)); diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, enumKeyword)); return "skip"; - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: diagnostics.push(createDiagnosticForNode2(node, Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)); return "skip"; - case 233 /* AsExpression */: + case 234 /* AsExpression */: diagnostics.push(createDiagnosticForNode2(node.type, Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)); return "skip"; - case 237 /* SatisfiesExpression */: + case 238 /* SatisfiesExpression */: diagnostics.push(createDiagnosticForNode2(node.type, Diagnostics.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)); return "skip"; - case 215 /* TypeAssertionExpression */: + case 216 /* TypeAssertionExpression */: Debug.fail(); } } @@ -117825,26 +119610,26 @@ ${lanes.join("\n")} } } switch (parent2.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 173 /* MethodDeclaration */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: - case 218 /* ArrowFunction */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 219 /* ArrowFunction */: if (nodes === parent2.typeParameters) { diagnostics.push(createDiagnosticForNodeArray2(nodes, Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)); return "skip"; } - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: if (nodes === parent2.modifiers) { - checkModifiers(parent2.modifiers, parent2.kind === 242 /* VariableStatement */); + checkModifiers(parent2.modifiers, parent2.kind === 243 /* VariableStatement */); return "skip"; } break; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: if (nodes === parent2.modifiers) { for (const modifier of nodes) { if (isModifier(modifier) && modifier.kind !== 126 /* StaticKeyword */ && modifier.kind !== 129 /* AccessorKeyword */) { @@ -117854,18 +119639,18 @@ ${lanes.join("\n")} return "skip"; } break; - case 168 /* Parameter */: + case 169 /* Parameter */: if (nodes === parent2.modifiers && some(nodes, isModifier)) { diagnostics.push(createDiagnosticForNodeArray2(nodes, Diagnostics.Parameter_modifiers_can_only_be_used_in_TypeScript_files)); return "skip"; } break; - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 232 /* ExpressionWithTypeArguments */: - case 284 /* JsxSelfClosingElement */: - case 285 /* JsxOpeningElement */: - case 214 /* TaggedTemplateExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 233 /* ExpressionWithTypeArguments */: + case 285 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 215 /* TaggedTemplateExpression */: if (nodes === parent2.typeArguments) { diagnostics.push(createDiagnosticForNodeArray2(nodes, Diagnostics.Type_arguments_can_only_be_used_in_TypeScript_files)); return "skip"; @@ -117886,7 +119671,7 @@ ${lanes.join("\n")} case 148 /* ReadonlyKeyword */: case 138 /* DeclareKeyword */: case 128 /* AbstractKeyword */: - case 163 /* OverrideKeyword */: + case 164 /* OverrideKeyword */: case 103 /* InKeyword */: case 147 /* OutKeyword */: diagnostics.push(createDiagnosticForNode2(modifier, Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, tokenToString(modifier.kind))); @@ -117984,8 +119769,8 @@ ${lanes.join("\n")} addInternalEmitFlags(importDecl, 2 /* NeverApplyImportHelper */); setParent(externalHelpersModuleReference, importDecl); setParent(importDecl, file); - externalHelpersModuleReference.flags &= ~8 /* Synthesized */; - importDecl.flags &= ~8 /* Synthesized */; + externalHelpersModuleReference.flags &= ~16 /* Synthesized */; + importDecl.flags &= ~16 /* Synthesized */; return externalHelpersModuleReference; } function collectExternalModuleReferences(file) { @@ -118014,7 +119799,7 @@ ${lanes.join("\n")} ); } const shouldProcessRequires = isJavaScriptFile && shouldResolveJsRequire(options); - if (file.flags & 2097152 /* PossiblyContainsDynamicImport */ || shouldProcessRequires) { + if (file.flags & 4194304 /* PossiblyContainsDynamicImport */ || shouldProcessRequires) { collectDynamicImportOrRequireCalls(file); } file.imports = imports || emptyArray; @@ -118222,7 +120007,7 @@ ${lanes.join("\n")} return typeof result === "object" ? { ...result, languageVersion, setExternalModuleIndicator: setExternalModuleIndicator2 } : { languageVersion, impliedNodeFormat: result, setExternalModuleIndicator: setExternalModuleIndicator2 }; } function findSourceFileWorker(fileName, isDefaultLib, ignoreNoDefaultLib, reason, packageId) { - var _a2, _b2; + var _a2; const path = toPath3(fileName); if (useSourceOfProjectReferenceRedirect) { let source = getSourceOfProjectReferenceRedirect(path); @@ -118301,7 +120086,7 @@ ${lanes.join("\n")} Diagnostics.Cannot_read_file_0_Colon_1, [fileName, hostErrorMessage] ), - shouldCreateNewSourceFile || ((_a2 = oldProgram == null ? void 0 : oldProgram.getSourceFileByPath(toPath3(fileName))) == null ? void 0 : _a2.impliedNodeFormat) !== sourceFileOptions.impliedNodeFormat + shouldCreateNewSourceFile ); if (packageId) { const packageIdKey = packageIdToString(packageId); @@ -118326,7 +120111,7 @@ ${lanes.join("\n")} file.path = path; file.resolvedPath = toPath3(fileName); file.originalFileName = originalFileName; - file.packageJsonLocations = ((_b2 = sourceFileOptions.packageJsonLocations) == null ? void 0 : _b2.length) ? sourceFileOptions.packageJsonLocations : void 0; + file.packageJsonLocations = ((_a2 = sourceFileOptions.packageJsonLocations) == null ? void 0 : _a2.length) ? sourceFileOptions.packageJsonLocations : void 0; file.packageJsonScope = sourceFileOptions.packageJsonScope; addFileIncludeReason(file, reason); if (host.useCaseSensitiveFileNames()) { @@ -118636,7 +120421,7 @@ ${lanes.join("\n")} currentNodeModulesDepth++; } const elideImport = isJsFileFromNodeModules && currentNodeModulesDepth > maxNodeModuleJsDepth; - const shouldAddFile = resolvedFileName && !getResolutionDiagnostic(optionsForFile, resolution, file) && !optionsForFile.noResolve && index < file.imports.length && !elideImport && !(isJsFile && !getAllowJSCompilerOption(optionsForFile)) && (isInJSFile(file.imports[index]) || !(file.imports[index].flags & 8388608 /* JSDoc */)); + const shouldAddFile = resolvedFileName && !getResolutionDiagnostic(optionsForFile, resolution, file) && !optionsForFile.noResolve && index < file.imports.length && !elideImport && !(isJsFile && !getAllowJSCompilerOption(optionsForFile)) && (isInJSFile(file.imports[index]) || !(file.imports[index].flags & 16777216 /* JSDoc */)); if (elideImport) { modulesWithElidedImports.set(file.path, true); } else if (shouldAddFile) { @@ -118995,6 +120780,13 @@ ${lanes.join("\n")} if (moduleResolution === 100 /* Bundler */ && !emitModuleKindIsNonNodeESM(moduleKind)) { createOptionValueDiagnostic("moduleResolution", Diagnostics.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later, "bundler"); } + if (ModuleKind[moduleKind] && (100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */) && !(3 /* Node16 */ <= moduleResolution && moduleResolution <= 99 /* NodeNext */)) { + const moduleKindName = ModuleKind[moduleKind]; + createOptionValueDiagnostic("moduleResolution", Diagnostics.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1, moduleKindName, moduleKindName); + } else if (ModuleResolutionKind[moduleResolution] && (3 /* Node16 */ <= moduleResolution && moduleResolution <= 99 /* NodeNext */) && !(100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */)) { + const moduleResolutionName = ModuleResolutionKind[moduleResolution]; + createOptionValueDiagnostic("module", Diagnostics.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1, moduleResolutionName, moduleResolutionName); + } if (!options.noEmit && !options.suppressOutputPathCheck) { const emitHost = getEmitHost(); const emitFilesSeen = /* @__PURE__ */ new Set(); @@ -119684,6 +121476,9 @@ ${lanes.join("\n")} return directoryStructureHost.readDirectory(root, extensions, excludes, includes, depth); }, readFile: (f) => directoryStructureHost.readFile(f), + directoryExists: maybeBind(directoryStructureHost, directoryStructureHost.directoryExists), + getDirectories: maybeBind(directoryStructureHost, directoryStructureHost.getDirectories), + realpath: maybeBind(directoryStructureHost, directoryStructureHost.realpath), useCaseSensitiveFileNames: host.useCaseSensitiveFileNames(), getCurrentDirectory: () => host.getCurrentDirectory(), onUnRecoverableConfigFileDiagnostic: host.onUnRecoverableConfigFileDiagnostic || returnUndefined, @@ -119860,7 +121655,7 @@ ${lanes.join("\n")} Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code, Diagnostics.Duplicate_label_0.code, Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments.code, - Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block.code, + Diagnostics.for_await_loops_cannot_be_used_inside_a_class_static_block.code, Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code, Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code, Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code, @@ -119890,14 +121685,17 @@ ${lanes.join("\n")} Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind.code, Diagnostics._0_modifier_cannot_be_used_here.code, Diagnostics._0_modifier_must_precede_1_modifier.code, - Diagnostics.const_declarations_can_only_be_declared_inside_a_block.code, - Diagnostics.const_declarations_must_be_initialized.code, + Diagnostics._0_declarations_can_only_be_declared_inside_a_block.code, + Diagnostics._0_declarations_must_be_initialized.code, Diagnostics.extends_clause_already_seen.code, - Diagnostics.let_declarations_can_only_be_declared_inside_a_block.code, Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code, Diagnostics.Class_constructor_may_not_be_a_generator.code, Diagnostics.Class_constructor_may_not_be_an_accessor.code, - Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code + Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code, + Diagnostics.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code, + Diagnostics.Private_field_0_must_be_declared_in_an_enclosing_class.code, + // Type errors + Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code ]); emitSkippedWithNoDiagnostics = { diagnostics: emptyArray, sourceMaps: void 0, emittedFiles: void 0, emitSkipped: true }; } @@ -122733,17 +124531,17 @@ ${lanes.join("\n")} function getWatchErrorSummaryDiagnosticMessage(errorCount) { return errorCount === 1 ? Diagnostics.Found_1_error_Watching_for_file_changes : Diagnostics.Found_0_errors_Watching_for_file_changes; } - function prettyPathForFileError(error, cwd) { - const line = formatColorAndReset(":" + error.line, "\x1B[90m" /* Grey */); - if (pathIsAbsolute(error.fileName) && pathIsAbsolute(cwd)) { + function prettyPathForFileError(error2, cwd) { + const line = formatColorAndReset(":" + error2.line, "\x1B[90m" /* Grey */); + if (pathIsAbsolute(error2.fileName) && pathIsAbsolute(cwd)) { return getRelativePathFromDirectory( cwd, - error.fileName, + error2.fileName, /*ignoreCase*/ false ) + line; } - return error.fileName + line; + return error2.fileName + line; } function getErrorSummaryText(errorCount, filesInError, newLine, host) { if (errorCount === 0) @@ -122876,12 +124674,12 @@ ${lanes.join("\n")} return true; const isJsonFile = fileExtensionIs(fileName, ".json" /* Json */); const basePath = getDirectoryPath(getNormalizedAbsolutePath(configFile.fileName, program.getCurrentDirectory())); - const useCaseSensitiveFileNames = program.useCaseSensitiveFileNames(); + const useCaseSensitiveFileNames2 = program.useCaseSensitiveFileNames(); return find((_b = configFile == null ? void 0 : configFile.configFileSpecs) == null ? void 0 : _b.validatedIncludeSpecs, (includeSpec) => { if (isJsonFile && !endsWith(includeSpec, ".json" /* Json */)) return false; const pattern = getPatternFromSpec(includeSpec, basePath, "files"); - return !!pattern && getRegexFromPattern(`(${pattern})$`, useCaseSensitiveFileNames).test(fileName); + return !!pattern && getRegexFromPattern(`(${pattern})$`, useCaseSensitiveFileNames2).test(fileName); }); } function fileIncludeReasonToDiagnostics(program, reason, fileNameConvertor) { @@ -123085,7 +124883,7 @@ ${lanes.join("\n")} return result; } function createCompilerHostFromProgramHost(host, getCompilerOptions, directoryStructureHost = host) { - const useCaseSensitiveFileNames = host.useCaseSensitiveFileNames(); + const useCaseSensitiveFileNames2 = host.useCaseSensitiveFileNames(); const compilerHost = { getSourceFile: createGetSourceFile( (fileName, encoding) => !encoding ? compilerHost.readFile(fileName) : host.readFile(fileName, encoding), @@ -123101,8 +124899,8 @@ ${lanes.join("\n")} (path) => host.directoryExists(path) ), getCurrentDirectory: memoize(() => host.getCurrentDirectory()), - useCaseSensitiveFileNames: () => useCaseSensitiveFileNames, - getCanonicalFileName: createGetCanonicalFileName(useCaseSensitiveFileNames), + useCaseSensitiveFileNames: () => useCaseSensitiveFileNames2, + getCanonicalFileName: createGetCanonicalFileName(useCaseSensitiveFileNames2), getNewLine: () => getNewLineCharacter(getCompilerOptions()), fileExists: (f) => host.fileExists(f), readFile: (f) => host.readFile(f), @@ -123383,7 +125181,7 @@ ${lanes.join("\n")} const sourceFilesCache = /* @__PURE__ */ new Map(); let missingFilePathsRequestedForRelease; let hasChangedCompilerOptions = false; - const useCaseSensitiveFileNames = host.useCaseSensitiveFileNames(); + const useCaseSensitiveFileNames2 = host.useCaseSensitiveFileNames(); const currentDirectory = host.getCurrentDirectory(); const { configFileName, optionsToExtend: optionsToExtendForConfigFile = {}, watchOptionsToExtend, extraFileExtensions, createProgram: createProgram2 } = host; let { rootFiles: rootFileNames, options: compilerOptions, watchOptions, projectReferences } = host; @@ -123391,7 +125189,7 @@ ${lanes.join("\n")} let configFileParsingDiagnostics; let canConfigFileJsonReportNoInputFiles = false; let hasChangedConfigFileParsingErrors = false; - const cachedDirectoryStructureHost = configFileName === void 0 ? void 0 : createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensitiveFileNames); + const cachedDirectoryStructureHost = configFileName === void 0 ? void 0 : createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensitiveFileNames2); const directoryStructureHost = cachedDirectoryStructureHost || host; const parseConfigFileHost = parseConfigHostFromCompilerHostLike(host, directoryStructureHost); let newLine = updateNewLine(); @@ -123409,8 +125207,8 @@ ${lanes.join("\n")} Debug.assert(compilerOptions); Debug.assert(rootFileNames); const { watchFile: watchFile2, watchDirectory, writeLog } = createWatchFactory(host, compilerOptions); - const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames); - writeLog(`Current directory: ${currentDirectory} CaseSensitiveFileNames: ${useCaseSensitiveFileNames}`); + const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2); + writeLog(`Current directory: ${currentDirectory} CaseSensitiveFileNames: ${useCaseSensitiveFileNames2}`); let configFileWatcher; if (configFileName) { configFileWatcher = watchFile2(configFileName, scheduleProgramReload, 2e3 /* High */, watchOptions, WatchType.ConfigFile); @@ -123519,7 +125317,6 @@ ${lanes.join("\n")} if (hasChangedCompilerOptions) { newLine = updateNewLine(); if (program && changesAffectModuleResolution(program.getCompilerOptions(), compilerOptions)) { - debugger; resolutionCache.onChangesAffectModuleResolution(); } } @@ -123624,7 +125421,8 @@ ${lanes.join("\n")} if (isFileMissingOnHost(hostSourceFile)) { return void 0; } - if (hostSourceFile === void 0 || shouldCreateNewSourceFile || isFilePresenceUnknownOnHost(hostSourceFile)) { + const impliedNodeFormat = typeof languageVersionOrOptions === "object" ? languageVersionOrOptions.impliedNodeFormat : void 0; + if (hostSourceFile === void 0 || shouldCreateNewSourceFile || isFilePresenceUnknownOnHost(hostSourceFile) || hostSourceFile.sourceFile.impliedNodeFormat !== impliedNodeFormat) { const sourceFile = getNewSourceFile(fileName, languageVersionOrOptions, onError); if (hostSourceFile) { if (sourceFile) { @@ -123915,7 +125713,7 @@ ${lanes.join("\n")} options: compilerOptions, program: getCurrentBuilderProgram() || rootFileNames, currentDirectory, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, writeLog, toPath: toPath3 })) @@ -124005,7 +125803,7 @@ ${lanes.join("\n")} options: config.parsedCommandLine.options, program: config.parsedCommandLine.fileNames, currentDirectory, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, writeLog, toPath: toPath3 })) @@ -126125,6 +127923,8 @@ ${lanes.join("\n")} init_sourcemap(); init_utilities3(); init_destructuring(); + init_classThis(); + init_namedEvaluation(); init_taggedTemplate(); init_ts(); init_classFields(); @@ -126781,6 +128581,8 @@ ${lanes.join("\n")} ScriptElementKind2["enumMemberElement"] = "enum member"; ScriptElementKind2["variableElement"] = "var"; ScriptElementKind2["localVariableElement"] = "local var"; + ScriptElementKind2["variableUsingElement"] = "using"; + ScriptElementKind2["variableAwaitUsingElement"] = "await using"; ScriptElementKind2["functionElement"] = "function"; ScriptElementKind2["localFunctionElement"] = "local function"; ScriptElementKind2["memberFunctionElement"] = "method"; @@ -126894,36 +128696,36 @@ ${lanes.join("\n")} // src/services/utilities.ts function getMeaningFromDeclaration(node) { switch (node.kind) { - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return isInJSFile(node) && getJSDocEnumTag(node) ? 7 /* All */ : 1 /* Value */; - case 168 /* Parameter */: - case 207 /* BindingElement */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 298 /* CatchClause */: - case 290 /* JsxAttribute */: + case 169 /* Parameter */: + case 208 /* BindingElement */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 299 /* CatchClause */: + case 291 /* JsxAttribute */: return 1 /* Value */; - case 167 /* TypeParameter */: - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 186 /* TypeLiteral */: + case 168 /* TypeParameter */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 187 /* TypeLiteral */: return 2 /* Type */; - case 352 /* JSDocTypedefTag */: + case 353 /* JSDocTypedefTag */: return node.name === void 0 ? 1 /* Value */ | 2 /* Type */ : 2 /* Type */; - case 305 /* EnumMember */: - case 262 /* ClassDeclaration */: + case 306 /* EnumMember */: + case 263 /* ClassDeclaration */: return 1 /* Value */ | 2 /* Type */; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: if (isAmbientModule(node)) { return 4 /* Namespace */ | 1 /* Value */; } else if (getModuleInstanceState(node) === 1 /* Instantiated */) { @@ -126931,15 +128733,15 @@ ${lanes.join("\n")} } else { return 4 /* Namespace */; } - case 265 /* EnumDeclaration */: - case 274 /* NamedImports */: - case 275 /* ImportSpecifier */: - case 270 /* ImportEqualsDeclaration */: - case 271 /* ImportDeclaration */: - case 276 /* ExportAssignment */: - case 277 /* ExportDeclaration */: + case 266 /* EnumDeclaration */: + case 275 /* NamedImports */: + case 276 /* ImportSpecifier */: + case 271 /* ImportEqualsDeclaration */: + case 272 /* ImportDeclaration */: + case 277 /* ExportAssignment */: + case 278 /* ExportDeclaration */: return 7 /* All */; - case 311 /* SourceFile */: + case 312 /* SourceFile */: return 4 /* Namespace */ | 1 /* Value */; } return 7 /* All */; @@ -126947,7 +128749,7 @@ ${lanes.join("\n")} function getMeaningFromLocation(node) { node = getAdjustedReferenceLocation(node); const parent2 = node.parent; - if (node.kind === 311 /* SourceFile */) { + if (node.kind === 312 /* SourceFile */) { return 1 /* Value */; } else if (isExportAssignment(parent2) || isExportSpecifier(parent2) || isExternalModuleReference(parent2) || isImportSpecifier(parent2) || isImportClause(parent2) || isImportEqualsDeclaration(parent2) && node === parent2.name) { return 7 /* All */; @@ -126971,11 +128773,11 @@ ${lanes.join("\n")} } } function getMeaningFromRightHandSideOfImportEquals(node) { - const name = node.kind === 165 /* QualifiedName */ ? node : isQualifiedName(node.parent) && node.parent.right === node ? node.parent : void 0; - return name && name.parent.kind === 270 /* ImportEqualsDeclaration */ ? 7 /* All */ : 4 /* Namespace */; + const name = node.kind === 166 /* QualifiedName */ ? node : isQualifiedName(node.parent) && node.parent.right === node ? node.parent : void 0; + return name && name.parent.kind === 271 /* ImportEqualsDeclaration */ ? 7 /* All */ : 4 /* Namespace */; } function isInRightSideOfInternalImportEqualsDeclaration(node) { - while (node.parent.kind === 165 /* QualifiedName */) { + while (node.parent.kind === 166 /* QualifiedName */) { node = node.parent; } return isInternalModuleImportEqualsDeclaration(node.parent) && node.parent.moduleReference === node; @@ -126986,26 +128788,26 @@ ${lanes.join("\n")} function isQualifiedNameNamespaceReference(node) { let root = node; let isLastClause = true; - if (root.parent.kind === 165 /* QualifiedName */) { - while (root.parent && root.parent.kind === 165 /* QualifiedName */) { + if (root.parent.kind === 166 /* QualifiedName */) { + while (root.parent && root.parent.kind === 166 /* QualifiedName */) { root = root.parent; } isLastClause = root.right === node; } - return root.parent.kind === 182 /* TypeReference */ && !isLastClause; + return root.parent.kind === 183 /* TypeReference */ && !isLastClause; } function isPropertyAccessNamespaceReference(node) { let root = node; let isLastClause = true; - if (root.parent.kind === 210 /* PropertyAccessExpression */) { - while (root.parent && root.parent.kind === 210 /* PropertyAccessExpression */) { + if (root.parent.kind === 211 /* PropertyAccessExpression */) { + while (root.parent && root.parent.kind === 211 /* PropertyAccessExpression */) { root = root.parent; } isLastClause = root.name === node; } - if (!isLastClause && root.parent.kind === 232 /* ExpressionWithTypeArguments */ && root.parent.parent.kind === 297 /* HeritageClause */) { + if (!isLastClause && root.parent.kind === 233 /* ExpressionWithTypeArguments */ && root.parent.parent.kind === 298 /* HeritageClause */) { const decl = root.parent.parent.parent; - return decl.kind === 262 /* ClassDeclaration */ && root.parent.parent.token === 119 /* ImplementsKeyword */ || decl.kind === 263 /* InterfaceDeclaration */ && root.parent.parent.token === 96 /* ExtendsKeyword */; + return decl.kind === 263 /* ClassDeclaration */ && root.parent.parent.token === 119 /* ImplementsKeyword */ || decl.kind === 264 /* InterfaceDeclaration */ && root.parent.parent.token === 96 /* ExtendsKeyword */; } return false; } @@ -127016,15 +128818,15 @@ ${lanes.join("\n")} switch (node.kind) { case 110 /* ThisKeyword */: return !isExpressionNode(node); - case 196 /* ThisType */: + case 197 /* ThisType */: return true; } switch (node.parent.kind) { - case 182 /* TypeReference */: + case 183 /* TypeReference */: return true; - case 204 /* ImportType */: + case 205 /* ImportType */: return !node.parent.isTypeOf; - case 232 /* ExpressionWithTypeArguments */: + case 233 /* ExpressionWithTypeArguments */: return isPartOfTypeNode(node.parent); } return false; @@ -127071,7 +128873,7 @@ ${lanes.join("\n")} } function getTargetLabel(referenceNode, labelName) { while (referenceNode) { - if (referenceNode.kind === 255 /* LabeledStatement */ && referenceNode.label.escapedText === labelName) { + if (referenceNode.kind === 256 /* LabeledStatement */ && referenceNode.label.escapedText === labelName) { return referenceNode.label; } referenceNode = referenceNode.parent; @@ -127121,22 +128923,22 @@ ${lanes.join("\n")} } function isLiteralNameOfPropertyDeclarationOrIndexAccess(node) { switch (node.parent.kind) { - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 302 /* PropertyAssignment */: - case 305 /* EnumMember */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 266 /* ModuleDeclaration */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 303 /* PropertyAssignment */: + case 306 /* EnumMember */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 267 /* ModuleDeclaration */: return getNameOfDeclaration(node.parent) === node; - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: return node.parent.argumentExpression === node; - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: return true; - case 200 /* LiteralType */: - return node.parent.parent.kind === 198 /* IndexedAccessType */; + case 201 /* LiteralType */: + return node.parent.parent.kind === 199 /* IndexedAccessType */; default: return false; } @@ -127154,83 +128956,83 @@ ${lanes.join("\n")} return void 0; } switch (node.kind) { - case 311 /* SourceFile */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: - case 266 /* ModuleDeclaration */: + case 312 /* SourceFile */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + case 267 /* ModuleDeclaration */: return node; } } } function getNodeKind(node) { switch (node.kind) { - case 311 /* SourceFile */: + case 312 /* SourceFile */: return isExternalModule(node) ? "module" /* moduleElement */ : "script" /* scriptElement */; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return "module" /* moduleElement */; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return "class" /* classElement */; - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: return "interface" /* interfaceElement */; - case 264 /* TypeAliasDeclaration */: - case 344 /* JSDocCallbackTag */: - case 352 /* JSDocTypedefTag */: + case 265 /* TypeAliasDeclaration */: + case 345 /* JSDocCallbackTag */: + case 353 /* JSDocTypedefTag */: return "type" /* typeElement */; - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return "enum" /* enumElement */; - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return getKindOfVariableDeclaration(node); - case 207 /* BindingElement */: + case 208 /* BindingElement */: return getKindOfVariableDeclaration(getRootDeclaration(node)); - case 218 /* ArrowFunction */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: return "function" /* functionElement */; - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return "getter" /* memberGetAccessorElement */; - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return "setter" /* memberSetAccessorElement */; - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: return "method" /* memberFunctionElement */; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: const { initializer } = node; return isFunctionLike(initializer) ? "method" /* memberFunctionElement */ : "property" /* memberVariableElement */; - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 303 /* ShorthandPropertyAssignment */: - case 304 /* SpreadAssignment */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 304 /* ShorthandPropertyAssignment */: + case 305 /* SpreadAssignment */: return "property" /* memberVariableElement */; - case 180 /* IndexSignature */: + case 181 /* IndexSignature */: return "index" /* indexSignatureElement */; - case 179 /* ConstructSignature */: + case 180 /* ConstructSignature */: return "construct" /* constructSignatureElement */; - case 178 /* CallSignature */: + case 179 /* CallSignature */: return "call" /* callSignatureElement */; - case 175 /* Constructor */: - case 174 /* ClassStaticBlockDeclaration */: + case 176 /* Constructor */: + case 175 /* ClassStaticBlockDeclaration */: return "constructor" /* constructorImplementationElement */; - case 167 /* TypeParameter */: + case 168 /* TypeParameter */: return "type parameter" /* typeParameterElement */; - case 305 /* EnumMember */: + case 306 /* EnumMember */: return "enum member" /* enumMemberElement */; - case 168 /* Parameter */: + case 169 /* Parameter */: return hasSyntacticModifier(node, 16476 /* ParameterPropertyModifier */) ? "property" /* memberVariableElement */ : "parameter" /* parameterElement */; - case 270 /* ImportEqualsDeclaration */: - case 275 /* ImportSpecifier */: - case 280 /* ExportSpecifier */: - case 273 /* NamespaceImport */: - case 279 /* NamespaceExport */: + case 271 /* ImportEqualsDeclaration */: + case 276 /* ImportSpecifier */: + case 281 /* ExportSpecifier */: + case 274 /* NamespaceImport */: + case 280 /* NamespaceExport */: return "alias" /* alias */; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: const kind = getAssignmentDeclarationKind(node); const { right } = node; switch (kind) { @@ -127258,7 +129060,7 @@ ${lanes.join("\n")} } case 80 /* Identifier */: return isImportClause(node.parent) ? "alias" /* alias */ : "" /* unknown */; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: const scriptKind = getNodeKind(node.expression); return scriptKind === "" /* unknown */ ? "const" /* constElement */ : scriptKind; default: @@ -127273,7 +129075,7 @@ ${lanes.join("\n")} case 110 /* ThisKeyword */: return true; case 80 /* Identifier */: - return identifierIsThisKeyword(node) && node.parent.kind === 168 /* Parameter */; + return identifierIsThisKeyword(node) && node.parent.kind === 169 /* Parameter */; default: return false; } @@ -127321,41 +129123,41 @@ ${lanes.join("\n")} return false; } switch (n.kind) { - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: - case 209 /* ObjectLiteralExpression */: - case 205 /* ObjectBindingPattern */: - case 186 /* TypeLiteral */: - case 240 /* Block */: - case 267 /* ModuleBlock */: - case 268 /* CaseBlock */: - case 274 /* NamedImports */: - case 278 /* NamedExports */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + case 210 /* ObjectLiteralExpression */: + case 206 /* ObjectBindingPattern */: + case 187 /* TypeLiteral */: + case 241 /* Block */: + case 268 /* ModuleBlock */: + case 269 /* CaseBlock */: + case 275 /* NamedImports */: + case 279 /* NamedExports */: return nodeEndsWith(n, 20 /* CloseBraceToken */, sourceFile); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return isCompletedNode(n.block, sourceFile); - case 213 /* NewExpression */: + case 214 /* NewExpression */: if (!n.arguments) { return true; } - case 212 /* CallExpression */: - case 216 /* ParenthesizedExpression */: - case 195 /* ParenthesizedType */: + case 213 /* CallExpression */: + case 217 /* ParenthesizedExpression */: + case 196 /* ParenthesizedType */: return nodeEndsWith(n, 22 /* CloseParenToken */, sourceFile); - case 183 /* FunctionType */: - case 184 /* ConstructorType */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: return isCompletedNode(n.type, sourceFile); - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 179 /* ConstructSignature */: - case 178 /* CallSignature */: - case 218 /* ArrowFunction */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 180 /* ConstructSignature */: + case 179 /* CallSignature */: + case 219 /* ArrowFunction */: if (n.body) { return isCompletedNode(n.body, sourceFile); } @@ -127363,60 +129165,60 @@ ${lanes.join("\n")} return isCompletedNode(n.type, sourceFile); } return hasChildOfKind(n, 22 /* CloseParenToken */, sourceFile); - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return !!n.body && isCompletedNode(n.body, sourceFile); - case 244 /* IfStatement */: + case 245 /* IfStatement */: if (n.elseStatement) { return isCompletedNode(n.elseStatement, sourceFile); } return isCompletedNode(n.thenStatement, sourceFile); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return isCompletedNode(n.expression, sourceFile) || hasChildOfKind(n, 27 /* SemicolonToken */, sourceFile); - case 208 /* ArrayLiteralExpression */: - case 206 /* ArrayBindingPattern */: - case 211 /* ElementAccessExpression */: - case 166 /* ComputedPropertyName */: - case 188 /* TupleType */: + case 209 /* ArrayLiteralExpression */: + case 207 /* ArrayBindingPattern */: + case 212 /* ElementAccessExpression */: + case 167 /* ComputedPropertyName */: + case 189 /* TupleType */: return nodeEndsWith(n, 24 /* CloseBracketToken */, sourceFile); - case 180 /* IndexSignature */: + case 181 /* IndexSignature */: if (n.type) { return isCompletedNode(n.type, sourceFile); } return hasChildOfKind(n, 24 /* CloseBracketToken */, sourceFile); - case 295 /* CaseClause */: - case 296 /* DefaultClause */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: return false; - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 246 /* WhileStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 247 /* WhileStatement */: return isCompletedNode(n.statement, sourceFile); - case 245 /* DoStatement */: + case 246 /* DoStatement */: return hasChildOfKind(n, 117 /* WhileKeyword */, sourceFile) ? nodeEndsWith(n, 22 /* CloseParenToken */, sourceFile) : isCompletedNode(n.statement, sourceFile); - case 185 /* TypeQuery */: + case 186 /* TypeQuery */: return isCompletedNode(n.exprName, sourceFile); - case 220 /* TypeOfExpression */: - case 219 /* DeleteExpression */: - case 221 /* VoidExpression */: - case 228 /* YieldExpression */: - case 229 /* SpreadElement */: + case 221 /* TypeOfExpression */: + case 220 /* DeleteExpression */: + case 222 /* VoidExpression */: + case 229 /* YieldExpression */: + case 230 /* SpreadElement */: const unaryWordExpression = n; return isCompletedNode(unaryWordExpression.expression, sourceFile); - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: return isCompletedNode(n.template, sourceFile); - case 227 /* TemplateExpression */: + case 228 /* TemplateExpression */: const lastSpan = lastOrUndefined(n.templateSpans); return isCompletedNode(lastSpan, sourceFile); - case 238 /* TemplateSpan */: + case 239 /* TemplateSpan */: return nodeIsPresent(n.literal); - case 277 /* ExportDeclaration */: - case 271 /* ImportDeclaration */: + case 278 /* ExportDeclaration */: + case 272 /* ImportDeclaration */: return nodeIsPresent(n.moduleSpecifier); - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: return isCompletedNode(n.operand, sourceFile); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return isCompletedNode(n.right, sourceFile); - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: return isCompletedNode(n.whenFalse, sourceFile); default: return true; @@ -127507,7 +129309,7 @@ ${lanes.join("\n")} return lastTypeNode; } function getContextualTypeFromParentOrAncestorTypeNode(node, checker) { - if (node.flags & (8388608 /* JSDoc */ & ~262144 /* JavaScriptFile */)) + if (node.flags & (16777216 /* JSDoc */ & ~524288 /* JavaScriptFile */)) return void 0; const contextualType = getContextualTypeFromParent(node, checker); if (contextualType) @@ -127518,13 +129320,13 @@ ${lanes.join("\n")} function getAdjustedLocationForDeclaration(node, forRename) { if (!forRename) { switch (node.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return getAdjustedLocationForClass(node); - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: return getAdjustedLocationForFunction(node); - case 175 /* Constructor */: + case 176 /* Constructor */: return node; } } @@ -127633,7 +129435,7 @@ ${lanes.join("\n")} if (node.kind === 149 /* RequireKeyword */ && isExternalModuleReference(parent2)) { return parent2.expression; } - if (node.kind === 160 /* FromKeyword */ && (isImportDeclaration(parent2) || isExportDeclaration(parent2)) && parent2.moduleSpecifier) { + if (node.kind === 161 /* FromKeyword */ && (isImportDeclaration(parent2) || isExportDeclaration(parent2)) && parent2.moduleSpecifier) { return parent2.moduleSpecifier; } if ((node.kind === 96 /* ExtendsKeyword */ || node.kind === 119 /* ImplementsKeyword */) && isHeritageClause(parent2) && parent2.token === node.kind) { @@ -127674,7 +129476,7 @@ ${lanes.join("\n")} if (node.kind === 130 /* AsKeyword */ && isAsExpression(parent2) && isTypeReferenceNode(parent2.type)) { return parent2.type.typeName; } - if (node.kind === 103 /* InKeyword */ && isForInStatement(parent2) || node.kind === 164 /* OfKeyword */ && isForOfStatement(parent2)) { + if (node.kind === 103 /* InKeyword */ && isForInStatement(parent2) || node.kind === 165 /* OfKeyword */ && isForOfStatement(parent2)) { return skipOuterExpressions(parent2.expression); } } @@ -127867,7 +129669,7 @@ ${lanes.join("\n")} } } } - Debug.assert(startNode2 !== void 0 || n.kind === 311 /* SourceFile */ || n.kind === 1 /* EndOfFileToken */ || isJSDocCommentContainingNode(n)); + Debug.assert(startNode2 !== void 0 || n.kind === 312 /* SourceFile */ || n.kind === 1 /* EndOfFileToken */ || isJSDocCommentContainingNode(n)); const candidate = findRightmostChildNodeWithTokens( children, /*exclusiveStartPosition*/ @@ -127902,7 +129704,7 @@ ${lanes.join("\n")} for (let i = exclusiveStartPosition - 1; i >= 0; i--) { const child = children[i]; if (isWhiteSpaceOnlyJsxText(child)) { - if (i === 0 && (parentKind === 12 /* JsxText */ || parentKind === 284 /* JsxSelfClosingElement */)) { + if (i === 0 && (parentKind === 12 /* JsxText */ || parentKind === 285 /* JsxSelfClosingElement */)) { Debug.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`"); } } else if (nodeHasTokens(children[i], sourceFile)) { @@ -127934,13 +129736,13 @@ ${lanes.join("\n")} if (token.kind === 30 /* LessThanToken */ && token.parent.kind === 12 /* JsxText */) { return true; } - if (token.kind === 30 /* LessThanToken */ && token.parent.kind === 293 /* JsxExpression */) { + if (token.kind === 30 /* LessThanToken */ && token.parent.kind === 294 /* JsxExpression */) { return true; } - if (token && token.kind === 20 /* CloseBraceToken */ && token.parent.kind === 293 /* JsxExpression */) { + if (token && token.kind === 20 /* CloseBraceToken */ && token.parent.kind === 294 /* JsxExpression */) { return true; } - if (token.kind === 30 /* LessThanToken */ && token.parent.kind === 286 /* JsxClosingElement */) { + if (token.kind === 30 /* LessThanToken */ && token.parent.kind === 287 /* JsxClosingElement */) { return true; } return false; @@ -127968,9 +129770,9 @@ ${lanes.join("\n")} function isInsideJsxElement(sourceFile, position) { function isInsideJsxElementTraversal(node) { while (node) { - if (node.kind >= 284 /* JsxSelfClosingElement */ && node.kind <= 293 /* JsxExpression */ || node.kind === 12 /* JsxText */ || node.kind === 30 /* LessThanToken */ || node.kind === 32 /* GreaterThanToken */ || node.kind === 80 /* Identifier */ || node.kind === 20 /* CloseBraceToken */ || node.kind === 19 /* OpenBraceToken */ || node.kind === 44 /* SlashToken */) { + if (node.kind >= 285 /* JsxSelfClosingElement */ && node.kind <= 294 /* JsxExpression */ || node.kind === 12 /* JsxText */ || node.kind === 30 /* LessThanToken */ || node.kind === 32 /* GreaterThanToken */ || node.kind === 80 /* Identifier */ || node.kind === 20 /* CloseBraceToken */ || node.kind === 19 /* OpenBraceToken */ || node.kind === 44 /* SlashToken */) { node = node.parent; - } else if (node.kind === 283 /* JsxElement */) { + } else if (node.kind === 284 /* JsxElement */) { if (position > node.getStart(sourceFile)) return true; node = node.parent; @@ -128140,17 +129942,17 @@ ${lanes.join("\n")} result.push("export" /* exportedModifier */); if (flags & 8192 /* Deprecated */) result.push("deprecated" /* deprecatedModifier */); - if (node.flags & 16777216 /* Ambient */) + if (node.flags & 33554432 /* Ambient */) result.push("declare" /* ambientModifier */); - if (node.kind === 276 /* ExportAssignment */) + if (node.kind === 277 /* ExportAssignment */) result.push("export" /* exportedModifier */); return result.length > 0 ? result.join(",") : "" /* none */; } function getTypeArgumentOrTypeParameterList(node) { - if (node.kind === 182 /* TypeReference */ || node.kind === 212 /* CallExpression */) { + if (node.kind === 183 /* TypeReference */ || node.kind === 213 /* CallExpression */) { return node.typeArguments; } - if (isFunctionLike(node) || node.kind === 262 /* ClassDeclaration */ || node.kind === 263 /* InterfaceDeclaration */) { + if (isFunctionLike(node) || node.kind === 263 /* ClassDeclaration */ || node.kind === 264 /* InterfaceDeclaration */) { return node.typeParameters; } return void 0; @@ -128192,14 +129994,14 @@ ${lanes.join("\n")} return result; } function isArrayLiteralOrObjectLiteralDestructuringPattern(node) { - if (node.kind === 208 /* ArrayLiteralExpression */ || node.kind === 209 /* ObjectLiteralExpression */) { - if (node.parent.kind === 225 /* BinaryExpression */ && node.parent.left === node && node.parent.operatorToken.kind === 64 /* EqualsToken */) { + if (node.kind === 209 /* ArrayLiteralExpression */ || node.kind === 210 /* ObjectLiteralExpression */) { + if (node.parent.kind === 226 /* BinaryExpression */ && node.parent.left === node && node.parent.operatorToken.kind === 64 /* EqualsToken */) { return true; } - if (node.parent.kind === 249 /* ForOfStatement */ && node.parent.initializer === node) { + if (node.parent.kind === 250 /* ForOfStatement */ && node.parent.initializer === node) { return true; } - if (isArrayLiteralOrObjectLiteralDestructuringPattern(node.parent.kind === 302 /* PropertyAssignment */ ? node.parent.parent : node.parent)) { + if (isArrayLiteralOrObjectLiteralDestructuringPattern(node.parent.kind === 303 /* PropertyAssignment */ ? node.parent.parent : node.parent)) { return true; } } @@ -128297,7 +130099,7 @@ ${lanes.join("\n")} return type.isTypeParameter() ? type.getConstraint() || type : type; } function getNameFromPropertyName(name) { - return name.kind === 166 /* ComputedPropertyName */ ? isStringOrNumericLiteralLike(name.expression) ? name.expression.text : void 0 : isPrivateIdentifier(name) ? idText(name) : getTextOfIdentifierOrLiteral(name); + return name.kind === 167 /* ComputedPropertyName */ ? isStringOrNumericLiteralLike(name.expression) ? name.expression.text : void 0 : isPrivateIdentifier(name) ? idText(name) : getTextOfIdentifierOrLiteral(name); } function programContainsModules(program) { return program.getSourceFiles().some((s) => !s.isDeclarationFile && !program.isSourceFileFromExternalLibrary(s) && !!(s.externalModuleIndicator || s.commonJsModuleIndicator)); @@ -128419,7 +130221,7 @@ ${lanes.join("\n")} } function insertImports(changes, sourceFile, imports, blankLineBetween, preferences) { const decl = isArray(imports) ? imports[0] : imports; - const importKindPredicate = decl.kind === 242 /* VariableStatement */ ? isRequireVariableStatement : isAnyImportSyntax; + const importKindPredicate = decl.kind === 243 /* VariableStatement */ ? isRequireVariableStatement : isAnyImportSyntax; const existingImportStatements = filter(sourceFile.statements, importKindPredicate); let sortKind = isArray(imports) ? ts_OrganizeImports_exports.detectImportDeclarationSorting(imports, preferences) : 3 /* Both */; const comparer = ts_OrganizeImports_exports.getOrganizeImportsComparer(preferences, sortKind === 2 /* CaseInsensitive */); @@ -128989,13 +130791,13 @@ ${lanes.join("\n")} function getContextualTypeFromParent(node, checker, contextFlags) { const parent2 = walkUpParenthesizedExpressions(node.parent); switch (parent2.kind) { - case 213 /* NewExpression */: + case 214 /* NewExpression */: return checker.getContextualType(parent2, contextFlags); - case 225 /* BinaryExpression */: { + case 226 /* BinaryExpression */: { const { left, operatorToken, right } = parent2; return isEqualityOperatorKind(operatorToken.kind) ? checker.getTypeAtLocation(node === right ? left : right) : checker.getContextualType(node, contextFlags); } - case 295 /* CaseClause */: + case 296 /* CaseClause */: return getSwitchedType(parent2, checker); default: return checker.getContextualType(node, contextFlags); @@ -129021,8 +130823,8 @@ ${lanes.join("\n")} switch (node.kind) { case 11 /* StringLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: - case 227 /* TemplateExpression */: - case 214 /* TaggedTemplateExpression */: + case 228 /* TemplateExpression */: + case 215 /* TaggedTemplateExpression */: return true; default: return false; @@ -129057,16 +130859,16 @@ ${lanes.join("\n")} return typeIsAccessible ? res : void 0; } function syntaxRequiresTrailingCommaOrSemicolonOrASI(kind) { - return kind === 178 /* CallSignature */ || kind === 179 /* ConstructSignature */ || kind === 180 /* IndexSignature */ || kind === 170 /* PropertySignature */ || kind === 172 /* MethodSignature */; + return kind === 179 /* CallSignature */ || kind === 180 /* ConstructSignature */ || kind === 181 /* IndexSignature */ || kind === 171 /* PropertySignature */ || kind === 173 /* MethodSignature */; } function syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI(kind) { - return kind === 261 /* FunctionDeclaration */ || kind === 175 /* Constructor */ || kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */; + return kind === 262 /* FunctionDeclaration */ || kind === 176 /* Constructor */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; } function syntaxRequiresTrailingModuleBlockOrSemicolonOrASI(kind) { - return kind === 266 /* ModuleDeclaration */; + return kind === 267 /* ModuleDeclaration */; } function syntaxRequiresTrailingSemicolonOrASI(kind) { - return kind === 242 /* VariableStatement */ || kind === 243 /* ExpressionStatement */ || kind === 245 /* DoStatement */ || kind === 250 /* ContinueStatement */ || kind === 251 /* BreakStatement */ || kind === 252 /* ReturnStatement */ || kind === 256 /* ThrowStatement */ || kind === 258 /* DebuggerStatement */ || kind === 171 /* PropertyDeclaration */ || kind === 264 /* TypeAliasDeclaration */ || kind === 271 /* ImportDeclaration */ || kind === 270 /* ImportEqualsDeclaration */ || kind === 277 /* ExportDeclaration */ || kind === 269 /* NamespaceExportDeclaration */ || kind === 276 /* ExportAssignment */; + return kind === 243 /* VariableStatement */ || kind === 244 /* ExpressionStatement */ || kind === 246 /* DoStatement */ || kind === 251 /* ContinueStatement */ || kind === 252 /* BreakStatement */ || kind === 253 /* ReturnStatement */ || kind === 257 /* ThrowStatement */ || kind === 259 /* DebuggerStatement */ || kind === 172 /* PropertyDeclaration */ || kind === 265 /* TypeAliasDeclaration */ || kind === 272 /* ImportDeclaration */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 278 /* ExportDeclaration */ || kind === 270 /* NamespaceExportDeclaration */ || kind === 277 /* ExportAssignment */; } function nodeIsASICandidate(node, sourceFile) { const lastToken = node.getLastToken(sourceFile); @@ -129090,7 +130892,7 @@ ${lanes.join("\n")} } else if (!syntaxRequiresTrailingSemicolonOrASI(node.kind)) { return false; } - if (node.kind === 245 /* DoStatement */) { + if (node.kind === 246 /* DoStatement */) { return true; } const topNode = findAncestor(node, (ancestor) => !ancestor.parent); @@ -129468,13 +131270,16 @@ ${lanes.join("\n")} return !(symbol.flags & 33554432 /* Transient */) && (symbol.escapedName === "export=" /* ExportEquals */ || symbol.escapedName === "default" /* Default */); } function getDefaultLikeExportNameFromDeclaration(symbol) { - return firstDefined( - symbol.declarations, - (d) => { - var _a, _b; - return isExportAssignment(d) ? (_a = tryCast(skipOuterExpressions(d.expression), isIdentifier)) == null ? void 0 : _a.text : (_b = tryCast(getNameOfDeclaration(d), isIdentifier)) == null ? void 0 : _b.text; + return firstDefined(symbol.declarations, (d) => { + var _a, _b, _c; + if (isExportAssignment(d)) { + return (_a = tryCast(skipOuterExpressions(d.expression), isIdentifier)) == null ? void 0 : _a.text; } - ); + if (isExportSpecifier(d) && d.symbol.flags === 2097152 /* Alias */) { + return (_b = tryCast(d.propertyName, isIdentifier)) == null ? void 0 : _b.text; + } + return (_c = tryCast(getNameOfDeclaration(d), isIdentifier)) == null ? void 0 : _c.text; + }); } function getSymbolParentOrFail(symbol) { var _a; @@ -129654,7 +131459,7 @@ ${lanes.join("\n")} typeKeywords = [ 133 /* AnyKeyword */, 131 /* AssertsKeyword */, - 162 /* BigIntKeyword */, + 163 /* BigIntKeyword */, 136 /* BooleanKeyword */, 97 /* FalseKeyword */, 140 /* InferKeyword */, @@ -129914,10 +131719,10 @@ ${lanes.join("\n")} } function forEachExternalModuleToImportFrom(program, host, preferences, useAutoImportProvider, cb) { var _a, _b; - const useCaseSensitiveFileNames = hostUsesCaseSensitiveFileNames(host); + const useCaseSensitiveFileNames2 = hostUsesCaseSensitiveFileNames(host); const excludePatterns = preferences.autoImportFileExcludePatterns && mapDefined(preferences.autoImportFileExcludePatterns, (spec) => { const pattern = getPatternFromSpec(spec, "", "exclude"); - return pattern ? getRegexFromPattern(pattern, useCaseSensitiveFileNames) : void 0; + return pattern ? getRegexFromPattern(pattern, useCaseSensitiveFileNames2) : void 0; }); forEachExternalModule(program.getTypeChecker(), program.getSourceFiles(), excludePatterns, (module2, file) => cb( module2, @@ -130452,13 +132257,13 @@ ${lanes.join("\n")} } function checkForClassificationCancellation(cancellationToken, kind) { switch (kind) { - case 266 /* ModuleDeclaration */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 261 /* FunctionDeclaration */: - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 267 /* ModuleDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 262 /* FunctionDeclaration */: + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: cancellationToken.throwIfCancellationRequested(); } } @@ -130674,49 +132479,49 @@ ${lanes.join("\n")} pos = tag.tagName.end; let commentStart = tag.tagName.end; switch (tag.kind) { - case 347 /* JSDocParameterTag */: + case 348 /* JSDocParameterTag */: const param = tag; processJSDocParameterTag(param); commentStart = param.isNameFirst && ((_a = param.typeExpression) == null ? void 0 : _a.end) || param.name.end; break; - case 354 /* JSDocPropertyTag */: + case 355 /* JSDocPropertyTag */: const prop = tag; commentStart = prop.isNameFirst && ((_b = prop.typeExpression) == null ? void 0 : _b.end) || prop.name.end; break; - case 351 /* JSDocTemplateTag */: + case 352 /* JSDocTemplateTag */: processJSDocTemplateTag(tag); pos = tag.end; commentStart = tag.typeParameters.end; break; - case 352 /* JSDocTypedefTag */: + case 353 /* JSDocTypedefTag */: const type = tag; - commentStart = ((_c = type.typeExpression) == null ? void 0 : _c.kind) === 315 /* JSDocTypeExpression */ && ((_d = type.fullName) == null ? void 0 : _d.end) || ((_e = type.typeExpression) == null ? void 0 : _e.end) || commentStart; + commentStart = ((_c = type.typeExpression) == null ? void 0 : _c.kind) === 316 /* JSDocTypeExpression */ && ((_d = type.fullName) == null ? void 0 : _d.end) || ((_e = type.typeExpression) == null ? void 0 : _e.end) || commentStart; break; - case 344 /* JSDocCallbackTag */: + case 345 /* JSDocCallbackTag */: commentStart = tag.typeExpression.end; break; - case 350 /* JSDocTypeTag */: + case 351 /* JSDocTypeTag */: processElement(tag.typeExpression); pos = tag.end; commentStart = tag.typeExpression.end; break; - case 349 /* JSDocThisTag */: - case 346 /* JSDocEnumTag */: + case 350 /* JSDocThisTag */: + case 347 /* JSDocEnumTag */: commentStart = tag.typeExpression.end; break; - case 348 /* JSDocReturnTag */: + case 349 /* JSDocReturnTag */: processElement(tag.typeExpression); pos = tag.end; commentStart = ((_f = tag.typeExpression) == null ? void 0 : _f.end) || commentStart; break; - case 353 /* JSDocSeeTag */: + case 354 /* JSDocSeeTag */: commentStart = ((_g = tag.name) == null ? void 0 : _g.end) || commentStart; break; - case 334 /* JSDocAugmentsTag */: - case 335 /* JSDocImplementsTag */: + case 335 /* JSDocAugmentsTag */: + case 336 /* JSDocImplementsTag */: commentStart = tag.class.end; break; - case 355 /* JSDocThrowsTag */: + case 356 /* JSDocThrowsTag */: processElement(tag.typeExpression); pos = tag.end; commentStart = ((_h = tag.typeExpression) == null ? void 0 : _h.end) || commentStart; @@ -130861,22 +132666,22 @@ ${lanes.join("\n")} } function tryClassifyJsxElementName(token) { switch (token.parent && token.parent.kind) { - case 285 /* JsxOpeningElement */: + case 286 /* JsxOpeningElement */: if (token.parent.tagName === token) { return 19 /* jsxOpenTagName */; } break; - case 286 /* JsxClosingElement */: + case 287 /* JsxClosingElement */: if (token.parent.tagName === token) { return 20 /* jsxCloseTagName */; } break; - case 284 /* JsxSelfClosingElement */: + case 285 /* JsxSelfClosingElement */: if (token.parent.tagName === token) { return 21 /* jsxSelfClosingTagName */; } break; - case 290 /* JsxAttribute */: + case 291 /* JsxAttribute */: if (token.parent.name === token) { return 22 /* jsxAttribute */; } @@ -130897,11 +132702,11 @@ ${lanes.join("\n")} if (token) { const parent2 = token.parent; if (tokenKind === 64 /* EqualsToken */) { - if (parent2.kind === 259 /* VariableDeclaration */ || parent2.kind === 171 /* PropertyDeclaration */ || parent2.kind === 168 /* Parameter */ || parent2.kind === 290 /* JsxAttribute */) { + if (parent2.kind === 260 /* VariableDeclaration */ || parent2.kind === 172 /* PropertyDeclaration */ || parent2.kind === 169 /* Parameter */ || parent2.kind === 291 /* JsxAttribute */) { return 5 /* operator */; } } - if (parent2.kind === 225 /* BinaryExpression */ || parent2.kind === 223 /* PrefixUnaryExpression */ || parent2.kind === 224 /* PostfixUnaryExpression */ || parent2.kind === 226 /* ConditionalExpression */) { + if (parent2.kind === 226 /* BinaryExpression */ || parent2.kind === 224 /* PrefixUnaryExpression */ || parent2.kind === 225 /* PostfixUnaryExpression */ || parent2.kind === 227 /* ConditionalExpression */) { return 5 /* operator */; } } @@ -130911,7 +132716,7 @@ ${lanes.join("\n")} } else if (tokenKind === 10 /* BigIntLiteral */) { return 25 /* bigintLiteral */; } else if (tokenKind === 11 /* StringLiteral */) { - return token && token.parent.kind === 290 /* JsxAttribute */ ? 24 /* jsxAttributeStringLiteralValue */ : 6 /* stringLiteral */; + return token && token.parent.kind === 291 /* JsxAttribute */ ? 24 /* jsxAttributeStringLiteralValue */ : 6 /* stringLiteral */; } else if (tokenKind === 14 /* RegularExpressionLiteral */) { return 6 /* stringLiteral */; } else if (isTemplateLiteralKind(tokenKind)) { @@ -130921,32 +132726,32 @@ ${lanes.join("\n")} } else if (tokenKind === 80 /* Identifier */) { if (token) { switch (token.parent.kind) { - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: if (token.parent.name === token) { return 11 /* className */; } return; - case 167 /* TypeParameter */: + case 168 /* TypeParameter */: if (token.parent.name === token) { return 15 /* typeParameterName */; } return; - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: if (token.parent.name === token) { return 13 /* interfaceName */; } return; - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: if (token.parent.name === token) { return 12 /* enumName */; } return; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: if (token.parent.name === token) { return 14 /* moduleName */; } return; - case 168 /* Parameter */: + case 169 /* Parameter */: if (token.parent.name === token) { return isThisIdentifier(token) ? 3 /* keyword */ : 17 /* parameterName */; } @@ -131131,7 +132936,7 @@ ${lanes.join("\n")} let child = throwStatement; while (child.parent) { const parent2 = child.parent; - if (isFunctionBlock(parent2) || parent2.kind === 311 /* SourceFile */) { + if (isFunctionBlock(parent2) || parent2.kind === 312 /* SourceFile */) { return parent2; } if (isTryStatement(parent2) && parent2.tryBlock === child && parent2.catchClause) { @@ -131161,15 +132966,15 @@ ${lanes.join("\n")} function getBreakOrContinueOwner(statement) { return findAncestor(statement, (node) => { switch (node.kind) { - case 254 /* SwitchStatement */: - if (statement.kind === 250 /* ContinueStatement */) { + case 255 /* SwitchStatement */: + if (statement.kind === 251 /* ContinueStatement */) { return false; } - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 246 /* WhileStatement */: - case 245 /* DoStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 247 /* WhileStatement */: + case 246 /* DoStatement */: return !statement.label || isLabeledBy(node, statement.label.escapedText); default: return isFunctionLike(node) && "quit"; @@ -131182,24 +132987,24 @@ ${lanes.join("\n")} function getNodesToSearchForModifier(declaration, modifierFlag) { const container = declaration.parent; switch (container.kind) { - case 267 /* ModuleBlock */: - case 311 /* SourceFile */: - case 240 /* Block */: - case 295 /* CaseClause */: - case 296 /* DefaultClause */: + case 268 /* ModuleBlock */: + case 312 /* SourceFile */: + case 241 /* Block */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: if (modifierFlag & 256 /* Abstract */ && isClassDeclaration(declaration)) { return [...declaration.members, declaration]; } else { return container.statements; } - case 175 /* Constructor */: - case 173 /* MethodDeclaration */: - case 261 /* FunctionDeclaration */: + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 262 /* FunctionDeclaration */: return [...container.parameters, ...isClassLike(container.parent) ? container.parent.members : []]; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 186 /* TypeLiteral */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 187 /* TypeLiteral */: const nodes = container.members; if (modifierFlag & (28 /* AccessibilityModifier */ | 64 /* Readonly */)) { const constructor = find(container.members, isConstructorDeclaration); @@ -131210,7 +133015,7 @@ ${lanes.join("\n")} return [...nodes, container]; } return nodes; - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return void 0; default: Debug.assertNever(container, "Invalid container kind."); @@ -131226,7 +133031,7 @@ ${lanes.join("\n")} function getLoopBreakContinueOccurrences(loopNode) { const keywords = []; if (pushKeywordIf(keywords, loopNode.getFirstToken(), 99 /* ForKeyword */, 117 /* WhileKeyword */, 92 /* DoKeyword */)) { - if (loopNode.kind === 245 /* DoStatement */) { + if (loopNode.kind === 246 /* DoStatement */) { const loopTokens = loopNode.getChildren(); for (let i = loopTokens.length - 1; i >= 0; i--) { if (pushKeywordIf(keywords, loopTokens[i], 117 /* WhileKeyword */)) { @@ -131246,13 +133051,13 @@ ${lanes.join("\n")} const owner = getBreakOrContinueOwner(breakOrContinueStatement); if (owner) { switch (owner.kind) { - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: return getLoopBreakContinueOccurrences(owner); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return getSwitchCaseDefaultOccurrences(owner); } } @@ -131413,12 +133218,12 @@ ${lanes.join("\n")} function isDocumentRegistryEntry(entry) { return !!entry.sourceFile; } - function createDocumentRegistry(useCaseSensitiveFileNames, currentDirectory) { - return createDocumentRegistryInternal(useCaseSensitiveFileNames, currentDirectory); + function createDocumentRegistry(useCaseSensitiveFileNames2, currentDirectory) { + return createDocumentRegistryInternal(useCaseSensitiveFileNames2, currentDirectory); } - function createDocumentRegistryInternal(useCaseSensitiveFileNames, currentDirectory = "", externalCache) { + function createDocumentRegistryInternal(useCaseSensitiveFileNames2, currentDirectory = "", externalCache) { const buckets = /* @__PURE__ */ new Map(); - const getCanonicalFileName = createGetCanonicalFileName(!!useCaseSensitiveFileNames); + const getCanonicalFileName = createGetCanonicalFileName(!!useCaseSensitiveFileNames2); function reportStats() { const bucketInfoArray = arrayFrom(buckets.keys()).filter((name) => name && name.charAt(0) === "_").map((name) => { const entries = buckets.get(name); @@ -131599,13 +133404,6 @@ ${lanes.join("\n")} } } } - function getLanguageServiceRefCounts(path, scriptKind) { - return arrayFrom(buckets.entries(), ([key, bucket]) => { - const bucketEntry = bucket.get(path); - const entry = bucketEntry && getDocumentRegistryEntry(bucketEntry, scriptKind); - return [key, entry && entry.languageServiceRefCount]; - }); - } return { acquireDocument, acquireDocumentWithKey, @@ -131613,9 +133411,10 @@ ${lanes.join("\n")} updateDocumentWithKey, releaseDocument, releaseDocumentWithKey, - getLanguageServiceRefCounts, + getKeyForCompilationSettings, + getDocumentRegistryBucketKeyWithMode, reportStats, - getKeyForCompilationSettings + getBuckets: () => buckets }; } function getKeyForCompilationSettings(settings) { @@ -131633,12 +133432,12 @@ ${lanes.join("\n")} // src/services/getEditsForFileRename.ts function getEditsForFileRename(program, oldFileOrDirPath, newFileOrDirPath, host, formatContext, preferences, sourceMapper) { - const useCaseSensitiveFileNames = hostUsesCaseSensitiveFileNames(host); - const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames); + const useCaseSensitiveFileNames2 = hostUsesCaseSensitiveFileNames(host); + const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2); const oldToNew = getPathUpdater(oldFileOrDirPath, newFileOrDirPath, getCanonicalFileName, sourceMapper); const newToOld = getPathUpdater(newFileOrDirPath, oldFileOrDirPath, getCanonicalFileName, sourceMapper); return ts_textChanges_exports.ChangeTracker.with({ host, formatContext, preferences }, (changeTracker) => { - updateTsconfigFiles(program, changeTracker, oldToNew, oldFileOrDirPath, newFileOrDirPath, host.getCurrentDirectory(), useCaseSensitiveFileNames); + updateTsconfigFiles(program, changeTracker, oldToNew, oldFileOrDirPath, newFileOrDirPath, host.getCurrentDirectory(), useCaseSensitiveFileNames2); updateImports(program, changeTracker, oldToNew, newToOld, host, getCanonicalFileName); }); } @@ -131660,7 +133459,7 @@ ${lanes.join("\n")} const rel = getRelativePathFromFile(a0, b0, getCanonicalFileName); return combinePathsSafe(getDirectoryPath(a1), rel); } - function updateTsconfigFiles(program, changeTracker, oldToNew, oldFileOrDirPath, newFileOrDirPath, currentDirectory, useCaseSensitiveFileNames) { + function updateTsconfigFiles(program, changeTracker, oldToNew, oldFileOrDirPath, newFileOrDirPath, currentDirectory, useCaseSensitiveFileNames2) { const { configFile } = program.getCompilerOptions(); if (!configFile) return; @@ -131684,10 +133483,10 @@ ${lanes.join("\n")} /*excludes*/ [], includes, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames2, currentDirectory ); - if (getRegexFromPattern(Debug.checkDefined(matchers.includeFilePattern), useCaseSensitiveFileNames).test(oldFileOrDirPath) && !getRegexFromPattern(Debug.checkDefined(matchers.includeFilePattern), useCaseSensitiveFileNames).test(newFileOrDirPath)) { + if (getRegexFromPattern(Debug.checkDefined(matchers.includeFilePattern), useCaseSensitiveFileNames2).test(oldFileOrDirPath) && !getRegexFromPattern(Debug.checkDefined(matchers.includeFilePattern), useCaseSensitiveFileNames2).test(newFileOrDirPath)) { changeTracker.insertNodeAfter(configFile, last(property.initializer.elements), factory.createStringLiteral(relativePath(newFileOrDirPath))); } return; @@ -131735,7 +133534,7 @@ ${lanes.join("\n")} configDir, path, /*ignoreCase*/ - !useCaseSensitiveFileNames + !useCaseSensitiveFileNames2 ); } } @@ -132282,7 +134081,7 @@ ${lanes.join("\n")} if (token === 156 /* TypeKeyword */) { const skipTypeKeyword = scanner.lookAhead(() => { const token2 = scanner.scan(); - return token2 !== 160 /* FromKeyword */ && (token2 === 42 /* AsteriskToken */ || token2 === 19 /* OpenBraceToken */ || token2 === 80 /* Identifier */ || isKeyword(token2)); + return token2 !== 161 /* FromKeyword */ && (token2 === 42 /* AsteriskToken */ || token2 === 19 /* OpenBraceToken */ || token2 === 80 /* Identifier */ || isKeyword(token2)); }); if (skipTypeKeyword) { token = nextToken(); @@ -132290,7 +134089,7 @@ ${lanes.join("\n")} } if (token === 80 /* Identifier */ || isKeyword(token)) { token = nextToken(); - if (token === 160 /* FromKeyword */) { + if (token === 161 /* FromKeyword */) { token = nextToken(); if (token === 11 /* StringLiteral */) { recordModuleName(); @@ -132316,7 +134115,7 @@ ${lanes.join("\n")} } if (token === 20 /* CloseBraceToken */) { token = nextToken(); - if (token === 160 /* FromKeyword */) { + if (token === 161 /* FromKeyword */) { token = nextToken(); if (token === 11 /* StringLiteral */) { recordModuleName(); @@ -132329,7 +134128,7 @@ ${lanes.join("\n")} token = nextToken(); if (token === 80 /* Identifier */ || isKeyword(token)) { token = nextToken(); - if (token === 160 /* FromKeyword */) { + if (token === 161 /* FromKeyword */) { token = nextToken(); if (token === 11 /* StringLiteral */) { recordModuleName(); @@ -132364,7 +134163,7 @@ ${lanes.join("\n")} } if (token === 20 /* CloseBraceToken */) { token = nextToken(); - if (token === 160 /* FromKeyword */) { + if (token === 161 /* FromKeyword */) { token = nextToken(); if (token === 11 /* StringLiteral */) { recordModuleName(); @@ -132373,7 +134172,7 @@ ${lanes.join("\n")} } } else if (token === 42 /* AsteriskToken */) { token = nextToken(); - if (token === 160 /* FromKeyword */) { + if (token === 161 /* FromKeyword */) { token = nextToken(); if (token === 11 /* StringLiteral */) { recordModuleName(); @@ -132687,7 +134486,7 @@ ${lanes.join("\n")} "src/services/sourcemaps.ts"() { "use strict"; init_ts4(); - base64UrlRegExp = /^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/; + base64UrlRegExp = /^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/; } }); @@ -132735,8 +134534,8 @@ ${lanes.join("\n")} diags.push(createDiagnosticForNode(init, Diagnostics.require_call_may_be_converted_to_an_import)); } } - const jsdocTypedefNode = ts_codefix_exports.getJSDocTypedefNode(node); - if (jsdocTypedefNode) { + const jsdocTypedefNodes = ts_codefix_exports.getJSDocTypedefNodes(node); + for (const jsdocTypedefNode of jsdocTypedefNodes) { diags.push(createDiagnosticForNode(jsdocTypedefNode, Diagnostics.JSDoc_typedef_may_be_converted_to_TypeScript_type)); } if (ts_codefix_exports.parameterShouldGetTypeFromJSDoc(node)) { @@ -132752,13 +134551,13 @@ ${lanes.join("\n")} function containsTopLevelCommonjs(sourceFile) { return sourceFile.statements.some((statement) => { switch (statement.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return statement.declarationList.declarations.some((decl) => !!decl.initializer && isRequireCall( propertyAccessLeftHandSide(decl.initializer), /*requireStringLiteralLikeArgument*/ true )); - case 243 /* ExpressionStatement */: { + case 244 /* ExpressionStatement */: { const { expression } = statement; if (!isBinaryExpression(expression)) return isRequireCall( @@ -132779,10 +134578,10 @@ ${lanes.join("\n")} } function importNameForConvertToDefaultImport(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: const { importClause, moduleSpecifier } = node; - return importClause && !importClause.name && importClause.namedBindings && importClause.namedBindings.kind === 273 /* NamespaceImport */ && isStringLiteral(moduleSpecifier) ? importClause.namedBindings.name : void 0; - case 270 /* ImportEqualsDeclaration */: + return importClause && !importClause.name && importClause.namedBindings && importClause.namedBindings.kind === 274 /* NamespaceImport */ && isStringLiteral(moduleSpecifier) ? importClause.namedBindings.name : void 0; + case 271 /* ImportEqualsDeclaration */: return node.name; default: return void 0; @@ -132846,18 +134645,18 @@ ${lanes.join("\n")} } function isFixablePromiseArgument(arg, checker) { switch (arg.kind) { - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: const functionFlags = getFunctionFlags(arg); if (functionFlags & 1 /* Generator */) { return false; } - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: visitedNestedConvertibleFunctions.set(getKeyFromNode(arg), true); case 106 /* NullKeyword */: return true; case 80 /* Identifier */: - case 210 /* PropertyAccessExpression */: { + case 211 /* PropertyAccessExpression */: { const symbol = checker.getSymbolAtLocation(arg); if (!symbol) { return false; @@ -132891,10 +134690,10 @@ ${lanes.join("\n")} } function canBeConvertedToAsync(node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 173 /* MethodDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return true; default: return false; @@ -133077,9 +134876,9 @@ ${lanes.join("\n")} } function shouldKeepItem(declaration, checker) { switch (declaration.kind) { - case 272 /* ImportClause */: - case 275 /* ImportSpecifier */: - case 270 /* ImportEqualsDeclaration */: + case 273 /* ImportClause */: + case 276 /* ImportSpecifier */: + case 271 /* ImportEqualsDeclaration */: const importer = checker.getSymbolAtLocation(declaration.name); const imported = checker.getAliasedSymbol(importer); return importer.escapedName !== imported.escapedName; @@ -133089,7 +134888,7 @@ ${lanes.join("\n")} } function tryAddSingleDeclarationName(declaration, containers) { const name = getNameOfDeclaration(declaration); - return !!name && (pushLiteral(name, containers) || name.kind === 166 /* ComputedPropertyName */ && tryAddComputedPropertyName(name.expression, containers)); + return !!name && (pushLiteral(name, containers) || name.kind === 167 /* ComputedPropertyName */ && tryAddComputedPropertyName(name.expression, containers)); } function tryAddComputedPropertyName(expression, containers) { return pushLiteral(expression, containers) || isPropertyAccessExpression(expression) && (containers.push(expression.name.text), true) && tryAddComputedPropertyName(expression.expression, containers); @@ -133100,7 +134899,7 @@ ${lanes.join("\n")} function getContainers(declaration) { const containers = []; const name = getNameOfDeclaration(declaration); - if (name && name.kind === 166 /* ComputedPropertyName */ && !tryAddComputedPropertyName(name.expression, containers)) { + if (name && name.kind === 167 /* ComputedPropertyName */ && !tryAddComputedPropertyName(name.expression, containers)) { return emptyArray; } containers.shift(); @@ -133273,7 +135072,7 @@ ${lanes.join("\n")} } } function hasNavigationBarName(node) { - return !hasDynamicName(node) || node.kind !== 225 /* BinaryExpression */ && isPropertyAccessExpression(node.name.expression) && isIdentifier(node.name.expression.expression) && idText(node.name.expression.expression) === "Symbol"; + return !hasDynamicName(node) || node.kind !== 226 /* BinaryExpression */ && isPropertyAccessExpression(node.name.expression) && isIdentifier(node.name.expression.expression) && idText(node.name.expression.expression) === "Symbol"; } function addChildrenRecursively(node) { curCancellationToken.throwIfCancellationRequested(); @@ -133281,7 +135080,7 @@ ${lanes.join("\n")} return; } switch (node.kind) { - case 175 /* Constructor */: + case 176 /* Constructor */: const ctr = node; addNodeWithRecursiveChild(ctr, ctr.body); for (const param of ctr.parameters) { @@ -133290,32 +135089,32 @@ ${lanes.join("\n")} } } break; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 173 /* MethodSignature */: if (hasNavigationBarName(node)) { addNodeWithRecursiveChild(node, node.body); } break; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: if (hasNavigationBarName(node)) { addNodeWithRecursiveInitializer(node); } break; - case 170 /* PropertySignature */: + case 171 /* PropertySignature */: if (hasNavigationBarName(node)) { addLeafNode(node); } break; - case 272 /* ImportClause */: + case 273 /* ImportClause */: const importClause = node; if (importClause.name) { addLeafNode(importClause.name); } const { namedBindings } = importClause; if (namedBindings) { - if (namedBindings.kind === 273 /* NamespaceImport */) { + if (namedBindings.kind === 274 /* NamespaceImport */) { addLeafNode(namedBindings); } else { for (const element of namedBindings.elements) { @@ -133324,16 +135123,16 @@ ${lanes.join("\n")} } } break; - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: addNodeWithRecursiveChild(node, node.name); break; - case 304 /* SpreadAssignment */: + case 305 /* SpreadAssignment */: const { expression } = node; isIdentifier(expression) ? addLeafNode(node, expression) : addLeafNode(node); break; - case 207 /* BindingElement */: - case 302 /* PropertyAssignment */: - case 259 /* VariableDeclaration */: { + case 208 /* BindingElement */: + case 303 /* PropertyAssignment */: + case 260 /* VariableDeclaration */: { const child = node; if (isBindingPattern(child.name)) { addChildrenRecursively(child.name); @@ -133342,18 +135141,18 @@ ${lanes.join("\n")} } break; } - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: const nameNode = node.name; if (nameNode && isIdentifier(nameNode)) { addTrackedEs5Class(nameNode.text); } addNodeWithRecursiveChild(node, node.body); break; - case 218 /* ArrowFunction */: - case 217 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 218 /* FunctionExpression */: addNodeWithRecursiveChild(node, node.body); break; - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: startNode(node); for (const member of node.members) { if (!isComputedProperty(member)) { @@ -133362,19 +135161,19 @@ ${lanes.join("\n")} } endNode(); break; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: startNode(node); for (const member of node.members) { addChildrenRecursively(member); } endNode(); break; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: addNodeWithRecursiveChild(node, getInteriorModule(node).body); break; - case 276 /* ExportAssignment */: { + case 277 /* ExportAssignment */: { const expression2 = node.expression; const child = isObjectLiteralExpression(expression2) || isCallExpression(expression2) ? expression2 : isArrowFunction(expression2) || isFunctionExpression(expression2) ? expression2.body : void 0; if (child) { @@ -133386,16 +135185,16 @@ ${lanes.join("\n")} } break; } - case 280 /* ExportSpecifier */: - case 270 /* ImportEqualsDeclaration */: - case 180 /* IndexSignature */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 264 /* TypeAliasDeclaration */: + case 281 /* ExportSpecifier */: + case 271 /* ImportEqualsDeclaration */: + case 181 /* IndexSignature */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 265 /* TypeAliasDeclaration */: addLeafNode(node); break; - case 212 /* CallExpression */: - case 225 /* BinaryExpression */: { + case 213 /* CallExpression */: + case 226 /* BinaryExpression */: { const special = getAssignmentDeclarationKind(node); switch (special) { case 1 /* ExportsProperty */: @@ -133605,19 +135404,19 @@ ${lanes.join("\n")} return false; } switch (a.kind) { - case 171 /* PropertyDeclaration */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return isStatic(a) === isStatic(b); - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return areSameModule(a, b) && getFullyQualifiedModuleName(a) === getFullyQualifiedModuleName(b); default: return true; } } function isSynthesized(node) { - return !!(node.flags & 8 /* Synthesized */); + return !!(node.flags & 16 /* Synthesized */); } function isOwnChild(n, parent2) { const par = isModuleBlock(n.parent) ? n.parent.parent : n.parent; @@ -133627,7 +135426,7 @@ ${lanes.join("\n")} if (!a.body || !b.body) { return a.body === b.body; } - return a.body.kind === b.body.kind && (a.body.kind !== 266 /* ModuleDeclaration */ || areSameModule(a.body, b.body)); + return a.body.kind === b.body.kind && (a.body.kind !== 267 /* ModuleDeclaration */ || areSameModule(a.body, b.body)); } function merge(target, source) { target.additionalNodes = target.additionalNodes || []; @@ -133648,7 +135447,7 @@ ${lanes.join("\n")} return compareStringsCaseSensitiveUI(tryGetName(child1.node), tryGetName(child2.node)) || compareValues(navigationBarNodeKind(child1), navigationBarNodeKind(child2)); } function tryGetName(node) { - if (node.kind === 266 /* ModuleDeclaration */) { + if (node.kind === 267 /* ModuleDeclaration */) { return getModuleName(node); } const declName = getNameOfDeclaration(node); @@ -133657,16 +135456,16 @@ ${lanes.join("\n")} return propertyName && unescapeLeadingUnderscores(propertyName); } switch (node.kind) { - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 230 /* ClassExpression */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 231 /* ClassExpression */: return getFunctionOrClassName(node); default: return void 0; } } function getItemName(node, name) { - if (node.kind === 266 /* ModuleDeclaration */) { + if (node.kind === 267 /* ModuleDeclaration */) { return cleanText(getModuleName(node)); } if (name) { @@ -133676,27 +135475,27 @@ ${lanes.join("\n")} } } switch (node.kind) { - case 311 /* SourceFile */: + case 312 /* SourceFile */: const sourceFile = node; return isExternalModule(sourceFile) ? `"${escapeString(getBaseFileName(removeFileExtension(normalizePath(sourceFile.fileName))))}"` : ""; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return isExportAssignment(node) && node.isExportEquals ? "export=" /* ExportEquals */ : "default" /* Default */; - case 218 /* ArrowFunction */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 219 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: if (getSyntacticModifierFlags(node) & 1024 /* Default */) { return "default"; } return getFunctionOrClassName(node); - case 175 /* Constructor */: + case 176 /* Constructor */: return "constructor"; - case 179 /* ConstructSignature */: + case 180 /* ConstructSignature */: return "new()"; - case 178 /* CallSignature */: + case 179 /* CallSignature */: return "()"; - case 180 /* IndexSignature */: + case 181 /* IndexSignature */: return "[]"; default: return ""; @@ -133721,19 +135520,19 @@ ${lanes.join("\n")} return true; } switch (navigationBarNodeKind(item)) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 265 /* EnumDeclaration */: - case 263 /* InterfaceDeclaration */: - case 266 /* ModuleDeclaration */: - case 311 /* SourceFile */: - case 264 /* TypeAliasDeclaration */: - case 352 /* JSDocTypedefTag */: - case 344 /* JSDocCallbackTag */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 266 /* EnumDeclaration */: + case 264 /* InterfaceDeclaration */: + case 267 /* ModuleDeclaration */: + case 312 /* SourceFile */: + case 265 /* TypeAliasDeclaration */: + case 353 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: return true; - case 218 /* ArrowFunction */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: return isTopLevelFunctionDeclaration(item); default: return false; @@ -133743,10 +135542,10 @@ ${lanes.join("\n")} return false; } switch (navigationBarNodeKind(item2.parent)) { - case 267 /* ModuleBlock */: - case 311 /* SourceFile */: - case 173 /* MethodDeclaration */: - case 175 /* Constructor */: + case 268 /* ModuleBlock */: + case 312 /* SourceFile */: + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: return true; default: return false; @@ -133805,7 +135604,7 @@ ${lanes.join("\n")} } function getFullyQualifiedModuleName(moduleDeclaration) { const result = [getTextOfIdentifierOrLiteral(moduleDeclaration.name)]; - while (moduleDeclaration.body && moduleDeclaration.body.kind === 266 /* ModuleDeclaration */) { + while (moduleDeclaration.body && moduleDeclaration.body.kind === 267 /* ModuleDeclaration */) { moduleDeclaration = moduleDeclaration.body; result.push(getTextOfIdentifierOrLiteral(moduleDeclaration.name)); } @@ -133815,13 +135614,13 @@ ${lanes.join("\n")} return decl.body && isModuleDeclaration(decl.body) ? getInteriorModule(decl.body) : decl; } function isComputedProperty(member) { - return !member.name || member.name.kind === 166 /* ComputedPropertyName */; + return !member.name || member.name.kind === 167 /* ComputedPropertyName */; } function getNodeSpan(node) { - return node.kind === 311 /* SourceFile */ ? createTextSpanFromRange(node) : createTextSpanFromNode(node, curSourceFile); + return node.kind === 312 /* SourceFile */ ? createTextSpanFromRange(node) : createTextSpanFromNode(node, curSourceFile); } function getModifiers2(node) { - if (node.parent && node.parent.kind === 259 /* VariableDeclaration */) { + if (node.parent && node.parent.kind === 260 /* VariableDeclaration */) { node = node.parent; } return getNodeModifiers(node); @@ -133866,9 +135665,9 @@ ${lanes.join("\n")} } function isFunctionOrClassExpression(node) { switch (node.kind) { - case 218 /* ArrowFunction */: - case 217 /* FunctionExpression */: - case 230 /* ClassExpression */: + case 219 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 231 /* ClassExpression */: return true; default: return false; @@ -133926,8 +135725,8 @@ ${lanes.join("\n")} return context.cancellationToken && context.cancellationToken.isCancellationRequested() || !((_a = refactor.kinds) == null ? void 0 : _a.some((kind) => refactorKindBeginsWith(kind, context.kind))) ? void 0 : refactor.getAvailableActions(context, includeInteractiveActions); })); } - function getEditsForRefactor(context, refactorName13, actionName2, interactiveRefactorArguments) { - const refactor = refactors.get(refactorName13); + function getEditsForRefactor(context, refactorName14, actionName2, interactiveRefactorArguments) { + const refactor = refactors.get(refactorName14); return refactor && refactor.getEditsForAction(context, actionName2, interactiveRefactorArguments); } var refactors; @@ -133958,18 +135757,18 @@ ${lanes.join("\n")} } const noSymbolError = (id) => isIdentifier(id) && checker.getSymbolAtLocation(id) ? void 0 : { error: getLocaleSpecificMessage(Diagnostics.Can_only_convert_named_export) }; switch (exportNode.kind) { - case 261 /* FunctionDeclaration */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 266 /* ModuleDeclaration */: { + case 262 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 267 /* ModuleDeclaration */: { const node = exportNode; if (!node.name) return void 0; return noSymbolError(node.name) || { exportNode: node, exportName: node.name, wasDefault, exportingModuleSymbol }; } - case 242 /* VariableStatement */: { + case 243 /* VariableStatement */: { const vs = exportNode; if (!(vs.declarationList.flags & 2 /* Const */) || vs.declarationList.declarations.length !== 1) { return void 0; @@ -133980,7 +135779,7 @@ ${lanes.join("\n")} Debug.assert(!wasDefault, "Can't have a default flag here"); return noSymbolError(decl.name) || { exportNode: vs, exportName: decl.name, wasDefault, exportingModuleSymbol }; } - case 276 /* ExportAssignment */: { + case 277 /* ExportAssignment */: { const node = exportNode; if (node.isExportEquals) return void 0; @@ -134012,20 +135811,20 @@ ${lanes.join("\n")} } else { const exportKeyword = Debug.checkDefined(findModifier(exportNode, 95 /* ExportKeyword */), "Should find an export keyword in modifier list"); switch (exportNode.kind) { - case 261 /* FunctionDeclaration */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: + case 262 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: changes.insertNodeAfter(exportingSourceFile, exportKeyword, factory.createToken(90 /* DefaultKeyword */)); break; - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: const decl = first(exportNode.declarationList.declarations); if (!ts_FindAllReferences_exports.Core.isSymbolReferencedInFile(exportName, checker, exportingSourceFile) && !decl.type) { changes.replaceNode(exportingSourceFile, exportNode, factory.createExportDefault(Debug.checkDefined(decl.initializer, "Initializer was previously known to be present"))); break; } - case 265 /* EnumDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 266 /* ModuleDeclaration */: + case 266 /* EnumDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 267 /* ModuleDeclaration */: changes.deleteModifier(exportingSourceFile, exportKeyword); changes.insertNodeAfter(exportingSourceFile, exportNode, factory.createExportDefault(factory.createIdentifier(exportName.text))); break; @@ -134051,23 +135850,23 @@ ${lanes.join("\n")} function changeDefaultToNamedImport(importingSourceFile, ref, changes, exportName) { const { parent: parent2 } = ref; switch (parent2.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: changes.replaceNode(importingSourceFile, ref, factory.createIdentifier(exportName)); break; - case 275 /* ImportSpecifier */: - case 280 /* ExportSpecifier */: { + case 276 /* ImportSpecifier */: + case 281 /* ExportSpecifier */: { const spec = parent2; changes.replaceNode(importingSourceFile, spec, makeImportSpecifier(exportName, spec.name.text)); break; } - case 272 /* ImportClause */: { + case 273 /* ImportClause */: { const clause = parent2; Debug.assert(clause.name === ref, "Import clause name should match provided ref"); const spec = makeImportSpecifier(exportName, ref.text); const { namedBindings } = clause; if (!namedBindings) { changes.replaceNode(importingSourceFile, ref, factory.createNamedImports([spec])); - } else if (namedBindings.kind === 273 /* NamespaceImport */) { + } else if (namedBindings.kind === 274 /* NamespaceImport */) { changes.deleteRange(importingSourceFile, { pos: ref.getStart(importingSourceFile), end: namedBindings.getStart(importingSourceFile) }); const quotePreference = isStringLiteral(clause.parent.moduleSpecifier) ? quotePreferenceFromString(clause.parent.moduleSpecifier, importingSourceFile) : 1 /* Double */; const newImport = makeImport( @@ -134084,7 +135883,7 @@ ${lanes.join("\n")} } break; } - case 204 /* ImportType */: + case 205 /* ImportType */: const importTypeNode = parent2; changes.replaceNode(importingSourceFile, parent2, factory.createImportTypeNode(importTypeNode.argument, importTypeNode.assertions, factory.createIdentifier(exportName), importTypeNode.typeArguments, importTypeNode.isTypeOf)); break; @@ -134095,10 +135894,10 @@ ${lanes.join("\n")} function changeNamedToDefaultImport(importingSourceFile, ref, changes) { const parent2 = ref.parent; switch (parent2.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: changes.replaceNode(importingSourceFile, ref, factory.createIdentifier("default")); break; - case 275 /* ImportSpecifier */: { + case 276 /* ImportSpecifier */: { const defaultImport = factory.createIdentifier(parent2.name.text); if (parent2.parent.elements.length === 1) { changes.replaceNode(importingSourceFile, parent2.parent, defaultImport); @@ -134108,7 +135907,7 @@ ${lanes.join("\n")} } break; } - case 280 /* ExportSpecifier */: { + case 281 /* ExportSpecifier */: { changes.replaceNode(importingSourceFile, parent2, makeExportSpecifier("default", parent2.name.text)); break; } @@ -134151,12 +135950,12 @@ ${lanes.join("\n")} refactorName = "Convert export"; defaultToNamedAction = { name: "Convert default export to named export", - description: Diagnostics.Convert_default_export_to_named_export.message, + description: getLocaleSpecificMessage(Diagnostics.Convert_default_export_to_named_export), kind: "refactor.rewrite.export.named" }; namedToDefaultAction = { name: "Convert named export to default export", - description: Diagnostics.Convert_named_export_to_default_export.message, + description: getLocaleSpecificMessage(Diagnostics.Convert_named_export_to_default_export), kind: "refactor.rewrite.export.default" }; registerRefactor(refactorName, { @@ -134174,7 +135973,7 @@ ${lanes.join("\n")} } if (context.preferences.provideRefactorNotApplicableReason) { return [ - { name: refactorName, description: Diagnostics.Convert_default_export_to_named_export.message, actions: [ + { name: refactorName, description: getLocaleSpecificMessage(Diagnostics.Convert_default_export_to_named_export), actions: [ { ...defaultToNamedAction, notApplicableReason: info.error }, { ...namedToDefaultAction, notApplicableReason: info.error } ] } @@ -134212,7 +136011,7 @@ ${lanes.join("\n")} if (!importClause.namedBindings) { return { error: getLocaleSpecificMessage(Diagnostics.Could_not_find_namespace_import_or_named_imports) }; } - if (importClause.namedBindings.kind === 273 /* NamespaceImport */) { + if (importClause.namedBindings.kind === 274 /* NamespaceImport */) { return { convertTo: 0 /* Named */, import: importClause.namedBindings }; } const shouldUseDefault = getShouldUseDefault(context.program, importClause); @@ -134376,17 +136175,17 @@ ${lanes.join("\n")} actions = { [0 /* Named */]: { name: "Convert namespace import to named imports", - description: Diagnostics.Convert_namespace_import_to_named_imports.message, + description: getLocaleSpecificMessage(Diagnostics.Convert_namespace_import_to_named_imports), kind: "refactor.rewrite.import.named" }, [2 /* Namespace */]: { name: "Convert named imports to namespace import", - description: Diagnostics.Convert_named_imports_to_namespace_import.message, + description: getLocaleSpecificMessage(Diagnostics.Convert_named_imports_to_namespace_import), kind: "refactor.rewrite.import.namespace" }, [1 /* Default */]: { name: "Convert named imports to default import", - description: Diagnostics.Convert_named_imports_to_default_import.message, + description: getLocaleSpecificMessage(Diagnostics.Convert_named_imports_to_default_import), kind: "refactor.rewrite.import.default" } }; @@ -134733,6 +136532,158 @@ ${lanes.join("\n")} } }); + // src/services/refactors/inlineVariable.ts + function getInliningInfo(file, startPosition, tryWithReferenceToken, program) { + var _a, _b; + const checker = program.getTypeChecker(); + const token = getTouchingPropertyName(file, startPosition); + const parent2 = token.parent; + if (!isIdentifier(token)) { + return void 0; + } + if (isInitializedVariable(parent2) && isVariableDeclarationInVariableStatement(parent2) && isIdentifier(parent2.name)) { + if (((_a = checker.getMergedSymbol(parent2.symbol).declarations) == null ? void 0 : _a.length) !== 1) { + return { error: getLocaleSpecificMessage(Diagnostics.Variables_with_multiple_declarations_cannot_be_inlined) }; + } + if (isDeclarationExported(parent2)) { + return void 0; + } + const references = getReferenceNodes(parent2, checker, file); + return references && { references, declaration: parent2, replacement: parent2.initializer }; + } + if (tryWithReferenceToken) { + let definition = checker.resolveName( + token.text, + token, + 111551 /* Value */, + /*excludeGlobals*/ + false + ); + definition = definition && checker.getMergedSymbol(definition); + if (((_b = definition == null ? void 0 : definition.declarations) == null ? void 0 : _b.length) !== 1) { + return { error: getLocaleSpecificMessage(Diagnostics.Variables_with_multiple_declarations_cannot_be_inlined) }; + } + const declaration = definition.declarations[0]; + if (!isInitializedVariable(declaration) || !isVariableDeclarationInVariableStatement(declaration) || !isIdentifier(declaration.name)) { + return void 0; + } + if (isDeclarationExported(declaration)) { + return void 0; + } + const references = getReferenceNodes(declaration, checker, file); + return references && { references, declaration, replacement: declaration.initializer }; + } + return { error: getLocaleSpecificMessage(Diagnostics.Could_not_find_variable_to_inline) }; + } + function isDeclarationExported(declaration) { + const variableStatement = cast(declaration.parent.parent, isVariableStatement); + return some(variableStatement.modifiers, isExportModifier); + } + function getReferenceNodes(declaration, checker, file) { + const references = []; + const cannotInline = ts_FindAllReferences_exports.Core.eachSymbolReferenceInFile(declaration.name, checker, file, (ref) => { + if (ts_FindAllReferences_exports.isWriteAccessForReference(ref)) { + return true; + } + if (isExportSpecifier(ref.parent) || isExportAssignment(ref.parent)) { + return true; + } + if (isTypeQueryNode(ref.parent)) { + return true; + } + if (textRangeContainsPositionInclusive(declaration, ref.pos)) { + return true; + } + references.push(ref); + }); + return references.length === 0 || cannotInline ? void 0 : references; + } + function getReplacementExpression(reference, replacement) { + replacement = getSynthesizedDeepClone(replacement); + const { parent: parent2 } = reference; + if (isExpression(parent2) && (getExpressionPrecedence(replacement) < getExpressionPrecedence(parent2) || needsParentheses(parent2))) { + return factory.createParenthesizedExpression(replacement); + } + if (isFunctionLike(replacement) && (isCallLikeExpression(parent2) || isPropertyAccessExpression(parent2))) { + return factory.createParenthesizedExpression(replacement); + } + if (isPropertyAccessExpression(parent2) && (isNumericLiteral(replacement) || isObjectLiteralExpression(replacement))) { + return factory.createParenthesizedExpression(replacement); + } + return replacement; + } + var refactorName4, refactorDescription, inlineVariableAction; + var init_inlineVariable = __esm({ + "src/services/refactors/inlineVariable.ts"() { + "use strict"; + init_ts4(); + init_ts_refactor(); + refactorName4 = "Inline variable"; + refactorDescription = getLocaleSpecificMessage(Diagnostics.Inline_variable); + inlineVariableAction = { + name: refactorName4, + description: refactorDescription, + kind: "refactor.inline.variable" + }; + registerRefactor(refactorName4, { + kinds: [inlineVariableAction.kind], + getAvailableActions(context) { + const { + file, + program, + preferences, + startPosition, + triggerReason + } = context; + const info = getInliningInfo(file, startPosition, triggerReason === "invoked", program); + if (!info) { + return emptyArray; + } + if (!ts_refactor_exports.isRefactorErrorInfo(info)) { + return [{ + name: refactorName4, + description: refactorDescription, + actions: [inlineVariableAction] + }]; + } + if (preferences.provideRefactorNotApplicableReason) { + return [{ + name: refactorName4, + description: refactorDescription, + actions: [{ + ...inlineVariableAction, + notApplicableReason: info.error + }] + }]; + } + return emptyArray; + }, + getEditsForAction(context, actionName2) { + Debug.assert(actionName2 === refactorName4, "Unexpected refactor invoked"); + const { file, program, startPosition } = context; + const info = getInliningInfo( + file, + startPosition, + /*tryWithReferenceToken*/ + true, + program + ); + if (!info || ts_refactor_exports.isRefactorErrorInfo(info)) { + return void 0; + } + const { references, declaration, replacement } = info; + const edits = ts_textChanges_exports.ChangeTracker.with(context, (tracker) => { + for (const node of references) { + tracker.replaceNode(file, node, getReplacementExpression(node, replacement)); + } + tracker.delete(file, declaration); + }); + return { edits }; + } + }); + } + }); + // src/services/refactors/moveToNewFile.ts function doChange3(oldFile, program, toMove, changes, host, preferences, context) { const checker = program.getTypeChecker(); @@ -134814,29 +136765,29 @@ ${lanes.join("\n")} append(copiedOldImports, makeImportOrRequire(oldFile, oldFileDefault, oldFileNamedImports, getBaseFileName(oldFile.fileName), program, host, useEsModuleSyntax, quotePreference)); return copiedOldImports; } - var refactorName4, description, moveToNewFileAction; + var refactorName5, description, moveToNewFileAction; var init_moveToNewFile = __esm({ "src/services/refactors/moveToNewFile.ts"() { "use strict"; init_ts4(); init_ts_refactor(); - refactorName4 = "Move to a new file"; + refactorName5 = "Move to a new file"; description = getLocaleSpecificMessage(Diagnostics.Move_to_a_new_file); moveToNewFileAction = { - name: refactorName4, + name: refactorName5, description, kind: "refactor.move.newFile" }; - registerRefactor(refactorName4, { + registerRefactor(refactorName5, { kinds: [moveToNewFileAction.kind], getAvailableActions: function getRefactorActionsToMoveToNewFile(context) { const statements = getStatementsToMove(context); if (context.preferences.allowTextChangesInNewFiles && statements) { - return [{ name: refactorName4, description, actions: [moveToNewFileAction] }]; + return [{ name: refactorName5, description, actions: [moveToNewFileAction] }]; } if (context.preferences.provideRefactorNotApplicableReason) { return [{ - name: refactorName4, + name: refactorName5, description, actions: [{ ...moveToNewFileAction, notApplicableReason: getLocaleSpecificMessage(Diagnostics.Selection_is_not_a_valid_statement_or_statements) }] }]; @@ -134844,7 +136795,7 @@ ${lanes.join("\n")} return emptyArray; }, getEditsForAction: function getRefactorEditsToMoveToNewFile(context, actionName2) { - Debug.assert(actionName2 === refactorName4, "Wrong refactor invoked"); + Debug.assert(actionName2 === refactorName5, "Wrong refactor invoked"); const statements = Debug.checkDefined(getStatementsToMove(context)); const edits = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange3(context.file, context.program, statements, t, context.host, context.preferences, context)); return { edits, renameFilename: void 0, renameLocation: void 0 }; @@ -134854,6 +136805,9 @@ ${lanes.join("\n")} }); // src/services/refactors/moveToFile.ts + function error(notApplicableReason) { + return { edits: [], renameFilename: void 0, renameLocation: void 0, notApplicableReason }; + } function doChange4(context, oldFile, targetFile, program, toMove, changes, host, preferences) { const checker = program.getTypeChecker(); const usage = getUsageInfo(oldFile, toMove.all, checker); @@ -134894,7 +136848,7 @@ ${lanes.join("\n")} const body = addExports(oldFile, toMove.all, usage.oldFileImportsFromTargetFile, useEsModuleSyntax); if (typeof targetFile !== "string") { if (targetFile.statements.length > 0) { - changes.insertNodesAfter(targetFile, targetFile.statements[targetFile.statements.length - 1], body); + moveStatementsToTargetFile(changes, program, body, targetFile, toMove); } else { changes.insertNodesAtEndOfFile( targetFile, @@ -134915,7 +136869,7 @@ ${lanes.join("\n")} } } if (importAdder) { - importAdder.writeFixes(changes); + importAdder.writeFixes(changes, quotePreference); } if (imports.length && body.length) { return [ @@ -135045,11 +136999,11 @@ ${lanes.join("\n")} } function getNamespaceLikeImport(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: - return node.importClause && node.importClause.namedBindings && node.importClause.namedBindings.kind === 273 /* NamespaceImport */ ? node.importClause.namedBindings.name : void 0; - case 270 /* ImportEqualsDeclaration */: + case 272 /* ImportDeclaration */: + return node.importClause && node.importClause.namedBindings && node.importClause.namedBindings.kind === 274 /* NamespaceImport */ ? node.importClause.namedBindings.name : void 0; + case 271 /* ImportEqualsDeclaration */: return node.name; - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return tryCast(node.name, isIdentifier); default: return Debug.assertNever(node, `Unexpected node kind ${node.kind}`); @@ -135085,7 +137039,7 @@ ${lanes.join("\n")} const newNamespaceId = factory.createIdentifier(newNamespaceName); const newModuleString = makeStringLiteral(newModuleSpecifier, quotePreference); switch (node.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return factory.createImportDeclaration( /*modifiers*/ void 0, @@ -135100,7 +137054,7 @@ ${lanes.join("\n")} /*assertClause*/ void 0 ); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return factory.createImportEqualsDeclaration( /*modifiers*/ void 0, @@ -135109,7 +137063,7 @@ ${lanes.join("\n")} newNamespaceId, factory.createExternalModuleReference(newModuleString) ); - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return factory.createVariableDeclaration( newNamespaceId, /*exclamationToken*/ @@ -135131,7 +137085,7 @@ ${lanes.join("\n")} ); } function moduleSpecifierFromImport(i) { - return i.kind === 271 /* ImportDeclaration */ ? i.moduleSpecifier : i.kind === 270 /* ImportEqualsDeclaration */ ? i.moduleReference.expression : i.initializer.arguments[0]; + return i.kind === 272 /* ImportDeclaration */ ? i.moduleSpecifier : i.kind === 271 /* ImportEqualsDeclaration */ ? i.moduleReference.expression : i.initializer.arguments[0]; } function forEachImportInStatement(statement, cb) { if (isImportDeclaration(statement)) { @@ -135229,15 +137183,15 @@ ${lanes.join("\n")} } function deleteUnusedImports(sourceFile, importDecl, changes, isUnused) { switch (importDecl.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: deleteUnusedImportsInDeclaration(sourceFile, importDecl, changes, isUnused); break; - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: if (isUnused(importDecl.name)) { changes.delete(sourceFile, importDecl); } break; - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: deleteUnusedImportsInVariableDeclaration(sourceFile, importDecl, changes, isUnused); break; default: @@ -135249,7 +137203,7 @@ ${lanes.join("\n")} return; const { name, namedBindings } = importDecl.importClause; const defaultUnused = !name || isUnused(name); - const namedBindingsUnused = !namedBindings || (namedBindings.kind === 273 /* NamespaceImport */ ? isUnused(namedBindings.name) : namedBindings.elements.length !== 0 && namedBindings.elements.every((e) => isUnused(e.name))); + const namedBindingsUnused = !namedBindings || (namedBindings.kind === 274 /* NamespaceImport */ ? isUnused(namedBindings.name) : namedBindings.elements.length !== 0 && namedBindings.elements.every((e) => isUnused(e.name))); if (defaultUnused && namedBindingsUnused) { changes.delete(sourceFile, importDecl); } else { @@ -135269,7 +137223,7 @@ ${lanes.join("\n")} void 0 ) ); - } else if (namedBindings.kind === 274 /* NamedImports */) { + } else if (namedBindings.kind === 275 /* NamedImports */) { for (const element of namedBindings.elements) { if (isUnused(element.name)) changes.delete(sourceFile, element); @@ -135297,9 +137251,9 @@ ${lanes.join("\n")} } } break; - case 206 /* ArrayBindingPattern */: + case 207 /* ArrayBindingPattern */: break; - case 205 /* ObjectBindingPattern */: + case 206 /* ObjectBindingPattern */: if (name.elements.every((e) => isIdentifier(e.name) && isUnused(e.name))) { changes.delete( sourceFile, @@ -135325,24 +137279,24 @@ ${lanes.join("\n")} function addEs6Export(d) { const modifiers = canHaveModifiers(d) ? concatenate([factory.createModifier(95 /* ExportKeyword */)], getModifiers(d)) : void 0; switch (d.kind) { - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return factory.updateFunctionDeclaration(d, modifiers, d.asteriskToken, d.name, d.typeParameters, d.parameters, d.type, d.body); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: const decorators = canHaveDecorators(d) ? getDecorators(d) : void 0; return factory.updateClassDeclaration(d, concatenate(decorators, modifiers), d.name, d.typeParameters, d.heritageClauses, d.members); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return factory.updateVariableStatement(d, modifiers, d.declarationList); - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return factory.updateModuleDeclaration(d, modifiers, d.name, d.body); - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: return factory.updateEnumDeclaration(d, modifiers, d.name, d.members); - case 264 /* TypeAliasDeclaration */: + case 265 /* TypeAliasDeclaration */: return factory.updateTypeAliasDeclaration(d, modifiers, d.name, d.typeParameters, d.type); - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: return factory.updateInterfaceDeclaration(d, modifiers, d.name, d.typeParameters, d.heritageClauses, d.members); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return factory.updateImportEqualsDeclaration(d, modifiers, d.isTypeOnly, d.name, d.moduleReference); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return Debug.fail(); default: return Debug.assertNever(d, `Unexpected declaration kind ${d.kind}`); @@ -135362,18 +137316,18 @@ ${lanes.join("\n")} } function getNamesToExportInCommonJS(decl) { switch (decl.kind) { - case 261 /* FunctionDeclaration */: - case 262 /* ClassDeclaration */: + case 262 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: return [decl.name.text]; - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return mapDefined(decl.declarationList.declarations, (d) => isIdentifier(d.name) ? d.name.text : void 0); - case 266 /* ModuleDeclaration */: - case 265 /* EnumDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 263 /* InterfaceDeclaration */: - case 270 /* ImportEqualsDeclaration */: + case 267 /* ModuleDeclaration */: + case 266 /* EnumDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 264 /* InterfaceDeclaration */: + case 271 /* ImportEqualsDeclaration */: return emptyArray; - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return Debug.fail("Can't export an ExpressionStatement"); default: return Debug.assertNever(decl, `Unexpected decl kind ${decl.kind}`); @@ -135381,7 +137335,7 @@ ${lanes.join("\n")} } function filterImport(i, moduleSpecifier, keep) { switch (i.kind) { - case 271 /* ImportDeclaration */: { + case 272 /* ImportDeclaration */: { const clause = i.importClause; if (!clause) return void 0; @@ -135396,9 +137350,9 @@ ${lanes.join("\n")} void 0 ) : void 0; } - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return keep(i.name) ? i : void 0; - case 259 /* VariableDeclaration */: { + case 260 /* VariableDeclaration */: { const name = filterBindingName(i.name, keep); return name ? makeVariableStatement(name, i.type, createRequireCall(moduleSpecifier), i.parent.flags) : void 0; } @@ -135407,7 +137361,7 @@ ${lanes.join("\n")} } } function filterNamedBindings(namedBindings, keep) { - if (namedBindings.kind === 273 /* NamespaceImport */) { + if (namedBindings.kind === 274 /* NamespaceImport */) { return keep(namedBindings.name) ? namedBindings : void 0; } else { const newElements = namedBindings.elements.filter((e) => keep(e.name)); @@ -135418,9 +137372,9 @@ ${lanes.join("\n")} switch (name.kind) { case 80 /* Identifier */: return keep(name) ? name : void 0; - case 206 /* ArrayBindingPattern */: + case 207 /* ArrayBindingPattern */: return name; - case 205 /* ObjectBindingPattern */: { + case 206 /* ObjectBindingPattern */: { const newElements = name.elements.filter((prop) => prop.propertyName || !isIdentifier(prop.name) || keep(prop.name)); return newElements.length ? factory.createObjectBindingPattern(newElements) : void 0; } @@ -135431,9 +137385,9 @@ ${lanes.join("\n")} } function getTopLevelDeclarationStatement(d) { switch (d.kind) { - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return d.parent.parent; - case 207 /* BindingElement */: + case 208 /* BindingElement */: return getTopLevelDeclarationStatement( cast(d.parent.parent, (p) => isVariableDeclaration(p) || isBindingElement(p)) ); @@ -135481,21 +137435,25 @@ ${lanes.join("\n")} const { file } = context; const range = createTextRangeFromSpan(getRefactorContextSpan(context)); const { statements } = file; - const startNodeIndex = findIndex(statements, (s) => s.end > range.pos); + let startNodeIndex = findIndex(statements, (s) => s.end > range.pos); if (startNodeIndex === -1) return void 0; const startStatement = statements[startNodeIndex]; - if (isNamedDeclaration(startStatement) && startStatement.name && rangeContainsRange(startStatement.name, range)) { - return { toMove: [statements[startNodeIndex]], afterLast: statements[startNodeIndex + 1] }; + const overloadRangeToMove = getOverloadRangeToMove(file, startStatement); + if (overloadRangeToMove) { + startNodeIndex = overloadRangeToMove.start; + } + let endNodeIndex = findIndex(statements, (s) => s.end >= range.end, startNodeIndex); + if (endNodeIndex !== -1 && range.end <= statements[endNodeIndex].getStart()) { + endNodeIndex--; + } + const endingOverloadRangeToMove = getOverloadRangeToMove(file, statements[endNodeIndex]); + if (endingOverloadRangeToMove) { + endNodeIndex = endingOverloadRangeToMove.end; } - if (range.pos > startStatement.getStart(file)) - return void 0; - const afterEndNodeIndex = findIndex(statements, (s) => s.end > range.end, startNodeIndex); - if (afterEndNodeIndex !== -1 && (afterEndNodeIndex === 0 || statements[afterEndNodeIndex].getStart(file) < range.end)) - return void 0; return { - toMove: statements.slice(startNodeIndex, afterEndNodeIndex === -1 ? statements.length : afterEndNodeIndex), - afterLast: afterEndNodeIndex === -1 ? void 0 : statements[afterEndNodeIndex] + toMove: statements.slice(startNodeIndex, endNodeIndex === -1 ? statements.length : endNodeIndex + 1), + afterLast: endNodeIndex === -1 ? void 0 : statements[endNodeIndex + 1] }; } function getStatementsToMove(context) { @@ -135517,11 +137475,11 @@ ${lanes.join("\n")} } function isPureImport(node) { switch (node.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return true; - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return !hasSyntacticModifier(node, 1 /* Export */); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return node.declarationList.declarations.every((d) => !!d.initializer && isRequireCall( d.initializer, /*requireStringLiteralLikeArgument*/ @@ -135614,17 +137572,17 @@ ${lanes.join("\n")} } function forEachTopLevelDeclaration(statement, cb) { switch (statement.kind) { - case 261 /* FunctionDeclaration */: - case 262 /* ClassDeclaration */: - case 266 /* ModuleDeclaration */: - case 265 /* EnumDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 263 /* InterfaceDeclaration */: - case 270 /* ImportEqualsDeclaration */: + case 262 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: + case 267 /* ModuleDeclaration */: + case 266 /* EnumDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 264 /* InterfaceDeclaration */: + case 271 /* ImportEqualsDeclaration */: return cb(statement); - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return firstDefined(statement.declarationList.declarations, (decl) => forEachTopLevelDeclarationInBindingName(decl.name, cb)); - case 243 /* ExpressionStatement */: { + case 244 /* ExpressionStatement */: { const { expression } = statement; return isBinaryExpression(expression) && getAssignmentDeclarationKind(expression) === 1 /* ExportsProperty */ ? cb(statement) : void 0; } @@ -135632,14 +137590,14 @@ ${lanes.join("\n")} } function isInImport(decl) { switch (decl.kind) { - case 270 /* ImportEqualsDeclaration */: - case 275 /* ImportSpecifier */: - case 272 /* ImportClause */: - case 273 /* NamespaceImport */: + case 271 /* ImportEqualsDeclaration */: + case 276 /* ImportSpecifier */: + case 273 /* ImportClause */: + case 274 /* NamespaceImport */: return true; - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return isVariableDeclarationInImport(decl); - case 207 /* BindingElement */: + case 208 /* BindingElement */: return isVariableDeclaration(decl.parent.parent) && isVariableDeclarationInImport(decl.parent.parent); default: return false; @@ -135662,8 +137620,8 @@ ${lanes.join("\n")} switch (name.kind) { case 80 /* Identifier */: return cb(cast(name.parent, (x) => isVariableDeclaration(x) || isBindingElement(x))); - case 206 /* ArrayBindingPattern */: - case 205 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: + case 206 /* ObjectBindingPattern */: return firstDefined(name.elements, (em) => isOmittedExpression(em) ? void 0 : forEachTopLevelDeclarationInBindingName(em.name, cb)); default: return Debug.assertNever(name, `Unexpected name kind ${name.kind}`); @@ -135671,18 +137629,94 @@ ${lanes.join("\n")} } function isNonVariableTopLevelDeclaration(node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 262 /* ClassDeclaration */: - case 266 /* ModuleDeclaration */: - case 265 /* EnumDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 263 /* InterfaceDeclaration */: - case 270 /* ImportEqualsDeclaration */: + case 262 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: + case 267 /* ModuleDeclaration */: + case 266 /* EnumDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 264 /* InterfaceDeclaration */: + case 271 /* ImportEqualsDeclaration */: return true; default: return false; } } + function moveStatementsToTargetFile(changes, program, statements, targetFile, toMove) { + var _a; + const removedExports = /* @__PURE__ */ new Set(); + const targetExports = (_a = targetFile.symbol) == null ? void 0 : _a.exports; + if (targetExports) { + const checker = program.getTypeChecker(); + const targetToSourceExports = /* @__PURE__ */ new Map(); + for (const node of toMove.all) { + if (isTopLevelDeclarationStatement(node) && hasSyntacticModifier(node, 1 /* Export */)) { + forEachTopLevelDeclaration(node, (declaration) => { + var _a2; + const targetDeclarations = canHaveSymbol(declaration) ? (_a2 = targetExports.get(declaration.symbol.escapedName)) == null ? void 0 : _a2.declarations : void 0; + const exportDeclaration = firstDefined(targetDeclarations, (d) => isExportDeclaration(d) ? d : isExportSpecifier(d) ? tryCast(d.parent.parent, isExportDeclaration) : void 0); + if (exportDeclaration && exportDeclaration.moduleSpecifier) { + targetToSourceExports.set( + exportDeclaration, + (targetToSourceExports.get(exportDeclaration) || /* @__PURE__ */ new Set()).add(declaration) + ); + } + }); + } + } + for (const [exportDeclaration, topLevelDeclarations] of arrayFrom(targetToSourceExports)) { + if (exportDeclaration.exportClause && isNamedExports(exportDeclaration.exportClause) && length(exportDeclaration.exportClause.elements)) { + const elements = exportDeclaration.exportClause.elements; + const updatedElements = filter(elements, (elem) => find(skipAlias(elem.symbol, checker).declarations, (d) => isTopLevelDeclaration(d) && topLevelDeclarations.has(d)) === void 0); + if (length(updatedElements) === 0) { + changes.deleteNode(targetFile, exportDeclaration); + removedExports.add(exportDeclaration); + continue; + } + if (length(updatedElements) < length(elements)) { + changes.replaceNode( + targetFile, + exportDeclaration, + factory.updateExportDeclaration( + exportDeclaration, + exportDeclaration.modifiers, + exportDeclaration.isTypeOnly, + factory.updateNamedExports(exportDeclaration.exportClause, factory.createNodeArray(updatedElements, elements.hasTrailingComma)), + exportDeclaration.moduleSpecifier, + exportDeclaration.assertClause + ) + ); + } + } + } + } + const lastReExport = findLast(targetFile.statements, (n) => isExportDeclaration(n) && !!n.moduleSpecifier && !removedExports.has(n)); + if (lastReExport) { + changes.insertNodesBefore( + targetFile, + lastReExport, + statements, + /*blankLineBetween*/ + true + ); + } else { + changes.insertNodesAfter(targetFile, targetFile.statements[targetFile.statements.length - 1], statements); + } + } + function getOverloadRangeToMove(sourceFile, statement) { + if (isFunctionLikeDeclaration(statement)) { + const declarations = statement.symbol.declarations; + if (declarations === void 0 || length(declarations) <= 1 || !contains(declarations, statement)) { + return void 0; + } + const firstDecl = declarations[0]; + const lastDecl = declarations[length(declarations) - 1]; + const statementsToMove = mapDefined(declarations, (d) => getSourceFileOfNode(d) === sourceFile && isStatement(d) ? d : void 0); + const end = findIndex(sourceFile.statements, (s) => s.end >= lastDecl.end); + const start = findIndex(sourceFile.statements, (s) => s.end >= firstDecl.end); + return { toMove: statementsToMove, start, end }; + } + return void 0; + } var refactorNameForMoveToFile, description2, moveToFileAction; var init_moveToFile = __esm({ "src/services/refactors/moveToFile.ts"() { @@ -135719,13 +137753,17 @@ ${lanes.join("\n")} getEditsForAction: function getRefactorEditsToMoveToFile(context, actionName2, interactiveRefactorArguments) { Debug.assert(actionName2 === refactorNameForMoveToFile, "Wrong refactor invoked"); const statements = Debug.checkDefined(getStatementsToMove(context)); + const { host, program } = context; Debug.assert(interactiveRefactorArguments, "No interactive refactor arguments available"); const targetFile = interactiveRefactorArguments.targetFile; if (hasJSFileExtension(targetFile) || hasTSFileExtension(targetFile)) { + if (host.fileExists(targetFile) && program.getSourceFile(targetFile) === void 0) { + return error(getLocaleSpecificMessage(Diagnostics.Cannot_move_statements_to_the_selected_file)); + } const edits = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange4(context, context.file, interactiveRefactorArguments.targetFile, context.program, statements, t, context.host, context.preferences)); return { edits, renameFilename: void 0, renameLocation: void 0 }; } - return { edits: [], renameFilename: void 0, renameLocation: void 0, notApplicableReason: getLocaleSpecificMessage(Diagnostics.Cannot_move_to_file_selected_file_is_invalid) }; + return error(getLocaleSpecificMessage(Diagnostics.Cannot_move_to_file_selected_file_is_invalid)); } }); } @@ -135738,8 +137776,8 @@ ${lanes.join("\n")} if (!info) return emptyArray; return [{ - name: refactorName5, - description: refactorDescription, + name: refactorName6, + description: refactorDescription2, actions: [functionOverloadAction] }]; } @@ -135752,7 +137790,7 @@ ${lanes.join("\n")} const lastDeclaration = signatureDecls[signatureDecls.length - 1]; let updated = lastDeclaration; switch (lastDeclaration.kind) { - case 172 /* MethodSignature */: { + case 173 /* MethodSignature */: { updated = factory.updateMethodSignature( lastDeclaration, lastDeclaration.modifiers, @@ -135764,7 +137802,7 @@ ${lanes.join("\n")} ); break; } - case 173 /* MethodDeclaration */: { + case 174 /* MethodDeclaration */: { updated = factory.updateMethodDeclaration( lastDeclaration, lastDeclaration.modifiers, @@ -135778,7 +137816,7 @@ ${lanes.join("\n")} ); break; } - case 178 /* CallSignature */: { + case 179 /* CallSignature */: { updated = factory.updateCallSignature( lastDeclaration, lastDeclaration.typeParameters, @@ -135787,7 +137825,7 @@ ${lanes.join("\n")} ); break; } - case 175 /* Constructor */: { + case 176 /* Constructor */: { updated = factory.updateConstructorDeclaration( lastDeclaration, lastDeclaration.modifiers, @@ -135796,7 +137834,7 @@ ${lanes.join("\n")} ); break; } - case 179 /* ConstructSignature */: { + case 180 /* ConstructSignature */: { updated = factory.updateConstructSignature( lastDeclaration, lastDeclaration.typeParameters, @@ -135805,7 +137843,7 @@ ${lanes.join("\n")} ); break; } - case 261 /* FunctionDeclaration */: { + case 262 /* FunctionDeclaration */: { updated = factory.updateFunctionDeclaration( lastDeclaration, lastDeclaration.modifiers, @@ -135878,12 +137916,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function isConvertableSignatureDeclaration(d) { switch (d.kind) { - case 172 /* MethodSignature */: - case 173 /* MethodDeclaration */: - case 178 /* CallSignature */: - case 175 /* Constructor */: - case 179 /* ConstructSignature */: - case 261 /* FunctionDeclaration */: + case 173 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 179 /* CallSignature */: + case 176 /* Constructor */: + case 180 /* ConstructSignature */: + case 262 /* FunctionDeclaration */: return true; } return false; @@ -135930,20 +137968,20 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } return signatureDecls; } - var refactorName5, refactorDescription, functionOverloadAction; + var refactorName6, refactorDescription2, functionOverloadAction; var init_convertOverloadListToSingleSignature = __esm({ "src/services/refactors/convertOverloadListToSingleSignature.ts"() { "use strict"; init_ts4(); init_ts_refactor(); - refactorName5 = "Convert overload list to single signature"; - refactorDescription = Diagnostics.Convert_overload_list_to_single_signature.message; + refactorName6 = "Convert overload list to single signature"; + refactorDescription2 = getLocaleSpecificMessage(Diagnostics.Convert_overload_list_to_single_signature); functionOverloadAction = { - name: refactorName5, - description: refactorDescription, + name: refactorName6, + description: refactorDescription2, kind: "refactor.rewrite.function.overloadList" }; - registerRefactor(refactorName5, { + registerRefactor(refactorName6, { kinds: [functionOverloadAction.kind], getEditsForAction: getRefactorEditsToConvertOverloadsToOneSignature, getAvailableActions: getRefactorActionsToConvertOverloadsToOneSignature @@ -135959,8 +137997,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return emptyArray; if (!isRefactorErrorInfo(info)) { return [{ - name: refactorName6, - description: refactorDescription2, + name: refactorName7, + description: refactorDescription3, actions: [ info.addBraces ? addBracesAction : removeBracesAction ] @@ -135968,8 +138006,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } if (context.preferences.provideRefactorNotApplicableReason) { return [{ - name: refactorName6, - description: refactorDescription2, + name: refactorName7, + description: refactorDescription3, actions: [ { ...addBracesAction, notApplicableReason: info.error }, { ...removeBracesAction, notApplicableReason: info.error } @@ -136060,25 +138098,25 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } return void 0; } - var refactorName6, refactorDescription2, addBracesAction, removeBracesAction; + var refactorName7, refactorDescription3, addBracesAction, removeBracesAction; var init_addOrRemoveBracesToArrowFunction = __esm({ "src/services/refactors/addOrRemoveBracesToArrowFunction.ts"() { "use strict"; init_ts4(); init_ts_refactor(); - refactorName6 = "Add or remove braces in an arrow function"; - refactorDescription2 = Diagnostics.Add_or_remove_braces_in_an_arrow_function.message; + refactorName7 = "Add or remove braces in an arrow function"; + refactorDescription3 = getLocaleSpecificMessage(Diagnostics.Add_or_remove_braces_in_an_arrow_function); addBracesAction = { name: "Add braces to arrow function", - description: Diagnostics.Add_braces_to_arrow_function.message, + description: getLocaleSpecificMessage(Diagnostics.Add_braces_to_arrow_function), kind: "refactor.rewrite.arrow.braces.add" }; removeBracesAction = { name: "Remove braces from arrow function", - description: Diagnostics.Remove_braces_from_arrow_function.message, + description: getLocaleSpecificMessage(Diagnostics.Remove_braces_from_arrow_function), kind: "refactor.rewrite.arrow.braces.remove" }; - registerRefactor(refactorName6, { + registerRefactor(refactorName7, { kinds: [removeBracesAction.kind], getEditsForAction: getRefactorEditsToRemoveFunctionBraces, getAvailableActions: getRefactorActionsToRemoveFunctionBraces @@ -136106,32 +138144,32 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const possibleActions = []; const errors = []; if (refactorKindBeginsWith(toNamedFunctionAction.kind, kind)) { - const error = selectedVariableDeclaration || isArrowFunction(func) && isVariableDeclaration(func.parent) ? void 0 : getLocaleSpecificMessage(Diagnostics.Could_not_convert_to_named_function); - if (error) { - errors.push({ ...toNamedFunctionAction, notApplicableReason: error }); + const error2 = selectedVariableDeclaration || isArrowFunction(func) && isVariableDeclaration(func.parent) ? void 0 : getLocaleSpecificMessage(Diagnostics.Could_not_convert_to_named_function); + if (error2) { + errors.push({ ...toNamedFunctionAction, notApplicableReason: error2 }); } else { possibleActions.push(toNamedFunctionAction); } } if (refactorKindBeginsWith(toAnonymousFunctionAction.kind, kind)) { - const error = !selectedVariableDeclaration && isArrowFunction(func) ? void 0 : getLocaleSpecificMessage(Diagnostics.Could_not_convert_to_anonymous_function); - if (error) { - errors.push({ ...toAnonymousFunctionAction, notApplicableReason: error }); + const error2 = !selectedVariableDeclaration && isArrowFunction(func) ? void 0 : getLocaleSpecificMessage(Diagnostics.Could_not_convert_to_anonymous_function); + if (error2) { + errors.push({ ...toAnonymousFunctionAction, notApplicableReason: error2 }); } else { possibleActions.push(toAnonymousFunctionAction); } } if (refactorKindBeginsWith(toArrowFunctionAction.kind, kind)) { - const error = isFunctionExpression(func) ? void 0 : getLocaleSpecificMessage(Diagnostics.Could_not_convert_to_arrow_function); - if (error) { - errors.push({ ...toArrowFunctionAction, notApplicableReason: error }); + const error2 = isFunctionExpression(func) ? void 0 : getLocaleSpecificMessage(Diagnostics.Could_not_convert_to_arrow_function); + if (error2) { + errors.push({ ...toArrowFunctionAction, notApplicableReason: error2 }); } else { possibleActions.push(toArrowFunctionAction); } } return [{ - name: refactorName7, - description: refactorDescription3, + name: refactorName8, + description: refactorDescription4, actions: possibleActions.length === 0 && context.preferences.provideRefactorNotApplicableReason ? errors : possibleActions }]; } @@ -136291,14 +138329,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function isFunctionReferencedInFile(sourceFile, typeChecker, node) { return !!node.name && ts_FindAllReferences_exports.Core.isSymbolReferencedInFile(node.name, typeChecker, sourceFile); } - var refactorName7, refactorDescription3, toAnonymousFunctionAction, toNamedFunctionAction, toArrowFunctionAction; + var refactorName8, refactorDescription4, toAnonymousFunctionAction, toNamedFunctionAction, toArrowFunctionAction; var init_convertArrowFunctionOrFunctionExpression = __esm({ "src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"() { "use strict"; init_ts4(); init_ts_refactor(); - refactorName7 = "Convert arrow function or function expression"; - refactorDescription3 = getLocaleSpecificMessage(Diagnostics.Convert_arrow_function_or_function_expression); + refactorName8 = "Convert arrow function or function expression"; + refactorDescription4 = getLocaleSpecificMessage(Diagnostics.Convert_arrow_function_or_function_expression); toAnonymousFunctionAction = { name: "Convert to anonymous function", description: getLocaleSpecificMessage(Diagnostics.Convert_to_anonymous_function), @@ -136314,7 +138352,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} description: getLocaleSpecificMessage(Diagnostics.Convert_to_arrow_function), kind: "refactor.rewrite.function.arrow" }; - registerRefactor(refactorName7, { + registerRefactor(refactorName8, { kinds: [ toAnonymousFunctionAction.kind, toNamedFunctionAction.kind, @@ -136345,13 +138383,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (!functionDeclaration) return emptyArray; return [{ - name: refactorName8, - description: refactorDescription4, + name: refactorName9, + description: refactorDescription5, actions: [toDestructuredAction] }]; } function getRefactorEditsToConvertParametersToDestructuredObject(context, actionName2) { - Debug.assert(actionName2 === refactorName8, "Unexpected action name"); + Debug.assert(actionName2 === refactorName9, "Unexpected action name"); const { file, startPosition, program, cancellationToken, host } = context; const functionDeclaration = getFunctionDeclarationAtPosition(file, startPosition, program.getTypeChecker()); if (!functionDeclaration || !cancellationToken) @@ -136537,14 +138575,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const functionReference = entry.node; const parent2 = functionReference.parent; switch (parent2.kind) { - case 212 /* CallExpression */: - case 213 /* NewExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: const callOrNewExpression = tryCast(parent2, isCallOrNewExpression); if (callOrNewExpression && callOrNewExpression.expression === functionReference) { return callOrNewExpression; } break; - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: const propertyAccessExpression = tryCast(parent2, isPropertyAccessExpression); if (propertyAccessExpression && propertyAccessExpression.parent && propertyAccessExpression.name === functionReference) { const callOrNewExpression2 = tryCast(propertyAccessExpression.parent, isCallOrNewExpression); @@ -136553,7 +138591,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } break; - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: const elementAccessExpression = tryCast(parent2, isElementAccessExpression); if (elementAccessExpression && elementAccessExpression.parent && elementAccessExpression.argumentExpression === functionReference) { const callOrNewExpression2 = tryCast(elementAccessExpression.parent, isCallOrNewExpression); @@ -136571,13 +138609,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const reference = entry.node; const parent2 = reference.parent; switch (parent2.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: const propertyAccessExpression = tryCast(parent2, isPropertyAccessExpression); if (propertyAccessExpression && propertyAccessExpression.expression === reference) { return propertyAccessExpression; } break; - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: const elementAccessExpression = tryCast(parent2, isElementAccessExpression); if (elementAccessExpression && elementAccessExpression.expression === reference) { return elementAccessExpression; @@ -136619,22 +138657,22 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (!isValidParameterNodeArray(functionDeclaration.parameters, checker)) return false; switch (functionDeclaration.kind) { - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return hasNameOrDefault(functionDeclaration) && isSingleImplementation(functionDeclaration, checker); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: if (isObjectLiteralExpression(functionDeclaration.parent)) { const contextualSymbol = getSymbolForContextualType(functionDeclaration.name, checker); return ((_a = contextualSymbol == null ? void 0 : contextualSymbol.declarations) == null ? void 0 : _a.length) === 1 && isSingleImplementation(functionDeclaration, checker); } return isSingleImplementation(functionDeclaration, checker); - case 175 /* Constructor */: + case 176 /* Constructor */: if (isClassDeclaration(functionDeclaration.parent)) { return hasNameOrDefault(functionDeclaration.parent) && isSingleImplementation(functionDeclaration, checker); } else { return isValidVariableDeclaration(functionDeclaration.parent.parent) && isSingleImplementation(functionDeclaration, checker); } - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return isValidVariableDeclaration(functionDeclaration.parent); } return false; @@ -136811,7 +138849,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function getClassNames(constructorDeclaration) { switch (constructorDeclaration.parent.kind) { - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: const classDeclaration = constructorDeclaration.parent; if (classDeclaration.name) return [classDeclaration.name]; @@ -136820,7 +138858,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} "Nameless class declaration should be a default export" ); return [defaultModifier]; - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: const classExpression = constructorDeclaration.parent; const variableDeclaration = constructorDeclaration.parent.parent; const className = classExpression.name; @@ -136831,7 +138869,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function getFunctionNames(functionDeclaration) { switch (functionDeclaration.kind) { - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: if (functionDeclaration.name) return [functionDeclaration.name]; const defaultModifier = Debug.checkDefined( @@ -136839,21 +138877,21 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} "Nameless function declaration should be a default export" ); return [defaultModifier]; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return [functionDeclaration.name]; - case 175 /* Constructor */: + case 176 /* Constructor */: const ctrKeyword = Debug.checkDefined( findChildOfKind(functionDeclaration, 137 /* ConstructorKeyword */, functionDeclaration.getSourceFile()), "Constructor declaration should have constructor keyword" ); - if (functionDeclaration.parent.kind === 230 /* ClassExpression */) { + if (functionDeclaration.parent.kind === 231 /* ClassExpression */) { const variableDeclaration = functionDeclaration.parent.parent; return [variableDeclaration.name, ctrKeyword]; } return [ctrKeyword]; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return [functionDeclaration.parent.name]; - case 217 /* FunctionExpression */: + case 218 /* FunctionExpression */: if (functionDeclaration.name) return [functionDeclaration.name, functionDeclaration.parent.name]; return [functionDeclaration.parent.name]; @@ -136861,21 +138899,21 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return Debug.assertNever(functionDeclaration, `Unexpected function declaration kind ${functionDeclaration.kind}`); } } - var refactorName8, minimumParameterLength, refactorDescription4, toDestructuredAction; + var refactorName9, minimumParameterLength, refactorDescription5, toDestructuredAction; var init_convertParamsToDestructuredObject = __esm({ "src/services/refactors/convertParamsToDestructuredObject.ts"() { "use strict"; init_ts4(); init_ts_refactor(); - refactorName8 = "Convert parameters to destructured object"; + refactorName9 = "Convert parameters to destructured object"; minimumParameterLength = 1; - refactorDescription4 = getLocaleSpecificMessage(Diagnostics.Convert_parameters_to_destructured_object); + refactorDescription5 = getLocaleSpecificMessage(Diagnostics.Convert_parameters_to_destructured_object); toDestructuredAction = { - name: refactorName8, - description: refactorDescription4, + name: refactorName9, + description: refactorDescription5, kind: "refactor.rewrite.parameters.toDestructured" }; - registerRefactor(refactorName8, { + registerRefactor(refactorName9, { kinds: [toDestructuredAction.kind], getEditsForAction: getRefactorEditsToConvertParametersToDestructuredObject, getAvailableActions: getRefactorActionsToConvertParametersToDestructuredObject @@ -136897,7 +138935,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const { file, startPosition } = context; const node = getNodeOrParentOfParentheses(file, startPosition); const maybeBinary = getParentBinaryExpression(node); - const refactorInfo = { name: refactorName9, description: refactorDescription5, actions: [] }; + const refactorInfo = { name: refactorName10, description: refactorDescription6, actions: [] }; if (isBinaryExpression(maybeBinary) && treeToArray(maybeBinary).isValidConcatenation) { refactorInfo.actions.push(convertStringAction); return [refactorInfo]; @@ -136923,7 +138961,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const { file, startPosition } = context; const node = getNodeOrParentOfParentheses(file, startPosition); switch (actionName2) { - case refactorDescription5: + case refactorDescription6: return { edits: getEditsForToTemplateLiteral(context, node) }; default: return Debug.fail("invalid action"); @@ -136946,16 +138984,16 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } function isNotEqualsOperator(node) { - return node.operatorToken.kind !== 64 /* EqualsToken */; + return !(node.operatorToken.kind === 64 /* EqualsToken */ || node.operatorToken.kind === 65 /* PlusEqualsToken */); } function getParentBinaryExpression(expr) { const container = findAncestor(expr.parent, (n) => { switch (n.kind) { - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return false; - case 227 /* TemplateExpression */: - case 225 /* BinaryExpression */: + case 228 /* TemplateExpression */: + case 226 /* BinaryExpression */: return !(isBinaryExpression(n.parent) && isNotEqualsOperator(n.parent)); default: return "quit"; @@ -137074,20 +139112,20 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } return node; } - var refactorName9, refactorDescription5, convertStringAction, copyTrailingOperatorComments, copyCommentFromMultiNode; + var refactorName10, refactorDescription6, convertStringAction, copyTrailingOperatorComments, copyCommentFromMultiNode; var init_convertStringOrTemplateLiteral = __esm({ "src/services/refactors/convertStringOrTemplateLiteral.ts"() { "use strict"; init_ts4(); init_ts_refactor(); - refactorName9 = "Convert to template string"; - refactorDescription5 = getLocaleSpecificMessage(Diagnostics.Convert_to_template_string); + refactorName10 = "Convert to template string"; + refactorDescription6 = getLocaleSpecificMessage(Diagnostics.Convert_to_template_string); convertStringAction = { - name: refactorName9, - description: refactorDescription5, + name: refactorName10, + description: refactorDescription6, kind: "refactor.rewrite.string" }; - registerRefactor(refactorName9, { + registerRefactor(refactorName10, { kinds: [convertStringAction.kind], getEditsForAction: getRefactorEditsToConvertToTemplateString, getAvailableActions: getRefactorActionsToConvertToTemplateString @@ -137137,14 +139175,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return emptyArray; if (!isRefactorErrorInfo(info)) { return [{ - name: refactorName10, + name: refactorName11, description: convertToOptionalChainExpressionMessage, actions: [toOptionalChainAction] }]; } if (context.preferences.provideRefactorNotApplicableReason) { return [{ - name: refactorName10, + name: refactorName11, description: convertToOptionalChainExpressionMessage, actions: [{ ...toOptionalChainAction, notApplicableReason: info.error }] }]; @@ -137328,20 +139366,20 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } } - var refactorName10, convertToOptionalChainExpressionMessage, toOptionalChainAction; + var refactorName11, convertToOptionalChainExpressionMessage, toOptionalChainAction; var init_convertToOptionalChainExpression = __esm({ "src/services/refactors/convertToOptionalChainExpression.ts"() { "use strict"; init_ts4(); init_ts_refactor(); - refactorName10 = "Convert to optional chain expression"; + refactorName11 = "Convert to optional chain expression"; convertToOptionalChainExpressionMessage = getLocaleSpecificMessage(Diagnostics.Convert_to_optional_chain_expression); toOptionalChainAction = { - name: refactorName10, + name: refactorName11, description: convertToOptionalChainExpressionMessage, kind: "refactor.rewrite.expression.optionalChain" }; - registerRefactor(refactorName10, { + registerRefactor(refactorName11, { kinds: [toOptionalChainAction.kind], getEditsForAction: getRefactorEditsToConvertToOptionalChain, getAvailableActions: getRefactorActionsToConvertToOptionalChain @@ -137370,14 +139408,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const errors = []; if (refactorKindBeginsWith(extractFunctionAction.kind, requestedRefactor)) { errors.push({ - name: refactorName11, + name: refactorName12, description: extractFunctionAction.description, actions: [{ ...extractFunctionAction, notApplicableReason: getStringError(rangeToExtract.errors) }] }); } if (refactorKindBeginsWith(extractConstantAction.kind, requestedRefactor)) { errors.push({ - name: refactorName11, + name: refactorName12, description: extractConstantAction.description, actions: [{ ...extractConstantAction, notApplicableReason: getStringError(rangeToExtract.errors) }] }); @@ -137441,37 +139479,37 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const infos = []; if (functionActions.length) { infos.push({ - name: refactorName11, + name: refactorName12, description: getLocaleSpecificMessage(Diagnostics.Extract_function), actions: functionActions }); } else if (context.preferences.provideRefactorNotApplicableReason && innermostErrorFunctionAction) { infos.push({ - name: refactorName11, + name: refactorName12, description: getLocaleSpecificMessage(Diagnostics.Extract_function), actions: [innermostErrorFunctionAction] }); } if (constantActions.length) { infos.push({ - name: refactorName11, + name: refactorName12, description: getLocaleSpecificMessage(Diagnostics.Extract_constant), actions: constantActions }); } else if (context.preferences.provideRefactorNotApplicableReason && innermostErrorConstantAction) { infos.push({ - name: refactorName11, + name: refactorName12, description: getLocaleSpecificMessage(Diagnostics.Extract_constant), actions: [innermostErrorConstantAction] }); } return infos.length ? infos : emptyArray; function getStringError(errors) { - let error = errors[0].messageText; - if (typeof error !== "string") { - error = error.messageText; + let error2 = errors[0].messageText; + if (typeof error2 !== "string") { + error2 = error2.messageText; } - return error; + return error2; } } function getRefactorEditsToExtractSymbol(context, actionName2) { @@ -137507,7 +139545,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (!start || !end) { return { errors: [createFileDiagnostic(sourceFile, span.start, length2, Messages.cannotExtractRange)] }; } - if (start.flags & 8388608 /* JSDoc */) { + if (start.flags & 16777216 /* JSDoc */) { return { errors: [createFileDiagnostic(sourceFile, span.start, length2, Messages.cannotExtractJSDoc)] }; } if (start.parent !== end.parent) { @@ -137578,18 +139616,18 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function checkForStaticContext(nodeToCheck, containingClass) { let current = nodeToCheck; while (current !== containingClass) { - if (current.kind === 171 /* PropertyDeclaration */) { + if (current.kind === 172 /* PropertyDeclaration */) { if (isStatic(current)) { rangeFacts |= 32 /* InStaticRegion */; } break; - } else if (current.kind === 168 /* Parameter */) { + } else if (current.kind === 169 /* Parameter */) { const ctorOrMethod = getContainingFunction(current); - if (ctorOrMethod.kind === 175 /* Constructor */) { + if (ctorOrMethod.kind === 176 /* Constructor */) { rangeFacts |= 32 /* InStaticRegion */; } break; - } else if (current.kind === 173 /* MethodDeclaration */) { + } else if (current.kind === 174 /* MethodDeclaration */) { if (isStatic(current)) { rangeFacts |= 32 /* InStaticRegion */; } @@ -137610,7 +139648,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (!isStatement(nodeToCheck) && !(isExpressionNode(nodeToCheck) && isExtractableExpression(nodeToCheck)) && !isStringLiteralJsxAttribute(nodeToCheck)) { return [createDiagnosticForNode(nodeToCheck, Messages.statementOrExpressionExpected)]; } - if (nodeToCheck.flags & 16777216 /* Ambient */) { + if (nodeToCheck.flags & 33554432 /* Ambient */) { return [createDiagnosticForNode(nodeToCheck, Messages.cannotExtractAmbientBlock)]; } const containingClass = getContainingClass(nodeToCheck); @@ -137629,7 +139667,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} /*includeClassComputedPropertyName*/ false ); - if (container.kind === 261 /* FunctionDeclaration */ || container.kind === 173 /* MethodDeclaration */ && container.parent.kind === 209 /* ObjectLiteralExpression */ || container.kind === 217 /* FunctionExpression */) { + if (container.kind === 262 /* FunctionDeclaration */ || container.kind === 174 /* MethodDeclaration */ && container.parent.kind === 210 /* ObjectLiteralExpression */ || container.kind === 218 /* FunctionExpression */) { rangeFacts |= 16 /* UsesThisInFunction */; } } @@ -137639,21 +139677,21 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return true; } if (isDeclaration(node2)) { - const declaringNode = node2.kind === 259 /* VariableDeclaration */ ? node2.parent.parent : node2; + const declaringNode = node2.kind === 260 /* VariableDeclaration */ ? node2.parent.parent : node2; if (hasSyntacticModifier(declaringNode, 1 /* Export */)) { (errors2 || (errors2 = [])).push(createDiagnosticForNode(node2, Messages.cannotExtractExportedEntity)); return true; } } switch (node2.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: (errors2 || (errors2 = [])).push(createDiagnosticForNode(node2, Messages.cannotExtractImport)); return true; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: (errors2 || (errors2 = [])).push(createDiagnosticForNode(node2, Messages.cannotExtractExportedEntity)); return true; case 108 /* SuperKeyword */: - if (node2.parent.kind === 212 /* CallExpression */) { + if (node2.parent.kind === 213 /* CallExpression */) { const containingClass2 = getContainingClass(node2); if (containingClass2 === void 0 || containingClass2.pos < span.start || containingClass2.end >= span.start + span.length) { (errors2 || (errors2 = [])).push(createDiagnosticForNode(node2, Messages.cannotExtractSuper)); @@ -137664,7 +139702,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} thisNode = node2; } break; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: forEachChild(node2, function check(n) { if (isThis(n)) { rangeFacts |= 8 /* UsesThis */; @@ -137675,34 +139713,34 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} forEachChild(n, check); } }); - case 262 /* ClassDeclaration */: - case 261 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: + case 262 /* FunctionDeclaration */: if (isSourceFile(node2.parent) && node2.parent.externalModuleIndicator === void 0) { (errors2 || (errors2 = [])).push(createDiagnosticForNode(node2, Messages.functionWillNotBeVisibleInTheNewScope)); } - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: - case 173 /* MethodDeclaration */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return false; } const savedPermittedJumps = permittedJumps; switch (node2.kind) { - case 244 /* IfStatement */: + case 245 /* IfStatement */: permittedJumps &= ~4 /* Return */; break; - case 257 /* TryStatement */: + case 258 /* TryStatement */: permittedJumps = 0 /* None */; break; - case 240 /* Block */: - if (node2.parent && node2.parent.kind === 257 /* TryStatement */ && node2.parent.finallyBlock === node2) { + case 241 /* Block */: + if (node2.parent && node2.parent.kind === 258 /* TryStatement */ && node2.parent.finallyBlock === node2) { permittedJumps = 4 /* Return */; } break; - case 296 /* DefaultClause */: - case 295 /* CaseClause */: + case 297 /* DefaultClause */: + case 296 /* CaseClause */: permittedJumps |= 1 /* Break */; break; default: @@ -137716,39 +139754,39 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} break; } switch (node2.kind) { - case 196 /* ThisType */: + case 197 /* ThisType */: case 110 /* ThisKeyword */: rangeFacts |= 8 /* UsesThis */; thisNode = node2; break; - case 255 /* LabeledStatement */: { + case 256 /* LabeledStatement */: { const label = node2.label; (seenLabels || (seenLabels = [])).push(label.escapedText); forEachChild(node2, visit); seenLabels.pop(); break; } - case 251 /* BreakStatement */: - case 250 /* ContinueStatement */: { + case 252 /* BreakStatement */: + case 251 /* ContinueStatement */: { const label = node2.label; if (label) { if (!contains(seenLabels, label.escapedText)) { (errors2 || (errors2 = [])).push(createDiagnosticForNode(node2, Messages.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)); } } else { - if (!(permittedJumps & (node2.kind === 251 /* BreakStatement */ ? 1 /* Break */ : 2 /* Continue */))) { + if (!(permittedJumps & (node2.kind === 252 /* BreakStatement */ ? 1 /* Break */ : 2 /* Continue */))) { (errors2 || (errors2 = [])).push(createDiagnosticForNode(node2, Messages.cannotExtractRangeContainingConditionalBreakOrContinueStatements)); } } break; } - case 222 /* AwaitExpression */: + case 223 /* AwaitExpression */: rangeFacts |= 4 /* IsAsyncFunction */; break; - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: rangeFacts |= 2 /* IsGenerator */; break; - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: if (permittedJumps & 4 /* Return */) { rangeFacts |= 1 /* HasReturn */; } else { @@ -137798,12 +139836,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const scopes = []; while (true) { current = current.parent; - if (current.kind === 168 /* Parameter */) { + if (current.kind === 169 /* Parameter */) { current = findAncestor(current, (parent2) => isFunctionLikeDeclaration(parent2)).parent; } if (isScope(current)) { scopes.push(current); - if (current.kind === 311 /* SourceFile */) { + if (current.kind === 312 /* SourceFile */) { return scopes; } } @@ -137879,28 +139917,28 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function getDescriptionForFunctionLikeDeclaration(scope) { switch (scope.kind) { - case 175 /* Constructor */: + case 176 /* Constructor */: return "constructor"; - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: return scope.name ? `function '${scope.name.text}'` : ANONYMOUS; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return "arrow function"; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return `method '${scope.name.getText()}'`; - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return `'get ${scope.name.getText()}'`; - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return `'set ${scope.name.getText()}'`; default: Debug.assertNever(scope, `Unexpected scope kind ${scope.kind}`); } } function getDescriptionForClassLikeDeclaration(scope) { - return scope.kind === 262 /* ClassDeclaration */ ? scope.name ? `class '${scope.name.text}'` : "anonymous class declaration" : scope.name ? `class expression '${scope.name.text}'` : "anonymous class expression"; + return scope.kind === 263 /* ClassDeclaration */ ? scope.name ? `class '${scope.name.text}'` : "anonymous class declaration" : scope.name ? `class expression '${scope.name.text}'` : "anonymous class expression"; } function getDescriptionForModuleLikeDeclaration(scope) { - return scope.kind === 267 /* ModuleBlock */ ? `namespace '${scope.parent.name.getText()}'` : scope.externalModuleIndicator ? 0 /* Module */ : 1 /* Global */; + return scope.kind === 268 /* ModuleBlock */ ? `namespace '${scope.parent.name.getText()}'` : scope.externalModuleIndicator ? 0 /* Module */ : 1 /* Global */; } function extractFunctionInScope(node, scope, { usages: usagesInScope, typeParameterUsages, substitutions }, exposedVariableDeclarations, range, context) { const checker = context.program.getTypeChecker(); @@ -138277,7 +140315,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} changeTracker.insertNodeBefore(context.file, oldVariableDeclaration, newVariableDeclaration); const localReference = factory.createIdentifier(localNameText); changeTracker.replaceNode(context.file, node, localReference); - } else if (node.parent.kind === 243 /* ExpressionStatement */ && scope === findAncestor(node, isScope)) { + } else if (node.parent.kind === 244 /* ExpressionStatement */ && scope === findAncestor(node, isScope)) { const newVariableStatement = factory.createVariableStatement( /*modifiers*/ void 0, @@ -138307,7 +140345,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} false ); } - if (node.parent.kind === 243 /* ExpressionStatement */) { + if (node.parent.kind === 244 /* ExpressionStatement */) { changeTracker.delete(context.file, node.parent); } else { let localReference = factory.createIdentifier(localNameText); @@ -138859,27 +140897,27 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function isExtractableExpression(node) { const { parent: parent2 } = node; switch (parent2.kind) { - case 305 /* EnumMember */: + case 306 /* EnumMember */: return false; } switch (node.kind) { case 11 /* StringLiteral */: - return parent2.kind !== 271 /* ImportDeclaration */ && parent2.kind !== 275 /* ImportSpecifier */; - case 229 /* SpreadElement */: - case 205 /* ObjectBindingPattern */: - case 207 /* BindingElement */: + return parent2.kind !== 272 /* ImportDeclaration */ && parent2.kind !== 276 /* ImportSpecifier */; + case 230 /* SpreadElement */: + case 206 /* ObjectBindingPattern */: + case 208 /* BindingElement */: return false; case 80 /* Identifier */: - return parent2.kind !== 207 /* BindingElement */ && parent2.kind !== 275 /* ImportSpecifier */ && parent2.kind !== 280 /* ExportSpecifier */; + return parent2.kind !== 208 /* BindingElement */ && parent2.kind !== 276 /* ImportSpecifier */ && parent2.kind !== 281 /* ExportSpecifier */; } return true; } function isBlockLike(node) { switch (node.kind) { - case 240 /* Block */: - case 311 /* SourceFile */: - case 267 /* ModuleBlock */: - case 295 /* CaseClause */: + case 241 /* Block */: + case 312 /* SourceFile */: + case 268 /* ModuleBlock */: + case 296 /* CaseClause */: return true; default: return false; @@ -138891,13 +140929,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function isStringLiteralJsxAttribute(node) { return isStringLiteral(node) && node.parent && isJsxAttribute(node.parent); } - var refactorName11, extractConstantAction, extractFunctionAction, Messages, RangeFacts; + var refactorName12, extractConstantAction, extractFunctionAction, Messages, RangeFacts; var init_extractSymbol = __esm({ "src/services/refactors/extractSymbol.ts"() { "use strict"; init_ts4(); init_ts_refactor(); - refactorName11 = "Extract Symbol"; + refactorName12 = "Extract Symbol"; extractConstantAction = { name: "Extract Constant", description: getLocaleSpecificMessage(Diagnostics.Extract_constant), @@ -138908,7 +140946,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} description: getLocaleSpecificMessage(Diagnostics.Extract_function), kind: "refactor.extract.function" }; - registerRefactor(refactorName11, { + registerRefactor(refactorName12, { kinds: [ extractConstantAction.kind, extractFunctionAction.kind @@ -138981,7 +141019,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} init_ts4(); init_ts_refactor(); actionName = "Generate 'get' and 'set' accessors"; - actionDescription = Diagnostics.Generate_get_and_set_accessors.message; + actionDescription = getLocaleSpecificMessage(Diagnostics.Generate_get_and_set_accessors); generateGetSetAction = { name: actionName, description: actionDescription, @@ -139059,15 +141097,15 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return emptyArray; if (!isRefactorErrorInfo(info)) { return [{ - name: refactorName12, - description: refactorDescription6, + name: refactorName13, + description: refactorDescription7, actions: [inferReturnTypeAction] }]; } if (context.preferences.provideRefactorNotApplicableReason) { return [{ - name: refactorName12, - description: refactorDescription6, + name: refactorName13, + description: refactorDescription7, actions: [{ ...inferReturnTypeAction, notApplicableReason: info.error }] }]; } @@ -139105,10 +141143,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function isConvertibleDeclaration(node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: return true; default: return false; @@ -139126,20 +141164,20 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return typeChecker.getReturnTypeOfSignature(signature); } } - var refactorName12, refactorDescription6, inferReturnTypeAction; + var refactorName13, refactorDescription7, inferReturnTypeAction; var init_inferFunctionReturnType = __esm({ "src/services/refactors/inferFunctionReturnType.ts"() { "use strict"; init_ts4(); init_ts_refactor(); - refactorName12 = "Infer function return type"; - refactorDescription6 = Diagnostics.Infer_function_return_type.message; + refactorName13 = "Infer function return type"; + refactorDescription7 = getLocaleSpecificMessage(Diagnostics.Infer_function_return_type); inferReturnTypeAction = { - name: refactorName12, - description: refactorDescription6, + name: refactorName13, + description: refactorDescription7, kind: "refactor.rewrite.function.returnType" }; - registerRefactor(refactorName12, { + registerRefactor(refactorName13, { kinds: [inferReturnTypeAction.kind], getEditsForAction: getRefactorEditsToInferReturnType, getAvailableActions: getRefactorActionsToInferReturnType @@ -139200,6 +141238,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} init_convertImport(); init_extractType(); init_helpers(); + init_inlineVariable(); init_moveToNewFile(); init_moveToFile(); init_ts_refactor_addOrRemoveBracesToArrowFunction(); @@ -139248,13 +141287,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} let inJSXElement = false; function visit(node) { switch (node.kind) { - case 266 /* ModuleDeclaration */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 261 /* FunctionDeclaration */: - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 267 /* ModuleDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 262 /* FunctionDeclaration */: + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: cancellationToken.throwIfCancellationRequested(); } if (!node || !textSpanIntersectsWith(span, node.pos, node.getFullWidth()) || node.getFullWidth() === 0) { @@ -139425,25 +141464,25 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return TokenModifier2; })(TokenModifier || {}); tokenFromDeclarationMapping = /* @__PURE__ */ new Map([ - [259 /* VariableDeclaration */, 7 /* variable */], - [168 /* Parameter */, 6 /* parameter */], - [171 /* PropertyDeclaration */, 9 /* property */], - [266 /* ModuleDeclaration */, 3 /* namespace */], - [265 /* EnumDeclaration */, 1 /* enum */], - [305 /* EnumMember */, 8 /* enumMember */], - [262 /* ClassDeclaration */, 0 /* class */], - [173 /* MethodDeclaration */, 11 /* member */], - [261 /* FunctionDeclaration */, 10 /* function */], - [217 /* FunctionExpression */, 10 /* function */], - [172 /* MethodSignature */, 11 /* member */], - [176 /* GetAccessor */, 9 /* property */], - [177 /* SetAccessor */, 9 /* property */], - [170 /* PropertySignature */, 9 /* property */], - [263 /* InterfaceDeclaration */, 2 /* interface */], - [264 /* TypeAliasDeclaration */, 5 /* type */], - [167 /* TypeParameter */, 4 /* typeParameter */], - [302 /* PropertyAssignment */, 9 /* property */], - [303 /* ShorthandPropertyAssignment */, 9 /* property */] + [260 /* VariableDeclaration */, 7 /* variable */], + [169 /* Parameter */, 6 /* parameter */], + [172 /* PropertyDeclaration */, 9 /* property */], + [267 /* ModuleDeclaration */, 3 /* namespace */], + [266 /* EnumDeclaration */, 1 /* enum */], + [306 /* EnumMember */, 8 /* enumMember */], + [263 /* ClassDeclaration */, 0 /* class */], + [174 /* MethodDeclaration */, 11 /* member */], + [262 /* FunctionDeclaration */, 10 /* function */], + [218 /* FunctionExpression */, 10 /* function */], + [173 /* MethodSignature */, 11 /* member */], + [177 /* GetAccessor */, 9 /* property */], + [178 /* SetAccessor */, 9 /* property */], + [171 /* PropertySignature */, 9 /* property */], + [264 /* InterfaceDeclaration */, 2 /* interface */], + [265 /* TypeAliasDeclaration */, 5 /* type */], + [168 /* TypeParameter */, 4 /* typeParameter */], + [303 /* PropertyAssignment */, 9 /* property */], + [304 /* ShorthandPropertyAssignment */, 9 /* property */] ]); } }); @@ -139452,7 +141491,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function createNode(kind, pos, end, parent2) { const node = isNodeKind(kind) ? new NodeObject(kind, pos, end) : kind === 80 /* Identifier */ ? new IdentifierObject(80 /* Identifier */, pos, end) : kind === 81 /* PrivateIdentifier */ ? new PrivateIdentifierObject(81 /* PrivateIdentifier */, pos, end) : new TokenObject(kind, pos, end); node.parent = parent2; - node.flags = parent2.flags & 50720768 /* ContextFlags */; + node.flags = parent2.flags & 101441536 /* ContextFlags */; return node; } function createChildren(node, sourceFile) { @@ -139506,7 +141545,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } function createSyntaxList(nodes, parent2) { - const list = createNode(357 /* SyntaxList */, nodes.pos, nodes.end, parent2); + const list = createNode(358 /* SyntaxList */, nodes.pos, nodes.end, parent2); list._children = []; let pos = nodes.pos; for (const node of nodes) { @@ -139531,7 +141570,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} var _a; if (!seenSymbols.has(symbol)) { seenSymbols.add(symbol); - if (declaration.kind === 176 /* GetAccessor */ || declaration.kind === 177 /* SetAccessor */) { + if (declaration.kind === 177 /* GetAccessor */ || declaration.kind === 178 /* SetAccessor */) { return symbol.getContextualJsDocTags(declaration, checker); } return ((_a = symbol.declarations) == null ? void 0 : _a.length) === 1 ? symbol.getJsDocTags() : void 0; @@ -139554,7 +141593,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const inheritedDocs = findBaseOfDeclaration(checker, declaration, (symbol) => { if (!seenSymbols.has(symbol)) { seenSymbols.add(symbol); - if (declaration.kind === 176 /* GetAccessor */ || declaration.kind === 177 /* SetAccessor */) { + if (declaration.kind === 177 /* GetAccessor */ || declaration.kind === 178 /* SetAccessor */) { return symbol.getContextualDocumentationComment(declaration, checker); } return symbol.getDocumentationComment(checker); @@ -139568,7 +141607,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function findBaseOfDeclaration(checker, declaration, cb) { var _a; - const classOrInterfaceDeclaration = ((_a = declaration.parent) == null ? void 0 : _a.kind) === 175 /* Constructor */ ? declaration.parent.parent : declaration.parent; + const classOrInterfaceDeclaration = ((_a = declaration.parent) == null ? void 0 : _a.kind) === 176 /* Constructor */ ? declaration.parent.parent : declaration.parent; if (!classOrInterfaceDeclaration) return; const isStaticMember = hasStaticModifier(declaration); @@ -139700,10 +141739,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} host.log(message); } } - const useCaseSensitiveFileNames = hostUsesCaseSensitiveFileNames(host); - const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames); + const useCaseSensitiveFileNames2 = hostUsesCaseSensitiveFileNames(host); + const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2); const sourceMapper = getSourceMapper({ - useCaseSensitiveFileNames: () => useCaseSensitiveFileNames, + useCaseSensitiveFileNames: () => useCaseSensitiveFileNames2, getCurrentDirectory: () => currentDirectory, getProgram, fileExists: maybeBind(host, host.fileExists), @@ -139715,9 +141754,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function getValidSourceFile(fileName) { const sourceFile = program.getSourceFile(fileName); if (!sourceFile) { - const error = new Error(`Could not find source file: '${fileName}'.`); - error.ProgramFiles = program.getSourceFiles().map((f) => f.fileName); - throw error; + const error2 = new Error(`Could not find source file: '${fileName}'.`); + error2.ProgramFiles = program.getSourceFiles().map((f) => f.fileName); + throw error2; } return sourceFile; } @@ -139751,7 +141790,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} getSourceFileByPath: getOrCreateSourceFileByPath, getCancellationToken: () => cancellationToken, getCanonicalFileName, - useCaseSensitiveFileNames: () => useCaseSensitiveFileNames, + useCaseSensitiveFileNames: () => useCaseSensitiveFileNames2, getNewLine: () => getNewLineCharacter(newSettings), getDefaultLibFileName: (options2) => host.getDefaultLibFileName(options2), writeFile: noop, @@ -139795,9 +141834,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} compilerHost.getSourceFile = getSourceFileWithCache; (_c = host.setCompilerHost) == null ? void 0 : _c.call(host, compilerHost); const parseConfigHost = { - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, fileExists: (fileName) => compilerHost.fileExists(fileName), readFile: (fileName) => compilerHost.readFile(fileName), + directoryExists: (f) => compilerHost.directoryExists(f), + getDirectories: (f) => compilerHost.getDirectories(f), + realpath: compilerHost.realpath, readDirectory: (...args) => compilerHost.readDirectory(...args), trace: compilerHost.trace, getCurrentDirectory: compilerHost.getCurrentDirectory, @@ -139950,14 +141992,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } function cleanupSemanticCache() { - program = void 0; - } - function dispose() { if (program) { const key = documentRegistry.getKeyForCompilationSettings(program.getCompilerOptions()); forEach(program.getSourceFiles(), (f) => documentRegistry.releaseDocumentWithKey(f.resolvedPath, key, f.scriptKind, f.impliedNodeFormat)); program = void 0; } + } + function dispose() { + cleanupSemanticCache(); host = void 0; } function getSyntacticDiagnostics(fileName) { @@ -140076,15 +142118,15 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} switch (node.kind) { case 80 /* Identifier */: return !isLabelName(node) && !isTagName(node) && !isConstTypeReference(node.parent); - case 210 /* PropertyAccessExpression */: - case 165 /* QualifiedName */: + case 211 /* PropertyAccessExpression */: + case 166 /* QualifiedName */: return !isInComment(sourceFile, position); case 110 /* ThisKeyword */: - case 196 /* ThisType */: + case 197 /* ThisType */: case 108 /* SuperKeyword */: - case 201 /* NamedTupleMember */: + case 202 /* NamedTupleMember */: return true; - case 235 /* MetaProperty */: + case 236 /* MetaProperty */: return isImportMeta(node); default: return false; @@ -140184,15 +142226,15 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return void 0; } switch (node.kind) { - case 210 /* PropertyAccessExpression */: - case 165 /* QualifiedName */: + case 211 /* PropertyAccessExpression */: + case 166 /* QualifiedName */: case 11 /* StringLiteral */: case 97 /* FalseKeyword */: case 112 /* TrueKeyword */: case 106 /* NullKeyword */: case 108 /* SuperKeyword */: case 110 /* ThisKeyword */: - case 196 /* ThisType */: + case 197 /* ThisType */: case 80 /* Identifier */: break; default: @@ -140203,7 +142245,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (isRightSideOfPropertyAccess(nodeForStartPos) || isRightSideOfQualifiedName(nodeForStartPos)) { nodeForStartPos = nodeForStartPos.parent; } else if (isNameOfModuleDeclaration(nodeForStartPos)) { - if (nodeForStartPos.parent.parent.kind === 266 /* ModuleDeclaration */ && nodeForStartPos.parent.parent.body === nodeForStartPos.parent) { + if (nodeForStartPos.parent.parent.kind === 267 /* ModuleDeclaration */ && nodeForStartPos.parent.parent.body === nodeForStartPos.parent) { nodeForStartPos = nodeForStartPos.parent.parent.name; } else { break; @@ -140380,7 +142422,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function getLinkedEditingRangeAtPosition(fileName, position) { const sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName); const token = findPrecedingToken(position, sourceFile); - if (!token || token.parent.kind === 311 /* SourceFile */) + if (!token || token.parent.kind === 312 /* SourceFile */) return void 0; const jsxTagWordPattern = "[a-zA-Z0-9:\\-\\._$]*"; if (isJsxFragment(token.parent.parent)) { @@ -140628,7 +142670,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return !tagNamesAreEquivalent(openingElement.tagName, closingElement.tagName) || isJsxElement(parent2) && tagNamesAreEquivalent(openingElement.tagName, parent2.openingElement.tagName) && isUnclosedTag(parent2); } function isUnclosedFragment({ closingFragment, parent: parent2 }) { - return !!(closingFragment.flags & 131072 /* ThisNodeHasError */) || isJsxFragment(parent2) && isUnclosedFragment(parent2); + return !!(closingFragment.flags & 262144 /* ThisNodeHasError */) || isJsxFragment(parent2) && isUnclosedFragment(parent2); } function getSpanOfEnclosingComment(fileName, position, onlyMultiLine) { const sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName); @@ -140670,7 +142712,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } return result; function escapeRegExp(str) { - return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"); + return str.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&"); } function getTodoCommentsRegExp() { const singleLineCommentStart = /(?:\/\/+\s*)/.source; @@ -140738,10 +142780,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const newFileName = createNewFileName(sourceFile, program, getRefactorContext(sourceFile, positionOrRange, preferences, emptyOptions), host); return { newFileName, files }; } - function getEditsForRefactor2(fileName, formatOptions, positionOrRange, refactorName13, actionName2, preferences = emptyOptions, interactiveRefactorArguments) { + function getEditsForRefactor2(fileName, formatOptions, positionOrRange, refactorName14, actionName2, preferences = emptyOptions, interactiveRefactorArguments) { synchronizeHostData(); const file = getValidSourceFile(fileName); - return ts_refactor_exports.getEditsForRefactor(getRefactorContext(file, positionOrRange, preferences, formatOptions), refactorName13, actionName2, interactiveRefactorArguments); + return ts_refactor_exports.getEditsForRefactor(getRefactorContext(file, positionOrRange, preferences, formatOptions), refactorName14, actionName2, interactiveRefactorArguments); } function toLineColumnOffset(fileName, position) { if (position === 0) { @@ -140889,7 +142931,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} }); } function literalIsName(node) { - return isDeclarationName(node) || node.parent.kind === 282 /* ExternalModuleReference */ || isArgumentOfElementAccessExpression(node) || isLiteralComputedPropertyDeclarationName(node); + return isDeclarationName(node) || node.parent.kind === 283 /* ExternalModuleReference */ || isArgumentOfElementAccessExpression(node) || isLiteralComputedPropertyDeclarationName(node); } function getContainingObjectLiteralElement(node) { const element = getContainingObjectLiteralElementWorker(node); @@ -140900,11 +142942,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} case 11 /* StringLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: case 9 /* NumericLiteral */: - if (node.parent.kind === 166 /* ComputedPropertyName */) { + if (node.parent.kind === 167 /* ComputedPropertyName */) { return isObjectLiteralElement(node.parent.parent) ? node.parent.parent : void 0; } case 80 /* Identifier */: - return isObjectLiteralElement(node.parent) && (node.parent.parent.kind === 209 /* ObjectLiteralExpression */ || node.parent.parent.kind === 291 /* JsxAttributes */) && node.parent.name === node ? node.parent : void 0; + return isObjectLiteralElement(node.parent) && (node.parent.parent.kind === 210 /* ObjectLiteralExpression */ || node.parent.parent.kind === 292 /* JsxAttributes */) && node.parent.name === node ? node.parent : void 0; } return void 0; } @@ -140945,7 +142987,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return discriminatedPropertySymbols; } function isArgumentOfElementAccessExpression(node) { - return node && node.parent && node.parent.kind === 211 /* ElementAccessExpression */ && node.parent.argumentExpression === node; + return node && node.parent && node.parent.kind === 212 /* ElementAccessExpression */ && node.parent.argumentExpression === node; } function getDefaultLibFilePath(options) { if (sys) { @@ -141031,8 +143073,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (!children.length) { return void 0; } - const child = find(children, (kid) => kid.kind < 315 /* FirstJSDocNode */ || kid.kind > 356 /* LastJSDocNode */); - return child.kind < 165 /* FirstNode */ ? child : child.getFirstToken(sourceFile); + const child = find(children, (kid) => kid.kind < 316 /* FirstJSDocNode */ || kid.kind > 357 /* LastJSDocNode */); + return child.kind < 166 /* FirstNode */ ? child : child.getFirstToken(sourceFile); } getLastToken(sourceFile) { this.assertHasRealPosition(); @@ -141041,7 +143083,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (!child) { return void 0; } - return child.kind < 165 /* FirstNode */ ? child : child.getLastToken(sourceFile); + return child.kind < 166 /* FirstNode */ ? child : child.getLastToken(sourceFile); } forEachChild(cbNode, cbNodeArray) { return forEachChild(this, cbNode, cbNodeArray); @@ -141342,7 +143384,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} SourceFileObject = class extends NodeObject { constructor(kind, pos, end) { super(kind, pos, end); - this.kind = 311 /* SourceFile */; + this.kind = 312 /* SourceFile */; } update(newText, textChangeRange) { return updateSourceFile(this, newText, textChangeRange); @@ -141398,10 +143440,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function visit(node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: const functionDeclaration = node; const declarationName = getDeclarationName(functionDeclaration); if (declarationName) { @@ -141417,29 +143459,29 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } forEachChild(node, visit); break; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 265 /* EnumDeclaration */: - case 266 /* ModuleDeclaration */: - case 270 /* ImportEqualsDeclaration */: - case 280 /* ExportSpecifier */: - case 275 /* ImportSpecifier */: - case 272 /* ImportClause */: - case 273 /* NamespaceImport */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 186 /* TypeLiteral */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 266 /* EnumDeclaration */: + case 267 /* ModuleDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 281 /* ExportSpecifier */: + case 276 /* ImportSpecifier */: + case 273 /* ImportClause */: + case 274 /* NamespaceImport */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 187 /* TypeLiteral */: addDeclaration(node); forEachChild(node, visit); break; - case 168 /* Parameter */: + case 169 /* Parameter */: if (!hasSyntacticModifier(node, 16476 /* ParameterPropertyModifier */)) { break; } - case 259 /* VariableDeclaration */: - case 207 /* BindingElement */: { + case 260 /* VariableDeclaration */: + case 208 /* BindingElement */: { const decl = node; if (isBindingPattern(decl.name)) { forEachChild(decl.name, visit); @@ -141449,12 +143491,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} visit(decl.initializer); } } - case 305 /* EnumMember */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: + case 306 /* EnumMember */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: addDeclaration(node); break; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: const exportDeclaration = node; if (exportDeclaration.exportClause) { if (isNamedExports(exportDeclaration.exportClause)) { @@ -141464,14 +143506,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } break; - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: const importClause = node.importClause; if (importClause) { if (importClause.name) { addDeclaration(importClause.name); } if (importClause.namedBindings) { - if (importClause.namedBindings.kind === 273 /* NamespaceImport */) { + if (importClause.namedBindings.kind === 274 /* NamespaceImport */) { addDeclaration(importClause.namedBindings); } else { forEach(importClause.namedBindings.elements, visit); @@ -141479,7 +143521,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } break; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: if (getAssignmentDeclarationKind(node) !== 0 /* None */) { addDeclaration(node); } @@ -142615,7 +144657,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } tokenAtLocation = preceding; } - if (tokenAtLocation.flags & 16777216 /* Ambient */) { + if (tokenAtLocation.flags & 33554432 /* Ambient */) { return void 0; } return spanInNode(tokenAtLocation); @@ -142658,89 +144700,89 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (node) { const { parent: parent2 } = node; switch (node.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return spanInVariableDeclaration(node.declarationList.declarations[0]); - case 259 /* VariableDeclaration */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: + case 260 /* VariableDeclaration */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: return spanInVariableDeclaration(node); - case 168 /* Parameter */: + case 169 /* Parameter */: return spanInParameterDeclaration(node); - case 261 /* FunctionDeclaration */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 175 /* Constructor */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 176 /* Constructor */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return spanInFunctionDeclaration(node); - case 240 /* Block */: + case 241 /* Block */: if (isFunctionBlock(node)) { return spanInFunctionBlock(node); } - case 267 /* ModuleBlock */: + case 268 /* ModuleBlock */: return spanInBlock(node); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return spanInBlock(node.block); - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: return textSpan(node.expression); - case 252 /* ReturnStatement */: + case 253 /* ReturnStatement */: return textSpan(node.getChildAt(0), node.expression); - case 246 /* WhileStatement */: + case 247 /* WhileStatement */: return textSpanEndingAtNextToken(node, node.expression); - case 245 /* DoStatement */: + case 246 /* DoStatement */: return spanInNode(node.statement); - case 258 /* DebuggerStatement */: + case 259 /* DebuggerStatement */: return textSpan(node.getChildAt(0)); - case 244 /* IfStatement */: + case 245 /* IfStatement */: return textSpanEndingAtNextToken(node, node.expression); - case 255 /* LabeledStatement */: + case 256 /* LabeledStatement */: return spanInNode(node.statement); - case 251 /* BreakStatement */: - case 250 /* ContinueStatement */: + case 252 /* BreakStatement */: + case 251 /* ContinueStatement */: return textSpan(node.getChildAt(0), node.label); - case 247 /* ForStatement */: + case 248 /* ForStatement */: return spanInForStatement(node); - case 248 /* ForInStatement */: + case 249 /* ForInStatement */: return textSpanEndingAtNextToken(node, node.expression); - case 249 /* ForOfStatement */: + case 250 /* ForOfStatement */: return spanInInitializerOfForLike(node); - case 254 /* SwitchStatement */: + case 255 /* SwitchStatement */: return textSpanEndingAtNextToken(node, node.expression); - case 295 /* CaseClause */: - case 296 /* DefaultClause */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: return spanInNode(node.statements[0]); - case 257 /* TryStatement */: + case 258 /* TryStatement */: return spanInBlock(node.tryBlock); - case 256 /* ThrowStatement */: + case 257 /* ThrowStatement */: return textSpan(node, node.expression); - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: return textSpan(node, node.expression); - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return textSpan(node, node.moduleReference); - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return textSpan(node, node.moduleSpecifier); - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: return textSpan(node, node.moduleSpecifier); - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: if (getModuleInstanceState(node) !== 1 /* Instantiated */) { return void 0; } - case 262 /* ClassDeclaration */: - case 265 /* EnumDeclaration */: - case 305 /* EnumMember */: - case 207 /* BindingElement */: + case 263 /* ClassDeclaration */: + case 266 /* EnumDeclaration */: + case 306 /* EnumMember */: + case 208 /* BindingElement */: return textSpan(node); - case 253 /* WithStatement */: + case 254 /* WithStatement */: return spanInNode(node.statement); - case 169 /* Decorator */: + case 170 /* Decorator */: return spanInNodeArray(parent2.modifiers, node, isDecorator); - case 205 /* ObjectBindingPattern */: - case 206 /* ArrayBindingPattern */: + case 206 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: return spanInBindingPattern(node); - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: return void 0; case 27 /* SemicolonToken */: case 1 /* EndOfFileToken */: @@ -142768,16 +144810,16 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} case 85 /* CatchKeyword */: case 98 /* FinallyKeyword */: return spanInNextNode(node); - case 164 /* OfKeyword */: + case 165 /* OfKeyword */: return spanInOfKeyword(node); default: if (isArrayLiteralOrObjectLiteralDestructuringPattern(node)) { return spanInArrayLiteralOrObjectLiteralDestructuringPattern(node); } - if ((node.kind === 80 /* Identifier */ || node.kind === 229 /* SpreadElement */ || node.kind === 302 /* PropertyAssignment */ || node.kind === 303 /* ShorthandPropertyAssignment */) && isArrayLiteralOrObjectLiteralDestructuringPattern(parent2)) { + if ((node.kind === 80 /* Identifier */ || node.kind === 230 /* SpreadElement */ || node.kind === 303 /* PropertyAssignment */ || node.kind === 304 /* ShorthandPropertyAssignment */) && isArrayLiteralOrObjectLiteralDestructuringPattern(parent2)) { return textSpan(node); } - if (node.kind === 225 /* BinaryExpression */) { + if (node.kind === 226 /* BinaryExpression */) { const { left, operatorToken } = node; if (isArrayLiteralOrObjectLiteralDestructuringPattern(left)) { return spanInArrayLiteralOrObjectLiteralDestructuringPattern( @@ -142793,19 +144835,19 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } if (isExpressionNode(node)) { switch (parent2.kind) { - case 245 /* DoStatement */: + case 246 /* DoStatement */: return spanInPreviousNode(node); - case 169 /* Decorator */: + case 170 /* Decorator */: return spanInNode(node.parent); - case 247 /* ForStatement */: - case 249 /* ForOfStatement */: + case 248 /* ForStatement */: + case 250 /* ForOfStatement */: return textSpan(node); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: if (node.parent.operatorToken.kind === 28 /* CommaToken */) { return textSpan(node); } break; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: if (node.parent.body === node) { return textSpan(node); } @@ -142813,25 +144855,25 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } switch (node.parent.kind) { - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: if (node.parent.name === node && !isArrayLiteralOrObjectLiteralDestructuringPattern(node.parent.parent)) { return spanInNode(node.parent.initializer); } break; - case 215 /* TypeAssertionExpression */: + case 216 /* TypeAssertionExpression */: if (node.parent.type === node) { return spanInNextNode(node.parent.type); } break; - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: { + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: { const { initializer, type } = node.parent; if (initializer === node || type === node || isAssignmentOperator(node.kind)) { return spanInPreviousNode(node); } break; } - case 225 /* BinaryExpression */: { + case 226 /* BinaryExpression */: { const { left } = node.parent; if (isArrayLiteralOrObjectLiteralDestructuringPattern(left) && node !== left) { return spanInPreviousNode(node); @@ -142854,14 +144896,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } function spanInVariableDeclaration(variableDeclaration) { - if (variableDeclaration.parent.parent.kind === 248 /* ForInStatement */) { + if (variableDeclaration.parent.parent.kind === 249 /* ForInStatement */) { return spanInNode(variableDeclaration.parent.parent); } const parent2 = variableDeclaration.parent; if (isBindingPattern(variableDeclaration.name)) { return spanInBindingPattern(variableDeclaration.name); } - if (hasOnlyExpressionInitializer(variableDeclaration) && variableDeclaration.initializer || hasSyntacticModifier(variableDeclaration, 1 /* Export */) || parent2.parent.kind === 249 /* ForOfStatement */) { + if (hasOnlyExpressionInitializer(variableDeclaration) && variableDeclaration.initializer || hasSyntacticModifier(variableDeclaration, 1 /* Export */) || parent2.parent.kind === 250 /* ForOfStatement */) { return textSpanFromVariableDeclaration(variableDeclaration); } if (isVariableDeclarationList(variableDeclaration.parent) && variableDeclaration.parent.declarations[0] !== variableDeclaration) { @@ -142888,7 +144930,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } function canFunctionHaveSpanInWholeDeclaration(functionDeclaration) { - return hasSyntacticModifier(functionDeclaration, 1 /* Export */) || functionDeclaration.parent.kind === 262 /* ClassDeclaration */ && functionDeclaration.kind !== 175 /* Constructor */; + return hasSyntacticModifier(functionDeclaration, 1 /* Export */) || functionDeclaration.parent.kind === 263 /* ClassDeclaration */ && functionDeclaration.kind !== 176 /* Constructor */; } function spanInFunctionDeclaration(functionDeclaration) { if (!functionDeclaration.body) { @@ -142908,22 +144950,22 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function spanInBlock(block) { switch (block.parent.kind) { - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: if (getModuleInstanceState(block.parent) !== 1 /* Instantiated */) { return void 0; } - case 246 /* WhileStatement */: - case 244 /* IfStatement */: - case 248 /* ForInStatement */: + case 247 /* WhileStatement */: + case 245 /* IfStatement */: + case 249 /* ForInStatement */: return spanInNodeIfStartsOnSameLine(block.parent, block.statements[0]); - case 247 /* ForStatement */: - case 249 /* ForOfStatement */: + case 248 /* ForStatement */: + case 250 /* ForOfStatement */: return spanInNodeIfStartsOnSameLine(findPrecedingToken(block.pos, sourceFile, block.parent), block.statements[0]); } return spanInNode(block.statements[0]); } function spanInInitializerOfForLike(forLikeStatement) { - if (forLikeStatement.initializer.kind === 260 /* VariableDeclarationList */) { + if (forLikeStatement.initializer.kind === 261 /* VariableDeclarationList */) { const variableDeclarationList = forLikeStatement.initializer; if (variableDeclarationList.declarations.length > 0) { return spanInNode(variableDeclarationList.declarations[0]); @@ -142946,64 +144988,64 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function spanInBindingPattern(bindingPattern) { const firstBindingElement = forEach( bindingPattern.elements, - (element) => element.kind !== 231 /* OmittedExpression */ ? element : void 0 + (element) => element.kind !== 232 /* OmittedExpression */ ? element : void 0 ); if (firstBindingElement) { return spanInNode(firstBindingElement); } - if (bindingPattern.parent.kind === 207 /* BindingElement */) { + if (bindingPattern.parent.kind === 208 /* BindingElement */) { return textSpan(bindingPattern.parent); } return textSpanFromVariableDeclaration(bindingPattern.parent); } function spanInArrayLiteralOrObjectLiteralDestructuringPattern(node2) { - Debug.assert(node2.kind !== 206 /* ArrayBindingPattern */ && node2.kind !== 205 /* ObjectBindingPattern */); - const elements = node2.kind === 208 /* ArrayLiteralExpression */ ? node2.elements : node2.properties; + Debug.assert(node2.kind !== 207 /* ArrayBindingPattern */ && node2.kind !== 206 /* ObjectBindingPattern */); + const elements = node2.kind === 209 /* ArrayLiteralExpression */ ? node2.elements : node2.properties; const firstBindingElement = forEach( elements, - (element) => element.kind !== 231 /* OmittedExpression */ ? element : void 0 + (element) => element.kind !== 232 /* OmittedExpression */ ? element : void 0 ); if (firstBindingElement) { return spanInNode(firstBindingElement); } - return textSpan(node2.parent.kind === 225 /* BinaryExpression */ ? node2.parent : node2); + return textSpan(node2.parent.kind === 226 /* BinaryExpression */ ? node2.parent : node2); } function spanInOpenBraceToken(node2) { switch (node2.parent.kind) { - case 265 /* EnumDeclaration */: + case 266 /* EnumDeclaration */: const enumDeclaration = node2.parent; return spanInNodeIfStartsOnSameLine(findPrecedingToken(node2.pos, sourceFile, node2.parent), enumDeclaration.members.length ? enumDeclaration.members[0] : enumDeclaration.getLastToken(sourceFile)); - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: const classDeclaration = node2.parent; return spanInNodeIfStartsOnSameLine(findPrecedingToken(node2.pos, sourceFile, node2.parent), classDeclaration.members.length ? classDeclaration.members[0] : classDeclaration.getLastToken(sourceFile)); - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: return spanInNodeIfStartsOnSameLine(node2.parent.parent, node2.parent.clauses[0]); } return spanInNode(node2.parent); } function spanInCloseBraceToken(node2) { switch (node2.parent.kind) { - case 267 /* ModuleBlock */: + case 268 /* ModuleBlock */: if (getModuleInstanceState(node2.parent.parent) !== 1 /* Instantiated */) { return void 0; } - case 265 /* EnumDeclaration */: - case 262 /* ClassDeclaration */: + case 266 /* EnumDeclaration */: + case 263 /* ClassDeclaration */: return textSpan(node2); - case 240 /* Block */: + case 241 /* Block */: if (isFunctionBlock(node2.parent)) { return textSpan(node2); } - case 298 /* CatchClause */: + case 299 /* CatchClause */: return spanInNode(lastOrUndefined(node2.parent.statements)); - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: const caseBlock = node2.parent; const lastClause = lastOrUndefined(caseBlock.clauses); if (lastClause) { return spanInNode(lastOrUndefined(lastClause.statements)); } return void 0; - case 205 /* ObjectBindingPattern */: + case 206 /* ObjectBindingPattern */: const bindingPattern = node2.parent; return spanInNode(lastOrUndefined(bindingPattern.elements) || bindingPattern); default: @@ -143016,7 +145058,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function spanInCloseBracketToken(node2) { switch (node2.parent.kind) { - case 206 /* ArrayBindingPattern */: + case 207 /* ArrayBindingPattern */: const bindingPattern = node2.parent; return textSpan(lastOrUndefined(bindingPattern.elements) || bindingPattern); default: @@ -143028,57 +145070,57 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } function spanInOpenParenToken(node2) { - if (node2.parent.kind === 245 /* DoStatement */ || // Go to while keyword and do action instead - node2.parent.kind === 212 /* CallExpression */ || node2.parent.kind === 213 /* NewExpression */) { + if (node2.parent.kind === 246 /* DoStatement */ || // Go to while keyword and do action instead + node2.parent.kind === 213 /* CallExpression */ || node2.parent.kind === 214 /* NewExpression */) { return spanInPreviousNode(node2); } - if (node2.parent.kind === 216 /* ParenthesizedExpression */) { + if (node2.parent.kind === 217 /* ParenthesizedExpression */) { return spanInNextNode(node2); } return spanInNode(node2.parent); } function spanInCloseParenToken(node2) { switch (node2.parent.kind) { - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 175 /* Constructor */: - case 246 /* WhileStatement */: - case 245 /* DoStatement */: - case 247 /* ForStatement */: - case 249 /* ForOfStatement */: - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 216 /* ParenthesizedExpression */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 176 /* Constructor */: + case 247 /* WhileStatement */: + case 246 /* DoStatement */: + case 248 /* ForStatement */: + case 250 /* ForOfStatement */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 217 /* ParenthesizedExpression */: return spanInPreviousNode(node2); default: return spanInNode(node2.parent); } } function spanInColonToken(node2) { - if (isFunctionLike(node2.parent) || node2.parent.kind === 302 /* PropertyAssignment */ || node2.parent.kind === 168 /* Parameter */) { + if (isFunctionLike(node2.parent) || node2.parent.kind === 303 /* PropertyAssignment */ || node2.parent.kind === 169 /* Parameter */) { return spanInPreviousNode(node2); } return spanInNode(node2.parent); } function spanInGreaterThanOrLessThanToken(node2) { - if (node2.parent.kind === 215 /* TypeAssertionExpression */) { + if (node2.parent.kind === 216 /* TypeAssertionExpression */) { return spanInNextNode(node2); } return spanInNode(node2.parent); } function spanInWhileKeyword(node2) { - if (node2.parent.kind === 245 /* DoStatement */) { + if (node2.parent.kind === 246 /* DoStatement */) { return textSpanEndingAtNextToken(node2, node2.parent.expression); } return spanInNode(node2.parent); } function spanInOfKeyword(node2) { - if (node2.parent.kind === 249 /* ForOfStatement */) { + if (node2.parent.kind === 250 /* ForOfStatement */) { return spanInNextNode(node2); } return spanInNode(node2.parent); @@ -143176,16 +145218,16 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return; } switch (node.kind) { - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 173 /* MethodDeclaration */: - if (node.parent.kind === 209 /* ObjectLiteralExpression */) { + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: + if (node.parent.kind === 210 /* ObjectLiteralExpression */) { return (_a = getAssignedName(node.parent)) == null ? void 0 : _a.getText(); } return (_b = getNameOfDeclaration(node.parent)) == null ? void 0 : _b.getText(); - case 261 /* FunctionDeclaration */: - case 262 /* ClassDeclaration */: - case 266 /* ModuleDeclaration */: + case 262 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: + case 267 /* ModuleDeclaration */: if (isModuleBlock(node.parent) && isIdentifier(node.parent.parent.name)) { return node.parent.parent.name.getText(); } @@ -143387,7 +145429,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function collect(node) { if (!node) return; - if (node.flags & 16777216 /* Ambient */) { + if (node.flags & 33554432 /* Ambient */) { return; } if (isValidCallHierarchyDeclaration(node)) { @@ -143402,55 +145444,55 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } switch (node.kind) { case 80 /* Identifier */: - case 270 /* ImportEqualsDeclaration */: - case 271 /* ImportDeclaration */: - case 277 /* ExportDeclaration */: - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 272 /* ImportDeclaration */: + case 278 /* ExportDeclaration */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: return; - case 174 /* ClassStaticBlockDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: recordCallSite(node); return; - case 215 /* TypeAssertionExpression */: - case 233 /* AsExpression */: + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: collect(node.expression); return; - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: collect(node.name); collect(node.initializer); return; - case 212 /* CallExpression */: + case 213 /* CallExpression */: recordCallSite(node); collect(node.expression); forEach(node.arguments, collect); return; - case 213 /* NewExpression */: + case 214 /* NewExpression */: recordCallSite(node); collect(node.expression); forEach(node.arguments, collect); return; - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: recordCallSite(node); collect(node.tag); collect(node.template); return; - case 285 /* JsxOpeningElement */: - case 284 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: recordCallSite(node); collect(node.tagName); collect(node.attributes); return; - case 169 /* Decorator */: + case 170 /* Decorator */: recordCallSite(node); collect(node.expression); return; - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: recordCallSite(node); forEachChild(node, collect); break; - case 237 /* SatisfiesExpression */: + case 238 /* SatisfiesExpression */: collect(node.expression); return; } @@ -143503,25 +145545,25 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const callSites = []; const collect = createCallSiteCollector(program, callSites); switch (node.kind) { - case 311 /* SourceFile */: + case 312 /* SourceFile */: collectCallSitesOfSourceFile(node, collect); break; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: collectCallSitesOfModuleDeclaration(node, collect); break; - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: collectCallSitesOfFunctionLikeDeclaration(program.getTypeChecker(), node, collect); break; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: collectCallSitesOfClassLikeDeclaration(node, collect); break; - case 174 /* ClassStaticBlockDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: collectCallSitesOfClassStaticBlockDeclaration(node, collect); break; default: @@ -143536,7 +145578,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return createCallHierarchyOutgoingCall(createCallHierarchyItem(program, entries[0].declaration), map(entries, (entry) => createTextSpanFromRange(entry.range))); } function getOutgoingCalls(program, declaration) { - if (declaration.flags & 16777216 /* Ambient */ || isMethodSignature(declaration)) { + if (declaration.flags & 33554432 /* Ambient */ || isMethodSignature(declaration)) { return []; } return group(collectCallSites(program, declaration), getCallSiteGroupKey, (entries) => convertCallSiteGroupToOutgoingCall(program, entries)); @@ -143613,9 +145655,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return { fixName: fixName8, description: description3, changes, fixId: fixId52, fixAllDescription, commands: command ? [command] : void 0 }; } function registerCodeFix(reg) { - for (const error of reg.errorCodes) { + for (const error2 of reg.errorCodes) { errorCodeToFixesArray = void 0; - errorCodeToFixes.add(String(error), reg); + errorCodeToFixes.add(String(error2), reg); } if (reg.fixIds) { for (const fixId52 of reg.fixIds) { @@ -143731,6 +145773,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} registerCodeFix({ errorCodes: [ Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code, + Diagnostics.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code, Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code ], getCodeActions: function getCodeActionsToAddEmptyExportDeclaration(context) { @@ -143882,7 +145925,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } const declaration = tryCast(symbol.valueDeclaration, isVariableDeclaration); const variableName = declaration && tryCast(declaration.name, isIdentifier); - const variableStatement = getAncestor(declaration, 242 /* VariableStatement */); + const variableStatement = getAncestor(declaration, 243 /* VariableStatement */); if (!declaration || !variableStatement || declaration.type || !declaration.initializer || variableStatement.getSourceFile() !== sourceFile || hasSyntacticModifier(variableStatement, 1 /* Export */) || !variableName || !isInsideAwaitableBody(declaration.initializer)) { isCompleteFix = false; continue; @@ -143941,7 +145984,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} checker.getTypeAtLocation(errorNode).flags & 1 /* Any */; } function isInsideAwaitableBody(node) { - return node.kind & 32768 /* AwaitContext */ || !!findAncestor(node, (ancestor) => ancestor.parent && isArrowFunction(ancestor.parent) && ancestor.parent.body === ancestor || isBlock(ancestor) && (ancestor.parent.kind === 261 /* FunctionDeclaration */ || ancestor.parent.kind === 217 /* FunctionExpression */ || ancestor.parent.kind === 218 /* ArrowFunction */ || ancestor.parent.kind === 173 /* MethodDeclaration */)); + return node.kind & 65536 /* AwaitContext */ || !!findAncestor(node, (ancestor) => ancestor.parent && isArrowFunction(ancestor.parent) && ancestor.parent.body === ancestor || isBlock(ancestor) && (ancestor.parent.kind === 262 /* FunctionDeclaration */ || ancestor.parent.kind === 218 /* FunctionExpression */ || ancestor.parent.kind === 219 /* ArrowFunction */ || ancestor.parent.kind === 174 /* MethodDeclaration */)); } function makeChange3(changeTracker, errorCode, sourceFile, checker, insertionSite, fixedDeclarations) { if (isForOfStatement(insertionSite.parent) && !insertionSite.parent.awaitModifier) { @@ -144107,10 +146150,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function isPossiblyPartOfDestructuring(node) { switch (node.kind) { case 80 /* Identifier */: - case 208 /* ArrayLiteralExpression */: - case 209 /* ObjectLiteralExpression */: - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: + case 209 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return true; default: return false; @@ -144127,7 +146170,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function isPossiblyPartOfCommaSeperatedInitializer(node) { switch (node.kind) { case 80 /* Identifier */: - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: case 28 /* CommaToken */: return true; default: @@ -144178,7 +146221,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return; } const declaration = token.parent; - if (declaration.kind === 171 /* PropertyDeclaration */ && (!fixedNodes || tryAddToSet(fixedNodes, declaration))) { + if (declaration.kind === 172 /* PropertyDeclaration */ && (!fixedNodes || tryAddToSet(fixedNodes, declaration))) { changeTracker.insertModifierBefore(sourceFile, 138 /* DeclareKeyword */, declaration); } } @@ -144345,7 +146388,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const d = add.valueDeclaration; if (d && (isPropertySignature(d) || isPropertyDeclaration(d)) && d.type) { const t = factory.createUnionTypeNode([ - ...d.type.kind === 191 /* UnionType */ ? d.type.types : [d.type], + ...d.type.kind === 192 /* UnionType */ ? d.type.types : [d.type], factory.createTypeReferenceNode("undefined") ]); changes.replaceNode(d.getSourceFile(), d.type, t); @@ -144422,26 +146465,26 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } function isDeclarationWithType(node) { - return isFunctionLikeDeclaration(node) || node.kind === 259 /* VariableDeclaration */ || node.kind === 170 /* PropertySignature */ || node.kind === 171 /* PropertyDeclaration */; + return isFunctionLikeDeclaration(node) || node.kind === 260 /* VariableDeclaration */ || node.kind === 171 /* PropertySignature */ || node.kind === 172 /* PropertyDeclaration */; } function transformJSDocType(node) { switch (node.kind) { - case 318 /* JSDocAllType */: - case 319 /* JSDocUnknownType */: + case 319 /* JSDocAllType */: + case 320 /* JSDocUnknownType */: return factory.createTypeReferenceNode("any", emptyArray); - case 322 /* JSDocOptionalType */: + case 323 /* JSDocOptionalType */: return transformJSDocOptionalType(node); - case 321 /* JSDocNonNullableType */: + case 322 /* JSDocNonNullableType */: return transformJSDocType(node.type); - case 320 /* JSDocNullableType */: + case 321 /* JSDocNullableType */: return transformJSDocNullableType(node); - case 324 /* JSDocVariadicType */: + case 325 /* JSDocVariadicType */: return transformJSDocVariadicType(node); - case 323 /* JSDocFunctionType */: + case 324 /* JSDocFunctionType */: return transformJSDocFunctionType(node); - case 182 /* TypeReference */: + case 183 /* TypeReference */: return transformJSDocTypeReference(node); - case 328 /* JSDocTypeLiteral */: + case 329 /* JSDocTypeLiteral */: return transformJSDocTypeLiteral(node); default: const visited = visitEachChild(node, transformJSDocType, nullTransformationContext); @@ -144474,7 +146517,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function transformJSDocParameter(node) { const index = node.parent.parameters.indexOf(node); - const isRest = node.type.kind === 324 /* JSDocVariadicType */ && index === node.parent.parameters.length - 1; + const isRest = node.type.kind === 325 /* JSDocVariadicType */ && index === node.parent.parameters.length - 1; const name = node.name || (isRest ? "rest" : "arg" + index); const dotdotdot = isRest ? factory.createToken(26 /* DotDotDotToken */) : node.dotDotDotToken; return factory.createParameterDeclaration(node.modifiers, dotdotdot, name, node.questionToken, visitNode(node.type, transformJSDocType, isTypeNode), node.initializer); @@ -144656,7 +146699,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} })) { return; } - const nodeToDelete = assignmentBinaryExpression.parent && assignmentBinaryExpression.parent.kind === 243 /* ExpressionStatement */ ? assignmentBinaryExpression.parent : assignmentBinaryExpression; + const nodeToDelete = assignmentBinaryExpression.parent && assignmentBinaryExpression.parent.kind === 244 /* ExpressionStatement */ ? assignmentBinaryExpression.parent : assignmentBinaryExpression; changes.delete(sourceFile, nodeToDelete); if (!assignmentExpr) { members.push(factory.createPropertyDeclaration( @@ -144741,7 +146784,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function createArrowFunctionExpressionMember(members2, arrowFunction, name) { const arrowFunctionBody = arrowFunction.body; let bodyBlock; - if (arrowFunctionBody.kind === 240 /* Block */) { + if (arrowFunctionBody.kind === 241 /* Block */) { bodyBlock = arrowFunctionBody; } else { bodyBlock = factory.createBlock([factory.createReturnStatement(arrowFunctionBody)]); @@ -145304,7 +147347,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} switch (func.kind) { case 106 /* NullKeyword */: break; - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: case 80 /* Identifier */: if (!inputArgName) { break; @@ -145329,8 +147372,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} continuationArgName.types.push(transformer.checker.getAwaitedType(returnType) || returnType); } return varDeclOrAssignment; - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: { + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: { const funcBody = func.body; const returnType2 = (_a = getLastCallSignature(transformer.checker.getTypeAtLocation(func), transformer.checker)) == null ? void 0 : _a.getReturnType(); if (isBlock(funcBody)) { @@ -145572,7 +147615,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } const importNode = importFromModuleSpecifier(moduleSpecifier); switch (importNode.kind) { - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: changes.replaceNode(importingFile, importNode, makeImport( importNode.name, /*namedImports*/ @@ -145581,7 +147624,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} quotePreference )); break; - case 212 /* CallExpression */: + case 213 /* CallExpression */: if (isRequireCall( importNode, /*requireStringLiteralLikeArgument*/ @@ -145650,13 +147693,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function convertStatement(sourceFile, statement, checker, changes, identifiers, target, exports, useSitesToUnqualify, quotePreference) { switch (statement.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: convertVariableStatement(sourceFile, statement, changes, checker, identifiers, target, quotePreference); return false; - case 243 /* ExpressionStatement */: { + case 244 /* ExpressionStatement */: { const { expression } = statement; switch (expression.kind) { - case 212 /* CallExpression */: { + case 213 /* CallExpression */: { if (isRequireCall( expression, /*requireStringLiteralLikeArgument*/ @@ -145673,7 +147716,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } return false; } - case 225 /* BinaryExpression */: { + case 226 /* BinaryExpression */: { const { operatorToken } = expression; return operatorToken.kind === 64 /* EqualsToken */ && convertAssignment(sourceFile, checker, expression, changes, exports, useSitesToUnqualify); } @@ -145727,8 +147770,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function convertPropertyAccessImport(name, propertyName, moduleSpecifier, identifiers, quotePreference) { switch (name.kind) { - case 205 /* ObjectBindingPattern */: - case 206 /* ArrayBindingPattern */: { + case 206 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: { const tmp = makeUniqueName(propertyName, identifiers); return convertedImports([ makeSingleImport(tmp, propertyName, moduleSpecifier, quotePreference), @@ -145776,14 +147819,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function tryChangeModuleExportsObject(object, useSitesToUnqualify) { const statements = mapAllOrFail(object.properties, (prop) => { switch (prop.kind) { - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 303 /* ShorthandPropertyAssignment */: - case 304 /* SpreadAssignment */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 304 /* ShorthandPropertyAssignment */: + case 305 /* SpreadAssignment */: return void 0; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return !isIdentifier(prop.name) ? void 0 : convertExportsDotXEquals_replaceNode(prop.name.text, prop.initializer, useSitesToUnqualify); - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return !isIdentifier(prop.name) ? void 0 : functionExpressionToDeclaration(prop.name.text, [factory.createToken(95 /* ExportKeyword */)], prop, useSitesToUnqualify); default: Debug.assertNever(prop, `Convert to ES6 got invalid prop kind ${prop.kind}`); @@ -145861,15 +147904,15 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function convertExportsDotXEquals_replaceNode(name, exported, useSitesToUnqualify) { const modifiers = [factory.createToken(95 /* ExportKeyword */)]; switch (exported.kind) { - case 217 /* FunctionExpression */: { + case 218 /* FunctionExpression */: { const { name: expressionName } = exported; if (expressionName && expressionName.text !== name) { return exportConst(); } } - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return functionExpressionToDeclaration(name, modifiers, exported, useSitesToUnqualify); - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return classExpressionToDeclaration(name, modifiers, exported, useSitesToUnqualify); default: return exportConst(); @@ -145894,7 +147937,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} replaceNode ); function replaceNode(original) { - if (original.kind === 210 /* PropertyAccessExpression */) { + if (original.kind === 211 /* PropertyAccessExpression */) { const replacement = useSitesToUnqualify.get(original); useSitesToUnqualify.delete(original); return replacement; @@ -145903,7 +147946,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function convertSingleImport(name, moduleSpecifier, checker, identifiers, target, quotePreference) { switch (name.kind) { - case 205 /* ObjectBindingPattern */: { + case 206 /* ObjectBindingPattern */: { const importSpecifiers = mapAllOrFail(name.elements, (e) => e.dotDotDotToken || e.initializer || e.propertyName && !isIdentifier(e.propertyName) || !isIdentifier(e.name) ? void 0 : makeImportSpecifier2(e.propertyName && e.propertyName.text, e.name.text)); if (importSpecifiers) { return convertedImports([makeImport( @@ -145915,7 +147958,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} )]); } } - case 206 /* ArrayBindingPattern */: { + case 207 /* ArrayBindingPattern */: { const tmp = makeUniqueName(moduleSpecifierToValidIdentifier(moduleSpecifier.text, target), identifiers); return convertedImports([ makeImport( @@ -146002,11 +148045,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function isFreeIdentifier(node) { const { parent: parent2 } = node; switch (parent2.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return parent2.name !== node; - case 207 /* BindingElement */: + case 208 /* BindingElement */: return parent2.propertyName !== node; - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: return parent2.propertyName !== node; default: return true; @@ -146247,7 +148290,27 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const { parent: parent2 } = getTokenAtPosition(sourceFile, pos); return isImportSpecifier(parent2) || isImportDeclaration(parent2) && parent2.importClause ? parent2 : void 0; } + function canConvertImportDeclarationForSpecifier(specifier, sourceFile, program) { + if (specifier.parent.parent.name) { + return false; + } + const nonTypeOnlySpecifiers = specifier.parent.elements.filter((e) => !e.isTypeOnly); + if (nonTypeOnlySpecifiers.length === 1) { + return true; + } + const checker = program.getTypeChecker(); + for (const specifier2 of nonTypeOnlySpecifiers) { + const isUsedAsValue = ts_FindAllReferences_exports.Core.eachSymbolReferenceInFile(specifier2.name, checker, sourceFile, (usage) => { + return !isValidTypeOnlyAliasUseSite(usage); + }); + if (isUsedAsValue) { + return false; + } + } + return true; + } function doChange11(changes, sourceFile, declaration) { + var _a; if (isImportSpecifier(declaration)) { changes.replaceNode(sourceFile, declaration, factory.updateImportSpecifier( declaration, @@ -146318,6 +148381,16 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} ) ]); } else { + const newNamedBindings = ((_a = importClause.namedBindings) == null ? void 0 : _a.kind) === 275 /* NamedImports */ ? factory.updateNamedImports( + importClause.namedBindings, + sameMap(importClause.namedBindings.elements, (e) => factory.updateImportSpecifier( + e, + /*isTypeOnly*/ + false, + e.propertyName, + e.name + )) + ) : importClause.namedBindings; const importDeclaration = factory.updateImportDeclaration( declaration, declaration.modifiers, @@ -146326,7 +148399,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} /*isTypeOnly*/ true, importClause.name, - importClause.namedBindings + newNamedBindings ), declaration.moduleSpecifier, declaration.assertClause @@ -146349,19 +148422,41 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} registerCodeFix({ errorCodes: errorCodes14, getCodeActions: function getCodeActionsToConvertToTypeOnlyImport(context) { + var _a; const declaration = getDeclaration2(context.sourceFile, context.span.start); if (declaration) { const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange11(t, context.sourceFile, declaration)); - return [createCodeFixAction(fixId13, changes, Diagnostics.Convert_to_type_only_import, fixId13, Diagnostics.Convert_all_imports_not_used_as_a_value_to_type_only_imports)]; + const importDeclarationChanges = declaration.kind === 276 /* ImportSpecifier */ && canConvertImportDeclarationForSpecifier(declaration, context.sourceFile, context.program) ? ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange11(t, context.sourceFile, declaration.parent.parent.parent)) : void 0; + const mainAction = createCodeFixAction( + fixId13, + changes, + declaration.kind === 276 /* ImportSpecifier */ ? [Diagnostics.Use_type_0, ((_a = declaration.propertyName) == null ? void 0 : _a.text) ?? declaration.name.text] : Diagnostics.Use_import_type, + fixId13, + Diagnostics.Fix_all_with_type_only_imports + ); + if (some(importDeclarationChanges)) { + return [ + createCodeFixActionWithoutFixAll(fixId13, importDeclarationChanges, Diagnostics.Use_import_type), + mainAction + ]; + } + return [mainAction]; } return void 0; }, fixIds: [fixId13], getAllCodeActions: function getAllCodeActionsToConvertToTypeOnlyImport(context) { + const fixedImportDeclarations = /* @__PURE__ */ new Set(); return codeFixAll(context, errorCodes14, (changes, diag2) => { - const declaration = getDeclaration2(diag2.file, diag2.start); - if (declaration) { - doChange11(changes, diag2.file, declaration); + const errorDeclaration = getDeclaration2(diag2.file, diag2.start); + if ((errorDeclaration == null ? void 0 : errorDeclaration.kind) === 272 /* ImportDeclaration */ && !fixedImportDeclarations.has(errorDeclaration)) { + doChange11(changes, diag2.file, errorDeclaration); + fixedImportDeclarations.add(errorDeclaration); + } else if ((errorDeclaration == null ? void 0 : errorDeclaration.kind) === 276 /* ImportSpecifier */ && !fixedImportDeclarations.has(errorDeclaration.parent.parent.parent) && canConvertImportDeclarationForSpecifier(errorDeclaration, diag2.file, context.program)) { + doChange11(changes, diag2.file, errorDeclaration.parent.parent.parent); + fixedImportDeclarations.add(errorDeclaration.parent.parent.parent); + } else if ((errorDeclaration == null ? void 0 : errorDeclaration.kind) === 276 /* ImportSpecifier */) { + doChange11(changes, diag2.file, errorDeclaration); } }); } @@ -146370,23 +148465,60 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} }); // src/services/codefixes/convertTypedefToType.ts - function doChange12(changes, node, sourceFile) { - if (isJSDocTypedefTag(node)) { - fixSingleTypeDef(changes, node, sourceFile); - } - } - function fixSingleTypeDef(changes, typeDefNode, sourceFile) { - if (!typeDefNode) + function doChange12(changes, node, sourceFile, newLine, fixAll = false) { + if (!isJSDocTypedefTag(node)) return; - const declaration = createDeclaration(typeDefNode); + const declaration = createDeclaration(node); if (!declaration) return; - const comment = typeDefNode.parent; - changes.replaceNode( - sourceFile, - comment, - declaration + const commentNode = node.parent; + const { leftSibling, rightSibling } = getLeftAndRightSiblings(node); + let pos = commentNode.getStart(); + let prefix = ""; + if (!leftSibling && commentNode.comment) { + pos = findEndOfTextBetween(commentNode, commentNode.getStart(), node.getStart()); + prefix = `${newLine} */${newLine}`; + } + if (leftSibling) { + if (fixAll && isJSDocTypedefTag(leftSibling)) { + pos = node.getStart(); + prefix = ""; + } else { + pos = findEndOfTextBetween(commentNode, leftSibling.getStart(), node.getStart()); + prefix = `${newLine} */${newLine}`; + } + } + let end = commentNode.getEnd(); + let suffix = ""; + if (rightSibling) { + if (fixAll && isJSDocTypedefTag(rightSibling)) { + end = rightSibling.getStart(); + suffix = `${newLine}${newLine}`; + } else { + end = rightSibling.getStart(); + suffix = `${newLine}/**${newLine} * `; + } + } + changes.replaceRange(sourceFile, { pos, end }, declaration, { prefix, suffix }); + } + function getLeftAndRightSiblings(typedefNode) { + const commentNode = typedefNode.parent; + const maxChildIndex = commentNode.getChildCount() - 1; + const currentNodeIndex = commentNode.getChildren().findIndex( + (n) => n.getStart() === typedefNode.getStart() && n.getEnd() === typedefNode.getEnd() ); + const leftSibling = currentNodeIndex > 0 ? commentNode.getChildAt(currentNodeIndex - 1) : void 0; + const rightSibling = currentNodeIndex < maxChildIndex ? commentNode.getChildAt(currentNodeIndex + 1) : void 0; + return { leftSibling, rightSibling }; + } + function findEndOfTextBetween(jsDocComment, from, to) { + const comment = jsDocComment.getText().substring(from - jsDocComment.getStart(), to - jsDocComment.getStart()); + for (let i = comment.length; i > 0; i--) { + if (!/[*/\s]/g.test(comment.substring(i - 1, i))) { + return from + i; + } + } + return to; } function createDeclaration(tag) { var _a; @@ -146396,10 +148528,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const typeName = (_a = tag.name) == null ? void 0 : _a.getText(); if (!typeName) return; - if (typeExpression.kind === 328 /* JSDocTypeLiteral */) { + if (typeExpression.kind === 329 /* JSDocTypeLiteral */) { return createInterfaceForTypeLiteral(typeName, typeExpression); } - if (typeExpression.kind === 315 /* JSDocTypeExpression */) { + if (typeExpression.kind === 316 /* JSDocTypeExpression */) { return createTypeAliasForTypeExpression(typeName, typeExpression); } } @@ -146407,7 +148539,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const propertySignatures = createSignatureFromTypeLiteral(typeLiteral); if (!some(propertySignatures)) return; - const interfaceDeclaration = factory.createInterfaceDeclaration( + return factory.createInterfaceDeclaration( /*modifiers*/ void 0, typeName, @@ -146417,13 +148549,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} void 0, propertySignatures ); - return interfaceDeclaration; } function createTypeAliasForTypeExpression(typeName, typeExpression) { const typeReference = getSynthesizedDeepClone(typeExpression.type); if (!typeReference) return; - const declaration = factory.createTypeAliasDeclaration( + return factory.createTypeAliasDeclaration( /*modifiers*/ void 0, factory.createIdentifier(typeName), @@ -146431,7 +148562,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} void 0, typeReference ); - return declaration; } function createSignatureFromTypeLiteral(typeLiteral) { const propertyTags = typeLiteral.jsDocPropertyTags; @@ -146451,30 +148581,28 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } if (typeReference && name) { const questionToken = isOptional ? factory.createToken(58 /* QuestionToken */) : void 0; - const prop = factory.createPropertySignature( + return factory.createPropertySignature( /*modifiers*/ void 0, name, questionToken, typeReference ); - return prop; } }; - const props = mapDefined(propertyTags, getSignature); - return props; + return mapDefined(propertyTags, getSignature); } function getPropertyName(tag) { return tag.name.kind === 80 /* Identifier */ ? tag.name.text : tag.name.right.text; } - function getJSDocTypedefNode(node) { + function getJSDocTypedefNodes(node) { if (hasJSDocNodes(node)) { - return forEach(node.jsDoc, (node2) => { + return flatMap(node.jsDoc, (doc) => { var _a; - return (_a = node2.tags) == null ? void 0 : _a.find(isJSDocTypedefTag); + return (_a = doc.tags) == null ? void 0 : _a.filter((tag) => isJSDocTypedefTag(tag)); }); } - return void 0; + return []; } var fixId14, errorCodes15; var init_convertTypedefToType = __esm({ @@ -146488,13 +148616,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} fixIds: [fixId14], errorCodes: errorCodes15, getCodeActions(context) { + const newLineCharacter = getNewLineOrDefaultFromHost(context.host, context.formatContext.options); const node = getTokenAtPosition( context.sourceFile, context.span.start ); if (!node) return; - const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange12(t, node, context.sourceFile)); + const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange12(t, node, context.sourceFile, newLineCharacter)); if (changes.length > 0) { return [ createCodeFixAction( @@ -146507,11 +148636,17 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} ]; } }, - getAllCodeActions: (context) => codeFixAll(context, errorCodes15, (changes, diag2) => { - const node = getTokenAtPosition(diag2.file, diag2.start); - if (node) - doChange12(changes, node, diag2.file); - }) + getAllCodeActions: (context) => codeFixAll( + context, + errorCodes15, + (changes, diag2) => { + const newLineCharacter = getNewLineOrDefaultFromHost(context.host, context.formatContext.options); + const node = getTokenAtPosition(diag2.file, diag2.start); + const fixAll = true; + if (node) + doChange12(changes, node, diag2.file, newLineCharacter, fixAll); + } + ) }); } }); @@ -146824,8 +148959,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return `${topLevelTypeOnly ? 1 : 0}|${moduleSpecifier}`; } } - function writeFixes(changeTracker) { - const quotePreference = getQuotePreference(sourceFile, preferences); + function writeFixes(changeTracker, oldFileQuotePreference) { + let quotePreference; + if (sourceFile.imports.length === 0 && oldFileQuotePreference !== void 0) { + quotePreference = oldFileQuotePreference; + } else { + quotePreference = getQuotePreference(sourceFile, preferences); + } for (const fix of addToNamespace) { addNamespaceQualifier(changeTracker, sourceFile, fix); } @@ -147013,11 +149153,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function getNamespaceLikeImportText(declaration) { var _a, _b, _c; switch (declaration.kind) { - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return (_a = tryCast(declaration.name, isIdentifier)) == null ? void 0 : _a.text; - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return declaration.name.text; - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return (_c = tryCast((_b = declaration.importClause) == null ? void 0 : _b.namedBindings, isNamespaceImport)) == null ? void 0 : _c.name.text; default: return Debug.assertNever(declaration); @@ -147049,11 +149189,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } return best; function getAddToExistingImportFix({ declaration, importKind, symbol, targetFlags }) { - if (importKind === 3 /* CommonJS */ || importKind === 2 /* Namespace */ || declaration.kind === 270 /* ImportEqualsDeclaration */) { + if (importKind === 3 /* CommonJS */ || importKind === 2 /* Namespace */ || declaration.kind === 271 /* ImportEqualsDeclaration */) { return void 0; } - if (declaration.kind === 259 /* VariableDeclaration */) { - return (importKind === 0 /* Named */ || importKind === 1 /* Default */) && declaration.name.kind === 205 /* ObjectBindingPattern */ ? { kind: 2 /* AddToExisting */, importClauseOrBindingPattern: declaration.name, importKind, moduleSpecifier: declaration.initializer.arguments[0].text, addAsTypeOnly: 4 /* NotAllowed */ } : void 0; + if (declaration.kind === 260 /* VariableDeclaration */) { + return (importKind === 0 /* Named */ || importKind === 1 /* Default */) && declaration.name.kind === 206 /* ObjectBindingPattern */ ? { kind: 2 /* AddToExisting */, importClauseOrBindingPattern: declaration.name, importKind, moduleSpecifier: declaration.initializer.arguments[0].text, addAsTypeOnly: 4 /* NotAllowed */ } : void 0; } const { importClause } = declaration; if (!importClause || !isStringLiteralLike(declaration.moduleSpecifier)) { @@ -147076,7 +149216,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} addAsTypeOnly === 2 /* Required */ && namedBindings)) { return void 0; } - if (importKind === 0 /* Named */ && (namedBindings == null ? void 0 : namedBindings.kind) === 273 /* NamespaceImport */) { + if (importKind === 0 /* Named */ && (namedBindings == null ? void 0 : namedBindings.kind) === 274 /* NamespaceImport */) { return void 0; } return { @@ -147097,7 +149237,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (moduleSymbol) { (importMap || (importMap = createMultiMap())).add(getSymbolId(moduleSymbol), i.parent); } - } else if (i.kind === 271 /* ImportDeclaration */ || i.kind === 270 /* ImportEqualsDeclaration */) { + } else if (i.kind === 272 /* ImportDeclaration */ || i.kind === 271 /* ImportEqualsDeclaration */) { const moduleSymbol = checker.getSymbolAtLocation(moduleSpecifier); if (moduleSymbol) { (importMap || (importMap = createMultiMap())).add(getSymbolId(moduleSymbol), i); @@ -147128,6 +149268,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (compilerOptions.configFile) { return getEmitModuleKind(compilerOptions) < 5 /* ES2015 */; } + if (sourceFile.impliedNodeFormat === 1 /* CommonJS */) + return true; + if (sourceFile.impliedNodeFormat === 99 /* ESNext */) + return false; for (const otherFile of program.getSourceFiles()) { if (otherFile === sourceFile || !isSourceFileJS(otherFile) || program.isSourceFileFromExternalLibrary(otherFile)) continue; @@ -147549,7 +149693,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} case 4 /* PromoteTypeOnly */: { const { typeOnlyAliasDeclaration } = fix; const promotedDeclaration = promoteFromTypeOnly(changes, typeOnlyAliasDeclaration, compilerOptions, sourceFile, preferences); - return promotedDeclaration.kind === 275 /* ImportSpecifier */ ? [Diagnostics.Remove_type_from_import_of_0_from_1, symbolName2, getModuleSpecifierText(promotedDeclaration.parent.parent)] : [Diagnostics.Remove_type_from_import_declaration_from_0, getModuleSpecifierText(promotedDeclaration)]; + return promotedDeclaration.kind === 276 /* ImportSpecifier */ ? [Diagnostics.Remove_type_from_import_of_0_from_1, symbolName2, getModuleSpecifierText(promotedDeclaration.parent.parent)] : [Diagnostics.Remove_type_from_import_declaration_from_0, getModuleSpecifierText(promotedDeclaration)]; } default: return Debug.assertNever(fix, `Unexpected fix kind ${fix.kind}`); @@ -147557,12 +149701,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function getModuleSpecifierText(promotedDeclaration) { var _a, _b; - return promotedDeclaration.kind === 270 /* ImportEqualsDeclaration */ ? ((_b = tryCast((_a = tryCast(promotedDeclaration.moduleReference, isExternalModuleReference)) == null ? void 0 : _a.expression, isStringLiteralLike)) == null ? void 0 : _b.text) || promotedDeclaration.moduleReference.getText() : cast(promotedDeclaration.parent.moduleSpecifier, isStringLiteral).text; + return promotedDeclaration.kind === 271 /* ImportEqualsDeclaration */ ? ((_b = tryCast((_a = tryCast(promotedDeclaration.moduleReference, isExternalModuleReference)) == null ? void 0 : _a.expression, isStringLiteralLike)) == null ? void 0 : _b.text) || promotedDeclaration.moduleReference.getText() : cast(promotedDeclaration.parent.moduleSpecifier, isStringLiteral).text; } function promoteFromTypeOnly(changes, aliasDeclaration, compilerOptions, sourceFile, preferences) { const convertExistingToTypeOnly = importNameElisionDisabled(compilerOptions); switch (aliasDeclaration.kind) { - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: if (aliasDeclaration.isTypeOnly) { const sortKind = ts_OrganizeImports_exports.detectImportSpecifierSorting(aliasDeclaration.parent.elements, preferences); if (aliasDeclaration.parent.elements.length > 1 && sortKind) { @@ -147586,13 +149730,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} promoteImportClause(aliasDeclaration.parent.parent); return aliasDeclaration.parent.parent; } - case 272 /* ImportClause */: + case 273 /* ImportClause */: promoteImportClause(aliasDeclaration); return aliasDeclaration; - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: promoteImportClause(aliasDeclaration.parent); return aliasDeclaration.parent; - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: changes.deleteRange(sourceFile, aliasDeclaration.getChildAt(1)); return aliasDeclaration; default: @@ -147600,10 +149744,18 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function promoteImportClause(importClause) { changes.delete(sourceFile, getTypeKeywordOfTypeOnlyImport(importClause, sourceFile)); + if (!compilerOptions.allowImportingTsExtensions) { + const moduleSpecifier = tryGetModuleSpecifierFromDeclaration(importClause.parent); + const resolvedModule = moduleSpecifier && getResolvedModule(sourceFile, moduleSpecifier.text, getModeForUsageLocation(sourceFile, moduleSpecifier)); + if (resolvedModule == null ? void 0 : resolvedModule.resolvedUsingTsExtension) { + const changedExtension = changeAnyExtension(moduleSpecifier.text, getOutputExtension(moduleSpecifier.text, compilerOptions)); + changes.replaceNode(sourceFile, moduleSpecifier, factory.createStringLiteral(changedExtension)); + } + } if (convertExistingToTypeOnly) { const namedImports = tryCast(importClause.namedBindings, isNamedImports); if (namedImports && namedImports.elements.length > 1) { - if (ts_OrganizeImports_exports.detectImportSpecifierSorting(namedImports.elements, preferences) && aliasDeclaration.kind === 275 /* ImportSpecifier */ && namedImports.elements.indexOf(aliasDeclaration) !== 0) { + if (ts_OrganizeImports_exports.detectImportSpecifierSorting(namedImports.elements, preferences) && aliasDeclaration.kind === 276 /* ImportSpecifier */ && namedImports.elements.indexOf(aliasDeclaration) !== 0) { changes.delete(sourceFile, aliasDeclaration); changes.insertImportSpecifierAtIndex(sourceFile, aliasDeclaration, namedImports, 0); } @@ -147618,7 +149770,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function doAddExistingFix(changes, sourceFile, clause, defaultImport, namedImports, preferences) { var _a; - if (clause.kind === 205 /* ObjectBindingPattern */) { + if (clause.kind === 206 /* ObjectBindingPattern */) { if (defaultImport) { addElementToBindingPattern(clause, defaultImport.name, "default"); } @@ -148054,7 +150206,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const lastDecorator = findLast(modifiers, isDecorator); const modifierPos = abstractModifier ? abstractModifier.end : staticModifier ? staticModifier.end : accessibilityModifier ? accessibilityModifier.end : lastDecorator ? skipTrivia(sourceFile.text, lastDecorator.end) : classElement.getStart(sourceFile); const options = accessibilityModifier || staticModifier || abstractModifier ? { prefix: " " } : { suffix: " " }; - changeTracker.insertModifierAt(sourceFile, modifierPos, 163 /* OverrideKeyword */, options); + changeTracker.insertModifierAt(sourceFile, modifierPos, 164 /* OverrideKeyword */, options); } function doRemoveOverrideModifierChange(changeTracker, sourceFile, pos) { const classElement = findContainerClassElementLike(sourceFile, pos); @@ -148068,13 +150220,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function isClassElementLikeHasJSDoc(node) { switch (node.kind) { - case 175 /* Constructor */: - case 171 /* PropertyDeclaration */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 176 /* Constructor */: + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return true; - case 168 /* Parameter */: + case 169 /* Parameter */: return isParameterPropertyDeclaration(node, node.parent); default: return false; @@ -148480,7 +150632,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} // src/services/codefixes/fixIncorrectNamedTupleSyntax.ts function getNamedTupleMember(sourceFile, pos) { const token = getTokenAtPosition(sourceFile, pos); - return findAncestor(token, (t) => t.kind === 201 /* NamedTupleMember */); + return findAncestor(token, (t) => t.kind === 202 /* NamedTupleMember */); } function doChange17(changes, sourceFile, namedTupleMember) { if (!namedTupleMember) { @@ -148489,10 +150641,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} let unwrappedType = namedTupleMember.type; let sawOptional = false; let sawRest = false; - while (unwrappedType.kind === 189 /* OptionalType */ || unwrappedType.kind === 190 /* RestType */ || unwrappedType.kind === 195 /* ParenthesizedType */) { - if (unwrappedType.kind === 189 /* OptionalType */) { + while (unwrappedType.kind === 190 /* OptionalType */ || unwrappedType.kind === 191 /* RestType */ || unwrappedType.kind === 196 /* ParenthesizedType */) { + if (unwrappedType.kind === 190 /* OptionalType */) { sawOptional = true; - } else if (unwrappedType.kind === 190 /* RestType */) { + } else if (unwrappedType.kind === 191 /* RestType */) { sawRest = true; } unwrappedType = unwrappedType.type; @@ -148544,7 +150696,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (isPropertyAccessExpression(parent2) && parent2.name === node) { Debug.assert(isMemberName(node), "Expected an identifier for spelling (property access)"); let containingType = checker.getTypeAtLocation(parent2.expression); - if (parent2.flags & 32 /* OptionalChain */) { + if (parent2.flags & 64 /* OptionalChain */) { containingType = checker.getNonNullableType(containingType); } suggestedSymbol = checker.getSuggestedSymbolForNonexistentProperty(node, containingType); @@ -148777,6 +150929,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (!declaration || !isCallExpression(declaration.parent) || !declaration.body) return void 0; const pos = declaration.parent.arguments.indexOf(declaration); + if (pos === -1) + return void 0; const type = checker.getContextualTypeForArgumentAtIndex(declaration.parent, pos); if (!type) return void 0; @@ -148805,19 +150959,19 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function getVariableLikeInitializer(declaration) { switch (declaration.kind) { - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 207 /* BindingElement */: - case 171 /* PropertyDeclaration */: - case 302 /* PropertyAssignment */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 208 /* BindingElement */: + case 172 /* PropertyDeclaration */: + case 303 /* PropertyAssignment */: return declaration.initializer; - case 290 /* JsxAttribute */: + case 291 /* JsxAttribute */: return declaration.initializer && (isJsxExpression(declaration.initializer) ? declaration.initializer.expression : void 0); - case 303 /* ShorthandPropertyAssignment */: - case 170 /* PropertySignature */: - case 305 /* EnumMember */: - case 354 /* JSDocPropertyTag */: - case 347 /* JSDocParameterTag */: + case 304 /* ShorthandPropertyAssignment */: + case 171 /* PropertySignature */: + case 306 /* EnumMember */: + case 355 /* JSDocPropertyTag */: + case 348 /* JSDocParameterTag */: return void 0; } } @@ -149045,7 +151199,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function addMissingMemberInJs(changeTracker, sourceFile, classDeclaration, token, makeStatic) { const tokenName = token.text; if (makeStatic) { - if (classDeclaration.kind === 230 /* ClassExpression */) { + if (classDeclaration.kind === 231 /* ClassExpression */) { return; } const className = classDeclaration.name.getText(); @@ -149098,7 +151252,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function getTypeNode2(checker, node, token) { let typeNode; - if (token.parent.parent.kind === 225 /* BinaryExpression */) { + if (token.parent.parent.kind === 226 /* BinaryExpression */) { const binaryExpression = token.parent.parent; const otherExpression = token.parent === binaryExpression.left ? binaryExpression.right : binaryExpression.left; const widenedType = checker.getWidenedType(checker.getBaseTypeOfLiteralType(checker.getTypeAtLocation(otherExpression))); @@ -149176,9 +151330,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (call === void 0) { return void 0; } - if (isPrivateIdentifier(token)) { - return void 0; - } const methodName = token.text; const addMethodDeclarationChanges = (modifierFlags2) => ts_textChanges_exports.ChangeTracker.with(context, (t) => addMethodDeclaration(context, t, call, token, modifierFlags2, parentDeclaration, declSourceFile)); const actions2 = [createCodeFixAction(fixMissingMember, addMethodDeclarationChanges(modifierFlags & 32 /* Static */), [modifierFlags & 32 /* Static */ ? Diagnostics.Declare_static_method_0 : Diagnostics.Declare_method_0, methodName], fixMissingMember, Diagnostics.Add_all_missing_members)]; @@ -149189,7 +151340,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function addMethodDeclaration(context, changes, callExpression, name, modifierFlags, parentDeclaration, sourceFile) { const importAdder = createImportAdder(sourceFile, context.program, context.preferences, context.host); - const kind = isClassLike(parentDeclaration) ? 173 /* MethodDeclaration */ : 172 /* MethodSignature */; + const kind = isClassLike(parentDeclaration) ? 174 /* MethodDeclaration */ : 173 /* MethodSignature */; const signatureDeclaration = createSignatureDeclarationFromCallExpression(kind, context, importAdder, callExpression, name, modifierFlags, parentDeclaration); const containingMethodDeclaration = tryGetContainingMethodDeclaration(parentDeclaration, callExpression); if (containingMethodDeclaration) { @@ -149218,8 +151369,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function addFunctionDeclaration(changes, context, info) { const quotePreference = getQuotePreference(context.sourceFile, context.preferences); const importAdder = createImportAdder(context.sourceFile, context.program, context.preferences, context.host); - const functionDeclaration = info.kind === 2 /* Function */ ? createSignatureDeclarationFromCallExpression(261 /* FunctionDeclaration */, context, importAdder, info.call, idText(info.token), info.modifierFlags, info.parentDeclaration) : createSignatureDeclarationFromSignature( - 261 /* FunctionDeclaration */, + const functionDeclaration = info.kind === 2 /* Function */ ? createSignatureDeclarationFromCallExpression(262 /* FunctionDeclaration */, context, importAdder, info.call, idText(info.token), info.modifierFlags, info.parentDeclaration) : createSignatureDeclarationFromSignature( + 262 /* FunctionDeclaration */, context, quotePreference, info.signature, @@ -149368,7 +151519,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (signature === void 0) return createUndefined(); const func = createSignatureDeclarationFromSignature( - 217 /* FunctionExpression */, + 218 /* FunctionExpression */, context, quotePreference, signature[0], @@ -149876,7 +152027,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} ); } function getSuggestion(messageText) { - const [_, suggestion] = flattenDiagnosticMessageText(messageText, "\n", 0).match(/\'(.*)\'/) || []; + const [_, suggestion] = flattenDiagnosticMessageText(messageText, "\n", 0).match(/'(.*)'/) || []; return suggestion; } var fixId28, errorCodes34; @@ -149922,6 +152073,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} registerCodeFix({ errorCodes: [ Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code, + Diagnostics.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code, Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code ], getCodeActions: function getCodeActionsToFixModuleAndTarget(context) { @@ -150245,18 +152397,18 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} // src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts function getImportDeclaration(sourceFile, program, start) { const identifier = tryCast(getTokenAtPosition(sourceFile, start), isIdentifier); - if (!identifier || identifier.parent.kind !== 182 /* TypeReference */) + if (!identifier || identifier.parent.kind !== 183 /* TypeReference */) return; const checker = program.getTypeChecker(); const symbol = checker.getSymbolAtLocation(identifier); return find((symbol == null ? void 0 : symbol.declarations) || emptyArray, or(isImportClause, isImportSpecifier, isImportEqualsDeclaration)); } function doTypeOnlyImportChange(changes, sourceFile, importDeclaration, program) { - if (importDeclaration.kind === 270 /* ImportEqualsDeclaration */) { + if (importDeclaration.kind === 271 /* ImportEqualsDeclaration */) { changes.insertModifierBefore(sourceFile, 156 /* TypeKeyword */, importDeclaration.name); return; } - const importClause = importDeclaration.kind === 272 /* ImportClause */ ? importDeclaration : importDeclaration.parent.parent; + const importClause = importDeclaration.kind === 273 /* ImportClause */ ? importDeclaration : importDeclaration.parent.parent; if (importClause.name && importClause.namedBindings) { return; } @@ -150287,14 +152439,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const importDeclaration = getImportDeclaration(context.sourceFile, context.program, context.span.start); if (!importDeclaration) return; - const namespaceChanges = ts_textChanges_exports.ChangeTracker.with(context, (t) => importDeclaration.kind === 275 /* ImportSpecifier */ && doNamespaceImportChange(t, context.sourceFile, importDeclaration, context.program)); + const namespaceChanges = ts_textChanges_exports.ChangeTracker.with(context, (t) => importDeclaration.kind === 276 /* ImportSpecifier */ && doNamespaceImportChange(t, context.sourceFile, importDeclaration, context.program)); const typeOnlyChanges = ts_textChanges_exports.ChangeTracker.with(context, (t) => doTypeOnlyImportChange(t, context.sourceFile, importDeclaration, context.program)); let actions2; if (namespaceChanges.length) { actions2 = append(actions2, createCodeFixActionWithoutFixAll(fixId32, namespaceChanges, Diagnostics.Convert_named_imports_to_namespace_import)); } if (typeOnlyChanges.length) { - actions2 = append(actions2, createCodeFixActionWithoutFixAll(fixId32, typeOnlyChanges, Diagnostics.Convert_to_type_only_import)); + actions2 = append(actions2, createCodeFixActionWithoutFixAll(fixId32, typeOnlyChanges, Diagnostics.Use_import_type)); } return actions2; }, @@ -150314,7 +152466,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} changes.delete(sourceFile, Debug.checkDefined(cast(token.parent, isDeclarationWithTypeParameterChildren).typeParameters, "The type parameter to delete should exist")); } function isImport(token) { - return token.kind === 102 /* ImportKeyword */ || token.kind === 80 /* Identifier */ && (token.parent.kind === 275 /* ImportSpecifier */ || token.parent.kind === 272 /* ImportClause */); + return token.kind === 102 /* ImportKeyword */ || token.kind === 80 /* Identifier */ && (token.parent.kind === 276 /* ImportSpecifier */ || token.parent.kind === 273 /* ImportClause */); } function tryGetFullImport(token) { return token.kind === 102 /* ImportKeyword */ ? tryCast(token.parent, isImportDeclaration) : void 0; @@ -150323,7 +152475,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return isVariableDeclarationList(token.parent) && first(token.parent.getChildren(sourceFile)) === token; } function deleteEntireVariableStatement(changes, sourceFile, node) { - changes.delete(sourceFile, node.parent.kind === 242 /* VariableStatement */ ? node.parent : node); + changes.delete(sourceFile, node.parent.kind === 243 /* VariableStatement */ ? node.parent : node); } function deleteDestructuringElements(changes, sourceFile, node) { forEach(node.elements, (n) => changes.delete(sourceFile, n)); @@ -150365,14 +152517,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function canPrefix(token) { switch (token.parent.kind) { - case 168 /* Parameter */: - case 167 /* TypeParameter */: + case 169 /* Parameter */: + case 168 /* TypeParameter */: return true; - case 259 /* VariableDeclaration */: { + case 260 /* VariableDeclaration */: { const varDecl = token.parent; switch (varDecl.parent.parent.kind) { - case 249 /* ForOfStatement */: - case 248 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 249 /* ForInStatement */: return true; } } @@ -150421,8 +152573,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function mayDeleteParameter(checker, sourceFile, parameter, sourceFiles, program, cancellationToken, isFixAll) { const { parent: parent2 } = parameter; switch (parent2.kind) { - case 173 /* MethodDeclaration */: - case 175 /* Constructor */: + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: const index = parent2.parameters.indexOf(parameter); const referent = isMethodDeclaration(parent2) ? parent2.name : parent2; const entries = ts_FindAllReferences_exports.Core.getReferencedSymbolsForNode(parent2.pos, referent, program, sourceFiles, cancellationToken); @@ -150440,18 +152592,18 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } return true; - case 261 /* FunctionDeclaration */: { + case 262 /* FunctionDeclaration */: { if (parent2.name && isCallbackLike(checker, sourceFile, parent2.name)) { return isLastParameter(parent2, parameter, isFixAll); } return true; } - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return isLastParameter(parent2, parameter, isFixAll); - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return false; - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return true; default: return Debug.failBadSyntaxKind(parent2); @@ -150664,7 +152816,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const container = (isBlock(statement.parent) ? statement.parent : statement).parent; if (!isBlock(statement.parent) || statement === first(statement.parent.statements)) { switch (container.kind) { - case 244 /* IfStatement */: + case 245 /* IfStatement */: if (container.elseStatement) { if (isBlock(statement.parent)) { break; @@ -150673,8 +152825,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } return; } - case 246 /* WhileStatement */: - case 247 /* ForStatement */: + case 247 /* WhileStatement */: + case 248 /* ForStatement */: changes.delete(sourceFile, container); return; } @@ -150770,22 +152922,22 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function isTypeContainer(node) { switch (node.kind) { - case 233 /* AsExpression */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 261 /* FunctionDeclaration */: - case 176 /* GetAccessor */: - case 180 /* IndexSignature */: - case 199 /* MappedType */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 168 /* Parameter */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 177 /* SetAccessor */: - case 264 /* TypeAliasDeclaration */: - case 215 /* TypeAssertionExpression */: - case 259 /* VariableDeclaration */: + case 234 /* AsExpression */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 262 /* FunctionDeclaration */: + case 177 /* GetAccessor */: + case 181 /* IndexSignature */: + case 200 /* MappedType */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 169 /* Parameter */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 178 /* SetAccessor */: + case 265 /* TypeAliasDeclaration */: + case 216 /* TypeAssertionExpression */: + case 260 /* VariableDeclaration */: return true; default: return false; @@ -150827,7 +152979,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const { typeNode, type } = info; const original = typeNode.getText(sourceFile); const actions2 = [fix(type, fixIdPlain, Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)]; - if (typeNode.kind === 320 /* JSDocNullableType */) { + if (typeNode.kind === 321 /* JSDocNullableType */) { actions2.push(fix(type, fixIdNullable, Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)); } return actions2; @@ -150845,7 +152997,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (!info) return; const { typeNode, type } = info; - const fixedType = typeNode.kind === 320 /* JSDocNullableType */ && fixId52 === fixIdNullable ? checker.getNullableType(type, 32768 /* Undefined */) : type; + const fixedType = typeNode.kind === 321 /* JSDocNullableType */ && fixId52 === fixIdNullable ? checker.getNullableType(type, 32768 /* Undefined */) : type; doChange28(changes, sourceFile, typeNode, fixedType, checker); }); } @@ -150918,14 +153070,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } let insertBefore; switch (containingFunction.kind) { - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: insertBefore = containingFunction.name; break; - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: insertBefore = findChildOfKind(containingFunction, 100 /* FunctionKeyword */, sourceFile); break; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: const kind = containingFunction.typeParameters ? 30 /* LessThanToken */ : 21 /* OpenParenToken */; insertBefore = findChildOfKind(containingFunction, kind, sourceFile) || first(containingFunction.parameters); break; @@ -150955,6 +153107,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} fixId36 = "fixAwaitInSyncFunction"; errorCodes46 = [ Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code, + Diagnostics.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code, Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code, Diagnostics.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code ]; @@ -151232,7 +153385,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function annotate(changes, importAdder, sourceFile, declaration, type, program, host) { const typeNode = getTypeNodeIfAccessible(type, declaration, program, host); if (typeNode) { - if (isInJSFile(sourceFile) && declaration.kind !== 170 /* PropertySignature */) { + if (isInJSFile(sourceFile) && declaration.kind !== 171 /* PropertySignature */) { const parent2 = isVariableDeclaration(declaration) ? tryCast(declaration.parent.parent, isVariableStatement) : declaration; if (!parent2) { return; @@ -151343,17 +153496,17 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function getFunctionReferences(containingFunction, sourceFile, program, cancellationToken) { let searchToken; switch (containingFunction.kind) { - case 175 /* Constructor */: + case 176 /* Constructor */: searchToken = findChildOfKind(containingFunction, 137 /* ConstructorKeyword */, sourceFile); break; - case 218 /* ArrowFunction */: - case 217 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 218 /* FunctionExpression */: const parent2 = containingFunction.parent; searchToken = (isVariableDeclaration(parent2) || isPropertyDeclaration(parent2)) && isIdentifier(parent2.name) ? parent2.name : containingFunction.name; break; - case 261 /* FunctionDeclaration */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 262 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: searchToken = containingFunction.name; break; } @@ -151489,44 +153642,44 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} node = node.parent; } switch (node.parent.kind) { - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: inferTypeFromExpressionStatement(node, usage); break; - case 224 /* PostfixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: usage.isNumber = true; break; - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: inferTypeFromPrefixUnaryExpression(node.parent, usage); break; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: inferTypeFromBinaryExpression(node, node.parent, usage); break; - case 295 /* CaseClause */: - case 296 /* DefaultClause */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: inferTypeFromSwitchStatementLabel(node.parent, usage); break; - case 212 /* CallExpression */: - case 213 /* NewExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: if (node.parent.expression === node) { inferTypeFromCallExpression(node.parent, usage); } else { inferTypeFromContextualType(node, usage); } break; - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: inferTypeFromPropertyAccessExpression(node.parent, usage); break; - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: inferTypeFromPropertyElementExpression(node.parent, node, usage); break; - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: inferTypeFromPropertyAssignment(node.parent, usage); break; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: inferTypeFromPropertyDeclaration(node.parent, usage); break; - case 259 /* VariableDeclaration */: { + case 260 /* VariableDeclaration */: { const { name, initializer } = node.parent; if (node === name) { if (initializer) { @@ -151626,7 +153779,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} break; case 57 /* BarBarToken */: case 61 /* QuestionQuestionToken */: - if (node === parent2.left && (node.parent.parent.kind === 259 /* VariableDeclaration */ || isAssignmentExpression( + if (node === parent2.left && (node.parent.parent.kind === 260 /* VariableDeclaration */ || isAssignmentExpression( node.parent.parent, /*excludeCompoundAssignment*/ true @@ -151654,7 +153807,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } calculateUsageOfNode(parent2, call.return_); - if (parent2.kind === 212 /* CallExpression */) { + if (parent2.kind === 213 /* CallExpression */) { (usage.calls || (usage.calls = [])).push(call); } else { (usage.constructs || (usage.constructs = [])).push(call); @@ -152203,28 +154356,25 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function addNewNodeForMemberSymbol(symbol, enclosingDeclaration, sourceFile, context, preferences, importAdder, addClassElement, body, preserveOptional = 3 /* All */, isAmbient = false) { const declarations = symbol.getDeclarations(); - const declaration = declarations == null ? void 0 : declarations[0]; + const declaration = firstOrUndefined(declarations); const checker = context.program.getTypeChecker(); const scriptTarget = getEmitScriptTarget(context.program.getCompilerOptions()); - const kind = (declaration == null ? void 0 : declaration.kind) ?? 170 /* PropertySignature */; - const declarationName = getSynthesizedDeepClone( - getNameOfDeclaration(declaration), - /*includeTrivia*/ - false - ); + const kind = (declaration == null ? void 0 : declaration.kind) ?? 171 /* PropertySignature */; + const declarationName = createDeclarationName(symbol, declaration); const effectiveModifierFlags = declaration ? getEffectiveModifierFlags(declaration) : 0 /* None */; - let modifierFlags = effectiveModifierFlags & 4 /* Public */ ? 4 /* Public */ : effectiveModifierFlags & 16 /* Protected */ ? 16 /* Protected */ : 0 /* None */; + let modifierFlags = effectiveModifierFlags & 32 /* Static */; + modifierFlags |= effectiveModifierFlags & 4 /* Public */ ? 4 /* Public */ : effectiveModifierFlags & 16 /* Protected */ ? 16 /* Protected */ : 0 /* None */; if (declaration && isAutoAccessorPropertyDeclaration(declaration)) { modifierFlags |= 128 /* Accessor */; } const modifiers = createModifiers(); const type = checker.getWidenedType(checker.getTypeOfSymbolAtLocation(symbol, enclosingDeclaration)); const optional = !!(symbol.flags & 16777216 /* Optional */); - const ambient = !!(enclosingDeclaration.flags & 16777216 /* Ambient */) || isAmbient; + const ambient = !!(enclosingDeclaration.flags & 33554432 /* Ambient */) || isAmbient; const quotePreference = getQuotePreference(sourceFile, preferences); switch (kind) { - case 170 /* PropertySignature */: - case 171 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 172 /* PropertyDeclaration */: const flags = quotePreference === 0 /* Single */ ? 268435456 /* UseSingleQuotesForStringLiteralType */ : void 0; let typeNode = checker.typeToTypeNode(type, enclosingDeclaration, flags, getNoopSymbolTrackerWithResolver(context)); if (importAdder) { @@ -152243,8 +154393,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} void 0 )); break; - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: { + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: { Debug.assertIsDefined(declarations); let typeNode2 = checker.typeToTypeNode( type, @@ -152292,8 +154442,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } break; } - case 172 /* MethodSignature */: - case 173 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 174 /* MethodDeclaration */: Debug.assertIsDefined(declarations); const signatures = type.isUnion() ? flatMap(type.types, (t) => t.getCallSignatures()) : type.getCallSignatures(); if (!some(signatures)) { @@ -152320,7 +154470,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} break; } function outputMethod(quotePreference2, signature, modifiers2, name, body2) { - const method = createSignatureDeclarationFromSignature(173 /* MethodDeclaration */, context, quotePreference2, signature, body2, name, modifiers2, optional && !!(preserveOptional & 1 /* Method */), enclosingDeclaration, importAdder); + const method = createSignatureDeclarationFromSignature(174 /* MethodDeclaration */, context, quotePreference2, signature, body2, name, modifiers2, optional && !!(preserveOptional & 1 /* Method */), enclosingDeclaration, importAdder); if (method) addClassElement(method); } @@ -152330,7 +154480,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} modifiers2 = combine(modifiers2, factory.createModifiersFromModifierFlags(modifierFlags)); } if (shouldAddOverrideKeyword()) { - modifiers2 = append(modifiers2, factory.createToken(163 /* OverrideKeyword */)); + modifiers2 = append(modifiers2, factory.createToken(164 /* OverrideKeyword */)); } return modifiers2 && factory.createNodeArray(modifiers2); } @@ -152361,6 +154511,19 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} false ); } + function createDeclarationName(symbol2, declaration2) { + if (getCheckFlags(symbol2) & 262144 /* Mapped */) { + const nameType = symbol2.links.nameType; + if (nameType && isTypeUsableAsPropertyName(nameType)) { + return factory.createIdentifier(unescapeLeadingUnderscores(getPropertyNameFromType(nameType))); + } + } + return getSynthesizedDeepClone( + getNameOfDeclaration(declaration2), + /*includeTrivia*/ + false + ); + } } function createSignatureDeclarationFromSignature(kind, context, quotePreference, signature, body, name, modifiers, optional, enclosingDeclaration, importAdder) { const program = context.program; @@ -152468,8 +154631,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} instanceTypes, contextNode, scriptTarget, - /*flags*/ - void 0, + 1 /* NoTruncation */, tracker ); const modifiers = modifierFlags ? factory.createNodeArray(factory.createModifiersFromModifierFlags(modifierFlags)) : void 0; @@ -152491,7 +154653,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} tracker ); switch (kind) { - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: return factory.createMethodDeclaration( modifiers, asteriskToken, @@ -152503,7 +154665,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} type, createStubbedMethodBody(quotePreference) ); - case 172 /* MethodSignature */: + case 173 /* MethodSignature */: return factory.createMethodSignature( modifiers, name, @@ -152513,7 +154675,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} parameters, type === void 0 ? factory.createKeywordTypeNode(159 /* UnknownKeyword */) : type ); - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: + Debug.assert(typeof name === "string" || isIdentifier(name), "Unexpected name"); return factory.createFunctionDeclaration( modifiers, asteriskToken, @@ -152918,7 +155081,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} isStatic: hasStaticModifier(declaration), isReadonly: hasEffectiveReadonlyModifier(declaration), type: getDeclarationType(declaration, program), - container: declaration.kind === 168 /* Parameter */ ? declaration.parent.parent : declaration.parent, + container: declaration.kind === 169 /* Parameter */ ? declaration.parent.parent : declaration.parent, originalName: declaration.name.text, declaration, fieldName, @@ -153090,7 +155253,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function getActionsForUsageOfInvalidImport(context) { const sourceFile = context.sourceFile; - const targetKind = Diagnostics.This_expression_is_not_callable.code === context.errorCode ? 212 /* CallExpression */ : 213 /* NewExpression */; + const targetKind = Diagnostics.This_expression_is_not_callable.code === context.errorCode ? 213 /* CallExpression */ : 214 /* NewExpression */; const node = findAncestor(getTokenAtPosition(sourceFile, context.span.start), (a) => a.kind === targetKind); if (!node) { return []; @@ -153495,7 +155658,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function getImportTypeNode(sourceFile, pos) { const token = getTokenAtPosition(sourceFile, pos); Debug.assert(token.kind === 102 /* ImportKeyword */, "This token should be an ImportKeyword"); - Debug.assert(token.parent.kind === 204 /* ImportType */, "Token parent should be an ImportType"); + Debug.assert(token.parent.kind === 205 /* ImportType */, "Token parent should be an ImportType"); return token.parent; } function doChange36(changes, sourceFile, importType) { @@ -153802,8 +155965,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return [createCodeFixAction(fixId48, changes, Diagnostics.Split_into_two_separate_import_declarations, fixId48, Diagnostics.Split_all_invalid_type_only_imports)]; } }, - getAllCodeActions: (context) => codeFixAll(context, errorCodes60, (changes, error) => { - splitTypeOnlyImport(changes, getImportDeclaration2(context.sourceFile, error), context); + getAllCodeActions: (context) => codeFixAll(context, errorCodes60, (changes, error2) => { + splitTypeOnlyImport(changes, getImportDeclaration2(context.sourceFile, error2), context); }) }); } @@ -154016,7 +156179,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} getFixes: () => getFixes, getImportCompletionAction: () => getImportCompletionAction, getImportKind: () => getImportKind, - getJSDocTypedefNode: () => getJSDocTypedefNode, + getJSDocTypedefNodes: () => getJSDocTypedefNodes, getNoopSymbolTrackerWithResolver: () => getNoopSymbolTrackerWithResolver, getPromoteTypeOnlyCompletionAction: () => getPromoteTypeOnlyCompletionAction, getSupportedErrorCodes: () => getSupportedErrorCodes, @@ -154861,14 +157024,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function typeNodeToExpression(typeNode, languageVersion, quotePreference) { switch (typeNode.kind) { - case 182 /* TypeReference */: + case 183 /* TypeReference */: const typeName = typeNode.typeName; return entityNameToExpression(typeName, languageVersion, quotePreference); - case 198 /* IndexedAccessType */: + case 199 /* IndexedAccessType */: const objectExpression = typeNodeToExpression(typeNode.objectType, languageVersion, quotePreference); const indexExpression = typeNodeToExpression(typeNode.indexType, languageVersion, quotePreference); return objectExpression && indexExpression && factory.createElementAccessExpression(objectExpression, indexExpression); - case 200 /* LiteralType */: + case 201 /* LiteralType */: const literal = typeNode.literal; switch (literal.kind) { case 11 /* StringLiteral */: @@ -154877,12 +157040,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return factory.createNumericLiteral(literal.text, literal.numericLiteralFlags); } return void 0; - case 195 /* ParenthesizedType */: + case 196 /* ParenthesizedType */: const exp = typeNodeToExpression(typeNode.type, languageVersion, quotePreference); return exp && (isIdentifier(exp) ? exp : factory.createParenthesizedExpression(exp)); - case 185 /* TypeQuery */: + case 186 /* TypeQuery */: return entityNameToExpression(typeNode.exprName, languageVersion, quotePreference); - case 204 /* ImportType */: + case 205 /* ImportType */: Debug.fail(`We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.`); } return void 0; @@ -154917,12 +157080,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function getJsxClosingTagCompletion(location, sourceFile) { const jsxClosingElement = findAncestor(location, (node) => { switch (node.kind) { - case 286 /* JsxClosingElement */: + case 287 /* JsxClosingElement */: return true; case 44 /* SlashToken */: case 32 /* GreaterThanToken */: case 80 /* Identifier */: - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return false; default: return "quit"; @@ -154969,7 +157132,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return { name: completionNameForLiteral(sourceFile, preferences, literal), kind: "string" /* string */, kindModifiers: "" /* none */, sortText: SortText.LocationPriority }; } function createCompletionEntry(symbol, sortText, replacementToken, contextToken, location, position, sourceFile, host, program, name, needsConvertPropertyAccess, origin, recommendedCompletion, propertyAccessToConvert, isJsxInitializer, importStatementCompletion, useSemicolons, options, preferences, completionKind, formatContext, isJsxIdentifierExpected, isRightOfOpenTag, includeSymbol) { + var _a, _b; let insertText; + let filterText; let replacementSpan = getReplacementSpanForContextToken(replacementToken); let data; let isSnippet; @@ -155026,13 +157191,23 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if ((origin == null ? void 0 : origin.kind) === 64 /* TypeOnlyAlias */) { hasAction = true; } + if (completionKind === 0 /* ObjectPropertyDeclaration */ && contextToken && ((_a = findPrecedingToken(contextToken.pos, sourceFile, contextToken)) == null ? void 0 : _a.kind) !== 28 /* CommaToken */) { + if (isMethodDeclaration(contextToken.parent.parent) || isGetAccessorDeclaration(contextToken.parent.parent) || isSetAccessorDeclaration(contextToken.parent.parent) || isSpreadAssignment(contextToken.parent) || ((_b = findAncestor(contextToken.parent, isPropertyAssignment)) == null ? void 0 : _b.getLastToken(sourceFile)) === contextToken || isShorthandPropertyAssignment(contextToken.parent) && getLineAndCharacterOfPosition(sourceFile, contextToken.getEnd()).line !== getLineAndCharacterOfPosition(sourceFile, position).line) { + source = "ObjectLiteralMemberWithComma/" /* ObjectLiteralMemberWithComma */; + hasAction = true; + } + } if (preferences.includeCompletionsWithClassMemberSnippets && preferences.includeCompletionsWithInsertText && completionKind === 3 /* MemberLike */ && isClassLikeMemberCompletion(symbol, location, sourceFile)) { let importAdder; - ({ insertText, isSnippet, importAdder, replacementSpan } = getEntryForMemberCompletion(host, program, options, preferences, name, symbol, location, position, contextToken, formatContext)); - sortText = SortText.ClassMemberSnippets; - if (importAdder == null ? void 0 : importAdder.hasFixes()) { - hasAction = true; - source = "ClassMemberSnippet/" /* ClassMemberSnippet */; + const memberCompletionEntry = getEntryForMemberCompletion(host, program, options, preferences, name, symbol, location, position, contextToken, formatContext); + if (memberCompletionEntry) { + ({ insertText, filterText, isSnippet, importAdder } = memberCompletionEntry); + if (importAdder == null ? void 0 : importAdder.hasFixes()) { + hasAction = true; + source = "ClassMemberSnippet/" /* ClassMemberSnippet */; + } + } else { + return void 0; } } if (origin && originIsObjectLiteralMethod(origin)) { @@ -155067,6 +157242,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} data = originToCompletionEntryData(origin); hasAction = !importStatementCompletion; } + const parentNamedImportOrExport = findAncestor(location, isNamedImportsOrExports); + if ((parentNamedImportOrExport == null ? void 0 : parentNamedImportOrExport.kind) === 275 /* NamedImports */) { + const possibleToken = stringToToken(name); + if (parentNamedImportOrExport && possibleToken && (possibleToken === 135 /* AwaitKeyword */ || isNonContextualKeyword(possibleToken))) { + insertText = `${name} as ${name}_`; + } + } return { name, kind: ts_SymbolDisplay_exports.getSymbolKind(typeChecker, symbol, location), @@ -155076,6 +157258,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} hasAction: hasAction ? true : void 0, isRecommended: isRecommendedCompletionMatch(symbol, recommendedCompletion, typeChecker) || void 0, insertText, + filterText, replacementSpan, sourceDisplay, labelDetails, @@ -155096,11 +157279,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function getEntryForMemberCompletion(host, program, options, preferences, name, symbol, location, position, contextToken, formatContext) { const classLikeDeclaration = findAncestor(location, isClassLike); if (!classLikeDeclaration) { - return { insertText: name }; + return void 0; } let isSnippet; - let replacementSpan; let insertText = name; + const filterText = name; const checker = program.getTypeChecker(); const sourceFile = location.getSourceFile(); const printer = createSnippetPrinter({ @@ -155129,9 +157312,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} ); } let modifiers = 0 /* None */; - const { modifiers: presentModifiers, span: modifiersSpan } = getPresentModifiers(contextToken, sourceFile, position); - const isAbstract = !!(presentModifiers & 256 /* Abstract */); - const completionNodes = []; + const { modifiers: presentModifiers, range: eraseRange, decorators: presentDecorators } = getPresentModifiers(contextToken, sourceFile, position); + const isAbstract = presentModifiers & 256 /* Abstract */ && classLikeDeclaration.modifierFlagsCache & 256 /* Abstract */; + let completionNodes = []; ts_codefix_exports.addNewNodeForMemberSymbol( symbol, classLikeDeclaration, @@ -155155,18 +157338,42 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} requiredModifiers |= 16384 /* Override */; } if (!completionNodes.length) { - modifiers = node.modifierFlagsCache | requiredModifiers | presentModifiers; + modifiers = node.modifierFlagsCache | requiredModifiers; } node = factory.updateModifiers(node, modifiers); completionNodes.push(node); }, body, ts_codefix_exports.PreserveOptionalFlags.Property, - isAbstract + !!isAbstract ); if (completionNodes.length) { + const isMethod = symbol.flags & 8192 /* Method */; + let allowedModifiers = modifiers | 16384 /* Override */ | 4 /* Public */; + if (!isMethod) { + allowedModifiers |= 2 /* Ambient */ | 64 /* Readonly */; + } else { + allowedModifiers |= 512 /* Async */; + } + const allowedAndPresent = presentModifiers & allowedModifiers; + if (presentModifiers & ~allowedModifiers) { + return void 0; + } + if (modifiers & 16 /* Protected */ && allowedAndPresent & 4 /* Public */) { + modifiers &= ~16 /* Protected */; + } + if (allowedAndPresent !== 0 /* None */ && !(allowedAndPresent & 4 /* Public */)) { + modifiers &= ~4 /* Public */; + } + modifiers |= allowedAndPresent; + completionNodes = completionNodes.map((node) => factory.updateModifiers(node, modifiers)); + if (presentDecorators == null ? void 0 : presentDecorators.length) { + const lastNode = completionNodes[completionNodes.length - 1]; + if (canHaveDecorators(lastNode)) { + completionNodes[completionNodes.length - 1] = factory.updateModifierLike(lastNode, presentDecorators.concat(getModifiers(lastNode) || [])); + } + } const format = 1 /* MultiLine */ | 131072 /* NoTrailingNewLine */; - replacementSpan = modifiersSpan; if (formatContext) { insertText = printer.printAndFormatSnippetList( format, @@ -155182,24 +157389,29 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} ); } } - return { insertText, isSnippet, importAdder, replacementSpan }; + return { insertText, filterText, isSnippet, importAdder, eraseRange }; } function getPresentModifiers(contextToken, sourceFile, position) { if (!contextToken || getLineAndCharacterOfPosition(sourceFile, position).line > getLineAndCharacterOfPosition(sourceFile, contextToken.getEnd()).line) { return { modifiers: 0 /* None */ }; } let modifiers = 0 /* None */; - let span; + let decorators; let contextMod; - if (contextMod = isModifierLike2(contextToken)) { - modifiers |= modifierToFlag(contextMod); - span = createTextSpanFromNode(contextToken); - } - if (isPropertyDeclaration(contextToken.parent)) { + const range = { pos: position, end: position }; + if (isPropertyDeclaration(contextToken.parent) && contextToken.parent.modifiers) { modifiers |= modifiersToFlags(contextToken.parent.modifiers) & 126975 /* Modifier */; - span = createTextSpanFromNode(contextToken.parent); + decorators = contextToken.parent.modifiers.filter(isDecorator) || []; + range.pos = Math.min(range.pos, contextToken.parent.modifiers.pos); } - return { modifiers, span }; + if (contextMod = isModifierLike2(contextToken)) { + const contextModifierFlag = modifierToFlag(contextMod); + if (!(modifiers & contextModifierFlag)) { + modifiers |= contextModifierFlag; + range.pos = Math.min(range.pos, contextToken.pos); + } + } + return { modifiers, decorators, range: range.pos !== position ? range : void 0 }; } function isModifierLike2(node) { if (isModifier(node)) { @@ -155276,10 +157488,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const quotePreference = getQuotePreference(sourceFile, preferences); const builderFlags = 33554432 /* OmitThisParameter */ | (quotePreference === 0 /* Single */ ? 268435456 /* UseSingleQuotesForStringLiteralType */ : 0 /* None */); switch (declaration.kind) { - case 170 /* PropertySignature */: - case 171 /* PropertyDeclaration */: - case 172 /* MethodSignature */: - case 173 /* MethodDeclaration */: { + case 171 /* PropertySignature */: + case 172 /* PropertyDeclaration */: + case 173 /* MethodSignature */: + case 174 /* MethodDeclaration */: { let effectiveType = type.flags & 1048576 /* Union */ && type.types.length < 10 ? checker.getUnionType(type.types, 2 /* Subtype */) : type; if (effectiveType.flags & 1048576 /* Union */) { const functionTypes = filter(effectiveType.types, (type2) => checker.getSignaturesOfType(type2, 0 /* Call */).length > 0); @@ -155722,7 +157934,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return firstDefined(symbols, (symbol, index) => { const origin = symbolToOriginInfoMap[index]; const info = getCompletionEntryDisplayNameForSymbol(symbol, getEmitScriptTarget(compilerOptions), origin, completionKind, completionData.isJsxIdentifierExpected); - return info && info.name === entryId.name && (entryId.source === "ClassMemberSnippet/" /* ClassMemberSnippet */ && symbol.flags & 106500 /* ClassMember */ || entryId.source === "ObjectLiteralMethodSnippet/" /* ObjectLiteralMethodSnippet */ && symbol.flags & (4 /* Property */ | 8192 /* Method */) || getSourceFromOrigin(origin) === entryId.source) ? { type: "symbol", symbol, location, origin, contextToken, previousToken, isJsxInitializer, isTypeOnlyLocation } : void 0; + return info && info.name === entryId.name && (entryId.source === "ClassMemberSnippet/" /* ClassMemberSnippet */ && symbol.flags & 106500 /* ClassMember */ || entryId.source === "ObjectLiteralMethodSnippet/" /* ObjectLiteralMethodSnippet */ && symbol.flags & (4 /* Property */ | 8192 /* Method */) || getSourceFromOrigin(origin) === entryId.source || entryId.source === "ObjectLiteralMemberWithComma/" /* ObjectLiteralMemberWithComma */) ? { type: "symbol", symbol, location, origin, contextToken, previousToken, isJsxInitializer, isTypeOnlyLocation } : void 0; }) || { type: "none" }; } function getCompletionEntryDetails(program, log, sourceFile, position, entryId, host, formatContext, preferences, cancellationToken) { @@ -155817,12 +158029,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function getCompletionEntryCodeActionsAndSourceDisplay(name, location, contextToken, origin, symbol, program, host, compilerOptions, sourceFile, position, previousToken, formatContext, preferences, data, source, cancellationToken) { if (data == null ? void 0 : data.moduleSpecifier) { - if (previousToken && getImportStatementCompletionInfo(contextToken || previousToken).replacementSpan) { + if (previousToken && getImportStatementCompletionInfo(contextToken || previousToken, sourceFile).replacementSpan) { return { codeActions: void 0, sourceDisplay: [textPart(data.moduleSpecifier)] }; } } if (source === "ClassMemberSnippet/" /* ClassMemberSnippet */) { - const { importAdder } = getEntryForMemberCompletion( + const { importAdder, eraseRange } = getEntryForMemberCompletion( host, program, compilerOptions, @@ -155834,10 +158046,17 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} contextToken, formatContext ); - if (importAdder) { + if (importAdder || eraseRange) { const changes = ts_textChanges_exports.ChangeTracker.with( { host, formatContext, preferences }, - importAdder.writeFixes + (tracker) => { + if (importAdder) { + importAdder.writeFixes(tracker); + } + if (eraseRange) { + tracker.deleteRange(sourceFile, eraseRange); + } + } ); return { sourceDisplay: void 0, @@ -155860,6 +158079,21 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} Debug.assertIsDefined(codeAction2, "Expected to have a code action for promoting type-only alias"); return { codeActions: [codeAction2], sourceDisplay: void 0 }; } + if (source === "ObjectLiteralMemberWithComma/" /* ObjectLiteralMemberWithComma */ && contextToken) { + const changes = ts_textChanges_exports.ChangeTracker.with( + { host, formatContext, preferences }, + (tracker) => tracker.insertText(sourceFile, contextToken.end, ",") + ); + if (changes) { + return { + sourceDisplay: void 0, + codeActions: [{ + changes, + description: diagnosticToString([Diagnostics.Add_missing_comma_for_object_member_completion_0, name]) + }] + }; + } + } if (!origin || !(originIsExport(origin) || originIsResolvedExport(origin))) { return { codeActions: void 0, sourceDisplay: void 0 }; } @@ -155901,11 +158135,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return getContextualTypeFromParent(previousToken, checker); case 64 /* EqualsToken */: switch (parent2.kind) { - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return checker.getContextualType(parent2.initializer); - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return checker.getTypeAtLocation(parent2.left); - case 290 /* JsxAttribute */: + case 291 /* JsxAttribute */: return checker.getContextualTypeForJsxAttribute(parent2); default: return void 0; @@ -155943,7 +158177,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function isModuleSymbol(symbol) { var _a; - return !!((_a = symbol.declarations) == null ? void 0 : _a.some((d) => d.kind === 311 /* SourceFile */)); + return !!((_a = symbol.declarations) == null ? void 0 : _a.some((d) => d.kind === 312 /* SourceFile */)); } function getCompletionData(program, log, sourceFile, compilerOptions, position, preferences, detailsEntryId, host, formatContext, cancellationToken) { const typeChecker = program.getTypeChecker(); @@ -155962,7 +158196,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return { kind: 1 /* JsDocTagName */ }; } else { const lineStart = getLineStartPositionForPosition(position, sourceFile); - if (!/[^\*|\s(/)]/.test(sourceFile.text.substring(lineStart, position))) { + if (!/[^*|\s(/)]/.test(sourceFile.text.substring(lineStart, position))) { return { kind: 2 /* JsDocTag */ }; } } @@ -155975,7 +158209,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const typeExpression = tryGetTypeExpressionFromTag(tag); if (typeExpression) { currentToken = getTokenAtPosition(sourceFile, position); - if (!currentToken || !isDeclarationName(currentToken) && (currentToken.parent.kind !== 354 /* JSDocPropertyTag */ || currentToken.parent.name !== currentToken)) { + if (!currentToken || !isDeclarationName(currentToken) && (currentToken.parent.kind !== 355 /* JSDocPropertyTag */ || currentToken.parent.name !== currentToken)) { insideJsDocTagTypeExpression = isCurrentlyEditingNode(typeExpression); } } @@ -156008,7 +158242,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} let isNewIdentifierLocation = false; let flags = 0 /* None */; if (contextToken) { - const importStatementCompletionInfo = getImportStatementCompletionInfo(contextToken); + const importStatementCompletionInfo = getImportStatementCompletionInfo(contextToken, sourceFile); if (importStatementCompletionInfo.keywordCompletion) { if (importStatementCompletionInfo.isKeywordOnlyCompletion) { return { @@ -156033,7 +158267,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} isRightOfDot = contextToken.kind === 25 /* DotToken */; isRightOfQuestionDot = contextToken.kind === 29 /* QuestionDotToken */; switch (parent2.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: propertyAccessToConvert = parent2; node = propertyAccessToConvert.expression; const leftmostAccessExpression = getLeftmostAccessExpression(propertyAccessToConvert); @@ -156041,16 +158275,16 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return void 0; } break; - case 165 /* QualifiedName */: + case 166 /* QualifiedName */: node = parent2.left; break; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: node = parent2.name; break; - case 204 /* ImportType */: + case 205 /* ImportType */: node = parent2; break; - case 235 /* MetaProperty */: + case 236 /* MetaProperty */: node = parent2.getFirstToken(sourceFile); Debug.assert(node.kind === 102 /* ImportKeyword */ || node.kind === 105 /* NewKeyword */); break; @@ -156058,51 +158292,51 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return void 0; } } else if (!importStatementCompletion) { - if (parent2 && parent2.kind === 210 /* PropertyAccessExpression */) { + if (parent2 && parent2.kind === 211 /* PropertyAccessExpression */) { contextToken = parent2; parent2 = parent2.parent; } if (currentToken.parent === location) { switch (currentToken.kind) { case 32 /* GreaterThanToken */: - if (currentToken.parent.kind === 283 /* JsxElement */ || currentToken.parent.kind === 285 /* JsxOpeningElement */) { + if (currentToken.parent.kind === 284 /* JsxElement */ || currentToken.parent.kind === 286 /* JsxOpeningElement */) { location = currentToken; } break; case 44 /* SlashToken */: - if (currentToken.parent.kind === 284 /* JsxSelfClosingElement */) { + if (currentToken.parent.kind === 285 /* JsxSelfClosingElement */) { location = currentToken; } break; } } switch (parent2.kind) { - case 286 /* JsxClosingElement */: + case 287 /* JsxClosingElement */: if (contextToken.kind === 44 /* SlashToken */) { isStartingCloseTag = true; location = contextToken; } break; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: if (!binaryExpressionMayBeOpenTag(parent2)) { break; } - case 284 /* JsxSelfClosingElement */: - case 283 /* JsxElement */: - case 285 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: + case 284 /* JsxElement */: + case 286 /* JsxOpeningElement */: isJsxIdentifierExpected = true; if (contextToken.kind === 30 /* LessThanToken */) { isRightOfOpenTag = true; location = contextToken; } break; - case 293 /* JsxExpression */: - case 292 /* JsxSpreadAttribute */: - if (previousToken.kind === 20 /* CloseBraceToken */ || previousToken.kind === 80 /* Identifier */ && previousToken.parent.kind === 290 /* JsxAttribute */) { + case 294 /* JsxExpression */: + case 293 /* JsxSpreadAttribute */: + if (previousToken.kind === 20 /* CloseBraceToken */ || previousToken.kind === 80 /* Identifier */ && previousToken.parent.kind === 291 /* JsxAttribute */) { isJsxIdentifierExpected = true; } break; - case 290 /* JsxAttribute */: + case 291 /* JsxAttribute */: if (parent2.initializer === previousToken && previousToken.end < position) { isJsxIdentifierExpected = true; break; @@ -156190,15 +158424,15 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} }; function isTagWithTypeExpression(tag) { switch (tag.kind) { - case 347 /* JSDocParameterTag */: - case 354 /* JSDocPropertyTag */: - case 348 /* JSDocReturnTag */: - case 350 /* JSDocTypeTag */: - case 352 /* JSDocTypedefTag */: - case 355 /* JSDocThrowsTag */: - case 356 /* JSDocSatisfiesTag */: + case 348 /* JSDocParameterTag */: + case 355 /* JSDocPropertyTag */: + case 349 /* JSDocReturnTag */: + case 351 /* JSDocTypeTag */: + case 353 /* JSDocTypedefTag */: + case 356 /* JSDocThrowsTag */: + case 357 /* JSDocSatisfiesTag */: return true; - case 351 /* JSDocTemplateTag */: + case 352 /* JSDocTemplateTag */: return !!tag.constraint; default: return false; @@ -156207,7 +158441,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function tryGetTypeExpressionFromTag(tag) { if (isTagWithTypeExpression(tag)) { const typeExpression = isJSDocTemplateTag(tag) ? tag.constraint : tag.typeExpression; - return typeExpression && typeExpression.kind === 315 /* JSDocTypeExpression */ ? typeExpression : void 0; + return typeExpression && typeExpression.kind === 316 /* JSDocTypeExpression */ ? typeExpression : void 0; } if (isJSDocAugmentsTag(tag) || isJSDocImplementsTag(tag)) { return tag.class; @@ -156243,7 +158477,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} symbols.push(exportedSymbol); } } - if (!isTypeLocation && !insideJsDocTagTypeExpression && symbol.declarations && symbol.declarations.some((d) => d.kind !== 311 /* SourceFile */ && d.kind !== 266 /* ModuleDeclaration */ && d.kind !== 265 /* EnumDeclaration */)) { + if (!isTypeLocation && !insideJsDocTagTypeExpression && symbol.declarations && symbol.declarations.some((d) => d.kind !== 312 /* SourceFile */ && d.kind !== 267 /* ModuleDeclaration */ && d.kind !== 266 /* EnumDeclaration */)) { let type = typeChecker.getTypeOfSymbolAtLocation(symbol, node).getNonOptionalType(); let insertQuestionDot = false; if (type.isNullableType()) { @@ -156255,30 +158489,40 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } } - addTypeProperties(type, !!(node.flags & 32768 /* AwaitContext */), insertQuestionDot); + addTypeProperties(type, !!(node.flags & 65536 /* AwaitContext */), insertQuestionDot); } return; } } } - if (!isTypeLocation) { + if (!isTypeLocation || isInTypeQuery(node)) { typeChecker.tryGetThisTypeAt( node, /*includeGlobalThis*/ false ); let type = typeChecker.getTypeAtLocation(node).getNonOptionalType(); - let insertQuestionDot = false; - if (type.isNullableType()) { - const canCorrectToQuestionDot = isRightOfDot && !isRightOfQuestionDot && preferences.includeAutomaticOptionalChainCompletions !== false; - if (canCorrectToQuestionDot || isRightOfQuestionDot) { - type = type.getNonNullableType(); - if (canCorrectToQuestionDot) { - insertQuestionDot = true; + if (!isTypeLocation) { + let insertQuestionDot = false; + if (type.isNullableType()) { + const canCorrectToQuestionDot = isRightOfDot && !isRightOfQuestionDot && preferences.includeAutomaticOptionalChainCompletions !== false; + if (canCorrectToQuestionDot || isRightOfQuestionDot) { + type = type.getNonNullableType(); + if (canCorrectToQuestionDot) { + insertQuestionDot = true; + } } } + addTypeProperties(type, !!(node.flags & 65536 /* AwaitContext */), insertQuestionDot); + } else { + addTypeProperties( + type.getNonNullableType(), + /*insertAwait*/ + false, + /*insertQuestionDot*/ + false + ); } - addTypeProperties(type, !!(node.flags & 32768 /* AwaitContext */), insertQuestionDot); } } function addTypeProperties(type, insertAwait, insertQuestionDot) { @@ -156286,7 +158530,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (isRightOfQuestionDot && some(type.getCallSignatures())) { isNewIdentifierLocation = true; } - const propertyAccess = node.kind === 204 /* ImportType */ ? node : node.parent; + const propertyAccess = node.kind === 205 /* ImportType */ ? node : node.parent; if (inCheckedFile) { for (const symbol of type.getApparentProperties()) { if (typeChecker.isValidPropertyAccessForCompletions(propertyAccess, type, symbol)) { @@ -156324,7 +158568,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const leftMostName = getLeftMostName(computedPropertyName.expression); const nameSymbol = leftMostName && typeChecker.getSymbolAtLocation(leftMostName); const firstAccessibleSymbol = nameSymbol && getFirstSymbolInChain(nameSymbol, contextToken, typeChecker); - if (firstAccessibleSymbol && addToSeen(seenPropertySymbols, getSymbolId(firstAccessibleSymbol))) { + const firstAccessibleSymbolId = firstAccessibleSymbol && getSymbolId(firstAccessibleSymbol); + if (firstAccessibleSymbolId && addToSeen(seenPropertySymbols, firstAccessibleSymbolId)) { const index = symbols.length; symbols.push(firstAccessibleSymbol); const moduleSymbol = firstAccessibleSymbol.parent; @@ -156354,6 +158599,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } } else if (preferences.includeCompletionsWithInsertText) { + if (firstAccessibleSymbolId && seenPropertySymbols.has(firstAccessibleSymbolId)) { + return; + } addSymbolOriginInfo(symbol); addSymbolSortInfo(symbol); symbols.push(symbol); @@ -156442,7 +158690,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } } - if (preferences.includeCompletionsWithInsertText && scopeNode.kind !== 311 /* SourceFile */) { + if (preferences.includeCompletionsWithInsertText && scopeNode.kind !== 312 /* SourceFile */) { const thisType = typeChecker.tryGetThisTypeAt( scopeNode, /*includeGlobalThis*/ @@ -156477,10 +158725,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function isSnippetScope(scopeNode) { switch (scopeNode.kind) { - case 311 /* SourceFile */: - case 227 /* TemplateExpression */: - case 293 /* JsxExpression */: - case 240 /* Block */: + case 312 /* SourceFile */: + case 228 /* TemplateExpression */: + case 294 /* JsxExpression */: + case 241 /* Block */: return true; default: return isStatement(scopeNode); @@ -156490,24 +158738,24 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return insideJsDocTagTypeExpression || !!importStatementCompletion && isTypeOnlyImportOrExportDeclaration(location.parent) || !isContextTokenValueLocation(contextToken) && (isPossiblyTypeArgumentPosition(contextToken, sourceFile, typeChecker) || isPartOfTypeNode(location) || isContextTokenTypeLocation(contextToken)); } function isContextTokenValueLocation(contextToken2) { - return contextToken2 && (contextToken2.kind === 114 /* TypeOfKeyword */ && (contextToken2.parent.kind === 185 /* TypeQuery */ || isTypeOfExpression(contextToken2.parent)) || contextToken2.kind === 131 /* AssertsKeyword */ && contextToken2.parent.kind === 181 /* TypePredicate */); + return contextToken2 && (contextToken2.kind === 114 /* TypeOfKeyword */ && (contextToken2.parent.kind === 186 /* TypeQuery */ || isTypeOfExpression(contextToken2.parent)) || contextToken2.kind === 131 /* AssertsKeyword */ && contextToken2.parent.kind === 182 /* TypePredicate */); } function isContextTokenTypeLocation(contextToken2) { if (contextToken2) { const parentKind = contextToken2.parent.kind; switch (contextToken2.kind) { case 59 /* ColonToken */: - return parentKind === 171 /* PropertyDeclaration */ || parentKind === 170 /* PropertySignature */ || parentKind === 168 /* Parameter */ || parentKind === 259 /* VariableDeclaration */ || isFunctionLikeKind(parentKind); + return parentKind === 172 /* PropertyDeclaration */ || parentKind === 171 /* PropertySignature */ || parentKind === 169 /* Parameter */ || parentKind === 260 /* VariableDeclaration */ || isFunctionLikeKind(parentKind); case 64 /* EqualsToken */: - return parentKind === 264 /* TypeAliasDeclaration */; + return parentKind === 265 /* TypeAliasDeclaration */; case 130 /* AsKeyword */: - return parentKind === 233 /* AsExpression */; + return parentKind === 234 /* AsExpression */; case 30 /* LessThanToken */: - return parentKind === 182 /* TypeReference */ || parentKind === 215 /* TypeAssertionExpression */; + return parentKind === 183 /* TypeReference */ || parentKind === 216 /* TypeAssertionExpression */; case 96 /* ExtendsKeyword */: - return parentKind === 167 /* TypeParameter */; + return parentKind === 168 /* TypeParameter */; case 152 /* SatisfiesKeyword */: - return parentKind === 237 /* SatisfiesExpression */; + return parentKind === 238 /* SatisfiesExpression */; } } return false; @@ -156685,14 +158933,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return true; } if (contextToken2.kind === 32 /* GreaterThanToken */ && contextToken2.parent) { - if (location === contextToken2.parent && (location.kind === 285 /* JsxOpeningElement */ || location.kind === 284 /* JsxSelfClosingElement */)) { + if (location === contextToken2.parent && (location.kind === 286 /* JsxOpeningElement */ || location.kind === 285 /* JsxSelfClosingElement */)) { return false; } - if (contextToken2.parent.kind === 285 /* JsxOpeningElement */) { - return location.parent.kind !== 285 /* JsxOpeningElement */; + if (contextToken2.parent.kind === 286 /* JsxOpeningElement */) { + return location.parent.kind !== 286 /* JsxOpeningElement */; } - if (contextToken2.parent.kind === 286 /* JsxClosingElement */ || contextToken2.parent.kind === 284 /* JsxSelfClosingElement */) { - return !!contextToken2.parent.parent && contextToken2.parent.parent.kind === 283 /* JsxElement */; + if (contextToken2.parent.kind === 287 /* JsxClosingElement */ || contextToken2.parent.kind === 285 /* JsxSelfClosingElement */) { + return !!contextToken2.parent.parent && contextToken2.parent.parent.kind === 284 /* JsxElement */; } } return false; @@ -156703,29 +158951,29 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const tokenKind = keywordForNode(contextToken); switch (tokenKind) { case 28 /* CommaToken */: - return containingNodeKind === 212 /* CallExpression */ || containingNodeKind === 175 /* Constructor */ || containingNodeKind === 213 /* NewExpression */ || containingNodeKind === 208 /* ArrayLiteralExpression */ || containingNodeKind === 225 /* BinaryExpression */ || containingNodeKind === 183 /* FunctionType */ || containingNodeKind === 209 /* ObjectLiteralExpression */; + return containingNodeKind === 213 /* CallExpression */ || containingNodeKind === 176 /* Constructor */ || containingNodeKind === 214 /* NewExpression */ || containingNodeKind === 209 /* ArrayLiteralExpression */ || containingNodeKind === 226 /* BinaryExpression */ || containingNodeKind === 184 /* FunctionType */ || containingNodeKind === 210 /* ObjectLiteralExpression */; case 21 /* OpenParenToken */: - return containingNodeKind === 212 /* CallExpression */ || containingNodeKind === 175 /* Constructor */ || containingNodeKind === 213 /* NewExpression */ || containingNodeKind === 216 /* ParenthesizedExpression */ || containingNodeKind === 195 /* ParenthesizedType */; + return containingNodeKind === 213 /* CallExpression */ || containingNodeKind === 176 /* Constructor */ || containingNodeKind === 214 /* NewExpression */ || containingNodeKind === 217 /* ParenthesizedExpression */ || containingNodeKind === 196 /* ParenthesizedType */; case 23 /* OpenBracketToken */: - return containingNodeKind === 208 /* ArrayLiteralExpression */ || containingNodeKind === 180 /* IndexSignature */ || containingNodeKind === 166 /* ComputedPropertyName */; + return containingNodeKind === 209 /* ArrayLiteralExpression */ || containingNodeKind === 181 /* IndexSignature */ || containingNodeKind === 167 /* ComputedPropertyName */; case 144 /* ModuleKeyword */: case 145 /* NamespaceKeyword */: case 102 /* ImportKeyword */: return true; case 25 /* DotToken */: - return containingNodeKind === 266 /* ModuleDeclaration */; + return containingNodeKind === 267 /* ModuleDeclaration */; case 19 /* OpenBraceToken */: - return containingNodeKind === 262 /* ClassDeclaration */ || containingNodeKind === 209 /* ObjectLiteralExpression */; + return containingNodeKind === 263 /* ClassDeclaration */ || containingNodeKind === 210 /* ObjectLiteralExpression */; case 64 /* EqualsToken */: - return containingNodeKind === 259 /* VariableDeclaration */ || containingNodeKind === 225 /* BinaryExpression */; + return containingNodeKind === 260 /* VariableDeclaration */ || containingNodeKind === 226 /* BinaryExpression */; case 16 /* TemplateHead */: - return containingNodeKind === 227 /* TemplateExpression */; + return containingNodeKind === 228 /* TemplateExpression */; case 17 /* TemplateMiddle */: - return containingNodeKind === 238 /* TemplateSpan */; + return containingNodeKind === 239 /* TemplateSpan */; case 134 /* AsyncKeyword */: - return containingNodeKind === 173 /* MethodDeclaration */ || containingNodeKind === 303 /* ShorthandPropertyAssignment */; + return containingNodeKind === 174 /* MethodDeclaration */ || containingNodeKind === 304 /* ShorthandPropertyAssignment */; case 42 /* AsteriskToken */: - return containingNodeKind === 173 /* MethodDeclaration */; + return containingNodeKind === 174 /* MethodDeclaration */; } if (isClassMemberCompletionKeyword(tokenKind)) { return true; @@ -156757,16 +159005,16 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function tryGetObjectLikeCompletionSymbols() { const symbolsStartIndex = symbols.length; - const objectLikeContainer = tryGetObjectLikeCompletionContainer(contextToken); + const objectLikeContainer = tryGetObjectLikeCompletionContainer(contextToken, position, sourceFile); if (!objectLikeContainer) return 0 /* Continue */; completionKind = 0 /* ObjectPropertyDeclaration */; let typeMembers; let existingMembers; - if (objectLikeContainer.kind === 209 /* ObjectLiteralExpression */) { + if (objectLikeContainer.kind === 210 /* ObjectLiteralExpression */) { const instantiatedType = tryGetObjectLiteralContextualType(objectLikeContainer, typeChecker); if (instantiatedType === void 0) { - if (objectLikeContainer.flags & 33554432 /* InWithStatement */) { + if (objectLikeContainer.flags & 67108864 /* InWithStatement */) { return 2 /* Fail */; } isNonContextualObjectLiteral = true; @@ -156785,16 +159033,16 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } } else { - Debug.assert(objectLikeContainer.kind === 205 /* ObjectBindingPattern */); + Debug.assert(objectLikeContainer.kind === 206 /* ObjectBindingPattern */); isNewIdentifierLocation = false; const rootDeclaration = getRootDeclaration(objectLikeContainer.parent); if (!isVariableLike(rootDeclaration)) return Debug.fail("Root declaration is not variable-like."); - let canGetType = hasInitializer(rootDeclaration) || !!getEffectiveTypeAnnotationNode(rootDeclaration) || rootDeclaration.parent.parent.kind === 249 /* ForOfStatement */; - if (!canGetType && rootDeclaration.kind === 168 /* Parameter */) { + let canGetType = hasInitializer(rootDeclaration) || !!getEffectiveTypeAnnotationNode(rootDeclaration) || rootDeclaration.parent.parent.kind === 250 /* ForOfStatement */; + if (!canGetType && rootDeclaration.kind === 169 /* Parameter */) { if (isExpression(rootDeclaration.parent)) { canGetType = !!typeChecker.getContextualType(rootDeclaration.parent); - } else if (rootDeclaration.parent.kind === 173 /* MethodDeclaration */ || rootDeclaration.parent.kind === 177 /* SetAccessor */) { + } else if (rootDeclaration.parent.kind === 174 /* MethodDeclaration */ || rootDeclaration.parent.kind === 178 /* SetAccessor */) { canGetType = isExpression(rootDeclaration.parent.parent) && !!typeChecker.getContextualType(rootDeclaration.parent.parent); } } @@ -156820,7 +159068,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const filteredMembers = filterObjectMembersList(typeMembers, Debug.checkDefined(existingMembers)); symbols = concatenate(symbols, filteredMembers); setSortTextToOptionalMember(); - if (objectLikeContainer.kind === 209 /* ObjectLiteralExpression */ && preferences.includeCompletionsWithObjectLiteralMethodSnippets && preferences.includeCompletionsWithInsertText) { + if (objectLikeContainer.kind === 210 /* ObjectLiteralExpression */ && preferences.includeCompletionsWithObjectLiteralMethodSnippets && preferences.includeCompletionsWithInsertText) { transformObjectLiteralMembersSortText(symbolsStartIndex); collectObjectLiteralMethodSymbols(filteredMembers, objectLikeContainer); } @@ -156836,10 +159084,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (!isTypeKeywordTokenOrIdentifier(contextToken)) { keywordFilters = 8 /* TypeKeyword */; } - const { moduleSpecifier } = namedImportsOrExports.kind === 274 /* NamedImports */ ? namedImportsOrExports.parent.parent : namedImportsOrExports.parent; + const { moduleSpecifier } = namedImportsOrExports.kind === 275 /* NamedImports */ ? namedImportsOrExports.parent.parent : namedImportsOrExports.parent; if (!moduleSpecifier) { isNewIdentifierLocation = true; - return namedImportsOrExports.kind === 274 /* NamedImports */ ? 2 /* Fail */ : 0 /* Continue */; + return namedImportsOrExports.kind === 275 /* NamedImports */ ? 2 /* Fail */ : 0 /* Continue */; } const moduleSpecifierSymbol = typeChecker.getSymbolAtLocation(moduleSpecifier); if (!moduleSpecifierSymbol) { @@ -156964,11 +159212,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} case 31 /* LessThanSlashToken */: case 44 /* SlashToken */: case 80 /* Identifier */: - case 210 /* PropertyAccessExpression */: - case 291 /* JsxAttributes */: - case 290 /* JsxAttribute */: - case 292 /* JsxSpreadAttribute */: - if (parent2 && (parent2.kind === 284 /* JsxSelfClosingElement */ || parent2.kind === 285 /* JsxOpeningElement */)) { + case 211 /* PropertyAccessExpression */: + case 292 /* JsxAttributes */: + case 291 /* JsxAttribute */: + case 293 /* JsxSpreadAttribute */: + if (parent2 && (parent2.kind === 285 /* JsxSelfClosingElement */ || parent2.kind === 286 /* JsxOpeningElement */)) { if (contextToken2.kind === 32 /* GreaterThanToken */) { const precedingToken = findPrecedingToken( contextToken2.pos, @@ -156980,20 +159228,20 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} break; } return parent2; - } else if (parent2.kind === 290 /* JsxAttribute */) { + } else if (parent2.kind === 291 /* JsxAttribute */) { return parent2.parent.parent; } break; case 11 /* StringLiteral */: - if (parent2 && (parent2.kind === 290 /* JsxAttribute */ || parent2.kind === 292 /* JsxSpreadAttribute */)) { + if (parent2 && (parent2.kind === 291 /* JsxAttribute */ || parent2.kind === 293 /* JsxSpreadAttribute */)) { return parent2.parent.parent; } break; case 20 /* CloseBraceToken */: - if (parent2 && parent2.kind === 293 /* JsxExpression */ && parent2.parent && parent2.parent.kind === 290 /* JsxAttribute */) { + if (parent2 && parent2.kind === 294 /* JsxExpression */ && parent2.parent && parent2.parent.kind === 291 /* JsxAttribute */) { return parent2.parent.parent.parent; } - if (parent2 && parent2.kind === 292 /* JsxSpreadAttribute */) { + if (parent2 && parent2.kind === 293 /* JsxSpreadAttribute */) { return parent2.parent.parent; } break; @@ -157006,44 +159254,44 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const containingNodeKind = parent2.kind; switch (contextToken2.kind) { case 28 /* CommaToken */: - return containingNodeKind === 259 /* VariableDeclaration */ || isVariableDeclarationListButNotTypeArgument(contextToken2) || containingNodeKind === 242 /* VariableStatement */ || containingNodeKind === 265 /* EnumDeclaration */ || // enum a { foo, | - isFunctionLikeButNotConstructor(containingNodeKind) || containingNodeKind === 263 /* InterfaceDeclaration */ || // interface A= contextToken2.pos; case 25 /* DotToken */: - return containingNodeKind === 206 /* ArrayBindingPattern */; + return containingNodeKind === 207 /* ArrayBindingPattern */; case 59 /* ColonToken */: - return containingNodeKind === 207 /* BindingElement */; + return containingNodeKind === 208 /* BindingElement */; case 23 /* OpenBracketToken */: - return containingNodeKind === 206 /* ArrayBindingPattern */; + return containingNodeKind === 207 /* ArrayBindingPattern */; case 21 /* OpenParenToken */: - return containingNodeKind === 298 /* CatchClause */ || isFunctionLikeButNotConstructor(containingNodeKind); + return containingNodeKind === 299 /* CatchClause */ || isFunctionLikeButNotConstructor(containingNodeKind); case 19 /* OpenBraceToken */: - return containingNodeKind === 265 /* EnumDeclaration */; + return containingNodeKind === 266 /* EnumDeclaration */; case 30 /* LessThanToken */: - return containingNodeKind === 262 /* ClassDeclaration */ || // class A< | - containingNodeKind === 230 /* ClassExpression */ || // var C = class D< | - containingNodeKind === 263 /* InterfaceDeclaration */ || // interface A< | - containingNodeKind === 264 /* TypeAliasDeclaration */ || // type List< | + return containingNodeKind === 263 /* ClassDeclaration */ || // class A< | + containingNodeKind === 231 /* ClassExpression */ || // var C = class D< | + containingNodeKind === 264 /* InterfaceDeclaration */ || // interface A< | + containingNodeKind === 265 /* TypeAliasDeclaration */ || // type List< | isFunctionLikeKind(containingNodeKind); case 126 /* StaticKeyword */: - return containingNodeKind === 171 /* PropertyDeclaration */ && !isClassLike(parent2.parent); + return containingNodeKind === 172 /* PropertyDeclaration */ && !isClassLike(parent2.parent); case 26 /* DotDotDotToken */: - return containingNodeKind === 168 /* Parameter */ || !!parent2.parent && parent2.parent.kind === 206 /* ArrayBindingPattern */; + return containingNodeKind === 169 /* Parameter */ || !!parent2.parent && parent2.parent.kind === 207 /* ArrayBindingPattern */; case 125 /* PublicKeyword */: case 123 /* PrivateKeyword */: case 124 /* ProtectedKeyword */: - return containingNodeKind === 168 /* Parameter */ && !isConstructorDeclaration(parent2.parent); + return containingNodeKind === 169 /* Parameter */ && !isConstructorDeclaration(parent2.parent); case 130 /* AsKeyword */: - return containingNodeKind === 275 /* ImportSpecifier */ || containingNodeKind === 280 /* ExportSpecifier */ || containingNodeKind === 273 /* NamespaceImport */; + return containingNodeKind === 276 /* ImportSpecifier */ || containingNodeKind === 281 /* ExportSpecifier */ || containingNodeKind === 274 /* NamespaceImport */; case 139 /* GetKeyword */: case 153 /* SetKeyword */: return !isFromObjectTypeDeclaration(contextToken2); case 80 /* Identifier */: - if (containingNodeKind === 275 /* ImportSpecifier */ && contextToken2 === parent2.name && contextToken2.text === "type") { + if (containingNodeKind === 276 /* ImportSpecifier */ && contextToken2 === parent2.name && contextToken2.text === "type") { return false; } break; @@ -157058,7 +159306,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} case 140 /* InferKeyword */: return true; case 156 /* TypeKeyword */: - return containingNodeKind !== 275 /* ImportSpecifier */; + return containingNodeKind !== 276 /* ImportSpecifier */; case 42 /* AsteriskToken */: return isFunctionLike(contextToken2.parent) && !isMethodDeclaration(contextToken2.parent); } @@ -157092,7 +159340,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (ancestorClassLike && contextToken2 === previousToken && isPreviousPropertyDeclarationTerminated(contextToken2, position)) { return false; } - const ancestorPropertyDeclaraion = getAncestor(contextToken2.parent, 171 /* PropertyDeclaration */); + const ancestorPropertyDeclaraion = getAncestor(contextToken2.parent, 172 /* PropertyDeclaration */); if (ancestorPropertyDeclaraion && contextToken2 !== previousToken && isClassLike(previousToken.parent.parent) && position <= previousToken.end) { if (isPreviousPropertyDeclarationTerminated(contextToken2, previousToken.end)) { return false; @@ -157106,7 +159354,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return contextToken2.kind !== 64 /* EqualsToken */ && (contextToken2.kind === 27 /* SemicolonToken */ || !positionsAreOnSameLine(contextToken2.end, position2, sourceFile)); } function isFunctionLikeButNotConstructor(kind) { - return isFunctionLikeKind(kind) && kind !== 175 /* Constructor */; + return isFunctionLikeKind(kind) && kind !== 176 /* Constructor */; } function isDotOfNumericLiteral(contextToken2) { if (contextToken2.kind === 9 /* NumericLiteral */) { @@ -157116,7 +159364,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return false; } function isVariableDeclarationListButNotTypeArgument(node2) { - return node2.parent.kind === 260 /* VariableDeclarationList */ && !isPossiblyTypeArgumentPosition(node2, sourceFile, typeChecker); + return node2.parent.kind === 261 /* VariableDeclarationList */ && !isPossiblyTypeArgumentPosition(node2, sourceFile, typeChecker); } function filterObjectMembersList(contextualMemberSymbols, existingMembers) { if (existingMembers.length === 0) { @@ -157125,7 +159373,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const membersDeclaredBySpreadAssignment = /* @__PURE__ */ new Set(); const existingMemberNames = /* @__PURE__ */ new Set(); for (const m of existingMembers) { - if (m.kind !== 302 /* PropertyAssignment */ && m.kind !== 303 /* ShorthandPropertyAssignment */ && m.kind !== 207 /* BindingElement */ && m.kind !== 173 /* MethodDeclaration */ && m.kind !== 176 /* GetAccessor */ && m.kind !== 177 /* SetAccessor */ && m.kind !== 304 /* SpreadAssignment */) { + if (m.kind !== 303 /* PropertyAssignment */ && m.kind !== 304 /* ShorthandPropertyAssignment */ && m.kind !== 208 /* BindingElement */ && m.kind !== 174 /* MethodDeclaration */ && m.kind !== 177 /* GetAccessor */ && m.kind !== 178 /* SetAccessor */ && m.kind !== 305 /* SpreadAssignment */) { continue; } if (isCurrentlyEditingNode(m)) { @@ -157203,7 +159451,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function filterClassMembersList(baseSymbols, existingMembers, currentClassElementModifierFlags) { const existingMemberNames = /* @__PURE__ */ new Set(); for (const m of existingMembers) { - if (m.kind !== 171 /* PropertyDeclaration */ && m.kind !== 173 /* MethodDeclaration */ && m.kind !== 176 /* GetAccessor */ && m.kind !== 177 /* SetAccessor */) { + if (m.kind !== 172 /* PropertyDeclaration */ && m.kind !== 174 /* MethodDeclaration */ && m.kind !== 177 /* GetAccessor */ && m.kind !== 178 /* SetAccessor */) { continue; } if (isCurrentlyEditingNode(m)) { @@ -157229,7 +159477,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (isCurrentlyEditingNode(attr)) { continue; } - if (attr.kind === 290 /* JsxAttribute */) { + if (attr.kind === 291 /* JsxAttribute */) { seenNames.add(getEscapedTextOfJsxAttributeName(attr.name)); } else if (isJsxSpreadAttribute(attr)) { setMembersDeclaredBySpreadAssignment(attr, membersDeclaredBySpreadAssignment); @@ -157243,7 +159491,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return node2.getStart(sourceFile) <= position && position <= node2.getEnd(); } } - function tryGetObjectLikeCompletionContainer(contextToken) { + function tryGetObjectLikeCompletionContainer(contextToken, position, sourceFile) { + var _a; if (contextToken) { const { parent: parent2 } = contextToken; switch (contextToken.kind) { @@ -157258,7 +159507,29 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} case 134 /* AsyncKeyword */: return tryCast(parent2.parent, isObjectLiteralExpression); case 80 /* Identifier */: - return contextToken.text === "async" && isShorthandPropertyAssignment(contextToken.parent) ? contextToken.parent.parent : void 0; + if (contextToken.text === "async" && isShorthandPropertyAssignment(contextToken.parent)) { + return contextToken.parent.parent; + } else { + if (isObjectLiteralExpression(contextToken.parent.parent) && (isSpreadAssignment(contextToken.parent) || isShorthandPropertyAssignment(contextToken.parent) && getLineAndCharacterOfPosition(sourceFile, contextToken.getEnd()).line !== getLineAndCharacterOfPosition(sourceFile, position).line)) { + return contextToken.parent.parent; + } + const ancestorNode2 = findAncestor(parent2, isPropertyAssignment); + if ((ancestorNode2 == null ? void 0 : ancestorNode2.getLastToken(sourceFile)) === contextToken && isObjectLiteralExpression(ancestorNode2.parent)) { + return ancestorNode2.parent; + } + } + break; + default: + if (((_a = parent2.parent) == null ? void 0 : _a.parent) && (isMethodDeclaration(parent2.parent) || isGetAccessorDeclaration(parent2.parent) || isSetAccessorDeclaration(parent2.parent)) && isObjectLiteralExpression(parent2.parent.parent)) { + return parent2.parent.parent; + } + if (isSpreadAssignment(parent2) && isObjectLiteralExpression(parent2.parent)) { + return parent2.parent; + } + const ancestorNode = findAncestor(parent2, isPropertyAssignment); + if (contextToken.kind !== 59 /* ColonToken */ && (ancestorNode == null ? void 0 : ancestorNode.getLastToken(sourceFile)) === contextToken && isObjectLiteralExpression(ancestorNode.parent)) { + return ancestorNode.parent; + } } } return void 0; @@ -157353,11 +159624,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} switch (kind) { case 128 /* AbstractKeyword */: case 133 /* AnyKeyword */: - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: case 136 /* BooleanKeyword */: case 138 /* DeclareKeyword */: case 94 /* EnumKeyword */: - case 161 /* GlobalKeyword */: + case 162 /* GlobalKeyword */: case 119 /* ImplementsKeyword */: case 140 /* InferKeyword */: case 120 /* InterfaceKeyword */: @@ -157368,7 +159639,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} case 146 /* NeverKeyword */: case 150 /* NumberKeyword */: case 151 /* ObjectKeyword */: - case 163 /* OverrideKeyword */: + case 164 /* OverrideKeyword */: case 123 /* PrivateKeyword */: case 124 /* ProtectedKeyword */: case 125 /* PublicKeyword */: @@ -157395,7 +159666,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} case 153 /* SetKeyword */: case 134 /* AsyncKeyword */: case 138 /* DeclareKeyword */: - case 163 /* OverrideKeyword */: + case 164 /* OverrideKeyword */: return true; default: return isClassMemberModifier(kind); @@ -157452,7 +159723,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function tryGetObjectTypeDeclarationCompletionContainer(sourceFile, contextToken, location, position) { switch (location.kind) { - case 357 /* SyntaxList */: + case 358 /* SyntaxList */: return tryCast(location.parent, isObjectTypeDeclaration); case 1 /* EndOfFileToken */: const cls = tryCast(lastOrUndefined(cast(location.parent, isSourceFile).statements), isObjectTypeDeclaration); @@ -157460,6 +159731,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return cls; } break; + case 81 /* PrivateIdentifier */: + if (tryCast(location.parent, isPropertyDeclaration)) { + return findAncestor(location, isClassLike); + } + break; case 80 /* Identifier */: { const originalKeywordKind = identifierToKeywordKind(location); if (originalKeywordKind) { @@ -157511,7 +159787,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} case 27 /* SemicolonToken */: case 28 /* CommaToken */: case 80 /* Identifier */: - if (parent2.kind === 170 /* PropertySignature */ && isTypeLiteralNode(parent2.parent)) { + if (parent2.kind === 171 /* PropertySignature */ && isTypeLiteralNode(parent2.parent)) { return parent2.parent; } break; @@ -157528,11 +159804,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (!t) return void 0; switch (node.kind) { - case 170 /* PropertySignature */: + case 171 /* PropertySignature */: return checker.getTypeOfPropertyOfContextualType(t, node.symbol.escapedName); - case 192 /* IntersectionType */: - case 186 /* TypeLiteral */: - case 191 /* UnionType */: + case 193 /* IntersectionType */: + case 187 /* TypeLiteral */: + case 192 /* UnionType */: return t; } } @@ -157555,7 +159831,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} case "/": return !!contextToken && (isStringLiteralLike(contextToken) ? !!tryGetImportFromModuleSpecifier(contextToken) : contextToken.kind === 44 /* SlashToken */ && isJsxClosingElement(contextToken.parent)); case " ": - return !!contextToken && isImportKeyword(contextToken) && contextToken.parent.kind === 311 /* SourceFile */; + return !!contextToken && isImportKeyword(contextToken) && contextToken.parent.kind === 312 /* SourceFile */; default: return Debug.assertNever(triggerCharacter); } @@ -157616,7 +159892,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } return void 0; } - function getImportStatementCompletionInfo(contextToken) { + function getImportStatementCompletionInfo(contextToken, sourceFile) { var _a, _b, _c; let keywordCompletion; let isKeywordOnlyCompletion = false; @@ -157632,6 +159908,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function getCandidate() { const parent2 = contextToken.parent; if (isImportEqualsDeclaration(parent2)) { + const lastToken = parent2.getLastToken(sourceFile); + if (isIdentifier(contextToken) && lastToken !== contextToken) { + keywordCompletion = 161 /* FromKeyword */; + isKeywordOnlyCompletion = true; + return void 0; + } keywordCompletion = contextToken.kind === 156 /* TypeKeyword */ ? void 0 : 156 /* TypeKeyword */; return isModuleSpecifierMissingOrEmpty(parent2.moduleReference) ? parent2 : void 0; } @@ -157645,7 +159927,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (canCompleteFromNamedBindings(parent2)) { if (contextToken.kind === 20 /* CloseBraceToken */ || contextToken.kind === 80 /* Identifier */) { isKeywordOnlyCompletion = true; - keywordCompletion = 160 /* FromKeyword */; + keywordCompletion = 161 /* FromKeyword */; } else { return parent2.parent.parent; } @@ -157672,8 +159954,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (rangeIsOnSingleLine(top, sourceFile)) { return createTextSpanFromNode(top, sourceFile); } - Debug.assert(top.kind !== 102 /* ImportKeyword */ && top.kind !== 275 /* ImportSpecifier */); - const potentialSplitPoint = top.kind === 271 /* ImportDeclaration */ ? getPotentiallyInvalidImportSpecifier((_a = top.importClause) == null ? void 0 : _a.namedBindings) ?? top.moduleSpecifier : top.moduleReference; + Debug.assert(top.kind !== 102 /* ImportKeyword */ && top.kind !== 276 /* ImportSpecifier */); + const potentialSplitPoint = top.kind === 272 /* ImportDeclaration */ ? getPotentiallyInvalidImportSpecifier((_a = top.importClause) == null ? void 0 : _a.namedBindings) ?? top.moduleSpecifier : top.moduleReference; const withoutModuleSpecifier = { pos: top.getFirstToken().getStart(), end: potentialSplitPoint.pos @@ -157801,6 +160083,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} CompletionSource2["TypeOnlyAlias"] = "TypeOnlyAlias/"; CompletionSource2["ObjectLiteralMethodSnippet"] = "ObjectLiteralMethodSnippet/"; CompletionSource2["SwitchCases"] = "SwitchCases/"; + CompletionSource2["ObjectLiteralMemberWithComma"] = "ObjectLiteralMemberWithComma/"; return CompletionSource2; })(CompletionSource || {}); SymbolOriginInfoKind = /* @__PURE__ */ ((SymbolOriginInfoKind2) => { @@ -157830,7 +160113,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} _keywordCompletions = []; allKeywordsCompletions = memoize(() => { const res = []; - for (let i = 83 /* FirstKeyword */; i <= 164 /* LastKeyword */; i++) { + for (let i = 83 /* FirstKeyword */; i <= 165 /* LastKeyword */; i++) { res.push({ name: tokenToString(i), kind: "keyword" /* keyword */, @@ -158000,37 +160283,37 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function getStringLiteralCompletionEntries(sourceFile, node, position, typeChecker, compilerOptions, host, preferences) { const parent2 = walkUpParentheses(node.parent); switch (parent2.kind) { - case 200 /* LiteralType */: { + case 201 /* LiteralType */: { const grandParent = walkUpParentheses(parent2.parent); - if (grandParent.kind === 204 /* ImportType */) { + if (grandParent.kind === 205 /* ImportType */) { return { kind: 0 /* Paths */, paths: getStringLiteralCompletionsFromModuleNames(sourceFile, node, compilerOptions, host, typeChecker, preferences) }; } return fromUnionableLiteralType(grandParent); } - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: if (isObjectLiteralExpression(parent2.parent) && parent2.name === node) { return stringLiteralCompletionsForObjectLiteral(typeChecker, parent2.parent); } return fromContextualType() || fromContextualType(0 /* None */); - case 211 /* ElementAccessExpression */: { + case 212 /* ElementAccessExpression */: { const { expression, argumentExpression } = parent2; if (node === skipParentheses(argumentExpression)) { return stringLiteralCompletionsFromProperties(typeChecker.getTypeAtLocation(expression)); } return void 0; } - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 290 /* JsxAttribute */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 291 /* JsxAttribute */: if (!isRequireCallArgument(node) && !isImportCall(parent2)) { - const argumentInfo = ts_SignatureHelp_exports.getArgumentInfoForCompletions(parent2.kind === 290 /* JsxAttribute */ ? parent2.parent : node, position, sourceFile); - return argumentInfo && getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker) || fromContextualType(0 /* None */); + const argumentInfo = ts_SignatureHelp_exports.getArgumentInfoForCompletions(parent2.kind === 291 /* JsxAttribute */ ? parent2.parent : node, position, sourceFile); + return argumentInfo && (getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker) || getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker, 0 /* Normal */)) || fromContextualType(0 /* None */); } - case 271 /* ImportDeclaration */: - case 277 /* ExportDeclaration */: - case 282 /* ExternalModuleReference */: + case 272 /* ImportDeclaration */: + case 278 /* ExportDeclaration */: + case 283 /* ExternalModuleReference */: return { kind: 0 /* Paths */, paths: getStringLiteralCompletionsFromModuleNames(sourceFile, node, compilerOptions, host, typeChecker, preferences) }; - case 295 /* CaseClause */: + case 296 /* CaseClause */: const tracker = newCaseClauseTracker(typeChecker, parent2.parent.clauses); const contextualTypes = fromContextualType(); if (!contextualTypes) { @@ -158043,21 +160326,21 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function fromUnionableLiteralType(grandParent) { switch (grandParent.kind) { - case 232 /* ExpressionWithTypeArguments */: - case 182 /* TypeReference */: { + case 233 /* ExpressionWithTypeArguments */: + case 183 /* TypeReference */: { const typeArgument = findAncestor(parent2, (n) => n.parent === grandParent); if (typeArgument) { return { kind: 2 /* Types */, types: getStringLiteralTypes(typeChecker.getTypeArgumentConstraint(typeArgument)), isNewIdentifier: false }; } return void 0; } - case 198 /* IndexedAccessType */: + case 199 /* IndexedAccessType */: const { indexType, objectType } = grandParent; if (!rangeContainsPosition(indexType, position)) { return void 0; } return stringLiteralCompletionsFromProperties(typeChecker.getTypeFromTypeNode(objectType)); - case 191 /* UnionType */: { + case 192 /* UnionType */: { const result = fromUnionableLiteralType(walkUpParentheses(grandParent.parent)); if (!result) { return void 0; @@ -158082,9 +160365,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function walkUpParentheses(node) { switch (node.kind) { - case 195 /* ParenthesizedType */: + case 196 /* ParenthesizedType */: return walkUpParenthesizedTypes(node); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return walkUpParenthesizedExpressions(node); default: return node; @@ -158093,12 +160376,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function getAlreadyUsedTypesInStringLiteralUnion(union, current) { return mapDefined(union.types, (type) => type !== current && isLiteralTypeNode(type) && isStringLiteral(type.literal) ? type.literal.text : void 0); } - function getStringLiteralCompletionsFromSignature(call, arg, argumentInfo, checker) { + function getStringLiteralCompletionsFromSignature(call, arg, argumentInfo, checker, checkMode = 32 /* IsForStringLiteralArgumentCompletions */) { let isNewIdentifier = false; const uniques = /* @__PURE__ */ new Map(); const candidates = []; const editingArgument = isJsxOpeningLikeElement(call) ? Debug.checkDefined(findAncestor(arg.parent, isJsxAttribute)) : arg; - checker.getResolvedSignatureForStringLiteralCompletions(call, editingArgument, candidates); + checker.getResolvedSignatureForStringLiteralCompletions(call, editingArgument, candidates, checkMode); const types = flatMap(candidates, (candidate) => { if (!signatureHasRestParameter(candidate) && argumentInfo.argumentCount > candidate.parameters.length) return; @@ -158198,7 +160481,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} extensionOptions, host, /*moduleSpecifierIsRelative*/ - false, + true, scriptPath ).values()); } @@ -158459,7 +160742,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } const keys = getOwnKeys(exports); const fragmentSubpath = components.join("/") + (components.length && hasTrailingDirectorySeparator(fragment) ? "/" : ""); - const conditions = mode === 99 /* ESNext */ ? ["node", "import", "types"] : ["node", "require", "types"]; + const conditions = getConditions(compilerOptions, mode === 99 /* ESNext */); addCompletionEntriesFromPathsOrExports( result, fragmentSubpath, @@ -158530,16 +160813,18 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const fragmentDirectory = fragmentHasPath ? hasTrailingDirectorySeparator(fragment) ? fragment : getDirectoryPath(fragment) : void 0; const expandedPrefixDirectory = fragmentHasPath ? combinePaths(normalizedPrefixDirectory, normalizedPrefixBase + fragmentDirectory) : normalizedPrefixDirectory; const normalizedSuffix = normalizePath(parsed.suffix); + const declarationExtension = normalizedSuffix && getDeclarationEmitExtensionForPath("_" + normalizedSuffix); + const matchingSuffixes = declarationExtension ? [changeExtension(normalizedSuffix, declarationExtension), normalizedSuffix] : [normalizedSuffix]; const baseDirectory = normalizePath(combinePaths(packageDirectory, expandedPrefixDirectory)); const completePrefix = fragmentHasPath ? baseDirectory : ensureTrailingDirectorySeparator(baseDirectory) + normalizedPrefixBase; - const includeGlob = normalizedSuffix ? "**/*" + normalizedSuffix : "./*"; + const includeGlobs = normalizedSuffix ? matchingSuffixes.map((suffix) => "**/*" + suffix) : ["./*"]; const matches = mapDefined(tryReadDirectory( host, baseDirectory, extensionOptions.extensionsToSearch, /*exclude*/ void 0, - [includeGlob] + includeGlobs ), (match) => { const trimmedWithPattern = trimPrefixAndSuffix(match); if (trimmedWithPattern) { @@ -158553,8 +160838,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const directories = normalizedSuffix ? emptyArray : mapDefined(tryGetDirectories(host, baseDirectory), (dir) => dir === "node_modules" ? void 0 : directoryResult(dir)); return [...matches, ...directories]; function trimPrefixAndSuffix(path) { - const inner = withoutStartAndEnd(normalizePath(path), completePrefix, normalizedSuffix); - return inner === void 0 ? void 0 : removeLeadingDirectorySeparator(inner); + return firstDefined(matchingSuffixes, (suffix) => { + const inner = withoutStartAndEnd(normalizePath(path), completePrefix, suffix); + return inner === void 0 ? void 0 : removeLeadingDirectorySeparator(inner); + }); } } function withoutStartAndEnd(s, start, end) { @@ -158778,14 +161065,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (cancellationToken) cancellationToken.throwIfCancellationRequested(); switch (direct.kind) { - case 212 /* CallExpression */: + case 213 /* CallExpression */: if (isImportCall(direct)) { handleImportCall(direct); break; } if (!isAvailableThroughGlobal) { const parent2 = direct.parent; - if (exportKind === 2 /* ExportEquals */ && parent2.kind === 259 /* VariableDeclaration */) { + if (exportKind === 2 /* ExportEquals */ && parent2.kind === 260 /* VariableDeclaration */) { const { name } = parent2; if (name.kind === 80 /* Identifier */) { directImports.push(name); @@ -158796,7 +161083,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} break; case 80 /* Identifier */: break; - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: handleNamespaceImport( direct, direct.name, @@ -158805,10 +161092,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} false ); break; - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: directImports.push(direct); const namedBindings = direct.importClause && direct.importClause.namedBindings; - if (namedBindings && namedBindings.kind === 273 /* NamespaceImport */) { + if (namedBindings && namedBindings.kind === 274 /* NamespaceImport */) { handleNamespaceImport( direct, namedBindings.name, @@ -158821,10 +161108,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} addIndirectUser(getSourceFileLikeForImportDeclaration(direct)); } break; - case 277 /* ExportDeclaration */: + case 278 /* ExportDeclaration */: if (!direct.exportClause) { handleDirectImports(getContainingModuleSymbol(direct, checker)); - } else if (direct.exportClause.kind === 279 /* NamespaceExport */) { + } else if (direct.exportClause.kind === 280 /* NamespaceExport */) { addIndirectUser( getSourceFileLikeForImportDeclaration(direct), /*addTransitiveDependencies*/ @@ -158834,7 +161121,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} directImports.push(direct); } break; - case 204 /* ImportType */: + case 205 /* ImportType */: if (!isAvailableThroughGlobal && direct.isTypeOf && !direct.qualifier && isExported2(direct)) { addIndirectUser( direct.getSourceFile(), @@ -158875,7 +161162,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} directImports.push(importDeclaration); } else if (!isAvailableThroughGlobal) { const sourceFileLike = getSourceFileLikeForImportDeclaration(importDeclaration); - Debug.assert(sourceFileLike.kind === 311 /* SourceFile */ || sourceFileLike.kind === 266 /* ModuleDeclaration */); + Debug.assert(sourceFileLike.kind === 312 /* SourceFile */ || sourceFileLike.kind === 267 /* ModuleDeclaration */); if (isReExport || findNamespaceReExports(sourceFileLike, name, checker)) { addIndirectUser( sourceFileLike, @@ -158929,7 +161216,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } return { importSearches, singleReferences }; function handleImport(decl) { - if (decl.kind === 270 /* ImportEqualsDeclaration */) { + if (decl.kind === 271 /* ImportEqualsDeclaration */) { if (isExternalModuleImportEquals(decl)) { handleNamespaceImportLike(decl.name); } @@ -158939,7 +161226,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} handleNamespaceImportLike(decl); return; } - if (decl.kind === 204 /* ImportType */) { + if (decl.kind === 205 /* ImportType */) { if (decl.qualifier) { const firstIdentifier = getFirstIdentifier(decl.qualifier); if (firstIdentifier.escapedText === symbolName(exportSymbol)) { @@ -158953,7 +161240,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (decl.moduleSpecifier.kind !== 11 /* StringLiteral */) { return; } - if (decl.kind === 277 /* ExportDeclaration */) { + if (decl.kind === 278 /* ExportDeclaration */) { if (decl.exportClause && isNamedExports(decl.exportClause)) { searchForNamedImport(decl.exportClause); } @@ -158962,10 +161249,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const { name, namedBindings } = decl.importClause || { name: void 0, namedBindings: void 0 }; if (namedBindings) { switch (namedBindings.kind) { - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: handleNamespaceImportLike(namedBindings.name); break; - case 274 /* NamedImports */: + case 275 /* NamedImports */: if (exportKind === 0 /* Named */ || exportKind === 1 /* Default */) { searchForNamedImport(namedBindings); } @@ -158999,7 +161286,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} addSearch(name, checker.getSymbolAtLocation(name)); } } else { - const localSymbol = element.kind === 280 /* ExportSpecifier */ && element.propertyName ? checker.getExportSpecifierLocalTargetSymbol(element) : checker.getSymbolAtLocation(name); + const localSymbol = element.kind === 281 /* ExportSpecifier */ && element.propertyName ? checker.getExportSpecifierLocalTargetSymbol(element) : checker.getSymbolAtLocation(name); addSearch(name, localSymbol); } } @@ -159023,7 +161310,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const checker = program.getTypeChecker(); for (const referencingFile of sourceFiles) { const searchSourceFile = searchModuleSymbol.valueDeclaration; - if ((searchSourceFile == null ? void 0 : searchSourceFile.kind) === 311 /* SourceFile */) { + if ((searchSourceFile == null ? void 0 : searchSourceFile.kind) === 312 /* SourceFile */) { for (const ref of referencingFile.referencedFiles) { if (program.getSourceFileFromReference(referencingFile, ref) === searchSourceFile) { refs.push({ kind: "reference", referencingFile, ref }); @@ -159065,7 +161352,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return map2; } function forEachPossibleImportOrExportStatement(sourceFileLike, action) { - return forEach(sourceFileLike.kind === 311 /* SourceFile */ ? sourceFileLike.statements : sourceFileLike.body.statements, (statement) => ( + return forEach(sourceFileLike.kind === 312 /* SourceFile */ ? sourceFileLike.statements : sourceFileLike.body.statements, (statement) => ( // TODO: GH#18217 action(statement) || isAmbientModuleDeclaration(statement) && forEach(statement.body && statement.body.statements, action) )); @@ -159078,15 +161365,15 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } else { forEachPossibleImportOrExportStatement(sourceFile, (statement) => { switch (statement.kind) { - case 277 /* ExportDeclaration */: - case 271 /* ImportDeclaration */: { + case 278 /* ExportDeclaration */: + case 272 /* ImportDeclaration */: { const decl = statement; if (decl.moduleSpecifier && isStringLiteral(decl.moduleSpecifier)) { action(decl, decl.moduleSpecifier); } break; } - case 270 /* ImportEqualsDeclaration */: { + case 271 /* ImportEqualsDeclaration */: { const decl = statement; if (isExternalModuleImportEquals(decl)) { action(decl, decl.moduleReference.expression); @@ -159104,7 +161391,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const { parent: parent2 } = node; const grandparent = parent2.parent; if (symbol.exportSymbol) { - if (parent2.kind === 210 /* PropertyAccessExpression */) { + if (parent2.kind === 211 /* PropertyAccessExpression */) { return ((_a = symbol.declarations) == null ? void 0 : _a.some((d) => d === parent2)) && isBinaryExpression(grandparent) ? getSpecialPropertyExport( grandparent, /*useLhsSymbol*/ @@ -159221,15 +161508,15 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function isNodeImport(node) { const { parent: parent2 } = node; switch (parent2.kind) { - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return parent2.name === node && isExternalModuleImportEquals(parent2); - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: return !parent2.propertyName; - case 272 /* ImportClause */: - case 273 /* NamespaceImport */: + case 273 /* ImportClause */: + case 274 /* NamespaceImport */: Debug.assert(parent2.name === node); return true; - case 207 /* BindingElement */: + case 208 /* BindingElement */: return isInJSFile(node) && isVariableDeclarationInitializedToBareOrAccessedRequire(parent2.parent.parent); default: return false; @@ -159260,21 +161547,21 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return checker.getMergedSymbol(getSourceFileLikeForImportDeclaration(importer).symbol); } function getSourceFileLikeForImportDeclaration(node) { - if (node.kind === 212 /* CallExpression */) { + if (node.kind === 213 /* CallExpression */) { return node.getSourceFile(); } const { parent: parent2 } = node; - if (parent2.kind === 311 /* SourceFile */) { + if (parent2.kind === 312 /* SourceFile */) { return parent2; } - Debug.assert(parent2.kind === 267 /* ModuleBlock */); + Debug.assert(parent2.kind === 268 /* ModuleBlock */); return cast(parent2.parent, isAmbientModuleDeclaration); } function isAmbientModuleDeclaration(node) { - return node.kind === 266 /* ModuleDeclaration */ && node.name.kind === 11 /* StringLiteral */; + return node.kind === 267 /* ModuleDeclaration */ && node.name.kind === 11 /* StringLiteral */; } function isExternalModuleImportEquals(eq) { - return eq.moduleReference.kind === 282 /* ExternalModuleReference */ && eq.moduleReference.expression.kind === 11 /* StringLiteral */; + return eq.moduleReference.kind === 283 /* ExternalModuleReference */ && eq.moduleReference.expression.kind === 11 /* StringLiteral */; } var ExportKind2, ImportExport; var init_importTracker = __esm({ @@ -159348,28 +161635,28 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (!node) return void 0; switch (node.kind) { - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: return !isVariableDeclarationList(node.parent) || node.parent.declarations.length !== 1 ? node : isVariableStatement(node.parent.parent) ? node.parent.parent : isForInOrOfStatement(node.parent.parent) ? getContextNode(node.parent.parent) : node.parent; - case 207 /* BindingElement */: + case 208 /* BindingElement */: return getContextNode(node.parent.parent); - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: return node.parent.parent.parent; - case 280 /* ExportSpecifier */: - case 273 /* NamespaceImport */: + case 281 /* ExportSpecifier */: + case 274 /* NamespaceImport */: return node.parent.parent; - case 272 /* ImportClause */: - case 279 /* NamespaceExport */: + case 273 /* ImportClause */: + case 280 /* NamespaceExport */: return node.parent; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return isExpressionStatement(node.parent) ? node.parent : node; - case 249 /* ForOfStatement */: - case 248 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 249 /* ForInStatement */: return { start: node.initializer, end: node.expression }; - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return isArrayLiteralOrObjectLiteralDestructuringPattern(node.parent) ? getContextNode( findAncestor( node.parent, @@ -159408,7 +161695,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const node = getTouchingPropertyName(sourceFile, position); let referenceEntries; const entries = getImplementationReferenceEntries(program, cancellationToken, sourceFiles, node, position); - if (node.parent.kind === 210 /* PropertyAccessExpression */ || node.parent.kind === 207 /* BindingElement */ || node.parent.kind === 211 /* ElementAccessExpression */ || node.kind === 108 /* SuperKeyword */) { + if (node.parent.kind === 211 /* PropertyAccessExpression */ || node.parent.kind === 208 /* BindingElement */ || node.parent.kind === 212 /* ElementAccessExpression */ || node.kind === 108 /* SuperKeyword */) { referenceEntries = entries && [...entries]; } else if (entries) { const queue = createQueue(entries); @@ -159429,11 +161716,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return map(referenceEntries, (entry) => toImplementationLocation(entry, checker)); } function getImplementationReferenceEntries(program, cancellationToken, sourceFiles, node, position) { - if (node.kind === 311 /* SourceFile */) { + if (node.kind === 312 /* SourceFile */) { return void 0; } const checker = program.getTypeChecker(); - if (node.parent.kind === 303 /* ShorthandPropertyAssignment */) { + if (node.parent.kind === 304 /* ShorthandPropertyAssignment */) { const result = []; Core.getReferenceEntriesForShorthandPropertyAssignment(node, checker, (node2) => result.push(nodeEntry(node2))); return result; @@ -159628,12 +161915,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const symbol = checker.getSymbolAtLocation(isDeclaration(node) && node.name ? node.name : node); if (symbol) { return getDefinitionKindAndDisplayParts(symbol, checker, node); - } else if (node.kind === 209 /* ObjectLiteralExpression */) { + } else if (node.kind === 210 /* ObjectLiteralExpression */) { return { kind: "interface" /* interfaceElement */, displayParts: [punctuationPart(21 /* OpenParenToken */), textPart("object literal"), punctuationPart(22 /* CloseParenToken */)] }; - } else if (node.kind === 230 /* ClassExpression */) { + } else if (node.kind === 231 /* ClassExpression */) { return { kind: "local class" /* localClassElement */, displayParts: [punctuationPart(21 /* OpenParenToken */), textPart("anonymous local class"), punctuationPart(22 /* CloseParenToken */)] @@ -159688,49 +161975,49 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return !!(source && ((_a = target.declarations) == null ? void 0 : _a.some((d) => d === source || d === commonjsSource))); } function declarationIsWriteAccess(decl) { - if (!!(decl.flags & 16777216 /* Ambient */)) + if (!!(decl.flags & 33554432 /* Ambient */)) return true; switch (decl.kind) { - case 225 /* BinaryExpression */: - case 207 /* BindingElement */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 226 /* BinaryExpression */: + case 208 /* BindingElement */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: case 90 /* DefaultKeyword */: - case 265 /* EnumDeclaration */: - case 305 /* EnumMember */: - case 280 /* ExportSpecifier */: - case 272 /* ImportClause */: - case 270 /* ImportEqualsDeclaration */: - case 275 /* ImportSpecifier */: - case 263 /* InterfaceDeclaration */: - case 344 /* JSDocCallbackTag */: - case 352 /* JSDocTypedefTag */: - case 290 /* JsxAttribute */: - case 266 /* ModuleDeclaration */: - case 269 /* NamespaceExportDeclaration */: - case 273 /* NamespaceImport */: - case 279 /* NamespaceExport */: - case 168 /* Parameter */: - case 303 /* ShorthandPropertyAssignment */: - case 264 /* TypeAliasDeclaration */: - case 167 /* TypeParameter */: + case 266 /* EnumDeclaration */: + case 306 /* EnumMember */: + case 281 /* ExportSpecifier */: + case 273 /* ImportClause */: + case 271 /* ImportEqualsDeclaration */: + case 276 /* ImportSpecifier */: + case 264 /* InterfaceDeclaration */: + case 345 /* JSDocCallbackTag */: + case 353 /* JSDocTypedefTag */: + case 291 /* JsxAttribute */: + case 267 /* ModuleDeclaration */: + case 270 /* NamespaceExportDeclaration */: + case 274 /* NamespaceImport */: + case 280 /* NamespaceExport */: + case 169 /* Parameter */: + case 304 /* ShorthandPropertyAssignment */: + case 265 /* TypeAliasDeclaration */: + case 168 /* TypeParameter */: return true; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return !isArrayLiteralOrObjectLiteralDestructuringPattern(decl.parent); - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 175 /* Constructor */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return !!decl.body; - case 259 /* VariableDeclaration */: - case 171 /* PropertyDeclaration */: + case 260 /* VariableDeclaration */: + case 172 /* PropertyDeclaration */: return !!decl.initializer || isCatchClause(decl.parent); - case 172 /* MethodSignature */: - case 170 /* PropertySignature */: - case 354 /* JSDocPropertyTag */: - case 347 /* JSDocParameterTag */: + case 173 /* MethodSignature */: + case 171 /* PropertySignature */: + case 355 /* JSDocPropertyTag */: + case 348 /* JSDocParameterTag */: return false; default: return Debug.failBadSyntaxKind(decl); @@ -159983,9 +162270,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (symbol.declarations) { for (const decl of symbol.declarations) { switch (decl.kind) { - case 311 /* SourceFile */: + case 312 /* SourceFile */: break; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: if (sourceFilesSet.has(decl.getSourceFile().fileName)) { references.push(nodeEntry(decl.name)); } @@ -160109,7 +162396,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function getSpecialSearchKind(node) { switch (node.kind) { - case 175 /* Constructor */: + case 176 /* Constructor */: case 137 /* ConstructorKeyword */: return 1 /* Constructor */; case 80 /* Identifier */: @@ -160318,7 +162605,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function getSymbolScope(symbol) { const { declarations, flags, parent: parent2, valueDeclaration } = symbol; - if (valueDeclaration && (valueDeclaration.kind === 217 /* FunctionExpression */ || valueDeclaration.kind === 230 /* ClassExpression */)) { + if (valueDeclaration && (valueDeclaration.kind === 218 /* FunctionExpression */ || valueDeclaration.kind === 231 /* ClassExpression */)) { return valueDeclaration; } if (!declarations) { @@ -160327,7 +162614,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (flags & (4 /* Property */ | 8192 /* Method */)) { const privateDeclaration = find(declarations, (d) => hasEffectiveModifier(d, 8 /* Private */) || isPrivateIdentifierClassElementDeclaration(d)); if (privateDeclaration) { - return getAncestor(privateDeclaration, 262 /* ClassDeclaration */); + return getAncestor(privateDeclaration, 263 /* ClassDeclaration */); } return void 0; } @@ -160344,7 +162631,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (scope && scope !== container) { return void 0; } - if (!container || container.kind === 311 /* SourceFile */ && !isExternalOrCommonJsModule(container)) { + if (!container || container.kind === 312 /* SourceFile */ && !isExternalOrCommonJsModule(container)) { return void 0; } scope = container; @@ -160422,7 +162709,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } Core2.someSignatureUsage = someSignatureUsage; function getPossibleSymbolReferenceNodes(sourceFile, symbolName2, container = sourceFile) { - return getPossibleSymbolReferencePositions(sourceFile, symbolName2, container).map((pos) => getTouchingPropertyName(sourceFile, pos)); + return mapDefined(getPossibleSymbolReferencePositions(sourceFile, symbolName2, container), (pos) => { + const referenceLocation = getTouchingPropertyName(sourceFile, pos); + return referenceLocation === sourceFile ? void 0 : referenceLocation; + }); } function getPossibleSymbolReferencePositions(sourceFile, symbolName2, container = sourceFile) { const positions = []; @@ -160691,14 +162981,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (constructorSymbol && constructorSymbol.declarations) { for (const decl of constructorSymbol.declarations) { const ctrKeyword = findChildOfKind(decl, 137 /* ConstructorKeyword */, sourceFile); - Debug.assert(decl.kind === 175 /* Constructor */ && !!ctrKeyword); + Debug.assert(decl.kind === 176 /* Constructor */ && !!ctrKeyword); addNode(ctrKeyword); } } if (classSymbol.exports) { classSymbol.exports.forEach((member) => { const decl = member.valueDeclaration; - if (decl && decl.kind === 173 /* MethodDeclaration */) { + if (decl && decl.kind === 174 /* MethodDeclaration */) { const body = decl.body; if (body) { forEachDescendantOfKind(body, 110 /* ThisKeyword */, (thisKeyword) => { @@ -160720,7 +163010,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return; } for (const decl of constructor.declarations) { - Debug.assert(decl.kind === 175 /* Constructor */); + Debug.assert(decl.kind === 176 /* Constructor */); const body = decl.body; if (body) { forEachDescendantOfKind(body, 108 /* SuperKeyword */, (node) => { @@ -160755,12 +163045,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (refNode.kind !== 80 /* Identifier */) { return; } - if (refNode.parent.kind === 303 /* ShorthandPropertyAssignment */) { + if (refNode.parent.kind === 304 /* ShorthandPropertyAssignment */) { getReferenceEntriesForShorthandPropertyAssignment(refNode, state.checker, addReference2); } - const containingClass = getContainingClassIfInHeritageClause(refNode); - if (containingClass) { - addReference2(containingClass); + const containingNode = getContainingNodeIfInHeritageClause(refNode); + if (containingNode) { + addReference2(containingNode); return; } const typeNode = findAncestor(refNode, (a) => !isQualifiedName(a.parent) && !isTypeNode(a.parent) && !isTypeElement(a.parent)); @@ -160770,7 +163060,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} addIfImplementation(typeHavingNode.initializer); } else if (isFunctionLike(typeHavingNode) && typeHavingNode.body) { const body = typeHavingNode.body; - if (body.kind === 240 /* Block */) { + if (body.kind === 241 /* Block */) { forEachReturnStatement(body, (returnStatement) => { if (returnStatement.expression) addIfImplementation(returnStatement.expression); @@ -160787,18 +163077,18 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} addReference2(e); } } - function getContainingClassIfInHeritageClause(node) { - return isIdentifier(node) || isPropertyAccessExpression(node) ? getContainingClassIfInHeritageClause(node.parent) : isExpressionWithTypeArguments(node) ? tryCast(node.parent.parent, isClassLike) : void 0; + function getContainingNodeIfInHeritageClause(node) { + return isIdentifier(node) || isPropertyAccessExpression(node) ? getContainingNodeIfInHeritageClause(node.parent) : isExpressionWithTypeArguments(node) ? tryCast(node.parent.parent, or(isClassLike, isInterfaceDeclaration)) : void 0; } function isImplementationExpression(node) { switch (node.kind) { - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return isImplementationExpression(node.expression); - case 218 /* ArrowFunction */: - case 217 /* FunctionExpression */: - case 209 /* ObjectLiteralExpression */: - case 230 /* ClassExpression */: - case 208 /* ArrayLiteralExpression */: + case 219 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 210 /* ObjectLiteralExpression */: + case 231 /* ClassExpression */: + case 209 /* ArrayLiteralExpression */: return true; default: return false; @@ -160832,13 +163122,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } let staticFlag = 32 /* Static */; switch (searchSpaceNode.kind) { - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: staticFlag &= getSyntacticModifierFlags(searchSpaceNode); searchSpaceNode = searchSpaceNode.parent; break; @@ -160860,7 +163150,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return [{ definition: { type: 0 /* Symbol */, symbol: searchSpaceNode.symbol }, references }]; } function isParameterName(node) { - return node.kind === 80 /* Identifier */ && node.parent.kind === 168 /* Parameter */ && node.parent.name === node; + return node.kind === 80 /* Identifier */ && node.parent.kind === 169 /* Parameter */ && node.parent.name === node; } function getReferencesForThisKeyword(thisOrSuperKeyword, sourceFiles, cancellationToken) { let searchSpaceNode = getThisContainer( @@ -160872,32 +163162,32 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} ); let staticFlag = 32 /* Static */; switch (searchSpaceNode.kind) { - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: if (isObjectLiteralMethod(searchSpaceNode)) { staticFlag &= getSyntacticModifierFlags(searchSpaceNode); searchSpaceNode = searchSpaceNode.parent; break; } - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: staticFlag &= getSyntacticModifierFlags(searchSpaceNode); searchSpaceNode = searchSpaceNode.parent; break; - case 311 /* SourceFile */: + case 312 /* SourceFile */: if (isExternalModule(searchSpaceNode) || isParameterName(thisOrSuperKeyword)) { return void 0; } - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: break; default: return void 0; } - const references = flatMap(searchSpaceNode.kind === 311 /* SourceFile */ ? sourceFiles : [searchSpaceNode.getSourceFile()], (sourceFile) => { + const references = flatMap(searchSpaceNode.kind === 312 /* SourceFile */ ? sourceFiles : [searchSpaceNode.getSourceFile()], (sourceFile) => { cancellationToken.throwIfCancellationRequested(); return getPossibleSymbolReferenceNodes(sourceFile, "this", isSourceFile(searchSpaceNode) ? sourceFile : searchSpaceNode).filter((node) => { if (!isThis(node)) { @@ -160913,18 +163203,18 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (!canHaveSymbol(container)) return false; switch (searchSpaceNode.kind) { - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: return searchSpaceNode.symbol === container.symbol; - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: return isObjectLiteralMethod(searchSpaceNode) && searchSpaceNode.symbol === container.symbol; - case 230 /* ClassExpression */: - case 262 /* ClassDeclaration */: - case 209 /* ObjectLiteralExpression */: + case 231 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 210 /* ObjectLiteralExpression */: return container.parent && canHaveSymbol(container.parent) && searchSpaceNode.symbol === container.parent.symbol && isStatic(container) === !!staticFlag; - case 311 /* SourceFile */: - return container.kind === 311 /* SourceFile */ && !isExternalModule(container) && !isParameterName(node); + case 312 /* SourceFile */: + return container.kind === 312 /* SourceFile */ && !isExternalModule(container) && !isParameterName(node); } }); }).map((n) => nodeEntry(n)); @@ -161048,7 +163338,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} Debug.assert(paramProps.length === 2 && !!(paramProps[0].flags & 1 /* FunctionScopedVariable */) && !!(paramProps[1].flags & 4 /* Property */)); return fromRoot(symbol.flags & 1 /* FunctionScopedVariable */ ? paramProps[1] : paramProps[0]); } - const exportSpecifier = getDeclarationOfKind(symbol, 280 /* ExportSpecifier */); + const exportSpecifier = getDeclarationOfKind(symbol, 281 /* ExportSpecifier */); if (!isForRenamePopulateSearchSymbolSet || exportSpecifier && !exportSpecifier.propertyName) { const localSymbol = exportSpecifier && checker.getExportSpecifierLocalTargetSymbol(exportSpecifier); if (localSymbol) { @@ -161089,7 +163379,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} ) || (rootSymbol.parent && rootSymbol.parent.flags & (32 /* Class */ | 64 /* Interface */) && allowBaseTypes(rootSymbol) ? getPropertySymbolsFromBaseTypes(rootSymbol.parent, rootSymbol.name, checker, (base) => cbSymbol(sym, rootSymbol, base, kind)) : void 0)); } function getPropertySymbolOfObjectBindingPatternWithoutPropertyName(symbol2, checker2) { - const bindingElement = getDeclarationOfKind(symbol2, 207 /* BindingElement */); + const bindingElement = getDeclarationOfKind(symbol2, 208 /* BindingElement */); if (bindingElement && isObjectBindingElementWithoutPropertyName(bindingElement)) { return getPropertySymbolFromBindingElement(checker2, bindingElement); } @@ -161155,7 +163445,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } Core2.getIntersectingMeaningFromDeclarations = getIntersectingMeaningFromDeclarations; function isImplementation(node) { - return !!(node.flags & 16777216 /* Ambient */) ? !(isInterfaceDeclaration(node) || isTypeAliasDeclaration(node)) : isVariableLike(node) ? hasInitializer(node) : isFunctionLikeDeclaration(node) ? !!node.body : isClassLike(node) || isModuleOrEnumDeclaration(node); + return !!(node.flags & 33554432 /* Ambient */) ? !(isInterfaceDeclaration(node) || isTypeAliasDeclaration(node)) : isVariableLike(node) ? hasInitializer(node) : isFunctionLikeDeclaration(node) ? !!node.body : isClassLike(node) || isModuleOrEnumDeclaration(node); } function getReferenceEntriesForShorthandPropertyAssignment(node, checker, addReference2) { const refSymbol = checker.getSymbolAtLocation(node); @@ -161214,6 +163504,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} getTextSpanOfEntry: () => getTextSpanOfEntry, isContextWithStartAndEndNode: () => isContextWithStartAndEndNode, isDeclarationOfSymbol: () => isDeclarationOfSymbol, + isWriteAccessForReference: () => isWriteAccessForReference, nodeEntry: () => nodeEntry, toContextSpan: () => toContextSpan, toHighlightSpan: () => toHighlightSpan, @@ -161242,7 +163533,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } const { parent: parent2 } = node; const typeChecker = program.getTypeChecker(); - if (node.kind === 163 /* OverrideKeyword */ || isIdentifier(node) && isJSDocOverrideTag(parent2) && parent2.tagName === node) { + if (node.kind === 164 /* OverrideKeyword */ || isIdentifier(node) && isJSDocOverrideTag(parent2) && parent2.tagName === node) { return getDefinitionFromOverriddenMember(typeChecker, node) || emptyArray; } if (isJumpStatementTarget(node)) { @@ -161333,7 +163624,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return node.kind === 108 /* SuperKeyword */ ? [sigInfo, ...defs] : [...defs, sigInfo]; } } - if (node.parent.kind === 303 /* ShorthandPropertyAssignment */) { + if (node.parent.kind === 304 /* ShorthandPropertyAssignment */) { const shorthandSymbol = typeChecker.getShorthandAssignmentValueSymbol(symbol.valueDeclaration); const definitions = (shorthandSymbol == null ? void 0 : shorthandSymbol.declarations) ? shorthandSymbol.declarations.map((decl) => createDefinitionInfo( decl, @@ -161434,6 +163725,55 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } return void 0; } + function shouldUnwrapFirstTypeArgumentTypeDefinitionFromTypeReference(typeChecker, type) { + const referenceName = type.symbol.name; + if (!typesWithUnwrappedTypeArguments.has(referenceName)) { + return false; + } + const globalType = typeChecker.resolveName( + referenceName, + /*location*/ + void 0, + 788968 /* Type */, + /*excludeGlobals*/ + false + ); + return !!globalType && globalType === type.target.symbol; + } + function shouldUnwrapFirstTypeArgumentTypeDefinitionFromAlias(typeChecker, type) { + if (!type.aliasSymbol) { + return false; + } + const referenceName = type.aliasSymbol.name; + if (!typesWithUnwrappedTypeArguments.has(referenceName)) { + return false; + } + const globalType = typeChecker.resolveName( + referenceName, + /*location*/ + void 0, + 788968 /* Type */, + /*excludeGlobals*/ + false + ); + return !!globalType && globalType === type.aliasSymbol; + } + function getFirstTypeArgumentDefinitions(typeChecker, type, node, failedAliasResolution) { + var _a, _b; + if (!!(getObjectFlags(type) & 4 /* Reference */) && shouldUnwrapFirstTypeArgumentTypeDefinitionFromTypeReference(typeChecker, type)) { + return definitionFromType(typeChecker.getTypeArguments(type)[0], typeChecker, node, failedAliasResolution); + } + if (shouldUnwrapFirstTypeArgumentTypeDefinitionFromAlias(typeChecker, type) && type.aliasTypeArguments) { + return definitionFromType(type.aliasTypeArguments[0], typeChecker, node, failedAliasResolution); + } + if (getObjectFlags(type) & 32 /* Mapped */ && type.target && shouldUnwrapFirstTypeArgumentTypeDefinitionFromAlias(typeChecker, type.target)) { + const declaration = (_b = (_a = type.aliasSymbol) == null ? void 0 : _a.declarations) == null ? void 0 : _b[0]; + if (declaration && isTypeAliasDeclaration(declaration) && isTypeReferenceNode(declaration.type) && declaration.type.typeArguments) { + return definitionFromType(typeChecker.getTypeAtLocation(declaration.type.typeArguments[0]), typeChecker, node, failedAliasResolution); + } + } + return []; + } function getTypeDefinitionAtPosition(typeChecker, sourceFile, position) { const node = getTouchingPropertyName(sourceFile, position); if (node === sourceFile) { @@ -161459,8 +163799,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const typeAtLocation = typeChecker.getTypeOfSymbolAtLocation(symbol, node); const returnType = tryGetReturnTypeOfFunction(symbol, typeAtLocation, typeChecker); const fromReturnType = returnType && definitionFromType(returnType, typeChecker, node, failedAliasResolution); - const typeDefinitions = fromReturnType && fromReturnType.length !== 0 ? fromReturnType : definitionFromType(typeAtLocation, typeChecker, node, failedAliasResolution); - return typeDefinitions.length ? typeDefinitions : !(symbol.flags & 111551 /* Value */) && symbol.flags & 788968 /* Type */ ? getDefinitionFromSymbol(typeChecker, skipAlias(symbol, typeChecker), node, failedAliasResolution) : void 0; + const [resolvedType, typeDefinitions] = fromReturnType && fromReturnType.length !== 0 ? [returnType, fromReturnType] : [typeAtLocation, definitionFromType(typeAtLocation, typeChecker, node, failedAliasResolution)]; + return typeDefinitions.length ? [...getFirstTypeArgumentDefinitions(typeChecker, resolvedType, node, failedAliasResolution), ...typeDefinitions] : !(symbol.flags & 111551 /* Value */) && symbol.flags & 788968 /* Type */ ? getDefinitionFromSymbol(typeChecker, skipAlias(symbol, typeChecker), node, failedAliasResolution) : void 0; } function definitionFromType(type, checker, node, failedAliasResolution) { return flatMap(type.isUnion() && !(type.flags & 32 /* Enum */) ? type.types : [type], (t) => t.symbol && getDefinitionFromSymbol(checker, t.symbol, node, failedAliasResolution)); @@ -161510,7 +163850,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (node.parent === declaration) { return true; } - if (declaration.kind === 273 /* NamespaceImport */) { + if (declaration.kind === 274 /* NamespaceImport */) { return false; } return true; @@ -161600,7 +163940,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} ts_FindAllReferences_exports.getContextNode(declaration) ), isLocal: !isDefinitionVisible(checker, declaration), - isAmbient: !!(declaration.flags & 16777216 /* Ambient */), + isAmbient: !!(declaration.flags & 33554432 /* Ambient */), unverified, failedAliasResolution }; @@ -161613,19 +163953,19 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (hasInitializer(declaration.parent) && declaration.parent.initializer === declaration) return isDefinitionVisible(checker, declaration.parent); switch (declaration.kind) { - case 171 /* PropertyDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 173 /* MethodDeclaration */: + case 172 /* PropertyDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: if (hasEffectiveModifier(declaration, 8 /* Private */)) return false; - case 175 /* Constructor */: - case 302 /* PropertyAssignment */: - case 303 /* ShorthandPropertyAssignment */: - case 209 /* ObjectLiteralExpression */: - case 230 /* ClassExpression */: - case 218 /* ArrowFunction */: - case 217 /* FunctionExpression */: + case 176 /* Constructor */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 210 /* ObjectLiteralExpression */: + case 231 /* ClassExpression */: + case 219 /* ArrowFunction */: + case 218 /* FunctionExpression */: return isDefinitionVisible(checker, declaration.parent); default: return false; @@ -161669,18 +164009,40 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function isConstructorLike(node) { switch (node.kind) { - case 175 /* Constructor */: - case 184 /* ConstructorType */: - case 179 /* ConstructSignature */: + case 176 /* Constructor */: + case 185 /* ConstructorType */: + case 180 /* ConstructSignature */: return true; default: return false; } } + var typesWithUnwrappedTypeArguments; var init_goToDefinition = __esm({ "src/services/goToDefinition.ts"() { "use strict"; init_ts4(); + typesWithUnwrappedTypeArguments = /* @__PURE__ */ new Set([ + "Array", + "ArrayLike", + "ReadonlyArray", + "Promise", + "PromiseLike", + "Iterable", + "IterableIterator", + "AsyncIterable", + "Set", + "WeakSet", + "ReadonlySet", + "Map", + "WeakMap", + "ReadonlyMap", + "Partial", + "Required", + "Readonly", + "Pick", + "Omit" + ]); } }); @@ -161708,6 +164070,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function shouldShowLiteralParameterNameHintsOnly(preferences) { return preferences.includeInlayParameterNameHints === "literals"; } + function shouldUseInteractiveInlayHints(preferences) { + return preferences.interactiveInlayHints === true; + } function provideInlayHints(context) { const { file, program, span, cancellationToken, preferences } = context; const sourceFileText = file.text; @@ -161721,14 +164086,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return; } switch (node.kind) { - case 266 /* ModuleDeclaration */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 261 /* FunctionDeclaration */: - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: - case 173 /* MethodDeclaration */: - case 218 /* ArrowFunction */: + case 267 /* ModuleDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 262 /* FunctionDeclaration */: + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: + case 174 /* MethodDeclaration */: + case 219 /* ArrowFunction */: cancellationToken.throwIfCancellationRequested(); } if (!textSpanIntersectsWith(span, node.pos, node.getFullWidth())) { @@ -161758,17 +164123,26 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function isSignatureSupportingReturnAnnotation(node) { return isArrowFunction(node) || isFunctionExpression(node) || isFunctionDeclaration(node) || isMethodDeclaration(node) || isGetAccessorDeclaration(node); } - function addParameterHints(text, position, isFirstVariadicArgument) { + function addParameterHints(text, parameter, position, isFirstVariadicArgument) { + let hintText = `${isFirstVariadicArgument ? "..." : ""}${text}`; + let displayParts; + if (shouldUseInteractiveInlayHints(preferences)) { + displayParts = [getNodeDisplayPart(hintText, parameter), { text: ":" }]; + hintText = ""; + } else { + hintText += ":"; + } result.push({ - text: `${isFirstVariadicArgument ? "..." : ""}${truncation(text, maxHintsLength)}:`, + text: hintText, position, kind: "Parameter" /* Parameter */, - whitespaceAfter: true + whitespaceAfter: true, + displayParts }); } function addTypeHints(text, position) { result.push({ - text: `: ${truncation(text, maxHintsLength)}`, + text: `: ${text.length > maxTypeHintLength ? text.substr(0, maxTypeHintLength - "...".length) + "..." : text}`, position, kind: "Type" /* Type */, whitespaceBefore: true @@ -161776,7 +164150,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function addEnumMemberValueHints(text, position) { result.push({ - text: `= ${truncation(text, maxHintsLength)}`, + text: `= ${text}`, position, kind: "Enum" /* Enum */, whitespaceBefore: true @@ -161825,15 +164199,31 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (!signature || !candidates.length) { return; } - for (let i = 0; i < args.length; ++i) { - const originalArg = args[i]; + let signatureParamPos = 0; + for (const originalArg of args) { const arg = skipParentheses(originalArg); if (shouldShowLiteralParameterNameHintsOnly(preferences) && !isHintableLiteral(arg)) { continue; } - const identifierNameInfo = checker.getParameterIdentifierNameAtPosition(signature, i); - if (identifierNameInfo) { - const [parameterName, isFirstVariadicArgument] = identifierNameInfo; + let spreadArgs = 0; + if (isSpreadElement(arg)) { + const spreadType = checker.getTypeAtLocation(arg.expression); + if (checker.isTupleType(spreadType)) { + const { elementFlags, fixedLength } = spreadType.target; + if (fixedLength === 0) { + continue; + } + const firstOptionalIndex = findIndex(elementFlags, (f) => !(f & 1 /* Required */)); + const requiredArgs = firstOptionalIndex < 0 ? fixedLength : firstOptionalIndex; + if (requiredArgs > 0) { + spreadArgs = firstOptionalIndex < 0 ? fixedLength : firstOptionalIndex; + } + } + } + const identifierInfo = checker.getParameterIdentifierInfoAtPosition(signature, signatureParamPos); + signatureParamPos = signatureParamPos + (spreadArgs || 1); + if (identifierInfo) { + const { parameter, parameterName, isRestParameter: isFirstVariadicArgument } = identifierInfo; const isParameterNameNotSameAsArgument = preferences.includeInlayParameterNameHintsWhenArgumentMatchesName || !identifierOrAccessExpressionPostfixMatchesParameterName(arg, parameterName); if (!isParameterNameNotSameAsArgument && !isFirstVariadicArgument) { continue; @@ -161842,7 +164232,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (leadingCommentsContainsParameterName(arg, name)) { continue; } - addParameterHints(name, originalArg.getStart(), isFirstVariadicArgument); + addParameterHints(name, parameter, originalArg.getStart(), isFirstVariadicArgument); } } } @@ -161868,7 +164258,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function isHintableLiteral(node) { switch (node.kind) { - case 223 /* PrefixUnaryExpression */: { + case 224 /* PrefixUnaryExpression */: { const operand = node.operand; return isLiteralExpression(operand) || isIdentifier(operand) && isInfinityOrNaNString(operand.escapedText); } @@ -161876,7 +164266,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} case 97 /* FalseKeyword */: case 106 /* NullKeyword */: case 15 /* NoSubstitutionTemplateLiteral */: - case 227 /* TemplateExpression */: + case 228 /* TemplateExpression */: return true; case 80 /* Identifier */: { const name = node.escapedText; @@ -161948,12 +164338,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } return printTypeInSingleLine(signatureParamType); } - function truncation(text, maxLength2) { - if (text.length > maxLength2) { - return text.substr(0, maxLength2 - "...".length) + "..."; - } - return text; - } function printTypeInSingleLine(type) { const flags = 70221824 /* IgnoreErrors */ | 1048576 /* AllowUniqueESSymbolType */ | 16384 /* UseAliasDefinedOutsideCurrentScope */; const printer = createPrinterWithRemoveComments(); @@ -161984,13 +164368,21 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } return true; } + function getNodeDisplayPart(text, node) { + const sourceFile = node.getSourceFile(); + return { + text, + span: createTextSpanFromNode(node, sourceFile), + file: sourceFile.fileName + }; + } } - var maxHintsLength, leadingParameterNameCommentRegexFactory; + var maxTypeHintLength, leadingParameterNameCommentRegexFactory; var init_inlayHints = __esm({ "src/services/inlayHints.ts"() { "use strict"; init_ts4(); - maxHintsLength = 30; + maxTypeHintLength = 30; leadingParameterNameCommentRegexFactory = (name) => { return new RegExp(`^\\s?/\\*\\*?\\s?${name}\\s?\\*\\/\\s?$`); }; @@ -162014,8 +164406,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const parts = []; forEachUnique(declarations, (declaration) => { for (const jsdoc of getCommentHavingNodes(declaration)) { - const inheritDoc = isJSDoc(jsdoc) && jsdoc.tags && find(jsdoc.tags, (t) => t.kind === 333 /* JSDocTag */ && (t.tagName.escapedText === "inheritDoc" || t.tagName.escapedText === "inheritdoc")); - if (jsdoc.comment === void 0 && !inheritDoc || isJSDoc(jsdoc) && declaration.kind !== 352 /* JSDocTypedefTag */ && declaration.kind !== 344 /* JSDocCallbackTag */ && jsdoc.tags && jsdoc.tags.some((t) => t.kind === 352 /* JSDocTypedefTag */ || t.kind === 344 /* JSDocCallbackTag */) && !jsdoc.tags.some((t) => t.kind === 347 /* JSDocParameterTag */ || t.kind === 348 /* JSDocReturnTag */)) { + const inheritDoc = isJSDoc(jsdoc) && jsdoc.tags && find(jsdoc.tags, (t) => t.kind === 334 /* JSDocTag */ && (t.tagName.escapedText === "inheritDoc" || t.tagName.escapedText === "inheritdoc")); + if (jsdoc.comment === void 0 && !inheritDoc || isJSDoc(jsdoc) && declaration.kind !== 353 /* JSDocTypedefTag */ && declaration.kind !== 345 /* JSDocCallbackTag */ && jsdoc.tags && jsdoc.tags.some((t) => t.kind === 353 /* JSDocTypedefTag */ || t.kind === 345 /* JSDocCallbackTag */) && !jsdoc.tags.some((t) => t.kind === 348 /* JSDocParameterTag */ || t.kind === 349 /* JSDocReturnTag */)) { continue; } let newparts = jsdoc.comment ? getDisplayPartsFromComment(jsdoc.comment, checker) : []; @@ -162034,11 +164426,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function getCommentHavingNodes(declaration) { switch (declaration.kind) { - case 347 /* JSDocParameterTag */: - case 354 /* JSDocPropertyTag */: + case 348 /* JSDocParameterTag */: + case 355 /* JSDocPropertyTag */: return [declaration]; - case 344 /* JSDocCallbackTag */: - case 352 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: + case 353 /* JSDocTypedefTag */: return [declaration, declaration.parent]; default: return getJSDocCommentsAndTags(declaration); @@ -162048,7 +164440,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const infos = []; forEachUnique(declarations, (declaration) => { const tags = getJSDocTags(declaration); - if (tags.some((t) => t.kind === 352 /* JSDocTypedefTag */ || t.kind === 344 /* JSDocCallbackTag */) && !tags.some((t) => t.kind === 347 /* JSDocParameterTag */ || t.kind === 348 /* JSDocReturnTag */)) { + if (tags.some((t) => t.kind === 353 /* JSDocTypedefTag */ || t.kind === 345 /* JSDocCallbackTag */) && !tags.some((t) => t.kind === 348 /* JSDocParameterTag */ || t.kind === 349 /* JSDocReturnTag */)) { return; } for (const tag of tags) { @@ -162063,21 +164455,21 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } return flatMap( comment, - (node) => node.kind === 327 /* JSDocText */ ? [textPart(node.text)] : buildLinkParts(node, checker) + (node) => node.kind === 328 /* JSDocText */ ? [textPart(node.text)] : buildLinkParts(node, checker) ); } function getCommentDisplayParts(tag, checker) { const { comment, kind } = tag; const namePart = getTagNameDisplayPart(kind); switch (kind) { - case 355 /* JSDocThrowsTag */: + case 356 /* JSDocThrowsTag */: const typeExpression = tag.typeExpression; return typeExpression ? withNode(typeExpression) : comment === void 0 ? void 0 : getDisplayPartsFromComment(comment, checker); - case 335 /* JSDocImplementsTag */: + case 336 /* JSDocImplementsTag */: return withNode(tag.class); - case 334 /* JSDocAugmentsTag */: + case 335 /* JSDocAugmentsTag */: return withNode(tag.class); - case 351 /* JSDocTemplateTag */: + case 352 /* JSDocTemplateTag */: const templateTag = tag; const displayParts = []; if (templateTag.constraint) { @@ -162099,14 +164491,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} displayParts.push(...[spacePart(), ...getDisplayPartsFromComment(comment, checker)]); } return displayParts; - case 350 /* JSDocTypeTag */: - case 356 /* JSDocSatisfiesTag */: + case 351 /* JSDocTypeTag */: + case 357 /* JSDocSatisfiesTag */: return withNode(tag.typeExpression); - case 352 /* JSDocTypedefTag */: - case 344 /* JSDocCallbackTag */: - case 354 /* JSDocPropertyTag */: - case 347 /* JSDocParameterTag */: - case 353 /* JSDocSeeTag */: + case 353 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: + case 355 /* JSDocPropertyTag */: + case 348 /* JSDocParameterTag */: + case 354 /* JSDocSeeTag */: const { name } = tag; return name ? withNode(name) : comment === void 0 ? void 0 : getDisplayPartsFromComment(comment, checker); default: @@ -162129,14 +164521,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function getTagNameDisplayPart(kind) { switch (kind) { - case 347 /* JSDocParameterTag */: + case 348 /* JSDocParameterTag */: return parameterNamePart; - case 354 /* JSDocPropertyTag */: + case 355 /* JSDocPropertyTag */: return propertyNamePart; - case 351 /* JSDocTemplateTag */: + case 352 /* JSDocTemplateTag */: return typeParameterNamePart; - case 352 /* JSDocTypedefTag */: - case 344 /* JSDocCallbackTag */: + case 353 /* JSDocTypedefTag */: + case 345 /* JSDocCallbackTag */: return typeAliasNamePart; default: return textPart; @@ -162229,7 +164621,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const tags = (parameters ? parameterDocComments(parameters || [], isJavaScriptFile, indentationStr, newLine) : "") + (hasReturn2 ? returnsDocComment(indentationStr, newLine) : ""); const openComment = "/**"; const closeComment = " */"; - const hasTag = (commentOwnerJsDoc || []).some((jsDoc) => !!jsDoc.tags); + const hasTag = length(getJSDocTags(commentOwner)) > 0; if (tags && !hasTag) { const preamble = openComment + newLine + indentationStr + " * "; const endLine = tokenStart === position ? newLine + indentationStr : ""; @@ -162261,46 +164653,46 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function getCommentOwnerInfoWorker(commentOwner, options) { switch (commentOwner.kind) { - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 173 /* MethodDeclaration */: - case 175 /* Constructor */: - case 172 /* MethodSignature */: - case 218 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: + case 173 /* MethodSignature */: + case 219 /* ArrowFunction */: const host = commentOwner; return { commentOwner, parameters: host.parameters, hasReturn: hasReturn(host, options) }; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return getCommentOwnerInfoWorker(commentOwner.initializer, options); - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: - case 305 /* EnumMember */: - case 264 /* TypeAliasDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + case 306 /* EnumMember */: + case 265 /* TypeAliasDeclaration */: return { commentOwner }; - case 170 /* PropertySignature */: { + case 171 /* PropertySignature */: { const host2 = commentOwner; return host2.type && isFunctionTypeNode(host2.type) ? { commentOwner, parameters: host2.type.parameters, hasReturn: hasReturn(host2.type, options) } : { commentOwner }; } - case 242 /* VariableStatement */: { + case 243 /* VariableStatement */: { const varStatement = commentOwner; const varDeclarations = varStatement.declarationList.declarations; const host2 = varDeclarations.length === 1 && varDeclarations[0].initializer ? getRightHandSideOfAssignment(varDeclarations[0].initializer) : void 0; return host2 ? { commentOwner, parameters: host2.parameters, hasReturn: hasReturn(host2, options) } : { commentOwner }; } - case 311 /* SourceFile */: + case 312 /* SourceFile */: return "quit"; - case 266 /* ModuleDeclaration */: - return commentOwner.parent.kind === 266 /* ModuleDeclaration */ ? void 0 : { commentOwner }; - case 243 /* ExpressionStatement */: + case 267 /* ModuleDeclaration */: + return commentOwner.parent.kind === 267 /* ModuleDeclaration */ ? void 0 : { commentOwner }; + case 244 /* ExpressionStatement */: return getCommentOwnerInfoWorker(commentOwner.expression, options); - case 225 /* BinaryExpression */: { + case 226 /* BinaryExpression */: { const be = commentOwner; if (getAssignmentDeclarationKind(be) === 0 /* None */) { return "quit"; } return isFunctionLike(be.right) ? { commentOwner, parameters: be.right.parameters, hasReturn: hasReturn(be.right, options) } : { commentOwner }; } - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: const init = commentOwner.initializer; if (init && (isFunctionExpression(init) || isArrowFunction(init))) { return { commentOwner, parameters: init.parameters, hasReturn: hasReturn(init, options) }; @@ -162311,14 +164703,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return !!(options == null ? void 0 : options.generateReturnInDocTemplate) && (isFunctionTypeNode(node) || isArrowFunction(node) && isExpression(node.body) || isFunctionLikeDeclaration(node) && node.body && isBlock(node.body) && !!forEachReturnStatement(node.body, (n) => n)); } function getRightHandSideOfAssignment(rightHandSide) { - while (rightHandSide.kind === 216 /* ParenthesizedExpression */) { + while (rightHandSide.kind === 217 /* ParenthesizedExpression */) { rightHandSide = rightHandSide.expression; } switch (rightHandSide.kind) { - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return rightHandSide; - case 230 /* ClassExpression */: + case 231 /* ClassExpression */: return find(rightHandSide.members, isConstructorDeclaration); } } @@ -162472,7 +164864,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (length(oldImportDecls) === 0) { return; } - suppressLeadingTrivia(oldImportDecls[0]); + setEmitFlags(oldImportDecls[0], 1024 /* NoLeadingComments */); const oldImportGroups = shouldCombine ? group(oldImportDecls, (importDecl) => getExternalModuleName2(importDecl.moduleSpecifier)) : [oldImportDecls]; const sortedImportGroups = shouldSort ? stableSort(oldImportGroups, (group1, group2) => compareModuleSpecifiersWorker(group1[0].moduleSpecifier, group2[0].moduleSpecifier, comparer)) : oldImportGroups; const newImportDecls = flatMap(sortedImportGroups, (importGroup) => getExternalModuleName2(importGroup[0].moduleSpecifier) || importGroup[0].moduleSpecifier === void 0 ? coalesce(importGroup) : importGroup); @@ -162795,11 +165187,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function getModuleSpecifierExpression(declaration) { var _a; switch (declaration.kind) { - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return (_a = tryCast(declaration.moduleReference, isExternalModuleReference)) == null ? void 0 : _a.expression; - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: return declaration.moduleSpecifier; - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return declaration.declarationList.declarations[0].initializer.arguments[0]; } } @@ -162899,19 +165291,19 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function getImportKindOrder(s1) { var _a; switch (s1.kind) { - case 271 /* ImportDeclaration */: + case 272 /* ImportDeclaration */: if (!s1.importClause) return 0; if (s1.importClause.isTypeOnly) return 1; - if (((_a = s1.importClause.namedBindings) == null ? void 0 : _a.kind) === 273 /* NamespaceImport */) + if (((_a = s1.importClause.namedBindings) == null ? void 0 : _a.kind) === 274 /* NamespaceImport */) return 2; if (s1.importClause.name) return 3; return 4; - case 270 /* ImportEqualsDeclaration */: + case 271 /* ImportEqualsDeclaration */: return 5; - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: return 6; } } @@ -163219,21 +165611,21 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function getOutliningSpanForNode(n, sourceFile) { switch (n.kind) { - case 240 /* Block */: + case 241 /* Block */: if (isFunctionLike(n.parent)) { return functionSpan(n.parent, n, sourceFile); } switch (n.parent.kind) { - case 245 /* DoStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 247 /* ForStatement */: - case 244 /* IfStatement */: - case 246 /* WhileStatement */: - case 253 /* WithStatement */: - case 298 /* CatchClause */: + case 246 /* DoStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 248 /* ForStatement */: + case 245 /* IfStatement */: + case 247 /* WhileStatement */: + case 254 /* WithStatement */: + case 299 /* CatchClause */: return spanForNode(n.parent); - case 257 /* TryStatement */: + case 258 /* TryStatement */: const tryStatement = n.parent; if (tryStatement.tryBlock === n) { return spanForNode(n.parent); @@ -163245,17 +165637,17 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} default: return createOutliningSpan(createTextSpanFromNode(n, sourceFile), "code" /* Code */); } - case 267 /* ModuleBlock */: + case 268 /* ModuleBlock */: return spanForNode(n.parent); - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: - case 268 /* CaseBlock */: - case 186 /* TypeLiteral */: - case 205 /* ObjectBindingPattern */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + case 269 /* CaseBlock */: + case 187 /* TypeLiteral */: + case 206 /* ObjectBindingPattern */: return spanForNode(n); - case 188 /* TupleType */: + case 189 /* TupleType */: return spanForNode( n, /*autoCollapse*/ @@ -163264,24 +165656,24 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} !isTupleTypeNode(n.parent), 23 /* OpenBracketToken */ ); - case 295 /* CaseClause */: - case 296 /* DefaultClause */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: return spanForNodeArray(n.statements); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return spanForObjectOrArrayLiteral(n); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return spanForObjectOrArrayLiteral(n, 23 /* OpenBracketToken */); - case 283 /* JsxElement */: + case 284 /* JsxElement */: return spanForJSXElement(n); - case 287 /* JsxFragment */: + case 288 /* JsxFragment */: return spanForJSXFragment(n); - case 284 /* JsxSelfClosingElement */: - case 285 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: return spanForJSXAttributes(n.attributes); - case 227 /* TemplateExpression */: + case 228 /* TemplateExpression */: case 15 /* NoSubstitutionTemplateLiteral */: return spanForTemplateLiteral(n); - case 206 /* ArrayBindingPattern */: + case 207 /* ArrayBindingPattern */: return spanForNode( n, /*autoCollapse*/ @@ -163290,15 +165682,15 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} !isBindingElement(n.parent), 23 /* OpenBracketToken */ ); - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return spanForArrowFunction(n); - case 212 /* CallExpression */: + case 213 /* CallExpression */: return spanForCallExpression(n); - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return spanForParenthesizedExpression(n); - case 274 /* NamedImports */: - case 278 /* NamedExports */: - case 299 /* AssertClause */: + case 275 /* NamedImports */: + case 279 /* NamedExports */: + case 300 /* AssertClause */: return spanForNamedImportsOrExportsOrAssertClause(n); } function spanForNamedImportsOrExportsOrAssertClause(node) { @@ -163419,7 +165811,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} node, sourceFile, /*autoCollapse*/ - node.kind !== 218 /* ArrowFunction */ + node.kind !== 219 /* ArrowFunction */ ); } function spanBetweenTokens(openToken, closeToken, hintSpanNode, sourceFile, autoCollapse = false, useFullStart = true) { @@ -163501,7 +165893,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return getRenameInfoError(wouldRenameNodeModules); } const kind = ts_SymbolDisplay_exports.getSymbolKind(typeChecker, symbol, node); - const specifierName = isImportOrExportSpecifierName(node) || isStringOrNumericLiteralLike(node) && node.parent.kind === 166 /* ComputedPropertyName */ ? stripQuotes(getTextOfIdentifierOrLiteral(node)) : void 0; + const specifierName = isImportOrExportSpecifierName(node) || isStringOrNumericLiteralLike(node) && node.parent.kind === 167 /* ComputedPropertyName */ ? stripQuotes(getTextOfIdentifierOrLiteral(node)) : void 0; const displayName = specifierName || typeChecker.symbolToString(symbol); const fullDisplayName = specifierName || typeChecker.getFullyQualifiedName(symbol); return getRenameInfoSuccess(displayName, fullDisplayName, kind, ts_SymbolDisplay_exports.getSymbolModifiers(typeChecker, symbol), node, sourceFile); @@ -163787,10 +166179,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} ); } return void 0; - } else if (isTemplateHead(node) && parent2.parent.kind === 214 /* TaggedTemplateExpression */) { + } else if (isTemplateHead(node) && parent2.parent.kind === 215 /* TaggedTemplateExpression */) { const templateExpression = parent2; const tagExpression = templateExpression.parent; - Debug.assert(templateExpression.kind === 227 /* TemplateExpression */); + Debug.assert(templateExpression.kind === 228 /* TemplateExpression */); const argumentIndex = isInsideTemplateLiteral(node, position, sourceFile) ? 0 : 1; return getArgumentListInfoForTemplate(tagExpression, argumentIndex, sourceFile); } else if (isTemplateSpan(parent2) && isTaggedTemplateExpression(parent2.parent.parent)) { @@ -163867,17 +166259,17 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} function getContextualSignatureLocationInfo(node, sourceFile, position, checker) { const { parent: parent2 } = node; switch (parent2.kind) { - case 216 /* ParenthesizedExpression */: - case 173 /* MethodDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 217 /* ParenthesizedExpression */: + case 174 /* MethodDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: const info = getArgumentOrParameterListInfo(node, position, sourceFile); if (!info) return void 0; const { argumentIndex, argumentCount, argumentsSpan } = info; const contextualType = isMethodDeclaration(parent2) ? checker.getContextualTypeForObjectLiteralElement(parent2) : checker.getContextualType(parent2); return contextualType && { contextualType, argumentIndex, argumentCount, argumentsSpan }; - case 225 /* BinaryExpression */: { + case 226 /* BinaryExpression */: { const highestBinary = getHighestBinary(parent2); const contextualType2 = checker.getContextualType(highestBinary); const argumentIndex2 = node.kind === 21 /* OpenParenToken */ ? 0 : countBinaryExpressionParameters(parent2) - 1; @@ -163951,7 +166343,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const template = taggedTemplate.template; const applicableSpanStart = template.getStart(); let applicableSpanEnd = template.getEnd(); - if (template.kind === 227 /* TemplateExpression */) { + if (template.kind === 228 /* TemplateExpression */) { const lastSpan = last(template.templateSpans); if (lastSpan.literal.getFullWidth() === 0) { applicableSpanEnd = skipTrivia( @@ -164264,7 +166656,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const groupedWithPlusMinusTokens = groupChildren(children, (child) => child === node.readonlyToken || child.kind === 148 /* ReadonlyKeyword */ || child === node.questionToken || child.kind === 58 /* QuestionToken */); const groupedWithBrackets = groupChildren( groupedWithPlusMinusTokens, - ({ kind }) => kind === 23 /* OpenBracketToken */ || kind === 167 /* TypeParameter */ || kind === 24 /* CloseBracketToken */ + ({ kind }) => kind === 23 /* OpenBracketToken */ || kind === 168 /* TypeParameter */ || kind === 24 /* CloseBracketToken */ ); return [ openBraceToken, @@ -164275,7 +166667,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } if (isPropertySignature(node)) { const children = groupChildren(node.getChildren(), (child) => child === node.name || contains(node.modifiers, child)); - const firstJSDocChild = ((_a = children[0]) == null ? void 0 : _a.kind) === 326 /* JSDoc */ ? children[0] : void 0; + const firstJSDocChild = ((_a = children[0]) == null ? void 0 : _a.kind) === 327 /* JSDoc */ ? children[0] : void 0; const withJSDocSeparated = firstJSDocChild ? children.slice(1) : children; const splittedChildren = splitChildren(withJSDocSeparated, ({ kind }) => kind === 59 /* ColonToken */); return firstJSDocChild ? [firstJSDocChild, createSyntaxList2(splittedChildren)] : splittedChildren; @@ -164336,19 +166728,19 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } function isListOpener(token) { const kind = token && token.kind; - return kind === 19 /* OpenBraceToken */ || kind === 23 /* OpenBracketToken */ || kind === 21 /* OpenParenToken */ || kind === 285 /* JsxOpeningElement */; + return kind === 19 /* OpenBraceToken */ || kind === 23 /* OpenBracketToken */ || kind === 21 /* OpenParenToken */ || kind === 286 /* JsxOpeningElement */; } function isListCloser(token) { const kind = token && token.kind; - return kind === 20 /* CloseBraceToken */ || kind === 24 /* CloseBracketToken */ || kind === 22 /* CloseParenToken */ || kind === 286 /* JsxClosingElement */; + return kind === 20 /* CloseBraceToken */ || kind === 24 /* CloseBracketToken */ || kind === 22 /* CloseParenToken */ || kind === 287 /* JsxClosingElement */; } function getEndPos(sourceFile, node) { switch (node.kind) { - case 347 /* JSDocParameterTag */: - case 344 /* JSDocCallbackTag */: - case 354 /* JSDocPropertyTag */: - case 352 /* JSDocTypedefTag */: - case 349 /* JSDocThisTag */: + case 348 /* JSDocParameterTag */: + case 345 /* JSDocCallbackTag */: + case 355 /* JSDocPropertyTag */: + case 353 /* JSDocTypedefTag */: + case 350 /* JSDocThisTag */: return sourceFile.getLineEndOfPosition(node.getStart()); default: return node.getEnd(); @@ -164383,7 +166775,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } const flags = getCombinedLocalAndExportSymbolFlags(symbol); if (flags & 32 /* Class */) { - return getDeclarationOfKind(symbol, 230 /* ClassExpression */) ? "local class" /* localClassElement */ : "class" /* classElement */; + return getDeclarationOfKind(symbol, 231 /* ClassExpression */) ? "local class" /* localClassElement */ : "class" /* classElement */; } if (flags & 384 /* Enum */) return "enum" /* enumElement */; @@ -164421,6 +166813,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return "parameter" /* parameterElement */; } else if (symbol.valueDeclaration && isVarConst(symbol.valueDeclaration)) { return "const" /* constElement */; + } else if (symbol.valueDeclaration && isVarUsing(symbol.valueDeclaration)) { + return "using" /* variableUsingElement */; + } else if (symbol.valueDeclaration && isVarAwaitUsing(symbol.valueDeclaration)) { + return "await using" /* variableAwaitUsingElement */; } else if (forEach(symbol.declarations, isLet)) { return "let" /* letElement */; } @@ -164488,7 +166884,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } return modifiers.size > 0 ? arrayFrom(modifiers.values()).join(",") : "" /* none */; } - function getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, symbol, sourceFile, enclosingDeclaration, location, semanticMeaning = getMeaningFromLocation(location), alias) { + function getSymbolDisplayPartsDocumentationAndSymbolKindWorker(typeChecker, symbol, sourceFile, enclosingDeclaration, location, type, semanticMeaning, alias) { var _a; const displayParts = []; let documentation = []; @@ -164497,7 +166893,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} let symbolKind = semanticMeaning & 1 /* Value */ ? getSymbolKindOfConstructorPropertyMethodAccessorFunctionOrVar(typeChecker, symbol, location) : "" /* unknown */; let hasAddedSymbolInfo = false; const isThisExpression = location.kind === 110 /* ThisKeyword */ && isInExpressionContext(location) || isThisInTypeQuery(location); - let type; let documentationFromAlias; let tagsFromAlias; let hasMultipleSignatures = false; @@ -164509,13 +166904,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} const declaration = find(symbol.declarations, (declaration2) => declaration2.name === location); if (declaration) { switch (declaration.kind) { - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: symbolKind = "getter" /* memberGetAccessorElement */; break; - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: symbolKind = "setter" /* memberSetAccessorElement */; break; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: symbolKind = "accessor" /* memberAccessorVariableElement */; break; default: @@ -164526,8 +166921,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } } let signature; - type = isThisExpression ? typeChecker.getTypeAtLocation(location) : typeChecker.getTypeOfSymbolAtLocation(symbol, location); - if (location.parent && location.parent.kind === 210 /* PropertyAccessExpression */) { + type ?? (type = isThisExpression ? typeChecker.getTypeAtLocation(location) : typeChecker.getTypeOfSymbolAtLocation(symbol, location)); + if (location.parent && location.parent.kind === 211 /* PropertyAccessExpression */) { const right = location.parent.name; if (right === location || right && right.getFullWidth() === 0) { location = location.parent; @@ -164543,7 +166938,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } if (callExpressionLike) { signature = typeChecker.getResolvedSignature(callExpressionLike); - const useConstructSignatures = callExpressionLike.kind === 213 /* NewExpression */ || isCallExpression(callExpressionLike) && callExpressionLike.expression.kind === 108 /* SuperKeyword */; + const useConstructSignatures = callExpressionLike.kind === 214 /* NewExpression */ || isCallExpression(callExpressionLike) && callExpressionLike.expression.kind === 108 /* SuperKeyword */; const allSignatures = useConstructSignatures ? type.getConstructSignatures() : type.getCallSignatures(); if (signature && !contains(allSignatures, signature.target) && !contains(allSignatures, signature)) { signature = allSignatures.length ? allSignatures[0] : void 0; @@ -164606,21 +167001,21 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} hasMultipleSignatures = allSignatures.length > 1; } } else if (isNameOfFunctionDeclaration(location) && !(symbolFlags & 98304 /* Accessor */) || // name of function declaration - location.kind === 137 /* ConstructorKeyword */ && location.parent.kind === 175 /* Constructor */) { + location.kind === 137 /* ConstructorKeyword */ && location.parent.kind === 176 /* Constructor */) { const functionDeclaration = location.parent; const locationIsSymbolDeclaration = symbol.declarations && find(symbol.declarations, (declaration) => declaration === (location.kind === 137 /* ConstructorKeyword */ ? functionDeclaration.parent : functionDeclaration)); if (locationIsSymbolDeclaration) { - const allSignatures = functionDeclaration.kind === 175 /* Constructor */ ? type.getNonNullableType().getConstructSignatures() : type.getNonNullableType().getCallSignatures(); + const allSignatures = functionDeclaration.kind === 176 /* Constructor */ ? type.getNonNullableType().getConstructSignatures() : type.getNonNullableType().getCallSignatures(); if (!typeChecker.isImplementationOfOverload(functionDeclaration)) { signature = typeChecker.getSignatureFromDeclaration(functionDeclaration); } else { signature = allSignatures[0]; } - if (functionDeclaration.kind === 175 /* Constructor */) { + if (functionDeclaration.kind === 176 /* Constructor */) { symbolKind = "constructor" /* constructorImplementationElement */; addPrefixForAnyFunctionOrVar(type.symbol, symbolKind); } else { - addPrefixForAnyFunctionOrVar(functionDeclaration.kind === 178 /* CallSignature */ && !(type.symbol.flags & 2048 /* TypeLiteral */ || type.symbol.flags & 4096 /* ObjectLiteral */) ? type.symbol : symbol, symbolKind); + addPrefixForAnyFunctionOrVar(functionDeclaration.kind === 179 /* CallSignature */ && !(type.symbol.flags & 2048 /* TypeLiteral */ || type.symbol.flags & 4096 /* ObjectLiteral */) ? type.symbol : symbol, symbolKind); } if (signature) { addSignatureDisplayParts(signature, allSignatures); @@ -164632,7 +167027,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } if (symbolFlags & 32 /* Class */ && !hasAddedSymbolInfo && !isThisExpression) { addAliasPrefixIfNecessary(); - if (getDeclarationOfKind(symbol, 230 /* ClassExpression */)) { + if (getDeclarationOfKind(symbol, 231 /* ClassExpression */)) { pushSymbolKind("local class" /* localClassElement */); } else { displayParts.push(keywordPart(86 /* ClassKeyword */)); @@ -164671,7 +167066,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } if (symbolFlags & 1536 /* Module */ && !isThisExpression) { prefixNextMeaning(); - const declaration = getDeclarationOfKind(symbol, 266 /* ModuleDeclaration */); + const declaration = getDeclarationOfKind(symbol, 267 /* ModuleDeclaration */); const isNamespace = declaration && declaration.name && declaration.name.kind === 80 /* Identifier */; displayParts.push(keywordPart(isNamespace ? 145 /* NamespaceKeyword */ : 144 /* ModuleKeyword */)); displayParts.push(spacePart()); @@ -164689,7 +167084,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} addFullSymbolName(symbol.parent, enclosingDeclaration); writeTypeParametersOfSymbol(symbol.parent, enclosingDeclaration); } else { - const decl = getDeclarationOfKind(symbol, 167 /* TypeParameter */); + const decl = getDeclarationOfKind(symbol, 168 /* TypeParameter */); if (decl === void 0) return Debug.fail(); const declaration = decl.parent; @@ -164697,10 +167092,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (isFunctionLike(declaration)) { addInPrefix(); const signature = typeChecker.getSignatureFromDeclaration(declaration); - if (declaration.kind === 179 /* ConstructSignature */) { + if (declaration.kind === 180 /* ConstructSignature */) { displayParts.push(keywordPart(105 /* NewKeyword */)); displayParts.push(spacePart()); - } else if (declaration.kind !== 178 /* CallSignature */ && declaration.name) { + } else if (declaration.kind !== 179 /* CallSignature */ && declaration.name) { addFullSymbolName(declaration.symbol); } addRange(displayParts, signatureToDisplayParts(typeChecker, signature, sourceFile, 32 /* WriteTypeArgumentsOfSignature */)); @@ -164718,7 +167113,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} symbolKind = "enum member" /* enumMemberElement */; addPrefixForAnyFunctionOrVar(symbol, "enum member"); const declaration = (_a = symbol.declarations) == null ? void 0 : _a[0]; - if ((declaration == null ? void 0 : declaration.kind) === 305 /* EnumMember */) { + if ((declaration == null ? void 0 : declaration.kind) === 306 /* EnumMember */) { const constantValue = typeChecker.getConstantValue(declaration); if (constantValue !== void 0) { displayParts.push(spacePart()); @@ -164741,12 +167136,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} if (declarationName && !hasAddedSymbolInfo) { const isExternalModuleDeclaration = isModuleWithStringLiteralName(resolvedNode) && hasSyntacticModifier(resolvedNode, 2 /* Ambient */); const shouldUseAliasName = symbol.name !== "default" && !isExternalModuleDeclaration; - const resolvedInfo = getSymbolDisplayPartsDocumentationAndSymbolKind( + const resolvedInfo = getSymbolDisplayPartsDocumentationAndSymbolKindWorker( typeChecker, resolvedSymbol, getSourceFileOfNode(resolvedNode), resolvedNode, declarationName, + type, semanticMeaning, shouldUseAliasName ? symbol : resolvedSymbol ); @@ -164762,17 +167158,17 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } if (symbol.declarations) { switch (symbol.declarations[0].kind) { - case 269 /* NamespaceExportDeclaration */: + case 270 /* NamespaceExportDeclaration */: displayParts.push(keywordPart(95 /* ExportKeyword */)); displayParts.push(spacePart()); displayParts.push(keywordPart(145 /* NamespaceKeyword */)); break; - case 276 /* ExportAssignment */: + case 277 /* ExportAssignment */: displayParts.push(keywordPart(95 /* ExportKeyword */)); displayParts.push(spacePart()); displayParts.push(keywordPart(symbol.declarations[0].isExportEquals ? 64 /* EqualsToken */ : 90 /* DefaultKeyword */)); break; - case 280 /* ExportSpecifier */: + case 281 /* ExportSpecifier */: displayParts.push(keywordPart(95 /* ExportKeyword */)); break; default: @@ -164782,7 +167178,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} displayParts.push(spacePart()); addFullSymbolName(symbol); forEach(symbol.declarations, (declaration) => { - if (declaration.kind === 270 /* ImportEqualsDeclaration */) { + if (declaration.kind === 271 /* ImportEqualsDeclaration */) { const importEqualsDeclaration = declaration; if (isExternalModuleImportEqualsDeclaration(importEqualsDeclaration)) { displayParts.push(spacePart()); @@ -164814,7 +167210,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} } else { addPrefixForAnyFunctionOrVar(symbol, symbolKind); } - if (symbolKind === "property" /* memberVariableElement */ || symbolKind === "accessor" /* memberAccessorVariableElement */ || symbolKind === "getter" /* memberGetAccessorElement */ || symbolKind === "setter" /* memberSetAccessorElement */ || symbolKind === "JSX attribute" /* jsxAttribute */ || symbolFlags & 3 /* Variable */ || symbolKind === "local var" /* localVariableElement */ || symbolKind === "index" /* indexSignatureElement */ || isThisExpression) { + if (symbolKind === "property" /* memberVariableElement */ || symbolKind === "accessor" /* memberAccessorVariableElement */ || symbolKind === "getter" /* memberGetAccessorElement */ || symbolKind === "setter" /* memberSetAccessorElement */ || symbolKind === "JSX attribute" /* jsxAttribute */ || symbolFlags & 3 /* Variable */ || symbolKind === "local var" /* localVariableElement */ || symbolKind === "index" /* indexSignatureElement */ || symbolKind === "using" /* variableUsingElement */ || symbolKind === "await using" /* variableAwaitUsingElement */ || isThisExpression) { displayParts.push(punctuationPart(59 /* ColonToken */)); displayParts.push(spacePart()); if (type.symbol && type.symbol.flags & 262144 /* TypeParameter */ && symbolKind !== "index" /* indexSignatureElement */) { @@ -164850,9 +167246,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} documentation = symbol.getContextualDocumentationComment(enclosingDeclaration, typeChecker); } if (documentation.length === 0 && symbolFlags & 4 /* Property */) { - if (symbol.parent && symbol.declarations && forEach(symbol.parent.declarations, (declaration) => declaration.kind === 311 /* SourceFile */)) { + if (symbol.parent && symbol.declarations && forEach(symbol.parent.declarations, (declaration) => declaration.kind === 312 /* SourceFile */)) { for (const declaration of symbol.declarations) { - if (!declaration.parent || declaration.parent.kind !== 225 /* BinaryExpression */) { + if (!declaration.parent || declaration.parent.kind !== 226 /* BinaryExpression */) { continue; } const rhsSymbol = typeChecker.getSymbolAtLocation(declaration.parent.right); @@ -164964,6 +167360,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} case "let" /* letElement */: case "const" /* constElement */: case "constructor" /* constructorImplementationElement */: + case "using" /* variableUsingElement */: + case "await using" /* variableAwaitUsingElement */: displayParts.push(textOrKeywordPart(symbolKind2)); return; default: @@ -164999,19 +167397,32 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} addRange(displayParts, typeParameterParts); } } + function getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, symbol, sourceFile, enclosingDeclaration, location, semanticMeaning = getMeaningFromLocation(location), alias) { + return getSymbolDisplayPartsDocumentationAndSymbolKindWorker( + typeChecker, + symbol, + sourceFile, + enclosingDeclaration, + location, + /*type*/ + void 0, + semanticMeaning, + alias + ); + } function isLocalVariableOrFunction(symbol) { if (symbol.parent) { return false; } return forEach(symbol.declarations, (declaration) => { - if (declaration.kind === 217 /* FunctionExpression */) { + if (declaration.kind === 218 /* FunctionExpression */) { return true; } - if (declaration.kind !== 259 /* VariableDeclaration */ && declaration.kind !== 261 /* FunctionDeclaration */) { + if (declaration.kind !== 260 /* VariableDeclaration */ && declaration.kind !== 262 /* FunctionDeclaration */) { return false; } for (let parent2 = declaration.parent; !isFunctionBlock(parent2); parent2 = parent2.parent) { - if (parent2.kind === 311 /* SourceFile */ || parent2.kind === 267 /* ModuleBlock */) { + if (parent2.kind === 312 /* SourceFile */ || parent2.kind === 268 /* ModuleBlock */) { return false; } } @@ -165185,16 +167596,16 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return newEnd !== end && (trailingTriviaOption === 2 /* Include */ || isLineBreak(sourceFile.text.charCodeAt(newEnd - 1))) ? newEnd : end; } function isSeparator(node, candidate) { - return !!candidate && !!node.parent && (candidate.kind === 28 /* CommaToken */ || candidate.kind === 27 /* SemicolonToken */ && node.parent.kind === 209 /* ObjectLiteralExpression */); + return !!candidate && !!node.parent && (candidate.kind === 28 /* CommaToken */ || candidate.kind === 27 /* SemicolonToken */ && node.parent.kind === 210 /* ObjectLiteralExpression */); } function isThisTypeAnnotatable(containingFunction) { return isFunctionExpression(containingFunction) || isFunctionDeclaration(containingFunction); } function updateJSDocHost(parent2) { - if (parent2.kind !== 218 /* ArrowFunction */) { + if (parent2.kind !== 219 /* ArrowFunction */) { return parent2; } - const jsDocNode = parent2.parent.kind === 171 /* PropertyDeclaration */ ? parent2.parent : parent2.parent.parent; + const jsDocNode = parent2.parent.kind === 172 /* PropertyDeclaration */ ? parent2.parent : parent2.parent.parent; jsDocNode.jsDoc = parent2.jsDoc; return jsDocNode; } @@ -165203,7 +167614,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return void 0; } switch (oldTag.kind) { - case 347 /* JSDocParameterTag */: { + case 348 /* JSDocParameterTag */: { const oldParam = oldTag; const newParam = newTag; return isIdentifier(oldParam.name) && isIdentifier(newParam.name) && oldParam.name.escapedText === newParam.name.escapedText ? factory.createJSDocParameterTag( @@ -165217,14 +167628,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} oldParam.comment ) : void 0; } - case 348 /* JSDocReturnTag */: + case 349 /* JSDocReturnTag */: return factory.createJSDocReturnTag( /*tagName*/ void 0, newTag.typeExpression, oldTag.comment ); - case 350 /* JSDocTypeTag */: + case 351 /* JSDocTypeTag */: return factory.createJSDocTypeTag( /*tagName*/ void 0, @@ -165585,7 +167996,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} return !isInComment(sourceFile, position) && !isInString(sourceFile, position) && !isInTemplateString(sourceFile, position) && !isInJSXText(sourceFile, position); } function needSemicolonBetween(a, b) { - return (isPropertySignature(a) || isPropertyDeclaration(a)) && isClassOrTypeElement(b) && b.name.kind === 166 /* ComputedPropertyName */ || isStatementButNotDeclaration(a) && isStatementButNotDeclaration(b); + return (isPropertySignature(a) || isPropertyDeclaration(a)) && isClassOrTypeElement(b) && b.name.kind === 167 /* ComputedPropertyName */ || isStatementButNotDeclaration(a) && isStatementButNotDeclaration(b); } function deleteNode(changes, sourceFile, node, options = { leadingTriviaOption: 1 /* IncludeAll */ }) { const startPosition = getAdjustedStartPosition(sourceFile, node, options); @@ -165629,7 +168040,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} leadingTriviaOption: 0 /* Exclude */, trailingTriviaOption: 0 /* Exclude */ }; - ChangeTracker = class { + ChangeTracker = class _ChangeTracker { /** Public for tests only. Other callers should use `ChangeTracker.with`. */ constructor(newLineCharacter, formatContext) { this.newLineCharacter = newLineCharacter; @@ -165640,10 +168051,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} this.deletedNodes = []; } static fromContext(context) { - return new ChangeTracker(getNewLineOrDefaultFromHost(context.host, context.formatContext.options), context.formatContext); + return new _ChangeTracker(getNewLineOrDefaultFromHost(context.host, context.formatContext.options), context.formatContext); } static with(context, cb) { - const tracker = ChangeTracker.fromContext(context); + const tracker = _ChangeTracker.fromContext(context); cb(tracker); return tracker.getChanges(); } @@ -165778,6 +168189,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} insertNodeBefore(sourceFile, before, newNode, blankLineBetween = false, options = {}) { this.insertNodeAt(sourceFile, getAdjustedStartPosition(sourceFile, before, options), newNode, this.getOptionsForInsertNodeBefore(before, newNode, blankLineBetween)); } + insertNodesBefore(sourceFile, before, newNodes, blankLineBetween = false, options = {}) { + this.insertNodesAt(sourceFile, getAdjustedStartPosition(sourceFile, before, options), newNodes, this.getOptionsForInsertNodeBefore(before, first(newNodes), blankLineBetween)); + } insertModifierAt(sourceFile, pos, modifier, options = {}) { this.insertNodeAt(sourceFile, pos, factory.createToken(modifier), options); } @@ -165850,7 +168264,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")} endNode2 = first(node.parameters); } } else { - endNode2 = (node.kind === 259 /* VariableDeclaration */ ? node.exclamationToken : node.questionToken) ?? node.name; + endNode2 = (node.kind === 260 /* VariableDeclaration */ ? node.exclamationToken : node.questionToken) ?? node.name; } this.insertNodeAt(sourceFile, endNode2.end, type, { prefix: ": " }); return true; @@ -165998,18 +168412,18 @@ ${options.prefix}` : "\n" : options.prefix } getInsertNodeAfterOptionsWorker(node) { switch (node.kind) { - case 262 /* ClassDeclaration */: - case 266 /* ModuleDeclaration */: + case 263 /* ClassDeclaration */: + case 267 /* ModuleDeclaration */: return { prefix: this.newLineCharacter, suffix: this.newLineCharacter }; - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: case 11 /* StringLiteral */: case 80 /* Identifier */: return { prefix: ", " }; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return { suffix: "," + this.newLineCharacter }; case 95 /* ExportKeyword */: return { prefix: " " }; - case 168 /* Parameter */: + case 169 /* Parameter */: return {}; default: Debug.assert(isStatement(node) || isClassOrTypeElement(node)); @@ -166018,7 +168432,7 @@ ${options.prefix}` : "\n" : options.prefix } insertName(sourceFile, node, name) { Debug.assert(!node.name); - if (node.kind === 218 /* ArrowFunction */) { + if (node.kind === 219 /* ArrowFunction */) { const arrow = findChildOfKind(node, 39 /* EqualsGreaterThanToken */, sourceFile); const lparen = findChildOfKind(node, 21 /* OpenParenToken */, sourceFile); if (lparen) { @@ -166028,12 +168442,12 @@ ${options.prefix}` : "\n" : options.prefix this.insertText(sourceFile, first(node.parameters).getStart(sourceFile), `function ${name}(`); this.replaceRange(sourceFile, arrow, factory.createToken(22 /* CloseParenToken */)); } - if (node.body.kind !== 240 /* Block */) { + if (node.body.kind !== 241 /* Block */) { this.insertNodesAt(sourceFile, node.body.getStart(sourceFile), [factory.createToken(19 /* OpenBraceToken */), factory.createToken(107 /* ReturnKeyword */)], { joiner: " ", suffix: " " }); this.insertNodesAt(sourceFile, node.body.end, [factory.createToken(27 /* SemicolonToken */), factory.createToken(20 /* CloseBraceToken */)], { joiner: " " }); } } else { - const pos = findChildOfKind(node, node.kind === 217 /* FunctionExpression */ ? 100 /* FunctionKeyword */ : 86 /* ClassKeyword */, sourceFile).end; + const pos = findChildOfKind(node, node.kind === 218 /* FunctionExpression */ ? 100 /* FunctionKeyword */ : 86 /* ClassKeyword */, sourceFile).end; this.insertNodeAt(sourceFile, pos, factory.createIdentifier(name), { prefix: " " }); } } @@ -166268,7 +168682,7 @@ ${options.prefix}` : "\n" : options.prefix ((_deleteDeclaration) => { function deleteDeclaration2(changes, deletedNodesInLists, sourceFile, node) { switch (node.kind) { - case 168 /* Parameter */: { + case 169 /* Parameter */: { const oldFunction = node.parent; if (isArrowFunction(oldFunction) && oldFunction.parameters.length === 1 && !findChildOfKind(oldFunction, 21 /* OpenParenToken */, sourceFile)) { changes.replaceNodeWithText(sourceFile, node, "()"); @@ -166277,29 +168691,29 @@ ${options.prefix}` : "\n" : options.prefix } break; } - case 271 /* ImportDeclaration */: - case 270 /* ImportEqualsDeclaration */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: const isFirstImport = sourceFile.imports.length && node === first(sourceFile.imports).parent || node === find(sourceFile.statements, isAnyImportSyntax); deleteNode(changes, sourceFile, node, { leadingTriviaOption: isFirstImport ? 0 /* Exclude */ : hasJSDocNodes(node) ? 2 /* JSDoc */ : 3 /* StartLine */ }); break; - case 207 /* BindingElement */: + case 208 /* BindingElement */: const pattern = node.parent; - const preserveComma = pattern.kind === 206 /* ArrayBindingPattern */ && node !== last(pattern.elements); + const preserveComma = pattern.kind === 207 /* ArrayBindingPattern */ && node !== last(pattern.elements); if (preserveComma) { deleteNode(changes, sourceFile, node); } else { deleteNodeInList(changes, deletedNodesInLists, sourceFile, node); } break; - case 259 /* VariableDeclaration */: + case 260 /* VariableDeclaration */: deleteVariableDeclaration(changes, deletedNodesInLists, sourceFile, node); break; - case 167 /* TypeParameter */: + case 168 /* TypeParameter */: deleteNodeInList(changes, deletedNodesInLists, sourceFile, node); break; - case 275 /* ImportSpecifier */: + case 276 /* ImportSpecifier */: const namedImports = node.parent; if (namedImports.elements.length === 1) { deleteImportBinding(changes, sourceFile, namedImports); @@ -166307,7 +168721,7 @@ ${options.prefix}` : "\n" : options.prefix deleteNodeInList(changes, deletedNodesInLists, sourceFile, node); } break; - case 273 /* NamespaceImport */: + case 274 /* NamespaceImport */: deleteImportBinding(changes, sourceFile, node); break; case 27 /* SemicolonToken */: @@ -166316,8 +168730,8 @@ ${options.prefix}` : "\n" : options.prefix case 100 /* FunctionKeyword */: deleteNode(changes, sourceFile, node, { leadingTriviaOption: 0 /* Exclude */ }); break; - case 262 /* ClassDeclaration */: - case 261 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: + case 262 /* FunctionDeclaration */: deleteNode(changes, sourceFile, node, { leadingTriviaOption: hasJSDocNodes(node) ? 2 /* JSDoc */ : 3 /* StartLine */ }); break; default: @@ -166359,13 +168773,13 @@ ${options.prefix}` : "\n" : options.prefix const previousToken = Debug.checkDefined(getTokenAtPosition(sourceFile, node.pos - 1)); changes.deleteRange(sourceFile, { pos: previousToken.getStart(sourceFile), end: node.end }); } else { - const importDecl = getAncestor(node, 271 /* ImportDeclaration */); + const importDecl = getAncestor(node, 272 /* ImportDeclaration */); deleteNode(changes, sourceFile, importDecl); } } function deleteVariableDeclaration(changes, deletedNodesInLists, sourceFile, node) { const { parent: parent2 } = node; - if (parent2.kind === 298 /* CatchClause */) { + if (parent2.kind === 299 /* CatchClause */) { changes.deleteNodeRange(sourceFile, findChildOfKind(parent2, 21 /* OpenParenToken */, sourceFile), findChildOfKind(parent2, 22 /* CloseParenToken */, sourceFile)); return; } @@ -166375,14 +168789,14 @@ ${options.prefix}` : "\n" : options.prefix } const gp = parent2.parent; switch (gp.kind) { - case 249 /* ForOfStatement */: - case 248 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 249 /* ForInStatement */: changes.replaceNode(sourceFile, node, factory.createObjectLiteralExpression()); break; - case 247 /* ForStatement */: + case 248 /* ForStatement */: deleteNode(changes, sourceFile, parent2); break; - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: deleteNode(changes, sourceFile, gp, { leadingTriviaOption: hasJSDocNodes(gp) ? 2 /* JSDoc */ : 3 /* StartLine */ }); break; default: @@ -166565,10 +168979,10 @@ ${options.prefix}` : "\n" : options.prefix function shouldRescanJsxIdentifier(node) { if (node.parent) { switch (node.parent.kind) { - case 290 /* JsxAttribute */: - case 285 /* JsxOpeningElement */: - case 286 /* JsxClosingElement */: - case 284 /* JsxSelfClosingElement */: + case 291 /* JsxAttribute */: + case 286 /* JsxOpeningElement */: + case 287 /* JsxClosingElement */: + case 285 /* JsxSelfClosingElement */: return isKeyword(node.kind) || node.kind === 80 /* Identifier */; } } @@ -166769,7 +169183,7 @@ ${options.prefix}` : "\n" : options.prefix // src/services/formatting/rules.ts function getAllRules() { const allTokens = []; - for (let token = 0 /* FirstToken */; token <= 164 /* LastToken */; token++) { + for (let token = 0 /* FirstToken */; token <= 165 /* LastToken */; token++) { if (token !== 1 /* EndOfFileToken */) { allTokens.push(token); } @@ -166780,12 +169194,12 @@ ${options.prefix}` : "\n" : options.prefix const anyToken = { tokens: allTokens, isSpecific: false }; const anyTokenIncludingMultilineComments = tokenRangeFrom([...allTokens, 3 /* MultiLineCommentTrivia */]); const anyTokenIncludingEOF = tokenRangeFrom([...allTokens, 1 /* EndOfFileToken */]); - const keywords = tokenRangeFromRange(83 /* FirstKeyword */, 164 /* LastKeyword */); + const keywords = tokenRangeFromRange(83 /* FirstKeyword */, 165 /* LastKeyword */); const binaryOperators = tokenRangeFromRange(30 /* FirstBinaryOperator */, 79 /* LastBinaryOperator */); const binaryKeywordOperators = [ 103 /* InKeyword */, 104 /* InstanceOfKeyword */, - 164 /* OfKeyword */, + 165 /* OfKeyword */, 130 /* AsKeyword */, 142 /* IsKeyword */, 152 /* SatisfiesKeyword */ @@ -166914,7 +169328,7 @@ ${options.prefix}` : "\n" : options.prefix 153 /* SetKeyword */, 126 /* StaticKeyword */, 156 /* TypeKeyword */, - 160 /* FromKeyword */, + 161 /* FromKeyword */, 143 /* KeyOfKeyword */, 140 /* InferKeyword */ ], @@ -166925,7 +169339,7 @@ ${options.prefix}` : "\n" : options.prefix rule( "SpaceBeforeCertainTypeScriptKeywords", anyToken, - [96 /* ExtendsKeyword */, 119 /* ImplementsKeyword */, 160 /* FromKeyword */], + [96 /* ExtendsKeyword */, 119 /* ImplementsKeyword */, 161 /* FromKeyword */], [isNonJsxSameLineTokenContext], 4 /* InsertSpace */ ), @@ -167115,40 +169529,40 @@ ${options.prefix}` : "\n" : options.prefix return (context) => !context.options || !hasProperty(context.options, optionName) || !!context.options[optionName]; } function isForContext(context) { - return context.contextNode.kind === 247 /* ForStatement */; + return context.contextNode.kind === 248 /* ForStatement */; } function isNotForContext(context) { return !isForContext(context); } function isBinaryOpContext(context) { switch (context.contextNode.kind) { - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: return context.contextNode.operatorToken.kind !== 28 /* CommaToken */; - case 226 /* ConditionalExpression */: - case 193 /* ConditionalType */: - case 233 /* AsExpression */: - case 280 /* ExportSpecifier */: - case 275 /* ImportSpecifier */: - case 181 /* TypePredicate */: - case 191 /* UnionType */: - case 192 /* IntersectionType */: - case 237 /* SatisfiesExpression */: + case 227 /* ConditionalExpression */: + case 194 /* ConditionalType */: + case 234 /* AsExpression */: + case 281 /* ExportSpecifier */: + case 276 /* ImportSpecifier */: + case 182 /* TypePredicate */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: + case 238 /* SatisfiesExpression */: return true; - case 207 /* BindingElement */: - case 264 /* TypeAliasDeclaration */: - case 270 /* ImportEqualsDeclaration */: - case 276 /* ExportAssignment */: - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 305 /* EnumMember */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: + case 208 /* BindingElement */: + case 265 /* TypeAliasDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 277 /* ExportAssignment */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 306 /* EnumMember */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: return context.currentTokenSpan.kind === 64 /* EqualsToken */ || context.nextTokenSpan.kind === 64 /* EqualsToken */; - case 248 /* ForInStatement */: - case 167 /* TypeParameter */: + case 249 /* ForInStatement */: + case 168 /* TypeParameter */: return context.currentTokenSpan.kind === 103 /* InKeyword */ || context.nextTokenSpan.kind === 103 /* InKeyword */ || context.currentTokenSpan.kind === 64 /* EqualsToken */ || context.nextTokenSpan.kind === 64 /* EqualsToken */; - case 249 /* ForOfStatement */: - return context.currentTokenSpan.kind === 164 /* OfKeyword */ || context.nextTokenSpan.kind === 164 /* OfKeyword */; + case 250 /* ForOfStatement */: + return context.currentTokenSpan.kind === 165 /* OfKeyword */ || context.nextTokenSpan.kind === 165 /* OfKeyword */; } return false; } @@ -167160,16 +169574,16 @@ ${options.prefix}` : "\n" : options.prefix } function isTypeAnnotationContext(context) { const contextKind = context.contextNode.kind; - return contextKind === 171 /* PropertyDeclaration */ || contextKind === 170 /* PropertySignature */ || contextKind === 168 /* Parameter */ || contextKind === 259 /* VariableDeclaration */ || isFunctionLikeKind(contextKind); + return contextKind === 172 /* PropertyDeclaration */ || contextKind === 171 /* PropertySignature */ || contextKind === 169 /* Parameter */ || contextKind === 260 /* VariableDeclaration */ || isFunctionLikeKind(contextKind); } function isConditionalOperatorContext(context) { - return context.contextNode.kind === 226 /* ConditionalExpression */ || context.contextNode.kind === 193 /* ConditionalType */; + return context.contextNode.kind === 227 /* ConditionalExpression */ || context.contextNode.kind === 194 /* ConditionalType */; } function isSameLineTokenOrBeforeBlockContext(context) { return context.TokensAreOnSameLine() || isBeforeBlockContext(context); } function isBraceWrappedContext(context) { - return context.contextNode.kind === 205 /* ObjectBindingPattern */ || context.contextNode.kind === 199 /* MappedType */ || isSingleLineBlockContext(context); + return context.contextNode.kind === 206 /* ObjectBindingPattern */ || context.contextNode.kind === 200 /* MappedType */ || isSingleLineBlockContext(context); } function isBeforeMultilineBlockContext(context) { return isBeforeBlockContext(context) && !(context.NextNodeAllOnSameLine() || context.NextNodeBlockIsOnOneLine()); @@ -167191,26 +169605,26 @@ ${options.prefix}` : "\n" : options.prefix return true; } switch (node.kind) { - case 240 /* Block */: - case 268 /* CaseBlock */: - case 209 /* ObjectLiteralExpression */: - case 267 /* ModuleBlock */: + case 241 /* Block */: + case 269 /* CaseBlock */: + case 210 /* ObjectLiteralExpression */: + case 268 /* ModuleBlock */: return true; } return false; } function isFunctionDeclContext(context) { switch (context.contextNode.kind) { - case 261 /* FunctionDeclaration */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 178 /* CallSignature */: - case 217 /* FunctionExpression */: - case 175 /* Constructor */: - case 218 /* ArrowFunction */: - case 263 /* InterfaceDeclaration */: + case 262 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 179 /* CallSignature */: + case 218 /* FunctionExpression */: + case 176 /* Constructor */: + case 219 /* ArrowFunction */: + case 264 /* InterfaceDeclaration */: return true; } return false; @@ -167219,39 +169633,39 @@ ${options.prefix}` : "\n" : options.prefix return !isFunctionDeclContext(context); } function isFunctionDeclarationOrFunctionExpressionContext(context) { - return context.contextNode.kind === 261 /* FunctionDeclaration */ || context.contextNode.kind === 217 /* FunctionExpression */; + return context.contextNode.kind === 262 /* FunctionDeclaration */ || context.contextNode.kind === 218 /* FunctionExpression */; } function isTypeScriptDeclWithBlockContext(context) { return nodeIsTypeScriptDeclWithBlockContext(context.contextNode); } function nodeIsTypeScriptDeclWithBlockContext(node) { switch (node.kind) { - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: - case 186 /* TypeLiteral */: - case 266 /* ModuleDeclaration */: - case 277 /* ExportDeclaration */: - case 278 /* NamedExports */: - case 271 /* ImportDeclaration */: - case 274 /* NamedImports */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + case 187 /* TypeLiteral */: + case 267 /* ModuleDeclaration */: + case 278 /* ExportDeclaration */: + case 279 /* NamedExports */: + case 272 /* ImportDeclaration */: + case 275 /* NamedImports */: return true; } return false; } function isAfterCodeBlockContext(context) { switch (context.currentTokenParent.kind) { - case 262 /* ClassDeclaration */: - case 266 /* ModuleDeclaration */: - case 265 /* EnumDeclaration */: - case 298 /* CatchClause */: - case 267 /* ModuleBlock */: - case 254 /* SwitchStatement */: + case 263 /* ClassDeclaration */: + case 267 /* ModuleDeclaration */: + case 266 /* EnumDeclaration */: + case 299 /* CatchClause */: + case 268 /* ModuleBlock */: + case 255 /* SwitchStatement */: return true; - case 240 /* Block */: { + case 241 /* Block */: { const blockParent = context.currentTokenParent.parent; - if (!blockParent || blockParent.kind !== 218 /* ArrowFunction */ && blockParent.kind !== 217 /* FunctionExpression */) { + if (!blockParent || blockParent.kind !== 219 /* ArrowFunction */ && blockParent.kind !== 218 /* FunctionExpression */) { return true; } } @@ -167260,29 +169674,29 @@ ${options.prefix}` : "\n" : options.prefix } function isControlDeclContext(context) { switch (context.contextNode.kind) { - case 244 /* IfStatement */: - case 254 /* SwitchStatement */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 246 /* WhileStatement */: - case 257 /* TryStatement */: - case 245 /* DoStatement */: - case 253 /* WithStatement */: - case 298 /* CatchClause */: + case 245 /* IfStatement */: + case 255 /* SwitchStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 247 /* WhileStatement */: + case 258 /* TryStatement */: + case 246 /* DoStatement */: + case 254 /* WithStatement */: + case 299 /* CatchClause */: return true; default: return false; } } function isObjectContext(context) { - return context.contextNode.kind === 209 /* ObjectLiteralExpression */; + return context.contextNode.kind === 210 /* ObjectLiteralExpression */; } function isFunctionCallContext(context) { - return context.contextNode.kind === 212 /* CallExpression */; + return context.contextNode.kind === 213 /* CallExpression */; } function isNewContext(context) { - return context.contextNode.kind === 213 /* NewExpression */; + return context.contextNode.kind === 214 /* NewExpression */; } function isFunctionCallOrNewContext(context) { return isFunctionCallContext(context) || isNewContext(context); @@ -167297,10 +169711,10 @@ ${options.prefix}` : "\n" : options.prefix return context.nextTokenSpan.kind !== 22 /* CloseParenToken */; } function isArrowFunctionContext(context) { - return context.contextNode.kind === 218 /* ArrowFunction */; + return context.contextNode.kind === 219 /* ArrowFunction */; } function isImportTypeContext(context) { - return context.contextNode.kind === 204 /* ImportType */; + return context.contextNode.kind === 205 /* ImportType */; } function isNonJsxSameLineTokenContext(context) { return context.TokensAreOnSameLine() && context.contextNode.kind !== 12 /* JsxText */; @@ -167309,19 +169723,19 @@ ${options.prefix}` : "\n" : options.prefix return context.contextNode.kind !== 12 /* JsxText */; } function isNonJsxElementOrFragmentContext(context) { - return context.contextNode.kind !== 283 /* JsxElement */ && context.contextNode.kind !== 287 /* JsxFragment */; + return context.contextNode.kind !== 284 /* JsxElement */ && context.contextNode.kind !== 288 /* JsxFragment */; } function isJsxExpressionContext(context) { - return context.contextNode.kind === 293 /* JsxExpression */ || context.contextNode.kind === 292 /* JsxSpreadAttribute */; + return context.contextNode.kind === 294 /* JsxExpression */ || context.contextNode.kind === 293 /* JsxSpreadAttribute */; } function isNextTokenParentJsxAttribute(context) { - return context.nextTokenParent.kind === 290 /* JsxAttribute */; + return context.nextTokenParent.kind === 291 /* JsxAttribute */; } function isJsxAttributeContext(context) { - return context.contextNode.kind === 290 /* JsxAttribute */; + return context.contextNode.kind === 291 /* JsxAttribute */; } function isJsxSelfClosingElementContext(context) { - return context.contextNode.kind === 284 /* JsxSelfClosingElement */; + return context.contextNode.kind === 285 /* JsxSelfClosingElement */; } function isNotBeforeBlockInFunctionDeclarationContext(context) { return !isFunctionDeclContext(context) && !isBeforeBlockContext(context); @@ -167333,44 +169747,44 @@ ${options.prefix}` : "\n" : options.prefix while (node && isExpression(node)) { node = node.parent; } - return node && node.kind === 169 /* Decorator */; + return node && node.kind === 170 /* Decorator */; } function isStartOfVariableDeclarationList(context) { - return context.currentTokenParent.kind === 260 /* VariableDeclarationList */ && context.currentTokenParent.getStart(context.sourceFile) === context.currentTokenSpan.pos; + return context.currentTokenParent.kind === 261 /* VariableDeclarationList */ && context.currentTokenParent.getStart(context.sourceFile) === context.currentTokenSpan.pos; } function isNotFormatOnEnter(context) { return context.formattingRequestKind !== 2 /* FormatOnEnter */; } function isModuleDeclContext(context) { - return context.contextNode.kind === 266 /* ModuleDeclaration */; + return context.contextNode.kind === 267 /* ModuleDeclaration */; } function isObjectTypeContext(context) { - return context.contextNode.kind === 186 /* TypeLiteral */; + return context.contextNode.kind === 187 /* TypeLiteral */; } function isConstructorSignatureContext(context) { - return context.contextNode.kind === 179 /* ConstructSignature */; + return context.contextNode.kind === 180 /* ConstructSignature */; } function isTypeArgumentOrParameterOrAssertion(token, parent2) { if (token.kind !== 30 /* LessThanToken */ && token.kind !== 32 /* GreaterThanToken */) { return false; } switch (parent2.kind) { - case 182 /* TypeReference */: - case 215 /* TypeAssertionExpression */: - case 264 /* TypeAliasDeclaration */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 232 /* ExpressionWithTypeArguments */: + case 183 /* TypeReference */: + case 216 /* TypeAssertionExpression */: + case 265 /* TypeAliasDeclaration */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 233 /* ExpressionWithTypeArguments */: return true; default: return false; @@ -167380,31 +169794,31 @@ ${options.prefix}` : "\n" : options.prefix return isTypeArgumentOrParameterOrAssertion(context.currentTokenSpan, context.currentTokenParent) || isTypeArgumentOrParameterOrAssertion(context.nextTokenSpan, context.nextTokenParent); } function isTypeAssertionContext(context) { - return context.contextNode.kind === 215 /* TypeAssertionExpression */; + return context.contextNode.kind === 216 /* TypeAssertionExpression */; } function isNonTypeAssertionContext(context) { return !isTypeAssertionContext(context); } function isVoidOpContext(context) { - return context.currentTokenSpan.kind === 116 /* VoidKeyword */ && context.currentTokenParent.kind === 221 /* VoidExpression */; + return context.currentTokenSpan.kind === 116 /* VoidKeyword */ && context.currentTokenParent.kind === 222 /* VoidExpression */; } function isYieldOrYieldStarWithOperand(context) { - return context.contextNode.kind === 228 /* YieldExpression */ && context.contextNode.expression !== void 0; + return context.contextNode.kind === 229 /* YieldExpression */ && context.contextNode.expression !== void 0; } function isNonNullAssertionContext(context) { - return context.contextNode.kind === 234 /* NonNullExpression */; + return context.contextNode.kind === 235 /* NonNullExpression */; } function isNotStatementConditionContext(context) { return !isStatementConditionContext(context); } function isStatementConditionContext(context) { switch (context.contextNode.kind) { - case 244 /* IfStatement */: - case 247 /* ForStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 245 /* DoStatement */: - case 246 /* WhileStatement */: + case 245 /* IfStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: return true; default: return false; @@ -167430,16 +169844,16 @@ ${options.prefix}` : "\n" : options.prefix if (startLine === endLine) { return nextTokenKind === 20 /* CloseBraceToken */ || nextTokenKind === 1 /* EndOfFileToken */; } - if (nextTokenKind === 239 /* SemicolonClassElement */ || nextTokenKind === 27 /* SemicolonToken */) { + if (nextTokenKind === 240 /* SemicolonClassElement */ || nextTokenKind === 27 /* SemicolonToken */) { return false; } - if (context.contextNode.kind === 263 /* InterfaceDeclaration */ || context.contextNode.kind === 264 /* TypeAliasDeclaration */) { + if (context.contextNode.kind === 264 /* InterfaceDeclaration */ || context.contextNode.kind === 265 /* TypeAliasDeclaration */) { return !isPropertySignature(context.currentTokenParent) || !!context.currentTokenParent.type || nextTokenKind !== 21 /* OpenParenToken */; } if (isPropertyDeclaration(context.currentTokenParent)) { return !context.currentTokenParent.initializer; } - return context.currentTokenParent.kind !== 247 /* ForStatement */ && context.currentTokenParent.kind !== 241 /* EmptyStatement */ && context.currentTokenParent.kind !== 239 /* SemicolonClassElement */ && nextTokenKind !== 23 /* OpenBracketToken */ && nextTokenKind !== 21 /* OpenParenToken */ && nextTokenKind !== 40 /* PlusToken */ && nextTokenKind !== 41 /* MinusToken */ && nextTokenKind !== 44 /* SlashToken */ && nextTokenKind !== 14 /* RegularExpressionLiteral */ && nextTokenKind !== 28 /* CommaToken */ && nextTokenKind !== 227 /* TemplateExpression */ && nextTokenKind !== 16 /* TemplateHead */ && nextTokenKind !== 15 /* NoSubstitutionTemplateLiteral */ && nextTokenKind !== 25 /* DotToken */; + return context.currentTokenParent.kind !== 248 /* ForStatement */ && context.currentTokenParent.kind !== 242 /* EmptyStatement */ && context.currentTokenParent.kind !== 240 /* SemicolonClassElement */ && nextTokenKind !== 23 /* OpenBracketToken */ && nextTokenKind !== 21 /* OpenParenToken */ && nextTokenKind !== 40 /* PlusToken */ && nextTokenKind !== 41 /* MinusToken */ && nextTokenKind !== 44 /* SlashToken */ && nextTokenKind !== 14 /* RegularExpressionLiteral */ && nextTokenKind !== 28 /* CommaToken */ && nextTokenKind !== 228 /* TemplateExpression */ && nextTokenKind !== 16 /* TemplateHead */ && nextTokenKind !== 15 /* NoSubstitutionTemplateLiteral */ && nextTokenKind !== 25 /* DotToken */; } function isSemicolonInsertionContext(context) { return positionIsASICandidate(context.currentTokenSpan.end, context.currentTokenParent, context.sourceFile); @@ -167520,7 +169934,7 @@ ${options.prefix}` : "\n" : options.prefix return map2; } function getRuleBucketIndex(row, column) { - Debug.assert(row <= 164 /* LastKeyword */ && column <= 164 /* LastKeyword */, "Must compute formatting context from tokens"); + Debug.assert(row <= 165 /* LastKeyword */ && column <= 165 /* LastKeyword */, "Must compute formatting context from tokens"); return row * mapRowLength + column; } function addRule(rules, rule2, specificTokens, constructionState, rulesBucketIndex) { @@ -167550,7 +169964,7 @@ ${options.prefix}` : "\n" : options.prefix init_ts_formatting(); maskBitSize = 5; mask = 31; - mapRowLength = 164 /* LastToken */ + 1; + mapRowLength = 165 /* LastToken */ + 1; RulesPosition = ((RulesPosition2) => { RulesPosition2[RulesPosition2["StopRulesSpecific"] = 0] = "StopRulesSpecific"; RulesPosition2[RulesPosition2["StopRulesAny"] = maskBitSize * 1] = "StopRulesAny"; @@ -167642,17 +170056,17 @@ ${options.prefix}` : "\n" : options.prefix } function isListElement(parent2, node) { switch (parent2.kind) { - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: return rangeContainsRange(parent2.members, node); - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: const body = parent2.body; - return !!body && body.kind === 267 /* ModuleBlock */ && rangeContainsRange(body.statements, node); - case 311 /* SourceFile */: - case 240 /* Block */: - case 267 /* ModuleBlock */: + return !!body && body.kind === 268 /* ModuleBlock */ && rangeContainsRange(body.statements, node); + case 312 /* SourceFile */: + case 241 /* Block */: + case 268 /* ModuleBlock */: return rangeContainsRange(parent2.statements, node); - case 298 /* CatchClause */: + case 299 /* CatchClause */: return rangeContainsRange(parent2.block.statements, node); } return false; @@ -167684,11 +170098,11 @@ ${options.prefix}` : "\n" : options.prefix if (index >= sorted.length) { return false; } - const error = sorted[index]; - if (r.end <= error.start) { + const error2 = sorted[index]; + if (r.end <= error2.start) { return false; } - if (startEndOverlapsWithStartEnd(r.pos, r.end, error.start, error.start + error.length)) { + if (startEndOverlapsWithStartEnd(r.pos, r.end, error2.start, error2.start + error2.length)) { return true; } index++; @@ -167793,7 +170207,8 @@ ${options.prefix}` : "\n" : options.prefix } processNode(enclosingNode, enclosingNode, startLine, undecoratedStartLine, initialIndentation, delta); } - if (!formattingScanner.isOnToken()) { + const remainingTrivia = formattingScanner.getCurrentLeadingTrivia(); + if (remainingTrivia) { const indentation = SmartIndenter.nodeWillIndentChild( options, enclosingNode, @@ -167803,25 +170218,30 @@ ${options.prefix}` : "\n" : options.prefix /*indentByDefault*/ false ) ? initialIndentation + options.indentSize : initialIndentation; - const leadingTrivia = formattingScanner.getCurrentLeadingTrivia(); - if (leadingTrivia) { - indentTriviaItems( - leadingTrivia, - indentation, - /*indentNextTokenOrTrivia*/ - false, - (item) => processRange( + indentTriviaItems( + remainingTrivia, + indentation, + /*indentNextTokenOrTrivia*/ + true, + (item) => { + processRange( item, sourceFile.getLineAndCharacterOfPosition(item.pos), enclosingNode, enclosingNode, /*dynamicIndentation*/ void 0 - ) - ); - if (options.trimTrailingWhitespace !== false) { - trimTrailingWhitespacesForRemainingRange(leadingTrivia); + ); + insertIndentation( + item.pos, + indentation, + /*lineAdded*/ + false + ); } + ); + if (options.trimTrailingWhitespace !== false) { + trimTrailingWhitespacesForRemainingRange(remainingTrivia); } } if (previousRange && formattingScanner.getTokenFullStart() >= originalRange.end) { @@ -167884,24 +170304,24 @@ ${options.prefix}` : "\n" : options.prefix return modifier.kind; } switch (node.kind) { - case 262 /* ClassDeclaration */: + case 263 /* ClassDeclaration */: return 86 /* ClassKeyword */; - case 263 /* InterfaceDeclaration */: + case 264 /* InterfaceDeclaration */: return 120 /* InterfaceKeyword */; - case 261 /* FunctionDeclaration */: + case 262 /* FunctionDeclaration */: return 100 /* FunctionKeyword */; - case 265 /* EnumDeclaration */: - return 265 /* EnumDeclaration */; - case 176 /* GetAccessor */: + case 266 /* EnumDeclaration */: + return 266 /* EnumDeclaration */; + case 177 /* GetAccessor */: return 139 /* GetKeyword */; - case 177 /* SetAccessor */: + case 178 /* SetAccessor */: return 153 /* SetKeyword */; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: if (node.asteriskToken) { return 42 /* AsteriskToken */; } - case 171 /* PropertyDeclaration */: - case 168 /* Parameter */: + case 172 /* PropertyDeclaration */: + case 169 /* Parameter */: const name = getNameOfDeclaration(node); if (name) { return name.kind; @@ -167951,15 +170371,15 @@ ${options.prefix}` : "\n" : options.prefix case 44 /* SlashToken */: case 32 /* GreaterThanToken */: switch (container.kind) { - case 285 /* JsxOpeningElement */: - case 286 /* JsxClosingElement */: - case 284 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 287 /* JsxClosingElement */: + case 285 /* JsxSelfClosingElement */: return false; } break; case 23 /* OpenBracketToken */: case 24 /* CloseBracketToken */: - if (container.kind !== 199 /* MappedType */) { + if (container.kind !== 200 /* MappedType */) { return false; } break; @@ -168060,11 +170480,11 @@ ${options.prefix}` : "\n" : options.prefix return inheritedIndentation; } } - const effectiveParentStartLine = child.kind === 169 /* Decorator */ ? childStartLine : undecoratedParentStartLine; + const effectiveParentStartLine = child.kind === 170 /* Decorator */ ? childStartLine : undecoratedParentStartLine; const childIndentation = computeIndentation(child, childStartLine, childIndentationAmount, node, parentDynamicIndentation, effectiveParentStartLine); processNode(child, childContextNode, childStartLine, undecoratedChildStartLine, childIndentation.indentation, childIndentation.delta); childContextNode = node; - if (isFirstListItem && parent2.kind === 208 /* ArrayLiteralExpression */ && inheritedIndentation === -1 /* Unknown */) { + if (isFirstListItem && parent2.kind === 209 /* ArrayLiteralExpression */ && inheritedIndentation === -1 /* Unknown */) { inheritedIndentation = childIndentation.indentation; } return inheritedIndentation; @@ -168485,50 +170905,50 @@ ${options.prefix}` : "\n" : options.prefix } function getOpenTokenForList(node, list) { switch (node.kind) { - case 175 /* Constructor */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 218 /* ArrowFunction */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 176 /* Constructor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 219 /* ArrowFunction */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: if (node.typeParameters === list) { return 30 /* LessThanToken */; } else if (node.parameters === list) { return 21 /* OpenParenToken */; } break; - case 212 /* CallExpression */: - case 213 /* NewExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: if (node.typeArguments === list) { return 30 /* LessThanToken */; } else if (node.arguments === list) { return 21 /* OpenParenToken */; } break; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: if (node.typeParameters === list) { return 30 /* LessThanToken */; } break; - case 182 /* TypeReference */: - case 214 /* TaggedTemplateExpression */: - case 185 /* TypeQuery */: - case 232 /* ExpressionWithTypeArguments */: - case 204 /* ImportType */: + case 183 /* TypeReference */: + case 215 /* TaggedTemplateExpression */: + case 186 /* TypeQuery */: + case 233 /* ExpressionWithTypeArguments */: + case 205 /* ImportType */: if (node.typeArguments === list) { return 30 /* LessThanToken */; } break; - case 186 /* TypeLiteral */: + case 187 /* TypeLiteral */: return 19 /* OpenBraceToken */; } return 0 /* Unknown */; @@ -168628,11 +171048,11 @@ ${options.prefix}` : "\n" : options.prefix } const lineAtPosition = sourceFile.getLineAndCharacterOfPosition(position).line; const currentToken = getTokenAtPosition(sourceFile, position); - const isObjectLiteral = currentToken.kind === 19 /* OpenBraceToken */ && currentToken.parent.kind === 209 /* ObjectLiteralExpression */; + const isObjectLiteral = currentToken.kind === 19 /* OpenBraceToken */ && currentToken.parent.kind === 210 /* ObjectLiteralExpression */; if (options.indentStyle === 1 /* Block */ || isObjectLiteral) { return getBlockIndent(sourceFile, position, options); } - if (precedingToken.kind === 28 /* CommaToken */ && precedingToken.parent.kind !== 225 /* BinaryExpression */) { + if (precedingToken.kind === 28 /* CommaToken */ && precedingToken.parent.kind !== 226 /* BinaryExpression */) { const actualIndentation = getActualIndentationForListItemBeforeComma(precedingToken, sourceFile, options); if (actualIndentation !== -1 /* Unknown */) { return actualIndentation; @@ -168640,7 +171060,7 @@ ${options.prefix}` : "\n" : options.prefix } const containerList = getListByPosition(position, precedingToken.parent, sourceFile); if (containerList && !rangeContainsRange(containerList, precedingToken)) { - const useTheSameBaseIndentation = [217 /* FunctionExpression */, 218 /* ArrowFunction */].indexOf(currentToken.parent.kind) !== -1; + const useTheSameBaseIndentation = [218 /* FunctionExpression */, 219 /* ArrowFunction */].indexOf(currentToken.parent.kind) !== -1; const indentSize = useTheSameBaseIndentation ? 0 : options.indentSize; return getActualIndentationForListStartLine(containerList, sourceFile, options) + indentSize; } @@ -168782,7 +171202,7 @@ ${options.prefix}` : "\n" : options.prefix } } function getActualIndentationForNode(current, parent2, currentLineAndChar, parentAndChildShareLine, sourceFile, options) { - const useActualIndentation = (isDeclaration(current) || isStatementButNotDeclaration(current)) && (parent2.kind === 311 /* SourceFile */ || !parentAndChildShareLine); + const useActualIndentation = (isDeclaration(current) || isStatementButNotDeclaration(current)) && (parent2.kind === 312 /* SourceFile */ || !parentAndChildShareLine); if (!useActualIndentation) { return -1 /* Unknown */; } @@ -168820,7 +171240,7 @@ ${options.prefix}` : "\n" : options.prefix } SmartIndenter2.isArgumentAndStartLineOverlapsExpressionBeingCalled = isArgumentAndStartLineOverlapsExpressionBeingCalled; function childStartsOnTheSameLineWithElseInIfStatement(parent2, child, childStartLine, sourceFile) { - if (parent2.kind === 244 /* IfStatement */ && parent2.elseStatement === child) { + if (parent2.kind === 245 /* IfStatement */ && parent2.elseStatement === child) { const elseKeyword = findChildOfKind(parent2, 93 /* ElseKeyword */, sourceFile); Debug.assert(elseKeyword !== void 0); const elseKeywordStartLine = getStartLineAndCharacterForNode(elseKeyword, sourceFile).line; @@ -168871,42 +171291,42 @@ ${options.prefix}` : "\n" : options.prefix } function getListByRange(start, end, node, sourceFile) { switch (node.kind) { - case 182 /* TypeReference */: + case 183 /* TypeReference */: return getList(node.typeArguments); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return getList(node.properties); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return getList(node.elements); - case 186 /* TypeLiteral */: + case 187 /* TypeLiteral */: return getList(node.members); - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 178 /* CallSignature */: - case 175 /* Constructor */: - case 184 /* ConstructorType */: - case 179 /* ConstructSignature */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 176 /* Constructor */: + case 185 /* ConstructorType */: + case 180 /* ConstructSignature */: return getList(node.typeParameters) || getList(node.parameters); - case 176 /* GetAccessor */: + case 177 /* GetAccessor */: return getList(node.parameters); - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 351 /* JSDocTemplateTag */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 352 /* JSDocTemplateTag */: return getList(node.typeParameters); - case 213 /* NewExpression */: - case 212 /* CallExpression */: + case 214 /* NewExpression */: + case 213 /* CallExpression */: return getList(node.typeArguments) || getList(node.arguments); - case 260 /* VariableDeclarationList */: + case 261 /* VariableDeclarationList */: return getList(node.declarations); - case 274 /* NamedImports */: - case 278 /* NamedExports */: + case 275 /* NamedImports */: + case 279 /* NamedExports */: return getList(node.elements); - case 205 /* ObjectBindingPattern */: - case 206 /* ArrayBindingPattern */: + case 206 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: return getList(node.elements); } function getList(list) { @@ -168929,7 +171349,7 @@ ${options.prefix}` : "\n" : options.prefix return findColumnForFirstNonWhitespaceCharacterInLine(sourceFile.getLineAndCharacterOfPosition(list.pos), sourceFile, options); } function getActualIndentationForListItem(node, sourceFile, options, listIndentsChild) { - if (node.parent && node.parent.kind === 260 /* VariableDeclarationList */) { + if (node.parent && node.parent.kind === 261 /* VariableDeclarationList */) { return -1 /* Unknown */; } const containingList = getContainingList(node, sourceFile); @@ -168990,96 +171410,96 @@ ${options.prefix}` : "\n" : options.prefix function nodeWillIndentChild(settings, parent2, child, sourceFile, indentByDefault) { const childKind = child ? child.kind : 0 /* Unknown */; switch (parent2.kind) { - case 243 /* ExpressionStatement */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: - case 264 /* TypeAliasDeclaration */: - case 208 /* ArrayLiteralExpression */: - case 240 /* Block */: - case 267 /* ModuleBlock */: - case 209 /* ObjectLiteralExpression */: - case 186 /* TypeLiteral */: - case 199 /* MappedType */: - case 188 /* TupleType */: - case 216 /* ParenthesizedExpression */: - case 210 /* PropertyAccessExpression */: - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 242 /* VariableStatement */: - case 276 /* ExportAssignment */: - case 252 /* ReturnStatement */: - case 226 /* ConditionalExpression */: - case 206 /* ArrayBindingPattern */: - case 205 /* ObjectBindingPattern */: - case 285 /* JsxOpeningElement */: - case 288 /* JsxOpeningFragment */: - case 284 /* JsxSelfClosingElement */: - case 293 /* JsxExpression */: - case 172 /* MethodSignature */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 168 /* Parameter */: - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 195 /* ParenthesizedType */: - case 214 /* TaggedTemplateExpression */: - case 222 /* AwaitExpression */: - case 278 /* NamedExports */: - case 274 /* NamedImports */: - case 280 /* ExportSpecifier */: - case 275 /* ImportSpecifier */: - case 171 /* PropertyDeclaration */: - case 295 /* CaseClause */: - case 296 /* DefaultClause */: + case 244 /* ExpressionStatement */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 209 /* ArrayLiteralExpression */: + case 241 /* Block */: + case 268 /* ModuleBlock */: + case 210 /* ObjectLiteralExpression */: + case 187 /* TypeLiteral */: + case 200 /* MappedType */: + case 189 /* TupleType */: + case 217 /* ParenthesizedExpression */: + case 211 /* PropertyAccessExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 243 /* VariableStatement */: + case 277 /* ExportAssignment */: + case 253 /* ReturnStatement */: + case 227 /* ConditionalExpression */: + case 207 /* ArrayBindingPattern */: + case 206 /* ObjectBindingPattern */: + case 286 /* JsxOpeningElement */: + case 289 /* JsxOpeningFragment */: + case 285 /* JsxSelfClosingElement */: + case 294 /* JsxExpression */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 169 /* Parameter */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 196 /* ParenthesizedType */: + case 215 /* TaggedTemplateExpression */: + case 223 /* AwaitExpression */: + case 279 /* NamedExports */: + case 275 /* NamedImports */: + case 281 /* ExportSpecifier */: + case 276 /* ImportSpecifier */: + case 172 /* PropertyDeclaration */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: return true; - case 268 /* CaseBlock */: + case 269 /* CaseBlock */: return settings.indentSwitchCase ?? true; - case 259 /* VariableDeclaration */: - case 302 /* PropertyAssignment */: - case 225 /* BinaryExpression */: - if (!settings.indentMultiLineObjectLiteralBeginningOnBlankLine && sourceFile && childKind === 209 /* ObjectLiteralExpression */) { + case 260 /* VariableDeclaration */: + case 303 /* PropertyAssignment */: + case 226 /* BinaryExpression */: + if (!settings.indentMultiLineObjectLiteralBeginningOnBlankLine && sourceFile && childKind === 210 /* ObjectLiteralExpression */) { return rangeIsOnOneLine(sourceFile, child); } - if (parent2.kind === 225 /* BinaryExpression */ && sourceFile && child && childKind === 283 /* JsxElement */) { + if (parent2.kind === 226 /* BinaryExpression */ && sourceFile && child && childKind === 284 /* JsxElement */) { const parentStartLine = sourceFile.getLineAndCharacterOfPosition(skipTrivia(sourceFile.text, parent2.pos)).line; const childStartLine = sourceFile.getLineAndCharacterOfPosition(skipTrivia(sourceFile.text, child.pos)).line; return parentStartLine !== childStartLine; } - if (parent2.kind !== 225 /* BinaryExpression */) { + if (parent2.kind !== 226 /* BinaryExpression */) { return true; } break; - case 245 /* DoStatement */: - case 246 /* WhileStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 247 /* ForStatement */: - case 244 /* IfStatement */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 173 /* MethodDeclaration */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - return childKind !== 240 /* Block */; - case 218 /* ArrowFunction */: - if (sourceFile && childKind === 216 /* ParenthesizedExpression */) { + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 248 /* ForStatement */: + case 245 /* IfStatement */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + return childKind !== 241 /* Block */; + case 219 /* ArrowFunction */: + if (sourceFile && childKind === 217 /* ParenthesizedExpression */) { return rangeIsOnOneLine(sourceFile, child); } - return childKind !== 240 /* Block */; - case 277 /* ExportDeclaration */: - return childKind !== 278 /* NamedExports */; - case 271 /* ImportDeclaration */: - return childKind !== 272 /* ImportClause */ || !!child.namedBindings && child.namedBindings.kind !== 274 /* NamedImports */; - case 283 /* JsxElement */: - return childKind !== 286 /* JsxClosingElement */; - case 287 /* JsxFragment */: - return childKind !== 289 /* JsxClosingFragment */; - case 192 /* IntersectionType */: - case 191 /* UnionType */: - if (childKind === 186 /* TypeLiteral */ || childKind === 188 /* TupleType */) { + return childKind !== 241 /* Block */; + case 278 /* ExportDeclaration */: + return childKind !== 279 /* NamedExports */; + case 272 /* ImportDeclaration */: + return childKind !== 273 /* ImportClause */ || !!child.namedBindings && child.namedBindings.kind !== 275 /* NamedImports */; + case 284 /* JsxElement */: + return childKind !== 287 /* JsxClosingElement */; + case 288 /* JsxFragment */: + return childKind !== 290 /* JsxClosingFragment */; + case 193 /* IntersectionType */: + case 192 /* UnionType */: + if (childKind === 187 /* TypeLiteral */ || childKind === 189 /* TupleType */) { return false; } break; @@ -169089,11 +171509,11 @@ ${options.prefix}` : "\n" : options.prefix SmartIndenter2.nodeWillIndentChild = nodeWillIndentChild; function isControlFlowEndingStatement(kind, parent2) { switch (kind) { - case 252 /* ReturnStatement */: - case 256 /* ThrowStatement */: - case 250 /* ContinueStatement */: - case 251 /* BreakStatement */: - return parent2.kind !== 240 /* Block */; + case 253 /* ReturnStatement */: + case 257 /* ThrowStatement */: + case 251 /* ContinueStatement */: + case 252 /* BreakStatement */: + return parent2.kind !== 241 /* Block */; default: return false; } @@ -169203,11 +171623,11 @@ ${options.prefix}` : "\n" : options.prefix function getTypeScriptVersion() { return typeScriptVersion2 ?? (typeScriptVersion2 = new Version(version)); } - function formatDeprecationMessage(name, error, errorAfter, since, message) { - let deprecationMessage = error ? "DeprecationError: " : "DeprecationWarning: "; + function formatDeprecationMessage(name, error2, errorAfter, since, message) { + let deprecationMessage = error2 ? "DeprecationError: " : "DeprecationWarning: "; deprecationMessage += `'${name}' `; deprecationMessage += since ? `has been deprecated since v${since}` : "is deprecated"; - deprecationMessage += error ? " and can no longer be used." : errorAfter ? ` and will no longer be usable after v${errorAfter}.` : "."; + deprecationMessage += error2 ? " and can no longer be used." : errorAfter ? ` and will no longer be usable after v${errorAfter}.` : "."; deprecationMessage += message ? ` ${formatStringFromArgs(message, [name], 0)}` : ""; return deprecationMessage; } @@ -169245,9 +171665,9 @@ ${options.prefix}` : "\n" : options.prefix const errorAfter = typeof options.errorAfter === "string" ? new Version(options.errorAfter) : options.errorAfter; const warnAfter = typeof options.warnAfter === "string" ? new Version(options.warnAfter) : options.warnAfter; const since = typeof options.since === "string" ? new Version(options.since) : options.since ?? warnAfter; - const error = options.error || errorAfter && version2.compareTo(errorAfter) >= 0; + const error2 = options.error || errorAfter && version2.compareTo(errorAfter) >= 0; const warn = !warnAfter || version2.compareTo(warnAfter) >= 0; - return error ? createErrorDeprecation(name, errorAfter, since, options.message) : warn ? createWarningDeprecation(name, errorAfter, since, options.message) : noop; + return error2 ? createErrorDeprecation(name, errorAfter, since, options.message) : warn ? createWarningDeprecation(name, errorAfter, since, options.message) : noop; } function wrapFunction(deprecation, func) { return function() { @@ -169327,9 +171747,9 @@ ${options.prefix}` : "\n" : options.prefix init_ts5(); init_deprecate(); addObjectAllocatorPatcher((objectAllocator2) => { - const Identifier74 = objectAllocator2.getIdentifierConstructor(); - if (!hasProperty(Identifier74.prototype, "originalKeywordKind")) { - Object.defineProperty(Identifier74.prototype, "originalKeywordKind", { + const Identifier78 = objectAllocator2.getIdentifierConstructor(); + if (!hasProperty(Identifier78.prototype, "originalKeywordKind")) { + Object.defineProperty(Identifier78.prototype, "originalKeywordKind", { get: deprecate(function() { return identifierToKeywordKind(this); }, { @@ -169341,10 +171761,10 @@ ${options.prefix}` : "\n" : options.prefix }) }); } - if (!hasProperty(Identifier74.prototype, "isInJSDocNamespace")) { - Object.defineProperty(Identifier74.prototype, "isInJSDocNamespace", { + if (!hasProperty(Identifier78.prototype, "isInJSDocNamespace")) { + Object.defineProperty(Identifier78.prototype, "isInJSDocNamespace", { get: deprecate(function() { - return this.flags & 2048 /* IdentifierIsInJSDocNamespace */ ? true : void 0; + return this.flags & 4096 /* IdentifierIsInJSDocNamespace */ ? true : void 0; }, { name: "isInJSDocNamespace", since: "5.0", @@ -169394,6 +171814,7 @@ ${options.prefix}` : "\n" : options.prefix CompletionTriggerKind: () => CompletionTriggerKind, Completions: () => ts_Completions_exports, ConfigFileProgramReloadLevel: () => ConfigFileProgramReloadLevel, + ContainerFlags: () => ContainerFlags, ContextFlags: () => ContextFlags, CoreServicesShimHostAdapter: () => CoreServicesShimHostAdapter, Debug: () => Debug, @@ -169423,6 +171844,8 @@ ${options.prefix}` : "\n" : options.prefix GetLiteralTextFlags: () => GetLiteralTextFlags, GoToDefinition: () => ts_GoToDefinition_exports, HighlightSpanKind: () => HighlightSpanKind, + IdentifierNameMap: () => IdentifierNameMap, + IdentifierNameMultiMap: () => IdentifierNameMultiMap, ImportKind: () => ImportKind, ImportsNotUsedAsValues: () => ImportsNotUsedAsValues, IndentStyle: () => IndentStyle, @@ -169527,6 +171950,7 @@ ${options.prefix}` : "\n" : options.prefix WatchLogLevel: () => WatchLogLevel, WatchType: () => WatchType, accessPrivateIdentifier: () => accessPrivateIdentifier, + addDisposableResourceHelper: () => addDisposableResourceHelper, addEmitFlags: () => addEmitFlags, addEmitHelper: () => addEmitHelper, addEmitHelpers: () => addEmitHelpers, @@ -169606,6 +172030,9 @@ ${options.prefix}` : "\n" : options.prefix changesAffectingProgramStructure: () => changesAffectingProgramStructure, childIsDecorated: () => childIsDecorated, classElementOrClassElementParameterIsDecorated: () => classElementOrClassElementParameterIsDecorated, + classHasClassThisAssignment: () => classHasClassThisAssignment, + classHasDeclaredOrExplicitlyAssignedName: () => classHasDeclaredOrExplicitlyAssignedName, + classHasExplicitlyAssignedName: () => classHasExplicitlyAssignedName, classOrConstructorParameterIsDecorated: () => classOrConstructorParameterIsDecorated, classPrivateFieldGetHelper: () => classPrivateFieldGetHelper, classPrivateFieldInHelper: () => classPrivateFieldInHelper, @@ -169703,6 +172130,8 @@ ${options.prefix}` : "\n" : options.prefix createCacheWithRedirects: () => createCacheWithRedirects, createCacheableExportInfoMap: () => createCacheableExportInfoMap, createCachedDirectoryStructureHost: () => createCachedDirectoryStructureHost, + createClassNamedEvaluationHelperBlock: () => createClassNamedEvaluationHelperBlock, + createClassThisAssignmentBlock: () => createClassThisAssignmentBlock, createClassifier: () => createClassifier, createCommentDirectivesMap: () => createCommentDirectivesMap, createCompilerDiagnostic: () => createCompilerDiagnostic, @@ -169835,6 +172264,7 @@ ${options.prefix}` : "\n" : options.prefix displayPart: () => displayPart, displayPartsToString: () => displayPartsToString, disposeEmitNodes: () => disposeEmitNodes, + disposeResourcesHelper: () => disposeResourcesHelper, documentSpansEqual: () => documentSpansEqual, dumpTracingLegend: () => dumpTracingLegend, elementAt: () => elementAt, @@ -169912,7 +172342,7 @@ ${options.prefix}` : "\n" : options.prefix findPackageJsons: () => findPackageJsons, findPrecedingMatchingToken: () => findPrecedingMatchingToken, findPrecedingToken: () => findPrecedingToken, - findSuperStatementIndex: () => findSuperStatementIndex, + findSuperStatementIndexPath: () => findSuperStatementIndexPath, findTokenOnLeftOfPosition: () => findTokenOnLeftOfPosition, findUseStrictPrologue: () => findUseStrictPrologue, first: () => first, @@ -169987,6 +172417,7 @@ ${options.prefix}` : "\n" : options.prefix getAreDeclarationMapsEnabled: () => getAreDeclarationMapsEnabled, getAssignedExpandoInitializer: () => getAssignedExpandoInitializer, getAssignedName: () => getAssignedName, + getAssignedNameOfIdentifier: () => getAssignedNameOfIdentifier, getAssignmentDeclarationKind: () => getAssignmentDeclarationKind, getAssignmentDeclarationPropertyAccessKind: () => getAssignmentDeclarationPropertyAccessKind, getAssignmentTargetKind: () => getAssignmentTargetKind, @@ -170014,8 +172445,10 @@ ${options.prefix}` : "\n" : options.prefix getConditions: () => getConditions, getConfigFileParsingDiagnostics: () => getConfigFileParsingDiagnostics, getConstantValue: () => getConstantValue, + getContainerFlags: () => getContainerFlags, getContainerNode: () => getContainerNode, getContainingClass: () => getContainingClass, + getContainingClassExcludingClassDecorators: () => getContainingClassExcludingClassDecorators, getContainingClassStaticBlock: () => getContainingClassStaticBlock, getContainingFunction: () => getContainingFunction, getContainingFunctionDeclaration: () => getContainingFunctionDeclaration, @@ -170073,7 +172506,9 @@ ${options.prefix}` : "\n" : options.prefix getEmitModuleKind: () => getEmitModuleKind, getEmitModuleResolutionKind: () => getEmitModuleResolutionKind, getEmitScriptTarget: () => getEmitScriptTarget, + getEmitStandardClassFields: () => getEmitStandardClassFields, getEnclosingBlockScopeContainer: () => getEnclosingBlockScopeContainer, + getEnclosingContainer: () => getEnclosingContainer, getEncodedSemanticClassifications: () => getEncodedSemanticClassifications, getEncodedSyntacticClassifications: () => getEncodedSyntacticClassifications, getEndLinePosition: () => getEndLinePosition, @@ -170291,6 +172726,7 @@ ${options.prefix}` : "\n" : options.prefix getPropertyAssignmentAliasLikeExpression: () => getPropertyAssignmentAliasLikeExpression, getPropertyNameForPropertyNameNode: () => getPropertyNameForPropertyNameNode, getPropertyNameForUniqueESSymbol: () => getPropertyNameForUniqueESSymbol, + getPropertyNameFromType: () => getPropertyNameFromType, getPropertyNameOfBindingOrAssignmentElement: () => getPropertyNameOfBindingOrAssignmentElement, getPropertySymbolFromBindingElement: () => getPropertySymbolFromBindingElement, getPropertySymbolsFromContextualType: () => getPropertySymbolsFromContextualType, @@ -170471,6 +172907,8 @@ ${options.prefix}` : "\n" : options.prefix indexOfNode: () => indexOfNode, indicesOf: () => indicesOf, inferredTypesContainingFile: () => inferredTypesContainingFile, + injectClassNamedEvaluationHelperBlockIfMissing: () => injectClassNamedEvaluationHelperBlockIfMissing, + injectClassThisAssignmentIfMissing: () => injectClassThisAssignmentIfMissing, insertImports: () => insertImports, insertLeadingStatement: () => insertLeadingStatement, insertSorted: () => insertSorted, @@ -170573,8 +173011,10 @@ ${options.prefix}` : "\n" : options.prefix isClassExpression: () => isClassExpression, isClassLike: () => isClassLike, isClassMemberModifier: () => isClassMemberModifier, + isClassNamedEvaluationHelperBlock: () => isClassNamedEvaluationHelperBlock, isClassOrTypeElement: () => isClassOrTypeElement, isClassStaticBlockDeclaration: () => isClassStaticBlockDeclaration, + isClassThisAssignmentBlock: () => isClassThisAssignmentBlock, isCollapsedRange: () => isCollapsedRange, isColonToken: () => isColonToken, isCommaExpression: () => isCommaExpression, @@ -170620,6 +173060,7 @@ ${options.prefix}` : "\n" : options.prefix isDiagnosticWithLocation: () => isDiagnosticWithLocation, isDiskPathRoot: () => isDiskPathRoot, isDoStatement: () => isDoStatement, + isDocumentRegistryEntry: () => isDocumentRegistryEntry, isDotDotDotToken: () => isDotDotDotToken, isDottedName: () => isDottedName, isDynamicName: () => isDynamicName, @@ -170670,6 +173111,7 @@ ${options.prefix}` : "\n" : options.prefix isExternalModuleReference: () => isExternalModuleReference, isExternalModuleSymbol: () => isExternalModuleSymbol, isExternalOrCommonJsModule: () => isExternalOrCommonJsModule, + isFileLevelReservedGeneratedIdentifier: () => isFileLevelReservedGeneratedIdentifier, isFileLevelUniqueName: () => isFileLevelUniqueName, isFileProbablyExternalModule: () => isFileProbablyExternalModule, isFirstDeclarationOfSymbolParameter: () => isFirstDeclarationOfSymbolParameter, @@ -170740,6 +173182,7 @@ ${options.prefix}` : "\n" : options.prefix isInString: () => isInString, isInTemplateString: () => isInTemplateString, isInTopLevelContext: () => isInTopLevelContext, + isInTypeQuery: () => isInTypeQuery, isIncrementalCompilation: () => isIncrementalCompilation, isIndexSignatureDeclaration: () => isIndexSignatureDeclaration, isIndexedAccessTypeNode: () => isIndexedAccessTypeNode, @@ -171117,6 +173560,7 @@ ${options.prefix}` : "\n" : options.prefix isTypeQueryNode: () => isTypeQueryNode, isTypeReferenceNode: () => isTypeReferenceNode, isTypeReferenceType: () => isTypeReferenceType, + isTypeUsableAsPropertyName: () => isTypeUsableAsPropertyName, isUMDExportSymbol: () => isUMDExportSymbol, isUnaryExpression: () => isUnaryExpression, isUnaryExpressionWithWrite: () => isUnaryExpressionWithWrite, @@ -171131,7 +173575,9 @@ ${options.prefix}` : "\n" : options.prefix isValidESSymbolDeclaration: () => isValidESSymbolDeclaration, isValidTypeOnlyAliasUseSite: () => isValidTypeOnlyAliasUseSite, isValueSignatureDeclaration: () => isValueSignatureDeclaration, + isVarAwaitUsing: () => isVarAwaitUsing, isVarConst: () => isVarConst, + isVarUsing: () => isVarUsing, isVariableDeclaration: () => isVariableDeclaration, isVariableDeclarationInVariableStatement: () => isVariableDeclarationInVariableStatement, isVariableDeclarationInitializedToBareOrAccessedRequire: () => isVariableDeclarationInitializedToBareOrAccessedRequire, @@ -171543,6 +173989,7 @@ ${options.prefix}` : "\n" : options.prefix transformJsx: () => transformJsx, transformLegacyDecorators: () => transformLegacyDecorators, transformModule: () => transformModule, + transformNamedEvaluation: () => transformNamedEvaluation, transformNodeModule: () => transformNodeModule, transformNodes: () => transformNodes, transformSystemModule: () => transformSystemModule, diff --git a/node_modules/typescript/lib/typingsInstaller.js b/node_modules/typescript/lib/typingsInstaller.js index a1cec18..e765ab8 100644 --- a/node_modules/typescript/lib/typingsInstaller.js +++ b/node_modules/typescript/lib/typingsInstaller.js @@ -53,8 +53,8 @@ var fs = __toESM(require("fs")); var path = __toESM(require("path")); // src/compiler/corePublic.ts -var versionMajorMinor = "5.1"; -var version = "5.1.6"; +var versionMajorMinor = "5.2"; +var version = "5.2.2"; // src/compiler/core.ts var emptyArray = []; @@ -507,7 +507,7 @@ function identity(x) { function toLowerCase(x) { return x.toLowerCase(); } -var fileNameLowerCaseRegExp = /[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g; +var fileNameLowerCaseRegExp = /[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g; function toFileNameLowerCase(x) { return fileNameLowerCaseRegExp.test(x) ? x.replace(fileNameLowerCaseRegExp, toLowerCase) : x; } @@ -759,8 +759,8 @@ function unorderedRemoveFirstItemWhere(array, predicate) { } return false; } -function createGetCanonicalFileName(useCaseSensitiveFileNames) { - return useCaseSensitiveFileNames ? identity : toFileNameLowerCase; +function createGetCanonicalFileName(useCaseSensitiveFileNames2) { + return useCaseSensitiveFileNames2 ? identity : toFileNameLowerCase; } function patternText({ prefix, suffix }) { return `${prefix}*${suffix}`; @@ -1067,7 +1067,7 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`, return func.name; } else { const text = Function.prototype.toString.call(func); - const match = /^function\s+([\w\$]+)\s*\(/.exec(text); + const match = /^function\s+([\w$]+)\s*\(/.exec(text); return match ? match[1] : ""; } } @@ -1141,6 +1141,15 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`, ); } Debug2.formatSnippetKind = formatSnippetKind; + function formatScriptKind(kind) { + return formatEnum( + kind, + ScriptKind, + /*isFlags*/ + false + ); + } + Debug2.formatScriptKind = formatScriptKind; function formatNodeFlags(flags) { return formatEnum( flags, @@ -1841,13 +1850,13 @@ ${lanes.join("\n")} })(Debug || (Debug = {})); // src/compiler/semver.ts -var versionRegExp = /^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i; +var versionRegExp = /^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i; var prereleaseRegExp = /^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i; var prereleasePartRegExp = /^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i; var buildRegExp = /^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i; var buildPartRegExp = /^[a-z0-9-]+$/i; var numericIdentifierRegExp = /^(0|[1-9]\d*)$/; -var _Version = class { +var _Version = class _Version { constructor(major, minor = 0, patch = 0, prerelease = "", build = "") { if (typeof major === "string") { const result = Debug.checkDefined(tryParseComponents(major), "Invalid version"); @@ -1911,8 +1920,8 @@ var _Version = class { return result; } }; +_Version.zero = new _Version(0, 0, 0, ["0"]); var Version = _Version; -Version.zero = new _Version(0, 0, 0, ["0"]); function tryParseComponents(text) { const match = versionRegExp.exec(text); if (!match) @@ -1959,14 +1968,14 @@ function comparePrereleaseIdentifiers(left, right) { } return compareValues(left.length, right.length); } -var VersionRange = class { +var VersionRange = class _VersionRange { constructor(spec) { this._alternatives = spec ? Debug.checkDefined(parseRange(spec), "Invalid range spec.") : emptyArray; } static tryParse(text) { const sets = parseRange(text); if (sets) { - const range = new VersionRange(""); + const range = new _VersionRange(""); range._alternatives = sets; return range; } @@ -2652,210 +2661,211 @@ var SyntaxKind = /* @__PURE__ */ ((SyntaxKind4) => { SyntaxKind4[SyntaxKind4["UndefinedKeyword"] = 157] = "UndefinedKeyword"; SyntaxKind4[SyntaxKind4["UniqueKeyword"] = 158] = "UniqueKeyword"; SyntaxKind4[SyntaxKind4["UnknownKeyword"] = 159] = "UnknownKeyword"; - SyntaxKind4[SyntaxKind4["FromKeyword"] = 160] = "FromKeyword"; - SyntaxKind4[SyntaxKind4["GlobalKeyword"] = 161] = "GlobalKeyword"; - SyntaxKind4[SyntaxKind4["BigIntKeyword"] = 162] = "BigIntKeyword"; - SyntaxKind4[SyntaxKind4["OverrideKeyword"] = 163] = "OverrideKeyword"; - SyntaxKind4[SyntaxKind4["OfKeyword"] = 164] = "OfKeyword"; - SyntaxKind4[SyntaxKind4["QualifiedName"] = 165] = "QualifiedName"; - SyntaxKind4[SyntaxKind4["ComputedPropertyName"] = 166] = "ComputedPropertyName"; - SyntaxKind4[SyntaxKind4["TypeParameter"] = 167] = "TypeParameter"; - SyntaxKind4[SyntaxKind4["Parameter"] = 168] = "Parameter"; - SyntaxKind4[SyntaxKind4["Decorator"] = 169] = "Decorator"; - SyntaxKind4[SyntaxKind4["PropertySignature"] = 170] = "PropertySignature"; - SyntaxKind4[SyntaxKind4["PropertyDeclaration"] = 171] = "PropertyDeclaration"; - SyntaxKind4[SyntaxKind4["MethodSignature"] = 172] = "MethodSignature"; - SyntaxKind4[SyntaxKind4["MethodDeclaration"] = 173] = "MethodDeclaration"; - SyntaxKind4[SyntaxKind4["ClassStaticBlockDeclaration"] = 174] = "ClassStaticBlockDeclaration"; - SyntaxKind4[SyntaxKind4["Constructor"] = 175] = "Constructor"; - SyntaxKind4[SyntaxKind4["GetAccessor"] = 176] = "GetAccessor"; - SyntaxKind4[SyntaxKind4["SetAccessor"] = 177] = "SetAccessor"; - SyntaxKind4[SyntaxKind4["CallSignature"] = 178] = "CallSignature"; - SyntaxKind4[SyntaxKind4["ConstructSignature"] = 179] = "ConstructSignature"; - SyntaxKind4[SyntaxKind4["IndexSignature"] = 180] = "IndexSignature"; - SyntaxKind4[SyntaxKind4["TypePredicate"] = 181] = "TypePredicate"; - SyntaxKind4[SyntaxKind4["TypeReference"] = 182] = "TypeReference"; - SyntaxKind4[SyntaxKind4["FunctionType"] = 183] = "FunctionType"; - SyntaxKind4[SyntaxKind4["ConstructorType"] = 184] = "ConstructorType"; - SyntaxKind4[SyntaxKind4["TypeQuery"] = 185] = "TypeQuery"; - SyntaxKind4[SyntaxKind4["TypeLiteral"] = 186] = "TypeLiteral"; - SyntaxKind4[SyntaxKind4["ArrayType"] = 187] = "ArrayType"; - SyntaxKind4[SyntaxKind4["TupleType"] = 188] = "TupleType"; - SyntaxKind4[SyntaxKind4["OptionalType"] = 189] = "OptionalType"; - SyntaxKind4[SyntaxKind4["RestType"] = 190] = "RestType"; - SyntaxKind4[SyntaxKind4["UnionType"] = 191] = "UnionType"; - SyntaxKind4[SyntaxKind4["IntersectionType"] = 192] = "IntersectionType"; - SyntaxKind4[SyntaxKind4["ConditionalType"] = 193] = "ConditionalType"; - SyntaxKind4[SyntaxKind4["InferType"] = 194] = "InferType"; - SyntaxKind4[SyntaxKind4["ParenthesizedType"] = 195] = "ParenthesizedType"; - SyntaxKind4[SyntaxKind4["ThisType"] = 196] = "ThisType"; - SyntaxKind4[SyntaxKind4["TypeOperator"] = 197] = "TypeOperator"; - SyntaxKind4[SyntaxKind4["IndexedAccessType"] = 198] = "IndexedAccessType"; - SyntaxKind4[SyntaxKind4["MappedType"] = 199] = "MappedType"; - SyntaxKind4[SyntaxKind4["LiteralType"] = 200] = "LiteralType"; - SyntaxKind4[SyntaxKind4["NamedTupleMember"] = 201] = "NamedTupleMember"; - SyntaxKind4[SyntaxKind4["TemplateLiteralType"] = 202] = "TemplateLiteralType"; - SyntaxKind4[SyntaxKind4["TemplateLiteralTypeSpan"] = 203] = "TemplateLiteralTypeSpan"; - SyntaxKind4[SyntaxKind4["ImportType"] = 204] = "ImportType"; - SyntaxKind4[SyntaxKind4["ObjectBindingPattern"] = 205] = "ObjectBindingPattern"; - SyntaxKind4[SyntaxKind4["ArrayBindingPattern"] = 206] = "ArrayBindingPattern"; - SyntaxKind4[SyntaxKind4["BindingElement"] = 207] = "BindingElement"; - SyntaxKind4[SyntaxKind4["ArrayLiteralExpression"] = 208] = "ArrayLiteralExpression"; - SyntaxKind4[SyntaxKind4["ObjectLiteralExpression"] = 209] = "ObjectLiteralExpression"; - SyntaxKind4[SyntaxKind4["PropertyAccessExpression"] = 210] = "PropertyAccessExpression"; - SyntaxKind4[SyntaxKind4["ElementAccessExpression"] = 211] = "ElementAccessExpression"; - SyntaxKind4[SyntaxKind4["CallExpression"] = 212] = "CallExpression"; - SyntaxKind4[SyntaxKind4["NewExpression"] = 213] = "NewExpression"; - SyntaxKind4[SyntaxKind4["TaggedTemplateExpression"] = 214] = "TaggedTemplateExpression"; - SyntaxKind4[SyntaxKind4["TypeAssertionExpression"] = 215] = "TypeAssertionExpression"; - SyntaxKind4[SyntaxKind4["ParenthesizedExpression"] = 216] = "ParenthesizedExpression"; - SyntaxKind4[SyntaxKind4["FunctionExpression"] = 217] = "FunctionExpression"; - SyntaxKind4[SyntaxKind4["ArrowFunction"] = 218] = "ArrowFunction"; - SyntaxKind4[SyntaxKind4["DeleteExpression"] = 219] = "DeleteExpression"; - SyntaxKind4[SyntaxKind4["TypeOfExpression"] = 220] = "TypeOfExpression"; - SyntaxKind4[SyntaxKind4["VoidExpression"] = 221] = "VoidExpression"; - SyntaxKind4[SyntaxKind4["AwaitExpression"] = 222] = "AwaitExpression"; - SyntaxKind4[SyntaxKind4["PrefixUnaryExpression"] = 223] = "PrefixUnaryExpression"; - SyntaxKind4[SyntaxKind4["PostfixUnaryExpression"] = 224] = "PostfixUnaryExpression"; - SyntaxKind4[SyntaxKind4["BinaryExpression"] = 225] = "BinaryExpression"; - SyntaxKind4[SyntaxKind4["ConditionalExpression"] = 226] = "ConditionalExpression"; - SyntaxKind4[SyntaxKind4["TemplateExpression"] = 227] = "TemplateExpression"; - SyntaxKind4[SyntaxKind4["YieldExpression"] = 228] = "YieldExpression"; - SyntaxKind4[SyntaxKind4["SpreadElement"] = 229] = "SpreadElement"; - SyntaxKind4[SyntaxKind4["ClassExpression"] = 230] = "ClassExpression"; - SyntaxKind4[SyntaxKind4["OmittedExpression"] = 231] = "OmittedExpression"; - SyntaxKind4[SyntaxKind4["ExpressionWithTypeArguments"] = 232] = "ExpressionWithTypeArguments"; - SyntaxKind4[SyntaxKind4["AsExpression"] = 233] = "AsExpression"; - SyntaxKind4[SyntaxKind4["NonNullExpression"] = 234] = "NonNullExpression"; - SyntaxKind4[SyntaxKind4["MetaProperty"] = 235] = "MetaProperty"; - SyntaxKind4[SyntaxKind4["SyntheticExpression"] = 236] = "SyntheticExpression"; - SyntaxKind4[SyntaxKind4["SatisfiesExpression"] = 237] = "SatisfiesExpression"; - SyntaxKind4[SyntaxKind4["TemplateSpan"] = 238] = "TemplateSpan"; - SyntaxKind4[SyntaxKind4["SemicolonClassElement"] = 239] = "SemicolonClassElement"; - SyntaxKind4[SyntaxKind4["Block"] = 240] = "Block"; - SyntaxKind4[SyntaxKind4["EmptyStatement"] = 241] = "EmptyStatement"; - SyntaxKind4[SyntaxKind4["VariableStatement"] = 242] = "VariableStatement"; - SyntaxKind4[SyntaxKind4["ExpressionStatement"] = 243] = "ExpressionStatement"; - SyntaxKind4[SyntaxKind4["IfStatement"] = 244] = "IfStatement"; - SyntaxKind4[SyntaxKind4["DoStatement"] = 245] = "DoStatement"; - SyntaxKind4[SyntaxKind4["WhileStatement"] = 246] = "WhileStatement"; - SyntaxKind4[SyntaxKind4["ForStatement"] = 247] = "ForStatement"; - SyntaxKind4[SyntaxKind4["ForInStatement"] = 248] = "ForInStatement"; - SyntaxKind4[SyntaxKind4["ForOfStatement"] = 249] = "ForOfStatement"; - SyntaxKind4[SyntaxKind4["ContinueStatement"] = 250] = "ContinueStatement"; - SyntaxKind4[SyntaxKind4["BreakStatement"] = 251] = "BreakStatement"; - SyntaxKind4[SyntaxKind4["ReturnStatement"] = 252] = "ReturnStatement"; - SyntaxKind4[SyntaxKind4["WithStatement"] = 253] = "WithStatement"; - SyntaxKind4[SyntaxKind4["SwitchStatement"] = 254] = "SwitchStatement"; - SyntaxKind4[SyntaxKind4["LabeledStatement"] = 255] = "LabeledStatement"; - SyntaxKind4[SyntaxKind4["ThrowStatement"] = 256] = "ThrowStatement"; - SyntaxKind4[SyntaxKind4["TryStatement"] = 257] = "TryStatement"; - SyntaxKind4[SyntaxKind4["DebuggerStatement"] = 258] = "DebuggerStatement"; - SyntaxKind4[SyntaxKind4["VariableDeclaration"] = 259] = "VariableDeclaration"; - SyntaxKind4[SyntaxKind4["VariableDeclarationList"] = 260] = "VariableDeclarationList"; - SyntaxKind4[SyntaxKind4["FunctionDeclaration"] = 261] = "FunctionDeclaration"; - SyntaxKind4[SyntaxKind4["ClassDeclaration"] = 262] = "ClassDeclaration"; - SyntaxKind4[SyntaxKind4["InterfaceDeclaration"] = 263] = "InterfaceDeclaration"; - SyntaxKind4[SyntaxKind4["TypeAliasDeclaration"] = 264] = "TypeAliasDeclaration"; - SyntaxKind4[SyntaxKind4["EnumDeclaration"] = 265] = "EnumDeclaration"; - SyntaxKind4[SyntaxKind4["ModuleDeclaration"] = 266] = "ModuleDeclaration"; - SyntaxKind4[SyntaxKind4["ModuleBlock"] = 267] = "ModuleBlock"; - SyntaxKind4[SyntaxKind4["CaseBlock"] = 268] = "CaseBlock"; - SyntaxKind4[SyntaxKind4["NamespaceExportDeclaration"] = 269] = "NamespaceExportDeclaration"; - SyntaxKind4[SyntaxKind4["ImportEqualsDeclaration"] = 270] = "ImportEqualsDeclaration"; - SyntaxKind4[SyntaxKind4["ImportDeclaration"] = 271] = "ImportDeclaration"; - SyntaxKind4[SyntaxKind4["ImportClause"] = 272] = "ImportClause"; - SyntaxKind4[SyntaxKind4["NamespaceImport"] = 273] = "NamespaceImport"; - SyntaxKind4[SyntaxKind4["NamedImports"] = 274] = "NamedImports"; - SyntaxKind4[SyntaxKind4["ImportSpecifier"] = 275] = "ImportSpecifier"; - SyntaxKind4[SyntaxKind4["ExportAssignment"] = 276] = "ExportAssignment"; - SyntaxKind4[SyntaxKind4["ExportDeclaration"] = 277] = "ExportDeclaration"; - SyntaxKind4[SyntaxKind4["NamedExports"] = 278] = "NamedExports"; - SyntaxKind4[SyntaxKind4["NamespaceExport"] = 279] = "NamespaceExport"; - SyntaxKind4[SyntaxKind4["ExportSpecifier"] = 280] = "ExportSpecifier"; - SyntaxKind4[SyntaxKind4["MissingDeclaration"] = 281] = "MissingDeclaration"; - SyntaxKind4[SyntaxKind4["ExternalModuleReference"] = 282] = "ExternalModuleReference"; - SyntaxKind4[SyntaxKind4["JsxElement"] = 283] = "JsxElement"; - SyntaxKind4[SyntaxKind4["JsxSelfClosingElement"] = 284] = "JsxSelfClosingElement"; - SyntaxKind4[SyntaxKind4["JsxOpeningElement"] = 285] = "JsxOpeningElement"; - SyntaxKind4[SyntaxKind4["JsxClosingElement"] = 286] = "JsxClosingElement"; - SyntaxKind4[SyntaxKind4["JsxFragment"] = 287] = "JsxFragment"; - SyntaxKind4[SyntaxKind4["JsxOpeningFragment"] = 288] = "JsxOpeningFragment"; - SyntaxKind4[SyntaxKind4["JsxClosingFragment"] = 289] = "JsxClosingFragment"; - SyntaxKind4[SyntaxKind4["JsxAttribute"] = 290] = "JsxAttribute"; - SyntaxKind4[SyntaxKind4["JsxAttributes"] = 291] = "JsxAttributes"; - SyntaxKind4[SyntaxKind4["JsxSpreadAttribute"] = 292] = "JsxSpreadAttribute"; - SyntaxKind4[SyntaxKind4["JsxExpression"] = 293] = "JsxExpression"; - SyntaxKind4[SyntaxKind4["JsxNamespacedName"] = 294] = "JsxNamespacedName"; - SyntaxKind4[SyntaxKind4["CaseClause"] = 295] = "CaseClause"; - SyntaxKind4[SyntaxKind4["DefaultClause"] = 296] = "DefaultClause"; - SyntaxKind4[SyntaxKind4["HeritageClause"] = 297] = "HeritageClause"; - SyntaxKind4[SyntaxKind4["CatchClause"] = 298] = "CatchClause"; - SyntaxKind4[SyntaxKind4["AssertClause"] = 299] = "AssertClause"; - SyntaxKind4[SyntaxKind4["AssertEntry"] = 300] = "AssertEntry"; - SyntaxKind4[SyntaxKind4["ImportTypeAssertionContainer"] = 301] = "ImportTypeAssertionContainer"; - SyntaxKind4[SyntaxKind4["PropertyAssignment"] = 302] = "PropertyAssignment"; - SyntaxKind4[SyntaxKind4["ShorthandPropertyAssignment"] = 303] = "ShorthandPropertyAssignment"; - SyntaxKind4[SyntaxKind4["SpreadAssignment"] = 304] = "SpreadAssignment"; - SyntaxKind4[SyntaxKind4["EnumMember"] = 305] = "EnumMember"; - SyntaxKind4[SyntaxKind4["UnparsedPrologue"] = 306] = "UnparsedPrologue"; - SyntaxKind4[SyntaxKind4["UnparsedPrepend"] = 307] = "UnparsedPrepend"; - SyntaxKind4[SyntaxKind4["UnparsedText"] = 308] = "UnparsedText"; - SyntaxKind4[SyntaxKind4["UnparsedInternalText"] = 309] = "UnparsedInternalText"; - SyntaxKind4[SyntaxKind4["UnparsedSyntheticReference"] = 310] = "UnparsedSyntheticReference"; - SyntaxKind4[SyntaxKind4["SourceFile"] = 311] = "SourceFile"; - SyntaxKind4[SyntaxKind4["Bundle"] = 312] = "Bundle"; - SyntaxKind4[SyntaxKind4["UnparsedSource"] = 313] = "UnparsedSource"; - SyntaxKind4[SyntaxKind4["InputFiles"] = 314] = "InputFiles"; - SyntaxKind4[SyntaxKind4["JSDocTypeExpression"] = 315] = "JSDocTypeExpression"; - SyntaxKind4[SyntaxKind4["JSDocNameReference"] = 316] = "JSDocNameReference"; - SyntaxKind4[SyntaxKind4["JSDocMemberName"] = 317] = "JSDocMemberName"; - SyntaxKind4[SyntaxKind4["JSDocAllType"] = 318] = "JSDocAllType"; - SyntaxKind4[SyntaxKind4["JSDocUnknownType"] = 319] = "JSDocUnknownType"; - SyntaxKind4[SyntaxKind4["JSDocNullableType"] = 320] = "JSDocNullableType"; - SyntaxKind4[SyntaxKind4["JSDocNonNullableType"] = 321] = "JSDocNonNullableType"; - SyntaxKind4[SyntaxKind4["JSDocOptionalType"] = 322] = "JSDocOptionalType"; - SyntaxKind4[SyntaxKind4["JSDocFunctionType"] = 323] = "JSDocFunctionType"; - SyntaxKind4[SyntaxKind4["JSDocVariadicType"] = 324] = "JSDocVariadicType"; - SyntaxKind4[SyntaxKind4["JSDocNamepathType"] = 325] = "JSDocNamepathType"; - SyntaxKind4[SyntaxKind4["JSDoc"] = 326] = "JSDoc"; - SyntaxKind4[SyntaxKind4["JSDocComment"] = 326 /* JSDoc */] = "JSDocComment"; - SyntaxKind4[SyntaxKind4["JSDocText"] = 327] = "JSDocText"; - SyntaxKind4[SyntaxKind4["JSDocTypeLiteral"] = 328] = "JSDocTypeLiteral"; - SyntaxKind4[SyntaxKind4["JSDocSignature"] = 329] = "JSDocSignature"; - SyntaxKind4[SyntaxKind4["JSDocLink"] = 330] = "JSDocLink"; - SyntaxKind4[SyntaxKind4["JSDocLinkCode"] = 331] = "JSDocLinkCode"; - SyntaxKind4[SyntaxKind4["JSDocLinkPlain"] = 332] = "JSDocLinkPlain"; - SyntaxKind4[SyntaxKind4["JSDocTag"] = 333] = "JSDocTag"; - SyntaxKind4[SyntaxKind4["JSDocAugmentsTag"] = 334] = "JSDocAugmentsTag"; - SyntaxKind4[SyntaxKind4["JSDocImplementsTag"] = 335] = "JSDocImplementsTag"; - SyntaxKind4[SyntaxKind4["JSDocAuthorTag"] = 336] = "JSDocAuthorTag"; - SyntaxKind4[SyntaxKind4["JSDocDeprecatedTag"] = 337] = "JSDocDeprecatedTag"; - SyntaxKind4[SyntaxKind4["JSDocClassTag"] = 338] = "JSDocClassTag"; - SyntaxKind4[SyntaxKind4["JSDocPublicTag"] = 339] = "JSDocPublicTag"; - SyntaxKind4[SyntaxKind4["JSDocPrivateTag"] = 340] = "JSDocPrivateTag"; - SyntaxKind4[SyntaxKind4["JSDocProtectedTag"] = 341] = "JSDocProtectedTag"; - SyntaxKind4[SyntaxKind4["JSDocReadonlyTag"] = 342] = "JSDocReadonlyTag"; - SyntaxKind4[SyntaxKind4["JSDocOverrideTag"] = 343] = "JSDocOverrideTag"; - SyntaxKind4[SyntaxKind4["JSDocCallbackTag"] = 344] = "JSDocCallbackTag"; - SyntaxKind4[SyntaxKind4["JSDocOverloadTag"] = 345] = "JSDocOverloadTag"; - SyntaxKind4[SyntaxKind4["JSDocEnumTag"] = 346] = "JSDocEnumTag"; - SyntaxKind4[SyntaxKind4["JSDocParameterTag"] = 347] = "JSDocParameterTag"; - SyntaxKind4[SyntaxKind4["JSDocReturnTag"] = 348] = "JSDocReturnTag"; - SyntaxKind4[SyntaxKind4["JSDocThisTag"] = 349] = "JSDocThisTag"; - SyntaxKind4[SyntaxKind4["JSDocTypeTag"] = 350] = "JSDocTypeTag"; - SyntaxKind4[SyntaxKind4["JSDocTemplateTag"] = 351] = "JSDocTemplateTag"; - SyntaxKind4[SyntaxKind4["JSDocTypedefTag"] = 352] = "JSDocTypedefTag"; - SyntaxKind4[SyntaxKind4["JSDocSeeTag"] = 353] = "JSDocSeeTag"; - SyntaxKind4[SyntaxKind4["JSDocPropertyTag"] = 354] = "JSDocPropertyTag"; - SyntaxKind4[SyntaxKind4["JSDocThrowsTag"] = 355] = "JSDocThrowsTag"; - SyntaxKind4[SyntaxKind4["JSDocSatisfiesTag"] = 356] = "JSDocSatisfiesTag"; - SyntaxKind4[SyntaxKind4["SyntaxList"] = 357] = "SyntaxList"; - SyntaxKind4[SyntaxKind4["NotEmittedStatement"] = 358] = "NotEmittedStatement"; - SyntaxKind4[SyntaxKind4["PartiallyEmittedExpression"] = 359] = "PartiallyEmittedExpression"; - SyntaxKind4[SyntaxKind4["CommaListExpression"] = 360] = "CommaListExpression"; - SyntaxKind4[SyntaxKind4["SyntheticReferenceExpression"] = 361] = "SyntheticReferenceExpression"; - SyntaxKind4[SyntaxKind4["Count"] = 362] = "Count"; + SyntaxKind4[SyntaxKind4["UsingKeyword"] = 160] = "UsingKeyword"; + SyntaxKind4[SyntaxKind4["FromKeyword"] = 161] = "FromKeyword"; + SyntaxKind4[SyntaxKind4["GlobalKeyword"] = 162] = "GlobalKeyword"; + SyntaxKind4[SyntaxKind4["BigIntKeyword"] = 163] = "BigIntKeyword"; + SyntaxKind4[SyntaxKind4["OverrideKeyword"] = 164] = "OverrideKeyword"; + SyntaxKind4[SyntaxKind4["OfKeyword"] = 165] = "OfKeyword"; + SyntaxKind4[SyntaxKind4["QualifiedName"] = 166] = "QualifiedName"; + SyntaxKind4[SyntaxKind4["ComputedPropertyName"] = 167] = "ComputedPropertyName"; + SyntaxKind4[SyntaxKind4["TypeParameter"] = 168] = "TypeParameter"; + SyntaxKind4[SyntaxKind4["Parameter"] = 169] = "Parameter"; + SyntaxKind4[SyntaxKind4["Decorator"] = 170] = "Decorator"; + SyntaxKind4[SyntaxKind4["PropertySignature"] = 171] = "PropertySignature"; + SyntaxKind4[SyntaxKind4["PropertyDeclaration"] = 172] = "PropertyDeclaration"; + SyntaxKind4[SyntaxKind4["MethodSignature"] = 173] = "MethodSignature"; + SyntaxKind4[SyntaxKind4["MethodDeclaration"] = 174] = "MethodDeclaration"; + SyntaxKind4[SyntaxKind4["ClassStaticBlockDeclaration"] = 175] = "ClassStaticBlockDeclaration"; + SyntaxKind4[SyntaxKind4["Constructor"] = 176] = "Constructor"; + SyntaxKind4[SyntaxKind4["GetAccessor"] = 177] = "GetAccessor"; + SyntaxKind4[SyntaxKind4["SetAccessor"] = 178] = "SetAccessor"; + SyntaxKind4[SyntaxKind4["CallSignature"] = 179] = "CallSignature"; + SyntaxKind4[SyntaxKind4["ConstructSignature"] = 180] = "ConstructSignature"; + SyntaxKind4[SyntaxKind4["IndexSignature"] = 181] = "IndexSignature"; + SyntaxKind4[SyntaxKind4["TypePredicate"] = 182] = "TypePredicate"; + SyntaxKind4[SyntaxKind4["TypeReference"] = 183] = "TypeReference"; + SyntaxKind4[SyntaxKind4["FunctionType"] = 184] = "FunctionType"; + SyntaxKind4[SyntaxKind4["ConstructorType"] = 185] = "ConstructorType"; + SyntaxKind4[SyntaxKind4["TypeQuery"] = 186] = "TypeQuery"; + SyntaxKind4[SyntaxKind4["TypeLiteral"] = 187] = "TypeLiteral"; + SyntaxKind4[SyntaxKind4["ArrayType"] = 188] = "ArrayType"; + SyntaxKind4[SyntaxKind4["TupleType"] = 189] = "TupleType"; + SyntaxKind4[SyntaxKind4["OptionalType"] = 190] = "OptionalType"; + SyntaxKind4[SyntaxKind4["RestType"] = 191] = "RestType"; + SyntaxKind4[SyntaxKind4["UnionType"] = 192] = "UnionType"; + SyntaxKind4[SyntaxKind4["IntersectionType"] = 193] = "IntersectionType"; + SyntaxKind4[SyntaxKind4["ConditionalType"] = 194] = "ConditionalType"; + SyntaxKind4[SyntaxKind4["InferType"] = 195] = "InferType"; + SyntaxKind4[SyntaxKind4["ParenthesizedType"] = 196] = "ParenthesizedType"; + SyntaxKind4[SyntaxKind4["ThisType"] = 197] = "ThisType"; + SyntaxKind4[SyntaxKind4["TypeOperator"] = 198] = "TypeOperator"; + SyntaxKind4[SyntaxKind4["IndexedAccessType"] = 199] = "IndexedAccessType"; + SyntaxKind4[SyntaxKind4["MappedType"] = 200] = "MappedType"; + SyntaxKind4[SyntaxKind4["LiteralType"] = 201] = "LiteralType"; + SyntaxKind4[SyntaxKind4["NamedTupleMember"] = 202] = "NamedTupleMember"; + SyntaxKind4[SyntaxKind4["TemplateLiteralType"] = 203] = "TemplateLiteralType"; + SyntaxKind4[SyntaxKind4["TemplateLiteralTypeSpan"] = 204] = "TemplateLiteralTypeSpan"; + SyntaxKind4[SyntaxKind4["ImportType"] = 205] = "ImportType"; + SyntaxKind4[SyntaxKind4["ObjectBindingPattern"] = 206] = "ObjectBindingPattern"; + SyntaxKind4[SyntaxKind4["ArrayBindingPattern"] = 207] = "ArrayBindingPattern"; + SyntaxKind4[SyntaxKind4["BindingElement"] = 208] = "BindingElement"; + SyntaxKind4[SyntaxKind4["ArrayLiteralExpression"] = 209] = "ArrayLiteralExpression"; + SyntaxKind4[SyntaxKind4["ObjectLiteralExpression"] = 210] = "ObjectLiteralExpression"; + SyntaxKind4[SyntaxKind4["PropertyAccessExpression"] = 211] = "PropertyAccessExpression"; + SyntaxKind4[SyntaxKind4["ElementAccessExpression"] = 212] = "ElementAccessExpression"; + SyntaxKind4[SyntaxKind4["CallExpression"] = 213] = "CallExpression"; + SyntaxKind4[SyntaxKind4["NewExpression"] = 214] = "NewExpression"; + SyntaxKind4[SyntaxKind4["TaggedTemplateExpression"] = 215] = "TaggedTemplateExpression"; + SyntaxKind4[SyntaxKind4["TypeAssertionExpression"] = 216] = "TypeAssertionExpression"; + SyntaxKind4[SyntaxKind4["ParenthesizedExpression"] = 217] = "ParenthesizedExpression"; + SyntaxKind4[SyntaxKind4["FunctionExpression"] = 218] = "FunctionExpression"; + SyntaxKind4[SyntaxKind4["ArrowFunction"] = 219] = "ArrowFunction"; + SyntaxKind4[SyntaxKind4["DeleteExpression"] = 220] = "DeleteExpression"; + SyntaxKind4[SyntaxKind4["TypeOfExpression"] = 221] = "TypeOfExpression"; + SyntaxKind4[SyntaxKind4["VoidExpression"] = 222] = "VoidExpression"; + SyntaxKind4[SyntaxKind4["AwaitExpression"] = 223] = "AwaitExpression"; + SyntaxKind4[SyntaxKind4["PrefixUnaryExpression"] = 224] = "PrefixUnaryExpression"; + SyntaxKind4[SyntaxKind4["PostfixUnaryExpression"] = 225] = "PostfixUnaryExpression"; + SyntaxKind4[SyntaxKind4["BinaryExpression"] = 226] = "BinaryExpression"; + SyntaxKind4[SyntaxKind4["ConditionalExpression"] = 227] = "ConditionalExpression"; + SyntaxKind4[SyntaxKind4["TemplateExpression"] = 228] = "TemplateExpression"; + SyntaxKind4[SyntaxKind4["YieldExpression"] = 229] = "YieldExpression"; + SyntaxKind4[SyntaxKind4["SpreadElement"] = 230] = "SpreadElement"; + SyntaxKind4[SyntaxKind4["ClassExpression"] = 231] = "ClassExpression"; + SyntaxKind4[SyntaxKind4["OmittedExpression"] = 232] = "OmittedExpression"; + SyntaxKind4[SyntaxKind4["ExpressionWithTypeArguments"] = 233] = "ExpressionWithTypeArguments"; + SyntaxKind4[SyntaxKind4["AsExpression"] = 234] = "AsExpression"; + SyntaxKind4[SyntaxKind4["NonNullExpression"] = 235] = "NonNullExpression"; + SyntaxKind4[SyntaxKind4["MetaProperty"] = 236] = "MetaProperty"; + SyntaxKind4[SyntaxKind4["SyntheticExpression"] = 237] = "SyntheticExpression"; + SyntaxKind4[SyntaxKind4["SatisfiesExpression"] = 238] = "SatisfiesExpression"; + SyntaxKind4[SyntaxKind4["TemplateSpan"] = 239] = "TemplateSpan"; + SyntaxKind4[SyntaxKind4["SemicolonClassElement"] = 240] = "SemicolonClassElement"; + SyntaxKind4[SyntaxKind4["Block"] = 241] = "Block"; + SyntaxKind4[SyntaxKind4["EmptyStatement"] = 242] = "EmptyStatement"; + SyntaxKind4[SyntaxKind4["VariableStatement"] = 243] = "VariableStatement"; + SyntaxKind4[SyntaxKind4["ExpressionStatement"] = 244] = "ExpressionStatement"; + SyntaxKind4[SyntaxKind4["IfStatement"] = 245] = "IfStatement"; + SyntaxKind4[SyntaxKind4["DoStatement"] = 246] = "DoStatement"; + SyntaxKind4[SyntaxKind4["WhileStatement"] = 247] = "WhileStatement"; + SyntaxKind4[SyntaxKind4["ForStatement"] = 248] = "ForStatement"; + SyntaxKind4[SyntaxKind4["ForInStatement"] = 249] = "ForInStatement"; + SyntaxKind4[SyntaxKind4["ForOfStatement"] = 250] = "ForOfStatement"; + SyntaxKind4[SyntaxKind4["ContinueStatement"] = 251] = "ContinueStatement"; + SyntaxKind4[SyntaxKind4["BreakStatement"] = 252] = "BreakStatement"; + SyntaxKind4[SyntaxKind4["ReturnStatement"] = 253] = "ReturnStatement"; + SyntaxKind4[SyntaxKind4["WithStatement"] = 254] = "WithStatement"; + SyntaxKind4[SyntaxKind4["SwitchStatement"] = 255] = "SwitchStatement"; + SyntaxKind4[SyntaxKind4["LabeledStatement"] = 256] = "LabeledStatement"; + SyntaxKind4[SyntaxKind4["ThrowStatement"] = 257] = "ThrowStatement"; + SyntaxKind4[SyntaxKind4["TryStatement"] = 258] = "TryStatement"; + SyntaxKind4[SyntaxKind4["DebuggerStatement"] = 259] = "DebuggerStatement"; + SyntaxKind4[SyntaxKind4["VariableDeclaration"] = 260] = "VariableDeclaration"; + SyntaxKind4[SyntaxKind4["VariableDeclarationList"] = 261] = "VariableDeclarationList"; + SyntaxKind4[SyntaxKind4["FunctionDeclaration"] = 262] = "FunctionDeclaration"; + SyntaxKind4[SyntaxKind4["ClassDeclaration"] = 263] = "ClassDeclaration"; + SyntaxKind4[SyntaxKind4["InterfaceDeclaration"] = 264] = "InterfaceDeclaration"; + SyntaxKind4[SyntaxKind4["TypeAliasDeclaration"] = 265] = "TypeAliasDeclaration"; + SyntaxKind4[SyntaxKind4["EnumDeclaration"] = 266] = "EnumDeclaration"; + SyntaxKind4[SyntaxKind4["ModuleDeclaration"] = 267] = "ModuleDeclaration"; + SyntaxKind4[SyntaxKind4["ModuleBlock"] = 268] = "ModuleBlock"; + SyntaxKind4[SyntaxKind4["CaseBlock"] = 269] = "CaseBlock"; + SyntaxKind4[SyntaxKind4["NamespaceExportDeclaration"] = 270] = "NamespaceExportDeclaration"; + SyntaxKind4[SyntaxKind4["ImportEqualsDeclaration"] = 271] = "ImportEqualsDeclaration"; + SyntaxKind4[SyntaxKind4["ImportDeclaration"] = 272] = "ImportDeclaration"; + SyntaxKind4[SyntaxKind4["ImportClause"] = 273] = "ImportClause"; + SyntaxKind4[SyntaxKind4["NamespaceImport"] = 274] = "NamespaceImport"; + SyntaxKind4[SyntaxKind4["NamedImports"] = 275] = "NamedImports"; + SyntaxKind4[SyntaxKind4["ImportSpecifier"] = 276] = "ImportSpecifier"; + SyntaxKind4[SyntaxKind4["ExportAssignment"] = 277] = "ExportAssignment"; + SyntaxKind4[SyntaxKind4["ExportDeclaration"] = 278] = "ExportDeclaration"; + SyntaxKind4[SyntaxKind4["NamedExports"] = 279] = "NamedExports"; + SyntaxKind4[SyntaxKind4["NamespaceExport"] = 280] = "NamespaceExport"; + SyntaxKind4[SyntaxKind4["ExportSpecifier"] = 281] = "ExportSpecifier"; + SyntaxKind4[SyntaxKind4["MissingDeclaration"] = 282] = "MissingDeclaration"; + SyntaxKind4[SyntaxKind4["ExternalModuleReference"] = 283] = "ExternalModuleReference"; + SyntaxKind4[SyntaxKind4["JsxElement"] = 284] = "JsxElement"; + SyntaxKind4[SyntaxKind4["JsxSelfClosingElement"] = 285] = "JsxSelfClosingElement"; + SyntaxKind4[SyntaxKind4["JsxOpeningElement"] = 286] = "JsxOpeningElement"; + SyntaxKind4[SyntaxKind4["JsxClosingElement"] = 287] = "JsxClosingElement"; + SyntaxKind4[SyntaxKind4["JsxFragment"] = 288] = "JsxFragment"; + SyntaxKind4[SyntaxKind4["JsxOpeningFragment"] = 289] = "JsxOpeningFragment"; + SyntaxKind4[SyntaxKind4["JsxClosingFragment"] = 290] = "JsxClosingFragment"; + SyntaxKind4[SyntaxKind4["JsxAttribute"] = 291] = "JsxAttribute"; + SyntaxKind4[SyntaxKind4["JsxAttributes"] = 292] = "JsxAttributes"; + SyntaxKind4[SyntaxKind4["JsxSpreadAttribute"] = 293] = "JsxSpreadAttribute"; + SyntaxKind4[SyntaxKind4["JsxExpression"] = 294] = "JsxExpression"; + SyntaxKind4[SyntaxKind4["JsxNamespacedName"] = 295] = "JsxNamespacedName"; + SyntaxKind4[SyntaxKind4["CaseClause"] = 296] = "CaseClause"; + SyntaxKind4[SyntaxKind4["DefaultClause"] = 297] = "DefaultClause"; + SyntaxKind4[SyntaxKind4["HeritageClause"] = 298] = "HeritageClause"; + SyntaxKind4[SyntaxKind4["CatchClause"] = 299] = "CatchClause"; + SyntaxKind4[SyntaxKind4["AssertClause"] = 300] = "AssertClause"; + SyntaxKind4[SyntaxKind4["AssertEntry"] = 301] = "AssertEntry"; + SyntaxKind4[SyntaxKind4["ImportTypeAssertionContainer"] = 302] = "ImportTypeAssertionContainer"; + SyntaxKind4[SyntaxKind4["PropertyAssignment"] = 303] = "PropertyAssignment"; + SyntaxKind4[SyntaxKind4["ShorthandPropertyAssignment"] = 304] = "ShorthandPropertyAssignment"; + SyntaxKind4[SyntaxKind4["SpreadAssignment"] = 305] = "SpreadAssignment"; + SyntaxKind4[SyntaxKind4["EnumMember"] = 306] = "EnumMember"; + SyntaxKind4[SyntaxKind4["UnparsedPrologue"] = 307] = "UnparsedPrologue"; + SyntaxKind4[SyntaxKind4["UnparsedPrepend"] = 308] = "UnparsedPrepend"; + SyntaxKind4[SyntaxKind4["UnparsedText"] = 309] = "UnparsedText"; + SyntaxKind4[SyntaxKind4["UnparsedInternalText"] = 310] = "UnparsedInternalText"; + SyntaxKind4[SyntaxKind4["UnparsedSyntheticReference"] = 311] = "UnparsedSyntheticReference"; + SyntaxKind4[SyntaxKind4["SourceFile"] = 312] = "SourceFile"; + SyntaxKind4[SyntaxKind4["Bundle"] = 313] = "Bundle"; + SyntaxKind4[SyntaxKind4["UnparsedSource"] = 314] = "UnparsedSource"; + SyntaxKind4[SyntaxKind4["InputFiles"] = 315] = "InputFiles"; + SyntaxKind4[SyntaxKind4["JSDocTypeExpression"] = 316] = "JSDocTypeExpression"; + SyntaxKind4[SyntaxKind4["JSDocNameReference"] = 317] = "JSDocNameReference"; + SyntaxKind4[SyntaxKind4["JSDocMemberName"] = 318] = "JSDocMemberName"; + SyntaxKind4[SyntaxKind4["JSDocAllType"] = 319] = "JSDocAllType"; + SyntaxKind4[SyntaxKind4["JSDocUnknownType"] = 320] = "JSDocUnknownType"; + SyntaxKind4[SyntaxKind4["JSDocNullableType"] = 321] = "JSDocNullableType"; + SyntaxKind4[SyntaxKind4["JSDocNonNullableType"] = 322] = "JSDocNonNullableType"; + SyntaxKind4[SyntaxKind4["JSDocOptionalType"] = 323] = "JSDocOptionalType"; + SyntaxKind4[SyntaxKind4["JSDocFunctionType"] = 324] = "JSDocFunctionType"; + SyntaxKind4[SyntaxKind4["JSDocVariadicType"] = 325] = "JSDocVariadicType"; + SyntaxKind4[SyntaxKind4["JSDocNamepathType"] = 326] = "JSDocNamepathType"; + SyntaxKind4[SyntaxKind4["JSDoc"] = 327] = "JSDoc"; + SyntaxKind4[SyntaxKind4["JSDocComment"] = 327 /* JSDoc */] = "JSDocComment"; + SyntaxKind4[SyntaxKind4["JSDocText"] = 328] = "JSDocText"; + SyntaxKind4[SyntaxKind4["JSDocTypeLiteral"] = 329] = "JSDocTypeLiteral"; + SyntaxKind4[SyntaxKind4["JSDocSignature"] = 330] = "JSDocSignature"; + SyntaxKind4[SyntaxKind4["JSDocLink"] = 331] = "JSDocLink"; + SyntaxKind4[SyntaxKind4["JSDocLinkCode"] = 332] = "JSDocLinkCode"; + SyntaxKind4[SyntaxKind4["JSDocLinkPlain"] = 333] = "JSDocLinkPlain"; + SyntaxKind4[SyntaxKind4["JSDocTag"] = 334] = "JSDocTag"; + SyntaxKind4[SyntaxKind4["JSDocAugmentsTag"] = 335] = "JSDocAugmentsTag"; + SyntaxKind4[SyntaxKind4["JSDocImplementsTag"] = 336] = "JSDocImplementsTag"; + SyntaxKind4[SyntaxKind4["JSDocAuthorTag"] = 337] = "JSDocAuthorTag"; + SyntaxKind4[SyntaxKind4["JSDocDeprecatedTag"] = 338] = "JSDocDeprecatedTag"; + SyntaxKind4[SyntaxKind4["JSDocClassTag"] = 339] = "JSDocClassTag"; + SyntaxKind4[SyntaxKind4["JSDocPublicTag"] = 340] = "JSDocPublicTag"; + SyntaxKind4[SyntaxKind4["JSDocPrivateTag"] = 341] = "JSDocPrivateTag"; + SyntaxKind4[SyntaxKind4["JSDocProtectedTag"] = 342] = "JSDocProtectedTag"; + SyntaxKind4[SyntaxKind4["JSDocReadonlyTag"] = 343] = "JSDocReadonlyTag"; + SyntaxKind4[SyntaxKind4["JSDocOverrideTag"] = 344] = "JSDocOverrideTag"; + SyntaxKind4[SyntaxKind4["JSDocCallbackTag"] = 345] = "JSDocCallbackTag"; + SyntaxKind4[SyntaxKind4["JSDocOverloadTag"] = 346] = "JSDocOverloadTag"; + SyntaxKind4[SyntaxKind4["JSDocEnumTag"] = 347] = "JSDocEnumTag"; + SyntaxKind4[SyntaxKind4["JSDocParameterTag"] = 348] = "JSDocParameterTag"; + SyntaxKind4[SyntaxKind4["JSDocReturnTag"] = 349] = "JSDocReturnTag"; + SyntaxKind4[SyntaxKind4["JSDocThisTag"] = 350] = "JSDocThisTag"; + SyntaxKind4[SyntaxKind4["JSDocTypeTag"] = 351] = "JSDocTypeTag"; + SyntaxKind4[SyntaxKind4["JSDocTemplateTag"] = 352] = "JSDocTemplateTag"; + SyntaxKind4[SyntaxKind4["JSDocTypedefTag"] = 353] = "JSDocTypedefTag"; + SyntaxKind4[SyntaxKind4["JSDocSeeTag"] = 354] = "JSDocSeeTag"; + SyntaxKind4[SyntaxKind4["JSDocPropertyTag"] = 355] = "JSDocPropertyTag"; + SyntaxKind4[SyntaxKind4["JSDocThrowsTag"] = 356] = "JSDocThrowsTag"; + SyntaxKind4[SyntaxKind4["JSDocSatisfiesTag"] = 357] = "JSDocSatisfiesTag"; + SyntaxKind4[SyntaxKind4["SyntaxList"] = 358] = "SyntaxList"; + SyntaxKind4[SyntaxKind4["NotEmittedStatement"] = 359] = "NotEmittedStatement"; + SyntaxKind4[SyntaxKind4["PartiallyEmittedExpression"] = 360] = "PartiallyEmittedExpression"; + SyntaxKind4[SyntaxKind4["CommaListExpression"] = 361] = "CommaListExpression"; + SyntaxKind4[SyntaxKind4["SyntheticReferenceExpression"] = 362] = "SyntheticReferenceExpression"; + SyntaxKind4[SyntaxKind4["Count"] = 363] = "Count"; SyntaxKind4[SyntaxKind4["FirstAssignment"] = 64 /* EqualsToken */] = "FirstAssignment"; SyntaxKind4[SyntaxKind4["LastAssignment"] = 79 /* CaretEqualsToken */] = "LastAssignment"; SyntaxKind4[SyntaxKind4["FirstCompoundAssignment"] = 65 /* PlusEqualsToken */] = "FirstCompoundAssignment"; @@ -2863,15 +2873,15 @@ var SyntaxKind = /* @__PURE__ */ ((SyntaxKind4) => { SyntaxKind4[SyntaxKind4["FirstReservedWord"] = 83 /* BreakKeyword */] = "FirstReservedWord"; SyntaxKind4[SyntaxKind4["LastReservedWord"] = 118 /* WithKeyword */] = "LastReservedWord"; SyntaxKind4[SyntaxKind4["FirstKeyword"] = 83 /* BreakKeyword */] = "FirstKeyword"; - SyntaxKind4[SyntaxKind4["LastKeyword"] = 164 /* OfKeyword */] = "LastKeyword"; + SyntaxKind4[SyntaxKind4["LastKeyword"] = 165 /* OfKeyword */] = "LastKeyword"; SyntaxKind4[SyntaxKind4["FirstFutureReservedWord"] = 119 /* ImplementsKeyword */] = "FirstFutureReservedWord"; SyntaxKind4[SyntaxKind4["LastFutureReservedWord"] = 127 /* YieldKeyword */] = "LastFutureReservedWord"; - SyntaxKind4[SyntaxKind4["FirstTypeNode"] = 181 /* TypePredicate */] = "FirstTypeNode"; - SyntaxKind4[SyntaxKind4["LastTypeNode"] = 204 /* ImportType */] = "LastTypeNode"; + SyntaxKind4[SyntaxKind4["FirstTypeNode"] = 182 /* TypePredicate */] = "FirstTypeNode"; + SyntaxKind4[SyntaxKind4["LastTypeNode"] = 205 /* ImportType */] = "LastTypeNode"; SyntaxKind4[SyntaxKind4["FirstPunctuation"] = 19 /* OpenBraceToken */] = "FirstPunctuation"; SyntaxKind4[SyntaxKind4["LastPunctuation"] = 79 /* CaretEqualsToken */] = "LastPunctuation"; SyntaxKind4[SyntaxKind4["FirstToken"] = 0 /* Unknown */] = "FirstToken"; - SyntaxKind4[SyntaxKind4["LastToken"] = 164 /* LastKeyword */] = "LastToken"; + SyntaxKind4[SyntaxKind4["LastToken"] = 165 /* LastKeyword */] = "LastToken"; SyntaxKind4[SyntaxKind4["FirstTriviaToken"] = 2 /* SingleLineCommentTrivia */] = "FirstTriviaToken"; SyntaxKind4[SyntaxKind4["LastTriviaToken"] = 7 /* ConflictMarkerTrivia */] = "LastTriviaToken"; SyntaxKind4[SyntaxKind4["FirstLiteralToken"] = 9 /* NumericLiteral */] = "FirstLiteralToken"; @@ -2880,56 +2890,59 @@ var SyntaxKind = /* @__PURE__ */ ((SyntaxKind4) => { SyntaxKind4[SyntaxKind4["LastTemplateToken"] = 18 /* TemplateTail */] = "LastTemplateToken"; SyntaxKind4[SyntaxKind4["FirstBinaryOperator"] = 30 /* LessThanToken */] = "FirstBinaryOperator"; SyntaxKind4[SyntaxKind4["LastBinaryOperator"] = 79 /* CaretEqualsToken */] = "LastBinaryOperator"; - SyntaxKind4[SyntaxKind4["FirstStatement"] = 242 /* VariableStatement */] = "FirstStatement"; - SyntaxKind4[SyntaxKind4["LastStatement"] = 258 /* DebuggerStatement */] = "LastStatement"; - SyntaxKind4[SyntaxKind4["FirstNode"] = 165 /* QualifiedName */] = "FirstNode"; - SyntaxKind4[SyntaxKind4["FirstJSDocNode"] = 315 /* JSDocTypeExpression */] = "FirstJSDocNode"; - SyntaxKind4[SyntaxKind4["LastJSDocNode"] = 356 /* JSDocSatisfiesTag */] = "LastJSDocNode"; - SyntaxKind4[SyntaxKind4["FirstJSDocTagNode"] = 333 /* JSDocTag */] = "FirstJSDocTagNode"; - SyntaxKind4[SyntaxKind4["LastJSDocTagNode"] = 356 /* JSDocSatisfiesTag */] = "LastJSDocTagNode"; + SyntaxKind4[SyntaxKind4["FirstStatement"] = 243 /* VariableStatement */] = "FirstStatement"; + SyntaxKind4[SyntaxKind4["LastStatement"] = 259 /* DebuggerStatement */] = "LastStatement"; + SyntaxKind4[SyntaxKind4["FirstNode"] = 166 /* QualifiedName */] = "FirstNode"; + SyntaxKind4[SyntaxKind4["FirstJSDocNode"] = 316 /* JSDocTypeExpression */] = "FirstJSDocNode"; + SyntaxKind4[SyntaxKind4["LastJSDocNode"] = 357 /* JSDocSatisfiesTag */] = "LastJSDocNode"; + SyntaxKind4[SyntaxKind4["FirstJSDocTagNode"] = 334 /* JSDocTag */] = "FirstJSDocTagNode"; + SyntaxKind4[SyntaxKind4["LastJSDocTagNode"] = 357 /* JSDocSatisfiesTag */] = "LastJSDocTagNode"; SyntaxKind4[SyntaxKind4["FirstContextualKeyword"] = 128 /* AbstractKeyword */] = "FirstContextualKeyword"; - SyntaxKind4[SyntaxKind4["LastContextualKeyword"] = 164 /* OfKeyword */] = "LastContextualKeyword"; + SyntaxKind4[SyntaxKind4["LastContextualKeyword"] = 165 /* OfKeyword */] = "LastContextualKeyword"; return SyntaxKind4; })(SyntaxKind || {}); var NodeFlags = /* @__PURE__ */ ((NodeFlags3) => { NodeFlags3[NodeFlags3["None"] = 0] = "None"; NodeFlags3[NodeFlags3["Let"] = 1] = "Let"; NodeFlags3[NodeFlags3["Const"] = 2] = "Const"; - NodeFlags3[NodeFlags3["NestedNamespace"] = 4] = "NestedNamespace"; - NodeFlags3[NodeFlags3["Synthesized"] = 8] = "Synthesized"; - NodeFlags3[NodeFlags3["Namespace"] = 16] = "Namespace"; - NodeFlags3[NodeFlags3["OptionalChain"] = 32] = "OptionalChain"; - NodeFlags3[NodeFlags3["ExportContext"] = 64] = "ExportContext"; - NodeFlags3[NodeFlags3["ContainsThis"] = 128] = "ContainsThis"; - NodeFlags3[NodeFlags3["HasImplicitReturn"] = 256] = "HasImplicitReturn"; - NodeFlags3[NodeFlags3["HasExplicitReturn"] = 512] = "HasExplicitReturn"; - NodeFlags3[NodeFlags3["GlobalAugmentation"] = 1024] = "GlobalAugmentation"; - NodeFlags3[NodeFlags3["HasAsyncFunctions"] = 2048] = "HasAsyncFunctions"; - NodeFlags3[NodeFlags3["DisallowInContext"] = 4096] = "DisallowInContext"; - NodeFlags3[NodeFlags3["YieldContext"] = 8192] = "YieldContext"; - NodeFlags3[NodeFlags3["DecoratorContext"] = 16384] = "DecoratorContext"; - NodeFlags3[NodeFlags3["AwaitContext"] = 32768] = "AwaitContext"; - NodeFlags3[NodeFlags3["DisallowConditionalTypesContext"] = 65536] = "DisallowConditionalTypesContext"; - NodeFlags3[NodeFlags3["ThisNodeHasError"] = 131072] = "ThisNodeHasError"; - NodeFlags3[NodeFlags3["JavaScriptFile"] = 262144] = "JavaScriptFile"; - NodeFlags3[NodeFlags3["ThisNodeOrAnySubNodesHasError"] = 524288] = "ThisNodeOrAnySubNodesHasError"; - NodeFlags3[NodeFlags3["HasAggregatedChildData"] = 1048576] = "HasAggregatedChildData"; - NodeFlags3[NodeFlags3["PossiblyContainsDynamicImport"] = 2097152] = "PossiblyContainsDynamicImport"; - NodeFlags3[NodeFlags3["PossiblyContainsImportMeta"] = 4194304] = "PossiblyContainsImportMeta"; - NodeFlags3[NodeFlags3["JSDoc"] = 8388608] = "JSDoc"; - NodeFlags3[NodeFlags3["Ambient"] = 16777216] = "Ambient"; - NodeFlags3[NodeFlags3["InWithStatement"] = 33554432] = "InWithStatement"; - NodeFlags3[NodeFlags3["JsonFile"] = 67108864] = "JsonFile"; - NodeFlags3[NodeFlags3["TypeCached"] = 134217728] = "TypeCached"; - NodeFlags3[NodeFlags3["Deprecated"] = 268435456] = "Deprecated"; - NodeFlags3[NodeFlags3["BlockScoped"] = 3] = "BlockScoped"; - NodeFlags3[NodeFlags3["ReachabilityCheckFlags"] = 768] = "ReachabilityCheckFlags"; - NodeFlags3[NodeFlags3["ReachabilityAndEmitFlags"] = 2816] = "ReachabilityAndEmitFlags"; - NodeFlags3[NodeFlags3["ContextFlags"] = 50720768] = "ContextFlags"; - NodeFlags3[NodeFlags3["TypeExcludesFlags"] = 40960] = "TypeExcludesFlags"; - NodeFlags3[NodeFlags3["PermanentlySetIncrementalFlags"] = 6291456] = "PermanentlySetIncrementalFlags"; - NodeFlags3[NodeFlags3["IdentifierHasExtendedUnicodeEscape"] = 128 /* ContainsThis */] = "IdentifierHasExtendedUnicodeEscape"; - NodeFlags3[NodeFlags3["IdentifierIsInJSDocNamespace"] = 2048 /* HasAsyncFunctions */] = "IdentifierIsInJSDocNamespace"; + NodeFlags3[NodeFlags3["Using"] = 4] = "Using"; + NodeFlags3[NodeFlags3["AwaitUsing"] = 6] = "AwaitUsing"; + NodeFlags3[NodeFlags3["NestedNamespace"] = 8] = "NestedNamespace"; + NodeFlags3[NodeFlags3["Synthesized"] = 16] = "Synthesized"; + NodeFlags3[NodeFlags3["Namespace"] = 32] = "Namespace"; + NodeFlags3[NodeFlags3["OptionalChain"] = 64] = "OptionalChain"; + NodeFlags3[NodeFlags3["ExportContext"] = 128] = "ExportContext"; + NodeFlags3[NodeFlags3["ContainsThis"] = 256] = "ContainsThis"; + NodeFlags3[NodeFlags3["HasImplicitReturn"] = 512] = "HasImplicitReturn"; + NodeFlags3[NodeFlags3["HasExplicitReturn"] = 1024] = "HasExplicitReturn"; + NodeFlags3[NodeFlags3["GlobalAugmentation"] = 2048] = "GlobalAugmentation"; + NodeFlags3[NodeFlags3["HasAsyncFunctions"] = 4096] = "HasAsyncFunctions"; + NodeFlags3[NodeFlags3["DisallowInContext"] = 8192] = "DisallowInContext"; + NodeFlags3[NodeFlags3["YieldContext"] = 16384] = "YieldContext"; + NodeFlags3[NodeFlags3["DecoratorContext"] = 32768] = "DecoratorContext"; + NodeFlags3[NodeFlags3["AwaitContext"] = 65536] = "AwaitContext"; + NodeFlags3[NodeFlags3["DisallowConditionalTypesContext"] = 131072] = "DisallowConditionalTypesContext"; + NodeFlags3[NodeFlags3["ThisNodeHasError"] = 262144] = "ThisNodeHasError"; + NodeFlags3[NodeFlags3["JavaScriptFile"] = 524288] = "JavaScriptFile"; + NodeFlags3[NodeFlags3["ThisNodeOrAnySubNodesHasError"] = 1048576] = "ThisNodeOrAnySubNodesHasError"; + NodeFlags3[NodeFlags3["HasAggregatedChildData"] = 2097152] = "HasAggregatedChildData"; + NodeFlags3[NodeFlags3["PossiblyContainsDynamicImport"] = 4194304] = "PossiblyContainsDynamicImport"; + NodeFlags3[NodeFlags3["PossiblyContainsImportMeta"] = 8388608] = "PossiblyContainsImportMeta"; + NodeFlags3[NodeFlags3["JSDoc"] = 16777216] = "JSDoc"; + NodeFlags3[NodeFlags3["Ambient"] = 33554432] = "Ambient"; + NodeFlags3[NodeFlags3["InWithStatement"] = 67108864] = "InWithStatement"; + NodeFlags3[NodeFlags3["JsonFile"] = 134217728] = "JsonFile"; + NodeFlags3[NodeFlags3["TypeCached"] = 268435456] = "TypeCached"; + NodeFlags3[NodeFlags3["Deprecated"] = 536870912] = "Deprecated"; + NodeFlags3[NodeFlags3["BlockScoped"] = 7] = "BlockScoped"; + NodeFlags3[NodeFlags3["Constant"] = 6] = "Constant"; + NodeFlags3[NodeFlags3["ReachabilityCheckFlags"] = 1536] = "ReachabilityCheckFlags"; + NodeFlags3[NodeFlags3["ReachabilityAndEmitFlags"] = 5632] = "ReachabilityAndEmitFlags"; + NodeFlags3[NodeFlags3["ContextFlags"] = 101441536] = "ContextFlags"; + NodeFlags3[NodeFlags3["TypeExcludesFlags"] = 81920] = "TypeExcludesFlags"; + NodeFlags3[NodeFlags3["PermanentlySetIncrementalFlags"] = 12582912] = "PermanentlySetIncrementalFlags"; + NodeFlags3[NodeFlags3["IdentifierHasExtendedUnicodeEscape"] = 256 /* ContainsThis */] = "IdentifierHasExtendedUnicodeEscape"; + NodeFlags3[NodeFlags3["IdentifierIsInJSDocNamespace"] = 4096 /* HasAsyncFunctions */] = "IdentifierIsInJSDocNamespace"; return NodeFlags3; })(NodeFlags || {}); var ModifierFlags = /* @__PURE__ */ ((ModifierFlags3) => { @@ -3180,7 +3193,8 @@ var SignatureFlags = /* @__PURE__ */ ((SignatureFlags4) => { SignatureFlags4[SignatureFlags4["IsOuterCallChain"] = 16] = "IsOuterCallChain"; SignatureFlags4[SignatureFlags4["IsUntypedSignatureInJSFile"] = 32] = "IsUntypedSignatureInJSFile"; SignatureFlags4[SignatureFlags4["IsNonInferrable"] = 64] = "IsNonInferrable"; - SignatureFlags4[SignatureFlags4["PropagatingFlags"] = 39] = "PropagatingFlags"; + SignatureFlags4[SignatureFlags4["IsSignatureCandidateForOverloadFailure"] = 128] = "IsSignatureCandidateForOverloadFailure"; + SignatureFlags4[SignatureFlags4["PropagatingFlags"] = 167] = "PropagatingFlags"; SignatureFlags4[SignatureFlags4["CallChainFlags"] = 24] = "CallChainFlags"; return SignatureFlags4; })(SignatureFlags || {}); @@ -3200,6 +3214,17 @@ var ModuleResolutionKind = /* @__PURE__ */ ((ModuleResolutionKind2) => { ModuleResolutionKind2[ModuleResolutionKind2["Bundler"] = 100] = "Bundler"; return ModuleResolutionKind2; })(ModuleResolutionKind || {}); +var ScriptKind = /* @__PURE__ */ ((ScriptKind3) => { + ScriptKind3[ScriptKind3["Unknown"] = 0] = "Unknown"; + ScriptKind3[ScriptKind3["JS"] = 1] = "JS"; + ScriptKind3[ScriptKind3["JSX"] = 2] = "JSX"; + ScriptKind3[ScriptKind3["TS"] = 3] = "TS"; + ScriptKind3[ScriptKind3["TSX"] = 4] = "TSX"; + ScriptKind3[ScriptKind3["External"] = 5] = "External"; + ScriptKind3[ScriptKind3["JSON"] = 6] = "JSON"; + ScriptKind3[ScriptKind3["Deferred"] = 7] = "Deferred"; + return ScriptKind3; +})(ScriptKind || {}); var TransformFlags = /* @__PURE__ */ ((TransformFlags3) => { TransformFlags3[TransformFlags3["None"] = 0] = "None"; TransformFlags3[TransformFlags3["ContainsTypeScript"] = 1] = "ContainsTypeScript"; @@ -3562,10 +3587,10 @@ function createDynamicPriorityPollingWatchFile(host) { pollingIntervalQueue(pollingInterval).pollScheduled = host.setTimeout(pollingInterval === 250 /* Low */ ? pollLowPollingIntervalQueue : pollPollingIntervalQueue, pollingInterval, pollingInterval === 250 /* Low */ ? "pollLowPollingIntervalQueue" : "pollPollingIntervalQueue", pollingIntervalQueue(pollingInterval)); } } -function createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames) { +function createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames2) { const fileWatcherCallbacks = createMultiMap(); const dirWatchers = /* @__PURE__ */ new Map(); - const toCanonicalName = createGetCanonicalFileName(useCaseSensitiveFileNames); + const toCanonicalName = createGetCanonicalFileName(useCaseSensitiveFileNames2); return nonPollingWatchFile; function nonPollingWatchFile(fileName, callback, _pollingInterval, fallbackOptions) { const filePath = toCanonicalName(fileName); @@ -3641,8 +3666,8 @@ function createFixedChunkSizePollingWatchFile(host) { pollScheduled = host.setTimeout(pollQueue, 2e3 /* High */, "pollQueue"); } } -function createSingleWatcherPerName(cache, useCaseSensitiveFileNames, name, callback, createWatcher) { - const toCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames); +function createSingleWatcherPerName(cache, useCaseSensitiveFileNames2, name, callback, createWatcher) { + const toCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2); const path2 = toCanonicalFileName(name); const existing = cache.get(path2); if (existing) { @@ -3691,7 +3716,7 @@ function sysLog(s) { } function createDirectoryWatcherSupportingRecursive({ watchDirectory, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, getCurrentDirectory, getAccessibleSortedChildDirectories, fileSystemEntryExists, @@ -3703,8 +3728,8 @@ function createDirectoryWatcherSupportingRecursive({ const callbackCache = createMultiMap(); const cacheToUpdateChildWatches = /* @__PURE__ */ new Map(); let timerToUpdateChildWatches; - const filePathComparer = getStringComparer(!useCaseSensitiveFileNames); - const toCanonicalFilePath = createGetCanonicalFileName(useCaseSensitiveFileNames); + const filePathComparer = getStringComparer(!useCaseSensitiveFileNames2); + const toCanonicalFilePath = createGetCanonicalFileName(useCaseSensitiveFileNames2); return (dirName, callback, recursive, options) => recursive ? createDirectoryWatcher(dirName, options, callback) : watchDirectory(dirName, callback, recursive, options); function createDirectoryWatcher(dirName, options, callback) { const dirPath = toCanonicalFilePath(dirName); @@ -3871,12 +3896,12 @@ function createDirectoryWatcherSupportingRecursive({ } } function isIgnoredPath(path2, options) { - return some(ignoredPaths, (searchPath) => isInPath(path2, searchPath)) || isIgnoredByWatchOptions(path2, options, useCaseSensitiveFileNames, getCurrentDirectory); + return some(ignoredPaths, (searchPath) => isInPath(path2, searchPath)) || isIgnoredByWatchOptions(path2, options, useCaseSensitiveFileNames2, getCurrentDirectory); } function isInPath(path2, searchPath) { if (stringContains(path2, searchPath)) return true; - if (useCaseSensitiveFileNames) + if (useCaseSensitiveFileNames2) return false; return stringContains(toCanonicalFilePath(path2), searchPath); } @@ -3894,14 +3919,14 @@ function createFsWatchCallbackForFileWatcherCallback(fileName, callback, getModi } }; } -function isIgnoredByWatchOptions(pathToCheck, options, useCaseSensitiveFileNames, getCurrentDirectory) { - return ((options == null ? void 0 : options.excludeDirectories) || (options == null ? void 0 : options.excludeFiles)) && (matchesExclude(pathToCheck, options == null ? void 0 : options.excludeFiles, useCaseSensitiveFileNames, getCurrentDirectory()) || matchesExclude(pathToCheck, options == null ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames, getCurrentDirectory())); +function isIgnoredByWatchOptions(pathToCheck, options, useCaseSensitiveFileNames2, getCurrentDirectory) { + return ((options == null ? void 0 : options.excludeDirectories) || (options == null ? void 0 : options.excludeFiles)) && (matchesExclude(pathToCheck, options == null ? void 0 : options.excludeFiles, useCaseSensitiveFileNames2, getCurrentDirectory()) || matchesExclude(pathToCheck, options == null ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames2, getCurrentDirectory())); } -function createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames, getCurrentDirectory) { +function createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames2, getCurrentDirectory) { return (eventName, relativeFileName) => { if (eventName === "rename") { const fileName = !relativeFileName ? directoryName : normalizePath(combinePaths(directoryName, relativeFileName)); - if (!relativeFileName || !isIgnoredByWatchOptions(fileName, options, useCaseSensitiveFileNames, getCurrentDirectory)) { + if (!relativeFileName || !isIgnoredByWatchOptions(fileName, options, useCaseSensitiveFileNames2, getCurrentDirectory)) { callback(fileName); } } @@ -3914,7 +3939,7 @@ function createSystemWatchFunctions({ clearTimeout: clearTimeout2, fsWatchWorker, fileSystemEntryExists, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, getCurrentDirectory, fsSupportsRecursiveFsWatch, getAccessibleSortedChildDirectories, @@ -3986,7 +4011,7 @@ function createSystemWatchFunctions({ ); case 5 /* UseFsEventsOnParentDirectory */: if (!nonPollingWatchFile) { - nonPollingWatchFile = createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames); + nonPollingWatchFile = createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames2); } return nonPollingWatchFile(fileName, callback, pollingInterval, getFallbackOptions(options)); default: @@ -4035,7 +4060,7 @@ function createSystemWatchFunctions({ return fsWatch( directoryName, 1 /* Directory */, - createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames, getCurrentDirectory), + createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames2, getCurrentDirectory), recursive, 500 /* Medium */, getFallbackOptions(options) @@ -4043,7 +4068,7 @@ function createSystemWatchFunctions({ } if (!hostRecursiveDirectoryWatcher) { hostRecursiveDirectoryWatcher = createDirectoryWatcherSupportingRecursive({ - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, getCurrentDirectory, fileSystemEntryExists, getAccessibleSortedChildDirectories, @@ -4089,7 +4114,7 @@ function createSystemWatchFunctions({ return fsWatch( directoryName, 1 /* Directory */, - createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames, getCurrentDirectory), + createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames2, getCurrentDirectory), recursive, 500 /* Medium */, getFallbackOptions(watchDirectoryOptions) @@ -4117,7 +4142,7 @@ function createSystemWatchFunctions({ function pollingWatchFile(fileName, callback, pollingInterval, options) { return createSingleWatcherPerName( pollingWatches, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames2, fileName, callback, (cb) => pollingWatchFileWorker(fileName, cb, pollingInterval, options) @@ -4126,7 +4151,7 @@ function createSystemWatchFunctions({ function fsWatch(fileOrDirectory, entryKind, callback, recursive, fallbackPollingInterval, fallbackOptions) { return createSingleWatcherPerName( recursive ? fsWatchesRecursive : fsWatches, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames2, fileOrDirectory, callback, (cb) => fsWatchHandlingExistenceOnHost(fileOrDirectory, entryKind, cb, recursive, fallbackPollingInterval, fallbackOptions) @@ -4254,7 +4279,7 @@ var sys = (() => { const Buffer2 = require("buffer").Buffer; const isLinuxOrMacOs = process.platform === "linux" || process.platform === "darwin"; const platform = _os.platform(); - const useCaseSensitiveFileNames = isFileSystemCaseSensitive(); + const useCaseSensitiveFileNames2 = isFileSystemCaseSensitive(); const fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync; const executingFilePath = __filename.endsWith("sys.js") ? _path.join(_path.dirname(__dirname), "__fake__.js") : __filename; const fsSupportsRecursiveFsWatch = process.platform === "win32" || process.platform === "darwin"; @@ -4265,7 +4290,7 @@ var sys = (() => { setTimeout, clearTimeout, fsWatchWorker, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, getCurrentDirectory, fileSystemEntryExists, // Node 4.0 `fs.watch` function supports the "recursive" option on both OSX and Windows @@ -4282,7 +4307,7 @@ var sys = (() => { const nodeSystem = { args: process.argv.slice(2), newLine: _os.EOL, - useCaseSensitiveFileNames, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, write(s) { process.stdout.write(s); }, @@ -4347,7 +4372,7 @@ var sys = (() => { disableCPUProfiler, cpuProfilingEnabled: () => !!activeSession || contains(process.execArgv, "--cpu-prof") || contains(process.execArgv, "--prof"), realpath, - debugMode: !!process.env.NODE_INSPECTOR_IPC || !!process.env.VSCODE_INSPECTOR_OPTIONS || some(process.execArgv, (arg) => /^--(inspect|debug)(-brk)?(=\d+)?$/i.test(arg)), + debugMode: !!process.env.NODE_INSPECTOR_IPC || !!process.env.VSCODE_INSPECTOR_OPTIONS || some(process.execArgv, (arg) => /^--(inspect|debug)(-brk)?(=\d+)?$/i.test(arg)) || !!process.recordreplay, tryEnableSourceMapsForHost() { try { require("source-map-support").install(); @@ -4411,12 +4436,12 @@ var sys = (() => { for (const node of profile.nodes) { if (node.callFrame.url) { const url = normalizeSlashes(node.callFrame.url); - if (containsPath(fileUrlRoot, url, useCaseSensitiveFileNames)) { + if (containsPath(fileUrlRoot, url, useCaseSensitiveFileNames2)) { node.callFrame.url = getRelativePathToDirectoryOrUrl( fileUrlRoot, url, fileUrlRoot, - createGetCanonicalFileName(useCaseSensitiveFileNames), + createGetCanonicalFileName(useCaseSensitiveFileNames2), /*isAbsolutePathAnUrl*/ true ); @@ -4596,7 +4621,7 @@ var sys = (() => { } } function readDirectory(path2, extensions, excludes, includes, depth) { - return matchFiles(path2, extensions, excludes, includes, useCaseSensitiveFileNames, process.cwd(), depth, getAccessibleFileSystemEntries, realpath); + return matchFiles(path2, extensions, excludes, includes, useCaseSensitiveFileNames2, process.cwd(), depth, getAccessibleFileSystemEntries, realpath); } function fileSystemEntryExists(path2, entryKind) { const originalStackTraceLimit = Error.stackTraceLimit; @@ -5113,6 +5138,7 @@ var Diagnostics = { Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method: diag(1062, 1 /* Error */, "Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062", "Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."), An_export_assignment_cannot_be_used_in_a_namespace: diag(1063, 1 /* Error */, "An_export_assignment_cannot_be_used_in_a_namespace_1063", "An export assignment cannot be used in a namespace."), The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0: diag(1064, 1 /* Error */, "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064", "The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"), + The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type: diag(1065, 1 /* Error */, "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065", "The return type of an async function or method must be the global Promise type."), In_ambient_enum_declarations_member_initializer_must_be_constant_expression: diag(1066, 1 /* Error */, "In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066", "In ambient enum declarations member initializer must be constant expression."), Unexpected_token_A_constructor_method_accessor_or_property_was_expected: diag(1068, 1 /* Error */, "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068", "Unexpected token. A constructor, method, accessor, or property was expected."), Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces: diag(1069, 1 /* Error */, "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069", "Unexpected token. A type parameter name was expected without curly braces."), @@ -5142,6 +5168,7 @@ var Diagnostics = { A_return_statement_can_only_be_used_within_a_function_body: diag(1108, 1 /* Error */, "A_return_statement_can_only_be_used_within_a_function_body_1108", "A 'return' statement can only be used within a function body."), Expression_expected: diag(1109, 1 /* Error */, "Expression_expected_1109", "Expression expected."), Type_expected: diag(1110, 1 /* Error */, "Type_expected_1110", "Type expected."), + Private_field_0_must_be_declared_in_an_enclosing_class: diag(1111, 1 /* Error */, "Private_field_0_must_be_declared_in_an_enclosing_class_1111", "Private field '{0}' must be declared in an enclosing class."), A_default_clause_cannot_appear_more_than_once_in_a_switch_statement: diag(1113, 1 /* Error */, "A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113", "A 'default' clause cannot appear more than once in a 'switch' statement."), Duplicate_label_0: diag(1114, 1 /* Error */, "Duplicate_label_0_1114", "Duplicate label '{0}'."), A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement: diag(1115, 1 /* Error */, "A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115", "A 'continue' statement can only jump to a label of an enclosing iteration statement."), @@ -5176,9 +5203,8 @@ var Diagnostics = { Import_declarations_in_a_namespace_cannot_reference_a_module: diag(1147, 1 /* Error */, "Import_declarations_in_a_namespace_cannot_reference_a_module_1147", "Import declarations in a namespace cannot reference a module."), Cannot_use_imports_exports_or_module_augmentations_when_module_is_none: diag(1148, 1 /* Error */, "Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148", "Cannot use imports, exports, or module augmentations when '--module' is 'none'."), File_name_0_differs_from_already_included_file_name_1_only_in_casing: diag(1149, 1 /* Error */, "File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149", "File name '{0}' differs from already included file name '{1}' only in casing."), - const_declarations_must_be_initialized: diag(1155, 1 /* Error */, "const_declarations_must_be_initialized_1155", "'const' declarations must be initialized."), - const_declarations_can_only_be_declared_inside_a_block: diag(1156, 1 /* Error */, "const_declarations_can_only_be_declared_inside_a_block_1156", "'const' declarations can only be declared inside a block."), - let_declarations_can_only_be_declared_inside_a_block: diag(1157, 1 /* Error */, "let_declarations_can_only_be_declared_inside_a_block_1157", "'let' declarations can only be declared inside a block."), + _0_declarations_must_be_initialized: diag(1155, 1 /* Error */, "_0_declarations_must_be_initialized_1155", "'{0}' declarations must be initialized."), + _0_declarations_can_only_be_declared_inside_a_block: diag(1156, 1 /* Error */, "_0_declarations_can_only_be_declared_inside_a_block_1156", "'{0}' declarations can only be declared inside a block."), Unterminated_template_literal: diag(1160, 1 /* Error */, "Unterminated_template_literal_1160", "Unterminated template literal."), Unterminated_regular_expression_literal: diag(1161, 1 /* Error */, "Unterminated_regular_expression_literal_1161", "Unterminated regular expression literal."), An_object_member_cannot_be_declared_optional: diag(1162, 1 /* Error */, "An_object_member_cannot_be_declared_optional_1162", "An object member cannot be declared optional."), @@ -5360,8 +5386,6 @@ var Diagnostics = { Class_constructor_may_not_be_a_generator: diag(1368, 1 /* Error */, "Class_constructor_may_not_be_a_generator_1368", "Class constructor may not be a generator."), Did_you_mean_0: diag(1369, 3 /* Message */, "Did_you_mean_0_1369", "Did you mean '{0}'?"), This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error: diag(1371, 1 /* Error */, "This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371", "This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."), - Convert_to_type_only_import: diag(1373, 3 /* Message */, "Convert_to_type_only_import_1373", "Convert to type-only import"), - Convert_all_imports_not_used_as_a_value_to_type_only_imports: diag(1374, 3 /* Message */, "Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374", "Convert all imports not used as a value to type-only imports"), await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module: diag(1375, 1 /* Error */, "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375", "'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."), _0_was_imported_here: diag(1376, 3 /* Message */, "_0_was_imported_here_1376", "'{0}' was imported here."), _0_was_exported_here: diag(1377, 3 /* Message */, "_0_was_exported_here_1377", "'{0}' was exported here."), @@ -5465,6 +5489,11 @@ var Diagnostics = { Escape_sequence_0_is_not_allowed: diag(1488, 1 /* Error */, "Escape_sequence_0_is_not_allowed_1488", "Escape sequence '{0}' is not allowed."), Decimals_with_leading_zeros_are_not_allowed: diag(1489, 1 /* Error */, "Decimals_with_leading_zeros_are_not_allowed_1489", "Decimals with leading zeros are not allowed."), File_appears_to_be_binary: diag(1490, 1 /* Error */, "File_appears_to_be_binary_1490", "File appears to be binary."), + _0_modifier_cannot_appear_on_a_using_declaration: diag(1491, 1 /* Error */, "_0_modifier_cannot_appear_on_a_using_declaration_1491", "'{0}' modifier cannot appear on a 'using' declaration."), + _0_declarations_may_not_have_binding_patterns: diag(1492, 1 /* Error */, "_0_declarations_may_not_have_binding_patterns_1492", "'{0}' declarations may not have binding patterns."), + The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration: diag(1493, 1 /* Error */, "The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493", "The left-hand side of a 'for...in' statement cannot be a 'using' declaration."), + The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration: diag(1494, 1 /* Error */, "The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494", "The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."), + _0_modifier_cannot_appear_on_an_await_using_declaration: diag(1495, 1 /* Error */, "_0_modifier_cannot_appear_on_an_await_using_declaration_1495", "'{0}' modifier cannot appear on an 'await using' declaration."), The_types_of_0_are_incompatible_between_these_types: diag(2200, 1 /* Error */, "The_types_of_0_are_incompatible_between_these_types_2200", "The types of '{0}' are incompatible between these types."), The_types_returned_by_0_are_incompatible_between_these_types: diag(2201, 1 /* Error */, "The_types_returned_by_0_are_incompatible_between_these_types_2201", "The types returned by '{0}' are incompatible between these types."), Call_signature_return_types_0_and_1_are_incompatible: diag( @@ -5559,7 +5588,6 @@ var Diagnostics = { This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0: diag(2343, 1 /* Error */, "This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343", "This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."), Type_0_does_not_satisfy_the_constraint_1: diag(2344, 1 /* Error */, "Type_0_does_not_satisfy_the_constraint_1_2344", "Type '{0}' does not satisfy the constraint '{1}'."), Argument_of_type_0_is_not_assignable_to_parameter_of_type_1: diag(2345, 1 /* Error */, "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345", "Argument of type '{0}' is not assignable to parameter of type '{1}'."), - Call_target_does_not_contain_any_signatures: diag(2346, 1 /* Error */, "Call_target_does_not_contain_any_signatures_2346", "Call target does not contain any signatures."), Untyped_function_calls_may_not_accept_type_arguments: diag(2347, 1 /* Error */, "Untyped_function_calls_may_not_accept_type_arguments_2347", "Untyped function calls may not accept type arguments."), Value_of_type_0_is_not_callable_Did_you_mean_to_include_new: diag(2348, 1 /* Error */, "Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348", "Value of type '{0}' is not callable. Did you mean to include 'new'?"), This_expression_is_not_callable: diag(2349, 1 /* Error */, "This_expression_is_not_callable_2349", "This expression is not callable."), @@ -6011,6 +6039,11 @@ var Diagnostics = { A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead: diag(2846, 1 /* Error */, "A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846", "A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"), The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression: diag(2848, 1 /* Error */, "The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848", "The right-hand side of an 'instanceof' expression must not be an instantiation expression."), Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1: diag(2849, 1 /* Error */, "Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849", "Target signature provides too few arguments. Expected {0} or more, but got {1}."), + The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined: diag(2850, 1 /* Error */, "The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850", "The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."), + The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined: diag(2851, 1 /* Error */, "The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851", "The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."), + await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules: diag(2852, 1 /* Error */, "await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852", "'await using' statements are only allowed within async functions and at the top levels of modules."), + await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module: diag(2853, 1 /* Error */, "await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853", "'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."), + Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher: diag(2854, 1 /* Error */, "Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854", "Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."), Import_declaration_0_is_using_private_name_1: diag(4e3, 1 /* Error */, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."), Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, 1 /* Error */, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."), Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, 1 /* Error */, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."), @@ -6164,7 +6197,6 @@ var Diagnostics = { Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0: diag(5081, 1 /* Error */, "Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081", "Cannot find a tsconfig.json file at the current directory: {0}."), _0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1: diag(5082, 1 /* Error */, "_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082", "'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."), Cannot_read_file_0: diag(5083, 1 /* Error */, "Cannot_read_file_0_5083", "Cannot read file '{0}'."), - Tuple_members_must_all_have_names_or_all_not_have_names: diag(5084, 1 /* Error */, "Tuple_members_must_all_have_names_or_all_not_have_names_5084", "Tuple members must all have names or all not have names."), A_tuple_member_cannot_be_both_optional_and_rest: diag(5085, 1 /* Error */, "A_tuple_member_cannot_be_both_optional_and_rest_5085", "A tuple member cannot be both optional and rest."), A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type: diag(5086, 1 /* Error */, "A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086", "A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."), A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type: diag(5087, 1 /* Error */, "A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087", "A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."), @@ -6187,6 +6219,8 @@ var Diagnostics = { Use_0_instead: diag(5106, 3 /* Message */, "Use_0_instead_5106", "Use '{0}' instead."), Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error: diag(5107, 1 /* Error */, "Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107", `Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`), Option_0_1_has_been_removed_Please_remove_it_from_your_configuration: diag(5108, 1 /* Error */, "Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108", "Option '{0}={1}' has been removed. Please remove it from your configuration."), + Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1: diag(5109, 1 /* Error */, "Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109", "Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."), + Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1: diag(5110, 1 /* Error */, "Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110", "Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."), Generates_a_sourcemap_for_each_corresponding_d_ts_file: diag(6e3, 3 /* Message */, "Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000", "Generates a sourcemap for each corresponding '.d.ts' file."), Concatenate_and_emit_output_to_single_file: diag(6001, 3 /* Message */, "Concatenate_and_emit_output_to_single_file_6001", "Concatenate and emit output to single file."), Generates_corresponding_d_ts_file: diag(6002, 3 /* Message */, "Generates_corresponding_d_ts_file_6002", "Generates corresponding '.d.ts' file."), @@ -6567,6 +6601,8 @@ var Diagnostics = { Resolved_under_condition_0: diag(6414, 3 /* Message */, "Resolved_under_condition_0_6414", "Resolved under condition '{0}'."), Failed_to_resolve_under_condition_0: diag(6415, 3 /* Message */, "Failed_to_resolve_under_condition_0_6415", "Failed to resolve under condition '{0}'."), Exiting_conditional_exports: diag(6416, 3 /* Message */, "Exiting_conditional_exports_6416", "Exiting conditional exports."), + Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0: diag(6417, 3 /* Message */, "Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417", "Searching all ancestor node_modules directories for preferred extensions: {0}."), + Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0: diag(6418, 3 /* Message */, "Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418", "Searching all ancestor node_modules directories for fallback extensions: {0}."), The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1: diag(6500, 3 /* Message */, "The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500", "The expected type comes from property '{0}' which is declared here on type '{1}'"), The_expected_type_comes_from_this_index_signature: diag(6501, 3 /* Message */, "The_expected_type_comes_from_this_index_signature_6501", "The expected type comes from this index signature."), The_expected_type_comes_from_the_return_type_of_this_signature: diag(6502, 3 /* Message */, "The_expected_type_comes_from_the_return_type_of_this_signature_6502", "The expected type comes from the return type of this signature."), @@ -6805,6 +6841,7 @@ var Diagnostics = { Parameter_modifiers_can_only_be_used_in_TypeScript_files: diag(8012, 1 /* Error */, "Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012", "Parameter modifiers can only be used in TypeScript files."), Non_null_assertions_can_only_be_used_in_TypeScript_files: diag(8013, 1 /* Error */, "Non_null_assertions_can_only_be_used_in_TypeScript_files_8013", "Non-null assertions can only be used in TypeScript files."), Type_assertion_expressions_can_only_be_used_in_TypeScript_files: diag(8016, 1 /* Error */, "Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016", "Type assertion expressions can only be used in TypeScript files."), + Signature_declarations_can_only_be_used_in_TypeScript_files: diag(8017, 1 /* Error */, "Signature_declarations_can_only_be_used_in_TypeScript_files_8017", "Signature declarations can only be used in TypeScript files."), Report_errors_in_js_files: diag(8019, 3 /* Message */, "Report_errors_in_js_files_8019", "Report errors in .js files."), JSDoc_types_can_only_be_used_inside_documentation_comments: diag(8020, 1 /* Error */, "JSDoc_types_can_only_be_used_inside_documentation_comments_8020", "JSDoc types can only be used inside documentation comments."), JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags: diag(8021, 1 /* Error */, "JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021", "JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."), @@ -7079,6 +7116,14 @@ var Diagnostics = { Convert_all_typedef_to_TypeScript_types: diag(95177, 3 /* Message */, "Convert_all_typedef_to_TypeScript_types_95177", "Convert all typedef to TypeScript types."), Move_to_file: diag(95178, 3 /* Message */, "Move_to_file_95178", "Move to file"), Cannot_move_to_file_selected_file_is_invalid: diag(95179, 3 /* Message */, "Cannot_move_to_file_selected_file_is_invalid_95179", "Cannot move to file, selected file is invalid"), + Use_import_type: diag(95180, 3 /* Message */, "Use_import_type_95180", "Use 'import type'"), + Use_type_0: diag(95181, 3 /* Message */, "Use_type_0_95181", "Use 'type {0}'"), + Fix_all_with_type_only_imports: diag(95182, 3 /* Message */, "Fix_all_with_type_only_imports_95182", "Fix all with type-only imports"), + Cannot_move_statements_to_the_selected_file: diag(95183, 3 /* Message */, "Cannot_move_statements_to_the_selected_file_95183", "Cannot move statements to the selected file"), + Inline_variable: diag(95184, 3 /* Message */, "Inline_variable_95184", "Inline variable"), + Could_not_find_variable_to_inline: diag(95185, 3 /* Message */, "Could_not_find_variable_to_inline_95185", "Could not find variable to inline."), + Variables_with_multiple_declarations_cannot_be_inlined: diag(95186, 3 /* Message */, "Variables_with_multiple_declarations_cannot_be_inlined_95186", "Variables with multiple declarations cannot be inlined."), + Add_missing_comma_for_object_member_completion_0: diag(95187, 3 /* Message */, "Add_missing_comma_for_object_member_completion_0_95187", "Add missing comma for object member completion '{0}'."), No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer: diag(18004, 1 /* Error */, "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004", "No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."), Classes_may_not_have_a_field_named_constructor: diag(18006, 1 /* Error */, "Classes_may_not_have_a_field_named_constructor_18006", "Classes may not have a field named 'constructor'."), JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array: diag(18007, 1 /* Error */, "JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007", "JSX expressions may not use the comma operator. Did you mean to write an array?"), @@ -7105,8 +7150,8 @@ var Diagnostics = { Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment: diag(18034, 3 /* Message */, "Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034", "Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."), Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name: diag(18035, 1 /* Error */, "Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035", "Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."), Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator: diag(18036, 1 /* Error */, "Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036", "Class decorators can't be used with static private identifier. Consider removing the experimental decorator."), - Await_expression_cannot_be_used_inside_a_class_static_block: diag(18037, 1 /* Error */, "Await_expression_cannot_be_used_inside_a_class_static_block_18037", "Await expression cannot be used inside a class static block."), - For_await_loops_cannot_be_used_inside_a_class_static_block: diag(18038, 1 /* Error */, "For_await_loops_cannot_be_used_inside_a_class_static_block_18038", "'For await' loops cannot be used inside a class static block."), + await_expression_cannot_be_used_inside_a_class_static_block: diag(18037, 1 /* Error */, "await_expression_cannot_be_used_inside_a_class_static_block_18037", "'await' expression cannot be used inside a class static block."), + for_await_loops_cannot_be_used_inside_a_class_static_block: diag(18038, 1 /* Error */, "for_await_loops_cannot_be_used_inside_a_class_static_block_18038", "'for await' loops cannot be used inside a class static block."), Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block: diag(18039, 1 /* Error */, "Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039", "Invalid use of '{0}'. It cannot be used inside a class static block."), A_return_statement_cannot_be_used_inside_a_class_static_block: diag(18041, 1 /* Error */, "A_return_statement_cannot_be_used_inside_a_class_static_block_18041", "A 'return' statement cannot be used inside a class static block."), _0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation: diag(18042, 1 /* Error */, "_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042", "'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."), @@ -7120,7 +7165,8 @@ var Diagnostics = { The_value_0_cannot_be_used_here: diag(18050, 1 /* Error */, "The_value_0_cannot_be_used_here_18050", "The value '{0}' cannot be used here."), Compiler_option_0_cannot_be_given_an_empty_string: diag(18051, 1 /* Error */, "Compiler_option_0_cannot_be_given_an_empty_string_18051", "Compiler option '{0}' cannot be given an empty string."), Non_abstract_class_0_does_not_implement_all_abstract_members_of_1: diag(18052, 1 /* Error */, "Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052", "Non-abstract class '{0}' does not implement all abstract members of '{1}'"), - Its_type_0_is_not_a_valid_JSX_element_type: diag(18053, 1 /* Error */, "Its_type_0_is_not_a_valid_JSX_element_type_18053", "Its type '{0}' is not a valid JSX element type.") + Its_type_0_is_not_a_valid_JSX_element_type: diag(18053, 1 /* Error */, "Its_type_0_is_not_a_valid_JSX_element_type_18053", "Its type '{0}' is not a valid JSX element type."), + await_using_statements_cannot_be_used_inside_a_class_static_block: diag(18054, 1 /* Error */, "await_using_statements_cannot_be_used_inside_a_class_static_block_18054", "'await using' statements cannot be used inside a class static block.") }; // src/compiler/scanner.ts @@ -7137,7 +7183,7 @@ var textToKeywordObj = { as: 130 /* AsKeyword */, asserts: 131 /* AssertsKeyword */, assert: 132 /* AssertKeyword */, - bigint: 162 /* BigIntKeyword */, + bigint: 163 /* BigIntKeyword */, boolean: 136 /* BooleanKeyword */, break: 83 /* BreakKeyword */, case: 84 /* CaseKeyword */, @@ -7158,7 +7204,7 @@ var textToKeywordObj = { false: 97 /* FalseKeyword */, finally: 98 /* FinallyKeyword */, for: 99 /* ForKeyword */, - from: 160 /* FromKeyword */, + from: 161 /* FromKeyword */, function: 100 /* FunctionKeyword */, get: 139 /* GetKeyword */, if: 101 /* IfKeyword */, @@ -7183,11 +7229,11 @@ var textToKeywordObj = { private: 123 /* PrivateKeyword */, protected: 124 /* ProtectedKeyword */, public: 125 /* PublicKeyword */, - override: 163 /* OverrideKeyword */, + override: 164 /* OverrideKeyword */, out: 147 /* OutKeyword */, readonly: 148 /* ReadonlyKeyword */, require: 149 /* RequireKeyword */, - global: 161 /* GlobalKeyword */, + global: 162 /* GlobalKeyword */, return: 107 /* ReturnKeyword */, satisfies: 152 /* SatisfiesKeyword */, set: 153 /* SetKeyword */, @@ -7205,6 +7251,7 @@ var textToKeywordObj = { undefined: 157 /* UndefinedKeyword */, unique: 158 /* UniqueKeyword */, unknown: 159 /* UnknownKeyword */, + using: 160 /* UsingKeyword */, var: 115 /* VarKeyword */, void: 116 /* VoidKeyword */, while: 117 /* WhileKeyword */, @@ -7212,7 +7259,7 @@ var textToKeywordObj = { yield: 127 /* YieldKeyword */, async: 134 /* AsyncKeyword */, await: 135 /* AwaitKeyword */, - of: 164 /* OfKeyword */ + of: 165 /* OfKeyword */ }; var textToKeyword = new Map(Object.entries(textToKeywordObj)); var textToToken = new Map(Object.entries({ @@ -7845,7 +7892,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan if (withMinus) start2--; error(Diagnostics.Octal_literals_are_not_allowed_Use_the_syntax_0, start2, pos - start2, literal); - return { type: 9 /* NumericLiteral */, value: tokenValue }; + return 9 /* NumericLiteral */; } } else { mainFragment = scanNumberFragment(); @@ -7885,20 +7932,18 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan } if (tokenFlags & 8192 /* ContainsLeadingZero */) { error(Diagnostics.Decimals_with_leading_zeros_are_not_allowed, start2, end2 - start2); - return { type: 9 /* NumericLiteral */, value: "" + +result }; + tokenValue = "" + +result; + return 9 /* NumericLiteral */; } if (decimalFragment !== void 0 || tokenFlags & 16 /* Scientific */) { checkForIdentifierStartAfterNumericLiteral(start2, decimalFragment === void 0 && !!(tokenFlags & 16 /* Scientific */)); - return { - type: 9 /* NumericLiteral */, - value: "" + +result - // if value is not an integer, it can be safely coerced to a number - }; + tokenValue = "" + +result; + return 9 /* NumericLiteral */; } else { tokenValue = result; const type = checkBigIntSuffix(); checkForIdentifierStartAfterNumericLiteral(start2); - return { type, value: tokenValue }; + return type; } } function checkForIdentifierStartAfterNumericLiteral(numericStart, isScientific) { @@ -8507,7 +8552,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan return token = 41 /* MinusToken */; case 46 /* dot */: if (isDigit(text.charCodeAt(pos + 1))) { - tokenValue = scanNumber().value; + scanNumber(); return token = 9 /* NumericLiteral */; } if (text.charCodeAt(pos + 1) === 46 /* dot */ && text.charCodeAt(pos + 2) === 46 /* dot */) { @@ -8625,8 +8670,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan case 55 /* _7 */: case 56 /* _8 */: case 57 /* _9 */: - ({ type: token, value: tokenValue } = scanNumber()); - return token; + return token = scanNumber(); case 58 /* colon */: pos++; return token = 59 /* ColonToken */; @@ -9322,7 +9366,7 @@ function findAncestor(node, callback) { return void 0; } function isParseTreeNode(node) { - return (node.flags & 8 /* Synthesized */) === 0; + return (node.flags & 16 /* Synthesized */) === 0; } function getParseTreeNode(node, nodeTest) { if (node === void 0 || isParseTreeNode(node)) { @@ -9361,30 +9405,30 @@ function nameForNamelessJSDocTypedef(declaration) { return getDeclarationIdentifier(hostNode); } switch (hostNode.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: if (hostNode.declarationList && hostNode.declarationList.declarations[0]) { return getDeclarationIdentifier(hostNode.declarationList.declarations[0]); } break; - case 243 /* ExpressionStatement */: + case 244 /* ExpressionStatement */: let expr = hostNode.expression; - if (expr.kind === 225 /* BinaryExpression */ && expr.operatorToken.kind === 64 /* EqualsToken */) { + if (expr.kind === 226 /* BinaryExpression */ && expr.operatorToken.kind === 64 /* EqualsToken */) { expr = expr.left; } switch (expr.kind) { - case 210 /* PropertyAccessExpression */: + case 211 /* PropertyAccessExpression */: return expr.name; - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: const arg = expr.argumentExpression; if (isIdentifier(arg)) { return arg; } } break; - case 216 /* ParenthesizedExpression */: { + case 217 /* ParenthesizedExpression */: { return getDeclarationIdentifier(hostNode.expression); } - case 255 /* LabeledStatement */: { + case 256 /* LabeledStatement */: { if (isDeclaration(hostNode.statement) || isExpression(hostNode.statement)) { return getDeclarationIdentifier(hostNode.statement); } @@ -9406,16 +9450,16 @@ function getNonAssignedNameOfDeclaration(declaration) { switch (declaration.kind) { case 80 /* Identifier */: return declaration; - case 354 /* JSDocPropertyTag */: - case 347 /* JSDocParameterTag */: { + case 355 /* JSDocPropertyTag */: + case 348 /* JSDocParameterTag */: { const { name } = declaration; - if (name.kind === 165 /* QualifiedName */) { + if (name.kind === 166 /* QualifiedName */) { return name.right; } break; } - case 212 /* CallExpression */: - case 225 /* BinaryExpression */: { + case 213 /* CallExpression */: + case 226 /* BinaryExpression */: { const expr2 = declaration; switch (getAssignmentDeclarationKind(expr2)) { case 1 /* ExportsProperty */: @@ -9431,15 +9475,15 @@ function getNonAssignedNameOfDeclaration(declaration) { return void 0; } } - case 352 /* JSDocTypedefTag */: + case 353 /* JSDocTypedefTag */: return getNameOfJSDocTypedef(declaration); - case 346 /* JSDocEnumTag */: + case 347 /* JSDocEnumTag */: return nameForNamelessJSDocTypedef(declaration); - case 276 /* ExportAssignment */: { + case 277 /* ExportAssignment */: { const { expression } = declaration; return isIdentifier(expression) ? expression : void 0; } - case 211 /* ElementAccessExpression */: + case 212 /* ElementAccessExpression */: const expr = declaration; if (isBindableStaticElementAccessExpression(expr)) { return expr.argumentExpression; @@ -9598,29 +9642,29 @@ function isMemberName(node) { return node.kind === 80 /* Identifier */ || node.kind === 81 /* PrivateIdentifier */; } function isPropertyAccessChain(node) { - return isPropertyAccessExpression(node) && !!(node.flags & 32 /* OptionalChain */); + return isPropertyAccessExpression(node) && !!(node.flags & 64 /* OptionalChain */); } function isElementAccessChain(node) { - return isElementAccessExpression(node) && !!(node.flags & 32 /* OptionalChain */); + return isElementAccessExpression(node) && !!(node.flags & 64 /* OptionalChain */); } function isCallChain(node) { - return isCallExpression(node) && !!(node.flags & 32 /* OptionalChain */); + return isCallExpression(node) && !!(node.flags & 64 /* OptionalChain */); } function isOptionalChain(node) { const kind = node.kind; - return !!(node.flags & 32 /* OptionalChain */) && (kind === 210 /* PropertyAccessExpression */ || kind === 211 /* ElementAccessExpression */ || kind === 212 /* CallExpression */ || kind === 234 /* NonNullExpression */); + return !!(node.flags & 64 /* OptionalChain */) && (kind === 211 /* PropertyAccessExpression */ || kind === 212 /* ElementAccessExpression */ || kind === 213 /* CallExpression */ || kind === 235 /* NonNullExpression */); } function skipPartiallyEmittedExpressions(node) { return skipOuterExpressions(node, 8 /* PartiallyEmittedExpressions */); } function isNonNullChain(node) { - return isNonNullExpression(node) && !!(node.flags & 32 /* OptionalChain */); + return isNonNullExpression(node) && !!(node.flags & 64 /* OptionalChain */); } function isNamedExportBindings(node) { - return node.kind === 279 /* NamespaceExport */ || node.kind === 278 /* NamedExports */; + return node.kind === 280 /* NamespaceExport */ || node.kind === 279 /* NamedExports */; } function isNodeKind(kind) { - return kind >= 165 /* FirstNode */; + return kind >= 166 /* FirstNode */; } function isNodeArray(array) { return hasProperty(array, "pos") && hasProperty(array, "end"); @@ -9668,7 +9712,7 @@ function isModifierKind(token) { case 148 /* ReadonlyKeyword */: case 126 /* StaticKeyword */: case 147 /* OutKeyword */: - case 163 /* OverrideKeyword */: + case 164 /* OverrideKeyword */: return true; } return false; @@ -9677,35 +9721,35 @@ function isParameterPropertyModifier(kind) { return !!(modifierToFlag(kind) & 16476 /* ParameterPropertyModifier */); } function isClassMemberModifier(idToken) { - return isParameterPropertyModifier(idToken) || idToken === 126 /* StaticKeyword */ || idToken === 163 /* OverrideKeyword */ || idToken === 129 /* AccessorKeyword */; + return isParameterPropertyModifier(idToken) || idToken === 126 /* StaticKeyword */ || idToken === 164 /* OverrideKeyword */ || idToken === 129 /* AccessorKeyword */; } function isModifier(node) { return isModifierKind(node.kind); } function isEntityName(node) { const kind = node.kind; - return kind === 165 /* QualifiedName */ || kind === 80 /* Identifier */; + return kind === 166 /* QualifiedName */ || kind === 80 /* Identifier */; } function isPropertyName(node) { const kind = node.kind; - return kind === 80 /* Identifier */ || kind === 81 /* PrivateIdentifier */ || kind === 11 /* StringLiteral */ || kind === 9 /* NumericLiteral */ || kind === 166 /* ComputedPropertyName */; + return kind === 80 /* Identifier */ || kind === 81 /* PrivateIdentifier */ || kind === 11 /* StringLiteral */ || kind === 9 /* NumericLiteral */ || kind === 167 /* ComputedPropertyName */; } function isBindingName(node) { const kind = node.kind; - return kind === 80 /* Identifier */ || kind === 205 /* ObjectBindingPattern */ || kind === 206 /* ArrayBindingPattern */; + return kind === 80 /* Identifier */ || kind === 206 /* ObjectBindingPattern */ || kind === 207 /* ArrayBindingPattern */; } function isFunctionLike(node) { return !!node && isFunctionLikeKind(node.kind); } function isFunctionLikeDeclarationKind(kind) { switch (kind) { - case 261 /* FunctionDeclaration */: - case 173 /* MethodDeclaration */: - case 175 /* Constructor */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: return true; default: return false; @@ -9713,14 +9757,14 @@ function isFunctionLikeDeclarationKind(kind) { } function isFunctionLikeKind(kind) { switch (kind) { - case 172 /* MethodSignature */: - case 178 /* CallSignature */: - case 329 /* JSDocSignature */: - case 179 /* ConstructSignature */: - case 180 /* IndexSignature */: - case 183 /* FunctionType */: - case 323 /* JSDocFunctionType */: - case 184 /* ConstructorType */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 330 /* JSDocSignature */: + case 180 /* ConstructSignature */: + case 181 /* IndexSignature */: + case 184 /* FunctionType */: + case 324 /* JSDocFunctionType */: + case 185 /* ConstructorType */: return true; default: return isFunctionLikeDeclarationKind(kind); @@ -9728,16 +9772,16 @@ function isFunctionLikeKind(kind) { } function isClassElement(node) { const kind = node.kind; - return kind === 175 /* Constructor */ || kind === 171 /* PropertyDeclaration */ || kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */ || kind === 180 /* IndexSignature */ || kind === 174 /* ClassStaticBlockDeclaration */ || kind === 239 /* SemicolonClassElement */; + return kind === 176 /* Constructor */ || kind === 172 /* PropertyDeclaration */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 181 /* IndexSignature */ || kind === 175 /* ClassStaticBlockDeclaration */ || kind === 240 /* SemicolonClassElement */; } function isAccessor(node) { - return node && (node.kind === 176 /* GetAccessor */ || node.kind === 177 /* SetAccessor */); + return node && (node.kind === 177 /* GetAccessor */ || node.kind === 178 /* SetAccessor */); } function isMethodOrAccessor(node) { switch (node.kind) { - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return true; default: return false; @@ -9748,19 +9792,19 @@ function isModifierLike(node) { } function isTypeElement(node) { const kind = node.kind; - return kind === 179 /* ConstructSignature */ || kind === 178 /* CallSignature */ || kind === 170 /* PropertySignature */ || kind === 172 /* MethodSignature */ || kind === 180 /* IndexSignature */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */; + return kind === 180 /* ConstructSignature */ || kind === 179 /* CallSignature */ || kind === 171 /* PropertySignature */ || kind === 173 /* MethodSignature */ || kind === 181 /* IndexSignature */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; } function isObjectLiteralElementLike(node) { const kind = node.kind; - return kind === 302 /* PropertyAssignment */ || kind === 303 /* ShorthandPropertyAssignment */ || kind === 304 /* SpreadAssignment */ || kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */; + return kind === 303 /* PropertyAssignment */ || kind === 304 /* ShorthandPropertyAssignment */ || kind === 305 /* SpreadAssignment */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; } function isTypeNode(node) { return isTypeNodeKind(node.kind); } function isFunctionOrConstructorTypeNode(node) { switch (node.kind) { - case 183 /* FunctionType */: - case 184 /* ConstructorType */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: return true; } return false; @@ -9768,49 +9812,49 @@ function isFunctionOrConstructorTypeNode(node) { function isBindingPattern(node) { if (node) { const kind = node.kind; - return kind === 206 /* ArrayBindingPattern */ || kind === 205 /* ObjectBindingPattern */; + return kind === 207 /* ArrayBindingPattern */ || kind === 206 /* ObjectBindingPattern */; } return false; } function isAssignmentPattern(node) { const kind = node.kind; - return kind === 208 /* ArrayLiteralExpression */ || kind === 209 /* ObjectLiteralExpression */; + return kind === 209 /* ArrayLiteralExpression */ || kind === 210 /* ObjectLiteralExpression */; } function isArrayBindingElement(node) { const kind = node.kind; - return kind === 207 /* BindingElement */ || kind === 231 /* OmittedExpression */; + return kind === 208 /* BindingElement */ || kind === 232 /* OmittedExpression */; } function isDeclarationBindingElement(bindingElement) { switch (bindingElement.kind) { - case 259 /* VariableDeclaration */: - case 168 /* Parameter */: - case 207 /* BindingElement */: + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 208 /* BindingElement */: return true; } return false; } function isTemplateLiteral(node) { const kind = node.kind; - return kind === 227 /* TemplateExpression */ || kind === 15 /* NoSubstitutionTemplateLiteral */; + return kind === 228 /* TemplateExpression */ || kind === 15 /* NoSubstitutionTemplateLiteral */; } function isLeftHandSideExpression(node) { return isLeftHandSideExpressionKind(skipPartiallyEmittedExpressions(node).kind); } function isLeftHandSideExpressionKind(kind) { switch (kind) { - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: - case 213 /* NewExpression */: - case 212 /* CallExpression */: - case 283 /* JsxElement */: - case 284 /* JsxSelfClosingElement */: - case 287 /* JsxFragment */: - case 214 /* TaggedTemplateExpression */: - case 208 /* ArrayLiteralExpression */: - case 216 /* ParenthesizedExpression */: - case 209 /* ObjectLiteralExpression */: - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + case 214 /* NewExpression */: + case 213 /* CallExpression */: + case 284 /* JsxElement */: + case 285 /* JsxSelfClosingElement */: + case 288 /* JsxFragment */: + case 215 /* TaggedTemplateExpression */: + case 209 /* ArrayLiteralExpression */: + case 217 /* ParenthesizedExpression */: + case 210 /* ObjectLiteralExpression */: + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: case 80 /* Identifier */: case 81 /* PrivateIdentifier */: case 14 /* RegularExpressionLiteral */: @@ -9818,17 +9862,17 @@ function isLeftHandSideExpressionKind(kind) { case 10 /* BigIntLiteral */: case 11 /* StringLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: - case 227 /* TemplateExpression */: + case 228 /* TemplateExpression */: case 97 /* FalseKeyword */: case 106 /* NullKeyword */: case 110 /* ThisKeyword */: case 112 /* TrueKeyword */: case 108 /* SuperKeyword */: - case 234 /* NonNullExpression */: - case 232 /* ExpressionWithTypeArguments */: - case 235 /* MetaProperty */: + case 235 /* NonNullExpression */: + case 233 /* ExpressionWithTypeArguments */: + case 236 /* MetaProperty */: case 102 /* ImportKeyword */: - case 281 /* MissingDeclaration */: + case 282 /* MissingDeclaration */: return true; default: return false; @@ -9839,13 +9883,13 @@ function isUnaryExpression(node) { } function isUnaryExpressionKind(kind) { switch (kind) { - case 223 /* PrefixUnaryExpression */: - case 224 /* PostfixUnaryExpression */: - case 219 /* DeleteExpression */: - case 220 /* TypeOfExpression */: - case 221 /* VoidExpression */: - case 222 /* AwaitExpression */: - case 215 /* TypeAssertionExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: + case 220 /* DeleteExpression */: + case 221 /* TypeOfExpression */: + case 222 /* VoidExpression */: + case 223 /* AwaitExpression */: + case 216 /* TypeAssertionExpression */: return true; default: return isLeftHandSideExpressionKind(kind); @@ -9856,7 +9900,7 @@ function isLiteralTypeLiteral(node) { case 106 /* NullKeyword */: case 112 /* TrueKeyword */: case 97 /* FalseKeyword */: - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: return true; default: return isLiteralExpression(node); @@ -9867,16 +9911,16 @@ function isExpression(node) { } function isExpressionKind(kind) { switch (kind) { - case 226 /* ConditionalExpression */: - case 228 /* YieldExpression */: - case 218 /* ArrowFunction */: - case 225 /* BinaryExpression */: - case 229 /* SpreadElement */: - case 233 /* AsExpression */: - case 231 /* OmittedExpression */: - case 360 /* CommaListExpression */: - case 359 /* PartiallyEmittedExpression */: - case 237 /* SatisfiesExpression */: + case 227 /* ConditionalExpression */: + case 229 /* YieldExpression */: + case 219 /* ArrowFunction */: + case 226 /* BinaryExpression */: + case 230 /* SpreadElement */: + case 234 /* AsExpression */: + case 232 /* OmittedExpression */: + case 361 /* CommaListExpression */: + case 360 /* PartiallyEmittedExpression */: + case 238 /* SatisfiesExpression */: return true; default: return isUnaryExpressionKind(kind); @@ -9890,24 +9934,24 @@ function isForInitializer(node) { } function isModuleBody(node) { const kind = node.kind; - return kind === 267 /* ModuleBlock */ || kind === 266 /* ModuleDeclaration */ || kind === 80 /* Identifier */; + return kind === 268 /* ModuleBlock */ || kind === 267 /* ModuleDeclaration */ || kind === 80 /* Identifier */; } function isNamedImportBindings(node) { const kind = node.kind; - return kind === 274 /* NamedImports */ || kind === 273 /* NamespaceImport */; + return kind === 275 /* NamedImports */ || kind === 274 /* NamespaceImport */; } function isDeclarationKind(kind) { - return kind === 218 /* ArrowFunction */ || kind === 207 /* BindingElement */ || kind === 262 /* ClassDeclaration */ || kind === 230 /* ClassExpression */ || kind === 174 /* ClassStaticBlockDeclaration */ || kind === 175 /* Constructor */ || kind === 265 /* EnumDeclaration */ || kind === 305 /* EnumMember */ || kind === 280 /* ExportSpecifier */ || kind === 261 /* FunctionDeclaration */ || kind === 217 /* FunctionExpression */ || kind === 176 /* GetAccessor */ || kind === 272 /* ImportClause */ || kind === 270 /* ImportEqualsDeclaration */ || kind === 275 /* ImportSpecifier */ || kind === 263 /* InterfaceDeclaration */ || kind === 290 /* JsxAttribute */ || kind === 173 /* MethodDeclaration */ || kind === 172 /* MethodSignature */ || kind === 266 /* ModuleDeclaration */ || kind === 269 /* NamespaceExportDeclaration */ || kind === 273 /* NamespaceImport */ || kind === 279 /* NamespaceExport */ || kind === 168 /* Parameter */ || kind === 302 /* PropertyAssignment */ || kind === 171 /* PropertyDeclaration */ || kind === 170 /* PropertySignature */ || kind === 177 /* SetAccessor */ || kind === 303 /* ShorthandPropertyAssignment */ || kind === 264 /* TypeAliasDeclaration */ || kind === 167 /* TypeParameter */ || kind === 259 /* VariableDeclaration */ || kind === 352 /* JSDocTypedefTag */ || kind === 344 /* JSDocCallbackTag */ || kind === 354 /* JSDocPropertyTag */; + return kind === 219 /* ArrowFunction */ || kind === 208 /* BindingElement */ || kind === 263 /* ClassDeclaration */ || kind === 231 /* ClassExpression */ || kind === 175 /* ClassStaticBlockDeclaration */ || kind === 176 /* Constructor */ || kind === 266 /* EnumDeclaration */ || kind === 306 /* EnumMember */ || kind === 281 /* ExportSpecifier */ || kind === 262 /* FunctionDeclaration */ || kind === 218 /* FunctionExpression */ || kind === 177 /* GetAccessor */ || kind === 273 /* ImportClause */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 276 /* ImportSpecifier */ || kind === 264 /* InterfaceDeclaration */ || kind === 291 /* JsxAttribute */ || kind === 174 /* MethodDeclaration */ || kind === 173 /* MethodSignature */ || kind === 267 /* ModuleDeclaration */ || kind === 270 /* NamespaceExportDeclaration */ || kind === 274 /* NamespaceImport */ || kind === 280 /* NamespaceExport */ || kind === 169 /* Parameter */ || kind === 303 /* PropertyAssignment */ || kind === 172 /* PropertyDeclaration */ || kind === 171 /* PropertySignature */ || kind === 178 /* SetAccessor */ || kind === 304 /* ShorthandPropertyAssignment */ || kind === 265 /* TypeAliasDeclaration */ || kind === 168 /* TypeParameter */ || kind === 260 /* VariableDeclaration */ || kind === 353 /* JSDocTypedefTag */ || kind === 345 /* JSDocCallbackTag */ || kind === 355 /* JSDocPropertyTag */; } function isDeclarationStatementKind(kind) { - return kind === 261 /* FunctionDeclaration */ || kind === 281 /* MissingDeclaration */ || kind === 262 /* ClassDeclaration */ || kind === 263 /* InterfaceDeclaration */ || kind === 264 /* TypeAliasDeclaration */ || kind === 265 /* EnumDeclaration */ || kind === 266 /* ModuleDeclaration */ || kind === 271 /* ImportDeclaration */ || kind === 270 /* ImportEqualsDeclaration */ || kind === 277 /* ExportDeclaration */ || kind === 276 /* ExportAssignment */ || kind === 269 /* NamespaceExportDeclaration */; + return kind === 262 /* FunctionDeclaration */ || kind === 282 /* MissingDeclaration */ || kind === 263 /* ClassDeclaration */ || kind === 264 /* InterfaceDeclaration */ || kind === 265 /* TypeAliasDeclaration */ || kind === 266 /* EnumDeclaration */ || kind === 267 /* ModuleDeclaration */ || kind === 272 /* ImportDeclaration */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 278 /* ExportDeclaration */ || kind === 277 /* ExportAssignment */ || kind === 270 /* NamespaceExportDeclaration */; } function isStatementKindButNotDeclarationKind(kind) { - return kind === 251 /* BreakStatement */ || kind === 250 /* ContinueStatement */ || kind === 258 /* DebuggerStatement */ || kind === 245 /* DoStatement */ || kind === 243 /* ExpressionStatement */ || kind === 241 /* EmptyStatement */ || kind === 248 /* ForInStatement */ || kind === 249 /* ForOfStatement */ || kind === 247 /* ForStatement */ || kind === 244 /* IfStatement */ || kind === 255 /* LabeledStatement */ || kind === 252 /* ReturnStatement */ || kind === 254 /* SwitchStatement */ || kind === 256 /* ThrowStatement */ || kind === 257 /* TryStatement */ || kind === 242 /* VariableStatement */ || kind === 246 /* WhileStatement */ || kind === 253 /* WithStatement */ || kind === 358 /* NotEmittedStatement */; + return kind === 252 /* BreakStatement */ || kind === 251 /* ContinueStatement */ || kind === 259 /* DebuggerStatement */ || kind === 246 /* DoStatement */ || kind === 244 /* ExpressionStatement */ || kind === 242 /* EmptyStatement */ || kind === 249 /* ForInStatement */ || kind === 250 /* ForOfStatement */ || kind === 248 /* ForStatement */ || kind === 245 /* IfStatement */ || kind === 256 /* LabeledStatement */ || kind === 253 /* ReturnStatement */ || kind === 255 /* SwitchStatement */ || kind === 257 /* ThrowStatement */ || kind === 258 /* TryStatement */ || kind === 243 /* VariableStatement */ || kind === 247 /* WhileStatement */ || kind === 254 /* WithStatement */ || kind === 359 /* NotEmittedStatement */; } function isDeclaration(node) { - if (node.kind === 167 /* TypeParameter */) { - return node.parent && node.parent.kind !== 351 /* JSDocTemplateTag */ || isInJSFile(node); + if (node.kind === 168 /* TypeParameter */) { + return node.parent && node.parent.kind !== 352 /* JSDocTemplateTag */ || isInJSFile(node); } return isDeclarationKind(node.kind); } @@ -9916,10 +9960,10 @@ function isStatement(node) { return isStatementKindButNotDeclarationKind(kind) || isDeclarationStatementKind(kind) || isBlockStatement(node); } function isBlockStatement(node) { - if (node.kind !== 240 /* Block */) + if (node.kind !== 241 /* Block */) return false; if (node.parent !== void 0) { - if (node.parent.kind === 257 /* TryStatement */ || node.parent.kind === 298 /* CatchClause */) { + if (node.parent.kind === 258 /* TryStatement */ || node.parent.kind === 299 /* CatchClause */) { return false; } } @@ -9927,34 +9971,34 @@ function isBlockStatement(node) { } function isStatementOrBlock(node) { const kind = node.kind; - return isStatementKindButNotDeclarationKind(kind) || isDeclarationStatementKind(kind) || kind === 240 /* Block */; + return isStatementKindButNotDeclarationKind(kind) || isDeclarationStatementKind(kind) || kind === 241 /* Block */; } function isModuleReference(node) { const kind = node.kind; - return kind === 282 /* ExternalModuleReference */ || kind === 165 /* QualifiedName */ || kind === 80 /* Identifier */; + return kind === 283 /* ExternalModuleReference */ || kind === 166 /* QualifiedName */ || kind === 80 /* Identifier */; } function isJsxTagNameExpression(node) { const kind = node.kind; - return kind === 110 /* ThisKeyword */ || kind === 80 /* Identifier */ || kind === 210 /* PropertyAccessExpression */ || kind === 294 /* JsxNamespacedName */; + return kind === 110 /* ThisKeyword */ || kind === 80 /* Identifier */ || kind === 211 /* PropertyAccessExpression */ || kind === 295 /* JsxNamespacedName */; } function isJsxChild(node) { const kind = node.kind; - return kind === 283 /* JsxElement */ || kind === 293 /* JsxExpression */ || kind === 284 /* JsxSelfClosingElement */ || kind === 12 /* JsxText */ || kind === 287 /* JsxFragment */; + return kind === 284 /* JsxElement */ || kind === 294 /* JsxExpression */ || kind === 285 /* JsxSelfClosingElement */ || kind === 12 /* JsxText */ || kind === 288 /* JsxFragment */; } function isJsxAttributeLike(node) { const kind = node.kind; - return kind === 290 /* JsxAttribute */ || kind === 292 /* JsxSpreadAttribute */; + return kind === 291 /* JsxAttribute */ || kind === 293 /* JsxSpreadAttribute */; } function isStringLiteralOrJsxExpression(node) { const kind = node.kind; - return kind === 11 /* StringLiteral */ || kind === 293 /* JsxExpression */; + return kind === 11 /* StringLiteral */ || kind === 294 /* JsxExpression */; } function isCaseOrDefaultClause(node) { const kind = node.kind; - return kind === 295 /* CaseClause */ || kind === 296 /* DefaultClause */; + return kind === 296 /* CaseClause */ || kind === 297 /* DefaultClause */; } function isJSDocNode(node) { - return node.kind >= 315 /* FirstJSDocNode */ && node.kind <= 356 /* LastJSDocNode */; + return node.kind >= 316 /* FirstJSDocNode */ && node.kind <= 357 /* LastJSDocNode */; } function hasJSDocNodes(node) { if (!canHaveJSDoc(node)) @@ -10025,19 +10069,19 @@ function packageIdToString(packageId) { } function containsParseError(node) { aggregateChildData(node); - return (node.flags & 524288 /* ThisNodeOrAnySubNodesHasError */) !== 0; + return (node.flags & 1048576 /* ThisNodeOrAnySubNodesHasError */) !== 0; } function aggregateChildData(node) { - if (!(node.flags & 1048576 /* HasAggregatedChildData */)) { - const thisNodeOrAnySubNodesHasError = (node.flags & 131072 /* ThisNodeHasError */) !== 0 || forEachChild(node, containsParseError); + if (!(node.flags & 2097152 /* HasAggregatedChildData */)) { + const thisNodeOrAnySubNodesHasError = (node.flags & 262144 /* ThisNodeHasError */) !== 0 || forEachChild(node, containsParseError); if (thisNodeOrAnySubNodesHasError) { - node.flags |= 524288 /* ThisNodeOrAnySubNodesHasError */; + node.flags |= 1048576 /* ThisNodeOrAnySubNodesHasError */; } - node.flags |= 1048576 /* HasAggregatedChildData */; + node.flags |= 2097152 /* HasAggregatedChildData */; } } function getSourceFileOfNode(node) { - while (node && node.kind !== 311 /* SourceFile */) { + while (node && node.kind !== 312 /* SourceFile */) { node = node.parent; } return node; @@ -10092,10 +10136,10 @@ function isModuleWithStringLiteralName(node) { return isModuleDeclaration(node) && node.name.kind === 11 /* StringLiteral */; } function isGlobalScopeAugmentation(module2) { - return !!(module2.flags & 1024 /* GlobalAugmentation */); + return !!(module2.flags & 2048 /* GlobalAugmentation */); } function isComputedNonLiteralName(name) { - return name.kind === 166 /* ComputedPropertyName */ && !isStringOrNumericLiteralLike(name.expression); + return name.kind === 167 /* ComputedPropertyName */ && !isStringOrNumericLiteralLike(name.expression); } function tryGetTextOfPropertyName(name) { var _a; @@ -10107,11 +10151,11 @@ function tryGetTextOfPropertyName(name) { case 9 /* NumericLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: return escapeLeadingUnderscores(name.text); - case 166 /* ComputedPropertyName */: + case 167 /* ComputedPropertyName */: if (isStringOrNumericLiteralLike(name.expression)) return escapeLeadingUnderscores(name.expression.text); return void 0; - case 294 /* JsxNamespacedName */: + case 295 /* JsxNamespacedName */: return getEscapedTextOfJsxNamespacedName(name); default: return Debug.assertNever(name); @@ -10149,7 +10193,7 @@ function getSpanOfTokenAtPosition(sourceFile, pos) { } function getErrorSpanForArrowFunction(sourceFile, node) { const pos = skipTrivia(sourceFile.text, node.pos); - if (node.body && node.body.kind === 240 /* Block */) { + if (node.body && node.body.kind === 241 /* Block */) { const { line: startLine } = getLineAndCharacterOfPosition(sourceFile, node.body.pos); const { line: endLine } = getLineAndCharacterOfPosition(sourceFile, node.body.end); if (startLine < endLine) { @@ -10161,7 +10205,7 @@ function getErrorSpanForArrowFunction(sourceFile, node) { function getErrorSpanForNode(sourceFile, node) { let errorNode = node; switch (node.kind) { - case 311 /* SourceFile */: { + case 312 /* SourceFile */: { const pos2 = skipTrivia( sourceFile.text, 0, @@ -10173,43 +10217,43 @@ function getErrorSpanForNode(sourceFile, node) { } return getSpanOfTokenAtPosition(sourceFile, pos2); } - case 259 /* VariableDeclaration */: - case 207 /* BindingElement */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 263 /* InterfaceDeclaration */: - case 266 /* ModuleDeclaration */: - case 265 /* EnumDeclaration */: - case 305 /* EnumMember */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 264 /* TypeAliasDeclaration */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 273 /* NamespaceImport */: + case 260 /* VariableDeclaration */: + case 208 /* BindingElement */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 267 /* ModuleDeclaration */: + case 266 /* EnumDeclaration */: + case 306 /* EnumMember */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 265 /* TypeAliasDeclaration */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 274 /* NamespaceImport */: errorNode = node.name; break; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return getErrorSpanForArrowFunction(sourceFile, node); - case 295 /* CaseClause */: - case 296 /* DefaultClause */: { + case 296 /* CaseClause */: + case 297 /* DefaultClause */: { const start = skipTrivia(sourceFile.text, node.pos); const end = node.statements.length > 0 ? node.statements[0].pos : node.end; return createTextSpanFromBounds(start, end); } - case 252 /* ReturnStatement */: - case 228 /* YieldExpression */: { + case 253 /* ReturnStatement */: + case 229 /* YieldExpression */: { const pos2 = skipTrivia(sourceFile.text, node.pos); return getSpanOfTokenAtPosition(sourceFile, pos2); } - case 237 /* SatisfiesExpression */: { + case 238 /* SatisfiesExpression */: { const pos2 = skipTrivia(sourceFile.text, node.expression.end); return getSpanOfTokenAtPosition(sourceFile, pos2); } - case 356 /* JSDocSatisfiesTag */: { + case 357 /* JSDocSatisfiesTag */: { const pos2 = skipTrivia(sourceFile.text, node.tagName.pos); return getSpanOfTokenAtPosition(sourceFile, pos2); } @@ -10236,7 +10280,7 @@ function isJsonSourceFile(file) { return file.scriptKind === 6 /* JSON */; } function isPrologueDirective(node) { - return node.kind === 243 /* ExpressionStatement */ && node.expression.kind === 11 /* StringLiteral */; + return node.kind === 244 /* ExpressionStatement */ && node.expression.kind === 11 /* StringLiteral */; } function isCustomPrologue(node) { return !!(getEmitFlags(node) & 2097152 /* CustomPrologue */); @@ -10251,34 +10295,34 @@ function isHoistedVariableStatement(node) { return isCustomPrologue(node) && isVariableStatement(node) && every(node.declarationList.declarations, isHoistedVariable); } function getJSDocCommentRanges(node, text) { - const commentRanges = node.kind === 168 /* Parameter */ || node.kind === 167 /* TypeParameter */ || node.kind === 217 /* FunctionExpression */ || node.kind === 218 /* ArrowFunction */ || node.kind === 216 /* ParenthesizedExpression */ || node.kind === 259 /* VariableDeclaration */ || node.kind === 280 /* ExportSpecifier */ ? concatenate(getTrailingCommentRanges(text, node.pos), getLeadingCommentRanges(text, node.pos)) : getLeadingCommentRanges(text, node.pos); + const commentRanges = node.kind === 169 /* Parameter */ || node.kind === 168 /* TypeParameter */ || node.kind === 218 /* FunctionExpression */ || node.kind === 219 /* ArrowFunction */ || node.kind === 217 /* ParenthesizedExpression */ || node.kind === 260 /* VariableDeclaration */ || node.kind === 281 /* ExportSpecifier */ ? concatenate(getTrailingCommentRanges(text, node.pos), getLeadingCommentRanges(text, node.pos)) : getLeadingCommentRanges(text, node.pos); return filter(commentRanges, (comment) => text.charCodeAt(comment.pos + 1) === 42 /* asterisk */ && text.charCodeAt(comment.pos + 2) === 42 /* asterisk */ && text.charCodeAt(comment.pos + 3) !== 47 /* slash */); } function isVariableLike(node) { if (node) { switch (node.kind) { - case 207 /* BindingElement */: - case 305 /* EnumMember */: - case 168 /* Parameter */: - case 302 /* PropertyAssignment */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 303 /* ShorthandPropertyAssignment */: - case 259 /* VariableDeclaration */: + case 208 /* BindingElement */: + case 306 /* EnumMember */: + case 169 /* Parameter */: + case 303 /* PropertyAssignment */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 304 /* ShorthandPropertyAssignment */: + case 260 /* VariableDeclaration */: return true; } } return false; } function isFunctionBlock(node) { - return node && node.kind === 240 /* Block */ && isFunctionLike(node.parent); + return node && node.kind === 241 /* Block */ && isFunctionLike(node.parent); } function isSuperProperty(node) { const kind = node.kind; - return (kind === 210 /* PropertyAccessExpression */ || kind === 211 /* ElementAccessExpression */) && node.expression.kind === 108 /* SuperKeyword */; + return (kind === 211 /* PropertyAccessExpression */ || kind === 212 /* ElementAccessExpression */) && node.expression.kind === 108 /* SuperKeyword */; } function isInJSFile(node) { - return !!node && !!(node.flags & 262144 /* JavaScriptFile */); + return !!node && !!(node.flags & 524288 /* JavaScriptFile */); } function isStringDoubleQuoted(str, sourceFile) { return getSourceTextOfNodeFromSourceFile(sourceFile, str).charCodeAt(0) === 34 /* doubleQuote */; @@ -10427,12 +10471,12 @@ function getSourceOfDefaultedAssignment(node) { } function getSingleInitializerOfVariableStatementOrPropertyDeclaration(node) { switch (node.kind) { - case 242 /* VariableStatement */: + case 243 /* VariableStatement */: const v = getSingleVariableOfVariableStatement(node); return v && v.initializer; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return node.initializer; - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return node.initializer; } } @@ -10440,76 +10484,76 @@ function getSingleVariableOfVariableStatement(node) { return isVariableStatement(node) ? firstOrUndefined(node.declarationList.declarations) : void 0; } function getNestedModuleDeclaration(node) { - return isModuleDeclaration(node) && node.body && node.body.kind === 266 /* ModuleDeclaration */ ? node.body : void 0; + return isModuleDeclaration(node) && node.body && node.body.kind === 267 /* ModuleDeclaration */ ? node.body : void 0; } function canHaveJSDoc(node) { switch (node.kind) { - case 218 /* ArrowFunction */: - case 225 /* BinaryExpression */: - case 240 /* Block */: - case 251 /* BreakStatement */: - case 178 /* CallSignature */: - case 295 /* CaseClause */: - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: - case 174 /* ClassStaticBlockDeclaration */: - case 175 /* Constructor */: - case 184 /* ConstructorType */: - case 179 /* ConstructSignature */: - case 250 /* ContinueStatement */: - case 258 /* DebuggerStatement */: - case 245 /* DoStatement */: - case 211 /* ElementAccessExpression */: - case 241 /* EmptyStatement */: + case 219 /* ArrowFunction */: + case 226 /* BinaryExpression */: + case 241 /* Block */: + case 252 /* BreakStatement */: + case 179 /* CallSignature */: + case 296 /* CaseClause */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 175 /* ClassStaticBlockDeclaration */: + case 176 /* Constructor */: + case 185 /* ConstructorType */: + case 180 /* ConstructSignature */: + case 251 /* ContinueStatement */: + case 259 /* DebuggerStatement */: + case 246 /* DoStatement */: + case 212 /* ElementAccessExpression */: + case 242 /* EmptyStatement */: case 1 /* EndOfFileToken */: - case 265 /* EnumDeclaration */: - case 305 /* EnumMember */: - case 276 /* ExportAssignment */: - case 277 /* ExportDeclaration */: - case 280 /* ExportSpecifier */: - case 243 /* ExpressionStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 247 /* ForStatement */: - case 261 /* FunctionDeclaration */: - case 217 /* FunctionExpression */: - case 183 /* FunctionType */: - case 176 /* GetAccessor */: + case 266 /* EnumDeclaration */: + case 306 /* EnumMember */: + case 277 /* ExportAssignment */: + case 278 /* ExportDeclaration */: + case 281 /* ExportSpecifier */: + case 244 /* ExpressionStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 248 /* ForStatement */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 184 /* FunctionType */: + case 177 /* GetAccessor */: case 80 /* Identifier */: - case 244 /* IfStatement */: - case 271 /* ImportDeclaration */: - case 270 /* ImportEqualsDeclaration */: - case 180 /* IndexSignature */: - case 263 /* InterfaceDeclaration */: - case 323 /* JSDocFunctionType */: - case 329 /* JSDocSignature */: - case 255 /* LabeledStatement */: - case 173 /* MethodDeclaration */: - case 172 /* MethodSignature */: - case 266 /* ModuleDeclaration */: - case 201 /* NamedTupleMember */: - case 269 /* NamespaceExportDeclaration */: - case 209 /* ObjectLiteralExpression */: - case 168 /* Parameter */: - case 216 /* ParenthesizedExpression */: - case 210 /* PropertyAccessExpression */: - case 302 /* PropertyAssignment */: - case 171 /* PropertyDeclaration */: - case 170 /* PropertySignature */: - case 252 /* ReturnStatement */: - case 239 /* SemicolonClassElement */: - case 177 /* SetAccessor */: - case 303 /* ShorthandPropertyAssignment */: - case 304 /* SpreadAssignment */: - case 254 /* SwitchStatement */: - case 256 /* ThrowStatement */: - case 257 /* TryStatement */: - case 264 /* TypeAliasDeclaration */: - case 167 /* TypeParameter */: - case 259 /* VariableDeclaration */: - case 242 /* VariableStatement */: - case 246 /* WhileStatement */: - case 253 /* WithStatement */: + case 245 /* IfStatement */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 181 /* IndexSignature */: + case 264 /* InterfaceDeclaration */: + case 324 /* JSDocFunctionType */: + case 330 /* JSDocSignature */: + case 256 /* LabeledStatement */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 267 /* ModuleDeclaration */: + case 202 /* NamedTupleMember */: + case 270 /* NamespaceExportDeclaration */: + case 210 /* ObjectLiteralExpression */: + case 169 /* Parameter */: + case 217 /* ParenthesizedExpression */: + case 211 /* PropertyAccessExpression */: + case 303 /* PropertyAssignment */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 253 /* ReturnStatement */: + case 240 /* SemicolonClassElement */: + case 178 /* SetAccessor */: + case 304 /* ShorthandPropertyAssignment */: + case 305 /* SpreadAssignment */: + case 255 /* SwitchStatement */: + case 257 /* ThrowStatement */: + case 258 /* TryStatement */: + case 265 /* TypeAliasDeclaration */: + case 168 /* TypeParameter */: + case 260 /* VariableDeclaration */: + case 243 /* VariableStatement */: + case 247 /* WhileStatement */: + case 254 /* WithStatement */: return true; default: return false; @@ -10525,11 +10569,11 @@ function getJSDocCommentsAndTags(hostNode, noCache) { if (hasJSDocNodes(node)) { result = addRange(result, filterOwnedJSDocTags(hostNode, last(node.jsDoc))); } - if (node.kind === 168 /* Parameter */) { + if (node.kind === 169 /* Parameter */) { result = addRange(result, (noCache ? getJSDocParameterTagsNoCache : getJSDocParameterTags)(node)); break; } - if (node.kind === 167 /* TypeParameter */) { + if (node.kind === 168 /* TypeParameter */) { result = addRange(result, (noCache ? getJSDocTypeParameterTagsNoCache : getJSDocTypeParameterTags)(node)); break; } @@ -10549,7 +10593,7 @@ function ownsJSDocTag(hostNode, tag) { } function getNextJSDocCommentLocation(node) { const parent = node.parent; - if (parent.kind === 302 /* PropertyAssignment */ || parent.kind === 276 /* ExportAssignment */ || parent.kind === 171 /* PropertyDeclaration */ || parent.kind === 243 /* ExpressionStatement */ && node.kind === 210 /* PropertyAccessExpression */ || parent.kind === 252 /* ReturnStatement */ || getNestedModuleDeclaration(parent) || isBinaryExpression(node) && node.operatorToken.kind === 64 /* EqualsToken */) { + if (parent.kind === 303 /* PropertyAssignment */ || parent.kind === 277 /* ExportAssignment */ || parent.kind === 172 /* PropertyDeclaration */ || parent.kind === 244 /* ExpressionStatement */ && node.kind === 211 /* PropertyAccessExpression */ || parent.kind === 253 /* ReturnStatement */ || getNestedModuleDeclaration(parent) || isBinaryExpression(node) && node.operatorToken.kind === 64 /* EqualsToken */) { return parent; } else if (parent.parent && (getSingleVariableOfVariableStatement(parent.parent) === node || isBinaryExpression(parent) && parent.operatorToken.kind === 64 /* EqualsToken */)) { return parent.parent; @@ -10562,7 +10606,7 @@ function skipParentheses(node, excludeJSDocTypeAssertions) { return skipOuterExpressions(node, flags); } function isKeyword(token) { - return 83 /* FirstKeyword */ <= token && token <= 164 /* LastKeyword */; + return 83 /* FirstKeyword */ <= token && token <= 165 /* LastKeyword */; } function isPunctuation(token) { return 19 /* FirstPunctuation */ <= token && token <= 79 /* LastPunctuation */; @@ -10577,7 +10621,7 @@ function isSignedNumericLiteral(node) { return isPrefixUnaryExpression(node) && (node.operator === 40 /* PlusToken */ || node.operator === 41 /* MinusToken */) && isNumericLiteral(node.operand); } function isDynamicName(name) { - if (!(name.kind === 166 /* ComputedPropertyName */ || name.kind === 211 /* ElementAccessExpression */)) { + if (!(name.kind === 167 /* ComputedPropertyName */ || name.kind === 212 /* ElementAccessExpression */)) { return false; } const expr = isElementAccessExpression(name) ? skipParentheses(name.argumentExpression) : name.expression; @@ -10591,22 +10635,22 @@ function nodeIsSynthesized(range) { } function getExpressionAssociativity(expression) { const operator = getOperator(expression); - const hasArguments = expression.kind === 213 /* NewExpression */ && expression.arguments !== void 0; + const hasArguments = expression.kind === 214 /* NewExpression */ && expression.arguments !== void 0; return getOperatorAssociativity(expression.kind, operator, hasArguments); } function getOperatorAssociativity(kind, operator, hasArguments) { switch (kind) { - case 213 /* NewExpression */: + case 214 /* NewExpression */: return hasArguments ? 0 /* Left */ : 1 /* Right */; - case 223 /* PrefixUnaryExpression */: - case 220 /* TypeOfExpression */: - case 221 /* VoidExpression */: - case 219 /* DeleteExpression */: - case 222 /* AwaitExpression */: - case 226 /* ConditionalExpression */: - case 228 /* YieldExpression */: + case 224 /* PrefixUnaryExpression */: + case 221 /* TypeOfExpression */: + case 222 /* VoidExpression */: + case 220 /* DeleteExpression */: + case 223 /* AwaitExpression */: + case 227 /* ConditionalExpression */: + case 229 /* YieldExpression */: return 1 /* Right */; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: switch (operator) { case 43 /* AsteriskAsteriskToken */: case 64 /* EqualsToken */: @@ -10632,13 +10676,13 @@ function getOperatorAssociativity(kind, operator, hasArguments) { } function getExpressionPrecedence(expression) { const operator = getOperator(expression); - const hasArguments = expression.kind === 213 /* NewExpression */ && expression.arguments !== void 0; + const hasArguments = expression.kind === 214 /* NewExpression */ && expression.arguments !== void 0; return getOperatorPrecedence(expression.kind, operator, hasArguments); } function getOperator(expression) { - if (expression.kind === 225 /* BinaryExpression */) { + if (expression.kind === 226 /* BinaryExpression */) { return expression.operatorToken.kind; - } else if (expression.kind === 223 /* PrefixUnaryExpression */ || expression.kind === 224 /* PostfixUnaryExpression */) { + } else if (expression.kind === 224 /* PrefixUnaryExpression */ || expression.kind === 225 /* PostfixUnaryExpression */) { return expression.operator; } else { return expression.kind; @@ -10646,15 +10690,15 @@ function getOperator(expression) { } function getOperatorPrecedence(nodeKind, operatorKind, hasArguments) { switch (nodeKind) { - case 360 /* CommaListExpression */: + case 361 /* CommaListExpression */: return 0 /* Comma */; - case 229 /* SpreadElement */: + case 230 /* SpreadElement */: return 1 /* Spread */; - case 228 /* YieldExpression */: + case 229 /* YieldExpression */: return 2 /* Yield */; - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: return 4 /* Conditional */; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: switch (operatorKind) { case 28 /* CommaToken */: return 0 /* Comma */; @@ -10678,27 +10722,27 @@ function getOperatorPrecedence(nodeKind, operatorKind, hasArguments) { default: return getBinaryOperatorPrecedence(operatorKind); } - case 215 /* TypeAssertionExpression */: - case 234 /* NonNullExpression */: - case 223 /* PrefixUnaryExpression */: - case 220 /* TypeOfExpression */: - case 221 /* VoidExpression */: - case 219 /* DeleteExpression */: - case 222 /* AwaitExpression */: + case 216 /* TypeAssertionExpression */: + case 235 /* NonNullExpression */: + case 224 /* PrefixUnaryExpression */: + case 221 /* TypeOfExpression */: + case 222 /* VoidExpression */: + case 220 /* DeleteExpression */: + case 223 /* AwaitExpression */: return 16 /* Unary */; - case 224 /* PostfixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: return 17 /* Update */; - case 212 /* CallExpression */: + case 213 /* CallExpression */: return 18 /* LeftHandSide */; - case 213 /* NewExpression */: + case 214 /* NewExpression */: return hasArguments ? 19 /* Member */ : 18 /* LeftHandSide */; - case 214 /* TaggedTemplateExpression */: - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: - case 235 /* MetaProperty */: + case 215 /* TaggedTemplateExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + case 236 /* MetaProperty */: return 19 /* Member */; - case 233 /* AsExpression */: - case 237 /* SatisfiesExpression */: + case 234 /* AsExpression */: + case 238 /* SatisfiesExpression */: return 11 /* Relational */; case 110 /* ThisKeyword */: case 108 /* SuperKeyword */: @@ -10710,19 +10754,19 @@ function getOperatorPrecedence(nodeKind, operatorKind, hasArguments) { case 9 /* NumericLiteral */: case 10 /* BigIntLiteral */: case 11 /* StringLiteral */: - case 208 /* ArrayLiteralExpression */: - case 209 /* ObjectLiteralExpression */: - case 217 /* FunctionExpression */: - case 218 /* ArrowFunction */: - case 230 /* ClassExpression */: + case 209 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 231 /* ClassExpression */: case 14 /* RegularExpressionLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: - case 227 /* TemplateExpression */: - case 216 /* ParenthesizedExpression */: - case 231 /* OmittedExpression */: - case 283 /* JsxElement */: - case 284 /* JsxSelfClosingElement */: - case 287 /* JsxFragment */: + case 228 /* TemplateExpression */: + case 217 /* ParenthesizedExpression */: + case 232 /* OmittedExpression */: + case 284 /* JsxElement */: + case 285 /* JsxSelfClosingElement */: + case 288 /* JsxFragment */: return 20 /* Primary */; default: return -1 /* Invalid */; @@ -10845,7 +10889,7 @@ function getSelectedSyntacticModifierFlags(node, flags) { return getSyntacticModifierFlags(node) & flags; } function getModifierFlagsWorker(node, includeJSDoc, alwaysIncludeJSDoc) { - if (node.kind >= 0 /* FirstToken */ && node.kind <= 164 /* LastToken */) { + if (node.kind >= 0 /* FirstToken */ && node.kind <= 165 /* LastToken */) { return 0 /* None */; } if (!(node.modifierFlagsCache & 536870912 /* HasComputedFlags */)) { @@ -10888,7 +10932,7 @@ function getEffectiveModifierFlagsNoCache(node) { } function getSyntacticModifierFlagsNoCache(node) { let flags = canHaveModifiers(node) ? modifiersToFlags(node.modifiers) : 0 /* None */; - if (node.flags & 4 /* NestedNamespace */ || node.kind === 80 /* Identifier */ && node.flags & 2048 /* IdentifierIsInJSDocNamespace */) { + if (node.flags & 8 /* NestedNamespace */ || node.kind === 80 /* Identifier */ && node.flags & 4096 /* IdentifierIsInJSDocNamespace */) { flags |= 1 /* Export */; } return flags; @@ -10928,13 +10972,13 @@ function modifierToFlag(token) { return 512 /* Async */; case 148 /* ReadonlyKeyword */: return 64 /* Readonly */; - case 163 /* OverrideKeyword */: + case 164 /* OverrideKeyword */: return 16384 /* Override */; case 103 /* InKeyword */: return 32768 /* In */; case 147 /* OutKeyword */: return 65536 /* Out */; - case 169 /* Decorator */: + case 170 /* Decorator */: return 131072 /* Decorator */; } return 0 /* None */; @@ -10996,36 +11040,36 @@ function getLastChild(node) { return lastChild; } function isTypeNodeKind(kind) { - return kind >= 181 /* FirstTypeNode */ && kind <= 204 /* LastTypeNode */ || kind === 133 /* AnyKeyword */ || kind === 159 /* UnknownKeyword */ || kind === 150 /* NumberKeyword */ || kind === 162 /* BigIntKeyword */ || kind === 151 /* ObjectKeyword */ || kind === 136 /* BooleanKeyword */ || kind === 154 /* StringKeyword */ || kind === 155 /* SymbolKeyword */ || kind === 116 /* VoidKeyword */ || kind === 157 /* UndefinedKeyword */ || kind === 146 /* NeverKeyword */ || kind === 141 /* IntrinsicKeyword */ || kind === 232 /* ExpressionWithTypeArguments */ || kind === 318 /* JSDocAllType */ || kind === 319 /* JSDocUnknownType */ || kind === 320 /* JSDocNullableType */ || kind === 321 /* JSDocNonNullableType */ || kind === 322 /* JSDocOptionalType */ || kind === 323 /* JSDocFunctionType */ || kind === 324 /* JSDocVariadicType */; + return kind >= 182 /* FirstTypeNode */ && kind <= 205 /* LastTypeNode */ || kind === 133 /* AnyKeyword */ || kind === 159 /* UnknownKeyword */ || kind === 150 /* NumberKeyword */ || kind === 163 /* BigIntKeyword */ || kind === 151 /* ObjectKeyword */ || kind === 136 /* BooleanKeyword */ || kind === 154 /* StringKeyword */ || kind === 155 /* SymbolKeyword */ || kind === 116 /* VoidKeyword */ || kind === 157 /* UndefinedKeyword */ || kind === 146 /* NeverKeyword */ || kind === 141 /* IntrinsicKeyword */ || kind === 233 /* ExpressionWithTypeArguments */ || kind === 319 /* JSDocAllType */ || kind === 320 /* JSDocUnknownType */ || kind === 321 /* JSDocNullableType */ || kind === 322 /* JSDocNonNullableType */ || kind === 323 /* JSDocOptionalType */ || kind === 324 /* JSDocFunctionType */ || kind === 325 /* JSDocVariadicType */; } function isAccessExpression(node) { - return node.kind === 210 /* PropertyAccessExpression */ || node.kind === 211 /* ElementAccessExpression */; + return node.kind === 211 /* PropertyAccessExpression */ || node.kind === 212 /* ElementAccessExpression */; } function getLeftmostExpression(node, stopAtCallExpressions) { while (true) { switch (node.kind) { - case 224 /* PostfixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: node = node.operand; continue; - case 225 /* BinaryExpression */: + case 226 /* BinaryExpression */: node = node.left; continue; - case 226 /* ConditionalExpression */: + case 227 /* ConditionalExpression */: node = node.condition; continue; - case 214 /* TaggedTemplateExpression */: + case 215 /* TaggedTemplateExpression */: node = node.tag; continue; - case 212 /* CallExpression */: + case 213 /* CallExpression */: if (stopAtCallExpressions) { return node; } - case 233 /* AsExpression */: - case 211 /* ElementAccessExpression */: - case 210 /* PropertyAccessExpression */: - case 234 /* NonNullExpression */: - case 359 /* PartiallyEmittedExpression */: - case 237 /* SatisfiesExpression */: + case 234 /* AsExpression */: + case 212 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 235 /* NonNullExpression */: + case 360 /* PartiallyEmittedExpression */: + case 238 /* SatisfiesExpression */: node = node.expression; continue; } @@ -11258,7 +11302,10 @@ function getResolveJsonModule(compilerOptions) { } return getEmitModuleResolutionKind(compilerOptions) === 100 /* Bundler */; } -var reservedCharacterPattern = /[^\w\s\/]/g; +function getAllowJSCompilerOption(compilerOptions) { + return compilerOptions.allowJs === void 0 ? !!compilerOptions.checkJs : compilerOptions.allowJs; +} +var reservedCharacterPattern = /[^\w\s/]/g; var wildcardCharCodes = [42 /* asterisk */, 63 /* question */]; var commonPackageFolders = ["node_modules", "bower_components", "jspm_packages"]; var implicitExcludePathRegexPattern = `(?!(${commonPackageFolders.join("|")})(/|$))`; @@ -11367,7 +11414,7 @@ function getSubPatternFromSpec(spec, basePath, usage, { singleAsteriskRegexFragm function replaceWildcardCharacter(match, singleAsteriskRegexFragment) { return match === "*" ? singleAsteriskRegexFragment : match === "?" ? "[^/]" : "\\" + match; } -function getFileMatcherPatterns(path2, excludes, includes, useCaseSensitiveFileNames, currentDirectory) { +function getFileMatcherPatterns(path2, excludes, includes, useCaseSensitiveFileNames2, currentDirectory) { path2 = normalizePath(path2); currentDirectory = normalizePath(currentDirectory); const absolutePath = combinePaths(currentDirectory, path2); @@ -11376,22 +11423,22 @@ function getFileMatcherPatterns(path2, excludes, includes, useCaseSensitiveFileN includeFilePattern: getRegularExpressionForWildcard(includes, absolutePath, "files"), includeDirectoryPattern: getRegularExpressionForWildcard(includes, absolutePath, "directories"), excludePattern: getRegularExpressionForWildcard(excludes, absolutePath, "exclude"), - basePaths: getBasePaths(path2, includes, useCaseSensitiveFileNames) + basePaths: getBasePaths(path2, includes, useCaseSensitiveFileNames2) }; } -function getRegexFromPattern(pattern, useCaseSensitiveFileNames) { - return new RegExp(pattern, useCaseSensitiveFileNames ? "" : "i"); +function getRegexFromPattern(pattern, useCaseSensitiveFileNames2) { + return new RegExp(pattern, useCaseSensitiveFileNames2 ? "" : "i"); } -function matchFiles(path2, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath) { +function matchFiles(path2, extensions, excludes, includes, useCaseSensitiveFileNames2, currentDirectory, depth, getFileSystemEntries, realpath) { path2 = normalizePath(path2); currentDirectory = normalizePath(currentDirectory); - const patterns = getFileMatcherPatterns(path2, excludes, includes, useCaseSensitiveFileNames, currentDirectory); - const includeFileRegexes = patterns.includeFilePatterns && patterns.includeFilePatterns.map((pattern) => getRegexFromPattern(pattern, useCaseSensitiveFileNames)); - const includeDirectoryRegex = patterns.includeDirectoryPattern && getRegexFromPattern(patterns.includeDirectoryPattern, useCaseSensitiveFileNames); - const excludeRegex = patterns.excludePattern && getRegexFromPattern(patterns.excludePattern, useCaseSensitiveFileNames); + const patterns = getFileMatcherPatterns(path2, excludes, includes, useCaseSensitiveFileNames2, currentDirectory); + const includeFileRegexes = patterns.includeFilePatterns && patterns.includeFilePatterns.map((pattern) => getRegexFromPattern(pattern, useCaseSensitiveFileNames2)); + const includeDirectoryRegex = patterns.includeDirectoryPattern && getRegexFromPattern(patterns.includeDirectoryPattern, useCaseSensitiveFileNames2); + const excludeRegex = patterns.excludePattern && getRegexFromPattern(patterns.excludePattern, useCaseSensitiveFileNames2); const results = includeFileRegexes ? includeFileRegexes.map(() => []) : [[]]; const visited = /* @__PURE__ */ new Map(); - const toCanonical = createGetCanonicalFileName(useCaseSensitiveFileNames); + const toCanonical = createGetCanonicalFileName(useCaseSensitiveFileNames2); for (const basePath of patterns.basePaths) { visitDirectory(basePath, combinePaths(currentDirectory, basePath), depth); } @@ -11433,7 +11480,7 @@ function matchFiles(path2, extensions, excludes, includes, useCaseSensitiveFileN } } } -function getBasePaths(path2, includes, useCaseSensitiveFileNames) { +function getBasePaths(path2, includes, useCaseSensitiveFileNames2) { const basePaths = [path2]; if (includes) { const includeBasePaths = []; @@ -11441,9 +11488,9 @@ function getBasePaths(path2, includes, useCaseSensitiveFileNames) { const absolute = isRootedDiskPath(include) ? include : normalizePath(combinePaths(path2, include)); includeBasePaths.push(getIncludeBasePath(absolute)); } - includeBasePaths.sort(getStringComparer(!useCaseSensitiveFileNames)); + includeBasePaths.sort(getStringComparer(!useCaseSensitiveFileNames2)); for (const includeBasePath of includeBasePaths) { - if (every(basePaths, (basePath) => !containsPath(basePath, includeBasePath, path2, !useCaseSensitiveFileNames))) { + if (every(basePaths, (basePath) => !containsPath(basePath, includeBasePath, path2, !useCaseSensitiveFileNames2))) { basePaths.push(includeBasePath); } } @@ -11661,7 +11708,7 @@ function setParentRecursive(rootNode, incremental) { } function isJsxAttributeName(node) { const kind = node.kind; - return kind === 80 /* Identifier */ || kind === 294 /* JsxNamespacedName */; + return kind === 80 /* Identifier */ || kind === 295 /* JsxNamespacedName */; } function getEscapedTextOfJsxNamespacedName(node) { return `${node.namespace.escapedText}:${idText(node.name)}`; @@ -11791,16 +11838,16 @@ function createParenthesizerRules(factory2) { return parenthesizerRule; } function binaryOperandNeedsParentheses(binaryOperator, operand, isLeftSideOfBinary, leftOperand) { - const binaryOperatorPrecedence = getOperatorPrecedence(225 /* BinaryExpression */, binaryOperator); - const binaryOperatorAssociativity = getOperatorAssociativity(225 /* BinaryExpression */, binaryOperator); + const binaryOperatorPrecedence = getOperatorPrecedence(226 /* BinaryExpression */, binaryOperator); + const binaryOperatorAssociativity = getOperatorAssociativity(226 /* BinaryExpression */, binaryOperator); const emittedOperand = skipPartiallyEmittedExpressions(operand); - if (!isLeftSideOfBinary && operand.kind === 218 /* ArrowFunction */ && binaryOperatorPrecedence > 3 /* Assignment */) { + if (!isLeftSideOfBinary && operand.kind === 219 /* ArrowFunction */ && binaryOperatorPrecedence > 3 /* Assignment */) { return true; } const operandPrecedence = getExpressionPrecedence(emittedOperand); switch (compareValues(operandPrecedence, binaryOperatorPrecedence)) { case -1 /* LessThan */: - if (!isLeftSideOfBinary && binaryOperatorAssociativity === 1 /* Right */ && operand.kind === 228 /* YieldExpression */) { + if (!isLeftSideOfBinary && binaryOperatorAssociativity === 1 /* Right */ && operand.kind === 229 /* YieldExpression */) { return false; } return true; @@ -11834,7 +11881,7 @@ function createParenthesizerRules(factory2) { if (isLiteralKind(node.kind)) { return node.kind; } - if (node.kind === 225 /* BinaryExpression */ && node.operatorToken.kind === 40 /* PlusToken */) { + if (node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 40 /* PlusToken */) { if (node.cachedLiteralKind !== void 0) { return node.cachedLiteralKind; } @@ -11847,7 +11894,7 @@ function createParenthesizerRules(factory2) { } function parenthesizeBinaryOperand(binaryOperator, operand, isLeftSideOfBinary, leftOperand) { const skipped = skipPartiallyEmittedExpressions(operand); - if (skipped.kind === 216 /* ParenthesizedExpression */) { + if (skipped.kind === 217 /* ParenthesizedExpression */) { return operand; } return binaryOperandNeedsParentheses(binaryOperator, operand, isLeftSideOfBinary, leftOperand) ? factory2.createParenthesizedExpression(operand) : operand; @@ -11873,7 +11920,7 @@ function createParenthesizerRules(factory2) { return isCommaSequence(expression) ? factory2.createParenthesizedExpression(expression) : expression; } function parenthesizeConditionOfConditionalExpression(condition) { - const conditionalPrecedence = getOperatorPrecedence(226 /* ConditionalExpression */, 58 /* QuestionToken */); + const conditionalPrecedence = getOperatorPrecedence(227 /* ConditionalExpression */, 58 /* QuestionToken */); const emittedCondition = skipPartiallyEmittedExpressions(condition); const conditionPrecedence = getExpressionPrecedence(emittedCondition); if (compareValues(conditionPrecedence, conditionalPrecedence) !== 1 /* GreaterThan */) { @@ -11894,8 +11941,8 @@ function createParenthesizerRules(factory2) { /*stopAtCallExpressions*/ false ).kind) { - case 230 /* ClassExpression */: - case 217 /* FunctionExpression */: + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: needsParens = true; } } @@ -11908,16 +11955,16 @@ function createParenthesizerRules(factory2) { true ); switch (leftmostExpr.kind) { - case 212 /* CallExpression */: + case 213 /* CallExpression */: return factory2.createParenthesizedExpression(expression); - case 213 /* NewExpression */: + case 214 /* NewExpression */: return !leftmostExpr.arguments ? factory2.createParenthesizedExpression(expression) : expression; } return parenthesizeLeftSideOfAccess(expression); } function parenthesizeLeftSideOfAccess(expression, optionalChain) { const emittedExpression = skipPartiallyEmittedExpressions(expression); - if (isLeftHandSideExpression(emittedExpression) && (emittedExpression.kind !== 213 /* NewExpression */ || emittedExpression.arguments) && (optionalChain || !isOptionalChain(emittedExpression))) { + if (isLeftHandSideExpression(emittedExpression) && (emittedExpression.kind !== 214 /* NewExpression */ || emittedExpression.arguments) && (optionalChain || !isOptionalChain(emittedExpression))) { return expression; } return setTextRange(factory2.createParenthesizedExpression(expression), expression); @@ -11935,7 +11982,7 @@ function createParenthesizerRules(factory2) { function parenthesizeExpressionForDisallowedComma(expression) { const emittedExpression = skipPartiallyEmittedExpressions(expression); const expressionPrecedence = getExpressionPrecedence(emittedExpression); - const commaPrecedence = getOperatorPrecedence(225 /* BinaryExpression */, 28 /* CommaToken */); + const commaPrecedence = getOperatorPrecedence(226 /* BinaryExpression */, 28 /* CommaToken */); return expressionPrecedence > commaPrecedence ? expression : setTextRange(factory2.createParenthesizedExpression(expression), expression); } function parenthesizeExpressionOfExpressionStatement(expression) { @@ -11943,7 +11990,7 @@ function createParenthesizerRules(factory2) { if (isCallExpression(emittedExpression)) { const callee = emittedExpression.expression; const kind = skipPartiallyEmittedExpressions(callee).kind; - if (kind === 217 /* FunctionExpression */ || kind === 218 /* ArrowFunction */) { + if (kind === 218 /* FunctionExpression */ || kind === 219 /* ArrowFunction */) { const updated = factory2.updateCallExpression( emittedExpression, setTextRange(factory2.createParenthesizedExpression(callee), callee), @@ -11958,7 +12005,7 @@ function createParenthesizerRules(factory2) { /*stopAtCallExpressions*/ false ).kind; - if (leftmostExpressionKind === 209 /* ObjectLiteralExpression */ || leftmostExpressionKind === 217 /* FunctionExpression */) { + if (leftmostExpressionKind === 210 /* ObjectLiteralExpression */ || leftmostExpressionKind === 218 /* FunctionExpression */) { return setTextRange(factory2.createParenthesizedExpression(expression), expression); } return expression; @@ -11968,31 +12015,31 @@ function createParenthesizerRules(factory2) { body, /*stopAtCallExpressions*/ false - ).kind === 209 /* ObjectLiteralExpression */)) { + ).kind === 210 /* ObjectLiteralExpression */)) { return setTextRange(factory2.createParenthesizedExpression(body), body); } return body; } function parenthesizeCheckTypeOfConditionalType(checkType) { switch (checkType.kind) { - case 183 /* FunctionType */: - case 184 /* ConstructorType */: - case 193 /* ConditionalType */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 194 /* ConditionalType */: return factory2.createParenthesizedType(checkType); } return checkType; } function parenthesizeExtendsTypeOfConditionalType(extendsType) { switch (extendsType.kind) { - case 193 /* ConditionalType */: + case 194 /* ConditionalType */: return factory2.createParenthesizedType(extendsType); } return extendsType; } function parenthesizeConstituentTypeOfUnionType(type) { switch (type.kind) { - case 191 /* UnionType */: - case 192 /* IntersectionType */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: return factory2.createParenthesizedType(type); } return parenthesizeCheckTypeOfConditionalType(type); @@ -12002,8 +12049,8 @@ function createParenthesizerRules(factory2) { } function parenthesizeConstituentTypeOfIntersectionType(type) { switch (type.kind) { - case 191 /* UnionType */: - case 192 /* IntersectionType */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: return factory2.createParenthesizedType(type); } return parenthesizeConstituentTypeOfUnionType(type); @@ -12013,23 +12060,23 @@ function createParenthesizerRules(factory2) { } function parenthesizeOperandOfTypeOperator(type) { switch (type.kind) { - case 192 /* IntersectionType */: + case 193 /* IntersectionType */: return factory2.createParenthesizedType(type); } return parenthesizeConstituentTypeOfIntersectionType(type); } function parenthesizeOperandOfReadonlyTypeOperator(type) { switch (type.kind) { - case 197 /* TypeOperator */: + case 198 /* TypeOperator */: return factory2.createParenthesizedType(type); } return parenthesizeOperandOfTypeOperator(type); } function parenthesizeNonArrayTypeOfPostfixType(type) { switch (type.kind) { - case 194 /* InferType */: - case 197 /* TypeOperator */: - case 185 /* TypeQuery */: + case 195 /* InferType */: + case 198 /* TypeOperator */: + case 186 /* TypeQuery */: return factory2.createParenthesizedType(type); } return parenthesizeOperandOfTypeOperator(type); @@ -12114,6 +12161,7 @@ function createNodeConverters(factory2) { return { convertToFunctionBlock, convertToFunctionExpression, + convertToClassExpression, convertToArrayAssignmentElement, convertToObjectAssignmentElement, convertToAssignmentPattern, @@ -12131,10 +12179,11 @@ function createNodeConverters(factory2) { return body; } function convertToFunctionExpression(node) { + var _a; if (!node.body) return Debug.fail(`Cannot convert a FunctionDeclaration without a body`); const updated = factory2.createFunctionExpression( - getModifiers(node), + (_a = getModifiers(node)) == null ? void 0 : _a.filter((modifier) => !isExportModifier(modifier) && !isDefaultModifier(modifier)), node.asteriskToken, node.name, node.typeParameters, @@ -12153,6 +12202,26 @@ function createNodeConverters(factory2) { } return updated; } + function convertToClassExpression(node) { + var _a; + const updated = factory2.createClassExpression( + (_a = node.modifiers) == null ? void 0 : _a.filter((modifier) => !isExportModifier(modifier) && !isDefaultModifier(modifier)), + node.name, + node.typeParameters, + node.heritageClauses, + node.members + ); + setOriginalNode(updated, node); + setTextRange(updated, node); + if (getStartsOnNewLine(node)) { + setStartsOnNewLine( + updated, + /*newLine*/ + true + ); + } + return updated; + } function convertToArrayAssignmentElement(element) { if (isBindingElement(element)) { if (element.dotDotDotToken) { @@ -12187,11 +12256,11 @@ function createNodeConverters(factory2) { } function convertToAssignmentPattern(node) { switch (node.kind) { - case 206 /* ArrayBindingPattern */: - case 208 /* ArrayLiteralExpression */: + case 207 /* ArrayBindingPattern */: + case 209 /* ArrayLiteralExpression */: return convertToArrayAssignmentPattern(node); - case 205 /* ObjectBindingPattern */: - case 209 /* ObjectLiteralExpression */: + case 206 /* ObjectBindingPattern */: + case 210 /* ObjectLiteralExpression */: return convertToObjectAssignmentPattern(node); } } @@ -12229,6 +12298,7 @@ function createNodeConverters(factory2) { var nullNodeConverters = { convertToFunctionBlock: notImplemented, convertToFunctionExpression: notImplemented, + convertToClassExpression: notImplemented, convertToArrayAssignmentElement: notImplemented, convertToObjectAssignmentElement: notImplemented, convertToAssignmentPattern: notImplemented, @@ -12538,40 +12608,40 @@ function createNodeFactory(flags, baseFactory2) { updateExternalModuleReference, // lazily load factory members for JSDoc types with similar structure get createJSDocAllType() { - return getJSDocPrimaryTypeCreateFunction(318 /* JSDocAllType */); + return getJSDocPrimaryTypeCreateFunction(319 /* JSDocAllType */); }, get createJSDocUnknownType() { - return getJSDocPrimaryTypeCreateFunction(319 /* JSDocUnknownType */); + return getJSDocPrimaryTypeCreateFunction(320 /* JSDocUnknownType */); }, get createJSDocNonNullableType() { - return getJSDocPrePostfixUnaryTypeCreateFunction(321 /* JSDocNonNullableType */); + return getJSDocPrePostfixUnaryTypeCreateFunction(322 /* JSDocNonNullableType */); }, get updateJSDocNonNullableType() { - return getJSDocPrePostfixUnaryTypeUpdateFunction(321 /* JSDocNonNullableType */); + return getJSDocPrePostfixUnaryTypeUpdateFunction(322 /* JSDocNonNullableType */); }, get createJSDocNullableType() { - return getJSDocPrePostfixUnaryTypeCreateFunction(320 /* JSDocNullableType */); + return getJSDocPrePostfixUnaryTypeCreateFunction(321 /* JSDocNullableType */); }, get updateJSDocNullableType() { - return getJSDocPrePostfixUnaryTypeUpdateFunction(320 /* JSDocNullableType */); + return getJSDocPrePostfixUnaryTypeUpdateFunction(321 /* JSDocNullableType */); }, get createJSDocOptionalType() { - return getJSDocUnaryTypeCreateFunction(322 /* JSDocOptionalType */); + return getJSDocUnaryTypeCreateFunction(323 /* JSDocOptionalType */); }, get updateJSDocOptionalType() { - return getJSDocUnaryTypeUpdateFunction(322 /* JSDocOptionalType */); + return getJSDocUnaryTypeUpdateFunction(323 /* JSDocOptionalType */); }, get createJSDocVariadicType() { - return getJSDocUnaryTypeCreateFunction(324 /* JSDocVariadicType */); + return getJSDocUnaryTypeCreateFunction(325 /* JSDocVariadicType */); }, get updateJSDocVariadicType() { - return getJSDocUnaryTypeUpdateFunction(324 /* JSDocVariadicType */); + return getJSDocUnaryTypeUpdateFunction(325 /* JSDocVariadicType */); }, get createJSDocNamepathType() { - return getJSDocUnaryTypeCreateFunction(325 /* JSDocNamepathType */); + return getJSDocUnaryTypeCreateFunction(326 /* JSDocNamepathType */); }, get updateJSDocNamepathType() { - return getJSDocUnaryTypeUpdateFunction(325 /* JSDocNamepathType */); + return getJSDocUnaryTypeUpdateFunction(326 /* JSDocNamepathType */); }, createJSDocFunctionType, updateJSDocFunctionType, @@ -12611,82 +12681,82 @@ function createNodeFactory(flags, baseFactory2) { updateJSDocLinkPlain, // lazily load factory members for JSDoc tags with similar structure get createJSDocTypeTag() { - return getJSDocTypeLikeTagCreateFunction(350 /* JSDocTypeTag */); + return getJSDocTypeLikeTagCreateFunction(351 /* JSDocTypeTag */); }, get updateJSDocTypeTag() { - return getJSDocTypeLikeTagUpdateFunction(350 /* JSDocTypeTag */); + return getJSDocTypeLikeTagUpdateFunction(351 /* JSDocTypeTag */); }, get createJSDocReturnTag() { - return getJSDocTypeLikeTagCreateFunction(348 /* JSDocReturnTag */); + return getJSDocTypeLikeTagCreateFunction(349 /* JSDocReturnTag */); }, get updateJSDocReturnTag() { - return getJSDocTypeLikeTagUpdateFunction(348 /* JSDocReturnTag */); + return getJSDocTypeLikeTagUpdateFunction(349 /* JSDocReturnTag */); }, get createJSDocThisTag() { - return getJSDocTypeLikeTagCreateFunction(349 /* JSDocThisTag */); + return getJSDocTypeLikeTagCreateFunction(350 /* JSDocThisTag */); }, get updateJSDocThisTag() { - return getJSDocTypeLikeTagUpdateFunction(349 /* JSDocThisTag */); + return getJSDocTypeLikeTagUpdateFunction(350 /* JSDocThisTag */); }, get createJSDocAuthorTag() { - return getJSDocSimpleTagCreateFunction(336 /* JSDocAuthorTag */); + return getJSDocSimpleTagCreateFunction(337 /* JSDocAuthorTag */); }, get updateJSDocAuthorTag() { - return getJSDocSimpleTagUpdateFunction(336 /* JSDocAuthorTag */); + return getJSDocSimpleTagUpdateFunction(337 /* JSDocAuthorTag */); }, get createJSDocClassTag() { - return getJSDocSimpleTagCreateFunction(338 /* JSDocClassTag */); + return getJSDocSimpleTagCreateFunction(339 /* JSDocClassTag */); }, get updateJSDocClassTag() { - return getJSDocSimpleTagUpdateFunction(338 /* JSDocClassTag */); + return getJSDocSimpleTagUpdateFunction(339 /* JSDocClassTag */); }, get createJSDocPublicTag() { - return getJSDocSimpleTagCreateFunction(339 /* JSDocPublicTag */); + return getJSDocSimpleTagCreateFunction(340 /* JSDocPublicTag */); }, get updateJSDocPublicTag() { - return getJSDocSimpleTagUpdateFunction(339 /* JSDocPublicTag */); + return getJSDocSimpleTagUpdateFunction(340 /* JSDocPublicTag */); }, get createJSDocPrivateTag() { - return getJSDocSimpleTagCreateFunction(340 /* JSDocPrivateTag */); + return getJSDocSimpleTagCreateFunction(341 /* JSDocPrivateTag */); }, get updateJSDocPrivateTag() { - return getJSDocSimpleTagUpdateFunction(340 /* JSDocPrivateTag */); + return getJSDocSimpleTagUpdateFunction(341 /* JSDocPrivateTag */); }, get createJSDocProtectedTag() { - return getJSDocSimpleTagCreateFunction(341 /* JSDocProtectedTag */); + return getJSDocSimpleTagCreateFunction(342 /* JSDocProtectedTag */); }, get updateJSDocProtectedTag() { - return getJSDocSimpleTagUpdateFunction(341 /* JSDocProtectedTag */); + return getJSDocSimpleTagUpdateFunction(342 /* JSDocProtectedTag */); }, get createJSDocReadonlyTag() { - return getJSDocSimpleTagCreateFunction(342 /* JSDocReadonlyTag */); + return getJSDocSimpleTagCreateFunction(343 /* JSDocReadonlyTag */); }, get updateJSDocReadonlyTag() { - return getJSDocSimpleTagUpdateFunction(342 /* JSDocReadonlyTag */); + return getJSDocSimpleTagUpdateFunction(343 /* JSDocReadonlyTag */); }, get createJSDocOverrideTag() { - return getJSDocSimpleTagCreateFunction(343 /* JSDocOverrideTag */); + return getJSDocSimpleTagCreateFunction(344 /* JSDocOverrideTag */); }, get updateJSDocOverrideTag() { - return getJSDocSimpleTagUpdateFunction(343 /* JSDocOverrideTag */); + return getJSDocSimpleTagUpdateFunction(344 /* JSDocOverrideTag */); }, get createJSDocDeprecatedTag() { - return getJSDocSimpleTagCreateFunction(337 /* JSDocDeprecatedTag */); + return getJSDocSimpleTagCreateFunction(338 /* JSDocDeprecatedTag */); }, get updateJSDocDeprecatedTag() { - return getJSDocSimpleTagUpdateFunction(337 /* JSDocDeprecatedTag */); + return getJSDocSimpleTagUpdateFunction(338 /* JSDocDeprecatedTag */); }, get createJSDocThrowsTag() { - return getJSDocTypeLikeTagCreateFunction(355 /* JSDocThrowsTag */); + return getJSDocTypeLikeTagCreateFunction(356 /* JSDocThrowsTag */); }, get updateJSDocThrowsTag() { - return getJSDocTypeLikeTagUpdateFunction(355 /* JSDocThrowsTag */); + return getJSDocTypeLikeTagUpdateFunction(356 /* JSDocThrowsTag */); }, get createJSDocSatisfiesTag() { - return getJSDocTypeLikeTagCreateFunction(356 /* JSDocSatisfiesTag */); + return getJSDocTypeLikeTagCreateFunction(357 /* JSDocSatisfiesTag */); }, get updateJSDocSatisfiesTag() { - return getJSDocTypeLikeTagUpdateFunction(356 /* JSDocSatisfiesTag */); + return getJSDocTypeLikeTagUpdateFunction(357 /* JSDocSatisfiesTag */); }, createJSDocEnumTag, updateJSDocEnumTag, @@ -12861,6 +12931,7 @@ function createNodeFactory(flags, baseFactory2) { createExportDefault, createExternalModuleExport, createTypeCheck, + createIsNotTypeCheck, createMethodCall, createGlobalMethodCall, createFunctionBindCall, @@ -12892,7 +12963,8 @@ function createNodeFactory(flags, baseFactory2) { ensureUseStrict, liftToBlock, mergeLexicalEnvironment, - updateModifiers + updateModifiers, + updateModifierLike }; forEach(nodeFactoryPatchers, (fn) => fn(factory2)); return factory2; @@ -13050,11 +13122,11 @@ function createNodeFactory(flags, baseFactory2) { } const node = createBaseIdentifier(escapeLeadingUnderscores(text)); if (hasExtendedUnicodeEscape) - node.flags |= 128 /* IdentifierHasExtendedUnicodeEscape */; + node.flags |= 256 /* IdentifierHasExtendedUnicodeEscape */; if (node.escapedText === "await") { node.transformFlags |= 67108864 /* ContainsPossibleTopLevelAwait */; } - if (node.flags & 128 /* IdentifierHasExtendedUnicodeEscape */) { + if (node.flags & 256 /* IdentifierHasExtendedUnicodeEscape */) { node.transformFlags |= 1024 /* ContainsES2015 */; } return node; @@ -13149,7 +13221,7 @@ function createNodeFactory(flags, baseFactory2) { return baseFactory2.createBaseTokenNode(kind); } function createToken(token) { - Debug.assert(token >= 0 /* FirstToken */ && token <= 164 /* LastToken */, "Invalid token"); + Debug.assert(token >= 0 /* FirstToken */ && token <= 165 /* LastToken */, "Invalid token"); Debug.assert(token <= 15 /* FirstTemplateToken */ || token >= 18 /* LastTemplateToken */, "Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."); Debug.assert(token <= 9 /* FirstLiteralToken */ || token >= 15 /* LastLiteralToken */, "Invalid token. Use 'createLiteralLikeNode' to create literals."); Debug.assert(token !== 80 /* Identifier */, "Invalid token. Use 'createIdentifier' to create identifiers"); @@ -13159,6 +13231,9 @@ function createNodeFactory(flags, baseFactory2) { case 134 /* AsyncKeyword */: transformFlags = 256 /* ContainsES2017 */ | 128 /* ContainsES2018 */; break; + case 160 /* UsingKeyword */: + transformFlags = 4 /* ContainsESNext */; + break; case 125 /* PublicKeyword */: case 123 /* PrivateKeyword */: case 124 /* ProtectedKeyword */: @@ -13168,12 +13243,12 @@ function createNodeFactory(flags, baseFactory2) { case 87 /* ConstKeyword */: case 133 /* AnyKeyword */: case 150 /* NumberKeyword */: - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: case 146 /* NeverKeyword */: case 151 /* ObjectKeyword */: case 103 /* InKeyword */: case 147 /* OutKeyword */: - case 163 /* OverrideKeyword */: + case 164 /* OverrideKeyword */: case 154 /* StringKeyword */: case 136 /* BooleanKeyword */: case 155 /* SymbolKeyword */: @@ -13241,7 +13316,7 @@ function createNodeFactory(flags, baseFactory2) { if (flags2 & 32 /* Static */) result.push(createModifier(126 /* StaticKeyword */)); if (flags2 & 16384 /* Override */) - result.push(createModifier(163 /* OverrideKeyword */)); + result.push(createModifier(164 /* OverrideKeyword */)); if (flags2 & 64 /* Readonly */) result.push(createModifier(148 /* ReadonlyKeyword */)); if (flags2 & 128 /* Accessor */) @@ -13255,7 +13330,7 @@ function createNodeFactory(flags, baseFactory2) { return result.length ? result : void 0; } function createQualifiedName(left, right) { - const node = createBaseNode(165 /* QualifiedName */); + const node = createBaseNode(166 /* QualifiedName */); node.left = left; node.right = asName(right); node.transformFlags |= propagateChildFlags(node.left) | propagateIdentifierNameFlags(node.right); @@ -13266,7 +13341,7 @@ function createNodeFactory(flags, baseFactory2) { return node.left !== left || node.right !== right ? update(createQualifiedName(left, right), node) : node; } function createComputedPropertyName(expression) { - const node = createBaseNode(166 /* ComputedPropertyName */); + const node = createBaseNode(167 /* ComputedPropertyName */); node.expression = parenthesizerRules().parenthesizeExpressionOfComputedPropertyName(expression); node.transformFlags |= propagateChildFlags(node.expression) | 1024 /* ContainsES2015 */ | 131072 /* ContainsComputedPropertyName */; return node; @@ -13275,7 +13350,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createComputedPropertyName(expression), node) : node; } function createTypeParameterDeclaration(modifiers, name, constraint, defaultType) { - const node = createBaseDeclaration(167 /* TypeParameter */); + const node = createBaseDeclaration(168 /* TypeParameter */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.constraint = constraint; @@ -13289,7 +13364,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.name !== name || node.constraint !== constraint || node.default !== defaultType ? update(createTypeParameterDeclaration(modifiers, name, constraint, defaultType), node) : node; } function createParameterDeclaration(modifiers, dotDotDotToken, name, questionToken, type, initializer) { - const node = createBaseDeclaration(168 /* Parameter */); + const node = createBaseDeclaration(169 /* Parameter */); node.modifiers = asNodeArray(modifiers); node.dotDotDotToken = dotDotDotToken; node.name = asName(name); @@ -13308,7 +13383,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.dotDotDotToken !== dotDotDotToken || node.name !== name || node.questionToken !== questionToken || node.type !== type || node.initializer !== initializer ? update(createParameterDeclaration(modifiers, dotDotDotToken, name, questionToken, type, initializer), node) : node; } function createDecorator(expression) { - const node = createBaseNode(169 /* Decorator */); + const node = createBaseNode(170 /* Decorator */); node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess( expression, /*optionalChain*/ @@ -13321,7 +13396,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createDecorator(expression), node) : node; } function createPropertySignature(modifiers, name, questionToken, type) { - const node = createBaseDeclaration(170 /* PropertySignature */); + const node = createBaseDeclaration(171 /* PropertySignature */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.type = type; @@ -13341,14 +13416,14 @@ function createNodeFactory(flags, baseFactory2) { return update(updated, original); } function createPropertyDeclaration(modifiers, name, questionOrExclamationToken, type, initializer) { - const node = createBaseDeclaration(171 /* PropertyDeclaration */); + const node = createBaseDeclaration(172 /* PropertyDeclaration */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.questionToken = questionOrExclamationToken && isQuestionToken(questionOrExclamationToken) ? questionOrExclamationToken : void 0; node.exclamationToken = questionOrExclamationToken && isExclamationToken(questionOrExclamationToken) ? questionOrExclamationToken : void 0; node.type = type; node.initializer = asInitializer(initializer); - const isAmbient = node.flags & 16777216 /* Ambient */ || modifiersToFlags(node.modifiers) & 2 /* Ambient */; + const isAmbient = node.flags & 33554432 /* Ambient */ || modifiersToFlags(node.modifiers) & 2 /* Ambient */; node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateNameFlags(node.name) | propagateChildFlags(node.initializer) | (isAmbient || node.questionToken || node.exclamationToken || node.type ? 1 /* ContainsTypeScript */ : 0 /* None */) | (isComputedPropertyName(node.name) || modifiersToFlags(node.modifiers) & 32 /* Static */ && node.initializer ? 8192 /* ContainsTypeScriptClassSyntax */ : 0 /* None */) | 16777216 /* ContainsClassFields */; node.jsDoc = void 0; return node; @@ -13357,7 +13432,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.name !== name || node.questionToken !== (questionOrExclamationToken !== void 0 && isQuestionToken(questionOrExclamationToken) ? questionOrExclamationToken : void 0) || node.exclamationToken !== (questionOrExclamationToken !== void 0 && isExclamationToken(questionOrExclamationToken) ? questionOrExclamationToken : void 0) || node.type !== type || node.initializer !== initializer ? update(createPropertyDeclaration(modifiers, name, questionOrExclamationToken, type, initializer), node) : node; } function createMethodSignature(modifiers, name, questionToken, typeParameters, parameters, type) { - const node = createBaseDeclaration(172 /* MethodSignature */); + const node = createBaseDeclaration(173 /* MethodSignature */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.questionToken = questionToken; @@ -13375,7 +13450,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.name !== name || node.questionToken !== questionToken || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type ? finishUpdateBaseSignatureDeclaration(createMethodSignature(modifiers, name, questionToken, typeParameters, parameters, type), node) : node; } function createMethodDeclaration(modifiers, asteriskToken, name, questionToken, typeParameters, parameters, type, body) { - const node = createBaseDeclaration(173 /* MethodDeclaration */); + const node = createBaseDeclaration(174 /* MethodDeclaration */); node.modifiers = asNodeArray(modifiers); node.asteriskToken = asteriskToken; node.name = asName(name); @@ -13412,7 +13487,7 @@ function createNodeFactory(flags, baseFactory2) { return update(updated, original); } function createClassStaticBlockDeclaration(body) { - const node = createBaseDeclaration(174 /* ClassStaticBlockDeclaration */); + const node = createBaseDeclaration(175 /* ClassStaticBlockDeclaration */); node.body = body; node.transformFlags = propagateChildFlags(body) | 16777216 /* ContainsClassFields */; node.modifiers = void 0; @@ -13433,7 +13508,7 @@ function createNodeFactory(flags, baseFactory2) { return update(updated, original); } function createConstructorDeclaration(modifiers, parameters, body) { - const node = createBaseDeclaration(175 /* Constructor */); + const node = createBaseDeclaration(176 /* Constructor */); node.modifiers = asNodeArray(modifiers); node.parameters = createNodeArray(parameters); node.body = body; @@ -13459,7 +13534,7 @@ function createNodeFactory(flags, baseFactory2) { return finishUpdateBaseSignatureDeclaration(updated, original); } function createGetAccessorDeclaration(modifiers, name, parameters, type, body) { - const node = createBaseDeclaration(176 /* GetAccessor */); + const node = createBaseDeclaration(177 /* GetAccessor */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.parameters = createNodeArray(parameters); @@ -13490,7 +13565,7 @@ function createNodeFactory(flags, baseFactory2) { return finishUpdateBaseSignatureDeclaration(updated, original); } function createSetAccessorDeclaration(modifiers, name, parameters, body) { - const node = createBaseDeclaration(177 /* SetAccessor */); + const node = createBaseDeclaration(178 /* SetAccessor */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.parameters = createNodeArray(parameters); @@ -13522,7 +13597,7 @@ function createNodeFactory(flags, baseFactory2) { return finishUpdateBaseSignatureDeclaration(updated, original); } function createCallSignature(typeParameters, parameters, type) { - const node = createBaseDeclaration(178 /* CallSignature */); + const node = createBaseDeclaration(179 /* CallSignature */); node.typeParameters = asNodeArray(typeParameters); node.parameters = asNodeArray(parameters); node.type = type; @@ -13537,7 +13612,7 @@ function createNodeFactory(flags, baseFactory2) { return node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type ? finishUpdateBaseSignatureDeclaration(createCallSignature(typeParameters, parameters, type), node) : node; } function createConstructSignature(typeParameters, parameters, type) { - const node = createBaseDeclaration(179 /* ConstructSignature */); + const node = createBaseDeclaration(180 /* ConstructSignature */); node.typeParameters = asNodeArray(typeParameters); node.parameters = asNodeArray(parameters); node.type = type; @@ -13552,7 +13627,7 @@ function createNodeFactory(flags, baseFactory2) { return node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type ? finishUpdateBaseSignatureDeclaration(createConstructSignature(typeParameters, parameters, type), node) : node; } function createIndexSignature(modifiers, parameters, type) { - const node = createBaseDeclaration(180 /* IndexSignature */); + const node = createBaseDeclaration(181 /* IndexSignature */); node.modifiers = asNodeArray(modifiers); node.parameters = asNodeArray(parameters); node.type = type; @@ -13567,7 +13642,7 @@ function createNodeFactory(flags, baseFactory2) { return node.parameters !== parameters || node.type !== type || node.modifiers !== modifiers ? finishUpdateBaseSignatureDeclaration(createIndexSignature(modifiers, parameters, type), node) : node; } function createTemplateLiteralTypeSpan(type, literal) { - const node = createBaseNode(203 /* TemplateLiteralTypeSpan */); + const node = createBaseNode(204 /* TemplateLiteralTypeSpan */); node.type = type; node.literal = literal; node.transformFlags = 1 /* ContainsTypeScript */; @@ -13580,7 +13655,7 @@ function createNodeFactory(flags, baseFactory2) { return createToken(kind); } function createTypePredicateNode(assertsModifier, parameterName, type) { - const node = createBaseNode(181 /* TypePredicate */); + const node = createBaseNode(182 /* TypePredicate */); node.assertsModifier = assertsModifier; node.parameterName = asName(parameterName); node.type = type; @@ -13591,7 +13666,7 @@ function createNodeFactory(flags, baseFactory2) { return node.assertsModifier !== assertsModifier || node.parameterName !== parameterName || node.type !== type ? update(createTypePredicateNode(assertsModifier, parameterName, type), node) : node; } function createTypeReferenceNode(typeName, typeArguments) { - const node = createBaseNode(182 /* TypeReference */); + const node = createBaseNode(183 /* TypeReference */); node.typeName = asName(typeName); node.typeArguments = typeArguments && parenthesizerRules().parenthesizeTypeArguments(createNodeArray(typeArguments)); node.transformFlags = 1 /* ContainsTypeScript */; @@ -13601,7 +13676,7 @@ function createNodeFactory(flags, baseFactory2) { return node.typeName !== typeName || node.typeArguments !== typeArguments ? update(createTypeReferenceNode(typeName, typeArguments), node) : node; } function createFunctionTypeNode(typeParameters, parameters, type) { - const node = createBaseDeclaration(183 /* FunctionType */); + const node = createBaseDeclaration(184 /* FunctionType */); node.typeParameters = asNodeArray(typeParameters); node.parameters = asNodeArray(parameters); node.type = type; @@ -13626,7 +13701,7 @@ function createNodeFactory(flags, baseFactory2) { return args.length === 4 ? createConstructorTypeNode1(...args) : args.length === 3 ? createConstructorTypeNode2(...args) : Debug.fail("Incorrect number of arguments specified."); } function createConstructorTypeNode1(modifiers, typeParameters, parameters, type) { - const node = createBaseDeclaration(184 /* ConstructorType */); + const node = createBaseDeclaration(185 /* ConstructorType */); node.modifiers = asNodeArray(modifiers); node.typeParameters = asNodeArray(typeParameters); node.parameters = asNodeArray(parameters); @@ -13657,7 +13732,7 @@ function createNodeFactory(flags, baseFactory2) { return updateConstructorTypeNode1(node, node.modifiers, typeParameters, parameters, type); } function createTypeQueryNode(exprName, typeArguments) { - const node = createBaseNode(185 /* TypeQuery */); + const node = createBaseNode(186 /* TypeQuery */); node.exprName = exprName; node.typeArguments = typeArguments && parenthesizerRules().parenthesizeTypeArguments(typeArguments); node.transformFlags = 1 /* ContainsTypeScript */; @@ -13667,7 +13742,7 @@ function createNodeFactory(flags, baseFactory2) { return node.exprName !== exprName || node.typeArguments !== typeArguments ? update(createTypeQueryNode(exprName, typeArguments), node) : node; } function createTypeLiteralNode(members) { - const node = createBaseDeclaration(186 /* TypeLiteral */); + const node = createBaseDeclaration(187 /* TypeLiteral */); node.members = createNodeArray(members); node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -13676,7 +13751,7 @@ function createNodeFactory(flags, baseFactory2) { return node.members !== members ? update(createTypeLiteralNode(members), node) : node; } function createArrayTypeNode(elementType) { - const node = createBaseNode(187 /* ArrayType */); + const node = createBaseNode(188 /* ArrayType */); node.elementType = parenthesizerRules().parenthesizeNonArrayTypeOfPostfixType(elementType); node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -13685,7 +13760,7 @@ function createNodeFactory(flags, baseFactory2) { return node.elementType !== elementType ? update(createArrayTypeNode(elementType), node) : node; } function createTupleTypeNode(elements) { - const node = createBaseNode(188 /* TupleType */); + const node = createBaseNode(189 /* TupleType */); node.elements = createNodeArray(parenthesizerRules().parenthesizeElementTypesOfTupleType(elements)); node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -13694,7 +13769,7 @@ function createNodeFactory(flags, baseFactory2) { return node.elements !== elements ? update(createTupleTypeNode(elements), node) : node; } function createNamedTupleMember(dotDotDotToken, name, questionToken, type) { - const node = createBaseDeclaration(201 /* NamedTupleMember */); + const node = createBaseDeclaration(202 /* NamedTupleMember */); node.dotDotDotToken = dotDotDotToken; node.name = name; node.questionToken = questionToken; @@ -13707,7 +13782,7 @@ function createNodeFactory(flags, baseFactory2) { return node.dotDotDotToken !== dotDotDotToken || node.name !== name || node.questionToken !== questionToken || node.type !== type ? update(createNamedTupleMember(dotDotDotToken, name, questionToken, type), node) : node; } function createOptionalTypeNode(type) { - const node = createBaseNode(189 /* OptionalType */); + const node = createBaseNode(190 /* OptionalType */); node.type = parenthesizerRules().parenthesizeTypeOfOptionalType(type); node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -13716,7 +13791,7 @@ function createNodeFactory(flags, baseFactory2) { return node.type !== type ? update(createOptionalTypeNode(type), node) : node; } function createRestTypeNode(type) { - const node = createBaseNode(190 /* RestType */); + const node = createBaseNode(191 /* RestType */); node.type = type; node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -13734,19 +13809,19 @@ function createNodeFactory(flags, baseFactory2) { return node.types !== types ? update(createUnionOrIntersectionTypeNode(node.kind, types, parenthesize), node) : node; } function createUnionTypeNode(types) { - return createUnionOrIntersectionTypeNode(191 /* UnionType */, types, parenthesizerRules().parenthesizeConstituentTypesOfUnionType); + return createUnionOrIntersectionTypeNode(192 /* UnionType */, types, parenthesizerRules().parenthesizeConstituentTypesOfUnionType); } function updateUnionTypeNode(node, types) { return updateUnionOrIntersectionTypeNode(node, types, parenthesizerRules().parenthesizeConstituentTypesOfUnionType); } function createIntersectionTypeNode(types) { - return createUnionOrIntersectionTypeNode(192 /* IntersectionType */, types, parenthesizerRules().parenthesizeConstituentTypesOfIntersectionType); + return createUnionOrIntersectionTypeNode(193 /* IntersectionType */, types, parenthesizerRules().parenthesizeConstituentTypesOfIntersectionType); } function updateIntersectionTypeNode(node, types) { return updateUnionOrIntersectionTypeNode(node, types, parenthesizerRules().parenthesizeConstituentTypesOfIntersectionType); } function createConditionalTypeNode(checkType, extendsType, trueType, falseType) { - const node = createBaseNode(193 /* ConditionalType */); + const node = createBaseNode(194 /* ConditionalType */); node.checkType = parenthesizerRules().parenthesizeCheckTypeOfConditionalType(checkType); node.extendsType = parenthesizerRules().parenthesizeExtendsTypeOfConditionalType(extendsType); node.trueType = trueType; @@ -13760,7 +13835,7 @@ function createNodeFactory(flags, baseFactory2) { return node.checkType !== checkType || node.extendsType !== extendsType || node.trueType !== trueType || node.falseType !== falseType ? update(createConditionalTypeNode(checkType, extendsType, trueType, falseType), node) : node; } function createInferTypeNode(typeParameter) { - const node = createBaseNode(194 /* InferType */); + const node = createBaseNode(195 /* InferType */); node.typeParameter = typeParameter; node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -13769,7 +13844,7 @@ function createNodeFactory(flags, baseFactory2) { return node.typeParameter !== typeParameter ? update(createInferTypeNode(typeParameter), node) : node; } function createTemplateLiteralType(head, templateSpans) { - const node = createBaseNode(202 /* TemplateLiteralType */); + const node = createBaseNode(203 /* TemplateLiteralType */); node.head = head; node.templateSpans = createNodeArray(templateSpans); node.transformFlags = 1 /* ContainsTypeScript */; @@ -13779,7 +13854,7 @@ function createNodeFactory(flags, baseFactory2) { return node.head !== head || node.templateSpans !== templateSpans ? update(createTemplateLiteralType(head, templateSpans), node) : node; } function createImportTypeNode(argument, assertions, qualifier, typeArguments, isTypeOf = false) { - const node = createBaseNode(204 /* ImportType */); + const node = createBaseNode(205 /* ImportType */); node.argument = argument; node.assertions = assertions; node.qualifier = qualifier; @@ -13792,7 +13867,7 @@ function createNodeFactory(flags, baseFactory2) { return node.argument !== argument || node.assertions !== assertions || node.qualifier !== qualifier || node.typeArguments !== typeArguments || node.isTypeOf !== isTypeOf ? update(createImportTypeNode(argument, assertions, qualifier, typeArguments, isTypeOf), node) : node; } function createParenthesizedType(type) { - const node = createBaseNode(195 /* ParenthesizedType */); + const node = createBaseNode(196 /* ParenthesizedType */); node.type = type; node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -13801,12 +13876,12 @@ function createNodeFactory(flags, baseFactory2) { return node.type !== type ? update(createParenthesizedType(type), node) : node; } function createThisTypeNode() { - const node = createBaseNode(196 /* ThisType */); + const node = createBaseNode(197 /* ThisType */); node.transformFlags = 1 /* ContainsTypeScript */; return node; } function createTypeOperatorNode(operator, type) { - const node = createBaseNode(197 /* TypeOperator */); + const node = createBaseNode(198 /* TypeOperator */); node.operator = operator; node.type = operator === 148 /* ReadonlyKeyword */ ? parenthesizerRules().parenthesizeOperandOfReadonlyTypeOperator(type) : parenthesizerRules().parenthesizeOperandOfTypeOperator(type); node.transformFlags = 1 /* ContainsTypeScript */; @@ -13816,7 +13891,7 @@ function createNodeFactory(flags, baseFactory2) { return node.type !== type ? update(createTypeOperatorNode(node.operator, type), node) : node; } function createIndexedAccessTypeNode(objectType, indexType) { - const node = createBaseNode(198 /* IndexedAccessType */); + const node = createBaseNode(199 /* IndexedAccessType */); node.objectType = parenthesizerRules().parenthesizeNonArrayTypeOfPostfixType(objectType); node.indexType = indexType; node.transformFlags = 1 /* ContainsTypeScript */; @@ -13826,7 +13901,7 @@ function createNodeFactory(flags, baseFactory2) { return node.objectType !== objectType || node.indexType !== indexType ? update(createIndexedAccessTypeNode(objectType, indexType), node) : node; } function createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type, members) { - const node = createBaseDeclaration(199 /* MappedType */); + const node = createBaseDeclaration(200 /* MappedType */); node.readonlyToken = readonlyToken; node.typeParameter = typeParameter; node.nameType = nameType; @@ -13842,7 +13917,7 @@ function createNodeFactory(flags, baseFactory2) { return node.readonlyToken !== readonlyToken || node.typeParameter !== typeParameter || node.nameType !== nameType || node.questionToken !== questionToken || node.type !== type || node.members !== members ? update(createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type, members), node) : node; } function createLiteralTypeNode(literal) { - const node = createBaseNode(200 /* LiteralType */); + const node = createBaseNode(201 /* LiteralType */); node.literal = literal; node.transformFlags = 1 /* ContainsTypeScript */; return node; @@ -13851,7 +13926,7 @@ function createNodeFactory(flags, baseFactory2) { return node.literal !== literal ? update(createLiteralTypeNode(literal), node) : node; } function createObjectBindingPattern(elements) { - const node = createBaseNode(205 /* ObjectBindingPattern */); + const node = createBaseNode(206 /* ObjectBindingPattern */); node.elements = createNodeArray(elements); node.transformFlags |= propagateChildrenFlags(node.elements) | 1024 /* ContainsES2015 */ | 524288 /* ContainsBindingPattern */; if (node.transformFlags & 32768 /* ContainsRestOrSpread */) { @@ -13863,7 +13938,7 @@ function createNodeFactory(flags, baseFactory2) { return node.elements !== elements ? update(createObjectBindingPattern(elements), node) : node; } function createArrayBindingPattern(elements) { - const node = createBaseNode(206 /* ArrayBindingPattern */); + const node = createBaseNode(207 /* ArrayBindingPattern */); node.elements = createNodeArray(elements); node.transformFlags |= propagateChildrenFlags(node.elements) | 1024 /* ContainsES2015 */ | 524288 /* ContainsBindingPattern */; return node; @@ -13872,7 +13947,7 @@ function createNodeFactory(flags, baseFactory2) { return node.elements !== elements ? update(createArrayBindingPattern(elements), node) : node; } function createBindingElement(dotDotDotToken, propertyName, name, initializer) { - const node = createBaseDeclaration(207 /* BindingElement */); + const node = createBaseDeclaration(208 /* BindingElement */); node.dotDotDotToken = dotDotDotToken; node.propertyName = asName(propertyName); node.name = asName(name); @@ -13885,7 +13960,7 @@ function createNodeFactory(flags, baseFactory2) { return node.propertyName !== propertyName || node.dotDotDotToken !== dotDotDotToken || node.name !== name || node.initializer !== initializer ? update(createBindingElement(dotDotDotToken, propertyName, name, initializer), node) : node; } function createArrayLiteralExpression(elements, multiLine) { - const node = createBaseNode(208 /* ArrayLiteralExpression */); + const node = createBaseNode(209 /* ArrayLiteralExpression */); const lastElement = elements && lastOrUndefined(elements); const elementsArray = createNodeArray(elements, lastElement && isOmittedExpression(lastElement) ? true : void 0); node.elements = parenthesizerRules().parenthesizeExpressionsOfCommaDelimitedList(elementsArray); @@ -13897,7 +13972,7 @@ function createNodeFactory(flags, baseFactory2) { return node.elements !== elements ? update(createArrayLiteralExpression(elements, node.multiLine), node) : node; } function createObjectLiteralExpression(properties, multiLine) { - const node = createBaseDeclaration(209 /* ObjectLiteralExpression */); + const node = createBaseDeclaration(210 /* ObjectLiteralExpression */); node.properties = createNodeArray(properties); node.multiLine = multiLine; node.transformFlags |= propagateChildrenFlags(node.properties); @@ -13908,7 +13983,7 @@ function createNodeFactory(flags, baseFactory2) { return node.properties !== properties ? update(createObjectLiteralExpression(properties, node.multiLine), node) : node; } function createBasePropertyAccessExpression(expression, questionDotToken, name) { - const node = createBaseDeclaration(210 /* PropertyAccessExpression */); + const node = createBaseDeclaration(211 /* PropertyAccessExpression */); node.expression = expression; node.questionDotToken = questionDotToken; node.name = name; @@ -13949,16 +14024,16 @@ function createNodeFactory(flags, baseFactory2) { questionDotToken, asName(name) ); - node.flags |= 32 /* OptionalChain */; + node.flags |= 64 /* OptionalChain */; node.transformFlags |= 32 /* ContainsES2020 */; return node; } function updatePropertyAccessChain(node, expression, questionDotToken, name) { - Debug.assert(!!(node.flags & 32 /* OptionalChain */), "Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."); + Debug.assert(!!(node.flags & 64 /* OptionalChain */), "Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."); return node.expression !== expression || node.questionDotToken !== questionDotToken || node.name !== name ? update(createPropertyAccessChain(expression, questionDotToken, name), node) : node; } function createBaseElementAccessExpression(expression, questionDotToken, argumentExpression) { - const node = createBaseDeclaration(211 /* ElementAccessExpression */); + const node = createBaseDeclaration(212 /* ElementAccessExpression */); node.expression = expression; node.questionDotToken = questionDotToken; node.argumentExpression = argumentExpression; @@ -13999,16 +14074,16 @@ function createNodeFactory(flags, baseFactory2) { questionDotToken, asExpression(index) ); - node.flags |= 32 /* OptionalChain */; + node.flags |= 64 /* OptionalChain */; node.transformFlags |= 32 /* ContainsES2020 */; return node; } function updateElementAccessChain(node, expression, questionDotToken, argumentExpression) { - Debug.assert(!!(node.flags & 32 /* OptionalChain */), "Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."); + Debug.assert(!!(node.flags & 64 /* OptionalChain */), "Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."); return node.expression !== expression || node.questionDotToken !== questionDotToken || node.argumentExpression !== argumentExpression ? update(createElementAccessChain(expression, questionDotToken, argumentExpression), node) : node; } function createBaseCallExpression(expression, questionDotToken, typeArguments, argumentsArray) { - const node = createBaseDeclaration(212 /* CallExpression */); + const node = createBaseDeclaration(213 /* CallExpression */); node.expression = expression; node.questionDotToken = questionDotToken; node.typeArguments = typeArguments; @@ -14056,16 +14131,16 @@ function createNodeFactory(flags, baseFactory2) { asNodeArray(typeArguments), parenthesizerRules().parenthesizeExpressionsOfCommaDelimitedList(createNodeArray(argumentsArray)) ); - node.flags |= 32 /* OptionalChain */; + node.flags |= 64 /* OptionalChain */; node.transformFlags |= 32 /* ContainsES2020 */; return node; } function updateCallChain(node, expression, questionDotToken, typeArguments, argumentsArray) { - Debug.assert(!!(node.flags & 32 /* OptionalChain */), "Cannot update a CallExpression using updateCallChain. Use updateCall instead."); + Debug.assert(!!(node.flags & 64 /* OptionalChain */), "Cannot update a CallExpression using updateCallChain. Use updateCall instead."); return node.expression !== expression || node.questionDotToken !== questionDotToken || node.typeArguments !== typeArguments || node.arguments !== argumentsArray ? update(createCallChain(expression, questionDotToken, typeArguments, argumentsArray), node) : node; } function createNewExpression(expression, typeArguments, argumentsArray) { - const node = createBaseDeclaration(213 /* NewExpression */); + const node = createBaseDeclaration(214 /* NewExpression */); node.expression = parenthesizerRules().parenthesizeExpressionOfNew(expression); node.typeArguments = asNodeArray(typeArguments); node.arguments = argumentsArray ? parenthesizerRules().parenthesizeExpressionsOfCommaDelimitedList(argumentsArray) : void 0; @@ -14079,7 +14154,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression || node.typeArguments !== typeArguments || node.arguments !== argumentsArray ? update(createNewExpression(expression, typeArguments, argumentsArray), node) : node; } function createTaggedTemplateExpression(tag, typeArguments, template) { - const node = createBaseNode(214 /* TaggedTemplateExpression */); + const node = createBaseNode(215 /* TaggedTemplateExpression */); node.tag = parenthesizerRules().parenthesizeLeftSideOfAccess( tag, /*optionalChain*/ @@ -14100,7 +14175,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tag !== tag || node.typeArguments !== typeArguments || node.template !== template ? update(createTaggedTemplateExpression(tag, typeArguments, template), node) : node; } function createTypeAssertion(type, expression) { - const node = createBaseNode(215 /* TypeAssertionExpression */); + const node = createBaseNode(216 /* TypeAssertionExpression */); node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); node.type = type; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.type) | 1 /* ContainsTypeScript */; @@ -14110,7 +14185,7 @@ function createNodeFactory(flags, baseFactory2) { return node.type !== type || node.expression !== expression ? update(createTypeAssertion(type, expression), node) : node; } function createParenthesizedExpression(expression) { - const node = createBaseNode(216 /* ParenthesizedExpression */); + const node = createBaseNode(217 /* ParenthesizedExpression */); node.expression = expression; node.transformFlags = propagateChildFlags(node.expression); node.jsDoc = void 0; @@ -14120,7 +14195,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createParenthesizedExpression(expression), node) : node; } function createFunctionExpression(modifiers, asteriskToken, name, typeParameters, parameters, type, body) { - const node = createBaseDeclaration(217 /* FunctionExpression */); + const node = createBaseDeclaration(218 /* FunctionExpression */); node.modifiers = asNodeArray(modifiers); node.asteriskToken = asteriskToken; node.name = asName(name); @@ -14145,7 +14220,7 @@ function createNodeFactory(flags, baseFactory2) { return node.name !== name || node.modifiers !== modifiers || node.asteriskToken !== asteriskToken || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type || node.body !== body ? finishUpdateBaseSignatureDeclaration(createFunctionExpression(modifiers, asteriskToken, name, typeParameters, parameters, type, body), node) : node; } function createArrowFunction(modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body) { - const node = createBaseDeclaration(218 /* ArrowFunction */); + const node = createBaseDeclaration(219 /* ArrowFunction */); node.modifiers = asNodeArray(modifiers); node.typeParameters = asNodeArray(typeParameters); node.parameters = createNodeArray(parameters); @@ -14167,7 +14242,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type || node.equalsGreaterThanToken !== equalsGreaterThanToken || node.body !== body ? finishUpdateBaseSignatureDeclaration(createArrowFunction(modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body), node) : node; } function createDeleteExpression(expression) { - const node = createBaseNode(219 /* DeleteExpression */); + const node = createBaseNode(220 /* DeleteExpression */); node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); node.transformFlags |= propagateChildFlags(node.expression); return node; @@ -14176,7 +14251,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createDeleteExpression(expression), node) : node; } function createTypeOfExpression(expression) { - const node = createBaseNode(220 /* TypeOfExpression */); + const node = createBaseNode(221 /* TypeOfExpression */); node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); node.transformFlags |= propagateChildFlags(node.expression); return node; @@ -14185,7 +14260,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createTypeOfExpression(expression), node) : node; } function createVoidExpression(expression) { - const node = createBaseNode(221 /* VoidExpression */); + const node = createBaseNode(222 /* VoidExpression */); node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); node.transformFlags |= propagateChildFlags(node.expression); return node; @@ -14194,7 +14269,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createVoidExpression(expression), node) : node; } function createAwaitExpression(expression) { - const node = createBaseNode(222 /* AwaitExpression */); + const node = createBaseNode(223 /* AwaitExpression */); node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); node.transformFlags |= propagateChildFlags(node.expression) | 256 /* ContainsES2017 */ | 128 /* ContainsES2018 */ | 2097152 /* ContainsAwait */; return node; @@ -14203,7 +14278,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createAwaitExpression(expression), node) : node; } function createPrefixUnaryExpression(operator, operand) { - const node = createBaseNode(223 /* PrefixUnaryExpression */); + const node = createBaseNode(224 /* PrefixUnaryExpression */); node.operator = operator; node.operand = parenthesizerRules().parenthesizeOperandOfPrefixUnary(operand); node.transformFlags |= propagateChildFlags(node.operand); @@ -14216,7 +14291,7 @@ function createNodeFactory(flags, baseFactory2) { return node.operand !== operand ? update(createPrefixUnaryExpression(node.operator, operand), node) : node; } function createPostfixUnaryExpression(operand, operator) { - const node = createBaseNode(224 /* PostfixUnaryExpression */); + const node = createBaseNode(225 /* PostfixUnaryExpression */); node.operator = operator; node.operand = parenthesizerRules().parenthesizeOperandOfPostfixUnary(operand); node.transformFlags |= propagateChildFlags(node.operand); @@ -14229,7 +14304,7 @@ function createNodeFactory(flags, baseFactory2) { return node.operand !== operand ? update(createPostfixUnaryExpression(operand, node.operator), node) : node; } function createBinaryExpression(left, operator, right) { - const node = createBaseDeclaration(225 /* BinaryExpression */); + const node = createBaseDeclaration(226 /* BinaryExpression */); const operatorToken = asToken(operator); const operatorKind = operatorToken.kind; node.left = parenthesizerRules().parenthesizeLeftSideOfBinary(operatorKind, left); @@ -14262,7 +14337,7 @@ function createNodeFactory(flags, baseFactory2) { return node.left !== left || node.operatorToken !== operator || node.right !== right ? update(createBinaryExpression(left, operator, right), node) : node; } function createConditionalExpression(condition, questionToken, whenTrue, colonToken, whenFalse) { - const node = createBaseNode(226 /* ConditionalExpression */); + const node = createBaseNode(227 /* ConditionalExpression */); node.condition = parenthesizerRules().parenthesizeConditionOfConditionalExpression(condition); node.questionToken = questionToken ?? createToken(58 /* QuestionToken */); node.whenTrue = parenthesizerRules().parenthesizeBranchOfConditionalExpression(whenTrue); @@ -14275,7 +14350,7 @@ function createNodeFactory(flags, baseFactory2) { return node.condition !== condition || node.questionToken !== questionToken || node.whenTrue !== whenTrue || node.colonToken !== colonToken || node.whenFalse !== whenFalse ? update(createConditionalExpression(condition, questionToken, whenTrue, colonToken, whenFalse), node) : node; } function createTemplateExpression(head, templateSpans) { - const node = createBaseNode(227 /* TemplateExpression */); + const node = createBaseNode(228 /* TemplateExpression */); node.head = head; node.templateSpans = createNodeArray(templateSpans); node.transformFlags |= propagateChildFlags(node.head) | propagateChildrenFlags(node.templateSpans) | 1024 /* ContainsES2015 */; @@ -14350,7 +14425,7 @@ function createNodeFactory(flags, baseFactory2) { } function createYieldExpression(asteriskToken, expression) { Debug.assert(!asteriskToken || !!expression, "A `YieldExpression` with an asteriskToken must have an expression."); - const node = createBaseNode(228 /* YieldExpression */); + const node = createBaseNode(229 /* YieldExpression */); node.expression = expression && parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); node.asteriskToken = asteriskToken; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.asteriskToken) | 1024 /* ContainsES2015 */ | 128 /* ContainsES2018 */ | 1048576 /* ContainsYield */; @@ -14360,7 +14435,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression || node.asteriskToken !== asteriskToken ? update(createYieldExpression(asteriskToken, expression), node) : node; } function createSpreadElement(expression) { - const node = createBaseNode(229 /* SpreadElement */); + const node = createBaseNode(230 /* SpreadElement */); node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); node.transformFlags |= propagateChildFlags(node.expression) | 1024 /* ContainsES2015 */ | 32768 /* ContainsRestOrSpread */; return node; @@ -14369,7 +14444,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createSpreadElement(expression), node) : node; } function createClassExpression(modifiers, name, typeParameters, heritageClauses, members) { - const node = createBaseDeclaration(230 /* ClassExpression */); + const node = createBaseDeclaration(231 /* ClassExpression */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.typeParameters = asNodeArray(typeParameters); @@ -14383,10 +14458,10 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.heritageClauses !== heritageClauses || node.members !== members ? update(createClassExpression(modifiers, name, typeParameters, heritageClauses, members), node) : node; } function createOmittedExpression() { - return createBaseNode(231 /* OmittedExpression */); + return createBaseNode(232 /* OmittedExpression */); } function createExpressionWithTypeArguments(expression, typeArguments) { - const node = createBaseNode(232 /* ExpressionWithTypeArguments */); + const node = createBaseNode(233 /* ExpressionWithTypeArguments */); node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess( expression, /*optionalChain*/ @@ -14400,7 +14475,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression || node.typeArguments !== typeArguments ? update(createExpressionWithTypeArguments(expression, typeArguments), node) : node; } function createAsExpression(expression, type) { - const node = createBaseNode(233 /* AsExpression */); + const node = createBaseNode(234 /* AsExpression */); node.expression = expression; node.type = type; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.type) | 1 /* ContainsTypeScript */; @@ -14410,7 +14485,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression || node.type !== type ? update(createAsExpression(expression, type), node) : node; } function createNonNullExpression(expression) { - const node = createBaseNode(234 /* NonNullExpression */); + const node = createBaseNode(235 /* NonNullExpression */); node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess( expression, /*optionalChain*/ @@ -14426,7 +14501,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createNonNullExpression(expression), node) : node; } function createSatisfiesExpression(expression, type) { - const node = createBaseNode(237 /* SatisfiesExpression */); + const node = createBaseNode(238 /* SatisfiesExpression */); node.expression = expression; node.type = type; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.type) | 1 /* ContainsTypeScript */; @@ -14436,8 +14511,8 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression || node.type !== type ? update(createSatisfiesExpression(expression, type), node) : node; } function createNonNullChain(expression) { - const node = createBaseNode(234 /* NonNullExpression */); - node.flags |= 32 /* OptionalChain */; + const node = createBaseNode(235 /* NonNullExpression */); + node.flags |= 64 /* OptionalChain */; node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess( expression, /*optionalChain*/ @@ -14447,11 +14522,11 @@ function createNodeFactory(flags, baseFactory2) { return node; } function updateNonNullChain(node, expression) { - Debug.assert(!!(node.flags & 32 /* OptionalChain */), "Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."); + Debug.assert(!!(node.flags & 64 /* OptionalChain */), "Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."); return node.expression !== expression ? update(createNonNullChain(expression), node) : node; } function createMetaProperty(keywordToken, name) { - const node = createBaseNode(235 /* MetaProperty */); + const node = createBaseNode(236 /* MetaProperty */); node.keywordToken = keywordToken; node.name = name; node.transformFlags |= propagateChildFlags(node.name); @@ -14472,7 +14547,7 @@ function createNodeFactory(flags, baseFactory2) { return node.name !== name ? update(createMetaProperty(node.keywordToken, name), node) : node; } function createTemplateSpan(expression, literal) { - const node = createBaseNode(238 /* TemplateSpan */); + const node = createBaseNode(239 /* TemplateSpan */); node.expression = expression; node.literal = literal; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.literal) | 1024 /* ContainsES2015 */; @@ -14482,12 +14557,12 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression || node.literal !== literal ? update(createTemplateSpan(expression, literal), node) : node; } function createSemicolonClassElement() { - const node = createBaseNode(239 /* SemicolonClassElement */); + const node = createBaseNode(240 /* SemicolonClassElement */); node.transformFlags |= 1024 /* ContainsES2015 */; return node; } function createBlock(statements, multiLine) { - const node = createBaseNode(240 /* Block */); + const node = createBaseNode(241 /* Block */); node.statements = createNodeArray(statements); node.multiLine = multiLine; node.transformFlags |= propagateChildrenFlags(node.statements); @@ -14500,7 +14575,7 @@ function createNodeFactory(flags, baseFactory2) { return node.statements !== statements ? update(createBlock(statements, node.multiLine), node) : node; } function createVariableStatement(modifiers, declarationList) { - const node = createBaseNode(242 /* VariableStatement */); + const node = createBaseNode(243 /* VariableStatement */); node.modifiers = asNodeArray(modifiers); node.declarationList = isArray(declarationList) ? createVariableDeclarationList(declarationList) : declarationList; node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.declarationList); @@ -14515,12 +14590,12 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.declarationList !== declarationList ? update(createVariableStatement(modifiers, declarationList), node) : node; } function createEmptyStatement() { - const node = createBaseNode(241 /* EmptyStatement */); + const node = createBaseNode(242 /* EmptyStatement */); node.jsDoc = void 0; return node; } function createExpressionStatement(expression) { - const node = createBaseNode(243 /* ExpressionStatement */); + const node = createBaseNode(244 /* ExpressionStatement */); node.expression = parenthesizerRules().parenthesizeExpressionOfExpressionStatement(expression); node.transformFlags |= propagateChildFlags(node.expression); node.jsDoc = void 0; @@ -14531,7 +14606,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createExpressionStatement(expression), node) : node; } function createIfStatement(expression, thenStatement, elseStatement) { - const node = createBaseNode(244 /* IfStatement */); + const node = createBaseNode(245 /* IfStatement */); node.expression = expression; node.thenStatement = asEmbeddedStatement(thenStatement); node.elseStatement = asEmbeddedStatement(elseStatement); @@ -14544,7 +14619,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression || node.thenStatement !== thenStatement || node.elseStatement !== elseStatement ? update(createIfStatement(expression, thenStatement, elseStatement), node) : node; } function createDoStatement(statement, expression) { - const node = createBaseNode(245 /* DoStatement */); + const node = createBaseNode(246 /* DoStatement */); node.statement = asEmbeddedStatement(statement); node.expression = expression; node.transformFlags |= propagateChildFlags(node.statement) | propagateChildFlags(node.expression); @@ -14556,7 +14631,7 @@ function createNodeFactory(flags, baseFactory2) { return node.statement !== statement || node.expression !== expression ? update(createDoStatement(statement, expression), node) : node; } function createWhileStatement(expression, statement) { - const node = createBaseNode(246 /* WhileStatement */); + const node = createBaseNode(247 /* WhileStatement */); node.expression = expression; node.statement = asEmbeddedStatement(statement); node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.statement); @@ -14568,7 +14643,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression || node.statement !== statement ? update(createWhileStatement(expression, statement), node) : node; } function createForStatement(initializer, condition, incrementor, statement) { - const node = createBaseNode(247 /* ForStatement */); + const node = createBaseNode(248 /* ForStatement */); node.initializer = initializer; node.condition = condition; node.incrementor = incrementor; @@ -14584,7 +14659,7 @@ function createNodeFactory(flags, baseFactory2) { return node.initializer !== initializer || node.condition !== condition || node.incrementor !== incrementor || node.statement !== statement ? update(createForStatement(initializer, condition, incrementor, statement), node) : node; } function createForInStatement(initializer, expression, statement) { - const node = createBaseNode(248 /* ForInStatement */); + const node = createBaseNode(249 /* ForInStatement */); node.initializer = initializer; node.expression = expression; node.statement = asEmbeddedStatement(statement); @@ -14599,7 +14674,7 @@ function createNodeFactory(flags, baseFactory2) { return node.initializer !== initializer || node.expression !== expression || node.statement !== statement ? update(createForInStatement(initializer, expression, statement), node) : node; } function createForOfStatement(awaitModifier, initializer, expression, statement) { - const node = createBaseNode(249 /* ForOfStatement */); + const node = createBaseNode(250 /* ForOfStatement */); node.awaitModifier = awaitModifier; node.initializer = initializer; node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); @@ -14617,7 +14692,7 @@ function createNodeFactory(flags, baseFactory2) { return node.awaitModifier !== awaitModifier || node.initializer !== initializer || node.expression !== expression || node.statement !== statement ? update(createForOfStatement(awaitModifier, initializer, expression, statement), node) : node; } function createContinueStatement(label) { - const node = createBaseNode(250 /* ContinueStatement */); + const node = createBaseNode(251 /* ContinueStatement */); node.label = asName(label); node.transformFlags |= propagateChildFlags(node.label) | 4194304 /* ContainsHoistedDeclarationOrCompletion */; node.jsDoc = void 0; @@ -14628,7 +14703,7 @@ function createNodeFactory(flags, baseFactory2) { return node.label !== label ? update(createContinueStatement(label), node) : node; } function createBreakStatement(label) { - const node = createBaseNode(251 /* BreakStatement */); + const node = createBaseNode(252 /* BreakStatement */); node.label = asName(label); node.transformFlags |= propagateChildFlags(node.label) | 4194304 /* ContainsHoistedDeclarationOrCompletion */; node.jsDoc = void 0; @@ -14639,7 +14714,7 @@ function createNodeFactory(flags, baseFactory2) { return node.label !== label ? update(createBreakStatement(label), node) : node; } function createReturnStatement(expression) { - const node = createBaseNode(252 /* ReturnStatement */); + const node = createBaseNode(253 /* ReturnStatement */); node.expression = expression; node.transformFlags |= propagateChildFlags(node.expression) | 128 /* ContainsES2018 */ | 4194304 /* ContainsHoistedDeclarationOrCompletion */; node.jsDoc = void 0; @@ -14650,7 +14725,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createReturnStatement(expression), node) : node; } function createWithStatement(expression, statement) { - const node = createBaseNode(253 /* WithStatement */); + const node = createBaseNode(254 /* WithStatement */); node.expression = expression; node.statement = asEmbeddedStatement(statement); node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.statement); @@ -14662,7 +14737,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression || node.statement !== statement ? update(createWithStatement(expression, statement), node) : node; } function createSwitchStatement(expression, caseBlock) { - const node = createBaseNode(254 /* SwitchStatement */); + const node = createBaseNode(255 /* SwitchStatement */); node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); node.caseBlock = caseBlock; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.caseBlock); @@ -14675,7 +14750,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression || node.caseBlock !== caseBlock ? update(createSwitchStatement(expression, caseBlock), node) : node; } function createLabeledStatement(label, statement) { - const node = createBaseNode(255 /* LabeledStatement */); + const node = createBaseNode(256 /* LabeledStatement */); node.label = asName(label); node.statement = asEmbeddedStatement(statement); node.transformFlags |= propagateChildFlags(node.label) | propagateChildFlags(node.statement); @@ -14687,7 +14762,7 @@ function createNodeFactory(flags, baseFactory2) { return node.label !== label || node.statement !== statement ? update(createLabeledStatement(label, statement), node) : node; } function createThrowStatement(expression) { - const node = createBaseNode(256 /* ThrowStatement */); + const node = createBaseNode(257 /* ThrowStatement */); node.expression = expression; node.transformFlags |= propagateChildFlags(node.expression); node.jsDoc = void 0; @@ -14698,7 +14773,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createThrowStatement(expression), node) : node; } function createTryStatement(tryBlock, catchClause, finallyBlock) { - const node = createBaseNode(257 /* TryStatement */); + const node = createBaseNode(258 /* TryStatement */); node.tryBlock = tryBlock; node.catchClause = catchClause; node.finallyBlock = finallyBlock; @@ -14711,13 +14786,13 @@ function createNodeFactory(flags, baseFactory2) { return node.tryBlock !== tryBlock || node.catchClause !== catchClause || node.finallyBlock !== finallyBlock ? update(createTryStatement(tryBlock, catchClause, finallyBlock), node) : node; } function createDebuggerStatement() { - const node = createBaseNode(258 /* DebuggerStatement */); + const node = createBaseNode(259 /* DebuggerStatement */); node.jsDoc = void 0; node.flowNode = void 0; return node; } function createVariableDeclaration(name, exclamationToken, type, initializer) { - const node = createBaseDeclaration(259 /* VariableDeclaration */); + const node = createBaseDeclaration(260 /* VariableDeclaration */); node.name = asName(name); node.exclamationToken = exclamationToken; node.type = type; @@ -14730,20 +14805,23 @@ function createNodeFactory(flags, baseFactory2) { return node.name !== name || node.type !== type || node.exclamationToken !== exclamationToken || node.initializer !== initializer ? update(createVariableDeclaration(name, exclamationToken, type, initializer), node) : node; } function createVariableDeclarationList(declarations, flags2 = 0 /* None */) { - const node = createBaseNode(260 /* VariableDeclarationList */); - node.flags |= flags2 & 3 /* BlockScoped */; + const node = createBaseNode(261 /* VariableDeclarationList */); + node.flags |= flags2 & 7 /* BlockScoped */; node.declarations = createNodeArray(declarations); node.transformFlags |= propagateChildrenFlags(node.declarations) | 4194304 /* ContainsHoistedDeclarationOrCompletion */; - if (flags2 & 3 /* BlockScoped */) { + if (flags2 & 7 /* BlockScoped */) { node.transformFlags |= 1024 /* ContainsES2015 */ | 262144 /* ContainsBlockScopedBinding */; } + if (flags2 & 4 /* Using */) { + node.transformFlags |= 4 /* ContainsESNext */; + } return node; } function updateVariableDeclarationList(node, declarations) { return node.declarations !== declarations ? update(createVariableDeclarationList(declarations, node.flags), node) : node; } function createFunctionDeclaration(modifiers, asteriskToken, name, typeParameters, parameters, type, body) { - const node = createBaseDeclaration(261 /* FunctionDeclaration */); + const node = createBaseDeclaration(262 /* FunctionDeclaration */); node.modifiers = asNodeArray(modifiers); node.asteriskToken = asteriskToken; node.name = asName(name); @@ -14779,7 +14857,7 @@ function createNodeFactory(flags, baseFactory2) { return finishUpdateBaseSignatureDeclaration(updated, original); } function createClassDeclaration(modifiers, name, typeParameters, heritageClauses, members) { - const node = createBaseDeclaration(262 /* ClassDeclaration */); + const node = createBaseDeclaration(263 /* ClassDeclaration */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.typeParameters = asNodeArray(typeParameters); @@ -14800,7 +14878,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.heritageClauses !== heritageClauses || node.members !== members ? update(createClassDeclaration(modifiers, name, typeParameters, heritageClauses, members), node) : node; } function createInterfaceDeclaration(modifiers, name, typeParameters, heritageClauses, members) { - const node = createBaseDeclaration(263 /* InterfaceDeclaration */); + const node = createBaseDeclaration(264 /* InterfaceDeclaration */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.typeParameters = asNodeArray(typeParameters); @@ -14814,7 +14892,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.heritageClauses !== heritageClauses || node.members !== members ? update(createInterfaceDeclaration(modifiers, name, typeParameters, heritageClauses, members), node) : node; } function createTypeAliasDeclaration(modifiers, name, typeParameters, type) { - const node = createBaseDeclaration(264 /* TypeAliasDeclaration */); + const node = createBaseDeclaration(265 /* TypeAliasDeclaration */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.typeParameters = asNodeArray(typeParameters); @@ -14829,7 +14907,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.type !== type ? update(createTypeAliasDeclaration(modifiers, name, typeParameters, type), node) : node; } function createEnumDeclaration(modifiers, name, members) { - const node = createBaseDeclaration(265 /* EnumDeclaration */); + const node = createBaseDeclaration(266 /* EnumDeclaration */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.members = createNodeArray(members); @@ -14842,9 +14920,9 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.name !== name || node.members !== members ? update(createEnumDeclaration(modifiers, name, members), node) : node; } function createModuleDeclaration(modifiers, name, body, flags2 = 0 /* None */) { - const node = createBaseDeclaration(266 /* ModuleDeclaration */); + const node = createBaseDeclaration(267 /* ModuleDeclaration */); node.modifiers = asNodeArray(modifiers); - node.flags |= flags2 & (16 /* Namespace */ | 4 /* NestedNamespace */ | 1024 /* GlobalAugmentation */); + node.flags |= flags2 & (32 /* Namespace */ | 8 /* NestedNamespace */ | 2048 /* GlobalAugmentation */); node.name = name; node.body = body; if (modifiersToFlags(node.modifiers) & 2 /* Ambient */) { @@ -14862,7 +14940,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.name !== name || node.body !== body ? update(createModuleDeclaration(modifiers, name, body, node.flags), node) : node; } function createModuleBlock(statements) { - const node = createBaseNode(267 /* ModuleBlock */); + const node = createBaseNode(268 /* ModuleBlock */); node.statements = createNodeArray(statements); node.transformFlags |= propagateChildrenFlags(node.statements); node.jsDoc = void 0; @@ -14872,7 +14950,7 @@ function createNodeFactory(flags, baseFactory2) { return node.statements !== statements ? update(createModuleBlock(statements), node) : node; } function createCaseBlock(clauses) { - const node = createBaseNode(268 /* CaseBlock */); + const node = createBaseNode(269 /* CaseBlock */); node.clauses = createNodeArray(clauses); node.transformFlags |= propagateChildrenFlags(node.clauses); node.locals = void 0; @@ -14883,7 +14961,7 @@ function createNodeFactory(flags, baseFactory2) { return node.clauses !== clauses ? update(createCaseBlock(clauses), node) : node; } function createNamespaceExportDeclaration(name) { - const node = createBaseDeclaration(269 /* NamespaceExportDeclaration */); + const node = createBaseDeclaration(270 /* NamespaceExportDeclaration */); node.name = asName(name); node.transformFlags |= propagateIdentifierNameFlags(node.name) | 1 /* ContainsTypeScript */; node.modifiers = void 0; @@ -14900,7 +14978,7 @@ function createNodeFactory(flags, baseFactory2) { return update(updated, original); } function createImportEqualsDeclaration(modifiers, isTypeOnly, name, moduleReference) { - const node = createBaseDeclaration(270 /* ImportEqualsDeclaration */); + const node = createBaseDeclaration(271 /* ImportEqualsDeclaration */); node.modifiers = asNodeArray(modifiers); node.name = asName(name); node.isTypeOnly = isTypeOnly; @@ -14917,7 +14995,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.isTypeOnly !== isTypeOnly || node.name !== name || node.moduleReference !== moduleReference ? update(createImportEqualsDeclaration(modifiers, isTypeOnly, name, moduleReference), node) : node; } function createImportDeclaration(modifiers, importClause, moduleSpecifier, assertClause) { - const node = createBaseNode(271 /* ImportDeclaration */); + const node = createBaseNode(272 /* ImportDeclaration */); node.modifiers = asNodeArray(modifiers); node.importClause = importClause; node.moduleSpecifier = moduleSpecifier; @@ -14931,7 +15009,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.importClause !== importClause || node.moduleSpecifier !== moduleSpecifier || node.assertClause !== assertClause ? update(createImportDeclaration(modifiers, importClause, moduleSpecifier, assertClause), node) : node; } function createImportClause(isTypeOnly, name, namedBindings) { - const node = createBaseDeclaration(272 /* ImportClause */); + const node = createBaseDeclaration(273 /* ImportClause */); node.isTypeOnly = isTypeOnly; node.name = name; node.namedBindings = namedBindings; @@ -14946,7 +15024,7 @@ function createNodeFactory(flags, baseFactory2) { return node.isTypeOnly !== isTypeOnly || node.name !== name || node.namedBindings !== namedBindings ? update(createImportClause(isTypeOnly, name, namedBindings), node) : node; } function createAssertClause(elements, multiLine) { - const node = createBaseNode(299 /* AssertClause */); + const node = createBaseNode(300 /* AssertClause */); node.elements = createNodeArray(elements); node.multiLine = multiLine; node.transformFlags |= 4 /* ContainsESNext */; @@ -14956,7 +15034,7 @@ function createNodeFactory(flags, baseFactory2) { return node.elements !== elements || node.multiLine !== multiLine ? update(createAssertClause(elements, multiLine), node) : node; } function createAssertEntry(name, value) { - const node = createBaseNode(300 /* AssertEntry */); + const node = createBaseNode(301 /* AssertEntry */); node.name = name; node.value = value; node.transformFlags |= 4 /* ContainsESNext */; @@ -14966,7 +15044,7 @@ function createNodeFactory(flags, baseFactory2) { return node.name !== name || node.value !== value ? update(createAssertEntry(name, value), node) : node; } function createImportTypeAssertionContainer(clause, multiLine) { - const node = createBaseNode(301 /* ImportTypeAssertionContainer */); + const node = createBaseNode(302 /* ImportTypeAssertionContainer */); node.assertClause = clause; node.multiLine = multiLine; return node; @@ -14975,7 +15053,7 @@ function createNodeFactory(flags, baseFactory2) { return node.assertClause !== clause || node.multiLine !== multiLine ? update(createImportTypeAssertionContainer(clause, multiLine), node) : node; } function createNamespaceImport(name) { - const node = createBaseDeclaration(273 /* NamespaceImport */); + const node = createBaseDeclaration(274 /* NamespaceImport */); node.name = name; node.transformFlags |= propagateChildFlags(node.name); node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; @@ -14985,7 +15063,7 @@ function createNodeFactory(flags, baseFactory2) { return node.name !== name ? update(createNamespaceImport(name), node) : node; } function createNamespaceExport(name) { - const node = createBaseDeclaration(279 /* NamespaceExport */); + const node = createBaseDeclaration(280 /* NamespaceExport */); node.name = name; node.transformFlags |= propagateChildFlags(node.name) | 32 /* ContainsES2020 */; node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; @@ -14995,7 +15073,7 @@ function createNodeFactory(flags, baseFactory2) { return node.name !== name ? update(createNamespaceExport(name), node) : node; } function createNamedImports(elements) { - const node = createBaseNode(274 /* NamedImports */); + const node = createBaseNode(275 /* NamedImports */); node.elements = createNodeArray(elements); node.transformFlags |= propagateChildrenFlags(node.elements); node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; @@ -15005,7 +15083,7 @@ function createNodeFactory(flags, baseFactory2) { return node.elements !== elements ? update(createNamedImports(elements), node) : node; } function createImportSpecifier(isTypeOnly, propertyName, name) { - const node = createBaseDeclaration(275 /* ImportSpecifier */); + const node = createBaseDeclaration(276 /* ImportSpecifier */); node.isTypeOnly = isTypeOnly; node.propertyName = propertyName; node.name = name; @@ -15017,7 +15095,7 @@ function createNodeFactory(flags, baseFactory2) { return node.isTypeOnly !== isTypeOnly || node.propertyName !== propertyName || node.name !== name ? update(createImportSpecifier(isTypeOnly, propertyName, name), node) : node; } function createExportAssignment(modifiers, isExportEquals, expression) { - const node = createBaseDeclaration(276 /* ExportAssignment */); + const node = createBaseDeclaration(277 /* ExportAssignment */); node.modifiers = asNodeArray(modifiers); node.isExportEquals = isExportEquals; node.expression = isExportEquals ? parenthesizerRules().parenthesizeRightSideOfBinary( @@ -15035,7 +15113,7 @@ function createNodeFactory(flags, baseFactory2) { return node.modifiers !== modifiers || node.expression !== expression ? update(createExportAssignment(modifiers, node.isExportEquals, expression), node) : node; } function createExportDeclaration(modifiers, isTypeOnly, exportClause, moduleSpecifier, assertClause) { - const node = createBaseDeclaration(277 /* ExportDeclaration */); + const node = createBaseDeclaration(278 /* ExportDeclaration */); node.modifiers = asNodeArray(modifiers); node.isTypeOnly = isTypeOnly; node.exportClause = exportClause; @@ -15058,7 +15136,7 @@ function createNodeFactory(flags, baseFactory2) { return update(updated, original); } function createNamedExports(elements) { - const node = createBaseNode(278 /* NamedExports */); + const node = createBaseNode(279 /* NamedExports */); node.elements = createNodeArray(elements); node.transformFlags |= propagateChildrenFlags(node.elements); node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; @@ -15068,7 +15146,7 @@ function createNodeFactory(flags, baseFactory2) { return node.elements !== elements ? update(createNamedExports(elements), node) : node; } function createExportSpecifier(isTypeOnly, propertyName, name) { - const node = createBaseNode(280 /* ExportSpecifier */); + const node = createBaseNode(281 /* ExportSpecifier */); node.isTypeOnly = isTypeOnly; node.propertyName = asName(propertyName); node.name = asName(name); @@ -15081,12 +15159,12 @@ function createNodeFactory(flags, baseFactory2) { return node.isTypeOnly !== isTypeOnly || node.propertyName !== propertyName || node.name !== name ? update(createExportSpecifier(isTypeOnly, propertyName, name), node) : node; } function createMissingDeclaration() { - const node = createBaseDeclaration(281 /* MissingDeclaration */); + const node = createBaseDeclaration(282 /* MissingDeclaration */); node.jsDoc = void 0; return node; } function createExternalModuleReference(expression) { - const node = createBaseNode(282 /* ExternalModuleReference */); + const node = createBaseNode(283 /* ExternalModuleReference */); node.expression = expression; node.transformFlags |= propagateChildFlags(node.expression); node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; @@ -15118,7 +15196,7 @@ function createNodeFactory(flags, baseFactory2) { return node.type !== type ? update(createJSDocUnaryTypeWorker(kind, type), node) : node; } function createJSDocFunctionType(parameters, type) { - const node = createBaseDeclaration(323 /* JSDocFunctionType */); + const node = createBaseDeclaration(324 /* JSDocFunctionType */); node.parameters = asNodeArray(parameters); node.type = type; node.transformFlags = propagateChildrenFlags(node.parameters) | (node.type ? 1 /* ContainsTypeScript */ : 0 /* None */); @@ -15132,7 +15210,7 @@ function createNodeFactory(flags, baseFactory2) { return node.parameters !== parameters || node.type !== type ? update(createJSDocFunctionType(parameters, type), node) : node; } function createJSDocTypeLiteral(propertyTags, isArrayType = false) { - const node = createBaseDeclaration(328 /* JSDocTypeLiteral */); + const node = createBaseDeclaration(329 /* JSDocTypeLiteral */); node.jsDocPropertyTags = asNodeArray(propertyTags); node.isArrayType = isArrayType; return node; @@ -15141,7 +15219,7 @@ function createNodeFactory(flags, baseFactory2) { return node.jsDocPropertyTags !== propertyTags || node.isArrayType !== isArrayType ? update(createJSDocTypeLiteral(propertyTags, isArrayType), node) : node; } function createJSDocTypeExpression(type) { - const node = createBaseNode(315 /* JSDocTypeExpression */); + const node = createBaseNode(316 /* JSDocTypeExpression */); node.type = type; return node; } @@ -15149,7 +15227,7 @@ function createNodeFactory(flags, baseFactory2) { return node.type !== type ? update(createJSDocTypeExpression(type), node) : node; } function createJSDocSignature(typeParameters, parameters, type) { - const node = createBaseDeclaration(329 /* JSDocSignature */); + const node = createBaseDeclaration(330 /* JSDocSignature */); node.typeParameters = asNodeArray(typeParameters); node.parameters = createNodeArray(parameters); node.type = type; @@ -15178,7 +15256,7 @@ function createNodeFactory(flags, baseFactory2) { return node; } function createJSDocTemplateTag(tagName, constraint, typeParameters, comment) { - const node = createBaseJSDocTag(351 /* JSDocTemplateTag */, tagName ?? createIdentifier("template"), comment); + const node = createBaseJSDocTag(352 /* JSDocTemplateTag */, tagName ?? createIdentifier("template"), comment); node.constraint = constraint; node.typeParameters = createNodeArray(typeParameters); return node; @@ -15187,7 +15265,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.constraint !== constraint || node.typeParameters !== typeParameters || node.comment !== comment ? update(createJSDocTemplateTag(tagName, constraint, typeParameters, comment), node) : node; } function createJSDocTypedefTag(tagName, typeExpression, fullName, comment) { - const node = createBaseJSDocTagDeclaration(352 /* JSDocTypedefTag */, tagName ?? createIdentifier("typedef"), comment); + const node = createBaseJSDocTagDeclaration(353 /* JSDocTypedefTag */, tagName ?? createIdentifier("typedef"), comment); node.typeExpression = typeExpression; node.fullName = fullName; node.name = getJSDocTypeAliasName(fullName); @@ -15199,7 +15277,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.typeExpression !== typeExpression || node.fullName !== fullName || node.comment !== comment ? update(createJSDocTypedefTag(tagName, typeExpression, fullName, comment), node) : node; } function createJSDocParameterTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment) { - const node = createBaseJSDocTagDeclaration(347 /* JSDocParameterTag */, tagName ?? createIdentifier("param"), comment); + const node = createBaseJSDocTagDeclaration(348 /* JSDocParameterTag */, tagName ?? createIdentifier("param"), comment); node.typeExpression = typeExpression; node.name = name; node.isNameFirst = !!isNameFirst; @@ -15210,7 +15288,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.name !== name || node.isBracketed !== isBracketed || node.typeExpression !== typeExpression || node.isNameFirst !== isNameFirst || node.comment !== comment ? update(createJSDocParameterTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment), node) : node; } function createJSDocPropertyTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment) { - const node = createBaseJSDocTagDeclaration(354 /* JSDocPropertyTag */, tagName ?? createIdentifier("prop"), comment); + const node = createBaseJSDocTagDeclaration(355 /* JSDocPropertyTag */, tagName ?? createIdentifier("prop"), comment); node.typeExpression = typeExpression; node.name = name; node.isNameFirst = !!isNameFirst; @@ -15221,7 +15299,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.name !== name || node.isBracketed !== isBracketed || node.typeExpression !== typeExpression || node.isNameFirst !== isNameFirst || node.comment !== comment ? update(createJSDocPropertyTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment), node) : node; } function createJSDocCallbackTag(tagName, typeExpression, fullName, comment) { - const node = createBaseJSDocTagDeclaration(344 /* JSDocCallbackTag */, tagName ?? createIdentifier("callback"), comment); + const node = createBaseJSDocTagDeclaration(345 /* JSDocCallbackTag */, tagName ?? createIdentifier("callback"), comment); node.typeExpression = typeExpression; node.fullName = fullName; node.name = getJSDocTypeAliasName(fullName); @@ -15233,7 +15311,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.typeExpression !== typeExpression || node.fullName !== fullName || node.comment !== comment ? update(createJSDocCallbackTag(tagName, typeExpression, fullName, comment), node) : node; } function createJSDocOverloadTag(tagName, typeExpression, comment) { - const node = createBaseJSDocTag(345 /* JSDocOverloadTag */, tagName ?? createIdentifier("overload"), comment); + const node = createBaseJSDocTag(346 /* JSDocOverloadTag */, tagName ?? createIdentifier("overload"), comment); node.typeExpression = typeExpression; return node; } @@ -15241,7 +15319,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocOverloadTag(tagName, typeExpression, comment), node) : node; } function createJSDocAugmentsTag(tagName, className, comment) { - const node = createBaseJSDocTag(334 /* JSDocAugmentsTag */, tagName ?? createIdentifier("augments"), comment); + const node = createBaseJSDocTag(335 /* JSDocAugmentsTag */, tagName ?? createIdentifier("augments"), comment); node.class = className; return node; } @@ -15249,12 +15327,12 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.class !== className || node.comment !== comment ? update(createJSDocAugmentsTag(tagName, className, comment), node) : node; } function createJSDocImplementsTag(tagName, className, comment) { - const node = createBaseJSDocTag(335 /* JSDocImplementsTag */, tagName ?? createIdentifier("implements"), comment); + const node = createBaseJSDocTag(336 /* JSDocImplementsTag */, tagName ?? createIdentifier("implements"), comment); node.class = className; return node; } function createJSDocSeeTag(tagName, name, comment) { - const node = createBaseJSDocTag(353 /* JSDocSeeTag */, tagName ?? createIdentifier("see"), comment); + const node = createBaseJSDocTag(354 /* JSDocSeeTag */, tagName ?? createIdentifier("see"), comment); node.name = name; return node; } @@ -15262,7 +15340,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.name !== name || node.comment !== comment ? update(createJSDocSeeTag(tagName, name, comment), node) : node; } function createJSDocNameReference(name) { - const node = createBaseNode(316 /* JSDocNameReference */); + const node = createBaseNode(317 /* JSDocNameReference */); node.name = name; return node; } @@ -15270,7 +15348,7 @@ function createNodeFactory(flags, baseFactory2) { return node.name !== name ? update(createJSDocNameReference(name), node) : node; } function createJSDocMemberName(left, right) { - const node = createBaseNode(317 /* JSDocMemberName */); + const node = createBaseNode(318 /* JSDocMemberName */); node.left = left; node.right = right; node.transformFlags |= propagateChildFlags(node.left) | propagateChildFlags(node.right); @@ -15280,7 +15358,7 @@ function createNodeFactory(flags, baseFactory2) { return node.left !== left || node.right !== right ? update(createJSDocMemberName(left, right), node) : node; } function createJSDocLink(name, text) { - const node = createBaseNode(330 /* JSDocLink */); + const node = createBaseNode(331 /* JSDocLink */); node.name = name; node.text = text; return node; @@ -15289,7 +15367,7 @@ function createNodeFactory(flags, baseFactory2) { return node.name !== name ? update(createJSDocLink(name, text), node) : node; } function createJSDocLinkCode(name, text) { - const node = createBaseNode(331 /* JSDocLinkCode */); + const node = createBaseNode(332 /* JSDocLinkCode */); node.name = name; node.text = text; return node; @@ -15298,7 +15376,7 @@ function createNodeFactory(flags, baseFactory2) { return node.name !== name ? update(createJSDocLinkCode(name, text), node) : node; } function createJSDocLinkPlain(name, text) { - const node = createBaseNode(332 /* JSDocLinkPlain */); + const node = createBaseNode(333 /* JSDocLinkPlain */); node.name = name; node.text = text; return node; @@ -15325,14 +15403,14 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocTypeLikeTagWorker(kind, tagName, typeExpression, comment), node) : node; } function createJSDocUnknownTag(tagName, comment) { - const node = createBaseJSDocTag(333 /* JSDocTag */, tagName, comment); + const node = createBaseJSDocTag(334 /* JSDocTag */, tagName, comment); return node; } function updateJSDocUnknownTag(node, tagName, comment) { return node.tagName !== tagName || node.comment !== comment ? update(createJSDocUnknownTag(tagName, comment), node) : node; } function createJSDocEnumTag(tagName, typeExpression, comment) { - const node = createBaseJSDocTagDeclaration(346 /* JSDocEnumTag */, tagName ?? createIdentifier(getDefaultTagNameForKind(346 /* JSDocEnumTag */)), comment); + const node = createBaseJSDocTagDeclaration(347 /* JSDocEnumTag */, tagName ?? createIdentifier(getDefaultTagNameForKind(347 /* JSDocEnumTag */)), comment); node.typeExpression = typeExpression; node.locals = void 0; node.nextContainer = void 0; @@ -15342,7 +15420,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocEnumTag(tagName, typeExpression, comment), node) : node; } function createJSDocText(text) { - const node = createBaseNode(327 /* JSDocText */); + const node = createBaseNode(328 /* JSDocText */); node.text = text; return node; } @@ -15350,7 +15428,7 @@ function createNodeFactory(flags, baseFactory2) { return node.text !== text ? update(createJSDocText(text), node) : node; } function createJSDocComment(comment, tags) { - const node = createBaseNode(326 /* JSDoc */); + const node = createBaseNode(327 /* JSDoc */); node.comment = comment; node.tags = asNodeArray(tags); return node; @@ -15359,7 +15437,7 @@ function createNodeFactory(flags, baseFactory2) { return node.comment !== comment || node.tags !== tags ? update(createJSDocComment(comment, tags), node) : node; } function createJsxElement(openingElement, children, closingElement) { - const node = createBaseNode(283 /* JsxElement */); + const node = createBaseNode(284 /* JsxElement */); node.openingElement = openingElement; node.children = createNodeArray(children); node.closingElement = closingElement; @@ -15370,7 +15448,7 @@ function createNodeFactory(flags, baseFactory2) { return node.openingElement !== openingElement || node.children !== children || node.closingElement !== closingElement ? update(createJsxElement(openingElement, children, closingElement), node) : node; } function createJsxSelfClosingElement(tagName, typeArguments, attributes) { - const node = createBaseNode(284 /* JsxSelfClosingElement */); + const node = createBaseNode(285 /* JsxSelfClosingElement */); node.tagName = tagName; node.typeArguments = asNodeArray(typeArguments); node.attributes = attributes; @@ -15384,7 +15462,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.typeArguments !== typeArguments || node.attributes !== attributes ? update(createJsxSelfClosingElement(tagName, typeArguments, attributes), node) : node; } function createJsxOpeningElement(tagName, typeArguments, attributes) { - const node = createBaseNode(285 /* JsxOpeningElement */); + const node = createBaseNode(286 /* JsxOpeningElement */); node.tagName = tagName; node.typeArguments = asNodeArray(typeArguments); node.attributes = attributes; @@ -15398,7 +15476,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName || node.typeArguments !== typeArguments || node.attributes !== attributes ? update(createJsxOpeningElement(tagName, typeArguments, attributes), node) : node; } function createJsxClosingElement(tagName) { - const node = createBaseNode(286 /* JsxClosingElement */); + const node = createBaseNode(287 /* JsxClosingElement */); node.tagName = tagName; node.transformFlags |= propagateChildFlags(node.tagName) | 2 /* ContainsJsx */; return node; @@ -15407,7 +15485,7 @@ function createNodeFactory(flags, baseFactory2) { return node.tagName !== tagName ? update(createJsxClosingElement(tagName), node) : node; } function createJsxFragment(openingFragment, children, closingFragment) { - const node = createBaseNode(287 /* JsxFragment */); + const node = createBaseNode(288 /* JsxFragment */); node.openingFragment = openingFragment; node.children = createNodeArray(children); node.closingFragment = closingFragment; @@ -15428,17 +15506,17 @@ function createNodeFactory(flags, baseFactory2) { return node.text !== text || node.containsOnlyTriviaWhiteSpaces !== containsOnlyTriviaWhiteSpaces ? update(createJsxText(text, containsOnlyTriviaWhiteSpaces), node) : node; } function createJsxOpeningFragment() { - const node = createBaseNode(288 /* JsxOpeningFragment */); + const node = createBaseNode(289 /* JsxOpeningFragment */); node.transformFlags |= 2 /* ContainsJsx */; return node; } function createJsxJsxClosingFragment() { - const node = createBaseNode(289 /* JsxClosingFragment */); + const node = createBaseNode(290 /* JsxClosingFragment */); node.transformFlags |= 2 /* ContainsJsx */; return node; } function createJsxAttribute(name, initializer) { - const node = createBaseDeclaration(290 /* JsxAttribute */); + const node = createBaseDeclaration(291 /* JsxAttribute */); node.name = name; node.initializer = initializer; node.transformFlags |= propagateChildFlags(node.name) | propagateChildFlags(node.initializer) | 2 /* ContainsJsx */; @@ -15448,7 +15526,7 @@ function createNodeFactory(flags, baseFactory2) { return node.name !== name || node.initializer !== initializer ? update(createJsxAttribute(name, initializer), node) : node; } function createJsxAttributes(properties) { - const node = createBaseDeclaration(291 /* JsxAttributes */); + const node = createBaseDeclaration(292 /* JsxAttributes */); node.properties = createNodeArray(properties); node.transformFlags |= propagateChildrenFlags(node.properties) | 2 /* ContainsJsx */; return node; @@ -15457,7 +15535,7 @@ function createNodeFactory(flags, baseFactory2) { return node.properties !== properties ? update(createJsxAttributes(properties), node) : node; } function createJsxSpreadAttribute(expression) { - const node = createBaseNode(292 /* JsxSpreadAttribute */); + const node = createBaseNode(293 /* JsxSpreadAttribute */); node.expression = expression; node.transformFlags |= propagateChildFlags(node.expression) | 2 /* ContainsJsx */; return node; @@ -15466,7 +15544,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createJsxSpreadAttribute(expression), node) : node; } function createJsxExpression(dotDotDotToken, expression) { - const node = createBaseNode(293 /* JsxExpression */); + const node = createBaseNode(294 /* JsxExpression */); node.dotDotDotToken = dotDotDotToken; node.expression = expression; node.transformFlags |= propagateChildFlags(node.dotDotDotToken) | propagateChildFlags(node.expression) | 2 /* ContainsJsx */; @@ -15476,7 +15554,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createJsxExpression(node.dotDotDotToken, expression), node) : node; } function createJsxNamespacedName(namespace, name) { - const node = createBaseNode(294 /* JsxNamespacedName */); + const node = createBaseNode(295 /* JsxNamespacedName */); node.namespace = namespace; node.name = name; node.transformFlags |= propagateChildFlags(node.namespace) | propagateChildFlags(node.name) | 2 /* ContainsJsx */; @@ -15486,7 +15564,7 @@ function createNodeFactory(flags, baseFactory2) { return node.namespace !== namespace || node.name !== name ? update(createJsxNamespacedName(namespace, name), node) : node; } function createCaseClause(expression, statements) { - const node = createBaseNode(295 /* CaseClause */); + const node = createBaseNode(296 /* CaseClause */); node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); node.statements = createNodeArray(statements); node.transformFlags |= propagateChildFlags(node.expression) | propagateChildrenFlags(node.statements); @@ -15497,7 +15575,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression || node.statements !== statements ? update(createCaseClause(expression, statements), node) : node; } function createDefaultClause(statements) { - const node = createBaseNode(296 /* DefaultClause */); + const node = createBaseNode(297 /* DefaultClause */); node.statements = createNodeArray(statements); node.transformFlags = propagateChildrenFlags(node.statements); return node; @@ -15506,7 +15584,7 @@ function createNodeFactory(flags, baseFactory2) { return node.statements !== statements ? update(createDefaultClause(statements), node) : node; } function createHeritageClause(token, types) { - const node = createBaseNode(297 /* HeritageClause */); + const node = createBaseNode(298 /* HeritageClause */); node.token = token; node.types = createNodeArray(types); node.transformFlags |= propagateChildrenFlags(node.types); @@ -15526,7 +15604,7 @@ function createNodeFactory(flags, baseFactory2) { return node.types !== types ? update(createHeritageClause(node.token, types), node) : node; } function createCatchClause(variableDeclaration, block) { - const node = createBaseNode(298 /* CatchClause */); + const node = createBaseNode(299 /* CatchClause */); node.variableDeclaration = asVariableDeclaration(variableDeclaration); node.block = block; node.transformFlags |= propagateChildFlags(node.variableDeclaration) | propagateChildFlags(node.block) | (!variableDeclaration ? 64 /* ContainsES2019 */ : 0 /* None */); @@ -15538,7 +15616,7 @@ function createNodeFactory(flags, baseFactory2) { return node.variableDeclaration !== variableDeclaration || node.block !== block ? update(createCatchClause(variableDeclaration, block), node) : node; } function createPropertyAssignment(name, initializer) { - const node = createBaseDeclaration(302 /* PropertyAssignment */); + const node = createBaseDeclaration(303 /* PropertyAssignment */); node.name = asName(name); node.initializer = parenthesizerRules().parenthesizeExpressionForDisallowedComma(initializer); node.transformFlags |= propagateNameFlags(node.name) | propagateChildFlags(node.initializer); @@ -15560,7 +15638,7 @@ function createNodeFactory(flags, baseFactory2) { return update(updated, original); } function createShorthandPropertyAssignment(name, objectAssignmentInitializer) { - const node = createBaseDeclaration(303 /* ShorthandPropertyAssignment */); + const node = createBaseDeclaration(304 /* ShorthandPropertyAssignment */); node.name = asName(name); node.objectAssignmentInitializer = objectAssignmentInitializer && parenthesizerRules().parenthesizeExpressionForDisallowedComma(objectAssignmentInitializer); node.transformFlags |= propagateIdentifierNameFlags(node.name) | propagateChildFlags(node.objectAssignmentInitializer) | 1024 /* ContainsES2015 */; @@ -15584,7 +15662,7 @@ function createNodeFactory(flags, baseFactory2) { return update(updated, original); } function createSpreadAssignment(expression) { - const node = createBaseDeclaration(304 /* SpreadAssignment */); + const node = createBaseDeclaration(305 /* SpreadAssignment */); node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); node.transformFlags |= propagateChildFlags(node.expression) | 128 /* ContainsES2018 */ | 65536 /* ContainsObjectRestOrSpread */; node.jsDoc = void 0; @@ -15594,7 +15672,7 @@ function createNodeFactory(flags, baseFactory2) { return node.expression !== expression ? update(createSpreadAssignment(expression), node) : node; } function createEnumMember(name, initializer) { - const node = createBaseDeclaration(305 /* EnumMember */); + const node = createBaseDeclaration(306 /* EnumMember */); node.name = asName(name); node.initializer = initializer && parenthesizerRules().parenthesizeExpressionForDisallowedComma(initializer); node.transformFlags |= propagateChildFlags(node.name) | propagateChildFlags(node.initializer) | 1 /* ContainsTypeScript */; @@ -15605,7 +15683,7 @@ function createNodeFactory(flags, baseFactory2) { return node.name !== name || node.initializer !== initializer ? update(createEnumMember(name, initializer), node) : node; } function createSourceFile2(statements, endOfFileToken, flags2) { - const node = baseFactory2.createBaseSourceFileNode(311 /* SourceFile */); + const node = baseFactory2.createBaseSourceFileNode(312 /* SourceFile */); node.statements = createNodeArray(statements); node.endOfFileToken = endOfFileToken; node.flags |= flags2; @@ -15675,7 +15753,7 @@ function createNodeFactory(flags, baseFactory2) { } function cloneRedirectedSourceFile(source) { const node = createRedirectedSourceFile(source.redirectInfo); - node.flags |= source.flags & ~8 /* Synthesized */; + node.flags |= source.flags & ~16 /* Synthesized */; node.fileName = source.fileName; node.path = source.path; node.resolvedPath = source.resolvedPath; @@ -15686,8 +15764,8 @@ function createNodeFactory(flags, baseFactory2) { return node; } function cloneSourceFileWorker(source) { - const node = baseFactory2.createBaseSourceFileNode(311 /* SourceFile */); - node.flags |= source.flags & ~8 /* Synthesized */; + const node = baseFactory2.createBaseSourceFileNode(312 /* SourceFile */); + node.flags |= source.flags & ~16 /* Synthesized */; for (const p in source) { if (hasProperty(node, p) || !hasProperty(source, p)) { continue; @@ -15720,7 +15798,7 @@ function createNodeFactory(flags, baseFactory2) { return node.statements !== statements || node.isDeclarationFile !== isDeclarationFile || node.referencedFiles !== referencedFiles || node.typeReferenceDirectives !== typeReferenceDirectives || node.hasNoDefaultLib !== hasNoDefaultLib || node.libReferenceDirectives !== libReferenceDirectives ? update(cloneSourceFileWithChanges(node, statements, isDeclarationFile, referencedFiles, typeReferenceDirectives, hasNoDefaultLib, libReferenceDirectives), node) : node; } function createBundle(sourceFiles, prepends = emptyArray) { - const node = createBaseNode(312 /* Bundle */); + const node = createBaseNode(313 /* Bundle */); node.prepends = prepends; node.sourceFiles = sourceFiles; node.syntheticFileReferences = void 0; @@ -15733,7 +15811,7 @@ function createNodeFactory(flags, baseFactory2) { return node.sourceFiles !== sourceFiles || node.prepends !== prepends ? update(createBundle(sourceFiles, prepends), node) : node; } function createUnparsedSource(prologues, syntheticReferences, texts) { - const node = createBaseNode(313 /* UnparsedSource */); + const node = createBaseNode(314 /* UnparsedSource */); node.prologues = prologues; node.syntheticReferences = syntheticReferences; node.texts = texts; @@ -15750,48 +15828,48 @@ function createNodeFactory(flags, baseFactory2) { return node; } function createUnparsedPrologue(data) { - return createBaseUnparsedNode(306 /* UnparsedPrologue */, data); + return createBaseUnparsedNode(307 /* UnparsedPrologue */, data); } function createUnparsedPrepend(data, texts) { - const node = createBaseUnparsedNode(307 /* UnparsedPrepend */, data); + const node = createBaseUnparsedNode(308 /* UnparsedPrepend */, data); node.texts = texts; return node; } function createUnparsedTextLike(data, internal) { - return createBaseUnparsedNode(internal ? 309 /* UnparsedInternalText */ : 308 /* UnparsedText */, data); + return createBaseUnparsedNode(internal ? 310 /* UnparsedInternalText */ : 309 /* UnparsedText */, data); } function createUnparsedSyntheticReference(section) { - const node = createBaseNode(310 /* UnparsedSyntheticReference */); + const node = createBaseNode(311 /* UnparsedSyntheticReference */); node.data = section.data; node.section = section; return node; } function createInputFiles() { - const node = createBaseNode(314 /* InputFiles */); + const node = createBaseNode(315 /* InputFiles */); node.javascriptText = ""; node.declarationText = ""; return node; } function createSyntheticExpression(type, isSpread = false, tupleNameSource) { - const node = createBaseNode(236 /* SyntheticExpression */); + const node = createBaseNode(237 /* SyntheticExpression */); node.type = type; node.isSpread = isSpread; node.tupleNameSource = tupleNameSource; return node; } function createSyntaxList(children) { - const node = createBaseNode(357 /* SyntaxList */); + const node = createBaseNode(358 /* SyntaxList */); node._children = children; return node; } function createNotEmittedStatement(original) { - const node = createBaseNode(358 /* NotEmittedStatement */); + const node = createBaseNode(359 /* NotEmittedStatement */); node.original = original; setTextRange(node, original); return node; } function createPartiallyEmittedExpression(expression, original) { - const node = createBaseNode(359 /* PartiallyEmittedExpression */); + const node = createBaseNode(360 /* PartiallyEmittedExpression */); node.expression = expression; node.original = original; node.transformFlags |= propagateChildFlags(node.expression) | 1 /* ContainsTypeScript */; @@ -15813,7 +15891,7 @@ function createNodeFactory(flags, baseFactory2) { return node; } function createCommaListExpression(elements) { - const node = createBaseNode(360 /* CommaListExpression */); + const node = createBaseNode(361 /* CommaListExpression */); node.elements = createNodeArray(sameFlatMap(elements, flattenCommaElements)); node.transformFlags |= propagateChildrenFlags(node.elements); return node; @@ -15822,7 +15900,7 @@ function createNodeFactory(flags, baseFactory2) { return node.elements !== elements ? update(createCommaListExpression(elements), node) : node; } function createSyntheticReferenceExpression(expression, thisArg) { - const node = createBaseNode(361 /* SyntheticReferenceExpression */); + const node = createBaseNode(362 /* SyntheticReferenceExpression */); node.expression = expression; node.thisArg = thisArg; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.thisArg); @@ -15833,7 +15911,7 @@ function createNodeFactory(flags, baseFactory2) { } function cloneGeneratedIdentifier(node) { const clone2 = createBaseIdentifier(node.escapedText); - clone2.flags |= node.flags & ~8 /* Synthesized */; + clone2.flags |= node.flags & ~16 /* Synthesized */; clone2.transformFlags = node.transformFlags; setOriginalNode(clone2, node); setIdentifierAutoGenerate(clone2, { ...node.emitNode.autoGenerate }); @@ -15841,7 +15919,7 @@ function createNodeFactory(flags, baseFactory2) { } function cloneIdentifier(node) { const clone2 = createBaseIdentifier(node.escapedText); - clone2.flags |= node.flags & ~8 /* Synthesized */; + clone2.flags |= node.flags & ~16 /* Synthesized */; clone2.jsDoc = node.jsDoc; clone2.flowNode = node.flowNode; clone2.symbol = node.symbol; @@ -15854,7 +15932,7 @@ function createNodeFactory(flags, baseFactory2) { } function cloneGeneratedPrivateIdentifier(node) { const clone2 = createBasePrivateIdentifier(node.escapedText); - clone2.flags |= node.flags & ~8 /* Synthesized */; + clone2.flags |= node.flags & ~16 /* Synthesized */; clone2.transformFlags = node.transformFlags; setOriginalNode(clone2, node); setIdentifierAutoGenerate(clone2, { ...node.emitNode.autoGenerate }); @@ -15862,7 +15940,7 @@ function createNodeFactory(flags, baseFactory2) { } function clonePrivateIdentifier(node) { const clone2 = createBasePrivateIdentifier(node.escapedText); - clone2.flags |= node.flags & ~8 /* Synthesized */; + clone2.flags |= node.flags & ~16 /* Synthesized */; clone2.transformFlags = node.transformFlags; setOriginalNode(clone2, node); return clone2; @@ -15887,7 +15965,7 @@ function createNodeFactory(flags, baseFactory2) { return clonePrivateIdentifier(node); } const clone2 = !isNodeKind(node.kind) ? baseFactory2.createBaseTokenNode(node.kind) : baseFactory2.createBaseNode(node.kind); - clone2.flags |= node.flags & ~8 /* Synthesized */; + clone2.flags |= node.flags & ~16 /* Synthesized */; clone2.transformFlags = node.transformFlags; setOriginalNode(clone2, node); for (const key in node) { @@ -15980,7 +16058,10 @@ function createNodeFactory(flags, baseFactory2) { ); } function createTypeCheck(value, tag) { - return tag === "undefined" ? factory2.createStrictEquality(value, createVoidZero()) : factory2.createStrictEquality(createTypeOfExpression(value), createStringLiteral(tag)); + return tag === "null" ? factory2.createStrictEquality(value, createNull()) : tag === "undefined" ? factory2.createStrictEquality(value, createVoidZero()) : factory2.createStrictEquality(createTypeOfExpression(value), createStringLiteral(tag)); + } + function createIsNotTypeCheck(value, tag) { + return tag === "null" ? factory2.createStrictInequality(value, createNull()) : tag === "undefined" ? factory2.createStrictInequality(value, createVoidZero()) : factory2.createStrictInequality(createTypeOfExpression(value), createStringLiteral(tag)); } function createMethodCall(object, methodName, argumentsList) { if (isCallChain(object)) { @@ -16055,17 +16136,17 @@ function createNodeFactory(flags, baseFactory2) { } function updateOuterExpression(outerExpression, expression) { switch (outerExpression.kind) { - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: return updateParenthesizedExpression(outerExpression, expression); - case 215 /* TypeAssertionExpression */: + case 216 /* TypeAssertionExpression */: return updateTypeAssertion(outerExpression, outerExpression.type, expression); - case 233 /* AsExpression */: + case 234 /* AsExpression */: return updateAsExpression(outerExpression, expression, outerExpression.type); - case 237 /* SatisfiesExpression */: + case 238 /* SatisfiesExpression */: return updateSatisfiesExpression(outerExpression, expression, outerExpression.type); - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: return updateNonNullExpression(outerExpression, expression); - case 359 /* PartiallyEmittedExpression */: + case 360 /* PartiallyEmittedExpression */: return updatePartiallyEmittedExpression(outerExpression, expression); } } @@ -16105,13 +16186,13 @@ function createNodeFactory(flags, baseFactory2) { case 10 /* BigIntLiteral */: case 11 /* StringLiteral */: return false; - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: const elements = target.elements; if (elements.length === 0) { return false; } return true; - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return target.properties.length > 0; default: return true; @@ -16374,6 +16455,9 @@ function createNodeFactory(flags, baseFactory2) { } return isTypeParameterDeclaration(node) ? updateTypeParameterDeclaration(node, modifierArray, node.name, node.constraint, node.default) : isParameter(node) ? updateParameterDeclaration(node, modifierArray, node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer) : isConstructorTypeNode(node) ? updateConstructorTypeNode1(node, modifierArray, node.typeParameters, node.parameters, node.type) : isPropertySignature(node) ? updatePropertySignature(node, modifierArray, node.name, node.questionToken, node.type) : isPropertyDeclaration(node) ? updatePropertyDeclaration(node, modifierArray, node.name, node.questionToken ?? node.exclamationToken, node.type, node.initializer) : isMethodSignature(node) ? updateMethodSignature(node, modifierArray, node.name, node.questionToken, node.typeParameters, node.parameters, node.type) : isMethodDeclaration(node) ? updateMethodDeclaration(node, modifierArray, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body) : isConstructorDeclaration(node) ? updateConstructorDeclaration(node, modifierArray, node.parameters, node.body) : isGetAccessorDeclaration(node) ? updateGetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.type, node.body) : isSetAccessorDeclaration(node) ? updateSetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.body) : isIndexSignatureDeclaration(node) ? updateIndexSignature(node, modifierArray, node.parameters, node.type) : isFunctionExpression(node) ? updateFunctionExpression(node, modifierArray, node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body) : isArrowFunction(node) ? updateArrowFunction(node, modifierArray, node.typeParameters, node.parameters, node.type, node.equalsGreaterThanToken, node.body) : isClassExpression(node) ? updateClassExpression(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isVariableStatement(node) ? updateVariableStatement(node, modifierArray, node.declarationList) : isFunctionDeclaration(node) ? updateFunctionDeclaration(node, modifierArray, node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body) : isClassDeclaration(node) ? updateClassDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isInterfaceDeclaration(node) ? updateInterfaceDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isTypeAliasDeclaration(node) ? updateTypeAliasDeclaration(node, modifierArray, node.name, node.typeParameters, node.type) : isEnumDeclaration(node) ? updateEnumDeclaration(node, modifierArray, node.name, node.members) : isModuleDeclaration(node) ? updateModuleDeclaration(node, modifierArray, node.name, node.body) : isImportEqualsDeclaration(node) ? updateImportEqualsDeclaration(node, modifierArray, node.isTypeOnly, node.name, node.moduleReference) : isImportDeclaration(node) ? updateImportDeclaration(node, modifierArray, node.importClause, node.moduleSpecifier, node.assertClause) : isExportAssignment(node) ? updateExportAssignment(node, modifierArray, node.expression) : isExportDeclaration(node) ? updateExportDeclaration(node, modifierArray, node.isTypeOnly, node.exportClause, node.moduleSpecifier, node.assertClause) : Debug.assertNever(node); } + function updateModifierLike(node, modifierArray) { + return isParameter(node) ? updateParameterDeclaration(node, modifierArray, node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer) : isPropertyDeclaration(node) ? updatePropertyDeclaration(node, modifierArray, node.name, node.questionToken ?? node.exclamationToken, node.type, node.initializer) : isMethodDeclaration(node) ? updateMethodDeclaration(node, modifierArray, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body) : isGetAccessorDeclaration(node) ? updateGetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.type, node.body) : isSetAccessorDeclaration(node) ? updateSetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.body) : isClassExpression(node) ? updateClassExpression(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isClassDeclaration(node) ? updateClassDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : Debug.assertNever(node); + } function asNodeArray(array) { return array ? createNodeArray(array) : void 0; } @@ -16422,43 +16506,43 @@ function updateWithOriginal(updated, original) { } function getDefaultTagNameForKind(kind) { switch (kind) { - case 350 /* JSDocTypeTag */: + case 351 /* JSDocTypeTag */: return "type"; - case 348 /* JSDocReturnTag */: + case 349 /* JSDocReturnTag */: return "returns"; - case 349 /* JSDocThisTag */: + case 350 /* JSDocThisTag */: return "this"; - case 346 /* JSDocEnumTag */: + case 347 /* JSDocEnumTag */: return "enum"; - case 336 /* JSDocAuthorTag */: + case 337 /* JSDocAuthorTag */: return "author"; - case 338 /* JSDocClassTag */: + case 339 /* JSDocClassTag */: return "class"; - case 339 /* JSDocPublicTag */: + case 340 /* JSDocPublicTag */: return "public"; - case 340 /* JSDocPrivateTag */: + case 341 /* JSDocPrivateTag */: return "private"; - case 341 /* JSDocProtectedTag */: + case 342 /* JSDocProtectedTag */: return "protected"; - case 342 /* JSDocReadonlyTag */: + case 343 /* JSDocReadonlyTag */: return "readonly"; - case 343 /* JSDocOverrideTag */: + case 344 /* JSDocOverrideTag */: return "override"; - case 351 /* JSDocTemplateTag */: + case 352 /* JSDocTemplateTag */: return "template"; - case 352 /* JSDocTypedefTag */: + case 353 /* JSDocTypedefTag */: return "typedef"; - case 347 /* JSDocParameterTag */: + case 348 /* JSDocParameterTag */: return "param"; - case 354 /* JSDocPropertyTag */: + case 355 /* JSDocPropertyTag */: return "prop"; - case 344 /* JSDocCallbackTag */: + case 345 /* JSDocCallbackTag */: return "callback"; - case 345 /* JSDocOverloadTag */: + case 346 /* JSDocOverloadTag */: return "overload"; - case 334 /* JSDocAugmentsTag */: + case 335 /* JSDocAugmentsTag */: return "augments"; - case 335 /* JSDocImplementsTag */: + case 336 /* JSDocImplementsTag */: return "implements"; default: return Debug.fail(`Unsupported kind: ${Debug.formatSyntaxKind(kind)}`); @@ -16542,70 +16626,70 @@ function aggregateChildrenFlags(children) { children.transformFlags = subtreeFlags; } function getTransformFlagsSubtreeExclusions(kind) { - if (kind >= 181 /* FirstTypeNode */ && kind <= 204 /* LastTypeNode */) { + if (kind >= 182 /* FirstTypeNode */ && kind <= 205 /* LastTypeNode */) { return -2 /* TypeExcludes */; } switch (kind) { - case 212 /* CallExpression */: - case 213 /* NewExpression */: - case 208 /* ArrayLiteralExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 209 /* ArrayLiteralExpression */: return -2147450880 /* ArrayLiteralOrCallOrNewExcludes */; - case 266 /* ModuleDeclaration */: + case 267 /* ModuleDeclaration */: return -1941676032 /* ModuleExcludes */; - case 168 /* Parameter */: + case 169 /* Parameter */: return -2147483648 /* ParameterExcludes */; - case 218 /* ArrowFunction */: + case 219 /* ArrowFunction */: return -2072174592 /* ArrowFunctionExcludes */; - case 217 /* FunctionExpression */: - case 261 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: return -1937940480 /* FunctionExcludes */; - case 260 /* VariableDeclarationList */: + case 261 /* VariableDeclarationList */: return -2146893824 /* VariableDeclarationListExcludes */; - case 262 /* ClassDeclaration */: - case 230 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: return -2147344384 /* ClassExcludes */; - case 175 /* Constructor */: + case 176 /* Constructor */: return -1937948672 /* ConstructorExcludes */; - case 171 /* PropertyDeclaration */: + case 172 /* PropertyDeclaration */: return -2013249536 /* PropertyExcludes */; - case 173 /* MethodDeclaration */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: return -2005057536 /* MethodOrAccessorExcludes */; case 133 /* AnyKeyword */: case 150 /* NumberKeyword */: - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: case 146 /* NeverKeyword */: case 154 /* StringKeyword */: case 151 /* ObjectKeyword */: case 136 /* BooleanKeyword */: case 155 /* SymbolKeyword */: case 116 /* VoidKeyword */: - case 167 /* TypeParameter */: - case 170 /* PropertySignature */: - case 172 /* MethodSignature */: - case 178 /* CallSignature */: - case 179 /* ConstructSignature */: - case 180 /* IndexSignature */: - case 263 /* InterfaceDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 168 /* TypeParameter */: + case 171 /* PropertySignature */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 181 /* IndexSignature */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: return -2 /* TypeExcludes */; - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return -2147278848 /* ObjectLiteralExcludes */; - case 298 /* CatchClause */: + case 299 /* CatchClause */: return -2147418112 /* CatchClauseExcludes */; - case 205 /* ObjectBindingPattern */: - case 206 /* ArrayBindingPattern */: + case 206 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: return -2147450880 /* BindingPatternExcludes */; - case 215 /* TypeAssertionExpression */: - case 237 /* SatisfiesExpression */: - case 233 /* AsExpression */: - case 359 /* PartiallyEmittedExpression */: - case 216 /* ParenthesizedExpression */: + case 216 /* TypeAssertionExpression */: + case 238 /* SatisfiesExpression */: + case 234 /* AsExpression */: + case 360 /* PartiallyEmittedExpression */: + case 217 /* ParenthesizedExpression */: case 108 /* SuperKeyword */: return -2147483648 /* OuterExpressionExcludes */; - case 210 /* PropertyAccessExpression */: - case 211 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: return -2147483648 /* PropertyAccessExcludes */; default: return -2147483648 /* NodeExcludes */; @@ -16613,7 +16697,7 @@ function getTransformFlagsSubtreeExclusions(kind) { } var baseFactory = createBaseNodeFactory(); function makeSynthetic(node) { - node.flags |= 8 /* Synthesized */; + node.flags |= 16 /* Synthesized */; return node; } var syntheticFactory = { @@ -16625,11 +16709,13 @@ var syntheticFactory = { }; var factory = createNodeFactory(4 /* NoIndentationOnFreshPropertyAccess */, syntheticFactory); function setOriginalNode(node, original) { - node.original = original; - if (original) { - const emitNode = original.emitNode; - if (emitNode) - node.emitNode = mergeEmitNode(emitNode, node.emitNode); + if (node.original !== original) { + node.original = original; + if (original) { + const emitNode = original.emitNode; + if (emitNode) + node.emitNode = mergeEmitNode(emitNode, node.emitNode); + } } return node; } @@ -16645,35 +16731,53 @@ function mergeEmitNode(sourceEmitNode, destEmitNode) { constantValue, helpers, startsOnNewLine, - snippetElement + snippetElement, + classThis, + assignedName } = sourceEmitNode; if (!destEmitNode) destEmitNode = {}; - if (leadingComments) - destEmitNode.leadingComments = addRange(leadingComments.slice(), destEmitNode.leadingComments); - if (trailingComments) - destEmitNode.trailingComments = addRange(trailingComments.slice(), destEmitNode.trailingComments); - if (flags) + if (flags) { destEmitNode.flags = flags; - if (internalFlags) + } + if (internalFlags) { destEmitNode.internalFlags = internalFlags & ~8 /* Immutable */; - if (commentRange) + } + if (leadingComments) { + destEmitNode.leadingComments = addRange(leadingComments.slice(), destEmitNode.leadingComments); + } + if (trailingComments) { + destEmitNode.trailingComments = addRange(trailingComments.slice(), destEmitNode.trailingComments); + } + if (commentRange) { destEmitNode.commentRange = commentRange; - if (sourceMapRange) + } + if (sourceMapRange) { destEmitNode.sourceMapRange = sourceMapRange; - if (tokenSourceMapRanges) + } + if (tokenSourceMapRanges) { destEmitNode.tokenSourceMapRanges = mergeTokenSourceMapRanges(tokenSourceMapRanges, destEmitNode.tokenSourceMapRanges); - if (constantValue !== void 0) + } + if (constantValue !== void 0) { destEmitNode.constantValue = constantValue; + } if (helpers) { for (const helper of helpers) { destEmitNode.helpers = appendIfUnique(destEmitNode.helpers, helper); } } - if (startsOnNewLine !== void 0) + if (startsOnNewLine !== void 0) { destEmitNode.startsOnNewLine = startsOnNewLine; - if (snippetElement !== void 0) + } + if (snippetElement !== void 0) { destEmitNode.snippetElement = snippetElement; + } + if (classThis) { + destEmitNode.classThis = classThis; + } + if (assignedName) { + destEmitNode.assignedName = assignedName; + } return destEmitNode; } function mergeTokenSourceMapRanges(sourceRanges, destRanges) { @@ -16689,7 +16793,7 @@ function mergeTokenSourceMapRanges(sourceRanges, destRanges) { function getOrCreateEmitNode(node) { if (!node.emitNode) { if (isParseTreeNode(node)) { - if (node.kind === 311 /* SourceFile */) { + if (node.kind === 312 /* SourceFile */) { return node.emitNode = { annotatedNodes: [node] }; } const sourceFile = getSourceFileOfNode(getParseTreeNode(getSourceFileOfNode(node))) ?? Debug.fail("Could not determine parsed source file."); @@ -16828,6 +16932,9 @@ function isPrivateIdentifier(node) { function isExportModifier(node) { return node.kind === 95 /* ExportKeyword */; } +function isDefaultModifier(node) { + return node.kind === 90 /* DefaultKeyword */; +} function isAsyncModifier(node) { return node.kind === 134 /* AsyncKeyword */; } @@ -16847,340 +16954,340 @@ function isImportKeyword(node) { return node.kind === 102 /* ImportKeyword */; } function isComputedPropertyName(node) { - return node.kind === 166 /* ComputedPropertyName */; + return node.kind === 167 /* ComputedPropertyName */; } function isTypeParameterDeclaration(node) { - return node.kind === 167 /* TypeParameter */; + return node.kind === 168 /* TypeParameter */; } function isParameter(node) { - return node.kind === 168 /* Parameter */; + return node.kind === 169 /* Parameter */; } function isDecorator(node) { - return node.kind === 169 /* Decorator */; + return node.kind === 170 /* Decorator */; } function isPropertySignature(node) { - return node.kind === 170 /* PropertySignature */; + return node.kind === 171 /* PropertySignature */; } function isPropertyDeclaration(node) { - return node.kind === 171 /* PropertyDeclaration */; + return node.kind === 172 /* PropertyDeclaration */; } function isMethodSignature(node) { - return node.kind === 172 /* MethodSignature */; + return node.kind === 173 /* MethodSignature */; } function isMethodDeclaration(node) { - return node.kind === 173 /* MethodDeclaration */; + return node.kind === 174 /* MethodDeclaration */; } function isConstructorDeclaration(node) { - return node.kind === 175 /* Constructor */; + return node.kind === 176 /* Constructor */; } function isGetAccessorDeclaration(node) { - return node.kind === 176 /* GetAccessor */; + return node.kind === 177 /* GetAccessor */; } function isSetAccessorDeclaration(node) { - return node.kind === 177 /* SetAccessor */; + return node.kind === 178 /* SetAccessor */; } function isCallSignatureDeclaration(node) { - return node.kind === 178 /* CallSignature */; + return node.kind === 179 /* CallSignature */; } function isConstructSignatureDeclaration(node) { - return node.kind === 179 /* ConstructSignature */; + return node.kind === 180 /* ConstructSignature */; } function isIndexSignatureDeclaration(node) { - return node.kind === 180 /* IndexSignature */; + return node.kind === 181 /* IndexSignature */; } function isTypePredicateNode(node) { - return node.kind === 181 /* TypePredicate */; + return node.kind === 182 /* TypePredicate */; } function isTypeReferenceNode(node) { - return node.kind === 182 /* TypeReference */; + return node.kind === 183 /* TypeReference */; } function isFunctionTypeNode(node) { - return node.kind === 183 /* FunctionType */; + return node.kind === 184 /* FunctionType */; } function isConstructorTypeNode(node) { - return node.kind === 184 /* ConstructorType */; + return node.kind === 185 /* ConstructorType */; } function isTypeQueryNode(node) { - return node.kind === 185 /* TypeQuery */; + return node.kind === 186 /* TypeQuery */; } function isTypeLiteralNode(node) { - return node.kind === 186 /* TypeLiteral */; + return node.kind === 187 /* TypeLiteral */; } function isArrayTypeNode(node) { - return node.kind === 187 /* ArrayType */; + return node.kind === 188 /* ArrayType */; } function isTupleTypeNode(node) { - return node.kind === 188 /* TupleType */; + return node.kind === 189 /* TupleType */; } function isNamedTupleMember(node) { - return node.kind === 201 /* NamedTupleMember */; + return node.kind === 202 /* NamedTupleMember */; } function isOptionalTypeNode(node) { - return node.kind === 189 /* OptionalType */; + return node.kind === 190 /* OptionalType */; } function isRestTypeNode(node) { - return node.kind === 190 /* RestType */; + return node.kind === 191 /* RestType */; } function isUnionTypeNode(node) { - return node.kind === 191 /* UnionType */; + return node.kind === 192 /* UnionType */; } function isIntersectionTypeNode(node) { - return node.kind === 192 /* IntersectionType */; + return node.kind === 193 /* IntersectionType */; } function isConditionalTypeNode(node) { - return node.kind === 193 /* ConditionalType */; + return node.kind === 194 /* ConditionalType */; } function isInferTypeNode(node) { - return node.kind === 194 /* InferType */; + return node.kind === 195 /* InferType */; } function isParenthesizedTypeNode(node) { - return node.kind === 195 /* ParenthesizedType */; + return node.kind === 196 /* ParenthesizedType */; } function isThisTypeNode(node) { - return node.kind === 196 /* ThisType */; + return node.kind === 197 /* ThisType */; } function isTypeOperatorNode(node) { - return node.kind === 197 /* TypeOperator */; + return node.kind === 198 /* TypeOperator */; } function isIndexedAccessTypeNode(node) { - return node.kind === 198 /* IndexedAccessType */; + return node.kind === 199 /* IndexedAccessType */; } function isMappedTypeNode(node) { - return node.kind === 199 /* MappedType */; + return node.kind === 200 /* MappedType */; } function isLiteralTypeNode(node) { - return node.kind === 200 /* LiteralType */; + return node.kind === 201 /* LiteralType */; } function isImportTypeNode(node) { - return node.kind === 204 /* ImportType */; + return node.kind === 205 /* ImportType */; } function isTemplateLiteralTypeSpan(node) { - return node.kind === 203 /* TemplateLiteralTypeSpan */; + return node.kind === 204 /* TemplateLiteralTypeSpan */; } function isObjectBindingPattern(node) { - return node.kind === 205 /* ObjectBindingPattern */; + return node.kind === 206 /* ObjectBindingPattern */; } function isArrayBindingPattern(node) { - return node.kind === 206 /* ArrayBindingPattern */; + return node.kind === 207 /* ArrayBindingPattern */; } function isBindingElement(node) { - return node.kind === 207 /* BindingElement */; + return node.kind === 208 /* BindingElement */; } function isArrayLiteralExpression(node) { - return node.kind === 208 /* ArrayLiteralExpression */; + return node.kind === 209 /* ArrayLiteralExpression */; } function isObjectLiteralExpression(node) { - return node.kind === 209 /* ObjectLiteralExpression */; + return node.kind === 210 /* ObjectLiteralExpression */; } function isPropertyAccessExpression(node) { - return node.kind === 210 /* PropertyAccessExpression */; + return node.kind === 211 /* PropertyAccessExpression */; } function isElementAccessExpression(node) { - return node.kind === 211 /* ElementAccessExpression */; + return node.kind === 212 /* ElementAccessExpression */; } function isCallExpression(node) { - return node.kind === 212 /* CallExpression */; + return node.kind === 213 /* CallExpression */; } function isTaggedTemplateExpression(node) { - return node.kind === 214 /* TaggedTemplateExpression */; + return node.kind === 215 /* TaggedTemplateExpression */; } function isParenthesizedExpression(node) { - return node.kind === 216 /* ParenthesizedExpression */; + return node.kind === 217 /* ParenthesizedExpression */; } function isFunctionExpression(node) { - return node.kind === 217 /* FunctionExpression */; + return node.kind === 218 /* FunctionExpression */; } function isArrowFunction(node) { - return node.kind === 218 /* ArrowFunction */; + return node.kind === 219 /* ArrowFunction */; } function isVoidExpression(node) { - return node.kind === 221 /* VoidExpression */; + return node.kind === 222 /* VoidExpression */; } function isPrefixUnaryExpression(node) { - return node.kind === 223 /* PrefixUnaryExpression */; + return node.kind === 224 /* PrefixUnaryExpression */; } function isBinaryExpression(node) { - return node.kind === 225 /* BinaryExpression */; + return node.kind === 226 /* BinaryExpression */; } function isSpreadElement(node) { - return node.kind === 229 /* SpreadElement */; + return node.kind === 230 /* SpreadElement */; } function isClassExpression(node) { - return node.kind === 230 /* ClassExpression */; + return node.kind === 231 /* ClassExpression */; } function isOmittedExpression(node) { - return node.kind === 231 /* OmittedExpression */; + return node.kind === 232 /* OmittedExpression */; } function isExpressionWithTypeArguments(node) { - return node.kind === 232 /* ExpressionWithTypeArguments */; + return node.kind === 233 /* ExpressionWithTypeArguments */; } function isNonNullExpression(node) { - return node.kind === 234 /* NonNullExpression */; + return node.kind === 235 /* NonNullExpression */; } function isMetaProperty(node) { - return node.kind === 235 /* MetaProperty */; + return node.kind === 236 /* MetaProperty */; } function isCommaListExpression(node) { - return node.kind === 360 /* CommaListExpression */; + return node.kind === 361 /* CommaListExpression */; } function isTemplateSpan(node) { - return node.kind === 238 /* TemplateSpan */; + return node.kind === 239 /* TemplateSpan */; } function isBlock(node) { - return node.kind === 240 /* Block */; + return node.kind === 241 /* Block */; } function isVariableStatement(node) { - return node.kind === 242 /* VariableStatement */; + return node.kind === 243 /* VariableStatement */; } function isExpressionStatement(node) { - return node.kind === 243 /* ExpressionStatement */; + return node.kind === 244 /* ExpressionStatement */; } function isLabeledStatement(node) { - return node.kind === 255 /* LabeledStatement */; + return node.kind === 256 /* LabeledStatement */; } function isVariableDeclaration(node) { - return node.kind === 259 /* VariableDeclaration */; + return node.kind === 260 /* VariableDeclaration */; } function isVariableDeclarationList(node) { - return node.kind === 260 /* VariableDeclarationList */; + return node.kind === 261 /* VariableDeclarationList */; } function isFunctionDeclaration(node) { - return node.kind === 261 /* FunctionDeclaration */; + return node.kind === 262 /* FunctionDeclaration */; } function isClassDeclaration(node) { - return node.kind === 262 /* ClassDeclaration */; + return node.kind === 263 /* ClassDeclaration */; } function isInterfaceDeclaration(node) { - return node.kind === 263 /* InterfaceDeclaration */; + return node.kind === 264 /* InterfaceDeclaration */; } function isTypeAliasDeclaration(node) { - return node.kind === 264 /* TypeAliasDeclaration */; + return node.kind === 265 /* TypeAliasDeclaration */; } function isEnumDeclaration(node) { - return node.kind === 265 /* EnumDeclaration */; + return node.kind === 266 /* EnumDeclaration */; } function isModuleDeclaration(node) { - return node.kind === 266 /* ModuleDeclaration */; + return node.kind === 267 /* ModuleDeclaration */; } function isCaseBlock(node) { - return node.kind === 268 /* CaseBlock */; + return node.kind === 269 /* CaseBlock */; } function isImportEqualsDeclaration(node) { - return node.kind === 270 /* ImportEqualsDeclaration */; + return node.kind === 271 /* ImportEqualsDeclaration */; } function isImportDeclaration(node) { - return node.kind === 271 /* ImportDeclaration */; + return node.kind === 272 /* ImportDeclaration */; } function isImportClause(node) { - return node.kind === 272 /* ImportClause */; + return node.kind === 273 /* ImportClause */; } function isImportTypeAssertionContainer(node) { - return node.kind === 301 /* ImportTypeAssertionContainer */; + return node.kind === 302 /* ImportTypeAssertionContainer */; } function isAssertClause(node) { - return node.kind === 299 /* AssertClause */; + return node.kind === 300 /* AssertClause */; } function isAssertEntry(node) { - return node.kind === 300 /* AssertEntry */; + return node.kind === 301 /* AssertEntry */; } function isImportSpecifier(node) { - return node.kind === 275 /* ImportSpecifier */; + return node.kind === 276 /* ImportSpecifier */; } function isExportAssignment(node) { - return node.kind === 276 /* ExportAssignment */; + return node.kind === 277 /* ExportAssignment */; } function isExportDeclaration(node) { - return node.kind === 277 /* ExportDeclaration */; + return node.kind === 278 /* ExportDeclaration */; } function isExportSpecifier(node) { - return node.kind === 280 /* ExportSpecifier */; + return node.kind === 281 /* ExportSpecifier */; } function isNotEmittedStatement(node) { - return node.kind === 358 /* NotEmittedStatement */; + return node.kind === 359 /* NotEmittedStatement */; } function isExternalModuleReference(node) { - return node.kind === 282 /* ExternalModuleReference */; + return node.kind === 283 /* ExternalModuleReference */; } function isJsxOpeningElement(node) { - return node.kind === 285 /* JsxOpeningElement */; + return node.kind === 286 /* JsxOpeningElement */; } function isJsxClosingElement(node) { - return node.kind === 286 /* JsxClosingElement */; + return node.kind === 287 /* JsxClosingElement */; } function isJsxOpeningFragment(node) { - return node.kind === 288 /* JsxOpeningFragment */; + return node.kind === 289 /* JsxOpeningFragment */; } function isJsxClosingFragment(node) { - return node.kind === 289 /* JsxClosingFragment */; + return node.kind === 290 /* JsxClosingFragment */; } function isJsxAttributes(node) { - return node.kind === 291 /* JsxAttributes */; + return node.kind === 292 /* JsxAttributes */; } function isJsxNamespacedName(node) { - return node.kind === 294 /* JsxNamespacedName */; + return node.kind === 295 /* JsxNamespacedName */; } function isDefaultClause(node) { - return node.kind === 296 /* DefaultClause */; + return node.kind === 297 /* DefaultClause */; } function isHeritageClause(node) { - return node.kind === 297 /* HeritageClause */; + return node.kind === 298 /* HeritageClause */; } function isCatchClause(node) { - return node.kind === 298 /* CatchClause */; + return node.kind === 299 /* CatchClause */; } function isPropertyAssignment(node) { - return node.kind === 302 /* PropertyAssignment */; + return node.kind === 303 /* PropertyAssignment */; } function isEnumMember(node) { - return node.kind === 305 /* EnumMember */; + return node.kind === 306 /* EnumMember */; } function isSourceFile(node) { - return node.kind === 311 /* SourceFile */; + return node.kind === 312 /* SourceFile */; } function isJSDocTypeExpression(node) { - return node.kind === 315 /* JSDocTypeExpression */; + return node.kind === 316 /* JSDocTypeExpression */; } function isJSDocNullableType(node) { - return node.kind === 320 /* JSDocNullableType */; + return node.kind === 321 /* JSDocNullableType */; } function isJSDocFunctionType(node) { - return node.kind === 323 /* JSDocFunctionType */; + return node.kind === 324 /* JSDocFunctionType */; } function isJSDoc(node) { - return node.kind === 326 /* JSDoc */; + return node.kind === 327 /* JSDoc */; } function isJSDocPublicTag(node) { - return node.kind === 339 /* JSDocPublicTag */; + return node.kind === 340 /* JSDocPublicTag */; } function isJSDocPrivateTag(node) { - return node.kind === 340 /* JSDocPrivateTag */; + return node.kind === 341 /* JSDocPrivateTag */; } function isJSDocProtectedTag(node) { - return node.kind === 341 /* JSDocProtectedTag */; + return node.kind === 342 /* JSDocProtectedTag */; } function isJSDocReadonlyTag(node) { - return node.kind === 342 /* JSDocReadonlyTag */; + return node.kind === 343 /* JSDocReadonlyTag */; } function isJSDocOverrideTag(node) { - return node.kind === 343 /* JSDocOverrideTag */; + return node.kind === 344 /* JSDocOverrideTag */; } function isJSDocDeprecatedTag(node) { - return node.kind === 337 /* JSDocDeprecatedTag */; + return node.kind === 338 /* JSDocDeprecatedTag */; } function isJSDocParameterTag(node) { - return node.kind === 347 /* JSDocParameterTag */; + return node.kind === 348 /* JSDocParameterTag */; } function isJSDocReturnTag(node) { - return node.kind === 348 /* JSDocReturnTag */; + return node.kind === 349 /* JSDocReturnTag */; } function isJSDocTypeTag(node) { - return node.kind === 350 /* JSDocTypeTag */; + return node.kind === 351 /* JSDocTypeTag */; } function isJSDocTemplateTag(node) { - return node.kind === 351 /* JSDocTemplateTag */; + return node.kind === 352 /* JSDocTemplateTag */; } function isJSDocSatisfiesTag(node) { - return node.kind === 356 /* JSDocSatisfiesTag */; + return node.kind === 357 /* JSDocSatisfiesTag */; } // src/compiler/factory/utilities.ts @@ -17203,7 +17310,7 @@ function findUseStrictPrologue(statements) { return void 0; } function isCommaExpression(node) { - return node.kind === 225 /* BinaryExpression */ && node.operatorToken.kind === 28 /* CommaToken */; + return node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 28 /* CommaToken */; } function isCommaSequence(node) { return isCommaExpression(node) || isCommaListExpression(node); @@ -17213,19 +17320,19 @@ function isJSDocTypeAssertion(node) { } function isOuterExpression(node, kinds = 15 /* All */) { switch (node.kind) { - case 216 /* ParenthesizedExpression */: + case 217 /* ParenthesizedExpression */: if (kinds & 16 /* ExcludeJSDocTypeAssertion */ && isJSDocTypeAssertion(node)) { return false; } return (kinds & 1 /* Parentheses */) !== 0; - case 215 /* TypeAssertionExpression */: - case 233 /* AsExpression */: - case 232 /* ExpressionWithTypeArguments */: - case 237 /* SatisfiesExpression */: + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: + case 233 /* ExpressionWithTypeArguments */: + case 238 /* SatisfiesExpression */: return (kinds & 2 /* TypeAssertions */) !== 0; - case 234 /* NonNullExpression */: + case 235 /* NonNullExpression */: return (kinds & 4 /* NonNullAssertions */) !== 0; - case 359 /* PartiallyEmittedExpression */: + case 360 /* PartiallyEmittedExpression */: return (kinds & 8 /* PartiallyEmittedExpressions */) !== 0; } return false; @@ -17249,11 +17356,11 @@ function getTargetOfBindingOrAssignmentElement(bindingElement) { } if (isObjectLiteralElementLike(bindingElement)) { switch (bindingElement.kind) { - case 302 /* PropertyAssignment */: + case 303 /* PropertyAssignment */: return getTargetOfBindingOrAssignmentElement(bindingElement.initializer); - case 303 /* ShorthandPropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: return bindingElement.name; - case 304 /* SpreadAssignment */: + case 305 /* SpreadAssignment */: return getTargetOfBindingOrAssignmentElement(bindingElement.expression); } return void 0; @@ -17272,11 +17379,11 @@ function getTargetOfBindingOrAssignmentElement(bindingElement) { } function getElementsOfBindingOrAssignmentPattern(name) { switch (name.kind) { - case 205 /* ObjectBindingPattern */: - case 206 /* ArrayBindingPattern */: - case 208 /* ArrayLiteralExpression */: + case 206 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: + case 209 /* ArrayLiteralExpression */: return name.elements; - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: return name.properties; } } @@ -17509,7 +17616,7 @@ function setTextRange(range, location) { } function canHaveModifiers(node) { const kind = node.kind; - return kind === 167 /* TypeParameter */ || kind === 168 /* Parameter */ || kind === 170 /* PropertySignature */ || kind === 171 /* PropertyDeclaration */ || kind === 172 /* MethodSignature */ || kind === 173 /* MethodDeclaration */ || kind === 175 /* Constructor */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */ || kind === 180 /* IndexSignature */ || kind === 184 /* ConstructorType */ || kind === 217 /* FunctionExpression */ || kind === 218 /* ArrowFunction */ || kind === 230 /* ClassExpression */ || kind === 242 /* VariableStatement */ || kind === 261 /* FunctionDeclaration */ || kind === 262 /* ClassDeclaration */ || kind === 263 /* InterfaceDeclaration */ || kind === 264 /* TypeAliasDeclaration */ || kind === 265 /* EnumDeclaration */ || kind === 266 /* ModuleDeclaration */ || kind === 270 /* ImportEqualsDeclaration */ || kind === 271 /* ImportDeclaration */ || kind === 276 /* ExportAssignment */ || kind === 277 /* ExportDeclaration */; + return kind === 168 /* TypeParameter */ || kind === 169 /* Parameter */ || kind === 171 /* PropertySignature */ || kind === 172 /* PropertyDeclaration */ || kind === 173 /* MethodSignature */ || kind === 174 /* MethodDeclaration */ || kind === 176 /* Constructor */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 181 /* IndexSignature */ || kind === 185 /* ConstructorType */ || kind === 218 /* FunctionExpression */ || kind === 219 /* ArrowFunction */ || kind === 231 /* ClassExpression */ || kind === 243 /* VariableStatement */ || kind === 262 /* FunctionDeclaration */ || kind === 263 /* ClassDeclaration */ || kind === 264 /* InterfaceDeclaration */ || kind === 265 /* TypeAliasDeclaration */ || kind === 266 /* EnumDeclaration */ || kind === 267 /* ModuleDeclaration */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 272 /* ImportDeclaration */ || kind === 277 /* ExportAssignment */ || kind === 278 /* ExportDeclaration */; } // src/compiler/parser.ts @@ -17552,7 +17659,7 @@ function isAnExternalModuleIndicatorNode(node) { return canHaveModifiers(node) && hasModifierOfKind(node, 95 /* ExportKeyword */) || isImportEqualsDeclaration(node) && isExternalModuleReference(node.moduleReference) || isImportDeclaration(node) || isExportAssignment(node) || isExportDeclaration(node) ? node : void 0; } function getImportMetaIfNecessary(sourceFile) { - return sourceFile.flags & 4194304 /* PossiblyContainsImportMeta */ ? walkTreeForImportMeta(sourceFile) : void 0; + return sourceFile.flags & 8388608 /* PossiblyContainsImportMeta */ ? walkTreeForImportMeta(sourceFile) : void 0; } function walkTreeForImportMeta(node) { return isImportMeta(node) ? node : forEachChild(node, walkTreeForImportMeta); @@ -17564,428 +17671,428 @@ function isImportMeta(node) { return isMetaProperty(node) && node.keywordToken === 102 /* ImportKeyword */ && node.name.escapedText === "meta"; } var forEachChildTable = { - [165 /* QualifiedName */]: function forEachChildInQualifiedName(node, cbNode, _cbNodes) { + [166 /* QualifiedName */]: function forEachChildInQualifiedName(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.left) || visitNode2(cbNode, node.right); }, - [167 /* TypeParameter */]: function forEachChildInTypeParameter(node, cbNode, cbNodes) { + [168 /* TypeParameter */]: function forEachChildInTypeParameter(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.constraint) || visitNode2(cbNode, node.default) || visitNode2(cbNode, node.expression); }, - [303 /* ShorthandPropertyAssignment */]: function forEachChildInShorthandPropertyAssignment(node, cbNode, cbNodes) { + [304 /* ShorthandPropertyAssignment */]: function forEachChildInShorthandPropertyAssignment(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.equalsToken) || visitNode2(cbNode, node.objectAssignmentInitializer); }, - [304 /* SpreadAssignment */]: function forEachChildInSpreadAssignment(node, cbNode, _cbNodes) { + [305 /* SpreadAssignment */]: function forEachChildInSpreadAssignment(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [168 /* Parameter */]: function forEachChildInParameter(node, cbNode, cbNodes) { + [169 /* Parameter */]: function forEachChildInParameter(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.dotDotDotToken) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.initializer); }, - [171 /* PropertyDeclaration */]: function forEachChildInPropertyDeclaration(node, cbNode, cbNodes) { + [172 /* PropertyDeclaration */]: function forEachChildInPropertyDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.initializer); }, - [170 /* PropertySignature */]: function forEachChildInPropertySignature(node, cbNode, cbNodes) { + [171 /* PropertySignature */]: function forEachChildInPropertySignature(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.initializer); }, - [302 /* PropertyAssignment */]: function forEachChildInPropertyAssignment(node, cbNode, cbNodes) { + [303 /* PropertyAssignment */]: function forEachChildInPropertyAssignment(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.initializer); }, - [259 /* VariableDeclaration */]: function forEachChildInVariableDeclaration(node, cbNode, _cbNodes) { + [260 /* VariableDeclaration */]: function forEachChildInVariableDeclaration(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.initializer); }, - [207 /* BindingElement */]: function forEachChildInBindingElement(node, cbNode, _cbNodes) { + [208 /* BindingElement */]: function forEachChildInBindingElement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.dotDotDotToken) || visitNode2(cbNode, node.propertyName) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.initializer); }, - [180 /* IndexSignature */]: function forEachChildInIndexSignature(node, cbNode, cbNodes) { + [181 /* IndexSignature */]: function forEachChildInIndexSignature(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); }, - [184 /* ConstructorType */]: function forEachChildInConstructorType(node, cbNode, cbNodes) { + [185 /* ConstructorType */]: function forEachChildInConstructorType(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); }, - [183 /* FunctionType */]: function forEachChildInFunctionType(node, cbNode, cbNodes) { + [184 /* FunctionType */]: function forEachChildInFunctionType(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); }, - [178 /* CallSignature */]: forEachChildInCallOrConstructSignature, - [179 /* ConstructSignature */]: forEachChildInCallOrConstructSignature, - [173 /* MethodDeclaration */]: function forEachChildInMethodDeclaration(node, cbNode, cbNodes) { + [179 /* CallSignature */]: forEachChildInCallOrConstructSignature, + [180 /* ConstructSignature */]: forEachChildInCallOrConstructSignature, + [174 /* MethodDeclaration */]: function forEachChildInMethodDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.asteriskToken) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); }, - [172 /* MethodSignature */]: function forEachChildInMethodSignature(node, cbNode, cbNodes) { + [173 /* MethodSignature */]: function forEachChildInMethodSignature(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); }, - [175 /* Constructor */]: function forEachChildInConstructor(node, cbNode, cbNodes) { + [176 /* Constructor */]: function forEachChildInConstructor(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); }, - [176 /* GetAccessor */]: function forEachChildInGetAccessor(node, cbNode, cbNodes) { + [177 /* GetAccessor */]: function forEachChildInGetAccessor(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); }, - [177 /* SetAccessor */]: function forEachChildInSetAccessor(node, cbNode, cbNodes) { + [178 /* SetAccessor */]: function forEachChildInSetAccessor(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); }, - [261 /* FunctionDeclaration */]: function forEachChildInFunctionDeclaration(node, cbNode, cbNodes) { + [262 /* FunctionDeclaration */]: function forEachChildInFunctionDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.asteriskToken) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); }, - [217 /* FunctionExpression */]: function forEachChildInFunctionExpression(node, cbNode, cbNodes) { + [218 /* FunctionExpression */]: function forEachChildInFunctionExpression(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.asteriskToken) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); }, - [218 /* ArrowFunction */]: function forEachChildInArrowFunction(node, cbNode, cbNodes) { + [219 /* ArrowFunction */]: function forEachChildInArrowFunction(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.equalsGreaterThanToken) || visitNode2(cbNode, node.body); }, - [174 /* ClassStaticBlockDeclaration */]: function forEachChildInClassStaticBlockDeclaration(node, cbNode, cbNodes) { + [175 /* ClassStaticBlockDeclaration */]: function forEachChildInClassStaticBlockDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.body); }, - [182 /* TypeReference */]: function forEachChildInTypeReference(node, cbNode, cbNodes) { + [183 /* TypeReference */]: function forEachChildInTypeReference(node, cbNode, cbNodes) { return visitNode2(cbNode, node.typeName) || visitNodes(cbNode, cbNodes, node.typeArguments); }, - [181 /* TypePredicate */]: function forEachChildInTypePredicate(node, cbNode, _cbNodes) { + [182 /* TypePredicate */]: function forEachChildInTypePredicate(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.assertsModifier) || visitNode2(cbNode, node.parameterName) || visitNode2(cbNode, node.type); }, - [185 /* TypeQuery */]: function forEachChildInTypeQuery(node, cbNode, cbNodes) { + [186 /* TypeQuery */]: function forEachChildInTypeQuery(node, cbNode, cbNodes) { return visitNode2(cbNode, node.exprName) || visitNodes(cbNode, cbNodes, node.typeArguments); }, - [186 /* TypeLiteral */]: function forEachChildInTypeLiteral(node, cbNode, cbNodes) { + [187 /* TypeLiteral */]: function forEachChildInTypeLiteral(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.members); }, - [187 /* ArrayType */]: function forEachChildInArrayType(node, cbNode, _cbNodes) { + [188 /* ArrayType */]: function forEachChildInArrayType(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.elementType); }, - [188 /* TupleType */]: function forEachChildInTupleType(node, cbNode, cbNodes) { + [189 /* TupleType */]: function forEachChildInTupleType(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.elements); }, - [191 /* UnionType */]: forEachChildInUnionOrIntersectionType, - [192 /* IntersectionType */]: forEachChildInUnionOrIntersectionType, - [193 /* ConditionalType */]: function forEachChildInConditionalType(node, cbNode, _cbNodes) { + [192 /* UnionType */]: forEachChildInUnionOrIntersectionType, + [193 /* IntersectionType */]: forEachChildInUnionOrIntersectionType, + [194 /* ConditionalType */]: function forEachChildInConditionalType(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.checkType) || visitNode2(cbNode, node.extendsType) || visitNode2(cbNode, node.trueType) || visitNode2(cbNode, node.falseType); }, - [194 /* InferType */]: function forEachChildInInferType(node, cbNode, _cbNodes) { + [195 /* InferType */]: function forEachChildInInferType(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.typeParameter); }, - [204 /* ImportType */]: function forEachChildInImportType(node, cbNode, cbNodes) { + [205 /* ImportType */]: function forEachChildInImportType(node, cbNode, cbNodes) { return visitNode2(cbNode, node.argument) || visitNode2(cbNode, node.assertions) || visitNode2(cbNode, node.qualifier) || visitNodes(cbNode, cbNodes, node.typeArguments); }, - [301 /* ImportTypeAssertionContainer */]: function forEachChildInImportTypeAssertionContainer(node, cbNode, _cbNodes) { + [302 /* ImportTypeAssertionContainer */]: function forEachChildInImportTypeAssertionContainer(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.assertClause); }, - [195 /* ParenthesizedType */]: forEachChildInParenthesizedTypeOrTypeOperator, - [197 /* TypeOperator */]: forEachChildInParenthesizedTypeOrTypeOperator, - [198 /* IndexedAccessType */]: function forEachChildInIndexedAccessType(node, cbNode, _cbNodes) { + [196 /* ParenthesizedType */]: forEachChildInParenthesizedTypeOrTypeOperator, + [198 /* TypeOperator */]: forEachChildInParenthesizedTypeOrTypeOperator, + [199 /* IndexedAccessType */]: function forEachChildInIndexedAccessType(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.objectType) || visitNode2(cbNode, node.indexType); }, - [199 /* MappedType */]: function forEachChildInMappedType(node, cbNode, cbNodes) { + [200 /* MappedType */]: function forEachChildInMappedType(node, cbNode, cbNodes) { return visitNode2(cbNode, node.readonlyToken) || visitNode2(cbNode, node.typeParameter) || visitNode2(cbNode, node.nameType) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.type) || visitNodes(cbNode, cbNodes, node.members); }, - [200 /* LiteralType */]: function forEachChildInLiteralType(node, cbNode, _cbNodes) { + [201 /* LiteralType */]: function forEachChildInLiteralType(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.literal); }, - [201 /* NamedTupleMember */]: function forEachChildInNamedTupleMember(node, cbNode, _cbNodes) { + [202 /* NamedTupleMember */]: function forEachChildInNamedTupleMember(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.dotDotDotToken) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.type); }, - [205 /* ObjectBindingPattern */]: forEachChildInObjectOrArrayBindingPattern, - [206 /* ArrayBindingPattern */]: forEachChildInObjectOrArrayBindingPattern, - [208 /* ArrayLiteralExpression */]: function forEachChildInArrayLiteralExpression(node, cbNode, cbNodes) { + [206 /* ObjectBindingPattern */]: forEachChildInObjectOrArrayBindingPattern, + [207 /* ArrayBindingPattern */]: forEachChildInObjectOrArrayBindingPattern, + [209 /* ArrayLiteralExpression */]: function forEachChildInArrayLiteralExpression(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.elements); }, - [209 /* ObjectLiteralExpression */]: function forEachChildInObjectLiteralExpression(node, cbNode, cbNodes) { + [210 /* ObjectLiteralExpression */]: function forEachChildInObjectLiteralExpression(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.properties); }, - [210 /* PropertyAccessExpression */]: function forEachChildInPropertyAccessExpression(node, cbNode, _cbNodes) { + [211 /* PropertyAccessExpression */]: function forEachChildInPropertyAccessExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.questionDotToken) || visitNode2(cbNode, node.name); }, - [211 /* ElementAccessExpression */]: function forEachChildInElementAccessExpression(node, cbNode, _cbNodes) { + [212 /* ElementAccessExpression */]: function forEachChildInElementAccessExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.questionDotToken) || visitNode2(cbNode, node.argumentExpression); }, - [212 /* CallExpression */]: forEachChildInCallOrNewExpression, - [213 /* NewExpression */]: forEachChildInCallOrNewExpression, - [214 /* TaggedTemplateExpression */]: function forEachChildInTaggedTemplateExpression(node, cbNode, cbNodes) { + [213 /* CallExpression */]: forEachChildInCallOrNewExpression, + [214 /* NewExpression */]: forEachChildInCallOrNewExpression, + [215 /* TaggedTemplateExpression */]: function forEachChildInTaggedTemplateExpression(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tag) || visitNode2(cbNode, node.questionDotToken) || visitNodes(cbNode, cbNodes, node.typeArguments) || visitNode2(cbNode, node.template); }, - [215 /* TypeAssertionExpression */]: function forEachChildInTypeAssertionExpression(node, cbNode, _cbNodes) { + [216 /* TypeAssertionExpression */]: function forEachChildInTypeAssertionExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.type) || visitNode2(cbNode, node.expression); }, - [216 /* ParenthesizedExpression */]: function forEachChildInParenthesizedExpression(node, cbNode, _cbNodes) { + [217 /* ParenthesizedExpression */]: function forEachChildInParenthesizedExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [219 /* DeleteExpression */]: function forEachChildInDeleteExpression(node, cbNode, _cbNodes) { + [220 /* DeleteExpression */]: function forEachChildInDeleteExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [220 /* TypeOfExpression */]: function forEachChildInTypeOfExpression(node, cbNode, _cbNodes) { + [221 /* TypeOfExpression */]: function forEachChildInTypeOfExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [221 /* VoidExpression */]: function forEachChildInVoidExpression(node, cbNode, _cbNodes) { + [222 /* VoidExpression */]: function forEachChildInVoidExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [223 /* PrefixUnaryExpression */]: function forEachChildInPrefixUnaryExpression(node, cbNode, _cbNodes) { + [224 /* PrefixUnaryExpression */]: function forEachChildInPrefixUnaryExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.operand); }, - [228 /* YieldExpression */]: function forEachChildInYieldExpression(node, cbNode, _cbNodes) { + [229 /* YieldExpression */]: function forEachChildInYieldExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.asteriskToken) || visitNode2(cbNode, node.expression); }, - [222 /* AwaitExpression */]: function forEachChildInAwaitExpression(node, cbNode, _cbNodes) { + [223 /* AwaitExpression */]: function forEachChildInAwaitExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [224 /* PostfixUnaryExpression */]: function forEachChildInPostfixUnaryExpression(node, cbNode, _cbNodes) { + [225 /* PostfixUnaryExpression */]: function forEachChildInPostfixUnaryExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.operand); }, - [225 /* BinaryExpression */]: function forEachChildInBinaryExpression(node, cbNode, _cbNodes) { + [226 /* BinaryExpression */]: function forEachChildInBinaryExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.left) || visitNode2(cbNode, node.operatorToken) || visitNode2(cbNode, node.right); }, - [233 /* AsExpression */]: function forEachChildInAsExpression(node, cbNode, _cbNodes) { + [234 /* AsExpression */]: function forEachChildInAsExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.type); }, - [234 /* NonNullExpression */]: function forEachChildInNonNullExpression(node, cbNode, _cbNodes) { + [235 /* NonNullExpression */]: function forEachChildInNonNullExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [237 /* SatisfiesExpression */]: function forEachChildInSatisfiesExpression(node, cbNode, _cbNodes) { + [238 /* SatisfiesExpression */]: function forEachChildInSatisfiesExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.type); }, - [235 /* MetaProperty */]: function forEachChildInMetaProperty(node, cbNode, _cbNodes) { + [236 /* MetaProperty */]: function forEachChildInMetaProperty(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name); }, - [226 /* ConditionalExpression */]: function forEachChildInConditionalExpression(node, cbNode, _cbNodes) { + [227 /* ConditionalExpression */]: function forEachChildInConditionalExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.condition) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.whenTrue) || visitNode2(cbNode, node.colonToken) || visitNode2(cbNode, node.whenFalse); }, - [229 /* SpreadElement */]: function forEachChildInSpreadElement(node, cbNode, _cbNodes) { + [230 /* SpreadElement */]: function forEachChildInSpreadElement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [240 /* Block */]: forEachChildInBlock, - [267 /* ModuleBlock */]: forEachChildInBlock, - [311 /* SourceFile */]: function forEachChildInSourceFile(node, cbNode, cbNodes) { + [241 /* Block */]: forEachChildInBlock, + [268 /* ModuleBlock */]: forEachChildInBlock, + [312 /* SourceFile */]: function forEachChildInSourceFile(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.statements) || visitNode2(cbNode, node.endOfFileToken); }, - [242 /* VariableStatement */]: function forEachChildInVariableStatement(node, cbNode, cbNodes) { + [243 /* VariableStatement */]: function forEachChildInVariableStatement(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.declarationList); }, - [260 /* VariableDeclarationList */]: function forEachChildInVariableDeclarationList(node, cbNode, cbNodes) { + [261 /* VariableDeclarationList */]: function forEachChildInVariableDeclarationList(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.declarations); }, - [243 /* ExpressionStatement */]: function forEachChildInExpressionStatement(node, cbNode, _cbNodes) { + [244 /* ExpressionStatement */]: function forEachChildInExpressionStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [244 /* IfStatement */]: function forEachChildInIfStatement(node, cbNode, _cbNodes) { + [245 /* IfStatement */]: function forEachChildInIfStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.thenStatement) || visitNode2(cbNode, node.elseStatement); }, - [245 /* DoStatement */]: function forEachChildInDoStatement(node, cbNode, _cbNodes) { + [246 /* DoStatement */]: function forEachChildInDoStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.statement) || visitNode2(cbNode, node.expression); }, - [246 /* WhileStatement */]: function forEachChildInWhileStatement(node, cbNode, _cbNodes) { + [247 /* WhileStatement */]: function forEachChildInWhileStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.statement); }, - [247 /* ForStatement */]: function forEachChildInForStatement(node, cbNode, _cbNodes) { + [248 /* ForStatement */]: function forEachChildInForStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.initializer) || visitNode2(cbNode, node.condition) || visitNode2(cbNode, node.incrementor) || visitNode2(cbNode, node.statement); }, - [248 /* ForInStatement */]: function forEachChildInForInStatement(node, cbNode, _cbNodes) { + [249 /* ForInStatement */]: function forEachChildInForInStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.initializer) || visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.statement); }, - [249 /* ForOfStatement */]: function forEachChildInForOfStatement(node, cbNode, _cbNodes) { + [250 /* ForOfStatement */]: function forEachChildInForOfStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.awaitModifier) || visitNode2(cbNode, node.initializer) || visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.statement); }, - [250 /* ContinueStatement */]: forEachChildInContinueOrBreakStatement, - [251 /* BreakStatement */]: forEachChildInContinueOrBreakStatement, - [252 /* ReturnStatement */]: function forEachChildInReturnStatement(node, cbNode, _cbNodes) { + [251 /* ContinueStatement */]: forEachChildInContinueOrBreakStatement, + [252 /* BreakStatement */]: forEachChildInContinueOrBreakStatement, + [253 /* ReturnStatement */]: function forEachChildInReturnStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [253 /* WithStatement */]: function forEachChildInWithStatement(node, cbNode, _cbNodes) { + [254 /* WithStatement */]: function forEachChildInWithStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.statement); }, - [254 /* SwitchStatement */]: function forEachChildInSwitchStatement(node, cbNode, _cbNodes) { + [255 /* SwitchStatement */]: function forEachChildInSwitchStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.caseBlock); }, - [268 /* CaseBlock */]: function forEachChildInCaseBlock(node, cbNode, cbNodes) { + [269 /* CaseBlock */]: function forEachChildInCaseBlock(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.clauses); }, - [295 /* CaseClause */]: function forEachChildInCaseClause(node, cbNode, cbNodes) { + [296 /* CaseClause */]: function forEachChildInCaseClause(node, cbNode, cbNodes) { return visitNode2(cbNode, node.expression) || visitNodes(cbNode, cbNodes, node.statements); }, - [296 /* DefaultClause */]: function forEachChildInDefaultClause(node, cbNode, cbNodes) { + [297 /* DefaultClause */]: function forEachChildInDefaultClause(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.statements); }, - [255 /* LabeledStatement */]: function forEachChildInLabeledStatement(node, cbNode, _cbNodes) { + [256 /* LabeledStatement */]: function forEachChildInLabeledStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.label) || visitNode2(cbNode, node.statement); }, - [256 /* ThrowStatement */]: function forEachChildInThrowStatement(node, cbNode, _cbNodes) { + [257 /* ThrowStatement */]: function forEachChildInThrowStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [257 /* TryStatement */]: function forEachChildInTryStatement(node, cbNode, _cbNodes) { + [258 /* TryStatement */]: function forEachChildInTryStatement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.tryBlock) || visitNode2(cbNode, node.catchClause) || visitNode2(cbNode, node.finallyBlock); }, - [298 /* CatchClause */]: function forEachChildInCatchClause(node, cbNode, _cbNodes) { + [299 /* CatchClause */]: function forEachChildInCatchClause(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.variableDeclaration) || visitNode2(cbNode, node.block); }, - [169 /* Decorator */]: function forEachChildInDecorator(node, cbNode, _cbNodes) { + [170 /* Decorator */]: function forEachChildInDecorator(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [262 /* ClassDeclaration */]: forEachChildInClassDeclarationOrExpression, - [230 /* ClassExpression */]: forEachChildInClassDeclarationOrExpression, - [263 /* InterfaceDeclaration */]: function forEachChildInInterfaceDeclaration(node, cbNode, cbNodes) { + [263 /* ClassDeclaration */]: forEachChildInClassDeclarationOrExpression, + [231 /* ClassExpression */]: forEachChildInClassDeclarationOrExpression, + [264 /* InterfaceDeclaration */]: function forEachChildInInterfaceDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.heritageClauses) || visitNodes(cbNode, cbNodes, node.members); }, - [264 /* TypeAliasDeclaration */]: function forEachChildInTypeAliasDeclaration(node, cbNode, cbNodes) { + [265 /* TypeAliasDeclaration */]: function forEachChildInTypeAliasDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNode2(cbNode, node.type); }, - [265 /* EnumDeclaration */]: function forEachChildInEnumDeclaration(node, cbNode, cbNodes) { + [266 /* EnumDeclaration */]: function forEachChildInEnumDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.members); }, - [305 /* EnumMember */]: function forEachChildInEnumMember(node, cbNode, _cbNodes) { + [306 /* EnumMember */]: function forEachChildInEnumMember(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.initializer); }, - [266 /* ModuleDeclaration */]: function forEachChildInModuleDeclaration(node, cbNode, cbNodes) { + [267 /* ModuleDeclaration */]: function forEachChildInModuleDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.body); }, - [270 /* ImportEqualsDeclaration */]: function forEachChildInImportEqualsDeclaration(node, cbNode, cbNodes) { + [271 /* ImportEqualsDeclaration */]: function forEachChildInImportEqualsDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.moduleReference); }, - [271 /* ImportDeclaration */]: function forEachChildInImportDeclaration(node, cbNode, cbNodes) { + [272 /* ImportDeclaration */]: function forEachChildInImportDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.importClause) || visitNode2(cbNode, node.moduleSpecifier) || visitNode2(cbNode, node.assertClause); }, - [272 /* ImportClause */]: function forEachChildInImportClause(node, cbNode, _cbNodes) { + [273 /* ImportClause */]: function forEachChildInImportClause(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.namedBindings); }, - [299 /* AssertClause */]: function forEachChildInAssertClause(node, cbNode, cbNodes) { + [300 /* AssertClause */]: function forEachChildInAssertClause(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.elements); }, - [300 /* AssertEntry */]: function forEachChildInAssertEntry(node, cbNode, _cbNodes) { + [301 /* AssertEntry */]: function forEachChildInAssertEntry(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.value); }, - [269 /* NamespaceExportDeclaration */]: function forEachChildInNamespaceExportDeclaration(node, cbNode, cbNodes) { + [270 /* NamespaceExportDeclaration */]: function forEachChildInNamespaceExportDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name); }, - [273 /* NamespaceImport */]: function forEachChildInNamespaceImport(node, cbNode, _cbNodes) { + [274 /* NamespaceImport */]: function forEachChildInNamespaceImport(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name); }, - [279 /* NamespaceExport */]: function forEachChildInNamespaceExport(node, cbNode, _cbNodes) { + [280 /* NamespaceExport */]: function forEachChildInNamespaceExport(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name); }, - [274 /* NamedImports */]: forEachChildInNamedImportsOrExports, - [278 /* NamedExports */]: forEachChildInNamedImportsOrExports, - [277 /* ExportDeclaration */]: function forEachChildInExportDeclaration(node, cbNode, cbNodes) { + [275 /* NamedImports */]: forEachChildInNamedImportsOrExports, + [279 /* NamedExports */]: forEachChildInNamedImportsOrExports, + [278 /* ExportDeclaration */]: function forEachChildInExportDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.exportClause) || visitNode2(cbNode, node.moduleSpecifier) || visitNode2(cbNode, node.assertClause); }, - [275 /* ImportSpecifier */]: forEachChildInImportOrExportSpecifier, - [280 /* ExportSpecifier */]: forEachChildInImportOrExportSpecifier, - [276 /* ExportAssignment */]: function forEachChildInExportAssignment(node, cbNode, cbNodes) { + [276 /* ImportSpecifier */]: forEachChildInImportOrExportSpecifier, + [281 /* ExportSpecifier */]: forEachChildInImportOrExportSpecifier, + [277 /* ExportAssignment */]: function forEachChildInExportAssignment(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.expression); }, - [227 /* TemplateExpression */]: function forEachChildInTemplateExpression(node, cbNode, cbNodes) { + [228 /* TemplateExpression */]: function forEachChildInTemplateExpression(node, cbNode, cbNodes) { return visitNode2(cbNode, node.head) || visitNodes(cbNode, cbNodes, node.templateSpans); }, - [238 /* TemplateSpan */]: function forEachChildInTemplateSpan(node, cbNode, _cbNodes) { + [239 /* TemplateSpan */]: function forEachChildInTemplateSpan(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.literal); }, - [202 /* TemplateLiteralType */]: function forEachChildInTemplateLiteralType(node, cbNode, cbNodes) { + [203 /* TemplateLiteralType */]: function forEachChildInTemplateLiteralType(node, cbNode, cbNodes) { return visitNode2(cbNode, node.head) || visitNodes(cbNode, cbNodes, node.templateSpans); }, - [203 /* TemplateLiteralTypeSpan */]: function forEachChildInTemplateLiteralTypeSpan(node, cbNode, _cbNodes) { + [204 /* TemplateLiteralTypeSpan */]: function forEachChildInTemplateLiteralTypeSpan(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.type) || visitNode2(cbNode, node.literal); }, - [166 /* ComputedPropertyName */]: function forEachChildInComputedPropertyName(node, cbNode, _cbNodes) { + [167 /* ComputedPropertyName */]: function forEachChildInComputedPropertyName(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [297 /* HeritageClause */]: function forEachChildInHeritageClause(node, cbNode, cbNodes) { + [298 /* HeritageClause */]: function forEachChildInHeritageClause(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.types); }, - [232 /* ExpressionWithTypeArguments */]: function forEachChildInExpressionWithTypeArguments(node, cbNode, cbNodes) { + [233 /* ExpressionWithTypeArguments */]: function forEachChildInExpressionWithTypeArguments(node, cbNode, cbNodes) { return visitNode2(cbNode, node.expression) || visitNodes(cbNode, cbNodes, node.typeArguments); }, - [282 /* ExternalModuleReference */]: function forEachChildInExternalModuleReference(node, cbNode, _cbNodes) { + [283 /* ExternalModuleReference */]: function forEachChildInExternalModuleReference(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [281 /* MissingDeclaration */]: function forEachChildInMissingDeclaration(node, cbNode, cbNodes) { + [282 /* MissingDeclaration */]: function forEachChildInMissingDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers); }, - [360 /* CommaListExpression */]: function forEachChildInCommaListExpression(node, cbNode, cbNodes) { + [361 /* CommaListExpression */]: function forEachChildInCommaListExpression(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.elements); }, - [283 /* JsxElement */]: function forEachChildInJsxElement(node, cbNode, cbNodes) { + [284 /* JsxElement */]: function forEachChildInJsxElement(node, cbNode, cbNodes) { return visitNode2(cbNode, node.openingElement) || visitNodes(cbNode, cbNodes, node.children) || visitNode2(cbNode, node.closingElement); }, - [287 /* JsxFragment */]: function forEachChildInJsxFragment(node, cbNode, cbNodes) { + [288 /* JsxFragment */]: function forEachChildInJsxFragment(node, cbNode, cbNodes) { return visitNode2(cbNode, node.openingFragment) || visitNodes(cbNode, cbNodes, node.children) || visitNode2(cbNode, node.closingFragment); }, - [284 /* JsxSelfClosingElement */]: forEachChildInJsxOpeningOrSelfClosingElement, - [285 /* JsxOpeningElement */]: forEachChildInJsxOpeningOrSelfClosingElement, - [291 /* JsxAttributes */]: function forEachChildInJsxAttributes(node, cbNode, cbNodes) { + [285 /* JsxSelfClosingElement */]: forEachChildInJsxOpeningOrSelfClosingElement, + [286 /* JsxOpeningElement */]: forEachChildInJsxOpeningOrSelfClosingElement, + [292 /* JsxAttributes */]: function forEachChildInJsxAttributes(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.properties); }, - [290 /* JsxAttribute */]: function forEachChildInJsxAttribute(node, cbNode, _cbNodes) { + [291 /* JsxAttribute */]: function forEachChildInJsxAttribute(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.initializer); }, - [292 /* JsxSpreadAttribute */]: function forEachChildInJsxSpreadAttribute(node, cbNode, _cbNodes) { + [293 /* JsxSpreadAttribute */]: function forEachChildInJsxSpreadAttribute(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); }, - [293 /* JsxExpression */]: function forEachChildInJsxExpression(node, cbNode, _cbNodes) { + [294 /* JsxExpression */]: function forEachChildInJsxExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.dotDotDotToken) || visitNode2(cbNode, node.expression); }, - [286 /* JsxClosingElement */]: function forEachChildInJsxClosingElement(node, cbNode, _cbNodes) { + [287 /* JsxClosingElement */]: function forEachChildInJsxClosingElement(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.tagName); }, - [294 /* JsxNamespacedName */]: function forEachChildInJsxNamespacedName(node, cbNode, _cbNodes) { + [295 /* JsxNamespacedName */]: function forEachChildInJsxNamespacedName(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.namespace) || visitNode2(cbNode, node.name); }, - [189 /* OptionalType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [190 /* RestType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [315 /* JSDocTypeExpression */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [321 /* JSDocNonNullableType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [320 /* JSDocNullableType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [322 /* JSDocOptionalType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [324 /* JSDocVariadicType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [323 /* JSDocFunctionType */]: function forEachChildInJSDocFunctionType(node, cbNode, cbNodes) { + [190 /* OptionalType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [191 /* RestType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [316 /* JSDocTypeExpression */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [322 /* JSDocNonNullableType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [321 /* JSDocNullableType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [323 /* JSDocOptionalType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [325 /* JSDocVariadicType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [324 /* JSDocFunctionType */]: function forEachChildInJSDocFunctionType(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); }, - [326 /* JSDoc */]: function forEachChildInJSDoc(node, cbNode, cbNodes) { + [327 /* JSDoc */]: function forEachChildInJSDoc(node, cbNode, cbNodes) { return (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)) || visitNodes(cbNode, cbNodes, node.tags); }, - [353 /* JSDocSeeTag */]: function forEachChildInJSDocSeeTag(node, cbNode, cbNodes) { + [354 /* JSDocSeeTag */]: function forEachChildInJSDocSeeTag(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.name) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); }, - [316 /* JSDocNameReference */]: function forEachChildInJSDocNameReference(node, cbNode, _cbNodes) { + [317 /* JSDocNameReference */]: function forEachChildInJSDocNameReference(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.name); }, - [317 /* JSDocMemberName */]: function forEachChildInJSDocMemberName(node, cbNode, _cbNodes) { + [318 /* JSDocMemberName */]: function forEachChildInJSDocMemberName(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.left) || visitNode2(cbNode, node.right); }, - [347 /* JSDocParameterTag */]: forEachChildInJSDocParameterOrPropertyTag, - [354 /* JSDocPropertyTag */]: forEachChildInJSDocParameterOrPropertyTag, - [336 /* JSDocAuthorTag */]: function forEachChildInJSDocAuthorTag(node, cbNode, cbNodes) { + [348 /* JSDocParameterTag */]: forEachChildInJSDocParameterOrPropertyTag, + [355 /* JSDocPropertyTag */]: forEachChildInJSDocParameterOrPropertyTag, + [337 /* JSDocAuthorTag */]: function forEachChildInJSDocAuthorTag(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tagName) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); }, - [335 /* JSDocImplementsTag */]: function forEachChildInJSDocImplementsTag(node, cbNode, cbNodes) { + [336 /* JSDocImplementsTag */]: function forEachChildInJSDocImplementsTag(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.class) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); }, - [334 /* JSDocAugmentsTag */]: function forEachChildInJSDocAugmentsTag(node, cbNode, cbNodes) { + [335 /* JSDocAugmentsTag */]: function forEachChildInJSDocAugmentsTag(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.class) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); }, - [351 /* JSDocTemplateTag */]: function forEachChildInJSDocTemplateTag(node, cbNode, cbNodes) { + [352 /* JSDocTemplateTag */]: function forEachChildInJSDocTemplateTag(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.constraint) || visitNodes(cbNode, cbNodes, node.typeParameters) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); }, - [352 /* JSDocTypedefTag */]: function forEachChildInJSDocTypedefTag(node, cbNode, cbNodes) { - return visitNode2(cbNode, node.tagName) || (node.typeExpression && node.typeExpression.kind === 315 /* JSDocTypeExpression */ ? visitNode2(cbNode, node.typeExpression) || visitNode2(cbNode, node.fullName) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)) : visitNode2(cbNode, node.fullName) || visitNode2(cbNode, node.typeExpression) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment))); + [353 /* JSDocTypedefTag */]: function forEachChildInJSDocTypedefTag(node, cbNode, cbNodes) { + return visitNode2(cbNode, node.tagName) || (node.typeExpression && node.typeExpression.kind === 316 /* JSDocTypeExpression */ ? visitNode2(cbNode, node.typeExpression) || visitNode2(cbNode, node.fullName) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)) : visitNode2(cbNode, node.fullName) || visitNode2(cbNode, node.typeExpression) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment))); }, - [344 /* JSDocCallbackTag */]: function forEachChildInJSDocCallbackTag(node, cbNode, cbNodes) { + [345 /* JSDocCallbackTag */]: function forEachChildInJSDocCallbackTag(node, cbNode, cbNodes) { return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.fullName) || visitNode2(cbNode, node.typeExpression) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); }, - [348 /* JSDocReturnTag */]: forEachChildInJSDocTypeLikeTag, - [350 /* JSDocTypeTag */]: forEachChildInJSDocTypeLikeTag, - [349 /* JSDocThisTag */]: forEachChildInJSDocTypeLikeTag, - [346 /* JSDocEnumTag */]: forEachChildInJSDocTypeLikeTag, - [356 /* JSDocSatisfiesTag */]: forEachChildInJSDocTypeLikeTag, - [355 /* JSDocThrowsTag */]: forEachChildInJSDocTypeLikeTag, - [345 /* JSDocOverloadTag */]: forEachChildInJSDocTypeLikeTag, - [329 /* JSDocSignature */]: function forEachChildInJSDocSignature(node, cbNode, _cbNodes) { + [349 /* JSDocReturnTag */]: forEachChildInJSDocTypeLikeTag, + [351 /* JSDocTypeTag */]: forEachChildInJSDocTypeLikeTag, + [350 /* JSDocThisTag */]: forEachChildInJSDocTypeLikeTag, + [347 /* JSDocEnumTag */]: forEachChildInJSDocTypeLikeTag, + [357 /* JSDocSatisfiesTag */]: forEachChildInJSDocTypeLikeTag, + [356 /* JSDocThrowsTag */]: forEachChildInJSDocTypeLikeTag, + [346 /* JSDocOverloadTag */]: forEachChildInJSDocTypeLikeTag, + [330 /* JSDocSignature */]: function forEachChildInJSDocSignature(node, cbNode, _cbNodes) { return forEach(node.typeParameters, cbNode) || forEach(node.parameters, cbNode) || visitNode2(cbNode, node.type); }, - [330 /* JSDocLink */]: forEachChildInJSDocLinkCodeOrPlain, - [331 /* JSDocLinkCode */]: forEachChildInJSDocLinkCodeOrPlain, - [332 /* JSDocLinkPlain */]: forEachChildInJSDocLinkCodeOrPlain, - [328 /* JSDocTypeLiteral */]: function forEachChildInJSDocTypeLiteral(node, cbNode, _cbNodes) { + [331 /* JSDocLink */]: forEachChildInJSDocLinkCodeOrPlain, + [332 /* JSDocLinkCode */]: forEachChildInJSDocLinkCodeOrPlain, + [333 /* JSDocLinkPlain */]: forEachChildInJSDocLinkCodeOrPlain, + [329 /* JSDocTypeLiteral */]: function forEachChildInJSDocTypeLiteral(node, cbNode, _cbNodes) { return forEach(node.jsDocPropertyTags, cbNode); }, - [333 /* JSDocTag */]: forEachChildInJSDocTag, - [338 /* JSDocClassTag */]: forEachChildInJSDocTag, - [339 /* JSDocPublicTag */]: forEachChildInJSDocTag, - [340 /* JSDocPrivateTag */]: forEachChildInJSDocTag, - [341 /* JSDocProtectedTag */]: forEachChildInJSDocTag, - [342 /* JSDocReadonlyTag */]: forEachChildInJSDocTag, - [337 /* JSDocDeprecatedTag */]: forEachChildInJSDocTag, - [343 /* JSDocOverrideTag */]: forEachChildInJSDocTag, - [359 /* PartiallyEmittedExpression */]: forEachChildInPartiallyEmittedExpression + [334 /* JSDocTag */]: forEachChildInJSDocTag, + [339 /* JSDocClassTag */]: forEachChildInJSDocTag, + [340 /* JSDocPublicTag */]: forEachChildInJSDocTag, + [341 /* JSDocPrivateTag */]: forEachChildInJSDocTag, + [342 /* JSDocProtectedTag */]: forEachChildInJSDocTag, + [343 /* JSDocReadonlyTag */]: forEachChildInJSDocTag, + [338 /* JSDocDeprecatedTag */]: forEachChildInJSDocTag, + [344 /* JSDocOverrideTag */]: forEachChildInJSDocTag, + [360 /* PartiallyEmittedExpression */]: forEachChildInPartiallyEmittedExpression }; function forEachChildInCallOrConstructSignature(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); @@ -18040,7 +18147,7 @@ function forEachChildInPartiallyEmittedExpression(node, cbNode, _cbNodes) { return visitNode2(cbNode, node.expression); } function forEachChild(node, cbNode, cbNodes) { - if (node === void 0 || node.kind <= 164 /* LastToken */) { + if (node === void 0 || node.kind <= 165 /* LastToken */) { return; } const fn = forEachChildTable[node.kind]; @@ -18075,7 +18182,7 @@ function forEachChildRecursively(rootNode, cbNode, cbNodes) { continue; return res; } - if (current.kind >= 165 /* FirstNode */) { + if (current.kind >= 166 /* FirstNode */) { for (const child of gatherPossibleChildren(current)) { queue.push(child); parents.push(current); @@ -18108,7 +18215,7 @@ var Parser; /*skipTrivia*/ true ); - var disallowInAndDecoratorContext = 4096 /* DisallowInContext */ | 16384 /* DecoratorContext */; + var disallowInAndDecoratorContext = 8192 /* DisallowInContext */ | 32768 /* DecoratorContext */; var NodeConstructor2; var TokenConstructor2; var IdentifierConstructor2; @@ -18353,10 +18460,10 @@ var Parser; switch (scriptKind) { case 1 /* JS */: case 2 /* JSX */: - contextFlags = 262144 /* JavaScriptFile */; + contextFlags = 524288 /* JavaScriptFile */; break; case 6 /* JSON */: - contextFlags = 262144 /* JavaScriptFile */ | 67108864 /* JsonFile */; + contextFlags = 524288 /* JavaScriptFile */ | 134217728 /* JsonFile */; break; default: contextFlags = 0 /* None */; @@ -18388,13 +18495,14 @@ var Parser; function parseSourceFileWorker(languageVersion2, setParentNodes, scriptKind2, setExternalModuleIndicator2) { const isDeclarationFile = isDeclarationFileName(fileName); if (isDeclarationFile) { - contextFlags |= 16777216 /* Ambient */; + contextFlags |= 33554432 /* Ambient */; } sourceFlags = contextFlags; nextToken(); const statements = parseList(0 /* SourceElements */, parseStatement); Debug.assert(token() === 1 /* EndOfFileToken */); - const endOfFileToken = addJSDocComment(parseTokenNode()); + const endHasJSDoc = hasPrecedingJSDocComment(); + const endOfFileToken = withJSDoc(parseTokenNode(), endHasJSDoc); const sourceFile = createSourceFile2(fileName, languageVersion2, scriptKind2, isDeclarationFile, statements, endOfFileToken, sourceFlags, setExternalModuleIndicator2); processCommentPragmas(sourceFile, sourceText); processPragmasIntoFields(sourceFile, reportPragmaDiagnostic); @@ -18414,18 +18522,18 @@ var Parser; parseDiagnostics.push(createDetachedDiagnostic(fileName, pos, end, diagnostic)); } } - function withJSDoc(node, hasJSDoc) { - return hasJSDoc ? addJSDocComment(node) : node; - } let hasDeprecatedTag = false; - function addJSDocComment(node) { + function withJSDoc(node, hasJSDoc) { + if (!hasJSDoc) { + return node; + } Debug.assert(!node.jsDoc); const jsDoc = mapDefined(getJSDocCommentRanges(node, sourceText), (comment) => JSDocParser.parseJSDocComment(node, comment.pos, comment.end - comment.pos)); if (jsDoc.length) node.jsDoc = jsDoc; if (hasDeprecatedTag) { hasDeprecatedTag = false; - node.flags |= 268435456 /* Deprecated */; + node.flags |= 536870912 /* Deprecated */; } return node; } @@ -18450,7 +18558,7 @@ var Parser; } speculationHelper(() => { const savedContextFlags = contextFlags; - contextFlags |= 32768 /* AwaitContext */; + contextFlags |= 65536 /* AwaitContext */; scanner.resetTokenState(nextStatement.pos); nextToken(); while (token() !== 1 /* EndOfFileToken */) { @@ -18485,7 +18593,7 @@ var Parser; syntaxCursor = savedSyntaxCursor; return factory2.updateSourceFile(sourceFile, setTextRange(factoryCreateNodeArray(statements), sourceFile.statements)); function containsPossibleTopLevelAwait(node) { - return !(node.flags & 32768 /* AwaitContext */) && !!(node.transformFlags & 67108864 /* ContainsPossibleTopLevelAwait */); + return !(node.flags & 65536 /* AwaitContext */) && !!(node.transformFlags & 67108864 /* ContainsPossibleTopLevelAwait */); } function findNextStatementWithAwait(statements2, start2) { for (let i = start2; i < statements2.length; i++) { @@ -18549,16 +18657,16 @@ var Parser; } } function setDisallowInContext(val) { - setContextFlag(val, 4096 /* DisallowInContext */); + setContextFlag(val, 8192 /* DisallowInContext */); } function setYieldContext(val) { - setContextFlag(val, 8192 /* YieldContext */); + setContextFlag(val, 16384 /* YieldContext */); } function setDecoratorContext(val) { - setContextFlag(val, 16384 /* DecoratorContext */); + setContextFlag(val, 32768 /* DecoratorContext */); } function setAwaitContext(val) { - setContextFlag(val, 32768 /* AwaitContext */); + setContextFlag(val, 65536 /* AwaitContext */); } function doOutsideOfContext(context, func) { const contextFlagsToClear = context & contextFlags; @@ -18597,52 +18705,52 @@ var Parser; return func(); } function allowInAnd(func) { - return doOutsideOfContext(4096 /* DisallowInContext */, func); + return doOutsideOfContext(8192 /* DisallowInContext */, func); } function disallowInAnd(func) { - return doInsideOfContext(4096 /* DisallowInContext */, func); + return doInsideOfContext(8192 /* DisallowInContext */, func); } function allowConditionalTypesAnd(func) { - return doOutsideOfContext(65536 /* DisallowConditionalTypesContext */, func); + return doOutsideOfContext(131072 /* DisallowConditionalTypesContext */, func); } function disallowConditionalTypesAnd(func) { - return doInsideOfContext(65536 /* DisallowConditionalTypesContext */, func); + return doInsideOfContext(131072 /* DisallowConditionalTypesContext */, func); } function doInYieldContext(func) { - return doInsideOfContext(8192 /* YieldContext */, func); + return doInsideOfContext(16384 /* YieldContext */, func); } function doInDecoratorContext(func) { - return doInsideOfContext(16384 /* DecoratorContext */, func); + return doInsideOfContext(32768 /* DecoratorContext */, func); } function doInAwaitContext(func) { - return doInsideOfContext(32768 /* AwaitContext */, func); + return doInsideOfContext(65536 /* AwaitContext */, func); } function doOutsideOfAwaitContext(func) { - return doOutsideOfContext(32768 /* AwaitContext */, func); + return doOutsideOfContext(65536 /* AwaitContext */, func); } function doInYieldAndAwaitContext(func) { - return doInsideOfContext(8192 /* YieldContext */ | 32768 /* AwaitContext */, func); + return doInsideOfContext(16384 /* YieldContext */ | 65536 /* AwaitContext */, func); } function doOutsideOfYieldAndAwaitContext(func) { - return doOutsideOfContext(8192 /* YieldContext */ | 32768 /* AwaitContext */, func); + return doOutsideOfContext(16384 /* YieldContext */ | 65536 /* AwaitContext */, func); } function inContext(flags) { return (contextFlags & flags) !== 0; } function inYieldContext() { - return inContext(8192 /* YieldContext */); + return inContext(16384 /* YieldContext */); } function inDisallowInContext() { - return inContext(4096 /* DisallowInContext */); + return inContext(8192 /* DisallowInContext */); } function inDisallowConditionalTypesContext() { - return inContext(65536 /* DisallowConditionalTypesContext */); + return inContext(131072 /* DisallowConditionalTypesContext */); } function inDecoratorContext() { - return inContext(16384 /* DecoratorContext */); + return inContext(32768 /* DecoratorContext */); } function inAwaitContext() { - return inContext(32768 /* AwaitContext */); + return inContext(65536 /* AwaitContext */); } function parseErrorAtCurrentToken(message, ...args) { return parseErrorAt(scanner.getTokenStart(), scanner.getTokenEnd(), message, ...args); @@ -18966,7 +19074,7 @@ var Parser; } if (parseErrorBeforeNextFinishedNode) { parseErrorBeforeNextFinishedNode = false; - node.flags |= 131072 /* ThisNodeHasError */; + node.flags |= 262144 /* ThisNodeHasError */; } return node; } @@ -18995,7 +19103,7 @@ var Parser; "", /*isSingleQuote*/ void 0 - ) : kind === 281 /* MissingDeclaration */ ? factory2.createMissingDeclaration() : factoryCreateToken(kind); + ) : kind === 282 /* MissingDeclaration */ ? factory2.createMissingDeclaration() : factoryCreateToken(kind); return finishNode(result, pos); } function internIdentifier(text) { @@ -19212,6 +19320,9 @@ var Parser; case 22 /* HeritageClauses */: return isHeritageClause2(); case 23 /* ImportOrExportSpecifiers */: + if (token() === 161 /* FromKeyword */ && lookAhead(nextTokenIsStringLiteral)) { + return false; + } return tokenIsIdentifierOrKeyword(token()); case 13 /* JsxAttributes */: return tokenIsIdentifierOrKeyword(token()) || token() === 19 /* OpenBraceToken */; @@ -19368,7 +19479,7 @@ var Parser; if (nodeIsMissing(node) || node.intersectsChange || containsParseError(node)) { return void 0; } - const nodeContextFlags = node.flags & 50720768 /* ContextFlags */; + const nodeContextFlags = node.flags & 101441536 /* ContextFlags */; if (nodeContextFlags !== contextFlags) { return void 0; } @@ -19426,14 +19537,14 @@ var Parser; function isReusableClassMember(node) { if (node) { switch (node.kind) { - case 175 /* Constructor */: - case 180 /* IndexSignature */: - case 176 /* GetAccessor */: - case 177 /* SetAccessor */: - case 171 /* PropertyDeclaration */: - case 239 /* SemicolonClassElement */: + case 176 /* Constructor */: + case 181 /* IndexSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 172 /* PropertyDeclaration */: + case 240 /* SemicolonClassElement */: return true; - case 173 /* MethodDeclaration */: + case 174 /* MethodDeclaration */: const methodDeclaration = node; const nameIsConstructor = methodDeclaration.name.kind === 80 /* Identifier */ && methodDeclaration.name.escapedText === "constructor"; return !nameIsConstructor; @@ -19444,8 +19555,8 @@ var Parser; function isReusableSwitchClause(node) { if (node) { switch (node.kind) { - case 295 /* CaseClause */: - case 296 /* DefaultClause */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: return true; } } @@ -19454,65 +19565,65 @@ var Parser; function isReusableStatement(node) { if (node) { switch (node.kind) { - case 261 /* FunctionDeclaration */: - case 242 /* VariableStatement */: - case 240 /* Block */: - case 244 /* IfStatement */: - case 243 /* ExpressionStatement */: - case 256 /* ThrowStatement */: - case 252 /* ReturnStatement */: - case 254 /* SwitchStatement */: - case 251 /* BreakStatement */: - case 250 /* ContinueStatement */: - case 248 /* ForInStatement */: - case 249 /* ForOfStatement */: - case 247 /* ForStatement */: - case 246 /* WhileStatement */: - case 253 /* WithStatement */: - case 241 /* EmptyStatement */: - case 257 /* TryStatement */: - case 255 /* LabeledStatement */: - case 245 /* DoStatement */: - case 258 /* DebuggerStatement */: - case 271 /* ImportDeclaration */: - case 270 /* ImportEqualsDeclaration */: - case 277 /* ExportDeclaration */: - case 276 /* ExportAssignment */: - case 266 /* ModuleDeclaration */: - case 262 /* ClassDeclaration */: - case 263 /* InterfaceDeclaration */: - case 265 /* EnumDeclaration */: - case 264 /* TypeAliasDeclaration */: + case 262 /* FunctionDeclaration */: + case 243 /* VariableStatement */: + case 241 /* Block */: + case 245 /* IfStatement */: + case 244 /* ExpressionStatement */: + case 257 /* ThrowStatement */: + case 253 /* ReturnStatement */: + case 255 /* SwitchStatement */: + case 252 /* BreakStatement */: + case 251 /* ContinueStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 248 /* ForStatement */: + case 247 /* WhileStatement */: + case 254 /* WithStatement */: + case 242 /* EmptyStatement */: + case 258 /* TryStatement */: + case 256 /* LabeledStatement */: + case 246 /* DoStatement */: + case 259 /* DebuggerStatement */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 278 /* ExportDeclaration */: + case 277 /* ExportAssignment */: + case 267 /* ModuleDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + case 265 /* TypeAliasDeclaration */: return true; } } return false; } function isReusableEnumMember(node) { - return node.kind === 305 /* EnumMember */; + return node.kind === 306 /* EnumMember */; } function isReusableTypeMember(node) { if (node) { switch (node.kind) { - case 179 /* ConstructSignature */: - case 172 /* MethodSignature */: - case 180 /* IndexSignature */: - case 170 /* PropertySignature */: - case 178 /* CallSignature */: + case 180 /* ConstructSignature */: + case 173 /* MethodSignature */: + case 181 /* IndexSignature */: + case 171 /* PropertySignature */: + case 179 /* CallSignature */: return true; } } return false; } function isReusableVariableDeclaration(node) { - if (node.kind !== 259 /* VariableDeclaration */) { + if (node.kind !== 260 /* VariableDeclaration */) { return false; } const variableDeclarator = node; return variableDeclarator.initializer === void 0; } function isReusableParameter(node) { - if (node.kind !== 168 /* Parameter */) { + if (node.kind !== 169 /* Parameter */) { return false; } const parameter = node; @@ -19570,6 +19681,9 @@ var Parser; case 22 /* HeritageClauses */: return parseErrorAtCurrentToken(Diagnostics.Unexpected_token_expected); case 23 /* ImportOrExportSpecifiers */: + if (token() === 161 /* FromKeyword */) { + return parseErrorAtCurrentToken(Diagnostics._0_expected, "}"); + } return parseErrorAtCurrentToken(Diagnostics.Identifier_expected); case 13 /* JsxAttributes */: return parseErrorAtCurrentToken(Diagnostics.Identifier_expected); @@ -19849,14 +19963,14 @@ var Parser; } function typeHasArrowFunctionBlockingParseError(node) { switch (node.kind) { - case 182 /* TypeReference */: + case 183 /* TypeReference */: return nodeIsMissing(node.typeName); - case 183 /* FunctionType */: - case 184 /* ConstructorType */: { + case 184 /* FunctionType */: + case 185 /* ConstructorType */: { const { parameters, type } = node; return isMissingList(parameters) || typeHasArrowFunctionBlockingParseError(type); } - case 195 /* ParenthesizedType */: + case 196 /* ParenthesizedType */: return typeHasArrowFunctionBlockingParseError(node.type); default: return false; @@ -20148,7 +20262,7 @@ var Parser; function parseSignatureMember(kind) { const pos = getNodePos(); const hasJSDoc = hasPrecedingJSDocComment(); - if (kind === 179 /* ConstructSignature */) { + if (kind === 180 /* ConstructSignature */) { parseExpected(105 /* NewKeyword */); } const typeParameters = parseTypeParameters(); @@ -20159,7 +20273,7 @@ var Parser; true ); parseTypeMemberSemicolon(); - const node = kind === 178 /* CallSignature */ ? factory2.createCallSignature(typeParameters, parameters, type) : factory2.createConstructSignature(typeParameters, parameters, type); + const node = kind === 179 /* CallSignature */ ? factory2.createCallSignature(typeParameters, parameters, type) : factory2.createConstructSignature(typeParameters, parameters, type); return withJSDoc(finishNode(node, pos), hasJSDoc); } function isIndexSignature() { @@ -20244,10 +20358,10 @@ var Parser; } function parseTypeMember() { if (token() === 21 /* OpenParenToken */ || token() === 30 /* LessThanToken */) { - return parseSignatureMember(178 /* CallSignature */); + return parseSignatureMember(179 /* CallSignature */); } if (token() === 105 /* NewKeyword */ && lookAhead(nextTokenIsOpenParenOrLessThan)) { - return parseSignatureMember(179 /* ConstructSignature */); + return parseSignatureMember(180 /* ConstructSignature */); } const pos = getNodePos(); const hasJSDoc = hasPrecedingJSDocComment(); @@ -20256,10 +20370,10 @@ var Parser; false ); if (parseContextualModifier(139 /* GetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 176 /* GetAccessor */, 4 /* Type */); + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* GetAccessor */, 4 /* Type */); } if (parseContextualModifier(153 /* SetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* SetAccessor */, 4 /* Type */); + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 178 /* SetAccessor */, 4 /* Type */); } if (isIndexSignature()) { return parseIndexSignatureDeclaration(pos, hasJSDoc, modifiers); @@ -20468,7 +20582,7 @@ var Parser; return finishNode(factory2.createImportTypeAssertionContainer(clause, multiLine), pos); } function parseImportType() { - sourceFlags |= 2097152 /* PossiblyContainsDynamicImport */; + sourceFlags |= 4194304 /* PossiblyContainsDynamicImport */; const pos = getNodePos(); const isTypeOf = parseOptional(114 /* TypeOfKeyword */); parseExpected(102 /* ImportKeyword */); @@ -20493,7 +20607,7 @@ var Parser; case 159 /* UnknownKeyword */: case 154 /* StringKeyword */: case 150 /* NumberKeyword */: - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: case 155 /* SymbolKeyword */: case 136 /* BooleanKeyword */: case 157 /* UndefinedKeyword */: @@ -20559,7 +20673,7 @@ var Parser; case 159 /* UnknownKeyword */: case 154 /* StringKeyword */: case 150 /* NumberKeyword */: - case 162 /* BigIntKeyword */: + case 163 /* BigIntKeyword */: case 136 /* BooleanKeyword */: case 148 /* ReadonlyKeyword */: case 155 /* SymbolKeyword */: @@ -20805,8 +20919,8 @@ var Parser; return finishNode(factory2.createTypePredicateNode(assertsModifier, parameterName, type), pos); } function parseType() { - if (contextFlags & 40960 /* TypeExcludesFlags */) { - return doOutsideOfContext(40960 /* TypeExcludesFlags */, parseType); + if (contextFlags & 81920 /* TypeExcludesFlags */) { + return doOutsideOfContext(81920 /* TypeExcludesFlags */, parseType); } if (isStartOfFunctionTypeOrConstructorType()) { return parseFunctionOrConstructorType(); @@ -20927,12 +21041,14 @@ var Parser; return arrowExpression; } const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); const expr = parseBinaryExpressionOrHigher(0 /* Lowest */); if (expr.kind === 80 /* Identifier */ && token() === 39 /* EqualsGreaterThanToken */) { return parseSimpleArrowFunctionExpression( pos, expr, allowReturnTypeInArrowFunction, + hasJSDoc, /*asyncModifier*/ void 0 ); @@ -20978,7 +21094,7 @@ var Parser; ), pos); } } - function parseSimpleArrowFunctionExpression(pos, identifier, allowReturnTypeInArrowFunction, asyncModifier) { + function parseSimpleArrowFunctionExpression(pos, identifier, allowReturnTypeInArrowFunction, hasJSDoc, asyncModifier) { Debug.assert(token() === 39 /* EqualsGreaterThanToken */, "parseSimpleArrowFunctionExpression should only have been called if we had a =>"); const parameter = factory2.createParameterDeclaration( /*modifiers*/ @@ -21011,7 +21127,7 @@ var Parser; equalsGreaterThanToken, body ); - return addJSDocComment(finishNode(node, pos)); + return withJSDoc(finishNode(node, pos), hasJSDoc); } function tryParseParenthesizedArrowFunctionExpression(allowReturnTypeInArrowFunction) { const triState = isParenthesizedArrowFunctionExpression(); @@ -21139,9 +21255,10 @@ var Parser; if (token() === 134 /* AsyncKeyword */) { if (lookAhead(isUnParenthesizedAsyncArrowFunctionWorker) === 1 /* True */) { const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); const asyncModifier = parseModifiersForArrowFunction(); const expr = parseBinaryExpressionOrHigher(0 /* Lowest */); - return parseSimpleArrowFunctionExpression(pos, expr, allowReturnTypeInArrowFunction, asyncModifier); + return parseSimpleArrowFunctionExpression(pos, expr, allowReturnTypeInArrowFunction, hasJSDoc, asyncModifier); } } return void 0; @@ -21195,7 +21312,7 @@ var Parser; return void 0; } let unwrappedType = type; - while ((unwrappedType == null ? void 0 : unwrappedType.kind) === 195 /* ParenthesizedType */) { + while ((unwrappedType == null ? void 0 : unwrappedType.kind) === 196 /* ParenthesizedType */) { unwrappedType = unwrappedType.type; } const hasJSDocFunctionType = unwrappedType && isJSDocFunctionType(unwrappedType); @@ -21258,7 +21375,7 @@ var Parser; return parseBinaryExpressionRest(precedence, leftOperand, pos); } function isInOrOfKeyword(t) { - return t === 103 /* InKeyword */ || t === 164 /* OfKeyword */; + return t === 103 /* InKeyword */ || t === 165 /* OfKeyword */; } function parseBinaryExpressionRest(precedence, leftOperand, pos) { while (true) { @@ -21340,7 +21457,7 @@ var Parser; if (token() === 43 /* AsteriskAsteriskToken */) { const pos = skipTrivia(sourceText, simpleUnaryExpression.pos); const { end } = simpleUnaryExpression; - if (simpleUnaryExpression.kind === 215 /* TypeAssertionExpression */) { + if (simpleUnaryExpression.kind === 216 /* TypeAssertionExpression */) { parseErrorAt(pos, end, Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses); } else { Debug.assert(isKeywordOrPunctuation(unaryOperator)); @@ -21427,13 +21544,13 @@ var Parser; let expression; if (token() === 102 /* ImportKeyword */) { if (lookAhead(nextTokenIsOpenParenOrLessThan)) { - sourceFlags |= 2097152 /* PossiblyContainsDynamicImport */; + sourceFlags |= 4194304 /* PossiblyContainsDynamicImport */; expression = parseTokenNode(); } else if (lookAhead(nextTokenIsDot)) { nextToken(); nextToken(); expression = finishNode(factory2.createMetaProperty(102 /* ImportKeyword */, parseIdentifierName()), pos); - sourceFlags |= 4194304 /* PossiblyContainsImportMeta */; + sourceFlags |= 8388608 /* PossiblyContainsImportMeta */; } else { expression = parseMemberExpressionOrHigher(); } @@ -21480,11 +21597,11 @@ var Parser; const pos = getNodePos(); const opening = parseJsxOpeningOrSelfClosingElementOrOpeningFragment(inExpressionContext); let result; - if (opening.kind === 285 /* JsxOpeningElement */) { + if (opening.kind === 286 /* JsxOpeningElement */) { let children = parseJsxChildren(opening); let closingElement; const lastChild = children[children.length - 1]; - if ((lastChild == null ? void 0 : lastChild.kind) === 283 /* JsxElement */ && !tagNamesAreEquivalent(lastChild.openingElement.tagName, lastChild.closingElement.tagName) && tagNamesAreEquivalent(opening.tagName, lastChild.closingElement.tagName)) { + if ((lastChild == null ? void 0 : lastChild.kind) === 284 /* JsxElement */ && !tagNamesAreEquivalent(lastChild.openingElement.tagName, lastChild.closingElement.tagName) && tagNamesAreEquivalent(opening.tagName, lastChild.closingElement.tagName)) { const end = lastChild.children.end; const newLast = finishNode( factory2.createJsxElement( @@ -21508,10 +21625,10 @@ var Parser; } } result = finishNode(factory2.createJsxElement(opening, children, closingElement), pos); - } else if (opening.kind === 288 /* JsxOpeningFragment */) { + } else if (opening.kind === 289 /* JsxOpeningFragment */) { result = finishNode(factory2.createJsxFragment(opening, parseJsxChildren(opening), parseJsxClosingFragment(inExpressionContext)), pos); } else { - Debug.assert(opening.kind === 284 /* JsxSelfClosingElement */); + Debug.assert(opening.kind === 285 /* JsxSelfClosingElement */); result = opening; } if (!mustBeUnary && inExpressionContext && token() === 30 /* LessThanToken */) { @@ -21584,7 +21701,7 @@ var Parser; if (!child) break; list.push(child); - if (isJsxOpeningElement(openingTag) && (child == null ? void 0 : child.kind) === 283 /* JsxElement */ && !tagNamesAreEquivalent(child.openingElement.tagName, child.closingElement.tagName) && tagNamesAreEquivalent(openingTag.tagName, child.closingElement.tagName)) { + if (isJsxOpeningElement(openingTag) && (child == null ? void 0 : child.kind) === 284 /* JsxElement */ && !tagNamesAreEquivalent(child.openingElement.tagName, child.closingElement.tagName) && tagNamesAreEquivalent(openingTag.tagName, child.closingElement.tagName)) { break; } } @@ -21603,7 +21720,7 @@ var Parser; return finishNode(factory2.createJsxOpeningFragment(), pos); } const tagName = parseJsxElementName(); - const typeArguments = (contextFlags & 262144 /* JavaScriptFile */) === 0 ? tryParseTypeArguments() : void 0; + const typeArguments = (contextFlags & 524288 /* JavaScriptFile */) === 0 ? tryParseTypeArguments() : void 0; const attributes = parseJsxAttributes(); let node; if (token() === 32 /* GreaterThanToken */) { @@ -21781,17 +21898,17 @@ var Parser; return token() === 29 /* QuestionDotToken */ && lookAhead(nextTokenIsIdentifierOrKeywordOrOpenBracketOrTemplate); } function tryReparseOptionalChain(node) { - if (node.flags & 32 /* OptionalChain */) { + if (node.flags & 64 /* OptionalChain */) { return true; } if (isNonNullExpression(node)) { let expr = node.expression; - while (isNonNullExpression(expr) && !(expr.flags & 32 /* OptionalChain */)) { + while (isNonNullExpression(expr) && !(expr.flags & 64 /* OptionalChain */)) { expr = expr.expression; } - if (expr.flags & 32 /* OptionalChain */) { + if (expr.flags & 64 /* OptionalChain */) { while (isNonNullExpression(node)) { - node.flags |= 32 /* OptionalChain */; + node.flags |= 64 /* OptionalChain */; node = node.expression; } return true; @@ -21857,7 +21974,7 @@ var Parser; continue; } if (isTemplateStartOfTaggedTemplate()) { - expression = !questionDotToken && expression.kind === 232 /* ExpressionWithTypeArguments */ ? parseTaggedTemplateRest(pos, expression.expression, questionDotToken, expression.typeArguments) : parseTaggedTemplateRest( + expression = !questionDotToken && expression.kind === 233 /* ExpressionWithTypeArguments */ ? parseTaggedTemplateRest(pos, expression.expression, questionDotToken, expression.typeArguments) : parseTaggedTemplateRest( pos, expression, questionDotToken, @@ -21896,8 +22013,8 @@ var Parser; true ) ); - if (questionDotToken || tag.flags & 32 /* OptionalChain */) { - tagExpression.flags |= 32 /* OptionalChain */; + if (questionDotToken || tag.flags & 64 /* OptionalChain */) { + tagExpression.flags |= 64 /* OptionalChain */; } tagExpression.questionDotToken = questionDotToken; return finishNode(tagExpression, pos); @@ -21920,7 +22037,7 @@ var Parser; } } if (typeArguments || token() === 21 /* OpenParenToken */) { - if (!questionDotToken && expression.kind === 232 /* ExpressionWithTypeArguments */) { + if (!questionDotToken && expression.kind === 233 /* ExpressionWithTypeArguments */) { typeArguments = expression.typeArguments; expression = expression.expression; } @@ -21949,7 +22066,7 @@ var Parser; return result; } function parseTypeArgumentsInExpression() { - if ((contextFlags & 262144 /* JavaScriptFile */) !== 0) { + if ((contextFlags & 524288 /* JavaScriptFile */) !== 0) { return void 0; } if (reScanLessThanToken() !== 30 /* LessThanToken */) { @@ -22081,10 +22198,10 @@ var Parser; true ); if (parseContextualModifier(139 /* GetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 176 /* GetAccessor */, 0 /* None */); + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* GetAccessor */, 0 /* None */); } if (parseContextualModifier(153 /* SetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* SetAccessor */, 0 /* None */); + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 178 /* SetAccessor */, 0 /* None */); } const asteriskToken = parseOptionalToken(42 /* AsteriskToken */); const tokenIsIdentifier = isIdentifier2(); @@ -22178,7 +22295,7 @@ var Parser; false ); let typeArguments; - if (expression.kind === 232 /* ExpressionWithTypeArguments */) { + if (expression.kind === 233 /* ExpressionWithTypeArguments */) { typeArguments = expression.typeArguments; expression = expression.expression; } @@ -22288,7 +22405,7 @@ var Parser; parseExpected(21 /* OpenParenToken */); let initializer; if (token() !== 27 /* SemicolonToken */) { - if (token() === 115 /* VarKeyword */ || token() === 121 /* LetKeyword */ || token() === 87 /* ConstKeyword */) { + if (token() === 115 /* VarKeyword */ || token() === 121 /* LetKeyword */ || token() === 87 /* ConstKeyword */ || token() === 160 /* UsingKeyword */ && lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLineDisallowOf) || token() === 135 /* AwaitKeyword */ && lookAhead(nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLineDisallowOf)) { initializer = parseVariableDeclarationList( /*inForStatementInitializer*/ true @@ -22298,7 +22415,7 @@ var Parser; } } let node; - if (awaitToken ? parseExpected(164 /* OfKeyword */) : parseOptional(164 /* OfKeyword */)) { + if (awaitToken ? parseExpected(165 /* OfKeyword */) : parseOptional(165 /* OfKeyword */)) { const expression = allowInAnd(() => parseAssignmentExpressionOrHigher( /*allowReturnTypeInArrowFunction*/ true @@ -22322,10 +22439,10 @@ var Parser; function parseBreakOrContinueStatement(kind) { const pos = getNodePos(); const hasJSDoc = hasPrecedingJSDocComment(); - parseExpected(kind === 251 /* BreakStatement */ ? 83 /* BreakKeyword */ : 88 /* ContinueKeyword */); + parseExpected(kind === 252 /* BreakStatement */ ? 83 /* BreakKeyword */ : 88 /* ContinueKeyword */); const label = canParseSemicolon() ? void 0 : parseIdentifier(); parseSemicolon(); - const node = kind === 251 /* BreakStatement */ ? factory2.createBreakStatement(label) : factory2.createContinueStatement(label); + const node = kind === 252 /* BreakStatement */ ? factory2.createBreakStatement(label) : factory2.createContinueStatement(label); return withJSDoc(finishNode(node, pos), hasJSDoc); } function parseReturnStatement() { @@ -22344,7 +22461,7 @@ var Parser; const openParenParsed = parseExpected(21 /* OpenParenToken */); const expression = allowInAnd(parseExpression); parseExpectedMatchingBrackets(21 /* OpenParenToken */, 22 /* CloseParenToken */, openParenParsed, openParenPosition); - const statement = doInsideOfContext(33554432 /* InWithStatement */, parseStatement); + const statement = doInsideOfContext(67108864 /* InWithStatement */, parseStatement); return withJSDoc(finishNode(factory2.createWithStatement(expression, statement), pos), hasJSDoc); } function parseCaseClause() { @@ -22484,6 +22601,10 @@ var Parser; case 86 /* ClassKeyword */: case 94 /* EnumKeyword */: return true; + case 160 /* UsingKeyword */: + return isUsingDeclaration(); + case 135 /* AwaitKeyword */: + return isAwaitUsingDeclaration(); case 120 /* InterfaceKeyword */: case 156 /* TypeKeyword */: return nextTokenIsIdentifierOnSameLine(); @@ -22498,12 +22619,16 @@ var Parser; case 124 /* ProtectedKeyword */: case 125 /* PublicKeyword */: case 148 /* ReadonlyKeyword */: + const previousToken = token(); nextToken(); if (scanner.hasPrecedingLineBreak()) { return false; } + if (previousToken === 138 /* DeclareKeyword */ && token() === 156 /* TypeKeyword */) { + return true; + } continue; - case 161 /* GlobalKeyword */: + case 162 /* GlobalKeyword */: nextToken(); return token() === 19 /* OpenBraceToken */ || token() === 80 /* Identifier */ || token() === 95 /* ExportKeyword */; case 102 /* ImportKeyword */: @@ -22536,6 +22661,7 @@ var Parser; case 19 /* OpenBraceToken */: case 115 /* VarKeyword */: case 121 /* LetKeyword */: + case 160 /* UsingKeyword */: case 100 /* FunctionKeyword */: case 86 /* ClassKeyword */: case 94 /* EnumKeyword */: @@ -22565,7 +22691,7 @@ var Parser; case 144 /* ModuleKeyword */: case 145 /* NamespaceKeyword */: case 156 /* TypeKeyword */: - case 161 /* GlobalKeyword */: + case 162 /* GlobalKeyword */: return true; case 129 /* AccessorKeyword */: case 125 /* PublicKeyword */: @@ -22585,6 +22711,36 @@ var Parser; function isLetDeclaration() { return lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuring); } + function nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLineDisallowOf() { + return nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine( + /*disallowOf*/ + true + ); + } + function nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine(disallowOf) { + nextToken(); + if (disallowOf && token() === 165 /* OfKeyword */) + return false; + return (isBindingIdentifier() || token() === 19 /* OpenBraceToken */) && !scanner.hasPrecedingLineBreak(); + } + function isUsingDeclaration() { + return lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine); + } + function nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLineDisallowOf() { + return nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLine( + /*disallowOf*/ + true + ); + } + function nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLine(disallowOf) { + if (nextToken() === 160 /* UsingKeyword */) { + return nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine(disallowOf); + } + return false; + } + function isAwaitUsingDeclaration() { + return lookAhead(nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLine); + } function parseStatement() { switch (token()) { case 27 /* SemicolonToken */: @@ -22611,6 +22767,26 @@ var Parser; ); } break; + case 135 /* AwaitKeyword */: + if (isAwaitUsingDeclaration()) { + return parseVariableStatement( + getNodePos(), + hasPrecedingJSDocComment(), + /*modifiers*/ + void 0 + ); + } + break; + case 160 /* UsingKeyword */: + if (isUsingDeclaration()) { + return parseVariableStatement( + getNodePos(), + hasPrecedingJSDocComment(), + /*modifiers*/ + void 0 + ); + } + break; case 100 /* FunctionKeyword */: return parseFunctionDeclaration( getNodePos(), @@ -22634,9 +22810,9 @@ var Parser; case 99 /* ForKeyword */: return parseForOrForInOrForOfStatement(); case 88 /* ContinueKeyword */: - return parseBreakOrContinueStatement(250 /* ContinueStatement */); + return parseBreakOrContinueStatement(251 /* ContinueStatement */); case 83 /* BreakKeyword */: - return parseBreakOrContinueStatement(251 /* BreakStatement */); + return parseBreakOrContinueStatement(252 /* BreakStatement */); case 107 /* ReturnKeyword */: return parseReturnStatement(); case 118 /* WithKeyword */: @@ -22670,7 +22846,7 @@ var Parser; case 129 /* AccessorKeyword */: case 126 /* StaticKeyword */: case 148 /* ReadonlyKeyword */: - case 161 /* GlobalKeyword */: + case 162 /* GlobalKeyword */: if (isStartOfDeclaration()) { return parseDeclaration(); } @@ -22695,15 +22871,15 @@ var Parser; return node; } for (const m of modifiers) { - m.flags |= 16777216 /* Ambient */; + m.flags |= 33554432 /* Ambient */; } - return doInsideOfContext(16777216 /* Ambient */, () => parseDeclarationWorker(pos, hasJSDoc, modifiers)); + return doInsideOfContext(33554432 /* Ambient */, () => parseDeclarationWorker(pos, hasJSDoc, modifiers)); } else { return parseDeclarationWorker(pos, hasJSDoc, modifiers); } } function tryReuseAmbientDeclaration(pos) { - return doInsideOfContext(16777216 /* Ambient */, () => { + return doInsideOfContext(33554432 /* Ambient */, () => { const node = currentNode(parsingContext, pos); if (node) { return consumeNode(node); @@ -22715,6 +22891,8 @@ var Parser; case 115 /* VarKeyword */: case 121 /* LetKeyword */: case 87 /* ConstKeyword */: + case 160 /* UsingKeyword */: + case 135 /* AwaitKeyword */: return parseVariableStatement(pos, hasJSDoc, modifiersIn); case 100 /* FunctionKeyword */: return parseFunctionDeclaration(pos, hasJSDoc, modifiersIn); @@ -22726,7 +22904,7 @@ var Parser; return parseTypeAliasDeclaration(pos, hasJSDoc, modifiersIn); case 94 /* EnumKeyword */: return parseEnumDeclaration(pos, hasJSDoc, modifiersIn); - case 161 /* GlobalKeyword */: + case 162 /* GlobalKeyword */: case 144 /* ModuleKeyword */: case 145 /* NamespaceKeyword */: return parseModuleDeclaration(pos, hasJSDoc, modifiersIn); @@ -22746,7 +22924,7 @@ var Parser; default: if (modifiersIn) { const missing = createMissingNode( - 281 /* MissingDeclaration */, + 282 /* MissingDeclaration */, /*reportAtCurrentPosition*/ true, Diagnostics.Declaration_expected @@ -22758,6 +22936,9 @@ var Parser; return void 0; } } + function nextTokenIsStringLiteral() { + return nextToken() === 11 /* StringLiteral */; + } function nextTokenIsIdentifierOrStringLiteralOnSameLine() { nextToken(); return !scanner.hasPrecedingLineBreak() && (isIdentifier2() || token() === 11 /* StringLiteral */); @@ -22810,14 +22991,14 @@ var Parser; function parseObjectBindingPattern() { const pos = getNodePos(); parseExpected(19 /* OpenBraceToken */); - const elements = parseDelimitedList(9 /* ObjectBindingElements */, parseObjectBindingElement); + const elements = allowInAnd(() => parseDelimitedList(9 /* ObjectBindingElements */, parseObjectBindingElement)); parseExpected(20 /* CloseBraceToken */); return finishNode(factory2.createObjectBindingPattern(elements), pos); } function parseArrayBindingPattern() { const pos = getNodePos(); parseExpected(23 /* OpenBracketToken */); - const elements = parseDelimitedList(10 /* ArrayBindingElements */, parseArrayBindingElement); + const elements = allowInAnd(() => parseDelimitedList(10 /* ArrayBindingElements */, parseArrayBindingElement)); parseExpected(24 /* CloseBracketToken */); return finishNode(factory2.createArrayBindingPattern(elements), pos); } @@ -22864,12 +23045,20 @@ var Parser; case 87 /* ConstKeyword */: flags |= 2 /* Const */; break; + case 160 /* UsingKeyword */: + flags |= 4 /* Using */; + break; + case 135 /* AwaitKeyword */: + Debug.assert(isAwaitUsingDeclaration()); + flags |= 6 /* AwaitUsing */; + nextToken(); + break; default: Debug.fail(); } nextToken(); let declarations; - if (token() === 164 /* OfKeyword */ && lookAhead(canFollowContextualOfKeyword)) { + if (token() === 165 /* OfKeyword */ && lookAhead(canFollowContextualOfKeyword)) { declarations = createMissingList(); } else { const savedDisallowIn = inDisallowInContext(); @@ -22975,7 +23164,7 @@ var Parser; function parsePropertyDeclaration(pos, hasJSDoc, modifiers, name, questionToken) { const exclamationToken = !questionToken && !scanner.hasPrecedingLineBreak() ? parseOptionalToken(54 /* ExclamationToken */) : void 0; const type = parseTypeAnnotation(); - const initializer = doOutsideOfContext(8192 /* YieldContext */ | 32768 /* AwaitContext */ | 4096 /* DisallowInContext */, parseInitializer); + const initializer = doOutsideOfContext(16384 /* YieldContext */ | 65536 /* AwaitContext */ | 8192 /* DisallowInContext */, parseInitializer); parseSemicolonAfterPropertyName(name, type, initializer); const node = factory2.createPropertyDeclaration( modifiers, @@ -23015,7 +23204,7 @@ var Parser; false ); const body = parseFunctionBlockOrSemicolon(flags); - const node = kind === 176 /* GetAccessor */ ? factory2.createGetAccessorDeclaration(modifiers, name, parameters, type, body) : factory2.createSetAccessorDeclaration(modifiers, name, parameters, body); + const node = kind === 177 /* GetAccessor */ ? factory2.createGetAccessorDeclaration(modifiers, name, parameters, type, body) : factory2.createSetAccessorDeclaration(modifiers, name, parameters, body); node.typeParameters = typeParameters; if (isSetAccessorDeclaration(node)) node.type = type; @@ -23181,10 +23370,10 @@ var Parser; return parseClassStaticBlockDeclaration(pos, hasJSDoc, modifiers); } if (parseContextualModifier(139 /* GetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 176 /* GetAccessor */, 0 /* None */); + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* GetAccessor */, 0 /* None */); } if (parseContextualModifier(153 /* SetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* SetAccessor */, 0 /* None */); + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 178 /* SetAccessor */, 0 /* None */); } if (token() === 137 /* ConstructorKeyword */ || token() === 11 /* StringLiteral */) { const constructorDeclaration = tryParseConstructorDeclaration(pos, hasJSDoc, modifiers); @@ -23199,9 +23388,9 @@ var Parser; const isAmbient = some(modifiers, isDeclareModifier); if (isAmbient) { for (const m of modifiers) { - m.flags |= 16777216 /* Ambient */; + m.flags |= 33554432 /* Ambient */; } - return doInsideOfContext(16777216 /* Ambient */, () => parsePropertyOrMethodDeclaration(pos, hasJSDoc, modifiers)); + return doInsideOfContext(33554432 /* Ambient */, () => parsePropertyOrMethodDeclaration(pos, hasJSDoc, modifiers)); } else { return parsePropertyOrMethodDeclaration(pos, hasJSDoc, modifiers); } @@ -23232,10 +23421,10 @@ var Parser; true ); if (token() === 86 /* ClassKeyword */) { - return parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, 230 /* ClassExpression */); + return parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, 231 /* ClassExpression */); } const missing = createMissingNode( - 281 /* MissingDeclaration */, + 282 /* MissingDeclaration */, /*reportAtCurrentPosition*/ true, Diagnostics.Expression_expected @@ -23250,11 +23439,11 @@ var Parser; hasPrecedingJSDocComment(), /*modifiers*/ void 0, - 230 /* ClassExpression */ + 231 /* ClassExpression */ ); } function parseClassDeclaration(pos, hasJSDoc, modifiers) { - return parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, 262 /* ClassDeclaration */); + return parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, 263 /* ClassDeclaration */); } function parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, kind) { const savedAwaitContext = inAwaitContext(); @@ -23275,7 +23464,7 @@ var Parser; members = createMissingList(); } setAwaitContext(savedAwaitContext); - const node = kind === 262 /* ClassDeclaration */ ? factory2.createClassDeclaration(modifiers, name, typeParameters, heritageClauses, members) : factory2.createClassExpression(modifiers, name, typeParameters, heritageClauses, members); + const node = kind === 263 /* ClassDeclaration */ ? factory2.createClassDeclaration(modifiers, name, typeParameters, heritageClauses, members) : factory2.createClassExpression(modifiers, name, typeParameters, heritageClauses, members); return withJSDoc(finishNode(node, pos), hasJSDoc); } function parseNameOfClassDeclarationOrExpression() { @@ -23301,7 +23490,7 @@ var Parser; function parseExpressionWithTypeArguments() { const pos = getNodePos(); const expression = parseLeftHandSideExpressionOrHigher(); - if (expression.kind === 232 /* ExpressionWithTypeArguments */) { + if (expression.kind === 233 /* ExpressionWithTypeArguments */) { return expression; } const typeArguments = tryParseTypeArguments(); @@ -23327,6 +23516,9 @@ var Parser; } function parseTypeAliasDeclaration(pos, hasJSDoc, modifiers) { parseExpected(156 /* TypeKeyword */); + if (scanner.hasPrecedingLineBreak()) { + parseErrorAtCurrentToken(Diagnostics.Line_break_not_permitted_here); + } const name = parseIdentifier(); const typeParameters = parseTypeParameters(); parseExpected(64 /* EqualsToken */); @@ -23367,7 +23559,7 @@ var Parser; return finishNode(factory2.createModuleBlock(statements), pos); } function parseModuleOrNamespaceDeclaration(pos, hasJSDoc, modifiers, flags) { - const namespaceFlag = flags & 16 /* Namespace */; + const namespaceFlag = flags & 32 /* Namespace */; const name = parseIdentifier(); const body = parseOptional(25 /* DotToken */) ? parseModuleOrNamespaceDeclaration( getNodePos(), @@ -23375,7 +23567,7 @@ var Parser; false, /*modifiers*/ void 0, - 4 /* NestedNamespace */ | namespaceFlag + 8 /* NestedNamespace */ | namespaceFlag ) : parseModuleBlock(); const node = factory2.createModuleDeclaration(modifiers, name, body, flags); return withJSDoc(finishNode(node, pos), hasJSDoc); @@ -23383,9 +23575,9 @@ var Parser; function parseAmbientExternalModuleDeclaration(pos, hasJSDoc, modifiersIn) { let flags = 0; let name; - if (token() === 161 /* GlobalKeyword */) { + if (token() === 162 /* GlobalKeyword */) { name = parseIdentifier(); - flags |= 1024 /* GlobalAugmentation */; + flags |= 2048 /* GlobalAugmentation */; } else { name = parseLiteralNode(); name.text = internIdentifier(name.text); @@ -23401,10 +23593,10 @@ var Parser; } function parseModuleDeclaration(pos, hasJSDoc, modifiersIn) { let flags = 0; - if (token() === 161 /* GlobalKeyword */) { + if (token() === 162 /* GlobalKeyword */) { return parseAmbientExternalModuleDeclaration(pos, hasJSDoc, modifiersIn); } else if (parseOptional(145 /* NamespaceKeyword */)) { - flags |= 16 /* Namespace */; + flags |= 32 /* Namespace */; } else { parseExpected(144 /* ModuleKeyword */); if (token() === 11 /* StringLiteral */) { @@ -23442,7 +23634,7 @@ var Parser; identifier = parseIdentifier(); } let isTypeOnly = false; - if (token() !== 160 /* FromKeyword */ && (identifier == null ? void 0 : identifier.escapedText) === "type" && (isIdentifier2() || tokenAfterImportDefinitelyProducesImportDeclaration())) { + if (token() !== 161 /* FromKeyword */ && (identifier == null ? void 0 : identifier.escapedText) === "type" && (isIdentifier2() || tokenAfterImportDefinitelyProducesImportDeclaration())) { isTypeOnly = true; identifier = isIdentifier2() ? parseIdentifier() : void 0; } @@ -23454,7 +23646,7 @@ var Parser; token() === 42 /* AsteriskToken */ || // import * token() === 19 /* OpenBraceToken */) { importClause = parseImportClause(identifier, afterImportPos, isTypeOnly); - parseExpected(160 /* FromKeyword */); + parseExpected(161 /* FromKeyword */); } const moduleSpecifier = parseModuleSpecifier(); let assertClause; @@ -23519,7 +23711,7 @@ var Parser; return token() === 42 /* AsteriskToken */ || token() === 19 /* OpenBraceToken */; } function tokenAfterImportedIdentifierDefinitelyProducesImportDeclaration() { - return token() === 28 /* CommaToken */ || token() === 160 /* FromKeyword */; + return token() === 28 /* CommaToken */ || token() === 161 /* FromKeyword */; } function parseImportEqualsDeclaration(pos, hasJSDoc, modifiers, identifier, isTypeOnly) { parseExpected(64 /* EqualsToken */); @@ -23532,7 +23724,7 @@ var Parser; function parseImportClause(identifier, pos, isTypeOnly) { let namedBindings; if (!identifier || parseOptional(28 /* CommaToken */)) { - namedBindings = token() === 42 /* AsteriskToken */ ? parseNamespaceImport() : parseNamedImportsOrExports(274 /* NamedImports */); + namedBindings = token() === 42 /* AsteriskToken */ ? parseNamespaceImport() : parseNamedImportsOrExports(275 /* NamedImports */); } return finishNode(factory2.createImportClause(isTypeOnly, identifier, namedBindings), pos); } @@ -23568,15 +23760,15 @@ var Parser; } function parseNamedImportsOrExports(kind) { const pos = getNodePos(); - const node = kind === 274 /* NamedImports */ ? factory2.createNamedImports(parseBracketedList(23 /* ImportOrExportSpecifiers */, parseImportSpecifier, 19 /* OpenBraceToken */, 20 /* CloseBraceToken */)) : factory2.createNamedExports(parseBracketedList(23 /* ImportOrExportSpecifiers */, parseExportSpecifier, 19 /* OpenBraceToken */, 20 /* CloseBraceToken */)); + const node = kind === 275 /* NamedImports */ ? factory2.createNamedImports(parseBracketedList(23 /* ImportOrExportSpecifiers */, parseImportSpecifier, 19 /* OpenBraceToken */, 20 /* CloseBraceToken */)) : factory2.createNamedExports(parseBracketedList(23 /* ImportOrExportSpecifiers */, parseExportSpecifier, 19 /* OpenBraceToken */, 20 /* CloseBraceToken */)); return finishNode(node, pos); } function parseExportSpecifier() { const hasJSDoc = hasPrecedingJSDocComment(); - return withJSDoc(parseImportOrExportSpecifier(280 /* ExportSpecifier */), hasJSDoc); + return withJSDoc(parseImportOrExportSpecifier(281 /* ExportSpecifier */), hasJSDoc); } function parseImportSpecifier() { - return parseImportOrExportSpecifier(275 /* ImportSpecifier */); + return parseImportOrExportSpecifier(276 /* ImportSpecifier */); } function parseImportOrExportSpecifier(kind) { const pos = getNodePos(); @@ -23620,10 +23812,10 @@ var Parser; parseExpected(130 /* AsKeyword */); name = parseNameWithKeywordCheck(); } - if (kind === 275 /* ImportSpecifier */ && checkIdentifierIsKeyword) { + if (kind === 276 /* ImportSpecifier */ && checkIdentifierIsKeyword) { parseErrorAt(checkIdentifierStart, checkIdentifierEnd, Diagnostics.Identifier_expected); } - const node = kind === 275 /* ImportSpecifier */ ? factory2.createImportSpecifier(isTypeOnly, propertyName, name) : factory2.createExportSpecifier(isTypeOnly, propertyName, name); + const node = kind === 276 /* ImportSpecifier */ ? factory2.createImportSpecifier(isTypeOnly, propertyName, name) : factory2.createExportSpecifier(isTypeOnly, propertyName, name); return finishNode(node, pos); function parseNameWithKeywordCheck() { checkIdentifierIsKeyword = isKeyword(token()) && !isIdentifier2(); @@ -23650,12 +23842,12 @@ var Parser; if (parseOptional(130 /* AsKeyword */)) { exportClause = parseNamespaceExport(namespaceExportPos); } - parseExpected(160 /* FromKeyword */); + parseExpected(161 /* FromKeyword */); moduleSpecifier = parseModuleSpecifier(); } else { - exportClause = parseNamedImportsOrExports(278 /* NamedExports */); - if (token() === 160 /* FromKeyword */ || token() === 11 /* StringLiteral */ && !scanner.hasPrecedingLineBreak()) { - parseExpected(160 /* FromKeyword */); + exportClause = parseNamedImportsOrExports(279 /* NamedExports */); + if (token() === 161 /* FromKeyword */ || token() === 11 /* StringLiteral */ && !scanner.hasPrecedingLineBreak()) { + parseExpected(161 /* FromKeyword */); moduleSpecifier = parseModuleSpecifier(); } } @@ -23760,7 +23952,7 @@ var Parser; function parseJSDocTypeExpression(mayOmitBraces) { const pos = getNodePos(); const hasBrace = (mayOmitBraces ? parseOptional : parseExpected)(19 /* OpenBraceToken */); - const type = doInsideOfContext(8388608 /* JSDoc */, parseJSDocType); + const type = doInsideOfContext(16777216 /* JSDoc */, parseJSDocType); if (!mayOmitBraces || hasBrace) { parseExpectedJSDoc(20 /* CloseBraceToken */); } @@ -23799,7 +23991,7 @@ var Parser; void 0, 1 /* JS */ ); - const jsDoc = doInsideOfContext(8388608 /* JSDoc */, () => parseJSDocCommentWorker(start, length2)); + const jsDoc = doInsideOfContext(16777216 /* JSDoc */, () => parseJSDocCommentWorker(start, length2)); const sourceFile = { languageVariant: 0 /* Standard */, text: content }; const diagnostics = attachFileToDiagnostics(parseDiagnostics, sourceFile); clearState(); @@ -23810,9 +24002,9 @@ var Parser; const saveToken = currentToken; const saveParseDiagnosticsLength = parseDiagnostics.length; const saveParseErrorBeforeNextFinishedNode = parseErrorBeforeNextFinishedNode; - const comment = doInsideOfContext(8388608 /* JSDoc */, () => parseJSDocCommentWorker(start, length2)); + const comment = doInsideOfContext(16777216 /* JSDoc */, () => parseJSDocCommentWorker(start, length2)); setParent(comment, parent); - if (contextFlags & 262144 /* JavaScriptFile */) { + if (contextFlags & 524288 /* JavaScriptFile */) { if (!jsDocDiagnostics) { jsDocDiagnostics = []; } @@ -24293,7 +24485,7 @@ var Parser; switch (node.kind) { case 151 /* ObjectKeyword */: return true; - case 187 /* ArrayType */: + case 188 /* ArrayType */: return isObjectOrObjectArrayTypeReference(node.elementType); default: return isTypeReferenceNode(node) && isIdentifier(node.typeName) && node.typeName.escapedText === "Object" && !node.typeArguments; @@ -24309,7 +24501,7 @@ var Parser; typeExpression = tryParseTypeExpression(); } const comment = parseTrailingTagComments(start2, getNodePos(), indent2, indentText); - const nestedTypeLiteral = target !== 4 /* CallbackParameter */ && parseNestedTypeLiteral(typeExpression, name, target, indent2); + const nestedTypeLiteral = parseNestedTypeLiteral(typeExpression, name, target, indent2); if (nestedTypeLiteral) { typeExpression = nestedTypeLiteral; isNameFirst = true; @@ -24323,14 +24515,14 @@ var Parser; let child; let children; while (child = tryParse(() => parseChildParameterOrPropertyTag(target, indent2, name))) { - if (child.kind === 347 /* JSDocParameterTag */ || child.kind === 354 /* JSDocPropertyTag */) { + if (child.kind === 348 /* JSDocParameterTag */ || child.kind === 355 /* JSDocPropertyTag */) { children = append(children, child); - } else if (child.kind === 351 /* JSDocTemplateTag */) { + } else if (child.kind === 352 /* JSDocTemplateTag */) { parseErrorAtRange(child.tagName, Diagnostics.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag); } } if (children) { - const literal = finishNode(factory2.createJSDocTypeLiteral(children, typeExpression.type.kind === 187 /* ArrayType */), pos); + const literal = finishNode(factory2.createJSDocTypeLiteral(children, typeExpression.type.kind === 188 /* ArrayType */), pos); return finishNode(factory2.createJSDocTypeExpression(literal), pos); } } @@ -24465,11 +24657,11 @@ var Parser; let jsDocPropertyTags; let hasChildren = false; while (child = tryParse(() => parseChildPropertyTag(indent2))) { - if (child.kind === 351 /* JSDocTemplateTag */) { + if (child.kind === 352 /* JSDocTemplateTag */) { break; } hasChildren = true; - if (child.kind === 350 /* JSDocTypeTag */) { + if (child.kind === 351 /* JSDocTypeTag */) { if (childTypeTag) { const lastError = parseErrorAtCurrentToken(Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags); if (lastError) { @@ -24484,7 +24676,7 @@ var Parser; } } if (hasChildren) { - const isArrayType = typeExpression && typeExpression.type.kind === 187 /* ArrayType */; + const isArrayType = typeExpression && typeExpression.type.kind === 188 /* ArrayType */; const jsdocTypeLiteral = factory2.createJSDocTypeLiteral(jsDocPropertyTags, isArrayType); typeExpression = childTypeTag && childTypeTag.typeExpression && !isObjectOrObjectArrayTypeReference(childTypeTag.typeExpression.type) ? childTypeTag.typeExpression : finishNode(jsdocTypeLiteral, start2); end2 = typeExpression.end; @@ -24513,12 +24705,12 @@ var Parser; void 0, typeNameOrNamespaceName, body, - nested ? 4 /* NestedNamespace */ : void 0 + nested ? 8 /* NestedNamespace */ : void 0 ); return finishNode(jsDocNamespaceNode, start2); } if (nested) { - typeNameOrNamespaceName.flags |= 2048 /* IdentifierIsInJSDocNamespace */; + typeNameOrNamespaceName.flags |= 4096 /* IdentifierIsInJSDocNamespace */; } return typeNameOrNamespaceName; } @@ -24527,7 +24719,7 @@ var Parser; let child; let parameters; while (child = tryParse(() => parseChildParameterOrPropertyTag(4 /* CallbackParameter */, indent2))) { - if (child.kind === 351 /* JSDocTemplateTag */) { + if (child.kind === 352 /* JSDocTemplateTag */) { parseErrorAtRange(child.tagName, Diagnostics.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag); break; } @@ -24540,7 +24732,7 @@ var Parser; const returnTag = tryParse(() => { if (parseOptionalJsdoc(60 /* AtToken */)) { const tag = parseTag(indent2); - if (tag && tag.kind === 348 /* JSDocReturnTag */) { + if (tag && tag.kind === 349 /* JSDocReturnTag */) { return tag; } } @@ -24595,7 +24787,7 @@ var Parser; case 60 /* AtToken */: if (canParseTag) { const child = tryParseChildTag(target, indent2); - if (child && (child.kind === 347 /* JSDocParameterTag */ || child.kind === 354 /* JSDocPropertyTag */) && target !== 4 /* CallbackParameter */ && name && (isIdentifier(child.name) || !escapedTextsEqual(name, child.name.left))) { + if (child && (child.kind === 348 /* JSDocParameterTag */ || child.kind === 355 /* JSDocPropertyTag */) && name && (isIdentifier(child.name) || !escapedTextsEqual(name, child.name.left))) { return false; } return child; @@ -24660,7 +24852,7 @@ var Parser; if (isBracketed) { skipWhitespace(); parseExpected(64 /* EqualsToken */); - defaultType = doInsideOfContext(8388608 /* JSDoc */, parseJSDocType); + defaultType = doInsideOfContext(16777216 /* JSDoc */, parseJSDocType); parseExpected(24 /* CloseBracketToken */); } if (nodeIsMissing(name)) { @@ -25228,7 +25420,7 @@ function getNamedArgRegEx(name) { return result; } var tripleSlashXMLCommentStartRegEx = /^\/\/\/\s*<(\S+)\s.*?\/>/im; -var singleLinePragmaRegEx = /^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im; +var singleLinePragmaRegEx = /^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im; function extractPragmas(pragmas, range, text) { const tripleSlash = range.kind === 2 /* SingleLineCommentTrivia */ && tripleSlashXMLCommentStartRegEx.exec(text); if (tripleSlash) { @@ -25320,7 +25512,7 @@ function tagNamesAreEquivalent(lhs, rhs) { if (lhs.kind === 110 /* ThisKeyword */) { return true; } - if (lhs.kind === 294 /* JsxNamespacedName */) { + if (lhs.kind === 295 /* JsxNamespacedName */) { return lhs.namespace.escapedText === rhs.namespace.escapedText && lhs.name.escapedText === rhs.name.escapedText; } return lhs.name.escapedText === rhs.name.escapedText && tagNamesAreEquivalent(lhs.expression, rhs.expression); @@ -25368,6 +25560,7 @@ var libEntries = [ ["es2015.symbol", "lib.es2015.symbol.d.ts"], ["es2015.symbol.wellknown", "lib.es2015.symbol.wellknown.d.ts"], ["es2016.array.include", "lib.es2016.array.include.d.ts"], + ["es2017.date", "lib.es2017.date.d.ts"], ["es2017.object", "lib.es2017.object.d.ts"], ["es2017.sharedmemory", "lib.es2017.sharedmemory.d.ts"], ["es2017.string", "lib.es2017.string.d.ts"], @@ -25403,14 +25596,18 @@ var libEntries = [ ["es2022.string", "lib.es2022.string.d.ts"], ["es2022.regexp", "lib.es2022.regexp.d.ts"], ["es2023.array", "lib.es2023.array.d.ts"], + ["es2023.collection", "lib.es2023.collection.d.ts"], ["esnext.array", "lib.es2023.array.d.ts"], + ["esnext.collection", "lib.es2023.collection.d.ts"], ["esnext.symbol", "lib.es2019.symbol.d.ts"], ["esnext.asynciterable", "lib.es2018.asynciterable.d.ts"], ["esnext.intl", "lib.esnext.intl.d.ts"], + ["esnext.disposable", "lib.esnext.disposable.d.ts"], ["esnext.bigint", "lib.es2020.bigint.d.ts"], ["esnext.string", "lib.es2022.string.d.ts"], ["esnext.promise", "lib.es2021.promise.d.ts"], ["esnext.weakref", "lib.es2021.weakref.d.ts"], + ["esnext.decorators", "lib.esnext.decorators.d.ts"], ["decorators", "lib.decorators.d.ts"], ["decorators.legacy", "lib.decorators.legacy.d.ts"] ]; @@ -25818,6 +26015,7 @@ var commandOptionsWithoutBuild = [ { name: "checkJs", type: "boolean", + affectsModuleResolution: true, showInSimplifiedHelpView: true, category: Diagnostics.JavaScript_Support, description: Diagnostics.Enable_error_reporting_in_type_checked_JavaScript_files, @@ -26044,7 +26242,7 @@ var commandOptionsWithoutBuild = [ strictFlag: true, category: Diagnostics.Type_Checking, description: Diagnostics.Default_catch_clause_variables_as_unknown_instead_of_any, - defaultValueDescription: false + defaultValueDescription: Diagnostics.false_unless_strict_is_set }, { name: "alwaysStrict", @@ -26915,7 +27113,7 @@ var typeAcquisitionDeclaration = { function convertConfigFileToObject(sourceFile, errors, jsonConversionNotifier) { var _a; const rootExpression = (_a = sourceFile.statements[0]) == null ? void 0 : _a.expression; - if (rootExpression && rootExpression.kind !== 209 /* ObjectLiteralExpression */) { + if (rootExpression && rootExpression.kind !== 210 /* ObjectLiteralExpression */) { errors.push(createDiagnosticForNodeInSourceFile( sourceFile, rootExpression, @@ -26955,7 +27153,7 @@ function convertToJson(sourceFile, rootExpression, errors, returnValue, jsonConv var _a; const result = returnValue ? {} : void 0; for (const element of node.properties) { - if (element.kind !== 302 /* PropertyAssignment */) { + if (element.kind !== 303 /* PropertyAssignment */) { errors.push(createDiagnosticForNodeInSourceFile(sourceFile, element, Diagnostics.Property_assignment_expected)); continue; } @@ -27000,15 +27198,15 @@ function convertToJson(sourceFile, rootExpression, errors, returnValue, jsonConv return valueExpression.text; case 9 /* NumericLiteral */: return Number(valueExpression.text); - case 223 /* PrefixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: if (valueExpression.operator !== 41 /* MinusToken */ || valueExpression.operand.kind !== 9 /* NumericLiteral */) { break; } return -Number(valueExpression.operand.text); - case 209 /* ObjectLiteralExpression */: + case 210 /* ObjectLiteralExpression */: const objectLiteralExpression = valueExpression; return convertObjectLiteralExpressionToJson(objectLiteralExpression, option); - case 208 /* ArrayLiteralExpression */: + case 209 /* ArrayLiteralExpression */: return convertArrayLiteralExpressionToJson( valueExpression.elements, option && option.element @@ -27037,17 +27235,17 @@ function invalidDotDotAfterRecursiveWildcard(s) { const lastDotIndex = endsWith(s, "/..") ? s.length : s.lastIndexOf("/../"); return lastDotIndex > wildcardIndex; } -function matchesExclude(pathToCheck, excludeSpecs, useCaseSensitiveFileNames, currentDirectory) { +function matchesExclude(pathToCheck, excludeSpecs, useCaseSensitiveFileNames2, currentDirectory) { return matchesExcludeWorker( pathToCheck, filter(excludeSpecs, (spec) => !invalidDotDotAfterRecursiveWildcard(spec)), - useCaseSensitiveFileNames, + useCaseSensitiveFileNames2, currentDirectory ); } -function matchesExcludeWorker(pathToCheck, excludeSpecs, useCaseSensitiveFileNames, currentDirectory, basePath) { +function matchesExcludeWorker(pathToCheck, excludeSpecs, useCaseSensitiveFileNames2, currentDirectory, basePath) { const excludePattern = getRegularExpressionForWildcard(excludeSpecs, combinePaths(normalizePath(currentDirectory), basePath), "exclude"); - const excludeRegex = excludePattern && getRegexFromPattern(excludePattern, useCaseSensitiveFileNames); + const excludeRegex = excludePattern && getRegexFromPattern(excludePattern, useCaseSensitiveFileNames2); if (!excludeRegex) return false; if (excludeRegex.test(pathToCheck)) @@ -27254,8 +27452,8 @@ function getPackageJsonTypesVersionsPaths(typesVersions) { } var nodeModulesAtTypes = combinePaths("node_modules", "@types"); function arePathsEqual(path1, path2, host) { - const useCaseSensitiveFileNames = typeof host.useCaseSensitiveFileNames === "function" ? host.useCaseSensitiveFileNames() : host.useCaseSensitiveFileNames; - return comparePaths(path1, path2, !useCaseSensitiveFileNames) === 0 /* EqualTo */; + const useCaseSensitiveFileNames2 = typeof host.useCaseSensitiveFileNames === "function" ? host.useCaseSensitiveFileNames() : host.useCaseSensitiveFileNames; + return comparePaths(path1, path2, !useCaseSensitiveFileNames2) === 0 /* EqualTo */; } function getOriginalAndResolvedFileName(fileName, host, traceEnabled) { const resolvedFileName = realPath(fileName, host, traceEnabled); @@ -28063,6 +28261,9 @@ function loadModuleFromSelfNameReference(extensions, moduleName, directory, stat } const trailingParts = parts.slice(nameParts.length); const subpath = !length(trailingParts) ? "." : `.${directorySeparator}${trailingParts.join(directorySeparator)}`; + if (getAllowJSCompilerOption(state.compilerOptions) && !pathContainsNodeModules(directory)) { + return loadModuleFromExports(scope, extensions, subpath, state, cache, redirectedReference); + } const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */); const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */); return loadModuleFromExports(scope, priorityExtensions, subpath, state, cache, redirectedReference) || loadModuleFromExports(scope, secondaryExtensions, subpath, state, cache, redirectedReference); @@ -28410,13 +28611,10 @@ function getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirec function combineDirectoryPath(root, dir) { return ensureTrailingDirectorySeparator(combinePaths(root, dir)); } - function useCaseSensitiveFileNames() { - return !state.host.useCaseSensitiveFileNames ? true : typeof state.host.useCaseSensitiveFileNames === "boolean" ? state.host.useCaseSensitiveFileNames : state.host.useCaseSensitiveFileNames(); - } function tryLoadInputFileForPath(finalPath, entry, packagePath, isImports2) { var _a, _b, _c, _d; - if (!state.isConfigLookup && (state.compilerOptions.declarationDir || state.compilerOptions.outDir) && finalPath.indexOf("/node_modules/") === -1 && (state.compilerOptions.configFile ? containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames()) : true)) { - const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames }); + if (!state.isConfigLookup && (state.compilerOptions.declarationDir || state.compilerOptions.outDir) && finalPath.indexOf("/node_modules/") === -1 && (state.compilerOptions.configFile ? containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames(state)) : true)) { + const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames: () => useCaseSensitiveFileNames(state) }); const commonSourceDirGuesses = []; if (state.compilerOptions.rootDir || state.compilerOptions.composite && state.compilerOptions.configFilePath) { const commonDir = toAbsolutePath(getCommonSourceDirectory(state.compilerOptions, () => [], ((_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a)) || "", getCanonicalFileName)); @@ -28445,7 +28643,7 @@ function getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirec for (const commonSourceDirGuess of commonSourceDirGuesses) { const candidateDirectories = getOutputDirectoriesForBaseDirectory(commonSourceDirGuess); for (const candidateDir of candidateDirectories) { - if (containsPath(candidateDir, finalPath, !useCaseSensitiveFileNames())) { + if (containsPath(candidateDir, finalPath, !useCaseSensitiveFileNames(state))) { const pathFragment = finalPath.slice(candidateDir.length + 1); const possibleInputBase = combinePaths(commonSourceDirGuess, pathFragment); const jsAndDtsExtensions = [".mjs" /* Mjs */, ".cjs" /* Cjs */, ".js" /* Js */, ".json" /* Json */, ".d.mts" /* Dmts */, ".d.cts" /* Dcts */, ".d.ts" /* Dts */]; @@ -28455,7 +28653,7 @@ function getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirec for (const possibleExt of inputExts) { if (!extensionIsOk(extensions, possibleExt)) continue; - const possibleInputWithInputExtension = changeAnyExtension(possibleInputBase, possibleExt, ext, !useCaseSensitiveFileNames()); + const possibleInputWithInputExtension = changeAnyExtension(possibleInputBase, possibleExt, ext, !useCaseSensitiveFileNames(state)); if (state.host.fileExists(possibleInputWithInputExtension)) { return toSearchResult(withPackageId(scope, loadFileNameFromPackageJsonField( extensions, @@ -28529,11 +28727,13 @@ function loadModuleFromNearestNodeModulesDirectoryWorker(extensions, moduleName, const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */); const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */); if (priorityExtensions) { + traceIfEnabled(state, Diagnostics.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0, formatExtensions(priorityExtensions)); const result = lookup(priorityExtensions); if (result) return result; } if (secondaryExtensions && !typesScopeOnly) { + traceIfEnabled(state, Diagnostics.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0, formatExtensions(secondaryExtensions)); return lookup(secondaryExtensions); } function lookup(extensions2) { @@ -28810,6 +29010,9 @@ function traceIfEnabled(state, diagnostic, ...args) { trace(state.host, diagnostic, ...args); } } +function useCaseSensitiveFileNames(state) { + return !state.host.useCaseSensitiveFileNames ? true : typeof state.host.useCaseSensitiveFileNames === "boolean" ? state.host.useCaseSensitiveFileNames : state.host.useCaseSensitiveFileNames(); +} // src/compiler/checker.ts var nextNodeId = 1; @@ -28911,6 +29114,7 @@ var CheckMode = /* @__PURE__ */ ((CheckMode3) => { CheckMode3[CheckMode3["IsForSignatureHelp"] = 16] = "IsForSignatureHelp"; CheckMode3[CheckMode3["IsForStringLiteralArgumentCompletions"] = 32] = "IsForStringLiteralArgumentCompletions"; CheckMode3[CheckMode3["RestBindingElement"] = 64] = "RestBindingElement"; + CheckMode3[CheckMode3["TypeOnly"] = 128] = "TypeOnly"; return CheckMode3; })(CheckMode || {}); var SignatureCheckMode = /* @__PURE__ */ ((SignatureCheckMode3) => { @@ -28941,7 +29145,7 @@ function isNotAccessor(declaration) { return !isAccessor(declaration); } function isNotOverload(declaration) { - return declaration.kind !== 261 /* FunctionDeclaration */ && declaration.kind !== 173 /* MethodDeclaration */ || !!declaration.body; + return declaration.kind !== 262 /* FunctionDeclaration */ && declaration.kind !== 174 /* MethodDeclaration */ || !!declaration.body; } var JsxNames; ((JsxNames2) => { @@ -29183,21 +29387,21 @@ function visitIterationBody(body, visitor, context, nodeVisitor = visitNode) { return updated; } var visitEachChildTable = { - [165 /* QualifiedName */]: function visitEachChildOfQualifiedName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [166 /* QualifiedName */]: function visitEachChildOfQualifiedName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateQualifiedName( node, Debug.checkDefined(nodeVisitor(node.left, visitor, isEntityName)), Debug.checkDefined(nodeVisitor(node.right, visitor, isIdentifier)) ); }, - [166 /* ComputedPropertyName */]: function visitEachChildOfComputedPropertyName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [167 /* ComputedPropertyName */]: function visitEachChildOfComputedPropertyName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateComputedPropertyName( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, // Signature elements - [167 /* TypeParameter */]: function visitEachChildOfTypeParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [168 /* TypeParameter */]: function visitEachChildOfTypeParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeParameterDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -29206,7 +29410,7 @@ var visitEachChildTable = { nodeVisitor(node.default, visitor, isTypeNode) ); }, - [168 /* Parameter */]: function visitEachChildOfParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [169 /* Parameter */]: function visitEachChildOfParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateParameterDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -29217,14 +29421,14 @@ var visitEachChildTable = { nodeVisitor(node.initializer, visitor, isExpression) ); }, - [169 /* Decorator */]: function visitEachChildOfDecorator(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [170 /* Decorator */]: function visitEachChildOfDecorator(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateDecorator( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, // Type elements - [170 /* PropertySignature */]: function visitEachChildOfPropertySignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [171 /* PropertySignature */]: function visitEachChildOfPropertySignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updatePropertySignature( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -29233,7 +29437,7 @@ var visitEachChildTable = { nodeVisitor(node.type, visitor, isTypeNode) ); }, - [171 /* PropertyDeclaration */]: function visitEachChildOfPropertyDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [172 /* PropertyDeclaration */]: function visitEachChildOfPropertyDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updatePropertyDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -29244,7 +29448,7 @@ var visitEachChildTable = { nodeVisitor(node.initializer, visitor, isExpression) ); }, - [172 /* MethodSignature */]: function visitEachChildOfMethodSignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [173 /* MethodSignature */]: function visitEachChildOfMethodSignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateMethodSignature( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -29255,7 +29459,7 @@ var visitEachChildTable = { nodeVisitor(node.type, visitor, isTypeNode) ); }, - [173 /* MethodDeclaration */]: function visitEachChildOfMethodDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [174 /* MethodDeclaration */]: function visitEachChildOfMethodDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateMethodDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -29268,7 +29472,7 @@ var visitEachChildTable = { visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [175 /* Constructor */]: function visitEachChildOfConstructorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [176 /* Constructor */]: function visitEachChildOfConstructorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateConstructorDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -29276,7 +29480,7 @@ var visitEachChildTable = { visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [176 /* GetAccessor */]: function visitEachChildOfGetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [177 /* GetAccessor */]: function visitEachChildOfGetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateGetAccessorDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -29286,7 +29490,7 @@ var visitEachChildTable = { visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [177 /* SetAccessor */]: function visitEachChildOfSetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [178 /* SetAccessor */]: function visitEachChildOfSetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateSetAccessorDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -29295,7 +29499,7 @@ var visitEachChildTable = { visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [174 /* ClassStaticBlockDeclaration */]: function visitEachChildOfClassStaticBlockDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [175 /* ClassStaticBlockDeclaration */]: function visitEachChildOfClassStaticBlockDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { context.startLexicalEnvironment(); context.suspendLexicalEnvironment(); return context.factory.updateClassStaticBlockDeclaration( @@ -29303,7 +29507,7 @@ var visitEachChildTable = { visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [178 /* CallSignature */]: function visitEachChildOfCallSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [179 /* CallSignature */]: function visitEachChildOfCallSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateCallSignature( node, nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), @@ -29311,7 +29515,7 @@ var visitEachChildTable = { nodeVisitor(node.type, visitor, isTypeNode) ); }, - [179 /* ConstructSignature */]: function visitEachChildOfConstructSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [180 /* ConstructSignature */]: function visitEachChildOfConstructSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateConstructSignature( node, nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), @@ -29319,7 +29523,7 @@ var visitEachChildTable = { nodeVisitor(node.type, visitor, isTypeNode) ); }, - [180 /* IndexSignature */]: function visitEachChildOfIndexSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [181 /* IndexSignature */]: function visitEachChildOfIndexSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateIndexSignature( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -29328,7 +29532,7 @@ var visitEachChildTable = { ); }, // Types - [181 /* TypePredicate */]: function visitEachChildOfTypePredicateNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [182 /* TypePredicate */]: function visitEachChildOfTypePredicateNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypePredicateNode( node, nodeVisitor(node.assertsModifier, visitor, isAssertsKeyword), @@ -29336,14 +29540,14 @@ var visitEachChildTable = { nodeVisitor(node.type, visitor, isTypeNode) ); }, - [182 /* TypeReference */]: function visitEachChildOfTypeReferenceNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [183 /* TypeReference */]: function visitEachChildOfTypeReferenceNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeReferenceNode( node, Debug.checkDefined(nodeVisitor(node.typeName, visitor, isEntityName)), nodesVisitor(node.typeArguments, visitor, isTypeNode) ); }, - [183 /* FunctionType */]: function visitEachChildOfFunctionTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [184 /* FunctionType */]: function visitEachChildOfFunctionTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateFunctionTypeNode( node, nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), @@ -29351,7 +29555,7 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [184 /* ConstructorType */]: function visitEachChildOfConstructorTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [185 /* ConstructorType */]: function visitEachChildOfConstructorTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateConstructorTypeNode( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -29360,56 +29564,56 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [185 /* TypeQuery */]: function visitEachChildOfTypeQueryNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [186 /* TypeQuery */]: function visitEachChildOfTypeQueryNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeQueryNode( node, Debug.checkDefined(nodeVisitor(node.exprName, visitor, isEntityName)), nodesVisitor(node.typeArguments, visitor, isTypeNode) ); }, - [186 /* TypeLiteral */]: function visitEachChildOfTypeLiteralNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [187 /* TypeLiteral */]: function visitEachChildOfTypeLiteralNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateTypeLiteralNode( node, nodesVisitor(node.members, visitor, isTypeElement) ); }, - [187 /* ArrayType */]: function visitEachChildOfArrayTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [188 /* ArrayType */]: function visitEachChildOfArrayTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateArrayTypeNode( node, Debug.checkDefined(nodeVisitor(node.elementType, visitor, isTypeNode)) ); }, - [188 /* TupleType */]: function visitEachChildOfTupleTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [189 /* TupleType */]: function visitEachChildOfTupleTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateTupleTypeNode( node, nodesVisitor(node.elements, visitor, isTypeNode) ); }, - [189 /* OptionalType */]: function visitEachChildOfOptionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [190 /* OptionalType */]: function visitEachChildOfOptionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateOptionalTypeNode( node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [190 /* RestType */]: function visitEachChildOfRestTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [191 /* RestType */]: function visitEachChildOfRestTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateRestTypeNode( node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [191 /* UnionType */]: function visitEachChildOfUnionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [192 /* UnionType */]: function visitEachChildOfUnionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateUnionTypeNode( node, nodesVisitor(node.types, visitor, isTypeNode) ); }, - [192 /* IntersectionType */]: function visitEachChildOfIntersectionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [193 /* IntersectionType */]: function visitEachChildOfIntersectionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateIntersectionTypeNode( node, nodesVisitor(node.types, visitor, isTypeNode) ); }, - [193 /* ConditionalType */]: function visitEachChildOfConditionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [194 /* ConditionalType */]: function visitEachChildOfConditionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateConditionalTypeNode( node, Debug.checkDefined(nodeVisitor(node.checkType, visitor, isTypeNode)), @@ -29418,13 +29622,13 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.falseType, visitor, isTypeNode)) ); }, - [194 /* InferType */]: function visitEachChildOfInferTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [195 /* InferType */]: function visitEachChildOfInferTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateInferTypeNode( node, Debug.checkDefined(nodeVisitor(node.typeParameter, visitor, isTypeParameterDeclaration)) ); }, - [204 /* ImportType */]: function visitEachChildOfImportTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [205 /* ImportType */]: function visitEachChildOfImportTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateImportTypeNode( node, Debug.checkDefined(nodeVisitor(node.argument, visitor, isTypeNode)), @@ -29434,14 +29638,14 @@ var visitEachChildTable = { node.isTypeOf ); }, - [301 /* ImportTypeAssertionContainer */]: function visitEachChildOfImportTypeAssertionContainer(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [302 /* ImportTypeAssertionContainer */]: function visitEachChildOfImportTypeAssertionContainer(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateImportTypeAssertionContainer( node, Debug.checkDefined(nodeVisitor(node.assertClause, visitor, isAssertClause)), node.multiLine ); }, - [201 /* NamedTupleMember */]: function visitEachChildOfNamedTupleMember(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [202 /* NamedTupleMember */]: function visitEachChildOfNamedTupleMember(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateNamedTupleMember( node, tokenVisitor ? nodeVisitor(node.dotDotDotToken, tokenVisitor, isDotDotDotToken) : node.dotDotDotToken, @@ -29450,26 +29654,26 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [195 /* ParenthesizedType */]: function visitEachChildOfParenthesizedType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [196 /* ParenthesizedType */]: function visitEachChildOfParenthesizedType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateParenthesizedType( node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [197 /* TypeOperator */]: function visitEachChildOfTypeOperatorNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [198 /* TypeOperator */]: function visitEachChildOfTypeOperatorNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeOperatorNode( node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [198 /* IndexedAccessType */]: function visitEachChildOfIndexedAccessType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [199 /* IndexedAccessType */]: function visitEachChildOfIndexedAccessType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateIndexedAccessTypeNode( node, Debug.checkDefined(nodeVisitor(node.objectType, visitor, isTypeNode)), Debug.checkDefined(nodeVisitor(node.indexType, visitor, isTypeNode)) ); }, - [199 /* MappedType */]: function visitEachChildOfMappedType(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [200 /* MappedType */]: function visitEachChildOfMappedType(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateMappedTypeNode( node, tokenVisitor ? nodeVisitor(node.readonlyToken, tokenVisitor, isReadonlyKeywordOrPlusOrMinusToken) : node.readonlyToken, @@ -29480,20 +29684,20 @@ var visitEachChildTable = { nodesVisitor(node.members, visitor, isTypeElement) ); }, - [200 /* LiteralType */]: function visitEachChildOfLiteralTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [201 /* LiteralType */]: function visitEachChildOfLiteralTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateLiteralTypeNode( node, Debug.checkDefined(nodeVisitor(node.literal, visitor, isLiteralTypeLiteral)) ); }, - [202 /* TemplateLiteralType */]: function visitEachChildOfTemplateLiteralType(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [203 /* TemplateLiteralType */]: function visitEachChildOfTemplateLiteralType(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTemplateLiteralType( node, Debug.checkDefined(nodeVisitor(node.head, visitor, isTemplateHead)), nodesVisitor(node.templateSpans, visitor, isTemplateLiteralTypeSpan) ); }, - [203 /* TemplateLiteralTypeSpan */]: function visitEachChildOfTemplateLiteralTypeSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [204 /* TemplateLiteralTypeSpan */]: function visitEachChildOfTemplateLiteralTypeSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTemplateLiteralTypeSpan( node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)), @@ -29501,19 +29705,19 @@ var visitEachChildTable = { ); }, // Binding patterns - [205 /* ObjectBindingPattern */]: function visitEachChildOfObjectBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [206 /* ObjectBindingPattern */]: function visitEachChildOfObjectBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateObjectBindingPattern( node, nodesVisitor(node.elements, visitor, isBindingElement) ); }, - [206 /* ArrayBindingPattern */]: function visitEachChildOfArrayBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [207 /* ArrayBindingPattern */]: function visitEachChildOfArrayBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateArrayBindingPattern( node, nodesVisitor(node.elements, visitor, isArrayBindingElement) ); }, - [207 /* BindingElement */]: function visitEachChildOfBindingElement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [208 /* BindingElement */]: function visitEachChildOfBindingElement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateBindingElement( node, tokenVisitor ? nodeVisitor(node.dotDotDotToken, tokenVisitor, isDotDotDotToken) : node.dotDotDotToken, @@ -29523,19 +29727,19 @@ var visitEachChildTable = { ); }, // Expression - [208 /* ArrayLiteralExpression */]: function visitEachChildOfArrayLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [209 /* ArrayLiteralExpression */]: function visitEachChildOfArrayLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateArrayLiteralExpression( node, nodesVisitor(node.elements, visitor, isExpression) ); }, - [209 /* ObjectLiteralExpression */]: function visitEachChildOfObjectLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [210 /* ObjectLiteralExpression */]: function visitEachChildOfObjectLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateObjectLiteralExpression( node, nodesVisitor(node.properties, visitor, isObjectLiteralElementLike) ); }, - [210 /* PropertyAccessExpression */]: function visitEachChildOfPropertyAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [211 /* PropertyAccessExpression */]: function visitEachChildOfPropertyAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return isPropertyAccessChain(node) ? context.factory.updatePropertyAccessChain( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), @@ -29547,7 +29751,7 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.name, visitor, isMemberName)) ); }, - [211 /* ElementAccessExpression */]: function visitEachChildOfElementAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [212 /* ElementAccessExpression */]: function visitEachChildOfElementAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return isElementAccessChain(node) ? context.factory.updateElementAccessChain( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), @@ -29559,7 +29763,7 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.argumentExpression, visitor, isExpression)) ); }, - [212 /* CallExpression */]: function visitEachChildOfCallExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [213 /* CallExpression */]: function visitEachChildOfCallExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return isCallChain(node) ? context.factory.updateCallChain( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), @@ -29573,7 +29777,7 @@ var visitEachChildTable = { nodesVisitor(node.arguments, visitor, isExpression) ); }, - [213 /* NewExpression */]: function visitEachChildOfNewExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [214 /* NewExpression */]: function visitEachChildOfNewExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateNewExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), @@ -29581,7 +29785,7 @@ var visitEachChildTable = { nodesVisitor(node.arguments, visitor, isExpression) ); }, - [214 /* TaggedTemplateExpression */]: function visitEachChildOfTaggedTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [215 /* TaggedTemplateExpression */]: function visitEachChildOfTaggedTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTaggedTemplateExpression( node, Debug.checkDefined(nodeVisitor(node.tag, visitor, isExpression)), @@ -29589,20 +29793,20 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.template, visitor, isTemplateLiteral)) ); }, - [215 /* TypeAssertionExpression */]: function visitEachChildOfTypeAssertionExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [216 /* TypeAssertionExpression */]: function visitEachChildOfTypeAssertionExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeAssertion( node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)), Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [216 /* ParenthesizedExpression */]: function visitEachChildOfParenthesizedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [217 /* ParenthesizedExpression */]: function visitEachChildOfParenthesizedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateParenthesizedExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [217 /* FunctionExpression */]: function visitEachChildOfFunctionExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [218 /* FunctionExpression */]: function visitEachChildOfFunctionExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateFunctionExpression( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -29614,7 +29818,7 @@ var visitEachChildTable = { visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [218 /* ArrowFunction */]: function visitEachChildOfArrowFunction(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [219 /* ArrowFunction */]: function visitEachChildOfArrowFunction(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateArrowFunction( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -29625,43 +29829,43 @@ var visitEachChildTable = { visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [219 /* DeleteExpression */]: function visitEachChildOfDeleteExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [220 /* DeleteExpression */]: function visitEachChildOfDeleteExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateDeleteExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [220 /* TypeOfExpression */]: function visitEachChildOfTypeOfExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [221 /* TypeOfExpression */]: function visitEachChildOfTypeOfExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeOfExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [221 /* VoidExpression */]: function visitEachChildOfVoidExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [222 /* VoidExpression */]: function visitEachChildOfVoidExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateVoidExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [222 /* AwaitExpression */]: function visitEachChildOfAwaitExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [223 /* AwaitExpression */]: function visitEachChildOfAwaitExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateAwaitExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [223 /* PrefixUnaryExpression */]: function visitEachChildOfPrefixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [224 /* PrefixUnaryExpression */]: function visitEachChildOfPrefixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updatePrefixUnaryExpression( node, Debug.checkDefined(nodeVisitor(node.operand, visitor, isExpression)) ); }, - [224 /* PostfixUnaryExpression */]: function visitEachChildOfPostfixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [225 /* PostfixUnaryExpression */]: function visitEachChildOfPostfixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updatePostfixUnaryExpression( node, Debug.checkDefined(nodeVisitor(node.operand, visitor, isExpression)) ); }, - [225 /* BinaryExpression */]: function visitEachChildOfBinaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [226 /* BinaryExpression */]: function visitEachChildOfBinaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateBinaryExpression( node, Debug.checkDefined(nodeVisitor(node.left, visitor, isExpression)), @@ -29669,7 +29873,7 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.right, visitor, isExpression)) ); }, - [226 /* ConditionalExpression */]: function visitEachChildOfConditionalExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [227 /* ConditionalExpression */]: function visitEachChildOfConditionalExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateConditionalExpression( node, Debug.checkDefined(nodeVisitor(node.condition, visitor, isExpression)), @@ -29679,27 +29883,27 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.whenFalse, visitor, isExpression)) ); }, - [227 /* TemplateExpression */]: function visitEachChildOfTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [228 /* TemplateExpression */]: function visitEachChildOfTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTemplateExpression( node, Debug.checkDefined(nodeVisitor(node.head, visitor, isTemplateHead)), nodesVisitor(node.templateSpans, visitor, isTemplateSpan) ); }, - [228 /* YieldExpression */]: function visitEachChildOfYieldExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [229 /* YieldExpression */]: function visitEachChildOfYieldExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateYieldExpression( node, tokenVisitor ? nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken) : node.asteriskToken, nodeVisitor(node.expression, visitor, isExpression) ); }, - [229 /* SpreadElement */]: function visitEachChildOfSpreadElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [230 /* SpreadElement */]: function visitEachChildOfSpreadElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateSpreadElement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [230 /* ClassExpression */]: function visitEachChildOfClassExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [231 /* ClassExpression */]: function visitEachChildOfClassExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateClassExpression( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -29709,28 +29913,28 @@ var visitEachChildTable = { nodesVisitor(node.members, visitor, isClassElement) ); }, - [232 /* ExpressionWithTypeArguments */]: function visitEachChildOfExpressionWithTypeArguments(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [233 /* ExpressionWithTypeArguments */]: function visitEachChildOfExpressionWithTypeArguments(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateExpressionWithTypeArguments( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), nodesVisitor(node.typeArguments, visitor, isTypeNode) ); }, - [233 /* AsExpression */]: function visitEachChildOfAsExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [234 /* AsExpression */]: function visitEachChildOfAsExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateAsExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [237 /* SatisfiesExpression */]: function visitEachChildOfSatisfiesExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [238 /* SatisfiesExpression */]: function visitEachChildOfSatisfiesExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateSatisfiesExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [234 /* NonNullExpression */]: function visitEachChildOfNonNullExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [235 /* NonNullExpression */]: function visitEachChildOfNonNullExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return isOptionalChain(node) ? context.factory.updateNonNullChain( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) @@ -29739,14 +29943,14 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [235 /* MetaProperty */]: function visitEachChildOfMetaProperty(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [236 /* MetaProperty */]: function visitEachChildOfMetaProperty(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateMetaProperty( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) ); }, // Misc - [238 /* TemplateSpan */]: function visitEachChildOfTemplateSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [239 /* TemplateSpan */]: function visitEachChildOfTemplateSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTemplateSpan( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), @@ -29754,26 +29958,26 @@ var visitEachChildTable = { ); }, // Element - [240 /* Block */]: function visitEachChildOfBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [241 /* Block */]: function visitEachChildOfBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateBlock( node, nodesVisitor(node.statements, visitor, isStatement) ); }, - [242 /* VariableStatement */]: function visitEachChildOfVariableStatement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [243 /* VariableStatement */]: function visitEachChildOfVariableStatement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateVariableStatement( node, nodesVisitor(node.modifiers, visitor, isModifierLike), Debug.checkDefined(nodeVisitor(node.declarationList, visitor, isVariableDeclarationList)) ); }, - [243 /* ExpressionStatement */]: function visitEachChildOfExpressionStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [244 /* ExpressionStatement */]: function visitEachChildOfExpressionStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateExpressionStatement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [244 /* IfStatement */]: function visitEachChildOfIfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [245 /* IfStatement */]: function visitEachChildOfIfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateIfStatement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), @@ -29781,21 +29985,21 @@ var visitEachChildTable = { nodeVisitor(node.elseStatement, visitor, isStatement, context.factory.liftToBlock) ); }, - [245 /* DoStatement */]: function visitEachChildOfDoStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [246 /* DoStatement */]: function visitEachChildOfDoStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateDoStatement( node, visitIterationBody(node.statement, visitor, context, nodeVisitor), Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [246 /* WhileStatement */]: function visitEachChildOfWhileStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [247 /* WhileStatement */]: function visitEachChildOfWhileStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateWhileStatement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), visitIterationBody(node.statement, visitor, context, nodeVisitor) ); }, - [247 /* ForStatement */]: function visitEachChildOfForStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [248 /* ForStatement */]: function visitEachChildOfForStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateForStatement( node, nodeVisitor(node.initializer, visitor, isForInitializer), @@ -29804,7 +30008,7 @@ var visitEachChildTable = { visitIterationBody(node.statement, visitor, context, nodeVisitor) ); }, - [248 /* ForInStatement */]: function visitEachChildOfForInStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [249 /* ForInStatement */]: function visitEachChildOfForInStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateForInStatement( node, Debug.checkDefined(nodeVisitor(node.initializer, visitor, isForInitializer)), @@ -29812,7 +30016,7 @@ var visitEachChildTable = { visitIterationBody(node.statement, visitor, context, nodeVisitor) ); }, - [249 /* ForOfStatement */]: function visitEachChildOfForOfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [250 /* ForOfStatement */]: function visitEachChildOfForOfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateForOfStatement( node, tokenVisitor ? nodeVisitor(node.awaitModifier, tokenVisitor, isAwaitKeyword) : node.awaitModifier, @@ -29821,52 +30025,52 @@ var visitEachChildTable = { visitIterationBody(node.statement, visitor, context, nodeVisitor) ); }, - [250 /* ContinueStatement */]: function visitEachChildOfContinueStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [251 /* ContinueStatement */]: function visitEachChildOfContinueStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateContinueStatement( node, nodeVisitor(node.label, visitor, isIdentifier) ); }, - [251 /* BreakStatement */]: function visitEachChildOfBreakStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [252 /* BreakStatement */]: function visitEachChildOfBreakStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateBreakStatement( node, nodeVisitor(node.label, visitor, isIdentifier) ); }, - [252 /* ReturnStatement */]: function visitEachChildOfReturnStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [253 /* ReturnStatement */]: function visitEachChildOfReturnStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateReturnStatement( node, nodeVisitor(node.expression, visitor, isExpression) ); }, - [253 /* WithStatement */]: function visitEachChildOfWithStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [254 /* WithStatement */]: function visitEachChildOfWithStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateWithStatement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), Debug.checkDefined(nodeVisitor(node.statement, visitor, isStatement, context.factory.liftToBlock)) ); }, - [254 /* SwitchStatement */]: function visitEachChildOfSwitchStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [255 /* SwitchStatement */]: function visitEachChildOfSwitchStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateSwitchStatement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), Debug.checkDefined(nodeVisitor(node.caseBlock, visitor, isCaseBlock)) ); }, - [255 /* LabeledStatement */]: function visitEachChildOfLabeledStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [256 /* LabeledStatement */]: function visitEachChildOfLabeledStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateLabeledStatement( node, Debug.checkDefined(nodeVisitor(node.label, visitor, isIdentifier)), Debug.checkDefined(nodeVisitor(node.statement, visitor, isStatement, context.factory.liftToBlock)) ); }, - [256 /* ThrowStatement */]: function visitEachChildOfThrowStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [257 /* ThrowStatement */]: function visitEachChildOfThrowStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateThrowStatement( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [257 /* TryStatement */]: function visitEachChildOfTryStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [258 /* TryStatement */]: function visitEachChildOfTryStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTryStatement( node, Debug.checkDefined(nodeVisitor(node.tryBlock, visitor, isBlock)), @@ -29874,7 +30078,7 @@ var visitEachChildTable = { nodeVisitor(node.finallyBlock, visitor, isBlock) ); }, - [259 /* VariableDeclaration */]: function visitEachChildOfVariableDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + [260 /* VariableDeclaration */]: function visitEachChildOfVariableDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateVariableDeclaration( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isBindingName)), @@ -29883,13 +30087,13 @@ var visitEachChildTable = { nodeVisitor(node.initializer, visitor, isExpression) ); }, - [260 /* VariableDeclarationList */]: function visitEachChildOfVariableDeclarationList(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [261 /* VariableDeclarationList */]: function visitEachChildOfVariableDeclarationList(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateVariableDeclarationList( node, nodesVisitor(node.declarations, visitor, isVariableDeclaration) ); }, - [261 /* FunctionDeclaration */]: function visitEachChildOfFunctionDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + [262 /* FunctionDeclaration */]: function visitEachChildOfFunctionDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { return context.factory.updateFunctionDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifier), @@ -29901,7 +30105,7 @@ var visitEachChildTable = { visitFunctionBody(node.body, visitor, context, nodeVisitor) ); }, - [262 /* ClassDeclaration */]: function visitEachChildOfClassDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [263 /* ClassDeclaration */]: function visitEachChildOfClassDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateClassDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -29911,7 +30115,7 @@ var visitEachChildTable = { nodesVisitor(node.members, visitor, isClassElement) ); }, - [263 /* InterfaceDeclaration */]: function visitEachChildOfInterfaceDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [264 /* InterfaceDeclaration */]: function visitEachChildOfInterfaceDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateInterfaceDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -29921,7 +30125,7 @@ var visitEachChildTable = { nodesVisitor(node.members, visitor, isTypeElement) ); }, - [264 /* TypeAliasDeclaration */]: function visitEachChildOfTypeAliasDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [265 /* TypeAliasDeclaration */]: function visitEachChildOfTypeAliasDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateTypeAliasDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -29930,7 +30134,7 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) ); }, - [265 /* EnumDeclaration */]: function visitEachChildOfEnumDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [266 /* EnumDeclaration */]: function visitEachChildOfEnumDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateEnumDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -29938,7 +30142,7 @@ var visitEachChildTable = { nodesVisitor(node.members, visitor, isEnumMember) ); }, - [266 /* ModuleDeclaration */]: function visitEachChildOfModuleDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [267 /* ModuleDeclaration */]: function visitEachChildOfModuleDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateModuleDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -29946,25 +30150,25 @@ var visitEachChildTable = { nodeVisitor(node.body, visitor, isModuleBody) ); }, - [267 /* ModuleBlock */]: function visitEachChildOfModuleBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [268 /* ModuleBlock */]: function visitEachChildOfModuleBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateModuleBlock( node, nodesVisitor(node.statements, visitor, isStatement) ); }, - [268 /* CaseBlock */]: function visitEachChildOfCaseBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [269 /* CaseBlock */]: function visitEachChildOfCaseBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateCaseBlock( node, nodesVisitor(node.clauses, visitor, isCaseOrDefaultClause) ); }, - [269 /* NamespaceExportDeclaration */]: function visitEachChildOfNamespaceExportDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [270 /* NamespaceExportDeclaration */]: function visitEachChildOfNamespaceExportDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateNamespaceExportDeclaration( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) ); }, - [270 /* ImportEqualsDeclaration */]: function visitEachChildOfImportEqualsDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [271 /* ImportEqualsDeclaration */]: function visitEachChildOfImportEqualsDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateImportEqualsDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -29973,7 +30177,7 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.moduleReference, visitor, isModuleReference)) ); }, - [271 /* ImportDeclaration */]: function visitEachChildOfImportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [272 /* ImportDeclaration */]: function visitEachChildOfImportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateImportDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -29982,21 +30186,21 @@ var visitEachChildTable = { nodeVisitor(node.assertClause, visitor, isAssertClause) ); }, - [299 /* AssertClause */]: function visitEachChildOfAssertClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [300 /* AssertClause */]: function visitEachChildOfAssertClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateAssertClause( node, nodesVisitor(node.elements, visitor, isAssertEntry), node.multiLine ); }, - [300 /* AssertEntry */]: function visitEachChildOfAssertEntry(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [301 /* AssertEntry */]: function visitEachChildOfAssertEntry(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateAssertEntry( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isAssertionKey)), Debug.checkDefined(nodeVisitor(node.value, visitor, isExpression)) ); }, - [272 /* ImportClause */]: function visitEachChildOfImportClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [273 /* ImportClause */]: function visitEachChildOfImportClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateImportClause( node, node.isTypeOnly, @@ -30004,25 +30208,25 @@ var visitEachChildTable = { nodeVisitor(node.namedBindings, visitor, isNamedImportBindings) ); }, - [273 /* NamespaceImport */]: function visitEachChildOfNamespaceImport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [274 /* NamespaceImport */]: function visitEachChildOfNamespaceImport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateNamespaceImport( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) ); }, - [279 /* NamespaceExport */]: function visitEachChildOfNamespaceExport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [280 /* NamespaceExport */]: function visitEachChildOfNamespaceExport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateNamespaceExport( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) ); }, - [274 /* NamedImports */]: function visitEachChildOfNamedImports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [275 /* NamedImports */]: function visitEachChildOfNamedImports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateNamedImports( node, nodesVisitor(node.elements, visitor, isImportSpecifier) ); }, - [275 /* ImportSpecifier */]: function visitEachChildOfImportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [276 /* ImportSpecifier */]: function visitEachChildOfImportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateImportSpecifier( node, node.isTypeOnly, @@ -30030,14 +30234,14 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) ); }, - [276 /* ExportAssignment */]: function visitEachChildOfExportAssignment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [277 /* ExportAssignment */]: function visitEachChildOfExportAssignment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateExportAssignment( node, nodesVisitor(node.modifiers, visitor, isModifierLike), Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [277 /* ExportDeclaration */]: function visitEachChildOfExportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [278 /* ExportDeclaration */]: function visitEachChildOfExportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateExportDeclaration( node, nodesVisitor(node.modifiers, visitor, isModifierLike), @@ -30047,13 +30251,13 @@ var visitEachChildTable = { nodeVisitor(node.assertClause, visitor, isAssertClause) ); }, - [278 /* NamedExports */]: function visitEachChildOfNamedExports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [279 /* NamedExports */]: function visitEachChildOfNamedExports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateNamedExports( node, nodesVisitor(node.elements, visitor, isExportSpecifier) ); }, - [280 /* ExportSpecifier */]: function visitEachChildOfExportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [281 /* ExportSpecifier */]: function visitEachChildOfExportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateExportSpecifier( node, node.isTypeOnly, @@ -30062,14 +30266,14 @@ var visitEachChildTable = { ); }, // Module references - [282 /* ExternalModuleReference */]: function visitEachChildOfExternalModuleReference(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [283 /* ExternalModuleReference */]: function visitEachChildOfExternalModuleReference(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateExternalModuleReference( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, // JSX - [283 /* JsxElement */]: function visitEachChildOfJsxElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [284 /* JsxElement */]: function visitEachChildOfJsxElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxElement( node, Debug.checkDefined(nodeVisitor(node.openingElement, visitor, isJsxOpeningElement)), @@ -30077,7 +30281,7 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.closingElement, visitor, isJsxClosingElement)) ); }, - [284 /* JsxSelfClosingElement */]: function visitEachChildOfJsxSelfClosingElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [285 /* JsxSelfClosingElement */]: function visitEachChildOfJsxSelfClosingElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxSelfClosingElement( node, Debug.checkDefined(nodeVisitor(node.tagName, visitor, isJsxTagNameExpression)), @@ -30085,7 +30289,7 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.attributes, visitor, isJsxAttributes)) ); }, - [285 /* JsxOpeningElement */]: function visitEachChildOfJsxOpeningElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [286 /* JsxOpeningElement */]: function visitEachChildOfJsxOpeningElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxOpeningElement( node, Debug.checkDefined(nodeVisitor(node.tagName, visitor, isJsxTagNameExpression)), @@ -30093,20 +30297,20 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.attributes, visitor, isJsxAttributes)) ); }, - [286 /* JsxClosingElement */]: function visitEachChildOfJsxClosingElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [287 /* JsxClosingElement */]: function visitEachChildOfJsxClosingElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxClosingElement( node, Debug.checkDefined(nodeVisitor(node.tagName, visitor, isJsxTagNameExpression)) ); }, - [294 /* JsxNamespacedName */]: function forEachChildInJsxNamespacedName2(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [295 /* JsxNamespacedName */]: function forEachChildInJsxNamespacedName2(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxNamespacedName( node, Debug.checkDefined(nodeVisitor(node.namespace, visitor, isIdentifier)), Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) ); }, - [287 /* JsxFragment */]: function visitEachChildOfJsxFragment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [288 /* JsxFragment */]: function visitEachChildOfJsxFragment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxFragment( node, Debug.checkDefined(nodeVisitor(node.openingFragment, visitor, isJsxOpeningFragment)), @@ -30114,52 +30318,52 @@ var visitEachChildTable = { Debug.checkDefined(nodeVisitor(node.closingFragment, visitor, isJsxClosingFragment)) ); }, - [290 /* JsxAttribute */]: function visitEachChildOfJsxAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [291 /* JsxAttribute */]: function visitEachChildOfJsxAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxAttribute( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isJsxAttributeName)), nodeVisitor(node.initializer, visitor, isStringLiteralOrJsxExpression) ); }, - [291 /* JsxAttributes */]: function visitEachChildOfJsxAttributes(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [292 /* JsxAttributes */]: function visitEachChildOfJsxAttributes(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateJsxAttributes( node, nodesVisitor(node.properties, visitor, isJsxAttributeLike) ); }, - [292 /* JsxSpreadAttribute */]: function visitEachChildOfJsxSpreadAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [293 /* JsxSpreadAttribute */]: function visitEachChildOfJsxSpreadAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxSpreadAttribute( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [293 /* JsxExpression */]: function visitEachChildOfJsxExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [294 /* JsxExpression */]: function visitEachChildOfJsxExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateJsxExpression( node, nodeVisitor(node.expression, visitor, isExpression) ); }, // Clauses - [295 /* CaseClause */]: function visitEachChildOfCaseClause(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + [296 /* CaseClause */]: function visitEachChildOfCaseClause(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateCaseClause( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), nodesVisitor(node.statements, visitor, isStatement) ); }, - [296 /* DefaultClause */]: function visitEachChildOfDefaultClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [297 /* DefaultClause */]: function visitEachChildOfDefaultClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateDefaultClause( node, nodesVisitor(node.statements, visitor, isStatement) ); }, - [297 /* HeritageClause */]: function visitEachChildOfHeritageClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [298 /* HeritageClause */]: function visitEachChildOfHeritageClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateHeritageClause( node, nodesVisitor(node.types, visitor, isExpressionWithTypeArguments) ); }, - [298 /* CatchClause */]: function visitEachChildOfCatchClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [299 /* CatchClause */]: function visitEachChildOfCatchClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateCatchClause( node, nodeVisitor(node.variableDeclaration, visitor, isVariableDeclaration), @@ -30167,28 +30371,28 @@ var visitEachChildTable = { ); }, // Property assignments - [302 /* PropertyAssignment */]: function visitEachChildOfPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [303 /* PropertyAssignment */]: function visitEachChildOfPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updatePropertyAssignment( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), Debug.checkDefined(nodeVisitor(node.initializer, visitor, isExpression)) ); }, - [303 /* ShorthandPropertyAssignment */]: function visitEachChildOfShorthandPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [304 /* ShorthandPropertyAssignment */]: function visitEachChildOfShorthandPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateShorthandPropertyAssignment( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)), nodeVisitor(node.objectAssignmentInitializer, visitor, isExpression) ); }, - [304 /* SpreadAssignment */]: function visitEachChildOfSpreadAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [305 /* SpreadAssignment */]: function visitEachChildOfSpreadAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateSpreadAssignment( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, // Enum - [305 /* EnumMember */]: function visitEachChildOfEnumMember(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [306 /* EnumMember */]: function visitEachChildOfEnumMember(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updateEnumMember( node, Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), @@ -30196,20 +30400,20 @@ var visitEachChildTable = { ); }, // Top-level nodes - [311 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context, _nodesVisitor, _nodeVisitor, _tokenVisitor) { + [312 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context, _nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateSourceFile( node, visitLexicalEnvironment(node.statements, visitor, context) ); }, // Transformation nodes - [359 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [360 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updatePartiallyEmittedExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [360 /* CommaListExpression */]: function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [361 /* CommaListExpression */]: function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateCommaListExpression( node, nodesVisitor(node.elements, visitor, isExpression) @@ -30606,7 +30810,7 @@ var plainJSErrors = /* @__PURE__ */ new Set([ Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code, Diagnostics.Duplicate_label_0.code, Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments.code, - Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block.code, + Diagnostics.for_await_loops_cannot_be_used_inside_a_class_static_block.code, Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code, Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code, Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code, @@ -30636,14 +30840,17 @@ var plainJSErrors = /* @__PURE__ */ new Set([ Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind.code, Diagnostics._0_modifier_cannot_be_used_here.code, Diagnostics._0_modifier_must_precede_1_modifier.code, - Diagnostics.const_declarations_can_only_be_declared_inside_a_block.code, - Diagnostics.const_declarations_must_be_initialized.code, + Diagnostics._0_declarations_can_only_be_declared_inside_a_block.code, + Diagnostics._0_declarations_must_be_initialized.code, Diagnostics.extends_clause_already_seen.code, - Diagnostics.let_declarations_can_only_be_declared_inside_a_block.code, Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code, Diagnostics.Class_constructor_may_not_be_a_generator.code, Diagnostics.Class_constructor_may_not_be_an_accessor.code, - Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code + Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code, + Diagnostics.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code, + Diagnostics.Private_field_0_must_be_declared_in_an_enclosing_class.code, + // Type errors + Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code ]); // src/compiler/builderState.ts diff --git a/node_modules/typescript/package.json b/node_modules/typescript/package.json index 34b5df1..3fbb3b8 100644 --- a/node_modules/typescript/package.json +++ b/node_modules/typescript/package.json @@ -2,7 +2,7 @@ "name": "typescript", "author": "Microsoft Corp.", "homepage": "https://www.typescriptlang.org/", - "version": "5.1.6", + "version": "5.2.2", "license": "Apache-2.0", "description": "TypeScript is a language for application scale JavaScript development", "keywords": [ @@ -40,7 +40,7 @@ ], "devDependencies": { "@esfx/canceltoken": "^1.0.0", - "@octokit/rest": "latest", + "@octokit/rest": "^19.0.13", "@types/chai": "^4.3.4", "@types/fs-extra": "^9.0.13", "@types/glob": "^8.1.0", @@ -51,19 +51,19 @@ "@types/node": "latest", "@types/source-map-support": "^0.5.6", "@types/which": "^2.0.1", - "@typescript-eslint/eslint-plugin": "^5.33.1", - "@typescript-eslint/parser": "^5.33.1", - "@typescript-eslint/utils": "^5.33.1", + "@typescript-eslint/eslint-plugin": "^6.0.0", + "@typescript-eslint/parser": "^6.0.0", + "@typescript-eslint/utils": "^6.0.0", "azure-devops-node-api": "^12.0.0", + "c8": "^7.14.0", "chai": "^4.3.7", "chalk": "^4.1.2", "chokidar": "^3.5.3", "del": "^6.1.1", "diff": "^5.1.0", - "esbuild": "^0.17.2", + "esbuild": "^0.18.1", "eslint": "^8.22.0", "eslint-formatter-autolinkable-stylish": "^1.2.0", - "eslint-plugin-import": "^2.26.0", "eslint-plugin-local": "^1.0.0", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-simple-import-sort": "^10.0.0", diff --git a/package-lock.json b/package-lock.json index 6641b96..732d547 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,72 +1,227 @@ { - "name": "paradox-anticheat", - "version": "3.3.4", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "paradox-anticheat", - "version": "3.3.4", - "hasInstallScript": true, - "dependencies": { - "@minecraft/server": "1.4.0-beta.1.20.10-stable", - "@minecraft/server-ui": "1.2.0-beta.1.20.10-stable", - "i": "^0.3.7", - "typescript": "5.1.6" - }, - "devDependencies": { - "7zip-bin": "5.2.0", - "prettier": "3.0.0" - } - }, - "node_modules/@minecraft/server": { - "version": "1.4.0-beta.1.20.10-stable", - "license": "MIT" - }, - "node_modules/@minecraft/server-ui": { - "version": "1.2.0-beta.1.20.10-stable", - "license": "MIT", - "dependencies": { - "@minecraft/server": "^1.4.0-beta.1.20.10-stable" - } - }, - "node_modules/7zip-bin": { - "version": "5.2.0", - "dev": true, - "license": "MIT" - }, - "node_modules/i": { - "version": "0.3.7", - "resolved": "https://registry.npmjs.org/i/-/i-0.3.7.tgz", - "integrity": "sha512-FYz4wlXgkQwIPqhzC5TdNMLSE5+GS1IIDJZY/1ZiEPCT2S3COUVZeT5OW4BmW4r5LHLQuOosSwsvnroG9GR59Q==", - "engines": { - "node": ">=0.4" - } - }, - "node_modules/prettier": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "bin": { - "prettier": "bin/prettier.cjs" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, - "node_modules/typescript": { - "version": "5.1.6", - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - } + "name": "paradox-anticheat", + "version": "3.3.6", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "paradox-anticheat", + "version": "3.3.6", + "hasInstallScript": true, + "license": "ISC", + "dependencies": { + "@minecraft/server": "1.6.0-beta.1.20.30-stable", + "@minecraft/server-ui": "1.2.0-beta.1.20.30-stable", + "ejs": "^3.1.9", + "typescript": "5.2.2" + }, + "devDependencies": { + "7zip-bin": "5.2.0", + "prettier": "3.0.3" + } + }, + "node_modules/@minecraft/server": { + "version": "1.6.0-beta.1.20.30-stable", + "resolved": "https://registry.npmjs.org/@minecraft/server/-/server-1.6.0-beta.1.20.30-stable.tgz", + "integrity": "sha512-hvRjxbI7cl7LVAv+wmw253O6IHFUVBEMvTl+FJLnUaQv9f/JkGBaVDKgyH0yR7G1SMgVLRoQIA5CM8IZWYDHew==" + }, + "node_modules/@minecraft/server-ui": { + "version": "1.2.0-beta.1.20.30-stable", + "resolved": "https://registry.npmjs.org/@minecraft/server-ui/-/server-ui-1.2.0-beta.1.20.30-stable.tgz", + "integrity": "sha512-0Sk3qFwOmMpihk/q5LTlpi4TfsuM6I/3PbMz1ijM/3zFP49CgXu9ZyDAYT6gQAOtnBIaQBM0Y7BFVrwtxDoMYw==", + "dependencies": { + "@minecraft/server": "^1.6.0-beta.1.20.30-stable" + } + }, + "node_modules/7zip-bin": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/7zip-bin/-/7zip-bin-5.2.0.tgz", + "integrity": "sha512-ukTPVhqG4jNzMro2qA9HSCSSVJN3aN7tlb+hfqYCt3ER0yWroeA2VR38MNrOHLQ/cVj+DaIMad0kFCtWWowh/A==", + "dev": true + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/async": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", + "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==" + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + }, + "node_modules/ejs": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.9.tgz", + "integrity": "sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ==", + "dependencies": { + "jake": "^10.8.5" + }, + "bin": { + "ejs": "bin/cli.js" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/filelist": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", + "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", + "dependencies": { + "minimatch": "^5.0.1" + } + }, + "node_modules/filelist/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/filelist/node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/jake": { + "version": "10.8.7", + "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.7.tgz", + "integrity": "sha512-ZDi3aP+fG/LchyBzUM804VjddnwfSfsdeYkwt8NcbKRvo4rFkjhs456iLFn3k2ZUWvNe4i48WACDbza8fhq2+w==", + "dependencies": { + "async": "^3.2.3", + "chalk": "^4.0.2", + "filelist": "^1.0.4", + "minimatch": "^3.1.2" + }, + "bin": { + "jake": "bin/cli.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/prettier": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz", + "integrity": "sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==", + "dev": true, + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/typescript": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", + "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } } + } } diff --git a/package.json b/package.json index 9596bac..948cf60 100644 --- a/package.json +++ b/package.json @@ -1,46 +1,49 @@ { - "name": "paradox-anticheat", - "version": "3.3.4", - "productName": "Paradox-AntiCheat", - "description": "A utility to fight against malicious hackers on Bedrock Edition", - "private": true, - "devDependencies": { - "7zip-bin": "5.2.0", - "prettier": "3.0.0" - }, - "dependencies": { - "@minecraft/server": "1.4.0-beta.1.20.10-stable", - "@minecraft/server-ui": "1.2.0-beta.1.20.10-stable", - "i": "^0.3.7", - "typescript": "5.1.6" - }, - "prettier": { - "trailingComma": "es5", - "tabWidth": 4, - "useTabs": false, - "semi": true, - "printWidth": 250 - }, - "scripts": { - "postinstall": "npm install --prefix src @minecraft/vanilla-data@1.20.10 && npm install --prefix src crypto-es@2.0.4", - "enableMcLoopback": "CheckNetIsolation.exe LoopbackExempt -a -p=S-1-15-2-1958404141-86561845-1752920682-3514627264-368642714-62675701-733520436", - "enableMcPreviewLoopback": "CheckNetIsolation.exe LoopbackExempt -a -p=S-1-15-2-424268864-5579737-879501358-346833251-474568803-887069379-4040235476", - "format": "npx prettier --write --ignore-path .prettierignore ./", - "linux//": " --- BUILD (Linux) --- ", - "clean": "rm -rf build/", - "mkDirs": "mkdir -p build", - "copy:vanilla-data": "cp -R src/node_modules build/scripts", - "copy:assets": "cp -R animation_controllers/ animations entities/ functions/ CHANGELOG.md LICENSE manifest.json pack_icon.png README.md build", - "build": "./node_modules/typescript/bin/tsc -p tsconfig.json; npm run copy:assets; npm run copy:vanilla-data", - "dist": "npm run clean; npm run format; npm run build; cd build; zip -0 -r Paradox-AntiCheat-v${npm_package_version}.mcpack .", - "windows//": " --- BUILD (Windows) --- ", - "clean_win": "rd /s /q build>nul 2>&1|echo.>nul", - "mkdir_win": "@if exist build (rd /s /q build && mkdir build) else (mkdir build)", - "copy:win-vanilla-data": "@powershell Copy-Item -Path ^(\\\"src\\node_modules\\\"^) -Destination \"build\\scripts\" -Recurse", - "copy_assets_win": "@powershell Copy-Item -Path ^(\\\"animation_controllers\\\",\\\"animations\\\",\\\"entities\\\",\\\"functions\\\",\\\"CHANGELOG.md\\\",\\\"LICENSE\\\",\\\"manifest.json\\\",\\\"pack_icon.png\\\",\\\"README.md\\\"^) -Destination \"build\" -Recurse", - "win": "npm run mkdir_win 1>nul && node node_modules\\typescript\\bin\\tsc -p tsconfig.json && npm run copy_assets_win 1>nul && npm run copy:win-vanilla-data 1>nul", - "build_win_noscript": "npm run mkdir_win 1>nul && npm run copy_assets_win 1>nul", - "zip_win": "npm run clean_win && npm run build_win && cd build && node -e \"const path = require('path'); const arch = process.arch.startsWith('arm') ? 'arm64' : (process.arch === 'x32' ? 'ia32' : 'x64'); const executable = path.join(__dirname, '..', 'node_modules', '7zip-bin', 'win', arch, '7za'); require('child_process').execSync(`${executable} a -tzip Paradox-AntiCheat-v%npm_package_version%.zip .`);\"", - "dist_win": "npm run clean_win && npm run format && npm run build_win 1>nul && npm run zip_win 1>nul && powershell -Command \"Rename-Item -Path 'build\\Paradox-AntiCheat-v%npm_package_version%.zip' -NewName 'Paradox-AntiCheat-v%npm_package_version%.mcpack'\"" - } + "name": "paradox-anticheat", + "version": "3.3.6", + "productName": "Paradox-AntiCheat", + "description": "A utility to fight against malicious hackers on Bedrock Edition", + "private": true, + "devDependencies": { + "7zip-bin": "5.2.0", + "prettier": "3.0.3" + }, + "dependencies": { + "@minecraft/server": "1.6.0-beta.1.20.30-stable", + "@minecraft/server-ui": "1.2.0-beta.1.20.30-stable", + "ejs": "^3.1.9", + "typescript": "5.2.2" + }, + "prettier": { + "trailingComma": "es5", + "tabWidth": 4, + "useTabs": false, + "semi": true, + "printWidth": 250 + }, + "scripts": { + "postinstall": "npm install --prefix src @minecraft/vanilla-data@1.20.30 && npm install --prefix src crypto-es@2.0.4", + "enableMcLoopback": "CheckNetIsolation.exe LoopbackExempt -a -p=S-1-15-2-1958404141-86561845-1752920682-3514627264-368642714-62675701-733520436", + "enableMcPreviewLoopback": "CheckNetIsolation.exe LoopbackExempt -a -p=S-1-15-2-424268864-5579737-879501358-346833251-474568803-887069379-4040235476", + "format": "npx prettier --write --ignore-path .prettierignore ./", + "linux//": " --- BUILD (Linux) --- ", + "clean": "rm -rf build/", + "mkDirs": "mkdir -p build", + "copy:vanilla-data": "cp -R src/node_modules build/scripts", + "copy:assets": "cp -R animation_controllers/ animations entities/ functions/ CHANGELOG.md LICENSE manifest.json pack_icon.png README.md build", + "build": "./node_modules/typescript/bin/tsc -p tsconfig.json; npm run copy:assets; npm run copy:vanilla-data", + "dist": "npm run clean; npm run format; npm run build; cd build; zip -0 -r Paradox-AntiCheat-v${npm_package_version}.mcpack .", + "windows//": " --- BUILD (Windows) --- ", + "clean_win": "rd /s /q build>nul 2>&1|echo.>nul", + "mkdir_win": "@if exist build (rd /s /q build && mkdir build) else (mkdir build)", + "copy:win-vanilla-data": "@powershell Copy-Item -Path ^(\\\"src\\node_modules\\\"^) -Destination \"build\\scripts\" -Recurse", + "copy_assets_win": "@powershell Copy-Item -Path ^(\\\"animation_controllers\\\",\\\"animations\\\",\\\"entities\\\",\\\"functions\\\",\\\"CHANGELOG.md\\\",\\\"LICENSE\\\",\\\"manifest.json\\\",\\\"pack_icon.png\\\",\\\"README.md\\\"^) -Destination \"build\" -Recurse", + "build_win": "npm run mkdir_win 1>nul && node node_modules\\typescript\\bin\\tsc -p tsconfig.json && npm run copy_assets_win 1>nul && npm run copy:win-vanilla-data 1>nul", + "build_win_noscript": "npm run mkdir_win 1>nul && npm run copy_assets_win 1>nul", + "zip_win": "npm run clean_win && npm run build_win && cd build && node -e \"const path = require('path'); const arch = process.arch.startsWith('arm') ? 'arm64' : (process.arch === 'x32' ? 'ia32' : 'x64'); const executable = path.join(__dirname, '..', 'node_modules', '7zip-bin', 'win', arch, '7za'); require('child_process').execSync(`${executable} a -tzip Paradox-AntiCheat-v%npm_package_version%.zip .`);\"", + "dist_win": "npm run clean_win && npm run format && npm run build_win 1>nul && npm run zip_win 1>nul && powershell -Command \"Rename-Item -Path 'build\\Paradox-AntiCheat-v%npm_package_version%.zip' -NewName 'Paradox-AntiCheat-v%npm_package_version%.mcpack'\"" + }, + "main": "index.js", + "author": "", + "license": "ISC" } diff --git a/src/classes/ChatChannelManager.ts b/src/classes/ChatChannelManager.ts index 0d1085d..a5bf1ba 100644 --- a/src/classes/ChatChannelManager.ts +++ b/src/classes/ChatChannelManager.ts @@ -136,7 +136,7 @@ export class ChatChannelManager { membersArray.forEach((thisMember) => { const thisPlayer: Player | null = this.getPlayerById(thisMember); // Let members know that this channel no longer exists - sendMsgToPlayer(thisPlayer, `§f§4[§6Paradox§4]§f '${channelName}' has been disbanded.`); + sendMsgToPlayer(thisPlayer, `§f§4[§6Paradox§4]§f '§7${channelName}§f' has been disbanded.`); this.playerChannelMap[thisMember] = null; }); diff --git a/src/classes/ScoreManager.ts b/src/classes/ScoreManager.ts index 36a2cc9..857dd65 100644 --- a/src/classes/ScoreManager.ts +++ b/src/classes/ScoreManager.ts @@ -58,7 +58,6 @@ export class ScoreManager { "spammervl", "namespoofvl", "speedvl", - "crashervl", "reachvl", "invalidsprintvl", "armorvl", diff --git a/src/commands/debug_commands/listitems.ts b/src/commands/debug_commands/listitems.ts index 3c7bfbd..c0f2e90 100644 --- a/src/commands/debug_commands/listitems.ts +++ b/src/commands/debug_commands/listitems.ts @@ -1,4 +1,4 @@ -import { ChatSendAfterEvent, ItemStack, Player } from "@minecraft/server"; +import { ChatSendAfterEvent, ItemStack, Player, } from "@minecraft/server"; import { MinecraftItemTypes } from "../../node_modules/@minecraft/vanilla-data/lib/index"; import config from "../../data/config.js"; import { getPrefix, sendMsgToPlayer } from "../../util.js"; diff --git a/src/commands/handler.ts b/src/commands/handler.ts index 1c2fa39..bdfee57 100644 --- a/src/commands/handler.ts +++ b/src/commands/handler.ts @@ -1,4 +1,4 @@ -import { ChatSendAfterEvent, ChatSendBeforeEvent, Player } from "@minecraft/server"; +import { ChatSendAfterEvent, ChatSendBeforeEvent, Player, } from "@minecraft/server"; import config from "../data/config.js"; import { sendMsgToPlayer } from "../util.js"; @@ -41,7 +41,6 @@ import { spammerA } from "./settings/spammera.js"; import { spammerB } from "./settings/spammerb.js"; import { spammerC } from "./settings/spammerc.js"; import { antispam } from "./settings/antispam.js"; -import { crasherA } from "./settings/crashera.js"; import { namespoofA } from "./settings/namespoofa.js"; import { namespoofB } from "./settings/namespoofb.js"; import { reachA } from "./settings/reacha.js"; @@ -86,6 +85,7 @@ import { biome } from "./utility/biome.js"; import { afk } from "./settings/afk.js"; import { antiphaseA } from "./settings/antiphasea.js"; import { chatChannel } from "./utility/channel.js"; +import { pvp } from "./utility/pvp.js"; const commandDefinitions: Record void> = Object.setPrototypeOf( { @@ -126,7 +126,6 @@ const commandDefinitions: Record (b ? "§a有効" : "§4無効"); + const status = (b: string | number | boolean | Vector3 | Vector3) => (b ? "§a有効" : "§4無効"); sendMsgToPlayer(player, [ `§f§4[§6Paradox§4]§f List Of Modules:`, diff --git a/src/commands/moderation/nonstaffhelp.ts b/src/commands/moderation/nonstaffhelp.ts index 29d968e..40c987f 100644 --- a/src/commands/moderation/nonstaffhelp.ts +++ b/src/commands/moderation/nonstaffhelp.ts @@ -1,6 +1,6 @@ import { getPrefix, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent } from "@minecraft/server"; +import { ChatSendAfterEvent, } from "@minecraft/server"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; /** diff --git a/src/commands/moderation/notify.ts b/src/commands/moderation/notify.ts index 8d9eeec..08a27c0 100644 --- a/src/commands/moderation/notify.ts +++ b/src/commands/moderation/notify.ts @@ -1,4 +1,4 @@ -import { ChatSendAfterEvent, Player } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, } from "@minecraft/server"; import config from "../../data/config.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; import { getPrefix, sendMsgToPlayer } from "../../util.js"; diff --git a/src/commands/moderation/op.ts b/src/commands/moderation/op.ts index 22f1d6a..abf72fe 100644 --- a/src/commands/moderation/op.ts +++ b/src/commands/moderation/op.ts @@ -63,44 +63,7 @@ export function op(message: ChatSendAfterEvent, args: string[]) { return opHelp(operator, prefix); } - if (args.length === 0 && !config.encryption.password) { - // Operator wants to change their own password - const targetSalt = UUIDManager.generateRandomUUID(); - - // Use either the operator's ID or the encryption password as the key - const key = config.encryption.password ? config.encryption.password : operator.id; - - // Generate the hash - const newHash = EncryptionManager.hashWithSalt(targetSalt, key); - - operator.setDynamicProperty("hash", newHash); - operator.setDynamicProperty("salt", targetSalt); - operator.addTag("paradoxOpped"); - - sendMsgToPlayer(operator, `§f§4[§6Paradox§4]§f You are now Paradox-Opped!`); - - dynamicPropertyRegistry.set(operator.id, operator.name); - - return; - } else if (args.length === 1 && config.encryption.password) { - // Allow the user to gain Paradox-Op using the password - if (config.encryption.password === args[0]) { - const targetSalt = UUIDManager.generateRandomUUID(); - - // Generate the hash using the provided password - const newHash = EncryptionManager.hashWithSalt(targetSalt, args[0]); - - operator.setDynamicProperty("hash", newHash); - operator.setDynamicProperty("salt", targetSalt); - operator.addTag("paradoxOpped"); - - sendMsgToPlayer(operator, `§f§4[§6Paradox§4]§f You are now Paradox-Opped using the password.`); - dynamicPropertyRegistry.set(operator.id, operator.name); - } else { - // Incorrect password - sendMsgToPlayer(operator, `§f§4[§6Paradox§4]§f Incorrect password. You need to be Operator to use this command.`); - } - } else if (args.length >= 1 && operatorHash === EncryptionManager.hashWithSalt(operatorSalt as string, config.encryption.password || operator.id)) { + if (args.length >= 1 && operatorHash === EncryptionManager.hashWithSalt(operatorSalt as string, config.encryption.password || operator.id)) { // Operator wants to grant "Paradox-Op" to another player const targetPlayerName = args.join(" "); // Combine all arguments into a single string // Try to find the player requested @@ -132,15 +95,52 @@ export function op(message: ChatSendAfterEvent, args: string[]) { dynamicPropertyRegistry.set(targetPlayer.id, targetPlayer.name); - sendMsgToPlayer(operator, `§f§4[§6Paradox§4]§f${targetPlayer.name}に管理者権限が付与されました`); - sendMsgToPlayer(targetPlayer, `§f§4[§6Paradox§4]§f 管理者になりました`); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${targetPlayer.name}§f 管理者になりました`); + sendMsgToPlayer(operator, `§f§4[§6Paradox§4]§f ${targetPlayer.name}を管理者にしました`); + sendMsgToPlayer(targetPlayer, `§f§4[§6Paradox§4]§f 管理者になりました!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${targetPlayer.name}§f は管理者権限が与えられました.`); targetPlayer.addTag("paradoxOpped"); } else { - sendMsgToPlayer(operator, `§f§4[§6Paradox§4]§f ${targetPlayer.name} 既に管理者です`); + sendMsgToPlayer(operator, `§f§4[§6Paradox§4]§f ${targetPlayer.name} 既に管理者権限を所有しています.`); } } else { - sendMsgToPlayer(operator, `§f§4[§6Paradox§4]§f プレイヤーがオフライン又は存在していません ${targetPlayerName}.`); + sendMsgToPlayer(operator, `§f§4[§6Paradox§4]§f プレイヤーが見つかりません ${targetPlayerName}.`); + } + } else if (args.length === 0 && !config.encryption.password) { + // Operator wants to change their own password + const targetSalt = UUIDManager.generateRandomUUID(); + + // Use either the operator's ID or the encryption password as the key + const key = config.encryption.password ? config.encryption.password : operator.id; + + // Generate the hash + const newHash = EncryptionManager.hashWithSalt(targetSalt, key); + + operator.setDynamicProperty("hash", newHash); + operator.setDynamicProperty("salt", targetSalt); + operator.addTag("paradoxOpped"); + + sendMsgToPlayer(operator, `§f§4[§6Paradox§4]§f管理者になりました`); + + dynamicPropertyRegistry.set(operator.id, operator.name); + + return; + } else if (args.length === 1 && config.encryption.password) { + // Allow the user to gain Paradox-Op using the password + if (config.encryption.password === args[0]) { + const targetSalt = UUIDManager.generateRandomUUID(); + + // Generate the hash using the provided password + const newHash = EncryptionManager.hashWithSalt(targetSalt, args[0]); + + operator.setDynamicProperty("hash", newHash); + operator.setDynamicProperty("salt", targetSalt); + operator.addTag("paradoxOpped"); + + sendMsgToPlayer(operator, `§f§4[§6Paradox§4]§f あなたは今、パスワードを使ってログインしています。`); + dynamicPropertyRegistry.set(operator.id, operator.name); + } else { + // Incorrect password + sendMsgToPlayer(operator, `§f§4[§6Paradox§4]§f パスワードが間違っています。このコマンドを使用するにはオペレータである必要があります。`); } } else { return opHelp(operator, prefix); diff --git a/src/commands/moderation/punish.ts b/src/commands/moderation/punish.ts index 19ece27..dd2e479 100644 --- a/src/commands/moderation/punish.ts +++ b/src/commands/moderation/punish.ts @@ -119,4 +119,3 @@ async function handlePunish(message: ChatSendAfterEvent, args: string[]) { // Use try/catch in case nobody has tag 'notify' as this will report 'no target selector' return sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§fが ${member.name}のインベントリを全て消去した§f`); } - diff --git a/src/commands/settings/afk.ts b/src/commands/settings/afk.ts index 92dc8df..d832fa3 100644 --- a/src/commands/settings/afk.ts +++ b/src/commands/settings/afk.ts @@ -1,10 +1,10 @@ import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; import { AFK } from "../../penrose/TickEvent/afk/afk.js"; -function afkHelp(player: Player, prefix: string, afkBoolean: string | number | boolean) { +function afkHelp(player: Player, prefix: string, afkBoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.afk) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -48,7 +48,7 @@ export function afk(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f You need to be Paradox-Opped to use this command.`); } // Get Dynamic Property Boolean @@ -67,12 +67,12 @@ export function afk(message: ChatSendAfterEvent, args: string[]) { // Allow dynamicPropertyRegistry.set("afk_b", true); world.setDynamicProperty("afk_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6AFK§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6AFK§f!`); AFK(); } else if (afkBoolean === true) { // Deny dynamicPropertyRegistry.set("afk_b", false); world.setDynamicProperty("afk_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4AFK§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=>§4AFK§f!`); } } diff --git a/src/commands/settings/allowgma.ts b/src/commands/settings/allowgma.ts index 0114918..c07d822 100644 --- a/src/commands/settings/allowgma.ts +++ b/src/commands/settings/allowgma.ts @@ -1,10 +1,10 @@ -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import config from "../../data/config.js"; import { Adventure } from "../../penrose/TickEvent/gamemode/adventure.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; -function allowgmaHelp(player: Player, prefix: string, adventureGMBoolean: string | number | boolean) { +function allowgmaHelp(player: Player, prefix: string, adventureGMBoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.allowgma) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -48,7 +48,7 @@ export function allowgma(message: ChatSendAfterEvent, args: string) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -78,12 +78,12 @@ export function allowgma(message: ChatSendAfterEvent, args: string) { Adventure(); return; } - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f has disallowed §4Gamemode 2 (Adventure)§f to be used!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f has disallowed §4Gamemode 2 (Adventure)§f to be used!`); Adventure(); } else if (adventureGMBoolean === true) { // Deny dynamicPropertyRegistry.set("adventuregm_b", false); world.setDynamicProperty("adventuregm_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f has allowed §6Gamemode 2 (Adventure)§f to be used!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f has allowed §6Gamemode 2 (Adventure)§f to be used!`); } } diff --git a/src/commands/settings/allowgmc.ts b/src/commands/settings/allowgmc.ts index ecf69d4..81584b2 100644 --- a/src/commands/settings/allowgmc.ts +++ b/src/commands/settings/allowgmc.ts @@ -1,11 +1,11 @@ -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import config from "../../data/config.js"; import { Adventure } from "../../penrose/TickEvent/gamemode/adventure.js"; import { Creative } from "../../penrose/TickEvent/gamemode/creative.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; -function allowgmcHelp(player: Player, prefix: string, creativeGMBoolean: string | number | boolean) { +function allowgmcHelp(player: Player, prefix: string, creativeGMBoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.allowgmc) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -49,7 +49,7 @@ export function allowgmc(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -79,12 +79,12 @@ export function allowgmc(message: ChatSendAfterEvent, args: string[]) { Adventure(); return; } - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f has disallowed §4Gamemode 1 (Creative)§f to be used!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f has disallowed §4Gamemode 1 (Creative)§f to be used!`); Creative(); } else if (creativeGMBoolean === true) { // Deny dynamicPropertyRegistry.set("creativegm_b", false); world.setDynamicProperty("creativegm_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f has allowed §6Gamemode 1 (Creative)§f to be used!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f has allowed §6Gamemode 1 (Creative)§f to be used!`); } } diff --git a/src/commands/settings/allowgms.ts b/src/commands/settings/allowgms.ts index 1f11f28..4ab8316 100644 --- a/src/commands/settings/allowgms.ts +++ b/src/commands/settings/allowgms.ts @@ -1,11 +1,11 @@ -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import config from "../../data/config.js"; import { Adventure } from "../../penrose/TickEvent/gamemode/adventure.js"; import { Survival } from "../../penrose/TickEvent/gamemode/survival.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; -function allowgmsHelp(player: Player, prefix: string, survivalGMBoolean: string | number | boolean) { +function allowgmsHelp(player: Player, prefix: string, survivalGMBoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.allowgms) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -49,7 +49,7 @@ export function allowgms(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -79,12 +79,12 @@ export function allowgms(message: ChatSendAfterEvent, args: string[]) { Adventure(); return; } - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f has disallowed §4Gamemode 0 (Survival)§f to be used!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f has disallowed §4Gamemode 0 (Survival)§f to be used!`); Survival(); } else if (survivalGMBoolean === true) { // Deny dynamicPropertyRegistry.set("survivalgm_b", false); world.setDynamicProperty("survivalgm_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f has allowed §6Gamemode 0 (Survival)§f to be used!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f has allowed §6Gamemode 0 (Survival)§f to be used!`); } } diff --git a/src/commands/settings/antifalla.ts b/src/commands/settings/antifalla.ts index 2e3e9f4..aa25cfc 100644 --- a/src/commands/settings/antifalla.ts +++ b/src/commands/settings/antifalla.ts @@ -1,10 +1,10 @@ import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import { AntiFallA } from "../../penrose/TickEvent/antifalla/antifall_a.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; -function antifallaHelp(player: Player, prefix: string, antifallABoolean: string | number | boolean) { +function antifallaHelp(player: Player, prefix: string, antifallABoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.antifalla) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -48,7 +48,7 @@ export function antifallA(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -67,12 +67,12 @@ export function antifallA(message: ChatSendAfterEvent, args: string[]) { // Allow dynamicPropertyRegistry.set("antifalla_b", true); world.setDynamicProperty("antifalla_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6AntiFallA§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6AntiFallA§f!`); AntiFallA(); } else if (antifallABoolean === true) { // Deny dynamicPropertyRegistry.set("antifalla_b", false); world.setDynamicProperty("antifalla_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4AntiFallA§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4AntiFallA§f!`); } } diff --git a/src/commands/settings/antikb.ts b/src/commands/settings/antikb.ts index d4b5a14..f6c4ed0 100644 --- a/src/commands/settings/antikb.ts +++ b/src/commands/settings/antikb.ts @@ -1,10 +1,10 @@ -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import config from "../../data/config.js"; import { AntiKnockbackA } from "../../penrose/TickEvent/knockback/antikb_a.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; -function antikbHelp(player: Player, prefix: string, antikbBoolean: string | number | boolean) { +function antikbHelp(player: Player, prefix: string, antikbBoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.antikb) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -62,7 +62,7 @@ async function handleAntiKnockback(message: ChatSendAfterEvent, args: string[]) // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -81,12 +81,12 @@ async function handleAntiKnockback(message: ChatSendAfterEvent, args: string[]) // Allow dynamicPropertyRegistry.set("antikb_b", true); world.setDynamicProperty("antikb_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6Anti Knockback§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6Anti Knockback§f!`); AntiKnockbackA(); } else if (antikbBoolean === true) { // Deny dynamicPropertyRegistry.set("antikb_b", false); world.setDynamicProperty("antikb_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4Anti Knockback§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4Anti Knockback§f!`); } } diff --git a/src/commands/settings/antinukera.ts b/src/commands/settings/antinukera.ts index ecf9e77..8f723d0 100644 --- a/src/commands/settings/antinukera.ts +++ b/src/commands/settings/antinukera.ts @@ -1,10 +1,10 @@ import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; -import { NukerA } from "../../penrose/BlockBreakAfterEvent/nuker/nuker_a.js"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; +import { BeforeNukerA } from "../../penrose/PlayerBreakBlockBeforeEvent/nuker/nuker_a.js"; -function antinukeraHelp(player: Player, prefix: string, antiNukerABoolean: string | number | boolean) { +function antinukeraHelp(player: Player, prefix: string, antiNukerABoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.antinukera) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -48,7 +48,7 @@ export function antinukerA(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -67,12 +67,12 @@ export function antinukerA(message: ChatSendAfterEvent, args: string[]) { // Allow dynamicPropertyRegistry.set("antinukera_b", true); world.setDynamicProperty("antinukera_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6AntiNukerA§f!`); - NukerA(); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6AntiNukerA§f!`); + BeforeNukerA(); } else if (antiNukerABoolean === true) { // Deny dynamicPropertyRegistry.set("antinukera_b", false); world.setDynamicProperty("antinukera_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4AntiNukerA§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4AntiNukerA§f!`); } } diff --git a/src/commands/settings/antiphasea.ts b/src/commands/settings/antiphasea.ts index 172a72a..b6b40c3 100644 --- a/src/commands/settings/antiphasea.ts +++ b/src/commands/settings/antiphasea.ts @@ -1,10 +1,10 @@ import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; import { AntiPhaseA } from "../../penrose/TickEvent/phase/phase_a.js"; -function antiphaseaHelp(player: Player, prefix: string, antiphaseABoolean: string | number | boolean) { +function antiphaseaHelp(player: Player, prefix: string, antiphaseABoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.antiphasea) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -48,7 +48,7 @@ export function antiphaseA(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -67,12 +67,12 @@ export function antiphaseA(message: ChatSendAfterEvent, args: string[]) { // Allow dynamicPropertyRegistry.set("antiphasea_b", true); world.setDynamicProperty("antiphasea_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6AntiPhaseA§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6AntiPhaseA§f!`); AntiPhaseA(); } else if (antiphaseABoolean === true) { // Deny dynamicPropertyRegistry.set("antiphasea_b", false); world.setDynamicProperty("antiphasea_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4AntiPhaseA§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4AntiPhaseA§f!`); } } diff --git a/src/commands/settings/antiscaffolda.ts b/src/commands/settings/antiscaffolda.ts index 900ece6..94f5e47 100644 --- a/src/commands/settings/antiscaffolda.ts +++ b/src/commands/settings/antiscaffolda.ts @@ -1,10 +1,10 @@ import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; -import { ScaffoldA } from "../../penrose/BlockPlaceAfterEvent/scaffold/scaffold_a.js"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; +import { ScaffoldA } from "../../penrose/PlayerPlaceBlockAfterEvent/scaffold/scaffold_a.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; -function antiscaffoldaHelp(player: Player, prefix: string, antiScaffoldABoolean: string | number | boolean) { +function antiscaffoldaHelp(player: Player, prefix: string, antiScaffoldABoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.antiscaffolda) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -48,7 +48,7 @@ export function antiscaffoldA(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -67,12 +67,12 @@ export function antiscaffoldA(message: ChatSendAfterEvent, args: string[]) { // Allow dynamicPropertyRegistry.set("antiscaffolda_b", true); world.setDynamicProperty("antiscaffolda_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6AntiScaffoldA§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6AntiScaffoldA§f!`); ScaffoldA(); } else if (antiScaffoldABoolean === true) { // Deny dynamicPropertyRegistry.set("antiscaffolda_b", false); world.setDynamicProperty("antiscaffolda_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4AntiScaffoldA§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4AntiScaffoldA§f!`); } } diff --git a/src/commands/settings/antishulker.ts b/src/commands/settings/antishulker.ts index 7f97b39..cb34462 100644 --- a/src/commands/settings/antishulker.ts +++ b/src/commands/settings/antishulker.ts @@ -1,9 +1,9 @@ import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; -function antishulkerHelp(player: Player, prefix: string, antiShulkerBoolean: string | number | boolean) { +function antishulkerHelp(player: Player, prefix: string, antiShulkerBoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.antishulker) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -47,7 +47,7 @@ export function antishulker(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -66,11 +66,11 @@ export function antishulker(message: ChatSendAfterEvent, args: string[]) { // Allow dynamicPropertyRegistry.set("antishulker_b", true); world.setDynamicProperty("antishulker_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6Anti-Shulkers§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6Anti-Shulkers§f!`); } else if (antiShulkerBoolean === true) { // Deny dynamicPropertyRegistry.set("antishulker_b", false); world.setDynamicProperty("antishulker_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4Anti-Shulkers§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4Anti-Shulkers§f!`); } } diff --git a/src/commands/settings/antispam.ts b/src/commands/settings/antispam.ts index b5706b1..0cf0c93 100644 --- a/src/commands/settings/antispam.ts +++ b/src/commands/settings/antispam.ts @@ -1,11 +1,11 @@ import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import { beforeAntiSpam } from "../../penrose/ChatSendBeforeEvent/chat/antispam.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; import { afterAntiSpam } from "../../penrose/ChatSendAfterEvent/chat/antispam.js"; -function antispamHelp(player: Player, prefix: string, antiSpamBoolean: string | number | boolean) { +function antispamHelp(player: Player, prefix: string, antiSpamBoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.antispam) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -49,7 +49,7 @@ export function antispam(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -68,13 +68,13 @@ export function antispam(message: ChatSendAfterEvent, args: string[]) { // Allow dynamicPropertyRegistry.set("antispam_b", true); world.setDynamicProperty("antispam_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6Anti Spam§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6Anti Spam§f!`); beforeAntiSpam(); afterAntiSpam(); } else if (antiSpamBoolean === true) { // Deny dynamicPropertyRegistry.set("antispam_b", false); world.setDynamicProperty("antispam_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4Anti Spam§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4Anti Spam§f!`); } } diff --git a/src/commands/settings/auracheck.ts b/src/commands/settings/auracheck.ts index 9d1d453..1c00b8d 100644 --- a/src/commands/settings/auracheck.ts +++ b/src/commands/settings/auracheck.ts @@ -55,7 +55,7 @@ async function handleAuraCheck(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -79,12 +79,12 @@ async function handleAuraCheck(message: ChatSendAfterEvent, args: string[]) { // Deny dynamicPropertyRegistry.set("antikillaura_b", false); world.setDynamicProperty("antikillaura_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4AntiKillAura§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4AntiKillAura§f!`); } else if (antiKillAuraBoolean === false) { // Allow dynamicPropertyRegistry.set("antikillaura_b", true); world.setDynamicProperty("antikillaura_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6AntiKillAura§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6AntiKillAura§f!`); KillAura(); } } diff --git a/src/commands/settings/autoban.ts b/src/commands/settings/autoban.ts index fb72298..cfe43c4 100644 --- a/src/commands/settings/autoban.ts +++ b/src/commands/settings/autoban.ts @@ -1,10 +1,10 @@ import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; import { AutoBan } from "../../penrose/TickEvent/ban/autoban.js"; -function autobanHelp(player: Player, prefix: string, autoBanBoolean: string | number | boolean) { +function autobanHelp(player: Player, prefix: string, autoBanBoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.autoban) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -48,7 +48,7 @@ export function autoban(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -67,12 +67,12 @@ export function autoban(message: ChatSendAfterEvent, args: string[]) { // Allow dynamicPropertyRegistry.set("autoban_b", true); world.setDynamicProperty("autoban_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6autoban§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6autoban§f!`); AutoBan(); } else if (autoBanBoolean === true) { // Deny dynamicPropertyRegistry.set("autoban_b", false); world.setDynamicProperty("autoban_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4autoban§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4autoban§f!`); } } diff --git a/src/commands/settings/autoclicker.ts b/src/commands/settings/autoclicker.ts index cbe4886..2081bbc 100644 --- a/src/commands/settings/autoclicker.ts +++ b/src/commands/settings/autoclicker.ts @@ -62,7 +62,7 @@ async function handleAutoClick(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -81,12 +81,12 @@ async function handleAutoClick(message: ChatSendAfterEvent, args: string[]) { // Allow dynamicPropertyRegistry.set("autoclicker_b", true); world.setDynamicProperty("autoclicker_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6AutoClicker§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6AutoClicker§f!`); AutoClicker(); } else if (autoClickerBoolean === true) { // Deny dynamicPropertyRegistry.set("autoclicker_b", false); world.setDynamicProperty("autoclicker_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4AutoClicker§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4AutoClicker§f!`); } } diff --git a/src/commands/settings/badpackets1.ts b/src/commands/settings/badpackets1.ts index dc9cc97..df7eee3 100644 --- a/src/commands/settings/badpackets1.ts +++ b/src/commands/settings/badpackets1.ts @@ -1,10 +1,10 @@ import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import { BadPackets1 } from "../../penrose/ChatSendBeforeEvent/spammer/badpackets_1.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; -function badpackets1Help(player: Player, prefix: string, badPackets1Boolean: string | number | boolean) { +function badpackets1Help(player: Player, prefix: string, badPackets1Boolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.badpackets1) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -48,7 +48,7 @@ export function badpackets1(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -67,12 +67,12 @@ export function badpackets1(message: ChatSendAfterEvent, args: string[]) { // Allow dynamicPropertyRegistry.set("badpackets1_b", true); world.setDynamicProperty("badpackets1_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6Badpackets1§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6Badpackets1§f!`); BadPackets1(); } else if (badPackets1Boolean === true) { // Deny dynamicPropertyRegistry.set("badpackets1_b", false); world.setDynamicProperty("badpackets1_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4Badpackets1§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4Badpackets1§f!`); } } diff --git a/src/commands/settings/badpackets2.ts b/src/commands/settings/badpackets2.ts index 67d7ba3..98c5747 100644 --- a/src/commands/settings/badpackets2.ts +++ b/src/commands/settings/badpackets2.ts @@ -1,10 +1,10 @@ import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import { BadPackets2 } from "../../penrose/TickEvent/badpackets2/badpackets2.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; -function badpackets2Help(player: Player, prefix: string, badPackets2Boolean: string | number | boolean) { +function badpackets2Help(player: Player, prefix: string, badPackets2Boolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.badpackets2) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -48,7 +48,7 @@ export function badpackets2(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -67,12 +67,12 @@ export function badpackets2(message: ChatSendAfterEvent, args: string[]) { // Allow dynamicPropertyRegistry.set("badpackets2_b", true); world.setDynamicProperty("badpackets2_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6Badpackets2§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6Badpackets2§f!`); BadPackets2(); } else if (badPackets2Boolean === true) { // Deny dynamicPropertyRegistry.set("badpackets2_b", false); world.setDynamicProperty("badpackets2_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4Badpackets2§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4Badpackets2§f!`); } } diff --git a/src/commands/settings/bedrockvalidate.ts b/src/commands/settings/bedrockvalidate.ts index b6e3053..c869a80 100644 --- a/src/commands/settings/bedrockvalidate.ts +++ b/src/commands/settings/bedrockvalidate.ts @@ -1,10 +1,10 @@ -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import config from "../../data/config.js"; import { BedrockValidate } from "../../penrose/TickEvent/bedrock/bedrockvalidate.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; -function bedrockValidateHelp(player: Player, prefix: string, bedrockValidateBoolean: string | number | boolean) { +function bedrockValidateHelp(player: Player, prefix: string, bedrockValidateBoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.bedrockvalidate) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -48,7 +48,7 @@ export function bedrockvalidate(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -67,12 +67,12 @@ export function bedrockvalidate(message: ChatSendAfterEvent, args: string[]) { // Allow dynamicPropertyRegistry.set("bedrockvalidate_b", true); world.setDynamicProperty("bedrockvalidate_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6BedrockValidate§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6BedrockValidate§f!`); BedrockValidate(); } else if (bedrockValidateBoolean === true) { // Deny dynamicPropertyRegistry.set("bedrockvalidate_b", false); world.setDynamicProperty("bedrockvalidate_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4BedrockValidate§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4BedrockValidate§f!`); } } diff --git a/src/commands/settings/chatranks.ts b/src/commands/settings/chatranks.ts index 1fff98d..f3c374c 100644 --- a/src/commands/settings/chatranks.ts +++ b/src/commands/settings/chatranks.ts @@ -1,9 +1,9 @@ import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; -function chatRanksHelp(player: Player, prefix: string, chatRanksBoolean: string | number | boolean) { +function chatRanksHelp(player: Player, prefix: string, chatRanksBoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.chatranks) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -47,7 +47,7 @@ export function chatranks(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -66,11 +66,11 @@ export function chatranks(message: ChatSendAfterEvent, args: string[]) { // Allow dynamicPropertyRegistry.set("chatranks_b", true); world.setDynamicProperty("chatranks_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6ChatRanks§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6ChatRanks§f!`); } else if (chatRanksBoolean === true) { // Deny dynamicPropertyRegistry.set("chatranks_b", false); world.setDynamicProperty("chatranks_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4ChatRanks§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4ChatRanks§f!`); } } diff --git a/src/commands/settings/crashera.ts b/src/commands/settings/crashera.ts deleted file mode 100644 index 06a0189..0000000 --- a/src/commands/settings/crashera.ts +++ /dev/null @@ -1,78 +0,0 @@ -import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; -import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; -import { CrasherA } from "../../penrose/TickEvent/crasher/crasher_a.js"; -import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; - -function crasheraHelp(player: Player, prefix: string, crasherABoolean: string | number | boolean) { - let commandStatus: string; - if (!config.customcommands.crashera) { - commandStatus = "§6[§4DISABLED§6]§f"; - } else { - commandStatus = "§6[§aENABLED§6]§f"; - } - let moduleStatus: string; - if (crasherABoolean === false) { - moduleStatus = "§6[§4DISABLED§6]§f"; - } else { - moduleStatus = "§6[§aENABLED§6]§f"; - } - return sendMsgToPlayer(player, [ - `\n§o§4[§6Command§4]§f: crashera`, - `§4[§6Status§4]§f: ${commandStatus}`, - `§4[§6Module§4]§f: ${moduleStatus}`, - `§4[§6Usage§4]§f: crashera [optional]`, - `§4[§6Optional§4]§f: help`, - `§4[§6Description§4]§f: Toggles checks for the infamous Horion Crasher.`, - `§4[§6Examples§4]§f:`, - ` ${prefix}crashera`, - ` ${prefix}crashera help`, - ]); -} - -/** - * @name crasherA - * @param {ChatSendAfterEvent} message - Message object - * @param {string[]} args - Additional arguments provided (optional). - */ -export function crasherA(message: ChatSendAfterEvent, args: string[]) { - // validate that required params are defined - if (!message) { - return console.warn(`${new Date()} | ` + "Error: ${message} isnt defined. Did you forget to pass it? (./commands/settings/crashera.js:36)"); - } - - const player = message.sender; - - // Get unique ID - const uniqueId = dynamicPropertyRegistry.get(player?.id); - - // Make sure the user has permissions to run the command - if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); - } - - // Get Dynamic Property Boolean - const crasherABoolean = dynamicPropertyRegistry.get("crashera_b"); - - // Check for custom prefix - const prefix = getPrefix(player); - - // Was help requested - const argCheck = args[0]; - if ((argCheck && args[0].toLowerCase() === "help") || !config.customcommands.crashera) { - return crasheraHelp(player, prefix, crasherABoolean); - } - - if (crasherABoolean === false) { - // Allow - dynamicPropertyRegistry.set("crashera_b", true); - world.setDynamicProperty("crashera_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6CrasherA§f!`); - CrasherA(); - } else if (crasherABoolean === true) { - // Deny - dynamicPropertyRegistry.set("crashera_b", false); - world.setDynamicProperty("crashera_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4CrasherA§f!`); - } -} diff --git a/src/commands/settings/enchantedarmor.ts b/src/commands/settings/enchantedarmor.ts index 9915f55..8a0d4e7 100644 --- a/src/commands/settings/enchantedarmor.ts +++ b/src/commands/settings/enchantedarmor.ts @@ -62,7 +62,7 @@ async function handleEnchantedArmor(message: ChatSendAfterEvent, args: string[]) // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } const encharmorscore = ScoreManager.getScore("encharmor", player); @@ -79,11 +79,11 @@ async function handleEnchantedArmor(message: ChatSendAfterEvent, args: string[]) if (encharmorscore <= 0) { // Allow player.runCommand(`scoreboard players set paradox:config encharmor 1`); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6Anti Enchanted Armor§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6Anti Enchanted Armor§f!`); } else if (encharmorscore >= 1) { // Deny player.runCommand(`scoreboard players set paradox:config encharmor 0`); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4Anti Enchanted Armor§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4Anti Enchanted Armor§f!`); } return player.runCommand(`scoreboard players operation @a encharmor = paradox:config encharmor`); } diff --git a/src/commands/settings/flya.ts b/src/commands/settings/flya.ts index 944eab1..d97d7a3 100644 --- a/src/commands/settings/flya.ts +++ b/src/commands/settings/flya.ts @@ -1,10 +1,10 @@ import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import { FlyA } from "../../penrose/TickEvent/fly/fly_a.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; -function flyaHelp(player: Player, prefix: string, flyABoolean: string | number | boolean) { +function flyaHelp(player: Player, prefix: string, flyABoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.flya) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -48,7 +48,7 @@ export function flyA(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -67,12 +67,12 @@ export function flyA(message: ChatSendAfterEvent, args: string[]) { // Allow dynamicPropertyRegistry.set("flya_b", true); world.setDynamicProperty("flya_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6FlyA§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6FlyA§f!`); FlyA(); } else if (flyABoolean === true) { // Deny dynamicPropertyRegistry.set("flya_b", false); world.setDynamicProperty("flya_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4FlyA§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4FlyA§f!`); } } diff --git a/src/commands/settings/illegalenchant.ts b/src/commands/settings/illegalenchant.ts index 71d6ab4..8738b9c 100644 --- a/src/commands/settings/illegalenchant.ts +++ b/src/commands/settings/illegalenchant.ts @@ -1,9 +1,9 @@ import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; -function illegalEnchantHelp(player: Player, prefix: string, illegalEnchantmentBoolean: string | number | boolean) { +function illegalEnchantHelp(player: Player, prefix: string, illegalEnchantmentBoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.illegalenchant) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -47,7 +47,7 @@ export function illegalEnchant(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -66,11 +66,11 @@ export function illegalEnchant(message: ChatSendAfterEvent, args: string[]) { // Allow dynamicPropertyRegistry.set("illegalenchantment_b", true); world.setDynamicProperty("illegalenchantment_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6IllegalEnchantments§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6IllegalEnchantments§f!`); } else if (illegalEnchantmentBoolean === true) { // Deny dynamicPropertyRegistry.set("illegalenchantment_b", false); world.setDynamicProperty("illegalenchantment_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4IllegalEnchantments§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4IllegalEnchantments§f!`); } } diff --git a/src/commands/settings/illegalitemsa.ts b/src/commands/settings/illegalitemsa.ts index cd0f771..0025662 100644 --- a/src/commands/settings/illegalitemsa.ts +++ b/src/commands/settings/illegalitemsa.ts @@ -1,10 +1,10 @@ import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import { IllegalItemsA } from "../../penrose/TickEvent/illegalitems/illegalitems_a.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; -function illegalItemsAHelp(player: Player, prefix: string, illegalItemsABoolean: string | number | boolean) { +function illegalItemsAHelp(player: Player, prefix: string, illegalItemsABoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.illegalitemsa) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -48,7 +48,7 @@ export function illegalitemsA(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -71,7 +71,7 @@ export function illegalitemsA(message: ChatSendAfterEvent, args: string[]) { for (const temp of nohasTag) { temp.addTag("illegalitemsA"); } - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6IllegalItemsA§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6IllegalItemsA§f!`); IllegalItemsA(); } else if (illegalItemsABoolean === true) { // Deny @@ -81,6 +81,6 @@ export function illegalitemsA(message: ChatSendAfterEvent, args: string[]) { for (const temp of hasTag) { temp.removeTag("illegalitemsA"); } - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4IllegalItemsA§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4IllegalItemsA§f!`); } } diff --git a/src/commands/settings/illegalitemsb.ts b/src/commands/settings/illegalitemsb.ts index c6f2a71..f5c90ed 100644 --- a/src/commands/settings/illegalitemsb.ts +++ b/src/commands/settings/illegalitemsb.ts @@ -1,10 +1,10 @@ import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; -import { IllegalItemsB } from "../../penrose/BlockPlaceAfterEvent/illegalitems/illegalitems_b.js"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; +import { IllegalItemsB } from "../../penrose/PlayerPlaceBlockAfterEvent/illegalitems/illegalitems_b.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; -function illegalItemsBHelp(player: Player, prefix: string, illegalItemsBBoolean: string | number | boolean) { +function illegalItemsBHelp(player: Player, prefix: string, illegalItemsBBoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.illegalitemsb) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -48,7 +48,7 @@ export function illegalitemsB(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -67,12 +67,12 @@ export function illegalitemsB(message: ChatSendAfterEvent, args: string[]) { // Allow dynamicPropertyRegistry.set("illegalitemsb_b", true); world.setDynamicProperty("illegalitemsb_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6IllegalItemsB§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6IllegalItemsB§f!`); IllegalItemsB(); } else if (illegalItemsBBoolean === true) { // Deny dynamicPropertyRegistry.set("illegalitemsb_b", false); world.setDynamicProperty("illegalitemsb_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4IllegalItemsB§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4IllegalItemsB§f!`); } } diff --git a/src/commands/settings/illegalitemsc.ts b/src/commands/settings/illegalitemsc.ts index 989cfee..084f85c 100644 --- a/src/commands/settings/illegalitemsc.ts +++ b/src/commands/settings/illegalitemsc.ts @@ -1,10 +1,10 @@ import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import { IllegalItemsC } from "../../penrose/TickEvent/illegalitems/illegalitems_c.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; -function illegalItemsCHelp(player: Player, prefix: string, illegalItemsCBoolean: string | number | boolean) { +function illegalItemsCHelp(player: Player, prefix: string, illegalItemsCBoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.illegalitemsc) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -48,7 +48,7 @@ export function illegalitemsC(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -67,12 +67,12 @@ export function illegalitemsC(message: ChatSendAfterEvent, args: string[]) { // Allow dynamicPropertyRegistry.set("illegalitemsc_b", true); world.setDynamicProperty("illegalitemsc_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6IllegalItemsC§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6IllegalItemsC§f!`); IllegalItemsC(); } else if (illegalItemsCBoolean === true) { // Deny dynamicPropertyRegistry.set("illegalitemsc_b", false); world.setDynamicProperty("illegalitemsc_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4IllegalItemsC§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4IllegalItemsC§f!`); } } diff --git a/src/commands/settings/illegallores.ts b/src/commands/settings/illegallores.ts index 0823467..492f945 100644 --- a/src/commands/settings/illegallores.ts +++ b/src/commands/settings/illegallores.ts @@ -1,9 +1,9 @@ import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; -function illegalLoresHelp(player: Player, prefix: string, illegalLoresBoolean: string | number | boolean) { +function illegalLoresHelp(player: Player, prefix: string, illegalLoresBoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.illegallores) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -47,7 +47,7 @@ export function illegalLores(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -66,11 +66,11 @@ export function illegalLores(message: ChatSendAfterEvent, args: string[]) { // Allow dynamicPropertyRegistry.set("illegallores_b", true); world.setDynamicProperty("illegallores_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6IllegalLores§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6IllegalLores§f!`); } else if (illegalLoresBoolean === true) { // Deny dynamicPropertyRegistry.set("illegallores_b", false); world.setDynamicProperty("illegallores_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4IllegalLores§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4IllegalLores§f!`); } } diff --git a/src/commands/settings/invalidsprinta.ts b/src/commands/settings/invalidsprinta.ts index 59e212f..1760646 100644 --- a/src/commands/settings/invalidsprinta.ts +++ b/src/commands/settings/invalidsprinta.ts @@ -1,10 +1,10 @@ import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import { InvalidSprintA } from "../../penrose/TickEvent/invalidsprint/invalidsprint_a.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; -function invalidSprintAHelp(player: Player, prefix: string, invalidSprintABoolean: string | number | boolean) { +function invalidSprintAHelp(player: Player, prefix: string, invalidSprintABoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.invalidsprinta) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -48,7 +48,7 @@ export function invalidsprintA(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -67,12 +67,12 @@ export function invalidsprintA(message: ChatSendAfterEvent, args: string[]) { // Allow dynamicPropertyRegistry.set("invalidsprinta_b", true); world.setDynamicProperty("invalidsprinta_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6InvalidSprintA§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6InvalidSprintA§f!`); InvalidSprintA(); } else if (invalidSprintABoolean === true) { // Deny dynamicPropertyRegistry.set("invalidsprinta_b", false); world.setDynamicProperty("invalidsprinta_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4InvalidSprintA§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4InvalidSprintA§f!`); } } diff --git a/src/commands/settings/jesusa.ts b/src/commands/settings/jesusa.ts index fb9d99b..8cc417d 100644 --- a/src/commands/settings/jesusa.ts +++ b/src/commands/settings/jesusa.ts @@ -1,10 +1,10 @@ import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import { JesusA } from "../../penrose/TickEvent/jesus/jesus_a.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; -function jesusAHelp(player: Player, prefix: string, jesusaBoolean: string | number | boolean) { +function jesusAHelp(player: Player, prefix: string, jesusaBoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.jesusa) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -48,7 +48,7 @@ export function jesusA(message: ChatSendAfterEvent, args: string) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -67,12 +67,12 @@ export function jesusA(message: ChatSendAfterEvent, args: string) { // Allow dynamicPropertyRegistry.set("jesusa_b", true); world.setDynamicProperty("jesusa_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6JesusA§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6JesusA§f!`); JesusA(); } else if (jesusaBoolean === true) { // Deny dynamicPropertyRegistry.set("jesusa_b", false); world.setDynamicProperty("jesusa_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4JesusA§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4JesusA§f!`); } } diff --git a/src/commands/settings/lagclear.ts b/src/commands/settings/lagclear.ts index 0525974..6e0604a 100644 --- a/src/commands/settings/lagclear.ts +++ b/src/commands/settings/lagclear.ts @@ -1,10 +1,10 @@ import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import { ClearLag } from "../../penrose/TickEvent/clearlag/clearlag.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; -function clearlagHelp(player: Player, prefix: string, clearLagBoolean: string | number | boolean) { +function clearlagHelp(player: Player, prefix: string, clearLagBoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.clearlag) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -48,7 +48,7 @@ export function clearlag(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -67,12 +67,12 @@ export function clearlag(message: ChatSendAfterEvent, args: string[]) { // Allow dynamicPropertyRegistry.set("clearlag_b", true); world.setDynamicProperty("clearlag_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6ClearLag§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6ClearLag§f!`); ClearLag(); } else if (clearLagBoolean === true) { // Deny dynamicPropertyRegistry.set("clearlag_b", false); world.setDynamicProperty("clearlag_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4ClearLag§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4ClearLag§f!`); } } diff --git a/src/commands/settings/namespoofa.ts b/src/commands/settings/namespoofa.ts index b778b7c..50ffaac 100644 --- a/src/commands/settings/namespoofa.ts +++ b/src/commands/settings/namespoofa.ts @@ -1,10 +1,10 @@ import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import { NamespoofA } from "../../penrose/TickEvent/namespoof/namespoof_a.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; -function namespoofAHelp(player: Player, prefix: string, nameSpoofBoolean: string | number | boolean) { +function namespoofAHelp(player: Player, prefix: string, nameSpoofBoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.namespoofa) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -48,7 +48,7 @@ export function namespoofA(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -67,12 +67,12 @@ export function namespoofA(message: ChatSendAfterEvent, args: string[]) { // Allow dynamicPropertyRegistry.set("namespoofa_b", true); world.setDynamicProperty("namespoofa_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6NamespoofA§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6NamespoofA§f!`); NamespoofA(); } else if (nameSpoofBoolean === true) { // Deny dynamicPropertyRegistry.set("namespoofa_b", false); world.setDynamicProperty("namespoofa_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4NamespoofA§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4NamespoofA§f!`); } } diff --git a/src/commands/settings/namespoofb.ts b/src/commands/settings/namespoofb.ts index 7a4c2e3..0b5889e 100644 --- a/src/commands/settings/namespoofb.ts +++ b/src/commands/settings/namespoofb.ts @@ -1,10 +1,10 @@ import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import { NamespoofB } from "../../penrose/TickEvent/namespoof/namespoof_b.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; -function namespoofBHelp(player: Player, prefix: string, nameSpoofBoolean: string | number | boolean) { +function namespoofBHelp(player: Player, prefix: string, nameSpoofBoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.namespoofb) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -48,7 +48,7 @@ export function namespoofB(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -67,12 +67,12 @@ export function namespoofB(message: ChatSendAfterEvent, args: string[]) { // Allow dynamicPropertyRegistry.set("namespoofb_b", true); world.setDynamicProperty("namespoofb_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6NamespoofB§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6NamespoofB§f!`); NamespoofB; } else if (nameSpoofBoolean === true) { // Deny dynamicPropertyRegistry.set("namespoofb_b", false); world.setDynamicProperty("namespoofb_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4NamespoofB§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4NamespoofB§f!`); } } diff --git a/src/commands/settings/oneplayersleep.ts b/src/commands/settings/oneplayersleep.ts index 66541ce..3056405 100644 --- a/src/commands/settings/oneplayersleep.ts +++ b/src/commands/settings/oneplayersleep.ts @@ -1,10 +1,10 @@ import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import { OPS } from "../../penrose/TickEvent/oneplayersleep/oneplayersleep.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; -function opsHelp(player: Player, prefix: string, opsBoolean: string | number | boolean) { +function opsHelp(player: Player, prefix: string, opsBoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.ops) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -48,7 +48,7 @@ export function ops(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -67,12 +67,12 @@ export function ops(message: ChatSendAfterEvent, args: string[]) { // Allow dynamicPropertyRegistry.set("ops_b", true); world.setDynamicProperty("ops_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6OPS§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6OPS§f!`); OPS(); } else if (opsBoolean === true) { // Deny dynamicPropertyRegistry.set("ops_b", false); world.setDynamicProperty("ops_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4OPS§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4OPS§f!`); } } diff --git a/src/commands/settings/overidecommandblocksenabled.ts b/src/commands/settings/overidecommandblocksenabled.ts index 2d03f93..6a31391 100644 --- a/src/commands/settings/overidecommandblocksenabled.ts +++ b/src/commands/settings/overidecommandblocksenabled.ts @@ -1,7 +1,7 @@ import { ChatSendAfterEvent, Player } from "@minecraft/server"; import config from "../../data/config.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; -import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; +import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import { ScoreManager } from "../../classes/ScoreManager.js"; function overrideCBEHelp(player: Player, prefix: string, cmdsscore: number) { @@ -62,7 +62,7 @@ async function handleOverideCommandBlocksEnabled(message: ChatSendAfterEvent, ar // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } const cmdsscore = ScoreManager.getScore("cmds", player); @@ -79,15 +79,15 @@ async function handleOverideCommandBlocksEnabled(message: ChatSendAfterEvent, ar if (cmdsscore <= 0) { // Allow player.runCommand(`scoreboard players set paradox:config cmds 1`); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f has set CommandBlocksEnabled as §6enabled§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f has set CommandBlocksEnabled as §6enabled§f!`); } else if (cmdsscore === 1) { // Deny player.runCommand(`scoreboard players set paradox:config cmds 2`); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f has set CommandBlocksEnabled as §4disabled§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f has set CommandBlocksEnabled as §4disabled§f!`); } else if (cmdsscore >= 2) { // Force player.runCommand(`scoreboard players set paradox:config cmds 0`); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f has §etoggled§f Force-CommandBlocksEnabled!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f has §etoggled§f Force-CommandBlocksEnabled!`); } return player.runCommand(`scoreboard players operation @a cmds = paradox:config cmds`); } diff --git a/src/commands/settings/reacha.ts b/src/commands/settings/reacha.ts index ffabc94..78c099a 100644 --- a/src/commands/settings/reacha.ts +++ b/src/commands/settings/reacha.ts @@ -1,10 +1,10 @@ import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; -import { ReachA } from "../../penrose/BlockPlaceAfterEvent/reach/reach_a.js"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; +import { BeforeReachA } from "../../penrose/PlayerPlaceBlockBeforeEvent/reach/reach_a.js"; -function reachAHelp(player: Player, prefix: string, reachABoolean: string | number | boolean) { +function reachAHelp(player: Player, prefix: string, reachABoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.reacha) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -48,7 +48,7 @@ export function reachA(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -67,12 +67,12 @@ export function reachA(message: ChatSendAfterEvent, args: string[]) { // Allow dynamicPropertyRegistry.set("reacha_b", true); world.setDynamicProperty("reacha_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6ReachA§f!`); - ReachA(); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6ReachA§f!`); + BeforeReachA(); } else if (reachABoolean === true) { // Deny dynamicPropertyRegistry.set("reacha_b", false); world.setDynamicProperty("reacha_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4ReachA§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4ReachA§f!`); } } diff --git a/src/commands/settings/reachb.ts b/src/commands/settings/reachb.ts index 3ec120d..0e8e838 100644 --- a/src/commands/settings/reachb.ts +++ b/src/commands/settings/reachb.ts @@ -1,10 +1,10 @@ import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import { ReachB } from "../../penrose/EntityHitEntityAfterEvent/reach_b.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; -function reachBHelp(player: Player, prefix: string, reachBBoolean: string | number | boolean) { +function reachBHelp(player: Player, prefix: string, reachBBoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.reachb) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -48,7 +48,7 @@ export function reachB(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -67,12 +67,12 @@ export function reachB(message: ChatSendAfterEvent, args: string[]) { // Allow dynamicPropertyRegistry.set("reachb_b", true); world.setDynamicProperty("reachb_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6ReachB§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6ReachB§f!`); ReachB(); } else if (reachBBoolean === true) { // Deny dynamicPropertyRegistry.set("reachb_b", false); world.setDynamicProperty("reachb_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4ReachB§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4ReachB§f!`); } } diff --git a/src/commands/settings/removecommandblocks.ts b/src/commands/settings/removecommandblocks.ts index ef7a973..d20498b 100644 --- a/src/commands/settings/removecommandblocks.ts +++ b/src/commands/settings/removecommandblocks.ts @@ -1,7 +1,7 @@ import { ChatSendAfterEvent, Player } from "@minecraft/server"; import config from "../../data/config.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; -import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; +import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import { ScoreManager } from "../../classes/ScoreManager.js"; function removeCBEHelp(player: Player, prefix: string, commandblocksscore: number) { @@ -62,7 +62,7 @@ async function handleRemoveCommandBlocks(message: ChatSendAfterEvent, args: stri // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } const commandblocksscore = ScoreManager.getScore("commandblocks", player); @@ -79,11 +79,11 @@ async function handleRemoveCommandBlocks(message: ChatSendAfterEvent, args: stri if (commandblocksscore <= 0) { // Allow player.runCommand(`scoreboard players set paradox:config commandblocks 1`); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6Anti Command Blocks§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6Anti Command Blocks§f!`); } else if (commandblocksscore >= 1) { // Deny player.runCommand(`scoreboard players set paradox:config commandblocks 0`); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4Anti Command Blocks§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4Anti Command Blocks§f!`); } return player.runCommand(`scoreboard players operation @a commandblocks = paradox:config commandblocks`); } diff --git a/src/commands/settings/salvagesystem.ts b/src/commands/settings/salvagesystem.ts index d3530f0..8619c74 100644 --- a/src/commands/settings/salvagesystem.ts +++ b/src/commands/settings/salvagesystem.ts @@ -1,9 +1,9 @@ import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; -function salvageHelp(player: Player, prefix: string, salvageBoolean: string | number | boolean) { +function salvageHelp(player: Player, prefix: string, salvageBoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.salvage) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -47,7 +47,7 @@ export function salvage(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -66,11 +66,11 @@ export function salvage(message: ChatSendAfterEvent, args: string[]) { // Allow dynamicPropertyRegistry.set("salvage_b", true); world.setDynamicProperty("salvage_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6Salvage§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 有効にしました=> §6Salvage§f!`); } else if (salvageBoolean === true) { // Deny dynamicPropertyRegistry.set("salvage_b", false); world.setDynamicProperty("salvage_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4Salvage§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 無効にしました=> §4Salvage§f!`); } } diff --git a/src/commands/settings/showrules.ts b/src/commands/settings/showrules.ts index 7b0206a..448380b 100644 --- a/src/commands/settings/showrules.ts +++ b/src/commands/settings/showrules.ts @@ -1,10 +1,10 @@ import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; import { ShowRules } from "../../gui/showrules/showrules.js"; -function showrulesHelp(player: Player, prefix: string, showrulesBoolean: string | number | boolean) { +function showrulesHelp(player: Player, prefix: string, showrulesBoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.showrules) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -48,7 +48,7 @@ export function showrules(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -67,12 +67,12 @@ export function showrules(message: ChatSendAfterEvent, args: string[]) { // Allow dynamicPropertyRegistry.set("showrules_b", true); world.setDynamicProperty("showrules_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6showrules§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6showrules§f!`); ShowRules(); } else if (showrulesBoolean === true) { // Deny dynamicPropertyRegistry.set("showrules_b", false); world.setDynamicProperty("showrules_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4showrules§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4showrules§f!`); } } diff --git a/src/commands/settings/spammera.ts b/src/commands/settings/spammera.ts index b474cc3..94e1b3d 100644 --- a/src/commands/settings/spammera.ts +++ b/src/commands/settings/spammera.ts @@ -1,10 +1,10 @@ import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import { SpammerA } from "../../penrose/ChatSendBeforeEvent/spammer/spammer_a.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; -function spammerAHelp(player: Player, prefix: string, spammerABoolean: string | number | boolean) { +function spammerAHelp(player: Player, prefix: string, spammerABoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.spammera) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -48,7 +48,7 @@ export function spammerA(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -67,12 +67,12 @@ export function spammerA(message: ChatSendAfterEvent, args: string[]) { // Allow dynamicPropertyRegistry.set("spammera_b", true); world.setDynamicProperty("spammera_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6SpammerA§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6SpammerA§f!`); SpammerA(); } else if (spammerABoolean === true) { // Deny dynamicPropertyRegistry.set("spammera_b", false); world.setDynamicProperty("spammera_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4SpammerA§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4SpammerA§f!`); } } diff --git a/src/commands/settings/spammerb.ts b/src/commands/settings/spammerb.ts index dbf99b2..416503a 100644 --- a/src/commands/settings/spammerb.ts +++ b/src/commands/settings/spammerb.ts @@ -1,10 +1,10 @@ import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import { SpammerB } from "../../penrose/ChatSendBeforeEvent/spammer/spammer_b.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; -function spammerBHelp(player: Player, prefix: string, spammerBBoolean: string | number | boolean) { +function spammerBHelp(player: Player, prefix: string, spammerBBoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.spammerb) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -48,7 +48,7 @@ export function spammerB(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -67,12 +67,12 @@ export function spammerB(message: ChatSendAfterEvent, args: string[]) { // Allow dynamicPropertyRegistry.set("spammerb_b", true); world.setDynamicProperty("spammerb_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6SpammerB§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6SpammerB§f!`); SpammerB(); } else if (spammerBBoolean === true) { // Deny dynamicPropertyRegistry.set("spammerb_b", false); world.setDynamicProperty("spammerb_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4SpammerB§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4SpammerB§f!`); } } diff --git a/src/commands/settings/spammerc.ts b/src/commands/settings/spammerc.ts index 7928ebc..5ca90b4 100644 --- a/src/commands/settings/spammerc.ts +++ b/src/commands/settings/spammerc.ts @@ -1,10 +1,10 @@ import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import { SpammerC } from "../../penrose/ChatSendBeforeEvent/spammer/spammer_c.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; -function spammerCHelp(player: Player, prefix: string, spammerCBoolean: string | number | boolean) { +function spammerCHelp(player: Player, prefix: string, spammerCBoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.spammerc) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -48,7 +48,7 @@ export function spammerC(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -67,12 +67,12 @@ export function spammerC(message: ChatSendAfterEvent, args: string[]) { // Allow dynamicPropertyRegistry.set("spammerc_b", true); world.setDynamicProperty("spammerc_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6SpammerC§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6SpammerC§f!`); SpammerC(); } else if (spammerCBoolean === true) { // Deny dynamicPropertyRegistry.set("spammerc_b", false); world.setDynamicProperty("spammerc_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4SpammerC§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4SpammerC§f!`); } } diff --git a/src/commands/settings/speeda.ts b/src/commands/settings/speeda.ts index db7156f..2416b34 100644 --- a/src/commands/settings/speeda.ts +++ b/src/commands/settings/speeda.ts @@ -1,10 +1,10 @@ import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import { SpeedA } from "../../penrose/TickEvent/speed/speed_a.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; -function speedAHelp(player: Player, prefix: string, speedBoolean: string | number | boolean) { +function speedAHelp(player: Player, prefix: string, speedBoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.speeda) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -48,7 +48,7 @@ export function speedA(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -67,12 +67,12 @@ export function speedA(message: ChatSendAfterEvent, args: string[]) { // Allow dynamicPropertyRegistry.set("speeda_b", true); world.setDynamicProperty("speeda_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6SpeedA§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6SpeedA§f!`); SpeedA(); } else if (speedBoolean === true) { // Deny dynamicPropertyRegistry.set("speeda_b", false); world.setDynamicProperty("speeda_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4SpeedA§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4SpeedA§f!`); } } diff --git a/src/commands/settings/stackban.ts b/src/commands/settings/stackban.ts index f66b74f..59e5ec4 100644 --- a/src/commands/settings/stackban.ts +++ b/src/commands/settings/stackban.ts @@ -1,9 +1,9 @@ import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; -function stackBanHelp(player: Player, prefix: string, stackBanBoolean: string | number | boolean) { +function stackBanHelp(player: Player, prefix: string, stackBanBoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.stackban) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -47,7 +47,7 @@ export function stackban(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -79,11 +79,11 @@ export function stackban(message: ChatSendAfterEvent, args: string[]) { // Allow dynamicPropertyRegistry.set("stackban_b", true); world.setDynamicProperty("stackban_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6StackBans§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6StackBans§f!`); } else if (stackBanBoolean === true) { // Deny dynamicPropertyRegistry.set("stackban_b", false); world.setDynamicProperty("stackban_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4StackBans§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4StackBans§f!`); } } diff --git a/src/commands/settings/worldborder.ts b/src/commands/settings/worldborder.ts index 962701f..083a4c7 100644 --- a/src/commands/settings/worldborder.ts +++ b/src/commands/settings/worldborder.ts @@ -1,10 +1,10 @@ -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import config from "../../data/config.js"; import { WorldBorder } from "../../penrose/TickEvent/worldborder/worldborder.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; -function worldBorderHelp(player: Player, prefix: string, worldBorderBoolean: string | number | boolean) { +function worldBorderHelp(player: Player, prefix: string, worldBorderBoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.worldborder) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -37,7 +37,7 @@ function worldBorderHelp(player: Player, prefix: string, worldBorderBoolean: str } function setWorldBorder(player: Player, overworldSize: number, netherSize: number, endSize: number) { - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f has set the §6World Border§f! Overworld: ${overworldSize} Nether: ${netherSize} End: ${endSize}`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f has set the §6World Border§f! Overworld: §7${overworldSize}§f Nether: §7${netherSize}§f End: §7${endSize}§f`); dynamicPropertyRegistry.set("worldborder_b", true); dynamicPropertyRegistry.set("worldborder_n", Math.abs(overworldSize)); dynamicPropertyRegistry.set("worldborder_nether_n", Math.abs(netherSize)); @@ -63,7 +63,7 @@ export function worldborders(message: ChatSendAfterEvent, args: string[]) { const uniqueId = dynamicPropertyRegistry.get(player?.id); if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } const prefix = getPrefix(player); @@ -79,7 +79,7 @@ export function worldborders(message: ChatSendAfterEvent, args: string[]) { // Shutdown worldborder if (args[0] === "disable") { // Disable Worldborder - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> the §6World Border§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> the §6World Border§f!`); dynamicPropertyRegistry.set("worldborder_b", false); dynamicPropertyRegistry.set("worldborder_n", 0); dynamicPropertyRegistry.set("worldborder_nether_n", 0); diff --git a/src/commands/settings/xraya.ts b/src/commands/settings/xraya.ts index 34d7ccd..8f03248 100644 --- a/src/commands/settings/xraya.ts +++ b/src/commands/settings/xraya.ts @@ -1,10 +1,10 @@ import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js"; import config from "../../data/config.js"; -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; -import { XrayA } from "../../penrose/BlockBreakAfterEvent/xray/xray_a.js"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; +import { XrayA } from "../../penrose/PlayerBreakBlockAfterEvent/xray/xray_a.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; -function xrayAHelp(player: Player, prefix: string, xrayBoolean: string | number | boolean) { +function xrayAHelp(player: Player, prefix: string, xrayBoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.xraya) { commandStatus = "§6[§4DISABLED§6]§f"; @@ -48,7 +48,7 @@ export function xrayA(message: ChatSendAfterEvent, args: string[]) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限がないと実行できません!!`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません`); } // Get Dynamic Property Boolean @@ -67,12 +67,12 @@ export function xrayA(message: ChatSendAfterEvent, args: string[]) { // Allow dynamicPropertyRegistry.set("xraya_b", true); world.setDynamicProperty("xraya_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6XrayA§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6XrayA§f!`); XrayA(); } else if (xrayBoolean === true) { // Deny dynamicPropertyRegistry.set("xraya_b", false); world.setDynamicProperty("xraya_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4XrayA§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4XrayA§f!`); } } diff --git a/src/commands/utility/biome.ts b/src/commands/utility/biome.ts index 53b7812..92fd602 100644 --- a/src/commands/utility/biome.ts +++ b/src/commands/utility/biome.ts @@ -1,4 +1,4 @@ -import { ChatSendAfterEvent, Player } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, } from "@minecraft/server"; import config from "../../data/config.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; import { getPrefix, sendMsgToPlayer } from "../../util.js"; diff --git a/src/commands/utility/hotbar.ts b/src/commands/utility/hotbar.ts index 4636e73..016b328 100644 --- a/src/commands/utility/hotbar.ts +++ b/src/commands/utility/hotbar.ts @@ -1,4 +1,4 @@ -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import config from "../../data/config.js"; import { Hotbar } from "../../penrose/TickEvent/hotbar/hotbar.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; @@ -8,7 +8,7 @@ const configMessageBackup = new WeakMap(); // Dummy object const dummy: object = []; -function hotbarHelp(player: Player, prefix: string, hotbarBoolean: string | number | boolean) { +function hotbarHelp(player: Player, prefix: string, hotbarBoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.hotbar) { commandStatus = "§6[§4DISABLED§6]§f"; diff --git a/src/commands/utility/listhome.ts b/src/commands/utility/listhome.ts index 54067a5..c408b36 100644 --- a/src/commands/utility/listhome.ts +++ b/src/commands/utility/listhome.ts @@ -58,7 +58,7 @@ export function listhome(message: ChatSendAfterEvent, args: string[]) { for (let i = 0; i < tagsLength; i++) { if (tags[i].startsWith("1337")) { // Decode it so we can verify it - tags[i] =EncryptionManager.decryptString(tags[i], salt as string); + tags[i] = EncryptionManager.decryptString(tags[i], salt as string); // If invalid then skip it if (tags[i].startsWith("LocationHome:") === false) { continue; diff --git a/src/commands/utility/pvp.ts b/src/commands/utility/pvp.ts new file mode 100644 index 0000000..91939f0 --- /dev/null +++ b/src/commands/utility/pvp.ts @@ -0,0 +1,62 @@ +import { ChatSendAfterEvent, Player } from "@minecraft/server"; +import { getPrefix, sendMsgToPlayer } from "../../util.js"; +import config from "../../data/config.js"; + +function pvpHelp(player: Player, prefix: string) { + let commandStatus: string; + if (!config.customcommands.pvp) { + commandStatus = "§6[§4DISABLED§6]§f"; + } else { + commandStatus = "§6[§aENABLED§6]§f"; + } + return sendMsgToPlayer(player, [ + `\n§o§4[§6Command§4]§f: pvp`, + `§4[§6Status§4]§f: ${commandStatus}`, + `§4[§6Usage§4]§f: pvp [optional]`, + `§4[§6Optional§4]§f: enable, disable, help`, + `§4[§6Description§4]§f: Enables or Disables PVP. While disabled you wont take damage when another player attacks you.`, + `§4[§6Examples§4]§f:`, + ` ${prefix}pvp enable`, + ` §4- §6Enables PVP§f`, + ` ${prefix}pvp disable`, + ` §4- §6Disables PVP§f`, + ` ${prefix}pvp help`, + ` §4- §6Show command help§f`, + ]); +} + +/** + * @name pvp + * @param {ChatSendAfterEvent} message - Message object + * @param {string[]} args - Additional arguments provided (optional). + */ +export function pvp(message: ChatSendAfterEvent, args: string[]) { + // Validate that required params are defined + if (!message) { + return console.warn(`${new Date()} | ` + "Error: ${message} isnt defined. Did you forget to pass it? ./commands/utility/pvp.js:26)"); + } + + const player = message.sender; + + // Check for custom prefix + const prefix = getPrefix(player); + + // Are there arguements + if (!args.length) { + return pvpHelp(player, prefix); + } + + // Was help requested + const argCheck = args[0]; + if (argCheck && (args[0].toLowerCase() === "help" || !config.customcommands.pvp)) { + return pvpHelp(player, prefix); + } + if (argCheck && args[0].toLowerCase() === "enable") { + player.removeTag("pvpDisabled"); + sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f You have §2enabled §fPVP.`); + } + if (argCheck && args[0].toLowerCase() === "disable") { + player.addTag("pvpDisabled"); + sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f You have §4disabled §fPVP.`); + } +} diff --git a/src/commands/utility/rank.ts b/src/commands/utility/rank.ts index e1213d0..0387f73 100644 --- a/src/commands/utility/rank.ts +++ b/src/commands/utility/rank.ts @@ -1,9 +1,9 @@ -import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; +import { ChatSendAfterEvent, Player, Vector3, world } from "@minecraft/server"; import config from "../../data/config.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; import { resetTag, getPrefix, sendMsgToPlayer, sendMsg } from "../../util.js"; -function rankHelp(player: Player, prefix: string, chatRanksBoolean: string | number | boolean) { +function rankHelp(player: Player, prefix: string, chatRanksBoolean: string | number | boolean | Vector3) { let commandStatus: string; if (!config.customcommands.rank || !config.customcommands.chatranks) { commandStatus = "§6[§4DISABLED§6]§f"; diff --git a/src/commands/utility/report.ts b/src/commands/utility/report.ts index add829a..e78f37b 100644 --- a/src/commands/utility/report.ts +++ b/src/commands/utility/report.ts @@ -73,7 +73,7 @@ export function report(message: ChatSendAfterEvent, args: string[]) { return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f自分自身には実行できません.`); } - sendMsgToPlayer(player, `§r§4[§6Paradox§4]§r ${member.name}§r が報告を受けましたしました=>内容: ${reason}`); + sendMsgToPlayer(player, `§r§4[§6Paradox§4]§r ${member.name}§r が報告を受けましたしました=>内容: ${reason}`); - sendMsg("@a[tag=notify]", `§r§4[§6Paradox§4]§r ${player.name}§rが ${member.name}§rに報告を送信しました内=>内容: ${reason}`); + sendMsg("@a[tag=notify]", `§r§4[§6Paradox§4]§r ${player.name}§rが ${member.name}§rに報告を送信しました内=>内容: ${reason}`); } diff --git a/src/commands/utility/tpr.ts b/src/commands/utility/tpr.ts index 17fde2f..cdb113d 100644 --- a/src/commands/utility/tpr.ts +++ b/src/commands/utility/tpr.ts @@ -1,6 +1,6 @@ import { ChatSendAfterEvent, Player, world } from "@minecraft/server"; import config from "../../data/config"; -import { getPrefix, sendMsgToPlayer, setTimer } from "../../util"; +import { getPrefix, sendMsgToPlayer, setTimer } from "../../util"; import { EncryptionManager } from "../../classes/EncryptionManager"; interface TeleportRequest { @@ -96,7 +96,7 @@ function teleportRequestHandler({ sender, message }: ChatSendAfterEvent) { function teleportRequestApprovalHandler(object: ChatSendAfterEvent) { const { sender, message } = object; - const lowercaseMessage =EncryptionManager.decryptString(message, sender.id).toLowerCase(); + const lowercaseMessage = EncryptionManager.decryptString(message, sender.id).toLowerCase(); // Extract the response from the decrypted string const refChar = lowercaseMessage.split("§r"); const extractedPhrase = refChar[1]; @@ -118,8 +118,8 @@ function teleportRequestApprovalHandler(object: ChatSendAfterEvent) { const request = teleportRequests[requestIndex]; if (Date.now() >= request.expiresAt) { - sendMsgToPlayer(request.requester, "§f§4[§6Paradox§4]§f テレポート要求の有効期限が切れました。もう一度やり直してください。"); - sendMsgToPlayer(request.target, "§f§4[§6Paradox§4]§f テレポート要求の有効期限が切れました。もう一度やり直してください。"); + sendMsgToPlayer(request.requester, "§f§4[§6Paradox§4]§f テレポート要求の有効期限が切れました。もう一度やり直してください。"); + sendMsgToPlayer(request.target, "§f§4[§6Paradox§4]§f テレポート要求の有効期限が切れました。もう一度やり直してください。"); teleportRequests.splice(requestIndex, 1); return; } @@ -127,7 +127,7 @@ function teleportRequestApprovalHandler(object: ChatSendAfterEvent) { if (isApprovalRequest) { setTimer(request.requester.id); request.requester.teleport(request.target.location, { dimension: request.target.dimension, rotation: { x: 0, y: 0 }, facingLocation: { x: 0, y: 0, z: 0 }, checkForBlocks: false, keepVelocity: false }); - sendMsgToPlayer(request.requester, `§f§4[§6Paradox§4]§f${request.target.name}がTPを許可しました`); + sendMsgToPlayer(request.requester, `§f§4[§6Paradox§4]§f${request.target.name}がTPを許可しました`); } else { sendMsgToPlayer(request.requester, `§f§4[§6Paradox§4]§f${request.target.name}がTPを拒否しました`); } diff --git a/src/commands/utility/vanish.ts b/src/commands/utility/vanish.ts index 6296e1d..087f003 100644 --- a/src/commands/utility/vanish.ts +++ b/src/commands/utility/vanish.ts @@ -79,7 +79,7 @@ async function handleVanish(message: ChatSendAfterEvent, args: string[]) { } else { player.addTag("vanish"); player.triggerEvent("vanish"); - sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 透明化が有効です`); - sendMsg(`@a[tag=paradoxOpped]`, `§f§4[§6Paradox§4]§f ${player.name}§f は透明化が有効になりました`); + sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 透明化が有効です`); + sendMsg(`@a[tag=paradoxOpped]`, `§f§4[§6Paradox§4]§f ${player.name}§f は透明化が有効になりました`); } } diff --git a/src/data/config.ts b/src/data/config.ts index 0f1128f..8ce993b 100644 --- a/src/data/config.ts +++ b/src/data/config.ts @@ -83,6 +83,7 @@ export default { afk: true, antiphasea: true, channel: true, + pvp: true, }, modules: { badpackets1: { @@ -277,6 +278,6 @@ export default { * レルムズで使用する場合必ずパスワードを設定してね */ encryption: { - password: "", + password: "HACKERBANLOL", }, }; diff --git a/src/gui/guiHandler/guiHandlerModeration/moderationui.ts b/src/gui/guiHandler/guiHandlerModeration/moderationui.ts index 3cfd534..06928b1 100644 --- a/src/gui/guiHandler/guiHandlerModeration/moderationui.ts +++ b/src/gui/guiHandler/guiHandlerModeration/moderationui.ts @@ -19,7 +19,7 @@ import { inventoryHandler } from "./results/inventoryui"; export function moderationui(player: Player) { //new window for Moderation const moderationui = new ActionFormData(); -  moderationui.title("§4管理者メニュー§4"); + moderationui.title("§4管理者メニュー§4"); moderationui.button("Ban", "textures/ui/hammer_l"); moderationui.button("Ban解除", "textures/ui/check"); moderationui.button("ルール", "textures/items/book_writable"); diff --git a/src/gui/guiHandler/guiHandlerModules/guiHandlerMovement/movementui.ts b/src/gui/guiHandler/guiHandlerModules/guiHandlerMovement/movementui.ts index 0192d6a..42cefe6 100644 --- a/src/gui/guiHandler/guiHandlerModules/guiHandlerMovement/movementui.ts +++ b/src/gui/guiHandler/guiHandlerModules/guiHandlerMovement/movementui.ts @@ -11,13 +11,13 @@ import { antiJesusAHandler } from "./results/antijesusa"; export function movementui(player: Player) { const modulesmovementui = new ActionFormData(); modulesmovementui.title("§4メニュー:移動系§4"); - modulesmovementui.button("ノックバック検知", "textures/items/diamond_chestplate"); - modulesmovementui.button("落下ダメ検知", "textures/items/diamond_boots"); - modulesmovementui.button("飛行検知", "textures/items/elytra"); - modulesmovementui.button("Sprint検知", "textures/items/diamond_boots"); - modulesmovementui.button("速さ検知", "textures/items/diamond_boots"); - modulesmovementui.button("Scaffold検知", "textures/blocks/scaffolding_top"); - modulesmovementui.button("水の上走ってるやつ検知", "textures/blocks/lava_placeholder"); + modulesmovementui.button("ノックバック検知", "textures/items/diamond_chestplate"); + modulesmovementui.button("落下ダメ検知", "textures/items/diamond_boots"); + modulesmovementui.button("飛行検知", "textures/items/elytra"); + modulesmovementui.button("Sprint検知", "textures/items/diamond_boots"); + modulesmovementui.button("速さ検知", "textures/items/diamond_boots"); + modulesmovementui.button("Scaffold検知", "textures/blocks/scaffolding_top"); + modulesmovementui.button("水の上走ってるやつ検知", "textures/blocks/lava_placeholder"); modulesmovementui .show(player) .then((movementResult) => { diff --git a/src/gui/guiHandler/guiHandlerModules/modulesui.ts b/src/gui/guiHandler/guiHandlerModules/modulesui.ts index a788f61..caf8dbc 100644 --- a/src/gui/guiHandler/guiHandlerModules/modulesui.ts +++ b/src/gui/guiHandler/guiHandlerModules/modulesui.ts @@ -9,7 +9,6 @@ import { antiSpamHandler } from "./results/antispam"; import { antiAutoClickerHandler } from "./results/antiautoclicker"; import { badPacketsHandler } from "./results/badpackets"; import { bedrockValidationHandler } from "./results/bedrockvalidation"; -import { antiCrasherHandler } from "./results/anticrasher"; import { antiEnchantedArmorHandler } from "./results/enchantedarmor"; import { illegalItemsHandler } from "./results/illegalitems"; import { lagClearHandler } from "./results/lagclear"; @@ -38,7 +37,6 @@ export function modulesui(player: Player) { modulesui.button("AutoCliker検知", "textures/ui/cursor_gamecore"); modulesui.button("Badpackets検知", "textures/ui/upload_glyph"); modulesui.button("Bedrock Validationを設定", "textures/blocks/bedrock"); - modulesui.button("Anti Crasher検知", "textures/ui/Ping_Red"); modulesui.button("エンチャントアーマーを無効化", "textures/items/diamond_leggings"); modulesui.button("禁止アイテムを検知", "textures/items/netherite_pickaxe"); modulesui.button("サーバー最適化", "textures/ui/interact"); @@ -85,48 +83,45 @@ export function modulesui(player: Player) { bedrockValidationHandler(player); break; case 9: - antiCrasherHandler(player); - break; - case 10: antiEnchantedArmorHandler(player); break; - case 11: + case 10: illegalItemsHandler(player); break; - case 12: + case 11: lagClearHandler(player); break; - case 13: + case 12: nameSpoofHandler(player); break; - case 14: + case 13: opsHandler(player); break; - case 15: + case 14: commandBlocksHandler(player); break; - case 16: + case 15: reachHandler(player); break; - case 17: + case 16: salvageHandler(player); break; - case 18: + case 17: spammersHandler(player); break; - case 19: + case 18: worldBorderHandler(player); break; - case 20: + case 19: xrayHandler(player); break; - case 21: + case 20: hotbarHandler(player); break; - case 22: + case 21: afkHandler(player); break; - case 23: + case 22: antiPhaseAHandler(player); break; default: diff --git a/src/gui/guiHandler/guiHandlerModules/results/anticrasher.ts b/src/gui/guiHandler/guiHandlerModules/results/anticrasher.ts deleted file mode 100644 index 6f768f9..0000000 --- a/src/gui/guiHandler/guiHandlerModules/results/anticrasher.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { Player } from "@minecraft/server"; -import { ModalFormData } from "@minecraft/server-ui"; -import { dynamicPropertyRegistry } from "../../../../penrose/WorldInitializeAfterEvent/registry"; -import { uiANTICRASHER } from "../../../modules/uiAntiCrasher"; - -export function antiCrasherHandler(player: Player) { - const modulesanticrasherui = new ModalFormData(); - const crasherABoolean = dynamicPropertyRegistry.get("crashera_b") as boolean; - modulesanticrasherui.title("§4メニュー:Anti Crasher§4"); - modulesanticrasherui.toggle("サーバークラッシュを防ぎます", crasherABoolean); - modulesanticrasherui - .show(player) - .then((anticrasherResult) => { - uiANTICRASHER(anticrasherResult, player); - }) - .catch((error) => { - console.error("Paradox Unhandled Rejection: ", error); - // Extract stack trace information - if (error instanceof Error) { - const stackLines = error.stack.split("\n"); - if (stackLines.length > 1) { - const sourceInfo = stackLines; - console.error("Error originated from:", sourceInfo[0]); - } - } - }); -} diff --git a/src/gui/guiHandler/results/chatChannelsMenu.ts b/src/gui/guiHandler/results/chatChannelsMenu.ts index 29b9a7b..251683e 100644 --- a/src/gui/guiHandler/results/chatChannelsMenu.ts +++ b/src/gui/guiHandler/results/chatChannelsMenu.ts @@ -47,4 +47,4 @@ export function chatChannelMainMenu(player: Player) { } } }); -} \ No newline at end of file +} diff --git a/src/gui/guiHandler/results/location.ts b/src/gui/guiHandler/results/location.ts index 0ac18b1..1819bfb 100644 --- a/src/gui/guiHandler/results/location.ts +++ b/src/gui/guiHandler/results/location.ts @@ -44,11 +44,11 @@ export function locationHandler(player: Player) { */ Locations.push("保存されている座標はありません"); } - savedlocationsui.title("§4座標保存§4"); - savedlocationsui.dropdown(`\n§r座標を選択してください新しく座標を作る際日本語では無く英語またはローマ字で保存してください例:home,ie,kouenn,niwa,等§r\n\n以下の座標が保存されています\n`, Locations); - savedlocationsui.toggle("選択した座標にTP【使う時オン】", false); - savedlocationsui.toggle("選択した座標を削除します【消すときだけオンにしてね】", false); - savedlocationsui.textField("ここの下に名前を入れると今いる座標が保存されます【例:home】", ""); + savedlocationsui.title("§4座標保存§4"); + savedlocationsui.dropdown(`\n§r座標を選択してください新しく座標を作る際日本語では無く英語またはローマ字で保存してください例:home,ie,kouenn,niwa,等§r\n\n以下の座標が保存されています\n`, Locations); + savedlocationsui.toggle("選択した座標にTP【使う時オン】", false); + savedlocationsui.toggle("選択した座標を削除します【消すときだけオンにしてね】", false); + savedlocationsui.textField("ここの下に名前を入れると今いる座標が保存されます【例:home】", ""); if (config.customcommands.sethome === true && config.customcommands.delhome === true && config.customcommands.listhome === true && config.customcommands.gohome === true) { savedlocationsui .show(player) diff --git a/src/gui/moderation/uiManagePlayerSavedLocations.ts b/src/gui/moderation/uiManagePlayerSavedLocations.ts index 509311e..a238f46 100644 --- a/src/gui/moderation/uiManagePlayerSavedLocations.ts +++ b/src/gui/moderation/uiManagePlayerSavedLocations.ts @@ -107,7 +107,7 @@ async function handleUImanagePlayerSavedLocations(managePlayerSavedLocationsUIRe } return paradoxui(player); } - return paradoxui(player); + return paradoxui(player); }) .catch((error) => { console.error("Paradox Unhandled Rejection: ", error); diff --git a/src/gui/moderation/uiOp.ts b/src/gui/moderation/uiOp.ts index a8ae24e..980883b 100644 --- a/src/gui/moderation/uiOp.ts +++ b/src/gui/moderation/uiOp.ts @@ -1,14 +1,14 @@ -import { Player, world } from "@minecraft/server"; +import { Player, Vector3, world } from "@minecraft/server"; import { ActionFormResponse, ModalFormResponse } from "@minecraft/server-ui"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; -import { sendMsg, sendMsgToPlayer } from "../../util"; +import { sendMsg, sendMsgToPlayer } from "../../util"; import { paradoxui } from "../paradoxui.js"; import config from "../../data/config.js"; import { EncryptionManager } from "../../classes/EncryptionManager.js"; import { UUIDManager } from "../../classes/UUIDManager.js"; //Function provided by Visual1mpact -export function uiOP(opResult: ModalFormResponse | ActionFormResponse, salt: string | number | boolean, hash: string | number | boolean, player: Player, onlineList?: string[]) { +export function uiOP(opResult: ModalFormResponse | ActionFormResponse, salt: string | number | boolean, hash: string | number | boolean | Vector3, player: Player, onlineList?: string[]) { if (!opResult || opResult.canceled) { // Handle canceled form or undefined result return; diff --git a/src/gui/modules/uiAntiCrasher.ts b/src/gui/modules/uiAntiCrasher.ts deleted file mode 100644 index 8626503..0000000 --- a/src/gui/modules/uiAntiCrasher.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { Player, world } from "@minecraft/server"; -import { ModalFormResponse } from "@minecraft/server-ui"; -import { CrasherA } from "../../penrose/TickEvent/crasher/crasher_a.js"; -import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; -import { sendMsg, sendMsgToPlayer } from "../../util"; -import { paradoxui } from "../paradoxui.js"; - -export function uiANTICRASHER(anticrasherResult: ModalFormResponse, player: Player) { - if (!anticrasherResult || anticrasherResult.canceled) { - // Handle canceled form or undefined result - return; - } - const [AntiCrasherToggle] = anticrasherResult.formValues; - // Get unique ID - const uniqueId = dynamicPropertyRegistry.get(player?.id); - - // Get Dynamic Property Boolean - - // Make sure the user has permissions to run the command - if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません to configure Anti Crasher`); - } - if (AntiCrasherToggle === true) { - // Allow - dynamicPropertyRegistry.set("crashera_b", true); - world.setDynamicProperty("crashera_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6CrasherA§f!`); - CrasherA(); - } - if (AntiCrasherToggle === false) { - // Deny - dynamicPropertyRegistry.set("crashera_b", false); - world.setDynamicProperty("crashera_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4CrasherA§f!`); - } - - //show the main ui to the player once complete. - return paradoxui(player); -} diff --git a/src/gui/modules/uiAntiNuker.ts b/src/gui/modules/uiAntiNuker.ts index 78d60a9..8f29d18 100644 --- a/src/gui/modules/uiAntiNuker.ts +++ b/src/gui/modules/uiAntiNuker.ts @@ -1,9 +1,9 @@ import { Player, world } from "@minecraft/server"; import { ModalFormResponse } from "@minecraft/server-ui"; -import { NukerA } from "../../penrose/BlockBreakAfterEvent/nuker/nuker_a.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; import { sendMsg, sendMsgToPlayer } from "../../util"; import { paradoxui } from "../paradoxui.js"; +import { BeforeNukerA } from "../../penrose/PlayerBreakBlockBeforeEvent/nuker/nuker_a.js"; export function uiANTINUKER(antinukerResult: ModalFormResponse, player: Player) { if (!antinukerResult || antinukerResult.canceled) { @@ -25,7 +25,7 @@ export function uiANTINUKER(antinukerResult: ModalFormResponse, player: Player) dynamicPropertyRegistry.set("antinukera_b", true); world.setDynamicProperty("antinukera_b", true); sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6AntiNukerA§f!`); - NukerA(); + BeforeNukerA(); } if (AntiNukerToggle === false) { dynamicPropertyRegistry.set("antinukera_b", false); diff --git a/src/gui/modules/uiAntiScaffold.ts b/src/gui/modules/uiAntiScaffold.ts index 01a2a4f..2756292 100644 --- a/src/gui/modules/uiAntiScaffold.ts +++ b/src/gui/modules/uiAntiScaffold.ts @@ -1,6 +1,6 @@ import { Player, world } from "@minecraft/server"; import { ModalFormResponse } from "@minecraft/server-ui"; -import { ScaffoldA } from "../../penrose/BlockPlaceAfterEvent/scaffold/scaffold_a.js"; +import { ScaffoldA } from "../../penrose/PlayerPlaceBlockAfterEvent/scaffold/scaffold_a.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; import { sendMsg, sendMsgToPlayer } from "../../util"; import { paradoxui } from "../paradoxui.js"; @@ -39,21 +39,21 @@ async function handleUIAntiScaffold(antiscaffoldResult: ModalFormResponse, playe // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません to configure Anti Scaffold`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限を取得してください`); } if (AntiScaffoldToggle === true) { // Allow dynamicPropertyRegistry.set("antiscaffolda_b", true); world.setDynamicProperty("antiscaffolda_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6AntiScaffoldA§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6AntiScaffoldA§f!`); ScaffoldA(); } if (AntiScaffoldToggle === false) { // Deny dynamicPropertyRegistry.set("antiscaffolda_b", false); world.setDynamicProperty("antiscaffolda_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4AntiScaffoldA§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4AntiScaffoldA§f!`); } //show the main ui to the player once complete. diff --git a/src/gui/modules/uiIllegaItems.ts b/src/gui/modules/uiIllegaItems.ts index 91174c6..60a0517 100644 --- a/src/gui/modules/uiIllegaItems.ts +++ b/src/gui/modules/uiIllegaItems.ts @@ -1,6 +1,6 @@ import { Player, world } from "@minecraft/server"; import { ModalFormResponse } from "@minecraft/server-ui"; -import { IllegalItemsB } from "../../penrose/BlockPlaceAfterEvent/illegalitems/illegalitems_b.js"; +import { IllegalItemsB } from "../../penrose/PlayerPlaceBlockAfterEvent/illegalitems/illegalitems_b"; import { IllegalItemsA } from "../../penrose/TickEvent/illegalitems/illegalitems_a.js"; import { IllegalItemsC } from "../../penrose/TickEvent/illegalitems/illegalitems_c.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; diff --git a/src/gui/modules/uiReach.ts b/src/gui/modules/uiReach.ts index bcbc48b..b74d116 100644 --- a/src/gui/modules/uiReach.ts +++ b/src/gui/modules/uiReach.ts @@ -1,10 +1,10 @@ import { Player, world } from "@minecraft/server"; import { ModalFormResponse } from "@minecraft/server-ui"; -import { ReachA } from "../../penrose/BlockPlaceAfterEvent/reach/reach_a.js"; import { ReachB } from "../../penrose/EntityHitEntityAfterEvent/reach_b.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; import { sendMsg, sendMsgToPlayer } from "../../util"; import { paradoxui } from "../paradoxui.js"; +import { BeforeReachA } from "../../penrose/PlayerPlaceBlockBeforeEvent/reach/reach_a.js"; export function uiREACH(reachResult: ModalFormResponse, player: Player) { if (!reachResult || reachResult.canceled) { @@ -21,33 +21,33 @@ export function uiREACH(reachResult: ModalFormResponse, player: Player) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません to configure Reach`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者権限を取得してください`); } if (ReachAToggle === true && reachABoolean === false) { // Allow dynamicPropertyRegistry.set("reacha_b", true); world.setDynamicProperty("reacha_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6ReachA§f!`); - ReachA(); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6ReachA§f!`); + BeforeReachA(); } if (ReachAToggle === false && reachABoolean === true) { // Deny dynamicPropertyRegistry.set("reacha_b", false); world.setDynamicProperty("reacha_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4ReachA§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4ReachA§f!`); } if (ReachBToggle === true && reachBBoolean === false) { // Allow dynamicPropertyRegistry.set("reachb_b", true); world.setDynamicProperty("reachb_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6ReachB§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました §6ReachB§f!`); ReachB(); } if (ReachBToggle === false && reachBBoolean === true) { // Deny dynamicPropertyRegistry.set("reachb_b", false); world.setDynamicProperty("reachb_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4ReachB§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました §4ReachB§f!`); } //show the main ui to the player once complete. diff --git a/src/gui/modules/uiXray.ts b/src/gui/modules/uiXray.ts index 3971bc7..a74be14 100644 --- a/src/gui/modules/uiXray.ts +++ b/src/gui/modules/uiXray.ts @@ -1,6 +1,6 @@ import { Player, world } from "@minecraft/server"; import { ModalFormResponse } from "@minecraft/server-ui"; -import { XrayA } from "../../penrose/BlockBreakAfterEvent/xray/xray_a.js"; +import { XrayA } from "../../penrose/PlayerBreakBlockAfterEvent/xray/xray_a.js"; import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js"; import { sendMsg, sendMsgToPlayer } from "../../util"; import { paradoxui } from "../paradoxui.js"; @@ -18,20 +18,20 @@ export function uiXRAY(xrayResult: ModalFormResponse, player: Player) { // Make sure the user has permissions to run the command if (uniqueId !== player.name) { - return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者しか実行できません to configure Xray`); + return sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f 管理者で実行してください`); } if (XrayToggle === true) { // Allow dynamicPropertyRegistry.set("xraya_b", true); world.setDynamicProperty("xraya_b", true); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が有効です!=> §6XrayA§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 有効にしました=> §6XrayA§f!`); XrayA(); } if (XrayToggle === false) { // Deny dynamicPropertyRegistry.set("xraya_b", false); world.setDynamicProperty("xraya_b", false); - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${player.name}§f 以下の機能が無効です!=> §4XrayA§f!`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${player.name}§f 無効にしました=> §4XrayA§f!`); } //show the main ui to the player once complete. diff --git a/src/gui/paradoxui.ts b/src/gui/paradoxui.ts index 695246d..5a48be4 100644 --- a/src/gui/paradoxui.ts +++ b/src/gui/paradoxui.ts @@ -39,27 +39,26 @@ async function handleParadoxUI(player: Player) { const hash = player.getDynamicProperty("hash"); const salt = player.getDynamicProperty("salt"); const uniqueId = dynamicPropertyRegistry.get(player?.id); - maingui.title("§4メニュー§4"); - maingui.body("§eこのメニューではTPリクエストや座標を保存そして報告機能が使えます!§e\n" + "§fVersion: §2" + versionFile.version); + maingui.title("§4メニュー§4"); + maingui.body("§eこのメニューではTPリクエストや座標を保存そして報告機能が使えます!§e\n" + "§fVersion: §2" + versionFile.version); if (uniqueId !== player.name) { - maingui.button("管理者", "textures/ui/op"); - maingui.button("TPリクエスト!", "textures/blocks/portal_placeholder"); - maingui.button("座標保存", "textures/items/compass_item"); - maingui.button("報告!", "textures/items/paper"); - maingui.button("制作途中【一時的に報告に置き換わります】", "textures/ui/mute_off"); + maingui.button("管理者", "textures/ui/op"); + maingui.button("TPリクエスト!", "textures/blocks/portal_placeholder"); + maingui.button("座標保存", "textures/items/compass_item"); + maingui.button("報告!", "textures/items/paper"); } else { - maingui.button("オペレーター", "textures/ui/op"); - maingui.button("権限剝奪", "textures/items/ender_pearl"); - maingui.button("管理者メニュー", "textures/items/book_normal"); - maingui.button("アンチチート設定", "textures/blocks/command_block"); - maingui.button("起動文字変更", "textures/ui/UpdateGlyph"); - maingui.button("TPリクエスト", "textures/blocks/portal_placeholder"); - maingui.button("座標保存", "textures/items/compass_item"); - maingui.button("ユーザーログ", "textures/items/book_normal"); - maingui.button("報告!", "textures/items/paper"); - maingui.button("インベントリ確認", "textures/blocks/chest_front"); - maingui.button("パーティー", "textures/ui/mute_off"); - maingui.button("ユーザーの座標管理", "textures/items/compass_item"); + maingui.button("オペレーター", "textures/ui/op"); + maingui.button("権限剝奪", "textures/items/ender_pearl"); + maingui.button("管理者メニュー", "textures/items/book_normal"); + maingui.button("アンチチート設定", "textures/blocks/command_block"); + maingui.button("起動文字変更", "textures/ui/UpdateGlyph"); + maingui.button("TPリクエスト", "textures/blocks/portal_placeholder"); + maingui.button("座標保存", "textures/items/compass_item"); + maingui.button("ユーザーログ", "textures/items/book_normal"); + maingui.button("報告!", "textures/items/paper"); + maingui.button("インベントリ確認", "textures/blocks/chest_front"); + maingui.button("パーティー", "textures/ui/mute_off"); + maingui.button("ユーザーの座標管理", "textures/items/compass_item"); } maingui .show(player) @@ -80,8 +79,6 @@ async function handleParadoxUI(player: Player) { case 3: reportHandler(player); break; - case 4: - chatChannelMainMenu(player); default: // Handle other selections for isUnique case break; diff --git a/src/gui/playerui/chatChannels/uiChatChannels.ts b/src/gui/playerui/chatChannels/uiChatChannels.ts index 6cbbd29..d10f9c1 100644 --- a/src/gui/playerui/chatChannels/uiChatChannels.ts +++ b/src/gui/playerui/chatChannels/uiChatChannels.ts @@ -159,7 +159,7 @@ export function uiChatChannelInvite(ChatChannelJoinUIResult: ModalFormResponse, if (playerToInvite) { const inviteResult = ChatChannelManager.inviteToChatChannel(playerToInvite, channelNameToInvite); if (inviteResult) { - uiMessage = `§fInvited ${playerToInvite} to join chat channel '${channelNameToInvite}'.`; + uiMessage = `§fInvited §7${playerToInvite}§f to join chat channel '§7${channelNameToInvite}§f'.`; const joinedPlayerName = joinedPlayer ? joinedPlayer.name : "Unknown Player"; const joinMessage = `§f§4[§6Paradox§4]§f §6${joinedPlayerName}§f joined the chat channel.`; @@ -172,7 +172,7 @@ export function uiChatChannelInvite(ChatChannelJoinUIResult: ModalFormResponse, } }); - sendMsgToPlayer(joinedPlayer, `§f§4[§6Paradox§4]§f ${player.name} invited you to channel '${channelNameToInvite}'.`); + sendMsgToPlayer(joinedPlayer, `§f§4[§6Paradox§4]§f §7${player.name}§f invited you to channel '§7${channelNameToInvite}§f'.`); } else { uiMessage = `§6f ${playerToInvite} is already in a chat channel.`; } @@ -186,8 +186,8 @@ export function uiChatChannelInvite(ChatChannelJoinUIResult: ModalFormResponse, msgUI.show(player); } } -export function uiChatChannelLeave(ChatChannelLeaveUIResult: ModalFormResponse, player: Player, channelDropdownData: { text: string; value: string }[]) { - handleUIChatChannelLeave(ChatChannelLeaveUIResult, player, channelDropdownData).catch((error) => { +export function uiChatChannelLeave(player: Player) { + handleUIChatChannelLeave(player).catch((error) => { console.error("Paradox Unhandled Rejection: ", error); // Extract stack trace information if (error instanceof Error) { @@ -199,7 +199,7 @@ export function uiChatChannelLeave(ChatChannelLeaveUIResult: ModalFormResponse, } }); - async function handleUIChatChannelLeave(ChatChannelLeaveUIResult: ModalFormResponse, player: Player, channelDropdownData: { text: string; value: string }[]) { + async function handleUIChatChannelLeave(player: Player) { let uiMessage: string = ""; const channelNameToLeave = ChatChannelManager.getPlayerChannel(player.id); @@ -239,7 +239,7 @@ export function uiChatChannelLeave(ChatChannelLeaveUIResult: ModalFormResponse, if (newOwnerId) { ChatChannelManager.handOverChannelOwnership(channelNameToLeave, ChatChannelManager.getPlayerById(player.id), ChatChannelManager.getPlayerById(newOwnerId).name); const newOwnerObject = ChatChannelManager.getPlayerById(newOwnerId); - sendMsgToPlayer(newOwnerObject, `§f§4[§6Paradox§4]§f Ownership of chat channel '${channelNameToLeave}' transferred to '${newOwnerObject.name}'.`); + sendMsgToPlayer(newOwnerObject, `§f§4[§6Paradox§4]§f Ownership of chat channel '§7${channelNameToLeave}§f' transferred to '§7${newOwnerObject.name}§f'.`); } else { // If no other members, delete the channel ChatChannelManager.deleteChatChannel(channelNameToLeave, channelToLeave.password); @@ -284,7 +284,7 @@ export function uiChatChannelDelete(ChatChannelDeleteUIResult: ActionFormRespons if (deleteResult === "wrong_password") { uiMessage = `§fWrong password for chat channel '§6${channelNameToDelete}'.`; } else { - uiMessage = `§f Chat channel '${channelNameToDelete}' ${deleteResult ? "§2deleted." : "§6not found."}`; + uiMessage = `§f Chat channel '§7${channelNameToDelete}§f' ${deleteResult ? "§2deleted." : "§6not found."}`; } const msgUI = new ActionFormData(); msgUI.title("§4Chat Channel Delete§4"); @@ -299,7 +299,7 @@ export function uiChatChannelDelete(ChatChannelDeleteUIResult: ActionFormRespons if (deleteResult === "wrong_password") { uiMessage = `§fWrong password for chat channel '§6${channelNameToDelete}'.`; } else { - uiMessage = `§f Chat channel '${channelNameToDelete}' ${deleteResult ? "§2deleted." : "§6not found."}`; + uiMessage = `§f Chat channel '§7${channelNameToDelete}§f' ${deleteResult ? "§2deleted." : "§6not found."}`; } const msgUI = new ActionFormData(); msgUI.title("§4Chat Channel Delete§4"); @@ -312,4 +312,4 @@ export function uiChatChannelDelete(ChatChannelDeleteUIResult: ActionFormRespons chatChannelMainMenu(player); } } -} +} \ No newline at end of file diff --git a/src/gui/playerui/chatChannels/uiChatChannelsLeaveMenu.ts b/src/gui/playerui/chatChannels/uiChatChannelsLeaveMenu.ts index cae0ffa..c705ade 100644 --- a/src/gui/playerui/chatChannels/uiChatChannelsLeaveMenu.ts +++ b/src/gui/playerui/chatChannels/uiChatChannelsLeaveMenu.ts @@ -15,8 +15,8 @@ export function chatChannelsLeaveMenuUI(player: Player) { menu.title("§4Paradox - Chat Channels Leave§4"); menu.dropdown(`\n§fSelect a channel:\n\n`, channelDropdownData); menu.show(player) - .then((chatChannelsLeaveResult) => { - uiChatChannelLeave(chatChannelsLeaveResult, player, channelDropdownData); + .then(() => { + uiChatChannelLeave(player); }) .catch((error) => { console.error("Paradox Unhandled Rejection: ", error); @@ -29,4 +29,4 @@ export function chatChannelsLeaveMenuUI(player: Player) { } } }); -} +} \ No newline at end of file diff --git a/src/gui/showrules/showrules.ts b/src/gui/showrules/showrules.ts index f5df995..3e602a2 100644 --- a/src/gui/showrules/showrules.ts +++ b/src/gui/showrules/showrules.ts @@ -34,7 +34,9 @@ async function showrules(id: number) { const players = world.getPlayers(filter); const promises = players.map(async (player) => { - if (playersAwaitingResponse.has(player.id)) { + if (!playersAwaitingResponse.has(player.id)) { + playersAwaitingResponse.add(player.id); + } else { // Player is already being shown the rules, skip this player. return; } diff --git a/src/node_modules/.package-lock.json b/src/node_modules/.package-lock.json index 362c8df..760e34e 100644 --- a/src/node_modules/.package-lock.json +++ b/src/node_modules/.package-lock.json @@ -4,9 +4,9 @@ "requires": true, "packages": { "node_modules/@minecraft/vanilla-data": { - "version": "1.20.10", - "resolved": "https://registry.npmjs.org/@minecraft/vanilla-data/-/vanilla-data-1.20.10.tgz", - "integrity": "sha512-3FbbRSJspjJyk5eFPSj70wp776tIaqP3Apo2q2yCMkzBhH0iwPizl5aDer6ZwWBPiipGev9039Or2R9wyAplbg==" + "version": "1.20.30", + "resolved": "https://registry.npmjs.org/@minecraft/vanilla-data/-/vanilla-data-1.20.30.tgz", + "integrity": "sha512-ADFHOm5BPmeNCN3P2seCVtMFaCDeUD6in/SgtAsYQrWS2lcrdmQjYqMAKVYwDlsUejoLzcmObFbTZI1/L21fww==" }, "node_modules/crypto-es": { "version": "2.0.4", diff --git a/src/node_modules/@minecraft/vanilla-data/lib/index.d.ts b/src/node_modules/@minecraft/vanilla-data/lib/index.d.ts index be5ecd4..69edb9c 100644 --- a/src/node_modules/@minecraft/vanilla-data/lib/index.d.ts +++ b/src/node_modules/@minecraft/vanilla-data/lib/index.d.ts @@ -1,4 +1,5 @@ export * from './mojang-block'; +export * from './mojang-cameraPresets'; export * from './mojang-dimension'; export * from './mojang-effect'; export * from './mojang-enchantment'; diff --git a/src/node_modules/@minecraft/vanilla-data/lib/index.js b/src/node_modules/@minecraft/vanilla-data/lib/index.js index be5ecd4..add2be8 100644 --- a/src/node_modules/@minecraft/vanilla-data/lib/index.js +++ b/src/node_modules/@minecraft/vanilla-data/lib/index.js @@ -1,6 +1,10 @@ -export * from './mojang-block'; -export * from './mojang-dimension'; -export * from './mojang-effect'; -export * from './mojang-enchantment'; -export * from './mojang-entity'; -export * from './mojang-item'; +// Vanilla Data for Minecraft Bedrock Edition script APIs +// Project: https://docs.microsoft.com/minecraft/creator/ +// Definitions by: Jake Shirley +// Mike Ammerlaan +// Raphael Landaverde + +/* ***************************************************************************** + Copyright (c) Microsoft Corporation. + ***************************************************************************** */ +var MinecraftBlockTypes=(MinecraftBlockTypes2=>{MinecraftBlockTypes2["AcaciaButton"]="minecraft:acacia_button";MinecraftBlockTypes2["AcaciaDoor"]="minecraft:acacia_door";MinecraftBlockTypes2["AcaciaFence"]="minecraft:acacia_fence";MinecraftBlockTypes2["AcaciaFenceGate"]="minecraft:acacia_fence_gate";MinecraftBlockTypes2["AcaciaHangingSign"]="minecraft:acacia_hanging_sign";MinecraftBlockTypes2["AcaciaLog"]="minecraft:acacia_log";MinecraftBlockTypes2["AcaciaPressurePlate"]="minecraft:acacia_pressure_plate";MinecraftBlockTypes2["AcaciaStairs"]="minecraft:acacia_stairs";MinecraftBlockTypes2["AcaciaStandingSign"]="minecraft:acacia_standing_sign";MinecraftBlockTypes2["AcaciaTrapdoor"]="minecraft:acacia_trapdoor";MinecraftBlockTypes2["AcaciaWallSign"]="minecraft:acacia_wall_sign";MinecraftBlockTypes2["ActivatorRail"]="minecraft:activator_rail";MinecraftBlockTypes2["Air"]="minecraft:air";MinecraftBlockTypes2["Allow"]="minecraft:allow";MinecraftBlockTypes2["AmethystBlock"]="minecraft:amethyst_block";MinecraftBlockTypes2["AmethystCluster"]="minecraft:amethyst_cluster";MinecraftBlockTypes2["AncientDebris"]="minecraft:ancient_debris";MinecraftBlockTypes2["AndesiteStairs"]="minecraft:andesite_stairs";MinecraftBlockTypes2["Anvil"]="minecraft:anvil";MinecraftBlockTypes2["Azalea"]="minecraft:azalea";MinecraftBlockTypes2["AzaleaLeaves"]="minecraft:azalea_leaves";MinecraftBlockTypes2["AzaleaLeavesFlowered"]="minecraft:azalea_leaves_flowered";MinecraftBlockTypes2["Bamboo"]="minecraft:bamboo";MinecraftBlockTypes2["BambooBlock"]="minecraft:bamboo_block";MinecraftBlockTypes2["BambooButton"]="minecraft:bamboo_button";MinecraftBlockTypes2["BambooDoor"]="minecraft:bamboo_door";MinecraftBlockTypes2["BambooDoubleSlab"]="minecraft:bamboo_double_slab";MinecraftBlockTypes2["BambooFence"]="minecraft:bamboo_fence";MinecraftBlockTypes2["BambooFenceGate"]="minecraft:bamboo_fence_gate";MinecraftBlockTypes2["BambooHangingSign"]="minecraft:bamboo_hanging_sign";MinecraftBlockTypes2["BambooMosaic"]="minecraft:bamboo_mosaic";MinecraftBlockTypes2["BambooMosaicDoubleSlab"]="minecraft:bamboo_mosaic_double_slab";MinecraftBlockTypes2["BambooMosaicSlab"]="minecraft:bamboo_mosaic_slab";MinecraftBlockTypes2["BambooMosaicStairs"]="minecraft:bamboo_mosaic_stairs";MinecraftBlockTypes2["BambooPlanks"]="minecraft:bamboo_planks";MinecraftBlockTypes2["BambooPressurePlate"]="minecraft:bamboo_pressure_plate";MinecraftBlockTypes2["BambooSapling"]="minecraft:bamboo_sapling";MinecraftBlockTypes2["BambooSlab"]="minecraft:bamboo_slab";MinecraftBlockTypes2["BambooStairs"]="minecraft:bamboo_stairs";MinecraftBlockTypes2["BambooStandingSign"]="minecraft:bamboo_standing_sign";MinecraftBlockTypes2["BambooTrapdoor"]="minecraft:bamboo_trapdoor";MinecraftBlockTypes2["BambooWallSign"]="minecraft:bamboo_wall_sign";MinecraftBlockTypes2["Barrel"]="minecraft:barrel";MinecraftBlockTypes2["Barrier"]="minecraft:barrier";MinecraftBlockTypes2["Basalt"]="minecraft:basalt";MinecraftBlockTypes2["Beacon"]="minecraft:beacon";MinecraftBlockTypes2["Bed"]="minecraft:bed";MinecraftBlockTypes2["Bedrock"]="minecraft:bedrock";MinecraftBlockTypes2["BeeNest"]="minecraft:bee_nest";MinecraftBlockTypes2["Beehive"]="minecraft:beehive";MinecraftBlockTypes2["Beetroot"]="minecraft:beetroot";MinecraftBlockTypes2["Bell"]="minecraft:bell";MinecraftBlockTypes2["BigDripleaf"]="minecraft:big_dripleaf";MinecraftBlockTypes2["BirchButton"]="minecraft:birch_button";MinecraftBlockTypes2["BirchDoor"]="minecraft:birch_door";MinecraftBlockTypes2["BirchFence"]="minecraft:birch_fence";MinecraftBlockTypes2["BirchFenceGate"]="minecraft:birch_fence_gate";MinecraftBlockTypes2["BirchHangingSign"]="minecraft:birch_hanging_sign";MinecraftBlockTypes2["BirchLog"]="minecraft:birch_log";MinecraftBlockTypes2["BirchPressurePlate"]="minecraft:birch_pressure_plate";MinecraftBlockTypes2["BirchStairs"]="minecraft:birch_stairs";MinecraftBlockTypes2["BirchStandingSign"]="minecraft:birch_standing_sign";MinecraftBlockTypes2["BirchTrapdoor"]="minecraft:birch_trapdoor";MinecraftBlockTypes2["BirchWallSign"]="minecraft:birch_wall_sign";MinecraftBlockTypes2["BlackCandle"]="minecraft:black_candle";MinecraftBlockTypes2["BlackCandleCake"]="minecraft:black_candle_cake";MinecraftBlockTypes2["BlackCarpet"]="minecraft:black_carpet";MinecraftBlockTypes2["BlackConcrete"]="minecraft:black_concrete";MinecraftBlockTypes2["BlackConcretePowder"]="minecraft:black_concrete_powder";MinecraftBlockTypes2["BlackGlazedTerracotta"]="minecraft:black_glazed_terracotta";MinecraftBlockTypes2["BlackShulkerBox"]="minecraft:black_shulker_box";MinecraftBlockTypes2["BlackStainedGlass"]="minecraft:black_stained_glass";MinecraftBlockTypes2["BlackStainedGlassPane"]="minecraft:black_stained_glass_pane";MinecraftBlockTypes2["BlackTerracotta"]="minecraft:black_terracotta";MinecraftBlockTypes2["BlackWool"]="minecraft:black_wool";MinecraftBlockTypes2["Blackstone"]="minecraft:blackstone";MinecraftBlockTypes2["BlackstoneDoubleSlab"]="minecraft:blackstone_double_slab";MinecraftBlockTypes2["BlackstoneSlab"]="minecraft:blackstone_slab";MinecraftBlockTypes2["BlackstoneStairs"]="minecraft:blackstone_stairs";MinecraftBlockTypes2["BlackstoneWall"]="minecraft:blackstone_wall";MinecraftBlockTypes2["BlastFurnace"]="minecraft:blast_furnace";MinecraftBlockTypes2["BlueCandle"]="minecraft:blue_candle";MinecraftBlockTypes2["BlueCandleCake"]="minecraft:blue_candle_cake";MinecraftBlockTypes2["BlueCarpet"]="minecraft:blue_carpet";MinecraftBlockTypes2["BlueConcrete"]="minecraft:blue_concrete";MinecraftBlockTypes2["BlueConcretePowder"]="minecraft:blue_concrete_powder";MinecraftBlockTypes2["BlueGlazedTerracotta"]="minecraft:blue_glazed_terracotta";MinecraftBlockTypes2["BlueIce"]="minecraft:blue_ice";MinecraftBlockTypes2["BlueShulkerBox"]="minecraft:blue_shulker_box";MinecraftBlockTypes2["BlueStainedGlass"]="minecraft:blue_stained_glass";MinecraftBlockTypes2["BlueStainedGlassPane"]="minecraft:blue_stained_glass_pane";MinecraftBlockTypes2["BlueTerracotta"]="minecraft:blue_terracotta";MinecraftBlockTypes2["BlueWool"]="minecraft:blue_wool";MinecraftBlockTypes2["BoneBlock"]="minecraft:bone_block";MinecraftBlockTypes2["Bookshelf"]="minecraft:bookshelf";MinecraftBlockTypes2["BorderBlock"]="minecraft:border_block";MinecraftBlockTypes2["BrainCoral"]="minecraft:brain_coral";MinecraftBlockTypes2["BrewingStand"]="minecraft:brewing_stand";MinecraftBlockTypes2["BrickBlock"]="minecraft:brick_block";MinecraftBlockTypes2["BrickStairs"]="minecraft:brick_stairs";MinecraftBlockTypes2["BrownCandle"]="minecraft:brown_candle";MinecraftBlockTypes2["BrownCandleCake"]="minecraft:brown_candle_cake";MinecraftBlockTypes2["BrownCarpet"]="minecraft:brown_carpet";MinecraftBlockTypes2["BrownConcrete"]="minecraft:brown_concrete";MinecraftBlockTypes2["BrownConcretePowder"]="minecraft:brown_concrete_powder";MinecraftBlockTypes2["BrownGlazedTerracotta"]="minecraft:brown_glazed_terracotta";MinecraftBlockTypes2["BrownMushroom"]="minecraft:brown_mushroom";MinecraftBlockTypes2["BrownMushroomBlock"]="minecraft:brown_mushroom_block";MinecraftBlockTypes2["BrownShulkerBox"]="minecraft:brown_shulker_box";MinecraftBlockTypes2["BrownStainedGlass"]="minecraft:brown_stained_glass";MinecraftBlockTypes2["BrownStainedGlassPane"]="minecraft:brown_stained_glass_pane";MinecraftBlockTypes2["BrownTerracotta"]="minecraft:brown_terracotta";MinecraftBlockTypes2["BrownWool"]="minecraft:brown_wool";MinecraftBlockTypes2["BubbleColumn"]="minecraft:bubble_column";MinecraftBlockTypes2["BubbleCoral"]="minecraft:bubble_coral";MinecraftBlockTypes2["BuddingAmethyst"]="minecraft:budding_amethyst";MinecraftBlockTypes2["Cactus"]="minecraft:cactus";MinecraftBlockTypes2["Cake"]="minecraft:cake";MinecraftBlockTypes2["Calcite"]="minecraft:calcite";MinecraftBlockTypes2["CalibratedSculkSensor"]="minecraft:calibrated_sculk_sensor";MinecraftBlockTypes2["Camera"]="minecraft:camera";MinecraftBlockTypes2["Campfire"]="minecraft:campfire";MinecraftBlockTypes2["Candle"]="minecraft:candle";MinecraftBlockTypes2["CandleCake"]="minecraft:candle_cake";MinecraftBlockTypes2["Carrots"]="minecraft:carrots";MinecraftBlockTypes2["CartographyTable"]="minecraft:cartography_table";MinecraftBlockTypes2["CarvedPumpkin"]="minecraft:carved_pumpkin";MinecraftBlockTypes2["Cauldron"]="minecraft:cauldron";MinecraftBlockTypes2["CaveVines"]="minecraft:cave_vines";MinecraftBlockTypes2["CaveVinesBodyWithBerries"]="minecraft:cave_vines_body_with_berries";MinecraftBlockTypes2["CaveVinesHeadWithBerries"]="minecraft:cave_vines_head_with_berries";MinecraftBlockTypes2["Chain"]="minecraft:chain";MinecraftBlockTypes2["ChainCommandBlock"]="minecraft:chain_command_block";MinecraftBlockTypes2["ChemicalHeat"]="minecraft:chemical_heat";MinecraftBlockTypes2["ChemistryTable"]="minecraft:chemistry_table";MinecraftBlockTypes2["CherryButton"]="minecraft:cherry_button";MinecraftBlockTypes2["CherryDoor"]="minecraft:cherry_door";MinecraftBlockTypes2["CherryDoubleSlab"]="minecraft:cherry_double_slab";MinecraftBlockTypes2["CherryFence"]="minecraft:cherry_fence";MinecraftBlockTypes2["CherryFenceGate"]="minecraft:cherry_fence_gate";MinecraftBlockTypes2["CherryHangingSign"]="minecraft:cherry_hanging_sign";MinecraftBlockTypes2["CherryLeaves"]="minecraft:cherry_leaves";MinecraftBlockTypes2["CherryLog"]="minecraft:cherry_log";MinecraftBlockTypes2["CherryPlanks"]="minecraft:cherry_planks";MinecraftBlockTypes2["CherryPressurePlate"]="minecraft:cherry_pressure_plate";MinecraftBlockTypes2["CherrySapling"]="minecraft:cherry_sapling";MinecraftBlockTypes2["CherrySlab"]="minecraft:cherry_slab";MinecraftBlockTypes2["CherryStairs"]="minecraft:cherry_stairs";MinecraftBlockTypes2["CherryStandingSign"]="minecraft:cherry_standing_sign";MinecraftBlockTypes2["CherryTrapdoor"]="minecraft:cherry_trapdoor";MinecraftBlockTypes2["CherryWallSign"]="minecraft:cherry_wall_sign";MinecraftBlockTypes2["CherryWood"]="minecraft:cherry_wood";MinecraftBlockTypes2["Chest"]="minecraft:chest";MinecraftBlockTypes2["ChiseledBookshelf"]="minecraft:chiseled_bookshelf";MinecraftBlockTypes2["ChiseledDeepslate"]="minecraft:chiseled_deepslate";MinecraftBlockTypes2["ChiseledNetherBricks"]="minecraft:chiseled_nether_bricks";MinecraftBlockTypes2["ChiseledPolishedBlackstone"]="minecraft:chiseled_polished_blackstone";MinecraftBlockTypes2["ChorusFlower"]="minecraft:chorus_flower";MinecraftBlockTypes2["ChorusPlant"]="minecraft:chorus_plant";MinecraftBlockTypes2["Clay"]="minecraft:clay";MinecraftBlockTypes2["ClientRequestPlaceholderBlock"]="minecraft:client_request_placeholder_block";MinecraftBlockTypes2["CoalBlock"]="minecraft:coal_block";MinecraftBlockTypes2["CoalOre"]="minecraft:coal_ore";MinecraftBlockTypes2["CobbledDeepslate"]="minecraft:cobbled_deepslate";MinecraftBlockTypes2["CobbledDeepslateDoubleSlab"]="minecraft:cobbled_deepslate_double_slab";MinecraftBlockTypes2["CobbledDeepslateSlab"]="minecraft:cobbled_deepslate_slab";MinecraftBlockTypes2["CobbledDeepslateStairs"]="minecraft:cobbled_deepslate_stairs";MinecraftBlockTypes2["CobbledDeepslateWall"]="minecraft:cobbled_deepslate_wall";MinecraftBlockTypes2["Cobblestone"]="minecraft:cobblestone";MinecraftBlockTypes2["CobblestoneWall"]="minecraft:cobblestone_wall";MinecraftBlockTypes2["Cocoa"]="minecraft:cocoa";MinecraftBlockTypes2["ColoredTorchBp"]="minecraft:colored_torch_bp";MinecraftBlockTypes2["ColoredTorchRg"]="minecraft:colored_torch_rg";MinecraftBlockTypes2["CommandBlock"]="minecraft:command_block";MinecraftBlockTypes2["Composter"]="minecraft:composter";MinecraftBlockTypes2["Conduit"]="minecraft:conduit";MinecraftBlockTypes2["CopperBlock"]="minecraft:copper_block";MinecraftBlockTypes2["CopperOre"]="minecraft:copper_ore";MinecraftBlockTypes2["CoralBlock"]="minecraft:coral_block";MinecraftBlockTypes2["CoralFan"]="minecraft:coral_fan";MinecraftBlockTypes2["CoralFanDead"]="minecraft:coral_fan_dead";MinecraftBlockTypes2["CoralFanHang"]="minecraft:coral_fan_hang";MinecraftBlockTypes2["CoralFanHang2"]="minecraft:coral_fan_hang2";MinecraftBlockTypes2["CoralFanHang3"]="minecraft:coral_fan_hang3";MinecraftBlockTypes2["CrackedDeepslateBricks"]="minecraft:cracked_deepslate_bricks";MinecraftBlockTypes2["CrackedDeepslateTiles"]="minecraft:cracked_deepslate_tiles";MinecraftBlockTypes2["CrackedNetherBricks"]="minecraft:cracked_nether_bricks";MinecraftBlockTypes2["CrackedPolishedBlackstoneBricks"]="minecraft:cracked_polished_blackstone_bricks";MinecraftBlockTypes2["CraftingTable"]="minecraft:crafting_table";MinecraftBlockTypes2["CrimsonButton"]="minecraft:crimson_button";MinecraftBlockTypes2["CrimsonDoor"]="minecraft:crimson_door";MinecraftBlockTypes2["CrimsonDoubleSlab"]="minecraft:crimson_double_slab";MinecraftBlockTypes2["CrimsonFence"]="minecraft:crimson_fence";MinecraftBlockTypes2["CrimsonFenceGate"]="minecraft:crimson_fence_gate";MinecraftBlockTypes2["CrimsonFungus"]="minecraft:crimson_fungus";MinecraftBlockTypes2["CrimsonHangingSign"]="minecraft:crimson_hanging_sign";MinecraftBlockTypes2["CrimsonHyphae"]="minecraft:crimson_hyphae";MinecraftBlockTypes2["CrimsonNylium"]="minecraft:crimson_nylium";MinecraftBlockTypes2["CrimsonPlanks"]="minecraft:crimson_planks";MinecraftBlockTypes2["CrimsonPressurePlate"]="minecraft:crimson_pressure_plate";MinecraftBlockTypes2["CrimsonRoots"]="minecraft:crimson_roots";MinecraftBlockTypes2["CrimsonSlab"]="minecraft:crimson_slab";MinecraftBlockTypes2["CrimsonStairs"]="minecraft:crimson_stairs";MinecraftBlockTypes2["CrimsonStandingSign"]="minecraft:crimson_standing_sign";MinecraftBlockTypes2["CrimsonStem"]="minecraft:crimson_stem";MinecraftBlockTypes2["CrimsonTrapdoor"]="minecraft:crimson_trapdoor";MinecraftBlockTypes2["CrimsonWallSign"]="minecraft:crimson_wall_sign";MinecraftBlockTypes2["CryingObsidian"]="minecraft:crying_obsidian";MinecraftBlockTypes2["CutCopper"]="minecraft:cut_copper";MinecraftBlockTypes2["CutCopperSlab"]="minecraft:cut_copper_slab";MinecraftBlockTypes2["CutCopperStairs"]="minecraft:cut_copper_stairs";MinecraftBlockTypes2["CyanCandle"]="minecraft:cyan_candle";MinecraftBlockTypes2["CyanCandleCake"]="minecraft:cyan_candle_cake";MinecraftBlockTypes2["CyanCarpet"]="minecraft:cyan_carpet";MinecraftBlockTypes2["CyanConcrete"]="minecraft:cyan_concrete";MinecraftBlockTypes2["CyanConcretePowder"]="minecraft:cyan_concrete_powder";MinecraftBlockTypes2["CyanGlazedTerracotta"]="minecraft:cyan_glazed_terracotta";MinecraftBlockTypes2["CyanShulkerBox"]="minecraft:cyan_shulker_box";MinecraftBlockTypes2["CyanStainedGlass"]="minecraft:cyan_stained_glass";MinecraftBlockTypes2["CyanStainedGlassPane"]="minecraft:cyan_stained_glass_pane";MinecraftBlockTypes2["CyanTerracotta"]="minecraft:cyan_terracotta";MinecraftBlockTypes2["CyanWool"]="minecraft:cyan_wool";MinecraftBlockTypes2["DarkOakButton"]="minecraft:dark_oak_button";MinecraftBlockTypes2["DarkOakDoor"]="minecraft:dark_oak_door";MinecraftBlockTypes2["DarkOakFence"]="minecraft:dark_oak_fence";MinecraftBlockTypes2["DarkOakFenceGate"]="minecraft:dark_oak_fence_gate";MinecraftBlockTypes2["DarkOakHangingSign"]="minecraft:dark_oak_hanging_sign";MinecraftBlockTypes2["DarkOakLog"]="minecraft:dark_oak_log";MinecraftBlockTypes2["DarkOakPressurePlate"]="minecraft:dark_oak_pressure_plate";MinecraftBlockTypes2["DarkOakStairs"]="minecraft:dark_oak_stairs";MinecraftBlockTypes2["DarkOakTrapdoor"]="minecraft:dark_oak_trapdoor";MinecraftBlockTypes2["DarkPrismarineStairs"]="minecraft:dark_prismarine_stairs";MinecraftBlockTypes2["DarkoakStandingSign"]="minecraft:darkoak_standing_sign";MinecraftBlockTypes2["DarkoakWallSign"]="minecraft:darkoak_wall_sign";MinecraftBlockTypes2["DaylightDetector"]="minecraft:daylight_detector";MinecraftBlockTypes2["DaylightDetectorInverted"]="minecraft:daylight_detector_inverted";MinecraftBlockTypes2["DeadBrainCoral"]="minecraft:dead_brain_coral";MinecraftBlockTypes2["DeadBubbleCoral"]="minecraft:dead_bubble_coral";MinecraftBlockTypes2["DeadFireCoral"]="minecraft:dead_fire_coral";MinecraftBlockTypes2["DeadHornCoral"]="minecraft:dead_horn_coral";MinecraftBlockTypes2["DeadTubeCoral"]="minecraft:dead_tube_coral";MinecraftBlockTypes2["Deadbush"]="minecraft:deadbush";MinecraftBlockTypes2["DecoratedPot"]="minecraft:decorated_pot";MinecraftBlockTypes2["Deepslate"]="minecraft:deepslate";MinecraftBlockTypes2["DeepslateBrickDoubleSlab"]="minecraft:deepslate_brick_double_slab";MinecraftBlockTypes2["DeepslateBrickSlab"]="minecraft:deepslate_brick_slab";MinecraftBlockTypes2["DeepslateBrickStairs"]="minecraft:deepslate_brick_stairs";MinecraftBlockTypes2["DeepslateBrickWall"]="minecraft:deepslate_brick_wall";MinecraftBlockTypes2["DeepslateBricks"]="minecraft:deepslate_bricks";MinecraftBlockTypes2["DeepslateCoalOre"]="minecraft:deepslate_coal_ore";MinecraftBlockTypes2["DeepslateCopperOre"]="minecraft:deepslate_copper_ore";MinecraftBlockTypes2["DeepslateDiamondOre"]="minecraft:deepslate_diamond_ore";MinecraftBlockTypes2["DeepslateEmeraldOre"]="minecraft:deepslate_emerald_ore";MinecraftBlockTypes2["DeepslateGoldOre"]="minecraft:deepslate_gold_ore";MinecraftBlockTypes2["DeepslateIronOre"]="minecraft:deepslate_iron_ore";MinecraftBlockTypes2["DeepslateLapisOre"]="minecraft:deepslate_lapis_ore";MinecraftBlockTypes2["DeepslateRedstoneOre"]="minecraft:deepslate_redstone_ore";MinecraftBlockTypes2["DeepslateTileDoubleSlab"]="minecraft:deepslate_tile_double_slab";MinecraftBlockTypes2["DeepslateTileSlab"]="minecraft:deepslate_tile_slab";MinecraftBlockTypes2["DeepslateTileStairs"]="minecraft:deepslate_tile_stairs";MinecraftBlockTypes2["DeepslateTileWall"]="minecraft:deepslate_tile_wall";MinecraftBlockTypes2["DeepslateTiles"]="minecraft:deepslate_tiles";MinecraftBlockTypes2["Deny"]="minecraft:deny";MinecraftBlockTypes2["DetectorRail"]="minecraft:detector_rail";MinecraftBlockTypes2["DiamondBlock"]="minecraft:diamond_block";MinecraftBlockTypes2["DiamondOre"]="minecraft:diamond_ore";MinecraftBlockTypes2["DioriteStairs"]="minecraft:diorite_stairs";MinecraftBlockTypes2["Dirt"]="minecraft:dirt";MinecraftBlockTypes2["DirtWithRoots"]="minecraft:dirt_with_roots";MinecraftBlockTypes2["Dispenser"]="minecraft:dispenser";MinecraftBlockTypes2["DoubleCutCopperSlab"]="minecraft:double_cut_copper_slab";MinecraftBlockTypes2["DoublePlant"]="minecraft:double_plant";MinecraftBlockTypes2["DoubleStoneBlockSlab"]="minecraft:double_stone_block_slab";MinecraftBlockTypes2["DoubleStoneBlockSlab2"]="minecraft:double_stone_block_slab2";MinecraftBlockTypes2["DoubleStoneBlockSlab3"]="minecraft:double_stone_block_slab3";MinecraftBlockTypes2["DoubleStoneBlockSlab4"]="minecraft:double_stone_block_slab4";MinecraftBlockTypes2["DoubleWoodenSlab"]="minecraft:double_wooden_slab";MinecraftBlockTypes2["DragonEgg"]="minecraft:dragon_egg";MinecraftBlockTypes2["DriedKelpBlock"]="minecraft:dried_kelp_block";MinecraftBlockTypes2["DripstoneBlock"]="minecraft:dripstone_block";MinecraftBlockTypes2["Dropper"]="minecraft:dropper";MinecraftBlockTypes2["Element0"]="minecraft:element_0";MinecraftBlockTypes2["Element1"]="minecraft:element_1";MinecraftBlockTypes2["Element10"]="minecraft:element_10";MinecraftBlockTypes2["Element100"]="minecraft:element_100";MinecraftBlockTypes2["Element101"]="minecraft:element_101";MinecraftBlockTypes2["Element102"]="minecraft:element_102";MinecraftBlockTypes2["Element103"]="minecraft:element_103";MinecraftBlockTypes2["Element104"]="minecraft:element_104";MinecraftBlockTypes2["Element105"]="minecraft:element_105";MinecraftBlockTypes2["Element106"]="minecraft:element_106";MinecraftBlockTypes2["Element107"]="minecraft:element_107";MinecraftBlockTypes2["Element108"]="minecraft:element_108";MinecraftBlockTypes2["Element109"]="minecraft:element_109";MinecraftBlockTypes2["Element11"]="minecraft:element_11";MinecraftBlockTypes2["Element110"]="minecraft:element_110";MinecraftBlockTypes2["Element111"]="minecraft:element_111";MinecraftBlockTypes2["Element112"]="minecraft:element_112";MinecraftBlockTypes2["Element113"]="minecraft:element_113";MinecraftBlockTypes2["Element114"]="minecraft:element_114";MinecraftBlockTypes2["Element115"]="minecraft:element_115";MinecraftBlockTypes2["Element116"]="minecraft:element_116";MinecraftBlockTypes2["Element117"]="minecraft:element_117";MinecraftBlockTypes2["Element118"]="minecraft:element_118";MinecraftBlockTypes2["Element12"]="minecraft:element_12";MinecraftBlockTypes2["Element13"]="minecraft:element_13";MinecraftBlockTypes2["Element14"]="minecraft:element_14";MinecraftBlockTypes2["Element15"]="minecraft:element_15";MinecraftBlockTypes2["Element16"]="minecraft:element_16";MinecraftBlockTypes2["Element17"]="minecraft:element_17";MinecraftBlockTypes2["Element18"]="minecraft:element_18";MinecraftBlockTypes2["Element19"]="minecraft:element_19";MinecraftBlockTypes2["Element2"]="minecraft:element_2";MinecraftBlockTypes2["Element20"]="minecraft:element_20";MinecraftBlockTypes2["Element21"]="minecraft:element_21";MinecraftBlockTypes2["Element22"]="minecraft:element_22";MinecraftBlockTypes2["Element23"]="minecraft:element_23";MinecraftBlockTypes2["Element24"]="minecraft:element_24";MinecraftBlockTypes2["Element25"]="minecraft:element_25";MinecraftBlockTypes2["Element26"]="minecraft:element_26";MinecraftBlockTypes2["Element27"]="minecraft:element_27";MinecraftBlockTypes2["Element28"]="minecraft:element_28";MinecraftBlockTypes2["Element29"]="minecraft:element_29";MinecraftBlockTypes2["Element3"]="minecraft:element_3";MinecraftBlockTypes2["Element30"]="minecraft:element_30";MinecraftBlockTypes2["Element31"]="minecraft:element_31";MinecraftBlockTypes2["Element32"]="minecraft:element_32";MinecraftBlockTypes2["Element33"]="minecraft:element_33";MinecraftBlockTypes2["Element34"]="minecraft:element_34";MinecraftBlockTypes2["Element35"]="minecraft:element_35";MinecraftBlockTypes2["Element36"]="minecraft:element_36";MinecraftBlockTypes2["Element37"]="minecraft:element_37";MinecraftBlockTypes2["Element38"]="minecraft:element_38";MinecraftBlockTypes2["Element39"]="minecraft:element_39";MinecraftBlockTypes2["Element4"]="minecraft:element_4";MinecraftBlockTypes2["Element40"]="minecraft:element_40";MinecraftBlockTypes2["Element41"]="minecraft:element_41";MinecraftBlockTypes2["Element42"]="minecraft:element_42";MinecraftBlockTypes2["Element43"]="minecraft:element_43";MinecraftBlockTypes2["Element44"]="minecraft:element_44";MinecraftBlockTypes2["Element45"]="minecraft:element_45";MinecraftBlockTypes2["Element46"]="minecraft:element_46";MinecraftBlockTypes2["Element47"]="minecraft:element_47";MinecraftBlockTypes2["Element48"]="minecraft:element_48";MinecraftBlockTypes2["Element49"]="minecraft:element_49";MinecraftBlockTypes2["Element5"]="minecraft:element_5";MinecraftBlockTypes2["Element50"]="minecraft:element_50";MinecraftBlockTypes2["Element51"]="minecraft:element_51";MinecraftBlockTypes2["Element52"]="minecraft:element_52";MinecraftBlockTypes2["Element53"]="minecraft:element_53";MinecraftBlockTypes2["Element54"]="minecraft:element_54";MinecraftBlockTypes2["Element55"]="minecraft:element_55";MinecraftBlockTypes2["Element56"]="minecraft:element_56";MinecraftBlockTypes2["Element57"]="minecraft:element_57";MinecraftBlockTypes2["Element58"]="minecraft:element_58";MinecraftBlockTypes2["Element59"]="minecraft:element_59";MinecraftBlockTypes2["Element6"]="minecraft:element_6";MinecraftBlockTypes2["Element60"]="minecraft:element_60";MinecraftBlockTypes2["Element61"]="minecraft:element_61";MinecraftBlockTypes2["Element62"]="minecraft:element_62";MinecraftBlockTypes2["Element63"]="minecraft:element_63";MinecraftBlockTypes2["Element64"]="minecraft:element_64";MinecraftBlockTypes2["Element65"]="minecraft:element_65";MinecraftBlockTypes2["Element66"]="minecraft:element_66";MinecraftBlockTypes2["Element67"]="minecraft:element_67";MinecraftBlockTypes2["Element68"]="minecraft:element_68";MinecraftBlockTypes2["Element69"]="minecraft:element_69";MinecraftBlockTypes2["Element7"]="minecraft:element_7";MinecraftBlockTypes2["Element70"]="minecraft:element_70";MinecraftBlockTypes2["Element71"]="minecraft:element_71";MinecraftBlockTypes2["Element72"]="minecraft:element_72";MinecraftBlockTypes2["Element73"]="minecraft:element_73";MinecraftBlockTypes2["Element74"]="minecraft:element_74";MinecraftBlockTypes2["Element75"]="minecraft:element_75";MinecraftBlockTypes2["Element76"]="minecraft:element_76";MinecraftBlockTypes2["Element77"]="minecraft:element_77";MinecraftBlockTypes2["Element78"]="minecraft:element_78";MinecraftBlockTypes2["Element79"]="minecraft:element_79";MinecraftBlockTypes2["Element8"]="minecraft:element_8";MinecraftBlockTypes2["Element80"]="minecraft:element_80";MinecraftBlockTypes2["Element81"]="minecraft:element_81";MinecraftBlockTypes2["Element82"]="minecraft:element_82";MinecraftBlockTypes2["Element83"]="minecraft:element_83";MinecraftBlockTypes2["Element84"]="minecraft:element_84";MinecraftBlockTypes2["Element85"]="minecraft:element_85";MinecraftBlockTypes2["Element86"]="minecraft:element_86";MinecraftBlockTypes2["Element87"]="minecraft:element_87";MinecraftBlockTypes2["Element88"]="minecraft:element_88";MinecraftBlockTypes2["Element89"]="minecraft:element_89";MinecraftBlockTypes2["Element9"]="minecraft:element_9";MinecraftBlockTypes2["Element90"]="minecraft:element_90";MinecraftBlockTypes2["Element91"]="minecraft:element_91";MinecraftBlockTypes2["Element92"]="minecraft:element_92";MinecraftBlockTypes2["Element93"]="minecraft:element_93";MinecraftBlockTypes2["Element94"]="minecraft:element_94";MinecraftBlockTypes2["Element95"]="minecraft:element_95";MinecraftBlockTypes2["Element96"]="minecraft:element_96";MinecraftBlockTypes2["Element97"]="minecraft:element_97";MinecraftBlockTypes2["Element98"]="minecraft:element_98";MinecraftBlockTypes2["Element99"]="minecraft:element_99";MinecraftBlockTypes2["EmeraldBlock"]="minecraft:emerald_block";MinecraftBlockTypes2["EmeraldOre"]="minecraft:emerald_ore";MinecraftBlockTypes2["EnchantingTable"]="minecraft:enchanting_table";MinecraftBlockTypes2["EndBrickStairs"]="minecraft:end_brick_stairs";MinecraftBlockTypes2["EndBricks"]="minecraft:end_bricks";MinecraftBlockTypes2["EndGateway"]="minecraft:end_gateway";MinecraftBlockTypes2["EndPortal"]="minecraft:end_portal";MinecraftBlockTypes2["EndPortalFrame"]="minecraft:end_portal_frame";MinecraftBlockTypes2["EndRod"]="minecraft:end_rod";MinecraftBlockTypes2["EndStone"]="minecraft:end_stone";MinecraftBlockTypes2["EnderChest"]="minecraft:ender_chest";MinecraftBlockTypes2["ExposedCopper"]="minecraft:exposed_copper";MinecraftBlockTypes2["ExposedCutCopper"]="minecraft:exposed_cut_copper";MinecraftBlockTypes2["ExposedCutCopperSlab"]="minecraft:exposed_cut_copper_slab";MinecraftBlockTypes2["ExposedCutCopperStairs"]="minecraft:exposed_cut_copper_stairs";MinecraftBlockTypes2["ExposedDoubleCutCopperSlab"]="minecraft:exposed_double_cut_copper_slab";MinecraftBlockTypes2["Farmland"]="minecraft:farmland";MinecraftBlockTypes2["FenceGate"]="minecraft:fence_gate";MinecraftBlockTypes2["Fire"]="minecraft:fire";MinecraftBlockTypes2["FireCoral"]="minecraft:fire_coral";MinecraftBlockTypes2["FletchingTable"]="minecraft:fletching_table";MinecraftBlockTypes2["FlowerPot"]="minecraft:flower_pot";MinecraftBlockTypes2["FloweringAzalea"]="minecraft:flowering_azalea";MinecraftBlockTypes2["FlowingLava"]="minecraft:flowing_lava";MinecraftBlockTypes2["FlowingWater"]="minecraft:flowing_water";MinecraftBlockTypes2["Frame"]="minecraft:frame";MinecraftBlockTypes2["FrogSpawn"]="minecraft:frog_spawn";MinecraftBlockTypes2["FrostedIce"]="minecraft:frosted_ice";MinecraftBlockTypes2["Furnace"]="minecraft:furnace";MinecraftBlockTypes2["GildedBlackstone"]="minecraft:gilded_blackstone";MinecraftBlockTypes2["Glass"]="minecraft:glass";MinecraftBlockTypes2["GlassPane"]="minecraft:glass_pane";MinecraftBlockTypes2["GlowFrame"]="minecraft:glow_frame";MinecraftBlockTypes2["GlowLichen"]="minecraft:glow_lichen";MinecraftBlockTypes2["Glowingobsidian"]="minecraft:glowingobsidian";MinecraftBlockTypes2["Glowstone"]="minecraft:glowstone";MinecraftBlockTypes2["GoldBlock"]="minecraft:gold_block";MinecraftBlockTypes2["GoldOre"]="minecraft:gold_ore";MinecraftBlockTypes2["GoldenRail"]="minecraft:golden_rail";MinecraftBlockTypes2["GraniteStairs"]="minecraft:granite_stairs";MinecraftBlockTypes2["Grass"]="minecraft:grass";MinecraftBlockTypes2["GrassPath"]="minecraft:grass_path";MinecraftBlockTypes2["Gravel"]="minecraft:gravel";MinecraftBlockTypes2["GrayCandle"]="minecraft:gray_candle";MinecraftBlockTypes2["GrayCandleCake"]="minecraft:gray_candle_cake";MinecraftBlockTypes2["GrayCarpet"]="minecraft:gray_carpet";MinecraftBlockTypes2["GrayConcrete"]="minecraft:gray_concrete";MinecraftBlockTypes2["GrayConcretePowder"]="minecraft:gray_concrete_powder";MinecraftBlockTypes2["GrayGlazedTerracotta"]="minecraft:gray_glazed_terracotta";MinecraftBlockTypes2["GrayShulkerBox"]="minecraft:gray_shulker_box";MinecraftBlockTypes2["GrayStainedGlass"]="minecraft:gray_stained_glass";MinecraftBlockTypes2["GrayStainedGlassPane"]="minecraft:gray_stained_glass_pane";MinecraftBlockTypes2["GrayTerracotta"]="minecraft:gray_terracotta";MinecraftBlockTypes2["GrayWool"]="minecraft:gray_wool";MinecraftBlockTypes2["GreenCandle"]="minecraft:green_candle";MinecraftBlockTypes2["GreenCandleCake"]="minecraft:green_candle_cake";MinecraftBlockTypes2["GreenCarpet"]="minecraft:green_carpet";MinecraftBlockTypes2["GreenConcrete"]="minecraft:green_concrete";MinecraftBlockTypes2["GreenConcretePowder"]="minecraft:green_concrete_powder";MinecraftBlockTypes2["GreenGlazedTerracotta"]="minecraft:green_glazed_terracotta";MinecraftBlockTypes2["GreenShulkerBox"]="minecraft:green_shulker_box";MinecraftBlockTypes2["GreenStainedGlass"]="minecraft:green_stained_glass";MinecraftBlockTypes2["GreenStainedGlassPane"]="minecraft:green_stained_glass_pane";MinecraftBlockTypes2["GreenTerracotta"]="minecraft:green_terracotta";MinecraftBlockTypes2["GreenWool"]="minecraft:green_wool";MinecraftBlockTypes2["Grindstone"]="minecraft:grindstone";MinecraftBlockTypes2["HangingRoots"]="minecraft:hanging_roots";MinecraftBlockTypes2["HardGlass"]="minecraft:hard_glass";MinecraftBlockTypes2["HardGlassPane"]="minecraft:hard_glass_pane";MinecraftBlockTypes2["HardStainedGlass"]="minecraft:hard_stained_glass";MinecraftBlockTypes2["HardStainedGlassPane"]="minecraft:hard_stained_glass_pane";MinecraftBlockTypes2["HardenedClay"]="minecraft:hardened_clay";MinecraftBlockTypes2["HayBlock"]="minecraft:hay_block";MinecraftBlockTypes2["HeavyWeightedPressurePlate"]="minecraft:heavy_weighted_pressure_plate";MinecraftBlockTypes2["HoneyBlock"]="minecraft:honey_block";MinecraftBlockTypes2["HoneycombBlock"]="minecraft:honeycomb_block";MinecraftBlockTypes2["Hopper"]="minecraft:hopper";MinecraftBlockTypes2["HornCoral"]="minecraft:horn_coral";MinecraftBlockTypes2["Ice"]="minecraft:ice";MinecraftBlockTypes2["InfestedDeepslate"]="minecraft:infested_deepslate";MinecraftBlockTypes2["InfoUpdate"]="minecraft:info_update";MinecraftBlockTypes2["InfoUpdate2"]="minecraft:info_update2";MinecraftBlockTypes2["InvisibleBedrock"]="minecraft:invisible_bedrock";MinecraftBlockTypes2["IronBars"]="minecraft:iron_bars";MinecraftBlockTypes2["IronBlock"]="minecraft:iron_block";MinecraftBlockTypes2["IronDoor"]="minecraft:iron_door";MinecraftBlockTypes2["IronOre"]="minecraft:iron_ore";MinecraftBlockTypes2["IronTrapdoor"]="minecraft:iron_trapdoor";MinecraftBlockTypes2["Jigsaw"]="minecraft:jigsaw";MinecraftBlockTypes2["Jukebox"]="minecraft:jukebox";MinecraftBlockTypes2["JungleButton"]="minecraft:jungle_button";MinecraftBlockTypes2["JungleDoor"]="minecraft:jungle_door";MinecraftBlockTypes2["JungleFence"]="minecraft:jungle_fence";MinecraftBlockTypes2["JungleFenceGate"]="minecraft:jungle_fence_gate";MinecraftBlockTypes2["JungleHangingSign"]="minecraft:jungle_hanging_sign";MinecraftBlockTypes2["JungleLog"]="minecraft:jungle_log";MinecraftBlockTypes2["JunglePressurePlate"]="minecraft:jungle_pressure_plate";MinecraftBlockTypes2["JungleStairs"]="minecraft:jungle_stairs";MinecraftBlockTypes2["JungleStandingSign"]="minecraft:jungle_standing_sign";MinecraftBlockTypes2["JungleTrapdoor"]="minecraft:jungle_trapdoor";MinecraftBlockTypes2["JungleWallSign"]="minecraft:jungle_wall_sign";MinecraftBlockTypes2["Kelp"]="minecraft:kelp";MinecraftBlockTypes2["Ladder"]="minecraft:ladder";MinecraftBlockTypes2["Lantern"]="minecraft:lantern";MinecraftBlockTypes2["LapisBlock"]="minecraft:lapis_block";MinecraftBlockTypes2["LapisOre"]="minecraft:lapis_ore";MinecraftBlockTypes2["LargeAmethystBud"]="minecraft:large_amethyst_bud";MinecraftBlockTypes2["Lava"]="minecraft:lava";MinecraftBlockTypes2["Leaves"]="minecraft:leaves";MinecraftBlockTypes2["Leaves2"]="minecraft:leaves2";MinecraftBlockTypes2["Lectern"]="minecraft:lectern";MinecraftBlockTypes2["Lever"]="minecraft:lever";MinecraftBlockTypes2["LightBlock"]="minecraft:light_block";MinecraftBlockTypes2["LightBlueCandle"]="minecraft:light_blue_candle";MinecraftBlockTypes2["LightBlueCandleCake"]="minecraft:light_blue_candle_cake";MinecraftBlockTypes2["LightBlueCarpet"]="minecraft:light_blue_carpet";MinecraftBlockTypes2["LightBlueConcrete"]="minecraft:light_blue_concrete";MinecraftBlockTypes2["LightBlueConcretePowder"]="minecraft:light_blue_concrete_powder";MinecraftBlockTypes2["LightBlueGlazedTerracotta"]="minecraft:light_blue_glazed_terracotta";MinecraftBlockTypes2["LightBlueShulkerBox"]="minecraft:light_blue_shulker_box";MinecraftBlockTypes2["LightBlueStainedGlass"]="minecraft:light_blue_stained_glass";MinecraftBlockTypes2["LightBlueStainedGlassPane"]="minecraft:light_blue_stained_glass_pane";MinecraftBlockTypes2["LightBlueTerracotta"]="minecraft:light_blue_terracotta";MinecraftBlockTypes2["LightBlueWool"]="minecraft:light_blue_wool";MinecraftBlockTypes2["LightGrayCandle"]="minecraft:light_gray_candle";MinecraftBlockTypes2["LightGrayCandleCake"]="minecraft:light_gray_candle_cake";MinecraftBlockTypes2["LightGrayCarpet"]="minecraft:light_gray_carpet";MinecraftBlockTypes2["LightGrayConcrete"]="minecraft:light_gray_concrete";MinecraftBlockTypes2["LightGrayConcretePowder"]="minecraft:light_gray_concrete_powder";MinecraftBlockTypes2["LightGrayShulkerBox"]="minecraft:light_gray_shulker_box";MinecraftBlockTypes2["LightGrayStainedGlass"]="minecraft:light_gray_stained_glass";MinecraftBlockTypes2["LightGrayStainedGlassPane"]="minecraft:light_gray_stained_glass_pane";MinecraftBlockTypes2["LightGrayTerracotta"]="minecraft:light_gray_terracotta";MinecraftBlockTypes2["LightGrayWool"]="minecraft:light_gray_wool";MinecraftBlockTypes2["LightWeightedPressurePlate"]="minecraft:light_weighted_pressure_plate";MinecraftBlockTypes2["LightningRod"]="minecraft:lightning_rod";MinecraftBlockTypes2["LimeCandle"]="minecraft:lime_candle";MinecraftBlockTypes2["LimeCandleCake"]="minecraft:lime_candle_cake";MinecraftBlockTypes2["LimeCarpet"]="minecraft:lime_carpet";MinecraftBlockTypes2["LimeConcrete"]="minecraft:lime_concrete";MinecraftBlockTypes2["LimeConcretePowder"]="minecraft:lime_concrete_powder";MinecraftBlockTypes2["LimeGlazedTerracotta"]="minecraft:lime_glazed_terracotta";MinecraftBlockTypes2["LimeShulkerBox"]="minecraft:lime_shulker_box";MinecraftBlockTypes2["LimeStainedGlass"]="minecraft:lime_stained_glass";MinecraftBlockTypes2["LimeStainedGlassPane"]="minecraft:lime_stained_glass_pane";MinecraftBlockTypes2["LimeTerracotta"]="minecraft:lime_terracotta";MinecraftBlockTypes2["LimeWool"]="minecraft:lime_wool";MinecraftBlockTypes2["LitBlastFurnace"]="minecraft:lit_blast_furnace";MinecraftBlockTypes2["LitDeepslateRedstoneOre"]="minecraft:lit_deepslate_redstone_ore";MinecraftBlockTypes2["LitFurnace"]="minecraft:lit_furnace";MinecraftBlockTypes2["LitPumpkin"]="minecraft:lit_pumpkin";MinecraftBlockTypes2["LitRedstoneLamp"]="minecraft:lit_redstone_lamp";MinecraftBlockTypes2["LitRedstoneOre"]="minecraft:lit_redstone_ore";MinecraftBlockTypes2["LitSmoker"]="minecraft:lit_smoker";MinecraftBlockTypes2["Lodestone"]="minecraft:lodestone";MinecraftBlockTypes2["Loom"]="minecraft:loom";MinecraftBlockTypes2["MagentaCandle"]="minecraft:magenta_candle";MinecraftBlockTypes2["MagentaCandleCake"]="minecraft:magenta_candle_cake";MinecraftBlockTypes2["MagentaCarpet"]="minecraft:magenta_carpet";MinecraftBlockTypes2["MagentaConcrete"]="minecraft:magenta_concrete";MinecraftBlockTypes2["MagentaConcretePowder"]="minecraft:magenta_concrete_powder";MinecraftBlockTypes2["MagentaGlazedTerracotta"]="minecraft:magenta_glazed_terracotta";MinecraftBlockTypes2["MagentaShulkerBox"]="minecraft:magenta_shulker_box";MinecraftBlockTypes2["MagentaStainedGlass"]="minecraft:magenta_stained_glass";MinecraftBlockTypes2["MagentaStainedGlassPane"]="minecraft:magenta_stained_glass_pane";MinecraftBlockTypes2["MagentaTerracotta"]="minecraft:magenta_terracotta";MinecraftBlockTypes2["MagentaWool"]="minecraft:magenta_wool";MinecraftBlockTypes2["Magma"]="minecraft:magma";MinecraftBlockTypes2["MangroveButton"]="minecraft:mangrove_button";MinecraftBlockTypes2["MangroveDoor"]="minecraft:mangrove_door";MinecraftBlockTypes2["MangroveDoubleSlab"]="minecraft:mangrove_double_slab";MinecraftBlockTypes2["MangroveFence"]="minecraft:mangrove_fence";MinecraftBlockTypes2["MangroveFenceGate"]="minecraft:mangrove_fence_gate";MinecraftBlockTypes2["MangroveHangingSign"]="minecraft:mangrove_hanging_sign";MinecraftBlockTypes2["MangroveLeaves"]="minecraft:mangrove_leaves";MinecraftBlockTypes2["MangroveLog"]="minecraft:mangrove_log";MinecraftBlockTypes2["MangrovePlanks"]="minecraft:mangrove_planks";MinecraftBlockTypes2["MangrovePressurePlate"]="minecraft:mangrove_pressure_plate";MinecraftBlockTypes2["MangrovePropagule"]="minecraft:mangrove_propagule";MinecraftBlockTypes2["MangroveRoots"]="minecraft:mangrove_roots";MinecraftBlockTypes2["MangroveSlab"]="minecraft:mangrove_slab";MinecraftBlockTypes2["MangroveStairs"]="minecraft:mangrove_stairs";MinecraftBlockTypes2["MangroveStandingSign"]="minecraft:mangrove_standing_sign";MinecraftBlockTypes2["MangroveTrapdoor"]="minecraft:mangrove_trapdoor";MinecraftBlockTypes2["MangroveWallSign"]="minecraft:mangrove_wall_sign";MinecraftBlockTypes2["MangroveWood"]="minecraft:mangrove_wood";MinecraftBlockTypes2["MediumAmethystBud"]="minecraft:medium_amethyst_bud";MinecraftBlockTypes2["MelonBlock"]="minecraft:melon_block";MinecraftBlockTypes2["MelonStem"]="minecraft:melon_stem";MinecraftBlockTypes2["MobSpawner"]="minecraft:mob_spawner";MinecraftBlockTypes2["MonsterEgg"]="minecraft:monster_egg";MinecraftBlockTypes2["MossBlock"]="minecraft:moss_block";MinecraftBlockTypes2["MossCarpet"]="minecraft:moss_carpet";MinecraftBlockTypes2["MossyCobblestone"]="minecraft:mossy_cobblestone";MinecraftBlockTypes2["MossyCobblestoneStairs"]="minecraft:mossy_cobblestone_stairs";MinecraftBlockTypes2["MossyStoneBrickStairs"]="minecraft:mossy_stone_brick_stairs";MinecraftBlockTypes2["MovingBlock"]="minecraft:moving_block";MinecraftBlockTypes2["Mud"]="minecraft:mud";MinecraftBlockTypes2["MudBrickDoubleSlab"]="minecraft:mud_brick_double_slab";MinecraftBlockTypes2["MudBrickSlab"]="minecraft:mud_brick_slab";MinecraftBlockTypes2["MudBrickStairs"]="minecraft:mud_brick_stairs";MinecraftBlockTypes2["MudBrickWall"]="minecraft:mud_brick_wall";MinecraftBlockTypes2["MudBricks"]="minecraft:mud_bricks";MinecraftBlockTypes2["MuddyMangroveRoots"]="minecraft:muddy_mangrove_roots";MinecraftBlockTypes2["Mycelium"]="minecraft:mycelium";MinecraftBlockTypes2["NetherBrick"]="minecraft:nether_brick";MinecraftBlockTypes2["NetherBrickFence"]="minecraft:nether_brick_fence";MinecraftBlockTypes2["NetherBrickStairs"]="minecraft:nether_brick_stairs";MinecraftBlockTypes2["NetherGoldOre"]="minecraft:nether_gold_ore";MinecraftBlockTypes2["NetherSprouts"]="minecraft:nether_sprouts";MinecraftBlockTypes2["NetherWart"]="minecraft:nether_wart";MinecraftBlockTypes2["NetherWartBlock"]="minecraft:nether_wart_block";MinecraftBlockTypes2["NetheriteBlock"]="minecraft:netherite_block";MinecraftBlockTypes2["Netherrack"]="minecraft:netherrack";MinecraftBlockTypes2["Netherreactor"]="minecraft:netherreactor";MinecraftBlockTypes2["NormalStoneStairs"]="minecraft:normal_stone_stairs";MinecraftBlockTypes2["Noteblock"]="minecraft:noteblock";MinecraftBlockTypes2["OakFence"]="minecraft:oak_fence";MinecraftBlockTypes2["OakHangingSign"]="minecraft:oak_hanging_sign";MinecraftBlockTypes2["OakLog"]="minecraft:oak_log";MinecraftBlockTypes2["OakStairs"]="minecraft:oak_stairs";MinecraftBlockTypes2["Observer"]="minecraft:observer";MinecraftBlockTypes2["Obsidian"]="minecraft:obsidian";MinecraftBlockTypes2["OchreFroglight"]="minecraft:ochre_froglight";MinecraftBlockTypes2["OrangeCandle"]="minecraft:orange_candle";MinecraftBlockTypes2["OrangeCandleCake"]="minecraft:orange_candle_cake";MinecraftBlockTypes2["OrangeCarpet"]="minecraft:orange_carpet";MinecraftBlockTypes2["OrangeConcrete"]="minecraft:orange_concrete";MinecraftBlockTypes2["OrangeConcretePowder"]="minecraft:orange_concrete_powder";MinecraftBlockTypes2["OrangeGlazedTerracotta"]="minecraft:orange_glazed_terracotta";MinecraftBlockTypes2["OrangeShulkerBox"]="minecraft:orange_shulker_box";MinecraftBlockTypes2["OrangeStainedGlass"]="minecraft:orange_stained_glass";MinecraftBlockTypes2["OrangeStainedGlassPane"]="minecraft:orange_stained_glass_pane";MinecraftBlockTypes2["OrangeTerracotta"]="minecraft:orange_terracotta";MinecraftBlockTypes2["OrangeWool"]="minecraft:orange_wool";MinecraftBlockTypes2["OxidizedCopper"]="minecraft:oxidized_copper";MinecraftBlockTypes2["OxidizedCutCopper"]="minecraft:oxidized_cut_copper";MinecraftBlockTypes2["OxidizedCutCopperSlab"]="minecraft:oxidized_cut_copper_slab";MinecraftBlockTypes2["OxidizedCutCopperStairs"]="minecraft:oxidized_cut_copper_stairs";MinecraftBlockTypes2["OxidizedDoubleCutCopperSlab"]="minecraft:oxidized_double_cut_copper_slab";MinecraftBlockTypes2["PackedIce"]="minecraft:packed_ice";MinecraftBlockTypes2["PackedMud"]="minecraft:packed_mud";MinecraftBlockTypes2["PearlescentFroglight"]="minecraft:pearlescent_froglight";MinecraftBlockTypes2["PinkCandle"]="minecraft:pink_candle";MinecraftBlockTypes2["PinkCandleCake"]="minecraft:pink_candle_cake";MinecraftBlockTypes2["PinkCarpet"]="minecraft:pink_carpet";MinecraftBlockTypes2["PinkConcrete"]="minecraft:pink_concrete";MinecraftBlockTypes2["PinkConcretePowder"]="minecraft:pink_concrete_powder";MinecraftBlockTypes2["PinkGlazedTerracotta"]="minecraft:pink_glazed_terracotta";MinecraftBlockTypes2["PinkPetals"]="minecraft:pink_petals";MinecraftBlockTypes2["PinkShulkerBox"]="minecraft:pink_shulker_box";MinecraftBlockTypes2["PinkStainedGlass"]="minecraft:pink_stained_glass";MinecraftBlockTypes2["PinkStainedGlassPane"]="minecraft:pink_stained_glass_pane";MinecraftBlockTypes2["PinkTerracotta"]="minecraft:pink_terracotta";MinecraftBlockTypes2["PinkWool"]="minecraft:pink_wool";MinecraftBlockTypes2["Piston"]="minecraft:piston";MinecraftBlockTypes2["PistonArmCollision"]="minecraft:piston_arm_collision";MinecraftBlockTypes2["PitcherCrop"]="minecraft:pitcher_crop";MinecraftBlockTypes2["PitcherPlant"]="minecraft:pitcher_plant";MinecraftBlockTypes2["Planks"]="minecraft:planks";MinecraftBlockTypes2["Podzol"]="minecraft:podzol";MinecraftBlockTypes2["PointedDripstone"]="minecraft:pointed_dripstone";MinecraftBlockTypes2["PolishedAndesiteStairs"]="minecraft:polished_andesite_stairs";MinecraftBlockTypes2["PolishedBasalt"]="minecraft:polished_basalt";MinecraftBlockTypes2["PolishedBlackstone"]="minecraft:polished_blackstone";MinecraftBlockTypes2["PolishedBlackstoneBrickDoubleSlab"]="minecraft:polished_blackstone_brick_double_slab";MinecraftBlockTypes2["PolishedBlackstoneBrickSlab"]="minecraft:polished_blackstone_brick_slab";MinecraftBlockTypes2["PolishedBlackstoneBrickStairs"]="minecraft:polished_blackstone_brick_stairs";MinecraftBlockTypes2["PolishedBlackstoneBrickWall"]="minecraft:polished_blackstone_brick_wall";MinecraftBlockTypes2["PolishedBlackstoneBricks"]="minecraft:polished_blackstone_bricks";MinecraftBlockTypes2["PolishedBlackstoneButton"]="minecraft:polished_blackstone_button";MinecraftBlockTypes2["PolishedBlackstoneDoubleSlab"]="minecraft:polished_blackstone_double_slab";MinecraftBlockTypes2["PolishedBlackstonePressurePlate"]="minecraft:polished_blackstone_pressure_plate";MinecraftBlockTypes2["PolishedBlackstoneSlab"]="minecraft:polished_blackstone_slab";MinecraftBlockTypes2["PolishedBlackstoneStairs"]="minecraft:polished_blackstone_stairs";MinecraftBlockTypes2["PolishedBlackstoneWall"]="minecraft:polished_blackstone_wall";MinecraftBlockTypes2["PolishedDeepslate"]="minecraft:polished_deepslate";MinecraftBlockTypes2["PolishedDeepslateDoubleSlab"]="minecraft:polished_deepslate_double_slab";MinecraftBlockTypes2["PolishedDeepslateSlab"]="minecraft:polished_deepslate_slab";MinecraftBlockTypes2["PolishedDeepslateStairs"]="minecraft:polished_deepslate_stairs";MinecraftBlockTypes2["PolishedDeepslateWall"]="minecraft:polished_deepslate_wall";MinecraftBlockTypes2["PolishedDioriteStairs"]="minecraft:polished_diorite_stairs";MinecraftBlockTypes2["PolishedGraniteStairs"]="minecraft:polished_granite_stairs";MinecraftBlockTypes2["Portal"]="minecraft:portal";MinecraftBlockTypes2["Potatoes"]="minecraft:potatoes";MinecraftBlockTypes2["PowderSnow"]="minecraft:powder_snow";MinecraftBlockTypes2["PoweredComparator"]="minecraft:powered_comparator";MinecraftBlockTypes2["PoweredRepeater"]="minecraft:powered_repeater";MinecraftBlockTypes2["Prismarine"]="minecraft:prismarine";MinecraftBlockTypes2["PrismarineBricksStairs"]="minecraft:prismarine_bricks_stairs";MinecraftBlockTypes2["PrismarineStairs"]="minecraft:prismarine_stairs";MinecraftBlockTypes2["Pumpkin"]="minecraft:pumpkin";MinecraftBlockTypes2["PumpkinStem"]="minecraft:pumpkin_stem";MinecraftBlockTypes2["PurpleCandle"]="minecraft:purple_candle";MinecraftBlockTypes2["PurpleCandleCake"]="minecraft:purple_candle_cake";MinecraftBlockTypes2["PurpleCarpet"]="minecraft:purple_carpet";MinecraftBlockTypes2["PurpleConcrete"]="minecraft:purple_concrete";MinecraftBlockTypes2["PurpleConcretePowder"]="minecraft:purple_concrete_powder";MinecraftBlockTypes2["PurpleGlazedTerracotta"]="minecraft:purple_glazed_terracotta";MinecraftBlockTypes2["PurpleShulkerBox"]="minecraft:purple_shulker_box";MinecraftBlockTypes2["PurpleStainedGlass"]="minecraft:purple_stained_glass";MinecraftBlockTypes2["PurpleStainedGlassPane"]="minecraft:purple_stained_glass_pane";MinecraftBlockTypes2["PurpleTerracotta"]="minecraft:purple_terracotta";MinecraftBlockTypes2["PurpleWool"]="minecraft:purple_wool";MinecraftBlockTypes2["PurpurBlock"]="minecraft:purpur_block";MinecraftBlockTypes2["PurpurStairs"]="minecraft:purpur_stairs";MinecraftBlockTypes2["QuartzBlock"]="minecraft:quartz_block";MinecraftBlockTypes2["QuartzBricks"]="minecraft:quartz_bricks";MinecraftBlockTypes2["QuartzOre"]="minecraft:quartz_ore";MinecraftBlockTypes2["QuartzStairs"]="minecraft:quartz_stairs";MinecraftBlockTypes2["Rail"]="minecraft:rail";MinecraftBlockTypes2["RawCopperBlock"]="minecraft:raw_copper_block";MinecraftBlockTypes2["RawGoldBlock"]="minecraft:raw_gold_block";MinecraftBlockTypes2["RawIronBlock"]="minecraft:raw_iron_block";MinecraftBlockTypes2["RedCandle"]="minecraft:red_candle";MinecraftBlockTypes2["RedCandleCake"]="minecraft:red_candle_cake";MinecraftBlockTypes2["RedCarpet"]="minecraft:red_carpet";MinecraftBlockTypes2["RedConcrete"]="minecraft:red_concrete";MinecraftBlockTypes2["RedConcretePowder"]="minecraft:red_concrete_powder";MinecraftBlockTypes2["RedFlower"]="minecraft:red_flower";MinecraftBlockTypes2["RedGlazedTerracotta"]="minecraft:red_glazed_terracotta";MinecraftBlockTypes2["RedMushroom"]="minecraft:red_mushroom";MinecraftBlockTypes2["RedMushroomBlock"]="minecraft:red_mushroom_block";MinecraftBlockTypes2["RedNetherBrick"]="minecraft:red_nether_brick";MinecraftBlockTypes2["RedNetherBrickStairs"]="minecraft:red_nether_brick_stairs";MinecraftBlockTypes2["RedSandstone"]="minecraft:red_sandstone";MinecraftBlockTypes2["RedSandstoneStairs"]="minecraft:red_sandstone_stairs";MinecraftBlockTypes2["RedShulkerBox"]="minecraft:red_shulker_box";MinecraftBlockTypes2["RedStainedGlass"]="minecraft:red_stained_glass";MinecraftBlockTypes2["RedStainedGlassPane"]="minecraft:red_stained_glass_pane";MinecraftBlockTypes2["RedTerracotta"]="minecraft:red_terracotta";MinecraftBlockTypes2["RedWool"]="minecraft:red_wool";MinecraftBlockTypes2["RedstoneBlock"]="minecraft:redstone_block";MinecraftBlockTypes2["RedstoneLamp"]="minecraft:redstone_lamp";MinecraftBlockTypes2["RedstoneOre"]="minecraft:redstone_ore";MinecraftBlockTypes2["RedstoneTorch"]="minecraft:redstone_torch";MinecraftBlockTypes2["RedstoneWire"]="minecraft:redstone_wire";MinecraftBlockTypes2["Reeds"]="minecraft:reeds";MinecraftBlockTypes2["ReinforcedDeepslate"]="minecraft:reinforced_deepslate";MinecraftBlockTypes2["RepeatingCommandBlock"]="minecraft:repeating_command_block";MinecraftBlockTypes2["Reserved6"]="minecraft:reserved6";MinecraftBlockTypes2["RespawnAnchor"]="minecraft:respawn_anchor";MinecraftBlockTypes2["Sand"]="minecraft:sand";MinecraftBlockTypes2["Sandstone"]="minecraft:sandstone";MinecraftBlockTypes2["SandstoneStairs"]="minecraft:sandstone_stairs";MinecraftBlockTypes2["Sapling"]="minecraft:sapling";MinecraftBlockTypes2["Scaffolding"]="minecraft:scaffolding";MinecraftBlockTypes2["Sculk"]="minecraft:sculk";MinecraftBlockTypes2["SculkCatalyst"]="minecraft:sculk_catalyst";MinecraftBlockTypes2["SculkSensor"]="minecraft:sculk_sensor";MinecraftBlockTypes2["SculkShrieker"]="minecraft:sculk_shrieker";MinecraftBlockTypes2["SculkVein"]="minecraft:sculk_vein";MinecraftBlockTypes2["SeaLantern"]="minecraft:sea_lantern";MinecraftBlockTypes2["SeaPickle"]="minecraft:sea_pickle";MinecraftBlockTypes2["Seagrass"]="minecraft:seagrass";MinecraftBlockTypes2["Shroomlight"]="minecraft:shroomlight";MinecraftBlockTypes2["SilverGlazedTerracotta"]="minecraft:silver_glazed_terracotta";MinecraftBlockTypes2["Skull"]="minecraft:skull";MinecraftBlockTypes2["Slime"]="minecraft:slime";MinecraftBlockTypes2["SmallAmethystBud"]="minecraft:small_amethyst_bud";MinecraftBlockTypes2["SmallDripleafBlock"]="minecraft:small_dripleaf_block";MinecraftBlockTypes2["SmithingTable"]="minecraft:smithing_table";MinecraftBlockTypes2["Smoker"]="minecraft:smoker";MinecraftBlockTypes2["SmoothBasalt"]="minecraft:smooth_basalt";MinecraftBlockTypes2["SmoothQuartzStairs"]="minecraft:smooth_quartz_stairs";MinecraftBlockTypes2["SmoothRedSandstoneStairs"]="minecraft:smooth_red_sandstone_stairs";MinecraftBlockTypes2["SmoothSandstoneStairs"]="minecraft:smooth_sandstone_stairs";MinecraftBlockTypes2["SmoothStone"]="minecraft:smooth_stone";MinecraftBlockTypes2["SnifferEgg"]="minecraft:sniffer_egg";MinecraftBlockTypes2["Snow"]="minecraft:snow";MinecraftBlockTypes2["SnowLayer"]="minecraft:snow_layer";MinecraftBlockTypes2["SoulCampfire"]="minecraft:soul_campfire";MinecraftBlockTypes2["SoulFire"]="minecraft:soul_fire";MinecraftBlockTypes2["SoulLantern"]="minecraft:soul_lantern";MinecraftBlockTypes2["SoulSand"]="minecraft:soul_sand";MinecraftBlockTypes2["SoulSoil"]="minecraft:soul_soil";MinecraftBlockTypes2["SoulTorch"]="minecraft:soul_torch";MinecraftBlockTypes2["Sponge"]="minecraft:sponge";MinecraftBlockTypes2["SporeBlossom"]="minecraft:spore_blossom";MinecraftBlockTypes2["SpruceButton"]="minecraft:spruce_button";MinecraftBlockTypes2["SpruceDoor"]="minecraft:spruce_door";MinecraftBlockTypes2["SpruceFence"]="minecraft:spruce_fence";MinecraftBlockTypes2["SpruceFenceGate"]="minecraft:spruce_fence_gate";MinecraftBlockTypes2["SpruceHangingSign"]="minecraft:spruce_hanging_sign";MinecraftBlockTypes2["SpruceLog"]="minecraft:spruce_log";MinecraftBlockTypes2["SprucePressurePlate"]="minecraft:spruce_pressure_plate";MinecraftBlockTypes2["SpruceStairs"]="minecraft:spruce_stairs";MinecraftBlockTypes2["SpruceStandingSign"]="minecraft:spruce_standing_sign";MinecraftBlockTypes2["SpruceTrapdoor"]="minecraft:spruce_trapdoor";MinecraftBlockTypes2["SpruceWallSign"]="minecraft:spruce_wall_sign";MinecraftBlockTypes2["StandingBanner"]="minecraft:standing_banner";MinecraftBlockTypes2["StandingSign"]="minecraft:standing_sign";MinecraftBlockTypes2["StickyPiston"]="minecraft:sticky_piston";MinecraftBlockTypes2["StickyPistonArmCollision"]="minecraft:sticky_piston_arm_collision";MinecraftBlockTypes2["Stone"]="minecraft:stone";MinecraftBlockTypes2["StoneBlockSlab"]="minecraft:stone_block_slab";MinecraftBlockTypes2["StoneBlockSlab2"]="minecraft:stone_block_slab2";MinecraftBlockTypes2["StoneBlockSlab3"]="minecraft:stone_block_slab3";MinecraftBlockTypes2["StoneBlockSlab4"]="minecraft:stone_block_slab4";MinecraftBlockTypes2["StoneBrickStairs"]="minecraft:stone_brick_stairs";MinecraftBlockTypes2["StoneButton"]="minecraft:stone_button";MinecraftBlockTypes2["StonePressurePlate"]="minecraft:stone_pressure_plate";MinecraftBlockTypes2["StoneStairs"]="minecraft:stone_stairs";MinecraftBlockTypes2["Stonebrick"]="minecraft:stonebrick";MinecraftBlockTypes2["Stonecutter"]="minecraft:stonecutter";MinecraftBlockTypes2["StonecutterBlock"]="minecraft:stonecutter_block";MinecraftBlockTypes2["StrippedAcaciaLog"]="minecraft:stripped_acacia_log";MinecraftBlockTypes2["StrippedBambooBlock"]="minecraft:stripped_bamboo_block";MinecraftBlockTypes2["StrippedBirchLog"]="minecraft:stripped_birch_log";MinecraftBlockTypes2["StrippedCherryLog"]="minecraft:stripped_cherry_log";MinecraftBlockTypes2["StrippedCherryWood"]="minecraft:stripped_cherry_wood";MinecraftBlockTypes2["StrippedCrimsonHyphae"]="minecraft:stripped_crimson_hyphae";MinecraftBlockTypes2["StrippedCrimsonStem"]="minecraft:stripped_crimson_stem";MinecraftBlockTypes2["StrippedDarkOakLog"]="minecraft:stripped_dark_oak_log";MinecraftBlockTypes2["StrippedJungleLog"]="minecraft:stripped_jungle_log";MinecraftBlockTypes2["StrippedMangroveLog"]="minecraft:stripped_mangrove_log";MinecraftBlockTypes2["StrippedMangroveWood"]="minecraft:stripped_mangrove_wood";MinecraftBlockTypes2["StrippedOakLog"]="minecraft:stripped_oak_log";MinecraftBlockTypes2["StrippedSpruceLog"]="minecraft:stripped_spruce_log";MinecraftBlockTypes2["StrippedWarpedHyphae"]="minecraft:stripped_warped_hyphae";MinecraftBlockTypes2["StrippedWarpedStem"]="minecraft:stripped_warped_stem";MinecraftBlockTypes2["StructureBlock"]="minecraft:structure_block";MinecraftBlockTypes2["StructureVoid"]="minecraft:structure_void";MinecraftBlockTypes2["SuspiciousGravel"]="minecraft:suspicious_gravel";MinecraftBlockTypes2["SuspiciousSand"]="minecraft:suspicious_sand";MinecraftBlockTypes2["SweetBerryBush"]="minecraft:sweet_berry_bush";MinecraftBlockTypes2["Tallgrass"]="minecraft:tallgrass";MinecraftBlockTypes2["Target"]="minecraft:target";MinecraftBlockTypes2["TintedGlass"]="minecraft:tinted_glass";MinecraftBlockTypes2["Tnt"]="minecraft:tnt";MinecraftBlockTypes2["Torch"]="minecraft:torch";MinecraftBlockTypes2["Torchflower"]="minecraft:torchflower";MinecraftBlockTypes2["TorchflowerCrop"]="minecraft:torchflower_crop";MinecraftBlockTypes2["Trapdoor"]="minecraft:trapdoor";MinecraftBlockTypes2["TrappedChest"]="minecraft:trapped_chest";MinecraftBlockTypes2["TripWire"]="minecraft:trip_wire";MinecraftBlockTypes2["TripwireHook"]="minecraft:tripwire_hook";MinecraftBlockTypes2["TubeCoral"]="minecraft:tube_coral";MinecraftBlockTypes2["Tuff"]="minecraft:tuff";MinecraftBlockTypes2["TurtleEgg"]="minecraft:turtle_egg";MinecraftBlockTypes2["TwistingVines"]="minecraft:twisting_vines";MinecraftBlockTypes2["UnderwaterTorch"]="minecraft:underwater_torch";MinecraftBlockTypes2["UndyedShulkerBox"]="minecraft:undyed_shulker_box";MinecraftBlockTypes2["Unknown"]="minecraft:unknown";MinecraftBlockTypes2["UnlitRedstoneTorch"]="minecraft:unlit_redstone_torch";MinecraftBlockTypes2["UnpoweredComparator"]="minecraft:unpowered_comparator";MinecraftBlockTypes2["UnpoweredRepeater"]="minecraft:unpowered_repeater";MinecraftBlockTypes2["VerdantFroglight"]="minecraft:verdant_froglight";MinecraftBlockTypes2["Vine"]="minecraft:vine";MinecraftBlockTypes2["WallBanner"]="minecraft:wall_banner";MinecraftBlockTypes2["WallSign"]="minecraft:wall_sign";MinecraftBlockTypes2["WarpedButton"]="minecraft:warped_button";MinecraftBlockTypes2["WarpedDoor"]="minecraft:warped_door";MinecraftBlockTypes2["WarpedDoubleSlab"]="minecraft:warped_double_slab";MinecraftBlockTypes2["WarpedFence"]="minecraft:warped_fence";MinecraftBlockTypes2["WarpedFenceGate"]="minecraft:warped_fence_gate";MinecraftBlockTypes2["WarpedFungus"]="minecraft:warped_fungus";MinecraftBlockTypes2["WarpedHangingSign"]="minecraft:warped_hanging_sign";MinecraftBlockTypes2["WarpedHyphae"]="minecraft:warped_hyphae";MinecraftBlockTypes2["WarpedNylium"]="minecraft:warped_nylium";MinecraftBlockTypes2["WarpedPlanks"]="minecraft:warped_planks";MinecraftBlockTypes2["WarpedPressurePlate"]="minecraft:warped_pressure_plate";MinecraftBlockTypes2["WarpedRoots"]="minecraft:warped_roots";MinecraftBlockTypes2["WarpedSlab"]="minecraft:warped_slab";MinecraftBlockTypes2["WarpedStairs"]="minecraft:warped_stairs";MinecraftBlockTypes2["WarpedStandingSign"]="minecraft:warped_standing_sign";MinecraftBlockTypes2["WarpedStem"]="minecraft:warped_stem";MinecraftBlockTypes2["WarpedTrapdoor"]="minecraft:warped_trapdoor";MinecraftBlockTypes2["WarpedWallSign"]="minecraft:warped_wall_sign";MinecraftBlockTypes2["WarpedWartBlock"]="minecraft:warped_wart_block";MinecraftBlockTypes2["Water"]="minecraft:water";MinecraftBlockTypes2["Waterlily"]="minecraft:waterlily";MinecraftBlockTypes2["WaxedCopper"]="minecraft:waxed_copper";MinecraftBlockTypes2["WaxedCutCopper"]="minecraft:waxed_cut_copper";MinecraftBlockTypes2["WaxedCutCopperSlab"]="minecraft:waxed_cut_copper_slab";MinecraftBlockTypes2["WaxedCutCopperStairs"]="minecraft:waxed_cut_copper_stairs";MinecraftBlockTypes2["WaxedDoubleCutCopperSlab"]="minecraft:waxed_double_cut_copper_slab";MinecraftBlockTypes2["WaxedExposedCopper"]="minecraft:waxed_exposed_copper";MinecraftBlockTypes2["WaxedExposedCutCopper"]="minecraft:waxed_exposed_cut_copper";MinecraftBlockTypes2["WaxedExposedCutCopperSlab"]="minecraft:waxed_exposed_cut_copper_slab";MinecraftBlockTypes2["WaxedExposedCutCopperStairs"]="minecraft:waxed_exposed_cut_copper_stairs";MinecraftBlockTypes2["WaxedExposedDoubleCutCopperSlab"]="minecraft:waxed_exposed_double_cut_copper_slab";MinecraftBlockTypes2["WaxedOxidizedCopper"]="minecraft:waxed_oxidized_copper";MinecraftBlockTypes2["WaxedOxidizedCutCopper"]="minecraft:waxed_oxidized_cut_copper";MinecraftBlockTypes2["WaxedOxidizedCutCopperSlab"]="minecraft:waxed_oxidized_cut_copper_slab";MinecraftBlockTypes2["WaxedOxidizedCutCopperStairs"]="minecraft:waxed_oxidized_cut_copper_stairs";MinecraftBlockTypes2["WaxedOxidizedDoubleCutCopperSlab"]="minecraft:waxed_oxidized_double_cut_copper_slab";MinecraftBlockTypes2["WaxedWeatheredCopper"]="minecraft:waxed_weathered_copper";MinecraftBlockTypes2["WaxedWeatheredCutCopper"]="minecraft:waxed_weathered_cut_copper";MinecraftBlockTypes2["WaxedWeatheredCutCopperSlab"]="minecraft:waxed_weathered_cut_copper_slab";MinecraftBlockTypes2["WaxedWeatheredCutCopperStairs"]="minecraft:waxed_weathered_cut_copper_stairs";MinecraftBlockTypes2["WaxedWeatheredDoubleCutCopperSlab"]="minecraft:waxed_weathered_double_cut_copper_slab";MinecraftBlockTypes2["WeatheredCopper"]="minecraft:weathered_copper";MinecraftBlockTypes2["WeatheredCutCopper"]="minecraft:weathered_cut_copper";MinecraftBlockTypes2["WeatheredCutCopperSlab"]="minecraft:weathered_cut_copper_slab";MinecraftBlockTypes2["WeatheredCutCopperStairs"]="minecraft:weathered_cut_copper_stairs";MinecraftBlockTypes2["WeatheredDoubleCutCopperSlab"]="minecraft:weathered_double_cut_copper_slab";MinecraftBlockTypes2["Web"]="minecraft:web";MinecraftBlockTypes2["WeepingVines"]="minecraft:weeping_vines";MinecraftBlockTypes2["Wheat"]="minecraft:wheat";MinecraftBlockTypes2["WhiteCandle"]="minecraft:white_candle";MinecraftBlockTypes2["WhiteCandleCake"]="minecraft:white_candle_cake";MinecraftBlockTypes2["WhiteCarpet"]="minecraft:white_carpet";MinecraftBlockTypes2["WhiteConcrete"]="minecraft:white_concrete";MinecraftBlockTypes2["WhiteConcretePowder"]="minecraft:white_concrete_powder";MinecraftBlockTypes2["WhiteGlazedTerracotta"]="minecraft:white_glazed_terracotta";MinecraftBlockTypes2["WhiteShulkerBox"]="minecraft:white_shulker_box";MinecraftBlockTypes2["WhiteStainedGlass"]="minecraft:white_stained_glass";MinecraftBlockTypes2["WhiteStainedGlassPane"]="minecraft:white_stained_glass_pane";MinecraftBlockTypes2["WhiteTerracotta"]="minecraft:white_terracotta";MinecraftBlockTypes2["WhiteWool"]="minecraft:white_wool";MinecraftBlockTypes2["WitherRose"]="minecraft:wither_rose";MinecraftBlockTypes2["Wood"]="minecraft:wood";MinecraftBlockTypes2["WoodenButton"]="minecraft:wooden_button";MinecraftBlockTypes2["WoodenDoor"]="minecraft:wooden_door";MinecraftBlockTypes2["WoodenPressurePlate"]="minecraft:wooden_pressure_plate";MinecraftBlockTypes2["WoodenSlab"]="minecraft:wooden_slab";MinecraftBlockTypes2["YellowCandle"]="minecraft:yellow_candle";MinecraftBlockTypes2["YellowCandleCake"]="minecraft:yellow_candle_cake";MinecraftBlockTypes2["YellowCarpet"]="minecraft:yellow_carpet";MinecraftBlockTypes2["YellowConcrete"]="minecraft:yellow_concrete";MinecraftBlockTypes2["YellowConcretePowder"]="minecraft:yellow_concrete_powder";MinecraftBlockTypes2["YellowFlower"]="minecraft:yellow_flower";MinecraftBlockTypes2["YellowGlazedTerracotta"]="minecraft:yellow_glazed_terracotta";MinecraftBlockTypes2["YellowShulkerBox"]="minecraft:yellow_shulker_box";MinecraftBlockTypes2["YellowStainedGlass"]="minecraft:yellow_stained_glass";MinecraftBlockTypes2["YellowStainedGlassPane"]="minecraft:yellow_stained_glass_pane";MinecraftBlockTypes2["YellowTerracotta"]="minecraft:yellow_terracotta";MinecraftBlockTypes2["YellowWool"]="minecraft:yellow_wool";return MinecraftBlockTypes2})(MinecraftBlockTypes||{});var MinecraftCameraPresetsTypes=(MinecraftCameraPresetsTypes2=>{MinecraftCameraPresetsTypes2["FirstPerson"]="minecraft:first_person";MinecraftCameraPresetsTypes2["Free"]="minecraft:free";MinecraftCameraPresetsTypes2["ThirdPerson"]="minecraft:third_person";MinecraftCameraPresetsTypes2["ThirdPersonFront"]="minecraft:third_person_front";return MinecraftCameraPresetsTypes2})(MinecraftCameraPresetsTypes||{});var MinecraftDimensionTypes=(MinecraftDimensionTypes2=>{MinecraftDimensionTypes2["Nether"]="minecraft:nether";MinecraftDimensionTypes2["Overworld"]="minecraft:overworld";MinecraftDimensionTypes2["TheEnd"]="minecraft:the_end";return MinecraftDimensionTypes2})(MinecraftDimensionTypes||{});var MinecraftEffectTypes=(MinecraftEffectTypes2=>{MinecraftEffectTypes2["Absorption"]="absorption";MinecraftEffectTypes2["BadOmen"]="bad_omen";MinecraftEffectTypes2["Blindness"]="blindness";MinecraftEffectTypes2["ConduitPower"]="conduit_power";MinecraftEffectTypes2["Darkness"]="darkness";MinecraftEffectTypes2["Empty"]="empty";MinecraftEffectTypes2["FatalPoison"]="fatal_poison";MinecraftEffectTypes2["FireResistance"]="fire_resistance";MinecraftEffectTypes2["Haste"]="haste";MinecraftEffectTypes2["HealthBoost"]="health_boost";MinecraftEffectTypes2["Hunger"]="hunger";MinecraftEffectTypes2["InstantDamage"]="instant_damage";MinecraftEffectTypes2["InstantHealth"]="instant_health";MinecraftEffectTypes2["Invisibility"]="invisibility";MinecraftEffectTypes2["JumpBoost"]="jump_boost";MinecraftEffectTypes2["Levitation"]="levitation";MinecraftEffectTypes2["MiningFatigue"]="mining_fatigue";MinecraftEffectTypes2["Nausea"]="nausea";MinecraftEffectTypes2["NightVision"]="night_vision";MinecraftEffectTypes2["Poison"]="poison";MinecraftEffectTypes2["Regeneration"]="regeneration";MinecraftEffectTypes2["Resistance"]="resistance";MinecraftEffectTypes2["Saturation"]="saturation";MinecraftEffectTypes2["SlowFalling"]="slow_falling";MinecraftEffectTypes2["Slowness"]="slowness";MinecraftEffectTypes2["Speed"]="speed";MinecraftEffectTypes2["Strength"]="strength";MinecraftEffectTypes2["VillageHero"]="village_hero";MinecraftEffectTypes2["WaterBreathing"]="water_breathing";MinecraftEffectTypes2["Weakness"]="weakness";MinecraftEffectTypes2["Wither"]="wither";return MinecraftEffectTypes2})(MinecraftEffectTypes||{});var MinecraftEnchantmentTypes=(MinecraftEnchantmentTypes2=>{MinecraftEnchantmentTypes2["AquaAffinity"]="aqua_affinity";MinecraftEnchantmentTypes2["BaneOfArthropods"]="bane_of_arthropods";MinecraftEnchantmentTypes2["Binding"]="binding";MinecraftEnchantmentTypes2["BlastProtection"]="blast_protection";MinecraftEnchantmentTypes2["Channeling"]="channeling";MinecraftEnchantmentTypes2["DepthStrider"]="depth_strider";MinecraftEnchantmentTypes2["Efficiency"]="efficiency";MinecraftEnchantmentTypes2["FeatherFalling"]="feather_falling";MinecraftEnchantmentTypes2["FireAspect"]="fire_aspect";MinecraftEnchantmentTypes2["FireProtection"]="fire_protection";MinecraftEnchantmentTypes2["Flame"]="flame";MinecraftEnchantmentTypes2["Fortune"]="fortune";MinecraftEnchantmentTypes2["FrostWalker"]="frost_walker";MinecraftEnchantmentTypes2["Impaling"]="impaling";MinecraftEnchantmentTypes2["Infinity"]="infinity";MinecraftEnchantmentTypes2["Knockback"]="knockback";MinecraftEnchantmentTypes2["Looting"]="looting";MinecraftEnchantmentTypes2["Loyalty"]="loyalty";MinecraftEnchantmentTypes2["LuckOfTheSea"]="luck_of_the_sea";MinecraftEnchantmentTypes2["Lure"]="lure";MinecraftEnchantmentTypes2["Mending"]="mending";MinecraftEnchantmentTypes2["Multishot"]="multishot";MinecraftEnchantmentTypes2["Piercing"]="piercing";MinecraftEnchantmentTypes2["Power"]="power";MinecraftEnchantmentTypes2["ProjectileProtection"]="projectile_protection";MinecraftEnchantmentTypes2["Protection"]="protection";MinecraftEnchantmentTypes2["Punch"]="punch";MinecraftEnchantmentTypes2["QuickCharge"]="quick_charge";MinecraftEnchantmentTypes2["Respiration"]="respiration";MinecraftEnchantmentTypes2["Riptide"]="riptide";MinecraftEnchantmentTypes2["Sharpness"]="sharpness";MinecraftEnchantmentTypes2["SilkTouch"]="silk_touch";MinecraftEnchantmentTypes2["Smite"]="smite";MinecraftEnchantmentTypes2["SoulSpeed"]="soul_speed";MinecraftEnchantmentTypes2["SwiftSneak"]="swift_sneak";MinecraftEnchantmentTypes2["Thorns"]="thorns";MinecraftEnchantmentTypes2["Unbreaking"]="unbreaking";MinecraftEnchantmentTypes2["Vanishing"]="vanishing";return MinecraftEnchantmentTypes2})(MinecraftEnchantmentTypes||{});var MinecraftEntityTypes=(MinecraftEntityTypes2=>{MinecraftEntityTypes2["Agent"]="agent";MinecraftEntityTypes2["Allay"]="allay";MinecraftEntityTypes2["AreaEffectCloud"]="area_effect_cloud";MinecraftEntityTypes2["ArmorStand"]="armor_stand";MinecraftEntityTypes2["Arrow"]="arrow";MinecraftEntityTypes2["Axolotl"]="axolotl";MinecraftEntityTypes2["Bat"]="bat";MinecraftEntityTypes2["Bee"]="bee";MinecraftEntityTypes2["Blaze"]="blaze";MinecraftEntityTypes2["Boat"]="boat";MinecraftEntityTypes2["Camel"]="camel";MinecraftEntityTypes2["Cat"]="cat";MinecraftEntityTypes2["CaveSpider"]="cave_spider";MinecraftEntityTypes2["ChestBoat"]="chest_boat";MinecraftEntityTypes2["ChestMinecart"]="chest_minecart";MinecraftEntityTypes2["Chicken"]="chicken";MinecraftEntityTypes2["Cod"]="cod";MinecraftEntityTypes2["CommandBlockMinecart"]="command_block_minecart";MinecraftEntityTypes2["Cow"]="cow";MinecraftEntityTypes2["Creeper"]="creeper";MinecraftEntityTypes2["Dolphin"]="dolphin";MinecraftEntityTypes2["Donkey"]="donkey";MinecraftEntityTypes2["DragonFireball"]="dragon_fireball";MinecraftEntityTypes2["Drowned"]="drowned";MinecraftEntityTypes2["Egg"]="egg";MinecraftEntityTypes2["ElderGuardian"]="elder_guardian";MinecraftEntityTypes2["EnderCrystal"]="ender_crystal";MinecraftEntityTypes2["EnderDragon"]="ender_dragon";MinecraftEntityTypes2["EnderPearl"]="ender_pearl";MinecraftEntityTypes2["Enderman"]="enderman";MinecraftEntityTypes2["Endermite"]="endermite";MinecraftEntityTypes2["EvocationIllager"]="evocation_illager";MinecraftEntityTypes2["EyeOfEnderSignal"]="eye_of_ender_signal";MinecraftEntityTypes2["Fireball"]="fireball";MinecraftEntityTypes2["FireworksRocket"]="fireworks_rocket";MinecraftEntityTypes2["FishingHook"]="fishing_hook";MinecraftEntityTypes2["Fox"]="fox";MinecraftEntityTypes2["Frog"]="frog";MinecraftEntityTypes2["Ghast"]="ghast";MinecraftEntityTypes2["GlowSquid"]="glow_squid";MinecraftEntityTypes2["Goat"]="goat";MinecraftEntityTypes2["Guardian"]="guardian";MinecraftEntityTypes2["Hoglin"]="hoglin";MinecraftEntityTypes2["HopperMinecart"]="hopper_minecart";MinecraftEntityTypes2["Horse"]="horse";MinecraftEntityTypes2["Husk"]="husk";MinecraftEntityTypes2["IronGolem"]="iron_golem";MinecraftEntityTypes2["LightningBolt"]="lightning_bolt";MinecraftEntityTypes2["LingeringPotion"]="lingering_potion";MinecraftEntityTypes2["Llama"]="llama";MinecraftEntityTypes2["LlamaSpit"]="llama_spit";MinecraftEntityTypes2["MagmaCube"]="magma_cube";MinecraftEntityTypes2["Minecart"]="minecart";MinecraftEntityTypes2["Mooshroom"]="mooshroom";MinecraftEntityTypes2["Mule"]="mule";MinecraftEntityTypes2["Npc"]="npc";MinecraftEntityTypes2["Ocelot"]="ocelot";MinecraftEntityTypes2["Panda"]="panda";MinecraftEntityTypes2["Parrot"]="parrot";MinecraftEntityTypes2["Phantom"]="phantom";MinecraftEntityTypes2["Pig"]="pig";MinecraftEntityTypes2["Piglin"]="piglin";MinecraftEntityTypes2["PiglinBrute"]="piglin_brute";MinecraftEntityTypes2["Pillager"]="pillager";MinecraftEntityTypes2["Player"]="player";MinecraftEntityTypes2["PolarBear"]="polar_bear";MinecraftEntityTypes2["Pufferfish"]="pufferfish";MinecraftEntityTypes2["Rabbit"]="rabbit";MinecraftEntityTypes2["Ravager"]="ravager";MinecraftEntityTypes2["Salmon"]="salmon";MinecraftEntityTypes2["Sheep"]="sheep";MinecraftEntityTypes2["Shulker"]="shulker";MinecraftEntityTypes2["ShulkerBullet"]="shulker_bullet";MinecraftEntityTypes2["Silverfish"]="silverfish";MinecraftEntityTypes2["Skeleton"]="skeleton";MinecraftEntityTypes2["SkeletonHorse"]="skeleton_horse";MinecraftEntityTypes2["Slime"]="slime";MinecraftEntityTypes2["SmallFireball"]="small_fireball";MinecraftEntityTypes2["Sniffer"]="sniffer";MinecraftEntityTypes2["SnowGolem"]="snow_golem";MinecraftEntityTypes2["Snowball"]="snowball";MinecraftEntityTypes2["Spider"]="spider";MinecraftEntityTypes2["SplashPotion"]="splash_potion";MinecraftEntityTypes2["Squid"]="squid";MinecraftEntityTypes2["Stray"]="stray";MinecraftEntityTypes2["Strider"]="strider";MinecraftEntityTypes2["Tadpole"]="tadpole";MinecraftEntityTypes2["ThrownTrident"]="thrown_trident";MinecraftEntityTypes2["Tnt"]="tnt";MinecraftEntityTypes2["TntMinecart"]="tnt_minecart";MinecraftEntityTypes2["TraderLlama"]="trader_llama";MinecraftEntityTypes2["TripodCamera"]="tripod_camera";MinecraftEntityTypes2["Tropicalfish"]="tropicalfish";MinecraftEntityTypes2["Turtle"]="turtle";MinecraftEntityTypes2["Vex"]="vex";MinecraftEntityTypes2["Villager"]="villager";MinecraftEntityTypes2["VillagerV2"]="villager_v2";MinecraftEntityTypes2["Vindicator"]="vindicator";MinecraftEntityTypes2["WanderingTrader"]="wandering_trader";MinecraftEntityTypes2["Warden"]="warden";MinecraftEntityTypes2["Witch"]="witch";MinecraftEntityTypes2["Wither"]="wither";MinecraftEntityTypes2["WitherSkeleton"]="wither_skeleton";MinecraftEntityTypes2["WitherSkull"]="wither_skull";MinecraftEntityTypes2["WitherSkullDangerous"]="wither_skull_dangerous";MinecraftEntityTypes2["Wolf"]="wolf";MinecraftEntityTypes2["XpBottle"]="xp_bottle";MinecraftEntityTypes2["XpOrb"]="xp_orb";MinecraftEntityTypes2["Zoglin"]="zoglin";MinecraftEntityTypes2["Zombie"]="zombie";MinecraftEntityTypes2["ZombieHorse"]="zombie_horse";MinecraftEntityTypes2["ZombiePigman"]="zombie_pigman";MinecraftEntityTypes2["ZombieVillager"]="zombie_villager";MinecraftEntityTypes2["ZombieVillagerV2"]="zombie_villager_v2";return MinecraftEntityTypes2})(MinecraftEntityTypes||{});var MinecraftItemTypes=(MinecraftItemTypes2=>{MinecraftItemTypes2["AcaciaBoat"]="minecraft:acacia_boat";MinecraftItemTypes2["AcaciaButton"]="minecraft:acacia_button";MinecraftItemTypes2["AcaciaChestBoat"]="minecraft:acacia_chest_boat";MinecraftItemTypes2["AcaciaDoor"]="minecraft:acacia_door";MinecraftItemTypes2["AcaciaFence"]="minecraft:acacia_fence";MinecraftItemTypes2["AcaciaFenceGate"]="minecraft:acacia_fence_gate";MinecraftItemTypes2["AcaciaHangingSign"]="minecraft:acacia_hanging_sign";MinecraftItemTypes2["AcaciaLog"]="minecraft:acacia_log";MinecraftItemTypes2["AcaciaPressurePlate"]="minecraft:acacia_pressure_plate";MinecraftItemTypes2["AcaciaSign"]="minecraft:acacia_sign";MinecraftItemTypes2["AcaciaStairs"]="minecraft:acacia_stairs";MinecraftItemTypes2["AcaciaTrapdoor"]="minecraft:acacia_trapdoor";MinecraftItemTypes2["ActivatorRail"]="minecraft:activator_rail";MinecraftItemTypes2["AllaySpawnEgg"]="minecraft:allay_spawn_egg";MinecraftItemTypes2["Allow"]="minecraft:allow";MinecraftItemTypes2["AmethystBlock"]="minecraft:amethyst_block";MinecraftItemTypes2["AmethystCluster"]="minecraft:amethyst_cluster";MinecraftItemTypes2["AmethystShard"]="minecraft:amethyst_shard";MinecraftItemTypes2["AncientDebris"]="minecraft:ancient_debris";MinecraftItemTypes2["AndesiteStairs"]="minecraft:andesite_stairs";MinecraftItemTypes2["AnglerPotterySherd"]="minecraft:angler_pottery_sherd";MinecraftItemTypes2["Anvil"]="minecraft:anvil";MinecraftItemTypes2["Apple"]="minecraft:apple";MinecraftItemTypes2["ArcherPotterySherd"]="minecraft:archer_pottery_sherd";MinecraftItemTypes2["ArmorStand"]="minecraft:armor_stand";MinecraftItemTypes2["ArmsUpPotterySherd"]="minecraft:arms_up_pottery_sherd";MinecraftItemTypes2["Arrow"]="minecraft:arrow";MinecraftItemTypes2["AxolotlBucket"]="minecraft:axolotl_bucket";MinecraftItemTypes2["AxolotlSpawnEgg"]="minecraft:axolotl_spawn_egg";MinecraftItemTypes2["Azalea"]="minecraft:azalea";MinecraftItemTypes2["AzaleaLeaves"]="minecraft:azalea_leaves";MinecraftItemTypes2["AzaleaLeavesFlowered"]="minecraft:azalea_leaves_flowered";MinecraftItemTypes2["BakedPotato"]="minecraft:baked_potato";MinecraftItemTypes2["Bamboo"]="minecraft:bamboo";MinecraftItemTypes2["BambooBlock"]="minecraft:bamboo_block";MinecraftItemTypes2["BambooButton"]="minecraft:bamboo_button";MinecraftItemTypes2["BambooChestRaft"]="minecraft:bamboo_chest_raft";MinecraftItemTypes2["BambooDoor"]="minecraft:bamboo_door";MinecraftItemTypes2["BambooFence"]="minecraft:bamboo_fence";MinecraftItemTypes2["BambooFenceGate"]="minecraft:bamboo_fence_gate";MinecraftItemTypes2["BambooHangingSign"]="minecraft:bamboo_hanging_sign";MinecraftItemTypes2["BambooMosaic"]="minecraft:bamboo_mosaic";MinecraftItemTypes2["BambooMosaicSlab"]="minecraft:bamboo_mosaic_slab";MinecraftItemTypes2["BambooMosaicStairs"]="minecraft:bamboo_mosaic_stairs";MinecraftItemTypes2["BambooPlanks"]="minecraft:bamboo_planks";MinecraftItemTypes2["BambooPressurePlate"]="minecraft:bamboo_pressure_plate";MinecraftItemTypes2["BambooRaft"]="minecraft:bamboo_raft";MinecraftItemTypes2["BambooSign"]="minecraft:bamboo_sign";MinecraftItemTypes2["BambooSlab"]="minecraft:bamboo_slab";MinecraftItemTypes2["BambooStairs"]="minecraft:bamboo_stairs";MinecraftItemTypes2["BambooTrapdoor"]="minecraft:bamboo_trapdoor";MinecraftItemTypes2["Banner"]="minecraft:banner";MinecraftItemTypes2["BannerPattern"]="minecraft:banner_pattern";MinecraftItemTypes2["Barrel"]="minecraft:barrel";MinecraftItemTypes2["Barrier"]="minecraft:barrier";MinecraftItemTypes2["Basalt"]="minecraft:basalt";MinecraftItemTypes2["BatSpawnEgg"]="minecraft:bat_spawn_egg";MinecraftItemTypes2["Beacon"]="minecraft:beacon";MinecraftItemTypes2["Bed"]="minecraft:bed";MinecraftItemTypes2["Bedrock"]="minecraft:bedrock";MinecraftItemTypes2["BeeNest"]="minecraft:bee_nest";MinecraftItemTypes2["BeeSpawnEgg"]="minecraft:bee_spawn_egg";MinecraftItemTypes2["Beef"]="minecraft:beef";MinecraftItemTypes2["Beehive"]="minecraft:beehive";MinecraftItemTypes2["Beetroot"]="minecraft:beetroot";MinecraftItemTypes2["BeetrootSeeds"]="minecraft:beetroot_seeds";MinecraftItemTypes2["BeetrootSoup"]="minecraft:beetroot_soup";MinecraftItemTypes2["Bell"]="minecraft:bell";MinecraftItemTypes2["BigDripleaf"]="minecraft:big_dripleaf";MinecraftItemTypes2["BirchBoat"]="minecraft:birch_boat";MinecraftItemTypes2["BirchButton"]="minecraft:birch_button";MinecraftItemTypes2["BirchChestBoat"]="minecraft:birch_chest_boat";MinecraftItemTypes2["BirchDoor"]="minecraft:birch_door";MinecraftItemTypes2["BirchFence"]="minecraft:birch_fence";MinecraftItemTypes2["BirchFenceGate"]="minecraft:birch_fence_gate";MinecraftItemTypes2["BirchHangingSign"]="minecraft:birch_hanging_sign";MinecraftItemTypes2["BirchLog"]="minecraft:birch_log";MinecraftItemTypes2["BirchPressurePlate"]="minecraft:birch_pressure_plate";MinecraftItemTypes2["BirchSign"]="minecraft:birch_sign";MinecraftItemTypes2["BirchStairs"]="minecraft:birch_stairs";MinecraftItemTypes2["BirchTrapdoor"]="minecraft:birch_trapdoor";MinecraftItemTypes2["BlackCandle"]="minecraft:black_candle";MinecraftItemTypes2["BlackCarpet"]="minecraft:black_carpet";MinecraftItemTypes2["BlackConcrete"]="minecraft:black_concrete";MinecraftItemTypes2["BlackConcretePowder"]="minecraft:black_concrete_powder";MinecraftItemTypes2["BlackDye"]="minecraft:black_dye";MinecraftItemTypes2["BlackGlazedTerracotta"]="minecraft:black_glazed_terracotta";MinecraftItemTypes2["BlackShulkerBox"]="minecraft:black_shulker_box";MinecraftItemTypes2["BlackStainedGlass"]="minecraft:black_stained_glass";MinecraftItemTypes2["BlackStainedGlassPane"]="minecraft:black_stained_glass_pane";MinecraftItemTypes2["BlackTerracotta"]="minecraft:black_terracotta";MinecraftItemTypes2["BlackWool"]="minecraft:black_wool";MinecraftItemTypes2["Blackstone"]="minecraft:blackstone";MinecraftItemTypes2["BlackstoneSlab"]="minecraft:blackstone_slab";MinecraftItemTypes2["BlackstoneStairs"]="minecraft:blackstone_stairs";MinecraftItemTypes2["BlackstoneWall"]="minecraft:blackstone_wall";MinecraftItemTypes2["BladePotterySherd"]="minecraft:blade_pottery_sherd";MinecraftItemTypes2["BlastFurnace"]="minecraft:blast_furnace";MinecraftItemTypes2["BlazePowder"]="minecraft:blaze_powder";MinecraftItemTypes2["BlazeRod"]="minecraft:blaze_rod";MinecraftItemTypes2["BlazeSpawnEgg"]="minecraft:blaze_spawn_egg";MinecraftItemTypes2["BlueCandle"]="minecraft:blue_candle";MinecraftItemTypes2["BlueCarpet"]="minecraft:blue_carpet";MinecraftItemTypes2["BlueConcrete"]="minecraft:blue_concrete";MinecraftItemTypes2["BlueConcretePowder"]="minecraft:blue_concrete_powder";MinecraftItemTypes2["BlueDye"]="minecraft:blue_dye";MinecraftItemTypes2["BlueGlazedTerracotta"]="minecraft:blue_glazed_terracotta";MinecraftItemTypes2["BlueIce"]="minecraft:blue_ice";MinecraftItemTypes2["BlueShulkerBox"]="minecraft:blue_shulker_box";MinecraftItemTypes2["BlueStainedGlass"]="minecraft:blue_stained_glass";MinecraftItemTypes2["BlueStainedGlassPane"]="minecraft:blue_stained_glass_pane";MinecraftItemTypes2["BlueTerracotta"]="minecraft:blue_terracotta";MinecraftItemTypes2["BlueWool"]="minecraft:blue_wool";MinecraftItemTypes2["Boat"]="minecraft:boat";MinecraftItemTypes2["Bone"]="minecraft:bone";MinecraftItemTypes2["BoneBlock"]="minecraft:bone_block";MinecraftItemTypes2["BoneMeal"]="minecraft:bone_meal";MinecraftItemTypes2["Book"]="minecraft:book";MinecraftItemTypes2["Bookshelf"]="minecraft:bookshelf";MinecraftItemTypes2["BorderBlock"]="minecraft:border_block";MinecraftItemTypes2["BordureIndentedBannerPattern"]="minecraft:bordure_indented_banner_pattern";MinecraftItemTypes2["Bow"]="minecraft:bow";MinecraftItemTypes2["Bowl"]="minecraft:bowl";MinecraftItemTypes2["BrainCoral"]="minecraft:brain_coral";MinecraftItemTypes2["Bread"]="minecraft:bread";MinecraftItemTypes2["BrewerPotterySherd"]="minecraft:brewer_pottery_sherd";MinecraftItemTypes2["BrewingStand"]="minecraft:brewing_stand";MinecraftItemTypes2["Brick"]="minecraft:brick";MinecraftItemTypes2["BrickBlock"]="minecraft:brick_block";MinecraftItemTypes2["BrickStairs"]="minecraft:brick_stairs";MinecraftItemTypes2["BrownCandle"]="minecraft:brown_candle";MinecraftItemTypes2["BrownCarpet"]="minecraft:brown_carpet";MinecraftItemTypes2["BrownConcrete"]="minecraft:brown_concrete";MinecraftItemTypes2["BrownConcretePowder"]="minecraft:brown_concrete_powder";MinecraftItemTypes2["BrownDye"]="minecraft:brown_dye";MinecraftItemTypes2["BrownGlazedTerracotta"]="minecraft:brown_glazed_terracotta";MinecraftItemTypes2["BrownMushroom"]="minecraft:brown_mushroom";MinecraftItemTypes2["BrownMushroomBlock"]="minecraft:brown_mushroom_block";MinecraftItemTypes2["BrownShulkerBox"]="minecraft:brown_shulker_box";MinecraftItemTypes2["BrownStainedGlass"]="minecraft:brown_stained_glass";MinecraftItemTypes2["BrownStainedGlassPane"]="minecraft:brown_stained_glass_pane";MinecraftItemTypes2["BrownTerracotta"]="minecraft:brown_terracotta";MinecraftItemTypes2["BrownWool"]="minecraft:brown_wool";MinecraftItemTypes2["Brush"]="minecraft:brush";MinecraftItemTypes2["BubbleCoral"]="minecraft:bubble_coral";MinecraftItemTypes2["Bucket"]="minecraft:bucket";MinecraftItemTypes2["BuddingAmethyst"]="minecraft:budding_amethyst";MinecraftItemTypes2["BurnPotterySherd"]="minecraft:burn_pottery_sherd";MinecraftItemTypes2["Cactus"]="minecraft:cactus";MinecraftItemTypes2["Cake"]="minecraft:cake";MinecraftItemTypes2["Calcite"]="minecraft:calcite";MinecraftItemTypes2["CalibratedSculkSensor"]="minecraft:calibrated_sculk_sensor";MinecraftItemTypes2["CamelSpawnEgg"]="minecraft:camel_spawn_egg";MinecraftItemTypes2["Campfire"]="minecraft:campfire";MinecraftItemTypes2["Candle"]="minecraft:candle";MinecraftItemTypes2["Carpet"]="minecraft:carpet";MinecraftItemTypes2["Carrot"]="minecraft:carrot";MinecraftItemTypes2["CarrotOnAStick"]="minecraft:carrot_on_a_stick";MinecraftItemTypes2["CartographyTable"]="minecraft:cartography_table";MinecraftItemTypes2["CarvedPumpkin"]="minecraft:carved_pumpkin";MinecraftItemTypes2["CatSpawnEgg"]="minecraft:cat_spawn_egg";MinecraftItemTypes2["Cauldron"]="minecraft:cauldron";MinecraftItemTypes2["CaveSpiderSpawnEgg"]="minecraft:cave_spider_spawn_egg";MinecraftItemTypes2["Chain"]="minecraft:chain";MinecraftItemTypes2["ChainCommandBlock"]="minecraft:chain_command_block";MinecraftItemTypes2["ChainmailBoots"]="minecraft:chainmail_boots";MinecraftItemTypes2["ChainmailChestplate"]="minecraft:chainmail_chestplate";MinecraftItemTypes2["ChainmailHelmet"]="minecraft:chainmail_helmet";MinecraftItemTypes2["ChainmailLeggings"]="minecraft:chainmail_leggings";MinecraftItemTypes2["Charcoal"]="minecraft:charcoal";MinecraftItemTypes2["CherryBoat"]="minecraft:cherry_boat";MinecraftItemTypes2["CherryButton"]="minecraft:cherry_button";MinecraftItemTypes2["CherryChestBoat"]="minecraft:cherry_chest_boat";MinecraftItemTypes2["CherryDoor"]="minecraft:cherry_door";MinecraftItemTypes2["CherryFence"]="minecraft:cherry_fence";MinecraftItemTypes2["CherryFenceGate"]="minecraft:cherry_fence_gate";MinecraftItemTypes2["CherryHangingSign"]="minecraft:cherry_hanging_sign";MinecraftItemTypes2["CherryLeaves"]="minecraft:cherry_leaves";MinecraftItemTypes2["CherryLog"]="minecraft:cherry_log";MinecraftItemTypes2["CherryPlanks"]="minecraft:cherry_planks";MinecraftItemTypes2["CherryPressurePlate"]="minecraft:cherry_pressure_plate";MinecraftItemTypes2["CherrySapling"]="minecraft:cherry_sapling";MinecraftItemTypes2["CherrySign"]="minecraft:cherry_sign";MinecraftItemTypes2["CherrySlab"]="minecraft:cherry_slab";MinecraftItemTypes2["CherryStairs"]="minecraft:cherry_stairs";MinecraftItemTypes2["CherryTrapdoor"]="minecraft:cherry_trapdoor";MinecraftItemTypes2["CherryWood"]="minecraft:cherry_wood";MinecraftItemTypes2["Chest"]="minecraft:chest";MinecraftItemTypes2["ChestBoat"]="minecraft:chest_boat";MinecraftItemTypes2["ChestMinecart"]="minecraft:chest_minecart";MinecraftItemTypes2["Chicken"]="minecraft:chicken";MinecraftItemTypes2["ChickenSpawnEgg"]="minecraft:chicken_spawn_egg";MinecraftItemTypes2["ChiseledBookshelf"]="minecraft:chiseled_bookshelf";MinecraftItemTypes2["ChiseledDeepslate"]="minecraft:chiseled_deepslate";MinecraftItemTypes2["ChiseledNetherBricks"]="minecraft:chiseled_nether_bricks";MinecraftItemTypes2["ChiseledPolishedBlackstone"]="minecraft:chiseled_polished_blackstone";MinecraftItemTypes2["ChorusFlower"]="minecraft:chorus_flower";MinecraftItemTypes2["ChorusFruit"]="minecraft:chorus_fruit";MinecraftItemTypes2["ChorusPlant"]="minecraft:chorus_plant";MinecraftItemTypes2["Clay"]="minecraft:clay";MinecraftItemTypes2["ClayBall"]="minecraft:clay_ball";MinecraftItemTypes2["Clock"]="minecraft:clock";MinecraftItemTypes2["Coal"]="minecraft:coal";MinecraftItemTypes2["CoalBlock"]="minecraft:coal_block";MinecraftItemTypes2["CoalOre"]="minecraft:coal_ore";MinecraftItemTypes2["CoastArmorTrimSmithingTemplate"]="minecraft:coast_armor_trim_smithing_template";MinecraftItemTypes2["CobbledDeepslate"]="minecraft:cobbled_deepslate";MinecraftItemTypes2["CobbledDeepslateSlab"]="minecraft:cobbled_deepslate_slab";MinecraftItemTypes2["CobbledDeepslateStairs"]="minecraft:cobbled_deepslate_stairs";MinecraftItemTypes2["CobbledDeepslateWall"]="minecraft:cobbled_deepslate_wall";MinecraftItemTypes2["Cobblestone"]="minecraft:cobblestone";MinecraftItemTypes2["CobblestoneWall"]="minecraft:cobblestone_wall";MinecraftItemTypes2["CocoaBeans"]="minecraft:cocoa_beans";MinecraftItemTypes2["Cod"]="minecraft:cod";MinecraftItemTypes2["CodBucket"]="minecraft:cod_bucket";MinecraftItemTypes2["CodSpawnEgg"]="minecraft:cod_spawn_egg";MinecraftItemTypes2["CommandBlock"]="minecraft:command_block";MinecraftItemTypes2["CommandBlockMinecart"]="minecraft:command_block_minecart";MinecraftItemTypes2["Comparator"]="minecraft:comparator";MinecraftItemTypes2["Compass"]="minecraft:compass";MinecraftItemTypes2["Composter"]="minecraft:composter";MinecraftItemTypes2["Concrete"]="minecraft:concrete";MinecraftItemTypes2["ConcretePowder"]="minecraft:concrete_powder";MinecraftItemTypes2["Conduit"]="minecraft:conduit";MinecraftItemTypes2["CookedBeef"]="minecraft:cooked_beef";MinecraftItemTypes2["CookedChicken"]="minecraft:cooked_chicken";MinecraftItemTypes2["CookedCod"]="minecraft:cooked_cod";MinecraftItemTypes2["CookedMutton"]="minecraft:cooked_mutton";MinecraftItemTypes2["CookedPorkchop"]="minecraft:cooked_porkchop";MinecraftItemTypes2["CookedRabbit"]="minecraft:cooked_rabbit";MinecraftItemTypes2["CookedSalmon"]="minecraft:cooked_salmon";MinecraftItemTypes2["Cookie"]="minecraft:cookie";MinecraftItemTypes2["CopperBlock"]="minecraft:copper_block";MinecraftItemTypes2["CopperIngot"]="minecraft:copper_ingot";MinecraftItemTypes2["CopperOre"]="minecraft:copper_ore";MinecraftItemTypes2["Coral"]="minecraft:coral";MinecraftItemTypes2["CoralBlock"]="minecraft:coral_block";MinecraftItemTypes2["CoralFan"]="minecraft:coral_fan";MinecraftItemTypes2["CoralFanDead"]="minecraft:coral_fan_dead";MinecraftItemTypes2["CowSpawnEgg"]="minecraft:cow_spawn_egg";MinecraftItemTypes2["CrackedDeepslateBricks"]="minecraft:cracked_deepslate_bricks";MinecraftItemTypes2["CrackedDeepslateTiles"]="minecraft:cracked_deepslate_tiles";MinecraftItemTypes2["CrackedNetherBricks"]="minecraft:cracked_nether_bricks";MinecraftItemTypes2["CrackedPolishedBlackstoneBricks"]="minecraft:cracked_polished_blackstone_bricks";MinecraftItemTypes2["CraftingTable"]="minecraft:crafting_table";MinecraftItemTypes2["CreeperBannerPattern"]="minecraft:creeper_banner_pattern";MinecraftItemTypes2["CreeperSpawnEgg"]="minecraft:creeper_spawn_egg";MinecraftItemTypes2["CrimsonButton"]="minecraft:crimson_button";MinecraftItemTypes2["CrimsonDoor"]="minecraft:crimson_door";MinecraftItemTypes2["CrimsonFence"]="minecraft:crimson_fence";MinecraftItemTypes2["CrimsonFenceGate"]="minecraft:crimson_fence_gate";MinecraftItemTypes2["CrimsonFungus"]="minecraft:crimson_fungus";MinecraftItemTypes2["CrimsonHangingSign"]="minecraft:crimson_hanging_sign";MinecraftItemTypes2["CrimsonHyphae"]="minecraft:crimson_hyphae";MinecraftItemTypes2["CrimsonNylium"]="minecraft:crimson_nylium";MinecraftItemTypes2["CrimsonPlanks"]="minecraft:crimson_planks";MinecraftItemTypes2["CrimsonPressurePlate"]="minecraft:crimson_pressure_plate";MinecraftItemTypes2["CrimsonRoots"]="minecraft:crimson_roots";MinecraftItemTypes2["CrimsonSign"]="minecraft:crimson_sign";MinecraftItemTypes2["CrimsonSlab"]="minecraft:crimson_slab";MinecraftItemTypes2["CrimsonStairs"]="minecraft:crimson_stairs";MinecraftItemTypes2["CrimsonStem"]="minecraft:crimson_stem";MinecraftItemTypes2["CrimsonTrapdoor"]="minecraft:crimson_trapdoor";MinecraftItemTypes2["Crossbow"]="minecraft:crossbow";MinecraftItemTypes2["CryingObsidian"]="minecraft:crying_obsidian";MinecraftItemTypes2["CutCopper"]="minecraft:cut_copper";MinecraftItemTypes2["CutCopperSlab"]="minecraft:cut_copper_slab";MinecraftItemTypes2["CutCopperStairs"]="minecraft:cut_copper_stairs";MinecraftItemTypes2["CyanCandle"]="minecraft:cyan_candle";MinecraftItemTypes2["CyanCarpet"]="minecraft:cyan_carpet";MinecraftItemTypes2["CyanConcrete"]="minecraft:cyan_concrete";MinecraftItemTypes2["CyanConcretePowder"]="minecraft:cyan_concrete_powder";MinecraftItemTypes2["CyanDye"]="minecraft:cyan_dye";MinecraftItemTypes2["CyanGlazedTerracotta"]="minecraft:cyan_glazed_terracotta";MinecraftItemTypes2["CyanShulkerBox"]="minecraft:cyan_shulker_box";MinecraftItemTypes2["CyanStainedGlass"]="minecraft:cyan_stained_glass";MinecraftItemTypes2["CyanStainedGlassPane"]="minecraft:cyan_stained_glass_pane";MinecraftItemTypes2["CyanTerracotta"]="minecraft:cyan_terracotta";MinecraftItemTypes2["CyanWool"]="minecraft:cyan_wool";MinecraftItemTypes2["DangerPotterySherd"]="minecraft:danger_pottery_sherd";MinecraftItemTypes2["DarkOakBoat"]="minecraft:dark_oak_boat";MinecraftItemTypes2["DarkOakButton"]="minecraft:dark_oak_button";MinecraftItemTypes2["DarkOakChestBoat"]="minecraft:dark_oak_chest_boat";MinecraftItemTypes2["DarkOakDoor"]="minecraft:dark_oak_door";MinecraftItemTypes2["DarkOakFence"]="minecraft:dark_oak_fence";MinecraftItemTypes2["DarkOakFenceGate"]="minecraft:dark_oak_fence_gate";MinecraftItemTypes2["DarkOakHangingSign"]="minecraft:dark_oak_hanging_sign";MinecraftItemTypes2["DarkOakLog"]="minecraft:dark_oak_log";MinecraftItemTypes2["DarkOakPressurePlate"]="minecraft:dark_oak_pressure_plate";MinecraftItemTypes2["DarkOakSign"]="minecraft:dark_oak_sign";MinecraftItemTypes2["DarkOakStairs"]="minecraft:dark_oak_stairs";MinecraftItemTypes2["DarkOakTrapdoor"]="minecraft:dark_oak_trapdoor";MinecraftItemTypes2["DarkPrismarineStairs"]="minecraft:dark_prismarine_stairs";MinecraftItemTypes2["DaylightDetector"]="minecraft:daylight_detector";MinecraftItemTypes2["DeadBrainCoral"]="minecraft:dead_brain_coral";MinecraftItemTypes2["DeadBubbleCoral"]="minecraft:dead_bubble_coral";MinecraftItemTypes2["DeadFireCoral"]="minecraft:dead_fire_coral";MinecraftItemTypes2["DeadHornCoral"]="minecraft:dead_horn_coral";MinecraftItemTypes2["DeadTubeCoral"]="minecraft:dead_tube_coral";MinecraftItemTypes2["Deadbush"]="minecraft:deadbush";MinecraftItemTypes2["DecoratedPot"]="minecraft:decorated_pot";MinecraftItemTypes2["Deepslate"]="minecraft:deepslate";MinecraftItemTypes2["DeepslateBrickSlab"]="minecraft:deepslate_brick_slab";MinecraftItemTypes2["DeepslateBrickStairs"]="minecraft:deepslate_brick_stairs";MinecraftItemTypes2["DeepslateBrickWall"]="minecraft:deepslate_brick_wall";MinecraftItemTypes2["DeepslateBricks"]="minecraft:deepslate_bricks";MinecraftItemTypes2["DeepslateCoalOre"]="minecraft:deepslate_coal_ore";MinecraftItemTypes2["DeepslateCopperOre"]="minecraft:deepslate_copper_ore";MinecraftItemTypes2["DeepslateDiamondOre"]="minecraft:deepslate_diamond_ore";MinecraftItemTypes2["DeepslateEmeraldOre"]="minecraft:deepslate_emerald_ore";MinecraftItemTypes2["DeepslateGoldOre"]="minecraft:deepslate_gold_ore";MinecraftItemTypes2["DeepslateIronOre"]="minecraft:deepslate_iron_ore";MinecraftItemTypes2["DeepslateLapisOre"]="minecraft:deepslate_lapis_ore";MinecraftItemTypes2["DeepslateRedstoneOre"]="minecraft:deepslate_redstone_ore";MinecraftItemTypes2["DeepslateTileSlab"]="minecraft:deepslate_tile_slab";MinecraftItemTypes2["DeepslateTileStairs"]="minecraft:deepslate_tile_stairs";MinecraftItemTypes2["DeepslateTileWall"]="minecraft:deepslate_tile_wall";MinecraftItemTypes2["DeepslateTiles"]="minecraft:deepslate_tiles";MinecraftItemTypes2["Deny"]="minecraft:deny";MinecraftItemTypes2["DetectorRail"]="minecraft:detector_rail";MinecraftItemTypes2["Diamond"]="minecraft:diamond";MinecraftItemTypes2["DiamondAxe"]="minecraft:diamond_axe";MinecraftItemTypes2["DiamondBlock"]="minecraft:diamond_block";MinecraftItemTypes2["DiamondBoots"]="minecraft:diamond_boots";MinecraftItemTypes2["DiamondChestplate"]="minecraft:diamond_chestplate";MinecraftItemTypes2["DiamondHelmet"]="minecraft:diamond_helmet";MinecraftItemTypes2["DiamondHoe"]="minecraft:diamond_hoe";MinecraftItemTypes2["DiamondHorseArmor"]="minecraft:diamond_horse_armor";MinecraftItemTypes2["DiamondLeggings"]="minecraft:diamond_leggings";MinecraftItemTypes2["DiamondOre"]="minecraft:diamond_ore";MinecraftItemTypes2["DiamondPickaxe"]="minecraft:diamond_pickaxe";MinecraftItemTypes2["DiamondShovel"]="minecraft:diamond_shovel";MinecraftItemTypes2["DiamondSword"]="minecraft:diamond_sword";MinecraftItemTypes2["DioriteStairs"]="minecraft:diorite_stairs";MinecraftItemTypes2["Dirt"]="minecraft:dirt";MinecraftItemTypes2["DirtWithRoots"]="minecraft:dirt_with_roots";MinecraftItemTypes2["DiscFragment5"]="minecraft:disc_fragment_5";MinecraftItemTypes2["Dispenser"]="minecraft:dispenser";MinecraftItemTypes2["DolphinSpawnEgg"]="minecraft:dolphin_spawn_egg";MinecraftItemTypes2["DonkeySpawnEgg"]="minecraft:donkey_spawn_egg";MinecraftItemTypes2["DoublePlant"]="minecraft:double_plant";MinecraftItemTypes2["DragonBreath"]="minecraft:dragon_breath";MinecraftItemTypes2["DragonEgg"]="minecraft:dragon_egg";MinecraftItemTypes2["DriedKelp"]="minecraft:dried_kelp";MinecraftItemTypes2["DriedKelpBlock"]="minecraft:dried_kelp_block";MinecraftItemTypes2["DripstoneBlock"]="minecraft:dripstone_block";MinecraftItemTypes2["Dropper"]="minecraft:dropper";MinecraftItemTypes2["DrownedSpawnEgg"]="minecraft:drowned_spawn_egg";MinecraftItemTypes2["DuneArmorTrimSmithingTemplate"]="minecraft:dune_armor_trim_smithing_template";MinecraftItemTypes2["Dye"]="minecraft:dye";MinecraftItemTypes2["EchoShard"]="minecraft:echo_shard";MinecraftItemTypes2["Egg"]="minecraft:egg";MinecraftItemTypes2["ElderGuardianSpawnEgg"]="minecraft:elder_guardian_spawn_egg";MinecraftItemTypes2["Elytra"]="minecraft:elytra";MinecraftItemTypes2["Emerald"]="minecraft:emerald";MinecraftItemTypes2["EmeraldBlock"]="minecraft:emerald_block";MinecraftItemTypes2["EmeraldOre"]="minecraft:emerald_ore";MinecraftItemTypes2["EmptyMap"]="minecraft:empty_map";MinecraftItemTypes2["EnchantedBook"]="minecraft:enchanted_book";MinecraftItemTypes2["EnchantedGoldenApple"]="minecraft:enchanted_golden_apple";MinecraftItemTypes2["EnchantingTable"]="minecraft:enchanting_table";MinecraftItemTypes2["EndBrickStairs"]="minecraft:end_brick_stairs";MinecraftItemTypes2["EndBricks"]="minecraft:end_bricks";MinecraftItemTypes2["EndCrystal"]="minecraft:end_crystal";MinecraftItemTypes2["EndPortalFrame"]="minecraft:end_portal_frame";MinecraftItemTypes2["EndRod"]="minecraft:end_rod";MinecraftItemTypes2["EndStone"]="minecraft:end_stone";MinecraftItemTypes2["EnderChest"]="minecraft:ender_chest";MinecraftItemTypes2["EnderDragonSpawnEgg"]="minecraft:ender_dragon_spawn_egg";MinecraftItemTypes2["EnderEye"]="minecraft:ender_eye";MinecraftItemTypes2["EnderPearl"]="minecraft:ender_pearl";MinecraftItemTypes2["EndermanSpawnEgg"]="minecraft:enderman_spawn_egg";MinecraftItemTypes2["EndermiteSpawnEgg"]="minecraft:endermite_spawn_egg";MinecraftItemTypes2["EvokerSpawnEgg"]="minecraft:evoker_spawn_egg";MinecraftItemTypes2["ExperienceBottle"]="minecraft:experience_bottle";MinecraftItemTypes2["ExplorerPotterySherd"]="minecraft:explorer_pottery_sherd";MinecraftItemTypes2["ExposedCopper"]="minecraft:exposed_copper";MinecraftItemTypes2["ExposedCutCopper"]="minecraft:exposed_cut_copper";MinecraftItemTypes2["ExposedCutCopperSlab"]="minecraft:exposed_cut_copper_slab";MinecraftItemTypes2["ExposedCutCopperStairs"]="minecraft:exposed_cut_copper_stairs";MinecraftItemTypes2["EyeArmorTrimSmithingTemplate"]="minecraft:eye_armor_trim_smithing_template";MinecraftItemTypes2["Farmland"]="minecraft:farmland";MinecraftItemTypes2["Feather"]="minecraft:feather";MinecraftItemTypes2["Fence"]="minecraft:fence";MinecraftItemTypes2["FenceGate"]="minecraft:fence_gate";MinecraftItemTypes2["FermentedSpiderEye"]="minecraft:fermented_spider_eye";MinecraftItemTypes2["FieldMasonedBannerPattern"]="minecraft:field_masoned_banner_pattern";MinecraftItemTypes2["FilledMap"]="minecraft:filled_map";MinecraftItemTypes2["FireCharge"]="minecraft:fire_charge";MinecraftItemTypes2["FireCoral"]="minecraft:fire_coral";MinecraftItemTypes2["FireworkRocket"]="minecraft:firework_rocket";MinecraftItemTypes2["FireworkStar"]="minecraft:firework_star";MinecraftItemTypes2["FishingRod"]="minecraft:fishing_rod";MinecraftItemTypes2["FletchingTable"]="minecraft:fletching_table";MinecraftItemTypes2["Flint"]="minecraft:flint";MinecraftItemTypes2["FlintAndSteel"]="minecraft:flint_and_steel";MinecraftItemTypes2["FlowerBannerPattern"]="minecraft:flower_banner_pattern";MinecraftItemTypes2["FlowerPot"]="minecraft:flower_pot";MinecraftItemTypes2["FloweringAzalea"]="minecraft:flowering_azalea";MinecraftItemTypes2["FoxSpawnEgg"]="minecraft:fox_spawn_egg";MinecraftItemTypes2["Frame"]="minecraft:frame";MinecraftItemTypes2["FriendPotterySherd"]="minecraft:friend_pottery_sherd";MinecraftItemTypes2["FrogSpawn"]="minecraft:frog_spawn";MinecraftItemTypes2["FrogSpawnEgg"]="minecraft:frog_spawn_egg";MinecraftItemTypes2["FrostedIce"]="minecraft:frosted_ice";MinecraftItemTypes2["Furnace"]="minecraft:furnace";MinecraftItemTypes2["GhastSpawnEgg"]="minecraft:ghast_spawn_egg";MinecraftItemTypes2["GhastTear"]="minecraft:ghast_tear";MinecraftItemTypes2["GildedBlackstone"]="minecraft:gilded_blackstone";MinecraftItemTypes2["Glass"]="minecraft:glass";MinecraftItemTypes2["GlassBottle"]="minecraft:glass_bottle";MinecraftItemTypes2["GlassPane"]="minecraft:glass_pane";MinecraftItemTypes2["GlisteringMelonSlice"]="minecraft:glistering_melon_slice";MinecraftItemTypes2["GlobeBannerPattern"]="minecraft:globe_banner_pattern";MinecraftItemTypes2["GlowBerries"]="minecraft:glow_berries";MinecraftItemTypes2["GlowFrame"]="minecraft:glow_frame";MinecraftItemTypes2["GlowInkSac"]="minecraft:glow_ink_sac";MinecraftItemTypes2["GlowLichen"]="minecraft:glow_lichen";MinecraftItemTypes2["GlowSquidSpawnEgg"]="minecraft:glow_squid_spawn_egg";MinecraftItemTypes2["Glowstone"]="minecraft:glowstone";MinecraftItemTypes2["GlowstoneDust"]="minecraft:glowstone_dust";MinecraftItemTypes2["GoatHorn"]="minecraft:goat_horn";MinecraftItemTypes2["GoatSpawnEgg"]="minecraft:goat_spawn_egg";MinecraftItemTypes2["GoldBlock"]="minecraft:gold_block";MinecraftItemTypes2["GoldIngot"]="minecraft:gold_ingot";MinecraftItemTypes2["GoldNugget"]="minecraft:gold_nugget";MinecraftItemTypes2["GoldOre"]="minecraft:gold_ore";MinecraftItemTypes2["GoldenApple"]="minecraft:golden_apple";MinecraftItemTypes2["GoldenAxe"]="minecraft:golden_axe";MinecraftItemTypes2["GoldenBoots"]="minecraft:golden_boots";MinecraftItemTypes2["GoldenCarrot"]="minecraft:golden_carrot";MinecraftItemTypes2["GoldenChestplate"]="minecraft:golden_chestplate";MinecraftItemTypes2["GoldenHelmet"]="minecraft:golden_helmet";MinecraftItemTypes2["GoldenHoe"]="minecraft:golden_hoe";MinecraftItemTypes2["GoldenHorseArmor"]="minecraft:golden_horse_armor";MinecraftItemTypes2["GoldenLeggings"]="minecraft:golden_leggings";MinecraftItemTypes2["GoldenPickaxe"]="minecraft:golden_pickaxe";MinecraftItemTypes2["GoldenRail"]="minecraft:golden_rail";MinecraftItemTypes2["GoldenShovel"]="minecraft:golden_shovel";MinecraftItemTypes2["GoldenSword"]="minecraft:golden_sword";MinecraftItemTypes2["GraniteStairs"]="minecraft:granite_stairs";MinecraftItemTypes2["Grass"]="minecraft:grass";MinecraftItemTypes2["GrassPath"]="minecraft:grass_path";MinecraftItemTypes2["Gravel"]="minecraft:gravel";MinecraftItemTypes2["GrayCandle"]="minecraft:gray_candle";MinecraftItemTypes2["GrayCarpet"]="minecraft:gray_carpet";MinecraftItemTypes2["GrayConcrete"]="minecraft:gray_concrete";MinecraftItemTypes2["GrayConcretePowder"]="minecraft:gray_concrete_powder";MinecraftItemTypes2["GrayDye"]="minecraft:gray_dye";MinecraftItemTypes2["GrayGlazedTerracotta"]="minecraft:gray_glazed_terracotta";MinecraftItemTypes2["GrayShulkerBox"]="minecraft:gray_shulker_box";MinecraftItemTypes2["GrayStainedGlass"]="minecraft:gray_stained_glass";MinecraftItemTypes2["GrayStainedGlassPane"]="minecraft:gray_stained_glass_pane";MinecraftItemTypes2["GrayTerracotta"]="minecraft:gray_terracotta";MinecraftItemTypes2["GrayWool"]="minecraft:gray_wool";MinecraftItemTypes2["GreenCandle"]="minecraft:green_candle";MinecraftItemTypes2["GreenCarpet"]="minecraft:green_carpet";MinecraftItemTypes2["GreenConcrete"]="minecraft:green_concrete";MinecraftItemTypes2["GreenConcretePowder"]="minecraft:green_concrete_powder";MinecraftItemTypes2["GreenDye"]="minecraft:green_dye";MinecraftItemTypes2["GreenGlazedTerracotta"]="minecraft:green_glazed_terracotta";MinecraftItemTypes2["GreenShulkerBox"]="minecraft:green_shulker_box";MinecraftItemTypes2["GreenStainedGlass"]="minecraft:green_stained_glass";MinecraftItemTypes2["GreenStainedGlassPane"]="minecraft:green_stained_glass_pane";MinecraftItemTypes2["GreenTerracotta"]="minecraft:green_terracotta";MinecraftItemTypes2["GreenWool"]="minecraft:green_wool";MinecraftItemTypes2["Grindstone"]="minecraft:grindstone";MinecraftItemTypes2["GuardianSpawnEgg"]="minecraft:guardian_spawn_egg";MinecraftItemTypes2["Gunpowder"]="minecraft:gunpowder";MinecraftItemTypes2["HangingRoots"]="minecraft:hanging_roots";MinecraftItemTypes2["HardenedClay"]="minecraft:hardened_clay";MinecraftItemTypes2["HayBlock"]="minecraft:hay_block";MinecraftItemTypes2["HeartOfTheSea"]="minecraft:heart_of_the_sea";MinecraftItemTypes2["HeartPotterySherd"]="minecraft:heart_pottery_sherd";MinecraftItemTypes2["HeartbreakPotterySherd"]="minecraft:heartbreak_pottery_sherd";MinecraftItemTypes2["HeavyWeightedPressurePlate"]="minecraft:heavy_weighted_pressure_plate";MinecraftItemTypes2["HoglinSpawnEgg"]="minecraft:hoglin_spawn_egg";MinecraftItemTypes2["HoneyBlock"]="minecraft:honey_block";MinecraftItemTypes2["HoneyBottle"]="minecraft:honey_bottle";MinecraftItemTypes2["Honeycomb"]="minecraft:honeycomb";MinecraftItemTypes2["HoneycombBlock"]="minecraft:honeycomb_block";MinecraftItemTypes2["Hopper"]="minecraft:hopper";MinecraftItemTypes2["HopperMinecart"]="minecraft:hopper_minecart";MinecraftItemTypes2["HornCoral"]="minecraft:horn_coral";MinecraftItemTypes2["HorseSpawnEgg"]="minecraft:horse_spawn_egg";MinecraftItemTypes2["HostArmorTrimSmithingTemplate"]="minecraft:host_armor_trim_smithing_template";MinecraftItemTypes2["HowlPotterySherd"]="minecraft:howl_pottery_sherd";MinecraftItemTypes2["HuskSpawnEgg"]="minecraft:husk_spawn_egg";MinecraftItemTypes2["Ice"]="minecraft:ice";MinecraftItemTypes2["InfestedDeepslate"]="minecraft:infested_deepslate";MinecraftItemTypes2["InkSac"]="minecraft:ink_sac";MinecraftItemTypes2["IronAxe"]="minecraft:iron_axe";MinecraftItemTypes2["IronBars"]="minecraft:iron_bars";MinecraftItemTypes2["IronBlock"]="minecraft:iron_block";MinecraftItemTypes2["IronBoots"]="minecraft:iron_boots";MinecraftItemTypes2["IronChestplate"]="minecraft:iron_chestplate";MinecraftItemTypes2["IronDoor"]="minecraft:iron_door";MinecraftItemTypes2["IronGolemSpawnEgg"]="minecraft:iron_golem_spawn_egg";MinecraftItemTypes2["IronHelmet"]="minecraft:iron_helmet";MinecraftItemTypes2["IronHoe"]="minecraft:iron_hoe";MinecraftItemTypes2["IronHorseArmor"]="minecraft:iron_horse_armor";MinecraftItemTypes2["IronIngot"]="minecraft:iron_ingot";MinecraftItemTypes2["IronLeggings"]="minecraft:iron_leggings";MinecraftItemTypes2["IronNugget"]="minecraft:iron_nugget";MinecraftItemTypes2["IronOre"]="minecraft:iron_ore";MinecraftItemTypes2["IronPickaxe"]="minecraft:iron_pickaxe";MinecraftItemTypes2["IronShovel"]="minecraft:iron_shovel";MinecraftItemTypes2["IronSword"]="minecraft:iron_sword";MinecraftItemTypes2["IronTrapdoor"]="minecraft:iron_trapdoor";MinecraftItemTypes2["Jigsaw"]="minecraft:jigsaw";MinecraftItemTypes2["Jukebox"]="minecraft:jukebox";MinecraftItemTypes2["JungleBoat"]="minecraft:jungle_boat";MinecraftItemTypes2["JungleButton"]="minecraft:jungle_button";MinecraftItemTypes2["JungleChestBoat"]="minecraft:jungle_chest_boat";MinecraftItemTypes2["JungleDoor"]="minecraft:jungle_door";MinecraftItemTypes2["JungleFence"]="minecraft:jungle_fence";MinecraftItemTypes2["JungleFenceGate"]="minecraft:jungle_fence_gate";MinecraftItemTypes2["JungleHangingSign"]="minecraft:jungle_hanging_sign";MinecraftItemTypes2["JungleLog"]="minecraft:jungle_log";MinecraftItemTypes2["JunglePressurePlate"]="minecraft:jungle_pressure_plate";MinecraftItemTypes2["JungleSign"]="minecraft:jungle_sign";MinecraftItemTypes2["JungleStairs"]="minecraft:jungle_stairs";MinecraftItemTypes2["JungleTrapdoor"]="minecraft:jungle_trapdoor";MinecraftItemTypes2["Kelp"]="minecraft:kelp";MinecraftItemTypes2["Ladder"]="minecraft:ladder";MinecraftItemTypes2["Lantern"]="minecraft:lantern";MinecraftItemTypes2["LapisBlock"]="minecraft:lapis_block";MinecraftItemTypes2["LapisLazuli"]="minecraft:lapis_lazuli";MinecraftItemTypes2["LapisOre"]="minecraft:lapis_ore";MinecraftItemTypes2["LargeAmethystBud"]="minecraft:large_amethyst_bud";MinecraftItemTypes2["LavaBucket"]="minecraft:lava_bucket";MinecraftItemTypes2["Lead"]="minecraft:lead";MinecraftItemTypes2["Leather"]="minecraft:leather";MinecraftItemTypes2["LeatherBoots"]="minecraft:leather_boots";MinecraftItemTypes2["LeatherChestplate"]="minecraft:leather_chestplate";MinecraftItemTypes2["LeatherHelmet"]="minecraft:leather_helmet";MinecraftItemTypes2["LeatherHorseArmor"]="minecraft:leather_horse_armor";MinecraftItemTypes2["LeatherLeggings"]="minecraft:leather_leggings";MinecraftItemTypes2["Leaves"]="minecraft:leaves";MinecraftItemTypes2["Leaves2"]="minecraft:leaves2";MinecraftItemTypes2["Lectern"]="minecraft:lectern";MinecraftItemTypes2["Lever"]="minecraft:lever";MinecraftItemTypes2["LightBlock"]="minecraft:light_block";MinecraftItemTypes2["LightBlueCandle"]="minecraft:light_blue_candle";MinecraftItemTypes2["LightBlueCarpet"]="minecraft:light_blue_carpet";MinecraftItemTypes2["LightBlueConcrete"]="minecraft:light_blue_concrete";MinecraftItemTypes2["LightBlueConcretePowder"]="minecraft:light_blue_concrete_powder";MinecraftItemTypes2["LightBlueDye"]="minecraft:light_blue_dye";MinecraftItemTypes2["LightBlueGlazedTerracotta"]="minecraft:light_blue_glazed_terracotta";MinecraftItemTypes2["LightBlueShulkerBox"]="minecraft:light_blue_shulker_box";MinecraftItemTypes2["LightBlueStainedGlass"]="minecraft:light_blue_stained_glass";MinecraftItemTypes2["LightBlueStainedGlassPane"]="minecraft:light_blue_stained_glass_pane";MinecraftItemTypes2["LightBlueTerracotta"]="minecraft:light_blue_terracotta";MinecraftItemTypes2["LightBlueWool"]="minecraft:light_blue_wool";MinecraftItemTypes2["LightGrayCandle"]="minecraft:light_gray_candle";MinecraftItemTypes2["LightGrayCarpet"]="minecraft:light_gray_carpet";MinecraftItemTypes2["LightGrayConcrete"]="minecraft:light_gray_concrete";MinecraftItemTypes2["LightGrayConcretePowder"]="minecraft:light_gray_concrete_powder";MinecraftItemTypes2["LightGrayDye"]="minecraft:light_gray_dye";MinecraftItemTypes2["LightGrayShulkerBox"]="minecraft:light_gray_shulker_box";MinecraftItemTypes2["LightGrayStainedGlass"]="minecraft:light_gray_stained_glass";MinecraftItemTypes2["LightGrayStainedGlassPane"]="minecraft:light_gray_stained_glass_pane";MinecraftItemTypes2["LightGrayTerracotta"]="minecraft:light_gray_terracotta";MinecraftItemTypes2["LightGrayWool"]="minecraft:light_gray_wool";MinecraftItemTypes2["LightWeightedPressurePlate"]="minecraft:light_weighted_pressure_plate";MinecraftItemTypes2["LightningRod"]="minecraft:lightning_rod";MinecraftItemTypes2["LimeCandle"]="minecraft:lime_candle";MinecraftItemTypes2["LimeCarpet"]="minecraft:lime_carpet";MinecraftItemTypes2["LimeConcrete"]="minecraft:lime_concrete";MinecraftItemTypes2["LimeConcretePowder"]="minecraft:lime_concrete_powder";MinecraftItemTypes2["LimeDye"]="minecraft:lime_dye";MinecraftItemTypes2["LimeGlazedTerracotta"]="minecraft:lime_glazed_terracotta";MinecraftItemTypes2["LimeShulkerBox"]="minecraft:lime_shulker_box";MinecraftItemTypes2["LimeStainedGlass"]="minecraft:lime_stained_glass";MinecraftItemTypes2["LimeStainedGlassPane"]="minecraft:lime_stained_glass_pane";MinecraftItemTypes2["LimeTerracotta"]="minecraft:lime_terracotta";MinecraftItemTypes2["LimeWool"]="minecraft:lime_wool";MinecraftItemTypes2["LingeringPotion"]="minecraft:lingering_potion";MinecraftItemTypes2["LitPumpkin"]="minecraft:lit_pumpkin";MinecraftItemTypes2["LlamaSpawnEgg"]="minecraft:llama_spawn_egg";MinecraftItemTypes2["Lodestone"]="minecraft:lodestone";MinecraftItemTypes2["LodestoneCompass"]="minecraft:lodestone_compass";MinecraftItemTypes2["Log"]="minecraft:log";MinecraftItemTypes2["Log2"]="minecraft:log2";MinecraftItemTypes2["Loom"]="minecraft:loom";MinecraftItemTypes2["MagentaCandle"]="minecraft:magenta_candle";MinecraftItemTypes2["MagentaCarpet"]="minecraft:magenta_carpet";MinecraftItemTypes2["MagentaConcrete"]="minecraft:magenta_concrete";MinecraftItemTypes2["MagentaConcretePowder"]="minecraft:magenta_concrete_powder";MinecraftItemTypes2["MagentaDye"]="minecraft:magenta_dye";MinecraftItemTypes2["MagentaGlazedTerracotta"]="minecraft:magenta_glazed_terracotta";MinecraftItemTypes2["MagentaShulkerBox"]="minecraft:magenta_shulker_box";MinecraftItemTypes2["MagentaStainedGlass"]="minecraft:magenta_stained_glass";MinecraftItemTypes2["MagentaStainedGlassPane"]="minecraft:magenta_stained_glass_pane";MinecraftItemTypes2["MagentaTerracotta"]="minecraft:magenta_terracotta";MinecraftItemTypes2["MagentaWool"]="minecraft:magenta_wool";MinecraftItemTypes2["Magma"]="minecraft:magma";MinecraftItemTypes2["MagmaCream"]="minecraft:magma_cream";MinecraftItemTypes2["MagmaCubeSpawnEgg"]="minecraft:magma_cube_spawn_egg";MinecraftItemTypes2["MangroveBoat"]="minecraft:mangrove_boat";MinecraftItemTypes2["MangroveButton"]="minecraft:mangrove_button";MinecraftItemTypes2["MangroveChestBoat"]="minecraft:mangrove_chest_boat";MinecraftItemTypes2["MangroveDoor"]="minecraft:mangrove_door";MinecraftItemTypes2["MangroveFence"]="minecraft:mangrove_fence";MinecraftItemTypes2["MangroveFenceGate"]="minecraft:mangrove_fence_gate";MinecraftItemTypes2["MangroveHangingSign"]="minecraft:mangrove_hanging_sign";MinecraftItemTypes2["MangroveLeaves"]="minecraft:mangrove_leaves";MinecraftItemTypes2["MangroveLog"]="minecraft:mangrove_log";MinecraftItemTypes2["MangrovePlanks"]="minecraft:mangrove_planks";MinecraftItemTypes2["MangrovePressurePlate"]="minecraft:mangrove_pressure_plate";MinecraftItemTypes2["MangrovePropagule"]="minecraft:mangrove_propagule";MinecraftItemTypes2["MangroveRoots"]="minecraft:mangrove_roots";MinecraftItemTypes2["MangroveSign"]="minecraft:mangrove_sign";MinecraftItemTypes2["MangroveSlab"]="minecraft:mangrove_slab";MinecraftItemTypes2["MangroveStairs"]="minecraft:mangrove_stairs";MinecraftItemTypes2["MangroveTrapdoor"]="minecraft:mangrove_trapdoor";MinecraftItemTypes2["MangroveWood"]="minecraft:mangrove_wood";MinecraftItemTypes2["MediumAmethystBud"]="minecraft:medium_amethyst_bud";MinecraftItemTypes2["MelonBlock"]="minecraft:melon_block";MinecraftItemTypes2["MelonSeeds"]="minecraft:melon_seeds";MinecraftItemTypes2["MelonSlice"]="minecraft:melon_slice";MinecraftItemTypes2["MilkBucket"]="minecraft:milk_bucket";MinecraftItemTypes2["Minecart"]="minecraft:minecart";MinecraftItemTypes2["MinerPotterySherd"]="minecraft:miner_pottery_sherd";MinecraftItemTypes2["MobSpawner"]="minecraft:mob_spawner";MinecraftItemTypes2["MojangBannerPattern"]="minecraft:mojang_banner_pattern";MinecraftItemTypes2["MonsterEgg"]="minecraft:monster_egg";MinecraftItemTypes2["MooshroomSpawnEgg"]="minecraft:mooshroom_spawn_egg";MinecraftItemTypes2["MossBlock"]="minecraft:moss_block";MinecraftItemTypes2["MossCarpet"]="minecraft:moss_carpet";MinecraftItemTypes2["MossyCobblestone"]="minecraft:mossy_cobblestone";MinecraftItemTypes2["MossyCobblestoneStairs"]="minecraft:mossy_cobblestone_stairs";MinecraftItemTypes2["MossyStoneBrickStairs"]="minecraft:mossy_stone_brick_stairs";MinecraftItemTypes2["MournerPotterySherd"]="minecraft:mourner_pottery_sherd";MinecraftItemTypes2["Mud"]="minecraft:mud";MinecraftItemTypes2["MudBrickSlab"]="minecraft:mud_brick_slab";MinecraftItemTypes2["MudBrickStairs"]="minecraft:mud_brick_stairs";MinecraftItemTypes2["MudBrickWall"]="minecraft:mud_brick_wall";MinecraftItemTypes2["MudBricks"]="minecraft:mud_bricks";MinecraftItemTypes2["MuddyMangroveRoots"]="minecraft:muddy_mangrove_roots";MinecraftItemTypes2["MuleSpawnEgg"]="minecraft:mule_spawn_egg";MinecraftItemTypes2["MushroomStew"]="minecraft:mushroom_stew";MinecraftItemTypes2["MusicDisc11"]="minecraft:music_disc_11";MinecraftItemTypes2["MusicDisc13"]="minecraft:music_disc_13";MinecraftItemTypes2["MusicDisc5"]="minecraft:music_disc_5";MinecraftItemTypes2["MusicDiscBlocks"]="minecraft:music_disc_blocks";MinecraftItemTypes2["MusicDiscCat"]="minecraft:music_disc_cat";MinecraftItemTypes2["MusicDiscChirp"]="minecraft:music_disc_chirp";MinecraftItemTypes2["MusicDiscFar"]="minecraft:music_disc_far";MinecraftItemTypes2["MusicDiscMall"]="minecraft:music_disc_mall";MinecraftItemTypes2["MusicDiscMellohi"]="minecraft:music_disc_mellohi";MinecraftItemTypes2["MusicDiscOtherside"]="minecraft:music_disc_otherside";MinecraftItemTypes2["MusicDiscPigstep"]="minecraft:music_disc_pigstep";MinecraftItemTypes2["MusicDiscRelic"]="minecraft:music_disc_relic";MinecraftItemTypes2["MusicDiscStal"]="minecraft:music_disc_stal";MinecraftItemTypes2["MusicDiscStrad"]="minecraft:music_disc_strad";MinecraftItemTypes2["MusicDiscWait"]="minecraft:music_disc_wait";MinecraftItemTypes2["MusicDiscWard"]="minecraft:music_disc_ward";MinecraftItemTypes2["Mutton"]="minecraft:mutton";MinecraftItemTypes2["Mycelium"]="minecraft:mycelium";MinecraftItemTypes2["NameTag"]="minecraft:name_tag";MinecraftItemTypes2["NautilusShell"]="minecraft:nautilus_shell";MinecraftItemTypes2["NetherBrick"]="minecraft:nether_brick";MinecraftItemTypes2["NetherBrickFence"]="minecraft:nether_brick_fence";MinecraftItemTypes2["NetherBrickStairs"]="minecraft:nether_brick_stairs";MinecraftItemTypes2["NetherGoldOre"]="minecraft:nether_gold_ore";MinecraftItemTypes2["NetherSprouts"]="minecraft:nether_sprouts";MinecraftItemTypes2["NetherStar"]="minecraft:nether_star";MinecraftItemTypes2["NetherWart"]="minecraft:nether_wart";MinecraftItemTypes2["NetherWartBlock"]="minecraft:nether_wart_block";MinecraftItemTypes2["Netherbrick"]="minecraft:netherbrick";MinecraftItemTypes2["NetheriteAxe"]="minecraft:netherite_axe";MinecraftItemTypes2["NetheriteBlock"]="minecraft:netherite_block";MinecraftItemTypes2["NetheriteBoots"]="minecraft:netherite_boots";MinecraftItemTypes2["NetheriteChestplate"]="minecraft:netherite_chestplate";MinecraftItemTypes2["NetheriteHelmet"]="minecraft:netherite_helmet";MinecraftItemTypes2["NetheriteHoe"]="minecraft:netherite_hoe";MinecraftItemTypes2["NetheriteIngot"]="minecraft:netherite_ingot";MinecraftItemTypes2["NetheriteLeggings"]="minecraft:netherite_leggings";MinecraftItemTypes2["NetheritePickaxe"]="minecraft:netherite_pickaxe";MinecraftItemTypes2["NetheriteScrap"]="minecraft:netherite_scrap";MinecraftItemTypes2["NetheriteShovel"]="minecraft:netherite_shovel";MinecraftItemTypes2["NetheriteSword"]="minecraft:netherite_sword";MinecraftItemTypes2["NetheriteUpgradeSmithingTemplate"]="minecraft:netherite_upgrade_smithing_template";MinecraftItemTypes2["Netherrack"]="minecraft:netherrack";MinecraftItemTypes2["NormalStoneStairs"]="minecraft:normal_stone_stairs";MinecraftItemTypes2["Noteblock"]="minecraft:noteblock";MinecraftItemTypes2["OakBoat"]="minecraft:oak_boat";MinecraftItemTypes2["OakChestBoat"]="minecraft:oak_chest_boat";MinecraftItemTypes2["OakFence"]="minecraft:oak_fence";MinecraftItemTypes2["OakHangingSign"]="minecraft:oak_hanging_sign";MinecraftItemTypes2["OakLog"]="minecraft:oak_log";MinecraftItemTypes2["OakSign"]="minecraft:oak_sign";MinecraftItemTypes2["OakStairs"]="minecraft:oak_stairs";MinecraftItemTypes2["Observer"]="minecraft:observer";MinecraftItemTypes2["Obsidian"]="minecraft:obsidian";MinecraftItemTypes2["OcelotSpawnEgg"]="minecraft:ocelot_spawn_egg";MinecraftItemTypes2["OchreFroglight"]="minecraft:ochre_froglight";MinecraftItemTypes2["OrangeCandle"]="minecraft:orange_candle";MinecraftItemTypes2["OrangeCarpet"]="minecraft:orange_carpet";MinecraftItemTypes2["OrangeConcrete"]="minecraft:orange_concrete";MinecraftItemTypes2["OrangeConcretePowder"]="minecraft:orange_concrete_powder";MinecraftItemTypes2["OrangeDye"]="minecraft:orange_dye";MinecraftItemTypes2["OrangeGlazedTerracotta"]="minecraft:orange_glazed_terracotta";MinecraftItemTypes2["OrangeShulkerBox"]="minecraft:orange_shulker_box";MinecraftItemTypes2["OrangeStainedGlass"]="minecraft:orange_stained_glass";MinecraftItemTypes2["OrangeStainedGlassPane"]="minecraft:orange_stained_glass_pane";MinecraftItemTypes2["OrangeTerracotta"]="minecraft:orange_terracotta";MinecraftItemTypes2["OrangeWool"]="minecraft:orange_wool";MinecraftItemTypes2["OxidizedCopper"]="minecraft:oxidized_copper";MinecraftItemTypes2["OxidizedCutCopper"]="minecraft:oxidized_cut_copper";MinecraftItemTypes2["OxidizedCutCopperSlab"]="minecraft:oxidized_cut_copper_slab";MinecraftItemTypes2["OxidizedCutCopperStairs"]="minecraft:oxidized_cut_copper_stairs";MinecraftItemTypes2["PackedIce"]="minecraft:packed_ice";MinecraftItemTypes2["PackedMud"]="minecraft:packed_mud";MinecraftItemTypes2["Painting"]="minecraft:painting";MinecraftItemTypes2["PandaSpawnEgg"]="minecraft:panda_spawn_egg";MinecraftItemTypes2["Paper"]="minecraft:paper";MinecraftItemTypes2["ParrotSpawnEgg"]="minecraft:parrot_spawn_egg";MinecraftItemTypes2["PearlescentFroglight"]="minecraft:pearlescent_froglight";MinecraftItemTypes2["PhantomMembrane"]="minecraft:phantom_membrane";MinecraftItemTypes2["PhantomSpawnEgg"]="minecraft:phantom_spawn_egg";MinecraftItemTypes2["PigSpawnEgg"]="minecraft:pig_spawn_egg";MinecraftItemTypes2["PiglinBannerPattern"]="minecraft:piglin_banner_pattern";MinecraftItemTypes2["PiglinBruteSpawnEgg"]="minecraft:piglin_brute_spawn_egg";MinecraftItemTypes2["PiglinSpawnEgg"]="minecraft:piglin_spawn_egg";MinecraftItemTypes2["PillagerSpawnEgg"]="minecraft:pillager_spawn_egg";MinecraftItemTypes2["PinkCandle"]="minecraft:pink_candle";MinecraftItemTypes2["PinkCarpet"]="minecraft:pink_carpet";MinecraftItemTypes2["PinkConcrete"]="minecraft:pink_concrete";MinecraftItemTypes2["PinkConcretePowder"]="minecraft:pink_concrete_powder";MinecraftItemTypes2["PinkDye"]="minecraft:pink_dye";MinecraftItemTypes2["PinkGlazedTerracotta"]="minecraft:pink_glazed_terracotta";MinecraftItemTypes2["PinkPetals"]="minecraft:pink_petals";MinecraftItemTypes2["PinkShulkerBox"]="minecraft:pink_shulker_box";MinecraftItemTypes2["PinkStainedGlass"]="minecraft:pink_stained_glass";MinecraftItemTypes2["PinkStainedGlassPane"]="minecraft:pink_stained_glass_pane";MinecraftItemTypes2["PinkTerracotta"]="minecraft:pink_terracotta";MinecraftItemTypes2["PinkWool"]="minecraft:pink_wool";MinecraftItemTypes2["Piston"]="minecraft:piston";MinecraftItemTypes2["PitcherPlant"]="minecraft:pitcher_plant";MinecraftItemTypes2["PitcherPod"]="minecraft:pitcher_pod";MinecraftItemTypes2["Planks"]="minecraft:planks";MinecraftItemTypes2["PlentyPotterySherd"]="minecraft:plenty_pottery_sherd";MinecraftItemTypes2["Podzol"]="minecraft:podzol";MinecraftItemTypes2["PointedDripstone"]="minecraft:pointed_dripstone";MinecraftItemTypes2["PoisonousPotato"]="minecraft:poisonous_potato";MinecraftItemTypes2["PolarBearSpawnEgg"]="minecraft:polar_bear_spawn_egg";MinecraftItemTypes2["PolishedAndesiteStairs"]="minecraft:polished_andesite_stairs";MinecraftItemTypes2["PolishedBasalt"]="minecraft:polished_basalt";MinecraftItemTypes2["PolishedBlackstone"]="minecraft:polished_blackstone";MinecraftItemTypes2["PolishedBlackstoneBrickSlab"]="minecraft:polished_blackstone_brick_slab";MinecraftItemTypes2["PolishedBlackstoneBrickStairs"]="minecraft:polished_blackstone_brick_stairs";MinecraftItemTypes2["PolishedBlackstoneBrickWall"]="minecraft:polished_blackstone_brick_wall";MinecraftItemTypes2["PolishedBlackstoneBricks"]="minecraft:polished_blackstone_bricks";MinecraftItemTypes2["PolishedBlackstoneButton"]="minecraft:polished_blackstone_button";MinecraftItemTypes2["PolishedBlackstonePressurePlate"]="minecraft:polished_blackstone_pressure_plate";MinecraftItemTypes2["PolishedBlackstoneSlab"]="minecraft:polished_blackstone_slab";MinecraftItemTypes2["PolishedBlackstoneStairs"]="minecraft:polished_blackstone_stairs";MinecraftItemTypes2["PolishedBlackstoneWall"]="minecraft:polished_blackstone_wall";MinecraftItemTypes2["PolishedDeepslate"]="minecraft:polished_deepslate";MinecraftItemTypes2["PolishedDeepslateSlab"]="minecraft:polished_deepslate_slab";MinecraftItemTypes2["PolishedDeepslateStairs"]="minecraft:polished_deepslate_stairs";MinecraftItemTypes2["PolishedDeepslateWall"]="minecraft:polished_deepslate_wall";MinecraftItemTypes2["PolishedDioriteStairs"]="minecraft:polished_diorite_stairs";MinecraftItemTypes2["PolishedGraniteStairs"]="minecraft:polished_granite_stairs";MinecraftItemTypes2["PoppedChorusFruit"]="minecraft:popped_chorus_fruit";MinecraftItemTypes2["Porkchop"]="minecraft:porkchop";MinecraftItemTypes2["Potato"]="minecraft:potato";MinecraftItemTypes2["Potion"]="minecraft:potion";MinecraftItemTypes2["PowderSnowBucket"]="minecraft:powder_snow_bucket";MinecraftItemTypes2["Prismarine"]="minecraft:prismarine";MinecraftItemTypes2["PrismarineBricksStairs"]="minecraft:prismarine_bricks_stairs";MinecraftItemTypes2["PrismarineCrystals"]="minecraft:prismarine_crystals";MinecraftItemTypes2["PrismarineShard"]="minecraft:prismarine_shard";MinecraftItemTypes2["PrismarineStairs"]="minecraft:prismarine_stairs";MinecraftItemTypes2["PrizePotterySherd"]="minecraft:prize_pottery_sherd";MinecraftItemTypes2["Pufferfish"]="minecraft:pufferfish";MinecraftItemTypes2["PufferfishBucket"]="minecraft:pufferfish_bucket";MinecraftItemTypes2["PufferfishSpawnEgg"]="minecraft:pufferfish_spawn_egg";MinecraftItemTypes2["Pumpkin"]="minecraft:pumpkin";MinecraftItemTypes2["PumpkinPie"]="minecraft:pumpkin_pie";MinecraftItemTypes2["PumpkinSeeds"]="minecraft:pumpkin_seeds";MinecraftItemTypes2["PurpleCandle"]="minecraft:purple_candle";MinecraftItemTypes2["PurpleCarpet"]="minecraft:purple_carpet";MinecraftItemTypes2["PurpleConcrete"]="minecraft:purple_concrete";MinecraftItemTypes2["PurpleConcretePowder"]="minecraft:purple_concrete_powder";MinecraftItemTypes2["PurpleDye"]="minecraft:purple_dye";MinecraftItemTypes2["PurpleGlazedTerracotta"]="minecraft:purple_glazed_terracotta";MinecraftItemTypes2["PurpleShulkerBox"]="minecraft:purple_shulker_box";MinecraftItemTypes2["PurpleStainedGlass"]="minecraft:purple_stained_glass";MinecraftItemTypes2["PurpleStainedGlassPane"]="minecraft:purple_stained_glass_pane";MinecraftItemTypes2["PurpleTerracotta"]="minecraft:purple_terracotta";MinecraftItemTypes2["PurpleWool"]="minecraft:purple_wool";MinecraftItemTypes2["PurpurBlock"]="minecraft:purpur_block";MinecraftItemTypes2["PurpurStairs"]="minecraft:purpur_stairs";MinecraftItemTypes2["Quartz"]="minecraft:quartz";MinecraftItemTypes2["QuartzBlock"]="minecraft:quartz_block";MinecraftItemTypes2["QuartzBricks"]="minecraft:quartz_bricks";MinecraftItemTypes2["QuartzOre"]="minecraft:quartz_ore";MinecraftItemTypes2["QuartzStairs"]="minecraft:quartz_stairs";MinecraftItemTypes2["Rabbit"]="minecraft:rabbit";MinecraftItemTypes2["RabbitFoot"]="minecraft:rabbit_foot";MinecraftItemTypes2["RabbitHide"]="minecraft:rabbit_hide";MinecraftItemTypes2["RabbitSpawnEgg"]="minecraft:rabbit_spawn_egg";MinecraftItemTypes2["RabbitStew"]="minecraft:rabbit_stew";MinecraftItemTypes2["Rail"]="minecraft:rail";MinecraftItemTypes2["RaiserArmorTrimSmithingTemplate"]="minecraft:raiser_armor_trim_smithing_template";MinecraftItemTypes2["RavagerSpawnEgg"]="minecraft:ravager_spawn_egg";MinecraftItemTypes2["RawCopper"]="minecraft:raw_copper";MinecraftItemTypes2["RawCopperBlock"]="minecraft:raw_copper_block";MinecraftItemTypes2["RawGold"]="minecraft:raw_gold";MinecraftItemTypes2["RawGoldBlock"]="minecraft:raw_gold_block";MinecraftItemTypes2["RawIron"]="minecraft:raw_iron";MinecraftItemTypes2["RawIronBlock"]="minecraft:raw_iron_block";MinecraftItemTypes2["RecoveryCompass"]="minecraft:recovery_compass";MinecraftItemTypes2["RedCandle"]="minecraft:red_candle";MinecraftItemTypes2["RedCarpet"]="minecraft:red_carpet";MinecraftItemTypes2["RedConcrete"]="minecraft:red_concrete";MinecraftItemTypes2["RedConcretePowder"]="minecraft:red_concrete_powder";MinecraftItemTypes2["RedDye"]="minecraft:red_dye";MinecraftItemTypes2["RedFlower"]="minecraft:red_flower";MinecraftItemTypes2["RedGlazedTerracotta"]="minecraft:red_glazed_terracotta";MinecraftItemTypes2["RedMushroom"]="minecraft:red_mushroom";MinecraftItemTypes2["RedMushroomBlock"]="minecraft:red_mushroom_block";MinecraftItemTypes2["RedNetherBrick"]="minecraft:red_nether_brick";MinecraftItemTypes2["RedNetherBrickStairs"]="minecraft:red_nether_brick_stairs";MinecraftItemTypes2["RedSandstone"]="minecraft:red_sandstone";MinecraftItemTypes2["RedSandstoneStairs"]="minecraft:red_sandstone_stairs";MinecraftItemTypes2["RedShulkerBox"]="minecraft:red_shulker_box";MinecraftItemTypes2["RedStainedGlass"]="minecraft:red_stained_glass";MinecraftItemTypes2["RedStainedGlassPane"]="minecraft:red_stained_glass_pane";MinecraftItemTypes2["RedTerracotta"]="minecraft:red_terracotta";MinecraftItemTypes2["RedWool"]="minecraft:red_wool";MinecraftItemTypes2["Redstone"]="minecraft:redstone";MinecraftItemTypes2["RedstoneBlock"]="minecraft:redstone_block";MinecraftItemTypes2["RedstoneLamp"]="minecraft:redstone_lamp";MinecraftItemTypes2["RedstoneOre"]="minecraft:redstone_ore";MinecraftItemTypes2["RedstoneTorch"]="minecraft:redstone_torch";MinecraftItemTypes2["ReinforcedDeepslate"]="minecraft:reinforced_deepslate";MinecraftItemTypes2["Repeater"]="minecraft:repeater";MinecraftItemTypes2["RepeatingCommandBlock"]="minecraft:repeating_command_block";MinecraftItemTypes2["RespawnAnchor"]="minecraft:respawn_anchor";MinecraftItemTypes2["RibArmorTrimSmithingTemplate"]="minecraft:rib_armor_trim_smithing_template";MinecraftItemTypes2["RottenFlesh"]="minecraft:rotten_flesh";MinecraftItemTypes2["Saddle"]="minecraft:saddle";MinecraftItemTypes2["Salmon"]="minecraft:salmon";MinecraftItemTypes2["SalmonBucket"]="minecraft:salmon_bucket";MinecraftItemTypes2["SalmonSpawnEgg"]="minecraft:salmon_spawn_egg";MinecraftItemTypes2["Sand"]="minecraft:sand";MinecraftItemTypes2["Sandstone"]="minecraft:sandstone";MinecraftItemTypes2["SandstoneStairs"]="minecraft:sandstone_stairs";MinecraftItemTypes2["Sapling"]="minecraft:sapling";MinecraftItemTypes2["Scaffolding"]="minecraft:scaffolding";MinecraftItemTypes2["Sculk"]="minecraft:sculk";MinecraftItemTypes2["SculkCatalyst"]="minecraft:sculk_catalyst";MinecraftItemTypes2["SculkSensor"]="minecraft:sculk_sensor";MinecraftItemTypes2["SculkShrieker"]="minecraft:sculk_shrieker";MinecraftItemTypes2["SculkVein"]="minecraft:sculk_vein";MinecraftItemTypes2["Scute"]="minecraft:scute";MinecraftItemTypes2["SeaLantern"]="minecraft:sea_lantern";MinecraftItemTypes2["SeaPickle"]="minecraft:sea_pickle";MinecraftItemTypes2["Seagrass"]="minecraft:seagrass";MinecraftItemTypes2["SentryArmorTrimSmithingTemplate"]="minecraft:sentry_armor_trim_smithing_template";MinecraftItemTypes2["ShaperArmorTrimSmithingTemplate"]="minecraft:shaper_armor_trim_smithing_template";MinecraftItemTypes2["SheafPotterySherd"]="minecraft:sheaf_pottery_sherd";MinecraftItemTypes2["Shears"]="minecraft:shears";MinecraftItemTypes2["SheepSpawnEgg"]="minecraft:sheep_spawn_egg";MinecraftItemTypes2["ShelterPotterySherd"]="minecraft:shelter_pottery_sherd";MinecraftItemTypes2["Shield"]="minecraft:shield";MinecraftItemTypes2["Shroomlight"]="minecraft:shroomlight";MinecraftItemTypes2["ShulkerBox"]="minecraft:shulker_box";MinecraftItemTypes2["ShulkerShell"]="minecraft:shulker_shell";MinecraftItemTypes2["ShulkerSpawnEgg"]="minecraft:shulker_spawn_egg";MinecraftItemTypes2["SilenceArmorTrimSmithingTemplate"]="minecraft:silence_armor_trim_smithing_template";MinecraftItemTypes2["SilverGlazedTerracotta"]="minecraft:silver_glazed_terracotta";MinecraftItemTypes2["SilverfishSpawnEgg"]="minecraft:silverfish_spawn_egg";MinecraftItemTypes2["SkeletonHorseSpawnEgg"]="minecraft:skeleton_horse_spawn_egg";MinecraftItemTypes2["SkeletonSpawnEgg"]="minecraft:skeleton_spawn_egg";MinecraftItemTypes2["Skull"]="minecraft:skull";MinecraftItemTypes2["SkullBannerPattern"]="minecraft:skull_banner_pattern";MinecraftItemTypes2["SkullPotterySherd"]="minecraft:skull_pottery_sherd";MinecraftItemTypes2["Slime"]="minecraft:slime";MinecraftItemTypes2["SlimeBall"]="minecraft:slime_ball";MinecraftItemTypes2["SlimeSpawnEgg"]="minecraft:slime_spawn_egg";MinecraftItemTypes2["SmallAmethystBud"]="minecraft:small_amethyst_bud";MinecraftItemTypes2["SmallDripleafBlock"]="minecraft:small_dripleaf_block";MinecraftItemTypes2["SmithingTable"]="minecraft:smithing_table";MinecraftItemTypes2["Smoker"]="minecraft:smoker";MinecraftItemTypes2["SmoothBasalt"]="minecraft:smooth_basalt";MinecraftItemTypes2["SmoothQuartzStairs"]="minecraft:smooth_quartz_stairs";MinecraftItemTypes2["SmoothRedSandstoneStairs"]="minecraft:smooth_red_sandstone_stairs";MinecraftItemTypes2["SmoothSandstoneStairs"]="minecraft:smooth_sandstone_stairs";MinecraftItemTypes2["SmoothStone"]="minecraft:smooth_stone";MinecraftItemTypes2["SnifferEgg"]="minecraft:sniffer_egg";MinecraftItemTypes2["SnifferSpawnEgg"]="minecraft:sniffer_spawn_egg";MinecraftItemTypes2["SnortPotterySherd"]="minecraft:snort_pottery_sherd";MinecraftItemTypes2["SnoutArmorTrimSmithingTemplate"]="minecraft:snout_armor_trim_smithing_template";MinecraftItemTypes2["Snow"]="minecraft:snow";MinecraftItemTypes2["SnowGolemSpawnEgg"]="minecraft:snow_golem_spawn_egg";MinecraftItemTypes2["SnowLayer"]="minecraft:snow_layer";MinecraftItemTypes2["Snowball"]="minecraft:snowball";MinecraftItemTypes2["SoulCampfire"]="minecraft:soul_campfire";MinecraftItemTypes2["SoulLantern"]="minecraft:soul_lantern";MinecraftItemTypes2["SoulSand"]="minecraft:soul_sand";MinecraftItemTypes2["SoulSoil"]="minecraft:soul_soil";MinecraftItemTypes2["SoulTorch"]="minecraft:soul_torch";MinecraftItemTypes2["SpawnEgg"]="minecraft:spawn_egg";MinecraftItemTypes2["SpiderEye"]="minecraft:spider_eye";MinecraftItemTypes2["SpiderSpawnEgg"]="minecraft:spider_spawn_egg";MinecraftItemTypes2["SpireArmorTrimSmithingTemplate"]="minecraft:spire_armor_trim_smithing_template";MinecraftItemTypes2["SplashPotion"]="minecraft:splash_potion";MinecraftItemTypes2["Sponge"]="minecraft:sponge";MinecraftItemTypes2["SporeBlossom"]="minecraft:spore_blossom";MinecraftItemTypes2["SpruceBoat"]="minecraft:spruce_boat";MinecraftItemTypes2["SpruceButton"]="minecraft:spruce_button";MinecraftItemTypes2["SpruceChestBoat"]="minecraft:spruce_chest_boat";MinecraftItemTypes2["SpruceDoor"]="minecraft:spruce_door";MinecraftItemTypes2["SpruceFence"]="minecraft:spruce_fence";MinecraftItemTypes2["SpruceFenceGate"]="minecraft:spruce_fence_gate";MinecraftItemTypes2["SpruceHangingSign"]="minecraft:spruce_hanging_sign";MinecraftItemTypes2["SpruceLog"]="minecraft:spruce_log";MinecraftItemTypes2["SprucePressurePlate"]="minecraft:spruce_pressure_plate";MinecraftItemTypes2["SpruceSign"]="minecraft:spruce_sign";MinecraftItemTypes2["SpruceStairs"]="minecraft:spruce_stairs";MinecraftItemTypes2["SpruceTrapdoor"]="minecraft:spruce_trapdoor";MinecraftItemTypes2["Spyglass"]="minecraft:spyglass";MinecraftItemTypes2["SquidSpawnEgg"]="minecraft:squid_spawn_egg";MinecraftItemTypes2["StainedGlass"]="minecraft:stained_glass";MinecraftItemTypes2["StainedGlassPane"]="minecraft:stained_glass_pane";MinecraftItemTypes2["StainedHardenedClay"]="minecraft:stained_hardened_clay";MinecraftItemTypes2["Stick"]="minecraft:stick";MinecraftItemTypes2["StickyPiston"]="minecraft:sticky_piston";MinecraftItemTypes2["Stone"]="minecraft:stone";MinecraftItemTypes2["StoneAxe"]="minecraft:stone_axe";MinecraftItemTypes2["StoneBlockSlab"]="minecraft:stone_block_slab";MinecraftItemTypes2["StoneBlockSlab2"]="minecraft:stone_block_slab2";MinecraftItemTypes2["StoneBlockSlab3"]="minecraft:stone_block_slab3";MinecraftItemTypes2["StoneBlockSlab4"]="minecraft:stone_block_slab4";MinecraftItemTypes2["StoneBrickStairs"]="minecraft:stone_brick_stairs";MinecraftItemTypes2["StoneButton"]="minecraft:stone_button";MinecraftItemTypes2["StoneHoe"]="minecraft:stone_hoe";MinecraftItemTypes2["StonePickaxe"]="minecraft:stone_pickaxe";MinecraftItemTypes2["StonePressurePlate"]="minecraft:stone_pressure_plate";MinecraftItemTypes2["StoneShovel"]="minecraft:stone_shovel";MinecraftItemTypes2["StoneStairs"]="minecraft:stone_stairs";MinecraftItemTypes2["StoneSword"]="minecraft:stone_sword";MinecraftItemTypes2["Stonebrick"]="minecraft:stonebrick";MinecraftItemTypes2["StonecutterBlock"]="minecraft:stonecutter_block";MinecraftItemTypes2["StraySpawnEgg"]="minecraft:stray_spawn_egg";MinecraftItemTypes2["StriderSpawnEgg"]="minecraft:strider_spawn_egg";MinecraftItemTypes2["String"]="minecraft:string";MinecraftItemTypes2["StrippedAcaciaLog"]="minecraft:stripped_acacia_log";MinecraftItemTypes2["StrippedBambooBlock"]="minecraft:stripped_bamboo_block";MinecraftItemTypes2["StrippedBirchLog"]="minecraft:stripped_birch_log";MinecraftItemTypes2["StrippedCherryLog"]="minecraft:stripped_cherry_log";MinecraftItemTypes2["StrippedCherryWood"]="minecraft:stripped_cherry_wood";MinecraftItemTypes2["StrippedCrimsonHyphae"]="minecraft:stripped_crimson_hyphae";MinecraftItemTypes2["StrippedCrimsonStem"]="minecraft:stripped_crimson_stem";MinecraftItemTypes2["StrippedDarkOakLog"]="minecraft:stripped_dark_oak_log";MinecraftItemTypes2["StrippedJungleLog"]="minecraft:stripped_jungle_log";MinecraftItemTypes2["StrippedMangroveLog"]="minecraft:stripped_mangrove_log";MinecraftItemTypes2["StrippedMangroveWood"]="minecraft:stripped_mangrove_wood";MinecraftItemTypes2["StrippedOakLog"]="minecraft:stripped_oak_log";MinecraftItemTypes2["StrippedSpruceLog"]="minecraft:stripped_spruce_log";MinecraftItemTypes2["StrippedWarpedHyphae"]="minecraft:stripped_warped_hyphae";MinecraftItemTypes2["StrippedWarpedStem"]="minecraft:stripped_warped_stem";MinecraftItemTypes2["StructureBlock"]="minecraft:structure_block";MinecraftItemTypes2["StructureVoid"]="minecraft:structure_void";MinecraftItemTypes2["Sugar"]="minecraft:sugar";MinecraftItemTypes2["SugarCane"]="minecraft:sugar_cane";MinecraftItemTypes2["SuspiciousGravel"]="minecraft:suspicious_gravel";MinecraftItemTypes2["SuspiciousSand"]="minecraft:suspicious_sand";MinecraftItemTypes2["SuspiciousStew"]="minecraft:suspicious_stew";MinecraftItemTypes2["SweetBerries"]="minecraft:sweet_berries";MinecraftItemTypes2["TadpoleBucket"]="minecraft:tadpole_bucket";MinecraftItemTypes2["TadpoleSpawnEgg"]="minecraft:tadpole_spawn_egg";MinecraftItemTypes2["Tallgrass"]="minecraft:tallgrass";MinecraftItemTypes2["Target"]="minecraft:target";MinecraftItemTypes2["TideArmorTrimSmithingTemplate"]="minecraft:tide_armor_trim_smithing_template";MinecraftItemTypes2["TintedGlass"]="minecraft:tinted_glass";MinecraftItemTypes2["Tnt"]="minecraft:tnt";MinecraftItemTypes2["TntMinecart"]="minecraft:tnt_minecart";MinecraftItemTypes2["Torch"]="minecraft:torch";MinecraftItemTypes2["Torchflower"]="minecraft:torchflower";MinecraftItemTypes2["TorchflowerSeeds"]="minecraft:torchflower_seeds";MinecraftItemTypes2["TotemOfUndying"]="minecraft:totem_of_undying";MinecraftItemTypes2["TraderLlamaSpawnEgg"]="minecraft:trader_llama_spawn_egg";MinecraftItemTypes2["Trapdoor"]="minecraft:trapdoor";MinecraftItemTypes2["TrappedChest"]="minecraft:trapped_chest";MinecraftItemTypes2["Trident"]="minecraft:trident";MinecraftItemTypes2["TripwireHook"]="minecraft:tripwire_hook";MinecraftItemTypes2["TropicalFish"]="minecraft:tropical_fish";MinecraftItemTypes2["TropicalFishBucket"]="minecraft:tropical_fish_bucket";MinecraftItemTypes2["TropicalFishSpawnEgg"]="minecraft:tropical_fish_spawn_egg";MinecraftItemTypes2["TubeCoral"]="minecraft:tube_coral";MinecraftItemTypes2["Tuff"]="minecraft:tuff";MinecraftItemTypes2["TurtleEgg"]="minecraft:turtle_egg";MinecraftItemTypes2["TurtleHelmet"]="minecraft:turtle_helmet";MinecraftItemTypes2["TurtleSpawnEgg"]="minecraft:turtle_spawn_egg";MinecraftItemTypes2["TwistingVines"]="minecraft:twisting_vines";MinecraftItemTypes2["UndyedShulkerBox"]="minecraft:undyed_shulker_box";MinecraftItemTypes2["VerdantFroglight"]="minecraft:verdant_froglight";MinecraftItemTypes2["VexArmorTrimSmithingTemplate"]="minecraft:vex_armor_trim_smithing_template";MinecraftItemTypes2["VexSpawnEgg"]="minecraft:vex_spawn_egg";MinecraftItemTypes2["VillagerSpawnEgg"]="minecraft:villager_spawn_egg";MinecraftItemTypes2["VindicatorSpawnEgg"]="minecraft:vindicator_spawn_egg";MinecraftItemTypes2["Vine"]="minecraft:vine";MinecraftItemTypes2["WanderingTraderSpawnEgg"]="minecraft:wandering_trader_spawn_egg";MinecraftItemTypes2["WardArmorTrimSmithingTemplate"]="minecraft:ward_armor_trim_smithing_template";MinecraftItemTypes2["WardenSpawnEgg"]="minecraft:warden_spawn_egg";MinecraftItemTypes2["WarpedButton"]="minecraft:warped_button";MinecraftItemTypes2["WarpedDoor"]="minecraft:warped_door";MinecraftItemTypes2["WarpedFence"]="minecraft:warped_fence";MinecraftItemTypes2["WarpedFenceGate"]="minecraft:warped_fence_gate";MinecraftItemTypes2["WarpedFungus"]="minecraft:warped_fungus";MinecraftItemTypes2["WarpedFungusOnAStick"]="minecraft:warped_fungus_on_a_stick";MinecraftItemTypes2["WarpedHangingSign"]="minecraft:warped_hanging_sign";MinecraftItemTypes2["WarpedHyphae"]="minecraft:warped_hyphae";MinecraftItemTypes2["WarpedNylium"]="minecraft:warped_nylium";MinecraftItemTypes2["WarpedPlanks"]="minecraft:warped_planks";MinecraftItemTypes2["WarpedPressurePlate"]="minecraft:warped_pressure_plate";MinecraftItemTypes2["WarpedRoots"]="minecraft:warped_roots";MinecraftItemTypes2["WarpedSign"]="minecraft:warped_sign";MinecraftItemTypes2["WarpedSlab"]="minecraft:warped_slab";MinecraftItemTypes2["WarpedStairs"]="minecraft:warped_stairs";MinecraftItemTypes2["WarpedStem"]="minecraft:warped_stem";MinecraftItemTypes2["WarpedTrapdoor"]="minecraft:warped_trapdoor";MinecraftItemTypes2["WarpedWartBlock"]="minecraft:warped_wart_block";MinecraftItemTypes2["WaterBucket"]="minecraft:water_bucket";MinecraftItemTypes2["Waterlily"]="minecraft:waterlily";MinecraftItemTypes2["WaxedCopper"]="minecraft:waxed_copper";MinecraftItemTypes2["WaxedCutCopper"]="minecraft:waxed_cut_copper";MinecraftItemTypes2["WaxedCutCopperSlab"]="minecraft:waxed_cut_copper_slab";MinecraftItemTypes2["WaxedCutCopperStairs"]="minecraft:waxed_cut_copper_stairs";MinecraftItemTypes2["WaxedExposedCopper"]="minecraft:waxed_exposed_copper";MinecraftItemTypes2["WaxedExposedCutCopper"]="minecraft:waxed_exposed_cut_copper";MinecraftItemTypes2["WaxedExposedCutCopperSlab"]="minecraft:waxed_exposed_cut_copper_slab";MinecraftItemTypes2["WaxedExposedCutCopperStairs"]="minecraft:waxed_exposed_cut_copper_stairs";MinecraftItemTypes2["WaxedOxidizedCopper"]="minecraft:waxed_oxidized_copper";MinecraftItemTypes2["WaxedOxidizedCutCopper"]="minecraft:waxed_oxidized_cut_copper";MinecraftItemTypes2["WaxedOxidizedCutCopperSlab"]="minecraft:waxed_oxidized_cut_copper_slab";MinecraftItemTypes2["WaxedOxidizedCutCopperStairs"]="minecraft:waxed_oxidized_cut_copper_stairs";MinecraftItemTypes2["WaxedWeatheredCopper"]="minecraft:waxed_weathered_copper";MinecraftItemTypes2["WaxedWeatheredCutCopper"]="minecraft:waxed_weathered_cut_copper";MinecraftItemTypes2["WaxedWeatheredCutCopperSlab"]="minecraft:waxed_weathered_cut_copper_slab";MinecraftItemTypes2["WaxedWeatheredCutCopperStairs"]="minecraft:waxed_weathered_cut_copper_stairs";MinecraftItemTypes2["WayfinderArmorTrimSmithingTemplate"]="minecraft:wayfinder_armor_trim_smithing_template";MinecraftItemTypes2["WeatheredCopper"]="minecraft:weathered_copper";MinecraftItemTypes2["WeatheredCutCopper"]="minecraft:weathered_cut_copper";MinecraftItemTypes2["WeatheredCutCopperSlab"]="minecraft:weathered_cut_copper_slab";MinecraftItemTypes2["WeatheredCutCopperStairs"]="minecraft:weathered_cut_copper_stairs";MinecraftItemTypes2["Web"]="minecraft:web";MinecraftItemTypes2["WeepingVines"]="minecraft:weeping_vines";MinecraftItemTypes2["Wheat"]="minecraft:wheat";MinecraftItemTypes2["WheatSeeds"]="minecraft:wheat_seeds";MinecraftItemTypes2["WhiteCandle"]="minecraft:white_candle";MinecraftItemTypes2["WhiteCarpet"]="minecraft:white_carpet";MinecraftItemTypes2["WhiteConcrete"]="minecraft:white_concrete";MinecraftItemTypes2["WhiteConcretePowder"]="minecraft:white_concrete_powder";MinecraftItemTypes2["WhiteDye"]="minecraft:white_dye";MinecraftItemTypes2["WhiteGlazedTerracotta"]="minecraft:white_glazed_terracotta";MinecraftItemTypes2["WhiteShulkerBox"]="minecraft:white_shulker_box";MinecraftItemTypes2["WhiteStainedGlass"]="minecraft:white_stained_glass";MinecraftItemTypes2["WhiteStainedGlassPane"]="minecraft:white_stained_glass_pane";MinecraftItemTypes2["WhiteTerracotta"]="minecraft:white_terracotta";MinecraftItemTypes2["WhiteWool"]="minecraft:white_wool";MinecraftItemTypes2["WildArmorTrimSmithingTemplate"]="minecraft:wild_armor_trim_smithing_template";MinecraftItemTypes2["WitchSpawnEgg"]="minecraft:witch_spawn_egg";MinecraftItemTypes2["WitherRose"]="minecraft:wither_rose";MinecraftItemTypes2["WitherSkeletonSpawnEgg"]="minecraft:wither_skeleton_spawn_egg";MinecraftItemTypes2["WitherSpawnEgg"]="minecraft:wither_spawn_egg";MinecraftItemTypes2["WolfSpawnEgg"]="minecraft:wolf_spawn_egg";MinecraftItemTypes2["Wood"]="minecraft:wood";MinecraftItemTypes2["WoodenAxe"]="minecraft:wooden_axe";MinecraftItemTypes2["WoodenButton"]="minecraft:wooden_button";MinecraftItemTypes2["WoodenDoor"]="minecraft:wooden_door";MinecraftItemTypes2["WoodenHoe"]="minecraft:wooden_hoe";MinecraftItemTypes2["WoodenPickaxe"]="minecraft:wooden_pickaxe";MinecraftItemTypes2["WoodenPressurePlate"]="minecraft:wooden_pressure_plate";MinecraftItemTypes2["WoodenShovel"]="minecraft:wooden_shovel";MinecraftItemTypes2["WoodenSlab"]="minecraft:wooden_slab";MinecraftItemTypes2["WoodenSword"]="minecraft:wooden_sword";MinecraftItemTypes2["Wool"]="minecraft:wool";MinecraftItemTypes2["WritableBook"]="minecraft:writable_book";MinecraftItemTypes2["YellowCandle"]="minecraft:yellow_candle";MinecraftItemTypes2["YellowCarpet"]="minecraft:yellow_carpet";MinecraftItemTypes2["YellowConcrete"]="minecraft:yellow_concrete";MinecraftItemTypes2["YellowConcretePowder"]="minecraft:yellow_concrete_powder";MinecraftItemTypes2["YellowDye"]="minecraft:yellow_dye";MinecraftItemTypes2["YellowFlower"]="minecraft:yellow_flower";MinecraftItemTypes2["YellowGlazedTerracotta"]="minecraft:yellow_glazed_terracotta";MinecraftItemTypes2["YellowShulkerBox"]="minecraft:yellow_shulker_box";MinecraftItemTypes2["YellowStainedGlass"]="minecraft:yellow_stained_glass";MinecraftItemTypes2["YellowStainedGlassPane"]="minecraft:yellow_stained_glass_pane";MinecraftItemTypes2["YellowTerracotta"]="minecraft:yellow_terracotta";MinecraftItemTypes2["YellowWool"]="minecraft:yellow_wool";MinecraftItemTypes2["ZoglinSpawnEgg"]="minecraft:zoglin_spawn_egg";MinecraftItemTypes2["ZombieHorseSpawnEgg"]="minecraft:zombie_horse_spawn_egg";MinecraftItemTypes2["ZombiePigmanSpawnEgg"]="minecraft:zombie_pigman_spawn_egg";MinecraftItemTypes2["ZombieSpawnEgg"]="minecraft:zombie_spawn_egg";MinecraftItemTypes2["ZombieVillagerSpawnEgg"]="minecraft:zombie_villager_spawn_egg";return MinecraftItemTypes2})(MinecraftItemTypes||{});export{MinecraftBlockTypes,MinecraftCameraPresetsTypes,MinecraftDimensionTypes,MinecraftEffectTypes,MinecraftEnchantmentTypes,MinecraftEntityTypes,MinecraftItemTypes}; diff --git a/src/node_modules/@minecraft/vanilla-data/lib/mojang-block.d.ts b/src/node_modules/@minecraft/vanilla-data/lib/mojang-block.d.ts index dd12cbf..8cb06be 100644 --- a/src/node_modules/@minecraft/vanilla-data/lib/mojang-block.d.ts +++ b/src/node_modules/@minecraft/vanilla-data/lib/mojang-block.d.ts @@ -70,8 +70,12 @@ export declare enum MinecraftBlockTypes { BlackCandleCake = "minecraft:black_candle_cake", BlackCarpet = "minecraft:black_carpet", BlackConcrete = "minecraft:black_concrete", + BlackConcretePowder = "minecraft:black_concrete_powder", BlackGlazedTerracotta = "minecraft:black_glazed_terracotta", BlackShulkerBox = "minecraft:black_shulker_box", + BlackStainedGlass = "minecraft:black_stained_glass", + BlackStainedGlassPane = "minecraft:black_stained_glass_pane", + BlackTerracotta = "minecraft:black_terracotta", BlackWool = "minecraft:black_wool", Blackstone = "minecraft:blackstone", BlackstoneDoubleSlab = "minecraft:blackstone_double_slab", @@ -83,9 +87,13 @@ export declare enum MinecraftBlockTypes { BlueCandleCake = "minecraft:blue_candle_cake", BlueCarpet = "minecraft:blue_carpet", BlueConcrete = "minecraft:blue_concrete", + BlueConcretePowder = "minecraft:blue_concrete_powder", BlueGlazedTerracotta = "minecraft:blue_glazed_terracotta", BlueIce = "minecraft:blue_ice", BlueShulkerBox = "minecraft:blue_shulker_box", + BlueStainedGlass = "minecraft:blue_stained_glass", + BlueStainedGlassPane = "minecraft:blue_stained_glass_pane", + BlueTerracotta = "minecraft:blue_terracotta", BlueWool = "minecraft:blue_wool", BoneBlock = "minecraft:bone_block", Bookshelf = "minecraft:bookshelf", @@ -98,10 +106,14 @@ export declare enum MinecraftBlockTypes { BrownCandleCake = "minecraft:brown_candle_cake", BrownCarpet = "minecraft:brown_carpet", BrownConcrete = "minecraft:brown_concrete", + BrownConcretePowder = "minecraft:brown_concrete_powder", BrownGlazedTerracotta = "minecraft:brown_glazed_terracotta", BrownMushroom = "minecraft:brown_mushroom", BrownMushroomBlock = "minecraft:brown_mushroom_block", BrownShulkerBox = "minecraft:brown_shulker_box", + BrownStainedGlass = "minecraft:brown_stained_glass", + BrownStainedGlassPane = "minecraft:brown_stained_glass_pane", + BrownTerracotta = "minecraft:brown_terracotta", BrownWool = "minecraft:brown_wool", BubbleColumn = "minecraft:bubble_column", BubbleCoral = "minecraft:bubble_coral", @@ -165,7 +177,6 @@ export declare enum MinecraftBlockTypes { ColoredTorchRg = "minecraft:colored_torch_rg", CommandBlock = "minecraft:command_block", Composter = "minecraft:composter", - ConcretePowder = "minecraft:concrete_powder", Conduit = "minecraft:conduit", CopperBlock = "minecraft:copper_block", CopperOre = "minecraft:copper_ore", @@ -206,8 +217,12 @@ export declare enum MinecraftBlockTypes { CyanCandleCake = "minecraft:cyan_candle_cake", CyanCarpet = "minecraft:cyan_carpet", CyanConcrete = "minecraft:cyan_concrete", + CyanConcretePowder = "minecraft:cyan_concrete_powder", CyanGlazedTerracotta = "minecraft:cyan_glazed_terracotta", CyanShulkerBox = "minecraft:cyan_shulker_box", + CyanStainedGlass = "minecraft:cyan_stained_glass", + CyanStainedGlassPane = "minecraft:cyan_stained_glass_pane", + CyanTerracotta = "minecraft:cyan_terracotta", CyanWool = "minecraft:cyan_wool", DarkOakButton = "minecraft:dark_oak_button", DarkOakDoor = "minecraft:dark_oak_door", @@ -434,15 +449,23 @@ export declare enum MinecraftBlockTypes { GrayCandleCake = "minecraft:gray_candle_cake", GrayCarpet = "minecraft:gray_carpet", GrayConcrete = "minecraft:gray_concrete", + GrayConcretePowder = "minecraft:gray_concrete_powder", GrayGlazedTerracotta = "minecraft:gray_glazed_terracotta", GrayShulkerBox = "minecraft:gray_shulker_box", + GrayStainedGlass = "minecraft:gray_stained_glass", + GrayStainedGlassPane = "minecraft:gray_stained_glass_pane", + GrayTerracotta = "minecraft:gray_terracotta", GrayWool = "minecraft:gray_wool", GreenCandle = "minecraft:green_candle", GreenCandleCake = "minecraft:green_candle_cake", GreenCarpet = "minecraft:green_carpet", GreenConcrete = "minecraft:green_concrete", + GreenConcretePowder = "minecraft:green_concrete_powder", GreenGlazedTerracotta = "minecraft:green_glazed_terracotta", GreenShulkerBox = "minecraft:green_shulker_box", + GreenStainedGlass = "minecraft:green_stained_glass", + GreenStainedGlassPane = "minecraft:green_stained_glass_pane", + GreenTerracotta = "minecraft:green_terracotta", GreenWool = "minecraft:green_wool", Grindstone = "minecraft:grindstone", HangingRoots = "minecraft:hanging_roots", @@ -496,14 +519,22 @@ export declare enum MinecraftBlockTypes { LightBlueCandleCake = "minecraft:light_blue_candle_cake", LightBlueCarpet = "minecraft:light_blue_carpet", LightBlueConcrete = "minecraft:light_blue_concrete", + LightBlueConcretePowder = "minecraft:light_blue_concrete_powder", LightBlueGlazedTerracotta = "minecraft:light_blue_glazed_terracotta", LightBlueShulkerBox = "minecraft:light_blue_shulker_box", + LightBlueStainedGlass = "minecraft:light_blue_stained_glass", + LightBlueStainedGlassPane = "minecraft:light_blue_stained_glass_pane", + LightBlueTerracotta = "minecraft:light_blue_terracotta", LightBlueWool = "minecraft:light_blue_wool", LightGrayCandle = "minecraft:light_gray_candle", LightGrayCandleCake = "minecraft:light_gray_candle_cake", LightGrayCarpet = "minecraft:light_gray_carpet", LightGrayConcrete = "minecraft:light_gray_concrete", + LightGrayConcretePowder = "minecraft:light_gray_concrete_powder", LightGrayShulkerBox = "minecraft:light_gray_shulker_box", + LightGrayStainedGlass = "minecraft:light_gray_stained_glass", + LightGrayStainedGlassPane = "minecraft:light_gray_stained_glass_pane", + LightGrayTerracotta = "minecraft:light_gray_terracotta", LightGrayWool = "minecraft:light_gray_wool", LightWeightedPressurePlate = "minecraft:light_weighted_pressure_plate", LightningRod = "minecraft:lightning_rod", @@ -511,8 +542,12 @@ export declare enum MinecraftBlockTypes { LimeCandleCake = "minecraft:lime_candle_cake", LimeCarpet = "minecraft:lime_carpet", LimeConcrete = "minecraft:lime_concrete", + LimeConcretePowder = "minecraft:lime_concrete_powder", LimeGlazedTerracotta = "minecraft:lime_glazed_terracotta", LimeShulkerBox = "minecraft:lime_shulker_box", + LimeStainedGlass = "minecraft:lime_stained_glass", + LimeStainedGlassPane = "minecraft:lime_stained_glass_pane", + LimeTerracotta = "minecraft:lime_terracotta", LimeWool = "minecraft:lime_wool", LitBlastFurnace = "minecraft:lit_blast_furnace", LitDeepslateRedstoneOre = "minecraft:lit_deepslate_redstone_ore", @@ -527,8 +562,12 @@ export declare enum MinecraftBlockTypes { MagentaCandleCake = "minecraft:magenta_candle_cake", MagentaCarpet = "minecraft:magenta_carpet", MagentaConcrete = "minecraft:magenta_concrete", + MagentaConcretePowder = "minecraft:magenta_concrete_powder", MagentaGlazedTerracotta = "minecraft:magenta_glazed_terracotta", MagentaShulkerBox = "minecraft:magenta_shulker_box", + MagentaStainedGlass = "minecraft:magenta_stained_glass", + MagentaStainedGlassPane = "minecraft:magenta_stained_glass_pane", + MagentaTerracotta = "minecraft:magenta_terracotta", MagentaWool = "minecraft:magenta_wool", Magma = "minecraft:magma", MangroveButton = "minecraft:mangrove_button", @@ -591,8 +630,12 @@ export declare enum MinecraftBlockTypes { OrangeCandleCake = "minecraft:orange_candle_cake", OrangeCarpet = "minecraft:orange_carpet", OrangeConcrete = "minecraft:orange_concrete", + OrangeConcretePowder = "minecraft:orange_concrete_powder", OrangeGlazedTerracotta = "minecraft:orange_glazed_terracotta", OrangeShulkerBox = "minecraft:orange_shulker_box", + OrangeStainedGlass = "minecraft:orange_stained_glass", + OrangeStainedGlassPane = "minecraft:orange_stained_glass_pane", + OrangeTerracotta = "minecraft:orange_terracotta", OrangeWool = "minecraft:orange_wool", OxidizedCopper = "minecraft:oxidized_copper", OxidizedCutCopper = "minecraft:oxidized_cut_copper", @@ -606,9 +649,13 @@ export declare enum MinecraftBlockTypes { PinkCandleCake = "minecraft:pink_candle_cake", PinkCarpet = "minecraft:pink_carpet", PinkConcrete = "minecraft:pink_concrete", + PinkConcretePowder = "minecraft:pink_concrete_powder", PinkGlazedTerracotta = "minecraft:pink_glazed_terracotta", PinkPetals = "minecraft:pink_petals", PinkShulkerBox = "minecraft:pink_shulker_box", + PinkStainedGlass = "minecraft:pink_stained_glass", + PinkStainedGlassPane = "minecraft:pink_stained_glass_pane", + PinkTerracotta = "minecraft:pink_terracotta", PinkWool = "minecraft:pink_wool", Piston = "minecraft:piston", PistonArmCollision = "minecraft:piston_arm_collision", @@ -652,8 +699,12 @@ export declare enum MinecraftBlockTypes { PurpleCandleCake = "minecraft:purple_candle_cake", PurpleCarpet = "minecraft:purple_carpet", PurpleConcrete = "minecraft:purple_concrete", + PurpleConcretePowder = "minecraft:purple_concrete_powder", PurpleGlazedTerracotta = "minecraft:purple_glazed_terracotta", PurpleShulkerBox = "minecraft:purple_shulker_box", + PurpleStainedGlass = "minecraft:purple_stained_glass", + PurpleStainedGlassPane = "minecraft:purple_stained_glass_pane", + PurpleTerracotta = "minecraft:purple_terracotta", PurpleWool = "minecraft:purple_wool", PurpurBlock = "minecraft:purpur_block", PurpurStairs = "minecraft:purpur_stairs", @@ -669,6 +720,7 @@ export declare enum MinecraftBlockTypes { RedCandleCake = "minecraft:red_candle_cake", RedCarpet = "minecraft:red_carpet", RedConcrete = "minecraft:red_concrete", + RedConcretePowder = "minecraft:red_concrete_powder", RedFlower = "minecraft:red_flower", RedGlazedTerracotta = "minecraft:red_glazed_terracotta", RedMushroom = "minecraft:red_mushroom", @@ -678,6 +730,9 @@ export declare enum MinecraftBlockTypes { RedSandstone = "minecraft:red_sandstone", RedSandstoneStairs = "minecraft:red_sandstone_stairs", RedShulkerBox = "minecraft:red_shulker_box", + RedStainedGlass = "minecraft:red_stained_glass", + RedStainedGlassPane = "minecraft:red_stained_glass_pane", + RedTerracotta = "minecraft:red_terracotta", RedWool = "minecraft:red_wool", RedstoneBlock = "minecraft:redstone_block", RedstoneLamp = "minecraft:redstone_lamp", @@ -737,9 +792,6 @@ export declare enum MinecraftBlockTypes { SpruceStandingSign = "minecraft:spruce_standing_sign", SpruceTrapdoor = "minecraft:spruce_trapdoor", SpruceWallSign = "minecraft:spruce_wall_sign", - StainedGlass = "minecraft:stained_glass", - StainedGlassPane = "minecraft:stained_glass_pane", - StainedHardenedClay = "minecraft:stained_hardened_clay", StandingBanner = "minecraft:standing_banner", StandingSign = "minecraft:standing_sign", StickyPiston = "minecraft:sticky_piston", @@ -854,8 +906,12 @@ export declare enum MinecraftBlockTypes { WhiteCandleCake = "minecraft:white_candle_cake", WhiteCarpet = "minecraft:white_carpet", WhiteConcrete = "minecraft:white_concrete", + WhiteConcretePowder = "minecraft:white_concrete_powder", WhiteGlazedTerracotta = "minecraft:white_glazed_terracotta", WhiteShulkerBox = "minecraft:white_shulker_box", + WhiteStainedGlass = "minecraft:white_stained_glass", + WhiteStainedGlassPane = "minecraft:white_stained_glass_pane", + WhiteTerracotta = "minecraft:white_terracotta", WhiteWool = "minecraft:white_wool", WitherRose = "minecraft:wither_rose", Wood = "minecraft:wood", @@ -867,9 +923,13 @@ export declare enum MinecraftBlockTypes { YellowCandleCake = "minecraft:yellow_candle_cake", YellowCarpet = "minecraft:yellow_carpet", YellowConcrete = "minecraft:yellow_concrete", + YellowConcretePowder = "minecraft:yellow_concrete_powder", YellowFlower = "minecraft:yellow_flower", YellowGlazedTerracotta = "minecraft:yellow_glazed_terracotta", YellowShulkerBox = "minecraft:yellow_shulker_box", + YellowStainedGlass = "minecraft:yellow_stained_glass", + YellowStainedGlassPane = "minecraft:yellow_stained_glass_pane", + YellowTerracotta = "minecraft:yellow_terracotta", YellowWool = "minecraft:yellow_wool" } /** @@ -1061,7 +1121,7 @@ export type ActivatorRailStates = Pick; +export type AmethystClusterStates = Pick; /** * States specific to AndesiteStairs */ @@ -1069,7 +1129,7 @@ export type AndesiteStairsStates = Pick; +export type AnvilStates = Pick; /** * States specific to AzaleaLeaves */ @@ -1097,7 +1157,7 @@ export type BambooDoorStates = Pick; +export type BambooDoubleSlabStates = Pick; /** * States specific to BambooFenceGate */ @@ -1109,11 +1169,11 @@ export type BambooHangingSignStates = Pick; +export type BambooMosaicDoubleSlabStates = Pick; /** * States specific to BambooMosaicSlab */ -export type BambooMosaicSlabStates = Pick; +export type BambooMosaicSlabStates = Pick; /** * States specific to BambooMosaicStairs */ @@ -1129,7 +1189,7 @@ export type BambooSaplingStates = Pick; +export type BambooSlabStates = Pick; /** * States specific to BambooStairs */ @@ -1181,7 +1241,7 @@ export type BellStates = Pick; +export type BigDripleafStates = Pick; /** * States specific to BirchButton */ @@ -1237,11 +1297,11 @@ export type BlackGlazedTerracottaStates = Pick; +export type BlackstoneDoubleSlabStates = Pick; /** * States specific to BlackstoneSlab */ -export type BlackstoneSlabStates = Pick; +export type BlackstoneSlabStates = Pick; /** * States specific to BlackstoneStairs */ @@ -1253,7 +1313,7 @@ export type BlackstoneWallStates = Pick; +export type BlastFurnaceStates = Pick; /** * States specific to BlueCandle */ @@ -1313,11 +1373,11 @@ export type CakeStates = Pick; /** * States specific to CalibratedSculkSensor */ -export type CalibratedSculkSensorStates = Pick; +export type CalibratedSculkSensorStates = Pick; /** * States specific to Campfire */ -export type CampfireStates = Pick; +export type CampfireStates = Pick; /** * States specific to Candle */ @@ -1373,7 +1433,7 @@ export type CherryDoorStates = Pick; +export type CherryDoubleSlabStates = Pick; /** * States specific to CherryFenceGate */ @@ -1401,7 +1461,7 @@ export type CherrySaplingStates = Pick; /** * States specific to CherrySlab */ -export type CherrySlabStates = Pick; +export type CherrySlabStates = Pick; /** * States specific to CherryStairs */ @@ -1437,11 +1497,11 @@ export type ChorusFlowerStates = Pick; /** * States specific to CobbledDeepslateDoubleSlab */ -export type CobbledDeepslateDoubleSlabStates = Pick; +export type CobbledDeepslateDoubleSlabStates = Pick; /** * States specific to CobbledDeepslateSlab */ -export type CobbledDeepslateSlabStates = Pick; +export type CobbledDeepslateSlabStates = Pick; /** * States specific to CobbledDeepslateStairs */ @@ -1474,10 +1534,6 @@ export type CommandBlockStates = Pick; -/** - * States specific to ConcretePowder - */ -export type ConcretePowderStates = Pick; /** * States specific to CoralBlock */ @@ -1513,7 +1569,7 @@ export type CrimsonDoorStates = Pick; +export type CrimsonDoubleSlabStates = Pick; /** * States specific to CrimsonFenceGate */ @@ -1533,7 +1589,7 @@ export type CrimsonPressurePlateStates = Pick; +export type CrimsonSlabStates = Pick; /** * States specific to CrimsonStairs */ @@ -1557,7 +1613,7 @@ export type CrimsonWallSignStates = Pick /** * States specific to CutCopperSlab */ -export type CutCopperSlabStates = Pick; +export type CutCopperSlabStates = Pick; /** * States specific to CutCopperStairs */ @@ -1637,11 +1693,11 @@ export type DeepslateStates = Pick; /** * States specific to DeepslateBrickDoubleSlab */ -export type DeepslateBrickDoubleSlabStates = Pick; +export type DeepslateBrickDoubleSlabStates = Pick; /** * States specific to DeepslateBrickSlab */ -export type DeepslateBrickSlabStates = Pick; +export type DeepslateBrickSlabStates = Pick; /** * States specific to DeepslateBrickStairs */ @@ -1653,11 +1709,11 @@ export type DeepslateBrickWallStates = Pick; +export type DeepslateTileDoubleSlabStates = Pick; /** * States specific to DeepslateTileSlab */ -export type DeepslateTileSlabStates = Pick; +export type DeepslateTileSlabStates = Pick; /** * States specific to DeepslateTileStairs */ @@ -1685,7 +1741,7 @@ export type DispenserStates = Pick; +export type DoubleCutCopperSlabStates = Pick; /** * States specific to DoublePlant */ @@ -1693,23 +1749,23 @@ export type DoublePlantStates = Pick; +export type DoubleStoneBlockSlabStates = Pick; /** * States specific to DoubleStoneBlockSlab2 */ -export type DoubleStoneBlockSlab2States = Pick; +export type DoubleStoneBlockSlab2States = Pick; /** * States specific to DoubleStoneBlockSlab3 */ -export type DoubleStoneBlockSlab3States = Pick; +export type DoubleStoneBlockSlab3States = Pick; /** * States specific to DoubleStoneBlockSlab4 */ -export type DoubleStoneBlockSlab4States = Pick; +export type DoubleStoneBlockSlab4States = Pick; /** * States specific to DoubleWoodenSlab */ -export type DoubleWoodenSlabStates = Pick; +export type DoubleWoodenSlabStates = Pick; /** * States specific to Dropper */ @@ -1721,7 +1777,7 @@ export type EndBrickStairsStates = Pick; +export type EndPortalFrameStates = Pick; /** * States specific to EndRod */ @@ -1733,7 +1789,7 @@ export type EnderChestStates = Pick; /** * States specific to ExposedCutCopperSlab */ -export type ExposedCutCopperSlabStates = Pick; +export type ExposedCutCopperSlabStates = Pick; /** * States specific to ExposedCutCopperStairs */ @@ -1741,7 +1797,7 @@ export type ExposedCutCopperStairsStates = Pick; +export type ExposedDoubleCutCopperSlabStates = Pick; /** * States specific to Farmland */ @@ -1777,7 +1833,7 @@ export type FrostedIceStates = Pick; /** * States specific to Furnace */ -export type FurnaceStates = Pick; +export type FurnaceStates = Pick; /** * States specific to GlowFrame */ @@ -1913,7 +1969,7 @@ export type LanternStates = Pick; /** * States specific to LargeAmethystBud */ -export type LargeAmethystBudStates = Pick; +export type LargeAmethystBudStates = Pick; /** * States specific to Lava */ @@ -1929,7 +1985,7 @@ export type Leaves2States = Pick; +export type LecternStates = Pick; /** * States specific to Lever */ @@ -1981,11 +2037,11 @@ export type LimeGlazedTerracottaStates = Pick; +export type LitBlastFurnaceStates = Pick; /** * States specific to LitFurnace */ -export type LitFurnaceStates = Pick; +export type LitFurnaceStates = Pick; /** * States specific to LitPumpkin */ @@ -1993,7 +2049,7 @@ export type LitPumpkinStates = Pick; +export type LitSmokerStates = Pick; /** * States specific to Loom */ @@ -2021,7 +2077,7 @@ export type MangroveDoorStates = Pick; +export type MangroveDoubleSlabStates = Pick; /** * States specific to MangroveFenceGate */ @@ -2049,7 +2105,7 @@ export type MangrovePropaguleStates = Pick; +export type MangroveSlabStates = Pick; /** * States specific to MangroveStairs */ @@ -2073,7 +2129,7 @@ export type MangroveWoodStates = Pick; +export type MediumAmethystBudStates = Pick; /** * States specific to MelonStem */ @@ -2093,11 +2149,11 @@ export type MossyStoneBrickStairsStates = Pick; +export type MudBrickDoubleSlabStates = Pick; /** * States specific to MudBrickSlab */ -export type MudBrickSlabStates = Pick; +export type MudBrickSlabStates = Pick; /** * States specific to MudBrickStairs */ @@ -2157,7 +2213,7 @@ export type OrangeGlazedTerracottaStates = Pick; +export type OxidizedCutCopperSlabStates = Pick; /** * States specific to OxidizedCutCopperStairs */ @@ -2165,7 +2221,7 @@ export type OxidizedCutCopperStairsStates = Pick; +export type OxidizedDoubleCutCopperSlabStates = Pick; /** * States specific to PearlescentFroglight */ @@ -2185,7 +2241,7 @@ export type PinkGlazedTerracottaStates = Pick; +export type PinkPetalsStates = Pick; /** * States specific to Piston */ @@ -2221,11 +2277,11 @@ export type PolishedBasaltStates = Pick; /** * States specific to PolishedBlackstoneBrickDoubleSlab */ -export type PolishedBlackstoneBrickDoubleSlabStates = Pick; +export type PolishedBlackstoneBrickDoubleSlabStates = Pick; /** * States specific to PolishedBlackstoneBrickSlab */ -export type PolishedBlackstoneBrickSlabStates = Pick; +export type PolishedBlackstoneBrickSlabStates = Pick; /** * States specific to PolishedBlackstoneBrickStairs */ @@ -2241,7 +2297,7 @@ export type PolishedBlackstoneButtonStates = Pick; +export type PolishedBlackstoneDoubleSlabStates = Pick; /** * States specific to PolishedBlackstonePressurePlate */ @@ -2249,7 +2305,7 @@ export type PolishedBlackstonePressurePlateStates = Pick; +export type PolishedBlackstoneSlabStates = Pick; /** * States specific to PolishedBlackstoneStairs */ @@ -2261,11 +2317,11 @@ export type PolishedBlackstoneWallStates = Pick; +export type PolishedDeepslateDoubleSlabStates = Pick; /** * States specific to PolishedDeepslateSlab */ -export type PolishedDeepslateSlabStates = Pick; +export type PolishedDeepslateSlabStates = Pick; /** * States specific to PolishedDeepslateStairs */ @@ -2293,11 +2349,11 @@ export type PotatoesStates = Pick; /** * States specific to PoweredComparator */ -export type PoweredComparatorStates = Pick; +export type PoweredComparatorStates = Pick; /** * States specific to PoweredRepeater */ -export type PoweredRepeaterStates = Pick; +export type PoweredRepeaterStates = Pick; /** * States specific to Prismarine */ @@ -2457,15 +2513,15 @@ export type SkullStates = Pick; /** * States specific to SmallAmethystBud */ -export type SmallAmethystBudStates = Pick; +export type SmallAmethystBudStates = Pick; /** * States specific to SmallDripleafBlock */ -export type SmallDripleafBlockStates = Pick; +export type SmallDripleafBlockStates = Pick; /** * States specific to Smoker */ -export type SmokerStates = Pick; +export type SmokerStates = Pick; /** * States specific to SmoothQuartzStairs */ @@ -2489,7 +2545,7 @@ export type SnowLayerStates = Pick /** * States specific to SoulCampfire */ -export type SoulCampfireStates = Pick; +export type SoulCampfireStates = Pick; /** * States specific to SoulFire */ @@ -2546,18 +2602,6 @@ export type SpruceTrapdoorStates = Pick; -/** - * States specific to StainedGlass - */ -export type StainedGlassStates = Pick; -/** - * States specific to StainedGlassPane - */ -export type StainedGlassPaneStates = Pick; -/** - * States specific to StainedHardenedClay - */ -export type StainedHardenedClayStates = Pick; /** * States specific to StandingBanner */ @@ -2581,19 +2625,19 @@ export type StoneStates = Pick; /** * States specific to StoneBlockSlab */ -export type StoneBlockSlabStates = Pick; +export type StoneBlockSlabStates = Pick; /** * States specific to StoneBlockSlab2 */ -export type StoneBlockSlab2States = Pick; +export type StoneBlockSlab2States = Pick; /** * States specific to StoneBlockSlab3 */ -export type StoneBlockSlab3States = Pick; +export type StoneBlockSlab3States = Pick; /** * States specific to StoneBlockSlab4 */ -export type StoneBlockSlab4States = Pick; +export type StoneBlockSlab4States = Pick; /** * States specific to StoneBrickStairs */ @@ -2749,11 +2793,11 @@ export type UnlitRedstoneTorchStates = Pick; +export type UnpoweredComparatorStates = Pick; /** * States specific to UnpoweredRepeater */ -export type UnpoweredRepeaterStates = Pick; +export type UnpoweredRepeaterStates = Pick; /** * States specific to VerdantFroglight */ @@ -2781,7 +2825,7 @@ export type WarpedDoorStates = Pick; +export type WarpedDoubleSlabStates = Pick; /** * States specific to WarpedFenceGate */ @@ -2801,7 +2845,7 @@ export type WarpedPressurePlateStates = Pick; +export type WarpedSlabStates = Pick; /** * States specific to WarpedStairs */ @@ -2829,7 +2873,7 @@ export type WaterStates = Pick; /** * States specific to WaxedCutCopperSlab */ -export type WaxedCutCopperSlabStates = Pick; +export type WaxedCutCopperSlabStates = Pick; /** * States specific to WaxedCutCopperStairs */ @@ -2837,11 +2881,11 @@ export type WaxedCutCopperStairsStates = Pick; +export type WaxedDoubleCutCopperSlabStates = Pick; /** * States specific to WaxedExposedCutCopperSlab */ -export type WaxedExposedCutCopperSlabStates = Pick; +export type WaxedExposedCutCopperSlabStates = Pick; /** * States specific to WaxedExposedCutCopperStairs */ @@ -2849,11 +2893,11 @@ export type WaxedExposedCutCopperStairsStates = Pick; +export type WaxedExposedDoubleCutCopperSlabStates = Pick; /** * States specific to WaxedOxidizedCutCopperSlab */ -export type WaxedOxidizedCutCopperSlabStates = Pick; +export type WaxedOxidizedCutCopperSlabStates = Pick; /** * States specific to WaxedOxidizedCutCopperStairs */ @@ -2861,11 +2905,11 @@ export type WaxedOxidizedCutCopperStairsStates = Pick; +export type WaxedOxidizedDoubleCutCopperSlabStates = Pick; /** * States specific to WaxedWeatheredCutCopperSlab */ -export type WaxedWeatheredCutCopperSlabStates = Pick; +export type WaxedWeatheredCutCopperSlabStates = Pick; /** * States specific to WaxedWeatheredCutCopperStairs */ @@ -2873,11 +2917,11 @@ export type WaxedWeatheredCutCopperStairsStates = Pick; +export type WaxedWeatheredDoubleCutCopperSlabStates = Pick; /** * States specific to WeatheredCutCopperSlab */ -export type WeatheredCutCopperSlabStates = Pick; +export type WeatheredCutCopperSlabStates = Pick; /** * States specific to WeatheredCutCopperStairs */ @@ -2885,7 +2929,7 @@ export type WeatheredCutCopperStairsStates = Pick; +export type WeatheredDoubleCutCopperSlabStates = Pick; /** * States specific to WeepingVines */ @@ -2925,7 +2969,7 @@ export type WoodenPressurePlateStates = Pick; +export type WoodenSlabStates = Pick; /** * States specific to YellowCandle */ @@ -2941,7 +2985,7 @@ export type YellowGlazedTerracottaStates = Pick -// Mike Ammerlaan -// Raphael Landaverde -/* ***************************************************************************** - Copyright (c) Microsoft Corporation. - ***************************************************************************** */ -/** - * All possible MinecraftBlockTypes - */ -export var MinecraftBlockTypes; -(function (MinecraftBlockTypes) { - MinecraftBlockTypes["AcaciaButton"] = "minecraft:acacia_button"; - MinecraftBlockTypes["AcaciaDoor"] = "minecraft:acacia_door"; - MinecraftBlockTypes["AcaciaFence"] = "minecraft:acacia_fence"; - MinecraftBlockTypes["AcaciaFenceGate"] = "minecraft:acacia_fence_gate"; - MinecraftBlockTypes["AcaciaHangingSign"] = "minecraft:acacia_hanging_sign"; - MinecraftBlockTypes["AcaciaLog"] = "minecraft:acacia_log"; - MinecraftBlockTypes["AcaciaPressurePlate"] = "minecraft:acacia_pressure_plate"; - MinecraftBlockTypes["AcaciaStairs"] = "minecraft:acacia_stairs"; - MinecraftBlockTypes["AcaciaStandingSign"] = "minecraft:acacia_standing_sign"; - MinecraftBlockTypes["AcaciaTrapdoor"] = "minecraft:acacia_trapdoor"; - MinecraftBlockTypes["AcaciaWallSign"] = "minecraft:acacia_wall_sign"; - MinecraftBlockTypes["ActivatorRail"] = "minecraft:activator_rail"; - MinecraftBlockTypes["Air"] = "minecraft:air"; - MinecraftBlockTypes["Allow"] = "minecraft:allow"; - MinecraftBlockTypes["AmethystBlock"] = "minecraft:amethyst_block"; - MinecraftBlockTypes["AmethystCluster"] = "minecraft:amethyst_cluster"; - MinecraftBlockTypes["AncientDebris"] = "minecraft:ancient_debris"; - MinecraftBlockTypes["AndesiteStairs"] = "minecraft:andesite_stairs"; - MinecraftBlockTypes["Anvil"] = "minecraft:anvil"; - MinecraftBlockTypes["Azalea"] = "minecraft:azalea"; - MinecraftBlockTypes["AzaleaLeaves"] = "minecraft:azalea_leaves"; - MinecraftBlockTypes["AzaleaLeavesFlowered"] = "minecraft:azalea_leaves_flowered"; - MinecraftBlockTypes["Bamboo"] = "minecraft:bamboo"; - MinecraftBlockTypes["BambooBlock"] = "minecraft:bamboo_block"; - MinecraftBlockTypes["BambooButton"] = "minecraft:bamboo_button"; - MinecraftBlockTypes["BambooDoor"] = "minecraft:bamboo_door"; - MinecraftBlockTypes["BambooDoubleSlab"] = "minecraft:bamboo_double_slab"; - MinecraftBlockTypes["BambooFence"] = "minecraft:bamboo_fence"; - MinecraftBlockTypes["BambooFenceGate"] = "minecraft:bamboo_fence_gate"; - MinecraftBlockTypes["BambooHangingSign"] = "minecraft:bamboo_hanging_sign"; - MinecraftBlockTypes["BambooMosaic"] = "minecraft:bamboo_mosaic"; - MinecraftBlockTypes["BambooMosaicDoubleSlab"] = "minecraft:bamboo_mosaic_double_slab"; - MinecraftBlockTypes["BambooMosaicSlab"] = "minecraft:bamboo_mosaic_slab"; - MinecraftBlockTypes["BambooMosaicStairs"] = "minecraft:bamboo_mosaic_stairs"; - MinecraftBlockTypes["BambooPlanks"] = "minecraft:bamboo_planks"; - MinecraftBlockTypes["BambooPressurePlate"] = "minecraft:bamboo_pressure_plate"; - MinecraftBlockTypes["BambooSapling"] = "minecraft:bamboo_sapling"; - MinecraftBlockTypes["BambooSlab"] = "minecraft:bamboo_slab"; - MinecraftBlockTypes["BambooStairs"] = "minecraft:bamboo_stairs"; - MinecraftBlockTypes["BambooStandingSign"] = "minecraft:bamboo_standing_sign"; - MinecraftBlockTypes["BambooTrapdoor"] = "minecraft:bamboo_trapdoor"; - MinecraftBlockTypes["BambooWallSign"] = "minecraft:bamboo_wall_sign"; - MinecraftBlockTypes["Barrel"] = "minecraft:barrel"; - MinecraftBlockTypes["Barrier"] = "minecraft:barrier"; - MinecraftBlockTypes["Basalt"] = "minecraft:basalt"; - MinecraftBlockTypes["Beacon"] = "minecraft:beacon"; - MinecraftBlockTypes["Bed"] = "minecraft:bed"; - MinecraftBlockTypes["Bedrock"] = "minecraft:bedrock"; - MinecraftBlockTypes["BeeNest"] = "minecraft:bee_nest"; - MinecraftBlockTypes["Beehive"] = "minecraft:beehive"; - MinecraftBlockTypes["Beetroot"] = "minecraft:beetroot"; - MinecraftBlockTypes["Bell"] = "minecraft:bell"; - MinecraftBlockTypes["BigDripleaf"] = "minecraft:big_dripleaf"; - MinecraftBlockTypes["BirchButton"] = "minecraft:birch_button"; - MinecraftBlockTypes["BirchDoor"] = "minecraft:birch_door"; - MinecraftBlockTypes["BirchFence"] = "minecraft:birch_fence"; - MinecraftBlockTypes["BirchFenceGate"] = "minecraft:birch_fence_gate"; - MinecraftBlockTypes["BirchHangingSign"] = "minecraft:birch_hanging_sign"; - MinecraftBlockTypes["BirchLog"] = "minecraft:birch_log"; - MinecraftBlockTypes["BirchPressurePlate"] = "minecraft:birch_pressure_plate"; - MinecraftBlockTypes["BirchStairs"] = "minecraft:birch_stairs"; - MinecraftBlockTypes["BirchStandingSign"] = "minecraft:birch_standing_sign"; - MinecraftBlockTypes["BirchTrapdoor"] = "minecraft:birch_trapdoor"; - MinecraftBlockTypes["BirchWallSign"] = "minecraft:birch_wall_sign"; - MinecraftBlockTypes["BlackCandle"] = "minecraft:black_candle"; - MinecraftBlockTypes["BlackCandleCake"] = "minecraft:black_candle_cake"; - MinecraftBlockTypes["BlackCarpet"] = "minecraft:black_carpet"; - MinecraftBlockTypes["BlackConcrete"] = "minecraft:black_concrete"; - MinecraftBlockTypes["BlackGlazedTerracotta"] = "minecraft:black_glazed_terracotta"; - MinecraftBlockTypes["BlackShulkerBox"] = "minecraft:black_shulker_box"; - MinecraftBlockTypes["BlackWool"] = "minecraft:black_wool"; - MinecraftBlockTypes["Blackstone"] = "minecraft:blackstone"; - MinecraftBlockTypes["BlackstoneDoubleSlab"] = "minecraft:blackstone_double_slab"; - MinecraftBlockTypes["BlackstoneSlab"] = "minecraft:blackstone_slab"; - MinecraftBlockTypes["BlackstoneStairs"] = "minecraft:blackstone_stairs"; - MinecraftBlockTypes["BlackstoneWall"] = "minecraft:blackstone_wall"; - MinecraftBlockTypes["BlastFurnace"] = "minecraft:blast_furnace"; - MinecraftBlockTypes["BlueCandle"] = "minecraft:blue_candle"; - MinecraftBlockTypes["BlueCandleCake"] = "minecraft:blue_candle_cake"; - MinecraftBlockTypes["BlueCarpet"] = "minecraft:blue_carpet"; - MinecraftBlockTypes["BlueConcrete"] = "minecraft:blue_concrete"; - MinecraftBlockTypes["BlueGlazedTerracotta"] = "minecraft:blue_glazed_terracotta"; - MinecraftBlockTypes["BlueIce"] = "minecraft:blue_ice"; - MinecraftBlockTypes["BlueShulkerBox"] = "minecraft:blue_shulker_box"; - MinecraftBlockTypes["BlueWool"] = "minecraft:blue_wool"; - MinecraftBlockTypes["BoneBlock"] = "minecraft:bone_block"; - MinecraftBlockTypes["Bookshelf"] = "minecraft:bookshelf"; - MinecraftBlockTypes["BorderBlock"] = "minecraft:border_block"; - MinecraftBlockTypes["BrainCoral"] = "minecraft:brain_coral"; - MinecraftBlockTypes["BrewingStand"] = "minecraft:brewing_stand"; - MinecraftBlockTypes["BrickBlock"] = "minecraft:brick_block"; - MinecraftBlockTypes["BrickStairs"] = "minecraft:brick_stairs"; - MinecraftBlockTypes["BrownCandle"] = "minecraft:brown_candle"; - MinecraftBlockTypes["BrownCandleCake"] = "minecraft:brown_candle_cake"; - MinecraftBlockTypes["BrownCarpet"] = "minecraft:brown_carpet"; - MinecraftBlockTypes["BrownConcrete"] = "minecraft:brown_concrete"; - MinecraftBlockTypes["BrownGlazedTerracotta"] = "minecraft:brown_glazed_terracotta"; - MinecraftBlockTypes["BrownMushroom"] = "minecraft:brown_mushroom"; - MinecraftBlockTypes["BrownMushroomBlock"] = "minecraft:brown_mushroom_block"; - MinecraftBlockTypes["BrownShulkerBox"] = "minecraft:brown_shulker_box"; - MinecraftBlockTypes["BrownWool"] = "minecraft:brown_wool"; - MinecraftBlockTypes["BubbleColumn"] = "minecraft:bubble_column"; - MinecraftBlockTypes["BubbleCoral"] = "minecraft:bubble_coral"; - MinecraftBlockTypes["BuddingAmethyst"] = "minecraft:budding_amethyst"; - MinecraftBlockTypes["Cactus"] = "minecraft:cactus"; - MinecraftBlockTypes["Cake"] = "minecraft:cake"; - MinecraftBlockTypes["Calcite"] = "minecraft:calcite"; - MinecraftBlockTypes["CalibratedSculkSensor"] = "minecraft:calibrated_sculk_sensor"; - MinecraftBlockTypes["Camera"] = "minecraft:camera"; - MinecraftBlockTypes["Campfire"] = "minecraft:campfire"; - MinecraftBlockTypes["Candle"] = "minecraft:candle"; - MinecraftBlockTypes["CandleCake"] = "minecraft:candle_cake"; - MinecraftBlockTypes["Carrots"] = "minecraft:carrots"; - MinecraftBlockTypes["CartographyTable"] = "minecraft:cartography_table"; - MinecraftBlockTypes["CarvedPumpkin"] = "minecraft:carved_pumpkin"; - MinecraftBlockTypes["Cauldron"] = "minecraft:cauldron"; - MinecraftBlockTypes["CaveVines"] = "minecraft:cave_vines"; - MinecraftBlockTypes["CaveVinesBodyWithBerries"] = "minecraft:cave_vines_body_with_berries"; - MinecraftBlockTypes["CaveVinesHeadWithBerries"] = "minecraft:cave_vines_head_with_berries"; - MinecraftBlockTypes["Chain"] = "minecraft:chain"; - MinecraftBlockTypes["ChainCommandBlock"] = "minecraft:chain_command_block"; - MinecraftBlockTypes["ChemicalHeat"] = "minecraft:chemical_heat"; - MinecraftBlockTypes["ChemistryTable"] = "minecraft:chemistry_table"; - MinecraftBlockTypes["CherryButton"] = "minecraft:cherry_button"; - MinecraftBlockTypes["CherryDoor"] = "minecraft:cherry_door"; - MinecraftBlockTypes["CherryDoubleSlab"] = "minecraft:cherry_double_slab"; - MinecraftBlockTypes["CherryFence"] = "minecraft:cherry_fence"; - MinecraftBlockTypes["CherryFenceGate"] = "minecraft:cherry_fence_gate"; - MinecraftBlockTypes["CherryHangingSign"] = "minecraft:cherry_hanging_sign"; - MinecraftBlockTypes["CherryLeaves"] = "minecraft:cherry_leaves"; - MinecraftBlockTypes["CherryLog"] = "minecraft:cherry_log"; - MinecraftBlockTypes["CherryPlanks"] = "minecraft:cherry_planks"; - MinecraftBlockTypes["CherryPressurePlate"] = "minecraft:cherry_pressure_plate"; - MinecraftBlockTypes["CherrySapling"] = "minecraft:cherry_sapling"; - MinecraftBlockTypes["CherrySlab"] = "minecraft:cherry_slab"; - MinecraftBlockTypes["CherryStairs"] = "minecraft:cherry_stairs"; - MinecraftBlockTypes["CherryStandingSign"] = "minecraft:cherry_standing_sign"; - MinecraftBlockTypes["CherryTrapdoor"] = "minecraft:cherry_trapdoor"; - MinecraftBlockTypes["CherryWallSign"] = "minecraft:cherry_wall_sign"; - MinecraftBlockTypes["CherryWood"] = "minecraft:cherry_wood"; - MinecraftBlockTypes["Chest"] = "minecraft:chest"; - MinecraftBlockTypes["ChiseledBookshelf"] = "minecraft:chiseled_bookshelf"; - MinecraftBlockTypes["ChiseledDeepslate"] = "minecraft:chiseled_deepslate"; - MinecraftBlockTypes["ChiseledNetherBricks"] = "minecraft:chiseled_nether_bricks"; - MinecraftBlockTypes["ChiseledPolishedBlackstone"] = "minecraft:chiseled_polished_blackstone"; - MinecraftBlockTypes["ChorusFlower"] = "minecraft:chorus_flower"; - MinecraftBlockTypes["ChorusPlant"] = "minecraft:chorus_plant"; - MinecraftBlockTypes["Clay"] = "minecraft:clay"; - MinecraftBlockTypes["ClientRequestPlaceholderBlock"] = "minecraft:client_request_placeholder_block"; - MinecraftBlockTypes["CoalBlock"] = "minecraft:coal_block"; - MinecraftBlockTypes["CoalOre"] = "minecraft:coal_ore"; - MinecraftBlockTypes["CobbledDeepslate"] = "minecraft:cobbled_deepslate"; - MinecraftBlockTypes["CobbledDeepslateDoubleSlab"] = "minecraft:cobbled_deepslate_double_slab"; - MinecraftBlockTypes["CobbledDeepslateSlab"] = "minecraft:cobbled_deepslate_slab"; - MinecraftBlockTypes["CobbledDeepslateStairs"] = "minecraft:cobbled_deepslate_stairs"; - MinecraftBlockTypes["CobbledDeepslateWall"] = "minecraft:cobbled_deepslate_wall"; - MinecraftBlockTypes["Cobblestone"] = "minecraft:cobblestone"; - MinecraftBlockTypes["CobblestoneWall"] = "minecraft:cobblestone_wall"; - MinecraftBlockTypes["Cocoa"] = "minecraft:cocoa"; - MinecraftBlockTypes["ColoredTorchBp"] = "minecraft:colored_torch_bp"; - MinecraftBlockTypes["ColoredTorchRg"] = "minecraft:colored_torch_rg"; - MinecraftBlockTypes["CommandBlock"] = "minecraft:command_block"; - MinecraftBlockTypes["Composter"] = "minecraft:composter"; - MinecraftBlockTypes["ConcretePowder"] = "minecraft:concrete_powder"; - MinecraftBlockTypes["Conduit"] = "minecraft:conduit"; - MinecraftBlockTypes["CopperBlock"] = "minecraft:copper_block"; - MinecraftBlockTypes["CopperOre"] = "minecraft:copper_ore"; - MinecraftBlockTypes["CoralBlock"] = "minecraft:coral_block"; - MinecraftBlockTypes["CoralFan"] = "minecraft:coral_fan"; - MinecraftBlockTypes["CoralFanDead"] = "minecraft:coral_fan_dead"; - MinecraftBlockTypes["CoralFanHang"] = "minecraft:coral_fan_hang"; - MinecraftBlockTypes["CoralFanHang2"] = "minecraft:coral_fan_hang2"; - MinecraftBlockTypes["CoralFanHang3"] = "minecraft:coral_fan_hang3"; - MinecraftBlockTypes["CrackedDeepslateBricks"] = "minecraft:cracked_deepslate_bricks"; - MinecraftBlockTypes["CrackedDeepslateTiles"] = "minecraft:cracked_deepslate_tiles"; - MinecraftBlockTypes["CrackedNetherBricks"] = "minecraft:cracked_nether_bricks"; - MinecraftBlockTypes["CrackedPolishedBlackstoneBricks"] = "minecraft:cracked_polished_blackstone_bricks"; - MinecraftBlockTypes["CraftingTable"] = "minecraft:crafting_table"; - MinecraftBlockTypes["CrimsonButton"] = "minecraft:crimson_button"; - MinecraftBlockTypes["CrimsonDoor"] = "minecraft:crimson_door"; - MinecraftBlockTypes["CrimsonDoubleSlab"] = "minecraft:crimson_double_slab"; - MinecraftBlockTypes["CrimsonFence"] = "minecraft:crimson_fence"; - MinecraftBlockTypes["CrimsonFenceGate"] = "minecraft:crimson_fence_gate"; - MinecraftBlockTypes["CrimsonFungus"] = "minecraft:crimson_fungus"; - MinecraftBlockTypes["CrimsonHangingSign"] = "minecraft:crimson_hanging_sign"; - MinecraftBlockTypes["CrimsonHyphae"] = "minecraft:crimson_hyphae"; - MinecraftBlockTypes["CrimsonNylium"] = "minecraft:crimson_nylium"; - MinecraftBlockTypes["CrimsonPlanks"] = "minecraft:crimson_planks"; - MinecraftBlockTypes["CrimsonPressurePlate"] = "minecraft:crimson_pressure_plate"; - MinecraftBlockTypes["CrimsonRoots"] = "minecraft:crimson_roots"; - MinecraftBlockTypes["CrimsonSlab"] = "minecraft:crimson_slab"; - MinecraftBlockTypes["CrimsonStairs"] = "minecraft:crimson_stairs"; - MinecraftBlockTypes["CrimsonStandingSign"] = "minecraft:crimson_standing_sign"; - MinecraftBlockTypes["CrimsonStem"] = "minecraft:crimson_stem"; - MinecraftBlockTypes["CrimsonTrapdoor"] = "minecraft:crimson_trapdoor"; - MinecraftBlockTypes["CrimsonWallSign"] = "minecraft:crimson_wall_sign"; - MinecraftBlockTypes["CryingObsidian"] = "minecraft:crying_obsidian"; - MinecraftBlockTypes["CutCopper"] = "minecraft:cut_copper"; - MinecraftBlockTypes["CutCopperSlab"] = "minecraft:cut_copper_slab"; - MinecraftBlockTypes["CutCopperStairs"] = "minecraft:cut_copper_stairs"; - MinecraftBlockTypes["CyanCandle"] = "minecraft:cyan_candle"; - MinecraftBlockTypes["CyanCandleCake"] = "minecraft:cyan_candle_cake"; - MinecraftBlockTypes["CyanCarpet"] = "minecraft:cyan_carpet"; - MinecraftBlockTypes["CyanConcrete"] = "minecraft:cyan_concrete"; - MinecraftBlockTypes["CyanGlazedTerracotta"] = "minecraft:cyan_glazed_terracotta"; - MinecraftBlockTypes["CyanShulkerBox"] = "minecraft:cyan_shulker_box"; - MinecraftBlockTypes["CyanWool"] = "minecraft:cyan_wool"; - MinecraftBlockTypes["DarkOakButton"] = "minecraft:dark_oak_button"; - MinecraftBlockTypes["DarkOakDoor"] = "minecraft:dark_oak_door"; - MinecraftBlockTypes["DarkOakFence"] = "minecraft:dark_oak_fence"; - MinecraftBlockTypes["DarkOakFenceGate"] = "minecraft:dark_oak_fence_gate"; - MinecraftBlockTypes["DarkOakHangingSign"] = "minecraft:dark_oak_hanging_sign"; - MinecraftBlockTypes["DarkOakLog"] = "minecraft:dark_oak_log"; - MinecraftBlockTypes["DarkOakPressurePlate"] = "minecraft:dark_oak_pressure_plate"; - MinecraftBlockTypes["DarkOakStairs"] = "minecraft:dark_oak_stairs"; - MinecraftBlockTypes["DarkOakTrapdoor"] = "minecraft:dark_oak_trapdoor"; - MinecraftBlockTypes["DarkPrismarineStairs"] = "minecraft:dark_prismarine_stairs"; - MinecraftBlockTypes["DarkoakStandingSign"] = "minecraft:darkoak_standing_sign"; - MinecraftBlockTypes["DarkoakWallSign"] = "minecraft:darkoak_wall_sign"; - MinecraftBlockTypes["DaylightDetector"] = "minecraft:daylight_detector"; - MinecraftBlockTypes["DaylightDetectorInverted"] = "minecraft:daylight_detector_inverted"; - MinecraftBlockTypes["DeadBrainCoral"] = "minecraft:dead_brain_coral"; - MinecraftBlockTypes["DeadBubbleCoral"] = "minecraft:dead_bubble_coral"; - MinecraftBlockTypes["DeadFireCoral"] = "minecraft:dead_fire_coral"; - MinecraftBlockTypes["DeadHornCoral"] = "minecraft:dead_horn_coral"; - MinecraftBlockTypes["DeadTubeCoral"] = "minecraft:dead_tube_coral"; - MinecraftBlockTypes["Deadbush"] = "minecraft:deadbush"; - MinecraftBlockTypes["DecoratedPot"] = "minecraft:decorated_pot"; - MinecraftBlockTypes["Deepslate"] = "minecraft:deepslate"; - MinecraftBlockTypes["DeepslateBrickDoubleSlab"] = "minecraft:deepslate_brick_double_slab"; - MinecraftBlockTypes["DeepslateBrickSlab"] = "minecraft:deepslate_brick_slab"; - MinecraftBlockTypes["DeepslateBrickStairs"] = "minecraft:deepslate_brick_stairs"; - MinecraftBlockTypes["DeepslateBrickWall"] = "minecraft:deepslate_brick_wall"; - MinecraftBlockTypes["DeepslateBricks"] = "minecraft:deepslate_bricks"; - MinecraftBlockTypes["DeepslateCoalOre"] = "minecraft:deepslate_coal_ore"; - MinecraftBlockTypes["DeepslateCopperOre"] = "minecraft:deepslate_copper_ore"; - MinecraftBlockTypes["DeepslateDiamondOre"] = "minecraft:deepslate_diamond_ore"; - MinecraftBlockTypes["DeepslateEmeraldOre"] = "minecraft:deepslate_emerald_ore"; - MinecraftBlockTypes["DeepslateGoldOre"] = "minecraft:deepslate_gold_ore"; - MinecraftBlockTypes["DeepslateIronOre"] = "minecraft:deepslate_iron_ore"; - MinecraftBlockTypes["DeepslateLapisOre"] = "minecraft:deepslate_lapis_ore"; - MinecraftBlockTypes["DeepslateRedstoneOre"] = "minecraft:deepslate_redstone_ore"; - MinecraftBlockTypes["DeepslateTileDoubleSlab"] = "minecraft:deepslate_tile_double_slab"; - MinecraftBlockTypes["DeepslateTileSlab"] = "minecraft:deepslate_tile_slab"; - MinecraftBlockTypes["DeepslateTileStairs"] = "minecraft:deepslate_tile_stairs"; - MinecraftBlockTypes["DeepslateTileWall"] = "minecraft:deepslate_tile_wall"; - MinecraftBlockTypes["DeepslateTiles"] = "minecraft:deepslate_tiles"; - MinecraftBlockTypes["Deny"] = "minecraft:deny"; - MinecraftBlockTypes["DetectorRail"] = "minecraft:detector_rail"; - MinecraftBlockTypes["DiamondBlock"] = "minecraft:diamond_block"; - MinecraftBlockTypes["DiamondOre"] = "minecraft:diamond_ore"; - MinecraftBlockTypes["DioriteStairs"] = "minecraft:diorite_stairs"; - MinecraftBlockTypes["Dirt"] = "minecraft:dirt"; - MinecraftBlockTypes["DirtWithRoots"] = "minecraft:dirt_with_roots"; - MinecraftBlockTypes["Dispenser"] = "minecraft:dispenser"; - MinecraftBlockTypes["DoubleCutCopperSlab"] = "minecraft:double_cut_copper_slab"; - MinecraftBlockTypes["DoublePlant"] = "minecraft:double_plant"; - MinecraftBlockTypes["DoubleStoneBlockSlab"] = "minecraft:double_stone_block_slab"; - MinecraftBlockTypes["DoubleStoneBlockSlab2"] = "minecraft:double_stone_block_slab2"; - MinecraftBlockTypes["DoubleStoneBlockSlab3"] = "minecraft:double_stone_block_slab3"; - MinecraftBlockTypes["DoubleStoneBlockSlab4"] = "minecraft:double_stone_block_slab4"; - MinecraftBlockTypes["DoubleWoodenSlab"] = "minecraft:double_wooden_slab"; - MinecraftBlockTypes["DragonEgg"] = "minecraft:dragon_egg"; - MinecraftBlockTypes["DriedKelpBlock"] = "minecraft:dried_kelp_block"; - MinecraftBlockTypes["DripstoneBlock"] = "minecraft:dripstone_block"; - MinecraftBlockTypes["Dropper"] = "minecraft:dropper"; - MinecraftBlockTypes["Element0"] = "minecraft:element_0"; - MinecraftBlockTypes["Element1"] = "minecraft:element_1"; - MinecraftBlockTypes["Element10"] = "minecraft:element_10"; - MinecraftBlockTypes["Element100"] = "minecraft:element_100"; - MinecraftBlockTypes["Element101"] = "minecraft:element_101"; - MinecraftBlockTypes["Element102"] = "minecraft:element_102"; - MinecraftBlockTypes["Element103"] = "minecraft:element_103"; - MinecraftBlockTypes["Element104"] = "minecraft:element_104"; - MinecraftBlockTypes["Element105"] = "minecraft:element_105"; - MinecraftBlockTypes["Element106"] = "minecraft:element_106"; - MinecraftBlockTypes["Element107"] = "minecraft:element_107"; - MinecraftBlockTypes["Element108"] = "minecraft:element_108"; - MinecraftBlockTypes["Element109"] = "minecraft:element_109"; - MinecraftBlockTypes["Element11"] = "minecraft:element_11"; - MinecraftBlockTypes["Element110"] = "minecraft:element_110"; - MinecraftBlockTypes["Element111"] = "minecraft:element_111"; - MinecraftBlockTypes["Element112"] = "minecraft:element_112"; - MinecraftBlockTypes["Element113"] = "minecraft:element_113"; - MinecraftBlockTypes["Element114"] = "minecraft:element_114"; - MinecraftBlockTypes["Element115"] = "minecraft:element_115"; - MinecraftBlockTypes["Element116"] = "minecraft:element_116"; - MinecraftBlockTypes["Element117"] = "minecraft:element_117"; - MinecraftBlockTypes["Element118"] = "minecraft:element_118"; - MinecraftBlockTypes["Element12"] = "minecraft:element_12"; - MinecraftBlockTypes["Element13"] = "minecraft:element_13"; - MinecraftBlockTypes["Element14"] = "minecraft:element_14"; - MinecraftBlockTypes["Element15"] = "minecraft:element_15"; - MinecraftBlockTypes["Element16"] = "minecraft:element_16"; - MinecraftBlockTypes["Element17"] = "minecraft:element_17"; - MinecraftBlockTypes["Element18"] = "minecraft:element_18"; - MinecraftBlockTypes["Element19"] = "minecraft:element_19"; - MinecraftBlockTypes["Element2"] = "minecraft:element_2"; - MinecraftBlockTypes["Element20"] = "minecraft:element_20"; - MinecraftBlockTypes["Element21"] = "minecraft:element_21"; - MinecraftBlockTypes["Element22"] = "minecraft:element_22"; - MinecraftBlockTypes["Element23"] = "minecraft:element_23"; - MinecraftBlockTypes["Element24"] = "minecraft:element_24"; - MinecraftBlockTypes["Element25"] = "minecraft:element_25"; - MinecraftBlockTypes["Element26"] = "minecraft:element_26"; - MinecraftBlockTypes["Element27"] = "minecraft:element_27"; - MinecraftBlockTypes["Element28"] = "minecraft:element_28"; - MinecraftBlockTypes["Element29"] = "minecraft:element_29"; - MinecraftBlockTypes["Element3"] = "minecraft:element_3"; - MinecraftBlockTypes["Element30"] = "minecraft:element_30"; - MinecraftBlockTypes["Element31"] = "minecraft:element_31"; - MinecraftBlockTypes["Element32"] = "minecraft:element_32"; - MinecraftBlockTypes["Element33"] = "minecraft:element_33"; - MinecraftBlockTypes["Element34"] = "minecraft:element_34"; - MinecraftBlockTypes["Element35"] = "minecraft:element_35"; - MinecraftBlockTypes["Element36"] = "minecraft:element_36"; - MinecraftBlockTypes["Element37"] = "minecraft:element_37"; - MinecraftBlockTypes["Element38"] = "minecraft:element_38"; - MinecraftBlockTypes["Element39"] = "minecraft:element_39"; - MinecraftBlockTypes["Element4"] = "minecraft:element_4"; - MinecraftBlockTypes["Element40"] = "minecraft:element_40"; - MinecraftBlockTypes["Element41"] = "minecraft:element_41"; - MinecraftBlockTypes["Element42"] = "minecraft:element_42"; - MinecraftBlockTypes["Element43"] = "minecraft:element_43"; - MinecraftBlockTypes["Element44"] = "minecraft:element_44"; - MinecraftBlockTypes["Element45"] = "minecraft:element_45"; - MinecraftBlockTypes["Element46"] = "minecraft:element_46"; - MinecraftBlockTypes["Element47"] = "minecraft:element_47"; - MinecraftBlockTypes["Element48"] = "minecraft:element_48"; - MinecraftBlockTypes["Element49"] = "minecraft:element_49"; - MinecraftBlockTypes["Element5"] = "minecraft:element_5"; - MinecraftBlockTypes["Element50"] = "minecraft:element_50"; - MinecraftBlockTypes["Element51"] = "minecraft:element_51"; - MinecraftBlockTypes["Element52"] = "minecraft:element_52"; - MinecraftBlockTypes["Element53"] = "minecraft:element_53"; - MinecraftBlockTypes["Element54"] = "minecraft:element_54"; - MinecraftBlockTypes["Element55"] = "minecraft:element_55"; - MinecraftBlockTypes["Element56"] = "minecraft:element_56"; - MinecraftBlockTypes["Element57"] = "minecraft:element_57"; - MinecraftBlockTypes["Element58"] = "minecraft:element_58"; - MinecraftBlockTypes["Element59"] = "minecraft:element_59"; - MinecraftBlockTypes["Element6"] = "minecraft:element_6"; - MinecraftBlockTypes["Element60"] = "minecraft:element_60"; - MinecraftBlockTypes["Element61"] = "minecraft:element_61"; - MinecraftBlockTypes["Element62"] = "minecraft:element_62"; - MinecraftBlockTypes["Element63"] = "minecraft:element_63"; - MinecraftBlockTypes["Element64"] = "minecraft:element_64"; - MinecraftBlockTypes["Element65"] = "minecraft:element_65"; - MinecraftBlockTypes["Element66"] = "minecraft:element_66"; - MinecraftBlockTypes["Element67"] = "minecraft:element_67"; - MinecraftBlockTypes["Element68"] = "minecraft:element_68"; - MinecraftBlockTypes["Element69"] = "minecraft:element_69"; - MinecraftBlockTypes["Element7"] = "minecraft:element_7"; - MinecraftBlockTypes["Element70"] = "minecraft:element_70"; - MinecraftBlockTypes["Element71"] = "minecraft:element_71"; - MinecraftBlockTypes["Element72"] = "minecraft:element_72"; - MinecraftBlockTypes["Element73"] = "minecraft:element_73"; - MinecraftBlockTypes["Element74"] = "minecraft:element_74"; - MinecraftBlockTypes["Element75"] = "minecraft:element_75"; - MinecraftBlockTypes["Element76"] = "minecraft:element_76"; - MinecraftBlockTypes["Element77"] = "minecraft:element_77"; - MinecraftBlockTypes["Element78"] = "minecraft:element_78"; - MinecraftBlockTypes["Element79"] = "minecraft:element_79"; - MinecraftBlockTypes["Element8"] = "minecraft:element_8"; - MinecraftBlockTypes["Element80"] = "minecraft:element_80"; - MinecraftBlockTypes["Element81"] = "minecraft:element_81"; - MinecraftBlockTypes["Element82"] = "minecraft:element_82"; - MinecraftBlockTypes["Element83"] = "minecraft:element_83"; - MinecraftBlockTypes["Element84"] = "minecraft:element_84"; - MinecraftBlockTypes["Element85"] = "minecraft:element_85"; - MinecraftBlockTypes["Element86"] = "minecraft:element_86"; - MinecraftBlockTypes["Element87"] = "minecraft:element_87"; - MinecraftBlockTypes["Element88"] = "minecraft:element_88"; - MinecraftBlockTypes["Element89"] = "minecraft:element_89"; - MinecraftBlockTypes["Element9"] = "minecraft:element_9"; - MinecraftBlockTypes["Element90"] = "minecraft:element_90"; - MinecraftBlockTypes["Element91"] = "minecraft:element_91"; - MinecraftBlockTypes["Element92"] = "minecraft:element_92"; - MinecraftBlockTypes["Element93"] = "minecraft:element_93"; - MinecraftBlockTypes["Element94"] = "minecraft:element_94"; - MinecraftBlockTypes["Element95"] = "minecraft:element_95"; - MinecraftBlockTypes["Element96"] = "minecraft:element_96"; - MinecraftBlockTypes["Element97"] = "minecraft:element_97"; - MinecraftBlockTypes["Element98"] = "minecraft:element_98"; - MinecraftBlockTypes["Element99"] = "minecraft:element_99"; - MinecraftBlockTypes["EmeraldBlock"] = "minecraft:emerald_block"; - MinecraftBlockTypes["EmeraldOre"] = "minecraft:emerald_ore"; - MinecraftBlockTypes["EnchantingTable"] = "minecraft:enchanting_table"; - MinecraftBlockTypes["EndBrickStairs"] = "minecraft:end_brick_stairs"; - MinecraftBlockTypes["EndBricks"] = "minecraft:end_bricks"; - MinecraftBlockTypes["EndGateway"] = "minecraft:end_gateway"; - MinecraftBlockTypes["EndPortal"] = "minecraft:end_portal"; - MinecraftBlockTypes["EndPortalFrame"] = "minecraft:end_portal_frame"; - MinecraftBlockTypes["EndRod"] = "minecraft:end_rod"; - MinecraftBlockTypes["EndStone"] = "minecraft:end_stone"; - MinecraftBlockTypes["EnderChest"] = "minecraft:ender_chest"; - MinecraftBlockTypes["ExposedCopper"] = "minecraft:exposed_copper"; - MinecraftBlockTypes["ExposedCutCopper"] = "minecraft:exposed_cut_copper"; - MinecraftBlockTypes["ExposedCutCopperSlab"] = "minecraft:exposed_cut_copper_slab"; - MinecraftBlockTypes["ExposedCutCopperStairs"] = "minecraft:exposed_cut_copper_stairs"; - MinecraftBlockTypes["ExposedDoubleCutCopperSlab"] = "minecraft:exposed_double_cut_copper_slab"; - MinecraftBlockTypes["Farmland"] = "minecraft:farmland"; - MinecraftBlockTypes["FenceGate"] = "minecraft:fence_gate"; - MinecraftBlockTypes["Fire"] = "minecraft:fire"; - MinecraftBlockTypes["FireCoral"] = "minecraft:fire_coral"; - MinecraftBlockTypes["FletchingTable"] = "minecraft:fletching_table"; - MinecraftBlockTypes["FlowerPot"] = "minecraft:flower_pot"; - MinecraftBlockTypes["FloweringAzalea"] = "minecraft:flowering_azalea"; - MinecraftBlockTypes["FlowingLava"] = "minecraft:flowing_lava"; - MinecraftBlockTypes["FlowingWater"] = "minecraft:flowing_water"; - MinecraftBlockTypes["Frame"] = "minecraft:frame"; - MinecraftBlockTypes["FrogSpawn"] = "minecraft:frog_spawn"; - MinecraftBlockTypes["FrostedIce"] = "minecraft:frosted_ice"; - MinecraftBlockTypes["Furnace"] = "minecraft:furnace"; - MinecraftBlockTypes["GildedBlackstone"] = "minecraft:gilded_blackstone"; - MinecraftBlockTypes["Glass"] = "minecraft:glass"; - MinecraftBlockTypes["GlassPane"] = "minecraft:glass_pane"; - MinecraftBlockTypes["GlowFrame"] = "minecraft:glow_frame"; - MinecraftBlockTypes["GlowLichen"] = "minecraft:glow_lichen"; - MinecraftBlockTypes["Glowingobsidian"] = "minecraft:glowingobsidian"; - MinecraftBlockTypes["Glowstone"] = "minecraft:glowstone"; - MinecraftBlockTypes["GoldBlock"] = "minecraft:gold_block"; - MinecraftBlockTypes["GoldOre"] = "minecraft:gold_ore"; - MinecraftBlockTypes["GoldenRail"] = "minecraft:golden_rail"; - MinecraftBlockTypes["GraniteStairs"] = "minecraft:granite_stairs"; - MinecraftBlockTypes["Grass"] = "minecraft:grass"; - MinecraftBlockTypes["GrassPath"] = "minecraft:grass_path"; - MinecraftBlockTypes["Gravel"] = "minecraft:gravel"; - MinecraftBlockTypes["GrayCandle"] = "minecraft:gray_candle"; - MinecraftBlockTypes["GrayCandleCake"] = "minecraft:gray_candle_cake"; - MinecraftBlockTypes["GrayCarpet"] = "minecraft:gray_carpet"; - MinecraftBlockTypes["GrayConcrete"] = "minecraft:gray_concrete"; - MinecraftBlockTypes["GrayGlazedTerracotta"] = "minecraft:gray_glazed_terracotta"; - MinecraftBlockTypes["GrayShulkerBox"] = "minecraft:gray_shulker_box"; - MinecraftBlockTypes["GrayWool"] = "minecraft:gray_wool"; - MinecraftBlockTypes["GreenCandle"] = "minecraft:green_candle"; - MinecraftBlockTypes["GreenCandleCake"] = "minecraft:green_candle_cake"; - MinecraftBlockTypes["GreenCarpet"] = "minecraft:green_carpet"; - MinecraftBlockTypes["GreenConcrete"] = "minecraft:green_concrete"; - MinecraftBlockTypes["GreenGlazedTerracotta"] = "minecraft:green_glazed_terracotta"; - MinecraftBlockTypes["GreenShulkerBox"] = "minecraft:green_shulker_box"; - MinecraftBlockTypes["GreenWool"] = "minecraft:green_wool"; - MinecraftBlockTypes["Grindstone"] = "minecraft:grindstone"; - MinecraftBlockTypes["HangingRoots"] = "minecraft:hanging_roots"; - MinecraftBlockTypes["HardGlass"] = "minecraft:hard_glass"; - MinecraftBlockTypes["HardGlassPane"] = "minecraft:hard_glass_pane"; - MinecraftBlockTypes["HardStainedGlass"] = "minecraft:hard_stained_glass"; - MinecraftBlockTypes["HardStainedGlassPane"] = "minecraft:hard_stained_glass_pane"; - MinecraftBlockTypes["HardenedClay"] = "minecraft:hardened_clay"; - MinecraftBlockTypes["HayBlock"] = "minecraft:hay_block"; - MinecraftBlockTypes["HeavyWeightedPressurePlate"] = "minecraft:heavy_weighted_pressure_plate"; - MinecraftBlockTypes["HoneyBlock"] = "minecraft:honey_block"; - MinecraftBlockTypes["HoneycombBlock"] = "minecraft:honeycomb_block"; - MinecraftBlockTypes["Hopper"] = "minecraft:hopper"; - MinecraftBlockTypes["HornCoral"] = "minecraft:horn_coral"; - MinecraftBlockTypes["Ice"] = "minecraft:ice"; - MinecraftBlockTypes["InfestedDeepslate"] = "minecraft:infested_deepslate"; - MinecraftBlockTypes["InfoUpdate"] = "minecraft:info_update"; - MinecraftBlockTypes["InfoUpdate2"] = "minecraft:info_update2"; - MinecraftBlockTypes["InvisibleBedrock"] = "minecraft:invisible_bedrock"; - MinecraftBlockTypes["IronBars"] = "minecraft:iron_bars"; - MinecraftBlockTypes["IronBlock"] = "minecraft:iron_block"; - MinecraftBlockTypes["IronDoor"] = "minecraft:iron_door"; - MinecraftBlockTypes["IronOre"] = "minecraft:iron_ore"; - MinecraftBlockTypes["IronTrapdoor"] = "minecraft:iron_trapdoor"; - MinecraftBlockTypes["Jigsaw"] = "minecraft:jigsaw"; - MinecraftBlockTypes["Jukebox"] = "minecraft:jukebox"; - MinecraftBlockTypes["JungleButton"] = "minecraft:jungle_button"; - MinecraftBlockTypes["JungleDoor"] = "minecraft:jungle_door"; - MinecraftBlockTypes["JungleFence"] = "minecraft:jungle_fence"; - MinecraftBlockTypes["JungleFenceGate"] = "minecraft:jungle_fence_gate"; - MinecraftBlockTypes["JungleHangingSign"] = "minecraft:jungle_hanging_sign"; - MinecraftBlockTypes["JungleLog"] = "minecraft:jungle_log"; - MinecraftBlockTypes["JunglePressurePlate"] = "minecraft:jungle_pressure_plate"; - MinecraftBlockTypes["JungleStairs"] = "minecraft:jungle_stairs"; - MinecraftBlockTypes["JungleStandingSign"] = "minecraft:jungle_standing_sign"; - MinecraftBlockTypes["JungleTrapdoor"] = "minecraft:jungle_trapdoor"; - MinecraftBlockTypes["JungleWallSign"] = "minecraft:jungle_wall_sign"; - MinecraftBlockTypes["Kelp"] = "minecraft:kelp"; - MinecraftBlockTypes["Ladder"] = "minecraft:ladder"; - MinecraftBlockTypes["Lantern"] = "minecraft:lantern"; - MinecraftBlockTypes["LapisBlock"] = "minecraft:lapis_block"; - MinecraftBlockTypes["LapisOre"] = "minecraft:lapis_ore"; - MinecraftBlockTypes["LargeAmethystBud"] = "minecraft:large_amethyst_bud"; - MinecraftBlockTypes["Lava"] = "minecraft:lava"; - MinecraftBlockTypes["Leaves"] = "minecraft:leaves"; - MinecraftBlockTypes["Leaves2"] = "minecraft:leaves2"; - MinecraftBlockTypes["Lectern"] = "minecraft:lectern"; - MinecraftBlockTypes["Lever"] = "minecraft:lever"; - MinecraftBlockTypes["LightBlock"] = "minecraft:light_block"; - MinecraftBlockTypes["LightBlueCandle"] = "minecraft:light_blue_candle"; - MinecraftBlockTypes["LightBlueCandleCake"] = "minecraft:light_blue_candle_cake"; - MinecraftBlockTypes["LightBlueCarpet"] = "minecraft:light_blue_carpet"; - MinecraftBlockTypes["LightBlueConcrete"] = "minecraft:light_blue_concrete"; - MinecraftBlockTypes["LightBlueGlazedTerracotta"] = "minecraft:light_blue_glazed_terracotta"; - MinecraftBlockTypes["LightBlueShulkerBox"] = "minecraft:light_blue_shulker_box"; - MinecraftBlockTypes["LightBlueWool"] = "minecraft:light_blue_wool"; - MinecraftBlockTypes["LightGrayCandle"] = "minecraft:light_gray_candle"; - MinecraftBlockTypes["LightGrayCandleCake"] = "minecraft:light_gray_candle_cake"; - MinecraftBlockTypes["LightGrayCarpet"] = "minecraft:light_gray_carpet"; - MinecraftBlockTypes["LightGrayConcrete"] = "minecraft:light_gray_concrete"; - MinecraftBlockTypes["LightGrayShulkerBox"] = "minecraft:light_gray_shulker_box"; - MinecraftBlockTypes["LightGrayWool"] = "minecraft:light_gray_wool"; - MinecraftBlockTypes["LightWeightedPressurePlate"] = "minecraft:light_weighted_pressure_plate"; - MinecraftBlockTypes["LightningRod"] = "minecraft:lightning_rod"; - MinecraftBlockTypes["LimeCandle"] = "minecraft:lime_candle"; - MinecraftBlockTypes["LimeCandleCake"] = "minecraft:lime_candle_cake"; - MinecraftBlockTypes["LimeCarpet"] = "minecraft:lime_carpet"; - MinecraftBlockTypes["LimeConcrete"] = "minecraft:lime_concrete"; - MinecraftBlockTypes["LimeGlazedTerracotta"] = "minecraft:lime_glazed_terracotta"; - MinecraftBlockTypes["LimeShulkerBox"] = "minecraft:lime_shulker_box"; - MinecraftBlockTypes["LimeWool"] = "minecraft:lime_wool"; - MinecraftBlockTypes["LitBlastFurnace"] = "minecraft:lit_blast_furnace"; - MinecraftBlockTypes["LitDeepslateRedstoneOre"] = "minecraft:lit_deepslate_redstone_ore"; - MinecraftBlockTypes["LitFurnace"] = "minecraft:lit_furnace"; - MinecraftBlockTypes["LitPumpkin"] = "minecraft:lit_pumpkin"; - MinecraftBlockTypes["LitRedstoneLamp"] = "minecraft:lit_redstone_lamp"; - MinecraftBlockTypes["LitRedstoneOre"] = "minecraft:lit_redstone_ore"; - MinecraftBlockTypes["LitSmoker"] = "minecraft:lit_smoker"; - MinecraftBlockTypes["Lodestone"] = "minecraft:lodestone"; - MinecraftBlockTypes["Loom"] = "minecraft:loom"; - MinecraftBlockTypes["MagentaCandle"] = "minecraft:magenta_candle"; - MinecraftBlockTypes["MagentaCandleCake"] = "minecraft:magenta_candle_cake"; - MinecraftBlockTypes["MagentaCarpet"] = "minecraft:magenta_carpet"; - MinecraftBlockTypes["MagentaConcrete"] = "minecraft:magenta_concrete"; - MinecraftBlockTypes["MagentaGlazedTerracotta"] = "minecraft:magenta_glazed_terracotta"; - MinecraftBlockTypes["MagentaShulkerBox"] = "minecraft:magenta_shulker_box"; - MinecraftBlockTypes["MagentaWool"] = "minecraft:magenta_wool"; - MinecraftBlockTypes["Magma"] = "minecraft:magma"; - MinecraftBlockTypes["MangroveButton"] = "minecraft:mangrove_button"; - MinecraftBlockTypes["MangroveDoor"] = "minecraft:mangrove_door"; - MinecraftBlockTypes["MangroveDoubleSlab"] = "minecraft:mangrove_double_slab"; - MinecraftBlockTypes["MangroveFence"] = "minecraft:mangrove_fence"; - MinecraftBlockTypes["MangroveFenceGate"] = "minecraft:mangrove_fence_gate"; - MinecraftBlockTypes["MangroveHangingSign"] = "minecraft:mangrove_hanging_sign"; - MinecraftBlockTypes["MangroveLeaves"] = "minecraft:mangrove_leaves"; - MinecraftBlockTypes["MangroveLog"] = "minecraft:mangrove_log"; - MinecraftBlockTypes["MangrovePlanks"] = "minecraft:mangrove_planks"; - MinecraftBlockTypes["MangrovePressurePlate"] = "minecraft:mangrove_pressure_plate"; - MinecraftBlockTypes["MangrovePropagule"] = "minecraft:mangrove_propagule"; - MinecraftBlockTypes["MangroveRoots"] = "minecraft:mangrove_roots"; - MinecraftBlockTypes["MangroveSlab"] = "minecraft:mangrove_slab"; - MinecraftBlockTypes["MangroveStairs"] = "minecraft:mangrove_stairs"; - MinecraftBlockTypes["MangroveStandingSign"] = "minecraft:mangrove_standing_sign"; - MinecraftBlockTypes["MangroveTrapdoor"] = "minecraft:mangrove_trapdoor"; - MinecraftBlockTypes["MangroveWallSign"] = "minecraft:mangrove_wall_sign"; - MinecraftBlockTypes["MangroveWood"] = "minecraft:mangrove_wood"; - MinecraftBlockTypes["MediumAmethystBud"] = "minecraft:medium_amethyst_bud"; - MinecraftBlockTypes["MelonBlock"] = "minecraft:melon_block"; - MinecraftBlockTypes["MelonStem"] = "minecraft:melon_stem"; - MinecraftBlockTypes["MobSpawner"] = "minecraft:mob_spawner"; - MinecraftBlockTypes["MonsterEgg"] = "minecraft:monster_egg"; - MinecraftBlockTypes["MossBlock"] = "minecraft:moss_block"; - MinecraftBlockTypes["MossCarpet"] = "minecraft:moss_carpet"; - MinecraftBlockTypes["MossyCobblestone"] = "minecraft:mossy_cobblestone"; - MinecraftBlockTypes["MossyCobblestoneStairs"] = "minecraft:mossy_cobblestone_stairs"; - MinecraftBlockTypes["MossyStoneBrickStairs"] = "minecraft:mossy_stone_brick_stairs"; - MinecraftBlockTypes["MovingBlock"] = "minecraft:moving_block"; - MinecraftBlockTypes["Mud"] = "minecraft:mud"; - MinecraftBlockTypes["MudBrickDoubleSlab"] = "minecraft:mud_brick_double_slab"; - MinecraftBlockTypes["MudBrickSlab"] = "minecraft:mud_brick_slab"; - MinecraftBlockTypes["MudBrickStairs"] = "minecraft:mud_brick_stairs"; - MinecraftBlockTypes["MudBrickWall"] = "minecraft:mud_brick_wall"; - MinecraftBlockTypes["MudBricks"] = "minecraft:mud_bricks"; - MinecraftBlockTypes["MuddyMangroveRoots"] = "minecraft:muddy_mangrove_roots"; - MinecraftBlockTypes["Mycelium"] = "minecraft:mycelium"; - MinecraftBlockTypes["NetherBrick"] = "minecraft:nether_brick"; - MinecraftBlockTypes["NetherBrickFence"] = "minecraft:nether_brick_fence"; - MinecraftBlockTypes["NetherBrickStairs"] = "minecraft:nether_brick_stairs"; - MinecraftBlockTypes["NetherGoldOre"] = "minecraft:nether_gold_ore"; - MinecraftBlockTypes["NetherSprouts"] = "minecraft:nether_sprouts"; - MinecraftBlockTypes["NetherWart"] = "minecraft:nether_wart"; - MinecraftBlockTypes["NetherWartBlock"] = "minecraft:nether_wart_block"; - MinecraftBlockTypes["NetheriteBlock"] = "minecraft:netherite_block"; - MinecraftBlockTypes["Netherrack"] = "minecraft:netherrack"; - MinecraftBlockTypes["Netherreactor"] = "minecraft:netherreactor"; - MinecraftBlockTypes["NormalStoneStairs"] = "minecraft:normal_stone_stairs"; - MinecraftBlockTypes["Noteblock"] = "minecraft:noteblock"; - MinecraftBlockTypes["OakFence"] = "minecraft:oak_fence"; - MinecraftBlockTypes["OakHangingSign"] = "minecraft:oak_hanging_sign"; - MinecraftBlockTypes["OakLog"] = "minecraft:oak_log"; - MinecraftBlockTypes["OakStairs"] = "minecraft:oak_stairs"; - MinecraftBlockTypes["Observer"] = "minecraft:observer"; - MinecraftBlockTypes["Obsidian"] = "minecraft:obsidian"; - MinecraftBlockTypes["OchreFroglight"] = "minecraft:ochre_froglight"; - MinecraftBlockTypes["OrangeCandle"] = "minecraft:orange_candle"; - MinecraftBlockTypes["OrangeCandleCake"] = "minecraft:orange_candle_cake"; - MinecraftBlockTypes["OrangeCarpet"] = "minecraft:orange_carpet"; - MinecraftBlockTypes["OrangeConcrete"] = "minecraft:orange_concrete"; - MinecraftBlockTypes["OrangeGlazedTerracotta"] = "minecraft:orange_glazed_terracotta"; - MinecraftBlockTypes["OrangeShulkerBox"] = "minecraft:orange_shulker_box"; - MinecraftBlockTypes["OrangeWool"] = "minecraft:orange_wool"; - MinecraftBlockTypes["OxidizedCopper"] = "minecraft:oxidized_copper"; - MinecraftBlockTypes["OxidizedCutCopper"] = "minecraft:oxidized_cut_copper"; - MinecraftBlockTypes["OxidizedCutCopperSlab"] = "minecraft:oxidized_cut_copper_slab"; - MinecraftBlockTypes["OxidizedCutCopperStairs"] = "minecraft:oxidized_cut_copper_stairs"; - MinecraftBlockTypes["OxidizedDoubleCutCopperSlab"] = "minecraft:oxidized_double_cut_copper_slab"; - MinecraftBlockTypes["PackedIce"] = "minecraft:packed_ice"; - MinecraftBlockTypes["PackedMud"] = "minecraft:packed_mud"; - MinecraftBlockTypes["PearlescentFroglight"] = "minecraft:pearlescent_froglight"; - MinecraftBlockTypes["PinkCandle"] = "minecraft:pink_candle"; - MinecraftBlockTypes["PinkCandleCake"] = "minecraft:pink_candle_cake"; - MinecraftBlockTypes["PinkCarpet"] = "minecraft:pink_carpet"; - MinecraftBlockTypes["PinkConcrete"] = "minecraft:pink_concrete"; - MinecraftBlockTypes["PinkGlazedTerracotta"] = "minecraft:pink_glazed_terracotta"; - MinecraftBlockTypes["PinkPetals"] = "minecraft:pink_petals"; - MinecraftBlockTypes["PinkShulkerBox"] = "minecraft:pink_shulker_box"; - MinecraftBlockTypes["PinkWool"] = "minecraft:pink_wool"; - MinecraftBlockTypes["Piston"] = "minecraft:piston"; - MinecraftBlockTypes["PistonArmCollision"] = "minecraft:piston_arm_collision"; - MinecraftBlockTypes["PitcherCrop"] = "minecraft:pitcher_crop"; - MinecraftBlockTypes["PitcherPlant"] = "minecraft:pitcher_plant"; - MinecraftBlockTypes["Planks"] = "minecraft:planks"; - MinecraftBlockTypes["Podzol"] = "minecraft:podzol"; - MinecraftBlockTypes["PointedDripstone"] = "minecraft:pointed_dripstone"; - MinecraftBlockTypes["PolishedAndesiteStairs"] = "minecraft:polished_andesite_stairs"; - MinecraftBlockTypes["PolishedBasalt"] = "minecraft:polished_basalt"; - MinecraftBlockTypes["PolishedBlackstone"] = "minecraft:polished_blackstone"; - MinecraftBlockTypes["PolishedBlackstoneBrickDoubleSlab"] = "minecraft:polished_blackstone_brick_double_slab"; - MinecraftBlockTypes["PolishedBlackstoneBrickSlab"] = "minecraft:polished_blackstone_brick_slab"; - MinecraftBlockTypes["PolishedBlackstoneBrickStairs"] = "minecraft:polished_blackstone_brick_stairs"; - MinecraftBlockTypes["PolishedBlackstoneBrickWall"] = "minecraft:polished_blackstone_brick_wall"; - MinecraftBlockTypes["PolishedBlackstoneBricks"] = "minecraft:polished_blackstone_bricks"; - MinecraftBlockTypes["PolishedBlackstoneButton"] = "minecraft:polished_blackstone_button"; - MinecraftBlockTypes["PolishedBlackstoneDoubleSlab"] = "minecraft:polished_blackstone_double_slab"; - MinecraftBlockTypes["PolishedBlackstonePressurePlate"] = "minecraft:polished_blackstone_pressure_plate"; - MinecraftBlockTypes["PolishedBlackstoneSlab"] = "minecraft:polished_blackstone_slab"; - MinecraftBlockTypes["PolishedBlackstoneStairs"] = "minecraft:polished_blackstone_stairs"; - MinecraftBlockTypes["PolishedBlackstoneWall"] = "minecraft:polished_blackstone_wall"; - MinecraftBlockTypes["PolishedDeepslate"] = "minecraft:polished_deepslate"; - MinecraftBlockTypes["PolishedDeepslateDoubleSlab"] = "minecraft:polished_deepslate_double_slab"; - MinecraftBlockTypes["PolishedDeepslateSlab"] = "minecraft:polished_deepslate_slab"; - MinecraftBlockTypes["PolishedDeepslateStairs"] = "minecraft:polished_deepslate_stairs"; - MinecraftBlockTypes["PolishedDeepslateWall"] = "minecraft:polished_deepslate_wall"; - MinecraftBlockTypes["PolishedDioriteStairs"] = "minecraft:polished_diorite_stairs"; - MinecraftBlockTypes["PolishedGraniteStairs"] = "minecraft:polished_granite_stairs"; - MinecraftBlockTypes["Portal"] = "minecraft:portal"; - MinecraftBlockTypes["Potatoes"] = "minecraft:potatoes"; - MinecraftBlockTypes["PowderSnow"] = "minecraft:powder_snow"; - MinecraftBlockTypes["PoweredComparator"] = "minecraft:powered_comparator"; - MinecraftBlockTypes["PoweredRepeater"] = "minecraft:powered_repeater"; - MinecraftBlockTypes["Prismarine"] = "minecraft:prismarine"; - MinecraftBlockTypes["PrismarineBricksStairs"] = "minecraft:prismarine_bricks_stairs"; - MinecraftBlockTypes["PrismarineStairs"] = "minecraft:prismarine_stairs"; - MinecraftBlockTypes["Pumpkin"] = "minecraft:pumpkin"; - MinecraftBlockTypes["PumpkinStem"] = "minecraft:pumpkin_stem"; - MinecraftBlockTypes["PurpleCandle"] = "minecraft:purple_candle"; - MinecraftBlockTypes["PurpleCandleCake"] = "minecraft:purple_candle_cake"; - MinecraftBlockTypes["PurpleCarpet"] = "minecraft:purple_carpet"; - MinecraftBlockTypes["PurpleConcrete"] = "minecraft:purple_concrete"; - MinecraftBlockTypes["PurpleGlazedTerracotta"] = "minecraft:purple_glazed_terracotta"; - MinecraftBlockTypes["PurpleShulkerBox"] = "minecraft:purple_shulker_box"; - MinecraftBlockTypes["PurpleWool"] = "minecraft:purple_wool"; - MinecraftBlockTypes["PurpurBlock"] = "minecraft:purpur_block"; - MinecraftBlockTypes["PurpurStairs"] = "minecraft:purpur_stairs"; - MinecraftBlockTypes["QuartzBlock"] = "minecraft:quartz_block"; - MinecraftBlockTypes["QuartzBricks"] = "minecraft:quartz_bricks"; - MinecraftBlockTypes["QuartzOre"] = "minecraft:quartz_ore"; - MinecraftBlockTypes["QuartzStairs"] = "minecraft:quartz_stairs"; - MinecraftBlockTypes["Rail"] = "minecraft:rail"; - MinecraftBlockTypes["RawCopperBlock"] = "minecraft:raw_copper_block"; - MinecraftBlockTypes["RawGoldBlock"] = "minecraft:raw_gold_block"; - MinecraftBlockTypes["RawIronBlock"] = "minecraft:raw_iron_block"; - MinecraftBlockTypes["RedCandle"] = "minecraft:red_candle"; - MinecraftBlockTypes["RedCandleCake"] = "minecraft:red_candle_cake"; - MinecraftBlockTypes["RedCarpet"] = "minecraft:red_carpet"; - MinecraftBlockTypes["RedConcrete"] = "minecraft:red_concrete"; - MinecraftBlockTypes["RedFlower"] = "minecraft:red_flower"; - MinecraftBlockTypes["RedGlazedTerracotta"] = "minecraft:red_glazed_terracotta"; - MinecraftBlockTypes["RedMushroom"] = "minecraft:red_mushroom"; - MinecraftBlockTypes["RedMushroomBlock"] = "minecraft:red_mushroom_block"; - MinecraftBlockTypes["RedNetherBrick"] = "minecraft:red_nether_brick"; - MinecraftBlockTypes["RedNetherBrickStairs"] = "minecraft:red_nether_brick_stairs"; - MinecraftBlockTypes["RedSandstone"] = "minecraft:red_sandstone"; - MinecraftBlockTypes["RedSandstoneStairs"] = "minecraft:red_sandstone_stairs"; - MinecraftBlockTypes["RedShulkerBox"] = "minecraft:red_shulker_box"; - MinecraftBlockTypes["RedWool"] = "minecraft:red_wool"; - MinecraftBlockTypes["RedstoneBlock"] = "minecraft:redstone_block"; - MinecraftBlockTypes["RedstoneLamp"] = "minecraft:redstone_lamp"; - MinecraftBlockTypes["RedstoneOre"] = "minecraft:redstone_ore"; - MinecraftBlockTypes["RedstoneTorch"] = "minecraft:redstone_torch"; - MinecraftBlockTypes["RedstoneWire"] = "minecraft:redstone_wire"; - MinecraftBlockTypes["Reeds"] = "minecraft:reeds"; - MinecraftBlockTypes["ReinforcedDeepslate"] = "minecraft:reinforced_deepslate"; - MinecraftBlockTypes["RepeatingCommandBlock"] = "minecraft:repeating_command_block"; - MinecraftBlockTypes["Reserved6"] = "minecraft:reserved6"; - MinecraftBlockTypes["RespawnAnchor"] = "minecraft:respawn_anchor"; - MinecraftBlockTypes["Sand"] = "minecraft:sand"; - MinecraftBlockTypes["Sandstone"] = "minecraft:sandstone"; - MinecraftBlockTypes["SandstoneStairs"] = "minecraft:sandstone_stairs"; - MinecraftBlockTypes["Sapling"] = "minecraft:sapling"; - MinecraftBlockTypes["Scaffolding"] = "minecraft:scaffolding"; - MinecraftBlockTypes["Sculk"] = "minecraft:sculk"; - MinecraftBlockTypes["SculkCatalyst"] = "minecraft:sculk_catalyst"; - MinecraftBlockTypes["SculkSensor"] = "minecraft:sculk_sensor"; - MinecraftBlockTypes["SculkShrieker"] = "minecraft:sculk_shrieker"; - MinecraftBlockTypes["SculkVein"] = "minecraft:sculk_vein"; - MinecraftBlockTypes["SeaLantern"] = "minecraft:sea_lantern"; - MinecraftBlockTypes["SeaPickle"] = "minecraft:sea_pickle"; - MinecraftBlockTypes["Seagrass"] = "minecraft:seagrass"; - MinecraftBlockTypes["Shroomlight"] = "minecraft:shroomlight"; - MinecraftBlockTypes["SilverGlazedTerracotta"] = "minecraft:silver_glazed_terracotta"; - MinecraftBlockTypes["Skull"] = "minecraft:skull"; - MinecraftBlockTypes["Slime"] = "minecraft:slime"; - MinecraftBlockTypes["SmallAmethystBud"] = "minecraft:small_amethyst_bud"; - MinecraftBlockTypes["SmallDripleafBlock"] = "minecraft:small_dripleaf_block"; - MinecraftBlockTypes["SmithingTable"] = "minecraft:smithing_table"; - MinecraftBlockTypes["Smoker"] = "minecraft:smoker"; - MinecraftBlockTypes["SmoothBasalt"] = "minecraft:smooth_basalt"; - MinecraftBlockTypes["SmoothQuartzStairs"] = "minecraft:smooth_quartz_stairs"; - MinecraftBlockTypes["SmoothRedSandstoneStairs"] = "minecraft:smooth_red_sandstone_stairs"; - MinecraftBlockTypes["SmoothSandstoneStairs"] = "minecraft:smooth_sandstone_stairs"; - MinecraftBlockTypes["SmoothStone"] = "minecraft:smooth_stone"; - MinecraftBlockTypes["SnifferEgg"] = "minecraft:sniffer_egg"; - MinecraftBlockTypes["Snow"] = "minecraft:snow"; - MinecraftBlockTypes["SnowLayer"] = "minecraft:snow_layer"; - MinecraftBlockTypes["SoulCampfire"] = "minecraft:soul_campfire"; - MinecraftBlockTypes["SoulFire"] = "minecraft:soul_fire"; - MinecraftBlockTypes["SoulLantern"] = "minecraft:soul_lantern"; - MinecraftBlockTypes["SoulSand"] = "minecraft:soul_sand"; - MinecraftBlockTypes["SoulSoil"] = "minecraft:soul_soil"; - MinecraftBlockTypes["SoulTorch"] = "minecraft:soul_torch"; - MinecraftBlockTypes["Sponge"] = "minecraft:sponge"; - MinecraftBlockTypes["SporeBlossom"] = "minecraft:spore_blossom"; - MinecraftBlockTypes["SpruceButton"] = "minecraft:spruce_button"; - MinecraftBlockTypes["SpruceDoor"] = "minecraft:spruce_door"; - MinecraftBlockTypes["SpruceFence"] = "minecraft:spruce_fence"; - MinecraftBlockTypes["SpruceFenceGate"] = "minecraft:spruce_fence_gate"; - MinecraftBlockTypes["SpruceHangingSign"] = "minecraft:spruce_hanging_sign"; - MinecraftBlockTypes["SpruceLog"] = "minecraft:spruce_log"; - MinecraftBlockTypes["SprucePressurePlate"] = "minecraft:spruce_pressure_plate"; - MinecraftBlockTypes["SpruceStairs"] = "minecraft:spruce_stairs"; - MinecraftBlockTypes["SpruceStandingSign"] = "minecraft:spruce_standing_sign"; - MinecraftBlockTypes["SpruceTrapdoor"] = "minecraft:spruce_trapdoor"; - MinecraftBlockTypes["SpruceWallSign"] = "minecraft:spruce_wall_sign"; - MinecraftBlockTypes["StainedGlass"] = "minecraft:stained_glass"; - MinecraftBlockTypes["StainedGlassPane"] = "minecraft:stained_glass_pane"; - MinecraftBlockTypes["StainedHardenedClay"] = "minecraft:stained_hardened_clay"; - MinecraftBlockTypes["StandingBanner"] = "minecraft:standing_banner"; - MinecraftBlockTypes["StandingSign"] = "minecraft:standing_sign"; - MinecraftBlockTypes["StickyPiston"] = "minecraft:sticky_piston"; - MinecraftBlockTypes["StickyPistonArmCollision"] = "minecraft:sticky_piston_arm_collision"; - MinecraftBlockTypes["Stone"] = "minecraft:stone"; - MinecraftBlockTypes["StoneBlockSlab"] = "minecraft:stone_block_slab"; - MinecraftBlockTypes["StoneBlockSlab2"] = "minecraft:stone_block_slab2"; - MinecraftBlockTypes["StoneBlockSlab3"] = "minecraft:stone_block_slab3"; - MinecraftBlockTypes["StoneBlockSlab4"] = "minecraft:stone_block_slab4"; - MinecraftBlockTypes["StoneBrickStairs"] = "minecraft:stone_brick_stairs"; - MinecraftBlockTypes["StoneButton"] = "minecraft:stone_button"; - MinecraftBlockTypes["StonePressurePlate"] = "minecraft:stone_pressure_plate"; - MinecraftBlockTypes["StoneStairs"] = "minecraft:stone_stairs"; - MinecraftBlockTypes["Stonebrick"] = "minecraft:stonebrick"; - MinecraftBlockTypes["Stonecutter"] = "minecraft:stonecutter"; - MinecraftBlockTypes["StonecutterBlock"] = "minecraft:stonecutter_block"; - MinecraftBlockTypes["StrippedAcaciaLog"] = "minecraft:stripped_acacia_log"; - MinecraftBlockTypes["StrippedBambooBlock"] = "minecraft:stripped_bamboo_block"; - MinecraftBlockTypes["StrippedBirchLog"] = "minecraft:stripped_birch_log"; - MinecraftBlockTypes["StrippedCherryLog"] = "minecraft:stripped_cherry_log"; - MinecraftBlockTypes["StrippedCherryWood"] = "minecraft:stripped_cherry_wood"; - MinecraftBlockTypes["StrippedCrimsonHyphae"] = "minecraft:stripped_crimson_hyphae"; - MinecraftBlockTypes["StrippedCrimsonStem"] = "minecraft:stripped_crimson_stem"; - MinecraftBlockTypes["StrippedDarkOakLog"] = "minecraft:stripped_dark_oak_log"; - MinecraftBlockTypes["StrippedJungleLog"] = "minecraft:stripped_jungle_log"; - MinecraftBlockTypes["StrippedMangroveLog"] = "minecraft:stripped_mangrove_log"; - MinecraftBlockTypes["StrippedMangroveWood"] = "minecraft:stripped_mangrove_wood"; - MinecraftBlockTypes["StrippedOakLog"] = "minecraft:stripped_oak_log"; - MinecraftBlockTypes["StrippedSpruceLog"] = "minecraft:stripped_spruce_log"; - MinecraftBlockTypes["StrippedWarpedHyphae"] = "minecraft:stripped_warped_hyphae"; - MinecraftBlockTypes["StrippedWarpedStem"] = "minecraft:stripped_warped_stem"; - MinecraftBlockTypes["StructureBlock"] = "minecraft:structure_block"; - MinecraftBlockTypes["StructureVoid"] = "minecraft:structure_void"; - MinecraftBlockTypes["SuspiciousGravel"] = "minecraft:suspicious_gravel"; - MinecraftBlockTypes["SuspiciousSand"] = "minecraft:suspicious_sand"; - MinecraftBlockTypes["SweetBerryBush"] = "minecraft:sweet_berry_bush"; - MinecraftBlockTypes["Tallgrass"] = "minecraft:tallgrass"; - MinecraftBlockTypes["Target"] = "minecraft:target"; - MinecraftBlockTypes["TintedGlass"] = "minecraft:tinted_glass"; - MinecraftBlockTypes["Tnt"] = "minecraft:tnt"; - MinecraftBlockTypes["Torch"] = "minecraft:torch"; - MinecraftBlockTypes["Torchflower"] = "minecraft:torchflower"; - MinecraftBlockTypes["TorchflowerCrop"] = "minecraft:torchflower_crop"; - MinecraftBlockTypes["Trapdoor"] = "minecraft:trapdoor"; - MinecraftBlockTypes["TrappedChest"] = "minecraft:trapped_chest"; - MinecraftBlockTypes["TripWire"] = "minecraft:trip_wire"; - MinecraftBlockTypes["TripwireHook"] = "minecraft:tripwire_hook"; - MinecraftBlockTypes["TubeCoral"] = "minecraft:tube_coral"; - MinecraftBlockTypes["Tuff"] = "minecraft:tuff"; - MinecraftBlockTypes["TurtleEgg"] = "minecraft:turtle_egg"; - MinecraftBlockTypes["TwistingVines"] = "minecraft:twisting_vines"; - MinecraftBlockTypes["UnderwaterTorch"] = "minecraft:underwater_torch"; - MinecraftBlockTypes["UndyedShulkerBox"] = "minecraft:undyed_shulker_box"; - MinecraftBlockTypes["Unknown"] = "minecraft:unknown"; - MinecraftBlockTypes["UnlitRedstoneTorch"] = "minecraft:unlit_redstone_torch"; - MinecraftBlockTypes["UnpoweredComparator"] = "minecraft:unpowered_comparator"; - MinecraftBlockTypes["UnpoweredRepeater"] = "minecraft:unpowered_repeater"; - MinecraftBlockTypes["VerdantFroglight"] = "minecraft:verdant_froglight"; - MinecraftBlockTypes["Vine"] = "minecraft:vine"; - MinecraftBlockTypes["WallBanner"] = "minecraft:wall_banner"; - MinecraftBlockTypes["WallSign"] = "minecraft:wall_sign"; - MinecraftBlockTypes["WarpedButton"] = "minecraft:warped_button"; - MinecraftBlockTypes["WarpedDoor"] = "minecraft:warped_door"; - MinecraftBlockTypes["WarpedDoubleSlab"] = "minecraft:warped_double_slab"; - MinecraftBlockTypes["WarpedFence"] = "minecraft:warped_fence"; - MinecraftBlockTypes["WarpedFenceGate"] = "minecraft:warped_fence_gate"; - MinecraftBlockTypes["WarpedFungus"] = "minecraft:warped_fungus"; - MinecraftBlockTypes["WarpedHangingSign"] = "minecraft:warped_hanging_sign"; - MinecraftBlockTypes["WarpedHyphae"] = "minecraft:warped_hyphae"; - MinecraftBlockTypes["WarpedNylium"] = "minecraft:warped_nylium"; - MinecraftBlockTypes["WarpedPlanks"] = "minecraft:warped_planks"; - MinecraftBlockTypes["WarpedPressurePlate"] = "minecraft:warped_pressure_plate"; - MinecraftBlockTypes["WarpedRoots"] = "minecraft:warped_roots"; - MinecraftBlockTypes["WarpedSlab"] = "minecraft:warped_slab"; - MinecraftBlockTypes["WarpedStairs"] = "minecraft:warped_stairs"; - MinecraftBlockTypes["WarpedStandingSign"] = "minecraft:warped_standing_sign"; - MinecraftBlockTypes["WarpedStem"] = "minecraft:warped_stem"; - MinecraftBlockTypes["WarpedTrapdoor"] = "minecraft:warped_trapdoor"; - MinecraftBlockTypes["WarpedWallSign"] = "minecraft:warped_wall_sign"; - MinecraftBlockTypes["WarpedWartBlock"] = "minecraft:warped_wart_block"; - MinecraftBlockTypes["Water"] = "minecraft:water"; - MinecraftBlockTypes["Waterlily"] = "minecraft:waterlily"; - MinecraftBlockTypes["WaxedCopper"] = "minecraft:waxed_copper"; - MinecraftBlockTypes["WaxedCutCopper"] = "minecraft:waxed_cut_copper"; - MinecraftBlockTypes["WaxedCutCopperSlab"] = "minecraft:waxed_cut_copper_slab"; - MinecraftBlockTypes["WaxedCutCopperStairs"] = "minecraft:waxed_cut_copper_stairs"; - MinecraftBlockTypes["WaxedDoubleCutCopperSlab"] = "minecraft:waxed_double_cut_copper_slab"; - MinecraftBlockTypes["WaxedExposedCopper"] = "minecraft:waxed_exposed_copper"; - MinecraftBlockTypes["WaxedExposedCutCopper"] = "minecraft:waxed_exposed_cut_copper"; - MinecraftBlockTypes["WaxedExposedCutCopperSlab"] = "minecraft:waxed_exposed_cut_copper_slab"; - MinecraftBlockTypes["WaxedExposedCutCopperStairs"] = "minecraft:waxed_exposed_cut_copper_stairs"; - MinecraftBlockTypes["WaxedExposedDoubleCutCopperSlab"] = "minecraft:waxed_exposed_double_cut_copper_slab"; - MinecraftBlockTypes["WaxedOxidizedCopper"] = "minecraft:waxed_oxidized_copper"; - MinecraftBlockTypes["WaxedOxidizedCutCopper"] = "minecraft:waxed_oxidized_cut_copper"; - MinecraftBlockTypes["WaxedOxidizedCutCopperSlab"] = "minecraft:waxed_oxidized_cut_copper_slab"; - MinecraftBlockTypes["WaxedOxidizedCutCopperStairs"] = "minecraft:waxed_oxidized_cut_copper_stairs"; - MinecraftBlockTypes["WaxedOxidizedDoubleCutCopperSlab"] = "minecraft:waxed_oxidized_double_cut_copper_slab"; - MinecraftBlockTypes["WaxedWeatheredCopper"] = "minecraft:waxed_weathered_copper"; - MinecraftBlockTypes["WaxedWeatheredCutCopper"] = "minecraft:waxed_weathered_cut_copper"; - MinecraftBlockTypes["WaxedWeatheredCutCopperSlab"] = "minecraft:waxed_weathered_cut_copper_slab"; - MinecraftBlockTypes["WaxedWeatheredCutCopperStairs"] = "minecraft:waxed_weathered_cut_copper_stairs"; - MinecraftBlockTypes["WaxedWeatheredDoubleCutCopperSlab"] = "minecraft:waxed_weathered_double_cut_copper_slab"; - MinecraftBlockTypes["WeatheredCopper"] = "minecraft:weathered_copper"; - MinecraftBlockTypes["WeatheredCutCopper"] = "minecraft:weathered_cut_copper"; - MinecraftBlockTypes["WeatheredCutCopperSlab"] = "minecraft:weathered_cut_copper_slab"; - MinecraftBlockTypes["WeatheredCutCopperStairs"] = "minecraft:weathered_cut_copper_stairs"; - MinecraftBlockTypes["WeatheredDoubleCutCopperSlab"] = "minecraft:weathered_double_cut_copper_slab"; - MinecraftBlockTypes["Web"] = "minecraft:web"; - MinecraftBlockTypes["WeepingVines"] = "minecraft:weeping_vines"; - MinecraftBlockTypes["Wheat"] = "minecraft:wheat"; - MinecraftBlockTypes["WhiteCandle"] = "minecraft:white_candle"; - MinecraftBlockTypes["WhiteCandleCake"] = "minecraft:white_candle_cake"; - MinecraftBlockTypes["WhiteCarpet"] = "minecraft:white_carpet"; - MinecraftBlockTypes["WhiteConcrete"] = "minecraft:white_concrete"; - MinecraftBlockTypes["WhiteGlazedTerracotta"] = "minecraft:white_glazed_terracotta"; - MinecraftBlockTypes["WhiteShulkerBox"] = "minecraft:white_shulker_box"; - MinecraftBlockTypes["WhiteWool"] = "minecraft:white_wool"; - MinecraftBlockTypes["WitherRose"] = "minecraft:wither_rose"; - MinecraftBlockTypes["Wood"] = "minecraft:wood"; - MinecraftBlockTypes["WoodenButton"] = "minecraft:wooden_button"; - MinecraftBlockTypes["WoodenDoor"] = "minecraft:wooden_door"; - MinecraftBlockTypes["WoodenPressurePlate"] = "minecraft:wooden_pressure_plate"; - MinecraftBlockTypes["WoodenSlab"] = "minecraft:wooden_slab"; - MinecraftBlockTypes["YellowCandle"] = "minecraft:yellow_candle"; - MinecraftBlockTypes["YellowCandleCake"] = "minecraft:yellow_candle_cake"; - MinecraftBlockTypes["YellowCarpet"] = "minecraft:yellow_carpet"; - MinecraftBlockTypes["YellowConcrete"] = "minecraft:yellow_concrete"; - MinecraftBlockTypes["YellowFlower"] = "minecraft:yellow_flower"; - MinecraftBlockTypes["YellowGlazedTerracotta"] = "minecraft:yellow_glazed_terracotta"; - MinecraftBlockTypes["YellowShulkerBox"] = "minecraft:yellow_shulker_box"; - MinecraftBlockTypes["YellowWool"] = "minecraft:yellow_wool"; -})(MinecraftBlockTypes || (MinecraftBlockTypes = {})); diff --git a/src/node_modules/@minecraft/vanilla-data/lib/mojang-cameraPresets.d.ts b/src/node_modules/@minecraft/vanilla-data/lib/mojang-cameraPresets.d.ts new file mode 100644 index 0000000..f76fe3e --- /dev/null +++ b/src/node_modules/@minecraft/vanilla-data/lib/mojang-cameraPresets.d.ts @@ -0,0 +1,13 @@ +/** + * All possible MinecraftCameraPresetsTypes + */ +export declare enum MinecraftCameraPresetsTypes { + FirstPerson = "minecraft:first_person", + Free = "minecraft:free", + ThirdPerson = "minecraft:third_person", + ThirdPersonFront = "minecraft:third_person_front" +} +/** + * Union type equivalent of the MinecraftCameraPresetsTypes enum. + */ +export type MinecraftCameraPresetsTypesUnion = keyof typeof MinecraftCameraPresetsTypes; diff --git a/src/node_modules/@minecraft/vanilla-data/lib/mojang-dimension.js b/src/node_modules/@minecraft/vanilla-data/lib/mojang-dimension.js deleted file mode 100644 index a0a30c0..0000000 --- a/src/node_modules/@minecraft/vanilla-data/lib/mojang-dimension.js +++ /dev/null @@ -1,17 +0,0 @@ -// Vanilla Data for Minecraft Bedrock Edition script APIs -// Project: https://docs.microsoft.com/minecraft/creator/ -// Definitions by: Jake Shirley -// Mike Ammerlaan -// Raphael Landaverde -/* ***************************************************************************** - Copyright (c) Microsoft Corporation. - ***************************************************************************** */ -/** - * All possible MinecraftDimensionTypes - */ -export var MinecraftDimensionTypes; -(function (MinecraftDimensionTypes) { - MinecraftDimensionTypes["Nether"] = "minecraft:nether"; - MinecraftDimensionTypes["Overworld"] = "minecraft:overworld"; - MinecraftDimensionTypes["TheEnd"] = "minecraft:the_end"; -})(MinecraftDimensionTypes || (MinecraftDimensionTypes = {})); diff --git a/src/node_modules/@minecraft/vanilla-data/lib/mojang-effect.js b/src/node_modules/@minecraft/vanilla-data/lib/mojang-effect.js deleted file mode 100644 index 6fa80d6..0000000 --- a/src/node_modules/@minecraft/vanilla-data/lib/mojang-effect.js +++ /dev/null @@ -1,45 +0,0 @@ -// Vanilla Data for Minecraft Bedrock Edition script APIs -// Project: https://docs.microsoft.com/minecraft/creator/ -// Definitions by: Jake Shirley -// Mike Ammerlaan -// Raphael Landaverde -/* ***************************************************************************** - Copyright (c) Microsoft Corporation. - ***************************************************************************** */ -/** - * All possible MinecraftEffectTypes - */ -export var MinecraftEffectTypes; -(function (MinecraftEffectTypes) { - MinecraftEffectTypes["Absorption"] = "absorption"; - MinecraftEffectTypes["BadOmen"] = "bad_omen"; - MinecraftEffectTypes["Blindness"] = "blindness"; - MinecraftEffectTypes["ConduitPower"] = "conduit_power"; - MinecraftEffectTypes["Darkness"] = "darkness"; - MinecraftEffectTypes["Empty"] = "empty"; - MinecraftEffectTypes["FatalPoison"] = "fatal_poison"; - MinecraftEffectTypes["FireResistance"] = "fire_resistance"; - MinecraftEffectTypes["Haste"] = "haste"; - MinecraftEffectTypes["HealthBoost"] = "health_boost"; - MinecraftEffectTypes["Hunger"] = "hunger"; - MinecraftEffectTypes["InstantDamage"] = "instant_damage"; - MinecraftEffectTypes["InstantHealth"] = "instant_health"; - MinecraftEffectTypes["Invisibility"] = "invisibility"; - MinecraftEffectTypes["JumpBoost"] = "jump_boost"; - MinecraftEffectTypes["Levitation"] = "levitation"; - MinecraftEffectTypes["MiningFatigue"] = "mining_fatigue"; - MinecraftEffectTypes["Nausea"] = "nausea"; - MinecraftEffectTypes["NightVision"] = "night_vision"; - MinecraftEffectTypes["Poison"] = "poison"; - MinecraftEffectTypes["Regeneration"] = "regeneration"; - MinecraftEffectTypes["Resistance"] = "resistance"; - MinecraftEffectTypes["Saturation"] = "saturation"; - MinecraftEffectTypes["SlowFalling"] = "slow_falling"; - MinecraftEffectTypes["Slowness"] = "slowness"; - MinecraftEffectTypes["Speed"] = "speed"; - MinecraftEffectTypes["Strength"] = "strength"; - MinecraftEffectTypes["VillageHero"] = "village_hero"; - MinecraftEffectTypes["WaterBreathing"] = "water_breathing"; - MinecraftEffectTypes["Weakness"] = "weakness"; - MinecraftEffectTypes["Wither"] = "wither"; -})(MinecraftEffectTypes || (MinecraftEffectTypes = {})); diff --git a/src/node_modules/@minecraft/vanilla-data/lib/mojang-enchantment.js b/src/node_modules/@minecraft/vanilla-data/lib/mojang-enchantment.js deleted file mode 100644 index 8c8cfdb..0000000 --- a/src/node_modules/@minecraft/vanilla-data/lib/mojang-enchantment.js +++ /dev/null @@ -1,52 +0,0 @@ -// Vanilla Data for Minecraft Bedrock Edition script APIs -// Project: https://docs.microsoft.com/minecraft/creator/ -// Definitions by: Jake Shirley -// Mike Ammerlaan -// Raphael Landaverde -/* ***************************************************************************** - Copyright (c) Microsoft Corporation. - ***************************************************************************** */ -/** - * All possible MinecraftEnchantmentTypes - */ -export var MinecraftEnchantmentTypes; -(function (MinecraftEnchantmentTypes) { - MinecraftEnchantmentTypes["AquaAffinity"] = "aqua_affinity"; - MinecraftEnchantmentTypes["BaneOfArthropods"] = "bane_of_arthropods"; - MinecraftEnchantmentTypes["Binding"] = "binding"; - MinecraftEnchantmentTypes["BlastProtection"] = "blast_protection"; - MinecraftEnchantmentTypes["Channeling"] = "channeling"; - MinecraftEnchantmentTypes["DepthStrider"] = "depth_strider"; - MinecraftEnchantmentTypes["Efficiency"] = "efficiency"; - MinecraftEnchantmentTypes["FeatherFalling"] = "feather_falling"; - MinecraftEnchantmentTypes["FireAspect"] = "fire_aspect"; - MinecraftEnchantmentTypes["FireProtection"] = "fire_protection"; - MinecraftEnchantmentTypes["Flame"] = "flame"; - MinecraftEnchantmentTypes["Fortune"] = "fortune"; - MinecraftEnchantmentTypes["FrostWalker"] = "frost_walker"; - MinecraftEnchantmentTypes["Impaling"] = "impaling"; - MinecraftEnchantmentTypes["Infinity"] = "infinity"; - MinecraftEnchantmentTypes["Knockback"] = "knockback"; - MinecraftEnchantmentTypes["Looting"] = "looting"; - MinecraftEnchantmentTypes["Loyalty"] = "loyalty"; - MinecraftEnchantmentTypes["LuckOfTheSea"] = "luck_of_the_sea"; - MinecraftEnchantmentTypes["Lure"] = "lure"; - MinecraftEnchantmentTypes["Mending"] = "mending"; - MinecraftEnchantmentTypes["Multishot"] = "multishot"; - MinecraftEnchantmentTypes["Piercing"] = "piercing"; - MinecraftEnchantmentTypes["Power"] = "power"; - MinecraftEnchantmentTypes["ProjectileProtection"] = "projectile_protection"; - MinecraftEnchantmentTypes["Protection"] = "protection"; - MinecraftEnchantmentTypes["Punch"] = "punch"; - MinecraftEnchantmentTypes["QuickCharge"] = "quick_charge"; - MinecraftEnchantmentTypes["Respiration"] = "respiration"; - MinecraftEnchantmentTypes["Riptide"] = "riptide"; - MinecraftEnchantmentTypes["Sharpness"] = "sharpness"; - MinecraftEnchantmentTypes["SilkTouch"] = "silk_touch"; - MinecraftEnchantmentTypes["Smite"] = "smite"; - MinecraftEnchantmentTypes["SoulSpeed"] = "soul_speed"; - MinecraftEnchantmentTypes["SwiftSneak"] = "swift_sneak"; - MinecraftEnchantmentTypes["Thorns"] = "thorns"; - MinecraftEnchantmentTypes["Unbreaking"] = "unbreaking"; - MinecraftEnchantmentTypes["Vanishing"] = "vanishing"; -})(MinecraftEnchantmentTypes || (MinecraftEnchantmentTypes = {})); diff --git a/src/node_modules/@minecraft/vanilla-data/lib/mojang-entity.js b/src/node_modules/@minecraft/vanilla-data/lib/mojang-entity.js deleted file mode 100644 index bb6bf5e..0000000 --- a/src/node_modules/@minecraft/vanilla-data/lib/mojang-entity.js +++ /dev/null @@ -1,128 +0,0 @@ -// Vanilla Data for Minecraft Bedrock Edition script APIs -// Project: https://docs.microsoft.com/minecraft/creator/ -// Definitions by: Jake Shirley -// Mike Ammerlaan -// Raphael Landaverde -/* ***************************************************************************** - Copyright (c) Microsoft Corporation. - ***************************************************************************** */ -/** - * All possible MinecraftEntityTypes - */ -export var MinecraftEntityTypes; -(function (MinecraftEntityTypes) { - MinecraftEntityTypes["Agent"] = "agent"; - MinecraftEntityTypes["Allay"] = "allay"; - MinecraftEntityTypes["AreaEffectCloud"] = "area_effect_cloud"; - MinecraftEntityTypes["ArmorStand"] = "armor_stand"; - MinecraftEntityTypes["Arrow"] = "arrow"; - MinecraftEntityTypes["Axolotl"] = "axolotl"; - MinecraftEntityTypes["Bat"] = "bat"; - MinecraftEntityTypes["Bee"] = "bee"; - MinecraftEntityTypes["Blaze"] = "blaze"; - MinecraftEntityTypes["Boat"] = "boat"; - MinecraftEntityTypes["Camel"] = "camel"; - MinecraftEntityTypes["Cat"] = "cat"; - MinecraftEntityTypes["CaveSpider"] = "cave_spider"; - MinecraftEntityTypes["ChestBoat"] = "chest_boat"; - MinecraftEntityTypes["ChestMinecart"] = "chest_minecart"; - MinecraftEntityTypes["Chicken"] = "chicken"; - MinecraftEntityTypes["Cod"] = "cod"; - MinecraftEntityTypes["CommandBlockMinecart"] = "command_block_minecart"; - MinecraftEntityTypes["Cow"] = "cow"; - MinecraftEntityTypes["Creeper"] = "creeper"; - MinecraftEntityTypes["Dolphin"] = "dolphin"; - MinecraftEntityTypes["Donkey"] = "donkey"; - MinecraftEntityTypes["DragonFireball"] = "dragon_fireball"; - MinecraftEntityTypes["Drowned"] = "drowned"; - MinecraftEntityTypes["Egg"] = "egg"; - MinecraftEntityTypes["ElderGuardian"] = "elder_guardian"; - MinecraftEntityTypes["EnderCrystal"] = "ender_crystal"; - MinecraftEntityTypes["EnderDragon"] = "ender_dragon"; - MinecraftEntityTypes["EnderPearl"] = "ender_pearl"; - MinecraftEntityTypes["Enderman"] = "enderman"; - MinecraftEntityTypes["Endermite"] = "endermite"; - MinecraftEntityTypes["EvocationIllager"] = "evocation_illager"; - MinecraftEntityTypes["EyeOfEnderSignal"] = "eye_of_ender_signal"; - MinecraftEntityTypes["Fireball"] = "fireball"; - MinecraftEntityTypes["FireworksRocket"] = "fireworks_rocket"; - MinecraftEntityTypes["FishingHook"] = "fishing_hook"; - MinecraftEntityTypes["Fox"] = "fox"; - MinecraftEntityTypes["Frog"] = "frog"; - MinecraftEntityTypes["Ghast"] = "ghast"; - MinecraftEntityTypes["GlowSquid"] = "glow_squid"; - MinecraftEntityTypes["Goat"] = "goat"; - MinecraftEntityTypes["Guardian"] = "guardian"; - MinecraftEntityTypes["Hoglin"] = "hoglin"; - MinecraftEntityTypes["HopperMinecart"] = "hopper_minecart"; - MinecraftEntityTypes["Horse"] = "horse"; - MinecraftEntityTypes["Husk"] = "husk"; - MinecraftEntityTypes["IronGolem"] = "iron_golem"; - MinecraftEntityTypes["LightningBolt"] = "lightning_bolt"; - MinecraftEntityTypes["LingeringPotion"] = "lingering_potion"; - MinecraftEntityTypes["Llama"] = "llama"; - MinecraftEntityTypes["LlamaSpit"] = "llama_spit"; - MinecraftEntityTypes["MagmaCube"] = "magma_cube"; - MinecraftEntityTypes["Minecart"] = "minecart"; - MinecraftEntityTypes["Mooshroom"] = "mooshroom"; - MinecraftEntityTypes["Mule"] = "mule"; - MinecraftEntityTypes["Npc"] = "npc"; - MinecraftEntityTypes["Ocelot"] = "ocelot"; - MinecraftEntityTypes["Panda"] = "panda"; - MinecraftEntityTypes["Parrot"] = "parrot"; - MinecraftEntityTypes["Phantom"] = "phantom"; - MinecraftEntityTypes["Pig"] = "pig"; - MinecraftEntityTypes["Piglin"] = "piglin"; - MinecraftEntityTypes["PiglinBrute"] = "piglin_brute"; - MinecraftEntityTypes["Pillager"] = "pillager"; - MinecraftEntityTypes["Player"] = "player"; - MinecraftEntityTypes["PolarBear"] = "polar_bear"; - MinecraftEntityTypes["Pufferfish"] = "pufferfish"; - MinecraftEntityTypes["Rabbit"] = "rabbit"; - MinecraftEntityTypes["Ravager"] = "ravager"; - MinecraftEntityTypes["Salmon"] = "salmon"; - MinecraftEntityTypes["Sheep"] = "sheep"; - MinecraftEntityTypes["Shulker"] = "shulker"; - MinecraftEntityTypes["ShulkerBullet"] = "shulker_bullet"; - MinecraftEntityTypes["Silverfish"] = "silverfish"; - MinecraftEntityTypes["Skeleton"] = "skeleton"; - MinecraftEntityTypes["SkeletonHorse"] = "skeleton_horse"; - MinecraftEntityTypes["Slime"] = "slime"; - MinecraftEntityTypes["SmallFireball"] = "small_fireball"; - MinecraftEntityTypes["Sniffer"] = "sniffer"; - MinecraftEntityTypes["SnowGolem"] = "snow_golem"; - MinecraftEntityTypes["Snowball"] = "snowball"; - MinecraftEntityTypes["Spider"] = "spider"; - MinecraftEntityTypes["SplashPotion"] = "splash_potion"; - MinecraftEntityTypes["Squid"] = "squid"; - MinecraftEntityTypes["Stray"] = "stray"; - MinecraftEntityTypes["Strider"] = "strider"; - MinecraftEntityTypes["Tadpole"] = "tadpole"; - MinecraftEntityTypes["ThrownTrident"] = "thrown_trident"; - MinecraftEntityTypes["Tnt"] = "tnt"; - MinecraftEntityTypes["TntMinecart"] = "tnt_minecart"; - MinecraftEntityTypes["TraderLlama"] = "trader_llama"; - MinecraftEntityTypes["TripodCamera"] = "tripod_camera"; - MinecraftEntityTypes["Tropicalfish"] = "tropicalfish"; - MinecraftEntityTypes["Turtle"] = "turtle"; - MinecraftEntityTypes["Vex"] = "vex"; - MinecraftEntityTypes["Villager"] = "villager"; - MinecraftEntityTypes["VillagerV2"] = "villager_v2"; - MinecraftEntityTypes["Vindicator"] = "vindicator"; - MinecraftEntityTypes["WanderingTrader"] = "wandering_trader"; - MinecraftEntityTypes["Warden"] = "warden"; - MinecraftEntityTypes["Witch"] = "witch"; - MinecraftEntityTypes["Wither"] = "wither"; - MinecraftEntityTypes["WitherSkeleton"] = "wither_skeleton"; - MinecraftEntityTypes["WitherSkull"] = "wither_skull"; - MinecraftEntityTypes["WitherSkullDangerous"] = "wither_skull_dangerous"; - MinecraftEntityTypes["Wolf"] = "wolf"; - MinecraftEntityTypes["XpBottle"] = "xp_bottle"; - MinecraftEntityTypes["XpOrb"] = "xp_orb"; - MinecraftEntityTypes["Zoglin"] = "zoglin"; - MinecraftEntityTypes["Zombie"] = "zombie"; - MinecraftEntityTypes["ZombieHorse"] = "zombie_horse"; - MinecraftEntityTypes["ZombiePigman"] = "zombie_pigman"; - MinecraftEntityTypes["ZombieVillager"] = "zombie_villager"; - MinecraftEntityTypes["ZombieVillagerV2"] = "zombie_villager_v2"; -})(MinecraftEntityTypes || (MinecraftEntityTypes = {})); diff --git a/src/node_modules/@minecraft/vanilla-data/lib/mojang-item.d.ts b/src/node_modules/@minecraft/vanilla-data/lib/mojang-item.d.ts index e339d67..8d22476 100644 --- a/src/node_modules/@minecraft/vanilla-data/lib/mojang-item.d.ts +++ b/src/node_modules/@minecraft/vanilla-data/lib/mojang-item.d.ts @@ -86,9 +86,13 @@ export declare enum MinecraftItemTypes { BlackCandle = "minecraft:black_candle", BlackCarpet = "minecraft:black_carpet", BlackConcrete = "minecraft:black_concrete", + BlackConcretePowder = "minecraft:black_concrete_powder", BlackDye = "minecraft:black_dye", BlackGlazedTerracotta = "minecraft:black_glazed_terracotta", BlackShulkerBox = "minecraft:black_shulker_box", + BlackStainedGlass = "minecraft:black_stained_glass", + BlackStainedGlassPane = "minecraft:black_stained_glass_pane", + BlackTerracotta = "minecraft:black_terracotta", BlackWool = "minecraft:black_wool", Blackstone = "minecraft:blackstone", BlackstoneSlab = "minecraft:blackstone_slab", @@ -102,10 +106,14 @@ export declare enum MinecraftItemTypes { BlueCandle = "minecraft:blue_candle", BlueCarpet = "minecraft:blue_carpet", BlueConcrete = "minecraft:blue_concrete", + BlueConcretePowder = "minecraft:blue_concrete_powder", BlueDye = "minecraft:blue_dye", BlueGlazedTerracotta = "minecraft:blue_glazed_terracotta", BlueIce = "minecraft:blue_ice", BlueShulkerBox = "minecraft:blue_shulker_box", + BlueStainedGlass = "minecraft:blue_stained_glass", + BlueStainedGlassPane = "minecraft:blue_stained_glass_pane", + BlueTerracotta = "minecraft:blue_terracotta", BlueWool = "minecraft:blue_wool", Boat = "minecraft:boat", Bone = "minecraft:bone", @@ -127,11 +135,15 @@ export declare enum MinecraftItemTypes { BrownCandle = "minecraft:brown_candle", BrownCarpet = "minecraft:brown_carpet", BrownConcrete = "minecraft:brown_concrete", + BrownConcretePowder = "minecraft:brown_concrete_powder", BrownDye = "minecraft:brown_dye", BrownGlazedTerracotta = "minecraft:brown_glazed_terracotta", BrownMushroom = "minecraft:brown_mushroom", BrownMushroomBlock = "minecraft:brown_mushroom_block", BrownShulkerBox = "minecraft:brown_shulker_box", + BrownStainedGlass = "minecraft:brown_stained_glass", + BrownStainedGlassPane = "minecraft:brown_stained_glass_pane", + BrownTerracotta = "minecraft:brown_terracotta", BrownWool = "minecraft:brown_wool", Brush = "minecraft:brush", BubbleCoral = "minecraft:bubble_coral", @@ -261,9 +273,13 @@ export declare enum MinecraftItemTypes { CyanCandle = "minecraft:cyan_candle", CyanCarpet = "minecraft:cyan_carpet", CyanConcrete = "minecraft:cyan_concrete", + CyanConcretePowder = "minecraft:cyan_concrete_powder", CyanDye = "minecraft:cyan_dye", CyanGlazedTerracotta = "minecraft:cyan_glazed_terracotta", CyanShulkerBox = "minecraft:cyan_shulker_box", + CyanStainedGlass = "minecraft:cyan_stained_glass", + CyanStainedGlassPane = "minecraft:cyan_stained_glass_pane", + CyanTerracotta = "minecraft:cyan_terracotta", CyanWool = "minecraft:cyan_wool", DangerPotterySherd = "minecraft:danger_pottery_sherd", DarkOakBoat = "minecraft:dark_oak_boat", @@ -433,16 +449,24 @@ export declare enum MinecraftItemTypes { GrayCandle = "minecraft:gray_candle", GrayCarpet = "minecraft:gray_carpet", GrayConcrete = "minecraft:gray_concrete", + GrayConcretePowder = "minecraft:gray_concrete_powder", GrayDye = "minecraft:gray_dye", GrayGlazedTerracotta = "minecraft:gray_glazed_terracotta", GrayShulkerBox = "minecraft:gray_shulker_box", + GrayStainedGlass = "minecraft:gray_stained_glass", + GrayStainedGlassPane = "minecraft:gray_stained_glass_pane", + GrayTerracotta = "minecraft:gray_terracotta", GrayWool = "minecraft:gray_wool", GreenCandle = "minecraft:green_candle", GreenCarpet = "minecraft:green_carpet", GreenConcrete = "minecraft:green_concrete", + GreenConcretePowder = "minecraft:green_concrete_powder", GreenDye = "minecraft:green_dye", GreenGlazedTerracotta = "minecraft:green_glazed_terracotta", GreenShulkerBox = "minecraft:green_shulker_box", + GreenStainedGlass = "minecraft:green_stained_glass", + GreenStainedGlassPane = "minecraft:green_stained_glass_pane", + GreenTerracotta = "minecraft:green_terracotta", GreenWool = "minecraft:green_wool", Grindstone = "minecraft:grindstone", GuardianSpawnEgg = "minecraft:guardian_spawn_egg", @@ -524,24 +548,36 @@ export declare enum MinecraftItemTypes { LightBlueCandle = "minecraft:light_blue_candle", LightBlueCarpet = "minecraft:light_blue_carpet", LightBlueConcrete = "minecraft:light_blue_concrete", + LightBlueConcretePowder = "minecraft:light_blue_concrete_powder", LightBlueDye = "minecraft:light_blue_dye", LightBlueGlazedTerracotta = "minecraft:light_blue_glazed_terracotta", LightBlueShulkerBox = "minecraft:light_blue_shulker_box", + LightBlueStainedGlass = "minecraft:light_blue_stained_glass", + LightBlueStainedGlassPane = "minecraft:light_blue_stained_glass_pane", + LightBlueTerracotta = "minecraft:light_blue_terracotta", LightBlueWool = "minecraft:light_blue_wool", LightGrayCandle = "minecraft:light_gray_candle", LightGrayCarpet = "minecraft:light_gray_carpet", LightGrayConcrete = "minecraft:light_gray_concrete", + LightGrayConcretePowder = "minecraft:light_gray_concrete_powder", LightGrayDye = "minecraft:light_gray_dye", LightGrayShulkerBox = "minecraft:light_gray_shulker_box", + LightGrayStainedGlass = "minecraft:light_gray_stained_glass", + LightGrayStainedGlassPane = "minecraft:light_gray_stained_glass_pane", + LightGrayTerracotta = "minecraft:light_gray_terracotta", LightGrayWool = "minecraft:light_gray_wool", LightWeightedPressurePlate = "minecraft:light_weighted_pressure_plate", LightningRod = "minecraft:lightning_rod", LimeCandle = "minecraft:lime_candle", LimeCarpet = "minecraft:lime_carpet", LimeConcrete = "minecraft:lime_concrete", + LimeConcretePowder = "minecraft:lime_concrete_powder", LimeDye = "minecraft:lime_dye", LimeGlazedTerracotta = "minecraft:lime_glazed_terracotta", LimeShulkerBox = "minecraft:lime_shulker_box", + LimeStainedGlass = "minecraft:lime_stained_glass", + LimeStainedGlassPane = "minecraft:lime_stained_glass_pane", + LimeTerracotta = "minecraft:lime_terracotta", LimeWool = "minecraft:lime_wool", LingeringPotion = "minecraft:lingering_potion", LitPumpkin = "minecraft:lit_pumpkin", @@ -554,9 +590,13 @@ export declare enum MinecraftItemTypes { MagentaCandle = "minecraft:magenta_candle", MagentaCarpet = "minecraft:magenta_carpet", MagentaConcrete = "minecraft:magenta_concrete", + MagentaConcretePowder = "minecraft:magenta_concrete_powder", MagentaDye = "minecraft:magenta_dye", MagentaGlazedTerracotta = "minecraft:magenta_glazed_terracotta", MagentaShulkerBox = "minecraft:magenta_shulker_box", + MagentaStainedGlass = "minecraft:magenta_stained_glass", + MagentaStainedGlassPane = "minecraft:magenta_stained_glass_pane", + MagentaTerracotta = "minecraft:magenta_terracotta", MagentaWool = "minecraft:magenta_wool", Magma = "minecraft:magma", MagmaCream = "minecraft:magma_cream", @@ -663,9 +703,13 @@ export declare enum MinecraftItemTypes { OrangeCandle = "minecraft:orange_candle", OrangeCarpet = "minecraft:orange_carpet", OrangeConcrete = "minecraft:orange_concrete", + OrangeConcretePowder = "minecraft:orange_concrete_powder", OrangeDye = "minecraft:orange_dye", OrangeGlazedTerracotta = "minecraft:orange_glazed_terracotta", OrangeShulkerBox = "minecraft:orange_shulker_box", + OrangeStainedGlass = "minecraft:orange_stained_glass", + OrangeStainedGlassPane = "minecraft:orange_stained_glass_pane", + OrangeTerracotta = "minecraft:orange_terracotta", OrangeWool = "minecraft:orange_wool", OxidizedCopper = "minecraft:oxidized_copper", OxidizedCutCopper = "minecraft:oxidized_cut_copper", @@ -688,10 +732,14 @@ export declare enum MinecraftItemTypes { PinkCandle = "minecraft:pink_candle", PinkCarpet = "minecraft:pink_carpet", PinkConcrete = "minecraft:pink_concrete", + PinkConcretePowder = "minecraft:pink_concrete_powder", PinkDye = "minecraft:pink_dye", PinkGlazedTerracotta = "minecraft:pink_glazed_terracotta", PinkPetals = "minecraft:pink_petals", PinkShulkerBox = "minecraft:pink_shulker_box", + PinkStainedGlass = "minecraft:pink_stained_glass", + PinkStainedGlassPane = "minecraft:pink_stained_glass_pane", + PinkTerracotta = "minecraft:pink_terracotta", PinkWool = "minecraft:pink_wool", Piston = "minecraft:piston", PitcherPlant = "minecraft:pitcher_plant", @@ -740,9 +788,13 @@ export declare enum MinecraftItemTypes { PurpleCandle = "minecraft:purple_candle", PurpleCarpet = "minecraft:purple_carpet", PurpleConcrete = "minecraft:purple_concrete", + PurpleConcretePowder = "minecraft:purple_concrete_powder", PurpleDye = "minecraft:purple_dye", PurpleGlazedTerracotta = "minecraft:purple_glazed_terracotta", PurpleShulkerBox = "minecraft:purple_shulker_box", + PurpleStainedGlass = "minecraft:purple_stained_glass", + PurpleStainedGlassPane = "minecraft:purple_stained_glass_pane", + PurpleTerracotta = "minecraft:purple_terracotta", PurpleWool = "minecraft:purple_wool", PurpurBlock = "minecraft:purpur_block", PurpurStairs = "minecraft:purpur_stairs", @@ -769,6 +821,7 @@ export declare enum MinecraftItemTypes { RedCandle = "minecraft:red_candle", RedCarpet = "minecraft:red_carpet", RedConcrete = "minecraft:red_concrete", + RedConcretePowder = "minecraft:red_concrete_powder", RedDye = "minecraft:red_dye", RedFlower = "minecraft:red_flower", RedGlazedTerracotta = "minecraft:red_glazed_terracotta", @@ -779,6 +832,9 @@ export declare enum MinecraftItemTypes { RedSandstone = "minecraft:red_sandstone", RedSandstoneStairs = "minecraft:red_sandstone_stairs", RedShulkerBox = "minecraft:red_shulker_box", + RedStainedGlass = "minecraft:red_stained_glass", + RedStainedGlassPane = "minecraft:red_stained_glass_pane", + RedTerracotta = "minecraft:red_terracotta", RedWool = "minecraft:red_wool", Redstone = "minecraft:redstone", RedstoneBlock = "minecraft:redstone_block", @@ -1005,9 +1061,13 @@ export declare enum MinecraftItemTypes { WhiteCandle = "minecraft:white_candle", WhiteCarpet = "minecraft:white_carpet", WhiteConcrete = "minecraft:white_concrete", + WhiteConcretePowder = "minecraft:white_concrete_powder", WhiteDye = "minecraft:white_dye", WhiteGlazedTerracotta = "minecraft:white_glazed_terracotta", WhiteShulkerBox = "minecraft:white_shulker_box", + WhiteStainedGlass = "minecraft:white_stained_glass", + WhiteStainedGlassPane = "minecraft:white_stained_glass_pane", + WhiteTerracotta = "minecraft:white_terracotta", WhiteWool = "minecraft:white_wool", WildArmorTrimSmithingTemplate = "minecraft:wild_armor_trim_smithing_template", WitchSpawnEgg = "minecraft:witch_spawn_egg", @@ -1030,10 +1090,14 @@ export declare enum MinecraftItemTypes { YellowCandle = "minecraft:yellow_candle", YellowCarpet = "minecraft:yellow_carpet", YellowConcrete = "minecraft:yellow_concrete", + YellowConcretePowder = "minecraft:yellow_concrete_powder", YellowDye = "minecraft:yellow_dye", YellowFlower = "minecraft:yellow_flower", YellowGlazedTerracotta = "minecraft:yellow_glazed_terracotta", YellowShulkerBox = "minecraft:yellow_shulker_box", + YellowStainedGlass = "minecraft:yellow_stained_glass", + YellowStainedGlassPane = "minecraft:yellow_stained_glass_pane", + YellowTerracotta = "minecraft:yellow_terracotta", YellowWool = "minecraft:yellow_wool", ZoglinSpawnEgg = "minecraft:zoglin_spawn_egg", ZombieHorseSpawnEgg = "minecraft:zombie_horse_spawn_egg", diff --git a/src/node_modules/@minecraft/vanilla-data/lib/mojang-item.js b/src/node_modules/@minecraft/vanilla-data/lib/mojang-item.js deleted file mode 100644 index 2bce1c6..0000000 --- a/src/node_modules/@minecraft/vanilla-data/lib/mojang-item.js +++ /dev/null @@ -1,1052 +0,0 @@ -// Vanilla Data for Minecraft Bedrock Edition script APIs -// Project: https://docs.microsoft.com/minecraft/creator/ -// Definitions by: Jake Shirley -// Mike Ammerlaan -// Raphael Landaverde -/* ***************************************************************************** - Copyright (c) Microsoft Corporation. - ***************************************************************************** */ -/** - * All possible MinecraftItemTypes - */ -export var MinecraftItemTypes; -(function (MinecraftItemTypes) { - MinecraftItemTypes["AcaciaBoat"] = "minecraft:acacia_boat"; - MinecraftItemTypes["AcaciaButton"] = "minecraft:acacia_button"; - MinecraftItemTypes["AcaciaChestBoat"] = "minecraft:acacia_chest_boat"; - MinecraftItemTypes["AcaciaDoor"] = "minecraft:acacia_door"; - MinecraftItemTypes["AcaciaFence"] = "minecraft:acacia_fence"; - MinecraftItemTypes["AcaciaFenceGate"] = "minecraft:acacia_fence_gate"; - MinecraftItemTypes["AcaciaHangingSign"] = "minecraft:acacia_hanging_sign"; - MinecraftItemTypes["AcaciaLog"] = "minecraft:acacia_log"; - MinecraftItemTypes["AcaciaPressurePlate"] = "minecraft:acacia_pressure_plate"; - MinecraftItemTypes["AcaciaSign"] = "minecraft:acacia_sign"; - MinecraftItemTypes["AcaciaStairs"] = "minecraft:acacia_stairs"; - MinecraftItemTypes["AcaciaTrapdoor"] = "minecraft:acacia_trapdoor"; - MinecraftItemTypes["ActivatorRail"] = "minecraft:activator_rail"; - MinecraftItemTypes["AllaySpawnEgg"] = "minecraft:allay_spawn_egg"; - MinecraftItemTypes["Allow"] = "minecraft:allow"; - MinecraftItemTypes["AmethystBlock"] = "minecraft:amethyst_block"; - MinecraftItemTypes["AmethystCluster"] = "minecraft:amethyst_cluster"; - MinecraftItemTypes["AmethystShard"] = "minecraft:amethyst_shard"; - MinecraftItemTypes["AncientDebris"] = "minecraft:ancient_debris"; - MinecraftItemTypes["AndesiteStairs"] = "minecraft:andesite_stairs"; - MinecraftItemTypes["AnglerPotterySherd"] = "minecraft:angler_pottery_sherd"; - MinecraftItemTypes["Anvil"] = "minecraft:anvil"; - MinecraftItemTypes["Apple"] = "minecraft:apple"; - MinecraftItemTypes["ArcherPotterySherd"] = "minecraft:archer_pottery_sherd"; - MinecraftItemTypes["ArmorStand"] = "minecraft:armor_stand"; - MinecraftItemTypes["ArmsUpPotterySherd"] = "minecraft:arms_up_pottery_sherd"; - MinecraftItemTypes["Arrow"] = "minecraft:arrow"; - MinecraftItemTypes["AxolotlBucket"] = "minecraft:axolotl_bucket"; - MinecraftItemTypes["AxolotlSpawnEgg"] = "minecraft:axolotl_spawn_egg"; - MinecraftItemTypes["Azalea"] = "minecraft:azalea"; - MinecraftItemTypes["AzaleaLeaves"] = "minecraft:azalea_leaves"; - MinecraftItemTypes["AzaleaLeavesFlowered"] = "minecraft:azalea_leaves_flowered"; - MinecraftItemTypes["BakedPotato"] = "minecraft:baked_potato"; - MinecraftItemTypes["Bamboo"] = "minecraft:bamboo"; - MinecraftItemTypes["BambooBlock"] = "minecraft:bamboo_block"; - MinecraftItemTypes["BambooButton"] = "minecraft:bamboo_button"; - MinecraftItemTypes["BambooChestRaft"] = "minecraft:bamboo_chest_raft"; - MinecraftItemTypes["BambooDoor"] = "minecraft:bamboo_door"; - MinecraftItemTypes["BambooFence"] = "minecraft:bamboo_fence"; - MinecraftItemTypes["BambooFenceGate"] = "minecraft:bamboo_fence_gate"; - MinecraftItemTypes["BambooHangingSign"] = "minecraft:bamboo_hanging_sign"; - MinecraftItemTypes["BambooMosaic"] = "minecraft:bamboo_mosaic"; - MinecraftItemTypes["BambooMosaicSlab"] = "minecraft:bamboo_mosaic_slab"; - MinecraftItemTypes["BambooMosaicStairs"] = "minecraft:bamboo_mosaic_stairs"; - MinecraftItemTypes["BambooPlanks"] = "minecraft:bamboo_planks"; - MinecraftItemTypes["BambooPressurePlate"] = "minecraft:bamboo_pressure_plate"; - MinecraftItemTypes["BambooRaft"] = "minecraft:bamboo_raft"; - MinecraftItemTypes["BambooSign"] = "minecraft:bamboo_sign"; - MinecraftItemTypes["BambooSlab"] = "minecraft:bamboo_slab"; - MinecraftItemTypes["BambooStairs"] = "minecraft:bamboo_stairs"; - MinecraftItemTypes["BambooTrapdoor"] = "minecraft:bamboo_trapdoor"; - MinecraftItemTypes["Banner"] = "minecraft:banner"; - MinecraftItemTypes["BannerPattern"] = "minecraft:banner_pattern"; - MinecraftItemTypes["Barrel"] = "minecraft:barrel"; - MinecraftItemTypes["Barrier"] = "minecraft:barrier"; - MinecraftItemTypes["Basalt"] = "minecraft:basalt"; - MinecraftItemTypes["BatSpawnEgg"] = "minecraft:bat_spawn_egg"; - MinecraftItemTypes["Beacon"] = "minecraft:beacon"; - MinecraftItemTypes["Bed"] = "minecraft:bed"; - MinecraftItemTypes["Bedrock"] = "minecraft:bedrock"; - MinecraftItemTypes["BeeNest"] = "minecraft:bee_nest"; - MinecraftItemTypes["BeeSpawnEgg"] = "minecraft:bee_spawn_egg"; - MinecraftItemTypes["Beef"] = "minecraft:beef"; - MinecraftItemTypes["Beehive"] = "minecraft:beehive"; - MinecraftItemTypes["Beetroot"] = "minecraft:beetroot"; - MinecraftItemTypes["BeetrootSeeds"] = "minecraft:beetroot_seeds"; - MinecraftItemTypes["BeetrootSoup"] = "minecraft:beetroot_soup"; - MinecraftItemTypes["Bell"] = "minecraft:bell"; - MinecraftItemTypes["BigDripleaf"] = "minecraft:big_dripleaf"; - MinecraftItemTypes["BirchBoat"] = "minecraft:birch_boat"; - MinecraftItemTypes["BirchButton"] = "minecraft:birch_button"; - MinecraftItemTypes["BirchChestBoat"] = "minecraft:birch_chest_boat"; - MinecraftItemTypes["BirchDoor"] = "minecraft:birch_door"; - MinecraftItemTypes["BirchFence"] = "minecraft:birch_fence"; - MinecraftItemTypes["BirchFenceGate"] = "minecraft:birch_fence_gate"; - MinecraftItemTypes["BirchHangingSign"] = "minecraft:birch_hanging_sign"; - MinecraftItemTypes["BirchLog"] = "minecraft:birch_log"; - MinecraftItemTypes["BirchPressurePlate"] = "minecraft:birch_pressure_plate"; - MinecraftItemTypes["BirchSign"] = "minecraft:birch_sign"; - MinecraftItemTypes["BirchStairs"] = "minecraft:birch_stairs"; - MinecraftItemTypes["BirchTrapdoor"] = "minecraft:birch_trapdoor"; - MinecraftItemTypes["BlackCandle"] = "minecraft:black_candle"; - MinecraftItemTypes["BlackCarpet"] = "minecraft:black_carpet"; - MinecraftItemTypes["BlackConcrete"] = "minecraft:black_concrete"; - MinecraftItemTypes["BlackDye"] = "minecraft:black_dye"; - MinecraftItemTypes["BlackGlazedTerracotta"] = "minecraft:black_glazed_terracotta"; - MinecraftItemTypes["BlackShulkerBox"] = "minecraft:black_shulker_box"; - MinecraftItemTypes["BlackWool"] = "minecraft:black_wool"; - MinecraftItemTypes["Blackstone"] = "minecraft:blackstone"; - MinecraftItemTypes["BlackstoneSlab"] = "minecraft:blackstone_slab"; - MinecraftItemTypes["BlackstoneStairs"] = "minecraft:blackstone_stairs"; - MinecraftItemTypes["BlackstoneWall"] = "minecraft:blackstone_wall"; - MinecraftItemTypes["BladePotterySherd"] = "minecraft:blade_pottery_sherd"; - MinecraftItemTypes["BlastFurnace"] = "minecraft:blast_furnace"; - MinecraftItemTypes["BlazePowder"] = "minecraft:blaze_powder"; - MinecraftItemTypes["BlazeRod"] = "minecraft:blaze_rod"; - MinecraftItemTypes["BlazeSpawnEgg"] = "minecraft:blaze_spawn_egg"; - MinecraftItemTypes["BlueCandle"] = "minecraft:blue_candle"; - MinecraftItemTypes["BlueCarpet"] = "minecraft:blue_carpet"; - MinecraftItemTypes["BlueConcrete"] = "minecraft:blue_concrete"; - MinecraftItemTypes["BlueDye"] = "minecraft:blue_dye"; - MinecraftItemTypes["BlueGlazedTerracotta"] = "minecraft:blue_glazed_terracotta"; - MinecraftItemTypes["BlueIce"] = "minecraft:blue_ice"; - MinecraftItemTypes["BlueShulkerBox"] = "minecraft:blue_shulker_box"; - MinecraftItemTypes["BlueWool"] = "minecraft:blue_wool"; - MinecraftItemTypes["Boat"] = "minecraft:boat"; - MinecraftItemTypes["Bone"] = "minecraft:bone"; - MinecraftItemTypes["BoneBlock"] = "minecraft:bone_block"; - MinecraftItemTypes["BoneMeal"] = "minecraft:bone_meal"; - MinecraftItemTypes["Book"] = "minecraft:book"; - MinecraftItemTypes["Bookshelf"] = "minecraft:bookshelf"; - MinecraftItemTypes["BorderBlock"] = "minecraft:border_block"; - MinecraftItemTypes["BordureIndentedBannerPattern"] = "minecraft:bordure_indented_banner_pattern"; - MinecraftItemTypes["Bow"] = "minecraft:bow"; - MinecraftItemTypes["Bowl"] = "minecraft:bowl"; - MinecraftItemTypes["BrainCoral"] = "minecraft:brain_coral"; - MinecraftItemTypes["Bread"] = "minecraft:bread"; - MinecraftItemTypes["BrewerPotterySherd"] = "minecraft:brewer_pottery_sherd"; - MinecraftItemTypes["BrewingStand"] = "minecraft:brewing_stand"; - MinecraftItemTypes["Brick"] = "minecraft:brick"; - MinecraftItemTypes["BrickBlock"] = "minecraft:brick_block"; - MinecraftItemTypes["BrickStairs"] = "minecraft:brick_stairs"; - MinecraftItemTypes["BrownCandle"] = "minecraft:brown_candle"; - MinecraftItemTypes["BrownCarpet"] = "minecraft:brown_carpet"; - MinecraftItemTypes["BrownConcrete"] = "minecraft:brown_concrete"; - MinecraftItemTypes["BrownDye"] = "minecraft:brown_dye"; - MinecraftItemTypes["BrownGlazedTerracotta"] = "minecraft:brown_glazed_terracotta"; - MinecraftItemTypes["BrownMushroom"] = "minecraft:brown_mushroom"; - MinecraftItemTypes["BrownMushroomBlock"] = "minecraft:brown_mushroom_block"; - MinecraftItemTypes["BrownShulkerBox"] = "minecraft:brown_shulker_box"; - MinecraftItemTypes["BrownWool"] = "minecraft:brown_wool"; - MinecraftItemTypes["Brush"] = "minecraft:brush"; - MinecraftItemTypes["BubbleCoral"] = "minecraft:bubble_coral"; - MinecraftItemTypes["Bucket"] = "minecraft:bucket"; - MinecraftItemTypes["BuddingAmethyst"] = "minecraft:budding_amethyst"; - MinecraftItemTypes["BurnPotterySherd"] = "minecraft:burn_pottery_sherd"; - MinecraftItemTypes["Cactus"] = "minecraft:cactus"; - MinecraftItemTypes["Cake"] = "minecraft:cake"; - MinecraftItemTypes["Calcite"] = "minecraft:calcite"; - MinecraftItemTypes["CalibratedSculkSensor"] = "minecraft:calibrated_sculk_sensor"; - MinecraftItemTypes["CamelSpawnEgg"] = "minecraft:camel_spawn_egg"; - MinecraftItemTypes["Campfire"] = "minecraft:campfire"; - MinecraftItemTypes["Candle"] = "minecraft:candle"; - MinecraftItemTypes["Carpet"] = "minecraft:carpet"; - MinecraftItemTypes["Carrot"] = "minecraft:carrot"; - MinecraftItemTypes["CarrotOnAStick"] = "minecraft:carrot_on_a_stick"; - MinecraftItemTypes["CartographyTable"] = "minecraft:cartography_table"; - MinecraftItemTypes["CarvedPumpkin"] = "minecraft:carved_pumpkin"; - MinecraftItemTypes["CatSpawnEgg"] = "minecraft:cat_spawn_egg"; - MinecraftItemTypes["Cauldron"] = "minecraft:cauldron"; - MinecraftItemTypes["CaveSpiderSpawnEgg"] = "minecraft:cave_spider_spawn_egg"; - MinecraftItemTypes["Chain"] = "minecraft:chain"; - MinecraftItemTypes["ChainCommandBlock"] = "minecraft:chain_command_block"; - MinecraftItemTypes["ChainmailBoots"] = "minecraft:chainmail_boots"; - MinecraftItemTypes["ChainmailChestplate"] = "minecraft:chainmail_chestplate"; - MinecraftItemTypes["ChainmailHelmet"] = "minecraft:chainmail_helmet"; - MinecraftItemTypes["ChainmailLeggings"] = "minecraft:chainmail_leggings"; - MinecraftItemTypes["Charcoal"] = "minecraft:charcoal"; - MinecraftItemTypes["CherryBoat"] = "minecraft:cherry_boat"; - MinecraftItemTypes["CherryButton"] = "minecraft:cherry_button"; - MinecraftItemTypes["CherryChestBoat"] = "minecraft:cherry_chest_boat"; - MinecraftItemTypes["CherryDoor"] = "minecraft:cherry_door"; - MinecraftItemTypes["CherryFence"] = "minecraft:cherry_fence"; - MinecraftItemTypes["CherryFenceGate"] = "minecraft:cherry_fence_gate"; - MinecraftItemTypes["CherryHangingSign"] = "minecraft:cherry_hanging_sign"; - MinecraftItemTypes["CherryLeaves"] = "minecraft:cherry_leaves"; - MinecraftItemTypes["CherryLog"] = "minecraft:cherry_log"; - MinecraftItemTypes["CherryPlanks"] = "minecraft:cherry_planks"; - MinecraftItemTypes["CherryPressurePlate"] = "minecraft:cherry_pressure_plate"; - MinecraftItemTypes["CherrySapling"] = "minecraft:cherry_sapling"; - MinecraftItemTypes["CherrySign"] = "minecraft:cherry_sign"; - MinecraftItemTypes["CherrySlab"] = "minecraft:cherry_slab"; - MinecraftItemTypes["CherryStairs"] = "minecraft:cherry_stairs"; - MinecraftItemTypes["CherryTrapdoor"] = "minecraft:cherry_trapdoor"; - MinecraftItemTypes["CherryWood"] = "minecraft:cherry_wood"; - MinecraftItemTypes["Chest"] = "minecraft:chest"; - MinecraftItemTypes["ChestBoat"] = "minecraft:chest_boat"; - MinecraftItemTypes["ChestMinecart"] = "minecraft:chest_minecart"; - MinecraftItemTypes["Chicken"] = "minecraft:chicken"; - MinecraftItemTypes["ChickenSpawnEgg"] = "minecraft:chicken_spawn_egg"; - MinecraftItemTypes["ChiseledBookshelf"] = "minecraft:chiseled_bookshelf"; - MinecraftItemTypes["ChiseledDeepslate"] = "minecraft:chiseled_deepslate"; - MinecraftItemTypes["ChiseledNetherBricks"] = "minecraft:chiseled_nether_bricks"; - MinecraftItemTypes["ChiseledPolishedBlackstone"] = "minecraft:chiseled_polished_blackstone"; - MinecraftItemTypes["ChorusFlower"] = "minecraft:chorus_flower"; - MinecraftItemTypes["ChorusFruit"] = "minecraft:chorus_fruit"; - MinecraftItemTypes["ChorusPlant"] = "minecraft:chorus_plant"; - MinecraftItemTypes["Clay"] = "minecraft:clay"; - MinecraftItemTypes["ClayBall"] = "minecraft:clay_ball"; - MinecraftItemTypes["Clock"] = "minecraft:clock"; - MinecraftItemTypes["Coal"] = "minecraft:coal"; - MinecraftItemTypes["CoalBlock"] = "minecraft:coal_block"; - MinecraftItemTypes["CoalOre"] = "minecraft:coal_ore"; - MinecraftItemTypes["CoastArmorTrimSmithingTemplate"] = "minecraft:coast_armor_trim_smithing_template"; - MinecraftItemTypes["CobbledDeepslate"] = "minecraft:cobbled_deepslate"; - MinecraftItemTypes["CobbledDeepslateSlab"] = "minecraft:cobbled_deepslate_slab"; - MinecraftItemTypes["CobbledDeepslateStairs"] = "minecraft:cobbled_deepslate_stairs"; - MinecraftItemTypes["CobbledDeepslateWall"] = "minecraft:cobbled_deepslate_wall"; - MinecraftItemTypes["Cobblestone"] = "minecraft:cobblestone"; - MinecraftItemTypes["CobblestoneWall"] = "minecraft:cobblestone_wall"; - MinecraftItemTypes["CocoaBeans"] = "minecraft:cocoa_beans"; - MinecraftItemTypes["Cod"] = "minecraft:cod"; - MinecraftItemTypes["CodBucket"] = "minecraft:cod_bucket"; - MinecraftItemTypes["CodSpawnEgg"] = "minecraft:cod_spawn_egg"; - MinecraftItemTypes["CommandBlock"] = "minecraft:command_block"; - MinecraftItemTypes["CommandBlockMinecart"] = "minecraft:command_block_minecart"; - MinecraftItemTypes["Comparator"] = "minecraft:comparator"; - MinecraftItemTypes["Compass"] = "minecraft:compass"; - MinecraftItemTypes["Composter"] = "minecraft:composter"; - MinecraftItemTypes["Concrete"] = "minecraft:concrete"; - MinecraftItemTypes["ConcretePowder"] = "minecraft:concrete_powder"; - MinecraftItemTypes["Conduit"] = "minecraft:conduit"; - MinecraftItemTypes["CookedBeef"] = "minecraft:cooked_beef"; - MinecraftItemTypes["CookedChicken"] = "minecraft:cooked_chicken"; - MinecraftItemTypes["CookedCod"] = "minecraft:cooked_cod"; - MinecraftItemTypes["CookedMutton"] = "minecraft:cooked_mutton"; - MinecraftItemTypes["CookedPorkchop"] = "minecraft:cooked_porkchop"; - MinecraftItemTypes["CookedRabbit"] = "minecraft:cooked_rabbit"; - MinecraftItemTypes["CookedSalmon"] = "minecraft:cooked_salmon"; - MinecraftItemTypes["Cookie"] = "minecraft:cookie"; - MinecraftItemTypes["CopperBlock"] = "minecraft:copper_block"; - MinecraftItemTypes["CopperIngot"] = "minecraft:copper_ingot"; - MinecraftItemTypes["CopperOre"] = "minecraft:copper_ore"; - MinecraftItemTypes["Coral"] = "minecraft:coral"; - MinecraftItemTypes["CoralBlock"] = "minecraft:coral_block"; - MinecraftItemTypes["CoralFan"] = "minecraft:coral_fan"; - MinecraftItemTypes["CoralFanDead"] = "minecraft:coral_fan_dead"; - MinecraftItemTypes["CowSpawnEgg"] = "minecraft:cow_spawn_egg"; - MinecraftItemTypes["CrackedDeepslateBricks"] = "minecraft:cracked_deepslate_bricks"; - MinecraftItemTypes["CrackedDeepslateTiles"] = "minecraft:cracked_deepslate_tiles"; - MinecraftItemTypes["CrackedNetherBricks"] = "minecraft:cracked_nether_bricks"; - MinecraftItemTypes["CrackedPolishedBlackstoneBricks"] = "minecraft:cracked_polished_blackstone_bricks"; - MinecraftItemTypes["CraftingTable"] = "minecraft:crafting_table"; - MinecraftItemTypes["CreeperBannerPattern"] = "minecraft:creeper_banner_pattern"; - MinecraftItemTypes["CreeperSpawnEgg"] = "minecraft:creeper_spawn_egg"; - MinecraftItemTypes["CrimsonButton"] = "minecraft:crimson_button"; - MinecraftItemTypes["CrimsonDoor"] = "minecraft:crimson_door"; - MinecraftItemTypes["CrimsonFence"] = "minecraft:crimson_fence"; - MinecraftItemTypes["CrimsonFenceGate"] = "minecraft:crimson_fence_gate"; - MinecraftItemTypes["CrimsonFungus"] = "minecraft:crimson_fungus"; - MinecraftItemTypes["CrimsonHangingSign"] = "minecraft:crimson_hanging_sign"; - MinecraftItemTypes["CrimsonHyphae"] = "minecraft:crimson_hyphae"; - MinecraftItemTypes["CrimsonNylium"] = "minecraft:crimson_nylium"; - MinecraftItemTypes["CrimsonPlanks"] = "minecraft:crimson_planks"; - MinecraftItemTypes["CrimsonPressurePlate"] = "minecraft:crimson_pressure_plate"; - MinecraftItemTypes["CrimsonRoots"] = "minecraft:crimson_roots"; - MinecraftItemTypes["CrimsonSign"] = "minecraft:crimson_sign"; - MinecraftItemTypes["CrimsonSlab"] = "minecraft:crimson_slab"; - MinecraftItemTypes["CrimsonStairs"] = "minecraft:crimson_stairs"; - MinecraftItemTypes["CrimsonStem"] = "minecraft:crimson_stem"; - MinecraftItemTypes["CrimsonTrapdoor"] = "minecraft:crimson_trapdoor"; - MinecraftItemTypes["Crossbow"] = "minecraft:crossbow"; - MinecraftItemTypes["CryingObsidian"] = "minecraft:crying_obsidian"; - MinecraftItemTypes["CutCopper"] = "minecraft:cut_copper"; - MinecraftItemTypes["CutCopperSlab"] = "minecraft:cut_copper_slab"; - MinecraftItemTypes["CutCopperStairs"] = "minecraft:cut_copper_stairs"; - MinecraftItemTypes["CyanCandle"] = "minecraft:cyan_candle"; - MinecraftItemTypes["CyanCarpet"] = "minecraft:cyan_carpet"; - MinecraftItemTypes["CyanConcrete"] = "minecraft:cyan_concrete"; - MinecraftItemTypes["CyanDye"] = "minecraft:cyan_dye"; - MinecraftItemTypes["CyanGlazedTerracotta"] = "minecraft:cyan_glazed_terracotta"; - MinecraftItemTypes["CyanShulkerBox"] = "minecraft:cyan_shulker_box"; - MinecraftItemTypes["CyanWool"] = "minecraft:cyan_wool"; - MinecraftItemTypes["DangerPotterySherd"] = "minecraft:danger_pottery_sherd"; - MinecraftItemTypes["DarkOakBoat"] = "minecraft:dark_oak_boat"; - MinecraftItemTypes["DarkOakButton"] = "minecraft:dark_oak_button"; - MinecraftItemTypes["DarkOakChestBoat"] = "minecraft:dark_oak_chest_boat"; - MinecraftItemTypes["DarkOakDoor"] = "minecraft:dark_oak_door"; - MinecraftItemTypes["DarkOakFence"] = "minecraft:dark_oak_fence"; - MinecraftItemTypes["DarkOakFenceGate"] = "minecraft:dark_oak_fence_gate"; - MinecraftItemTypes["DarkOakHangingSign"] = "minecraft:dark_oak_hanging_sign"; - MinecraftItemTypes["DarkOakLog"] = "minecraft:dark_oak_log"; - MinecraftItemTypes["DarkOakPressurePlate"] = "minecraft:dark_oak_pressure_plate"; - MinecraftItemTypes["DarkOakSign"] = "minecraft:dark_oak_sign"; - MinecraftItemTypes["DarkOakStairs"] = "minecraft:dark_oak_stairs"; - MinecraftItemTypes["DarkOakTrapdoor"] = "minecraft:dark_oak_trapdoor"; - MinecraftItemTypes["DarkPrismarineStairs"] = "minecraft:dark_prismarine_stairs"; - MinecraftItemTypes["DaylightDetector"] = "minecraft:daylight_detector"; - MinecraftItemTypes["DeadBrainCoral"] = "minecraft:dead_brain_coral"; - MinecraftItemTypes["DeadBubbleCoral"] = "minecraft:dead_bubble_coral"; - MinecraftItemTypes["DeadFireCoral"] = "minecraft:dead_fire_coral"; - MinecraftItemTypes["DeadHornCoral"] = "minecraft:dead_horn_coral"; - MinecraftItemTypes["DeadTubeCoral"] = "minecraft:dead_tube_coral"; - MinecraftItemTypes["Deadbush"] = "minecraft:deadbush"; - MinecraftItemTypes["DecoratedPot"] = "minecraft:decorated_pot"; - MinecraftItemTypes["Deepslate"] = "minecraft:deepslate"; - MinecraftItemTypes["DeepslateBrickSlab"] = "minecraft:deepslate_brick_slab"; - MinecraftItemTypes["DeepslateBrickStairs"] = "minecraft:deepslate_brick_stairs"; - MinecraftItemTypes["DeepslateBrickWall"] = "minecraft:deepslate_brick_wall"; - MinecraftItemTypes["DeepslateBricks"] = "minecraft:deepslate_bricks"; - MinecraftItemTypes["DeepslateCoalOre"] = "minecraft:deepslate_coal_ore"; - MinecraftItemTypes["DeepslateCopperOre"] = "minecraft:deepslate_copper_ore"; - MinecraftItemTypes["DeepslateDiamondOre"] = "minecraft:deepslate_diamond_ore"; - MinecraftItemTypes["DeepslateEmeraldOre"] = "minecraft:deepslate_emerald_ore"; - MinecraftItemTypes["DeepslateGoldOre"] = "minecraft:deepslate_gold_ore"; - MinecraftItemTypes["DeepslateIronOre"] = "minecraft:deepslate_iron_ore"; - MinecraftItemTypes["DeepslateLapisOre"] = "minecraft:deepslate_lapis_ore"; - MinecraftItemTypes["DeepslateRedstoneOre"] = "minecraft:deepslate_redstone_ore"; - MinecraftItemTypes["DeepslateTileSlab"] = "minecraft:deepslate_tile_slab"; - MinecraftItemTypes["DeepslateTileStairs"] = "minecraft:deepslate_tile_stairs"; - MinecraftItemTypes["DeepslateTileWall"] = "minecraft:deepslate_tile_wall"; - MinecraftItemTypes["DeepslateTiles"] = "minecraft:deepslate_tiles"; - MinecraftItemTypes["Deny"] = "minecraft:deny"; - MinecraftItemTypes["DetectorRail"] = "minecraft:detector_rail"; - MinecraftItemTypes["Diamond"] = "minecraft:diamond"; - MinecraftItemTypes["DiamondAxe"] = "minecraft:diamond_axe"; - MinecraftItemTypes["DiamondBlock"] = "minecraft:diamond_block"; - MinecraftItemTypes["DiamondBoots"] = "minecraft:diamond_boots"; - MinecraftItemTypes["DiamondChestplate"] = "minecraft:diamond_chestplate"; - MinecraftItemTypes["DiamondHelmet"] = "minecraft:diamond_helmet"; - MinecraftItemTypes["DiamondHoe"] = "minecraft:diamond_hoe"; - MinecraftItemTypes["DiamondHorseArmor"] = "minecraft:diamond_horse_armor"; - MinecraftItemTypes["DiamondLeggings"] = "minecraft:diamond_leggings"; - MinecraftItemTypes["DiamondOre"] = "minecraft:diamond_ore"; - MinecraftItemTypes["DiamondPickaxe"] = "minecraft:diamond_pickaxe"; - MinecraftItemTypes["DiamondShovel"] = "minecraft:diamond_shovel"; - MinecraftItemTypes["DiamondSword"] = "minecraft:diamond_sword"; - MinecraftItemTypes["DioriteStairs"] = "minecraft:diorite_stairs"; - MinecraftItemTypes["Dirt"] = "minecraft:dirt"; - MinecraftItemTypes["DirtWithRoots"] = "minecraft:dirt_with_roots"; - MinecraftItemTypes["DiscFragment5"] = "minecraft:disc_fragment_5"; - MinecraftItemTypes["Dispenser"] = "minecraft:dispenser"; - MinecraftItemTypes["DolphinSpawnEgg"] = "minecraft:dolphin_spawn_egg"; - MinecraftItemTypes["DonkeySpawnEgg"] = "minecraft:donkey_spawn_egg"; - MinecraftItemTypes["DoublePlant"] = "minecraft:double_plant"; - MinecraftItemTypes["DragonBreath"] = "minecraft:dragon_breath"; - MinecraftItemTypes["DragonEgg"] = "minecraft:dragon_egg"; - MinecraftItemTypes["DriedKelp"] = "minecraft:dried_kelp"; - MinecraftItemTypes["DriedKelpBlock"] = "minecraft:dried_kelp_block"; - MinecraftItemTypes["DripstoneBlock"] = "minecraft:dripstone_block"; - MinecraftItemTypes["Dropper"] = "minecraft:dropper"; - MinecraftItemTypes["DrownedSpawnEgg"] = "minecraft:drowned_spawn_egg"; - MinecraftItemTypes["DuneArmorTrimSmithingTemplate"] = "minecraft:dune_armor_trim_smithing_template"; - MinecraftItemTypes["Dye"] = "minecraft:dye"; - MinecraftItemTypes["EchoShard"] = "minecraft:echo_shard"; - MinecraftItemTypes["Egg"] = "minecraft:egg"; - MinecraftItemTypes["ElderGuardianSpawnEgg"] = "minecraft:elder_guardian_spawn_egg"; - MinecraftItemTypes["Elytra"] = "minecraft:elytra"; - MinecraftItemTypes["Emerald"] = "minecraft:emerald"; - MinecraftItemTypes["EmeraldBlock"] = "minecraft:emerald_block"; - MinecraftItemTypes["EmeraldOre"] = "minecraft:emerald_ore"; - MinecraftItemTypes["EmptyMap"] = "minecraft:empty_map"; - MinecraftItemTypes["EnchantedBook"] = "minecraft:enchanted_book"; - MinecraftItemTypes["EnchantedGoldenApple"] = "minecraft:enchanted_golden_apple"; - MinecraftItemTypes["EnchantingTable"] = "minecraft:enchanting_table"; - MinecraftItemTypes["EndBrickStairs"] = "minecraft:end_brick_stairs"; - MinecraftItemTypes["EndBricks"] = "minecraft:end_bricks"; - MinecraftItemTypes["EndCrystal"] = "minecraft:end_crystal"; - MinecraftItemTypes["EndPortalFrame"] = "minecraft:end_portal_frame"; - MinecraftItemTypes["EndRod"] = "minecraft:end_rod"; - MinecraftItemTypes["EndStone"] = "minecraft:end_stone"; - MinecraftItemTypes["EnderChest"] = "minecraft:ender_chest"; - MinecraftItemTypes["EnderDragonSpawnEgg"] = "minecraft:ender_dragon_spawn_egg"; - MinecraftItemTypes["EnderEye"] = "minecraft:ender_eye"; - MinecraftItemTypes["EnderPearl"] = "minecraft:ender_pearl"; - MinecraftItemTypes["EndermanSpawnEgg"] = "minecraft:enderman_spawn_egg"; - MinecraftItemTypes["EndermiteSpawnEgg"] = "minecraft:endermite_spawn_egg"; - MinecraftItemTypes["EvokerSpawnEgg"] = "minecraft:evoker_spawn_egg"; - MinecraftItemTypes["ExperienceBottle"] = "minecraft:experience_bottle"; - MinecraftItemTypes["ExplorerPotterySherd"] = "minecraft:explorer_pottery_sherd"; - MinecraftItemTypes["ExposedCopper"] = "minecraft:exposed_copper"; - MinecraftItemTypes["ExposedCutCopper"] = "minecraft:exposed_cut_copper"; - MinecraftItemTypes["ExposedCutCopperSlab"] = "minecraft:exposed_cut_copper_slab"; - MinecraftItemTypes["ExposedCutCopperStairs"] = "minecraft:exposed_cut_copper_stairs"; - MinecraftItemTypes["EyeArmorTrimSmithingTemplate"] = "minecraft:eye_armor_trim_smithing_template"; - MinecraftItemTypes["Farmland"] = "minecraft:farmland"; - MinecraftItemTypes["Feather"] = "minecraft:feather"; - MinecraftItemTypes["Fence"] = "minecraft:fence"; - MinecraftItemTypes["FenceGate"] = "minecraft:fence_gate"; - MinecraftItemTypes["FermentedSpiderEye"] = "minecraft:fermented_spider_eye"; - MinecraftItemTypes["FieldMasonedBannerPattern"] = "minecraft:field_masoned_banner_pattern"; - MinecraftItemTypes["FilledMap"] = "minecraft:filled_map"; - MinecraftItemTypes["FireCharge"] = "minecraft:fire_charge"; - MinecraftItemTypes["FireCoral"] = "minecraft:fire_coral"; - MinecraftItemTypes["FireworkRocket"] = "minecraft:firework_rocket"; - MinecraftItemTypes["FireworkStar"] = "minecraft:firework_star"; - MinecraftItemTypes["FishingRod"] = "minecraft:fishing_rod"; - MinecraftItemTypes["FletchingTable"] = "minecraft:fletching_table"; - MinecraftItemTypes["Flint"] = "minecraft:flint"; - MinecraftItemTypes["FlintAndSteel"] = "minecraft:flint_and_steel"; - MinecraftItemTypes["FlowerBannerPattern"] = "minecraft:flower_banner_pattern"; - MinecraftItemTypes["FlowerPot"] = "minecraft:flower_pot"; - MinecraftItemTypes["FloweringAzalea"] = "minecraft:flowering_azalea"; - MinecraftItemTypes["FoxSpawnEgg"] = "minecraft:fox_spawn_egg"; - MinecraftItemTypes["Frame"] = "minecraft:frame"; - MinecraftItemTypes["FriendPotterySherd"] = "minecraft:friend_pottery_sherd"; - MinecraftItemTypes["FrogSpawn"] = "minecraft:frog_spawn"; - MinecraftItemTypes["FrogSpawnEgg"] = "minecraft:frog_spawn_egg"; - MinecraftItemTypes["FrostedIce"] = "minecraft:frosted_ice"; - MinecraftItemTypes["Furnace"] = "minecraft:furnace"; - MinecraftItemTypes["GhastSpawnEgg"] = "minecraft:ghast_spawn_egg"; - MinecraftItemTypes["GhastTear"] = "minecraft:ghast_tear"; - MinecraftItemTypes["GildedBlackstone"] = "minecraft:gilded_blackstone"; - MinecraftItemTypes["Glass"] = "minecraft:glass"; - MinecraftItemTypes["GlassBottle"] = "minecraft:glass_bottle"; - MinecraftItemTypes["GlassPane"] = "minecraft:glass_pane"; - MinecraftItemTypes["GlisteringMelonSlice"] = "minecraft:glistering_melon_slice"; - MinecraftItemTypes["GlobeBannerPattern"] = "minecraft:globe_banner_pattern"; - MinecraftItemTypes["GlowBerries"] = "minecraft:glow_berries"; - MinecraftItemTypes["GlowFrame"] = "minecraft:glow_frame"; - MinecraftItemTypes["GlowInkSac"] = "minecraft:glow_ink_sac"; - MinecraftItemTypes["GlowLichen"] = "minecraft:glow_lichen"; - MinecraftItemTypes["GlowSquidSpawnEgg"] = "minecraft:glow_squid_spawn_egg"; - MinecraftItemTypes["Glowstone"] = "minecraft:glowstone"; - MinecraftItemTypes["GlowstoneDust"] = "minecraft:glowstone_dust"; - MinecraftItemTypes["GoatHorn"] = "minecraft:goat_horn"; - MinecraftItemTypes["GoatSpawnEgg"] = "minecraft:goat_spawn_egg"; - MinecraftItemTypes["GoldBlock"] = "minecraft:gold_block"; - MinecraftItemTypes["GoldIngot"] = "minecraft:gold_ingot"; - MinecraftItemTypes["GoldNugget"] = "minecraft:gold_nugget"; - MinecraftItemTypes["GoldOre"] = "minecraft:gold_ore"; - MinecraftItemTypes["GoldenApple"] = "minecraft:golden_apple"; - MinecraftItemTypes["GoldenAxe"] = "minecraft:golden_axe"; - MinecraftItemTypes["GoldenBoots"] = "minecraft:golden_boots"; - MinecraftItemTypes["GoldenCarrot"] = "minecraft:golden_carrot"; - MinecraftItemTypes["GoldenChestplate"] = "minecraft:golden_chestplate"; - MinecraftItemTypes["GoldenHelmet"] = "minecraft:golden_helmet"; - MinecraftItemTypes["GoldenHoe"] = "minecraft:golden_hoe"; - MinecraftItemTypes["GoldenHorseArmor"] = "minecraft:golden_horse_armor"; - MinecraftItemTypes["GoldenLeggings"] = "minecraft:golden_leggings"; - MinecraftItemTypes["GoldenPickaxe"] = "minecraft:golden_pickaxe"; - MinecraftItemTypes["GoldenRail"] = "minecraft:golden_rail"; - MinecraftItemTypes["GoldenShovel"] = "minecraft:golden_shovel"; - MinecraftItemTypes["GoldenSword"] = "minecraft:golden_sword"; - MinecraftItemTypes["GraniteStairs"] = "minecraft:granite_stairs"; - MinecraftItemTypes["Grass"] = "minecraft:grass"; - MinecraftItemTypes["GrassPath"] = "minecraft:grass_path"; - MinecraftItemTypes["Gravel"] = "minecraft:gravel"; - MinecraftItemTypes["GrayCandle"] = "minecraft:gray_candle"; - MinecraftItemTypes["GrayCarpet"] = "minecraft:gray_carpet"; - MinecraftItemTypes["GrayConcrete"] = "minecraft:gray_concrete"; - MinecraftItemTypes["GrayDye"] = "minecraft:gray_dye"; - MinecraftItemTypes["GrayGlazedTerracotta"] = "minecraft:gray_glazed_terracotta"; - MinecraftItemTypes["GrayShulkerBox"] = "minecraft:gray_shulker_box"; - MinecraftItemTypes["GrayWool"] = "minecraft:gray_wool"; - MinecraftItemTypes["GreenCandle"] = "minecraft:green_candle"; - MinecraftItemTypes["GreenCarpet"] = "minecraft:green_carpet"; - MinecraftItemTypes["GreenConcrete"] = "minecraft:green_concrete"; - MinecraftItemTypes["GreenDye"] = "minecraft:green_dye"; - MinecraftItemTypes["GreenGlazedTerracotta"] = "minecraft:green_glazed_terracotta"; - MinecraftItemTypes["GreenShulkerBox"] = "minecraft:green_shulker_box"; - MinecraftItemTypes["GreenWool"] = "minecraft:green_wool"; - MinecraftItemTypes["Grindstone"] = "minecraft:grindstone"; - MinecraftItemTypes["GuardianSpawnEgg"] = "minecraft:guardian_spawn_egg"; - MinecraftItemTypes["Gunpowder"] = "minecraft:gunpowder"; - MinecraftItemTypes["HangingRoots"] = "minecraft:hanging_roots"; - MinecraftItemTypes["HardenedClay"] = "minecraft:hardened_clay"; - MinecraftItemTypes["HayBlock"] = "minecraft:hay_block"; - MinecraftItemTypes["HeartOfTheSea"] = "minecraft:heart_of_the_sea"; - MinecraftItemTypes["HeartPotterySherd"] = "minecraft:heart_pottery_sherd"; - MinecraftItemTypes["HeartbreakPotterySherd"] = "minecraft:heartbreak_pottery_sherd"; - MinecraftItemTypes["HeavyWeightedPressurePlate"] = "minecraft:heavy_weighted_pressure_plate"; - MinecraftItemTypes["HoglinSpawnEgg"] = "minecraft:hoglin_spawn_egg"; - MinecraftItemTypes["HoneyBlock"] = "minecraft:honey_block"; - MinecraftItemTypes["HoneyBottle"] = "minecraft:honey_bottle"; - MinecraftItemTypes["Honeycomb"] = "minecraft:honeycomb"; - MinecraftItemTypes["HoneycombBlock"] = "minecraft:honeycomb_block"; - MinecraftItemTypes["Hopper"] = "minecraft:hopper"; - MinecraftItemTypes["HopperMinecart"] = "minecraft:hopper_minecart"; - MinecraftItemTypes["HornCoral"] = "minecraft:horn_coral"; - MinecraftItemTypes["HorseSpawnEgg"] = "minecraft:horse_spawn_egg"; - MinecraftItemTypes["HostArmorTrimSmithingTemplate"] = "minecraft:host_armor_trim_smithing_template"; - MinecraftItemTypes["HowlPotterySherd"] = "minecraft:howl_pottery_sherd"; - MinecraftItemTypes["HuskSpawnEgg"] = "minecraft:husk_spawn_egg"; - MinecraftItemTypes["Ice"] = "minecraft:ice"; - MinecraftItemTypes["InfestedDeepslate"] = "minecraft:infested_deepslate"; - MinecraftItemTypes["InkSac"] = "minecraft:ink_sac"; - MinecraftItemTypes["IronAxe"] = "minecraft:iron_axe"; - MinecraftItemTypes["IronBars"] = "minecraft:iron_bars"; - MinecraftItemTypes["IronBlock"] = "minecraft:iron_block"; - MinecraftItemTypes["IronBoots"] = "minecraft:iron_boots"; - MinecraftItemTypes["IronChestplate"] = "minecraft:iron_chestplate"; - MinecraftItemTypes["IronDoor"] = "minecraft:iron_door"; - MinecraftItemTypes["IronGolemSpawnEgg"] = "minecraft:iron_golem_spawn_egg"; - MinecraftItemTypes["IronHelmet"] = "minecraft:iron_helmet"; - MinecraftItemTypes["IronHoe"] = "minecraft:iron_hoe"; - MinecraftItemTypes["IronHorseArmor"] = "minecraft:iron_horse_armor"; - MinecraftItemTypes["IronIngot"] = "minecraft:iron_ingot"; - MinecraftItemTypes["IronLeggings"] = "minecraft:iron_leggings"; - MinecraftItemTypes["IronNugget"] = "minecraft:iron_nugget"; - MinecraftItemTypes["IronOre"] = "minecraft:iron_ore"; - MinecraftItemTypes["IronPickaxe"] = "minecraft:iron_pickaxe"; - MinecraftItemTypes["IronShovel"] = "minecraft:iron_shovel"; - MinecraftItemTypes["IronSword"] = "minecraft:iron_sword"; - MinecraftItemTypes["IronTrapdoor"] = "minecraft:iron_trapdoor"; - MinecraftItemTypes["Jigsaw"] = "minecraft:jigsaw"; - MinecraftItemTypes["Jukebox"] = "minecraft:jukebox"; - MinecraftItemTypes["JungleBoat"] = "minecraft:jungle_boat"; - MinecraftItemTypes["JungleButton"] = "minecraft:jungle_button"; - MinecraftItemTypes["JungleChestBoat"] = "minecraft:jungle_chest_boat"; - MinecraftItemTypes["JungleDoor"] = "minecraft:jungle_door"; - MinecraftItemTypes["JungleFence"] = "minecraft:jungle_fence"; - MinecraftItemTypes["JungleFenceGate"] = "minecraft:jungle_fence_gate"; - MinecraftItemTypes["JungleHangingSign"] = "minecraft:jungle_hanging_sign"; - MinecraftItemTypes["JungleLog"] = "minecraft:jungle_log"; - MinecraftItemTypes["JunglePressurePlate"] = "minecraft:jungle_pressure_plate"; - MinecraftItemTypes["JungleSign"] = "minecraft:jungle_sign"; - MinecraftItemTypes["JungleStairs"] = "minecraft:jungle_stairs"; - MinecraftItemTypes["JungleTrapdoor"] = "minecraft:jungle_trapdoor"; - MinecraftItemTypes["Kelp"] = "minecraft:kelp"; - MinecraftItemTypes["Ladder"] = "minecraft:ladder"; - MinecraftItemTypes["Lantern"] = "minecraft:lantern"; - MinecraftItemTypes["LapisBlock"] = "minecraft:lapis_block"; - MinecraftItemTypes["LapisLazuli"] = "minecraft:lapis_lazuli"; - MinecraftItemTypes["LapisOre"] = "minecraft:lapis_ore"; - MinecraftItemTypes["LargeAmethystBud"] = "minecraft:large_amethyst_bud"; - MinecraftItemTypes["LavaBucket"] = "minecraft:lava_bucket"; - MinecraftItemTypes["Lead"] = "minecraft:lead"; - MinecraftItemTypes["Leather"] = "minecraft:leather"; - MinecraftItemTypes["LeatherBoots"] = "minecraft:leather_boots"; - MinecraftItemTypes["LeatherChestplate"] = "minecraft:leather_chestplate"; - MinecraftItemTypes["LeatherHelmet"] = "minecraft:leather_helmet"; - MinecraftItemTypes["LeatherHorseArmor"] = "minecraft:leather_horse_armor"; - MinecraftItemTypes["LeatherLeggings"] = "minecraft:leather_leggings"; - MinecraftItemTypes["Leaves"] = "minecraft:leaves"; - MinecraftItemTypes["Leaves2"] = "minecraft:leaves2"; - MinecraftItemTypes["Lectern"] = "minecraft:lectern"; - MinecraftItemTypes["Lever"] = "minecraft:lever"; - MinecraftItemTypes["LightBlock"] = "minecraft:light_block"; - MinecraftItemTypes["LightBlueCandle"] = "minecraft:light_blue_candle"; - MinecraftItemTypes["LightBlueCarpet"] = "minecraft:light_blue_carpet"; - MinecraftItemTypes["LightBlueConcrete"] = "minecraft:light_blue_concrete"; - MinecraftItemTypes["LightBlueDye"] = "minecraft:light_blue_dye"; - MinecraftItemTypes["LightBlueGlazedTerracotta"] = "minecraft:light_blue_glazed_terracotta"; - MinecraftItemTypes["LightBlueShulkerBox"] = "minecraft:light_blue_shulker_box"; - MinecraftItemTypes["LightBlueWool"] = "minecraft:light_blue_wool"; - MinecraftItemTypes["LightGrayCandle"] = "minecraft:light_gray_candle"; - MinecraftItemTypes["LightGrayCarpet"] = "minecraft:light_gray_carpet"; - MinecraftItemTypes["LightGrayConcrete"] = "minecraft:light_gray_concrete"; - MinecraftItemTypes["LightGrayDye"] = "minecraft:light_gray_dye"; - MinecraftItemTypes["LightGrayShulkerBox"] = "minecraft:light_gray_shulker_box"; - MinecraftItemTypes["LightGrayWool"] = "minecraft:light_gray_wool"; - MinecraftItemTypes["LightWeightedPressurePlate"] = "minecraft:light_weighted_pressure_plate"; - MinecraftItemTypes["LightningRod"] = "minecraft:lightning_rod"; - MinecraftItemTypes["LimeCandle"] = "minecraft:lime_candle"; - MinecraftItemTypes["LimeCarpet"] = "minecraft:lime_carpet"; - MinecraftItemTypes["LimeConcrete"] = "minecraft:lime_concrete"; - MinecraftItemTypes["LimeDye"] = "minecraft:lime_dye"; - MinecraftItemTypes["LimeGlazedTerracotta"] = "minecraft:lime_glazed_terracotta"; - MinecraftItemTypes["LimeShulkerBox"] = "minecraft:lime_shulker_box"; - MinecraftItemTypes["LimeWool"] = "minecraft:lime_wool"; - MinecraftItemTypes["LingeringPotion"] = "minecraft:lingering_potion"; - MinecraftItemTypes["LitPumpkin"] = "minecraft:lit_pumpkin"; - MinecraftItemTypes["LlamaSpawnEgg"] = "minecraft:llama_spawn_egg"; - MinecraftItemTypes["Lodestone"] = "minecraft:lodestone"; - MinecraftItemTypes["LodestoneCompass"] = "minecraft:lodestone_compass"; - MinecraftItemTypes["Log"] = "minecraft:log"; - MinecraftItemTypes["Log2"] = "minecraft:log2"; - MinecraftItemTypes["Loom"] = "minecraft:loom"; - MinecraftItemTypes["MagentaCandle"] = "minecraft:magenta_candle"; - MinecraftItemTypes["MagentaCarpet"] = "minecraft:magenta_carpet"; - MinecraftItemTypes["MagentaConcrete"] = "minecraft:magenta_concrete"; - MinecraftItemTypes["MagentaDye"] = "minecraft:magenta_dye"; - MinecraftItemTypes["MagentaGlazedTerracotta"] = "minecraft:magenta_glazed_terracotta"; - MinecraftItemTypes["MagentaShulkerBox"] = "minecraft:magenta_shulker_box"; - MinecraftItemTypes["MagentaWool"] = "minecraft:magenta_wool"; - MinecraftItemTypes["Magma"] = "minecraft:magma"; - MinecraftItemTypes["MagmaCream"] = "minecraft:magma_cream"; - MinecraftItemTypes["MagmaCubeSpawnEgg"] = "minecraft:magma_cube_spawn_egg"; - MinecraftItemTypes["MangroveBoat"] = "minecraft:mangrove_boat"; - MinecraftItemTypes["MangroveButton"] = "minecraft:mangrove_button"; - MinecraftItemTypes["MangroveChestBoat"] = "minecraft:mangrove_chest_boat"; - MinecraftItemTypes["MangroveDoor"] = "minecraft:mangrove_door"; - MinecraftItemTypes["MangroveFence"] = "minecraft:mangrove_fence"; - MinecraftItemTypes["MangroveFenceGate"] = "minecraft:mangrove_fence_gate"; - MinecraftItemTypes["MangroveHangingSign"] = "minecraft:mangrove_hanging_sign"; - MinecraftItemTypes["MangroveLeaves"] = "minecraft:mangrove_leaves"; - MinecraftItemTypes["MangroveLog"] = "minecraft:mangrove_log"; - MinecraftItemTypes["MangrovePlanks"] = "minecraft:mangrove_planks"; - MinecraftItemTypes["MangrovePressurePlate"] = "minecraft:mangrove_pressure_plate"; - MinecraftItemTypes["MangrovePropagule"] = "minecraft:mangrove_propagule"; - MinecraftItemTypes["MangroveRoots"] = "minecraft:mangrove_roots"; - MinecraftItemTypes["MangroveSign"] = "minecraft:mangrove_sign"; - MinecraftItemTypes["MangroveSlab"] = "minecraft:mangrove_slab"; - MinecraftItemTypes["MangroveStairs"] = "minecraft:mangrove_stairs"; - MinecraftItemTypes["MangroveTrapdoor"] = "minecraft:mangrove_trapdoor"; - MinecraftItemTypes["MangroveWood"] = "minecraft:mangrove_wood"; - MinecraftItemTypes["MediumAmethystBud"] = "minecraft:medium_amethyst_bud"; - MinecraftItemTypes["MelonBlock"] = "minecraft:melon_block"; - MinecraftItemTypes["MelonSeeds"] = "minecraft:melon_seeds"; - MinecraftItemTypes["MelonSlice"] = "minecraft:melon_slice"; - MinecraftItemTypes["MilkBucket"] = "minecraft:milk_bucket"; - MinecraftItemTypes["Minecart"] = "minecraft:minecart"; - MinecraftItemTypes["MinerPotterySherd"] = "minecraft:miner_pottery_sherd"; - MinecraftItemTypes["MobSpawner"] = "minecraft:mob_spawner"; - MinecraftItemTypes["MojangBannerPattern"] = "minecraft:mojang_banner_pattern"; - MinecraftItemTypes["MonsterEgg"] = "minecraft:monster_egg"; - MinecraftItemTypes["MooshroomSpawnEgg"] = "minecraft:mooshroom_spawn_egg"; - MinecraftItemTypes["MossBlock"] = "minecraft:moss_block"; - MinecraftItemTypes["MossCarpet"] = "minecraft:moss_carpet"; - MinecraftItemTypes["MossyCobblestone"] = "minecraft:mossy_cobblestone"; - MinecraftItemTypes["MossyCobblestoneStairs"] = "minecraft:mossy_cobblestone_stairs"; - MinecraftItemTypes["MossyStoneBrickStairs"] = "minecraft:mossy_stone_brick_stairs"; - MinecraftItemTypes["MournerPotterySherd"] = "minecraft:mourner_pottery_sherd"; - MinecraftItemTypes["Mud"] = "minecraft:mud"; - MinecraftItemTypes["MudBrickSlab"] = "minecraft:mud_brick_slab"; - MinecraftItemTypes["MudBrickStairs"] = "minecraft:mud_brick_stairs"; - MinecraftItemTypes["MudBrickWall"] = "minecraft:mud_brick_wall"; - MinecraftItemTypes["MudBricks"] = "minecraft:mud_bricks"; - MinecraftItemTypes["MuddyMangroveRoots"] = "minecraft:muddy_mangrove_roots"; - MinecraftItemTypes["MuleSpawnEgg"] = "minecraft:mule_spawn_egg"; - MinecraftItemTypes["MushroomStew"] = "minecraft:mushroom_stew"; - MinecraftItemTypes["MusicDisc11"] = "minecraft:music_disc_11"; - MinecraftItemTypes["MusicDisc13"] = "minecraft:music_disc_13"; - MinecraftItemTypes["MusicDisc5"] = "minecraft:music_disc_5"; - MinecraftItemTypes["MusicDiscBlocks"] = "minecraft:music_disc_blocks"; - MinecraftItemTypes["MusicDiscCat"] = "minecraft:music_disc_cat"; - MinecraftItemTypes["MusicDiscChirp"] = "minecraft:music_disc_chirp"; - MinecraftItemTypes["MusicDiscFar"] = "minecraft:music_disc_far"; - MinecraftItemTypes["MusicDiscMall"] = "minecraft:music_disc_mall"; - MinecraftItemTypes["MusicDiscMellohi"] = "minecraft:music_disc_mellohi"; - MinecraftItemTypes["MusicDiscOtherside"] = "minecraft:music_disc_otherside"; - MinecraftItemTypes["MusicDiscPigstep"] = "minecraft:music_disc_pigstep"; - MinecraftItemTypes["MusicDiscRelic"] = "minecraft:music_disc_relic"; - MinecraftItemTypes["MusicDiscStal"] = "minecraft:music_disc_stal"; - MinecraftItemTypes["MusicDiscStrad"] = "minecraft:music_disc_strad"; - MinecraftItemTypes["MusicDiscWait"] = "minecraft:music_disc_wait"; - MinecraftItemTypes["MusicDiscWard"] = "minecraft:music_disc_ward"; - MinecraftItemTypes["Mutton"] = "minecraft:mutton"; - MinecraftItemTypes["Mycelium"] = "minecraft:mycelium"; - MinecraftItemTypes["NameTag"] = "minecraft:name_tag"; - MinecraftItemTypes["NautilusShell"] = "minecraft:nautilus_shell"; - MinecraftItemTypes["NetherBrick"] = "minecraft:nether_brick"; - MinecraftItemTypes["NetherBrickFence"] = "minecraft:nether_brick_fence"; - MinecraftItemTypes["NetherBrickStairs"] = "minecraft:nether_brick_stairs"; - MinecraftItemTypes["NetherGoldOre"] = "minecraft:nether_gold_ore"; - MinecraftItemTypes["NetherSprouts"] = "minecraft:nether_sprouts"; - MinecraftItemTypes["NetherStar"] = "minecraft:nether_star"; - MinecraftItemTypes["NetherWart"] = "minecraft:nether_wart"; - MinecraftItemTypes["NetherWartBlock"] = "minecraft:nether_wart_block"; - MinecraftItemTypes["Netherbrick"] = "minecraft:netherbrick"; - MinecraftItemTypes["NetheriteAxe"] = "minecraft:netherite_axe"; - MinecraftItemTypes["NetheriteBlock"] = "minecraft:netherite_block"; - MinecraftItemTypes["NetheriteBoots"] = "minecraft:netherite_boots"; - MinecraftItemTypes["NetheriteChestplate"] = "minecraft:netherite_chestplate"; - MinecraftItemTypes["NetheriteHelmet"] = "minecraft:netherite_helmet"; - MinecraftItemTypes["NetheriteHoe"] = "minecraft:netherite_hoe"; - MinecraftItemTypes["NetheriteIngot"] = "minecraft:netherite_ingot"; - MinecraftItemTypes["NetheriteLeggings"] = "minecraft:netherite_leggings"; - MinecraftItemTypes["NetheritePickaxe"] = "minecraft:netherite_pickaxe"; - MinecraftItemTypes["NetheriteScrap"] = "minecraft:netherite_scrap"; - MinecraftItemTypes["NetheriteShovel"] = "minecraft:netherite_shovel"; - MinecraftItemTypes["NetheriteSword"] = "minecraft:netherite_sword"; - MinecraftItemTypes["NetheriteUpgradeSmithingTemplate"] = "minecraft:netherite_upgrade_smithing_template"; - MinecraftItemTypes["Netherrack"] = "minecraft:netherrack"; - MinecraftItemTypes["NormalStoneStairs"] = "minecraft:normal_stone_stairs"; - MinecraftItemTypes["Noteblock"] = "minecraft:noteblock"; - MinecraftItemTypes["OakBoat"] = "minecraft:oak_boat"; - MinecraftItemTypes["OakChestBoat"] = "minecraft:oak_chest_boat"; - MinecraftItemTypes["OakFence"] = "minecraft:oak_fence"; - MinecraftItemTypes["OakHangingSign"] = "minecraft:oak_hanging_sign"; - MinecraftItemTypes["OakLog"] = "minecraft:oak_log"; - MinecraftItemTypes["OakSign"] = "minecraft:oak_sign"; - MinecraftItemTypes["OakStairs"] = "minecraft:oak_stairs"; - MinecraftItemTypes["Observer"] = "minecraft:observer"; - MinecraftItemTypes["Obsidian"] = "minecraft:obsidian"; - MinecraftItemTypes["OcelotSpawnEgg"] = "minecraft:ocelot_spawn_egg"; - MinecraftItemTypes["OchreFroglight"] = "minecraft:ochre_froglight"; - MinecraftItemTypes["OrangeCandle"] = "minecraft:orange_candle"; - MinecraftItemTypes["OrangeCarpet"] = "minecraft:orange_carpet"; - MinecraftItemTypes["OrangeConcrete"] = "minecraft:orange_concrete"; - MinecraftItemTypes["OrangeDye"] = "minecraft:orange_dye"; - MinecraftItemTypes["OrangeGlazedTerracotta"] = "minecraft:orange_glazed_terracotta"; - MinecraftItemTypes["OrangeShulkerBox"] = "minecraft:orange_shulker_box"; - MinecraftItemTypes["OrangeWool"] = "minecraft:orange_wool"; - MinecraftItemTypes["OxidizedCopper"] = "minecraft:oxidized_copper"; - MinecraftItemTypes["OxidizedCutCopper"] = "minecraft:oxidized_cut_copper"; - MinecraftItemTypes["OxidizedCutCopperSlab"] = "minecraft:oxidized_cut_copper_slab"; - MinecraftItemTypes["OxidizedCutCopperStairs"] = "minecraft:oxidized_cut_copper_stairs"; - MinecraftItemTypes["PackedIce"] = "minecraft:packed_ice"; - MinecraftItemTypes["PackedMud"] = "minecraft:packed_mud"; - MinecraftItemTypes["Painting"] = "minecraft:painting"; - MinecraftItemTypes["PandaSpawnEgg"] = "minecraft:panda_spawn_egg"; - MinecraftItemTypes["Paper"] = "minecraft:paper"; - MinecraftItemTypes["ParrotSpawnEgg"] = "minecraft:parrot_spawn_egg"; - MinecraftItemTypes["PearlescentFroglight"] = "minecraft:pearlescent_froglight"; - MinecraftItemTypes["PhantomMembrane"] = "minecraft:phantom_membrane"; - MinecraftItemTypes["PhantomSpawnEgg"] = "minecraft:phantom_spawn_egg"; - MinecraftItemTypes["PigSpawnEgg"] = "minecraft:pig_spawn_egg"; - MinecraftItemTypes["PiglinBannerPattern"] = "minecraft:piglin_banner_pattern"; - MinecraftItemTypes["PiglinBruteSpawnEgg"] = "minecraft:piglin_brute_spawn_egg"; - MinecraftItemTypes["PiglinSpawnEgg"] = "minecraft:piglin_spawn_egg"; - MinecraftItemTypes["PillagerSpawnEgg"] = "minecraft:pillager_spawn_egg"; - MinecraftItemTypes["PinkCandle"] = "minecraft:pink_candle"; - MinecraftItemTypes["PinkCarpet"] = "minecraft:pink_carpet"; - MinecraftItemTypes["PinkConcrete"] = "minecraft:pink_concrete"; - MinecraftItemTypes["PinkDye"] = "minecraft:pink_dye"; - MinecraftItemTypes["PinkGlazedTerracotta"] = "minecraft:pink_glazed_terracotta"; - MinecraftItemTypes["PinkPetals"] = "minecraft:pink_petals"; - MinecraftItemTypes["PinkShulkerBox"] = "minecraft:pink_shulker_box"; - MinecraftItemTypes["PinkWool"] = "minecraft:pink_wool"; - MinecraftItemTypes["Piston"] = "minecraft:piston"; - MinecraftItemTypes["PitcherPlant"] = "minecraft:pitcher_plant"; - MinecraftItemTypes["PitcherPod"] = "minecraft:pitcher_pod"; - MinecraftItemTypes["Planks"] = "minecraft:planks"; - MinecraftItemTypes["PlentyPotterySherd"] = "minecraft:plenty_pottery_sherd"; - MinecraftItemTypes["Podzol"] = "minecraft:podzol"; - MinecraftItemTypes["PointedDripstone"] = "minecraft:pointed_dripstone"; - MinecraftItemTypes["PoisonousPotato"] = "minecraft:poisonous_potato"; - MinecraftItemTypes["PolarBearSpawnEgg"] = "minecraft:polar_bear_spawn_egg"; - MinecraftItemTypes["PolishedAndesiteStairs"] = "minecraft:polished_andesite_stairs"; - MinecraftItemTypes["PolishedBasalt"] = "minecraft:polished_basalt"; - MinecraftItemTypes["PolishedBlackstone"] = "minecraft:polished_blackstone"; - MinecraftItemTypes["PolishedBlackstoneBrickSlab"] = "minecraft:polished_blackstone_brick_slab"; - MinecraftItemTypes["PolishedBlackstoneBrickStairs"] = "minecraft:polished_blackstone_brick_stairs"; - MinecraftItemTypes["PolishedBlackstoneBrickWall"] = "minecraft:polished_blackstone_brick_wall"; - MinecraftItemTypes["PolishedBlackstoneBricks"] = "minecraft:polished_blackstone_bricks"; - MinecraftItemTypes["PolishedBlackstoneButton"] = "minecraft:polished_blackstone_button"; - MinecraftItemTypes["PolishedBlackstonePressurePlate"] = "minecraft:polished_blackstone_pressure_plate"; - MinecraftItemTypes["PolishedBlackstoneSlab"] = "minecraft:polished_blackstone_slab"; - MinecraftItemTypes["PolishedBlackstoneStairs"] = "minecraft:polished_blackstone_stairs"; - MinecraftItemTypes["PolishedBlackstoneWall"] = "minecraft:polished_blackstone_wall"; - MinecraftItemTypes["PolishedDeepslate"] = "minecraft:polished_deepslate"; - MinecraftItemTypes["PolishedDeepslateSlab"] = "minecraft:polished_deepslate_slab"; - MinecraftItemTypes["PolishedDeepslateStairs"] = "minecraft:polished_deepslate_stairs"; - MinecraftItemTypes["PolishedDeepslateWall"] = "minecraft:polished_deepslate_wall"; - MinecraftItemTypes["PolishedDioriteStairs"] = "minecraft:polished_diorite_stairs"; - MinecraftItemTypes["PolishedGraniteStairs"] = "minecraft:polished_granite_stairs"; - MinecraftItemTypes["PoppedChorusFruit"] = "minecraft:popped_chorus_fruit"; - MinecraftItemTypes["Porkchop"] = "minecraft:porkchop"; - MinecraftItemTypes["Potato"] = "minecraft:potato"; - MinecraftItemTypes["Potion"] = "minecraft:potion"; - MinecraftItemTypes["PowderSnowBucket"] = "minecraft:powder_snow_bucket"; - MinecraftItemTypes["Prismarine"] = "minecraft:prismarine"; - MinecraftItemTypes["PrismarineBricksStairs"] = "minecraft:prismarine_bricks_stairs"; - MinecraftItemTypes["PrismarineCrystals"] = "minecraft:prismarine_crystals"; - MinecraftItemTypes["PrismarineShard"] = "minecraft:prismarine_shard"; - MinecraftItemTypes["PrismarineStairs"] = "minecraft:prismarine_stairs"; - MinecraftItemTypes["PrizePotterySherd"] = "minecraft:prize_pottery_sherd"; - MinecraftItemTypes["Pufferfish"] = "minecraft:pufferfish"; - MinecraftItemTypes["PufferfishBucket"] = "minecraft:pufferfish_bucket"; - MinecraftItemTypes["PufferfishSpawnEgg"] = "minecraft:pufferfish_spawn_egg"; - MinecraftItemTypes["Pumpkin"] = "minecraft:pumpkin"; - MinecraftItemTypes["PumpkinPie"] = "minecraft:pumpkin_pie"; - MinecraftItemTypes["PumpkinSeeds"] = "minecraft:pumpkin_seeds"; - MinecraftItemTypes["PurpleCandle"] = "minecraft:purple_candle"; - MinecraftItemTypes["PurpleCarpet"] = "minecraft:purple_carpet"; - MinecraftItemTypes["PurpleConcrete"] = "minecraft:purple_concrete"; - MinecraftItemTypes["PurpleDye"] = "minecraft:purple_dye"; - MinecraftItemTypes["PurpleGlazedTerracotta"] = "minecraft:purple_glazed_terracotta"; - MinecraftItemTypes["PurpleShulkerBox"] = "minecraft:purple_shulker_box"; - MinecraftItemTypes["PurpleWool"] = "minecraft:purple_wool"; - MinecraftItemTypes["PurpurBlock"] = "minecraft:purpur_block"; - MinecraftItemTypes["PurpurStairs"] = "minecraft:purpur_stairs"; - MinecraftItemTypes["Quartz"] = "minecraft:quartz"; - MinecraftItemTypes["QuartzBlock"] = "minecraft:quartz_block"; - MinecraftItemTypes["QuartzBricks"] = "minecraft:quartz_bricks"; - MinecraftItemTypes["QuartzOre"] = "minecraft:quartz_ore"; - MinecraftItemTypes["QuartzStairs"] = "minecraft:quartz_stairs"; - MinecraftItemTypes["Rabbit"] = "minecraft:rabbit"; - MinecraftItemTypes["RabbitFoot"] = "minecraft:rabbit_foot"; - MinecraftItemTypes["RabbitHide"] = "minecraft:rabbit_hide"; - MinecraftItemTypes["RabbitSpawnEgg"] = "minecraft:rabbit_spawn_egg"; - MinecraftItemTypes["RabbitStew"] = "minecraft:rabbit_stew"; - MinecraftItemTypes["Rail"] = "minecraft:rail"; - MinecraftItemTypes["RaiserArmorTrimSmithingTemplate"] = "minecraft:raiser_armor_trim_smithing_template"; - MinecraftItemTypes["RavagerSpawnEgg"] = "minecraft:ravager_spawn_egg"; - MinecraftItemTypes["RawCopper"] = "minecraft:raw_copper"; - MinecraftItemTypes["RawCopperBlock"] = "minecraft:raw_copper_block"; - MinecraftItemTypes["RawGold"] = "minecraft:raw_gold"; - MinecraftItemTypes["RawGoldBlock"] = "minecraft:raw_gold_block"; - MinecraftItemTypes["RawIron"] = "minecraft:raw_iron"; - MinecraftItemTypes["RawIronBlock"] = "minecraft:raw_iron_block"; - MinecraftItemTypes["RecoveryCompass"] = "minecraft:recovery_compass"; - MinecraftItemTypes["RedCandle"] = "minecraft:red_candle"; - MinecraftItemTypes["RedCarpet"] = "minecraft:red_carpet"; - MinecraftItemTypes["RedConcrete"] = "minecraft:red_concrete"; - MinecraftItemTypes["RedDye"] = "minecraft:red_dye"; - MinecraftItemTypes["RedFlower"] = "minecraft:red_flower"; - MinecraftItemTypes["RedGlazedTerracotta"] = "minecraft:red_glazed_terracotta"; - MinecraftItemTypes["RedMushroom"] = "minecraft:red_mushroom"; - MinecraftItemTypes["RedMushroomBlock"] = "minecraft:red_mushroom_block"; - MinecraftItemTypes["RedNetherBrick"] = "minecraft:red_nether_brick"; - MinecraftItemTypes["RedNetherBrickStairs"] = "minecraft:red_nether_brick_stairs"; - MinecraftItemTypes["RedSandstone"] = "minecraft:red_sandstone"; - MinecraftItemTypes["RedSandstoneStairs"] = "minecraft:red_sandstone_stairs"; - MinecraftItemTypes["RedShulkerBox"] = "minecraft:red_shulker_box"; - MinecraftItemTypes["RedWool"] = "minecraft:red_wool"; - MinecraftItemTypes["Redstone"] = "minecraft:redstone"; - MinecraftItemTypes["RedstoneBlock"] = "minecraft:redstone_block"; - MinecraftItemTypes["RedstoneLamp"] = "minecraft:redstone_lamp"; - MinecraftItemTypes["RedstoneOre"] = "minecraft:redstone_ore"; - MinecraftItemTypes["RedstoneTorch"] = "minecraft:redstone_torch"; - MinecraftItemTypes["ReinforcedDeepslate"] = "minecraft:reinforced_deepslate"; - MinecraftItemTypes["Repeater"] = "minecraft:repeater"; - MinecraftItemTypes["RepeatingCommandBlock"] = "minecraft:repeating_command_block"; - MinecraftItemTypes["RespawnAnchor"] = "minecraft:respawn_anchor"; - MinecraftItemTypes["RibArmorTrimSmithingTemplate"] = "minecraft:rib_armor_trim_smithing_template"; - MinecraftItemTypes["RottenFlesh"] = "minecraft:rotten_flesh"; - MinecraftItemTypes["Saddle"] = "minecraft:saddle"; - MinecraftItemTypes["Salmon"] = "minecraft:salmon"; - MinecraftItemTypes["SalmonBucket"] = "minecraft:salmon_bucket"; - MinecraftItemTypes["SalmonSpawnEgg"] = "minecraft:salmon_spawn_egg"; - MinecraftItemTypes["Sand"] = "minecraft:sand"; - MinecraftItemTypes["Sandstone"] = "minecraft:sandstone"; - MinecraftItemTypes["SandstoneStairs"] = "minecraft:sandstone_stairs"; - MinecraftItemTypes["Sapling"] = "minecraft:sapling"; - MinecraftItemTypes["Scaffolding"] = "minecraft:scaffolding"; - MinecraftItemTypes["Sculk"] = "minecraft:sculk"; - MinecraftItemTypes["SculkCatalyst"] = "minecraft:sculk_catalyst"; - MinecraftItemTypes["SculkSensor"] = "minecraft:sculk_sensor"; - MinecraftItemTypes["SculkShrieker"] = "minecraft:sculk_shrieker"; - MinecraftItemTypes["SculkVein"] = "minecraft:sculk_vein"; - MinecraftItemTypes["Scute"] = "minecraft:scute"; - MinecraftItemTypes["SeaLantern"] = "minecraft:sea_lantern"; - MinecraftItemTypes["SeaPickle"] = "minecraft:sea_pickle"; - MinecraftItemTypes["Seagrass"] = "minecraft:seagrass"; - MinecraftItemTypes["SentryArmorTrimSmithingTemplate"] = "minecraft:sentry_armor_trim_smithing_template"; - MinecraftItemTypes["ShaperArmorTrimSmithingTemplate"] = "minecraft:shaper_armor_trim_smithing_template"; - MinecraftItemTypes["SheafPotterySherd"] = "minecraft:sheaf_pottery_sherd"; - MinecraftItemTypes["Shears"] = "minecraft:shears"; - MinecraftItemTypes["SheepSpawnEgg"] = "minecraft:sheep_spawn_egg"; - MinecraftItemTypes["ShelterPotterySherd"] = "minecraft:shelter_pottery_sherd"; - MinecraftItemTypes["Shield"] = "minecraft:shield"; - MinecraftItemTypes["Shroomlight"] = "minecraft:shroomlight"; - MinecraftItemTypes["ShulkerBox"] = "minecraft:shulker_box"; - MinecraftItemTypes["ShulkerShell"] = "minecraft:shulker_shell"; - MinecraftItemTypes["ShulkerSpawnEgg"] = "minecraft:shulker_spawn_egg"; - MinecraftItemTypes["SilenceArmorTrimSmithingTemplate"] = "minecraft:silence_armor_trim_smithing_template"; - MinecraftItemTypes["SilverGlazedTerracotta"] = "minecraft:silver_glazed_terracotta"; - MinecraftItemTypes["SilverfishSpawnEgg"] = "minecraft:silverfish_spawn_egg"; - MinecraftItemTypes["SkeletonHorseSpawnEgg"] = "minecraft:skeleton_horse_spawn_egg"; - MinecraftItemTypes["SkeletonSpawnEgg"] = "minecraft:skeleton_spawn_egg"; - MinecraftItemTypes["Skull"] = "minecraft:skull"; - MinecraftItemTypes["SkullBannerPattern"] = "minecraft:skull_banner_pattern"; - MinecraftItemTypes["SkullPotterySherd"] = "minecraft:skull_pottery_sherd"; - MinecraftItemTypes["Slime"] = "minecraft:slime"; - MinecraftItemTypes["SlimeBall"] = "minecraft:slime_ball"; - MinecraftItemTypes["SlimeSpawnEgg"] = "minecraft:slime_spawn_egg"; - MinecraftItemTypes["SmallAmethystBud"] = "minecraft:small_amethyst_bud"; - MinecraftItemTypes["SmallDripleafBlock"] = "minecraft:small_dripleaf_block"; - MinecraftItemTypes["SmithingTable"] = "minecraft:smithing_table"; - MinecraftItemTypes["Smoker"] = "minecraft:smoker"; - MinecraftItemTypes["SmoothBasalt"] = "minecraft:smooth_basalt"; - MinecraftItemTypes["SmoothQuartzStairs"] = "minecraft:smooth_quartz_stairs"; - MinecraftItemTypes["SmoothRedSandstoneStairs"] = "minecraft:smooth_red_sandstone_stairs"; - MinecraftItemTypes["SmoothSandstoneStairs"] = "minecraft:smooth_sandstone_stairs"; - MinecraftItemTypes["SmoothStone"] = "minecraft:smooth_stone"; - MinecraftItemTypes["SnifferEgg"] = "minecraft:sniffer_egg"; - MinecraftItemTypes["SnifferSpawnEgg"] = "minecraft:sniffer_spawn_egg"; - MinecraftItemTypes["SnortPotterySherd"] = "minecraft:snort_pottery_sherd"; - MinecraftItemTypes["SnoutArmorTrimSmithingTemplate"] = "minecraft:snout_armor_trim_smithing_template"; - MinecraftItemTypes["Snow"] = "minecraft:snow"; - MinecraftItemTypes["SnowGolemSpawnEgg"] = "minecraft:snow_golem_spawn_egg"; - MinecraftItemTypes["SnowLayer"] = "minecraft:snow_layer"; - MinecraftItemTypes["Snowball"] = "minecraft:snowball"; - MinecraftItemTypes["SoulCampfire"] = "minecraft:soul_campfire"; - MinecraftItemTypes["SoulLantern"] = "minecraft:soul_lantern"; - MinecraftItemTypes["SoulSand"] = "minecraft:soul_sand"; - MinecraftItemTypes["SoulSoil"] = "minecraft:soul_soil"; - MinecraftItemTypes["SoulTorch"] = "minecraft:soul_torch"; - MinecraftItemTypes["SpawnEgg"] = "minecraft:spawn_egg"; - MinecraftItemTypes["SpiderEye"] = "minecraft:spider_eye"; - MinecraftItemTypes["SpiderSpawnEgg"] = "minecraft:spider_spawn_egg"; - MinecraftItemTypes["SpireArmorTrimSmithingTemplate"] = "minecraft:spire_armor_trim_smithing_template"; - MinecraftItemTypes["SplashPotion"] = "minecraft:splash_potion"; - MinecraftItemTypes["Sponge"] = "minecraft:sponge"; - MinecraftItemTypes["SporeBlossom"] = "minecraft:spore_blossom"; - MinecraftItemTypes["SpruceBoat"] = "minecraft:spruce_boat"; - MinecraftItemTypes["SpruceButton"] = "minecraft:spruce_button"; - MinecraftItemTypes["SpruceChestBoat"] = "minecraft:spruce_chest_boat"; - MinecraftItemTypes["SpruceDoor"] = "minecraft:spruce_door"; - MinecraftItemTypes["SpruceFence"] = "minecraft:spruce_fence"; - MinecraftItemTypes["SpruceFenceGate"] = "minecraft:spruce_fence_gate"; - MinecraftItemTypes["SpruceHangingSign"] = "minecraft:spruce_hanging_sign"; - MinecraftItemTypes["SpruceLog"] = "minecraft:spruce_log"; - MinecraftItemTypes["SprucePressurePlate"] = "minecraft:spruce_pressure_plate"; - MinecraftItemTypes["SpruceSign"] = "minecraft:spruce_sign"; - MinecraftItemTypes["SpruceStairs"] = "minecraft:spruce_stairs"; - MinecraftItemTypes["SpruceTrapdoor"] = "minecraft:spruce_trapdoor"; - MinecraftItemTypes["Spyglass"] = "minecraft:spyglass"; - MinecraftItemTypes["SquidSpawnEgg"] = "minecraft:squid_spawn_egg"; - MinecraftItemTypes["StainedGlass"] = "minecraft:stained_glass"; - MinecraftItemTypes["StainedGlassPane"] = "minecraft:stained_glass_pane"; - MinecraftItemTypes["StainedHardenedClay"] = "minecraft:stained_hardened_clay"; - MinecraftItemTypes["Stick"] = "minecraft:stick"; - MinecraftItemTypes["StickyPiston"] = "minecraft:sticky_piston"; - MinecraftItemTypes["Stone"] = "minecraft:stone"; - MinecraftItemTypes["StoneAxe"] = "minecraft:stone_axe"; - MinecraftItemTypes["StoneBlockSlab"] = "minecraft:stone_block_slab"; - MinecraftItemTypes["StoneBlockSlab2"] = "minecraft:stone_block_slab2"; - MinecraftItemTypes["StoneBlockSlab3"] = "minecraft:stone_block_slab3"; - MinecraftItemTypes["StoneBlockSlab4"] = "minecraft:stone_block_slab4"; - MinecraftItemTypes["StoneBrickStairs"] = "minecraft:stone_brick_stairs"; - MinecraftItemTypes["StoneButton"] = "minecraft:stone_button"; - MinecraftItemTypes["StoneHoe"] = "minecraft:stone_hoe"; - MinecraftItemTypes["StonePickaxe"] = "minecraft:stone_pickaxe"; - MinecraftItemTypes["StonePressurePlate"] = "minecraft:stone_pressure_plate"; - MinecraftItemTypes["StoneShovel"] = "minecraft:stone_shovel"; - MinecraftItemTypes["StoneStairs"] = "minecraft:stone_stairs"; - MinecraftItemTypes["StoneSword"] = "minecraft:stone_sword"; - MinecraftItemTypes["Stonebrick"] = "minecraft:stonebrick"; - MinecraftItemTypes["StonecutterBlock"] = "minecraft:stonecutter_block"; - MinecraftItemTypes["StraySpawnEgg"] = "minecraft:stray_spawn_egg"; - MinecraftItemTypes["StriderSpawnEgg"] = "minecraft:strider_spawn_egg"; - MinecraftItemTypes["String"] = "minecraft:string"; - MinecraftItemTypes["StrippedAcaciaLog"] = "minecraft:stripped_acacia_log"; - MinecraftItemTypes["StrippedBambooBlock"] = "minecraft:stripped_bamboo_block"; - MinecraftItemTypes["StrippedBirchLog"] = "minecraft:stripped_birch_log"; - MinecraftItemTypes["StrippedCherryLog"] = "minecraft:stripped_cherry_log"; - MinecraftItemTypes["StrippedCherryWood"] = "minecraft:stripped_cherry_wood"; - MinecraftItemTypes["StrippedCrimsonHyphae"] = "minecraft:stripped_crimson_hyphae"; - MinecraftItemTypes["StrippedCrimsonStem"] = "minecraft:stripped_crimson_stem"; - MinecraftItemTypes["StrippedDarkOakLog"] = "minecraft:stripped_dark_oak_log"; - MinecraftItemTypes["StrippedJungleLog"] = "minecraft:stripped_jungle_log"; - MinecraftItemTypes["StrippedMangroveLog"] = "minecraft:stripped_mangrove_log"; - MinecraftItemTypes["StrippedMangroveWood"] = "minecraft:stripped_mangrove_wood"; - MinecraftItemTypes["StrippedOakLog"] = "minecraft:stripped_oak_log"; - MinecraftItemTypes["StrippedSpruceLog"] = "minecraft:stripped_spruce_log"; - MinecraftItemTypes["StrippedWarpedHyphae"] = "minecraft:stripped_warped_hyphae"; - MinecraftItemTypes["StrippedWarpedStem"] = "minecraft:stripped_warped_stem"; - MinecraftItemTypes["StructureBlock"] = "minecraft:structure_block"; - MinecraftItemTypes["StructureVoid"] = "minecraft:structure_void"; - MinecraftItemTypes["Sugar"] = "minecraft:sugar"; - MinecraftItemTypes["SugarCane"] = "minecraft:sugar_cane"; - MinecraftItemTypes["SuspiciousGravel"] = "minecraft:suspicious_gravel"; - MinecraftItemTypes["SuspiciousSand"] = "minecraft:suspicious_sand"; - MinecraftItemTypes["SuspiciousStew"] = "minecraft:suspicious_stew"; - MinecraftItemTypes["SweetBerries"] = "minecraft:sweet_berries"; - MinecraftItemTypes["TadpoleBucket"] = "minecraft:tadpole_bucket"; - MinecraftItemTypes["TadpoleSpawnEgg"] = "minecraft:tadpole_spawn_egg"; - MinecraftItemTypes["Tallgrass"] = "minecraft:tallgrass"; - MinecraftItemTypes["Target"] = "minecraft:target"; - MinecraftItemTypes["TideArmorTrimSmithingTemplate"] = "minecraft:tide_armor_trim_smithing_template"; - MinecraftItemTypes["TintedGlass"] = "minecraft:tinted_glass"; - MinecraftItemTypes["Tnt"] = "minecraft:tnt"; - MinecraftItemTypes["TntMinecart"] = "minecraft:tnt_minecart"; - MinecraftItemTypes["Torch"] = "minecraft:torch"; - MinecraftItemTypes["Torchflower"] = "minecraft:torchflower"; - MinecraftItemTypes["TorchflowerSeeds"] = "minecraft:torchflower_seeds"; - MinecraftItemTypes["TotemOfUndying"] = "minecraft:totem_of_undying"; - MinecraftItemTypes["TraderLlamaSpawnEgg"] = "minecraft:trader_llama_spawn_egg"; - MinecraftItemTypes["Trapdoor"] = "minecraft:trapdoor"; - MinecraftItemTypes["TrappedChest"] = "minecraft:trapped_chest"; - MinecraftItemTypes["Trident"] = "minecraft:trident"; - MinecraftItemTypes["TripwireHook"] = "minecraft:tripwire_hook"; - MinecraftItemTypes["TropicalFish"] = "minecraft:tropical_fish"; - MinecraftItemTypes["TropicalFishBucket"] = "minecraft:tropical_fish_bucket"; - MinecraftItemTypes["TropicalFishSpawnEgg"] = "minecraft:tropical_fish_spawn_egg"; - MinecraftItemTypes["TubeCoral"] = "minecraft:tube_coral"; - MinecraftItemTypes["Tuff"] = "minecraft:tuff"; - MinecraftItemTypes["TurtleEgg"] = "minecraft:turtle_egg"; - MinecraftItemTypes["TurtleHelmet"] = "minecraft:turtle_helmet"; - MinecraftItemTypes["TurtleSpawnEgg"] = "minecraft:turtle_spawn_egg"; - MinecraftItemTypes["TwistingVines"] = "minecraft:twisting_vines"; - MinecraftItemTypes["UndyedShulkerBox"] = "minecraft:undyed_shulker_box"; - MinecraftItemTypes["VerdantFroglight"] = "minecraft:verdant_froglight"; - MinecraftItemTypes["VexArmorTrimSmithingTemplate"] = "minecraft:vex_armor_trim_smithing_template"; - MinecraftItemTypes["VexSpawnEgg"] = "minecraft:vex_spawn_egg"; - MinecraftItemTypes["VillagerSpawnEgg"] = "minecraft:villager_spawn_egg"; - MinecraftItemTypes["VindicatorSpawnEgg"] = "minecraft:vindicator_spawn_egg"; - MinecraftItemTypes["Vine"] = "minecraft:vine"; - MinecraftItemTypes["WanderingTraderSpawnEgg"] = "minecraft:wandering_trader_spawn_egg"; - MinecraftItemTypes["WardArmorTrimSmithingTemplate"] = "minecraft:ward_armor_trim_smithing_template"; - MinecraftItemTypes["WardenSpawnEgg"] = "minecraft:warden_spawn_egg"; - MinecraftItemTypes["WarpedButton"] = "minecraft:warped_button"; - MinecraftItemTypes["WarpedDoor"] = "minecraft:warped_door"; - MinecraftItemTypes["WarpedFence"] = "minecraft:warped_fence"; - MinecraftItemTypes["WarpedFenceGate"] = "minecraft:warped_fence_gate"; - MinecraftItemTypes["WarpedFungus"] = "minecraft:warped_fungus"; - MinecraftItemTypes["WarpedFungusOnAStick"] = "minecraft:warped_fungus_on_a_stick"; - MinecraftItemTypes["WarpedHangingSign"] = "minecraft:warped_hanging_sign"; - MinecraftItemTypes["WarpedHyphae"] = "minecraft:warped_hyphae"; - MinecraftItemTypes["WarpedNylium"] = "minecraft:warped_nylium"; - MinecraftItemTypes["WarpedPlanks"] = "minecraft:warped_planks"; - MinecraftItemTypes["WarpedPressurePlate"] = "minecraft:warped_pressure_plate"; - MinecraftItemTypes["WarpedRoots"] = "minecraft:warped_roots"; - MinecraftItemTypes["WarpedSign"] = "minecraft:warped_sign"; - MinecraftItemTypes["WarpedSlab"] = "minecraft:warped_slab"; - MinecraftItemTypes["WarpedStairs"] = "minecraft:warped_stairs"; - MinecraftItemTypes["WarpedStem"] = "minecraft:warped_stem"; - MinecraftItemTypes["WarpedTrapdoor"] = "minecraft:warped_trapdoor"; - MinecraftItemTypes["WarpedWartBlock"] = "minecraft:warped_wart_block"; - MinecraftItemTypes["WaterBucket"] = "minecraft:water_bucket"; - MinecraftItemTypes["Waterlily"] = "minecraft:waterlily"; - MinecraftItemTypes["WaxedCopper"] = "minecraft:waxed_copper"; - MinecraftItemTypes["WaxedCutCopper"] = "minecraft:waxed_cut_copper"; - MinecraftItemTypes["WaxedCutCopperSlab"] = "minecraft:waxed_cut_copper_slab"; - MinecraftItemTypes["WaxedCutCopperStairs"] = "minecraft:waxed_cut_copper_stairs"; - MinecraftItemTypes["WaxedExposedCopper"] = "minecraft:waxed_exposed_copper"; - MinecraftItemTypes["WaxedExposedCutCopper"] = "minecraft:waxed_exposed_cut_copper"; - MinecraftItemTypes["WaxedExposedCutCopperSlab"] = "minecraft:waxed_exposed_cut_copper_slab"; - MinecraftItemTypes["WaxedExposedCutCopperStairs"] = "minecraft:waxed_exposed_cut_copper_stairs"; - MinecraftItemTypes["WaxedOxidizedCopper"] = "minecraft:waxed_oxidized_copper"; - MinecraftItemTypes["WaxedOxidizedCutCopper"] = "minecraft:waxed_oxidized_cut_copper"; - MinecraftItemTypes["WaxedOxidizedCutCopperSlab"] = "minecraft:waxed_oxidized_cut_copper_slab"; - MinecraftItemTypes["WaxedOxidizedCutCopperStairs"] = "minecraft:waxed_oxidized_cut_copper_stairs"; - MinecraftItemTypes["WaxedWeatheredCopper"] = "minecraft:waxed_weathered_copper"; - MinecraftItemTypes["WaxedWeatheredCutCopper"] = "minecraft:waxed_weathered_cut_copper"; - MinecraftItemTypes["WaxedWeatheredCutCopperSlab"] = "minecraft:waxed_weathered_cut_copper_slab"; - MinecraftItemTypes["WaxedWeatheredCutCopperStairs"] = "minecraft:waxed_weathered_cut_copper_stairs"; - MinecraftItemTypes["WayfinderArmorTrimSmithingTemplate"] = "minecraft:wayfinder_armor_trim_smithing_template"; - MinecraftItemTypes["WeatheredCopper"] = "minecraft:weathered_copper"; - MinecraftItemTypes["WeatheredCutCopper"] = "minecraft:weathered_cut_copper"; - MinecraftItemTypes["WeatheredCutCopperSlab"] = "minecraft:weathered_cut_copper_slab"; - MinecraftItemTypes["WeatheredCutCopperStairs"] = "minecraft:weathered_cut_copper_stairs"; - MinecraftItemTypes["Web"] = "minecraft:web"; - MinecraftItemTypes["WeepingVines"] = "minecraft:weeping_vines"; - MinecraftItemTypes["Wheat"] = "minecraft:wheat"; - MinecraftItemTypes["WheatSeeds"] = "minecraft:wheat_seeds"; - MinecraftItemTypes["WhiteCandle"] = "minecraft:white_candle"; - MinecraftItemTypes["WhiteCarpet"] = "minecraft:white_carpet"; - MinecraftItemTypes["WhiteConcrete"] = "minecraft:white_concrete"; - MinecraftItemTypes["WhiteDye"] = "minecraft:white_dye"; - MinecraftItemTypes["WhiteGlazedTerracotta"] = "minecraft:white_glazed_terracotta"; - MinecraftItemTypes["WhiteShulkerBox"] = "minecraft:white_shulker_box"; - MinecraftItemTypes["WhiteWool"] = "minecraft:white_wool"; - MinecraftItemTypes["WildArmorTrimSmithingTemplate"] = "minecraft:wild_armor_trim_smithing_template"; - MinecraftItemTypes["WitchSpawnEgg"] = "minecraft:witch_spawn_egg"; - MinecraftItemTypes["WitherRose"] = "minecraft:wither_rose"; - MinecraftItemTypes["WitherSkeletonSpawnEgg"] = "minecraft:wither_skeleton_spawn_egg"; - MinecraftItemTypes["WitherSpawnEgg"] = "minecraft:wither_spawn_egg"; - MinecraftItemTypes["WolfSpawnEgg"] = "minecraft:wolf_spawn_egg"; - MinecraftItemTypes["Wood"] = "minecraft:wood"; - MinecraftItemTypes["WoodenAxe"] = "minecraft:wooden_axe"; - MinecraftItemTypes["WoodenButton"] = "minecraft:wooden_button"; - MinecraftItemTypes["WoodenDoor"] = "minecraft:wooden_door"; - MinecraftItemTypes["WoodenHoe"] = "minecraft:wooden_hoe"; - MinecraftItemTypes["WoodenPickaxe"] = "minecraft:wooden_pickaxe"; - MinecraftItemTypes["WoodenPressurePlate"] = "minecraft:wooden_pressure_plate"; - MinecraftItemTypes["WoodenShovel"] = "minecraft:wooden_shovel"; - MinecraftItemTypes["WoodenSlab"] = "minecraft:wooden_slab"; - MinecraftItemTypes["WoodenSword"] = "minecraft:wooden_sword"; - MinecraftItemTypes["Wool"] = "minecraft:wool"; - MinecraftItemTypes["WritableBook"] = "minecraft:writable_book"; - MinecraftItemTypes["YellowCandle"] = "minecraft:yellow_candle"; - MinecraftItemTypes["YellowCarpet"] = "minecraft:yellow_carpet"; - MinecraftItemTypes["YellowConcrete"] = "minecraft:yellow_concrete"; - MinecraftItemTypes["YellowDye"] = "minecraft:yellow_dye"; - MinecraftItemTypes["YellowFlower"] = "minecraft:yellow_flower"; - MinecraftItemTypes["YellowGlazedTerracotta"] = "minecraft:yellow_glazed_terracotta"; - MinecraftItemTypes["YellowShulkerBox"] = "minecraft:yellow_shulker_box"; - MinecraftItemTypes["YellowWool"] = "minecraft:yellow_wool"; - MinecraftItemTypes["ZoglinSpawnEgg"] = "minecraft:zoglin_spawn_egg"; - MinecraftItemTypes["ZombieHorseSpawnEgg"] = "minecraft:zombie_horse_spawn_egg"; - MinecraftItemTypes["ZombiePigmanSpawnEgg"] = "minecraft:zombie_pigman_spawn_egg"; - MinecraftItemTypes["ZombieSpawnEgg"] = "minecraft:zombie_spawn_egg"; - MinecraftItemTypes["ZombieVillagerSpawnEgg"] = "minecraft:zombie_villager_spawn_egg"; -})(MinecraftItemTypes || (MinecraftItemTypes = {})); diff --git a/src/node_modules/@minecraft/vanilla-data/package.json b/src/node_modules/@minecraft/vanilla-data/package.json index 6acb5d2..febaf32 100644 --- a/src/node_modules/@minecraft/vanilla-data/package.json +++ b/src/node_modules/@minecraft/vanilla-data/package.json @@ -1,10 +1,9 @@ { "name": "@minecraft/vanilla-data", - "version": "1.20.10", + "version": "1.20.30", "description": "Contains types for Minecraft Vanilla Content", - "main": "lib/index.js", - "exports": "lib/index.js", - "types": "lib/index.d.ts", + "exports": "./lib/index.js", + "types": "./lib/index.d.ts", "contributors": [ { "name": "Jake Shirley", diff --git a/src/node_modules/@minecraft/vanilla-data/tsconfig.json b/src/node_modules/@minecraft/vanilla-data/tsconfig.json index 9645801..6efc9da 100644 --- a/src/node_modules/@minecraft/vanilla-data/tsconfig.json +++ b/src/node_modules/@minecraft/vanilla-data/tsconfig.json @@ -1,17 +1,18 @@ { - "$schema": "https://json.schemastore.org/tsconfig", - "display": "Default", - "compilerOptions": { - "module": "ES2022", - "lib": ["es6"], - "declaration": true, - "esModuleInterop": true, - "target": "esnext", - "forceConsistentCasingInFileNames": true, - "strict": true, - "outDir": "lib", - "skipLibCheck": true - }, - "include": ["src/**/*"], - "exclude": ["lib", "dist", "node_modules"] + "$schema": "https://json.schemastore.org/tsconfig", + "display": "Default", + "compilerOptions": { + "module": "ES2022", + "lib": ["es6"], + "declaration": true, + "emitDeclarationOnly": true, + "esModuleInterop": true, + "target": "esnext", + "forceConsistentCasingInFileNames": true, + "strict": true, + "outDir": "lib", + "skipLibCheck": true + }, + "include": ["src/**/*"], + "exclude": ["lib", "dist", "node_modules"] } diff --git a/src/package-lock.json b/src/package-lock.json index c090c66..8c9c679 100644 --- a/src/package-lock.json +++ b/src/package-lock.json @@ -1,35 +1,23 @@ { "name": "src", - "lockfileVersion": 2, + "lockfileVersion": 3, "requires": true, "packages": { "": { "dependencies": { - "@minecraft/vanilla-data": "^1.20.10", + "@minecraft/vanilla-data": "^1.20.30", "crypto-es": "^2.0.4" } }, "node_modules/@minecraft/vanilla-data": { - "version": "1.20.10", - "resolved": "https://registry.npmjs.org/@minecraft/vanilla-data/-/vanilla-data-1.20.10.tgz", - "integrity": "sha512-3FbbRSJspjJyk5eFPSj70wp776tIaqP3Apo2q2yCMkzBhH0iwPizl5aDer6ZwWBPiipGev9039Or2R9wyAplbg==" + "version": "1.20.30", + "resolved": "https://registry.npmjs.org/@minecraft/vanilla-data/-/vanilla-data-1.20.30.tgz", + "integrity": "sha512-ADFHOm5BPmeNCN3P2seCVtMFaCDeUD6in/SgtAsYQrWS2lcrdmQjYqMAKVYwDlsUejoLzcmObFbTZI1/L21fww==" }, "node_modules/crypto-es": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/crypto-es/-/crypto-es-2.0.4.tgz", "integrity": "sha512-GJxgJJ7HjGzwT7iQF0K9RertKkzgSKUXd8X2aQ7RGDS8yMVDzIBFMNHID9hnj48Ep8NAICHWV1CFIETlVNZ/Lg==" } - }, - "dependencies": { - "@minecraft/vanilla-data": { - "version": "1.20.10", - "resolved": "https://registry.npmjs.org/@minecraft/vanilla-data/-/vanilla-data-1.20.10.tgz", - "integrity": "sha512-3FbbRSJspjJyk5eFPSj70wp776tIaqP3Apo2q2yCMkzBhH0iwPizl5aDer6ZwWBPiipGev9039Or2R9wyAplbg==" - }, - "crypto-es": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/crypto-es/-/crypto-es-2.0.4.tgz", - "integrity": "sha512-GJxgJJ7HjGzwT7iQF0K9RertKkzgSKUXd8X2aQ7RGDS8yMVDzIBFMNHID9hnj48Ep8NAICHWV1CFIETlVNZ/Lg==" - } } } diff --git a/src/package.json b/src/package.json index e5f2fc0..0e74d36 100644 --- a/src/package.json +++ b/src/package.json @@ -1,6 +1,6 @@ { "dependencies": { - "@minecraft/vanilla-data": "^1.20.10", + "@minecraft/vanilla-data": "^1.20.30", "crypto-es": "^2.0.4" } } diff --git a/src/paradox.ts b/src/paradox.ts index 8ab007a..8453306 100644 --- a/src/paradox.ts +++ b/src/paradox.ts @@ -8,7 +8,6 @@ import { beforeChatFilter } from "./penrose/ChatSendBeforeEvent/chat/chatfilter. import { beforeAntiSpam } from "./penrose/ChatSendBeforeEvent/chat/antispam.js"; // Import Tick Events import { ServerBan } from "./penrose/TickEvent/ban/serverban.js"; -import { CrasherA } from "./penrose/TickEvent/crasher/crasher_a.js"; import { NamespoofA } from "./penrose/TickEvent/namespoof/namespoof_a.js"; import { NamespoofB } from "./penrose/TickEvent/namespoof/namespoof_b.js"; import { BedrockValidate } from "./penrose/TickEvent/bedrock/bedrockvalidate.js"; @@ -35,21 +34,24 @@ import { AutoBan } from "./penrose/TickEvent/ban/autoban.js"; import { freeze, freezeJoin, freezeLeave } from "./penrose/TickEvent/freeze/freeze.js"; import { AFK } from "./penrose/TickEvent/afk/afk.js"; import { AntiPhaseA } from "./penrose/TickEvent/phase/phase_a.js"; -// Import BlockBreakAfter Events -import { XrayA } from "./penrose/BlockBreakAfterEvent/xray/xray_a.js"; -import { NukerA } from "./penrose/BlockBreakAfterEvent/nuker/nuker_a.js"; +// Import PlayerBlockBreakAfter Events +import { XrayA } from "./penrose/PlayerBreakBlockAfterEvent/xray/xray_a.js"; +// Import PlayerBlockBreakBefore Events +import { BeforeNukerA } from "./penrose/PlayerBreakBlockBeforeEvent/nuker/nuker_a.js"; // Import PlayerSpawnAfter Events import { onJoin } from "./penrose/PlayerSpawnAfterEvent/onjoin/onjoin.js"; import { GlobalBanList } from "./penrose/PlayerSpawnAfterEvent/ban/globalbanlist.js"; import { hashCode } from "./penrose/PlayerSpawnAfterEvent/hash/hash.js"; import { onJoinrules } from "./gui/PlayerSpawnAfterEvent/rules/rules.js"; -// Import BlockPlaceAfter Events -import { ScaffoldA } from "./penrose/BlockPlaceAfterEvent/scaffold/scaffold_a.js"; -import { IllegalItemsB } from "./penrose/BlockPlaceAfterEvent/illegalitems/illegalitems_b.js"; -import { ReachA } from "./penrose/BlockPlaceAfterEvent/reach/reach_a.js"; +// Import PlayerBlockPlaceAfter Events +import { ScaffoldA } from "./penrose/PlayerPlaceBlockAfterEvent/scaffold/scaffold_a.js"; +import { IllegalItemsB } from "./penrose/PlayerPlaceBlockAfterEvent/illegalitems/illegalitems_b.js"; +// Import PlayerBlockPlaceAfter Events +import { BeforeReachA } from "./penrose/PlayerPlaceBlockBeforeEvent/reach/reach_a.js"; // Import EntityHitEntityAfter Events import { ReachB } from "./penrose/EntityHitEntityAfterEvent/reach_b.js"; import { KillAura } from "./penrose/EntityHitEntityAfterEvent/killaura.js"; +import { PVP } from "./penrose/EntityHitEntityAfterEvent/pvpManager.js"; // Import WorldInitializeAfter Events import { Registry } from "./penrose/WorldInitializeAfterEvent/registry.js"; // Import SystemBefore Events @@ -98,7 +100,6 @@ Adventure(); Creative(); WorldBorder(); ServerBan; -CrasherA(); NamespoofA(); NamespoofB(); BedrockValidate(); @@ -118,9 +119,11 @@ if (config.customcommands.freeze || config.modules.antiKillAura || config.module freezeJoin(); } -// BlockBreakAfter Events +// PlayerBlockBreakAfter Events XrayA(); -NukerA(); + +// PlayerBlockBreakBefore Events +BeforeNukerA(); // playerSpawnAfter Events onJoin(); @@ -128,14 +131,19 @@ GlobalBanList(); hashCode(); onJoinrules(); // GUI -// BlockPlaceAfter Events +// PlayerBlockPlaceAfter Events ScaffoldA(); IllegalItemsB(); -ReachA(); + +// PlayerBlockPlaceBefore Events +BeforeReachA(); // EntityHitEntityAfter Events ReachB(); KillAura(); +if (config.customcommands.pvp === true) { + PVP(); +} // EntityDieAfter Events DeathCoordinates(); diff --git a/src/penrose/BlockPlaceAfterEvent/reach/reach_a.ts b/src/penrose/BlockPlaceAfterEvent/reach/reach_a.ts deleted file mode 100644 index 067dcd2..0000000 --- a/src/penrose/BlockPlaceAfterEvent/reach/reach_a.ts +++ /dev/null @@ -1,198 +0,0 @@ -import { world, Player, system, BlockPlaceAfterEvent, MinecraftBlockTypes, Block, PlayerLeaveAfterEvent } from "@minecraft/server"; -import config from "../../../data/config.js"; -import { flag } from "../../../util.js"; -import { dynamicPropertyRegistry } from "../../WorldInitializeAfterEvent/registry.js"; - -// Define a union type for Player and Block -type PlayerOrBlock = Player | Block | string; - -// Store the previous locations and velocities of player and block -const previousData: Map< - PlayerOrBlock, - { - location: { x: number; y: number; z: number }; - velocity: { x: number; y: number; z: number }; - } -> = new Map(); - -function recordPlayerData(entity: PlayerOrBlock) { - // Check if the entity is a Player - if (entity instanceof Player) { - // Store the current location and velocity of the player - const location = { ...entity.location }; - - // Check if the y component of the view direction is positive - if (entity.getViewDirection().y > 0) { - const headLocation = entity.getHeadLocation(); - location.x = headLocation.x; - location.y = headLocation.y; - location.z = headLocation.z; - } - - previousData.set(entity.id, { - location: location, - velocity: { ...entity.getVelocity() }, - }); - } else if (entity instanceof Block) { - // Store the current location and velocity of the player - previousData.set(entity.typeId, { - location: { ...entity.location }, - velocity: { x: 0, y: 0, z: 0 }, - }); - } -} - -function onPlayerLogout(event: PlayerLeaveAfterEvent | string): void { - // Remove the player's data from the map when they log off - if (typeof event === "string") { - const playerName = event; - previousData.delete(playerName); - } else { - const playerName = event.playerId; - previousData.delete(playerName); - } -} - -function reacha(object: BlockPlaceAfterEvent) { - // Get Dynamic Property - const reachABoolean = dynamicPropertyRegistry.get("reacha_b"); - - // Unsubscribe if disabled in-game and stop the interval - if (reachABoolean === false) { - previousData.clear(); - stopLocationRecordingInterval(); - world.afterEvents.playerLeave.unsubscribe(onPlayerLogout); - world.afterEvents.blockPlace.unsubscribe(reacha); - return; - } - - // Properties from class - const { block, player, dimension } = object; - - // If not a player entity or a block then ignore - if (!(player instanceof Player) || !(block instanceof Block)) { - return; - } - - // Get unique ID - const uniqueId = dynamicPropertyRegistry.get(player?.id); - - // Skip if they have permission - if (uniqueId === player.name) { - return; - } - - // Get the previous recorded data of block and player - const previousblockData = previousData.get(block); - const previousplayerData = previousData.get(player.id); - - if (previousblockData && previousplayerData && isWithinReach(previousblockData, previousplayerData, block.location, player.location)) { - // Update the recorded data for block and player - recordPlayerData(block); - recordPlayerData(player.id); - return; - } - - // Reset the reach distance after each hit - resetReachDistance(player); - - // Calculate the actual reach distance with velocities - const reachDistance = calculateReachDistanceWithVelocity(previousplayerData, previousblockData, player.location, block.location); - - // Round down the reachDistance to the nearest integer - const roundedReachDistance = Math.floor(reachDistance); - if (roundedReachDistance > config.modules.reachA.reach) { - // Flagging is done, now we can remove the player entity from previousData - onPlayerLogout(player.id); - dimension.getBlock(block.location).setType(MinecraftBlockTypes.air); - flag(player, "Reach", "A", "Placement", null, null, "reach", reachDistance.toFixed(2), false); - } - // Flagging is done, now we can remove the player entity from previousData - onPlayerLogout(player.id); -} - -function isWithinReach( - previousblockData: { location: { x: number; y: number; z: number }; velocity: { x: number; y: number; z: number } }, - previousplayerData: { location: { x: number; y: number; z: number }; velocity: { x: number; y: number; z: number } }, - currentblockLocation: { x: number; y: number; z: number }, - currentplayerLocation: { x: number; y: number; z: number } -): boolean { - if (!previousblockData || !previousplayerData) { - return false; - } - - // Calculate the distance squared between the previous and current locations of block and player - const blockDistanceSquared = calculateDistanceSquared(previousblockData.location, currentblockLocation); - const playerDistanceSquared = calculateDistanceSquared(previousplayerData.location, currentplayerLocation); - - // Compare the distances with the allowed distance squared - const allowedDistanceSquared = config.modules.reachA.reach; - return blockDistanceSquared <= allowedDistanceSquared && playerDistanceSquared <= allowedDistanceSquared; -} - -function calculateDistanceSquared(position1: { x: number; y: number; z: number }, position2: { x: number; y: number; z: number }): number { - const dx = position2.x - position1.x; - const dy = position2.y - position1.y; - const dz = position2.z - position1.z; - return dx * dx + dy * dy + dz * dz; -} - -function calculateReachDistanceWithVelocity( - previousplayerData: { location: { x: number; y: number; z: number }; velocity: { x: number; y: number; z: number } }, - previousblockData: { location: { x: number; y: number; z: number }; velocity: { x: number; y: number; z: number } }, - currentplayerLocation: { x: number; y: number; z: number }, - currentblockLocation: { x: number; y: number; z: number } -): number { - if (!previousplayerData) { - // Use the current damaging entity location as the previous location if not available - previousplayerData = { - location: { ...currentplayerLocation }, - velocity: { x: 0, y: 0, z: 0 }, - }; - } - if (!previousblockData) { - // Use the current hit entity location as the previous location if not available - previousblockData = { - location: { ...currentblockLocation }, - velocity: { x: 0, y: 0, z: 0 }, - }; - } - - // Incorporate velocities into the reach distance calculation - const dx = currentblockLocation.x + previousblockData.velocity.x - previousplayerData.location.x - previousplayerData.velocity.x; - const dy = currentblockLocation.y + previousblockData.velocity.y - previousplayerData.location.y - previousplayerData.velocity.y; - const dz = currentblockLocation.z + previousblockData.velocity.z - previousplayerData.location.z - previousplayerData.velocity.z; - - return Math.sqrt(dx * dx + dy * dy + dz * dz); -} - -function resetReachDistance(player: Player) { - // Reset the previous location and velocity of the player to the current location and velocity - recordPlayerData(player); -} - -// Interval ID to stop the recording -let locationRecordingInterval: number; - -function startLocationRecordingInterval() { - locationRecordingInterval = system.runInterval(() => { - const players = world.getAllPlayers(); - for (const player of players) { - recordPlayerData(player); - } - }, 20); -} - -function stopLocationRecordingInterval() { - system.clearRun(locationRecordingInterval); -} - -const ReachA = () => { - // Subscribe to the tick event to record player locations and velocities - startLocationRecordingInterval(); - - world.afterEvents.playerLeave.subscribe(onPlayerLogout); - world.afterEvents.blockPlace.subscribe(reacha); -}; - -export { ReachA }; diff --git a/src/penrose/ChatSendBeforeEvent/chat/chatfilter.ts b/src/penrose/ChatSendBeforeEvent/chat/chatfilter.ts index e8471be..6fd6cda 100644 --- a/src/penrose/ChatSendBeforeEvent/chat/chatfilter.ts +++ b/src/penrose/ChatSendBeforeEvent/chat/chatfilter.ts @@ -9,6 +9,13 @@ const beforeChatFilter = () => { world.beforeEvents.chatSend.subscribe((msg) => { const { message, sender: player } = msg; + // Check if the player is muted + if (player.hasTag("isMuted")) { + sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f You are currently muted.`); + msg.cancel = true; // Cancel the chat message + return; + } + // Retrieve the 'chatranks_b' dynamic property const chatRanksBoolean = dynamicPropertyRegistry.get("chatranks_b"); // Get the channel name associated with the player @@ -16,20 +23,13 @@ const beforeChatFilter = () => { // Check if chat ranks are enabled if (!msg.sendToTargets && chatRanksBoolean === true) { - // Check if the player is muted - if (player.hasTag("isMuted")) { - sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f You are currently muted.`); - msg.cancel = true; // Cancel the chat message - return; - } - // Get the player's tags and find their rank const tags = player.getTags(); - const rankTag = tags.find((tag) => tag.startsWith("Rank:")) || "Rank:Member"; - const rank = rankTag.replace("Rank:", "").replaceAll("--", "§4][§6"); + const rankTag = tags.find((tag) => tag.startsWith("Rank:")) || "Rank:§4[§6Member§4]"; + const rank = rankTag.replace("Rank:", "").replaceAll("--", ""); // Format the chat message with the rank - const formattedMessage = `§4[§6${rank}§4] §7${player.name}: §r${message}`; + const formattedMessage = `${rank} §7${player.name}: §r${message}`; // Encrypt and update the message msg.message = EncryptionManager.encryptString(channelName ? `§4[§6${channelName}§4] §7${player.name}: §r${message}` : formattedMessage, player.id); msg.sendToTargets = true; // Send the message to targets diff --git a/src/penrose/EntityDieAfterEvent/death_coordinates.ts b/src/penrose/EntityDieAfterEvent/death_coordinates.ts index f51cc34..b18de40 100644 --- a/src/penrose/EntityDieAfterEvent/death_coordinates.ts +++ b/src/penrose/EntityDieAfterEvent/death_coordinates.ts @@ -10,7 +10,7 @@ function deathcoordinates(event: EntityDieAfterEvent): void { const { x, y, z } = deadEntity.location; - sendMsgToPlayer(deadEntity, `§f§4[§6Paradox§4]§f 以前死んだ場所=>§l§3X§f: ${x.toFixed(0)}, §l§6Y§f: ${y.toFixed(0)}, §l§2Z§f: ${z.toFixed(0)}.`); + sendMsgToPlayer(deadEntity, `§f§4[§6Paradox§4]§f You died at X: ${x.toFixed(0)}, Y: ${y.toFixed(0)}, Z: ${z.toFixed(0)}.`); } const DeathCoordinates = (): void => { diff --git a/src/penrose/EntityHitEntityAfterEvent/killaura.ts b/src/penrose/EntityHitEntityAfterEvent/killaura.ts index d6b5164..98682d6 100644 --- a/src/penrose/EntityHitEntityAfterEvent/killaura.ts +++ b/src/penrose/EntityHitEntityAfterEvent/killaura.ts @@ -73,14 +73,14 @@ function killaura(obj: EntityHitEntityAfterEvent) { if (angleBoolean) { // Entity is facing hitEntity at an angle greater than 90 degrees flag(damagingEntity, "KillAura", "A", "Combat", null, null, null, null, false); - // Blindness - damagingEntity.addEffect(MinecraftEffectTypes.Blindness, 1000000, { amplifier: 255, showParticles: true }); - // Mining Fatigue - damagingEntity.addEffect(MinecraftEffectTypes.MiningFatigue, 1000000, { amplifier: 255, showParticles: true }); - // Weakness - damagingEntity.addEffect(MinecraftEffectTypes.Weakness, 1000000, { amplifier: 255, showParticles: true }); - // Slowness - damagingEntity.addEffect(MinecraftEffectTypes.Slowness, 1000000, { amplifier: 255, showParticles: true }); + + // Add Effects + const effectsToAdd = [MinecraftEffectTypes.Blindness, MinecraftEffectTypes.MiningFatigue, MinecraftEffectTypes.Weakness, MinecraftEffectTypes.Slowness]; + + for (const effectType of effectsToAdd) { + damagingEntity.addEffect(effectType, 1000000, { amplifier: 255, showParticles: true }); + } + const boolean = damagingEntity.hasTag("paradoxFreeze"); const hasAuraFreeze = damagingEntity.hasTag("freezeAura"); if (!boolean) { @@ -113,7 +113,7 @@ function freeze(id: number) { player.removeTag("freezeAura"); return; } - player.onScreenDisplay.setTitle("§f§4[§6Paradox§4]違法なツールを検知したためフリーズされました", { subtitle: "§f検知内容=> §4[§6AntiKillAura§4]§f", fadeInDuration: 0, fadeOutDuration: 0, stayDuration: 60 }); + player.onScreenDisplay.setTitle("§f§4[§6Paradox§4]§f Frozen!", { subtitle: "§fContact Staff §4[§6AntiKillAura§4]§f", fadeInDuration: 0, fadeOutDuration: 0, stayDuration: 60 }); } } diff --git a/src/penrose/EntityHitEntityAfterEvent/pvpManager.ts b/src/penrose/EntityHitEntityAfterEvent/pvpManager.ts new file mode 100644 index 0000000..6775f43 --- /dev/null +++ b/src/penrose/EntityHitEntityAfterEvent/pvpManager.ts @@ -0,0 +1,75 @@ +import { world, Player, EntityHitEntityAfterEvent, PlayerLeaveAfterEvent, EntityDieAfterEvent } from "@minecraft/server"; +import { sendMsg, sendMsgToPlayer } from "../../util.js"; +import { MinecraftEffectTypes } from "../../node_modules/@minecraft/vanilla-data/lib/index"; + +const pvpData = new Map(); + +function punishment(event: EntityDieAfterEvent) { + const { damageSource, deadEntity } = event; + + const criminal = damageSource.damagingEntity; + + if (deadEntity instanceof Player && criminal instanceof Player && (criminal.hasTag("pvpDisabled") || deadEntity.hasTag("pvpDisabled"))) { + sendMsgToPlayer(criminal, `§f§4[§6Paradox§4]§f You killed §7${deadEntity.name}§f while pvp was disabled. You were punished!`); + criminal.kill(); + return; + } +} + +function onPlayerLogout(event: PlayerLeaveAfterEvent): void { + // Remove the player's data from the map when they log off + const playerId = event.playerId; + pvpData.delete(playerId); +} + +function pvp(obj: EntityHitEntityAfterEvent) { + const { damagingEntity, hitEntity } = obj; + + if (!(hitEntity instanceof Player) || !(damagingEntity instanceof Player)) { + return; + } + + if (hitEntity.hasTag("pvpDisabled")) { + sendMsgToPlayer(damagingEntity, `§f§4[§6Paradox§4]§f This player has PVP Disabled!`); + + const effectsToAdd = [MinecraftEffectTypes.InstantHealth]; + for (const effectType of effectsToAdd) { + hitEntity.addEffect(effectType, 5, { amplifier: 255, showParticles: false }); + } + + const hitEntityId = hitEntity.id; + const pvpDataForHitEntity = pvpData.get(hitEntityId) || { counter: 0, lastAttackedName: "" }; + + if (hitEntity.name === pvpDataForHitEntity.lastAttackedName) { + pvpDataForHitEntity.counter++; + } else { + pvpDataForHitEntity.lastAttackedName = hitEntity.name; + pvpDataForHitEntity.counter = 0; + } + + if (pvpDataForHitEntity.counter === 10) { + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${damagingEntity.name}§f has attacked §7${hitEntity.name}§f while §7${hitEntity.name}§f has PVP disabled.`); + pvpDataForHitEntity.counter = 0; + } + + pvpData.set(hitEntityId, pvpDataForHitEntity); + return; + } + + if (damagingEntity.hasTag("pvpDisabled")) { + // Prevent attacking player with PvP disabled + sendMsgToPlayer(damagingEntity, `§f§4[§6Paradox§4]§f You cannot attack while you have PvP Disabled!`); + + // Heal the player being attacked + const effectsToAdd = [MinecraftEffectTypes.InstantHealth]; + for (const effectType of effectsToAdd) { + hitEntity.addEffect(effectType, 5, { amplifier: 255, showParticles: false }); + } + } +} + +export const PVP = () => { + world.afterEvents.entityDie.subscribe(punishment); + world.afterEvents.entityHitEntity.subscribe(pvp); + world.afterEvents.playerLeave.subscribe(onPlayerLogout); +}; diff --git a/src/penrose/BlockBreakAfterEvent/nuker/nuker_a.ts b/src/penrose/PlayerBreakBlockAfterEvent/nuker/nuker_a.ts similarity index 76% rename from src/penrose/BlockBreakAfterEvent/nuker/nuker_a.ts rename to src/penrose/PlayerBreakBlockAfterEvent/nuker/nuker_a.ts index bb678c9..7e57e41 100644 --- a/src/penrose/BlockBreakAfterEvent/nuker/nuker_a.ts +++ b/src/penrose/PlayerBreakBlockAfterEvent/nuker/nuker_a.ts @@ -1,25 +1,22 @@ -import { world, BlockBreakAfterEvent, system, EntityQueryOptions, PlayerLeaveAfterEvent, EntityInventoryComponent, ItemEnchantsComponent } from "@minecraft/server"; +import { world, PlayerBreakBlockAfterEvent, system, EntityQueryOptions, PlayerLeaveAfterEvent, EntityInventoryComponent, ItemEnchantsComponent } from "@minecraft/server"; import { flag } from "../../../util.js"; import { dynamicPropertyRegistry } from "../../WorldInitializeAfterEvent/registry.js"; import { MinecraftEffectTypes } from "../../../node_modules/@minecraft/vanilla-data/lib/index.js"; const lastBreakTime = new Map(); -const breakCounter = new Map(); function onPlayerLogout(event: PlayerLeaveAfterEvent): void { // Remove the player's data from the map when they log off const playerName = event.playerId; lastBreakTime.delete(playerName); - breakCounter.delete(playerName); } -async function nukera(object: BlockBreakAfterEvent): Promise { +async function afternukera(object: PlayerBreakBlockAfterEvent, breakData: Map, playerBreakBlockCallback: (arg: PlayerBreakBlockAfterEvent) => void): Promise { const antiNukerABoolean = dynamicPropertyRegistry.get("antinukera_b"); if (antiNukerABoolean === false) { lastBreakTime.clear(); - breakCounter.clear(); world.afterEvents.playerLeave.unsubscribe(onPlayerLogout); - world.afterEvents.blockBreak.unsubscribe(nukera); + world.afterEvents.playerBreakBlock.unsubscribe(playerBreakBlockCallback); return; } @@ -30,6 +27,14 @@ async function nukera(object: BlockBreakAfterEvent): Promise { return; } + const playerBreakData = breakData.get(player.id); + + if (!playerBreakData) { + return; + } + + const { breakCount, lastBreakTimeBefore: beforeLastBreakTime } = playerBreakData; + // Ignore vegetation const vegetation = [ /** @@ -166,6 +171,7 @@ async function nukera(object: BlockBreakAfterEvent): Promise { "minecraft:azalea", "minecraft:sweet_berry_bush", "minecraft:sweet_berries", + "minecraft:snow_layer", ]; const efficiencyLevels: Record = { @@ -178,8 +184,8 @@ async function nukera(object: BlockBreakAfterEvent): Promise { }; const now = Date.now(); - const lastBreak = lastBreakTime.get(player.id); - const counter = breakCounter.get(player.id) || 0; + const lastBreakInSeconds = lastBreakTime.get(player.id) ? (beforeLastBreakTime - lastBreakTime.get(player.id)) / 1000 : undefined; // Use beforeLastBreakTime if lastBreakTime is not available + const counter = breakCount || 0; const hand = player.selectedSlot; const inventory = player.getComponent("inventory") as EntityInventoryComponent; @@ -189,9 +195,8 @@ async function nukera(object: BlockBreakAfterEvent): Promise { const itemEfficiencyLevel = itemEnchantmentComponent?.enchantments?.getEnchantment("efficiency")?.level || 0; const requiredTimeDifference = efficiencyLevels[itemEfficiencyLevel]; - const timeDifferenceInSeconds = (now - lastBreak) / 1000; - if (vegetation.indexOf(brokenBlockPermutation.type.id) === -1 && lastBreak && timeDifferenceInSeconds < requiredTimeDifference) { + if (vegetation.indexOf(brokenBlockPermutation.type.id) === -1 && lastBreakInSeconds && lastBreakInSeconds < requiredTimeDifference) { if (counter >= 3) { const blockLoc = dimension.getBlock({ x: x, y: y, z: z }); const blockID = brokenBlockPermutation.clone(); @@ -199,15 +204,15 @@ async function nukera(object: BlockBreakAfterEvent): Promise { flag(player, "Nuker", "A", "Break", null, null, null, null, false); blockLoc.setPermutation(blockID); lastBreakTime.delete(player.id); - breakCounter.delete(player.id); player.runCommandAsync(`kill @e[x=${x},y=${y},z=${z},r=10,c=1,type=item]`); // Apply effects or actions for three or more consecutive block breaks - player.addEffect(MinecraftEffectTypes.Blindness, 1000000, { amplifier: 255, showParticles: true }); - player.addEffect(MinecraftEffectTypes.MiningFatigue, 1000000, { amplifier: 255, showParticles: true }); - player.addEffect(MinecraftEffectTypes.Weakness, 1000000, { amplifier: 255, showParticles: true }); - player.addEffect(MinecraftEffectTypes.Slowness, 1000000, { amplifier: 255, showParticles: true }); + const effectsToAdd = [MinecraftEffectTypes.Blindness, MinecraftEffectTypes.MiningFatigue, MinecraftEffectTypes.Weakness, MinecraftEffectTypes.Slowness]; + + for (const effectType of effectsToAdd) { + player.addEffect(effectType, 1000000, { amplifier: 255, showParticles: true }); + } const hasFreezeTag = player.hasTag("paradoxFreeze"); const hasNukerFreeze = player.hasTag("freezeNukerA"); @@ -217,13 +222,19 @@ async function nukera(object: BlockBreakAfterEvent): Promise { if (!hasNukerFreeze) { player.addTag("freezeNukerA"); } + // Reset breakCount after three or more consecutive block breaks + breakData.set(player.id, { breakCount: 0, lastBreakTimeBefore: now }); return; } else { - breakCounter.set(player.id, counter + 1); + const increment = breakData.get(player.id).breakCount + 1; + // Increment breakCount + breakData.set(player.id, { breakCount: increment, lastBreakTimeBefore: now }); } } else { + // Reset breakCount when there is no offsense + breakData.set(player.id, { breakCount: 0, lastBreakTimeBefore: now }); + // Update lastBreakTime based on after event lastBreakTime.set(player.id, now); - breakCounter.set(player.id, 1); } } @@ -248,13 +259,13 @@ function freeze(id: number) { player.removeTag("freezeNukerA"); return; } - player.onScreenDisplay.setTitle("§f§4[§6server§4]§f違法なツールを検知したためフリーズされました", { subtitle: "§f検知内容=> §4[§6AntiNukerA§4]§f", fadeInDuration: 0, fadeOutDuration: 0, stayDuration: 60 }); + player.onScreenDisplay.setTitle("§f§4[§6Paradox§4]§f Frozen!", { subtitle: "§fContact Staff §4[§6AntiNukerA§4]§f", fadeInDuration: 0, fadeOutDuration: 0, stayDuration: 60 }); } } -const NukerA = () => { - world.afterEvents.blockBreak.subscribe((object) => { - nukera(object).catch((error) => { +const AfterNukerA = (breakData: Map) => { + const playerBreakBlockCallback = (object: PlayerBreakBlockAfterEvent) => { + afternukera(object, breakData, playerBreakBlockCallback).catch((error) => { console.error("Paradox Unhandled Rejection: ", error); // Extract stack trace information if (error instanceof Error) { @@ -265,11 +276,12 @@ const NukerA = () => { } } }); - }); + }; + world.afterEvents.playerBreakBlock.subscribe(playerBreakBlockCallback); world.afterEvents.playerLeave.subscribe(onPlayerLogout); const id = system.runInterval(() => { freeze(id); }, 20); }; -export { NukerA }; +export { AfterNukerA }; diff --git a/src/penrose/BlockBreakAfterEvent/xray/xray_a.ts b/src/penrose/PlayerBreakBlockAfterEvent/xray/xray_a.ts similarity index 89% rename from src/penrose/BlockBreakAfterEvent/xray/xray_a.ts rename to src/penrose/PlayerBreakBlockAfterEvent/xray/xray_a.ts index 861ac9c..5d0c9da 100644 --- a/src/penrose/BlockBreakAfterEvent/xray/xray_a.ts +++ b/src/penrose/PlayerBreakBlockAfterEvent/xray/xray_a.ts @@ -1,4 +1,4 @@ -import { BlockBreakAfterEvent, PlayerLeaveAfterEvent, world } from "@minecraft/server"; +import { PlayerBreakBlockAfterEvent, PlayerLeaveAfterEvent, world } from "@minecraft/server"; import { xrayblocks } from "../../../data/xray.js"; import { sendMsg } from "../../../util.js"; import { dynamicPropertyRegistry } from "../../WorldInitializeAfterEvent/registry.js"; @@ -56,7 +56,7 @@ function onPlayerLogout(event: PlayerLeaveAfterEvent): void { blocksBrokenCount.delete(playerId); } -function xraya(object: BlockBreakAfterEvent) { +function xraya(object: PlayerBreakBlockAfterEvent) { // Get Dynamic Property const xrayBoolean = dynamicPropertyRegistry.get("xraya_b"); @@ -64,7 +64,7 @@ function xraya(object: BlockBreakAfterEvent) { if (xrayBoolean === false) { xrayData.clear(); blocksBrokenCount.clear(); - world.afterEvents.blockBreak.unsubscribe(xraya); + world.afterEvents.playerBreakBlock.unsubscribe(xraya); world.afterEvents.playerLeave.unsubscribe(onPlayerLogout); return; } @@ -102,7 +102,7 @@ function xraya(object: BlockBreakAfterEvent) { if (isXraySuspicious(playerId, brokenBlockPermutation.type.id)) { sendMsg( `@a[tag=notify]`, - `§f§4[§6Paradox§4]§f §4[Xray]§f ${player.name}§f§6 が §f${blocksBrokenCount.get(playerId)}x ${brokenBlockPermutation.type.id.replace("minecraft:", "")}§6 at X=§f${x.toFixed(0)}§6 Y=§f${y.toFixed(0)}§6 Z=§f${z.toFixed(0)}を見つけました` + `§f§4[§6Paradox§4]§f §4[Xray]§f ${player.name}§f§6 has found §f${blocksBrokenCount.get(playerId)}x ${brokenBlockPermutation.type.id.replace("minecraft:", "")}§6 at X=§f${x.toFixed(0)}§6 Y=§f${y.toFixed(0)}§6 Z=§f${z.toFixed(0)}.` ); // Reset the count after notifying blocksBrokenCount.set(playerId, 0); @@ -111,7 +111,7 @@ function xraya(object: BlockBreakAfterEvent) { } const XrayA = () => { - world.afterEvents.blockBreak.subscribe(xraya); + world.afterEvents.playerBreakBlock.subscribe(xraya); world.afterEvents.playerLeave.subscribe(onPlayerLogout); // Subscribe to player logout events }; diff --git a/src/penrose/PlayerBreakBlockBeforeEvent/nuker/nuker_a.ts b/src/penrose/PlayerBreakBlockBeforeEvent/nuker/nuker_a.ts new file mode 100644 index 0000000..d925570 --- /dev/null +++ b/src/penrose/PlayerBreakBlockBeforeEvent/nuker/nuker_a.ts @@ -0,0 +1,57 @@ +import { PlayerBreakBlockBeforeEvent, PlayerLeaveAfterEvent, world } from "@minecraft/server"; +import { AfterNukerA } from "../../PlayerBreakBlockAfterEvent/nuker/nuker_a"; +import { dynamicPropertyRegistry } from "../../WorldInitializeAfterEvent/registry"; + +const breakData = new Map(); + +function onPlayerLogout(event: PlayerLeaveAfterEvent): void { + // Remove the player's data from the map when they log off + const playerName = event.playerId; + breakData.delete(playerName); +} + +async function beforenukera(object: PlayerBreakBlockBeforeEvent): Promise { + const antiNukerABoolean = dynamicPropertyRegistry.get("antinukera_b"); + if (antiNukerABoolean === false) { + breakData.clear(); + world.afterEvents.playerLeave.unsubscribe(onPlayerLogout); + world.beforeEvents.playerBreakBlock.unsubscribe(beforenukera); + return; + } + + const { player } = object; + const playerID = player.id; + + // Retrieve or initialize break data for the player + const playerBreakData = breakData.get(playerID) || { breakCount: 0, lastBreakTime: 0 }; + + // Increment break count and update last break time + const updatedBreakData = { + ...playerBreakData, + breakCount: playerBreakData.breakCount + 1, + lastBreakTimeBefore: Date.now(), + }; + + // Store the updated break data + breakData.set(playerID, updatedBreakData); +} + +const BeforeNukerA = () => { + AfterNukerA(breakData); + world.beforeEvents.playerBreakBlock.subscribe((object) => { + beforenukera(object).catch((error) => { + console.error("Paradox Unhandled Rejection: ", error); + // Extract stack trace information + if (error instanceof Error) { + const stackLines = error.stack.split("\n"); + if (stackLines.length > 1) { + const sourceInfo = stackLines; + console.error("Error originated from:", sourceInfo[0]); + } + } + }); + }); + world.afterEvents.playerLeave.subscribe(onPlayerLogout); +}; + +export { BeforeNukerA }; diff --git a/src/penrose/BlockPlaceAfterEvent/illegalitems/illegalitems_b.ts b/src/penrose/PlayerPlaceBlockAfterEvent/illegalitems/illegalitems_b.ts similarity index 96% rename from src/penrose/BlockPlaceAfterEvent/illegalitems/illegalitems_b.ts rename to src/penrose/PlayerPlaceBlockAfterEvent/illegalitems/illegalitems_b.ts index 88da21d..6fc8bf5 100644 --- a/src/penrose/BlockPlaceAfterEvent/illegalitems/illegalitems_b.ts +++ b/src/penrose/PlayerPlaceBlockAfterEvent/illegalitems/illegalitems_b.ts @@ -1,4 +1,4 @@ -import { world, ItemStack, Enchantment, Player, Block, BlockPlaceAfterEvent, BlockInventoryComponent, ItemEnchantsComponent, EnchantmentList, PlayerLeaveAfterEvent } from "@minecraft/server"; +import { world, ItemStack, Enchantment, Player, Block, PlayerPlaceBlockAfterEvent, BlockInventoryComponent, ItemEnchantsComponent, EnchantmentList, PlayerLeaveAfterEvent } from "@minecraft/server"; import { illegalitems } from "../../../data/itemban.js"; import config from "../../../data/config.js"; import { flag, sendMsgToPlayer, sendMsg } from "../../../util.js"; @@ -48,7 +48,7 @@ function onPlayerLogout(event: PlayerLeaveAfterEvent): void { unverifiedItemMap.delete(event.playerId); } -async function illegalitemsb(object: BlockPlaceAfterEvent) { +async function illegalitemsb(object: PlayerPlaceBlockAfterEvent) { // Get Dynamic Property const illegalItemsBBoolean = dynamicPropertyRegistry.get("illegalitemsb_b"); const salvageBoolean = dynamicPropertyRegistry.get("salvage_b"); @@ -61,7 +61,7 @@ async function illegalitemsb(object: BlockPlaceAfterEvent) { if (illegalItemsBBoolean === false) { resetMaps(); // Clear the maps world.afterEvents.playerLeave.unsubscribe(onPlayerLogout); - world.afterEvents.blockPlace.unsubscribe(illegalitemsb); + world.afterEvents.playerPlaceBlock.unsubscribe(illegalitemsb); return; } @@ -88,7 +88,7 @@ async function illegalitemsb(object: BlockPlaceAfterEvent) { // Get the block's inventory const blockInventory = block.getComponent("minecraft:inventory") as BlockInventoryComponent; const blockContainer = blockInventory?.container; - const blockIdentifiers = ["ender_chest", "shulker"]; + const blockIdentifiers = ["ender_chest", "shulker", "hopper"]; let isFlagged = false; let isAdjacent = false; // Check if container illegally contains nested items if not an ender chest or shulker box @@ -158,7 +158,7 @@ async function illegalitemsb(object: BlockPlaceAfterEvent) { // Anti Shulker Boxes if (antiShulkerBoolean && itemStackId.includes("shulker")) { blockContainer.setItem(i); - sendMsg("@a[tag=notify]", `§f§4[§6Paradox§4]§f Removed ${block.typeId.replace("minecraft:", "")} from ${player.name}.`); + sendMsg("@a[tag=notify]", `§f§4[§6Paradox§4]§f Removed ${block.typeId.replace("minecraft:", "")} from §7${player.name}§f.`); sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f Shulker Boxes are not allowed!`); continue; } @@ -168,7 +168,7 @@ async function illegalitemsb(object: BlockPlaceAfterEvent) { const maxStack = blockItemStack.maxAmount; if (stackBanBoolean && currentStack > maxStack) { blockContainer.setItem(i); - sendMsg("@a[tag=notify]", `§f§4[§6Paradox§4]§f Removed ${itemStackId.replace("minecraft:", "")} x ${currentStack} from ${player.name}.`); + sendMsg("@a[tag=notify]", `§f§4[§6Paradox§4]§f Removed ${itemStackId.replace("minecraft:", "")} x ${currentStack} from §7${player.name}§f.`); sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f Illegal Stacks are not allowed!`); rip(player, blockItemStack, null, block); isFlagged = true; @@ -178,7 +178,7 @@ async function illegalitemsb(object: BlockPlaceAfterEvent) { // If the item is in the "illegalitems" object, remove it from the block's inventory and run the "rip" function on it if (itemStackId in illegalitems) { blockContainer.setItem(i); - sendMsg("@a[tag=notify]", `§f§4[§6Paradox§4]§f Removed ${itemStackId.replace("minecraft:", "")} from ${player.name}.`); + sendMsg("@a[tag=notify]", `§f§4[§6Paradox§4]§f Removed ${itemStackId.replace("minecraft:", "")} from §7${player.name}§f.`); sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f Illegal Items are not allowed!`); rip(player, blockItemStack, null, block); isFlagged = true; @@ -188,7 +188,7 @@ async function illegalitemsb(object: BlockPlaceAfterEvent) { // Illegal Lores if (illegalLoresBoolean && !config.modules.illegalLores.exclude.includes(String(blockItemStack.getLore()))) { blockContainer.setItem(i); - sendMsg("@a[tag=notify]", `§f§4[§6Paradox§4]§f Removed ${itemStackId.replace("minecraft:", "")} with lore from ${player.name}.`); + sendMsg("@a[tag=notify]", `§f§4[§6Paradox§4]§f Removed ${itemStackId.replace("minecraft:", "")} with lore from §7${player.name}§f.`); sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f Item with illegal lores are not allowed!`); rip(player, blockItemStack, null, block); isFlagged = true; @@ -261,7 +261,7 @@ async function illegalitemsb(object: BlockPlaceAfterEvent) { }; const itemStackId = blockContainer.getItem(itemSlot); blockContainer.setItem(itemSlot); - sendMsg("@a[tag=notify]", `§f§4[§6Paradox§4]§f Removed ${itemStackId.typeId.replace("minecraft:", "")} with Illegal Enchantments from ${player.name}.`); + sendMsg("@a[tag=notify]", `§f§4[§6Paradox§4]§f Removed ${itemStackId.typeId.replace("minecraft:", "")} with Illegal Enchantments from §7${player.name}§f.`); sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f Item with illegal Enchantments are not allowed!`); enchantmentPresenceMap.clear(); enchantmentDataMap.clear(); @@ -357,7 +357,7 @@ function resetMaps() { const IllegalItemsB = () => { world.afterEvents.playerLeave.subscribe(onPlayerLogout); - world.afterEvents.blockPlace.subscribe((object) => { + world.afterEvents.playerPlaceBlock.subscribe((object) => { illegalitemsb(object).catch((error) => { console.error("Paradox Unhandled Rejection: ", error); // Extract stack trace information diff --git a/src/penrose/PlayerPlaceBlockAfterEvent/reach/reach_a.ts b/src/penrose/PlayerPlaceBlockAfterEvent/reach/reach_a.ts new file mode 100644 index 0000000..1eaa27d --- /dev/null +++ b/src/penrose/PlayerPlaceBlockAfterEvent/reach/reach_a.ts @@ -0,0 +1,59 @@ +import { world, PlayerPlaceBlockAfterEvent, Vector3 } from "@minecraft/server"; +import config from "../../../data/config.js"; +import { dynamicPropertyRegistry } from "../../WorldInitializeAfterEvent/registry.js"; +import { flag } from "../../../util.js"; +import { MinecraftBlockTypes } from "../../../node_modules/@minecraft/vanilla-data/lib/index.js"; + +function afterreacha(object: PlayerPlaceBlockAfterEvent, blockPlaceReachData: Map, playerPlaceBlockCallback: (arg: PlayerPlaceBlockAfterEvent) => void) { + // Get Dynamic Property + const reachABoolean = dynamicPropertyRegistry.get("reacha_b"); + + // Unsubscribe if disabled in-game + if (reachABoolean === false) { + world.afterEvents.playerPlaceBlock.unsubscribe(playerPlaceBlockCallback); + return; + } + + // Properties from class + const { block, player, dimension } = object; + + // Get unique ID + const uniqueId = dynamicPropertyRegistry.get(player?.id); + + // Skip if they have permission + if (uniqueId === player.name) { + return; + } + + // Block coordinates + const { x, y, z } = block.location; + // Before Reach Data + const beforeLocation = blockPlaceReachData.get(player.id); + if (!beforeLocation) { + return; + } + + // Calculate the distance squared between the player and the block being placed + const dx = x - beforeLocation.playerLocation.x; + const dy = y - beforeLocation.playerLocation.y; + const dz = z - beforeLocation.playerLocation.z; + const distanceSquared = dx * dx + dy * dy + dz * dz; + const roundedDistanceSquared = Math.floor(distanceSquared); // Round down the distanceSquared + + if (roundedDistanceSquared > config.modules.reachA.reach * config.modules.reachA.reach) { + dimension.getBlock({ x: x, y: y, z: z }).setType(MinecraftBlockTypes.Air); + flag(player, "Reach", "A", "Placement", null, null, "reach", Math.sqrt(distanceSquared).toFixed(3), false); + } + + world.afterEvents.playerPlaceBlock.unsubscribe(playerPlaceBlockCallback); +} + +const AfterReachA = (blockPlaceReachData: Map) => { + const playerPlaceBlockCallback = (object: PlayerPlaceBlockAfterEvent) => { + afterreacha(object, blockPlaceReachData, playerPlaceBlockCallback); + }; + + world.afterEvents.playerPlaceBlock.subscribe(playerPlaceBlockCallback); +}; + +export { AfterReachA }; diff --git a/src/penrose/BlockPlaceAfterEvent/scaffold/scaffold_a.ts b/src/penrose/PlayerPlaceBlockAfterEvent/scaffold/scaffold_a.ts similarity index 86% rename from src/penrose/BlockPlaceAfterEvent/scaffold/scaffold_a.ts rename to src/penrose/PlayerPlaceBlockAfterEvent/scaffold/scaffold_a.ts index b00acd3..f59be96 100644 --- a/src/penrose/BlockPlaceAfterEvent/scaffold/scaffold_a.ts +++ b/src/penrose/PlayerPlaceBlockAfterEvent/scaffold/scaffold_a.ts @@ -1,7 +1,7 @@ -import { world, MinecraftBlockTypes, Vector3, BlockPlaceAfterEvent, system, EntityQueryOptions } from "@minecraft/server"; +import { world, Vector3, PlayerPlaceBlockAfterEvent, system, EntityQueryOptions } from "@minecraft/server"; import { flag } from "../../../util.js"; import { dynamicPropertyRegistry } from "../../WorldInitializeAfterEvent/registry.js"; - +import { MinecraftBlockTypes } from "../../../node_modules/@minecraft/vanilla-data/lib/index.js"; function freeze(id: number) { const antiScaffoldABoolean = dynamicPropertyRegistry.get("antiscaffolda_b"); if (antiScaffoldABoolean === false) { @@ -23,7 +23,7 @@ function freeze(id: number) { player.removeTag("freezeScaffoldA"); return; } - player.onScreenDisplay.setTitle("§f§4[§6Paradox§4]§f 違法な動き検知しました!", { subtitle: "§f検知内容=> §4[§6AntiScaffoldA§4]§f", fadeInDuration: 0, fadeOutDuration: 0, stayDuration: 60 }); + player.onScreenDisplay.setTitle("§f§4[§6Paradox§4]§f Frozen!", { subtitle: "§fContact Staff §4[§6AntiScaffoldA§4]§f", fadeInDuration: 0, fadeOutDuration: 0, stayDuration: 60 }); } } @@ -42,12 +42,12 @@ function isBlockInFrontAndBelowPlayer(blockLocation: Vector3, playerLocation: Ve return dx <= xThreshold && dy <= yThreshold && dz >= zThreshold; } -async function scaffolda(object: BlockPlaceAfterEvent) { +async function scaffolda(object: PlayerPlaceBlockAfterEvent) { // Get Dynamic Property const antiScaffoldABoolean = dynamicPropertyRegistry.get("antiscaffolda_b"); // Unsubscribe if disabled in-game if (antiScaffoldABoolean === false) { - world.afterEvents.blockPlace.unsubscribe(scaffolda); + world.afterEvents.playerPlaceBlock.unsubscribe(scaffolda); return; } @@ -74,7 +74,7 @@ async function scaffolda(object: BlockPlaceAfterEvent) { const rot = player.getRotation(); if (rot.x % 1 === 0) { - dimension.getBlock(blockLocation).setType(MinecraftBlockTypes.air); + dimension.getBlock(blockLocation).setType(MinecraftBlockTypes.Air); flag(player, "Scaffold", "A", "Placement", null, null, null, null, false); const hasFreezeTag = player.hasTag("paradoxFreeze"); const hasScaffoldFreeze = player.hasTag("freezeScaffoldA"); @@ -89,7 +89,7 @@ async function scaffolda(object: BlockPlaceAfterEvent) { } const ScaffoldA = () => { - world.afterEvents.blockPlace.subscribe((object) => { + world.afterEvents.playerPlaceBlock.subscribe((object) => { scaffolda(object).catch((error) => { console.error("Paradox Unhandled Rejection: ", error); // Extract stack trace information diff --git a/src/penrose/PlayerPlaceBlockBeforeEvent/reach/reach_a.ts b/src/penrose/PlayerPlaceBlockBeforeEvent/reach/reach_a.ts new file mode 100644 index 0000000..f2f42eb --- /dev/null +++ b/src/penrose/PlayerPlaceBlockBeforeEvent/reach/reach_a.ts @@ -0,0 +1,38 @@ +import { world, PlayerPlaceBlockAfterEvent, Vector3 } from "@minecraft/server"; +import { dynamicPropertyRegistry } from "../../WorldInitializeAfterEvent/registry.js"; +import { AfterReachA } from "../../PlayerPlaceBlockAfterEvent/reach/reach_a.js"; + +const blockPlaceReachData = new Map(); + +function beforereacha(object: PlayerPlaceBlockAfterEvent) { + // Get Dynamic Property + const reachABoolean = dynamicPropertyRegistry.get("reacha_b"); + + // Unsubscribe if disabled in-game + if (reachABoolean === false) { + world.afterEvents.playerPlaceBlock.unsubscribe(beforereacha); + return; + } + + // Properties from class + const { block, player } = object; + + // Get unique ID + const uniqueId = dynamicPropertyRegistry.get(player?.id); + + // Skip if they have permission + if (uniqueId === player.name) { + return; + } + + blockPlaceReachData.set(player.id, { blockLocation: block.location, playerLocation: player.location }); + + // Call the After Event + AfterReachA(blockPlaceReachData); +} + +const BeforeReachA = () => { + world.afterEvents.playerPlaceBlock.subscribe(beforereacha); +}; + +export { BeforeReachA }; diff --git a/src/penrose/PlayerSpawnAfterEvent/hash/hash.ts b/src/penrose/PlayerSpawnAfterEvent/hash/hash.ts index 16ab05c..aae4664 100644 --- a/src/penrose/PlayerSpawnAfterEvent/hash/hash.ts +++ b/src/penrose/PlayerSpawnAfterEvent/hash/hash.ts @@ -20,7 +20,7 @@ function verification(object: PlayerSpawnAfterEvent) { // Generate the hash const encode = EncryptionManager.hashWithSalt(salt as string, key); - if (encode === hash) { + if (encode && encode === hash) { // Store as an element using player scoreboard id to uniquely identify them dynamicPropertyRegistry.set(player.id, player.name); return; diff --git a/src/penrose/PlayerSpawnAfterEvent/onjoin/onjoin.ts b/src/penrose/PlayerSpawnAfterEvent/onjoin/onjoin.ts index 62e10e8..34ceab3 100644 --- a/src/penrose/PlayerSpawnAfterEvent/onjoin/onjoin.ts +++ b/src/penrose/PlayerSpawnAfterEvent/onjoin/onjoin.ts @@ -1,6 +1,6 @@ import { Player, PlayerSpawnAfterEvent, world } from "@minecraft/server"; import { onJoinPrimaryData, onJoinSecondaryData } from "../../../data/onjoindata.js"; -import { getPrefix, setTimer } from "../../../util.js"; +import { getPrefix, setTimer } from "../../../util.js"; import { kickablePlayers } from "../../../kickcheck.js"; import { dynamicPropertyRegistry } from "../../WorldInitializeAfterEvent/registry.js"; import { ScoreManager } from "../../../classes/ScoreManager.js"; diff --git a/src/penrose/TickEvent/antifalla/antifall_a.ts b/src/penrose/TickEvent/antifalla/antifall_a.ts index cc55df8..1fa1845 100644 --- a/src/penrose/TickEvent/antifalla/antifall_a.ts +++ b/src/penrose/TickEvent/antifalla/antifall_a.ts @@ -57,7 +57,7 @@ function antifalla(id: number) { try { block = player?.dimension?.getBlock(offsetVector) || undefined; } catch {} - if (!block || !block.isAir()) { + if (!block || !block.isAir) { allBlocksAreAir = false; break; } diff --git a/src/penrose/TickEvent/antivoid/antivoid.ts b/src/penrose/TickEvent/antivoid/antivoid.ts index c9fd039..458bd6d 100644 --- a/src/penrose/TickEvent/antivoid/antivoid.ts +++ b/src/penrose/TickEvent/antivoid/antivoid.ts @@ -4,7 +4,7 @@ import { dynamicPropertyRegistry } from "../../WorldInitializeAfterEvent/registr var savedValue: number; var flagPlayer: boolean = false; var isFlying: boolean = false; -function antiVoid(id: number) { +function antiVoid(_id: number) { //exclude players who are in creative. const gm: EntityQueryOptions = { excludeGameModes: [GameMode.creative, GameMode.spectator], diff --git a/src/penrose/TickEvent/ban/autoban.ts b/src/penrose/TickEvent/ban/autoban.ts index 92215ee..4e5c61f 100644 --- a/src/penrose/TickEvent/ban/autoban.ts +++ b/src/penrose/TickEvent/ban/autoban.ts @@ -3,6 +3,7 @@ import { kickablePlayers } from "../../../kickcheck"; import { dynamicPropertyRegistry } from "../../WorldInitializeAfterEvent/registry"; import config from "../../../data/config"; import { ScoreManager } from "../../../classes/ScoreManager"; + const configTicks: number = config.modules.autoBan.banHammerInterval; function rip(player: Player, reason: string) { // Tag with reason and by who @@ -37,8 +38,8 @@ function autoban(id: number) { } scores.forEach((score) => { const playerScore = ScoreManager.getScore(score, player); - if (playerScore > 1000) { - const reReason = score.replace("vl", "").toUpperCase() + " 検知内容=>: " + playerScore; + if (playerScore > 50) { + const reReason = score.replace("vl", "").toUpperCase() + " Violations: " + playerScore; return rip(player, reReason); } }); diff --git a/src/penrose/TickEvent/ban/serverban.ts b/src/penrose/TickEvent/ban/serverban.ts index effd909..2109597 100644 --- a/src/penrose/TickEvent/ban/serverban.ts +++ b/src/penrose/TickEvent/ban/serverban.ts @@ -1,6 +1,6 @@ import { world, EntityQueryOptions, system } from "@minecraft/server"; -import { queueUnban } from "../../../commands/moderation/unban.js"; import { banMessage, sendMsg, sendMsgToPlayer } from "../../../util.js"; +import { queueUnban } from "../../../commands/moderation/unban.js"; import { ScoreManager } from "../../../classes/ScoreManager.js"; function serverban() { @@ -41,7 +41,7 @@ function serverban() { // Let staff and player know they are unbanned sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f You have been unbanned.`); - sendMsg(`@a[tag=paradoxOpped]`, `§f§4[§6Paradox§4]§f ${player.name} has been unbanned.`); + sendMsg(`@a[tag=paradoxOpped]`, `§f§4[§6Paradox§4]§f §7${player.name}§f has been unbanned.`); continue; } // Ban message diff --git a/src/penrose/TickEvent/clearlag/clearlag.ts b/src/penrose/TickEvent/clearlag/clearlag.ts index 87fcf3c..020e198 100644 --- a/src/penrose/TickEvent/clearlag/clearlag.ts +++ b/src/penrose/TickEvent/clearlag/clearlag.ts @@ -63,25 +63,23 @@ function clearLag(id: number) { const msSettings = countdown.days * 24 * 60 * 60 * 1000 + countdown.hours * 60 * 60 * 1000 + countdown.minutes * 60 * 1000 + countdown.seconds * 1000; const timeLeft = msSettings - (Date.now() - cooldownVerify); - if (timeLeft <= 0) { + const timeLeftSeconds = Math.ceil(timeLeft / 1000); + + if (timeLeftSeconds <= 0) { clearEntityItems(); clearEntities(); cooldownTimer.delete(object); sendMsg("@a", `§f§4[§6Paradox§4]§f Server lag has been cleared!`); warned = false; // reset the warned variable so that the 60 second warning will display again next time - } else if (timeLeft <= 60000 && timeLeft > 0 && !warned) { - if (timeLeft === 60000) { + } else if (timeLeftSeconds <= 60) { + if (timeLeftSeconds === 60) { sendMsg("@a", `§f§4[§6Paradox§4]§f Server lag will be cleared in 1 minute!`); - } else { - const secondsLeft = Math.ceil(timeLeft / 1000); - const countdownMsg = secondsLeft === 1 ? "second" : "seconds"; - sendMsg("@a", `§f§4[§6Paradox§4]§f Server lag will be cleared in ${secondsLeft} ${countdownMsg}!`); + } else if (!warned && timeLeftSeconds <= 5) { + sendMsg("@a", `§f§4[§6Paradox§4]§f Server lag will be cleared in ${timeLeftSeconds} seconds!`); + warned = true; + } else if (timeLeftSeconds === 1) { + sendMsg("@a", `§f§4[§6Paradox§4]§f Server lag will be cleared in ${timeLeftSeconds} second!`); } - warned = true; - } else if (timeLeft <= 5000 && timeLeft > 0) { - const secondsLeft = Math.ceil(timeLeft / 1000); - const countdownMsg = secondsLeft === 1 ? "second" : "seconds"; - sendMsg("@a", `§f§4[§6Paradox§4]§f Server lag will be cleared in ${secondsLeft} ${countdownMsg}!`); } } diff --git a/src/penrose/TickEvent/crasher/crasher_a.ts b/src/penrose/TickEvent/crasher/crasher_a.ts deleted file mode 100644 index f077b76..0000000 --- a/src/penrose/TickEvent/crasher/crasher_a.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { world, system } from "@minecraft/server"; -import { flag } from "../../../util.js"; -import { kickablePlayers } from "../../../kickcheck.js"; -import { dynamicPropertyRegistry } from "../../WorldInitializeAfterEvent/registry.js"; - -function crashera(id: number) { - // Get Dynamic Property - const crasherABoolean = dynamicPropertyRegistry.get("crashera_b"); - - // Unsubscribe if disabled in-game - if (crasherABoolean === false) { - system.clearRun(id); - return; - } - // run as each player - const players = world.getPlayers(); - for (const player of players) { - // Crasher/A = invalid pos check - if (Math.abs(player.location.x) > 30000000 || Math.abs(player.location.y) > 30000000 || Math.abs(player.location.z) > 30000000) { - flag(player, "Crasher", "A", "Exploit", null, null, null, null, true); - try { - player.addTag("Reason:Crasher"); - player.addTag("By:Paradox"); - player.addTag("isBanned"); - } catch (error) { - kickablePlayers.add(player); - player.triggerEvent("paradox:kick"); - } - } - } -} - -/** - * We store the identifier in a variable - * to cancel the execution of this scheduled run - * if needed to do so. - */ -export function CrasherA() { - const crasherAId = system.runInterval(() => { - crashera(crasherAId); - }); -} diff --git a/src/penrose/TickEvent/freeze/freeze.ts b/src/penrose/TickEvent/freeze/freeze.ts index faf78f7..4ec488a 100644 --- a/src/penrose/TickEvent/freeze/freeze.ts +++ b/src/penrose/TickEvent/freeze/freeze.ts @@ -1,5 +1,5 @@ import { world, Player, system, EntityQueryOptions, Vector } from "@minecraft/server"; -import { sendMsg, setTimer } from "../../../util"; +import { sendMsg, setTimer } from "../../../util"; import { MinecraftEffectTypes } from "../../../node_modules/@minecraft/vanilla-data/lib/index"; import { EncryptionManager } from "../../../classes/EncryptionManager"; @@ -119,17 +119,17 @@ const freezePlayers = () => { } const combinations: Record = { - "111": "§f検知内容=> §4[§6NA§4]§f§4[§6KA§4]§f§4[§6AS§4]§f", // Aura + Nuker + Scaffold - "110": "§f検知内容=> §4[§6NA§4]§f§4[§6KA§4]§f", // Aura + Nuker - "101": "§f検知内容=> §4[§6NA§4]§f§4[§6AS§4]§f", // Aura + Scaffold - "011": "§f検知内容=> §4[§6KA§4]§f§4[§6AS§4]§f", // Nuker + Scaffold - "000": "§f検知内容=> §4[§6Command§4]§f", // Other cases + "111": "§fContact Staff §4[§6NA§4]§f§4[§6KA§4]§f§4[§6AS§4]§f", // Aura + Nuker + Scaffold + "110": "§fContact Staff §4[§6NA§4]§f§4[§6KA§4]§f", // Aura + Nuker + "101": "§fContact Staff §4[§6NA§4]§f§4[§6AS§4]§f", // Aura + Scaffold + "011": "§fContact Staff §4[§6KA§4]§f§4[§6AS§4]§f", // Nuker + Scaffold + "000": "§fContact Staff §4[§6Command§4]§f", // Other cases }; const combinationKey = (hasAuraTag ? "1" : "0") + (hasNukerTag ? "1" : "0") + (hasScaffoldTag ? "1" : "0"); const title = { subtitle: combinations[combinationKey] || combinations["000"] }; - player.onScreenDisplay.setTitle("§f§4[§6Paradox§4]違法なツールを検知したためフリーズされました", { + player.onScreenDisplay.setTitle("§f§4[§6Paradox§4]§f Frozen!", { ...title, fadeInDuration: 0, fadeOutDuration: 0, @@ -160,7 +160,7 @@ export const freezeLeave = (): void => { ?.hasTag("paradoxFreeze"); if (hasFreezeTag) { - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${event.playerName}§f was frozen and left the server.`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${event.playerName}§f was frozen and left the server.`); } }); }; @@ -175,7 +175,7 @@ export const freezeJoin = (): void => { ?.hasTag("paradoxFreeze"); if (hasFreezeTag) { - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${event.playerName}§f was frozen and returned to the server.`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${event.playerName}§f was frozen and returned to the server.`); } }); }; diff --git a/src/penrose/TickEvent/gamemode/adventure.ts b/src/penrose/TickEvent/gamemode/adventure.ts index 70ff34c..b84c03b 100644 --- a/src/penrose/TickEvent/gamemode/adventure.ts +++ b/src/penrose/TickEvent/gamemode/adventure.ts @@ -1,5 +1,5 @@ import { world, EntityQueryOptions, GameMode, system } from "@minecraft/server"; -import { sendMsg,} from "../../../util.js"; +import { sendMsg } from "../../../util.js"; import { dynamicPropertyRegistry } from "../../WorldInitializeAfterEvent/registry.js"; import { ScoreManager } from "../../../classes/ScoreManager.js"; diff --git a/src/penrose/TickEvent/gamemode/creative.ts b/src/penrose/TickEvent/gamemode/creative.ts index c62b458..6985a9a 100644 --- a/src/penrose/TickEvent/gamemode/creative.ts +++ b/src/penrose/TickEvent/gamemode/creative.ts @@ -1,5 +1,5 @@ import { world, EntityQueryOptions, GameMode, system } from "@minecraft/server"; -import { sendMsg } from "../../../util.js"; +import { sendMsg } from "../../../util.js"; import { dynamicPropertyRegistry } from "../../WorldInitializeAfterEvent/registry.js"; import { ScoreManager } from "../../../classes/ScoreManager.js"; diff --git a/src/penrose/TickEvent/illegalitems/illegalitems_a.ts b/src/penrose/TickEvent/illegalitems/illegalitems_a.ts index f334368..aa675e5 100644 --- a/src/penrose/TickEvent/illegalitems/illegalitems_a.ts +++ b/src/penrose/TickEvent/illegalitems/illegalitems_a.ts @@ -111,7 +111,7 @@ function illegalitemsa(id: number) { // Anti Shulker Boxes if (antiShulkerBoolean && itemStackId.includes("shulker")) { playerContainer.setItem(i); - sendMsg("@a[tag=notify]", `§f§4[§6Paradox§4]§f Removed ${itemStackId.replace("minecraft:", "")} from ${player.name}.`); + sendMsg("@a[tag=notify]", `§f§4[§6Paradox§4]§f Removed ${itemStackId.replace("minecraft:", "")} from §7${player.name}§f.`); sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f Shulker Boxes are not allowed!`); continue; } @@ -121,7 +121,7 @@ function illegalitemsa(id: number) { const maxStack = playerItemStack.maxAmount; if (stackBanBoolean && currentStack > maxStack) { playerContainer.setItem(i); - sendMsg("@a[tag=notify]", `§f§4[§6Paradox§4]§f Removed ${itemStackId.replace("minecraft:", "")} x ${currentStack} from ${player.name}.`); + sendMsg("@a[tag=notify]", `§f§4[§6Paradox§4]§f Removed ${itemStackId.replace("minecraft:", "")} x ${currentStack} from §7${player.name}§f.`); sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f Illegal Stacks are not allowed!`); rip(player, playerItemStack); break; @@ -130,7 +130,7 @@ function illegalitemsa(id: number) { // If the item is in the "illegalitems" object, remove it from the player's inventory and run the "rip" function on it if (illegalitems.has(itemStackId)) { playerContainer.setItem(i); - sendMsg("@a[tag=notify]", `§f§4[§6Paradox§4]§f Removed ${itemStackId.replace("minecraft:", "")} from ${player.name}.`); + sendMsg("@a[tag=notify]", `§f§4[§6Paradox§4]§f Removed ${itemStackId.replace("minecraft:", "")} from §7${player.name}§f.`); sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f Illegal Items are not allowed!`); rip(player, playerItemStack); break; @@ -139,7 +139,7 @@ function illegalitemsa(id: number) { // Illegal Lores if (illegalLoresBoolean && !config.modules.illegalLores.exclude.includes(String(playerItemStack.getLore()))) { playerContainer.setItem(i); - sendMsg("@a[tag=notify]", `§f§4[§6Paradox§4]§f Removed ${itemStackId.replace("minecraft:", "")} with lore from ${player.name}.`); + sendMsg("@a[tag=notify]", `§f§4[§6Paradox§4]§f Removed ${itemStackId.replace("minecraft:", "")} with lore from §7${player.name}§f.`); sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f Item with illegal lores are not allowed!`); rip(player, playerItemStack, null, true); break; @@ -206,7 +206,7 @@ function illegalitemsa(id: number) { }; const itemStackId = playerContainer.getItem(itemSlot); playerContainer.setItem(itemSlot); - sendMsg("@a[tag=notify]", `§f§4[§6Paradox§4]§f Removed ${itemStackId.typeId.replace("minecraft:", "")} with Illegal Enchantments from ${player.name}.`); + sendMsg("@a[tag=notify]", `§f§4[§6Paradox§4]§f Removed ${itemStackId.typeId.replace("minecraft:", "")} with Illegal Enchantments from §7${player.name}§f.`); sendMsgToPlayer(player, `§f§4[§6Paradox§4]§f Item with illegal Enchantments are not allowed!`); enchantmentPresenceMap.clear(); enchantmentDataMap.clear(); diff --git a/src/penrose/TickEvent/noperms/nopermission.ts b/src/penrose/TickEvent/noperms/nopermission.ts index a3f98ee..e9409b4 100644 --- a/src/penrose/TickEvent/noperms/nopermission.ts +++ b/src/penrose/TickEvent/noperms/nopermission.ts @@ -35,13 +35,13 @@ function noperms() { // Generate the hash const encode = EncryptionManager.hashWithSalt(salt as string, key); entity.removeTag("paradoxOpped"); - if (encode === hash) { + if (encode && encode === hash) { entity.removeDynamicProperty("hash"); entity.removeDynamicProperty("salt"); dynamicPropertyRegistry.delete(entity.id); } - sendMsg("@a[tag=notify]", `§f§4[§6Paradox§4]§f ${entity.nameTag} had unauthorized permissions. Permissions removed!`); + sendMsg("@a[tag=notify]", `§f§4[§6Paradox§4]§f §7${entity.nameTag}§f had unauthorized permissions. Permissions removed!`); } } diff --git a/src/penrose/TickEvent/noperms/verifypermission.ts b/src/penrose/TickEvent/noperms/verifypermission.ts index b339289..aaa333e 100644 --- a/src/penrose/TickEvent/noperms/verifypermission.ts +++ b/src/penrose/TickEvent/noperms/verifypermission.ts @@ -1,6 +1,6 @@ import { world, EntityQueryOptions, system } from "@minecraft/server"; import config from "../../../data/config.js"; -import { sendMsg } from "../../../util.js"; +import { sendMsg } from "../../../util.js"; import { dynamicPropertyRegistry } from "../../WorldInitializeAfterEvent/registry.js"; import { EncryptionManager } from "../../../classes/EncryptionManager.js"; @@ -20,7 +20,7 @@ function verifypermission() { if (config.debug) { console.error(`Error retrieving dynamic properties for player: ${player.name}`); console.error(error); - console.log("Player:", player.name); + console.log("Player: ", player.name); } continue; // Skip to the next player } @@ -30,7 +30,7 @@ function verifypermission() { // Generate the hash const encode = EncryptionManager.hashWithSalt(salt as string, key); - if (encode === hash) { + if (encode && encode === hash) { // Make sure their unique ID exists in case of a reload if (dynamicPropertyRegistry.has(player.id) === false) { dynamicPropertyRegistry.set(player.id, player.name); @@ -43,7 +43,7 @@ function verifypermission() { player.removeTag("paradoxOpped"); } - sendMsg("@a[tag=notify]", `§f§4[§6Paradox§4]§f ${player.name} had unauthorized permissions. Permissions removed!`); + sendMsg("@a[tag=notify]", `§f§4[§6Paradox§4]§f §7${player.name}§f had unauthorized permissions. Permissions removed!`); } } diff --git a/src/penrose/TickEvent/oneplayersleep/oneplayersleep.ts b/src/penrose/TickEvent/oneplayersleep/oneplayersleep.ts index 67daabf..ae3d26a 100644 --- a/src/penrose/TickEvent/oneplayersleep/oneplayersleep.ts +++ b/src/penrose/TickEvent/oneplayersleep/oneplayersleep.ts @@ -9,7 +9,7 @@ async function queueSleep(player: Player) { await Promise.all([player.runCommandAsync(`time set 126553000`), player.runCommandAsync(`weather clear`)]); const hotbarBoolean = dynamicPropertyRegistry.get("hotbar_b"); if (hotbarBoolean === undefined || hotbarBoolean === false) { - player.runCommand(`title @a[tag=!vanish] actionbar おはよ~!`); + player.runCommand(`title @a[tag=!vanish] actionbar Good Morning`); } } diff --git a/src/penrose/TickEvent/phase/phase_a.ts b/src/penrose/TickEvent/phase/phase_a.ts index fa22f37..18bd98e 100644 --- a/src/penrose/TickEvent/phase/phase_a.ts +++ b/src/penrose/TickEvent/phase/phase_a.ts @@ -1,4 +1,4 @@ -import { world, EntityQueryOptions, GameMode, system, Vector3, PlayerLeaveAfterEvent, Block } from "@minecraft/server"; +import { world, EntityQueryOptions, GameMode, system, Vector3, PlayerLeaveAfterEvent } from "@minecraft/server"; import { flag } from "../../../util.js"; import { dynamicPropertyRegistry } from "../../WorldInitializeAfterEvent/registry.js"; @@ -44,27 +44,17 @@ function antiphasea(id: number) { const { x, y, z } = player.location; - // Calculate block locations for head, waist, and feet - const upperBody = { x, y: y + 1, z }; + // Calculate block locations const lowerBody = { x, y, z }; - const blocksToCheck = [lowerBody, upperBody]; + let allSafe = false; - const allSafe = blocksToCheck.every((block) => { - let blockType: Block; - try { - blockType = player.dimension.getBlock(block); - } catch {} - // Check if the block is soul sand and the player's y-coordinate difference is within -0.125 - if (block === lowerBody && blockType && blockType.typeId === "minecraft:soul_sand" && y - block.y <= 0.125) { - return true; - } - // Check if the block is passable or if the player is riding - if (!blockType || player.hasTag("riding") || passableSolids.has(blockType.typeId.replace("minecraft:", ""))) { - return true; - } - return !blockType.isSolid(); - }); + try { + const blockType = player.dimension.getBlock(lowerBody); + allSafe = blockType && ((blockType.typeId === "minecraft:soul_sand" && y - lowerBody.y <= 0.125) || player.hasTag("riding") || passableSolids.has(blockType.typeId.replace("minecraft:", ""))); + } catch { + allSafe = true; // Handle any errors in getting the block type + } if (allSafe) { // Update last safe location diff --git a/src/penrose/TickEvent/vanish/vanish.ts b/src/penrose/TickEvent/vanish/vanish.ts index e6fcd6f..22529fc 100644 --- a/src/penrose/TickEvent/vanish/vanish.ts +++ b/src/penrose/TickEvent/vanish/vanish.ts @@ -16,21 +16,29 @@ async function vanish() { // Make sure they have permission if (uniqueId === player.name) { - player.addEffect(MinecraftEffectTypes.Invisibility, 1728000, { amplifier: 255, showParticles: false }); - player.addEffect(MinecraftEffectTypes.NightVision, 1728000, { amplifier: 255, showParticles: false }); + const effectsToAdd = [MinecraftEffectTypes.Invisibility, MinecraftEffectTypes.NightVision]; + + for (const effectType of effectsToAdd) { + player.addEffect(effectType, 1728000, { amplifier: 255, showParticles: false }); + } player.onScreenDisplay.setActionBar("§6YOU ARE VANISHED!"); } // Make sure they have permission to use Vanish if (uniqueId !== player.name) { // They have been busted! player.removeTag("vanish"); - if (player.getEffect(MinecraftEffectTypes.Invisibility) || player.getEffect(MinecraftEffectTypes.NightVision)) { - player.runCommandAsync(`effect @s clear`); + + // Remove effects + const effectsToRemove = [MinecraftEffectTypes.Invisibility, MinecraftEffectTypes.NightVision]; + + for (const effectType of effectsToRemove) { + player.removeEffect(effectType); } + player.triggerEvent("unvanish"); // Use try/catch in case nobody has tag 'notify' as this will report 'no target selector' try { - sendMsg("@a[tag=notify]", `§f§4[§6Paradox§4]§f ${player.name} had unauthorized permissions for Vanish. Permissions removed!`); + sendMsg("@a[tag=notify]", `§f§4[§6Paradox§4]§f §7${player.name}§f had unauthorized permissions for Vanish. Permissions removed!`); } catch (error) {} } } diff --git a/src/penrose/WorldInitializeAfterEvent/registry.ts b/src/penrose/WorldInitializeAfterEvent/registry.ts index 9d09062..5a58110 100644 --- a/src/penrose/WorldInitializeAfterEvent/registry.ts +++ b/src/penrose/WorldInitializeAfterEvent/registry.ts @@ -1,8 +1,8 @@ -import { world, DynamicPropertiesDefinition, MinecraftEntityTypes, WorldInitializeAfterEvent } from "@minecraft/server"; +import { world, DynamicPropertiesDefinition, WorldInitializeAfterEvent, Vector3 } from "@minecraft/server"; import config from "../../data/config.js"; import { UUIDManager } from "../../classes/UUIDManager.js"; - -export const dynamicPropertyRegistry = new Map(); +import { MinecraftEntityTypes } from "../../node_modules/@minecraft/vanilla-data/lib/index.js"; +export const dynamicPropertyRegistry = new Map(); function registry(data: WorldInitializeAfterEvent) { // World instance @@ -30,7 +30,6 @@ function registry(data: WorldInitializeAfterEvent) { "salvage_b", "antispam_b", "clearlag_b", - "crashera_b", "lockdown_b", "spammera_b", "spammerb_b", @@ -98,7 +97,7 @@ function registry(data: WorldInitializeAfterEvent) { data.propertyRegistry.registerWorldDynamicProperties(property); // Register Defined properties in entity globally - data.propertyRegistry.registerEntityTypeDynamicProperties(personal, MinecraftEntityTypes.player); + data.propertyRegistry.registerEntityTypeDynamicProperties(personal, "minecraft:" + MinecraftEntityTypes.Player); let flag = false; // Loop through the identifiers in the array diff --git a/src/util.ts b/src/util.ts index 9d9a7f0..d3ec50e 100644 --- a/src/util.ts +++ b/src/util.ts @@ -28,10 +28,8 @@ world.afterEvents.playerLeave.subscribe(onPlayerLogout); * @param {boolean} shouldTP - Whever to tp the player to itself. */ export function flag(player: Player, check: string, checkType: string, hackType: string, item: string, stack: number, debugName: string, debug: string, shouldTP: boolean) { - if (shouldTP && check !== "Crasher") { + if (shouldTP) { player.teleport(new Vector(player.location.x, player.location.y, player.location.z), { dimension: player.dimension, rotation: { x: 0, y: 0 }, facingLocation: { x: 0, y: 0, z: 0 }, checkForBlocks: false, keepVelocity: false }); - } else if (shouldTP && check === "Crasher") { - player.teleport({ x: 30000000, y: 30000000, z: 30000000 }, { dimension: player.dimension, rotation: { x: 0, y: 0 }, facingLocation: { x: 0, y: 0, z: 0 }, checkForBlocks: false, keepVelocity: false }); } ScoreManager.setScore(player, `${check.toLowerCase()}vl`, 1, true); @@ -74,13 +72,13 @@ export function banMessage(player: Player) { } if (config.modules.banAppeal.enabled === true) { - player.runCommandAsync(`kick "${player.name}" §f\n§l§4YOU ARE BANNED!§r\n§4[§6Banned By§4]§f: ${by || "§7N/A"}\n§4[§6Reason§4]§f: ${reason || "§7N/A"}\n§b${config.modules.banAppeal.discordLink}`).catch(() => { + player.runCommandAsync(`kick "${player.name}" §f\n§l§4YOU ARE BANNED!§r\n§4[§6Banned By§4]§f: §7${by || "§7N/A"}§f\n§4[§6Reason§4]§f: §7${reason || "§7N/A"}§f\n§b${config.modules.banAppeal.discordLink}`).catch(() => { // If we can't kick them with /kick, then we instantly despawn them kickablePlayers.add(player); player.triggerEvent("paradox:kick"); }); } else { - player.runCommandAsync(`kick "${player.name}" §f\n§l§4YOU ARE BANNED!\n§r\n§4[§6Banned By§4]§f: ${by || "§7N/A"}\n§4[§6Reason§4]§f: ${reason || "§7N/A"}`).catch(() => { + player.runCommandAsync(`kick "${player.name}" §f\n§l§4YOU ARE BANNED!\n§r\n§4[§6Banned By§4]§f: §7${by || "§7N/A"}§f\n§4[§6Reason§4]§f: §7${reason || "§7N/A"}§f`).catch(() => { // If we can't kick them with /kick, then we instantly despawn them kickablePlayers.add(player); player.triggerEvent("paradox:kick"); @@ -88,7 +86,7 @@ export function banMessage(player: Player) { } // Notify staff that a player was banned - sendMsg("@a[tag=paradoxOpped]", [`§f§4[§6Paradox§4]§f ${player.name} has been banned!`, `§4[§6Banned By§4]§f: ${by || "§7N/A"}`, `§4[§6Reason§4]§f: ${reason || "§7N/A"}`]); + sendMsg("@a[tag=paradoxOpped]", [`§f§4[§6Paradox§4]§f §7${player.name}§f has been banned!`, `§4[§6Banned By§4]§f: §7${by || "§7N/A"}§f`, `§4[§6Reason§4]§f: §7${reason || "§7N/A"}§f`]); } /** @@ -125,7 +123,7 @@ export function resetTag(member: Player) { member.removeTag(tag); } } - sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f ${member.name} has reset their rank`); + sendMsg("@a[tag=paradoxOpped]", `§f§4[§6Paradox§4]§f §7${member.name}§f has reset their rank`); } /** @@ -237,5 +235,5 @@ export const sendMsgToPlayer = async (target: Player, message: string | string[] modifiedMessage = (message as string).replace(/§f/g, "§f§o"); } - target.runCommandAsync(`tellraw @s {"rawtext":[{"text":${JSON.stringify("\n" + modifiedMessage)}}]}`); + target.sendMessage({ rawtext: [{ text: "\n" + modifiedMessage }] }); }; diff --git a/src/version.ts b/src/version.ts index c147a6b..7c6c0fe 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1,3 +1,3 @@ export default { - version: "3.3.4", + version: "3.3.6", }; diff --git a/sync_entities.sh b/sync_entities.sh index 0fb1269..9fe4fc2 100644 --- a/sync_entities.sh +++ b/sync_entities.sh @@ -25,10 +25,6 @@ for file in "$entity_dir"/*.json; do # Remove comments from the file sed -i 's/\/\/.*//' "$file" - # Update is_spawnable and is_summonable properties - sed -i 's/"is_spawnable": [^,]*,/"is_spawnable": false,/' "$file" - sed -i 's/"is_summonable": [^,]*,/"is_summonable": false,/' "$file" - # Check if the file contains a "component_groups" object if ! grep -q '"component_groups":' "$file"; then # If the file does not contain a "component_groups" object, add it diff --git a/tsconfig.json b/tsconfig.json index 0b12867..fab4709 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,7 +14,11 @@ "useDefineForClassFields": true, "noImplicitReturns": true, "noUnusedLocals": true, - "noImplicitAny": true + "noImplicitAny": true, + "alwaysStrict": true, + "noFallthroughCasesInSwitch": true, + "noImplicitThis": true, + "noUnusedParameters": true }, "include": ["src"], "exclude": ["node_modules"]